@osdk/maker-experimental 0.4.0-beta.1 → 0.4.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,60 @@
1
1
  # @osdk/maker-experimental
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 425cb92: Simulated release
8
+ - af4f3bf: Remove the following features for RC:
9
+ - Property formatting
10
+ - Branching
11
+ - Constant RDPs
12
+
13
+ - Updated dependencies [322c5bc]
14
+ - Updated dependencies [f7ae38a]
15
+ - Updated dependencies [486ef7e]
16
+ - Updated dependencies [ea077c6]
17
+ - Updated dependencies [3d7dc0a]
18
+ - Updated dependencies [2556c64]
19
+ - Updated dependencies [5a9cd8f]
20
+ - Updated dependencies [b307201]
21
+ - Updated dependencies [e7bf02a]
22
+ - Updated dependencies [a1ffb20]
23
+ - Updated dependencies [b959085]
24
+ - Updated dependencies [af4f3bf]
25
+ - Updated dependencies [e62c692]
26
+ - @osdk/api@2.6.0
27
+
28
+ ## 0.4.0-rc.2
29
+
30
+ ### Patch Changes
31
+
32
+ - af4f3bf: Remove the following features for RC:
33
+ - Property formatting
34
+ - Branching
35
+ - Constant RDPs
36
+
37
+ - Updated dependencies [af4f3bf]
38
+ - @osdk/api@2.6.0-rc.14
39
+
40
+ ## 0.3.0
41
+
42
+ ### Patch Changes
43
+
44
+ - 425cb92: Simulated release
45
+ - a6f49e9: Fix Maker Rid Generation
46
+ - Updated dependencies [322c5bc]
47
+ - Updated dependencies [7160276]
48
+ - Updated dependencies [7bdac45]
49
+ - Updated dependencies [37eb75b]
50
+ - Updated dependencies [7b97128]
51
+ - Updated dependencies [76905f5]
52
+ - Updated dependencies [20962bc]
53
+ - Updated dependencies [052a96b]
54
+ - Updated dependencies [ca1fabe]
55
+ - Updated dependencies [e48be06]
56
+ - @osdk/api@2.5.0
57
+
3
58
  ## 0.3.0-beta.5
4
59
 
5
60
  ### Minor Changes
@@ -2240,6 +2240,557 @@ function convertToPluralDisplayName(s2) {
2240
2240
  return s2 === void 0 || s2 == null ? "" : s2.endsWith("s") ? uppercaseFirstLetter(s2) : uppercaseFirstLetter(s2) + "s";
2241
2241
  }
2242
2242
 
