@tscircuit/footprinter 0.0.47 → 0.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +27 -3333
- package/dist/index.cjs.map +1 -1
- package/package.json +5 -2
package/dist/index.cjs
CHANGED
|
@@ -5,3334 +5,27 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
for (let key of __getOwnPropNames(from))
|
|
18
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
19
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
20
|
-
}
|
|
21
|
-
return to;
|
|
22
|
-
};
|
|
23
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
26
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
27
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
28
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
29
|
-
mod
|
|
30
|
-
));
|
|
31
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
|
-
|
|
33
|
-
// node_modules/lodash._objecttypes/index.js
|
|
34
|
-
var require_lodash = __commonJS({
|
|
35
|
-
"node_modules/lodash._objecttypes/index.js"(exports2, module2) {
|
|
36
|
-
"use strict";
|
|
37
|
-
var objectTypes = {
|
|
38
|
-
"boolean": false,
|
|
39
|
-
"function": true,
|
|
40
|
-
"object": true,
|
|
41
|
-
"number": false,
|
|
42
|
-
"string": false,
|
|
43
|
-
"undefined": false
|
|
44
|
-
};
|
|
45
|
-
module2.exports = objectTypes;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
// node_modules/lodash.isobject/index.js
|
|
50
|
-
var require_lodash2 = __commonJS({
|
|
51
|
-
"node_modules/lodash.isobject/index.js"(exports2, module2) {
|
|
52
|
-
"use strict";
|
|
53
|
-
var objectTypes = require_lodash();
|
|
54
|
-
function isObject(value) {
|
|
55
|
-
return !!(value && objectTypes[typeof value]);
|
|
56
|
-
}
|
|
57
|
-
module2.exports = isObject;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
// node_modules/lodash._renative/index.js
|
|
62
|
-
var require_lodash3 = __commonJS({
|
|
63
|
-
"node_modules/lodash._renative/index.js"(exports2, module2) {
|
|
64
|
-
"use strict";
|
|
65
|
-
var objectProto = Object.prototype;
|
|
66
|
-
var toString = objectProto.toString;
|
|
67
|
-
var reNative = RegExp(
|
|
68
|
-
"^" + String(toString).replace(/[.*+?^${}()|[\]\\]/g, "\\$&").replace(/toString| for [^\]]+/g, ".*?") + "$"
|
|
69
|
-
);
|
|
70
|
-
module2.exports = reNative;
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
// node_modules/lodash._shimkeys/index.js
|
|
75
|
-
var require_lodash4 = __commonJS({
|
|
76
|
-
"node_modules/lodash._shimkeys/index.js"(exports2, module2) {
|
|
77
|
-
"use strict";
|
|
78
|
-
var objectTypes = require_lodash();
|
|
79
|
-
var objectProto = Object.prototype;
|
|
80
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
81
|
-
var shimKeys = function(object) {
|
|
82
|
-
var index, iterable = object, result = [];
|
|
83
|
-
if (!iterable)
|
|
84
|
-
return result;
|
|
85
|
-
if (!objectTypes[typeof object])
|
|
86
|
-
return result;
|
|
87
|
-
for (index in iterable) {
|
|
88
|
-
if (hasOwnProperty.call(iterable, index)) {
|
|
89
|
-
result.push(index);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
return result;
|
|
93
|
-
};
|
|
94
|
-
module2.exports = shimKeys;
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
// node_modules/lodash.keys/index.js
|
|
99
|
-
var require_lodash5 = __commonJS({
|
|
100
|
-
"node_modules/lodash.keys/index.js"(exports2, module2) {
|
|
101
|
-
"use strict";
|
|
102
|
-
var isObject = require_lodash2();
|
|
103
|
-
var reNative = require_lodash3();
|
|
104
|
-
var shimKeys = require_lodash4();
|
|
105
|
-
var nativeKeys = reNative.test(nativeKeys = Object.keys) && nativeKeys;
|
|
106
|
-
var keys = !nativeKeys ? shimKeys : function(object) {
|
|
107
|
-
if (!isObject(object)) {
|
|
108
|
-
return [];
|
|
109
|
-
}
|
|
110
|
-
return nativeKeys(object);
|
|
111
|
-
};
|
|
112
|
-
module2.exports = keys;
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
|
|
116
|
-
// node_modules/lodash.noop/index.js
|
|
117
|
-
var require_lodash6 = __commonJS({
|
|
118
|
-
"node_modules/lodash.noop/index.js"(exports2, module2) {
|
|
119
|
-
"use strict";
|
|
120
|
-
function noop() {
|
|
121
|
-
}
|
|
122
|
-
module2.exports = noop;
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
|
|
126
|
-
// node_modules/lodash._basecreate/index.js
|
|
127
|
-
var require_lodash7 = __commonJS({
|
|
128
|
-
"node_modules/lodash._basecreate/index.js"(exports2, module2) {
|
|
129
|
-
"use strict";
|
|
130
|
-
var isObject = require_lodash2();
|
|
131
|
-
var noop = require_lodash6();
|
|
132
|
-
var reNative = require_lodash3();
|
|
133
|
-
var nativeCreate = reNative.test(nativeCreate = Object.create) && nativeCreate;
|
|
134
|
-
function baseCreate(prototype, properties) {
|
|
135
|
-
return isObject(prototype) ? nativeCreate(prototype) : {};
|
|
136
|
-
}
|
|
137
|
-
if (!nativeCreate) {
|
|
138
|
-
baseCreate = /* @__PURE__ */ function() {
|
|
139
|
-
function Object2() {
|
|
140
|
-
}
|
|
141
|
-
return function(prototype) {
|
|
142
|
-
if (isObject(prototype)) {
|
|
143
|
-
Object2.prototype = prototype;
|
|
144
|
-
var result = new Object2();
|
|
145
|
-
Object2.prototype = null;
|
|
146
|
-
}
|
|
147
|
-
return result || global.Object();
|
|
148
|
-
};
|
|
149
|
-
}();
|
|
150
|
-
}
|
|
151
|
-
module2.exports = baseCreate;
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
|
|
155
|
-
// node_modules/lodash._setbinddata/index.js
|
|
156
|
-
var require_lodash8 = __commonJS({
|
|
157
|
-
"node_modules/lodash._setbinddata/index.js"(exports2, module2) {
|
|
158
|
-
"use strict";
|
|
159
|
-
var noop = require_lodash6();
|
|
160
|
-
var reNative = require_lodash3();
|
|
161
|
-
var descriptor = {
|
|
162
|
-
"configurable": false,
|
|
163
|
-
"enumerable": false,
|
|
164
|
-
"value": null,
|
|
165
|
-
"writable": false
|
|
166
|
-
};
|
|
167
|
-
var defineProperty = function() {
|
|
168
|
-
try {
|
|
169
|
-
var o = {}, func = reNative.test(func = Object.defineProperty) && func, result = func(o, o, o) && func;
|
|
170
|
-
} catch (e) {
|
|
171
|
-
}
|
|
172
|
-
return result;
|
|
173
|
-
}();
|
|
174
|
-
var setBindData = !defineProperty ? noop : function(func, value) {
|
|
175
|
-
descriptor.value = value;
|
|
176
|
-
defineProperty(func, "__bindData__", descriptor);
|
|
177
|
-
};
|
|
178
|
-
module2.exports = setBindData;
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
|
|
182
|
-
// node_modules/lodash._basebind/index.js
|
|
183
|
-
var require_lodash9 = __commonJS({
|
|
184
|
-
"node_modules/lodash._basebind/index.js"(exports2, module2) {
|
|
185
|
-
"use strict";
|
|
186
|
-
var baseCreate = require_lodash7();
|
|
187
|
-
var isObject = require_lodash2();
|
|
188
|
-
var setBindData = require_lodash8();
|
|
189
|
-
var arrayRef = [];
|
|
190
|
-
var push = arrayRef.push;
|
|
191
|
-
function baseBind(bindData) {
|
|
192
|
-
var func = bindData[0], partialArgs = bindData[2], thisArg = bindData[4];
|
|
193
|
-
function bound() {
|
|
194
|
-
if (partialArgs) {
|
|
195
|
-
var args = partialArgs.slice();
|
|
196
|
-
push.apply(args, arguments);
|
|
197
|
-
}
|
|
198
|
-
if (this instanceof bound) {
|
|
199
|
-
var thisBinding = baseCreate(func.prototype), result = func.apply(thisBinding, args || arguments);
|
|
200
|
-
return isObject(result) ? result : thisBinding;
|
|
201
|
-
}
|
|
202
|
-
return func.apply(thisArg, args || arguments);
|
|
203
|
-
}
|
|
204
|
-
setBindData(bound, bindData);
|
|
205
|
-
return bound;
|
|
206
|
-
}
|
|
207
|
-
module2.exports = baseBind;
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
|
|
211
|
-
// node_modules/lodash._slice/index.js
|
|
212
|
-
var require_lodash10 = __commonJS({
|
|
213
|
-
"node_modules/lodash._slice/index.js"(exports2, module2) {
|
|
214
|
-
"use strict";
|
|
215
|
-
function slice(array, start, end) {
|
|
216
|
-
start || (start = 0);
|
|
217
|
-
if (typeof end == "undefined") {
|
|
218
|
-
end = array ? array.length : 0;
|
|
219
|
-
}
|
|
220
|
-
var index = -1, length6 = end - start || 0, result = Array(length6 < 0 ? 0 : length6);
|
|
221
|
-
while (++index < length6) {
|
|
222
|
-
result[index] = array[start + index];
|
|
223
|
-
}
|
|
224
|
-
return result;
|
|
225
|
-
}
|
|
226
|
-
module2.exports = slice;
|
|
227
|
-
}
|
|
228
|
-
});
|
|
229
|
-
|
|
230
|
-
// node_modules/lodash._basecreatewrapper/index.js
|
|
231
|
-
var require_lodash11 = __commonJS({
|
|
232
|
-
"node_modules/lodash._basecreatewrapper/index.js"(exports2, module2) {
|
|
233
|
-
"use strict";
|
|
234
|
-
var baseCreate = require_lodash7();
|
|
235
|
-
var isObject = require_lodash2();
|
|
236
|
-
var setBindData = require_lodash8();
|
|
237
|
-
var slice = require_lodash10();
|
|
238
|
-
var arrayRef = [];
|
|
239
|
-
var push = arrayRef.push;
|
|
240
|
-
function baseCreateWrapper(bindData) {
|
|
241
|
-
var func = bindData[0], bitmask = bindData[1], partialArgs = bindData[2], partialRightArgs = bindData[3], thisArg = bindData[4], arity = bindData[5];
|
|
242
|
-
var isBind = bitmask & 1, isBindKey = bitmask & 2, isCurry = bitmask & 4, isCurryBound = bitmask & 8, key = func;
|
|
243
|
-
function bound() {
|
|
244
|
-
var thisBinding = isBind ? thisArg : this;
|
|
245
|
-
if (partialArgs) {
|
|
246
|
-
var args = partialArgs.slice();
|
|
247
|
-
push.apply(args, arguments);
|
|
248
|
-
}
|
|
249
|
-
if (partialRightArgs || isCurry) {
|
|
250
|
-
args || (args = slice(arguments));
|
|
251
|
-
if (partialRightArgs) {
|
|
252
|
-
push.apply(args, partialRightArgs);
|
|
253
|
-
}
|
|
254
|
-
if (isCurry && args.length < arity) {
|
|
255
|
-
bitmask |= 16 & ~32;
|
|
256
|
-
return baseCreateWrapper([func, isCurryBound ? bitmask : bitmask & ~3, args, null, thisArg, arity]);
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
args || (args = arguments);
|
|
260
|
-
if (isBindKey) {
|
|
261
|
-
func = thisBinding[key];
|
|
262
|
-
}
|
|
263
|
-
if (this instanceof bound) {
|
|
264
|
-
thisBinding = baseCreate(func.prototype);
|
|
265
|
-
var result = func.apply(thisBinding, args);
|
|
266
|
-
return isObject(result) ? result : thisBinding;
|
|
267
|
-
}
|
|
268
|
-
return func.apply(thisBinding, args);
|
|
269
|
-
}
|
|
270
|
-
setBindData(bound, bindData);
|
|
271
|
-
return bound;
|
|
272
|
-
}
|
|
273
|
-
module2.exports = baseCreateWrapper;
|
|
274
|
-
}
|
|
275
|
-
});
|
|
276
|
-
|
|
277
|
-
// node_modules/lodash.isfunction/index.js
|
|
278
|
-
var require_lodash12 = __commonJS({
|
|
279
|
-
"node_modules/lodash.isfunction/index.js"(exports2, module2) {
|
|
280
|
-
"use strict";
|
|
281
|
-
function isFunction(value) {
|
|
282
|
-
return typeof value == "function";
|
|
283
|
-
}
|
|
284
|
-
module2.exports = isFunction;
|
|
285
|
-
}
|
|
286
|
-
});
|
|
287
|
-
|
|
288
|
-
// node_modules/lodash._createwrapper/index.js
|
|
289
|
-
var require_lodash13 = __commonJS({
|
|
290
|
-
"node_modules/lodash._createwrapper/index.js"(exports2, module2) {
|
|
291
|
-
"use strict";
|
|
292
|
-
var baseBind = require_lodash9();
|
|
293
|
-
var baseCreateWrapper = require_lodash11();
|
|
294
|
-
var isFunction = require_lodash12();
|
|
295
|
-
var arrayRef = [];
|
|
296
|
-
var push = arrayRef.push;
|
|
297
|
-
function createWrapper(func, bitmask, partialArgs, partialRightArgs, thisArg, arity) {
|
|
298
|
-
var isBind = bitmask & 1, isBindKey = bitmask & 2, isCurry = bitmask & 4, isCurryBound = bitmask & 8, isPartial = bitmask & 16, isPartialRight = bitmask & 32;
|
|
299
|
-
if (!isBindKey && !isFunction(func)) {
|
|
300
|
-
throw new TypeError();
|
|
301
|
-
}
|
|
302
|
-
if (isPartial && !partialArgs.length) {
|
|
303
|
-
bitmask &= ~16;
|
|
304
|
-
isPartial = partialArgs = false;
|
|
305
|
-
}
|
|
306
|
-
if (isPartialRight && !partialRightArgs.length) {
|
|
307
|
-
bitmask &= ~32;
|
|
308
|
-
isPartialRight = partialRightArgs = false;
|
|
309
|
-
}
|
|
310
|
-
var bindData = func && func.__bindData__;
|
|
311
|
-
if (bindData && bindData !== true) {
|
|
312
|
-
bindData = bindData.slice();
|
|
313
|
-
if (isBind && !(bindData[1] & 1)) {
|
|
314
|
-
bindData[4] = thisArg;
|
|
315
|
-
}
|
|
316
|
-
if (!isBind && bindData[1] & 1) {
|
|
317
|
-
bitmask |= 8;
|
|
318
|
-
}
|
|
319
|
-
if (isCurry && !(bindData[1] & 4)) {
|
|
320
|
-
bindData[5] = arity;
|
|
321
|
-
}
|
|
322
|
-
if (isPartial) {
|
|
323
|
-
push.apply(bindData[2] || (bindData[2] = []), partialArgs);
|
|
324
|
-
}
|
|
325
|
-
if (isPartialRight) {
|
|
326
|
-
push.apply(bindData[3] || (bindData[3] = []), partialRightArgs);
|
|
327
|
-
}
|
|
328
|
-
bindData[1] |= bitmask;
|
|
329
|
-
return createWrapper.apply(null, bindData);
|
|
330
|
-
}
|
|
331
|
-
var creater = bitmask == 1 || bitmask === 17 ? baseBind : baseCreateWrapper;
|
|
332
|
-
return creater([func, bitmask, partialArgs, partialRightArgs, thisArg, arity]);
|
|
333
|
-
}
|
|
334
|
-
module2.exports = createWrapper;
|
|
335
|
-
}
|
|
336
|
-
});
|
|
337
|
-
|
|
338
|
-
// node_modules/lodash.bind/index.js
|
|
339
|
-
var require_lodash14 = __commonJS({
|
|
340
|
-
"node_modules/lodash.bind/index.js"(exports2, module2) {
|
|
341
|
-
"use strict";
|
|
342
|
-
var createWrapper = require_lodash13();
|
|
343
|
-
var reNative = require_lodash3();
|
|
344
|
-
var slice = require_lodash10();
|
|
345
|
-
function bind(func, thisArg) {
|
|
346
|
-
return arguments.length > 2 ? createWrapper(func, 17, slice(arguments, 2), null, thisArg) : createWrapper(func, 1, null, null, thisArg);
|
|
347
|
-
}
|
|
348
|
-
module2.exports = bind;
|
|
349
|
-
}
|
|
350
|
-
});
|
|
351
|
-
|
|
352
|
-
// node_modules/lodash.identity/index.js
|
|
353
|
-
var require_lodash15 = __commonJS({
|
|
354
|
-
"node_modules/lodash.identity/index.js"(exports2, module2) {
|
|
355
|
-
"use strict";
|
|
356
|
-
function identity(value) {
|
|
357
|
-
return value;
|
|
358
|
-
}
|
|
359
|
-
module2.exports = identity;
|
|
360
|
-
}
|
|
361
|
-
});
|
|
362
|
-
|
|
363
|
-
// node_modules/lodash.support/index.js
|
|
364
|
-
var require_lodash16 = __commonJS({
|
|
365
|
-
"node_modules/lodash.support/index.js"(exports2, module2) {
|
|
366
|
-
"use strict";
|
|
367
|
-
var reNative = require_lodash3();
|
|
368
|
-
var reThis = /\bthis\b/;
|
|
369
|
-
var support = {};
|
|
370
|
-
support.funcDecomp = !reNative.test(global.WinRTError) && reThis.test(function() {
|
|
371
|
-
return this;
|
|
372
|
-
});
|
|
373
|
-
support.funcNames = typeof Function.name == "string";
|
|
374
|
-
module2.exports = support;
|
|
375
|
-
}
|
|
376
|
-
});
|
|
377
|
-
|
|
378
|
-
// node_modules/lodash._basecreatecallback/index.js
|
|
379
|
-
var require_lodash17 = __commonJS({
|
|
380
|
-
"node_modules/lodash._basecreatecallback/index.js"(exports2, module2) {
|
|
381
|
-
"use strict";
|
|
382
|
-
var bind = require_lodash14();
|
|
383
|
-
var identity = require_lodash15();
|
|
384
|
-
var setBindData = require_lodash8();
|
|
385
|
-
var support = require_lodash16();
|
|
386
|
-
var reFuncName = /^\s*function[ \n\r\t]+\w/;
|
|
387
|
-
var reThis = /\bthis\b/;
|
|
388
|
-
var fnToString = Function.prototype.toString;
|
|
389
|
-
function baseCreateCallback(func, thisArg, argCount) {
|
|
390
|
-
if (typeof func != "function") {
|
|
391
|
-
return identity;
|
|
392
|
-
}
|
|
393
|
-
if (typeof thisArg == "undefined" || !("prototype" in func)) {
|
|
394
|
-
return func;
|
|
395
|
-
}
|
|
396
|
-
var bindData = func.__bindData__;
|
|
397
|
-
if (typeof bindData == "undefined") {
|
|
398
|
-
if (support.funcNames) {
|
|
399
|
-
bindData = !func.name;
|
|
400
|
-
}
|
|
401
|
-
bindData = bindData || !support.funcDecomp;
|
|
402
|
-
if (!bindData) {
|
|
403
|
-
var source = fnToString.call(func);
|
|
404
|
-
if (!support.funcNames) {
|
|
405
|
-
bindData = !reFuncName.test(source);
|
|
406
|
-
}
|
|
407
|
-
if (!bindData) {
|
|
408
|
-
bindData = reThis.test(source);
|
|
409
|
-
setBindData(func, bindData);
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
if (bindData === false || bindData !== true && bindData[1] & 1) {
|
|
414
|
-
return func;
|
|
415
|
-
}
|
|
416
|
-
switch (argCount) {
|
|
417
|
-
case 1:
|
|
418
|
-
return function(value) {
|
|
419
|
-
return func.call(thisArg, value);
|
|
420
|
-
};
|
|
421
|
-
case 2:
|
|
422
|
-
return function(a, b) {
|
|
423
|
-
return func.call(thisArg, a, b);
|
|
424
|
-
};
|
|
425
|
-
case 3:
|
|
426
|
-
return function(value, index, collection) {
|
|
427
|
-
return func.call(thisArg, value, index, collection);
|
|
428
|
-
};
|
|
429
|
-
case 4:
|
|
430
|
-
return function(accumulator, value, index, collection) {
|
|
431
|
-
return func.call(thisArg, accumulator, value, index, collection);
|
|
432
|
-
};
|
|
433
|
-
}
|
|
434
|
-
return bind(func, thisArg);
|
|
435
|
-
}
|
|
436
|
-
module2.exports = baseCreateCallback;
|
|
437
|
-
}
|
|
438
|
-
});
|
|
439
|
-
|
|
440
|
-
// node_modules/lodash.forown/index.js
|
|
441
|
-
var require_lodash18 = __commonJS({
|
|
442
|
-
"node_modules/lodash.forown/index.js"(exports2, module2) {
|
|
443
|
-
"use strict";
|
|
444
|
-
var baseCreateCallback = require_lodash17();
|
|
445
|
-
var keys = require_lodash5();
|
|
446
|
-
var objectTypes = require_lodash();
|
|
447
|
-
var forOwn = function(collection, callback, thisArg) {
|
|
448
|
-
var index, iterable = collection, result = iterable;
|
|
449
|
-
if (!iterable)
|
|
450
|
-
return result;
|
|
451
|
-
if (!objectTypes[typeof iterable])
|
|
452
|
-
return result;
|
|
453
|
-
callback = callback && typeof thisArg == "undefined" ? callback : baseCreateCallback(callback, thisArg, 3);
|
|
454
|
-
var ownIndex = -1, ownProps = objectTypes[typeof iterable] && keys(iterable), length6 = ownProps ? ownProps.length : 0;
|
|
455
|
-
while (++ownIndex < length6) {
|
|
456
|
-
index = ownProps[ownIndex];
|
|
457
|
-
if (callback(iterable[index], index, collection) === false)
|
|
458
|
-
return result;
|
|
459
|
-
}
|
|
460
|
-
return result;
|
|
461
|
-
};
|
|
462
|
-
module2.exports = forOwn;
|
|
463
|
-
}
|
|
464
|
-
});
|
|
465
|
-
|
|
466
|
-
// node_modules/lodash.foreach/index.js
|
|
467
|
-
var require_lodash19 = __commonJS({
|
|
468
|
-
"node_modules/lodash.foreach/index.js"(exports2, module2) {
|
|
469
|
-
"use strict";
|
|
470
|
-
var baseCreateCallback = require_lodash17();
|
|
471
|
-
var forOwn = require_lodash18();
|
|
472
|
-
function forEach(collection, callback, thisArg) {
|
|
473
|
-
var index = -1, length6 = collection ? collection.length : 0;
|
|
474
|
-
callback = callback && typeof thisArg == "undefined" ? callback : baseCreateCallback(callback, thisArg, 3);
|
|
475
|
-
if (typeof length6 == "number") {
|
|
476
|
-
while (++index < length6) {
|
|
477
|
-
if (callback(collection[index], index, collection) === false) {
|
|
478
|
-
break;
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
} else {
|
|
482
|
-
forOwn(collection, callback);
|
|
483
|
-
}
|
|
484
|
-
return collection;
|
|
485
|
-
}
|
|
486
|
-
module2.exports = forEach;
|
|
487
|
-
}
|
|
488
|
-
});
|
|
489
|
-
|
|
490
|
-
// node_modules/convert-units/lib/definitions/length.js
|
|
491
|
-
var require_length = __commonJS({
|
|
492
|
-
"node_modules/convert-units/lib/definitions/length.js"(exports2, module2) {
|
|
493
|
-
"use strict";
|
|
494
|
-
var metric;
|
|
495
|
-
var imperial;
|
|
496
|
-
metric = {
|
|
497
|
-
mm: {
|
|
498
|
-
name: {
|
|
499
|
-
singular: "Millimeter",
|
|
500
|
-
plural: "Millimeters"
|
|
501
|
-
},
|
|
502
|
-
to_anchor: 1 / 1e3
|
|
503
|
-
},
|
|
504
|
-
cm: {
|
|
505
|
-
name: {
|
|
506
|
-
singular: "Centimeter",
|
|
507
|
-
plural: "Centimeters"
|
|
508
|
-
},
|
|
509
|
-
to_anchor: 1 / 100
|
|
510
|
-
},
|
|
511
|
-
m: {
|
|
512
|
-
name: {
|
|
513
|
-
singular: "Meter",
|
|
514
|
-
plural: "Meters"
|
|
515
|
-
},
|
|
516
|
-
to_anchor: 1
|
|
517
|
-
},
|
|
518
|
-
km: {
|
|
519
|
-
name: {
|
|
520
|
-
singular: "Kilometer",
|
|
521
|
-
plural: "Kilometers"
|
|
522
|
-
},
|
|
523
|
-
to_anchor: 1e3
|
|
524
|
-
}
|
|
525
|
-
};
|
|
526
|
-
imperial = {
|
|
527
|
-
"in": {
|
|
528
|
-
name: {
|
|
529
|
-
singular: "Inch",
|
|
530
|
-
plural: "Inches"
|
|
531
|
-
},
|
|
532
|
-
to_anchor: 1 / 12
|
|
533
|
-
},
|
|
534
|
-
yd: {
|
|
535
|
-
name: {
|
|
536
|
-
singular: "Yard",
|
|
537
|
-
plural: "Yards"
|
|
538
|
-
},
|
|
539
|
-
to_anchor: 3
|
|
540
|
-
},
|
|
541
|
-
"ft-us": {
|
|
542
|
-
name: {
|
|
543
|
-
singular: "US Survey Foot",
|
|
544
|
-
plural: "US Survey Feet"
|
|
545
|
-
},
|
|
546
|
-
to_anchor: 1.000002
|
|
547
|
-
},
|
|
548
|
-
ft: {
|
|
549
|
-
name: {
|
|
550
|
-
singular: "Foot",
|
|
551
|
-
plural: "Feet"
|
|
552
|
-
},
|
|
553
|
-
to_anchor: 1
|
|
554
|
-
},
|
|
555
|
-
mi: {
|
|
556
|
-
name: {
|
|
557
|
-
singular: "Mile",
|
|
558
|
-
plural: "Miles"
|
|
559
|
-
},
|
|
560
|
-
to_anchor: 5280
|
|
561
|
-
}
|
|
562
|
-
};
|
|
563
|
-
module2.exports = {
|
|
564
|
-
metric,
|
|
565
|
-
imperial,
|
|
566
|
-
_anchors: {
|
|
567
|
-
metric: {
|
|
568
|
-
unit: "m",
|
|
569
|
-
ratio: 3.28084
|
|
570
|
-
},
|
|
571
|
-
imperial: {
|
|
572
|
-
unit: "ft",
|
|
573
|
-
ratio: 1 / 3.28084
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
};
|
|
577
|
-
}
|
|
578
|
-
});
|
|
579
|
-
|
|
580
|
-
// node_modules/convert-units/lib/definitions/area.js
|
|
581
|
-
var require_area = __commonJS({
|
|
582
|
-
"node_modules/convert-units/lib/definitions/area.js"(exports2, module2) {
|
|
583
|
-
"use strict";
|
|
584
|
-
var metric;
|
|
585
|
-
var imperial;
|
|
586
|
-
metric = {
|
|
587
|
-
mm2: {
|
|
588
|
-
name: {
|
|
589
|
-
singular: "Square Millimeter",
|
|
590
|
-
plural: "Square Millimeters"
|
|
591
|
-
},
|
|
592
|
-
to_anchor: 1 / 1e6
|
|
593
|
-
},
|
|
594
|
-
cm2: {
|
|
595
|
-
name: {
|
|
596
|
-
singular: "Centimeter",
|
|
597
|
-
plural: "Centimeters"
|
|
598
|
-
},
|
|
599
|
-
to_anchor: 1 / 1e4
|
|
600
|
-
},
|
|
601
|
-
m2: {
|
|
602
|
-
name: {
|
|
603
|
-
singular: "Square Meter",
|
|
604
|
-
plural: "Square Meters"
|
|
605
|
-
},
|
|
606
|
-
to_anchor: 1
|
|
607
|
-
},
|
|
608
|
-
ha: {
|
|
609
|
-
name: {
|
|
610
|
-
singular: "Hectare",
|
|
611
|
-
plural: "Hectares"
|
|
612
|
-
},
|
|
613
|
-
to_anchor: 1e4
|
|
614
|
-
},
|
|
615
|
-
km2: {
|
|
616
|
-
name: {
|
|
617
|
-
singular: "Square Kilometer",
|
|
618
|
-
plural: "Square Kilometers"
|
|
619
|
-
},
|
|
620
|
-
to_anchor: 1e6
|
|
621
|
-
}
|
|
622
|
-
};
|
|
623
|
-
imperial = {
|
|
624
|
-
"in2": {
|
|
625
|
-
name: {
|
|
626
|
-
singular: "Square Inch",
|
|
627
|
-
plural: "Square Inches"
|
|
628
|
-
},
|
|
629
|
-
to_anchor: 1 / 144
|
|
630
|
-
},
|
|
631
|
-
yd2: {
|
|
632
|
-
name: {
|
|
633
|
-
singular: "Square Yard",
|
|
634
|
-
plural: "Square Yards"
|
|
635
|
-
},
|
|
636
|
-
to_anchor: 9
|
|
637
|
-
},
|
|
638
|
-
ft2: {
|
|
639
|
-
name: {
|
|
640
|
-
singular: "Square Foot",
|
|
641
|
-
plural: "Square Feet"
|
|
642
|
-
},
|
|
643
|
-
to_anchor: 1
|
|
644
|
-
},
|
|
645
|
-
ac: {
|
|
646
|
-
name: {
|
|
647
|
-
singular: "Acre",
|
|
648
|
-
plural: "Acres"
|
|
649
|
-
},
|
|
650
|
-
to_anchor: 43560
|
|
651
|
-
},
|
|
652
|
-
mi2: {
|
|
653
|
-
name: {
|
|
654
|
-
singular: "Square Mile",
|
|
655
|
-
plural: "Square Miles"
|
|
656
|
-
},
|
|
657
|
-
to_anchor: 27878400
|
|
658
|
-
}
|
|
659
|
-
};
|
|
660
|
-
module2.exports = {
|
|
661
|
-
metric,
|
|
662
|
-
imperial,
|
|
663
|
-
_anchors: {
|
|
664
|
-
metric: {
|
|
665
|
-
unit: "m2",
|
|
666
|
-
ratio: 10.7639
|
|
667
|
-
},
|
|
668
|
-
imperial: {
|
|
669
|
-
unit: "ft2",
|
|
670
|
-
ratio: 1 / 10.7639
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
};
|
|
674
|
-
}
|
|
675
|
-
});
|
|
676
|
-
|
|
677
|
-
// node_modules/convert-units/lib/definitions/mass.js
|
|
678
|
-
var require_mass = __commonJS({
|
|
679
|
-
"node_modules/convert-units/lib/definitions/mass.js"(exports2, module2) {
|
|
680
|
-
"use strict";
|
|
681
|
-
var metric;
|
|
682
|
-
var imperial;
|
|
683
|
-
metric = {
|
|
684
|
-
mcg: {
|
|
685
|
-
name: {
|
|
686
|
-
singular: "Microgram",
|
|
687
|
-
plural: "Micrograms"
|
|
688
|
-
},
|
|
689
|
-
to_anchor: 1 / 1e6
|
|
690
|
-
},
|
|
691
|
-
mg: {
|
|
692
|
-
name: {
|
|
693
|
-
singular: "Milligram",
|
|
694
|
-
plural: "Milligrams"
|
|
695
|
-
},
|
|
696
|
-
to_anchor: 1 / 1e3
|
|
697
|
-
},
|
|
698
|
-
g: {
|
|
699
|
-
name: {
|
|
700
|
-
singular: "Gram",
|
|
701
|
-
plural: "Grams"
|
|
702
|
-
},
|
|
703
|
-
to_anchor: 1
|
|
704
|
-
},
|
|
705
|
-
kg: {
|
|
706
|
-
name: {
|
|
707
|
-
singular: "Kilogram",
|
|
708
|
-
plural: "Kilograms"
|
|
709
|
-
},
|
|
710
|
-
to_anchor: 1e3
|
|
711
|
-
},
|
|
712
|
-
mt: {
|
|
713
|
-
name: {
|
|
714
|
-
singular: "Metric Tonne",
|
|
715
|
-
plural: "Metric Tonnes"
|
|
716
|
-
},
|
|
717
|
-
to_anchor: 1e6
|
|
718
|
-
}
|
|
719
|
-
};
|
|
720
|
-
imperial = {
|
|
721
|
-
oz: {
|
|
722
|
-
name: {
|
|
723
|
-
singular: "Ounce",
|
|
724
|
-
plural: "Ounces"
|
|
725
|
-
},
|
|
726
|
-
to_anchor: 1 / 16
|
|
727
|
-
},
|
|
728
|
-
lb: {
|
|
729
|
-
name: {
|
|
730
|
-
singular: "Pound",
|
|
731
|
-
plural: "Pounds"
|
|
732
|
-
},
|
|
733
|
-
to_anchor: 1
|
|
734
|
-
},
|
|
735
|
-
t: {
|
|
736
|
-
name: {
|
|
737
|
-
singular: "Ton",
|
|
738
|
-
plural: "Tons"
|
|
739
|
-
},
|
|
740
|
-
to_anchor: 2e3
|
|
741
|
-
}
|
|
742
|
-
};
|
|
743
|
-
module2.exports = {
|
|
744
|
-
metric,
|
|
745
|
-
imperial,
|
|
746
|
-
_anchors: {
|
|
747
|
-
metric: {
|
|
748
|
-
unit: "g",
|
|
749
|
-
ratio: 1 / 453.592
|
|
750
|
-
},
|
|
751
|
-
imperial: {
|
|
752
|
-
unit: "lb",
|
|
753
|
-
ratio: 453.592
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
};
|
|
757
|
-
}
|
|
758
|
-
});
|
|
759
|
-
|
|
760
|
-
// node_modules/convert-units/lib/definitions/volume.js
|
|
761
|
-
var require_volume = __commonJS({
|
|
762
|
-
"node_modules/convert-units/lib/definitions/volume.js"(exports2, module2) {
|
|
763
|
-
"use strict";
|
|
764
|
-
var metric;
|
|
765
|
-
var imperial;
|
|
766
|
-
metric = {
|
|
767
|
-
mm3: {
|
|
768
|
-
name: {
|
|
769
|
-
singular: "Cubic Millimeter",
|
|
770
|
-
plural: "Cubic Millimeters"
|
|
771
|
-
},
|
|
772
|
-
to_anchor: 1 / 1e6
|
|
773
|
-
},
|
|
774
|
-
cm3: {
|
|
775
|
-
name: {
|
|
776
|
-
singular: "Cubic Centimeter",
|
|
777
|
-
plural: "Cubic Centimeters"
|
|
778
|
-
},
|
|
779
|
-
to_anchor: 1 / 1e3
|
|
780
|
-
},
|
|
781
|
-
ml: {
|
|
782
|
-
name: {
|
|
783
|
-
singular: "Millilitre",
|
|
784
|
-
plural: "Millilitres"
|
|
785
|
-
},
|
|
786
|
-
to_anchor: 1 / 1e3
|
|
787
|
-
},
|
|
788
|
-
cl: {
|
|
789
|
-
name: {
|
|
790
|
-
singular: "Centilitre",
|
|
791
|
-
plural: "Centilitres"
|
|
792
|
-
},
|
|
793
|
-
to_anchor: 1 / 100
|
|
794
|
-
},
|
|
795
|
-
dl: {
|
|
796
|
-
name: {
|
|
797
|
-
singular: "Decilitre",
|
|
798
|
-
plural: "Decilitres"
|
|
799
|
-
},
|
|
800
|
-
to_anchor: 1 / 10
|
|
801
|
-
},
|
|
802
|
-
l: {
|
|
803
|
-
name: {
|
|
804
|
-
singular: "Litre",
|
|
805
|
-
plural: "Litres"
|
|
806
|
-
},
|
|
807
|
-
to_anchor: 1
|
|
808
|
-
},
|
|
809
|
-
kl: {
|
|
810
|
-
name: {
|
|
811
|
-
singular: "Kilolitre",
|
|
812
|
-
plural: "Kilolitres"
|
|
813
|
-
},
|
|
814
|
-
to_anchor: 1e3
|
|
815
|
-
},
|
|
816
|
-
m3: {
|
|
817
|
-
name: {
|
|
818
|
-
singular: "Cubic meter",
|
|
819
|
-
plural: "Cubic meters"
|
|
820
|
-
},
|
|
821
|
-
to_anchor: 1e3
|
|
822
|
-
},
|
|
823
|
-
km3: {
|
|
824
|
-
name: {
|
|
825
|
-
singular: "Cubic kilometer",
|
|
826
|
-
plural: "Cubic kilometers"
|
|
827
|
-
},
|
|
828
|
-
to_anchor: 1e12
|
|
829
|
-
},
|
|
830
|
-
krm: {
|
|
831
|
-
name: {
|
|
832
|
-
singular: "Matsked",
|
|
833
|
-
plural: "Matskedar"
|
|
834
|
-
},
|
|
835
|
-
to_anchor: 1 / 1e3
|
|
836
|
-
},
|
|
837
|
-
tsk: {
|
|
838
|
-
name: {
|
|
839
|
-
singular: "Tesked",
|
|
840
|
-
plural: "Teskedar"
|
|
841
|
-
},
|
|
842
|
-
to_anchor: 5 / 1e3
|
|
843
|
-
},
|
|
844
|
-
msk: {
|
|
845
|
-
name: {
|
|
846
|
-
singular: "Matsked",
|
|
847
|
-
plural: "Matskedar"
|
|
848
|
-
},
|
|
849
|
-
to_anchor: 15 / 1e3
|
|
850
|
-
},
|
|
851
|
-
kkp: {
|
|
852
|
-
name: {
|
|
853
|
-
singular: "Kaffekopp",
|
|
854
|
-
plural: "Kaffekoppar"
|
|
855
|
-
},
|
|
856
|
-
to_anchor: 150 / 1e3
|
|
857
|
-
},
|
|
858
|
-
glas: {
|
|
859
|
-
name: {
|
|
860
|
-
singular: "Glas",
|
|
861
|
-
plural: "Glas"
|
|
862
|
-
},
|
|
863
|
-
to_anchor: 200 / 1e3
|
|
864
|
-
},
|
|
865
|
-
kanna: {
|
|
866
|
-
name: {
|
|
867
|
-
singular: "Kanna",
|
|
868
|
-
plural: "Kannor"
|
|
869
|
-
},
|
|
870
|
-
to_anchor: 2.617
|
|
871
|
-
}
|
|
872
|
-
};
|
|
873
|
-
imperial = {
|
|
874
|
-
tsp: {
|
|
875
|
-
name: {
|
|
876
|
-
singular: "Teaspoon",
|
|
877
|
-
plural: "Teaspoons"
|
|
878
|
-
},
|
|
879
|
-
to_anchor: 1 / 6
|
|
880
|
-
},
|
|
881
|
-
Tbs: {
|
|
882
|
-
name: {
|
|
883
|
-
singular: "Tablespoon",
|
|
884
|
-
plural: "Tablespoons"
|
|
885
|
-
},
|
|
886
|
-
to_anchor: 1 / 2
|
|
887
|
-
},
|
|
888
|
-
in3: {
|
|
889
|
-
name: {
|
|
890
|
-
singular: "Cubic inch",
|
|
891
|
-
plural: "Cubic inches"
|
|
892
|
-
},
|
|
893
|
-
to_anchor: 0.55411
|
|
894
|
-
},
|
|
895
|
-
"fl-oz": {
|
|
896
|
-
name: {
|
|
897
|
-
singular: "Fluid Ounce",
|
|
898
|
-
plural: "Fluid Ounces"
|
|
899
|
-
},
|
|
900
|
-
to_anchor: 1
|
|
901
|
-
},
|
|
902
|
-
cup: {
|
|
903
|
-
name: {
|
|
904
|
-
singular: "Cup",
|
|
905
|
-
plural: "Cups"
|
|
906
|
-
},
|
|
907
|
-
to_anchor: 8
|
|
908
|
-
},
|
|
909
|
-
pnt: {
|
|
910
|
-
name: {
|
|
911
|
-
singular: "Pint",
|
|
912
|
-
plural: "Pints"
|
|
913
|
-
},
|
|
914
|
-
to_anchor: 16
|
|
915
|
-
},
|
|
916
|
-
qt: {
|
|
917
|
-
name: {
|
|
918
|
-
singular: "Quart",
|
|
919
|
-
plural: "Quarts"
|
|
920
|
-
},
|
|
921
|
-
to_anchor: 32
|
|
922
|
-
},
|
|
923
|
-
gal: {
|
|
924
|
-
name: {
|
|
925
|
-
singular: "Gallon",
|
|
926
|
-
plural: "Gallons"
|
|
927
|
-
},
|
|
928
|
-
to_anchor: 128
|
|
929
|
-
},
|
|
930
|
-
ft3: {
|
|
931
|
-
name: {
|
|
932
|
-
singular: "Cubic foot",
|
|
933
|
-
plural: "Cubic feet"
|
|
934
|
-
},
|
|
935
|
-
to_anchor: 957.506
|
|
936
|
-
},
|
|
937
|
-
yd3: {
|
|
938
|
-
name: {
|
|
939
|
-
singular: "Cubic yard",
|
|
940
|
-
plural: "Cubic yards"
|
|
941
|
-
},
|
|
942
|
-
to_anchor: 25852.7
|
|
943
|
-
}
|
|
944
|
-
};
|
|
945
|
-
module2.exports = {
|
|
946
|
-
metric,
|
|
947
|
-
imperial,
|
|
948
|
-
_anchors: {
|
|
949
|
-
metric: {
|
|
950
|
-
unit: "l",
|
|
951
|
-
ratio: 33.8140226
|
|
952
|
-
},
|
|
953
|
-
imperial: {
|
|
954
|
-
unit: "fl-oz",
|
|
955
|
-
ratio: 1 / 33.8140226
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
};
|
|
959
|
-
}
|
|
960
|
-
});
|
|
961
|
-
|
|
962
|
-
// node_modules/convert-units/lib/definitions/each.js
|
|
963
|
-
var require_each = __commonJS({
|
|
964
|
-
"node_modules/convert-units/lib/definitions/each.js"(exports2, module2) {
|
|
965
|
-
"use strict";
|
|
966
|
-
var metric;
|
|
967
|
-
metric = {
|
|
968
|
-
ea: {
|
|
969
|
-
name: {
|
|
970
|
-
singular: "Each",
|
|
971
|
-
plural: "Each"
|
|
972
|
-
},
|
|
973
|
-
to_anchor: 1
|
|
974
|
-
},
|
|
975
|
-
dz: {
|
|
976
|
-
name: {
|
|
977
|
-
singular: "Dozen",
|
|
978
|
-
plural: "Dozens"
|
|
979
|
-
},
|
|
980
|
-
to_anchor: 12
|
|
981
|
-
}
|
|
982
|
-
};
|
|
983
|
-
module2.exports = {
|
|
984
|
-
metric,
|
|
985
|
-
imperial: {},
|
|
986
|
-
_anchors: {
|
|
987
|
-
metric: {
|
|
988
|
-
unit: "ea",
|
|
989
|
-
ratio: 1
|
|
990
|
-
}
|
|
991
|
-
}
|
|
992
|
-
};
|
|
993
|
-
}
|
|
994
|
-
});
|
|
995
|
-
|
|
996
|
-
// node_modules/convert-units/lib/definitions/temperature.js
|
|
997
|
-
var require_temperature = __commonJS({
|
|
998
|
-
"node_modules/convert-units/lib/definitions/temperature.js"(exports2, module2) {
|
|
999
|
-
"use strict";
|
|
1000
|
-
var metric;
|
|
1001
|
-
var imperial;
|
|
1002
|
-
metric = {
|
|
1003
|
-
C: {
|
|
1004
|
-
name: {
|
|
1005
|
-
singular: "degree Celsius",
|
|
1006
|
-
plural: "degrees Celsius"
|
|
1007
|
-
},
|
|
1008
|
-
to_anchor: 1,
|
|
1009
|
-
anchor_shift: 0
|
|
1010
|
-
},
|
|
1011
|
-
K: {
|
|
1012
|
-
name: {
|
|
1013
|
-
singular: "degree Kelvin",
|
|
1014
|
-
plural: "degrees Kelvin"
|
|
1015
|
-
},
|
|
1016
|
-
to_anchor: 1,
|
|
1017
|
-
anchor_shift: 273.15
|
|
1018
|
-
}
|
|
1019
|
-
};
|
|
1020
|
-
imperial = {
|
|
1021
|
-
F: {
|
|
1022
|
-
name: {
|
|
1023
|
-
singular: "degree Fahrenheit",
|
|
1024
|
-
plural: "degrees Fahrenheit"
|
|
1025
|
-
},
|
|
1026
|
-
to_anchor: 1
|
|
1027
|
-
},
|
|
1028
|
-
R: {
|
|
1029
|
-
name: {
|
|
1030
|
-
singular: "degree Rankine",
|
|
1031
|
-
plural: "degrees Rankine"
|
|
1032
|
-
},
|
|
1033
|
-
to_anchor: 1,
|
|
1034
|
-
anchor_shift: 459.67
|
|
1035
|
-
}
|
|
1036
|
-
};
|
|
1037
|
-
module2.exports = {
|
|
1038
|
-
metric,
|
|
1039
|
-
imperial,
|
|
1040
|
-
_anchors: {
|
|
1041
|
-
metric: {
|
|
1042
|
-
unit: "C",
|
|
1043
|
-
transform: function(C) {
|
|
1044
|
-
return C / (5 / 9) + 32;
|
|
1045
|
-
}
|
|
1046
|
-
},
|
|
1047
|
-
imperial: {
|
|
1048
|
-
unit: "F",
|
|
1049
|
-
transform: function(F) {
|
|
1050
|
-
return (F - 32) * (5 / 9);
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
};
|
|
1055
|
-
}
|
|
1056
|
-
});
|
|
1057
|
-
|
|
1058
|
-
// node_modules/convert-units/lib/definitions/time.js
|
|
1059
|
-
var require_time = __commonJS({
|
|
1060
|
-
"node_modules/convert-units/lib/definitions/time.js"(exports2, module2) {
|
|
1061
|
-
"use strict";
|
|
1062
|
-
var time;
|
|
1063
|
-
var daysInYear = 365.25;
|
|
1064
|
-
time = {
|
|
1065
|
-
ns: {
|
|
1066
|
-
name: {
|
|
1067
|
-
singular: "Nanosecond",
|
|
1068
|
-
plural: "Nanoseconds"
|
|
1069
|
-
},
|
|
1070
|
-
to_anchor: 1 / 1e9
|
|
1071
|
-
},
|
|
1072
|
-
mu: {
|
|
1073
|
-
name: {
|
|
1074
|
-
singular: "Microsecond",
|
|
1075
|
-
plural: "Microseconds"
|
|
1076
|
-
},
|
|
1077
|
-
to_anchor: 1 / 1e6
|
|
1078
|
-
},
|
|
1079
|
-
ms: {
|
|
1080
|
-
name: {
|
|
1081
|
-
singular: "Millisecond",
|
|
1082
|
-
plural: "Milliseconds"
|
|
1083
|
-
},
|
|
1084
|
-
to_anchor: 1 / 1e3
|
|
1085
|
-
},
|
|
1086
|
-
s: {
|
|
1087
|
-
name: {
|
|
1088
|
-
singular: "Second",
|
|
1089
|
-
plural: "Seconds"
|
|
1090
|
-
},
|
|
1091
|
-
to_anchor: 1
|
|
1092
|
-
},
|
|
1093
|
-
min: {
|
|
1094
|
-
name: {
|
|
1095
|
-
singular: "Minute",
|
|
1096
|
-
plural: "Minutes"
|
|
1097
|
-
},
|
|
1098
|
-
to_anchor: 60
|
|
1099
|
-
},
|
|
1100
|
-
h: {
|
|
1101
|
-
name: {
|
|
1102
|
-
singular: "Hour",
|
|
1103
|
-
plural: "Hours"
|
|
1104
|
-
},
|
|
1105
|
-
to_anchor: 60 * 60
|
|
1106
|
-
},
|
|
1107
|
-
d: {
|
|
1108
|
-
name: {
|
|
1109
|
-
singular: "Day",
|
|
1110
|
-
plural: "Days"
|
|
1111
|
-
},
|
|
1112
|
-
to_anchor: 60 * 60 * 24
|
|
1113
|
-
},
|
|
1114
|
-
week: {
|
|
1115
|
-
name: {
|
|
1116
|
-
singular: "Week",
|
|
1117
|
-
plural: "Weeks"
|
|
1118
|
-
},
|
|
1119
|
-
to_anchor: 60 * 60 * 24 * 7
|
|
1120
|
-
},
|
|
1121
|
-
month: {
|
|
1122
|
-
name: {
|
|
1123
|
-
singular: "Month",
|
|
1124
|
-
plural: "Months"
|
|
1125
|
-
},
|
|
1126
|
-
to_anchor: 60 * 60 * 24 * daysInYear / 12
|
|
1127
|
-
},
|
|
1128
|
-
year: {
|
|
1129
|
-
name: {
|
|
1130
|
-
singular: "Year",
|
|
1131
|
-
plural: "Years"
|
|
1132
|
-
},
|
|
1133
|
-
to_anchor: 60 * 60 * 24 * daysInYear
|
|
1134
|
-
}
|
|
1135
|
-
};
|
|
1136
|
-
module2.exports = {
|
|
1137
|
-
metric: time,
|
|
1138
|
-
_anchors: {
|
|
1139
|
-
metric: {
|
|
1140
|
-
unit: "s",
|
|
1141
|
-
ratio: 1
|
|
1142
|
-
}
|
|
1143
|
-
}
|
|
1144
|
-
};
|
|
1145
|
-
}
|
|
1146
|
-
});
|
|
1147
|
-
|
|
1148
|
-
// node_modules/convert-units/lib/definitions/digital.js
|
|
1149
|
-
var require_digital = __commonJS({
|
|
1150
|
-
"node_modules/convert-units/lib/definitions/digital.js"(exports2, module2) {
|
|
1151
|
-
"use strict";
|
|
1152
|
-
var bits;
|
|
1153
|
-
var bytes;
|
|
1154
|
-
bits = {
|
|
1155
|
-
b: {
|
|
1156
|
-
name: {
|
|
1157
|
-
singular: "Bit",
|
|
1158
|
-
plural: "Bits"
|
|
1159
|
-
},
|
|
1160
|
-
to_anchor: 1
|
|
1161
|
-
},
|
|
1162
|
-
Kb: {
|
|
1163
|
-
name: {
|
|
1164
|
-
singular: "Kilobit",
|
|
1165
|
-
plural: "Kilobits"
|
|
1166
|
-
},
|
|
1167
|
-
to_anchor: 1024
|
|
1168
|
-
},
|
|
1169
|
-
Mb: {
|
|
1170
|
-
name: {
|
|
1171
|
-
singular: "Megabit",
|
|
1172
|
-
plural: "Megabits"
|
|
1173
|
-
},
|
|
1174
|
-
to_anchor: 1048576
|
|
1175
|
-
},
|
|
1176
|
-
Gb: {
|
|
1177
|
-
name: {
|
|
1178
|
-
singular: "Gigabit",
|
|
1179
|
-
plural: "Gigabits"
|
|
1180
|
-
},
|
|
1181
|
-
to_anchor: 1073741824
|
|
1182
|
-
},
|
|
1183
|
-
Tb: {
|
|
1184
|
-
name: {
|
|
1185
|
-
singular: "Terabit",
|
|
1186
|
-
plural: "Terabits"
|
|
1187
|
-
},
|
|
1188
|
-
to_anchor: 1099511627776
|
|
1189
|
-
}
|
|
1190
|
-
};
|
|
1191
|
-
bytes = {
|
|
1192
|
-
B: {
|
|
1193
|
-
name: {
|
|
1194
|
-
singular: "Byte",
|
|
1195
|
-
plural: "Bytes"
|
|
1196
|
-
},
|
|
1197
|
-
to_anchor: 1
|
|
1198
|
-
},
|
|
1199
|
-
KB: {
|
|
1200
|
-
name: {
|
|
1201
|
-
singular: "Kilobyte",
|
|
1202
|
-
plural: "Kilobytes"
|
|
1203
|
-
},
|
|
1204
|
-
to_anchor: 1024
|
|
1205
|
-
},
|
|
1206
|
-
MB: {
|
|
1207
|
-
name: {
|
|
1208
|
-
singular: "Megabyte",
|
|
1209
|
-
plural: "Megabytes"
|
|
1210
|
-
},
|
|
1211
|
-
to_anchor: 1048576
|
|
1212
|
-
},
|
|
1213
|
-
GB: {
|
|
1214
|
-
name: {
|
|
1215
|
-
singular: "Gigabyte",
|
|
1216
|
-
plural: "Gigabytes"
|
|
1217
|
-
},
|
|
1218
|
-
to_anchor: 1073741824
|
|
1219
|
-
},
|
|
1220
|
-
TB: {
|
|
1221
|
-
name: {
|
|
1222
|
-
singular: "Terabyte",
|
|
1223
|
-
plural: "Terabytes"
|
|
1224
|
-
},
|
|
1225
|
-
to_anchor: 1099511627776
|
|
1226
|
-
}
|
|
1227
|
-
};
|
|
1228
|
-
module2.exports = {
|
|
1229
|
-
bits,
|
|
1230
|
-
bytes,
|
|
1231
|
-
_anchors: {
|
|
1232
|
-
bits: {
|
|
1233
|
-
unit: "b",
|
|
1234
|
-
ratio: 1 / 8
|
|
1235
|
-
},
|
|
1236
|
-
bytes: {
|
|
1237
|
-
unit: "B",
|
|
1238
|
-
ratio: 8
|
|
1239
|
-
}
|
|
1240
|
-
}
|
|
1241
|
-
};
|
|
1242
|
-
}
|
|
1243
|
-
});
|
|
1244
|
-
|
|
1245
|
-
// node_modules/convert-units/lib/definitions/partsPer.js
|
|
1246
|
-
var require_partsPer = __commonJS({
|
|
1247
|
-
"node_modules/convert-units/lib/definitions/partsPer.js"(exports2, module2) {
|
|
1248
|
-
"use strict";
|
|
1249
|
-
var metric;
|
|
1250
|
-
metric = {
|
|
1251
|
-
ppm: {
|
|
1252
|
-
name: {
|
|
1253
|
-
singular: "Part-per Million",
|
|
1254
|
-
plural: "Parts-per Million"
|
|
1255
|
-
},
|
|
1256
|
-
to_anchor: 1
|
|
1257
|
-
},
|
|
1258
|
-
ppb: {
|
|
1259
|
-
name: {
|
|
1260
|
-
singular: "Part-per Billion",
|
|
1261
|
-
plural: "Parts-per Billion"
|
|
1262
|
-
},
|
|
1263
|
-
to_anchor: 1e-3
|
|
1264
|
-
},
|
|
1265
|
-
ppt: {
|
|
1266
|
-
name: {
|
|
1267
|
-
singular: "Part-per Trillion",
|
|
1268
|
-
plural: "Parts-per Trillion"
|
|
1269
|
-
},
|
|
1270
|
-
to_anchor: 1e-6
|
|
1271
|
-
},
|
|
1272
|
-
ppq: {
|
|
1273
|
-
name: {
|
|
1274
|
-
singular: "Part-per Quadrillion",
|
|
1275
|
-
plural: "Parts-per Quadrillion"
|
|
1276
|
-
},
|
|
1277
|
-
to_anchor: 1e-9
|
|
1278
|
-
}
|
|
1279
|
-
};
|
|
1280
|
-
module2.exports = {
|
|
1281
|
-
metric,
|
|
1282
|
-
imperial: {},
|
|
1283
|
-
_anchors: {
|
|
1284
|
-
metric: {
|
|
1285
|
-
unit: "ppm",
|
|
1286
|
-
ratio: 1e-6
|
|
1287
|
-
}
|
|
1288
|
-
}
|
|
1289
|
-
};
|
|
1290
|
-
}
|
|
1291
|
-
});
|
|
1292
|
-
|
|
1293
|
-
// node_modules/convert-units/lib/definitions/speed.js
|
|
1294
|
-
var require_speed = __commonJS({
|
|
1295
|
-
"node_modules/convert-units/lib/definitions/speed.js"(exports2, module2) {
|
|
1296
|
-
"use strict";
|
|
1297
|
-
var metric;
|
|
1298
|
-
var imperial;
|
|
1299
|
-
metric = {
|
|
1300
|
-
"m/s": {
|
|
1301
|
-
name: {
|
|
1302
|
-
singular: "Metre per second",
|
|
1303
|
-
plural: "Metres per second"
|
|
1304
|
-
},
|
|
1305
|
-
to_anchor: 3.6
|
|
1306
|
-
},
|
|
1307
|
-
"km/h": {
|
|
1308
|
-
name: {
|
|
1309
|
-
singular: "Kilometre per hour",
|
|
1310
|
-
plural: "Kilometres per hour"
|
|
1311
|
-
},
|
|
1312
|
-
to_anchor: 1
|
|
1313
|
-
}
|
|
1314
|
-
};
|
|
1315
|
-
imperial = {
|
|
1316
|
-
"m/h": {
|
|
1317
|
-
name: {
|
|
1318
|
-
singular: "Mile per hour",
|
|
1319
|
-
plural: "Miles per hour"
|
|
1320
|
-
},
|
|
1321
|
-
to_anchor: 1
|
|
1322
|
-
},
|
|
1323
|
-
knot: {
|
|
1324
|
-
name: {
|
|
1325
|
-
singular: "Knot",
|
|
1326
|
-
plural: "Knots"
|
|
1327
|
-
},
|
|
1328
|
-
to_anchor: 1.150779
|
|
1329
|
-
},
|
|
1330
|
-
"ft/s": {
|
|
1331
|
-
name: {
|
|
1332
|
-
singular: "Foot per second",
|
|
1333
|
-
plural: "Feet per second"
|
|
1334
|
-
},
|
|
1335
|
-
to_anchor: 0.681818
|
|
1336
|
-
}
|
|
1337
|
-
};
|
|
1338
|
-
module2.exports = {
|
|
1339
|
-
metric,
|
|
1340
|
-
imperial,
|
|
1341
|
-
_anchors: {
|
|
1342
|
-
metric: {
|
|
1343
|
-
unit: "km/h",
|
|
1344
|
-
ratio: 1 / 1.609344
|
|
1345
|
-
},
|
|
1346
|
-
imperial: {
|
|
1347
|
-
unit: "m/h",
|
|
1348
|
-
ratio: 1.609344
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
};
|
|
1352
|
-
}
|
|
1353
|
-
});
|
|
1354
|
-
|
|
1355
|
-
// node_modules/convert-units/lib/definitions/pace.js
|
|
1356
|
-
var require_pace = __commonJS({
|
|
1357
|
-
"node_modules/convert-units/lib/definitions/pace.js"(exports2, module2) {
|
|
1358
|
-
"use strict";
|
|
1359
|
-
var metric;
|
|
1360
|
-
var imperial;
|
|
1361
|
-
metric = {
|
|
1362
|
-
"min/km": {
|
|
1363
|
-
name: {
|
|
1364
|
-
singular: "Minute per kilometre",
|
|
1365
|
-
plural: "Minutes per kilometre"
|
|
1366
|
-
},
|
|
1367
|
-
to_anchor: 0.06
|
|
1368
|
-
},
|
|
1369
|
-
"s/m": {
|
|
1370
|
-
name: {
|
|
1371
|
-
singular: "Second per metre",
|
|
1372
|
-
plural: "Seconds per metre"
|
|
1373
|
-
},
|
|
1374
|
-
to_anchor: 1
|
|
1375
|
-
}
|
|
1376
|
-
};
|
|
1377
|
-
imperial = {
|
|
1378
|
-
"min/mi": {
|
|
1379
|
-
name: {
|
|
1380
|
-
singular: "Minute per mile",
|
|
1381
|
-
plural: "Minutes per mile"
|
|
1382
|
-
},
|
|
1383
|
-
to_anchor: 0.0113636
|
|
1384
|
-
},
|
|
1385
|
-
"s/ft": {
|
|
1386
|
-
name: {
|
|
1387
|
-
singular: "Second per foot",
|
|
1388
|
-
plural: "Seconds per foot"
|
|
1389
|
-
},
|
|
1390
|
-
to_anchor: 1
|
|
1391
|
-
}
|
|
1392
|
-
};
|
|
1393
|
-
module2.exports = {
|
|
1394
|
-
metric,
|
|
1395
|
-
imperial,
|
|
1396
|
-
_anchors: {
|
|
1397
|
-
metric: {
|
|
1398
|
-
unit: "s/m",
|
|
1399
|
-
ratio: 0.3048
|
|
1400
|
-
},
|
|
1401
|
-
imperial: {
|
|
1402
|
-
unit: "s/ft",
|
|
1403
|
-
ratio: 1 / 0.3048
|
|
1404
|
-
}
|
|
1405
|
-
}
|
|
1406
|
-
};
|
|
1407
|
-
}
|
|
1408
|
-
});
|
|
1409
|
-
|
|
1410
|
-
// node_modules/convert-units/lib/definitions/pressure.js
|
|
1411
|
-
var require_pressure = __commonJS({
|
|
1412
|
-
"node_modules/convert-units/lib/definitions/pressure.js"(exports2, module2) {
|
|
1413
|
-
"use strict";
|
|
1414
|
-
var metric;
|
|
1415
|
-
var imperial;
|
|
1416
|
-
metric = {
|
|
1417
|
-
Pa: {
|
|
1418
|
-
name: {
|
|
1419
|
-
singular: "pascal",
|
|
1420
|
-
plural: "pascals"
|
|
1421
|
-
},
|
|
1422
|
-
to_anchor: 1 / 1e3
|
|
1423
|
-
},
|
|
1424
|
-
kPa: {
|
|
1425
|
-
name: {
|
|
1426
|
-
singular: "kilopascal",
|
|
1427
|
-
plural: "kilopascals"
|
|
1428
|
-
},
|
|
1429
|
-
to_anchor: 1
|
|
1430
|
-
},
|
|
1431
|
-
MPa: {
|
|
1432
|
-
name: {
|
|
1433
|
-
singular: "megapascal",
|
|
1434
|
-
plural: "megapascals"
|
|
1435
|
-
},
|
|
1436
|
-
to_anchor: 1e3
|
|
1437
|
-
},
|
|
1438
|
-
hPa: {
|
|
1439
|
-
name: {
|
|
1440
|
-
singular: "hectopascal",
|
|
1441
|
-
plural: "hectopascals"
|
|
1442
|
-
},
|
|
1443
|
-
to_anchor: 1 / 10
|
|
1444
|
-
},
|
|
1445
|
-
bar: {
|
|
1446
|
-
name: {
|
|
1447
|
-
singular: "bar",
|
|
1448
|
-
plural: "bar"
|
|
1449
|
-
},
|
|
1450
|
-
to_anchor: 100
|
|
1451
|
-
},
|
|
1452
|
-
torr: {
|
|
1453
|
-
name: {
|
|
1454
|
-
singular: "torr",
|
|
1455
|
-
plural: "torr"
|
|
1456
|
-
},
|
|
1457
|
-
to_anchor: 101325 / 76e4
|
|
1458
|
-
}
|
|
1459
|
-
};
|
|
1460
|
-
imperial = {
|
|
1461
|
-
psi: {
|
|
1462
|
-
name: {
|
|
1463
|
-
singular: "pound per square inch",
|
|
1464
|
-
plural: "pounds per square inch"
|
|
1465
|
-
},
|
|
1466
|
-
to_anchor: 1 / 1e3
|
|
1467
|
-
},
|
|
1468
|
-
ksi: {
|
|
1469
|
-
name: {
|
|
1470
|
-
singular: "kilopound per square inch",
|
|
1471
|
-
plural: "kilopound per square inch"
|
|
1472
|
-
},
|
|
1473
|
-
to_anchor: 1
|
|
1474
|
-
}
|
|
1475
|
-
};
|
|
1476
|
-
module2.exports = {
|
|
1477
|
-
metric,
|
|
1478
|
-
imperial,
|
|
1479
|
-
_anchors: {
|
|
1480
|
-
metric: {
|
|
1481
|
-
unit: "kPa",
|
|
1482
|
-
ratio: 14503768078e-14
|
|
1483
|
-
},
|
|
1484
|
-
imperial: {
|
|
1485
|
-
unit: "psi",
|
|
1486
|
-
ratio: 1 / 14503768078e-14
|
|
1487
|
-
}
|
|
1488
|
-
}
|
|
1489
|
-
};
|
|
1490
|
-
}
|
|
1491
|
-
});
|
|
1492
|
-
|
|
1493
|
-
// node_modules/convert-units/lib/definitions/current.js
|
|
1494
|
-
var require_current = __commonJS({
|
|
1495
|
-
"node_modules/convert-units/lib/definitions/current.js"(exports2, module2) {
|
|
1496
|
-
"use strict";
|
|
1497
|
-
var current;
|
|
1498
|
-
current = {
|
|
1499
|
-
A: {
|
|
1500
|
-
name: {
|
|
1501
|
-
singular: "Ampere",
|
|
1502
|
-
plural: "Amperes"
|
|
1503
|
-
},
|
|
1504
|
-
to_anchor: 1
|
|
1505
|
-
},
|
|
1506
|
-
mA: {
|
|
1507
|
-
name: {
|
|
1508
|
-
singular: "Milliampere",
|
|
1509
|
-
plural: "Milliamperes"
|
|
1510
|
-
},
|
|
1511
|
-
to_anchor: 1e-3
|
|
1512
|
-
},
|
|
1513
|
-
kA: {
|
|
1514
|
-
name: {
|
|
1515
|
-
singular: "Kiloampere",
|
|
1516
|
-
plural: "Kiloamperes"
|
|
1517
|
-
},
|
|
1518
|
-
to_anchor: 1e3
|
|
1519
|
-
}
|
|
1520
|
-
};
|
|
1521
|
-
module2.exports = {
|
|
1522
|
-
metric: current,
|
|
1523
|
-
_anchors: {
|
|
1524
|
-
metric: {
|
|
1525
|
-
unit: "A",
|
|
1526
|
-
ratio: 1
|
|
1527
|
-
}
|
|
1528
|
-
}
|
|
1529
|
-
};
|
|
1530
|
-
}
|
|
1531
|
-
});
|
|
1532
|
-
|
|
1533
|
-
// node_modules/convert-units/lib/definitions/voltage.js
|
|
1534
|
-
var require_voltage = __commonJS({
|
|
1535
|
-
"node_modules/convert-units/lib/definitions/voltage.js"(exports2, module2) {
|
|
1536
|
-
"use strict";
|
|
1537
|
-
var voltage;
|
|
1538
|
-
voltage = {
|
|
1539
|
-
V: {
|
|
1540
|
-
name: {
|
|
1541
|
-
singular: "Volt",
|
|
1542
|
-
plural: "Volts"
|
|
1543
|
-
},
|
|
1544
|
-
to_anchor: 1
|
|
1545
|
-
},
|
|
1546
|
-
mV: {
|
|
1547
|
-
name: {
|
|
1548
|
-
singular: "Millivolt",
|
|
1549
|
-
plural: "Millivolts"
|
|
1550
|
-
},
|
|
1551
|
-
to_anchor: 1e-3
|
|
1552
|
-
},
|
|
1553
|
-
kV: {
|
|
1554
|
-
name: {
|
|
1555
|
-
singular: "Kilovolt",
|
|
1556
|
-
plural: "Kilovolts"
|
|
1557
|
-
},
|
|
1558
|
-
to_anchor: 1e3
|
|
1559
|
-
}
|
|
1560
|
-
};
|
|
1561
|
-
module2.exports = {
|
|
1562
|
-
metric: voltage,
|
|
1563
|
-
_anchors: {
|
|
1564
|
-
metric: {
|
|
1565
|
-
unit: "V",
|
|
1566
|
-
ratio: 1
|
|
1567
|
-
}
|
|
1568
|
-
}
|
|
1569
|
-
};
|
|
1570
|
-
}
|
|
1571
|
-
});
|
|
1572
|
-
|
|
1573
|
-
// node_modules/convert-units/lib/definitions/power.js
|
|
1574
|
-
var require_power = __commonJS({
|
|
1575
|
-
"node_modules/convert-units/lib/definitions/power.js"(exports2, module2) {
|
|
1576
|
-
"use strict";
|
|
1577
|
-
var power;
|
|
1578
|
-
power = {
|
|
1579
|
-
W: {
|
|
1580
|
-
name: {
|
|
1581
|
-
singular: "Watt",
|
|
1582
|
-
plural: "Watts"
|
|
1583
|
-
},
|
|
1584
|
-
to_anchor: 1
|
|
1585
|
-
},
|
|
1586
|
-
mW: {
|
|
1587
|
-
name: {
|
|
1588
|
-
singular: "Milliwatt",
|
|
1589
|
-
plural: "Milliwatts"
|
|
1590
|
-
},
|
|
1591
|
-
to_anchor: 1e-3
|
|
1592
|
-
},
|
|
1593
|
-
kW: {
|
|
1594
|
-
name: {
|
|
1595
|
-
singular: "Kilowatt",
|
|
1596
|
-
plural: "Kilowatts"
|
|
1597
|
-
},
|
|
1598
|
-
to_anchor: 1e3
|
|
1599
|
-
},
|
|
1600
|
-
MW: {
|
|
1601
|
-
name: {
|
|
1602
|
-
singular: "Megawatt",
|
|
1603
|
-
plural: "Megawatts"
|
|
1604
|
-
},
|
|
1605
|
-
to_anchor: 1e6
|
|
1606
|
-
},
|
|
1607
|
-
GW: {
|
|
1608
|
-
name: {
|
|
1609
|
-
singular: "Gigawatt",
|
|
1610
|
-
plural: "Gigawatts"
|
|
1611
|
-
},
|
|
1612
|
-
to_anchor: 1e9
|
|
1613
|
-
}
|
|
1614
|
-
};
|
|
1615
|
-
module2.exports = {
|
|
1616
|
-
metric: power,
|
|
1617
|
-
_anchors: {
|
|
1618
|
-
metric: {
|
|
1619
|
-
unit: "W",
|
|
1620
|
-
ratio: 1
|
|
1621
|
-
}
|
|
1622
|
-
}
|
|
1623
|
-
};
|
|
1624
|
-
}
|
|
1625
|
-
});
|
|
1626
|
-
|
|
1627
|
-
// node_modules/convert-units/lib/definitions/reactivePower.js
|
|
1628
|
-
var require_reactivePower = __commonJS({
|
|
1629
|
-
"node_modules/convert-units/lib/definitions/reactivePower.js"(exports2, module2) {
|
|
1630
|
-
"use strict";
|
|
1631
|
-
var reactivePower;
|
|
1632
|
-
reactivePower = {
|
|
1633
|
-
VAR: {
|
|
1634
|
-
name: {
|
|
1635
|
-
singular: "Volt-Ampere Reactive",
|
|
1636
|
-
plural: "Volt-Amperes Reactive"
|
|
1637
|
-
},
|
|
1638
|
-
to_anchor: 1
|
|
1639
|
-
},
|
|
1640
|
-
mVAR: {
|
|
1641
|
-
name: {
|
|
1642
|
-
singular: "Millivolt-Ampere Reactive",
|
|
1643
|
-
plural: "Millivolt-Amperes Reactive"
|
|
1644
|
-
},
|
|
1645
|
-
to_anchor: 1e-3
|
|
1646
|
-
},
|
|
1647
|
-
kVAR: {
|
|
1648
|
-
name: {
|
|
1649
|
-
singular: "Kilovolt-Ampere Reactive",
|
|
1650
|
-
plural: "Kilovolt-Amperes Reactive"
|
|
1651
|
-
},
|
|
1652
|
-
to_anchor: 1e3
|
|
1653
|
-
},
|
|
1654
|
-
MVAR: {
|
|
1655
|
-
name: {
|
|
1656
|
-
singular: "Megavolt-Ampere Reactive",
|
|
1657
|
-
plural: "Megavolt-Amperes Reactive"
|
|
1658
|
-
},
|
|
1659
|
-
to_anchor: 1e6
|
|
1660
|
-
},
|
|
1661
|
-
GVAR: {
|
|
1662
|
-
name: {
|
|
1663
|
-
singular: "Gigavolt-Ampere Reactive",
|
|
1664
|
-
plural: "Gigavolt-Amperes Reactive"
|
|
1665
|
-
},
|
|
1666
|
-
to_anchor: 1e9
|
|
1667
|
-
}
|
|
1668
|
-
};
|
|
1669
|
-
module2.exports = {
|
|
1670
|
-
metric: reactivePower,
|
|
1671
|
-
_anchors: {
|
|
1672
|
-
metric: {
|
|
1673
|
-
unit: "VAR",
|
|
1674
|
-
ratio: 1
|
|
1675
|
-
}
|
|
1676
|
-
}
|
|
1677
|
-
};
|
|
1678
|
-
}
|
|
1679
|
-
});
|
|
1680
|
-
|
|
1681
|
-
// node_modules/convert-units/lib/definitions/apparentPower.js
|
|
1682
|
-
var require_apparentPower = __commonJS({
|
|
1683
|
-
"node_modules/convert-units/lib/definitions/apparentPower.js"(exports2, module2) {
|
|
1684
|
-
"use strict";
|
|
1685
|
-
var apparentPower;
|
|
1686
|
-
apparentPower = {
|
|
1687
|
-
VA: {
|
|
1688
|
-
name: {
|
|
1689
|
-
singular: "Volt-Ampere",
|
|
1690
|
-
plural: "Volt-Amperes"
|
|
1691
|
-
},
|
|
1692
|
-
to_anchor: 1
|
|
1693
|
-
},
|
|
1694
|
-
mVA: {
|
|
1695
|
-
name: {
|
|
1696
|
-
singular: "Millivolt-Ampere",
|
|
1697
|
-
plural: "Millivolt-Amperes"
|
|
1698
|
-
},
|
|
1699
|
-
to_anchor: 1e-3
|
|
1700
|
-
},
|
|
1701
|
-
kVA: {
|
|
1702
|
-
name: {
|
|
1703
|
-
singular: "Kilovolt-Ampere",
|
|
1704
|
-
plural: "Kilovolt-Amperes"
|
|
1705
|
-
},
|
|
1706
|
-
to_anchor: 1e3
|
|
1707
|
-
},
|
|
1708
|
-
MVA: {
|
|
1709
|
-
name: {
|
|
1710
|
-
singular: "Megavolt-Ampere",
|
|
1711
|
-
plural: "Megavolt-Amperes"
|
|
1712
|
-
},
|
|
1713
|
-
to_anchor: 1e6
|
|
1714
|
-
},
|
|
1715
|
-
GVA: {
|
|
1716
|
-
name: {
|
|
1717
|
-
singular: "Gigavolt-Ampere",
|
|
1718
|
-
plural: "Gigavolt-Amperes"
|
|
1719
|
-
},
|
|
1720
|
-
to_anchor: 1e9
|
|
1721
|
-
}
|
|
1722
|
-
};
|
|
1723
|
-
module2.exports = {
|
|
1724
|
-
metric: apparentPower,
|
|
1725
|
-
_anchors: {
|
|
1726
|
-
metric: {
|
|
1727
|
-
unit: "VA",
|
|
1728
|
-
ratio: 1
|
|
1729
|
-
}
|
|
1730
|
-
}
|
|
1731
|
-
};
|
|
1732
|
-
}
|
|
1733
|
-
});
|
|
1734
|
-
|
|
1735
|
-
// node_modules/convert-units/lib/definitions/energy.js
|
|
1736
|
-
var require_energy = __commonJS({
|
|
1737
|
-
"node_modules/convert-units/lib/definitions/energy.js"(exports2, module2) {
|
|
1738
|
-
"use strict";
|
|
1739
|
-
var energy;
|
|
1740
|
-
energy = {
|
|
1741
|
-
Wh: {
|
|
1742
|
-
name: {
|
|
1743
|
-
singular: "Watt-hour",
|
|
1744
|
-
plural: "Watt-hours"
|
|
1745
|
-
},
|
|
1746
|
-
to_anchor: 3600
|
|
1747
|
-
},
|
|
1748
|
-
mWh: {
|
|
1749
|
-
name: {
|
|
1750
|
-
singular: "Milliwatt-hour",
|
|
1751
|
-
plural: "Milliwatt-hours"
|
|
1752
|
-
},
|
|
1753
|
-
to_anchor: 3.6
|
|
1754
|
-
},
|
|
1755
|
-
kWh: {
|
|
1756
|
-
name: {
|
|
1757
|
-
singular: "Kilowatt-hour",
|
|
1758
|
-
plural: "Kilowatt-hours"
|
|
1759
|
-
},
|
|
1760
|
-
to_anchor: 36e5
|
|
1761
|
-
},
|
|
1762
|
-
MWh: {
|
|
1763
|
-
name: {
|
|
1764
|
-
singular: "Megawatt-hour",
|
|
1765
|
-
plural: "Megawatt-hours"
|
|
1766
|
-
},
|
|
1767
|
-
to_anchor: 36e8
|
|
1768
|
-
},
|
|
1769
|
-
GWh: {
|
|
1770
|
-
name: {
|
|
1771
|
-
singular: "Gigawatt-hour",
|
|
1772
|
-
plural: "Gigawatt-hours"
|
|
1773
|
-
},
|
|
1774
|
-
to_anchor: 36e11
|
|
1775
|
-
},
|
|
1776
|
-
J: {
|
|
1777
|
-
name: {
|
|
1778
|
-
singular: "Joule",
|
|
1779
|
-
plural: "Joules"
|
|
1780
|
-
},
|
|
1781
|
-
to_anchor: 1
|
|
1782
|
-
},
|
|
1783
|
-
kJ: {
|
|
1784
|
-
name: {
|
|
1785
|
-
singular: "Kilojoule",
|
|
1786
|
-
plural: "Kilojoules"
|
|
1787
|
-
},
|
|
1788
|
-
to_anchor: 1e3
|
|
1789
|
-
}
|
|
1790
|
-
};
|
|
1791
|
-
module2.exports = {
|
|
1792
|
-
metric: energy,
|
|
1793
|
-
_anchors: {
|
|
1794
|
-
metric: {
|
|
1795
|
-
unit: "J",
|
|
1796
|
-
ratio: 1
|
|
1797
|
-
}
|
|
1798
|
-
}
|
|
1799
|
-
};
|
|
1800
|
-
}
|
|
1801
|
-
});
|
|
1802
|
-
|
|
1803
|
-
// node_modules/convert-units/lib/definitions/reactiveEnergy.js
|
|
1804
|
-
var require_reactiveEnergy = __commonJS({
|
|
1805
|
-
"node_modules/convert-units/lib/definitions/reactiveEnergy.js"(exports2, module2) {
|
|
1806
|
-
"use strict";
|
|
1807
|
-
var reactiveEnergy;
|
|
1808
|
-
reactiveEnergy = {
|
|
1809
|
-
VARh: {
|
|
1810
|
-
name: {
|
|
1811
|
-
singular: "Volt-Ampere Reactive Hour",
|
|
1812
|
-
plural: "Volt-Amperes Reactive Hour"
|
|
1813
|
-
},
|
|
1814
|
-
to_anchor: 1
|
|
1815
|
-
},
|
|
1816
|
-
mVARh: {
|
|
1817
|
-
name: {
|
|
1818
|
-
singular: "Millivolt-Ampere Reactive Hour",
|
|
1819
|
-
plural: "Millivolt-Amperes Reactive Hour"
|
|
1820
|
-
},
|
|
1821
|
-
to_anchor: 1e-3
|
|
1822
|
-
},
|
|
1823
|
-
kVARh: {
|
|
1824
|
-
name: {
|
|
1825
|
-
singular: "Kilovolt-Ampere Reactive Hour",
|
|
1826
|
-
plural: "Kilovolt-Amperes Reactive Hour"
|
|
1827
|
-
},
|
|
1828
|
-
to_anchor: 1e3
|
|
1829
|
-
},
|
|
1830
|
-
MVARh: {
|
|
1831
|
-
name: {
|
|
1832
|
-
singular: "Megavolt-Ampere Reactive Hour",
|
|
1833
|
-
plural: "Megavolt-Amperes Reactive Hour"
|
|
1834
|
-
},
|
|
1835
|
-
to_anchor: 1e6
|
|
1836
|
-
},
|
|
1837
|
-
GVARh: {
|
|
1838
|
-
name: {
|
|
1839
|
-
singular: "Gigavolt-Ampere Reactive Hour",
|
|
1840
|
-
plural: "Gigavolt-Amperes Reactive Hour"
|
|
1841
|
-
},
|
|
1842
|
-
to_anchor: 1e9
|
|
1843
|
-
}
|
|
1844
|
-
};
|
|
1845
|
-
module2.exports = {
|
|
1846
|
-
metric: reactiveEnergy,
|
|
1847
|
-
_anchors: {
|
|
1848
|
-
metric: {
|
|
1849
|
-
unit: "VARh",
|
|
1850
|
-
ratio: 1
|
|
1851
|
-
}
|
|
1852
|
-
}
|
|
1853
|
-
};
|
|
1854
|
-
}
|
|
1855
|
-
});
|
|
1856
|
-
|
|
1857
|
-
// node_modules/convert-units/lib/definitions/volumeFlowRate.js
|
|
1858
|
-
var require_volumeFlowRate = __commonJS({
|
|
1859
|
-
"node_modules/convert-units/lib/definitions/volumeFlowRate.js"(exports2, module2) {
|
|
1860
|
-
"use strict";
|
|
1861
|
-
var metric;
|
|
1862
|
-
var imperial;
|
|
1863
|
-
metric = {
|
|
1864
|
-
"mm3/s": {
|
|
1865
|
-
name: {
|
|
1866
|
-
singular: "Cubic Millimeter per second",
|
|
1867
|
-
plural: "Cubic Millimeters per second"
|
|
1868
|
-
},
|
|
1869
|
-
to_anchor: 1 / 1e6
|
|
1870
|
-
},
|
|
1871
|
-
"cm3/s": {
|
|
1872
|
-
name: {
|
|
1873
|
-
singular: "Cubic Centimeter per second",
|
|
1874
|
-
plural: "Cubic Centimeters per second"
|
|
1875
|
-
},
|
|
1876
|
-
to_anchor: 1 / 1e3
|
|
1877
|
-
},
|
|
1878
|
-
"ml/s": {
|
|
1879
|
-
name: {
|
|
1880
|
-
singular: "Millilitre per second",
|
|
1881
|
-
plural: "Millilitres per second"
|
|
1882
|
-
},
|
|
1883
|
-
to_anchor: 1 / 1e3
|
|
1884
|
-
},
|
|
1885
|
-
"cl/s": {
|
|
1886
|
-
name: {
|
|
1887
|
-
singular: "Centilitre per second",
|
|
1888
|
-
plural: "Centilitres per second"
|
|
1889
|
-
},
|
|
1890
|
-
to_anchor: 1 / 100
|
|
1891
|
-
},
|
|
1892
|
-
"dl/s": {
|
|
1893
|
-
name: {
|
|
1894
|
-
singular: "Decilitre per second",
|
|
1895
|
-
plural: "Decilitres per second"
|
|
1896
|
-
},
|
|
1897
|
-
to_anchor: 1 / 10
|
|
1898
|
-
},
|
|
1899
|
-
"l/s": {
|
|
1900
|
-
name: {
|
|
1901
|
-
singular: "Litre per second",
|
|
1902
|
-
plural: "Litres per second"
|
|
1903
|
-
},
|
|
1904
|
-
to_anchor: 1
|
|
1905
|
-
},
|
|
1906
|
-
"l/min": {
|
|
1907
|
-
name: {
|
|
1908
|
-
singular: "Litre per minute",
|
|
1909
|
-
plural: "Litres per minute"
|
|
1910
|
-
},
|
|
1911
|
-
to_anchor: 1 / 60
|
|
1912
|
-
},
|
|
1913
|
-
"l/h": {
|
|
1914
|
-
name: {
|
|
1915
|
-
singular: "Litre per hour",
|
|
1916
|
-
plural: "Litres per hour"
|
|
1917
|
-
},
|
|
1918
|
-
to_anchor: 1 / 3600
|
|
1919
|
-
},
|
|
1920
|
-
"kl/s": {
|
|
1921
|
-
name: {
|
|
1922
|
-
singular: "Kilolitre per second",
|
|
1923
|
-
plural: "Kilolitres per second"
|
|
1924
|
-
},
|
|
1925
|
-
to_anchor: 1e3
|
|
1926
|
-
},
|
|
1927
|
-
"kl/min": {
|
|
1928
|
-
name: {
|
|
1929
|
-
singular: "Kilolitre per minute",
|
|
1930
|
-
plural: "Kilolitres per minute"
|
|
1931
|
-
},
|
|
1932
|
-
to_anchor: 50 / 3
|
|
1933
|
-
},
|
|
1934
|
-
"kl/h": {
|
|
1935
|
-
name: {
|
|
1936
|
-
singular: "Kilolitre per hour",
|
|
1937
|
-
plural: "Kilolitres per hour"
|
|
1938
|
-
},
|
|
1939
|
-
to_anchor: 5 / 18
|
|
1940
|
-
},
|
|
1941
|
-
"m3/s": {
|
|
1942
|
-
name: {
|
|
1943
|
-
singular: "Cubic meter per second",
|
|
1944
|
-
plural: "Cubic meters per second"
|
|
1945
|
-
},
|
|
1946
|
-
to_anchor: 1e3
|
|
1947
|
-
},
|
|
1948
|
-
"m3/min": {
|
|
1949
|
-
name: {
|
|
1950
|
-
singular: "Cubic meter per minute",
|
|
1951
|
-
plural: "Cubic meters per minute"
|
|
1952
|
-
},
|
|
1953
|
-
to_anchor: 50 / 3
|
|
1954
|
-
},
|
|
1955
|
-
"m3/h": {
|
|
1956
|
-
name: {
|
|
1957
|
-
singular: "Cubic meter per hour",
|
|
1958
|
-
plural: "Cubic meters per hour"
|
|
1959
|
-
},
|
|
1960
|
-
to_anchor: 5 / 18
|
|
1961
|
-
},
|
|
1962
|
-
"km3/s": {
|
|
1963
|
-
name: {
|
|
1964
|
-
singular: "Cubic kilometer per second",
|
|
1965
|
-
plural: "Cubic kilometers per second"
|
|
1966
|
-
},
|
|
1967
|
-
to_anchor: 1e12
|
|
1968
|
-
}
|
|
1969
|
-
};
|
|
1970
|
-
imperial = {
|
|
1971
|
-
"tsp/s": {
|
|
1972
|
-
name: {
|
|
1973
|
-
singular: "Teaspoon per second",
|
|
1974
|
-
plural: "Teaspoons per second"
|
|
1975
|
-
},
|
|
1976
|
-
to_anchor: 1 / 6
|
|
1977
|
-
},
|
|
1978
|
-
"Tbs/s": {
|
|
1979
|
-
name: {
|
|
1980
|
-
singular: "Tablespoon per second",
|
|
1981
|
-
plural: "Tablespoons per second"
|
|
1982
|
-
},
|
|
1983
|
-
to_anchor: 1 / 2
|
|
1984
|
-
},
|
|
1985
|
-
"in3/s": {
|
|
1986
|
-
name: {
|
|
1987
|
-
singular: "Cubic inch per second",
|
|
1988
|
-
plural: "Cubic inches per second"
|
|
1989
|
-
},
|
|
1990
|
-
to_anchor: 0.55411
|
|
1991
|
-
},
|
|
1992
|
-
"in3/min": {
|
|
1993
|
-
name: {
|
|
1994
|
-
singular: "Cubic inch per minute",
|
|
1995
|
-
plural: "Cubic inches per minute"
|
|
1996
|
-
},
|
|
1997
|
-
to_anchor: 0.55411 / 60
|
|
1998
|
-
},
|
|
1999
|
-
"in3/h": {
|
|
2000
|
-
name: {
|
|
2001
|
-
singular: "Cubic inch per hour",
|
|
2002
|
-
plural: "Cubic inches per hour"
|
|
2003
|
-
},
|
|
2004
|
-
to_anchor: 0.55411 / 3600
|
|
2005
|
-
},
|
|
2006
|
-
"fl-oz/s": {
|
|
2007
|
-
name: {
|
|
2008
|
-
singular: "Fluid Ounce per second",
|
|
2009
|
-
plural: "Fluid Ounces per second"
|
|
2010
|
-
},
|
|
2011
|
-
to_anchor: 1
|
|
2012
|
-
},
|
|
2013
|
-
"fl-oz/min": {
|
|
2014
|
-
name: {
|
|
2015
|
-
singular: "Fluid Ounce per minute",
|
|
2016
|
-
plural: "Fluid Ounces per minute"
|
|
2017
|
-
},
|
|
2018
|
-
to_anchor: 1 / 60
|
|
2019
|
-
},
|
|
2020
|
-
"fl-oz/h": {
|
|
2021
|
-
name: {
|
|
2022
|
-
singular: "Fluid Ounce per hour",
|
|
2023
|
-
plural: "Fluid Ounces per hour"
|
|
2024
|
-
},
|
|
2025
|
-
to_anchor: 1 / 3600
|
|
2026
|
-
},
|
|
2027
|
-
"cup/s": {
|
|
2028
|
-
name: {
|
|
2029
|
-
singular: "Cup per second",
|
|
2030
|
-
plural: "Cups per second"
|
|
2031
|
-
},
|
|
2032
|
-
to_anchor: 8
|
|
2033
|
-
},
|
|
2034
|
-
"pnt/s": {
|
|
2035
|
-
name: {
|
|
2036
|
-
singular: "Pint per second",
|
|
2037
|
-
plural: "Pints per second"
|
|
2038
|
-
},
|
|
2039
|
-
to_anchor: 16
|
|
2040
|
-
},
|
|
2041
|
-
"pnt/min": {
|
|
2042
|
-
name: {
|
|
2043
|
-
singular: "Pint per minute",
|
|
2044
|
-
plural: "Pints per minute"
|
|
2045
|
-
},
|
|
2046
|
-
to_anchor: 4 / 15
|
|
2047
|
-
},
|
|
2048
|
-
"pnt/h": {
|
|
2049
|
-
name: {
|
|
2050
|
-
singular: "Pint per hour",
|
|
2051
|
-
plural: "Pints per hour"
|
|
2052
|
-
},
|
|
2053
|
-
to_anchor: 1 / 225
|
|
2054
|
-
},
|
|
2055
|
-
"qt/s": {
|
|
2056
|
-
name: {
|
|
2057
|
-
singular: "Quart per second",
|
|
2058
|
-
plural: "Quarts per second"
|
|
2059
|
-
},
|
|
2060
|
-
to_anchor: 32
|
|
2061
|
-
},
|
|
2062
|
-
"gal/s": {
|
|
2063
|
-
name: {
|
|
2064
|
-
singular: "Gallon per second",
|
|
2065
|
-
plural: "Gallons per second"
|
|
2066
|
-
},
|
|
2067
|
-
to_anchor: 128
|
|
2068
|
-
},
|
|
2069
|
-
"gal/min": {
|
|
2070
|
-
name: {
|
|
2071
|
-
singular: "Gallon per minute",
|
|
2072
|
-
plural: "Gallons per minute"
|
|
2073
|
-
},
|
|
2074
|
-
to_anchor: 32 / 15
|
|
2075
|
-
},
|
|
2076
|
-
"gal/h": {
|
|
2077
|
-
name: {
|
|
2078
|
-
singular: "Gallon per hour",
|
|
2079
|
-
plural: "Gallons per hour"
|
|
2080
|
-
},
|
|
2081
|
-
to_anchor: 8 / 225
|
|
2082
|
-
},
|
|
2083
|
-
"ft3/s": {
|
|
2084
|
-
name: {
|
|
2085
|
-
singular: "Cubic foot per second",
|
|
2086
|
-
plural: "Cubic feet per second"
|
|
2087
|
-
},
|
|
2088
|
-
to_anchor: 957.506
|
|
2089
|
-
},
|
|
2090
|
-
"ft3/min": {
|
|
2091
|
-
name: {
|
|
2092
|
-
singular: "Cubic foot per minute",
|
|
2093
|
-
plural: "Cubic feet per minute"
|
|
2094
|
-
},
|
|
2095
|
-
to_anchor: 957.506 / 60
|
|
2096
|
-
},
|
|
2097
|
-
"ft3/h": {
|
|
2098
|
-
name: {
|
|
2099
|
-
singular: "Cubic foot per hour",
|
|
2100
|
-
plural: "Cubic feet per hour"
|
|
2101
|
-
},
|
|
2102
|
-
to_anchor: 957.506 / 3600
|
|
2103
|
-
},
|
|
2104
|
-
"yd3/s": {
|
|
2105
|
-
name: {
|
|
2106
|
-
singular: "Cubic yard per second",
|
|
2107
|
-
plural: "Cubic yards per second"
|
|
2108
|
-
},
|
|
2109
|
-
to_anchor: 25852.7
|
|
2110
|
-
},
|
|
2111
|
-
"yd3/min": {
|
|
2112
|
-
name: {
|
|
2113
|
-
singular: "Cubic yard per minute",
|
|
2114
|
-
plural: "Cubic yards per minute"
|
|
2115
|
-
},
|
|
2116
|
-
to_anchor: 25852.7 / 60
|
|
2117
|
-
},
|
|
2118
|
-
"yd3/h": {
|
|
2119
|
-
name: {
|
|
2120
|
-
singular: "Cubic yard per hour",
|
|
2121
|
-
plural: "Cubic yards per hour"
|
|
2122
|
-
},
|
|
2123
|
-
to_anchor: 25852.7 / 3600
|
|
2124
|
-
}
|
|
2125
|
-
};
|
|
2126
|
-
module2.exports = {
|
|
2127
|
-
metric,
|
|
2128
|
-
imperial,
|
|
2129
|
-
_anchors: {
|
|
2130
|
-
metric: {
|
|
2131
|
-
unit: "l/s",
|
|
2132
|
-
ratio: 33.8140227
|
|
2133
|
-
},
|
|
2134
|
-
imperial: {
|
|
2135
|
-
unit: "fl-oz/s",
|
|
2136
|
-
ratio: 1 / 33.8140227
|
|
2137
|
-
}
|
|
2138
|
-
}
|
|
2139
|
-
};
|
|
2140
|
-
}
|
|
2141
|
-
});
|
|
2142
|
-
|
|
2143
|
-
// node_modules/convert-units/lib/definitions/illuminance.js
|
|
2144
|
-
var require_illuminance = __commonJS({
|
|
2145
|
-
"node_modules/convert-units/lib/definitions/illuminance.js"(exports2, module2) {
|
|
2146
|
-
"use strict";
|
|
2147
|
-
var metric;
|
|
2148
|
-
var imperial;
|
|
2149
|
-
metric = {
|
|
2150
|
-
"lx": {
|
|
2151
|
-
name: {
|
|
2152
|
-
singular: "Lux",
|
|
2153
|
-
plural: "Lux"
|
|
2154
|
-
},
|
|
2155
|
-
to_anchor: 1
|
|
2156
|
-
}
|
|
2157
|
-
};
|
|
2158
|
-
imperial = {
|
|
2159
|
-
"ft-cd": {
|
|
2160
|
-
name: {
|
|
2161
|
-
singular: "Foot-candle",
|
|
2162
|
-
plural: "Foot-candles"
|
|
2163
|
-
},
|
|
2164
|
-
to_anchor: 1
|
|
2165
|
-
}
|
|
2166
|
-
};
|
|
2167
|
-
module2.exports = {
|
|
2168
|
-
metric,
|
|
2169
|
-
imperial,
|
|
2170
|
-
_anchors: {
|
|
2171
|
-
metric: {
|
|
2172
|
-
unit: "lx",
|
|
2173
|
-
ratio: 1 / 10.76391
|
|
2174
|
-
},
|
|
2175
|
-
imperial: {
|
|
2176
|
-
unit: "ft-cd",
|
|
2177
|
-
ratio: 10.76391
|
|
2178
|
-
}
|
|
2179
|
-
}
|
|
2180
|
-
};
|
|
2181
|
-
}
|
|
2182
|
-
});
|
|
2183
|
-
|
|
2184
|
-
// node_modules/convert-units/lib/definitions/frequency.js
|
|
2185
|
-
var require_frequency = __commonJS({
|
|
2186
|
-
"node_modules/convert-units/lib/definitions/frequency.js"(exports2, module2) {
|
|
2187
|
-
"use strict";
|
|
2188
|
-
var frequency;
|
|
2189
|
-
frequency = {
|
|
2190
|
-
mHz: {
|
|
2191
|
-
name: {
|
|
2192
|
-
singular: "millihertz",
|
|
2193
|
-
plural: "millihertz"
|
|
2194
|
-
},
|
|
2195
|
-
to_anchor: 1 / 1e3
|
|
2196
|
-
},
|
|
2197
|
-
Hz: {
|
|
2198
|
-
name: {
|
|
2199
|
-
singular: "hertz",
|
|
2200
|
-
plural: "hertz"
|
|
2201
|
-
},
|
|
2202
|
-
to_anchor: 1
|
|
2203
|
-
},
|
|
2204
|
-
kHz: {
|
|
2205
|
-
name: {
|
|
2206
|
-
singular: "kilohertz",
|
|
2207
|
-
plural: "kilohertz"
|
|
2208
|
-
},
|
|
2209
|
-
to_anchor: 1e3
|
|
2210
|
-
},
|
|
2211
|
-
MHz: {
|
|
2212
|
-
name: {
|
|
2213
|
-
singular: "megahertz",
|
|
2214
|
-
plural: "megahertz"
|
|
2215
|
-
},
|
|
2216
|
-
to_anchor: 1e3 * 1e3
|
|
2217
|
-
},
|
|
2218
|
-
GHz: {
|
|
2219
|
-
name: {
|
|
2220
|
-
singular: "gigahertz",
|
|
2221
|
-
plural: "gigahertz"
|
|
2222
|
-
},
|
|
2223
|
-
to_anchor: 1e3 * 1e3 * 1e3
|
|
2224
|
-
},
|
|
2225
|
-
THz: {
|
|
2226
|
-
name: {
|
|
2227
|
-
singular: "terahertz",
|
|
2228
|
-
plural: "terahertz"
|
|
2229
|
-
},
|
|
2230
|
-
to_anchor: 1e3 * 1e3 * 1e3 * 1e3
|
|
2231
|
-
},
|
|
2232
|
-
rpm: {
|
|
2233
|
-
name: {
|
|
2234
|
-
singular: "rotation per minute",
|
|
2235
|
-
plural: "rotations per minute"
|
|
2236
|
-
},
|
|
2237
|
-
to_anchor: 1 / 60
|
|
2238
|
-
},
|
|
2239
|
-
"deg/s": {
|
|
2240
|
-
name: {
|
|
2241
|
-
singular: "degree per second",
|
|
2242
|
-
plural: "degrees per second"
|
|
2243
|
-
},
|
|
2244
|
-
to_anchor: 1 / 360
|
|
2245
|
-
},
|
|
2246
|
-
"rad/s": {
|
|
2247
|
-
name: {
|
|
2248
|
-
singular: "radian per second",
|
|
2249
|
-
plural: "radians per second"
|
|
2250
|
-
},
|
|
2251
|
-
to_anchor: 1 / (Math.PI * 2)
|
|
2252
|
-
}
|
|
2253
|
-
};
|
|
2254
|
-
module2.exports = {
|
|
2255
|
-
metric: frequency,
|
|
2256
|
-
_anchors: {
|
|
2257
|
-
frequency: {
|
|
2258
|
-
unit: "hz",
|
|
2259
|
-
ratio: 1
|
|
2260
|
-
}
|
|
2261
|
-
}
|
|
2262
|
-
};
|
|
2263
|
-
}
|
|
2264
|
-
});
|
|
2265
|
-
|
|
2266
|
-
// node_modules/convert-units/lib/definitions/angle.js
|
|
2267
|
-
var require_angle = __commonJS({
|
|
2268
|
-
"node_modules/convert-units/lib/definitions/angle.js"(exports2, module2) {
|
|
2269
|
-
"use strict";
|
|
2270
|
-
var angle;
|
|
2271
|
-
angle = {
|
|
2272
|
-
rad: {
|
|
2273
|
-
name: {
|
|
2274
|
-
singular: "radian",
|
|
2275
|
-
plural: "radians"
|
|
2276
|
-
},
|
|
2277
|
-
to_anchor: 180 / Math.PI
|
|
2278
|
-
},
|
|
2279
|
-
deg: {
|
|
2280
|
-
name: {
|
|
2281
|
-
singular: "degree",
|
|
2282
|
-
plural: "degrees"
|
|
2283
|
-
},
|
|
2284
|
-
to_anchor: 1
|
|
2285
|
-
},
|
|
2286
|
-
grad: {
|
|
2287
|
-
name: {
|
|
2288
|
-
singular: "gradian",
|
|
2289
|
-
plural: "gradians"
|
|
2290
|
-
},
|
|
2291
|
-
to_anchor: 9 / 10
|
|
2292
|
-
},
|
|
2293
|
-
arcmin: {
|
|
2294
|
-
name: {
|
|
2295
|
-
singular: "arcminute",
|
|
2296
|
-
plural: "arcminutes"
|
|
2297
|
-
},
|
|
2298
|
-
to_anchor: 1 / 60
|
|
2299
|
-
},
|
|
2300
|
-
arcsec: {
|
|
2301
|
-
name: {
|
|
2302
|
-
singular: "arcsecond",
|
|
2303
|
-
plural: "arcseconds"
|
|
2304
|
-
},
|
|
2305
|
-
to_anchor: 1 / 3600
|
|
2306
|
-
}
|
|
2307
|
-
};
|
|
2308
|
-
module2.exports = {
|
|
2309
|
-
metric: angle,
|
|
2310
|
-
_anchors: {
|
|
2311
|
-
metric: {
|
|
2312
|
-
unit: "deg",
|
|
2313
|
-
ratio: 1
|
|
2314
|
-
}
|
|
2315
|
-
}
|
|
2316
|
-
};
|
|
2317
|
-
}
|
|
2318
|
-
});
|
|
2319
|
-
|
|
2320
|
-
// node_modules/convert-units/lib/index.js
|
|
2321
|
-
var require_lib = __commonJS({
|
|
2322
|
-
"node_modules/convert-units/lib/index.js"(exports2, module2) {
|
|
2323
|
-
"use strict";
|
|
2324
|
-
var convert;
|
|
2325
|
-
var keys = require_lodash5();
|
|
2326
|
-
var each = require_lodash19();
|
|
2327
|
-
var measures = {
|
|
2328
|
-
length: require_length(),
|
|
2329
|
-
area: require_area(),
|
|
2330
|
-
mass: require_mass(),
|
|
2331
|
-
volume: require_volume(),
|
|
2332
|
-
each: require_each(),
|
|
2333
|
-
temperature: require_temperature(),
|
|
2334
|
-
time: require_time(),
|
|
2335
|
-
digital: require_digital(),
|
|
2336
|
-
partsPer: require_partsPer(),
|
|
2337
|
-
speed: require_speed(),
|
|
2338
|
-
pace: require_pace(),
|
|
2339
|
-
pressure: require_pressure(),
|
|
2340
|
-
current: require_current(),
|
|
2341
|
-
voltage: require_voltage(),
|
|
2342
|
-
power: require_power(),
|
|
2343
|
-
reactivePower: require_reactivePower(),
|
|
2344
|
-
apparentPower: require_apparentPower(),
|
|
2345
|
-
energy: require_energy(),
|
|
2346
|
-
reactiveEnergy: require_reactiveEnergy(),
|
|
2347
|
-
volumeFlowRate: require_volumeFlowRate(),
|
|
2348
|
-
illuminance: require_illuminance(),
|
|
2349
|
-
frequency: require_frequency(),
|
|
2350
|
-
angle: require_angle()
|
|
2351
|
-
};
|
|
2352
|
-
var Converter;
|
|
2353
|
-
Converter = function(numerator, denominator) {
|
|
2354
|
-
if (denominator)
|
|
2355
|
-
this.val = numerator / denominator;
|
|
2356
|
-
else
|
|
2357
|
-
this.val = numerator;
|
|
2358
|
-
};
|
|
2359
|
-
Converter.prototype.from = function(from) {
|
|
2360
|
-
if (this.destination)
|
|
2361
|
-
throw new Error(".from must be called before .to");
|
|
2362
|
-
this.origin = this.getUnit(from);
|
|
2363
|
-
if (!this.origin) {
|
|
2364
|
-
this.throwUnsupportedUnitError(from);
|
|
2365
|
-
}
|
|
2366
|
-
return this;
|
|
2367
|
-
};
|
|
2368
|
-
Converter.prototype.to = function(to) {
|
|
2369
|
-
if (!this.origin)
|
|
2370
|
-
throw new Error(".to must be called after .from");
|
|
2371
|
-
this.destination = this.getUnit(to);
|
|
2372
|
-
var result, transform;
|
|
2373
|
-
if (!this.destination) {
|
|
2374
|
-
this.throwUnsupportedUnitError(to);
|
|
2375
|
-
}
|
|
2376
|
-
if (this.origin.abbr === this.destination.abbr) {
|
|
2377
|
-
return this.val;
|
|
2378
|
-
}
|
|
2379
|
-
if (this.destination.measure != this.origin.measure) {
|
|
2380
|
-
throw new Error("Cannot convert incompatible measures of " + this.destination.measure + " and " + this.origin.measure);
|
|
2381
|
-
}
|
|
2382
|
-
result = this.val * this.origin.unit.to_anchor;
|
|
2383
|
-
if (this.origin.unit.anchor_shift) {
|
|
2384
|
-
result -= this.origin.unit.anchor_shift;
|
|
2385
|
-
}
|
|
2386
|
-
if (this.origin.system != this.destination.system) {
|
|
2387
|
-
transform = measures[this.origin.measure]._anchors[this.origin.system].transform;
|
|
2388
|
-
if (typeof transform === "function") {
|
|
2389
|
-
result = transform(result);
|
|
2390
|
-
} else {
|
|
2391
|
-
result *= measures[this.origin.measure]._anchors[this.origin.system].ratio;
|
|
2392
|
-
}
|
|
2393
|
-
}
|
|
2394
|
-
if (this.destination.unit.anchor_shift) {
|
|
2395
|
-
result += this.destination.unit.anchor_shift;
|
|
2396
|
-
}
|
|
2397
|
-
return result / this.destination.unit.to_anchor;
|
|
2398
|
-
};
|
|
2399
|
-
Converter.prototype.toBest = function(options) {
|
|
2400
|
-
if (!this.origin)
|
|
2401
|
-
throw new Error(".toBest must be called after .from");
|
|
2402
|
-
var options = Object.assign({
|
|
2403
|
-
exclude: [],
|
|
2404
|
-
cutOffNumber: 1
|
|
2405
|
-
}, options);
|
|
2406
|
-
var best;
|
|
2407
|
-
each(this.possibilities(), function(possibility) {
|
|
2408
|
-
var unit = this.describe(possibility);
|
|
2409
|
-
var isIncluded = options.exclude.indexOf(possibility) === -1;
|
|
2410
|
-
if (isIncluded && unit.system === this.origin.system) {
|
|
2411
|
-
var result = this.to(possibility);
|
|
2412
|
-
if (!best || result >= options.cutOffNumber && result < best.val) {
|
|
2413
|
-
best = {
|
|
2414
|
-
val: result,
|
|
2415
|
-
unit: possibility,
|
|
2416
|
-
singular: unit.singular,
|
|
2417
|
-
plural: unit.plural
|
|
2418
|
-
};
|
|
2419
|
-
}
|
|
2420
|
-
}
|
|
2421
|
-
}.bind(this));
|
|
2422
|
-
return best;
|
|
2423
|
-
};
|
|
2424
|
-
Converter.prototype.getUnit = function(abbr) {
|
|
2425
|
-
var found;
|
|
2426
|
-
each(measures, function(systems, measure) {
|
|
2427
|
-
each(systems, function(units, system) {
|
|
2428
|
-
if (system == "_anchors")
|
|
2429
|
-
return false;
|
|
2430
|
-
each(units, function(unit, testAbbr) {
|
|
2431
|
-
if (testAbbr == abbr) {
|
|
2432
|
-
found = {
|
|
2433
|
-
abbr,
|
|
2434
|
-
measure,
|
|
2435
|
-
system,
|
|
2436
|
-
unit
|
|
2437
|
-
};
|
|
2438
|
-
return false;
|
|
2439
|
-
}
|
|
2440
|
-
});
|
|
2441
|
-
if (found)
|
|
2442
|
-
return false;
|
|
2443
|
-
});
|
|
2444
|
-
if (found)
|
|
2445
|
-
return false;
|
|
2446
|
-
});
|
|
2447
|
-
return found;
|
|
2448
|
-
};
|
|
2449
|
-
var describe = function(resp) {
|
|
2450
|
-
return {
|
|
2451
|
-
abbr: resp.abbr,
|
|
2452
|
-
measure: resp.measure,
|
|
2453
|
-
system: resp.system,
|
|
2454
|
-
singular: resp.unit.name.singular,
|
|
2455
|
-
plural: resp.unit.name.plural
|
|
2456
|
-
};
|
|
2457
|
-
};
|
|
2458
|
-
Converter.prototype.describe = function(abbr) {
|
|
2459
|
-
var resp = Converter.prototype.getUnit(abbr);
|
|
2460
|
-
var desc = null;
|
|
2461
|
-
try {
|
|
2462
|
-
desc = describe(resp);
|
|
2463
|
-
} catch (err) {
|
|
2464
|
-
this.throwUnsupportedUnitError(abbr);
|
|
2465
|
-
}
|
|
2466
|
-
return desc;
|
|
2467
|
-
};
|
|
2468
|
-
Converter.prototype.list = function(measure) {
|
|
2469
|
-
var list = [];
|
|
2470
|
-
each(measures, function(systems, testMeasure) {
|
|
2471
|
-
if (measure && measure !== testMeasure)
|
|
2472
|
-
return;
|
|
2473
|
-
each(systems, function(units, system) {
|
|
2474
|
-
if (system == "_anchors")
|
|
2475
|
-
return false;
|
|
2476
|
-
each(units, function(unit, abbr) {
|
|
2477
|
-
list = list.concat(describe({
|
|
2478
|
-
abbr,
|
|
2479
|
-
measure: testMeasure,
|
|
2480
|
-
system,
|
|
2481
|
-
unit
|
|
2482
|
-
}));
|
|
2483
|
-
});
|
|
2484
|
-
});
|
|
2485
|
-
});
|
|
2486
|
-
return list;
|
|
2487
|
-
};
|
|
2488
|
-
Converter.prototype.throwUnsupportedUnitError = function(what) {
|
|
2489
|
-
var validUnits = [];
|
|
2490
|
-
each(measures, function(systems, measure) {
|
|
2491
|
-
each(systems, function(units, system) {
|
|
2492
|
-
if (system == "_anchors")
|
|
2493
|
-
return false;
|
|
2494
|
-
validUnits = validUnits.concat(keys(units));
|
|
2495
|
-
});
|
|
2496
|
-
});
|
|
2497
|
-
throw new Error("Unsupported unit " + what + ", use one of: " + validUnits.join(", "));
|
|
2498
|
-
};
|
|
2499
|
-
Converter.prototype.possibilities = function(measure) {
|
|
2500
|
-
var possibilities = [];
|
|
2501
|
-
if (!this.origin && !measure) {
|
|
2502
|
-
each(keys(measures), function(measure2) {
|
|
2503
|
-
each(measures[measure2], function(units, system) {
|
|
2504
|
-
if (system == "_anchors")
|
|
2505
|
-
return false;
|
|
2506
|
-
possibilities = possibilities.concat(keys(units));
|
|
2507
|
-
});
|
|
2508
|
-
});
|
|
2509
|
-
} else {
|
|
2510
|
-
measure = measure || this.origin.measure;
|
|
2511
|
-
each(measures[measure], function(units, system) {
|
|
2512
|
-
if (system == "_anchors")
|
|
2513
|
-
return false;
|
|
2514
|
-
possibilities = possibilities.concat(keys(units));
|
|
2515
|
-
});
|
|
2516
|
-
}
|
|
2517
|
-
return possibilities;
|
|
2518
|
-
};
|
|
2519
|
-
Converter.prototype.measures = function() {
|
|
2520
|
-
return keys(measures);
|
|
2521
|
-
};
|
|
2522
|
-
convert = function(value) {
|
|
2523
|
-
return new Converter(value);
|
|
2524
|
-
};
|
|
2525
|
-
module2.exports = convert;
|
|
2526
|
-
}
|
|
2527
|
-
});
|
|
2528
|
-
|
|
2529
|
-
// node_modules/@tscircuit/soup/dist/index.js
|
|
2530
|
-
var require_dist = __commonJS({
|
|
2531
|
-
"node_modules/@tscircuit/soup/dist/index.js"(exports2, module2) {
|
|
2532
|
-
"use strict";
|
|
2533
|
-
var __create2 = Object.create;
|
|
2534
|
-
var __defProp2 = Object.defineProperty;
|
|
2535
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
2536
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
2537
|
-
var __getProtoOf2 = Object.getPrototypeOf;
|
|
2538
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
2539
|
-
var __export2 = (target, all) => {
|
|
2540
|
-
for (var name in all)
|
|
2541
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
2542
|
-
};
|
|
2543
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
2544
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
2545
|
-
for (let key of __getOwnPropNames2(from))
|
|
2546
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
2547
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
2548
|
-
}
|
|
2549
|
-
return to;
|
|
2550
|
-
};
|
|
2551
|
-
var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
2552
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
2553
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
2554
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
2555
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
2556
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
|
|
2557
|
-
mod
|
|
2558
|
-
));
|
|
2559
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
2560
|
-
var src_exports2 = {};
|
|
2561
|
-
__export2(src_exports2, {
|
|
2562
|
-
all_layers: () => all_layers,
|
|
2563
|
-
any_soup_element: () => any_soup_element,
|
|
2564
|
-
any_source_component: () => any_source_component,
|
|
2565
|
-
cad_component: () => cad_component,
|
|
2566
|
-
capacitance: () => capacitance,
|
|
2567
|
-
current: () => current,
|
|
2568
|
-
distance: () => distance2,
|
|
2569
|
-
inductance: () => inductance,
|
|
2570
|
-
layer_ref: () => layer_ref,
|
|
2571
|
-
layer_string: () => layer_string,
|
|
2572
|
-
length: () => length6,
|
|
2573
|
-
pcb_board: () => pcb_board,
|
|
2574
|
-
pcb_component: () => pcb_component,
|
|
2575
|
-
pcb_fabrication_note_path: () => pcb_fabrication_note_path,
|
|
2576
|
-
pcb_fabrication_note_text: () => pcb_fabrication_note_text,
|
|
2577
|
-
pcb_hole: () => pcb_hole,
|
|
2578
|
-
pcb_placement_error: () => pcb_placement_error,
|
|
2579
|
-
pcb_plated_hole: () => pcb_plated_hole,
|
|
2580
|
-
pcb_port: () => pcb_port,
|
|
2581
|
-
pcb_port_not_matched_error: () => pcb_port_not_matched_error,
|
|
2582
|
-
pcb_route_hint: () => pcb_route_hint,
|
|
2583
|
-
pcb_route_hints: () => pcb_route_hints,
|
|
2584
|
-
pcb_silkscreen_circle: () => pcb_silkscreen_circle,
|
|
2585
|
-
pcb_silkscreen_line: () => pcb_silkscreen_line,
|
|
2586
|
-
pcb_silkscreen_oval: () => pcb_silkscreen_oval,
|
|
2587
|
-
pcb_silkscreen_path: () => pcb_silkscreen_path,
|
|
2588
|
-
pcb_silkscreen_rect: () => pcb_silkscreen_rect,
|
|
2589
|
-
pcb_silkscreen_text: () => pcb_silkscreen_text,
|
|
2590
|
-
pcb_smtpad: () => pcb_smtpad,
|
|
2591
|
-
pcb_text: () => pcb_text,
|
|
2592
|
-
pcb_trace: () => pcb_trace,
|
|
2593
|
-
pcb_trace_error: () => pcb_trace_error,
|
|
2594
|
-
pcb_trace_hint: () => pcb_trace_hint,
|
|
2595
|
-
pcb_via: () => pcb_via,
|
|
2596
|
-
point: () => point,
|
|
2597
|
-
point3: () => point3,
|
|
2598
|
-
position: () => position,
|
|
2599
|
-
position3: () => position3,
|
|
2600
|
-
resistance: () => resistance,
|
|
2601
|
-
rotation: () => rotation,
|
|
2602
|
-
route_hint_point: () => route_hint_point,
|
|
2603
|
-
schematic_box: () => schematic_box,
|
|
2604
|
-
schematic_component: () => schematic_component,
|
|
2605
|
-
schematic_error: () => schematic_error,
|
|
2606
|
-
schematic_line: () => schematic_line,
|
|
2607
|
-
schematic_net_label: () => schematic_net_label,
|
|
2608
|
-
schematic_path: () => schematic_path,
|
|
2609
|
-
schematic_port: () => schematic_port,
|
|
2610
|
-
schematic_text: () => schematic_text,
|
|
2611
|
-
schematic_trace: () => schematic_trace,
|
|
2612
|
-
size: () => size,
|
|
2613
|
-
source_component_base: () => source_component_base,
|
|
2614
|
-
source_group: () => source_group,
|
|
2615
|
-
source_led: () => source_led,
|
|
2616
|
-
source_net: () => source_net,
|
|
2617
|
-
source_port: () => source_port,
|
|
2618
|
-
source_simple_bug: () => source_simple_bug,
|
|
2619
|
-
source_simple_capacitor: () => source_simple_capacitor,
|
|
2620
|
-
source_simple_diode: () => source_simple_diode,
|
|
2621
|
-
source_simple_ground: () => source_simple_ground,
|
|
2622
|
-
source_simple_power_source: () => source_simple_power_source,
|
|
2623
|
-
source_simple_resistor: () => source_simple_resistor,
|
|
2624
|
-
source_trace: () => source_trace,
|
|
2625
|
-
supplier_name: () => supplier_name,
|
|
2626
|
-
time: () => time,
|
|
2627
|
-
visible_layer: () => visible_layer,
|
|
2628
|
-
voltage: () => voltage
|
|
2629
|
-
});
|
|
2630
|
-
module2.exports = __toCommonJS2(src_exports2);
|
|
2631
|
-
var import_convert_units = __toESM2(require_lib());
|
|
2632
|
-
var si_prefix_multiplier = {
|
|
2633
|
-
tera: 1e13,
|
|
2634
|
-
T: 1e13,
|
|
2635
|
-
giga: 1e10,
|
|
2636
|
-
G: 1e10,
|
|
2637
|
-
mega: 1e7,
|
|
2638
|
-
M: 1e7,
|
|
2639
|
-
kilo: 1e4,
|
|
2640
|
-
k: 1e4,
|
|
2641
|
-
deci: 1,
|
|
2642
|
-
d: 1,
|
|
2643
|
-
centi: 0.1,
|
|
2644
|
-
c: 0.1,
|
|
2645
|
-
milli: 0.01,
|
|
2646
|
-
m: 0.01,
|
|
2647
|
-
micro: 1e-5,
|
|
2648
|
-
u: 1e-5,
|
|
2649
|
-
\u00B5: 1e-5,
|
|
2650
|
-
nano: 1e-8,
|
|
2651
|
-
n: 1e-8,
|
|
2652
|
-
pico: 1e-11,
|
|
2653
|
-
p: 1e-11
|
|
2654
|
-
};
|
|
2655
|
-
var si_prefixes = Object.keys(si_prefix_multiplier);
|
|
2656
|
-
var target_conversion = {
|
|
2657
|
-
mass: "g",
|
|
2658
|
-
length: "mm",
|
|
2659
|
-
time: "ms",
|
|
2660
|
-
volume: "ml",
|
|
2661
|
-
angle: "deg"
|
|
2662
|
-
};
|
|
2663
|
-
function getSiPrefixMultiplierFromUnit(v) {
|
|
2664
|
-
for (const prefix of si_prefixes) {
|
|
2665
|
-
if (v.startsWith(prefix)) {
|
|
2666
|
-
return si_prefix_multiplier[prefix];
|
|
2667
|
-
}
|
|
2668
|
-
}
|
|
2669
|
-
return 1;
|
|
2670
|
-
}
|
|
2671
|
-
var parseAndConvertSiUnit = (v) => {
|
|
2672
|
-
if (typeof v === "undefined")
|
|
2673
|
-
return { unit: null, value: null };
|
|
2674
|
-
if (typeof v === "string" && v.match(/^[\d\.]+$/))
|
|
2675
|
-
return { value: parseFloat(v), unit: null };
|
|
2676
|
-
if (typeof v === "number")
|
|
2677
|
-
return { value: v, unit: null };
|
|
2678
|
-
if (typeof v === "object" && "x" in v && "y" in v) {
|
|
2679
|
-
return {
|
|
2680
|
-
unit: parseAndConvertSiUnit(v.x).unit,
|
|
2681
|
-
value: {
|
|
2682
|
-
x: parseAndConvertSiUnit(v.x).value,
|
|
2683
|
-
y: parseAndConvertSiUnit(v.y).value
|
|
2684
|
-
}
|
|
2685
|
-
};
|
|
2686
|
-
}
|
|
2687
|
-
const unit_reversed = v.split("").reverse().join("").match(/[a-zA-Z]+/)?.[0];
|
|
2688
|
-
if (!unit_reversed) {
|
|
2689
|
-
throw new Error(`Could not determine unit: "${v}"`);
|
|
2690
|
-
}
|
|
2691
|
-
const unit = unit_reversed.split("").reverse().join("");
|
|
2692
|
-
const value = v.slice(0, -unit.length);
|
|
2693
|
-
let measure;
|
|
2694
|
-
try {
|
|
2695
|
-
measure = (0, import_convert_units.default)().describe(unit)?.measure;
|
|
2696
|
-
} catch (e) {
|
|
2697
|
-
}
|
|
2698
|
-
if (measure) {
|
|
2699
|
-
const target_unit = target_conversion[measure];
|
|
2700
|
-
if (!target_unit) {
|
|
2701
|
-
throw new Error(
|
|
2702
|
-
`Could not determine target unit for measure: "${measure}"`
|
|
2703
|
-
);
|
|
2704
|
-
}
|
|
2705
|
-
return {
|
|
2706
|
-
unit,
|
|
2707
|
-
value: (0, import_convert_units.default)(parseFloat(value)).from(unit).to(target_unit)
|
|
2708
|
-
};
|
|
2709
|
-
} else {
|
|
2710
|
-
return {
|
|
2711
|
-
unit,
|
|
2712
|
-
value: getSiPrefixMultiplierFromUnit(unit) * parseFloat(value)
|
|
2713
|
-
};
|
|
2714
|
-
}
|
|
2715
|
-
};
|
|
2716
|
-
var import_zod10 = require("zod");
|
|
2717
|
-
var resistance = import_zod10.z.string().or(import_zod10.z.number()).transform((v) => parseAndConvertSiUnit(v).value);
|
|
2718
|
-
var capacitance = import_zod10.z.string().or(import_zod10.z.number()).transform((v) => parseAndConvertSiUnit(v).value);
|
|
2719
|
-
var inductance = import_zod10.z.string().or(import_zod10.z.number()).transform((v) => parseAndConvertSiUnit(v).value);
|
|
2720
|
-
var voltage = import_zod10.z.string().or(import_zod10.z.number()).transform((v) => parseAndConvertSiUnit(v).value);
|
|
2721
|
-
var length6 = import_zod10.z.string().or(import_zod10.z.number()).transform((v) => parseAndConvertSiUnit(v).value);
|
|
2722
|
-
var distance2 = length6;
|
|
2723
|
-
var current = import_zod10.z.string().or(import_zod10.z.number()).transform((v) => parseAndConvertSiUnit(v).value);
|
|
2724
|
-
var time = import_zod10.z.string().or(import_zod10.z.number()).transform((v) => parseAndConvertSiUnit(v).value);
|
|
2725
|
-
var rotation = import_zod10.z.string().or(import_zod10.z.number()).transform((v) => parseAndConvertSiUnit(v).value);
|
|
2726
|
-
var import_zod22 = require("zod");
|
|
2727
|
-
var point = import_zod22.z.object({
|
|
2728
|
-
x: distance2,
|
|
2729
|
-
y: distance2
|
|
2730
|
-
});
|
|
2731
|
-
var position = point;
|
|
2732
|
-
var import_zod32 = require("zod");
|
|
2733
|
-
var point3 = import_zod32.z.object({
|
|
2734
|
-
x: distance2,
|
|
2735
|
-
y: distance2,
|
|
2736
|
-
z: distance2
|
|
2737
|
-
});
|
|
2738
|
-
var position3 = point3;
|
|
2739
|
-
var import_zod42 = require("zod");
|
|
2740
|
-
var size = import_zod42.z.object({
|
|
2741
|
-
width: import_zod42.z.number(),
|
|
2742
|
-
height: import_zod42.z.number()
|
|
2743
|
-
});
|
|
2744
|
-
var import_zod72 = require("zod");
|
|
2745
|
-
var import_zod52 = require("zod");
|
|
2746
|
-
var supplier_name = import_zod52.z.enum([
|
|
2747
|
-
"jlcpcb",
|
|
2748
|
-
"macrofab",
|
|
2749
|
-
"pcbway",
|
|
2750
|
-
"digikey",
|
|
2751
|
-
"mouser",
|
|
2752
|
-
"lcsc"
|
|
2753
|
-
]);
|
|
2754
|
-
var import_zod62 = require("zod");
|
|
2755
|
-
var source_component_base = import_zod62.z.object({
|
|
2756
|
-
type: import_zod62.z.literal("source_component"),
|
|
2757
|
-
ftype: import_zod62.z.string().optional(),
|
|
2758
|
-
source_component_id: import_zod62.z.string(),
|
|
2759
|
-
name: import_zod62.z.string(),
|
|
2760
|
-
// part_numbers: z.array(z.string()).optional(),
|
|
2761
|
-
supplier_part_numbers: import_zod62.z.record(supplier_name, import_zod62.z.array(import_zod62.z.string())).optional()
|
|
2762
|
-
});
|
|
2763
|
-
var source_simple_capacitor = source_component_base.extend({
|
|
2764
|
-
ftype: import_zod72.z.literal("simple_capacitor"),
|
|
2765
|
-
capacitance
|
|
2766
|
-
});
|
|
2767
|
-
var import_zod82 = require("zod");
|
|
2768
|
-
var source_simple_resistor = source_component_base.extend({
|
|
2769
|
-
ftype: import_zod82.z.literal("simple_resistor"),
|
|
2770
|
-
resistance
|
|
2771
|
-
});
|
|
2772
|
-
var import_zod92 = require("zod");
|
|
2773
|
-
var source_simple_diode = source_component_base.extend({
|
|
2774
|
-
ftype: import_zod92.z.literal("simple_diode")
|
|
2775
|
-
});
|
|
2776
|
-
var import_zod102 = require("zod");
|
|
2777
|
-
var source_simple_ground = source_component_base.extend({
|
|
2778
|
-
ftype: import_zod102.z.literal("simple_ground")
|
|
2779
|
-
});
|
|
2780
|
-
var import_zod11 = require("zod");
|
|
2781
|
-
var source_simple_bug = source_component_base.extend({
|
|
2782
|
-
ftype: import_zod11.z.literal("simple_bug")
|
|
2783
|
-
});
|
|
2784
|
-
var import_zod12 = require("zod");
|
|
2785
|
-
var source_simple_inductor = source_component_base.extend({
|
|
2786
|
-
ftype: import_zod12.z.literal("simple_inductor"),
|
|
2787
|
-
inductance
|
|
2788
|
-
});
|
|
2789
|
-
var import_zod13 = require("zod");
|
|
2790
|
-
var source_led = source_simple_diode.extend({
|
|
2791
|
-
ftype: import_zod13.z.literal("led")
|
|
2792
|
-
});
|
|
2793
|
-
var import_zod14 = require("zod");
|
|
2794
|
-
var source_simple_power_source = source_component_base.extend({
|
|
2795
|
-
ftype: import_zod14.z.literal("simple_power_source"),
|
|
2796
|
-
voltage
|
|
2797
|
-
});
|
|
2798
|
-
var import_zod15 = require("zod");
|
|
2799
|
-
var any_source_component = import_zod15.z.union([
|
|
2800
|
-
source_simple_resistor,
|
|
2801
|
-
source_simple_capacitor,
|
|
2802
|
-
source_simple_diode,
|
|
2803
|
-
source_simple_ground,
|
|
2804
|
-
source_simple_bug,
|
|
2805
|
-
source_led,
|
|
2806
|
-
source_simple_power_source
|
|
2807
|
-
]);
|
|
2808
|
-
var import_zod16 = require("zod");
|
|
2809
|
-
var source_port = import_zod16.z.object({
|
|
2810
|
-
type: import_zod16.z.literal("source_port"),
|
|
2811
|
-
pin_number: import_zod16.z.number().optional(),
|
|
2812
|
-
port_hints: import_zod16.z.array(import_zod16.z.string()).optional(),
|
|
2813
|
-
name: import_zod16.z.string(),
|
|
2814
|
-
source_port_id: import_zod16.z.string(),
|
|
2815
|
-
source_component_id: import_zod16.z.string()
|
|
2816
|
-
});
|
|
2817
|
-
var import_zod17 = require("zod");
|
|
2818
|
-
var source_trace = import_zod17.z.object({
|
|
2819
|
-
type: import_zod17.z.literal("source_trace"),
|
|
2820
|
-
source_trace_id: import_zod17.z.string(),
|
|
2821
|
-
connected_source_port_ids: import_zod17.z.array(import_zod17.z.string()),
|
|
2822
|
-
connected_source_net_ids: import_zod17.z.array(import_zod17.z.string())
|
|
2823
|
-
});
|
|
2824
|
-
var import_zod18 = require("zod");
|
|
2825
|
-
var source_group = import_zod18.z.object({
|
|
2826
|
-
type: import_zod18.z.literal("source_group"),
|
|
2827
|
-
source_group_id: import_zod18.z.string(),
|
|
2828
|
-
name: import_zod18.z.string().optional()
|
|
2829
|
-
});
|
|
2830
|
-
var import_zod19 = require("zod");
|
|
2831
|
-
var source_net = import_zod19.z.object({
|
|
2832
|
-
type: import_zod19.z.literal("source_net"),
|
|
2833
|
-
source_net_id: import_zod19.z.string(),
|
|
2834
|
-
name: import_zod19.z.string(),
|
|
2835
|
-
member_source_group_ids: import_zod19.z.array(import_zod19.z.string()),
|
|
2836
|
-
is_power: import_zod19.z.boolean().optional(),
|
|
2837
|
-
is_ground: import_zod19.z.boolean().optional(),
|
|
2838
|
-
is_digital_signal: import_zod19.z.boolean().optional(),
|
|
2839
|
-
is_analog_signal: import_zod19.z.boolean().optional()
|
|
2840
|
-
});
|
|
2841
|
-
var import_zod20 = require("zod");
|
|
2842
|
-
var schematic_box = import_zod20.z.object({
|
|
2843
|
-
type: import_zod20.z.literal("schematic_box"),
|
|
2844
|
-
schematic_component_id: import_zod20.z.string(),
|
|
2845
|
-
width: distance2,
|
|
2846
|
-
height: distance2,
|
|
2847
|
-
x: distance2,
|
|
2848
|
-
y: distance2
|
|
2849
|
-
}).describe("Draws a box on the schematic");
|
|
2850
|
-
var import_zod21 = require("zod");
|
|
2851
|
-
var schematic_path = import_zod21.z.object({
|
|
2852
|
-
type: import_zod21.z.literal("schematic_path"),
|
|
2853
|
-
schematic_component_id: import_zod21.z.string(),
|
|
2854
|
-
fill_color: import_zod21.z.enum(["red", "blue"]).optional(),
|
|
2855
|
-
is_filled: import_zod21.z.boolean().optional(),
|
|
2856
|
-
points: import_zod21.z.array(point)
|
|
2857
|
-
});
|
|
2858
|
-
var import_zod222 = require("zod");
|
|
2859
|
-
var schematic_component = import_zod222.z.object({
|
|
2860
|
-
type: import_zod222.z.literal("schematic_component"),
|
|
2861
|
-
rotation: rotation.default(0),
|
|
2862
|
-
size,
|
|
2863
|
-
center: point,
|
|
2864
|
-
source_component_id: import_zod222.z.string(),
|
|
2865
|
-
schematic_component_id: import_zod222.z.string(),
|
|
2866
|
-
pin_spacing: length6.optional(),
|
|
2867
|
-
box_width: length6.optional(),
|
|
2868
|
-
port_arrangement: import_zod222.z.union([
|
|
2869
|
-
import_zod222.z.object({
|
|
2870
|
-
left_size: import_zod222.z.number(),
|
|
2871
|
-
right_size: import_zod222.z.number(),
|
|
2872
|
-
top_size: import_zod222.z.number().optional(),
|
|
2873
|
-
bottom_size: import_zod222.z.number().optional()
|
|
2874
|
-
}),
|
|
2875
|
-
import_zod222.z.object({
|
|
2876
|
-
left_side: import_zod222.z.object({
|
|
2877
|
-
pins: import_zod222.z.array(import_zod222.z.number()),
|
|
2878
|
-
direction: import_zod222.z.enum(["top-to-bottom", "bottom-to-top"]).optional()
|
|
2879
|
-
}).optional(),
|
|
2880
|
-
right_side: import_zod222.z.object({
|
|
2881
|
-
pins: import_zod222.z.array(import_zod222.z.number()),
|
|
2882
|
-
direction: import_zod222.z.enum(["top-to-bottom", "bottom-to-top"]).optional()
|
|
2883
|
-
}).optional(),
|
|
2884
|
-
top_side: import_zod222.z.object({
|
|
2885
|
-
pins: import_zod222.z.array(import_zod222.z.number()),
|
|
2886
|
-
direction: import_zod222.z.enum(["left-to-right", "right-to-left"]).optional()
|
|
2887
|
-
}).optional(),
|
|
2888
|
-
bottom_side: import_zod222.z.object({
|
|
2889
|
-
pins: import_zod222.z.array(import_zod222.z.number()),
|
|
2890
|
-
direction: import_zod222.z.enum(["left-to-right", "right-to-left"]).optional()
|
|
2891
|
-
}).optional()
|
|
2892
|
-
})
|
|
2893
|
-
]).optional(),
|
|
2894
|
-
port_labels: import_zod222.z.record(import_zod222.z.string()).optional()
|
|
2895
|
-
});
|
|
2896
|
-
var import_zod23 = require("zod");
|
|
2897
|
-
var schematic_line = import_zod23.z.object({
|
|
2898
|
-
type: import_zod23.z.literal("schematic_line"),
|
|
2899
|
-
schematic_component_id: import_zod23.z.string(),
|
|
2900
|
-
x1: distance2,
|
|
2901
|
-
x2: distance2,
|
|
2902
|
-
y1: distance2,
|
|
2903
|
-
y2: distance2
|
|
2904
|
-
});
|
|
2905
|
-
var import_zod24 = require("zod");
|
|
2906
|
-
var schematic_trace = import_zod24.z.object({
|
|
2907
|
-
type: import_zod24.z.literal("schematic_trace"),
|
|
2908
|
-
schematic_trace_id: import_zod24.z.string(),
|
|
2909
|
-
source_trace_id: import_zod24.z.string(),
|
|
2910
|
-
edges: import_zod24.z.array(
|
|
2911
|
-
import_zod24.z.object({
|
|
2912
|
-
from: import_zod24.z.object({
|
|
2913
|
-
x: import_zod24.z.number(),
|
|
2914
|
-
y: import_zod24.z.number()
|
|
2915
|
-
}),
|
|
2916
|
-
to: import_zod24.z.object({
|
|
2917
|
-
x: import_zod24.z.number(),
|
|
2918
|
-
y: import_zod24.z.number()
|
|
2919
|
-
}),
|
|
2920
|
-
from_schematic_port_id: import_zod24.z.string().optional(),
|
|
2921
|
-
to_schematic_port_id: import_zod24.z.string().optional()
|
|
2922
|
-
})
|
|
2923
|
-
)
|
|
2924
|
-
});
|
|
2925
|
-
var import_zod25 = require("zod");
|
|
2926
|
-
var schematic_text = import_zod25.z.object({
|
|
2927
|
-
type: import_zod25.z.literal("schematic_text"),
|
|
2928
|
-
schematic_component_id: import_zod25.z.string(),
|
|
2929
|
-
schematic_text_id: import_zod25.z.string(),
|
|
2930
|
-
text: import_zod25.z.string(),
|
|
2931
|
-
position: import_zod25.z.object({
|
|
2932
|
-
x: distance2,
|
|
2933
|
-
y: distance2
|
|
2934
|
-
}),
|
|
2935
|
-
rotation: import_zod25.z.number().default(0),
|
|
2936
|
-
anchor: import_zod25.z.enum(["center", "left", "right", "top", "bottom"]).default("center")
|
|
2937
|
-
});
|
|
2938
|
-
var import_zod26 = require("zod");
|
|
2939
|
-
var schematic_port = import_zod26.z.object({
|
|
2940
|
-
type: import_zod26.z.literal("schematic_port"),
|
|
2941
|
-
schematic_port_id: import_zod26.z.string(),
|
|
2942
|
-
source_port_id: import_zod26.z.string(),
|
|
2943
|
-
schematic_component_id: import_zod26.z.string().optional(),
|
|
2944
|
-
center: point,
|
|
2945
|
-
facing_direction: import_zod26.z.enum(["up", "down", "left", "right"]).optional()
|
|
2946
|
-
}).describe("Defines a port on a schematic component");
|
|
2947
|
-
var import_zod27 = require("zod");
|
|
2948
|
-
var schematic_net_label = import_zod27.z.object({
|
|
2949
|
-
type: import_zod27.z.literal("schematic_net_label"),
|
|
2950
|
-
source_net_id: import_zod27.z.string(),
|
|
2951
|
-
center: point,
|
|
2952
|
-
anchor_side: import_zod27.z.enum(["top", "bottom", "left", "right"]),
|
|
2953
|
-
text: import_zod27.z.string()
|
|
2954
|
-
});
|
|
2955
|
-
var import_zod28 = require("zod");
|
|
2956
|
-
var schematic_error = import_zod28.z.object({
|
|
2957
|
-
schematic_error_id: import_zod28.z.string(),
|
|
2958
|
-
type: import_zod28.z.literal("schematic_error"),
|
|
2959
|
-
// eventually each error type should be broken out into a dir of files
|
|
2960
|
-
error_type: import_zod28.z.literal("schematic_port_not_found"),
|
|
2961
|
-
message: import_zod28.z.string()
|
|
2962
|
-
}).describe("Defines a schematic error on the schematic");
|
|
2963
|
-
var import_zod29 = require("zod");
|
|
2964
|
-
var all_layers = [
|
|
2965
|
-
"top",
|
|
2966
|
-
"bottom",
|
|
2967
|
-
"inner1",
|
|
2968
|
-
"inner2",
|
|
2969
|
-
"inner3",
|
|
2970
|
-
"inner4",
|
|
2971
|
-
"inner5",
|
|
2972
|
-
"inner6"
|
|
2973
|
-
];
|
|
2974
|
-
var layer_string = import_zod29.z.enum(all_layers);
|
|
2975
|
-
var layer_ref = layer_string.or(
|
|
2976
|
-
import_zod29.z.object({
|
|
2977
|
-
name: layer_string
|
|
2978
|
-
})
|
|
2979
|
-
).transform((layer) => {
|
|
2980
|
-
if (typeof layer === "string") {
|
|
2981
|
-
return layer;
|
|
2982
|
-
}
|
|
2983
|
-
return layer.name;
|
|
2984
|
-
});
|
|
2985
|
-
var visible_layer = import_zod29.z.enum(["top", "bottom"]);
|
|
2986
|
-
var import_zod30 = require("zod");
|
|
2987
|
-
var pcb_route_hint = import_zod30.z.object({
|
|
2988
|
-
x: distance2,
|
|
2989
|
-
y: distance2,
|
|
2990
|
-
via: import_zod30.z.boolean().optional(),
|
|
2991
|
-
via_to_layer: layer_ref.optional()
|
|
2992
|
-
});
|
|
2993
|
-
var pcb_route_hints = import_zod30.z.array(pcb_route_hint);
|
|
2994
|
-
var import_zod31 = require("zod");
|
|
2995
|
-
var route_hint_point = import_zod31.z.object({
|
|
2996
|
-
x: distance2,
|
|
2997
|
-
y: distance2,
|
|
2998
|
-
via: import_zod31.z.boolean().optional(),
|
|
2999
|
-
to_layer: layer_ref.optional()
|
|
3000
|
-
});
|
|
3001
|
-
var import_zod322 = require("zod");
|
|
3002
|
-
var pcb_component = import_zod322.z.object({
|
|
3003
|
-
type: import_zod322.z.literal("pcb_component"),
|
|
3004
|
-
pcb_component_id: import_zod322.z.string(),
|
|
3005
|
-
source_component_id: import_zod322.z.string(),
|
|
3006
|
-
center: point,
|
|
3007
|
-
layer: layer_ref,
|
|
3008
|
-
rotation,
|
|
3009
|
-
width: length6,
|
|
3010
|
-
height: length6
|
|
3011
|
-
}).describe("Defines a component on the PCB");
|
|
3012
|
-
var import_zod33 = require("zod");
|
|
3013
|
-
var pcb_hole = import_zod33.z.object({
|
|
3014
|
-
type: import_zod33.z.literal("pcb_hole"),
|
|
3015
|
-
hole_shape: import_zod33.z.enum(["round", "square"]).default("round"),
|
|
3016
|
-
hole_diameter: import_zod33.z.number(),
|
|
3017
|
-
x: distance2,
|
|
3018
|
-
y: distance2
|
|
3019
|
-
}).or(
|
|
3020
|
-
import_zod33.z.object({
|
|
3021
|
-
type: import_zod33.z.literal("pcb_hole"),
|
|
3022
|
-
hole_shape: import_zod33.z.literal("oval"),
|
|
3023
|
-
hole_width: import_zod33.z.number(),
|
|
3024
|
-
hole_height: import_zod33.z.number(),
|
|
3025
|
-
x: distance2,
|
|
3026
|
-
y: distance2
|
|
3027
|
-
})
|
|
3028
|
-
).describe("Defines a hole on the PCB");
|
|
3029
|
-
var import_zod34 = require("zod");
|
|
3030
|
-
var pcb_plated_hole = import_zod34.z.object({
|
|
3031
|
-
type: import_zod34.z.literal("pcb_plated_hole"),
|
|
3032
|
-
shape: import_zod34.z.literal("circle"),
|
|
3033
|
-
outer_diameter: import_zod34.z.number(),
|
|
3034
|
-
hole_diameter: import_zod34.z.number(),
|
|
3035
|
-
x: distance2,
|
|
3036
|
-
y: distance2,
|
|
3037
|
-
layers: import_zod34.z.array(layer_ref),
|
|
3038
|
-
port_hints: import_zod34.z.array(import_zod34.z.string()).optional(),
|
|
3039
|
-
pcb_component_id: import_zod34.z.string().optional(),
|
|
3040
|
-
pcb_port_id: import_zod34.z.string().optional()
|
|
3041
|
-
}).or(
|
|
3042
|
-
import_zod34.z.object({
|
|
3043
|
-
type: import_zod34.z.literal("pcb_plated_hole"),
|
|
3044
|
-
shape: import_zod34.z.enum(["oval", "pill"]),
|
|
3045
|
-
outer_width: import_zod34.z.number(),
|
|
3046
|
-
outer_height: import_zod34.z.number(),
|
|
3047
|
-
hole_width: import_zod34.z.number(),
|
|
3048
|
-
hole_height: import_zod34.z.number(),
|
|
3049
|
-
x: distance2,
|
|
3050
|
-
y: distance2,
|
|
3051
|
-
layers: import_zod34.z.array(layer_ref),
|
|
3052
|
-
port_hints: import_zod34.z.array(import_zod34.z.string()).optional(),
|
|
3053
|
-
pcb_component_id: import_zod34.z.string().optional(),
|
|
3054
|
-
pcb_port_id: import_zod34.z.string().optional()
|
|
3055
|
-
})
|
|
3056
|
-
).describe("Defines a plated hole on the PCB");
|
|
3057
|
-
var import_zod35 = require("zod");
|
|
3058
|
-
var pcb_port = import_zod35.z.object({
|
|
3059
|
-
type: import_zod35.z.literal("pcb_port"),
|
|
3060
|
-
pcb_port_id: import_zod35.z.string(),
|
|
3061
|
-
source_port_id: import_zod35.z.string(),
|
|
3062
|
-
pcb_component_id: import_zod35.z.string(),
|
|
3063
|
-
x: distance2,
|
|
3064
|
-
y: distance2,
|
|
3065
|
-
layers: import_zod35.z.array(layer_ref)
|
|
3066
|
-
}).describe("Defines a port on the PCB");
|
|
3067
|
-
var import_zod36 = require("zod");
|
|
3068
|
-
var pcb_smtpad = import_zod36.z.union([
|
|
3069
|
-
import_zod36.z.object({
|
|
3070
|
-
pcb_smtpad_id: import_zod36.z.string(),
|
|
3071
|
-
type: import_zod36.z.literal("pcb_smtpad"),
|
|
3072
|
-
shape: import_zod36.z.literal("circle"),
|
|
3073
|
-
x: distance2,
|
|
3074
|
-
y: distance2,
|
|
3075
|
-
radius: import_zod36.z.number(),
|
|
3076
|
-
layer: layer_ref,
|
|
3077
|
-
port_hints: import_zod36.z.array(import_zod36.z.string()).optional(),
|
|
3078
|
-
pcb_component_id: import_zod36.z.string().optional(),
|
|
3079
|
-
pcb_port_id: import_zod36.z.string().optional()
|
|
3080
|
-
}),
|
|
3081
|
-
import_zod36.z.object({
|
|
3082
|
-
pcb_smtpad_id: import_zod36.z.string(),
|
|
3083
|
-
type: import_zod36.z.literal("pcb_smtpad"),
|
|
3084
|
-
shape: import_zod36.z.literal("rect"),
|
|
3085
|
-
x: distance2,
|
|
3086
|
-
y: distance2,
|
|
3087
|
-
width: import_zod36.z.number(),
|
|
3088
|
-
height: import_zod36.z.number(),
|
|
3089
|
-
layer: layer_ref,
|
|
3090
|
-
port_hints: import_zod36.z.array(import_zod36.z.string()).optional(),
|
|
3091
|
-
pcb_component_id: import_zod36.z.string().optional(),
|
|
3092
|
-
pcb_port_id: import_zod36.z.string().optional()
|
|
3093
|
-
})
|
|
3094
|
-
]).describe("Defines an SMT pad on the PCB");
|
|
3095
|
-
var import_zod37 = require("zod");
|
|
3096
|
-
var pcb_text = import_zod37.z.object({
|
|
3097
|
-
type: import_zod37.z.literal("pcb_text"),
|
|
3098
|
-
text: import_zod37.z.string(),
|
|
3099
|
-
x: distance2,
|
|
3100
|
-
y: distance2,
|
|
3101
|
-
align: import_zod37.z.enum(["bottom-left"]),
|
|
3102
|
-
width: distance2,
|
|
3103
|
-
height: distance2,
|
|
3104
|
-
lines: import_zod37.z.number()
|
|
3105
|
-
}).describe("Defines text on the PCB");
|
|
3106
|
-
var import_zod38 = require("zod");
|
|
3107
|
-
var pcb_trace = import_zod38.z.object({
|
|
3108
|
-
type: import_zod38.z.literal("pcb_trace"),
|
|
3109
|
-
source_trace_id: import_zod38.z.string().optional(),
|
|
3110
|
-
pcb_component_id: import_zod38.z.string().optional(),
|
|
3111
|
-
pcb_trace_id: import_zod38.z.string(),
|
|
3112
|
-
route: import_zod38.z.array(
|
|
3113
|
-
import_zod38.z.union([
|
|
3114
|
-
import_zod38.z.object({
|
|
3115
|
-
route_type: import_zod38.z.literal("wire"),
|
|
3116
|
-
x: distance2,
|
|
3117
|
-
y: distance2,
|
|
3118
|
-
width: distance2,
|
|
3119
|
-
start_pcb_port_id: import_zod38.z.string().optional(),
|
|
3120
|
-
end_pcb_port_id: import_zod38.z.string().optional(),
|
|
3121
|
-
layer: import_zod38.z.string()
|
|
3122
|
-
}),
|
|
3123
|
-
import_zod38.z.object({
|
|
3124
|
-
route_type: import_zod38.z.literal("via"),
|
|
3125
|
-
x: distance2,
|
|
3126
|
-
y: distance2,
|
|
3127
|
-
from_layer: import_zod38.z.string(),
|
|
3128
|
-
to_layer: import_zod38.z.string()
|
|
3129
|
-
})
|
|
3130
|
-
])
|
|
3131
|
-
)
|
|
3132
|
-
});
|
|
3133
|
-
var import_zod39 = require("zod");
|
|
3134
|
-
var pcb_trace_error = import_zod39.z.object({
|
|
3135
|
-
pcb_error_id: import_zod39.z.string(),
|
|
3136
|
-
type: import_zod39.z.literal("pcb_error"),
|
|
3137
|
-
error_type: import_zod39.z.literal("pcb_trace_error"),
|
|
3138
|
-
message: import_zod39.z.string(),
|
|
3139
|
-
pcb_trace_id: import_zod39.z.string(),
|
|
3140
|
-
source_trace_id: import_zod39.z.string(),
|
|
3141
|
-
pcb_component_ids: import_zod39.z.array(import_zod39.z.string()),
|
|
3142
|
-
pcb_port_ids: import_zod39.z.array(import_zod39.z.string())
|
|
3143
|
-
}).describe("Defines a trace error on the PCB");
|
|
3144
|
-
var import_zod40 = require("zod");
|
|
3145
|
-
var pcb_port_not_matched_error = import_zod40.z.object({
|
|
3146
|
-
pcb_error_id: import_zod40.z.string(),
|
|
3147
|
-
type: import_zod40.z.literal("pcb_error"),
|
|
3148
|
-
error_type: import_zod40.z.literal("pcb_port_not_matched_error"),
|
|
3149
|
-
message: import_zod40.z.string(),
|
|
3150
|
-
pcb_component_ids: import_zod40.z.array(import_zod40.z.string())
|
|
3151
|
-
}).describe("Defines a trace error on the PCB");
|
|
3152
|
-
var import_zod41 = require("zod");
|
|
3153
|
-
var pcb_via = import_zod41.z.object({
|
|
3154
|
-
type: import_zod41.z.literal("pcb_via"),
|
|
3155
|
-
x: distance2,
|
|
3156
|
-
y: distance2,
|
|
3157
|
-
outer_diameter: distance2.default("0.6mm"),
|
|
3158
|
-
hole_diameter: distance2.default("0.25mm"),
|
|
3159
|
-
/** @deprecated */
|
|
3160
|
-
from_layer: layer_ref.optional(),
|
|
3161
|
-
/** @deprecated */
|
|
3162
|
-
to_layer: layer_ref.optional(),
|
|
3163
|
-
layers: import_zod41.z.array(layer_ref)
|
|
3164
|
-
}).describe("Defines a via on the PCB");
|
|
3165
|
-
var import_zod422 = require("zod");
|
|
3166
|
-
var pcb_board = import_zod422.z.object({
|
|
3167
|
-
type: import_zod422.z.literal("pcb_board"),
|
|
3168
|
-
width: length6,
|
|
3169
|
-
height: length6,
|
|
3170
|
-
center: point
|
|
3171
|
-
}).describe("Defines the board outline of the PCB");
|
|
3172
|
-
var import_zod43 = require("zod");
|
|
3173
|
-
var pcb_placement_error = import_zod43.z.object({
|
|
3174
|
-
pcb_error_id: import_zod43.z.string(),
|
|
3175
|
-
type: import_zod43.z.literal("pcb_error"),
|
|
3176
|
-
error_type: import_zod43.z.literal("pcb_placement_error"),
|
|
3177
|
-
message: import_zod43.z.string()
|
|
3178
|
-
}).describe("Defines a placement error on the PCB");
|
|
3179
|
-
var import_zod44 = require("zod");
|
|
3180
|
-
var pcb_trace_hint = import_zod44.z.object({
|
|
3181
|
-
pcb_trace_hint_id: import_zod44.z.string(),
|
|
3182
|
-
type: import_zod44.z.literal("pcb_trace_hint"),
|
|
3183
|
-
pcb_port_id: import_zod44.z.string(),
|
|
3184
|
-
pcb_component_id: import_zod44.z.string(),
|
|
3185
|
-
route: import_zod44.z.array(route_hint_point)
|
|
3186
|
-
}).describe("A hint that can be used to generate a PCB trace");
|
|
3187
|
-
var import_zod45 = require("zod");
|
|
3188
|
-
var pcb_silkscreen_line = import_zod45.z.object({
|
|
3189
|
-
type: import_zod45.z.literal("pcb_silkscreen_line"),
|
|
3190
|
-
pcb_silkscreen_line_id: import_zod45.z.string(),
|
|
3191
|
-
pcb_component_id: import_zod45.z.string(),
|
|
3192
|
-
stroke_width: distance2.default("0.1mm"),
|
|
3193
|
-
x1: distance2,
|
|
3194
|
-
y1: distance2,
|
|
3195
|
-
x2: distance2,
|
|
3196
|
-
y2: distance2,
|
|
3197
|
-
layer: visible_layer
|
|
3198
|
-
}).describe("Defines a silkscreen line on the PCB");
|
|
3199
|
-
var import_zod46 = require("zod");
|
|
3200
|
-
var pcb_silkscreen_path = import_zod46.z.object({
|
|
3201
|
-
type: import_zod46.z.literal("pcb_silkscreen_path"),
|
|
3202
|
-
pcb_silkscreen_path_id: import_zod46.z.string(),
|
|
3203
|
-
pcb_component_id: import_zod46.z.string(),
|
|
3204
|
-
layer: visible_layer,
|
|
3205
|
-
route: import_zod46.z.array(point),
|
|
3206
|
-
stroke_width: length6
|
|
3207
|
-
}).describe("Defines a silkscreen path on the PCB");
|
|
3208
|
-
var import_zod47 = require("zod");
|
|
3209
|
-
var pcb_silkscreen_text = import_zod47.z.object({
|
|
3210
|
-
type: import_zod47.z.literal("pcb_silkscreen_text"),
|
|
3211
|
-
font: import_zod47.z.literal("tscircuit2024").default("tscircuit2024"),
|
|
3212
|
-
font_size: distance2.default("0.2mm"),
|
|
3213
|
-
pcb_component_id: import_zod47.z.string(),
|
|
3214
|
-
text: import_zod47.z.string(),
|
|
3215
|
-
layer: visible_layer,
|
|
3216
|
-
anchor_position: point.default({ x: 0, y: 0 }),
|
|
3217
|
-
anchor_alignment: import_zod47.z.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center")
|
|
3218
|
-
}).describe("Defines silkscreen text on the PCB");
|
|
3219
|
-
var import_zod48 = require("zod");
|
|
3220
|
-
var pcb_silkscreen_rect = import_zod48.z.object({
|
|
3221
|
-
type: import_zod48.z.literal("pcb_silkscreen_rect"),
|
|
3222
|
-
pcb_silkscreen_rect_id: import_zod48.z.string(),
|
|
3223
|
-
pcb_component_id: import_zod48.z.string(),
|
|
3224
|
-
center: point,
|
|
3225
|
-
width: distance2,
|
|
3226
|
-
height: distance2,
|
|
3227
|
-
layer: visible_layer
|
|
3228
|
-
}).describe("Defines a silkscreen rect on the PCB");
|
|
3229
|
-
var import_zod49 = require("zod");
|
|
3230
|
-
var pcb_silkscreen_circle = import_zod49.z.object({
|
|
3231
|
-
type: import_zod49.z.literal("pcb_silkscreen_circle"),
|
|
3232
|
-
pcb_silkscreen_circle_id: import_zod49.z.string(),
|
|
3233
|
-
pcb_component_id: import_zod49.z.string(),
|
|
3234
|
-
center: point,
|
|
3235
|
-
radius: distance2,
|
|
3236
|
-
layer: visible_layer
|
|
3237
|
-
}).describe("Defines a silkscreen circle on the PCB");
|
|
3238
|
-
var import_zod50 = require("zod");
|
|
3239
|
-
var pcb_silkscreen_oval = import_zod50.z.object({
|
|
3240
|
-
type: import_zod50.z.literal("pcb_silkscreen_oval"),
|
|
3241
|
-
pcb_silkscreen_oval_id: import_zod50.z.string(),
|
|
3242
|
-
pcb_component_id: import_zod50.z.string(),
|
|
3243
|
-
center: point,
|
|
3244
|
-
radius_x: distance2,
|
|
3245
|
-
radius_y: distance2,
|
|
3246
|
-
layer: visible_layer
|
|
3247
|
-
}).describe("Defines a silkscreen oval on the PCB");
|
|
3248
|
-
var import_zod51 = require("zod");
|
|
3249
|
-
var pcb_fabrication_note_text = import_zod51.z.object({
|
|
3250
|
-
type: import_zod51.z.literal("pcb_fabrication_note_text"),
|
|
3251
|
-
font: import_zod51.z.literal("tscircuit2024").default("tscircuit2024"),
|
|
3252
|
-
font_size: distance2.default("1mm"),
|
|
3253
|
-
pcb_component_id: import_zod51.z.string(),
|
|
3254
|
-
text: import_zod51.z.string(),
|
|
3255
|
-
layer: visible_layer,
|
|
3256
|
-
anchor_position: point.default({ x: 0, y: 0 }),
|
|
3257
|
-
anchor_alignment: import_zod51.z.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center")
|
|
3258
|
-
}).describe(
|
|
3259
|
-
"Defines a fabrication note in text on the PCB, useful for leaving notes for assemblers or fabricators"
|
|
3260
|
-
);
|
|
3261
|
-
var import_zod522 = require("zod");
|
|
3262
|
-
var pcb_fabrication_note_path = import_zod522.z.object({
|
|
3263
|
-
type: import_zod522.z.literal("pcb_fabrication_note_path"),
|
|
3264
|
-
fabrication_note_path_id: import_zod522.z.string(),
|
|
3265
|
-
pcb_component_id: import_zod522.z.string(),
|
|
3266
|
-
layer: visible_layer,
|
|
3267
|
-
route: import_zod522.z.array(point),
|
|
3268
|
-
stroke_width: length6
|
|
3269
|
-
}).describe(
|
|
3270
|
-
"Defines a fabrication path on the PCB for fabricators or assemblers"
|
|
3271
|
-
);
|
|
3272
|
-
var import_zod53 = require("zod");
|
|
3273
|
-
var cad_component = import_zod53.z.object({
|
|
3274
|
-
type: import_zod53.z.literal("cad_component"),
|
|
3275
|
-
cad_component_id: import_zod53.z.string(),
|
|
3276
|
-
pcb_component_id: import_zod53.z.string(),
|
|
3277
|
-
source_component_id: import_zod53.z.string(),
|
|
3278
|
-
position: point3,
|
|
3279
|
-
rotation: point3.optional(),
|
|
3280
|
-
size: point3.optional(),
|
|
3281
|
-
layer: layer_ref.optional(),
|
|
3282
|
-
// These are all ways to generate/load the 3d model
|
|
3283
|
-
footprinter_string: import_zod53.z.string().optional(),
|
|
3284
|
-
model_obj_url: import_zod53.z.string().optional(),
|
|
3285
|
-
model_stl_url: import_zod53.z.string().optional(),
|
|
3286
|
-
model_3mf_url: import_zod53.z.string().optional(),
|
|
3287
|
-
model_jscad: import_zod53.z.array(import_zod53.z.any()).optional()
|
|
3288
|
-
}).describe("Defines a component on the PCB");
|
|
3289
|
-
var import_zod54 = require("zod");
|
|
3290
|
-
var any_soup_element = import_zod54.z.union([
|
|
3291
|
-
source_trace,
|
|
3292
|
-
source_port,
|
|
3293
|
-
any_source_component,
|
|
3294
|
-
source_led,
|
|
3295
|
-
source_net,
|
|
3296
|
-
source_group,
|
|
3297
|
-
source_simple_bug,
|
|
3298
|
-
source_simple_capacitor,
|
|
3299
|
-
source_simple_diode,
|
|
3300
|
-
source_simple_resistor,
|
|
3301
|
-
source_simple_power_source,
|
|
3302
|
-
pcb_component,
|
|
3303
|
-
pcb_hole,
|
|
3304
|
-
pcb_plated_hole,
|
|
3305
|
-
pcb_port,
|
|
3306
|
-
pcb_text,
|
|
3307
|
-
pcb_trace,
|
|
3308
|
-
pcb_via,
|
|
3309
|
-
pcb_smtpad,
|
|
3310
|
-
pcb_board,
|
|
3311
|
-
pcb_trace_hint,
|
|
3312
|
-
pcb_silkscreen_line,
|
|
3313
|
-
pcb_silkscreen_path,
|
|
3314
|
-
pcb_silkscreen_text,
|
|
3315
|
-
pcb_silkscreen_rect,
|
|
3316
|
-
pcb_silkscreen_circle,
|
|
3317
|
-
pcb_silkscreen_oval,
|
|
3318
|
-
pcb_trace_error,
|
|
3319
|
-
pcb_placement_error,
|
|
3320
|
-
pcb_port_not_matched_error,
|
|
3321
|
-
pcb_fabrication_note_path,
|
|
3322
|
-
pcb_fabrication_note_text,
|
|
3323
|
-
schematic_box,
|
|
3324
|
-
schematic_text,
|
|
3325
|
-
schematic_line,
|
|
3326
|
-
schematic_component,
|
|
3327
|
-
schematic_port,
|
|
3328
|
-
schematic_trace,
|
|
3329
|
-
schematic_path,
|
|
3330
|
-
schematic_error,
|
|
3331
|
-
schematic_net_label,
|
|
3332
|
-
cad_component
|
|
3333
|
-
]);
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
3334
17
|
}
|
|
3335
|
-
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
3336
29
|
|
|
3337
30
|
// src/index.ts
|
|
3338
31
|
var src_exports = {};
|
|
@@ -3391,7 +84,7 @@ var platedhole = (pn, x, y, id, od) => {
|
|
|
3391
84
|
|
|
3392
85
|
// src/fn/dip.ts
|
|
3393
86
|
var import_zod = require("zod");
|
|
3394
|
-
var import_soup =
|
|
87
|
+
var import_soup = require("@tscircuit/soup");
|
|
3395
88
|
var extendDipDef = (newDefaults) => import_zod.z.object({
|
|
3396
89
|
dip: import_zod.z.literal(true),
|
|
3397
90
|
num_pins: import_zod.z.number(),
|
|
@@ -3660,7 +353,7 @@ var ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
|
3660
353
|
|
|
3661
354
|
// src/fn/bga.ts
|
|
3662
355
|
var import_zod4 = require("zod");
|
|
3663
|
-
var import_soup2 =
|
|
356
|
+
var import_soup2 = require("@tscircuit/soup");
|
|
3664
357
|
|
|
3665
358
|
// src/helpers/zod/dim-2d.ts
|
|
3666
359
|
var import_zod2 = require("zod");
|
|
@@ -3797,7 +490,7 @@ ${JSON.stringify(
|
|
|
3797
490
|
|
|
3798
491
|
// src/fn/soic.ts
|
|
3799
492
|
var import_zod5 = require("zod");
|
|
3800
|
-
var import_soup3 =
|
|
493
|
+
var import_soup3 = require("@tscircuit/soup");
|
|
3801
494
|
var extendSoicDef = (newDefaults) => import_zod5.z.object({
|
|
3802
495
|
num_pins: import_zod5.z.number(),
|
|
3803
496
|
w: import_soup3.length.default(import_soup3.length.parse(newDefaults.w ?? "5.3mm")),
|
|
@@ -3875,7 +568,7 @@ var soicWithoutParsing = (params) => {
|
|
|
3875
568
|
|
|
3876
569
|
// src/fn/quad.ts
|
|
3877
570
|
var import_zod7 = require("zod");
|
|
3878
|
-
var import_soup4 =
|
|
571
|
+
var import_soup4 = require("@tscircuit/soup");
|
|
3879
572
|
|
|
3880
573
|
// src/helpers/zod/pin-order-specifier.ts
|
|
3881
574
|
var import_zod6 = require("zod");
|
|
@@ -4222,7 +915,8 @@ var ssop = (raw_params) => {
|
|
|
4222
915
|
// src/fn/tssop.ts
|
|
4223
916
|
var tssop_def = extendSoicDef({
|
|
4224
917
|
w: "6.1mm",
|
|
4225
|
-
p: "0.65mm"
|
|
918
|
+
p: "0.65mm",
|
|
919
|
+
legsoutside: true
|
|
4226
920
|
});
|
|
4227
921
|
var tssop = (raw_params) => {
|
|
4228
922
|
return soicWithoutParsing(tssop_def.parse(raw_params));
|
|
@@ -4315,7 +1009,7 @@ var dfn = (raw_params) => {
|
|
|
4315
1009
|
|
|
4316
1010
|
// src/fn/pinrow.ts
|
|
4317
1011
|
var import_zod9 = require("zod");
|
|
4318
|
-
var import_soup5 =
|
|
1012
|
+
var import_soup5 = require("@tscircuit/soup");
|
|
4319
1013
|
var pinrow_def = import_zod9.z.object({
|
|
4320
1014
|
num_pins: import_zod9.z.number(),
|
|
4321
1015
|
p: import_soup5.length.default("0.1in").describe("pitch"),
|