1 | module.exports =
|
2 | (function(modules, runtime) {
|
3 | "use strict";
|
4 |
|
5 | var installedModules = {};
|
6 |
|
7 |
|
8 | function __webpack_require__(moduleId) {
|
9 |
|
10 |
|
11 | if(installedModules[moduleId]) {
|
12 | return installedModules[moduleId].exports;
|
13 | }
|
14 |
|
15 | var module = installedModules[moduleId] = {
|
16 | i: moduleId,
|
17 | l: false,
|
18 | exports: {}
|
19 | };
|
20 |
|
21 |
|
22 | modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
23 |
|
24 |
|
25 | module.l = true;
|
26 |
|
27 |
|
28 | return module.exports;
|
29 | }
|
30 |
|
31 |
|
32 | __webpack_require__.ab = __dirname + "/";
|
33 |
|
34 |
|
35 | function startup() {
|
36 |
|
37 | return __webpack_require__(178);
|
38 | };
|
39 |
|
40 | runtime(__webpack_require__);
|
41 |
|
42 |
|
43 | return startup();
|
44 | })
|
45 |
|
46 | ([
|
47 | ,
|
48 | ,
|
49 | ,
|
50 | ,
|
51 |
|
52 | (function(module, __unusedexports, __webpack_require__) {
|
53 |
|
54 | "use strict";
|
55 |
|
56 |
|
57 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
58 |
|
59 | var Buffer = __webpack_require__(393).Buffer;
|
60 | var util = __webpack_require__(669);
|
61 |
|
62 | function copyBuffer(src, target, offset) {
|
63 | src.copy(target, offset);
|
64 | }
|
65 |
|
66 | module.exports = function () {
|
67 | function BufferList() {
|
68 | _classCallCheck(this, BufferList);
|
69 |
|
70 | this.head = null;
|
71 | this.tail = null;
|
72 | this.length = 0;
|
73 | }
|
74 |
|
75 | BufferList.prototype.push = function push(v) {
|
76 | var entry = { data: v, next: null };
|
77 | if (this.length > 0) this.tail.next = entry;else this.head = entry;
|
78 | this.tail = entry;
|
79 | ++this.length;
|
80 | };
|
81 |
|
82 | BufferList.prototype.unshift = function unshift(v) {
|
83 | var entry = { data: v, next: this.head };
|
84 | if (this.length === 0) this.tail = entry;
|
85 | this.head = entry;
|
86 | ++this.length;
|
87 | };
|
88 |
|
89 | BufferList.prototype.shift = function shift() {
|
90 | if (this.length === 0) return;
|
91 | var ret = this.head.data;
|
92 | if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;
|
93 | --this.length;
|
94 | return ret;
|
95 | };
|
96 |
|
97 | BufferList.prototype.clear = function clear() {
|
98 | this.head = this.tail = null;
|
99 | this.length = 0;
|
100 | };
|
101 |
|
102 | BufferList.prototype.join = function join(s) {
|
103 | if (this.length === 0) return '';
|
104 | var p = this.head;
|
105 | var ret = '' + p.data;
|
106 | while (p = p.next) {
|
107 | ret += s + p.data;
|
108 | }return ret;
|
109 | };
|
110 |
|
111 | BufferList.prototype.concat = function concat(n) {
|
112 | if (this.length === 0) return Buffer.alloc(0);
|
113 | if (this.length === 1) return this.head.data;
|
114 | var ret = Buffer.allocUnsafe(n >>> 0);
|
115 | var p = this.head;
|
116 | var i = 0;
|
117 | while (p) {
|
118 | copyBuffer(p.data, ret, i);
|
119 | i += p.data.length;
|
120 | p = p.next;
|
121 | }
|
122 | return ret;
|
123 | };
|
124 |
|
125 | return BufferList;
|
126 | }();
|
127 |
|
128 | if (util && util.inspect && util.inspect.custom) {
|
129 | module.exports.prototype[util.inspect.custom] = function () {
|
130 | var obj = util.inspect({ length: this.length });
|
131 | return this.constructor.name + ' ' + obj;
|
132 | };
|
133 | }
|
134 |
|
135 | }),
|
136 | ,
|
137 | ,
|
138 | ,
|
139 | ,
|
140 | ,
|
141 | ,
|
142 | ,
|
143 | ,
|
144 | ,
|
145 |
|
146 | (function(module, __unusedexports, __webpack_require__) {
|
147 |
|
148 | "use strict";
|
149 |
|
150 | const stringWidth = __webpack_require__(118);
|
151 | const chalk = __webpack_require__(856);
|
152 | const widestLine = __webpack_require__(862);
|
153 | const cliBoxes = __webpack_require__(374);
|
154 | const camelCase = __webpack_require__(656);
|
155 | const ansiAlign = __webpack_require__(177);
|
156 | const termSize = __webpack_require__(658);
|
157 |
|
158 | const getObject = detail => {
|
159 | let object;
|
160 |
|
161 | if (typeof detail === 'number') {
|
162 | object = {
|
163 | top: detail,
|
164 | right: detail * 3,
|
165 | bottom: detail,
|
166 | left: detail * 3
|
167 | };
|
168 | } else {
|
169 | object = {
|
170 | top: 0,
|
171 | right: 0,
|
172 | bottom: 0,
|
173 | left: 0,
|
174 | ...detail
|
175 | };
|
176 | }
|
177 |
|
178 | return object;
|
179 | };
|
180 |
|
181 | const getBorderChars = borderStyle => {
|
182 | const sides = [
|
183 | 'topLeft',
|
184 | 'topRight',
|
185 | 'bottomRight',
|
186 | 'bottomLeft',
|
187 | 'vertical',
|
188 | 'horizontal'
|
189 | ];
|
190 |
|
191 | let chararacters;
|
192 |
|
193 | if (typeof borderStyle === 'string') {
|
194 | chararacters = cliBoxes[borderStyle];
|
195 |
|
196 | if (!chararacters) {
|
197 | throw new TypeError(`Invalid border style: ${borderStyle}`);
|
198 | }
|
199 | } else {
|
200 | for (const side of sides) {
|
201 | if (!borderStyle[side] || typeof borderStyle[side] !== 'string') {
|
202 | throw new TypeError(`Invalid border style: ${side}`);
|
203 | }
|
204 | }
|
205 |
|
206 | chararacters = borderStyle;
|
207 | }
|
208 |
|
209 | return chararacters;
|
210 | };
|
211 |
|
212 | const isHex = color => color.match(/^#[0-f]{3}(?:[0-f]{3})?$/i);
|
213 | const isColorValid = color => typeof color === 'string' && ((chalk[color]) || isHex(color));
|
214 | const getColorFn = color => isHex(color) ? chalk.hex(color) : chalk[color];
|
215 | const getBGColorFn = color => isHex(color) ? chalk.bgHex(color) : chalk[camelCase(['bg', color])];
|
216 |
|
217 | module.exports = (text, options) => {
|
218 | options = {
|
219 | padding: 0,
|
220 | borderStyle: 'single',
|
221 | dimBorder: false,
|
222 | align: 'left',
|
223 | float: 'left',
|
224 | ...options
|
225 | };
|
226 |
|
227 | if (options.borderColor && !isColorValid(options.borderColor)) {
|
228 | throw new Error(`${options.borderColor} is not a valid borderColor`);
|
229 | }
|
230 |
|
231 | if (options.backgroundColor && !isColorValid(options.backgroundColor)) {
|
232 | throw new Error(`${options.backgroundColor} is not a valid backgroundColor`);
|
233 | }
|
234 |
|
235 | const chars = getBorderChars(options.borderStyle);
|
236 | const padding = getObject(options.padding);
|
237 | const margin = getObject(options.margin);
|
238 |
|
239 | const colorizeBorder = border => {
|
240 | const newBorder = options.borderColor ? getColorFn(options.borderColor)(border) : border;
|
241 | return options.dimBorder ? chalk.dim(newBorder) : newBorder;
|
242 | };
|
243 |
|
244 | const colorizeContent = content => options.backgroundColor ? getBGColorFn(options.backgroundColor)(content) : content;
|
245 |
|
246 | text = ansiAlign(text, {align: options.align});
|
247 |
|
248 | const NL = '\n';
|
249 | const PAD = ' ';
|
250 |
|
251 | let lines = text.split(NL);
|
252 |
|
253 | if (padding.top > 0) {
|
254 | lines = new Array(padding.top).fill('').concat(lines);
|
255 | }
|
256 |
|
257 | if (padding.bottom > 0) {
|
258 | lines = lines.concat(new Array(padding.bottom).fill(''));
|
259 | }
|
260 |
|
261 | const contentWidth = widestLine(text) + padding.left + padding.right;
|
262 | const paddingLeft = PAD.repeat(padding.left);
|
263 | const {columns} = termSize();
|
264 | let marginLeft = PAD.repeat(margin.left);
|
265 |
|
266 | if (options.float === 'center') {
|
267 | const padWidth = Math.max((columns - contentWidth) / 2, 0);
|
268 | marginLeft = PAD.repeat(padWidth);
|
269 | } else if (options.float === 'right') {
|
270 | const padWidth = Math.max(columns - contentWidth - margin.right - 2, 0);
|
271 | marginLeft = PAD.repeat(padWidth);
|
272 | }
|
273 |
|
274 | const horizontal = chars.horizontal.repeat(contentWidth);
|
275 | const top = colorizeBorder(NL.repeat(margin.top) + marginLeft + chars.topLeft + horizontal + chars.topRight);
|
276 | const bottom = colorizeBorder(marginLeft + chars.bottomLeft + horizontal + chars.bottomRight + NL.repeat(margin.bottom));
|
277 | const side = colorizeBorder(chars.vertical);
|
278 |
|
279 | const middle = lines.map(line => {
|
280 | const paddingRight = PAD.repeat(contentWidth - stringWidth(line) - padding.left);
|
281 | return marginLeft + side + colorizeContent(paddingLeft + line + paddingRight) + side;
|
282 | }).join(NL);
|
283 |
|
284 | return top + NL + middle + NL + bottom;
|
285 | };
|
286 |
|
287 | module.exports._borderStyles = cliBoxes;
|
288 |
|
289 |
|
290 | }),
|
291 | ,
|
292 |
|
293 | (function(module, __unusedexports, __webpack_require__) {
|
294 |
|
295 | "use strict";
|
296 |
|
297 |
|
298 | const path = __webpack_require__(622);
|
299 | const which = __webpack_require__(505);
|
300 | const pathKey = __webpack_require__(41)();
|
301 |
|
302 | function resolveCommandAttempt(parsed, withoutPathExt) {
|
303 | const cwd = process.cwd();
|
304 | const hasCustomCwd = parsed.options.cwd != null;
|
305 |
|
306 |
|
307 |
|
308 | if (hasCustomCwd) {
|
309 | try {
|
310 | process.chdir(parsed.options.cwd);
|
311 | } catch (err) {
|
312 |
|
313 | }
|
314 | }
|
315 |
|
316 | let resolved;
|
317 |
|
318 | try {
|
319 | resolved = which.sync(parsed.command, {
|
320 | path: (parsed.options.env || process.env)[pathKey],
|
321 | pathExt: withoutPathExt ? path.delimiter : undefined,
|
322 | });
|
323 | } catch (e) {
|
324 |
|
325 | } finally {
|
326 | process.chdir(cwd);
|
327 | }
|
328 |
|
329 |
|
330 |
|
331 | if (resolved) {
|
332 | resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);
|
333 | }
|
334 |
|
335 | return resolved;
|
336 | }
|
337 |
|
338 | function resolveCommand(parsed) {
|
339 | return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
|
340 | }
|
341 |
|
342 | module.exports = resolveCommand;
|
343 |
|
344 |
|
345 | }),
|
346 | ,
|
347 | ,
|
348 |
|
349 | (function(module, __unusedexports, __webpack_require__) {
|
350 |
|
351 | "use strict";
|
352 |
|
353 |
|
354 | const cp = __webpack_require__(129);
|
355 | const parse = __webpack_require__(604);
|
356 | const enoent = __webpack_require__(884);
|
357 |
|
358 | function spawn(command, args, options) {
|
359 |
|
360 | const parsed = parse(command, args, options);
|
361 |
|
362 |
|
363 | const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
|
364 |
|
365 |
|
366 |
|
367 | enoent.hookChildProcess(spawned, parsed);
|
368 |
|
369 | return spawned;
|
370 | }
|
371 |
|
372 | function spawnSync(command, args, options) {
|
373 |
|
374 | const parsed = parse(command, args, options);
|
375 |
|
376 |
|
377 | const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
|
378 |
|
379 |
|
380 | result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
|
381 |
|
382 | return result;
|
383 | }
|
384 |
|
385 | module.exports = spawn;
|
386 | module.exports.spawn = spawn;
|
387 | module.exports.sync = spawnSync;
|
388 |
|
389 | module.exports._parse = parse;
|
390 | module.exports._enoent = enoent;
|
391 |
|
392 |
|
393 | }),
|
394 | ,
|
395 | ,
|
396 | ,
|
397 | ,
|
398 | ,
|
399 | ,
|
400 | ,
|
401 | ,
|
402 | ,
|
403 | ,
|
404 | ,
|
405 | ,
|
406 | ,
|
407 | ,
|
408 |
|
409 | (function(module, __unusedexports, __webpack_require__) {
|
410 |
|
411 | "use strict";
|
412 |
|
413 |
|
414 |
|
415 |
|
416 | var NodeBuffer;
|
417 |
|
418 | try {
|
419 |
|
420 | var _require = require;
|
421 | NodeBuffer = _require('buffer').Buffer;
|
422 | } catch (__) {}
|
423 |
|
424 | var Type = __webpack_require__(653);
|
425 |
|
426 |
|
427 |
|
428 | var BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r';
|
429 |
|
430 |
|
431 | function resolveYamlBinary(data) {
|
432 | if (data === null) return false;
|
433 |
|
434 | var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP;
|
435 |
|
436 |
|
437 | for (idx = 0; idx < max; idx++) {
|
438 | code = map.indexOf(data.charAt(idx));
|
439 |
|
440 |
|
441 | if (code > 64) continue;
|
442 |
|
443 |
|
444 | if (code < 0) return false;
|
445 |
|
446 | bitlen += 6;
|
447 | }
|
448 |
|
449 |
|
450 | return (bitlen % 8) === 0;
|
451 | }
|
452 |
|
453 | function constructYamlBinary(data) {
|
454 | var idx, tailbits,
|
455 | input = data.replace(/[\r\n=]/g, ''),
|
456 | max = input.length,
|
457 | map = BASE64_MAP,
|
458 | bits = 0,
|
459 | result = [];
|
460 |
|
461 |
|
462 |
|
463 | for (idx = 0; idx < max; idx++) {
|
464 | if ((idx % 4 === 0) && idx) {
|
465 | result.push((bits >> 16) & 0xFF);
|
466 | result.push((bits >> 8) & 0xFF);
|
467 | result.push(bits & 0xFF);
|
468 | }
|
469 |
|
470 | bits = (bits << 6) | map.indexOf(input.charAt(idx));
|
471 | }
|
472 |
|
473 |
|
474 |
|
475 | tailbits = (max % 4) * 6;
|
476 |
|
477 | if (tailbits === 0) {
|
478 | result.push((bits >> 16) & 0xFF);
|
479 | result.push((bits >> 8) & 0xFF);
|
480 | result.push(bits & 0xFF);
|
481 | } else if (tailbits === 18) {
|
482 | result.push((bits >> 10) & 0xFF);
|
483 | result.push((bits >> 2) & 0xFF);
|
484 | } else if (tailbits === 12) {
|
485 | result.push((bits >> 4) & 0xFF);
|
486 | }
|
487 |
|
488 |
|
489 | if (NodeBuffer) {
|
490 |
|
491 | return NodeBuffer.from ? NodeBuffer.from(result) : new NodeBuffer(result);
|
492 | }
|
493 |
|
494 | return result;
|
495 | }
|
496 |
|
497 | function representYamlBinary(object /*, style*/) {
|
498 | var result = '', bits = 0, idx, tail,
|
499 | max = object.length,
|
500 | map = BASE64_MAP;
|
501 |
|
502 |
|
503 |
|
504 | for (idx = 0; idx < max; idx++) {
|
505 | if ((idx % 3 === 0) && idx) {
|
506 | result += map[(bits >> 18) & 0x3F];
|
507 | result += map[(bits >> 12) & 0x3F];
|
508 | result += map[(bits >> 6) & 0x3F];
|
509 | result += map[bits & 0x3F];
|
510 | }
|
511 |
|
512 | bits = (bits << 8) + object[idx];
|
513 | }
|
514 |
|
515 |
|
516 |
|
517 | tail = max % 3;
|
518 |
|
519 | if (tail === 0) {
|
520 | result += map[(bits >> 18) & 0x3F];
|
521 | result += map[(bits >> 12) & 0x3F];
|
522 | result += map[(bits >> 6) & 0x3F];
|
523 | result += map[bits & 0x3F];
|
524 | } else if (tail === 2) {
|
525 | result += map[(bits >> 10) & 0x3F];
|
526 | result += map[(bits >> 4) & 0x3F];
|
527 | result += map[(bits << 2) & 0x3F];
|
528 | result += map[64];
|
529 | } else if (tail === 1) {
|
530 | result += map[(bits >> 2) & 0x3F];
|
531 | result += map[(bits << 4) & 0x3F];
|
532 | result += map[64];
|
533 | result += map[64];
|
534 | }
|
535 |
|
536 | return result;
|
537 | }
|
538 |
|
539 | function isBinary(object) {
|
540 | return NodeBuffer && NodeBuffer.isBuffer(object);
|
541 | }
|
542 |
|
543 | module.exports = new Type('tag:yaml.org,2002:binary', {
|
544 | kind: 'scalar',
|
545 | resolve: resolveYamlBinary,
|
546 | construct: constructYamlBinary,
|
547 | predicate: isBinary,
|
548 | represent: representYamlBinary
|
549 | });
|
550 |
|
551 |
|
552 | }),
|
553 |
|
554 | (function(module, __unusedexports, __webpack_require__) {
|
555 |
|
556 | "use strict";
|
557 |
|
558 |
|
559 | var Type = __webpack_require__(653);
|
560 |
|
561 | var YAML_DATE_REGEXP = new RegExp(
|
562 | '^([0-9][0-9][0-9][0-9])' +
|
563 | '-([0-9][0-9])' +
|
564 | '-([0-9][0-9])$');
|
565 |
|
566 | var YAML_TIMESTAMP_REGEXP = new RegExp(
|
567 | '^([0-9][0-9][0-9][0-9])' +
|
568 | '-([0-9][0-9]?)' +
|
569 | '-([0-9][0-9]?)' +
|
570 | '(?:[Tt]|[ \\t]+)' +
|
571 | '([0-9][0-9]?)' +
|
572 | ':([0-9][0-9])' +
|
573 | ':([0-9][0-9])' +
|
574 | '(?:\\.([0-9]*))?' +
|
575 | '(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' +
|
576 | '(?::([0-9][0-9]))?))?$');
|
577 |
|
578 | function resolveYamlTimestamp(data) {
|
579 | if (data === null) return false;
|
580 | if (YAML_DATE_REGEXP.exec(data) !== null) return true;
|
581 | if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true;
|
582 | return false;
|
583 | }
|
584 |
|
585 | function constructYamlTimestamp(data) {
|
586 | var match, year, month, day, hour, minute, second, fraction = 0,
|
587 | delta = null, tz_hour, tz_minute, date;
|
588 |
|
589 | match = YAML_DATE_REGEXP.exec(data);
|
590 | if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);
|
591 |
|
592 | if (match === null) throw new Error('Date resolve error');
|
593 |
|
594 |
|
595 |
|
596 | year = +(match[1]);
|
597 | month = +(match[2]) - 1;
|
598 | day = +(match[3]);
|
599 |
|
600 | if (!match[4]) {
|
601 | return new Date(Date.UTC(year, month, day));
|
602 | }
|
603 |
|
604 |
|
605 |
|
606 | hour = +(match[4]);
|
607 | minute = +(match[5]);
|
608 | second = +(match[6]);
|
609 |
|
610 | if (match[7]) {
|
611 | fraction = match[7].slice(0, 3);
|
612 | while (fraction.length < 3) {
|
613 | fraction += '0';
|
614 | }
|
615 | fraction = +fraction;
|
616 | }
|
617 |
|
618 |
|
619 |
|
620 | if (match[9]) {
|
621 | tz_hour = +(match[10]);
|
622 | tz_minute = +(match[11] || 0);
|
623 | delta = (tz_hour * 60 + tz_minute) * 60000;
|
624 | if (match[9] === '-') delta = -delta;
|
625 | }
|
626 |
|
627 | date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
|
628 |
|
629 | if (delta) date.setTime(date.getTime() - delta);
|
630 |
|
631 | return date;
|
632 | }
|
633 |
|
634 | function representYamlTimestamp(object /*, style*/) {
|
635 | return object.toISOString();
|
636 | }
|
637 |
|
638 | module.exports = new Type('tag:yaml.org,2002:timestamp', {
|
639 | kind: 'scalar',
|
640 | resolve: resolveYamlTimestamp,
|
641 | construct: constructYamlTimestamp,
|
642 | instanceOf: Date,
|
643 | represent: representYamlTimestamp
|
644 | });
|
645 |
|
646 |
|
647 | }),
|
648 | ,
|
649 | ,
|
650 | ,
|
651 | ,
|
652 | ,
|
653 |
|
654 | (function(module) {
|
655 |
|
656 | "use strict";
|
657 |
|
658 | module.exports = opts => {
|
659 | opts = opts || {};
|
660 |
|
661 | const env = opts.env || process.env;
|
662 | const platform = opts.platform || process.platform;
|
663 |
|
664 | if (platform !== 'win32') {
|
665 | return 'PATH';
|
666 | }
|
667 |
|
668 | return Object.keys(env).find(x => x.toUpperCase() === 'PATH') || 'Path';
|
669 | };
|
670 |
|
671 |
|
672 | }),
|
673 |
|
674 | (function(module, __unusedexports, __webpack_require__) {
|
675 |
|
676 | "use strict";
|
677 |
|
678 |
|
679 | var Type = __webpack_require__(653);
|
680 |
|
681 | function resolveYamlNull(data) {
|
682 | if (data === null) return true;
|
683 |
|
684 | var max = data.length;
|
685 |
|
686 | return (max === 1 && data === '~') ||
|
687 | (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL'));
|
688 | }
|
689 |
|
690 | function constructYamlNull() {
|
691 | return null;
|
692 | }
|
693 |
|
694 | function isNull(object) {
|
695 | return object === null;
|
696 | }
|
697 |
|
698 | module.exports = new Type('tag:yaml.org,2002:null', {
|
699 | kind: 'scalar',
|
700 | resolve: resolveYamlNull,
|
701 | construct: constructYamlNull,
|
702 | predicate: isNull,
|
703 | represent: {
|
704 | canonical: function () { return '~'; },
|
705 | lowercase: function () { return 'null'; },
|
706 | uppercase: function () { return 'NULL'; },
|
707 | camelcase: function () { return 'Null'; }
|
708 | },
|
709 | defaultStyle: 'lowercase'
|
710 | });
|
711 |
|
712 |
|
713 | }),
|
714 |
|
715 | (function(module, __unusedexports, __webpack_require__) {
|
716 |
|
717 |
|
718 | const EventEmitter = __webpack_require__(614)
|
719 | const util = __webpack_require__(669)
|
720 |
|
721 |
|
722 | const Deque = __webpack_require__(431)
|
723 |
|
724 | class ReleaseEmitter extends EventEmitter {}
|
725 |
|
726 | function isFn (x) {
|
727 | return typeof x === 'function'
|
728 | }
|
729 |
|
730 | function defaultInit () {
|
731 | return '1'
|
732 | }
|
733 |
|
734 | class Sema {
|
735 | constructor (nr, { initFn = defaultInit, pauseFn, resumeFn, capacity = 10 } = {}) {
|
736 | if (isFn(pauseFn) ^ isFn(resumeFn)) {
|
737 | throw new Error('pauseFn and resumeFn must be both set for pausing')
|
738 | }
|
739 |
|
740 | this.nrTokens = nr
|
741 | this.free = new Deque(nr)
|
742 | this.waiting = new Deque(capacity)
|
743 | this.releaseEmitter = new ReleaseEmitter()
|
744 | this.noTokens = initFn === defaultInit
|
745 | this.pauseFn = pauseFn
|
746 | this.resumeFn = resumeFn
|
747 |
|
748 | this.releaseEmitter.on('release', (token) => {
|
749 | const p = this.waiting.shift()
|
750 | if (p) {
|
751 | p.resolve(token)
|
752 | } else {
|
753 | if (this.resumeFn && this.paused) {
|
754 | this.paused = false
|
755 | this.resumeFn()
|
756 | }
|
757 |
|
758 | this.free.push(token)
|
759 | }
|
760 | })
|
761 |
|
762 | for (let i = 0; i < nr; i++) {
|
763 | this.free.push(initFn())
|
764 | }
|
765 | }
|
766 |
|
767 | async acquire () {
|
768 | let token = this.free.pop()
|
769 |
|
770 | if (token) {
|
771 | return token
|
772 | }
|
773 |
|
774 | return new Promise((resolve, reject) => {
|
775 | if (this.pauseFn && !this.paused) {
|
776 | this.paused = true
|
777 | this.pauseFn()
|
778 | }
|
779 |
|
780 | this.waiting.push({ resolve, reject })
|
781 | })
|
782 | }
|
783 | async v () {
|
784 | return this.acquire();
|
785 | }
|
786 |
|
787 | release (token) {
|
788 | this.releaseEmitter.emit('release', this.noTokens ? '1' : token)
|
789 | }
|
790 | p (token) {
|
791 | return this.release(token)
|
792 | }
|
793 |
|
794 | drain () {
|
795 | const a = new Array(this.nrTokens)
|
796 | for (let i = 0; i < this.nrTokens; i++) {
|
797 | a[i] = this.acquire()
|
798 | }
|
799 | return Promise.all(a)
|
800 | }
|
801 |
|
802 | nrWaiting () {
|
803 | return this.waiting.length
|
804 | }
|
805 | }
|
806 |
|
807 | Sema.prototype.v = util.deprecate(Sema.prototype.v, '`v()` is deperecated; use `acquire()` instead')
|
808 | Sema.prototype.p = util.deprecate(Sema.prototype.p, '`p()` is deprecated; use `release()` instead')
|
809 | module.exports = Sema
|
810 |
|
811 |
|
812 | }),
|
813 | ,
|
814 | ,
|
815 |
|
816 | (function(module, __unusedexports, __webpack_require__) {
|
817 |
|
818 | "use strict";
|
819 |
|
820 |
|
821 | const u = __webpack_require__(323).fromCallback
|
822 | const path = __webpack_require__(622)
|
823 | const fs = __webpack_require__(729)
|
824 | const mkdir = __webpack_require__(648)
|
825 | const pathExists = __webpack_require__(370).pathExists
|
826 |
|
827 | function createFile (file, callback) {
|
828 | function makeFile () {
|
829 | fs.writeFile(file, '', err => {
|
830 | if (err) return callback(err)
|
831 | callback()
|
832 | })
|
833 | }
|
834 |
|
835 | fs.stat(file, (err, stats) => {
|
836 | if (!err && stats.isFile()) return callback()
|
837 | const dir = path.dirname(file)
|
838 | pathExists(dir, (err, dirExists) => {
|
839 | if (err) return callback(err)
|
840 | if (dirExists) return makeFile()
|
841 | mkdir.mkdirs(dir, err => {
|
842 | if (err) return callback(err)
|
843 | makeFile()
|
844 | })
|
845 | })
|
846 | })
|
847 | }
|
848 |
|
849 | function createFileSync (file) {
|
850 | let stats
|
851 | try {
|
852 | stats = fs.statSync(file)
|
853 | } catch (e) {}
|
854 | if (stats && stats.isFile()) return
|
855 |
|
856 | const dir = path.dirname(file)
|
857 | if (!fs.existsSync(dir)) {
|
858 | mkdir.mkdirsSync(dir)
|
859 | }
|
860 |
|
861 | fs.writeFileSync(file, '')
|
862 | }
|
863 |
|
864 | module.exports = {
|
865 | createFile: u(createFile),
|
866 | createFileSync
|
867 | }
|
868 |
|
869 |
|
870 | }),
|
871 | ,
|
872 | ,
|
873 | ,
|
874 |
|
875 | (function(module) {
|
876 |
|
877 | "use strict";
|
878 |
|
879 |
|
880 |
|
881 | module.exports = {
|
882 | "437": "cp437",
|
883 | "737": "cp737",
|
884 | "775": "cp775",
|
885 | "850": "cp850",
|
886 | "852": "cp852",
|
887 | "855": "cp855",
|
888 | "856": "cp856",
|
889 | "857": "cp857",
|
890 | "858": "cp858",
|
891 | "860": "cp860",
|
892 | "861": "cp861",
|
893 | "862": "cp862",
|
894 | "863": "cp863",
|
895 | "864": "cp864",
|
896 | "865": "cp865",
|
897 | "866": "cp866",
|
898 | "869": "cp869",
|
899 | "874": "windows874",
|
900 | "922": "cp922",
|
901 | "1046": "cp1046",
|
902 | "1124": "cp1124",
|
903 | "1125": "cp1125",
|
904 | "1129": "cp1129",
|
905 | "1133": "cp1133",
|
906 | "1161": "cp1161",
|
907 | "1162": "cp1162",
|
908 | "1163": "cp1163",
|
909 | "1250": "windows1250",
|
910 | "1251": "windows1251",
|
911 | "1252": "windows1252",
|
912 | "1253": "windows1253",
|
913 | "1254": "windows1254",
|
914 | "1255": "windows1255",
|
915 | "1256": "windows1256",
|
916 | "1257": "windows1257",
|
917 | "1258": "windows1258",
|
918 | "28591": "iso88591",
|
919 | "28592": "iso88592",
|
920 | "28593": "iso88593",
|
921 | "28594": "iso88594",
|
922 | "28595": "iso88595",
|
923 | "28596": "iso88596",
|
924 | "28597": "iso88597",
|
925 | "28598": "iso88598",
|
926 | "28599": "iso88599",
|
927 | "28600": "iso885910",
|
928 | "28601": "iso885911",
|
929 | "28603": "iso885913",
|
930 | "28604": "iso885914",
|
931 | "28605": "iso885915",
|
932 | "28606": "iso885916",
|
933 | "windows874": {
|
934 | "type": "_sbcs",
|
935 | "chars": "€����…�����������‘’“”•–—�������� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"
|
936 | },
|
937 | "win874": "windows874",
|
938 | "cp874": "windows874",
|
939 | "windows1250": {
|
940 | "type": "_sbcs",
|
941 | "chars": "€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź ˇ˘Ł¤Ą¦§¨©Ş«¬®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙"
|
942 | },
|
943 | "win1250": "windows1250",
|
944 | "cp1250": "windows1250",
|
945 | "windows1251": {
|
946 | "type": "_sbcs",
|
947 | "chars": "ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"
|
948 | },
|
949 | "win1251": "windows1251",
|
950 | "cp1251": "windows1251",
|
951 | "windows1252": {
|
952 | "type": "_sbcs",
|
953 | "chars": "€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
|
954 | },
|
955 | "win1252": "windows1252",
|
956 | "cp1252": "windows1252",
|
957 | "windows1253": {
|
958 | "type": "_sbcs",
|
959 | "chars": "€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›���� ΅Ά£¤¥¦§¨©�«¬®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"
|
960 | },
|
961 | "win1253": "windows1253",
|
962 | "cp1253": "windows1253",
|
963 | "windows1254": {
|
964 | "type": "_sbcs",
|
965 | "chars": "€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖ×ØÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ"
|
966 | },
|
967 | "win1254": "windows1254",
|
968 | "cp1254": "windows1254",
|
969 | "windows1255": {
|
970 | "type": "_sbcs",
|
971 | "chars": "€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹֺֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת���"
|
972 | },
|
973 | "win1255": "windows1255",
|
974 | "cp1255": "windows1255",
|
975 | "windows1256": {
|
976 | "type": "_sbcs",
|
977 | "chars": "€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œں ،¢£¤¥¦§¨©ھ«¬®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûüے"
|
978 | },
|
979 | "win1256": "windows1256",
|
980 | "cp1256": "windows1256",
|
981 | "windows1257": {
|
982 | "type": "_sbcs",
|
983 | "chars": "€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛� �¢£¤�¦§Ø©Ŗ«¬®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙"
|
984 | },
|
985 | "win1257": "windows1257",
|
986 | "cp1257": "windows1257",
|
987 | "windows1258": {
|
988 | "type": "_sbcs",
|
989 | "chars": "€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖ×ØÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"
|
990 | },
|
991 | "win1258": "windows1258",
|
992 | "cp1258": "windows1258",
|
993 | "iso88591": {
|
994 | "type": "_sbcs",
|
995 | "chars": "
¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
|
996 | },
|
997 | "cp28591": "iso88591",
|
998 | "iso88592": {
|
999 | "type": "_sbcs",
|
1000 | "chars": "
Ą˘Ł¤ĽŚ§¨ŠŞŤŹŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙"
|
1001 | },
|
1002 | "cp28592": "iso88592",
|
1003 | "iso88593": {
|
1004 | "type": "_sbcs",
|
1005 | "chars": "
Ħ˘£¤�Ĥ§¨İŞĞĴ�Ż°ħ²³´µĥ·¸ışğĵ½�żÀÁÂ�ÄĊĈÇÈÉÊËÌÍÎÏ�ÑÒÓÔĠÖ×ĜÙÚÛÜŬŜßàáâ�äċĉçèéêëìíîï�ñòóôġö÷ĝùúûüŭŝ˙"
|
1006 | },
|
1007 | "cp28593": "iso88593",
|
1008 | "iso88594": {
|
1009 | "type": "_sbcs",
|
1010 | "chars": "
ĄĸŖ¤ĨĻ§¨ŠĒĢŦŽ¯°ą˛ŗ´ĩļˇ¸šēģŧŊžŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎĪĐŅŌĶÔÕÖ×ØŲÚÛÜŨŪßāáâãäåæįčéęëėíîīđņōķôõö÷øųúûüũū˙"
|
1011 | },
|
1012 | "cp28594": "iso88594",
|
1013 | "iso88595": {
|
1014 | "type": "_sbcs",
|
1015 | "chars": "
ЁЂЃЄЅІЇЈЉЊЋЌЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ"
|
1016 | },
|
1017 | "cp28595": "iso88595",
|
1018 | "iso88596": {
|
1019 | "type": "_sbcs",
|
1020 | "chars": "
���¤�������،�������������؛���؟�ءآأؤإئابةتثجحخدذرزسشصضطظعغ�����ـفقكلمنهوىيًٌٍَُِّْ�������������"
|
1021 | },
|
1022 | "cp28596": "iso88596",
|
1023 | "iso88597": {
|
1024 | "type": "_sbcs",
|
1025 | "chars": "
‘’£€₯¦§¨©ͺ«¬�―°±²³΄΅Ά·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"
|
1026 | },
|
1027 | "cp28597": "iso88597",
|
1028 | "iso88598": {
|
1029 | "type": "_sbcs",
|
1030 | "chars": "
�¢£¤¥¦§¨©×«¬®¯°±²³´µ¶·¸¹÷»¼½¾��������������������������������‗אבגדהוזחטיךכלםמןנסעףפץצקרשת���"
|
1031 | },
|
1032 | "cp28598": "iso88598",
|
1033 | "iso88599": {
|
1034 | "type": "_sbcs",
|
1035 | "chars": "
¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖ×ØÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ"
|
1036 | },
|
1037 | "cp28599": "iso88599",
|
1038 | "iso885910": {
|
1039 | "type": "_sbcs",
|
1040 | "chars": "
ĄĒĢĪĨĶ§ĻĐŠŦŽŪŊ°ąēģīĩķ·ļđšŧž―ūŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎÏÐŅŌÓÔÕÖŨØŲÚÛÜÝÞßāáâãäåæįčéęëėíîïðņōóôõöũøųúûüýþĸ"
|
1041 | },
|
1042 | "cp28600": "iso885910",
|
1043 | "iso885911": {
|
1044 | "type": "_sbcs",
|
1045 | "chars": "
กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"
|
1046 | },
|
1047 | "cp28601": "iso885911",
|
1048 | "iso885913": {
|
1049 | "type": "_sbcs",
|
1050 | "chars": "
”¢£¤„¦§Ø©Ŗ«¬®Æ°±²³“µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž’"
|
1051 | },
|
1052 | "cp28603": "iso885913",
|
1053 | "iso885914": {
|
1054 | "type": "_sbcs",
|
1055 | "chars": "
Ḃḃ£ĊċḊ§Ẁ©ẂḋỲ®ŸḞḟĠġṀṁ¶ṖẁṗẃṠỳẄẅṡÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŴÑÒÓÔÕÖṪØÙÚÛÜÝŶßàáâãäåæçèéêëìíîïŵñòóôõöṫøùúûüýŷÿ"
|
1056 | },
|
1057 | "cp28604": "iso885914",
|
1058 | "iso885915": {
|
1059 | "type": "_sbcs",
|
1060 | "chars": "
¡¢£€¥Š§š©ª«¬®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
|
1061 | },
|
1062 | "cp28605": "iso885915",
|
1063 | "iso885916": {
|
1064 | "type": "_sbcs",
|
1065 | "chars": "
ĄąŁ€„Š§š©Ș«ŹźŻ°±ČłŽ”¶·žčș»ŒœŸżÀÁÂĂÄĆÆÇÈÉÊËÌÍÎÏĐŃÒÓÔŐÖŚŰÙÚÛÜĘȚßàáâăäćæçèéêëìíîïđńòóôőöśűùúûüęțÿ"
|
1066 | },
|
1067 | "cp28606": "iso885916",
|
1068 | "cp437": {
|
1069 | "type": "_sbcs",
|
1070 | "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
|
1071 | },
|
1072 | "ibm437": "cp437",
|
1073 | "csibm437": "cp437",
|
1074 | "cp737": {
|
1075 | "type": "_sbcs",
|
1076 | "chars": "ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■ "
|
1077 | },
|
1078 | "ibm737": "cp737",
|
1079 | "csibm737": "cp737",
|
1080 | "cp775": {
|
1081 | "type": "_sbcs",
|
1082 | "chars": "ĆüéāäģåćłēŖŗīŹÄÅÉæÆōöĢ¢ŚśÖÜø£ØפĀĪóŻżź”¦©®¬½¼Ł«»░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀ÓßŌŃõÕµńĶķĻļņĒŅ’±“¾¶§÷„°∙·¹³²■ "
|
1083 | },
|
1084 | "ibm775": "cp775",
|
1085 | "csibm775": "cp775",
|
1086 | "cp850": {
|
1087 | "type": "_sbcs",
|
1088 | "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø׃áíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´±‗¾¶§÷¸°¨·¹³²■ "
|
1089 | },
|
1090 | "ibm850": "cp850",
|
1091 | "csibm850": "cp850",
|
1092 | "cp852": {
|
1093 | "type": "_sbcs",
|
1094 | "chars": "ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´˝˛ˇ˘§÷¸°¨˙űŘř■ "
|
1095 | },
|
1096 | "ibm852": "cp852",
|
1097 | "csibm852": "cp852",
|
1098 | "cp855": {
|
1099 | "type": "_sbcs",
|
1100 | "chars": "ђЂѓЃёЁєЄѕЅіІїЇјЈљЉњЊћЋќЌўЎџЏюЮъЪаАбБцЦдДеЕфФгГ«»░▒▓│┤хХиИ╣║╗╝йЙ┐└┴┬├─┼кК╚╔╩╦╠═╬¤лЛмМнНоОп┘┌█▄Пя▀ЯрРсСтТуУжЖвВьЬ№ыЫзЗшШэЭщЩчЧ§■ "
|
1101 | },
|
1102 | "ibm855": "cp855",
|
1103 | "csibm855": "cp855",
|
1104 | "cp856": {
|
1105 | "type": "_sbcs",
|
1106 | "chars": "אבגדהוזחטיךכלםמןנסעףפץצקרשת�£�×����������®¬½¼�«»░▒▓│┤���©╣║╗╝¢¥┐└┴┬├─┼��╚╔╩╦╠═╬¤���������┘┌█▄¦�▀������µ�������¯´±‗¾¶§÷¸°¨·¹³²■ "
|
1107 | },
|
1108 | "ibm856": "cp856",
|
1109 | "csibm856": "cp856",
|
1110 | "cp857": {
|
1111 | "type": "_sbcs",
|
1112 | "chars": "ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´±�¾¶§÷¸°¨·¹³²■ "
|
1113 | },
|
1114 | "ibm857": "cp857",
|
1115 | "csibm857": "cp857",
|
1116 | "cp858": {
|
1117 | "type": "_sbcs",
|
1118 | "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø׃áíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈ€ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´±‗¾¶§÷¸°¨·¹³²■ "
|
1119 | },
|
1120 | "ibm858": "cp858",
|
1121 | "csibm858": "cp858",
|
1122 | "cp860": {
|
1123 | "type": "_sbcs",
|
1124 | "chars": "ÇüéâãàÁçêÊèÍÔìÃÂÉÀÈôõòÚùÌÕÜ¢£Ù₧ÓáíóúñѪº¿Ò¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
|
1125 | },
|
1126 | "ibm860": "cp860",
|
1127 | "csibm860": "cp860",
|
1128 | "cp861": {
|
1129 | "type": "_sbcs",
|
1130 | "chars": "ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
|
1131 | },
|
1132 | "ibm861": "cp861",
|
1133 | "csibm861": "cp861",
|
1134 | "cp862": {
|
1135 | "type": "_sbcs",
|
1136 | "chars": "אבגדהוזחטיךכלםמןנסעףפץצקרשת¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
|
1137 | },
|
1138 | "ibm862": "cp862",
|
1139 | "csibm862": "cp862",
|
1140 | "cp863": {
|
1141 | "type": "_sbcs",
|
1142 | "chars": "ÇüéâÂà¶çêëèïî‗À§ÉÈÊôËÏûù¤ÔÜ¢£ÙÛƒ¦´óú¨¸³¯Î⌐¬½¼¾«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
|
1143 | },
|
1144 | "ibm863": "cp863",
|
1145 | "csibm863": "cp863",
|
1146 | "cp864": {
|
1147 | "type": "_sbcs",
|
1148 | "chars": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#$٪&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸ��ﻻﻼ� ﺂ£¤ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�"
|
1149 | },
|
1150 | "ibm864": "cp864",
|
1151 | "csibm864": "cp864",
|
1152 | "cp865": {
|
1153 | "type": "_sbcs",
|
1154 | "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
|
1155 | },
|
1156 | "ibm865": "cp865",
|
1157 | "csibm865": "cp865",
|
1158 | "cp866": {
|
1159 | "type": "_sbcs",
|
1160 | "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ "
|
1161 | },
|
1162 | "ibm866": "cp866",
|
1163 | "csibm866": "cp866",
|
1164 | "cp869": {
|
1165 | "type": "_sbcs",
|
1166 | "chars": "������Ά�·¬¦‘’Έ―ΉΊΪΌ��ΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄±υφχ§ψ΅°¨ωϋΰώ■ "
|
1167 | },
|
1168 | "ibm869": "cp869",
|
1169 | "csibm869": "cp869",
|
1170 | "cp922": {
|
1171 | "type": "_sbcs",
|
1172 | "chars": "
¡¢£¤¥¦§¨©ª«¬®‾°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŠÑÒÓÔÕÖ×ØÙÚÛÜÝŽßàáâãäåæçèéêëìíîïšñòóôõö÷øùúûüýžÿ"
|
1173 | },
|
1174 | "ibm922": "cp922",
|
1175 | "csibm922": "cp922",
|
1176 | "cp1046": {
|
1177 | "type": "_sbcs",
|
1178 | "chars": "ﺈ×÷ﹱ■│─┐┌└┘ﹹﹻﹽﹿﹷﺊﻰﻳﻲﻎﻏﻐﻶﻸﻺﻼ ¤ﺋﺑﺗﺛﺟﺣ،ﺧﺳ٠١٢٣٤٥٦٧٨٩ﺷ؛ﺻﺿﻊ؟ﻋءآأؤإئابةتثجحخدذرزسشصضطﻇعغﻌﺂﺄﺎﻓـفقكلمنهوىيًٌٍَُِّْﻗﻛﻟﻵﻷﻹﻻﻣﻧﻬﻩ�"
|
1179 | },
|
1180 | "ibm1046": "cp1046",
|
1181 | "csibm1046": "cp1046",
|
1182 | "cp1124": {
|
1183 | "type": "_sbcs",
|
1184 | "chars": "
ЁЂҐЄЅІЇЈЉЊЋЌЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђґєѕіїјљњћќ§ўџ"
|
1185 | },
|
1186 | "ibm1124": "cp1124",
|
1187 | "csibm1124": "cp1124",
|
1188 | "cp1125": {
|
1189 | "type": "_sbcs",
|
1190 | "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■ "
|
1191 | },
|
1192 | "ibm1125": "cp1125",
|
1193 | "csibm1125": "cp1125",
|
1194 | "cp1129": {
|
1195 | "type": "_sbcs",
|
1196 | "chars": "
¡¢£¤¥¦§œ©ª«¬®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖ×ØÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"
|
1197 | },
|
1198 | "ibm1129": "cp1129",
|
1199 | "csibm1129": "cp1129",
|
1200 | "cp1133": {
|
1201 | "type": "_sbcs",
|
1202 | "chars": "
ກຂຄງຈສຊຍດຕຖທນບປຜຝພຟມຢຣລວຫອຮ���ຯະາຳິີຶືຸູຼັົຽ���ເແໂໃໄ່້໊໋໌ໍໆ�ໜໝ₭����������������໐໑໒໓໔໕໖໗໘໙��¢¬¦�"
|
1203 | },
|
1204 | "ibm1133": "cp1133",
|
1205 | "csibm1133": "cp1133",
|
1206 | "cp1161": {
|
1207 | "type": "_sbcs",
|
1208 | "chars": "��������������������������������่กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู้๊๋€฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛¢¬¦ "
|
1209 | },
|
1210 | "ibm1161": "cp1161",
|
1211 | "csibm1161": "cp1161",
|
1212 | "cp1162": {
|
1213 | "type": "_sbcs",
|
1214 | "chars": "€…‘’“”•–— กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"
|
1215 | },
|
1216 | "ibm1162": "cp1162",
|
1217 | "csibm1162": "cp1162",
|
1218 | "cp1163": {
|
1219 | "type": "_sbcs",
|
1220 | "chars": "
¡¢£€¥¦§œ©ª«¬®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖ×ØÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"
|
1221 | },
|
1222 | "ibm1163": "cp1163",
|
1223 | "csibm1163": "cp1163",
|
1224 | "maccroatian": {
|
1225 | "type": "_sbcs",
|
1226 | "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊�©⁄¤‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ"
|
1227 | },
|
1228 | "maccyrillic": {
|
1229 | "type": "_sbcs",
|
1230 | "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤"
|
1231 | },
|
1232 | "macgreek": {
|
1233 | "type": "_sbcs",
|
1234 | "chars": "Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�"
|
1235 | },
|
1236 | "maciceland": {
|
1237 | "type": "_sbcs",
|
1238 | "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"
|
1239 | },
|
1240 | "macroman": {
|
1241 | "type": "_sbcs",
|
1242 | "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"
|
1243 | },
|
1244 | "macromania": {
|
1245 | "type": "_sbcs",
|
1246 | "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂŞ∞±≤≥¥µ∂∑∏π∫ªºΩăş¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›Ţţ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"
|
1247 | },
|
1248 | "macthai": {
|
1249 | "type": "_sbcs",
|
1250 | "chars": "«»…“”�•‘’� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู–—฿เแโใไๅๆ็่้๊๋์ํ™๏๐๑๒๓๔๕๖๗๘๙®©����"
|
1251 | },
|
1252 | "macturkish": {
|
1253 | "type": "_sbcs",
|
1254 | "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ"
|
1255 | },
|
1256 | "macukraine": {
|
1257 | "type": "_sbcs",
|
1258 | "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤"
|
1259 | },
|
1260 | "koi8r": {
|
1261 | "type": "_sbcs",
|
1262 | "chars": "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"
|
1263 | },
|
1264 | "koi8u": {
|
1265 | "type": "_sbcs",
|
1266 | "chars": "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"
|
1267 | },
|
1268 | "koi8ru": {
|
1269 | "type": "_sbcs",
|
1270 | "chars": "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґў╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪ҐЎ©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"
|
1271 | },
|
1272 | "koi8t": {
|
1273 | "type": "_sbcs",
|
1274 | "chars": "қғ‚Ғ„…†‡�‰ҳ‹ҲҷҶ�Қ‘’“”•–—�™�›�����ӯӮё¤ӣ¦§���«¬®�°±²Ё�Ӣ¶·�№�»���©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"
|
1275 | },
|
1276 | "armscii8": {
|
1277 | "type": "_sbcs",
|
1278 | "chars": "
�և։)(»«—.՝,-֊…՜՛՞ԱաԲբԳգԴդԵեԶզԷէԸըԹթԺժԻիԼլԽխԾծԿկՀհՁձՂղՃճՄմՅյՆնՇշՈոՉչՊպՋջՌռՍսՎվՏտՐրՑցՒւՓփՔքՕօՖֆ՚�"
|
1279 | },
|
1280 | "rk1048": {
|
1281 | "type": "_sbcs",
|
1282 | "chars": "ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—�™љ›њқһџ ҰұӘ¤Ө¦§Ё©Ғ«¬®Ү°±Ііөµ¶·ё№ғ»әҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"
|
1283 | },
|
1284 | "tcvn": {
|
1285 | "type": "_sbcs",
|
1286 | "chars": "\u0000ÚỤ\u0003ỪỬỮ\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010ỨỰỲỶỸÝỴ\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÀẢÃÁẠẶẬÈẺẼÉẸỆÌỈĨÍỊÒỎÕÓỌỘỜỞỠỚỢÙỦŨ ĂÂÊÔƠƯĐăâêôơưđẶ̀̀̉̃́àảãáạẲằẳẵắẴẮẦẨẪẤỀặầẩẫấậèỂẻẽéẹềểễếệìỉỄẾỒĩíịòỔỏõóọồổỗốộờởỡớợùỖủũúụừửữứựỳỷỹýỵỐ"
|
1287 | },
|
1288 | "georgianacademy": {
|
1289 | "type": "_sbcs",
|
1290 | "chars": "‚ƒ„…†‡ˆ‰Š‹Œ‘’“”•–—˜™š›œŸ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
|
1291 | },
|
1292 | "georgianps": {
|
1293 | "type": "_sbcs",
|
1294 | "chars": "‚ƒ„…†‡ˆ‰Š‹Œ‘’“”•–—˜™š›œŸ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზჱთიკლმნჲოპჟრსტჳუფქღყშჩცძწჭხჴჯჰჵæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
|
1295 | },
|
1296 | "pt154": {
|
1297 | "type": "_sbcs",
|
1298 | "chars": "ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ ЎўЈӨҘҰ§Ё©Ә«¬ӯ®Ҝ°ұІіҙө¶·ё№ә»јҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"
|
1299 | },
|
1300 | "viscii": {
|
1301 | "type": "_sbcs",
|
1302 | "chars": "\u0000\u0001Ẳ\u0003\u0004ẴẪ\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013Ỷ\u0015\u0016\u0017\u0018Ỹ\u001a\u001b\u001c\u001dỴ\u001f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ẠẮẰẶẤẦẨẬẼẸẾỀỂỄỆỐỒỔỖỘỢỚỜỞỊỎỌỈỦŨỤỲÕắằặấầẩậẽẹếềểễệốồổỗỠƠộờởịỰỨỪỬơớƯÀÁÂÃẢĂẳẵÈÉÊẺÌÍĨỳĐứÒÓÔạỷừửÙÚỹỵÝỡưàáâãảăữẫèéêẻìíĩỉđựòóôõỏọụùúũủýợỮ"
|
1303 | },
|
1304 | "iso646cn": {
|
1305 | "type": "_sbcs",
|
1306 | "chars": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������"
|
1307 | },
|
1308 | "iso646jp": {
|
1309 | "type": "_sbcs",
|
1310 | "chars": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[¥]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������"
|
1311 | },
|
1312 | "hproman8": {
|
1313 | "type": "_sbcs",
|
1314 | "chars": "
ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¶¾—¼½ªº«■»±�"
|
1315 | },
|
1316 | "macintosh": {
|
1317 | "type": "_sbcs",
|
1318 | "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"
|
1319 | },
|
1320 | "ascii": {
|
1321 | "type": "_sbcs",
|
1322 | "chars": "��������������������������������������������������������������������������������������������������������������������������������"
|
1323 | },
|
1324 | "tis620": {
|
1325 | "type": "_sbcs",
|
1326 | "chars": "���������������������������������กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"
|
1327 | }
|
1328 | }
|
1329 |
|
1330 | }),
|
1331 |
|
1332 | (function(module, __unusedexports, __webpack_require__) {
|
1333 |
|
1334 | module.exports = globSync
|
1335 | globSync.GlobSync = GlobSync
|
1336 |
|
1337 | var fs = __webpack_require__(747)
|
1338 | var rp = __webpack_require__(589)
|
1339 | var minimatch = __webpack_require__(904)
|
1340 | var Minimatch = minimatch.Minimatch
|
1341 | var Glob = __webpack_require__(478).Glob
|
1342 | var util = __webpack_require__(669)
|
1343 | var path = __webpack_require__(622)
|
1344 | var assert = __webpack_require__(357)
|
1345 | var isAbsolute = __webpack_require__(100)
|
1346 | var common = __webpack_require__(109)
|
1347 | var alphasort = common.alphasort
|
1348 | var alphasorti = common.alphasorti
|
1349 | var setopts = common.setopts
|
1350 | var ownProp = common.ownProp
|
1351 | var childrenIgnored = common.childrenIgnored
|
1352 | var isIgnored = common.isIgnored
|
1353 |
|
1354 | function globSync (pattern, options) {
|
1355 | if (typeof options === 'function' || arguments.length === 3)
|
1356 | throw new TypeError('callback provided to sync glob\n'+
|
1357 | 'See: https://github.com/isaacs/node-glob/issues/167')
|
1358 |
|
1359 | return new GlobSync(pattern, options).found
|
1360 | }
|
1361 |
|
1362 | function GlobSync (pattern, options) {
|
1363 | if (!pattern)
|
1364 | throw new Error('must provide pattern')
|
1365 |
|
1366 | if (typeof options === 'function' || arguments.length === 3)
|
1367 | throw new TypeError('callback provided to sync glob\n'+
|
1368 | 'See: https://github.com/isaacs/node-glob/issues/167')
|
1369 |
|
1370 | if (!(this instanceof GlobSync))
|
1371 | return new GlobSync(pattern, options)
|
1372 |
|
1373 | setopts(this, pattern, options)
|
1374 |
|
1375 | if (this.noprocess)
|
1376 | return this
|
1377 |
|
1378 | var n = this.minimatch.set.length
|
1379 | this.matches = new Array(n)
|
1380 | for (var i = 0; i < n; i ++) {
|
1381 | this._process(this.minimatch.set[i], i, false)
|
1382 | }
|
1383 | this._finish()
|
1384 | }
|
1385 |
|
1386 | GlobSync.prototype._finish = function () {
|
1387 | assert(this instanceof GlobSync)
|
1388 | if (this.realpath) {
|
1389 | var self = this
|
1390 | this.matches.forEach(function (matchset, index) {
|
1391 | var set = self.matches[index] = Object.create(null)
|
1392 | for (var p in matchset) {
|
1393 | try {
|
1394 | p = self._makeAbs(p)
|
1395 | var real = rp.realpathSync(p, self.realpathCache)
|
1396 | set[real] = true
|
1397 | } catch (er) {
|
1398 | if (er.syscall === 'stat')
|
1399 | set[self._makeAbs(p)] = true
|
1400 | else
|
1401 | throw er
|
1402 | }
|
1403 | }
|
1404 | })
|
1405 | }
|
1406 | common.finish(this)
|
1407 | }
|
1408 |
|
1409 |
|
1410 | GlobSync.prototype._process = function (pattern, index, inGlobStar) {
|
1411 | assert(this instanceof GlobSync)
|
1412 |
|
1413 |
|
1414 | var n = 0
|
1415 | while (typeof pattern[n] === 'string') {
|
1416 | n ++
|
1417 | }
|
1418 |
|
1419 |
|
1420 |
|
1421 | var prefix
|
1422 | switch (n) {
|
1423 |
|
1424 | case pattern.length:
|
1425 | this._processSimple(pattern.join('/'), index)
|
1426 | return
|
1427 |
|
1428 | case 0:
|
1429 |
|
1430 |
|
1431 | prefix = null
|
1432 | break
|
1433 |
|
1434 | default:
|
1435 |
|
1436 |
|
1437 |
|
1438 | prefix = pattern.slice(0, n).join('/')
|
1439 | break
|
1440 | }
|
1441 |
|
1442 | var remain = pattern.slice(n)
|
1443 |
|
1444 |
|
1445 | var read
|
1446 | if (prefix === null)
|
1447 | read = '.'
|
1448 | else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) {
|
1449 | if (!prefix || !isAbsolute(prefix))
|
1450 | prefix = '/' + prefix
|
1451 | read = prefix
|
1452 | } else
|
1453 | read = prefix
|
1454 |
|
1455 | var abs = this._makeAbs(read)
|
1456 |
|
1457 |
|
1458 | if (childrenIgnored(this, read))
|
1459 | return
|
1460 |
|
1461 | var isGlobStar = remain[0] === minimatch.GLOBSTAR
|
1462 | if (isGlobStar)
|
1463 | this._processGlobStar(prefix, read, abs, remain, index, inGlobStar)
|
1464 | else
|
1465 | this._processReaddir(prefix, read, abs, remain, index, inGlobStar)
|
1466 | }
|
1467 |
|
1468 |
|
1469 | GlobSync.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar) {
|
1470 | var entries = this._readdir(abs, inGlobStar)
|
1471 |
|
1472 |
|
1473 | if (!entries)
|
1474 | return
|
1475 |
|
1476 |
|
1477 |
|
1478 | var pn = remain[0]
|
1479 | var negate = !!this.minimatch.negate
|
1480 | var rawGlob = pn._glob
|
1481 | var dotOk = this.dot || rawGlob.charAt(0) === '.'
|
1482 |
|
1483 | var matchedEntries = []
|
1484 | for (var i = 0; i < entries.length; i++) {
|
1485 | var e = entries[i]
|
1486 | if (e.charAt(0) !== '.' || dotOk) {
|
1487 | var m
|
1488 | if (negate && !prefix) {
|
1489 | m = !e.match(pn)
|
1490 | } else {
|
1491 | m = e.match(pn)
|
1492 | }
|
1493 | if (m)
|
1494 | matchedEntries.push(e)
|
1495 | }
|
1496 | }
|
1497 |
|
1498 | var len = matchedEntries.length
|
1499 |
|
1500 | if (len === 0)
|
1501 | return
|
1502 |
|
1503 |
|
1504 |
|
1505 |
|
1506 |
|
1507 |
|
1508 | if (remain.length === 1 && !this.mark && !this.stat) {
|
1509 | if (!this.matches[index])
|
1510 | this.matches[index] = Object.create(null)
|
1511 |
|
1512 | for (var i = 0; i < len; i ++) {
|
1513 | var e = matchedEntries[i]
|
1514 | if (prefix) {
|
1515 | if (prefix.slice(-1) !== '/')
|
1516 | e = prefix + '/' + e
|
1517 | else
|
1518 | e = prefix + e
|
1519 | }
|
1520 |
|
1521 | if (e.charAt(0) === '/' && !this.nomount) {
|
1522 | e = path.join(this.root, e)
|
1523 | }
|
1524 | this._emitMatch(index, e)
|
1525 | }
|
1526 |
|
1527 | return
|
1528 | }
|
1529 |
|
1530 |
|
1531 |
|
1532 | remain.shift()
|
1533 | for (var i = 0; i < len; i ++) {
|
1534 | var e = matchedEntries[i]
|
1535 | var newPattern
|
1536 | if (prefix)
|
1537 | newPattern = [prefix, e]
|
1538 | else
|
1539 | newPattern = [e]
|
1540 | this._process(newPattern.concat(remain), index, inGlobStar)
|
1541 | }
|
1542 | }
|
1543 |
|
1544 |
|
1545 | GlobSync.prototype._emitMatch = function (index, e) {
|
1546 | if (isIgnored(this, e))
|
1547 | return
|
1548 |
|
1549 | var abs = this._makeAbs(e)
|
1550 |
|
1551 | if (this.mark)
|
1552 | e = this._mark(e)
|
1553 |
|
1554 | if (this.absolute) {
|
1555 | e = abs
|
1556 | }
|
1557 |
|
1558 | if (this.matches[index][e])
|
1559 | return
|
1560 |
|
1561 | if (this.nodir) {
|
1562 | var c = this.cache[abs]
|
1563 | if (c === 'DIR' || Array.isArray(c))
|
1564 | return
|
1565 | }
|
1566 |
|
1567 | this.matches[index][e] = true
|
1568 |
|
1569 | if (this.stat)
|
1570 | this._stat(e)
|
1571 | }
|
1572 |
|
1573 |
|
1574 | GlobSync.prototype._readdirInGlobStar = function (abs) {
|
1575 |
|
1576 |
|
1577 | if (this.follow)
|
1578 | return this._readdir(abs, false)
|
1579 |
|
1580 | var entries
|
1581 | var lstat
|
1582 | var stat
|
1583 | try {
|
1584 | lstat = fs.lstatSync(abs)
|
1585 | } catch (er) {
|
1586 | if (er.code === 'ENOENT') {
|
1587 |
|
1588 | return null
|
1589 | }
|
1590 | }
|
1591 |
|
1592 | var isSym = lstat && lstat.isSymbolicLink()
|
1593 | this.symlinks[abs] = isSym
|
1594 |
|
1595 |
|
1596 |
|
1597 | if (!isSym && lstat && !lstat.isDirectory())
|
1598 | this.cache[abs] = 'FILE'
|
1599 | else
|
1600 | entries = this._readdir(abs, false)
|
1601 |
|
1602 | return entries
|
1603 | }
|
1604 |
|
1605 | GlobSync.prototype._readdir = function (abs, inGlobStar) {
|
1606 | var entries
|
1607 |
|
1608 | if (inGlobStar && !ownProp(this.symlinks, abs))
|
1609 | return this._readdirInGlobStar(abs)
|
1610 |
|
1611 | if (ownProp(this.cache, abs)) {
|
1612 | var c = this.cache[abs]
|
1613 | if (!c || c === 'FILE')
|
1614 | return null
|
1615 |
|
1616 | if (Array.isArray(c))
|
1617 | return c
|
1618 | }
|
1619 |
|
1620 | try {
|
1621 | return this._readdirEntries(abs, fs.readdirSync(abs))
|
1622 | } catch (er) {
|
1623 | this._readdirError(abs, er)
|
1624 | return null
|
1625 | }
|
1626 | }
|
1627 |
|
1628 | GlobSync.prototype._readdirEntries = function (abs, entries) {
|
1629 |
|
1630 |
|
1631 |
|
1632 | if (!this.mark && !this.stat) {
|
1633 | for (var i = 0; i < entries.length; i ++) {
|
1634 | var e = entries[i]
|
1635 | if (abs === '/')
|
1636 | e = abs + e
|
1637 | else
|
1638 | e = abs + '/' + e
|
1639 | this.cache[e] = true
|
1640 | }
|
1641 | }
|
1642 |
|
1643 | this.cache[abs] = entries
|
1644 |
|
1645 |
|
1646 | return entries
|
1647 | }
|
1648 |
|
1649 | GlobSync.prototype._readdirError = function (f, er) {
|
1650 |
|
1651 | switch (er.code) {
|
1652 | case 'ENOTSUP':
|
1653 | case 'ENOTDIR':
|
1654 | var abs = this._makeAbs(f)
|
1655 | this.cache[abs] = 'FILE'
|
1656 | if (abs === this.cwdAbs) {
|
1657 | var error = new Error(er.code + ' invalid cwd ' + this.cwd)
|
1658 | error.path = this.cwd
|
1659 | error.code = er.code
|
1660 | throw error
|
1661 | }
|
1662 | break
|
1663 |
|
1664 | case 'ENOENT':
|
1665 | case 'ELOOP':
|
1666 | case 'ENAMETOOLONG':
|
1667 | case 'UNKNOWN':
|
1668 | this.cache[this._makeAbs(f)] = false
|
1669 | break
|
1670 |
|
1671 | default:
|
1672 | this.cache[this._makeAbs(f)] = false
|
1673 | if (this.strict)
|
1674 | throw er
|
1675 | if (!this.silent)
|
1676 | console.error('glob error', er)
|
1677 | break
|
1678 | }
|
1679 | }
|
1680 |
|
1681 | GlobSync.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar) {
|
1682 |
|
1683 | var entries = this._readdir(abs, inGlobStar)
|
1684 |
|
1685 |
|
1686 |
|
1687 | if (!entries)
|
1688 | return
|
1689 |
|
1690 |
|
1691 |
|
1692 | var remainWithoutGlobStar = remain.slice(1)
|
1693 | var gspref = prefix ? [ prefix ] : []
|
1694 | var noGlobStar = gspref.concat(remainWithoutGlobStar)
|
1695 |
|
1696 |
|
1697 | this._process(noGlobStar, index, false)
|
1698 |
|
1699 | var len = entries.length
|
1700 | var isSym = this.symlinks[abs]
|
1701 |
|
1702 |
|
1703 | if (isSym && inGlobStar)
|
1704 | return
|
1705 |
|
1706 | for (var i = 0; i < len; i++) {
|
1707 | var e = entries[i]
|
1708 | if (e.charAt(0) === '.' && !this.dot)
|
1709 | continue
|
1710 |
|
1711 |
|
1712 | var instead = gspref.concat(entries[i], remainWithoutGlobStar)
|
1713 | this._process(instead, index, true)
|
1714 |
|
1715 | var below = gspref.concat(entries[i], remain)
|
1716 | this._process(below, index, true)
|
1717 | }
|
1718 | }
|
1719 |
|
1720 | GlobSync.prototype._processSimple = function (prefix, index) {
|
1721 |
|
1722 |
|
1723 | var exists = this._stat(prefix)
|
1724 |
|
1725 | if (!this.matches[index])
|
1726 | this.matches[index] = Object.create(null)
|
1727 |
|
1728 |
|
1729 | if (!exists)
|
1730 | return
|
1731 |
|
1732 | if (prefix && isAbsolute(prefix) && !this.nomount) {
|
1733 | var trail = /[\/\\]$/.test(prefix)
|
1734 | if (prefix.charAt(0) === '/') {
|
1735 | prefix = path.join(this.root, prefix)
|
1736 | } else {
|
1737 | prefix = path.resolve(this.root, prefix)
|
1738 | if (trail)
|
1739 | prefix += '/'
|
1740 | }
|
1741 | }
|
1742 |
|
1743 | if (process.platform === 'win32')
|
1744 | prefix = prefix.replace(/\\/g, '/')
|
1745 |
|
1746 |
|
1747 | this._emitMatch(index, prefix)
|
1748 | }
|
1749 |
|
1750 |
|
1751 | GlobSync.prototype._stat = function (f) {
|
1752 | var abs = this._makeAbs(f)
|
1753 | var needDir = f.slice(-1) === '/'
|
1754 |
|
1755 | if (f.length > this.maxLength)
|
1756 | return false
|
1757 |
|
1758 | if (!this.stat && ownProp(this.cache, abs)) {
|
1759 | var c = this.cache[abs]
|
1760 |
|
1761 | if (Array.isArray(c))
|
1762 | c = 'DIR'
|
1763 |
|
1764 |
|
1765 | if (!needDir || c === 'DIR')
|
1766 | return c
|
1767 |
|
1768 | if (needDir && c === 'FILE')
|
1769 | return false
|
1770 |
|
1771 |
|
1772 |
|
1773 | }
|
1774 |
|
1775 | var exists
|
1776 | var stat = this.statCache[abs]
|
1777 | if (!stat) {
|
1778 | var lstat
|
1779 | try {
|
1780 | lstat = fs.lstatSync(abs)
|
1781 | } catch (er) {
|
1782 | if (er && (er.code === 'ENOENT' || er.code === 'ENOTDIR')) {
|
1783 | this.statCache[abs] = false
|
1784 | return false
|
1785 | }
|
1786 | }
|
1787 |
|
1788 | if (lstat && lstat.isSymbolicLink()) {
|
1789 | try {
|
1790 | stat = fs.statSync(abs)
|
1791 | } catch (er) {
|
1792 | stat = lstat
|
1793 | }
|
1794 | } else {
|
1795 | stat = lstat
|
1796 | }
|
1797 | }
|
1798 |
|
1799 | this.statCache[abs] = stat
|
1800 |
|
1801 | var c = true
|
1802 | if (stat)
|
1803 | c = stat.isDirectory() ? 'DIR' : 'FILE'
|
1804 |
|
1805 | this.cache[abs] = this.cache[abs] || c
|
1806 |
|
1807 | if (needDir && c === 'FILE')
|
1808 | return false
|
1809 |
|
1810 | return c
|
1811 | }
|
1812 |
|
1813 | GlobSync.prototype._mark = function (p) {
|
1814 | return common.mark(this, p)
|
1815 | }
|
1816 |
|
1817 | GlobSync.prototype._makeAbs = function (f) {
|
1818 | return common.makeAbs(this, f)
|
1819 | }
|
1820 |
|
1821 |
|
1822 | }),
|
1823 | ,
|
1824 | ,
|
1825 | ,
|
1826 | ,
|
1827 | ,
|
1828 | ,
|
1829 | ,
|
1830 | ,
|
1831 | ,
|
1832 | ,
|
1833 | ,
|
1834 | ,
|
1835 | ,
|
1836 | ,
|
1837 | ,
|
1838 | ,
|
1839 |
|
1840 | (function(module, __unusedexports, __webpack_require__) {
|
1841 |
|
1842 | "use strict";
|
1843 |
|
1844 |
|
1845 |
|
1846 |
|
1847 |
|
1848 |
|
1849 | module.exports = {
|
1850 |
|
1851 |
|
1852 |
|
1853 |
|
1854 |
|
1855 |
|
1856 |
|
1857 |
|
1858 |
|
1859 |
|
1860 |
|
1861 |
|
1862 |
|
1863 |
|
1864 |
|
1865 |
|
1866 |
|
1867 |
|
1868 |
|
1869 |
|
1870 |
|
1871 |
|
1872 |
|
1873 |
|
1874 |
|
1875 |
|
1876 |
|
1877 |
|
1878 |
|
1879 |
|
1880 |
|
1881 |
|
1882 |
|
1883 | 'shiftjis': {
|
1884 | type: '_dbcs',
|
1885 | table: function() { return __webpack_require__(73) },
|
1886 | encodeAdd: {'\u00a5': 0x5C, '\u203E': 0x7E},
|
1887 | encodeSkipVals: [{from: 0xED40, to: 0xF940}],
|
1888 | },
|
1889 | 'csshiftjis': 'shiftjis',
|
1890 | 'mskanji': 'shiftjis',
|
1891 | 'sjis': 'shiftjis',
|
1892 | 'windows31j': 'shiftjis',
|
1893 | 'ms31j': 'shiftjis',
|
1894 | 'xsjis': 'shiftjis',
|
1895 | 'windows932': 'shiftjis',
|
1896 | 'ms932': 'shiftjis',
|
1897 | '932': 'shiftjis',
|
1898 | 'cp932': 'shiftjis',
|
1899 |
|
1900 | 'eucjp': {
|
1901 | type: '_dbcs',
|
1902 | table: function() { return __webpack_require__(145) },
|
1903 | encodeAdd: {'\u00a5': 0x5C, '\u203E': 0x7E},
|
1904 | },
|
1905 |
|
1906 |
|
1907 |
|
1908 |
|
1909 |
|
1910 |
|
1911 |
|
1912 |
|
1913 |
|
1914 |
|
1915 |
|
1916 | 'gb2312': 'cp936',
|
1917 | 'gb231280': 'cp936',
|
1918 | 'gb23121980': 'cp936',
|
1919 | 'csgb2312': 'cp936',
|
1920 | 'csiso58gb231280': 'cp936',
|
1921 | 'euccn': 'cp936',
|
1922 |
|
1923 |
|
1924 | 'windows936': 'cp936',
|
1925 | 'ms936': 'cp936',
|
1926 | '936': 'cp936',
|
1927 | 'cp936': {
|
1928 | type: '_dbcs',
|
1929 | table: function() { return __webpack_require__(466) },
|
1930 | },
|
1931 |
|
1932 |
|
1933 | 'gbk': {
|
1934 | type: '_dbcs',
|
1935 | table: function() { return __webpack_require__(466).concat(__webpack_require__(863)) },
|
1936 | },
|
1937 | 'xgbk': 'gbk',
|
1938 | 'isoir58': 'gbk',
|
1939 |
|
1940 |
|
1941 |
|
1942 |
|
1943 |
|
1944 |
|
1945 | 'gb18030': {
|
1946 | type: '_dbcs',
|
1947 | table: function() { return __webpack_require__(466).concat(__webpack_require__(863)) },
|
1948 | gb18030: function() { return __webpack_require__(858) },
|
1949 | encodeSkipVals: [0x80],
|
1950 | encodeAdd: {'€': 0xA2E3},
|
1951 | },
|
1952 |
|
1953 | 'chinese': 'gb18030',
|
1954 |
|
1955 |
|
1956 |
|
1957 |
|
1958 | 'windows949': 'cp949',
|
1959 | 'ms949': 'cp949',
|
1960 | '949': 'cp949',
|
1961 | 'cp949': {
|
1962 | type: '_dbcs',
|
1963 | table: function() { return __webpack_require__(585) },
|
1964 | },
|
1965 |
|
1966 | 'cseuckr': 'cp949',
|
1967 | 'csksc56011987': 'cp949',
|
1968 | 'euckr': 'cp949',
|
1969 | 'isoir149': 'cp949',
|
1970 | 'korean': 'cp949',
|
1971 | 'ksc56011987': 'cp949',
|
1972 | 'ksc56011989': 'cp949',
|
1973 | 'ksc5601': 'cp949',
|
1974 |
|
1975 |
|
1976 |
|
1977 |
|
1978 |
|
1979 |
|
1980 |
|
1981 |
|
1982 |
|
1983 |
|
1984 |
|
1985 |
|
1986 |
|
1987 |
|
1988 |
|
1989 |
|
1990 |
|
1991 |
|
1992 |
|
1993 |
|
1994 |
|
1995 |
|
1996 |
|
1997 |
|
1998 |
|
1999 | 'windows950': 'cp950',
|
2000 | 'ms950': 'cp950',
|
2001 | '950': 'cp950',
|
2002 | 'cp950': {
|
2003 | type: '_dbcs',
|
2004 | table: function() { return __webpack_require__(544) },
|
2005 | },
|
2006 |
|
2007 |
|
2008 | 'big5': 'big5hkscs',
|
2009 | 'big5hkscs': {
|
2010 | type: '_dbcs',
|
2011 | table: function() { return __webpack_require__(544).concat(__webpack_require__(280)) },
|
2012 | encodeSkipVals: [0xa2cc],
|
2013 | },
|
2014 |
|
2015 | 'cnbig5': 'big5hkscs',
|
2016 | 'csbig5': 'big5hkscs',
|
2017 | 'xxbig5': 'big5hkscs',
|
2018 | };
|
2019 |
|
2020 |
|
2021 | }),
|
2022 | ,
|
2023 | ,
|
2024 | ,
|
2025 | ,
|
2026 |
|
2027 | (function(module) {
|
2028 |
|
2029 | module.exports = [["0","\u0000",128],["a1","。",62],["8140"," 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈",9,"+-±×"],["8180","÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇◆□■△▲▽▼※〒→←↑↓〓"],["81b8","∈∋⊆⊇⊂⊃∪∩"],["81c8","∧∨¬⇒⇔∀∃"],["81da","∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬"],["81f0","ʼn♯♭♪†‡¶"],["81fc","◯"],["824f","0",9],["8260","A",25],["8281","a",25],["829f","ぁ",82],["8340","ァ",62],["8380","ム",22],["839f","Α",16,"Σ",6],["83bf","α",16,"σ",6],["8440","А",5,"ЁЖ",25],["8470","а",5,"ёж",7],["8480","о",17],["849f","─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂"],["8740","①",19,"Ⅰ",9],["875f","㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡"],["877e","㍻"],["8780","〝〟№㏍℡㊤",4,"㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪"],["889f","亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭"],["8940","院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円"],["8980","園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改"],["8a40","魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫"],["8a80","橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄"],["8b40","機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救"],["8b80","朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈"],["8c40","掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨"],["8c80","劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向"],["8d40","后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降"],["8d80","項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷"],["8e40","察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止"],["8e80","死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周"],["8f40","宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳"],["8f80","準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾"],["9040","拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨"],["9080","逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線"],["9140","繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻"],["9180","操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只"],["9240","叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄"],["9280","逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓"],["9340","邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬"],["9380","凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入"],["9440","如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅"],["9480","楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美"],["9540","鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷"],["9580","斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋"],["9640","法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆"],["9680","摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒"],["9740","諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲"],["9780","沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯"],["9840","蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕"],["989f","弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲"],["9940","僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭"],["9980","凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨"],["9a40","咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸"],["9a80","噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩"],["9b40","奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀"],["9b80","它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏"],["9c40","廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠"],["9c80","怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛"],["9d40","戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫"],["9d80","捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼"],["9e40","曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎"],["9e80","梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣"],["9f40","檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯"],["9f80","麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌"],["e040","漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝"],["e080","烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱"],["e140","瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿"],["e180","痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬"],["e240","磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰"],["e280","窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆"],["e340","紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷"],["e380","縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋"],["e440","隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤"],["e480","艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈"],["e540","蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬"],["e580","蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞"],["e640","襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧"],["e680","諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊"],["e740","蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜"],["e780","轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮"],["e840","錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙"],["e880","閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰"],["e940","顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃"],["e980","騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈"],["ea40","鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯"],["ea80","黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠堯槇遙瑤凜熙"],["ed40","纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏"],["ed80","塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱"],["ee40","犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙"],["ee80","蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"],["eeef","ⅰ",9,"¬¦'""],["f040","",62],["f080","",124],["f140","",62],["f180","",124],["f240","",62],["f280","",124],["f340","",62],["f380","",124],["f440","",62],["f480","",124],["f540","",62],["f580","",124],["f640","",62],["f680","",124],["f740","",62],["f780","",124],["f840","",62],["f880","",124],["f940",""],["fa40","ⅰ",9,"Ⅰ",9,"¬¦'"㈱№℡∵纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊"],["fa80","兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯"],["fb40","涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神"],["fb80","祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙"],["fc40","髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"]];
|
2030 |
|
2031 | }),
|
2032 | ,
|
2033 | ,
|
2034 | ,
|
2035 | ,
|
2036 | ,
|
2037 |
|
2038 | (function(module, __unusedexports, __webpack_require__) {
|
2039 |
|
2040 | "use strict";
|
2041 |
|
2042 |
|
2043 | var iconvLite = __webpack_require__(886);
|
2044 |
|
2045 |
|
2046 | var Iconv = __webpack_require__(104);
|
2047 |
|
2048 |
|
2049 | module.exports.convert = convert;
|
2050 |
|
2051 |
|
2052 |
|
2053 |
|
2054 |
|
2055 |
|
2056 |
|
2057 |
|
2058 |
|
2059 |
|
2060 | function convert(str, to, from, useLite) {
|
2061 | from = checkEncoding(from || 'UTF-8');
|
2062 | to = checkEncoding(to || 'UTF-8');
|
2063 | str = str || '';
|
2064 |
|
2065 | var result;
|
2066 |
|
2067 | if (from !== 'UTF-8' && typeof str === 'string') {
|
2068 | str = new Buffer(str, 'binary');
|
2069 | }
|
2070 |
|
2071 | if (from === to) {
|
2072 | if (typeof str === 'string') {
|
2073 | result = new Buffer(str);
|
2074 | } else {
|
2075 | result = str;
|
2076 | }
|
2077 | } else if (Iconv && !useLite) {
|
2078 | try {
|
2079 | result = convertIconv(str, to, from);
|
2080 | } catch (E) {
|
2081 | console.error(E);
|
2082 | try {
|
2083 | result = convertIconvLite(str, to, from);
|
2084 | } catch (E) {
|
2085 | console.error(E);
|
2086 | result = str;
|
2087 | }
|
2088 | }
|
2089 | } else {
|
2090 | try {
|
2091 | result = convertIconvLite(str, to, from);
|
2092 | } catch (E) {
|
2093 | console.error(E);
|
2094 | result = str;
|
2095 | }
|
2096 | }
|
2097 |
|
2098 |
|
2099 | if (typeof result === 'string') {
|
2100 | result = new Buffer(result, 'utf-8');
|
2101 | }
|
2102 |
|
2103 | return result;
|
2104 | }
|
2105 |
|
2106 |
|
2107 |
|
2108 |
|
2109 |
|
2110 |
|
2111 |
|
2112 |
|
2113 |
|
2114 | function convertIconv(str, to, from) {
|
2115 | var response, iconv;
|
2116 | iconv = new Iconv(from, to + '//TRANSLIT//IGNORE');
|
2117 | response = iconv.convert(str);
|
2118 | return response.slice(0, response.length);
|
2119 | }
|
2120 |
|
2121 |
|
2122 |
|
2123 |
|
2124 |
|
2125 |
|
2126 |
|
2127 |
|
2128 |
|
2129 | function convertIconvLite(str, to, from) {
|
2130 | if (to === 'UTF-8') {
|
2131 | return iconvLite.decode(str, from);
|
2132 | } else if (from === 'UTF-8') {
|
2133 | return iconvLite.encode(str, to);
|
2134 | } else {
|
2135 | return iconvLite.encode(iconvLite.decode(str, from), to);
|
2136 | }
|
2137 | }
|
2138 |
|
2139 |
|
2140 |
|
2141 |
|
2142 |
|
2143 |
|
2144 |
|
2145 | function checkEncoding(name) {
|
2146 | return (name || '').toString().trim().
|
2147 | replace(/^latin[\-_]?(\d+)$/i, 'ISO-8859-$1').
|
2148 | replace(/^win(?:dows)?[\-_]?(\d+)$/i, 'WINDOWS-$1').
|
2149 | replace(/^utf[\-_]?(\d+)$/i, 'UTF-$1').
|
2150 | replace(/^ks_c_5601\-1987$/i, 'CP949').
|
2151 | replace(/^us[\-_]?ascii$/i, 'ASCII').
|
2152 | toUpperCase();
|
2153 | }
|
2154 |
|
2155 |
|
2156 | }),
|
2157 | ,
|
2158 | ,
|
2159 | ,
|
2160 | ,
|
2161 |
|
2162 | (function(module, __unusedexports, __webpack_require__) {
|
2163 |
|
2164 | "use strict";
|
2165 |
|
2166 |
|
2167 |
|
2168 |
|
2169 |
|
2170 |
|
2171 |
|
2172 |
|
2173 |
|
2174 |
|
2175 |
|
2176 |
|
2177 | var Schema = __webpack_require__(334);
|
2178 |
|
2179 |
|
2180 | module.exports = Schema.DEFAULT = new Schema({
|
2181 | include: [
|
2182 | __webpack_require__(461)
|
2183 | ],
|
2184 | explicit: [
|
2185 | __webpack_require__(331),
|
2186 | __webpack_require__(645),
|
2187 | __webpack_require__(508)
|
2188 | ]
|
2189 | });
|
2190 |
|
2191 |
|
2192 | }),
|
2193 | ,
|
2194 | ,
|
2195 |
|
2196 | (function(module) {
|
2197 |
|
2198 | module.exports = require("os");
|
2199 |
|
2200 | }),
|
2201 |
|
2202 | (function(module, __unusedexports, __webpack_require__) {
|
2203 |
|
2204 | "use strict";
|
2205 |
|
2206 | module.exports = __webpack_require__(234)
|
2207 | module.exports.async = __webpack_require__(970)
|
2208 | module.exports.stream = __webpack_require__(559)
|
2209 | module.exports.prettyError = __webpack_require__(490)
|
2210 |
|
2211 |
|
2212 | }),
|
2213 | ,
|
2214 | ,
|
2215 | ,
|
2216 | ,
|
2217 | ,
|
2218 | ,
|
2219 | ,
|
2220 | ,
|
2221 |
|
2222 | (function(module) {
|
2223 |
|
2224 | "use strict";
|
2225 |
|
2226 |
|
2227 |
|
2228 | const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
2229 |
|
2230 | function escapeCommand(arg) {
|
2231 |
|
2232 | arg = arg.replace(metaCharsRegExp, '^$1');
|
2233 |
|
2234 | return arg;
|
2235 | }
|
2236 |
|
2237 | function escapeArgument(arg, doubleEscapeMetaChars) {
|
2238 |
|
2239 | arg = `${arg}`;
|
2240 |
|
2241 |
|
2242 |
|
2243 |
|
2244 |
|
2245 | arg = arg.replace(/(\\*)"/g, '$1$1\\"');
|
2246 |
|
2247 |
|
2248 |
|
2249 |
|
2250 | arg = arg.replace(/(\\*)$/, '$1$1');
|
2251 |
|
2252 |
|
2253 |
|
2254 |
|
2255 | arg = `"${arg}"`;
|
2256 |
|
2257 |
|
2258 | arg = arg.replace(metaCharsRegExp, '^$1');
|
2259 |
|
2260 |
|
2261 | if (doubleEscapeMetaChars) {
|
2262 | arg = arg.replace(metaCharsRegExp, '^$1');
|
2263 | }
|
2264 |
|
2265 | return arg;
|
2266 | }
|
2267 |
|
2268 | module.exports.command = escapeCommand;
|
2269 | module.exports.argument = escapeArgument;
|
2270 |
|
2271 |
|
2272 | }),
|
2273 | ,
|
2274 | ,
|
2275 |
|
2276 | (function(module) {
|
2277 |
|
2278 | "use strict";
|
2279 |
|
2280 |
|
2281 | function posix(path) {
|
2282 | return path.charAt(0) === '/';
|
2283 | }
|
2284 |
|
2285 | function win32(path) {
|
2286 |
|
2287 | var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
|
2288 | var result = splitDeviceRe.exec(path);
|
2289 | var device = result[1] || '';
|
2290 | var isUnc = Boolean(device && device.charAt(1) !== ':');
|
2291 |
|
2292 |
|
2293 | return Boolean(result[2] || isUnc);
|
2294 | }
|
2295 |
|
2296 | module.exports = process.platform === 'win32' ? win32 : posix;
|
2297 | module.exports.posix = posix;
|
2298 | module.exports.win32 = win32;
|
2299 |
|
2300 |
|
2301 | }),
|
2302 | ,
|
2303 | ,
|
2304 | ,
|
2305 |
|
2306 | (function(module, __unusedexports, __webpack_require__) {
|
2307 |
|
2308 | "use strict";
|
2309 |
|
2310 |
|
2311 | var iconv_package;
|
2312 | var Iconv;
|
2313 |
|
2314 | try {
|
2315 |
|
2316 | iconv_package = 'iconv';
|
2317 | Iconv = __webpack_require__(210).Iconv;
|
2318 | } catch (E) {
|
2319 |
|
2320 | }
|
2321 |
|
2322 | module.exports = Iconv;
|
2323 |
|
2324 |
|
2325 | }),
|
2326 | ,
|
2327 |
|
2328 | (function(module, __unusedexports, __webpack_require__) {
|
2329 |
|
2330 | "use strict";
|
2331 |
|
2332 |
|
2333 | const fs = __webpack_require__(747);
|
2334 | const shebangCommand = __webpack_require__(147);
|
2335 |
|
2336 | function readShebang(command) {
|
2337 |
|
2338 | const size = 150;
|
2339 | let buffer;
|
2340 |
|
2341 | if (Buffer.alloc) {
|
2342 |
|
2343 | buffer = Buffer.alloc(size);
|
2344 | } else {
|
2345 |
|
2346 | buffer = new Buffer(size);
|
2347 | buffer.fill(0);
|
2348 | }
|
2349 |
|
2350 | let fd;
|
2351 |
|
2352 | try {
|
2353 | fd = fs.openSync(command, 'r');
|
2354 | fs.readSync(fd, buffer, 0, size, 0);
|
2355 | fs.closeSync(fd);
|
2356 | } catch (e) { }
|
2357 |
|
2358 |
|
2359 | return shebangCommand(buffer.toString());
|
2360 | }
|
2361 |
|
2362 | module.exports = readShebang;
|
2363 |
|
2364 |
|
2365 | }),
|
2366 | ,
|
2367 | ,
|
2368 |
|
2369 | (function(__unusedmodule, exports, __webpack_require__) {
|
2370 |
|
2371 | exports.alphasort = alphasort
|
2372 | exports.alphasorti = alphasorti
|
2373 | exports.setopts = setopts
|
2374 | exports.ownProp = ownProp
|
2375 | exports.makeAbs = makeAbs
|
2376 | exports.finish = finish
|
2377 | exports.mark = mark
|
2378 | exports.isIgnored = isIgnored
|
2379 | exports.childrenIgnored = childrenIgnored
|
2380 |
|
2381 | function ownProp (obj, field) {
|
2382 | return Object.prototype.hasOwnProperty.call(obj, field)
|
2383 | }
|
2384 |
|
2385 | var path = __webpack_require__(622)
|
2386 | var minimatch = __webpack_require__(904)
|
2387 | var isAbsolute = __webpack_require__(100)
|
2388 | var Minimatch = minimatch.Minimatch
|
2389 |
|
2390 | function alphasorti (a, b) {
|
2391 | return a.toLowerCase().localeCompare(b.toLowerCase())
|
2392 | }
|
2393 |
|
2394 | function alphasort (a, b) {
|
2395 | return a.localeCompare(b)
|
2396 | }
|
2397 |
|
2398 | function setupIgnores (self, options) {
|
2399 | self.ignore = options.ignore || []
|
2400 |
|
2401 | if (!Array.isArray(self.ignore))
|
2402 | self.ignore = [self.ignore]
|
2403 |
|
2404 | if (self.ignore.length) {
|
2405 | self.ignore = self.ignore.map(ignoreMap)
|
2406 | }
|
2407 | }
|
2408 |
|
2409 |
|
2410 | function ignoreMap (pattern) {
|
2411 | var gmatcher = null
|
2412 | if (pattern.slice(-3) === '/**') {
|
2413 | var gpattern = pattern.replace(/(\/\*\*)+$/, '')
|
2414 | gmatcher = new Minimatch(gpattern, { dot: true })
|
2415 | }
|
2416 |
|
2417 | return {
|
2418 | matcher: new Minimatch(pattern, { dot: true }),
|
2419 | gmatcher: gmatcher
|
2420 | }
|
2421 | }
|
2422 |
|
2423 | function setopts (self, pattern, options) {
|
2424 | if (!options)
|
2425 | options = {}
|
2426 |
|
2427 |
|
2428 | if (options.matchBase && -1 === pattern.indexOf("/")) {
|
2429 | if (options.noglobstar) {
|
2430 | throw new Error("base matching requires globstar")
|
2431 | }
|
2432 | pattern = "**/" + pattern
|
2433 | }
|
2434 |
|
2435 | self.silent = !!options.silent
|
2436 | self.pattern = pattern
|
2437 | self.strict = options.strict !== false
|
2438 | self.realpath = !!options.realpath
|
2439 | self.realpathCache = options.realpathCache || Object.create(null)
|
2440 | self.follow = !!options.follow
|
2441 | self.dot = !!options.dot
|
2442 | self.mark = !!options.mark
|
2443 | self.nodir = !!options.nodir
|
2444 | if (self.nodir)
|
2445 | self.mark = true
|
2446 | self.sync = !!options.sync
|
2447 | self.nounique = !!options.nounique
|
2448 | self.nonull = !!options.nonull
|
2449 | self.nosort = !!options.nosort
|
2450 | self.nocase = !!options.nocase
|
2451 | self.stat = !!options.stat
|
2452 | self.noprocess = !!options.noprocess
|
2453 | self.absolute = !!options.absolute
|
2454 |
|
2455 | self.maxLength = options.maxLength || Infinity
|
2456 | self.cache = options.cache || Object.create(null)
|
2457 | self.statCache = options.statCache || Object.create(null)
|
2458 | self.symlinks = options.symlinks || Object.create(null)
|
2459 |
|
2460 | setupIgnores(self, options)
|
2461 |
|
2462 | self.changedCwd = false
|
2463 | var cwd = process.cwd()
|
2464 | if (!ownProp(options, "cwd"))
|
2465 | self.cwd = cwd
|
2466 | else {
|
2467 | self.cwd = path.resolve(options.cwd)
|
2468 | self.changedCwd = self.cwd !== cwd
|
2469 | }
|
2470 |
|
2471 | self.root = options.root || path.resolve(self.cwd, "/")
|
2472 | self.root = path.resolve(self.root)
|
2473 | if (process.platform === "win32")
|
2474 | self.root = self.root.replace(/\\/g, "/")
|
2475 |
|
2476 |
|
2477 |
|
2478 | self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd)
|
2479 | if (process.platform === "win32")
|
2480 | self.cwdAbs = self.cwdAbs.replace(/\\/g, "/")
|
2481 | self.nomount = !!options.nomount
|
2482 |
|
2483 |
|
2484 |
|
2485 | options.nonegate = true
|
2486 | options.nocomment = true
|
2487 |
|
2488 | self.minimatch = new Minimatch(pattern, options)
|
2489 | self.options = self.minimatch.options
|
2490 | }
|
2491 |
|
2492 | function finish (self) {
|
2493 | var nou = self.nounique
|
2494 | var all = nou ? [] : Object.create(null)
|
2495 |
|
2496 | for (var i = 0, l = self.matches.length; i < l; i ++) {
|
2497 | var matches = self.matches[i]
|
2498 | if (!matches || Object.keys(matches).length === 0) {
|
2499 | if (self.nonull) {
|
2500 |
|
2501 | var literal = self.minimatch.globSet[i]
|
2502 | if (nou)
|
2503 | all.push(literal)
|
2504 | else
|
2505 | all[literal] = true
|
2506 | }
|
2507 | } else {
|
2508 |
|
2509 | var m = Object.keys(matches)
|
2510 | if (nou)
|
2511 | all.push.apply(all, m)
|
2512 | else
|
2513 | m.forEach(function (m) {
|
2514 | all[m] = true
|
2515 | })
|
2516 | }
|
2517 | }
|
2518 |
|
2519 | if (!nou)
|
2520 | all = Object.keys(all)
|
2521 |
|
2522 | if (!self.nosort)
|
2523 | all = all.sort(self.nocase ? alphasorti : alphasort)
|
2524 |
|
2525 |
|
2526 | if (self.mark) {
|
2527 | for (var i = 0; i < all.length; i++) {
|
2528 | all[i] = self._mark(all[i])
|
2529 | }
|
2530 | if (self.nodir) {
|
2531 | all = all.filter(function (e) {
|
2532 | var notDir = !(/\/$/.test(e))
|
2533 | var c = self.cache[e] || self.cache[makeAbs(self, e)]
|
2534 | if (notDir && c)
|
2535 | notDir = c !== 'DIR' && !Array.isArray(c)
|
2536 | return notDir
|
2537 | })
|
2538 | }
|
2539 | }
|
2540 |
|
2541 | if (self.ignore.length)
|
2542 | all = all.filter(function(m) {
|
2543 | return !isIgnored(self, m)
|
2544 | })
|
2545 |
|
2546 | self.found = all
|
2547 | }
|
2548 |
|
2549 | function mark (self, p) {
|
2550 | var abs = makeAbs(self, p)
|
2551 | var c = self.cache[abs]
|
2552 | var m = p
|
2553 | if (c) {
|
2554 | var isDir = c === 'DIR' || Array.isArray(c)
|
2555 | var slash = p.slice(-1) === '/'
|
2556 |
|
2557 | if (isDir && !slash)
|
2558 | m += '/'
|
2559 | else if (!isDir && slash)
|
2560 | m = m.slice(0, -1)
|
2561 |
|
2562 | if (m !== p) {
|
2563 | var mabs = makeAbs(self, m)
|
2564 | self.statCache[mabs] = self.statCache[abs]
|
2565 | self.cache[mabs] = self.cache[abs]
|
2566 | }
|
2567 | }
|
2568 |
|
2569 | return m
|
2570 | }
|
2571 |
|
2572 |
|
2573 | function makeAbs (self, f) {
|
2574 | var abs = f
|
2575 | if (f.charAt(0) === '/') {
|
2576 | abs = path.join(self.root, f)
|
2577 | } else if (isAbsolute(f) || f === '') {
|
2578 | abs = f
|
2579 | } else if (self.changedCwd) {
|
2580 | abs = path.resolve(self.cwd, f)
|
2581 | } else {
|
2582 | abs = path.resolve(f)
|
2583 | }
|
2584 |
|
2585 | if (process.platform === 'win32')
|
2586 | abs = abs.replace(/\\/g, '/')
|
2587 |
|
2588 | return abs
|
2589 | }
|
2590 |
|
2591 |
|
2592 |
|
2593 |
|
2594 | function isIgnored (self, path) {
|
2595 | if (!self.ignore.length)
|
2596 | return false
|
2597 |
|
2598 | return self.ignore.some(function(item) {
|
2599 | return item.matcher.match(path) || !!(item.gmatcher && item.gmatcher.match(path))
|
2600 | })
|
2601 | }
|
2602 |
|
2603 | function childrenIgnored (self, path) {
|
2604 | if (!self.ignore.length)
|
2605 | return false
|
2606 |
|
2607 | return self.ignore.some(function(item) {
|
2608 | return !!(item.gmatcher && item.gmatcher.match(path))
|
2609 | })
|
2610 | }
|
2611 |
|
2612 |
|
2613 | }),
|
2614 | ,
|
2615 | ,
|
2616 | ,
|
2617 | ,
|
2618 | ,
|
2619 | ,
|
2620 | ,
|
2621 |
|
2622 | (function(module, __unusedexports, __webpack_require__) {
|
2623 |
|
2624 | const conversions = __webpack_require__(558);
|
2625 | const route = __webpack_require__(122);
|
2626 |
|
2627 | const convert = {};
|
2628 |
|
2629 | const models = Object.keys(conversions);
|
2630 |
|
2631 | function wrapRaw(fn) {
|
2632 | const wrappedFn = function (...args) {
|
2633 | const arg0 = args[0];
|
2634 | if (arg0 === undefined || arg0 === null) {
|
2635 | return arg0;
|
2636 | }
|
2637 |
|
2638 | if (arg0.length > 1) {
|
2639 | args = arg0;
|
2640 | }
|
2641 |
|
2642 | return fn(args);
|
2643 | };
|
2644 |
|
2645 |
|
2646 | if ('conversion' in fn) {
|
2647 | wrappedFn.conversion = fn.conversion;
|
2648 | }
|
2649 |
|
2650 | return wrappedFn;
|
2651 | }
|
2652 |
|
2653 | function wrapRounded(fn) {
|
2654 | const wrappedFn = function (...args) {
|
2655 | const arg0 = args[0];
|
2656 |
|
2657 | if (arg0 === undefined || arg0 === null) {
|
2658 | return arg0;
|
2659 | }
|
2660 |
|
2661 | if (arg0.length > 1) {
|
2662 | args = arg0;
|
2663 | }
|
2664 |
|
2665 | const result = fn(args);
|
2666 |
|
2667 |
|
2668 |
|
2669 |
|
2670 | if (typeof result === 'object') {
|
2671 | for (let len = result.length, i = 0; i < len; i++) {
|
2672 | result[i] = Math.round(result[i]);
|
2673 | }
|
2674 | }
|
2675 |
|
2676 | return result;
|
2677 | };
|
2678 |
|
2679 |
|
2680 | if ('conversion' in fn) {
|
2681 | wrappedFn.conversion = fn.conversion;
|
2682 | }
|
2683 |
|
2684 | return wrappedFn;
|
2685 | }
|
2686 |
|
2687 | models.forEach(fromModel => {
|
2688 | convert[fromModel] = {};
|
2689 |
|
2690 | Object.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});
|
2691 | Object.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});
|
2692 |
|
2693 | const routes = route(fromModel);
|
2694 | const routeModels = Object.keys(routes);
|
2695 |
|
2696 | routeModels.forEach(toModel => {
|
2697 | const fn = routes[toModel];
|
2698 |
|
2699 | convert[fromModel][toModel] = wrapRounded(fn);
|
2700 | convert[fromModel][toModel].raw = wrapRaw(fn);
|
2701 | });
|
2702 | });
|
2703 |
|
2704 | module.exports = convert;
|
2705 |
|
2706 |
|
2707 | }),
|
2708 |
|
2709 | (function(module, __unusedexports, __webpack_require__) {
|
2710 |
|
2711 | "use strict";
|
2712 |
|
2713 | const stripAnsi = __webpack_require__(888);
|
2714 | const isFullwidthCodePoint = __webpack_require__(533);
|
2715 | const emojiRegex = __webpack_require__(887);
|
2716 |
|
2717 | const stringWidth = string => {
|
2718 | string = string.replace(emojiRegex(), ' ');
|
2719 |
|
2720 | if (typeof string !== 'string' || string.length === 0) {
|
2721 | return 0;
|
2722 | }
|
2723 |
|
2724 | string = stripAnsi(string);
|
2725 |
|
2726 | let width = 0;
|
2727 |
|
2728 | for (let i = 0; i < string.length; i++) {
|
2729 | const code = string.codePointAt(i);
|
2730 |
|
2731 |
|
2732 | if (code <= 0x1F || (code >= 0x7F && code <= 0x9F)) {
|
2733 | continue;
|
2734 | }
|
2735 |
|
2736 |
|
2737 | if (code >= 0x300 && code <= 0x36F) {
|
2738 | continue;
|
2739 | }
|
2740 |
|
2741 |
|
2742 | if (code > 0xFFFF) {
|
2743 | i++;
|
2744 | }
|
2745 |
|
2746 | width += isFullwidthCodePoint(code) ? 2 : 1;
|
2747 | }
|
2748 |
|
2749 | return width;
|
2750 | };
|
2751 |
|
2752 | module.exports = stringWidth;
|
2753 |
|
2754 | module.exports.default = stringWidth;
|
2755 |
|
2756 |
|
2757 | }),
|
2758 | ,
|
2759 | ,
|
2760 | ,
|
2761 |
|
2762 | (function(module, __unusedexports, __webpack_require__) {
|
2763 |
|
2764 | const conversions = __webpack_require__(558);
|
2765 |
|
2766 |
|
2767 |
|
2768 |
|
2769 |
|
2770 |
|
2771 |
|
2772 |
|
2773 |
|
2774 |
|
2775 |
|
2776 |
|
2777 | function buildGraph() {
|
2778 | const graph = {};
|
2779 |
|
2780 | const models = Object.keys(conversions);
|
2781 |
|
2782 | for (let len = models.length, i = 0; i < len; i++) {
|
2783 | graph[models[i]] = {
|
2784 |
|
2785 |
|
2786 | distance: -1,
|
2787 | parent: null
|
2788 | };
|
2789 | }
|
2790 |
|
2791 | return graph;
|
2792 | }
|
2793 |
|
2794 |
|
2795 | function deriveBFS(fromModel) {
|
2796 | const graph = buildGraph();
|
2797 | const queue = [fromModel];
|
2798 |
|
2799 | graph[fromModel].distance = 0;
|
2800 |
|
2801 | while (queue.length) {
|
2802 | const current = queue.pop();
|
2803 | const adjacents = Object.keys(conversions[current]);
|
2804 |
|
2805 | for (let len = adjacents.length, i = 0; i < len; i++) {
|
2806 | const adjacent = adjacents[i];
|
2807 | const node = graph[adjacent];
|
2808 |
|
2809 | if (node.distance === -1) {
|
2810 | node.distance = graph[current].distance + 1;
|
2811 | node.parent = current;
|
2812 | queue.unshift(adjacent);
|
2813 | }
|
2814 | }
|
2815 | }
|
2816 |
|
2817 | return graph;
|
2818 | }
|
2819 |
|
2820 | function link(from, to) {
|
2821 | return function (args) {
|
2822 | return to(from(args));
|
2823 | };
|
2824 | }
|
2825 |
|
2826 | function wrapConversion(toModel, graph) {
|
2827 | const path = [graph[toModel].parent, toModel];
|
2828 | let fn = conversions[graph[toModel].parent][toModel];
|
2829 |
|
2830 | let cur = graph[toModel].parent;
|
2831 | while (graph[cur].parent) {
|
2832 | path.unshift(graph[cur].parent);
|
2833 | fn = link(conversions[graph[cur].parent][cur], fn);
|
2834 | cur = graph[cur].parent;
|
2835 | }
|
2836 |
|
2837 | fn.conversion = path;
|
2838 | return fn;
|
2839 | }
|
2840 |
|
2841 | module.exports = function (fromModel) {
|
2842 | const graph = deriveBFS(fromModel);
|
2843 | const conversion = {};
|
2844 |
|
2845 | const models = Object.keys(graph);
|
2846 | for (let len = models.length, i = 0; i < len; i++) {
|
2847 | const toModel = models[i];
|
2848 | const node = graph[toModel];
|
2849 |
|
2850 | if (node.parent === null) {
|
2851 |
|
2852 | continue;
|
2853 | }
|
2854 |
|
2855 | conversion[toModel] = wrapConversion(toModel, graph);
|
2856 | }
|
2857 |
|
2858 | return conversion;
|
2859 | };
|
2860 |
|
2861 |
|
2862 |
|
2863 | }),
|
2864 | ,
|
2865 | ,
|
2866 | ,
|
2867 | ,
|
2868 | ,
|
2869 | ,
|
2870 |
|
2871 | (function(module) {
|
2872 |
|
2873 | module.exports = require("child_process");
|
2874 |
|
2875 | }),
|
2876 |
|
2877 | (function(__unusedmodule, exports) {
|
2878 |
|
2879 |
|
2880 |
|
2881 |
|
2882 |
|
2883 |
|
2884 |
|
2885 |
|
2886 |
|
2887 |
|
2888 |
|
2889 |
|
2890 |
|
2891 |
|
2892 |
|
2893 |
|
2894 |
|
2895 |
|
2896 |
|
2897 |
|
2898 |
|
2899 |
|
2900 |
|
2901 |
|
2902 |
|
2903 | function isArray(arg) {
|
2904 | if (Array.isArray) {
|
2905 | return Array.isArray(arg);
|
2906 | }
|
2907 | return objectToString(arg) === '[object Array]';
|
2908 | }
|
2909 | exports.isArray = isArray;
|
2910 |
|
2911 | function isBoolean(arg) {
|
2912 | return typeof arg === 'boolean';
|
2913 | }
|
2914 | exports.isBoolean = isBoolean;
|
2915 |
|
2916 | function isNull(arg) {
|
2917 | return arg === null;
|
2918 | }
|
2919 | exports.isNull = isNull;
|
2920 |
|
2921 | function isNullOrUndefined(arg) {
|
2922 | return arg == null;
|
2923 | }
|
2924 | exports.isNullOrUndefined = isNullOrUndefined;
|
2925 |
|
2926 | function isNumber(arg) {
|
2927 | return typeof arg === 'number';
|
2928 | }
|
2929 | exports.isNumber = isNumber;
|
2930 |
|
2931 | function isString(arg) {
|
2932 | return typeof arg === 'string';
|
2933 | }
|
2934 | exports.isString = isString;
|
2935 |
|
2936 | function isSymbol(arg) {
|
2937 | return typeof arg === 'symbol';
|
2938 | }
|
2939 | exports.isSymbol = isSymbol;
|
2940 |
|
2941 | function isUndefined(arg) {
|
2942 | return arg === void 0;
|
2943 | }
|
2944 | exports.isUndefined = isUndefined;
|
2945 |
|
2946 | function isRegExp(re) {
|
2947 | return objectToString(re) === '[object RegExp]';
|
2948 | }
|
2949 | exports.isRegExp = isRegExp;
|
2950 |
|
2951 | function isObject(arg) {
|
2952 | return typeof arg === 'object' && arg !== null;
|
2953 | }
|
2954 | exports.isObject = isObject;
|
2955 |
|
2956 | function isDate(d) {
|
2957 | return objectToString(d) === '[object Date]';
|
2958 | }
|
2959 | exports.isDate = isDate;
|
2960 |
|
2961 | function isError(e) {
|
2962 | return (objectToString(e) === '[object Error]' || e instanceof Error);
|
2963 | }
|
2964 | exports.isError = isError;
|
2965 |
|
2966 | function isFunction(arg) {
|
2967 | return typeof arg === 'function';
|
2968 | }
|
2969 | exports.isFunction = isFunction;
|
2970 |
|
2971 | function isPrimitive(arg) {
|
2972 | return arg === null ||
|
2973 | typeof arg === 'boolean' ||
|
2974 | typeof arg === 'number' ||
|
2975 | typeof arg === 'string' ||
|
2976 | typeof arg === 'symbol' ||
|
2977 | typeof arg === 'undefined';
|
2978 | }
|
2979 | exports.isPrimitive = isPrimitive;
|
2980 |
|
2981 | exports.isBuffer = Buffer.isBuffer;
|
2982 |
|
2983 | function objectToString(o) {
|
2984 | return Object.prototype.toString.call(o);
|
2985 | }
|
2986 |
|
2987 |
|
2988 | }),
|
2989 | ,
|
2990 |
|
2991 | (function(module) {
|
2992 |
|
2993 | module.exports = {"single":{"topLeft":"┌","topRight":"┐","bottomRight":"┘","bottomLeft":"└","vertical":"│","horizontal":"─"},"double":{"topLeft":"╔","topRight":"╗","bottomRight":"╝","bottomLeft":"╚","vertical":"║","horizontal":"═"},"round":{"topLeft":"╭","topRight":"╮","bottomRight":"╯","bottomLeft":"╰","vertical":"│","horizontal":"─"},"bold":{"topLeft":"┏","topRight":"┓","bottomRight":"┛","bottomLeft":"┗","vertical":"┃","horizontal":"━"},"singleDouble":{"topLeft":"╓","topRight":"╖","bottomRight":"╜","bottomLeft":"╙","vertical":"║","horizontal":"─"},"doubleSingle":{"topLeft":"╒","topRight":"╕","bottomRight":"╛","bottomLeft":"╘","vertical":"│","horizontal":"═"},"classic":{"topLeft":"+","topRight":"+","bottomRight":"+","bottomLeft":"+","vertical":"|","horizontal":"-"}};
|
2994 |
|
2995 | }),
|
2996 | ,
|
2997 | ,
|
2998 |
|
2999 | (function(module, __unusedexports, __webpack_require__) {
|
3000 |
|
3001 | "use strict";
|
3002 |
|
3003 | var Buffer = __webpack_require__(603).Buffer;
|
3004 |
|
3005 |
|
3006 |
|
3007 | module.exports = {
|
3008 |
|
3009 | utf8: { type: "_internal", bomAware: true},
|
3010 | cesu8: { type: "_internal", bomAware: true},
|
3011 | unicode11utf8: "utf8",
|
3012 |
|
3013 | ucs2: { type: "_internal", bomAware: true},
|
3014 | utf16le: "ucs2",
|
3015 |
|
3016 | binary: { type: "_internal" },
|
3017 | base64: { type: "_internal" },
|
3018 | hex: { type: "_internal" },
|
3019 |
|
3020 |
|
3021 | _internal: InternalCodec,
|
3022 | };
|
3023 |
|
3024 |
|
3025 |
|
3026 | function InternalCodec(codecOptions, iconv) {
|
3027 | this.enc = codecOptions.encodingName;
|
3028 | this.bomAware = codecOptions.bomAware;
|
3029 |
|
3030 | if (this.enc === "base64")
|
3031 | this.encoder = InternalEncoderBase64;
|
3032 | else if (this.enc === "cesu8") {
|
3033 | this.enc = "utf8";
|
3034 | this.encoder = InternalEncoderCesu8;
|
3035 |
|
3036 |
|
3037 | if (Buffer.from('eda0bdedb2a9', 'hex').toString() !== '💩') {
|
3038 | this.decoder = InternalDecoderCesu8;
|
3039 | this.defaultCharUnicode = iconv.defaultCharUnicode;
|
3040 | }
|
3041 | }
|
3042 | }
|
3043 |
|
3044 | InternalCodec.prototype.encoder = InternalEncoder;
|
3045 | InternalCodec.prototype.decoder = InternalDecoder;
|
3046 |
|
3047 |
|
3048 |
|
3049 |
|
3050 | var StringDecoder = __webpack_require__(304).StringDecoder;
|
3051 |
|
3052 | if (!StringDecoder.prototype.end)
|
3053 | StringDecoder.prototype.end = function() {};
|
3054 |
|
3055 |
|
3056 | function InternalDecoder(options, codec) {
|
3057 | StringDecoder.call(this, codec.enc);
|
3058 | }
|
3059 |
|
3060 | InternalDecoder.prototype = StringDecoder.prototype;
|
3061 |
|
3062 |
|
3063 |
|
3064 |
|
3065 |
|
3066 | function InternalEncoder(options, codec) {
|
3067 | this.enc = codec.enc;
|
3068 | }
|
3069 |
|
3070 | InternalEncoder.prototype.write = function(str) {
|
3071 | return Buffer.from(str, this.enc);
|
3072 | }
|
3073 |
|
3074 | InternalEncoder.prototype.end = function() {
|
3075 | }
|
3076 |
|
3077 |
|
3078 |
|
3079 |
|
3080 |
|
3081 | function InternalEncoderBase64(options, codec) {
|
3082 | this.prevStr = '';
|
3083 | }
|
3084 |
|
3085 | InternalEncoderBase64.prototype.write = function(str) {
|
3086 | str = this.prevStr + str;
|
3087 | var completeQuads = str.length - (str.length % 4);
|
3088 | this.prevStr = str.slice(completeQuads);
|
3089 | str = str.slice(0, completeQuads);
|
3090 |
|
3091 | return Buffer.from(str, "base64");
|
3092 | }
|
3093 |
|
3094 | InternalEncoderBase64.prototype.end = function() {
|
3095 | return Buffer.from(this.prevStr, "base64");
|
3096 | }
|
3097 |
|
3098 |
|
3099 |
|
3100 |
|
3101 |
|
3102 | function InternalEncoderCesu8(options, codec) {
|
3103 | }
|
3104 |
|
3105 | InternalEncoderCesu8.prototype.write = function(str) {
|
3106 | var buf = Buffer.alloc(str.length * 3), bufIdx = 0;
|
3107 | for (var i = 0; i < str.length; i++) {
|
3108 | var charCode = str.charCodeAt(i);
|
3109 |
|
3110 |
|
3111 | if (charCode < 0x80)
|
3112 | buf[bufIdx++] = charCode;
|
3113 | else if (charCode < 0x800) {
|
3114 | buf[bufIdx++] = 0xC0 + (charCode >>> 6);
|
3115 | buf[bufIdx++] = 0x80 + (charCode & 0x3f);
|
3116 | }
|
3117 | else {
|
3118 | buf[bufIdx++] = 0xE0 + (charCode >>> 12);
|
3119 | buf[bufIdx++] = 0x80 + ((charCode >>> 6) & 0x3f);
|
3120 | buf[bufIdx++] = 0x80 + (charCode & 0x3f);
|
3121 | }
|
3122 | }
|
3123 | return buf.slice(0, bufIdx);
|
3124 | }
|
3125 |
|
3126 | InternalEncoderCesu8.prototype.end = function() {
|
3127 | }
|
3128 |
|
3129 |
|
3130 |
|
3131 |
|
3132 | function InternalDecoderCesu8(options, codec) {
|
3133 | this.acc = 0;
|
3134 | this.contBytes = 0;
|
3135 | this.accBytes = 0;
|
3136 | this.defaultCharUnicode = codec.defaultCharUnicode;
|
3137 | }
|
3138 |
|
3139 | InternalDecoderCesu8.prototype.write = function(buf) {
|
3140 | var acc = this.acc, contBytes = this.contBytes, accBytes = this.accBytes,
|
3141 | res = '';
|
3142 | for (var i = 0; i < buf.length; i++) {
|
3143 | var curByte = buf[i];
|
3144 | if ((curByte & 0xC0) !== 0x80) {
|
3145 | if (contBytes > 0) {
|
3146 | res += this.defaultCharUnicode;
|
3147 | contBytes = 0;
|
3148 | }
|
3149 |
|
3150 | if (curByte < 0x80) {
|
3151 | res += String.fromCharCode(curByte);
|
3152 | } else if (curByte < 0xE0) {
|
3153 | acc = curByte & 0x1F;
|
3154 | contBytes = 1; accBytes = 1;
|
3155 | } else if (curByte < 0xF0) {
|
3156 | acc = curByte & 0x0F;
|
3157 | contBytes = 2; accBytes = 1;
|
3158 | } else {
|
3159 | res += this.defaultCharUnicode;
|
3160 | }
|
3161 | } else {
|
3162 | if (contBytes > 0) {
|
3163 | acc = (acc << 6) | (curByte & 0x3f);
|
3164 | contBytes--; accBytes++;
|
3165 | if (contBytes === 0) {
|
3166 |
|
3167 | if (accBytes === 2 && acc < 0x80 && acc > 0)
|
3168 | res += this.defaultCharUnicode;
|
3169 | else if (accBytes === 3 && acc < 0x800)
|
3170 | res += this.defaultCharUnicode;
|
3171 | else
|
3172 |
|
3173 | res += String.fromCharCode(acc);
|
3174 | }
|
3175 | } else {
|
3176 | res += this.defaultCharUnicode;
|
3177 | }
|
3178 | }
|
3179 | }
|
3180 | this.acc = acc; this.contBytes = contBytes; this.accBytes = accBytes;
|
3181 | return res;
|
3182 | }
|
3183 |
|
3184 | InternalDecoderCesu8.prototype.end = function() {
|
3185 | var res = 0;
|
3186 | if (this.contBytes > 0)
|
3187 | res += this.defaultCharUnicode;
|
3188 | return res;
|
3189 | }
|
3190 |
|
3191 |
|
3192 | }),
|
3193 | ,
|
3194 | ,
|
3195 | ,
|
3196 | ,
|
3197 | ,
|
3198 | ,
|
3199 | ,
|
3200 |
|
3201 | (function(module, __unusedexports, __webpack_require__) {
|
3202 |
|
3203 | "use strict";
|
3204 |
|
3205 |
|
3206 | const fs = __webpack_require__(729)
|
3207 | const path = __webpack_require__(622)
|
3208 | const mkdirp = __webpack_require__(648).mkdirs
|
3209 | const pathExists = __webpack_require__(370).pathExists
|
3210 | const utimes = __webpack_require__(402).utimesMillis
|
3211 |
|
3212 | const notExist = Symbol('notExist')
|
3213 |
|
3214 | function copy (src, dest, opts, cb) {
|
3215 | if (typeof opts === 'function' && !cb) {
|
3216 | cb = opts
|
3217 | opts = {}
|
3218 | } else if (typeof opts === 'function') {
|
3219 | opts = {filter: opts}
|
3220 | }
|
3221 |
|
3222 | cb = cb || function () {}
|
3223 | opts = opts || {}
|
3224 |
|
3225 | opts.clobber = 'clobber' in opts ? !!opts.clobber : true
|
3226 | opts.overwrite = 'overwrite' in opts ? !!opts.overwrite : opts.clobber
|
3227 |
|
3228 |
|
3229 | if (opts.preserveTimestamps && process.arch === 'ia32') {
|
3230 | console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n
|
3231 | see https://github.com/jprichardson/node-fs-extra/issues/269`)
|
3232 | }
|
3233 |
|
3234 | checkPaths(src, dest, (err, destStat) => {
|
3235 | if (err) return cb(err)
|
3236 | if (opts.filter) return handleFilter(checkParentDir, destStat, src, dest, opts, cb)
|
3237 | return checkParentDir(destStat, src, dest, opts, cb)
|
3238 | })
|
3239 | }
|
3240 |
|
3241 | function checkParentDir (destStat, src, dest, opts, cb) {
|
3242 | const destParent = path.dirname(dest)
|
3243 | pathExists(destParent, (err, dirExists) => {
|
3244 | if (err) return cb(err)
|
3245 | if (dirExists) return startCopy(destStat, src, dest, opts, cb)
|
3246 | mkdirp(destParent, err => {
|
3247 | if (err) return cb(err)
|
3248 | return startCopy(destStat, src, dest, opts, cb)
|
3249 | })
|
3250 | })
|
3251 | }
|
3252 |
|
3253 | function handleFilter (onInclude, destStat, src, dest, opts, cb) {
|
3254 | Promise.resolve(opts.filter(src, dest)).then(include => {
|
3255 | if (include) {
|
3256 | if (destStat) return onInclude(destStat, src, dest, opts, cb)
|
3257 | return onInclude(src, dest, opts, cb)
|
3258 | }
|
3259 | return cb()
|
3260 | }, error => cb(error))
|
3261 | }
|
3262 |
|
3263 | function startCopy (destStat, src, dest, opts, cb) {
|
3264 | if (opts.filter) return handleFilter(getStats, destStat, src, dest, opts, cb)
|
3265 | return getStats(destStat, src, dest, opts, cb)
|
3266 | }
|
3267 |
|
3268 | function getStats (destStat, src, dest, opts, cb) {
|
3269 | const stat = opts.dereference ? fs.stat : fs.lstat
|
3270 | stat(src, (err, srcStat) => {
|
3271 | if (err) return cb(err)
|
3272 |
|
3273 | if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts, cb)
|
3274 | else if (srcStat.isFile() ||
|
3275 | srcStat.isCharacterDevice() ||
|
3276 | srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts, cb)
|
3277 | else if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts, cb)
|
3278 | })
|
3279 | }
|
3280 |
|
3281 | function onFile (srcStat, destStat, src, dest, opts, cb) {
|
3282 | if (destStat === notExist) return copyFile(srcStat, src, dest, opts, cb)
|
3283 | return mayCopyFile(srcStat, src, dest, opts, cb)
|
3284 | }
|
3285 |
|
3286 | function mayCopyFile (srcStat, src, dest, opts, cb) {
|
3287 | if (opts.overwrite) {
|
3288 | fs.unlink(dest, err => {
|
3289 | if (err) return cb(err)
|
3290 | return copyFile(srcStat, src, dest, opts, cb)
|
3291 | })
|
3292 | } else if (opts.errorOnExist) {
|
3293 | return cb(new Error(`'${dest}' already exists`))
|
3294 | } else return cb()
|
3295 | }
|
3296 |
|
3297 | function copyFile (srcStat, src, dest, opts, cb) {
|
3298 | if (typeof fs.copyFile === 'function') {
|
3299 | return fs.copyFile(src, dest, err => {
|
3300 | if (err) return cb(err)
|
3301 | return setDestModeAndTimestamps(srcStat, dest, opts, cb)
|
3302 | })
|
3303 | }
|
3304 | return copyFileFallback(srcStat, src, dest, opts, cb)
|
3305 | }
|
3306 |
|
3307 | function copyFileFallback (srcStat, src, dest, opts, cb) {
|
3308 | const rs = fs.createReadStream(src)
|
3309 | rs.on('error', err => cb(err)).once('open', () => {
|
3310 | const ws = fs.createWriteStream(dest, { mode: srcStat.mode })
|
3311 | ws.on('error', err => cb(err))
|
3312 | .on('open', () => rs.pipe(ws))
|
3313 | .once('close', () => setDestModeAndTimestamps(srcStat, dest, opts, cb))
|
3314 | })
|
3315 | }
|
3316 |
|
3317 | function setDestModeAndTimestamps (srcStat, dest, opts, cb) {
|
3318 | fs.chmod(dest, srcStat.mode, err => {
|
3319 | if (err) return cb(err)
|
3320 | if (opts.preserveTimestamps) {
|
3321 | return utimes(dest, srcStat.atime, srcStat.mtime, cb)
|
3322 | }
|
3323 | return cb()
|
3324 | })
|
3325 | }
|
3326 |
|
3327 | function onDir (srcStat, destStat, src, dest, opts, cb) {
|
3328 | if (destStat === notExist) return mkDirAndCopy(srcStat, src, dest, opts, cb)
|
3329 | if (destStat && !destStat.isDirectory()) {
|
3330 | return cb(new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`))
|
3331 | }
|
3332 | return copyDir(src, dest, opts, cb)
|
3333 | }
|
3334 |
|
3335 | function mkDirAndCopy (srcStat, src, dest, opts, cb) {
|
3336 | fs.mkdir(dest, err => {
|
3337 | if (err) return cb(err)
|
3338 | copyDir(src, dest, opts, err => {
|
3339 | if (err) return cb(err)
|
3340 | return fs.chmod(dest, srcStat.mode, cb)
|
3341 | })
|
3342 | })
|
3343 | }
|
3344 |
|
3345 | function copyDir (src, dest, opts, cb) {
|
3346 | fs.readdir(src, (err, items) => {
|
3347 | if (err) return cb(err)
|
3348 | return copyDirItems(items, src, dest, opts, cb)
|
3349 | })
|
3350 | }
|
3351 |
|
3352 | function copyDirItems (items, src, dest, opts, cb) {
|
3353 | const item = items.pop()
|
3354 | if (!item) return cb()
|
3355 | return copyDirItem(items, item, src, dest, opts, cb)
|
3356 | }
|
3357 |
|
3358 | function copyDirItem (items, item, src, dest, opts, cb) {
|
3359 | const srcItem = path.join(src, item)
|
3360 | const destItem = path.join(dest, item)
|
3361 | checkPaths(srcItem, destItem, (err, destStat) => {
|
3362 | if (err) return cb(err)
|
3363 | startCopy(destStat, srcItem, destItem, opts, err => {
|
3364 | if (err) return cb(err)
|
3365 | return copyDirItems(items, src, dest, opts, cb)
|
3366 | })
|
3367 | })
|
3368 | }
|
3369 |
|
3370 | function onLink (destStat, src, dest, opts, cb) {
|
3371 | fs.readlink(src, (err, resolvedSrc) => {
|
3372 | if (err) return cb(err)
|
3373 |
|
3374 | if (opts.dereference) {
|
3375 | resolvedSrc = path.resolve(process.cwd(), resolvedSrc)
|
3376 | }
|
3377 |
|
3378 | if (destStat === notExist) {
|
3379 | return fs.symlink(resolvedSrc, dest, cb)
|
3380 | } else {
|
3381 | fs.readlink(dest, (err, resolvedDest) => {
|
3382 | if (err) {
|
3383 |
|
3384 |
|
3385 |
|
3386 | if (err.code === 'EINVAL' || err.code === 'UNKNOWN') return fs.symlink(resolvedSrc, dest, cb)
|
3387 | return cb(err)
|
3388 | }
|
3389 | if (opts.dereference) {
|
3390 | resolvedDest = path.resolve(process.cwd(), resolvedDest)
|
3391 | }
|
3392 | if (isSrcSubdir(resolvedSrc, resolvedDest)) {
|
3393 | return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`))
|
3394 | }
|
3395 |
|
3396 |
|
3397 |
|
3398 |
|
3399 | if (destStat.isDirectory() && isSrcSubdir(resolvedDest, resolvedSrc)) {
|
3400 | return cb(new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`))
|
3401 | }
|
3402 | return copyLink(resolvedSrc, dest, cb)
|
3403 | })
|
3404 | }
|
3405 | })
|
3406 | }
|
3407 |
|
3408 | function copyLink (resolvedSrc, dest, cb) {
|
3409 | fs.unlink(dest, err => {
|
3410 | if (err) return cb(err)
|
3411 | return fs.symlink(resolvedSrc, dest, cb)
|
3412 | })
|
3413 | }
|
3414 |
|
3415 |
|
3416 | function isSrcSubdir (src, dest) {
|
3417 | const srcArray = path.resolve(src).split(path.sep)
|
3418 | const destArray = path.resolve(dest).split(path.sep)
|
3419 | return srcArray.reduce((acc, current, i) => acc && destArray[i] === current, true)
|
3420 | }
|
3421 |
|
3422 | function checkStats (src, dest, cb) {
|
3423 | fs.stat(src, (err, srcStat) => {
|
3424 | if (err) return cb(err)
|
3425 | fs.stat(dest, (err, destStat) => {
|
3426 | if (err) {
|
3427 | if (err.code === 'ENOENT') return cb(null, {srcStat, destStat: notExist})
|
3428 | return cb(err)
|
3429 | }
|
3430 | return cb(null, {srcStat, destStat})
|
3431 | })
|
3432 | })
|
3433 | }
|
3434 |
|
3435 | function checkPaths (src, dest, cb) {
|
3436 | checkStats(src, dest, (err, stats) => {
|
3437 | if (err) return cb(err)
|
3438 | const {srcStat, destStat} = stats
|
3439 | if (destStat.ino && destStat.ino === srcStat.ino) {
|
3440 | return cb(new Error('Source and destination must not be the same.'))
|
3441 | }
|
3442 | if (srcStat.isDirectory() && isSrcSubdir(src, dest)) {
|
3443 | return cb(new Error(`Cannot copy '${src}' to a subdirectory of itself, '${dest}'.`))
|
3444 | }
|
3445 | return cb(null, destStat)
|
3446 | })
|
3447 | }
|
3448 |
|
3449 | module.exports = copy
|
3450 |
|
3451 |
|
3452 | }),
|
3453 | ,
|
3454 |
|
3455 | (function(module) {
|
3456 |
|
3457 | module.exports = [["0","\u0000",127],["8ea1","。",62],["a1a1"," 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈",9,"+-±×÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇"],["a2a1","◆□■△▲▽▼※〒→←↑↓〓"],["a2ba","∈∋⊆⊇⊂⊃∪∩"],["a2ca","∧∨¬⇒⇔∀∃"],["a2dc","∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬"],["a2f2","ʼn♯♭♪†‡¶"],["a2fe","◯"],["a3b0","0",9],["a3c1","A",25],["a3e1","a",25],["a4a1","ぁ",82],["a5a1","ァ",85],["a6a1","Α",16,"Σ",6],["a6c1","α",16,"σ",6],["a7a1","А",5,"ЁЖ",25],["a7d1","а",5,"ёж",25],["a8a1","─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂"],["ada1","①",19,"Ⅰ",9],["adc0","㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡"],["addf","㍻〝〟№㏍℡㊤",4,"㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪"],["b0a1","亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭"],["b1a1","院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応"],["b2a1","押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改"],["b3a1","魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱"],["b4a1","粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄"],["b5a1","機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京"],["b6a1","供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈"],["b7a1","掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲"],["b8a1","検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向"],["b9a1","后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込"],["baa1","此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷"],["bba1","察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時"],["bca1","次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周"],["bda1","宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償"],["bea1","勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾"],["bfa1","拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾"],["c0a1","澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線"],["c1a1","繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎"],["c2a1","臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只"],["c3a1","叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵"],["c4a1","帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓"],["c5a1","邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到"],["c6a1","董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入"],["c7a1","如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦"],["c8a1","函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美"],["c9a1","鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服"],["caa1","福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋"],["cba1","法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満"],["cca1","漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒"],["cda1","諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃"],["cea1","痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯"],["cfa1","蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕"],["d0a1","弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲"],["d1a1","僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨"],["d2a1","辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨"],["d3a1","咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉"],["d4a1","圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩"],["d5a1","奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓"],["d6a1","屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏"],["d7a1","廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚"],["d8a1","悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛"],["d9a1","戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼"],["daa1","據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼"],["dba1","曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍"],["dca1","棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣"],["dda1","檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾"],["dea1","沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌"],["dfa1","漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼"],["e0a1","燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱"],["e1a1","瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰"],["e2a1","癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬"],["e3a1","磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐"],["e4a1","筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆"],["e5a1","紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺"],["e6a1","罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋"],["e7a1","隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙"],["e8a1","茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈"],["e9a1","蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙"],["eaa1","蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞"],["eba1","襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫"],["eca1","譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊"],["eda1","蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸"],["eea1","遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮"],["efa1","錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞"],["f0a1","陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰"],["f1a1","顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷"],["f2a1","髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈"],["f3a1","鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠"],["f4a1","堯槇遙瑤凜熙"],["f9a1","纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德"],["faa1","忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱"],["fba1","犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚"],["fca1","釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"],["fcf1","ⅰ",9,"¬¦'""],["8fa2af","˘ˇ¸˙˝¯˛˚~΄΅"],["8fa2c2","¡¦¿"],["8fa2eb","ºª©®™¤№"],["8fa6e1","ΆΈΉΊΪ"],["8fa6e7","Ό"],["8fa6e9","ΎΫ"],["8fa6ec","Ώ"],["8fa6f1","άέήίϊΐόςύϋΰώ"],["8fa7c2","Ђ",10,"ЎЏ"],["8fa7f2","ђ",10,"ўџ"],["8fa9a1","ÆĐ"],["8fa9a4","Ħ"],["8fa9a6","IJ"],["8fa9a8","ŁĿ"],["8fa9ab","ŊØŒ"],["8fa9af","ŦÞ"],["8fa9c1","æđðħıijĸłŀʼnŋøœßŧþ"],["8faaa1","ÁÀÄÂĂǍĀĄÅÃĆĈČÇĊĎÉÈËÊĚĖĒĘ"],["8faaba","ĜĞĢĠĤÍÌÏÎǏİĪĮĨĴĶĹĽĻŃŇŅÑÓÒÖÔǑŐŌÕŔŘŖŚŜŠŞŤŢÚÙÜÛŬǓŰŪŲŮŨǗǛǙǕŴÝŸŶŹŽŻ"],["8faba1","áàäâăǎāąåãćĉčçċďéèëêěėēęǵĝğ"],["8fabbd","ġĥíìïîǐ"],["8fabc5","īįĩĵķĺľļńňņñóòöôǒőōõŕřŗśŝšşťţúùüûŭǔűūųůũǘǜǚǖŵýÿŷźžż"],["8fb0a1","丂丄丅丌丒丟丣两丨丫丮丯丰丵乀乁乄乇乑乚乜乣乨乩乴乵乹乿亍亖亗亝亯亹仃仐仚仛仠仡仢仨仯仱仳仵份仾仿伀伂伃伈伋伌伒伕伖众伙伮伱你伳伵伷伹伻伾佀佂佈佉佋佌佒佔佖佘佟佣佪佬佮佱佷佸佹佺佽佾侁侂侄"],["8fb1a1","侅侉侊侌侎侐侒侓侔侗侙侚侞侟侲侷侹侻侼侽侾俀俁俅俆俈俉俋俌俍俏俒俜俠俢俰俲俼俽俿倀倁倄倇倊倌倎倐倓倗倘倛倜倝倞倢倧倮倰倲倳倵偀偁偂偅偆偊偌偎偑偒偓偗偙偟偠偢偣偦偧偪偭偰偱倻傁傃傄傆傊傎傏傐"],["8fb2a1","傒傓傔傖傛傜傞",4,"傪傯傰傹傺傽僀僃僄僇僌僎僐僓僔僘僜僝僟僢僤僦僨僩僯僱僶僺僾儃儆儇儈儋儌儍儎僲儐儗儙儛儜儝儞儣儧儨儬儭儯儱儳儴儵儸儹兂兊兏兓兕兗兘兟兤兦兾冃冄冋冎冘冝冡冣冭冸冺冼冾冿凂"],["8fb3a1","凈减凑凒凓凕凘凞凢凥凮凲凳凴凷刁刂刅划刓刕刖刘刢刨刱刲刵刼剅剉剕剗剘剚剜剟剠剡剦剮剷剸剹劀劂劅劊劌劓劕劖劗劘劚劜劤劥劦劧劯劰劶劷劸劺劻劽勀勄勆勈勌勏勑勔勖勛勜勡勥勨勩勪勬勰勱勴勶勷匀匃匊匋"],["8fb4a1","匌匑匓匘匛匜匞匟匥匧匨匩匫匬匭匰匲匵匼匽匾卂卌卋卙卛卡卣卥卬卭卲卹卾厃厇厈厎厓厔厙厝厡厤厪厫厯厲厴厵厷厸厺厽叀叅叏叒叓叕叚叝叞叠另叧叵吂吓吚吡吧吨吪启吱吴吵呃呄呇呍呏呞呢呤呦呧呩呫呭呮呴呿"],["8fb5a1","咁咃咅咈咉咍咑咕咖咜咟咡咦咧咩咪咭咮咱咷咹咺咻咿哆哊响哎哠哪哬哯哶哼哾哿唀唁唅唈唉唌唍唎唕唪唫唲唵唶唻唼唽啁啇啉啊啍啐啑啘啚啛啞啠啡啤啦啿喁喂喆喈喎喏喑喒喓喔喗喣喤喭喲喿嗁嗃嗆嗉嗋嗌嗎嗑嗒"],["8fb6a1","嗓嗗嗘嗛嗞嗢嗩嗶嗿嘅嘈嘊嘍",5,"嘙嘬嘰嘳嘵嘷嘹嘻嘼嘽嘿噀噁噃噄噆噉噋噍噏噔噞噠噡噢噣噦噩噭噯噱噲噵嚄嚅嚈嚋嚌嚕嚙嚚嚝嚞嚟嚦嚧嚨嚩嚫嚬嚭嚱嚳嚷嚾囅囉囊囋囏囐囌囍囙囜囝囟囡囤",4,"囱囫园"],["8fb7a1","囶囷圁圂圇圊圌圑圕圚圛圝圠圢圣圤圥圩圪圬圮圯圳圴圽圾圿坅坆坌坍坒坢坥坧坨坫坭",4,"坳坴坵坷坹坺坻坼坾垁垃垌垔垗垙垚垜垝垞垟垡垕垧垨垩垬垸垽埇埈埌埏埕埝埞埤埦埧埩埭埰埵埶埸埽埾埿堃堄堈堉埡"],["8fb8a1","堌堍堛堞堟堠堦堧堭堲堹堿塉塌塍塏塐塕塟塡塤塧塨塸塼塿墀墁墇墈墉墊墌墍墏墐墔墖墝墠墡墢墦墩墱墲壄墼壂壈壍壎壐壒壔壖壚壝壡壢壩壳夅夆夋夌夒夓夔虁夝夡夣夤夨夯夰夳夵夶夿奃奆奒奓奙奛奝奞奟奡奣奫奭"],["8fb9a1","奯奲奵奶她奻奼妋妌妎妒妕妗妟妤妧妭妮妯妰妳妷妺妼姁姃姄姈姊姍姒姝姞姟姣姤姧姮姯姱姲姴姷娀娄娌娍娎娒娓娞娣娤娧娨娪娭娰婄婅婇婈婌婐婕婞婣婥婧婭婷婺婻婾媋媐媓媖媙媜媞媟媠媢媧媬媱媲媳媵媸媺媻媿"],["8fbaa1","嫄嫆嫈嫏嫚嫜嫠嫥嫪嫮嫵嫶嫽嬀嬁嬈嬗嬴嬙嬛嬝嬡嬥嬭嬸孁孋孌孒孖孞孨孮孯孼孽孾孿宁宄宆宊宎宐宑宓宔宖宨宩宬宭宯宱宲宷宺宼寀寁寍寏寖",4,"寠寯寱寴寽尌尗尞尟尣尦尩尫尬尮尰尲尵尶屙屚屜屢屣屧屨屩"],["8fbba1","屭屰屴屵屺屻屼屽岇岈岊岏岒岝岟岠岢岣岦岪岲岴岵岺峉峋峒峝峗峮峱峲峴崁崆崍崒崫崣崤崦崧崱崴崹崽崿嵂嵃嵆嵈嵕嵑嵙嵊嵟嵠嵡嵢嵤嵪嵭嵰嵹嵺嵾嵿嶁嶃嶈嶊嶒嶓嶔嶕嶙嶛嶟嶠嶧嶫嶰嶴嶸嶹巃巇巋巐巎巘巙巠巤"],["8fbca1","巩巸巹帀帇帍帒帔帕帘帟帠帮帨帲帵帾幋幐幉幑幖幘幛幜幞幨幪",4,"幰庀庋庎庢庤庥庨庪庬庱庳庽庾庿廆廌廋廎廑廒廔廕廜廞廥廫异弆弇弈弎弙弜弝弡弢弣弤弨弫弬弮弰弴弶弻弽弿彀彄彅彇彍彐彔彘彛彠彣彤彧"],["8fbda1","彯彲彴彵彸彺彽彾徉徍徏徖徜徝徢徧徫徤徬徯徰徱徸忄忇忈忉忋忐",4,"忞忡忢忨忩忪忬忭忮忯忲忳忶忺忼怇怊怍怓怔怗怘怚怟怤怭怳怵恀恇恈恉恌恑恔恖恗恝恡恧恱恾恿悂悆悈悊悎悑悓悕悘悝悞悢悤悥您悰悱悷"],["8fbea1","悻悾惂惄惈惉惊惋惎惏惔惕惙惛惝惞惢惥惲惵惸惼惽愂愇愊愌愐",4,"愖愗愙愜愞愢愪愫愰愱愵愶愷愹慁慅慆慉慞慠慬慲慸慻慼慿憀憁憃憄憋憍憒憓憗憘憜憝憟憠憥憨憪憭憸憹憼懀懁懂懎懏懕懜懝懞懟懡懢懧懩懥"],["8fbfa1","懬懭懯戁戃戄戇戓戕戜戠戢戣戧戩戫戹戽扂扃扄扆扌扐扑扒扔扖扚扜扤扭扯扳扺扽抍抎抏抐抦抨抳抶抷抺抾抿拄拎拕拖拚拪拲拴拼拽挃挄挊挋挍挐挓挖挘挩挪挭挵挶挹挼捁捂捃捄捆捊捋捎捒捓捔捘捛捥捦捬捭捱捴捵"],["8fc0a1","捸捼捽捿掂掄掇掊掐掔掕掙掚掞掤掦掭掮掯掽揁揅揈揎揑揓揔揕揜揠揥揪揬揲揳揵揸揹搉搊搐搒搔搘搞搠搢搤搥搩搪搯搰搵搽搿摋摏摑摒摓摔摚摛摜摝摟摠摡摣摭摳摴摻摽撅撇撏撐撑撘撙撛撝撟撡撣撦撨撬撳撽撾撿"],["8fc1a1","擄擉擊擋擌擎擐擑擕擗擤擥擩擪擭擰擵擷擻擿攁攄攈攉攊攏攓攔攖攙攛攞攟攢攦攩攮攱攺攼攽敃敇敉敐敒敔敟敠敧敫敺敽斁斅斊斒斕斘斝斠斣斦斮斲斳斴斿旂旈旉旎旐旔旖旘旟旰旲旴旵旹旾旿昀昄昈昉昍昑昒昕昖昝"],["8fc2a1","昞昡昢昣昤昦昩昪昫昬昮昰昱昳昹昷晀晅晆晊晌晑晎晗晘晙晛晜晠晡曻晪晫晬晾晳晵晿晷晸晹晻暀晼暋暌暍暐暒暙暚暛暜暟暠暤暭暱暲暵暻暿曀曂曃曈曌曎曏曔曛曟曨曫曬曮曺朅朇朎朓朙朜朠朢朳朾杅杇杈杌杔杕杝"],["8fc3a1","杦杬杮杴杶杻极构枎枏枑枓枖枘枙枛枰枱枲枵枻枼枽柹柀柂柃柅柈柉柒柗柙柜柡柦柰柲柶柷桒栔栙栝栟栨栧栬栭栯栰栱栳栻栿桄桅桊桌桕桗桘桛桫桮",4,"桵桹桺桻桼梂梄梆梈梖梘梚梜梡梣梥梩梪梮梲梻棅棈棌棏"],["8fc4a1","棐棑棓棖棙棜棝棥棨棪棫棬棭棰棱棵棶棻棼棽椆椉椊椐椑椓椖椗椱椳椵椸椻楂楅楉楎楗楛楣楤楥楦楨楩楬楰楱楲楺楻楿榀榍榒榖榘榡榥榦榨榫榭榯榷榸榺榼槅槈槑槖槗槢槥槮槯槱槳槵槾樀樁樃樏樑樕樚樝樠樤樨樰樲"],["8fc5a1","樴樷樻樾樿橅橆橉橊橎橐橑橒橕橖橛橤橧橪橱橳橾檁檃檆檇檉檋檑檛檝檞檟檥檫檯檰檱檴檽檾檿櫆櫉櫈櫌櫐櫔櫕櫖櫜櫝櫤櫧櫬櫰櫱櫲櫼櫽欂欃欆欇欉欏欐欑欗欛欞欤欨欫欬欯欵欶欻欿歆歊歍歒歖歘歝歠歧歫歮歰歵歽"],["8fc6a1","歾殂殅殗殛殟殠殢殣殨殩殬殭殮殰殸殹殽殾毃毄毉毌毖毚毡毣毦毧毮毱毷毹毿氂氄氅氉氍氎氐氒氙氟氦氧氨氬氮氳氵氶氺氻氿汊汋汍汏汒汔汙汛汜汫汭汯汴汶汸汹汻沅沆沇沉沔沕沗沘沜沟沰沲沴泂泆泍泏泐泑泒泔泖"],["8fc7a1","泚泜泠泧泩泫泬泮泲泴洄洇洊洎洏洑洓洚洦洧洨汧洮洯洱洹洼洿浗浞浟浡浥浧浯浰浼涂涇涑涒涔涖涗涘涪涬涴涷涹涽涿淄淈淊淎淏淖淛淝淟淠淢淥淩淯淰淴淶淼渀渄渞渢渧渲渶渹渻渼湄湅湈湉湋湏湑湒湓湔湗湜湝湞"],["8fc8a1","湢湣湨湳湻湽溍溓溙溠溧溭溮溱溳溻溿滀滁滃滇滈滊滍滎滏滫滭滮滹滻滽漄漈漊漌漍漖漘漚漛漦漩漪漯漰漳漶漻漼漭潏潑潒潓潗潙潚潝潞潡潢潨潬潽潾澃澇澈澋澌澍澐澒澓澔澖澚澟澠澥澦澧澨澮澯澰澵澶澼濅濇濈濊"],["8fc9a1","濚濞濨濩濰濵濹濼濽瀀瀅瀆瀇瀍瀗瀠瀣瀯瀴瀷瀹瀼灃灄灈灉灊灋灔灕灝灞灎灤灥灬灮灵灶灾炁炅炆炔",4,"炛炤炫炰炱炴炷烊烑烓烔烕烖烘烜烤烺焃",4,"焋焌焏焞焠焫焭焯焰焱焸煁煅煆煇煊煋煐煒煗煚煜煞煠"],["8fcaa1","煨煹熀熅熇熌熒熚熛熠熢熯熰熲熳熺熿燀燁燄燋燌燓燖燙燚燜燸燾爀爇爈爉爓爗爚爝爟爤爫爯爴爸爹牁牂牃牅牎牏牐牓牕牖牚牜牞牠牣牨牫牮牯牱牷牸牻牼牿犄犉犍犎犓犛犨犭犮犱犴犾狁狇狉狌狕狖狘狟狥狳狴狺狻"],["8fcba1","狾猂猄猅猇猋猍猒猓猘猙猞猢猤猧猨猬猱猲猵猺猻猽獃獍獐獒獖獘獝獞獟獠獦獧獩獫獬獮獯獱獷獹獼玀玁玃玅玆玎玐玓玕玗玘玜玞玟玠玢玥玦玪玫玭玵玷玹玼玽玿珅珆珉珋珌珏珒珓珖珙珝珡珣珦珧珩珴珵珷珹珺珻珽"],["8fcca1","珿琀琁琄琇琊琑琚琛琤琦琨",9,"琹瑀瑃瑄瑆瑇瑋瑍瑑瑒瑗瑝瑢瑦瑧瑨瑫瑭瑮瑱瑲璀璁璅璆璇璉璏璐璑璒璘璙璚璜璟璠璡璣璦璨璩璪璫璮璯璱璲璵璹璻璿瓈瓉瓌瓐瓓瓘瓚瓛瓞瓟瓤瓨瓪瓫瓯瓴瓺瓻瓼瓿甆"],["8fcda1","甒甖甗甠甡甤甧甩甪甯甶甹甽甾甿畀畃畇畈畎畐畒畗畞畟畡畯畱畹",5,"疁疅疐疒疓疕疙疜疢疤疴疺疿痀痁痄痆痌痎痏痗痜痟痠痡痤痧痬痮痯痱痹瘀瘂瘃瘄瘇瘈瘊瘌瘏瘒瘓瘕瘖瘙瘛瘜瘝瘞瘣瘥瘦瘩瘭瘲瘳瘵瘸瘹"],["8fcea1","瘺瘼癊癀癁癃癄癅癉癋癕癙癟癤癥癭癮癯癱癴皁皅皌皍皕皛皜皝皟皠皢",6,"皪皭皽盁盅盉盋盌盎盔盙盠盦盨盬盰盱盶盹盼眀眆眊眎眒眔眕眗眙眚眜眢眨眭眮眯眴眵眶眹眽眾睂睅睆睊睍睎睏睒睖睗睜睞睟睠睢"],["8fcfa1","睤睧睪睬睰睲睳睴睺睽瞀瞄瞌瞍瞔瞕瞖瞚瞟瞢瞧瞪瞮瞯瞱瞵瞾矃矉矑矒矕矙矞矟矠矤矦矪矬矰矱矴矸矻砅砆砉砍砎砑砝砡砢砣砭砮砰砵砷硃硄硇硈硌硎硒硜硞硠硡硣硤硨硪确硺硾碊碏碔碘碡碝碞碟碤碨碬碭碰碱碲碳"],["8fd0a1","碻碽碿磇磈磉磌磎磒磓磕磖磤磛磟磠磡磦磪磲磳礀磶磷磺磻磿礆礌礐礚礜礞礟礠礥礧礩礭礱礴礵礻礽礿祄祅祆祊祋祏祑祔祘祛祜祧祩祫祲祹祻祼祾禋禌禑禓禔禕禖禘禛禜禡禨禩禫禯禱禴禸离秂秄秇秈秊秏秔秖秚秝秞"],["8fd1a1","秠秢秥秪秫秭秱秸秼稂稃稇稉稊稌稑稕稛稞稡稧稫稭稯稰稴稵稸稹稺穄穅穇穈穌穕穖穙穜穝穟穠穥穧穪穭穵穸穾窀窂窅窆窊窋窐窑窔窞窠窣窬窳窵窹窻窼竆竉竌竎竑竛竨竩竫竬竱竴竻竽竾笇笔笟笣笧笩笪笫笭笮笯笰"],["8fd2a1","笱笴笽笿筀筁筇筎筕筠筤筦筩筪筭筯筲筳筷箄箉箎箐箑箖箛箞箠箥箬箯箰箲箵箶箺箻箼箽篂篅篈篊篔篖篗篙篚篛篨篪篲篴篵篸篹篺篼篾簁簂簃簄簆簉簋簌簎簏簙簛簠簥簦簨簬簱簳簴簶簹簺籆籊籕籑籒籓籙",5],["8fd3a1","籡籣籧籩籭籮籰籲籹籼籽粆粇粏粔粞粠粦粰粶粷粺粻粼粿糄糇糈糉糍糏糓糔糕糗糙糚糝糦糩糫糵紃紇紈紉紏紑紒紓紖紝紞紣紦紪紭紱紼紽紾絀絁絇絈絍絑絓絗絙絚絜絝絥絧絪絰絸絺絻絿綁綂綃綅綆綈綋綌綍綑綖綗綝"],["8fd4a1","綞綦綧綪綳綶綷綹緂",4,"緌緍緎緗緙縀緢緥緦緪緫緭緱緵緶緹緺縈縐縑縕縗縜縝縠縧縨縬縭縯縳縶縿繄繅繇繎繐繒繘繟繡繢繥繫繮繯繳繸繾纁纆纇纊纍纑纕纘纚纝纞缼缻缽缾缿罃罄罇罏罒罓罛罜罝罡罣罤罥罦罭"],["8fd5a1","罱罽罾罿羀羋羍羏羐羑羖羗羜羡羢羦羪羭羴羼羿翀翃翈翎翏翛翟翣翥翨翬翮翯翲翺翽翾翿耇耈耊耍耎耏耑耓耔耖耝耞耟耠耤耦耬耮耰耴耵耷耹耺耼耾聀聄聠聤聦聭聱聵肁肈肎肜肞肦肧肫肸肹胈胍胏胒胔胕胗胘胠胭胮"],["8fd6a1","胰胲胳胶胹胺胾脃脋脖脗脘脜脞脠脤脧脬脰脵脺脼腅腇腊腌腒腗腠腡腧腨腩腭腯腷膁膐膄膅膆膋膎膖膘膛膞膢膮膲膴膻臋臃臅臊臎臏臕臗臛臝臞臡臤臫臬臰臱臲臵臶臸臹臽臿舀舃舏舓舔舙舚舝舡舢舨舲舴舺艃艄艅艆"],["8fd7a1","艋艎艏艑艖艜艠艣艧艭艴艻艽艿芀芁芃芄芇芉芊芎芑芔芖芘芚芛芠芡芣芤芧芨芩芪芮芰芲芴芷芺芼芾芿苆苐苕苚苠苢苤苨苪苭苯苶苷苽苾茀茁茇茈茊茋荔茛茝茞茟茡茢茬茭茮茰茳茷茺茼茽荂荃荄荇荍荎荑荕荖荗荰荸"],["8fd8a1","荽荿莀莂莄莆莍莒莔莕莘莙莛莜莝莦莧莩莬莾莿菀菇菉菏菐菑菔菝荓菨菪菶菸菹菼萁萆萊萏萑萕萙莭萯萹葅葇葈葊葍葏葑葒葖葘葙葚葜葠葤葥葧葪葰葳葴葶葸葼葽蒁蒅蒒蒓蒕蒞蒦蒨蒩蒪蒯蒱蒴蒺蒽蒾蓀蓂蓇蓈蓌蓏蓓"],["8fd9a1","蓜蓧蓪蓯蓰蓱蓲蓷蔲蓺蓻蓽蔂蔃蔇蔌蔎蔐蔜蔞蔢蔣蔤蔥蔧蔪蔫蔯蔳蔴蔶蔿蕆蕏",4,"蕖蕙蕜",6,"蕤蕫蕯蕹蕺蕻蕽蕿薁薅薆薉薋薌薏薓薘薝薟薠薢薥薧薴薶薷薸薼薽薾薿藂藇藊藋藎薭藘藚藟藠藦藨藭藳藶藼"],["8fdaa1","藿蘀蘄蘅蘍蘎蘐蘑蘒蘘蘙蘛蘞蘡蘧蘩蘶蘸蘺蘼蘽虀虂虆虒虓虖虗虘虙虝虠",4,"虩虬虯虵虶虷虺蚍蚑蚖蚘蚚蚜蚡蚦蚧蚨蚭蚱蚳蚴蚵蚷蚸蚹蚿蛀蛁蛃蛅蛑蛒蛕蛗蛚蛜蛠蛣蛥蛧蚈蛺蛼蛽蜄蜅蜇蜋蜎蜏蜐蜓蜔蜙蜞蜟蜡蜣"],["8fdba1","蜨蜮蜯蜱蜲蜹蜺蜼蜽蜾蝀蝃蝅蝍蝘蝝蝡蝤蝥蝯蝱蝲蝻螃",6,"螋螌螐螓螕螗螘螙螞螠螣螧螬螭螮螱螵螾螿蟁蟈蟉蟊蟎蟕蟖蟙蟚蟜蟟蟢蟣蟤蟪蟫蟭蟱蟳蟸蟺蟿蠁蠃蠆蠉蠊蠋蠐蠙蠒蠓蠔蠘蠚蠛蠜蠞蠟蠨蠭蠮蠰蠲蠵"],["8fdca1","蠺蠼衁衃衅衈衉衊衋衎衑衕衖衘衚衜衟衠衤衩衱衹衻袀袘袚袛袜袟袠袨袪袺袽袾裀裊",4,"裑裒裓裛裞裧裯裰裱裵裷褁褆褍褎褏褕褖褘褙褚褜褠褦褧褨褰褱褲褵褹褺褾襀襂襅襆襉襏襒襗襚襛襜襡襢襣襫襮襰襳襵襺"],["8fdda1","襻襼襽覉覍覐覔覕覛覜覟覠覥覰覴覵覶覷覼觔",4,"觥觩觫觭觱觳觶觹觽觿訄訅訇訏訑訒訔訕訞訠訢訤訦訫訬訯訵訷訽訾詀詃詅詇詉詍詎詓詖詗詘詜詝詡詥詧詵詶詷詹詺詻詾詿誀誃誆誋誏誐誒誖誗誙誟誧誩誮誯誳"],["8fdea1","誶誷誻誾諃諆諈諉諊諑諓諔諕諗諝諟諬諰諴諵諶諼諿謅謆謋謑謜謞謟謊謭謰謷謼譂",4,"譈譒譓譔譙譍譞譣譭譶譸譹譼譾讁讄讅讋讍讏讔讕讜讞讟谸谹谽谾豅豇豉豋豏豑豓豔豗豘豛豝豙豣豤豦豨豩豭豳豵豶豻豾貆"],["8fdfa1","貇貋貐貒貓貙貛貜貤貹貺賅賆賉賋賏賖賕賙賝賡賨賬賯賰賲賵賷賸賾賿贁贃贉贒贗贛赥赩赬赮赿趂趄趈趍趐趑趕趞趟趠趦趫趬趯趲趵趷趹趻跀跅跆跇跈跊跎跑跔跕跗跙跤跥跧跬跰趼跱跲跴跽踁踄踅踆踋踑踔踖踠踡踢"],["8fe0a1","踣踦踧踱踳踶踷踸踹踽蹀蹁蹋蹍蹎蹏蹔蹛蹜蹝蹞蹡蹢蹩蹬蹭蹯蹰蹱蹹蹺蹻躂躃躉躐躒躕躚躛躝躞躢躧躩躭躮躳躵躺躻軀軁軃軄軇軏軑軔軜軨軮軰軱軷軹軺軭輀輂輇輈輏輐輖輗輘輞輠輡輣輥輧輨輬輭輮輴輵輶輷輺轀轁"],["8fe1a1","轃轇轏轑",4,"轘轝轞轥辝辠辡辤辥辦辵辶辸达迀迁迆迊迋迍运迒迓迕迠迣迤迨迮迱迵迶迻迾适逄逈逌逘逛逨逩逯逪逬逭逳逴逷逿遃遄遌遛遝遢遦遧遬遰遴遹邅邈邋邌邎邐邕邗邘邙邛邠邡邢邥邰邲邳邴邶邽郌邾郃"],["8fe2a1","郄郅郇郈郕郗郘郙郜郝郟郥郒郶郫郯郰郴郾郿鄀鄄鄅鄆鄈鄍鄐鄔鄖鄗鄘鄚鄜鄞鄠鄥鄢鄣鄧鄩鄮鄯鄱鄴鄶鄷鄹鄺鄼鄽酃酇酈酏酓酗酙酚酛酡酤酧酭酴酹酺酻醁醃醅醆醊醎醑醓醔醕醘醞醡醦醨醬醭醮醰醱醲醳醶醻醼醽醿"],["8fe3a1","釂釃釅釓釔釗釙釚釞釤釥釩釪釬",5,"釷釹釻釽鈀鈁鈄鈅鈆鈇鈉鈊鈌鈐鈒鈓鈖鈘鈜鈝鈣鈤鈥鈦鈨鈮鈯鈰鈳鈵鈶鈸鈹鈺鈼鈾鉀鉂鉃鉆鉇鉊鉍鉎鉏鉑鉘鉙鉜鉝鉠鉡鉥鉧鉨鉩鉮鉯鉰鉵",4,"鉻鉼鉽鉿銈銉銊銍銎銒銗"],["8fe4a1","銙銟銠銤銥銧銨銫銯銲銶銸銺銻銼銽銿",4,"鋅鋆鋇鋈鋋鋌鋍鋎鋐鋓鋕鋗鋘鋙鋜鋝鋟鋠鋡鋣鋥鋧鋨鋬鋮鋰鋹鋻鋿錀錂錈錍錑錔錕錜錝錞錟錡錤錥錧錩錪錳錴錶錷鍇鍈鍉鍐鍑鍒鍕鍗鍘鍚鍞鍤鍥鍧鍩鍪鍭鍯鍰鍱鍳鍴鍶"],["8fe5a1","鍺鍽鍿鎀鎁鎂鎈鎊鎋鎍鎏鎒鎕鎘鎛鎞鎡鎣鎤鎦鎨鎫鎴鎵鎶鎺鎩鏁鏄鏅鏆鏇鏉",4,"鏓鏙鏜鏞鏟鏢鏦鏧鏹鏷鏸鏺鏻鏽鐁鐂鐄鐈鐉鐍鐎鐏鐕鐖鐗鐟鐮鐯鐱鐲鐳鐴鐻鐿鐽鑃鑅鑈鑊鑌鑕鑙鑜鑟鑡鑣鑨鑫鑭鑮鑯鑱鑲钄钃镸镹"],["8fe6a1","镾閄閈閌閍閎閝閞閟閡閦閩閫閬閴閶閺閽閿闆闈闉闋闐闑闒闓闙闚闝闞闟闠闤闦阝阞阢阤阥阦阬阱阳阷阸阹阺阼阽陁陒陔陖陗陘陡陮陴陻陼陾陿隁隂隃隄隉隑隖隚隝隟隤隥隦隩隮隯隳隺雊雒嶲雘雚雝雞雟雩雯雱雺霂"],["8fe7a1","霃霅霉霚霛霝霡霢霣霨霱霳靁靃靊靎靏靕靗靘靚靛靣靧靪靮靳靶靷靸靻靽靿鞀鞉鞕鞖鞗鞙鞚鞞鞟鞢鞬鞮鞱鞲鞵鞶鞸鞹鞺鞼鞾鞿韁韄韅韇韉韊韌韍韎韐韑韔韗韘韙韝韞韠韛韡韤韯韱韴韷韸韺頇頊頙頍頎頔頖頜頞頠頣頦"],["8fe8a1","頫頮頯頰頲頳頵頥頾顄顇顊顑顒顓顖顗顙顚顢顣顥顦顪顬颫颭颮颰颴颷颸颺颻颿飂飅飈飌飡飣飥飦飧飪飳飶餂餇餈餑餕餖餗餚餛餜餟餢餦餧餫餱",4,"餹餺餻餼饀饁饆饇饈饍饎饔饘饙饛饜饞饟饠馛馝馟馦馰馱馲馵"],["8fe9a1","馹馺馽馿駃駉駓駔駙駚駜駞駧駪駫駬駰駴駵駹駽駾騂騃騄騋騌騐騑騖騞騠騢騣騤騧騭騮騳騵騶騸驇驁驄驊驋驌驎驑驔驖驝骪骬骮骯骲骴骵骶骹骻骾骿髁髃髆髈髎髐髒髕髖髗髛髜髠髤髥髧髩髬髲髳髵髹髺髽髿",4],["8feaa1","鬄鬅鬈鬉鬋鬌鬍鬎鬐鬒鬖鬙鬛鬜鬠鬦鬫鬭鬳鬴鬵鬷鬹鬺鬽魈魋魌魕魖魗魛魞魡魣魥魦魨魪",4,"魳魵魷魸魹魿鮀鮄鮅鮆鮇鮉鮊鮋鮍鮏鮐鮔鮚鮝鮞鮦鮧鮩鮬鮰鮱鮲鮷鮸鮻鮼鮾鮿鯁鯇鯈鯎鯐鯗鯘鯝鯟鯥鯧鯪鯫鯯鯳鯷鯸"],["8feba1","鯹鯺鯽鯿鰀鰂鰋鰏鰑鰖鰘鰙鰚鰜鰞鰢鰣鰦",4,"鰱鰵鰶鰷鰽鱁鱃鱄鱅鱉鱊鱎鱏鱐鱓鱔鱖鱘鱛鱝鱞鱟鱣鱩鱪鱜鱫鱨鱮鱰鱲鱵鱷鱻鳦鳲鳷鳹鴋鴂鴑鴗鴘鴜鴝鴞鴯鴰鴲鴳鴴鴺鴼鵅鴽鵂鵃鵇鵊鵓鵔鵟鵣鵢鵥鵩鵪鵫鵰鵶鵷鵻"],["8feca1","鵼鵾鶃鶄鶆鶊鶍鶎鶒鶓鶕鶖鶗鶘鶡鶪鶬鶮鶱鶵鶹鶼鶿鷃鷇鷉鷊鷔鷕鷖鷗鷚鷞鷟鷠鷥鷧鷩鷫鷮鷰鷳鷴鷾鸊鸂鸇鸎鸐鸑鸒鸕鸖鸙鸜鸝鹺鹻鹼麀麂麃麄麅麇麎麏麖麘麛麞麤麨麬麮麯麰麳麴麵黆黈黋黕黟黤黧黬黭黮黰黱黲黵"],["8feda1","黸黿鼂鼃鼉鼏鼐鼑鼒鼔鼖鼗鼙鼚鼛鼟鼢鼦鼪鼫鼯鼱鼲鼴鼷鼹鼺鼼鼽鼿齁齃",4,"齓齕齖齗齘齚齝齞齨齩齭",4,"齳齵齺齽龏龐龑龒龔龖龗龞龡龢龣龥"]];
|
3458 |
|
3459 | }),
|
3460 | ,
|
3461 |
|
3462 | (function(module, __unusedexports, __webpack_require__) {
|
3463 |
|
3464 | "use strict";
|
3465 |
|
3466 | var shebangRegex = __webpack_require__(621);
|
3467 |
|
3468 | module.exports = function (str) {
|
3469 | var match = str.match(shebangRegex);
|
3470 |
|
3471 | if (!match) {
|
3472 | return null;
|
3473 | }
|
3474 |
|
3475 | var arr = match[0].replace(/#! ?/, '').split(' ');
|
3476 | var bin = arr[0].split('/').pop();
|
3477 | var arg = arr[1];
|
3478 |
|
3479 | return (bin === 'env' ?
|
3480 | arg :
|
3481 | bin + (arg ? ' ' + arg : '')
|
3482 | );
|
3483 | };
|
3484 |
|
3485 |
|
3486 | }),
|
3487 | ,
|
3488 | ,
|
3489 | ,
|
3490 | ,
|
3491 | ,
|
3492 | ,
|
3493 | ,
|
3494 | ,
|
3495 | ,
|
3496 | ,
|
3497 |
|
3498 | (function(module, __unusedexports, __webpack_require__) {
|
3499 |
|
3500 | "use strict";
|
3501 |
|
3502 |
|
3503 | var common = __webpack_require__(414);
|
3504 | var Type = __webpack_require__(653);
|
3505 |
|
3506 | function isHexCode(c) {
|
3507 | return ((0x30 <= c) && (c <= 0x39)) ||
|
3508 | ((0x41 <= c) && (c <= 0x46)) ||
|
3509 | ((0x61 <= c) && (c <= 0x66));
|
3510 | }
|
3511 |
|
3512 | function isOctCode(c) {
|
3513 | return ((0x30 <= c) && (c <= 0x37));
|
3514 | }
|
3515 |
|
3516 | function isDecCode(c) {
|
3517 | return ((0x30 <= c) && (c <= 0x39));
|
3518 | }
|
3519 |
|
3520 | function resolveYamlInteger(data) {
|
3521 | if (data === null) return false;
|
3522 |
|
3523 | var max = data.length,
|
3524 | index = 0,
|
3525 | hasDigits = false,
|
3526 | ch;
|
3527 |
|
3528 | if (!max) return false;
|
3529 |
|
3530 | ch = data[index];
|
3531 |
|
3532 |
|
3533 | if (ch === '-' || ch === '+') {
|
3534 | ch = data[++index];
|
3535 | }
|
3536 |
|
3537 | if (ch === '0') {
|
3538 |
|
3539 | if (index + 1 === max) return true;
|
3540 | ch = data[++index];
|
3541 |
|
3542 |
|
3543 |
|
3544 | if (ch === 'b') {
|
3545 |
|
3546 | index++;
|
3547 |
|
3548 | for (; index < max; index++) {
|
3549 | ch = data[index];
|
3550 | if (ch === '_') continue;
|
3551 | if (ch !== '0' && ch !== '1') return false;
|
3552 | hasDigits = true;
|
3553 | }
|
3554 | return hasDigits && ch !== '_';
|
3555 | }
|
3556 |
|
3557 |
|
3558 | if (ch === 'x') {
|
3559 |
|
3560 | index++;
|
3561 |
|
3562 | for (; index < max; index++) {
|
3563 | ch = data[index];
|
3564 | if (ch === '_') continue;
|
3565 | if (!isHexCode(data.charCodeAt(index))) return false;
|
3566 | hasDigits = true;
|
3567 | }
|
3568 | return hasDigits && ch !== '_';
|
3569 | }
|
3570 |
|
3571 |
|
3572 | for (; index < max; index++) {
|
3573 | ch = data[index];
|
3574 | if (ch === '_') continue;
|
3575 | if (!isOctCode(data.charCodeAt(index))) return false;
|
3576 | hasDigits = true;
|
3577 | }
|
3578 | return hasDigits && ch !== '_';
|
3579 | }
|
3580 |
|
3581 |
|
3582 |
|
3583 |
|
3584 | if (ch === '_') return false;
|
3585 |
|
3586 | for (; index < max; index++) {
|
3587 | ch = data[index];
|
3588 | if (ch === '_') continue;
|
3589 | if (ch === ':') break;
|
3590 | if (!isDecCode(data.charCodeAt(index))) {
|
3591 | return false;
|
3592 | }
|
3593 | hasDigits = true;
|
3594 | }
|
3595 |
|
3596 |
|
3597 | if (!hasDigits || ch === '_') return false;
|
3598 |
|
3599 |
|
3600 | if (ch !== ':') return true;
|
3601 |
|
3602 |
|
3603 | return /^(:[0-5]?[0-9])+$/.test(data.slice(index));
|
3604 | }
|
3605 |
|
3606 | function constructYamlInteger(data) {
|
3607 | var value = data, sign = 1, ch, base, digits = [];
|
3608 |
|
3609 | if (value.indexOf('_') !== -1) {
|
3610 | value = value.replace(/_/g, '');
|
3611 | }
|
3612 |
|
3613 | ch = value[0];
|
3614 |
|
3615 | if (ch === '-' || ch === '+') {
|
3616 | if (ch === '-') sign = -1;
|
3617 | value = value.slice(1);
|
3618 | ch = value[0];
|
3619 | }
|
3620 |
|
3621 | if (value === '0') return 0;
|
3622 |
|
3623 | if (ch === '0') {
|
3624 | if (value[1] === 'b') return sign * parseInt(value.slice(2), 2);
|
3625 | if (value[1] === 'x') return sign * parseInt(value, 16);
|
3626 | return sign * parseInt(value, 8);
|
3627 | }
|
3628 |
|
3629 | if (value.indexOf(':') !== -1) {
|
3630 | value.split(':').forEach(function (v) {
|
3631 | digits.unshift(parseInt(v, 10));
|
3632 | });
|
3633 |
|
3634 | value = 0;
|
3635 | base = 1;
|
3636 |
|
3637 | digits.forEach(function (d) {
|
3638 | value += (d * base);
|
3639 | base *= 60;
|
3640 | });
|
3641 |
|
3642 | return sign * value;
|
3643 |
|
3644 | }
|
3645 |
|
3646 | return sign * parseInt(value, 10);
|
3647 | }
|
3648 |
|
3649 | function isInteger(object) {
|
3650 | return (Object.prototype.toString.call(object)) === '[object Number]' &&
|
3651 | (object % 1 === 0 && !common.isNegativeZero(object));
|
3652 | }
|
3653 |
|
3654 | module.exports = new Type('tag:yaml.org,2002:int', {
|
3655 | kind: 'scalar',
|
3656 | resolve: resolveYamlInteger,
|
3657 | construct: constructYamlInteger,
|
3658 | predicate: isInteger,
|
3659 | represent: {
|
3660 | binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); },
|
3661 | octal: function (obj) { return obj >= 0 ? '0' + obj.toString(8) : '-0' + obj.toString(8).slice(1); },
|
3662 | decimal: function (obj) { return obj.toString(10); },
|
3663 |
|
3664 | hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1); }
|
3665 | },
|
3666 | defaultStyle: 'decimal',
|
3667 | styleAliases: {
|
3668 | binary: [ 2, 'bin' ],
|
3669 | octal: [ 8, 'oct' ],
|
3670 | decimal: [ 10, 'dec' ],
|
3671 | hexadecimal: [ 16, 'hex' ]
|
3672 | }
|
3673 | });
|
3674 |
|
3675 |
|
3676 | }),
|
3677 |
|
3678 | (function(module, __unusedexports, __webpack_require__) {
|
3679 |
|
3680 |
|
3681 | var retrier = __webpack_require__(623);
|
3682 |
|
3683 | function retry(fn, opts) {
|
3684 | function run(resolve, reject) {
|
3685 | var options = opts || {};
|
3686 | var op = retrier.operation(options);
|
3687 |
|
3688 |
|
3689 |
|
3690 |
|
3691 |
|
3692 |
|
3693 | function bail(err) {
|
3694 | reject(err || new Error('Aborted'));
|
3695 | }
|
3696 |
|
3697 | function onError(err, num) {
|
3698 | if (err.bail) {
|
3699 | bail(err);
|
3700 | return;
|
3701 | }
|
3702 |
|
3703 | if (!op.retry(err)) {
|
3704 | reject(op.mainError());
|
3705 | } else if (options.onRetry) {
|
3706 | options.onRetry(err, num);
|
3707 | }
|
3708 | }
|
3709 |
|
3710 | function runAttempt(num) {
|
3711 | var val;
|
3712 |
|
3713 | try {
|
3714 | val = fn(bail, num);
|
3715 | } catch (err) {
|
3716 | onError(err, num);
|
3717 | return;
|
3718 | }
|
3719 |
|
3720 | Promise.resolve(val)
|
3721 | .then(resolve)
|
3722 | .catch(function catchIt(err) {
|
3723 | onError(err, num);
|
3724 | });
|
3725 | }
|
3726 |
|
3727 | op.attempt(runAttempt);
|
3728 | }
|
3729 |
|
3730 | return new Promise(run);
|
3731 | }
|
3732 |
|
3733 | module.exports = retry;
|
3734 |
|
3735 |
|
3736 | }),
|
3737 | ,
|
3738 |
|
3739 | (function(module, __unusedexports, __webpack_require__) {
|
3740 |
|
3741 | "use strict";
|
3742 |
|
3743 |
|
3744 | module.exports = {
|
3745 | copySync: __webpack_require__(968)
|
3746 | }
|
3747 |
|
3748 |
|
3749 | }),
|
3750 | ,
|
3751 | ,
|
3752 | ,
|
3753 | ,
|
3754 | ,
|
3755 | ,
|
3756 |
|
3757 | (function(__unusedmodule, exports) {
|
3758 |
|
3759 | "use strict";
|
3760 |
|
3761 | Object.defineProperty(exports, "__esModule", { value: true });
|
3762 | exports.detectFramework = void 0;
|
3763 | async function matches(fs, framework) {
|
3764 | const { detectors } = framework;
|
3765 | if (!detectors) {
|
3766 | return false;
|
3767 | }
|
3768 | const { every, some } = detectors;
|
3769 | if (every !== undefined && !Array.isArray(every)) {
|
3770 | return false;
|
3771 | }
|
3772 | if (some !== undefined && !Array.isArray(some)) {
|
3773 | return false;
|
3774 | }
|
3775 | const check = async ({ path, matchContent }) => {
|
3776 | if (!path) {
|
3777 | return false;
|
3778 | }
|
3779 | if ((await fs.hasPath(path)) === false) {
|
3780 | return false;
|
3781 | }
|
3782 | if (matchContent) {
|
3783 | if ((await fs.isFile(path)) === false) {
|
3784 | return false;
|
3785 | }
|
3786 | const regex = new RegExp(matchContent, 'gm');
|
3787 | const content = await fs.readFile(path);
|
3788 | if (!regex.test(content.toString())) {
|
3789 | return false;
|
3790 | }
|
3791 | }
|
3792 | return true;
|
3793 | };
|
3794 | const result = [];
|
3795 | if (every) {
|
3796 | const everyResult = await Promise.all(every.map(item => check(item)));
|
3797 | result.push(...everyResult);
|
3798 | }
|
3799 | if (some) {
|
3800 | let someResult = false;
|
3801 | for (const item of some) {
|
3802 | if (await check(item)) {
|
3803 | someResult = true;
|
3804 | break;
|
3805 | }
|
3806 | }
|
3807 | result.push(someResult);
|
3808 | }
|
3809 | return result.every(res => res === true);
|
3810 | }
|
3811 | async function detectFramework({ fs, frameworkList, }) {
|
3812 | for (const framework of frameworkList) {
|
3813 | if (await matches(fs, framework)) {
|
3814 | return framework.slug;
|
3815 | }
|
3816 | }
|
3817 | return null;
|
3818 | }
|
3819 | exports.detectFramework = detectFramework;
|
3820 |
|
3821 |
|
3822 | }),
|
3823 |
|
3824 | (function(module, __unusedexports, __webpack_require__) {
|
3825 |
|
3826 | "use strict";
|
3827 |
|
3828 |
|
3829 |
|
3830 |
|
3831 |
|
3832 |
|
3833 |
|
3834 |
|
3835 |
|
3836 |
|
3837 |
|
3838 |
|
3839 |
|
3840 |
|
3841 |
|
3842 |
|
3843 |
|
3844 |
|
3845 |
|
3846 |
|
3847 |
|
3848 |
|
3849 |
|
3850 |
|
3851 |
|
3852 |
|
3853 |
|
3854 |
|
3855 |
|
3856 |
|
3857 |
|
3858 |
|
3859 |
|
3860 |
|
3861 |
|
3862 |
|
3863 |
|
3864 |
|
3865 |
|
3866 |
|
3867 |
|
3868 |
|
3869 |
|
3870 |
|
3871 |
|
3872 |
|
3873 |
|
3874 |
|
3875 |
|
3876 |
|
3877 |
|
3878 |
|
3879 |
|
3880 |
|
3881 |
|
3882 |
|
3883 |
|
3884 |
|
3885 |
|
3886 |
|
3887 |
|
3888 |
|
3889 |
|
3890 |
|
3891 |
|
3892 | module.exports = Transform;
|
3893 |
|
3894 | var Duplex = __webpack_require__(588);
|
3895 |
|
3896 |
|
3897 | var util = Object.create(__webpack_require__(130));
|
3898 | util.inherits = __webpack_require__(536);
|
3899 |
|
3900 |
|
3901 | util.inherits(Transform, Duplex);
|
3902 |
|
3903 | function afterTransform(er, data) {
|
3904 | var ts = this._transformState;
|
3905 | ts.transforming = false;
|
3906 |
|
3907 | var cb = ts.writecb;
|
3908 |
|
3909 | if (!cb) {
|
3910 | return this.emit('error', new Error('write callback called multiple times'));
|
3911 | }
|
3912 |
|
3913 | ts.writechunk = null;
|
3914 | ts.writecb = null;
|
3915 |
|
3916 | if (data != null)
|
3917 | this.push(data);
|
3918 |
|
3919 | cb(er);
|
3920 |
|
3921 | var rs = this._readableState;
|
3922 | rs.reading = false;
|
3923 | if (rs.needReadable || rs.length < rs.highWaterMark) {
|
3924 | this._read(rs.highWaterMark);
|
3925 | }
|
3926 | }
|
3927 |
|
3928 | function Transform(options) {
|
3929 | if (!(this instanceof Transform)) return new Transform(options);
|
3930 |
|
3931 | Duplex.call(this, options);
|
3932 |
|
3933 | this._transformState = {
|
3934 | afterTransform: afterTransform.bind(this),
|
3935 | needTransform: false,
|
3936 | transforming: false,
|
3937 | writecb: null,
|
3938 | writechunk: null,
|
3939 | writeencoding: null
|
3940 | };
|
3941 |
|
3942 |
|
3943 | this._readableState.needReadable = true;
|
3944 |
|
3945 |
|
3946 |
|
3947 |
|
3948 | this._readableState.sync = false;
|
3949 |
|
3950 | if (options) {
|
3951 | if (typeof options.transform === 'function') this._transform = options.transform;
|
3952 |
|
3953 | if (typeof options.flush === 'function') this._flush = options.flush;
|
3954 | }
|
3955 |
|
3956 |
|
3957 | this.on('prefinish', prefinish);
|
3958 | }
|
3959 |
|
3960 | function prefinish() {
|
3961 | var _this = this;
|
3962 |
|
3963 | if (typeof this._flush === 'function') {
|
3964 | this._flush(function (er, data) {
|
3965 | done(_this, er, data);
|
3966 | });
|
3967 | } else {
|
3968 | done(this, null, null);
|
3969 | }
|
3970 | }
|
3971 |
|
3972 | Transform.prototype.push = function (chunk, encoding) {
|
3973 | this._transformState.needTransform = false;
|
3974 | return Duplex.prototype.push.call(this, chunk, encoding);
|
3975 | };
|
3976 |
|
3977 |
|
3978 |
|
3979 |
|
3980 |
|
3981 |
|
3982 |
|
3983 |
|
3984 |
|
3985 |
|
3986 |
|
3987 | Transform.prototype._transform = function (chunk, encoding, cb) {
|
3988 | throw new Error('_transform() is not implemented');
|
3989 | };
|
3990 |
|
3991 | Transform.prototype._write = function (chunk, encoding, cb) {
|
3992 | var ts = this._transformState;
|
3993 | ts.writecb = cb;
|
3994 | ts.writechunk = chunk;
|
3995 | ts.writeencoding = encoding;
|
3996 | if (!ts.transforming) {
|
3997 | var rs = this._readableState;
|
3998 | if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);
|
3999 | }
|
4000 | };
|
4001 |
|
4002 |
|
4003 |
|
4004 |
|
4005 | Transform.prototype._read = function (n) {
|
4006 | var ts = this._transformState;
|
4007 |
|
4008 | if (ts.writechunk !== null && ts.writecb && !ts.transforming) {
|
4009 | ts.transforming = true;
|
4010 | this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);
|
4011 | } else {
|
4012 |
|
4013 |
|
4014 | ts.needTransform = true;
|
4015 | }
|
4016 | };
|
4017 |
|
4018 | Transform.prototype._destroy = function (err, cb) {
|
4019 | var _this2 = this;
|
4020 |
|
4021 | Duplex.prototype._destroy.call(this, err, function (err2) {
|
4022 | cb(err2);
|
4023 | _this2.emit('close');
|
4024 | });
|
4025 | };
|
4026 |
|
4027 | function done(stream, er, data) {
|
4028 | if (er) return stream.emit('error', er);
|
4029 |
|
4030 | if (data != null)
|
4031 | stream.push(data);
|
4032 |
|
4033 |
|
4034 |
|
4035 | if (stream._writableState.length) throw new Error('Calling transform done when ws.length != 0');
|
4036 |
|
4037 | if (stream._transformState.transforming) throw new Error('Calling transform done when still transforming');
|
4038 |
|
4039 | return stream.push(null);
|
4040 | }
|
4041 |
|
4042 | }),
|
4043 | ,
|
4044 |
|
4045 | (function(module, __unusedexports, __webpack_require__) {
|
4046 |
|
4047 | "use strict";
|
4048 |
|
4049 |
|
4050 | const fs = __webpack_require__(729)
|
4051 | const path = __webpack_require__(622)
|
4052 | const invalidWin32Path = __webpack_require__(868).invalidWin32Path
|
4053 |
|
4054 | const o777 = parseInt('0777', 8)
|
4055 |
|
4056 | function mkdirs (p, opts, callback, made) {
|
4057 | if (typeof opts === 'function') {
|
4058 | callback = opts
|
4059 | opts = {}
|
4060 | } else if (!opts || typeof opts !== 'object') {
|
4061 | opts = { mode: opts }
|
4062 | }
|
4063 |
|
4064 | if (process.platform === 'win32' && invalidWin32Path(p)) {
|
4065 | const errInval = new Error(p + ' contains invalid WIN32 path characters.')
|
4066 | errInval.code = 'EINVAL'
|
4067 | return callback(errInval)
|
4068 | }
|
4069 |
|
4070 | let mode = opts.mode
|
4071 | const xfs = opts.fs || fs
|
4072 |
|
4073 | if (mode === undefined) {
|
4074 | mode = o777 & (~process.umask())
|
4075 | }
|
4076 | if (!made) made = null
|
4077 |
|
4078 | callback = callback || function () {}
|
4079 | p = path.resolve(p)
|
4080 |
|
4081 | xfs.mkdir(p, mode, er => {
|
4082 | if (!er) {
|
4083 | made = made || p
|
4084 | return callback(null, made)
|
4085 | }
|
4086 | switch (er.code) {
|
4087 | case 'ENOENT':
|
4088 | if (path.dirname(p) === p) return callback(er)
|
4089 | mkdirs(path.dirname(p), opts, (er, made) => {
|
4090 | if (er) callback(er, made)
|
4091 | else mkdirs(p, opts, callback, made)
|
4092 | })
|
4093 | break
|
4094 |
|
4095 |
|
4096 |
|
4097 |
|
4098 | default:
|
4099 | xfs.stat(p, (er2, stat) => {
|
4100 |
|
4101 |
|
4102 | if (er2 || !stat.isDirectory()) callback(er, made)
|
4103 | else callback(null, made)
|
4104 | })
|
4105 | break
|
4106 | }
|
4107 | })
|
4108 | }
|
4109 |
|
4110 | module.exports = mkdirs
|
4111 |
|
4112 |
|
4113 | }),
|
4114 | ,
|
4115 | ,
|
4116 |
|
4117 | (function(module) {
|
4118 |
|
4119 |
|
4120 |
|
4121 |
|
4122 |
|
4123 |
|
4124 | module.exports = wrappy
|
4125 | function wrappy (fn, cb) {
|
4126 | if (fn && cb) return wrappy(fn)(cb)
|
4127 |
|
4128 | if (typeof fn !== 'function')
|
4129 | throw new TypeError('need wrapper function')
|
4130 |
|
4131 | Object.keys(fn).forEach(function (k) {
|
4132 | wrapper[k] = fn[k]
|
4133 | })
|
4134 |
|
4135 | return wrapper
|
4136 |
|
4137 | function wrapper() {
|
4138 | var args = new Array(arguments.length)
|
4139 | for (var i = 0; i < args.length; i++) {
|
4140 | args[i] = arguments[i]
|
4141 | }
|
4142 | var ret = fn.apply(this, args)
|
4143 | var cb = args[args.length-1]
|
4144 | if (typeof ret === 'function' && ret !== cb) {
|
4145 | Object.keys(cb).forEach(function (k) {
|
4146 | ret[k] = cb[k]
|
4147 | })
|
4148 | }
|
4149 | return ret
|
4150 | }
|
4151 | }
|
4152 |
|
4153 |
|
4154 | }),
|
4155 | ,
|
4156 | ,
|
4157 |
|
4158 | (function(module, __unusedexports, __webpack_require__) {
|
4159 |
|
4160 | "use strict";
|
4161 |
|
4162 |
|
4163 | const stringWidth = __webpack_require__(978)
|
4164 |
|
4165 | function ansiAlign (text, opts) {
|
4166 | if (!text) return text
|
4167 |
|
4168 | opts = opts || {}
|
4169 | const align = opts.align || 'center'
|
4170 |
|
4171 |
|
4172 | if (align === 'left') return text
|
4173 |
|
4174 | const split = opts.split || '\n'
|
4175 | const pad = opts.pad || ' '
|
4176 | const widthDiffFn = align !== 'right' ? halfDiff : fullDiff
|
4177 |
|
4178 | let returnString = false
|
4179 | if (!Array.isArray(text)) {
|
4180 | returnString = true
|
4181 | text = String(text).split(split)
|
4182 | }
|
4183 |
|
4184 | let width
|
4185 | let maxWidth = 0
|
4186 | text = text.map(function (str) {
|
4187 | str = String(str)
|
4188 | width = stringWidth(str)
|
4189 | maxWidth = Math.max(width, maxWidth)
|
4190 | return {
|
4191 | str,
|
4192 | width
|
4193 | }
|
4194 | }).map(function (obj) {
|
4195 | return new Array(widthDiffFn(maxWidth, obj.width) + 1).join(pad) + obj.str
|
4196 | })
|
4197 |
|
4198 | return returnString ? text.join(split) : text
|
4199 | }
|
4200 |
|
4201 | ansiAlign.left = function left (text) {
|
4202 | return ansiAlign(text, { align: 'left' })
|
4203 | }
|
4204 |
|
4205 | ansiAlign.center = function center (text) {
|
4206 | return ansiAlign(text, { align: 'center' })
|
4207 | }
|
4208 |
|
4209 | ansiAlign.right = function right (text) {
|
4210 | return ansiAlign(text, { align: 'right' })
|
4211 | }
|
4212 |
|
4213 | module.exports = ansiAlign
|
4214 |
|
4215 | function halfDiff (maxWidth, curWidth) {
|
4216 | return Math.floor((maxWidth - curWidth) / 2)
|
4217 | }
|
4218 |
|
4219 | function fullDiff (maxWidth, curWidth) {
|
4220 | return maxWidth - curWidth
|
4221 | }
|
4222 |
|
4223 |
|
4224 | }),
|
4225 |
|
4226 | (function(__unusedmodule, exports, __webpack_require__) {
|
4227 |
|
4228 | "use strict";
|
4229 |
|
4230 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
4231 | if (k2 === undefined) k2 = k;
|
4232 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
4233 | }) : (function(o, m, k, k2) {
|
4234 | if (k2 === undefined) k2 = k;
|
4235 | o[k2] = m[k];
|
4236 | }));
|
4237 | var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
4238 | Object.defineProperty(o, "default", { enumerable: true, value: v });
|
4239 | }) : function(o, v) {
|
4240 | o["default"] = v;
|
4241 | });
|
4242 | var __importStar = (this && this.__importStar) || function (mod) {
|
4243 | if (mod && mod.__esModule) return mod;
|
4244 | var result = {};
|
4245 | if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
4246 | __setModuleDefault(result, mod);
|
4247 | return result;
|
4248 | };
|
4249 | var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
4250 | for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
4251 | };
|
4252 | var __importDefault = (this && this.__importDefault) || function (mod) {
|
4253 | return (mod && mod.__esModule) ? mod : { "default": mod };
|
4254 | };
|
4255 | Object.defineProperty(exports, "__esModule", { value: true });
|
4256 | exports.getPlatformEnv = exports.isStaticRuntime = exports.isOfficialRuntime = exports.getLambdaOptionsFromFunction = exports.isSymbolicLink = exports.debug = exports.shouldServe = exports.streamToBuffer = exports.getSpawnOptions = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = exports.getNodeVersion = exports.runShellScript = exports.runPipInstall = exports.runBundleInstall = exports.runNpmInstall = exports.getNodeBinPath = exports.walkParentDirs = exports.spawnCommand = exports.execCommand = exports.runPackageJsonScript = exports.installDependencies = exports.spawnAsync = exports.execAsync = exports.rename = exports.glob = exports.getWriteableDirectory = exports.download = exports.Prerender = exports.createLambda = exports.Lambda = exports.FileRef = exports.FileFsRef = exports.FileBlob = void 0;
|
4257 | const file_blob_1 = __importDefault(__webpack_require__(776));
|
4258 | exports.FileBlob = file_blob_1.default;
|
4259 | const file_fs_ref_1 = __importDefault(__webpack_require__(194));
|
4260 | exports.FileFsRef = file_fs_ref_1.default;
|
4261 | const file_ref_1 = __importDefault(__webpack_require__(616));
|
4262 | exports.FileRef = file_ref_1.default;
|
4263 | const lambda_1 = __webpack_require__(322);
|
4264 | Object.defineProperty(exports, "Lambda", { enumerable: true, get: function () { return lambda_1.Lambda; } });
|
4265 | Object.defineProperty(exports, "createLambda", { enumerable: true, get: function () { return lambda_1.createLambda; } });
|
4266 | Object.defineProperty(exports, "getLambdaOptionsFromFunction", { enumerable: true, get: function () { return lambda_1.getLambdaOptionsFromFunction; } });
|
4267 | const prerender_1 = __webpack_require__(620);
|
4268 | Object.defineProperty(exports, "Prerender", { enumerable: true, get: function () { return prerender_1.Prerender; } });
|
4269 | const download_1 = __importStar(__webpack_require__(629));
|
4270 | exports.download = download_1.default;
|
4271 | Object.defineProperty(exports, "isSymbolicLink", { enumerable: true, get: function () { return download_1.isSymbolicLink; } });
|
4272 | const get_writable_directory_1 = __importDefault(__webpack_require__(991));
|
4273 | exports.getWriteableDirectory = get_writable_directory_1.default;
|
4274 | const glob_1 = __importDefault(__webpack_require__(244));
|
4275 | exports.glob = glob_1.default;
|
4276 | const rename_1 = __importDefault(__webpack_require__(852));
|
4277 | exports.rename = rename_1.default;
|
4278 | const run_user_scripts_1 = __webpack_require__(985);
|
4279 | Object.defineProperty(exports, "execAsync", { enumerable: true, get: function () { return run_user_scripts_1.execAsync; } });
|
4280 | Object.defineProperty(exports, "spawnAsync", { enumerable: true, get: function () { return run_user_scripts_1.spawnAsync; } });
|
4281 | Object.defineProperty(exports, "execCommand", { enumerable: true, get: function () { return run_user_scripts_1.execCommand; } });
|
4282 | Object.defineProperty(exports, "spawnCommand", { enumerable: true, get: function () { return run_user_scripts_1.spawnCommand; } });
|
4283 | Object.defineProperty(exports, "walkParentDirs", { enumerable: true, get: function () { return run_user_scripts_1.walkParentDirs; } });
|
4284 | Object.defineProperty(exports, "installDependencies", { enumerable: true, get: function () { return run_user_scripts_1.installDependencies; } });
|
4285 | Object.defineProperty(exports, "runPackageJsonScript", { enumerable: true, get: function () { return run_user_scripts_1.runPackageJsonScript; } });
|
4286 | Object.defineProperty(exports, "runNpmInstall", { enumerable: true, get: function () { return run_user_scripts_1.runNpmInstall; } });
|
4287 | Object.defineProperty(exports, "runBundleInstall", { enumerable: true, get: function () { return run_user_scripts_1.runBundleInstall; } });
|
4288 | Object.defineProperty(exports, "runPipInstall", { enumerable: true, get: function () { return run_user_scripts_1.runPipInstall; } });
|
4289 | Object.defineProperty(exports, "runShellScript", { enumerable: true, get: function () { return run_user_scripts_1.runShellScript; } });
|
4290 | Object.defineProperty(exports, "getNodeVersion", { enumerable: true, get: function () { return run_user_scripts_1.getNodeVersion; } });
|
4291 | Object.defineProperty(exports, "getSpawnOptions", { enumerable: true, get: function () { return run_user_scripts_1.getSpawnOptions; } });
|
4292 | Object.defineProperty(exports, "getNodeBinPath", { enumerable: true, get: function () { return run_user_scripts_1.getNodeBinPath; } });
|
4293 | const node_version_1 = __webpack_require__(874);
|
4294 | Object.defineProperty(exports, "getLatestNodeVersion", { enumerable: true, get: function () { return node_version_1.getLatestNodeVersion; } });
|
4295 | Object.defineProperty(exports, "getDiscontinuedNodeVersions", { enumerable: true, get: function () { return node_version_1.getDiscontinuedNodeVersions; } });
|
4296 | const errors_1 = __webpack_require__(850);
|
4297 | const stream_to_buffer_1 = __importDefault(__webpack_require__(510));
|
4298 | exports.streamToBuffer = stream_to_buffer_1.default;
|
4299 | const should_serve_1 = __importDefault(__webpack_require__(497));
|
4300 | exports.shouldServe = should_serve_1.default;
|
4301 | const debug_1 = __importDefault(__webpack_require__(785));
|
4302 | exports.debug = debug_1.default;
|
4303 | var detect_builders_1 = __webpack_require__(819);
|
4304 | Object.defineProperty(exports, "detectBuilders", { enumerable: true, get: function () { return detect_builders_1.detectBuilders; } });
|
4305 | Object.defineProperty(exports, "detectOutputDirectory", { enumerable: true, get: function () { return detect_builders_1.detectOutputDirectory; } });
|
4306 | Object.defineProperty(exports, "detectApiDirectory", { enumerable: true, get: function () { return detect_builders_1.detectApiDirectory; } });
|
4307 | Object.defineProperty(exports, "detectApiExtensions", { enumerable: true, get: function () { return detect_builders_1.detectApiExtensions; } });
|
4308 | var detect_framework_1 = __webpack_require__(168);
|
4309 | Object.defineProperty(exports, "detectFramework", { enumerable: true, get: function () { return detect_framework_1.detectFramework; } });
|
4310 | var filesystem_1 = __webpack_require__(817);
|
4311 | Object.defineProperty(exports, "DetectorFilesystem", { enumerable: true, get: function () { return filesystem_1.DetectorFilesystem; } });
|
4312 | var read_config_file_1 = __webpack_require__(362);
|
4313 | Object.defineProperty(exports, "readConfigFile", { enumerable: true, get: function () { return read_config_file_1.readConfigFile; } });
|
4314 | __exportStar(__webpack_require__(231), exports);
|
4315 | __exportStar(__webpack_require__(796), exports);
|
4316 | __exportStar(__webpack_require__(850), exports);
|
4317 |
|
4318 |
|
4319 |
|
4320 | exports.isOfficialRuntime = (desired, name) => {
|
4321 | if (typeof name !== 'string') {
|
4322 | return false;
|
4323 | }
|
4324 | return (name === `@vercel/${desired}` ||
|
4325 | name === `@now/${desired}` ||
|
4326 | name.startsWith(`@vercel/${desired}@`) ||
|
4327 | name.startsWith(`@now/${desired}@`));
|
4328 | };
|
4329 | exports.isStaticRuntime = (name) => {
|
4330 | return exports.isOfficialRuntime('static', name);
|
4331 | };
|
4332 |
|
4333 |
|
4334 |
|
4335 |
|
4336 | exports.getPlatformEnv = (name) => {
|
4337 | const vName = `VERCEL_${name}`;
|
4338 | const nName = `NOW_${name}`;
|
4339 | const v = process.env[vName];
|
4340 | const n = process.env[nName];
|
4341 | if (typeof v === 'string') {
|
4342 | if (typeof n === 'string') {
|
4343 | throw new errors_1.NowBuildError({
|
4344 | code: 'CONFLICTING_ENV_VAR_NAMES',
|
4345 | message: `Both "${vName}" and "${nName}" env vars are defined. Please only define the "${vName}" env var.`,
|
4346 | link: 'https://vercel.link/combining-old-and-new-config',
|
4347 | });
|
4348 | }
|
4349 | return v;
|
4350 | }
|
4351 | return n;
|
4352 | };
|
4353 |
|
4354 |
|
4355 | }),
|
4356 | ,
|
4357 |
|
4358 | (function(module, __unusedexports, __webpack_require__) {
|
4359 |
|
4360 | "use strict";
|
4361 |
|
4362 |
|
4363 | const fs = __webpack_require__(729)
|
4364 | const path = __webpack_require__(622)
|
4365 | const assert = __webpack_require__(357)
|
4366 |
|
4367 | const isWindows = (process.platform === 'win32')
|
4368 |
|
4369 | function defaults (options) {
|
4370 | const methods = [
|
4371 | 'unlink',
|
4372 | 'chmod',
|
4373 | 'stat',
|
4374 | 'lstat',
|
4375 | 'rmdir',
|
4376 | 'readdir'
|
4377 | ]
|
4378 | methods.forEach(m => {
|
4379 | options[m] = options[m] || fs[m]
|
4380 | m = m + 'Sync'
|
4381 | options[m] = options[m] || fs[m]
|
4382 | })
|
4383 |
|
4384 | options.maxBusyTries = options.maxBusyTries || 3
|
4385 | }
|
4386 |
|
4387 | function rimraf (p, options, cb) {
|
4388 | let busyTries = 0
|
4389 |
|
4390 | if (typeof options === 'function') {
|
4391 | cb = options
|
4392 | options = {}
|
4393 | }
|
4394 |
|
4395 | assert(p, 'rimraf: missing path')
|
4396 | assert.strictEqual(typeof p, 'string', 'rimraf: path should be a string')
|
4397 | assert.strictEqual(typeof cb, 'function', 'rimraf: callback function required')
|
4398 | assert(options, 'rimraf: invalid options argument provided')
|
4399 | assert.strictEqual(typeof options, 'object', 'rimraf: options should be object')
|
4400 |
|
4401 | defaults(options)
|
4402 |
|
4403 | rimraf_(p, options, function CB (er) {
|
4404 | if (er) {
|
4405 | if ((er.code === 'EBUSY' || er.code === 'ENOTEMPTY' || er.code === 'EPERM') &&
|
4406 | busyTries < options.maxBusyTries) {
|
4407 | busyTries++
|
4408 | const time = busyTries * 100
|
4409 |
|
4410 | return setTimeout(() => rimraf_(p, options, CB), time)
|
4411 | }
|
4412 |
|
4413 |
|
4414 | if (er.code === 'ENOENT') er = null
|
4415 | }
|
4416 |
|
4417 | cb(er)
|
4418 | })
|
4419 | }
|
4420 |
|
4421 |
|
4422 |
|
4423 |
|
4424 |
|
4425 |
|
4426 |
|
4427 |
|
4428 |
|
4429 |
|
4430 |
|
4431 |
|
4432 | function rimraf_ (p, options, cb) {
|
4433 | assert(p)
|
4434 | assert(options)
|
4435 | assert(typeof cb === 'function')
|
4436 |
|
4437 |
|
4438 |
|
4439 | options.lstat(p, (er, st) => {
|
4440 | if (er && er.code === 'ENOENT') {
|
4441 | return cb(null)
|
4442 | }
|
4443 |
|
4444 |
|
4445 | if (er && er.code === 'EPERM' && isWindows) {
|
4446 | return fixWinEPERM(p, options, er, cb)
|
4447 | }
|
4448 |
|
4449 | if (st && st.isDirectory()) {
|
4450 | return rmdir(p, options, er, cb)
|
4451 | }
|
4452 |
|
4453 | options.unlink(p, er => {
|
4454 | if (er) {
|
4455 | if (er.code === 'ENOENT') {
|
4456 | return cb(null)
|
4457 | }
|
4458 | if (er.code === 'EPERM') {
|
4459 | return (isWindows)
|
4460 | ? fixWinEPERM(p, options, er, cb)
|
4461 | : rmdir(p, options, er, cb)
|
4462 | }
|
4463 | if (er.code === 'EISDIR') {
|
4464 | return rmdir(p, options, er, cb)
|
4465 | }
|
4466 | }
|
4467 | return cb(er)
|
4468 | })
|
4469 | })
|
4470 | }
|
4471 |
|
4472 | function fixWinEPERM (p, options, er, cb) {
|
4473 | assert(p)
|
4474 | assert(options)
|
4475 | assert(typeof cb === 'function')
|
4476 | if (er) {
|
4477 | assert(er instanceof Error)
|
4478 | }
|
4479 |
|
4480 | options.chmod(p, 0o666, er2 => {
|
4481 | if (er2) {
|
4482 | cb(er2.code === 'ENOENT' ? null : er)
|
4483 | } else {
|
4484 | options.stat(p, (er3, stats) => {
|
4485 | if (er3) {
|
4486 | cb(er3.code === 'ENOENT' ? null : er)
|
4487 | } else if (stats.isDirectory()) {
|
4488 | rmdir(p, options, er, cb)
|
4489 | } else {
|
4490 | options.unlink(p, cb)
|
4491 | }
|
4492 | })
|
4493 | }
|
4494 | })
|
4495 | }
|
4496 |
|
4497 | function fixWinEPERMSync (p, options, er) {
|
4498 | let stats
|
4499 |
|
4500 | assert(p)
|
4501 | assert(options)
|
4502 | if (er) {
|
4503 | assert(er instanceof Error)
|
4504 | }
|
4505 |
|
4506 | try {
|
4507 | options.chmodSync(p, 0o666)
|
4508 | } catch (er2) {
|
4509 | if (er2.code === 'ENOENT') {
|
4510 | return
|
4511 | } else {
|
4512 | throw er
|
4513 | }
|
4514 | }
|
4515 |
|
4516 | try {
|
4517 | stats = options.statSync(p)
|
4518 | } catch (er3) {
|
4519 | if (er3.code === 'ENOENT') {
|
4520 | return
|
4521 | } else {
|
4522 | throw er
|
4523 | }
|
4524 | }
|
4525 |
|
4526 | if (stats.isDirectory()) {
|
4527 | rmdirSync(p, options, er)
|
4528 | } else {
|
4529 | options.unlinkSync(p)
|
4530 | }
|
4531 | }
|
4532 |
|
4533 | function rmdir (p, options, originalEr, cb) {
|
4534 | assert(p)
|
4535 | assert(options)
|
4536 | if (originalEr) {
|
4537 | assert(originalEr instanceof Error)
|
4538 | }
|
4539 | assert(typeof cb === 'function')
|
4540 |
|
4541 |
|
4542 |
|
4543 |
|
4544 | options.rmdir(p, er => {
|
4545 | if (er && (er.code === 'ENOTEMPTY' || er.code === 'EEXIST' || er.code === 'EPERM')) {
|
4546 | rmkids(p, options, cb)
|
4547 | } else if (er && er.code === 'ENOTDIR') {
|
4548 | cb(originalEr)
|
4549 | } else {
|
4550 | cb(er)
|
4551 | }
|
4552 | })
|
4553 | }
|
4554 |
|
4555 | function rmkids (p, options, cb) {
|
4556 | assert(p)
|
4557 | assert(options)
|
4558 | assert(typeof cb === 'function')
|
4559 |
|
4560 | options.readdir(p, (er, files) => {
|
4561 | if (er) return cb(er)
|
4562 |
|
4563 | let n = files.length
|
4564 | let errState
|
4565 |
|
4566 | if (n === 0) return options.rmdir(p, cb)
|
4567 |
|
4568 | files.forEach(f => {
|
4569 | rimraf(path.join(p, f), options, er => {
|
4570 | if (errState) {
|
4571 | return
|
4572 | }
|
4573 | if (er) return cb(errState = er)
|
4574 | if (--n === 0) {
|
4575 | options.rmdir(p, cb)
|
4576 | }
|
4577 | })
|
4578 | })
|
4579 | })
|
4580 | }
|
4581 |
|
4582 |
|
4583 |
|
4584 |
|
4585 | function rimrafSync (p, options) {
|
4586 | let st
|
4587 |
|
4588 | options = options || {}
|
4589 | defaults(options)
|
4590 |
|
4591 | assert(p, 'rimraf: missing path')
|
4592 | assert.strictEqual(typeof p, 'string', 'rimraf: path should be a string')
|
4593 | assert(options, 'rimraf: missing options')
|
4594 | assert.strictEqual(typeof options, 'object', 'rimraf: options should be object')
|
4595 |
|
4596 | try {
|
4597 | st = options.lstatSync(p)
|
4598 | } catch (er) {
|
4599 | if (er.code === 'ENOENT') {
|
4600 | return
|
4601 | }
|
4602 |
|
4603 |
|
4604 | if (er.code === 'EPERM' && isWindows) {
|
4605 | fixWinEPERMSync(p, options, er)
|
4606 | }
|
4607 | }
|
4608 |
|
4609 | try {
|
4610 |
|
4611 | if (st && st.isDirectory()) {
|
4612 | rmdirSync(p, options, null)
|
4613 | } else {
|
4614 | options.unlinkSync(p)
|
4615 | }
|
4616 | } catch (er) {
|
4617 | if (er.code === 'ENOENT') {
|
4618 | return
|
4619 | } else if (er.code === 'EPERM') {
|
4620 | return isWindows ? fixWinEPERMSync(p, options, er) : rmdirSync(p, options, er)
|
4621 | } else if (er.code !== 'EISDIR') {
|
4622 | throw er
|
4623 | }
|
4624 | rmdirSync(p, options, er)
|
4625 | }
|
4626 | }
|
4627 |
|
4628 | function rmdirSync (p, options, originalEr) {
|
4629 | assert(p)
|
4630 | assert(options)
|
4631 | if (originalEr) {
|
4632 | assert(originalEr instanceof Error)
|
4633 | }
|
4634 |
|
4635 | try {
|
4636 | options.rmdirSync(p)
|
4637 | } catch (er) {
|
4638 | if (er.code === 'ENOTDIR') {
|
4639 | throw originalEr
|
4640 | } else if (er.code === 'ENOTEMPTY' || er.code === 'EEXIST' || er.code === 'EPERM') {
|
4641 | rmkidsSync(p, options)
|
4642 | } else if (er.code !== 'ENOENT') {
|
4643 | throw er
|
4644 | }
|
4645 | }
|
4646 | }
|
4647 |
|
4648 | function rmkidsSync (p, options) {
|
4649 | assert(p)
|
4650 | assert(options)
|
4651 | options.readdirSync(p).forEach(f => rimrafSync(path.join(p, f), options))
|
4652 |
|
4653 |
|
4654 |
|
4655 |
|
4656 |
|
4657 |
|
4658 |
|
4659 | const retries = isWindows ? 100 : 1
|
4660 | let i = 0
|
4661 | do {
|
4662 | let threw = true
|
4663 | try {
|
4664 | const ret = options.rmdirSync(p, options)
|
4665 | threw = false
|
4666 | return ret
|
4667 | } finally {
|
4668 | if (++i < retries && threw) continue
|
4669 | }
|
4670 | } while (true)
|
4671 | }
|
4672 |
|
4673 | module.exports = rimraf
|
4674 | rimraf.sync = rimrafSync
|
4675 |
|
4676 |
|
4677 | }),
|
4678 | ,
|
4679 |
|
4680 | (function(module, __unusedexports, __webpack_require__) {
|
4681 |
|
4682 | "use strict";
|
4683 |
|
4684 |
|
4685 |
|
4686 | var loader = __webpack_require__(594);
|
4687 | var dumper = __webpack_require__(552);
|
4688 |
|
4689 |
|
4690 | function deprecated(name) {
|
4691 | return function () {
|
4692 | throw new Error('Function ' + name + ' is deprecated and cannot be used.');
|
4693 | };
|
4694 | }
|
4695 |
|
4696 |
|
4697 | module.exports.Type = __webpack_require__(653);
|
4698 | module.exports.Schema = __webpack_require__(334);
|
4699 | module.exports.FAILSAFE_SCHEMA = __webpack_require__(252);
|
4700 | module.exports.JSON_SCHEMA = __webpack_require__(483);
|
4701 | module.exports.CORE_SCHEMA = __webpack_require__(274);
|
4702 | module.exports.DEFAULT_SAFE_SCHEMA = __webpack_require__(461);
|
4703 | module.exports.DEFAULT_FULL_SCHEMA = __webpack_require__(84);
|
4704 | module.exports.load = loader.load;
|
4705 | module.exports.loadAll = loader.loadAll;
|
4706 | module.exports.safeLoad = loader.safeLoad;
|
4707 | module.exports.safeLoadAll = loader.safeLoadAll;
|
4708 | module.exports.dump = dumper.dump;
|
4709 | module.exports.safeDump = dumper.safeDump;
|
4710 | module.exports.YAMLException = __webpack_require__(246);
|
4711 |
|
4712 |
|
4713 | module.exports.MINIMAL_SCHEMA = __webpack_require__(252);
|
4714 | module.exports.SAFE_SCHEMA = __webpack_require__(461);
|
4715 | module.exports.DEFAULT_SCHEMA = __webpack_require__(84);
|
4716 |
|
4717 |
|
4718 | module.exports.scan = deprecated('scan');
|
4719 | module.exports.parse = deprecated('parse');
|
4720 | module.exports.compose = deprecated('compose');
|
4721 | module.exports.addConstructor = deprecated('addConstructor');
|
4722 |
|
4723 |
|
4724 | }),
|
4725 | ,
|
4726 | ,
|
4727 | ,
|
4728 |
|
4729 | (function(module, __unusedexports, __webpack_require__) {
|
4730 |
|
4731 | module.exports = isexe
|
4732 | isexe.sync = sync
|
4733 |
|
4734 | var fs = __webpack_require__(747)
|
4735 |
|
4736 | function isexe (path, options, cb) {
|
4737 | fs.stat(path, function (er, stat) {
|
4738 | cb(er, er ? false : checkStat(stat, options))
|
4739 | })
|
4740 | }
|
4741 |
|
4742 | function sync (path, options) {
|
4743 | return checkStat(fs.statSync(path), options)
|
4744 | }
|
4745 |
|
4746 | function checkStat (stat, options) {
|
4747 | return stat.isFile() && checkMode(stat, options)
|
4748 | }
|
4749 |
|
4750 | function checkMode (stat, options) {
|
4751 | var mod = stat.mode
|
4752 | var uid = stat.uid
|
4753 | var gid = stat.gid
|
4754 |
|
4755 | var myUid = options.uid !== undefined ?
|
4756 | options.uid : process.getuid && process.getuid()
|
4757 | var myGid = options.gid !== undefined ?
|
4758 | options.gid : process.getgid && process.getgid()
|
4759 |
|
4760 | var u = parseInt('100', 8)
|
4761 | var g = parseInt('010', 8)
|
4762 | var o = parseInt('001', 8)
|
4763 | var ug = u | g
|
4764 |
|
4765 | var ret = (mod & o) ||
|
4766 | (mod & g) && gid === myGid ||
|
4767 | (mod & u) && uid === myUid ||
|
4768 | (mod & ug) && myUid === 0
|
4769 |
|
4770 | return ret
|
4771 | }
|
4772 |
|
4773 |
|
4774 | }),
|
4775 | ,
|
4776 |
|
4777 | (function(module) {
|
4778 |
|
4779 | "use strict";
|
4780 |
|
4781 |
|
4782 | module.exports = {
|
4783 | "aliceblue": [240, 248, 255],
|
4784 | "antiquewhite": [250, 235, 215],
|
4785 | "aqua": [0, 255, 255],
|
4786 | "aquamarine": [127, 255, 212],
|
4787 | "azure": [240, 255, 255],
|
4788 | "beige": [245, 245, 220],
|
4789 | "bisque": [255, 228, 196],
|
4790 | "black": [0, 0, 0],
|
4791 | "blanchedalmond": [255, 235, 205],
|
4792 | "blue": [0, 0, 255],
|
4793 | "blueviolet": [138, 43, 226],
|
4794 | "brown": [165, 42, 42],
|
4795 | "burlywood": [222, 184, 135],
|
4796 | "cadetblue": [95, 158, 160],
|
4797 | "chartreuse": [127, 255, 0],
|
4798 | "chocolate": [210, 105, 30],
|
4799 | "coral": [255, 127, 80],
|
4800 | "cornflowerblue": [100, 149, 237],
|
4801 | "cornsilk": [255, 248, 220],
|
4802 | "crimson": [220, 20, 60],
|
4803 | "cyan": [0, 255, 255],
|
4804 | "darkblue": [0, 0, 139],
|
4805 | "darkcyan": [0, 139, 139],
|
4806 | "darkgoldenrod": [184, 134, 11],
|
4807 | "darkgray": [169, 169, 169],
|
4808 | "darkgreen": [0, 100, 0],
|
4809 | "darkgrey": [169, 169, 169],
|
4810 | "darkkhaki": [189, 183, 107],
|
4811 | "darkmagenta": [139, 0, 139],
|
4812 | "darkolivegreen": [85, 107, 47],
|
4813 | "darkorange": [255, 140, 0],
|
4814 | "darkorchid": [153, 50, 204],
|
4815 | "darkred": [139, 0, 0],
|
4816 | "darksalmon": [233, 150, 122],
|
4817 | "darkseagreen": [143, 188, 143],
|
4818 | "darkslateblue": [72, 61, 139],
|
4819 | "darkslategray": [47, 79, 79],
|
4820 | "darkslategrey": [47, 79, 79],
|
4821 | "darkturquoise": [0, 206, 209],
|
4822 | "darkviolet": [148, 0, 211],
|
4823 | "deeppink": [255, 20, 147],
|
4824 | "deepskyblue": [0, 191, 255],
|
4825 | "dimgray": [105, 105, 105],
|
4826 | "dimgrey": [105, 105, 105],
|
4827 | "dodgerblue": [30, 144, 255],
|
4828 | "firebrick": [178, 34, 34],
|
4829 | "floralwhite": [255, 250, 240],
|
4830 | "forestgreen": [34, 139, 34],
|
4831 | "fuchsia": [255, 0, 255],
|
4832 | "gainsboro": [220, 220, 220],
|
4833 | "ghostwhite": [248, 248, 255],
|
4834 | "gold": [255, 215, 0],
|
4835 | "goldenrod": [218, 165, 32],
|
4836 | "gray": [128, 128, 128],
|
4837 | "green": [0, 128, 0],
|
4838 | "greenyellow": [173, 255, 47],
|
4839 | "grey": [128, 128, 128],
|
4840 | "honeydew": [240, 255, 240],
|
4841 | "hotpink": [255, 105, 180],
|
4842 | "indianred": [205, 92, 92],
|
4843 | "indigo": [75, 0, 130],
|
4844 | "ivory": [255, 255, 240],
|
4845 | "khaki": [240, 230, 140],
|
4846 | "lavender": [230, 230, 250],
|
4847 | "lavenderblush": [255, 240, 245],
|
4848 | "lawngreen": [124, 252, 0],
|
4849 | "lemonchiffon": [255, 250, 205],
|
4850 | "lightblue": [173, 216, 230],
|
4851 | "lightcoral": [240, 128, 128],
|
4852 | "lightcyan": [224, 255, 255],
|
4853 | "lightgoldenrodyellow": [250, 250, 210],
|
4854 | "lightgray": [211, 211, 211],
|
4855 | "lightgreen": [144, 238, 144],
|
4856 | "lightgrey": [211, 211, 211],
|
4857 | "lightpink": [255, 182, 193],
|
4858 | "lightsalmon": [255, 160, 122],
|
4859 | "lightseagreen": [32, 178, 170],
|
4860 | "lightskyblue": [135, 206, 250],
|
4861 | "lightslategray": [119, 136, 153],
|
4862 | "lightslategrey": [119, 136, 153],
|
4863 | "lightsteelblue": [176, 196, 222],
|
4864 | "lightyellow": [255, 255, 224],
|
4865 | "lime": [0, 255, 0],
|
4866 | "limegreen": [50, 205, 50],
|
4867 | "linen": [250, 240, 230],
|
4868 | "magenta": [255, 0, 255],
|
4869 | "maroon": [128, 0, 0],
|
4870 | "mediumaquamarine": [102, 205, 170],
|
4871 | "mediumblue": [0, 0, 205],
|
4872 | "mediumorchid": [186, 85, 211],
|
4873 | "mediumpurple": [147, 112, 219],
|
4874 | "mediumseagreen": [60, 179, 113],
|
4875 | "mediumslateblue": [123, 104, 238],
|
4876 | "mediumspringgreen": [0, 250, 154],
|
4877 | "mediumturquoise": [72, 209, 204],
|
4878 | "mediumvioletred": [199, 21, 133],
|
4879 | "midnightblue": [25, 25, 112],
|
4880 | "mintcream": [245, 255, 250],
|
4881 | "mistyrose": [255, 228, 225],
|
4882 | "moccasin": [255, 228, 181],
|
4883 | "navajowhite": [255, 222, 173],
|
4884 | "navy": [0, 0, 128],
|
4885 | "oldlace": [253, 245, 230],
|
4886 | "olive": [128, 128, 0],
|
4887 | "olivedrab": [107, 142, 35],
|
4888 | "orange": [255, 165, 0],
|
4889 | "orangered": [255, 69, 0],
|
4890 | "orchid": [218, 112, 214],
|
4891 | "palegoldenrod": [238, 232, 170],
|
4892 | "palegreen": [152, 251, 152],
|
4893 | "paleturquoise": [175, 238, 238],
|
4894 | "palevioletred": [219, 112, 147],
|
4895 | "papayawhip": [255, 239, 213],
|
4896 | "peachpuff": [255, 218, 185],
|
4897 | "peru": [205, 133, 63],
|
4898 | "pink": [255, 192, 203],
|
4899 | "plum": [221, 160, 221],
|
4900 | "powderblue": [176, 224, 230],
|
4901 | "purple": [128, 0, 128],
|
4902 | "rebeccapurple": [102, 51, 153],
|
4903 | "red": [255, 0, 0],
|
4904 | "rosybrown": [188, 143, 143],
|
4905 | "royalblue": [65, 105, 225],
|
4906 | "saddlebrown": [139, 69, 19],
|
4907 | "salmon": [250, 128, 114],
|
4908 | "sandybrown": [244, 164, 96],
|
4909 | "seagreen": [46, 139, 87],
|
4910 | "seashell": [255, 245, 238],
|
4911 | "sienna": [160, 82, 45],
|
4912 | "silver": [192, 192, 192],
|
4913 | "skyblue": [135, 206, 235],
|
4914 | "slateblue": [106, 90, 205],
|
4915 | "slategray": [112, 128, 144],
|
4916 | "slategrey": [112, 128, 144],
|
4917 | "snow": [255, 250, 250],
|
4918 | "springgreen": [0, 255, 127],
|
4919 | "steelblue": [70, 130, 180],
|
4920 | "tan": [210, 180, 140],
|
4921 | "teal": [0, 128, 128],
|
4922 | "thistle": [216, 191, 216],
|
4923 | "tomato": [255, 99, 71],
|
4924 | "turquoise": [64, 224, 208],
|
4925 | "violet": [238, 130, 238],
|
4926 | "wheat": [245, 222, 179],
|
4927 | "white": [255, 255, 255],
|
4928 | "whitesmoke": [245, 245, 245],
|
4929 | "yellow": [255, 255, 0],
|
4930 | "yellowgreen": [154, 205, 50]
|
4931 | };
|
4932 |
|
4933 |
|
4934 | }),
|
4935 | ,
|
4936 | ,
|
4937 | ,
|
4938 |
|
4939 | (function(module, __unusedexports, __webpack_require__) {
|
4940 |
|
4941 | "use strict";
|
4942 |
|
4943 |
|
4944 | const u = __webpack_require__(323).fromCallback
|
4945 | const fs = __webpack_require__(729)
|
4946 | const path = __webpack_require__(622)
|
4947 | const copy = __webpack_require__(758).copy
|
4948 | const remove = __webpack_require__(301).remove
|
4949 | const mkdirp = __webpack_require__(648).mkdirp
|
4950 | const pathExists = __webpack_require__(370).pathExists
|
4951 |
|
4952 | function move (src, dest, opts, cb) {
|
4953 | if (typeof opts === 'function') {
|
4954 | cb = opts
|
4955 | opts = {}
|
4956 | }
|
4957 |
|
4958 | const overwrite = opts.overwrite || opts.clobber || false
|
4959 |
|
4960 | src = path.resolve(src)
|
4961 | dest = path.resolve(dest)
|
4962 |
|
4963 | if (src === dest) return fs.access(src, cb)
|
4964 |
|
4965 | fs.stat(src, (err, st) => {
|
4966 | if (err) return cb(err)
|
4967 |
|
4968 | if (st.isDirectory() && isSrcSubdir(src, dest)) {
|
4969 | return cb(new Error(`Cannot move '${src}' to a subdirectory of itself, '${dest}'.`))
|
4970 | }
|
4971 | mkdirp(path.dirname(dest), err => {
|
4972 | if (err) return cb(err)
|
4973 | return doRename(src, dest, overwrite, cb)
|
4974 | })
|
4975 | })
|
4976 | }
|
4977 |
|
4978 | function doRename (src, dest, overwrite, cb) {
|
4979 | if (overwrite) {
|
4980 | return remove(dest, err => {
|
4981 | if (err) return cb(err)
|
4982 | return rename(src, dest, overwrite, cb)
|
4983 | })
|
4984 | }
|
4985 | pathExists(dest, (err, destExists) => {
|
4986 | if (err) return cb(err)
|
4987 | if (destExists) return cb(new Error('dest already exists.'))
|
4988 | return rename(src, dest, overwrite, cb)
|
4989 | })
|
4990 | }
|
4991 |
|
4992 | function rename (src, dest, overwrite, cb) {
|
4993 | fs.rename(src, dest, err => {
|
4994 | if (!err) return cb()
|
4995 | if (err.code !== 'EXDEV') return cb(err)
|
4996 | return moveAcrossDevice(src, dest, overwrite, cb)
|
4997 | })
|
4998 | }
|
4999 |
|
5000 | function moveAcrossDevice (src, dest, overwrite, cb) {
|
5001 | const opts = {
|
5002 | overwrite,
|
5003 | errorOnExist: true
|
5004 | }
|
5005 |
|
5006 | copy(src, dest, opts, err => {
|
5007 | if (err) return cb(err)
|
5008 | return remove(src, cb)
|
5009 | })
|
5010 | }
|
5011 |
|
5012 | function isSrcSubdir (src, dest) {
|
5013 | const srcArray = src.split(path.sep)
|
5014 | const destArray = dest.split(path.sep)
|
5015 |
|
5016 | return srcArray.reduce((acc, current, i) => {
|
5017 | return acc && destArray[i] === current
|
5018 | }, true)
|
5019 | }
|
5020 |
|
5021 | module.exports = {
|
5022 | move: u(move)
|
5023 | }
|
5024 |
|
5025 |
|
5026 | }),
|
5027 | ,
|
5028 |
|
5029 | (function(module, __unusedexports, __webpack_require__) {
|
5030 |
|
5031 | "use strict";
|
5032 |
|
5033 | var __importDefault = (this && this.__importDefault) || function (mod) {
|
5034 | return (mod && mod.__esModule) ? mod : { "default": mod };
|
5035 | };
|
5036 | const assert_1 = __importDefault(__webpack_require__(357));
|
5037 | const fs_extra_1 = __importDefault(__webpack_require__(410));
|
5038 | const multistream_1 = __importDefault(__webpack_require__(415));
|
5039 | const path_1 = __importDefault(__webpack_require__(622));
|
5040 | const async_sema_1 = __importDefault(__webpack_require__(43));
|
5041 | const semaToPreventEMFILE = new async_sema_1.default(20);
|
5042 | class FileFsRef {
|
5043 | constructor({ mode = 0o100644, contentType, fsPath }) {
|
5044 | assert_1.default(typeof mode === 'number');
|
5045 | assert_1.default(typeof fsPath === 'string');
|
5046 | this.type = 'FileFsRef';
|
5047 | this.mode = mode;
|
5048 | this.contentType = contentType;
|
5049 | this.fsPath = fsPath;
|
5050 | }
|
5051 | static async fromFsPath({ mode, contentType, fsPath, }) {
|
5052 | let m = mode;
|
5053 | if (!m) {
|
5054 | const stat = await fs_extra_1.default.lstat(fsPath);
|
5055 | m = stat.mode;
|
5056 | }
|
5057 | return new FileFsRef({ mode: m, contentType, fsPath });
|
5058 | }
|
5059 | static async fromStream({ mode = 0o100644, contentType, stream, fsPath, }) {
|
5060 | assert_1.default(typeof mode === 'number');
|
5061 | assert_1.default(typeof stream.pipe === 'function');
|
5062 | assert_1.default(typeof fsPath === 'string');
|
5063 | await fs_extra_1.default.mkdirp(path_1.default.dirname(fsPath));
|
5064 | await new Promise((resolve, reject) => {
|
5065 | const dest = fs_extra_1.default.createWriteStream(fsPath, {
|
5066 | mode: mode & 0o777,
|
5067 | });
|
5068 | stream.pipe(dest);
|
5069 | stream.on('error', reject);
|
5070 | dest.on('finish', resolve);
|
5071 | dest.on('error', reject);
|
5072 | });
|
5073 | return new FileFsRef({ mode, contentType, fsPath });
|
5074 | }
|
5075 | async toStreamAsync() {
|
5076 | await semaToPreventEMFILE.acquire();
|
5077 | const release = () => semaToPreventEMFILE.release();
|
5078 | const stream = fs_extra_1.default.createReadStream(this.fsPath);
|
5079 | stream.on('close', release);
|
5080 | stream.on('error', release);
|
5081 | return stream;
|
5082 | }
|
5083 | toStream() {
|
5084 | let flag = false;
|
5085 |
|
5086 | return multistream_1.default(cb => {
|
5087 | if (flag)
|
5088 | return cb(null, null);
|
5089 | flag = true;
|
5090 | this.toStreamAsync()
|
5091 | .then(stream => {
|
5092 | cb(null, stream);
|
5093 | })
|
5094 | .catch(error => {
|
5095 | cb(error, null);
|
5096 | });
|
5097 | });
|
5098 | }
|
5099 | }
|
5100 | module.exports = FileFsRef;
|
5101 |
|
5102 |
|
5103 | }),
|
5104 | ,
|
5105 | ,
|
5106 |
|
5107 | (function(__unusedmodule, exports, __webpack_require__) {
|
5108 |
|
5109 | "use strict";
|
5110 |
|
5111 |
|
5112 |
|
5113 |
|
5114 |
|
5115 |
|
5116 |
|
5117 |
|
5118 |
|
5119 |
|
5120 |
|
5121 |
|
5122 |
|
5123 |
|
5124 |
|
5125 |
|
5126 |
|
5127 |
|
5128 |
|
5129 |
|
5130 |
|
5131 |
|
5132 |
|
5133 |
|
5134 |
|
5135 | var Buffer = __webpack_require__(809).Buffer;
|
5136 |
|
5137 |
|
5138 | var isEncoding = Buffer.isEncoding || function (encoding) {
|
5139 | encoding = '' + encoding;
|
5140 | switch (encoding && encoding.toLowerCase()) {
|
5141 | case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw':
|
5142 | return true;
|
5143 | default:
|
5144 | return false;
|
5145 | }
|
5146 | };
|
5147 |
|
5148 | function _normalizeEncoding(enc) {
|
5149 | if (!enc) return 'utf8';
|
5150 | var retried;
|
5151 | while (true) {
|
5152 | switch (enc) {
|
5153 | case 'utf8':
|
5154 | case 'utf-8':
|
5155 | return 'utf8';
|
5156 | case 'ucs2':
|
5157 | case 'ucs-2':
|
5158 | case 'utf16le':
|
5159 | case 'utf-16le':
|
5160 | return 'utf16le';
|
5161 | case 'latin1':
|
5162 | case 'binary':
|
5163 | return 'latin1';
|
5164 | case 'base64':
|
5165 | case 'ascii':
|
5166 | case 'hex':
|
5167 | return enc;
|
5168 | default:
|
5169 | if (retried) return;
|
5170 | enc = ('' + enc).toLowerCase();
|
5171 | retried = true;
|
5172 | }
|
5173 | }
|
5174 | };
|
5175 |
|
5176 |
|
5177 |
|
5178 | function normalizeEncoding(enc) {
|
5179 | var nenc = _normalizeEncoding(enc);
|
5180 | if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);
|
5181 | return nenc || enc;
|
5182 | }
|
5183 |
|
5184 |
|
5185 |
|
5186 |
|
5187 | exports.StringDecoder = StringDecoder;
|
5188 | function StringDecoder(encoding) {
|
5189 | this.encoding = normalizeEncoding(encoding);
|
5190 | var nb;
|
5191 | switch (this.encoding) {
|
5192 | case 'utf16le':
|
5193 | this.text = utf16Text;
|
5194 | this.end = utf16End;
|
5195 | nb = 4;
|
5196 | break;
|
5197 | case 'utf8':
|
5198 | this.fillLast = utf8FillLast;
|
5199 | nb = 4;
|
5200 | break;
|
5201 | case 'base64':
|
5202 | this.text = base64Text;
|
5203 | this.end = base64End;
|
5204 | nb = 3;
|
5205 | break;
|
5206 | default:
|
5207 | this.write = simpleWrite;
|
5208 | this.end = simpleEnd;
|
5209 | return;
|
5210 | }
|
5211 | this.lastNeed = 0;
|
5212 | this.lastTotal = 0;
|
5213 | this.lastChar = Buffer.allocUnsafe(nb);
|
5214 | }
|
5215 |
|
5216 | StringDecoder.prototype.write = function (buf) {
|
5217 | if (buf.length === 0) return '';
|
5218 | var r;
|
5219 | var i;
|
5220 | if (this.lastNeed) {
|
5221 | r = this.fillLast(buf);
|
5222 | if (r === undefined) return '';
|
5223 | i = this.lastNeed;
|
5224 | this.lastNeed = 0;
|
5225 | } else {
|
5226 | i = 0;
|
5227 | }
|
5228 | if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);
|
5229 | return r || '';
|
5230 | };
|
5231 |
|
5232 | StringDecoder.prototype.end = utf8End;
|
5233 |
|
5234 |
|
5235 | StringDecoder.prototype.text = utf8Text;
|
5236 |
|
5237 |
|
5238 | StringDecoder.prototype.fillLast = function (buf) {
|
5239 | if (this.lastNeed <= buf.length) {
|
5240 | buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);
|
5241 | return this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
5242 | }
|
5243 | buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);
|
5244 | this.lastNeed -= buf.length;
|
5245 | };
|
5246 |
|
5247 |
|
5248 |
|
5249 | function utf8CheckByte(byte) {
|
5250 | if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;
|
5251 | return byte >> 6 === 0x02 ? -1 : -2;
|
5252 | }
|
5253 |
|
5254 |
|
5255 |
|
5256 |
|
5257 | function utf8CheckIncomplete(self, buf, i) {
|
5258 | var j = buf.length - 1;
|
5259 | if (j < i) return 0;
|
5260 | var nb = utf8CheckByte(buf[j]);
|
5261 | if (nb >= 0) {
|
5262 | if (nb > 0) self.lastNeed = nb - 1;
|
5263 | return nb;
|
5264 | }
|
5265 | if (--j < i || nb === -2) return 0;
|
5266 | nb = utf8CheckByte(buf[j]);
|
5267 | if (nb >= 0) {
|
5268 | if (nb > 0) self.lastNeed = nb - 2;
|
5269 | return nb;
|
5270 | }
|
5271 | if (--j < i || nb === -2) return 0;
|
5272 | nb = utf8CheckByte(buf[j]);
|
5273 | if (nb >= 0) {
|
5274 | if (nb > 0) {
|
5275 | if (nb === 2) nb = 0;else self.lastNeed = nb - 3;
|
5276 | }
|
5277 | return nb;
|
5278 | }
|
5279 | return 0;
|
5280 | }
|
5281 |
|
5282 |
|
5283 |
|
5284 |
|
5285 |
|
5286 |
|
5287 |
|
5288 |
|
5289 |
|
5290 | function utf8CheckExtraBytes(self, buf, p) {
|
5291 | if ((buf[0] & 0xC0) !== 0x80) {
|
5292 | self.lastNeed = 0;
|
5293 | return '\ufffd';
|
5294 | }
|
5295 | if (self.lastNeed > 1 && buf.length > 1) {
|
5296 | if ((buf[1] & 0xC0) !== 0x80) {
|
5297 | self.lastNeed = 1;
|
5298 | return '\ufffd';
|
5299 | }
|
5300 | if (self.lastNeed > 2 && buf.length > 2) {
|
5301 | if ((buf[2] & 0xC0) !== 0x80) {
|
5302 | self.lastNeed = 2;
|
5303 | return '\ufffd';
|
5304 | }
|
5305 | }
|
5306 | }
|
5307 | }
|
5308 |
|
5309 |
|
5310 | function utf8FillLast(buf) {
|
5311 | var p = this.lastTotal - this.lastNeed;
|
5312 | var r = utf8CheckExtraBytes(this, buf, p);
|
5313 | if (r !== undefined) return r;
|
5314 | if (this.lastNeed <= buf.length) {
|
5315 | buf.copy(this.lastChar, p, 0, this.lastNeed);
|
5316 | return this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
5317 | }
|
5318 | buf.copy(this.lastChar, p, 0, buf.length);
|
5319 | this.lastNeed -= buf.length;
|
5320 | }
|
5321 |
|
5322 |
|
5323 |
|
5324 |
|
5325 | function utf8Text(buf, i) {
|
5326 | var total = utf8CheckIncomplete(this, buf, i);
|
5327 | if (!this.lastNeed) return buf.toString('utf8', i);
|
5328 | this.lastTotal = total;
|
5329 | var end = buf.length - (total - this.lastNeed);
|
5330 | buf.copy(this.lastChar, 0, end);
|
5331 | return buf.toString('utf8', i, end);
|
5332 | }
|
5333 |
|
5334 |
|
5335 |
|
5336 | function utf8End(buf) {
|
5337 | var r = buf && buf.length ? this.write(buf) : '';
|
5338 | if (this.lastNeed) return r + '\ufffd';
|
5339 | return r;
|
5340 | }
|
5341 |
|
5342 |
|
5343 |
|
5344 |
|
5345 |
|
5346 | function utf16Text(buf, i) {
|
5347 | if ((buf.length - i) % 2 === 0) {
|
5348 | var r = buf.toString('utf16le', i);
|
5349 | if (r) {
|
5350 | var c = r.charCodeAt(r.length - 1);
|
5351 | if (c >= 0xD800 && c <= 0xDBFF) {
|
5352 | this.lastNeed = 2;
|
5353 | this.lastTotal = 4;
|
5354 | this.lastChar[0] = buf[buf.length - 2];
|
5355 | this.lastChar[1] = buf[buf.length - 1];
|
5356 | return r.slice(0, -1);
|
5357 | }
|
5358 | }
|
5359 | return r;
|
5360 | }
|
5361 | this.lastNeed = 1;
|
5362 | this.lastTotal = 2;
|
5363 | this.lastChar[0] = buf[buf.length - 1];
|
5364 | return buf.toString('utf16le', i, buf.length - 1);
|
5365 | }
|
5366 |
|
5367 |
|
5368 |
|
5369 | function utf16End(buf) {
|
5370 | var r = buf && buf.length ? this.write(buf) : '';
|
5371 | if (this.lastNeed) {
|
5372 | var end = this.lastTotal - this.lastNeed;
|
5373 | return r + this.lastChar.toString('utf16le', 0, end);
|
5374 | }
|
5375 | return r;
|
5376 | }
|
5377 |
|
5378 | function base64Text(buf, i) {
|
5379 | var n = (buf.length - i) % 3;
|
5380 | if (n === 0) return buf.toString('base64', i);
|
5381 | this.lastNeed = 3 - n;
|
5382 | this.lastTotal = 3;
|
5383 | if (n === 1) {
|
5384 | this.lastChar[0] = buf[buf.length - 1];
|
5385 | } else {
|
5386 | this.lastChar[0] = buf[buf.length - 2];
|
5387 | this.lastChar[1] = buf[buf.length - 1];
|
5388 | }
|
5389 | return buf.toString('base64', i, buf.length - n);
|
5390 | }
|
5391 |
|
5392 | function base64End(buf) {
|
5393 | var r = buf && buf.length ? this.write(buf) : '';
|
5394 | if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);
|
5395 | return r;
|
5396 | }
|
5397 |
|
5398 |
|
5399 | function simpleWrite(buf) {
|
5400 | return buf.toString(this.encoding);
|
5401 | }
|
5402 |
|
5403 | function simpleEnd(buf) {
|
5404 | return buf && buf.length ? this.write(buf) : '';
|
5405 | }
|
5406 |
|
5407 | }),
|
5408 | ,
|
5409 | ,
|
5410 | ,
|
5411 | ,
|
5412 | ,
|
5413 | ,
|
5414 | ,
|
5415 | ,
|
5416 | ,
|
5417 | ,
|
5418 | ,
|
5419 | ,
|
5420 |
|
5421 | (function() {
|
5422 |
|
5423 | eval("require")("iconv");
|
5424 |
|
5425 |
|
5426 | }),
|
5427 |
|
5428 | (function(module) {
|
5429 |
|
5430 | module.exports = require("https");
|
5431 |
|
5432 | }),
|
5433 | ,
|
5434 | ,
|
5435 | ,
|
5436 | ,
|
5437 | ,
|
5438 | ,
|
5439 | ,
|
5440 | ,
|
5441 | ,
|
5442 | ,
|
5443 | ,
|
5444 | ,
|
5445 | ,
|
5446 | ,
|
5447 | ,
|
5448 | ,
|
5449 |
|
5450 | (function(module) {
|
5451 |
|
5452 | module.exports = function (xs, fn) {
|
5453 | var res = [];
|
5454 | for (var i = 0; i < xs.length; i++) {
|
5455 | var x = fn(xs[i], i);
|
5456 | if (isArray(x)) res.push.apply(res, x);
|
5457 | else res.push(x);
|
5458 | }
|
5459 | return res;
|
5460 | };
|
5461 |
|
5462 | var isArray = Array.isArray || function (xs) {
|
5463 | return Object.prototype.toString.call(xs) === '[object Array]';
|
5464 | };
|
5465 |
|
5466 |
|
5467 | }),
|
5468 | ,
|
5469 | ,
|
5470 |
|
5471 | (function(__unusedmodule, exports) {
|
5472 |
|
5473 | "use strict";
|
5474 |
|
5475 | Object.defineProperty(exports, "__esModule", { value: true });
|
5476 | exports.buildsSchema = exports.functionsSchema = void 0;
|
5477 | exports.functionsSchema = {
|
5478 | type: 'object',
|
5479 | minProperties: 1,
|
5480 | maxProperties: 50,
|
5481 | additionalProperties: false,
|
5482 | patternProperties: {
|
5483 | '^.{1,256}$': {
|
5484 | type: 'object',
|
5485 | additionalProperties: false,
|
5486 | properties: {
|
5487 | runtime: {
|
5488 | type: 'string',
|
5489 | maxLength: 256,
|
5490 | },
|
5491 | memory: {
|
5492 |
|
5493 | enum: Object.keys(Array.from({ length: 50 }))
|
5494 | .slice(2, 48)
|
5495 | .map(x => Number(x) * 64),
|
5496 | },
|
5497 | maxDuration: {
|
5498 | type: 'number',
|
5499 | minimum: 1,
|
5500 | maximum: 900,
|
5501 | },
|
5502 | includeFiles: {
|
5503 | type: 'string',
|
5504 | maxLength: 256,
|
5505 | },
|
5506 | excludeFiles: {
|
5507 | type: 'string',
|
5508 | maxLength: 256,
|
5509 | },
|
5510 | },
|
5511 | },
|
5512 | },
|
5513 | };
|
5514 | exports.buildsSchema = {
|
5515 | type: 'array',
|
5516 | minItems: 0,
|
5517 | maxItems: 128,
|
5518 | items: {
|
5519 | type: 'object',
|
5520 | additionalProperties: false,
|
5521 | required: ['use'],
|
5522 | properties: {
|
5523 | src: {
|
5524 | type: 'string',
|
5525 | minLength: 1,
|
5526 | maxLength: 4096,
|
5527 | },
|
5528 | use: {
|
5529 | type: 'string',
|
5530 | minLength: 3,
|
5531 | maxLength: 256,
|
5532 | },
|
5533 | config: { type: 'object' },
|
5534 | },
|
5535 | },
|
5536 | };
|
5537 |
|
5538 |
|
5539 | }),
|
5540 | ,
|
5541 | ,
|
5542 |
|
5543 | (function(module, __unusedexports, __webpack_require__) {
|
5544 |
|
5545 | "use strict";
|
5546 |
|
5547 | module.exports = parseString
|
5548 |
|
5549 | const TOMLParser = __webpack_require__(882)
|
5550 | const prettyError = __webpack_require__(490)
|
5551 |
|
5552 | function parseString (str) {
|
5553 | if (global.Buffer && global.Buffer.isBuffer(str)) {
|
5554 | str = str.toString('utf8')
|
5555 | }
|
5556 | const parser = new TOMLParser()
|
5557 | try {
|
5558 | parser.parse(str)
|
5559 | return parser.finish()
|
5560 | } catch (err) {
|
5561 | throw prettyError(err, str)
|
5562 | }
|
5563 | }
|
5564 |
|
5565 |
|
5566 | }),
|
5567 | ,
|
5568 | ,
|
5569 |
|
5570 | (function(module, __unusedexports, __webpack_require__) {
|
5571 |
|
5572 | "use strict";
|
5573 |
|
5574 |
|
5575 | var Type = __webpack_require__(653);
|
5576 |
|
5577 | var _toString = Object.prototype.toString;
|
5578 |
|
5579 | function resolveYamlPairs(data) {
|
5580 | if (data === null) return true;
|
5581 |
|
5582 | var index, length, pair, keys, result,
|
5583 | object = data;
|
5584 |
|
5585 | result = new Array(object.length);
|
5586 |
|
5587 | for (index = 0, length = object.length; index < length; index += 1) {
|
5588 | pair = object[index];
|
5589 |
|
5590 | if (_toString.call(pair) !== '[object Object]') return false;
|
5591 |
|
5592 | keys = Object.keys(pair);
|
5593 |
|
5594 | if (keys.length !== 1) return false;
|
5595 |
|
5596 | result[index] = [ keys[0], pair[keys[0]] ];
|
5597 | }
|
5598 |
|
5599 | return true;
|
5600 | }
|
5601 |
|
5602 | function constructYamlPairs(data) {
|
5603 | if (data === null) return [];
|
5604 |
|
5605 | var index, length, pair, keys, result,
|
5606 | object = data;
|
5607 |
|
5608 | result = new Array(object.length);
|
5609 |
|
5610 | for (index = 0, length = object.length; index < length; index += 1) {
|
5611 | pair = object[index];
|
5612 |
|
5613 | keys = Object.keys(pair);
|
5614 |
|
5615 | result[index] = [ keys[0], pair[keys[0]] ];
|
5616 | }
|
5617 |
|
5618 | return result;
|
5619 | }
|
5620 |
|
5621 | module.exports = new Type('tag:yaml.org,2002:pairs', {
|
5622 | kind: 'sequence',
|
5623 | resolve: resolveYamlPairs,
|
5624 | construct: constructYamlPairs
|
5625 | });
|
5626 |
|
5627 |
|
5628 | }),
|
5629 |
|
5630 | (function(__unusedmodule, exports, __webpack_require__) {
|
5631 |
|
5632 | "use strict";
|
5633 |
|
5634 | var Buffer = __webpack_require__(603).Buffer;
|
5635 |
|
5636 |
|
5637 |
|
5638 |
|
5639 |
|
5640 | exports._dbcs = DBCSCodec;
|
5641 |
|
5642 | var UNASSIGNED = -1,
|
5643 | GB18030_CODE = -2,
|
5644 | SEQ_START = -10,
|
5645 | NODE_START = -1000,
|
5646 | UNASSIGNED_NODE = new Array(0x100),
|
5647 | DEF_CHAR = -1;
|
5648 |
|
5649 | for (var i = 0; i < 0x100; i++)
|
5650 | UNASSIGNED_NODE[i] = UNASSIGNED;
|
5651 |
|
5652 |
|
5653 |
|
5654 | function DBCSCodec(codecOptions, iconv) {
|
5655 | this.encodingName = codecOptions.encodingName;
|
5656 | if (!codecOptions)
|
5657 | throw new Error("DBCS codec is called without the data.")
|
5658 | if (!codecOptions.table)
|
5659 | throw new Error("Encoding '" + this.encodingName + "' has no data.");
|
5660 |
|
5661 |
|
5662 | var mappingTable = codecOptions.table();
|
5663 |
|
5664 |
|
5665 |
|
5666 |
|
5667 |
|
5668 |
|
5669 |
|
5670 |
|
5671 |
|
5672 |
|
5673 |
|
5674 | this.decodeTables = [];
|
5675 | this.decodeTables[0] = UNASSIGNED_NODE.slice(0);
|
5676 |
|
5677 |
|
5678 | this.decodeTableSeq = [];
|
5679 |
|
5680 |
|
5681 | for (var i = 0; i < mappingTable.length; i++)
|
5682 | this._addDecodeChunk(mappingTable[i]);
|
5683 |
|
5684 | this.defaultCharUnicode = iconv.defaultCharUnicode;
|
5685 |
|
5686 |
|
5687 |
|
5688 |
|
5689 |
|
5690 |
|
5691 |
|
5692 |
|
5693 |
|
5694 | this.encodeTable = [];
|
5695 |
|
5696 |
|
5697 |
|
5698 |
|
5699 |
|
5700 | this.encodeTableSeq = [];
|
5701 |
|
5702 |
|
5703 | var skipEncodeChars = {};
|
5704 | if (codecOptions.encodeSkipVals)
|
5705 | for (var i = 0; i < codecOptions.encodeSkipVals.length; i++) {
|
5706 | var val = codecOptions.encodeSkipVals[i];
|
5707 | if (typeof val === 'number')
|
5708 | skipEncodeChars[val] = true;
|
5709 | else
|
5710 | for (var j = val.from; j <= val.to; j++)
|
5711 | skipEncodeChars[j] = true;
|
5712 | }
|
5713 |
|
5714 |
|
5715 | this._fillEncodeTable(0, 0, skipEncodeChars);
|
5716 |
|
5717 |
|
5718 | if (codecOptions.encodeAdd) {
|
5719 | for (var uChar in codecOptions.encodeAdd)
|
5720 | if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar))
|
5721 | this._setEncodeChar(uChar.charCodeAt(0), codecOptions.encodeAdd[uChar]);
|
5722 | }
|
5723 |
|
5724 | this.defCharSB = this.encodeTable[0][iconv.defaultCharSingleByte.charCodeAt(0)];
|
5725 | if (this.defCharSB === UNASSIGNED) this.defCharSB = this.encodeTable[0]['?'];
|
5726 | if (this.defCharSB === UNASSIGNED) this.defCharSB = "?".charCodeAt(0);
|
5727 |
|
5728 |
|
5729 |
|
5730 | if (typeof codecOptions.gb18030 === 'function') {
|
5731 | this.gb18030 = codecOptions.gb18030();
|
5732 |
|
5733 |
|
5734 | var thirdByteNodeIdx = this.decodeTables.length;
|
5735 | var thirdByteNode = this.decodeTables[thirdByteNodeIdx] = UNASSIGNED_NODE.slice(0);
|
5736 |
|
5737 | var fourthByteNodeIdx = this.decodeTables.length;
|
5738 | var fourthByteNode = this.decodeTables[fourthByteNodeIdx] = UNASSIGNED_NODE.slice(0);
|
5739 |
|
5740 | for (var i = 0x81; i <= 0xFE; i++) {
|
5741 | var secondByteNodeIdx = NODE_START - this.decodeTables[0][i];
|
5742 | var secondByteNode = this.decodeTables[secondByteNodeIdx];
|
5743 | for (var j = 0x30; j <= 0x39; j++)
|
5744 | secondByteNode[j] = NODE_START - thirdByteNodeIdx;
|
5745 | }
|
5746 | for (var i = 0x81; i <= 0xFE; i++)
|
5747 | thirdByteNode[i] = NODE_START - fourthByteNodeIdx;
|
5748 | for (var i = 0x30; i <= 0x39; i++)
|
5749 | fourthByteNode[i] = GB18030_CODE
|
5750 | }
|
5751 | }
|
5752 |
|
5753 | DBCSCodec.prototype.encoder = DBCSEncoder;
|
5754 | DBCSCodec.prototype.decoder = DBCSDecoder;
|
5755 |
|
5756 |
|
5757 | DBCSCodec.prototype._getDecodeTrieNode = function(addr) {
|
5758 | var bytes = [];
|
5759 | for (; addr > 0; addr >>= 8)
|
5760 | bytes.push(addr & 0xFF);
|
5761 | if (bytes.length == 0)
|
5762 | bytes.push(0);
|
5763 |
|
5764 | var node = this.decodeTables[0];
|
5765 | for (var i = bytes.length-1; i > 0; i--) {
|
5766 | var val = node[bytes[i]];
|
5767 |
|
5768 | if (val == UNASSIGNED) {
|
5769 | node[bytes[i]] = NODE_START - this.decodeTables.length;
|
5770 | this.decodeTables.push(node = UNASSIGNED_NODE.slice(0));
|
5771 | }
|
5772 | else if (val <= NODE_START) {
|
5773 | node = this.decodeTables[NODE_START - val];
|
5774 | }
|
5775 | else
|
5776 | throw new Error("Overwrite byte in " + this.encodingName + ", addr: " + addr.toString(16));
|
5777 | }
|
5778 | return node;
|
5779 | }
|
5780 |
|
5781 |
|
5782 | DBCSCodec.prototype._addDecodeChunk = function(chunk) {
|
5783 |
|
5784 | var curAddr = parseInt(chunk[0], 16);
|
5785 |
|
5786 |
|
5787 | var writeTable = this._getDecodeTrieNode(curAddr);
|
5788 | curAddr = curAddr & 0xFF;
|
5789 |
|
5790 |
|
5791 | for (var k = 1; k < chunk.length; k++) {
|
5792 | var part = chunk[k];
|
5793 | if (typeof part === "string") {
|
5794 | for (var l = 0; l < part.length;) {
|
5795 | var code = part.charCodeAt(l++);
|
5796 | if (0xD800 <= code && code < 0xDC00) {
|
5797 | var codeTrail = part.charCodeAt(l++);
|
5798 | if (0xDC00 <= codeTrail && codeTrail < 0xE000)
|
5799 | writeTable[curAddr++] = 0x10000 + (code - 0xD800) * 0x400 + (codeTrail - 0xDC00);
|
5800 | else
|
5801 | throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + chunk[0]);
|
5802 | }
|
5803 | else if (0x0FF0 < code && code <= 0x0FFF) {
|
5804 | var len = 0xFFF - code + 2;
|
5805 | var seq = [];
|
5806 | for (var m = 0; m < len; m++)
|
5807 | seq.push(part.charCodeAt(l++));
|
5808 |
|
5809 | writeTable[curAddr++] = SEQ_START - this.decodeTableSeq.length;
|
5810 | this.decodeTableSeq.push(seq);
|
5811 | }
|
5812 | else
|
5813 | writeTable[curAddr++] = code;
|
5814 | }
|
5815 | }
|
5816 | else if (typeof part === "number") {
|
5817 | var charCode = writeTable[curAddr - 1] + 1;
|
5818 | for (var l = 0; l < part; l++)
|
5819 | writeTable[curAddr++] = charCode++;
|
5820 | }
|
5821 | else
|
5822 | throw new Error("Incorrect type '" + typeof part + "' given in " + this.encodingName + " at chunk " + chunk[0]);
|
5823 | }
|
5824 | if (curAddr > 0xFF)
|
5825 | throw new Error("Incorrect chunk in " + this.encodingName + " at addr " + chunk[0] + ": too long" + curAddr);
|
5826 | }
|
5827 |
|
5828 |
|
5829 | DBCSCodec.prototype._getEncodeBucket = function(uCode) {
|
5830 | var high = uCode >> 8;
|
5831 | if (this.encodeTable[high] === undefined)
|
5832 | this.encodeTable[high] = UNASSIGNED_NODE.slice(0);
|
5833 | return this.encodeTable[high];
|
5834 | }
|
5835 |
|
5836 | DBCSCodec.prototype._setEncodeChar = function(uCode, dbcsCode) {
|
5837 | var bucket = this._getEncodeBucket(uCode);
|
5838 | var low = uCode & 0xFF;
|
5839 | if (bucket[low] <= SEQ_START)
|
5840 | this.encodeTableSeq[SEQ_START-bucket[low]][DEF_CHAR] = dbcsCode;
|
5841 | else if (bucket[low] == UNASSIGNED)
|
5842 | bucket[low] = dbcsCode;
|
5843 | }
|
5844 |
|
5845 | DBCSCodec.prototype._setEncodeSequence = function(seq, dbcsCode) {
|
5846 |
|
5847 |
|
5848 | var uCode = seq[0];
|
5849 | var bucket = this._getEncodeBucket(uCode);
|
5850 | var low = uCode & 0xFF;
|
5851 |
|
5852 | var node;
|
5853 | if (bucket[low] <= SEQ_START) {
|
5854 |
|
5855 | node = this.encodeTableSeq[SEQ_START-bucket[low]];
|
5856 | }
|
5857 | else {
|
5858 |
|
5859 | node = {};
|
5860 | if (bucket[low] !== UNASSIGNED) node[DEF_CHAR] = bucket[low];
|
5861 | bucket[low] = SEQ_START - this.encodeTableSeq.length;
|
5862 | this.encodeTableSeq.push(node);
|
5863 | }
|
5864 |
|
5865 |
|
5866 | for (var j = 1; j < seq.length-1; j++) {
|
5867 | var oldVal = node[uCode];
|
5868 | if (typeof oldVal === 'object')
|
5869 | node = oldVal;
|
5870 | else {
|
5871 | node = node[uCode] = {}
|
5872 | if (oldVal !== undefined)
|
5873 | node[DEF_CHAR] = oldVal
|
5874 | }
|
5875 | }
|
5876 |
|
5877 |
|
5878 | uCode = seq[seq.length-1];
|
5879 | node[uCode] = dbcsCode;
|
5880 | }
|
5881 |
|
5882 | DBCSCodec.prototype._fillEncodeTable = function(nodeIdx, prefix, skipEncodeChars) {
|
5883 | var node = this.decodeTables[nodeIdx];
|
5884 | for (var i = 0; i < 0x100; i++) {
|
5885 | var uCode = node[i];
|
5886 | var mbCode = prefix + i;
|
5887 | if (skipEncodeChars[mbCode])
|
5888 | continue;
|
5889 |
|
5890 | if (uCode >= 0)
|
5891 | this._setEncodeChar(uCode, mbCode);
|
5892 | else if (uCode <= NODE_START)
|
5893 | this._fillEncodeTable(NODE_START - uCode, mbCode << 8, skipEncodeChars);
|
5894 | else if (uCode <= SEQ_START)
|
5895 | this._setEncodeSequence(this.decodeTableSeq[SEQ_START - uCode], mbCode);
|
5896 | }
|
5897 | }
|
5898 |
|
5899 |
|
5900 |
|
5901 |
|
5902 |
|
5903 | function DBCSEncoder(options, codec) {
|
5904 |
|
5905 | this.leadSurrogate = -1;
|
5906 | this.seqObj = undefined;
|
5907 |
|
5908 |
|
5909 | this.encodeTable = codec.encodeTable;
|
5910 | this.encodeTableSeq = codec.encodeTableSeq;
|
5911 | this.defaultCharSingleByte = codec.defCharSB;
|
5912 | this.gb18030 = codec.gb18030;
|
5913 | }
|
5914 |
|
5915 | DBCSEncoder.prototype.write = function(str) {
|
5916 | var newBuf = Buffer.alloc(str.length * (this.gb18030 ? 4 : 3)),
|
5917 | leadSurrogate = this.leadSurrogate,
|
5918 | seqObj = this.seqObj, nextChar = -1,
|
5919 | i = 0, j = 0;
|
5920 |
|
5921 | while (true) {
|
5922 |
|
5923 | if (nextChar === -1) {
|
5924 | if (i == str.length) break;
|
5925 | var uCode = str.charCodeAt(i++);
|
5926 | }
|
5927 | else {
|
5928 | var uCode = nextChar;
|
5929 | nextChar = -1;
|
5930 | }
|
5931 |
|
5932 |
|
5933 | if (0xD800 <= uCode && uCode < 0xE000) {
|
5934 | if (uCode < 0xDC00) {
|
5935 | if (leadSurrogate === -1) {
|
5936 | leadSurrogate = uCode;
|
5937 | continue;
|
5938 | } else {
|
5939 | leadSurrogate = uCode;
|
5940 |
|
5941 | uCode = UNASSIGNED;
|
5942 | }
|
5943 | } else {
|
5944 | if (leadSurrogate !== -1) {
|
5945 | uCode = 0x10000 + (leadSurrogate - 0xD800) * 0x400 + (uCode - 0xDC00);
|
5946 | leadSurrogate = -1;
|
5947 | } else {
|
5948 |
|
5949 | uCode = UNASSIGNED;
|
5950 | }
|
5951 |
|
5952 | }
|
5953 | }
|
5954 | else if (leadSurrogate !== -1) {
|
5955 |
|
5956 | nextChar = uCode; uCode = UNASSIGNED;
|
5957 | leadSurrogate = -1;
|
5958 | }
|
5959 |
|
5960 |
|
5961 | var dbcsCode = UNASSIGNED;
|
5962 | if (seqObj !== undefined && uCode != UNASSIGNED) {
|
5963 | var resCode = seqObj[uCode];
|
5964 | if (typeof resCode === 'object') {
|
5965 | seqObj = resCode;
|
5966 | continue;
|
5967 |
|
5968 | } else if (typeof resCode == 'number') {
|
5969 | dbcsCode = resCode;
|
5970 |
|
5971 | } else if (resCode == undefined) {
|
5972 |
|
5973 |
|
5974 | resCode = seqObj[DEF_CHAR];
|
5975 | if (resCode !== undefined) {
|
5976 | dbcsCode = resCode;
|
5977 | nextChar = uCode;
|
5978 |
|
5979 | } else {
|
5980 |
|
5981 |
|
5982 |
|
5983 |
|
5984 | }
|
5985 | }
|
5986 | seqObj = undefined;
|
5987 | }
|
5988 | else if (uCode >= 0) {
|
5989 | var subtable = this.encodeTable[uCode >> 8];
|
5990 | if (subtable !== undefined)
|
5991 | dbcsCode = subtable[uCode & 0xFF];
|
5992 |
|
5993 | if (dbcsCode <= SEQ_START) {
|
5994 | seqObj = this.encodeTableSeq[SEQ_START-dbcsCode];
|
5995 | continue;
|
5996 | }
|
5997 |
|
5998 | if (dbcsCode == UNASSIGNED && this.gb18030) {
|
5999 |
|
6000 | var idx = findIdx(this.gb18030.uChars, uCode);
|
6001 | if (idx != -1) {
|
6002 | var dbcsCode = this.gb18030.gbChars[idx] + (uCode - this.gb18030.uChars[idx]);
|
6003 | newBuf[j++] = 0x81 + Math.floor(dbcsCode / 12600); dbcsCode = dbcsCode % 12600;
|
6004 | newBuf[j++] = 0x30 + Math.floor(dbcsCode / 1260); dbcsCode = dbcsCode % 1260;
|
6005 | newBuf[j++] = 0x81 + Math.floor(dbcsCode / 10); dbcsCode = dbcsCode % 10;
|
6006 | newBuf[j++] = 0x30 + dbcsCode;
|
6007 | continue;
|
6008 | }
|
6009 | }
|
6010 | }
|
6011 |
|
6012 |
|
6013 | if (dbcsCode === UNASSIGNED)
|
6014 | dbcsCode = this.defaultCharSingleByte;
|
6015 |
|
6016 | if (dbcsCode < 0x100) {
|
6017 | newBuf[j++] = dbcsCode;
|
6018 | }
|
6019 | else if (dbcsCode < 0x10000) {
|
6020 | newBuf[j++] = dbcsCode >> 8;
|
6021 | newBuf[j++] = dbcsCode & 0xFF;
|
6022 | }
|
6023 | else {
|
6024 | newBuf[j++] = dbcsCode >> 16;
|
6025 | newBuf[j++] = (dbcsCode >> 8) & 0xFF;
|
6026 | newBuf[j++] = dbcsCode & 0xFF;
|
6027 | }
|
6028 | }
|
6029 |
|
6030 | this.seqObj = seqObj;
|
6031 | this.leadSurrogate = leadSurrogate;
|
6032 | return newBuf.slice(0, j);
|
6033 | }
|
6034 |
|
6035 | DBCSEncoder.prototype.end = function() {
|
6036 | if (this.leadSurrogate === -1 && this.seqObj === undefined)
|
6037 | return;
|
6038 |
|
6039 | var newBuf = Buffer.alloc(10), j = 0;
|
6040 |
|
6041 | if (this.seqObj) {
|
6042 | var dbcsCode = this.seqObj[DEF_CHAR];
|
6043 | if (dbcsCode !== undefined) {
|
6044 | if (dbcsCode < 0x100) {
|
6045 | newBuf[j++] = dbcsCode;
|
6046 | }
|
6047 | else {
|
6048 | newBuf[j++] = dbcsCode >> 8;
|
6049 | newBuf[j++] = dbcsCode & 0xFF;
|
6050 | }
|
6051 | } else {
|
6052 |
|
6053 | }
|
6054 | this.seqObj = undefined;
|
6055 | }
|
6056 |
|
6057 | if (this.leadSurrogate !== -1) {
|
6058 |
|
6059 | newBuf[j++] = this.defaultCharSingleByte;
|
6060 | this.leadSurrogate = -1;
|
6061 | }
|
6062 |
|
6063 | return newBuf.slice(0, j);
|
6064 | }
|
6065 |
|
6066 |
|
6067 | DBCSEncoder.prototype.findIdx = findIdx;
|
6068 |
|
6069 |
|
6070 |
|
6071 |
|
6072 | function DBCSDecoder(options, codec) {
|
6073 |
|
6074 | this.nodeIdx = 0;
|
6075 | this.prevBuf = Buffer.alloc(0);
|
6076 |
|
6077 |
|
6078 | this.decodeTables = codec.decodeTables;
|
6079 | this.decodeTableSeq = codec.decodeTableSeq;
|
6080 | this.defaultCharUnicode = codec.defaultCharUnicode;
|
6081 | this.gb18030 = codec.gb18030;
|
6082 | }
|
6083 |
|
6084 | DBCSDecoder.prototype.write = function(buf) {
|
6085 | var newBuf = Buffer.alloc(buf.length*2),
|
6086 | nodeIdx = this.nodeIdx,
|
6087 | prevBuf = this.prevBuf, prevBufOffset = this.prevBuf.length,
|
6088 | seqStart = -this.prevBuf.length,
|
6089 | uCode;
|
6090 |
|
6091 | if (prevBufOffset > 0)
|
6092 | prevBuf = Buffer.concat([prevBuf, buf.slice(0, 10)]);
|
6093 |
|
6094 | for (var i = 0, j = 0; i < buf.length; i++) {
|
6095 | var curByte = (i >= 0) ? buf[i] : prevBuf[i + prevBufOffset];
|
6096 |
|
6097 |
|
6098 | var uCode = this.decodeTables[nodeIdx][curByte];
|
6099 |
|
6100 | if (uCode >= 0) {
|
6101 |
|
6102 | }
|
6103 | else if (uCode === UNASSIGNED) {
|
6104 |
|
6105 |
|
6106 | i = seqStart;
|
6107 | uCode = this.defaultCharUnicode.charCodeAt(0);
|
6108 | }
|
6109 | else if (uCode === GB18030_CODE) {
|
6110 | var curSeq = (seqStart >= 0) ? buf.slice(seqStart, i+1) : prevBuf.slice(seqStart + prevBufOffset, i+1 + prevBufOffset);
|
6111 | var ptr = (curSeq[0]-0x81)*12600 + (curSeq[1]-0x30)*1260 + (curSeq[2]-0x81)*10 + (curSeq[3]-0x30);
|
6112 | var idx = findIdx(this.gb18030.gbChars, ptr);
|
6113 | uCode = this.gb18030.uChars[idx] + ptr - this.gb18030.gbChars[idx];
|
6114 | }
|
6115 | else if (uCode <= NODE_START) {
|
6116 | nodeIdx = NODE_START - uCode;
|
6117 | continue;
|
6118 | }
|
6119 | else if (uCode <= SEQ_START) {
|
6120 | var seq = this.decodeTableSeq[SEQ_START - uCode];
|
6121 | for (var k = 0; k < seq.length - 1; k++) {
|
6122 | uCode = seq[k];
|
6123 | newBuf[j++] = uCode & 0xFF;
|
6124 | newBuf[j++] = uCode >> 8;
|
6125 | }
|
6126 | uCode = seq[seq.length-1];
|
6127 | }
|
6128 | else
|
6129 | throw new Error("iconv-lite internal error: invalid decoding table value " + uCode + " at " + nodeIdx + "/" + curByte);
|
6130 |
|
6131 |
|
6132 | if (uCode > 0xFFFF) {
|
6133 | uCode -= 0x10000;
|
6134 | var uCodeLead = 0xD800 + Math.floor(uCode / 0x400);
|
6135 | newBuf[j++] = uCodeLead & 0xFF;
|
6136 | newBuf[j++] = uCodeLead >> 8;
|
6137 |
|
6138 | uCode = 0xDC00 + uCode % 0x400;
|
6139 | }
|
6140 | newBuf[j++] = uCode & 0xFF;
|
6141 | newBuf[j++] = uCode >> 8;
|
6142 |
|
6143 |
|
6144 | nodeIdx = 0; seqStart = i+1;
|
6145 | }
|
6146 |
|
6147 | this.nodeIdx = nodeIdx;
|
6148 | this.prevBuf = (seqStart >= 0) ? buf.slice(seqStart) : prevBuf.slice(seqStart + prevBufOffset);
|
6149 | return newBuf.slice(0, j).toString('ucs2');
|
6150 | }
|
6151 |
|
6152 | DBCSDecoder.prototype.end = function() {
|
6153 | var ret = '';
|
6154 |
|
6155 |
|
6156 | while (this.prevBuf.length > 0) {
|
6157 |
|
6158 | ret += this.defaultCharUnicode;
|
6159 | var buf = this.prevBuf.slice(1);
|
6160 |
|
6161 |
|
6162 | this.prevBuf = Buffer.alloc(0);
|
6163 | this.nodeIdx = 0;
|
6164 | if (buf.length > 0)
|
6165 | ret += this.write(buf);
|
6166 | }
|
6167 |
|
6168 | this.nodeIdx = 0;
|
6169 | return ret;
|
6170 | }
|
6171 |
|
6172 |
|
6173 | function findIdx(table, val) {
|
6174 | if (table[0] > val)
|
6175 | return -1;
|
6176 |
|
6177 | var l = 0, r = table.length;
|
6178 | while (l < r-1) {
|
6179 | var mid = l + Math.floor((r-l+1)/2);
|
6180 | if (table[mid] <= val)
|
6181 | l = mid;
|
6182 | else
|
6183 | r = mid;
|
6184 | }
|
6185 | return l;
|
6186 | }
|
6187 |
|
6188 |
|
6189 |
|
6190 | }),
|
6191 | ,
|
6192 | ,
|
6193 | ,
|
6194 | ,
|
6195 | ,
|
6196 |
|
6197 | (function(__unusedmodule, exports, __webpack_require__) {
|
6198 |
|
6199 | "use strict";
|
6200 |
|
6201 | var __importDefault = (this && this.__importDefault) || function (mod) {
|
6202 | return (mod && mod.__esModule) ? mod : { "default": mod };
|
6203 | };
|
6204 | Object.defineProperty(exports, "__esModule", { value: true });
|
6205 | const path_1 = __importDefault(__webpack_require__(622));
|
6206 | const assert_1 = __importDefault(__webpack_require__(357));
|
6207 | const glob_1 = __importDefault(__webpack_require__(478));
|
6208 | const util_1 = __webpack_require__(669);
|
6209 | const fs_extra_1 = __webpack_require__(410);
|
6210 | const file_fs_ref_1 = __importDefault(__webpack_require__(194));
|
6211 | const vanillaGlob = util_1.promisify(glob_1.default);
|
6212 | async function glob(pattern, opts, mountpoint) {
|
6213 | let options;
|
6214 | if (typeof opts === 'string') {
|
6215 | options = { cwd: opts };
|
6216 | }
|
6217 | else {
|
6218 | options = opts;
|
6219 | }
|
6220 | if (!options.cwd) {
|
6221 | throw new Error('Second argument (basePath) must be specified for names of resulting files');
|
6222 | }
|
6223 | if (!path_1.default.isAbsolute(options.cwd)) {
|
6224 | throw new Error(`basePath/cwd must be an absolute path (${options.cwd})`);
|
6225 | }
|
6226 | const results = {};
|
6227 | options.symlinks = {};
|
6228 | options.statCache = {};
|
6229 | options.stat = true;
|
6230 | options.dot = true;
|
6231 | const files = await vanillaGlob(pattern, options);
|
6232 | for (const relativePath of files) {
|
6233 | const fsPath = path_1.default.join(options.cwd, relativePath).replace(/\\/g, '/');
|
6234 | let stat = options.statCache[fsPath];
|
6235 | assert_1.default(stat, `statCache does not contain value for ${relativePath} (resolved to ${fsPath})`);
|
6236 | if (stat.isFile()) {
|
6237 | const isSymlink = options.symlinks[fsPath];
|
6238 | if (isSymlink) {
|
6239 | stat = await fs_extra_1.lstat(fsPath);
|
6240 | }
|
6241 | let finalPath = relativePath;
|
6242 | if (mountpoint) {
|
6243 | finalPath = path_1.default.join(mountpoint, finalPath);
|
6244 | }
|
6245 | results[finalPath] = new file_fs_ref_1.default({ mode: stat.mode, fsPath });
|
6246 | }
|
6247 | }
|
6248 | return results;
|
6249 | }
|
6250 | exports.default = glob;
|
6251 |
|
6252 |
|
6253 | }),
|
6254 | ,
|
6255 |
|
6256 | (function(module) {
|
6257 |
|
6258 | "use strict";
|
6259 |
|
6260 |
|
6261 |
|
6262 |
|
6263 | function YAMLException(reason, mark) {
|
6264 |
|
6265 | Error.call(this);
|
6266 |
|
6267 | this.name = 'YAMLException';
|
6268 | this.reason = reason;
|
6269 | this.mark = mark;
|
6270 | this.message = (this.reason || '(unknown reason)') + (this.mark ? ' ' + this.mark.toString() : '');
|
6271 |
|
6272 |
|
6273 | if (Error.captureStackTrace) {
|
6274 |
|
6275 | Error.captureStackTrace(this, this.constructor);
|
6276 | } else {
|
6277 |
|
6278 | this.stack = (new Error()).stack || '';
|
6279 | }
|
6280 | }
|
6281 |
|
6282 |
|
6283 |
|
6284 | YAMLException.prototype = Object.create(Error.prototype);
|
6285 | YAMLException.prototype.constructor = YAMLException;
|
6286 |
|
6287 |
|
6288 | YAMLException.prototype.toString = function toString(compact) {
|
6289 | var result = this.name + ': ';
|
6290 |
|
6291 | result += this.reason || '(unknown reason)';
|
6292 |
|
6293 | if (!compact && this.mark) {
|
6294 | result += ' ' + this.mark.toString();
|
6295 | }
|
6296 |
|
6297 | return result;
|
6298 | };
|
6299 |
|
6300 |
|
6301 | module.exports = YAMLException;
|
6302 |
|
6303 |
|
6304 | }),
|
6305 | ,
|
6306 | ,
|
6307 | ,
|
6308 | ,
|
6309 | ,
|
6310 |
|
6311 | (function(module, __unusedexports, __webpack_require__) {
|
6312 |
|
6313 | "use strict";
|
6314 |
|
6315 |
|
6316 |
|
6317 |
|
6318 |
|
6319 |
|
6320 |
|
6321 | var Schema = __webpack_require__(334);
|
6322 |
|
6323 |
|
6324 | module.exports = new Schema({
|
6325 | explicit: [
|
6326 | __webpack_require__(476),
|
6327 | __webpack_require__(264),
|
6328 | __webpack_require__(501)
|
6329 | ]
|
6330 | });
|
6331 |
|
6332 |
|
6333 | }),
|
6334 | ,
|
6335 | ,
|
6336 | ,
|
6337 | ,
|
6338 | ,
|
6339 | ,
|
6340 |
|
6341 | (function(module) {
|
6342 |
|
6343 | "use strict";
|
6344 |
|
6345 | module.exports = stringify
|
6346 | module.exports.value = stringifyInline
|
6347 |
|
6348 | function stringify (obj) {
|
6349 | if (obj === null) throw typeError('null')
|
6350 | if (obj === void (0)) throw typeError('undefined')
|
6351 | if (typeof obj !== 'object') throw typeError(typeof obj)
|
6352 |
|
6353 | if (typeof obj.toJSON === 'function') obj = obj.toJSON()
|
6354 | if (obj == null) return null
|
6355 | const type = tomlType(obj)
|
6356 | if (type !== 'table') throw typeError(type)
|
6357 | return stringifyObject('', '', obj)
|
6358 | }
|
6359 |
|
6360 | function typeError (type) {
|
6361 | return new Error('Can only stringify objects, not ' + type)
|
6362 | }
|
6363 |
|
6364 | function arrayOneTypeError () {
|
6365 | return new Error("Array values can't have mixed types")
|
6366 | }
|
6367 |
|
6368 | function getInlineKeys (obj) {
|
6369 | return Object.keys(obj).filter(key => isInline(obj[key]))
|
6370 | }
|
6371 | function getComplexKeys (obj) {
|
6372 | return Object.keys(obj).filter(key => !isInline(obj[key]))
|
6373 | }
|
6374 |
|
6375 | function toJSON (obj) {
|
6376 | let nobj = Array.isArray(obj) ? [] : Object.prototype.hasOwnProperty.call(obj, '__proto__') ? {['__proto__']: undefined} : {}
|
6377 | for (let prop of Object.keys(obj)) {
|
6378 | if (obj[prop] && typeof obj[prop].toJSON === 'function' && !('toISOString' in obj[prop])) {
|
6379 | nobj[prop] = obj[prop].toJSON()
|
6380 | } else {
|
6381 | nobj[prop] = obj[prop]
|
6382 | }
|
6383 | }
|
6384 | return nobj
|
6385 | }
|
6386 |
|
6387 | function stringifyObject (prefix, indent, obj) {
|
6388 | obj = toJSON(obj)
|
6389 | var inlineKeys
|
6390 | var complexKeys
|
6391 | inlineKeys = getInlineKeys(obj)
|
6392 | complexKeys = getComplexKeys(obj)
|
6393 | var result = []
|
6394 | var inlineIndent = indent || ''
|
6395 | inlineKeys.forEach(key => {
|
6396 | var type = tomlType(obj[key])
|
6397 | if (type !== 'undefined' && type !== 'null') {
|
6398 | result.push(inlineIndent + stringifyKey(key) + ' = ' + stringifyAnyInline(obj[key], true))
|
6399 | }
|
6400 | })
|
6401 | if (result.length > 0) result.push('')
|
6402 | var complexIndent = prefix && inlineKeys.length > 0 ? indent + ' ' : ''
|
6403 | complexKeys.forEach(key => {
|
6404 | result.push(stringifyComplex(prefix, complexIndent, key, obj[key]))
|
6405 | })
|
6406 | return result.join('\n')
|
6407 | }
|
6408 |
|
6409 | function isInline (value) {
|
6410 | switch (tomlType(value)) {
|
6411 | case 'undefined':
|
6412 | case 'null':
|
6413 | case 'integer':
|
6414 | case 'nan':
|
6415 | case 'float':
|
6416 | case 'boolean':
|
6417 | case 'string':
|
6418 | case 'datetime':
|
6419 | return true
|
6420 | case 'array':
|
6421 | return value.length === 0 || tomlType(value[0]) !== 'table'
|
6422 | case 'table':
|
6423 | return Object.keys(value).length === 0
|
6424 |
|
6425 | default:
|
6426 | return false
|
6427 | }
|
6428 | }
|
6429 |
|
6430 | function tomlType (value) {
|
6431 | if (value === undefined) {
|
6432 | return 'undefined'
|
6433 | } else if (value === null) {
|
6434 | return 'null'
|
6435 |
|
6436 | } else if (typeof value === 'bigint' || (Number.isInteger(value) && !Object.is(value, -0))) {
|
6437 | return 'integer'
|
6438 | } else if (typeof value === 'number') {
|
6439 | return 'float'
|
6440 | } else if (typeof value === 'boolean') {
|
6441 | return 'boolean'
|
6442 | } else if (typeof value === 'string') {
|
6443 | return 'string'
|
6444 | } else if ('toISOString' in value) {
|
6445 | return isNaN(value) ? 'undefined' : 'datetime'
|
6446 | } else if (Array.isArray(value)) {
|
6447 | return 'array'
|
6448 | } else {
|
6449 | return 'table'
|
6450 | }
|
6451 | }
|
6452 |
|
6453 | function stringifyKey (key) {
|
6454 | var keyStr = String(key)
|
6455 | if (/^[-A-Za-z0-9_]+$/.test(keyStr)) {
|
6456 | return keyStr
|
6457 | } else {
|
6458 | return stringifyBasicString(keyStr)
|
6459 | }
|
6460 | }
|
6461 |
|
6462 | function stringifyBasicString (str) {
|
6463 | return '"' + escapeString(str).replace(/"/g, '\\"') + '"'
|
6464 | }
|
6465 |
|
6466 | function stringifyLiteralString (str) {
|
6467 | return "'" + str + "'"
|
6468 | }
|
6469 |
|
6470 | function numpad (num, str) {
|
6471 | while (str.length < num) str = '0' + str
|
6472 | return str
|
6473 | }
|
6474 |
|
6475 | function escapeString (str) {
|
6476 | return str.replace(/\\/g, '\\\\')
|
6477 | .replace(/[\b]/g, '\\b')
|
6478 | .replace(/\t/g, '\\t')
|
6479 | .replace(/\n/g, '\\n')
|
6480 | .replace(/\f/g, '\\f')
|
6481 | .replace(/\r/g, '\\r')
|
6482 |
|
6483 | .replace(/([\u0000-\u001f\u007f])/, c => '\\u' + numpad(4, c.codePointAt(0).toString(16)))
|
6484 |
|
6485 | }
|
6486 |
|
6487 | function stringifyMultilineString (str) {
|
6488 | let escaped = str.split(/\n/).map(str => {
|
6489 | return escapeString(str).replace(/"(?="")/g, '\\"')
|
6490 | }).join('\n')
|
6491 | if (escaped.slice(-1) === '"') escaped += '\\\n'
|
6492 | return '"""\n' + escaped + '"""'
|
6493 | }
|
6494 |
|
6495 | function stringifyAnyInline (value, multilineOk) {
|
6496 | let type = tomlType(value)
|
6497 | if (type === 'string') {
|
6498 | if (multilineOk && /\n/.test(value)) {
|
6499 | type = 'string-multiline'
|
6500 | } else if (!/[\b\t\n\f\r']/.test(value) && /"/.test(value)) {
|
6501 | type = 'string-literal'
|
6502 | }
|
6503 | }
|
6504 | return stringifyInline(value, type)
|
6505 | }
|
6506 |
|
6507 | function stringifyInline (value, type) {
|
6508 |
|
6509 | if (!type) type = tomlType(value)
|
6510 | switch (type) {
|
6511 | case 'string-multiline':
|
6512 | return stringifyMultilineString(value)
|
6513 | case 'string':
|
6514 | return stringifyBasicString(value)
|
6515 | case 'string-literal':
|
6516 | return stringifyLiteralString(value)
|
6517 | case 'integer':
|
6518 | return stringifyInteger(value)
|
6519 | case 'float':
|
6520 | return stringifyFloat(value)
|
6521 | case 'boolean':
|
6522 | return stringifyBoolean(value)
|
6523 | case 'datetime':
|
6524 | return stringifyDatetime(value)
|
6525 | case 'array':
|
6526 | return stringifyInlineArray(value.filter(_ => tomlType(_) !== 'null' && tomlType(_) !== 'undefined' && tomlType(_) !== 'nan'))
|
6527 | case 'table':
|
6528 | return stringifyInlineTable(value)
|
6529 |
|
6530 | default:
|
6531 | throw typeError(type)
|
6532 | }
|
6533 | }
|
6534 |
|
6535 | function stringifyInteger (value) {
|
6536 |
|
6537 | return String(value).replace(/\B(?=(\d{3})+(?!\d))/g, '_')
|
6538 | }
|
6539 |
|
6540 | function stringifyFloat (value) {
|
6541 | if (value === Infinity) {
|
6542 | return 'inf'
|
6543 | } else if (value === -Infinity) {
|
6544 | return '-inf'
|
6545 | } else if (Object.is(value, NaN)) {
|
6546 | return 'nan'
|
6547 | } else if (Object.is(value, -0)) {
|
6548 | return '-0.0'
|
6549 | }
|
6550 | var chunks = String(value).split('.')
|
6551 | var int = chunks[0]
|
6552 | var dec = chunks[1] || 0
|
6553 | return stringifyInteger(int) + '.' + dec
|
6554 | }
|
6555 |
|
6556 | function stringifyBoolean (value) {
|
6557 | return String(value)
|
6558 | }
|
6559 |
|
6560 | function stringifyDatetime (value) {
|
6561 | return value.toISOString()
|
6562 | }
|
6563 |
|
6564 | function isNumber (type) {
|
6565 | return type === 'float' || type === 'integer'
|
6566 | }
|
6567 | function arrayType (values) {
|
6568 | var contentType = tomlType(values[0])
|
6569 | if (values.every(_ => tomlType(_) === contentType)) return contentType
|
6570 |
|
6571 | if (values.every(_ => isNumber(tomlType(_)))) return 'float'
|
6572 | return 'mixed'
|
6573 | }
|
6574 | function validateArray (values) {
|
6575 | const type = arrayType(values)
|
6576 | if (type === 'mixed') {
|
6577 | throw arrayOneTypeError()
|
6578 | }
|
6579 | return type
|
6580 | }
|
6581 |
|
6582 | function stringifyInlineArray (values) {
|
6583 | values = toJSON(values)
|
6584 | const type = validateArray(values)
|
6585 | var result = '['
|
6586 | var stringified = values.map(_ => stringifyInline(_, type))
|
6587 | if (stringified.join(', ').length > 60 || /\n/.test(stringified)) {
|
6588 | result += '\n ' + stringified.join(',\n ') + '\n'
|
6589 | } else {
|
6590 | result += ' ' + stringified.join(', ') + (stringified.length > 0 ? ' ' : '')
|
6591 | }
|
6592 | return result + ']'
|
6593 | }
|
6594 |
|
6595 | function stringifyInlineTable (value) {
|
6596 | value = toJSON(value)
|
6597 | var result = []
|
6598 | Object.keys(value).forEach(key => {
|
6599 | result.push(stringifyKey(key) + ' = ' + stringifyAnyInline(value[key], false))
|
6600 | })
|
6601 | return '{ ' + result.join(', ') + (result.length > 0 ? ' ' : '') + '}'
|
6602 | }
|
6603 |
|
6604 | function stringifyComplex (prefix, indent, key, value) {
|
6605 | var valueType = tomlType(value)
|
6606 |
|
6607 | if (valueType === 'array') {
|
6608 | return stringifyArrayOfTables(prefix, indent, key, value)
|
6609 | } else if (valueType === 'table') {
|
6610 | return stringifyComplexTable(prefix, indent, key, value)
|
6611 | } else {
|
6612 | throw typeError(valueType)
|
6613 | }
|
6614 | }
|
6615 |
|
6616 | function stringifyArrayOfTables (prefix, indent, key, values) {
|
6617 | values = toJSON(values)
|
6618 | validateArray(values)
|
6619 | var firstValueType = tomlType(values[0])
|
6620 |
|
6621 | if (firstValueType !== 'table') throw typeError(firstValueType)
|
6622 | var fullKey = prefix + stringifyKey(key)
|
6623 | var result = ''
|
6624 | values.forEach(table => {
|
6625 | if (result.length > 0) result += '\n'
|
6626 | result += indent + '[[' + fullKey + ']]\n'
|
6627 | result += stringifyObject(fullKey + '.', indent, table)
|
6628 | })
|
6629 | return result
|
6630 | }
|
6631 |
|
6632 | function stringifyComplexTable (prefix, indent, key, value) {
|
6633 | var fullKey = prefix + stringifyKey(key)
|
6634 | var result = ''
|
6635 | if (getInlineKeys(value).length > 0) {
|
6636 | result += indent + '[' + fullKey + ']\n'
|
6637 | }
|
6638 | return result + stringifyObject(fullKey + '.', indent, value)
|
6639 | }
|
6640 |
|
6641 |
|
6642 | }),
|
6643 | ,
|
6644 | ,
|
6645 | ,
|
6646 | ,
|
6647 |
|
6648 | (function(module, __unusedexports, __webpack_require__) {
|
6649 |
|
6650 | "use strict";
|
6651 |
|
6652 |
|
6653 | var Type = __webpack_require__(653);
|
6654 |
|
6655 | module.exports = new Type('tag:yaml.org,2002:seq', {
|
6656 | kind: 'sequence',
|
6657 | construct: function (data) { return data !== null ? data : []; }
|
6658 | });
|
6659 |
|
6660 |
|
6661 | }),
|
6662 |
|
6663 | (function(module, __unusedexports, __webpack_require__) {
|
6664 |
|
6665 | module.exports = isexe
|
6666 | isexe.sync = sync
|
6667 |
|
6668 | var fs = __webpack_require__(747)
|
6669 |
|
6670 | function checkPathExt (path, options) {
|
6671 | var pathext = options.pathExt !== undefined ?
|
6672 | options.pathExt : process.env.PATHEXT
|
6673 |
|
6674 | if (!pathext) {
|
6675 | return true
|
6676 | }
|
6677 |
|
6678 | pathext = pathext.split(';')
|
6679 | if (pathext.indexOf('') !== -1) {
|
6680 | return true
|
6681 | }
|
6682 | for (var i = 0; i < pathext.length; i++) {
|
6683 | var p = pathext[i].toLowerCase()
|
6684 | if (p && path.substr(-p.length).toLowerCase() === p) {
|
6685 | return true
|
6686 | }
|
6687 | }
|
6688 | return false
|
6689 | }
|
6690 |
|
6691 | function checkStat (stat, path, options) {
|
6692 | if (!stat.isSymbolicLink() && !stat.isFile()) {
|
6693 | return false
|
6694 | }
|
6695 | return checkPathExt(path, options)
|
6696 | }
|
6697 |
|
6698 | function isexe (path, options, cb) {
|
6699 | fs.stat(path, function (er, stat) {
|
6700 | cb(er, er ? false : checkStat(stat, path, options))
|
6701 | })
|
6702 | }
|
6703 |
|
6704 | function sync (path, options) {
|
6705 | return checkStat(fs.statSync(path), path, options)
|
6706 | }
|
6707 |
|
6708 |
|
6709 | }),
|
6710 |
|
6711 | (function(module, __unusedexports, __webpack_require__) {
|
6712 |
|
6713 | var concatMap = __webpack_require__(228);
|
6714 | var balanced = __webpack_require__(599);
|
6715 |
|
6716 | module.exports = expandTop;
|
6717 |
|
6718 | var escSlash = '\0SLASH'+Math.random()+'\0';
|
6719 | var escOpen = '\0OPEN'+Math.random()+'\0';
|
6720 | var escClose = '\0CLOSE'+Math.random()+'\0';
|
6721 | var escComma = '\0COMMA'+Math.random()+'\0';
|
6722 | var escPeriod = '\0PERIOD'+Math.random()+'\0';
|
6723 |
|
6724 | function numeric(str) {
|
6725 | return parseInt(str, 10) == str
|
6726 | ? parseInt(str, 10)
|
6727 | : str.charCodeAt(0);
|
6728 | }
|
6729 |
|
6730 | function escapeBraces(str) {
|
6731 | return str.split('\\\\').join(escSlash)
|
6732 | .split('\\{').join(escOpen)
|
6733 | .split('\\}').join(escClose)
|
6734 | .split('\\,').join(escComma)
|
6735 | .split('\\.').join(escPeriod);
|
6736 | }
|
6737 |
|
6738 | function unescapeBraces(str) {
|
6739 | return str.split(escSlash).join('\\')
|
6740 | .split(escOpen).join('{')
|
6741 | .split(escClose).join('}')
|
6742 | .split(escComma).join(',')
|
6743 | .split(escPeriod).join('.');
|
6744 | }
|
6745 |
|
6746 |
|
6747 |
|
6748 |
|
6749 |
|
6750 | function parseCommaParts(str) {
|
6751 | if (!str)
|
6752 | return [''];
|
6753 |
|
6754 | var parts = [];
|
6755 | var m = balanced('{', '}', str);
|
6756 |
|
6757 | if (!m)
|
6758 | return str.split(',');
|
6759 |
|
6760 | var pre = m.pre;
|
6761 | var body = m.body;
|
6762 | var post = m.post;
|
6763 | var p = pre.split(',');
|
6764 |
|
6765 | p[p.length-1] += '{' + body + '}';
|
6766 | var postParts = parseCommaParts(post);
|
6767 | if (post.length) {
|
6768 | p[p.length-1] += postParts.shift();
|
6769 | p.push.apply(p, postParts);
|
6770 | }
|
6771 |
|
6772 | parts.push.apply(parts, p);
|
6773 |
|
6774 | return parts;
|
6775 | }
|
6776 |
|
6777 | function expandTop(str) {
|
6778 | if (!str)
|
6779 | return [];
|
6780 |
|
6781 |
|
6782 |
|
6783 |
|
6784 |
|
6785 |
|
6786 |
|
6787 | if (str.substr(0, 2) === '{}') {
|
6788 | str = '\\{\\}' + str.substr(2);
|
6789 | }
|
6790 |
|
6791 | return expand(escapeBraces(str), true).map(unescapeBraces);
|
6792 | }
|
6793 |
|
6794 | function identity(e) {
|
6795 | return e;
|
6796 | }
|
6797 |
|
6798 | function embrace(str) {
|
6799 | return '{' + str + '}';
|
6800 | }
|
6801 | function isPadded(el) {
|
6802 | return /^-?0\d/.test(el);
|
6803 | }
|
6804 |
|
6805 | function lte(i, y) {
|
6806 | return i <= y;
|
6807 | }
|
6808 | function gte(i, y) {
|
6809 | return i >= y;
|
6810 | }
|
6811 |
|
6812 | function expand(str, isTop) {
|
6813 | var expansions = [];
|
6814 |
|
6815 | var m = balanced('{', '}', str);
|
6816 | if (!m || /\$$/.test(m.pre)) return [str];
|
6817 |
|
6818 | var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
6819 | var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
6820 | var isSequence = isNumericSequence || isAlphaSequence;
|
6821 | var isOptions = m.body.indexOf(',') >= 0;
|
6822 | if (!isSequence && !isOptions) {
|
6823 |
|
6824 | if (m.post.match(/,.*\}/)) {
|
6825 | str = m.pre + '{' + m.body + escClose + m.post;
|
6826 | return expand(str);
|
6827 | }
|
6828 | return [str];
|
6829 | }
|
6830 |
|
6831 | var n;
|
6832 | if (isSequence) {
|
6833 | n = m.body.split(/\.\./);
|
6834 | } else {
|
6835 | n = parseCommaParts(m.body);
|
6836 | if (n.length === 1) {
|
6837 |
|
6838 | n = expand(n[0], false).map(embrace);
|
6839 | if (n.length === 1) {
|
6840 | var post = m.post.length
|
6841 | ? expand(m.post, false)
|
6842 | : [''];
|
6843 | return post.map(function(p) {
|
6844 | return m.pre + n[0] + p;
|
6845 | });
|
6846 | }
|
6847 | }
|
6848 | }
|
6849 |
|
6850 |
|
6851 |
|
6852 |
|
6853 |
|
6854 | var pre = m.pre;
|
6855 | var post = m.post.length
|
6856 | ? expand(m.post, false)
|
6857 | : [''];
|
6858 |
|
6859 | var N;
|
6860 |
|
6861 | if (isSequence) {
|
6862 | var x = numeric(n[0]);
|
6863 | var y = numeric(n[1]);
|
6864 | var width = Math.max(n[0].length, n[1].length)
|
6865 | var incr = n.length == 3
|
6866 | ? Math.abs(numeric(n[2]))
|
6867 | : 1;
|
6868 | var test = lte;
|
6869 | var reverse = y < x;
|
6870 | if (reverse) {
|
6871 | incr *= -1;
|
6872 | test = gte;
|
6873 | }
|
6874 | var pad = n.some(isPadded);
|
6875 |
|
6876 | N = [];
|
6877 |
|
6878 | for (var i = x; test(i, y); i += incr) {
|
6879 | var c;
|
6880 | if (isAlphaSequence) {
|
6881 | c = String.fromCharCode(i);
|
6882 | if (c === '\\')
|
6883 | c = '';
|
6884 | } else {
|
6885 | c = String(i);
|
6886 | if (pad) {
|
6887 | var need = width - c.length;
|
6888 | if (need > 0) {
|
6889 | var z = new Array(need + 1).join('0');
|
6890 | if (i < 0)
|
6891 | c = '-' + z + c.slice(1);
|
6892 | else
|
6893 | c = z + c;
|
6894 | }
|
6895 | }
|
6896 | }
|
6897 | N.push(c);
|
6898 | }
|
6899 | } else {
|
6900 | N = concatMap(n, function(el) { return expand(el, false) });
|
6901 | }
|
6902 |
|
6903 | for (var j = 0; j < N.length; j++) {
|
6904 | for (var k = 0; k < post.length; k++) {
|
6905 | var expansion = pre + N[j] + post[k];
|
6906 | if (!isTop || isSequence || expansion)
|
6907 | expansions.push(expansion);
|
6908 | }
|
6909 | }
|
6910 |
|
6911 | return expansions;
|
6912 | }
|
6913 |
|
6914 |
|
6915 |
|
6916 | }),
|
6917 | ,
|
6918 | ,
|
6919 | ,
|
6920 | ,
|
6921 | ,
|
6922 |
|
6923 | (function(module) {
|
6924 |
|
6925 | "use strict";
|
6926 |
|
6927 |
|
6928 | module.exports = ({onlyFirst = false} = {}) => {
|
6929 | const pattern = [
|
6930 | '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
|
6931 | '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
|
6932 | ].join('|');
|
6933 |
|
6934 | return new RegExp(pattern, onlyFirst ? undefined : 'g');
|
6935 | };
|
6936 |
|
6937 |
|
6938 | }),
|
6939 |
|
6940 | (function(module, __unusedexports, __webpack_require__) {
|
6941 |
|
6942 | "use strict";
|
6943 |
|
6944 |
|
6945 | var Type = __webpack_require__(653);
|
6946 |
|
6947 | function resolveYamlMerge(data) {
|
6948 | return data === '<<' || data === null;
|
6949 | }
|
6950 |
|
6951 | module.exports = new Type('tag:yaml.org,2002:merge', {
|
6952 | kind: 'scalar',
|
6953 | resolve: resolveYamlMerge
|
6954 | });
|
6955 |
|
6956 |
|
6957 | }),
|
6958 |
|
6959 | (function(module, __unusedexports, __webpack_require__) {
|
6960 |
|
6961 | "use strict";
|
6962 |
|
6963 |
|
6964 |
|
6965 |
|
6966 |
|
6967 |
|
6968 |
|
6969 |
|
6970 |
|
6971 |
|
6972 | var Schema = __webpack_require__(334);
|
6973 |
|
6974 |
|
6975 | module.exports = new Schema({
|
6976 | include: [
|
6977 | __webpack_require__(483)
|
6978 | ]
|
6979 | });
|
6980 |
|
6981 |
|
6982 | }),
|
6983 | ,
|
6984 | ,
|
6985 | ,
|
6986 | ,
|
6987 | ,
|
6988 |
|
6989 | (function(module) {
|
6990 |
|
6991 | module.exports = [["8740","䏰䰲䘃䖦䕸𧉧䵷䖳𧲱䳢𧳅㮕䜶䝄䱇䱀𤊿𣘗𧍒𦺋𧃒䱗𪍑䝏䗚䲅𧱬䴇䪤䚡𦬣爥𥩔𡩣𣸆𣽡晍囻"],["8767","綕夝𨮹㷴霴𧯯寛𡵞媤㘥𩺰嫑宷峼杮薓𩥅瑡璝㡵𡵓𣚞𦀡㻬"],["87a1","𥣞㫵竼龗𤅡𨤍𣇪𠪊𣉞䌊蒄龖鐯䤰蘓墖靊鈘秐稲晠権袝瑌篅枂稬剏遆㓦珄𥶹瓆鿇垳䤯呌䄱𣚎堘穲𧭥讏䚮𦺈䆁𥶙箮𢒼鿈𢓁𢓉𢓌鿉蔄𣖻䂴鿊䓡𪷿拁灮鿋"],["8840","㇀",4,"𠄌㇅𠃑𠃍㇆㇇𠃋𡿨㇈𠃊㇉㇊㇋㇌𠄎㇍㇎ĀÁǍÀĒÉĚÈŌÓǑÒÊ̄ẾÊ̌ỀÊāáǎàɑēéěèīíǐìōóǒòūúǔùǖǘǚ"],["88a1","ǜüê̄ếê̌ềêɡ⏚⏛"],["8940","𪎩𡅅"],["8943","攊"],["8946","丽滝鵎釟"],["894c","𧜵撑会伨侨兖兴农凤务动医华发变团声处备夲头学实実岚庆总斉柾栄桥济炼电纤纬纺织经统缆缷艺苏药视设询车轧轮"],["89a1","琑糼緍楆竉刧"],["89ab","醌碸酞肼"],["89b0","贋胶𠧧"],["89b5","肟黇䳍鷉鸌䰾𩷶𧀎鸊𪄳㗁"],["89c1","溚舾甙"],["89c5","䤑马骏龙禇𨑬𡷊𠗐𢫦两亁亀亇亿仫伷㑌侽㹈倃傈㑽㒓㒥円夅凛凼刅争剹劐匧㗇厩㕑厰㕓参吣㕭㕲㚁咓咣咴咹哐哯唘唣唨㖘唿㖥㖿嗗㗅"],["8a40","𧶄唥"],["8a43","𠱂𠴕𥄫喐𢳆㧬𠍁蹆𤶸𩓥䁓𨂾睺𢰸㨴䟕𨅝𦧲𤷪擝𠵼𠾴𠳕𡃴撍蹾𠺖𠰋𠽤𢲩𨉖𤓓"],["8a64","𠵆𩩍𨃩䟴𤺧𢳂骲㩧𩗴㿭㔆𥋇𩟔𧣈𢵄鵮頕"],["8a76","䏙𦂥撴哣𢵌𢯊𡁷㧻𡁯"],["8aa1","𦛚𦜖𧦠擪𥁒𠱃蹨𢆡𨭌𠜱"],["8aac","䠋𠆩㿺塳𢶍"],["8ab2","𤗈𠓼𦂗𠽌𠶖啹䂻䎺"],["8abb","䪴𢩦𡂝膪飵𠶜捹㧾𢝵跀嚡摼㹃"],["8ac9","𪘁𠸉𢫏𢳉"],["8ace","𡃈𣧂㦒㨆𨊛㕸𥹉𢃇噒𠼱𢲲𩜠㒼氽𤸻"],["8adf","𧕴𢺋𢈈𪙛𨳍𠹺𠰴𦠜羓𡃏𢠃𢤹㗻𥇣𠺌𠾍𠺪㾓𠼰𠵇𡅏𠹌"],["8af6","𠺫𠮩𠵈𡃀𡄽㿹𢚖搲𠾭"],["8b40","𣏴𧘹𢯎𠵾𠵿𢱑𢱕㨘𠺘𡃇𠼮𪘲𦭐𨳒𨶙𨳊閪哌苄喹"],["8b55","𩻃鰦骶𧝞𢷮煀腭胬尜𦕲脴㞗卟𨂽醶𠻺𠸏𠹷𠻻㗝𤷫㘉𠳖嚯𢞵𡃉𠸐𠹸𡁸𡅈𨈇𡑕𠹹𤹐𢶤婔𡀝𡀞𡃵𡃶垜𠸑"],["8ba1","𧚔𨋍𠾵𠹻𥅾㜃𠾶𡆀𥋘𪊽𤧚𡠺𤅷𨉼墙剨㘚𥜽箲孨䠀䬬鼧䧧鰟鮍𥭴𣄽嗻㗲嚉丨夂𡯁屮靑𠂆乛亻㔾尣彑忄㣺扌攵歺氵氺灬爫丬犭𤣩罒礻糹罓𦉪㓁"],["8bde","𦍋耂肀𦘒𦥑卝衤见𧢲讠贝钅镸长门𨸏韦页风飞饣𩠐鱼鸟黄歯龜丷𠂇阝户钢"],["8c40","倻淾𩱳龦㷉袏𤅎灷峵䬠𥇍㕙𥴰愢𨨲辧釶熑朙玺𣊁𪄇㲋𡦀䬐磤琂冮𨜏䀉橣𪊺䈣蘏𠩯稪𩥇𨫪靕灍匤𢁾鏴盙𨧣龧矝亣俰傼丯众龨吴綋墒壐𡶶庒庙忂𢜒斋"],["8ca1","𣏹椙橃𣱣泿"],["8ca7","爀𤔅玌㻛𤨓嬕璹讃𥲤𥚕窓篬糃繬苸薗龩袐龪躹龫迏蕟駠鈡龬𨶹𡐿䁱䊢娚"],["8cc9","顨杫䉶圽"],["8cce","藖𤥻芿𧄍䲁𦵴嵻𦬕𦾾龭龮宖龯曧繛湗秊㶈䓃𣉖𢞖䎚䔶"],["8ce6","峕𣬚諹屸㴒𣕑嵸龲煗䕘𤃬𡸣䱷㥸㑊𠆤𦱁諌侴𠈹妿腬顖𩣺弻"],["8d40","𠮟"],["8d42","𢇁𨥭䄂䚻𩁹㼇龳𪆵䃸㟖䛷𦱆䅼𨚲𧏿䕭㣔𥒚䕡䔛䶉䱻䵶䗪㿈𤬏㙡䓞䒽䇭崾嵈嵖㷼㠏嶤嶹㠠㠸幂庽弥徃㤈㤔㤿㥍惗愽峥㦉憷憹懏㦸戬抐拥挘㧸嚱"],["8da1","㨃揢揻搇摚㩋擀崕嘡龟㪗斆㪽旿晓㫲暒㬢朖㭂枤栀㭘桊梄㭲㭱㭻椉楃牜楤榟榅㮼槖㯝橥橴橱檂㯬檙㯲檫檵櫔櫶殁毁毪汵沪㳋洂洆洦涁㳯涤涱渕渘温溆𨧀溻滢滚齿滨滩漤漴㵆𣽁澁澾㵪㵵熷岙㶊瀬㶑灐灔灯灿炉𠌥䏁㗱𠻘"],["8e40","𣻗垾𦻓焾𥟠㙎榢𨯩孴穉𥣡𩓙穥穽𥦬窻窰竂竃燑𦒍䇊竚竝竪䇯咲𥰁笋筕笩𥌎𥳾箢筯莜𥮴𦱿篐萡箒箸𥴠㶭𥱥蒒篺簆簵𥳁籄粃𤢂粦晽𤕸糉糇糦籴糳糵糎"],["8ea1","繧䔝𦹄絝𦻖璍綉綫焵綳緒𤁗𦀩緤㴓緵𡟹緥𨍭縝𦄡𦅚繮纒䌫鑬縧罀罁罇礶𦋐駡羗𦍑羣𡙡𠁨䕜𣝦䔃𨌺翺𦒉者耈耝耨耯𪂇𦳃耻耼聡𢜔䦉𦘦𣷣𦛨朥肧𨩈脇脚墰𢛶汿𦒘𤾸擧𡒊舘𡡞橓𤩥𤪕䑺舩𠬍𦩒𣵾俹𡓽蓢荢𦬊𤦧𣔰𡝳𣷸芪椛芳䇛"],["8f40","蕋苐茚𠸖𡞴㛁𣅽𣕚艻苢茘𣺋𦶣𦬅𦮗𣗎㶿茝嗬莅䔋𦶥莬菁菓㑾𦻔橗蕚㒖𦹂𢻯葘𥯤葱㷓䓤檧葊𣲵祘蒨𦮖𦹷𦹃蓞萏莑䒠蒓蓤𥲑䉀𥳀䕃蔴嫲𦺙䔧蕳䔖枿蘖"],["8fa1","𨘥𨘻藁𧂈蘂𡖂𧃍䕫䕪蘨㙈𡢢号𧎚虾蝱𪃸蟮𢰧螱蟚蠏噡虬桖䘏衅衆𧗠𣶹𧗤衞袜䙛袴袵揁装睷𧜏覇覊覦覩覧覼𨨥觧𧤤𧪽誜瞓釾誐𧩙竩𧬺𣾏䜓𧬸煼謌謟𥐰𥕥謿譌譍誩𤩺讐讛誯𡛟䘕衏貛𧵔𧶏貫㜥𧵓賖𧶘𧶽贒贃𡤐賛灜贑𤳉㻐起"],["9040","趩𨀂𡀔𤦊㭼𨆼𧄌竧躭躶軃鋔輙輭𨍥𨐒辥錃𪊟𠩐辳䤪𨧞𨔽𣶻廸𣉢迹𪀔𨚼𨔁𢌥㦀𦻗逷𨔼𧪾遡𨕬𨘋邨𨜓郄𨛦邮都酧㫰醩釄粬𨤳𡺉鈎沟鉁鉢𥖹銹𨫆𣲛𨬌𥗛"],["90a1","𠴱錬鍫𨫡𨯫炏嫃𨫢𨫥䥥鉄𨯬𨰹𨯿鍳鑛躼閅閦鐦閠濶䊹𢙺𨛘𡉼𣸮䧟氜陻隖䅬隣𦻕懚隶磵𨫠隽双䦡𦲸𠉴𦐐𩂯𩃥𤫑𡤕𣌊霱虂霶䨏䔽䖅𤫩灵孁霛靜𩇕靗孊𩇫靟鐥僐𣂷𣂼鞉鞟鞱鞾韀韒韠𥑬韮琜𩐳響韵𩐝𧥺䫑頴頳顋顦㬎𧅵㵑𠘰𤅜"],["9140","𥜆飊颷飈飇䫿𦴧𡛓喰飡飦飬鍸餹𤨩䭲𩡗𩤅駵騌騻騐驘𥜥㛄𩂱𩯕髠髢𩬅髴䰎鬔鬭𨘀倴鬴𦦨㣃𣁽魐魀𩴾婅𡡣鮎𤉋鰂鯿鰌𩹨鷔𩾷𪆒𪆫𪃡𪄣𪇟鵾鶃𪄴鸎梈"],["91a1","鷄𢅛𪆓𪈠𡤻𪈳鴹𪂹𪊴麐麕麞麢䴴麪麯𤍤黁㭠㧥㴝伲㞾𨰫鼂鼈䮖鐤𦶢鼗鼖鼹嚟嚊齅馸𩂋韲葿齢齩竜龎爖䮾𤥵𤦻煷𤧸𤍈𤩑玞𨯚𡣺禟𨥾𨸶鍩鏳𨩄鋬鎁鏋𨥬𤒹爗㻫睲穃烐𤑳𤏸煾𡟯炣𡢾𣖙㻇𡢅𥐯𡟸㜢𡛻𡠹㛡𡝴𡣑𥽋㜣𡛀坛𤨥𡏾𡊨"],["9240","𡏆𡒶蔃𣚦蔃葕𤦔𧅥𣸱𥕜𣻻𧁒䓴𣛮𩦝𦼦柹㜳㰕㷧塬𡤢栐䁗𣜿𤃡𤂋𤄏𦰡哋嚞𦚱嚒𠿟𠮨𠸍鏆𨬓鎜仸儫㠙𤐶亼𠑥𠍿佋侊𥙑婨𠆫𠏋㦙𠌊𠐔㐵伩𠋀𨺳𠉵諚𠈌亘"],["92a1","働儍侢伃𤨎𣺊佂倮偬傁俌俥偘僼兙兛兝兞湶𣖕𣸹𣺿浲𡢄𣺉冨凃𠗠䓝𠒣𠒒𠒑赺𨪜𠜎剙劤𠡳勡鍮䙺熌𤎌𠰠𤦬𡃤槑𠸝瑹㻞璙琔瑖玘䮎𤪼𤂍叐㖄爏𤃉喴𠍅响𠯆圝鉝雴鍦埝垍坿㘾壋媙𨩆𡛺𡝯𡜐娬妸銏婾嫏娒𥥆𡧳𡡡𤊕㛵洅瑃娡𥺃"],["9340","媁𨯗𠐓鏠璌𡌃焅䥲鐈𨧻鎽㞠尞岞幞幈𡦖𡥼𣫮廍孏𡤃𡤄㜁𡢠㛝𡛾㛓脪𨩇𡶺𣑲𨦨弌弎𡤧𡞫婫𡜻孄蘔𧗽衠恾𢡠𢘫忛㺸𢖯𢖾𩂈𦽳懀𠀾𠁆𢘛憙憘恵𢲛𢴇𤛔𩅍"],["93a1","摱𤙥𢭪㨩𢬢𣑐𩣪𢹸挷𪑛撶挱揑𤧣𢵧护𢲡搻敫楲㯴𣂎𣊭𤦉𣊫唍𣋠𡣙𩐿曎𣊉𣆳㫠䆐𥖄𨬢𥖏𡛼𥕛𥐥磮𣄃𡠪𣈴㑤𣈏𣆂𤋉暎𦴤晫䮓昰𧡰𡷫晣𣋒𣋡昞𥡲㣑𣠺𣞼㮙𣞢𣏾瓐㮖枏𤘪梶栞㯄檾㡣𣟕𤒇樳橒櫉欅𡤒攑梘橌㯗橺歗𣿀𣲚鎠鋲𨯪𨫋"],["9440","銉𨀞𨧜鑧涥漋𤧬浧𣽿㶏渄𤀼娽渊塇洤硂焻𤌚𤉶烱牐犇犔𤞏𤜥兹𤪤𠗫瑺𣻸𣙟𤩊𤤗𥿡㼆㺱𤫟𨰣𣼵悧㻳瓌琼鎇琷䒟𦷪䕑疃㽣𤳙𤴆㽘畕癳𪗆㬙瑨𨫌𤦫𤦎㫻"],["94a1","㷍𤩎㻿𤧅𤣳釺圲鍂𨫣𡡤僟𥈡𥇧睸𣈲眎眏睻𤚗𣞁㩞𤣰琸璛㺿𤪺𤫇䃈𤪖𦆮錇𥖁砞碍碈磒珐祙𧝁𥛣䄎禛蒖禥樭𣻺稺秴䅮𡛦䄲鈵秱𠵌𤦌𠊙𣶺𡝮㖗啫㕰㚪𠇔𠰍竢婙𢛵𥪯𥪜娍𠉛磰娪𥯆竾䇹籝籭䈑𥮳𥺼𥺦糍𤧹𡞰粎籼粮檲緜縇緓罎𦉡"],["9540","𦅜𧭈綗𥺂䉪𦭵𠤖柖𠁎𣗏埄𦐒𦏸𤥢翝笧𠠬𥫩𥵃笌𥸎駦虅驣樜𣐿㧢𤧷𦖭騟𦖠蒀𧄧𦳑䓪脷䐂胆脉腂𦞴飃𦩂艢艥𦩑葓𦶧蘐𧈛媆䅿𡡀嬫𡢡嫤𡣘蚠蜨𣶏蠭𧐢娂"],["95a1","衮佅袇袿裦襥襍𥚃襔𧞅𧞄𨯵𨯙𨮜𨧹㺭蒣䛵䛏㟲訽訜𩑈彍鈫𤊄旔焩烄𡡅鵭貟賩𧷜妚矃姰䍮㛔踪躧𤰉輰轊䋴汘澻𢌡䢛潹溋𡟚鯩㚵𤤯邻邗啱䤆醻鐄𨩋䁢𨫼鐧𨰝𨰻蓥訫閙閧閗閖𨴴瑅㻂𤣿𤩂𤏪㻧𣈥随𨻧𨹦𨹥㻌𤧭𤩸𣿮琒瑫㻼靁𩂰"],["9640","桇䨝𩂓𥟟靝鍨𨦉𨰦𨬯𦎾銺嬑譩䤼珹𤈛鞛靱餸𠼦巁𨯅𤪲頟𩓚鋶𩗗釥䓀𨭐𤩧𨭤飜𨩅㼀鈪䤥萔餻饍𧬆㷽馛䭯馪驜𨭥𥣈檏騡嫾騯𩣱䮐𩥈馼䮽䮗鍽塲𡌂堢𤦸"],["96a1","𡓨硄𢜟𣶸棅㵽鑘㤧慐𢞁𢥫愇鱏鱓鱻鰵鰐魿鯏𩸭鮟𪇵𪃾鴡䲮𤄄鸘䲰鴌𪆴𪃭𪃳𩤯鶥蒽𦸒𦿟𦮂藼䔳𦶤𦺄𦷰萠藮𦸀𣟗𦁤秢𣖜𣙀䤭𤧞㵢鏛銾鍈𠊿碹鉷鑍俤㑀遤𥕝砽硔碶硋𡝗𣇉𤥁㚚佲濚濙瀞瀞吔𤆵垻壳垊鴖埗焴㒯𤆬燫𦱀𤾗嬨𡞵𨩉"],["9740","愌嫎娋䊼𤒈㜬䭻𨧼鎻鎸𡣖𠼝葲𦳀𡐓𤋺𢰦𤏁妔𣶷𦝁綨𦅛𦂤𤦹𤦋𨧺鋥珢㻩璴𨭣𡢟㻡𤪳櫘珳珻㻖𤨾𤪔𡟙𤩦𠎧𡐤𤧥瑈𤤖炥𤥶銄珦鍟𠓾錱𨫎𨨖鎆𨯧𥗕䤵𨪂煫"],["97a1","𤥃𠳿嚤𠘚𠯫𠲸唂秄𡟺緾𡛂𤩐𡡒䔮鐁㜊𨫀𤦭妰𡢿𡢃𧒄媡㛢𣵛㚰鉟婹𨪁𡡢鍴㳍𠪴䪖㦊僴㵩㵌𡎜煵䋻𨈘渏𩃤䓫浗𧹏灧沯㳖𣿭𣸭渂漌㵯𠏵畑㚼㓈䚀㻚䡱姄鉮䤾轁𨰜𦯀堒埈㛖𡑒烾𤍢𤩱𢿣𡊰𢎽梹楧𡎘𣓥𧯴𣛟𨪃𣟖𣏺𤲟樚𣚭𦲷萾䓟䓎"],["9840","𦴦𦵑𦲂𦿞漗𧄉茽𡜺菭𦲀𧁓𡟛妉媂𡞳婡婱𡤅𤇼㜭姯𡜼㛇熎鎐暚𤊥婮娫𤊓樫𣻹𧜶𤑛𤋊焝𤉙𨧡侰𦴨峂𤓎𧹍𤎽樌𤉖𡌄炦焳𤏩㶥泟勇𤩏繥姫崯㷳彜𤩝𡟟綤萦"],["98a1","咅𣫺𣌀𠈔坾𠣕𠘙㿥𡾞𪊶瀃𩅛嵰玏糓𨩙𩐠俈翧狍猐𧫴猸猹𥛶獁獈㺩𧬘遬燵𤣲珡臶㻊県㻑沢国琙琞琟㻢㻰㻴㻺瓓㼎㽓畂畭畲疍㽼痈痜㿀癍㿗癴㿜発𤽜熈嘣覀塩䀝睃䀹条䁅㗛瞘䁪䁯属瞾矋売砘点砜䂨砹硇硑硦葈𥔵礳栃礲䄃"],["9940","䄉禑禙辻稆込䅧窑䆲窼艹䇄竏竛䇏両筢筬筻簒簛䉠䉺类粜䊌粸䊔糭输烀𠳏総緔緐緽羮羴犟䎗耠耥笹耮耱联㷌垴炠肷胩䏭脌猪脎脒畠脔䐁㬹腖腙腚"],["99a1","䐓堺腼膄䐥膓䐭膥埯臁臤艔䒏芦艶苊苘苿䒰荗险榊萅烵葤惣蒈䔄蒾蓡蓸蔐蔸蕒䔻蕯蕰藠䕷虲蚒蚲蛯际螋䘆䘗袮裿褤襇覑𧥧訩訸誔誴豑賔賲贜䞘塟跃䟭仮踺嗘坔蹱嗵躰䠷軎転軤軭軲辷迁迊迌逳駄䢭飠鈓䤞鈨鉘鉫銱銮銿"],["9a40","鋣鋫鋳鋴鋽鍃鎄鎭䥅䥑麿鐗匁鐝鐭鐾䥪鑔鑹锭関䦧间阳䧥枠䨤靀䨵鞲韂噔䫤惨颹䬙飱塄餎餙冴餜餷饂饝饢䭰駅䮝騼鬏窃魩鮁鯝鯱鯴䱭鰠㝯𡯂鵉鰺"],["9aa1","黾噐鶓鶽鷀鷼银辶鹻麬麱麽黆铜黢黱黸竈齄𠂔𠊷𠎠椚铃妬𠓗塀铁㞹𠗕𠘕𠙶𡚺块煳𠫂𠫍𠮿呪吆𠯋咞𠯻𠰻𠱓𠱥𠱼惧𠲍噺𠲵𠳝𠳭𠵯𠶲𠷈楕鰯螥𠸄𠸎𠻗𠾐𠼭𠹳尠𠾼帋𡁜𡁏𡁶朞𡁻𡂈𡂖㙇𡂿𡃓𡄯𡄻卤蒭𡋣𡍵𡌶讁𡕷𡘙𡟃𡟇乸炻𡠭𡥪"],["9b40","𡨭𡩅𡰪𡱰𡲬𡻈拃𡻕𡼕熘桕𢁅槩㛈𢉼𢏗𢏺𢜪𢡱𢥏苽𢥧𢦓𢫕覥𢫨辠𢬎鞸𢬿顇骽𢱌"],["9b62","𢲈𢲷𥯨𢴈𢴒𢶷𢶕𢹂𢽴𢿌𣀳𣁦𣌟𣏞徱晈暿𧩹𣕧𣗳爁𤦺矗𣘚𣜖纇𠍆墵朎"],["9ba1","椘𣪧𧙗𥿢𣸑𣺹𧗾𢂚䣐䪸𤄙𨪚𤋮𤌍𤀻𤌴𤎖𤩅𠗊凒𠘑妟𡺨㮾𣳿𤐄𤓖垈𤙴㦛𤜯𨗨𩧉㝢𢇃譞𨭎駖𤠒𤣻𤨕爉𤫀𠱸奥𤺥𤾆𠝹軚𥀬劏圿煱𥊙𥐙𣽊𤪧喼𥑆𥑮𦭒釔㑳𥔿𧘲𥕞䜘𥕢𥕦𥟇𤤿𥡝偦㓻𣏌惞𥤃䝼𨥈𥪮𥮉𥰆𡶐垡煑澶𦄂𧰒遖𦆲𤾚譢𦐂𦑊"],["9c40","嵛𦯷輶𦒄𡤜諪𤧶𦒈𣿯𦔒䯀𦖿𦚵𢜛鑥𥟡憕娧晉侻嚹𤔡𦛼乪𤤴陖涏𦲽㘘襷𦞙𦡮𦐑𦡞營𦣇筂𩃀𠨑𦤦鄄𦤹穅鷰𦧺騦𦨭㙟𦑩𠀡禃𦨴𦭛崬𣔙菏𦮝䛐𦲤画补𦶮墶"],["9ca1","㜜𢖍𧁋𧇍㱔𧊀𧊅銁𢅺𧊋錰𧋦𤧐氹钟𧑐𠻸蠧裵𢤦𨑳𡞱溸𤨪𡠠㦤㚹尐秣䔿暶𩲭𩢤襃𧟌𧡘囖䃟𡘊㦡𣜯𨃨𡏅熭荦𧧝𩆨婧䲷𧂯𨦫𧧽𧨊𧬋𧵦𤅺筃祾𨀉澵𪋟樃𨌘厢𦸇鎿栶靝𨅯𨀣𦦵𡏭𣈯𨁈嶅𨰰𨂃圕頣𨥉嶫𤦈斾槕叒𤪥𣾁㰑朶𨂐𨃴𨄮𡾡𨅏"],["9d40","𨆉𨆯𨈚𨌆𨌯𨎊㗊𨑨𨚪䣺揦𨥖砈鉕𨦸䏲𨧧䏟𨧨𨭆𨯔姸𨰉輋𨿅𩃬筑𩄐𩄼㷷𩅞𤫊运犏嚋𩓧𩗩𩖰𩖸𩜲𩣑𩥉𩥪𩧃𩨨𩬎𩵚𩶛纟𩻸𩼣䲤镇𪊓熢𪋿䶑递𪗋䶜𠲜达嗁"],["9da1","辺𢒰边𤪓䔉繿潖檱仪㓤𨬬𧢝㜺躀𡟵𨀤𨭬𨮙𧨾𦚯㷫𧙕𣲷𥘵𥥖亚𥺁𦉘嚿𠹭踎孭𣺈𤲞揞拐𡟶𡡻攰嘭𥱊吚𥌑㷆𩶘䱽嘢嘞罉𥻘奵𣵀蝰东𠿪𠵉𣚺脗鵞贘瘻鱅癎瞹鍅吲腈苷嘥脲萘肽嗪祢噃吖𠺝㗎嘅嗱曱𨋢㘭甴嗰喺咗啲𠱁𠲖廐𥅈𠹶𢱢"],["9e40","𠺢麫絚嗞𡁵抝靭咔賍燶酶揼掹揾啩𢭃鱲𢺳冚㓟𠶧冧呍唞唓癦踭𦢊疱肶蠄螆裇膶萜𡃁䓬猄𤜆宐茋𦢓噻𢛴𧴯𤆣𧵳𦻐𧊶酰𡇙鈈𣳼𪚩𠺬𠻹牦𡲢䝎𤿂𧿹𠿫䃺"],["9ea1","鱝攟𢶠䣳𤟠𩵼𠿬𠸊恢𧖣𠿭"],["9ead","𦁈𡆇熣纎鵐业丄㕷嬍沲卧㚬㧜卽㚥𤘘墚𤭮舭呋垪𥪕𠥹"],["9ec5","㩒𢑥獴𩺬䴉鯭𣳾𩼰䱛𤾩𩖞𩿞葜𣶶𧊲𦞳𣜠挮紥𣻷𣸬㨪逈勌㹴㙺䗩𠒎癀嫰𠺶硺𧼮墧䂿噼鮋嵴癔𪐴麅䳡痹㟻愙𣃚𤏲"],["9ef5","噝𡊩垧𤥣𩸆刴𧂮㖭汊鵼"],["9f40","籖鬹埞𡝬屓擓𩓐𦌵𧅤蚭𠴨𦴢𤫢𠵱"],["9f4f","凾𡼏嶎霃𡷑麁遌笟鬂峑箣扨挵髿篏鬪籾鬮籂粆鰕篼鬉鼗鰛𤤾齚啳寃俽麘俲剠㸆勑坧偖妷帒韈鶫轜呩鞴饀鞺匬愰"],["9fa1","椬叚鰊鴂䰻陁榀傦畆𡝭駚剳"],["9fae","酙隁酜"],["9fb2","酑𨺗捿𦴣櫊嘑醎畺抅𠏼獏籰𥰡𣳽"],["9fc1","𤤙盖鮝个𠳔莾衂"],["9fc9","届槀僭坺刟巵从氱𠇲伹咜哚劚趂㗾弌㗳"],["9fdb","歒酼龥鮗頮颴骺麨麄煺笔"],["9fe7","毺蠘罸"],["9feb","嘠𪙊蹷齓"],["9ff0","跔蹏鸜踁抂𨍽踨蹵竓𤩷稾磘泪詧瘇"],["a040","𨩚鼦泎蟖痃𪊲硓咢贌狢獱謭猂瓱賫𤪻蘯徺袠䒷"],["a055","𡠻𦸅"],["a058","詾𢔛"],["a05b","惽癧髗鵄鍮鮏蟵"],["a063","蠏賷猬霡鮰㗖犲䰇籑饊𦅙慙䰄麖慽"],["a073","坟慯抦戹拎㩜懢厪𣏵捤栂㗒"],["a0a1","嵗𨯂迚𨸹"],["a0a6","僙𡵆礆匲阸𠼻䁥"],["a0ae","矾"],["a0b0","糂𥼚糚稭聦聣絍甅瓲覔舚朌聢𧒆聛瓰脃眤覉𦟌畓𦻑螩蟎臈螌詉貭譃眫瓸蓚㘵榲趦"],["a0d4","覩瑨涹蟁𤀑瓧㷛煶悤憜㳑煢恷"],["a0e2","罱𨬭牐惩䭾删㰘𣳇𥻗𧙖𥔱𡥄𡋾𩤃𦷜𧂭峁𦆭𨨏𣙷𠃮𦡆𤼎䕢嬟𦍌齐麦𦉫"],["a3c0","␀",31,"␡"],["c6a1","①",9,"⑴",9,"ⅰ",9,"丶丿亅亠冂冖冫勹匸卩厶夊宀巛⼳广廴彐彡攴无疒癶辵隶¨ˆヽヾゝゞ〃仝々〆〇ー[]✽ぁ",23],["c740","す",58,"ァアィイ"],["c7a1","ゥ",81,"А",5,"ЁЖ",4],["c840","Л",26,"ёж",25,"⇧↸↹㇏𠃌乚𠂊刂䒑"],["c8a1","龰冈龱𧘇"],["c8cd","¬¦'"㈱№℡゛゜⺀⺄⺆⺇⺈⺊⺌⺍⺕⺜⺝⺥⺧⺪⺬⺮⺶⺼⺾⻆⻊⻌⻍⻏⻖⻗⻞⻣"],["c8f5","ʃɐɛɔɵœøŋʊɪ"],["f9fe","■"],["fa40","𠕇鋛𠗟𣿅蕌䊵珯况㙉𤥂𨧤鍄𡧛苮𣳈砼杄拟𤤳𨦪𠊠𦮳𡌅侫𢓭倈𦴩𧪄𣘀𤪱𢔓倩𠍾徤𠎀𠍇滛𠐟偽儁㑺儎顬㝃萖𤦤𠒇兠𣎴兪𠯿𢃼𠋥𢔰𠖎𣈳𡦃宂蝽𠖳𣲙冲冸"],["faa1","鴴凉减凑㳜凓𤪦决凢卂凭菍椾𣜭彻刋刦刼劵剗劔効勅簕蕂勠蘍𦬓包𨫞啉滙𣾀𠥔𣿬匳卄𠯢泋𡜦栛珕恊㺪㣌𡛨燝䒢卭却𨚫卾卿𡖖𡘓矦厓𨪛厠厫厮玧𥝲㽙玜叁叅汉义埾叙㪫𠮏叠𣿫𢶣叶𠱷吓灹唫晗浛呭𦭓𠵴啝咏咤䞦𡜍𠻝㶴𠵍"],["fb40","𨦼𢚘啇䳭启琗喆喩嘅𡣗𤀺䕒𤐵暳𡂴嘷曍𣊊暤暭噍噏磱囱鞇叾圀囯园𨭦㘣𡉏坆𤆥汮炋坂㚱𦱾埦𡐖堃𡑔𤍣堦𤯵塜墪㕡壠壜𡈼壻寿坃𪅐𤉸鏓㖡够梦㛃湙"],["fba1","𡘾娤啓𡚒蔅姉𠵎𦲁𦴪𡟜姙𡟻𡞲𦶦浱𡠨𡛕姹𦹅媫婣㛦𤦩婷㜈媖瑥嫓𦾡𢕔㶅𡤑㜲𡚸広勐孶斈孼𧨎䀄䡝𠈄寕慠𡨴𥧌𠖥寳宝䴐尅𡭄尓珎尔𡲥𦬨屉䣝岅峩峯嶋𡷹𡸷崐崘嵆𡺤岺巗苼㠭𤤁𢁉𢅳芇㠶㯂帮檊幵幺𤒼𠳓厦亷廐厨𡝱帉廴𨒂"],["fc40","廹廻㢠廼栾鐛弍𠇁弢㫞䢮𡌺强𦢈𢏐彘𢑱彣鞽𦹮彲鍀𨨶徧嶶㵟𥉐𡽪𧃸𢙨釖𠊞𨨩怱暅𡡷㥣㷇㘹垐𢞴祱㹀悞悤悳𤦂𤦏𧩓璤僡媠慤萤慂慈𦻒憁凴𠙖憇宪𣾷"],["fca1","𢡟懓𨮝𩥝懐㤲𢦀𢣁怣慜攞掋𠄘担𡝰拕𢸍捬𤧟㨗搸揸𡎎𡟼撐澊𢸶頔𤂌𥜝擡擥鑻㩦携㩗敍漖𤨨𤨣斅敭敟𣁾斵𤥀䬷旑䃘𡠩无旣忟𣐀昘𣇷𣇸晄𣆤𣆥晋𠹵晧𥇦晳晴𡸽𣈱𨗴𣇈𥌓矅𢣷馤朂𤎜𤨡㬫槺𣟂杞杧杢𤇍𩃭柗䓩栢湐鈼栁𣏦𦶠桝"],["fd40","𣑯槡樋𨫟楳棃𣗍椁椀㴲㨁𣘼㮀枬楡𨩊䋼椶榘㮡𠏉荣傐槹𣙙𢄪橅𣜃檝㯳枱櫈𩆜㰍欝𠤣惞欵歴𢟍溵𣫛𠎵𡥘㝀吡𣭚毡𣻼毜氷𢒋𤣱𦭑汚舦汹𣶼䓅𣶽𤆤𤤌𤤀"],["fda1","𣳉㛥㳫𠴲鮃𣇹𢒑羏样𦴥𦶡𦷫涖浜湼漄𤥿𤂅𦹲蔳𦽴凇沜渝萮𨬡港𣸯瑓𣾂秌湏媑𣁋濸㜍澝𣸰滺𡒗𤀽䕕鏰潄潜㵎潴𩅰㴻澟𤅄濓𤂑𤅕𤀹𣿰𣾴𤄿凟𤅖𤅗𤅀𦇝灋灾炧炁烌烕烖烟䄄㷨熴熖𤉷焫煅媈煊煮岜𤍥煏鍢𤋁焬𤑚𤨧𤨢熺𨯨炽爎"],["fe40","鑂爕夑鑃爤鍁𥘅爮牀𤥴梽牕牗㹕𣁄栍漽犂猪猫𤠣𨠫䣭𨠄猨献珏玪𠰺𦨮珉瑉𤇢𡛧𤨤昣㛅𤦷𤦍𤧻珷琕椃𤨦琹𠗃㻗瑜𢢭瑠𨺲瑇珤瑶莹瑬㜰瑴鏱樬璂䥓𤪌"],["fea1","𤅟𤩹𨮏孆𨰃𡢞瓈𡦈甎瓩甞𨻙𡩋寗𨺬鎅畍畊畧畮𤾂㼄𤴓疎瑝疞疴瘂瘬癑癏癯癶𦏵皐臯㟸𦤑𦤎皡皥皷盌𦾟葢𥂝𥅽𡸜眞眦着撯𥈠睘𣊬瞯𨥤𨥨𡛁矴砉𡍶𤨒棊碯磇磓隥礮𥗠磗礴碱𧘌辸袄𨬫𦂃𢘜禆褀椂禀𥡗禝𧬹礼禩渪𧄦㺨秆𩄍秔"]];
|
6992 |
|
6993 | }),
|
6994 | ,
|
6995 | ,
|
6996 | ,
|
6997 | ,
|
6998 | ,
|
6999 | ,
|
7000 | ,
|
7001 | ,
|
7002 | ,
|
7003 | ,
|
7004 | ,
|
7005 | ,
|
7006 |
|
7007 | (function(module) {
|
7008 |
|
7009 | module.exports = require("buffer");
|
7010 |
|
7011 | }),
|
7012 | ,
|
7013 |
|
7014 | (function(module) {
|
7015 |
|
7016 | "use strict";
|
7017 |
|
7018 | const TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
|
7019 | const STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
|
7020 | const STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
|
7021 | const ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi;
|
7022 |
|
7023 | const ESCAPES = new Map([
|
7024 | ['n', '\n'],
|
7025 | ['r', '\r'],
|
7026 | ['t', '\t'],
|
7027 | ['b', '\b'],
|
7028 | ['f', '\f'],
|
7029 | ['v', '\v'],
|
7030 | ['0', '\0'],
|
7031 | ['\\', '\\'],
|
7032 | ['e', '\u001B'],
|
7033 | ['a', '\u0007']
|
7034 | ]);
|
7035 |
|
7036 | function unescape(c) {
|
7037 | const u = c[0] === 'u';
|
7038 | const bracket = c[1] === '{';
|
7039 |
|
7040 | if ((u && !bracket && c.length === 5) || (c[0] === 'x' && c.length === 3)) {
|
7041 | return String.fromCharCode(parseInt(c.slice(1), 16));
|
7042 | }
|
7043 |
|
7044 | if (u && bracket) {
|
7045 | return String.fromCodePoint(parseInt(c.slice(2, -1), 16));
|
7046 | }
|
7047 |
|
7048 | return ESCAPES.get(c) || c;
|
7049 | }
|
7050 |
|
7051 | function parseArguments(name, arguments_) {
|
7052 | const results = [];
|
7053 | const chunks = arguments_.trim().split(/\s*,\s*/g);
|
7054 | let matches;
|
7055 |
|
7056 | for (const chunk of chunks) {
|
7057 | const number = Number(chunk);
|
7058 | if (!Number.isNaN(number)) {
|
7059 | results.push(number);
|
7060 | } else if ((matches = chunk.match(STRING_REGEX))) {
|
7061 | results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape(escape) : character));
|
7062 | } else {
|
7063 | throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
|
7064 | }
|
7065 | }
|
7066 |
|
7067 | return results;
|
7068 | }
|
7069 |
|
7070 | function parseStyle(style) {
|
7071 | STYLE_REGEX.lastIndex = 0;
|
7072 |
|
7073 | const results = [];
|
7074 | let matches;
|
7075 |
|
7076 | while ((matches = STYLE_REGEX.exec(style)) !== null) {
|
7077 | const name = matches[1];
|
7078 |
|
7079 | if (matches[2]) {
|
7080 | const args = parseArguments(name, matches[2]);
|
7081 | results.push([name].concat(args));
|
7082 | } else {
|
7083 | results.push([name]);
|
7084 | }
|
7085 | }
|
7086 |
|
7087 | return results;
|
7088 | }
|
7089 |
|
7090 | function buildStyle(chalk, styles) {
|
7091 | const enabled = {};
|
7092 |
|
7093 | for (const layer of styles) {
|
7094 | for (const style of layer.styles) {
|
7095 | enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
7096 | }
|
7097 | }
|
7098 |
|
7099 | let current = chalk;
|
7100 | for (const [styleName, styles] of Object.entries(enabled)) {
|
7101 | if (!Array.isArray(styles)) {
|
7102 | continue;
|
7103 | }
|
7104 |
|
7105 | if (!(styleName in current)) {
|
7106 | throw new Error(`Unknown Chalk style: ${styleName}`);
|
7107 | }
|
7108 |
|
7109 | current = styles.length > 0 ? current[styleName](...styles) : current[styleName];
|
7110 | }
|
7111 |
|
7112 | return current;
|
7113 | }
|
7114 |
|
7115 | module.exports = (chalk, temporary) => {
|
7116 | const styles = [];
|
7117 | const chunks = [];
|
7118 | let chunk = [];
|
7119 |
|
7120 |
|
7121 | temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
|
7122 | if (escapeCharacter) {
|
7123 | chunk.push(unescape(escapeCharacter));
|
7124 | } else if (style) {
|
7125 | const string = chunk.join('');
|
7126 | chunk = [];
|
7127 | chunks.push(styles.length === 0 ? string : buildStyle(chalk, styles)(string));
|
7128 | styles.push({inverse, styles: parseStyle(style)});
|
7129 | } else if (close) {
|
7130 | if (styles.length === 0) {
|
7131 | throw new Error('Found extraneous } in Chalk template literal');
|
7132 | }
|
7133 |
|
7134 | chunks.push(buildStyle(chalk, styles)(chunk.join('')));
|
7135 | chunk = [];
|
7136 | styles.pop();
|
7137 | } else {
|
7138 | chunk.push(character);
|
7139 | }
|
7140 | });
|
7141 |
|
7142 | chunks.push(chunk.join(''));
|
7143 |
|
7144 | if (styles.length > 0) {
|
7145 | const errMsg = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? '' : 's'} (\`}\`)`;
|
7146 | throw new Error(errMsg);
|
7147 | }
|
7148 |
|
7149 | return chunks.join('');
|
7150 | };
|
7151 |
|
7152 |
|
7153 | }),
|
7154 | ,
|
7155 | ,
|
7156 | ,
|
7157 | ,
|
7158 | ,
|
7159 |
|
7160 | (function(module, __unusedexports, __webpack_require__) {
|
7161 |
|
7162 | "use strict";
|
7163 |
|
7164 |
|
7165 | const u = __webpack_require__(323).fromCallback
|
7166 | const rimraf = __webpack_require__(180)
|
7167 |
|
7168 | module.exports = {
|
7169 | remove: u(rimraf),
|
7170 | removeSync: rimraf.sync
|
7171 | }
|
7172 |
|
7173 |
|
7174 | }),
|
7175 | ,
|
7176 | ,
|
7177 |
|
7178 | (function(module) {
|
7179 |
|
7180 | module.exports = require("string_decoder");
|
7181 |
|
7182 | }),
|
7183 | ,
|
7184 | ,
|
7185 | ,
|
7186 | ,
|
7187 | ,
|
7188 | ,
|
7189 |
|
7190 | (function(module, exports) {
|
7191 |
|
7192 | exports = module.exports = SemVer
|
7193 |
|
7194 | var debug
|
7195 |
|
7196 | if (typeof process === 'object' &&
|
7197 | process.env &&
|
7198 | process.env.NODE_DEBUG &&
|
7199 | /\bsemver\b/i.test(process.env.NODE_DEBUG)) {
|
7200 | debug = function () {
|
7201 | var args = Array.prototype.slice.call(arguments, 0)
|
7202 | args.unshift('SEMVER')
|
7203 | console.log.apply(console, args)
|
7204 | }
|
7205 | } else {
|
7206 | debug = function () {}
|
7207 | }
|
7208 |
|
7209 |
|
7210 |
|
7211 | exports.SEMVER_SPEC_VERSION = '2.0.0'
|
7212 |
|
7213 | var MAX_LENGTH = 256
|
7214 | var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
|
7215 | 9007199254740991
|
7216 |
|
7217 |
|
7218 | var MAX_SAFE_COMPONENT_LENGTH = 16
|
7219 |
|
7220 |
|
7221 | var re = exports.re = []
|
7222 | var src = exports.src = []
|
7223 | var R = 0
|
7224 |
|
7225 |
|
7226 |
|
7227 |
|
7228 |
|
7229 |
|
7230 |
|
7231 | var NUMERICIDENTIFIER = R++
|
7232 | src[NUMERICIDENTIFIER] = '0|[1-9]\\d*'
|
7233 | var NUMERICIDENTIFIERLOOSE = R++
|
7234 | src[NUMERICIDENTIFIERLOOSE] = '[0-9]+'
|
7235 |
|
7236 |
|
7237 |
|
7238 |
|
7239 |
|
7240 | var NONNUMERICIDENTIFIER = R++
|
7241 | src[NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*'
|
7242 |
|
7243 |
|
7244 |
|
7245 |
|
7246 | var MAINVERSION = R++
|
7247 | src[MAINVERSION] = '(' + src[NUMERICIDENTIFIER] + ')\\.' +
|
7248 | '(' + src[NUMERICIDENTIFIER] + ')\\.' +
|
7249 | '(' + src[NUMERICIDENTIFIER] + ')'
|
7250 |
|
7251 | var MAINVERSIONLOOSE = R++
|
7252 | src[MAINVERSIONLOOSE] = '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
|
7253 | '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
|
7254 | '(' + src[NUMERICIDENTIFIERLOOSE] + ')'
|
7255 |
|
7256 |
|
7257 |
|
7258 |
|
7259 | var PRERELEASEIDENTIFIER = R++
|
7260 | src[PRERELEASEIDENTIFIER] = '(?:' + src[NUMERICIDENTIFIER] +
|
7261 | '|' + src[NONNUMERICIDENTIFIER] + ')'
|
7262 |
|
7263 | var PRERELEASEIDENTIFIERLOOSE = R++
|
7264 | src[PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[NUMERICIDENTIFIERLOOSE] +
|
7265 | '|' + src[NONNUMERICIDENTIFIER] + ')'
|
7266 |
|
7267 |
|
7268 |
|
7269 |
|
7270 |
|
7271 | var PRERELEASE = R++
|
7272 | src[PRERELEASE] = '(?:-(' + src[PRERELEASEIDENTIFIER] +
|
7273 | '(?:\\.' + src[PRERELEASEIDENTIFIER] + ')*))'
|
7274 |
|
7275 | var PRERELEASELOOSE = R++
|
7276 | src[PRERELEASELOOSE] = '(?:-?(' + src[PRERELEASEIDENTIFIERLOOSE] +
|
7277 | '(?:\\.' + src[PRERELEASEIDENTIFIERLOOSE] + ')*))'
|
7278 |
|
7279 |
|
7280 |
|
7281 |
|
7282 | var BUILDIDENTIFIER = R++
|
7283 | src[BUILDIDENTIFIER] = '[0-9A-Za-z-]+'
|
7284 |
|
7285 |
|
7286 |
|
7287 |
|
7288 |
|
7289 | var BUILD = R++
|
7290 | src[BUILD] = '(?:\\+(' + src[BUILDIDENTIFIER] +
|
7291 | '(?:\\.' + src[BUILDIDENTIFIER] + ')*))'
|
7292 |
|
7293 |
|
7294 |
|
7295 |
|
7296 |
|
7297 |
|
7298 |
|
7299 |
|
7300 |
|
7301 |
|
7302 | var FULL = R++
|
7303 | var FULLPLAIN = 'v?' + src[MAINVERSION] +
|
7304 | src[PRERELEASE] + '?' +
|
7305 | src[BUILD] + '?'
|
7306 |
|
7307 | src[FULL] = '^' + FULLPLAIN + '$'
|
7308 |
|
7309 |
|
7310 |
|
7311 |
|
7312 | var LOOSEPLAIN = '[v=\\s]*' + src[MAINVERSIONLOOSE] +
|
7313 | src[PRERELEASELOOSE] + '?' +
|
7314 | src[BUILD] + '?'
|
7315 |
|
7316 | var LOOSE = R++
|
7317 | src[LOOSE] = '^' + LOOSEPLAIN + '$'
|
7318 |
|
7319 | var GTLT = R++
|
7320 | src[GTLT] = '((?:<|>)?=?)'
|
7321 |
|
7322 |
|
7323 |
|
7324 |
|
7325 | var XRANGEIDENTIFIERLOOSE = R++
|
7326 | src[XRANGEIDENTIFIERLOOSE] = src[NUMERICIDENTIFIERLOOSE] + '|x|X|\\*'
|
7327 | var XRANGEIDENTIFIER = R++
|
7328 | src[XRANGEIDENTIFIER] = src[NUMERICIDENTIFIER] + '|x|X|\\*'
|
7329 |
|
7330 | var XRANGEPLAIN = R++
|
7331 | src[XRANGEPLAIN] = '[v=\\s]*(' + src[XRANGEIDENTIFIER] + ')' +
|
7332 | '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
|
7333 | '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
|
7334 | '(?:' + src[PRERELEASE] + ')?' +
|
7335 | src[BUILD] + '?' +
|
7336 | ')?)?'
|
7337 |
|
7338 | var XRANGEPLAINLOOSE = R++
|
7339 | src[XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
|
7340 | '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
|
7341 | '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
|
7342 | '(?:' + src[PRERELEASELOOSE] + ')?' +
|
7343 | src[BUILD] + '?' +
|
7344 | ')?)?'
|
7345 |
|
7346 | var XRANGE = R++
|
7347 | src[XRANGE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAIN] + '$'
|
7348 | var XRANGELOOSE = R++
|
7349 | src[XRANGELOOSE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAINLOOSE] + '$'
|
7350 |
|
7351 |
|
7352 |
|
7353 | var COERCE = R++
|
7354 | src[COERCE] = '(?:^|[^\\d])' +
|
7355 | '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' +
|
7356 | '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
|
7357 | '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
|
7358 | '(?:$|[^\\d])'
|
7359 |
|
7360 |
|
7361 |
|
7362 | var LONETILDE = R++
|
7363 | src[LONETILDE] = '(?:~>?)'
|
7364 |
|
7365 | var TILDETRIM = R++
|
7366 | src[TILDETRIM] = '(\\s*)' + src[LONETILDE] + '\\s+'
|
7367 | re[TILDETRIM] = new RegExp(src[TILDETRIM], 'g')
|
7368 | var tildeTrimReplace = '$1~'
|
7369 |
|
7370 | var TILDE = R++
|
7371 | src[TILDE] = '^' + src[LONETILDE] + src[XRANGEPLAIN] + '$'
|
7372 | var TILDELOOSE = R++
|
7373 | src[TILDELOOSE] = '^' + src[LONETILDE] + src[XRANGEPLAINLOOSE] + '$'
|
7374 |
|
7375 |
|
7376 |
|
7377 | var LONECARET = R++
|
7378 | src[LONECARET] = '(?:\\^)'
|
7379 |
|
7380 | var CARETTRIM = R++
|
7381 | src[CARETTRIM] = '(\\s*)' + src[LONECARET] + '\\s+'
|
7382 | re[CARETTRIM] = new RegExp(src[CARETTRIM], 'g')
|
7383 | var caretTrimReplace = '$1^'
|
7384 |
|
7385 | var CARET = R++
|
7386 | src[CARET] = '^' + src[LONECARET] + src[XRANGEPLAIN] + '$'
|
7387 | var CARETLOOSE = R++
|
7388 | src[CARETLOOSE] = '^' + src[LONECARET] + src[XRANGEPLAINLOOSE] + '$'
|
7389 |
|
7390 |
|
7391 | var COMPARATORLOOSE = R++
|
7392 | src[COMPARATORLOOSE] = '^' + src[GTLT] + '\\s*(' + LOOSEPLAIN + ')$|^$'
|
7393 | var COMPARATOR = R++
|
7394 | src[COMPARATOR] = '^' + src[GTLT] + '\\s*(' + FULLPLAIN + ')$|^$'
|
7395 |
|
7396 |
|
7397 |
|
7398 | var COMPARATORTRIM = R++
|
7399 | src[COMPARATORTRIM] = '(\\s*)' + src[GTLT] +
|
7400 | '\\s*(' + LOOSEPLAIN + '|' + src[XRANGEPLAIN] + ')'
|
7401 |
|
7402 |
|
7403 | re[COMPARATORTRIM] = new RegExp(src[COMPARATORTRIM], 'g')
|
7404 | var comparatorTrimReplace = '$1$2$3'
|
7405 |
|
7406 |
|
7407 |
|
7408 |
|
7409 |
|
7410 | var HYPHENRANGE = R++
|
7411 | src[HYPHENRANGE] = '^\\s*(' + src[XRANGEPLAIN] + ')' +
|
7412 | '\\s+-\\s+' +
|
7413 | '(' + src[XRANGEPLAIN] + ')' +
|
7414 | '\\s*$'
|
7415 |
|
7416 | var HYPHENRANGELOOSE = R++
|
7417 | src[HYPHENRANGELOOSE] = '^\\s*(' + src[XRANGEPLAINLOOSE] + ')' +
|
7418 | '\\s+-\\s+' +
|
7419 | '(' + src[XRANGEPLAINLOOSE] + ')' +
|
7420 | '\\s*$'
|
7421 |
|
7422 |
|
7423 | var STAR = R++
|
7424 | src[STAR] = '(<|>)?=?\\s*\\*'
|
7425 |
|
7426 |
|
7427 |
|
7428 | for (var i = 0; i < R; i++) {
|
7429 | debug(i, src[i])
|
7430 | if (!re[i]) {
|
7431 | re[i] = new RegExp(src[i])
|
7432 | }
|
7433 | }
|
7434 |
|
7435 | exports.parse = parse
|
7436 | function parse (version, options) {
|
7437 | if (!options || typeof options !== 'object') {
|
7438 | options = {
|
7439 | loose: !!options,
|
7440 | includePrerelease: false
|
7441 | }
|
7442 | }
|
7443 |
|
7444 | if (version instanceof SemVer) {
|
7445 | return version
|
7446 | }
|
7447 |
|
7448 | if (typeof version !== 'string') {
|
7449 | return null
|
7450 | }
|
7451 |
|
7452 | if (version.length > MAX_LENGTH) {
|
7453 | return null
|
7454 | }
|
7455 |
|
7456 | var r = options.loose ? re[LOOSE] : re[FULL]
|
7457 | if (!r.test(version)) {
|
7458 | return null
|
7459 | }
|
7460 |
|
7461 | try {
|
7462 | return new SemVer(version, options)
|
7463 | } catch (er) {
|
7464 | return null
|
7465 | }
|
7466 | }
|
7467 |
|
7468 | exports.valid = valid
|
7469 | function valid (version, options) {
|
7470 | var v = parse(version, options)
|
7471 | return v ? v.version : null
|
7472 | }
|
7473 |
|
7474 | exports.clean = clean
|
7475 | function clean (version, options) {
|
7476 | var s = parse(version.trim().replace(/^[=v]+/, ''), options)
|
7477 | return s ? s.version : null
|
7478 | }
|
7479 |
|
7480 | exports.SemVer = SemVer
|
7481 |
|
7482 | function SemVer (version, options) {
|
7483 | if (!options || typeof options !== 'object') {
|
7484 | options = {
|
7485 | loose: !!options,
|
7486 | includePrerelease: false
|
7487 | }
|
7488 | }
|
7489 | if (version instanceof SemVer) {
|
7490 | if (version.loose === options.loose) {
|
7491 | return version
|
7492 | } else {
|
7493 | version = version.version
|
7494 | }
|
7495 | } else if (typeof version !== 'string') {
|
7496 | throw new TypeError('Invalid Version: ' + version)
|
7497 | }
|
7498 |
|
7499 | if (version.length > MAX_LENGTH) {
|
7500 | throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')
|
7501 | }
|
7502 |
|
7503 | if (!(this instanceof SemVer)) {
|
7504 | return new SemVer(version, options)
|
7505 | }
|
7506 |
|
7507 | debug('SemVer', version, options)
|
7508 | this.options = options
|
7509 | this.loose = !!options.loose
|
7510 |
|
7511 | var m = version.trim().match(options.loose ? re[LOOSE] : re[FULL])
|
7512 |
|
7513 | if (!m) {
|
7514 | throw new TypeError('Invalid Version: ' + version)
|
7515 | }
|
7516 |
|
7517 | this.raw = version
|
7518 |
|
7519 |
|
7520 | this.major = +m[1]
|
7521 | this.minor = +m[2]
|
7522 | this.patch = +m[3]
|
7523 |
|
7524 | if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
|
7525 | throw new TypeError('Invalid major version')
|
7526 | }
|
7527 |
|
7528 | if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
|
7529 | throw new TypeError('Invalid minor version')
|
7530 | }
|
7531 |
|
7532 | if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
|
7533 | throw new TypeError('Invalid patch version')
|
7534 | }
|
7535 |
|
7536 |
|
7537 | if (!m[4]) {
|
7538 | this.prerelease = []
|
7539 | } else {
|
7540 | this.prerelease = m[4].split('.').map(function (id) {
|
7541 | if (/^[0-9]+$/.test(id)) {
|
7542 | var num = +id
|
7543 | if (num >= 0 && num < MAX_SAFE_INTEGER) {
|
7544 | return num
|
7545 | }
|
7546 | }
|
7547 | return id
|
7548 | })
|
7549 | }
|
7550 |
|
7551 | this.build = m[5] ? m[5].split('.') : []
|
7552 | this.format()
|
7553 | }
|
7554 |
|
7555 | SemVer.prototype.format = function () {
|
7556 | this.version = this.major + '.' + this.minor + '.' + this.patch
|
7557 | if (this.prerelease.length) {
|
7558 | this.version += '-' + this.prerelease.join('.')
|
7559 | }
|
7560 | return this.version
|
7561 | }
|
7562 |
|
7563 | SemVer.prototype.toString = function () {
|
7564 | return this.version
|
7565 | }
|
7566 |
|
7567 | SemVer.prototype.compare = function (other) {
|
7568 | debug('SemVer.compare', this.version, this.options, other)
|
7569 | if (!(other instanceof SemVer)) {
|
7570 | other = new SemVer(other, this.options)
|
7571 | }
|
7572 |
|
7573 | return this.compareMain(other) || this.comparePre(other)
|
7574 | }
|
7575 |
|
7576 | SemVer.prototype.compareMain = function (other) {
|
7577 | if (!(other instanceof SemVer)) {
|
7578 | other = new SemVer(other, this.options)
|
7579 | }
|
7580 |
|
7581 | return compareIdentifiers(this.major, other.major) ||
|
7582 | compareIdentifiers(this.minor, other.minor) ||
|
7583 | compareIdentifiers(this.patch, other.patch)
|
7584 | }
|
7585 |
|
7586 | SemVer.prototype.comparePre = function (other) {
|
7587 | if (!(other instanceof SemVer)) {
|
7588 | other = new SemVer(other, this.options)
|
7589 | }
|
7590 |
|
7591 |
|
7592 | if (this.prerelease.length && !other.prerelease.length) {
|
7593 | return -1
|
7594 | } else if (!this.prerelease.length && other.prerelease.length) {
|
7595 | return 1
|
7596 | } else if (!this.prerelease.length && !other.prerelease.length) {
|
7597 | return 0
|
7598 | }
|
7599 |
|
7600 | var i = 0
|
7601 | do {
|
7602 | var a = this.prerelease[i]
|
7603 | var b = other.prerelease[i]
|
7604 | debug('prerelease compare', i, a, b)
|
7605 | if (a === undefined && b === undefined) {
|
7606 | return 0
|
7607 | } else if (b === undefined) {
|
7608 | return 1
|
7609 | } else if (a === undefined) {
|
7610 | return -1
|
7611 | } else if (a === b) {
|
7612 | continue
|
7613 | } else {
|
7614 | return compareIdentifiers(a, b)
|
7615 | }
|
7616 | } while (++i)
|
7617 | }
|
7618 |
|
7619 |
|
7620 |
|
7621 | SemVer.prototype.inc = function (release, identifier) {
|
7622 | switch (release) {
|
7623 | case 'premajor':
|
7624 | this.prerelease.length = 0
|
7625 | this.patch = 0
|
7626 | this.minor = 0
|
7627 | this.major++
|
7628 | this.inc('pre', identifier)
|
7629 | break
|
7630 | case 'preminor':
|
7631 | this.prerelease.length = 0
|
7632 | this.patch = 0
|
7633 | this.minor++
|
7634 | this.inc('pre', identifier)
|
7635 | break
|
7636 | case 'prepatch':
|
7637 |
|
7638 |
|
7639 |
|
7640 | this.prerelease.length = 0
|
7641 | this.inc('patch', identifier)
|
7642 | this.inc('pre', identifier)
|
7643 | break
|
7644 |
|
7645 |
|
7646 | case 'prerelease':
|
7647 | if (this.prerelease.length === 0) {
|
7648 | this.inc('patch', identifier)
|
7649 | }
|
7650 | this.inc('pre', identifier)
|
7651 | break
|
7652 |
|
7653 | case 'major':
|
7654 |
|
7655 |
|
7656 |
|
7657 |
|
7658 | if (this.minor !== 0 ||
|
7659 | this.patch !== 0 ||
|
7660 | this.prerelease.length === 0) {
|
7661 | this.major++
|
7662 | }
|
7663 | this.minor = 0
|
7664 | this.patch = 0
|
7665 | this.prerelease = []
|
7666 | break
|
7667 | case 'minor':
|
7668 |
|
7669 |
|
7670 |
|
7671 |
|
7672 | if (this.patch !== 0 || this.prerelease.length === 0) {
|
7673 | this.minor++
|
7674 | }
|
7675 | this.patch = 0
|
7676 | this.prerelease = []
|
7677 | break
|
7678 | case 'patch':
|
7679 |
|
7680 |
|
7681 |
|
7682 |
|
7683 | if (this.prerelease.length === 0) {
|
7684 | this.patch++
|
7685 | }
|
7686 | this.prerelease = []
|
7687 | break
|
7688 |
|
7689 |
|
7690 | case 'pre':
|
7691 | if (this.prerelease.length === 0) {
|
7692 | this.prerelease = [0]
|
7693 | } else {
|
7694 | var i = this.prerelease.length
|
7695 | while (--i >= 0) {
|
7696 | if (typeof this.prerelease[i] === 'number') {
|
7697 | this.prerelease[i]++
|
7698 | i = -2
|
7699 | }
|
7700 | }
|
7701 | if (i === -1) {
|
7702 |
|
7703 | this.prerelease.push(0)
|
7704 | }
|
7705 | }
|
7706 | if (identifier) {
|
7707 |
|
7708 |
|
7709 | if (this.prerelease[0] === identifier) {
|
7710 | if (isNaN(this.prerelease[1])) {
|
7711 | this.prerelease = [identifier, 0]
|
7712 | }
|
7713 | } else {
|
7714 | this.prerelease = [identifier, 0]
|
7715 | }
|
7716 | }
|
7717 | break
|
7718 |
|
7719 | default:
|
7720 | throw new Error('invalid increment argument: ' + release)
|
7721 | }
|
7722 | this.format()
|
7723 | this.raw = this.version
|
7724 | return this
|
7725 | }
|
7726 |
|
7727 | exports.inc = inc
|
7728 | function inc (version, release, loose, identifier) {
|
7729 | if (typeof (loose) === 'string') {
|
7730 | identifier = loose
|
7731 | loose = undefined
|
7732 | }
|
7733 |
|
7734 | try {
|
7735 | return new SemVer(version, loose).inc(release, identifier).version
|
7736 | } catch (er) {
|
7737 | return null
|
7738 | }
|
7739 | }
|
7740 |
|
7741 | exports.diff = diff
|
7742 | function diff (version1, version2) {
|
7743 | if (eq(version1, version2)) {
|
7744 | return null
|
7745 | } else {
|
7746 | var v1 = parse(version1)
|
7747 | var v2 = parse(version2)
|
7748 | var prefix = ''
|
7749 | if (v1.prerelease.length || v2.prerelease.length) {
|
7750 | prefix = 'pre'
|
7751 | var defaultResult = 'prerelease'
|
7752 | }
|
7753 | for (var key in v1) {
|
7754 | if (key === 'major' || key === 'minor' || key === 'patch') {
|
7755 | if (v1[key] !== v2[key]) {
|
7756 | return prefix + key
|
7757 | }
|
7758 | }
|
7759 | }
|
7760 | return defaultResult
|
7761 | }
|
7762 | }
|
7763 |
|
7764 | exports.compareIdentifiers = compareIdentifiers
|
7765 |
|
7766 | var numeric = /^[0-9]+$/
|
7767 | function compareIdentifiers (a, b) {
|
7768 | var anum = numeric.test(a)
|
7769 | var bnum = numeric.test(b)
|
7770 |
|
7771 | if (anum && bnum) {
|
7772 | a = +a
|
7773 | b = +b
|
7774 | }
|
7775 |
|
7776 | return a === b ? 0
|
7777 | : (anum && !bnum) ? -1
|
7778 | : (bnum && !anum) ? 1
|
7779 | : a < b ? -1
|
7780 | : 1
|
7781 | }
|
7782 |
|
7783 | exports.rcompareIdentifiers = rcompareIdentifiers
|
7784 | function rcompareIdentifiers (a, b) {
|
7785 | return compareIdentifiers(b, a)
|
7786 | }
|
7787 |
|
7788 | exports.major = major
|
7789 | function major (a, loose) {
|
7790 | return new SemVer(a, loose).major
|
7791 | }
|
7792 |
|
7793 | exports.minor = minor
|
7794 | function minor (a, loose) {
|
7795 | return new SemVer(a, loose).minor
|
7796 | }
|
7797 |
|
7798 | exports.patch = patch
|
7799 | function patch (a, loose) {
|
7800 | return new SemVer(a, loose).patch
|
7801 | }
|
7802 |
|
7803 | exports.compare = compare
|
7804 | function compare (a, b, loose) {
|
7805 | return new SemVer(a, loose).compare(new SemVer(b, loose))
|
7806 | }
|
7807 |
|
7808 | exports.compareLoose = compareLoose
|
7809 | function compareLoose (a, b) {
|
7810 | return compare(a, b, true)
|
7811 | }
|
7812 |
|
7813 | exports.rcompare = rcompare
|
7814 | function rcompare (a, b, loose) {
|
7815 | return compare(b, a, loose)
|
7816 | }
|
7817 |
|
7818 | exports.sort = sort
|
7819 | function sort (list, loose) {
|
7820 | return list.sort(function (a, b) {
|
7821 | return exports.compare(a, b, loose)
|
7822 | })
|
7823 | }
|
7824 |
|
7825 | exports.rsort = rsort
|
7826 | function rsort (list, loose) {
|
7827 | return list.sort(function (a, b) {
|
7828 | return exports.rcompare(a, b, loose)
|
7829 | })
|
7830 | }
|
7831 |
|
7832 | exports.gt = gt
|
7833 | function gt (a, b, loose) {
|
7834 | return compare(a, b, loose) > 0
|
7835 | }
|
7836 |
|
7837 | exports.lt = lt
|
7838 | function lt (a, b, loose) {
|
7839 | return compare(a, b, loose) < 0
|
7840 | }
|
7841 |
|
7842 | exports.eq = eq
|
7843 | function eq (a, b, loose) {
|
7844 | return compare(a, b, loose) === 0
|
7845 | }
|
7846 |
|
7847 | exports.neq = neq
|
7848 | function neq (a, b, loose) {
|
7849 | return compare(a, b, loose) !== 0
|
7850 | }
|
7851 |
|
7852 | exports.gte = gte
|
7853 | function gte (a, b, loose) {
|
7854 | return compare(a, b, loose) >= 0
|
7855 | }
|
7856 |
|
7857 | exports.lte = lte
|
7858 | function lte (a, b, loose) {
|
7859 | return compare(a, b, loose) <= 0
|
7860 | }
|
7861 |
|
7862 | exports.cmp = cmp
|
7863 | function cmp (a, op, b, loose) {
|
7864 | switch (op) {
|
7865 | case '===':
|
7866 | if (typeof a === 'object')
|
7867 | a = a.version
|
7868 | if (typeof b === 'object')
|
7869 | b = b.version
|
7870 | return a === b
|
7871 |
|
7872 | case '!==':
|
7873 | if (typeof a === 'object')
|
7874 | a = a.version
|
7875 | if (typeof b === 'object')
|
7876 | b = b.version
|
7877 | return a !== b
|
7878 |
|
7879 | case '':
|
7880 | case '=':
|
7881 | case '==':
|
7882 | return eq(a, b, loose)
|
7883 |
|
7884 | case '!=':
|
7885 | return neq(a, b, loose)
|
7886 |
|
7887 | case '>':
|
7888 | return gt(a, b, loose)
|
7889 |
|
7890 | case '>=':
|
7891 | return gte(a, b, loose)
|
7892 |
|
7893 | case '<':
|
7894 | return lt(a, b, loose)
|
7895 |
|
7896 | case '<=':
|
7897 | return lte(a, b, loose)
|
7898 |
|
7899 | default:
|
7900 | throw new TypeError('Invalid operator: ' + op)
|
7901 | }
|
7902 | }
|
7903 |
|
7904 | exports.Comparator = Comparator
|
7905 | function Comparator (comp, options) {
|
7906 | if (!options || typeof options !== 'object') {
|
7907 | options = {
|
7908 | loose: !!options,
|
7909 | includePrerelease: false
|
7910 | }
|
7911 | }
|
7912 |
|
7913 | if (comp instanceof Comparator) {
|
7914 | if (comp.loose === !!options.loose) {
|
7915 | return comp
|
7916 | } else {
|
7917 | comp = comp.value
|
7918 | }
|
7919 | }
|
7920 |
|
7921 | if (!(this instanceof Comparator)) {
|
7922 | return new Comparator(comp, options)
|
7923 | }
|
7924 |
|
7925 | debug('comparator', comp, options)
|
7926 | this.options = options
|
7927 | this.loose = !!options.loose
|
7928 | this.parse(comp)
|
7929 |
|
7930 | if (this.semver === ANY) {
|
7931 | this.value = ''
|
7932 | } else {
|
7933 | this.value = this.operator + this.semver.version
|
7934 | }
|
7935 |
|
7936 | debug('comp', this)
|
7937 | }
|
7938 |
|
7939 | var ANY = {}
|
7940 | Comparator.prototype.parse = function (comp) {
|
7941 | var r = this.options.loose ? re[COMPARATORLOOSE] : re[COMPARATOR]
|
7942 | var m = comp.match(r)
|
7943 |
|
7944 | if (!m) {
|
7945 | throw new TypeError('Invalid comparator: ' + comp)
|
7946 | }
|
7947 |
|
7948 | this.operator = m[1]
|
7949 | if (this.operator === '=') {
|
7950 | this.operator = ''
|
7951 | }
|
7952 |
|
7953 |
|
7954 | if (!m[2]) {
|
7955 | this.semver = ANY
|
7956 | } else {
|
7957 | this.semver = new SemVer(m[2], this.options.loose)
|
7958 | }
|
7959 | }
|
7960 |
|
7961 | Comparator.prototype.toString = function () {
|
7962 | return this.value
|
7963 | }
|
7964 |
|
7965 | Comparator.prototype.test = function (version) {
|
7966 | debug('Comparator.test', version, this.options.loose)
|
7967 |
|
7968 | if (this.semver === ANY) {
|
7969 | return true
|
7970 | }
|
7971 |
|
7972 | if (typeof version === 'string') {
|
7973 | version = new SemVer(version, this.options)
|
7974 | }
|
7975 |
|
7976 | return cmp(version, this.operator, this.semver, this.options)
|
7977 | }
|
7978 |
|
7979 | Comparator.prototype.intersects = function (comp, options) {
|
7980 | if (!(comp instanceof Comparator)) {
|
7981 | throw new TypeError('a Comparator is required')
|
7982 | }
|
7983 |
|
7984 | if (!options || typeof options !== 'object') {
|
7985 | options = {
|
7986 | loose: !!options,
|
7987 | includePrerelease: false
|
7988 | }
|
7989 | }
|
7990 |
|
7991 | var rangeTmp
|
7992 |
|
7993 | if (this.operator === '') {
|
7994 | rangeTmp = new Range(comp.value, options)
|
7995 | return satisfies(this.value, rangeTmp, options)
|
7996 | } else if (comp.operator === '') {
|
7997 | rangeTmp = new Range(this.value, options)
|
7998 | return satisfies(comp.semver, rangeTmp, options)
|
7999 | }
|
8000 |
|
8001 | var sameDirectionIncreasing =
|
8002 | (this.operator === '>=' || this.operator === '>') &&
|
8003 | (comp.operator === '>=' || comp.operator === '>')
|
8004 | var sameDirectionDecreasing =
|
8005 | (this.operator === '<=' || this.operator === '<') &&
|
8006 | (comp.operator === '<=' || comp.operator === '<')
|
8007 | var sameSemVer = this.semver.version === comp.semver.version
|
8008 | var differentDirectionsInclusive =
|
8009 | (this.operator === '>=' || this.operator === '<=') &&
|
8010 | (comp.operator === '>=' || comp.operator === '<=')
|
8011 | var oppositeDirectionsLessThan =
|
8012 | cmp(this.semver, '<', comp.semver, options) &&
|
8013 | ((this.operator === '>=' || this.operator === '>') &&
|
8014 | (comp.operator === '<=' || comp.operator === '<'))
|
8015 | var oppositeDirectionsGreaterThan =
|
8016 | cmp(this.semver, '>', comp.semver, options) &&
|
8017 | ((this.operator === '<=' || this.operator === '<') &&
|
8018 | (comp.operator === '>=' || comp.operator === '>'))
|
8019 |
|
8020 | return sameDirectionIncreasing || sameDirectionDecreasing ||
|
8021 | (sameSemVer && differentDirectionsInclusive) ||
|
8022 | oppositeDirectionsLessThan || oppositeDirectionsGreaterThan
|
8023 | }
|
8024 |
|
8025 | exports.Range = Range
|
8026 | function Range (range, options) {
|
8027 | if (!options || typeof options !== 'object') {
|
8028 | options = {
|
8029 | loose: !!options,
|
8030 | includePrerelease: false
|
8031 | }
|
8032 | }
|
8033 |
|
8034 | if (range instanceof Range) {
|
8035 | if (range.loose === !!options.loose &&
|
8036 | range.includePrerelease === !!options.includePrerelease) {
|
8037 | return range
|
8038 | } else {
|
8039 | return new Range(range.raw, options)
|
8040 | }
|
8041 | }
|
8042 |
|
8043 | if (range instanceof Comparator) {
|
8044 | return new Range(range.value, options)
|
8045 | }
|
8046 |
|
8047 | if (!(this instanceof Range)) {
|
8048 | return new Range(range, options)
|
8049 | }
|
8050 |
|
8051 | this.options = options
|
8052 | this.loose = !!options.loose
|
8053 | this.includePrerelease = !!options.includePrerelease
|
8054 |
|
8055 |
|
8056 | this.raw = range
|
8057 | this.set = range.split(/\s*\|\|\s*/).map(function (range) {
|
8058 | return this.parseRange(range.trim())
|
8059 | }, this).filter(function (c) {
|
8060 |
|
8061 | return c.length
|
8062 | })
|
8063 |
|
8064 | if (!this.set.length) {
|
8065 | throw new TypeError('Invalid SemVer Range: ' + range)
|
8066 | }
|
8067 |
|
8068 | this.format()
|
8069 | }
|
8070 |
|
8071 | Range.prototype.format = function () {
|
8072 | this.range = this.set.map(function (comps) {
|
8073 | return comps.join(' ').trim()
|
8074 | }).join('||').trim()
|
8075 | return this.range
|
8076 | }
|
8077 |
|
8078 | Range.prototype.toString = function () {
|
8079 | return this.range
|
8080 | }
|
8081 |
|
8082 | Range.prototype.parseRange = function (range) {
|
8083 | var loose = this.options.loose
|
8084 | range = range.trim()
|
8085 |
|
8086 | var hr = loose ? re[HYPHENRANGELOOSE] : re[HYPHENRANGE]
|
8087 | range = range.replace(hr, hyphenReplace)
|
8088 | debug('hyphen replace', range)
|
8089 |
|
8090 | range = range.replace(re[COMPARATORTRIM], comparatorTrimReplace)
|
8091 | debug('comparator trim', range, re[COMPARATORTRIM])
|
8092 |
|
8093 |
|
8094 | range = range.replace(re[TILDETRIM], tildeTrimReplace)
|
8095 |
|
8096 |
|
8097 | range = range.replace(re[CARETTRIM], caretTrimReplace)
|
8098 |
|
8099 |
|
8100 | range = range.split(/\s+/).join(' ')
|
8101 |
|
8102 |
|
8103 |
|
8104 |
|
8105 | var compRe = loose ? re[COMPARATORLOOSE] : re[COMPARATOR]
|
8106 | var set = range.split(' ').map(function (comp) {
|
8107 | return parseComparator(comp, this.options)
|
8108 | }, this).join(' ').split(/\s+/)
|
8109 | if (this.options.loose) {
|
8110 |
|
8111 | set = set.filter(function (comp) {
|
8112 | return !!comp.match(compRe)
|
8113 | })
|
8114 | }
|
8115 | set = set.map(function (comp) {
|
8116 | return new Comparator(comp, this.options)
|
8117 | }, this)
|
8118 |
|
8119 | return set
|
8120 | }
|
8121 |
|
8122 | Range.prototype.intersects = function (range, options) {
|
8123 | if (!(range instanceof Range)) {
|
8124 | throw new TypeError('a Range is required')
|
8125 | }
|
8126 |
|
8127 | return this.set.some(function (thisComparators) {
|
8128 | return thisComparators.every(function (thisComparator) {
|
8129 | return range.set.some(function (rangeComparators) {
|
8130 | return rangeComparators.every(function (rangeComparator) {
|
8131 | return thisComparator.intersects(rangeComparator, options)
|
8132 | })
|
8133 | })
|
8134 | })
|
8135 | })
|
8136 | }
|
8137 |
|
8138 |
|
8139 | exports.toComparators = toComparators
|
8140 | function toComparators (range, options) {
|
8141 | return new Range(range, options).set.map(function (comp) {
|
8142 | return comp.map(function (c) {
|
8143 | return c.value
|
8144 | }).join(' ').trim().split(' ')
|
8145 | })
|
8146 | }
|
8147 |
|
8148 |
|
8149 |
|
8150 |
|
8151 | function parseComparator (comp, options) {
|
8152 | debug('comp', comp, options)
|
8153 | comp = replaceCarets(comp, options)
|
8154 | debug('caret', comp)
|
8155 | comp = replaceTildes(comp, options)
|
8156 | debug('tildes', comp)
|
8157 | comp = replaceXRanges(comp, options)
|
8158 | debug('xrange', comp)
|
8159 | comp = replaceStars(comp, options)
|
8160 | debug('stars', comp)
|
8161 | return comp
|
8162 | }
|
8163 |
|
8164 | function isX (id) {
|
8165 | return !id || id.toLowerCase() === 'x' || id === '*'
|
8166 | }
|
8167 |
|
8168 |
|
8169 |
|
8170 |
|
8171 |
|
8172 |
|
8173 |
|
8174 | function replaceTildes (comp, options) {
|
8175 | return comp.trim().split(/\s+/).map(function (comp) {
|
8176 | return replaceTilde(comp, options)
|
8177 | }).join(' ')
|
8178 | }
|
8179 |
|
8180 | function replaceTilde (comp, options) {
|
8181 | var r = options.loose ? re[TILDELOOSE] : re[TILDE]
|
8182 | return comp.replace(r, function (_, M, m, p, pr) {
|
8183 | debug('tilde', comp, _, M, m, p, pr)
|
8184 | var ret
|
8185 |
|
8186 | if (isX(M)) {
|
8187 | ret = ''
|
8188 | } else if (isX(m)) {
|
8189 | ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
|
8190 | } else if (isX(p)) {
|
8191 |
|
8192 | ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
|
8193 | } else if (pr) {
|
8194 | debug('replaceTilde pr', pr)
|
8195 | ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
|
8196 | ' <' + M + '.' + (+m + 1) + '.0'
|
8197 | } else {
|
8198 |
|
8199 | ret = '>=' + M + '.' + m + '.' + p +
|
8200 | ' <' + M + '.' + (+m + 1) + '.0'
|
8201 | }
|
8202 |
|
8203 | debug('tilde return', ret)
|
8204 | return ret
|
8205 | })
|
8206 | }
|
8207 |
|
8208 |
|
8209 |
|
8210 |
|
8211 |
|
8212 |
|
8213 |
|
8214 | function replaceCarets (comp, options) {
|
8215 | return comp.trim().split(/\s+/).map(function (comp) {
|
8216 | return replaceCaret(comp, options)
|
8217 | }).join(' ')
|
8218 | }
|
8219 |
|
8220 | function replaceCaret (comp, options) {
|
8221 | debug('caret', comp, options)
|
8222 | var r = options.loose ? re[CARETLOOSE] : re[CARET]
|
8223 | return comp.replace(r, function (_, M, m, p, pr) {
|
8224 | debug('caret', comp, _, M, m, p, pr)
|
8225 | var ret
|
8226 |
|
8227 | if (isX(M)) {
|
8228 | ret = ''
|
8229 | } else if (isX(m)) {
|
8230 | ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
|
8231 | } else if (isX(p)) {
|
8232 | if (M === '0') {
|
8233 | ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
|
8234 | } else {
|
8235 | ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'
|
8236 | }
|
8237 | } else if (pr) {
|
8238 | debug('replaceCaret pr', pr)
|
8239 | if (M === '0') {
|
8240 | if (m === '0') {
|
8241 | ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
|
8242 | ' <' + M + '.' + m + '.' + (+p + 1)
|
8243 | } else {
|
8244 | ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
|
8245 | ' <' + M + '.' + (+m + 1) + '.0'
|
8246 | }
|
8247 | } else {
|
8248 | ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
|
8249 | ' <' + (+M + 1) + '.0.0'
|
8250 | }
|
8251 | } else {
|
8252 | debug('no pr')
|
8253 | if (M === '0') {
|
8254 | if (m === '0') {
|
8255 | ret = '>=' + M + '.' + m + '.' + p +
|
8256 | ' <' + M + '.' + m + '.' + (+p + 1)
|
8257 | } else {
|
8258 | ret = '>=' + M + '.' + m + '.' + p +
|
8259 | ' <' + M + '.' + (+m + 1) + '.0'
|
8260 | }
|
8261 | } else {
|
8262 | ret = '>=' + M + '.' + m + '.' + p +
|
8263 | ' <' + (+M + 1) + '.0.0'
|
8264 | }
|
8265 | }
|
8266 |
|
8267 | debug('caret return', ret)
|
8268 | return ret
|
8269 | })
|
8270 | }
|
8271 |
|
8272 | function replaceXRanges (comp, options) {
|
8273 | debug('replaceXRanges', comp, options)
|
8274 | return comp.split(/\s+/).map(function (comp) {
|
8275 | return replaceXRange(comp, options)
|
8276 | }).join(' ')
|
8277 | }
|
8278 |
|
8279 | function replaceXRange (comp, options) {
|
8280 | comp = comp.trim()
|
8281 | var r = options.loose ? re[XRANGELOOSE] : re[XRANGE]
|
8282 | return comp.replace(r, function (ret, gtlt, M, m, p, pr) {
|
8283 | debug('xRange', comp, ret, gtlt, M, m, p, pr)
|
8284 | var xM = isX(M)
|
8285 | var xm = xM || isX(m)
|
8286 | var xp = xm || isX(p)
|
8287 | var anyX = xp
|
8288 |
|
8289 | if (gtlt === '=' && anyX) {
|
8290 | gtlt = ''
|
8291 | }
|
8292 |
|
8293 | if (xM) {
|
8294 | if (gtlt === '>' || gtlt === '<') {
|
8295 |
|
8296 | ret = '<0.0.0'
|
8297 | } else {
|
8298 |
|
8299 | ret = '*'
|
8300 | }
|
8301 | } else if (gtlt && anyX) {
|
8302 |
|
8303 |
|
8304 | if (xm) {
|
8305 | m = 0
|
8306 | }
|
8307 | p = 0
|
8308 |
|
8309 | if (gtlt === '>') {
|
8310 |
|
8311 |
|
8312 |
|
8313 | gtlt = '>='
|
8314 | if (xm) {
|
8315 | M = +M + 1
|
8316 | m = 0
|
8317 | p = 0
|
8318 | } else {
|
8319 | m = +m + 1
|
8320 | p = 0
|
8321 | }
|
8322 | } else if (gtlt === '<=') {
|
8323 |
|
8324 |
|
8325 | gtlt = '<'
|
8326 | if (xm) {
|
8327 | M = +M + 1
|
8328 | } else {
|
8329 | m = +m + 1
|
8330 | }
|
8331 | }
|
8332 |
|
8333 | ret = gtlt + M + '.' + m + '.' + p
|
8334 | } else if (xm) {
|
8335 | ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
|
8336 | } else if (xp) {
|
8337 | ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
|
8338 | }
|
8339 |
|
8340 | debug('xRange return', ret)
|
8341 |
|
8342 | return ret
|
8343 | })
|
8344 | }
|
8345 |
|
8346 |
|
8347 |
|
8348 | function replaceStars (comp, options) {
|
8349 | debug('replaceStars', comp, options)
|
8350 |
|
8351 | return comp.trim().replace(re[STAR], '')
|
8352 | }
|
8353 |
|
8354 |
|
8355 |
|
8356 |
|
8357 |
|
8358 |
|
8359 | function hyphenReplace ($0,
|
8360 | from, fM, fm, fp, fpr, fb,
|
8361 | to, tM, tm, tp, tpr, tb) {
|
8362 | if (isX(fM)) {
|
8363 | from = ''
|
8364 | } else if (isX(fm)) {
|
8365 | from = '>=' + fM + '.0.0'
|
8366 | } else if (isX(fp)) {
|
8367 | from = '>=' + fM + '.' + fm + '.0'
|
8368 | } else {
|
8369 | from = '>=' + from
|
8370 | }
|
8371 |
|
8372 | if (isX(tM)) {
|
8373 | to = ''
|
8374 | } else if (isX(tm)) {
|
8375 | to = '<' + (+tM + 1) + '.0.0'
|
8376 | } else if (isX(tp)) {
|
8377 | to = '<' + tM + '.' + (+tm + 1) + '.0'
|
8378 | } else if (tpr) {
|
8379 | to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr
|
8380 | } else {
|
8381 | to = '<=' + to
|
8382 | }
|
8383 |
|
8384 | return (from + ' ' + to).trim()
|
8385 | }
|
8386 |
|
8387 |
|
8388 | Range.prototype.test = function (version) {
|
8389 | if (!version) {
|
8390 | return false
|
8391 | }
|
8392 |
|
8393 | if (typeof version === 'string') {
|
8394 | version = new SemVer(version, this.options)
|
8395 | }
|
8396 |
|
8397 | for (var i = 0; i < this.set.length; i++) {
|
8398 | if (testSet(this.set[i], version, this.options)) {
|
8399 | return true
|
8400 | }
|
8401 | }
|
8402 | return false
|
8403 | }
|
8404 |
|
8405 | function testSet (set, version, options) {
|
8406 | for (var i = 0; i < set.length; i++) {
|
8407 | if (!set[i].test(version)) {
|
8408 | return false
|
8409 | }
|
8410 | }
|
8411 |
|
8412 | if (version.prerelease.length && !options.includePrerelease) {
|
8413 |
|
8414 |
|
8415 |
|
8416 |
|
8417 |
|
8418 | for (i = 0; i < set.length; i++) {
|
8419 | debug(set[i].semver)
|
8420 | if (set[i].semver === ANY) {
|
8421 | continue
|
8422 | }
|
8423 |
|
8424 | if (set[i].semver.prerelease.length > 0) {
|
8425 | var allowed = set[i].semver
|
8426 | if (allowed.major === version.major &&
|
8427 | allowed.minor === version.minor &&
|
8428 | allowed.patch === version.patch) {
|
8429 | return true
|
8430 | }
|
8431 | }
|
8432 | }
|
8433 |
|
8434 |
|
8435 | return false
|
8436 | }
|
8437 |
|
8438 | return true
|
8439 | }
|
8440 |
|
8441 | exports.satisfies = satisfies
|
8442 | function satisfies (version, range, options) {
|
8443 | try {
|
8444 | range = new Range(range, options)
|
8445 | } catch (er) {
|
8446 | return false
|
8447 | }
|
8448 | return range.test(version)
|
8449 | }
|
8450 |
|
8451 | exports.maxSatisfying = maxSatisfying
|
8452 | function maxSatisfying (versions, range, options) {
|
8453 | var max = null
|
8454 | var maxSV = null
|
8455 | try {
|
8456 | var rangeObj = new Range(range, options)
|
8457 | } catch (er) {
|
8458 | return null
|
8459 | }
|
8460 | versions.forEach(function (v) {
|
8461 | if (rangeObj.test(v)) {
|
8462 |
|
8463 | if (!max || maxSV.compare(v) === -1) {
|
8464 |
|
8465 | max = v
|
8466 | maxSV = new SemVer(max, options)
|
8467 | }
|
8468 | }
|
8469 | })
|
8470 | return max
|
8471 | }
|
8472 |
|
8473 | exports.minSatisfying = minSatisfying
|
8474 | function minSatisfying (versions, range, options) {
|
8475 | var min = null
|
8476 | var minSV = null
|
8477 | try {
|
8478 | var rangeObj = new Range(range, options)
|
8479 | } catch (er) {
|
8480 | return null
|
8481 | }
|
8482 | versions.forEach(function (v) {
|
8483 | if (rangeObj.test(v)) {
|
8484 |
|
8485 | if (!min || minSV.compare(v) === 1) {
|
8486 |
|
8487 | min = v
|
8488 | minSV = new SemVer(min, options)
|
8489 | }
|
8490 | }
|
8491 | })
|
8492 | return min
|
8493 | }
|
8494 |
|
8495 | exports.minVersion = minVersion
|
8496 | function minVersion (range, loose) {
|
8497 | range = new Range(range, loose)
|
8498 |
|
8499 | var minver = new SemVer('0.0.0')
|
8500 | if (range.test(minver)) {
|
8501 | return minver
|
8502 | }
|
8503 |
|
8504 | minver = new SemVer('0.0.0-0')
|
8505 | if (range.test(minver)) {
|
8506 | return minver
|
8507 | }
|
8508 |
|
8509 | minver = null
|
8510 | for (var i = 0; i < range.set.length; ++i) {
|
8511 | var comparators = range.set[i]
|
8512 |
|
8513 | comparators.forEach(function (comparator) {
|
8514 |
|
8515 | var compver = new SemVer(comparator.semver.version)
|
8516 | switch (comparator.operator) {
|
8517 | case '>':
|
8518 | if (compver.prerelease.length === 0) {
|
8519 | compver.patch++
|
8520 | } else {
|
8521 | compver.prerelease.push(0)
|
8522 | }
|
8523 | compver.raw = compver.format()
|
8524 |
|
8525 | case '':
|
8526 | case '>=':
|
8527 | if (!minver || gt(minver, compver)) {
|
8528 | minver = compver
|
8529 | }
|
8530 | break
|
8531 | case '<':
|
8532 | case '<=':
|
8533 |
|
8534 | break
|
8535 |
|
8536 | default:
|
8537 | throw new Error('Unexpected operation: ' + comparator.operator)
|
8538 | }
|
8539 | })
|
8540 | }
|
8541 |
|
8542 | if (minver && range.test(minver)) {
|
8543 | return minver
|
8544 | }
|
8545 |
|
8546 | return null
|
8547 | }
|
8548 |
|
8549 | exports.validRange = validRange
|
8550 | function validRange (range, options) {
|
8551 | try {
|
8552 |
|
8553 |
|
8554 | return new Range(range, options).range || '*'
|
8555 | } catch (er) {
|
8556 | return null
|
8557 | }
|
8558 | }
|
8559 |
|
8560 |
|
8561 | exports.ltr = ltr
|
8562 | function ltr (version, range, options) {
|
8563 | return outside(version, range, '<', options)
|
8564 | }
|
8565 |
|
8566 |
|
8567 | exports.gtr = gtr
|
8568 | function gtr (version, range, options) {
|
8569 | return outside(version, range, '>', options)
|
8570 | }
|
8571 |
|
8572 | exports.outside = outside
|
8573 | function outside (version, range, hilo, options) {
|
8574 | version = new SemVer(version, options)
|
8575 | range = new Range(range, options)
|
8576 |
|
8577 | var gtfn, ltefn, ltfn, comp, ecomp
|
8578 | switch (hilo) {
|
8579 | case '>':
|
8580 | gtfn = gt
|
8581 | ltefn = lte
|
8582 | ltfn = lt
|
8583 | comp = '>'
|
8584 | ecomp = '>='
|
8585 | break
|
8586 | case '<':
|
8587 | gtfn = lt
|
8588 | ltefn = gte
|
8589 | ltfn = gt
|
8590 | comp = '<'
|
8591 | ecomp = '<='
|
8592 | break
|
8593 | default:
|
8594 | throw new TypeError('Must provide a hilo val of "<" or ">"')
|
8595 | }
|
8596 |
|
8597 |
|
8598 | if (satisfies(version, range, options)) {
|
8599 | return false
|
8600 | }
|
8601 |
|
8602 |
|
8603 |
|
8604 |
|
8605 | for (var i = 0; i < range.set.length; ++i) {
|
8606 | var comparators = range.set[i]
|
8607 |
|
8608 | var high = null
|
8609 | var low = null
|
8610 |
|
8611 | comparators.forEach(function (comparator) {
|
8612 | if (comparator.semver === ANY) {
|
8613 | comparator = new Comparator('>=0.0.0')
|
8614 | }
|
8615 | high = high || comparator
|
8616 | low = low || comparator
|
8617 | if (gtfn(comparator.semver, high.semver, options)) {
|
8618 | high = comparator
|
8619 | } else if (ltfn(comparator.semver, low.semver, options)) {
|
8620 | low = comparator
|
8621 | }
|
8622 | })
|
8623 |
|
8624 |
|
8625 |
|
8626 | if (high.operator === comp || high.operator === ecomp) {
|
8627 | return false
|
8628 | }
|
8629 |
|
8630 |
|
8631 |
|
8632 | if ((!low.operator || low.operator === comp) &&
|
8633 | ltefn(version, low.semver)) {
|
8634 | return false
|
8635 | } else if (low.operator === ecomp && ltfn(version, low.semver)) {
|
8636 | return false
|
8637 | }
|
8638 | }
|
8639 | return true
|
8640 | }
|
8641 |
|
8642 | exports.prerelease = prerelease
|
8643 | function prerelease (version, options) {
|
8644 | var parsed = parse(version, options)
|
8645 | return (parsed && parsed.prerelease.length) ? parsed.prerelease : null
|
8646 | }
|
8647 |
|
8648 | exports.intersects = intersects
|
8649 | function intersects (r1, r2, options) {
|
8650 | r1 = new Range(r1, options)
|
8651 | r2 = new Range(r2, options)
|
8652 | return r1.intersects(r2)
|
8653 | }
|
8654 |
|
8655 | exports.coerce = coerce
|
8656 | function coerce (version) {
|
8657 | if (version instanceof SemVer) {
|
8658 | return version
|
8659 | }
|
8660 |
|
8661 | if (typeof version !== 'string') {
|
8662 | return null
|
8663 | }
|
8664 |
|
8665 | var match = version.match(re[COERCE])
|
8666 |
|
8667 | if (match == null) {
|
8668 | return null
|
8669 | }
|
8670 |
|
8671 | return parse(match[1] +
|
8672 | '.' + (match[2] || '0') +
|
8673 | '.' + (match[3] || '0'))
|
8674 | }
|
8675 |
|
8676 |
|
8677 | }),
|
8678 | ,
|
8679 | ,
|
8680 | ,
|
8681 | ,
|
8682 | ,
|
8683 | ,
|
8684 | ,
|
8685 | ,
|
8686 |
|
8687 | (function(module, __unusedexports, __webpack_require__) {
|
8688 |
|
8689 | "use strict";
|
8690 |
|
8691 | const ansiRegex = __webpack_require__(272);
|
8692 |
|
8693 | module.exports = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;
|
8694 |
|
8695 |
|
8696 | }),
|
8697 | ,
|
8698 |
|
8699 | (function(__unusedmodule, exports, __webpack_require__) {
|
8700 |
|
8701 | "use strict";
|
8702 |
|
8703 | var __importDefault = (this && this.__importDefault) || function (mod) {
|
8704 | return (mod && mod.__esModule) ? mod : { "default": mod };
|
8705 | };
|
8706 | Object.defineProperty(exports, "__esModule", { value: true });
|
8707 | exports.getLambdaOptionsFromFunction = exports.createZip = exports.createLambda = exports.Lambda = void 0;
|
8708 | const assert_1 = __importDefault(__webpack_require__(357));
|
8709 | const async_sema_1 = __importDefault(__webpack_require__(43));
|
8710 | const yazl_1 = __webpack_require__(849);
|
8711 | const minimatch_1 = __importDefault(__webpack_require__(904));
|
8712 | const fs_extra_1 = __webpack_require__(410);
|
8713 | const download_1 = __webpack_require__(629);
|
8714 | const stream_to_buffer_1 = __importDefault(__webpack_require__(510));
|
8715 | class Lambda {
|
8716 | constructor({ zipBuffer, handler, runtime, maxDuration, memory, environment, }) {
|
8717 | this.type = 'Lambda';
|
8718 | this.zipBuffer = zipBuffer;
|
8719 | this.handler = handler;
|
8720 | this.runtime = runtime;
|
8721 | this.memory = memory;
|
8722 | this.maxDuration = maxDuration;
|
8723 | this.environment = environment;
|
8724 | }
|
8725 | }
|
8726 | exports.Lambda = Lambda;
|
8727 | const sema = new async_sema_1.default(10);
|
8728 | const mtime = new Date(1540000000000);
|
8729 | async function createLambda({ files, handler, runtime, memory, maxDuration, environment = {}, }) {
|
8730 | assert_1.default(typeof files === 'object', '"files" must be an object');
|
8731 | assert_1.default(typeof handler === 'string', '"handler" is not a string');
|
8732 | assert_1.default(typeof runtime === 'string', '"runtime" is not a string');
|
8733 | assert_1.default(typeof environment === 'object', '"environment" is not an object');
|
8734 | if (memory !== undefined) {
|
8735 | assert_1.default(typeof memory === 'number', '"memory" is not a number');
|
8736 | }
|
8737 | if (maxDuration !== undefined) {
|
8738 | assert_1.default(typeof maxDuration === 'number', '"maxDuration" is not a number');
|
8739 | }
|
8740 | await sema.acquire();
|
8741 | try {
|
8742 | const zipBuffer = await createZip(files);
|
8743 | return new Lambda({
|
8744 | zipBuffer,
|
8745 | handler,
|
8746 | runtime,
|
8747 | memory,
|
8748 | maxDuration,
|
8749 | environment,
|
8750 | });
|
8751 | }
|
8752 | finally {
|
8753 | sema.release();
|
8754 | }
|
8755 | }
|
8756 | exports.createLambda = createLambda;
|
8757 | async function createZip(files) {
|
8758 | const names = Object.keys(files).sort();
|
8759 | const symlinkTargets = new Map();
|
8760 | for (const name of names) {
|
8761 | const file = files[name];
|
8762 | if (file.mode && download_1.isSymbolicLink(file.mode) && file.type === 'FileFsRef') {
|
8763 | const symlinkTarget = await fs_extra_1.readlink(file.fsPath);
|
8764 | symlinkTargets.set(name, symlinkTarget);
|
8765 | }
|
8766 | }
|
8767 | const zipFile = new yazl_1.ZipFile();
|
8768 | const zipBuffer = await new Promise((resolve, reject) => {
|
8769 | for (const name of names) {
|
8770 | const file = files[name];
|
8771 | const opts = { mode: file.mode, mtime };
|
8772 | const symlinkTarget = symlinkTargets.get(name);
|
8773 | if (typeof symlinkTarget === 'string') {
|
8774 | zipFile.addBuffer(Buffer.from(symlinkTarget, 'utf8'), name, opts);
|
8775 | }
|
8776 | else {
|
8777 | const stream = file.toStream();
|
8778 | stream.on('error', reject);
|
8779 | zipFile.addReadStream(stream, name, opts);
|
8780 | }
|
8781 | }
|
8782 | zipFile.end();
|
8783 | stream_to_buffer_1.default(zipFile.outputStream)
|
8784 | .then(resolve)
|
8785 | .catch(reject);
|
8786 | });
|
8787 | return zipBuffer;
|
8788 | }
|
8789 | exports.createZip = createZip;
|
8790 | async function getLambdaOptionsFromFunction({ sourceFile, config, }) {
|
8791 | if (config && config.functions) {
|
8792 | for (const [pattern, fn] of Object.entries(config.functions)) {
|
8793 | if (sourceFile === pattern || minimatch_1.default(sourceFile, pattern)) {
|
8794 | return {
|
8795 | memory: fn.memory,
|
8796 | maxDuration: fn.maxDuration,
|
8797 | };
|
8798 | }
|
8799 | }
|
8800 | }
|
8801 | return {};
|
8802 | }
|
8803 | exports.getLambdaOptionsFromFunction = getLambdaOptionsFromFunction;
|
8804 |
|
8805 |
|
8806 | }),
|
8807 |
|
8808 | (function(__unusedmodule, exports) {
|
8809 |
|
8810 | "use strict";
|
8811 |
|
8812 |
|
8813 | exports.fromCallback = function (fn) {
|
8814 | return Object.defineProperty(function () {
|
8815 | if (typeof arguments[arguments.length - 1] === 'function') fn.apply(this, arguments)
|
8816 | else {
|
8817 | return new Promise((resolve, reject) => {
|
8818 | arguments[arguments.length] = (err, res) => {
|
8819 | if (err) return reject(err)
|
8820 | resolve(res)
|
8821 | }
|
8822 | arguments.length++
|
8823 | fn.apply(this, arguments)
|
8824 | })
|
8825 | }
|
8826 | }, 'name', { value: fn.name })
|
8827 | }
|
8828 |
|
8829 | exports.fromPromise = function (fn) {
|
8830 | return Object.defineProperty(function () {
|
8831 | const cb = arguments[arguments.length - 1]
|
8832 | if (typeof cb !== 'function') return fn.apply(this, arguments)
|
8833 | else fn.apply(this, arguments).then(r => cb(null, r), cb)
|
8834 | }, 'name', { value: fn.name })
|
8835 | }
|
8836 |
|
8837 |
|
8838 | }),
|
8839 | ,
|
8840 |
|
8841 | (function(module) {
|
8842 |
|
8843 | "use strict";
|
8844 |
|
8845 |
|
8846 | module.exports = function () {
|
8847 |
|
8848 | return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
|
8849 | };
|
8850 |
|
8851 |
|
8852 | }),
|
8853 | ,
|
8854 | ,
|
8855 |
|
8856 | (function(module, __unusedexports, __webpack_require__) {
|
8857 |
|
8858 | "use strict";
|
8859 |
|
8860 | const from = __webpack_require__(663);
|
8861 | const pIsPromise = __webpack_require__(766);
|
8862 |
|
8863 | const intoStream = input => {
|
8864 | if (Array.isArray(input)) {
|
8865 | input = input.slice();
|
8866 | }
|
8867 |
|
8868 | let promise;
|
8869 | let iterator;
|
8870 |
|
8871 | prepare(input);
|
8872 |
|
8873 | function prepare(value) {
|
8874 | input = value;
|
8875 |
|
8876 | if (
|
8877 | input instanceof ArrayBuffer ||
|
8878 | (ArrayBuffer.isView(input) && !Buffer.isBuffer(input))
|
8879 | ) {
|
8880 | input = Buffer.from(input);
|
8881 | }
|
8882 |
|
8883 | promise = pIsPromise(input) ? input : null;
|
8884 |
|
8885 |
|
8886 | const shouldIterate = !promise && input[Symbol.iterator] && typeof input !== 'string' && !Buffer.isBuffer(input);
|
8887 | iterator = shouldIterate ? input[Symbol.iterator]() : null;
|
8888 | }
|
8889 |
|
8890 | return from(function reader(size, callback) {
|
8891 | if (promise) {
|
8892 | (async () => {
|
8893 | try {
|
8894 | await prepare(await promise);
|
8895 | reader.call(this, size, callback);
|
8896 | } catch (error) {
|
8897 | callback(error);
|
8898 | }
|
8899 | })();
|
8900 |
|
8901 | return;
|
8902 | }
|
8903 |
|
8904 | if (iterator) {
|
8905 | const object = iterator.next();
|
8906 | setImmediate(callback, null, object.done ? null : object.value);
|
8907 | return;
|
8908 | }
|
8909 |
|
8910 | if (input.length === 0) {
|
8911 | setImmediate(callback, null, null);
|
8912 | return;
|
8913 | }
|
8914 |
|
8915 | const chunk = input.slice(0, size);
|
8916 | input = input.slice(size);
|
8917 |
|
8918 | setImmediate(callback, null, chunk);
|
8919 | });
|
8920 | };
|
8921 |
|
8922 | module.exports = intoStream;
|
8923 | module.exports.default = intoStream;
|
8924 |
|
8925 | module.exports.object = input => {
|
8926 | if (Array.isArray(input)) {
|
8927 | input = input.slice();
|
8928 | }
|
8929 |
|
8930 | let promise;
|
8931 | let iterator;
|
8932 |
|
8933 | prepare(input);
|
8934 |
|
8935 | function prepare(value) {
|
8936 | input = value;
|
8937 | promise = pIsPromise(input) ? input : null;
|
8938 | iterator = !promise && input[Symbol.iterator] ? input[Symbol.iterator]() : null;
|
8939 | }
|
8940 |
|
8941 | return from.obj(function reader(size, callback) {
|
8942 | if (promise) {
|
8943 | (async () => {
|
8944 | try {
|
8945 | await prepare(await promise);
|
8946 | reader.call(this, size, callback);
|
8947 | } catch (error) {
|
8948 | callback(error);
|
8949 | }
|
8950 | })();
|
8951 |
|
8952 | return;
|
8953 | }
|
8954 |
|
8955 | if (iterator) {
|
8956 | const object = iterator.next();
|
8957 | setImmediate(callback, null, object.done ? null : object.value);
|
8958 | return;
|
8959 | }
|
8960 |
|
8961 | this.push(input);
|
8962 |
|
8963 | setImmediate(callback, null, null);
|
8964 | });
|
8965 | };
|
8966 |
|
8967 |
|
8968 | }),
|
8969 | ,
|
8970 | ,
|
8971 |
|
8972 | (function(module, __unusedexports, __webpack_require__) {
|
8973 |
|
8974 | "use strict";
|
8975 |
|
8976 |
|
8977 | var Type = __webpack_require__(653);
|
8978 |
|
8979 | function resolveJavascriptUndefined() {
|
8980 | return true;
|
8981 | }
|
8982 |
|
8983 | function constructJavascriptUndefined() {
|
8984 |
|
8985 | return undefined;
|
8986 | }
|
8987 |
|
8988 | function representJavascriptUndefined() {
|
8989 | return '';
|
8990 | }
|
8991 |
|
8992 | function isUndefined(object) {
|
8993 | return typeof object === 'undefined';
|
8994 | }
|
8995 |
|
8996 | module.exports = new Type('tag:yaml.org,2002:js/undefined', {
|
8997 | kind: 'scalar',
|
8998 | resolve: resolveJavascriptUndefined,
|
8999 | construct: constructJavascriptUndefined,
|
9000 | predicate: isUndefined,
|
9001 | represent: representJavascriptUndefined
|
9002 | });
|
9003 |
|
9004 |
|
9005 | }),
|
9006 | ,
|
9007 | ,
|
9008 |
|
9009 | (function(module, __unusedexports, __webpack_require__) {
|
9010 |
|
9011 | "use strict";
|
9012 |
|
9013 |
|
9014 |
|
9015 |
|
9016 | var common = __webpack_require__(414);
|
9017 | var YAMLException = __webpack_require__(246);
|
9018 | var Type = __webpack_require__(653);
|
9019 |
|
9020 |
|
9021 | function compileList(schema, name, result) {
|
9022 | var exclude = [];
|
9023 |
|
9024 | schema.include.forEach(function (includedSchema) {
|
9025 | result = compileList(includedSchema, name, result);
|
9026 | });
|
9027 |
|
9028 | schema[name].forEach(function (currentType) {
|
9029 | result.forEach(function (previousType, previousIndex) {
|
9030 | if (previousType.tag === currentType.tag && previousType.kind === currentType.kind) {
|
9031 | exclude.push(previousIndex);
|
9032 | }
|
9033 | });
|
9034 |
|
9035 | result.push(currentType);
|
9036 | });
|
9037 |
|
9038 | return result.filter(function (type, index) {
|
9039 | return exclude.indexOf(index) === -1;
|
9040 | });
|
9041 | }
|
9042 |
|
9043 |
|
9044 | function compileMap(/* lists... */) {
|
9045 | var result = {
|
9046 | scalar: {},
|
9047 | sequence: {},
|
9048 | mapping: {},
|
9049 | fallback: {}
|
9050 | }, index, length;
|
9051 |
|
9052 | function collectType(type) {
|
9053 | result[type.kind][type.tag] = result['fallback'][type.tag] = type;
|
9054 | }
|
9055 |
|
9056 | for (index = 0, length = arguments.length; index < length; index += 1) {
|
9057 | arguments[index].forEach(collectType);
|
9058 | }
|
9059 | return result;
|
9060 | }
|
9061 |
|
9062 |
|
9063 | function Schema(definition) {
|
9064 | this.include = definition.include || [];
|
9065 | this.implicit = definition.implicit || [];
|
9066 | this.explicit = definition.explicit || [];
|
9067 |
|
9068 | this.implicit.forEach(function (type) {
|
9069 | if (type.loadKind && type.loadKind !== 'scalar') {
|
9070 | throw new YAMLException('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.');
|
9071 | }
|
9072 | });
|
9073 |
|
9074 | this.compiledImplicit = compileList(this, 'implicit', []);
|
9075 | this.compiledExplicit = compileList(this, 'explicit', []);
|
9076 | this.compiledTypeMap = compileMap(this.compiledImplicit, this.compiledExplicit);
|
9077 | }
|
9078 |
|
9079 |
|
9080 | Schema.DEFAULT = null;
|
9081 |
|
9082 |
|
9083 | Schema.create = function createSchema() {
|
9084 | var schemas, types;
|
9085 |
|
9086 | switch (arguments.length) {
|
9087 | case 1:
|
9088 | schemas = Schema.DEFAULT;
|
9089 | types = arguments[0];
|
9090 | break;
|
9091 |
|
9092 | case 2:
|
9093 | schemas = arguments[0];
|
9094 | types = arguments[1];
|
9095 | break;
|
9096 |
|
9097 | default:
|
9098 | throw new YAMLException('Wrong number of arguments for Schema.create function');
|
9099 | }
|
9100 |
|
9101 | schemas = common.toArray(schemas);
|
9102 | types = common.toArray(types);
|
9103 |
|
9104 | if (!schemas.every(function (schema) { return schema instanceof Schema; })) {
|
9105 | throw new YAMLException('Specified list of super schemas (or a single Schema object) contains a non-Schema object.');
|
9106 | }
|
9107 |
|
9108 | if (!types.every(function (type) { return type instanceof Type; })) {
|
9109 | throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.');
|
9110 | }
|
9111 |
|
9112 | return new Schema({
|
9113 | include: schemas,
|
9114 | explicit: types
|
9115 | });
|
9116 | };
|
9117 |
|
9118 |
|
9119 | module.exports = Schema;
|
9120 |
|
9121 |
|
9122 | }),
|
9123 |
|
9124 | (function(module) {
|
9125 |
|
9126 | "use strict";
|
9127 |
|
9128 | const ParserEND = 0x110000
|
9129 | class ParserError extends Error {
|
9130 |
|
9131 | constructor (msg, filename, linenumber) {
|
9132 | super('[ParserError] ' + msg, filename, linenumber)
|
9133 | this.name = 'ParserError'
|
9134 | this.code = 'ParserError'
|
9135 | if (Error.captureStackTrace) Error.captureStackTrace(this, ParserError)
|
9136 | }
|
9137 | }
|
9138 | class State {
|
9139 | constructor (parser) {
|
9140 | this.parser = parser
|
9141 | this.buf = ''
|
9142 | this.returned = null
|
9143 | this.result = null
|
9144 | this.resultTable = null
|
9145 | this.resultArr = null
|
9146 | }
|
9147 | }
|
9148 | class Parser {
|
9149 | constructor () {
|
9150 | this.pos = 0
|
9151 | this.col = 0
|
9152 | this.line = 0
|
9153 | this.obj = {}
|
9154 | this.ctx = this.obj
|
9155 | this.stack = []
|
9156 | this._buf = ''
|
9157 | this.char = null
|
9158 | this.ii = 0
|
9159 | this.state = new State(this.parseStart)
|
9160 | }
|
9161 |
|
9162 | parse (str) {
|
9163 |
|
9164 | if (str.length === 0 || str.length == null) return
|
9165 |
|
9166 | this._buf = String(str)
|
9167 | this.ii = -1
|
9168 | this.char = -1
|
9169 | let getNext
|
9170 | while (getNext === false || this.nextChar()) {
|
9171 | getNext = this.runOne()
|
9172 | }
|
9173 | this._buf = null
|
9174 | }
|
9175 | nextChar () {
|
9176 | if (this.char === 0x0A) {
|
9177 | ++this.line
|
9178 | this.col = -1
|
9179 | }
|
9180 | ++this.ii
|
9181 | this.char = this._buf.codePointAt(this.ii)
|
9182 | ++this.pos
|
9183 | ++this.col
|
9184 | return this.haveBuffer()
|
9185 | }
|
9186 | haveBuffer () {
|
9187 | return this.ii < this._buf.length
|
9188 | }
|
9189 | runOne () {
|
9190 | return this.state.parser.call(this, this.state.returned)
|
9191 | }
|
9192 | finish () {
|
9193 | this.char = ParserEND
|
9194 | let last
|
9195 | do {
|
9196 | last = this.state.parser
|
9197 | this.runOne()
|
9198 | } while (this.state.parser !== last)
|
9199 |
|
9200 | this.ctx = null
|
9201 | this.state = null
|
9202 | this._buf = null
|
9203 |
|
9204 | return this.obj
|
9205 | }
|
9206 | next (fn) {
|
9207 |
|
9208 | if (typeof fn !== 'function') throw new ParserError('Tried to set state to non-existent state: ' + JSON.stringify(fn))
|
9209 | this.state.parser = fn
|
9210 | }
|
9211 | goto (fn) {
|
9212 | this.next(fn)
|
9213 | return this.runOne()
|
9214 | }
|
9215 | call (fn, returnWith) {
|
9216 | if (returnWith) this.next(returnWith)
|
9217 | this.stack.push(this.state)
|
9218 | this.state = new State(fn)
|
9219 | }
|
9220 | callNow (fn, returnWith) {
|
9221 | this.call(fn, returnWith)
|
9222 | return this.runOne()
|
9223 | }
|
9224 | return (value) {
|
9225 |
|
9226 | if (this.stack.length === 0) throw this.error(new ParserError('Stack underflow'))
|
9227 | if (value === undefined) value = this.state.buf
|
9228 | this.state = this.stack.pop()
|
9229 | this.state.returned = value
|
9230 | }
|
9231 | returnNow (value) {
|
9232 | this.return(value)
|
9233 | return this.runOne()
|
9234 | }
|
9235 | consume () {
|
9236 |
|
9237 | if (this.char === ParserEND) throw this.error(new ParserError('Unexpected end-of-buffer'))
|
9238 | this.state.buf += this._buf[this.ii]
|
9239 | }
|
9240 | error (err) {
|
9241 | err.line = this.line
|
9242 | err.col = this.col
|
9243 | err.pos = this.pos
|
9244 | return err
|
9245 | }
|
9246 |
|
9247 | parseStart () {
|
9248 | throw new ParserError('Must declare a parseStart method')
|
9249 | }
|
9250 | }
|
9251 | Parser.END = ParserEND
|
9252 | Parser.Error = ParserError
|
9253 | module.exports = Parser
|
9254 |
|
9255 |
|
9256 | }),
|
9257 | ,
|
9258 | ,
|
9259 | ,
|
9260 | ,
|
9261 | ,
|
9262 | ,
|
9263 | ,
|
9264 | ,
|
9265 | ,
|
9266 | ,
|
9267 |
|
9268 | (function(module, __unusedexports, __webpack_require__) {
|
9269 |
|
9270 | var wrappy = __webpack_require__(174)
|
9271 | var reqs = Object.create(null)
|
9272 | var once = __webpack_require__(538)
|
9273 |
|
9274 | module.exports = wrappy(inflight)
|
9275 |
|
9276 | function inflight (key, cb) {
|
9277 | if (reqs[key]) {
|
9278 | reqs[key].push(cb)
|
9279 | return null
|
9280 | } else {
|
9281 | reqs[key] = [cb]
|
9282 | return makeres(key)
|
9283 | }
|
9284 | }
|
9285 |
|
9286 | function makeres (key) {
|
9287 | return once(function RES () {
|
9288 | var cbs = reqs[key]
|
9289 | var len = cbs.length
|
9290 | var args = slice(arguments)
|
9291 |
|
9292 |
|
9293 |
|
9294 |
|
9295 |
|
9296 |
|
9297 |
|
9298 | try {
|
9299 | for (var i = 0; i < len; i++) {
|
9300 | cbs[i].apply(null, args)
|
9301 | }
|
9302 | } finally {
|
9303 | if (cbs.length > len) {
|
9304 |
|
9305 |
|
9306 | cbs.splice(0, len)
|
9307 | process.nextTick(function () {
|
9308 | RES.apply(null, args)
|
9309 | })
|
9310 | } else {
|
9311 | delete reqs[key]
|
9312 | }
|
9313 | }
|
9314 | })
|
9315 | }
|
9316 |
|
9317 | function slice (args) {
|
9318 | var length = args.length
|
9319 | var array = []
|
9320 |
|
9321 | for (var i = 0; i < length; i++) array[i] = args[i]
|
9322 | return array
|
9323 | }
|
9324 |
|
9325 |
|
9326 | }),
|
9327 | ,
|
9328 | ,
|
9329 | ,
|
9330 | ,
|
9331 |
|
9332 | (function(module, __unusedexports, __webpack_require__) {
|
9333 |
|
9334 | "use strict";
|
9335 |
|
9336 |
|
9337 | const u = __webpack_require__(323).fromCallback
|
9338 | const path = __webpack_require__(622)
|
9339 | const fs = __webpack_require__(729)
|
9340 | const _mkdirs = __webpack_require__(648)
|
9341 | const mkdirs = _mkdirs.mkdirs
|
9342 | const mkdirsSync = _mkdirs.mkdirsSync
|
9343 |
|
9344 | const _symlinkPaths = __webpack_require__(383)
|
9345 | const symlinkPaths = _symlinkPaths.symlinkPaths
|
9346 | const symlinkPathsSync = _symlinkPaths.symlinkPathsSync
|
9347 |
|
9348 | const _symlinkType = __webpack_require__(517)
|
9349 | const symlinkType = _symlinkType.symlinkType
|
9350 | const symlinkTypeSync = _symlinkType.symlinkTypeSync
|
9351 |
|
9352 | const pathExists = __webpack_require__(370).pathExists
|
9353 |
|
9354 | function createSymlink (srcpath, dstpath, type, callback) {
|
9355 | callback = (typeof type === 'function') ? type : callback
|
9356 | type = (typeof type === 'function') ? false : type
|
9357 |
|
9358 | pathExists(dstpath, (err, destinationExists) => {
|
9359 | if (err) return callback(err)
|
9360 | if (destinationExists) return callback(null)
|
9361 | symlinkPaths(srcpath, dstpath, (err, relative) => {
|
9362 | if (err) return callback(err)
|
9363 | srcpath = relative.toDst
|
9364 | symlinkType(relative.toCwd, type, (err, type) => {
|
9365 | if (err) return callback(err)
|
9366 | const dir = path.dirname(dstpath)
|
9367 | pathExists(dir, (err, dirExists) => {
|
9368 | if (err) return callback(err)
|
9369 | if (dirExists) return fs.symlink(srcpath, dstpath, type, callback)
|
9370 | mkdirs(dir, err => {
|
9371 | if (err) return callback(err)
|
9372 | fs.symlink(srcpath, dstpath, type, callback)
|
9373 | })
|
9374 | })
|
9375 | })
|
9376 | })
|
9377 | })
|
9378 | }
|
9379 |
|
9380 | function createSymlinkSync (srcpath, dstpath, type) {
|
9381 | const destinationExists = fs.existsSync(dstpath)
|
9382 | if (destinationExists) return undefined
|
9383 |
|
9384 | const relative = symlinkPathsSync(srcpath, dstpath)
|
9385 | srcpath = relative.toDst
|
9386 | type = symlinkTypeSync(relative.toCwd, type)
|
9387 | const dir = path.dirname(dstpath)
|
9388 | const exists = fs.existsSync(dir)
|
9389 | if (exists) return fs.symlinkSync(srcpath, dstpath, type)
|
9390 | mkdirsSync(dir)
|
9391 | return fs.symlinkSync(srcpath, dstpath, type)
|
9392 | }
|
9393 |
|
9394 | module.exports = {
|
9395 | createSymlink: u(createSymlink),
|
9396 | createSymlinkSync
|
9397 | }
|
9398 |
|
9399 |
|
9400 | }),
|
9401 | ,
|
9402 | ,
|
9403 | ,
|
9404 | ,
|
9405 | ,
|
9406 |
|
9407 | (function(module) {
|
9408 |
|
9409 | module.exports = require("assert");
|
9410 |
|
9411 | }),
|
9412 | ,
|
9413 | ,
|
9414 | ,
|
9415 | ,
|
9416 |
|
9417 | (function(__unusedmodule, exports, __webpack_require__) {
|
9418 |
|
9419 | "use strict";
|
9420 |
|
9421 | var __importDefault = (this && this.__importDefault) || function (mod) {
|
9422 | return (mod && mod.__esModule) ? mod : { "default": mod };
|
9423 | };
|
9424 | Object.defineProperty(exports, "__esModule", { value: true });
|
9425 | exports.readConfigFile = void 0;
|
9426 | const js_yaml_1 = __importDefault(__webpack_require__(878));
|
9427 | const toml_1 = __importDefault(__webpack_require__(551));
|
9428 | const fs_extra_1 = __webpack_require__(410);
|
9429 | async function readFileOrNull(file) {
|
9430 | try {
|
9431 | const data = await fs_extra_1.readFile(file);
|
9432 | return data;
|
9433 | }
|
9434 | catch (err) {
|
9435 | if (err.code !== 'ENOENT') {
|
9436 | throw err;
|
9437 | }
|
9438 | }
|
9439 | return null;
|
9440 | }
|
9441 | async function readConfigFile(files) {
|
9442 | files = Array.isArray(files) ? files : [files];
|
9443 | for (const name of files) {
|
9444 | const data = await readFileOrNull(name);
|
9445 | if (data) {
|
9446 | const str = data.toString('utf8');
|
9447 | if (name.endsWith('.json')) {
|
9448 | return JSON.parse(str);
|
9449 | }
|
9450 | else if (name.endsWith('.toml')) {
|
9451 | return toml_1.default.parse(str);
|
9452 | }
|
9453 | else if (name.endsWith('.yaml') || name.endsWith('.yml')) {
|
9454 | return js_yaml_1.default.safeLoad(str, { filename: name });
|
9455 | }
|
9456 | }
|
9457 | }
|
9458 | return null;
|
9459 | }
|
9460 | exports.readConfigFile = readConfigFile;
|
9461 |
|
9462 |
|
9463 | }),
|
9464 | ,
|
9465 | ,
|
9466 |
|
9467 | (function(module) {
|
9468 |
|
9469 | "use strict";
|
9470 |
|
9471 |
|
9472 |
|
9473 |
|
9474 | module.exports = {
|
9475 |
|
9476 | "10029": "maccenteuro",
|
9477 | "maccenteuro": {
|
9478 | "type": "_sbcs",
|
9479 | "chars": "ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ"
|
9480 | },
|
9481 |
|
9482 | "808": "cp808",
|
9483 | "ibm808": "cp808",
|
9484 | "cp808": {
|
9485 | "type": "_sbcs",
|
9486 | "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№€■ "
|
9487 | },
|
9488 |
|
9489 | "mik": {
|
9490 | "type": "_sbcs",
|
9491 | "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя└┴┬├─┼╣║╚╔╩╦╠═╬┐░▒▓│┤№§╗╝┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
|
9492 | },
|
9493 |
|
9494 |
|
9495 | "ascii8bit": "ascii",
|
9496 | "usascii": "ascii",
|
9497 | "ansix34": "ascii",
|
9498 | "ansix341968": "ascii",
|
9499 | "ansix341986": "ascii",
|
9500 | "csascii": "ascii",
|
9501 | "cp367": "ascii",
|
9502 | "ibm367": "ascii",
|
9503 | "isoir6": "ascii",
|
9504 | "iso646us": "ascii",
|
9505 | "iso646irv": "ascii",
|
9506 | "us": "ascii",
|
9507 |
|
9508 | "latin1": "iso88591",
|
9509 | "latin2": "iso88592",
|
9510 | "latin3": "iso88593",
|
9511 | "latin4": "iso88594",
|
9512 | "latin5": "iso88599",
|
9513 | "latin6": "iso885910",
|
9514 | "latin7": "iso885913",
|
9515 | "latin8": "iso885914",
|
9516 | "latin9": "iso885915",
|
9517 | "latin10": "iso885916",
|
9518 |
|
9519 | "csisolatin1": "iso88591",
|
9520 | "csisolatin2": "iso88592",
|
9521 | "csisolatin3": "iso88593",
|
9522 | "csisolatin4": "iso88594",
|
9523 | "csisolatincyrillic": "iso88595",
|
9524 | "csisolatinarabic": "iso88596",
|
9525 | "csisolatingreek" : "iso88597",
|
9526 | "csisolatinhebrew": "iso88598",
|
9527 | "csisolatin5": "iso88599",
|
9528 | "csisolatin6": "iso885910",
|
9529 |
|
9530 | "l1": "iso88591",
|
9531 | "l2": "iso88592",
|
9532 | "l3": "iso88593",
|
9533 | "l4": "iso88594",
|
9534 | "l5": "iso88599",
|
9535 | "l6": "iso885910",
|
9536 | "l7": "iso885913",
|
9537 | "l8": "iso885914",
|
9538 | "l9": "iso885915",
|
9539 | "l10": "iso885916",
|
9540 |
|
9541 | "isoir14": "iso646jp",
|
9542 | "isoir57": "iso646cn",
|
9543 | "isoir100": "iso88591",
|
9544 | "isoir101": "iso88592",
|
9545 | "isoir109": "iso88593",
|
9546 | "isoir110": "iso88594",
|
9547 | "isoir144": "iso88595",
|
9548 | "isoir127": "iso88596",
|
9549 | "isoir126": "iso88597",
|
9550 | "isoir138": "iso88598",
|
9551 | "isoir148": "iso88599",
|
9552 | "isoir157": "iso885910",
|
9553 | "isoir166": "tis620",
|
9554 | "isoir179": "iso885913",
|
9555 | "isoir199": "iso885914",
|
9556 | "isoir203": "iso885915",
|
9557 | "isoir226": "iso885916",
|
9558 |
|
9559 | "cp819": "iso88591",
|
9560 | "ibm819": "iso88591",
|
9561 |
|
9562 | "cyrillic": "iso88595",
|
9563 |
|
9564 | "arabic": "iso88596",
|
9565 | "arabic8": "iso88596",
|
9566 | "ecma114": "iso88596",
|
9567 | "asmo708": "iso88596",
|
9568 |
|
9569 | "greek" : "iso88597",
|
9570 | "greek8" : "iso88597",
|
9571 | "ecma118" : "iso88597",
|
9572 | "elot928" : "iso88597",
|
9573 |
|
9574 | "hebrew": "iso88598",
|
9575 | "hebrew8": "iso88598",
|
9576 |
|
9577 | "turkish": "iso88599",
|
9578 | "turkish8": "iso88599",
|
9579 |
|
9580 | "thai": "iso885911",
|
9581 | "thai8": "iso885911",
|
9582 |
|
9583 | "celtic": "iso885914",
|
9584 | "celtic8": "iso885914",
|
9585 | "isoceltic": "iso885914",
|
9586 |
|
9587 | "tis6200": "tis620",
|
9588 | "tis62025291": "tis620",
|
9589 | "tis62025330": "tis620",
|
9590 |
|
9591 | "10000": "macroman",
|
9592 | "10006": "macgreek",
|
9593 | "10007": "maccyrillic",
|
9594 | "10079": "maciceland",
|
9595 | "10081": "macturkish",
|
9596 |
|
9597 | "cspc8codepage437": "cp437",
|
9598 | "cspc775baltic": "cp775",
|
9599 | "cspc850multilingual": "cp850",
|
9600 | "cspcp852": "cp852",
|
9601 | "cspc862latinhebrew": "cp862",
|
9602 | "cpgr": "cp869",
|
9603 |
|
9604 | "msee": "cp1250",
|
9605 | "mscyrl": "cp1251",
|
9606 | "msansi": "cp1252",
|
9607 | "msgreek": "cp1253",
|
9608 | "msturk": "cp1254",
|
9609 | "mshebr": "cp1255",
|
9610 | "msarab": "cp1256",
|
9611 | "winbaltrim": "cp1257",
|
9612 |
|
9613 | "cp20866": "koi8r",
|
9614 | "20866": "koi8r",
|
9615 | "ibm878": "koi8r",
|
9616 | "cskoi8r": "koi8r",
|
9617 |
|
9618 | "cp21866": "koi8u",
|
9619 | "21866": "koi8u",
|
9620 | "ibm1168": "koi8u",
|
9621 |
|
9622 | "strk10482002": "rk1048",
|
9623 |
|
9624 | "tcvn5712": "tcvn",
|
9625 | "tcvn57121": "tcvn",
|
9626 |
|
9627 | "gb198880": "iso646cn",
|
9628 | "cn": "iso646cn",
|
9629 |
|
9630 | "csiso14jisc6220ro": "iso646jp",
|
9631 | "jisc62201969ro": "iso646jp",
|
9632 | "jp": "iso646jp",
|
9633 |
|
9634 | "cshproman8": "hproman8",
|
9635 | "r8": "hproman8",
|
9636 | "roman8": "hproman8",
|
9637 | "xroman8": "hproman8",
|
9638 | "ibm1051": "hproman8",
|
9639 |
|
9640 | "mac": "macintosh",
|
9641 | "csmacintosh": "macintosh",
|
9642 | };
|
9643 |
|
9644 |
|
9645 |
|
9646 | }),
|
9647 |
|
9648 | (function(module, exports, __webpack_require__) {
|
9649 |
|
9650 | var Stream = __webpack_require__(413);
|
9651 | if (process.env.READABLE_STREAM === 'disable' && Stream) {
|
9652 | module.exports = Stream;
|
9653 | exports = module.exports = Stream.Readable;
|
9654 | exports.Readable = Stream.Readable;
|
9655 | exports.Writable = Stream.Writable;
|
9656 | exports.Duplex = Stream.Duplex;
|
9657 | exports.Transform = Stream.Transform;
|
9658 | exports.PassThrough = Stream.PassThrough;
|
9659 | exports.Stream = Stream;
|
9660 | } else {
|
9661 | exports = module.exports = __webpack_require__(706);
|
9662 | exports.Stream = Stream || exports;
|
9663 | exports.Readable = exports;
|
9664 | exports.Writable = __webpack_require__(860);
|
9665 | exports.Duplex = __webpack_require__(588);
|
9666 | exports.Transform = __webpack_require__(169);
|
9667 | exports.PassThrough = __webpack_require__(498);
|
9668 | }
|
9669 |
|
9670 |
|
9671 | }),
|
9672 | ,
|
9673 | ,
|
9674 | ,
|
9675 |
|
9676 | (function(module, __unusedexports, __webpack_require__) {
|
9677 |
|
9678 | "use strict";
|
9679 |
|
9680 | const u = __webpack_require__(323).fromPromise
|
9681 | const fs = __webpack_require__(936)
|
9682 |
|
9683 | function pathExists (path) {
|
9684 | return fs.access(path).then(() => true).catch(() => false)
|
9685 | }
|
9686 |
|
9687 | module.exports = {
|
9688 | pathExists: u(pathExists),
|
9689 | pathExistsSync: fs.existsSync
|
9690 | }
|
9691 |
|
9692 |
|
9693 | }),
|
9694 | ,
|
9695 | ,
|
9696 | ,
|
9697 |
|
9698 | (function(module, __unusedexports, __webpack_require__) {
|
9699 |
|
9700 | "use strict";
|
9701 |
|
9702 | const cliBoxes = __webpack_require__(132);
|
9703 |
|
9704 | module.exports = cliBoxes;
|
9705 |
|
9706 | module.exports.default = cliBoxes;
|
9707 |
|
9708 |
|
9709 | }),
|
9710 | ,
|
9711 | ,
|
9712 | ,
|
9713 | ,
|
9714 | ,
|
9715 |
|
9716 | (function(__unusedmodule, exports, __webpack_require__) {
|
9717 |
|
9718 |
|
9719 |
|
9720 |
|
9721 |
|
9722 |
|
9723 |
|
9724 |
|
9725 |
|
9726 |
|
9727 |
|
9728 |
|
9729 |
|
9730 |
|
9731 |
|
9732 |
|
9733 |
|
9734 |
|
9735 |
|
9736 |
|
9737 |
|
9738 |
|
9739 | var pathModule = __webpack_require__(622);
|
9740 | var isWindows = process.platform === 'win32';
|
9741 | var fs = __webpack_require__(747);
|
9742 |
|
9743 |
|
9744 |
|
9745 | var DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
|
9746 |
|
9747 | function rethrow() {
|
9748 |
|
9749 |
|
9750 | var callback;
|
9751 | if (DEBUG) {
|
9752 | var backtrace = new Error;
|
9753 | callback = debugCallback;
|
9754 | } else
|
9755 | callback = missingCallback;
|
9756 |
|
9757 | return callback;
|
9758 |
|
9759 | function debugCallback(err) {
|
9760 | if (err) {
|
9761 | backtrace.message = err.message;
|
9762 | err = backtrace;
|
9763 | missingCallback(err);
|
9764 | }
|
9765 | }
|
9766 |
|
9767 | function missingCallback(err) {
|
9768 | if (err) {
|
9769 | if (process.throwDeprecation)
|
9770 | throw err;
|
9771 | else if (!process.noDeprecation) {
|
9772 | var msg = 'fs: missing callback ' + (err.stack || err.message);
|
9773 | if (process.traceDeprecation)
|
9774 | console.trace(msg);
|
9775 | else
|
9776 | console.error(msg);
|
9777 | }
|
9778 | }
|
9779 | }
|
9780 | }
|
9781 |
|
9782 | function maybeCallback(cb) {
|
9783 | return typeof cb === 'function' ? cb : rethrow();
|
9784 | }
|
9785 |
|
9786 | var normalize = pathModule.normalize;
|
9787 |
|
9788 |
|
9789 |
|
9790 | if (isWindows) {
|
9791 | var nextPartRe = /(.*?)(?:[\/\\]+|$)/g;
|
9792 | } else {
|
9793 | var nextPartRe = /(.*?)(?:[\/]+|$)/g;
|
9794 | }
|
9795 |
|
9796 |
|
9797 | if (isWindows) {
|
9798 | var splitRootRe = /^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;
|
9799 | } else {
|
9800 | var splitRootRe = /^[\/]*/;
|
9801 | }
|
9802 |
|
9803 | exports.realpathSync = function realpathSync(p, cache) {
|
9804 |
|
9805 | p = pathModule.resolve(p);
|
9806 |
|
9807 | if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
|
9808 | return cache[p];
|
9809 | }
|
9810 |
|
9811 | var original = p,
|
9812 | seenLinks = {},
|
9813 | knownHard = {};
|
9814 |
|
9815 |
|
9816 | var pos;
|
9817 |
|
9818 | var current;
|
9819 |
|
9820 | var base;
|
9821 |
|
9822 | var previous;
|
9823 |
|
9824 | start();
|
9825 |
|
9826 | function start() {
|
9827 |
|
9828 | var m = splitRootRe.exec(p);
|
9829 | pos = m[0].length;
|
9830 | current = m[0];
|
9831 | base = m[0];
|
9832 | previous = '';
|
9833 |
|
9834 |
|
9835 | if (isWindows && !knownHard[base]) {
|
9836 | fs.lstatSync(base);
|
9837 | knownHard[base] = true;
|
9838 | }
|
9839 | }
|
9840 |
|
9841 |
|
9842 |
|
9843 |
|
9844 | while (pos < p.length) {
|
9845 |
|
9846 | nextPartRe.lastIndex = pos;
|
9847 | var result = nextPartRe.exec(p);
|
9848 | previous = current;
|
9849 | current += result[0];
|
9850 | base = previous + result[1];
|
9851 | pos = nextPartRe.lastIndex;
|
9852 |
|
9853 |
|
9854 | if (knownHard[base] || (cache && cache[base] === base)) {
|
9855 | continue;
|
9856 | }
|
9857 |
|
9858 | var resolvedLink;
|
9859 | if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
|
9860 |
|
9861 | resolvedLink = cache[base];
|
9862 | } else {
|
9863 | var stat = fs.lstatSync(base);
|
9864 | if (!stat.isSymbolicLink()) {
|
9865 | knownHard[base] = true;
|
9866 | if (cache) cache[base] = base;
|
9867 | continue;
|
9868 | }
|
9869 |
|
9870 |
|
9871 |
|
9872 | var linkTarget = null;
|
9873 | if (!isWindows) {
|
9874 | var id = stat.dev.toString(32) + ':' + stat.ino.toString(32);
|
9875 | if (seenLinks.hasOwnProperty(id)) {
|
9876 | linkTarget = seenLinks[id];
|
9877 | }
|
9878 | }
|
9879 | if (linkTarget === null) {
|
9880 | fs.statSync(base);
|
9881 | linkTarget = fs.readlinkSync(base);
|
9882 | }
|
9883 | resolvedLink = pathModule.resolve(previous, linkTarget);
|
9884 |
|
9885 | if (cache) cache[base] = resolvedLink;
|
9886 | if (!isWindows) seenLinks[id] = linkTarget;
|
9887 | }
|
9888 |
|
9889 |
|
9890 | p = pathModule.resolve(resolvedLink, p.slice(pos));
|
9891 | start();
|
9892 | }
|
9893 |
|
9894 | if (cache) cache[original] = p;
|
9895 |
|
9896 | return p;
|
9897 | };
|
9898 |
|
9899 |
|
9900 | exports.realpath = function realpath(p, cache, cb) {
|
9901 | if (typeof cb !== 'function') {
|
9902 | cb = maybeCallback(cache);
|
9903 | cache = null;
|
9904 | }
|
9905 |
|
9906 |
|
9907 | p = pathModule.resolve(p);
|
9908 |
|
9909 | if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
|
9910 | return process.nextTick(cb.bind(null, null, cache[p]));
|
9911 | }
|
9912 |
|
9913 | var original = p,
|
9914 | seenLinks = {},
|
9915 | knownHard = {};
|
9916 |
|
9917 |
|
9918 | var pos;
|
9919 |
|
9920 | var current;
|
9921 |
|
9922 | var base;
|
9923 |
|
9924 | var previous;
|
9925 |
|
9926 | start();
|
9927 |
|
9928 | function start() {
|
9929 |
|
9930 | var m = splitRootRe.exec(p);
|
9931 | pos = m[0].length;
|
9932 | current = m[0];
|
9933 | base = m[0];
|
9934 | previous = '';
|
9935 |
|
9936 |
|
9937 | if (isWindows && !knownHard[base]) {
|
9938 | fs.lstat(base, function(err) {
|
9939 | if (err) return cb(err);
|
9940 | knownHard[base] = true;
|
9941 | LOOP();
|
9942 | });
|
9943 | } else {
|
9944 | process.nextTick(LOOP);
|
9945 | }
|
9946 | }
|
9947 |
|
9948 |
|
9949 |
|
9950 | function LOOP() {
|
9951 |
|
9952 | if (pos >= p.length) {
|
9953 | if (cache) cache[original] = p;
|
9954 | return cb(null, p);
|
9955 | }
|
9956 |
|
9957 |
|
9958 | nextPartRe.lastIndex = pos;
|
9959 | var result = nextPartRe.exec(p);
|
9960 | previous = current;
|
9961 | current += result[0];
|
9962 | base = previous + result[1];
|
9963 | pos = nextPartRe.lastIndex;
|
9964 |
|
9965 |
|
9966 | if (knownHard[base] || (cache && cache[base] === base)) {
|
9967 | return process.nextTick(LOOP);
|
9968 | }
|
9969 |
|
9970 | if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
|
9971 |
|
9972 | return gotResolvedLink(cache[base]);
|
9973 | }
|
9974 |
|
9975 | return fs.lstat(base, gotStat);
|
9976 | }
|
9977 |
|
9978 | function gotStat(err, stat) {
|
9979 | if (err) return cb(err);
|
9980 |
|
9981 |
|
9982 | if (!stat.isSymbolicLink()) {
|
9983 | knownHard[base] = true;
|
9984 | if (cache) cache[base] = base;
|
9985 | return process.nextTick(LOOP);
|
9986 | }
|
9987 |
|
9988 |
|
9989 |
|
9990 |
|
9991 | if (!isWindows) {
|
9992 | var id = stat.dev.toString(32) + ':' + stat.ino.toString(32);
|
9993 | if (seenLinks.hasOwnProperty(id)) {
|
9994 | return gotTarget(null, seenLinks[id], base);
|
9995 | }
|
9996 | }
|
9997 | fs.stat(base, function(err) {
|
9998 | if (err) return cb(err);
|
9999 |
|
10000 | fs.readlink(base, function(err, target) {
|
10001 | if (!isWindows) seenLinks[id] = target;
|
10002 | gotTarget(err, target);
|
10003 | });
|
10004 | });
|
10005 | }
|
10006 |
|
10007 | function gotTarget(err, target, base) {
|
10008 | if (err) return cb(err);
|
10009 |
|
10010 | var resolvedLink = pathModule.resolve(previous, target);
|
10011 | if (cache) cache[base] = resolvedLink;
|
10012 | gotResolvedLink(resolvedLink);
|
10013 | }
|
10014 |
|
10015 | function gotResolvedLink(resolvedLink) {
|
10016 |
|
10017 | p = pathModule.resolve(resolvedLink, p.slice(pos));
|
10018 | start();
|
10019 | }
|
10020 | };
|
10021 |
|
10022 |
|
10023 | }),
|
10024 | ,
|
10025 | ,
|
10026 |
|
10027 | (function(module, __unusedexports, __webpack_require__) {
|
10028 |
|
10029 | "use strict";
|
10030 |
|
10031 |
|
10032 | const path = __webpack_require__(622)
|
10033 | const fs = __webpack_require__(729)
|
10034 | const pathExists = __webpack_require__(370).pathExists
|
10035 |
|
10036 |
|
10037 |
|
10038 |
|
10039 |
|
10040 |
|
10041 |
|
10042 |
|
10043 |
|
10044 |
|
10045 |
|
10046 |
|
10047 |
|
10048 |
|
10049 |
|
10050 |
|
10051 |
|
10052 |
|
10053 |
|
10054 |
|
10055 |
|
10056 |
|
10057 |
|
10058 | function symlinkPaths (srcpath, dstpath, callback) {
|
10059 | if (path.isAbsolute(srcpath)) {
|
10060 | return fs.lstat(srcpath, (err) => {
|
10061 | if (err) {
|
10062 | err.message = err.message.replace('lstat', 'ensureSymlink')
|
10063 | return callback(err)
|
10064 | }
|
10065 | return callback(null, {
|
10066 | 'toCwd': srcpath,
|
10067 | 'toDst': srcpath
|
10068 | })
|
10069 | })
|
10070 | } else {
|
10071 | const dstdir = path.dirname(dstpath)
|
10072 | const relativeToDst = path.join(dstdir, srcpath)
|
10073 | return pathExists(relativeToDst, (err, exists) => {
|
10074 | if (err) return callback(err)
|
10075 | if (exists) {
|
10076 | return callback(null, {
|
10077 | 'toCwd': relativeToDst,
|
10078 | 'toDst': srcpath
|
10079 | })
|
10080 | } else {
|
10081 | return fs.lstat(srcpath, (err) => {
|
10082 | if (err) {
|
10083 | err.message = err.message.replace('lstat', 'ensureSymlink')
|
10084 | return callback(err)
|
10085 | }
|
10086 | return callback(null, {
|
10087 | 'toCwd': srcpath,
|
10088 | 'toDst': path.relative(dstdir, srcpath)
|
10089 | })
|
10090 | })
|
10091 | }
|
10092 | })
|
10093 | }
|
10094 | }
|
10095 |
|
10096 | function symlinkPathsSync (srcpath, dstpath) {
|
10097 | let exists
|
10098 | if (path.isAbsolute(srcpath)) {
|
10099 | exists = fs.existsSync(srcpath)
|
10100 | if (!exists) throw new Error('absolute srcpath does not exist')
|
10101 | return {
|
10102 | 'toCwd': srcpath,
|
10103 | 'toDst': srcpath
|
10104 | }
|
10105 | } else {
|
10106 | const dstdir = path.dirname(dstpath)
|
10107 | const relativeToDst = path.join(dstdir, srcpath)
|
10108 | exists = fs.existsSync(relativeToDst)
|
10109 | if (exists) {
|
10110 | return {
|
10111 | 'toCwd': relativeToDst,
|
10112 | 'toDst': srcpath
|
10113 | }
|
10114 | } else {
|
10115 | exists = fs.existsSync(srcpath)
|
10116 | if (!exists) throw new Error('relative srcpath does not exist')
|
10117 | return {
|
10118 | 'toCwd': srcpath,
|
10119 | 'toDst': path.relative(dstdir, srcpath)
|
10120 | }
|
10121 | }
|
10122 | }
|
10123 | }
|
10124 |
|
10125 | module.exports = {
|
10126 | symlinkPaths,
|
10127 | symlinkPathsSync
|
10128 | }
|
10129 |
|
10130 |
|
10131 | }),
|
10132 | ,
|
10133 | ,
|
10134 | ,
|
10135 | ,
|
10136 | ,
|
10137 | ,
|
10138 | ,
|
10139 |
|
10140 | (function(module, exports) {
|
10141 |
|
10142 | exports = module.exports = SemVer
|
10143 |
|
10144 | var debug
|
10145 |
|
10146 | if (typeof process === 'object' &&
|
10147 | process.env &&
|
10148 | process.env.NODE_DEBUG &&
|
10149 | /\bsemver\b/i.test(process.env.NODE_DEBUG)) {
|
10150 | debug = function () {
|
10151 | var args = Array.prototype.slice.call(arguments, 0)
|
10152 | args.unshift('SEMVER')
|
10153 | console.log.apply(console, args)
|
10154 | }
|
10155 | } else {
|
10156 | debug = function () {}
|
10157 | }
|
10158 |
|
10159 |
|
10160 |
|
10161 | exports.SEMVER_SPEC_VERSION = '2.0.0'
|
10162 |
|
10163 | var MAX_LENGTH = 256
|
10164 | var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
|
10165 | 9007199254740991
|
10166 |
|
10167 |
|
10168 | var MAX_SAFE_COMPONENT_LENGTH = 16
|
10169 |
|
10170 |
|
10171 | var re = exports.re = []
|
10172 | var src = exports.src = []
|
10173 | var R = 0
|
10174 |
|
10175 |
|
10176 |
|
10177 |
|
10178 |
|
10179 |
|
10180 |
|
10181 | var NUMERICIDENTIFIER = R++
|
10182 | src[NUMERICIDENTIFIER] = '0|[1-9]\\d*'
|
10183 | var NUMERICIDENTIFIERLOOSE = R++
|
10184 | src[NUMERICIDENTIFIERLOOSE] = '[0-9]+'
|
10185 |
|
10186 |
|
10187 |
|
10188 |
|
10189 |
|
10190 | var NONNUMERICIDENTIFIER = R++
|
10191 | src[NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*'
|
10192 |
|
10193 |
|
10194 |
|
10195 |
|
10196 | var MAINVERSION = R++
|
10197 | src[MAINVERSION] = '(' + src[NUMERICIDENTIFIER] + ')\\.' +
|
10198 | '(' + src[NUMERICIDENTIFIER] + ')\\.' +
|
10199 | '(' + src[NUMERICIDENTIFIER] + ')'
|
10200 |
|
10201 | var MAINVERSIONLOOSE = R++
|
10202 | src[MAINVERSIONLOOSE] = '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
|
10203 | '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
|
10204 | '(' + src[NUMERICIDENTIFIERLOOSE] + ')'
|
10205 |
|
10206 |
|
10207 |
|
10208 |
|
10209 | var PRERELEASEIDENTIFIER = R++
|
10210 | src[PRERELEASEIDENTIFIER] = '(?:' + src[NUMERICIDENTIFIER] +
|
10211 | '|' + src[NONNUMERICIDENTIFIER] + ')'
|
10212 |
|
10213 | var PRERELEASEIDENTIFIERLOOSE = R++
|
10214 | src[PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[NUMERICIDENTIFIERLOOSE] +
|
10215 | '|' + src[NONNUMERICIDENTIFIER] + ')'
|
10216 |
|
10217 |
|
10218 |
|
10219 |
|
10220 |
|
10221 | var PRERELEASE = R++
|
10222 | src[PRERELEASE] = '(?:-(' + src[PRERELEASEIDENTIFIER] +
|
10223 | '(?:\\.' + src[PRERELEASEIDENTIFIER] + ')*))'
|
10224 |
|
10225 | var PRERELEASELOOSE = R++
|
10226 | src[PRERELEASELOOSE] = '(?:-?(' + src[PRERELEASEIDENTIFIERLOOSE] +
|
10227 | '(?:\\.' + src[PRERELEASEIDENTIFIERLOOSE] + ')*))'
|
10228 |
|
10229 |
|
10230 |
|
10231 |
|
10232 | var BUILDIDENTIFIER = R++
|
10233 | src[BUILDIDENTIFIER] = '[0-9A-Za-z-]+'
|
10234 |
|
10235 |
|
10236 |
|
10237 |
|
10238 |
|
10239 | var BUILD = R++
|
10240 | src[BUILD] = '(?:\\+(' + src[BUILDIDENTIFIER] +
|
10241 | '(?:\\.' + src[BUILDIDENTIFIER] + ')*))'
|
10242 |
|
10243 |
|
10244 |
|
10245 |
|
10246 |
|
10247 |
|
10248 |
|
10249 |
|
10250 |
|
10251 |
|
10252 | var FULL = R++
|
10253 | var FULLPLAIN = 'v?' + src[MAINVERSION] +
|
10254 | src[PRERELEASE] + '?' +
|
10255 | src[BUILD] + '?'
|
10256 |
|
10257 | src[FULL] = '^' + FULLPLAIN + '$'
|
10258 |
|
10259 |
|
10260 |
|
10261 |
|
10262 | var LOOSEPLAIN = '[v=\\s]*' + src[MAINVERSIONLOOSE] +
|
10263 | src[PRERELEASELOOSE] + '?' +
|
10264 | src[BUILD] + '?'
|
10265 |
|
10266 | var LOOSE = R++
|
10267 | src[LOOSE] = '^' + LOOSEPLAIN + '$'
|
10268 |
|
10269 | var GTLT = R++
|
10270 | src[GTLT] = '((?:<|>)?=?)'
|
10271 |
|
10272 |
|
10273 |
|
10274 |
|
10275 | var XRANGEIDENTIFIERLOOSE = R++
|
10276 | src[XRANGEIDENTIFIERLOOSE] = src[NUMERICIDENTIFIERLOOSE] + '|x|X|\\*'
|
10277 | var XRANGEIDENTIFIER = R++
|
10278 | src[XRANGEIDENTIFIER] = src[NUMERICIDENTIFIER] + '|x|X|\\*'
|
10279 |
|
10280 | var XRANGEPLAIN = R++
|
10281 | src[XRANGEPLAIN] = '[v=\\s]*(' + src[XRANGEIDENTIFIER] + ')' +
|
10282 | '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
|
10283 | '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
|
10284 | '(?:' + src[PRERELEASE] + ')?' +
|
10285 | src[BUILD] + '?' +
|
10286 | ')?)?'
|
10287 |
|
10288 | var XRANGEPLAINLOOSE = R++
|
10289 | src[XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
|
10290 | '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
|
10291 | '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
|
10292 | '(?:' + src[PRERELEASELOOSE] + ')?' +
|
10293 | src[BUILD] + '?' +
|
10294 | ')?)?'
|
10295 |
|
10296 | var XRANGE = R++
|
10297 | src[XRANGE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAIN] + '$'
|
10298 | var XRANGELOOSE = R++
|
10299 | src[XRANGELOOSE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAINLOOSE] + '$'
|
10300 |
|
10301 |
|
10302 |
|
10303 | var COERCE = R++
|
10304 | src[COERCE] = '(?:^|[^\\d])' +
|
10305 | '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' +
|
10306 | '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
|
10307 | '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
|
10308 | '(?:$|[^\\d])'
|
10309 |
|
10310 |
|
10311 |
|
10312 | var LONETILDE = R++
|
10313 | src[LONETILDE] = '(?:~>?)'
|
10314 |
|
10315 | var TILDETRIM = R++
|
10316 | src[TILDETRIM] = '(\\s*)' + src[LONETILDE] + '\\s+'
|
10317 | re[TILDETRIM] = new RegExp(src[TILDETRIM], 'g')
|
10318 | var tildeTrimReplace = '$1~'
|
10319 |
|
10320 | var TILDE = R++
|
10321 | src[TILDE] = '^' + src[LONETILDE] + src[XRANGEPLAIN] + '$'
|
10322 | var TILDELOOSE = R++
|
10323 | src[TILDELOOSE] = '^' + src[LONETILDE] + src[XRANGEPLAINLOOSE] + '$'
|
10324 |
|
10325 |
|
10326 |
|
10327 | var LONECARET = R++
|
10328 | src[LONECARET] = '(?:\\^)'
|
10329 |
|
10330 | var CARETTRIM = R++
|
10331 | src[CARETTRIM] = '(\\s*)' + src[LONECARET] + '\\s+'
|
10332 | re[CARETTRIM] = new RegExp(src[CARETTRIM], 'g')
|
10333 | var caretTrimReplace = '$1^'
|
10334 |
|
10335 | var CARET = R++
|
10336 | src[CARET] = '^' + src[LONECARET] + src[XRANGEPLAIN] + '$'
|
10337 | var CARETLOOSE = R++
|
10338 | src[CARETLOOSE] = '^' + src[LONECARET] + src[XRANGEPLAINLOOSE] + '$'
|
10339 |
|
10340 |
|
10341 | var COMPARATORLOOSE = R++
|
10342 | src[COMPARATORLOOSE] = '^' + src[GTLT] + '\\s*(' + LOOSEPLAIN + ')$|^$'
|
10343 | var COMPARATOR = R++
|
10344 | src[COMPARATOR] = '^' + src[GTLT] + '\\s*(' + FULLPLAIN + ')$|^$'
|
10345 |
|
10346 |
|
10347 |
|
10348 | var COMPARATORTRIM = R++
|
10349 | src[COMPARATORTRIM] = '(\\s*)' + src[GTLT] +
|
10350 | '\\s*(' + LOOSEPLAIN + '|' + src[XRANGEPLAIN] + ')'
|
10351 |
|
10352 |
|
10353 | re[COMPARATORTRIM] = new RegExp(src[COMPARATORTRIM], 'g')
|
10354 | var comparatorTrimReplace = '$1$2$3'
|
10355 |
|
10356 |
|
10357 |
|
10358 |
|
10359 |
|
10360 | var HYPHENRANGE = R++
|
10361 | src[HYPHENRANGE] = '^\\s*(' + src[XRANGEPLAIN] + ')' +
|
10362 | '\\s+-\\s+' +
|
10363 | '(' + src[XRANGEPLAIN] + ')' +
|
10364 | '\\s*$'
|
10365 |
|
10366 | var HYPHENRANGELOOSE = R++
|
10367 | src[HYPHENRANGELOOSE] = '^\\s*(' + src[XRANGEPLAINLOOSE] + ')' +
|
10368 | '\\s+-\\s+' +
|
10369 | '(' + src[XRANGEPLAINLOOSE] + ')' +
|
10370 | '\\s*$'
|
10371 |
|
10372 |
|
10373 | var STAR = R++
|
10374 | src[STAR] = '(<|>)?=?\\s*\\*'
|
10375 |
|
10376 |
|
10377 |
|
10378 | for (var i = 0; i < R; i++) {
|
10379 | debug(i, src[i])
|
10380 | if (!re[i]) {
|
10381 | re[i] = new RegExp(src[i])
|
10382 | }
|
10383 | }
|
10384 |
|
10385 | exports.parse = parse
|
10386 | function parse (version, options) {
|
10387 | if (!options || typeof options !== 'object') {
|
10388 | options = {
|
10389 | loose: !!options,
|
10390 | includePrerelease: false
|
10391 | }
|
10392 | }
|
10393 |
|
10394 | if (version instanceof SemVer) {
|
10395 | return version
|
10396 | }
|
10397 |
|
10398 | if (typeof version !== 'string') {
|
10399 | return null
|
10400 | }
|
10401 |
|
10402 | if (version.length > MAX_LENGTH) {
|
10403 | return null
|
10404 | }
|
10405 |
|
10406 | var r = options.loose ? re[LOOSE] : re[FULL]
|
10407 | if (!r.test(version)) {
|
10408 | return null
|
10409 | }
|
10410 |
|
10411 | try {
|
10412 | return new SemVer(version, options)
|
10413 | } catch (er) {
|
10414 | return null
|
10415 | }
|
10416 | }
|
10417 |
|
10418 | exports.valid = valid
|
10419 | function valid (version, options) {
|
10420 | var v = parse(version, options)
|
10421 | return v ? v.version : null
|
10422 | }
|
10423 |
|
10424 | exports.clean = clean
|
10425 | function clean (version, options) {
|
10426 | var s = parse(version.trim().replace(/^[=v]+/, ''), options)
|
10427 | return s ? s.version : null
|
10428 | }
|
10429 |
|
10430 | exports.SemVer = SemVer
|
10431 |
|
10432 | function SemVer (version, options) {
|
10433 | if (!options || typeof options !== 'object') {
|
10434 | options = {
|
10435 | loose: !!options,
|
10436 | includePrerelease: false
|
10437 | }
|
10438 | }
|
10439 | if (version instanceof SemVer) {
|
10440 | if (version.loose === options.loose) {
|
10441 | return version
|
10442 | } else {
|
10443 | version = version.version
|
10444 | }
|
10445 | } else if (typeof version !== 'string') {
|
10446 | throw new TypeError('Invalid Version: ' + version)
|
10447 | }
|
10448 |
|
10449 | if (version.length > MAX_LENGTH) {
|
10450 | throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')
|
10451 | }
|
10452 |
|
10453 | if (!(this instanceof SemVer)) {
|
10454 | return new SemVer(version, options)
|
10455 | }
|
10456 |
|
10457 | debug('SemVer', version, options)
|
10458 | this.options = options
|
10459 | this.loose = !!options.loose
|
10460 |
|
10461 | var m = version.trim().match(options.loose ? re[LOOSE] : re[FULL])
|
10462 |
|
10463 | if (!m) {
|
10464 | throw new TypeError('Invalid Version: ' + version)
|
10465 | }
|
10466 |
|
10467 | this.raw = version
|
10468 |
|
10469 |
|
10470 | this.major = +m[1]
|
10471 | this.minor = +m[2]
|
10472 | this.patch = +m[3]
|
10473 |
|
10474 | if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
|
10475 | throw new TypeError('Invalid major version')
|
10476 | }
|
10477 |
|
10478 | if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
|
10479 | throw new TypeError('Invalid minor version')
|
10480 | }
|
10481 |
|
10482 | if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
|
10483 | throw new TypeError('Invalid patch version')
|
10484 | }
|
10485 |
|
10486 |
|
10487 | if (!m[4]) {
|
10488 | this.prerelease = []
|
10489 | } else {
|
10490 | this.prerelease = m[4].split('.').map(function (id) {
|
10491 | if (/^[0-9]+$/.test(id)) {
|
10492 | var num = +id
|
10493 | if (num >= 0 && num < MAX_SAFE_INTEGER) {
|
10494 | return num
|
10495 | }
|
10496 | }
|
10497 | return id
|
10498 | })
|
10499 | }
|
10500 |
|
10501 | this.build = m[5] ? m[5].split('.') : []
|
10502 | this.format()
|
10503 | }
|
10504 |
|
10505 | SemVer.prototype.format = function () {
|
10506 | this.version = this.major + '.' + this.minor + '.' + this.patch
|
10507 | if (this.prerelease.length) {
|
10508 | this.version += '-' + this.prerelease.join('.')
|
10509 | }
|
10510 | return this.version
|
10511 | }
|
10512 |
|
10513 | SemVer.prototype.toString = function () {
|
10514 | return this.version
|
10515 | }
|
10516 |
|
10517 | SemVer.prototype.compare = function (other) {
|
10518 | debug('SemVer.compare', this.version, this.options, other)
|
10519 | if (!(other instanceof SemVer)) {
|
10520 | other = new SemVer(other, this.options)
|
10521 | }
|
10522 |
|
10523 | return this.compareMain(other) || this.comparePre(other)
|
10524 | }
|
10525 |
|
10526 | SemVer.prototype.compareMain = function (other) {
|
10527 | if (!(other instanceof SemVer)) {
|
10528 | other = new SemVer(other, this.options)
|
10529 | }
|
10530 |
|
10531 | return compareIdentifiers(this.major, other.major) ||
|
10532 | compareIdentifiers(this.minor, other.minor) ||
|
10533 | compareIdentifiers(this.patch, other.patch)
|
10534 | }
|
10535 |
|
10536 | SemVer.prototype.comparePre = function (other) {
|
10537 | if (!(other instanceof SemVer)) {
|
10538 | other = new SemVer(other, this.options)
|
10539 | }
|
10540 |
|
10541 |
|
10542 | if (this.prerelease.length && !other.prerelease.length) {
|
10543 | return -1
|
10544 | } else if (!this.prerelease.length && other.prerelease.length) {
|
10545 | return 1
|
10546 | } else if (!this.prerelease.length && !other.prerelease.length) {
|
10547 | return 0
|
10548 | }
|
10549 |
|
10550 | var i = 0
|
10551 | do {
|
10552 | var a = this.prerelease[i]
|
10553 | var b = other.prerelease[i]
|
10554 | debug('prerelease compare', i, a, b)
|
10555 | if (a === undefined && b === undefined) {
|
10556 | return 0
|
10557 | } else if (b === undefined) {
|
10558 | return 1
|
10559 | } else if (a === undefined) {
|
10560 | return -1
|
10561 | } else if (a === b) {
|
10562 | continue
|
10563 | } else {
|
10564 | return compareIdentifiers(a, b)
|
10565 | }
|
10566 | } while (++i)
|
10567 | }
|
10568 |
|
10569 | SemVer.prototype.compareBuild = function (other) {
|
10570 | if (!(other instanceof SemVer)) {
|
10571 | other = new SemVer(other, this.options)
|
10572 | }
|
10573 |
|
10574 | var i = 0
|
10575 | do {
|
10576 | var a = this.build[i]
|
10577 | var b = other.build[i]
|
10578 | debug('prerelease compare', i, a, b)
|
10579 | if (a === undefined && b === undefined) {
|
10580 | return 0
|
10581 | } else if (b === undefined) {
|
10582 | return 1
|
10583 | } else if (a === undefined) {
|
10584 | return -1
|
10585 | } else if (a === b) {
|
10586 | continue
|
10587 | } else {
|
10588 | return compareIdentifiers(a, b)
|
10589 | }
|
10590 | } while (++i)
|
10591 | }
|
10592 |
|
10593 |
|
10594 |
|
10595 | SemVer.prototype.inc = function (release, identifier) {
|
10596 | switch (release) {
|
10597 | case 'premajor':
|
10598 | this.prerelease.length = 0
|
10599 | this.patch = 0
|
10600 | this.minor = 0
|
10601 | this.major++
|
10602 | this.inc('pre', identifier)
|
10603 | break
|
10604 | case 'preminor':
|
10605 | this.prerelease.length = 0
|
10606 | this.patch = 0
|
10607 | this.minor++
|
10608 | this.inc('pre', identifier)
|
10609 | break
|
10610 | case 'prepatch':
|
10611 |
|
10612 |
|
10613 |
|
10614 | this.prerelease.length = 0
|
10615 | this.inc('patch', identifier)
|
10616 | this.inc('pre', identifier)
|
10617 | break
|
10618 |
|
10619 |
|
10620 | case 'prerelease':
|
10621 | if (this.prerelease.length === 0) {
|
10622 | this.inc('patch', identifier)
|
10623 | }
|
10624 | this.inc('pre', identifier)
|
10625 | break
|
10626 |
|
10627 | case 'major':
|
10628 |
|
10629 |
|
10630 |
|
10631 |
|
10632 | if (this.minor !== 0 ||
|
10633 | this.patch !== 0 ||
|
10634 | this.prerelease.length === 0) {
|
10635 | this.major++
|
10636 | }
|
10637 | this.minor = 0
|
10638 | this.patch = 0
|
10639 | this.prerelease = []
|
10640 | break
|
10641 | case 'minor':
|
10642 |
|
10643 |
|
10644 |
|
10645 |
|
10646 | if (this.patch !== 0 || this.prerelease.length === 0) {
|
10647 | this.minor++
|
10648 | }
|
10649 | this.patch = 0
|
10650 | this.prerelease = []
|
10651 | break
|
10652 | case 'patch':
|
10653 |
|
10654 |
|
10655 |
|
10656 |
|
10657 | if (this.prerelease.length === 0) {
|
10658 | this.patch++
|
10659 | }
|
10660 | this.prerelease = []
|
10661 | break
|
10662 |
|
10663 |
|
10664 | case 'pre':
|
10665 | if (this.prerelease.length === 0) {
|
10666 | this.prerelease = [0]
|
10667 | } else {
|
10668 | var i = this.prerelease.length
|
10669 | while (--i >= 0) {
|
10670 | if (typeof this.prerelease[i] === 'number') {
|
10671 | this.prerelease[i]++
|
10672 | i = -2
|
10673 | }
|
10674 | }
|
10675 | if (i === -1) {
|
10676 |
|
10677 | this.prerelease.push(0)
|
10678 | }
|
10679 | }
|
10680 | if (identifier) {
|
10681 |
|
10682 |
|
10683 | if (this.prerelease[0] === identifier) {
|
10684 | if (isNaN(this.prerelease[1])) {
|
10685 | this.prerelease = [identifier, 0]
|
10686 | }
|
10687 | } else {
|
10688 | this.prerelease = [identifier, 0]
|
10689 | }
|
10690 | }
|
10691 | break
|
10692 |
|
10693 | default:
|
10694 | throw new Error('invalid increment argument: ' + release)
|
10695 | }
|
10696 | this.format()
|
10697 | this.raw = this.version
|
10698 | return this
|
10699 | }
|
10700 |
|
10701 | exports.inc = inc
|
10702 | function inc (version, release, loose, identifier) {
|
10703 | if (typeof (loose) === 'string') {
|
10704 | identifier = loose
|
10705 | loose = undefined
|
10706 | }
|
10707 |
|
10708 | try {
|
10709 | return new SemVer(version, loose).inc(release, identifier).version
|
10710 | } catch (er) {
|
10711 | return null
|
10712 | }
|
10713 | }
|
10714 |
|
10715 | exports.diff = diff
|
10716 | function diff (version1, version2) {
|
10717 | if (eq(version1, version2)) {
|
10718 | return null
|
10719 | } else {
|
10720 | var v1 = parse(version1)
|
10721 | var v2 = parse(version2)
|
10722 | var prefix = ''
|
10723 | if (v1.prerelease.length || v2.prerelease.length) {
|
10724 | prefix = 'pre'
|
10725 | var defaultResult = 'prerelease'
|
10726 | }
|
10727 | for (var key in v1) {
|
10728 | if (key === 'major' || key === 'minor' || key === 'patch') {
|
10729 | if (v1[key] !== v2[key]) {
|
10730 | return prefix + key
|
10731 | }
|
10732 | }
|
10733 | }
|
10734 | return defaultResult
|
10735 | }
|
10736 | }
|
10737 |
|
10738 | exports.compareIdentifiers = compareIdentifiers
|
10739 |
|
10740 | var numeric = /^[0-9]+$/
|
10741 | function compareIdentifiers (a, b) {
|
10742 | var anum = numeric.test(a)
|
10743 | var bnum = numeric.test(b)
|
10744 |
|
10745 | if (anum && bnum) {
|
10746 | a = +a
|
10747 | b = +b
|
10748 | }
|
10749 |
|
10750 | return a === b ? 0
|
10751 | : (anum && !bnum) ? -1
|
10752 | : (bnum && !anum) ? 1
|
10753 | : a < b ? -1
|
10754 | : 1
|
10755 | }
|
10756 |
|
10757 | exports.rcompareIdentifiers = rcompareIdentifiers
|
10758 | function rcompareIdentifiers (a, b) {
|
10759 | return compareIdentifiers(b, a)
|
10760 | }
|
10761 |
|
10762 | exports.major = major
|
10763 | function major (a, loose) {
|
10764 | return new SemVer(a, loose).major
|
10765 | }
|
10766 |
|
10767 | exports.minor = minor
|
10768 | function minor (a, loose) {
|
10769 | return new SemVer(a, loose).minor
|
10770 | }
|
10771 |
|
10772 | exports.patch = patch
|
10773 | function patch (a, loose) {
|
10774 | return new SemVer(a, loose).patch
|
10775 | }
|
10776 |
|
10777 | exports.compare = compare
|
10778 | function compare (a, b, loose) {
|
10779 | return new SemVer(a, loose).compare(new SemVer(b, loose))
|
10780 | }
|
10781 |
|
10782 | exports.compareLoose = compareLoose
|
10783 | function compareLoose (a, b) {
|
10784 | return compare(a, b, true)
|
10785 | }
|
10786 |
|
10787 | exports.compareBuild = compareBuild
|
10788 | function compareBuild (a, b, loose) {
|
10789 | var versionA = new SemVer(a, loose)
|
10790 | var versionB = new SemVer(b, loose)
|
10791 | return versionA.compare(versionB) || versionA.compareBuild(versionB)
|
10792 | }
|
10793 |
|
10794 | exports.rcompare = rcompare
|
10795 | function rcompare (a, b, loose) {
|
10796 | return compare(b, a, loose)
|
10797 | }
|
10798 |
|
10799 | exports.sort = sort
|
10800 | function sort (list, loose) {
|
10801 | return list.sort(function (a, b) {
|
10802 | return exports.compareBuild(a, b, loose)
|
10803 | })
|
10804 | }
|
10805 |
|
10806 | exports.rsort = rsort
|
10807 | function rsort (list, loose) {
|
10808 | return list.sort(function (a, b) {
|
10809 | return exports.compareBuild(b, a, loose)
|
10810 | })
|
10811 | }
|
10812 |
|
10813 | exports.gt = gt
|
10814 | function gt (a, b, loose) {
|
10815 | return compare(a, b, loose) > 0
|
10816 | }
|
10817 |
|
10818 | exports.lt = lt
|
10819 | function lt (a, b, loose) {
|
10820 | return compare(a, b, loose) < 0
|
10821 | }
|
10822 |
|
10823 | exports.eq = eq
|
10824 | function eq (a, b, loose) {
|
10825 | return compare(a, b, loose) === 0
|
10826 | }
|
10827 |
|
10828 | exports.neq = neq
|
10829 | function neq (a, b, loose) {
|
10830 | return compare(a, b, loose) !== 0
|
10831 | }
|
10832 |
|
10833 | exports.gte = gte
|
10834 | function gte (a, b, loose) {
|
10835 | return compare(a, b, loose) >= 0
|
10836 | }
|
10837 |
|
10838 | exports.lte = lte
|
10839 | function lte (a, b, loose) {
|
10840 | return compare(a, b, loose) <= 0
|
10841 | }
|
10842 |
|
10843 | exports.cmp = cmp
|
10844 | function cmp (a, op, b, loose) {
|
10845 | switch (op) {
|
10846 | case '===':
|
10847 | if (typeof a === 'object')
|
10848 | a = a.version
|
10849 | if (typeof b === 'object')
|
10850 | b = b.version
|
10851 | return a === b
|
10852 |
|
10853 | case '!==':
|
10854 | if (typeof a === 'object')
|
10855 | a = a.version
|
10856 | if (typeof b === 'object')
|
10857 | b = b.version
|
10858 | return a !== b
|
10859 |
|
10860 | case '':
|
10861 | case '=':
|
10862 | case '==':
|
10863 | return eq(a, b, loose)
|
10864 |
|
10865 | case '!=':
|
10866 | return neq(a, b, loose)
|
10867 |
|
10868 | case '>':
|
10869 | return gt(a, b, loose)
|
10870 |
|
10871 | case '>=':
|
10872 | return gte(a, b, loose)
|
10873 |
|
10874 | case '<':
|
10875 | return lt(a, b, loose)
|
10876 |
|
10877 | case '<=':
|
10878 | return lte(a, b, loose)
|
10879 |
|
10880 | default:
|
10881 | throw new TypeError('Invalid operator: ' + op)
|
10882 | }
|
10883 | }
|
10884 |
|
10885 | exports.Comparator = Comparator
|
10886 | function Comparator (comp, options) {
|
10887 | if (!options || typeof options !== 'object') {
|
10888 | options = {
|
10889 | loose: !!options,
|
10890 | includePrerelease: false
|
10891 | }
|
10892 | }
|
10893 |
|
10894 | if (comp instanceof Comparator) {
|
10895 | if (comp.loose === !!options.loose) {
|
10896 | return comp
|
10897 | } else {
|
10898 | comp = comp.value
|
10899 | }
|
10900 | }
|
10901 |
|
10902 | if (!(this instanceof Comparator)) {
|
10903 | return new Comparator(comp, options)
|
10904 | }
|
10905 |
|
10906 | debug('comparator', comp, options)
|
10907 | this.options = options
|
10908 | this.loose = !!options.loose
|
10909 | this.parse(comp)
|
10910 |
|
10911 | if (this.semver === ANY) {
|
10912 | this.value = ''
|
10913 | } else {
|
10914 | this.value = this.operator + this.semver.version
|
10915 | }
|
10916 |
|
10917 | debug('comp', this)
|
10918 | }
|
10919 |
|
10920 | var ANY = {}
|
10921 | Comparator.prototype.parse = function (comp) {
|
10922 | var r = this.options.loose ? re[COMPARATORLOOSE] : re[COMPARATOR]
|
10923 | var m = comp.match(r)
|
10924 |
|
10925 | if (!m) {
|
10926 | throw new TypeError('Invalid comparator: ' + comp)
|
10927 | }
|
10928 |
|
10929 | this.operator = m[1] !== undefined ? m[1] : ''
|
10930 | if (this.operator === '=') {
|
10931 | this.operator = ''
|
10932 | }
|
10933 |
|
10934 |
|
10935 | if (!m[2]) {
|
10936 | this.semver = ANY
|
10937 | } else {
|
10938 | this.semver = new SemVer(m[2], this.options.loose)
|
10939 | }
|
10940 | }
|
10941 |
|
10942 | Comparator.prototype.toString = function () {
|
10943 | return this.value
|
10944 | }
|
10945 |
|
10946 | Comparator.prototype.test = function (version) {
|
10947 | debug('Comparator.test', version, this.options.loose)
|
10948 |
|
10949 | if (this.semver === ANY || version === ANY) {
|
10950 | return true
|
10951 | }
|
10952 |
|
10953 | if (typeof version === 'string') {
|
10954 | version = new SemVer(version, this.options)
|
10955 | }
|
10956 |
|
10957 | return cmp(version, this.operator, this.semver, this.options)
|
10958 | }
|
10959 |
|
10960 | Comparator.prototype.intersects = function (comp, options) {
|
10961 | if (!(comp instanceof Comparator)) {
|
10962 | throw new TypeError('a Comparator is required')
|
10963 | }
|
10964 |
|
10965 | if (!options || typeof options !== 'object') {
|
10966 | options = {
|
10967 | loose: !!options,
|
10968 | includePrerelease: false
|
10969 | }
|
10970 | }
|
10971 |
|
10972 | var rangeTmp
|
10973 |
|
10974 | if (this.operator === '') {
|
10975 | if (this.value === '') {
|
10976 | return true
|
10977 | }
|
10978 | rangeTmp = new Range(comp.value, options)
|
10979 | return satisfies(this.value, rangeTmp, options)
|
10980 | } else if (comp.operator === '') {
|
10981 | if (comp.value === '') {
|
10982 | return true
|
10983 | }
|
10984 | rangeTmp = new Range(this.value, options)
|
10985 | return satisfies(comp.semver, rangeTmp, options)
|
10986 | }
|
10987 |
|
10988 | var sameDirectionIncreasing =
|
10989 | (this.operator === '>=' || this.operator === '>') &&
|
10990 | (comp.operator === '>=' || comp.operator === '>')
|
10991 | var sameDirectionDecreasing =
|
10992 | (this.operator === '<=' || this.operator === '<') &&
|
10993 | (comp.operator === '<=' || comp.operator === '<')
|
10994 | var sameSemVer = this.semver.version === comp.semver.version
|
10995 | var differentDirectionsInclusive =
|
10996 | (this.operator === '>=' || this.operator === '<=') &&
|
10997 | (comp.operator === '>=' || comp.operator === '<=')
|
10998 | var oppositeDirectionsLessThan =
|
10999 | cmp(this.semver, '<', comp.semver, options) &&
|
11000 | ((this.operator === '>=' || this.operator === '>') &&
|
11001 | (comp.operator === '<=' || comp.operator === '<'))
|
11002 | var oppositeDirectionsGreaterThan =
|
11003 | cmp(this.semver, '>', comp.semver, options) &&
|
11004 | ((this.operator === '<=' || this.operator === '<') &&
|
11005 | (comp.operator === '>=' || comp.operator === '>'))
|
11006 |
|
11007 | return sameDirectionIncreasing || sameDirectionDecreasing ||
|
11008 | (sameSemVer && differentDirectionsInclusive) ||
|
11009 | oppositeDirectionsLessThan || oppositeDirectionsGreaterThan
|
11010 | }
|
11011 |
|
11012 | exports.Range = Range
|
11013 | function Range (range, options) {
|
11014 | if (!options || typeof options !== 'object') {
|
11015 | options = {
|
11016 | loose: !!options,
|
11017 | includePrerelease: false
|
11018 | }
|
11019 | }
|
11020 |
|
11021 | if (range instanceof Range) {
|
11022 | if (range.loose === !!options.loose &&
|
11023 | range.includePrerelease === !!options.includePrerelease) {
|
11024 | return range
|
11025 | } else {
|
11026 | return new Range(range.raw, options)
|
11027 | }
|
11028 | }
|
11029 |
|
11030 | if (range instanceof Comparator) {
|
11031 | return new Range(range.value, options)
|
11032 | }
|
11033 |
|
11034 | if (!(this instanceof Range)) {
|
11035 | return new Range(range, options)
|
11036 | }
|
11037 |
|
11038 | this.options = options
|
11039 | this.loose = !!options.loose
|
11040 | this.includePrerelease = !!options.includePrerelease
|
11041 |
|
11042 |
|
11043 | this.raw = range
|
11044 | this.set = range.split(/\s*\|\|\s*/).map(function (range) {
|
11045 | return this.parseRange(range.trim())
|
11046 | }, this).filter(function (c) {
|
11047 |
|
11048 | return c.length
|
11049 | })
|
11050 |
|
11051 | if (!this.set.length) {
|
11052 | throw new TypeError('Invalid SemVer Range: ' + range)
|
11053 | }
|
11054 |
|
11055 | this.format()
|
11056 | }
|
11057 |
|
11058 | Range.prototype.format = function () {
|
11059 | this.range = this.set.map(function (comps) {
|
11060 | return comps.join(' ').trim()
|
11061 | }).join('||').trim()
|
11062 | return this.range
|
11063 | }
|
11064 |
|
11065 | Range.prototype.toString = function () {
|
11066 | return this.range
|
11067 | }
|
11068 |
|
11069 | Range.prototype.parseRange = function (range) {
|
11070 | var loose = this.options.loose
|
11071 | range = range.trim()
|
11072 |
|
11073 | var hr = loose ? re[HYPHENRANGELOOSE] : re[HYPHENRANGE]
|
11074 | range = range.replace(hr, hyphenReplace)
|
11075 | debug('hyphen replace', range)
|
11076 |
|
11077 | range = range.replace(re[COMPARATORTRIM], comparatorTrimReplace)
|
11078 | debug('comparator trim', range, re[COMPARATORTRIM])
|
11079 |
|
11080 |
|
11081 | range = range.replace(re[TILDETRIM], tildeTrimReplace)
|
11082 |
|
11083 |
|
11084 | range = range.replace(re[CARETTRIM], caretTrimReplace)
|
11085 |
|
11086 |
|
11087 | range = range.split(/\s+/).join(' ')
|
11088 |
|
11089 |
|
11090 |
|
11091 |
|
11092 | var compRe = loose ? re[COMPARATORLOOSE] : re[COMPARATOR]
|
11093 | var set = range.split(' ').map(function (comp) {
|
11094 | return parseComparator(comp, this.options)
|
11095 | }, this).join(' ').split(/\s+/)
|
11096 | if (this.options.loose) {
|
11097 |
|
11098 | set = set.filter(function (comp) {
|
11099 | return !!comp.match(compRe)
|
11100 | })
|
11101 | }
|
11102 | set = set.map(function (comp) {
|
11103 | return new Comparator(comp, this.options)
|
11104 | }, this)
|
11105 |
|
11106 | return set
|
11107 | }
|
11108 |
|
11109 | Range.prototype.intersects = function (range, options) {
|
11110 | if (!(range instanceof Range)) {
|
11111 | throw new TypeError('a Range is required')
|
11112 | }
|
11113 |
|
11114 | return this.set.some(function (thisComparators) {
|
11115 | return (
|
11116 | isSatisfiable(thisComparators, options) &&
|
11117 | range.set.some(function (rangeComparators) {
|
11118 | return (
|
11119 | isSatisfiable(rangeComparators, options) &&
|
11120 | thisComparators.every(function (thisComparator) {
|
11121 | return rangeComparators.every(function (rangeComparator) {
|
11122 | return thisComparator.intersects(rangeComparator, options)
|
11123 | })
|
11124 | })
|
11125 | )
|
11126 | })
|
11127 | )
|
11128 | })
|
11129 | }
|
11130 |
|
11131 |
|
11132 |
|
11133 | function isSatisfiable (comparators, options) {
|
11134 | var result = true
|
11135 | var remainingComparators = comparators.slice()
|
11136 | var testComparator = remainingComparators.pop()
|
11137 |
|
11138 | while (result && remainingComparators.length) {
|
11139 | result = remainingComparators.every(function (otherComparator) {
|
11140 | return testComparator.intersects(otherComparator, options)
|
11141 | })
|
11142 |
|
11143 | testComparator = remainingComparators.pop()
|
11144 | }
|
11145 |
|
11146 | return result
|
11147 | }
|
11148 |
|
11149 |
|
11150 | exports.toComparators = toComparators
|
11151 | function toComparators (range, options) {
|
11152 | return new Range(range, options).set.map(function (comp) {
|
11153 | return comp.map(function (c) {
|
11154 | return c.value
|
11155 | }).join(' ').trim().split(' ')
|
11156 | })
|
11157 | }
|
11158 |
|
11159 |
|
11160 |
|
11161 |
|
11162 | function parseComparator (comp, options) {
|
11163 | debug('comp', comp, options)
|
11164 | comp = replaceCarets(comp, options)
|
11165 | debug('caret', comp)
|
11166 | comp = replaceTildes(comp, options)
|
11167 | debug('tildes', comp)
|
11168 | comp = replaceXRanges(comp, options)
|
11169 | debug('xrange', comp)
|
11170 | comp = replaceStars(comp, options)
|
11171 | debug('stars', comp)
|
11172 | return comp
|
11173 | }
|
11174 |
|
11175 | function isX (id) {
|
11176 | return !id || id.toLowerCase() === 'x' || id === '*'
|
11177 | }
|
11178 |
|
11179 |
|
11180 |
|
11181 |
|
11182 |
|
11183 |
|
11184 |
|
11185 | function replaceTildes (comp, options) {
|
11186 | return comp.trim().split(/\s+/).map(function (comp) {
|
11187 | return replaceTilde(comp, options)
|
11188 | }).join(' ')
|
11189 | }
|
11190 |
|
11191 | function replaceTilde (comp, options) {
|
11192 | var r = options.loose ? re[TILDELOOSE] : re[TILDE]
|
11193 | return comp.replace(r, function (_, M, m, p, pr) {
|
11194 | debug('tilde', comp, _, M, m, p, pr)
|
11195 | var ret
|
11196 |
|
11197 | if (isX(M)) {
|
11198 | ret = ''
|
11199 | } else if (isX(m)) {
|
11200 | ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
|
11201 | } else if (isX(p)) {
|
11202 |
|
11203 | ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
|
11204 | } else if (pr) {
|
11205 | debug('replaceTilde pr', pr)
|
11206 | ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
|
11207 | ' <' + M + '.' + (+m + 1) + '.0'
|
11208 | } else {
|
11209 |
|
11210 | ret = '>=' + M + '.' + m + '.' + p +
|
11211 | ' <' + M + '.' + (+m + 1) + '.0'
|
11212 | }
|
11213 |
|
11214 | debug('tilde return', ret)
|
11215 | return ret
|
11216 | })
|
11217 | }
|
11218 |
|
11219 |
|
11220 |
|
11221 |
|
11222 |
|
11223 |
|
11224 |
|
11225 | function replaceCarets (comp, options) {
|
11226 | return comp.trim().split(/\s+/).map(function (comp) {
|
11227 | return replaceCaret(comp, options)
|
11228 | }).join(' ')
|
11229 | }
|
11230 |
|
11231 | function replaceCaret (comp, options) {
|
11232 | debug('caret', comp, options)
|
11233 | var r = options.loose ? re[CARETLOOSE] : re[CARET]
|
11234 | return comp.replace(r, function (_, M, m, p, pr) {
|
11235 | debug('caret', comp, _, M, m, p, pr)
|
11236 | var ret
|
11237 |
|
11238 | if (isX(M)) {
|
11239 | ret = ''
|
11240 | } else if (isX(m)) {
|
11241 | ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
|
11242 | } else if (isX(p)) {
|
11243 | if (M === '0') {
|
11244 | ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
|
11245 | } else {
|
11246 | ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'
|
11247 | }
|
11248 | } else if (pr) {
|
11249 | debug('replaceCaret pr', pr)
|
11250 | if (M === '0') {
|
11251 | if (m === '0') {
|
11252 | ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
|
11253 | ' <' + M + '.' + m + '.' + (+p + 1)
|
11254 | } else {
|
11255 | ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
|
11256 | ' <' + M + '.' + (+m + 1) + '.0'
|
11257 | }
|
11258 | } else {
|
11259 | ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
|
11260 | ' <' + (+M + 1) + '.0.0'
|
11261 | }
|
11262 | } else {
|
11263 | debug('no pr')
|
11264 | if (M === '0') {
|
11265 | if (m === '0') {
|
11266 | ret = '>=' + M + '.' + m + '.' + p +
|
11267 | ' <' + M + '.' + m + '.' + (+p + 1)
|
11268 | } else {
|
11269 | ret = '>=' + M + '.' + m + '.' + p +
|
11270 | ' <' + M + '.' + (+m + 1) + '.0'
|
11271 | }
|
11272 | } else {
|
11273 | ret = '>=' + M + '.' + m + '.' + p +
|
11274 | ' <' + (+M + 1) + '.0.0'
|
11275 | }
|
11276 | }
|
11277 |
|
11278 | debug('caret return', ret)
|
11279 | return ret
|
11280 | })
|
11281 | }
|
11282 |
|
11283 | function replaceXRanges (comp, options) {
|
11284 | debug('replaceXRanges', comp, options)
|
11285 | return comp.split(/\s+/).map(function (comp) {
|
11286 | return replaceXRange(comp, options)
|
11287 | }).join(' ')
|
11288 | }
|
11289 |
|
11290 | function replaceXRange (comp, options) {
|
11291 | comp = comp.trim()
|
11292 | var r = options.loose ? re[XRANGELOOSE] : re[XRANGE]
|
11293 | return comp.replace(r, function (ret, gtlt, M, m, p, pr) {
|
11294 | debug('xRange', comp, ret, gtlt, M, m, p, pr)
|
11295 | var xM = isX(M)
|
11296 | var xm = xM || isX(m)
|
11297 | var xp = xm || isX(p)
|
11298 | var anyX = xp
|
11299 |
|
11300 | if (gtlt === '=' && anyX) {
|
11301 | gtlt = ''
|
11302 | }
|
11303 |
|
11304 | if (xM) {
|
11305 | if (gtlt === '>' || gtlt === '<') {
|
11306 |
|
11307 | ret = '<0.0.0'
|
11308 | } else {
|
11309 |
|
11310 | ret = '*'
|
11311 | }
|
11312 | } else if (gtlt && anyX) {
|
11313 |
|
11314 |
|
11315 | if (xm) {
|
11316 | m = 0
|
11317 | }
|
11318 | p = 0
|
11319 |
|
11320 | if (gtlt === '>') {
|
11321 |
|
11322 |
|
11323 |
|
11324 | gtlt = '>='
|
11325 | if (xm) {
|
11326 | M = +M + 1
|
11327 | m = 0
|
11328 | p = 0
|
11329 | } else {
|
11330 | m = +m + 1
|
11331 | p = 0
|
11332 | }
|
11333 | } else if (gtlt === '<=') {
|
11334 |
|
11335 |
|
11336 | gtlt = '<'
|
11337 | if (xm) {
|
11338 | M = +M + 1
|
11339 | } else {
|
11340 | m = +m + 1
|
11341 | }
|
11342 | }
|
11343 |
|
11344 | ret = gtlt + M + '.' + m + '.' + p
|
11345 | } else if (xm) {
|
11346 | ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
|
11347 | } else if (xp) {
|
11348 | ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
|
11349 | }
|
11350 |
|
11351 | debug('xRange return', ret)
|
11352 |
|
11353 | return ret
|
11354 | })
|
11355 | }
|
11356 |
|
11357 |
|
11358 |
|
11359 | function replaceStars (comp, options) {
|
11360 | debug('replaceStars', comp, options)
|
11361 |
|
11362 | return comp.trim().replace(re[STAR], '')
|
11363 | }
|
11364 |
|
11365 |
|
11366 |
|
11367 |
|
11368 |
|
11369 |
|
11370 | function hyphenReplace ($0,
|
11371 | from, fM, fm, fp, fpr, fb,
|
11372 | to, tM, tm, tp, tpr, tb) {
|
11373 | if (isX(fM)) {
|
11374 | from = ''
|
11375 | } else if (isX(fm)) {
|
11376 | from = '>=' + fM + '.0.0'
|
11377 | } else if (isX(fp)) {
|
11378 | from = '>=' + fM + '.' + fm + '.0'
|
11379 | } else {
|
11380 | from = '>=' + from
|
11381 | }
|
11382 |
|
11383 | if (isX(tM)) {
|
11384 | to = ''
|
11385 | } else if (isX(tm)) {
|
11386 | to = '<' + (+tM + 1) + '.0.0'
|
11387 | } else if (isX(tp)) {
|
11388 | to = '<' + tM + '.' + (+tm + 1) + '.0'
|
11389 | } else if (tpr) {
|
11390 | to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr
|
11391 | } else {
|
11392 | to = '<=' + to
|
11393 | }
|
11394 |
|
11395 | return (from + ' ' + to).trim()
|
11396 | }
|
11397 |
|
11398 |
|
11399 | Range.prototype.test = function (version) {
|
11400 | if (!version) {
|
11401 | return false
|
11402 | }
|
11403 |
|
11404 | if (typeof version === 'string') {
|
11405 | version = new SemVer(version, this.options)
|
11406 | }
|
11407 |
|
11408 | for (var i = 0; i < this.set.length; i++) {
|
11409 | if (testSet(this.set[i], version, this.options)) {
|
11410 | return true
|
11411 | }
|
11412 | }
|
11413 | return false
|
11414 | }
|
11415 |
|
11416 | function testSet (set, version, options) {
|
11417 | for (var i = 0; i < set.length; i++) {
|
11418 | if (!set[i].test(version)) {
|
11419 | return false
|
11420 | }
|
11421 | }
|
11422 |
|
11423 | if (version.prerelease.length && !options.includePrerelease) {
|
11424 |
|
11425 |
|
11426 |
|
11427 |
|
11428 |
|
11429 | for (i = 0; i < set.length; i++) {
|
11430 | debug(set[i].semver)
|
11431 | if (set[i].semver === ANY) {
|
11432 | continue
|
11433 | }
|
11434 |
|
11435 | if (set[i].semver.prerelease.length > 0) {
|
11436 | var allowed = set[i].semver
|
11437 | if (allowed.major === version.major &&
|
11438 | allowed.minor === version.minor &&
|
11439 | allowed.patch === version.patch) {
|
11440 | return true
|
11441 | }
|
11442 | }
|
11443 | }
|
11444 |
|
11445 |
|
11446 | return false
|
11447 | }
|
11448 |
|
11449 | return true
|
11450 | }
|
11451 |
|
11452 | exports.satisfies = satisfies
|
11453 | function satisfies (version, range, options) {
|
11454 | try {
|
11455 | range = new Range(range, options)
|
11456 | } catch (er) {
|
11457 | return false
|
11458 | }
|
11459 | return range.test(version)
|
11460 | }
|
11461 |
|
11462 | exports.maxSatisfying = maxSatisfying
|
11463 | function maxSatisfying (versions, range, options) {
|
11464 | var max = null
|
11465 | var maxSV = null
|
11466 | try {
|
11467 | var rangeObj = new Range(range, options)
|
11468 | } catch (er) {
|
11469 | return null
|
11470 | }
|
11471 | versions.forEach(function (v) {
|
11472 | if (rangeObj.test(v)) {
|
11473 |
|
11474 | if (!max || maxSV.compare(v) === -1) {
|
11475 |
|
11476 | max = v
|
11477 | maxSV = new SemVer(max, options)
|
11478 | }
|
11479 | }
|
11480 | })
|
11481 | return max
|
11482 | }
|
11483 |
|
11484 | exports.minSatisfying = minSatisfying
|
11485 | function minSatisfying (versions, range, options) {
|
11486 | var min = null
|
11487 | var minSV = null
|
11488 | try {
|
11489 | var rangeObj = new Range(range, options)
|
11490 | } catch (er) {
|
11491 | return null
|
11492 | }
|
11493 | versions.forEach(function (v) {
|
11494 | if (rangeObj.test(v)) {
|
11495 |
|
11496 | if (!min || minSV.compare(v) === 1) {
|
11497 |
|
11498 | min = v
|
11499 | minSV = new SemVer(min, options)
|
11500 | }
|
11501 | }
|
11502 | })
|
11503 | return min
|
11504 | }
|
11505 |
|
11506 | exports.minVersion = minVersion
|
11507 | function minVersion (range, loose) {
|
11508 | range = new Range(range, loose)
|
11509 |
|
11510 | var minver = new SemVer('0.0.0')
|
11511 | if (range.test(minver)) {
|
11512 | return minver
|
11513 | }
|
11514 |
|
11515 | minver = new SemVer('0.0.0-0')
|
11516 | if (range.test(minver)) {
|
11517 | return minver
|
11518 | }
|
11519 |
|
11520 | minver = null
|
11521 | for (var i = 0; i < range.set.length; ++i) {
|
11522 | var comparators = range.set[i]
|
11523 |
|
11524 | comparators.forEach(function (comparator) {
|
11525 |
|
11526 | var compver = new SemVer(comparator.semver.version)
|
11527 | switch (comparator.operator) {
|
11528 | case '>':
|
11529 | if (compver.prerelease.length === 0) {
|
11530 | compver.patch++
|
11531 | } else {
|
11532 | compver.prerelease.push(0)
|
11533 | }
|
11534 | compver.raw = compver.format()
|
11535 |
|
11536 | case '':
|
11537 | case '>=':
|
11538 | if (!minver || gt(minver, compver)) {
|
11539 | minver = compver
|
11540 | }
|
11541 | break
|
11542 | case '<':
|
11543 | case '<=':
|
11544 |
|
11545 | break
|
11546 |
|
11547 | default:
|
11548 | throw new Error('Unexpected operation: ' + comparator.operator)
|
11549 | }
|
11550 | })
|
11551 | }
|
11552 |
|
11553 | if (minver && range.test(minver)) {
|
11554 | return minver
|
11555 | }
|
11556 |
|
11557 | return null
|
11558 | }
|
11559 |
|
11560 | exports.validRange = validRange
|
11561 | function validRange (range, options) {
|
11562 | try {
|
11563 |
|
11564 |
|
11565 | return new Range(range, options).range || '*'
|
11566 | } catch (er) {
|
11567 | return null
|
11568 | }
|
11569 | }
|
11570 |
|
11571 |
|
11572 | exports.ltr = ltr
|
11573 | function ltr (version, range, options) {
|
11574 | return outside(version, range, '<', options)
|
11575 | }
|
11576 |
|
11577 |
|
11578 | exports.gtr = gtr
|
11579 | function gtr (version, range, options) {
|
11580 | return outside(version, range, '>', options)
|
11581 | }
|
11582 |
|
11583 | exports.outside = outside
|
11584 | function outside (version, range, hilo, options) {
|
11585 | version = new SemVer(version, options)
|
11586 | range = new Range(range, options)
|
11587 |
|
11588 | var gtfn, ltefn, ltfn, comp, ecomp
|
11589 | switch (hilo) {
|
11590 | case '>':
|
11591 | gtfn = gt
|
11592 | ltefn = lte
|
11593 | ltfn = lt
|
11594 | comp = '>'
|
11595 | ecomp = '>='
|
11596 | break
|
11597 | case '<':
|
11598 | gtfn = lt
|
11599 | ltefn = gte
|
11600 | ltfn = gt
|
11601 | comp = '<'
|
11602 | ecomp = '<='
|
11603 | break
|
11604 | default:
|
11605 | throw new TypeError('Must provide a hilo val of "<" or ">"')
|
11606 | }
|
11607 |
|
11608 |
|
11609 | if (satisfies(version, range, options)) {
|
11610 | return false
|
11611 | }
|
11612 |
|
11613 |
|
11614 |
|
11615 |
|
11616 | for (var i = 0; i < range.set.length; ++i) {
|
11617 | var comparators = range.set[i]
|
11618 |
|
11619 | var high = null
|
11620 | var low = null
|
11621 |
|
11622 | comparators.forEach(function (comparator) {
|
11623 | if (comparator.semver === ANY) {
|
11624 | comparator = new Comparator('>=0.0.0')
|
11625 | }
|
11626 | high = high || comparator
|
11627 | low = low || comparator
|
11628 | if (gtfn(comparator.semver, high.semver, options)) {
|
11629 | high = comparator
|
11630 | } else if (ltfn(comparator.semver, low.semver, options)) {
|
11631 | low = comparator
|
11632 | }
|
11633 | })
|
11634 |
|
11635 |
|
11636 |
|
11637 | if (high.operator === comp || high.operator === ecomp) {
|
11638 | return false
|
11639 | }
|
11640 |
|
11641 |
|
11642 |
|
11643 | if ((!low.operator || low.operator === comp) &&
|
11644 | ltefn(version, low.semver)) {
|
11645 | return false
|
11646 | } else if (low.operator === ecomp && ltfn(version, low.semver)) {
|
11647 | return false
|
11648 | }
|
11649 | }
|
11650 | return true
|
11651 | }
|
11652 |
|
11653 | exports.prerelease = prerelease
|
11654 | function prerelease (version, options) {
|
11655 | var parsed = parse(version, options)
|
11656 | return (parsed && parsed.prerelease.length) ? parsed.prerelease : null
|
11657 | }
|
11658 |
|
11659 | exports.intersects = intersects
|
11660 | function intersects (r1, r2, options) {
|
11661 | r1 = new Range(r1, options)
|
11662 | r2 = new Range(r2, options)
|
11663 | return r1.intersects(r2)
|
11664 | }
|
11665 |
|
11666 | exports.coerce = coerce
|
11667 | function coerce (version, options) {
|
11668 | if (version instanceof SemVer) {
|
11669 | return version
|
11670 | }
|
11671 |
|
11672 | if (typeof version !== 'string') {
|
11673 | return null
|
11674 | }
|
11675 |
|
11676 | var match = version.match(re[COERCE])
|
11677 |
|
11678 | if (match == null) {
|
11679 | return null
|
11680 | }
|
11681 |
|
11682 | return parse(match[1] +
|
11683 | '.' + (match[2] || '0') +
|
11684 | '.' + (match[3] || '0'), options)
|
11685 | }
|
11686 |
|
11687 |
|
11688 | }),
|
11689 | ,
|
11690 |
|
11691 | (function(module, exports, __webpack_require__) {
|
11692 |
|
11693 |
|
11694 | var buffer = __webpack_require__(293)
|
11695 | var Buffer = buffer.Buffer
|
11696 |
|
11697 |
|
11698 | function copyProps (src, dst) {
|
11699 | for (var key in src) {
|
11700 | dst[key] = src[key]
|
11701 | }
|
11702 | }
|
11703 | if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {
|
11704 | module.exports = buffer
|
11705 | } else {
|
11706 |
|
11707 | copyProps(buffer, exports)
|
11708 | exports.Buffer = SafeBuffer
|
11709 | }
|
11710 |
|
11711 | function SafeBuffer (arg, encodingOrOffset, length) {
|
11712 | return Buffer(arg, encodingOrOffset, length)
|
11713 | }
|
11714 |
|
11715 |
|
11716 | copyProps(Buffer, SafeBuffer)
|
11717 |
|
11718 | SafeBuffer.from = function (arg, encodingOrOffset, length) {
|
11719 | if (typeof arg === 'number') {
|
11720 | throw new TypeError('Argument must not be a number')
|
11721 | }
|
11722 | return Buffer(arg, encodingOrOffset, length)
|
11723 | }
|
11724 |
|
11725 | SafeBuffer.alloc = function (size, fill, encoding) {
|
11726 | if (typeof size !== 'number') {
|
11727 | throw new TypeError('Argument must be a number')
|
11728 | }
|
11729 | var buf = Buffer(size)
|
11730 | if (fill !== undefined) {
|
11731 | if (typeof encoding === 'string') {
|
11732 | buf.fill(fill, encoding)
|
11733 | } else {
|
11734 | buf.fill(fill)
|
11735 | }
|
11736 | } else {
|
11737 | buf.fill(0)
|
11738 | }
|
11739 | return buf
|
11740 | }
|
11741 |
|
11742 | SafeBuffer.allocUnsafe = function (size) {
|
11743 | if (typeof size !== 'number') {
|
11744 | throw new TypeError('Argument must be a number')
|
11745 | }
|
11746 | return Buffer(size)
|
11747 | }
|
11748 |
|
11749 | SafeBuffer.allocUnsafeSlow = function (size) {
|
11750 | if (typeof size !== 'number') {
|
11751 | throw new TypeError('Argument must be a number')
|
11752 | }
|
11753 | return buffer.SlowBuffer(size)
|
11754 | }
|
11755 |
|
11756 |
|
11757 | }),
|
11758 | ,
|
11759 | ,
|
11760 | ,
|
11761 | ,
|
11762 | ,
|
11763 | ,
|
11764 | ,
|
11765 | ,
|
11766 |
|
11767 | (function(module, __unusedexports, __webpack_require__) {
|
11768 |
|
11769 | "use strict";
|
11770 |
|
11771 |
|
11772 | const fs = __webpack_require__(729)
|
11773 | const os = __webpack_require__(87)
|
11774 | const path = __webpack_require__(622)
|
11775 |
|
11776 |
|
11777 | function hasMillisResSync () {
|
11778 | let tmpfile = path.join('millis-test-sync' + Date.now().toString() + Math.random().toString().slice(2))
|
11779 | tmpfile = path.join(os.tmpdir(), tmpfile)
|
11780 |
|
11781 |
|
11782 | const d = new Date(1435410243862)
|
11783 | fs.writeFileSync(tmpfile, 'https://github.com/jprichardson/node-fs-extra/pull/141')
|
11784 | const fd = fs.openSync(tmpfile, 'r+')
|
11785 | fs.futimesSync(fd, d, d)
|
11786 | fs.closeSync(fd)
|
11787 | return fs.statSync(tmpfile).mtime > 1435410243000
|
11788 | }
|
11789 |
|
11790 | function hasMillisRes (callback) {
|
11791 | let tmpfile = path.join('millis-test' + Date.now().toString() + Math.random().toString().slice(2))
|
11792 | tmpfile = path.join(os.tmpdir(), tmpfile)
|
11793 |
|
11794 |
|
11795 | const d = new Date(1435410243862)
|
11796 | fs.writeFile(tmpfile, 'https://github.com/jprichardson/node-fs-extra/pull/141', err => {
|
11797 | if (err) return callback(err)
|
11798 | fs.open(tmpfile, 'r+', (err, fd) => {
|
11799 | if (err) return callback(err)
|
11800 | fs.futimes(fd, d, d, err => {
|
11801 | if (err) return callback(err)
|
11802 | fs.close(fd, err => {
|
11803 | if (err) return callback(err)
|
11804 | fs.stat(tmpfile, (err, stats) => {
|
11805 | if (err) return callback(err)
|
11806 | callback(null, stats.mtime > 1435410243000)
|
11807 | })
|
11808 | })
|
11809 | })
|
11810 | })
|
11811 | })
|
11812 | }
|
11813 |
|
11814 | function timeRemoveMillis (timestamp) {
|
11815 | if (typeof timestamp === 'number') {
|
11816 | return Math.floor(timestamp / 1000) * 1000
|
11817 | } else if (timestamp instanceof Date) {
|
11818 | return new Date(Math.floor(timestamp.getTime() / 1000) * 1000)
|
11819 | } else {
|
11820 | throw new Error('fs-extra: timeRemoveMillis() unknown parameter type')
|
11821 | }
|
11822 | }
|
11823 |
|
11824 | function utimesMillis (path, atime, mtime, callback) {
|
11825 |
|
11826 | fs.open(path, 'r+', (err, fd) => {
|
11827 | if (err) return callback(err)
|
11828 | fs.futimes(fd, atime, mtime, futimesErr => {
|
11829 | fs.close(fd, closeErr => {
|
11830 | if (callback) callback(futimesErr || closeErr)
|
11831 | })
|
11832 | })
|
11833 | })
|
11834 | }
|
11835 |
|
11836 | function utimesMillisSync (path, atime, mtime) {
|
11837 | const fd = fs.openSync(path, 'r+')
|
11838 | fs.futimesSync(fd, atime, mtime)
|
11839 | return fs.closeSync(fd)
|
11840 | }
|
11841 |
|
11842 | module.exports = {
|
11843 | hasMillisRes,
|
11844 | hasMillisResSync,
|
11845 | timeRemoveMillis,
|
11846 | utimesMillis,
|
11847 | utimesMillisSync
|
11848 | }
|
11849 |
|
11850 |
|
11851 | }),
|
11852 | ,
|
11853 | ,
|
11854 | ,
|
11855 | ,
|
11856 | ,
|
11857 | ,
|
11858 | ,
|
11859 |
|
11860 | (function(module, __unusedexports, __webpack_require__) {
|
11861 |
|
11862 | "use strict";
|
11863 |
|
11864 |
|
11865 | module.exports = Object.assign(
|
11866 | {},
|
11867 |
|
11868 | __webpack_require__(936),
|
11869 |
|
11870 | __webpack_require__(161),
|
11871 | __webpack_require__(758),
|
11872 | __webpack_require__(502),
|
11873 | __webpack_require__(757),
|
11874 | __webpack_require__(742),
|
11875 | __webpack_require__(648),
|
11876 | __webpack_require__(667),
|
11877 | __webpack_require__(192),
|
11878 | __webpack_require__(719),
|
11879 | __webpack_require__(370),
|
11880 | __webpack_require__(301)
|
11881 | )
|
11882 |
|
11883 |
|
11884 |
|
11885 | const fs = __webpack_require__(747)
|
11886 | if (Object.getOwnPropertyDescriptor(fs, 'promises')) {
|
11887 | Object.defineProperty(module.exports, 'promises', {
|
11888 | get () { return fs.promises }
|
11889 | })
|
11890 | }
|
11891 |
|
11892 |
|
11893 | }),
|
11894 | ,
|
11895 | ,
|
11896 |
|
11897 | (function(module) {
|
11898 |
|
11899 | module.exports = require("stream");
|
11900 |
|
11901 | }),
|
11902 |
|
11903 | (function(module) {
|
11904 |
|
11905 | "use strict";
|
11906 |
|
11907 |
|
11908 |
|
11909 | function isNothing(subject) {
|
11910 | return (typeof subject === 'undefined') || (subject === null);
|
11911 | }
|
11912 |
|
11913 |
|
11914 | function isObject(subject) {
|
11915 | return (typeof subject === 'object') && (subject !== null);
|
11916 | }
|
11917 |
|
11918 |
|
11919 | function toArray(sequence) {
|
11920 | if (Array.isArray(sequence)) return sequence;
|
11921 | else if (isNothing(sequence)) return [];
|
11922 |
|
11923 | return [ sequence ];
|
11924 | }
|
11925 |
|
11926 |
|
11927 | function extend(target, source) {
|
11928 | var index, length, key, sourceKeys;
|
11929 |
|
11930 | if (source) {
|
11931 | sourceKeys = Object.keys(source);
|
11932 |
|
11933 | for (index = 0, length = sourceKeys.length; index < length; index += 1) {
|
11934 | key = sourceKeys[index];
|
11935 | target[key] = source[key];
|
11936 | }
|
11937 | }
|
11938 |
|
11939 | return target;
|
11940 | }
|
11941 |
|
11942 |
|
11943 | function repeat(string, count) {
|
11944 | var result = '', cycle;
|
11945 |
|
11946 | for (cycle = 0; cycle < count; cycle += 1) {
|
11947 | result += string;
|
11948 | }
|
11949 |
|
11950 | return result;
|
11951 | }
|
11952 |
|
11953 |
|
11954 | function isNegativeZero(number) {
|
11955 | return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number);
|
11956 | }
|
11957 |
|
11958 |
|
11959 | module.exports.isNothing = isNothing;
|
11960 | module.exports.isObject = isObject;
|
11961 | module.exports.toArray = toArray;
|
11962 | module.exports.repeat = repeat;
|
11963 | module.exports.isNegativeZero = isNegativeZero;
|
11964 | module.exports.extend = extend;
|
11965 |
|
11966 |
|
11967 | }),
|
11968 |
|
11969 | (function(module, __unusedexports, __webpack_require__) {
|
11970 |
|
11971 | module.exports = MultiStream
|
11972 |
|
11973 | var inherits = __webpack_require__(536)
|
11974 | var stream = __webpack_require__(366)
|
11975 |
|
11976 | inherits(MultiStream, stream.Readable)
|
11977 |
|
11978 | function MultiStream (streams, opts) {
|
11979 | var self = this
|
11980 | if (!(self instanceof MultiStream)) return new MultiStream(streams, opts)
|
11981 | stream.Readable.call(self, opts)
|
11982 |
|
11983 | self.destroyed = false
|
11984 |
|
11985 | self._drained = false
|
11986 | self._forwarding = false
|
11987 | self._current = null
|
11988 | self._toStreams2 = (opts && opts.objectMode) ? toStreams2Obj : toStreams2Buf
|
11989 |
|
11990 | if (typeof streams === 'function') {
|
11991 | self._queue = streams
|
11992 | } else {
|
11993 | self._queue = streams.map(self._toStreams2)
|
11994 | self._queue.forEach(function (stream) {
|
11995 | if (typeof stream !== 'function') self._attachErrorListener(stream)
|
11996 | })
|
11997 | }
|
11998 |
|
11999 | self._next()
|
12000 | }
|
12001 |
|
12002 | MultiStream.obj = function (streams) {
|
12003 | return new MultiStream(streams, { objectMode: true, highWaterMark: 16 })
|
12004 | }
|
12005 |
|
12006 | MultiStream.prototype._read = function () {
|
12007 | this._drained = true
|
12008 | this._forward()
|
12009 | }
|
12010 |
|
12011 | MultiStream.prototype._forward = function () {
|
12012 | if (this._forwarding || !this._drained || !this._current) return
|
12013 | this._forwarding = true
|
12014 |
|
12015 | var chunk
|
12016 | while ((chunk = this._current.read()) !== null) {
|
12017 | this._drained = this.push(chunk)
|
12018 | }
|
12019 |
|
12020 | this._forwarding = false
|
12021 | }
|
12022 |
|
12023 | MultiStream.prototype.destroy = function (err) {
|
12024 | if (this.destroyed) return
|
12025 | this.destroyed = true
|
12026 |
|
12027 | if (this._current && this._current.destroy) this._current.destroy()
|
12028 | if (typeof this._queue !== 'function') {
|
12029 | this._queue.forEach(function (stream) {
|
12030 | if (stream.destroy) stream.destroy()
|
12031 | })
|
12032 | }
|
12033 |
|
12034 | if (err) this.emit('error', err)
|
12035 | this.emit('close')
|
12036 | }
|
12037 |
|
12038 | MultiStream.prototype._next = function () {
|
12039 | var self = this
|
12040 | self._current = null
|
12041 |
|
12042 | if (typeof self._queue === 'function') {
|
12043 | self._queue(function (err, stream) {
|
12044 | if (err) return self.destroy(err)
|
12045 | stream = self._toStreams2(stream)
|
12046 | self._attachErrorListener(stream)
|
12047 | self._gotNextStream(stream)
|
12048 | })
|
12049 | } else {
|
12050 | var stream = self._queue.shift()
|
12051 | if (typeof stream === 'function') {
|
12052 | stream = self._toStreams2(stream())
|
12053 | self._attachErrorListener(stream)
|
12054 | }
|
12055 | self._gotNextStream(stream)
|
12056 | }
|
12057 | }
|
12058 |
|
12059 | MultiStream.prototype._gotNextStream = function (stream) {
|
12060 | var self = this
|
12061 |
|
12062 | if (!stream) {
|
12063 | self.push(null)
|
12064 | self.destroy()
|
12065 | return
|
12066 | }
|
12067 |
|
12068 | self._current = stream
|
12069 | self._forward()
|
12070 |
|
12071 | stream.on('readable', onReadable)
|
12072 | stream.once('end', onEnd)
|
12073 | stream.once('close', onClose)
|
12074 |
|
12075 | function onReadable () {
|
12076 | self._forward()
|
12077 | }
|
12078 |
|
12079 | function onClose () {
|
12080 | if (!stream._readableState.ended) {
|
12081 | self.destroy()
|
12082 | }
|
12083 | }
|
12084 |
|
12085 | function onEnd () {
|
12086 | self._current = null
|
12087 | stream.removeListener('readable', onReadable)
|
12088 | stream.removeListener('end', onEnd)
|
12089 | stream.removeListener('close', onClose)
|
12090 | self._next()
|
12091 | }
|
12092 | }
|
12093 |
|
12094 | MultiStream.prototype._attachErrorListener = function (stream) {
|
12095 | var self = this
|
12096 | if (!stream) return
|
12097 |
|
12098 | stream.once('error', onError)
|
12099 |
|
12100 | function onError (err) {
|
12101 | stream.removeListener('error', onError)
|
12102 | self.destroy(err)
|
12103 | }
|
12104 | }
|
12105 |
|
12106 | function toStreams2Obj (s) {
|
12107 | return toStreams2(s, {objectMode: true, highWaterMark: 16})
|
12108 | }
|
12109 |
|
12110 | function toStreams2Buf (s) {
|
12111 | return toStreams2(s)
|
12112 | }
|
12113 |
|
12114 | function toStreams2 (s, opts) {
|
12115 | if (!s || typeof s === 'function' || s._readableState) return s
|
12116 |
|
12117 | var wrap = new stream.Readable(opts).wrap(s)
|
12118 | if (s.destroy) {
|
12119 | wrap.destroy = s.destroy.bind(s)
|
12120 | }
|
12121 | return wrap
|
12122 | }
|
12123 |
|
12124 |
|
12125 | }),
|
12126 | ,
|
12127 | ,
|
12128 | ,
|
12129 | ,
|
12130 | ,
|
12131 | ,
|
12132 | ,
|
12133 | ,
|
12134 | ,
|
12135 | ,
|
12136 | ,
|
12137 | ,
|
12138 | ,
|
12139 | ,
|
12140 | ,
|
12141 |
|
12142 | (function(module) {
|
12143 |
|
12144 | "use strict";
|
12145 |
|
12146 |
|
12147 |
|
12148 |
|
12149 |
|
12150 |
|
12151 |
|
12152 |
|
12153 |
|
12154 |
|
12155 |
|
12156 |
|
12157 |
|
12158 |
|
12159 |
|
12160 |
|
12161 |
|
12162 |
|
12163 |
|
12164 |
|
12165 |
|
12166 |
|
12167 | function Deque(capacity) {
|
12168 | this._capacity = getCapacity(capacity);
|
12169 | this._length = 0;
|
12170 | this._front = 0;
|
12171 | if (isArray(capacity)) {
|
12172 | var len = capacity.length;
|
12173 | for (var i = 0; i < len; ++i) {
|
12174 | this[i] = capacity[i];
|
12175 | }
|
12176 | this._length = len;
|
12177 | }
|
12178 | }
|
12179 |
|
12180 | Deque.prototype.toArray = function Deque$toArray() {
|
12181 | var len = this._length;
|
12182 | var ret = new Array(len);
|
12183 | var front = this._front;
|
12184 | var capacity = this._capacity;
|
12185 | for (var j = 0; j < len; ++j) {
|
12186 | ret[j] = this[(front + j) & (capacity - 1)];
|
12187 | }
|
12188 | return ret;
|
12189 | };
|
12190 |
|
12191 | Deque.prototype.push = function Deque$push(item) {
|
12192 | var argsLength = arguments.length;
|
12193 | var length = this._length;
|
12194 | if (argsLength > 1) {
|
12195 | var capacity = this._capacity;
|
12196 | if (length + argsLength > capacity) {
|
12197 | for (var i = 0; i < argsLength; ++i) {
|
12198 | this._checkCapacity(length + 1);
|
12199 | var j = (this._front + length) & (this._capacity - 1);
|
12200 | this[j] = arguments[i];
|
12201 | length++;
|
12202 | this._length = length;
|
12203 | }
|
12204 | return length;
|
12205 | }
|
12206 | else {
|
12207 | var j = this._front;
|
12208 | for (var i = 0; i < argsLength; ++i) {
|
12209 | this[(j + length) & (capacity - 1)] = arguments[i];
|
12210 | j++;
|
12211 | }
|
12212 | this._length = length + argsLength;
|
12213 | return length + argsLength;
|
12214 | }
|
12215 |
|
12216 | }
|
12217 |
|
12218 | if (argsLength === 0) return length;
|
12219 |
|
12220 | this._checkCapacity(length + 1);
|
12221 | var i = (this._front + length) & (this._capacity - 1);
|
12222 | this[i] = item;
|
12223 | this._length = length + 1;
|
12224 | return length + 1;
|
12225 | };
|
12226 |
|
12227 | Deque.prototype.pop = function Deque$pop() {
|
12228 | var length = this._length;
|
12229 | if (length === 0) {
|
12230 | return void 0;
|
12231 | }
|
12232 | var i = (this._front + length - 1) & (this._capacity - 1);
|
12233 | var ret = this[i];
|
12234 | this[i] = void 0;
|
12235 | this._length = length - 1;
|
12236 | return ret;
|
12237 | };
|
12238 |
|
12239 | Deque.prototype.shift = function Deque$shift() {
|
12240 | var length = this._length;
|
12241 | if (length === 0) {
|
12242 | return void 0;
|
12243 | }
|
12244 | var front = this._front;
|
12245 | var ret = this[front];
|
12246 | this[front] = void 0;
|
12247 | this._front = (front + 1) & (this._capacity - 1);
|
12248 | this._length = length - 1;
|
12249 | return ret;
|
12250 | };
|
12251 |
|
12252 | Deque.prototype.unshift = function Deque$unshift(item) {
|
12253 | var length = this._length;
|
12254 | var argsLength = arguments.length;
|
12255 |
|
12256 |
|
12257 | if (argsLength > 1) {
|
12258 | var capacity = this._capacity;
|
12259 | if (length + argsLength > capacity) {
|
12260 | for (var i = argsLength - 1; i >= 0; i--) {
|
12261 | this._checkCapacity(length + 1);
|
12262 | var capacity = this._capacity;
|
12263 | var j = (((( this._front - 1 ) &
|
12264 | ( capacity - 1) ) ^ capacity ) - capacity );
|
12265 | this[j] = arguments[i];
|
12266 | length++;
|
12267 | this._length = length;
|
12268 | this._front = j;
|
12269 | }
|
12270 | return length;
|
12271 | }
|
12272 | else {
|
12273 | var front = this._front;
|
12274 | for (var i = argsLength - 1; i >= 0; i--) {
|
12275 | var j = (((( front - 1 ) &
|
12276 | ( capacity - 1) ) ^ capacity ) - capacity );
|
12277 | this[j] = arguments[i];
|
12278 | front = j;
|
12279 | }
|
12280 | this._front = front;
|
12281 | this._length = length + argsLength;
|
12282 | return length + argsLength;
|
12283 | }
|
12284 | }
|
12285 |
|
12286 | if (argsLength === 0) return length;
|
12287 |
|
12288 | this._checkCapacity(length + 1);
|
12289 | var capacity = this._capacity;
|
12290 | var i = (((( this._front - 1 ) &
|
12291 | ( capacity - 1) ) ^ capacity ) - capacity );
|
12292 | this[i] = item;
|
12293 | this._length = length + 1;
|
12294 | this._front = i;
|
12295 | return length + 1;
|
12296 | };
|
12297 |
|
12298 | Deque.prototype.peekBack = function Deque$peekBack() {
|
12299 | var length = this._length;
|
12300 | if (length === 0) {
|
12301 | return void 0;
|
12302 | }
|
12303 | var index = (this._front + length - 1) & (this._capacity - 1);
|
12304 | return this[index];
|
12305 | };
|
12306 |
|
12307 | Deque.prototype.peekFront = function Deque$peekFront() {
|
12308 | if (this._length === 0) {
|
12309 | return void 0;
|
12310 | }
|
12311 | return this[this._front];
|
12312 | };
|
12313 |
|
12314 | Deque.prototype.get = function Deque$get(index) {
|
12315 | var i = index;
|
12316 | if ((i !== (i | 0))) {
|
12317 | return void 0;
|
12318 | }
|
12319 | var len = this._length;
|
12320 | if (i < 0) {
|
12321 | i = i + len;
|
12322 | }
|
12323 | if (i < 0 || i >= len) {
|
12324 | return void 0;
|
12325 | }
|
12326 | return this[(this._front + i) & (this._capacity - 1)];
|
12327 | };
|
12328 |
|
12329 | Deque.prototype.isEmpty = function Deque$isEmpty() {
|
12330 | return this._length === 0;
|
12331 | };
|
12332 |
|
12333 | Deque.prototype.clear = function Deque$clear() {
|
12334 | var len = this._length;
|
12335 | var front = this._front;
|
12336 | var capacity = this._capacity;
|
12337 | for (var j = 0; j < len; ++j) {
|
12338 | this[(front + j) & (capacity - 1)] = void 0;
|
12339 | }
|
12340 | this._length = 0;
|
12341 | this._front = 0;
|
12342 | };
|
12343 |
|
12344 | Deque.prototype.toString = function Deque$toString() {
|
12345 | return this.toArray().toString();
|
12346 | };
|
12347 |
|
12348 | Deque.prototype.valueOf = Deque.prototype.toString;
|
12349 | Deque.prototype.removeFront = Deque.prototype.shift;
|
12350 | Deque.prototype.removeBack = Deque.prototype.pop;
|
12351 | Deque.prototype.insertFront = Deque.prototype.unshift;
|
12352 | Deque.prototype.insertBack = Deque.prototype.push;
|
12353 | Deque.prototype.enqueue = Deque.prototype.push;
|
12354 | Deque.prototype.dequeue = Deque.prototype.shift;
|
12355 | Deque.prototype.toJSON = Deque.prototype.toArray;
|
12356 |
|
12357 | Object.defineProperty(Deque.prototype, "length", {
|
12358 | get: function() {
|
12359 | return this._length;
|
12360 | },
|
12361 | set: function() {
|
12362 | throw new RangeError("");
|
12363 | }
|
12364 | });
|
12365 |
|
12366 | Deque.prototype._checkCapacity = function Deque$_checkCapacity(size) {
|
12367 | if (this._capacity < size) {
|
12368 | this._resizeTo(getCapacity(this._capacity * 1.5 + 16));
|
12369 | }
|
12370 | };
|
12371 |
|
12372 | Deque.prototype._resizeTo = function Deque$_resizeTo(capacity) {
|
12373 | var oldCapacity = this._capacity;
|
12374 | this._capacity = capacity;
|
12375 | var front = this._front;
|
12376 | var length = this._length;
|
12377 | if (front + length > oldCapacity) {
|
12378 | var moveItemsCount = (front + length) & (oldCapacity - 1);
|
12379 | arrayMove(this, 0, this, oldCapacity, moveItemsCount);
|
12380 | }
|
12381 | };
|
12382 |
|
12383 |
|
12384 | var isArray = Array.isArray;
|
12385 |
|
12386 | function arrayMove(src, srcIndex, dst, dstIndex, len) {
|
12387 | for (var j = 0; j < len; ++j) {
|
12388 | dst[j + dstIndex] = src[j + srcIndex];
|
12389 | src[j + srcIndex] = void 0;
|
12390 | }
|
12391 | }
|
12392 |
|
12393 | function pow2AtLeast(n) {
|
12394 | n = n >>> 0;
|
12395 | n = n - 1;
|
12396 | n = n | (n >> 1);
|
12397 | n = n | (n >> 2);
|
12398 | n = n | (n >> 4);
|
12399 | n = n | (n >> 8);
|
12400 | n = n | (n >> 16);
|
12401 | return n + 1;
|
12402 | }
|
12403 |
|
12404 | function getCapacity(capacity) {
|
12405 | if (typeof capacity !== "number") {
|
12406 | if (isArray(capacity)) {
|
12407 | capacity = capacity.length;
|
12408 | }
|
12409 | else {
|
12410 | return 16;
|
12411 | }
|
12412 | }
|
12413 | return pow2AtLeast(
|
12414 | Math.min(
|
12415 | Math.max(16, capacity), 1073741824)
|
12416 | );
|
12417 | }
|
12418 |
|
12419 | module.exports = Deque;
|
12420 |
|
12421 |
|
12422 | }),
|
12423 | ,
|
12424 | ,
|
12425 | ,
|
12426 | ,
|
12427 | ,
|
12428 | ,
|
12429 | ,
|
12430 |
|
12431 | (function(module) {
|
12432 |
|
12433 | "use strict";
|
12434 |
|
12435 |
|
12436 | module.exports = function () {
|
12437 |
|
12438 | return /\uD83C\uDFF4(?:\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74)\uDB40\uDC7F|\u200D\u2620\uFE0F)|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3]))|\uD83D\uDC69\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83D\uDC69\u200D[\u2695\u2696\u2708])\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC68(?:\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDD1-\uDDDD])/g;
|
12439 | };
|
12440 |
|
12441 |
|
12442 | }),
|
12443 | ,
|
12444 | ,
|
12445 | ,
|
12446 |
|
12447 | (function(module, __unusedexports, __webpack_require__) {
|
12448 |
|
12449 |
|
12450 |
|
12451 |
|
12452 |
|
12453 |
|
12454 | module.exports = __webpack_require__(669).deprecate;
|
12455 |
|
12456 |
|
12457 | }),
|
12458 |
|
12459 | (function(module) {
|
12460 |
|
12461 | "use strict";
|
12462 |
|
12463 |
|
12464 |
|
12465 | const isFullwidthCodePoint = codePoint => {
|
12466 | if (Number.isNaN(codePoint)) {
|
12467 | return false;
|
12468 | }
|
12469 |
|
12470 |
|
12471 |
|
12472 | if (
|
12473 | codePoint >= 0x1100 && (
|
12474 | codePoint <= 0x115F ||
|
12475 | codePoint === 0x2329 ||
|
12476 | codePoint === 0x232A ||
|
12477 |
|
12478 | (0x2E80 <= codePoint && codePoint <= 0x3247 && codePoint !== 0x303F) ||
|
12479 |
|
12480 | (0x3250 <= codePoint && codePoint <= 0x4DBF) ||
|
12481 |
|
12482 | (0x4E00 <= codePoint && codePoint <= 0xA4C6) ||
|
12483 |
|
12484 | (0xA960 <= codePoint && codePoint <= 0xA97C) ||
|
12485 |
|
12486 | (0xAC00 <= codePoint && codePoint <= 0xD7A3) ||
|
12487 |
|
12488 | (0xF900 <= codePoint && codePoint <= 0xFAFF) ||
|
12489 |
|
12490 | (0xFE10 <= codePoint && codePoint <= 0xFE19) ||
|
12491 |
|
12492 | (0xFE30 <= codePoint && codePoint <= 0xFE6B) ||
|
12493 |
|
12494 | (0xFF01 <= codePoint && codePoint <= 0xFF60) ||
|
12495 | (0xFFE0 <= codePoint && codePoint <= 0xFFE6) ||
|
12496 |
|
12497 | (0x1B000 <= codePoint && codePoint <= 0x1B001) ||
|
12498 |
|
12499 | (0x1F200 <= codePoint && codePoint <= 0x1F251) ||
|
12500 |
|
12501 | (0x20000 <= codePoint && codePoint <= 0x3FFFD)
|
12502 | )
|
12503 | ) {
|
12504 | return true;
|
12505 | }
|
12506 |
|
12507 | return false;
|
12508 | };
|
12509 |
|
12510 | module.exports = isFullwidthCodePoint;
|
12511 | module.exports.default = isFullwidthCodePoint;
|
12512 |
|
12513 |
|
12514 | }),
|
12515 | ,
|
12516 | ,
|
12517 | ,
|
12518 | ,
|
12519 | ,
|
12520 |
|
12521 | (function(module, __unusedexports, __webpack_require__) {
|
12522 |
|
12523 | "use strict";
|
12524 |
|
12525 |
|
12526 |
|
12527 | var common = __webpack_require__(414);
|
12528 |
|
12529 |
|
12530 | function Mark(name, buffer, position, line, column) {
|
12531 | this.name = name;
|
12532 | this.buffer = buffer;
|
12533 | this.position = position;
|
12534 | this.line = line;
|
12535 | this.column = column;
|
12536 | }
|
12537 |
|
12538 |
|
12539 | Mark.prototype.getSnippet = function getSnippet(indent, maxLength) {
|
12540 | var head, start, tail, end, snippet;
|
12541 |
|
12542 | if (!this.buffer) return null;
|
12543 |
|
12544 | indent = indent || 4;
|
12545 | maxLength = maxLength || 75;
|
12546 |
|
12547 | head = '';
|
12548 | start = this.position;
|
12549 |
|
12550 | while (start > 0 && '\x00\r\n\x85\u2028\u2029'.indexOf(this.buffer.charAt(start - 1)) === -1) {
|
12551 | start -= 1;
|
12552 | if (this.position - start > (maxLength / 2 - 1)) {
|
12553 | head = ' ... ';
|
12554 | start += 5;
|
12555 | break;
|
12556 | }
|
12557 | }
|
12558 |
|
12559 | tail = '';
|
12560 | end = this.position;
|
12561 |
|
12562 | while (end < this.buffer.length && '\x00\r\n\x85\u2028\u2029'.indexOf(this.buffer.charAt(end)) === -1) {
|
12563 | end += 1;
|
12564 | if (end - this.position > (maxLength / 2 - 1)) {
|
12565 | tail = ' ... ';
|
12566 | end -= 5;
|
12567 | break;
|
12568 | }
|
12569 | }
|
12570 |
|
12571 | snippet = this.buffer.slice(start, end);
|
12572 |
|
12573 | return common.repeat(' ', indent) + head + snippet + tail + '\n' +
|
12574 | common.repeat(' ', indent + this.position - start + head.length) + '^';
|
12575 | };
|
12576 |
|
12577 |
|
12578 | Mark.prototype.toString = function toString(compact) {
|
12579 | var snippet, where = '';
|
12580 |
|
12581 | if (this.name) {
|
12582 | where += 'in "' + this.name + '" ';
|
12583 | }
|
12584 |
|
12585 | where += 'at line ' + (this.line + 1) + ', column ' + (this.column + 1);
|
12586 |
|
12587 | if (!compact) {
|
12588 | snippet = this.getSnippet();
|
12589 |
|
12590 | if (snippet) {
|
12591 | where += ':\n' + snippet;
|
12592 | }
|
12593 | }
|
12594 |
|
12595 | return where;
|
12596 | };
|
12597 |
|
12598 |
|
12599 | module.exports = Mark;
|
12600 |
|
12601 |
|
12602 | }),
|
12603 |
|
12604 | (function(module, __unusedexports, __webpack_require__) {
|
12605 |
|
12606 | "use strict";
|
12607 |
|
12608 | const f = __webpack_require__(677)
|
12609 | const DateTime = global.Date
|
12610 |
|
12611 | class Date extends DateTime {
|
12612 | constructor (value) {
|
12613 | super(value)
|
12614 | this.isDate = true
|
12615 | }
|
12616 | toISOString () {
|
12617 | return `${this.getUTCFullYear()}-${f(2, this.getUTCMonth() + 1)}-${f(2, this.getUTCDate())}`
|
12618 | }
|
12619 | }
|
12620 |
|
12621 | module.exports = value => {
|
12622 | const date = new Date(value)
|
12623 |
|
12624 | if (isNaN(date)) {
|
12625 | throw new TypeError('Invalid Datetime')
|
12626 | } else {
|
12627 | return date
|
12628 | }
|
12629 | }
|
12630 |
|
12631 |
|
12632 | }),
|
12633 |
|
12634 | (function(module, __unusedexports, __webpack_require__) {
|
12635 |
|
12636 | "use strict";
|
12637 |
|
12638 |
|
12639 | const fs = __webpack_require__(729)
|
12640 | const path = __webpack_require__(622)
|
12641 | const invalidWin32Path = __webpack_require__(868).invalidWin32Path
|
12642 |
|
12643 | const o777 = parseInt('0777', 8)
|
12644 |
|
12645 | function mkdirsSync (p, opts, made) {
|
12646 | if (!opts || typeof opts !== 'object') {
|
12647 | opts = { mode: opts }
|
12648 | }
|
12649 |
|
12650 | let mode = opts.mode
|
12651 | const xfs = opts.fs || fs
|
12652 |
|
12653 | if (process.platform === 'win32' && invalidWin32Path(p)) {
|
12654 | const errInval = new Error(p + ' contains invalid WIN32 path characters.')
|
12655 | errInval.code = 'EINVAL'
|
12656 | throw errInval
|
12657 | }
|
12658 |
|
12659 | if (mode === undefined) {
|
12660 | mode = o777 & (~process.umask())
|
12661 | }
|
12662 | if (!made) made = null
|
12663 |
|
12664 | p = path.resolve(p)
|
12665 |
|
12666 | try {
|
12667 | xfs.mkdirSync(p, mode)
|
12668 | made = made || p
|
12669 | } catch (err0) {
|
12670 | if (err0.code === 'ENOENT') {
|
12671 | if (path.dirname(p) === p) throw err0
|
12672 | made = mkdirsSync(path.dirname(p), opts, made)
|
12673 | mkdirsSync(p, opts, made)
|
12674 | } else {
|
12675 |
|
12676 |
|
12677 | let stat
|
12678 | try {
|
12679 | stat = xfs.statSync(p)
|
12680 | } catch (err1) {
|
12681 | throw err0
|
12682 | }
|
12683 | if (!stat.isDirectory()) throw err0
|
12684 | }
|
12685 | }
|
12686 |
|
12687 | return made
|
12688 | }
|
12689 |
|
12690 | module.exports = mkdirsSync
|
12691 |
|
12692 |
|
12693 | }),
|
12694 | ,
|
12695 | ,
|
12696 | ,
|
12697 | ,
|
12698 |
|
12699 | (function(__unusedmodule, exports, __webpack_require__) {
|
12700 |
|
12701 | "use strict";
|
12702 |
|
12703 | var Buffer = __webpack_require__(603).Buffer;
|
12704 |
|
12705 |
|
12706 |
|
12707 |
|
12708 | exports.utf7 = Utf7Codec;
|
12709 | exports.unicode11utf7 = 'utf7';
|
12710 | function Utf7Codec(codecOptions, iconv) {
|
12711 | this.iconv = iconv;
|
12712 | };
|
12713 |
|
12714 | Utf7Codec.prototype.encoder = Utf7Encoder;
|
12715 | Utf7Codec.prototype.decoder = Utf7Decoder;
|
12716 | Utf7Codec.prototype.bomAware = true;
|
12717 |
|
12718 |
|
12719 |
|
12720 |
|
12721 | var nonDirectChars = /[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;
|
12722 |
|
12723 | function Utf7Encoder(options, codec) {
|
12724 | this.iconv = codec.iconv;
|
12725 | }
|
12726 |
|
12727 | Utf7Encoder.prototype.write = function(str) {
|
12728 |
|
12729 |
|
12730 | return Buffer.from(str.replace(nonDirectChars, function(chunk) {
|
12731 | return "+" + (chunk === '+' ? '' :
|
12732 | this.iconv.encode(chunk, 'utf16-be').toString('base64').replace(/=+$/, ''))
|
12733 | + "-";
|
12734 | }.bind(this)));
|
12735 | }
|
12736 |
|
12737 | Utf7Encoder.prototype.end = function() {
|
12738 | }
|
12739 |
|
12740 |
|
12741 |
|
12742 |
|
12743 | function Utf7Decoder(options, codec) {
|
12744 | this.iconv = codec.iconv;
|
12745 | this.inBase64 = false;
|
12746 | this.base64Accum = '';
|
12747 | }
|
12748 |
|
12749 | var base64Regex = /[A-Za-z0-9\/+]/;
|
12750 | var base64Chars = [];
|
12751 | for (var i = 0; i < 256; i++)
|
12752 | base64Chars[i] = base64Regex.test(String.fromCharCode(i));
|
12753 |
|
12754 | var plusChar = '+'.charCodeAt(0),
|
12755 | minusChar = '-'.charCodeAt(0),
|
12756 | andChar = '&'.charCodeAt(0);
|
12757 |
|
12758 | Utf7Decoder.prototype.write = function(buf) {
|
12759 | var res = "", lastI = 0,
|
12760 | inBase64 = this.inBase64,
|
12761 | base64Accum = this.base64Accum;
|
12762 |
|
12763 |
|
12764 |
|
12765 | for (var i = 0; i < buf.length; i++) {
|
12766 | if (!inBase64) {
|
12767 |
|
12768 | if (buf[i] == plusChar) {
|
12769 | res += this.iconv.decode(buf.slice(lastI, i), "ascii");
|
12770 | lastI = i+1;
|
12771 | inBase64 = true;
|
12772 | }
|
12773 | } else {
|
12774 | if (!base64Chars[buf[i]]) {
|
12775 | if (i == lastI && buf[i] == minusChar) {
|
12776 | res += "+";
|
12777 | } else {
|
12778 | var b64str = base64Accum + buf.slice(lastI, i).toString();
|
12779 | res += this.iconv.decode(Buffer.from(b64str, 'base64'), "utf16-be");
|
12780 | }
|
12781 |
|
12782 | if (buf[i] != minusChar)
|
12783 | i--;
|
12784 |
|
12785 | lastI = i+1;
|
12786 | inBase64 = false;
|
12787 | base64Accum = '';
|
12788 | }
|
12789 | }
|
12790 | }
|
12791 |
|
12792 | if (!inBase64) {
|
12793 | res += this.iconv.decode(buf.slice(lastI), "ascii");
|
12794 | } else {
|
12795 | var b64str = base64Accum + buf.slice(lastI).toString();
|
12796 |
|
12797 | var canBeDecoded = b64str.length - (b64str.length % 8);
|
12798 | base64Accum = b64str.slice(canBeDecoded);
|
12799 | b64str = b64str.slice(0, canBeDecoded);
|
12800 |
|
12801 | res += this.iconv.decode(Buffer.from(b64str, 'base64'), "utf16-be");
|
12802 | }
|
12803 |
|
12804 | this.inBase64 = inBase64;
|
12805 | this.base64Accum = base64Accum;
|
12806 |
|
12807 | return res;
|
12808 | }
|
12809 |
|
12810 | Utf7Decoder.prototype.end = function() {
|
12811 | var res = "";
|
12812 | if (this.inBase64 && this.base64Accum.length > 0)
|
12813 | res = this.iconv.decode(Buffer.from(this.base64Accum, 'base64'), "utf16-be");
|
12814 |
|
12815 | this.inBase64 = false;
|
12816 | this.base64Accum = '';
|
12817 | return res;
|
12818 | }
|
12819 |
|
12820 |
|
12821 |
|
12822 |
|
12823 |
|
12824 |
|
12825 |
|
12826 |
|
12827 |
|
12828 |
|
12829 |
|
12830 |
|
12831 |
|
12832 |
|
12833 | exports.utf7imap = Utf7IMAPCodec;
|
12834 | function Utf7IMAPCodec(codecOptions, iconv) {
|
12835 | this.iconv = iconv;
|
12836 | };
|
12837 |
|
12838 | Utf7IMAPCodec.prototype.encoder = Utf7IMAPEncoder;
|
12839 | Utf7IMAPCodec.prototype.decoder = Utf7IMAPDecoder;
|
12840 | Utf7IMAPCodec.prototype.bomAware = true;
|
12841 |
|
12842 |
|
12843 |
|
12844 |
|
12845 | function Utf7IMAPEncoder(options, codec) {
|
12846 | this.iconv = codec.iconv;
|
12847 | this.inBase64 = false;
|
12848 | this.base64Accum = Buffer.alloc(6);
|
12849 | this.base64AccumIdx = 0;
|
12850 | }
|
12851 |
|
12852 | Utf7IMAPEncoder.prototype.write = function(str) {
|
12853 | var inBase64 = this.inBase64,
|
12854 | base64Accum = this.base64Accum,
|
12855 | base64AccumIdx = this.base64AccumIdx,
|
12856 | buf = Buffer.alloc(str.length*5 + 10), bufIdx = 0;
|
12857 |
|
12858 | for (var i = 0; i < str.length; i++) {
|
12859 | var uChar = str.charCodeAt(i);
|
12860 | if (0x20 <= uChar && uChar <= 0x7E) {
|
12861 | if (inBase64) {
|
12862 | if (base64AccumIdx > 0) {
|
12863 | bufIdx += buf.write(base64Accum.slice(0, base64AccumIdx).toString('base64').replace(/\//g, ',').replace(/=+$/, ''), bufIdx);
|
12864 | base64AccumIdx = 0;
|
12865 | }
|
12866 |
|
12867 | buf[bufIdx++] = minusChar;
|
12868 | inBase64 = false;
|
12869 | }
|
12870 |
|
12871 | if (!inBase64) {
|
12872 | buf[bufIdx++] = uChar;
|
12873 |
|
12874 | if (uChar === andChar)
|
12875 | buf[bufIdx++] = minusChar;
|
12876 | }
|
12877 |
|
12878 | } else {
|
12879 | if (!inBase64) {
|
12880 | buf[bufIdx++] = andChar;
|
12881 | inBase64 = true;
|
12882 | }
|
12883 | if (inBase64) {
|
12884 | base64Accum[base64AccumIdx++] = uChar >> 8;
|
12885 | base64Accum[base64AccumIdx++] = uChar & 0xFF;
|
12886 |
|
12887 | if (base64AccumIdx == base64Accum.length) {
|
12888 | bufIdx += buf.write(base64Accum.toString('base64').replace(/\//g, ','), bufIdx);
|
12889 | base64AccumIdx = 0;
|
12890 | }
|
12891 | }
|
12892 | }
|
12893 | }
|
12894 |
|
12895 | this.inBase64 = inBase64;
|
12896 | this.base64AccumIdx = base64AccumIdx;
|
12897 |
|
12898 | return buf.slice(0, bufIdx);
|
12899 | }
|
12900 |
|
12901 | Utf7IMAPEncoder.prototype.end = function() {
|
12902 | var buf = Buffer.alloc(10), bufIdx = 0;
|
12903 | if (this.inBase64) {
|
12904 | if (this.base64AccumIdx > 0) {
|
12905 | bufIdx += buf.write(this.base64Accum.slice(0, this.base64AccumIdx).toString('base64').replace(/\//g, ',').replace(/=+$/, ''), bufIdx);
|
12906 | this.base64AccumIdx = 0;
|
12907 | }
|
12908 |
|
12909 | buf[bufIdx++] = minusChar;
|
12910 | this.inBase64 = false;
|
12911 | }
|
12912 |
|
12913 | return buf.slice(0, bufIdx);
|
12914 | }
|
12915 |
|
12916 |
|
12917 |
|
12918 |
|
12919 | function Utf7IMAPDecoder(options, codec) {
|
12920 | this.iconv = codec.iconv;
|
12921 | this.inBase64 = false;
|
12922 | this.base64Accum = '';
|
12923 | }
|
12924 |
|
12925 | var base64IMAPChars = base64Chars.slice();
|
12926 | base64IMAPChars[','.charCodeAt(0)] = true;
|
12927 |
|
12928 | Utf7IMAPDecoder.prototype.write = function(buf) {
|
12929 | var res = "", lastI = 0,
|
12930 | inBase64 = this.inBase64,
|
12931 | base64Accum = this.base64Accum;
|
12932 |
|
12933 |
|
12934 |
|
12935 |
|
12936 | for (var i = 0; i < buf.length; i++) {
|
12937 | if (!inBase64) {
|
12938 |
|
12939 | if (buf[i] == andChar) {
|
12940 | res += this.iconv.decode(buf.slice(lastI, i), "ascii");
|
12941 | lastI = i+1;
|
12942 | inBase64 = true;
|
12943 | }
|
12944 | } else {
|
12945 | if (!base64IMAPChars[buf[i]]) {
|
12946 | if (i == lastI && buf[i] == minusChar) {
|
12947 | res += "&";
|
12948 | } else {
|
12949 | var b64str = base64Accum + buf.slice(lastI, i).toString().replace(/,/g, '/');
|
12950 | res += this.iconv.decode(Buffer.from(b64str, 'base64'), "utf16-be");
|
12951 | }
|
12952 |
|
12953 | if (buf[i] != minusChar)
|
12954 | i--;
|
12955 |
|
12956 | lastI = i+1;
|
12957 | inBase64 = false;
|
12958 | base64Accum = '';
|
12959 | }
|
12960 | }
|
12961 | }
|
12962 |
|
12963 | if (!inBase64) {
|
12964 | res += this.iconv.decode(buf.slice(lastI), "ascii");
|
12965 | } else {
|
12966 | var b64str = base64Accum + buf.slice(lastI).toString().replace(/,/g, '/');
|
12967 |
|
12968 | var canBeDecoded = b64str.length - (b64str.length % 8);
|
12969 | base64Accum = b64str.slice(canBeDecoded);
|
12970 | b64str = b64str.slice(0, canBeDecoded);
|
12971 |
|
12972 | res += this.iconv.decode(Buffer.from(b64str, 'base64'), "utf16-be");
|
12973 | }
|
12974 |
|
12975 | this.inBase64 = inBase64;
|
12976 | this.base64Accum = base64Accum;
|
12977 |
|
12978 | return res;
|
12979 | }
|
12980 |
|
12981 | Utf7IMAPDecoder.prototype.end = function() {
|
12982 | var res = "";
|
12983 | if (this.inBase64 && this.base64Accum.length > 0)
|
12984 | res = this.iconv.decode(Buffer.from(this.base64Accum, 'base64'), "utf16-be");
|
12985 |
|
12986 | this.inBase64 = false;
|
12987 | this.base64Accum = '';
|
12988 | return res;
|
12989 | }
|
12990 |
|
12991 |
|
12992 |
|
12993 |
|
12994 | }),
|
12995 |
|
12996 | (function(module, __unusedexports, __webpack_require__) {
|
12997 |
|
12998 | "use strict";
|
12999 |
|
13000 |
|
13001 | const u = __webpack_require__(323).fromCallback
|
13002 | const jsonFile = __webpack_require__(914)
|
13003 |
|
13004 | module.exports = {
|
13005 |
|
13006 | readJson: u(jsonFile.readFile),
|
13007 | readJsonSync: jsonFile.readFileSync,
|
13008 | writeJson: u(jsonFile.writeFile),
|
13009 | writeJsonSync: jsonFile.writeFileSync
|
13010 | }
|
13011 |
|
13012 |
|
13013 | }),
|
13014 | ,
|
13015 | ,
|
13016 |
|
13017 | (function(module, __unusedexports, __webpack_require__) {
|
13018 |
|
13019 | "use strict";
|
13020 |
|
13021 |
|
13022 |
|
13023 |
|
13024 |
|
13025 |
|
13026 |
|
13027 |
|
13028 |
|
13029 |
|
13030 | var Schema = __webpack_require__(334);
|
13031 |
|
13032 |
|
13033 | module.exports = new Schema({
|
13034 | include: [
|
13035 | __webpack_require__(274)
|
13036 | ],
|
13037 | implicit: [
|
13038 | __webpack_require__(35),
|
13039 | __webpack_require__(273)
|
13040 | ],
|
13041 | explicit: [
|
13042 | __webpack_require__(34),
|
13043 | __webpack_require__(780),
|
13044 | __webpack_require__(237),
|
13045 | __webpack_require__(661)
|
13046 | ]
|
13047 | });
|
13048 |
|
13049 |
|
13050 | }),
|
13051 | ,
|
13052 | ,
|
13053 | ,
|
13054 | ,
|
13055 |
|
13056 | (function(module) {
|
13057 |
|
13058 | module.exports = [["0","\u0000",127,"€"],["8140","丂丄丅丆丏丒丗丟丠両丣並丩丮丯丱丳丵丷丼乀乁乂乄乆乊乑乕乗乚乛乢乣乤乥乧乨乪",5,"乲乴",9,"乿",6,"亇亊"],["8180","亐亖亗亙亜亝亞亣亪亯亰亱亴亶亷亸亹亼亽亾仈仌仏仐仒仚仛仜仠仢仦仧仩仭仮仯仱仴仸仹仺仼仾伀伂",6,"伋伌伒",4,"伜伝伡伣伨伩伬伭伮伱伳伵伷伹伻伾",4,"佄佅佇",5,"佒佔佖佡佢佦佨佪佫佭佮佱佲併佷佸佹佺佽侀侁侂侅來侇侊侌侎侐侒侓侕侖侘侙侚侜侞侟価侢"],["8240","侤侫侭侰",4,"侶",8,"俀俁係俆俇俈俉俋俌俍俒",4,"俙俛俠俢俤俥俧俫俬俰俲俴俵俶俷俹俻俼俽俿",11],["8280","個倎倐們倓倕倖倗倛倝倞倠倢倣値倧倫倯",10,"倻倽倿偀偁偂偄偅偆偉偊偋偍偐",4,"偖偗偘偙偛偝",7,"偦",5,"偭",8,"偸偹偺偼偽傁傂傃傄傆傇傉傊傋傌傎",20,"傤傦傪傫傭",4,"傳",6,"傼"],["8340","傽",17,"僐",5,"僗僘僙僛",10,"僨僩僪僫僯僰僱僲僴僶",4,"僼",9,"儈"],["8380","儉儊儌",5,"儓",13,"儢",28,"兂兇兊兌兎兏児兒兓兗兘兙兛兝",4,"兣兤兦內兩兪兯兲兺兾兿冃冄円冇冊冋冎冏冐冑冓冔冘冚冝冞冟冡冣冦",4,"冭冮冴冸冹冺冾冿凁凂凃凅凈凊凍凎凐凒",5],["8440","凘凙凚凜凞凟凢凣凥",5,"凬凮凱凲凴凷凾刄刅刉刋刌刏刐刓刔刕刜刞刟刡刢刣別刦刧刪刬刯刱刲刴刵刼刾剄",5,"剋剎剏剒剓剕剗剘"],["8480","剙剚剛剝剟剠剢剣剤剦剨剫剬剭剮剰剱剳",9,"剾劀劃",4,"劉",6,"劑劒劔",6,"劜劤劥劦劧劮劯劰労",9,"勀勁勂勄勅勆勈勊勌勍勎勏勑勓勔動勗務",5,"勠勡勢勣勥",10,"勱",7,"勻勼勽匁匂匃匄匇匉匊匋匌匎"],["8540","匑匒匓匔匘匛匜匞匟匢匤匥匧匨匩匫匬匭匯",9,"匼匽區卂卄卆卋卌卍卐協単卙卛卝卥卨卪卬卭卲卶卹卻卼卽卾厀厁厃厇厈厊厎厏"],["8580","厐",4,"厖厗厙厛厜厞厠厡厤厧厪厫厬厭厯",6,"厷厸厹厺厼厽厾叀參",4,"収叏叐叒叓叕叚叜叝叞叡叢叧叴叺叾叿吀吂吅吇吋吔吘吙吚吜吢吤吥吪吰吳吶吷吺吽吿呁呂呄呅呇呉呌呍呎呏呑呚呝",4,"呣呥呧呩",7,"呴呹呺呾呿咁咃咅咇咈咉咊咍咑咓咗咘咜咞咟咠咡"],["8640","咢咥咮咰咲咵咶咷咹咺咼咾哃哅哊哋哖哘哛哠",4,"哫哬哯哰哱哴",5,"哻哾唀唂唃唄唅唈唊",4,"唒唓唕",5,"唜唝唞唟唡唥唦"],["8680","唨唩唫唭唲唴唵唶唸唹唺唻唽啀啂啅啇啈啋",4,"啑啒啓啔啗",4,"啝啞啟啠啢啣啨啩啫啯",5,"啹啺啽啿喅喆喌喍喎喐喒喓喕喖喗喚喛喞喠",6,"喨",8,"喲喴営喸喺喼喿",4,"嗆嗇嗈嗊嗋嗎嗏嗐嗕嗗",4,"嗞嗠嗢嗧嗩嗭嗮嗰嗱嗴嗶嗸",4,"嗿嘂嘃嘄嘅"],["8740","嘆嘇嘊嘋嘍嘐",7,"嘙嘚嘜嘝嘠嘡嘢嘥嘦嘨嘩嘪嘫嘮嘯嘰嘳嘵嘷嘸嘺嘼嘽嘾噀",11,"噏",4,"噕噖噚噛噝",4],["8780","噣噥噦噧噭噮噯噰噲噳噴噵噷噸噹噺噽",7,"嚇",6,"嚐嚑嚒嚔",14,"嚤",10,"嚰",6,"嚸嚹嚺嚻嚽",12,"囋",8,"囕囖囘囙囜団囥",5,"囬囮囯囲図囶囷囸囻囼圀圁圂圅圇國",6],["8840","園",9,"圝圞圠圡圢圤圥圦圧圫圱圲圴",4,"圼圽圿坁坃坄坅坆坈坉坋坒",4,"坘坙坢坣坥坧坬坮坰坱坲坴坵坸坹坺坽坾坿垀"],["8880","垁垇垈垉垊垍",4,"垔",6,"垜垝垞垟垥垨垪垬垯垰垱垳垵垶垷垹",8,"埄",6,"埌埍埐埑埓埖埗埛埜埞埡埢埣埥",7,"埮埰埱埲埳埵埶執埻埼埾埿堁堃堄堅堈堉堊堌堎堏堐堒堓堔堖堗堘堚堛堜堝堟堢堣堥",4,"堫",4,"報堲堳場堶",7],["8940","堾",5,"塅",6,"塎塏塐塒塓塕塖塗塙",4,"塟",5,"塦",4,"塭",16,"塿墂墄墆墇墈墊墋墌"],["8980","墍",4,"墔",4,"墛墜墝墠",7,"墪",17,"墽墾墿壀壂壃壄壆",10,"壒壓壔壖",13,"壥",5,"壭壯壱売壴壵壷壸壺",7,"夃夅夆夈",4,"夎夐夑夒夓夗夘夛夝夞夠夡夢夣夦夨夬夰夲夳夵夶夻"],["8a40","夽夾夿奀奃奅奆奊奌奍奐奒奓奙奛",4,"奡奣奤奦",12,"奵奷奺奻奼奾奿妀妅妉妋妌妎妏妐妑妔妕妘妚妛妜妝妟妠妡妢妦"],["8a80","妧妬妭妰妱妳",5,"妺妼妽妿",6,"姇姈姉姌姍姎姏姕姖姙姛姞",4,"姤姦姧姩姪姫姭",11,"姺姼姽姾娀娂娊娋娍娎娏娐娒娔娕娖娗娙娚娛娝娞娡娢娤娦娧娨娪",6,"娳娵娷",4,"娽娾娿婁",4,"婇婈婋",9,"婖婗婘婙婛",5],["8b40","婡婣婤婥婦婨婩婫",8,"婸婹婻婼婽婾媀",17,"媓",6,"媜",13,"媫媬"],["8b80","媭",4,"媴媶媷媹",4,"媿嫀嫃",5,"嫊嫋嫍",4,"嫓嫕嫗嫙嫚嫛嫝嫞嫟嫢嫤嫥嫧嫨嫪嫬",4,"嫲",22,"嬊",11,"嬘",25,"嬳嬵嬶嬸",7,"孁",6],["8c40","孈",7,"孒孖孞孠孡孧孨孫孭孮孯孲孴孶孷學孹孻孼孾孿宂宆宊宍宎宐宑宒宔宖実宧宨宩宬宭宮宯宱宲宷宺宻宼寀寁寃寈寉寊寋寍寎寏"],["8c80","寑寔",8,"寠寢寣實寧審",4,"寯寱",6,"寽対尀専尃尅將專尋尌對導尐尒尓尗尙尛尞尟尠尡尣尦尨尩尪尫尭尮尯尰尲尳尵尶尷屃屄屆屇屌屍屒屓屔屖屗屘屚屛屜屝屟屢層屧",6,"屰屲",6,"屻屼屽屾岀岃",4,"岉岊岋岎岏岒岓岕岝",4,"岤",4],["8d40","岪岮岯岰岲岴岶岹岺岻岼岾峀峂峃峅",5,"峌",5,"峓",5,"峚",6,"峢峣峧峩峫峬峮峯峱",9,"峼",4],["8d80","崁崄崅崈",5,"崏",4,"崕崗崘崙崚崜崝崟",4,"崥崨崪崫崬崯",4,"崵",7,"崿",7,"嵈嵉嵍",10,"嵙嵚嵜嵞",10,"嵪嵭嵮嵰嵱嵲嵳嵵",12,"嶃",21,"嶚嶛嶜嶞嶟嶠"],["8e40","嶡",21,"嶸",12,"巆",6,"巎",12,"巜巟巠巣巤巪巬巭"],["8e80","巰巵巶巸",4,"巿帀帄帇帉帊帋帍帎帒帓帗帞",7,"帨",4,"帯帰帲",4,"帹帺帾帿幀幁幃幆",5,"幍",6,"幖",4,"幜幝幟幠幣",14,"幵幷幹幾庁庂広庅庈庉庌庍庎庒庘庛庝庡庢庣庤庨",4,"庮",4,"庴庺庻庼庽庿",6],["8f40","廆廇廈廋",5,"廔廕廗廘廙廚廜",11,"廩廫",8,"廵廸廹廻廼廽弅弆弇弉弌弍弎弐弒弔弖弙弚弜弝弞弡弢弣弤"],["8f80","弨弫弬弮弰弲",6,"弻弽弾弿彁",14,"彑彔彙彚彛彜彞彟彠彣彥彧彨彫彮彯彲彴彵彶彸彺彽彾彿徃徆徍徎徏徑従徔徖徚徛徝從徟徠徢",5,"復徫徬徯",5,"徶徸徹徺徻徾",4,"忇忈忊忋忎忓忔忕忚忛応忞忟忢忣忥忦忨忩忬忯忰忲忳忴忶忷忹忺忼怇"],["9040","怈怉怋怌怐怑怓怗怘怚怞怟怢怣怤怬怭怮怰",4,"怶",4,"怽怾恀恄",6,"恌恎恏恑恓恔恖恗恘恛恜恞恟恠恡恥恦恮恱恲恴恵恷恾悀"],["9080","悁悂悅悆悇悈悊悋悎悏悐悑悓悕悗悘悙悜悞悡悢悤悥悧悩悪悮悰悳悵悶悷悹悺悽",7,"惇惈惉惌",4,"惒惓惔惖惗惙惛惞惡",4,"惪惱惲惵惷惸惻",4,"愂愃愄愅愇愊愋愌愐",4,"愖愗愘愙愛愜愝愞愡愢愥愨愩愪愬",18,"慀",6],["9140","慇慉態慍慏慐慒慓慔慖",6,"慞慟慠慡慣慤慥慦慩",6,"慱慲慳慴慶慸",18,"憌憍憏",4,"憕"],["9180","憖",6,"憞",8,"憪憫憭",9,"憸",5,"憿懀懁懃",4,"應懌",4,"懓懕",16,"懧",13,"懶",8,"戀",5,"戇戉戓戔戙戜戝戞戠戣戦戧戨戩戫戭戯戰戱戲戵戶戸",4,"扂扄扅扆扊"],["9240","扏扐払扖扗扙扚扜",6,"扤扥扨扱扲扴扵扷扸扺扻扽抁抂抃抅抆抇抈抋",5,"抔抙抜抝択抣抦抧抩抪抭抮抯抰抲抳抴抶抷抸抺抾拀拁"],["9280","拃拋拏拑拕拝拞拠拡拤拪拫拰拲拵拸拹拺拻挀挃挄挅挆挊挋挌挍挏挐挒挓挔挕挗挘挙挜挦挧挩挬挭挮挰挱挳",5,"挻挼挾挿捀捁捄捇捈捊捑捒捓捔捖",7,"捠捤捥捦捨捪捫捬捯捰捲捳捴捵捸捹捼捽捾捿掁掃掄掅掆掋掍掑掓掔掕掗掙",6,"採掤掦掫掯掱掲掵掶掹掻掽掿揀"],["9340","揁揂揃揅揇揈揊揋揌揑揓揔揕揗",6,"揟揢揤",4,"揫揬揮揯揰揱揳揵揷揹揺揻揼揾搃搄搆",4,"損搎搑搒搕",5,"搝搟搢搣搤"],["9380","搥搧搨搩搫搮",5,"搵",4,"搻搼搾摀摂摃摉摋",6,"摓摕摖摗摙",4,"摟",7,"摨摪摫摬摮",9,"摻",6,"撃撆撈",8,"撓撔撗撘撚撛撜撝撟",4,"撥撦撧撨撪撫撯撱撲撳撴撶撹撻撽撾撿擁擃擄擆",6,"擏擑擓擔擕擖擙據"],["9440","擛擜擝擟擠擡擣擥擧",24,"攁",7,"攊",7,"攓",4,"攙",8],["9480","攢攣攤攦",4,"攬攭攰攱攲攳攷攺攼攽敀",4,"敆敇敊敋敍敎敐敒敓敔敗敘敚敜敟敠敡敤敥敧敨敩敪敭敮敯敱敳敵敶數",14,"斈斉斊斍斎斏斒斔斕斖斘斚斝斞斠斢斣斦斨斪斬斮斱",7,"斺斻斾斿旀旂旇旈旉旊旍旐旑旓旔旕旘",7,"旡旣旤旪旫"],["9540","旲旳旴旵旸旹旻",4,"昁昄昅昇昈昉昋昍昐昑昒昖昗昘昚昛昜昞昡昢昣昤昦昩昪昫昬昮昰昲昳昷",4,"昽昿晀時晄",6,"晍晎晐晑晘"],["9580","晙晛晜晝晞晠晢晣晥晧晩",4,"晱晲晳晵晸晹晻晼晽晿暀暁暃暅暆暈暉暊暋暍暎暏暐暒暓暔暕暘",4,"暞",8,"暩",4,"暯",4,"暵暶暷暸暺暻暼暽暿",25,"曚曞",7,"曧曨曪",5,"曱曵曶書曺曻曽朁朂會"],["9640","朄朅朆朇朌朎朏朑朒朓朖朘朙朚朜朞朠",5,"朧朩朮朰朲朳朶朷朸朹朻朼朾朿杁杄杅杇杊杋杍杒杔杕杗",4,"杝杢杣杤杦杧杫杬杮東杴杶"],["9680","杸杹杺杻杽枀枂枃枅枆枈枊枌枍枎枏枑枒枓枔枖枙枛枟枠枡枤枦枩枬枮枱枲枴枹",7,"柂柅",9,"柕柖柗柛柟柡柣柤柦柧柨柪柫柭柮柲柵",7,"柾栁栂栃栄栆栍栐栒栔栕栘",4,"栞栟栠栢",6,"栫",6,"栴栵栶栺栻栿桇桋桍桏桒桖",5],["9740","桜桝桞桟桪桬",7,"桵桸",8,"梂梄梇",7,"梐梑梒梔梕梖梘",9,"梣梤梥梩梪梫梬梮梱梲梴梶梷梸"],["9780","梹",6,"棁棃",5,"棊棌棎棏棐棑棓棔棖棗棙棛",4,"棡棢棤",9,"棯棲棳棴棶棷棸棻棽棾棿椀椂椃椄椆",4,"椌椏椑椓",11,"椡椢椣椥",7,"椮椯椱椲椳椵椶椷椸椺椻椼椾楀楁楃",16,"楕楖楘楙楛楜楟"],["9840","楡楢楤楥楧楨楩楪楬業楯楰楲",4,"楺楻楽楾楿榁榃榅榊榋榌榎",5,"榖榗榙榚榝",9,"榩榪榬榮榯榰榲榳榵榶榸榹榺榼榽"],["9880","榾榿槀槂",7,"構槍槏槑槒槓槕",5,"槜槝槞槡",11,"槮槯槰槱槳",9,"槾樀",9,"樋",11,"標",5,"樠樢",5,"権樫樬樭樮樰樲樳樴樶",6,"樿",4,"橅橆橈",7,"橑",6,"橚"],["9940","橜",4,"橢橣橤橦",10,"橲",6,"橺橻橽橾橿檁檂檃檅",8,"檏檒",4,"檘",7,"檡",5],["9980","檧檨檪檭",114,"欥欦欨",6],["9a40","欯欰欱欳欴欵欶欸欻欼欽欿歀歁歂歄歅歈歊歋歍",11,"歚",7,"歨歩歫",13,"歺歽歾歿殀殅殈"],["9a80","殌殎殏殐殑殔殕殗殘殙殜",4,"殢",7,"殫",7,"殶殸",6,"毀毃毄毆",4,"毌毎毐毑毘毚毜",4,"毢",7,"毬毭毮毰毱毲毴毶毷毸毺毻毼毾",6,"氈",4,"氎氒気氜氝氞氠氣氥氫氬氭氱氳氶氷氹氺氻氼氾氿汃汄汅汈汋",4,"汑汒汓汖汘"],["9b40","汙汚汢汣汥汦汧汫",4,"汱汳汵汷汸決汻汼汿沀沄沇沊沋沍沎沑沒沕沖沗沘沚沜沝沞沠沢沨沬沯沰沴沵沶沷沺泀況泂泃泆泇泈泋泍泎泏泑泒泘"],["9b80","泙泚泜泝泟泤泦泧泩泬泭泲泴泹泿洀洂洃洅洆洈洉洊洍洏洐洑洓洔洕洖洘洜洝洟",5,"洦洨洩洬洭洯洰洴洶洷洸洺洿浀浂浄浉浌浐浕浖浗浘浛浝浟浡浢浤浥浧浨浫浬浭浰浱浲浳浵浶浹浺浻浽",4,"涃涄涆涇涊涋涍涏涐涒涖",4,"涜涢涥涬涭涰涱涳涴涶涷涹",5,"淁淂淃淈淉淊"],["9c40","淍淎淏淐淒淓淔淕淗淚淛淜淟淢淣淥淧淨淩淪淭淯淰淲淴淵淶淸淺淽",7,"渆渇済渉渋渏渒渓渕渘渙減渜渞渟渢渦渧渨渪測渮渰渱渳渵"],["9c80","渶渷渹渻",7,"湅",7,"湏湐湑湒湕湗湙湚湜湝湞湠",10,"湬湭湯",14,"満溁溂溄溇溈溊",4,"溑",6,"溙溚溛溝溞溠溡溣溤溦溨溩溫溬溭溮溰溳溵溸溹溼溾溿滀滃滄滅滆滈滉滊滌滍滎滐滒滖滘滙滛滜滝滣滧滪",5],["9d40","滰滱滲滳滵滶滷滸滺",7,"漃漄漅漇漈漊",4,"漐漑漒漖",9,"漡漢漣漥漦漧漨漬漮漰漲漴漵漷",6,"漿潀潁潂"],["9d80","潃潄潅潈潉潊潌潎",9,"潙潚潛潝潟潠潡潣潤潥潧",5,"潯潰潱潳潵潶潷潹潻潽",6,"澅澆澇澊澋澏",12,"澝澞澟澠澢",4,"澨",10,"澴澵澷澸澺",5,"濁濃",5,"濊",6,"濓",10,"濟濢濣濤濥"],["9e40","濦",7,"濰",32,"瀒",7,"瀜",6,"瀤",6],["9e80","瀫",9,"瀶瀷瀸瀺",17,"灍灎灐",13,"灟",11,"灮灱灲灳灴灷灹灺灻災炁炂炃炄炆炇炈炋炌炍炏炐炑炓炗炘炚炛炞",12,"炰炲炴炵炶為炾炿烄烅烆烇烉烋",12,"烚"],["9f40","烜烝烞烠烡烢烣烥烪烮烰",6,"烸烺烻烼烾",10,"焋",4,"焑焒焔焗焛",10,"焧",7,"焲焳焴"],["9f80","焵焷",13,"煆煇煈煉煋煍煏",12,"煝煟",4,"煥煩",4,"煯煰煱煴煵煶煷煹煻煼煾",5,"熅",4,"熋熌熍熎熐熑熒熓熕熖熗熚",4,"熡",6,"熩熪熫熭",5,"熴熶熷熸熺",8,"燄",9,"燏",4],["a040","燖",9,"燡燢燣燤燦燨",5,"燯",9,"燺",11,"爇",19],["a080","爛爜爞",9,"爩爫爭爮爯爲爳爴爺爼爾牀",6,"牉牊牋牎牏牐牑牓牔牕牗牘牚牜牞牠牣牤牥牨牪牫牬牭牰牱牳牴牶牷牸牻牼牽犂犃犅",4,"犌犎犐犑犓",11,"犠",11,"犮犱犲犳犵犺",6,"狅狆狇狉狊狋狌狏狑狓狔狕狖狘狚狛"],["a1a1"," 、。·ˉˇ¨〃々—~‖…‘’“”〔〕〈",7,"〖〗【】±×÷∶∧∨∑∏∪∩∈∷√⊥∥∠⌒⊙∫∮≡≌≈∽∝≠≮≯≤≥∞∵∴♂♀°′″℃$¤¢£‰§№☆★○●◎◇◆□■△▲※→←↑↓〓"],["a2a1","ⅰ",9],["a2b1","⒈",19,"⑴",19,"①",9],["a2e5","㈠",9],["a2f1","Ⅰ",11],["a3a1","!"#¥%",88," ̄"],["a4a1","ぁ",82],["a5a1","ァ",85],["a6a1","Α",16,"Σ",6],["a6c1","α",16,"σ",6],["a6e0","︵︶︹︺︿﹀︽︾﹁﹂﹃﹄"],["a6ee","︻︼︷︸︱"],["a6f4","︳︴"],["a7a1","А",5,"ЁЖ",25],["a7d1","а",5,"ёж",25],["a840","ˊˋ˙–―‥‵℅℉↖↗↘↙∕∟∣≒≦≧⊿═",35,"▁",6],["a880","█",7,"▓▔▕▼▽◢◣◤◥☉⊕〒〝〞"],["a8a1","āáǎàēéěèīíǐìōóǒòūúǔùǖǘǚǜüêɑ"],["a8bd","ńň"],["a8c0","ɡ"],["a8c5","ㄅ",36],["a940","〡",8,"㊣㎎㎏㎜㎝㎞㎡㏄㏎㏑㏒㏕︰¬¦"],["a959","℡㈱"],["a95c","‐"],["a960","ー゛゜ヽヾ〆ゝゞ﹉",9,"﹔﹕﹖﹗﹙",8],["a980","﹢",4,"﹨﹩﹪﹫"],["a996","〇"],["a9a4","─",75],["aa40","狜狝狟狢",5,"狪狫狵狶狹狽狾狿猀猂猄",5,"猋猌猍猏猐猑猒猔猘猙猚猟猠猣猤猦猧猨猭猯猰猲猳猵猶猺猻猼猽獀",8],["aa80","獉獊獋獌獎獏獑獓獔獕獖獘",7,"獡",10,"獮獰獱"],["ab40","獲",11,"獿",4,"玅玆玈玊玌玍玏玐玒玓玔玕玗玘玙玚玜玝玞玠玡玣",5,"玪玬玭玱玴玵玶玸玹玼玽玾玿珁珃",4],["ab80","珋珌珎珒",6,"珚珛珜珝珟珡珢珣珤珦珨珪珫珬珮珯珰珱珳",4],["ac40","珸",10,"琄琇琈琋琌琍琎琑",8,"琜",5,"琣琤琧琩琫琭琯琱琲琷",4,"琽琾琿瑀瑂",11],["ac80","瑎",6,"瑖瑘瑝瑠",12,"瑮瑯瑱",4,"瑸瑹瑺"],["ad40","瑻瑼瑽瑿璂璄璅璆璈璉璊璌璍璏璑",10,"璝璟",7,"璪",15,"璻",12],["ad80","瓈",9,"瓓",8,"瓝瓟瓡瓥瓧",6,"瓰瓱瓲"],["ae40","瓳瓵瓸",6,"甀甁甂甃甅",7,"甎甐甒甔甕甖甗甛甝甞甠",4,"甦甧甪甮甴甶甹甼甽甿畁畂畃畄畆畇畉畊畍畐畑畒畓畕畖畗畘"],["ae80","畝",7,"畧畨畩畫",6,"畳畵當畷畺",4,"疀疁疂疄疅疇"],["af40","疈疉疊疌疍疎疐疓疕疘疛疜疞疢疦",4,"疭疶疷疺疻疿痀痁痆痋痌痎痏痐痑痓痗痙痚痜痝痟痠痡痥痩痬痭痮痯痲痳痵痶痷痸痺痻痽痾瘂瘄瘆瘇"],["af80","瘈瘉瘋瘍瘎瘏瘑瘒瘓瘔瘖瘚瘜瘝瘞瘡瘣瘧瘨瘬瘮瘯瘱瘲瘶瘷瘹瘺瘻瘽癁療癄"],["b040","癅",6,"癎",5,"癕癗",4,"癝癟癠癡癢癤",6,"癬癭癮癰",7,"癹発發癿皀皁皃皅皉皊皌皍皏皐皒皔皕皗皘皚皛"],["b080","皜",7,"皥",8,"皯皰皳皵",9,"盀盁盃啊阿埃挨哎唉哀皑癌蔼矮艾碍爱隘鞍氨安俺按暗岸胺案肮昂盎凹敖熬翱袄傲奥懊澳芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸白柏百摆佰败拜稗斑班搬扳般颁板版扮拌伴瓣半办绊邦帮梆榜膀绑棒磅蚌镑傍谤苞胞包褒剥"],["b140","盄盇盉盋盌盓盕盙盚盜盝盞盠",4,"盦",7,"盰盳盵盶盷盺盻盽盿眀眂眃眅眆眊県眎",10,"眛眜眝眞眡眣眤眥眧眪眫"],["b180","眬眮眰",4,"眹眻眽眾眿睂睄睅睆睈",7,"睒",7,"睜薄雹保堡饱宝抱报暴豹鲍爆杯碑悲卑北辈背贝钡倍狈备惫焙被奔苯本笨崩绷甭泵蹦迸逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛鞭边编贬扁便变卞辨辩辫遍标彪膘表鳖憋别瘪彬斌濒滨宾摈兵冰柄丙秉饼炳"],["b240","睝睞睟睠睤睧睩睪睭",11,"睺睻睼瞁瞂瞃瞆",5,"瞏瞐瞓",11,"瞡瞣瞤瞦瞨瞫瞭瞮瞯瞱瞲瞴瞶",4],["b280","瞼瞾矀",12,"矎",8,"矘矙矚矝",4,"矤病并玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳捕卜哺补埠不布步簿部怖擦猜裁材才财睬踩采彩菜蔡餐参蚕残惭惨灿苍舱仓沧藏操糙槽曹草厕策侧册测层蹭插叉茬茶查碴搽察岔差诧拆柴豺搀掺蝉馋谗缠铲产阐颤昌猖"],["b340","矦矨矪矯矰矱矲矴矵矷矹矺矻矼砃",5,"砊砋砎砏砐砓砕砙砛砞砠砡砢砤砨砪砫砮砯砱砲砳砵砶砽砿硁硂硃硄硆硈硉硊硋硍硏硑硓硔硘硙硚"],["b380","硛硜硞",11,"硯",7,"硸硹硺硻硽",6,"场尝常长偿肠厂敞畅唱倡超抄钞朝嘲潮巢吵炒车扯撤掣彻澈郴臣辰尘晨忱沉陈趁衬撑称城橙成呈乘程惩澄诚承逞骋秤吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽充冲虫崇宠抽酬畴踌稠愁筹仇绸瞅丑臭初出橱厨躇锄雏滁除楚"],["b440","碄碅碆碈碊碋碏碐碒碔碕碖碙碝碞碠碢碤碦碨",7,"碵碶碷碸確碻碼碽碿磀磂磃磄磆磇磈磌磍磎磏磑磒磓磖磗磘磚",9],["b480","磤磥磦磧磩磪磫磭",4,"磳磵磶磸磹磻",5,"礂礃礄礆",6,"础储矗搐触处揣川穿椽传船喘串疮窗幢床闯创吹炊捶锤垂春椿醇唇淳纯蠢戳绰疵茨磁雌辞慈瓷词此刺赐次聪葱囱匆从丛凑粗醋簇促蹿篡窜摧崔催脆瘁粹淬翠村存寸磋撮搓措挫错搭达答瘩打大呆歹傣戴带殆代贷袋待逮"],["b540","礍",5,"礔",9,"礟",4,"礥",14,"礵",4,"礽礿祂祃祄祅祇祊",8,"祔祕祘祙祡祣"],["b580","祤祦祩祪祫祬祮祰",6,"祹祻",4,"禂禃禆禇禈禉禋禌禍禎禐禑禒怠耽担丹单郸掸胆旦氮但惮淡诞弹蛋当挡党荡档刀捣蹈倒岛祷导到稻悼道盗德得的蹬灯登等瞪凳邓堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔颠掂滇碘点典靛垫电佃甸店惦奠淀殿碉叼雕凋刁掉吊钓调跌爹碟蝶迭谍叠"],["b640","禓",6,"禛",11,"禨",10,"禴",4,"禼禿秂秄秅秇秈秊秌秎秏秐秓秔秖秗秙",5,"秠秡秢秥秨秪"],["b680","秬秮秱",6,"秹秺秼秾秿稁稄稅稇稈稉稊稌稏",4,"稕稖稘稙稛稜丁盯叮钉顶鼎锭定订丢东冬董懂动栋侗恫冻洞兜抖斗陡豆逗痘都督毒犊独读堵睹赌杜镀肚度渡妒端短锻段断缎堆兑队对墩吨蹲敦顿囤钝盾遁掇哆多夺垛躲朵跺舵剁惰堕蛾峨鹅俄额讹娥恶厄扼遏鄂饿恩而儿耳尔饵洱二"],["b740","稝稟稡稢稤",14,"稴稵稶稸稺稾穀",5,"穇",9,"穒",4,"穘",16],["b780","穩",6,"穱穲穳穵穻穼穽穾窂窅窇窉窊窋窌窎窏窐窓窔窙窚窛窞窡窢贰发罚筏伐乏阀法珐藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛坊芳方肪房防妨仿访纺放菲非啡飞肥匪诽吠肺废沸费芬酚吩氛分纷坟焚汾粉奋份忿愤粪丰封枫蜂峰锋风疯烽逢冯缝讽奉凤佛否夫敷肤孵扶拂辐幅氟符伏俘服"],["b840","窣窤窧窩窪窫窮",4,"窴",10,"竀",10,"竌",9,"竗竘竚竛竜竝竡竢竤竧",5,"竮竰竱竲竳"],["b880","竴",4,"竻竼竾笀笁笂笅笇笉笌笍笎笐笒笓笖笗笘笚笜笝笟笡笢笣笧笩笭浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐噶嘎该改概钙盖溉干甘杆柑竿肝赶感秆敢赣冈刚钢缸肛纲岗港杠篙皋高膏羔糕搞镐稿告哥歌搁戈鸽胳疙割革葛格蛤阁隔铬个各给根跟耕更庚羹"],["b940","笯笰笲笴笵笶笷笹笻笽笿",5,"筆筈筊筍筎筓筕筗筙筜筞筟筡筣",10,"筯筰筳筴筶筸筺筼筽筿箁箂箃箄箆",6,"箎箏"],["b980","箑箒箓箖箘箙箚箛箞箟箠箣箤箥箮箯箰箲箳箵箶箷箹",7,"篂篃範埂耿梗工攻功恭龚供躬公宫弓巩汞拱贡共钩勾沟苟狗垢构购够辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇刮瓜剐寡挂褂乖拐怪棺关官冠观管馆罐惯灌贯光广逛瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽辊滚棍锅郭国果裹过哈"],["ba40","篅篈築篊篋篍篎篏篐篒篔",4,"篛篜篞篟篠篢篣篤篧篨篩篫篬篭篯篰篲",4,"篸篹篺篻篽篿",7,"簈簉簊簍簎簐",5,"簗簘簙"],["ba80","簚",4,"簠",5,"簨簩簫",12,"簹",5,"籂骸孩海氦亥害骇酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉夯杭航壕嚎豪毫郝好耗号浩呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺嘿黑痕很狠恨哼亨横衡恒轰哄烘虹鸿洪宏弘红喉侯猴吼厚候后呼乎忽瑚壶葫胡蝴狐糊湖"],["bb40","籃",9,"籎",36,"籵",5,"籾",9],["bb80","粈粊",6,"粓粔粖粙粚粛粠粡粣粦粧粨粩粫粬粭粯粰粴",4,"粺粻弧虎唬护互沪户花哗华猾滑画划化话槐徊怀淮坏欢环桓还缓换患唤痪豢焕涣宦幻荒慌黄磺蝗簧皇凰惶煌晃幌恍谎灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘荤昏婚魂浑混豁活伙火获或惑霍货祸击圾基机畸稽积箕"],["bc40","粿糀糂糃糄糆糉糋糎",6,"糘糚糛糝糞糡",6,"糩",5,"糰",7,"糹糺糼",13,"紋",5],["bc80","紑",14,"紡紣紤紥紦紨紩紪紬紭紮細",6,"肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件"],["bd40","紷",54,"絯",7],["bd80","絸",32,"健舰剑饯渐溅涧建僵姜将浆江疆蒋桨奖讲匠酱降蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸"],["be40","継",12,"綧",6,"綯",42],["be80","線",32,"尽劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净炯窘揪究纠玖韭久灸九酒厩救旧臼舅咎就疚鞠拘狙疽居驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧捐鹃娟倦眷卷绢撅攫抉掘倔爵觉决诀绝均菌钧军君峻"],["bf40","緻",62],["bf80","縺縼",4,"繂",4,"繈",21,"俊竣浚郡骏喀咖卡咯开揩楷凯慨刊堪勘坎砍看康慷糠扛抗亢炕考拷烤靠坷苛柯棵磕颗科壳咳可渴克刻客课肯啃垦恳坑吭空恐孔控抠口扣寇枯哭窟苦酷库裤夸垮挎跨胯块筷侩快宽款匡筐狂框矿眶旷况亏盔岿窥葵奎魁傀"],["c040","繞",35,"纃",23,"纜纝纞"],["c080","纮纴纻纼绖绤绬绹缊缐缞缷缹缻",6,"罃罆",9,"罒罓馈愧溃坤昆捆困括扩廓阔垃拉喇蜡腊辣啦莱来赖蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥琅榔狼廊郎朗浪捞劳牢老佬姥酪烙涝勒乐雷镭蕾磊累儡垒擂肋类泪棱楞冷厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐"],["c140","罖罙罛罜罝罞罠罣",4,"罫罬罭罯罰罳罵罶罷罸罺罻罼罽罿羀羂",7,"羋羍羏",4,"羕",4,"羛羜羠羢羣羥羦羨",6,"羱"],["c180","羳",4,"羺羻羾翀翂翃翄翆翇翈翉翋翍翏",4,"翖翗翙",5,"翢翣痢立粒沥隶力璃哩俩联莲连镰廉怜涟帘敛脸链恋炼练粮凉梁粱良两辆量晾亮谅撩聊僚疗燎寥辽潦了撂镣廖料列裂烈劣猎琳林磷霖临邻鳞淋凛赁吝拎玲菱零龄铃伶羚凌灵陵岭领另令溜琉榴硫馏留刘瘤流柳六龙聋咙笼窿"],["c240","翤翧翨翪翫翬翭翯翲翴",6,"翽翾翿耂耇耈耉耊耎耏耑耓耚耛耝耞耟耡耣耤耫",5,"耲耴耹耺耼耾聀聁聄聅聇聈聉聎聏聐聑聓聕聖聗"],["c280","聙聛",13,"聫",5,"聲",11,"隆垄拢陇楼娄搂篓漏陋芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮驴吕铝侣旅履屡缕虑氯律率滤绿峦挛孪滦卵乱掠略抡轮伦仑沦纶论萝螺罗逻锣箩骡裸落洛骆络妈麻玛码蚂马骂嘛吗埋买麦卖迈脉瞒馒蛮满蔓曼慢漫"],["c340","聾肁肂肅肈肊肍",5,"肔肕肗肙肞肣肦肧肨肬肰肳肵肶肸肹肻胅胇",4,"胏",6,"胘胟胠胢胣胦胮胵胷胹胻胾胿脀脁脃脄脅脇脈脋"],["c380","脌脕脗脙脛脜脝脟",12,"脭脮脰脳脴脵脷脹",4,"脿谩芒茫盲氓忙莽猫茅锚毛矛铆卯茂冒帽貌贸么玫枚梅酶霉煤没眉媒镁每美昧寐妹媚门闷们萌蒙檬盟锰猛梦孟眯醚靡糜迷谜弥米秘觅泌蜜密幂棉眠绵冕免勉娩缅面苗描瞄藐秒渺庙妙蔑灭民抿皿敏悯闽明螟鸣铭名命谬摸"],["c440","腀",5,"腇腉腍腎腏腒腖腗腘腛",4,"腡腢腣腤腦腨腪腫腬腯腲腳腵腶腷腸膁膃",4,"膉膋膌膍膎膐膒",5,"膙膚膞",4,"膤膥"],["c480","膧膩膫",7,"膴",5,"膼膽膾膿臄臅臇臈臉臋臍",6,"摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谋牟某拇牡亩姆母墓暮幕募慕木目睦牧穆拿哪呐钠那娜纳氖乃奶耐奈南男难囊挠脑恼闹淖呢馁内嫩能妮霓倪泥尼拟你匿腻逆溺蔫拈年碾撵捻念娘酿鸟尿捏聂孽啮镊镍涅您柠狞凝宁"],["c540","臔",14,"臤臥臦臨臩臫臮",4,"臵",5,"臽臿舃與",4,"舎舏舑舓舕",5,"舝舠舤舥舦舧舩舮舲舺舼舽舿"],["c580","艀艁艂艃艅艆艈艊艌艍艎艐",7,"艙艛艜艝艞艠",7,"艩拧泞牛扭钮纽脓浓农弄奴努怒女暖虐疟挪懦糯诺哦欧鸥殴藕呕偶沤啪趴爬帕怕琶拍排牌徘湃派攀潘盘磐盼畔判叛乓庞旁耪胖抛咆刨炮袍跑泡呸胚培裴赔陪配佩沛喷盆砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯砒霹批披劈琵毗"],["c640","艪艫艬艭艱艵艶艷艸艻艼芀芁芃芅芆芇芉芌芐芓芔芕芖芚芛芞芠芢芣芧芲芵芶芺芻芼芿苀苂苃苅苆苉苐苖苙苚苝苢苧苨苩苪苬苭苮苰苲苳苵苶苸"],["c680","苺苼",4,"茊茋茍茐茒茓茖茘茙茝",9,"茩茪茮茰茲茷茻茽啤脾疲皮匹痞僻屁譬篇偏片骗飘漂瓢票撇瞥拼频贫品聘乒坪苹萍平凭瓶评屏坡泼颇婆破魄迫粕剖扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫掐"],["c740","茾茿荁荂荄荅荈荊",4,"荓荕",4,"荝荢荰",6,"荹荺荾",6,"莇莈莊莋莌莍莏莐莑莔莕莖莗莙莚莝莟莡",6,"莬莭莮"],["c780","莯莵莻莾莿菂菃菄菆菈菉菋菍菎菐菑菒菓菕菗菙菚菛菞菢菣菤菦菧菨菫菬菭恰洽牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉枪呛腔羌墙蔷强抢橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍切茄且怯窃钦侵亲秦琴勤芹擒禽寝沁青轻氢倾卿清擎晴氰情顷请庆琼穷秋丘邱球求囚酋泅趋区蛆曲躯屈驱渠"],["c840","菮華菳",4,"菺菻菼菾菿萀萂萅萇萈萉萊萐萒",5,"萙萚萛萞",5,"萩",7,"萲",5,"萹萺萻萾",7,"葇葈葉"],["c880","葊",6,"葒",4,"葘葝葞葟葠葢葤",4,"葪葮葯葰葲葴葷葹葻葼取娶龋趣去圈颧权醛泉全痊拳犬券劝缺炔瘸却鹊榷确雀裙群然燃冉染瓤壤攘嚷让饶扰绕惹热壬仁人忍韧任认刃妊纫扔仍日戎茸蓉荣融熔溶容绒冗揉柔肉茹蠕儒孺如辱乳汝入褥软阮蕊瑞锐闰润若弱撒洒萨腮鳃塞赛三叁"],["c940","葽",4,"蒃蒄蒅蒆蒊蒍蒏",7,"蒘蒚蒛蒝蒞蒟蒠蒢",12,"蒰蒱蒳蒵蒶蒷蒻蒼蒾蓀蓂蓃蓅蓆蓇蓈蓋蓌蓎蓏蓒蓔蓕蓗"],["c980","蓘",4,"蓞蓡蓢蓤蓧",4,"蓭蓮蓯蓱",10,"蓽蓾蔀蔁蔂伞散桑嗓丧搔骚扫嫂瑟色涩森僧莎砂杀刹沙纱傻啥煞筛晒珊苫杉山删煽衫闪陕擅赡膳善汕扇缮墒伤商赏晌上尚裳梢捎稍烧芍勺韶少哨邵绍奢赊蛇舌舍赦摄射慑涉社设砷申呻伸身深娠绅神沈审婶甚肾慎渗声生甥牲升绳"],["ca40","蔃",8,"蔍蔎蔏蔐蔒蔔蔕蔖蔘蔙蔛蔜蔝蔞蔠蔢",8,"蔭",9,"蔾",4,"蕄蕅蕆蕇蕋",10],["ca80","蕗蕘蕚蕛蕜蕝蕟",4,"蕥蕦蕧蕩",8,"蕳蕵蕶蕷蕸蕼蕽蕿薀薁省盛剩胜圣师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试收手首守寿授售受瘦兽蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱"],["cb40","薂薃薆薈",6,"薐",10,"薝",6,"薥薦薧薩薫薬薭薱",5,"薸薺",6,"藂",6,"藊",4,"藑藒"],["cb80","藔藖",5,"藝",6,"藥藦藧藨藪",14,"恕刷耍摔衰甩帅栓拴霜双爽谁水睡税吮瞬顺舜说硕朔烁斯撕嘶思私司丝死肆寺嗣四伺似饲巳松耸怂颂送宋讼诵搜艘擞嗽苏酥俗素速粟僳塑溯宿诉肃酸蒜算虽隋随绥髓碎岁穗遂隧祟孙损笋蓑梭唆缩琐索锁所塌他它她塔"],["cc40","藹藺藼藽藾蘀",4,"蘆",10,"蘒蘓蘔蘕蘗",15,"蘨蘪",13,"蘹蘺蘻蘽蘾蘿虀"],["cc80","虁",11,"虒虓處",4,"虛虜虝號虠虡虣",7,"獭挞蹋踏胎苔抬台泰酞太态汰坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭汤塘搪堂棠膛唐糖倘躺淌趟烫掏涛滔绦萄桃逃淘陶讨套特藤腾疼誊梯剔踢锑提题蹄啼体替嚏惕涕剃屉天添填田甜恬舔腆挑条迢眺跳贴铁帖厅听烃"],["cd40","虭虯虰虲",6,"蚃",6,"蚎",4,"蚔蚖",5,"蚞",4,"蚥蚦蚫蚭蚮蚲蚳蚷蚸蚹蚻",4,"蛁蛂蛃蛅蛈蛌蛍蛒蛓蛕蛖蛗蛚蛜"],["cd80","蛝蛠蛡蛢蛣蛥蛦蛧蛨蛪蛫蛬蛯蛵蛶蛷蛺蛻蛼蛽蛿蜁蜄蜅蜆蜋蜌蜎蜏蜐蜑蜔蜖汀廷停亭庭挺艇通桐酮瞳同铜彤童桶捅筒统痛偷投头透凸秃突图徒途涂屠土吐兔湍团推颓腿蜕褪退吞屯臀拖托脱鸵陀驮驼椭妥拓唾挖哇蛙洼娃瓦袜歪外豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕汪王亡枉网往旺望忘妄威"],["ce40","蜙蜛蜝蜟蜠蜤蜦蜧蜨蜪蜫蜬蜭蜯蜰蜲蜳蜵蜶蜸蜹蜺蜼蜽蝀",6,"蝊蝋蝍蝏蝐蝑蝒蝔蝕蝖蝘蝚",5,"蝡蝢蝦",7,"蝯蝱蝲蝳蝵"],["ce80","蝷蝸蝹蝺蝿螀螁螄螆螇螉螊螌螎",4,"螔螕螖螘",6,"螠",4,"巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫瘟温蚊文闻纹吻稳紊问嗡翁瓮挝蜗涡窝我斡卧握沃巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误昔熙析西硒矽晰嘻吸锡牺"],["cf40","螥螦螧螩螪螮螰螱螲螴螶螷螸螹螻螼螾螿蟁",4,"蟇蟈蟉蟌",4,"蟔",6,"蟜蟝蟞蟟蟡蟢蟣蟤蟦蟧蟨蟩蟫蟬蟭蟯",9],["cf80","蟺蟻蟼蟽蟿蠀蠁蠂蠄",5,"蠋",7,"蠔蠗蠘蠙蠚蠜",4,"蠣稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细瞎虾匣霞辖暇峡侠狭下厦夏吓掀锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象萧硝霄削哮嚣销消宵淆晓"],["d040","蠤",13,"蠳",5,"蠺蠻蠽蠾蠿衁衂衃衆",5,"衎",5,"衕衖衘衚",6,"衦衧衪衭衯衱衳衴衵衶衸衹衺"],["d080","衻衼袀袃袆袇袉袊袌袎袏袐袑袓袔袕袗",4,"袝",4,"袣袥",5,"小孝校肖啸笑效楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑薪芯锌欣辛新忻心信衅星腥猩惺兴刑型形邢行醒幸杏性姓兄凶胸匈汹雄熊休修羞朽嗅锈秀袖绣墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续轩喧宣悬旋玄"],["d140","袬袮袯袰袲",4,"袸袹袺袻袽袾袿裀裃裄裇裈裊裋裌裍裏裐裑裓裖裗裚",4,"裠裡裦裧裩",6,"裲裵裶裷裺裻製裿褀褁褃",5],["d180","褉褋",4,"褑褔",4,"褜",4,"褢褣褤褦褧褨褩褬褭褮褯褱褲褳褵褷选癣眩绚靴薛学穴雪血勋熏循旬询寻驯巡殉汛训讯逊迅压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾邀腰妖瑶"],["d240","褸",8,"襂襃襅",24,"襠",5,"襧",19,"襼"],["d280","襽襾覀覂覄覅覇",26,"摇尧遥窑谣姚咬舀药要耀椰噎耶爷野冶也页掖业叶曳腋夜液一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎茵荫因殷音阴姻吟银淫寅饮尹引隐"],["d340","覢",30,"觃觍觓觔觕觗觘觙觛觝觟觠觡觢觤觧觨觩觪觬觭觮觰觱觲觴",6],["d380","觻",4,"訁",5,"計",21,"印英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映哟拥佣臃痈庸雍踊蛹咏泳涌永恿勇用幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉"],["d440","訞",31,"訿",8,"詉",21],["d480","詟",25,"詺",6,"浴寓裕预豫驭鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院曰约越跃钥岳粤月悦阅耘云郧匀陨允运蕴酝晕韵孕匝砸杂栽哉灾宰载再在咱攒暂赞赃脏葬遭糟凿藻枣早澡蚤躁噪造皂灶燥责择则泽贼怎增憎曾赠扎喳渣札轧"],["d540","誁",7,"誋",7,"誔",46],["d580","諃",32,"铡闸眨栅榨咋乍炸诈摘斋宅窄债寨瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽樟章彰漳张掌涨杖丈帐账仗胀瘴障招昭找沼赵照罩兆肇召遮折哲蛰辙者锗蔗这浙珍斟真甄砧臻贞针侦枕疹诊震振镇阵蒸挣睁征狰争怔整拯正政"],["d640","諤",34,"謈",27],["d680","謤謥謧",30,"帧症郑证芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒中盅忠钟衷终种肿重仲众舟周州洲诌粥轴肘帚咒皱宙昼骤珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑"],["d740","譆",31,"譧",4,"譭",25],["d780","讇",24,"讬讱讻诇诐诪谉谞住注祝驻抓爪拽专砖转撰赚篆桩庄装妆撞壮状椎锥追赘坠缀谆准捉拙卓桌琢茁酌啄着灼浊兹咨资姿滋淄孜紫仔籽滓子自渍字鬃棕踪宗综总纵邹走奏揍租足卒族祖诅阻组钻纂嘴醉最罪尊遵昨左佐柞做作坐座"],["d840","谸",8,"豂豃豄豅豈豊豋豍",7,"豖豗豘豙豛",5,"豣",6,"豬",6,"豴豵豶豷豻",6,"貃貄貆貇"],["d880","貈貋貍",6,"貕貖貗貙",20,"亍丌兀丐廿卅丕亘丞鬲孬噩丨禺丿匕乇夭爻卮氐囟胤馗毓睾鼗丶亟鼐乜乩亓芈孛啬嘏仄厍厝厣厥厮靥赝匚叵匦匮匾赜卦卣刂刈刎刭刳刿剀剌剞剡剜蒯剽劂劁劐劓冂罔亻仃仉仂仨仡仫仞伛仳伢佤仵伥伧伉伫佞佧攸佚佝"],["d940","貮",62],["d980","賭",32,"佟佗伲伽佶佴侑侉侃侏佾佻侪佼侬侔俦俨俪俅俚俣俜俑俟俸倩偌俳倬倏倮倭俾倜倌倥倨偾偃偕偈偎偬偻傥傧傩傺僖儆僭僬僦僮儇儋仝氽佘佥俎龠汆籴兮巽黉馘冁夔勹匍訇匐凫夙兕亠兖亳衮袤亵脔裒禀嬴蠃羸冫冱冽冼"],["da40","贎",14,"贠赑赒赗赟赥赨赩赪赬赮赯赱赲赸",8,"趂趃趆趇趈趉趌",4,"趒趓趕",9,"趠趡"],["da80","趢趤",12,"趲趶趷趹趻趽跀跁跂跅跇跈跉跊跍跐跒跓跔凇冖冢冥讠讦讧讪讴讵讷诂诃诋诏诎诒诓诔诖诘诙诜诟诠诤诨诩诮诰诳诶诹诼诿谀谂谄谇谌谏谑谒谔谕谖谙谛谘谝谟谠谡谥谧谪谫谮谯谲谳谵谶卩卺阝阢阡阱阪阽阼陂陉陔陟陧陬陲陴隈隍隗隰邗邛邝邙邬邡邴邳邶邺"],["db40","跕跘跙跜跠跡跢跥跦跧跩跭跮跰跱跲跴跶跼跾",6,"踆踇踈踋踍踎踐踑踒踓踕",7,"踠踡踤",4,"踫踭踰踲踳踴踶踷踸踻踼踾"],["db80","踿蹃蹅蹆蹌",4,"蹓",5,"蹚",11,"蹧蹨蹪蹫蹮蹱邸邰郏郅邾郐郄郇郓郦郢郜郗郛郫郯郾鄄鄢鄞鄣鄱鄯鄹酃酆刍奂劢劬劭劾哿勐勖勰叟燮矍廴凵凼鬯厶弁畚巯坌垩垡塾墼壅壑圩圬圪圳圹圮圯坜圻坂坩垅坫垆坼坻坨坭坶坳垭垤垌垲埏垧垴垓垠埕埘埚埙埒垸埴埯埸埤埝"],["dc40","蹳蹵蹷",4,"蹽蹾躀躂躃躄躆躈",6,"躑躒躓躕",6,"躝躟",11,"躭躮躰躱躳",6,"躻",7],["dc80","軃",10,"軏",21,"堋堍埽埭堀堞堙塄堠塥塬墁墉墚墀馨鼙懿艹艽艿芏芊芨芄芎芑芗芙芫芸芾芰苈苊苣芘芷芮苋苌苁芩芴芡芪芟苄苎芤苡茉苷苤茏茇苜苴苒苘茌苻苓茑茚茆茔茕苠苕茜荑荛荜茈莒茼茴茱莛荞茯荏荇荃荟荀茗荠茭茺茳荦荥"],["dd40","軥",62],["dd80","輤",32,"荨茛荩荬荪荭荮莰荸莳莴莠莪莓莜莅荼莶莩荽莸荻莘莞莨莺莼菁萁菥菘堇萘萋菝菽菖萜萸萑萆菔菟萏萃菸菹菪菅菀萦菰菡葜葑葚葙葳蒇蒈葺蒉葸萼葆葩葶蒌蒎萱葭蓁蓍蓐蓦蒽蓓蓊蒿蒺蓠蒡蒹蒴蒗蓥蓣蔌甍蔸蓰蔹蔟蔺"],["de40","轅",32,"轪辀辌辒辝辠辡辢辤辥辦辧辪辬辭辮辯農辳辴辵辷辸辺辻込辿迀迃迆"],["de80","迉",4,"迏迒迖迗迚迠迡迣迧迬迯迱迲迴迵迶迺迻迼迾迿逇逈逌逎逓逕逘蕖蔻蓿蓼蕙蕈蕨蕤蕞蕺瞢蕃蕲蕻薤薨薇薏蕹薮薜薅薹薷薰藓藁藜藿蘧蘅蘩蘖蘼廾弈夼奁耷奕奚奘匏尢尥尬尴扌扪抟抻拊拚拗拮挢拶挹捋捃掭揶捱捺掎掴捭掬掊捩掮掼揲揸揠揿揄揞揎摒揆掾摅摁搋搛搠搌搦搡摞撄摭撖"],["df40","這逜連逤逥逧",5,"逰",4,"逷逹逺逽逿遀遃遅遆遈",4,"過達違遖遙遚遜",5,"遤遦遧適遪遫遬遯",4,"遶",6,"遾邁"],["df80","還邅邆邇邉邊邌",4,"邒邔邖邘邚邜邞邟邠邤邥邧邨邩邫邭邲邷邼邽邿郀摺撷撸撙撺擀擐擗擤擢攉攥攮弋忒甙弑卟叱叽叩叨叻吒吖吆呋呒呓呔呖呃吡呗呙吣吲咂咔呷呱呤咚咛咄呶呦咝哐咭哂咴哒咧咦哓哔呲咣哕咻咿哌哙哚哜咩咪咤哝哏哞唛哧唠哽唔哳唢唣唏唑唧唪啧喏喵啉啭啁啕唿啐唼"],["e040","郂郃郆郈郉郋郌郍郒郔郕郖郘郙郚郞郟郠郣郤郥郩郪郬郮郰郱郲郳郵郶郷郹郺郻郼郿鄀鄁鄃鄅",19,"鄚鄛鄜"],["e080","鄝鄟鄠鄡鄤",10,"鄰鄲",6,"鄺",8,"酄唷啖啵啶啷唳唰啜喋嗒喃喱喹喈喁喟啾嗖喑啻嗟喽喾喔喙嗪嗷嗉嘟嗑嗫嗬嗔嗦嗝嗄嗯嗥嗲嗳嗌嗍嗨嗵嗤辔嘞嘈嘌嘁嘤嘣嗾嘀嘧嘭噘嘹噗嘬噍噢噙噜噌噔嚆噤噱噫噻噼嚅嚓嚯囔囗囝囡囵囫囹囿圄圊圉圜帏帙帔帑帱帻帼"],["e140","酅酇酈酑酓酔酕酖酘酙酛酜酟酠酦酧酨酫酭酳酺酻酼醀",4,"醆醈醊醎醏醓",6,"醜",5,"醤",5,"醫醬醰醱醲醳醶醷醸醹醻"],["e180","醼",10,"釈釋釐釒",9,"針",8,"帷幄幔幛幞幡岌屺岍岐岖岈岘岙岑岚岜岵岢岽岬岫岱岣峁岷峄峒峤峋峥崂崃崧崦崮崤崞崆崛嵘崾崴崽嵬嵛嵯嵝嵫嵋嵊嵩嵴嶂嶙嶝豳嶷巅彳彷徂徇徉後徕徙徜徨徭徵徼衢彡犭犰犴犷犸狃狁狎狍狒狨狯狩狲狴狷猁狳猃狺"],["e240","釦",62],["e280","鈥",32,"狻猗猓猡猊猞猝猕猢猹猥猬猸猱獐獍獗獠獬獯獾舛夥飧夤夂饣饧",5,"饴饷饽馀馄馇馊馍馐馑馓馔馕庀庑庋庖庥庠庹庵庾庳赓廒廑廛廨廪膺忄忉忖忏怃忮怄忡忤忾怅怆忪忭忸怙怵怦怛怏怍怩怫怊怿怡恸恹恻恺恂"],["e340","鉆",45,"鉵",16],["e380","銆",7,"銏",24,"恪恽悖悚悭悝悃悒悌悛惬悻悱惝惘惆惚悴愠愦愕愣惴愀愎愫慊慵憬憔憧憷懔懵忝隳闩闫闱闳闵闶闼闾阃阄阆阈阊阋阌阍阏阒阕阖阗阙阚丬爿戕氵汔汜汊沣沅沐沔沌汨汩汴汶沆沩泐泔沭泷泸泱泗沲泠泖泺泫泮沱泓泯泾"],["e440","銨",5,"銯",24,"鋉",31],["e480","鋩",32,"洹洧洌浃浈洇洄洙洎洫浍洮洵洚浏浒浔洳涑浯涞涠浞涓涔浜浠浼浣渚淇淅淞渎涿淠渑淦淝淙渖涫渌涮渫湮湎湫溲湟溆湓湔渲渥湄滟溱溘滠漭滢溥溧溽溻溷滗溴滏溏滂溟潢潆潇漤漕滹漯漶潋潴漪漉漩澉澍澌潸潲潼潺濑"],["e540","錊",51,"錿",10],["e580","鍊",31,"鍫濉澧澹澶濂濡濮濞濠濯瀚瀣瀛瀹瀵灏灞宀宄宕宓宥宸甯骞搴寤寮褰寰蹇謇辶迓迕迥迮迤迩迦迳迨逅逄逋逦逑逍逖逡逵逶逭逯遄遑遒遐遨遘遢遛暹遴遽邂邈邃邋彐彗彖彘尻咫屐屙孱屣屦羼弪弩弭艴弼鬻屮妁妃妍妩妪妣"],["e640","鍬",34,"鎐",27],["e680","鎬",29,"鏋鏌鏍妗姊妫妞妤姒妲妯姗妾娅娆姝娈姣姘姹娌娉娲娴娑娣娓婀婧婊婕娼婢婵胬媪媛婷婺媾嫫媲嫒嫔媸嫠嫣嫱嫖嫦嫘嫜嬉嬗嬖嬲嬷孀尕尜孚孥孳孑孓孢驵驷驸驺驿驽骀骁骅骈骊骐骒骓骖骘骛骜骝骟骠骢骣骥骧纟纡纣纥纨纩"],["e740","鏎",7,"鏗",54],["e780","鐎",32,"纭纰纾绀绁绂绉绋绌绐绔绗绛绠绡绨绫绮绯绱绲缍绶绺绻绾缁缂缃缇缈缋缌缏缑缒缗缙缜缛缟缡",6,"缪缫缬缭缯",4,"缵幺畿巛甾邕玎玑玮玢玟珏珂珑玷玳珀珉珈珥珙顼琊珩珧珞玺珲琏琪瑛琦琥琨琰琮琬"],["e840","鐯",14,"鐿",43,"鑬鑭鑮鑯"],["e880","鑰",20,"钑钖钘铇铏铓铔铚铦铻锜锠琛琚瑁瑜瑗瑕瑙瑷瑭瑾璜璎璀璁璇璋璞璨璩璐璧瓒璺韪韫韬杌杓杞杈杩枥枇杪杳枘枧杵枨枞枭枋杷杼柰栉柘栊柩枰栌柙枵柚枳柝栀柃枸柢栎柁柽栲栳桠桡桎桢桄桤梃栝桕桦桁桧桀栾桊桉栩梵梏桴桷梓桫棂楮棼椟椠棹"],["e940","锧锳锽镃镈镋镕镚镠镮镴镵長",7,"門",42],["e980","閫",32,"椤棰椋椁楗棣椐楱椹楠楂楝榄楫榀榘楸椴槌榇榈槎榉楦楣楹榛榧榻榫榭槔榱槁槊槟榕槠榍槿樯槭樗樘橥槲橄樾檠橐橛樵檎橹樽樨橘橼檑檐檩檗檫猷獒殁殂殇殄殒殓殍殚殛殡殪轫轭轱轲轳轵轶轸轷轹轺轼轾辁辂辄辇辋"],["ea40","闌",27,"闬闿阇阓阘阛阞阠阣",6,"阫阬阭阯阰阷阸阹阺阾陁陃陊陎陏陑陒陓陖陗"],["ea80","陘陙陚陜陝陞陠陣陥陦陫陭",4,"陳陸",12,"隇隉隊辍辎辏辘辚軎戋戗戛戟戢戡戥戤戬臧瓯瓴瓿甏甑甓攴旮旯旰昊昙杲昃昕昀炅曷昝昴昱昶昵耆晟晔晁晏晖晡晗晷暄暌暧暝暾曛曜曦曩贲贳贶贻贽赀赅赆赈赉赇赍赕赙觇觊觋觌觎觏觐觑牮犟牝牦牯牾牿犄犋犍犏犒挈挲掰"],["eb40","隌階隑隒隓隕隖隚際隝",9,"隨",7,"隱隲隴隵隷隸隺隻隿雂雃雈雊雋雐雑雓雔雖",9,"雡",6,"雫"],["eb80","雬雭雮雰雱雲雴雵雸雺電雼雽雿霂霃霅霊霋霌霐霑霒霔霕霗",4,"霝霟霠搿擘耄毪毳毽毵毹氅氇氆氍氕氘氙氚氡氩氤氪氲攵敕敫牍牒牖爰虢刖肟肜肓肼朊肽肱肫肭肴肷胧胨胩胪胛胂胄胙胍胗朐胝胫胱胴胭脍脎胲胼朕脒豚脶脞脬脘脲腈腌腓腴腙腚腱腠腩腼腽腭腧塍媵膈膂膑滕膣膪臌朦臊膻"],["ec40","霡",8,"霫霬霮霯霱霳",4,"霺霻霼霽霿",18,"靔靕靗靘靚靜靝靟靣靤靦靧靨靪",7],["ec80","靲靵靷",4,"靽",7,"鞆",4,"鞌鞎鞏鞐鞓鞕鞖鞗鞙",4,"臁膦欤欷欹歃歆歙飑飒飓飕飙飚殳彀毂觳斐齑斓於旆旄旃旌旎旒旖炀炜炖炝炻烀炷炫炱烨烊焐焓焖焯焱煳煜煨煅煲煊煸煺熘熳熵熨熠燠燔燧燹爝爨灬焘煦熹戾戽扃扈扉礻祀祆祉祛祜祓祚祢祗祠祯祧祺禅禊禚禧禳忑忐"],["ed40","鞞鞟鞡鞢鞤",6,"鞬鞮鞰鞱鞳鞵",46],["ed80","韤韥韨韮",4,"韴韷",23,"怼恝恚恧恁恙恣悫愆愍慝憩憝懋懑戆肀聿沓泶淼矶矸砀砉砗砘砑斫砭砜砝砹砺砻砟砼砥砬砣砩硎硭硖硗砦硐硇硌硪碛碓碚碇碜碡碣碲碹碥磔磙磉磬磲礅磴礓礤礞礴龛黹黻黼盱眄眍盹眇眈眚眢眙眭眦眵眸睐睑睇睃睚睨"],["ee40","頏",62],["ee80","顎",32,"睢睥睿瞍睽瞀瞌瞑瞟瞠瞰瞵瞽町畀畎畋畈畛畲畹疃罘罡罟詈罨罴罱罹羁罾盍盥蠲钅钆钇钋钊钌钍钏钐钔钗钕钚钛钜钣钤钫钪钭钬钯钰钲钴钶",4,"钼钽钿铄铈",6,"铐铑铒铕铖铗铙铘铛铞铟铠铢铤铥铧铨铪"],["ef40","顯",5,"颋颎颒颕颙颣風",37,"飏飐飔飖飗飛飜飝飠",4],["ef80","飥飦飩",30,"铩铫铮铯铳铴铵铷铹铼铽铿锃锂锆锇锉锊锍锎锏锒",4,"锘锛锝锞锟锢锪锫锩锬锱锲锴锶锷锸锼锾锿镂锵镄镅镆镉镌镎镏镒镓镔镖镗镘镙镛镞镟镝镡镢镤",8,"镯镱镲镳锺矧矬雉秕秭秣秫稆嵇稃稂稞稔"],["f040","餈",4,"餎餏餑",28,"餯",26],["f080","饊",9,"饖",12,"饤饦饳饸饹饻饾馂馃馉稹稷穑黏馥穰皈皎皓皙皤瓞瓠甬鸠鸢鸨",4,"鸲鸱鸶鸸鸷鸹鸺鸾鹁鹂鹄鹆鹇鹈鹉鹋鹌鹎鹑鹕鹗鹚鹛鹜鹞鹣鹦",6,"鹱鹭鹳疒疔疖疠疝疬疣疳疴疸痄疱疰痃痂痖痍痣痨痦痤痫痧瘃痱痼痿瘐瘀瘅瘌瘗瘊瘥瘘瘕瘙"],["f140","馌馎馚",10,"馦馧馩",47],["f180","駙",32,"瘛瘼瘢瘠癀瘭瘰瘿瘵癃瘾瘳癍癞癔癜癖癫癯翊竦穸穹窀窆窈窕窦窠窬窨窭窳衤衩衲衽衿袂袢裆袷袼裉裢裎裣裥裱褚裼裨裾裰褡褙褓褛褊褴褫褶襁襦襻疋胥皲皴矜耒耔耖耜耠耢耥耦耧耩耨耱耋耵聃聆聍聒聩聱覃顸颀颃"],["f240","駺",62],["f280","騹",32,"颉颌颍颏颔颚颛颞颟颡颢颥颦虍虔虬虮虿虺虼虻蚨蚍蚋蚬蚝蚧蚣蚪蚓蚩蚶蛄蚵蛎蚰蚺蚱蚯蛉蛏蚴蛩蛱蛲蛭蛳蛐蜓蛞蛴蛟蛘蛑蜃蜇蛸蜈蜊蜍蜉蜣蜻蜞蜥蜮蜚蜾蝈蜴蜱蜩蜷蜿螂蜢蝽蝾蝻蝠蝰蝌蝮螋蝓蝣蝼蝤蝙蝥螓螯螨蟒"],["f340","驚",17,"驲骃骉骍骎骔骕骙骦骩",6,"骲骳骴骵骹骻骽骾骿髃髄髆",4,"髍髎髏髐髒體髕髖髗髙髚髛髜"],["f380","髝髞髠髢髣髤髥髧髨髩髪髬髮髰",8,"髺髼",6,"鬄鬅鬆蟆螈螅螭螗螃螫蟥螬螵螳蟋蟓螽蟑蟀蟊蟛蟪蟠蟮蠖蠓蟾蠊蠛蠡蠹蠼缶罂罄罅舐竺竽笈笃笄笕笊笫笏筇笸笪笙笮笱笠笥笤笳笾笞筘筚筅筵筌筝筠筮筻筢筲筱箐箦箧箸箬箝箨箅箪箜箢箫箴篑篁篌篝篚篥篦篪簌篾篼簏簖簋"],["f440","鬇鬉",5,"鬐鬑鬒鬔",10,"鬠鬡鬢鬤",10,"鬰鬱鬳",7,"鬽鬾鬿魀魆魊魋魌魎魐魒魓魕",5],["f480","魛",32,"簟簪簦簸籁籀臾舁舂舄臬衄舡舢舣舭舯舨舫舸舻舳舴舾艄艉艋艏艚艟艨衾袅袈裘裟襞羝羟羧羯羰羲籼敉粑粝粜粞粢粲粼粽糁糇糌糍糈糅糗糨艮暨羿翎翕翥翡翦翩翮翳糸絷綦綮繇纛麸麴赳趄趔趑趱赧赭豇豉酊酐酎酏酤"],["f540","魼",62],["f580","鮻",32,"酢酡酰酩酯酽酾酲酴酹醌醅醐醍醑醢醣醪醭醮醯醵醴醺豕鹾趸跫踅蹙蹩趵趿趼趺跄跖跗跚跞跎跏跛跆跬跷跸跣跹跻跤踉跽踔踝踟踬踮踣踯踺蹀踹踵踽踱蹉蹁蹂蹑蹒蹊蹰蹶蹼蹯蹴躅躏躔躐躜躞豸貂貊貅貘貔斛觖觞觚觜"],["f640","鯜",62],["f680","鰛",32,"觥觫觯訾謦靓雩雳雯霆霁霈霏霎霪霭霰霾龀龃龅",5,"龌黾鼋鼍隹隼隽雎雒瞿雠銎銮鋈錾鍪鏊鎏鐾鑫鱿鲂鲅鲆鲇鲈稣鲋鲎鲐鲑鲒鲔鲕鲚鲛鲞",5,"鲥",4,"鲫鲭鲮鲰",7,"鲺鲻鲼鲽鳄鳅鳆鳇鳊鳋"],["f740","鰼",62],["f780","鱻鱽鱾鲀鲃鲄鲉鲊鲌鲏鲓鲖鲗鲘鲙鲝鲪鲬鲯鲹鲾",4,"鳈鳉鳑鳒鳚鳛鳠鳡鳌",4,"鳓鳔鳕鳗鳘鳙鳜鳝鳟鳢靼鞅鞑鞒鞔鞯鞫鞣鞲鞴骱骰骷鹘骶骺骼髁髀髅髂髋髌髑魅魃魇魉魈魍魑飨餍餮饕饔髟髡髦髯髫髻髭髹鬈鬏鬓鬟鬣麽麾縻麂麇麈麋麒鏖麝麟黛黜黝黠黟黢黩黧黥黪黯鼢鼬鼯鼹鼷鼽鼾齄"],["f840","鳣",62],["f880","鴢",32],["f940","鵃",62],["f980","鶂",32],["fa40","鶣",62],["fa80","鷢",32],["fb40","鸃",27,"鸤鸧鸮鸰鸴鸻鸼鹀鹍鹐鹒鹓鹔鹖鹙鹝鹟鹠鹡鹢鹥鹮鹯鹲鹴",9,"麀"],["fb80","麁麃麄麅麆麉麊麌",5,"麔",8,"麞麠",5,"麧麨麩麪"],["fc40","麫",8,"麵麶麷麹麺麼麿",4,"黅黆黇黈黊黋黌黐黒黓黕黖黗黙黚點黡黣黤黦黨黫黬黭黮黰",8,"黺黽黿",6],["fc80","鼆",4,"鼌鼏鼑鼒鼔鼕鼖鼘鼚",5,"鼡鼣",8,"鼭鼮鼰鼱"],["fd40","鼲",4,"鼸鼺鼼鼿",4,"齅",10,"齒",38],["fd80","齹",5,"龁龂龍",11,"龜龝龞龡",4,"郎凉秊裏隣"],["fe40","兀嗀﨎﨏﨑﨓﨔礼﨟蘒﨡﨣﨤﨧﨨﨩"]];
|
13059 |
|
13060 | }),
|
13061 | ,
|
13062 | ,
|
13063 | ,
|
13064 |
|
13065 | (function(module, __unusedexports, __webpack_require__) {
|
13066 |
|
13067 | "use strict";
|
13068 |
|
13069 |
|
13070 | const path = __webpack_require__(622)
|
13071 | const mkdir = __webpack_require__(648)
|
13072 | const pathExists = __webpack_require__(370).pathExists
|
13073 | const jsonFile = __webpack_require__(458)
|
13074 |
|
13075 | function outputJson (file, data, options, callback) {
|
13076 | if (typeof options === 'function') {
|
13077 | callback = options
|
13078 | options = {}
|
13079 | }
|
13080 |
|
13081 | const dir = path.dirname(file)
|
13082 |
|
13083 | pathExists(dir, (err, itDoes) => {
|
13084 | if (err) return callback(err)
|
13085 | if (itDoes) return jsonFile.writeJson(file, data, options, callback)
|
13086 |
|
13087 | mkdir.mkdirs(dir, err => {
|
13088 | if (err) return callback(err)
|
13089 | jsonFile.writeJson(file, data, options, callback)
|
13090 | })
|
13091 | })
|
13092 | }
|
13093 |
|
13094 | module.exports = outputJson
|
13095 |
|
13096 |
|
13097 | }),
|
13098 | ,
|
13099 |
|
13100 | (function(module) {
|
13101 |
|
13102 | "use strict";
|
13103 |
|
13104 |
|
13105 | module.exports = (flag, argv = process.argv) => {
|
13106 | const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
|
13107 | const position = argv.indexOf(prefix + flag);
|
13108 | const terminatorPosition = argv.indexOf('--');
|
13109 | return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
13110 | };
|
13111 |
|
13112 |
|
13113 | }),
|
13114 | ,
|
13115 | ,
|
13116 | ,
|
13117 |
|
13118 | (function(module, __unusedexports, __webpack_require__) {
|
13119 |
|
13120 | "use strict";
|
13121 |
|
13122 |
|
13123 | var Type = __webpack_require__(653);
|
13124 |
|
13125 | module.exports = new Type('tag:yaml.org,2002:str', {
|
13126 | kind: 'scalar',
|
13127 | construct: function (data) { return data !== null ? data : ''; }
|
13128 | });
|
13129 |
|
13130 |
|
13131 | }),
|
13132 |
|
13133 | (function(module) {
|
13134 |
|
13135 | var toString = {}.toString;
|
13136 |
|
13137 | module.exports = Array.isArray || function (arr) {
|
13138 | return toString.call(arr) == '[object Array]';
|
13139 | };
|
13140 |
|
13141 |
|
13142 | }),
|
13143 |
|
13144 | (function(module, __unusedexports, __webpack_require__) {
|
13145 |
|
13146 |
|
13147 |
|
13148 |
|
13149 |
|
13150 |
|
13151 |
|
13152 |
|
13153 |
|
13154 |
|
13155 |
|
13156 |
|
13157 |
|
13158 |
|
13159 |
|
13160 |
|
13161 |
|
13162 |
|
13163 |
|
13164 |
|
13165 |
|
13166 |
|
13167 |
|
13168 |
|
13169 |
|
13170 |
|
13171 |
|
13172 |
|
13173 |
|
13174 |
|
13175 |
|
13176 |
|
13177 |
|
13178 |
|
13179 |
|
13180 |
|
13181 |
|
13182 |
|
13183 |
|
13184 |
|
13185 |
|
13186 | module.exports = glob
|
13187 |
|
13188 | var fs = __webpack_require__(747)
|
13189 | var rp = __webpack_require__(589)
|
13190 | var minimatch = __webpack_require__(904)
|
13191 | var Minimatch = minimatch.Minimatch
|
13192 | var inherits = __webpack_require__(536)
|
13193 | var EE = __webpack_require__(614).EventEmitter
|
13194 | var path = __webpack_require__(622)
|
13195 | var assert = __webpack_require__(357)
|
13196 | var isAbsolute = __webpack_require__(100)
|
13197 | var globSync = __webpack_require__(51)
|
13198 | var common = __webpack_require__(109)
|
13199 | var alphasort = common.alphasort
|
13200 | var alphasorti = common.alphasorti
|
13201 | var setopts = common.setopts
|
13202 | var ownProp = common.ownProp
|
13203 | var inflight = __webpack_require__(346)
|
13204 | var util = __webpack_require__(669)
|
13205 | var childrenIgnored = common.childrenIgnored
|
13206 | var isIgnored = common.isIgnored
|
13207 |
|
13208 | var once = __webpack_require__(538)
|
13209 |
|
13210 | function glob (pattern, options, cb) {
|
13211 | if (typeof options === 'function') cb = options, options = {}
|
13212 | if (!options) options = {}
|
13213 |
|
13214 | if (options.sync) {
|
13215 | if (cb)
|
13216 | throw new TypeError('callback provided to sync glob')
|
13217 | return globSync(pattern, options)
|
13218 | }
|
13219 |
|
13220 | return new Glob(pattern, options, cb)
|
13221 | }
|
13222 |
|
13223 | glob.sync = globSync
|
13224 | var GlobSync = glob.GlobSync = globSync.GlobSync
|
13225 |
|
13226 |
|
13227 | glob.glob = glob
|
13228 |
|
13229 | function extend (origin, add) {
|
13230 | if (add === null || typeof add !== 'object') {
|
13231 | return origin
|
13232 | }
|
13233 |
|
13234 | var keys = Object.keys(add)
|
13235 | var i = keys.length
|
13236 | while (i--) {
|
13237 | origin[keys[i]] = add[keys[i]]
|
13238 | }
|
13239 | return origin
|
13240 | }
|
13241 |
|
13242 | glob.hasMagic = function (pattern, options_) {
|
13243 | var options = extend({}, options_)
|
13244 | options.noprocess = true
|
13245 |
|
13246 | var g = new Glob(pattern, options)
|
13247 | var set = g.minimatch.set
|
13248 |
|
13249 | if (!pattern)
|
13250 | return false
|
13251 |
|
13252 | if (set.length > 1)
|
13253 | return true
|
13254 |
|
13255 | for (var j = 0; j < set[0].length; j++) {
|
13256 | if (typeof set[0][j] !== 'string')
|
13257 | return true
|
13258 | }
|
13259 |
|
13260 | return false
|
13261 | }
|
13262 |
|
13263 | glob.Glob = Glob
|
13264 | inherits(Glob, EE)
|
13265 | function Glob (pattern, options, cb) {
|
13266 | if (typeof options === 'function') {
|
13267 | cb = options
|
13268 | options = null
|
13269 | }
|
13270 |
|
13271 | if (options && options.sync) {
|
13272 | if (cb)
|
13273 | throw new TypeError('callback provided to sync glob')
|
13274 | return new GlobSync(pattern, options)
|
13275 | }
|
13276 |
|
13277 | if (!(this instanceof Glob))
|
13278 | return new Glob(pattern, options, cb)
|
13279 |
|
13280 | setopts(this, pattern, options)
|
13281 | this._didRealPath = false
|
13282 |
|
13283 |
|
13284 | var n = this.minimatch.set.length
|
13285 |
|
13286 |
|
13287 |
|
13288 |
|
13289 |
|
13290 | this.matches = new Array(n)
|
13291 |
|
13292 | if (typeof cb === 'function') {
|
13293 | cb = once(cb)
|
13294 | this.on('error', cb)
|
13295 | this.on('end', function (matches) {
|
13296 | cb(null, matches)
|
13297 | })
|
13298 | }
|
13299 |
|
13300 | var self = this
|
13301 | this._processing = 0
|
13302 |
|
13303 | this._emitQueue = []
|
13304 | this._processQueue = []
|
13305 | this.paused = false
|
13306 |
|
13307 | if (this.noprocess)
|
13308 | return this
|
13309 |
|
13310 | if (n === 0)
|
13311 | return done()
|
13312 |
|
13313 | var sync = true
|
13314 | for (var i = 0; i < n; i ++) {
|
13315 | this._process(this.minimatch.set[i], i, false, done)
|
13316 | }
|
13317 | sync = false
|
13318 |
|
13319 | function done () {
|
13320 | --self._processing
|
13321 | if (self._processing <= 0) {
|
13322 | if (sync) {
|
13323 | process.nextTick(function () {
|
13324 | self._finish()
|
13325 | })
|
13326 | } else {
|
13327 | self._finish()
|
13328 | }
|
13329 | }
|
13330 | }
|
13331 | }
|
13332 |
|
13333 | Glob.prototype._finish = function () {
|
13334 | assert(this instanceof Glob)
|
13335 | if (this.aborted)
|
13336 | return
|
13337 |
|
13338 | if (this.realpath && !this._didRealpath)
|
13339 | return this._realpath()
|
13340 |
|
13341 | common.finish(this)
|
13342 | this.emit('end', this.found)
|
13343 | }
|
13344 |
|
13345 | Glob.prototype._realpath = function () {
|
13346 | if (this._didRealpath)
|
13347 | return
|
13348 |
|
13349 | this._didRealpath = true
|
13350 |
|
13351 | var n = this.matches.length
|
13352 | if (n === 0)
|
13353 | return this._finish()
|
13354 |
|
13355 | var self = this
|
13356 | for (var i = 0; i < this.matches.length; i++)
|
13357 | this._realpathSet(i, next)
|
13358 |
|
13359 | function next () {
|
13360 | if (--n === 0)
|
13361 | self._finish()
|
13362 | }
|
13363 | }
|
13364 |
|
13365 | Glob.prototype._realpathSet = function (index, cb) {
|
13366 | var matchset = this.matches[index]
|
13367 | if (!matchset)
|
13368 | return cb()
|
13369 |
|
13370 | var found = Object.keys(matchset)
|
13371 | var self = this
|
13372 | var n = found.length
|
13373 |
|
13374 | if (n === 0)
|
13375 | return cb()
|
13376 |
|
13377 | var set = this.matches[index] = Object.create(null)
|
13378 | found.forEach(function (p, i) {
|
13379 |
|
13380 |
|
13381 |
|
13382 | p = self._makeAbs(p)
|
13383 | rp.realpath(p, self.realpathCache, function (er, real) {
|
13384 | if (!er)
|
13385 | set[real] = true
|
13386 | else if (er.syscall === 'stat')
|
13387 | set[p] = true
|
13388 | else
|
13389 | self.emit('error', er) // srsly wtf right here
|
13390 |
|
13391 | if (--n === 0) {
|
13392 | self.matches[index] = set
|
13393 | cb()
|
13394 | }
|
13395 | })
|
13396 | })
|
13397 | }
|
13398 |
|
13399 | Glob.prototype._mark = function (p) {
|
13400 | return common.mark(this, p)
|
13401 | }
|
13402 |
|
13403 | Glob.prototype._makeAbs = function (f) {
|
13404 | return common.makeAbs(this, f)
|
13405 | }
|
13406 |
|
13407 | Glob.prototype.abort = function () {
|
13408 | this.aborted = true
|
13409 | this.emit('abort')
|
13410 | }
|
13411 |
|
13412 | Glob.prototype.pause = function () {
|
13413 | if (!this.paused) {
|
13414 | this.paused = true
|
13415 | this.emit('pause')
|
13416 | }
|
13417 | }
|
13418 |
|
13419 | Glob.prototype.resume = function () {
|
13420 | if (this.paused) {
|
13421 | this.emit('resume')
|
13422 | this.paused = false
|
13423 | if (this._emitQueue.length) {
|
13424 | var eq = this._emitQueue.slice(0)
|
13425 | this._emitQueue.length = 0
|
13426 | for (var i = 0; i < eq.length; i ++) {
|
13427 | var e = eq[i]
|
13428 | this._emitMatch(e[0], e[1])
|
13429 | }
|
13430 | }
|
13431 | if (this._processQueue.length) {
|
13432 | var pq = this._processQueue.slice(0)
|
13433 | this._processQueue.length = 0
|
13434 | for (var i = 0; i < pq.length; i ++) {
|
13435 | var p = pq[i]
|
13436 | this._processing--
|
13437 | this._process(p[0], p[1], p[2], p[3])
|
13438 | }
|
13439 | }
|
13440 | }
|
13441 | }
|
13442 |
|
13443 | Glob.prototype._process = function (pattern, index, inGlobStar, cb) {
|
13444 | assert(this instanceof Glob)
|
13445 | assert(typeof cb === 'function')
|
13446 |
|
13447 | if (this.aborted)
|
13448 | return
|
13449 |
|
13450 | this._processing++
|
13451 | if (this.paused) {
|
13452 | this._processQueue.push([pattern, index, inGlobStar, cb])
|
13453 | return
|
13454 | }
|
13455 |
|
13456 |
|
13457 |
|
13458 |
|
13459 | var n = 0
|
13460 | while (typeof pattern[n] === 'string') {
|
13461 | n ++
|
13462 | }
|
13463 |
|
13464 |
|
13465 |
|
13466 | var prefix
|
13467 | switch (n) {
|
13468 |
|
13469 | case pattern.length:
|
13470 | this._processSimple(pattern.join('/'), index, cb)
|
13471 | return
|
13472 |
|
13473 | case 0:
|
13474 |
|
13475 |
|
13476 | prefix = null
|
13477 | break
|
13478 |
|
13479 | default:
|
13480 |
|
13481 |
|
13482 |
|
13483 | prefix = pattern.slice(0, n).join('/')
|
13484 | break
|
13485 | }
|
13486 |
|
13487 | var remain = pattern.slice(n)
|
13488 |
|
13489 |
|
13490 | var read
|
13491 | if (prefix === null)
|
13492 | read = '.'
|
13493 | else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) {
|
13494 | if (!prefix || !isAbsolute(prefix))
|
13495 | prefix = '/' + prefix
|
13496 | read = prefix
|
13497 | } else
|
13498 | read = prefix
|
13499 |
|
13500 | var abs = this._makeAbs(read)
|
13501 |
|
13502 |
|
13503 | if (childrenIgnored(this, read))
|
13504 | return cb()
|
13505 |
|
13506 | var isGlobStar = remain[0] === minimatch.GLOBSTAR
|
13507 | if (isGlobStar)
|
13508 | this._processGlobStar(prefix, read, abs, remain, index, inGlobStar, cb)
|
13509 | else
|
13510 | this._processReaddir(prefix, read, abs, remain, index, inGlobStar, cb)
|
13511 | }
|
13512 |
|
13513 | Glob.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar, cb) {
|
13514 | var self = this
|
13515 | this._readdir(abs, inGlobStar, function (er, entries) {
|
13516 | return self._processReaddir2(prefix, read, abs, remain, index, inGlobStar, entries, cb)
|
13517 | })
|
13518 | }
|
13519 |
|
13520 | Glob.prototype._processReaddir2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) {
|
13521 |
|
13522 |
|
13523 | if (!entries)
|
13524 | return cb()
|
13525 |
|
13526 |
|
13527 |
|
13528 | var pn = remain[0]
|
13529 | var negate = !!this.minimatch.negate
|
13530 | var rawGlob = pn._glob
|
13531 | var dotOk = this.dot || rawGlob.charAt(0) === '.'
|
13532 |
|
13533 | var matchedEntries = []
|
13534 | for (var i = 0; i < entries.length; i++) {
|
13535 | var e = entries[i]
|
13536 | if (e.charAt(0) !== '.' || dotOk) {
|
13537 | var m
|
13538 | if (negate && !prefix) {
|
13539 | m = !e.match(pn)
|
13540 | } else {
|
13541 | m = e.match(pn)
|
13542 | }
|
13543 | if (m)
|
13544 | matchedEntries.push(e)
|
13545 | }
|
13546 | }
|
13547 |
|
13548 |
|
13549 |
|
13550 | var len = matchedEntries.length
|
13551 |
|
13552 | if (len === 0)
|
13553 | return cb()
|
13554 |
|
13555 |
|
13556 |
|
13557 |
|
13558 |
|
13559 |
|
13560 | if (remain.length === 1 && !this.mark && !this.stat) {
|
13561 | if (!this.matches[index])
|
13562 | this.matches[index] = Object.create(null)
|
13563 |
|
13564 | for (var i = 0; i < len; i ++) {
|
13565 | var e = matchedEntries[i]
|
13566 | if (prefix) {
|
13567 | if (prefix !== '/')
|
13568 | e = prefix + '/' + e
|
13569 | else
|
13570 | e = prefix + e
|
13571 | }
|
13572 |
|
13573 | if (e.charAt(0) === '/' && !this.nomount) {
|
13574 | e = path.join(this.root, e)
|
13575 | }
|
13576 | this._emitMatch(index, e)
|
13577 | }
|
13578 |
|
13579 | return cb()
|
13580 | }
|
13581 |
|
13582 |
|
13583 |
|
13584 | remain.shift()
|
13585 | for (var i = 0; i < len; i ++) {
|
13586 | var e = matchedEntries[i]
|
13587 | var newPattern
|
13588 | if (prefix) {
|
13589 | if (prefix !== '/')
|
13590 | e = prefix + '/' + e
|
13591 | else
|
13592 | e = prefix + e
|
13593 | }
|
13594 | this._process([e].concat(remain), index, inGlobStar, cb)
|
13595 | }
|
13596 | cb()
|
13597 | }
|
13598 |
|
13599 | Glob.prototype._emitMatch = function (index, e) {
|
13600 | if (this.aborted)
|
13601 | return
|
13602 |
|
13603 | if (isIgnored(this, e))
|
13604 | return
|
13605 |
|
13606 | if (this.paused) {
|
13607 | this._emitQueue.push([index, e])
|
13608 | return
|
13609 | }
|
13610 |
|
13611 | var abs = isAbsolute(e) ? e : this._makeAbs(e)
|
13612 |
|
13613 | if (this.mark)
|
13614 | e = this._mark(e)
|
13615 |
|
13616 | if (this.absolute)
|
13617 | e = abs
|
13618 |
|
13619 | if (this.matches[index][e])
|
13620 | return
|
13621 |
|
13622 | if (this.nodir) {
|
13623 | var c = this.cache[abs]
|
13624 | if (c === 'DIR' || Array.isArray(c))
|
13625 | return
|
13626 | }
|
13627 |
|
13628 | this.matches[index][e] = true
|
13629 |
|
13630 | var st = this.statCache[abs]
|
13631 | if (st)
|
13632 | this.emit('stat', e, st)
|
13633 |
|
13634 | this.emit('match', e)
|
13635 | }
|
13636 |
|
13637 | Glob.prototype._readdirInGlobStar = function (abs, cb) {
|
13638 | if (this.aborted)
|
13639 | return
|
13640 |
|
13641 |
|
13642 |
|
13643 | if (this.follow)
|
13644 | return this._readdir(abs, false, cb)
|
13645 |
|
13646 | var lstatkey = 'lstat\0' + abs
|
13647 | var self = this
|
13648 | var lstatcb = inflight(lstatkey, lstatcb_)
|
13649 |
|
13650 | if (lstatcb)
|
13651 | fs.lstat(abs, lstatcb)
|
13652 |
|
13653 | function lstatcb_ (er, lstat) {
|
13654 | if (er && er.code === 'ENOENT')
|
13655 | return cb()
|
13656 |
|
13657 | var isSym = lstat && lstat.isSymbolicLink()
|
13658 | self.symlinks[abs] = isSym
|
13659 |
|
13660 |
|
13661 |
|
13662 | if (!isSym && lstat && !lstat.isDirectory()) {
|
13663 | self.cache[abs] = 'FILE'
|
13664 | cb()
|
13665 | } else
|
13666 | self._readdir(abs, false, cb)
|
13667 | }
|
13668 | }
|
13669 |
|
13670 | Glob.prototype._readdir = function (abs, inGlobStar, cb) {
|
13671 | if (this.aborted)
|
13672 | return
|
13673 |
|
13674 | cb = inflight('readdir\0'+abs+'\0'+inGlobStar, cb)
|
13675 | if (!cb)
|
13676 | return
|
13677 |
|
13678 |
|
13679 | if (inGlobStar && !ownProp(this.symlinks, abs))
|
13680 | return this._readdirInGlobStar(abs, cb)
|
13681 |
|
13682 | if (ownProp(this.cache, abs)) {
|
13683 | var c = this.cache[abs]
|
13684 | if (!c || c === 'FILE')
|
13685 | return cb()
|
13686 |
|
13687 | if (Array.isArray(c))
|
13688 | return cb(null, c)
|
13689 | }
|
13690 |
|
13691 | var self = this
|
13692 | fs.readdir(abs, readdirCb(this, abs, cb))
|
13693 | }
|
13694 |
|
13695 | function readdirCb (self, abs, cb) {
|
13696 | return function (er, entries) {
|
13697 | if (er)
|
13698 | self._readdirError(abs, er, cb)
|
13699 | else
|
13700 | self._readdirEntries(abs, entries, cb)
|
13701 | }
|
13702 | }
|
13703 |
|
13704 | Glob.prototype._readdirEntries = function (abs, entries, cb) {
|
13705 | if (this.aborted)
|
13706 | return
|
13707 |
|
13708 |
|
13709 |
|
13710 |
|
13711 | if (!this.mark && !this.stat) {
|
13712 | for (var i = 0; i < entries.length; i ++) {
|
13713 | var e = entries[i]
|
13714 | if (abs === '/')
|
13715 | e = abs + e
|
13716 | else
|
13717 | e = abs + '/' + e
|
13718 | this.cache[e] = true
|
13719 | }
|
13720 | }
|
13721 |
|
13722 | this.cache[abs] = entries
|
13723 | return cb(null, entries)
|
13724 | }
|
13725 |
|
13726 | Glob.prototype._readdirError = function (f, er, cb) {
|
13727 | if (this.aborted)
|
13728 | return
|
13729 |
|
13730 |
|
13731 | switch (er.code) {
|
13732 | case 'ENOTSUP':
|
13733 | case 'ENOTDIR':
|
13734 | var abs = this._makeAbs(f)
|
13735 | this.cache[abs] = 'FILE'
|
13736 | if (abs === this.cwdAbs) {
|
13737 | var error = new Error(er.code + ' invalid cwd ' + this.cwd)
|
13738 | error.path = this.cwd
|
13739 | error.code = er.code
|
13740 | this.emit('error', error)
|
13741 | this.abort()
|
13742 | }
|
13743 | break
|
13744 |
|
13745 | case 'ENOENT':
|
13746 | case 'ELOOP':
|
13747 | case 'ENAMETOOLONG':
|
13748 | case 'UNKNOWN':
|
13749 | this.cache[this._makeAbs(f)] = false
|
13750 | break
|
13751 |
|
13752 | default:
|
13753 | this.cache[this._makeAbs(f)] = false
|
13754 | if (this.strict) {
|
13755 | this.emit('error', er)
|
13756 |
|
13757 |
|
13758 | this.abort()
|
13759 | }
|
13760 | if (!this.silent)
|
13761 | console.error('glob error', er)
|
13762 | break
|
13763 | }
|
13764 |
|
13765 | return cb()
|
13766 | }
|
13767 |
|
13768 | Glob.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar, cb) {
|
13769 | var self = this
|
13770 | this._readdir(abs, inGlobStar, function (er, entries) {
|
13771 | self._processGlobStar2(prefix, read, abs, remain, index, inGlobStar, entries, cb)
|
13772 | })
|
13773 | }
|
13774 |
|
13775 |
|
13776 | Glob.prototype._processGlobStar2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) {
|
13777 |
|
13778 |
|
13779 |
|
13780 |
|
13781 | if (!entries)
|
13782 | return cb()
|
13783 |
|
13784 |
|
13785 |
|
13786 | var remainWithoutGlobStar = remain.slice(1)
|
13787 | var gspref = prefix ? [ prefix ] : []
|
13788 | var noGlobStar = gspref.concat(remainWithoutGlobStar)
|
13789 |
|
13790 |
|
13791 | this._process(noGlobStar, index, false, cb)
|
13792 |
|
13793 | var isSym = this.symlinks[abs]
|
13794 | var len = entries.length
|
13795 |
|
13796 |
|
13797 | if (isSym && inGlobStar)
|
13798 | return cb()
|
13799 |
|
13800 | for (var i = 0; i < len; i++) {
|
13801 | var e = entries[i]
|
13802 | if (e.charAt(0) === '.' && !this.dot)
|
13803 | continue
|
13804 |
|
13805 |
|
13806 | var instead = gspref.concat(entries[i], remainWithoutGlobStar)
|
13807 | this._process(instead, index, true, cb)
|
13808 |
|
13809 | var below = gspref.concat(entries[i], remain)
|
13810 | this._process(below, index, true, cb)
|
13811 | }
|
13812 |
|
13813 | cb()
|
13814 | }
|
13815 |
|
13816 | Glob.prototype._processSimple = function (prefix, index, cb) {
|
13817 |
|
13818 |
|
13819 | var self = this
|
13820 | this._stat(prefix, function (er, exists) {
|
13821 | self._processSimple2(prefix, index, er, exists, cb)
|
13822 | })
|
13823 | }
|
13824 | Glob.prototype._processSimple2 = function (prefix, index, er, exists, cb) {
|
13825 |
|
13826 |
|
13827 |
|
13828 | if (!this.matches[index])
|
13829 | this.matches[index] = Object.create(null)
|
13830 |
|
13831 |
|
13832 | if (!exists)
|
13833 | return cb()
|
13834 |
|
13835 | if (prefix && isAbsolute(prefix) && !this.nomount) {
|
13836 | var trail = /[\/\\]$/.test(prefix)
|
13837 | if (prefix.charAt(0) === '/') {
|
13838 | prefix = path.join(this.root, prefix)
|
13839 | } else {
|
13840 | prefix = path.resolve(this.root, prefix)
|
13841 | if (trail)
|
13842 | prefix += '/'
|
13843 | }
|
13844 | }
|
13845 |
|
13846 | if (process.platform === 'win32')
|
13847 | prefix = prefix.replace(/\\/g, '/')
|
13848 |
|
13849 |
|
13850 | this._emitMatch(index, prefix)
|
13851 | cb()
|
13852 | }
|
13853 |
|
13854 |
|
13855 | Glob.prototype._stat = function (f, cb) {
|
13856 | var abs = this._makeAbs(f)
|
13857 | var needDir = f.slice(-1) === '/'
|
13858 |
|
13859 | if (f.length > this.maxLength)
|
13860 | return cb()
|
13861 |
|
13862 | if (!this.stat && ownProp(this.cache, abs)) {
|
13863 | var c = this.cache[abs]
|
13864 |
|
13865 | if (Array.isArray(c))
|
13866 | c = 'DIR'
|
13867 |
|
13868 |
|
13869 | if (!needDir || c === 'DIR')
|
13870 | return cb(null, c)
|
13871 |
|
13872 | if (needDir && c === 'FILE')
|
13873 | return cb()
|
13874 |
|
13875 |
|
13876 |
|
13877 | }
|
13878 |
|
13879 | var exists
|
13880 | var stat = this.statCache[abs]
|
13881 | if (stat !== undefined) {
|
13882 | if (stat === false)
|
13883 | return cb(null, stat)
|
13884 | else {
|
13885 | var type = stat.isDirectory() ? 'DIR' : 'FILE'
|
13886 | if (needDir && type === 'FILE')
|
13887 | return cb()
|
13888 | else
|
13889 | return cb(null, type, stat)
|
13890 | }
|
13891 | }
|
13892 |
|
13893 | var self = this
|
13894 | var statcb = inflight('stat\0' + abs, lstatcb_)
|
13895 | if (statcb)
|
13896 | fs.lstat(abs, statcb)
|
13897 |
|
13898 | function lstatcb_ (er, lstat) {
|
13899 | if (lstat && lstat.isSymbolicLink()) {
|
13900 |
|
13901 |
|
13902 | return fs.stat(abs, function (er, stat) {
|
13903 | if (er)
|
13904 | self._stat2(f, abs, null, lstat, cb)
|
13905 | else
|
13906 | self._stat2(f, abs, er, stat, cb)
|
13907 | })
|
13908 | } else {
|
13909 | self._stat2(f, abs, er, lstat, cb)
|
13910 | }
|
13911 | }
|
13912 | }
|
13913 |
|
13914 | Glob.prototype._stat2 = function (f, abs, er, stat, cb) {
|
13915 | if (er && (er.code === 'ENOENT' || er.code === 'ENOTDIR')) {
|
13916 | this.statCache[abs] = false
|
13917 | return cb()
|
13918 | }
|
13919 |
|
13920 | var needDir = f.slice(-1) === '/'
|
13921 | this.statCache[abs] = stat
|
13922 |
|
13923 | if (abs.slice(-1) === '/' && stat && !stat.isDirectory())
|
13924 | return cb(null, false, stat)
|
13925 |
|
13926 | var c = true
|
13927 | if (stat)
|
13928 | c = stat.isDirectory() ? 'DIR' : 'FILE'
|
13929 | this.cache[abs] = this.cache[abs] || c
|
13930 |
|
13931 | if (needDir && c === 'FILE')
|
13932 | return cb()
|
13933 |
|
13934 | return cb(null, c, stat)
|
13935 | }
|
13936 |
|
13937 |
|
13938 | }),
|
13939 | ,
|
13940 | ,
|
13941 | ,
|
13942 | ,
|
13943 |
|
13944 | (function(module, __unusedexports, __webpack_require__) {
|
13945 |
|
13946 | "use strict";
|
13947 |
|
13948 |
|
13949 |
|
13950 |
|
13951 |
|
13952 |
|
13953 |
|
13954 |
|
13955 |
|
13956 |
|
13957 |
|
13958 | var Schema = __webpack_require__(334);
|
13959 |
|
13960 |
|
13961 | module.exports = new Schema({
|
13962 | include: [
|
13963 | __webpack_require__(252)
|
13964 | ],
|
13965 | implicit: [
|
13966 | __webpack_require__(42),
|
13967 | __webpack_require__(752),
|
13968 | __webpack_require__(158),
|
13969 | __webpack_require__(547)
|
13970 | ]
|
13971 | });
|
13972 |
|
13973 |
|
13974 | }),
|
13975 | ,
|
13976 | ,
|
13977 | ,
|
13978 | ,
|
13979 | ,
|
13980 | ,
|
13981 |
|
13982 | (function(module) {
|
13983 |
|
13984 | "use strict";
|
13985 |
|
13986 | module.exports = prettyError
|
13987 |
|
13988 | function prettyError (err, buf) {
|
13989 |
|
13990 | if (err.pos == null || err.line == null) return err
|
13991 | let msg = err.message
|
13992 | msg += ` at row ${err.line + 1}, col ${err.col + 1}, pos ${err.pos}:\n`
|
13993 |
|
13994 |
|
13995 | if (buf && buf.split) {
|
13996 | const lines = buf.split(/\n/)
|
13997 | const lineNumWidth = String(Math.min(lines.length, err.line + 3)).length
|
13998 | let linePadding = ' '
|
13999 | while (linePadding.length < lineNumWidth) linePadding += ' '
|
14000 | for (let ii = Math.max(0, err.line - 1); ii < Math.min(lines.length, err.line + 2); ++ii) {
|
14001 | let lineNum = String(ii + 1)
|
14002 | if (lineNum.length < lineNumWidth) lineNum = ' ' + lineNum
|
14003 | if (err.line === ii) {
|
14004 | msg += lineNum + '> ' + lines[ii] + '\n'
|
14005 | msg += linePadding + ' '
|
14006 | for (let hh = 0; hh < err.col; ++hh) {
|
14007 | msg += ' '
|
14008 | }
|
14009 | msg += '^\n'
|
14010 | } else {
|
14011 | msg += lineNum + ': ' + lines[ii] + '\n'
|
14012 | }
|
14013 | }
|
14014 | }
|
14015 | err.message = msg + '\n'
|
14016 | return err
|
14017 | }
|
14018 |
|
14019 |
|
14020 | }),
|
14021 | ,
|
14022 | ,
|
14023 | ,
|
14024 | ,
|
14025 | ,
|
14026 | ,
|
14027 |
|
14028 | (function(__unusedmodule, exports, __webpack_require__) {
|
14029 |
|
14030 | "use strict";
|
14031 |
|
14032 | Object.defineProperty(exports, "__esModule", { value: true });
|
14033 | const path_1 = __webpack_require__(622);
|
14034 | function shouldServe({ entrypoint, files, requestPath, }) {
|
14035 | requestPath = requestPath.replace(/\/$/, '');
|
14036 | entrypoint = entrypoint.replace(/\\/, '/');
|
14037 | if (entrypoint === requestPath && hasProp(files, entrypoint)) {
|
14038 | return true;
|
14039 | }
|
14040 | const { dir, name } = path_1.parse(entrypoint);
|
14041 | if (name === 'index' && dir === requestPath && hasProp(files, entrypoint)) {
|
14042 | return true;
|
14043 | }
|
14044 | return false;
|
14045 | }
|
14046 | exports.default = shouldServe;
|
14047 | function hasProp(obj, key) {
|
14048 | return Object.hasOwnProperty.call(obj, key);
|
14049 | }
|
14050 |
|
14051 |
|
14052 | }),
|
14053 |
|
14054 | (function(module, __unusedexports, __webpack_require__) {
|
14055 |
|
14056 | "use strict";
|
14057 |
|
14058 |
|
14059 |
|
14060 |
|
14061 |
|
14062 |
|
14063 |
|
14064 |
|
14065 |
|
14066 |
|
14067 |
|
14068 |
|
14069 |
|
14070 |
|
14071 |
|
14072 |
|
14073 |
|
14074 |
|
14075 |
|
14076 |
|
14077 |
|
14078 |
|
14079 |
|
14080 |
|
14081 |
|
14082 |
|
14083 |
|
14084 | module.exports = PassThrough;
|
14085 |
|
14086 | var Transform = __webpack_require__(169);
|
14087 |
|
14088 |
|
14089 | var util = Object.create(__webpack_require__(130));
|
14090 | util.inherits = __webpack_require__(536);
|
14091 |
|
14092 |
|
14093 | util.inherits(PassThrough, Transform);
|
14094 |
|
14095 | function PassThrough(options) {
|
14096 | if (!(this instanceof PassThrough)) return new PassThrough(options);
|
14097 |
|
14098 | Transform.call(this, options);
|
14099 | }
|
14100 |
|
14101 | PassThrough.prototype._transform = function (chunk, encoding, cb) {
|
14102 | cb(null, chunk);
|
14103 | };
|
14104 |
|
14105 | }),
|
14106 | ,
|
14107 | ,
|
14108 |
|
14109 | (function(module, __unusedexports, __webpack_require__) {
|
14110 |
|
14111 | "use strict";
|
14112 |
|
14113 |
|
14114 | var Type = __webpack_require__(653);
|
14115 |
|
14116 | module.exports = new Type('tag:yaml.org,2002:map', {
|
14117 | kind: 'mapping',
|
14118 | construct: function (data) { return data !== null ? data : {}; }
|
14119 | });
|
14120 |
|
14121 |
|
14122 | }),
|
14123 |
|
14124 | (function(module, __unusedexports, __webpack_require__) {
|
14125 |
|
14126 | "use strict";
|
14127 |
|
14128 |
|
14129 | const u = __webpack_require__(323).fromCallback
|
14130 | const fs = __webpack_require__(747)
|
14131 | const path = __webpack_require__(622)
|
14132 | const mkdir = __webpack_require__(648)
|
14133 | const remove = __webpack_require__(301)
|
14134 |
|
14135 | const emptyDir = u(function emptyDir (dir, callback) {
|
14136 | callback = callback || function () {}
|
14137 | fs.readdir(dir, (err, items) => {
|
14138 | if (err) return mkdir.mkdirs(dir, callback)
|
14139 |
|
14140 | items = items.map(item => path.join(dir, item))
|
14141 |
|
14142 | deleteItem()
|
14143 |
|
14144 | function deleteItem () {
|
14145 | const item = items.pop()
|
14146 | if (!item) return callback()
|
14147 | remove.remove(item, err => {
|
14148 | if (err) return callback(err)
|
14149 | deleteItem()
|
14150 | })
|
14151 | }
|
14152 | })
|
14153 | })
|
14154 |
|
14155 | function emptyDirSync (dir) {
|
14156 | let items
|
14157 | try {
|
14158 | items = fs.readdirSync(dir)
|
14159 | } catch (err) {
|
14160 | return mkdir.mkdirsSync(dir)
|
14161 | }
|
14162 |
|
14163 | items.forEach(item => {
|
14164 | item = path.join(dir, item)
|
14165 | remove.removeSync(item)
|
14166 | })
|
14167 | }
|
14168 |
|
14169 | module.exports = {
|
14170 | emptyDirSync,
|
14171 | emptydirSync: emptyDirSync,
|
14172 | emptyDir,
|
14173 | emptydir: emptyDir
|
14174 | }
|
14175 |
|
14176 |
|
14177 | }),
|
14178 | ,
|
14179 | ,
|
14180 |
|
14181 | (function(module, __unusedexports, __webpack_require__) {
|
14182 |
|
14183 | module.exports = which
|
14184 | which.sync = whichSync
|
14185 |
|
14186 | var isWindows = process.platform === 'win32' ||
|
14187 | process.env.OSTYPE === 'cygwin' ||
|
14188 | process.env.OSTYPE === 'msys'
|
14189 |
|
14190 | var path = __webpack_require__(622)
|
14191 | var COLON = isWindows ? ';' : ':'
|
14192 | var isexe = __webpack_require__(841)
|
14193 |
|
14194 | function getNotFoundError (cmd) {
|
14195 | var er = new Error('not found: ' + cmd)
|
14196 | er.code = 'ENOENT'
|
14197 |
|
14198 | return er
|
14199 | }
|
14200 |
|
14201 | function getPathInfo (cmd, opt) {
|
14202 | var colon = opt.colon || COLON
|
14203 | var pathEnv = opt.path || process.env.PATH || ''
|
14204 | var pathExt = ['']
|
14205 |
|
14206 | pathEnv = pathEnv.split(colon)
|
14207 |
|
14208 | var pathExtExe = ''
|
14209 | if (isWindows) {
|
14210 | pathEnv.unshift(process.cwd())
|
14211 | pathExtExe = (opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM')
|
14212 | pathExt = pathExtExe.split(colon)
|
14213 |
|
14214 |
|
14215 |
|
14216 |
|
14217 | if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')
|
14218 | pathExt.unshift('')
|
14219 | }
|
14220 |
|
14221 |
|
14222 |
|
14223 | if (cmd.match(/\//) || isWindows && cmd.match(/\\/))
|
14224 | pathEnv = ['']
|
14225 |
|
14226 | return {
|
14227 | env: pathEnv,
|
14228 | ext: pathExt,
|
14229 | extExe: pathExtExe
|
14230 | }
|
14231 | }
|
14232 |
|
14233 | function which (cmd, opt, cb) {
|
14234 | if (typeof opt === 'function') {
|
14235 | cb = opt
|
14236 | opt = {}
|
14237 | }
|
14238 |
|
14239 | var info = getPathInfo(cmd, opt)
|
14240 | var pathEnv = info.env
|
14241 | var pathExt = info.ext
|
14242 | var pathExtExe = info.extExe
|
14243 | var found = []
|
14244 |
|
14245 | ;(function F (i, l) {
|
14246 | if (i === l) {
|
14247 | if (opt.all && found.length)
|
14248 | return cb(null, found)
|
14249 | else
|
14250 | return cb(getNotFoundError(cmd))
|
14251 | }
|
14252 |
|
14253 | var pathPart = pathEnv[i]
|
14254 | if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"')
|
14255 | pathPart = pathPart.slice(1, -1)
|
14256 |
|
14257 | var p = path.join(pathPart, cmd)
|
14258 | if (!pathPart && (/^\.[\\\/]/).test(cmd)) {
|
14259 | p = cmd.slice(0, 2) + p
|
14260 | }
|
14261 | ;(function E (ii, ll) {
|
14262 | if (ii === ll) return F(i + 1, l)
|
14263 | var ext = pathExt[ii]
|
14264 | isexe(p + ext, { pathExt: pathExtExe }, function (er, is) {
|
14265 | if (!er && is) {
|
14266 | if (opt.all)
|
14267 | found.push(p + ext)
|
14268 | else
|
14269 | return cb(null, p + ext)
|
14270 | }
|
14271 | return E(ii + 1, ll)
|
14272 | })
|
14273 | })(0, pathExt.length)
|
14274 | })(0, pathEnv.length)
|
14275 | }
|
14276 |
|
14277 | function whichSync (cmd, opt) {
|
14278 | opt = opt || {}
|
14279 |
|
14280 | var info = getPathInfo(cmd, opt)
|
14281 | var pathEnv = info.env
|
14282 | var pathExt = info.ext
|
14283 | var pathExtExe = info.extExe
|
14284 | var found = []
|
14285 |
|
14286 | for (var i = 0, l = pathEnv.length; i < l; i ++) {
|
14287 | var pathPart = pathEnv[i]
|
14288 | if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"')
|
14289 | pathPart = pathPart.slice(1, -1)
|
14290 |
|
14291 | var p = path.join(pathPart, cmd)
|
14292 | if (!pathPart && /^\.[\\\/]/.test(cmd)) {
|
14293 | p = cmd.slice(0, 2) + p
|
14294 | }
|
14295 | for (var j = 0, ll = pathExt.length; j < ll; j ++) {
|
14296 | var cur = p + pathExt[j]
|
14297 | var is
|
14298 | try {
|
14299 | is = isexe.sync(cur, { pathExt: pathExtExe })
|
14300 | if (is) {
|
14301 | if (opt.all)
|
14302 | found.push(cur)
|
14303 | else
|
14304 | return cur
|
14305 | }
|
14306 | } catch (ex) {}
|
14307 | }
|
14308 | }
|
14309 |
|
14310 | if (opt.all && found.length)
|
14311 | return found
|
14312 |
|
14313 | if (opt.nothrow)
|
14314 | return null
|
14315 |
|
14316 | throw getNotFoundError(cmd)
|
14317 | }
|
14318 |
|
14319 |
|
14320 | }),
|
14321 |
|
14322 | (function(__unusedmodule, exports, __webpack_require__) {
|
14323 |
|
14324 | "use strict";
|
14325 |
|
14326 | var Buffer = __webpack_require__(603).Buffer;
|
14327 |
|
14328 |
|
14329 |
|
14330 |
|
14331 |
|
14332 | exports.utf16be = Utf16BECodec;
|
14333 | function Utf16BECodec() {
|
14334 | }
|
14335 |
|
14336 | Utf16BECodec.prototype.encoder = Utf16BEEncoder;
|
14337 | Utf16BECodec.prototype.decoder = Utf16BEDecoder;
|
14338 | Utf16BECodec.prototype.bomAware = true;
|
14339 |
|
14340 |
|
14341 |
|
14342 |
|
14343 | function Utf16BEEncoder() {
|
14344 | }
|
14345 |
|
14346 | Utf16BEEncoder.prototype.write = function(str) {
|
14347 | var buf = Buffer.from(str, 'ucs2');
|
14348 | for (var i = 0; i < buf.length; i += 2) {
|
14349 | var tmp = buf[i]; buf[i] = buf[i+1]; buf[i+1] = tmp;
|
14350 | }
|
14351 | return buf;
|
14352 | }
|
14353 |
|
14354 | Utf16BEEncoder.prototype.end = function() {
|
14355 | }
|
14356 |
|
14357 |
|
14358 |
|
14359 |
|
14360 | function Utf16BEDecoder() {
|
14361 | this.overflowByte = -1;
|
14362 | }
|
14363 |
|
14364 | Utf16BEDecoder.prototype.write = function(buf) {
|
14365 | if (buf.length == 0)
|
14366 | return '';
|
14367 |
|
14368 | var buf2 = Buffer.alloc(buf.length + 1),
|
14369 | i = 0, j = 0;
|
14370 |
|
14371 | if (this.overflowByte !== -1) {
|
14372 | buf2[0] = buf[0];
|
14373 | buf2[1] = this.overflowByte;
|
14374 | i = 1; j = 2;
|
14375 | }
|
14376 |
|
14377 | for (; i < buf.length-1; i += 2, j+= 2) {
|
14378 | buf2[j] = buf[i+1];
|
14379 | buf2[j+1] = buf[i];
|
14380 | }
|
14381 |
|
14382 | this.overflowByte = (i == buf.length-1) ? buf[buf.length-1] : -1;
|
14383 |
|
14384 | return buf2.slice(0, j).toString('ucs2');
|
14385 | }
|
14386 |
|
14387 | Utf16BEDecoder.prototype.end = function() {
|
14388 | }
|
14389 |
|
14390 |
|
14391 |
|
14392 |
|
14393 |
|
14394 |
|
14395 |
|
14396 |
|
14397 |
|
14398 |
|
14399 | exports.utf16 = Utf16Codec;
|
14400 | function Utf16Codec(codecOptions, iconv) {
|
14401 | this.iconv = iconv;
|
14402 | }
|
14403 |
|
14404 | Utf16Codec.prototype.encoder = Utf16Encoder;
|
14405 | Utf16Codec.prototype.decoder = Utf16Decoder;
|
14406 |
|
14407 |
|
14408 |
|
14409 |
|
14410 | function Utf16Encoder(options, codec) {
|
14411 | options = options || {};
|
14412 | if (options.addBOM === undefined)
|
14413 | options.addBOM = true;
|
14414 | this.encoder = codec.iconv.getEncoder('utf-16le', options);
|
14415 | }
|
14416 |
|
14417 | Utf16Encoder.prototype.write = function(str) {
|
14418 | return this.encoder.write(str);
|
14419 | }
|
14420 |
|
14421 | Utf16Encoder.prototype.end = function() {
|
14422 | return this.encoder.end();
|
14423 | }
|
14424 |
|
14425 |
|
14426 |
|
14427 |
|
14428 | function Utf16Decoder(options, codec) {
|
14429 | this.decoder = null;
|
14430 | this.initialBytes = [];
|
14431 | this.initialBytesLen = 0;
|
14432 |
|
14433 | this.options = options || {};
|
14434 | this.iconv = codec.iconv;
|
14435 | }
|
14436 |
|
14437 | Utf16Decoder.prototype.write = function(buf) {
|
14438 | if (!this.decoder) {
|
14439 |
|
14440 | this.initialBytes.push(buf);
|
14441 | this.initialBytesLen += buf.length;
|
14442 |
|
14443 | if (this.initialBytesLen < 16)
|
14444 | return '';
|
14445 |
|
14446 |
|
14447 | var buf = Buffer.concat(this.initialBytes),
|
14448 | encoding = detectEncoding(buf, this.options.defaultEncoding);
|
14449 | this.decoder = this.iconv.getDecoder(encoding, this.options);
|
14450 | this.initialBytes.length = this.initialBytesLen = 0;
|
14451 | }
|
14452 |
|
14453 | return this.decoder.write(buf);
|
14454 | }
|
14455 |
|
14456 | Utf16Decoder.prototype.end = function() {
|
14457 | if (!this.decoder) {
|
14458 | var buf = Buffer.concat(this.initialBytes),
|
14459 | encoding = detectEncoding(buf, this.options.defaultEncoding);
|
14460 | this.decoder = this.iconv.getDecoder(encoding, this.options);
|
14461 |
|
14462 | var res = this.decoder.write(buf),
|
14463 | trail = this.decoder.end();
|
14464 |
|
14465 | return trail ? (res + trail) : res;
|
14466 | }
|
14467 | return this.decoder.end();
|
14468 | }
|
14469 |
|
14470 | function detectEncoding(buf, defaultEncoding) {
|
14471 | var enc = defaultEncoding || 'utf-16le';
|
14472 |
|
14473 | if (buf.length >= 2) {
|
14474 |
|
14475 | if (buf[0] == 0xFE && buf[1] == 0xFF)
|
14476 | enc = 'utf-16be';
|
14477 | else if (buf[0] == 0xFF && buf[1] == 0xFE)
|
14478 | enc = 'utf-16le';
|
14479 | else {
|
14480 |
|
14481 |
|
14482 |
|
14483 | var asciiCharsLE = 0, asciiCharsBE = 0,
|
14484 | _len = Math.min(buf.length - (buf.length % 2), 64);
|
14485 |
|
14486 | for (var i = 0; i < _len; i += 2) {
|
14487 | if (buf[i] === 0 && buf[i+1] !== 0) asciiCharsBE++;
|
14488 | if (buf[i] !== 0 && buf[i+1] === 0) asciiCharsLE++;
|
14489 | }
|
14490 |
|
14491 | if (asciiCharsBE > asciiCharsLE)
|
14492 | enc = 'utf-16be';
|
14493 | else if (asciiCharsBE < asciiCharsLE)
|
14494 | enc = 'utf-16le';
|
14495 | }
|
14496 | }
|
14497 |
|
14498 | return enc;
|
14499 | }
|
14500 |
|
14501 |
|
14502 |
|
14503 |
|
14504 | }),
|
14505 | ,
|
14506 |
|
14507 | (function(module, __unusedexports, __webpack_require__) {
|
14508 |
|
14509 | "use strict";
|
14510 |
|
14511 |
|
14512 | var esprima;
|
14513 |
|
14514 |
|
14515 |
|
14516 |
|
14517 |
|
14518 |
|
14519 |
|
14520 |
|
14521 | try {
|
14522 |
|
14523 | var _require = require;
|
14524 | esprima = _require('esprima');
|
14525 | } catch (_) {
|
14526 |
|
14527 | if (typeof window !== 'undefined') esprima = window.esprima;
|
14528 | }
|
14529 |
|
14530 | var Type = __webpack_require__(653);
|
14531 |
|
14532 | function resolveJavascriptFunction(data) {
|
14533 | if (data === null) return false;
|
14534 |
|
14535 | try {
|
14536 | var source = '(' + data + ')',
|
14537 | ast = esprima.parse(source, { range: true });
|
14538 |
|
14539 | if (ast.type !== 'Program' ||
|
14540 | ast.body.length !== 1 ||
|
14541 | ast.body[0].type !== 'ExpressionStatement' ||
|
14542 | (ast.body[0].expression.type !== 'ArrowFunctionExpression' &&
|
14543 | ast.body[0].expression.type !== 'FunctionExpression')) {
|
14544 | return false;
|
14545 | }
|
14546 |
|
14547 | return true;
|
14548 | } catch (err) {
|
14549 | return false;
|
14550 | }
|
14551 | }
|
14552 |
|
14553 | function constructJavascriptFunction(data) {
|
14554 |
|
14555 |
|
14556 | var source = '(' + data + ')',
|
14557 | ast = esprima.parse(source, { range: true }),
|
14558 | params = [],
|
14559 | body;
|
14560 |
|
14561 | if (ast.type !== 'Program' ||
|
14562 | ast.body.length !== 1 ||
|
14563 | ast.body[0].type !== 'ExpressionStatement' ||
|
14564 | (ast.body[0].expression.type !== 'ArrowFunctionExpression' &&
|
14565 | ast.body[0].expression.type !== 'FunctionExpression')) {
|
14566 | throw new Error('Failed to resolve function');
|
14567 | }
|
14568 |
|
14569 | ast.body[0].expression.params.forEach(function (param) {
|
14570 | params.push(param.name);
|
14571 | });
|
14572 |
|
14573 | body = ast.body[0].expression.body.range;
|
14574 |
|
14575 |
|
14576 |
|
14577 | if (ast.body[0].expression.body.type === 'BlockStatement') {
|
14578 |
|
14579 | return new Function(params, source.slice(body[0] + 1, body[1] - 1));
|
14580 | }
|
14581 |
|
14582 |
|
14583 |
|
14584 | return new Function(params, 'return ' + source.slice(body[0], body[1]));
|
14585 | }
|
14586 |
|
14587 | function representJavascriptFunction(object /*, style*/) {
|
14588 | return object.toString();
|
14589 | }
|
14590 |
|
14591 | function isFunction(object) {
|
14592 | return Object.prototype.toString.call(object) === '[object Function]';
|
14593 | }
|
14594 |
|
14595 | module.exports = new Type('tag:yaml.org,2002:js/function', {
|
14596 | kind: 'scalar',
|
14597 | resolve: resolveJavascriptFunction,
|
14598 | construct: constructJavascriptFunction,
|
14599 | predicate: isFunction,
|
14600 | represent: representJavascriptFunction
|
14601 | });
|
14602 |
|
14603 |
|
14604 | }),
|
14605 | ,
|
14606 |
|
14607 | (function(__unusedmodule, exports, __webpack_require__) {
|
14608 |
|
14609 | "use strict";
|
14610 |
|
14611 | var __importDefault = (this && this.__importDefault) || function (mod) {
|
14612 | return (mod && mod.__esModule) ? mod : { "default": mod };
|
14613 | };
|
14614 | Object.defineProperty(exports, "__esModule", { value: true });
|
14615 | const end_of_stream_1 = __importDefault(__webpack_require__(680));
|
14616 | function streamToBuffer(stream) {
|
14617 | return new Promise((resolve, reject) => {
|
14618 | const buffers = [];
|
14619 | stream.on('data', buffers.push.bind(buffers));
|
14620 | end_of_stream_1.default(stream, err => {
|
14621 | if (err) {
|
14622 | reject(err);
|
14623 | return;
|
14624 | }
|
14625 | switch (buffers.length) {
|
14626 | case 0:
|
14627 | resolve(Buffer.allocUnsafe(0));
|
14628 | break;
|
14629 | case 1:
|
14630 | resolve(buffers[0]);
|
14631 | break;
|
14632 | default:
|
14633 | resolve(Buffer.concat(buffers));
|
14634 | }
|
14635 | });
|
14636 | });
|
14637 | }
|
14638 | exports.default = streamToBuffer;
|
14639 |
|
14640 |
|
14641 | }),
|
14642 |
|
14643 | (function(module) {
|
14644 |
|
14645 | "use strict";
|
14646 |
|
14647 |
|
14648 | if (typeof process === 'undefined' ||
|
14649 | !process.version ||
|
14650 | process.version.indexOf('v0.') === 0 ||
|
14651 | process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {
|
14652 | module.exports = { nextTick: nextTick };
|
14653 | } else {
|
14654 | module.exports = process
|
14655 | }
|
14656 |
|
14657 | function nextTick(fn, arg1, arg2, arg3) {
|
14658 | if (typeof fn !== 'function') {
|
14659 | throw new TypeError('"callback" argument must be a function');
|
14660 | }
|
14661 | var len = arguments.length;
|
14662 | var args, i;
|
14663 | switch (len) {
|
14664 | case 0:
|
14665 | case 1:
|
14666 | return process.nextTick(fn);
|
14667 | case 2:
|
14668 | return process.nextTick(function afterTickOne() {
|
14669 | fn.call(null, arg1);
|
14670 | });
|
14671 | case 3:
|
14672 | return process.nextTick(function afterTickTwo() {
|
14673 | fn.call(null, arg1, arg2);
|
14674 | });
|
14675 | case 4:
|
14676 | return process.nextTick(function afterTickThree() {
|
14677 | fn.call(null, arg1, arg2, arg3);
|
14678 | });
|
14679 | default:
|
14680 | args = new Array(len - 1);
|
14681 | i = 0;
|
14682 | while (i < args.length) {
|
14683 | args[i++] = arguments[i];
|
14684 | }
|
14685 | return process.nextTick(function afterTick() {
|
14686 | fn.apply(null, args);
|
14687 | });
|
14688 | }
|
14689 | }
|
14690 |
|
14691 |
|
14692 |
|
14693 | }),
|
14694 | ,
|
14695 | ,
|
14696 | ,
|
14697 | ,
|
14698 | ,
|
14699 |
|
14700 | (function(module, __unusedexports, __webpack_require__) {
|
14701 |
|
14702 | "use strict";
|
14703 |
|
14704 |
|
14705 | const fs = __webpack_require__(729)
|
14706 |
|
14707 | function symlinkType (srcpath, type, callback) {
|
14708 | callback = (typeof type === 'function') ? type : callback
|
14709 | type = (typeof type === 'function') ? false : type
|
14710 | if (type) return callback(null, type)
|
14711 | fs.lstat(srcpath, (err, stats) => {
|
14712 | if (err) return callback(null, 'file')
|
14713 | type = (stats && stats.isDirectory()) ? 'dir' : 'file'
|
14714 | callback(null, type)
|
14715 | })
|
14716 | }
|
14717 |
|
14718 | function symlinkTypeSync (srcpath, type) {
|
14719 | let stats
|
14720 |
|
14721 | if (type) return type
|
14722 | try {
|
14723 | stats = fs.lstatSync(srcpath)
|
14724 | } catch (e) {
|
14725 | return 'file'
|
14726 | }
|
14727 | return (stats && stats.isDirectory()) ? 'dir' : 'file'
|
14728 | }
|
14729 |
|
14730 | module.exports = {
|
14731 | symlinkType,
|
14732 | symlinkTypeSync
|
14733 | }
|
14734 |
|
14735 |
|
14736 | }),
|
14737 |
|
14738 | (function(module) {
|
14739 |
|
14740 | "use strict";
|
14741 |
|
14742 |
|
14743 | module.exports = function (size) {
|
14744 | if (typeof Buffer.allocUnsafe === 'function') {
|
14745 | try {
|
14746 | return Buffer.allocUnsafe(size)
|
14747 | } catch (e) {
|
14748 | return new Buffer(size)
|
14749 | }
|
14750 | }
|
14751 | return new Buffer(size)
|
14752 | }
|
14753 |
|
14754 |
|
14755 | }),
|
14756 | ,
|
14757 | ,
|
14758 | ,
|
14759 |
|
14760 | (function(module, __unusedexports, __webpack_require__) {
|
14761 |
|
14762 | "use strict";
|
14763 |
|
14764 | const os = __webpack_require__(87);
|
14765 | const tty = __webpack_require__(867);
|
14766 | const hasFlag = __webpack_require__(472);
|
14767 |
|
14768 | const {env} = process;
|
14769 |
|
14770 | let forceColor;
|
14771 | if (hasFlag('no-color') ||
|
14772 | hasFlag('no-colors') ||
|
14773 | hasFlag('color=false') ||
|
14774 | hasFlag('color=never')) {
|
14775 | forceColor = 0;
|
14776 | } else if (hasFlag('color') ||
|
14777 | hasFlag('colors') ||
|
14778 | hasFlag('color=true') ||
|
14779 | hasFlag('color=always')) {
|
14780 | forceColor = 1;
|
14781 | }
|
14782 |
|
14783 | if ('FORCE_COLOR' in env) {
|
14784 | if (env.FORCE_COLOR === 'true') {
|
14785 | forceColor = 1;
|
14786 | } else if (env.FORCE_COLOR === 'false') {
|
14787 | forceColor = 0;
|
14788 | } else {
|
14789 | forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
14790 | }
|
14791 | }
|
14792 |
|
14793 | function translateLevel(level) {
|
14794 | if (level === 0) {
|
14795 | return false;
|
14796 | }
|
14797 |
|
14798 | return {
|
14799 | level,
|
14800 | hasBasic: true,
|
14801 | has256: level >= 2,
|
14802 | has16m: level >= 3
|
14803 | };
|
14804 | }
|
14805 |
|
14806 | function supportsColor(haveStream, streamIsTTY) {
|
14807 | if (forceColor === 0) {
|
14808 | return 0;
|
14809 | }
|
14810 |
|
14811 | if (hasFlag('color=16m') ||
|
14812 | hasFlag('color=full') ||
|
14813 | hasFlag('color=truecolor')) {
|
14814 | return 3;
|
14815 | }
|
14816 |
|
14817 | if (hasFlag('color=256')) {
|
14818 | return 2;
|
14819 | }
|
14820 |
|
14821 | if (haveStream && !streamIsTTY && forceColor === undefined) {
|
14822 | return 0;
|
14823 | }
|
14824 |
|
14825 | const min = forceColor || 0;
|
14826 |
|
14827 | if (env.TERM === 'dumb') {
|
14828 | return min;
|
14829 | }
|
14830 |
|
14831 | if (process.platform === 'win32') {
|
14832 |
|
14833 |
|
14834 | const osRelease = os.release().split('.');
|
14835 | if (
|
14836 | Number(osRelease[0]) >= 10 &&
|
14837 | Number(osRelease[2]) >= 10586
|
14838 | ) {
|
14839 | return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
14840 | }
|
14841 |
|
14842 | return 1;
|
14843 | }
|
14844 |
|
14845 | if ('CI' in env) {
|
14846 | if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
|
14847 | return 1;
|
14848 | }
|
14849 |
|
14850 | return min;
|
14851 | }
|
14852 |
|
14853 | if ('TEAMCITY_VERSION' in env) {
|
14854 | return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
14855 | }
|
14856 |
|
14857 | if ('GITHUB_ACTIONS' in env) {
|
14858 | return 1;
|
14859 | }
|
14860 |
|
14861 | if (env.COLORTERM === 'truecolor') {
|
14862 | return 3;
|
14863 | }
|
14864 |
|
14865 | if ('TERM_PROGRAM' in env) {
|
14866 | const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
|
14867 |
|
14868 | switch (env.TERM_PROGRAM) {
|
14869 | case 'iTerm.app':
|
14870 | return version >= 3 ? 3 : 2;
|
14871 | case 'Apple_Terminal':
|
14872 | return 2;
|
14873 |
|
14874 | }
|
14875 | }
|
14876 |
|
14877 | if (/-256(color)?$/i.test(env.TERM)) {
|
14878 | return 2;
|
14879 | }
|
14880 |
|
14881 | if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
14882 | return 1;
|
14883 | }
|
14884 |
|
14885 | if ('COLORTERM' in env) {
|
14886 | return 1;
|
14887 | }
|
14888 |
|
14889 | return min;
|
14890 | }
|
14891 |
|
14892 | function getSupportLevel(stream) {
|
14893 | const level = supportsColor(stream, stream && stream.isTTY);
|
14894 | return translateLevel(level);
|
14895 | }
|
14896 |
|
14897 | module.exports = {
|
14898 | supportsColor: getSupportLevel,
|
14899 | stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
14900 | stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
14901 | };
|
14902 |
|
14903 |
|
14904 | }),
|
14905 | ,
|
14906 | ,
|
14907 | ,
|
14908 | ,
|
14909 | ,
|
14910 | ,
|
14911 | ,
|
14912 | ,
|
14913 | ,
|
14914 | ,
|
14915 |
|
14916 | (function(module) {
|
14917 |
|
14918 | "use strict";
|
14919 |
|
14920 |
|
14921 |
|
14922 | const isFullwidthCodePoint = codePoint => {
|
14923 | if (Number.isNaN(codePoint)) {
|
14924 | return false;
|
14925 | }
|
14926 |
|
14927 |
|
14928 |
|
14929 | if (
|
14930 | codePoint >= 0x1100 && (
|
14931 | codePoint <= 0x115F ||
|
14932 | codePoint === 0x2329 ||
|
14933 | codePoint === 0x232A ||
|
14934 |
|
14935 | (0x2E80 <= codePoint && codePoint <= 0x3247 && codePoint !== 0x303F) ||
|
14936 |
|
14937 | (0x3250 <= codePoint && codePoint <= 0x4DBF) ||
|
14938 |
|
14939 | (0x4E00 <= codePoint && codePoint <= 0xA4C6) ||
|
14940 |
|
14941 | (0xA960 <= codePoint && codePoint <= 0xA97C) ||
|
14942 |
|
14943 | (0xAC00 <= codePoint && codePoint <= 0xD7A3) ||
|
14944 |
|
14945 | (0xF900 <= codePoint && codePoint <= 0xFAFF) ||
|
14946 |
|
14947 | (0xFE10 <= codePoint && codePoint <= 0xFE19) ||
|
14948 |
|
14949 | (0xFE30 <= codePoint && codePoint <= 0xFE6B) ||
|
14950 |
|
14951 | (0xFF01 <= codePoint && codePoint <= 0xFF60) ||
|
14952 | (0xFFE0 <= codePoint && codePoint <= 0xFFE6) ||
|
14953 |
|
14954 | (0x1B000 <= codePoint && codePoint <= 0x1B001) ||
|
14955 |
|
14956 | (0x1F200 <= codePoint && codePoint <= 0x1F251) ||
|
14957 |
|
14958 | (0x20000 <= codePoint && codePoint <= 0x3FFFD)
|
14959 | )
|
14960 | ) {
|
14961 | return true;
|
14962 | }
|
14963 |
|
14964 | return false;
|
14965 | };
|
14966 |
|
14967 | module.exports = isFullwidthCodePoint;
|
14968 | module.exports.default = isFullwidthCodePoint;
|
14969 |
|
14970 |
|
14971 | }),
|
14972 | ,
|
14973 | ,
|
14974 |
|
14975 | (function(module, __unusedexports, __webpack_require__) {
|
14976 |
|
14977 | try {
|
14978 | var util = __webpack_require__(669);
|
14979 |
|
14980 | if (typeof util.inherits !== 'function') throw '';
|
14981 | module.exports = util.inherits;
|
14982 | } catch (e) {
|
14983 |
|
14984 | module.exports = __webpack_require__(637);
|
14985 | }
|
14986 |
|
14987 |
|
14988 | }),
|
14989 |
|
14990 | (function(module, __unusedexports, __webpack_require__) {
|
14991 |
|
14992 | "use strict";
|
14993 |
|
14994 | const f = __webpack_require__(677)
|
14995 |
|
14996 | class Time extends Date {
|
14997 | constructor (value) {
|
14998 | super(`0000-01-01T${value}Z`)
|
14999 | this.isTime = true
|
15000 | }
|
15001 | toISOString () {
|
15002 | return `${f(2, this.getUTCHours())}:${f(2, this.getUTCMinutes())}:${f(2, this.getUTCSeconds())}.${f(3, this.getUTCMilliseconds())}`
|
15003 | }
|
15004 | }
|
15005 |
|
15006 | module.exports = value => {
|
15007 | const date = new Time(value)
|
15008 |
|
15009 | if (isNaN(date)) {
|
15010 | throw new TypeError('Invalid Datetime')
|
15011 | } else {
|
15012 | return date
|
15013 | }
|
15014 | }
|
15015 |
|
15016 |
|
15017 | }),
|
15018 |
|
15019 | (function(module, __unusedexports, __webpack_require__) {
|
15020 |
|
15021 | var wrappy = __webpack_require__(174)
|
15022 | module.exports = wrappy(once)
|
15023 | module.exports.strict = wrappy(onceStrict)
|
15024 |
|
15025 | once.proto = once(function () {
|
15026 | Object.defineProperty(Function.prototype, 'once', {
|
15027 | value: function () {
|
15028 | return once(this)
|
15029 | },
|
15030 | configurable: true
|
15031 | })
|
15032 |
|
15033 | Object.defineProperty(Function.prototype, 'onceStrict', {
|
15034 | value: function () {
|
15035 | return onceStrict(this)
|
15036 | },
|
15037 | configurable: true
|
15038 | })
|
15039 | })
|
15040 |
|
15041 | function once (fn) {
|
15042 | var f = function () {
|
15043 | if (f.called) return f.value
|
15044 | f.called = true
|
15045 | return f.value = fn.apply(this, arguments)
|
15046 | }
|
15047 | f.called = false
|
15048 | return f
|
15049 | }
|
15050 |
|
15051 | function onceStrict (fn) {
|
15052 | var f = function () {
|
15053 | if (f.called)
|
15054 | throw new Error(f.onceError)
|
15055 | f.called = true
|
15056 | return f.value = fn.apply(this, arguments)
|
15057 | }
|
15058 | var name = fn.name || 'Function wrapped with `once`'
|
15059 | f.onceError = name + " shouldn't be called more than once"
|
15060 | f.called = false
|
15061 | return f
|
15062 | }
|
15063 |
|
15064 |
|
15065 | }),
|
15066 | ,
|
15067 | ,
|
15068 | ,
|
15069 | ,
|
15070 | ,
|
15071 |
|
15072 | (function(module) {
|
15073 |
|
15074 | module.exports = [["0","\u0000",127],["a140"," ,、。.‧;:?!︰…‥﹐﹑﹒·﹔﹕﹖﹗|–︱—︳╴︴﹏()︵︶{}︷︸〔〕︹︺【】︻︼《》︽︾〈〉︿﹀「」﹁﹂『』﹃﹄﹙﹚"],["a1a1","﹛﹜﹝﹞‘’“”〝〞‵′#&*※§〃○●△▲◎☆★◇◆□■▽▼㊣℅¯ ̄_ˍ﹉﹊﹍﹎﹋﹌﹟﹠﹡+-×÷±√<>=≦≧≠∞≒≡﹢",4,"~∩∪⊥∠∟⊿㏒㏑∫∮∵∴♀♂⊕⊙↑↓←→↖↗↙↘∥∣/"],["a240","\∕﹨$¥〒¢£%@℃℉﹩﹪﹫㏕㎜㎝㎞㏎㎡㎎㎏㏄°兙兛兞兝兡兣嗧瓩糎▁",7,"▏▎▍▌▋▊▉┼┴┬┤├▔─│▕┌┐└┘╭"],["a2a1","╮╰╯═╞╪╡◢◣◥◤╱╲╳0",9,"Ⅰ",9,"〡",8,"十卄卅A",25,"a",21],["a340","wxyzΑ",16,"Σ",6,"α",16,"σ",6,"ㄅ",10],["a3a1","ㄐ",25,"˙ˉˊˇˋ"],["a3e1","€"],["a440","一乙丁七乃九了二人儿入八几刀刁力匕十卜又三下丈上丫丸凡久么也乞于亡兀刃勺千叉口土士夕大女子孑孓寸小尢尸山川工己已巳巾干廾弋弓才"],["a4a1","丑丐不中丰丹之尹予云井互五亢仁什仃仆仇仍今介仄元允內六兮公冗凶分切刈勻勾勿化匹午升卅卞厄友及反壬天夫太夭孔少尤尺屯巴幻廿弔引心戈戶手扎支文斗斤方日曰月木欠止歹毋比毛氏水火爪父爻片牙牛犬王丙"],["a540","世丕且丘主乍乏乎以付仔仕他仗代令仙仞充兄冉冊冬凹出凸刊加功包匆北匝仟半卉卡占卯卮去可古右召叮叩叨叼司叵叫另只史叱台句叭叻四囚外"],["a5a1","央失奴奶孕它尼巨巧左市布平幼弁弘弗必戊打扔扒扑斥旦朮本未末札正母民氐永汁汀氾犯玄玉瓜瓦甘生用甩田由甲申疋白皮皿目矛矢石示禾穴立丞丟乒乓乩亙交亦亥仿伉伙伊伕伍伐休伏仲件任仰仳份企伋光兇兆先全"],["a640","共再冰列刑划刎刖劣匈匡匠印危吉吏同吊吐吁吋各向名合吃后吆吒因回囝圳地在圭圬圯圩夙多夷夸妄奸妃好她如妁字存宇守宅安寺尖屹州帆并年"],["a6a1","式弛忙忖戎戌戍成扣扛托收早旨旬旭曲曳有朽朴朱朵次此死氖汝汗汙江池汐汕污汛汍汎灰牟牝百竹米糸缶羊羽老考而耒耳聿肉肋肌臣自至臼舌舛舟艮色艾虫血行衣西阡串亨位住佇佗佞伴佛何估佐佑伽伺伸佃佔似但佣"],["a740","作你伯低伶余佝佈佚兌克免兵冶冷別判利刪刨劫助努劬匣即卵吝吭吞吾否呎吧呆呃吳呈呂君吩告吹吻吸吮吵吶吠吼呀吱含吟听囪困囤囫坊坑址坍"],["a7a1","均坎圾坐坏圻壯夾妝妒妨妞妣妙妖妍妤妓妊妥孝孜孚孛完宋宏尬局屁尿尾岐岑岔岌巫希序庇床廷弄弟彤形彷役忘忌志忍忱快忸忪戒我抄抗抖技扶抉扭把扼找批扳抒扯折扮投抓抑抆改攻攸旱更束李杏材村杜杖杞杉杆杠"],["a840","杓杗步每求汞沙沁沈沉沅沛汪決沐汰沌汨沖沒汽沃汲汾汴沆汶沍沔沘沂灶灼災灸牢牡牠狄狂玖甬甫男甸皂盯矣私秀禿究系罕肖肓肝肘肛肚育良芒"],["a8a1","芋芍見角言谷豆豕貝赤走足身車辛辰迂迆迅迄巡邑邢邪邦那酉釆里防阮阱阪阬並乖乳事些亞享京佯依侍佳使佬供例來侃佰併侈佩佻侖佾侏侑佺兔兒兕兩具其典冽函刻券刷刺到刮制剁劾劻卒協卓卑卦卷卸卹取叔受味呵"],["a940","咖呸咕咀呻呷咄咒咆呼咐呱呶和咚呢周咋命咎固垃坷坪坩坡坦坤坼夜奉奇奈奄奔妾妻委妹妮姑姆姐姍始姓姊妯妳姒姅孟孤季宗定官宜宙宛尚屈居"],["a9a1","屆岷岡岸岩岫岱岳帘帚帖帕帛帑幸庚店府底庖延弦弧弩往征彿彼忝忠忽念忿怏怔怯怵怖怪怕怡性怩怫怛或戕房戾所承拉拌拄抿拂抹拒招披拓拔拋拈抨抽押拐拙拇拍抵拚抱拘拖拗拆抬拎放斧於旺昔易昌昆昂明昀昏昕昊"],["aa40","昇服朋杭枋枕東果杳杷枇枝林杯杰板枉松析杵枚枓杼杪杲欣武歧歿氓氛泣注泳沱泌泥河沽沾沼波沫法泓沸泄油況沮泗泅泱沿治泡泛泊沬泯泜泖泠"],["aaa1","炕炎炒炊炙爬爭爸版牧物狀狎狙狗狐玩玨玟玫玥甽疝疙疚的盂盲直知矽社祀祁秉秈空穹竺糾罔羌羋者肺肥肢肱股肫肩肴肪肯臥臾舍芳芝芙芭芽芟芹花芬芥芯芸芣芰芾芷虎虱初表軋迎返近邵邸邱邶采金長門阜陀阿阻附"],["ab40","陂隹雨青非亟亭亮信侵侯便俠俑俏保促侶俘俟俊俗侮俐俄係俚俎俞侷兗冒冑冠剎剃削前剌剋則勇勉勃勁匍南卻厚叛咬哀咨哎哉咸咦咳哇哂咽咪品"],["aba1","哄哈咯咫咱咻咩咧咿囿垂型垠垣垢城垮垓奕契奏奎奐姜姘姿姣姨娃姥姪姚姦威姻孩宣宦室客宥封屎屏屍屋峙峒巷帝帥帟幽庠度建弈弭彥很待徊律徇後徉怒思怠急怎怨恍恰恨恢恆恃恬恫恪恤扁拜挖按拼拭持拮拽指拱拷"],["ac40","拯括拾拴挑挂政故斫施既春昭映昧是星昨昱昤曷柿染柱柔某柬架枯柵柩柯柄柑枴柚查枸柏柞柳枰柙柢柝柒歪殃殆段毒毗氟泉洋洲洪流津洌洱洞洗"],["aca1","活洽派洶洛泵洹洧洸洩洮洵洎洫炫為炳炬炯炭炸炮炤爰牲牯牴狩狠狡玷珊玻玲珍珀玳甚甭畏界畎畋疫疤疥疢疣癸皆皇皈盈盆盃盅省盹相眉看盾盼眇矜砂研砌砍祆祉祈祇禹禺科秒秋穿突竿竽籽紂紅紀紉紇約紆缸美羿耄"],["ad40","耐耍耑耶胖胥胚胃胄背胡胛胎胞胤胝致舢苧范茅苣苛苦茄若茂茉苒苗英茁苜苔苑苞苓苟苯茆虐虹虻虺衍衫要觔計訂訃貞負赴赳趴軍軌述迦迢迪迥"],["ada1","迭迫迤迨郊郎郁郃酋酊重閂限陋陌降面革韋韭音頁風飛食首香乘亳倌倍倣俯倦倥俸倩倖倆值借倚倒們俺倀倔倨俱倡個候倘俳修倭倪俾倫倉兼冤冥冢凍凌准凋剖剜剔剛剝匪卿原厝叟哨唐唁唷哼哥哲唆哺唔哩哭員唉哮哪"],["ae40","哦唧唇哽唏圃圄埂埔埋埃堉夏套奘奚娑娘娜娟娛娓姬娠娣娩娥娌娉孫屘宰害家宴宮宵容宸射屑展屐峭峽峻峪峨峰島崁峴差席師庫庭座弱徒徑徐恙"],["aea1","恣恥恐恕恭恩息悄悟悚悍悔悌悅悖扇拳挈拿捎挾振捕捂捆捏捉挺捐挽挪挫挨捍捌效敉料旁旅時晉晏晃晒晌晅晁書朔朕朗校核案框桓根桂桔栩梳栗桌桑栽柴桐桀格桃株桅栓栘桁殊殉殷氣氧氨氦氤泰浪涕消涇浦浸海浙涓"],["af40","浬涉浮浚浴浩涌涊浹涅浥涔烊烘烤烙烈烏爹特狼狹狽狸狷玆班琉珮珠珪珞畔畝畜畚留疾病症疲疳疽疼疹痂疸皋皰益盍盎眩真眠眨矩砰砧砸砝破砷"],["afa1","砥砭砠砟砲祕祐祠祟祖神祝祗祚秤秣秧租秦秩秘窄窈站笆笑粉紡紗紋紊素索純紐紕級紜納紙紛缺罟羔翅翁耆耘耕耙耗耽耿胱脂胰脅胭胴脆胸胳脈能脊胼胯臭臬舀舐航舫舨般芻茫荒荔荊茸荐草茵茴荏茲茹茶茗荀茱茨荃"],["b040","虔蚊蚪蚓蚤蚩蚌蚣蚜衰衷袁袂衽衹記訐討訌訕訊託訓訖訏訑豈豺豹財貢起躬軒軔軏辱送逆迷退迺迴逃追逅迸邕郡郝郢酒配酌釘針釗釜釙閃院陣陡"],["b0a1","陛陝除陘陞隻飢馬骨高鬥鬲鬼乾偺偽停假偃偌做偉健偶偎偕偵側偷偏倏偯偭兜冕凰剪副勒務勘動匐匏匙匿區匾參曼商啪啦啄啞啡啃啊唱啖問啕唯啤唸售啜唬啣唳啁啗圈國圉域堅堊堆埠埤基堂堵執培夠奢娶婁婉婦婪婀"],["b140","娼婢婚婆婊孰寇寅寄寂宿密尉專將屠屜屝崇崆崎崛崖崢崑崩崔崙崤崧崗巢常帶帳帷康庸庶庵庾張強彗彬彩彫得徙從徘御徠徜恿患悉悠您惋悴惦悽"],["b1a1","情悻悵惜悼惘惕惆惟悸惚惇戚戛扈掠控捲掖探接捷捧掘措捱掩掉掃掛捫推掄授掙採掬排掏掀捻捩捨捺敝敖救教敗啟敏敘敕敔斜斛斬族旋旌旎晝晚晤晨晦晞曹勗望梁梯梢梓梵桿桶梱梧梗械梃棄梭梆梅梔條梨梟梡梂欲殺"],["b240","毫毬氫涎涼淳淙液淡淌淤添淺清淇淋涯淑涮淞淹涸混淵淅淒渚涵淚淫淘淪深淮淨淆淄涪淬涿淦烹焉焊烽烯爽牽犁猜猛猖猓猙率琅琊球理現琍瓠瓶"],["b2a1","瓷甜產略畦畢異疏痔痕疵痊痍皎盔盒盛眷眾眼眶眸眺硫硃硎祥票祭移窒窕笠笨笛第符笙笞笮粒粗粕絆絃統紮紹紼絀細紳組累終紲紱缽羞羚翌翎習耜聊聆脯脖脣脫脩脰脤舂舵舷舶船莎莞莘荸莢莖莽莫莒莊莓莉莠荷荻荼"],["b340","莆莧處彪蛇蛀蚶蛄蚵蛆蛋蚱蚯蛉術袞袈被袒袖袍袋覓規訪訝訣訥許設訟訛訢豉豚販責貫貨貪貧赧赦趾趺軛軟這逍通逗連速逝逐逕逞造透逢逖逛途"],["b3a1","部郭都酗野釵釦釣釧釭釩閉陪陵陳陸陰陴陶陷陬雀雪雩章竟頂頃魚鳥鹵鹿麥麻傢傍傅備傑傀傖傘傚最凱割剴創剩勞勝勛博厥啻喀喧啼喊喝喘喂喜喪喔喇喋喃喳單喟唾喲喚喻喬喱啾喉喫喙圍堯堪場堤堰報堡堝堠壹壺奠"],["b440","婷媚婿媒媛媧孳孱寒富寓寐尊尋就嵌嵐崴嵇巽幅帽幀幃幾廊廁廂廄弼彭復循徨惑惡悲悶惠愜愣惺愕惰惻惴慨惱愎惶愉愀愒戟扉掣掌描揀揩揉揆揍"],["b4a1","插揣提握揖揭揮捶援揪換摒揚揹敞敦敢散斑斐斯普晰晴晶景暑智晾晷曾替期朝棺棕棠棘棗椅棟棵森棧棹棒棲棣棋棍植椒椎棉棚楮棻款欺欽殘殖殼毯氮氯氬港游湔渡渲湧湊渠渥渣減湛湘渤湖湮渭渦湯渴湍渺測湃渝渾滋"],["b540","溉渙湎湣湄湲湩湟焙焚焦焰無然煮焜牌犄犀猶猥猴猩琺琪琳琢琥琵琶琴琯琛琦琨甥甦畫番痢痛痣痙痘痞痠登發皖皓皴盜睏短硝硬硯稍稈程稅稀窘"],["b5a1","窗窖童竣等策筆筐筒答筍筋筏筑粟粥絞結絨絕紫絮絲絡給絢絰絳善翔翕耋聒肅腕腔腋腑腎脹腆脾腌腓腴舒舜菩萃菸萍菠菅萋菁華菱菴著萊菰萌菌菽菲菊萸萎萄菜萇菔菟虛蛟蛙蛭蛔蛛蛤蛐蛞街裁裂袱覃視註詠評詞証詁"],["b640","詔詛詐詆訴診訶詖象貂貯貼貳貽賁費賀貴買貶貿貸越超趁跎距跋跚跑跌跛跆軻軸軼辜逮逵週逸進逶鄂郵鄉郾酣酥量鈔鈕鈣鈉鈞鈍鈐鈇鈑閔閏開閑"],["b6a1","間閒閎隊階隋陽隅隆隍陲隄雁雅雄集雇雯雲韌項順須飧飪飯飩飲飭馮馭黃黍黑亂傭債傲傳僅傾催傷傻傯僇剿剷剽募勦勤勢勣匯嗟嗨嗓嗦嗎嗜嗇嗑嗣嗤嗯嗚嗡嗅嗆嗥嗉園圓塞塑塘塗塚塔填塌塭塊塢塒塋奧嫁嫉嫌媾媽媼"],["b740","媳嫂媲嵩嵯幌幹廉廈弒彙徬微愚意慈感想愛惹愁愈慎慌慄慍愾愴愧愍愆愷戡戢搓搾搞搪搭搽搬搏搜搔損搶搖搗搆敬斟新暗暉暇暈暖暄暘暍會榔業"],["b7a1","楚楷楠楔極椰概楊楨楫楞楓楹榆楝楣楛歇歲毀殿毓毽溢溯滓溶滂源溝滇滅溥溘溼溺溫滑準溜滄滔溪溧溴煎煙煩煤煉照煜煬煦煌煥煞煆煨煖爺牒猷獅猿猾瑯瑚瑕瑟瑞瑁琿瑙瑛瑜當畸瘀痰瘁痲痱痺痿痴痳盞盟睛睫睦睞督"],["b840","睹睪睬睜睥睨睢矮碎碰碗碘碌碉硼碑碓硿祺祿禁萬禽稜稚稠稔稟稞窟窠筷節筠筮筧粱粳粵經絹綑綁綏絛置罩罪署義羨群聖聘肆肄腱腰腸腥腮腳腫"],["b8a1","腹腺腦舅艇蒂葷落萱葵葦葫葉葬葛萼萵葡董葩葭葆虞虜號蛹蜓蜈蜇蜀蛾蛻蜂蜃蜆蜊衙裟裔裙補裘裝裡裊裕裒覜解詫該詳試詩詰誇詼詣誠話誅詭詢詮詬詹詻訾詨豢貊貉賊資賈賄貲賃賂賅跡跟跨路跳跺跪跤跦躲較載軾輊"],["b940","辟農運遊道遂達逼違遐遇遏過遍遑逾遁鄒鄗酬酪酩釉鈷鉗鈸鈽鉀鈾鉛鉋鉤鉑鈴鉉鉍鉅鈹鈿鉚閘隘隔隕雍雋雉雊雷電雹零靖靴靶預頑頓頊頒頌飼飴"],["b9a1","飽飾馳馱馴髡鳩麂鼎鼓鼠僧僮僥僖僭僚僕像僑僱僎僩兢凳劃劂匱厭嗾嘀嘛嘗嗽嘔嘆嘉嘍嘎嗷嘖嘟嘈嘐嗶團圖塵塾境墓墊塹墅塽壽夥夢夤奪奩嫡嫦嫩嫗嫖嫘嫣孵寞寧寡寥實寨寢寤察對屢嶄嶇幛幣幕幗幔廓廖弊彆彰徹慇"],["ba40","愿態慷慢慣慟慚慘慵截撇摘摔撤摸摟摺摑摧搴摭摻敲斡旗旖暢暨暝榜榨榕槁榮槓構榛榷榻榫榴槐槍榭槌榦槃榣歉歌氳漳演滾漓滴漩漾漠漬漏漂漢"],["baa1","滿滯漆漱漸漲漣漕漫漯澈漪滬漁滲滌滷熔熙煽熊熄熒爾犒犖獄獐瑤瑣瑪瑰瑭甄疑瘧瘍瘋瘉瘓盡監瞄睽睿睡磁碟碧碳碩碣禎福禍種稱窪窩竭端管箕箋筵算箝箔箏箸箇箄粹粽精綻綰綜綽綾綠緊綴網綱綺綢綿綵綸維緒緇綬"],["bb40","罰翠翡翟聞聚肇腐膀膏膈膊腿膂臧臺與舔舞艋蓉蒿蓆蓄蒙蒞蒲蒜蓋蒸蓀蓓蒐蒼蓑蓊蜿蜜蜻蜢蜥蜴蜘蝕蜷蜩裳褂裴裹裸製裨褚裯誦誌語誣認誡誓誤"],["bba1","說誥誨誘誑誚誧豪貍貌賓賑賒赫趙趕跼輔輒輕輓辣遠遘遜遣遙遞遢遝遛鄙鄘鄞酵酸酷酴鉸銀銅銘銖鉻銓銜銨鉼銑閡閨閩閣閥閤隙障際雌雒需靼鞅韶頗領颯颱餃餅餌餉駁骯骰髦魁魂鳴鳶鳳麼鼻齊億儀僻僵價儂儈儉儅凜"],["bc40","劇劈劉劍劊勰厲嘮嘻嘹嘲嘿嘴嘩噓噎噗噴嘶嘯嘰墀墟增墳墜墮墩墦奭嬉嫻嬋嫵嬌嬈寮寬審寫層履嶝嶔幢幟幡廢廚廟廝廣廠彈影德徵慶慧慮慝慕憂"],["bca1","慼慰慫慾憧憐憫憎憬憚憤憔憮戮摩摯摹撞撲撈撐撰撥撓撕撩撒撮播撫撚撬撙撢撳敵敷數暮暫暴暱樣樟槨樁樞標槽模樓樊槳樂樅槭樑歐歎殤毅毆漿潼澄潑潦潔澆潭潛潸潮澎潺潰潤澗潘滕潯潠潟熟熬熱熨牖犛獎獗瑩璋璃"],["bd40","瑾璀畿瘠瘩瘟瘤瘦瘡瘢皚皺盤瞎瞇瞌瞑瞋磋磅確磊碾磕碼磐稿稼穀稽稷稻窯窮箭箱範箴篆篇篁箠篌糊締練緯緻緘緬緝編緣線緞緩綞緙緲緹罵罷羯"],["bda1","翩耦膛膜膝膠膚膘蔗蔽蔚蓮蔬蔭蔓蔑蔣蔡蔔蓬蔥蓿蔆螂蝴蝶蝠蝦蝸蝨蝙蝗蝌蝓衛衝褐複褒褓褕褊誼諒談諄誕請諸課諉諂調誰論諍誶誹諛豌豎豬賠賞賦賤賬賭賢賣賜質賡赭趟趣踫踐踝踢踏踩踟踡踞躺輝輛輟輩輦輪輜輞"],["be40","輥適遮遨遭遷鄰鄭鄧鄱醇醉醋醃鋅銻銷鋪銬鋤鋁銳銼鋒鋇鋰銲閭閱霄霆震霉靠鞍鞋鞏頡頫頜颳養餓餒餘駝駐駟駛駑駕駒駙骷髮髯鬧魅魄魷魯鴆鴉"],["bea1","鴃麩麾黎墨齒儒儘儔儐儕冀冪凝劑劓勳噙噫噹噩噤噸噪器噥噱噯噬噢噶壁墾壇壅奮嬝嬴學寰導彊憲憑憩憊懍憶憾懊懈戰擅擁擋撻撼據擄擇擂操撿擒擔撾整曆曉暹曄曇暸樽樸樺橙橫橘樹橄橢橡橋橇樵機橈歙歷氅濂澱澡"],["bf40","濃澤濁澧澳激澹澶澦澠澴熾燉燐燒燈燕熹燎燙燜燃燄獨璜璣璘璟璞瓢甌甍瘴瘸瘺盧盥瞠瞞瞟瞥磨磚磬磧禦積穎穆穌穋窺篙簑築篤篛篡篩篦糕糖縊"],["bfa1","縑縈縛縣縞縝縉縐罹羲翰翱翮耨膳膩膨臻興艘艙蕊蕙蕈蕨蕩蕃蕉蕭蕪蕞螃螟螞螢融衡褪褲褥褫褡親覦諦諺諫諱謀諜諧諮諾謁謂諷諭諳諶諼豫豭貓賴蹄踱踴蹂踹踵輻輯輸輳辨辦遵遴選遲遼遺鄴醒錠錶鋸錳錯錢鋼錫錄錚"],["c040","錐錦錡錕錮錙閻隧隨險雕霎霑霖霍霓霏靛靜靦鞘頰頸頻頷頭頹頤餐館餞餛餡餚駭駢駱骸骼髻髭鬨鮑鴕鴣鴦鴨鴒鴛默黔龍龜優償儡儲勵嚎嚀嚐嚅嚇"],["c0a1","嚏壕壓壑壎嬰嬪嬤孺尷屨嶼嶺嶽嶸幫彌徽應懂懇懦懋戲戴擎擊擘擠擰擦擬擱擢擭斂斃曙曖檀檔檄檢檜櫛檣橾檗檐檠歜殮毚氈濘濱濟濠濛濤濫濯澀濬濡濩濕濮濰燧營燮燦燥燭燬燴燠爵牆獰獲璩環璦璨癆療癌盪瞳瞪瞰瞬"],["c140","瞧瞭矯磷磺磴磯礁禧禪穗窿簇簍篾篷簌篠糠糜糞糢糟糙糝縮績繆縷縲繃縫總縱繅繁縴縹繈縵縿縯罄翳翼聱聲聰聯聳臆臃膺臂臀膿膽臉膾臨舉艱薪"],["c1a1","薄蕾薜薑薔薯薛薇薨薊虧蟀蟑螳蟒蟆螫螻螺蟈蟋褻褶襄褸褽覬謎謗謙講謊謠謝謄謐豁谿豳賺賽購賸賻趨蹉蹋蹈蹊轄輾轂轅輿避遽還邁邂邀鄹醣醞醜鍍鎂錨鍵鍊鍥鍋錘鍾鍬鍛鍰鍚鍔闊闋闌闈闆隱隸雖霜霞鞠韓顆颶餵騁"],["c240","駿鮮鮫鮪鮭鴻鴿麋黏點黜黝黛鼾齋叢嚕嚮壙壘嬸彝懣戳擴擲擾攆擺擻擷斷曜朦檳檬櫃檻檸櫂檮檯歟歸殯瀉瀋濾瀆濺瀑瀏燻燼燾燸獷獵璧璿甕癖癘"],["c2a1","癒瞽瞿瞻瞼礎禮穡穢穠竄竅簫簧簪簞簣簡糧織繕繞繚繡繒繙罈翹翻職聶臍臏舊藏薩藍藐藉薰薺薹薦蟯蟬蟲蟠覆覲觴謨謹謬謫豐贅蹙蹣蹦蹤蹟蹕軀轉轍邇邃邈醫醬釐鎔鎊鎖鎢鎳鎮鎬鎰鎘鎚鎗闔闖闐闕離雜雙雛雞霤鞣鞦"],["c340","鞭韹額顏題顎顓颺餾餿餽餮馥騎髁鬃鬆魏魎魍鯊鯉鯽鯈鯀鵑鵝鵠黠鼕鼬儳嚥壞壟壢寵龐廬懲懷懶懵攀攏曠曝櫥櫝櫚櫓瀛瀟瀨瀚瀝瀕瀘爆爍牘犢獸"],["c3a1","獺璽瓊瓣疇疆癟癡矇礙禱穫穩簾簿簸簽簷籀繫繭繹繩繪羅繳羶羹羸臘藩藝藪藕藤藥藷蟻蠅蠍蟹蟾襠襟襖襞譁譜識證譚譎譏譆譙贈贊蹼蹲躇蹶蹬蹺蹴轔轎辭邊邋醱醮鏡鏑鏟鏃鏈鏜鏝鏖鏢鏍鏘鏤鏗鏨關隴難霪霧靡韜韻類"],["c440","願顛颼饅饉騖騙鬍鯨鯧鯖鯛鶉鵡鵲鵪鵬麒麗麓麴勸嚨嚷嚶嚴嚼壤孀孃孽寶巉懸懺攘攔攙曦朧櫬瀾瀰瀲爐獻瓏癢癥礦礪礬礫竇競籌籃籍糯糰辮繽繼"],["c4a1","纂罌耀臚艦藻藹蘑藺蘆蘋蘇蘊蠔蠕襤覺觸議譬警譯譟譫贏贍躉躁躅躂醴釋鐘鐃鏽闡霰飄饒饑馨騫騰騷騵鰓鰍鹹麵黨鼯齟齣齡儷儸囁囀囂夔屬巍懼懾攝攜斕曩櫻欄櫺殲灌爛犧瓖瓔癩矓籐纏續羼蘗蘭蘚蠣蠢蠡蠟襪襬覽譴"],["c540","護譽贓躊躍躋轟辯醺鐮鐳鐵鐺鐸鐲鐫闢霸霹露響顧顥饗驅驃驀騾髏魔魑鰭鰥鶯鶴鷂鶸麝黯鼙齜齦齧儼儻囈囊囉孿巔巒彎懿攤權歡灑灘玀瓤疊癮癬"],["c5a1","禳籠籟聾聽臟襲襯觼讀贖贗躑躓轡酈鑄鑑鑒霽霾韃韁顫饕驕驍髒鬚鱉鰱鰾鰻鷓鷗鼴齬齪龔囌巖戀攣攫攪曬欐瓚竊籤籣籥纓纖纔臢蘸蘿蠱變邐邏鑣鑠鑤靨顯饜驚驛驗髓體髑鱔鱗鱖鷥麟黴囑壩攬灞癱癲矗罐羈蠶蠹衢讓讒"],["c640","讖艷贛釀鑪靂靈靄韆顰驟鬢魘鱟鷹鷺鹼鹽鼇齷齲廳欖灣籬籮蠻觀躡釁鑲鑰顱饞髖鬣黌灤矚讚鑷韉驢驥纜讜躪釅鑽鑾鑼鱷鱸黷豔鑿鸚爨驪鬱鸛鸞籲"],["c940","乂乜凵匚厂万丌乇亍囗兀屮彳丏冇与丮亓仂仉仈冘勼卬厹圠夃夬尐巿旡殳毌气爿丱丼仨仜仩仡仝仚刌匜卌圢圣夗夯宁宄尒尻屴屳帄庀庂忉戉扐氕"],["c9a1","氶汃氿氻犮犰玊禸肊阞伎优伬仵伔仱伀价伈伝伂伅伢伓伄仴伒冱刓刉刐劦匢匟卍厊吇囡囟圮圪圴夼妀奼妅奻奾奷奿孖尕尥屼屺屻屾巟幵庄异弚彴忕忔忏扜扞扤扡扦扢扙扠扚扥旯旮朾朹朸朻机朿朼朳氘汆汒汜汏汊汔汋"],["ca40","汌灱牞犴犵玎甪癿穵网艸艼芀艽艿虍襾邙邗邘邛邔阢阤阠阣佖伻佢佉体佤伾佧佒佟佁佘伭伳伿佡冏冹刜刞刡劭劮匉卣卲厎厏吰吷吪呔呅吙吜吥吘"],["caa1","吽呏呁吨吤呇囮囧囥坁坅坌坉坋坒夆奀妦妘妠妗妎妢妐妏妧妡宎宒尨尪岍岏岈岋岉岒岊岆岓岕巠帊帎庋庉庌庈庍弅弝彸彶忒忑忐忭忨忮忳忡忤忣忺忯忷忻怀忴戺抃抌抎抏抔抇扱扻扺扰抁抈扷扽扲扴攷旰旴旳旲旵杅杇"],["cb40","杙杕杌杈杝杍杚杋毐氙氚汸汧汫沄沋沏汱汯汩沚汭沇沕沜汦汳汥汻沎灴灺牣犿犽狃狆狁犺狅玕玗玓玔玒町甹疔疕皁礽耴肕肙肐肒肜芐芏芅芎芑芓"],["cba1","芊芃芄豸迉辿邟邡邥邞邧邠阰阨阯阭丳侘佼侅佽侀侇佶佴侉侄佷佌侗佪侚佹侁佸侐侜侔侞侒侂侕佫佮冞冼冾刵刲刳剆刱劼匊匋匼厒厔咇呿咁咑咂咈呫呺呾呥呬呴呦咍呯呡呠咘呣呧呤囷囹坯坲坭坫坱坰坶垀坵坻坳坴坢"],["cc40","坨坽夌奅妵妺姏姎妲姌姁妶妼姃姖妱妽姀姈妴姇孢孥宓宕屄屇岮岤岠岵岯岨岬岟岣岭岢岪岧岝岥岶岰岦帗帔帙弨弢弣弤彔徂彾彽忞忥怭怦怙怲怋"],["cca1","怴怊怗怳怚怞怬怢怍怐怮怓怑怌怉怜戔戽抭抴拑抾抪抶拊抮抳抯抻抩抰抸攽斨斻昉旼昄昒昈旻昃昋昍昅旽昑昐曶朊枅杬枎枒杶杻枘枆构杴枍枌杺枟枑枙枃杽极杸杹枔欥殀歾毞氝沓泬泫泮泙沶泔沭泧沷泐泂沺泃泆泭泲"],["cd40","泒泝沴沊沝沀泞泀洰泍泇沰泹泏泩泑炔炘炅炓炆炄炑炖炂炚炃牪狖狋狘狉狜狒狔狚狌狑玤玡玭玦玢玠玬玝瓝瓨甿畀甾疌疘皯盳盱盰盵矸矼矹矻矺"],["cda1","矷祂礿秅穸穻竻籵糽耵肏肮肣肸肵肭舠芠苀芫芚芘芛芵芧芮芼芞芺芴芨芡芩苂芤苃芶芢虰虯虭虮豖迒迋迓迍迖迕迗邲邴邯邳邰阹阽阼阺陃俍俅俓侲俉俋俁俔俜俙侻侳俛俇俖侺俀侹俬剄剉勀勂匽卼厗厖厙厘咺咡咭咥哏"],["ce40","哃茍咷咮哖咶哅哆咠呰咼咢咾呲哞咰垵垞垟垤垌垗垝垛垔垘垏垙垥垚垕壴复奓姡姞姮娀姱姝姺姽姼姶姤姲姷姛姩姳姵姠姾姴姭宨屌峐峘峌峗峋峛"],["cea1","峞峚峉峇峊峖峓峔峏峈峆峎峟峸巹帡帢帣帠帤庰庤庢庛庣庥弇弮彖徆怷怹恔恲恞恅恓恇恉恛恌恀恂恟怤恄恘恦恮扂扃拏挍挋拵挎挃拫拹挏挌拸拶挀挓挔拺挕拻拰敁敃斪斿昶昡昲昵昜昦昢昳昫昺昝昴昹昮朏朐柁柲柈枺"],["cf40","柜枻柸柘柀枷柅柫柤柟枵柍枳柷柶柮柣柂枹柎柧柰枲柼柆柭柌枮柦柛柺柉柊柃柪柋欨殂殄殶毖毘毠氠氡洨洴洭洟洼洿洒洊泚洳洄洙洺洚洑洀洝浂"],["cfa1","洁洘洷洃洏浀洇洠洬洈洢洉洐炷炟炾炱炰炡炴炵炩牁牉牊牬牰牳牮狊狤狨狫狟狪狦狣玅珌珂珈珅玹玶玵玴珫玿珇玾珃珆玸珋瓬瓮甮畇畈疧疪癹盄眈眃眄眅眊盷盻盺矧矨砆砑砒砅砐砏砎砉砃砓祊祌祋祅祄秕种秏秖秎窀"],["d040","穾竑笀笁籺籸籹籿粀粁紃紈紁罘羑羍羾耇耎耏耔耷胘胇胠胑胈胂胐胅胣胙胜胊胕胉胏胗胦胍臿舡芔苙苾苹茇苨茀苕茺苫苖苴苬苡苲苵茌苻苶苰苪"],["d0a1","苤苠苺苳苭虷虴虼虳衁衎衧衪衩觓訄訇赲迣迡迮迠郱邽邿郕郅邾郇郋郈釔釓陔陏陑陓陊陎倞倅倇倓倢倰倛俵俴倳倷倬俶俷倗倜倠倧倵倯倱倎党冔冓凊凄凅凈凎剡剚剒剞剟剕剢勍匎厞唦哢唗唒哧哳哤唚哿唄唈哫唑唅哱"],["d140","唊哻哷哸哠唎唃唋圁圂埌堲埕埒垺埆垽垼垸垶垿埇埐垹埁夎奊娙娖娭娮娕娏娗娊娞娳孬宧宭宬尃屖屔峬峿峮峱峷崀峹帩帨庨庮庪庬弳弰彧恝恚恧"],["d1a1","恁悢悈悀悒悁悝悃悕悛悗悇悜悎戙扆拲挐捖挬捄捅挶捃揤挹捋捊挼挩捁挴捘捔捙挭捇挳捚捑挸捗捀捈敊敆旆旃旄旂晊晟晇晑朒朓栟栚桉栲栳栻桋桏栖栱栜栵栫栭栯桎桄栴栝栒栔栦栨栮桍栺栥栠欬欯欭欱欴歭肂殈毦毤"],["d240","毨毣毢毧氥浺浣浤浶洍浡涒浘浢浭浯涑涍淯浿涆浞浧浠涗浰浼浟涂涘洯浨涋浾涀涄洖涃浻浽浵涐烜烓烑烝烋缹烢烗烒烞烠烔烍烅烆烇烚烎烡牂牸"],["d2a1","牷牶猀狺狴狾狶狳狻猁珓珙珥珖玼珧珣珩珜珒珛珔珝珚珗珘珨瓞瓟瓴瓵甡畛畟疰痁疻痄痀疿疶疺皊盉眝眛眐眓眒眣眑眕眙眚眢眧砣砬砢砵砯砨砮砫砡砩砳砪砱祔祛祏祜祓祒祑秫秬秠秮秭秪秜秞秝窆窉窅窋窌窊窇竘笐"],["d340","笄笓笅笏笈笊笎笉笒粄粑粊粌粈粍粅紞紝紑紎紘紖紓紟紒紏紌罜罡罞罠罝罛羖羒翃翂翀耖耾耹胺胲胹胵脁胻脀舁舯舥茳茭荄茙荑茥荖茿荁茦茜茢"],["d3a1","荂荎茛茪茈茼荍茖茤茠茷茯茩荇荅荌荓茞茬荋茧荈虓虒蚢蚨蚖蚍蚑蚞蚇蚗蚆蚋蚚蚅蚥蚙蚡蚧蚕蚘蚎蚝蚐蚔衃衄衭衵衶衲袀衱衿衯袃衾衴衼訒豇豗豻貤貣赶赸趵趷趶軑軓迾迵适迿迻逄迼迶郖郠郙郚郣郟郥郘郛郗郜郤酐"],["d440","酎酏釕釢釚陜陟隼飣髟鬯乿偰偪偡偞偠偓偋偝偲偈偍偁偛偊偢倕偅偟偩偫偣偤偆偀偮偳偗偑凐剫剭剬剮勖勓匭厜啵啶唼啍啐唴唪啑啢唶唵唰啒啅"],["d4a1","唌唲啥啎唹啈唭唻啀啋圊圇埻堔埢埶埜埴堀埭埽堈埸堋埳埏堇埮埣埲埥埬埡堎埼堐埧堁堌埱埩埰堍堄奜婠婘婕婧婞娸娵婭婐婟婥婬婓婤婗婃婝婒婄婛婈媎娾婍娹婌婰婩婇婑婖婂婜孲孮寁寀屙崞崋崝崚崠崌崨崍崦崥崏"],["d540","崰崒崣崟崮帾帴庱庴庹庲庳弶弸徛徖徟悊悐悆悾悰悺惓惔惏惤惙惝惈悱惛悷惊悿惃惍惀挲捥掊掂捽掽掞掭掝掗掫掎捯掇掐据掯捵掜捭掮捼掤挻掟"],["d5a1","捸掅掁掑掍捰敓旍晥晡晛晙晜晢朘桹梇梐梜桭桮梮梫楖桯梣梬梩桵桴梲梏桷梒桼桫桲梪梀桱桾梛梖梋梠梉梤桸桻梑梌梊桽欶欳欷欸殑殏殍殎殌氪淀涫涴涳湴涬淩淢涷淶淔渀淈淠淟淖涾淥淜淝淛淴淊涽淭淰涺淕淂淏淉"],["d640","淐淲淓淽淗淍淣涻烺焍烷焗烴焌烰焄烳焐烼烿焆焓焀烸烶焋焂焎牾牻牼牿猝猗猇猑猘猊猈狿猏猞玈珶珸珵琄琁珽琇琀珺珼珿琌琋珴琈畤畣痎痒痏"],["d6a1","痋痌痑痐皏皉盓眹眯眭眱眲眴眳眽眥眻眵硈硒硉硍硊硌砦硅硐祤祧祩祪祣祫祡离秺秸秶秷窏窔窐笵筇笴笥笰笢笤笳笘笪笝笱笫笭笯笲笸笚笣粔粘粖粣紵紽紸紶紺絅紬紩絁絇紾紿絊紻紨罣羕羜羝羛翊翋翍翐翑翇翏翉耟"],["d740","耞耛聇聃聈脘脥脙脛脭脟脬脞脡脕脧脝脢舑舸舳舺舴舲艴莐莣莨莍荺荳莤荴莏莁莕莙荵莔莩荽莃莌莝莛莪莋荾莥莯莈莗莰荿莦莇莮荶莚虙虖蚿蚷"],["d7a1","蛂蛁蛅蚺蚰蛈蚹蚳蚸蛌蚴蚻蚼蛃蚽蚾衒袉袕袨袢袪袚袑袡袟袘袧袙袛袗袤袬袌袓袎覂觖觙觕訰訧訬訞谹谻豜豝豽貥赽赻赹趼跂趹趿跁軘軞軝軜軗軠軡逤逋逑逜逌逡郯郪郰郴郲郳郔郫郬郩酖酘酚酓酕釬釴釱釳釸釤釹釪"],["d840","釫釷釨釮镺閆閈陼陭陫陱陯隿靪頄飥馗傛傕傔傞傋傣傃傌傎傝偨傜傒傂傇兟凔匒匑厤厧喑喨喥喭啷噅喢喓喈喏喵喁喣喒喤啽喌喦啿喕喡喎圌堩堷"],["d8a1","堙堞堧堣堨埵塈堥堜堛堳堿堶堮堹堸堭堬堻奡媯媔媟婺媢媞婸媦婼媥媬媕媮娷媄媊媗媃媋媩婻婽媌媜媏媓媝寪寍寋寔寑寊寎尌尰崷嵃嵫嵁嵋崿崵嵑嵎嵕崳崺嵒崽崱嵙嵂崹嵉崸崼崲崶嵀嵅幄幁彘徦徥徫惉悹惌惢惎惄愔"],["d940","惲愊愖愅惵愓惸惼惾惁愃愘愝愐惿愄愋扊掔掱掰揎揥揨揯揃撝揳揊揠揶揕揲揵摡揟掾揝揜揄揘揓揂揇揌揋揈揰揗揙攲敧敪敤敜敨敥斌斝斞斮旐旒"],["d9a1","晼晬晻暀晱晹晪晲朁椌棓椄棜椪棬棪棱椏棖棷棫棤棶椓椐棳棡椇棌椈楰梴椑棯棆椔棸棐棽棼棨椋椊椗棎棈棝棞棦棴棑椆棔棩椕椥棇欹欻欿欼殔殗殙殕殽毰毲毳氰淼湆湇渟湉溈渼渽湅湢渫渿湁湝湳渜渳湋湀湑渻渃渮湞"],["da40","湨湜湡渱渨湠湱湫渹渢渰湓湥渧湸湤湷湕湹湒湦渵渶湚焠焞焯烻焮焱焣焥焢焲焟焨焺焛牋牚犈犉犆犅犋猒猋猰猢猱猳猧猲猭猦猣猵猌琮琬琰琫琖"],["daa1","琚琡琭琱琤琣琝琩琠琲瓻甯畯畬痧痚痡痦痝痟痤痗皕皒盚睆睇睄睍睅睊睎睋睌矞矬硠硤硥硜硭硱硪确硰硩硨硞硢祴祳祲祰稂稊稃稌稄窙竦竤筊笻筄筈筌筎筀筘筅粢粞粨粡絘絯絣絓絖絧絪絏絭絜絫絒絔絩絑絟絎缾缿罥"],["db40","罦羢羠羡翗聑聏聐胾胔腃腊腒腏腇脽腍脺臦臮臷臸臹舄舼舽舿艵茻菏菹萣菀菨萒菧菤菼菶萐菆菈菫菣莿萁菝菥菘菿菡菋菎菖菵菉萉萏菞萑萆菂菳"],["dba1","菕菺菇菑菪萓菃菬菮菄菻菗菢萛菛菾蛘蛢蛦蛓蛣蛚蛪蛝蛫蛜蛬蛩蛗蛨蛑衈衖衕袺裗袹袸裀袾袶袼袷袽袲褁裉覕覘覗觝觚觛詎詍訹詙詀詗詘詄詅詒詈詑詊詌詏豟貁貀貺貾貰貹貵趄趀趉跘跓跍跇跖跜跏跕跙跈跗跅軯軷軺"],["dc40","軹軦軮軥軵軧軨軶軫軱軬軴軩逭逴逯鄆鄬鄄郿郼鄈郹郻鄁鄀鄇鄅鄃酡酤酟酢酠鈁鈊鈥鈃鈚鈦鈏鈌鈀鈒釿釽鈆鈄鈧鈂鈜鈤鈙鈗鈅鈖镻閍閌閐隇陾隈"],["dca1","隉隃隀雂雈雃雱雰靬靰靮頇颩飫鳦黹亃亄亶傽傿僆傮僄僊傴僈僂傰僁傺傱僋僉傶傸凗剺剸剻剼嗃嗛嗌嗐嗋嗊嗝嗀嗔嗄嗩喿嗒喍嗏嗕嗢嗖嗈嗲嗍嗙嗂圔塓塨塤塏塍塉塯塕塎塝塙塥塛堽塣塱壼嫇嫄嫋媺媸媱媵媰媿嫈媻嫆"],["dd40","媷嫀嫊媴媶嫍媹媐寖寘寙尟尳嵱嵣嵊嵥嵲嵬嵞嵨嵧嵢巰幏幎幊幍幋廅廌廆廋廇彀徯徭惷慉慊愫慅愶愲愮慆愯慏愩慀戠酨戣戥戤揅揱揫搐搒搉搠搤"],["dda1","搳摃搟搕搘搹搷搢搣搌搦搰搨摁搵搯搊搚摀搥搧搋揧搛搮搡搎敯斒旓暆暌暕暐暋暊暙暔晸朠楦楟椸楎楢楱椿楅楪椹楂楗楙楺楈楉椵楬椳椽楥棰楸椴楩楀楯楄楶楘楁楴楌椻楋椷楜楏楑椲楒椯楻椼歆歅歃歂歈歁殛嗀毻毼"],["de40","毹毷毸溛滖滈溏滀溟溓溔溠溱溹滆滒溽滁溞滉溷溰滍溦滏溲溾滃滜滘溙溒溎溍溤溡溿溳滐滊溗溮溣煇煔煒煣煠煁煝煢煲煸煪煡煂煘煃煋煰煟煐煓"],["dea1","煄煍煚牏犍犌犑犐犎猼獂猻猺獀獊獉瑄瑊瑋瑒瑑瑗瑀瑏瑐瑎瑂瑆瑍瑔瓡瓿瓾瓽甝畹畷榃痯瘏瘃痷痾痼痹痸瘐痻痶痭痵痽皙皵盝睕睟睠睒睖睚睩睧睔睙睭矠碇碚碔碏碄碕碅碆碡碃硹碙碀碖硻祼禂祽祹稑稘稙稒稗稕稢稓"],["df40","稛稐窣窢窞竫筦筤筭筴筩筲筥筳筱筰筡筸筶筣粲粴粯綈綆綀綍絿綅絺綎絻綃絼綌綔綄絽綒罭罫罧罨罬羦羥羧翛翜耡腤腠腷腜腩腛腢腲朡腞腶腧腯"],["dfa1","腄腡舝艉艄艀艂艅蓱萿葖葶葹蒏蒍葥葑葀蒆葧萰葍葽葚葙葴葳葝蔇葞萷萺萴葺葃葸萲葅萩菙葋萯葂萭葟葰萹葎葌葒葯蓅蒎萻葇萶萳葨葾葄萫葠葔葮葐蜋蜄蛷蜌蛺蛖蛵蝍蛸蜎蜉蜁蛶蜍蜅裖裋裍裎裞裛裚裌裐覅覛觟觥觤"],["e040","觡觠觢觜触詶誆詿詡訿詷誂誄詵誃誁詴詺谼豋豊豥豤豦貆貄貅賌赨赩趑趌趎趏趍趓趔趐趒跰跠跬跱跮跐跩跣跢跧跲跫跴輆軿輁輀輅輇輈輂輋遒逿"],["e0a1","遄遉逽鄐鄍鄏鄑鄖鄔鄋鄎酮酯鉈鉒鈰鈺鉦鈳鉥鉞銃鈮鉊鉆鉭鉬鉏鉠鉧鉯鈶鉡鉰鈱鉔鉣鉐鉲鉎鉓鉌鉖鈲閟閜閞閛隒隓隑隗雎雺雽雸雵靳靷靸靲頏頍頎颬飶飹馯馲馰馵骭骫魛鳪鳭鳧麀黽僦僔僗僨僳僛僪僝僤僓僬僰僯僣僠"],["e140","凘劀劁勩勫匰厬嘧嘕嘌嘒嗼嘏嘜嘁嘓嘂嗺嘝嘄嗿嗹墉塼墐墘墆墁塿塴墋塺墇墑墎塶墂墈塻墔墏壾奫嫜嫮嫥嫕嫪嫚嫭嫫嫳嫢嫠嫛嫬嫞嫝嫙嫨嫟孷寠"],["e1a1","寣屣嶂嶀嵽嶆嵺嶁嵷嶊嶉嶈嵾嵼嶍嵹嵿幘幙幓廘廑廗廎廜廕廙廒廔彄彃彯徶愬愨慁慞慱慳慒慓慲慬憀慴慔慺慛慥愻慪慡慖戩戧戫搫摍摛摝摴摶摲摳摽摵摦撦摎撂摞摜摋摓摠摐摿搿摬摫摙摥摷敳斠暡暠暟朅朄朢榱榶槉"],["e240","榠槎榖榰榬榼榑榙榎榧榍榩榾榯榿槄榽榤槔榹槊榚槏榳榓榪榡榞槙榗榐槂榵榥槆歊歍歋殞殟殠毃毄毾滎滵滱漃漥滸漷滻漮漉潎漙漚漧漘漻漒滭漊"],["e2a1","漶潳滹滮漭潀漰漼漵滫漇漎潃漅滽滶漹漜滼漺漟漍漞漈漡熇熐熉熀熅熂熏煻熆熁熗牄牓犗犕犓獃獍獑獌瑢瑳瑱瑵瑲瑧瑮甀甂甃畽疐瘖瘈瘌瘕瘑瘊瘔皸瞁睼瞅瞂睮瞀睯睾瞃碲碪碴碭碨硾碫碞碥碠碬碢碤禘禊禋禖禕禔禓"],["e340","禗禈禒禐稫穊稰稯稨稦窨窫窬竮箈箜箊箑箐箖箍箌箛箎箅箘劄箙箤箂粻粿粼粺綧綷緂綣綪緁緀緅綝緎緄緆緋緌綯綹綖綼綟綦綮綩綡緉罳翢翣翥翞"],["e3a1","耤聝聜膉膆膃膇膍膌膋舕蒗蒤蒡蒟蒺蓎蓂蒬蒮蒫蒹蒴蓁蓍蒪蒚蒱蓐蒝蒧蒻蒢蒔蓇蓌蒛蒩蒯蒨蓖蒘蒶蓏蒠蓗蓔蓒蓛蒰蒑虡蜳蜣蜨蝫蝀蜮蜞蜡蜙蜛蝃蜬蝁蜾蝆蜠蜲蜪蜭蜼蜒蜺蜱蜵蝂蜦蜧蜸蜤蜚蜰蜑裷裧裱裲裺裾裮裼裶裻"],["e440","裰裬裫覝覡覟覞觩觫觨誫誙誋誒誏誖谽豨豩賕賏賗趖踉踂跿踍跽踊踃踇踆踅跾踀踄輐輑輎輍鄣鄜鄠鄢鄟鄝鄚鄤鄡鄛酺酲酹酳銥銤鉶銛鉺銠銔銪銍"],["e4a1","銦銚銫鉹銗鉿銣鋮銎銂銕銢鉽銈銡銊銆銌銙銧鉾銇銩銝銋鈭隞隡雿靘靽靺靾鞃鞀鞂靻鞄鞁靿韎韍頖颭颮餂餀餇馝馜駃馹馻馺駂馽駇骱髣髧鬾鬿魠魡魟鳱鳲鳵麧僿儃儰僸儆儇僶僾儋儌僽儊劋劌勱勯噈噂噌嘵噁噊噉噆噘"],["e540","噚噀嘳嘽嘬嘾嘸嘪嘺圚墫墝墱墠墣墯墬墥墡壿嫿嫴嫽嫷嫶嬃嫸嬂嫹嬁嬇嬅嬏屧嶙嶗嶟嶒嶢嶓嶕嶠嶜嶡嶚嶞幩幝幠幜緳廛廞廡彉徲憋憃慹憱憰憢憉"],["e5a1","憛憓憯憭憟憒憪憡憍慦憳戭摮摰撖撠撅撗撜撏撋撊撌撣撟摨撱撘敶敺敹敻斲斳暵暰暩暲暷暪暯樀樆樗槥槸樕槱槤樠槿槬槢樛樝槾樧槲槮樔槷槧橀樈槦槻樍槼槫樉樄樘樥樏槶樦樇槴樖歑殥殣殢殦氁氀毿氂潁漦潾澇濆澒"],["e640","澍澉澌潢潏澅潚澖潶潬澂潕潲潒潐潗澔澓潝漀潡潫潽潧澐潓澋潩潿澕潣潷潪潻熲熯熛熰熠熚熩熵熝熥熞熤熡熪熜熧熳犘犚獘獒獞獟獠獝獛獡獚獙"],["e6a1","獢璇璉璊璆璁瑽璅璈瑼瑹甈甇畾瘥瘞瘙瘝瘜瘣瘚瘨瘛皜皝皞皛瞍瞏瞉瞈磍碻磏磌磑磎磔磈磃磄磉禚禡禠禜禢禛歶稹窲窴窳箷篋箾箬篎箯箹篊箵糅糈糌糋緷緛緪緧緗緡縃緺緦緶緱緰緮緟罶羬羰羭翭翫翪翬翦翨聤聧膣膟"],["e740","膞膕膢膙膗舖艏艓艒艐艎艑蔤蔻蔏蔀蔩蔎蔉蔍蔟蔊蔧蔜蓻蔫蓺蔈蔌蓴蔪蓲蔕蓷蓫蓳蓼蔒蓪蓩蔖蓾蔨蔝蔮蔂蓽蔞蓶蔱蔦蓧蓨蓰蓯蓹蔘蔠蔰蔋蔙蔯虢"],["e7a1","蝖蝣蝤蝷蟡蝳蝘蝔蝛蝒蝡蝚蝑蝞蝭蝪蝐蝎蝟蝝蝯蝬蝺蝮蝜蝥蝏蝻蝵蝢蝧蝩衚褅褌褔褋褗褘褙褆褖褑褎褉覢覤覣觭觰觬諏諆誸諓諑諔諕誻諗誾諀諅諘諃誺誽諙谾豍貏賥賟賙賨賚賝賧趠趜趡趛踠踣踥踤踮踕踛踖踑踙踦踧"],["e840","踔踒踘踓踜踗踚輬輤輘輚輠輣輖輗遳遰遯遧遫鄯鄫鄩鄪鄲鄦鄮醅醆醊醁醂醄醀鋐鋃鋄鋀鋙銶鋏鋱鋟鋘鋩鋗鋝鋌鋯鋂鋨鋊鋈鋎鋦鋍鋕鋉鋠鋞鋧鋑鋓"],["e8a1","銵鋡鋆銴镼閬閫閮閰隤隢雓霅霈霂靚鞊鞎鞈韐韏頞頝頦頩頨頠頛頧颲餈飺餑餔餖餗餕駜駍駏駓駔駎駉駖駘駋駗駌骳髬髫髳髲髱魆魃魧魴魱魦魶魵魰魨魤魬鳼鳺鳽鳿鳷鴇鴀鳹鳻鴈鴅鴄麃黓鼏鼐儜儓儗儚儑凞匴叡噰噠噮"],["e940","噳噦噣噭噲噞噷圜圛壈墽壉墿墺壂墼壆嬗嬙嬛嬡嬔嬓嬐嬖嬨嬚嬠嬞寯嶬嶱嶩嶧嶵嶰嶮嶪嶨嶲嶭嶯嶴幧幨幦幯廩廧廦廨廥彋徼憝憨憖懅憴懆懁懌憺"],["e9a1","憿憸憌擗擖擐擏擉撽撉擃擛擳擙攳敿敼斢曈暾曀曊曋曏暽暻暺曌朣樴橦橉橧樲橨樾橝橭橶橛橑樨橚樻樿橁橪橤橐橏橔橯橩橠樼橞橖橕橍橎橆歕歔歖殧殪殫毈毇氄氃氆澭濋澣濇澼濎濈潞濄澽澞濊澨瀄澥澮澺澬澪濏澿澸"],["ea40","澢濉澫濍澯澲澰燅燂熿熸燖燀燁燋燔燊燇燏熽燘熼燆燚燛犝犞獩獦獧獬獥獫獪瑿璚璠璔璒璕璡甋疀瘯瘭瘱瘽瘳瘼瘵瘲瘰皻盦瞚瞝瞡瞜瞛瞢瞣瞕瞙"],["eaa1","瞗磝磩磥磪磞磣磛磡磢磭磟磠禤穄穈穇窶窸窵窱窷篞篣篧篝篕篥篚篨篹篔篪篢篜篫篘篟糒糔糗糐糑縒縡縗縌縟縠縓縎縜縕縚縢縋縏縖縍縔縥縤罃罻罼罺羱翯耪耩聬膱膦膮膹膵膫膰膬膴膲膷膧臲艕艖艗蕖蕅蕫蕍蕓蕡蕘"],["eb40","蕀蕆蕤蕁蕢蕄蕑蕇蕣蔾蕛蕱蕎蕮蕵蕕蕧蕠薌蕦蕝蕔蕥蕬虣虥虤螛螏螗螓螒螈螁螖螘蝹螇螣螅螐螑螝螄螔螜螚螉褞褦褰褭褮褧褱褢褩褣褯褬褟觱諠"],["eba1","諢諲諴諵諝謔諤諟諰諈諞諡諨諿諯諻貑貒貐賵賮賱賰賳赬赮趥趧踳踾踸蹀蹅踶踼踽蹁踰踿躽輶輮輵輲輹輷輴遶遹遻邆郺鄳鄵鄶醓醐醑醍醏錧錞錈錟錆錏鍺錸錼錛錣錒錁鍆錭錎錍鋋錝鋺錥錓鋹鋷錴錂錤鋿錩錹錵錪錔錌"],["ec40","錋鋾錉錀鋻錖閼闍閾閹閺閶閿閵閽隩雔霋霒霐鞙鞗鞔韰韸頵頯頲餤餟餧餩馞駮駬駥駤駰駣駪駩駧骹骿骴骻髶髺髹髷鬳鮀鮅鮇魼魾魻鮂鮓鮒鮐魺鮕"],["eca1","魽鮈鴥鴗鴠鴞鴔鴩鴝鴘鴢鴐鴙鴟麈麆麇麮麭黕黖黺鼒鼽儦儥儢儤儠儩勴嚓嚌嚍嚆嚄嚃噾嚂噿嚁壖壔壏壒嬭嬥嬲嬣嬬嬧嬦嬯嬮孻寱寲嶷幬幪徾徻懃憵憼懧懠懥懤懨懞擯擩擣擫擤擨斁斀斶旚曒檍檖檁檥檉檟檛檡檞檇檓檎"],["ed40","檕檃檨檤檑橿檦檚檅檌檒歛殭氉濌澩濴濔濣濜濭濧濦濞濲濝濢濨燡燱燨燲燤燰燢獳獮獯璗璲璫璐璪璭璱璥璯甐甑甒甏疄癃癈癉癇皤盩瞵瞫瞲瞷瞶"],["eda1","瞴瞱瞨矰磳磽礂磻磼磲礅磹磾礄禫禨穜穛穖穘穔穚窾竀竁簅簏篲簀篿篻簎篴簋篳簂簉簃簁篸篽簆篰篱簐簊糨縭縼繂縳顈縸縪繉繀繇縩繌縰縻縶繄縺罅罿罾罽翴翲耬膻臄臌臊臅臇膼臩艛艚艜薃薀薏薧薕薠薋薣蕻薤薚薞"],["ee40","蕷蕼薉薡蕺蕸蕗薎薖薆薍薙薝薁薢薂薈薅蕹蕶薘薐薟虨螾螪螭蟅螰螬螹螵螼螮蟉蟃蟂蟌螷螯蟄蟊螴螶螿螸螽蟞螲褵褳褼褾襁襒褷襂覭覯覮觲觳謞"],["eea1","謘謖謑謅謋謢謏謒謕謇謍謈謆謜謓謚豏豰豲豱豯貕貔賹赯蹎蹍蹓蹐蹌蹇轃轀邅遾鄸醚醢醛醙醟醡醝醠鎡鎃鎯鍤鍖鍇鍼鍘鍜鍶鍉鍐鍑鍠鍭鎏鍌鍪鍹鍗鍕鍒鍏鍱鍷鍻鍡鍞鍣鍧鎀鍎鍙闇闀闉闃闅閷隮隰隬霠霟霘霝霙鞚鞡鞜"],["ef40","鞞鞝韕韔韱顁顄顊顉顅顃餥餫餬餪餳餲餯餭餱餰馘馣馡騂駺駴駷駹駸駶駻駽駾駼騃骾髾髽鬁髼魈鮚鮨鮞鮛鮦鮡鮥鮤鮆鮢鮠鮯鴳鵁鵧鴶鴮鴯鴱鴸鴰"],["efa1","鵅鵂鵃鴾鴷鵀鴽翵鴭麊麉麍麰黈黚黻黿鼤鼣鼢齔龠儱儭儮嚘嚜嚗嚚嚝嚙奰嬼屩屪巀幭幮懘懟懭懮懱懪懰懫懖懩擿攄擽擸攁攃擼斔旛曚曛曘櫅檹檽櫡櫆檺檶檷櫇檴檭歞毉氋瀇瀌瀍瀁瀅瀔瀎濿瀀濻瀦濼濷瀊爁燿燹爃燽獶"],["f040","璸瓀璵瓁璾璶璻瓂甔甓癜癤癙癐癓癗癚皦皽盬矂瞺磿礌礓礔礉礐礒礑禭禬穟簜簩簙簠簟簭簝簦簨簢簥簰繜繐繖繣繘繢繟繑繠繗繓羵羳翷翸聵臑臒"],["f0a1","臐艟艞薴藆藀藃藂薳薵薽藇藄薿藋藎藈藅薱薶藒蘤薸薷薾虩蟧蟦蟢蟛蟫蟪蟥蟟蟳蟤蟔蟜蟓蟭蟘蟣螤蟗蟙蠁蟴蟨蟝襓襋襏襌襆襐襑襉謪謧謣謳謰謵譇謯謼謾謱謥謷謦謶謮謤謻謽謺豂豵貙貘貗賾贄贂贀蹜蹢蹠蹗蹖蹞蹥蹧"],["f140","蹛蹚蹡蹝蹩蹔轆轇轈轋鄨鄺鄻鄾醨醥醧醯醪鎵鎌鎒鎷鎛鎝鎉鎧鎎鎪鎞鎦鎕鎈鎙鎟鎍鎱鎑鎲鎤鎨鎴鎣鎥闒闓闑隳雗雚巂雟雘雝霣霢霥鞬鞮鞨鞫鞤鞪"],["f1a1","鞢鞥韗韙韖韘韺顐顑顒颸饁餼餺騏騋騉騍騄騑騊騅騇騆髀髜鬈鬄鬅鬩鬵魊魌魋鯇鯆鯃鮿鯁鮵鮸鯓鮶鯄鮹鮽鵜鵓鵏鵊鵛鵋鵙鵖鵌鵗鵒鵔鵟鵘鵚麎麌黟鼁鼀鼖鼥鼫鼪鼩鼨齌齕儴儵劖勷厴嚫嚭嚦嚧嚪嚬壚壝壛夒嬽嬾嬿巃幰"],["f240","徿懻攇攐攍攉攌攎斄旞旝曞櫧櫠櫌櫑櫙櫋櫟櫜櫐櫫櫏櫍櫞歠殰氌瀙瀧瀠瀖瀫瀡瀢瀣瀩瀗瀤瀜瀪爌爊爇爂爅犥犦犤犣犡瓋瓅璷瓃甖癠矉矊矄矱礝礛"],["f2a1","礡礜礗礞禰穧穨簳簼簹簬簻糬糪繶繵繸繰繷繯繺繲繴繨罋罊羃羆羷翽翾聸臗臕艤艡艣藫藱藭藙藡藨藚藗藬藲藸藘藟藣藜藑藰藦藯藞藢蠀蟺蠃蟶蟷蠉蠌蠋蠆蟼蠈蟿蠊蠂襢襚襛襗襡襜襘襝襙覈覷覶觶譐譈譊譀譓譖譔譋譕"],["f340","譑譂譒譗豃豷豶貚贆贇贉趬趪趭趫蹭蹸蹳蹪蹯蹻軂轒轑轏轐轓辴酀鄿醰醭鏞鏇鏏鏂鏚鏐鏹鏬鏌鏙鎩鏦鏊鏔鏮鏣鏕鏄鏎鏀鏒鏧镽闚闛雡霩霫霬霨霦"],["f3a1","鞳鞷鞶韝韞韟顜顙顝顗颿颽颻颾饈饇饃馦馧騚騕騥騝騤騛騢騠騧騣騞騜騔髂鬋鬊鬎鬌鬷鯪鯫鯠鯞鯤鯦鯢鯰鯔鯗鯬鯜鯙鯥鯕鯡鯚鵷鶁鶊鶄鶈鵱鶀鵸鶆鶋鶌鵽鵫鵴鵵鵰鵩鶅鵳鵻鶂鵯鵹鵿鶇鵨麔麑黀黼鼭齀齁齍齖齗齘匷嚲"],["f440","嚵嚳壣孅巆巇廮廯忀忁懹攗攖攕攓旟曨曣曤櫳櫰櫪櫨櫹櫱櫮櫯瀼瀵瀯瀷瀴瀱灂瀸瀿瀺瀹灀瀻瀳灁爓爔犨獽獼璺皫皪皾盭矌矎矏矍矲礥礣礧礨礤礩"],["f4a1","禲穮穬穭竷籉籈籊籇籅糮繻繾纁纀羺翿聹臛臙舋艨艩蘢藿蘁藾蘛蘀藶蘄蘉蘅蘌藽蠙蠐蠑蠗蠓蠖襣襦覹觷譠譪譝譨譣譥譧譭趮躆躈躄轙轖轗轕轘轚邍酃酁醷醵醲醳鐋鐓鏻鐠鐏鐔鏾鐕鐐鐨鐙鐍鏵鐀鏷鐇鐎鐖鐒鏺鐉鏸鐊鏿"],["f540","鏼鐌鏶鐑鐆闞闠闟霮霯鞹鞻韽韾顠顢顣顟飁飂饐饎饙饌饋饓騲騴騱騬騪騶騩騮騸騭髇髊髆鬐鬒鬑鰋鰈鯷鰅鰒鯸鱀鰇鰎鰆鰗鰔鰉鶟鶙鶤鶝鶒鶘鶐鶛"],["f5a1","鶠鶔鶜鶪鶗鶡鶚鶢鶨鶞鶣鶿鶩鶖鶦鶧麙麛麚黥黤黧黦鼰鼮齛齠齞齝齙龑儺儹劘劗囃嚽嚾孈孇巋巏廱懽攛欂櫼欃櫸欀灃灄灊灈灉灅灆爝爚爙獾甗癪矐礭礱礯籔籓糲纊纇纈纋纆纍罍羻耰臝蘘蘪蘦蘟蘣蘜蘙蘧蘮蘡蘠蘩蘞蘥"],["f640","蠩蠝蠛蠠蠤蠜蠫衊襭襩襮襫觺譹譸譅譺譻贐贔趯躎躌轞轛轝酆酄酅醹鐿鐻鐶鐩鐽鐼鐰鐹鐪鐷鐬鑀鐱闥闤闣霵霺鞿韡顤飉飆飀饘饖騹騽驆驄驂驁騺"],["f6a1","騿髍鬕鬗鬘鬖鬺魒鰫鰝鰜鰬鰣鰨鰩鰤鰡鶷鶶鶼鷁鷇鷊鷏鶾鷅鷃鶻鶵鷎鶹鶺鶬鷈鶱鶭鷌鶳鷍鶲鹺麜黫黮黭鼛鼘鼚鼱齎齥齤龒亹囆囅囋奱孋孌巕巑廲攡攠攦攢欋欈欉氍灕灖灗灒爞爟犩獿瓘瓕瓙瓗癭皭礵禴穰穱籗籜籙籛籚"],["f740","糴糱纑罏羇臞艫蘴蘵蘳蘬蘲蘶蠬蠨蠦蠪蠥襱覿覾觻譾讄讂讆讅譿贕躕躔躚躒躐躖躗轠轢酇鑌鑐鑊鑋鑏鑇鑅鑈鑉鑆霿韣顪顩飋饔饛驎驓驔驌驏驈驊"],["f7a1","驉驒驐髐鬙鬫鬻魖魕鱆鱈鰿鱄鰹鰳鱁鰼鰷鰴鰲鰽鰶鷛鷒鷞鷚鷋鷐鷜鷑鷟鷩鷙鷘鷖鷵鷕鷝麶黰鼵鼳鼲齂齫龕龢儽劙壨壧奲孍巘蠯彏戁戃戄攩攥斖曫欑欒欏毊灛灚爢玂玁玃癰矔籧籦纕艬蘺虀蘹蘼蘱蘻蘾蠰蠲蠮蠳襶襴襳觾"],["f840","讌讎讋讈豅贙躘轤轣醼鑢鑕鑝鑗鑞韄韅頀驖驙鬞鬟鬠鱒鱘鱐鱊鱍鱋鱕鱙鱌鱎鷻鷷鷯鷣鷫鷸鷤鷶鷡鷮鷦鷲鷰鷢鷬鷴鷳鷨鷭黂黐黲黳鼆鼜鼸鼷鼶齃齏"],["f8a1","齱齰齮齯囓囍孎屭攭曭曮欓灟灡灝灠爣瓛瓥矕礸禷禶籪纗羉艭虃蠸蠷蠵衋讔讕躞躟躠躝醾醽釂鑫鑨鑩雥靆靃靇韇韥驞髕魙鱣鱧鱦鱢鱞鱠鸂鷾鸇鸃鸆鸅鸀鸁鸉鷿鷽鸄麠鼞齆齴齵齶囔攮斸欘欙欗欚灢爦犪矘矙礹籩籫糶纚"],["f940","纘纛纙臠臡虆虇虈襹襺襼襻觿讘讙躥躤躣鑮鑭鑯鑱鑳靉顲饟鱨鱮鱭鸋鸍鸐鸏鸒鸑麡黵鼉齇齸齻齺齹圞灦籯蠼趲躦釃鑴鑸鑶鑵驠鱴鱳鱱鱵鸔鸓黶鼊"],["f9a1","龤灨灥糷虪蠾蠽蠿讞貜躩軉靋顳顴飌饡馫驤驦驧鬤鸕鸗齈戇欞爧虌躨钂钀钁驩驨鬮鸙爩虋讟钃鱹麷癵驫鱺鸝灩灪麤齾齉龘碁銹裏墻恒粧嫺╔╦╗╠╬╣╚╩╝╒╤╕╞╪╡╘╧╛╓╥╖╟╫╢╙╨╜║═╭╮╰╯▓"]];
|
15075 |
|
15076 | }),
|
15077 | ,
|
15078 | ,
|
15079 |
|
15080 | (function(module, __unusedexports, __webpack_require__) {
|
15081 |
|
15082 | "use strict";
|
15083 |
|
15084 |
|
15085 | var common = __webpack_require__(414);
|
15086 | var Type = __webpack_require__(653);
|
15087 |
|
15088 | var YAML_FLOAT_PATTERN = new RegExp(
|
15089 |
|
15090 | '^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?' +
|
15091 |
|
15092 |
|
15093 | '|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?' +
|
15094 |
|
15095 | '|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*' +
|
15096 |
|
15097 | '|[-+]?\\.(?:inf|Inf|INF)' +
|
15098 |
|
15099 | '|\\.(?:nan|NaN|NAN))$');
|
15100 |
|
15101 | function resolveYamlFloat(data) {
|
15102 | if (data === null) return false;
|
15103 |
|
15104 | if (!YAML_FLOAT_PATTERN.test(data) ||
|
15105 |
|
15106 |
|
15107 | data[data.length - 1] === '_') {
|
15108 | return false;
|
15109 | }
|
15110 |
|
15111 | return true;
|
15112 | }
|
15113 |
|
15114 | function constructYamlFloat(data) {
|
15115 | var value, sign, base, digits;
|
15116 |
|
15117 | value = data.replace(/_/g, '').toLowerCase();
|
15118 | sign = value[0] === '-' ? -1 : 1;
|
15119 | digits = [];
|
15120 |
|
15121 | if ('+-'.indexOf(value[0]) >= 0) {
|
15122 | value = value.slice(1);
|
15123 | }
|
15124 |
|
15125 | if (value === '.inf') {
|
15126 | return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
|
15127 |
|
15128 | } else if (value === '.nan') {
|
15129 | return NaN;
|
15130 |
|
15131 | } else if (value.indexOf(':') >= 0) {
|
15132 | value.split(':').forEach(function (v) {
|
15133 | digits.unshift(parseFloat(v, 10));
|
15134 | });
|
15135 |
|
15136 | value = 0.0;
|
15137 | base = 1;
|
15138 |
|
15139 | digits.forEach(function (d) {
|
15140 | value += d * base;
|
15141 | base *= 60;
|
15142 | });
|
15143 |
|
15144 | return sign * value;
|
15145 |
|
15146 | }
|
15147 | return sign * parseFloat(value, 10);
|
15148 | }
|
15149 |
|
15150 |
|
15151 | var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
|
15152 |
|
15153 | function representYamlFloat(object, style) {
|
15154 | var res;
|
15155 |
|
15156 | if (isNaN(object)) {
|
15157 | switch (style) {
|
15158 | case 'lowercase': return '.nan';
|
15159 | case 'uppercase': return '.NAN';
|
15160 | case 'camelcase': return '.NaN';
|
15161 | }
|
15162 | } else if (Number.POSITIVE_INFINITY === object) {
|
15163 | switch (style) {
|
15164 | case 'lowercase': return '.inf';
|
15165 | case 'uppercase': return '.INF';
|
15166 | case 'camelcase': return '.Inf';
|
15167 | }
|
15168 | } else if (Number.NEGATIVE_INFINITY === object) {
|
15169 | switch (style) {
|
15170 | case 'lowercase': return '-.inf';
|
15171 | case 'uppercase': return '-.INF';
|
15172 | case 'camelcase': return '-.Inf';
|
15173 | }
|
15174 | } else if (common.isNegativeZero(object)) {
|
15175 | return '-0.0';
|
15176 | }
|
15177 |
|
15178 | res = object.toString(10);
|
15179 |
|
15180 |
|
15181 |
|
15182 |
|
15183 | return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res;
|
15184 | }
|
15185 |
|
15186 | function isFloat(object) {
|
15187 | return (Object.prototype.toString.call(object) === '[object Number]') &&
|
15188 | (object % 1 !== 0 || common.isNegativeZero(object));
|
15189 | }
|
15190 |
|
15191 | module.exports = new Type('tag:yaml.org,2002:float', {
|
15192 | kind: 'scalar',
|
15193 | resolve: resolveYamlFloat,
|
15194 | construct: constructYamlFloat,
|
15195 | predicate: isFloat,
|
15196 | represent: representYamlFloat,
|
15197 | defaultStyle: 'lowercase'
|
15198 | });
|
15199 |
|
15200 |
|
15201 | }),
|
15202 | ,
|
15203 | ,
|
15204 | ,
|
15205 |
|
15206 | (function(__unusedmodule, exports, __webpack_require__) {
|
15207 |
|
15208 | "use strict";
|
15209 |
|
15210 | exports.parse = __webpack_require__(88)
|
15211 | exports.stringify = __webpack_require__(259)
|
15212 |
|
15213 |
|
15214 | }),
|
15215 |
|
15216 | (function(module, __unusedexports, __webpack_require__) {
|
15217 |
|
15218 | "use strict";
|
15219 |
|
15220 |
|
15221 |
|
15222 |
|
15223 | var common = __webpack_require__(414);
|
15224 | var YAMLException = __webpack_require__(246);
|
15225 | var DEFAULT_FULL_SCHEMA = __webpack_require__(84);
|
15226 | var DEFAULT_SAFE_SCHEMA = __webpack_require__(461);
|
15227 |
|
15228 | var _toString = Object.prototype.toString;
|
15229 | var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
15230 |
|
15231 | var CHAR_TAB = 0x09;
|
15232 | var CHAR_LINE_FEED = 0x0A;
|
15233 | var CHAR_SPACE = 0x20;
|
15234 | var CHAR_EXCLAMATION = 0x21;
|
15235 | var CHAR_DOUBLE_QUOTE = 0x22;
|
15236 | var CHAR_SHARP = 0x23;
|
15237 | var CHAR_PERCENT = 0x25;
|
15238 | var CHAR_AMPERSAND = 0x26;
|
15239 | var CHAR_SINGLE_QUOTE = 0x27;
|
15240 | var CHAR_ASTERISK = 0x2A;
|
15241 | var CHAR_COMMA = 0x2C;
|
15242 | var CHAR_MINUS = 0x2D;
|
15243 | var CHAR_COLON = 0x3A;
|
15244 | var CHAR_GREATER_THAN = 0x3E;
|
15245 | var CHAR_QUESTION = 0x3F;
|
15246 | var CHAR_COMMERCIAL_AT = 0x40;
|
15247 | var CHAR_LEFT_SQUARE_BRACKET = 0x5B;
|
15248 | var CHAR_RIGHT_SQUARE_BRACKET = 0x5D;
|
15249 | var CHAR_GRAVE_ACCENT = 0x60;
|
15250 | var CHAR_LEFT_CURLY_BRACKET = 0x7B;
|
15251 | var CHAR_VERTICAL_LINE = 0x7C;
|
15252 | var CHAR_RIGHT_CURLY_BRACKET = 0x7D;
|
15253 |
|
15254 | var ESCAPE_SEQUENCES = {};
|
15255 |
|
15256 | ESCAPE_SEQUENCES[0x00] = '\\0';
|
15257 | ESCAPE_SEQUENCES[0x07] = '\\a';
|
15258 | ESCAPE_SEQUENCES[0x08] = '\\b';
|
15259 | ESCAPE_SEQUENCES[0x09] = '\\t';
|
15260 | ESCAPE_SEQUENCES[0x0A] = '\\n';
|
15261 | ESCAPE_SEQUENCES[0x0B] = '\\v';
|
15262 | ESCAPE_SEQUENCES[0x0C] = '\\f';
|
15263 | ESCAPE_SEQUENCES[0x0D] = '\\r';
|
15264 | ESCAPE_SEQUENCES[0x1B] = '\\e';
|
15265 | ESCAPE_SEQUENCES[0x22] = '\\"';
|
15266 | ESCAPE_SEQUENCES[0x5C] = '\\\\';
|
15267 | ESCAPE_SEQUENCES[0x85] = '\\N';
|
15268 | ESCAPE_SEQUENCES[0xA0] = '\\_';
|
15269 | ESCAPE_SEQUENCES[0x2028] = '\\L';
|
15270 | ESCAPE_SEQUENCES[0x2029] = '\\P';
|
15271 |
|
15272 | var DEPRECATED_BOOLEANS_SYNTAX = [
|
15273 | 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON',
|
15274 | 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF'
|
15275 | ];
|
15276 |
|
15277 | function compileStyleMap(schema, map) {
|
15278 | var result, keys, index, length, tag, style, type;
|
15279 |
|
15280 | if (map === null) return {};
|
15281 |
|
15282 | result = {};
|
15283 | keys = Object.keys(map);
|
15284 |
|
15285 | for (index = 0, length = keys.length; index < length; index += 1) {
|
15286 | tag = keys[index];
|
15287 | style = String(map[tag]);
|
15288 |
|
15289 | if (tag.slice(0, 2) === '!!') {
|
15290 | tag = 'tag:yaml.org,2002:' + tag.slice(2);
|
15291 | }
|
15292 | type = schema.compiledTypeMap['fallback'][tag];
|
15293 |
|
15294 | if (type && _hasOwnProperty.call(type.styleAliases, style)) {
|
15295 | style = type.styleAliases[style];
|
15296 | }
|
15297 |
|
15298 | result[tag] = style;
|
15299 | }
|
15300 |
|
15301 | return result;
|
15302 | }
|
15303 |
|
15304 | function encodeHex(character) {
|
15305 | var string, handle, length;
|
15306 |
|
15307 | string = character.toString(16).toUpperCase();
|
15308 |
|
15309 | if (character <= 0xFF) {
|
15310 | handle = 'x';
|
15311 | length = 2;
|
15312 | } else if (character <= 0xFFFF) {
|
15313 | handle = 'u';
|
15314 | length = 4;
|
15315 | } else if (character <= 0xFFFFFFFF) {
|
15316 | handle = 'U';
|
15317 | length = 8;
|
15318 | } else {
|
15319 | throw new YAMLException('code point within a string may not be greater than 0xFFFFFFFF');
|
15320 | }
|
15321 |
|
15322 | return '\\' + handle + common.repeat('0', length - string.length) + string;
|
15323 | }
|
15324 |
|
15325 | function State(options) {
|
15326 | this.schema = options['schema'] || DEFAULT_FULL_SCHEMA;
|
15327 | this.indent = Math.max(1, (options['indent'] || 2));
|
15328 | this.noArrayIndent = options['noArrayIndent'] || false;
|
15329 | this.skipInvalid = options['skipInvalid'] || false;
|
15330 | this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']);
|
15331 | this.styleMap = compileStyleMap(this.schema, options['styles'] || null);
|
15332 | this.sortKeys = options['sortKeys'] || false;
|
15333 | this.lineWidth = options['lineWidth'] || 80;
|
15334 | this.noRefs = options['noRefs'] || false;
|
15335 | this.noCompatMode = options['noCompatMode'] || false;
|
15336 | this.condenseFlow = options['condenseFlow'] || false;
|
15337 |
|
15338 | this.implicitTypes = this.schema.compiledImplicit;
|
15339 | this.explicitTypes = this.schema.compiledExplicit;
|
15340 |
|
15341 | this.tag = null;
|
15342 | this.result = '';
|
15343 |
|
15344 | this.duplicates = [];
|
15345 | this.usedDuplicates = null;
|
15346 | }
|
15347 |
|
15348 |
|
15349 | function indentString(string, spaces) {
|
15350 | var ind = common.repeat(' ', spaces),
|
15351 | position = 0,
|
15352 | next = -1,
|
15353 | result = '',
|
15354 | line,
|
15355 | length = string.length;
|
15356 |
|
15357 | while (position < length) {
|
15358 | next = string.indexOf('\n', position);
|
15359 | if (next === -1) {
|
15360 | line = string.slice(position);
|
15361 | position = length;
|
15362 | } else {
|
15363 | line = string.slice(position, next + 1);
|
15364 | position = next + 1;
|
15365 | }
|
15366 |
|
15367 | if (line.length && line !== '\n') result += ind;
|
15368 |
|
15369 | result += line;
|
15370 | }
|
15371 |
|
15372 | return result;
|
15373 | }
|
15374 |
|
15375 | function generateNextLine(state, level) {
|
15376 | return '\n' + common.repeat(' ', state.indent * level);
|
15377 | }
|
15378 |
|
15379 | function testImplicitResolving(state, str) {
|
15380 | var index, length, type;
|
15381 |
|
15382 | for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {
|
15383 | type = state.implicitTypes[index];
|
15384 |
|
15385 | if (type.resolve(str)) {
|
15386 | return true;
|
15387 | }
|
15388 | }
|
15389 |
|
15390 | return false;
|
15391 | }
|
15392 |
|
15393 |
|
15394 | function isWhitespace(c) {
|
15395 | return c === CHAR_SPACE || c === CHAR_TAB;
|
15396 | }
|
15397 |
|
15398 |
|
15399 |
|
15400 |
|
15401 |
|
15402 | function isPrintable(c) {
|
15403 | return (0x00020 <= c && c <= 0x00007E)
|
15404 | || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029)
|
15405 | || ((0x0E000 <= c && c <= 0x00FFFD) && c !== 0xFEFF )
|
15406 | || (0x10000 <= c && c <= 0x10FFFF);
|
15407 | }
|
15408 |
|
15409 |
|
15410 | function isPlainSafe(c) {
|
15411 |
|
15412 |
|
15413 | return isPrintable(c) && c !== 0xFEFF
|
15414 |
|
15415 | && c !== CHAR_COMMA
|
15416 | && c !== CHAR_LEFT_SQUARE_BRACKET
|
15417 | && c !== CHAR_RIGHT_SQUARE_BRACKET
|
15418 | && c !== CHAR_LEFT_CURLY_BRACKET
|
15419 | && c !== CHAR_RIGHT_CURLY_BRACKET
|
15420 |
|
15421 | && c !== CHAR_COLON
|
15422 | && c !== CHAR_SHARP;
|
15423 | }
|
15424 |
|
15425 |
|
15426 | function isPlainSafeFirst(c) {
|
15427 |
|
15428 |
|
15429 | return isPrintable(c) && c !== 0xFEFF
|
15430 | && !isWhitespace(c)
|
15431 |
|
15432 |
|
15433 | && c !== CHAR_MINUS
|
15434 | && c !== CHAR_QUESTION
|
15435 | && c !== CHAR_COLON
|
15436 | && c !== CHAR_COMMA
|
15437 | && c !== CHAR_LEFT_SQUARE_BRACKET
|
15438 | && c !== CHAR_RIGHT_SQUARE_BRACKET
|
15439 | && c !== CHAR_LEFT_CURLY_BRACKET
|
15440 | && c !== CHAR_RIGHT_CURLY_BRACKET
|
15441 |
|
15442 | && c !== CHAR_SHARP
|
15443 | && c !== CHAR_AMPERSAND
|
15444 | && c !== CHAR_ASTERISK
|
15445 | && c !== CHAR_EXCLAMATION
|
15446 | && c !== CHAR_VERTICAL_LINE
|
15447 | && c !== CHAR_GREATER_THAN
|
15448 | && c !== CHAR_SINGLE_QUOTE
|
15449 | && c !== CHAR_DOUBLE_QUOTE
|
15450 |
|
15451 | && c !== CHAR_PERCENT
|
15452 | && c !== CHAR_COMMERCIAL_AT
|
15453 | && c !== CHAR_GRAVE_ACCENT;
|
15454 | }
|
15455 |
|
15456 |
|
15457 | function needIndentIndicator(string) {
|
15458 | var leadingSpaceRe = /^\n* /;
|
15459 | return leadingSpaceRe.test(string);
|
15460 | }
|
15461 |
|
15462 | var STYLE_PLAIN = 1,
|
15463 | STYLE_SINGLE = 2,
|
15464 | STYLE_LITERAL = 3,
|
15465 | STYLE_FOLDED = 4,
|
15466 | STYLE_DOUBLE = 5;
|
15467 |
|
15468 |
|
15469 |
|
15470 |
|
15471 |
|
15472 |
|
15473 |
|
15474 |
|
15475 | function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType) {
|
15476 | var i;
|
15477 | var char;
|
15478 | var hasLineBreak = false;
|
15479 | var hasFoldableLine = false;
|
15480 | var shouldTrackWidth = lineWidth !== -1;
|
15481 | var previousLineBreak = -1;
|
15482 | var plain = isPlainSafeFirst(string.charCodeAt(0))
|
15483 | && !isWhitespace(string.charCodeAt(string.length - 1));
|
15484 |
|
15485 | if (singleLineOnly) {
|
15486 |
|
15487 |
|
15488 | for (i = 0; i < string.length; i++) {
|
15489 | char = string.charCodeAt(i);
|
15490 | if (!isPrintable(char)) {
|
15491 | return STYLE_DOUBLE;
|
15492 | }
|
15493 | plain = plain && isPlainSafe(char);
|
15494 | }
|
15495 | } else {
|
15496 |
|
15497 | for (i = 0; i < string.length; i++) {
|
15498 | char = string.charCodeAt(i);
|
15499 | if (char === CHAR_LINE_FEED) {
|
15500 | hasLineBreak = true;
|
15501 |
|
15502 | if (shouldTrackWidth) {
|
15503 | hasFoldableLine = hasFoldableLine ||
|
15504 |
|
15505 | (i - previousLineBreak - 1 > lineWidth &&
|
15506 | string[previousLineBreak + 1] !== ' ');
|
15507 | previousLineBreak = i;
|
15508 | }
|
15509 | } else if (!isPrintable(char)) {
|
15510 | return STYLE_DOUBLE;
|
15511 | }
|
15512 | plain = plain && isPlainSafe(char);
|
15513 | }
|
15514 |
|
15515 | hasFoldableLine = hasFoldableLine || (shouldTrackWidth &&
|
15516 | (i - previousLineBreak - 1 > lineWidth &&
|
15517 | string[previousLineBreak + 1] !== ' '));
|
15518 | }
|
15519 |
|
15520 |
|
15521 |
|
15522 | if (!hasLineBreak && !hasFoldableLine) {
|
15523 |
|
15524 |
|
15525 | return plain && !testAmbiguousType(string)
|
15526 | ? STYLE_PLAIN : STYLE_SINGLE;
|
15527 | }
|
15528 |
|
15529 | if (indentPerLevel > 9 && needIndentIndicator(string)) {
|
15530 | return STYLE_DOUBLE;
|
15531 | }
|
15532 |
|
15533 |
|
15534 | return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
|
15535 | }
|
15536 |
|
15537 |
|
15538 |
|
15539 |
|
15540 |
|
15541 |
|
15542 |
|
15543 | function writeScalar(state, string, level, iskey) {
|
15544 | state.dump = (function () {
|
15545 | if (string.length === 0) {
|
15546 | return "''";
|
15547 | }
|
15548 | if (!state.noCompatMode &&
|
15549 | DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1) {
|
15550 | return "'" + string + "'";
|
15551 | }
|
15552 |
|
15553 | var indent = state.indent * Math.max(1, level);
|
15554 |
|
15555 |
|
15556 |
|
15557 |
|
15558 |
|
15559 |
|
15560 |
|
15561 | var lineWidth = state.lineWidth === -1
|
15562 | ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
|
15563 |
|
15564 |
|
15565 | var singleLineOnly = iskey
|
15566 |
|
15567 | || (state.flowLevel > -1 && level >= state.flowLevel);
|
15568 | function testAmbiguity(string) {
|
15569 | return testImplicitResolving(state, string);
|
15570 | }
|
15571 |
|
15572 | switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, testAmbiguity)) {
|
15573 | case STYLE_PLAIN:
|
15574 | return string;
|
15575 | case STYLE_SINGLE:
|
15576 | return "'" + string.replace(/'/g, "''") + "'";
|
15577 | case STYLE_LITERAL:
|
15578 | return '|' + blockHeader(string, state.indent)
|
15579 | + dropEndingNewline(indentString(string, indent));
|
15580 | case STYLE_FOLDED:
|
15581 | return '>' + blockHeader(string, state.indent)
|
15582 | + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
|
15583 | case STYLE_DOUBLE:
|
15584 | return '"' + escapeString(string, lineWidth) + '"';
|
15585 | default:
|
15586 | throw new YAMLException('impossible error: invalid scalar style');
|
15587 | }
|
15588 | }());
|
15589 | }
|
15590 |
|
15591 |
|
15592 | function blockHeader(string, indentPerLevel) {
|
15593 | var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : '';
|
15594 |
|
15595 |
|
15596 | var clip = string[string.length - 1] === '\n';
|
15597 | var keep = clip && (string[string.length - 2] === '\n' || string === '\n');
|
15598 | var chomp = keep ? '+' : (clip ? '' : '-');
|
15599 |
|
15600 | return indentIndicator + chomp + '\n';
|
15601 | }
|
15602 |
|
15603 |
|
15604 | function dropEndingNewline(string) {
|
15605 | return string[string.length - 1] === '\n' ? string.slice(0, -1) : string;
|
15606 | }
|
15607 |
|
15608 |
|
15609 |
|
15610 | function foldString(string, width) {
|
15611 |
|
15612 |
|
15613 |
|
15614 |
|
15615 | var lineRe = /(\n+)([^\n]*)/g;
|
15616 |
|
15617 |
|
15618 | var result = (function () {
|
15619 | var nextLF = string.indexOf('\n');
|
15620 | nextLF = nextLF !== -1 ? nextLF : string.length;
|
15621 | lineRe.lastIndex = nextLF;
|
15622 | return foldLine(string.slice(0, nextLF), width);
|
15623 | }());
|
15624 |
|
15625 | var prevMoreIndented = string[0] === '\n' || string[0] === ' ';
|
15626 | var moreIndented;
|
15627 |
|
15628 |
|
15629 | var match;
|
15630 | while ((match = lineRe.exec(string))) {
|
15631 | var prefix = match[1], line = match[2];
|
15632 | moreIndented = (line[0] === ' ');
|
15633 | result += prefix
|
15634 | + (!prevMoreIndented && !moreIndented && line !== ''
|
15635 | ? '\n' : '')
|
15636 | + foldLine(line, width);
|
15637 | prevMoreIndented = moreIndented;
|
15638 | }
|
15639 |
|
15640 | return result;
|
15641 | }
|
15642 |
|
15643 |
|
15644 |
|
15645 |
|
15646 |
|
15647 | function foldLine(line, width) {
|
15648 | if (line === '' || line[0] === ' ') return line;
|
15649 |
|
15650 |
|
15651 | var breakRe = / [^ ]/g;
|
15652 | var match;
|
15653 |
|
15654 | var start = 0, end, curr = 0, next = 0;
|
15655 | var result = '';
|
15656 |
|
15657 |
|
15658 |
|
15659 |
|
15660 |
|
15661 | while ((match = breakRe.exec(line))) {
|
15662 | next = match.index;
|
15663 |
|
15664 | if (next - start > width) {
|
15665 | end = (curr > start) ? curr : next;
|
15666 | result += '\n' + line.slice(start, end);
|
15667 |
|
15668 | start = end + 1;
|
15669 | }
|
15670 | curr = next;
|
15671 | }
|
15672 |
|
15673 |
|
15674 |
|
15675 | result += '\n';
|
15676 |
|
15677 | if (line.length - start > width && curr > start) {
|
15678 | result += line.slice(start, curr) + '\n' + line.slice(curr + 1);
|
15679 | } else {
|
15680 | result += line.slice(start);
|
15681 | }
|
15682 |
|
15683 | return result.slice(1);
|
15684 | }
|
15685 |
|
15686 |
|
15687 | function escapeString(string) {
|
15688 | var result = '';
|
15689 | var char, nextChar;
|
15690 | var escapeSeq;
|
15691 |
|
15692 | for (var i = 0; i < string.length; i++) {
|
15693 | char = string.charCodeAt(i);
|
15694 |
|
15695 | if (char >= 0xD800 && char <= 0xDBFF) {
|
15696 | nextChar = string.charCodeAt(i + 1);
|
15697 | if (nextChar >= 0xDC00 && nextChar <= 0xDFFF) {
|
15698 |
|
15699 | result += encodeHex((char - 0xD800) * 0x400 + nextChar - 0xDC00 + 0x10000);
|
15700 |
|
15701 | i++; continue;
|
15702 | }
|
15703 | }
|
15704 | escapeSeq = ESCAPE_SEQUENCES[char];
|
15705 | result += !escapeSeq && isPrintable(char)
|
15706 | ? string[i]
|
15707 | : escapeSeq || encodeHex(char);
|
15708 | }
|
15709 |
|
15710 | return result;
|
15711 | }
|
15712 |
|
15713 | function writeFlowSequence(state, level, object) {
|
15714 | var _result = '',
|
15715 | _tag = state.tag,
|
15716 | index,
|
15717 | length;
|
15718 |
|
15719 | for (index = 0, length = object.length; index < length; index += 1) {
|
15720 |
|
15721 | if (writeNode(state, level, object[index], false, false)) {
|
15722 | if (index !== 0) _result += ',' + (!state.condenseFlow ? ' ' : '');
|
15723 | _result += state.dump;
|
15724 | }
|
15725 | }
|
15726 |
|
15727 | state.tag = _tag;
|
15728 | state.dump = '[' + _result + ']';
|
15729 | }
|
15730 |
|
15731 | function writeBlockSequence(state, level, object, compact) {
|
15732 | var _result = '',
|
15733 | _tag = state.tag,
|
15734 | index,
|
15735 | length;
|
15736 |
|
15737 | for (index = 0, length = object.length; index < length; index += 1) {
|
15738 |
|
15739 | if (writeNode(state, level + 1, object[index], true, true)) {
|
15740 | if (!compact || index !== 0) {
|
15741 | _result += generateNextLine(state, level);
|
15742 | }
|
15743 |
|
15744 | if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
15745 | _result += '-';
|
15746 | } else {
|
15747 | _result += '- ';
|
15748 | }
|
15749 |
|
15750 | _result += state.dump;
|
15751 | }
|
15752 | }
|
15753 |
|
15754 | state.tag = _tag;
|
15755 | state.dump = _result || '[]';
|
15756 | }
|
15757 |
|
15758 | function writeFlowMapping(state, level, object) {
|
15759 | var _result = '',
|
15760 | _tag = state.tag,
|
15761 | objectKeyList = Object.keys(object),
|
15762 | index,
|
15763 | length,
|
15764 | objectKey,
|
15765 | objectValue,
|
15766 | pairBuffer;
|
15767 |
|
15768 | for (index = 0, length = objectKeyList.length; index < length; index += 1) {
|
15769 | pairBuffer = state.condenseFlow ? '"' : '';
|
15770 |
|
15771 | if (index !== 0) pairBuffer += ', ';
|
15772 |
|
15773 | objectKey = objectKeyList[index];
|
15774 | objectValue = object[objectKey];
|
15775 |
|
15776 | if (!writeNode(state, level, objectKey, false, false)) {
|
15777 | continue;
|
15778 | }
|
15779 |
|
15780 | if (state.dump.length > 1024) pairBuffer += '? ';
|
15781 |
|
15782 | pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' ');
|
15783 |
|
15784 | if (!writeNode(state, level, objectValue, false, false)) {
|
15785 | continue;
|
15786 | }
|
15787 |
|
15788 | pairBuffer += state.dump;
|
15789 |
|
15790 |
|
15791 | _result += pairBuffer;
|
15792 | }
|
15793 |
|
15794 | state.tag = _tag;
|
15795 | state.dump = '{' + _result + '}';
|
15796 | }
|
15797 |
|
15798 | function writeBlockMapping(state, level, object, compact) {
|
15799 | var _result = '',
|
15800 | _tag = state.tag,
|
15801 | objectKeyList = Object.keys(object),
|
15802 | index,
|
15803 | length,
|
15804 | objectKey,
|
15805 | objectValue,
|
15806 | explicitPair,
|
15807 | pairBuffer;
|
15808 |
|
15809 |
|
15810 | if (state.sortKeys === true) {
|
15811 |
|
15812 | objectKeyList.sort();
|
15813 | } else if (typeof state.sortKeys === 'function') {
|
15814 |
|
15815 | objectKeyList.sort(state.sortKeys);
|
15816 | } else if (state.sortKeys) {
|
15817 |
|
15818 | throw new YAMLException('sortKeys must be a boolean or a function');
|
15819 | }
|
15820 |
|
15821 | for (index = 0, length = objectKeyList.length; index < length; index += 1) {
|
15822 | pairBuffer = '';
|
15823 |
|
15824 | if (!compact || index !== 0) {
|
15825 | pairBuffer += generateNextLine(state, level);
|
15826 | }
|
15827 |
|
15828 | objectKey = objectKeyList[index];
|
15829 | objectValue = object[objectKey];
|
15830 |
|
15831 | if (!writeNode(state, level + 1, objectKey, true, true, true)) {
|
15832 | continue;
|
15833 | }
|
15834 |
|
15835 | explicitPair = (state.tag !== null && state.tag !== '?') ||
|
15836 | (state.dump && state.dump.length > 1024);
|
15837 |
|
15838 | if (explicitPair) {
|
15839 | if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
15840 | pairBuffer += '?';
|
15841 | } else {
|
15842 | pairBuffer += '? ';
|
15843 | }
|
15844 | }
|
15845 |
|
15846 | pairBuffer += state.dump;
|
15847 |
|
15848 | if (explicitPair) {
|
15849 | pairBuffer += generateNextLine(state, level);
|
15850 | }
|
15851 |
|
15852 | if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
|
15853 | continue;
|
15854 | }
|
15855 |
|
15856 | if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
15857 | pairBuffer += ':';
|
15858 | } else {
|
15859 | pairBuffer += ': ';
|
15860 | }
|
15861 |
|
15862 | pairBuffer += state.dump;
|
15863 |
|
15864 |
|
15865 | _result += pairBuffer;
|
15866 | }
|
15867 |
|
15868 | state.tag = _tag;
|
15869 | state.dump = _result || '{}';
|
15870 | }
|
15871 |
|
15872 | function detectType(state, object, explicit) {
|
15873 | var _result, typeList, index, length, type, style;
|
15874 |
|
15875 | typeList = explicit ? state.explicitTypes : state.implicitTypes;
|
15876 |
|
15877 | for (index = 0, length = typeList.length; index < length; index += 1) {
|
15878 | type = typeList[index];
|
15879 |
|
15880 | if ((type.instanceOf || type.predicate) &&
|
15881 | (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) &&
|
15882 | (!type.predicate || type.predicate(object))) {
|
15883 |
|
15884 | state.tag = explicit ? type.tag : '?';
|
15885 |
|
15886 | if (type.represent) {
|
15887 | style = state.styleMap[type.tag] || type.defaultStyle;
|
15888 |
|
15889 | if (_toString.call(type.represent) === '[object Function]') {
|
15890 | _result = type.represent(object, style);
|
15891 | } else if (_hasOwnProperty.call(type.represent, style)) {
|
15892 | _result = type.represent[style](object, style);
|
15893 | } else {
|
15894 | throw new YAMLException('!<' + type.tag + '> tag resolver accepts not "' + style + '" style');
|
15895 | }
|
15896 |
|
15897 | state.dump = _result;
|
15898 | }
|
15899 |
|
15900 | return true;
|
15901 | }
|
15902 | }
|
15903 |
|
15904 | return false;
|
15905 | }
|
15906 |
|
15907 |
|
15908 |
|
15909 |
|
15910 | function writeNode(state, level, object, block, compact, iskey) {
|
15911 | state.tag = null;
|
15912 | state.dump = object;
|
15913 |
|
15914 | if (!detectType(state, object, false)) {
|
15915 | detectType(state, object, true);
|
15916 | }
|
15917 |
|
15918 | var type = _toString.call(state.dump);
|
15919 |
|
15920 | if (block) {
|
15921 | block = (state.flowLevel < 0 || state.flowLevel > level);
|
15922 | }
|
15923 |
|
15924 | var objectOrArray = type === '[object Object]' || type === '[object Array]',
|
15925 | duplicateIndex,
|
15926 | duplicate;
|
15927 |
|
15928 | if (objectOrArray) {
|
15929 | duplicateIndex = state.duplicates.indexOf(object);
|
15930 | duplicate = duplicateIndex !== -1;
|
15931 | }
|
15932 |
|
15933 | if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) {
|
15934 | compact = false;
|
15935 | }
|
15936 |
|
15937 | if (duplicate && state.usedDuplicates[duplicateIndex]) {
|
15938 | state.dump = '*ref_' + duplicateIndex;
|
15939 | } else {
|
15940 | if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
|
15941 | state.usedDuplicates[duplicateIndex] = true;
|
15942 | }
|
15943 | if (type === '[object Object]') {
|
15944 | if (block && (Object.keys(state.dump).length !== 0)) {
|
15945 | writeBlockMapping(state, level, state.dump, compact);
|
15946 | if (duplicate) {
|
15947 | state.dump = '&ref_' + duplicateIndex + state.dump;
|
15948 | }
|
15949 | } else {
|
15950 | writeFlowMapping(state, level, state.dump);
|
15951 | if (duplicate) {
|
15952 | state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
|
15953 | }
|
15954 | }
|
15955 | } else if (type === '[object Array]') {
|
15956 | var arrayLevel = (state.noArrayIndent && (level > 0)) ? level - 1 : level;
|
15957 | if (block && (state.dump.length !== 0)) {
|
15958 | writeBlockSequence(state, arrayLevel, state.dump, compact);
|
15959 | if (duplicate) {
|
15960 | state.dump = '&ref_' + duplicateIndex + state.dump;
|
15961 | }
|
15962 | } else {
|
15963 | writeFlowSequence(state, arrayLevel, state.dump);
|
15964 | if (duplicate) {
|
15965 | state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
|
15966 | }
|
15967 | }
|
15968 | } else if (type === '[object String]') {
|
15969 | if (state.tag !== '?') {
|
15970 | writeScalar(state, state.dump, level, iskey);
|
15971 | }
|
15972 | } else {
|
15973 | if (state.skipInvalid) return false;
|
15974 | throw new YAMLException('unacceptable kind of an object to dump ' + type);
|
15975 | }
|
15976 |
|
15977 | if (state.tag !== null && state.tag !== '?') {
|
15978 | state.dump = '!<' + state.tag + '> ' + state.dump;
|
15979 | }
|
15980 | }
|
15981 |
|
15982 | return true;
|
15983 | }
|
15984 |
|
15985 | function getDuplicateReferences(object, state) {
|
15986 | var objects = [],
|
15987 | duplicatesIndexes = [],
|
15988 | index,
|
15989 | length;
|
15990 |
|
15991 | inspectNode(object, objects, duplicatesIndexes);
|
15992 |
|
15993 | for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) {
|
15994 | state.duplicates.push(objects[duplicatesIndexes[index]]);
|
15995 | }
|
15996 | state.usedDuplicates = new Array(length);
|
15997 | }
|
15998 |
|
15999 | function inspectNode(object, objects, duplicatesIndexes) {
|
16000 | var objectKeyList,
|
16001 | index,
|
16002 | length;
|
16003 |
|
16004 | if (object !== null && typeof object === 'object') {
|
16005 | index = objects.indexOf(object);
|
16006 | if (index !== -1) {
|
16007 | if (duplicatesIndexes.indexOf(index) === -1) {
|
16008 | duplicatesIndexes.push(index);
|
16009 | }
|
16010 | } else {
|
16011 | objects.push(object);
|
16012 |
|
16013 | if (Array.isArray(object)) {
|
16014 | for (index = 0, length = object.length; index < length; index += 1) {
|
16015 | inspectNode(object[index], objects, duplicatesIndexes);
|
16016 | }
|
16017 | } else {
|
16018 | objectKeyList = Object.keys(object);
|
16019 |
|
16020 | for (index = 0, length = objectKeyList.length; index < length; index += 1) {
|
16021 | inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);
|
16022 | }
|
16023 | }
|
16024 | }
|
16025 | }
|
16026 | }
|
16027 |
|
16028 | function dump(input, options) {
|
16029 | options = options || {};
|
16030 |
|
16031 | var state = new State(options);
|
16032 |
|
16033 | if (!state.noRefs) getDuplicateReferences(input, state);
|
16034 |
|
16035 | if (writeNode(state, 0, input, true, true)) return state.dump + '\n';
|
16036 |
|
16037 | return '';
|
16038 | }
|
16039 |
|
16040 | function safeDump(input, options) {
|
16041 | return dump(input, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));
|
16042 | }
|
16043 |
|
16044 | module.exports.dump = dump;
|
16045 | module.exports.safeDump = safeDump;
|
16046 |
|
16047 |
|
16048 | }),
|
16049 | ,
|
16050 | ,
|
16051 | ,
|
16052 | ,
|
16053 | ,
|
16054 |
|
16055 | (function(module, __unusedexports, __webpack_require__) {
|
16056 |
|
16057 |
|
16058 |
|
16059 | const cssKeywords = __webpack_require__(188);
|
16060 |
|
16061 |
|
16062 |
|
16063 |
|
16064 |
|
16065 | const reverseKeywords = {};
|
16066 | for (const key of Object.keys(cssKeywords)) {
|
16067 | reverseKeywords[cssKeywords[key]] = key;
|
16068 | }
|
16069 |
|
16070 | const convert = {
|
16071 | rgb: {channels: 3, labels: 'rgb'},
|
16072 | hsl: {channels: 3, labels: 'hsl'},
|
16073 | hsv: {channels: 3, labels: 'hsv'},
|
16074 | hwb: {channels: 3, labels: 'hwb'},
|
16075 | cmyk: {channels: 4, labels: 'cmyk'},
|
16076 | xyz: {channels: 3, labels: 'xyz'},
|
16077 | lab: {channels: 3, labels: 'lab'},
|
16078 | lch: {channels: 3, labels: 'lch'},
|
16079 | hex: {channels: 1, labels: ['hex']},
|
16080 | keyword: {channels: 1, labels: ['keyword']},
|
16081 | ansi16: {channels: 1, labels: ['ansi16']},
|
16082 | ansi256: {channels: 1, labels: ['ansi256']},
|
16083 | hcg: {channels: 3, labels: ['h', 'c', 'g']},
|
16084 | apple: {channels: 3, labels: ['r16', 'g16', 'b16']},
|
16085 | gray: {channels: 1, labels: ['gray']}
|
16086 | };
|
16087 |
|
16088 | module.exports = convert;
|
16089 |
|
16090 |
|
16091 | for (const model of Object.keys(convert)) {
|
16092 | if (!('channels' in convert[model])) {
|
16093 | throw new Error('missing channels property: ' + model);
|
16094 | }
|
16095 |
|
16096 | if (!('labels' in convert[model])) {
|
16097 | throw new Error('missing channel labels property: ' + model);
|
16098 | }
|
16099 |
|
16100 | if (convert[model].labels.length !== convert[model].channels) {
|
16101 | throw new Error('channel and label counts mismatch: ' + model);
|
16102 | }
|
16103 |
|
16104 | const {channels, labels} = convert[model];
|
16105 | delete convert[model].channels;
|
16106 | delete convert[model].labels;
|
16107 | Object.defineProperty(convert[model], 'channels', {value: channels});
|
16108 | Object.defineProperty(convert[model], 'labels', {value: labels});
|
16109 | }
|
16110 |
|
16111 | convert.rgb.hsl = function (rgb) {
|
16112 | const r = rgb[0] / 255;
|
16113 | const g = rgb[1] / 255;
|
16114 | const b = rgb[2] / 255;
|
16115 | const min = Math.min(r, g, b);
|
16116 | const max = Math.max(r, g, b);
|
16117 | const delta = max - min;
|
16118 | let h;
|
16119 | let s;
|
16120 |
|
16121 | if (max === min) {
|
16122 | h = 0;
|
16123 | } else if (r === max) {
|
16124 | h = (g - b) / delta;
|
16125 | } else if (g === max) {
|
16126 | h = 2 + (b - r) / delta;
|
16127 | } else if (b === max) {
|
16128 | h = 4 + (r - g) / delta;
|
16129 | }
|
16130 |
|
16131 | h = Math.min(h * 60, 360);
|
16132 |
|
16133 | if (h < 0) {
|
16134 | h += 360;
|
16135 | }
|
16136 |
|
16137 | const l = (min + max) / 2;
|
16138 |
|
16139 | if (max === min) {
|
16140 | s = 0;
|
16141 | } else if (l <= 0.5) {
|
16142 | s = delta / (max + min);
|
16143 | } else {
|
16144 | s = delta / (2 - max - min);
|
16145 | }
|
16146 |
|
16147 | return [h, s * 100, l * 100];
|
16148 | };
|
16149 |
|
16150 | convert.rgb.hsv = function (rgb) {
|
16151 | let rdif;
|
16152 | let gdif;
|
16153 | let bdif;
|
16154 | let h;
|
16155 | let s;
|
16156 |
|
16157 | const r = rgb[0] / 255;
|
16158 | const g = rgb[1] / 255;
|
16159 | const b = rgb[2] / 255;
|
16160 | const v = Math.max(r, g, b);
|
16161 | const diff = v - Math.min(r, g, b);
|
16162 | const diffc = function (c) {
|
16163 | return (v - c) / 6 / diff + 1 / 2;
|
16164 | };
|
16165 |
|
16166 | if (diff === 0) {
|
16167 | h = 0;
|
16168 | s = 0;
|
16169 | } else {
|
16170 | s = diff / v;
|
16171 | rdif = diffc(r);
|
16172 | gdif = diffc(g);
|
16173 | bdif = diffc(b);
|
16174 |
|
16175 | if (r === v) {
|
16176 | h = bdif - gdif;
|
16177 | } else if (g === v) {
|
16178 | h = (1 / 3) + rdif - bdif;
|
16179 | } else if (b === v) {
|
16180 | h = (2 / 3) + gdif - rdif;
|
16181 | }
|
16182 |
|
16183 | if (h < 0) {
|
16184 | h += 1;
|
16185 | } else if (h > 1) {
|
16186 | h -= 1;
|
16187 | }
|
16188 | }
|
16189 |
|
16190 | return [
|
16191 | h * 360,
|
16192 | s * 100,
|
16193 | v * 100
|
16194 | ];
|
16195 | };
|
16196 |
|
16197 | convert.rgb.hwb = function (rgb) {
|
16198 | const r = rgb[0];
|
16199 | const g = rgb[1];
|
16200 | let b = rgb[2];
|
16201 | const h = convert.rgb.hsl(rgb)[0];
|
16202 | const w = 1 / 255 * Math.min(r, Math.min(g, b));
|
16203 |
|
16204 | b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
|
16205 |
|
16206 | return [h, w * 100, b * 100];
|
16207 | };
|
16208 |
|
16209 | convert.rgb.cmyk = function (rgb) {
|
16210 | const r = rgb[0] / 255;
|
16211 | const g = rgb[1] / 255;
|
16212 | const b = rgb[2] / 255;
|
16213 |
|
16214 | const k = Math.min(1 - r, 1 - g, 1 - b);
|
16215 | const c = (1 - r - k) / (1 - k) || 0;
|
16216 | const m = (1 - g - k) / (1 - k) || 0;
|
16217 | const y = (1 - b - k) / (1 - k) || 0;
|
16218 |
|
16219 | return [c * 100, m * 100, y * 100, k * 100];
|
16220 | };
|
16221 |
|
16222 | function comparativeDistance(x, y) {
|
16223 | |
16224 |
|
16225 |
|
16226 | return (
|
16227 | ((x[0] - y[0]) ** 2) +
|
16228 | ((x[1] - y[1]) ** 2) +
|
16229 | ((x[2] - y[2]) ** 2)
|
16230 | );
|
16231 | }
|
16232 |
|
16233 | convert.rgb.keyword = function (rgb) {
|
16234 | const reversed = reverseKeywords[rgb];
|
16235 | if (reversed) {
|
16236 | return reversed;
|
16237 | }
|
16238 |
|
16239 | let currentClosestDistance = Infinity;
|
16240 | let currentClosestKeyword;
|
16241 |
|
16242 | for (const keyword of Object.keys(cssKeywords)) {
|
16243 | const value = cssKeywords[keyword];
|
16244 |
|
16245 |
|
16246 | const distance = comparativeDistance(rgb, value);
|
16247 |
|
16248 |
|
16249 | if (distance < currentClosestDistance) {
|
16250 | currentClosestDistance = distance;
|
16251 | currentClosestKeyword = keyword;
|
16252 | }
|
16253 | }
|
16254 |
|
16255 | return currentClosestKeyword;
|
16256 | };
|
16257 |
|
16258 | convert.keyword.rgb = function (keyword) {
|
16259 | return cssKeywords[keyword];
|
16260 | };
|
16261 |
|
16262 | convert.rgb.xyz = function (rgb) {
|
16263 | let r = rgb[0] / 255;
|
16264 | let g = rgb[1] / 255;
|
16265 | let b = rgb[2] / 255;
|
16266 |
|
16267 |
|
16268 | r = r > 0.04045 ? (((r + 0.055) / 1.055) ** 2.4) : (r / 12.92);
|
16269 | g = g > 0.04045 ? (((g + 0.055) / 1.055) ** 2.4) : (g / 12.92);
|
16270 | b = b > 0.04045 ? (((b + 0.055) / 1.055) ** 2.4) : (b / 12.92);
|
16271 |
|
16272 | const x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);
|
16273 | const y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);
|
16274 | const z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);
|
16275 |
|
16276 | return [x * 100, y * 100, z * 100];
|
16277 | };
|
16278 |
|
16279 | convert.rgb.lab = function (rgb) {
|
16280 | const xyz = convert.rgb.xyz(rgb);
|
16281 | let x = xyz[0];
|
16282 | let y = xyz[1];
|
16283 | let z = xyz[2];
|
16284 |
|
16285 | x /= 95.047;
|
16286 | y /= 100;
|
16287 | z /= 108.883;
|
16288 |
|
16289 | x = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);
|
16290 | y = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);
|
16291 | z = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);
|
16292 |
|
16293 | const l = (116 * y) - 16;
|
16294 | const a = 500 * (x - y);
|
16295 | const b = 200 * (y - z);
|
16296 |
|
16297 | return [l, a, b];
|
16298 | };
|
16299 |
|
16300 | convert.hsl.rgb = function (hsl) {
|
16301 | const h = hsl[0] / 360;
|
16302 | const s = hsl[1] / 100;
|
16303 | const l = hsl[2] / 100;
|
16304 | let t2;
|
16305 | let t3;
|
16306 | let val;
|
16307 |
|
16308 | if (s === 0) {
|
16309 | val = l * 255;
|
16310 | return [val, val, val];
|
16311 | }
|
16312 |
|
16313 | if (l < 0.5) {
|
16314 | t2 = l * (1 + s);
|
16315 | } else {
|
16316 | t2 = l + s - l * s;
|
16317 | }
|
16318 |
|
16319 | const t1 = 2 * l - t2;
|
16320 |
|
16321 | const rgb = [0, 0, 0];
|
16322 | for (let i = 0; i < 3; i++) {
|
16323 | t3 = h + 1 / 3 * -(i - 1);
|
16324 | if (t3 < 0) {
|
16325 | t3++;
|
16326 | }
|
16327 |
|
16328 | if (t3 > 1) {
|
16329 | t3--;
|
16330 | }
|
16331 |
|
16332 | if (6 * t3 < 1) {
|
16333 | val = t1 + (t2 - t1) * 6 * t3;
|
16334 | } else if (2 * t3 < 1) {
|
16335 | val = t2;
|
16336 | } else if (3 * t3 < 2) {
|
16337 | val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
|
16338 | } else {
|
16339 | val = t1;
|
16340 | }
|
16341 |
|
16342 | rgb[i] = val * 255;
|
16343 | }
|
16344 |
|
16345 | return rgb;
|
16346 | };
|
16347 |
|
16348 | convert.hsl.hsv = function (hsl) {
|
16349 | const h = hsl[0];
|
16350 | let s = hsl[1] / 100;
|
16351 | let l = hsl[2] / 100;
|
16352 | let smin = s;
|
16353 | const lmin = Math.max(l, 0.01);
|
16354 |
|
16355 | l *= 2;
|
16356 | s *= (l <= 1) ? l : 2 - l;
|
16357 | smin *= lmin <= 1 ? lmin : 2 - lmin;
|
16358 | const v = (l + s) / 2;
|
16359 | const sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);
|
16360 |
|
16361 | return [h, sv * 100, v * 100];
|
16362 | };
|
16363 |
|
16364 | convert.hsv.rgb = function (hsv) {
|
16365 | const h = hsv[0] / 60;
|
16366 | const s = hsv[1] / 100;
|
16367 | let v = hsv[2] / 100;
|
16368 | const hi = Math.floor(h) % 6;
|
16369 |
|
16370 | const f = h - Math.floor(h);
|
16371 | const p = 255 * v * (1 - s);
|
16372 | const q = 255 * v * (1 - (s * f));
|
16373 | const t = 255 * v * (1 - (s * (1 - f)));
|
16374 | v *= 255;
|
16375 |
|
16376 | switch (hi) {
|
16377 | case 0:
|
16378 | return [v, t, p];
|
16379 | case 1:
|
16380 | return [q, v, p];
|
16381 | case 2:
|
16382 | return [p, v, t];
|
16383 | case 3:
|
16384 | return [p, q, v];
|
16385 | case 4:
|
16386 | return [t, p, v];
|
16387 | case 5:
|
16388 | return [v, p, q];
|
16389 | }
|
16390 | };
|
16391 |
|
16392 | convert.hsv.hsl = function (hsv) {
|
16393 | const h = hsv[0];
|
16394 | const s = hsv[1] / 100;
|
16395 | const v = hsv[2] / 100;
|
16396 | const vmin = Math.max(v, 0.01);
|
16397 | let sl;
|
16398 | let l;
|
16399 |
|
16400 | l = (2 - s) * v;
|
16401 | const lmin = (2 - s) * vmin;
|
16402 | sl = s * vmin;
|
16403 | sl /= (lmin <= 1) ? lmin : 2 - lmin;
|
16404 | sl = sl || 0;
|
16405 | l /= 2;
|
16406 |
|
16407 | return [h, sl * 100, l * 100];
|
16408 | };
|
16409 |
|
16410 |
|
16411 | convert.hwb.rgb = function (hwb) {
|
16412 | const h = hwb[0] / 360;
|
16413 | let wh = hwb[1] / 100;
|
16414 | let bl = hwb[2] / 100;
|
16415 | const ratio = wh + bl;
|
16416 | let f;
|
16417 |
|
16418 |
|
16419 | if (ratio > 1) {
|
16420 | wh /= ratio;
|
16421 | bl /= ratio;
|
16422 | }
|
16423 |
|
16424 | const i = Math.floor(6 * h);
|
16425 | const v = 1 - bl;
|
16426 | f = 6 * h - i;
|
16427 |
|
16428 | if ((i & 0x01) !== 0) {
|
16429 | f = 1 - f;
|
16430 | }
|
16431 |
|
16432 | const n = wh + f * (v - wh);
|
16433 |
|
16434 | let r;
|
16435 | let g;
|
16436 | let b;
|
16437 |
|
16438 | switch (i) {
|
16439 | default:
|
16440 | case 6:
|
16441 | case 0: r = v; g = n; b = wh; break;
|
16442 | case 1: r = n; g = v; b = wh; break;
|
16443 | case 2: r = wh; g = v; b = n; break;
|
16444 | case 3: r = wh; g = n; b = v; break;
|
16445 | case 4: r = n; g = wh; b = v; break;
|
16446 | case 5: r = v; g = wh; b = n; break;
|
16447 | }
|
16448 |
|
16449 |
|
16450 | return [r * 255, g * 255, b * 255];
|
16451 | };
|
16452 |
|
16453 | convert.cmyk.rgb = function (cmyk) {
|
16454 | const c = cmyk[0] / 100;
|
16455 | const m = cmyk[1] / 100;
|
16456 | const y = cmyk[2] / 100;
|
16457 | const k = cmyk[3] / 100;
|
16458 |
|
16459 | const r = 1 - Math.min(1, c * (1 - k) + k);
|
16460 | const g = 1 - Math.min(1, m * (1 - k) + k);
|
16461 | const b = 1 - Math.min(1, y * (1 - k) + k);
|
16462 |
|
16463 | return [r * 255, g * 255, b * 255];
|
16464 | };
|
16465 |
|
16466 | convert.xyz.rgb = function (xyz) {
|
16467 | const x = xyz[0] / 100;
|
16468 | const y = xyz[1] / 100;
|
16469 | const z = xyz[2] / 100;
|
16470 | let r;
|
16471 | let g;
|
16472 | let b;
|
16473 |
|
16474 | r = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);
|
16475 | g = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);
|
16476 | b = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);
|
16477 |
|
16478 |
|
16479 | r = r > 0.0031308
|
16480 | ? ((1.055 * (r ** (1.0 / 2.4))) - 0.055)
|
16481 | : r * 12.92;
|
16482 |
|
16483 | g = g > 0.0031308
|
16484 | ? ((1.055 * (g ** (1.0 / 2.4))) - 0.055)
|
16485 | : g * 12.92;
|
16486 |
|
16487 | b = b > 0.0031308
|
16488 | ? ((1.055 * (b ** (1.0 / 2.4))) - 0.055)
|
16489 | : b * 12.92;
|
16490 |
|
16491 | r = Math.min(Math.max(0, r), 1);
|
16492 | g = Math.min(Math.max(0, g), 1);
|
16493 | b = Math.min(Math.max(0, b), 1);
|
16494 |
|
16495 | return [r * 255, g * 255, b * 255];
|
16496 | };
|
16497 |
|
16498 | convert.xyz.lab = function (xyz) {
|
16499 | let x = xyz[0];
|
16500 | let y = xyz[1];
|
16501 | let z = xyz[2];
|
16502 |
|
16503 | x /= 95.047;
|
16504 | y /= 100;
|
16505 | z /= 108.883;
|
16506 |
|
16507 | x = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);
|
16508 | y = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);
|
16509 | z = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);
|
16510 |
|
16511 | const l = (116 * y) - 16;
|
16512 | const a = 500 * (x - y);
|
16513 | const b = 200 * (y - z);
|
16514 |
|
16515 | return [l, a, b];
|
16516 | };
|
16517 |
|
16518 | convert.lab.xyz = function (lab) {
|
16519 | const l = lab[0];
|
16520 | const a = lab[1];
|
16521 | const b = lab[2];
|
16522 | let x;
|
16523 | let y;
|
16524 | let z;
|
16525 |
|
16526 | y = (l + 16) / 116;
|
16527 | x = a / 500 + y;
|
16528 | z = y - b / 200;
|
16529 |
|
16530 | const y2 = y ** 3;
|
16531 | const x2 = x ** 3;
|
16532 | const z2 = z ** 3;
|
16533 | y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;
|
16534 | x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;
|
16535 | z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;
|
16536 |
|
16537 | x *= 95.047;
|
16538 | y *= 100;
|
16539 | z *= 108.883;
|
16540 |
|
16541 | return [x, y, z];
|
16542 | };
|
16543 |
|
16544 | convert.lab.lch = function (lab) {
|
16545 | const l = lab[0];
|
16546 | const a = lab[1];
|
16547 | const b = lab[2];
|
16548 | let h;
|
16549 |
|
16550 | const hr = Math.atan2(b, a);
|
16551 | h = hr * 360 / 2 / Math.PI;
|
16552 |
|
16553 | if (h < 0) {
|
16554 | h += 360;
|
16555 | }
|
16556 |
|
16557 | const c = Math.sqrt(a * a + b * b);
|
16558 |
|
16559 | return [l, c, h];
|
16560 | };
|
16561 |
|
16562 | convert.lch.lab = function (lch) {
|
16563 | const l = lch[0];
|
16564 | const c = lch[1];
|
16565 | const h = lch[2];
|
16566 |
|
16567 | const hr = h / 360 * 2 * Math.PI;
|
16568 | const a = c * Math.cos(hr);
|
16569 | const b = c * Math.sin(hr);
|
16570 |
|
16571 | return [l, a, b];
|
16572 | };
|
16573 |
|
16574 | convert.rgb.ansi16 = function (args, saturation = null) {
|
16575 | const [r, g, b] = args;
|
16576 | let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation;
|
16577 |
|
16578 | value = Math.round(value / 50);
|
16579 |
|
16580 | if (value === 0) {
|
16581 | return 30;
|
16582 | }
|
16583 |
|
16584 | let ansi = 30
|
16585 | + ((Math.round(b / 255) << 2)
|
16586 | | (Math.round(g / 255) << 1)
|
16587 | | Math.round(r / 255));
|
16588 |
|
16589 | if (value === 2) {
|
16590 | ansi += 60;
|
16591 | }
|
16592 |
|
16593 | return ansi;
|
16594 | };
|
16595 |
|
16596 | convert.hsv.ansi16 = function (args) {
|
16597 |
|
16598 |
|
16599 | return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
|
16600 | };
|
16601 |
|
16602 | convert.rgb.ansi256 = function (args) {
|
16603 | const r = args[0];
|
16604 | const g = args[1];
|
16605 | const b = args[2];
|
16606 |
|
16607 |
|
16608 |
|
16609 | if (r === g && g === b) {
|
16610 | if (r < 8) {
|
16611 | return 16;
|
16612 | }
|
16613 |
|
16614 | if (r > 248) {
|
16615 | return 231;
|
16616 | }
|
16617 |
|
16618 | return Math.round(((r - 8) / 247) * 24) + 232;
|
16619 | }
|
16620 |
|
16621 | const ansi = 16
|
16622 | + (36 * Math.round(r / 255 * 5))
|
16623 | + (6 * Math.round(g / 255 * 5))
|
16624 | + Math.round(b / 255 * 5);
|
16625 |
|
16626 | return ansi;
|
16627 | };
|
16628 |
|
16629 | convert.ansi16.rgb = function (args) {
|
16630 | let color = args % 10;
|
16631 |
|
16632 |
|
16633 | if (color === 0 || color === 7) {
|
16634 | if (args > 50) {
|
16635 | color += 3.5;
|
16636 | }
|
16637 |
|
16638 | color = color / 10.5 * 255;
|
16639 |
|
16640 | return [color, color, color];
|
16641 | }
|
16642 |
|
16643 | const mult = (~~(args > 50) + 1) * 0.5;
|
16644 | const r = ((color & 1) * mult) * 255;
|
16645 | const g = (((color >> 1) & 1) * mult) * 255;
|
16646 | const b = (((color >> 2) & 1) * mult) * 255;
|
16647 |
|
16648 | return [r, g, b];
|
16649 | };
|
16650 |
|
16651 | convert.ansi256.rgb = function (args) {
|
16652 |
|
16653 | if (args >= 232) {
|
16654 | const c = (args - 232) * 10 + 8;
|
16655 | return [c, c, c];
|
16656 | }
|
16657 |
|
16658 | args -= 16;
|
16659 |
|
16660 | let rem;
|
16661 | const r = Math.floor(args / 36) / 5 * 255;
|
16662 | const g = Math.floor((rem = args % 36) / 6) / 5 * 255;
|
16663 | const b = (rem % 6) / 5 * 255;
|
16664 |
|
16665 | return [r, g, b];
|
16666 | };
|
16667 |
|
16668 | convert.rgb.hex = function (args) {
|
16669 | const integer = ((Math.round(args[0]) & 0xFF) << 16)
|
16670 | + ((Math.round(args[1]) & 0xFF) << 8)
|
16671 | + (Math.round(args[2]) & 0xFF);
|
16672 |
|
16673 | const string = integer.toString(16).toUpperCase();
|
16674 | return '000000'.substring(string.length) + string;
|
16675 | };
|
16676 |
|
16677 | convert.hex.rgb = function (args) {
|
16678 | const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
|
16679 | if (!match) {
|
16680 | return [0, 0, 0];
|
16681 | }
|
16682 |
|
16683 | let colorString = match[0];
|
16684 |
|
16685 | if (match[0].length === 3) {
|
16686 | colorString = colorString.split('').map(char => {
|
16687 | return char + char;
|
16688 | }).join('');
|
16689 | }
|
16690 |
|
16691 | const integer = parseInt(colorString, 16);
|
16692 | const r = (integer >> 16) & 0xFF;
|
16693 | const g = (integer >> 8) & 0xFF;
|
16694 | const b = integer & 0xFF;
|
16695 |
|
16696 | return [r, g, b];
|
16697 | };
|
16698 |
|
16699 | convert.rgb.hcg = function (rgb) {
|
16700 | const r = rgb[0] / 255;
|
16701 | const g = rgb[1] / 255;
|
16702 | const b = rgb[2] / 255;
|
16703 | const max = Math.max(Math.max(r, g), b);
|
16704 | const min = Math.min(Math.min(r, g), b);
|
16705 | const chroma = (max - min);
|
16706 | let grayscale;
|
16707 | let hue;
|
16708 |
|
16709 | if (chroma < 1) {
|
16710 | grayscale = min / (1 - chroma);
|
16711 | } else {
|
16712 | grayscale = 0;
|
16713 | }
|
16714 |
|
16715 | if (chroma <= 0) {
|
16716 | hue = 0;
|
16717 | } else
|
16718 | if (max === r) {
|
16719 | hue = ((g - b) / chroma) % 6;
|
16720 | } else
|
16721 | if (max === g) {
|
16722 | hue = 2 + (b - r) / chroma;
|
16723 | } else {
|
16724 | hue = 4 + (r - g) / chroma;
|
16725 | }
|
16726 |
|
16727 | hue /= 6;
|
16728 | hue %= 1;
|
16729 |
|
16730 | return [hue * 360, chroma * 100, grayscale * 100];
|
16731 | };
|
16732 |
|
16733 | convert.hsl.hcg = function (hsl) {
|
16734 | const s = hsl[1] / 100;
|
16735 | const l = hsl[2] / 100;
|
16736 |
|
16737 | const c = l < 0.5 ? (2.0 * s * l) : (2.0 * s * (1.0 - l));
|
16738 |
|
16739 | let f = 0;
|
16740 | if (c < 1.0) {
|
16741 | f = (l - 0.5 * c) / (1.0 - c);
|
16742 | }
|
16743 |
|
16744 | return [hsl[0], c * 100, f * 100];
|
16745 | };
|
16746 |
|
16747 | convert.hsv.hcg = function (hsv) {
|
16748 | const s = hsv[1] / 100;
|
16749 | const v = hsv[2] / 100;
|
16750 |
|
16751 | const c = s * v;
|
16752 | let f = 0;
|
16753 |
|
16754 | if (c < 1.0) {
|
16755 | f = (v - c) / (1 - c);
|
16756 | }
|
16757 |
|
16758 | return [hsv[0], c * 100, f * 100];
|
16759 | };
|
16760 |
|
16761 | convert.hcg.rgb = function (hcg) {
|
16762 | const h = hcg[0] / 360;
|
16763 | const c = hcg[1] / 100;
|
16764 | const g = hcg[2] / 100;
|
16765 |
|
16766 | if (c === 0.0) {
|
16767 | return [g * 255, g * 255, g * 255];
|
16768 | }
|
16769 |
|
16770 | const pure = [0, 0, 0];
|
16771 | const hi = (h % 1) * 6;
|
16772 | const v = hi % 1;
|
16773 | const w = 1 - v;
|
16774 | let mg = 0;
|
16775 |
|
16776 |
|
16777 | switch (Math.floor(hi)) {
|
16778 | case 0:
|
16779 | pure[0] = 1; pure[1] = v; pure[2] = 0; break;
|
16780 | case 1:
|
16781 | pure[0] = w; pure[1] = 1; pure[2] = 0; break;
|
16782 | case 2:
|
16783 | pure[0] = 0; pure[1] = 1; pure[2] = v; break;
|
16784 | case 3:
|
16785 | pure[0] = 0; pure[1] = w; pure[2] = 1; break;
|
16786 | case 4:
|
16787 | pure[0] = v; pure[1] = 0; pure[2] = 1; break;
|
16788 | default:
|
16789 | pure[0] = 1; pure[1] = 0; pure[2] = w;
|
16790 | }
|
16791 |
|
16792 |
|
16793 | mg = (1.0 - c) * g;
|
16794 |
|
16795 | return [
|
16796 | (c * pure[0] + mg) * 255,
|
16797 | (c * pure[1] + mg) * 255,
|
16798 | (c * pure[2] + mg) * 255
|
16799 | ];
|
16800 | };
|
16801 |
|
16802 | convert.hcg.hsv = function (hcg) {
|
16803 | const c = hcg[1] / 100;
|
16804 | const g = hcg[2] / 100;
|
16805 |
|
16806 | const v = c + g * (1.0 - c);
|
16807 | let f = 0;
|
16808 |
|
16809 | if (v > 0.0) {
|
16810 | f = c / v;
|
16811 | }
|
16812 |
|
16813 | return [hcg[0], f * 100, v * 100];
|
16814 | };
|
16815 |
|
16816 | convert.hcg.hsl = function (hcg) {
|
16817 | const c = hcg[1] / 100;
|
16818 | const g = hcg[2] / 100;
|
16819 |
|
16820 | const l = g * (1.0 - c) + 0.5 * c;
|
16821 | let s = 0;
|
16822 |
|
16823 | if (l > 0.0 && l < 0.5) {
|
16824 | s = c / (2 * l);
|
16825 | } else
|
16826 | if (l >= 0.5 && l < 1.0) {
|
16827 | s = c / (2 * (1 - l));
|
16828 | }
|
16829 |
|
16830 | return [hcg[0], s * 100, l * 100];
|
16831 | };
|
16832 |
|
16833 | convert.hcg.hwb = function (hcg) {
|
16834 | const c = hcg[1] / 100;
|
16835 | const g = hcg[2] / 100;
|
16836 | const v = c + g * (1.0 - c);
|
16837 | return [hcg[0], (v - c) * 100, (1 - v) * 100];
|
16838 | };
|
16839 |
|
16840 | convert.hwb.hcg = function (hwb) {
|
16841 | const w = hwb[1] / 100;
|
16842 | const b = hwb[2] / 100;
|
16843 | const v = 1 - b;
|
16844 | const c = v - w;
|
16845 | let g = 0;
|
16846 |
|
16847 | if (c < 1) {
|
16848 | g = (v - c) / (1 - c);
|
16849 | }
|
16850 |
|
16851 | return [hwb[0], c * 100, g * 100];
|
16852 | };
|
16853 |
|
16854 | convert.apple.rgb = function (apple) {
|
16855 | return [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];
|
16856 | };
|
16857 |
|
16858 | convert.rgb.apple = function (rgb) {
|
16859 | return [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];
|
16860 | };
|
16861 |
|
16862 | convert.gray.rgb = function (args) {
|
16863 | return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
|
16864 | };
|
16865 |
|
16866 | convert.gray.hsl = function (args) {
|
16867 | return [0, 0, args[0]];
|
16868 | };
|
16869 |
|
16870 | convert.gray.hsv = convert.gray.hsl;
|
16871 |
|
16872 | convert.gray.hwb = function (gray) {
|
16873 | return [0, 100, gray[0]];
|
16874 | };
|
16875 |
|
16876 | convert.gray.cmyk = function (gray) {
|
16877 | return [0, 0, 0, gray[0]];
|
16878 | };
|
16879 |
|
16880 | convert.gray.lab = function (gray) {
|
16881 | return [gray[0], 0, 0];
|
16882 | };
|
16883 |
|
16884 | convert.gray.hex = function (gray) {
|
16885 | const val = Math.round(gray[0] / 100 * 255) & 0xFF;
|
16886 | const integer = (val << 16) + (val << 8) + val;
|
16887 |
|
16888 | const string = integer.toString(16).toUpperCase();
|
16889 | return '000000'.substring(string.length) + string;
|
16890 | };
|
16891 |
|
16892 | convert.rgb.gray = function (rgb) {
|
16893 | const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
|
16894 | return [val / 255 * 100];
|
16895 | };
|
16896 |
|
16897 |
|
16898 | }),
|
16899 |
|
16900 | (function(module, __unusedexports, __webpack_require__) {
|
16901 |
|
16902 | "use strict";
|
16903 |
|
16904 | module.exports = parseStream
|
16905 |
|
16906 | const stream = __webpack_require__(413)
|
16907 | const TOMLParser = __webpack_require__(882)
|
16908 |
|
16909 | function parseStream (stm) {
|
16910 | if (stm) {
|
16911 | return parseReadable(stm)
|
16912 | } else {
|
16913 | return parseTransform(stm)
|
16914 | }
|
16915 | }
|
16916 |
|
16917 | function parseReadable (stm) {
|
16918 | const parser = new TOMLParser()
|
16919 | stm.setEncoding('utf8')
|
16920 | return new Promise((resolve, reject) => {
|
16921 | let readable
|
16922 | let ended = false
|
16923 | let errored = false
|
16924 | function finish () {
|
16925 | ended = true
|
16926 | if (readable) return
|
16927 | try {
|
16928 | resolve(parser.finish())
|
16929 | } catch (err) {
|
16930 | reject(err)
|
16931 | }
|
16932 | }
|
16933 | function error (err) {
|
16934 | errored = true
|
16935 | reject(err)
|
16936 | }
|
16937 | stm.once('end', finish)
|
16938 | stm.once('error', error)
|
16939 | readNext()
|
16940 |
|
16941 | function readNext () {
|
16942 | readable = true
|
16943 | let data
|
16944 | while ((data = stm.read()) !== null) {
|
16945 | try {
|
16946 | parser.parse(data)
|
16947 | } catch (err) {
|
16948 | return error(err)
|
16949 | }
|
16950 | }
|
16951 | readable = false
|
16952 |
|
16953 | if (ended) return finish()
|
16954 |
|
16955 | if (errored) return
|
16956 | stm.once('readable', readNext)
|
16957 | }
|
16958 | })
|
16959 | }
|
16960 |
|
16961 | function parseTransform () {
|
16962 | const parser = new TOMLParser()
|
16963 | return new stream.Transform({
|
16964 | objectMode: true,
|
16965 | transform (chunk, encoding, cb) {
|
16966 | try {
|
16967 | parser.parse(chunk.toString(encoding))
|
16968 | } catch (err) {
|
16969 | this.emit('error', err)
|
16970 | }
|
16971 | cb()
|
16972 | },
|
16973 | flush (cb) {
|
16974 | try {
|
16975 | this.push(parser.finish())
|
16976 | } catch (err) {
|
16977 | this.emit('error', err)
|
16978 | }
|
16979 | cb()
|
16980 | }
|
16981 | })
|
16982 | }
|
16983 |
|
16984 |
|
16985 | }),
|
16986 | ,
|
16987 | ,
|
16988 |
|
16989 | (function(module) {
|
16990 |
|
16991 | function RetryOperation(timeouts, options) {
|
16992 |
|
16993 | if (typeof options === 'boolean') {
|
16994 | options = { forever: options };
|
16995 | }
|
16996 |
|
16997 | this._originalTimeouts = JSON.parse(JSON.stringify(timeouts));
|
16998 | this._timeouts = timeouts;
|
16999 | this._options = options || {};
|
17000 | this._maxRetryTime = options && options.maxRetryTime || Infinity;
|
17001 | this._fn = null;
|
17002 | this._errors = [];
|
17003 | this._attempts = 1;
|
17004 | this._operationTimeout = null;
|
17005 | this._operationTimeoutCb = null;
|
17006 | this._timeout = null;
|
17007 | this._operationStart = null;
|
17008 |
|
17009 | if (this._options.forever) {
|
17010 | this._cachedTimeouts = this._timeouts.slice(0);
|
17011 | }
|
17012 | }
|
17013 | module.exports = RetryOperation;
|
17014 |
|
17015 | RetryOperation.prototype.reset = function() {
|
17016 | this._attempts = 1;
|
17017 | this._timeouts = this._originalTimeouts;
|
17018 | }
|
17019 |
|
17020 | RetryOperation.prototype.stop = function() {
|
17021 | if (this._timeout) {
|
17022 | clearTimeout(this._timeout);
|
17023 | }
|
17024 |
|
17025 | this._timeouts = [];
|
17026 | this._cachedTimeouts = null;
|
17027 | };
|
17028 |
|
17029 | RetryOperation.prototype.retry = function(err) {
|
17030 | if (this._timeout) {
|
17031 | clearTimeout(this._timeout);
|
17032 | }
|
17033 |
|
17034 | if (!err) {
|
17035 | return false;
|
17036 | }
|
17037 | var currentTime = new Date().getTime();
|
17038 | if (err && currentTime - this._operationStart >= this._maxRetryTime) {
|
17039 | this._errors.unshift(new Error('RetryOperation timeout occurred'));
|
17040 | return false;
|
17041 | }
|
17042 |
|
17043 | this._errors.push(err);
|
17044 |
|
17045 | var timeout = this._timeouts.shift();
|
17046 | if (timeout === undefined) {
|
17047 | if (this._cachedTimeouts) {
|
17048 |
|
17049 | this._errors.splice(this._errors.length - 1, this._errors.length);
|
17050 | this._timeouts = this._cachedTimeouts.slice(0);
|
17051 | timeout = this._timeouts.shift();
|
17052 | } else {
|
17053 | return false;
|
17054 | }
|
17055 | }
|
17056 |
|
17057 | var self = this;
|
17058 | var timer = setTimeout(function() {
|
17059 | self._attempts++;
|
17060 |
|
17061 | if (self._operationTimeoutCb) {
|
17062 | self._timeout = setTimeout(function() {
|
17063 | self._operationTimeoutCb(self._attempts);
|
17064 | }, self._operationTimeout);
|
17065 |
|
17066 | if (self._options.unref) {
|
17067 | self._timeout.unref();
|
17068 | }
|
17069 | }
|
17070 |
|
17071 | self._fn(self._attempts);
|
17072 | }, timeout);
|
17073 |
|
17074 | if (this._options.unref) {
|
17075 | timer.unref();
|
17076 | }
|
17077 |
|
17078 | return true;
|
17079 | };
|
17080 |
|
17081 | RetryOperation.prototype.attempt = function(fn, timeoutOps) {
|
17082 | this._fn = fn;
|
17083 |
|
17084 | if (timeoutOps) {
|
17085 | if (timeoutOps.timeout) {
|
17086 | this._operationTimeout = timeoutOps.timeout;
|
17087 | }
|
17088 | if (timeoutOps.cb) {
|
17089 | this._operationTimeoutCb = timeoutOps.cb;
|
17090 | }
|
17091 | }
|
17092 |
|
17093 | var self = this;
|
17094 | if (this._operationTimeoutCb) {
|
17095 | this._timeout = setTimeout(function() {
|
17096 | self._operationTimeoutCb();
|
17097 | }, self._operationTimeout);
|
17098 | }
|
17099 |
|
17100 | this._operationStart = new Date().getTime();
|
17101 |
|
17102 | this._fn(this._attempts);
|
17103 | };
|
17104 |
|
17105 | RetryOperation.prototype.try = function(fn) {
|
17106 | console.log('Using RetryOperation.try() is deprecated');
|
17107 | this.attempt(fn);
|
17108 | };
|
17109 |
|
17110 | RetryOperation.prototype.start = function(fn) {
|
17111 | console.log('Using RetryOperation.start() is deprecated');
|
17112 | this.attempt(fn);
|
17113 | };
|
17114 |
|
17115 | RetryOperation.prototype.start = RetryOperation.prototype.try;
|
17116 |
|
17117 | RetryOperation.prototype.errors = function() {
|
17118 | return this._errors;
|
17119 | };
|
17120 |
|
17121 | RetryOperation.prototype.attempts = function() {
|
17122 | return this._attempts;
|
17123 | };
|
17124 |
|
17125 | RetryOperation.prototype.mainError = function() {
|
17126 | if (this._errors.length === 0) {
|
17127 | return null;
|
17128 | }
|
17129 |
|
17130 | var counts = {};
|
17131 | var mainError = null;
|
17132 | var mainErrorCount = 0;
|
17133 |
|
17134 | for (var i = 0; i < this._errors.length; i++) {
|
17135 | var error = this._errors[i];
|
17136 | var message = error.message;
|
17137 | var count = (counts[message] || 0) + 1;
|
17138 |
|
17139 | counts[message] = count;
|
17140 |
|
17141 | if (count >= mainErrorCount) {
|
17142 | mainError = error;
|
17143 | mainErrorCount = count;
|
17144 | }
|
17145 | }
|
17146 |
|
17147 | return mainError;
|
17148 | };
|
17149 |
|
17150 |
|
17151 | }),
|
17152 | ,
|
17153 | ,
|
17154 | ,
|
17155 | ,
|
17156 | ,
|
17157 | ,
|
17158 | ,
|
17159 | ,
|
17160 | ,
|
17161 | ,
|
17162 | ,
|
17163 | ,
|
17164 | ,
|
17165 | ,
|
17166 | ,
|
17167 | ,
|
17168 | ,
|
17169 | ,
|
17170 | ,
|
17171 | ,
|
17172 | ,
|
17173 | ,
|
17174 |
|
17175 | (function(module) {
|
17176 |
|
17177 | module.exports = [["0","\u0000",127],["8141","갂갃갅갆갋",4,"갘갞갟갡갢갣갥",6,"갮갲갳갴"],["8161","갵갶갷갺갻갽갾갿걁",9,"걌걎",5,"걕"],["8181","걖걗걙걚걛걝",18,"걲걳걵걶걹걻",4,"겂겇겈겍겎겏겑겒겓겕",6,"겞겢",5,"겫겭겮겱",6,"겺겾겿곀곂곃곅곆곇곉곊곋곍",7,"곖곘",7,"곢곣곥곦곩곫곭곮곲곴곷",4,"곾곿괁괂괃괅괇",4,"괎괐괒괓"],["8241","괔괕괖괗괙괚괛괝괞괟괡",7,"괪괫괮",5],["8261","괶괷괹괺괻괽",6,"굆굈굊",5,"굑굒굓굕굖굗"],["8281","굙",7,"굢굤",7,"굮굯굱굲굷굸굹굺굾궀궃",4,"궊궋궍궎궏궑",10,"궞",5,"궥",17,"궸",7,"귂귃귅귆귇귉",6,"귒귔",7,"귝귞귟귡귢귣귥",18],["8341","귺귻귽귾긂",5,"긊긌긎",5,"긕",7],["8361","긝",18,"긲긳긵긶긹긻긼"],["8381","긽긾긿깂깄깇깈깉깋깏깑깒깓깕깗",4,"깞깢깣깤깦깧깪깫깭깮깯깱",6,"깺깾",5,"꺆",5,"꺍",46,"꺿껁껂껃껅",6,"껎껒",5,"껚껛껝",8],["8441","껦껧껩껪껬껮",5,"껵껶껷껹껺껻껽",8],["8461","꼆꼉꼊꼋꼌꼎꼏꼑",18],["8481","꼤",7,"꼮꼯꼱꼳꼵",6,"꼾꽀꽄꽅꽆꽇꽊",5,"꽑",10,"꽞",5,"꽦",18,"꽺",5,"꾁꾂꾃꾅꾆꾇꾉",6,"꾒꾓꾔꾖",5,"꾝",26,"꾺꾻꾽꾾"],["8541","꾿꿁",5,"꿊꿌꿏",4,"꿕",6,"꿝",4],["8561","꿢",5,"꿪",5,"꿲꿳꿵꿶꿷꿹",6,"뀂뀃"],["8581","뀅",6,"뀍뀎뀏뀑뀒뀓뀕",6,"뀞",9,"뀩",26,"끆끇끉끋끍끏끐끑끒끖끘끚끛끜끞",29,"끾끿낁낂낃낅",6,"낎낐낒",5,"낛낝낞낣낤"],["8641","낥낦낧낪낰낲낶낷낹낺낻낽",6,"냆냊",5,"냒"],["8661","냓냕냖냗냙",6,"냡냢냣냤냦",10],["8681","냱",22,"넊넍넎넏넑넔넕넖넗넚넞",4,"넦넧넩넪넫넭",6,"넶넺",5,"녂녃녅녆녇녉",6,"녒녓녖녗녙녚녛녝녞녟녡",22,"녺녻녽녾녿놁놃",4,"놊놌놎놏놐놑놕놖놗놙놚놛놝"],["8741","놞",9,"놩",15],["8761","놹",18,"뇍뇎뇏뇑뇒뇓뇕"],["8781","뇖",5,"뇞뇠",7,"뇪뇫뇭뇮뇯뇱",7,"뇺뇼뇾",5,"눆눇눉눊눍",6,"눖눘눚",5,"눡",18,"눵",6,"눽",26,"뉙뉚뉛뉝뉞뉟뉡",6,"뉪",4],["8841","뉯",4,"뉶",5,"뉽",6,"늆늇늈늊",4],["8861","늏늒늓늕늖늗늛",4,"늢늤늧늨늩늫늭늮늯늱늲늳늵늶늷"],["8881","늸",15,"닊닋닍닎닏닑닓",4,"닚닜닞닟닠닡닣닧닩닪닰닱닲닶닼닽닾댂댃댅댆댇댉",6,"댒댖",5,"댝",54,"덗덙덚덝덠덡덢덣"],["8941","덦덨덪덬덭덯덲덳덵덶덷덹",6,"뎂뎆",5,"뎍"],["8961","뎎뎏뎑뎒뎓뎕",10,"뎢",5,"뎩뎪뎫뎭"],["8981","뎮",21,"돆돇돉돊돍돏돑돒돓돖돘돚돜돞돟돡돢돣돥돦돧돩",18,"돽",18,"됑",6,"됙됚됛됝됞됟됡",6,"됪됬",7,"됵",15],["8a41","둅",10,"둒둓둕둖둗둙",6,"둢둤둦"],["8a61","둧",4,"둭",18,"뒁뒂"],["8a81","뒃",4,"뒉",19,"뒞",5,"뒥뒦뒧뒩뒪뒫뒭",7,"뒶뒸뒺",5,"듁듂듃듅듆듇듉",6,"듑듒듓듔듖",5,"듞듟듡듢듥듧",4,"듮듰듲",5,"듹",26,"딖딗딙딚딝"],["8b41","딞",5,"딦딫",4,"딲딳딵딶딷딹",6,"땂땆"],["8b61","땇땈땉땊땎땏땑땒땓땕",6,"땞땢",8],["8b81","땫",52,"떢떣떥떦떧떩떬떭떮떯떲떶",4,"떾떿뗁뗂뗃뗅",6,"뗎뗒",5,"뗙",18,"뗭",18],["8c41","똀",15,"똒똓똕똖똗똙",4],["8c61","똞",6,"똦",5,"똭",6,"똵",5],["8c81","똻",12,"뙉",26,"뙥뙦뙧뙩",50,"뚞뚟뚡뚢뚣뚥",5,"뚭뚮뚯뚰뚲",16],["8d41","뛃",16,"뛕",8],["8d61","뛞",17,"뛱뛲뛳뛵뛶뛷뛹뛺"],["8d81","뛻",4,"뜂뜃뜄뜆",33,"뜪뜫뜭뜮뜱",6,"뜺뜼",7,"띅띆띇띉띊띋띍",6,"띖",9,"띡띢띣띥띦띧띩",6,"띲띴띶",5,"띾띿랁랂랃랅",6,"랎랓랔랕랚랛랝랞"],["8e41","랟랡",6,"랪랮",5,"랶랷랹",8],["8e61","럂",4,"럈럊",19],["8e81","럞",13,"럮럯럱럲럳럵",6,"럾렂",4,"렊렋렍렎렏렑",6,"렚렜렞",5,"렦렧렩렪렫렭",6,"렶렺",5,"롁롂롃롅",11,"롒롔",7,"롞롟롡롢롣롥",6,"롮롰롲",5,"롹롺롻롽",7],["8f41","뢅",7,"뢎",17],["8f61","뢠",7,"뢩",6,"뢱뢲뢳뢵뢶뢷뢹",4],["8f81","뢾뢿룂룄룆",5,"룍룎룏룑룒룓룕",7,"룞룠룢",5,"룪룫룭룮룯룱",6,"룺룼룾",5,"뤅",18,"뤙",6,"뤡",26,"뤾뤿륁륂륃륅",6,"륍륎륐륒",5],["9041","륚륛륝륞륟륡",6,"륪륬륮",5,"륶륷륹륺륻륽"],["9061","륾",5,"릆릈릋릌릏",15],["9081","릟",12,"릮릯릱릲릳릵",6,"릾맀맂",5,"맊맋맍맓",4,"맚맜맟맠맢맦맧맩맪맫맭",6,"맶맻",4,"먂",5,"먉",11,"먖",33,"먺먻먽먾먿멁멃멄멅멆"],["9141","멇멊멌멏멐멑멒멖멗멙멚멛멝",6,"멦멪",5],["9161","멲멳멵멶멷멹",9,"몆몈몉몊몋몍",5],["9181","몓",20,"몪몭몮몯몱몳",4,"몺몼몾",5,"뫅뫆뫇뫉",14,"뫚",33,"뫽뫾뫿묁묂묃묅",7,"묎묐묒",5,"묙묚묛묝묞묟묡",6],["9241","묨묪묬",7,"묷묹묺묿",4,"뭆뭈뭊뭋뭌뭎뭑뭒"],["9261","뭓뭕뭖뭗뭙",7,"뭢뭤",7,"뭭",4],["9281","뭲",21,"뮉뮊뮋뮍뮎뮏뮑",18,"뮥뮦뮧뮩뮪뮫뮭",6,"뮵뮶뮸",7,"믁믂믃믅믆믇믉",6,"믑믒믔",35,"믺믻믽믾밁"],["9341","밃",4,"밊밎밐밒밓밙밚밠밡밢밣밦밨밪밫밬밮밯밲밳밵"],["9361","밶밷밹",6,"뱂뱆뱇뱈뱊뱋뱎뱏뱑",8],["9381","뱚뱛뱜뱞",37,"벆벇벉벊벍벏",4,"벖벘벛",4,"벢벣벥벦벩",6,"벲벶",5,"벾벿볁볂볃볅",7,"볎볒볓볔볖볗볙볚볛볝",22,"볷볹볺볻볽"],["9441","볾",5,"봆봈봊",5,"봑봒봓봕",8],["9461","봞",5,"봥",6,"봭",12],["9481","봺",5,"뵁",6,"뵊뵋뵍뵎뵏뵑",6,"뵚",9,"뵥뵦뵧뵩",22,"붂붃붅붆붋",4,"붒붔붖붗붘붛붝",6,"붥",10,"붱",6,"붹",24],["9541","뷒뷓뷖뷗뷙뷚뷛뷝",11,"뷪",5,"뷱"],["9561","뷲뷳뷵뷶뷷뷹",6,"븁븂븄븆",5,"븎븏븑븒븓"],["9581","븕",6,"븞븠",35,"빆빇빉빊빋빍빏",4,"빖빘빜빝빞빟빢빣빥빦빧빩빫",4,"빲빶",4,"빾빿뺁뺂뺃뺅",6,"뺎뺒",5,"뺚",13,"뺩",14],["9641","뺸",23,"뻒뻓"],["9661","뻕뻖뻙",6,"뻡뻢뻦",5,"뻭",8],["9681","뻶",10,"뼂",5,"뼊",13,"뼚뼞",33,"뽂뽃뽅뽆뽇뽉",6,"뽒뽓뽔뽖",44],["9741","뾃",16,"뾕",8],["9761","뾞",17,"뾱",7],["9781","뾹",11,"뿆",5,"뿎뿏뿑뿒뿓뿕",6,"뿝뿞뿠뿢",89,"쀽쀾쀿"],["9841","쁀",16,"쁒",5,"쁙쁚쁛"],["9861","쁝쁞쁟쁡",6,"쁪",15],["9881","쁺",21,"삒삓삕삖삗삙",6,"삢삤삦",5,"삮삱삲삷",4,"삾샂샃샄샆샇샊샋샍샎샏샑",6,"샚샞",5,"샦샧샩샪샫샭",6,"샶샸샺",5,"섁섂섃섅섆섇섉",6,"섑섒섓섔섖",5,"섡섢섥섨섩섪섫섮"],["9941","섲섳섴섵섷섺섻섽섾섿셁",6,"셊셎",5,"셖셗"],["9961","셙셚셛셝",6,"셦셪",5,"셱셲셳셵셶셷셹셺셻"],["9981","셼",8,"솆",5,"솏솑솒솓솕솗",4,"솞솠솢솣솤솦솧솪솫솭솮솯솱",11,"솾",5,"쇅쇆쇇쇉쇊쇋쇍",6,"쇕쇖쇙",6,"쇡쇢쇣쇥쇦쇧쇩",6,"쇲쇴",7,"쇾쇿숁숂숃숅",6,"숎숐숒",5,"숚숛숝숞숡숢숣"],["9a41","숤숥숦숧숪숬숮숰숳숵",16],["9a61","쉆쉇쉉",6,"쉒쉓쉕쉖쉗쉙",6,"쉡쉢쉣쉤쉦"],["9a81","쉧",4,"쉮쉯쉱쉲쉳쉵",6,"쉾슀슂",5,"슊",5,"슑",6,"슙슚슜슞",5,"슦슧슩슪슫슮",5,"슶슸슺",33,"싞싟싡싢싥",5,"싮싰싲싳싴싵싷싺싽싾싿쌁",6,"쌊쌋쌎쌏"],["9b41","쌐쌑쌒쌖쌗쌙쌚쌛쌝",6,"쌦쌧쌪",8],["9b61","쌳",17,"썆",7],["9b81","썎",25,"썪썫썭썮썯썱썳",4,"썺썻썾",5,"쎅쎆쎇쎉쎊쎋쎍",50,"쏁",22,"쏚"],["9c41","쏛쏝쏞쏡쏣",4,"쏪쏫쏬쏮",5,"쏶쏷쏹",5],["9c61","쏿",8,"쐉",6,"쐑",9],["9c81","쐛",8,"쐥",6,"쐭쐮쐯쐱쐲쐳쐵",6,"쐾",9,"쑉",26,"쑦쑧쑩쑪쑫쑭",6,"쑶쑷쑸쑺",5,"쒁",18,"쒕",6,"쒝",12],["9d41","쒪",13,"쒹쒺쒻쒽",8],["9d61","쓆",25],["9d81","쓠",8,"쓪",5,"쓲쓳쓵쓶쓷쓹쓻쓼쓽쓾씂",9,"씍씎씏씑씒씓씕",6,"씝",10,"씪씫씭씮씯씱",6,"씺씼씾",5,"앆앇앋앏앐앑앒앖앚앛앜앟앢앣앥앦앧앩",6,"앲앶",5,"앾앿얁얂얃얅얆얈얉얊얋얎얐얒얓얔"],["9e41","얖얙얚얛얝얞얟얡",7,"얪",9,"얶"],["9e61","얷얺얿",4,"엋엍엏엒엓엕엖엗엙",6,"엢엤엦엧"],["9e81","엨엩엪엫엯엱엲엳엵엸엹엺엻옂옃옄옉옊옋옍옎옏옑",6,"옚옝",6,"옦옧옩옪옫옯옱옲옶옸옺옼옽옾옿왂왃왅왆왇왉",6,"왒왖",5,"왞왟왡",10,"왭왮왰왲",5,"왺왻왽왾왿욁",6,"욊욌욎",5,"욖욗욙욚욛욝",6,"욦"],["9f41","욨욪",5,"욲욳욵욶욷욻",4,"웂웄웆",5,"웎"],["9f61","웏웑웒웓웕",6,"웞웟웢",5,"웪웫웭웮웯웱웲"],["9f81","웳",4,"웺웻웼웾",5,"윆윇윉윊윋윍",6,"윖윘윚",5,"윢윣윥윦윧윩",6,"윲윴윶윸윹윺윻윾윿읁읂읃읅",4,"읋읎읐읙읚읛읝읞읟읡",6,"읩읪읬",7,"읶읷읹읺읻읿잀잁잂잆잋잌잍잏잒잓잕잙잛",4,"잢잧",4,"잮잯잱잲잳잵잶잷"],["a041","잸잹잺잻잾쟂",5,"쟊쟋쟍쟏쟑",6,"쟙쟚쟛쟜"],["a061","쟞",5,"쟥쟦쟧쟩쟪쟫쟭",13],["a081","쟻",4,"젂젃젅젆젇젉젋",4,"젒젔젗",4,"젞젟젡젢젣젥",6,"젮젰젲",5,"젹젺젻젽젾젿졁",6,"졊졋졎",5,"졕",26,"졲졳졵졶졷졹졻",4,"좂좄좈좉좊좎",5,"좕",7,"좞좠좢좣좤"],["a141","좥좦좧좩",18,"좾좿죀죁"],["a161","죂죃죅죆죇죉죊죋죍",6,"죖죘죚",5,"죢죣죥"],["a181","죦",14,"죶",5,"죾죿줁줂줃줇",4,"줎 、。·‥…¨〃―∥\∼‘’“”〔〕〈",9,"±×÷≠≤≥∞∴°′″℃Å¢£¥♂♀∠⊥⌒∂∇≡≒§※☆★○●◎◇◆□■△▲▽▼→←↑↓↔〓≪≫√∽∝∵∫∬∈∋⊆⊇⊂⊃∪∩∧∨¬"],["a241","줐줒",5,"줙",18],["a261","줭",6,"줵",18],["a281","쥈",7,"쥒쥓쥕쥖쥗쥙",6,"쥢쥤",7,"쥭쥮쥯⇒⇔∀∃´~ˇ˘˝˚˙¸˛¡¿ː∮∑∏¤℉‰◁◀▷▶♤♠♡♥♧♣⊙◈▣◐◑▒▤▥▨▧▦▩♨☏☎☜☞¶†‡↕↗↙↖↘♭♩♪♬㉿㈜№㏇™㏂㏘℡€®"],["a341","쥱쥲쥳쥵",6,"쥽",10,"즊즋즍즎즏"],["a361","즑",6,"즚즜즞",16],["a381","즯",16,"짂짃짅짆짉짋",4,"짒짔짗짘짛!",58,"₩]",32," ̄"],["a441","짞짟짡짣짥짦짨짩짪짫짮짲",5,"짺짻짽짾짿쨁쨂쨃쨄"],["a461","쨅쨆쨇쨊쨎",5,"쨕쨖쨗쨙",12],["a481","쨦쨧쨨쨪",28,"ㄱ",93],["a541","쩇",4,"쩎쩏쩑쩒쩓쩕",6,"쩞쩢",5,"쩩쩪"],["a561","쩫",17,"쩾",5,"쪅쪆"],["a581","쪇",16,"쪙",14,"ⅰ",9],["a5b0","Ⅰ",9],["a5c1","Α",16,"Σ",6],["a5e1","α",16,"σ",6],["a641","쪨",19,"쪾쪿쫁쫂쫃쫅"],["a661","쫆",5,"쫎쫐쫒쫔쫕쫖쫗쫚",5,"쫡",6],["a681","쫨쫩쫪쫫쫭",6,"쫵",18,"쬉쬊─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂┒┑┚┙┖┕┎┍┞┟┡┢┦┧┩┪┭┮┱┲┵┶┹┺┽┾╀╁╃",7],["a741","쬋",4,"쬑쬒쬓쬕쬖쬗쬙",6,"쬢",7],["a761","쬪",22,"쭂쭃쭄"],["a781","쭅쭆쭇쭊쭋쭍쭎쭏쭑",6,"쭚쭛쭜쭞",5,"쭥",7,"㎕㎖㎗ℓ㎘㏄㎣㎤㎥㎦㎙",9,"㏊㎍㎎㎏㏏㎈㎉㏈㎧㎨㎰",9,"㎀",4,"㎺",5,"㎐",4,"Ω㏀㏁㎊㎋㎌㏖㏅㎭㎮㎯㏛㎩㎪㎫㎬㏝㏐㏓㏃㏉㏜㏆"],["a841","쭭",10,"쭺",14],["a861","쮉",18,"쮝",6],["a881","쮤",19,"쮹",11,"ÆЪĦ"],["a8a6","IJ"],["a8a8","ĿŁØŒºÞŦŊ"],["a8b1","㉠",27,"ⓐ",25,"①",14,"½⅓⅔¼¾⅛⅜⅝⅞"],["a941","쯅",14,"쯕",10],["a961","쯠쯡쯢쯣쯥쯦쯨쯪",18],["a981","쯽",14,"찎찏찑찒찓찕",6,"찞찟찠찣찤æđðħıijĸŀłøœßþŧŋʼn㈀",27,"⒜",25,"⑴",14,"¹²³⁴ⁿ₁₂₃₄"],["aa41","찥찦찪찫찭찯찱",6,"찺찿",4,"챆챇챉챊챋챍챎"],["aa61","챏",4,"챖챚",5,"챡챢챣챥챧챩",6,"챱챲"],["aa81","챳챴챶",29,"ぁ",82],["ab41","첔첕첖첗첚첛첝첞첟첡",6,"첪첮",5,"첶첷첹"],["ab61","첺첻첽",6,"쳆쳈쳊",5,"쳑쳒쳓쳕",5],["ab81","쳛",8,"쳥",6,"쳭쳮쳯쳱",12,"ァ",85],["ac41","쳾쳿촀촂",5,"촊촋촍촎촏촑",6,"촚촜촞촟촠"],["ac61","촡촢촣촥촦촧촩촪촫촭",11,"촺",4],["ac81","촿",28,"쵝쵞쵟А",5,"ЁЖ",25],["acd1","а",5,"ёж",25],["ad41","쵡쵢쵣쵥",6,"쵮쵰쵲",5,"쵹",7],["ad61","춁",6,"춉",10,"춖춗춙춚춛춝춞춟"],["ad81","춠춡춢춣춦춨춪",5,"춱",18,"췅"],["ae41","췆",5,"췍췎췏췑",16],["ae61","췢",5,"췩췪췫췭췮췯췱",6,"췺췼췾",4],["ae81","츃츅츆츇츉츊츋츍",6,"츕츖츗츘츚",5,"츢츣츥츦츧츩츪츫"],["af41","츬츭츮츯츲츴츶",19],["af61","칊",13,"칚칛칝칞칢",5,"칪칬"],["af81","칮",5,"칶칷칹칺칻칽",6,"캆캈캊",5,"캒캓캕캖캗캙"],["b041","캚",5,"캢캦",5,"캮",12],["b061","캻",5,"컂",19],["b081","컖",13,"컦컧컩컪컭",6,"컶컺",5,"가각간갇갈갉갊감",7,"같",4,"갠갤갬갭갯갰갱갸갹갼걀걋걍걔걘걜거걱건걷걸걺검겁것겄겅겆겉겊겋게겐겔겜겝겟겠겡겨격겪견겯결겸겹겻겼경곁계곈곌곕곗고곡곤곧골곪곬곯곰곱곳공곶과곽관괄괆"],["b141","켂켃켅켆켇켉",6,"켒켔켖",5,"켝켞켟켡켢켣"],["b161","켥",6,"켮켲",5,"켹",11],["b181","콅",14,"콖콗콙콚콛콝",6,"콦콨콪콫콬괌괍괏광괘괜괠괩괬괭괴괵괸괼굄굅굇굉교굔굘굡굣구국군굳굴굵굶굻굼굽굿궁궂궈궉권궐궜궝궤궷귀귁귄귈귐귑귓규균귤그극근귿글긁금급긋긍긔기긱긴긷길긺김깁깃깅깆깊까깍깎깐깔깖깜깝깟깠깡깥깨깩깬깰깸"],["b241","콭콮콯콲콳콵콶콷콹",6,"쾁쾂쾃쾄쾆",5,"쾍"],["b261","쾎",18,"쾢",5,"쾩"],["b281","쾪",5,"쾱",18,"쿅",6,"깹깻깼깽꺄꺅꺌꺼꺽꺾껀껄껌껍껏껐껑께껙껜껨껫껭껴껸껼꼇꼈꼍꼐꼬꼭꼰꼲꼴꼼꼽꼿꽁꽂꽃꽈꽉꽐꽜꽝꽤꽥꽹꾀꾄꾈꾐꾑꾕꾜꾸꾹꾼꿀꿇꿈꿉꿋꿍꿎꿔꿜꿨꿩꿰꿱꿴꿸뀀뀁뀄뀌뀐뀔뀜뀝뀨끄끅끈끊끌끎끓끔끕끗끙"],["b341","쿌",19,"쿢쿣쿥쿦쿧쿩"],["b361","쿪",5,"쿲쿴쿶",5,"쿽쿾쿿퀁퀂퀃퀅",5],["b381","퀋",5,"퀒",5,"퀙",19,"끝끼끽낀낄낌낍낏낑나낙낚난낟날낡낢남납낫",4,"낱낳내낵낸낼냄냅냇냈냉냐냑냔냘냠냥너넉넋넌널넒넓넘넙넛넜넝넣네넥넨넬넴넵넷넸넹녀녁년녈념녑녔녕녘녜녠노녹논놀놂놈놉놋농높놓놔놘놜놨뇌뇐뇔뇜뇝"],["b441","퀮",5,"퀶퀷퀹퀺퀻퀽",6,"큆큈큊",5],["b461","큑큒큓큕큖큗큙",6,"큡",10,"큮큯"],["b481","큱큲큳큵",6,"큾큿킀킂",18,"뇟뇨뇩뇬뇰뇹뇻뇽누눅눈눋눌눔눕눗눙눠눴눼뉘뉜뉠뉨뉩뉴뉵뉼늄늅늉느늑는늘늙늚늠늡늣능늦늪늬늰늴니닉닌닐닒님닙닛닝닢다닥닦단닫",4,"닳담답닷",4,"닿대댁댄댈댐댑댓댔댕댜더덕덖던덛덜덞덟덤덥"],["b541","킕",14,"킦킧킩킪킫킭",5],["b561","킳킶킸킺",5,"탂탃탅탆탇탊",5,"탒탖",4],["b581","탛탞탟탡탢탣탥",6,"탮탲",5,"탹",11,"덧덩덫덮데덱덴델뎀뎁뎃뎄뎅뎌뎐뎔뎠뎡뎨뎬도독돈돋돌돎돐돔돕돗동돛돝돠돤돨돼됐되된될됨됩됫됴두둑둔둘둠둡둣둥둬뒀뒈뒝뒤뒨뒬뒵뒷뒹듀듄듈듐듕드득든듣들듦듬듭듯등듸디딕딘딛딜딤딥딧딨딩딪따딱딴딸"],["b641","턅",7,"턎",17],["b661","턠",15,"턲턳턵턶턷턹턻턼턽턾"],["b681","턿텂텆",5,"텎텏텑텒텓텕",6,"텞텠텢",5,"텩텪텫텭땀땁땃땄땅땋때땍땐땔땜땝땟땠땡떠떡떤떨떪떫떰떱떳떴떵떻떼떽뗀뗄뗌뗍뗏뗐뗑뗘뗬또똑똔똘똥똬똴뙈뙤뙨뚜뚝뚠뚤뚫뚬뚱뛔뛰뛴뛸뜀뜁뜅뜨뜩뜬뜯뜰뜸뜹뜻띄띈띌띔띕띠띤띨띰띱띳띵라락란랄람랍랏랐랑랒랖랗"],["b741","텮",13,"텽",6,"톅톆톇톉톊"],["b761","톋",20,"톢톣톥톦톧"],["b781","톩",6,"톲톴톶톷톸톹톻톽톾톿퇁",14,"래랙랜랠램랩랫랬랭랴략랸럇량러럭런럴럼럽럿렀렁렇레렉렌렐렘렙렛렝려력련렬렴렵렷렸령례롄롑롓로록론롤롬롭롯롱롸롼뢍뢨뢰뢴뢸룀룁룃룅료룐룔룝룟룡루룩룬룰룸룹룻룽뤄뤘뤠뤼뤽륀륄륌륏륑류륙륜률륨륩"],["b841","퇐",7,"퇙",17],["b861","퇫",8,"퇵퇶퇷퇹",13],["b881","툈툊",5,"툑",24,"륫륭르륵른를름릅릇릉릊릍릎리릭린릴림립릿링마막만많",4,"맘맙맛망맞맡맣매맥맨맬맴맵맷맸맹맺먀먁먈먕머먹먼멀멂멈멉멋멍멎멓메멕멘멜멤멥멧멨멩며멱면멸몃몄명몇몌모목몫몬몰몲몸몹못몽뫄뫈뫘뫙뫼"],["b941","툪툫툮툯툱툲툳툵",6,"툾퉀퉂",5,"퉉퉊퉋퉌"],["b961","퉍",14,"퉝",6,"퉥퉦퉧퉨"],["b981","퉩",22,"튂튃튅튆튇튉튊튋튌묀묄묍묏묑묘묜묠묩묫무묵묶문묻물묽묾뭄뭅뭇뭉뭍뭏뭐뭔뭘뭡뭣뭬뮈뮌뮐뮤뮨뮬뮴뮷므믄믈믐믓미믹민믿밀밂밈밉밋밌밍및밑바",4,"받",4,"밤밥밧방밭배백밴밸뱀뱁뱃뱄뱅뱉뱌뱍뱐뱝버벅번벋벌벎범법벗"],["ba41","튍튎튏튒튓튔튖",5,"튝튞튟튡튢튣튥",6,"튭"],["ba61","튮튯튰튲",5,"튺튻튽튾틁틃",4,"틊틌",5],["ba81","틒틓틕틖틗틙틚틛틝",6,"틦",9,"틲틳틵틶틷틹틺벙벚베벡벤벧벨벰벱벳벴벵벼벽변별볍볏볐병볕볘볜보복볶본볼봄봅봇봉봐봔봤봬뵀뵈뵉뵌뵐뵘뵙뵤뵨부북분붇불붉붊붐붑붓붕붙붚붜붤붰붸뷔뷕뷘뷜뷩뷰뷴뷸븀븃븅브븍븐블븜븝븟비빅빈빌빎빔빕빗빙빚빛빠빡빤"],["bb41","틻",4,"팂팄팆",5,"팏팑팒팓팕팗",4,"팞팢팣"],["bb61","팤팦팧팪팫팭팮팯팱",6,"팺팾",5,"퍆퍇퍈퍉"],["bb81","퍊",31,"빨빪빰빱빳빴빵빻빼빽뺀뺄뺌뺍뺏뺐뺑뺘뺙뺨뻐뻑뻔뻗뻘뻠뻣뻤뻥뻬뼁뼈뼉뼘뼙뼛뼜뼝뽀뽁뽄뽈뽐뽑뽕뾔뾰뿅뿌뿍뿐뿔뿜뿟뿡쀼쁑쁘쁜쁠쁨쁩삐삑삔삘삠삡삣삥사삭삯산삳살삵삶삼삽삿샀상샅새색샌샐샘샙샛샜생샤"],["bc41","퍪",17,"퍾퍿펁펂펃펅펆펇"],["bc61","펈펉펊펋펎펒",5,"펚펛펝펞펟펡",6,"펪펬펮"],["bc81","펯",4,"펵펶펷펹펺펻펽",6,"폆폇폊",5,"폑",5,"샥샨샬샴샵샷샹섀섄섈섐섕서",4,"섣설섦섧섬섭섯섰성섶세섹센셀셈셉셋셌셍셔셕션셜셤셥셧셨셩셰셴셸솅소속솎손솔솖솜솝솟송솥솨솩솬솰솽쇄쇈쇌쇔쇗쇘쇠쇤쇨쇰쇱쇳쇼쇽숀숄숌숍숏숑수숙순숟술숨숩숫숭"],["bd41","폗폙",7,"폢폤",7,"폮폯폱폲폳폵폶폷"],["bd61","폸폹폺폻폾퐀퐂",5,"퐉",13],["bd81","퐗",5,"퐞",25,"숯숱숲숴쉈쉐쉑쉔쉘쉠쉥쉬쉭쉰쉴쉼쉽쉿슁슈슉슐슘슛슝스슥슨슬슭슴습슷승시식신싣실싫심십싯싱싶싸싹싻싼쌀쌈쌉쌌쌍쌓쌔쌕쌘쌜쌤쌥쌨쌩썅써썩썬썰썲썸썹썼썽쎄쎈쎌쏀쏘쏙쏜쏟쏠쏢쏨쏩쏭쏴쏵쏸쐈쐐쐤쐬쐰"],["be41","퐸",7,"푁푂푃푅",14],["be61","푔",7,"푝푞푟푡푢푣푥",7,"푮푰푱푲"],["be81","푳",4,"푺푻푽푾풁풃",4,"풊풌풎",5,"풕",8,"쐴쐼쐽쑈쑤쑥쑨쑬쑴쑵쑹쒀쒔쒜쒸쒼쓩쓰쓱쓴쓸쓺쓿씀씁씌씐씔씜씨씩씬씰씸씹씻씽아악안앉않알앍앎앓암압앗았앙앝앞애액앤앨앰앱앳앴앵야약얀얄얇얌얍얏양얕얗얘얜얠얩어억언얹얻얼얽얾엄",6,"엌엎"],["bf41","풞",10,"풪",14],["bf61","풹",18,"퓍퓎퓏퓑퓒퓓퓕"],["bf81","퓖",5,"퓝퓞퓠",7,"퓩퓪퓫퓭퓮퓯퓱",6,"퓹퓺퓼에엑엔엘엠엡엣엥여역엮연열엶엷염",5,"옅옆옇예옌옐옘옙옛옜오옥온올옭옮옰옳옴옵옷옹옻와왁완왈왐왑왓왔왕왜왝왠왬왯왱외왹왼욀욈욉욋욍요욕욘욜욤욥욧용우욱운울욹욺움웁웃웅워웍원월웜웝웠웡웨"],["c041","퓾",5,"픅픆픇픉픊픋픍",6,"픖픘",5],["c061","픞",25],["c081","픸픹픺픻픾픿핁핂핃핅",6,"핎핐핒",5,"핚핛핝핞핟핡핢핣웩웬웰웸웹웽위윅윈윌윔윕윗윙유육윤율윰윱윳융윷으윽은을읊음읍읏응",7,"읜읠읨읫이익인일읽읾잃임입잇있잉잊잎자작잔잖잗잘잚잠잡잣잤장잦재잭잰잴잼잽잿쟀쟁쟈쟉쟌쟎쟐쟘쟝쟤쟨쟬저적전절젊"],["c141","핤핦핧핪핬핮",5,"핶핷핹핺핻핽",6,"햆햊햋"],["c161","햌햍햎햏햑",19,"햦햧"],["c181","햨",31,"점접젓정젖제젝젠젤젬젭젯젱져젼졀졈졉졌졍졔조족존졸졺좀좁좃종좆좇좋좌좍좔좝좟좡좨좼좽죄죈죌죔죕죗죙죠죡죤죵주죽준줄줅줆줌줍줏중줘줬줴쥐쥑쥔쥘쥠쥡쥣쥬쥰쥴쥼즈즉즌즐즘즙즛증지직진짇질짊짐집짓"],["c241","헊헋헍헎헏헑헓",4,"헚헜헞",5,"헦헧헩헪헫헭헮"],["c261","헯",4,"헶헸헺",5,"혂혃혅혆혇혉",6,"혒"],["c281","혖",5,"혝혞혟혡혢혣혥",7,"혮",9,"혺혻징짖짙짚짜짝짠짢짤짧짬짭짯짰짱째짹짼쨀쨈쨉쨋쨌쨍쨔쨘쨩쩌쩍쩐쩔쩜쩝쩟쩠쩡쩨쩽쪄쪘쪼쪽쫀쫄쫌쫍쫏쫑쫓쫘쫙쫠쫬쫴쬈쬐쬔쬘쬠쬡쭁쭈쭉쭌쭐쭘쭙쭝쭤쭸쭹쮜쮸쯔쯤쯧쯩찌찍찐찔찜찝찡찢찧차착찬찮찰참찹찻"],["c341","혽혾혿홁홂홃홄홆홇홊홌홎홏홐홒홓홖홗홙홚홛홝",4],["c361","홢",4,"홨홪",5,"홲홳홵",11],["c381","횁횂횄횆",5,"횎횏횑횒횓횕",7,"횞횠횢",5,"횩횪찼창찾채책챈챌챔챕챗챘챙챠챤챦챨챰챵처척천철첨첩첫첬청체첵첸첼쳄쳅쳇쳉쳐쳔쳤쳬쳰촁초촉촌촐촘촙촛총촤촨촬촹최쵠쵤쵬쵭쵯쵱쵸춈추축춘출춤춥춧충춰췄췌췐취췬췰췸췹췻췽츄츈츌츔츙츠측츤츨츰츱츳층"],["c441","횫횭횮횯횱",7,"횺횼",7,"훆훇훉훊훋"],["c461","훍훎훏훐훒훓훕훖훘훚",5,"훡훢훣훥훦훧훩",4],["c481","훮훯훱훲훳훴훶",5,"훾훿휁휂휃휅",11,"휒휓휔치칙친칟칠칡침칩칫칭카칵칸칼캄캅캇캉캐캑캔캘캠캡캣캤캥캬캭컁커컥컨컫컬컴컵컷컸컹케켁켄켈켐켑켓켕켜켠켤켬켭켯켰켱켸코콕콘콜콤콥콧콩콰콱콴콸쾀쾅쾌쾡쾨쾰쿄쿠쿡쿤쿨쿰쿱쿳쿵쿼퀀퀄퀑퀘퀭퀴퀵퀸퀼"],["c541","휕휖휗휚휛휝휞휟휡",6,"휪휬휮",5,"휶휷휹"],["c561","휺휻휽",6,"흅흆흈흊",5,"흒흓흕흚",4],["c581","흟흢흤흦흧흨흪흫흭흮흯흱흲흳흵",6,"흾흿힀힂",5,"힊힋큄큅큇큉큐큔큘큠크큭큰클큼큽킁키킥킨킬킴킵킷킹타탁탄탈탉탐탑탓탔탕태택탠탤탬탭탯탰탱탸턍터턱턴털턺텀텁텃텄텅테텍텐텔템텝텟텡텨텬텼톄톈토톡톤톨톰톱톳통톺톼퇀퇘퇴퇸툇툉툐투툭툰툴툼툽툿퉁퉈퉜"],["c641","힍힎힏힑",6,"힚힜힞",5],["c6a1","퉤튀튁튄튈튐튑튕튜튠튤튬튱트특튼튿틀틂틈틉틋틔틘틜틤틥티틱틴틸팀팁팃팅파팍팎판팔팖팜팝팟팠팡팥패팩팬팰팸팹팻팼팽퍄퍅퍼퍽펀펄펌펍펏펐펑페펙펜펠펨펩펫펭펴편펼폄폅폈평폐폘폡폣포폭폰폴폼폽폿퐁"],["c7a1","퐈퐝푀푄표푠푤푭푯푸푹푼푿풀풂품풉풋풍풔풩퓌퓐퓔퓜퓟퓨퓬퓰퓸퓻퓽프픈플픔픕픗피픽핀필핌핍핏핑하학한할핥함합핫항해핵핸핼햄햅햇했행햐향허헉헌헐헒험헙헛헝헤헥헨헬헴헵헷헹혀혁현혈혐협혓혔형혜혠"],["c8a1","혤혭호혹혼홀홅홈홉홋홍홑화확환활홧황홰홱홴횃횅회획횐횔횝횟횡효횬횰횹횻후훅훈훌훑훔훗훙훠훤훨훰훵훼훽휀휄휑휘휙휜휠휨휩휫휭휴휵휸휼흄흇흉흐흑흔흖흗흘흙흠흡흣흥흩희흰흴흼흽힁히힉힌힐힘힙힛힝"],["caa1","伽佳假價加可呵哥嘉嫁家暇架枷柯歌珂痂稼苛茄街袈訶賈跏軻迦駕刻却各恪慤殼珏脚覺角閣侃刊墾奸姦干幹懇揀杆柬桿澗癎看磵稈竿簡肝艮艱諫間乫喝曷渴碣竭葛褐蝎鞨勘坎堪嵌感憾戡敢柑橄減甘疳監瞰紺邯鑑鑒龕"],["cba1","匣岬甲胛鉀閘剛堈姜岡崗康强彊慷江畺疆糠絳綱羌腔舡薑襁講鋼降鱇介价個凱塏愷愾慨改槪漑疥皆盖箇芥蓋豈鎧開喀客坑更粳羹醵倨去居巨拒据據擧渠炬祛距踞車遽鉅鋸乾件健巾建愆楗腱虔蹇鍵騫乞傑杰桀儉劍劒檢"],["cca1","瞼鈐黔劫怯迲偈憩揭擊格檄激膈覡隔堅牽犬甄絹繭肩見譴遣鵑抉決潔結缺訣兼慊箝謙鉗鎌京俓倞傾儆勁勍卿坰境庚徑慶憬擎敬景暻更梗涇炅烱璟璥瓊痙硬磬竟競絅經耕耿脛莖警輕逕鏡頃頸驚鯨係啓堺契季屆悸戒桂械"],["cda1","棨溪界癸磎稽系繫繼計誡谿階鷄古叩告呱固姑孤尻庫拷攷故敲暠枯槁沽痼皐睾稿羔考股膏苦苽菰藁蠱袴誥賈辜錮雇顧高鼓哭斛曲梏穀谷鵠困坤崑昆梱棍滾琨袞鯤汨滑骨供公共功孔工恐恭拱控攻珙空蚣貢鞏串寡戈果瓜"],["cea1","科菓誇課跨過鍋顆廓槨藿郭串冠官寬慣棺款灌琯瓘管罐菅觀貫關館刮恝括适侊光匡壙廣曠洸炚狂珖筐胱鑛卦掛罫乖傀塊壞怪愧拐槐魁宏紘肱轟交僑咬喬嬌嶠巧攪敎校橋狡皎矯絞翹膠蕎蛟較轎郊餃驕鮫丘久九仇俱具勾"],["cfa1","區口句咎嘔坵垢寇嶇廐懼拘救枸柩構歐毆毬求溝灸狗玖球瞿矩究絿耉臼舅舊苟衢謳購軀逑邱鉤銶駒驅鳩鷗龜國局菊鞠鞫麴君窘群裙軍郡堀屈掘窟宮弓穹窮芎躬倦券勸卷圈拳捲權淃眷厥獗蕨蹶闕机櫃潰詭軌饋句晷歸貴"],["d0a1","鬼龜叫圭奎揆槻珪硅窺竅糾葵規赳逵閨勻均畇筠菌鈞龜橘克剋劇戟棘極隙僅劤勤懃斤根槿瑾筋芹菫覲謹近饉契今妗擒昑檎琴禁禽芩衾衿襟金錦伋及急扱汲級給亘兢矜肯企伎其冀嗜器圻基埼夔奇妓寄岐崎己幾忌技旗旣"],["d1a1","朞期杞棋棄機欺氣汽沂淇玘琦琪璂璣畸畿碁磯祁祇祈祺箕紀綺羈耆耭肌記譏豈起錡錤飢饑騎騏驥麒緊佶吉拮桔金喫儺喇奈娜懦懶拏拿癩",5,"那樂",4,"諾酪駱亂卵暖欄煖爛蘭難鸞捏捺南嵐枏楠湳濫男藍襤拉"],["d2a1","納臘蠟衲囊娘廊",4,"乃來內奈柰耐冷女年撚秊念恬拈捻寧寗努勞奴弩怒擄櫓爐瑙盧",5,"駑魯",10,"濃籠聾膿農惱牢磊腦賂雷尿壘",7,"嫩訥杻紐勒",5,"能菱陵尼泥匿溺多茶"],["d3a1","丹亶但單團壇彖斷旦檀段湍短端簞緞蛋袒鄲鍛撻澾獺疸達啖坍憺擔曇淡湛潭澹痰聃膽蕁覃談譚錟沓畓答踏遝唐堂塘幢戇撞棠當糖螳黨代垈坮大對岱帶待戴擡玳臺袋貸隊黛宅德悳倒刀到圖堵塗導屠島嶋度徒悼挑掉搗桃"],["d4a1","棹櫂淘渡滔濤燾盜睹禱稻萄覩賭跳蹈逃途道都鍍陶韜毒瀆牘犢獨督禿篤纛讀墩惇敦旽暾沌焞燉豚頓乭突仝冬凍動同憧東桐棟洞潼疼瞳童胴董銅兜斗杜枓痘竇荳讀豆逗頭屯臀芚遁遯鈍得嶝橙燈登等藤謄鄧騰喇懶拏癩羅"],["d5a1","蘿螺裸邏樂洛烙珞絡落諾酪駱丹亂卵欄欒瀾爛蘭鸞剌辣嵐擥攬欖濫籃纜藍襤覽拉臘蠟廊朗浪狼琅瑯螂郞來崍徠萊冷掠略亮倆兩凉梁樑粮粱糧良諒輛量侶儷勵呂廬慮戾旅櫚濾礪藜蠣閭驢驪麗黎力曆歷瀝礫轢靂憐戀攣漣"],["d6a1","煉璉練聯蓮輦連鍊冽列劣洌烈裂廉斂殮濂簾獵令伶囹寧岺嶺怜玲笭羚翎聆逞鈴零靈領齡例澧禮醴隷勞怒撈擄櫓潞瀘爐盧老蘆虜路輅露魯鷺鹵碌祿綠菉錄鹿麓論壟弄朧瀧瓏籠聾儡瀨牢磊賂賚賴雷了僚寮廖料燎療瞭聊蓼"],["d7a1","遼鬧龍壘婁屢樓淚漏瘻累縷蔞褸鏤陋劉旒柳榴流溜瀏琉瑠留瘤硫謬類六戮陸侖倫崙淪綸輪律慄栗率隆勒肋凜凌楞稜綾菱陵俚利厘吏唎履悧李梨浬犁狸理璃異痢籬罹羸莉裏裡里釐離鯉吝潾燐璘藺躪隣鱗麟林淋琳臨霖砬"],["d8a1","立笠粒摩瑪痲碼磨馬魔麻寞幕漠膜莫邈万卍娩巒彎慢挽晩曼滿漫灣瞞萬蔓蠻輓饅鰻唜抹末沫茉襪靺亡妄忘忙望網罔芒茫莽輞邙埋妹媒寐昧枚梅每煤罵買賣邁魅脈貊陌驀麥孟氓猛盲盟萌冪覓免冕勉棉沔眄眠綿緬面麵滅"],["d9a1","蔑冥名命明暝椧溟皿瞑茗蓂螟酩銘鳴袂侮冒募姆帽慕摸摹暮某模母毛牟牡瑁眸矛耗芼茅謀謨貌木沐牧目睦穆鶩歿沒夢朦蒙卯墓妙廟描昴杳渺猫竗苗錨務巫憮懋戊拇撫无楙武毋無珷畝繆舞茂蕪誣貿霧鵡墨默們刎吻問文"],["daa1","汶紊紋聞蚊門雯勿沕物味媚尾嵋彌微未梶楣渼湄眉米美薇謎迷靡黴岷悶愍憫敏旻旼民泯玟珉緡閔密蜜謐剝博拍搏撲朴樸泊珀璞箔粕縛膊舶薄迫雹駁伴半反叛拌搬攀斑槃泮潘班畔瘢盤盼磐磻礬絆般蟠返頒飯勃拔撥渤潑"],["dba1","發跋醱鉢髮魃倣傍坊妨尨幇彷房放方旁昉枋榜滂磅紡肪膀舫芳蒡蚌訪謗邦防龐倍俳北培徘拜排杯湃焙盃背胚裴裵褙賠輩配陪伯佰帛柏栢白百魄幡樊煩燔番磻繁蕃藩飜伐筏罰閥凡帆梵氾汎泛犯範范法琺僻劈壁擘檗璧癖"],["dca1","碧蘗闢霹便卞弁變辨辯邊別瞥鱉鼈丙倂兵屛幷昞昺柄棅炳甁病秉竝輧餠騈保堡報寶普步洑湺潽珤甫菩補褓譜輔伏僕匐卜宓復服福腹茯蔔複覆輹輻馥鰒本乶俸奉封峯峰捧棒烽熢琫縫蓬蜂逢鋒鳳不付俯傅剖副否咐埠夫婦"],["dda1","孚孵富府復扶敷斧浮溥父符簿缶腐腑膚艀芙莩訃負賦賻赴趺部釜阜附駙鳧北分吩噴墳奔奮忿憤扮昐汾焚盆粉糞紛芬賁雰不佛弗彿拂崩朋棚硼繃鵬丕備匕匪卑妃婢庇悲憊扉批斐枇榧比毖毗毘沸泌琵痺砒碑秕秘粃緋翡肥"],["dea1","脾臂菲蜚裨誹譬費鄙非飛鼻嚬嬪彬斌檳殯浜濱瀕牝玭貧賓頻憑氷聘騁乍事些仕伺似使俟僿史司唆嗣四士奢娑寫寺射巳師徙思捨斜斯柶査梭死沙泗渣瀉獅砂社祀祠私篩紗絲肆舍莎蓑蛇裟詐詞謝賜赦辭邪飼駟麝削數朔索"],["dfa1","傘刪山散汕珊産疝算蒜酸霰乷撒殺煞薩三參杉森渗芟蔘衫揷澁鈒颯上傷像償商喪嘗孀尙峠常床庠廂想桑橡湘爽牀狀相祥箱翔裳觴詳象賞霜塞璽賽嗇塞穡索色牲生甥省笙墅壻嶼序庶徐恕抒捿敍暑曙書栖棲犀瑞筮絮緖署"],["e0a1","胥舒薯西誓逝鋤黍鼠夕奭席惜昔晳析汐淅潟石碩蓆釋錫仙僊先善嬋宣扇敾旋渲煽琁瑄璇璿癬禪線繕羨腺膳船蘚蟬詵跣選銑鐥饍鮮卨屑楔泄洩渫舌薛褻設說雪齧剡暹殲纖蟾贍閃陝攝涉燮葉城姓宬性惺成星晟猩珹盛省筬"],["e1a1","聖聲腥誠醒世勢歲洗稅笹細說貰召嘯塑宵小少巢所掃搔昭梳沼消溯瀟炤燒甦疏疎瘙笑篠簫素紹蔬蕭蘇訴逍遡邵銷韶騷俗屬束涑粟續謖贖速孫巽損蓀遜飡率宋悚松淞訟誦送頌刷殺灑碎鎖衰釗修受嗽囚垂壽嫂守岫峀帥愁"],["e2a1","戍手授搜收數樹殊水洙漱燧狩獸琇璲瘦睡秀穗竪粹綏綬繡羞脩茱蒐蓚藪袖誰讐輸遂邃酬銖銹隋隧隨雖需須首髓鬚叔塾夙孰宿淑潚熟琡璹肅菽巡徇循恂旬栒楯橓殉洵淳珣盾瞬筍純脣舜荀蓴蕣詢諄醇錞順馴戌術述鉥崇崧"],["e3a1","嵩瑟膝蝨濕拾習褶襲丞乘僧勝升承昇繩蠅陞侍匙嘶始媤尸屎屍市弑恃施是時枾柴猜矢示翅蒔蓍視試詩諡豕豺埴寔式息拭植殖湜熄篒蝕識軾食飾伸侁信呻娠宸愼新晨燼申神紳腎臣莘薪藎蜃訊身辛辰迅失室實悉審尋心沁"],["e4a1","沈深瀋甚芯諶什十拾雙氏亞俄兒啞娥峨我牙芽莪蛾衙訝阿雅餓鴉鵝堊岳嶽幄惡愕握樂渥鄂鍔顎鰐齷安岸按晏案眼雁鞍顔鮟斡謁軋閼唵岩巖庵暗癌菴闇壓押狎鴨仰央怏昻殃秧鴦厓哀埃崖愛曖涯碍艾隘靄厄扼掖液縊腋額"],["e5a1","櫻罌鶯鸚也倻冶夜惹揶椰爺耶若野弱掠略約若葯蒻藥躍亮佯兩凉壤孃恙揚攘敭暘梁楊樣洋瀁煬痒瘍禳穰糧羊良襄諒讓釀陽量養圄御於漁瘀禦語馭魚齬億憶抑檍臆偃堰彦焉言諺孼蘖俺儼嚴奄掩淹嶪業円予余勵呂女如廬"],["e6a1","旅歟汝濾璵礖礪與艅茹輿轝閭餘驪麗黎亦力域役易曆歷疫繹譯轢逆驛嚥堧姸娟宴年延憐戀捐挻撚椽沇沿涎涓淵演漣烟然煙煉燃燕璉硏硯秊筵緣練縯聯衍軟輦蓮連鉛鍊鳶列劣咽悅涅烈熱裂說閱厭廉念捻染殮炎焰琰艶苒"],["e7a1","簾閻髥鹽曄獵燁葉令囹塋寧嶺嶸影怜映暎楹榮永泳渶潁濚瀛瀯煐營獰玲瑛瑩瓔盈穎纓羚聆英詠迎鈴鍈零霙靈領乂倪例刈叡曳汭濊猊睿穢芮藝蘂禮裔詣譽豫醴銳隸霓預五伍俉傲午吾吳嗚塢墺奧娛寤悟惡懊敖旿晤梧汚澳"],["e8a1","烏熬獒筽蜈誤鰲鼇屋沃獄玉鈺溫瑥瘟穩縕蘊兀壅擁瓮甕癰翁邕雍饔渦瓦窩窪臥蛙蝸訛婉完宛梡椀浣玩琓琬碗緩翫脘腕莞豌阮頑曰往旺枉汪王倭娃歪矮外嵬巍猥畏了僚僥凹堯夭妖姚寥寮尿嶢拗搖撓擾料曜樂橈燎燿瑤療"],["e9a1","窈窯繇繞耀腰蓼蟯要謠遙遼邀饒慾欲浴縟褥辱俑傭冗勇埇墉容庸慂榕涌湧溶熔瑢用甬聳茸蓉踊鎔鏞龍于佑偶優又友右宇寓尤愚憂旴牛玗瑀盂祐禑禹紆羽芋藕虞迂遇郵釪隅雨雩勖彧旭昱栯煜稶郁頊云暈橒殞澐熉耘芸蕓"],["eaa1","運隕雲韻蔚鬱亐熊雄元原員圓園垣媛嫄寃怨愿援沅洹湲源爰猿瑗苑袁轅遠阮院願鴛月越鉞位偉僞危圍委威尉慰暐渭爲瑋緯胃萎葦蔿蝟衛褘謂違韋魏乳侑儒兪劉唯喩孺宥幼幽庾悠惟愈愉揄攸有杻柔柚柳楡楢油洧流游溜"],["eba1","濡猶猷琉瑜由留癒硫紐維臾萸裕誘諛諭踰蹂遊逾遺酉釉鍮類六堉戮毓肉育陸倫允奫尹崙淪潤玧胤贇輪鈗閏律慄栗率聿戎瀜絨融隆垠恩慇殷誾銀隱乙吟淫蔭陰音飮揖泣邑凝應膺鷹依倚儀宜意懿擬椅毅疑矣義艤薏蟻衣誼"],["eca1","議醫二以伊利吏夷姨履已弛彛怡易李梨泥爾珥理異痍痢移罹而耳肄苡荑裏裡貽貳邇里離飴餌匿溺瀷益翊翌翼謚人仁刃印吝咽因姻寅引忍湮燐璘絪茵藺蚓認隣靭靷鱗麟一佚佾壹日溢逸鎰馹任壬妊姙恁林淋稔臨荏賃入卄"],["eda1","立笠粒仍剩孕芿仔刺咨姉姿子字孜恣慈滋炙煮玆瓷疵磁紫者自茨蔗藉諮資雌作勺嚼斫昨灼炸爵綽芍酌雀鵲孱棧殘潺盞岑暫潛箴簪蠶雜丈仗匠場墻壯奬將帳庄張掌暲杖樟檣欌漿牆狀獐璋章粧腸臟臧莊葬蔣薔藏裝贓醬長"],["eea1","障再哉在宰才材栽梓渽滓災縡裁財載齋齎爭箏諍錚佇低儲咀姐底抵杵楮樗沮渚狙猪疽箸紵苧菹著藷詛貯躇這邸雎齟勣吊嫡寂摘敵滴狄炙的積笛籍績翟荻謫賊赤跡蹟迪迹適鏑佃佺傳全典前剪塡塼奠專展廛悛戰栓殿氈澱"],["efa1","煎琠田甸畑癲筌箋箭篆纏詮輾轉鈿銓錢鐫電顚顫餞切截折浙癤竊節絶占岾店漸点粘霑鮎點接摺蝶丁井亭停偵呈姃定幀庭廷征情挺政整旌晶晸柾楨檉正汀淀淨渟湞瀞炡玎珽町睛碇禎程穽精綎艇訂諪貞鄭酊釘鉦鋌錠霆靖"],["f0a1","靜頂鼎制劑啼堤帝弟悌提梯濟祭第臍薺製諸蹄醍除際霽題齊俎兆凋助嘲弔彫措操早晁曺曹朝條棗槽漕潮照燥爪璪眺祖祚租稠窕粗糟組繰肇藻蚤詔調趙躁造遭釣阻雕鳥族簇足鏃存尊卒拙猝倧宗從悰慫棕淙琮種終綜縱腫"],["f1a1","踪踵鍾鐘佐坐左座挫罪主住侏做姝胄呪周嗾奏宙州廚晝朱柱株注洲湊澍炷珠疇籌紂紬綢舟蛛註誅走躊輳週酎酒鑄駐竹粥俊儁准埈寯峻晙樽浚準濬焌畯竣蠢逡遵雋駿茁中仲衆重卽櫛楫汁葺增憎曾拯烝甑症繒蒸證贈之只"],["f2a1","咫地址志持指摯支旨智枝枳止池沚漬知砥祉祗紙肢脂至芝芷蜘誌識贄趾遲直稙稷織職唇嗔塵振搢晉晋桭榛殄津溱珍瑨璡畛疹盡眞瞋秦縉縝臻蔯袗診賑軫辰進鎭陣陳震侄叱姪嫉帙桎瓆疾秩窒膣蛭質跌迭斟朕什執潗緝輯"],["f3a1","鏶集徵懲澄且侘借叉嗟嵯差次此磋箚茶蹉車遮捉搾着窄錯鑿齪撰澯燦璨瓚竄簒纂粲纘讚贊鑽餐饌刹察擦札紮僭參塹慘慙懺斬站讒讖倉倡創唱娼廠彰愴敞昌昶暢槍滄漲猖瘡窓脹艙菖蒼債埰寀寨彩採砦綵菜蔡采釵冊柵策"],["f4a1","責凄妻悽處倜刺剔尺慽戚拓擲斥滌瘠脊蹠陟隻仟千喘天川擅泉淺玔穿舛薦賤踐遷釧闡阡韆凸哲喆徹撤澈綴輟轍鐵僉尖沾添甛瞻簽籤詹諂堞妾帖捷牒疊睫諜貼輒廳晴淸聽菁請靑鯖切剃替涕滯締諦逮遞體初剿哨憔抄招梢"],["f5a1","椒楚樵炒焦硝礁礎秒稍肖艸苕草蕉貂超酢醋醮促囑燭矗蜀觸寸忖村邨叢塚寵悤憁摠總聰蔥銃撮催崔最墜抽推椎楸樞湫皺秋芻萩諏趨追鄒酋醜錐錘鎚雛騶鰍丑畜祝竺筑築縮蓄蹙蹴軸逐春椿瑃出朮黜充忠沖蟲衝衷悴膵萃"],["f6a1","贅取吹嘴娶就炊翠聚脆臭趣醉驟鷲側仄厠惻測層侈値嗤峙幟恥梔治淄熾痔痴癡稚穉緇緻置致蚩輜雉馳齒則勅飭親七柒漆侵寢枕沈浸琛砧針鍼蟄秤稱快他咤唾墮妥惰打拖朶楕舵陀馱駝倬卓啄坼度托拓擢晫柝濁濯琢琸託"],["f7a1","鐸呑嘆坦彈憚歎灘炭綻誕奪脫探眈耽貪塔搭榻宕帑湯糖蕩兌台太怠態殆汰泰笞胎苔跆邰颱宅擇澤撑攄兎吐土討慟桶洞痛筒統通堆槌腿褪退頹偸套妬投透鬪慝特闖坡婆巴把播擺杷波派爬琶破罷芭跛頗判坂板版瓣販辦鈑"],["f8a1","阪八叭捌佩唄悖敗沛浿牌狽稗覇貝彭澎烹膨愎便偏扁片篇編翩遍鞭騙貶坪平枰萍評吠嬖幣廢弊斃肺蔽閉陛佈包匍匏咆哺圃布怖抛抱捕暴泡浦疱砲胞脯苞葡蒲袍褒逋鋪飽鮑幅暴曝瀑爆輻俵剽彪慓杓標漂瓢票表豹飇飄驃"],["f9a1","品稟楓諷豊風馮彼披疲皮被避陂匹弼必泌珌畢疋筆苾馝乏逼下何厦夏廈昰河瑕荷蝦賀遐霞鰕壑學虐謔鶴寒恨悍旱汗漢澣瀚罕翰閑閒限韓割轄函含咸啣喊檻涵緘艦銜陷鹹合哈盒蛤閤闔陜亢伉姮嫦巷恒抗杭桁沆港缸肛航"],["faa1","行降項亥偕咳垓奚孩害懈楷海瀣蟹解該諧邂駭骸劾核倖幸杏荇行享向嚮珦鄕響餉饗香噓墟虛許憲櫶獻軒歇險驗奕爀赫革俔峴弦懸晛泫炫玄玹現眩睍絃絢縣舷衒見賢鉉顯孑穴血頁嫌俠協夾峽挾浹狹脅脇莢鋏頰亨兄刑型"],["fba1","形泂滎瀅灐炯熒珩瑩荊螢衡逈邢鎣馨兮彗惠慧暳蕙蹊醯鞋乎互呼壕壺好岵弧戶扈昊晧毫浩淏湖滸澔濠濩灝狐琥瑚瓠皓祜糊縞胡芦葫蒿虎號蝴護豪鎬頀顥惑或酷婚昏混渾琿魂忽惚笏哄弘汞泓洪烘紅虹訌鴻化和嬅樺火畵"],["fca1","禍禾花華話譁貨靴廓擴攫確碻穫丸喚奐宦幻患換歡晥桓渙煥環紈還驩鰥活滑猾豁闊凰幌徨恍惶愰慌晃晄榥況湟滉潢煌璜皇篁簧荒蝗遑隍黃匯回廻徊恢悔懷晦會檜淮澮灰獪繪膾茴蛔誨賄劃獲宖橫鐄哮嚆孝效斅曉梟涍淆"],["fda1","爻肴酵驍侯候厚后吼喉嗅帿後朽煦珝逅勛勳塤壎焄熏燻薰訓暈薨喧暄煊萱卉喙毁彙徽揮暉煇諱輝麾休携烋畦虧恤譎鷸兇凶匈洶胸黑昕欣炘痕吃屹紇訖欠欽歆吸恰洽翕興僖凞喜噫囍姬嬉希憙憘戱晞曦熙熹熺犧禧稀羲詰"]];
|
17178 |
|
17179 | }),
|
17180 | ,
|
17181 | ,
|
17182 |
|
17183 | (function(module, __unusedexports, __webpack_require__) {
|
17184 |
|
17185 | "use strict";
|
17186 |
|
17187 |
|
17188 |
|
17189 |
|
17190 |
|
17191 |
|
17192 |
|
17193 |
|
17194 |
|
17195 |
|
17196 |
|
17197 |
|
17198 |
|
17199 |
|
17200 |
|
17201 |
|
17202 |
|
17203 |
|
17204 |
|
17205 |
|
17206 |
|
17207 |
|
17208 |
|
17209 |
|
17210 |
|
17211 |
|
17212 |
|
17213 |
|
17214 |
|
17215 |
|
17216 | var pna = __webpack_require__(511);
|
17217 |
|
17218 |
|
17219 |
|
17220 | var objectKeys = Object.keys || function (obj) {
|
17221 | var keys = [];
|
17222 | for (var key in obj) {
|
17223 | keys.push(key);
|
17224 | }return keys;
|
17225 | };
|
17226 |
|
17227 |
|
17228 | module.exports = Duplex;
|
17229 |
|
17230 |
|
17231 | var util = Object.create(__webpack_require__(130));
|
17232 | util.inherits = __webpack_require__(536);
|
17233 |
|
17234 |
|
17235 | var Readable = __webpack_require__(706);
|
17236 | var Writable = __webpack_require__(860);
|
17237 |
|
17238 | util.inherits(Duplex, Readable);
|
17239 |
|
17240 | {
|
17241 |
|
17242 | var keys = objectKeys(Writable.prototype);
|
17243 | for (var v = 0; v < keys.length; v++) {
|
17244 | var method = keys[v];
|
17245 | if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];
|
17246 | }
|
17247 | }
|
17248 |
|
17249 | function Duplex(options) {
|
17250 | if (!(this instanceof Duplex)) return new Duplex(options);
|
17251 |
|
17252 | Readable.call(this, options);
|
17253 | Writable.call(this, options);
|
17254 |
|
17255 | if (options && options.readable === false) this.readable = false;
|
17256 |
|
17257 | if (options && options.writable === false) this.writable = false;
|
17258 |
|
17259 | this.allowHalfOpen = true;
|
17260 | if (options && options.allowHalfOpen === false) this.allowHalfOpen = false;
|
17261 |
|
17262 | this.once('end', onend);
|
17263 | }
|
17264 |
|
17265 | Object.defineProperty(Duplex.prototype, 'writableHighWaterMark', {
|
17266 |
|
17267 |
|
17268 |
|
17269 | enumerable: false,
|
17270 | get: function () {
|
17271 | return this._writableState.highWaterMark;
|
17272 | }
|
17273 | });
|
17274 |
|
17275 |
|
17276 | function onend() {
|
17277 |
|
17278 |
|
17279 | if (this.allowHalfOpen || this._writableState.ended) return;
|
17280 |
|
17281 |
|
17282 |
|
17283 | pna.nextTick(onEndNT, this);
|
17284 | }
|
17285 |
|
17286 | function onEndNT(self) {
|
17287 | self.end();
|
17288 | }
|
17289 |
|
17290 | Object.defineProperty(Duplex.prototype, 'destroyed', {
|
17291 | get: function () {
|
17292 | if (this._readableState === undefined || this._writableState === undefined) {
|
17293 | return false;
|
17294 | }
|
17295 | return this._readableState.destroyed && this._writableState.destroyed;
|
17296 | },
|
17297 | set: function (value) {
|
17298 |
|
17299 |
|
17300 | if (this._readableState === undefined || this._writableState === undefined) {
|
17301 | return;
|
17302 | }
|
17303 |
|
17304 |
|
17305 |
|
17306 | this._readableState.destroyed = value;
|
17307 | this._writableState.destroyed = value;
|
17308 | }
|
17309 | });
|
17310 |
|
17311 | Duplex.prototype._destroy = function (err, cb) {
|
17312 | this.push(null);
|
17313 | this.end();
|
17314 |
|
17315 | pna.nextTick(cb, err);
|
17316 | };
|
17317 |
|
17318 | }),
|
17319 |
|
17320 | (function(module, __unusedexports, __webpack_require__) {
|
17321 |
|
17322 | module.exports = realpath
|
17323 | realpath.realpath = realpath
|
17324 | realpath.sync = realpathSync
|
17325 | realpath.realpathSync = realpathSync
|
17326 | realpath.monkeypatch = monkeypatch
|
17327 | realpath.unmonkeypatch = unmonkeypatch
|
17328 |
|
17329 | var fs = __webpack_require__(747)
|
17330 | var origRealpath = fs.realpath
|
17331 | var origRealpathSync = fs.realpathSync
|
17332 |
|
17333 | var version = process.version
|
17334 | var ok = /^v[0-5]\./.test(version)
|
17335 | var old = __webpack_require__(380)
|
17336 |
|
17337 | function newError (er) {
|
17338 | return er && er.syscall === 'realpath' && (
|
17339 | er.code === 'ELOOP' ||
|
17340 | er.code === 'ENOMEM' ||
|
17341 | er.code === 'ENAMETOOLONG'
|
17342 | )
|
17343 | }
|
17344 |
|
17345 | function realpath (p, cache, cb) {
|
17346 | if (ok) {
|
17347 | return origRealpath(p, cache, cb)
|
17348 | }
|
17349 |
|
17350 | if (typeof cache === 'function') {
|
17351 | cb = cache
|
17352 | cache = null
|
17353 | }
|
17354 | origRealpath(p, cache, function (er, result) {
|
17355 | if (newError(er)) {
|
17356 | old.realpath(p, cache, cb)
|
17357 | } else {
|
17358 | cb(er, result)
|
17359 | }
|
17360 | })
|
17361 | }
|
17362 |
|
17363 | function realpathSync (p, cache) {
|
17364 | if (ok) {
|
17365 | return origRealpathSync(p, cache)
|
17366 | }
|
17367 |
|
17368 | try {
|
17369 | return origRealpathSync(p, cache)
|
17370 | } catch (er) {
|
17371 | if (newError(er)) {
|
17372 | return old.realpathSync(p, cache)
|
17373 | } else {
|
17374 | throw er
|
17375 | }
|
17376 | }
|
17377 | }
|
17378 |
|
17379 | function monkeypatch () {
|
17380 | fs.realpath = realpath
|
17381 | fs.realpathSync = realpathSync
|
17382 | }
|
17383 |
|
17384 | function unmonkeypatch () {
|
17385 | fs.realpath = origRealpath
|
17386 | fs.realpathSync = origRealpathSync
|
17387 | }
|
17388 |
|
17389 |
|
17390 | }),
|
17391 | ,
|
17392 | ,
|
17393 |
|
17394 | (function(module, __unusedexports, __webpack_require__) {
|
17395 |
|
17396 | "use strict";
|
17397 | module = __webpack_require__.nmd(module);
|
17398 |
|
17399 |
|
17400 | const wrapAnsi16 = (fn, offset) => (...args) => {
|
17401 | const code = fn(...args);
|
17402 | return `\u001B[${code + offset}m`;
|
17403 | };
|
17404 |
|
17405 | const wrapAnsi256 = (fn, offset) => (...args) => {
|
17406 | const code = fn(...args);
|
17407 | return `\u001B[${38 + offset};5;${code}m`;
|
17408 | };
|
17409 |
|
17410 | const wrapAnsi16m = (fn, offset) => (...args) => {
|
17411 | const rgb = fn(...args);
|
17412 | return `\u001B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
|
17413 | };
|
17414 |
|
17415 | const ansi2ansi = n => n;
|
17416 | const rgb2rgb = (r, g, b) => [r, g, b];
|
17417 |
|
17418 | const setLazyProperty = (object, property, get) => {
|
17419 | Object.defineProperty(object, property, {
|
17420 | get: () => {
|
17421 | const value = get();
|
17422 |
|
17423 | Object.defineProperty(object, property, {
|
17424 | value,
|
17425 | enumerable: true,
|
17426 | configurable: true
|
17427 | });
|
17428 |
|
17429 | return value;
|
17430 | },
|
17431 | enumerable: true,
|
17432 | configurable: true
|
17433 | });
|
17434 | };
|
17435 |
|
17436 |
|
17437 | let colorConvert;
|
17438 | const makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
|
17439 | if (colorConvert === undefined) {
|
17440 | colorConvert = __webpack_require__(117);
|
17441 | }
|
17442 |
|
17443 | const offset = isBackground ? 10 : 0;
|
17444 | const styles = {};
|
17445 |
|
17446 | for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
|
17447 | const name = sourceSpace === 'ansi16' ? 'ansi' : sourceSpace;
|
17448 | if (sourceSpace === targetSpace) {
|
17449 | styles[name] = wrap(identity, offset);
|
17450 | } else if (typeof suite === 'object') {
|
17451 | styles[name] = wrap(suite[targetSpace], offset);
|
17452 | }
|
17453 | }
|
17454 |
|
17455 | return styles;
|
17456 | };
|
17457 |
|
17458 | function assembleStyles() {
|
17459 | const codes = new Map();
|
17460 | const styles = {
|
17461 | modifier: {
|
17462 | reset: [0, 0],
|
17463 |
|
17464 | bold: [1, 22],
|
17465 | dim: [2, 22],
|
17466 | italic: [3, 23],
|
17467 | underline: [4, 24],
|
17468 | inverse: [7, 27],
|
17469 | hidden: [8, 28],
|
17470 | strikethrough: [9, 29]
|
17471 | },
|
17472 | color: {
|
17473 | black: [30, 39],
|
17474 | red: [31, 39],
|
17475 | green: [32, 39],
|
17476 | yellow: [33, 39],
|
17477 | blue: [34, 39],
|
17478 | magenta: [35, 39],
|
17479 | cyan: [36, 39],
|
17480 | white: [37, 39],
|
17481 |
|
17482 |
|
17483 | blackBright: [90, 39],
|
17484 | redBright: [91, 39],
|
17485 | greenBright: [92, 39],
|
17486 | yellowBright: [93, 39],
|
17487 | blueBright: [94, 39],
|
17488 | magentaBright: [95, 39],
|
17489 | cyanBright: [96, 39],
|
17490 | whiteBright: [97, 39]
|
17491 | },
|
17492 | bgColor: {
|
17493 | bgBlack: [40, 49],
|
17494 | bgRed: [41, 49],
|
17495 | bgGreen: [42, 49],
|
17496 | bgYellow: [43, 49],
|
17497 | bgBlue: [44, 49],
|
17498 | bgMagenta: [45, 49],
|
17499 | bgCyan: [46, 49],
|
17500 | bgWhite: [47, 49],
|
17501 |
|
17502 |
|
17503 | bgBlackBright: [100, 49],
|
17504 | bgRedBright: [101, 49],
|
17505 | bgGreenBright: [102, 49],
|
17506 | bgYellowBright: [103, 49],
|
17507 | bgBlueBright: [104, 49],
|
17508 | bgMagentaBright: [105, 49],
|
17509 | bgCyanBright: [106, 49],
|
17510 | bgWhiteBright: [107, 49]
|
17511 | }
|
17512 | };
|
17513 |
|
17514 |
|
17515 | styles.color.gray = styles.color.blackBright;
|
17516 | styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
|
17517 | styles.color.grey = styles.color.blackBright;
|
17518 | styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
|
17519 |
|
17520 | for (const [groupName, group] of Object.entries(styles)) {
|
17521 | for (const [styleName, style] of Object.entries(group)) {
|
17522 | styles[styleName] = {
|
17523 | open: `\u001B[${style[0]}m`,
|
17524 | close: `\u001B[${style[1]}m`
|
17525 | };
|
17526 |
|
17527 | group[styleName] = styles[styleName];
|
17528 |
|
17529 | codes.set(style[0], style[1]);
|
17530 | }
|
17531 |
|
17532 | Object.defineProperty(styles, groupName, {
|
17533 | value: group,
|
17534 | enumerable: false
|
17535 | });
|
17536 | }
|
17537 |
|
17538 | Object.defineProperty(styles, 'codes', {
|
17539 | value: codes,
|
17540 | enumerable: false
|
17541 | });
|
17542 |
|
17543 | styles.color.close = '\u001B[39m';
|
17544 | styles.bgColor.close = '\u001B[49m';
|
17545 |
|
17546 | setLazyProperty(styles.color, 'ansi', () => makeDynamicStyles(wrapAnsi16, 'ansi16', ansi2ansi, false));
|
17547 | setLazyProperty(styles.color, 'ansi256', () => makeDynamicStyles(wrapAnsi256, 'ansi256', ansi2ansi, false));
|
17548 | setLazyProperty(styles.color, 'ansi16m', () => makeDynamicStyles(wrapAnsi16m, 'rgb', rgb2rgb, false));
|
17549 | setLazyProperty(styles.bgColor, 'ansi', () => makeDynamicStyles(wrapAnsi16, 'ansi16', ansi2ansi, true));
|
17550 | setLazyProperty(styles.bgColor, 'ansi256', () => makeDynamicStyles(wrapAnsi256, 'ansi256', ansi2ansi, true));
|
17551 | setLazyProperty(styles.bgColor, 'ansi16m', () => makeDynamicStyles(wrapAnsi16m, 'rgb', rgb2rgb, true));
|
17552 |
|
17553 | return styles;
|
17554 | }
|
17555 |
|
17556 |
|
17557 | Object.defineProperty(module, 'exports', {
|
17558 | enumerable: true,
|
17559 | get: assembleStyles
|
17560 | });
|
17561 |
|
17562 |
|
17563 | /***/ }),
|
17564 | /* 593 */,
|
17565 | /* 594 */
|
17566 | /***/ (function(module, __unusedexports, __webpack_require__) {
|
17567 |
|
17568 | "use strict";
|
17569 |
|
17570 |
|
17571 |
|
17572 |
|
17573 | var common = __webpack_require__(414);
|
17574 | var YAMLException = __webpack_require__(246);
|
17575 | var Mark = __webpack_require__(450);
|
17576 | var DEFAULT_SAFE_SCHEMA = __webpack_require__(461);
|
17577 | var DEFAULT_FULL_SCHEMA = __webpack_require__(84);
|
17578 |
|
17579 |
|
17580 | var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
17581 |
|
17582 |
|
17583 | var CONTEXT_FLOW_IN = 1;
|
17584 | var CONTEXT_FLOW_OUT = 2;
|
17585 | var CONTEXT_BLOCK_IN = 3;
|
17586 | var CONTEXT_BLOCK_OUT = 4;
|
17587 |
|
17588 |
|
17589 | var CHOMPING_CLIP = 1;
|
17590 | var CHOMPING_STRIP = 2;
|
17591 | var CHOMPING_KEEP = 3;
|
17592 |
|
17593 |
|
17594 | var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
|
17595 | var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
|
17596 | var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/;
|
17597 | var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i;
|
17598 | var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
17599 |
|
17600 |
|
17601 | function _class(obj) { return Object.prototype.toString.call(obj); }
|
17602 |
|
17603 | function is_EOL(c) {
|
17604 | return (c === 0x0A) || (c === 0x0D);
|
17605 | }
|
17606 |
|
17607 | function is_WHITE_SPACE(c) {
|
17608 | return (c === 0x09) || (c === 0x20);
|
17609 | }
|
17610 |
|
17611 | function is_WS_OR_EOL(c) {
|
17612 | return (c === 0x09) ||
|
17613 | (c === 0x20) ||
|
17614 | (c === 0x0A) ||
|
17615 | (c === 0x0D);
|
17616 | }
|
17617 |
|
17618 | function is_FLOW_INDICATOR(c) {
|
17619 | return c === 0x2C ||
|
17620 | c === 0x5B ||
|
17621 | c === 0x5D ||
|
17622 | c === 0x7B ||
|
17623 | c === 0x7D;
|
17624 | }
|
17625 |
|
17626 | function fromHexCode(c) {
|
17627 | var lc;
|
17628 |
|
17629 | if ((0x30 <= c) && (c <= 0x39)) {
|
17630 | return c - 0x30;
|
17631 | }
|
17632 |
|
17633 |
|
17634 | lc = c | 0x20;
|
17635 |
|
17636 | if ((0x61 <= lc) && (lc <= 0x66)) {
|
17637 | return lc - 0x61 + 10;
|
17638 | }
|
17639 |
|
17640 | return -1;
|
17641 | }
|
17642 |
|
17643 | function escapedHexLen(c) {
|
17644 | if (c === 0x78) { return 2; }
|
17645 | if (c === 0x75) { return 4; }
|
17646 | if (c === 0x55) { return 8; }
|
17647 | return 0;
|
17648 | }
|
17649 |
|
17650 | function fromDecimalCode(c) {
|
17651 | if ((0x30 <= c) && (c <= 0x39)) {
|
17652 | return c - 0x30;
|
17653 | }
|
17654 |
|
17655 | return -1;
|
17656 | }
|
17657 |
|
17658 | function simpleEscapeSequence(c) {
|
17659 |
|
17660 | return (c === 0x30) ? '\x00' :
|
17661 | (c === 0x61) ? '\x07' :
|
17662 | (c === 0x62) ? '\x08' :
|
17663 | (c === 0x74) ? '\x09' :
|
17664 | (c === 0x09) ? '\x09' :
|
17665 | (c === 0x6E) ? '\x0A' :
|
17666 | (c === 0x76) ? '\x0B' :
|
17667 | (c === 0x66) ? '\x0C' :
|
17668 | (c === 0x72) ? '\x0D' :
|
17669 | (c === 0x65) ? '\x1B' :
|
17670 | (c === 0x20) ? ' ' :
|
17671 | (c === 0x22) ? '\x22' :
|
17672 | (c === 0x2F) ? '/' :
|
17673 | (c === 0x5C) ? '\x5C' :
|
17674 | (c === 0x4E) ? '\x85' :
|
17675 | (c === 0x5F) ? '\xA0' :
|
17676 | (c === 0x4C) ? '\u2028' :
|
17677 | (c === 0x50) ? '\u2029' : '';
|
17678 | }
|
17679 |
|
17680 | function charFromCodepoint(c) {
|
17681 | if (c <= 0xFFFF) {
|
17682 | return String.fromCharCode(c);
|
17683 | }
|
17684 |
|
17685 |
|
17686 | return String.fromCharCode(
|
17687 | ((c - 0x010000) >> 10) + 0xD800,
|
17688 | ((c - 0x010000) & 0x03FF) + 0xDC00
|
17689 | );
|
17690 | }
|
17691 |
|
17692 | var simpleEscapeCheck = new Array(256);
|
17693 | var simpleEscapeMap = new Array(256);
|
17694 | for (var i = 0; i < 256; i++) {
|
17695 | simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
|
17696 | simpleEscapeMap[i] = simpleEscapeSequence(i);
|
17697 | }
|
17698 |
|
17699 |
|
17700 | function State(input, options) {
|
17701 | this.input = input;
|
17702 |
|
17703 | this.filename = options['filename'] || null;
|
17704 | this.schema = options['schema'] || DEFAULT_FULL_SCHEMA;
|
17705 | this.onWarning = options['onWarning'] || null;
|
17706 | this.legacy = options['legacy'] || false;
|
17707 | this.json = options['json'] || false;
|
17708 | this.listener = options['listener'] || null;
|
17709 |
|
17710 | this.implicitTypes = this.schema.compiledImplicit;
|
17711 | this.typeMap = this.schema.compiledTypeMap;
|
17712 |
|
17713 | this.length = input.length;
|
17714 | this.position = 0;
|
17715 | this.line = 0;
|
17716 | this.lineStart = 0;
|
17717 | this.lineIndent = 0;
|
17718 |
|
17719 | this.documents = [];
|
17720 |
|
17721 | |
17722 |
|
17723 |
|
17724 |
|
17725 |
|
17726 |
|
17727 |
|
17728 |
|
17729 |
|
17730 |
|
17731 | }
|
17732 |
|
17733 |
|
17734 | function generateError(state, message) {
|
17735 | return new YAMLException(
|
17736 | message,
|
17737 | new Mark(state.filename, state.input, state.position, state.line, (state.position - state.lineStart)));
|
17738 | }
|
17739 |
|
17740 | function throwError(state, message) {
|
17741 | throw generateError(state, message);
|
17742 | }
|
17743 |
|
17744 | function throwWarning(state, message) {
|
17745 | if (state.onWarning) {
|
17746 | state.onWarning.call(null, generateError(state, message));
|
17747 | }
|
17748 | }
|
17749 |
|
17750 |
|
17751 | var directiveHandlers = {
|
17752 |
|
17753 | YAML: function handleYamlDirective(state, name, args) {
|
17754 |
|
17755 | var match, major, minor;
|
17756 |
|
17757 | if (state.version !== null) {
|
17758 | throwError(state, 'duplication of %YAML directive');
|
17759 | }
|
17760 |
|
17761 | if (args.length !== 1) {
|
17762 | throwError(state, 'YAML directive accepts exactly one argument');
|
17763 | }
|
17764 |
|
17765 | match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
|
17766 |
|
17767 | if (match === null) {
|
17768 | throwError(state, 'ill-formed argument of the YAML directive');
|
17769 | }
|
17770 |
|
17771 | major = parseInt(match[1], 10);
|
17772 | minor = parseInt(match[2], 10);
|
17773 |
|
17774 | if (major !== 1) {
|
17775 | throwError(state, 'unacceptable YAML version of the document');
|
17776 | }
|
17777 |
|
17778 | state.version = args[0];
|
17779 | state.checkLineBreaks = (minor < 2);
|
17780 |
|
17781 | if (minor !== 1 && minor !== 2) {
|
17782 | throwWarning(state, 'unsupported YAML version of the document');
|
17783 | }
|
17784 | },
|
17785 |
|
17786 | TAG: function handleTagDirective(state, name, args) {
|
17787 |
|
17788 | var handle, prefix;
|
17789 |
|
17790 | if (args.length !== 2) {
|
17791 | throwError(state, 'TAG directive accepts exactly two arguments');
|
17792 | }
|
17793 |
|
17794 | handle = args[0];
|
17795 | prefix = args[1];
|
17796 |
|
17797 | if (!PATTERN_TAG_HANDLE.test(handle)) {
|
17798 | throwError(state, 'ill-formed tag handle (first argument) of the TAG directive');
|
17799 | }
|
17800 |
|
17801 | if (_hasOwnProperty.call(state.tagMap, handle)) {
|
17802 | throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
|
17803 | }
|
17804 |
|
17805 | if (!PATTERN_TAG_URI.test(prefix)) {
|
17806 | throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive');
|
17807 | }
|
17808 |
|
17809 | state.tagMap[handle] = prefix;
|
17810 | }
|
17811 | };
|
17812 |
|
17813 |
|
17814 | function captureSegment(state, start, end, checkJson) {
|
17815 | var _position, _length, _character, _result;
|
17816 |
|
17817 | if (start < end) {
|
17818 | _result = state.input.slice(start, end);
|
17819 |
|
17820 | if (checkJson) {
|
17821 | for (_position = 0, _length = _result.length; _position < _length; _position += 1) {
|
17822 | _character = _result.charCodeAt(_position);
|
17823 | if (!(_character === 0x09 ||
|
17824 | (0x20 <= _character && _character <= 0x10FFFF))) {
|
17825 | throwError(state, 'expected valid JSON character');
|
17826 | }
|
17827 | }
|
17828 | } else if (PATTERN_NON_PRINTABLE.test(_result)) {
|
17829 | throwError(state, 'the stream contains non-printable characters');
|
17830 | }
|
17831 |
|
17832 | state.result += _result;
|
17833 | }
|
17834 | }
|
17835 |
|
17836 | function mergeMappings(state, destination, source, overridableKeys) {
|
17837 | var sourceKeys, key, index, quantity;
|
17838 |
|
17839 | if (!common.isObject(source)) {
|
17840 | throwError(state, 'cannot merge mappings; the provided source object is unacceptable');
|
17841 | }
|
17842 |
|
17843 | sourceKeys = Object.keys(source);
|
17844 |
|
17845 | for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
|
17846 | key = sourceKeys[index];
|
17847 |
|
17848 | if (!_hasOwnProperty.call(destination, key)) {
|
17849 | destination[key] = source[key];
|
17850 | overridableKeys[key] = true;
|
17851 | }
|
17852 | }
|
17853 | }
|
17854 |
|
17855 | function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startPos) {
|
17856 | var index, quantity;
|
17857 |
|
17858 |
|
17859 |
|
17860 |
|
17861 | if (Array.isArray(keyNode)) {
|
17862 | keyNode = Array.prototype.slice.call(keyNode);
|
17863 |
|
17864 | for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {
|
17865 | if (Array.isArray(keyNode[index])) {
|
17866 | throwError(state, 'nested arrays are not supported inside keys');
|
17867 | }
|
17868 |
|
17869 | if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') {
|
17870 | keyNode[index] = '[object Object]';
|
17871 | }
|
17872 | }
|
17873 | }
|
17874 |
|
17875 |
|
17876 |
|
17877 |
|
17878 | if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') {
|
17879 | keyNode = '[object Object]';
|
17880 | }
|
17881 |
|
17882 |
|
17883 | keyNode = String(keyNode);
|
17884 |
|
17885 | if (_result === null) {
|
17886 | _result = {};
|
17887 | }
|
17888 |
|
17889 | if (keyTag === 'tag:yaml.org,2002:merge') {
|
17890 | if (Array.isArray(valueNode)) {
|
17891 | for (index = 0, quantity = valueNode.length; index < quantity; index += 1) {
|
17892 | mergeMappings(state, _result, valueNode[index], overridableKeys);
|
17893 | }
|
17894 | } else {
|
17895 | mergeMappings(state, _result, valueNode, overridableKeys);
|
17896 | }
|
17897 | } else {
|
17898 | if (!state.json &&
|
17899 | !_hasOwnProperty.call(overridableKeys, keyNode) &&
|
17900 | _hasOwnProperty.call(_result, keyNode)) {
|
17901 | state.line = startLine || state.line;
|
17902 | state.position = startPos || state.position;
|
17903 | throwError(state, 'duplicated mapping key');
|
17904 | }
|
17905 | _result[keyNode] = valueNode;
|
17906 | delete overridableKeys[keyNode];
|
17907 | }
|
17908 |
|
17909 | return _result;
|
17910 | }
|
17911 |
|
17912 | function readLineBreak(state) {
|
17913 | var ch;
|
17914 |
|
17915 | ch = state.input.charCodeAt(state.position);
|
17916 |
|
17917 | if (ch === 0x0A) {
|
17918 | state.position++;
|
17919 | } else if (ch === 0x0D) {
|
17920 | state.position++;
|
17921 | if (state.input.charCodeAt(state.position) === 0x0A) {
|
17922 | state.position++;
|
17923 | }
|
17924 | } else {
|
17925 | throwError(state, 'a line break is expected');
|
17926 | }
|
17927 |
|
17928 | state.line += 1;
|
17929 | state.lineStart = state.position;
|
17930 | }
|
17931 |
|
17932 | function skipSeparationSpace(state, allowComments, checkIndent) {
|
17933 | var lineBreaks = 0,
|
17934 | ch = state.input.charCodeAt(state.position);
|
17935 |
|
17936 | while (ch !== 0) {
|
17937 | while (is_WHITE_SPACE(ch)) {
|
17938 | ch = state.input.charCodeAt(++state.position);
|
17939 | }
|
17940 |
|
17941 | if (allowComments && ch === 0x23) {
|
17942 | do {
|
17943 | ch = state.input.charCodeAt(++state.position);
|
17944 | } while (ch !== 0x0A && ch !== 0x0D && ch !== 0);
|
17945 | }
|
17946 |
|
17947 | if (is_EOL(ch)) {
|
17948 | readLineBreak(state);
|
17949 |
|
17950 | ch = state.input.charCodeAt(state.position);
|
17951 | lineBreaks++;
|
17952 | state.lineIndent = 0;
|
17953 |
|
17954 | while (ch === 0x20) {
|
17955 | state.lineIndent++;
|
17956 | ch = state.input.charCodeAt(++state.position);
|
17957 | }
|
17958 | } else {
|
17959 | break;
|
17960 | }
|
17961 | }
|
17962 |
|
17963 | if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
|
17964 | throwWarning(state, 'deficient indentation');
|
17965 | }
|
17966 |
|
17967 | return lineBreaks;
|
17968 | }
|
17969 |
|
17970 | function testDocumentSeparator(state) {
|
17971 | var _position = state.position,
|
17972 | ch;
|
17973 |
|
17974 | ch = state.input.charCodeAt(_position);
|
17975 |
|
17976 |
|
17977 |
|
17978 | if ((ch === 0x2D || ch === 0x2E) &&
|
17979 | ch === state.input.charCodeAt(_position + 1) &&
|
17980 | ch === state.input.charCodeAt(_position + 2)) {
|
17981 |
|
17982 | _position += 3;
|
17983 |
|
17984 | ch = state.input.charCodeAt(_position);
|
17985 |
|
17986 | if (ch === 0 || is_WS_OR_EOL(ch)) {
|
17987 | return true;
|
17988 | }
|
17989 | }
|
17990 |
|
17991 | return false;
|
17992 | }
|
17993 |
|
17994 | function writeFoldedLines(state, count) {
|
17995 | if (count === 1) {
|
17996 | state.result += ' ';
|
17997 | } else if (count > 1) {
|
17998 | state.result += common.repeat('\n', count - 1);
|
17999 | }
|
18000 | }
|
18001 |
|
18002 |
|
18003 | function readPlainScalar(state, nodeIndent, withinFlowCollection) {
|
18004 | var preceding,
|
18005 | following,
|
18006 | captureStart,
|
18007 | captureEnd,
|
18008 | hasPendingContent,
|
18009 | _line,
|
18010 | _lineStart,
|
18011 | _lineIndent,
|
18012 | _kind = state.kind,
|
18013 | _result = state.result,
|
18014 | ch;
|
18015 |
|
18016 | ch = state.input.charCodeAt(state.position);
|
18017 |
|
18018 | if (is_WS_OR_EOL(ch) ||
|
18019 | is_FLOW_INDICATOR(ch) ||
|
18020 | ch === 0x23 ||
|
18021 | ch === 0x26 ||
|
18022 | ch === 0x2A ||
|
18023 | ch === 0x21 ||
|
18024 | ch === 0x7C ||
|
18025 | ch === 0x3E ||
|
18026 | ch === 0x27 ||
|
18027 | ch === 0x22 ||
|
18028 | ch === 0x25 ||
|
18029 | ch === 0x40 ||
|
18030 | ch === 0x60) {
|
18031 | return false;
|
18032 | }
|
18033 |
|
18034 | if (ch === 0x3F || ch === 0x2D) {
|
18035 | following = state.input.charCodeAt(state.position + 1);
|
18036 |
|
18037 | if (is_WS_OR_EOL(following) ||
|
18038 | withinFlowCollection && is_FLOW_INDICATOR(following)) {
|
18039 | return false;
|
18040 | }
|
18041 | }
|
18042 |
|
18043 | state.kind = 'scalar';
|
18044 | state.result = '';
|
18045 | captureStart = captureEnd = state.position;
|
18046 | hasPendingContent = false;
|
18047 |
|
18048 | while (ch !== 0) {
|
18049 | if (ch === 0x3A) {
|
18050 | following = state.input.charCodeAt(state.position + 1);
|
18051 |
|
18052 | if (is_WS_OR_EOL(following) ||
|
18053 | withinFlowCollection && is_FLOW_INDICATOR(following)) {
|
18054 | break;
|
18055 | }
|
18056 |
|
18057 | } else if (ch === 0x23) {
|
18058 | preceding = state.input.charCodeAt(state.position - 1);
|
18059 |
|
18060 | if (is_WS_OR_EOL(preceding)) {
|
18061 | break;
|
18062 | }
|
18063 |
|
18064 | } else if ((state.position === state.lineStart && testDocumentSeparator(state)) ||
|
18065 | withinFlowCollection && is_FLOW_INDICATOR(ch)) {
|
18066 | break;
|
18067 |
|
18068 | } else if (is_EOL(ch)) {
|
18069 | _line = state.line;
|
18070 | _lineStart = state.lineStart;
|
18071 | _lineIndent = state.lineIndent;
|
18072 | skipSeparationSpace(state, false, -1);
|
18073 |
|
18074 | if (state.lineIndent >= nodeIndent) {
|
18075 | hasPendingContent = true;
|
18076 | ch = state.input.charCodeAt(state.position);
|
18077 | continue;
|
18078 | } else {
|
18079 | state.position = captureEnd;
|
18080 | state.line = _line;
|
18081 | state.lineStart = _lineStart;
|
18082 | state.lineIndent = _lineIndent;
|
18083 | break;
|
18084 | }
|
18085 | }
|
18086 |
|
18087 | if (hasPendingContent) {
|
18088 | captureSegment(state, captureStart, captureEnd, false);
|
18089 | writeFoldedLines(state, state.line - _line);
|
18090 | captureStart = captureEnd = state.position;
|
18091 | hasPendingContent = false;
|
18092 | }
|
18093 |
|
18094 | if (!is_WHITE_SPACE(ch)) {
|
18095 | captureEnd = state.position + 1;
|
18096 | }
|
18097 |
|
18098 | ch = state.input.charCodeAt(++state.position);
|
18099 | }
|
18100 |
|
18101 | captureSegment(state, captureStart, captureEnd, false);
|
18102 |
|
18103 | if (state.result) {
|
18104 | return true;
|
18105 | }
|
18106 |
|
18107 | state.kind = _kind;
|
18108 | state.result = _result;
|
18109 | return false;
|
18110 | }
|
18111 |
|
18112 | function readSingleQuotedScalar(state, nodeIndent) {
|
18113 | var ch,
|
18114 | captureStart, captureEnd;
|
18115 |
|
18116 | ch = state.input.charCodeAt(state.position);
|
18117 |
|
18118 | if (ch !== 0x27) {
|
18119 | return false;
|
18120 | }
|
18121 |
|
18122 | state.kind = 'scalar';
|
18123 | state.result = '';
|
18124 | state.position++;
|
18125 | captureStart = captureEnd = state.position;
|
18126 |
|
18127 | while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
18128 | if (ch === 0x27) {
|
18129 | captureSegment(state, captureStart, state.position, true);
|
18130 | ch = state.input.charCodeAt(++state.position);
|
18131 |
|
18132 | if (ch === 0x27) {
|
18133 | captureStart = state.position;
|
18134 | state.position++;
|
18135 | captureEnd = state.position;
|
18136 | } else {
|
18137 | return true;
|
18138 | }
|
18139 |
|
18140 | } else if (is_EOL(ch)) {
|
18141 | captureSegment(state, captureStart, captureEnd, true);
|
18142 | writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
18143 | captureStart = captureEnd = state.position;
|
18144 |
|
18145 | } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
18146 | throwError(state, 'unexpected end of the document within a single quoted scalar');
|
18147 |
|
18148 | } else {
|
18149 | state.position++;
|
18150 | captureEnd = state.position;
|
18151 | }
|
18152 | }
|
18153 |
|
18154 | throwError(state, 'unexpected end of the stream within a single quoted scalar');
|
18155 | }
|
18156 |
|
18157 | function readDoubleQuotedScalar(state, nodeIndent) {
|
18158 | var captureStart,
|
18159 | captureEnd,
|
18160 | hexLength,
|
18161 | hexResult,
|
18162 | tmp,
|
18163 | ch;
|
18164 |
|
18165 | ch = state.input.charCodeAt(state.position);
|
18166 |
|
18167 | if (ch !== 0x22) {
|
18168 | return false;
|
18169 | }
|
18170 |
|
18171 | state.kind = 'scalar';
|
18172 | state.result = '';
|
18173 | state.position++;
|
18174 | captureStart = captureEnd = state.position;
|
18175 |
|
18176 | while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
18177 | if (ch === 0x22) {
|
18178 | captureSegment(state, captureStart, state.position, true);
|
18179 | state.position++;
|
18180 | return true;
|
18181 |
|
18182 | } else if (ch === 0x5C) {
|
18183 | captureSegment(state, captureStart, state.position, true);
|
18184 | ch = state.input.charCodeAt(++state.position);
|
18185 |
|
18186 | if (is_EOL(ch)) {
|
18187 | skipSeparationSpace(state, false, nodeIndent);
|
18188 |
|
18189 |
|
18190 | } else if (ch < 256 && simpleEscapeCheck[ch]) {
|
18191 | state.result += simpleEscapeMap[ch];
|
18192 | state.position++;
|
18193 |
|
18194 | } else if ((tmp = escapedHexLen(ch)) > 0) {
|
18195 | hexLength = tmp;
|
18196 | hexResult = 0;
|
18197 |
|
18198 | for (; hexLength > 0; hexLength--) {
|
18199 | ch = state.input.charCodeAt(++state.position);
|
18200 |
|
18201 | if ((tmp = fromHexCode(ch)) >= 0) {
|
18202 | hexResult = (hexResult << 4) + tmp;
|
18203 |
|
18204 | } else {
|
18205 | throwError(state, 'expected hexadecimal character');
|
18206 | }
|
18207 | }
|
18208 |
|
18209 | state.result += charFromCodepoint(hexResult);
|
18210 |
|
18211 | state.position++;
|
18212 |
|
18213 | } else {
|
18214 | throwError(state, 'unknown escape sequence');
|
18215 | }
|
18216 |
|
18217 | captureStart = captureEnd = state.position;
|
18218 |
|
18219 | } else if (is_EOL(ch)) {
|
18220 | captureSegment(state, captureStart, captureEnd, true);
|
18221 | writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
18222 | captureStart = captureEnd = state.position;
|
18223 |
|
18224 | } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
18225 | throwError(state, 'unexpected end of the document within a double quoted scalar');
|
18226 |
|
18227 | } else {
|
18228 | state.position++;
|
18229 | captureEnd = state.position;
|
18230 | }
|
18231 | }
|
18232 |
|
18233 | throwError(state, 'unexpected end of the stream within a double quoted scalar');
|
18234 | }
|
18235 |
|
18236 | function readFlowCollection(state, nodeIndent) {
|
18237 | var readNext = true,
|
18238 | _line,
|
18239 | _tag = state.tag,
|
18240 | _result,
|
18241 | _anchor = state.anchor,
|
18242 | following,
|
18243 | terminator,
|
18244 | isPair,
|
18245 | isExplicitPair,
|
18246 | isMapping,
|
18247 | overridableKeys = {},
|
18248 | keyNode,
|
18249 | keyTag,
|
18250 | valueNode,
|
18251 | ch;
|
18252 |
|
18253 | ch = state.input.charCodeAt(state.position);
|
18254 |
|
18255 | if (ch === 0x5B) {
|
18256 | terminator = 0x5D;
|
18257 | isMapping = false;
|
18258 | _result = [];
|
18259 | } else if (ch === 0x7B) {
|
18260 | terminator = 0x7D;
|
18261 | isMapping = true;
|
18262 | _result = {};
|
18263 | } else {
|
18264 | return false;
|
18265 | }
|
18266 |
|
18267 | if (state.anchor !== null) {
|
18268 | state.anchorMap[state.anchor] = _result;
|
18269 | }
|
18270 |
|
18271 | ch = state.input.charCodeAt(++state.position);
|
18272 |
|
18273 | while (ch !== 0) {
|
18274 | skipSeparationSpace(state, true, nodeIndent);
|
18275 |
|
18276 | ch = state.input.charCodeAt(state.position);
|
18277 |
|
18278 | if (ch === terminator) {
|
18279 | state.position++;
|
18280 | state.tag = _tag;
|
18281 | state.anchor = _anchor;
|
18282 | state.kind = isMapping ? 'mapping' : 'sequence';
|
18283 | state.result = _result;
|
18284 | return true;
|
18285 | } else if (!readNext) {
|
18286 | throwError(state, 'missed comma between flow collection entries');
|
18287 | }
|
18288 |
|
18289 | keyTag = keyNode = valueNode = null;
|
18290 | isPair = isExplicitPair = false;
|
18291 |
|
18292 | if (ch === 0x3F) {
|
18293 | following = state.input.charCodeAt(state.position + 1);
|
18294 |
|
18295 | if (is_WS_OR_EOL(following)) {
|
18296 | isPair = isExplicitPair = true;
|
18297 | state.position++;
|
18298 | skipSeparationSpace(state, true, nodeIndent);
|
18299 | }
|
18300 | }
|
18301 |
|
18302 | _line = state.line;
|
18303 | composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
|
18304 | keyTag = state.tag;
|
18305 | keyNode = state.result;
|
18306 | skipSeparationSpace(state, true, nodeIndent);
|
18307 |
|
18308 | ch = state.input.charCodeAt(state.position);
|
18309 |
|
18310 | if ((isExplicitPair || state.line === _line) && ch === 0x3A) {
|
18311 | isPair = true;
|
18312 | ch = state.input.charCodeAt(++state.position);
|
18313 | skipSeparationSpace(state, true, nodeIndent);
|
18314 | composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
|
18315 | valueNode = state.result;
|
18316 | }
|
18317 |
|
18318 | if (isMapping) {
|
18319 | storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode);
|
18320 | } else if (isPair) {
|
18321 | _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode));
|
18322 | } else {
|
18323 | _result.push(keyNode);
|
18324 | }
|
18325 |
|
18326 | skipSeparationSpace(state, true, nodeIndent);
|
18327 |
|
18328 | ch = state.input.charCodeAt(state.position);
|
18329 |
|
18330 | if (ch === 0x2C) {
|
18331 | readNext = true;
|
18332 | ch = state.input.charCodeAt(++state.position);
|
18333 | } else {
|
18334 | readNext = false;
|
18335 | }
|
18336 | }
|
18337 |
|
18338 | throwError(state, 'unexpected end of the stream within a flow collection');
|
18339 | }
|
18340 |
|
18341 | function readBlockScalar(state, nodeIndent) {
|
18342 | var captureStart,
|
18343 | folding,
|
18344 | chomping = CHOMPING_CLIP,
|
18345 | didReadContent = false,
|
18346 | detectedIndent = false,
|
18347 | textIndent = nodeIndent,
|
18348 | emptyLines = 0,
|
18349 | atMoreIndented = false,
|
18350 | tmp,
|
18351 | ch;
|
18352 |
|
18353 | ch = state.input.charCodeAt(state.position);
|
18354 |
|
18355 | if (ch === 0x7C) {
|
18356 | folding = false;
|
18357 | } else if (ch === 0x3E) {
|
18358 | folding = true;
|
18359 | } else {
|
18360 | return false;
|
18361 | }
|
18362 |
|
18363 | state.kind = 'scalar';
|
18364 | state.result = '';
|
18365 |
|
18366 | while (ch !== 0) {
|
18367 | ch = state.input.charCodeAt(++state.position);
|
18368 |
|
18369 | if (ch === 0x2B || ch === 0x2D) {
|
18370 | if (CHOMPING_CLIP === chomping) {
|
18371 | chomping = (ch === 0x2B) ? CHOMPING_KEEP : CHOMPING_STRIP;
|
18372 | } else {
|
18373 | throwError(state, 'repeat of a chomping mode identifier');
|
18374 | }
|
18375 |
|
18376 | } else if ((tmp = fromDecimalCode(ch)) >= 0) {
|
18377 | if (tmp === 0) {
|
18378 | throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one');
|
18379 | } else if (!detectedIndent) {
|
18380 | textIndent = nodeIndent + tmp - 1;
|
18381 | detectedIndent = true;
|
18382 | } else {
|
18383 | throwError(state, 'repeat of an indentation width identifier');
|
18384 | }
|
18385 |
|
18386 | } else {
|
18387 | break;
|
18388 | }
|
18389 | }
|
18390 |
|
18391 | if (is_WHITE_SPACE(ch)) {
|
18392 | do { ch = state.input.charCodeAt(++state.position); }
|
18393 | while (is_WHITE_SPACE(ch));
|
18394 |
|
18395 | if (ch === 0x23) {
|
18396 | do { ch = state.input.charCodeAt(++state.position); }
|
18397 | while (!is_EOL(ch) && (ch !== 0));
|
18398 | }
|
18399 | }
|
18400 |
|
18401 | while (ch !== 0) {
|
18402 | readLineBreak(state);
|
18403 | state.lineIndent = 0;
|
18404 |
|
18405 | ch = state.input.charCodeAt(state.position);
|
18406 |
|
18407 | while ((!detectedIndent || state.lineIndent < textIndent) &&
|
18408 | (ch === 0x20)) {
|
18409 | state.lineIndent++;
|
18410 | ch = state.input.charCodeAt(++state.position);
|
18411 | }
|
18412 |
|
18413 | if (!detectedIndent && state.lineIndent > textIndent) {
|
18414 | textIndent = state.lineIndent;
|
18415 | }
|
18416 |
|
18417 | if (is_EOL(ch)) {
|
18418 | emptyLines++;
|
18419 | continue;
|
18420 | }
|
18421 |
|
18422 |
|
18423 | if (state.lineIndent < textIndent) {
|
18424 |
|
18425 |
|
18426 | if (chomping === CHOMPING_KEEP) {
|
18427 | state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
|
18428 | } else if (chomping === CHOMPING_CLIP) {
|
18429 | if (didReadContent) {
|
18430 | state.result += '\n';
|
18431 | }
|
18432 | }
|
18433 |
|
18434 |
|
18435 | break;
|
18436 | }
|
18437 |
|
18438 |
|
18439 | if (folding) {
|
18440 |
|
18441 |
|
18442 | if (is_WHITE_SPACE(ch)) {
|
18443 | atMoreIndented = true;
|
18444 |
|
18445 | state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
|
18446 |
|
18447 |
|
18448 | } else if (atMoreIndented) {
|
18449 | atMoreIndented = false;
|
18450 | state.result += common.repeat('\n', emptyLines + 1);
|
18451 |
|
18452 |
|
18453 | } else if (emptyLines === 0) {
|
18454 | if (didReadContent) {
|
18455 | state.result += ' ';
|
18456 | }
|
18457 |
|
18458 |
|
18459 | } else {
|
18460 | state.result += common.repeat('\n', emptyLines);
|
18461 | }
|
18462 |
|
18463 |
|
18464 | } else {
|
18465 |
|
18466 | state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
|
18467 | }
|
18468 |
|
18469 | didReadContent = true;
|
18470 | detectedIndent = true;
|
18471 | emptyLines = 0;
|
18472 | captureStart = state.position;
|
18473 |
|
18474 | while (!is_EOL(ch) && (ch !== 0)) {
|
18475 | ch = state.input.charCodeAt(++state.position);
|
18476 | }
|
18477 |
|
18478 | captureSegment(state, captureStart, state.position, false);
|
18479 | }
|
18480 |
|
18481 | return true;
|
18482 | }
|
18483 |
|
18484 | function readBlockSequence(state, nodeIndent) {
|
18485 | var _line,
|
18486 | _tag = state.tag,
|
18487 | _anchor = state.anchor,
|
18488 | _result = [],
|
18489 | following,
|
18490 | detected = false,
|
18491 | ch;
|
18492 |
|
18493 | if (state.anchor !== null) {
|
18494 | state.anchorMap[state.anchor] = _result;
|
18495 | }
|
18496 |
|
18497 | ch = state.input.charCodeAt(state.position);
|
18498 |
|
18499 | while (ch !== 0) {
|
18500 |
|
18501 | if (ch !== 0x2D) {
|
18502 | break;
|
18503 | }
|
18504 |
|
18505 | following = state.input.charCodeAt(state.position + 1);
|
18506 |
|
18507 | if (!is_WS_OR_EOL(following)) {
|
18508 | break;
|
18509 | }
|
18510 |
|
18511 | detected = true;
|
18512 | state.position++;
|
18513 |
|
18514 | if (skipSeparationSpace(state, true, -1)) {
|
18515 | if (state.lineIndent <= nodeIndent) {
|
18516 | _result.push(null);
|
18517 | ch = state.input.charCodeAt(state.position);
|
18518 | continue;
|
18519 | }
|
18520 | }
|
18521 |
|
18522 | _line = state.line;
|
18523 | composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
|
18524 | _result.push(state.result);
|
18525 | skipSeparationSpace(state, true, -1);
|
18526 |
|
18527 | ch = state.input.charCodeAt(state.position);
|
18528 |
|
18529 | if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) {
|
18530 | throwError(state, 'bad indentation of a sequence entry');
|
18531 | } else if (state.lineIndent < nodeIndent) {
|
18532 | break;
|
18533 | }
|
18534 | }
|
18535 |
|
18536 | if (detected) {
|
18537 | state.tag = _tag;
|
18538 | state.anchor = _anchor;
|
18539 | state.kind = 'sequence';
|
18540 | state.result = _result;
|
18541 | return true;
|
18542 | }
|
18543 | return false;
|
18544 | }
|
18545 |
|
18546 | function readBlockMapping(state, nodeIndent, flowIndent) {
|
18547 | var following,
|
18548 | allowCompact,
|
18549 | _line,
|
18550 | _pos,
|
18551 | _tag = state.tag,
|
18552 | _anchor = state.anchor,
|
18553 | _result = {},
|
18554 | overridableKeys = {},
|
18555 | keyTag = null,
|
18556 | keyNode = null,
|
18557 | valueNode = null,
|
18558 | atExplicitKey = false,
|
18559 | detected = false,
|
18560 | ch;
|
18561 |
|
18562 | if (state.anchor !== null) {
|
18563 | state.anchorMap[state.anchor] = _result;
|
18564 | }
|
18565 |
|
18566 | ch = state.input.charCodeAt(state.position);
|
18567 |
|
18568 | while (ch !== 0) {
|
18569 | following = state.input.charCodeAt(state.position + 1);
|
18570 | _line = state.line;
|
18571 | _pos = state.position;
|
18572 |
|
18573 |
|
18574 |
|
18575 |
|
18576 |
|
18577 | if ((ch === 0x3F || ch === 0x3A) && is_WS_OR_EOL(following)) {
|
18578 |
|
18579 | if (ch === 0x3F) {
|
18580 | if (atExplicitKey) {
|
18581 | storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);
|
18582 | keyTag = keyNode = valueNode = null;
|
18583 | }
|
18584 |
|
18585 | detected = true;
|
18586 | atExplicitKey = true;
|
18587 | allowCompact = true;
|
18588 |
|
18589 | } else if (atExplicitKey) {
|
18590 |
|
18591 | atExplicitKey = false;
|
18592 | allowCompact = true;
|
18593 |
|
18594 | } else {
|
18595 | throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line');
|
18596 | }
|
18597 |
|
18598 | state.position += 1;
|
18599 | ch = following;
|
18600 |
|
18601 |
|
18602 |
|
18603 |
|
18604 | } else if (composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
|
18605 |
|
18606 | if (state.line === _line) {
|
18607 | ch = state.input.charCodeAt(state.position);
|
18608 |
|
18609 | while (is_WHITE_SPACE(ch)) {
|
18610 | ch = state.input.charCodeAt(++state.position);
|
18611 | }
|
18612 |
|
18613 | if (ch === 0x3A) {
|
18614 | ch = state.input.charCodeAt(++state.position);
|
18615 |
|
18616 | if (!is_WS_OR_EOL(ch)) {
|
18617 | throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping');
|
18618 | }
|
18619 |
|
18620 | if (atExplicitKey) {
|
18621 | storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);
|
18622 | keyTag = keyNode = valueNode = null;
|
18623 | }
|
18624 |
|
18625 | detected = true;
|
18626 | atExplicitKey = false;
|
18627 | allowCompact = false;
|
18628 | keyTag = state.tag;
|
18629 | keyNode = state.result;
|
18630 |
|
18631 | } else if (detected) {
|
18632 | throwError(state, 'can not read an implicit mapping pair; a colon is missed');
|
18633 |
|
18634 | } else {
|
18635 | state.tag = _tag;
|
18636 | state.anchor = _anchor;
|
18637 | return true;
|
18638 | }
|
18639 |
|
18640 | } else if (detected) {
|
18641 | throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key');
|
18642 |
|
18643 | } else {
|
18644 | state.tag = _tag;
|
18645 | state.anchor = _anchor;
|
18646 | return true;
|
18647 | }
|
18648 |
|
18649 | } else {
|
18650 | break;
|
18651 | }
|
18652 |
|
18653 |
|
18654 |
|
18655 |
|
18656 | if (state.line === _line || state.lineIndent > nodeIndent) {
|
18657 | if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
|
18658 | if (atExplicitKey) {
|
18659 | keyNode = state.result;
|
18660 | } else {
|
18661 | valueNode = state.result;
|
18662 | }
|
18663 | }
|
18664 |
|
18665 | if (!atExplicitKey) {
|
18666 | storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _pos);
|
18667 | keyTag = keyNode = valueNode = null;
|
18668 | }
|
18669 |
|
18670 | skipSeparationSpace(state, true, -1);
|
18671 | ch = state.input.charCodeAt(state.position);
|
18672 | }
|
18673 |
|
18674 | if (state.lineIndent > nodeIndent && (ch !== 0)) {
|
18675 | throwError(state, 'bad indentation of a mapping entry');
|
18676 | } else if (state.lineIndent < nodeIndent) {
|
18677 | break;
|
18678 | }
|
18679 | }
|
18680 |
|
18681 |
|
18682 |
|
18683 |
|
18684 |
|
18685 |
|
18686 | if (atExplicitKey) {
|
18687 | storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);
|
18688 | }
|
18689 |
|
18690 |
|
18691 | if (detected) {
|
18692 | state.tag = _tag;
|
18693 | state.anchor = _anchor;
|
18694 | state.kind = 'mapping';
|
18695 | state.result = _result;
|
18696 | }
|
18697 |
|
18698 | return detected;
|
18699 | }
|
18700 |
|
18701 | function readTagProperty(state) {
|
18702 | var _position,
|
18703 | isVerbatim = false,
|
18704 | isNamed = false,
|
18705 | tagHandle,
|
18706 | tagName,
|
18707 | ch;
|
18708 |
|
18709 | ch = state.input.charCodeAt(state.position);
|
18710 |
|
18711 | if (ch !== 0x21) return false;
|
18712 |
|
18713 | if (state.tag !== null) {
|
18714 | throwError(state, 'duplication of a tag property');
|
18715 | }
|
18716 |
|
18717 | ch = state.input.charCodeAt(++state.position);
|
18718 |
|
18719 | if (ch === 0x3C) {
|
18720 | isVerbatim = true;
|
18721 | ch = state.input.charCodeAt(++state.position);
|
18722 |
|
18723 | } else if (ch === 0x21) {
|
18724 | isNamed = true;
|
18725 | tagHandle = '!!';
|
18726 | ch = state.input.charCodeAt(++state.position);
|
18727 |
|
18728 | } else {
|
18729 | tagHandle = '!';
|
18730 | }
|
18731 |
|
18732 | _position = state.position;
|
18733 |
|
18734 | if (isVerbatim) {
|
18735 | do { ch = state.input.charCodeAt(++state.position); }
|
18736 | while (ch !== 0 && ch !== 0x3E);
|
18737 |
|
18738 | if (state.position < state.length) {
|
18739 | tagName = state.input.slice(_position, state.position);
|
18740 | ch = state.input.charCodeAt(++state.position);
|
18741 | } else {
|
18742 | throwError(state, 'unexpected end of the stream within a verbatim tag');
|
18743 | }
|
18744 | } else {
|
18745 | while (ch !== 0 && !is_WS_OR_EOL(ch)) {
|
18746 |
|
18747 | if (ch === 0x21) {
|
18748 | if (!isNamed) {
|
18749 | tagHandle = state.input.slice(_position - 1, state.position + 1);
|
18750 |
|
18751 | if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
|
18752 | throwError(state, 'named tag handle cannot contain such characters');
|
18753 | }
|
18754 |
|
18755 | isNamed = true;
|
18756 | _position = state.position + 1;
|
18757 | } else {
|
18758 | throwError(state, 'tag suffix cannot contain exclamation marks');
|
18759 | }
|
18760 | }
|
18761 |
|
18762 | ch = state.input.charCodeAt(++state.position);
|
18763 | }
|
18764 |
|
18765 | tagName = state.input.slice(_position, state.position);
|
18766 |
|
18767 | if (PATTERN_FLOW_INDICATORS.test(tagName)) {
|
18768 | throwError(state, 'tag suffix cannot contain flow indicator characters');
|
18769 | }
|
18770 | }
|
18771 |
|
18772 | if (tagName && !PATTERN_TAG_URI.test(tagName)) {
|
18773 | throwError(state, 'tag name cannot contain such characters: ' + tagName);
|
18774 | }
|
18775 |
|
18776 | if (isVerbatim) {
|
18777 | state.tag = tagName;
|
18778 |
|
18779 | } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
|
18780 | state.tag = state.tagMap[tagHandle] + tagName;
|
18781 |
|
18782 | } else if (tagHandle === '!') {
|
18783 | state.tag = '!' + tagName;
|
18784 |
|
18785 | } else if (tagHandle === '!!') {
|
18786 | state.tag = 'tag:yaml.org,2002:' + tagName;
|
18787 |
|
18788 | } else {
|
18789 | throwError(state, 'undeclared tag handle "' + tagHandle + '"');
|
18790 | }
|
18791 |
|
18792 | return true;
|
18793 | }
|
18794 |
|
18795 | function readAnchorProperty(state) {
|
18796 | var _position,
|
18797 | ch;
|
18798 |
|
18799 | ch = state.input.charCodeAt(state.position);
|
18800 |
|
18801 | if (ch !== 0x26) return false;
|
18802 |
|
18803 | if (state.anchor !== null) {
|
18804 | throwError(state, 'duplication of an anchor property');
|
18805 | }
|
18806 |
|
18807 | ch = state.input.charCodeAt(++state.position);
|
18808 | _position = state.position;
|
18809 |
|
18810 | while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
|
18811 | ch = state.input.charCodeAt(++state.position);
|
18812 | }
|
18813 |
|
18814 | if (state.position === _position) {
|
18815 | throwError(state, 'name of an anchor node must contain at least one character');
|
18816 | }
|
18817 |
|
18818 | state.anchor = state.input.slice(_position, state.position);
|
18819 | return true;
|
18820 | }
|
18821 |
|
18822 | function readAlias(state) {
|
18823 | var _position, alias,
|
18824 | ch;
|
18825 |
|
18826 | ch = state.input.charCodeAt(state.position);
|
18827 |
|
18828 | if (ch !== 0x2A) return false;
|
18829 |
|
18830 | ch = state.input.charCodeAt(++state.position);
|
18831 | _position = state.position;
|
18832 |
|
18833 | while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
|
18834 | ch = state.input.charCodeAt(++state.position);
|
18835 | }
|
18836 |
|
18837 | if (state.position === _position) {
|
18838 | throwError(state, 'name of an alias node must contain at least one character');
|
18839 | }
|
18840 |
|
18841 | alias = state.input.slice(_position, state.position);
|
18842 |
|
18843 | if (!state.anchorMap.hasOwnProperty(alias)) {
|
18844 | throwError(state, 'unidentified alias "' + alias + '"');
|
18845 | }
|
18846 |
|
18847 | state.result = state.anchorMap[alias];
|
18848 | skipSeparationSpace(state, true, -1);
|
18849 | return true;
|
18850 | }
|
18851 |
|
18852 | function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
|
18853 | var allowBlockStyles,
|
18854 | allowBlockScalars,
|
18855 | allowBlockCollections,
|
18856 | indentStatus = 1,
|
18857 | atNewLine = false,
|
18858 | hasContent = false,
|
18859 | typeIndex,
|
18860 | typeQuantity,
|
18861 | type,
|
18862 | flowIndent,
|
18863 | blockIndent;
|
18864 |
|
18865 | if (state.listener !== null) {
|
18866 | state.listener('open', state);
|
18867 | }
|
18868 |
|
18869 | state.tag = null;
|
18870 | state.anchor = null;
|
18871 | state.kind = null;
|
18872 | state.result = null;
|
18873 |
|
18874 | allowBlockStyles = allowBlockScalars = allowBlockCollections =
|
18875 | CONTEXT_BLOCK_OUT === nodeContext ||
|
18876 | CONTEXT_BLOCK_IN === nodeContext;
|
18877 |
|
18878 | if (allowToSeek) {
|
18879 | if (skipSeparationSpace(state, true, -1)) {
|
18880 | atNewLine = true;
|
18881 |
|
18882 | if (state.lineIndent > parentIndent) {
|
18883 | indentStatus = 1;
|
18884 | } else if (state.lineIndent === parentIndent) {
|
18885 | indentStatus = 0;
|
18886 | } else if (state.lineIndent < parentIndent) {
|
18887 | indentStatus = -1;
|
18888 | }
|
18889 | }
|
18890 | }
|
18891 |
|
18892 | if (indentStatus === 1) {
|
18893 | while (readTagProperty(state) || readAnchorProperty(state)) {
|
18894 | if (skipSeparationSpace(state, true, -1)) {
|
18895 | atNewLine = true;
|
18896 | allowBlockCollections = allowBlockStyles;
|
18897 |
|
18898 | if (state.lineIndent > parentIndent) {
|
18899 | indentStatus = 1;
|
18900 | } else if (state.lineIndent === parentIndent) {
|
18901 | indentStatus = 0;
|
18902 | } else if (state.lineIndent < parentIndent) {
|
18903 | indentStatus = -1;
|
18904 | }
|
18905 | } else {
|
18906 | allowBlockCollections = false;
|
18907 | }
|
18908 | }
|
18909 | }
|
18910 |
|
18911 | if (allowBlockCollections) {
|
18912 | allowBlockCollections = atNewLine || allowCompact;
|
18913 | }
|
18914 |
|
18915 | if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
|
18916 | if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
|
18917 | flowIndent = parentIndent;
|
18918 | } else {
|
18919 | flowIndent = parentIndent + 1;
|
18920 | }
|
18921 |
|
18922 | blockIndent = state.position - state.lineStart;
|
18923 |
|
18924 | if (indentStatus === 1) {
|
18925 | if (allowBlockCollections &&
|
18926 | (readBlockSequence(state, blockIndent) ||
|
18927 | readBlockMapping(state, blockIndent, flowIndent)) ||
|
18928 | readFlowCollection(state, flowIndent)) {
|
18929 | hasContent = true;
|
18930 | } else {
|
18931 | if ((allowBlockScalars && readBlockScalar(state, flowIndent)) ||
|
18932 | readSingleQuotedScalar(state, flowIndent) ||
|
18933 | readDoubleQuotedScalar(state, flowIndent)) {
|
18934 | hasContent = true;
|
18935 |
|
18936 | } else if (readAlias(state)) {
|
18937 | hasContent = true;
|
18938 |
|
18939 | if (state.tag !== null || state.anchor !== null) {
|
18940 | throwError(state, 'alias node should not have any properties');
|
18941 | }
|
18942 |
|
18943 | } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
|
18944 | hasContent = true;
|
18945 |
|
18946 | if (state.tag === null) {
|
18947 | state.tag = '?';
|
18948 | }
|
18949 | }
|
18950 |
|
18951 | if (state.anchor !== null) {
|
18952 | state.anchorMap[state.anchor] = state.result;
|
18953 | }
|
18954 | }
|
18955 | } else if (indentStatus === 0) {
|
18956 |
|
18957 |
|
18958 | hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
18959 | }
|
18960 | }
|
18961 |
|
18962 | if (state.tag !== null && state.tag !== '!') {
|
18963 | if (state.tag === '?') {
|
18964 | for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
|
18965 | type = state.implicitTypes[typeIndex];
|
18966 |
|
18967 |
|
18968 |
|
18969 |
|
18970 |
|
18971 | if (type.resolve(state.result)) {
|
18972 | state.result = type.construct(state.result);
|
18973 | state.tag = type.tag;
|
18974 | if (state.anchor !== null) {
|
18975 | state.anchorMap[state.anchor] = state.result;
|
18976 | }
|
18977 | break;
|
18978 | }
|
18979 | }
|
18980 | } else if (_hasOwnProperty.call(state.typeMap[state.kind || 'fallback'], state.tag)) {
|
18981 | type = state.typeMap[state.kind || 'fallback'][state.tag];
|
18982 |
|
18983 | if (state.result !== null && type.kind !== state.kind) {
|
18984 | throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"');
|
18985 | }
|
18986 |
|
18987 | if (!type.resolve(state.result)) {
|
18988 | throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag');
|
18989 | } else {
|
18990 | state.result = type.construct(state.result);
|
18991 | if (state.anchor !== null) {
|
18992 | state.anchorMap[state.anchor] = state.result;
|
18993 | }
|
18994 | }
|
18995 | } else {
|
18996 | throwError(state, 'unknown tag !<' + state.tag + '>');
|
18997 | }
|
18998 | }
|
18999 |
|
19000 | if (state.listener !== null) {
|
19001 | state.listener('close', state);
|
19002 | }
|
19003 | return state.tag !== null || state.anchor !== null || hasContent;
|
19004 | }
|
19005 |
|
19006 | function readDocument(state) {
|
19007 | var documentStart = state.position,
|
19008 | _position,
|
19009 | directiveName,
|
19010 | directiveArgs,
|
19011 | hasDirectives = false,
|
19012 | ch;
|
19013 |
|
19014 | state.version = null;
|
19015 | state.checkLineBreaks = state.legacy;
|
19016 | state.tagMap = {};
|
19017 | state.anchorMap = {};
|
19018 |
|
19019 | while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
19020 | skipSeparationSpace(state, true, -1);
|
19021 |
|
19022 | ch = state.input.charCodeAt(state.position);
|
19023 |
|
19024 | if (state.lineIndent > 0 || ch !== 0x25) {
|
19025 | break;
|
19026 | }
|
19027 |
|
19028 | hasDirectives = true;
|
19029 | ch = state.input.charCodeAt(++state.position);
|
19030 | _position = state.position;
|
19031 |
|
19032 | while (ch !== 0 && !is_WS_OR_EOL(ch)) {
|
19033 | ch = state.input.charCodeAt(++state.position);
|
19034 | }
|
19035 |
|
19036 | directiveName = state.input.slice(_position, state.position);
|
19037 | directiveArgs = [];
|
19038 |
|
19039 | if (directiveName.length < 1) {
|
19040 | throwError(state, 'directive name must not be less than one character in length');
|
19041 | }
|
19042 |
|
19043 | while (ch !== 0) {
|
19044 | while (is_WHITE_SPACE(ch)) {
|
19045 | ch = state.input.charCodeAt(++state.position);
|
19046 | }
|
19047 |
|
19048 | if (ch === 0x23) {
|
19049 | do { ch = state.input.charCodeAt(++state.position); }
|
19050 | while (ch !== 0 && !is_EOL(ch));
|
19051 | break;
|
19052 | }
|
19053 |
|
19054 | if (is_EOL(ch)) break;
|
19055 |
|
19056 | _position = state.position;
|
19057 |
|
19058 | while (ch !== 0 && !is_WS_OR_EOL(ch)) {
|
19059 | ch = state.input.charCodeAt(++state.position);
|
19060 | }
|
19061 |
|
19062 | directiveArgs.push(state.input.slice(_position, state.position));
|
19063 | }
|
19064 |
|
19065 | if (ch !== 0) readLineBreak(state);
|
19066 |
|
19067 | if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
|
19068 | directiveHandlers[directiveName](state, directiveName, directiveArgs);
|
19069 | } else {
|
19070 | throwWarning(state, 'unknown document directive "' + directiveName + '"');
|
19071 | }
|
19072 | }
|
19073 |
|
19074 | skipSeparationSpace(state, true, -1);
|
19075 |
|
19076 | if (state.lineIndent === 0 &&
|
19077 | state.input.charCodeAt(state.position) === 0x2D &&
|
19078 | state.input.charCodeAt(state.position + 1) === 0x2D &&
|
19079 | state.input.charCodeAt(state.position + 2) === 0x2D) {
|
19080 | state.position += 3;
|
19081 | skipSeparationSpace(state, true, -1);
|
19082 |
|
19083 | } else if (hasDirectives) {
|
19084 | throwError(state, 'directives end mark is expected');
|
19085 | }
|
19086 |
|
19087 | composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
|
19088 | skipSeparationSpace(state, true, -1);
|
19089 |
|
19090 | if (state.checkLineBreaks &&
|
19091 | PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
|
19092 | throwWarning(state, 'non-ASCII line breaks are interpreted as content');
|
19093 | }
|
19094 |
|
19095 | state.documents.push(state.result);
|
19096 |
|
19097 | if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
19098 |
|
19099 | if (state.input.charCodeAt(state.position) === 0x2E) {
|
19100 | state.position += 3;
|
19101 | skipSeparationSpace(state, true, -1);
|
19102 | }
|
19103 | return;
|
19104 | }
|
19105 |
|
19106 | if (state.position < (state.length - 1)) {
|
19107 | throwError(state, 'end of the stream or a document separator is expected');
|
19108 | } else {
|
19109 | return;
|
19110 | }
|
19111 | }
|
19112 |
|
19113 |
|
19114 | function loadDocuments(input, options) {
|
19115 | input = String(input);
|
19116 | options = options || {};
|
19117 |
|
19118 | if (input.length !== 0) {
|
19119 |
|
19120 |
|
19121 | if (input.charCodeAt(input.length - 1) !== 0x0A &&
|
19122 | input.charCodeAt(input.length - 1) !== 0x0D) {
|
19123 | input += '\n';
|
19124 | }
|
19125 |
|
19126 |
|
19127 | if (input.charCodeAt(0) === 0xFEFF) {
|
19128 | input = input.slice(1);
|
19129 | }
|
19130 | }
|
19131 |
|
19132 | var state = new State(input, options);
|
19133 |
|
19134 |
|
19135 | state.input += '\0';
|
19136 |
|
19137 | while (state.input.charCodeAt(state.position) === 0x20) {
|
19138 | state.lineIndent += 1;
|
19139 | state.position += 1;
|
19140 | }
|
19141 |
|
19142 | while (state.position < (state.length - 1)) {
|
19143 | readDocument(state);
|
19144 | }
|
19145 |
|
19146 | return state.documents;
|
19147 | }
|
19148 |
|
19149 |
|
19150 | function loadAll(input, iterator, options) {
|
19151 | var documents = loadDocuments(input, options), index, length;
|
19152 |
|
19153 | if (typeof iterator !== 'function') {
|
19154 | return documents;
|
19155 | }
|
19156 |
|
19157 | for (index = 0, length = documents.length; index < length; index += 1) {
|
19158 | iterator(documents[index]);
|
19159 | }
|
19160 | }
|
19161 |
|
19162 |
|
19163 | function load(input, options) {
|
19164 | var documents = loadDocuments(input, options);
|
19165 |
|
19166 | if (documents.length === 0) {
|
19167 |
|
19168 | return undefined;
|
19169 | } else if (documents.length === 1) {
|
19170 | return documents[0];
|
19171 | }
|
19172 | throw new YAMLException('expected a single document in the stream, but found more');
|
19173 | }
|
19174 |
|
19175 |
|
19176 | function safeLoadAll(input, output, options) {
|
19177 | if (typeof output === 'function') {
|
19178 | loadAll(input, output, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));
|
19179 | } else {
|
19180 | return loadAll(input, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));
|
19181 | }
|
19182 | }
|
19183 |
|
19184 |
|
19185 | function safeLoad(input, options) {
|
19186 | return load(input, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));
|
19187 | }
|
19188 |
|
19189 |
|
19190 | module.exports.loadAll = loadAll;
|
19191 | module.exports.load = load;
|
19192 | module.exports.safeLoadAll = safeLoadAll;
|
19193 | module.exports.safeLoad = safeLoad;
|
19194 |
|
19195 |
|
19196 | }),
|
19197 | ,
|
19198 |
|
19199 | (function(module, __unusedexports, __webpack_require__) {
|
19200 |
|
19201 | "use strict";
|
19202 |
|
19203 |
|
19204 |
|
19205 |
|
19206 | var pna = __webpack_require__(511);
|
19207 |
|
19208 |
|
19209 |
|
19210 | function destroy(err, cb) {
|
19211 | var _this = this;
|
19212 |
|
19213 | var readableDestroyed = this._readableState && this._readableState.destroyed;
|
19214 | var writableDestroyed = this._writableState && this._writableState.destroyed;
|
19215 |
|
19216 | if (readableDestroyed || writableDestroyed) {
|
19217 | if (cb) {
|
19218 | cb(err);
|
19219 | } else if (err && (!this._writableState || !this._writableState.errorEmitted)) {
|
19220 | pna.nextTick(emitErrorNT, this, err);
|
19221 | }
|
19222 | return this;
|
19223 | }
|
19224 |
|
19225 |
|
19226 |
|
19227 |
|
19228 | if (this._readableState) {
|
19229 | this._readableState.destroyed = true;
|
19230 | }
|
19231 |
|
19232 |
|
19233 | if (this._writableState) {
|
19234 | this._writableState.destroyed = true;
|
19235 | }
|
19236 |
|
19237 | this._destroy(err || null, function (err) {
|
19238 | if (!cb && err) {
|
19239 | pna.nextTick(emitErrorNT, _this, err);
|
19240 | if (_this._writableState) {
|
19241 | _this._writableState.errorEmitted = true;
|
19242 | }
|
19243 | } else if (cb) {
|
19244 | cb(err);
|
19245 | }
|
19246 | });
|
19247 |
|
19248 | return this;
|
19249 | }
|
19250 |
|
19251 | function undestroy() {
|
19252 | if (this._readableState) {
|
19253 | this._readableState.destroyed = false;
|
19254 | this._readableState.reading = false;
|
19255 | this._readableState.ended = false;
|
19256 | this._readableState.endEmitted = false;
|
19257 | }
|
19258 |
|
19259 | if (this._writableState) {
|
19260 | this._writableState.destroyed = false;
|
19261 | this._writableState.ended = false;
|
19262 | this._writableState.ending = false;
|
19263 | this._writableState.finished = false;
|
19264 | this._writableState.errorEmitted = false;
|
19265 | }
|
19266 | }
|
19267 |
|
19268 | function emitErrorNT(self, err) {
|
19269 | self.emit('error', err);
|
19270 | }
|
19271 |
|
19272 | module.exports = {
|
19273 | destroy: destroy,
|
19274 | undestroy: undestroy
|
19275 | };
|
19276 |
|
19277 | }),
|
19278 | ,
|
19279 |
|
19280 | (function(module, __unusedexports, __webpack_require__) {
|
19281 |
|
19282 | "use strict";
|
19283 |
|
19284 | const ansiRegex = __webpack_require__(804);
|
19285 |
|
19286 | const stripAnsi = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;
|
19287 |
|
19288 | module.exports = stripAnsi;
|
19289 | module.exports.default = stripAnsi;
|
19290 |
|
19291 |
|
19292 | }),
|
19293 |
|
19294 | (function(module) {
|
19295 |
|
19296 | "use strict";
|
19297 |
|
19298 | module.exports = balanced;
|
19299 | function balanced(a, b, str) {
|
19300 | if (a instanceof RegExp) a = maybeMatch(a, str);
|
19301 | if (b instanceof RegExp) b = maybeMatch(b, str);
|
19302 |
|
19303 | var r = range(a, b, str);
|
19304 |
|
19305 | return r && {
|
19306 | start: r[0],
|
19307 | end: r[1],
|
19308 | pre: str.slice(0, r[0]),
|
19309 | body: str.slice(r[0] + a.length, r[1]),
|
19310 | post: str.slice(r[1] + b.length)
|
19311 | };
|
19312 | }
|
19313 |
|
19314 | function maybeMatch(reg, str) {
|
19315 | var m = str.match(reg);
|
19316 | return m ? m[0] : null;
|
19317 | }
|
19318 |
|
19319 | balanced.range = range;
|
19320 | function range(a, b, str) {
|
19321 | var begs, beg, left, right, result;
|
19322 | var ai = str.indexOf(a);
|
19323 | var bi = str.indexOf(b, ai + 1);
|
19324 | var i = ai;
|
19325 |
|
19326 | if (ai >= 0 && bi > 0) {
|
19327 | begs = [];
|
19328 | left = str.length;
|
19329 |
|
19330 | while (i >= 0 && !result) {
|
19331 | if (i == ai) {
|
19332 | begs.push(i);
|
19333 | ai = str.indexOf(a, i + 1);
|
19334 | } else if (begs.length == 1) {
|
19335 | result = [ begs.pop(), bi ];
|
19336 | } else {
|
19337 | beg = begs.pop();
|
19338 | if (beg < left) {
|
19339 | left = beg;
|
19340 | right = bi;
|
19341 | }
|
19342 |
|
19343 | bi = str.indexOf(b, i + 1);
|
19344 | }
|
19345 |
|
19346 | i = ai < bi && ai >= 0 ? ai : bi;
|
19347 | }
|
19348 |
|
19349 | if (begs.length) {
|
19350 | result = [ left, right ];
|
19351 | }
|
19352 | }
|
19353 |
|
19354 | return result;
|
19355 | }
|
19356 |
|
19357 |
|
19358 | }),
|
19359 | ,
|
19360 | ,
|
19361 | ,
|
19362 |
|
19363 | (function(module, __unusedexports, __webpack_require__) {
|
19364 |
|
19365 | "use strict";
|
19366 |
|
19367 |
|
19368 |
|
19369 |
|
19370 | var buffer = __webpack_require__(293)
|
19371 | var Buffer = buffer.Buffer
|
19372 |
|
19373 | var safer = {}
|
19374 |
|
19375 | var key
|
19376 |
|
19377 | for (key in buffer) {
|
19378 | if (!buffer.hasOwnProperty(key)) continue
|
19379 | if (key === 'SlowBuffer' || key === 'Buffer') continue
|
19380 | safer[key] = buffer[key]
|
19381 | }
|
19382 |
|
19383 | var Safer = safer.Buffer = {}
|
19384 | for (key in Buffer) {
|
19385 | if (!Buffer.hasOwnProperty(key)) continue
|
19386 | if (key === 'allocUnsafe' || key === 'allocUnsafeSlow') continue
|
19387 | Safer[key] = Buffer[key]
|
19388 | }
|
19389 |
|
19390 | safer.Buffer.prototype = Buffer.prototype
|
19391 |
|
19392 | if (!Safer.from || Safer.from === Uint8Array.from) {
|
19393 | Safer.from = function (value, encodingOrOffset, length) {
|
19394 | if (typeof value === 'number') {
|
19395 | throw new TypeError('The "value" argument must not be of type number. Received type ' + typeof value)
|
19396 | }
|
19397 | if (value && typeof value.length === 'undefined') {
|
19398 | throw new TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + typeof value)
|
19399 | }
|
19400 | return Buffer(value, encodingOrOffset, length)
|
19401 | }
|
19402 | }
|
19403 |
|
19404 | if (!Safer.alloc) {
|
19405 | Safer.alloc = function (size, fill, encoding) {
|
19406 | if (typeof size !== 'number') {
|
19407 | throw new TypeError('The "size" argument must be of type number. Received type ' + typeof size)
|
19408 | }
|
19409 | if (size < 0 || size >= 2 * (1 << 30)) {
|
19410 | throw new RangeError('The value "' + size + '" is invalid for option "size"')
|
19411 | }
|
19412 | var buf = Buffer(size)
|
19413 | if (!fill || fill.length === 0) {
|
19414 | buf.fill(0)
|
19415 | } else if (typeof encoding === 'string') {
|
19416 | buf.fill(fill, encoding)
|
19417 | } else {
|
19418 | buf.fill(fill)
|
19419 | }
|
19420 | return buf
|
19421 | }
|
19422 | }
|
19423 |
|
19424 | if (!safer.kStringMaxLength) {
|
19425 | try {
|
19426 | safer.kStringMaxLength = process.binding('buffer').kStringMaxLength
|
19427 | } catch (e) {
|
19428 |
|
19429 |
|
19430 | }
|
19431 | }
|
19432 |
|
19433 | if (!safer.constants) {
|
19434 | safer.constants = {
|
19435 | MAX_LENGTH: safer.kMaxLength
|
19436 | }
|
19437 | if (safer.kStringMaxLength) {
|
19438 | safer.constants.MAX_STRING_LENGTH = safer.kStringMaxLength
|
19439 | }
|
19440 | }
|
19441 |
|
19442 | module.exports = safer
|
19443 |
|
19444 |
|
19445 | }),
|
19446 |
|
19447 | (function(module, __unusedexports, __webpack_require__) {
|
19448 |
|
19449 | "use strict";
|
19450 |
|
19451 |
|
19452 | const path = __webpack_require__(622);
|
19453 | const niceTry = __webpack_require__(829);
|
19454 | const resolveCommand = __webpack_require__(16);
|
19455 | const escape = __webpack_require__(97);
|
19456 | const readShebang = __webpack_require__(106);
|
19457 | const semver = __webpack_require__(311);
|
19458 |
|
19459 | const isWin = process.platform === 'win32';
|
19460 | const isExecutableRegExp = /\.(?:com|exe)$/i;
|
19461 | const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
19462 |
|
19463 |
|
19464 | const supportsShellOption = niceTry(() => semver.satisfies(process.version, '^4.8.0 || ^5.7.0 || >= 6.0.0', true)) || false;
|
19465 |
|
19466 | function detectShebang(parsed) {
|
19467 | parsed.file = resolveCommand(parsed);
|
19468 |
|
19469 | const shebang = parsed.file && readShebang(parsed.file);
|
19470 |
|
19471 | if (shebang) {
|
19472 | parsed.args.unshift(parsed.file);
|
19473 | parsed.command = shebang;
|
19474 |
|
19475 | return resolveCommand(parsed);
|
19476 | }
|
19477 |
|
19478 | return parsed.file;
|
19479 | }
|
19480 |
|
19481 | function parseNonShell(parsed) {
|
19482 | if (!isWin) {
|
19483 | return parsed;
|
19484 | }
|
19485 |
|
19486 |
|
19487 | const commandFile = detectShebang(parsed);
|
19488 |
|
19489 |
|
19490 | const needsShell = !isExecutableRegExp.test(commandFile);
|
19491 |
|
19492 |
|
19493 |
|
19494 | if (parsed.options.forceShell || needsShell) {
|
19495 |
|
19496 |
|
19497 |
|
19498 |
|
19499 | const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
19500 |
|
19501 |
|
19502 |
|
19503 | parsed.command = path.normalize(parsed.command);
|
19504 |
|
19505 |
|
19506 | parsed.command = escape.command(parsed.command);
|
19507 | parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
19508 |
|
19509 | const shellCommand = [parsed.command].concat(parsed.args).join(' ');
|
19510 |
|
19511 | parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
|
19512 | parsed.command = process.env.comspec || 'cmd.exe';
|
19513 | parsed.options.windowsVerbatimArguments = true;
|
19514 | }
|
19515 |
|
19516 | return parsed;
|
19517 | }
|
19518 |
|
19519 | function parseShell(parsed) {
|
19520 |
|
19521 | if (supportsShellOption) {
|
19522 | return parsed;
|
19523 | }
|
19524 |
|
19525 |
|
19526 |
|
19527 | const shellCommand = [parsed.command].concat(parsed.args).join(' ');
|
19528 |
|
19529 | if (isWin) {
|
19530 | parsed.command = typeof parsed.options.shell === 'string' ? parsed.options.shell : process.env.comspec || 'cmd.exe';
|
19531 | parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
|
19532 | parsed.options.windowsVerbatimArguments = true;
|
19533 | } else {
|
19534 | if (typeof parsed.options.shell === 'string') {
|
19535 | parsed.command = parsed.options.shell;
|
19536 | } else if (process.platform === 'android') {
|
19537 | parsed.command = '/system/bin/sh';
|
19538 | } else {
|
19539 | parsed.command = '/bin/sh';
|
19540 | }
|
19541 |
|
19542 | parsed.args = ['-c', shellCommand];
|
19543 | }
|
19544 |
|
19545 | return parsed;
|
19546 | }
|
19547 |
|
19548 | function parse(command, args, options) {
|
19549 |
|
19550 | if (args && !Array.isArray(args)) {
|
19551 | options = args;
|
19552 | args = null;
|
19553 | }
|
19554 |
|
19555 | args = args ? args.slice(0) : [];
|
19556 | options = Object.assign({}, options);
|
19557 |
|
19558 |
|
19559 | const parsed = {
|
19560 | command,
|
19561 | args,
|
19562 | options,
|
19563 | file: undefined,
|
19564 | original: {
|
19565 | command,
|
19566 | args,
|
19567 | },
|
19568 | };
|
19569 |
|
19570 |
|
19571 | return options.shell ? parseShell(parsed) : parseNonShell(parsed);
|
19572 | }
|
19573 |
|
19574 | module.exports = parse;
|
19575 |
|
19576 |
|
19577 | }),
|
19578 |
|
19579 | (function(module) {
|
19580 |
|
19581 | module.exports = require("http");
|
19582 |
|
19583 | }),
|
19584 | ,
|
19585 | ,
|
19586 | ,
|
19587 | ,
|
19588 | ,
|
19589 | ,
|
19590 | ,
|
19591 | ,
|
19592 |
|
19593 | (function(module) {
|
19594 |
|
19595 | module.exports = require("events");
|
19596 |
|
19597 | }),
|
19598 | ,
|
19599 |
|
19600 | (function(__unusedmodule, exports, __webpack_require__) {
|
19601 |
|
19602 | "use strict";
|
19603 |
|
19604 | var __importDefault = (this && this.__importDefault) || function (mod) {
|
19605 | return (mod && mod.__esModule) ? mod : { "default": mod };
|
19606 | };
|
19607 | Object.defineProperty(exports, "__esModule", { value: true });
|
19608 | const assert_1 = __importDefault(__webpack_require__(357));
|
19609 | const node_fetch_1 = __importDefault(__webpack_require__(846));
|
19610 | const multistream_1 = __importDefault(__webpack_require__(415));
|
19611 | const async_retry_1 = __importDefault(__webpack_require__(159));
|
19612 | const async_sema_1 = __importDefault(__webpack_require__(43));
|
19613 | const semaToDownloadFromS3 = new async_sema_1.default(5);
|
19614 | class BailableError extends Error {
|
19615 | constructor(...args) {
|
19616 | super(...args);
|
19617 | this.bail = false;
|
19618 | }
|
19619 | }
|
19620 | class FileRef {
|
19621 | constructor({ mode = 0o100644, digest, contentType, mutable = false, }) {
|
19622 | assert_1.default(typeof mode === 'number');
|
19623 | assert_1.default(typeof digest === 'string');
|
19624 | this.type = 'FileRef';
|
19625 | this.mode = mode;
|
19626 | this.digest = digest;
|
19627 | this.contentType = contentType;
|
19628 | this.mutable = mutable;
|
19629 | }
|
19630 | async toStreamAsync() {
|
19631 | let url = '';
|
19632 |
|
19633 | const [digestType, digestHash] = this.digest.split(':');
|
19634 | if (digestType === 'sha') {
|
19635 |
|
19636 |
|
19637 |
|
19638 | url = this.mutable
|
19639 | ? `https://now-files.s3.amazonaws.com/${digestHash}`
|
19640 | : `https://dmmcy0pwk6bqi.cloudfront.net/${digestHash}`;
|
19641 | }
|
19642 | else if (digestType === 'sha+ephemeral') {
|
19643 |
|
19644 |
|
19645 |
|
19646 | url = `https://now-ephemeral-files.s3.amazonaws.com/${digestHash}`;
|
19647 | }
|
19648 | else {
|
19649 | throw new Error('Expected digest to be sha');
|
19650 | }
|
19651 | await semaToDownloadFromS3.acquire();
|
19652 |
|
19653 | try {
|
19654 | return await async_retry_1.default(async () => {
|
19655 | const resp = await node_fetch_1.default(url);
|
19656 | if (!resp.ok) {
|
19657 | const error = new BailableError(`download: ${resp.status} ${resp.statusText} for ${url}`);
|
19658 | if (resp.status === 403)
|
19659 | error.bail = true;
|
19660 | throw error;
|
19661 | }
|
19662 | return resp.body;
|
19663 | }, { factor: 1, retries: 3 });
|
19664 | }
|
19665 | finally {
|
19666 |
|
19667 | semaToDownloadFromS3.release();
|
19668 | }
|
19669 | }
|
19670 | toStream() {
|
19671 | let flag = false;
|
19672 |
|
19673 | return multistream_1.default(cb => {
|
19674 | if (flag)
|
19675 | return cb(null, null);
|
19676 | flag = true;
|
19677 | this.toStreamAsync()
|
19678 | .then(stream => {
|
19679 | cb(null, stream);
|
19680 | })
|
19681 | .catch(error => {
|
19682 | cb(error, null);
|
19683 | });
|
19684 | });
|
19685 | }
|
19686 | }
|
19687 | exports.default = FileRef;
|
19688 |
|
19689 |
|
19690 | }),
|
19691 | ,
|
19692 | ,
|
19693 |
|
19694 | (function(module) {
|
19695 |
|
19696 | module.exports = require("constants");
|
19697 |
|
19698 | }),
|
19699 |
|
19700 | (function(__unusedmodule, exports) {
|
19701 |
|
19702 | "use strict";
|
19703 |
|
19704 | Object.defineProperty(exports, "__esModule", { value: true });
|
19705 | exports.Prerender = void 0;
|
19706 | class Prerender {
|
19707 | constructor({ expiration, lambda, fallback, group, bypassToken, }) {
|
19708 | this.type = 'Prerender';
|
19709 | this.expiration = expiration;
|
19710 | this.lambda = lambda;
|
19711 | if (typeof group !== 'undefined' &&
|
19712 | (group <= 0 || !Number.isInteger(group))) {
|
19713 | throw new Error('The `group` argument for `Prerender` needs to be a natural number.');
|
19714 | }
|
19715 | this.group = group;
|
19716 | if (bypassToken == null) {
|
19717 | this.bypassToken = null;
|
19718 | }
|
19719 | else if (typeof bypassToken === 'string') {
|
19720 | if (bypassToken.length < 32) {
|
19721 |
|
19722 | throw new Error('The `bypassToken` argument for `Prerender` must be 32 characters or more.');
|
19723 | }
|
19724 | this.bypassToken = bypassToken;
|
19725 | }
|
19726 | else {
|
19727 | throw new Error('The `bypassToken` argument for `Prerender` must be a `string`.');
|
19728 | }
|
19729 | if (typeof fallback === 'undefined') {
|
19730 | throw new Error('The `fallback` argument for `Prerender` needs to be a `FileBlob`, `FileFsRef`, `FileRef`, or null.');
|
19731 | }
|
19732 | this.fallback = fallback;
|
19733 | }
|
19734 | }
|
19735 | exports.Prerender = Prerender;
|
19736 |
|
19737 |
|
19738 | }),
|
19739 |
|
19740 | (function(module) {
|
19741 |
|
19742 | "use strict";
|
19743 |
|
19744 | module.exports = /^#!.*/;
|
19745 |
|
19746 |
|
19747 | }),
|
19748 |
|
19749 | (function(module) {
|
19750 |
|
19751 | module.exports = require("path");
|
19752 |
|
19753 | }),
|
19754 |
|
19755 | (function(module, __unusedexports, __webpack_require__) {
|
19756 |
|
19757 | module.exports = __webpack_require__(696);
|
19758 |
|
19759 | }),
|
19760 |
|
19761 | (function(module, __unusedexports, __webpack_require__) {
|
19762 |
|
19763 | "use strict";
|
19764 |
|
19765 |
|
19766 | var Buffer = __webpack_require__(293).Buffer,
|
19767 | Transform = __webpack_require__(413).Transform;
|
19768 |
|
19769 |
|
19770 |
|
19771 | module.exports = function(iconv) {
|
19772 |
|
19773 |
|
19774 | iconv.encodeStream = function encodeStream(encoding, options) {
|
19775 | return new IconvLiteEncoderStream(iconv.getEncoder(encoding, options), options);
|
19776 | }
|
19777 |
|
19778 | iconv.decodeStream = function decodeStream(encoding, options) {
|
19779 | return new IconvLiteDecoderStream(iconv.getDecoder(encoding, options), options);
|
19780 | }
|
19781 |
|
19782 | iconv.supportsStreams = true;
|
19783 |
|
19784 |
|
19785 |
|
19786 | iconv.IconvLiteEncoderStream = IconvLiteEncoderStream;
|
19787 | iconv.IconvLiteDecoderStream = IconvLiteDecoderStream;
|
19788 | iconv._collect = IconvLiteDecoderStream.prototype.collect;
|
19789 | };
|
19790 |
|
19791 |
|
19792 |
|
19793 | function IconvLiteEncoderStream(conv, options) {
|
19794 | this.conv = conv;
|
19795 | options = options || {};
|
19796 | options.decodeStrings = false;
|
19797 | Transform.call(this, options);
|
19798 | }
|
19799 |
|
19800 | IconvLiteEncoderStream.prototype = Object.create(Transform.prototype, {
|
19801 | constructor: { value: IconvLiteEncoderStream }
|
19802 | });
|
19803 |
|
19804 | IconvLiteEncoderStream.prototype._transform = function(chunk, encoding, done) {
|
19805 | if (typeof chunk != 'string')
|
19806 | return done(new Error("Iconv encoding stream needs strings as its input."));
|
19807 | try {
|
19808 | var res = this.conv.write(chunk);
|
19809 | if (res && res.length) this.push(res);
|
19810 | done();
|
19811 | }
|
19812 | catch (e) {
|
19813 | done(e);
|
19814 | }
|
19815 | }
|
19816 |
|
19817 | IconvLiteEncoderStream.prototype._flush = function(done) {
|
19818 | try {
|
19819 | var res = this.conv.end();
|
19820 | if (res && res.length) this.push(res);
|
19821 | done();
|
19822 | }
|
19823 | catch (e) {
|
19824 | done(e);
|
19825 | }
|
19826 | }
|
19827 |
|
19828 | IconvLiteEncoderStream.prototype.collect = function(cb) {
|
19829 | var chunks = [];
|
19830 | this.on('error', cb);
|
19831 | this.on('data', function(chunk) { chunks.push(chunk); });
|
19832 | this.on('end', function() {
|
19833 | cb(null, Buffer.concat(chunks));
|
19834 | });
|
19835 | return this;
|
19836 | }
|
19837 |
|
19838 |
|
19839 |
|
19840 | function IconvLiteDecoderStream(conv, options) {
|
19841 | this.conv = conv;
|
19842 | options = options || {};
|
19843 | options.encoding = this.encoding = 'utf8';
|
19844 | Transform.call(this, options);
|
19845 | }
|
19846 |
|
19847 | IconvLiteDecoderStream.prototype = Object.create(Transform.prototype, {
|
19848 | constructor: { value: IconvLiteDecoderStream }
|
19849 | });
|
19850 |
|
19851 | IconvLiteDecoderStream.prototype._transform = function(chunk, encoding, done) {
|
19852 | if (!Buffer.isBuffer(chunk))
|
19853 | return done(new Error("Iconv decoding stream needs buffers as its input."));
|
19854 | try {
|
19855 | var res = this.conv.write(chunk);
|
19856 | if (res && res.length) this.push(res, this.encoding);
|
19857 | done();
|
19858 | }
|
19859 | catch (e) {
|
19860 | done(e);
|
19861 | }
|
19862 | }
|
19863 |
|
19864 | IconvLiteDecoderStream.prototype._flush = function(done) {
|
19865 | try {
|
19866 | var res = this.conv.end();
|
19867 | if (res && res.length) this.push(res, this.encoding);
|
19868 | done();
|
19869 | }
|
19870 | catch (e) {
|
19871 | done(e);
|
19872 | }
|
19873 | }
|
19874 |
|
19875 | IconvLiteDecoderStream.prototype.collect = function(cb) {
|
19876 | var res = '';
|
19877 | this.on('error', cb);
|
19878 | this.on('data', function(chunk) { res += chunk; });
|
19879 | this.on('end', function() {
|
19880 | cb(null, res);
|
19881 | });
|
19882 | return this;
|
19883 | }
|
19884 |
|
19885 |
|
19886 |
|
19887 | }),
|
19888 | ,
|
19889 | ,
|
19890 | ,
|
19891 | ,
|
19892 |
|
19893 | (function(__unusedmodule, exports, __webpack_require__) {
|
19894 |
|
19895 | "use strict";
|
19896 |
|
19897 | var __importDefault = (this && this.__importDefault) || function (mod) {
|
19898 | return (mod && mod.__esModule) ? mod : { "default": mod };
|
19899 | };
|
19900 | Object.defineProperty(exports, "__esModule", { value: true });
|
19901 | exports.isSymbolicLink = void 0;
|
19902 | const path_1 = __importDefault(__webpack_require__(622));
|
19903 | const debug_1 = __importDefault(__webpack_require__(785));
|
19904 | const file_fs_ref_1 = __importDefault(__webpack_require__(194));
|
19905 | const fs_extra_1 = __webpack_require__(410);
|
19906 | const S_IFMT = 61440;
|
19907 | const S_IFLNK = 40960;
|
19908 | function isSymbolicLink(mode) {
|
19909 | return (mode & S_IFMT) === S_IFLNK;
|
19910 | }
|
19911 | exports.isSymbolicLink = isSymbolicLink;
|
19912 | async function downloadFile(file, fsPath) {
|
19913 | const { mode } = file;
|
19914 | if (mode && isSymbolicLink(mode) && file.type === 'FileFsRef') {
|
19915 | const [target] = await Promise.all([
|
19916 | fs_extra_1.readlink(file.fsPath),
|
19917 | fs_extra_1.mkdirp(path_1.default.dirname(fsPath)),
|
19918 | ]);
|
19919 | await fs_extra_1.symlink(target, fsPath);
|
19920 | return file_fs_ref_1.default.fromFsPath({ mode, fsPath });
|
19921 | }
|
19922 | else {
|
19923 | const stream = file.toStream();
|
19924 | return file_fs_ref_1.default.fromStream({ mode, stream, fsPath });
|
19925 | }
|
19926 | }
|
19927 | async function removeFile(basePath, fileMatched) {
|
19928 | const file = path_1.default.join(basePath, fileMatched);
|
19929 | await fs_extra_1.remove(file);
|
19930 | }
|
19931 | async function download(files, basePath, meta) {
|
19932 | const { isDev = false, skipDownload = false, filesChanged = null, filesRemoved = null, } = meta || {};
|
19933 | if (isDev || skipDownload) {
|
19934 |
|
19935 |
|
19936 |
|
19937 | return files;
|
19938 | }
|
19939 | debug_1.default('Downloading deployment source files...');
|
19940 | const start = Date.now();
|
19941 | const files2 = {};
|
19942 | const filenames = Object.keys(files);
|
19943 | await Promise.all(filenames.map(async (name) => {
|
19944 |
|
19945 | if (Array.isArray(filesRemoved) && filesRemoved.includes(name)) {
|
19946 | await removeFile(basePath, name);
|
19947 | return;
|
19948 | }
|
19949 |
|
19950 | if (Array.isArray(filesChanged) && !filesChanged.includes(name)) {
|
19951 | return;
|
19952 | }
|
19953 | const file = files[name];
|
19954 | const fsPath = path_1.default.join(basePath, name);
|
19955 | files2[name] = await downloadFile(file, fsPath);
|
19956 | }));
|
19957 | const duration = Date.now() - start;
|
19958 | debug_1.default(`Downloaded ${filenames.length} source files: ${duration}ms`);
|
19959 | return files2;
|
19960 | }
|
19961 | exports.default = download;
|
19962 |
|
19963 |
|
19964 | }),
|
19965 | ,
|
19966 | ,
|
19967 | ,
|
19968 | ,
|
19969 | ,
|
19970 | ,
|
19971 | ,
|
19972 |
|
19973 | (function(module) {
|
19974 |
|
19975 | if (typeof Object.create === 'function') {
|
19976 |
|
19977 | module.exports = function inherits(ctor, superCtor) {
|
19978 | if (superCtor) {
|
19979 | ctor.super_ = superCtor
|
19980 | ctor.prototype = Object.create(superCtor.prototype, {
|
19981 | constructor: {
|
19982 | value: ctor,
|
19983 | enumerable: false,
|
19984 | writable: true,
|
19985 | configurable: true
|
19986 | }
|
19987 | })
|
19988 | }
|
19989 | };
|
19990 | } else {
|
19991 |
|
19992 | module.exports = function inherits(ctor, superCtor) {
|
19993 | if (superCtor) {
|
19994 | ctor.super_ = superCtor
|
19995 | var TempCtor = function () {}
|
19996 | TempCtor.prototype = superCtor.prototype
|
19997 | ctor.prototype = new TempCtor()
|
19998 | ctor.prototype.constructor = ctor
|
19999 | }
|
20000 | }
|
20001 | }
|
20002 |
|
20003 |
|
20004 | }),
|
20005 | ,
|
20006 | ,
|
20007 | ,
|
20008 | ,
|
20009 | ,
|
20010 | ,
|
20011 | ,
|
20012 |
|
20013 | (function(module, __unusedexports, __webpack_require__) {
|
20014 |
|
20015 | "use strict";
|
20016 |
|
20017 |
|
20018 | var Type = __webpack_require__(653);
|
20019 |
|
20020 | function resolveJavascriptRegExp(data) {
|
20021 | if (data === null) return false;
|
20022 | if (data.length === 0) return false;
|
20023 |
|
20024 | var regexp = data,
|
20025 | tail = /\/([gim]*)$/.exec(data),
|
20026 | modifiers = '';
|
20027 |
|
20028 |
|
20029 |
|
20030 | if (regexp[0] === '/') {
|
20031 | if (tail) modifiers = tail[1];
|
20032 |
|
20033 | if (modifiers.length > 3) return false;
|
20034 |
|
20035 | if (regexp[regexp.length - modifiers.length - 1] !== '/') return false;
|
20036 | }
|
20037 |
|
20038 | return true;
|
20039 | }
|
20040 |
|
20041 | function constructJavascriptRegExp(data) {
|
20042 | var regexp = data,
|
20043 | tail = /\/([gim]*)$/.exec(data),
|
20044 | modifiers = '';
|
20045 |
|
20046 |
|
20047 | if (regexp[0] === '/') {
|
20048 | if (tail) modifiers = tail[1];
|
20049 | regexp = regexp.slice(1, regexp.length - modifiers.length - 1);
|
20050 | }
|
20051 |
|
20052 | return new RegExp(regexp, modifiers);
|
20053 | }
|
20054 |
|
20055 | function representJavascriptRegExp(object /*, style*/) {
|
20056 | var result = '/' + object.source + '/';
|
20057 |
|
20058 | if (object.global) result += 'g';
|
20059 | if (object.multiline) result += 'm';
|
20060 | if (object.ignoreCase) result += 'i';
|
20061 |
|
20062 | return result;
|
20063 | }
|
20064 |
|
20065 | function isRegExp(object) {
|
20066 | return Object.prototype.toString.call(object) === '[object RegExp]';
|
20067 | }
|
20068 |
|
20069 | module.exports = new Type('tag:yaml.org,2002:js/regexp', {
|
20070 | kind: 'scalar',
|
20071 | resolve: resolveJavascriptRegExp,
|
20072 | construct: constructJavascriptRegExp,
|
20073 | predicate: isRegExp,
|
20074 | represent: representJavascriptRegExp
|
20075 | });
|
20076 |
|
20077 |
|
20078 | }),
|
20079 | ,
|
20080 | ,
|
20081 |
|
20082 | (function(module, __unusedexports, __webpack_require__) {
|
20083 |
|
20084 | "use strict";
|
20085 |
|
20086 | const u = __webpack_require__(323).fromCallback
|
20087 | const mkdirs = u(__webpack_require__(171))
|
20088 | const mkdirsSync = __webpack_require__(452)
|
20089 |
|
20090 | module.exports = {
|
20091 | mkdirs,
|
20092 | mkdirsSync,
|
20093 |
|
20094 | mkdirp: mkdirs,
|
20095 | mkdirpSync: mkdirsSync,
|
20096 | ensureDir: mkdirs,
|
20097 | ensureDirSync: mkdirsSync
|
20098 | }
|
20099 |
|
20100 |
|
20101 | }),
|
20102 | ,
|
20103 | ,
|
20104 | ,
|
20105 | ,
|
20106 |
|
20107 | (function(module, __unusedexports, __webpack_require__) {
|
20108 |
|
20109 | "use strict";
|
20110 |
|
20111 |
|
20112 | var YAMLException = __webpack_require__(246);
|
20113 |
|
20114 | var TYPE_CONSTRUCTOR_OPTIONS = [
|
20115 | 'kind',
|
20116 | 'resolve',
|
20117 | 'construct',
|
20118 | 'instanceOf',
|
20119 | 'predicate',
|
20120 | 'represent',
|
20121 | 'defaultStyle',
|
20122 | 'styleAliases'
|
20123 | ];
|
20124 |
|
20125 | var YAML_NODE_KINDS = [
|
20126 | 'scalar',
|
20127 | 'sequence',
|
20128 | 'mapping'
|
20129 | ];
|
20130 |
|
20131 | function compileStyleAliases(map) {
|
20132 | var result = {};
|
20133 |
|
20134 | if (map !== null) {
|
20135 | Object.keys(map).forEach(function (style) {
|
20136 | map[style].forEach(function (alias) {
|
20137 | result[String(alias)] = style;
|
20138 | });
|
20139 | });
|
20140 | }
|
20141 |
|
20142 | return result;
|
20143 | }
|
20144 |
|
20145 | function Type(tag, options) {
|
20146 | options = options || {};
|
20147 |
|
20148 | Object.keys(options).forEach(function (name) {
|
20149 | if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
|
20150 | throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
|
20151 | }
|
20152 | });
|
20153 |
|
20154 |
|
20155 | this.tag = tag;
|
20156 | this.kind = options['kind'] || null;
|
20157 | this.resolve = options['resolve'] || function () { return true; };
|
20158 | this.construct = options['construct'] || function (data) { return data; };
|
20159 | this.instanceOf = options['instanceOf'] || null;
|
20160 | this.predicate = options['predicate'] || null;
|
20161 | this.represent = options['represent'] || null;
|
20162 | this.defaultStyle = options['defaultStyle'] || null;
|
20163 | this.styleAliases = compileStyleAliases(options['styleAliases'] || null);
|
20164 |
|
20165 | if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
|
20166 | throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
|
20167 | }
|
20168 | }
|
20169 |
|
20170 | module.exports = Type;
|
20171 |
|
20172 |
|
20173 | }),
|
20174 | ,
|
20175 | ,
|
20176 |
|
20177 | (function(module) {
|
20178 |
|
20179 | "use strict";
|
20180 |
|
20181 |
|
20182 | const preserveCamelCase = string => {
|
20183 | let isLastCharLower = false;
|
20184 | let isLastCharUpper = false;
|
20185 | let isLastLastCharUpper = false;
|
20186 |
|
20187 | for (let i = 0; i < string.length; i++) {
|
20188 | const character = string[i];
|
20189 |
|
20190 | if (isLastCharLower && /[a-zA-Z]/.test(character) && character.toUpperCase() === character) {
|
20191 | string = string.slice(0, i) + '-' + string.slice(i);
|
20192 | isLastCharLower = false;
|
20193 | isLastLastCharUpper = isLastCharUpper;
|
20194 | isLastCharUpper = true;
|
20195 | i++;
|
20196 | } else if (isLastCharUpper && isLastLastCharUpper && /[a-zA-Z]/.test(character) && character.toLowerCase() === character) {
|
20197 | string = string.slice(0, i - 1) + '-' + string.slice(i - 1);
|
20198 | isLastLastCharUpper = isLastCharUpper;
|
20199 | isLastCharUpper = false;
|
20200 | isLastCharLower = true;
|
20201 | } else {
|
20202 | isLastCharLower = character.toLowerCase() === character && character.toUpperCase() !== character;
|
20203 | isLastLastCharUpper = isLastCharUpper;
|
20204 | isLastCharUpper = character.toUpperCase() === character && character.toLowerCase() !== character;
|
20205 | }
|
20206 | }
|
20207 |
|
20208 | return string;
|
20209 | };
|
20210 |
|
20211 | const camelCase = (input, options) => {
|
20212 | if (!(typeof input === 'string' || Array.isArray(input))) {
|
20213 | throw new TypeError('Expected the input to be `string | string[]`');
|
20214 | }
|
20215 |
|
20216 | options = Object.assign({
|
20217 | pascalCase: false
|
20218 | }, options);
|
20219 |
|
20220 | const postProcess = x => options.pascalCase ? x.charAt(0).toUpperCase() + x.slice(1) : x;
|
20221 |
|
20222 | if (Array.isArray(input)) {
|
20223 | input = input.map(x => x.trim())
|
20224 | .filter(x => x.length)
|
20225 | .join('-');
|
20226 | } else {
|
20227 | input = input.trim();
|
20228 | }
|
20229 |
|
20230 | if (input.length === 0) {
|
20231 | return '';
|
20232 | }
|
20233 |
|
20234 | if (input.length === 1) {
|
20235 | return options.pascalCase ? input.toUpperCase() : input.toLowerCase();
|
20236 | }
|
20237 |
|
20238 | const hasUpperCase = input !== input.toLowerCase();
|
20239 |
|
20240 | if (hasUpperCase) {
|
20241 | input = preserveCamelCase(input);
|
20242 | }
|
20243 |
|
20244 | input = input
|
20245 | .replace(/^[_.\- ]+/, '')
|
20246 | .toLowerCase()
|
20247 | .replace(/[_.\- ]+(\w|$)/g, (_, p1) => p1.toUpperCase())
|
20248 | .replace(/\d+(\w|$)/g, m => m.toUpperCase());
|
20249 |
|
20250 | return postProcess(input);
|
20251 | };
|
20252 |
|
20253 | module.exports = camelCase;
|
20254 |
|
20255 | module.exports.default = camelCase;
|
20256 |
|
20257 |
|
20258 | }),
|
20259 | ,
|
20260 |
|
20261 | (function(module, __unusedexports, __webpack_require__) {
|
20262 |
|
20263 | "use strict";
|
20264 |
|
20265 | const {execFileSync} = __webpack_require__(129);
|
20266 | const path = __webpack_require__(622);
|
20267 |
|
20268 | const exec = (command, arguments_, shell) => execFileSync(command, arguments_, {encoding: 'utf8', shell}).trim();
|
20269 |
|
20270 | const create = (columns, rows) => ({
|
20271 | columns: parseInt(columns, 10),
|
20272 | rows: parseInt(rows, 10)
|
20273 | });
|
20274 |
|
20275 | module.exports = () => {
|
20276 | const {env, stdout, stderr} = process;
|
20277 |
|
20278 | if (stdout && stdout.columns && stdout.rows) {
|
20279 | return create(stdout.columns, stdout.rows);
|
20280 | }
|
20281 |
|
20282 | if (stderr && stderr.columns && stderr.rows) {
|
20283 | return create(stderr.columns, stderr.rows);
|
20284 | }
|
20285 |
|
20286 |
|
20287 | if (env.COLUMNS && env.LINES) {
|
20288 | return create(env.COLUMNS, env.LINES);
|
20289 | }
|
20290 |
|
20291 | if (process.platform === 'win32') {
|
20292 | try {
|
20293 |
|
20294 | const size = exec(__webpack_require__.ab + "term-size.exe").split(/\r?\n/);
|
20295 |
|
20296 | if (size.length === 2) {
|
20297 | return create(size[0], size[1]);
|
20298 | }
|
20299 | } catch (_) {}
|
20300 | } else {
|
20301 | if (process.platform === 'darwin') {
|
20302 | try {
|
20303 |
|
20304 | const size = exec(__webpack_require__.ab + "term-size", [], true).split(/\r?\n/);
|
20305 |
|
20306 | if (size.length === 2) {
|
20307 | return create(size[0], size[1]);
|
20308 | }
|
20309 | } catch (_) {}
|
20310 | }
|
20311 |
|
20312 |
|
20313 |
|
20314 | try {
|
20315 | const size = exec('resize', ['-u']).match(/\d+/g);
|
20316 |
|
20317 | if (size.length === 2) {
|
20318 | return create(size[0], size[1]);
|
20319 | }
|
20320 | } catch (_) {}
|
20321 |
|
20322 | if (process.env.TERM) {
|
20323 | try {
|
20324 | const columns = exec('tput', ['cols']);
|
20325 | const rows = exec('tput', ['lines']);
|
20326 |
|
20327 | if (columns && rows) {
|
20328 | return create(columns, rows);
|
20329 | }
|
20330 | } catch (_) {}
|
20331 | }
|
20332 | }
|
20333 |
|
20334 | return create(80, 24);
|
20335 | };
|
20336 |
|
20337 |
|
20338 | }),
|
20339 | ,
|
20340 | ,
|
20341 |
|
20342 | (function(module, __unusedexports, __webpack_require__) {
|
20343 |
|
20344 | "use strict";
|
20345 |
|
20346 |
|
20347 | var Type = __webpack_require__(653);
|
20348 |
|
20349 | var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
20350 |
|
20351 | function resolveYamlSet(data) {
|
20352 | if (data === null) return true;
|
20353 |
|
20354 | var key, object = data;
|
20355 |
|
20356 | for (key in object) {
|
20357 | if (_hasOwnProperty.call(object, key)) {
|
20358 | if (object[key] !== null) return false;
|
20359 | }
|
20360 | }
|
20361 |
|
20362 | return true;
|
20363 | }
|
20364 |
|
20365 | function constructYamlSet(data) {
|
20366 | return data !== null ? data : {};
|
20367 | }
|
20368 |
|
20369 | module.exports = new Type('tag:yaml.org,2002:set', {
|
20370 | kind: 'mapping',
|
20371 | resolve: resolveYamlSet,
|
20372 | construct: constructYamlSet
|
20373 | });
|
20374 |
|
20375 |
|
20376 | }),
|
20377 | ,
|
20378 |
|
20379 | (function(module, __unusedexports, __webpack_require__) {
|
20380 |
|
20381 | var Readable = __webpack_require__(366).Readable
|
20382 | var inherits = __webpack_require__(536)
|
20383 |
|
20384 | module.exports = from2
|
20385 |
|
20386 | from2.ctor = ctor
|
20387 | from2.obj = obj
|
20388 |
|
20389 | var Proto = ctor()
|
20390 |
|
20391 | function toFunction(list) {
|
20392 | list = list.slice()
|
20393 | return function (_, cb) {
|
20394 | var err = null
|
20395 | var item = list.length ? list.shift() : null
|
20396 | if (item instanceof Error) {
|
20397 | err = item
|
20398 | item = null
|
20399 | }
|
20400 |
|
20401 | cb(err, item)
|
20402 | }
|
20403 | }
|
20404 |
|
20405 | function from2(opts, read) {
|
20406 | if (typeof opts !== 'object' || Array.isArray(opts)) {
|
20407 | read = opts
|
20408 | opts = {}
|
20409 | }
|
20410 |
|
20411 | var rs = new Proto(opts)
|
20412 | rs._from = Array.isArray(read) ? toFunction(read) : (read || noop)
|
20413 | return rs
|
20414 | }
|
20415 |
|
20416 | function ctor(opts, read) {
|
20417 | if (typeof opts === 'function') {
|
20418 | read = opts
|
20419 | opts = {}
|
20420 | }
|
20421 |
|
20422 | opts = defaults(opts)
|
20423 |
|
20424 | inherits(Class, Readable)
|
20425 | function Class(override) {
|
20426 | if (!(this instanceof Class)) return new Class(override)
|
20427 | this._reading = false
|
20428 | this._callback = check
|
20429 | this.destroyed = false
|
20430 | Readable.call(this, override || opts)
|
20431 |
|
20432 | var self = this
|
20433 | var hwm = this._readableState.highWaterMark
|
20434 |
|
20435 | function check(err, data) {
|
20436 | if (self.destroyed) return
|
20437 | if (err) return self.destroy(err)
|
20438 | if (data === null) return self.push(null)
|
20439 | self._reading = false
|
20440 | if (self.push(data)) self._read(hwm)
|
20441 | }
|
20442 | }
|
20443 |
|
20444 | Class.prototype._from = read || noop
|
20445 | Class.prototype._read = function(size) {
|
20446 | if (this._reading || this.destroyed) return
|
20447 | this._reading = true
|
20448 | this._from(size, this._callback)
|
20449 | }
|
20450 |
|
20451 | Class.prototype.destroy = function(err) {
|
20452 | if (this.destroyed) return
|
20453 | this.destroyed = true
|
20454 |
|
20455 | var self = this
|
20456 | process.nextTick(function() {
|
20457 | if (err) self.emit('error', err)
|
20458 | self.emit('close')
|
20459 | })
|
20460 | }
|
20461 |
|
20462 | return Class
|
20463 | }
|
20464 |
|
20465 | function obj(opts, read) {
|
20466 | if (typeof opts === 'function' || Array.isArray(opts)) {
|
20467 | read = opts
|
20468 | opts = {}
|
20469 | }
|
20470 |
|
20471 | opts = defaults(opts)
|
20472 | opts.objectMode = true
|
20473 | opts.highWaterMark = 16
|
20474 |
|
20475 | return from2(opts, read)
|
20476 | }
|
20477 |
|
20478 | function noop () {}
|
20479 |
|
20480 | function defaults(opts) {
|
20481 | opts = opts || {}
|
20482 | return opts
|
20483 | }
|
20484 |
|
20485 |
|
20486 | }),
|
20487 | ,
|
20488 | ,
|
20489 | ,
|
20490 |
|
20491 | (function(module, __unusedexports, __webpack_require__) {
|
20492 |
|
20493 | "use strict";
|
20494 |
|
20495 |
|
20496 | const fs = __webpack_require__(729)
|
20497 | const path = __webpack_require__(622)
|
20498 | const copySync = __webpack_require__(161).copySync
|
20499 | const removeSync = __webpack_require__(301).removeSync
|
20500 | const mkdirpSync = __webpack_require__(648).mkdirsSync
|
20501 | const buffer = __webpack_require__(518)
|
20502 |
|
20503 | function moveSync (src, dest, options) {
|
20504 | options = options || {}
|
20505 | const overwrite = options.overwrite || options.clobber || false
|
20506 |
|
20507 | src = path.resolve(src)
|
20508 | dest = path.resolve(dest)
|
20509 |
|
20510 | if (src === dest) return fs.accessSync(src)
|
20511 |
|
20512 | if (isSrcSubdir(src, dest)) throw new Error(`Cannot move '${src}' into itself '${dest}'.`)
|
20513 |
|
20514 | mkdirpSync(path.dirname(dest))
|
20515 | tryRenameSync()
|
20516 |
|
20517 | function tryRenameSync () {
|
20518 | if (overwrite) {
|
20519 | try {
|
20520 | return fs.renameSync(src, dest)
|
20521 | } catch (err) {
|
20522 | if (err.code === 'ENOTEMPTY' || err.code === 'EEXIST' || err.code === 'EPERM') {
|
20523 | removeSync(dest)
|
20524 | options.overwrite = false
|
20525 | return moveSync(src, dest, options)
|
20526 | }
|
20527 |
|
20528 | if (err.code !== 'EXDEV') throw err
|
20529 | return moveSyncAcrossDevice(src, dest, overwrite)
|
20530 | }
|
20531 | } else {
|
20532 | try {
|
20533 | fs.linkSync(src, dest)
|
20534 | return fs.unlinkSync(src)
|
20535 | } catch (err) {
|
20536 | if (err.code === 'EXDEV' || err.code === 'EISDIR' || err.code === 'EPERM' || err.code === 'ENOTSUP') {
|
20537 | return moveSyncAcrossDevice(src, dest, overwrite)
|
20538 | }
|
20539 | throw err
|
20540 | }
|
20541 | }
|
20542 | }
|
20543 | }
|
20544 |
|
20545 | function moveSyncAcrossDevice (src, dest, overwrite) {
|
20546 | const stat = fs.statSync(src)
|
20547 |
|
20548 | if (stat.isDirectory()) {
|
20549 | return moveDirSyncAcrossDevice(src, dest, overwrite)
|
20550 | } else {
|
20551 | return moveFileSyncAcrossDevice(src, dest, overwrite)
|
20552 | }
|
20553 | }
|
20554 |
|
20555 | function moveFileSyncAcrossDevice (src, dest, overwrite) {
|
20556 | const BUF_LENGTH = 64 * 1024
|
20557 | const _buff = buffer(BUF_LENGTH)
|
20558 |
|
20559 | const flags = overwrite ? 'w' : 'wx'
|
20560 |
|
20561 | const fdr = fs.openSync(src, 'r')
|
20562 | const stat = fs.fstatSync(fdr)
|
20563 | const fdw = fs.openSync(dest, flags, stat.mode)
|
20564 | let pos = 0
|
20565 |
|
20566 | while (pos < stat.size) {
|
20567 | const bytesRead = fs.readSync(fdr, _buff, 0, BUF_LENGTH, pos)
|
20568 | fs.writeSync(fdw, _buff, 0, bytesRead)
|
20569 | pos += bytesRead
|
20570 | }
|
20571 |
|
20572 | fs.closeSync(fdr)
|
20573 | fs.closeSync(fdw)
|
20574 | return fs.unlinkSync(src)
|
20575 | }
|
20576 |
|
20577 | function moveDirSyncAcrossDevice (src, dest, overwrite) {
|
20578 | const options = {
|
20579 | overwrite: false
|
20580 | }
|
20581 |
|
20582 | if (overwrite) {
|
20583 | removeSync(dest)
|
20584 | tryCopySync()
|
20585 | } else {
|
20586 | tryCopySync()
|
20587 | }
|
20588 |
|
20589 | function tryCopySync () {
|
20590 | copySync(src, dest, options)
|
20591 | return removeSync(src)
|
20592 | }
|
20593 | }
|
20594 |
|
20595 |
|
20596 |
|
20597 | function isSrcSubdir (src, dest) {
|
20598 | try {
|
20599 | return fs.statSync(src).isDirectory() &&
|
20600 | src !== dest &&
|
20601 | dest.indexOf(src) > -1 &&
|
20602 | dest.split(path.dirname(src) + path.sep)[1].split(path.sep)[0] === path.basename(src)
|
20603 | } catch (e) {
|
20604 | return false
|
20605 | }
|
20606 | }
|
20607 |
|
20608 | module.exports = {
|
20609 | moveSync
|
20610 | }
|
20611 |
|
20612 |
|
20613 | }),
|
20614 | ,
|
20615 |
|
20616 | (function(module) {
|
20617 |
|
20618 | module.exports = require("util");
|
20619 |
|
20620 | }),
|
20621 | ,
|
20622 | ,
|
20623 |
|
20624 | (function(module, __unusedexports, __webpack_require__) {
|
20625 |
|
20626 | "use strict";
|
20627 |
|
20628 | var Buffer = __webpack_require__(293).Buffer;
|
20629 |
|
20630 |
|
20631 |
|
20632 |
|
20633 | module.exports = function (iconv) {
|
20634 | var original = undefined;
|
20635 |
|
20636 |
|
20637 |
|
20638 |
|
20639 | iconv.supportsNodeEncodingsExtension = !(Buffer.from || new Buffer(0) instanceof Uint8Array);
|
20640 |
|
20641 | iconv.extendNodeEncodings = function extendNodeEncodings() {
|
20642 | if (original) return;
|
20643 | original = {};
|
20644 |
|
20645 | if (!iconv.supportsNodeEncodingsExtension) {
|
20646 | console.error("ACTION NEEDED: require('iconv-lite').extendNodeEncodings() is not supported in your version of Node");
|
20647 | console.error("See more info at https://github.com/ashtuchkin/iconv-lite/wiki/Node-v4-compatibility");
|
20648 | return;
|
20649 | }
|
20650 |
|
20651 | var nodeNativeEncodings = {
|
20652 | 'hex': true, 'utf8': true, 'utf-8': true, 'ascii': true, 'binary': true,
|
20653 | 'base64': true, 'ucs2': true, 'ucs-2': true, 'utf16le': true, 'utf-16le': true,
|
20654 | };
|
20655 |
|
20656 | Buffer.isNativeEncoding = function(enc) {
|
20657 | return enc && nodeNativeEncodings[enc.toLowerCase()];
|
20658 | }
|
20659 |
|
20660 |
|
20661 | var SlowBuffer = __webpack_require__(293).SlowBuffer;
|
20662 |
|
20663 | original.SlowBufferToString = SlowBuffer.prototype.toString;
|
20664 | SlowBuffer.prototype.toString = function(encoding, start, end) {
|
20665 | encoding = String(encoding || 'utf8').toLowerCase();
|
20666 |
|
20667 |
|
20668 | if (Buffer.isNativeEncoding(encoding))
|
20669 | return original.SlowBufferToString.call(this, encoding, start, end);
|
20670 |
|
20671 |
|
20672 | if (typeof start == 'undefined') start = 0;
|
20673 | if (typeof end == 'undefined') end = this.length;
|
20674 | return iconv.decode(this.slice(start, end), encoding);
|
20675 | }
|
20676 |
|
20677 | original.SlowBufferWrite = SlowBuffer.prototype.write;
|
20678 | SlowBuffer.prototype.write = function(string, offset, length, encoding) {
|
20679 |
|
20680 |
|
20681 | if (isFinite(offset)) {
|
20682 | if (!isFinite(length)) {
|
20683 | encoding = length;
|
20684 | length = undefined;
|
20685 | }
|
20686 | } else {
|
20687 | var swap = encoding;
|
20688 | encoding = offset;
|
20689 | offset = length;
|
20690 | length = swap;
|
20691 | }
|
20692 |
|
20693 | offset = +offset || 0;
|
20694 | var remaining = this.length - offset;
|
20695 | if (!length) {
|
20696 | length = remaining;
|
20697 | } else {
|
20698 | length = +length;
|
20699 | if (length > remaining) {
|
20700 | length = remaining;
|
20701 | }
|
20702 | }
|
20703 | encoding = String(encoding || 'utf8').toLowerCase();
|
20704 |
|
20705 |
|
20706 | if (Buffer.isNativeEncoding(encoding))
|
20707 | return original.SlowBufferWrite.call(this, string, offset, length, encoding);
|
20708 |
|
20709 | if (string.length > 0 && (length < 0 || offset < 0))
|
20710 | throw new RangeError('attempt to write beyond buffer bounds');
|
20711 |
|
20712 |
|
20713 | var buf = iconv.encode(string, encoding);
|
20714 | if (buf.length < length) length = buf.length;
|
20715 | buf.copy(this, offset, 0, length);
|
20716 | return length;
|
20717 | }
|
20718 |
|
20719 |
|
20720 |
|
20721 | original.BufferIsEncoding = Buffer.isEncoding;
|
20722 | Buffer.isEncoding = function(encoding) {
|
20723 | return Buffer.isNativeEncoding(encoding) || iconv.encodingExists(encoding);
|
20724 | }
|
20725 |
|
20726 | original.BufferByteLength = Buffer.byteLength;
|
20727 | Buffer.byteLength = SlowBuffer.byteLength = function(str, encoding) {
|
20728 | encoding = String(encoding || 'utf8').toLowerCase();
|
20729 |
|
20730 |
|
20731 | if (Buffer.isNativeEncoding(encoding))
|
20732 | return original.BufferByteLength.call(this, str, encoding);
|
20733 |
|
20734 |
|
20735 | return iconv.encode(str, encoding).length;
|
20736 | }
|
20737 |
|
20738 | original.BufferToString = Buffer.prototype.toString;
|
20739 | Buffer.prototype.toString = function(encoding, start, end) {
|
20740 | encoding = String(encoding || 'utf8').toLowerCase();
|
20741 |
|
20742 |
|
20743 | if (Buffer.isNativeEncoding(encoding))
|
20744 | return original.BufferToString.call(this, encoding, start, end);
|
20745 |
|
20746 |
|
20747 | if (typeof start == 'undefined') start = 0;
|
20748 | if (typeof end == 'undefined') end = this.length;
|
20749 | return iconv.decode(this.slice(start, end), encoding);
|
20750 | }
|
20751 |
|
20752 | original.BufferWrite = Buffer.prototype.write;
|
20753 | Buffer.prototype.write = function(string, offset, length, encoding) {
|
20754 | var _offset = offset, _length = length, _encoding = encoding;
|
20755 |
|
20756 |
|
20757 | if (isFinite(offset)) {
|
20758 | if (!isFinite(length)) {
|
20759 | encoding = length;
|
20760 | length = undefined;
|
20761 | }
|
20762 | } else {
|
20763 | var swap = encoding;
|
20764 | encoding = offset;
|
20765 | offset = length;
|
20766 | length = swap;
|
20767 | }
|
20768 |
|
20769 | encoding = String(encoding || 'utf8').toLowerCase();
|
20770 |
|
20771 |
|
20772 | if (Buffer.isNativeEncoding(encoding))
|
20773 | return original.BufferWrite.call(this, string, _offset, _length, _encoding);
|
20774 |
|
20775 | offset = +offset || 0;
|
20776 | var remaining = this.length - offset;
|
20777 | if (!length) {
|
20778 | length = remaining;
|
20779 | } else {
|
20780 | length = +length;
|
20781 | if (length > remaining) {
|
20782 | length = remaining;
|
20783 | }
|
20784 | }
|
20785 |
|
20786 | if (string.length > 0 && (length < 0 || offset < 0))
|
20787 | throw new RangeError('attempt to write beyond buffer bounds');
|
20788 |
|
20789 |
|
20790 | var buf = iconv.encode(string, encoding);
|
20791 | if (buf.length < length) length = buf.length;
|
20792 | buf.copy(this, offset, 0, length);
|
20793 | return length;
|
20794 |
|
20795 |
|
20796 | }
|
20797 |
|
20798 |
|
20799 |
|
20800 | if (iconv.supportsStreams) {
|
20801 | var Readable = __webpack_require__(413).Readable;
|
20802 |
|
20803 | original.ReadableSetEncoding = Readable.prototype.setEncoding;
|
20804 | Readable.prototype.setEncoding = function setEncoding(enc, options) {
|
20805 |
|
20806 |
|
20807 | this._readableState.decoder = iconv.getDecoder(enc, options);
|
20808 | this._readableState.encoding = enc;
|
20809 | }
|
20810 |
|
20811 | Readable.prototype.collect = iconv._collect;
|
20812 | }
|
20813 | }
|
20814 |
|
20815 |
|
20816 | iconv.undoExtendNodeEncodings = function undoExtendNodeEncodings() {
|
20817 | if (!iconv.supportsNodeEncodingsExtension)
|
20818 | return;
|
20819 | if (!original)
|
20820 | throw new Error("require('iconv-lite').undoExtendNodeEncodings(): Nothing to undo; extendNodeEncodings() is not called.")
|
20821 |
|
20822 | delete Buffer.isNativeEncoding;
|
20823 |
|
20824 | var SlowBuffer = __webpack_require__(293).SlowBuffer;
|
20825 |
|
20826 | SlowBuffer.prototype.toString = original.SlowBufferToString;
|
20827 | SlowBuffer.prototype.write = original.SlowBufferWrite;
|
20828 |
|
20829 | Buffer.isEncoding = original.BufferIsEncoding;
|
20830 | Buffer.byteLength = original.BufferByteLength;
|
20831 | Buffer.prototype.toString = original.BufferToString;
|
20832 | Buffer.prototype.write = original.BufferWrite;
|
20833 |
|
20834 | if (iconv.supportsStreams) {
|
20835 | var Readable = __webpack_require__(413).Readable;
|
20836 |
|
20837 | Readable.prototype.setEncoding = original.ReadableSetEncoding;
|
20838 | delete Readable.prototype.collect;
|
20839 | }
|
20840 |
|
20841 | original = undefined;
|
20842 | }
|
20843 | }
|
20844 |
|
20845 |
|
20846 | }),
|
20847 | ,
|
20848 | ,
|
20849 | ,
|
20850 |
|
20851 | (function(module) {
|
20852 |
|
20853 | "use strict";
|
20854 |
|
20855 |
|
20856 | module.exports = ({onlyFirst = false} = {}) => {
|
20857 | const pattern = [
|
20858 | '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
|
20859 | '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
|
20860 | ].join('|');
|
20861 |
|
20862 | return new RegExp(pattern, onlyFirst ? undefined : 'g');
|
20863 | };
|
20864 |
|
20865 |
|
20866 | }),
|
20867 |
|
20868 | (function(module) {
|
20869 |
|
20870 | "use strict";
|
20871 |
|
20872 | module.exports = (d, num) => {
|
20873 | num = String(num)
|
20874 | while (num.length < d) num = '0' + num
|
20875 | return num
|
20876 | }
|
20877 |
|
20878 |
|
20879 | }),
|
20880 | ,
|
20881 | ,
|
20882 |
|
20883 | (function(module, __unusedexports, __webpack_require__) {
|
20884 |
|
20885 | var once = __webpack_require__(538);
|
20886 |
|
20887 | var noop = function() {};
|
20888 |
|
20889 | var isRequest = function(stream) {
|
20890 | return stream.setHeader && typeof stream.abort === 'function';
|
20891 | };
|
20892 |
|
20893 | var isChildProcess = function(stream) {
|
20894 | return stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3
|
20895 | };
|
20896 |
|
20897 | var eos = function(stream, opts, callback) {
|
20898 | if (typeof opts === 'function') return eos(stream, null, opts);
|
20899 | if (!opts) opts = {};
|
20900 |
|
20901 | callback = once(callback || noop);
|
20902 |
|
20903 | var ws = stream._writableState;
|
20904 | var rs = stream._readableState;
|
20905 | var readable = opts.readable || (opts.readable !== false && stream.readable);
|
20906 | var writable = opts.writable || (opts.writable !== false && stream.writable);
|
20907 |
|
20908 | var onlegacyfinish = function() {
|
20909 | if (!stream.writable) onfinish();
|
20910 | };
|
20911 |
|
20912 | var onfinish = function() {
|
20913 | writable = false;
|
20914 | if (!readable) callback.call(stream);
|
20915 | };
|
20916 |
|
20917 | var onend = function() {
|
20918 | readable = false;
|
20919 | if (!writable) callback.call(stream);
|
20920 | };
|
20921 |
|
20922 | var onexit = function(exitCode) {
|
20923 | callback.call(stream, exitCode ? new Error('exited with error code: ' + exitCode) : null);
|
20924 | };
|
20925 |
|
20926 | var onerror = function(err) {
|
20927 | callback.call(stream, err);
|
20928 | };
|
20929 |
|
20930 | var onclose = function() {
|
20931 | if (readable && !(rs && rs.ended)) return callback.call(stream, new Error('premature close'));
|
20932 | if (writable && !(ws && ws.ended)) return callback.call(stream, new Error('premature close'));
|
20933 | };
|
20934 |
|
20935 | var onrequest = function() {
|
20936 | stream.req.on('finish', onfinish);
|
20937 | };
|
20938 |
|
20939 | if (isRequest(stream)) {
|
20940 | stream.on('complete', onfinish);
|
20941 | stream.on('abort', onclose);
|
20942 | if (stream.req) onrequest();
|
20943 | else stream.on('request', onrequest);
|
20944 | } else if (writable && !ws) {
|
20945 | stream.on('end', onlegacyfinish);
|
20946 | stream.on('close', onlegacyfinish);
|
20947 | }
|
20948 |
|
20949 | if (isChildProcess(stream)) stream.on('exit', onexit);
|
20950 |
|
20951 | stream.on('end', onend);
|
20952 | stream.on('finish', onfinish);
|
20953 | if (opts.error !== false) stream.on('error', onerror);
|
20954 | stream.on('close', onclose);
|
20955 |
|
20956 | return function() {
|
20957 | stream.removeListener('complete', onfinish);
|
20958 | stream.removeListener('abort', onclose);
|
20959 | stream.removeListener('request', onrequest);
|
20960 | if (stream.req) stream.req.removeListener('finish', onfinish);
|
20961 | stream.removeListener('end', onlegacyfinish);
|
20962 | stream.removeListener('close', onlegacyfinish);
|
20963 | stream.removeListener('finish', onfinish);
|
20964 | stream.removeListener('exit', onexit);
|
20965 | stream.removeListener('end', onend);
|
20966 | stream.removeListener('error', onerror);
|
20967 | stream.removeListener('close', onclose);
|
20968 | };
|
20969 | };
|
20970 |
|
20971 | module.exports = eos;
|
20972 |
|
20973 |
|
20974 | }),
|
20975 | ,
|
20976 | ,
|
20977 | ,
|
20978 | ,
|
20979 | ,
|
20980 | ,
|
20981 | ,
|
20982 | ,
|
20983 | ,
|
20984 | ,
|
20985 | ,
|
20986 | ,
|
20987 | ,
|
20988 | ,
|
20989 | ,
|
20990 |
|
20991 | (function(__unusedmodule, exports, __webpack_require__) {
|
20992 |
|
20993 | var RetryOperation = __webpack_require__(562);
|
20994 |
|
20995 | exports.operation = function(options) {
|
20996 | var timeouts = exports.timeouts(options);
|
20997 | return new RetryOperation(timeouts, {
|
20998 | forever: options && options.forever,
|
20999 | unref: options && options.unref,
|
21000 | maxRetryTime: options && options.maxRetryTime
|
21001 | });
|
21002 | };
|
21003 |
|
21004 | exports.timeouts = function(options) {
|
21005 | if (options instanceof Array) {
|
21006 | return [].concat(options);
|
21007 | }
|
21008 |
|
21009 | var opts = {
|
21010 | retries: 10,
|
21011 | factor: 2,
|
21012 | minTimeout: 1 * 1000,
|
21013 | maxTimeout: Infinity,
|
21014 | randomize: false
|
21015 | };
|
21016 | for (var key in options) {
|
21017 | opts[key] = options[key];
|
21018 | }
|
21019 |
|
21020 | if (opts.minTimeout > opts.maxTimeout) {
|
21021 | throw new Error('minTimeout is greater than maxTimeout');
|
21022 | }
|
21023 |
|
21024 | var timeouts = [];
|
21025 | for (var i = 0; i < opts.retries; i++) {
|
21026 | timeouts.push(this.createTimeout(i, opts));
|
21027 | }
|
21028 |
|
21029 | if (options && options.forever && !timeouts.length) {
|
21030 | timeouts.push(this.createTimeout(i, opts));
|
21031 | }
|
21032 |
|
21033 |
|
21034 | timeouts.sort(function(a,b) {
|
21035 | return a - b;
|
21036 | });
|
21037 |
|
21038 | return timeouts;
|
21039 | };
|
21040 |
|
21041 | exports.createTimeout = function(attempt, opts) {
|
21042 | var random = (opts.randomize)
|
21043 | ? (Math.random() + 1)
|
21044 | : 1;
|
21045 |
|
21046 | var timeout = Math.round(random * opts.minTimeout * Math.pow(opts.factor, attempt));
|
21047 | timeout = Math.min(timeout, opts.maxTimeout);
|
21048 |
|
21049 | return timeout;
|
21050 | };
|
21051 |
|
21052 | exports.wrap = function(obj, options, methods) {
|
21053 | if (options instanceof Array) {
|
21054 | methods = options;
|
21055 | options = null;
|
21056 | }
|
21057 |
|
21058 | if (!methods) {
|
21059 | methods = [];
|
21060 | for (var key in obj) {
|
21061 | if (typeof obj[key] === 'function') {
|
21062 | methods.push(key);
|
21063 | }
|
21064 | }
|
21065 | }
|
21066 |
|
21067 | for (var i = 0; i < methods.length; i++) {
|
21068 | var method = methods[i];
|
21069 | var original = obj[method];
|
21070 |
|
21071 | obj[method] = function retryWrapper(original) {
|
21072 | var op = exports.operation(options);
|
21073 | var args = Array.prototype.slice.call(arguments, 1);
|
21074 | var callback = args.pop();
|
21075 |
|
21076 | args.push(function(err) {
|
21077 | if (op.retry(err)) {
|
21078 | return;
|
21079 | }
|
21080 | if (err) {
|
21081 | arguments[0] = op.mainError();
|
21082 | }
|
21083 | callback.apply(this, arguments);
|
21084 | });
|
21085 |
|
21086 | op.attempt(function() {
|
21087 | original.apply(obj, args);
|
21088 | });
|
21089 | }.bind(obj, original);
|
21090 | obj[method].options = options;
|
21091 | }
|
21092 | };
|
21093 |
|
21094 |
|
21095 | }),
|
21096 | ,
|
21097 | ,
|
21098 | ,
|
21099 | ,
|
21100 | ,
|
21101 | ,
|
21102 | ,
|
21103 | ,
|
21104 | ,
|
21105 |
|
21106 | (function(module, __unusedexports, __webpack_require__) {
|
21107 |
|
21108 | "use strict";
|
21109 |
|
21110 |
|
21111 |
|
21112 |
|
21113 |
|
21114 |
|
21115 |
|
21116 |
|
21117 |
|
21118 |
|
21119 |
|
21120 |
|
21121 |
|
21122 |
|
21123 |
|
21124 |
|
21125 |
|
21126 |
|
21127 |
|
21128 |
|
21129 |
|
21130 |
|
21131 |
|
21132 |
|
21133 |
|
21134 | var pna = __webpack_require__(511);
|
21135 |
|
21136 |
|
21137 | module.exports = Readable;
|
21138 |
|
21139 |
|
21140 | var isArray = __webpack_require__(477);
|
21141 |
|
21142 |
|
21143 |
|
21144 | var Duplex;
|
21145 |
|
21146 |
|
21147 | Readable.ReadableState = ReadableState;
|
21148 |
|
21149 |
|
21150 | var EE = __webpack_require__(614).EventEmitter;
|
21151 |
|
21152 | var EElistenerCount = function (emitter, type) {
|
21153 | return emitter.listeners(type).length;
|
21154 | };
|
21155 |
|
21156 |
|
21157 |
|
21158 | var Stream = __webpack_require__(707);
|
21159 |
|
21160 |
|
21161 |
|
21162 |
|
21163 | var Buffer = __webpack_require__(393).Buffer;
|
21164 | var OurUint8Array = global.Uint8Array || function () {};
|
21165 | function _uint8ArrayToBuffer(chunk) {
|
21166 | return Buffer.from(chunk);
|
21167 | }
|
21168 | function _isUint8Array(obj) {
|
21169 | return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;
|
21170 | }
|
21171 |
|
21172 |
|
21173 |
|
21174 |
|
21175 | var util = Object.create(__webpack_require__(130));
|
21176 | util.inherits = __webpack_require__(536);
|
21177 |
|
21178 |
|
21179 |
|
21180 | var debugUtil = __webpack_require__(669);
|
21181 | var debug = void 0;
|
21182 | if (debugUtil && debugUtil.debuglog) {
|
21183 | debug = debugUtil.debuglog('stream');
|
21184 | } else {
|
21185 | debug = function () {};
|
21186 | }
|
21187 |
|
21188 |
|
21189 | var BufferList = __webpack_require__(4);
|
21190 | var destroyImpl = __webpack_require__(596);
|
21191 | var StringDecoder;
|
21192 |
|
21193 | util.inherits(Readable, Stream);
|
21194 |
|
21195 | var kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];
|
21196 |
|
21197 | function prependListener(emitter, event, fn) {
|
21198 |
|
21199 |
|
21200 | if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn);
|
21201 |
|
21202 |
|
21203 |
|
21204 |
|
21205 |
|
21206 | if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];
|
21207 | }
|
21208 |
|
21209 | function ReadableState(options, stream) {
|
21210 | Duplex = Duplex || __webpack_require__(588);
|
21211 |
|
21212 | options = options || {};
|
21213 |
|
21214 |
|
21215 |
|
21216 |
|
21217 |
|
21218 |
|
21219 | var isDuplex = stream instanceof Duplex;
|
21220 |
|
21221 |
|
21222 |
|
21223 | this.objectMode = !!options.objectMode;
|
21224 |
|
21225 | if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode;
|
21226 |
|
21227 |
|
21228 |
|
21229 | var hwm = options.highWaterMark;
|
21230 | var readableHwm = options.readableHighWaterMark;
|
21231 | var defaultHwm = this.objectMode ? 16 : 16 * 1024;
|
21232 |
|
21233 | if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (readableHwm || readableHwm === 0)) this.highWaterMark = readableHwm;else this.highWaterMark = defaultHwm;
|
21234 |
|
21235 |
|
21236 | this.highWaterMark = Math.floor(this.highWaterMark);
|
21237 |
|
21238 |
|
21239 |
|
21240 |
|
21241 | this.buffer = new BufferList();
|
21242 | this.length = 0;
|
21243 | this.pipes = null;
|
21244 | this.pipesCount = 0;
|
21245 | this.flowing = null;
|
21246 | this.ended = false;
|
21247 | this.endEmitted = false;
|
21248 | this.reading = false;
|
21249 |
|
21250 |
|
21251 |
|
21252 |
|
21253 |
|
21254 | this.sync = true;
|
21255 |
|
21256 |
|
21257 |
|
21258 | this.needReadable = false;
|
21259 | this.emittedReadable = false;
|
21260 | this.readableListening = false;
|
21261 | this.resumeScheduled = false;
|
21262 |
|
21263 |
|
21264 | this.destroyed = false;
|
21265 |
|
21266 |
|
21267 |
|
21268 |
|
21269 | this.defaultEncoding = options.defaultEncoding || 'utf8';
|
21270 |
|
21271 |
|
21272 | this.awaitDrain = 0;
|
21273 |
|
21274 |
|
21275 | this.readingMore = false;
|
21276 |
|
21277 | this.decoder = null;
|
21278 | this.encoding = null;
|
21279 | if (options.encoding) {
|
21280 | if (!StringDecoder) StringDecoder = __webpack_require__(197).StringDecoder;
|
21281 | this.decoder = new StringDecoder(options.encoding);
|
21282 | this.encoding = options.encoding;
|
21283 | }
|
21284 | }
|
21285 |
|
21286 | function Readable(options) {
|
21287 | Duplex = Duplex || __webpack_require__(588);
|
21288 |
|
21289 | if (!(this instanceof Readable)) return new Readable(options);
|
21290 |
|
21291 | this._readableState = new ReadableState(options, this);
|
21292 |
|
21293 |
|
21294 | this.readable = true;
|
21295 |
|
21296 | if (options) {
|
21297 | if (typeof options.read === 'function') this._read = options.read;
|
21298 |
|
21299 | if (typeof options.destroy === 'function') this._destroy = options.destroy;
|
21300 | }
|
21301 |
|
21302 | Stream.call(this);
|
21303 | }
|
21304 |
|
21305 | Object.defineProperty(Readable.prototype, 'destroyed', {
|
21306 | get: function () {
|
21307 | if (this._readableState === undefined) {
|
21308 | return false;
|
21309 | }
|
21310 | return this._readableState.destroyed;
|
21311 | },
|
21312 | set: function (value) {
|
21313 |
|
21314 |
|
21315 | if (!this._readableState) {
|
21316 | return;
|
21317 | }
|
21318 |
|
21319 |
|
21320 |
|
21321 | this._readableState.destroyed = value;
|
21322 | }
|
21323 | });
|
21324 |
|
21325 | Readable.prototype.destroy = destroyImpl.destroy;
|
21326 | Readable.prototype._undestroy = destroyImpl.undestroy;
|
21327 | Readable.prototype._destroy = function (err, cb) {
|
21328 | this.push(null);
|
21329 | cb(err);
|
21330 | };
|
21331 |
|
21332 |
|
21333 |
|
21334 |
|
21335 |
|
21336 | Readable.prototype.push = function (chunk, encoding) {
|
21337 | var state = this._readableState;
|
21338 | var skipChunkCheck;
|
21339 |
|
21340 | if (!state.objectMode) {
|
21341 | if (typeof chunk === 'string') {
|
21342 | encoding = encoding || state.defaultEncoding;
|
21343 | if (encoding !== state.encoding) {
|
21344 | chunk = Buffer.from(chunk, encoding);
|
21345 | encoding = '';
|
21346 | }
|
21347 | skipChunkCheck = true;
|
21348 | }
|
21349 | } else {
|
21350 | skipChunkCheck = true;
|
21351 | }
|
21352 |
|
21353 | return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);
|
21354 | };
|
21355 |
|
21356 |
|
21357 | Readable.prototype.unshift = function (chunk) {
|
21358 | return readableAddChunk(this, chunk, null, true, false);
|
21359 | };
|
21360 |
|
21361 | function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {
|
21362 | var state = stream._readableState;
|
21363 | if (chunk === null) {
|
21364 | state.reading = false;
|
21365 | onEofChunk(stream, state);
|
21366 | } else {
|
21367 | var er;
|
21368 | if (!skipChunkCheck) er = chunkInvalid(state, chunk);
|
21369 | if (er) {
|
21370 | stream.emit('error', er);
|
21371 | } else if (state.objectMode || chunk && chunk.length > 0) {
|
21372 | if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) {
|
21373 | chunk = _uint8ArrayToBuffer(chunk);
|
21374 | }
|
21375 |
|
21376 | if (addToFront) {
|
21377 | if (state.endEmitted) stream.emit('error', new Error('stream.unshift() after end event'));else addChunk(stream, state, chunk, true);
|
21378 | } else if (state.ended) {
|
21379 | stream.emit('error', new Error('stream.push() after EOF'));
|
21380 | } else {
|
21381 | state.reading = false;
|
21382 | if (state.decoder && !encoding) {
|
21383 | chunk = state.decoder.write(chunk);
|
21384 | if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state);
|
21385 | } else {
|
21386 | addChunk(stream, state, chunk, false);
|
21387 | }
|
21388 | }
|
21389 | } else if (!addToFront) {
|
21390 | state.reading = false;
|
21391 | }
|
21392 | }
|
21393 |
|
21394 | return needMoreData(state);
|
21395 | }
|
21396 |
|
21397 | function addChunk(stream, state, chunk, addToFront) {
|
21398 | if (state.flowing && state.length === 0 && !state.sync) {
|
21399 | stream.emit('data', chunk);
|
21400 | stream.read(0);
|
21401 | } else {
|
21402 |
|
21403 | state.length += state.objectMode ? 1 : chunk.length;
|
21404 | if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);
|
21405 |
|
21406 | if (state.needReadable) emitReadable(stream);
|
21407 | }
|
21408 | maybeReadMore(stream, state);
|
21409 | }
|
21410 |
|
21411 | function chunkInvalid(state, chunk) {
|
21412 | var er;
|
21413 | if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {
|
21414 | er = new TypeError('Invalid non-string/buffer chunk');
|
21415 | }
|
21416 | return er;
|
21417 | }
|
21418 |
|
21419 |
|
21420 |
|
21421 |
|
21422 |
|
21423 |
|
21424 |
|
21425 |
|
21426 | function needMoreData(state) {
|
21427 | return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0);
|
21428 | }
|
21429 |
|
21430 | Readable.prototype.isPaused = function () {
|
21431 | return this._readableState.flowing === false;
|
21432 | };
|
21433 |
|
21434 |
|
21435 | Readable.prototype.setEncoding = function (enc) {
|
21436 | if (!StringDecoder) StringDecoder = __webpack_require__(197).StringDecoder;
|
21437 | this._readableState.decoder = new StringDecoder(enc);
|
21438 | this._readableState.encoding = enc;
|
21439 | return this;
|
21440 | };
|
21441 |
|
21442 |
|
21443 | var MAX_HWM = 0x800000;
|
21444 | function computeNewHighWaterMark(n) {
|
21445 | if (n >= MAX_HWM) {
|
21446 | n = MAX_HWM;
|
21447 | } else {
|
21448 |
|
21449 |
|
21450 | n--;
|
21451 | n |= n >>> 1;
|
21452 | n |= n >>> 2;
|
21453 | n |= n >>> 4;
|
21454 | n |= n >>> 8;
|
21455 | n |= n >>> 16;
|
21456 | n++;
|
21457 | }
|
21458 | return n;
|
21459 | }
|
21460 |
|
21461 |
|
21462 |
|
21463 | function howMuchToRead(n, state) {
|
21464 | if (n <= 0 || state.length === 0 && state.ended) return 0;
|
21465 | if (state.objectMode) return 1;
|
21466 | if (n !== n) {
|
21467 |
|
21468 | if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;
|
21469 | }
|
21470 |
|
21471 | if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);
|
21472 | if (n <= state.length) return n;
|
21473 |
|
21474 | if (!state.ended) {
|
21475 | state.needReadable = true;
|
21476 | return 0;
|
21477 | }
|
21478 | return state.length;
|
21479 | }
|
21480 |
|
21481 |
|
21482 | Readable.prototype.read = function (n) {
|
21483 | debug('read', n);
|
21484 | n = parseInt(n, 10);
|
21485 | var state = this._readableState;
|
21486 | var nOrig = n;
|
21487 |
|
21488 | if (n !== 0) state.emittedReadable = false;
|
21489 |
|
21490 |
|
21491 |
|
21492 |
|
21493 | if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) {
|
21494 | debug('read: emitReadable', state.length, state.ended);
|
21495 | if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);
|
21496 | return null;
|
21497 | }
|
21498 |
|
21499 | n = howMuchToRead(n, state);
|
21500 |
|
21501 |
|
21502 | if (n === 0 && state.ended) {
|
21503 | if (state.length === 0) endReadable(this);
|
21504 | return null;
|
21505 | }
|
21506 |
|
21507 |
|
21508 |
|
21509 |
|
21510 |
|
21511 |
|
21512 |
|
21513 |
|
21514 |
|
21515 |
|
21516 |
|
21517 |
|
21518 |
|
21519 |
|
21520 |
|
21521 |
|
21522 |
|
21523 |
|
21524 |
|
21525 |
|
21526 |
|
21527 |
|
21528 |
|
21529 |
|
21530 | var doRead = state.needReadable;
|
21531 | debug('need readable', doRead);
|
21532 |
|
21533 |
|
21534 | if (state.length === 0 || state.length - n < state.highWaterMark) {
|
21535 | doRead = true;
|
21536 | debug('length less than watermark', doRead);
|
21537 | }
|
21538 |
|
21539 |
|
21540 |
|
21541 | if (state.ended || state.reading) {
|
21542 | doRead = false;
|
21543 | debug('reading or ended', doRead);
|
21544 | } else if (doRead) {
|
21545 | debug('do read');
|
21546 | state.reading = true;
|
21547 | state.sync = true;
|
21548 |
|
21549 | if (state.length === 0) state.needReadable = true;
|
21550 |
|
21551 | this._read(state.highWaterMark);
|
21552 | state.sync = false;
|
21553 |
|
21554 |
|
21555 | if (!state.reading) n = howMuchToRead(nOrig, state);
|
21556 | }
|
21557 |
|
21558 | var ret;
|
21559 | if (n > 0) ret = fromList(n, state);else ret = null;
|
21560 |
|
21561 | if (ret === null) {
|
21562 | state.needReadable = true;
|
21563 | n = 0;
|
21564 | } else {
|
21565 | state.length -= n;
|
21566 | }
|
21567 |
|
21568 | if (state.length === 0) {
|
21569 |
|
21570 |
|
21571 | if (!state.ended) state.needReadable = true;
|
21572 |
|
21573 |
|
21574 | if (nOrig !== n && state.ended) endReadable(this);
|
21575 | }
|
21576 |
|
21577 | if (ret !== null) this.emit('data', ret);
|
21578 |
|
21579 | return ret;
|
21580 | };
|
21581 |
|
21582 | function onEofChunk(stream, state) {
|
21583 | if (state.ended) return;
|
21584 | if (state.decoder) {
|
21585 | var chunk = state.decoder.end();
|
21586 | if (chunk && chunk.length) {
|
21587 | state.buffer.push(chunk);
|
21588 | state.length += state.objectMode ? 1 : chunk.length;
|
21589 | }
|
21590 | }
|
21591 | state.ended = true;
|
21592 |
|
21593 |
|
21594 | emitReadable(stream);
|
21595 | }
|
21596 |
|
21597 |
|
21598 |
|
21599 |
|
21600 | function emitReadable(stream) {
|
21601 | var state = stream._readableState;
|
21602 | state.needReadable = false;
|
21603 | if (!state.emittedReadable) {
|
21604 | debug('emitReadable', state.flowing);
|
21605 | state.emittedReadable = true;
|
21606 | if (state.sync) pna.nextTick(emitReadable_, stream);else emitReadable_(stream);
|
21607 | }
|
21608 | }
|
21609 |
|
21610 | function emitReadable_(stream) {
|
21611 | debug('emit readable');
|
21612 | stream.emit('readable');
|
21613 | flow(stream);
|
21614 | }
|
21615 |
|
21616 |
|
21617 |
|
21618 |
|
21619 |
|
21620 |
|
21621 |
|
21622 | function maybeReadMore(stream, state) {
|
21623 | if (!state.readingMore) {
|
21624 | state.readingMore = true;
|
21625 | pna.nextTick(maybeReadMore_, stream, state);
|
21626 | }
|
21627 | }
|
21628 |
|
21629 | function maybeReadMore_(stream, state) {
|
21630 | var len = state.length;
|
21631 | while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) {
|
21632 | debug('maybeReadMore read 0');
|
21633 | stream.read(0);
|
21634 | if (len === state.length)
|
21635 |
|
21636 | break;else len = state.length;
|
21637 | }
|
21638 | state.readingMore = false;
|
21639 | }
|
21640 |
|
21641 |
|
21642 |
|
21643 |
|
21644 |
|
21645 | Readable.prototype._read = function (n) {
|
21646 | this.emit('error', new Error('_read() is not implemented'));
|
21647 | };
|
21648 |
|
21649 | Readable.prototype.pipe = function (dest, pipeOpts) {
|
21650 | var src = this;
|
21651 | var state = this._readableState;
|
21652 |
|
21653 | switch (state.pipesCount) {
|
21654 | case 0:
|
21655 | state.pipes = dest;
|
21656 | break;
|
21657 | case 1:
|
21658 | state.pipes = [state.pipes, dest];
|
21659 | break;
|
21660 | default:
|
21661 | state.pipes.push(dest);
|
21662 | break;
|
21663 | }
|
21664 | state.pipesCount += 1;
|
21665 | debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);
|
21666 |
|
21667 | var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;
|
21668 |
|
21669 | var endFn = doEnd ? onend : unpipe;
|
21670 | if (state.endEmitted) pna.nextTick(endFn);else src.once('end', endFn);
|
21671 |
|
21672 | dest.on('unpipe', onunpipe);
|
21673 | function onunpipe(readable, unpipeInfo) {
|
21674 | debug('onunpipe');
|
21675 | if (readable === src) {
|
21676 | if (unpipeInfo && unpipeInfo.hasUnpiped === false) {
|
21677 | unpipeInfo.hasUnpiped = true;
|
21678 | cleanup();
|
21679 | }
|
21680 | }
|
21681 | }
|
21682 |
|
21683 | function onend() {
|
21684 | debug('onend');
|
21685 | dest.end();
|
21686 | }
|
21687 |
|
21688 |
|
21689 |
|
21690 |
|
21691 |
|
21692 | var ondrain = pipeOnDrain(src);
|
21693 | dest.on('drain', ondrain);
|
21694 |
|
21695 | var cleanedUp = false;
|
21696 | function cleanup() {
|
21697 | debug('cleanup');
|
21698 |
|
21699 | dest.removeListener('close', onclose);
|
21700 | dest.removeListener('finish', onfinish);
|
21701 | dest.removeListener('drain', ondrain);
|
21702 | dest.removeListener('error', onerror);
|
21703 | dest.removeListener('unpipe', onunpipe);
|
21704 | src.removeListener('end', onend);
|
21705 | src.removeListener('end', unpipe);
|
21706 | src.removeListener('data', ondata);
|
21707 |
|
21708 | cleanedUp = true;
|
21709 |
|
21710 |
|
21711 |
|
21712 |
|
21713 |
|
21714 |
|
21715 | if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();
|
21716 | }
|
21717 |
|
21718 |
|
21719 |
|
21720 |
|
21721 |
|
21722 | var increasedAwaitDrain = false;
|
21723 | src.on('data', ondata);
|
21724 | function ondata(chunk) {
|
21725 | debug('ondata');
|
21726 | increasedAwaitDrain = false;
|
21727 | var ret = dest.write(chunk);
|
21728 | if (false === ret && !increasedAwaitDrain) {
|
21729 |
|
21730 |
|
21731 |
|
21732 |
|
21733 | if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {
|
21734 | debug('false write response, pause', src._readableState.awaitDrain);
|
21735 | src._readableState.awaitDrain++;
|
21736 | increasedAwaitDrain = true;
|
21737 | }
|
21738 | src.pause();
|
21739 | }
|
21740 | }
|
21741 |
|
21742 |
|
21743 |
|
21744 | function onerror(er) {
|
21745 | debug('onerror', er);
|
21746 | unpipe();
|
21747 | dest.removeListener('error', onerror);
|
21748 | if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er);
|
21749 | }
|
21750 |
|
21751 |
|
21752 | prependListener(dest, 'error', onerror);
|
21753 |
|
21754 |
|
21755 | function onclose() {
|
21756 | dest.removeListener('finish', onfinish);
|
21757 | unpipe();
|
21758 | }
|
21759 | dest.once('close', onclose);
|
21760 | function onfinish() {
|
21761 | debug('onfinish');
|
21762 | dest.removeListener('close', onclose);
|
21763 | unpipe();
|
21764 | }
|
21765 | dest.once('finish', onfinish);
|
21766 |
|
21767 | function unpipe() {
|
21768 | debug('unpipe');
|
21769 | src.unpipe(dest);
|
21770 | }
|
21771 |
|
21772 |
|
21773 | dest.emit('pipe', src);
|
21774 |
|
21775 |
|
21776 | if (!state.flowing) {
|
21777 | debug('pipe resume');
|
21778 | src.resume();
|
21779 | }
|
21780 |
|
21781 | return dest;
|
21782 | };
|
21783 |
|
21784 | function pipeOnDrain(src) {
|
21785 | return function () {
|
21786 | var state = src._readableState;
|
21787 | debug('pipeOnDrain', state.awaitDrain);
|
21788 | if (state.awaitDrain) state.awaitDrain--;
|
21789 | if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {
|
21790 | state.flowing = true;
|
21791 | flow(src);
|
21792 | }
|
21793 | };
|
21794 | }
|
21795 |
|
21796 | Readable.prototype.unpipe = function (dest) {
|
21797 | var state = this._readableState;
|
21798 | var unpipeInfo = { hasUnpiped: false };
|
21799 |
|
21800 |
|
21801 | if (state.pipesCount === 0) return this;
|
21802 |
|
21803 |
|
21804 | if (state.pipesCount === 1) {
|
21805 |
|
21806 | if (dest && dest !== state.pipes) return this;
|
21807 |
|
21808 | if (!dest) dest = state.pipes;
|
21809 |
|
21810 |
|
21811 | state.pipes = null;
|
21812 | state.pipesCount = 0;
|
21813 | state.flowing = false;
|
21814 | if (dest) dest.emit('unpipe', this, unpipeInfo);
|
21815 | return this;
|
21816 | }
|
21817 |
|
21818 |
|
21819 |
|
21820 | if (!dest) {
|
21821 |
|
21822 | var dests = state.pipes;
|
21823 | var len = state.pipesCount;
|
21824 | state.pipes = null;
|
21825 | state.pipesCount = 0;
|
21826 | state.flowing = false;
|
21827 |
|
21828 | for (var i = 0; i < len; i++) {
|
21829 | dests[i].emit('unpipe', this, unpipeInfo);
|
21830 | }return this;
|
21831 | }
|
21832 |
|
21833 |
|
21834 | var index = indexOf(state.pipes, dest);
|
21835 | if (index === -1) return this;
|
21836 |
|
21837 | state.pipes.splice(index, 1);
|
21838 | state.pipesCount -= 1;
|
21839 | if (state.pipesCount === 1) state.pipes = state.pipes[0];
|
21840 |
|
21841 | dest.emit('unpipe', this, unpipeInfo);
|
21842 |
|
21843 | return this;
|
21844 | };
|
21845 |
|
21846 |
|
21847 |
|
21848 | Readable.prototype.on = function (ev, fn) {
|
21849 | var res = Stream.prototype.on.call(this, ev, fn);
|
21850 |
|
21851 | if (ev === 'data') {
|
21852 |
|
21853 | if (this._readableState.flowing !== false) this.resume();
|
21854 | } else if (ev === 'readable') {
|
21855 | var state = this._readableState;
|
21856 | if (!state.endEmitted && !state.readableListening) {
|
21857 | state.readableListening = state.needReadable = true;
|
21858 | state.emittedReadable = false;
|
21859 | if (!state.reading) {
|
21860 | pna.nextTick(nReadingNextTick, this);
|
21861 | } else if (state.length) {
|
21862 | emitReadable(this);
|
21863 | }
|
21864 | }
|
21865 | }
|
21866 |
|
21867 | return res;
|
21868 | };
|
21869 | Readable.prototype.addListener = Readable.prototype.on;
|
21870 |
|
21871 | function nReadingNextTick(self) {
|
21872 | debug('readable nexttick read 0');
|
21873 | self.read(0);
|
21874 | }
|
21875 |
|
21876 |
|
21877 |
|
21878 | Readable.prototype.resume = function () {
|
21879 | var state = this._readableState;
|
21880 | if (!state.flowing) {
|
21881 | debug('resume');
|
21882 | state.flowing = true;
|
21883 | resume(this, state);
|
21884 | }
|
21885 | return this;
|
21886 | };
|
21887 |
|
21888 | function resume(stream, state) {
|
21889 | if (!state.resumeScheduled) {
|
21890 | state.resumeScheduled = true;
|
21891 | pna.nextTick(resume_, stream, state);
|
21892 | }
|
21893 | }
|
21894 |
|
21895 | function resume_(stream, state) {
|
21896 | if (!state.reading) {
|
21897 | debug('resume read 0');
|
21898 | stream.read(0);
|
21899 | }
|
21900 |
|
21901 | state.resumeScheduled = false;
|
21902 | state.awaitDrain = 0;
|
21903 | stream.emit('resume');
|
21904 | flow(stream);
|
21905 | if (state.flowing && !state.reading) stream.read(0);
|
21906 | }
|
21907 |
|
21908 | Readable.prototype.pause = function () {
|
21909 | debug('call pause flowing=%j', this._readableState.flowing);
|
21910 | if (false !== this._readableState.flowing) {
|
21911 | debug('pause');
|
21912 | this._readableState.flowing = false;
|
21913 | this.emit('pause');
|
21914 | }
|
21915 | return this;
|
21916 | };
|
21917 |
|
21918 | function flow(stream) {
|
21919 | var state = stream._readableState;
|
21920 | debug('flow', state.flowing);
|
21921 | while (state.flowing && stream.read() !== null) {}
|
21922 | }
|
21923 |
|
21924 |
|
21925 |
|
21926 |
|
21927 | Readable.prototype.wrap = function (stream) {
|
21928 | var _this = this;
|
21929 |
|
21930 | var state = this._readableState;
|
21931 | var paused = false;
|
21932 |
|
21933 | stream.on('end', function () {
|
21934 | debug('wrapped end');
|
21935 | if (state.decoder && !state.ended) {
|
21936 | var chunk = state.decoder.end();
|
21937 | if (chunk && chunk.length) _this.push(chunk);
|
21938 | }
|
21939 |
|
21940 | _this.push(null);
|
21941 | });
|
21942 |
|
21943 | stream.on('data', function (chunk) {
|
21944 | debug('wrapped data');
|
21945 | if (state.decoder) chunk = state.decoder.write(chunk);
|
21946 |
|
21947 |
|
21948 | if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;
|
21949 |
|
21950 | var ret = _this.push(chunk);
|
21951 | if (!ret) {
|
21952 | paused = true;
|
21953 | stream.pause();
|
21954 | }
|
21955 | });
|
21956 |
|
21957 |
|
21958 |
|
21959 | for (var i in stream) {
|
21960 | if (this[i] === undefined && typeof stream[i] === 'function') {
|
21961 | this[i] = function (method) {
|
21962 | return function () {
|
21963 | return stream[method].apply(stream, arguments);
|
21964 | };
|
21965 | }(i);
|
21966 | }
|
21967 | }
|
21968 |
|
21969 |
|
21970 | for (var n = 0; n < kProxyEvents.length; n++) {
|
21971 | stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));
|
21972 | }
|
21973 |
|
21974 |
|
21975 |
|
21976 | this._read = function (n) {
|
21977 | debug('wrapped _read', n);
|
21978 | if (paused) {
|
21979 | paused = false;
|
21980 | stream.resume();
|
21981 | }
|
21982 | };
|
21983 |
|
21984 | return this;
|
21985 | };
|
21986 |
|
21987 | Object.defineProperty(Readable.prototype, 'readableHighWaterMark', {
|
21988 |
|
21989 |
|
21990 |
|
21991 | enumerable: false,
|
21992 | get: function () {
|
21993 | return this._readableState.highWaterMark;
|
21994 | }
|
21995 | });
|
21996 |
|
21997 |
|
21998 | Readable._fromList = fromList;
|
21999 |
|
22000 |
|
22001 |
|
22002 |
|
22003 |
|
22004 | function fromList(n, state) {
|
22005 |
|
22006 | if (state.length === 0) return null;
|
22007 |
|
22008 | var ret;
|
22009 | if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {
|
22010 |
|
22011 | if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length);
|
22012 | state.buffer.clear();
|
22013 | } else {
|
22014 |
|
22015 | ret = fromListPartial(n, state.buffer, state.decoder);
|
22016 | }
|
22017 |
|
22018 | return ret;
|
22019 | }
|
22020 |
|
22021 |
|
22022 |
|
22023 |
|
22024 | function fromListPartial(n, list, hasStrings) {
|
22025 | var ret;
|
22026 | if (n < list.head.data.length) {
|
22027 |
|
22028 | ret = list.head.data.slice(0, n);
|
22029 | list.head.data = list.head.data.slice(n);
|
22030 | } else if (n === list.head.data.length) {
|
22031 |
|
22032 | ret = list.shift();
|
22033 | } else {
|
22034 |
|
22035 | ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list);
|
22036 | }
|
22037 | return ret;
|
22038 | }
|
22039 |
|
22040 |
|
22041 |
|
22042 |
|
22043 |
|
22044 | function copyFromBufferString(n, list) {
|
22045 | var p = list.head;
|
22046 | var c = 1;
|
22047 | var ret = p.data;
|
22048 | n -= ret.length;
|
22049 | while (p = p.next) {
|
22050 | var str = p.data;
|
22051 | var nb = n > str.length ? str.length : n;
|
22052 | if (nb === str.length) ret += str;else ret += str.slice(0, n);
|
22053 | n -= nb;
|
22054 | if (n === 0) {
|
22055 | if (nb === str.length) {
|
22056 | ++c;
|
22057 | if (p.next) list.head = p.next;else list.head = list.tail = null;
|
22058 | } else {
|
22059 | list.head = p;
|
22060 | p.data = str.slice(nb);
|
22061 | }
|
22062 | break;
|
22063 | }
|
22064 | ++c;
|
22065 | }
|
22066 | list.length -= c;
|
22067 | return ret;
|
22068 | }
|
22069 |
|
22070 |
|
22071 |
|
22072 |
|
22073 | function copyFromBuffer(n, list) {
|
22074 | var ret = Buffer.allocUnsafe(n);
|
22075 | var p = list.head;
|
22076 | var c = 1;
|
22077 | p.data.copy(ret);
|
22078 | n -= p.data.length;
|
22079 | while (p = p.next) {
|
22080 | var buf = p.data;
|
22081 | var nb = n > buf.length ? buf.length : n;
|
22082 | buf.copy(ret, ret.length - n, 0, nb);
|
22083 | n -= nb;
|
22084 | if (n === 0) {
|
22085 | if (nb === buf.length) {
|
22086 | ++c;
|
22087 | if (p.next) list.head = p.next;else list.head = list.tail = null;
|
22088 | } else {
|
22089 | list.head = p;
|
22090 | p.data = buf.slice(nb);
|
22091 | }
|
22092 | break;
|
22093 | }
|
22094 | ++c;
|
22095 | }
|
22096 | list.length -= c;
|
22097 | return ret;
|
22098 | }
|
22099 |
|
22100 | function endReadable(stream) {
|
22101 | var state = stream._readableState;
|
22102 |
|
22103 |
|
22104 |
|
22105 | if (state.length > 0) throw new Error('"endReadable()" called on non-empty stream');
|
22106 |
|
22107 | if (!state.endEmitted) {
|
22108 | state.ended = true;
|
22109 | pna.nextTick(endReadableNT, state, stream);
|
22110 | }
|
22111 | }
|
22112 |
|
22113 | function endReadableNT(state, stream) {
|
22114 |
|
22115 | if (!state.endEmitted && state.length === 0) {
|
22116 | state.endEmitted = true;
|
22117 | stream.readable = false;
|
22118 | stream.emit('end');
|
22119 | }
|
22120 | }
|
22121 |
|
22122 | function indexOf(xs, x) {
|
22123 | for (var i = 0, l = xs.length; i < l; i++) {
|
22124 | if (xs[i] === x) return i;
|
22125 | }
|
22126 | return -1;
|
22127 | }
|
22128 |
|
22129 | }),
|
22130 |
|
22131 | (function(module, __unusedexports, __webpack_require__) {
|
22132 |
|
22133 | module.exports = __webpack_require__(413);
|
22134 |
|
22135 |
|
22136 | }),
|
22137 | ,
|
22138 |
|
22139 | (function(__unusedmodule, exports, __webpack_require__) {
|
22140 |
|
22141 | "use strict";
|
22142 |
|
22143 |
|
22144 |
|
22145 |
|
22146 | var modules = [
|
22147 | __webpack_require__(135),
|
22148 | __webpack_require__(506),
|
22149 | __webpack_require__(457),
|
22150 | __webpack_require__(947),
|
22151 | __webpack_require__(365),
|
22152 | __webpack_require__(50),
|
22153 | __webpack_require__(238),
|
22154 | __webpack_require__(68),
|
22155 | ];
|
22156 |
|
22157 |
|
22158 | for (var i = 0; i < modules.length; i++) {
|
22159 | var module = modules[i];
|
22160 | for (var enc in module)
|
22161 | if (Object.prototype.hasOwnProperty.call(module, enc))
|
22162 | exports[enc] = module[enc];
|
22163 | }
|
22164 |
|
22165 |
|
22166 | }),
|
22167 | ,
|
22168 | ,
|
22169 | ,
|
22170 | ,
|
22171 | ,
|
22172 | ,
|
22173 | ,
|
22174 | ,
|
22175 |
|
22176 | (function(module) {
|
22177 |
|
22178 | "use strict";
|
22179 |
|
22180 |
|
22181 | module.exports = clone
|
22182 |
|
22183 | function clone (obj) {
|
22184 | if (obj === null || typeof obj !== 'object')
|
22185 | return obj
|
22186 |
|
22187 | if (obj instanceof Object)
|
22188 | var copy = { __proto__: obj.__proto__ }
|
22189 | else
|
22190 | var copy = Object.create(null)
|
22191 |
|
22192 | Object.getOwnPropertyNames(obj).forEach(function (key) {
|
22193 | Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key))
|
22194 | })
|
22195 |
|
22196 | return copy
|
22197 | }
|
22198 |
|
22199 |
|
22200 | }),
|
22201 |
|
22202 | (function(module, __unusedexports, __webpack_require__) {
|
22203 |
|
22204 | "use strict";
|
22205 |
|
22206 |
|
22207 | const u = __webpack_require__(323).fromCallback
|
22208 | const fs = __webpack_require__(729)
|
22209 | const path = __webpack_require__(622)
|
22210 | const mkdir = __webpack_require__(648)
|
22211 | const pathExists = __webpack_require__(370).pathExists
|
22212 |
|
22213 | function outputFile (file, data, encoding, callback) {
|
22214 | if (typeof encoding === 'function') {
|
22215 | callback = encoding
|
22216 | encoding = 'utf8'
|
22217 | }
|
22218 |
|
22219 | const dir = path.dirname(file)
|
22220 | pathExists(dir, (err, itDoes) => {
|
22221 | if (err) return callback(err)
|
22222 | if (itDoes) return fs.writeFile(file, data, encoding, callback)
|
22223 |
|
22224 | mkdir.mkdirs(dir, err => {
|
22225 | if (err) return callback(err)
|
22226 |
|
22227 | fs.writeFile(file, data, encoding, callback)
|
22228 | })
|
22229 | })
|
22230 | }
|
22231 |
|
22232 | function outputFileSync (file, ...args) {
|
22233 | const dir = path.dirname(file)
|
22234 | if (fs.existsSync(dir)) {
|
22235 | return fs.writeFileSync(file, ...args)
|
22236 | }
|
22237 | mkdir.mkdirsSync(dir)
|
22238 | fs.writeFileSync(file, ...args)
|
22239 | }
|
22240 |
|
22241 | module.exports = {
|
22242 | outputFile: u(outputFile),
|
22243 | outputFileSync
|
22244 | }
|
22245 |
|
22246 |
|
22247 | }),
|
22248 | ,
|
22249 | ,
|
22250 | ,
|
22251 | ,
|
22252 | ,
|
22253 | ,
|
22254 | ,
|
22255 | ,
|
22256 | ,
|
22257 |
|
22258 | (function(module, __unusedexports, __webpack_require__) {
|
22259 |
|
22260 | var fs = __webpack_require__(747)
|
22261 | var polyfills = __webpack_require__(782)
|
22262 | var legacy = __webpack_require__(825)
|
22263 | var clone = __webpack_require__(718)
|
22264 |
|
22265 | var util = __webpack_require__(669)
|
22266 |
|
22267 |
|
22268 | var gracefulQueue
|
22269 | var previousSymbol
|
22270 |
|
22271 |
|
22272 | if (typeof Symbol === 'function' && typeof Symbol.for === 'function') {
|
22273 | gracefulQueue = Symbol.for('graceful-fs.queue')
|
22274 |
|
22275 | previousSymbol = Symbol.for('graceful-fs.previous')
|
22276 | } else {
|
22277 | gracefulQueue = '___graceful-fs.queue'
|
22278 | previousSymbol = '___graceful-fs.previous'
|
22279 | }
|
22280 |
|
22281 | function noop () {}
|
22282 |
|
22283 | function publishQueue(context, queue) {
|
22284 | Object.defineProperty(context, gracefulQueue, {
|
22285 | get: function() {
|
22286 | return queue
|
22287 | }
|
22288 | })
|
22289 | }
|
22290 |
|
22291 | var debug = noop
|
22292 | if (util.debuglog)
|
22293 | debug = util.debuglog('gfs4')
|
22294 | else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ''))
|
22295 | debug = function() {
|
22296 | var m = util.format.apply(util, arguments)
|
22297 | m = 'GFS4: ' + m.split(/\n/).join('\nGFS4: ')
|
22298 | console.error(m)
|
22299 | }
|
22300 |
|
22301 |
|
22302 | if (!fs[gracefulQueue]) {
|
22303 |
|
22304 | var queue = global[gracefulQueue] || []
|
22305 | publishQueue(fs, queue)
|
22306 |
|
22307 |
|
22308 |
|
22309 |
|
22310 |
|
22311 | fs.close = (function (fs$close) {
|
22312 | function close (fd, cb) {
|
22313 | return fs$close.call(fs, fd, function (err) {
|
22314 |
|
22315 | if (!err) {
|
22316 | retry()
|
22317 | }
|
22318 |
|
22319 | if (typeof cb === 'function')
|
22320 | cb.apply(this, arguments)
|
22321 | })
|
22322 | }
|
22323 |
|
22324 | Object.defineProperty(close, previousSymbol, {
|
22325 | value: fs$close
|
22326 | })
|
22327 | return close
|
22328 | })(fs.close)
|
22329 |
|
22330 | fs.closeSync = (function (fs$closeSync) {
|
22331 | function closeSync (fd) {
|
22332 |
|
22333 | fs$closeSync.apply(fs, arguments)
|
22334 | retry()
|
22335 | }
|
22336 |
|
22337 | Object.defineProperty(closeSync, previousSymbol, {
|
22338 | value: fs$closeSync
|
22339 | })
|
22340 | return closeSync
|
22341 | })(fs.closeSync)
|
22342 |
|
22343 | if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) {
|
22344 | process.on('exit', function() {
|
22345 | debug(fs[gracefulQueue])
|
22346 | __webpack_require__(357).equal(fs[gracefulQueue].length, 0)
|
22347 | })
|
22348 | }
|
22349 | }
|
22350 |
|
22351 | if (!global[gracefulQueue]) {
|
22352 | publishQueue(global, fs[gracefulQueue]);
|
22353 | }
|
22354 |
|
22355 | module.exports = patch(clone(fs))
|
22356 | if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) {
|
22357 | module.exports = patch(fs)
|
22358 | fs.__patched = true;
|
22359 | }
|
22360 |
|
22361 | function patch (fs) {
|
22362 |
|
22363 | polyfills(fs)
|
22364 | fs.gracefulify = patch
|
22365 |
|
22366 | fs.createReadStream = createReadStream
|
22367 | fs.createWriteStream = createWriteStream
|
22368 | var fs$readFile = fs.readFile
|
22369 | fs.readFile = readFile
|
22370 | function readFile (path, options, cb) {
|
22371 | if (typeof options === 'function')
|
22372 | cb = options, options = null
|
22373 |
|
22374 | return go$readFile(path, options, cb)
|
22375 |
|
22376 | function go$readFile (path, options, cb) {
|
22377 | return fs$readFile(path, options, function (err) {
|
22378 | if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
22379 | enqueue([go$readFile, [path, options, cb]])
|
22380 | else {
|
22381 | if (typeof cb === 'function')
|
22382 | cb.apply(this, arguments)
|
22383 | retry()
|
22384 | }
|
22385 | })
|
22386 | }
|
22387 | }
|
22388 |
|
22389 | var fs$writeFile = fs.writeFile
|
22390 | fs.writeFile = writeFile
|
22391 | function writeFile (path, data, options, cb) {
|
22392 | if (typeof options === 'function')
|
22393 | cb = options, options = null
|
22394 |
|
22395 | return go$writeFile(path, data, options, cb)
|
22396 |
|
22397 | function go$writeFile (path, data, options, cb) {
|
22398 | return fs$writeFile(path, data, options, function (err) {
|
22399 | if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
22400 | enqueue([go$writeFile, [path, data, options, cb]])
|
22401 | else {
|
22402 | if (typeof cb === 'function')
|
22403 | cb.apply(this, arguments)
|
22404 | retry()
|
22405 | }
|
22406 | })
|
22407 | }
|
22408 | }
|
22409 |
|
22410 | var fs$appendFile = fs.appendFile
|
22411 | if (fs$appendFile)
|
22412 | fs.appendFile = appendFile
|
22413 | function appendFile (path, data, options, cb) {
|
22414 | if (typeof options === 'function')
|
22415 | cb = options, options = null
|
22416 |
|
22417 | return go$appendFile(path, data, options, cb)
|
22418 |
|
22419 | function go$appendFile (path, data, options, cb) {
|
22420 | return fs$appendFile(path, data, options, function (err) {
|
22421 | if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
22422 | enqueue([go$appendFile, [path, data, options, cb]])
|
22423 | else {
|
22424 | if (typeof cb === 'function')
|
22425 | cb.apply(this, arguments)
|
22426 | retry()
|
22427 | }
|
22428 | })
|
22429 | }
|
22430 | }
|
22431 |
|
22432 | var fs$readdir = fs.readdir
|
22433 | fs.readdir = readdir
|
22434 | function readdir (path, options, cb) {
|
22435 | var args = [path]
|
22436 | if (typeof options !== 'function') {
|
22437 | args.push(options)
|
22438 | } else {
|
22439 | cb = options
|
22440 | }
|
22441 | args.push(go$readdir$cb)
|
22442 |
|
22443 | return go$readdir(args)
|
22444 |
|
22445 | function go$readdir$cb (err, files) {
|
22446 | if (files && files.sort)
|
22447 | files.sort()
|
22448 |
|
22449 | if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
22450 | enqueue([go$readdir, [args]])
|
22451 |
|
22452 | else {
|
22453 | if (typeof cb === 'function')
|
22454 | cb.apply(this, arguments)
|
22455 | retry()
|
22456 | }
|
22457 | }
|
22458 | }
|
22459 |
|
22460 | function go$readdir (args) {
|
22461 | return fs$readdir.apply(fs, args)
|
22462 | }
|
22463 |
|
22464 | if (process.version.substr(0, 4) === 'v0.8') {
|
22465 | var legStreams = legacy(fs)
|
22466 | ReadStream = legStreams.ReadStream
|
22467 | WriteStream = legStreams.WriteStream
|
22468 | }
|
22469 |
|
22470 | var fs$ReadStream = fs.ReadStream
|
22471 | if (fs$ReadStream) {
|
22472 | ReadStream.prototype = Object.create(fs$ReadStream.prototype)
|
22473 | ReadStream.prototype.open = ReadStream$open
|
22474 | }
|
22475 |
|
22476 | var fs$WriteStream = fs.WriteStream
|
22477 | if (fs$WriteStream) {
|
22478 | WriteStream.prototype = Object.create(fs$WriteStream.prototype)
|
22479 | WriteStream.prototype.open = WriteStream$open
|
22480 | }
|
22481 |
|
22482 | Object.defineProperty(fs, 'ReadStream', {
|
22483 | get: function () {
|
22484 | return ReadStream
|
22485 | },
|
22486 | set: function (val) {
|
22487 | ReadStream = val
|
22488 | },
|
22489 | enumerable: true,
|
22490 | configurable: true
|
22491 | })
|
22492 | Object.defineProperty(fs, 'WriteStream', {
|
22493 | get: function () {
|
22494 | return WriteStream
|
22495 | },
|
22496 | set: function (val) {
|
22497 | WriteStream = val
|
22498 | },
|
22499 | enumerable: true,
|
22500 | configurable: true
|
22501 | })
|
22502 |
|
22503 |
|
22504 | var FileReadStream = ReadStream
|
22505 | Object.defineProperty(fs, 'FileReadStream', {
|
22506 | get: function () {
|
22507 | return FileReadStream
|
22508 | },
|
22509 | set: function (val) {
|
22510 | FileReadStream = val
|
22511 | },
|
22512 | enumerable: true,
|
22513 | configurable: true
|
22514 | })
|
22515 | var FileWriteStream = WriteStream
|
22516 | Object.defineProperty(fs, 'FileWriteStream', {
|
22517 | get: function () {
|
22518 | return FileWriteStream
|
22519 | },
|
22520 | set: function (val) {
|
22521 | FileWriteStream = val
|
22522 | },
|
22523 | enumerable: true,
|
22524 | configurable: true
|
22525 | })
|
22526 |
|
22527 | function ReadStream (path, options) {
|
22528 | if (this instanceof ReadStream)
|
22529 | return fs$ReadStream.apply(this, arguments), this
|
22530 | else
|
22531 | return ReadStream.apply(Object.create(ReadStream.prototype), arguments)
|
22532 | }
|
22533 |
|
22534 | function ReadStream$open () {
|
22535 | var that = this
|
22536 | open(that.path, that.flags, that.mode, function (err, fd) {
|
22537 | if (err) {
|
22538 | if (that.autoClose)
|
22539 | that.destroy()
|
22540 |
|
22541 | that.emit('error', err)
|
22542 | } else {
|
22543 | that.fd = fd
|
22544 | that.emit('open', fd)
|
22545 | that.read()
|
22546 | }
|
22547 | })
|
22548 | }
|
22549 |
|
22550 | function WriteStream (path, options) {
|
22551 | if (this instanceof WriteStream)
|
22552 | return fs$WriteStream.apply(this, arguments), this
|
22553 | else
|
22554 | return WriteStream.apply(Object.create(WriteStream.prototype), arguments)
|
22555 | }
|
22556 |
|
22557 | function WriteStream$open () {
|
22558 | var that = this
|
22559 | open(that.path, that.flags, that.mode, function (err, fd) {
|
22560 | if (err) {
|
22561 | that.destroy()
|
22562 | that.emit('error', err)
|
22563 | } else {
|
22564 | that.fd = fd
|
22565 | that.emit('open', fd)
|
22566 | }
|
22567 | })
|
22568 | }
|
22569 |
|
22570 | function createReadStream (path, options) {
|
22571 | return new fs.ReadStream(path, options)
|
22572 | }
|
22573 |
|
22574 | function createWriteStream (path, options) {
|
22575 | return new fs.WriteStream(path, options)
|
22576 | }
|
22577 |
|
22578 | var fs$open = fs.open
|
22579 | fs.open = open
|
22580 | function open (path, flags, mode, cb) {
|
22581 | if (typeof mode === 'function')
|
22582 | cb = mode, mode = null
|
22583 |
|
22584 | return go$open(path, flags, mode, cb)
|
22585 |
|
22586 | function go$open (path, flags, mode, cb) {
|
22587 | return fs$open(path, flags, mode, function (err, fd) {
|
22588 | if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
22589 | enqueue([go$open, [path, flags, mode, cb]])
|
22590 | else {
|
22591 | if (typeof cb === 'function')
|
22592 | cb.apply(this, arguments)
|
22593 | retry()
|
22594 | }
|
22595 | })
|
22596 | }
|
22597 | }
|
22598 |
|
22599 | return fs
|
22600 | }
|
22601 |
|
22602 | function enqueue (elem) {
|
22603 | debug('ENQUEUE', elem[0].name, elem[1])
|
22604 | fs[gracefulQueue].push(elem)
|
22605 | }
|
22606 |
|
22607 | function retry () {
|
22608 | var elem = fs[gracefulQueue].shift()
|
22609 | if (elem) {
|
22610 | debug('RETRY', elem[0].name, elem[1])
|
22611 | elem[0].apply(null, elem[1])
|
22612 | }
|
22613 | }
|
22614 |
|
22615 |
|
22616 | }),
|
22617 | ,
|
22618 | ,
|
22619 | ,
|
22620 | ,
|
22621 | ,
|
22622 | ,
|
22623 | ,
|
22624 | ,
|
22625 | ,
|
22626 | ,
|
22627 | ,
|
22628 | ,
|
22629 |
|
22630 | (function(module, __unusedexports, __webpack_require__) {
|
22631 |
|
22632 | "use strict";
|
22633 |
|
22634 |
|
22635 | const u = __webpack_require__(323).fromCallback
|
22636 | const jsonFile = __webpack_require__(458)
|
22637 |
|
22638 | jsonFile.outputJson = u(__webpack_require__(470))
|
22639 | jsonFile.outputJsonSync = __webpack_require__(944)
|
22640 |
|
22641 | jsonFile.outputJSON = jsonFile.outputJson
|
22642 | jsonFile.outputJSONSync = jsonFile.outputJsonSync
|
22643 | jsonFile.writeJSON = jsonFile.writeJson
|
22644 | jsonFile.writeJSONSync = jsonFile.writeJsonSync
|
22645 | jsonFile.readJSON = jsonFile.readJson
|
22646 | jsonFile.readJSONSync = jsonFile.readJsonSync
|
22647 |
|
22648 | module.exports = jsonFile
|
22649 |
|
22650 |
|
22651 | }),
|
22652 | ,
|
22653 | ,
|
22654 | ,
|
22655 | ,
|
22656 |
|
22657 | (function(module) {
|
22658 |
|
22659 | module.exports = require("fs");
|
22660 |
|
22661 | }),
|
22662 | ,
|
22663 |
|
22664 | (function(module) {
|
22665 |
|
22666 | "use strict";
|
22667 |
|
22668 | module.exports = value => {
|
22669 | const date = new Date(value)
|
22670 |
|
22671 | if (isNaN(date)) {
|
22672 | throw new TypeError('Invalid Datetime')
|
22673 | } else {
|
22674 | return date
|
22675 | }
|
22676 | }
|
22677 |
|
22678 |
|
22679 | }),
|
22680 | ,
|
22681 | ,
|
22682 |
|
22683 | (function(module, __unusedexports, __webpack_require__) {
|
22684 |
|
22685 | "use strict";
|
22686 |
|
22687 |
|
22688 | var Type = __webpack_require__(653);
|
22689 |
|
22690 | function resolveYamlBoolean(data) {
|
22691 | if (data === null) return false;
|
22692 |
|
22693 | var max = data.length;
|
22694 |
|
22695 | return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) ||
|
22696 | (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE'));
|
22697 | }
|
22698 |
|
22699 | function constructYamlBoolean(data) {
|
22700 | return data === 'true' ||
|
22701 | data === 'True' ||
|
22702 | data === 'TRUE';
|
22703 | }
|
22704 |
|
22705 | function isBoolean(object) {
|
22706 | return Object.prototype.toString.call(object) === '[object Boolean]';
|
22707 | }
|
22708 |
|
22709 | module.exports = new Type('tag:yaml.org,2002:bool', {
|
22710 | kind: 'scalar',
|
22711 | resolve: resolveYamlBoolean,
|
22712 | construct: constructYamlBoolean,
|
22713 | predicate: isBoolean,
|
22714 | represent: {
|
22715 | lowercase: function (object) { return object ? 'true' : 'false'; },
|
22716 | uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; },
|
22717 | camelcase: function (object) { return object ? 'True' : 'False'; }
|
22718 | },
|
22719 | defaultStyle: 'lowercase'
|
22720 | });
|
22721 |
|
22722 |
|
22723 | }),
|
22724 | ,
|
22725 | ,
|
22726 | ,
|
22727 | ,
|
22728 |
|
22729 | (function(module, __unusedexports, __webpack_require__) {
|
22730 |
|
22731 | "use strict";
|
22732 |
|
22733 |
|
22734 | const file = __webpack_require__(46)
|
22735 | const link = __webpack_require__(950)
|
22736 | const symlink = __webpack_require__(351)
|
22737 |
|
22738 | module.exports = {
|
22739 |
|
22740 | createFile: file.createFile,
|
22741 | createFileSync: file.createFileSync,
|
22742 | ensureFile: file.createFile,
|
22743 | ensureFileSync: file.createFileSync,
|
22744 |
|
22745 | createLink: link.createLink,
|
22746 | createLinkSync: link.createLinkSync,
|
22747 | ensureLink: link.createLink,
|
22748 | ensureLinkSync: link.createLinkSync,
|
22749 |
|
22750 | createSymlink: symlink.createSymlink,
|
22751 | createSymlinkSync: symlink.createSymlinkSync,
|
22752 | ensureSymlink: symlink.createSymlink,
|
22753 | ensureSymlinkSync: symlink.createSymlinkSync
|
22754 | }
|
22755 |
|
22756 |
|
22757 | }),
|
22758 |
|
22759 | (function(module, __unusedexports, __webpack_require__) {
|
22760 |
|
22761 | "use strict";
|
22762 |
|
22763 |
|
22764 | const u = __webpack_require__(323).fromCallback
|
22765 | module.exports = {
|
22766 | copy: u(__webpack_require__(143))
|
22767 | }
|
22768 |
|
22769 |
|
22770 | }),
|
22771 |
|
22772 | (function(module) {
|
22773 |
|
22774 | "use strict";
|
22775 |
|
22776 |
|
22777 | module.exports = x => {
|
22778 | if (Number.isNaN(x)) {
|
22779 | return false;
|
22780 | }
|
22781 |
|
22782 |
|
22783 |
|
22784 | if (
|
22785 | x >= 0x1100 && (
|
22786 | x <= 0x115f ||
|
22787 | x === 0x2329 ||
|
22788 | x === 0x232a ||
|
22789 |
|
22790 | (0x2e80 <= x && x <= 0x3247 && x !== 0x303f) ||
|
22791 |
|
22792 | (0x3250 <= x && x <= 0x4dbf) ||
|
22793 |
|
22794 | (0x4e00 <= x && x <= 0xa4c6) ||
|
22795 |
|
22796 | (0xa960 <= x && x <= 0xa97c) ||
|
22797 |
|
22798 | (0xac00 <= x && x <= 0xd7a3) ||
|
22799 |
|
22800 | (0xf900 <= x && x <= 0xfaff) ||
|
22801 |
|
22802 | (0xfe10 <= x && x <= 0xfe19) ||
|
22803 |
|
22804 | (0xfe30 <= x && x <= 0xfe6b) ||
|
22805 |
|
22806 | (0xff01 <= x && x <= 0xff60) ||
|
22807 | (0xffe0 <= x && x <= 0xffe6) ||
|
22808 |
|
22809 | (0x1b000 <= x && x <= 0x1b001) ||
|
22810 |
|
22811 | (0x1f200 <= x && x <= 0x1f251) ||
|
22812 |
|
22813 | (0x20000 <= x && x <= 0x3fffd)
|
22814 | )
|
22815 | ) {
|
22816 | return true;
|
22817 | }
|
22818 |
|
22819 | return false;
|
22820 | };
|
22821 |
|
22822 |
|
22823 | }),
|
22824 | ,
|
22825 |
|
22826 | (function(module) {
|
22827 |
|
22828 | module.exports = require("zlib");
|
22829 |
|
22830 | }),
|
22831 | ,
|
22832 | ,
|
22833 | ,
|
22834 | ,
|
22835 |
|
22836 | (function(module) {
|
22837 |
|
22838 | "use strict";
|
22839 |
|
22840 |
|
22841 | const isPromise = input => (
|
22842 | input instanceof Promise ||
|
22843 | (
|
22844 | input !== null &&
|
22845 | typeof input === 'object' &&
|
22846 | typeof input.then === 'function' &&
|
22847 | typeof input.catch === 'function'
|
22848 | )
|
22849 | );
|
22850 |
|
22851 | module.exports = isPromise;
|
22852 |
|
22853 | module.exports.default = isPromise;
|
22854 |
|
22855 |
|
22856 | }),
|
22857 | ,
|
22858 | ,
|
22859 | ,
|
22860 | ,
|
22861 | ,
|
22862 | ,
|
22863 | ,
|
22864 | ,
|
22865 | ,
|
22866 |
|
22867 | (function(__unusedmodule, exports, __webpack_require__) {
|
22868 |
|
22869 | "use strict";
|
22870 |
|
22871 | var __importDefault = (this && this.__importDefault) || function (mod) {
|
22872 | return (mod && mod.__esModule) ? mod : { "default": mod };
|
22873 | };
|
22874 | Object.defineProperty(exports, "__esModule", { value: true });
|
22875 | const assert_1 = __importDefault(__webpack_require__(357));
|
22876 | const into_stream_1 = __importDefault(__webpack_require__(328));
|
22877 | class FileBlob {
|
22878 | constructor({ mode = 0o100644, contentType, data }) {
|
22879 | assert_1.default(typeof mode === 'number');
|
22880 | assert_1.default(typeof data === 'string' || Buffer.isBuffer(data));
|
22881 | this.type = 'FileBlob';
|
22882 | this.mode = mode;
|
22883 | this.contentType = contentType;
|
22884 | this.data = data;
|
22885 | }
|
22886 | static async fromStream({ mode = 0o100644, contentType, stream, }) {
|
22887 | assert_1.default(typeof mode === 'number');
|
22888 | assert_1.default(typeof stream.pipe === 'function');
|
22889 | const chunks = [];
|
22890 | await new Promise((resolve, reject) => {
|
22891 | stream.on('data', chunk => chunks.push(Buffer.from(chunk)));
|
22892 | stream.on('error', error => reject(error));
|
22893 | stream.on('end', () => resolve());
|
22894 | });
|
22895 | const data = Buffer.concat(chunks);
|
22896 | return new FileBlob({ mode, contentType, data });
|
22897 | }
|
22898 | toStream() {
|
22899 | return into_stream_1.default(this.data);
|
22900 | }
|
22901 | }
|
22902 | exports.default = FileBlob;
|
22903 |
|
22904 |
|
22905 | }),
|
22906 | ,
|
22907 | ,
|
22908 | ,
|
22909 |
|
22910 | (function(module, __unusedexports, __webpack_require__) {
|
22911 |
|
22912 | "use strict";
|
22913 |
|
22914 |
|
22915 | var Type = __webpack_require__(653);
|
22916 |
|
22917 | var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
22918 | var _toString = Object.prototype.toString;
|
22919 |
|
22920 | function resolveYamlOmap(data) {
|
22921 | if (data === null) return true;
|
22922 |
|
22923 | var objectKeys = [], index, length, pair, pairKey, pairHasKey,
|
22924 | object = data;
|
22925 |
|
22926 | for (index = 0, length = object.length; index < length; index += 1) {
|
22927 | pair = object[index];
|
22928 | pairHasKey = false;
|
22929 |
|
22930 | if (_toString.call(pair) !== '[object Object]') return false;
|
22931 |
|
22932 | for (pairKey in pair) {
|
22933 | if (_hasOwnProperty.call(pair, pairKey)) {
|
22934 | if (!pairHasKey) pairHasKey = true;
|
22935 | else return false;
|
22936 | }
|
22937 | }
|
22938 |
|
22939 | if (!pairHasKey) return false;
|
22940 |
|
22941 | if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
|
22942 | else return false;
|
22943 | }
|
22944 |
|
22945 | return true;
|
22946 | }
|
22947 |
|
22948 | function constructYamlOmap(data) {
|
22949 | return data !== null ? data : [];
|
22950 | }
|
22951 |
|
22952 | module.exports = new Type('tag:yaml.org,2002:omap', {
|
22953 | kind: 'sequence',
|
22954 | resolve: resolveYamlOmap,
|
22955 | construct: constructYamlOmap
|
22956 | });
|
22957 |
|
22958 |
|
22959 | }),
|
22960 | ,
|
22961 |
|
22962 | (function(module, __unusedexports, __webpack_require__) {
|
22963 |
|
22964 | var constants = __webpack_require__(619)
|
22965 |
|
22966 | var origCwd = process.cwd
|
22967 | var cwd = null
|
22968 |
|
22969 | var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform
|
22970 |
|
22971 | process.cwd = function() {
|
22972 | if (!cwd)
|
22973 | cwd = origCwd.call(process)
|
22974 | return cwd
|
22975 | }
|
22976 | try {
|
22977 | process.cwd()
|
22978 | } catch (er) {}
|
22979 |
|
22980 | var chdir = process.chdir
|
22981 | process.chdir = function(d) {
|
22982 | cwd = null
|
22983 | chdir.call(process, d)
|
22984 | }
|
22985 |
|
22986 | module.exports = patch
|
22987 |
|
22988 | function patch (fs) {
|
22989 |
|
22990 |
|
22991 |
|
22992 |
|
22993 | if (constants.hasOwnProperty('O_SYMLINK') &&
|
22994 | process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
22995 | patchLchmod(fs)
|
22996 | }
|
22997 |
|
22998 |
|
22999 | if (!fs.lutimes) {
|
23000 | patchLutimes(fs)
|
23001 | }
|
23002 |
|
23003 |
|
23004 |
|
23005 |
|
23006 |
|
23007 |
|
23008 | fs.chown = chownFix(fs.chown)
|
23009 | fs.fchown = chownFix(fs.fchown)
|
23010 | fs.lchown = chownFix(fs.lchown)
|
23011 |
|
23012 | fs.chmod = chmodFix(fs.chmod)
|
23013 | fs.fchmod = chmodFix(fs.fchmod)
|
23014 | fs.lchmod = chmodFix(fs.lchmod)
|
23015 |
|
23016 | fs.chownSync = chownFixSync(fs.chownSync)
|
23017 | fs.fchownSync = chownFixSync(fs.fchownSync)
|
23018 | fs.lchownSync = chownFixSync(fs.lchownSync)
|
23019 |
|
23020 | fs.chmodSync = chmodFixSync(fs.chmodSync)
|
23021 | fs.fchmodSync = chmodFixSync(fs.fchmodSync)
|
23022 | fs.lchmodSync = chmodFixSync(fs.lchmodSync)
|
23023 |
|
23024 | fs.stat = statFix(fs.stat)
|
23025 | fs.fstat = statFix(fs.fstat)
|
23026 | fs.lstat = statFix(fs.lstat)
|
23027 |
|
23028 | fs.statSync = statFixSync(fs.statSync)
|
23029 | fs.fstatSync = statFixSync(fs.fstatSync)
|
23030 | fs.lstatSync = statFixSync(fs.lstatSync)
|
23031 |
|
23032 |
|
23033 | if (!fs.lchmod) {
|
23034 | fs.lchmod = function (path, mode, cb) {
|
23035 | if (cb) process.nextTick(cb)
|
23036 | }
|
23037 | fs.lchmodSync = function () {}
|
23038 | }
|
23039 | if (!fs.lchown) {
|
23040 | fs.lchown = function (path, uid, gid, cb) {
|
23041 | if (cb) process.nextTick(cb)
|
23042 | }
|
23043 | fs.lchownSync = function () {}
|
23044 | }
|
23045 |
|
23046 |
|
23047 |
|
23048 |
|
23049 |
|
23050 |
|
23051 |
|
23052 |
|
23053 |
|
23054 |
|
23055 | if (platform === "win32") {
|
23056 | fs.rename = (function (fs$rename) { return function (from, to, cb) {
|
23057 | var start = Date.now()
|
23058 | var backoff = 0;
|
23059 | fs$rename(from, to, function CB (er) {
|
23060 | if (er
|
23061 | && (er.code === "EACCES" || er.code === "EPERM")
|
23062 | && Date.now() - start < 60000) {
|
23063 | setTimeout(function() {
|
23064 | fs.stat(to, function (stater, st) {
|
23065 | if (stater && stater.code === "ENOENT")
|
23066 | fs$rename(from, to, CB);
|
23067 | else
|
23068 | cb(er)
|
23069 | })
|
23070 | }, backoff)
|
23071 | if (backoff < 100)
|
23072 | backoff += 10;
|
23073 | return;
|
23074 | }
|
23075 | if (cb) cb(er)
|
23076 | })
|
23077 | }})(fs.rename)
|
23078 | }
|
23079 |
|
23080 |
|
23081 | fs.read = (function (fs$read) {
|
23082 | function read (fd, buffer, offset, length, position, callback_) {
|
23083 | var callback
|
23084 | if (callback_ && typeof callback_ === 'function') {
|
23085 | var eagCounter = 0
|
23086 | callback = function (er, _, __) {
|
23087 | if (er && er.code === 'EAGAIN' && eagCounter < 10) {
|
23088 | eagCounter ++
|
23089 | return fs$read.call(fs, fd, buffer, offset, length, position, callback)
|
23090 | }
|
23091 | callback_.apply(this, arguments)
|
23092 | }
|
23093 | }
|
23094 | return fs$read.call(fs, fd, buffer, offset, length, position, callback)
|
23095 | }
|
23096 |
|
23097 |
|
23098 | read.__proto__ = fs$read
|
23099 | return read
|
23100 | })(fs.read)
|
23101 |
|
23102 | fs.readSync = (function (fs$readSync) { return function (fd, buffer, offset, length, position) {
|
23103 | var eagCounter = 0
|
23104 | while (true) {
|
23105 | try {
|
23106 | return fs$readSync.call(fs, fd, buffer, offset, length, position)
|
23107 | } catch (er) {
|
23108 | if (er.code === 'EAGAIN' && eagCounter < 10) {
|
23109 | eagCounter ++
|
23110 | continue
|
23111 | }
|
23112 | throw er
|
23113 | }
|
23114 | }
|
23115 | }})(fs.readSync)
|
23116 |
|
23117 | function patchLchmod (fs) {
|
23118 | fs.lchmod = function (path, mode, callback) {
|
23119 | fs.open( path
|
23120 | , constants.O_WRONLY | constants.O_SYMLINK
|
23121 | , mode
|
23122 | , function (err, fd) {
|
23123 | if (err) {
|
23124 | if (callback) callback(err)
|
23125 | return
|
23126 | }
|
23127 |
|
23128 |
|
23129 | fs.fchmod(fd, mode, function (err) {
|
23130 | fs.close(fd, function(err2) {
|
23131 | if (callback) callback(err || err2)
|
23132 | })
|
23133 | })
|
23134 | })
|
23135 | }
|
23136 |
|
23137 | fs.lchmodSync = function (path, mode) {
|
23138 | var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode)
|
23139 |
|
23140 |
|
23141 |
|
23142 | var threw = true
|
23143 | var ret
|
23144 | try {
|
23145 | ret = fs.fchmodSync(fd, mode)
|
23146 | threw = false
|
23147 | } finally {
|
23148 | if (threw) {
|
23149 | try {
|
23150 | fs.closeSync(fd)
|
23151 | } catch (er) {}
|
23152 | } else {
|
23153 | fs.closeSync(fd)
|
23154 | }
|
23155 | }
|
23156 | return ret
|
23157 | }
|
23158 | }
|
23159 |
|
23160 | function patchLutimes (fs) {
|
23161 | if (constants.hasOwnProperty("O_SYMLINK")) {
|
23162 | fs.lutimes = function (path, at, mt, cb) {
|
23163 | fs.open(path, constants.O_SYMLINK, function (er, fd) {
|
23164 | if (er) {
|
23165 | if (cb) cb(er)
|
23166 | return
|
23167 | }
|
23168 | fs.futimes(fd, at, mt, function (er) {
|
23169 | fs.close(fd, function (er2) {
|
23170 | if (cb) cb(er || er2)
|
23171 | })
|
23172 | })
|
23173 | })
|
23174 | }
|
23175 |
|
23176 | fs.lutimesSync = function (path, at, mt) {
|
23177 | var fd = fs.openSync(path, constants.O_SYMLINK)
|
23178 | var ret
|
23179 | var threw = true
|
23180 | try {
|
23181 | ret = fs.futimesSync(fd, at, mt)
|
23182 | threw = false
|
23183 | } finally {
|
23184 | if (threw) {
|
23185 | try {
|
23186 | fs.closeSync(fd)
|
23187 | } catch (er) {}
|
23188 | } else {
|
23189 | fs.closeSync(fd)
|
23190 | }
|
23191 | }
|
23192 | return ret
|
23193 | }
|
23194 |
|
23195 | } else {
|
23196 | fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) }
|
23197 | fs.lutimesSync = function () {}
|
23198 | }
|
23199 | }
|
23200 |
|
23201 | function chmodFix (orig) {
|
23202 | if (!orig) return orig
|
23203 | return function (target, mode, cb) {
|
23204 | return orig.call(fs, target, mode, function (er) {
|
23205 | if (chownErOk(er)) er = null
|
23206 | if (cb) cb.apply(this, arguments)
|
23207 | })
|
23208 | }
|
23209 | }
|
23210 |
|
23211 | function chmodFixSync (orig) {
|
23212 | if (!orig) return orig
|
23213 | return function (target, mode) {
|
23214 | try {
|
23215 | return orig.call(fs, target, mode)
|
23216 | } catch (er) {
|
23217 | if (!chownErOk(er)) throw er
|
23218 | }
|
23219 | }
|
23220 | }
|
23221 |
|
23222 |
|
23223 | function chownFix (orig) {
|
23224 | if (!orig) return orig
|
23225 | return function (target, uid, gid, cb) {
|
23226 | return orig.call(fs, target, uid, gid, function (er) {
|
23227 | if (chownErOk(er)) er = null
|
23228 | if (cb) cb.apply(this, arguments)
|
23229 | })
|
23230 | }
|
23231 | }
|
23232 |
|
23233 | function chownFixSync (orig) {
|
23234 | if (!orig) return orig
|
23235 | return function (target, uid, gid) {
|
23236 | try {
|
23237 | return orig.call(fs, target, uid, gid)
|
23238 | } catch (er) {
|
23239 | if (!chownErOk(er)) throw er
|
23240 | }
|
23241 | }
|
23242 | }
|
23243 |
|
23244 | function statFix (orig) {
|
23245 | if (!orig) return orig
|
23246 |
|
23247 |
|
23248 | return function (target, options, cb) {
|
23249 | if (typeof options === 'function') {
|
23250 | cb = options
|
23251 | options = null
|
23252 | }
|
23253 | function callback (er, stats) {
|
23254 | if (stats) {
|
23255 | if (stats.uid < 0) stats.uid += 0x100000000
|
23256 | if (stats.gid < 0) stats.gid += 0x100000000
|
23257 | }
|
23258 | if (cb) cb.apply(this, arguments)
|
23259 | }
|
23260 | return options ? orig.call(fs, target, options, callback)
|
23261 | : orig.call(fs, target, callback)
|
23262 | }
|
23263 | }
|
23264 |
|
23265 | function statFixSync (orig) {
|
23266 | if (!orig) return orig
|
23267 |
|
23268 |
|
23269 | return function (target, options) {
|
23270 | var stats = options ? orig.call(fs, target, options)
|
23271 | : orig.call(fs, target)
|
23272 | if (stats.uid < 0) stats.uid += 0x100000000
|
23273 | if (stats.gid < 0) stats.gid += 0x100000000
|
23274 | return stats;
|
23275 | }
|
23276 | }
|
23277 |
|
23278 |
|
23279 |
|
23280 |
|
23281 |
|
23282 |
|
23283 |
|
23284 |
|
23285 |
|
23286 |
|
23287 |
|
23288 |
|
23289 |
|
23290 | function chownErOk (er) {
|
23291 | if (!er)
|
23292 | return true
|
23293 |
|
23294 | if (er.code === "ENOSYS")
|
23295 | return true
|
23296 |
|
23297 | var nonroot = !process.getuid || process.getuid() !== 0
|
23298 | if (nonroot) {
|
23299 | if (er.code === "EINVAL" || er.code === "EPERM")
|
23300 | return true
|
23301 | }
|
23302 |
|
23303 | return false
|
23304 | }
|
23305 | }
|
23306 |
|
23307 |
|
23308 | }),
|
23309 | ,
|
23310 | ,
|
23311 |
|
23312 | (function(__unusedmodule, exports, __webpack_require__) {
|
23313 |
|
23314 | "use strict";
|
23315 |
|
23316 | Object.defineProperty(exports, "__esModule", { value: true });
|
23317 | const _1 = __webpack_require__(178);
|
23318 | function debug(message, ...additional) {
|
23319 | if (_1.getPlatformEnv('BUILDER_DEBUG')) {
|
23320 | console.log(message, ...additional);
|
23321 | }
|
23322 | }
|
23323 | exports.default = debug;
|
23324 |
|
23325 |
|
23326 | }),
|
23327 | ,
|
23328 | ,
|
23329 | ,
|
23330 | ,
|
23331 | ,
|
23332 | ,
|
23333 | ,
|
23334 | ,
|
23335 | ,
|
23336 | ,
|
23337 |
|
23338 | (function(__unusedmodule, exports) {
|
23339 |
|
23340 | "use strict";
|
23341 |
|
23342 | Object.defineProperty(exports, "__esModule", { value: true });
|
23343 |
|
23344 |
|
23345 | }),
|
23346 | ,
|
23347 | ,
|
23348 | ,
|
23349 | ,
|
23350 | ,
|
23351 |
|
23352 | (function(module, __unusedexports, __webpack_require__) {
|
23353 |
|
23354 | var Buffer = __webpack_require__(293).Buffer;
|
23355 |
|
23356 | var CRC_TABLE = [
|
23357 | 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419,
|
23358 | 0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4,
|
23359 | 0xe0d5e91e, 0x97d2d988, 0x09b64c2b, 0x7eb17cbd, 0xe7b82d07,
|
23360 | 0x90bf1d91, 0x1db71064, 0x6ab020f2, 0xf3b97148, 0x84be41de,
|
23361 | 0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7, 0x136c9856,
|
23362 | 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, 0x14015c4f, 0x63066cd9,
|
23363 | 0xfa0f3d63, 0x8d080df5, 0x3b6e20c8, 0x4c69105e, 0xd56041e4,
|
23364 | 0xa2677172, 0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b,
|
23365 | 0x35b5a8fa, 0x42b2986c, 0xdbbbc9d6, 0xacbcf940, 0x32d86ce3,
|
23366 | 0x45df5c75, 0xdcd60dcf, 0xabd13d59, 0x26d930ac, 0x51de003a,
|
23367 | 0xc8d75180, 0xbfd06116, 0x21b4f4b5, 0x56b3c423, 0xcfba9599,
|
23368 | 0xb8bda50f, 0x2802b89e, 0x5f058808, 0xc60cd9b2, 0xb10be924,
|
23369 | 0x2f6f7c87, 0x58684c11, 0xc1611dab, 0xb6662d3d, 0x76dc4190,
|
23370 | 0x01db7106, 0x98d220bc, 0xefd5102a, 0x71b18589, 0x06b6b51f,
|
23371 | 0x9fbfe4a5, 0xe8b8d433, 0x7807c9a2, 0x0f00f934, 0x9609a88e,
|
23372 | 0xe10e9818, 0x7f6a0dbb, 0x086d3d2d, 0x91646c97, 0xe6635c01,
|
23373 | 0x6b6b51f4, 0x1c6c6162, 0x856530d8, 0xf262004e, 0x6c0695ed,
|
23374 | 0x1b01a57b, 0x8208f4c1, 0xf50fc457, 0x65b0d9c6, 0x12b7e950,
|
23375 | 0x8bbeb8ea, 0xfcb9887c, 0x62dd1ddf, 0x15da2d49, 0x8cd37cf3,
|
23376 | 0xfbd44c65, 0x4db26158, 0x3ab551ce, 0xa3bc0074, 0xd4bb30e2,
|
23377 | 0x4adfa541, 0x3dd895d7, 0xa4d1c46d, 0xd3d6f4fb, 0x4369e96a,
|
23378 | 0x346ed9fc, 0xad678846, 0xda60b8d0, 0x44042d73, 0x33031de5,
|
23379 | 0xaa0a4c5f, 0xdd0d7cc9, 0x5005713c, 0x270241aa, 0xbe0b1010,
|
23380 | 0xc90c2086, 0x5768b525, 0x206f85b3, 0xb966d409, 0xce61e49f,
|
23381 | 0x5edef90e, 0x29d9c998, 0xb0d09822, 0xc7d7a8b4, 0x59b33d17,
|
23382 | 0x2eb40d81, 0xb7bd5c3b, 0xc0ba6cad, 0xedb88320, 0x9abfb3b6,
|
23383 | 0x03b6e20c, 0x74b1d29a, 0xead54739, 0x9dd277af, 0x04db2615,
|
23384 | 0x73dc1683, 0xe3630b12, 0x94643b84, 0x0d6d6a3e, 0x7a6a5aa8,
|
23385 | 0xe40ecf0b, 0x9309ff9d, 0x0a00ae27, 0x7d079eb1, 0xf00f9344,
|
23386 | 0x8708a3d2, 0x1e01f268, 0x6906c2fe, 0xf762575d, 0x806567cb,
|
23387 | 0x196c3671, 0x6e6b06e7, 0xfed41b76, 0x89d32be0, 0x10da7a5a,
|
23388 | 0x67dd4acc, 0xf9b9df6f, 0x8ebeeff9, 0x17b7be43, 0x60b08ed5,
|
23389 | 0xd6d6a3e8, 0xa1d1937e, 0x38d8c2c4, 0x4fdff252, 0xd1bb67f1,
|
23390 | 0xa6bc5767, 0x3fb506dd, 0x48b2364b, 0xd80d2bda, 0xaf0a1b4c,
|
23391 | 0x36034af6, 0x41047a60, 0xdf60efc3, 0xa867df55, 0x316e8eef,
|
23392 | 0x4669be79, 0xcb61b38c, 0xbc66831a, 0x256fd2a0, 0x5268e236,
|
23393 | 0xcc0c7795, 0xbb0b4703, 0x220216b9, 0x5505262f, 0xc5ba3bbe,
|
23394 | 0xb2bd0b28, 0x2bb45a92, 0x5cb36a04, 0xc2d7ffa7, 0xb5d0cf31,
|
23395 | 0x2cd99e8b, 0x5bdeae1d, 0x9b64c2b0, 0xec63f226, 0x756aa39c,
|
23396 | 0x026d930a, 0x9c0906a9, 0xeb0e363f, 0x72076785, 0x05005713,
|
23397 | 0x95bf4a82, 0xe2b87a14, 0x7bb12bae, 0x0cb61b38, 0x92d28e9b,
|
23398 | 0xe5d5be0d, 0x7cdcefb7, 0x0bdbdf21, 0x86d3d2d4, 0xf1d4e242,
|
23399 | 0x68ddb3f8, 0x1fda836e, 0x81be16cd, 0xf6b9265b, 0x6fb077e1,
|
23400 | 0x18b74777, 0x88085ae6, 0xff0f6a70, 0x66063bca, 0x11010b5c,
|
23401 | 0x8f659eff, 0xf862ae69, 0x616bffd3, 0x166ccf45, 0xa00ae278,
|
23402 | 0xd70dd2ee, 0x4e048354, 0x3903b3c2, 0xa7672661, 0xd06016f7,
|
23403 | 0x4969474d, 0x3e6e77db, 0xaed16a4a, 0xd9d65adc, 0x40df0b66,
|
23404 | 0x37d83bf0, 0xa9bcae53, 0xdebb9ec5, 0x47b2cf7f, 0x30b5ffe9,
|
23405 | 0xbdbdf21c, 0xcabac28a, 0x53b39330, 0x24b4a3a6, 0xbad03605,
|
23406 | 0xcdd70693, 0x54de5729, 0x23d967bf, 0xb3667a2e, 0xc4614ab8,
|
23407 | 0x5d681b02, 0x2a6f2b94, 0xb40bbe37, 0xc30c8ea1, 0x5a05df1b,
|
23408 | 0x2d02ef8d
|
23409 | ];
|
23410 |
|
23411 | if (typeof Int32Array !== 'undefined') {
|
23412 | CRC_TABLE = new Int32Array(CRC_TABLE);
|
23413 | }
|
23414 |
|
23415 | function ensureBuffer(input) {
|
23416 | if (Buffer.isBuffer(input)) {
|
23417 | return input;
|
23418 | }
|
23419 |
|
23420 | var hasNewBufferAPI =
|
23421 | typeof Buffer.alloc === "function" &&
|
23422 | typeof Buffer.from === "function";
|
23423 |
|
23424 | if (typeof input === "number") {
|
23425 | return hasNewBufferAPI ? Buffer.alloc(input) : new Buffer(input);
|
23426 | }
|
23427 | else if (typeof input === "string") {
|
23428 | return hasNewBufferAPI ? Buffer.from(input) : new Buffer(input);
|
23429 | }
|
23430 | else {
|
23431 | throw new Error("input must be buffer, number, or string, received " +
|
23432 | typeof input);
|
23433 | }
|
23434 | }
|
23435 |
|
23436 | function bufferizeInt(num) {
|
23437 | var tmp = ensureBuffer(4);
|
23438 | tmp.writeInt32BE(num, 0);
|
23439 | return tmp;
|
23440 | }
|
23441 |
|
23442 | function _crc32(buf, previous) {
|
23443 | buf = ensureBuffer(buf);
|
23444 | if (Buffer.isBuffer(previous)) {
|
23445 | previous = previous.readUInt32BE(0);
|
23446 | }
|
23447 | var crc = ~~previous ^ -1;
|
23448 | for (var n = 0; n < buf.length; n++) {
|
23449 | crc = CRC_TABLE[(crc ^ buf[n]) & 0xff] ^ (crc >>> 8);
|
23450 | }
|
23451 | return (crc ^ -1);
|
23452 | }
|
23453 |
|
23454 | function crc32() {
|
23455 | return bufferizeInt(_crc32.apply(null, arguments));
|
23456 | }
|
23457 | crc32.signed = function () {
|
23458 | return _crc32.apply(null, arguments);
|
23459 | };
|
23460 | crc32.unsigned = function () {
|
23461 | return _crc32.apply(null, arguments) >>> 0;
|
23462 | };
|
23463 |
|
23464 | module.exports = crc32;
|
23465 |
|
23466 |
|
23467 | }),
|
23468 | ,
|
23469 |
|
23470 | (function(module) {
|
23471 |
|
23472 | "use strict";
|
23473 |
|
23474 |
|
23475 | module.exports = options => {
|
23476 | options = Object.assign({
|
23477 | onlyFirst: false
|
23478 | }, options);
|
23479 |
|
23480 | const pattern = [
|
23481 | '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
|
23482 | '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
|
23483 | ].join('|');
|
23484 |
|
23485 | return new RegExp(pattern, options.onlyFirst ? undefined : 'g');
|
23486 | };
|
23487 |
|
23488 |
|
23489 | }),
|
23490 | ,
|
23491 | ,
|
23492 | ,
|
23493 | ,
|
23494 |
|
23495 | (function(module, exports, __webpack_require__) {
|
23496 |
|
23497 |
|
23498 | var buffer = __webpack_require__(293)
|
23499 | var Buffer = buffer.Buffer
|
23500 |
|
23501 |
|
23502 | function copyProps (src, dst) {
|
23503 | for (var key in src) {
|
23504 | dst[key] = src[key]
|
23505 | }
|
23506 | }
|
23507 | if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {
|
23508 | module.exports = buffer
|
23509 | } else {
|
23510 |
|
23511 | copyProps(buffer, exports)
|
23512 | exports.Buffer = SafeBuffer
|
23513 | }
|
23514 |
|
23515 | function SafeBuffer (arg, encodingOrOffset, length) {
|
23516 | return Buffer(arg, encodingOrOffset, length)
|
23517 | }
|
23518 |
|
23519 |
|
23520 | copyProps(Buffer, SafeBuffer)
|
23521 |
|
23522 | SafeBuffer.from = function (arg, encodingOrOffset, length) {
|
23523 | if (typeof arg === 'number') {
|
23524 | throw new TypeError('Argument must not be a number')
|
23525 | }
|
23526 | return Buffer(arg, encodingOrOffset, length)
|
23527 | }
|
23528 |
|
23529 | SafeBuffer.alloc = function (size, fill, encoding) {
|
23530 | if (typeof size !== 'number') {
|
23531 | throw new TypeError('Argument must be a number')
|
23532 | }
|
23533 | var buf = Buffer(size)
|
23534 | if (fill !== undefined) {
|
23535 | if (typeof encoding === 'string') {
|
23536 | buf.fill(fill, encoding)
|
23537 | } else {
|
23538 | buf.fill(fill)
|
23539 | }
|
23540 | } else {
|
23541 | buf.fill(0)
|
23542 | }
|
23543 | return buf
|
23544 | }
|
23545 |
|
23546 | SafeBuffer.allocUnsafe = function (size) {
|
23547 | if (typeof size !== 'number') {
|
23548 | throw new TypeError('Argument must be a number')
|
23549 | }
|
23550 | return Buffer(size)
|
23551 | }
|
23552 |
|
23553 | SafeBuffer.allocUnsafeSlow = function (size) {
|
23554 | if (typeof size !== 'number') {
|
23555 | throw new TypeError('Argument must be a number')
|
23556 | }
|
23557 | return buffer.SlowBuffer(size)
|
23558 | }
|
23559 |
|
23560 |
|
23561 | }),
|
23562 | ,
|
23563 | ,
|
23564 | ,
|
23565 | ,
|
23566 | ,
|
23567 | ,
|
23568 | ,
|
23569 |
|
23570 | (function(__unusedmodule, exports) {
|
23571 |
|
23572 | "use strict";
|
23573 |
|
23574 | Object.defineProperty(exports, "__esModule", { value: true });
|
23575 | exports.DetectorFilesystem = void 0;
|
23576 |
|
23577 |
|
23578 |
|
23579 |
|
23580 |
|
23581 |
|
23582 |
|
23583 |
|
23584 |
|
23585 |
|
23586 |
|
23587 |
|
23588 |
|
23589 |
|
23590 |
|
23591 |
|
23592 |
|
23593 |
|
23594 |
|
23595 |
|
23596 |
|
23597 |
|
23598 |
|
23599 |
|
23600 |
|
23601 | class DetectorFilesystem {
|
23602 | constructor() {
|
23603 | this.hasPath = async (path) => {
|
23604 | let p = this.pathCache.get(path);
|
23605 | if (!p) {
|
23606 | p = this._hasPath(path);
|
23607 | this.pathCache.set(path, p);
|
23608 | }
|
23609 | return p;
|
23610 | };
|
23611 | this.isFile = async (name) => {
|
23612 | let p = this.fileCache.get(name);
|
23613 | if (!p) {
|
23614 | p = this._isFile(name);
|
23615 | this.fileCache.set(name, p);
|
23616 | }
|
23617 | return p;
|
23618 | };
|
23619 | this.readFile = async (name) => {
|
23620 | let p = this.readFileCache.get(name);
|
23621 | if (!p) {
|
23622 | p = this._readFile(name);
|
23623 | this.readFileCache.set(name, p);
|
23624 | }
|
23625 | return p;
|
23626 | };
|
23627 | this.pathCache = new Map();
|
23628 | this.fileCache = new Map();
|
23629 | this.readFileCache = new Map();
|
23630 | }
|
23631 | }
|
23632 | exports.DetectorFilesystem = DetectorFilesystem;
|
23633 |
|
23634 |
|
23635 | }),
|
23636 | ,
|
23637 |
|
23638 | (function(__unusedmodule, exports, __webpack_require__) {
|
23639 |
|
23640 | "use strict";
|
23641 |
|
23642 | var __importDefault = (this && this.__importDefault) || function (mod) {
|
23643 | return (mod && mod.__esModule) ? mod : { "default": mod };
|
23644 | };
|
23645 | Object.defineProperty(exports, "__esModule", { value: true });
|
23646 | exports.detectBuilders = exports.detectOutputDirectory = exports.detectApiDirectory = exports.detectApiExtensions = exports.sortFiles = void 0;
|
23647 | const minimatch_1 = __importDefault(__webpack_require__(904));
|
23648 | const semver_1 = __webpack_require__(391);
|
23649 | const path_1 = __webpack_require__(622);
|
23650 | const _1 = __webpack_require__(178);
|
23651 |
|
23652 |
|
23653 | function sortFiles(fileA, fileB) {
|
23654 | return fileA.localeCompare(fileB);
|
23655 | }
|
23656 | exports.sortFiles = sortFiles;
|
23657 | function detectApiExtensions(builders) {
|
23658 | return new Set(builders
|
23659 | .filter(b => b.config && b.config.zeroConfig && b.src && b.src.startsWith('api/'))
|
23660 | .map(b => path_1.extname(b.src))
|
23661 | .filter(Boolean));
|
23662 | }
|
23663 | exports.detectApiExtensions = detectApiExtensions;
|
23664 | function detectApiDirectory(builders) {
|
23665 |
|
23666 |
|
23667 | const found = builders.some(b => b.config && b.config.zeroConfig && b.src.startsWith('api/'));
|
23668 | return found ? 'api' : null;
|
23669 | }
|
23670 | exports.detectApiDirectory = detectApiDirectory;
|
23671 |
|
23672 | function getPublicBuilder(builders) {
|
23673 | const builder = builders.find(builder => _1.isOfficialRuntime('static', builder.use) &&
|
23674 | /^.*\/\*\*\/\*$/.test(builder.src) &&
|
23675 | builder.config &&
|
23676 | builder.config.zeroConfig === true);
|
23677 | return builder || null;
|
23678 | }
|
23679 | function detectOutputDirectory(builders) {
|
23680 |
|
23681 |
|
23682 | const publicBuilder = getPublicBuilder(builders);
|
23683 | return publicBuilder ? publicBuilder.src.replace('/**/*', '') : null;
|
23684 | }
|
23685 | exports.detectOutputDirectory = detectOutputDirectory;
|
23686 | async function detectBuilders(files, pkg, options = {}) {
|
23687 | const errors = [];
|
23688 | const warnings = [];
|
23689 | const apiBuilders = [];
|
23690 | let frontendBuilder = null;
|
23691 | const functionError = validateFunctions(options);
|
23692 | if (functionError) {
|
23693 | return {
|
23694 | builders: null,
|
23695 | errors: [functionError],
|
23696 | warnings,
|
23697 | defaultRoutes: null,
|
23698 | redirectRoutes: null,
|
23699 | rewriteRoutes: null,
|
23700 | errorRoutes: null,
|
23701 | };
|
23702 | }
|
23703 | const apiMatches = getApiMatches(options);
|
23704 | const sortedFiles = files.sort(sortFiles);
|
23705 | const apiSortedFiles = files.sort(sortFilesBySegmentCount);
|
23706 |
|
23707 | const usedFunctions = new Set();
|
23708 | const addToUsedFunctions = (builder) => {
|
23709 | const key = Object.keys(builder.config.functions || {})[0];
|
23710 | if (key)
|
23711 | usedFunctions.add(key);
|
23712 | };
|
23713 | const absolutePathCache = new Map();
|
23714 | const { projectSettings = {} } = options;
|
23715 | const { buildCommand, outputDirectory, framework } = projectSettings;
|
23716 |
|
23717 | const makeFrontendStatic = buildCommand === '' || outputDirectory === '';
|
23718 |
|
23719 |
|
23720 | const usedOutputDirectory = outputDirectory || 'public';
|
23721 | let hasUsedOutputDirectory = false;
|
23722 | let hasNoneApiFiles = false;
|
23723 | let hasNextApiFiles = false;
|
23724 | let fallbackEntrypoint = null;
|
23725 | const apiRoutes = [];
|
23726 | const dynamicRoutes = [];
|
23727 |
|
23728 | for (const fileName of sortedFiles) {
|
23729 | const apiBuilder = maybeGetApiBuilder(fileName, apiMatches, options);
|
23730 | if (apiBuilder) {
|
23731 | const { routeError, apiRoute, isDynamic } = getApiRoute(fileName, apiSortedFiles, options, absolutePathCache);
|
23732 | if (routeError) {
|
23733 | return {
|
23734 | builders: null,
|
23735 | errors: [routeError],
|
23736 | warnings,
|
23737 | defaultRoutes: null,
|
23738 | redirectRoutes: null,
|
23739 | rewriteRoutes: null,
|
23740 | errorRoutes: null,
|
23741 | };
|
23742 | }
|
23743 | if (apiRoute) {
|
23744 | apiRoutes.push(apiRoute);
|
23745 | if (isDynamic) {
|
23746 | dynamicRoutes.push(apiRoute);
|
23747 | }
|
23748 | }
|
23749 | addToUsedFunctions(apiBuilder);
|
23750 | apiBuilders.push(apiBuilder);
|
23751 | continue;
|
23752 | }
|
23753 | if (!hasUsedOutputDirectory &&
|
23754 | fileName.startsWith(`${usedOutputDirectory}/`)) {
|
23755 | hasUsedOutputDirectory = true;
|
23756 | }
|
23757 | if (!hasNoneApiFiles &&
|
23758 | !fileName.startsWith('api/') &&
|
23759 | fileName !== 'package.json') {
|
23760 | hasNoneApiFiles = true;
|
23761 | }
|
23762 | if (!hasNextApiFiles &&
|
23763 | (fileName.startsWith('pages/api') || fileName.startsWith('src/pages/api'))) {
|
23764 | hasNextApiFiles = true;
|
23765 | }
|
23766 | if (!fallbackEntrypoint &&
|
23767 | buildCommand &&
|
23768 | !fileName.includes('/') &&
|
23769 | fileName !== 'now.json' &&
|
23770 | fileName !== 'vercel.json') {
|
23771 | fallbackEntrypoint = fileName;
|
23772 | }
|
23773 | }
|
23774 | if (!makeFrontendStatic &&
|
23775 | (hasBuildScript(pkg) || buildCommand || framework)) {
|
23776 |
|
23777 | frontendBuilder = detectFrontBuilder(pkg, files, usedFunctions, fallbackEntrypoint, options);
|
23778 | }
|
23779 | else {
|
23780 | if (pkg &&
|
23781 | !makeFrontendStatic &&
|
23782 | !apiBuilders.length &&
|
23783 | !options.ignoreBuildScript) {
|
23784 |
|
23785 |
|
23786 | errors.push(getMissingBuildScriptError());
|
23787 | return {
|
23788 | errors,
|
23789 | warnings,
|
23790 | builders: null,
|
23791 | redirectRoutes: null,
|
23792 | defaultRoutes: null,
|
23793 | rewriteRoutes: null,
|
23794 | errorRoutes: null,
|
23795 | };
|
23796 | }
|
23797 |
|
23798 |
|
23799 | if (hasUsedOutputDirectory && outputDirectory !== '') {
|
23800 | frontendBuilder = {
|
23801 | use: '@vercel/static',
|
23802 | src: `${usedOutputDirectory}/**/*`,
|
23803 | config: {
|
23804 | zeroConfig: true,
|
23805 | outputDirectory: usedOutputDirectory,
|
23806 | },
|
23807 | };
|
23808 | }
|
23809 | else if (apiBuilders.length && hasNoneApiFiles) {
|
23810 |
|
23811 |
|
23812 | frontendBuilder = {
|
23813 | use: '@vercel/static',
|
23814 | src: '!{api/**,package.json}',
|
23815 | config: {
|
23816 | zeroConfig: true,
|
23817 | },
|
23818 | };
|
23819 | }
|
23820 | }
|
23821 | const unusedFunctionError = checkUnusedFunctions(frontendBuilder, usedFunctions, options);
|
23822 | if (unusedFunctionError) {
|
23823 | return {
|
23824 | builders: null,
|
23825 | errors: [unusedFunctionError],
|
23826 | warnings,
|
23827 | redirectRoutes: null,
|
23828 | defaultRoutes: null,
|
23829 | rewriteRoutes: null,
|
23830 | errorRoutes: null,
|
23831 | };
|
23832 | }
|
23833 | const builders = [];
|
23834 | if (apiBuilders.length) {
|
23835 | builders.push(...apiBuilders);
|
23836 | }
|
23837 | if (frontendBuilder) {
|
23838 | builders.push(frontendBuilder);
|
23839 | if (hasNextApiFiles && apiBuilders.length) {
|
23840 | warnings.push({
|
23841 | code: 'conflicting_files',
|
23842 | message: 'It is not possible to use `api` and `pages/api` at the same time, please only use one option',
|
23843 | });
|
23844 | }
|
23845 | }
|
23846 | const routesResult = getRouteResult(apiRoutes, dynamicRoutes, usedOutputDirectory, apiBuilders, frontendBuilder, options);
|
23847 | return {
|
23848 | warnings,
|
23849 | builders: builders.length ? builders : null,
|
23850 | errors: errors.length ? errors : null,
|
23851 | redirectRoutes: routesResult.redirectRoutes,
|
23852 | defaultRoutes: routesResult.defaultRoutes,
|
23853 | rewriteRoutes: routesResult.rewriteRoutes,
|
23854 | errorRoutes: routesResult.errorRoutes,
|
23855 | };
|
23856 | }
|
23857 | exports.detectBuilders = detectBuilders;
|
23858 | function maybeGetApiBuilder(fileName, apiMatches, options) {
|
23859 | if (!fileName.startsWith('api/')) {
|
23860 | return null;
|
23861 | }
|
23862 | if (fileName.includes('/.')) {
|
23863 | return null;
|
23864 | }
|
23865 | if (fileName.includes('/_')) {
|
23866 | return null;
|
23867 | }
|
23868 | if (fileName.includes('/node_modules/')) {
|
23869 | return null;
|
23870 | }
|
23871 | if (fileName.endsWith('.d.ts')) {
|
23872 | return null;
|
23873 | }
|
23874 | const match = apiMatches.find(({ src }) => {
|
23875 | return src === fileName || minimatch_1.default(fileName, src);
|
23876 | });
|
23877 | const { fnPattern, func } = getFunction(fileName, options);
|
23878 | const use = (func && func.runtime) || (match && match.use);
|
23879 | if (!use) {
|
23880 | return null;
|
23881 | }
|
23882 | const config = { zeroConfig: true };
|
23883 | if (fnPattern && func) {
|
23884 | config.functions = { [fnPattern]: func };
|
23885 | if (func.includeFiles) {
|
23886 | config.includeFiles = func.includeFiles;
|
23887 | }
|
23888 | if (func.excludeFiles) {
|
23889 | config.excludeFiles = func.excludeFiles;
|
23890 | }
|
23891 | }
|
23892 | const builder = {
|
23893 | use,
|
23894 | src: fileName,
|
23895 | config,
|
23896 | };
|
23897 | return builder;
|
23898 | }
|
23899 | function getFunction(fileName, { functions = {} }) {
|
23900 | const keys = Object.keys(functions);
|
23901 | if (!keys.length) {
|
23902 | return { fnPattern: null, func: null };
|
23903 | }
|
23904 | const func = keys.find(key => key === fileName || minimatch_1.default(fileName, key));
|
23905 | return func
|
23906 | ? { fnPattern: func, func: functions[func] }
|
23907 | : { fnPattern: null, func: null };
|
23908 | }
|
23909 | function getApiMatches({ tag } = {}) {
|
23910 | const withTag = tag ? `@${tag}` : '';
|
23911 | const config = { zeroConfig: true };
|
23912 | return [
|
23913 | { src: 'api/**/*.js', use: `@vercel/node${withTag}`, config },
|
23914 | { src: 'api/**/*.ts', use: `@vercel/node${withTag}`, config },
|
23915 | { src: 'api/**/!(*_test).go', use: `@vercel/go${withTag}`, config },
|
23916 | { src: 'api/**/*.py', use: `@vercel/python${withTag}`, config },
|
23917 | { src: 'api/**/*.rb', use: `@vercel/ruby${withTag}`, config },
|
23918 | ];
|
23919 | }
|
23920 | function hasBuildScript(pkg) {
|
23921 | const { scripts = {} } = pkg || {};
|
23922 | return Boolean(scripts && scripts['build']);
|
23923 | }
|
23924 | function detectFrontBuilder(pkg, files, usedFunctions, fallbackEntrypoint, options) {
|
23925 | const { tag, projectSettings = {} } = options;
|
23926 | const withTag = tag ? `@${tag}` : '';
|
23927 | let { framework } = projectSettings;
|
23928 | const config = {
|
23929 | zeroConfig: true,
|
23930 | };
|
23931 | if (framework) {
|
23932 | config.framework = framework;
|
23933 | }
|
23934 | if (projectSettings.devCommand) {
|
23935 | config.devCommand = projectSettings.devCommand;
|
23936 | }
|
23937 | if (projectSettings.buildCommand) {
|
23938 | config.buildCommand = projectSettings.buildCommand;
|
23939 | }
|
23940 | if (projectSettings.outputDirectory) {
|
23941 | config.outputDirectory = projectSettings.outputDirectory;
|
23942 | }
|
23943 | if (pkg) {
|
23944 | const deps = {
|
23945 | ...pkg.dependencies,
|
23946 | ...pkg.devDependencies,
|
23947 | };
|
23948 | if (deps['next']) {
|
23949 | framework = 'nextjs';
|
23950 | }
|
23951 | }
|
23952 | if (options.functions) {
|
23953 |
|
23954 | Object.entries(options.functions).forEach(([key, func]) => {
|
23955 | if (!usedFunctions.has(key)) {
|
23956 | if (!config.functions)
|
23957 | config.functions = {};
|
23958 | config.functions[key] = { ...func };
|
23959 | }
|
23960 | });
|
23961 | }
|
23962 | if (framework === 'nextjs') {
|
23963 | return { src: 'package.json', use: `@vercel/next${withTag}`, config };
|
23964 | }
|
23965 |
|
23966 |
|
23967 | const entrypoints = new Set([
|
23968 | 'package.json',
|
23969 | 'config.yaml',
|
23970 | 'config.toml',
|
23971 | 'config.json',
|
23972 | '_config.yml',
|
23973 | 'config.yml',
|
23974 | 'config.rb',
|
23975 | ]);
|
23976 | const source = pkg
|
23977 | ? 'package.json'
|
23978 | : files.find(file => entrypoints.has(file)) ||
|
23979 | fallbackEntrypoint ||
|
23980 | 'package.json';
|
23981 | return {
|
23982 | src: source || 'package.json',
|
23983 | use: `@vercel/static-build${withTag}`,
|
23984 | config,
|
23985 | };
|
23986 | }
|
23987 | function getMissingBuildScriptError() {
|
23988 | return {
|
23989 | code: 'missing_build_script',
|
23990 | message: 'Your `package.json` file is missing a `build` property inside the `scripts` property.' +
|
23991 | '\nMore details: https://vercel.com/docs/v2/platform/frequently-asked-questions#missing-build-script',
|
23992 | };
|
23993 | }
|
23994 | function validateFunctions({ functions = {} }) {
|
23995 | for (const [path, func] of Object.entries(functions)) {
|
23996 | if (path.length > 256) {
|
23997 | return {
|
23998 | code: 'invalid_function_glob',
|
23999 | message: 'Function globs must be less than 256 characters long.',
|
24000 | };
|
24001 | }
|
24002 | if (!func || typeof func !== 'object') {
|
24003 | return {
|
24004 | code: 'invalid_function',
|
24005 | message: 'Function must be an object.',
|
24006 | };
|
24007 | }
|
24008 | if (Object.keys(func).length === 0) {
|
24009 | return {
|
24010 | code: 'invalid_function',
|
24011 | message: 'Function must contain at least one property.',
|
24012 | };
|
24013 | }
|
24014 | if (func.maxDuration !== undefined &&
|
24015 | (func.maxDuration < 1 ||
|
24016 | func.maxDuration > 900 ||
|
24017 | !Number.isInteger(func.maxDuration))) {
|
24018 | return {
|
24019 | code: 'invalid_function_duration',
|
24020 | message: 'Functions must have a duration between 1 and 900.',
|
24021 | };
|
24022 | }
|
24023 | if (func.memory !== undefined &&
|
24024 | (func.memory < 128 || func.memory > 3008 || func.memory % 64 !== 0)) {
|
24025 | return {
|
24026 | code: 'invalid_function_memory',
|
24027 | message: 'Functions must have a memory value between 128 and 3008 in steps of 64.',
|
24028 | };
|
24029 | }
|
24030 | if (path.startsWith('/')) {
|
24031 | return {
|
24032 | code: 'invalid_function_source',
|
24033 | message: `The function path "${path}" is invalid. The path must be relative to your project root and therefore cannot start with a slash.`,
|
24034 | };
|
24035 | }
|
24036 | if (func.runtime !== undefined) {
|
24037 | const tag = `${func.runtime}`.split('@').pop();
|
24038 | if (!tag || !semver_1.valid(tag)) {
|
24039 | return {
|
24040 | code: 'invalid_function_runtime',
|
24041 | message: 'Function Runtimes must have a valid version, for example `now-php@1.0.0`.',
|
24042 | };
|
24043 | }
|
24044 | }
|
24045 | if (func.includeFiles !== undefined) {
|
24046 | if (typeof func.includeFiles !== 'string') {
|
24047 | return {
|
24048 | code: 'invalid_function_property',
|
24049 | message: `The property \`includeFiles\` must be a string.`,
|
24050 | };
|
24051 | }
|
24052 | }
|
24053 | if (func.excludeFiles !== undefined) {
|
24054 | if (typeof func.excludeFiles !== 'string') {
|
24055 | return {
|
24056 | code: 'invalid_function_property',
|
24057 | message: `The property \`excludeFiles\` must be a string.`,
|
24058 | };
|
24059 | }
|
24060 | }
|
24061 | }
|
24062 | return null;
|
24063 | }
|
24064 | function checkUnusedFunctions(frontendBuilder, usedFunctions, options) {
|
24065 | const unusedFunctions = new Set(Object.keys(options.functions || {}).filter(key => !usedFunctions.has(key)));
|
24066 | if (!unusedFunctions.size) {
|
24067 | return null;
|
24068 | }
|
24069 |
|
24070 | if (frontendBuilder && _1.isOfficialRuntime('next', frontendBuilder.use)) {
|
24071 | for (const fnKey of unusedFunctions.values()) {
|
24072 | if (fnKey.startsWith('pages/') || fnKey.startsWith('src/pages')) {
|
24073 | unusedFunctions.delete(fnKey);
|
24074 | }
|
24075 | else {
|
24076 | return {
|
24077 | code: 'unused_function',
|
24078 | message: `The function for ${fnKey} can't be handled by any builder`,
|
24079 | };
|
24080 | }
|
24081 | }
|
24082 | }
|
24083 | if (unusedFunctions.size) {
|
24084 | const [unusedFunction] = Array.from(unusedFunctions);
|
24085 | return {
|
24086 | code: 'unused_function',
|
24087 | message: `The function for ${unusedFunction} can't be handled by any builder. ` +
|
24088 | `Make sure it is inside the api/ directory.`,
|
24089 | };
|
24090 | }
|
24091 | return null;
|
24092 | }
|
24093 | function getApiRoute(fileName, sortedFiles, options, absolutePathCache) {
|
24094 | const conflictingSegment = getConflictingSegment(fileName);
|
24095 | if (conflictingSegment) {
|
24096 | return {
|
24097 | apiRoute: null,
|
24098 | isDynamic: false,
|
24099 | routeError: {
|
24100 | code: 'conflicting_path_segment',
|
24101 | message: `The segment "${conflictingSegment}" occurs more than ` +
|
24102 | `one time in your path "${fileName}". Please make sure that ` +
|
24103 | `every segment in a path is unique.`,
|
24104 | },
|
24105 | };
|
24106 | }
|
24107 | const occurrences = pathOccurrences(fileName, sortedFiles, absolutePathCache);
|
24108 | if (occurrences.length > 0) {
|
24109 | const messagePaths = concatArrayOfText(occurrences.map(name => `"${name}"`));
|
24110 | return {
|
24111 | apiRoute: null,
|
24112 | isDynamic: false,
|
24113 | routeError: {
|
24114 | code: 'conflicting_file_path',
|
24115 | message: `Two or more files have conflicting paths or names. ` +
|
24116 | `Please make sure path segments and filenames, without their extension, are unique. ` +
|
24117 | `The path "${fileName}" has conflicts with ${messagePaths}.`,
|
24118 | },
|
24119 | };
|
24120 | }
|
24121 | const out = createRouteFromPath(fileName, Boolean(options.featHandleMiss), Boolean(options.cleanUrls));
|
24122 | return {
|
24123 | apiRoute: out.route,
|
24124 | isDynamic: out.isDynamic,
|
24125 | routeError: null,
|
24126 | };
|
24127 | }
|
24128 |
|
24129 |
|
24130 | function getConflictingSegment(filePath) {
|
24131 | const segments = new Set();
|
24132 | for (const segment of filePath.split('/')) {
|
24133 | const name = getSegmentName(segment);
|
24134 | if (name !== null && segments.has(name)) {
|
24135 | return name;
|
24136 | }
|
24137 | if (name) {
|
24138 | segments.add(name);
|
24139 | }
|
24140 | }
|
24141 | return null;
|
24142 | }
|
24143 |
|
24144 |
|
24145 |
|
24146 |
|
24147 | function getSegmentName(segment) {
|
24148 | const { name } = path_1.parse(segment);
|
24149 | if (name.startsWith('[') && name.endsWith(']')) {
|
24150 | return name.slice(1, -1);
|
24151 | }
|
24152 | return null;
|
24153 | }
|
24154 | function getAbsolutePath(unresolvedPath) {
|
24155 | const { dir, name } = path_1.parse(unresolvedPath);
|
24156 | const parts = joinPath(dir, name).split('/');
|
24157 | return parts.map(part => part.replace(/\[.*\]/, '1')).join('/');
|
24158 | }
|
24159 |
|
24160 |
|
24161 | function pathOccurrences(fileName, files, absolutePathCache) {
|
24162 | let currentAbsolutePath = absolutePathCache.get(fileName);
|
24163 | if (!currentAbsolutePath) {
|
24164 | currentAbsolutePath = getAbsolutePath(fileName);
|
24165 | absolutePathCache.set(fileName, currentAbsolutePath);
|
24166 | }
|
24167 | const prev = [];
|
24168 |
|
24169 |
|
24170 | for (const file of files) {
|
24171 | if (file === fileName) {
|
24172 | continue;
|
24173 | }
|
24174 | let absolutePath = absolutePathCache.get(file);
|
24175 | if (!absolutePath) {
|
24176 | absolutePath = getAbsolutePath(file);
|
24177 | absolutePathCache.set(file, absolutePath);
|
24178 | }
|
24179 | if (absolutePath === currentAbsolutePath) {
|
24180 | prev.push(file);
|
24181 | }
|
24182 | else if (partiallyMatches(fileName, file)) {
|
24183 | prev.push(file);
|
24184 | }
|
24185 | }
|
24186 | return prev;
|
24187 | }
|
24188 | function joinPath(...segments) {
|
24189 | const joinedPath = segments.join('/');
|
24190 | return joinedPath.replace(/\/{2,}/g, '/');
|
24191 | }
|
24192 | function escapeName(name) {
|
24193 | const special = '[]^$.|?*+()'.split('');
|
24194 | for (const char of special) {
|
24195 | name = name.replace(new RegExp(`\\${char}`, 'g'), `\\${char}`);
|
24196 | }
|
24197 | return name;
|
24198 | }
|
24199 | function concatArrayOfText(texts) {
|
24200 | if (texts.length <= 2) {
|
24201 | return texts.join(' and ');
|
24202 | }
|
24203 | const last = texts.pop();
|
24204 | return `${texts.join(', ')}, and ${last}`;
|
24205 | }
|
24206 |
|
24207 |
|
24208 | function partiallyMatches(pathA, pathB) {
|
24209 | const partsA = pathA.split('/');
|
24210 | const partsB = pathB.split('/');
|
24211 | const long = partsA.length > partsB.length ? partsA : partsB;
|
24212 | const short = long === partsA ? partsB : partsA;
|
24213 | let index = 0;
|
24214 | for (const segmentShort of short) {
|
24215 | const segmentLong = long[index];
|
24216 | const nameLong = getSegmentName(segmentLong);
|
24217 | const nameShort = getSegmentName(segmentShort);
|
24218 |
|
24219 |
|
24220 | if (segmentShort !== segmentLong && (!nameLong || !nameShort)) {
|
24221 | return false;
|
24222 | }
|
24223 | if (nameLong !== nameShort) {
|
24224 | return true;
|
24225 | }
|
24226 | index += 1;
|
24227 | }
|
24228 | return false;
|
24229 | }
|
24230 | function createRouteFromPath(filePath, featHandleMiss, cleanUrls) {
|
24231 | const parts = filePath.split('/');
|
24232 | let counter = 1;
|
24233 | const query = [];
|
24234 | let isDynamic = false;
|
24235 | const srcParts = parts.map((segment, i) => {
|
24236 | const name = getSegmentName(segment);
|
24237 | const isLast = i === parts.length - 1;
|
24238 | if (name !== null) {
|
24239 |
|
24240 | query.push(`${name}=$${counter++}`);
|
24241 | isDynamic = true;
|
24242 | return `([^/]+)`;
|
24243 | }
|
24244 | else if (isLast) {
|
24245 | const { name: fileName, ext } = path_1.parse(segment);
|
24246 | const isIndex = fileName === 'index';
|
24247 | const prefix = isIndex ? '/' : '';
|
24248 | const names = [
|
24249 | isIndex ? prefix : `${fileName}/`,
|
24250 | prefix + escapeName(fileName),
|
24251 | featHandleMiss && cleanUrls
|
24252 | ? ''
|
24253 | : prefix + escapeName(fileName) + escapeName(ext),
|
24254 | ].filter(Boolean);
|
24255 |
|
24256 |
|
24257 |
|
24258 | return `(${names.join('|')})${isIndex ? '?' : ''}`;
|
24259 | }
|
24260 | return segment;
|
24261 | });
|
24262 | const { name: fileName, ext } = path_1.parse(filePath);
|
24263 | const isIndex = fileName === 'index';
|
24264 | const queryString = `${query.length ? '?' : ''}${query.join('&')}`;
|
24265 | const src = isIndex
|
24266 | ? `^/${srcParts.slice(0, -1).join('/')}${srcParts.slice(-1)[0]}$`
|
24267 | : `^/${srcParts.join('/')}$`;
|
24268 | let route;
|
24269 | if (featHandleMiss) {
|
24270 | const extensionless = ext ? filePath.slice(0, -ext.length) : filePath;
|
24271 | route = {
|
24272 | src,
|
24273 | dest: `/${extensionless}${queryString}`,
|
24274 | check: true,
|
24275 | };
|
24276 | }
|
24277 | else {
|
24278 | route = {
|
24279 | src,
|
24280 | dest: `/${filePath}${queryString}`,
|
24281 | };
|
24282 | }
|
24283 | return { route, isDynamic };
|
24284 | }
|
24285 | function getRouteResult(apiRoutes, dynamicRoutes, outputDirectory, apiBuilders, frontendBuilder, options) {
|
24286 | const defaultRoutes = [];
|
24287 | const redirectRoutes = [];
|
24288 | const rewriteRoutes = [];
|
24289 | const errorRoutes = [];
|
24290 | const isNextjs = frontendBuilder &&
|
24291 | ((frontendBuilder.use && frontendBuilder.use.startsWith('@vercel/next')) ||
|
24292 | (frontendBuilder.config &&
|
24293 | frontendBuilder.config.framework === 'nextjs'));
|
24294 | if (apiRoutes && apiRoutes.length > 0) {
|
24295 | if (options.featHandleMiss) {
|
24296 | const extSet = detectApiExtensions(apiBuilders);
|
24297 | if (extSet.size > 0) {
|
24298 | const exts = Array.from(extSet)
|
24299 | .map(ext => ext.slice(1))
|
24300 | .join('|');
|
24301 | const extGroup = `(?:\\.(?:${exts}))`;
|
24302 | if (options.cleanUrls) {
|
24303 | redirectRoutes.push({
|
24304 | src: `^/(api(?:.+)?)/index${extGroup}?/?$`,
|
24305 | headers: { Location: options.trailingSlash ? '/$1/' : '/$1' },
|
24306 | status: 308,
|
24307 | });
|
24308 | redirectRoutes.push({
|
24309 | src: `^/api/(.+)${extGroup}/?$`,
|
24310 | headers: {
|
24311 | Location: options.trailingSlash ? '/api/$1/' : '/api/$1',
|
24312 | },
|
24313 | status: 308,
|
24314 | });
|
24315 | }
|
24316 | else {
|
24317 | defaultRoutes.push({ handle: 'miss' });
|
24318 | defaultRoutes.push({
|
24319 | src: `^/api/(.+)${extGroup}$`,
|
24320 | dest: '/api/$1',
|
24321 | check: true,
|
24322 | });
|
24323 | }
|
24324 | }
|
24325 | rewriteRoutes.push(...dynamicRoutes);
|
24326 | rewriteRoutes.push({
|
24327 | src: '^/api(/.*)?$',
|
24328 | status: 404,
|
24329 | continue: true,
|
24330 | });
|
24331 | }
|
24332 | else {
|
24333 | defaultRoutes.push(...apiRoutes);
|
24334 | if (apiRoutes.length) {
|
24335 | defaultRoutes.push({
|
24336 | status: 404,
|
24337 | src: '^/api(/.*)?$',
|
24338 | });
|
24339 | }
|
24340 | }
|
24341 | }
|
24342 | if (outputDirectory &&
|
24343 | frontendBuilder &&
|
24344 | !options.featHandleMiss &&
|
24345 | _1.isOfficialRuntime('static', frontendBuilder.use)) {
|
24346 | defaultRoutes.push({
|
24347 | src: '/(.*)',
|
24348 | dest: `/${outputDirectory}/$1`,
|
24349 | });
|
24350 | }
|
24351 | if (options.featHandleMiss && !isNextjs) {
|
24352 |
|
24353 |
|
24354 | errorRoutes.push({
|
24355 | status: 404,
|
24356 | src: '^/(?!.*api).*$',
|
24357 | dest: options.cleanUrls ? '/404' : '/404.html',
|
24358 | });
|
24359 | }
|
24360 | return {
|
24361 | defaultRoutes,
|
24362 | redirectRoutes,
|
24363 | rewriteRoutes,
|
24364 | errorRoutes,
|
24365 | };
|
24366 | }
|
24367 | function sortFilesBySegmentCount(fileA, fileB) {
|
24368 | const lengthA = fileA.split('/').length;
|
24369 | const lengthB = fileB.split('/').length;
|
24370 | if (lengthA > lengthB) {
|
24371 | return -1;
|
24372 | }
|
24373 | if (lengthA < lengthB) {
|
24374 | return 1;
|
24375 | }
|
24376 |
|
24377 |
|
24378 | const countSegments = (prev, segment) => getSegmentName(segment) ? prev + 1 : 0;
|
24379 | const segmentLengthA = fileA.split('/').reduce(countSegments, 0);
|
24380 | const segmentLengthB = fileB.split('/').reduce(countSegments, 0);
|
24381 | if (segmentLengthA > segmentLengthB) {
|
24382 | return 1;
|
24383 | }
|
24384 | if (segmentLengthA < segmentLengthB) {
|
24385 | return -1;
|
24386 | }
|
24387 | return 0;
|
24388 | }
|
24389 |
|
24390 |
|
24391 | }),
|
24392 | ,
|
24393 | ,
|
24394 | ,
|
24395 | ,
|
24396 | ,
|
24397 |
|
24398 | (function(module, __unusedexports, __webpack_require__) {
|
24399 |
|
24400 | var Stream = __webpack_require__(413).Stream
|
24401 |
|
24402 | module.exports = legacy
|
24403 |
|
24404 | function legacy (fs) {
|
24405 | return {
|
24406 | ReadStream: ReadStream,
|
24407 | WriteStream: WriteStream
|
24408 | }
|
24409 |
|
24410 | function ReadStream (path, options) {
|
24411 | if (!(this instanceof ReadStream)) return new ReadStream(path, options);
|
24412 |
|
24413 | Stream.call(this);
|
24414 |
|
24415 | var self = this;
|
24416 |
|
24417 | this.path = path;
|
24418 | this.fd = null;
|
24419 | this.readable = true;
|
24420 | this.paused = false;
|
24421 |
|
24422 | this.flags = 'r';
|
24423 | this.mode = 438;
|
24424 | this.bufferSize = 64 * 1024;
|
24425 |
|
24426 | options = options || {};
|
24427 |
|
24428 |
|
24429 | var keys = Object.keys(options);
|
24430 | for (var index = 0, length = keys.length; index < length; index++) {
|
24431 | var key = keys[index];
|
24432 | this[key] = options[key];
|
24433 | }
|
24434 |
|
24435 | if (this.encoding) this.setEncoding(this.encoding);
|
24436 |
|
24437 | if (this.start !== undefined) {
|
24438 | if ('number' !== typeof this.start) {
|
24439 | throw TypeError('start must be a Number');
|
24440 | }
|
24441 | if (this.end === undefined) {
|
24442 | this.end = Infinity;
|
24443 | } else if ('number' !== typeof this.end) {
|
24444 | throw TypeError('end must be a Number');
|
24445 | }
|
24446 |
|
24447 | if (this.start > this.end) {
|
24448 | throw new Error('start must be <= end');
|
24449 | }
|
24450 |
|
24451 | this.pos = this.start;
|
24452 | }
|
24453 |
|
24454 | if (this.fd !== null) {
|
24455 | process.nextTick(function() {
|
24456 | self._read();
|
24457 | });
|
24458 | return;
|
24459 | }
|
24460 |
|
24461 | fs.open(this.path, this.flags, this.mode, function (err, fd) {
|
24462 | if (err) {
|
24463 | self.emit('error', err);
|
24464 | self.readable = false;
|
24465 | return;
|
24466 | }
|
24467 |
|
24468 | self.fd = fd;
|
24469 | self.emit('open', fd);
|
24470 | self._read();
|
24471 | })
|
24472 | }
|
24473 |
|
24474 | function WriteStream (path, options) {
|
24475 | if (!(this instanceof WriteStream)) return new WriteStream(path, options);
|
24476 |
|
24477 | Stream.call(this);
|
24478 |
|
24479 | this.path = path;
|
24480 | this.fd = null;
|
24481 | this.writable = true;
|
24482 |
|
24483 | this.flags = 'w';
|
24484 | this.encoding = 'binary';
|
24485 | this.mode = 438;
|
24486 | this.bytesWritten = 0;
|
24487 |
|
24488 | options = options || {};
|
24489 |
|
24490 |
|
24491 | var keys = Object.keys(options);
|
24492 | for (var index = 0, length = keys.length; index < length; index++) {
|
24493 | var key = keys[index];
|
24494 | this[key] = options[key];
|
24495 | }
|
24496 |
|
24497 | if (this.start !== undefined) {
|
24498 | if ('number' !== typeof this.start) {
|
24499 | throw TypeError('start must be a Number');
|
24500 | }
|
24501 | if (this.start < 0) {
|
24502 | throw new Error('start must be >= zero');
|
24503 | }
|
24504 |
|
24505 | this.pos = this.start;
|
24506 | }
|
24507 |
|
24508 | this.busy = false;
|
24509 | this._queue = [];
|
24510 |
|
24511 | if (this.fd === null) {
|
24512 | this._open = fs.open;
|
24513 | this._queue.push([this._open, this.path, this.flags, this.mode, undefined]);
|
24514 | this.flush();
|
24515 | }
|
24516 | }
|
24517 | }
|
24518 |
|
24519 |
|
24520 | }),
|
24521 | ,
|
24522 | ,
|
24523 | ,
|
24524 |
|
24525 | (function(module) {
|
24526 |
|
24527 | "use strict";
|
24528 |
|
24529 |
|
24530 |
|
24531 |
|
24532 |
|
24533 |
|
24534 |
|
24535 | module.exports = function(fn) {
|
24536 |
|
24537 | try { return fn() } catch (e) {}
|
24538 |
|
24539 | }
|
24540 |
|
24541 | }),
|
24542 | ,
|
24543 | ,
|
24544 | ,
|
24545 | ,
|
24546 | ,
|
24547 |
|
24548 | (function(module) {
|
24549 |
|
24550 | module.exports = require("url");
|
24551 |
|
24552 | }),
|
24553 | ,
|
24554 | ,
|
24555 | ,
|
24556 | ,
|
24557 | ,
|
24558 |
|
24559 | (function(module, __unusedexports, __webpack_require__) {
|
24560 |
|
24561 | var fs = __webpack_require__(747)
|
24562 | var core
|
24563 | if (process.platform === 'win32' || global.TESTING_WINDOWS) {
|
24564 | core = __webpack_require__(265)
|
24565 | } else {
|
24566 | core = __webpack_require__(186)
|
24567 | }
|
24568 |
|
24569 | module.exports = isexe
|
24570 | isexe.sync = sync
|
24571 |
|
24572 | function isexe (path, options, cb) {
|
24573 | if (typeof options === 'function') {
|
24574 | cb = options
|
24575 | options = {}
|
24576 | }
|
24577 |
|
24578 | if (!cb) {
|
24579 | if (typeof Promise !== 'function') {
|
24580 | throw new TypeError('callback not provided')
|
24581 | }
|
24582 |
|
24583 | return new Promise(function (resolve, reject) {
|
24584 | isexe(path, options || {}, function (er, is) {
|
24585 | if (er) {
|
24586 | reject(er)
|
24587 | } else {
|
24588 | resolve(is)
|
24589 | }
|
24590 | })
|
24591 | })
|
24592 | }
|
24593 |
|
24594 | core(path, options || {}, function (er, is) {
|
24595 |
|
24596 | if (er) {
|
24597 | if (er.code === 'EACCES' || options && options.ignoreErrors) {
|
24598 | er = null
|
24599 | is = false
|
24600 | }
|
24601 | }
|
24602 | cb(er, is)
|
24603 | })
|
24604 | }
|
24605 |
|
24606 | function sync (path, options) {
|
24607 |
|
24608 | try {
|
24609 | return core.sync(path, options || {})
|
24610 | } catch (er) {
|
24611 | if (options && options.ignoreErrors || er.code === 'EACCES') {
|
24612 | return false
|
24613 | } else {
|
24614 | throw er
|
24615 | }
|
24616 | }
|
24617 | }
|
24618 |
|
24619 |
|
24620 | }),
|
24621 | ,
|
24622 | ,
|
24623 | ,
|
24624 | ,
|
24625 |
|
24626 | (function(module, exports, __webpack_require__) {
|
24627 |
|
24628 | "use strict";
|
24629 |
|
24630 |
|
24631 | Object.defineProperty(exports, '__esModule', { value: true });
|
24632 |
|
24633 | function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
24634 |
|
24635 | var Stream = __webpack_require__(413);
|
24636 | var Stream__default = _interopDefault(Stream);
|
24637 | var http = __webpack_require__(605);
|
24638 | var http__default = _interopDefault(http);
|
24639 | var url = __webpack_require__(835);
|
24640 | var https = _interopDefault(__webpack_require__(211));
|
24641 | var zlib = _interopDefault(__webpack_require__(761));
|
24642 |
|
24643 |
|
24644 |
|
24645 |
|
24646 | const BUFFER = Symbol('buffer');
|
24647 | const TYPE = Symbol('type');
|
24648 |
|
24649 | class Blob {
|
24650 | constructor() {
|
24651 | this[TYPE] = '';
|
24652 |
|
24653 | const blobParts = arguments[0];
|
24654 | const options = arguments[1];
|
24655 |
|
24656 | const buffers = [];
|
24657 |
|
24658 | if (blobParts) {
|
24659 | const a = blobParts;
|
24660 | const length = Number(a.length);
|
24661 | for (let i = 0; i < length; i++) {
|
24662 | const element = a[i];
|
24663 | let buffer;
|
24664 | if (element instanceof Buffer) {
|
24665 | buffer = element;
|
24666 | } else if (ArrayBuffer.isView(element)) {
|
24667 | buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength);
|
24668 | } else if (element instanceof ArrayBuffer) {
|
24669 | buffer = Buffer.from(element);
|
24670 | } else if (element instanceof Blob) {
|
24671 | buffer = element[BUFFER];
|
24672 | } else {
|
24673 | buffer = Buffer.from(typeof element === 'string' ? element : String(element));
|
24674 | }
|
24675 | buffers.push(buffer);
|
24676 | }
|
24677 | }
|
24678 |
|
24679 | this[BUFFER] = Buffer.concat(buffers);
|
24680 |
|
24681 | let type = options && options.type !== undefined && String(options.type).toLowerCase();
|
24682 | if (type && !/[^\u0020-\u007E]/.test(type)) {
|
24683 | this[TYPE] = type;
|
24684 | }
|
24685 | }
|
24686 | get size() {
|
24687 | return this[BUFFER].length;
|
24688 | }
|
24689 | get type() {
|
24690 | return this[TYPE];
|
24691 | }
|
24692 | slice() {
|
24693 | const size = this.size;
|
24694 |
|
24695 | const start = arguments[0];
|
24696 | const end = arguments[1];
|
24697 | let relativeStart, relativeEnd;
|
24698 | if (start === undefined) {
|
24699 | relativeStart = 0;
|
24700 | } else if (start < 0) {
|
24701 | relativeStart = Math.max(size + start, 0);
|
24702 | } else {
|
24703 | relativeStart = Math.min(start, size);
|
24704 | }
|
24705 | if (end === undefined) {
|
24706 | relativeEnd = size;
|
24707 | } else if (end < 0) {
|
24708 | relativeEnd = Math.max(size + end, 0);
|
24709 | } else {
|
24710 | relativeEnd = Math.min(end, size);
|
24711 | }
|
24712 | const span = Math.max(relativeEnd - relativeStart, 0);
|
24713 |
|
24714 | const buffer = this[BUFFER];
|
24715 | const slicedBuffer = buffer.slice(relativeStart, relativeStart + span);
|
24716 | const blob = new Blob([], { type: arguments[2] });
|
24717 | blob[BUFFER] = slicedBuffer;
|
24718 | return blob;
|
24719 | }
|
24720 | }
|
24721 |
|
24722 | Object.defineProperties(Blob.prototype, {
|
24723 | size: { enumerable: true },
|
24724 | type: { enumerable: true },
|
24725 | slice: { enumerable: true }
|
24726 | });
|
24727 |
|
24728 | Object.defineProperty(Blob.prototype, Symbol.toStringTag, {
|
24729 | value: 'Blob',
|
24730 | writable: false,
|
24731 | enumerable: false,
|
24732 | configurable: true
|
24733 | });
|
24734 |
|
24735 |
|
24736 |
|
24737 |
|
24738 |
|
24739 |
|
24740 |
|
24741 |
|
24742 |
|
24743 |
|
24744 |
|
24745 |
|
24746 |
|
24747 |
|
24748 |
|
24749 | function FetchError(message, type, systemError) {
|
24750 | Error.call(this, message);
|
24751 |
|
24752 | this.message = message;
|
24753 | this.type = type;
|
24754 |
|
24755 |
|
24756 | if (systemError) {
|
24757 | this.code = this.errno = systemError.code;
|
24758 | }
|
24759 |
|
24760 |
|
24761 | Error.captureStackTrace(this, this.constructor);
|
24762 | }
|
24763 |
|
24764 | FetchError.prototype = Object.create(Error.prototype);
|
24765 | FetchError.prototype.constructor = FetchError;
|
24766 | FetchError.prototype.name = 'FetchError';
|
24767 |
|
24768 | let convert;
|
24769 | try {
|
24770 | convert = __webpack_require__(79).convert;
|
24771 | } catch (e) {}
|
24772 |
|
24773 | const INTERNALS = Symbol('Body internals');
|
24774 |
|
24775 |
|
24776 |
|
24777 |
|
24778 |
|
24779 |
|
24780 |
|
24781 |
|
24782 |
|
24783 |
|
24784 | function Body(body) {
|
24785 | var _this = this;
|
24786 |
|
24787 | var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
24788 | _ref$size = _ref.size;
|
24789 |
|
24790 | let size = _ref$size === undefined ? 0 : _ref$size;
|
24791 | var _ref$timeout = _ref.timeout;
|
24792 | let timeout = _ref$timeout === undefined ? 0 : _ref$timeout;
|
24793 |
|
24794 | if (body == null) {
|
24795 |
|
24796 | body = null;
|
24797 | } else if (typeof body === 'string') ; else if (isURLSearchParams(body)) ; else if (body instanceof Blob) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') ; else if (ArrayBuffer.isView(body)) ; else if (body instanceof Stream__default) ; else {
|
24798 |
|
24799 |
|
24800 | body = String(body);
|
24801 | }
|
24802 | this[INTERNALS] = {
|
24803 | body,
|
24804 | disturbed: false,
|
24805 | error: null
|
24806 | };
|
24807 | this.size = size;
|
24808 | this.timeout = timeout;
|
24809 |
|
24810 | if (body instanceof Stream__default) {
|
24811 | body.on('error', function (err) {
|
24812 | _this[INTERNALS].error = new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err);
|
24813 | });
|
24814 | }
|
24815 | }
|
24816 |
|
24817 | Body.prototype = {
|
24818 | get body() {
|
24819 | return this[INTERNALS].body;
|
24820 | },
|
24821 |
|
24822 | get bodyUsed() {
|
24823 | return this[INTERNALS].disturbed;
|
24824 | },
|
24825 |
|
24826 | |
24827 |
|
24828 |
|
24829 |
|
24830 |
|
24831 | arrayBuffer() {
|
24832 | return consumeBody.call(this).then(function (buf) {
|
24833 | return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
|
24834 | });
|
24835 | },
|
24836 |
|
24837 | |
24838 |
|
24839 |
|
24840 |
|
24841 |
|
24842 | blob() {
|
24843 | let ct = this.headers && this.headers.get('content-type') || '';
|
24844 | return consumeBody.call(this).then(function (buf) {
|
24845 | return Object.assign(
|
24846 |
|
24847 | new Blob([], {
|
24848 | type: ct.toLowerCase()
|
24849 | }), {
|
24850 | [BUFFER]: buf
|
24851 | });
|
24852 | });
|
24853 | },
|
24854 |
|
24855 | |
24856 |
|
24857 |
|
24858 |
|
24859 |
|
24860 | json() {
|
24861 | var _this2 = this;
|
24862 |
|
24863 | return consumeBody.call(this).then(function (buffer) {
|
24864 | try {
|
24865 | return JSON.parse(buffer.toString());
|
24866 | } catch (err) {
|
24867 | return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));
|
24868 | }
|
24869 | });
|
24870 | },
|
24871 |
|
24872 | |
24873 |
|
24874 |
|
24875 |
|
24876 |
|
24877 | text() {
|
24878 | return consumeBody.call(this).then(function (buffer) {
|
24879 | return buffer.toString();
|
24880 | });
|
24881 | },
|
24882 |
|
24883 | |
24884 |
|
24885 |
|
24886 |
|
24887 |
|
24888 | buffer() {
|
24889 | return consumeBody.call(this);
|
24890 | },
|
24891 |
|
24892 | |
24893 |
|
24894 |
|
24895 |
|
24896 |
|
24897 |
|
24898 | textConverted() {
|
24899 | var _this3 = this;
|
24900 |
|
24901 | return consumeBody.call(this).then(function (buffer) {
|
24902 | return convertBody(buffer, _this3.headers);
|
24903 | });
|
24904 | }
|
24905 |
|
24906 | };
|
24907 |
|
24908 |
|
24909 | Object.defineProperties(Body.prototype, {
|
24910 | body: { enumerable: true },
|
24911 | bodyUsed: { enumerable: true },
|
24912 | arrayBuffer: { enumerable: true },
|
24913 | blob: { enumerable: true },
|
24914 | json: { enumerable: true },
|
24915 | text: { enumerable: true }
|
24916 | });
|
24917 |
|
24918 | Body.mixIn = function (proto) {
|
24919 | for (const name of Object.getOwnPropertyNames(Body.prototype)) {
|
24920 |
|
24921 | if (!(name in proto)) {
|
24922 | const desc = Object.getOwnPropertyDescriptor(Body.prototype, name);
|
24923 | Object.defineProperty(proto, name, desc);
|
24924 | }
|
24925 | }
|
24926 | };
|
24927 |
|
24928 |
|
24929 |
|
24930 |
|
24931 |
|
24932 |
|
24933 |
|
24934 |
|
24935 | function consumeBody() {
|
24936 | var _this4 = this;
|
24937 |
|
24938 | if (this[INTERNALS].disturbed) {
|
24939 | return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`));
|
24940 | }
|
24941 |
|
24942 | this[INTERNALS].disturbed = true;
|
24943 |
|
24944 | if (this[INTERNALS].error) {
|
24945 | return Body.Promise.reject(this[INTERNALS].error);
|
24946 | }
|
24947 |
|
24948 |
|
24949 | if (this.body === null) {
|
24950 | return Body.Promise.resolve(Buffer.alloc(0));
|
24951 | }
|
24952 |
|
24953 |
|
24954 | if (typeof this.body === 'string') {
|
24955 | return Body.Promise.resolve(Buffer.from(this.body));
|
24956 | }
|
24957 |
|
24958 |
|
24959 | if (this.body instanceof Blob) {
|
24960 | return Body.Promise.resolve(this.body[BUFFER]);
|
24961 | }
|
24962 |
|
24963 |
|
24964 | if (Buffer.isBuffer(this.body)) {
|
24965 | return Body.Promise.resolve(this.body);
|
24966 | }
|
24967 |
|
24968 |
|
24969 | if (Object.prototype.toString.call(this.body) === '[object ArrayBuffer]') {
|
24970 | return Body.Promise.resolve(Buffer.from(this.body));
|
24971 | }
|
24972 |
|
24973 |
|
24974 | if (ArrayBuffer.isView(this.body)) {
|
24975 | return Body.Promise.resolve(Buffer.from(this.body.buffer, this.body.byteOffset, this.body.byteLength));
|
24976 | }
|
24977 |
|
24978 |
|
24979 | if (!(this.body instanceof Stream__default)) {
|
24980 | return Body.Promise.resolve(Buffer.alloc(0));
|
24981 | }
|
24982 |
|
24983 |
|
24984 |
|
24985 | let accum = [];
|
24986 | let accumBytes = 0;
|
24987 | let abort = false;
|
24988 |
|
24989 | return new Body.Promise(function (resolve, reject) {
|
24990 | let resTimeout;
|
24991 |
|
24992 |
|
24993 | if (_this4.timeout) {
|
24994 | resTimeout = setTimeout(function () {
|
24995 | abort = true;
|
24996 | reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout'));
|
24997 | }, _this4.timeout);
|
24998 | }
|
24999 |
|
25000 |
|
25001 | _this4.body.on('error', function (err) {
|
25002 | reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err));
|
25003 | });
|
25004 |
|
25005 | _this4.body.on('data', function (chunk) {
|
25006 | if (abort || chunk === null) {
|
25007 | return;
|
25008 | }
|
25009 |
|
25010 | if (_this4.size && accumBytes + chunk.length > _this4.size) {
|
25011 | abort = true;
|
25012 | reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size'));
|
25013 | return;
|
25014 | }
|
25015 |
|
25016 | accumBytes += chunk.length;
|
25017 | accum.push(chunk);
|
25018 | });
|
25019 |
|
25020 | _this4.body.on('end', function () {
|
25021 | if (abort) {
|
25022 | return;
|
25023 | }
|
25024 |
|
25025 | clearTimeout(resTimeout);
|
25026 |
|
25027 | try {
|
25028 | resolve(Buffer.concat(accum));
|
25029 | } catch (err) {
|
25030 |
|
25031 | reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err));
|
25032 | }
|
25033 | });
|
25034 | });
|
25035 | }
|
25036 |
|
25037 |
|
25038 |
|
25039 |
|
25040 |
|
25041 |
|
25042 |
|
25043 |
|
25044 |
|
25045 | function convertBody(buffer, headers) {
|
25046 | if (typeof convert !== 'function') {
|
25047 | throw new Error('The package `encoding` must be installed to use the textConverted() function');
|
25048 | }
|
25049 |
|
25050 | const ct = headers.get('content-type');
|
25051 | let charset = 'utf-8';
|
25052 | let res, str;
|
25053 |
|
25054 |
|
25055 | if (ct) {
|
25056 | res = /charset=([^;]*)/i.exec(ct);
|
25057 | }
|
25058 |
|
25059 |
|
25060 | str = buffer.slice(0, 1024).toString();
|
25061 |
|
25062 |
|
25063 | if (!res && str) {
|
25064 | res = /<meta.+?charset=(['"])(.+?)\1/i.exec(str);
|
25065 | }
|
25066 |
|
25067 |
|
25068 | if (!res && str) {
|
25069 | res = /<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(str);
|
25070 |
|
25071 | if (res) {
|
25072 | res = /charset=(.*)/i.exec(res.pop());
|
25073 | }
|
25074 | }
|
25075 |
|
25076 |
|
25077 | if (!res && str) {
|
25078 | res = /<\?xml.+?encoding=(['"])(.+?)\1/i.exec(str);
|
25079 | }
|
25080 |
|
25081 |
|
25082 | if (res) {
|
25083 | charset = res.pop();
|
25084 |
|
25085 |
|
25086 |
|
25087 | if (charset === 'gb2312' || charset === 'gbk') {
|
25088 | charset = 'gb18030';
|
25089 | }
|
25090 | }
|
25091 |
|
25092 |
|
25093 | return convert(buffer, 'UTF-8', charset).toString();
|
25094 | }
|
25095 |
|
25096 |
|
25097 |
|
25098 |
|
25099 |
|
25100 |
|
25101 |
|
25102 |
|
25103 | function isURLSearchParams(obj) {
|
25104 |
|
25105 | if (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {
|
25106 | return false;
|
25107 | }
|
25108 |
|
25109 |
|
25110 | return obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';
|
25111 | }
|
25112 |
|
25113 |
|
25114 |
|
25115 |
|
25116 |
|
25117 |
|
25118 |
|
25119 | function clone(instance) {
|
25120 | let p1, p2;
|
25121 | let body = instance.body;
|
25122 |
|
25123 |
|
25124 | if (instance.bodyUsed) {
|
25125 | throw new Error('cannot clone body after it is used');
|
25126 | }
|
25127 |
|
25128 |
|
25129 |
|
25130 | if (body instanceof Stream__default && typeof body.getBoundary !== 'function') {
|
25131 |
|
25132 | p1 = new Stream.PassThrough();
|
25133 | p2 = new Stream.PassThrough();
|
25134 | body.pipe(p1);
|
25135 | body.pipe(p2);
|
25136 |
|
25137 | instance[INTERNALS].body = p1;
|
25138 | body = p2;
|
25139 | }
|
25140 |
|
25141 | return body;
|
25142 | }
|
25143 |
|
25144 |
|
25145 |
|
25146 |
|
25147 |
|
25148 |
|
25149 |
|
25150 |
|
25151 |
|
25152 |
|
25153 | function extractContentType(instance) {
|
25154 | const body = instance.body;
|
25155 |
|
25156 |
|
25157 |
|
25158 |
|
25159 | if (body === null) {
|
25160 |
|
25161 | return null;
|
25162 | } else if (typeof body === 'string') {
|
25163 |
|
25164 | return 'text/plain;charset=UTF-8';
|
25165 | } else if (isURLSearchParams(body)) {
|
25166 |
|
25167 | return 'application/x-www-form-urlencoded;charset=UTF-8';
|
25168 | } else if (body instanceof Blob) {
|
25169 |
|
25170 | return body.type || null;
|
25171 | } else if (Buffer.isBuffer(body)) {
|
25172 |
|
25173 | return null;
|
25174 | } else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') {
|
25175 |
|
25176 | return null;
|
25177 | } else if (ArrayBuffer.isView(body)) {
|
25178 |
|
25179 | return null;
|
25180 | } else if (typeof body.getBoundary === 'function') {
|
25181 |
|
25182 | return `multipart/form-data;boundary=${body.getBoundary()}`;
|
25183 | } else {
|
25184 |
|
25185 |
|
25186 | return null;
|
25187 | }
|
25188 | }
|
25189 |
|
25190 |
|
25191 |
|
25192 |
|
25193 |
|
25194 |
|
25195 |
|
25196 |
|
25197 |
|
25198 |
|
25199 | function getTotalBytes(instance) {
|
25200 | const body = instance.body;
|
25201 |
|
25202 |
|
25203 |
|
25204 | if (body === null) {
|
25205 |
|
25206 | return 0;
|
25207 | } else if (typeof body === 'string') {
|
25208 |
|
25209 | return Buffer.byteLength(body);
|
25210 | } else if (isURLSearchParams(body)) {
|
25211 |
|
25212 | return Buffer.byteLength(String(body));
|
25213 | } else if (body instanceof Blob) {
|
25214 |
|
25215 | return body.size;
|
25216 | } else if (Buffer.isBuffer(body)) {
|
25217 |
|
25218 | return body.length;
|
25219 | } else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') {
|
25220 |
|
25221 | return body.byteLength;
|
25222 | } else if (ArrayBuffer.isView(body)) {
|
25223 |
|
25224 | return body.byteLength;
|
25225 | } else if (body && typeof body.getLengthSync === 'function') {
|
25226 |
|
25227 | if (body._lengthRetrievers && body._lengthRetrievers.length == 0 ||
|
25228 | body.hasKnownLength && body.hasKnownLength()) {
|
25229 |
|
25230 | return body.getLengthSync();
|
25231 | }
|
25232 | return null;
|
25233 | } else {
|
25234 |
|
25235 |
|
25236 | return null;
|
25237 | }
|
25238 | }
|
25239 |
|
25240 |
|
25241 |
|
25242 |
|
25243 |
|
25244 |
|
25245 |
|
25246 | function writeToStream(dest, instance) {
|
25247 | const body = instance.body;
|
25248 |
|
25249 |
|
25250 | if (body === null) {
|
25251 |
|
25252 | dest.end();
|
25253 | } else if (typeof body === 'string') {
|
25254 |
|
25255 | dest.write(body);
|
25256 | dest.end();
|
25257 | } else if (isURLSearchParams(body)) {
|
25258 |
|
25259 | dest.write(Buffer.from(String(body)));
|
25260 | dest.end();
|
25261 | } else if (body instanceof Blob) {
|
25262 |
|
25263 | dest.write(body[BUFFER]);
|
25264 | dest.end();
|
25265 | } else if (Buffer.isBuffer(body)) {
|
25266 |
|
25267 | dest.write(body);
|
25268 | dest.end();
|
25269 | } else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') {
|
25270 |
|
25271 | dest.write(Buffer.from(body));
|
25272 | dest.end();
|
25273 | } else if (ArrayBuffer.isView(body)) {
|
25274 |
|
25275 | dest.write(Buffer.from(body.buffer, body.byteOffset, body.byteLength));
|
25276 | dest.end();
|
25277 | } else {
|
25278 |
|
25279 | body.pipe(dest);
|
25280 | }
|
25281 | }
|
25282 |
|
25283 |
|
25284 | Body.Promise = global.Promise;
|
25285 |
|
25286 |
|
25287 |
|
25288 |
|
25289 |
|
25290 |
|
25291 |
|
25292 | const invalidTokenRegex = /[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/;
|
25293 | const invalidHeaderCharRegex = /[^\t\x20-\x7e\x80-\xff]/;
|
25294 |
|
25295 | function validateName(name) {
|
25296 | name = `${name}`;
|
25297 | if (invalidTokenRegex.test(name)) {
|
25298 | throw new TypeError(`${name} is not a legal HTTP header name`);
|
25299 | }
|
25300 | }
|
25301 |
|
25302 | function validateValue(value) {
|
25303 | value = `${value}`;
|
25304 | if (invalidHeaderCharRegex.test(value)) {
|
25305 | throw new TypeError(`${value} is not a legal HTTP header value`);
|
25306 | }
|
25307 | }
|
25308 |
|
25309 |
|
25310 |
|
25311 |
|
25312 |
|
25313 |
|
25314 |
|
25315 |
|
25316 |
|
25317 | function find(map, name) {
|
25318 | name = name.toLowerCase();
|
25319 | for (const key in map) {
|
25320 | if (key.toLowerCase() === name) {
|
25321 | return key;
|
25322 | }
|
25323 | }
|
25324 | return undefined;
|
25325 | }
|
25326 |
|
25327 | const MAP = Symbol('map');
|
25328 | class Headers {
|
25329 | |
25330 |
|
25331 |
|
25332 |
|
25333 |
|
25334 |
|
25335 | constructor() {
|
25336 | let init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
|
25337 |
|
25338 | this[MAP] = Object.create(null);
|
25339 |
|
25340 | if (init instanceof Headers) {
|
25341 | const rawHeaders = init.raw();
|
25342 | const headerNames = Object.keys(rawHeaders);
|
25343 |
|
25344 | for (const headerName of headerNames) {
|
25345 | for (const value of rawHeaders[headerName]) {
|
25346 | this.append(headerName, value);
|
25347 | }
|
25348 | }
|
25349 |
|
25350 | return;
|
25351 | }
|
25352 |
|
25353 |
|
25354 |
|
25355 | if (init == null) ; else if (typeof init === 'object') {
|
25356 | const method = init[Symbol.iterator];
|
25357 | if (method != null) {
|
25358 | if (typeof method !== 'function') {
|
25359 | throw new TypeError('Header pairs must be iterable');
|
25360 | }
|
25361 |
|
25362 |
|
25363 |
|
25364 | const pairs = [];
|
25365 | for (const pair of init) {
|
25366 | if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') {
|
25367 | throw new TypeError('Each header pair must be iterable');
|
25368 | }
|
25369 | pairs.push(Array.from(pair));
|
25370 | }
|
25371 |
|
25372 | for (const pair of pairs) {
|
25373 | if (pair.length !== 2) {
|
25374 | throw new TypeError('Each header pair must be a name/value tuple');
|
25375 | }
|
25376 | this.append(pair[0], pair[1]);
|
25377 | }
|
25378 | } else {
|
25379 |
|
25380 | for (const key of Object.keys(init)) {
|
25381 | const value = init[key];
|
25382 | this.append(key, value);
|
25383 | }
|
25384 | }
|
25385 | } else {
|
25386 | throw new TypeError('Provided initializer must be an object');
|
25387 | }
|
25388 | }
|
25389 |
|
25390 | |
25391 |
|
25392 |
|
25393 |
|
25394 |
|
25395 |
|
25396 | get(name) {
|
25397 | name = `${name}`;
|
25398 | validateName(name);
|
25399 | const key = find(this[MAP], name);
|
25400 | if (key === undefined) {
|
25401 | return null;
|
25402 | }
|
25403 |
|
25404 | return this[MAP][key].join(', ');
|
25405 | }
|
25406 |
|
25407 | |
25408 |
|
25409 |
|
25410 |
|
25411 |
|
25412 |
|
25413 |
|
25414 | forEach(callback) {
|
25415 | let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
|
25416 |
|
25417 | let pairs = getHeaders(this);
|
25418 | let i = 0;
|
25419 | while (i < pairs.length) {
|
25420 | var _pairs$i = pairs[i];
|
25421 | const name = _pairs$i[0],
|
25422 | value = _pairs$i[1];
|
25423 |
|
25424 | callback.call(thisArg, value, name, this);
|
25425 | pairs = getHeaders(this);
|
25426 | i++;
|
25427 | }
|
25428 | }
|
25429 |
|
25430 | |
25431 |
|
25432 |
|
25433 |
|
25434 |
|
25435 |
|
25436 |
|
25437 | set(name, value) {
|
25438 | name = `${name}`;
|
25439 | value = `${value}`;
|
25440 | validateName(name);
|
25441 | validateValue(value);
|
25442 | const key = find(this[MAP], name);
|
25443 | this[MAP][key !== undefined ? key : name] = [value];
|
25444 | }
|
25445 |
|
25446 | |
25447 |
|
25448 |
|
25449 |
|
25450 |
|
25451 |
|
25452 |
|
25453 | append(name, value) {
|
25454 | name = `${name}`;
|
25455 | value = `${value}`;
|
25456 | validateName(name);
|
25457 | validateValue(value);
|
25458 | const key = find(this[MAP], name);
|
25459 | if (key !== undefined) {
|
25460 | this[MAP][key].push(value);
|
25461 | } else {
|
25462 | this[MAP][name] = [value];
|
25463 | }
|
25464 | }
|
25465 |
|
25466 | |
25467 |
|
25468 |
|
25469 |
|
25470 |
|
25471 |
|
25472 | has(name) {
|
25473 | name = `${name}`;
|
25474 | validateName(name);
|
25475 | return find(this[MAP], name) !== undefined;
|
25476 | }
|
25477 |
|
25478 | |
25479 |
|
25480 |
|
25481 |
|
25482 |
|
25483 |
|
25484 | delete(name) {
|
25485 | name = `${name}`;
|
25486 | validateName(name);
|
25487 | const key = find(this[MAP], name);
|
25488 | if (key !== undefined) {
|
25489 | delete this[MAP][key];
|
25490 | }
|
25491 | }
|
25492 |
|
25493 | |
25494 |
|
25495 |
|
25496 |
|
25497 |
|
25498 | raw() {
|
25499 | return this[MAP];
|
25500 | }
|
25501 |
|
25502 | |
25503 |
|
25504 |
|
25505 |
|
25506 |
|
25507 | keys() {
|
25508 | return createHeadersIterator(this, 'key');
|
25509 | }
|
25510 |
|
25511 | |
25512 |
|
25513 |
|
25514 |
|
25515 |
|
25516 | values() {
|
25517 | return createHeadersIterator(this, 'value');
|
25518 | }
|
25519 |
|
25520 | |
25521 |
|
25522 |
|
25523 |
|
25524 |
|
25525 |
|
25526 |
|
25527 | [Symbol.iterator]() {
|
25528 | return createHeadersIterator(this, 'key+value');
|
25529 | }
|
25530 | }
|
25531 | Headers.prototype.entries = Headers.prototype[Symbol.iterator];
|
25532 |
|
25533 | Object.defineProperty(Headers.prototype, Symbol.toStringTag, {
|
25534 | value: 'Headers',
|
25535 | writable: false,
|
25536 | enumerable: false,
|
25537 | configurable: true
|
25538 | });
|
25539 |
|
25540 | Object.defineProperties(Headers.prototype, {
|
25541 | get: { enumerable: true },
|
25542 | forEach: { enumerable: true },
|
25543 | set: { enumerable: true },
|
25544 | append: { enumerable: true },
|
25545 | has: { enumerable: true },
|
25546 | delete: { enumerable: true },
|
25547 | keys: { enumerable: true },
|
25548 | values: { enumerable: true },
|
25549 | entries: { enumerable: true }
|
25550 | });
|
25551 |
|
25552 | function getHeaders(headers) {
|
25553 | let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value';
|
25554 |
|
25555 | const keys = Object.keys(headers[MAP]).sort();
|
25556 | return keys.map(kind === 'key' ? function (k) {
|
25557 | return k.toLowerCase();
|
25558 | } : kind === 'value' ? function (k) {
|
25559 | return headers[MAP][k].join(', ');
|
25560 | } : function (k) {
|
25561 | return [k.toLowerCase(), headers[MAP][k].join(', ')];
|
25562 | });
|
25563 | }
|
25564 |
|
25565 | const INTERNAL = Symbol('internal');
|
25566 |
|
25567 | function createHeadersIterator(target, kind) {
|
25568 | const iterator = Object.create(HeadersIteratorPrototype);
|
25569 | iterator[INTERNAL] = {
|
25570 | target,
|
25571 | kind,
|
25572 | index: 0
|
25573 | };
|
25574 | return iterator;
|
25575 | }
|
25576 |
|
25577 | const HeadersIteratorPrototype = Object.setPrototypeOf({
|
25578 | next() {
|
25579 |
|
25580 | if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) {
|
25581 | throw new TypeError('Value of `this` is not a HeadersIterator');
|
25582 | }
|
25583 |
|
25584 | var _INTERNAL = this[INTERNAL];
|
25585 | const target = _INTERNAL.target,
|
25586 | kind = _INTERNAL.kind,
|
25587 | index = _INTERNAL.index;
|
25588 |
|
25589 | const values = getHeaders(target, kind);
|
25590 | const len = values.length;
|
25591 | if (index >= len) {
|
25592 | return {
|
25593 | value: undefined,
|
25594 | done: true
|
25595 | };
|
25596 | }
|
25597 |
|
25598 | this[INTERNAL].index = index + 1;
|
25599 |
|
25600 | return {
|
25601 | value: values[index],
|
25602 | done: false
|
25603 | };
|
25604 | }
|
25605 | }, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));
|
25606 |
|
25607 | Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, {
|
25608 | value: 'HeadersIterator',
|
25609 | writable: false,
|
25610 | enumerable: false,
|
25611 | configurable: true
|
25612 | });
|
25613 |
|
25614 |
|
25615 |
|
25616 |
|
25617 |
|
25618 |
|
25619 |
|
25620 | function exportNodeCompatibleHeaders(headers) {
|
25621 | const obj = Object.assign({ __proto__: null }, headers[MAP]);
|
25622 |
|
25623 |
|
25624 |
|
25625 | const hostHeaderKey = find(headers[MAP], 'Host');
|
25626 | if (hostHeaderKey !== undefined) {
|
25627 | obj[hostHeaderKey] = obj[hostHeaderKey][0];
|
25628 | }
|
25629 |
|
25630 | return obj;
|
25631 | }
|
25632 |
|
25633 |
|
25634 |
|
25635 |
|
25636 |
|
25637 |
|
25638 |
|
25639 |
|
25640 | function createHeadersLenient(obj) {
|
25641 | const headers = new Headers();
|
25642 | for (const name of Object.keys(obj)) {
|
25643 | if (invalidTokenRegex.test(name)) {
|
25644 | continue;
|
25645 | }
|
25646 | if (Array.isArray(obj[name])) {
|
25647 | for (const val of obj[name]) {
|
25648 | if (invalidHeaderCharRegex.test(val)) {
|
25649 | continue;
|
25650 | }
|
25651 | if (headers[MAP][name] === undefined) {
|
25652 | headers[MAP][name] = [val];
|
25653 | } else {
|
25654 | headers[MAP][name].push(val);
|
25655 | }
|
25656 | }
|
25657 | } else if (!invalidHeaderCharRegex.test(obj[name])) {
|
25658 | headers[MAP][name] = [obj[name]];
|
25659 | }
|
25660 | }
|
25661 | return headers;
|
25662 | }
|
25663 |
|
25664 | const INTERNALS$1 = Symbol('Response internals');
|
25665 |
|
25666 |
|
25667 |
|
25668 |
|
25669 |
|
25670 |
|
25671 |
|
25672 |
|
25673 | class Response {
|
25674 | constructor() {
|
25675 | let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
25676 | let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
25677 |
|
25678 | Body.call(this, body, opts);
|
25679 |
|
25680 | const status = opts.status || 200;
|
25681 |
|
25682 | this[INTERNALS$1] = {
|
25683 | url: opts.url,
|
25684 | status,
|
25685 | statusText: opts.statusText || http.STATUS_CODES[status],
|
25686 | headers: new Headers(opts.headers)
|
25687 | };
|
25688 | }
|
25689 |
|
25690 | get url() {
|
25691 | return this[INTERNALS$1].url;
|
25692 | }
|
25693 |
|
25694 | get status() {
|
25695 | return this[INTERNALS$1].status;
|
25696 | }
|
25697 |
|
25698 | |
25699 |
|
25700 |
|
25701 | get ok() {
|
25702 | return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300;
|
25703 | }
|
25704 |
|
25705 | get statusText() {
|
25706 | return this[INTERNALS$1].statusText;
|
25707 | }
|
25708 |
|
25709 | get headers() {
|
25710 | return this[INTERNALS$1].headers;
|
25711 | }
|
25712 |
|
25713 | |
25714 |
|
25715 |
|
25716 |
|
25717 |
|
25718 | clone() {
|
25719 | return new Response(clone(this), {
|
25720 | url: this.url,
|
25721 | status: this.status,
|
25722 | statusText: this.statusText,
|
25723 | headers: this.headers,
|
25724 | ok: this.ok
|
25725 | });
|
25726 | }
|
25727 | }
|
25728 |
|
25729 | Body.mixIn(Response.prototype);
|
25730 |
|
25731 | Object.defineProperties(Response.prototype, {
|
25732 | url: { enumerable: true },
|
25733 | status: { enumerable: true },
|
25734 | ok: { enumerable: true },
|
25735 | statusText: { enumerable: true },
|
25736 | headers: { enumerable: true },
|
25737 | clone: { enumerable: true }
|
25738 | });
|
25739 |
|
25740 | Object.defineProperty(Response.prototype, Symbol.toStringTag, {
|
25741 | value: 'Response',
|
25742 | writable: false,
|
25743 | enumerable: false,
|
25744 | configurable: true
|
25745 | });
|
25746 |
|
25747 | const INTERNALS$2 = Symbol('Request internals');
|
25748 |
|
25749 |
|
25750 |
|
25751 |
|
25752 |
|
25753 |
|
25754 |
|
25755 | function isRequest(input) {
|
25756 | return typeof input === 'object' && typeof input[INTERNALS$2] === 'object';
|
25757 | }
|
25758 |
|
25759 |
|
25760 |
|
25761 |
|
25762 |
|
25763 |
|
25764 |
|
25765 |
|
25766 | class Request {
|
25767 | constructor(input) {
|
25768 | let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
25769 |
|
25770 | let parsedURL;
|
25771 |
|
25772 |
|
25773 | if (!isRequest(input)) {
|
25774 | if (input && input.href) {
|
25775 |
|
25776 |
|
25777 |
|
25778 | parsedURL = url.parse(input.href);
|
25779 | } else {
|
25780 |
|
25781 | parsedURL = url.parse(`${input}`);
|
25782 | }
|
25783 | input = {};
|
25784 | } else {
|
25785 | parsedURL = url.parse(input.url);
|
25786 | }
|
25787 |
|
25788 | let method = init.method || input.method || 'GET';
|
25789 | method = method.toUpperCase();
|
25790 |
|
25791 | if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) {
|
25792 | throw new TypeError('Request with GET/HEAD method cannot have body');
|
25793 | }
|
25794 |
|
25795 | let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null;
|
25796 |
|
25797 | Body.call(this, inputBody, {
|
25798 | timeout: init.timeout || input.timeout || 0,
|
25799 | size: init.size || input.size || 0
|
25800 | });
|
25801 |
|
25802 | const headers = new Headers(init.headers || input.headers || {});
|
25803 |
|
25804 | if (init.body != null) {
|
25805 | const contentType = extractContentType(this);
|
25806 | if (contentType !== null && !headers.has('Content-Type')) {
|
25807 | headers.append('Content-Type', contentType);
|
25808 | }
|
25809 | }
|
25810 |
|
25811 | this[INTERNALS$2] = {
|
25812 | method,
|
25813 | redirect: init.redirect || input.redirect || 'follow',
|
25814 | headers,
|
25815 | parsedURL
|
25816 | };
|
25817 |
|
25818 |
|
25819 | this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20;
|
25820 | this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true;
|
25821 | this.counter = init.counter || input.counter || 0;
|
25822 | this.agent = init.agent || input.agent;
|
25823 | }
|
25824 |
|
25825 | get method() {
|
25826 | return this[INTERNALS$2].method;
|
25827 | }
|
25828 |
|
25829 | get url() {
|
25830 | return url.format(this[INTERNALS$2].parsedURL);
|
25831 | }
|
25832 |
|
25833 | get headers() {
|
25834 | return this[INTERNALS$2].headers;
|
25835 | }
|
25836 |
|
25837 | get redirect() {
|
25838 | return this[INTERNALS$2].redirect;
|
25839 | }
|
25840 |
|
25841 | |
25842 |
|
25843 |
|
25844 |
|
25845 |
|
25846 | clone() {
|
25847 | return new Request(this);
|
25848 | }
|
25849 | }
|
25850 |
|
25851 | Body.mixIn(Request.prototype);
|
25852 |
|
25853 | Object.defineProperty(Request.prototype, Symbol.toStringTag, {
|
25854 | value: 'Request',
|
25855 | writable: false,
|
25856 | enumerable: false,
|
25857 | configurable: true
|
25858 | });
|
25859 |
|
25860 | Object.defineProperties(Request.prototype, {
|
25861 | method: { enumerable: true },
|
25862 | url: { enumerable: true },
|
25863 | headers: { enumerable: true },
|
25864 | redirect: { enumerable: true },
|
25865 | clone: { enumerable: true }
|
25866 | });
|
25867 |
|
25868 |
|
25869 |
|
25870 |
|
25871 |
|
25872 |
|
25873 |
|
25874 | function getNodeRequestOptions(request) {
|
25875 | const parsedURL = request[INTERNALS$2].parsedURL;
|
25876 | const headers = new Headers(request[INTERNALS$2].headers);
|
25877 |
|
25878 |
|
25879 | if (!headers.has('Accept')) {
|
25880 | headers.set('Accept', '*/*');
|
25881 | }
|
25882 |
|
25883 |
|
25884 | if (!parsedURL.protocol || !parsedURL.hostname) {
|
25885 | throw new TypeError('Only absolute URLs are supported');
|
25886 | }
|
25887 |
|
25888 | if (!/^https?:$/.test(parsedURL.protocol)) {
|
25889 | throw new TypeError('Only HTTP(S) protocols are supported');
|
25890 | }
|
25891 |
|
25892 |
|
25893 | let contentLengthValue = null;
|
25894 | if (request.body == null && /^(POST|PUT)$/i.test(request.method)) {
|
25895 | contentLengthValue = '0';
|
25896 | }
|
25897 | if (request.body != null) {
|
25898 | const totalBytes = getTotalBytes(request);
|
25899 | if (typeof totalBytes === 'number') {
|
25900 | contentLengthValue = String(totalBytes);
|
25901 | }
|
25902 | }
|
25903 | if (contentLengthValue) {
|
25904 | headers.set('Content-Length', contentLengthValue);
|
25905 | }
|
25906 |
|
25907 |
|
25908 | if (!headers.has('User-Agent')) {
|
25909 | headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)');
|
25910 | }
|
25911 |
|
25912 |
|
25913 | if (request.compress) {
|
25914 | headers.set('Accept-Encoding', 'gzip,deflate');
|
25915 | }
|
25916 | if (!headers.has('Connection') && !request.agent) {
|
25917 | headers.set('Connection', 'close');
|
25918 | }
|
25919 |
|
25920 |
|
25921 |
|
25922 |
|
25923 | return Object.assign({}, parsedURL, {
|
25924 | method: request.method,
|
25925 | headers: exportNodeCompatibleHeaders(headers),
|
25926 | agent: request.agent
|
25927 | });
|
25928 | }
|
25929 |
|
25930 |
|
25931 |
|
25932 |
|
25933 |
|
25934 |
|
25935 |
|
25936 |
|
25937 | function fetch(url$$1, opts) {
|
25938 |
|
25939 |
|
25940 | if (!fetch.Promise) {
|
25941 | throw new Error('native promise missing, set fetch.Promise to your favorite alternative');
|
25942 | }
|
25943 |
|
25944 | Body.Promise = fetch.Promise;
|
25945 |
|
25946 |
|
25947 | return new fetch.Promise(function (resolve, reject) {
|
25948 |
|
25949 | const request = new Request(url$$1, opts);
|
25950 | const options = getNodeRequestOptions(request);
|
25951 |
|
25952 | const send = (options.protocol === 'https:' ? https : http__default).request;
|
25953 |
|
25954 |
|
25955 | const req = send(options);
|
25956 | let reqTimeout;
|
25957 |
|
25958 | function finalize() {
|
25959 | req.abort();
|
25960 | clearTimeout(reqTimeout);
|
25961 | }
|
25962 |
|
25963 | if (request.timeout) {
|
25964 | req.once('socket', function (socket) {
|
25965 | reqTimeout = setTimeout(function () {
|
25966 | reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout'));
|
25967 | finalize();
|
25968 | }, request.timeout);
|
25969 | });
|
25970 | }
|
25971 |
|
25972 | req.on('error', function (err) {
|
25973 | reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err));
|
25974 | finalize();
|
25975 | });
|
25976 |
|
25977 | req.on('response', function (res) {
|
25978 | clearTimeout(reqTimeout);
|
25979 |
|
25980 | const headers = createHeadersLenient(res.headers);
|
25981 |
|
25982 |
|
25983 | if (fetch.isRedirect(res.statusCode)) {
|
25984 |
|
25985 | const location = headers.get('Location');
|
25986 |
|
25987 |
|
25988 | const locationURL = location === null ? null : url.resolve(request.url, location);
|
25989 |
|
25990 |
|
25991 | switch (request.redirect) {
|
25992 | case 'error':
|
25993 | reject(new FetchError(`redirect mode is set to error: ${request.url}`, 'no-redirect'));
|
25994 | finalize();
|
25995 | return;
|
25996 | case 'manual':
|
25997 |
|
25998 | if (locationURL !== null) {
|
25999 | headers.set('Location', locationURL);
|
26000 | }
|
26001 | break;
|
26002 | case 'follow':
|
26003 |
|
26004 | if (locationURL === null) {
|
26005 | break;
|
26006 | }
|
26007 |
|
26008 |
|
26009 | if (request.counter >= request.follow) {
|
26010 | reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect'));
|
26011 | finalize();
|
26012 | return;
|
26013 | }
|
26014 |
|
26015 |
|
26016 |
|
26017 | const requestOpts = {
|
26018 | headers: new Headers(request.headers),
|
26019 | follow: request.follow,
|
26020 | counter: request.counter + 1,
|
26021 | agent: request.agent,
|
26022 | compress: request.compress,
|
26023 | method: request.method,
|
26024 | body: request.body
|
26025 | };
|
26026 |
|
26027 |
|
26028 | if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) {
|
26029 | reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect'));
|
26030 | finalize();
|
26031 | return;
|
26032 | }
|
26033 |
|
26034 |
|
26035 | if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') {
|
26036 | requestOpts.method = 'GET';
|
26037 | requestOpts.body = undefined;
|
26038 | requestOpts.headers.delete('content-length');
|
26039 | }
|
26040 |
|
26041 |
|
26042 | resolve(fetch(new Request(locationURL, requestOpts)));
|
26043 | finalize();
|
26044 | return;
|
26045 | }
|
26046 | }
|
26047 |
|
26048 |
|
26049 | let body = res.pipe(new Stream.PassThrough());
|
26050 | const response_options = {
|
26051 | url: request.url,
|
26052 | status: res.statusCode,
|
26053 | statusText: res.statusMessage,
|
26054 | headers: headers,
|
26055 | size: request.size,
|
26056 | timeout: request.timeout
|
26057 | };
|
26058 |
|
26059 |
|
26060 | const codings = headers.get('Content-Encoding');
|
26061 |
|
26062 |
|
26063 |
|
26064 |
|
26065 |
|
26066 |
|
26067 |
|
26068 |
|
26069 |
|
26070 | if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) {
|
26071 | resolve(new Response(body, response_options));
|
26072 | return;
|
26073 | }
|
26074 |
|
26075 |
|
26076 |
|
26077 |
|
26078 |
|
26079 |
|
26080 | const zlibOptions = {
|
26081 | flush: zlib.Z_SYNC_FLUSH,
|
26082 | finishFlush: zlib.Z_SYNC_FLUSH
|
26083 | };
|
26084 |
|
26085 |
|
26086 | if (codings == 'gzip' || codings == 'x-gzip') {
|
26087 | body = body.pipe(zlib.createGunzip(zlibOptions));
|
26088 | resolve(new Response(body, response_options));
|
26089 | return;
|
26090 | }
|
26091 |
|
26092 |
|
26093 | if (codings == 'deflate' || codings == 'x-deflate') {
|
26094 |
|
26095 |
|
26096 | const raw = res.pipe(new Stream.PassThrough());
|
26097 | raw.once('data', function (chunk) {
|
26098 |
|
26099 | if ((chunk[0] & 0x0F) === 0x08) {
|
26100 | body = body.pipe(zlib.createInflate());
|
26101 | } else {
|
26102 | body = body.pipe(zlib.createInflateRaw());
|
26103 | }
|
26104 | resolve(new Response(body, response_options));
|
26105 | });
|
26106 | return;
|
26107 | }
|
26108 |
|
26109 |
|
26110 | resolve(new Response(body, response_options));
|
26111 | });
|
26112 |
|
26113 | writeToStream(req, request);
|
26114 | });
|
26115 | }
|
26116 |
|
26117 |
|
26118 |
|
26119 |
|
26120 |
|
26121 |
|
26122 | fetch.isRedirect = function (code) {
|
26123 | return code === 301 || code === 302 || code === 303 || code === 307 || code === 308;
|
26124 | };
|
26125 |
|
26126 |
|
26127 | fetch.Promise = global.Promise;
|
26128 |
|
26129 | module.exports = exports = fetch;
|
26130 | Object.defineProperty(exports, "__esModule", { value: true });
|
26131 | exports.default = exports;
|
26132 | exports.Headers = Headers;
|
26133 | exports.Request = Request;
|
26134 | exports.Response = Response;
|
26135 | exports.FetchError = FetchError;
|
26136 |
|
26137 |
|
26138 | }),
|
26139 | ,
|
26140 | ,
|
26141 |
|
26142 | (function(__unusedmodule, exports, __webpack_require__) {
|
26143 |
|
26144 | var fs = __webpack_require__(747);
|
26145 | var Transform = __webpack_require__(413).Transform;
|
26146 | var PassThrough = __webpack_require__(413).PassThrough;
|
26147 | var zlib = __webpack_require__(761);
|
26148 | var util = __webpack_require__(669);
|
26149 | var EventEmitter = __webpack_require__(614).EventEmitter;
|
26150 | var crc32 = __webpack_require__(802);
|
26151 |
|
26152 | exports.ZipFile = ZipFile;
|
26153 | exports.dateToDosDateTime = dateToDosDateTime;
|
26154 |
|
26155 | util.inherits(ZipFile, EventEmitter);
|
26156 | function ZipFile() {
|
26157 | this.outputStream = new PassThrough();
|
26158 | this.entries = [];
|
26159 | this.outputStreamCursor = 0;
|
26160 | this.ended = false;
|
26161 | this.allDone = false;
|
26162 | this.forceZip64Eocd = false;
|
26163 | }
|
26164 |
|
26165 | ZipFile.prototype.addFile = function(realPath, metadataPath, options) {
|
26166 | var self = this;
|
26167 | metadataPath = validateMetadataPath(metadataPath, false);
|
26168 | if (options == null) options = {};
|
26169 |
|
26170 | var entry = new Entry(metadataPath, false, options);
|
26171 | self.entries.push(entry);
|
26172 | fs.stat(realPath, function(err, stats) {
|
26173 | if (err) return self.emit("error", err);
|
26174 | if (!stats.isFile()) return self.emit("error", new Error("not a file: " + realPath));
|
26175 | entry.uncompressedSize = stats.size;
|
26176 | if (options.mtime == null) entry.setLastModDate(stats.mtime);
|
26177 | if (options.mode == null) entry.setFileAttributesMode(stats.mode);
|
26178 | entry.setFileDataPumpFunction(function() {
|
26179 | var readStream = fs.createReadStream(realPath);
|
26180 | entry.state = Entry.FILE_DATA_IN_PROGRESS;
|
26181 | readStream.on("error", function(err) {
|
26182 | self.emit("error", err);
|
26183 | });
|
26184 | pumpFileDataReadStream(self, entry, readStream);
|
26185 | });
|
26186 | pumpEntries(self);
|
26187 | });
|
26188 | };
|
26189 |
|
26190 | ZipFile.prototype.addReadStream = function(readStream, metadataPath, options) {
|
26191 | var self = this;
|
26192 | metadataPath = validateMetadataPath(metadataPath, false);
|
26193 | if (options == null) options = {};
|
26194 | var entry = new Entry(metadataPath, false, options);
|
26195 | self.entries.push(entry);
|
26196 | entry.setFileDataPumpFunction(function() {
|
26197 | entry.state = Entry.FILE_DATA_IN_PROGRESS;
|
26198 | pumpFileDataReadStream(self, entry, readStream);
|
26199 | });
|
26200 | pumpEntries(self);
|
26201 | };
|
26202 |
|
26203 | ZipFile.prototype.addBuffer = function(buffer, metadataPath, options) {
|
26204 | var self = this;
|
26205 | metadataPath = validateMetadataPath(metadataPath, false);
|
26206 | if (buffer.length > 0x3fffffff) throw new Error("buffer too large: " + buffer.length + " > " + 0x3fffffff);
|
26207 | if (options == null) options = {};
|
26208 | if (options.size != null) throw new Error("options.size not allowed");
|
26209 | var entry = new Entry(metadataPath, false, options);
|
26210 | entry.uncompressedSize = buffer.length;
|
26211 | entry.crc32 = crc32.unsigned(buffer);
|
26212 | entry.crcAndFileSizeKnown = true;
|
26213 | self.entries.push(entry);
|
26214 | if (!entry.compress) {
|
26215 | setCompressedBuffer(buffer);
|
26216 | } else {
|
26217 | zlib.deflateRaw(buffer, function(err, compressedBuffer) {
|
26218 | setCompressedBuffer(compressedBuffer);
|
26219 | });
|
26220 | }
|
26221 | function setCompressedBuffer(compressedBuffer) {
|
26222 | entry.compressedSize = compressedBuffer.length;
|
26223 | entry.setFileDataPumpFunction(function() {
|
26224 | writeToOutputStream(self, compressedBuffer);
|
26225 | writeToOutputStream(self, entry.getDataDescriptor());
|
26226 | entry.state = Entry.FILE_DATA_DONE;
|
26227 |
|
26228 |
|
26229 |
|
26230 | setImmediate(function() {
|
26231 | pumpEntries(self);
|
26232 | });
|
26233 | });
|
26234 | pumpEntries(self);
|
26235 | }
|
26236 | };
|
26237 |
|
26238 | ZipFile.prototype.addEmptyDirectory = function(metadataPath, options) {
|
26239 | var self = this;
|
26240 | metadataPath = validateMetadataPath(metadataPath, true);
|
26241 | if (options == null) options = {};
|
26242 | if (options.size != null) throw new Error("options.size not allowed");
|
26243 | if (options.compress != null) throw new Error("options.compress not allowed");
|
26244 | var entry = new Entry(metadataPath, true, options);
|
26245 | self.entries.push(entry);
|
26246 | entry.setFileDataPumpFunction(function() {
|
26247 | writeToOutputStream(self, entry.getDataDescriptor());
|
26248 | entry.state = Entry.FILE_DATA_DONE;
|
26249 | pumpEntries(self);
|
26250 | });
|
26251 | pumpEntries(self);
|
26252 | };
|
26253 |
|
26254 | ZipFile.prototype.end = function(options, finalSizeCallback) {
|
26255 | if (typeof options === "function") {
|
26256 | finalSizeCallback = options;
|
26257 | options = null;
|
26258 | }
|
26259 | if (options == null) options = {};
|
26260 | if (this.ended) return;
|
26261 | this.ended = true;
|
26262 | this.finalSizeCallback = finalSizeCallback;
|
26263 | this.forceZip64Eocd = !!options.forceZip64Format;
|
26264 | pumpEntries(this);
|
26265 | };
|
26266 |
|
26267 | function writeToOutputStream(self, buffer) {
|
26268 | self.outputStream.write(buffer);
|
26269 | self.outputStreamCursor += buffer.length;
|
26270 | }
|
26271 |
|
26272 | function pumpFileDataReadStream(self, entry, readStream) {
|
26273 | var crc32Watcher = new Crc32Watcher();
|
26274 | var uncompressedSizeCounter = new ByteCounter();
|
26275 | var compressor = entry.compress ? new zlib.DeflateRaw() : new PassThrough();
|
26276 | var compressedSizeCounter = new ByteCounter();
|
26277 | readStream.pipe(crc32Watcher)
|
26278 | .pipe(uncompressedSizeCounter)
|
26279 | .pipe(compressor)
|
26280 | .pipe(compressedSizeCounter)
|
26281 | .pipe(self.outputStream, {end: false});
|
26282 | compressedSizeCounter.on("end", function() {
|
26283 | entry.crc32 = crc32Watcher.crc32;
|
26284 | if (entry.uncompressedSize == null) {
|
26285 | entry.uncompressedSize = uncompressedSizeCounter.byteCount;
|
26286 | } else {
|
26287 | if (entry.uncompressedSize !== uncompressedSizeCounter.byteCount) return self.emit("error", new Error("file data stream has unexpected number of bytes"));
|
26288 | }
|
26289 | entry.compressedSize = compressedSizeCounter.byteCount;
|
26290 | self.outputStreamCursor += entry.compressedSize;
|
26291 | writeToOutputStream(self, entry.getDataDescriptor());
|
26292 | entry.state = Entry.FILE_DATA_DONE;
|
26293 | pumpEntries(self);
|
26294 | });
|
26295 | }
|
26296 |
|
26297 | function pumpEntries(self) {
|
26298 | if (self.allDone) return;
|
26299 |
|
26300 | if (self.ended && self.finalSizeCallback != null) {
|
26301 | var finalSize = calculateFinalSize(self);
|
26302 | if (finalSize != null) {
|
26303 |
|
26304 | self.finalSizeCallback(finalSize);
|
26305 | self.finalSizeCallback = null;
|
26306 | }
|
26307 | }
|
26308 |
|
26309 |
|
26310 | var entry = getFirstNotDoneEntry();
|
26311 | function getFirstNotDoneEntry() {
|
26312 | for (var i = 0; i < self.entries.length; i++) {
|
26313 | var entry = self.entries[i];
|
26314 | if (entry.state < Entry.FILE_DATA_DONE) return entry;
|
26315 | }
|
26316 | return null;
|
26317 | }
|
26318 | if (entry != null) {
|
26319 |
|
26320 | if (entry.state < Entry.READY_TO_PUMP_FILE_DATA) return;
|
26321 | if (entry.state === Entry.FILE_DATA_IN_PROGRESS) return;
|
26322 |
|
26323 | entry.relativeOffsetOfLocalHeader = self.outputStreamCursor;
|
26324 | var localFileHeader = entry.getLocalFileHeader();
|
26325 | writeToOutputStream(self, localFileHeader);
|
26326 | entry.doFileDataPump();
|
26327 | } else {
|
26328 |
|
26329 | if (self.ended) {
|
26330 |
|
26331 | self.offsetOfStartOfCentralDirectory = self.outputStreamCursor;
|
26332 | self.entries.forEach(function(entry) {
|
26333 | var centralDirectoryRecord = entry.getCentralDirectoryRecord();
|
26334 | writeToOutputStream(self, centralDirectoryRecord);
|
26335 | });
|
26336 | writeToOutputStream(self, getEndOfCentralDirectoryRecord(self));
|
26337 | self.outputStream.end();
|
26338 | self.allDone = true;
|
26339 | }
|
26340 | }
|
26341 | }
|
26342 |
|
26343 | function calculateFinalSize(self) {
|
26344 | var pretendOutputCursor = 0;
|
26345 | var centralDirectorySize = 0;
|
26346 | for (var i = 0; i < self.entries.length; i++) {
|
26347 | var entry = self.entries[i];
|
26348 |
|
26349 | if (entry.compress) return -1;
|
26350 | if (entry.state >= Entry.READY_TO_PUMP_FILE_DATA) {
|
26351 |
|
26352 | if (entry.uncompressedSize == null) return -1;
|
26353 | } else {
|
26354 |
|
26355 | if (entry.uncompressedSize == null) return null;
|
26356 | }
|
26357 |
|
26358 | entry.relativeOffsetOfLocalHeader = pretendOutputCursor;
|
26359 | var useZip64Format = entry.useZip64Format();
|
26360 |
|
26361 | pretendOutputCursor += LOCAL_FILE_HEADER_FIXED_SIZE + entry.utf8FileName.length;
|
26362 | pretendOutputCursor += entry.uncompressedSize;
|
26363 | if (!entry.crcAndFileSizeKnown) {
|
26364 |
|
26365 | if (useZip64Format) {
|
26366 | pretendOutputCursor += ZIP64_DATA_DESCRIPTOR_SIZE;
|
26367 | } else {
|
26368 | pretendOutputCursor += DATA_DESCRIPTOR_SIZE;
|
26369 | }
|
26370 | }
|
26371 |
|
26372 | centralDirectorySize += CENTRAL_DIRECTORY_RECORD_FIXED_SIZE + entry.utf8FileName.length;
|
26373 | if (useZip64Format) {
|
26374 | centralDirectorySize += ZIP64_EXTENDED_INFORMATION_EXTRA_FIELD_SIZE;
|
26375 | }
|
26376 | }
|
26377 |
|
26378 | var endOfCentralDirectorySize = 0;
|
26379 | if (self.forceZip64Eocd ||
|
26380 | self.entries.length >= 0xffff ||
|
26381 | centralDirectorySize >= 0xffff ||
|
26382 | pretendOutputCursor >= 0xffffffff) {
|
26383 |
|
26384 | endOfCentralDirectorySize += ZIP64_END_OF_CENTRAL_DIRECTORY_RECORD_SIZE + ZIP64_END_OF_CENTRAL_DIRECTORY_LOCATOR_SIZE;
|
26385 | }
|
26386 | endOfCentralDirectorySize += END_OF_CENTRAL_DIRECTORY_RECORD_SIZE;
|
26387 | return pretendOutputCursor + centralDirectorySize + endOfCentralDirectorySize;
|
26388 | }
|
26389 |
|
26390 | var ZIP64_END_OF_CENTRAL_DIRECTORY_RECORD_SIZE = 56;
|
26391 | var ZIP64_END_OF_CENTRAL_DIRECTORY_LOCATOR_SIZE = 20;
|
26392 | var END_OF_CENTRAL_DIRECTORY_RECORD_SIZE = 22;
|
26393 | function getEndOfCentralDirectoryRecord(self, actuallyJustTellMeHowLongItWouldBe) {
|
26394 | var needZip64Format = false;
|
26395 | var normalEntriesLength = self.entries.length;
|
26396 | if (self.forceZip64Eocd || self.entries.length >= 0xffff) {
|
26397 | normalEntriesLength = 0xffff;
|
26398 | needZip64Format = true;
|
26399 | }
|
26400 | var sizeOfCentralDirectory = self.outputStreamCursor - self.offsetOfStartOfCentralDirectory;
|
26401 | var normalSizeOfCentralDirectory = sizeOfCentralDirectory;
|
26402 | if (self.forceZip64Eocd || sizeOfCentralDirectory >= 0xffffffff) {
|
26403 | normalSizeOfCentralDirectory = 0xffffffff;
|
26404 | needZip64Format = true;
|
26405 | }
|
26406 | var normalOffsetOfStartOfCentralDirectory = self.offsetOfStartOfCentralDirectory;
|
26407 | if (self.forceZip64Eocd || self.offsetOfStartOfCentralDirectory >= 0xffffffff) {
|
26408 | normalOffsetOfStartOfCentralDirectory = 0xffffffff;
|
26409 | needZip64Format = true;
|
26410 | }
|
26411 | if (actuallyJustTellMeHowLongItWouldBe) {
|
26412 | if (needZip64Format) {
|
26413 | return (
|
26414 | ZIP64_END_OF_CENTRAL_DIRECTORY_RECORD_SIZE +
|
26415 | ZIP64_END_OF_CENTRAL_DIRECTORY_LOCATOR_SIZE +
|
26416 | END_OF_CENTRAL_DIRECTORY_RECORD_SIZE
|
26417 | );
|
26418 | } else {
|
26419 | return END_OF_CENTRAL_DIRECTORY_RECORD_SIZE;
|
26420 | }
|
26421 | }
|
26422 |
|
26423 | var eocdrBuffer = new Buffer(END_OF_CENTRAL_DIRECTORY_RECORD_SIZE);
|
26424 |
|
26425 | eocdrBuffer.writeUInt32LE(0x06054b50, 0);
|
26426 |
|
26427 | eocdrBuffer.writeUInt16LE(0, 4);
|
26428 |
|
26429 | eocdrBuffer.writeUInt16LE(0, 6);
|
26430 |
|
26431 | eocdrBuffer.writeUInt16LE(normalEntriesLength, 8);
|
26432 |
|
26433 | eocdrBuffer.writeUInt16LE(normalEntriesLength, 10);
|
26434 |
|
26435 | eocdrBuffer.writeUInt32LE(normalSizeOfCentralDirectory, 12);
|
26436 |
|
26437 | eocdrBuffer.writeUInt32LE(normalOffsetOfStartOfCentralDirectory, 16);
|
26438 |
|
26439 | eocdrBuffer.writeUInt16LE(0, 20);
|
26440 |
|
26441 |
|
26442 |
|
26443 | if (!needZip64Format) return eocdrBuffer;
|
26444 |
|
26445 |
|
26446 |
|
26447 | var zip64EocdrBuffer = new Buffer(ZIP64_END_OF_CENTRAL_DIRECTORY_RECORD_SIZE);
|
26448 |
|
26449 | zip64EocdrBuffer.writeUInt32LE(0x06064b50, 0);
|
26450 |
|
26451 | writeUInt64LE(zip64EocdrBuffer, ZIP64_END_OF_CENTRAL_DIRECTORY_RECORD_SIZE - 12, 4);
|
26452 |
|
26453 | zip64EocdrBuffer.writeUInt16LE(VERSION_MADE_BY, 12);
|
26454 |
|
26455 | zip64EocdrBuffer.writeUInt16LE(VERSION_NEEDED_TO_EXTRACT_ZIP64, 14);
|
26456 |
|
26457 | zip64EocdrBuffer.writeUInt32LE(0, 16);
|
26458 |
|
26459 | zip64EocdrBuffer.writeUInt32LE(0, 20);
|
26460 |
|
26461 | writeUInt64LE(zip64EocdrBuffer, self.entries.length, 24);
|
26462 |
|
26463 | writeUInt64LE(zip64EocdrBuffer, self.entries.length, 32);
|
26464 |
|
26465 | writeUInt64LE(zip64EocdrBuffer, sizeOfCentralDirectory, 40);
|
26466 |
|
26467 | writeUInt64LE(zip64EocdrBuffer, self.offsetOfStartOfCentralDirectory, 48);
|
26468 |
|
26469 |
|
26470 |
|
26471 |
|
26472 |
|
26473 | var zip64EocdlBuffer = new Buffer(ZIP64_END_OF_CENTRAL_DIRECTORY_LOCATOR_SIZE);
|
26474 |
|
26475 | zip64EocdlBuffer.writeUInt32LE(0x07064b50, 0);
|
26476 |
|
26477 | zip64EocdlBuffer.writeUInt32LE(0, 4);
|
26478 |
|
26479 | writeUInt64LE(zip64EocdlBuffer, self.outputStreamCursor, 8);
|
26480 |
|
26481 | zip64EocdlBuffer.writeUInt32LE(1, 16);
|
26482 |
|
26483 |
|
26484 | return Buffer.concat([
|
26485 | zip64EocdrBuffer,
|
26486 | zip64EocdlBuffer,
|
26487 | eocdrBuffer,
|
26488 | ]);
|
26489 | }
|
26490 |
|
26491 | function validateMetadataPath(metadataPath, isDirectory) {
|
26492 | if (metadataPath === "") throw new Error("empty metadataPath");
|
26493 | metadataPath = metadataPath.replace(/\\/g, "/");
|
26494 | if (/^[a-zA-Z]:/.test(metadataPath) || /^\//.test(metadataPath)) throw new Error("absolute path: " + metadataPath);
|
26495 | if (metadataPath.split("/").indexOf("..") !== -1) throw new Error("invalid relative path: " + metadataPath);
|
26496 | var looksLikeDirectory = /\/$/.test(metadataPath);
|
26497 | if (isDirectory) {
|
26498 |
|
26499 | if (!looksLikeDirectory) metadataPath += "/";
|
26500 | } else {
|
26501 | if (looksLikeDirectory) throw new Error("file path cannot end with '/': " + metadataPath);
|
26502 | }
|
26503 | return metadataPath;
|
26504 | }
|
26505 |
|
26506 | var defaultFileMode = parseInt("0100664", 8);
|
26507 | var defaultDirectoryMode = parseInt("040775", 8);
|
26508 |
|
26509 |
|
26510 | function Entry(metadataPath, isDirectory, options) {
|
26511 | this.utf8FileName = new Buffer(metadataPath);
|
26512 | if (this.utf8FileName.length > 0xffff) throw new Error("utf8 file name too long. " + utf8FileName.length + " > " + 0xffff);
|
26513 | this.isDirectory = isDirectory;
|
26514 | this.state = Entry.WAITING_FOR_METADATA;
|
26515 | this.setLastModDate(options.mtime != null ? options.mtime : new Date());
|
26516 | if (options.mode != null) {
|
26517 | this.setFileAttributesMode(options.mode);
|
26518 | } else {
|
26519 | this.setFileAttributesMode(isDirectory ? defaultDirectoryMode : defaultFileMode);
|
26520 | }
|
26521 | if (isDirectory) {
|
26522 | this.crcAndFileSizeKnown = true;
|
26523 | this.crc32 = 0;
|
26524 | this.uncompressedSize = 0;
|
26525 | this.compressedSize = 0;
|
26526 | } else {
|
26527 |
|
26528 | this.crcAndFileSizeKnown = false;
|
26529 | this.crc32 = null;
|
26530 | this.uncompressedSize = null;
|
26531 | this.compressedSize = null;
|
26532 | if (options.size != null) this.uncompressedSize = options.size;
|
26533 | }
|
26534 | if (isDirectory) {
|
26535 | this.compress = false;
|
26536 | } else {
|
26537 | this.compress = true;
|
26538 | if (options.compress != null) this.compress = !!options.compress;
|
26539 | }
|
26540 | this.forceZip64Format = !!options.forceZip64Format;
|
26541 | }
|
26542 | Entry.WAITING_FOR_METADATA = 0;
|
26543 | Entry.READY_TO_PUMP_FILE_DATA = 1;
|
26544 | Entry.FILE_DATA_IN_PROGRESS = 2;
|
26545 | Entry.FILE_DATA_DONE = 3;
|
26546 | Entry.prototype.setLastModDate = function(date) {
|
26547 | var dosDateTime = dateToDosDateTime(date);
|
26548 | this.lastModFileTime = dosDateTime.time;
|
26549 | this.lastModFileDate = dosDateTime.date;
|
26550 | };
|
26551 | Entry.prototype.setFileAttributesMode = function(mode) {
|
26552 | if ((mode & 0xffff) !== mode) throw new Error("invalid mode. expected: 0 <= " + mode + " <= " + 0xffff);
|
26553 |
|
26554 | this.externalFileAttributes = (mode << 16) >>> 0;
|
26555 | };
|
26556 |
|
26557 | Entry.prototype.setFileDataPumpFunction = function(doFileDataPump) {
|
26558 | this.doFileDataPump = doFileDataPump;
|
26559 | this.state = Entry.READY_TO_PUMP_FILE_DATA;
|
26560 | };
|
26561 | Entry.prototype.useZip64Format = function() {
|
26562 | return (
|
26563 | (this.forceZip64Format) ||
|
26564 | (this.uncompressedSize != null && this.uncompressedSize > 0xfffffffe) ||
|
26565 | (this.compressedSize != null && this.compressedSize > 0xfffffffe) ||
|
26566 | (this.relativeOffsetOfLocalHeader != null && this.relativeOffsetOfLocalHeader > 0xfffffffe)
|
26567 | );
|
26568 | }
|
26569 | var LOCAL_FILE_HEADER_FIXED_SIZE = 30;
|
26570 | var VERSION_NEEDED_TO_EXTRACT_UTF8 = 20;
|
26571 | var VERSION_NEEDED_TO_EXTRACT_ZIP64 = 45;
|
26572 |
|
26573 | var VERSION_MADE_BY = (3 << 8) | 63;
|
26574 | var FILE_NAME_IS_UTF8 = 1 << 11;
|
26575 | var UNKNOWN_CRC32_AND_FILE_SIZES = 1 << 3;
|
26576 | Entry.prototype.getLocalFileHeader = function() {
|
26577 | var crc32 = 0;
|
26578 | var compressedSize = 0;
|
26579 | var uncompressedSize = 0;
|
26580 | if (this.crcAndFileSizeKnown) {
|
26581 | crc32 = this.crc32;
|
26582 | compressedSize = this.compressedSize;
|
26583 | uncompressedSize = this.uncompressedSize;
|
26584 | }
|
26585 |
|
26586 | var fixedSizeStuff = new Buffer(LOCAL_FILE_HEADER_FIXED_SIZE);
|
26587 | var generalPurposeBitFlag = FILE_NAME_IS_UTF8;
|
26588 | if (!this.crcAndFileSizeKnown) generalPurposeBitFlag |= UNKNOWN_CRC32_AND_FILE_SIZES;
|
26589 |
|
26590 |
|
26591 | fixedSizeStuff.writeUInt32LE(0x04034b50, 0);
|
26592 |
|
26593 | fixedSizeStuff.writeUInt16LE(VERSION_NEEDED_TO_EXTRACT_UTF8, 4);
|
26594 |
|
26595 | fixedSizeStuff.writeUInt16LE(generalPurposeBitFlag, 6);
|
26596 |
|
26597 | fixedSizeStuff.writeUInt16LE(this.getCompressionMethod(), 8);
|
26598 |
|
26599 | fixedSizeStuff.writeUInt16LE(this.lastModFileTime, 10);
|
26600 |
|
26601 | fixedSizeStuff.writeUInt16LE(this.lastModFileDate, 12);
|
26602 |
|
26603 | fixedSizeStuff.writeUInt32LE(crc32, 14);
|
26604 |
|
26605 | fixedSizeStuff.writeUInt32LE(compressedSize, 18);
|
26606 |
|
26607 | fixedSizeStuff.writeUInt32LE(uncompressedSize, 22);
|
26608 |
|
26609 | fixedSizeStuff.writeUInt16LE(this.utf8FileName.length, 26);
|
26610 |
|
26611 | fixedSizeStuff.writeUInt16LE(0, 28);
|
26612 | return Buffer.concat([
|
26613 | fixedSizeStuff,
|
26614 |
|
26615 | this.utf8FileName,
|
26616 |
|
26617 |
|
26618 | ]);
|
26619 | };
|
26620 | var DATA_DESCRIPTOR_SIZE = 16;
|
26621 | var ZIP64_DATA_DESCRIPTOR_SIZE = 24;
|
26622 | Entry.prototype.getDataDescriptor = function() {
|
26623 | if (this.crcAndFileSizeKnown) {
|
26624 |
|
26625 | return new Buffer(0);
|
26626 | }
|
26627 | if (!this.useZip64Format()) {
|
26628 | var buffer = new Buffer(DATA_DESCRIPTOR_SIZE);
|
26629 |
|
26630 | buffer.writeUInt32LE(0x08074b50, 0);
|
26631 |
|
26632 | buffer.writeUInt32LE(this.crc32, 4);
|
26633 |
|
26634 | buffer.writeUInt32LE(this.compressedSize, 8);
|
26635 |
|
26636 | buffer.writeUInt32LE(this.uncompressedSize, 12);
|
26637 | return buffer;
|
26638 | } else {
|
26639 |
|
26640 | var buffer = new Buffer(ZIP64_DATA_DESCRIPTOR_SIZE);
|
26641 |
|
26642 | buffer.writeUInt32LE(0x08074b50, 0);
|
26643 |
|
26644 | buffer.writeUInt32LE(this.crc32, 4);
|
26645 |
|
26646 | writeUInt64LE(buffer, this.compressedSize, 8);
|
26647 |
|
26648 | writeUInt64LE(buffer, this.uncompressedSize, 16);
|
26649 | return buffer;
|
26650 | }
|
26651 | };
|
26652 | var CENTRAL_DIRECTORY_RECORD_FIXED_SIZE = 46;
|
26653 | var ZIP64_EXTENDED_INFORMATION_EXTRA_FIELD_SIZE = 28;
|
26654 | Entry.prototype.getCentralDirectoryRecord = function() {
|
26655 | var fixedSizeStuff = new Buffer(CENTRAL_DIRECTORY_RECORD_FIXED_SIZE);
|
26656 | var generalPurposeBitFlag = FILE_NAME_IS_UTF8;
|
26657 | if (!this.crcAndFileSizeKnown) generalPurposeBitFlag |= UNKNOWN_CRC32_AND_FILE_SIZES;
|
26658 |
|
26659 | var normalCompressedSize = this.compressedSize;
|
26660 | var normalUncompressedSize = this.uncompressedSize;
|
26661 | var normalRelativeOffsetOfLocalHeader = this.relativeOffsetOfLocalHeader;
|
26662 | var versionNeededToExtract;
|
26663 | var zeiefBuffer;
|
26664 | if (this.useZip64Format()) {
|
26665 | normalCompressedSize = 0xffffffff;
|
26666 | normalUncompressedSize = 0xffffffff;
|
26667 | normalRelativeOffsetOfLocalHeader = 0xffffffff;
|
26668 | versionNeededToExtract = VERSION_NEEDED_TO_EXTRACT_ZIP64;
|
26669 |
|
26670 |
|
26671 | zeiefBuffer = new Buffer(ZIP64_EXTENDED_INFORMATION_EXTRA_FIELD_SIZE);
|
26672 |
|
26673 | zeiefBuffer.writeUInt16LE(0x0001, 0);
|
26674 |
|
26675 | zeiefBuffer.writeUInt16LE(ZIP64_EXTENDED_INFORMATION_EXTRA_FIELD_SIZE - 4, 2);
|
26676 |
|
26677 | writeUInt64LE(zeiefBuffer, this.uncompressedSize, 4);
|
26678 |
|
26679 | writeUInt64LE(zeiefBuffer, this.compressedSize, 12);
|
26680 |
|
26681 | writeUInt64LE(zeiefBuffer, this.relativeOffsetOfLocalHeader, 20);
|
26682 |
|
26683 |
|
26684 | } else {
|
26685 | versionNeededToExtract = VERSION_NEEDED_TO_EXTRACT_UTF8;
|
26686 | zeiefBuffer = new Buffer(0);
|
26687 | }
|
26688 |
|
26689 |
|
26690 | fixedSizeStuff.writeUInt32LE(0x02014b50, 0);
|
26691 |
|
26692 | fixedSizeStuff.writeUInt16LE(VERSION_MADE_BY, 4);
|
26693 |
|
26694 | fixedSizeStuff.writeUInt16LE(versionNeededToExtract, 6);
|
26695 |
|
26696 | fixedSizeStuff.writeUInt16LE(generalPurposeBitFlag, 8);
|
26697 |
|
26698 | fixedSizeStuff.writeUInt16LE(this.getCompressionMethod(), 10);
|
26699 |
|
26700 | fixedSizeStuff.writeUInt16LE(this.lastModFileTime, 12);
|
26701 |
|
26702 | fixedSizeStuff.writeUInt16LE(this.lastModFileDate, 14);
|
26703 |
|
26704 | fixedSizeStuff.writeUInt32LE(this.crc32, 16);
|
26705 |
|
26706 | fixedSizeStuff.writeUInt32LE(normalCompressedSize, 20);
|
26707 |
|
26708 | fixedSizeStuff.writeUInt32LE(normalUncompressedSize, 24);
|
26709 |
|
26710 | fixedSizeStuff.writeUInt16LE(this.utf8FileName.length, 28);
|
26711 |
|
26712 | fixedSizeStuff.writeUInt16LE(zeiefBuffer.length, 30);
|
26713 |
|
26714 | fixedSizeStuff.writeUInt16LE(0, 32);
|
26715 |
|
26716 | fixedSizeStuff.writeUInt16LE(0, 34);
|
26717 |
|
26718 | fixedSizeStuff.writeUInt16LE(0, 36);
|
26719 |
|
26720 | fixedSizeStuff.writeUInt32LE(this.externalFileAttributes, 38);
|
26721 |
|
26722 | fixedSizeStuff.writeUInt32LE(normalRelativeOffsetOfLocalHeader, 42);
|
26723 |
|
26724 | return Buffer.concat([
|
26725 | fixedSizeStuff,
|
26726 |
|
26727 | this.utf8FileName,
|
26728 |
|
26729 | zeiefBuffer,
|
26730 |
|
26731 |
|
26732 | ]);
|
26733 | };
|
26734 | Entry.prototype.getCompressionMethod = function() {
|
26735 | var NO_COMPRESSION = 0;
|
26736 | var DEFLATE_COMPRESSION = 8;
|
26737 | return this.compress ? DEFLATE_COMPRESSION : NO_COMPRESSION;
|
26738 | };
|
26739 |
|
26740 | function dateToDosDateTime(jsDate) {
|
26741 | var date = 0;
|
26742 | date |= jsDate.getDate() & 0x1f;
|
26743 | date |= ((jsDate.getMonth() + 1) & 0xf) << 5;
|
26744 | date |= ((jsDate.getFullYear() - 1980) & 0x7f) << 9;
|
26745 |
|
26746 | var time = 0;
|
26747 | time |= Math.floor(jsDate.getSeconds() / 2);
|
26748 | time |= (jsDate.getMinutes() & 0x3f) << 5;
|
26749 | time |= (jsDate.getHours() & 0x1f) << 11;
|
26750 |
|
26751 | return {date: date, time: time};
|
26752 | }
|
26753 |
|
26754 | function writeUInt64LE(buffer, n, offset) {
|
26755 |
|
26756 | var high = Math.floor(n / 0x100000000);
|
26757 | var low = n % 0x100000000;
|
26758 | buffer.writeUInt32LE(low, offset);
|
26759 | buffer.writeUInt32LE(high, offset + 4);
|
26760 | }
|
26761 |
|
26762 | function defaultCallback(err) {
|
26763 | if (err) throw err;
|
26764 | }
|
26765 |
|
26766 | util.inherits(ByteCounter, Transform);
|
26767 | function ByteCounter(options) {
|
26768 | Transform.call(this, options);
|
26769 | this.byteCount = 0;
|
26770 | }
|
26771 | ByteCounter.prototype._transform = function(chunk, encoding, cb) {
|
26772 | this.byteCount += chunk.length;
|
26773 | cb(null, chunk);
|
26774 | };
|
26775 |
|
26776 | util.inherits(Crc32Watcher, Transform);
|
26777 | function Crc32Watcher(options) {
|
26778 | Transform.call(this, options);
|
26779 | this.crc32 = 0;
|
26780 | }
|
26781 | Crc32Watcher.prototype._transform = function(chunk, encoding, cb) {
|
26782 | this.crc32 = crc32.unsigned(chunk, this.crc32);
|
26783 | cb(null, chunk);
|
26784 | };
|
26785 |
|
26786 |
|
26787 | }),
|
26788 |
|
26789 | (function(__unusedmodule, exports) {
|
26790 |
|
26791 | "use strict";
|
26792 |
|
26793 | Object.defineProperty(exports, "__esModule", { value: true });
|
26794 | exports.NowBuildError = void 0;
|
26795 |
|
26796 |
|
26797 |
|
26798 |
|
26799 |
|
26800 | class NowBuildError extends Error {
|
26801 | constructor({ message, code, link, action }) {
|
26802 | super(message);
|
26803 | this.hideStackTrace = true;
|
26804 | this.code = code;
|
26805 | this.link = link;
|
26806 | this.action = action;
|
26807 | }
|
26808 | }
|
26809 | exports.NowBuildError = NowBuildError;
|
26810 |
|
26811 |
|
26812 | }),
|
26813 | ,
|
26814 |
|
26815 | (function(__unusedmodule, exports) {
|
26816 |
|
26817 | "use strict";
|
26818 |
|
26819 | Object.defineProperty(exports, "__esModule", { value: true });
|
26820 | function rename(files, delegate) {
|
26821 | return Object.keys(files).reduce((newFiles, name) => ({
|
26822 | ...newFiles,
|
26823 | [delegate(name)]: files[name],
|
26824 | }), {});
|
26825 | }
|
26826 | exports.default = rename;
|
26827 |
|
26828 |
|
26829 | }),
|
26830 | ,
|
26831 | ,
|
26832 | ,
|
26833 |
|
26834 | (function(module, __unusedexports, __webpack_require__) {
|
26835 |
|
26836 | "use strict";
|
26837 |
|
26838 | const ansiStyles = __webpack_require__(592);
|
26839 | const {stdout: stdoutColor, stderr: stderrColor} = __webpack_require__(522);
|
26840 | const {
|
26841 | stringReplaceAll,
|
26842 | stringEncaseCRLFWithFirstIndex
|
26843 | } = __webpack_require__(928);
|
26844 |
|
26845 |
|
26846 | const levelMapping = [
|
26847 | 'ansi',
|
26848 | 'ansi',
|
26849 | 'ansi256',
|
26850 | 'ansi16m'
|
26851 | ];
|
26852 |
|
26853 | const styles = Object.create(null);
|
26854 |
|
26855 | const applyOptions = (object, options = {}) => {
|
26856 | if (options.level > 3 || options.level < 0) {
|
26857 | throw new Error('The `level` option should be an integer from 0 to 3');
|
26858 | }
|
26859 |
|
26860 |
|
26861 | const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
26862 | object.level = options.level === undefined ? colorLevel : options.level;
|
26863 | };
|
26864 |
|
26865 | class ChalkClass {
|
26866 | constructor(options) {
|
26867 | return chalkFactory(options);
|
26868 | }
|
26869 | }
|
26870 |
|
26871 | const chalkFactory = options => {
|
26872 | const chalk = {};
|
26873 | applyOptions(chalk, options);
|
26874 |
|
26875 | chalk.template = (...arguments_) => chalkTag(chalk.template, ...arguments_);
|
26876 |
|
26877 | Object.setPrototypeOf(chalk, Chalk.prototype);
|
26878 | Object.setPrototypeOf(chalk.template, chalk);
|
26879 |
|
26880 | chalk.template.constructor = () => {
|
26881 | throw new Error('`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.');
|
26882 | };
|
26883 |
|
26884 | chalk.template.Instance = ChalkClass;
|
26885 |
|
26886 | return chalk.template;
|
26887 | };
|
26888 |
|
26889 | function Chalk(options) {
|
26890 | return chalkFactory(options);
|
26891 | }
|
26892 |
|
26893 | for (const [styleName, style] of Object.entries(ansiStyles)) {
|
26894 | styles[styleName] = {
|
26895 | get() {
|
26896 | const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
|
26897 | Object.defineProperty(this, styleName, {value: builder});
|
26898 | return builder;
|
26899 | }
|
26900 | };
|
26901 | }
|
26902 |
|
26903 | styles.visible = {
|
26904 | get() {
|
26905 | const builder = createBuilder(this, this._styler, true);
|
26906 | Object.defineProperty(this, 'visible', {value: builder});
|
26907 | return builder;
|
26908 | }
|
26909 | };
|
26910 |
|
26911 | const usedModels = ['rgb', 'hex', 'keyword', 'hsl', 'hsv', 'hwb', 'ansi', 'ansi256'];
|
26912 |
|
26913 | for (const model of usedModels) {
|
26914 | styles[model] = {
|
26915 | get() {
|
26916 | const {level} = this;
|
26917 | return function (...arguments_) {
|
26918 | const styler = createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_), ansiStyles.color.close, this._styler);
|
26919 | return createBuilder(this, styler, this._isEmpty);
|
26920 | };
|
26921 | }
|
26922 | };
|
26923 | }
|
26924 |
|
26925 | for (const model of usedModels) {
|
26926 | const bgModel = 'bg' + model[0].toUpperCase() + model.slice(1);
|
26927 | styles[bgModel] = {
|
26928 | get() {
|
26929 | const {level} = this;
|
26930 | return function (...arguments_) {
|
26931 | const styler = createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_), ansiStyles.bgColor.close, this._styler);
|
26932 | return createBuilder(this, styler, this._isEmpty);
|
26933 | };
|
26934 | }
|
26935 | };
|
26936 | }
|
26937 |
|
26938 | const proto = Object.defineProperties(() => {}, {
|
26939 | ...styles,
|
26940 | level: {
|
26941 | enumerable: true,
|
26942 | get() {
|
26943 | return this._generator.level;
|
26944 | },
|
26945 | set(level) {
|
26946 | this._generator.level = level;
|
26947 | }
|
26948 | }
|
26949 | });
|
26950 |
|
26951 | const createStyler = (open, close, parent) => {
|
26952 | let openAll;
|
26953 | let closeAll;
|
26954 | if (parent === undefined) {
|
26955 | openAll = open;
|
26956 | closeAll = close;
|
26957 | } else {
|
26958 | openAll = parent.openAll + open;
|
26959 | closeAll = close + parent.closeAll;
|
26960 | }
|
26961 |
|
26962 | return {
|
26963 | open,
|
26964 | close,
|
26965 | openAll,
|
26966 | closeAll,
|
26967 | parent
|
26968 | };
|
26969 | };
|
26970 |
|
26971 | const createBuilder = (self, _styler, _isEmpty) => {
|
26972 | const builder = (...arguments_) => {
|
26973 |
|
26974 |
|
26975 | return applyStyle(builder, (arguments_.length === 1) ? ('' + arguments_[0]) : arguments_.join(' '));
|
26976 | };
|
26977 |
|
26978 |
|
26979 |
|
26980 | builder.__proto__ = proto;
|
26981 |
|
26982 | builder._generator = self;
|
26983 | builder._styler = _styler;
|
26984 | builder._isEmpty = _isEmpty;
|
26985 |
|
26986 | return builder;
|
26987 | };
|
26988 |
|
26989 | const applyStyle = (self, string) => {
|
26990 | if (self.level <= 0 || !string) {
|
26991 | return self._isEmpty ? '' : string;
|
26992 | }
|
26993 |
|
26994 | let styler = self._styler;
|
26995 |
|
26996 | if (styler === undefined) {
|
26997 | return string;
|
26998 | }
|
26999 |
|
27000 | const {openAll, closeAll} = styler;
|
27001 | if (string.indexOf('\u001B') !== -1) {
|
27002 | while (styler !== undefined) {
|
27003 |
|
27004 |
|
27005 |
|
27006 | string = stringReplaceAll(string, styler.close, styler.open);
|
27007 |
|
27008 | styler = styler.parent;
|
27009 | }
|
27010 | }
|
27011 |
|
27012 |
|
27013 |
|
27014 |
|
27015 | const lfIndex = string.indexOf('\n');
|
27016 | if (lfIndex !== -1) {
|
27017 | string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
27018 | }
|
27019 |
|
27020 | return openAll + string + closeAll;
|
27021 | };
|
27022 |
|
27023 | let template;
|
27024 | const chalkTag = (chalk, ...strings) => {
|
27025 | const [firstString] = strings;
|
27026 |
|
27027 | if (!Array.isArray(firstString)) {
|
27028 |
|
27029 |
|
27030 | return strings.join(' ');
|
27031 | }
|
27032 |
|
27033 | const arguments_ = strings.slice(1);
|
27034 | const parts = [firstString.raw[0]];
|
27035 |
|
27036 | for (let i = 1; i < firstString.length; i++) {
|
27037 | parts.push(
|
27038 | String(arguments_[i - 1]).replace(/[{}\\]/g, '\\$&'),
|
27039 | String(firstString.raw[i])
|
27040 | );
|
27041 | }
|
27042 |
|
27043 | if (template === undefined) {
|
27044 | template = __webpack_require__(295);
|
27045 | }
|
27046 |
|
27047 | return template(chalk, parts.join(''));
|
27048 | };
|
27049 |
|
27050 | Object.defineProperties(Chalk.prototype, styles);
|
27051 |
|
27052 | const chalk = Chalk();
|
27053 | chalk.supportsColor = stdoutColor;
|
27054 | chalk.stderr = Chalk({level: stderrColor ? stderrColor.level : 0});
|
27055 | chalk.stderr.supportsColor = stderrColor;
|
27056 |
|
27057 |
|
27058 | chalk.Level = {
|
27059 | None: 0,
|
27060 | Basic: 1,
|
27061 | Ansi256: 2,
|
27062 | TrueColor: 3,
|
27063 | 0: 'None',
|
27064 | 1: 'Basic',
|
27065 | 2: 'Ansi256',
|
27066 | 3: 'TrueColor'
|
27067 | };
|
27068 |
|
27069 | module.exports = chalk;
|
27070 |
|
27071 |
|
27072 | }),
|
27073 | ,
|
27074 |
|
27075 | (function(module) {
|
27076 |
|
27077 | module.exports = {"uChars":[128,165,169,178,184,216,226,235,238,244,248,251,253,258,276,284,300,325,329,334,364,463,465,467,469,471,473,475,477,506,594,610,712,716,730,930,938,962,970,1026,1104,1106,8209,8215,8218,8222,8231,8241,8244,8246,8252,8365,8452,8454,8458,8471,8482,8556,8570,8596,8602,8713,8720,8722,8726,8731,8737,8740,8742,8748,8751,8760,8766,8777,8781,8787,8802,8808,8816,8854,8858,8870,8896,8979,9322,9372,9548,9588,9616,9622,9634,9652,9662,9672,9676,9680,9702,9735,9738,9793,9795,11906,11909,11913,11917,11928,11944,11947,11951,11956,11960,11964,11979,12284,12292,12312,12319,12330,12351,12436,12447,12535,12543,12586,12842,12850,12964,13200,13215,13218,13253,13263,13267,13270,13384,13428,13727,13839,13851,14617,14703,14801,14816,14964,15183,15471,15585,16471,16736,17208,17325,17330,17374,17623,17997,18018,18212,18218,18301,18318,18760,18811,18814,18820,18823,18844,18848,18872,19576,19620,19738,19887,40870,59244,59336,59367,59413,59417,59423,59431,59437,59443,59452,59460,59478,59493,63789,63866,63894,63976,63986,64016,64018,64021,64025,64034,64037,64042,65074,65093,65107,65112,65127,65132,65375,65510,65536],"gbChars":[0,36,38,45,50,81,89,95,96,100,103,104,105,109,126,133,148,172,175,179,208,306,307,308,309,310,311,312,313,341,428,443,544,545,558,741,742,749,750,805,819,820,7922,7924,7925,7927,7934,7943,7944,7945,7950,8062,8148,8149,8152,8164,8174,8236,8240,8262,8264,8374,8380,8381,8384,8388,8390,8392,8393,8394,8396,8401,8406,8416,8419,8424,8437,8439,8445,8482,8485,8496,8521,8603,8936,8946,9046,9050,9063,9066,9076,9092,9100,9108,9111,9113,9131,9162,9164,9218,9219,11329,11331,11334,11336,11346,11361,11363,11366,11370,11372,11375,11389,11682,11686,11687,11692,11694,11714,11716,11723,11725,11730,11736,11982,11989,12102,12336,12348,12350,12384,12393,12395,12397,12510,12553,12851,12962,12973,13738,13823,13919,13933,14080,14298,14585,14698,15583,15847,16318,16434,16438,16481,16729,17102,17122,17315,17320,17402,17418,17859,17909,17911,17915,17916,17936,17939,17961,18664,18703,18814,18962,19043,33469,33470,33471,33484,33485,33490,33497,33501,33505,33513,33520,33536,33550,37845,37921,37948,38029,38038,38064,38065,38066,38069,38075,38076,38078,39108,39109,39113,39114,39115,39116,39265,39394,189000]};
|
27078 |
|
27079 | }),
|
27080 | ,
|
27081 |
|
27082 | (function(module, __unusedexports, __webpack_require__) {
|
27083 |
|
27084 | "use strict";
|
27085 |
|
27086 |
|
27087 |
|
27088 |
|
27089 |
|
27090 |
|
27091 |
|
27092 |
|
27093 |
|
27094 |
|
27095 |
|
27096 |
|
27097 |
|
27098 |
|
27099 |
|
27100 |
|
27101 |
|
27102 |
|
27103 |
|
27104 |
|
27105 |
|
27106 |
|
27107 |
|
27108 |
|
27109 |
|
27110 |
|
27111 |
|
27112 |
|
27113 |
|
27114 | var pna = __webpack_require__(511);
|
27115 |
|
27116 |
|
27117 | module.exports = Writable;
|
27118 |
|
27119 |
|
27120 | function WriteReq(chunk, encoding, cb) {
|
27121 | this.chunk = chunk;
|
27122 | this.encoding = encoding;
|
27123 | this.callback = cb;
|
27124 | this.next = null;
|
27125 | }
|
27126 |
|
27127 |
|
27128 |
|
27129 | function CorkedRequest(state) {
|
27130 | var _this = this;
|
27131 |
|
27132 | this.next = null;
|
27133 | this.entry = null;
|
27134 | this.finish = function () {
|
27135 | onCorkedFinish(_this, state);
|
27136 | };
|
27137 | }
|
27138 |
|
27139 |
|
27140 |
|
27141 | var asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : pna.nextTick;
|
27142 |
|
27143 |
|
27144 |
|
27145 | var Duplex;
|
27146 |
|
27147 |
|
27148 | Writable.WritableState = WritableState;
|
27149 |
|
27150 |
|
27151 | var util = Object.create(__webpack_require__(130));
|
27152 | util.inherits = __webpack_require__(536);
|
27153 |
|
27154 |
|
27155 |
|
27156 | var internalUtil = {
|
27157 | deprecate: __webpack_require__(443)
|
27158 | };
|
27159 |
|
27160 |
|
27161 |
|
27162 | var Stream = __webpack_require__(707);
|
27163 |
|
27164 |
|
27165 |
|
27166 |
|
27167 | var Buffer = __webpack_require__(393).Buffer;
|
27168 | var OurUint8Array = global.Uint8Array || function () {};
|
27169 | function _uint8ArrayToBuffer(chunk) {
|
27170 | return Buffer.from(chunk);
|
27171 | }
|
27172 | function _isUint8Array(obj) {
|
27173 | return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;
|
27174 | }
|
27175 |
|
27176 |
|
27177 |
|
27178 | var destroyImpl = __webpack_require__(596);
|
27179 |
|
27180 | util.inherits(Writable, Stream);
|
27181 |
|
27182 | function nop() {}
|
27183 |
|
27184 | function WritableState(options, stream) {
|
27185 | Duplex = Duplex || __webpack_require__(588);
|
27186 |
|
27187 | options = options || {};
|
27188 |
|
27189 |
|
27190 |
|
27191 |
|
27192 |
|
27193 |
|
27194 | var isDuplex = stream instanceof Duplex;
|
27195 |
|
27196 |
|
27197 |
|
27198 | this.objectMode = !!options.objectMode;
|
27199 |
|
27200 | if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode;
|
27201 |
|
27202 |
|
27203 |
|
27204 |
|
27205 | var hwm = options.highWaterMark;
|
27206 | var writableHwm = options.writableHighWaterMark;
|
27207 | var defaultHwm = this.objectMode ? 16 : 16 * 1024;
|
27208 |
|
27209 | if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (writableHwm || writableHwm === 0)) this.highWaterMark = writableHwm;else this.highWaterMark = defaultHwm;
|
27210 |
|
27211 |
|
27212 | this.highWaterMark = Math.floor(this.highWaterMark);
|
27213 |
|
27214 |
|
27215 | this.finalCalled = false;
|
27216 |
|
27217 |
|
27218 | this.needDrain = false;
|
27219 |
|
27220 | this.ending = false;
|
27221 |
|
27222 | this.ended = false;
|
27223 |
|
27224 | this.finished = false;
|
27225 |
|
27226 |
|
27227 | this.destroyed = false;
|
27228 |
|
27229 |
|
27230 |
|
27231 |
|
27232 | var noDecode = options.decodeStrings === false;
|
27233 | this.decodeStrings = !noDecode;
|
27234 |
|
27235 |
|
27236 |
|
27237 |
|
27238 | this.defaultEncoding = options.defaultEncoding || 'utf8';
|
27239 |
|
27240 |
|
27241 |
|
27242 |
|
27243 | this.length = 0;
|
27244 |
|
27245 |
|
27246 | this.writing = false;
|
27247 |
|
27248 |
|
27249 | this.corked = 0;
|
27250 |
|
27251 |
|
27252 |
|
27253 |
|
27254 |
|
27255 | this.sync = true;
|
27256 |
|
27257 |
|
27258 |
|
27259 |
|
27260 | this.bufferProcessing = false;
|
27261 |
|
27262 |
|
27263 | this.onwrite = function (er) {
|
27264 | onwrite(stream, er);
|
27265 | };
|
27266 |
|
27267 |
|
27268 | this.writecb = null;
|
27269 |
|
27270 |
|
27271 | this.writelen = 0;
|
27272 |
|
27273 | this.bufferedRequest = null;
|
27274 | this.lastBufferedRequest = null;
|
27275 |
|
27276 |
|
27277 |
|
27278 | this.pendingcb = 0;
|
27279 |
|
27280 |
|
27281 |
|
27282 | this.prefinished = false;
|
27283 |
|
27284 |
|
27285 | this.errorEmitted = false;
|
27286 |
|
27287 |
|
27288 | this.bufferedRequestCount = 0;
|
27289 |
|
27290 |
|
27291 |
|
27292 | this.corkedRequestsFree = new CorkedRequest(this);
|
27293 | }
|
27294 |
|
27295 | WritableState.prototype.getBuffer = function getBuffer() {
|
27296 | var current = this.bufferedRequest;
|
27297 | var out = [];
|
27298 | while (current) {
|
27299 | out.push(current);
|
27300 | current = current.next;
|
27301 | }
|
27302 | return out;
|
27303 | };
|
27304 |
|
27305 | (function () {
|
27306 | try {
|
27307 | Object.defineProperty(WritableState.prototype, 'buffer', {
|
27308 | get: internalUtil.deprecate(function () {
|
27309 | return this.getBuffer();
|
27310 | }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003')
|
27311 | });
|
27312 | } catch (_) {}
|
27313 | })();
|
27314 |
|
27315 |
|
27316 |
|
27317 | var realHasInstance;
|
27318 | if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {
|
27319 | realHasInstance = Function.prototype[Symbol.hasInstance];
|
27320 | Object.defineProperty(Writable, Symbol.hasInstance, {
|
27321 | value: function (object) {
|
27322 | if (realHasInstance.call(this, object)) return true;
|
27323 | if (this !== Writable) return false;
|
27324 |
|
27325 | return object && object._writableState instanceof WritableState;
|
27326 | }
|
27327 | });
|
27328 | } else {
|
27329 | realHasInstance = function (object) {
|
27330 | return object instanceof this;
|
27331 | };
|
27332 | }
|
27333 |
|
27334 | function Writable(options) {
|
27335 | Duplex = Duplex || __webpack_require__(588);
|
27336 |
|
27337 |
|
27338 |
|
27339 |
|
27340 |
|
27341 |
|
27342 |
|
27343 |
|
27344 | if (!realHasInstance.call(Writable, this) && !(this instanceof Duplex)) {
|
27345 | return new Writable(options);
|
27346 | }
|
27347 |
|
27348 | this._writableState = new WritableState(options, this);
|
27349 |
|
27350 |
|
27351 | this.writable = true;
|
27352 |
|
27353 | if (options) {
|
27354 | if (typeof options.write === 'function') this._write = options.write;
|
27355 |
|
27356 | if (typeof options.writev === 'function') this._writev = options.writev;
|
27357 |
|
27358 | if (typeof options.destroy === 'function') this._destroy = options.destroy;
|
27359 |
|
27360 | if (typeof options.final === 'function') this._final = options.final;
|
27361 | }
|
27362 |
|
27363 | Stream.call(this);
|
27364 | }
|
27365 |
|
27366 |
|
27367 | Writable.prototype.pipe = function () {
|
27368 | this.emit('error', new Error('Cannot pipe, not readable'));
|
27369 | };
|
27370 |
|
27371 | function writeAfterEnd(stream, cb) {
|
27372 | var er = new Error('write after end');
|
27373 |
|
27374 | stream.emit('error', er);
|
27375 | pna.nextTick(cb, er);
|
27376 | }
|
27377 |
|
27378 |
|
27379 |
|
27380 |
|
27381 | function validChunk(stream, state, chunk, cb) {
|
27382 | var valid = true;
|
27383 | var er = false;
|
27384 |
|
27385 | if (chunk === null) {
|
27386 | er = new TypeError('May not write null values to stream');
|
27387 | } else if (typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {
|
27388 | er = new TypeError('Invalid non-string/buffer chunk');
|
27389 | }
|
27390 | if (er) {
|
27391 | stream.emit('error', er);
|
27392 | pna.nextTick(cb, er);
|
27393 | valid = false;
|
27394 | }
|
27395 | return valid;
|
27396 | }
|
27397 |
|
27398 | Writable.prototype.write = function (chunk, encoding, cb) {
|
27399 | var state = this._writableState;
|
27400 | var ret = false;
|
27401 | var isBuf = !state.objectMode && _isUint8Array(chunk);
|
27402 |
|
27403 | if (isBuf && !Buffer.isBuffer(chunk)) {
|
27404 | chunk = _uint8ArrayToBuffer(chunk);
|
27405 | }
|
27406 |
|
27407 | if (typeof encoding === 'function') {
|
27408 | cb = encoding;
|
27409 | encoding = null;
|
27410 | }
|
27411 |
|
27412 | if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;
|
27413 |
|
27414 | if (typeof cb !== 'function') cb = nop;
|
27415 |
|
27416 | if (state.ended) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) {
|
27417 | state.pendingcb++;
|
27418 | ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);
|
27419 | }
|
27420 |
|
27421 | return ret;
|
27422 | };
|
27423 |
|
27424 | Writable.prototype.cork = function () {
|
27425 | var state = this._writableState;
|
27426 |
|
27427 | state.corked++;
|
27428 | };
|
27429 |
|
27430 | Writable.prototype.uncork = function () {
|
27431 | var state = this._writableState;
|
27432 |
|
27433 | if (state.corked) {
|
27434 | state.corked--;
|
27435 |
|
27436 | if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);
|
27437 | }
|
27438 | };
|
27439 |
|
27440 | Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {
|
27441 |
|
27442 | if (typeof encoding === 'string') encoding = encoding.toLowerCase();
|
27443 | if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding);
|
27444 | this._writableState.defaultEncoding = encoding;
|
27445 | return this;
|
27446 | };
|
27447 |
|
27448 | function decodeChunk(state, chunk, encoding) {
|
27449 | if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {
|
27450 | chunk = Buffer.from(chunk, encoding);
|
27451 | }
|
27452 | return chunk;
|
27453 | }
|
27454 |
|
27455 | Object.defineProperty(Writable.prototype, 'writableHighWaterMark', {
|
27456 |
|
27457 |
|
27458 |
|
27459 | enumerable: false,
|
27460 | get: function () {
|
27461 | return this._writableState.highWaterMark;
|
27462 | }
|
27463 | });
|
27464 |
|
27465 |
|
27466 |
|
27467 |
|
27468 | function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {
|
27469 | if (!isBuf) {
|
27470 | var newChunk = decodeChunk(state, chunk, encoding);
|
27471 | if (chunk !== newChunk) {
|
27472 | isBuf = true;
|
27473 | encoding = 'buffer';
|
27474 | chunk = newChunk;
|
27475 | }
|
27476 | }
|
27477 | var len = state.objectMode ? 1 : chunk.length;
|
27478 |
|
27479 | state.length += len;
|
27480 |
|
27481 | var ret = state.length < state.highWaterMark;
|
27482 |
|
27483 | if (!ret) state.needDrain = true;
|
27484 |
|
27485 | if (state.writing || state.corked) {
|
27486 | var last = state.lastBufferedRequest;
|
27487 | state.lastBufferedRequest = {
|
27488 | chunk: chunk,
|
27489 | encoding: encoding,
|
27490 | isBuf: isBuf,
|
27491 | callback: cb,
|
27492 | next: null
|
27493 | };
|
27494 | if (last) {
|
27495 | last.next = state.lastBufferedRequest;
|
27496 | } else {
|
27497 | state.bufferedRequest = state.lastBufferedRequest;
|
27498 | }
|
27499 | state.bufferedRequestCount += 1;
|
27500 | } else {
|
27501 | doWrite(stream, state, false, len, chunk, encoding, cb);
|
27502 | }
|
27503 |
|
27504 | return ret;
|
27505 | }
|
27506 |
|
27507 | function doWrite(stream, state, writev, len, chunk, encoding, cb) {
|
27508 | state.writelen = len;
|
27509 | state.writecb = cb;
|
27510 | state.writing = true;
|
27511 | state.sync = true;
|
27512 | if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);
|
27513 | state.sync = false;
|
27514 | }
|
27515 |
|
27516 | function onwriteError(stream, state, sync, er, cb) {
|
27517 | --state.pendingcb;
|
27518 |
|
27519 | if (sync) {
|
27520 |
|
27521 |
|
27522 | pna.nextTick(cb, er);
|
27523 |
|
27524 |
|
27525 | pna.nextTick(finishMaybe, stream, state);
|
27526 | stream._writableState.errorEmitted = true;
|
27527 | stream.emit('error', er);
|
27528 | } else {
|
27529 |
|
27530 |
|
27531 | cb(er);
|
27532 | stream._writableState.errorEmitted = true;
|
27533 | stream.emit('error', er);
|
27534 |
|
27535 |
|
27536 | finishMaybe(stream, state);
|
27537 | }
|
27538 | }
|
27539 |
|
27540 | function onwriteStateUpdate(state) {
|
27541 | state.writing = false;
|
27542 | state.writecb = null;
|
27543 | state.length -= state.writelen;
|
27544 | state.writelen = 0;
|
27545 | }
|
27546 |
|
27547 | function onwrite(stream, er) {
|
27548 | var state = stream._writableState;
|
27549 | var sync = state.sync;
|
27550 | var cb = state.writecb;
|
27551 |
|
27552 | onwriteStateUpdate(state);
|
27553 |
|
27554 | if (er) onwriteError(stream, state, sync, er, cb);else {
|
27555 |
|
27556 | var finished = needFinish(state);
|
27557 |
|
27558 | if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {
|
27559 | clearBuffer(stream, state);
|
27560 | }
|
27561 |
|
27562 | if (sync) {
|
27563 |
|
27564 | asyncWrite(afterWrite, stream, state, finished, cb);
|
27565 |
|
27566 | } else {
|
27567 | afterWrite(stream, state, finished, cb);
|
27568 | }
|
27569 | }
|
27570 | }
|
27571 |
|
27572 | function afterWrite(stream, state, finished, cb) {
|
27573 | if (!finished) onwriteDrain(stream, state);
|
27574 | state.pendingcb--;
|
27575 | cb();
|
27576 | finishMaybe(stream, state);
|
27577 | }
|
27578 |
|
27579 |
|
27580 |
|
27581 |
|
27582 | function onwriteDrain(stream, state) {
|
27583 | if (state.length === 0 && state.needDrain) {
|
27584 | state.needDrain = false;
|
27585 | stream.emit('drain');
|
27586 | }
|
27587 | }
|
27588 |
|
27589 |
|
27590 | function clearBuffer(stream, state) {
|
27591 | state.bufferProcessing = true;
|
27592 | var entry = state.bufferedRequest;
|
27593 |
|
27594 | if (stream._writev && entry && entry.next) {
|
27595 |
|
27596 | var l = state.bufferedRequestCount;
|
27597 | var buffer = new Array(l);
|
27598 | var holder = state.corkedRequestsFree;
|
27599 | holder.entry = entry;
|
27600 |
|
27601 | var count = 0;
|
27602 | var allBuffers = true;
|
27603 | while (entry) {
|
27604 | buffer[count] = entry;
|
27605 | if (!entry.isBuf) allBuffers = false;
|
27606 | entry = entry.next;
|
27607 | count += 1;
|
27608 | }
|
27609 | buffer.allBuffers = allBuffers;
|
27610 |
|
27611 | doWrite(stream, state, true, state.length, buffer, '', holder.finish);
|
27612 |
|
27613 |
|
27614 |
|
27615 | state.pendingcb++;
|
27616 | state.lastBufferedRequest = null;
|
27617 | if (holder.next) {
|
27618 | state.corkedRequestsFree = holder.next;
|
27619 | holder.next = null;
|
27620 | } else {
|
27621 | state.corkedRequestsFree = new CorkedRequest(state);
|
27622 | }
|
27623 | state.bufferedRequestCount = 0;
|
27624 | } else {
|
27625 |
|
27626 | while (entry) {
|
27627 | var chunk = entry.chunk;
|
27628 | var encoding = entry.encoding;
|
27629 | var cb = entry.callback;
|
27630 | var len = state.objectMode ? 1 : chunk.length;
|
27631 |
|
27632 | doWrite(stream, state, false, len, chunk, encoding, cb);
|
27633 | entry = entry.next;
|
27634 | state.bufferedRequestCount--;
|
27635 |
|
27636 |
|
27637 |
|
27638 |
|
27639 | if (state.writing) {
|
27640 | break;
|
27641 | }
|
27642 | }
|
27643 |
|
27644 | if (entry === null) state.lastBufferedRequest = null;
|
27645 | }
|
27646 |
|
27647 | state.bufferedRequest = entry;
|
27648 | state.bufferProcessing = false;
|
27649 | }
|
27650 |
|
27651 | Writable.prototype._write = function (chunk, encoding, cb) {
|
27652 | cb(new Error('_write() is not implemented'));
|
27653 | };
|
27654 |
|
27655 | Writable.prototype._writev = null;
|
27656 |
|
27657 | Writable.prototype.end = function (chunk, encoding, cb) {
|
27658 | var state = this._writableState;
|
27659 |
|
27660 | if (typeof chunk === 'function') {
|
27661 | cb = chunk;
|
27662 | chunk = null;
|
27663 | encoding = null;
|
27664 | } else if (typeof encoding === 'function') {
|
27665 | cb = encoding;
|
27666 | encoding = null;
|
27667 | }
|
27668 |
|
27669 | if (chunk !== null && chunk !== undefined) this.write(chunk, encoding);
|
27670 |
|
27671 |
|
27672 | if (state.corked) {
|
27673 | state.corked = 1;
|
27674 | this.uncork();
|
27675 | }
|
27676 |
|
27677 |
|
27678 | if (!state.ending && !state.finished) endWritable(this, state, cb);
|
27679 | };
|
27680 |
|
27681 | function needFinish(state) {
|
27682 | return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;
|
27683 | }
|
27684 | function callFinal(stream, state) {
|
27685 | stream._final(function (err) {
|
27686 | state.pendingcb--;
|
27687 | if (err) {
|
27688 | stream.emit('error', err);
|
27689 | }
|
27690 | state.prefinished = true;
|
27691 | stream.emit('prefinish');
|
27692 | finishMaybe(stream, state);
|
27693 | });
|
27694 | }
|
27695 | function prefinish(stream, state) {
|
27696 | if (!state.prefinished && !state.finalCalled) {
|
27697 | if (typeof stream._final === 'function') {
|
27698 | state.pendingcb++;
|
27699 | state.finalCalled = true;
|
27700 | pna.nextTick(callFinal, stream, state);
|
27701 | } else {
|
27702 | state.prefinished = true;
|
27703 | stream.emit('prefinish');
|
27704 | }
|
27705 | }
|
27706 | }
|
27707 |
|
27708 | function finishMaybe(stream, state) {
|
27709 | var need = needFinish(state);
|
27710 | if (need) {
|
27711 | prefinish(stream, state);
|
27712 | if (state.pendingcb === 0) {
|
27713 | state.finished = true;
|
27714 | stream.emit('finish');
|
27715 | }
|
27716 | }
|
27717 | return need;
|
27718 | }
|
27719 |
|
27720 | function endWritable(stream, state, cb) {
|
27721 | state.ending = true;
|
27722 | finishMaybe(stream, state);
|
27723 | if (cb) {
|
27724 | if (state.finished) pna.nextTick(cb);else stream.once('finish', cb);
|
27725 | }
|
27726 | state.ended = true;
|
27727 | stream.writable = false;
|
27728 | }
|
27729 |
|
27730 | function onCorkedFinish(corkReq, state, err) {
|
27731 | var entry = corkReq.entry;
|
27732 | corkReq.entry = null;
|
27733 | while (entry) {
|
27734 | var cb = entry.callback;
|
27735 | state.pendingcb--;
|
27736 | cb(err);
|
27737 | entry = entry.next;
|
27738 | }
|
27739 | if (state.corkedRequestsFree) {
|
27740 | state.corkedRequestsFree.next = corkReq;
|
27741 | } else {
|
27742 | state.corkedRequestsFree = corkReq;
|
27743 | }
|
27744 | }
|
27745 |
|
27746 | Object.defineProperty(Writable.prototype, 'destroyed', {
|
27747 | get: function () {
|
27748 | if (this._writableState === undefined) {
|
27749 | return false;
|
27750 | }
|
27751 | return this._writableState.destroyed;
|
27752 | },
|
27753 | set: function (value) {
|
27754 |
|
27755 |
|
27756 | if (!this._writableState) {
|
27757 | return;
|
27758 | }
|
27759 |
|
27760 |
|
27761 |
|
27762 | this._writableState.destroyed = value;
|
27763 | }
|
27764 | });
|
27765 |
|
27766 | Writable.prototype.destroy = destroyImpl.destroy;
|
27767 | Writable.prototype._undestroy = destroyImpl.undestroy;
|
27768 | Writable.prototype._destroy = function (err, cb) {
|
27769 | this.end();
|
27770 | cb(err);
|
27771 | };
|
27772 |
|
27773 | }),
|
27774 | ,
|
27775 |
|
27776 | (function(module, __unusedexports, __webpack_require__) {
|
27777 |
|
27778 | "use strict";
|
27779 |
|
27780 | const stringWidth = __webpack_require__(963);
|
27781 |
|
27782 | const widestLine = input => {
|
27783 | let max = 0;
|
27784 |
|
27785 | for (const line of input.split('\n')) {
|
27786 | max = Math.max(max, stringWidth(line));
|
27787 | }
|
27788 |
|
27789 | return max;
|
27790 | };
|
27791 |
|
27792 | module.exports = widestLine;
|
27793 |
|
27794 | module.exports.default = widestLine;
|
27795 |
|
27796 |
|
27797 | }),
|
27798 |
|
27799 | (function(module) {
|
27800 |
|
27801 | module.exports = [["a140","",62],["a180","",32],["a240","",62],["a280","",32],["a2ab","",5],["a2e3","€"],["a2ef",""],["a2fd",""],["a340","",62],["a380","",31," "],["a440","",62],["a480","",32],["a4f4","",10],["a540","",62],["a580","",32],["a5f7","",7],["a640","",62],["a680","",32],["a6b9","",7],["a6d9","",6],["a6ec",""],["a6f3",""],["a6f6","",8],["a740","",62],["a780","",32],["a7c2","",14],["a7f2","",12],["a896","",10],["a8bc",""],["a8bf","ǹ"],["a8c1",""],["a8ea","",20],["a958",""],["a95b",""],["a95d",""],["a989","〾⿰",11],["a997","",12],["a9f0","",14],["aaa1","",93],["aba1","",93],["aca1","",93],["ada1","",93],["aea1","",93],["afa1","",93],["d7fa","",4],["f8a1","",93],["f9a1","",93],["faa1","",93],["fba1","",93],["fca1","",93],["fda1","",93],["fe50","⺁⺄㑳㑇⺈⺋㖞㘚㘎⺌⺗㥮㤘㧏㧟㩳㧐㭎㱮㳠⺧⺪䁖䅟⺮䌷⺳⺶⺷䎱䎬⺻䏝䓖䙡䙌"],["fe80","䜣䜩䝼䞍⻊䥇䥺䥽䦂䦃䦅䦆䦟䦛䦷䦶䲣䲟䲠䲡䱷䲢䴓",6,"䶮",93]];
|
27802 |
|
27803 | }),
|
27804 | ,
|
27805 | ,
|
27806 | ,
|
27807 |
|
27808 | (function(module) {
|
27809 |
|
27810 | module.exports = require("tty");
|
27811 |
|
27812 | }),
|
27813 |
|
27814 | (function(module, __unusedexports, __webpack_require__) {
|
27815 |
|
27816 | "use strict";
|
27817 |
|
27818 |
|
27819 | const path = __webpack_require__(622)
|
27820 |
|
27821 |
|
27822 | function getRootPath (p) {
|
27823 | p = path.normalize(path.resolve(p)).split(path.sep)
|
27824 | if (p.length > 0) return p[0]
|
27825 | return null
|
27826 | }
|
27827 |
|
27828 |
|
27829 |
|
27830 | const INVALID_PATH_CHARS = /[<>:"|?*]/
|
27831 |
|
27832 | function invalidWin32Path (p) {
|
27833 | const rp = getRootPath(p)
|
27834 | p = p.replace(rp, '')
|
27835 | return INVALID_PATH_CHARS.test(p)
|
27836 | }
|
27837 |
|
27838 | module.exports = {
|
27839 | getRootPath,
|
27840 | invalidWin32Path
|
27841 | }
|
27842 |
|
27843 |
|
27844 | }),
|
27845 | ,
|
27846 | ,
|
27847 | ,
|
27848 | ,
|
27849 | ,
|
27850 |
|
27851 | (function(__unusedmodule, exports, __webpack_require__) {
|
27852 |
|
27853 | "use strict";
|
27854 |
|
27855 | var __importDefault = (this && this.__importDefault) || function (mod) {
|
27856 | return (mod && mod.__esModule) ? mod : { "default": mod };
|
27857 | };
|
27858 | Object.defineProperty(exports, "__esModule", { value: true });
|
27859 | exports.getSupportedNodeVersion = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = void 0;
|
27860 | const semver_1 = __webpack_require__(391);
|
27861 | const boxen_1 = __importDefault(__webpack_require__(14));
|
27862 | const errors_1 = __webpack_require__(850);
|
27863 | const debug_1 = __importDefault(__webpack_require__(785));
|
27864 | const allOptions = [
|
27865 | { major: 12, range: '12.x', runtime: 'nodejs12.x' },
|
27866 | { major: 10, range: '10.x', runtime: 'nodejs10.x' },
|
27867 | {
|
27868 | major: 8,
|
27869 | range: '8.10.x',
|
27870 | runtime: 'nodejs8.10',
|
27871 | discontinueDate: new Date('2020-01-06'),
|
27872 | },
|
27873 | ];
|
27874 | const pleaseSet = 'Please set "engines": { "node": "' +
|
27875 | getLatestNodeVersion().range +
|
27876 | '" } in your `package.json` file to upgrade to Node.js ' +
|
27877 | getLatestNodeVersion().major +
|
27878 | '.';
|
27879 | const upstreamProvider = 'This change is the result of a decision made by an upstream infrastructure provider (AWS).' +
|
27880 | '\nRead more: https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html';
|
27881 | function getLatestNodeVersion() {
|
27882 | return allOptions[0];
|
27883 | }
|
27884 | exports.getLatestNodeVersion = getLatestNodeVersion;
|
27885 | function getDiscontinuedNodeVersions() {
|
27886 | return allOptions.filter(isDiscontinued);
|
27887 | }
|
27888 | exports.getDiscontinuedNodeVersions = getDiscontinuedNodeVersions;
|
27889 | async function getSupportedNodeVersion(engineRange, isAuto) {
|
27890 | let selection = getLatestNodeVersion();
|
27891 | if (engineRange) {
|
27892 | const found = semver_1.validRange(engineRange) &&
|
27893 | allOptions.some(o => {
|
27894 |
|
27895 |
|
27896 | selection = o;
|
27897 | return semver_1.intersects(o.range, engineRange);
|
27898 | });
|
27899 | if (!found) {
|
27900 | const intro = isAuto || !engineRange
|
27901 | ? 'This project is using an invalid version of Node.js and must be changed.'
|
27902 | : 'Found `engines` in `package.json` with an invalid Node.js version range: "' +
|
27903 | engineRange +
|
27904 | '".';
|
27905 | throw new errors_1.NowBuildError({
|
27906 | code: 'BUILD_UTILS_NODE_VERSION_INVALID',
|
27907 | link: 'https://vercel.com/docs/runtimes#official-runtimes/node-js/node-js-version',
|
27908 | message: intro + '\n' + pleaseSet,
|
27909 | });
|
27910 | }
|
27911 | }
|
27912 | if (isDiscontinued(selection)) {
|
27913 | const intro = isAuto || !engineRange
|
27914 | ? 'This project is using a discontinued version of Node.js (' +
|
27915 | selection.range +
|
27916 | ') and must be upgraded.'
|
27917 | : 'Found `engines` in `package.json` with a discontinued Node.js version range: "' +
|
27918 | engineRange +
|
27919 | '".';
|
27920 | throw new errors_1.NowBuildError({
|
27921 | code: 'BUILD_UTILS_NODE_VERSION_DISCONTINUED',
|
27922 | link: 'https://vercel.com/docs/runtimes#official-runtimes/node-js/node-js-version',
|
27923 | message: intro + '\n' + pleaseSet + '\n' + upstreamProvider,
|
27924 | });
|
27925 | }
|
27926 | debug_1.default(isAuto || !engineRange
|
27927 | ? 'Using default Node.js range: "' + selection.range + '".'
|
27928 | : 'Found `engines` in `package.json`, selecting range: "' +
|
27929 | selection.range +
|
27930 | '".');
|
27931 | if (selection.discontinueDate) {
|
27932 | const d = selection.discontinueDate.toISOString().split('T')[0];
|
27933 | console.warn(boxen_1.default('NOTICE' +
|
27934 | '\n' +
|
27935 | `\nNode.js version ${selection.range} has reached end-of-life.` +
|
27936 | `\nAs a result, deployments created on or after ${d} will fail to build.` +
|
27937 | '\n' +
|
27938 | pleaseSet +
|
27939 | '\n' +
|
27940 | upstreamProvider, { padding: 1 }));
|
27941 | }
|
27942 | return selection;
|
27943 | }
|
27944 | exports.getSupportedNodeVersion = getSupportedNodeVersion;
|
27945 | function isDiscontinued({ discontinueDate }) {
|
27946 | const today = Date.now();
|
27947 | return discontinueDate !== undefined && discontinueDate.getTime() <= today;
|
27948 | }
|
27949 |
|
27950 |
|
27951 | }),
|
27952 | ,
|
27953 | ,
|
27954 | ,
|
27955 |
|
27956 | (function(module, __unusedexports, __webpack_require__) {
|
27957 |
|
27958 | "use strict";
|
27959 |
|
27960 |
|
27961 |
|
27962 | var yaml = __webpack_require__(182);
|
27963 |
|
27964 |
|
27965 | module.exports = yaml;
|
27966 |
|
27967 |
|
27968 | }),
|
27969 | ,
|
27970 | ,
|
27971 | ,
|
27972 |
|
27973 | (function(module, __unusedexports, __webpack_require__) {
|
27974 |
|
27975 | "use strict";
|
27976 |
|
27977 |
|
27978 | module.exports = makeParserClass(__webpack_require__(335))
|
27979 | module.exports.makeParserClass = makeParserClass
|
27980 |
|
27981 | class TomlError extends Error {
|
27982 | constructor (msg) {
|
27983 | super(msg)
|
27984 | this.name = 'TomlError'
|
27985 |
|
27986 | if (Error.captureStackTrace) Error.captureStackTrace(this, TomlError)
|
27987 | this.fromTOML = true
|
27988 | this.wrapped = null
|
27989 | }
|
27990 | }
|
27991 | TomlError.wrap = err => {
|
27992 | const terr = new TomlError(err.message)
|
27993 | terr.code = err.code
|
27994 | terr.wrapped = err
|
27995 | return terr
|
27996 | }
|
27997 | module.exports.TomlError = TomlError
|
27998 |
|
27999 | const createDateTime = __webpack_require__(749)
|
28000 | const createDateTimeFloat = __webpack_require__(987)
|
28001 | const createDate = __webpack_require__(451)
|
28002 | const createTime = __webpack_require__(537)
|
28003 |
|
28004 | const CTRL_I = 0x09
|
28005 | const CTRL_J = 0x0A
|
28006 | const CTRL_M = 0x0D
|
28007 | const CTRL_CHAR_BOUNDARY = 0x1F
|
28008 | const CHAR_SP = 0x20
|
28009 | const CHAR_QUOT = 0x22
|
28010 | const CHAR_NUM = 0x23
|
28011 | const CHAR_APOS = 0x27
|
28012 | const CHAR_PLUS = 0x2B
|
28013 | const CHAR_COMMA = 0x2C
|
28014 | const CHAR_HYPHEN = 0x2D
|
28015 | const CHAR_PERIOD = 0x2E
|
28016 | const CHAR_0 = 0x30
|
28017 | const CHAR_1 = 0x31
|
28018 | const CHAR_7 = 0x37
|
28019 | const CHAR_9 = 0x39
|
28020 | const CHAR_COLON = 0x3A
|
28021 | const CHAR_EQUALS = 0x3D
|
28022 | const CHAR_A = 0x41
|
28023 | const CHAR_E = 0x45
|
28024 | const CHAR_F = 0x46
|
28025 | const CHAR_T = 0x54
|
28026 | const CHAR_U = 0x55
|
28027 | const CHAR_Z = 0x5A
|
28028 | const CHAR_LOWBAR = 0x5F
|
28029 | const CHAR_a = 0x61
|
28030 | const CHAR_b = 0x62
|
28031 | const CHAR_e = 0x65
|
28032 | const CHAR_f = 0x66
|
28033 | const CHAR_i = 0x69
|
28034 | const CHAR_l = 0x6C
|
28035 | const CHAR_n = 0x6E
|
28036 | const CHAR_o = 0x6F
|
28037 | const CHAR_r = 0x72
|
28038 | const CHAR_s = 0x73
|
28039 | const CHAR_t = 0x74
|
28040 | const CHAR_u = 0x75
|
28041 | const CHAR_x = 0x78
|
28042 | const CHAR_z = 0x7A
|
28043 | const CHAR_LCUB = 0x7B
|
28044 | const CHAR_RCUB = 0x7D
|
28045 | const CHAR_LSQB = 0x5B
|
28046 | const CHAR_BSOL = 0x5C
|
28047 | const CHAR_RSQB = 0x5D
|
28048 | const CHAR_DEL = 0x7F
|
28049 | const SURROGATE_FIRST = 0xD800
|
28050 | const SURROGATE_LAST = 0xDFFF
|
28051 |
|
28052 | const escapes = {
|
28053 | [CHAR_b]: '\u0008',
|
28054 | [CHAR_t]: '\u0009',
|
28055 | [CHAR_n]: '\u000A',
|
28056 | [CHAR_f]: '\u000C',
|
28057 | [CHAR_r]: '\u000D',
|
28058 | [CHAR_QUOT]: '\u0022',
|
28059 | [CHAR_BSOL]: '\u005C'
|
28060 | }
|
28061 |
|
28062 | function isDigit (cp) {
|
28063 | return cp >= CHAR_0 && cp <= CHAR_9
|
28064 | }
|
28065 | function isHexit (cp) {
|
28066 | return (cp >= CHAR_A && cp <= CHAR_F) || (cp >= CHAR_a && cp <= CHAR_f) || (cp >= CHAR_0 && cp <= CHAR_9)
|
28067 | }
|
28068 | function isBit (cp) {
|
28069 | return cp === CHAR_1 || cp === CHAR_0
|
28070 | }
|
28071 | function isOctit (cp) {
|
28072 | return (cp >= CHAR_0 && cp <= CHAR_7)
|
28073 | }
|
28074 | function isAlphaNumQuoteHyphen (cp) {
|
28075 | return (cp >= CHAR_A && cp <= CHAR_Z)
|
28076 | || (cp >= CHAR_a && cp <= CHAR_z)
|
28077 | || (cp >= CHAR_0 && cp <= CHAR_9)
|
28078 | || cp === CHAR_APOS
|
28079 | || cp === CHAR_QUOT
|
28080 | || cp === CHAR_LOWBAR
|
28081 | || cp === CHAR_HYPHEN
|
28082 | }
|
28083 | function isAlphaNumHyphen (cp) {
|
28084 | return (cp >= CHAR_A && cp <= CHAR_Z)
|
28085 | || (cp >= CHAR_a && cp <= CHAR_z)
|
28086 | || (cp >= CHAR_0 && cp <= CHAR_9)
|
28087 | || cp === CHAR_LOWBAR
|
28088 | || cp === CHAR_HYPHEN
|
28089 | }
|
28090 | const _type = Symbol('type')
|
28091 | const _declared = Symbol('declared')
|
28092 |
|
28093 | const hasOwnProperty = Object.prototype.hasOwnProperty
|
28094 | const defineProperty = Object.defineProperty
|
28095 | const descriptor = {configurable: true, enumerable: true, writable: true, value: undefined}
|
28096 |
|
28097 | function hasKey (obj, key) {
|
28098 | if (hasOwnProperty.call(obj, key)) return true
|
28099 | if (key === '__proto__') defineProperty(obj, '__proto__', descriptor)
|
28100 | return false
|
28101 | }
|
28102 |
|
28103 | const INLINE_TABLE = Symbol('inline-table')
|
28104 | function InlineTable () {
|
28105 | return Object.defineProperties({}, {
|
28106 | [_type]: {value: INLINE_TABLE}
|
28107 | })
|
28108 | }
|
28109 | function isInlineTable (obj) {
|
28110 | if (obj === null || typeof (obj) !== 'object') return false
|
28111 | return obj[_type] === INLINE_TABLE
|
28112 | }
|
28113 |
|
28114 | const TABLE = Symbol('table')
|
28115 | function Table () {
|
28116 | return Object.defineProperties({}, {
|
28117 | [_type]: {value: TABLE},
|
28118 | [_declared]: {value: false, writable: true}
|
28119 | })
|
28120 | }
|
28121 | function isTable (obj) {
|
28122 | if (obj === null || typeof (obj) !== 'object') return false
|
28123 | return obj[_type] === TABLE
|
28124 | }
|
28125 |
|
28126 | const _contentType = Symbol('content-type')
|
28127 | const INLINE_LIST = Symbol('inline-list')
|
28128 | function InlineList (type) {
|
28129 | return Object.defineProperties([], {
|
28130 | [_type]: {value: INLINE_LIST},
|
28131 | [_contentType]: {value: type}
|
28132 | })
|
28133 | }
|
28134 | function isInlineList (obj) {
|
28135 | if (obj === null || typeof (obj) !== 'object') return false
|
28136 | return obj[_type] === INLINE_LIST
|
28137 | }
|
28138 |
|
28139 | const LIST = Symbol('list')
|
28140 | function List () {
|
28141 | return Object.defineProperties([], {
|
28142 | [_type]: {value: LIST}
|
28143 | })
|
28144 | }
|
28145 | function isList (obj) {
|
28146 | if (obj === null || typeof (obj) !== 'object') return false
|
28147 | return obj[_type] === LIST
|
28148 | }
|
28149 |
|
28150 |
|
28151 | let _custom
|
28152 | try {
|
28153 | const utilInspect = eval("require('util').inspect")
|
28154 | _custom = utilInspect.custom
|
28155 | } catch (_) {
|
28156 |
|
28157 | }
|
28158 |
|
28159 | const _inspect = _custom || 'inspect'
|
28160 |
|
28161 | class BoxedBigInt {
|
28162 | constructor (value) {
|
28163 | try {
|
28164 | this.value = global.BigInt.asIntN(64, value)
|
28165 | } catch (_) {
|
28166 |
|
28167 | this.value = null
|
28168 | }
|
28169 | Object.defineProperty(this, _type, {value: INTEGER})
|
28170 | }
|
28171 | isNaN () {
|
28172 | return this.value === null
|
28173 | }
|
28174 |
|
28175 | toString () {
|
28176 | return String(this.value)
|
28177 | }
|
28178 |
|
28179 | [_inspect] () {
|
28180 | return `[BigInt: ${this.toString()}]}`
|
28181 | }
|
28182 | valueOf () {
|
28183 | return this.value
|
28184 | }
|
28185 | }
|
28186 |
|
28187 | const INTEGER = Symbol('integer')
|
28188 | function Integer (value) {
|
28189 | let num = Number(value)
|
28190 |
|
28191 | if (Object.is(num, -0)) num = 0
|
28192 |
|
28193 | if (global.BigInt && !Number.isSafeInteger(num)) {
|
28194 | return new BoxedBigInt(value)
|
28195 | } else {
|
28196 |
|
28197 | return Object.defineProperties(new Number(num), {
|
28198 | isNaN: {value: function () { return isNaN(this) }},
|
28199 | [_type]: {value: INTEGER},
|
28200 | [_inspect]: {value: () => `[Integer: ${value}]`}
|
28201 | })
|
28202 | }
|
28203 | }
|
28204 | function isInteger (obj) {
|
28205 | if (obj === null || typeof (obj) !== 'object') return false
|
28206 | return obj[_type] === INTEGER
|
28207 | }
|
28208 |
|
28209 | const FLOAT = Symbol('float')
|
28210 | function Float (value) {
|
28211 |
|
28212 | return Object.defineProperties(new Number(value), {
|
28213 | [_type]: {value: FLOAT},
|
28214 | [_inspect]: {value: () => `[Float: ${value}]`}
|
28215 | })
|
28216 | }
|
28217 | function isFloat (obj) {
|
28218 | if (obj === null || typeof (obj) !== 'object') return false
|
28219 | return obj[_type] === FLOAT
|
28220 | }
|
28221 |
|
28222 | function tomlType (value) {
|
28223 | const type = typeof value
|
28224 | if (type === 'object') {
|
28225 |
|
28226 | if (value === null) return 'null'
|
28227 | if (value instanceof Date) return 'datetime'
|
28228 |
|
28229 | if (_type in value) {
|
28230 | switch (value[_type]) {
|
28231 | case INLINE_TABLE: return 'inline-table'
|
28232 | case INLINE_LIST: return 'inline-list'
|
28233 |
|
28234 | case TABLE: return 'table'
|
28235 |
|
28236 | case LIST: return 'list'
|
28237 | case FLOAT: return 'float'
|
28238 | case INTEGER: return 'integer'
|
28239 | }
|
28240 | }
|
28241 | }
|
28242 | return type
|
28243 | }
|
28244 |
|
28245 | function makeParserClass (Parser) {
|
28246 | class TOMLParser extends Parser {
|
28247 | constructor () {
|
28248 | super()
|
28249 | this.ctx = this.obj = Table()
|
28250 | }
|
28251 |
|
28252 |
|
28253 | atEndOfWord () {
|
28254 | return this.char === CHAR_NUM || this.char === CTRL_I || this.char === CHAR_SP || this.atEndOfLine()
|
28255 | }
|
28256 | atEndOfLine () {
|
28257 | return this.char === Parser.END || this.char === CTRL_J || this.char === CTRL_M
|
28258 | }
|
28259 |
|
28260 | parseStart () {
|
28261 | if (this.char === Parser.END) {
|
28262 | return null
|
28263 | } else if (this.char === CHAR_LSQB) {
|
28264 | return this.call(this.parseTableOrList)
|
28265 | } else if (this.char === CHAR_NUM) {
|
28266 | return this.call(this.parseComment)
|
28267 | } else if (this.char === CTRL_J || this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M) {
|
28268 | return null
|
28269 | } else if (isAlphaNumQuoteHyphen(this.char)) {
|
28270 | return this.callNow(this.parseAssignStatement)
|
28271 | } else {
|
28272 | throw this.error(new TomlError(`Unknown character "${this.char}"`))
|
28273 | }
|
28274 | }
|
28275 |
|
28276 |
|
28277 |
|
28278 | parseWhitespaceToEOL () {
|
28279 | if (this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M) {
|
28280 | return null
|
28281 | } else if (this.char === CHAR_NUM) {
|
28282 | return this.goto(this.parseComment)
|
28283 | } else if (this.char === Parser.END || this.char === CTRL_J) {
|
28284 | return this.return()
|
28285 | } else {
|
28286 | throw this.error(new TomlError('Unexpected character, expected only whitespace or comments till end of line'))
|
28287 | }
|
28288 | }
|
28289 |
|
28290 |
|
28291 | parseAssignStatement () {
|
28292 | return this.callNow(this.parseAssign, this.recordAssignStatement)
|
28293 | }
|
28294 | recordAssignStatement (kv) {
|
28295 | let target = this.ctx
|
28296 | let finalKey = kv.key.pop()
|
28297 | for (let kw of kv.key) {
|
28298 | if (hasKey(target, kw) && (!isTable(target[kw]) || target[kw][_declared])) {
|
28299 | throw this.error(new TomlError("Can't redefine existing key"))
|
28300 | }
|
28301 | target = target[kw] = target[kw] || Table()
|
28302 | }
|
28303 | if (hasKey(target, finalKey)) {
|
28304 | throw this.error(new TomlError("Can't redefine existing key"))
|
28305 | }
|
28306 |
|
28307 | if (isInteger(kv.value) || isFloat(kv.value)) {
|
28308 | target[finalKey] = kv.value.valueOf()
|
28309 | } else {
|
28310 | target[finalKey] = kv.value
|
28311 | }
|
28312 | return this.goto(this.parseWhitespaceToEOL)
|
28313 | }
|
28314 |
|
28315 |
|
28316 | parseAssign () {
|
28317 | return this.callNow(this.parseKeyword, this.recordAssignKeyword)
|
28318 | }
|
28319 | recordAssignKeyword (key) {
|
28320 | if (this.state.resultTable) {
|
28321 | this.state.resultTable.push(key)
|
28322 | } else {
|
28323 | this.state.resultTable = [key]
|
28324 | }
|
28325 | return this.goto(this.parseAssignKeywordPreDot)
|
28326 | }
|
28327 | parseAssignKeywordPreDot () {
|
28328 | if (this.char === CHAR_PERIOD) {
|
28329 | return this.next(this.parseAssignKeywordPostDot)
|
28330 | } else if (this.char !== CHAR_SP && this.char !== CTRL_I) {
|
28331 | return this.goto(this.parseAssignEqual)
|
28332 | }
|
28333 | }
|
28334 | parseAssignKeywordPostDot () {
|
28335 | if (this.char !== CHAR_SP && this.char !== CTRL_I) {
|
28336 | return this.callNow(this.parseKeyword, this.recordAssignKeyword)
|
28337 | }
|
28338 | }
|
28339 |
|
28340 | parseAssignEqual () {
|
28341 | if (this.char === CHAR_EQUALS) {
|
28342 | return this.next(this.parseAssignPreValue)
|
28343 | } else {
|
28344 | throw this.error(new TomlError('Invalid character, expected "="'))
|
28345 | }
|
28346 | }
|
28347 | parseAssignPreValue () {
|
28348 | if (this.char === CHAR_SP || this.char === CTRL_I) {
|
28349 | return null
|
28350 | } else {
|
28351 | return this.callNow(this.parseValue, this.recordAssignValue)
|
28352 | }
|
28353 | }
|
28354 | recordAssignValue (value) {
|
28355 | return this.returnNow({key: this.state.resultTable, value: value})
|
28356 | }
|
28357 |
|
28358 |
|
28359 | parseComment () {
|
28360 | do {
|
28361 | if (this.char === Parser.END || this.char === CTRL_J) {
|
28362 | return this.return()
|
28363 | }
|
28364 | } while (this.nextChar())
|
28365 | }
|
28366 |
|
28367 |
|
28368 | parseTableOrList () {
|
28369 | if (this.char === CHAR_LSQB) {
|
28370 | this.next(this.parseList)
|
28371 | } else {
|
28372 | return this.goto(this.parseTable)
|
28373 | }
|
28374 | }
|
28375 |
|
28376 |
|
28377 | parseTable () {
|
28378 | this.ctx = this.obj
|
28379 | return this.goto(this.parseTableNext)
|
28380 | }
|
28381 | parseTableNext () {
|
28382 | if (this.char === CHAR_SP || this.char === CTRL_I) {
|
28383 | return null
|
28384 | } else {
|
28385 | return this.callNow(this.parseKeyword, this.parseTableMore)
|
28386 | }
|
28387 | }
|
28388 | parseTableMore (keyword) {
|
28389 | if (this.char === CHAR_SP || this.char === CTRL_I) {
|
28390 | return null
|
28391 | } else if (this.char === CHAR_RSQB) {
|
28392 | if (hasKey(this.ctx, keyword) && (!isTable(this.ctx[keyword]) || this.ctx[keyword][_declared])) {
|
28393 | throw this.error(new TomlError("Can't redefine existing key"))
|
28394 | } else {
|
28395 | this.ctx = this.ctx[keyword] = this.ctx[keyword] || Table()
|
28396 | this.ctx[_declared] = true
|
28397 | }
|
28398 | return this.next(this.parseWhitespaceToEOL)
|
28399 | } else if (this.char === CHAR_PERIOD) {
|
28400 | if (!hasKey(this.ctx, keyword)) {
|
28401 | this.ctx = this.ctx[keyword] = Table()
|
28402 | } else if (isTable(this.ctx[keyword])) {
|
28403 | this.ctx = this.ctx[keyword]
|
28404 | } else if (isList(this.ctx[keyword])) {
|
28405 | this.ctx = this.ctx[keyword][this.ctx[keyword].length - 1]
|
28406 | } else {
|
28407 | throw this.error(new TomlError("Can't redefine existing key"))
|
28408 | }
|
28409 | return this.next(this.parseTableNext)
|
28410 | } else {
|
28411 | throw this.error(new TomlError('Unexpected character, expected whitespace, . or ]'))
|
28412 | }
|
28413 | }
|
28414 |
|
28415 |
|
28416 | parseList () {
|
28417 | this.ctx = this.obj
|
28418 | return this.goto(this.parseListNext)
|
28419 | }
|
28420 | parseListNext () {
|
28421 | if (this.char === CHAR_SP || this.char === CTRL_I) {
|
28422 | return null
|
28423 | } else {
|
28424 | return this.callNow(this.parseKeyword, this.parseListMore)
|
28425 | }
|
28426 | }
|
28427 | parseListMore (keyword) {
|
28428 | if (this.char === CHAR_SP || this.char === CTRL_I) {
|
28429 | return null
|
28430 | } else if (this.char === CHAR_RSQB) {
|
28431 | if (!hasKey(this.ctx, keyword)) {
|
28432 | this.ctx[keyword] = List()
|
28433 | }
|
28434 | if (isInlineList(this.ctx[keyword])) {
|
28435 | throw this.error(new TomlError("Can't extend an inline array"))
|
28436 | } else if (isList(this.ctx[keyword])) {
|
28437 | const next = Table()
|
28438 | this.ctx[keyword].push(next)
|
28439 | this.ctx = next
|
28440 | } else {
|
28441 | throw this.error(new TomlError("Can't redefine an existing key"))
|
28442 | }
|
28443 | return this.next(this.parseListEnd)
|
28444 | } else if (this.char === CHAR_PERIOD) {
|
28445 | if (!hasKey(this.ctx, keyword)) {
|
28446 | this.ctx = this.ctx[keyword] = Table()
|
28447 | } else if (isInlineList(this.ctx[keyword])) {
|
28448 | throw this.error(new TomlError("Can't extend an inline array"))
|
28449 | } else if (isInlineTable(this.ctx[keyword])) {
|
28450 | throw this.error(new TomlError("Can't extend an inline table"))
|
28451 | } else if (isList(this.ctx[keyword])) {
|
28452 | this.ctx = this.ctx[keyword][this.ctx[keyword].length - 1]
|
28453 | } else if (isTable(this.ctx[keyword])) {
|
28454 | this.ctx = this.ctx[keyword]
|
28455 | } else {
|
28456 | throw this.error(new TomlError("Can't redefine an existing key"))
|
28457 | }
|
28458 | return this.next(this.parseListNext)
|
28459 | } else {
|
28460 | throw this.error(new TomlError('Unexpected character, expected whitespace, . or ]'))
|
28461 | }
|
28462 | }
|
28463 | parseListEnd (keyword) {
|
28464 | if (this.char === CHAR_RSQB) {
|
28465 | return this.next(this.parseWhitespaceToEOL)
|
28466 | } else {
|
28467 | throw this.error(new TomlError('Unexpected character, expected whitespace, . or ]'))
|
28468 | }
|
28469 | }
|
28470 |
|
28471 |
|
28472 | parseValue () {
|
28473 | if (this.char === Parser.END) {
|
28474 | throw this.error(new TomlError('Key without value'))
|
28475 | } else if (this.char === CHAR_QUOT) {
|
28476 | return this.next(this.parseDoubleString)
|
28477 | } if (this.char === CHAR_APOS) {
|
28478 | return this.next(this.parseSingleString)
|
28479 | } else if (this.char === CHAR_HYPHEN || this.char === CHAR_PLUS) {
|
28480 | return this.goto(this.parseNumberSign)
|
28481 | } else if (this.char === CHAR_i) {
|
28482 | return this.next(this.parseInf)
|
28483 | } else if (this.char === CHAR_n) {
|
28484 | return this.next(this.parseNan)
|
28485 | } else if (isDigit(this.char)) {
|
28486 | return this.goto(this.parseNumberOrDateTime)
|
28487 | } else if (this.char === CHAR_t || this.char === CHAR_f) {
|
28488 | return this.goto(this.parseBoolean)
|
28489 | } else if (this.char === CHAR_LSQB) {
|
28490 | return this.call(this.parseInlineList, this.recordValue)
|
28491 | } else if (this.char === CHAR_LCUB) {
|
28492 | return this.call(this.parseInlineTable, this.recordValue)
|
28493 | } else {
|
28494 | throw this.error(new TomlError('Unexpected character, expecting string, number, datetime, boolean, inline array or inline table'))
|
28495 | }
|
28496 | }
|
28497 | recordValue (value) {
|
28498 | return this.returnNow(value)
|
28499 | }
|
28500 |
|
28501 | parseInf () {
|
28502 | if (this.char === CHAR_n) {
|
28503 | return this.next(this.parseInf2)
|
28504 | } else {
|
28505 | throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))
|
28506 | }
|
28507 | }
|
28508 | parseInf2 () {
|
28509 | if (this.char === CHAR_f) {
|
28510 | if (this.state.buf === '-') {
|
28511 | return this.return(-Infinity)
|
28512 | } else {
|
28513 | return this.return(Infinity)
|
28514 | }
|
28515 | } else {
|
28516 | throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))
|
28517 | }
|
28518 | }
|
28519 |
|
28520 | parseNan () {
|
28521 | if (this.char === CHAR_a) {
|
28522 | return this.next(this.parseNan2)
|
28523 | } else {
|
28524 | throw this.error(new TomlError('Unexpected character, expected "nan"'))
|
28525 | }
|
28526 | }
|
28527 | parseNan2 () {
|
28528 | if (this.char === CHAR_n) {
|
28529 | return this.return(NaN)
|
28530 | } else {
|
28531 | throw this.error(new TomlError('Unexpected character, expected "nan"'))
|
28532 | }
|
28533 | }
|
28534 |
|
28535 |
|
28536 | parseKeyword () {
|
28537 | if (this.char === CHAR_QUOT) {
|
28538 | return this.next(this.parseBasicString)
|
28539 | } else if (this.char === CHAR_APOS) {
|
28540 | return this.next(this.parseLiteralString)
|
28541 | } else {
|
28542 | return this.goto(this.parseBareKey)
|
28543 | }
|
28544 | }
|
28545 |
|
28546 |
|
28547 | parseBareKey () {
|
28548 | do {
|
28549 | if (this.char === Parser.END) {
|
28550 | throw this.error(new TomlError('Key ended without value'))
|
28551 | } else if (isAlphaNumHyphen(this.char)) {
|
28552 | this.consume()
|
28553 | } else if (this.state.buf.length === 0) {
|
28554 | throw this.error(new TomlError('Empty bare keys are not allowed'))
|
28555 | } else {
|
28556 | return this.returnNow()
|
28557 | }
|
28558 | } while (this.nextChar())
|
28559 | }
|
28560 |
|
28561 |
|
28562 | parseSingleString () {
|
28563 | if (this.char === CHAR_APOS) {
|
28564 | return this.next(this.parseLiteralMultiStringMaybe)
|
28565 | } else {
|
28566 | return this.goto(this.parseLiteralString)
|
28567 | }
|
28568 | }
|
28569 | parseLiteralString () {
|
28570 | do {
|
28571 | if (this.char === CHAR_APOS) {
|
28572 | return this.return()
|
28573 | } else if (this.atEndOfLine()) {
|
28574 | throw this.error(new TomlError('Unterminated string'))
|
28575 | } else if (this.char === CHAR_DEL || (this.char <= CTRL_CHAR_BOUNDARY && this.char !== CTRL_I)) {
|
28576 | throw this.errorControlCharInString()
|
28577 | } else {
|
28578 | this.consume()
|
28579 | }
|
28580 | } while (this.nextChar())
|
28581 | }
|
28582 | parseLiteralMultiStringMaybe () {
|
28583 | if (this.char === CHAR_APOS) {
|
28584 | return this.next(this.parseLiteralMultiString)
|
28585 | } else {
|
28586 | return this.returnNow()
|
28587 | }
|
28588 | }
|
28589 | parseLiteralMultiString () {
|
28590 | if (this.char === CTRL_M) {
|
28591 | return null
|
28592 | } else if (this.char === CTRL_J) {
|
28593 | return this.next(this.parseLiteralMultiStringContent)
|
28594 | } else {
|
28595 | return this.goto(this.parseLiteralMultiStringContent)
|
28596 | }
|
28597 | }
|
28598 | parseLiteralMultiStringContent () {
|
28599 | do {
|
28600 | if (this.char === CHAR_APOS) {
|
28601 | return this.next(this.parseLiteralMultiEnd)
|
28602 | } else if (this.char === Parser.END) {
|
28603 | throw this.error(new TomlError('Unterminated multi-line string'))
|
28604 | } else if (this.char === CHAR_DEL || (this.char <= CTRL_CHAR_BOUNDARY && this.char !== CTRL_I && this.char !== CTRL_J && this.char !== CTRL_M)) {
|
28605 | throw this.errorControlCharInString()
|
28606 | } else {
|
28607 | this.consume()
|
28608 | }
|
28609 | } while (this.nextChar())
|
28610 | }
|
28611 | parseLiteralMultiEnd () {
|
28612 | if (this.char === CHAR_APOS) {
|
28613 | return this.next(this.parseLiteralMultiEnd2)
|
28614 | } else {
|
28615 | this.state.buf += "'"
|
28616 | return this.goto(this.parseLiteralMultiStringContent)
|
28617 | }
|
28618 | }
|
28619 | parseLiteralMultiEnd2 () {
|
28620 | if (this.char === CHAR_APOS) {
|
28621 | return this.return()
|
28622 | } else {
|
28623 | this.state.buf += "''"
|
28624 | return this.goto(this.parseLiteralMultiStringContent)
|
28625 | }
|
28626 | }
|
28627 |
|
28628 |
|
28629 | parseDoubleString () {
|
28630 | if (this.char === CHAR_QUOT) {
|
28631 | return this.next(this.parseMultiStringMaybe)
|
28632 | } else {
|
28633 | return this.goto(this.parseBasicString)
|
28634 | }
|
28635 | }
|
28636 | parseBasicString () {
|
28637 | do {
|
28638 | if (this.char === CHAR_BSOL) {
|
28639 | return this.call(this.parseEscape, this.recordEscapeReplacement)
|
28640 | } else if (this.char === CHAR_QUOT) {
|
28641 | return this.return()
|
28642 | } else if (this.atEndOfLine()) {
|
28643 | throw this.error(new TomlError('Unterminated string'))
|
28644 | } else if (this.char === CHAR_DEL || (this.char <= CTRL_CHAR_BOUNDARY && this.char !== CTRL_I)) {
|
28645 | throw this.errorControlCharInString()
|
28646 | } else {
|
28647 | this.consume()
|
28648 | }
|
28649 | } while (this.nextChar())
|
28650 | }
|
28651 | recordEscapeReplacement (replacement) {
|
28652 | this.state.buf += replacement
|
28653 | return this.goto(this.parseBasicString)
|
28654 | }
|
28655 | parseMultiStringMaybe () {
|
28656 | if (this.char === CHAR_QUOT) {
|
28657 | return this.next(this.parseMultiString)
|
28658 | } else {
|
28659 | return this.returnNow()
|
28660 | }
|
28661 | }
|
28662 | parseMultiString () {
|
28663 | if (this.char === CTRL_M) {
|
28664 | return null
|
28665 | } else if (this.char === CTRL_J) {
|
28666 | return this.next(this.parseMultiStringContent)
|
28667 | } else {
|
28668 | return this.goto(this.parseMultiStringContent)
|
28669 | }
|
28670 | }
|
28671 | parseMultiStringContent () {
|
28672 | do {
|
28673 | if (this.char === CHAR_BSOL) {
|
28674 | return this.call(this.parseMultiEscape, this.recordMultiEscapeReplacement)
|
28675 | } else if (this.char === CHAR_QUOT) {
|
28676 | return this.next(this.parseMultiEnd)
|
28677 | } else if (this.char === Parser.END) {
|
28678 | throw this.error(new TomlError('Unterminated multi-line string'))
|
28679 | } else if (this.char === CHAR_DEL || (this.char <= CTRL_CHAR_BOUNDARY && this.char !== CTRL_I && this.char !== CTRL_J && this.char !== CTRL_M)) {
|
28680 | throw this.errorControlCharInString()
|
28681 | } else {
|
28682 | this.consume()
|
28683 | }
|
28684 | } while (this.nextChar())
|
28685 | }
|
28686 | errorControlCharInString () {
|
28687 | let displayCode = '\\u00'
|
28688 | if (this.char < 16) {
|
28689 | displayCode += '0'
|
28690 | }
|
28691 | displayCode += this.char.toString(16)
|
28692 |
|
28693 | return this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${displayCode} instead`))
|
28694 | }
|
28695 | recordMultiEscapeReplacement (replacement) {
|
28696 | this.state.buf += replacement
|
28697 | return this.goto(this.parseMultiStringContent)
|
28698 | }
|
28699 | parseMultiEnd () {
|
28700 | if (this.char === CHAR_QUOT) {
|
28701 | return this.next(this.parseMultiEnd2)
|
28702 | } else {
|
28703 | this.state.buf += '"'
|
28704 | return this.goto(this.parseMultiStringContent)
|
28705 | }
|
28706 | }
|
28707 | parseMultiEnd2 () {
|
28708 | if (this.char === CHAR_QUOT) {
|
28709 | return this.return()
|
28710 | } else {
|
28711 | this.state.buf += '""'
|
28712 | return this.goto(this.parseMultiStringContent)
|
28713 | }
|
28714 | }
|
28715 | parseMultiEscape () {
|
28716 | if (this.char === CTRL_M || this.char === CTRL_J) {
|
28717 | return this.next(this.parseMultiTrim)
|
28718 | } else if (this.char === CHAR_SP || this.char === CTRL_I) {
|
28719 | return this.next(this.parsePreMultiTrim)
|
28720 | } else {
|
28721 | return this.goto(this.parseEscape)
|
28722 | }
|
28723 | }
|
28724 | parsePreMultiTrim () {
|
28725 | if (this.char === CHAR_SP || this.char === CTRL_I) {
|
28726 | return null
|
28727 | } else if (this.char === CTRL_M || this.char === CTRL_J) {
|
28728 | return this.next(this.parseMultiTrim)
|
28729 | } else {
|
28730 | throw this.error(new TomlError("Can't escape whitespace"))
|
28731 | }
|
28732 | }
|
28733 | parseMultiTrim () {
|
28734 |
|
28735 | if (this.char === CTRL_J || this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M) {
|
28736 | return null
|
28737 | } else {
|
28738 | return this.returnNow()
|
28739 | }
|
28740 | }
|
28741 | parseEscape () {
|
28742 | if (this.char in escapes) {
|
28743 | return this.return(escapes[this.char])
|
28744 | } else if (this.char === CHAR_u) {
|
28745 | return this.call(this.parseSmallUnicode, this.parseUnicodeReturn)
|
28746 | } else if (this.char === CHAR_U) {
|
28747 | return this.call(this.parseLargeUnicode, this.parseUnicodeReturn)
|
28748 | } else {
|
28749 | throw this.error(new TomlError('Unknown escape character: ' + this.char))
|
28750 | }
|
28751 | }
|
28752 | parseUnicodeReturn (char) {
|
28753 | try {
|
28754 | const codePoint = parseInt(char, 16)
|
28755 | if (codePoint >= SURROGATE_FIRST && codePoint <= SURROGATE_LAST) {
|
28756 | throw this.error(new TomlError('Invalid unicode, character in range 0xD800 - 0xDFFF is reserved'))
|
28757 | }
|
28758 | return this.returnNow(String.fromCodePoint(codePoint))
|
28759 | } catch (err) {
|
28760 | throw this.error(TomlError.wrap(err))
|
28761 | }
|
28762 | }
|
28763 | parseSmallUnicode () {
|
28764 | if (!isHexit(this.char)) {
|
28765 | throw this.error(new TomlError('Invalid character in unicode sequence, expected hex'))
|
28766 | } else {
|
28767 | this.consume()
|
28768 | if (this.state.buf.length >= 4) return this.return()
|
28769 | }
|
28770 | }
|
28771 | parseLargeUnicode () {
|
28772 | if (!isHexit(this.char)) {
|
28773 | throw this.error(new TomlError('Invalid character in unicode sequence, expected hex'))
|
28774 | } else {
|
28775 | this.consume()
|
28776 | if (this.state.buf.length >= 8) return this.return()
|
28777 | }
|
28778 | }
|
28779 |
|
28780 |
|
28781 | parseNumberSign () {
|
28782 | this.consume()
|
28783 | return this.next(this.parseMaybeSignedInfOrNan)
|
28784 | }
|
28785 | parseMaybeSignedInfOrNan () {
|
28786 | if (this.char === CHAR_i) {
|
28787 | return this.next(this.parseInf)
|
28788 | } else if (this.char === CHAR_n) {
|
28789 | return this.next(this.parseNan)
|
28790 | } else {
|
28791 | return this.callNow(this.parseNoUnder, this.parseNumberIntegerStart)
|
28792 | }
|
28793 | }
|
28794 | parseNumberIntegerStart () {
|
28795 | if (this.char === CHAR_0) {
|
28796 | this.consume()
|
28797 | return this.next(this.parseNumberIntegerExponentOrDecimal)
|
28798 | } else {
|
28799 | return this.goto(this.parseNumberInteger)
|
28800 | }
|
28801 | }
|
28802 | parseNumberIntegerExponentOrDecimal () {
|
28803 | if (this.char === CHAR_PERIOD) {
|
28804 | this.consume()
|
28805 | return this.call(this.parseNoUnder, this.parseNumberFloat)
|
28806 | } else if (this.char === CHAR_E || this.char === CHAR_e) {
|
28807 | this.consume()
|
28808 | return this.next(this.parseNumberExponentSign)
|
28809 | } else {
|
28810 | return this.returnNow(Integer(this.state.buf))
|
28811 | }
|
28812 | }
|
28813 | parseNumberInteger () {
|
28814 | if (isDigit(this.char)) {
|
28815 | this.consume()
|
28816 | } else if (this.char === CHAR_LOWBAR) {
|
28817 | return this.call(this.parseNoUnder)
|
28818 | } else if (this.char === CHAR_E || this.char === CHAR_e) {
|
28819 | this.consume()
|
28820 | return this.next(this.parseNumberExponentSign)
|
28821 | } else if (this.char === CHAR_PERIOD) {
|
28822 | this.consume()
|
28823 | return this.call(this.parseNoUnder, this.parseNumberFloat)
|
28824 | } else {
|
28825 | const result = Integer(this.state.buf)
|
28826 |
|
28827 | if (result.isNaN()) {
|
28828 | throw this.error(new TomlError('Invalid number'))
|
28829 | } else {
|
28830 | return this.returnNow(result)
|
28831 | }
|
28832 | }
|
28833 | }
|
28834 | parseNoUnder () {
|
28835 | if (this.char === CHAR_LOWBAR || this.char === CHAR_PERIOD || this.char === CHAR_E || this.char === CHAR_e) {
|
28836 | throw this.error(new TomlError('Unexpected character, expected digit'))
|
28837 | } else if (this.atEndOfWord()) {
|
28838 | throw this.error(new TomlError('Incomplete number'))
|
28839 | }
|
28840 | return this.returnNow()
|
28841 | }
|
28842 | parseNumberFloat () {
|
28843 | if (this.char === CHAR_LOWBAR) {
|
28844 | return this.call(this.parseNoUnder, this.parseNumberFloat)
|
28845 | } else if (isDigit(this.char)) {
|
28846 | this.consume()
|
28847 | } else if (this.char === CHAR_E || this.char === CHAR_e) {
|
28848 | this.consume()
|
28849 | return this.next(this.parseNumberExponentSign)
|
28850 | } else {
|
28851 | return this.returnNow(Float(this.state.buf))
|
28852 | }
|
28853 | }
|
28854 | parseNumberExponentSign () {
|
28855 | if (isDigit(this.char)) {
|
28856 | return this.goto(this.parseNumberExponent)
|
28857 | } else if (this.char === CHAR_HYPHEN || this.char === CHAR_PLUS) {
|
28858 | this.consume()
|
28859 | this.call(this.parseNoUnder, this.parseNumberExponent)
|
28860 | } else {
|
28861 | throw this.error(new TomlError('Unexpected character, expected -, + or digit'))
|
28862 | }
|
28863 | }
|
28864 | parseNumberExponent () {
|
28865 | if (isDigit(this.char)) {
|
28866 | this.consume()
|
28867 | } else if (this.char === CHAR_LOWBAR) {
|
28868 | return this.call(this.parseNoUnder)
|
28869 | } else {
|
28870 | return this.returnNow(Float(this.state.buf))
|
28871 | }
|
28872 | }
|
28873 |
|
28874 |
|
28875 | parseNumberOrDateTime () {
|
28876 | if (this.char === CHAR_0) {
|
28877 | this.consume()
|
28878 | return this.next(this.parseNumberBaseOrDateTime)
|
28879 | } else {
|
28880 | return this.goto(this.parseNumberOrDateTimeOnly)
|
28881 | }
|
28882 | }
|
28883 | parseNumberOrDateTimeOnly () {
|
28884 |
|
28885 | if (this.char === CHAR_LOWBAR) {
|
28886 | return this.call(this.parseNoUnder, this.parseNumberInteger)
|
28887 | } else if (isDigit(this.char)) {
|
28888 | this.consume()
|
28889 | if (this.state.buf.length > 4) this.next(this.parseNumberInteger)
|
28890 | } else if (this.char === CHAR_E || this.char === CHAR_e) {
|
28891 | this.consume()
|
28892 | return this.next(this.parseNumberExponentSign)
|
28893 | } else if (this.char === CHAR_PERIOD) {
|
28894 | this.consume()
|
28895 | return this.call(this.parseNoUnder, this.parseNumberFloat)
|
28896 | } else if (this.char === CHAR_HYPHEN) {
|
28897 | return this.goto(this.parseDateTime)
|
28898 | } else if (this.char === CHAR_COLON) {
|
28899 | return this.goto(this.parseOnlyTimeHour)
|
28900 | } else {
|
28901 | return this.returnNow(Integer(this.state.buf))
|
28902 | }
|
28903 | }
|
28904 | parseDateTimeOnly () {
|
28905 | if (this.state.buf.length < 4) {
|
28906 | if (isDigit(this.char)) {
|
28907 | return this.consume()
|
28908 | } else if (this.char === CHAR_COLON) {
|
28909 | return this.goto(this.parseOnlyTimeHour)
|
28910 | } else {
|
28911 | throw this.error(new TomlError('Expected digit while parsing year part of a date'))
|
28912 | }
|
28913 | } else {
|
28914 | if (this.char === CHAR_HYPHEN) {
|
28915 | return this.goto(this.parseDateTime)
|
28916 | } else {
|
28917 | throw this.error(new TomlError('Expected hyphen (-) while parsing year part of date'))
|
28918 | }
|
28919 | }
|
28920 | }
|
28921 | parseNumberBaseOrDateTime () {
|
28922 | if (this.char === CHAR_b) {
|
28923 | this.consume()
|
28924 | return this.call(this.parseNoUnder, this.parseIntegerBin)
|
28925 | } else if (this.char === CHAR_o) {
|
28926 | this.consume()
|
28927 | return this.call(this.parseNoUnder, this.parseIntegerOct)
|
28928 | } else if (this.char === CHAR_x) {
|
28929 | this.consume()
|
28930 | return this.call(this.parseNoUnder, this.parseIntegerHex)
|
28931 | } else if (this.char === CHAR_PERIOD) {
|
28932 | return this.goto(this.parseNumberInteger)
|
28933 | } else if (isDigit(this.char)) {
|
28934 | return this.goto(this.parseDateTimeOnly)
|
28935 | } else {
|
28936 | return this.returnNow(Integer(this.state.buf))
|
28937 | }
|
28938 | }
|
28939 | parseIntegerHex () {
|
28940 | if (isHexit(this.char)) {
|
28941 | this.consume()
|
28942 | } else if (this.char === CHAR_LOWBAR) {
|
28943 | return this.call(this.parseNoUnder)
|
28944 | } else {
|
28945 | const result = Integer(this.state.buf)
|
28946 |
|
28947 | if (result.isNaN()) {
|
28948 | throw this.error(new TomlError('Invalid number'))
|
28949 | } else {
|
28950 | return this.returnNow(result)
|
28951 | }
|
28952 | }
|
28953 | }
|
28954 | parseIntegerOct () {
|
28955 | if (isOctit(this.char)) {
|
28956 | this.consume()
|
28957 | } else if (this.char === CHAR_LOWBAR) {
|
28958 | return this.call(this.parseNoUnder)
|
28959 | } else {
|
28960 | const result = Integer(this.state.buf)
|
28961 |
|
28962 | if (result.isNaN()) {
|
28963 | throw this.error(new TomlError('Invalid number'))
|
28964 | } else {
|
28965 | return this.returnNow(result)
|
28966 | }
|
28967 | }
|
28968 | }
|
28969 | parseIntegerBin () {
|
28970 | if (isBit(this.char)) {
|
28971 | this.consume()
|
28972 | } else if (this.char === CHAR_LOWBAR) {
|
28973 | return this.call(this.parseNoUnder)
|
28974 | } else {
|
28975 | const result = Integer(this.state.buf)
|
28976 |
|
28977 | if (result.isNaN()) {
|
28978 | throw this.error(new TomlError('Invalid number'))
|
28979 | } else {
|
28980 | return this.returnNow(result)
|
28981 | }
|
28982 | }
|
28983 | }
|
28984 |
|
28985 |
|
28986 | parseDateTime () {
|
28987 |
|
28988 | if (this.state.buf.length < 4) {
|
28989 | throw this.error(new TomlError('Years less than 1000 must be zero padded to four characters'))
|
28990 | }
|
28991 | this.state.result = this.state.buf
|
28992 | this.state.buf = ''
|
28993 | return this.next(this.parseDateMonth)
|
28994 | }
|
28995 | parseDateMonth () {
|
28996 | if (this.char === CHAR_HYPHEN) {
|
28997 | if (this.state.buf.length < 2) {
|
28998 | throw this.error(new TomlError('Months less than 10 must be zero padded to two characters'))
|
28999 | }
|
29000 | this.state.result += '-' + this.state.buf
|
29001 | this.state.buf = ''
|
29002 | return this.next(this.parseDateDay)
|
29003 | } else if (isDigit(this.char)) {
|
29004 | this.consume()
|
29005 | } else {
|
29006 | throw this.error(new TomlError('Incomplete datetime'))
|
29007 | }
|
29008 | }
|
29009 | parseDateDay () {
|
29010 | if (this.char === CHAR_T || this.char === CHAR_SP) {
|
29011 | if (this.state.buf.length < 2) {
|
29012 | throw this.error(new TomlError('Days less than 10 must be zero padded to two characters'))
|
29013 | }
|
29014 | this.state.result += '-' + this.state.buf
|
29015 | this.state.buf = ''
|
29016 | return this.next(this.parseStartTimeHour)
|
29017 | } else if (this.atEndOfWord()) {
|
29018 | return this.return(createDate(this.state.result + '-' + this.state.buf))
|
29019 | } else if (isDigit(this.char)) {
|
29020 | this.consume()
|
29021 | } else {
|
29022 | throw this.error(new TomlError('Incomplete datetime'))
|
29023 | }
|
29024 | }
|
29025 | parseStartTimeHour () {
|
29026 | if (this.atEndOfWord()) {
|
29027 | return this.returnNow(createDate(this.state.result))
|
29028 | } else {
|
29029 | return this.goto(this.parseTimeHour)
|
29030 | }
|
29031 | }
|
29032 | parseTimeHour () {
|
29033 | if (this.char === CHAR_COLON) {
|
29034 | if (this.state.buf.length < 2) {
|
29035 | throw this.error(new TomlError('Hours less than 10 must be zero padded to two characters'))
|
29036 | }
|
29037 | this.state.result += 'T' + this.state.buf
|
29038 | this.state.buf = ''
|
29039 | return this.next(this.parseTimeMin)
|
29040 | } else if (isDigit(this.char)) {
|
29041 | this.consume()
|
29042 | } else {
|
29043 | throw this.error(new TomlError('Incomplete datetime'))
|
29044 | }
|
29045 | }
|
29046 | parseTimeMin () {
|
29047 | if (this.state.buf.length < 2 && isDigit(this.char)) {
|
29048 | this.consume()
|
29049 | } else if (this.state.buf.length === 2 && this.char === CHAR_COLON) {
|
29050 | this.state.result += ':' + this.state.buf
|
29051 | this.state.buf = ''
|
29052 | return this.next(this.parseTimeSec)
|
29053 | } else {
|
29054 | throw this.error(new TomlError('Incomplete datetime'))
|
29055 | }
|
29056 | }
|
29057 | parseTimeSec () {
|
29058 | if (isDigit(this.char)) {
|
29059 | this.consume()
|
29060 | if (this.state.buf.length === 2) {
|
29061 | this.state.result += ':' + this.state.buf
|
29062 | this.state.buf = ''
|
29063 | return this.next(this.parseTimeZoneOrFraction)
|
29064 | }
|
29065 | } else {
|
29066 | throw this.error(new TomlError('Incomplete datetime'))
|
29067 | }
|
29068 | }
|
29069 |
|
29070 | parseOnlyTimeHour () {
|
29071 |
|
29072 | if (this.char === CHAR_COLON) {
|
29073 | if (this.state.buf.length < 2) {
|
29074 | throw this.error(new TomlError('Hours less than 10 must be zero padded to two characters'))
|
29075 | }
|
29076 | this.state.result = this.state.buf
|
29077 | this.state.buf = ''
|
29078 | return this.next(this.parseOnlyTimeMin)
|
29079 | } else {
|
29080 | throw this.error(new TomlError('Incomplete time'))
|
29081 | }
|
29082 | }
|
29083 | parseOnlyTimeMin () {
|
29084 | if (this.state.buf.length < 2 && isDigit(this.char)) {
|
29085 | this.consume()
|
29086 | } else if (this.state.buf.length === 2 && this.char === CHAR_COLON) {
|
29087 | this.state.result += ':' + this.state.buf
|
29088 | this.state.buf = ''
|
29089 | return this.next(this.parseOnlyTimeSec)
|
29090 | } else {
|
29091 | throw this.error(new TomlError('Incomplete time'))
|
29092 | }
|
29093 | }
|
29094 | parseOnlyTimeSec () {
|
29095 | if (isDigit(this.char)) {
|
29096 | this.consume()
|
29097 | if (this.state.buf.length === 2) {
|
29098 | return this.next(this.parseOnlyTimeFractionMaybe)
|
29099 | }
|
29100 | } else {
|
29101 | throw this.error(new TomlError('Incomplete time'))
|
29102 | }
|
29103 | }
|
29104 | parseOnlyTimeFractionMaybe () {
|
29105 | this.state.result += ':' + this.state.buf
|
29106 | if (this.char === CHAR_PERIOD) {
|
29107 | this.state.buf = ''
|
29108 | this.next(this.parseOnlyTimeFraction)
|
29109 | } else {
|
29110 | return this.return(createTime(this.state.result))
|
29111 | }
|
29112 | }
|
29113 | parseOnlyTimeFraction () {
|
29114 | if (isDigit(this.char)) {
|
29115 | this.consume()
|
29116 | } else if (this.atEndOfWord()) {
|
29117 | if (this.state.buf.length === 0) throw this.error(new TomlError('Expected digit in milliseconds'))
|
29118 | return this.returnNow(createTime(this.state.result + '.' + this.state.buf))
|
29119 | } else {
|
29120 | throw this.error(new TomlError('Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z'))
|
29121 | }
|
29122 | }
|
29123 |
|
29124 | parseTimeZoneOrFraction () {
|
29125 | if (this.char === CHAR_PERIOD) {
|
29126 | this.consume()
|
29127 | this.next(this.parseDateTimeFraction)
|
29128 | } else if (this.char === CHAR_HYPHEN || this.char === CHAR_PLUS) {
|
29129 | this.consume()
|
29130 | this.next(this.parseTimeZoneHour)
|
29131 | } else if (this.char === CHAR_Z) {
|
29132 | this.consume()
|
29133 | return this.return(createDateTime(this.state.result + this.state.buf))
|
29134 | } else if (this.atEndOfWord()) {
|
29135 | return this.returnNow(createDateTimeFloat(this.state.result + this.state.buf))
|
29136 | } else {
|
29137 | throw this.error(new TomlError('Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z'))
|
29138 | }
|
29139 | }
|
29140 | parseDateTimeFraction () {
|
29141 | if (isDigit(this.char)) {
|
29142 | this.consume()
|
29143 | } else if (this.state.buf.length === 1) {
|
29144 | throw this.error(new TomlError('Expected digit in milliseconds'))
|
29145 | } else if (this.char === CHAR_HYPHEN || this.char === CHAR_PLUS) {
|
29146 | this.consume()
|
29147 | this.next(this.parseTimeZoneHour)
|
29148 | } else if (this.char === CHAR_Z) {
|
29149 | this.consume()
|
29150 | return this.return(createDateTime(this.state.result + this.state.buf))
|
29151 | } else if (this.atEndOfWord()) {
|
29152 | return this.returnNow(createDateTimeFloat(this.state.result + this.state.buf))
|
29153 | } else {
|
29154 | throw this.error(new TomlError('Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z'))
|
29155 | }
|
29156 | }
|
29157 | parseTimeZoneHour () {
|
29158 | if (isDigit(this.char)) {
|
29159 | this.consume()
|
29160 |
|
29161 | if (/\d\d$/.test(this.state.buf)) return this.next(this.parseTimeZoneSep)
|
29162 | } else {
|
29163 | throw this.error(new TomlError('Unexpected character in datetime, expected digit'))
|
29164 | }
|
29165 | }
|
29166 | parseTimeZoneSep () {
|
29167 | if (this.char === CHAR_COLON) {
|
29168 | this.consume()
|
29169 | this.next(this.parseTimeZoneMin)
|
29170 | } else {
|
29171 | throw this.error(new TomlError('Unexpected character in datetime, expected colon'))
|
29172 | }
|
29173 | }
|
29174 | parseTimeZoneMin () {
|
29175 | if (isDigit(this.char)) {
|
29176 | this.consume()
|
29177 | if (/\d\d$/.test(this.state.buf)) return this.return(createDateTime(this.state.result + this.state.buf))
|
29178 | } else {
|
29179 | throw this.error(new TomlError('Unexpected character in datetime, expected digit'))
|
29180 | }
|
29181 | }
|
29182 |
|
29183 |
|
29184 | parseBoolean () {
|
29185 |
|
29186 | if (this.char === CHAR_t) {
|
29187 | this.consume()
|
29188 | return this.next(this.parseTrue_r)
|
29189 | } else if (this.char === CHAR_f) {
|
29190 | this.consume()
|
29191 | return this.next(this.parseFalse_a)
|
29192 | }
|
29193 | }
|
29194 | parseTrue_r () {
|
29195 | if (this.char === CHAR_r) {
|
29196 | this.consume()
|
29197 | return this.next(this.parseTrue_u)
|
29198 | } else {
|
29199 | throw this.error(new TomlError('Invalid boolean, expected true or false'))
|
29200 | }
|
29201 | }
|
29202 | parseTrue_u () {
|
29203 | if (this.char === CHAR_u) {
|
29204 | this.consume()
|
29205 | return this.next(this.parseTrue_e)
|
29206 | } else {
|
29207 | throw this.error(new TomlError('Invalid boolean, expected true or false'))
|
29208 | }
|
29209 | }
|
29210 | parseTrue_e () {
|
29211 | if (this.char === CHAR_e) {
|
29212 | return this.return(true)
|
29213 | } else {
|
29214 | throw this.error(new TomlError('Invalid boolean, expected true or false'))
|
29215 | }
|
29216 | }
|
29217 |
|
29218 | parseFalse_a () {
|
29219 | if (this.char === CHAR_a) {
|
29220 | this.consume()
|
29221 | return this.next(this.parseFalse_l)
|
29222 | } else {
|
29223 | throw this.error(new TomlError('Invalid boolean, expected true or false'))
|
29224 | }
|
29225 | }
|
29226 |
|
29227 | parseFalse_l () {
|
29228 | if (this.char === CHAR_l) {
|
29229 | this.consume()
|
29230 | return this.next(this.parseFalse_s)
|
29231 | } else {
|
29232 | throw this.error(new TomlError('Invalid boolean, expected true or false'))
|
29233 | }
|
29234 | }
|
29235 |
|
29236 | parseFalse_s () {
|
29237 | if (this.char === CHAR_s) {
|
29238 | this.consume()
|
29239 | return this.next(this.parseFalse_e)
|
29240 | } else {
|
29241 | throw this.error(new TomlError('Invalid boolean, expected true or false'))
|
29242 | }
|
29243 | }
|
29244 |
|
29245 | parseFalse_e () {
|
29246 | if (this.char === CHAR_e) {
|
29247 | return this.return(false)
|
29248 | } else {
|
29249 | throw this.error(new TomlError('Invalid boolean, expected true or false'))
|
29250 | }
|
29251 | }
|
29252 |
|
29253 |
|
29254 | parseInlineList () {
|
29255 | if (this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M || this.char === CTRL_J) {
|
29256 | return null
|
29257 | } else if (this.char === Parser.END) {
|
29258 | throw this.error(new TomlError('Unterminated inline array'))
|
29259 | } else if (this.char === CHAR_NUM) {
|
29260 | return this.call(this.parseComment)
|
29261 | } else if (this.char === CHAR_RSQB) {
|
29262 | return this.return(this.state.resultArr || InlineList())
|
29263 | } else {
|
29264 | return this.callNow(this.parseValue, this.recordInlineListValue)
|
29265 | }
|
29266 | }
|
29267 | recordInlineListValue (value) {
|
29268 | if (this.state.resultArr) {
|
29269 | const listType = this.state.resultArr[_contentType]
|
29270 | const valueType = tomlType(value)
|
29271 | if (listType !== valueType) {
|
29272 | throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${listType} and ${valueType}`))
|
29273 | }
|
29274 | } else {
|
29275 | this.state.resultArr = InlineList(tomlType(value))
|
29276 | }
|
29277 | if (isFloat(value) || isInteger(value)) {
|
29278 |
|
29279 | this.state.resultArr.push(value.valueOf())
|
29280 | } else {
|
29281 | this.state.resultArr.push(value)
|
29282 | }
|
29283 | return this.goto(this.parseInlineListNext)
|
29284 | }
|
29285 | parseInlineListNext () {
|
29286 | if (this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M || this.char === CTRL_J) {
|
29287 | return null
|
29288 | } else if (this.char === CHAR_NUM) {
|
29289 | return this.call(this.parseComment)
|
29290 | } else if (this.char === CHAR_COMMA) {
|
29291 | return this.next(this.parseInlineList)
|
29292 | } else if (this.char === CHAR_RSQB) {
|
29293 | return this.goto(this.parseInlineList)
|
29294 | } else {
|
29295 | throw this.error(new TomlError('Invalid character, expected whitespace, comma (,) or close bracket (])'))
|
29296 | }
|
29297 | }
|
29298 |
|
29299 |
|
29300 | parseInlineTable () {
|
29301 | if (this.char === CHAR_SP || this.char === CTRL_I) {
|
29302 | return null
|
29303 | } else if (this.char === Parser.END || this.char === CHAR_NUM || this.char === CTRL_J || this.char === CTRL_M) {
|
29304 | throw this.error(new TomlError('Unterminated inline array'))
|
29305 | } else if (this.char === CHAR_RCUB) {
|
29306 | return this.return(this.state.resultTable || InlineTable())
|
29307 | } else {
|
29308 | if (!this.state.resultTable) this.state.resultTable = InlineTable()
|
29309 | return this.callNow(this.parseAssign, this.recordInlineTableValue)
|
29310 | }
|
29311 | }
|
29312 | recordInlineTableValue (kv) {
|
29313 | let target = this.state.resultTable
|
29314 | let finalKey = kv.key.pop()
|
29315 | for (let kw of kv.key) {
|
29316 | if (hasKey(target, kw) && (!isTable(target[kw]) || target[kw][_declared])) {
|
29317 | throw this.error(new TomlError("Can't redefine existing key"))
|
29318 | }
|
29319 | target = target[kw] = target[kw] || Table()
|
29320 | }
|
29321 | if (hasKey(target, finalKey)) {
|
29322 | throw this.error(new TomlError("Can't redefine existing key"))
|
29323 | }
|
29324 | if (isInteger(kv.value) || isFloat(kv.value)) {
|
29325 | target[finalKey] = kv.value.valueOf()
|
29326 | } else {
|
29327 | target[finalKey] = kv.value
|
29328 | }
|
29329 | return this.goto(this.parseInlineTableNext)
|
29330 | }
|
29331 | parseInlineTableNext () {
|
29332 | if (this.char === CHAR_SP || this.char === CTRL_I) {
|
29333 | return null
|
29334 | } else if (this.char === Parser.END || this.char === CHAR_NUM || this.char === CTRL_J || this.char === CTRL_M) {
|
29335 | throw this.error(new TomlError('Unterminated inline array'))
|
29336 | } else if (this.char === CHAR_COMMA) {
|
29337 | return this.next(this.parseInlineTable)
|
29338 | } else if (this.char === CHAR_RCUB) {
|
29339 | return this.goto(this.parseInlineTable)
|
29340 | } else {
|
29341 | throw this.error(new TomlError('Invalid character, expected whitespace, comma (,) or close bracket (])'))
|
29342 | }
|
29343 | }
|
29344 | }
|
29345 | return TOMLParser
|
29346 | }
|
29347 |
|
29348 |
|
29349 | }),
|
29350 | ,
|
29351 |
|
29352 | (function(module) {
|
29353 |
|
29354 | "use strict";
|
29355 |
|
29356 |
|
29357 | const isWin = process.platform === 'win32';
|
29358 |
|
29359 | function notFoundError(original, syscall) {
|
29360 | return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
|
29361 | code: 'ENOENT',
|
29362 | errno: 'ENOENT',
|
29363 | syscall: `${syscall} ${original.command}`,
|
29364 | path: original.command,
|
29365 | spawnargs: original.args,
|
29366 | });
|
29367 | }
|
29368 |
|
29369 | function hookChildProcess(cp, parsed) {
|
29370 | if (!isWin) {
|
29371 | return;
|
29372 | }
|
29373 |
|
29374 | const originalEmit = cp.emit;
|
29375 |
|
29376 | cp.emit = function (name, arg1) {
|
29377 |
|
29378 |
|
29379 |
|
29380 | if (name === 'exit') {
|
29381 | const err = verifyENOENT(arg1, parsed, 'spawn');
|
29382 |
|
29383 | if (err) {
|
29384 | return originalEmit.call(cp, 'error', err);
|
29385 | }
|
29386 | }
|
29387 |
|
29388 | return originalEmit.apply(cp, arguments);
|
29389 | };
|
29390 | }
|
29391 |
|
29392 | function verifyENOENT(status, parsed) {
|
29393 | if (isWin && status === 1 && !parsed.file) {
|
29394 | return notFoundError(parsed.original, 'spawn');
|
29395 | }
|
29396 |
|
29397 | return null;
|
29398 | }
|
29399 |
|
29400 | function verifyENOENTSync(status, parsed) {
|
29401 | if (isWin && status === 1 && !parsed.file) {
|
29402 | return notFoundError(parsed.original, 'spawnSync');
|
29403 | }
|
29404 |
|
29405 | return null;
|
29406 | }
|
29407 |
|
29408 | module.exports = {
|
29409 | hookChildProcess,
|
29410 | verifyENOENT,
|
29411 | verifyENOENTSync,
|
29412 | notFoundError,
|
29413 | };
|
29414 |
|
29415 |
|
29416 | }),
|
29417 | ,
|
29418 |
|
29419 | (function(module, __unusedexports, __webpack_require__) {
|
29420 |
|
29421 | "use strict";
|
29422 |
|
29423 |
|
29424 |
|
29425 |
|
29426 | var Buffer = __webpack_require__(603).Buffer;
|
29427 |
|
29428 | var bomHandling = __webpack_require__(924),
|
29429 | iconv = module.exports;
|
29430 |
|
29431 |
|
29432 |
|
29433 | iconv.encodings = null;
|
29434 |
|
29435 |
|
29436 | iconv.defaultCharUnicode = '�';
|
29437 | iconv.defaultCharSingleByte = '?';
|
29438 |
|
29439 |
|
29440 | iconv.encode = function encode(str, encoding, options) {
|
29441 | str = "" + (str || "");
|
29442 |
|
29443 | var encoder = iconv.getEncoder(encoding, options);
|
29444 |
|
29445 | var res = encoder.write(str);
|
29446 | var trail = encoder.end();
|
29447 |
|
29448 | return (trail && trail.length > 0) ? Buffer.concat([res, trail]) : res;
|
29449 | }
|
29450 |
|
29451 | iconv.decode = function decode(buf, encoding, options) {
|
29452 | if (typeof buf === 'string') {
|
29453 | if (!iconv.skipDecodeWarning) {
|
29454 | console.error('Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding');
|
29455 | iconv.skipDecodeWarning = true;
|
29456 | }
|
29457 |
|
29458 | buf = Buffer.from("" + (buf || ""), "binary");
|
29459 | }
|
29460 |
|
29461 | var decoder = iconv.getDecoder(encoding, options);
|
29462 |
|
29463 | var res = decoder.write(buf);
|
29464 | var trail = decoder.end();
|
29465 |
|
29466 | return trail ? (res + trail) : res;
|
29467 | }
|
29468 |
|
29469 | iconv.encodingExists = function encodingExists(enc) {
|
29470 | try {
|
29471 | iconv.getCodec(enc);
|
29472 | return true;
|
29473 | } catch (e) {
|
29474 | return false;
|
29475 | }
|
29476 | }
|
29477 |
|
29478 |
|
29479 | iconv.toEncoding = iconv.encode;
|
29480 | iconv.fromEncoding = iconv.decode;
|
29481 |
|
29482 |
|
29483 | iconv._codecDataCache = {};
|
29484 | iconv.getCodec = function getCodec(encoding) {
|
29485 | if (!iconv.encodings)
|
29486 | iconv.encodings = __webpack_require__(709);
|
29487 |
|
29488 |
|
29489 | var enc = iconv._canonicalizeEncoding(encoding);
|
29490 |
|
29491 |
|
29492 | var codecOptions = {};
|
29493 | while (true) {
|
29494 | var codec = iconv._codecDataCache[enc];
|
29495 | if (codec)
|
29496 | return codec;
|
29497 |
|
29498 | var codecDef = iconv.encodings[enc];
|
29499 |
|
29500 | switch (typeof codecDef) {
|
29501 | case "string":
|
29502 | enc = codecDef;
|
29503 | break;
|
29504 |
|
29505 | case "object":
|
29506 | for (var key in codecDef)
|
29507 | codecOptions[key] = codecDef[key];
|
29508 |
|
29509 | if (!codecOptions.encodingName)
|
29510 | codecOptions.encodingName = enc;
|
29511 |
|
29512 | enc = codecDef.type;
|
29513 | break;
|
29514 |
|
29515 | case "function":
|
29516 | if (!codecOptions.encodingName)
|
29517 | codecOptions.encodingName = enc;
|
29518 |
|
29519 |
|
29520 |
|
29521 | codec = new codecDef(codecOptions, iconv);
|
29522 |
|
29523 | iconv._codecDataCache[codecOptions.encodingName] = codec;
|
29524 | return codec;
|
29525 |
|
29526 | default:
|
29527 | throw new Error("Encoding not recognized: '" + encoding + "' (searched as: '"+enc+"')");
|
29528 | }
|
29529 | }
|
29530 | }
|
29531 |
|
29532 | iconv._canonicalizeEncoding = function(encoding) {
|
29533 |
|
29534 | return (''+encoding).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g, "");
|
29535 | }
|
29536 |
|
29537 | iconv.getEncoder = function getEncoder(encoding, options) {
|
29538 | var codec = iconv.getCodec(encoding),
|
29539 | encoder = new codec.encoder(options, codec);
|
29540 |
|
29541 | if (codec.bomAware && options && options.addBOM)
|
29542 | encoder = new bomHandling.PrependBOM(encoder, options);
|
29543 |
|
29544 | return encoder;
|
29545 | }
|
29546 |
|
29547 | iconv.getDecoder = function getDecoder(encoding, options) {
|
29548 | var codec = iconv.getCodec(encoding),
|
29549 | decoder = new codec.decoder(options, codec);
|
29550 |
|
29551 | if (codec.bomAware && !(options && options.stripBOM === false))
|
29552 | decoder = new bomHandling.StripBOM(decoder, options);
|
29553 |
|
29554 | return decoder;
|
29555 | }
|
29556 |
|
29557 |
|
29558 |
|
29559 | var nodeVer = typeof process !== 'undefined' && process.versions && process.versions.node;
|
29560 | if (nodeVer) {
|
29561 |
|
29562 |
|
29563 | var nodeVerArr = nodeVer.split(".").map(Number);
|
29564 | if (nodeVerArr[0] > 0 || nodeVerArr[1] >= 10) {
|
29565 | __webpack_require__(624)(iconv);
|
29566 | }
|
29567 |
|
29568 |
|
29569 | __webpack_require__(672)(iconv);
|
29570 | }
|
29571 |
|
29572 | if (false) {}
|
29573 |
|
29574 |
|
29575 | }),
|
29576 |
|
29577 | (function(module) {
|
29578 |
|
29579 | "use strict";
|
29580 |
|
29581 |
|
29582 | module.exports = function () {
|
29583 |
|
29584 | return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
|
29585 | };
|
29586 |
|
29587 |
|
29588 | }),
|
29589 |
|
29590 | (function(module, __unusedexports, __webpack_require__) {
|
29591 |
|
29592 | "use strict";
|
29593 |
|
29594 | const ansiRegex = __webpack_require__(676);
|
29595 |
|
29596 | module.exports = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;
|
29597 |
|
29598 |
|
29599 | }),
|
29600 | ,
|
29601 | ,
|
29602 | ,
|
29603 | ,
|
29604 | ,
|
29605 | ,
|
29606 | ,
|
29607 | ,
|
29608 | ,
|
29609 | ,
|
29610 | ,
|
29611 | ,
|
29612 | ,
|
29613 | ,
|
29614 | ,
|
29615 |
|
29616 | (function(module, __unusedexports, __webpack_require__) {
|
29617 |
|
29618 | module.exports = minimatch
|
29619 | minimatch.Minimatch = Minimatch
|
29620 |
|
29621 | var path = { sep: '/' }
|
29622 | try {
|
29623 | path = __webpack_require__(622)
|
29624 | } catch (er) {}
|
29625 |
|
29626 | var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}
|
29627 | var expand = __webpack_require__(266)
|
29628 |
|
29629 | var plTypes = {
|
29630 | '!': { open: '(?:(?!(?:', close: '))[^/]*?)'},
|
29631 | '?': { open: '(?:', close: ')?' },
|
29632 | '+': { open: '(?:', close: ')+' },
|
29633 | '*': { open: '(?:', close: ')*' },
|
29634 | '@': { open: '(?:', close: ')' }
|
29635 | }
|
29636 |
|
29637 |
|
29638 |
|
29639 | var qmark = '[^/]'
|
29640 |
|
29641 |
|
29642 | var star = qmark + '*?'
|
29643 |
|
29644 |
|
29645 |
|
29646 |
|
29647 | var twoStarDot = '(?:(?!(?:\\\/|^)(?:\\.{1,2})($|\\\/)).)*?'
|
29648 |
|
29649 |
|
29650 |
|
29651 | var twoStarNoDot = '(?:(?!(?:\\\/|^)\\.).)*?'
|
29652 |
|
29653 |
|
29654 | var reSpecials = charSet('().*{}+?[]^$\\!')
|
29655 |
|
29656 |
|
29657 | function charSet (s) {
|
29658 | return s.split('').reduce(function (set, c) {
|
29659 | set[c] = true
|
29660 | return set
|
29661 | }, {})
|
29662 | }
|
29663 |
|
29664 |
|
29665 | var slashSplit = /\/+/
|
29666 |
|
29667 | minimatch.filter = filter
|
29668 | function filter (pattern, options) {
|
29669 | options = options || {}
|
29670 | return function (p, i, list) {
|
29671 | return minimatch(p, pattern, options)
|
29672 | }
|
29673 | }
|
29674 |
|
29675 | function ext (a, b) {
|
29676 | a = a || {}
|
29677 | b = b || {}
|
29678 | var t = {}
|
29679 | Object.keys(b).forEach(function (k) {
|
29680 | t[k] = b[k]
|
29681 | })
|
29682 | Object.keys(a).forEach(function (k) {
|
29683 | t[k] = a[k]
|
29684 | })
|
29685 | return t
|
29686 | }
|
29687 |
|
29688 | minimatch.defaults = function (def) {
|
29689 | if (!def || !Object.keys(def).length) return minimatch
|
29690 |
|
29691 | var orig = minimatch
|
29692 |
|
29693 | var m = function minimatch (p, pattern, options) {
|
29694 | return orig.minimatch(p, pattern, ext(def, options))
|
29695 | }
|
29696 |
|
29697 | m.Minimatch = function Minimatch (pattern, options) {
|
29698 | return new orig.Minimatch(pattern, ext(def, options))
|
29699 | }
|
29700 |
|
29701 | return m
|
29702 | }
|
29703 |
|
29704 | Minimatch.defaults = function (def) {
|
29705 | if (!def || !Object.keys(def).length) return Minimatch
|
29706 | return minimatch.defaults(def).Minimatch
|
29707 | }
|
29708 |
|
29709 | function minimatch (p, pattern, options) {
|
29710 | if (typeof pattern !== 'string') {
|
29711 | throw new TypeError('glob pattern string required')
|
29712 | }
|
29713 |
|
29714 | if (!options) options = {}
|
29715 |
|
29716 |
|
29717 | if (!options.nocomment && pattern.charAt(0) === '#') {
|
29718 | return false
|
29719 | }
|
29720 |
|
29721 |
|
29722 | if (pattern.trim() === '') return p === ''
|
29723 |
|
29724 | return new Minimatch(pattern, options).match(p)
|
29725 | }
|
29726 |
|
29727 | function Minimatch (pattern, options) {
|
29728 | if (!(this instanceof Minimatch)) {
|
29729 | return new Minimatch(pattern, options)
|
29730 | }
|
29731 |
|
29732 | if (typeof pattern !== 'string') {
|
29733 | throw new TypeError('glob pattern string required')
|
29734 | }
|
29735 |
|
29736 | if (!options) options = {}
|
29737 | pattern = pattern.trim()
|
29738 |
|
29739 |
|
29740 | if (path.sep !== '/') {
|
29741 | pattern = pattern.split(path.sep).join('/')
|
29742 | }
|
29743 |
|
29744 | this.options = options
|
29745 | this.set = []
|
29746 | this.pattern = pattern
|
29747 | this.regexp = null
|
29748 | this.negate = false
|
29749 | this.comment = false
|
29750 | this.empty = false
|
29751 |
|
29752 |
|
29753 | this.make()
|
29754 | }
|
29755 |
|
29756 | Minimatch.prototype.debug = function () {}
|
29757 |
|
29758 | Minimatch.prototype.make = make
|
29759 | function make () {
|
29760 |
|
29761 | if (this._made) return
|
29762 |
|
29763 | var pattern = this.pattern
|
29764 | var options = this.options
|
29765 |
|
29766 |
|
29767 | if (!options.nocomment && pattern.charAt(0) === '#') {
|
29768 | this.comment = true
|
29769 | return
|
29770 | }
|
29771 | if (!pattern) {
|
29772 | this.empty = true
|
29773 | return
|
29774 | }
|
29775 |
|
29776 |
|
29777 | this.parseNegate()
|
29778 |
|
29779 |
|
29780 | var set = this.globSet = this.braceExpand()
|
29781 |
|
29782 | if (options.debug) this.debug = console.error
|
29783 |
|
29784 | this.debug(this.pattern, set)
|
29785 |
|
29786 | // step 3: now we have a set, so turn each one into a series of path-portion
|
29787 | // matching patterns.
|
29788 | // These will be regexps, except in the case of "**", which is
|
29789 | // set to the GLOBSTAR object for globstar behavior,
|
29790 | // and will not contain any / characters
|
29791 | set = this.globParts = set.map(function (s) {
|
29792 | return s.split(slashSplit)
|
29793 | })
|
29794 |
|
29795 | this.debug(this.pattern, set)
|
29796 |
|
29797 | // glob --> regexps
|
29798 | set = set.map(function (s, si, set) {
|
29799 | return s.map(this.parse, this)
|
29800 | }, this)
|
29801 |
|
29802 | this.debug(this.pattern, set)
|
29803 |
|
29804 | // filter out everything that didn't compile properly.
|
29805 | set = set.filter(function (s) {
|
29806 | return s.indexOf(false) === -1
|
29807 | })
|
29808 |
|
29809 | this.debug(this.pattern, set)
|
29810 |
|
29811 | this.set = set
|
29812 | }
|
29813 |
|
29814 | Minimatch.prototype.parseNegate = parseNegate
|
29815 | function parseNegate () {
|
29816 | var pattern = this.pattern
|
29817 | var negate = false
|
29818 | var options = this.options
|
29819 | var negateOffset = 0
|
29820 |
|
29821 | if (options.nonegate) return
|
29822 |
|
29823 | for (var i = 0, l = pattern.length
|
29824 | ; i < l && pattern.charAt(i) === '!'
|
29825 | ; i++) {
|
29826 | negate = !negate
|
29827 | negateOffset++
|
29828 | }
|
29829 |
|
29830 | if (negateOffset) this.pattern = pattern.substr(negateOffset)
|
29831 | this.negate = negate
|
29832 | }
|
29833 |
|
29834 |
|
29835 |
|
29836 |
|
29837 |
|
29838 |
|
29839 |
|
29840 |
|
29841 |
|
29842 |
|
29843 |
|
29844 | minimatch.braceExpand = function (pattern, options) {
|
29845 | return braceExpand(pattern, options)
|
29846 | }
|
29847 |
|
29848 | Minimatch.prototype.braceExpand = braceExpand
|
29849 |
|
29850 | function braceExpand (pattern, options) {
|
29851 | if (!options) {
|
29852 | if (this instanceof Minimatch) {
|
29853 | options = this.options
|
29854 | } else {
|
29855 | options = {}
|
29856 | }
|
29857 | }
|
29858 |
|
29859 | pattern = typeof pattern === 'undefined'
|
29860 | ? this.pattern : pattern
|
29861 |
|
29862 | if (typeof pattern === 'undefined') {
|
29863 | throw new TypeError('undefined pattern')
|
29864 | }
|
29865 |
|
29866 | if (options.nobrace ||
|
29867 | !pattern.match(/\{.*\}/)) {
|
29868 |
|
29869 | return [pattern]
|
29870 | }
|
29871 |
|
29872 | return expand(pattern)
|
29873 | }
|
29874 |
|
29875 |
|
29876 |
|
29877 |
|
29878 |
|
29879 |
|
29880 |
|
29881 |
|
29882 |
|
29883 |
|
29884 |
|
29885 |
|
29886 | Minimatch.prototype.parse = parse
|
29887 | var SUBPARSE = {}
|
29888 | function parse (pattern, isSub) {
|
29889 | if (pattern.length > 1024 * 64) {
|
29890 | throw new TypeError('pattern is too long')
|
29891 | }
|
29892 |
|
29893 | var options = this.options
|
29894 |
|
29895 |
|
29896 | if (!options.noglobstar && pattern === '**') return GLOBSTAR
|
29897 | if (pattern === '') return ''
|
29898 |
|
29899 | var re = ''
|
29900 | var hasMagic = !!options.nocase
|
29901 | var escaping = false
|
29902 |
|
29903 | var patternListStack = []
|
29904 | var negativeLists = []
|
29905 | var stateChar
|
29906 | var inClass = false
|
29907 | var reClassStart = -1
|
29908 | var classStart = -1
|
29909 |
|
29910 |
|
29911 | var patternStart = pattern.charAt(0) === '.' ? ''
|
29912 |
|
29913 | : options.dot ? '(?!(?:^|\\\/)\\.{1,2}(?:$|\\\/))'
|
29914 | : '(?!\\.)'
|
29915 | var self = this
|
29916 |
|
29917 | function clearStateChar () {
|
29918 | if (stateChar) {
|
29919 |
|
29920 |
|
29921 | switch (stateChar) {
|
29922 | case '*':
|
29923 | re += star
|
29924 | hasMagic = true
|
29925 | break
|
29926 | case '?':
|
29927 | re += qmark
|
29928 | hasMagic = true
|
29929 | break
|
29930 | default:
|
29931 | re += '\\' + stateChar
|
29932 | break
|
29933 | }
|
29934 | self.debug('clearStateChar %j %j', stateChar, re)
|
29935 | stateChar = false
|
29936 | }
|
29937 | }
|
29938 |
|
29939 | for (var i = 0, len = pattern.length, c
|
29940 | ; (i < len) && (c = pattern.charAt(i))
|
29941 | ; i++) {
|
29942 | this.debug('%s\t%s %s %j', pattern, i, re, c)
|
29943 |
|
29944 |
|
29945 | if (escaping && reSpecials[c]) {
|
29946 | re += '\\' + c
|
29947 | escaping = false
|
29948 | continue
|
29949 | }
|
29950 |
|
29951 | switch (c) {
|
29952 | case '/':
|
29953 |
|
29954 |
|
29955 | return false
|
29956 |
|
29957 | case '\\':
|
29958 | clearStateChar()
|
29959 | escaping = true
|
29960 | continue
|
29961 |
|
29962 |
|
29963 |
|
29964 | case '?':
|
29965 | case '*':
|
29966 | case '+':
|
29967 | case '@':
|
29968 | case '!':
|
29969 | this.debug('%s\t%s %s %j <-- stateChar', pattern, i, re, c)
|
29970 |
|
29971 |
|
29972 |
|
29973 | if (inClass) {
|
29974 | this.debug(' in class')
|
29975 | if (c === '!' && i === classStart + 1) c = '^'
|
29976 | re += c
|
29977 | continue
|
29978 | }
|
29979 |
|
29980 |
|
29981 |
|
29982 |
|
29983 | self.debug('call clearStateChar %j', stateChar)
|
29984 | clearStateChar()
|
29985 | stateChar = c
|
29986 |
|
29987 |
|
29988 |
|
29989 | if (options.noext) clearStateChar()
|
29990 | continue
|
29991 |
|
29992 | case '(':
|
29993 | if (inClass) {
|
29994 | re += '('
|
29995 | continue
|
29996 | }
|
29997 |
|
29998 | if (!stateChar) {
|
29999 | re += '\\('
|
30000 | continue
|
30001 | }
|
30002 |
|
30003 | patternListStack.push({
|
30004 | type: stateChar,
|
30005 | start: i - 1,
|
30006 | reStart: re.length,
|
30007 | open: plTypes[stateChar].open,
|
30008 | close: plTypes[stateChar].close
|
30009 | })
|
30010 |
|
30011 | re += stateChar === '!' ? '(?:(?!(?:' : '(?:'
|
30012 | this.debug('plType %j %j', stateChar, re)
|
30013 | stateChar = false
|
30014 | continue
|
30015 |
|
30016 | case ')':
|
30017 | if (inClass || !patternListStack.length) {
|
30018 | re += '\\)'
|
30019 | continue
|
30020 | }
|
30021 |
|
30022 | clearStateChar()
|
30023 | hasMagic = true
|
30024 | var pl = patternListStack.pop()
|
30025 |
|
30026 |
|
30027 | re += pl.close
|
30028 | if (pl.type === '!') {
|
30029 | negativeLists.push(pl)
|
30030 | }
|
30031 | pl.reEnd = re.length
|
30032 | continue
|
30033 |
|
30034 | case '|':
|
30035 | if (inClass || !patternListStack.length || escaping) {
|
30036 | re += '\\|'
|
30037 | escaping = false
|
30038 | continue
|
30039 | }
|
30040 |
|
30041 | clearStateChar()
|
30042 | re += '|'
|
30043 | continue
|
30044 |
|
30045 |
|
30046 | case '[':
|
30047 |
|
30048 | clearStateChar()
|
30049 |
|
30050 | if (inClass) {
|
30051 | re += '\\' + c
|
30052 | continue
|
30053 | }
|
30054 |
|
30055 | inClass = true
|
30056 | classStart = i
|
30057 | reClassStart = re.length
|
30058 | re += c
|
30059 | continue
|
30060 |
|
30061 | case ']':
|
30062 |
|
30063 |
|
30064 |
|
30065 |
|
30066 | if (i === classStart + 1 || !inClass) {
|
30067 | re += '\\' + c
|
30068 | escaping = false
|
30069 | continue
|
30070 | }
|
30071 |
|
30072 |
|
30073 |
|
30074 | if (inClass) {
|
30075 |
|
30076 |
|
30077 |
|
30078 |
|
30079 |
|
30080 |
|
30081 |
|
30082 | var cs = pattern.substring(classStart + 1, i)
|
30083 | try {
|
30084 | RegExp('[' + cs + ']')
|
30085 | } catch (er) {
|
30086 |
|
30087 | var sp = this.parse(cs, SUBPARSE)
|
30088 | re = re.substr(0, reClassStart) + '\\[' + sp[0] + '\\]'
|
30089 | hasMagic = hasMagic || sp[1]
|
30090 | inClass = false
|
30091 | continue
|
30092 | }
|
30093 | }
|
30094 |
|
30095 |
|
30096 | hasMagic = true
|
30097 | inClass = false
|
30098 | re += c
|
30099 | continue
|
30100 |
|
30101 | default:
|
30102 |
|
30103 | clearStateChar()
|
30104 |
|
30105 | if (escaping) {
|
30106 |
|
30107 | escaping = false
|
30108 | } else if (reSpecials[c]
|
30109 | && !(c === '^' && inClass)) {
|
30110 | re += '\\'
|
30111 | }
|
30112 |
|
30113 | re += c
|
30114 |
|
30115 | }
|
30116 | }
|
30117 |
|
30118 |
|
30119 |
|
30120 | if (inClass) {
|
30121 |
|
30122 |
|
30123 |
|
30124 |
|
30125 | cs = pattern.substr(classStart + 1)
|
30126 | sp = this.parse(cs, SUBPARSE)
|
30127 | re = re.substr(0, reClassStart) + '\\[' + sp[0]
|
30128 | hasMagic = hasMagic || sp[1]
|
30129 | }
|
30130 |
|
30131 |
|
30132 |
|
30133 |
|
30134 |
|
30135 |
|
30136 |
|
30137 | for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) {
|
30138 | var tail = re.slice(pl.reStart + pl.open.length)
|
30139 | this.debug('setting tail', re, pl)
|
30140 |
|
30141 | tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, function (_, $1, $2) {
|
30142 | if (!$2) {
|
30143 |
|
30144 | $2 = '\\'
|
30145 | }
|
30146 |
|
30147 |
|
30148 |
|
30149 |
|
30150 |
|
30151 |
|
30152 |
|
30153 | return $1 + $1 + $2 + '|'
|
30154 | })
|
30155 |
|
30156 | this.debug('tail=%j\n %s', tail, tail, pl, re)
|
30157 | var t = pl.type === '*' ? star
|
30158 | : pl.type === '?' ? qmark
|
30159 | : '\\' + pl.type
|
30160 |
|
30161 | hasMagic = true
|
30162 | re = re.slice(0, pl.reStart) + t + '\\(' + tail
|
30163 | }
|
30164 |
|
30165 |
|
30166 | clearStateChar()
|
30167 | if (escaping) {
|
30168 |
|
30169 | re += '\\\\'
|
30170 | }
|
30171 |
|
30172 |
|
30173 |
|
30174 | var addPatternStart = false
|
30175 | switch (re.charAt(0)) {
|
30176 | case '.':
|
30177 | case '[':
|
30178 | case '(': addPatternStart = true
|
30179 | }
|
30180 |
|
30181 |
|
30182 |
|
30183 |
|
30184 |
|
30185 |
|
30186 | for (var n = negativeLists.length - 1; n > -1; n--) {
|
30187 | var nl = negativeLists[n]
|
30188 |
|
30189 | var nlBefore = re.slice(0, nl.reStart)
|
30190 | var nlFirst = re.slice(nl.reStart, nl.reEnd - 8)
|
30191 | var nlLast = re.slice(nl.reEnd - 8, nl.reEnd)
|
30192 | var nlAfter = re.slice(nl.reEnd)
|
30193 |
|
30194 | nlLast += nlAfter
|
30195 |
|
30196 |
|
30197 |
|
30198 |
|
30199 | var openParensBefore = nlBefore.split('(').length - 1
|
30200 | var cleanAfter = nlAfter
|
30201 | for (i = 0; i < openParensBefore; i++) {
|
30202 | cleanAfter = cleanAfter.replace(/\)[+*?]?/, '')
|
30203 | }
|
30204 | nlAfter = cleanAfter
|
30205 |
|
30206 | var dollar = ''
|
30207 | if (nlAfter === '' && isSub !== SUBPARSE) {
|
30208 | dollar = '$'
|
30209 | }
|
30210 | var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast
|
30211 | re = newRe
|
30212 | }
|
30213 |
|
30214 |
|
30215 |
|
30216 |
|
30217 | if (re !== '' && hasMagic) {
|
30218 | re = '(?=.)' + re
|
30219 | }
|
30220 |
|
30221 | if (addPatternStart) {
|
30222 | re = patternStart + re
|
30223 | }
|
30224 |
|
30225 |
|
30226 | if (isSub === SUBPARSE) {
|
30227 | return [re, hasMagic]
|
30228 | }
|
30229 |
|
30230 |
|
30231 |
|
30232 |
|
30233 | if (!hasMagic) {
|
30234 | return globUnescape(pattern)
|
30235 | }
|
30236 |
|
30237 | var flags = options.nocase ? 'i' : ''
|
30238 | try {
|
30239 | var regExp = new RegExp('^' + re + '$', flags)
|
30240 | } catch (er) {
|
30241 |
|
30242 |
|
30243 |
|
30244 |
|
30245 | return new RegExp('$.')
|
30246 | }
|
30247 |
|
30248 | regExp._glob = pattern
|
30249 | regExp._src = re
|
30250 |
|
30251 | return regExp
|
30252 | }
|
30253 |
|
30254 | minimatch.makeRe = function (pattern, options) {
|
30255 | return new Minimatch(pattern, options || {}).makeRe()
|
30256 | }
|
30257 |
|
30258 | Minimatch.prototype.makeRe = makeRe
|
30259 | function makeRe () {
|
30260 | if (this.regexp || this.regexp === false) return this.regexp
|
30261 |
|
30262 |
|
30263 |
|
30264 |
|
30265 |
|
30266 |
|
30267 |
|
30268 | var set = this.set
|
30269 |
|
30270 | if (!set.length) {
|
30271 | this.regexp = false
|
30272 | return this.regexp
|
30273 | }
|
30274 | var options = this.options
|
30275 |
|
30276 | var twoStar = options.noglobstar ? star
|
30277 | : options.dot ? twoStarDot
|
30278 | : twoStarNoDot
|
30279 | var flags = options.nocase ? 'i' : ''
|
30280 |
|
30281 | var re = set.map(function (pattern) {
|
30282 | return pattern.map(function (p) {
|
30283 | return (p === GLOBSTAR) ? twoStar
|
30284 | : (typeof p === 'string') ? regExpEscape(p)
|
30285 | : p._src
|
30286 | }).join('\\\/')
|
30287 | }).join('|')
|
30288 |
|
30289 |
|
30290 |
|
30291 | re = '^(?:' + re + ')$'
|
30292 |
|
30293 |
|
30294 | if (this.negate) re = '^(?!' + re + ').*$'
|
30295 |
|
30296 | try {
|
30297 | this.regexp = new RegExp(re, flags)
|
30298 | } catch (ex) {
|
30299 | this.regexp = false
|
30300 | }
|
30301 | return this.regexp
|
30302 | }
|
30303 |
|
30304 | minimatch.match = function (list, pattern, options) {
|
30305 | options = options || {}
|
30306 | var mm = new Minimatch(pattern, options)
|
30307 | list = list.filter(function (f) {
|
30308 | return mm.match(f)
|
30309 | })
|
30310 | if (mm.options.nonull && !list.length) {
|
30311 | list.push(pattern)
|
30312 | }
|
30313 | return list
|
30314 | }
|
30315 |
|
30316 | Minimatch.prototype.match = match
|
30317 | function match (f, partial) {
|
30318 | this.debug('match', f, this.pattern)
|
30319 |
|
30320 |
|
30321 | if (this.comment) return false
|
30322 | if (this.empty) return f === ''
|
30323 |
|
30324 | if (f === '/' && partial) return true
|
30325 |
|
30326 | var options = this.options
|
30327 |
|
30328 |
|
30329 | if (path.sep !== '/') {
|
30330 | f = f.split(path.sep).join('/')
|
30331 | }
|
30332 |
|
30333 |
|
30334 | f = f.split(slashSplit)
|
30335 | this.debug(this.pattern, 'split', f)
|
30336 |
|
30337 |
|
30338 |
|
30339 |
|
30340 |
|
30341 |
|
30342 | var set = this.set
|
30343 | this.debug(this.pattern, 'set', set)
|
30344 |
|
30345 | // Find the basename of the path by looking for the last non-empty segment
|
30346 | var filename
|
30347 | var i
|
30348 | for (i = f.length - 1; i >= 0; i--) {
|
30349 | filename = f[i]
|
30350 | if (filename) break
|
30351 | }
|
30352 |
|
30353 | for (i = 0; i < set.length; i++) {
|
30354 | var pattern = set[i]
|
30355 | var file = f
|
30356 | if (options.matchBase && pattern.length === 1) {
|
30357 | file = [filename]
|
30358 | }
|
30359 | var hit = this.matchOne(file, pattern, partial)
|
30360 | if (hit) {
|
30361 | if (options.flipNegate) return true
|
30362 | return !this.negate
|
30363 | }
|
30364 | }
|
30365 |
|
30366 |
|
30367 |
|
30368 | if (options.flipNegate) return false
|
30369 | return this.negate
|
30370 | }
|
30371 |
|
30372 |
|
30373 |
|
30374 |
|
30375 |
|
30376 |
|
30377 | Minimatch.prototype.matchOne = function (file, pattern, partial) {
|
30378 | var options = this.options
|
30379 |
|
30380 | this.debug('matchOne',
|
30381 | { 'this': this, file: file, pattern: pattern })
|
30382 |
|
30383 | this.debug('matchOne', file.length, pattern.length)
|
30384 |
|
30385 | for (var fi = 0,
|
30386 | pi = 0,
|
30387 | fl = file.length,
|
30388 | pl = pattern.length
|
30389 | ; (fi < fl) && (pi < pl)
|
30390 | ; fi++, pi++) {
|
30391 | this.debug('matchOne loop')
|
30392 | var p = pattern[pi]
|
30393 | var f = file[fi]
|
30394 |
|
30395 | this.debug(pattern, p, f)
|
30396 |
|
30397 |
|
30398 |
|
30399 | if (p === false) return false
|
30400 |
|
30401 | if (p === GLOBSTAR) {
|
30402 | this.debug('GLOBSTAR', [pattern, p, f])
|
30403 |
|
30404 |
|
30405 |
|
30406 |
|
30407 |
|
30408 |
|
30409 |
|
30410 |
|
30411 |
|
30412 |
|
30413 |
|
30414 |
|
30415 |
|
30416 |
|
30417 |
|
30418 |
|
30419 |
|
30420 |
|
30421 |
|
30422 |
|
30423 |
|
30424 |
|
30425 |
|
30426 | var fr = fi
|
30427 | var pr = pi + 1
|
30428 | if (pr === pl) {
|
30429 | this.debug('** at the end')
|
30430 |
|
30431 |
|
30432 |
|
30433 |
|
30434 |
|
30435 |
|
30436 | for (; fi < fl; fi++) {
|
30437 | if (file[fi] === '.' || file[fi] === '..' ||
|
30438 | (!options.dot && file[fi].charAt(0) === '.')) return false
|
30439 | }
|
30440 | return true
|
30441 | }
|
30442 |
|
30443 |
|
30444 | while (fr < fl) {
|
30445 | var swallowee = file[fr]
|
30446 |
|
30447 | this.debug('\nglobstar while', file, fr, pattern, pr, swallowee)
|
30448 |
|
30449 |
|
30450 | if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
|
30451 | this.debug('globstar found match!', fr, fl, swallowee)
|
30452 |
|
30453 | return true
|
30454 | } else {
|
30455 |
|
30456 |
|
30457 | if (swallowee === '.' || swallowee === '..' ||
|
30458 | (!options.dot && swallowee.charAt(0) === '.')) {
|
30459 | this.debug('dot detected!', file, fr, pattern, pr)
|
30460 | break
|
30461 | }
|
30462 |
|
30463 |
|
30464 | this.debug('globstar swallow a segment, and continue')
|
30465 | fr++
|
30466 | }
|
30467 | }
|
30468 |
|
30469 |
|
30470 |
|
30471 |
|
30472 | if (partial) {
|
30473 |
|
30474 | this.debug('\n>>> no match, partial?', file, fr, pattern, pr)
|
30475 | if (fr === fl) return true
|
30476 | }
|
30477 | return false
|
30478 | }
|
30479 |
|
30480 |
|
30481 |
|
30482 |
|
30483 | var hit
|
30484 | if (typeof p === 'string') {
|
30485 | if (options.nocase) {
|
30486 | hit = f.toLowerCase() === p.toLowerCase()
|
30487 | } else {
|
30488 | hit = f === p
|
30489 | }
|
30490 | this.debug('string match', p, f, hit)
|
30491 | } else {
|
30492 | hit = f.match(p)
|
30493 | this.debug('pattern match', p, f, hit)
|
30494 | }
|
30495 |
|
30496 | if (!hit) return false
|
30497 | }
|
30498 |
|
30499 |
|
30500 |
|
30501 |
|
30502 |
|
30503 |
|
30504 |
|
30505 |
|
30506 |
|
30507 |
|
30508 |
|
30509 |
|
30510 |
|
30511 | if (fi === fl && pi === pl) {
|
30512 |
|
30513 |
|
30514 | return true
|
30515 | } else if (fi === fl) {
|
30516 |
|
30517 |
|
30518 |
|
30519 | return partial
|
30520 | } else if (pi === pl) {
|
30521 |
|
30522 |
|
30523 |
|
30524 |
|
30525 | var emptyFileEnd = (fi === fl - 1) && (file[fi] === '')
|
30526 | return emptyFileEnd
|
30527 | }
|
30528 |
|
30529 |
|
30530 | throw new Error('wtf?')
|
30531 | }
|
30532 |
|
30533 |
|
30534 | function globUnescape (s) {
|
30535 | return s.replace(/\\(.)/g, '$1')
|
30536 | }
|
30537 |
|
30538 | function regExpEscape (s) {
|
30539 | return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&')
|
30540 | }
|
30541 |
|
30542 |
|
30543 | }),
|
30544 | ,
|
30545 | ,
|
30546 | ,
|
30547 | ,
|
30548 | ,
|
30549 | ,
|
30550 | ,
|
30551 | ,
|
30552 | ,
|
30553 |
|
30554 | (function(module, __unusedexports, __webpack_require__) {
|
30555 |
|
30556 | var _fs
|
30557 | try {
|
30558 | _fs = __webpack_require__(729)
|
30559 | } catch (_) {
|
30560 | _fs = __webpack_require__(747)
|
30561 | }
|
30562 |
|
30563 | function readFile (file, options, callback) {
|
30564 | if (callback == null) {
|
30565 | callback = options
|
30566 | options = {}
|
30567 | }
|
30568 |
|
30569 | if (typeof options === 'string') {
|
30570 | options = {encoding: options}
|
30571 | }
|
30572 |
|
30573 | options = options || {}
|
30574 | var fs = options.fs || _fs
|
30575 |
|
30576 | var shouldThrow = true
|
30577 | if ('throws' in options) {
|
30578 | shouldThrow = options.throws
|
30579 | }
|
30580 |
|
30581 | fs.readFile(file, options, function (err, data) {
|
30582 | if (err) return callback(err)
|
30583 |
|
30584 | data = stripBom(data)
|
30585 |
|
30586 | var obj
|
30587 | try {
|
30588 | obj = JSON.parse(data, options ? options.reviver : null)
|
30589 | } catch (err2) {
|
30590 | if (shouldThrow) {
|
30591 | err2.message = file + ': ' + err2.message
|
30592 | return callback(err2)
|
30593 | } else {
|
30594 | return callback(null, null)
|
30595 | }
|
30596 | }
|
30597 |
|
30598 | callback(null, obj)
|
30599 | })
|
30600 | }
|
30601 |
|
30602 | function readFileSync (file, options) {
|
30603 | options = options || {}
|
30604 | if (typeof options === 'string') {
|
30605 | options = {encoding: options}
|
30606 | }
|
30607 |
|
30608 | var fs = options.fs || _fs
|
30609 |
|
30610 | var shouldThrow = true
|
30611 | if ('throws' in options) {
|
30612 | shouldThrow = options.throws
|
30613 | }
|
30614 |
|
30615 | try {
|
30616 | var content = fs.readFileSync(file, options)
|
30617 | content = stripBom(content)
|
30618 | return JSON.parse(content, options.reviver)
|
30619 | } catch (err) {
|
30620 | if (shouldThrow) {
|
30621 | err.message = file + ': ' + err.message
|
30622 | throw err
|
30623 | } else {
|
30624 | return null
|
30625 | }
|
30626 | }
|
30627 | }
|
30628 |
|
30629 | function stringify (obj, options) {
|
30630 | var spaces
|
30631 | var EOL = '\n'
|
30632 | if (typeof options === 'object' && options !== null) {
|
30633 | if (options.spaces) {
|
30634 | spaces = options.spaces
|
30635 | }
|
30636 | if (options.EOL) {
|
30637 | EOL = options.EOL
|
30638 | }
|
30639 | }
|
30640 |
|
30641 | var str = JSON.stringify(obj, options ? options.replacer : null, spaces)
|
30642 |
|
30643 | return str.replace(/\n/g, EOL) + EOL
|
30644 | }
|
30645 |
|
30646 | function writeFile (file, obj, options, callback) {
|
30647 | if (callback == null) {
|
30648 | callback = options
|
30649 | options = {}
|
30650 | }
|
30651 | options = options || {}
|
30652 | var fs = options.fs || _fs
|
30653 |
|
30654 | var str = ''
|
30655 | try {
|
30656 | str = stringify(obj, options)
|
30657 | } catch (err) {
|
30658 |
|
30659 | if (callback) callback(err, null)
|
30660 | return
|
30661 | }
|
30662 |
|
30663 | fs.writeFile(file, str, options, callback)
|
30664 | }
|
30665 |
|
30666 | function writeFileSync (file, obj, options) {
|
30667 | options = options || {}
|
30668 | var fs = options.fs || _fs
|
30669 |
|
30670 | var str = stringify(obj, options)
|
30671 |
|
30672 | return fs.writeFileSync(file, str, options)
|
30673 | }
|
30674 |
|
30675 | function stripBom (content) {
|
30676 |
|
30677 | if (Buffer.isBuffer(content)) content = content.toString('utf8')
|
30678 | content = content.replace(/^\uFEFF/, '')
|
30679 | return content
|
30680 | }
|
30681 |
|
30682 | var jsonfile = {
|
30683 | readFile: readFile,
|
30684 | readFileSync: readFileSync,
|
30685 | writeFile: writeFile,
|
30686 | writeFileSync: writeFileSync
|
30687 | }
|
30688 |
|
30689 | module.exports = jsonfile
|
30690 |
|
30691 |
|
30692 | }),
|
30693 | ,
|
30694 | ,
|
30695 | ,
|
30696 | ,
|
30697 | ,
|
30698 | ,
|
30699 | ,
|
30700 | ,
|
30701 | ,
|
30702 |
|
30703 | (function(__unusedmodule, exports) {
|
30704 |
|
30705 | "use strict";
|
30706 |
|
30707 |
|
30708 | var BOMChar = '\uFEFF';
|
30709 |
|
30710 | exports.PrependBOM = PrependBOMWrapper
|
30711 | function PrependBOMWrapper(encoder, options) {
|
30712 | this.encoder = encoder;
|
30713 | this.addBOM = true;
|
30714 | }
|
30715 |
|
30716 | PrependBOMWrapper.prototype.write = function(str) {
|
30717 | if (this.addBOM) {
|
30718 | str = BOMChar + str;
|
30719 | this.addBOM = false;
|
30720 | }
|
30721 |
|
30722 | return this.encoder.write(str);
|
30723 | }
|
30724 |
|
30725 | PrependBOMWrapper.prototype.end = function() {
|
30726 | return this.encoder.end();
|
30727 | }
|
30728 |
|
30729 |
|
30730 |
|
30731 |
|
30732 | exports.StripBOM = StripBOMWrapper;
|
30733 | function StripBOMWrapper(decoder, options) {
|
30734 | this.decoder = decoder;
|
30735 | this.pass = false;
|
30736 | this.options = options || {};
|
30737 | }
|
30738 |
|
30739 | StripBOMWrapper.prototype.write = function(buf) {
|
30740 | var res = this.decoder.write(buf);
|
30741 | if (this.pass || !res)
|
30742 | return res;
|
30743 |
|
30744 | if (res[0] === BOMChar) {
|
30745 | res = res.slice(1);
|
30746 | if (typeof this.options.stripBOM === 'function')
|
30747 | this.options.stripBOM();
|
30748 | }
|
30749 |
|
30750 | this.pass = true;
|
30751 | return res;
|
30752 | }
|
30753 |
|
30754 | StripBOMWrapper.prototype.end = function() {
|
30755 | return this.decoder.end();
|
30756 | }
|
30757 |
|
30758 |
|
30759 |
|
30760 | }),
|
30761 | ,
|
30762 | ,
|
30763 | ,
|
30764 |
|
30765 | (function(module) {
|
30766 |
|
30767 | "use strict";
|
30768 |
|
30769 |
|
30770 | const stringReplaceAll = (string, substring, replacer) => {
|
30771 | let index = string.indexOf(substring);
|
30772 | if (index === -1) {
|
30773 | return string;
|
30774 | }
|
30775 |
|
30776 | const substringLength = substring.length;
|
30777 | let endIndex = 0;
|
30778 | let returnValue = '';
|
30779 | do {
|
30780 | returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
|
30781 | endIndex = index + substringLength;
|
30782 | index = string.indexOf(substring, endIndex);
|
30783 | } while (index !== -1);
|
30784 |
|
30785 | returnValue += string.substr(endIndex);
|
30786 | return returnValue;
|
30787 | };
|
30788 |
|
30789 | const stringEncaseCRLFWithFirstIndex = (string, prefix, postfix, index) => {
|
30790 | let endIndex = 0;
|
30791 | let returnValue = '';
|
30792 | do {
|
30793 | const gotCR = string[index - 1] === '\r';
|
30794 | returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? '\r\n' : '\n') + postfix;
|
30795 | endIndex = index + 1;
|
30796 | index = string.indexOf('\n', endIndex);
|
30797 | } while (index !== -1);
|
30798 |
|
30799 | returnValue += string.substr(endIndex);
|
30800 | return returnValue;
|
30801 | };
|
30802 |
|
30803 | module.exports = {
|
30804 | stringReplaceAll,
|
30805 | stringEncaseCRLFWithFirstIndex
|
30806 | };
|
30807 |
|
30808 |
|
30809 | }),
|
30810 | ,
|
30811 | ,
|
30812 | ,
|
30813 | ,
|
30814 | ,
|
30815 | ,
|
30816 | ,
|
30817 |
|
30818 | (function(__unusedmodule, exports, __webpack_require__) {
|
30819 |
|
30820 | "use strict";
|
30821 |
|
30822 |
|
30823 |
|
30824 | const u = __webpack_require__(323).fromCallback
|
30825 | const fs = __webpack_require__(729)
|
30826 |
|
30827 | const api = [
|
30828 | 'access',
|
30829 | 'appendFile',
|
30830 | 'chmod',
|
30831 | 'chown',
|
30832 | 'close',
|
30833 | 'copyFile',
|
30834 | 'fchmod',
|
30835 | 'fchown',
|
30836 | 'fdatasync',
|
30837 | 'fstat',
|
30838 | 'fsync',
|
30839 | 'ftruncate',
|
30840 | 'futimes',
|
30841 | 'lchown',
|
30842 | 'lchmod',
|
30843 | 'link',
|
30844 | 'lstat',
|
30845 | 'mkdir',
|
30846 | 'mkdtemp',
|
30847 | 'open',
|
30848 | 'readFile',
|
30849 | 'readdir',
|
30850 | 'readlink',
|
30851 | 'realpath',
|
30852 | 'rename',
|
30853 | 'rmdir',
|
30854 | 'stat',
|
30855 | 'symlink',
|
30856 | 'truncate',
|
30857 | 'unlink',
|
30858 | 'utimes',
|
30859 | 'writeFile'
|
30860 | ].filter(key => {
|
30861 |
|
30862 |
|
30863 |
|
30864 |
|
30865 | return typeof fs[key] === 'function'
|
30866 | })
|
30867 |
|
30868 |
|
30869 | Object.keys(fs).forEach(key => {
|
30870 | if (key === 'promises') {
|
30871 |
|
30872 |
|
30873 | return
|
30874 | }
|
30875 | exports[key] = fs[key]
|
30876 | })
|
30877 |
|
30878 |
|
30879 | api.forEach(method => {
|
30880 | exports[method] = u(fs[method])
|
30881 | })
|
30882 |
|
30883 |
|
30884 |
|
30885 | exports.exists = function (filename, callback) {
|
30886 | if (typeof callback === 'function') {
|
30887 | return fs.exists(filename, callback)
|
30888 | }
|
30889 | return new Promise(resolve => {
|
30890 | return fs.exists(filename, resolve)
|
30891 | })
|
30892 | }
|
30893 |
|
30894 |
|
30895 |
|
30896 | exports.read = function (fd, buffer, offset, length, position, callback) {
|
30897 | if (typeof callback === 'function') {
|
30898 | return fs.read(fd, buffer, offset, length, position, callback)
|
30899 | }
|
30900 | return new Promise((resolve, reject) => {
|
30901 | fs.read(fd, buffer, offset, length, position, (err, bytesRead, buffer) => {
|
30902 | if (err) return reject(err)
|
30903 | resolve({ bytesRead, buffer })
|
30904 | })
|
30905 | })
|
30906 | }
|
30907 |
|
30908 |
|
30909 |
|
30910 |
|
30911 |
|
30912 |
|
30913 | exports.write = function (fd, buffer, ...args) {
|
30914 | if (typeof args[args.length - 1] === 'function') {
|
30915 | return fs.write(fd, buffer, ...args)
|
30916 | }
|
30917 |
|
30918 | return new Promise((resolve, reject) => {
|
30919 | fs.write(fd, buffer, ...args, (err, bytesWritten, buffer) => {
|
30920 | if (err) return reject(err)
|
30921 | resolve({ bytesWritten, buffer })
|
30922 | })
|
30923 | })
|
30924 | }
|
30925 |
|
30926 |
|
30927 | }),
|
30928 | ,
|
30929 | ,
|
30930 | ,
|
30931 | ,
|
30932 | ,
|
30933 | ,
|
30934 | ,
|
30935 |
|
30936 | (function(module, __unusedexports, __webpack_require__) {
|
30937 |
|
30938 | "use strict";
|
30939 |
|
30940 |
|
30941 | const fs = __webpack_require__(729)
|
30942 | const path = __webpack_require__(622)
|
30943 | const mkdir = __webpack_require__(648)
|
30944 | const jsonFile = __webpack_require__(458)
|
30945 |
|
30946 | function outputJsonSync (file, data, options) {
|
30947 | const dir = path.dirname(file)
|
30948 |
|
30949 | if (!fs.existsSync(dir)) {
|
30950 | mkdir.mkdirsSync(dir)
|
30951 | }
|
30952 |
|
30953 | jsonFile.writeJsonSync(file, data, options)
|
30954 | }
|
30955 |
|
30956 | module.exports = outputJsonSync
|
30957 |
|
30958 |
|
30959 | }),
|
30960 | ,
|
30961 | ,
|
30962 |
|
30963 | (function(__unusedmodule, exports, __webpack_require__) {
|
30964 |
|
30965 | "use strict";
|
30966 |
|
30967 | var Buffer = __webpack_require__(603).Buffer;
|
30968 |
|
30969 |
|
30970 |
|
30971 |
|
30972 | exports._sbcs = SBCSCodec;
|
30973 | function SBCSCodec(codecOptions, iconv) {
|
30974 | if (!codecOptions)
|
30975 | throw new Error("SBCS codec is called without the data.")
|
30976 |
|
30977 |
|
30978 | if (!codecOptions.chars || (codecOptions.chars.length !== 128 && codecOptions.chars.length !== 256))
|
30979 | throw new Error("Encoding '"+codecOptions.type+"' has incorrect 'chars' (must be of len 128 or 256)");
|
30980 |
|
30981 | if (codecOptions.chars.length === 128) {
|
30982 | var asciiString = "";
|
30983 | for (var i = 0; i < 128; i++)
|
30984 | asciiString += String.fromCharCode(i);
|
30985 | codecOptions.chars = asciiString + codecOptions.chars;
|
30986 | }
|
30987 |
|
30988 | this.decodeBuf = Buffer.from(codecOptions.chars, 'ucs2');
|
30989 |
|
30990 |
|
30991 | var encodeBuf = Buffer.alloc(65536, iconv.defaultCharSingleByte.charCodeAt(0));
|
30992 |
|
30993 | for (var i = 0; i < codecOptions.chars.length; i++)
|
30994 | encodeBuf[codecOptions.chars.charCodeAt(i)] = i;
|
30995 |
|
30996 | this.encodeBuf = encodeBuf;
|
30997 | }
|
30998 |
|
30999 | SBCSCodec.prototype.encoder = SBCSEncoder;
|
31000 | SBCSCodec.prototype.decoder = SBCSDecoder;
|
31001 |
|
31002 |
|
31003 | function SBCSEncoder(options, codec) {
|
31004 | this.encodeBuf = codec.encodeBuf;
|
31005 | }
|
31006 |
|
31007 | SBCSEncoder.prototype.write = function(str) {
|
31008 | var buf = Buffer.alloc(str.length);
|
31009 | for (var i = 0; i < str.length; i++)
|
31010 | buf[i] = this.encodeBuf[str.charCodeAt(i)];
|
31011 |
|
31012 | return buf;
|
31013 | }
|
31014 |
|
31015 | SBCSEncoder.prototype.end = function() {
|
31016 | }
|
31017 |
|
31018 |
|
31019 | function SBCSDecoder(options, codec) {
|
31020 | this.decodeBuf = codec.decodeBuf;
|
31021 | }
|
31022 |
|
31023 | SBCSDecoder.prototype.write = function(buf) {
|
31024 |
|
31025 | var decodeBuf = this.decodeBuf;
|
31026 | var newBuf = Buffer.alloc(buf.length*2);
|
31027 | var idx1 = 0, idx2 = 0;
|
31028 | for (var i = 0; i < buf.length; i++) {
|
31029 | idx1 = buf[i]*2; idx2 = i*2;
|
31030 | newBuf[idx2] = decodeBuf[idx1];
|
31031 | newBuf[idx2+1] = decodeBuf[idx1+1];
|
31032 | }
|
31033 | return newBuf.toString('ucs2');
|
31034 | }
|
31035 |
|
31036 | SBCSDecoder.prototype.end = function() {
|
31037 | }
|
31038 |
|
31039 |
|
31040 | }),
|
31041 | ,
|
31042 | ,
|
31043 |
|
31044 | (function(module, __unusedexports, __webpack_require__) {
|
31045 |
|
31046 | "use strict";
|
31047 |
|
31048 |
|
31049 | const u = __webpack_require__(323).fromCallback
|
31050 | const path = __webpack_require__(622)
|
31051 | const fs = __webpack_require__(729)
|
31052 | const mkdir = __webpack_require__(648)
|
31053 | const pathExists = __webpack_require__(370).pathExists
|
31054 |
|
31055 | function createLink (srcpath, dstpath, callback) {
|
31056 | function makeLink (srcpath, dstpath) {
|
31057 | fs.link(srcpath, dstpath, err => {
|
31058 | if (err) return callback(err)
|
31059 | callback(null)
|
31060 | })
|
31061 | }
|
31062 |
|
31063 | pathExists(dstpath, (err, destinationExists) => {
|
31064 | if (err) return callback(err)
|
31065 | if (destinationExists) return callback(null)
|
31066 | fs.lstat(srcpath, (err) => {
|
31067 | if (err) {
|
31068 | err.message = err.message.replace('lstat', 'ensureLink')
|
31069 | return callback(err)
|
31070 | }
|
31071 |
|
31072 | const dir = path.dirname(dstpath)
|
31073 | pathExists(dir, (err, dirExists) => {
|
31074 | if (err) return callback(err)
|
31075 | if (dirExists) return makeLink(srcpath, dstpath)
|
31076 | mkdir.mkdirs(dir, err => {
|
31077 | if (err) return callback(err)
|
31078 | makeLink(srcpath, dstpath)
|
31079 | })
|
31080 | })
|
31081 | })
|
31082 | })
|
31083 | }
|
31084 |
|
31085 | function createLinkSync (srcpath, dstpath) {
|
31086 | const destinationExists = fs.existsSync(dstpath)
|
31087 | if (destinationExists) return undefined
|
31088 |
|
31089 | try {
|
31090 | fs.lstatSync(srcpath)
|
31091 | } catch (err) {
|
31092 | err.message = err.message.replace('lstat', 'ensureLink')
|
31093 | throw err
|
31094 | }
|
31095 |
|
31096 | const dir = path.dirname(dstpath)
|
31097 | const dirExists = fs.existsSync(dir)
|
31098 | if (dirExists) return fs.linkSync(srcpath, dstpath)
|
31099 | mkdir.mkdirsSync(dir)
|
31100 |
|
31101 | return fs.linkSync(srcpath, dstpath)
|
31102 | }
|
31103 |
|
31104 | module.exports = {
|
31105 | createLink: u(createLink),
|
31106 | createLinkSync
|
31107 | }
|
31108 |
|
31109 |
|
31110 | }),
|
31111 | ,
|
31112 | ,
|
31113 | ,
|
31114 | ,
|
31115 | ,
|
31116 | ,
|
31117 | ,
|
31118 | ,
|
31119 | ,
|
31120 | ,
|
31121 | ,
|
31122 | ,
|
31123 |
|
31124 | (function(module, __unusedexports, __webpack_require__) {
|
31125 |
|
31126 | "use strict";
|
31127 |
|
31128 | const stripAnsi = __webpack_require__(320);
|
31129 | const isFullwidthCodePoint = __webpack_require__(444);
|
31130 | const emojiRegex = __webpack_require__(325);
|
31131 |
|
31132 | const stringWidth = string => {
|
31133 | string = string.replace(emojiRegex(), ' ');
|
31134 |
|
31135 | if (typeof string !== 'string' || string.length === 0) {
|
31136 | return 0;
|
31137 | }
|
31138 |
|
31139 | string = stripAnsi(string);
|
31140 |
|
31141 | let width = 0;
|
31142 |
|
31143 | for (let i = 0; i < string.length; i++) {
|
31144 | const code = string.codePointAt(i);
|
31145 |
|
31146 |
|
31147 | if (code <= 0x1F || (code >= 0x7F && code <= 0x9F)) {
|
31148 | continue;
|
31149 | }
|
31150 |
|
31151 |
|
31152 | if (code >= 0x300 && code <= 0x36F) {
|
31153 | continue;
|
31154 | }
|
31155 |
|
31156 |
|
31157 | if (code > 0xFFFF) {
|
31158 | i++;
|
31159 | }
|
31160 |
|
31161 | width += isFullwidthCodePoint(code) ? 2 : 1;
|
31162 | }
|
31163 |
|
31164 | return width;
|
31165 | };
|
31166 |
|
31167 | module.exports = stringWidth;
|
31168 |
|
31169 | module.exports.default = stringWidth;
|
31170 |
|
31171 |
|
31172 | }),
|
31173 | ,
|
31174 | ,
|
31175 | ,
|
31176 | ,
|
31177 |
|
31178 | (function(module, __unusedexports, __webpack_require__) {
|
31179 |
|
31180 | "use strict";
|
31181 |
|
31182 |
|
31183 | const fs = __webpack_require__(729)
|
31184 | const path = __webpack_require__(622)
|
31185 | const mkdirpSync = __webpack_require__(648).mkdirsSync
|
31186 | const utimesSync = __webpack_require__(402).utimesMillisSync
|
31187 |
|
31188 | const notExist = Symbol('notExist')
|
31189 |
|
31190 | function copySync (src, dest, opts) {
|
31191 | if (typeof opts === 'function') {
|
31192 | opts = {filter: opts}
|
31193 | }
|
31194 |
|
31195 | opts = opts || {}
|
31196 | opts.clobber = 'clobber' in opts ? !!opts.clobber : true
|
31197 | opts.overwrite = 'overwrite' in opts ? !!opts.overwrite : opts.clobber
|
31198 |
|
31199 |
|
31200 | if (opts.preserveTimestamps && process.arch === 'ia32') {
|
31201 | console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n
|
31202 | see https://github.com/jprichardson/node-fs-extra/issues/269`)
|
31203 | }
|
31204 |
|
31205 | const destStat = checkPaths(src, dest)
|
31206 |
|
31207 | if (opts.filter && !opts.filter(src, dest)) return
|
31208 |
|
31209 | const destParent = path.dirname(dest)
|
31210 | if (!fs.existsSync(destParent)) mkdirpSync(destParent)
|
31211 | return startCopy(destStat, src, dest, opts)
|
31212 | }
|
31213 |
|
31214 | function startCopy (destStat, src, dest, opts) {
|
31215 | if (opts.filter && !opts.filter(src, dest)) return
|
31216 | return getStats(destStat, src, dest, opts)
|
31217 | }
|
31218 |
|
31219 | function getStats (destStat, src, dest, opts) {
|
31220 | const statSync = opts.dereference ? fs.statSync : fs.lstatSync
|
31221 | const srcStat = statSync(src)
|
31222 |
|
31223 | if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts)
|
31224 | else if (srcStat.isFile() ||
|
31225 | srcStat.isCharacterDevice() ||
|
31226 | srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts)
|
31227 | else if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts)
|
31228 | }
|
31229 |
|
31230 | function onFile (srcStat, destStat, src, dest, opts) {
|
31231 | if (destStat === notExist) return copyFile(srcStat, src, dest, opts)
|
31232 | return mayCopyFile(srcStat, src, dest, opts)
|
31233 | }
|
31234 |
|
31235 | function mayCopyFile (srcStat, src, dest, opts) {
|
31236 | if (opts.overwrite) {
|
31237 | fs.unlinkSync(dest)
|
31238 | return copyFile(srcStat, src, dest, opts)
|
31239 | } else if (opts.errorOnExist) {
|
31240 | throw new Error(`'${dest}' already exists`)
|
31241 | }
|
31242 | }
|
31243 |
|
31244 | function copyFile (srcStat, src, dest, opts) {
|
31245 | if (typeof fs.copyFileSync === 'function') {
|
31246 | fs.copyFileSync(src, dest)
|
31247 | fs.chmodSync(dest, srcStat.mode)
|
31248 | if (opts.preserveTimestamps) {
|
31249 | return utimesSync(dest, srcStat.atime, srcStat.mtime)
|
31250 | }
|
31251 | return
|
31252 | }
|
31253 | return copyFileFallback(srcStat, src, dest, opts)
|
31254 | }
|
31255 |
|
31256 | function copyFileFallback (srcStat, src, dest, opts) {
|
31257 | const BUF_LENGTH = 64 * 1024
|
31258 | const _buff = __webpack_require__(518)(BUF_LENGTH)
|
31259 |
|
31260 | const fdr = fs.openSync(src, 'r')
|
31261 | const fdw = fs.openSync(dest, 'w', srcStat.mode)
|
31262 | let pos = 0
|
31263 |
|
31264 | while (pos < srcStat.size) {
|
31265 | const bytesRead = fs.readSync(fdr, _buff, 0, BUF_LENGTH, pos)
|
31266 | fs.writeSync(fdw, _buff, 0, bytesRead)
|
31267 | pos += bytesRead
|
31268 | }
|
31269 |
|
31270 | if (opts.preserveTimestamps) fs.futimesSync(fdw, srcStat.atime, srcStat.mtime)
|
31271 |
|
31272 | fs.closeSync(fdr)
|
31273 | fs.closeSync(fdw)
|
31274 | }
|
31275 |
|
31276 | function onDir (srcStat, destStat, src, dest, opts) {
|
31277 | if (destStat === notExist) return mkDirAndCopy(srcStat, src, dest, opts)
|
31278 | if (destStat && !destStat.isDirectory()) {
|
31279 | throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`)
|
31280 | }
|
31281 | return copyDir(src, dest, opts)
|
31282 | }
|
31283 |
|
31284 | function mkDirAndCopy (srcStat, src, dest, opts) {
|
31285 | fs.mkdirSync(dest)
|
31286 | copyDir(src, dest, opts)
|
31287 | return fs.chmodSync(dest, srcStat.mode)
|
31288 | }
|
31289 |
|
31290 | function copyDir (src, dest, opts) {
|
31291 | fs.readdirSync(src).forEach(item => copyDirItem(item, src, dest, opts))
|
31292 | }
|
31293 |
|
31294 | function copyDirItem (item, src, dest, opts) {
|
31295 | const srcItem = path.join(src, item)
|
31296 | const destItem = path.join(dest, item)
|
31297 | const destStat = checkPaths(srcItem, destItem)
|
31298 | return startCopy(destStat, srcItem, destItem, opts)
|
31299 | }
|
31300 |
|
31301 | function onLink (destStat, src, dest, opts) {
|
31302 | let resolvedSrc = fs.readlinkSync(src)
|
31303 |
|
31304 | if (opts.dereference) {
|
31305 | resolvedSrc = path.resolve(process.cwd(), resolvedSrc)
|
31306 | }
|
31307 |
|
31308 | if (destStat === notExist) {
|
31309 | return fs.symlinkSync(resolvedSrc, dest)
|
31310 | } else {
|
31311 | let resolvedDest
|
31312 | try {
|
31313 | resolvedDest = fs.readlinkSync(dest)
|
31314 | } catch (err) {
|
31315 |
|
31316 |
|
31317 |
|
31318 | if (err.code === 'EINVAL' || err.code === 'UNKNOWN') return fs.symlinkSync(resolvedSrc, dest)
|
31319 | throw err
|
31320 | }
|
31321 | if (opts.dereference) {
|
31322 | resolvedDest = path.resolve(process.cwd(), resolvedDest)
|
31323 | }
|
31324 | if (isSrcSubdir(resolvedSrc, resolvedDest)) {
|
31325 | throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`)
|
31326 | }
|
31327 |
|
31328 |
|
31329 |
|
31330 |
|
31331 | if (fs.statSync(dest).isDirectory() && isSrcSubdir(resolvedDest, resolvedSrc)) {
|
31332 | throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`)
|
31333 | }
|
31334 | return copyLink(resolvedSrc, dest)
|
31335 | }
|
31336 | }
|
31337 |
|
31338 | function copyLink (resolvedSrc, dest) {
|
31339 | fs.unlinkSync(dest)
|
31340 | return fs.symlinkSync(resolvedSrc, dest)
|
31341 | }
|
31342 |
|
31343 |
|
31344 | function isSrcSubdir (src, dest) {
|
31345 | const srcArray = path.resolve(src).split(path.sep)
|
31346 | const destArray = path.resolve(dest).split(path.sep)
|
31347 | return srcArray.reduce((acc, current, i) => acc && destArray[i] === current, true)
|
31348 | }
|
31349 |
|
31350 | function checkStats (src, dest) {
|
31351 | const srcStat = fs.statSync(src)
|
31352 | let destStat
|
31353 | try {
|
31354 | destStat = fs.statSync(dest)
|
31355 | } catch (err) {
|
31356 | if (err.code === 'ENOENT') return {srcStat, destStat: notExist}
|
31357 | throw err
|
31358 | }
|
31359 | return {srcStat, destStat}
|
31360 | }
|
31361 |
|
31362 | function checkPaths (src, dest) {
|
31363 | const {srcStat, destStat} = checkStats(src, dest)
|
31364 | if (destStat.ino && destStat.ino === srcStat.ino) {
|
31365 | throw new Error('Source and destination must not be the same.')
|
31366 | }
|
31367 | if (srcStat.isDirectory() && isSrcSubdir(src, dest)) {
|
31368 | throw new Error(`Cannot copy '${src}' to a subdirectory of itself, '${dest}'.`)
|
31369 | }
|
31370 | return destStat
|
31371 | }
|
31372 |
|
31373 | module.exports = copySync
|
31374 |
|
31375 |
|
31376 | }),
|
31377 | ,
|
31378 |
|
31379 | (function(module, __unusedexports, __webpack_require__) {
|
31380 |
|
31381 | "use strict";
|
31382 |
|
31383 | module.exports = parseAsync
|
31384 |
|
31385 | const TOMLParser = __webpack_require__(882)
|
31386 | const prettyError = __webpack_require__(490)
|
31387 |
|
31388 | function parseAsync (str, opts) {
|
31389 | if (!opts) opts = {}
|
31390 | const index = 0
|
31391 | const blocksize = opts.blocksize || 40960
|
31392 | const parser = new TOMLParser()
|
31393 | return new Promise((resolve, reject) => {
|
31394 | setImmediate(parseAsyncNext, index, blocksize, resolve, reject)
|
31395 | })
|
31396 | function parseAsyncNext (index, blocksize, resolve, reject) {
|
31397 | if (index >= str.length) {
|
31398 | try {
|
31399 | return resolve(parser.finish())
|
31400 | } catch (err) {
|
31401 | return reject(prettyError(err, str))
|
31402 | }
|
31403 | }
|
31404 | try {
|
31405 | parser.parse(str.slice(index, index + blocksize))
|
31406 | setImmediate(parseAsyncNext, index + blocksize, blocksize, resolve, reject)
|
31407 | } catch (err) {
|
31408 | reject(prettyError(err, str))
|
31409 | }
|
31410 | }
|
31411 | }
|
31412 |
|
31413 |
|
31414 | }),
|
31415 | ,
|
31416 | ,
|
31417 | ,
|
31418 | ,
|
31419 | ,
|
31420 | ,
|
31421 | ,
|
31422 |
|
31423 | (function(module, __unusedexports, __webpack_require__) {
|
31424 |
|
31425 | "use strict";
|
31426 |
|
31427 | const stripAnsi = __webpack_require__(598);
|
31428 | const isFullwidthCodePoint = __webpack_require__(759);
|
31429 | const emojiRegex = __webpack_require__(439)();
|
31430 |
|
31431 | module.exports = input => {
|
31432 | input = input.replace(emojiRegex, ' ');
|
31433 |
|
31434 | if (typeof input !== 'string' || input.length === 0) {
|
31435 | return 0;
|
31436 | }
|
31437 |
|
31438 | input = stripAnsi(input);
|
31439 |
|
31440 | let width = 0;
|
31441 |
|
31442 | for (let i = 0; i < input.length; i++) {
|
31443 | const code = input.codePointAt(i);
|
31444 |
|
31445 |
|
31446 | if (code <= 0x1F || (code >= 0x7F && code <= 0x9F)) {
|
31447 | continue;
|
31448 | }
|
31449 |
|
31450 |
|
31451 | if (code >= 0x300 && code <= 0x36F) {
|
31452 | continue;
|
31453 | }
|
31454 |
|
31455 |
|
31456 | if (code > 0xFFFF) {
|
31457 | i++;
|
31458 | }
|
31459 |
|
31460 | width += isFullwidthCodePoint(code) ? 2 : 1;
|
31461 | }
|
31462 |
|
31463 | return width;
|
31464 | };
|
31465 |
|
31466 |
|
31467 | }),
|
31468 | ,
|
31469 | ,
|
31470 | ,
|
31471 | ,
|
31472 | ,
|
31473 | ,
|
31474 |
|
31475 | (function(__unusedmodule, exports, __webpack_require__) {
|
31476 |
|
31477 | "use strict";
|
31478 |
|
31479 | var __importDefault = (this && this.__importDefault) || function (mod) {
|
31480 | return (mod && mod.__esModule) ? mod : { "default": mod };
|
31481 | };
|
31482 | Object.defineProperty(exports, "__esModule", { value: true });
|
31483 | exports.installDependencies = exports.runPackageJsonScript = exports.runPipInstall = exports.runBundleInstall = exports.runNpmInstall = exports.walkParentDirs = exports.getNodeVersion = exports.getSpawnOptions = exports.runShellScript = exports.getNodeBinPath = exports.execCommand = exports.spawnCommand = exports.execAsync = exports.spawnAsync = void 0;
|
31484 | const assert_1 = __importDefault(__webpack_require__(357));
|
31485 | const fs_extra_1 = __importDefault(__webpack_require__(410));
|
31486 | const path_1 = __importDefault(__webpack_require__(622));
|
31487 | const debug_1 = __importDefault(__webpack_require__(785));
|
31488 | const cross_spawn_1 = __importDefault(__webpack_require__(19));
|
31489 | const util_1 = __webpack_require__(669);
|
31490 | const os_1 = __webpack_require__(87);
|
31491 | const errors_1 = __webpack_require__(850);
|
31492 | const node_version_1 = __webpack_require__(874);
|
31493 | function spawnAsync(command, args, opts = {}) {
|
31494 | return new Promise((resolve, reject) => {
|
31495 | const stderrLogs = [];
|
31496 | opts = { stdio: 'inherit', ...opts };
|
31497 | const child = cross_spawn_1.default(command, args, opts);
|
31498 | if (opts.stdio === 'pipe' && child.stderr) {
|
31499 | child.stderr.on('data', data => stderrLogs.push(data));
|
31500 | }
|
31501 | child.on('error', reject);
|
31502 | child.on('close', (code, signal) => {
|
31503 | if (code === 0) {
|
31504 | return resolve();
|
31505 | }
|
31506 | const cmd = opts.prettyCommand
|
31507 | ? `Command "${opts.prettyCommand}"`
|
31508 | : 'Command';
|
31509 | reject(new errors_1.NowBuildError({
|
31510 | code: `BUILD_UTILS_SPAWN_${code || signal}`,
|
31511 | message: opts.stdio === 'inherit'
|
31512 | ? `${cmd} exited with ${code || signal}`
|
31513 | : stderrLogs.map(line => line.toString()).join(''),
|
31514 | }));
|
31515 | });
|
31516 | });
|
31517 | }
|
31518 | exports.spawnAsync = spawnAsync;
|
31519 | function execAsync(command, args, opts = {}) {
|
31520 | return new Promise((resolve, reject) => {
|
31521 | opts.stdio = 'pipe';
|
31522 | const stdoutList = [];
|
31523 | const stderrList = [];
|
31524 | const child = cross_spawn_1.default(command, args, opts);
|
31525 | child.stderr.on('data', data => {
|
31526 | stderrList.push(data);
|
31527 | });
|
31528 | child.stdout.on('data', data => {
|
31529 | stdoutList.push(data);
|
31530 | });
|
31531 | child.on('error', reject);
|
31532 | child.on('close', (code, signal) => {
|
31533 | if (code !== 0) {
|
31534 | const cmd = opts.prettyCommand
|
31535 | ? `Command "${opts.prettyCommand}"`
|
31536 | : 'Command';
|
31537 | return reject(new errors_1.NowBuildError({
|
31538 | code: `BUILD_UTILS_EXEC_${code || signal}`,
|
31539 | message: `${cmd} exited with ${code || signal}`,
|
31540 | }));
|
31541 | }
|
31542 | return resolve({
|
31543 | code,
|
31544 | stdout: Buffer.concat(stdoutList).toString(),
|
31545 | stderr: Buffer.concat(stderrList).toString(),
|
31546 | });
|
31547 | });
|
31548 | });
|
31549 | }
|
31550 | exports.execAsync = execAsync;
|
31551 | function spawnCommand(command, options = {}) {
|
31552 | const opts = { ...options, prettyCommand: command };
|
31553 | if (process.platform === 'win32') {
|
31554 | return cross_spawn_1.default('cmd.exe', ['/C', command], opts);
|
31555 | }
|
31556 | return cross_spawn_1.default('sh', ['-c', command], opts);
|
31557 | }
|
31558 | exports.spawnCommand = spawnCommand;
|
31559 | async function execCommand(command, options = {}) {
|
31560 | const opts = { ...options, prettyCommand: command };
|
31561 | if (process.platform === 'win32') {
|
31562 | await spawnAsync('cmd.exe', ['/C', command], opts);
|
31563 | }
|
31564 | else {
|
31565 | await spawnAsync('sh', ['-c', command], opts);
|
31566 | }
|
31567 | return true;
|
31568 | }
|
31569 | exports.execCommand = execCommand;
|
31570 | async function getNodeBinPath({ cwd }) {
|
31571 | const { stdout } = await execAsync('npm', ['bin'], { cwd });
|
31572 | return stdout.trim();
|
31573 | }
|
31574 | exports.getNodeBinPath = getNodeBinPath;
|
31575 | async function chmodPlusX(fsPath) {
|
31576 | const s = await fs_extra_1.default.stat(fsPath);
|
31577 | const newMode = s.mode | 64 | 8 | 1;
|
31578 | if (s.mode === newMode)
|
31579 | return;
|
31580 | const base8 = newMode.toString(8).slice(-3);
|
31581 | await fs_extra_1.default.chmod(fsPath, base8);
|
31582 | }
|
31583 | async function runShellScript(fsPath, args = [], spawnOpts) {
|
31584 | assert_1.default(path_1.default.isAbsolute(fsPath));
|
31585 | const destPath = path_1.default.dirname(fsPath);
|
31586 | await chmodPlusX(fsPath);
|
31587 | const command = `./${path_1.default.basename(fsPath)}`;
|
31588 | await spawnAsync(command, args, {
|
31589 | ...spawnOpts,
|
31590 | cwd: destPath,
|
31591 | prettyCommand: command,
|
31592 | });
|
31593 | return true;
|
31594 | }
|
31595 | exports.runShellScript = runShellScript;
|
31596 | function getSpawnOptions(meta, nodeVersion) {
|
31597 | const opts = {
|
31598 | env: { ...process.env },
|
31599 | };
|
31600 | if (!meta.isDev) {
|
31601 | opts.env.PATH = `/node${nodeVersion.major}/bin:${opts.env.PATH}`;
|
31602 | }
|
31603 | return opts;
|
31604 | }
|
31605 | exports.getSpawnOptions = getSpawnOptions;
|
31606 | async function getNodeVersion(destPath, _nodeVersion, _config, meta) {
|
31607 | if (meta && meta.isDev) {
|
31608 |
|
31609 | const latest = node_version_1.getLatestNodeVersion();
|
31610 | return { ...latest, runtime: 'nodejs' };
|
31611 | }
|
31612 | const { packageJson } = await scanParentDirs(destPath, true);
|
31613 | let range;
|
31614 | let isAuto = true;
|
31615 | if (packageJson && packageJson.engines && packageJson.engines.node) {
|
31616 | range = packageJson.engines.node;
|
31617 | isAuto = false;
|
31618 | }
|
31619 | return node_version_1.getSupportedNodeVersion(range, isAuto);
|
31620 | }
|
31621 | exports.getNodeVersion = getNodeVersion;
|
31622 | async function scanParentDirs(destPath, readPackageJson = false) {
|
31623 | assert_1.default(path_1.default.isAbsolute(destPath));
|
31624 | let cliType = 'yarn';
|
31625 | let packageJson;
|
31626 | let currentDestPath = destPath;
|
31627 |
|
31628 | while (true) {
|
31629 | const packageJsonPath = path_1.default.join(currentDestPath, 'package.json');
|
31630 |
|
31631 | if (await fs_extra_1.default.pathExists(packageJsonPath)) {
|
31632 |
|
31633 | if (readPackageJson) {
|
31634 | packageJson = JSON.parse(await fs_extra_1.default.readFile(packageJsonPath, 'utf8'));
|
31635 | }
|
31636 |
|
31637 | const [hasPackageLockJson, hasYarnLock] = await Promise.all([
|
31638 | fs_extra_1.default.pathExists(path_1.default.join(currentDestPath, 'package-lock.json')),
|
31639 | fs_extra_1.default.pathExists(path_1.default.join(currentDestPath, 'yarn.lock')),
|
31640 | ]);
|
31641 | if (hasPackageLockJson && !hasYarnLock) {
|
31642 | cliType = 'npm';
|
31643 | }
|
31644 | break;
|
31645 | }
|
31646 | const newDestPath = path_1.default.dirname(currentDestPath);
|
31647 | if (currentDestPath === newDestPath)
|
31648 | break;
|
31649 | currentDestPath = newDestPath;
|
31650 | }
|
31651 | return { cliType, packageJson };
|
31652 | }
|
31653 | async function walkParentDirs({ base, start, filename, }) {
|
31654 | assert_1.default(path_1.default.isAbsolute(base), 'Expected "base" to be absolute path');
|
31655 | assert_1.default(path_1.default.isAbsolute(start), 'Expected "start" to be absolute path');
|
31656 | let parent = '';
|
31657 | for (let current = start; base.length <= current.length; current = parent) {
|
31658 | const fullPath = path_1.default.join(current, filename);
|
31659 |
|
31660 | if (await fs_extra_1.default.pathExists(fullPath)) {
|
31661 | return fullPath;
|
31662 | }
|
31663 | parent = path_1.default.dirname(current);
|
31664 | }
|
31665 | return null;
|
31666 | }
|
31667 | exports.walkParentDirs = walkParentDirs;
|
31668 | async function runNpmInstall(destPath, args = [], spawnOpts, meta) {
|
31669 | if (meta && meta.isDev) {
|
31670 | debug_1.default('Skipping dependency installation because dev mode is enabled');
|
31671 | return;
|
31672 | }
|
31673 | assert_1.default(path_1.default.isAbsolute(destPath));
|
31674 | debug_1.default(`Installing to ${destPath}`);
|
31675 | const { cliType } = await scanParentDirs(destPath);
|
31676 | const opts = { cwd: destPath, ...spawnOpts };
|
31677 | const env = opts.env ? { ...opts.env } : { ...process.env };
|
31678 | delete env.NODE_ENV;
|
31679 | opts.env = env;
|
31680 | let command;
|
31681 | let commandArgs;
|
31682 | if (cliType === 'npm') {
|
31683 | opts.prettyCommand = 'npm install';
|
31684 | command = 'npm';
|
31685 | commandArgs = args
|
31686 | .filter(a => a !== '--prefer-offline')
|
31687 | .concat(['install', '--no-audit', '--unsafe-perm']);
|
31688 | }
|
31689 | else {
|
31690 | opts.prettyCommand = 'yarn install';
|
31691 | command = 'yarn';
|
31692 | commandArgs = ['install', ...args];
|
31693 | }
|
31694 | if (process.env.NPM_ONLY_PRODUCTION) {
|
31695 | commandArgs.push('--production');
|
31696 | }
|
31697 | await spawnAsync(command, commandArgs, opts);
|
31698 | }
|
31699 | exports.runNpmInstall = runNpmInstall;
|
31700 | async function runBundleInstall(destPath, args = [], spawnOpts, meta) {
|
31701 | if (meta && meta.isDev) {
|
31702 | debug_1.default('Skipping dependency installation because dev mode is enabled');
|
31703 | return;
|
31704 | }
|
31705 | assert_1.default(path_1.default.isAbsolute(destPath));
|
31706 | const opts = { ...spawnOpts, cwd: destPath, prettyCommand: 'bundle install' };
|
31707 | await spawnAsync('bundle', args.concat([
|
31708 | 'install',
|
31709 | '--no-prune',
|
31710 | '--retry',
|
31711 | '3',
|
31712 | '--jobs',
|
31713 | String(os_1.cpus().length || 1),
|
31714 | ]), opts);
|
31715 | }
|
31716 | exports.runBundleInstall = runBundleInstall;
|
31717 | async function runPipInstall(destPath, args = [], spawnOpts, meta) {
|
31718 | if (meta && meta.isDev) {
|
31719 | debug_1.default('Skipping dependency installation because dev mode is enabled');
|
31720 | return;
|
31721 | }
|
31722 | assert_1.default(path_1.default.isAbsolute(destPath));
|
31723 | const opts = { ...spawnOpts, cwd: destPath, prettyCommand: 'pip3 install' };
|
31724 | await spawnAsync('pip3', ['install', '--disable-pip-version-check', ...args], opts);
|
31725 | }
|
31726 | exports.runPipInstall = runPipInstall;
|
31727 | async function runPackageJsonScript(destPath, scriptName, spawnOpts) {
|
31728 | assert_1.default(path_1.default.isAbsolute(destPath));
|
31729 | const { packageJson, cliType } = await scanParentDirs(destPath, true);
|
31730 | const hasScript = Boolean(packageJson &&
|
31731 | packageJson.scripts &&
|
31732 | scriptName &&
|
31733 | packageJson.scripts[scriptName]);
|
31734 | if (!hasScript)
|
31735 | return false;
|
31736 | if (cliType === 'npm') {
|
31737 | const prettyCommand = `npm run ${scriptName}`;
|
31738 | console.log(`Running "${prettyCommand}"`);
|
31739 | await spawnAsync('npm', ['run', scriptName], {
|
31740 | ...spawnOpts,
|
31741 | cwd: destPath,
|
31742 | prettyCommand,
|
31743 | });
|
31744 | }
|
31745 | else {
|
31746 | const prettyCommand = `yarn run ${scriptName}`;
|
31747 | console.log(`Running "${prettyCommand}"`);
|
31748 | await spawnAsync('yarn', ['run', scriptName], {
|
31749 | ...spawnOpts,
|
31750 | cwd: destPath,
|
31751 | prettyCommand,
|
31752 | });
|
31753 | }
|
31754 | return true;
|
31755 | }
|
31756 | exports.runPackageJsonScript = runPackageJsonScript;
|
31757 |
|
31758 |
|
31759 |
|
31760 |
|
31761 | exports.installDependencies = util_1.deprecate(runNpmInstall, 'installDependencies() is deprecated. Please use runNpmInstall() instead.');
|
31762 |
|
31763 |
|
31764 | }),
|
31765 | ,
|
31766 |
|
31767 | (function(module, __unusedexports, __webpack_require__) {
|
31768 |
|
31769 | "use strict";
|
31770 |
|
31771 | const f = __webpack_require__(677)
|
31772 |
|
31773 | class FloatingDateTime extends Date {
|
31774 | constructor (value) {
|
31775 | super(value + 'Z')
|
31776 | this.isFloating = true
|
31777 | }
|
31778 | toISOString () {
|
31779 | const date = `${this.getUTCFullYear()}-${f(2, this.getUTCMonth() + 1)}-${f(2, this.getUTCDate())}`
|
31780 | const time = `${f(2, this.getUTCHours())}:${f(2, this.getUTCMinutes())}:${f(2, this.getUTCSeconds())}.${f(3, this.getUTCMilliseconds())}`
|
31781 | return `${date}T${time}`
|
31782 | }
|
31783 | }
|
31784 |
|
31785 | module.exports = value => {
|
31786 | const date = new FloatingDateTime(value)
|
31787 |
|
31788 | if (isNaN(date)) {
|
31789 | throw new TypeError('Invalid Datetime')
|
31790 | } else {
|
31791 | return date
|
31792 | }
|
31793 | }
|
31794 |
|
31795 |
|
31796 | }),
|
31797 | ,
|
31798 | ,
|
31799 | ,
|
31800 |
|
31801 | (function(__unusedmodule, exports, __webpack_require__) {
|
31802 |
|
31803 | "use strict";
|
31804 |
|
31805 | Object.defineProperty(exports, "__esModule", { value: true });
|
31806 | const path_1 = __webpack_require__(622);
|
31807 | const os_1 = __webpack_require__(87);
|
31808 | const fs_extra_1 = __webpack_require__(410);
|
31809 | async function getWritableDirectory() {
|
31810 | const name = Math.floor(Math.random() * 0x7fffffff).toString(16);
|
31811 | const directory = path_1.join(os_1.tmpdir(), name);
|
31812 | await fs_extra_1.mkdirp(directory);
|
31813 | return directory;
|
31814 | }
|
31815 | exports.default = getWritableDirectory;
|
31816 |
|
31817 |
|
31818 | })
|
31819 | ],
|
31820 | function(__webpack_require__) {
|
31821 | "use strict";
|
31822 |
|
31823 |
|
31824 | !function() {
|
31825 | __webpack_require__.nmd = function(module) {
|
31826 | module.paths = [];
|
31827 | if (!module.children) module.children = [];
|
31828 | Object.defineProperty(module, 'loaded', {
|
31829 | enumerable: true,
|
31830 | get: function() { return module.l; }
|
31831 | });
|
31832 | Object.defineProperty(module, 'id', {
|
31833 | enumerable: true,
|
31834 | get: function() { return module.i; }
|
31835 | });
|
31836 | return module;
|
31837 | };
|
31838 | }();
|
31839 |
|
31840 | }
|
31841 | ); |
\ | No newline at end of file |