2243
+ // ../../node_modules/.pnpm/outdent@0.8.0/node_modules/outdent/lib-module/index.js
2244
+ function noop() {
2245
+ }
2246
+ function createWeakMap() {
2247
+ if (typeof WeakMap !== "undefined") {
2248
+ return /* @__PURE__ */ new WeakMap();
2249
+ } else {
2250
+ return fakeSetOrMap();
2251
+ }
2252
+ }
2253
+ function fakeSetOrMap() {
2254
+ return {
2255
+ add: noop,
2256
+ delete: noop,
2257
+ get: noop,
2258
+ set: noop,
2259
+ has: function(k) {
2260
+ return false;
2261
+ }
2262
+ };
2263
+ }
2264
+ var hop = Object.prototype.hasOwnProperty;
2265
+ var has = function(obj, prop) {
2266
+ return hop.call(obj, prop);
2267
+ };
2268
+ function extend(target, source) {
2269
+ for (var prop in source) {
2270
+ if (has(source, prop)) {
2271
+ target[prop] = source[prop];
2272
+ }
2273
+ }
2274
+ return target;
2275
+ }
2276
+ var reLeadingNewline = /^[ \t]*(?:\r\n|\r|\n)/;
2277
+ var reTrailingNewline = /(?:\r\n|\r|\n)[ \t]*$/;
2278
+ var reStartsWithNewlineOrIsEmpty = /^(?:[\r\n]|$)/;
2279
+ var reDetectIndentation = /(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/;
2280
+ var reOnlyWhitespaceWithAtLeastOneNewline = /^[ \t]*[\r\n][ \t\r\n]*$/;
2281
+ function _outdentArray(strings, firstInterpolatedValueSetsIndentationLevel, options) {
2282
+ var indentationLevel = 0;
2283
+ var match = strings[0].match(reDetectIndentation);
2284
+ if (match) {
2285
+ indentationLevel = match[1].length;
2286
+ }
2287
+ var reSource = "(\\r\\n|\\r|\\n).{0," + indentationLevel + "}";
2288
+ var reMatchIndent = new RegExp(reSource, "g");
2289
+ if (firstInterpolatedValueSetsIndentationLevel) {
2290
+ strings = strings.slice(1);
2291
+ }
2292
+ var newline = options.newline, trimLeadingNewline = options.trimLeadingNewline, trimTrailingNewline = options.trimTrailingNewline;
2293
+ var normalizeNewlines = typeof newline === "string";
2294
+ var l2 = strings.length;
2295
+ var outdentedStrings = strings.map(function(v, i2) {
2296
+ v = v.replace(reMatchIndent, "$1");
2297
+ if (i2 === 0 && trimLeadingNewline) {
2298
+ v = v.replace(reLeadingNewline, "");
2299
+ }
2300
+ if (i2 === l2 - 1 && trimTrailingNewline) {
2301
+ v = v.replace(reTrailingNewline, "");
2302
+ }
2303
+ if (normalizeNewlines) {
2304
+ v = v.replace(/\r\n|\n|\r/g, function(_2) {
2305
+ return newline;
2306
+ });
2307
+ }
2308
+ return v;
2309
+ });
2310
+ return outdentedStrings;
2311
+ }
2312
+ function concatStringsAndValues(strings, values) {
2313
+ var ret = "";
2314
+ for (var i2 = 0, l2 = strings.length; i2 < l2; i2++) {
2315
+ ret += strings[i2];
2316
+ if (i2 < l2 - 1) {
2317
+ ret += values[i2];
2318
+ }
2319
+ }
2320
+ return ret;
2321
+ }
2322
+ function isTemplateStringsArray(v) {
2323
+ return has(v, "raw") && has(v, "length");
2324
+ }
2325
+ function createInstance(options) {
2326
+ var arrayAutoIndentCache = createWeakMap();
2327
+ var arrayFirstInterpSetsIndentCache = createWeakMap();
2328
+ function outdent(stringsOrOptions) {
2329
+ var values = [];
2330
+ for (var _i = 1; _i < arguments.length; _i++) {
2331
+ values[_i - 1] = arguments[_i];
2332
+ }
2333
+ if (isTemplateStringsArray(stringsOrOptions)) {
2334
+ var strings = stringsOrOptions;
2335
+ var firstInterpolatedValueSetsIndentationLevel = (values[0] === outdent || values[0] === defaultOutdent) && reOnlyWhitespaceWithAtLeastOneNewline.test(strings[0]) && reStartsWithNewlineOrIsEmpty.test(strings[1]);
2336
+ var cache = firstInterpolatedValueSetsIndentationLevel ? arrayFirstInterpSetsIndentCache : arrayAutoIndentCache;
2337
+ var renderedArray = cache.get(strings);
2338
+ if (!renderedArray) {
2339
+ renderedArray = _outdentArray(strings, firstInterpolatedValueSetsIndentationLevel, options);
2340
+ cache.set(strings, renderedArray);
2341
+ }
2342
+ if (values.length === 0) {
2343
+ return renderedArray[0];
2344
+ }
2345
+ var rendered = concatStringsAndValues(renderedArray, firstInterpolatedValueSetsIndentationLevel ? values.slice(1) : values);
2346
+ return rendered;
2347
+ } else {
2348
+ return createInstance(extend(extend({}, options), stringsOrOptions || {}));
2349
+ }
2350
+ }
2351
+ var fullOutdent = extend(outdent, {
2352
+ string: function(str) {
2353
+ return _outdentArray([str], false, options)[0];
2354
+ }
2355
+ });
2356
+ return fullOutdent;
2357
+ }
2358
+ var defaultOutdent = createInstance({
2359
+ trimLeadingNewline: true,
2360
+ trimTrailingNewline: true
2361
+ });
2362
+ if (typeof module !== "undefined") {
2363
+ try {
2364
+ module.exports = defaultOutdent;
2365
+ Object.defineProperty(defaultOutdent, "__esModule", {
2366
+ value: true
2367
+ });
2368
+ defaultOutdent.default = defaultOutdent;
2369
+ defaultOutdent.outdent = defaultOutdent;
2370
+ } catch (e) {
2371
+ }
2372
+ }
2373
+
2374
+ // ../../node_modules/.pnpm/mustache@4.2.0/node_modules/mustache/mustache.mjs
2375
+ var objectToString = Object.prototype.toString;
2376
+ var isArray = Array.isArray || function isArrayPolyfill(object) {
2377
+ return objectToString.call(object) === "[object Array]";
2378
+ };
2379
+ function isFunction2(object) {
2380
+ return typeof object === "function";
2381
+ }
2382
+ function typeStr(obj) {
2383
+ return isArray(obj) ? "array" : typeof obj;
2384
+ }
2385
+ function escapeRegExp(string) {
2386
+ return string.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
2387
+ }
2388
+ function hasProperty(obj, propName) {
2389
+ return obj != null && typeof obj === "object" && propName in obj;
2390
+ }
2391
+ function primitiveHasOwnProperty(primitive, propName) {
2392
+ return primitive != null && typeof primitive !== "object" && primitive.hasOwnProperty && primitive.hasOwnProperty(propName);
2393
+ }
2394
+ var regExpTest = RegExp.prototype.test;
2395
+ function testRegExp(re, string) {
2396
+ return regExpTest.call(re, string);
2397
+ }
2398
+ var nonSpaceRe = /\S/;
2399
+ function isWhitespace(string) {
2400
+ return !testRegExp(nonSpaceRe, string);
2401
+ }
2402
+ var entityMap = {
2403
+ "&": "&amp;",
2404
+ "<": "&lt;",
2405
+ ">": "&gt;",
2406
+ '"': "&quot;",
2407
+ "'": "&#39;",
2408
+ "/": "&#x2F;",
2409
+ "`": "&#x60;",
2410
+ "=": "&#x3D;"
2411
+ };
2412
+ function escapeHtml(string) {
2413
+ return String(string).replace(/[&<>"'`=\/]/g, function fromEntityMap(s2) {
2414
+ return entityMap[s2];
2415
+ });
2416
+ }
2417
+ var whiteRe = /\s*/;
2418
+ var spaceRe = /\s+/;
2419
+ var equalsRe = /\s*=/;
2420
+ var curlyRe = /\s*\}/;
2421
+ var tagRe = /#|\^|\/|>|\{|&|=|!/;
2422
+ function parseTemplate(template, tags) {
2423
+ if (!template) return [];
2424
+ var lineHasNonSpace = false;
2425
+ var sections = [];
2426
+ var tokens = [];
2427
+ var spaces = [];
2428
+ var hasTag = false;
2429
+ var nonSpace = false;
2430
+ var indentation = "";
2431
+ var tagIndex = 0;
2432
+ function stripSpace() {
2433
+ if (hasTag && !nonSpace) {
2434
+ while (spaces.length) delete tokens[spaces.pop()];
2435
+ } else {
2436
+ spaces = [];
2437
+ }
2438
+ hasTag = false;
2439
+ nonSpace = false;
2440
+ }
2441
+ var openingTagRe, closingTagRe, closingCurlyRe;
2442
+ function compileTags(tagsToCompile) {
2443
+ if (typeof tagsToCompile === "string") tagsToCompile = tagsToCompile.split(spaceRe, 2);
2444
+ if (!isArray(tagsToCompile) || tagsToCompile.length !== 2) throw new Error("Invalid tags: " + tagsToCompile);
2445
+ openingTagRe = new RegExp(escapeRegExp(tagsToCompile[0]) + "\\s*");
2446
+ closingTagRe = new RegExp("\\s*" + escapeRegExp(tagsToCompile[1]));
2447
+ closingCurlyRe = new RegExp("\\s*" + escapeRegExp("}" + tagsToCompile[1]));
2448
+ }
2449
+ compileTags(tags || mustache.tags);
2450
+ var scanner = new Scanner(template);
2451
+ var start, type, value, chr, token, openSection;
2452
+ while (!scanner.eos()) {
2453
+ start = scanner.pos;
2454
+ value = scanner.scanUntil(openingTagRe);
2455
+ if (value) {
2456
+ for (var i2 = 0, valueLength = value.length; i2 < valueLength; ++i2) {
2457
+ chr = value.charAt(i2);
2458
+ if (isWhitespace(chr)) {
2459
+ spaces.push(tokens.length);
2460
+ indentation += chr;
2461
+ } else {
2462
+ nonSpace = true;
2463
+ lineHasNonSpace = true;
2464
+ indentation += " ";
2465
+ }
2466
+ tokens.push(["text", chr, start, start + 1]);
2467
+ start += 1;
2468
+ if (chr === "\n") {
2469
+ stripSpace();
2470
+ indentation = "";
2471
+ tagIndex = 0;
2472
+ lineHasNonSpace = false;
2473
+ }
2474
+ }
2475
+ }
2476
+ if (!scanner.scan(openingTagRe)) break;
2477
+ hasTag = true;
2478
+ type = scanner.scan(tagRe) || "name";
2479
+ scanner.scan(whiteRe);
2480
+ if (type === "=") {
2481
+ value = scanner.scanUntil(equalsRe);
2482
+ scanner.scan(equalsRe);
2483
+ scanner.scanUntil(closingTagRe);
2484
+ } else if (type === "{") {
2485
+ value = scanner.scanUntil(closingCurlyRe);
2486
+ scanner.scan(curlyRe);
2487
+ scanner.scanUntil(closingTagRe);
2488
+ type = "&";
2489
+ } else {
2490
+ value = scanner.scanUntil(closingTagRe);
2491
+ }
2492
+ if (!scanner.scan(closingTagRe)) throw new Error("Unclosed tag at " + scanner.pos);
2493
+ if (type == ">") {
2494
+ token = [type, value, start, scanner.pos, indentation, tagIndex, lineHasNonSpace];
2495
+ } else {
2496
+ token = [type, value, start, scanner.pos];
2497
+ }
2498
+ tagIndex++;
2499
+ tokens.push(token);
2500
+ if (type === "#" || type === "^") {
2501
+ sections.push(token);
2502
+ } else if (type === "/") {
2503
+ openSection = sections.pop();
2504
+ if (!openSection) throw new Error('Unopened section "' + value + '" at ' + start);
2505
+ if (openSection[1] !== value) throw new Error('Unclosed section "' + openSection[1] + '" at ' + start);
2506
+ } else if (type === "name" || type === "{" || type === "&") {
2507
+ nonSpace = true;
2508
+ } else if (type === "=") {
2509
+ compileTags(value);
2510
+ }
2511
+ }
2512
+ stripSpace();
2513
+ openSection = sections.pop();
2514
+ if (openSection) throw new Error('Unclosed section "' + openSection[1] + '" at ' + scanner.pos);
2515
+ return nestTokens(squashTokens(tokens));
2516
+ }
2517
+ function squashTokens(tokens) {
2518
+ var squashedTokens = [];
2519
+ var token, lastToken;
2520
+ for (var i2 = 0, numTokens = tokens.length; i2 < numTokens; ++i2) {
2521
+ token = tokens[i2];
2522
+ if (token) {
2523
+ if (token[0] === "text" && lastToken && lastToken[0] === "text") {
2524
+ lastToken[1] += token[1];
2525
+ lastToken[3] = token[3];
2526
+ } else {
2527
+ squashedTokens.push(token);
2528
+ lastToken = token;
2529
+ }
2530
+ }
2531
+ }
2532
+ return squashedTokens;
2533
+ }
2534
+ function nestTokens(tokens) {
2535
+ var nestedTokens = [];
2536
+ var collector = nestedTokens;
2537
+ var sections = [];
2538
+ var token, section;
2539
+ for (var i2 = 0, numTokens = tokens.length; i2 < numTokens; ++i2) {
2540
+ token = tokens[i2];
2541
+ switch (token[0]) {
2542
+ case "#":
2543
+ case "^":
2544
+ collector.push(token);
2545
+ sections.push(token);
2546
+ collector = token[4] = [];
2547
+ break;
2548
+ case "/":
2549
+ section = sections.pop();
2550
+ section[5] = token[2];
2551
+ collector = sections.length > 0 ? sections[sections.length - 1][4] : nestedTokens;
2552
+ break;
2553
+ default:
2554
+ collector.push(token);
2555
+ }
2556
+ }
2557
+ return nestedTokens;
2558
+ }
2559
+ function Scanner(string) {
2560
+ this.string = string;
2561
+ this.tail = string;
2562
+ this.pos = 0;
2563
+ }
2564
+ Scanner.prototype.eos = function eos() {
2565
+ return this.tail === "";
2566
+ };
2567
+ Scanner.prototype.scan = function scan(re) {
2568
+ var match = this.tail.match(re);
2569
+ if (!match || match.index !== 0) return "";
2570
+ var string = match[0];
2571
+ this.tail = this.tail.substring(string.length);
2572
+ this.pos += string.length;
2573
+ return string;
2574
+ };
2575
+ Scanner.prototype.scanUntil = function scanUntil(re) {
2576
+ var index = this.tail.search(re), match;
2577
+ switch (index) {
2578
+ case -1:
2579
+ match = this.tail;
2580
+ this.tail = "";
2581
+ break;
2582
+ case 0:
2583
+ match = "";
2584
+ break;
2585
+ default:
2586
+ match = this.tail.substring(0, index);
2587
+ this.tail = this.tail.substring(index);
2588
+ }
2589
+ this.pos += match.length;
2590
+ return match;
2591
+ };
2592
+ function Context(view, parentContext) {
2593
+ this.view = view;
2594
+ this.cache = {
2595
+ ".": this.view
2596
+ };
2597
+ this.parent = parentContext;
2598
+ }
2599
+ Context.prototype.push = function push(view) {
2600
+ return new Context(view, this);
2601
+ };
2602
+ Context.prototype.lookup = function lookup(name) {
2603
+ var cache = this.cache;
2604
+ var value;
2605
+ if (cache.hasOwnProperty(name)) {
2606
+ value = cache[name];
2607
+ } else {
2608
+ var context = this, intermediateValue, names, index, lookupHit = false;
2609
+ while (context) {
2610
+ if (name.indexOf(".") > 0) {
2611
+ intermediateValue = context.view;
2612
+ names = name.split(".");
2613
+ index = 0;
2614
+ while (intermediateValue != null && index < names.length) {
2615
+ if (index === names.length - 1) lookupHit = hasProperty(intermediateValue, names[index]) || primitiveHasOwnProperty(intermediateValue, names[index]);
2616
+ intermediateValue = intermediateValue[names[index++]];
2617
+ }
2618
+ } else {
2619
+ intermediateValue = context.view[name];
2620
+ lookupHit = hasProperty(context.view, name);
2621
+ }
2622
+ if (lookupHit) {
2623
+ value = intermediateValue;
2624
+ break;
2625
+ }
2626
+ context = context.parent;
2627
+ }
2628
+ cache[name] = value;
2629
+ }
2630
+ if (isFunction2(value)) value = value.call(this.view);
2631
+ return value;
2632
+ };
2633
+ function Writer() {
2634
+ this.templateCache = {
2635
+ _cache: {},
2636
+ set: function set(key, value) {
2637
+ this._cache[key] = value;
2638
+ },
2639
+ get: function get(key) {
2640
+ return this._cache[key];
2641
+ },
2642
+ clear: function clear() {
2643
+ this._cache = {};
2644
+ }
2645
+ };
2646
+ }
2647
+ Writer.prototype.clearCache = function clearCache() {
2648
+ if (typeof this.templateCache !== "undefined") {
2649
+ this.templateCache.clear();
2650
+ }
2651
+ };
2652
+ Writer.prototype.parse = function parse(template, tags) {
2653
+ var cache = this.templateCache;
2654
+ var cacheKey = template + ":" + (tags || mustache.tags).join(":");
2655
+ var isCacheEnabled = typeof cache !== "undefined";
2656
+ var tokens = isCacheEnabled ? cache.get(cacheKey) : void 0;
2657
+ if (tokens == void 0) {
2658
+ tokens = parseTemplate(template, tags);
2659
+ isCacheEnabled && cache.set(cacheKey, tokens);
2660
+ }
2661
+ return tokens;
2662
+ };
2663
+ Writer.prototype.render = function render(template, view, partials, config) {
2664
+ var tags = this.getConfigTags(config);
2665
+ var tokens = this.parse(template, tags);
2666
+ var context = view instanceof Context ? view : new Context(view, void 0);
2667
+ return this.renderTokens(tokens, context, partials, template, config);
2668
+ };
2669
+ Writer.prototype.renderTokens = function renderTokens(tokens, context, partials, originalTemplate, config) {
2670
+ var buffer = "";
2671
+ var token, symbol, value;
2672
+ for (var i2 = 0, numTokens = tokens.length; i2 < numTokens; ++i2) {
2673
+ value = void 0;
2674
+ token = tokens[i2];
2675
+ symbol = token[0];
2676
+ if (symbol === "#") value = this.renderSection(token, context, partials, originalTemplate, config);
2677
+ else if (symbol === "^") value = this.renderInverted(token, context, partials, originalTemplate, config);
2678
+ else if (symbol === ">") value = this.renderPartial(token, context, partials, config);
2679
+ else if (symbol === "&") value = this.unescapedValue(token, context);
2680
+ else if (symbol === "name") value = this.escapedValue(token, context, config);
2681
+ else if (symbol === "text") value = this.rawValue(token);
2682
+ if (value !== void 0) buffer += value;
2683
+ }
2684
+ return buffer;
2685
+ };
2686
+ Writer.prototype.renderSection = function renderSection(token, context, partials, originalTemplate, config) {
2687
+ var self = this;
2688
+ var buffer = "";
2689
+ var value = context.lookup(token[1]);
2690
+ function subRender(template) {
2691
+ return self.render(template, context, partials, config);
2692
+ }
2693
+ if (!value) return;
2694
+ if (isArray(value)) {
2695
+ for (var j = 0, valueLength = value.length; j < valueLength; ++j) {
2696
+ buffer += this.renderTokens(token[4], context.push(value[j]), partials, originalTemplate, config);
2697
+ }
2698
+ } else if (typeof value === "object" || typeof value === "string" || typeof value === "number") {
2699
+ buffer += this.renderTokens(token[4], context.push(value), partials, originalTemplate, config);
2700
+ } else if (isFunction2(value)) {
2701
+ if (typeof originalTemplate !== "string") throw new Error("Cannot use higher-order sections without the original template");
2702
+ value = value.call(context.view, originalTemplate.slice(token[3], token[5]), subRender);
2703
+ if (value != null) buffer += value;
2704
+ } else {
2705
+ buffer += this.renderTokens(token[4], context, partials, originalTemplate, config);
2706
+ }
2707
+ return buffer;
2708
+ };
2709
+ Writer.prototype.renderInverted = function renderInverted(token, context, partials, originalTemplate, config) {
2710
+ var value = context.lookup(token[1]);
2711
+ if (!value || isArray(value) && value.length === 0) return this.renderTokens(token[4], context, partials, originalTemplate, config);
2712
+ };
2713
+ Writer.prototype.indentPartial = function indentPartial(partial, indentation, lineHasNonSpace) {
2714
+ var filteredIndentation = indentation.replace(/[^ \t]/g, "");
2715
+ var partialByNl = partial.split("\n");
2716
+ for (var i2 = 0; i2 < partialByNl.length; i2++) {
2717
+ if (partialByNl[i2].length && (i2 > 0 || !lineHasNonSpace)) {
2718
+ partialByNl[i2] = filteredIndentation + partialByNl[i2];
2719
+ }
2720
+ }
2721
+ return partialByNl.join("\n");
2722
+ };
2723
+ Writer.prototype.renderPartial = function renderPartial(token, context, partials, config) {
2724
+ if (!partials) return;
2725
+ var tags = this.getConfigTags(config);
2726
+ var value = isFunction2(partials) ? partials(token[1]) : partials[token[1]];
2727
+ if (value != null) {
2728
+ var lineHasNonSpace = token[6];
2729
+ var tagIndex = token[5];
2730
+ var indentation = token[4];
2731
+ var indentedValue = value;
2732
+ if (tagIndex == 0 && indentation) {
2733
+ indentedValue = this.indentPartial(value, indentation, lineHasNonSpace);
2734
+ }
2735
+ var tokens = this.parse(indentedValue, tags);
2736
+ return this.renderTokens(tokens, context, partials, indentedValue, config);
2737
+ }
2738
+ };
2739
+ Writer.prototype.unescapedValue = function unescapedValue(token, context) {
2740
+ var value = context.lookup(token[1]);
2741
+ if (value != null) return value;
2742
+ };
2743
+ Writer.prototype.escapedValue = function escapedValue(token, context, config) {
2744
+ var escape = this.getConfigEscape(config) || mustache.escape;
2745
+ var value = context.lookup(token[1]);
2746
+ if (value != null) return typeof value === "number" && escape === mustache.escape ? String(value) : escape(value);
2747
+ };
2748
+ Writer.prototype.rawValue = function rawValue(token) {
2749
+ return token[1];
2750
+ };
2751
+ Writer.prototype.getConfigTags = function getConfigTags(config) {
2752
+ if (isArray(config)) {
2753
+ return config;
2754
+ } else if (config && typeof config === "object") {
2755
+ return config.tags;
2756
+ } else {
2757
+ return void 0;
2758
+ }
2759
+ };
2760
+ Writer.prototype.getConfigEscape = function getConfigEscape(config) {
2761
+ if (config && typeof config === "object" && !isArray(config)) {
2762
+ return config.escape;
2763
+ } else {
2764
+ return void 0;
2765
+ }
2766
+ };
2767
+ var mustache = {
2768
+ tags: ["{{", "}}"],
2769
+ clearCache: void 0,
2770
+ escape: void 0,
2771
+ parse: void 0,
2772
+ render: void 0,
2773
+ Scanner: void 0,
2774
+ Context: void 0,
2775
+ Writer: void 0};
2776
+ var defaultWriter = new Writer();
2777
+ mustache.clearCache = function clearCache2() {
2778
+ return defaultWriter.clearCache();
2779
+ };
2780
+ mustache.parse = function parse2(template, tags) {
2781
+ return defaultWriter.parse(template, tags);
2782
+ };
2783
+ mustache.render = function render2(template, view, partials, config) {
2784
+ if (typeof template !== "string") {
2785
+ throw new TypeError('Invalid template! Template should be a "string" but "' + typeStr(template) + '" was given as the first argument for mustache#render(template, view, partials)');
2786
+ }
2787
+ return defaultWriter.render(template, view, partials, config);
2788
+ };
2789
+ mustache.escape = escapeHtml;
2790
+ mustache.Scanner = Scanner;
2791
+ mustache.Context = Context;
2792
+ mustache.Writer = Writer;
2793
+
2243
2794
  // ../maker/build/esm/api/defineOntology.js
2244
2795
  var importedTypes;
2245
2796
 
@@ -2296,6 +2847,12 @@ yargs-parser/build/lib/index.js:
2296
2847
  * Copyright (c) 2016, Contributors
2297
2848
  * SPDX-License-Identifier: ISC
2298
2849
  *)
2850
+
2851
+ mustache/mustache.mjs:
2852
+ (*!
2853
+ * mustache.js - Logic-less {{mustache}} templates with JavaScript
2854
+ * http://github.com/janl/mustache.js
2855
+ *)
2299
2856
  */
2300
2857
 
2301
2858
  exports.defineImportObject = defineImportObject;