@qlover/fe-release 2.3.5 → 3.0.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/dist/index.cjs CHANGED
@@ -30,187 +30,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
30
  ));
31
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
32
 
33
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js
34
- var require_listCacheClear = __commonJS({
35
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js"(exports2, module2) {
36
- "use strict";
37
- function listCacheClear() {
38
- this.__data__ = [];
39
- this.size = 0;
40
- }
41
- module2.exports = listCacheClear;
42
- }
43
- });
44
-
45
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js
46
- var require_eq = __commonJS({
47
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js"(exports2, module2) {
48
- "use strict";
49
- function eq(value, other) {
50
- return value === other || value !== value && other !== other;
51
- }
52
- module2.exports = eq;
53
- }
54
- });
55
-
56
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js
57
- var require_assocIndexOf = __commonJS({
58
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js"(exports2, module2) {
59
- "use strict";
60
- var eq = require_eq();
61
- function assocIndexOf(array, key) {
62
- var length = array.length;
63
- while (length--) {
64
- if (eq(array[length][0], key)) {
65
- return length;
66
- }
67
- }
68
- return -1;
69
- }
70
- module2.exports = assocIndexOf;
71
- }
72
- });
73
-
74
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js
75
- var require_listCacheDelete = __commonJS({
76
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js"(exports2, module2) {
77
- "use strict";
78
- var assocIndexOf = require_assocIndexOf();
79
- var arrayProto = Array.prototype;
80
- var splice = arrayProto.splice;
81
- function listCacheDelete(key) {
82
- var data = this.__data__, index = assocIndexOf(data, key);
83
- if (index < 0) {
84
- return false;
85
- }
86
- var lastIndex = data.length - 1;
87
- if (index == lastIndex) {
88
- data.pop();
89
- } else {
90
- splice.call(data, index, 1);
91
- }
92
- --this.size;
93
- return true;
94
- }
95
- module2.exports = listCacheDelete;
96
- }
97
- });
98
-
99
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js
100
- var require_listCacheGet = __commonJS({
101
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js"(exports2, module2) {
102
- "use strict";
103
- var assocIndexOf = require_assocIndexOf();
104
- function listCacheGet(key) {
105
- var data = this.__data__, index = assocIndexOf(data, key);
106
- return index < 0 ? void 0 : data[index][1];
107
- }
108
- module2.exports = listCacheGet;
109
- }
110
- });
111
-
112
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js
113
- var require_listCacheHas = __commonJS({
114
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js"(exports2, module2) {
115
- "use strict";
116
- var assocIndexOf = require_assocIndexOf();
117
- function listCacheHas(key) {
118
- return assocIndexOf(this.__data__, key) > -1;
119
- }
120
- module2.exports = listCacheHas;
121
- }
122
- });
123
-
124
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js
125
- var require_listCacheSet = __commonJS({
126
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js"(exports2, module2) {
127
- "use strict";
128
- var assocIndexOf = require_assocIndexOf();
129
- function listCacheSet(key, value) {
130
- var data = this.__data__, index = assocIndexOf(data, key);
131
- if (index < 0) {
132
- ++this.size;
133
- data.push([key, value]);
134
- } else {
135
- data[index][1] = value;
136
- }
137
- return this;
138
- }
139
- module2.exports = listCacheSet;
140
- }
141
- });
142
-
143
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js
144
- var require_ListCache = __commonJS({
145
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js"(exports2, module2) {
146
- "use strict";
147
- var listCacheClear = require_listCacheClear();
148
- var listCacheDelete = require_listCacheDelete();
149
- var listCacheGet = require_listCacheGet();
150
- var listCacheHas = require_listCacheHas();
151
- var listCacheSet = require_listCacheSet();
152
- function ListCache(entries) {
153
- var index = -1, length = entries == null ? 0 : entries.length;
154
- this.clear();
155
- while (++index < length) {
156
- var entry = entries[index];
157
- this.set(entry[0], entry[1]);
158
- }
159
- }
160
- ListCache.prototype.clear = listCacheClear;
161
- ListCache.prototype["delete"] = listCacheDelete;
162
- ListCache.prototype.get = listCacheGet;
163
- ListCache.prototype.has = listCacheHas;
164
- ListCache.prototype.set = listCacheSet;
165
- module2.exports = ListCache;
166
- }
167
- });
168
-
169
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js
170
- var require_stackClear = __commonJS({
171
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js"(exports2, module2) {
172
- "use strict";
173
- var ListCache = require_ListCache();
174
- function stackClear() {
175
- this.__data__ = new ListCache();
176
- this.size = 0;
177
- }
178
- module2.exports = stackClear;
179
- }
180
- });
181
-
182
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js
183
- var require_stackDelete = __commonJS({
184
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js"(exports2, module2) {
185
- "use strict";
186
- function stackDelete(key) {
187
- var data = this.__data__, result = data["delete"](key);
188
- this.size = data.size;
189
- return result;
190
- }
191
- module2.exports = stackDelete;
192
- }
193
- });
194
-
195
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js
196
- var require_stackGet = __commonJS({
197
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js"(exports2, module2) {
198
- "use strict";
199
- function stackGet(key) {
200
- return this.__data__.get(key);
201
- }
202
- module2.exports = stackGet;
203
- }
204
- });
205
-
206
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js
207
- var require_stackHas = __commonJS({
208
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js"(exports2, module2) {
33
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js
34
+ var require_isArray = __commonJS({
35
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"(exports2, module2) {
209
36
  "use strict";
210
- function stackHas(key) {
211
- return this.__data__.has(key);
212
- }
213
- module2.exports = stackHas;
37
+ var isArray = Array.isArray;
38
+ module2.exports = isArray;
214
39
  }
215
40
  });
216
41
 
@@ -307,6 +132,53 @@ var require_baseGetTag = __commonJS({
307
132
  }
308
133
  });
309
134
 
135
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js
136
+ var require_isObjectLike = __commonJS({
137
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js"(exports2, module2) {
138
+ "use strict";
139
+ function isObjectLike(value) {
140
+ return value != null && typeof value == "object";
141
+ }
142
+ module2.exports = isObjectLike;
143
+ }
144
+ });
145
+
146
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js
147
+ var require_isSymbol = __commonJS({
148
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js"(exports2, module2) {
149
+ "use strict";
150
+ var baseGetTag = require_baseGetTag();
151
+ var isObjectLike = require_isObjectLike();
152
+ var symbolTag = "[object Symbol]";
153
+ function isSymbol(value) {
154
+ return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
155
+ }
156
+ module2.exports = isSymbol;
157
+ }
158
+ });
159
+
160
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKey.js
161
+ var require_isKey = __commonJS({
162
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKey.js"(exports2, module2) {
163
+ "use strict";
164
+ var isArray = require_isArray();
165
+ var isSymbol = require_isSymbol();
166
+ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
167
+ var reIsPlainProp = /^\w*$/;
168
+ function isKey(value, object) {
169
+ if (isArray(value)) {
170
+ return false;
171
+ }
172
+ var type = typeof value;
173
+ if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) {
174
+ return true;
175
+ }
176
+ return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
177
+ }
178
+ module2.exports = isKey;
179
+ }
180
+ });
181
+
310
182
  // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js
311
183
  var require_isObject = __commonJS({
312
184
  "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js"(exports2, module2) {
@@ -442,17 +314,6 @@ var require_getNative = __commonJS({
442
314
  }
443
315
  });
444
316
 
445
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js
446
- var require_Map = __commonJS({
447
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js"(exports2, module2) {
448
- "use strict";
449
- var getNative = require_getNative();
450
- var root = require_root();
451
- var Map = getNative(root, "Map");
452
- module2.exports = Map;
453
- }
454
- });
455
-
456
317
  // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js
457
318
  var require_nativeCreate = __commonJS({
458
319
  "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js"(exports2, module2) {
@@ -566,16 +427,163 @@ var require_Hash = __commonJS({
566
427
  }
567
428
  });
568
429
 
569
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js
570
- var require_mapCacheClear = __commonJS({
571
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js"(exports2, module2) {
430
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js
431
+ var require_listCacheClear = __commonJS({
432
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js"(exports2, module2) {
572
433
  "use strict";
573
- var Hash = require_Hash();
574
- var ListCache = require_ListCache();
575
- var Map = require_Map();
576
- function mapCacheClear() {
434
+ function listCacheClear() {
435
+ this.__data__ = [];
577
436
  this.size = 0;
578
- this.__data__ = {
437
+ }
438
+ module2.exports = listCacheClear;
439
+ }
440
+ });
441
+
442
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js
443
+ var require_eq = __commonJS({
444
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js"(exports2, module2) {
445
+ "use strict";
446
+ function eq(value, other) {
447
+ return value === other || value !== value && other !== other;
448
+ }
449
+ module2.exports = eq;
450
+ }
451
+ });
452
+
453
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js
454
+ var require_assocIndexOf = __commonJS({
455
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js"(exports2, module2) {
456
+ "use strict";
457
+ var eq = require_eq();
458
+ function assocIndexOf(array, key) {
459
+ var length = array.length;
460
+ while (length--) {
461
+ if (eq(array[length][0], key)) {
462
+ return length;
463
+ }
464
+ }
465
+ return -1;
466
+ }
467
+ module2.exports = assocIndexOf;
468
+ }
469
+ });
470
+
471
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js
472
+ var require_listCacheDelete = __commonJS({
473
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js"(exports2, module2) {
474
+ "use strict";
475
+ var assocIndexOf = require_assocIndexOf();
476
+ var arrayProto = Array.prototype;
477
+ var splice = arrayProto.splice;
478
+ function listCacheDelete(key) {
479
+ var data = this.__data__, index = assocIndexOf(data, key);
480
+ if (index < 0) {
481
+ return false;
482
+ }
483
+ var lastIndex = data.length - 1;
484
+ if (index == lastIndex) {
485
+ data.pop();
486
+ } else {
487
+ splice.call(data, index, 1);
488
+ }
489
+ --this.size;
490
+ return true;
491
+ }
492
+ module2.exports = listCacheDelete;
493
+ }
494
+ });
495
+
496
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js
497
+ var require_listCacheGet = __commonJS({
498
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js"(exports2, module2) {
499
+ "use strict";
500
+ var assocIndexOf = require_assocIndexOf();
501
+ function listCacheGet(key) {
502
+ var data = this.__data__, index = assocIndexOf(data, key);
503
+ return index < 0 ? void 0 : data[index][1];
504
+ }
505
+ module2.exports = listCacheGet;
506
+ }
507
+ });
508
+
509
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js
510
+ var require_listCacheHas = __commonJS({
511
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js"(exports2, module2) {
512
+ "use strict";
513
+ var assocIndexOf = require_assocIndexOf();
514
+ function listCacheHas(key) {
515
+ return assocIndexOf(this.__data__, key) > -1;
516
+ }
517
+ module2.exports = listCacheHas;
518
+ }
519
+ });
520
+
521
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js
522
+ var require_listCacheSet = __commonJS({
523
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js"(exports2, module2) {
524
+ "use strict";
525
+ var assocIndexOf = require_assocIndexOf();
526
+ function listCacheSet(key, value) {
527
+ var data = this.__data__, index = assocIndexOf(data, key);
528
+ if (index < 0) {
529
+ ++this.size;
530
+ data.push([key, value]);
531
+ } else {
532
+ data[index][1] = value;
533
+ }
534
+ return this;
535
+ }
536
+ module2.exports = listCacheSet;
537
+ }
538
+ });
539
+
540
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js
541
+ var require_ListCache = __commonJS({
542
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js"(exports2, module2) {
543
+ "use strict";
544
+ var listCacheClear = require_listCacheClear();
545
+ var listCacheDelete = require_listCacheDelete();
546
+ var listCacheGet = require_listCacheGet();
547
+ var listCacheHas = require_listCacheHas();
548
+ var listCacheSet = require_listCacheSet();
549
+ function ListCache(entries) {
550
+ var index = -1, length = entries == null ? 0 : entries.length;
551
+ this.clear();
552
+ while (++index < length) {
553
+ var entry = entries[index];
554
+ this.set(entry[0], entry[1]);
555
+ }
556
+ }
557
+ ListCache.prototype.clear = listCacheClear;
558
+ ListCache.prototype["delete"] = listCacheDelete;
559
+ ListCache.prototype.get = listCacheGet;
560
+ ListCache.prototype.has = listCacheHas;
561
+ ListCache.prototype.set = listCacheSet;
562
+ module2.exports = ListCache;
563
+ }
564
+ });
565
+
566
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js
567
+ var require_Map = __commonJS({
568
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js"(exports2, module2) {
569
+ "use strict";
570
+ var getNative = require_getNative();
571
+ var root = require_root();
572
+ var Map = getNative(root, "Map");
573
+ module2.exports = Map;
574
+ }
575
+ });
576
+
577
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js
578
+ var require_mapCacheClear = __commonJS({
579
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js"(exports2, module2) {
580
+ "use strict";
581
+ var Hash = require_Hash();
582
+ var ListCache = require_ListCache();
583
+ var Map = require_Map();
584
+ function mapCacheClear() {
585
+ this.size = 0;
586
+ this.__data__ = {
579
587
  "hash": new Hash(),
580
588
  "map": new (Map || ListCache)(),
581
589
  "string": new Hash()
@@ -689,298 +697,306 @@ var require_MapCache = __commonJS({
689
697
  }
690
698
  });
691
699
 
692
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js
693
- var require_stackSet = __commonJS({
694
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js"(exports2, module2) {
700
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js
701
+ var require_memoize = __commonJS({
702
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js"(exports2, module2) {
695
703
  "use strict";
696
- var ListCache = require_ListCache();
697
- var Map = require_Map();
698
704
  var MapCache = require_MapCache();
699
- var LARGE_ARRAY_SIZE = 200;
700
- function stackSet(key, value) {
701
- var data = this.__data__;
702
- if (data instanceof ListCache) {
703
- var pairs = data.__data__;
704
- if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
705
- pairs.push([key, value]);
706
- this.size = ++data.size;
707
- return this;
708
- }
709
- data = this.__data__ = new MapCache(pairs);
705
+ var FUNC_ERROR_TEXT = "Expected a function";
706
+ function memoize(func, resolver) {
707
+ if (typeof func != "function" || resolver != null && typeof resolver != "function") {
708
+ throw new TypeError(FUNC_ERROR_TEXT);
710
709
  }
711
- data.set(key, value);
712
- this.size = data.size;
713
- return this;
710
+ var memoized = function() {
711
+ var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
712
+ if (cache.has(key)) {
713
+ return cache.get(key);
714
+ }
715
+ var result = func.apply(this, args);
716
+ memoized.cache = cache.set(key, result) || cache;
717
+ return result;
718
+ };
719
+ memoized.cache = new (memoize.Cache || MapCache)();
720
+ return memoized;
714
721
  }
715
- module2.exports = stackSet;
722
+ memoize.Cache = MapCache;
723
+ module2.exports = memoize;
716
724
  }
717
725
  });
718
726
 
719
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js
720
- var require_Stack = __commonJS({
721
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js"(exports2, module2) {
727
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_memoizeCapped.js
728
+ var require_memoizeCapped = __commonJS({
729
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_memoizeCapped.js"(exports2, module2) {
722
730
  "use strict";
723
- var ListCache = require_ListCache();
724
- var stackClear = require_stackClear();
725
- var stackDelete = require_stackDelete();
726
- var stackGet = require_stackGet();
727
- var stackHas = require_stackHas();
728
- var stackSet = require_stackSet();
729
- function Stack(entries) {
730
- var data = this.__data__ = new ListCache(entries);
731
- this.size = data.size;
731
+ var memoize = require_memoize();
732
+ var MAX_MEMOIZE_SIZE = 500;
733
+ function memoizeCapped(func) {
734
+ var result = memoize(func, function(key) {
735
+ if (cache.size === MAX_MEMOIZE_SIZE) {
736
+ cache.clear();
737
+ }
738
+ return key;
739
+ });
740
+ var cache = result.cache;
741
+ return result;
732
742
  }
733
- Stack.prototype.clear = stackClear;
734
- Stack.prototype["delete"] = stackDelete;
735
- Stack.prototype.get = stackGet;
736
- Stack.prototype.has = stackHas;
737
- Stack.prototype.set = stackSet;
738
- module2.exports = Stack;
743
+ module2.exports = memoizeCapped;
739
744
  }
740
745
  });
741
746
 
742
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js
743
- var require_defineProperty = __commonJS({
744
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js"(exports2, module2) {
747
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToPath.js
748
+ var require_stringToPath = __commonJS({
749
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToPath.js"(exports2, module2) {
745
750
  "use strict";
746
- var getNative = require_getNative();
747
- var defineProperty = function() {
748
- try {
749
- var func = getNative(Object, "defineProperty");
750
- func({}, "", {});
751
- return func;
752
- } catch (e) {
751
+ var memoizeCapped = require_memoizeCapped();
752
+ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
753
+ var reEscapeChar = /\\(\\)?/g;
754
+ var stringToPath = memoizeCapped(function(string) {
755
+ var result = [];
756
+ if (string.charCodeAt(0) === 46) {
757
+ result.push("");
753
758
  }
754
- }();
755
- module2.exports = defineProperty;
759
+ string.replace(rePropName, function(match, number, quote, subString) {
760
+ result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
761
+ });
762
+ return result;
763
+ });
764
+ module2.exports = stringToPath;
756
765
  }
757
766
  });
758
767
 
759
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js
760
- var require_baseAssignValue = __commonJS({
761
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js"(exports2, module2) {
762
- "use strict";
763
- var defineProperty = require_defineProperty();
764
- function baseAssignValue(object, key, value) {
765
- if (key == "__proto__" && defineProperty) {
766
- defineProperty(object, key, {
767
- "configurable": true,
768
- "enumerable": true,
769
- "value": value,
770
- "writable": true
771
- });
772
- } else {
773
- object[key] = value;
768
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js
769
+ var require_arrayMap = __commonJS({
770
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js"(exports2, module2) {
771
+ "use strict";
772
+ function arrayMap(array, iteratee) {
773
+ var index = -1, length = array == null ? 0 : array.length, result = Array(length);
774
+ while (++index < length) {
775
+ result[index] = iteratee(array[index], index, array);
774
776
  }
777
+ return result;
775
778
  }
776
- module2.exports = baseAssignValue;
779
+ module2.exports = arrayMap;
777
780
  }
778
781
  });
779
782
 
780
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignMergeValue.js
781
- var require_assignMergeValue = __commonJS({
782
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignMergeValue.js"(exports2, module2) {
783
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js
784
+ var require_baseToString = __commonJS({
785
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js"(exports2, module2) {
783
786
  "use strict";
784
- var baseAssignValue = require_baseAssignValue();
785
- var eq = require_eq();
786
- function assignMergeValue(object, key, value) {
787
- if (value !== void 0 && !eq(object[key], value) || value === void 0 && !(key in object)) {
788
- baseAssignValue(object, key, value);
787
+ var Symbol2 = require_Symbol();
788
+ var arrayMap = require_arrayMap();
789
+ var isArray = require_isArray();
790
+ var isSymbol = require_isSymbol();
791
+ var INFINITY = 1 / 0;
792
+ var symbolProto = Symbol2 ? Symbol2.prototype : void 0;
793
+ var symbolToString = symbolProto ? symbolProto.toString : void 0;
794
+ function baseToString(value) {
795
+ if (typeof value == "string") {
796
+ return value;
797
+ }
798
+ if (isArray(value)) {
799
+ return arrayMap(value, baseToString) + "";
789
800
  }
801
+ if (isSymbol(value)) {
802
+ return symbolToString ? symbolToString.call(value) : "";
803
+ }
804
+ var result = value + "";
805
+ return result == "0" && 1 / value == -INFINITY ? "-0" : result;
790
806
  }
791
- module2.exports = assignMergeValue;
807
+ module2.exports = baseToString;
792
808
  }
793
809
  });
794
810
 
795
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseFor.js
796
- var require_createBaseFor = __commonJS({
797
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseFor.js"(exports2, module2) {
811
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js
812
+ var require_toString = __commonJS({
813
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js"(exports2, module2) {
798
814
  "use strict";
799
- function createBaseFor(fromRight) {
800
- return function(object, iteratee, keysFunc) {
801
- var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
802
- while (length--) {
803
- var key = props[fromRight ? length : ++index];
804
- if (iteratee(iterable[key], key, iterable) === false) {
805
- break;
806
- }
807
- }
808
- return object;
809
- };
815
+ var baseToString = require_baseToString();
816
+ function toString(value) {
817
+ return value == null ? "" : baseToString(value);
810
818
  }
811
- module2.exports = createBaseFor;
812
- }
813
- });
814
-
815
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js
816
- var require_baseFor = __commonJS({
817
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js"(exports2, module2) {
818
- "use strict";
819
- var createBaseFor = require_createBaseFor();
820
- var baseFor = createBaseFor();
821
- module2.exports = baseFor;
819
+ module2.exports = toString;
822
820
  }
823
821
  });
824
822
 
825
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneBuffer.js
826
- var require_cloneBuffer = __commonJS({
827
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneBuffer.js"(exports2, module2) {
823
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js
824
+ var require_castPath = __commonJS({
825
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js"(exports2, module2) {
828
826
  "use strict";
829
- var root = require_root();
830
- var freeExports = typeof exports2 == "object" && exports2 && !exports2.nodeType && exports2;
831
- var freeModule = freeExports && typeof module2 == "object" && module2 && !module2.nodeType && module2;
832
- var moduleExports = freeModule && freeModule.exports === freeExports;
833
- var Buffer2 = moduleExports ? root.Buffer : void 0;
834
- var allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0;
835
- function cloneBuffer(buffer, isDeep) {
836
- if (isDeep) {
837
- return buffer.slice();
827
+ var isArray = require_isArray();
828
+ var isKey = require_isKey();
829
+ var stringToPath = require_stringToPath();
830
+ var toString = require_toString();
831
+ function castPath(value, object) {
832
+ if (isArray(value)) {
833
+ return value;
838
834
  }
839
- var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
840
- buffer.copy(result);
841
- return result;
835
+ return isKey(value, object) ? [value] : stringToPath(toString(value));
842
836
  }
843
- module2.exports = cloneBuffer;
837
+ module2.exports = castPath;
844
838
  }
845
839
  });
846
840
 
847
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js
848
- var require_Uint8Array = __commonJS({
849
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js"(exports2, module2) {
841
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js
842
+ var require_toKey = __commonJS({
843
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js"(exports2, module2) {
850
844
  "use strict";
851
- var root = require_root();
852
- var Uint8Array2 = root.Uint8Array;
853
- module2.exports = Uint8Array2;
845
+ var isSymbol = require_isSymbol();
846
+ var INFINITY = 1 / 0;
847
+ function toKey(value) {
848
+ if (typeof value == "string" || isSymbol(value)) {
849
+ return value;
850
+ }
851
+ var result = value + "";
852
+ return result == "0" && 1 / value == -INFINITY ? "-0" : result;
853
+ }
854
+ module2.exports = toKey;
854
855
  }
855
856
  });
856
857
 
857
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneArrayBuffer.js
858
- var require_cloneArrayBuffer = __commonJS({
859
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneArrayBuffer.js"(exports2, module2) {
858
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js
859
+ var require_baseGet = __commonJS({
860
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js"(exports2, module2) {
860
861
  "use strict";
861
- var Uint8Array2 = require_Uint8Array();
862
- function cloneArrayBuffer(arrayBuffer) {
863
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
864
- new Uint8Array2(result).set(new Uint8Array2(arrayBuffer));
865
- return result;
862
+ var castPath = require_castPath();
863
+ var toKey = require_toKey();
864
+ function baseGet(object, path) {
865
+ path = castPath(path, object);
866
+ var index = 0, length = path.length;
867
+ while (object != null && index < length) {
868
+ object = object[toKey(path[index++])];
869
+ }
870
+ return index && index == length ? object : void 0;
866
871
  }
867
- module2.exports = cloneArrayBuffer;
872
+ module2.exports = baseGet;
868
873
  }
869
874
  });
870
875
 
871
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneTypedArray.js
872
- var require_cloneTypedArray = __commonJS({
873
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneTypedArray.js"(exports2, module2) {
876
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js
877
+ var require_get = __commonJS({
878
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js"(exports2, module2) {
874
879
  "use strict";
875
- var cloneArrayBuffer = require_cloneArrayBuffer();
876
- function cloneTypedArray(typedArray, isDeep) {
877
- var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
878
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
880
+ var baseGet = require_baseGet();
881
+ function get2(object, path, defaultValue) {
882
+ var result = object == null ? void 0 : baseGet(object, path);
883
+ return result === void 0 ? defaultValue : result;
879
884
  }
880
- module2.exports = cloneTypedArray;
885
+ module2.exports = get2;
881
886
  }
882
887
  });
883
888
 
884
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyArray.js
885
- var require_copyArray = __commonJS({
886
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyArray.js"(exports2, module2) {
889
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isString.js
890
+ var require_isString = __commonJS({
891
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isString.js"(exports2, module2) {
887
892
  "use strict";
888
- function copyArray(source, array) {
889
- var index = -1, length = source.length;
890
- array || (array = Array(length));
891
- while (++index < length) {
892
- array[index] = source[index];
893
- }
894
- return array;
893
+ var baseGetTag = require_baseGetTag();
894
+ var isArray = require_isArray();
895
+ var isObjectLike = require_isObjectLike();
896
+ var stringTag = "[object String]";
897
+ function isString2(value) {
898
+ return typeof value == "string" || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
895
899
  }
896
- module2.exports = copyArray;
900
+ module2.exports = isString2;
897
901
  }
898
902
  });
899
903
 
900
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseCreate.js
901
- var require_baseCreate = __commonJS({
902
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseCreate.js"(exports2, module2) {
904
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js
905
+ var require_defineProperty = __commonJS({
906
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js"(exports2, module2) {
903
907
  "use strict";
904
- var isObject = require_isObject();
905
- var objectCreate = Object.create;
906
- var baseCreate = /* @__PURE__ */ function() {
907
- function object() {
908
+ var getNative = require_getNative();
909
+ var defineProperty = function() {
910
+ try {
911
+ var func = getNative(Object, "defineProperty");
912
+ func({}, "", {});
913
+ return func;
914
+ } catch (e) {
908
915
  }
909
- return function(proto) {
910
- if (!isObject(proto)) {
911
- return {};
912
- }
913
- if (objectCreate) {
914
- return objectCreate(proto);
915
- }
916
- object.prototype = proto;
917
- var result = new object();
918
- object.prototype = void 0;
919
- return result;
920
- };
921
916
  }();
922
- module2.exports = baseCreate;
917
+ module2.exports = defineProperty;
923
918
  }
924
919
  });
925
920
 
926
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js
927
- var require_overArg = __commonJS({
928
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js"(exports2, module2) {
921
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js
922
+ var require_baseAssignValue = __commonJS({
923
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js"(exports2, module2) {
929
924
  "use strict";
930
- function overArg(func, transform) {
931
- return function(arg) {
932
- return func(transform(arg));
933
- };
925
+ var defineProperty = require_defineProperty();
926
+ function baseAssignValue(object, key, value) {
927
+ if (key == "__proto__" && defineProperty) {
928
+ defineProperty(object, key, {
929
+ "configurable": true,
930
+ "enumerable": true,
931
+ "value": value,
932
+ "writable": true
933
+ });
934
+ } else {
935
+ object[key] = value;
936
+ }
934
937
  }
935
- module2.exports = overArg;
938
+ module2.exports = baseAssignValue;
936
939
  }
937
940
  });
938
941
 
939
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getPrototype.js
940
- var require_getPrototype = __commonJS({
941
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getPrototype.js"(exports2, module2) {
942
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayAggregator.js
943
+ var require_arrayAggregator = __commonJS({
944
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayAggregator.js"(exports2, module2) {
942
945
  "use strict";
943
- var overArg = require_overArg();
944
- var getPrototype = overArg(Object.getPrototypeOf, Object);
945
- module2.exports = getPrototype;
946
+ function arrayAggregator(array, setter, iteratee, accumulator) {
947
+ var index = -1, length = array == null ? 0 : array.length;
948
+ while (++index < length) {
949
+ var value = array[index];
950
+ setter(accumulator, value, iteratee(value), array);
951
+ }
952
+ return accumulator;
953
+ }
954
+ module2.exports = arrayAggregator;
946
955
  }
947
956
  });
948
957
 
949
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js
950
- var require_isPrototype = __commonJS({
951
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js"(exports2, module2) {
958
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseFor.js
959
+ var require_createBaseFor = __commonJS({
960
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseFor.js"(exports2, module2) {
952
961
  "use strict";
953
- var objectProto = Object.prototype;
954
- function isPrototype(value) {
955
- var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
956
- return value === proto;
962
+ function createBaseFor(fromRight) {
963
+ return function(object, iteratee, keysFunc) {
964
+ var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
965
+ while (length--) {
966
+ var key = props[fromRight ? length : ++index];
967
+ if (iteratee(iterable[key], key, iterable) === false) {
968
+ break;
969
+ }
970
+ }
971
+ return object;
972
+ };
957
973
  }
958
- module2.exports = isPrototype;
974
+ module2.exports = createBaseFor;
959
975
  }
960
976
  });
961
977
 
962
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_initCloneObject.js
963
- var require_initCloneObject = __commonJS({
964
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_initCloneObject.js"(exports2, module2) {
978
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js
979
+ var require_baseFor = __commonJS({
980
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js"(exports2, module2) {
965
981
  "use strict";
966
- var baseCreate = require_baseCreate();
967
- var getPrototype = require_getPrototype();
968
- var isPrototype = require_isPrototype();
969
- function initCloneObject(object) {
970
- return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
971
- }
972
- module2.exports = initCloneObject;
982
+ var createBaseFor = require_createBaseFor();
983
+ var baseFor = createBaseFor();
984
+ module2.exports = baseFor;
973
985
  }
974
986
  });
975
987
 
976
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js
977
- var require_isObjectLike = __commonJS({
978
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js"(exports2, module2) {
988
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js
989
+ var require_baseTimes = __commonJS({
990
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js"(exports2, module2) {
979
991
  "use strict";
980
- function isObjectLike(value) {
981
- return value != null && typeof value == "object";
992
+ function baseTimes(n, iteratee) {
993
+ var index = -1, result = Array(n);
994
+ while (++index < n) {
995
+ result[index] = iteratee(index);
996
+ }
997
+ return result;
982
998
  }
983
- module2.exports = isObjectLike;
999
+ module2.exports = baseTimes;
984
1000
  }
985
1001
  });
986
1002
 
@@ -1016,56 +1032,9 @@ var require_isArguments = __commonJS({
1016
1032
  }
1017
1033
  });
1018
1034
 
1019
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js
1020
- var require_isArray = __commonJS({
1021
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"(exports2, module2) {
1022
- "use strict";
1023
- var isArray = Array.isArray;
1024
- module2.exports = isArray;
1025
- }
1026
- });
1027
-
1028
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js
1029
- var require_isLength = __commonJS({
1030
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js"(exports2, module2) {
1031
- "use strict";
1032
- var MAX_SAFE_INTEGER = 9007199254740991;
1033
- function isLength(value) {
1034
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
1035
- }
1036
- module2.exports = isLength;
1037
- }
1038
- });
1039
-
1040
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js
1041
- var require_isArrayLike = __commonJS({
1042
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js"(exports2, module2) {
1043
- "use strict";
1044
- var isFunction = require_isFunction();
1045
- var isLength = require_isLength();
1046
- function isArrayLike(value) {
1047
- return value != null && isLength(value.length) && !isFunction(value);
1048
- }
1049
- module2.exports = isArrayLike;
1050
- }
1051
- });
1052
-
1053
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js
1054
- var require_isArrayLikeObject = __commonJS({
1055
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js"(exports2, module2) {
1056
- "use strict";
1057
- var isArrayLike = require_isArrayLike();
1058
- var isObjectLike = require_isObjectLike();
1059
- function isArrayLikeObject(value) {
1060
- return isObjectLike(value) && isArrayLike(value);
1061
- }
1062
- module2.exports = isArrayLikeObject;
1063
- }
1064
- });
1065
-
1066
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js
1067
- var require_stubFalse = __commonJS({
1068
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js"(exports2, module2) {
1035
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js
1036
+ var require_stubFalse = __commonJS({
1037
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js"(exports2, module2) {
1069
1038
  "use strict";
1070
1039
  function stubFalse() {
1071
1040
  return false;
@@ -1090,31 +1059,30 @@ var require_isBuffer = __commonJS({
1090
1059
  }
1091
1060
  });
1092
1061
 
1093
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js
1094
- var require_isPlainObject = __commonJS({
1095
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js"(exports2, module2) {
1062
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js
1063
+ var require_isIndex = __commonJS({
1064
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js"(exports2, module2) {
1096
1065
  "use strict";
1097
- var baseGetTag = require_baseGetTag();
1098
- var getPrototype = require_getPrototype();
1099
- var isObjectLike = require_isObjectLike();
1100
- var objectTag = "[object Object]";
1101
- var funcProto = Function.prototype;
1102
- var objectProto = Object.prototype;
1103
- var funcToString = funcProto.toString;
1104
- var hasOwnProperty = objectProto.hasOwnProperty;
1105
- var objectCtorString = funcToString.call(Object);
1106
- function isPlainObject(value) {
1107
- if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
1108
- return false;
1109
- }
1110
- var proto = getPrototype(value);
1111
- if (proto === null) {
1112
- return true;
1113
- }
1114
- var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
1115
- return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
1066
+ var MAX_SAFE_INTEGER = 9007199254740991;
1067
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
1068
+ function isIndex(value, length) {
1069
+ var type = typeof value;
1070
+ length = length == null ? MAX_SAFE_INTEGER : length;
1071
+ return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
1072
+ }
1073
+ module2.exports = isIndex;
1074
+ }
1075
+ });
1076
+
1077
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js
1078
+ var require_isLength = __commonJS({
1079
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js"(exports2, module2) {
1080
+ "use strict";
1081
+ var MAX_SAFE_INTEGER = 9007199254740991;
1082
+ function isLength(value) {
1083
+ return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
1116
1084
  }
1117
- module2.exports = isPlainObject;
1085
+ module2.exports = isLength;
1118
1086
  }
1119
1087
  });
1120
1088
 
@@ -1208,99 +1176,6 @@ var require_isTypedArray = __commonJS({
1208
1176
  }
1209
1177
  });
1210
1178
 
1211
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_safeGet.js
1212
- var require_safeGet = __commonJS({
1213
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_safeGet.js"(exports2, module2) {
1214
- "use strict";
1215
- function safeGet(object, key) {
1216
- if (key === "constructor" && typeof object[key] === "function") {
1217
- return;
1218
- }
1219
- if (key == "__proto__") {
1220
- return;
1221
- }
1222
- return object[key];
1223
- }
1224
- module2.exports = safeGet;
1225
- }
1226
- });
1227
-
1228
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js
1229
- var require_assignValue = __commonJS({
1230
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js"(exports2, module2) {
1231
- "use strict";
1232
- var baseAssignValue = require_baseAssignValue();
1233
- var eq = require_eq();
1234
- var objectProto = Object.prototype;
1235
- var hasOwnProperty = objectProto.hasOwnProperty;
1236
- function assignValue(object, key, value) {
1237
- var objValue = object[key];
1238
- if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
1239
- baseAssignValue(object, key, value);
1240
- }
1241
- }
1242
- module2.exports = assignValue;
1243
- }
1244
- });
1245
-
1246
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyObject.js
1247
- var require_copyObject = __commonJS({
1248
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyObject.js"(exports2, module2) {
1249
- "use strict";
1250
- var assignValue = require_assignValue();
1251
- var baseAssignValue = require_baseAssignValue();
1252
- function copyObject(source, props, object, customizer) {
1253
- var isNew = !object;
1254
- object || (object = {});
1255
- var index = -1, length = props.length;
1256
- while (++index < length) {
1257
- var key = props[index];
1258
- var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
1259
- if (newValue === void 0) {
1260
- newValue = source[key];
1261
- }
1262
- if (isNew) {
1263
- baseAssignValue(object, key, newValue);
1264
- } else {
1265
- assignValue(object, key, newValue);
1266
- }
1267
- }
1268
- return object;
1269
- }
1270
- module2.exports = copyObject;
1271
- }
1272
- });
1273
-
1274
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js
1275
- var require_baseTimes = __commonJS({
1276
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js"(exports2, module2) {
1277
- "use strict";
1278
- function baseTimes(n, iteratee) {
1279
- var index = -1, result = Array(n);
1280
- while (++index < n) {
1281
- result[index] = iteratee(index);
1282
- }
1283
- return result;
1284
- }
1285
- module2.exports = baseTimes;
1286
- }
1287
- });
1288
-
1289
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js
1290
- var require_isIndex = __commonJS({
1291
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js"(exports2, module2) {
1292
- "use strict";
1293
- var MAX_SAFE_INTEGER = 9007199254740991;
1294
- var reIsUint = /^(?:0|[1-9]\d*)$/;
1295
- function isIndex(value, length) {
1296
- var type = typeof value;
1297
- length = length == null ? MAX_SAFE_INTEGER : length;
1298
- return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
1299
- }
1300
- module2.exports = isIndex;
1301
- }
1302
- });
1303
-
1304
1179
  // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js
1305
1180
  var require_arrayLikeKeys = __commonJS({
1306
1181
  "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js"(exports2, module2) {
@@ -1324,636 +1199,35 @@ var require_arrayLikeKeys = __commonJS({
1324
1199
  result.push(key);
1325
1200
  }
1326
1201
  }
1327
- return result;
1328
- }
1329
- module2.exports = arrayLikeKeys;
1330
- }
1331
- });
1332
-
1333
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.js
1334
- var require_nativeKeysIn = __commonJS({
1335
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.js"(exports2, module2) {
1336
- "use strict";
1337
- function nativeKeysIn(object) {
1338
- var result = [];
1339
- if (object != null) {
1340
- for (var key in Object(object)) {
1341
- result.push(key);
1342
- }
1343
- }
1344
- return result;
1345
- }
1346
- module2.exports = nativeKeysIn;
1347
- }
1348
- });
1349
-
1350
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeysIn.js
1351
- var require_baseKeysIn = __commonJS({
1352
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeysIn.js"(exports2, module2) {
1353
- "use strict";
1354
- var isObject = require_isObject();
1355
- var isPrototype = require_isPrototype();
1356
- var nativeKeysIn = require_nativeKeysIn();
1357
- var objectProto = Object.prototype;
1358
- var hasOwnProperty = objectProto.hasOwnProperty;
1359
- function baseKeysIn(object) {
1360
- if (!isObject(object)) {
1361
- return nativeKeysIn(object);
1362
- }
1363
- var isProto = isPrototype(object), result = [];
1364
- for (var key in object) {
1365
- if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object, key)))) {
1366
- result.push(key);
1367
- }
1368
- }
1369
- return result;
1370
- }
1371
- module2.exports = baseKeysIn;
1372
- }
1373
- });
1374
-
1375
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js
1376
- var require_keysIn = __commonJS({
1377
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js"(exports2, module2) {
1378
- "use strict";
1379
- var arrayLikeKeys = require_arrayLikeKeys();
1380
- var baseKeysIn = require_baseKeysIn();
1381
- var isArrayLike = require_isArrayLike();
1382
- function keysIn(object) {
1383
- return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
1384
- }
1385
- module2.exports = keysIn;
1386
- }
1387
- });
1388
-
1389
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toPlainObject.js
1390
- var require_toPlainObject = __commonJS({
1391
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toPlainObject.js"(exports2, module2) {
1392
- "use strict";
1393
- var copyObject = require_copyObject();
1394
- var keysIn = require_keysIn();
1395
- function toPlainObject(value) {
1396
- return copyObject(value, keysIn(value));
1397
- }
1398
- module2.exports = toPlainObject;
1399
- }
1400
- });
1401
-
1402
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMergeDeep.js
1403
- var require_baseMergeDeep = __commonJS({
1404
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMergeDeep.js"(exports2, module2) {
1405
- "use strict";
1406
- var assignMergeValue = require_assignMergeValue();
1407
- var cloneBuffer = require_cloneBuffer();
1408
- var cloneTypedArray = require_cloneTypedArray();
1409
- var copyArray = require_copyArray();
1410
- var initCloneObject = require_initCloneObject();
1411
- var isArguments = require_isArguments();
1412
- var isArray = require_isArray();
1413
- var isArrayLikeObject = require_isArrayLikeObject();
1414
- var isBuffer = require_isBuffer();
1415
- var isFunction = require_isFunction();
1416
- var isObject = require_isObject();
1417
- var isPlainObject = require_isPlainObject();
1418
- var isTypedArray = require_isTypedArray();
1419
- var safeGet = require_safeGet();
1420
- var toPlainObject = require_toPlainObject();
1421
- function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
1422
- var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue);
1423
- if (stacked) {
1424
- assignMergeValue(object, key, stacked);
1425
- return;
1426
- }
1427
- var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0;
1428
- var isCommon = newValue === void 0;
1429
- if (isCommon) {
1430
- var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
1431
- newValue = srcValue;
1432
- if (isArr || isBuff || isTyped) {
1433
- if (isArray(objValue)) {
1434
- newValue = objValue;
1435
- } else if (isArrayLikeObject(objValue)) {
1436
- newValue = copyArray(objValue);
1437
- } else if (isBuff) {
1438
- isCommon = false;
1439
- newValue = cloneBuffer(srcValue, true);
1440
- } else if (isTyped) {
1441
- isCommon = false;
1442
- newValue = cloneTypedArray(srcValue, true);
1443
- } else {
1444
- newValue = [];
1445
- }
1446
- } else if (isPlainObject(srcValue) || isArguments(srcValue)) {
1447
- newValue = objValue;
1448
- if (isArguments(objValue)) {
1449
- newValue = toPlainObject(objValue);
1450
- } else if (!isObject(objValue) || isFunction(objValue)) {
1451
- newValue = initCloneObject(srcValue);
1452
- }
1453
- } else {
1454
- isCommon = false;
1455
- }
1456
- }
1457
- if (isCommon) {
1458
- stack.set(srcValue, newValue);
1459
- mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
1460
- stack["delete"](srcValue);
1461
- }
1462
- assignMergeValue(object, key, newValue);
1463
- }
1464
- module2.exports = baseMergeDeep;
1465
- }
1466
- });
1467
-
1468
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMerge.js
1469
- var require_baseMerge = __commonJS({
1470
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMerge.js"(exports2, module2) {
1471
- "use strict";
1472
- var Stack = require_Stack();
1473
- var assignMergeValue = require_assignMergeValue();
1474
- var baseFor = require_baseFor();
1475
- var baseMergeDeep = require_baseMergeDeep();
1476
- var isObject = require_isObject();
1477
- var keysIn = require_keysIn();
1478
- var safeGet = require_safeGet();
1479
- function baseMerge(object, source, srcIndex, customizer, stack) {
1480
- if (object === source) {
1481
- return;
1482
- }
1483
- baseFor(source, function(srcValue, key) {
1484
- stack || (stack = new Stack());
1485
- if (isObject(srcValue)) {
1486
- baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
1487
- } else {
1488
- var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : void 0;
1489
- if (newValue === void 0) {
1490
- newValue = srcValue;
1491
- }
1492
- assignMergeValue(object, key, newValue);
1493
- }
1494
- }, keysIn);
1495
- }
1496
- module2.exports = baseMerge;
1497
- }
1498
- });
1499
-
1500
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js
1501
- var require_identity = __commonJS({
1502
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js"(exports2, module2) {
1503
- "use strict";
1504
- function identity(value) {
1505
- return value;
1506
- }
1507
- module2.exports = identity;
1508
- }
1509
- });
1510
-
1511
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_apply.js
1512
- var require_apply = __commonJS({
1513
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_apply.js"(exports2, module2) {
1514
- "use strict";
1515
- function apply(func, thisArg, args) {
1516
- switch (args.length) {
1517
- case 0:
1518
- return func.call(thisArg);
1519
- case 1:
1520
- return func.call(thisArg, args[0]);
1521
- case 2:
1522
- return func.call(thisArg, args[0], args[1]);
1523
- case 3:
1524
- return func.call(thisArg, args[0], args[1], args[2]);
1525
- }
1526
- return func.apply(thisArg, args);
1527
- }
1528
- module2.exports = apply;
1529
- }
1530
- });
1531
-
1532
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js
1533
- var require_overRest = __commonJS({
1534
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js"(exports2, module2) {
1535
- "use strict";
1536
- var apply = require_apply();
1537
- var nativeMax = Math.max;
1538
- function overRest(func, start, transform) {
1539
- start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
1540
- return function() {
1541
- var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
1542
- while (++index < length) {
1543
- array[index] = args[start + index];
1544
- }
1545
- index = -1;
1546
- var otherArgs = Array(start + 1);
1547
- while (++index < start) {
1548
- otherArgs[index] = args[index];
1549
- }
1550
- otherArgs[start] = transform(array);
1551
- return apply(func, this, otherArgs);
1552
- };
1553
- }
1554
- module2.exports = overRest;
1555
- }
1556
- });
1557
-
1558
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js
1559
- var require_constant = __commonJS({
1560
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js"(exports2, module2) {
1561
- "use strict";
1562
- function constant(value) {
1563
- return function() {
1564
- return value;
1565
- };
1566
- }
1567
- module2.exports = constant;
1568
- }
1569
- });
1570
-
1571
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSetToString.js
1572
- var require_baseSetToString = __commonJS({
1573
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSetToString.js"(exports2, module2) {
1574
- "use strict";
1575
- var constant = require_constant();
1576
- var defineProperty = require_defineProperty();
1577
- var identity = require_identity();
1578
- var baseSetToString = !defineProperty ? identity : function(func, string) {
1579
- return defineProperty(func, "toString", {
1580
- "configurable": true,
1581
- "enumerable": false,
1582
- "value": constant(string),
1583
- "writable": true
1584
- });
1585
- };
1586
- module2.exports = baseSetToString;
1587
- }
1588
- });
1589
-
1590
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_shortOut.js
1591
- var require_shortOut = __commonJS({
1592
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_shortOut.js"(exports2, module2) {
1593
- "use strict";
1594
- var HOT_COUNT = 800;
1595
- var HOT_SPAN = 16;
1596
- var nativeNow = Date.now;
1597
- function shortOut(func) {
1598
- var count = 0, lastCalled = 0;
1599
- return function() {
1600
- var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
1601
- lastCalled = stamp;
1602
- if (remaining > 0) {
1603
- if (++count >= HOT_COUNT) {
1604
- return arguments[0];
1605
- }
1606
- } else {
1607
- count = 0;
1608
- }
1609
- return func.apply(void 0, arguments);
1610
- };
1611
- }
1612
- module2.exports = shortOut;
1613
- }
1614
- });
1615
-
1616
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToString.js
1617
- var require_setToString = __commonJS({
1618
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToString.js"(exports2, module2) {
1619
- "use strict";
1620
- var baseSetToString = require_baseSetToString();
1621
- var shortOut = require_shortOut();
1622
- var setToString = shortOut(baseSetToString);
1623
- module2.exports = setToString;
1624
- }
1625
- });
1626
-
1627
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js
1628
- var require_baseRest = __commonJS({
1629
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js"(exports2, module2) {
1630
- "use strict";
1631
- var identity = require_identity();
1632
- var overRest = require_overRest();
1633
- var setToString = require_setToString();
1634
- function baseRest(func, start) {
1635
- return setToString(overRest(func, start, identity), func + "");
1636
- }
1637
- module2.exports = baseRest;
1638
- }
1639
- });
1640
-
1641
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js
1642
- var require_isIterateeCall = __commonJS({
1643
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js"(exports2, module2) {
1644
- "use strict";
1645
- var eq = require_eq();
1646
- var isArrayLike = require_isArrayLike();
1647
- var isIndex = require_isIndex();
1648
- var isObject = require_isObject();
1649
- function isIterateeCall(value, index, object) {
1650
- if (!isObject(object)) {
1651
- return false;
1652
- }
1653
- var type = typeof index;
1654
- if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) {
1655
- return eq(object[index], value);
1656
- }
1657
- return false;
1658
- }
1659
- module2.exports = isIterateeCall;
1660
- }
1661
- });
1662
-
1663
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createAssigner.js
1664
- var require_createAssigner = __commonJS({
1665
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createAssigner.js"(exports2, module2) {
1666
- "use strict";
1667
- var baseRest = require_baseRest();
1668
- var isIterateeCall = require_isIterateeCall();
1669
- function createAssigner(assigner) {
1670
- return baseRest(function(object, sources) {
1671
- var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
1672
- customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
1673
- if (guard && isIterateeCall(sources[0], sources[1], guard)) {
1674
- customizer = length < 3 ? void 0 : customizer;
1675
- length = 1;
1676
- }
1677
- object = Object(object);
1678
- while (++index < length) {
1679
- var source = sources[index];
1680
- if (source) {
1681
- assigner(object, source, index, customizer);
1682
- }
1683
- }
1684
- return object;
1685
- });
1686
- }
1687
- module2.exports = createAssigner;
1688
- }
1689
- });
1690
-
1691
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/merge.js
1692
- var require_merge = __commonJS({
1693
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/merge.js"(exports2, module2) {
1694
- "use strict";
1695
- var baseMerge = require_baseMerge();
1696
- var createAssigner = require_createAssigner();
1697
- var merge3 = createAssigner(function(object, source, srcIndex) {
1698
- baseMerge(object, source, srcIndex);
1699
- });
1700
- module2.exports = merge3;
1701
- }
1702
- });
1703
-
1704
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js
1705
- var require_isSymbol = __commonJS({
1706
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js"(exports2, module2) {
1707
- "use strict";
1708
- var baseGetTag = require_baseGetTag();
1709
- var isObjectLike = require_isObjectLike();
1710
- var symbolTag = "[object Symbol]";
1711
- function isSymbol(value) {
1712
- return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
1713
- }
1714
- module2.exports = isSymbol;
1715
- }
1716
- });
1717
-
1718
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKey.js
1719
- var require_isKey = __commonJS({
1720
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKey.js"(exports2, module2) {
1721
- "use strict";
1722
- var isArray = require_isArray();
1723
- var isSymbol = require_isSymbol();
1724
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
1725
- var reIsPlainProp = /^\w*$/;
1726
- function isKey(value, object) {
1727
- if (isArray(value)) {
1728
- return false;
1729
- }
1730
- var type = typeof value;
1731
- if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) {
1732
- return true;
1733
- }
1734
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
1735
- }
1736
- module2.exports = isKey;
1737
- }
1738
- });
1739
-
1740
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js
1741
- var require_memoize = __commonJS({
1742
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js"(exports2, module2) {
1743
- "use strict";
1744
- var MapCache = require_MapCache();
1745
- var FUNC_ERROR_TEXT = "Expected a function";
1746
- function memoize(func, resolver) {
1747
- if (typeof func != "function" || resolver != null && typeof resolver != "function") {
1748
- throw new TypeError(FUNC_ERROR_TEXT);
1749
- }
1750
- var memoized = function() {
1751
- var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
1752
- if (cache.has(key)) {
1753
- return cache.get(key);
1754
- }
1755
- var result = func.apply(this, args);
1756
- memoized.cache = cache.set(key, result) || cache;
1757
- return result;
1758
- };
1759
- memoized.cache = new (memoize.Cache || MapCache)();
1760
- return memoized;
1761
- }
1762
- memoize.Cache = MapCache;
1763
- module2.exports = memoize;
1764
- }
1765
- });
1766
-
1767
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_memoizeCapped.js
1768
- var require_memoizeCapped = __commonJS({
1769
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_memoizeCapped.js"(exports2, module2) {
1770
- "use strict";
1771
- var memoize = require_memoize();
1772
- var MAX_MEMOIZE_SIZE = 500;
1773
- function memoizeCapped(func) {
1774
- var result = memoize(func, function(key) {
1775
- if (cache.size === MAX_MEMOIZE_SIZE) {
1776
- cache.clear();
1777
- }
1778
- return key;
1779
- });
1780
- var cache = result.cache;
1781
- return result;
1782
- }
1783
- module2.exports = memoizeCapped;
1784
- }
1785
- });
1786
-
1787
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToPath.js
1788
- var require_stringToPath = __commonJS({
1789
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToPath.js"(exports2, module2) {
1790
- "use strict";
1791
- var memoizeCapped = require_memoizeCapped();
1792
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
1793
- var reEscapeChar = /\\(\\)?/g;
1794
- var stringToPath = memoizeCapped(function(string) {
1795
- var result = [];
1796
- if (string.charCodeAt(0) === 46) {
1797
- result.push("");
1798
- }
1799
- string.replace(rePropName, function(match, number, quote, subString) {
1800
- result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
1801
- });
1802
- return result;
1803
- });
1804
- module2.exports = stringToPath;
1805
- }
1806
- });
1807
-
1808
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js
1809
- var require_arrayMap = __commonJS({
1810
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js"(exports2, module2) {
1811
- "use strict";
1812
- function arrayMap(array, iteratee) {
1813
- var index = -1, length = array == null ? 0 : array.length, result = Array(length);
1814
- while (++index < length) {
1815
- result[index] = iteratee(array[index], index, array);
1816
- }
1817
- return result;
1818
- }
1819
- module2.exports = arrayMap;
1820
- }
1821
- });
1822
-
1823
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js
1824
- var require_baseToString = __commonJS({
1825
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js"(exports2, module2) {
1826
- "use strict";
1827
- var Symbol2 = require_Symbol();
1828
- var arrayMap = require_arrayMap();
1829
- var isArray = require_isArray();
1830
- var isSymbol = require_isSymbol();
1831
- var INFINITY = 1 / 0;
1832
- var symbolProto = Symbol2 ? Symbol2.prototype : void 0;
1833
- var symbolToString = symbolProto ? symbolProto.toString : void 0;
1834
- function baseToString(value) {
1835
- if (typeof value == "string") {
1836
- return value;
1837
- }
1838
- if (isArray(value)) {
1839
- return arrayMap(value, baseToString) + "";
1840
- }
1841
- if (isSymbol(value)) {
1842
- return symbolToString ? symbolToString.call(value) : "";
1843
- }
1844
- var result = value + "";
1845
- return result == "0" && 1 / value == -INFINITY ? "-0" : result;
1846
- }
1847
- module2.exports = baseToString;
1848
- }
1849
- });
1850
-
1851
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js
1852
- var require_toString = __commonJS({
1853
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js"(exports2, module2) {
1854
- "use strict";
1855
- var baseToString = require_baseToString();
1856
- function toString(value) {
1857
- return value == null ? "" : baseToString(value);
1858
- }
1859
- module2.exports = toString;
1860
- }
1861
- });
1862
-
1863
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js
1864
- var require_castPath = __commonJS({
1865
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js"(exports2, module2) {
1866
- "use strict";
1867
- var isArray = require_isArray();
1868
- var isKey = require_isKey();
1869
- var stringToPath = require_stringToPath();
1870
- var toString = require_toString();
1871
- function castPath(value, object) {
1872
- if (isArray(value)) {
1873
- return value;
1874
- }
1875
- return isKey(value, object) ? [value] : stringToPath(toString(value));
1876
- }
1877
- module2.exports = castPath;
1878
- }
1879
- });
1880
-
1881
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js
1882
- var require_toKey = __commonJS({
1883
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js"(exports2, module2) {
1884
- "use strict";
1885
- var isSymbol = require_isSymbol();
1886
- var INFINITY = 1 / 0;
1887
- function toKey(value) {
1888
- if (typeof value == "string" || isSymbol(value)) {
1889
- return value;
1890
- }
1891
- var result = value + "";
1892
- return result == "0" && 1 / value == -INFINITY ? "-0" : result;
1893
- }
1894
- module2.exports = toKey;
1895
- }
1896
- });
1897
-
1898
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js
1899
- var require_baseGet = __commonJS({
1900
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js"(exports2, module2) {
1901
- "use strict";
1902
- var castPath = require_castPath();
1903
- var toKey = require_toKey();
1904
- function baseGet(object, path) {
1905
- path = castPath(path, object);
1906
- var index = 0, length = path.length;
1907
- while (object != null && index < length) {
1908
- object = object[toKey(path[index++])];
1909
- }
1910
- return index && index == length ? object : void 0;
1911
- }
1912
- module2.exports = baseGet;
1913
- }
1914
- });
1915
-
1916
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js
1917
- var require_get = __commonJS({
1918
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js"(exports2, module2) {
1919
- "use strict";
1920
- var baseGet = require_baseGet();
1921
- function get3(object, path, defaultValue) {
1922
- var result = object == null ? void 0 : baseGet(object, path);
1923
- return result === void 0 ? defaultValue : result;
1202
+ return result;
1924
1203
  }
1925
- module2.exports = get3;
1204
+ module2.exports = arrayLikeKeys;
1926
1205
  }
1927
1206
  });
1928
1207
 
1929
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isString.js
1930
- var require_isString = __commonJS({
1931
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isString.js"(exports2, module2) {
1208
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js
1209
+ var require_isPrototype = __commonJS({
1210
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js"(exports2, module2) {
1932
1211
  "use strict";
1933
- var baseGetTag = require_baseGetTag();
1934
- var isArray = require_isArray();
1935
- var isObjectLike = require_isObjectLike();
1936
- var stringTag = "[object String]";
1937
- function isString2(value) {
1938
- return typeof value == "string" || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
1212
+ var objectProto = Object.prototype;
1213
+ function isPrototype(value) {
1214
+ var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
1215
+ return value === proto;
1939
1216
  }
1940
- module2.exports = isString2;
1217
+ module2.exports = isPrototype;
1941
1218
  }
1942
1219
  });
1943
1220
 
1944
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayAggregator.js
1945
- var require_arrayAggregator = __commonJS({
1946
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayAggregator.js"(exports2, module2) {
1221
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js
1222
+ var require_overArg = __commonJS({
1223
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js"(exports2, module2) {
1947
1224
  "use strict";
1948
- function arrayAggregator(array, setter, iteratee, accumulator) {
1949
- var index = -1, length = array == null ? 0 : array.length;
1950
- while (++index < length) {
1951
- var value = array[index];
1952
- setter(accumulator, value, iteratee(value), array);
1953
- }
1954
- return accumulator;
1225
+ function overArg(func, transform) {
1226
+ return function(arg) {
1227
+ return func(transform(arg));
1228
+ };
1955
1229
  }
1956
- module2.exports = arrayAggregator;
1230
+ module2.exports = overArg;
1957
1231
  }
1958
1232
  });
1959
1233
 
@@ -1991,6 +1265,19 @@ var require_baseKeys = __commonJS({
1991
1265
  }
1992
1266
  });
1993
1267
 
1268
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js
1269
+ var require_isArrayLike = __commonJS({
1270
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js"(exports2, module2) {
1271
+ "use strict";
1272
+ var isFunction = require_isFunction();
1273
+ var isLength = require_isLength();
1274
+ function isArrayLike(value) {
1275
+ return value != null && isLength(value.length) && !isFunction(value);
1276
+ }
1277
+ module2.exports = isArrayLike;
1278
+ }
1279
+ });
1280
+
1994
1281
  // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js
1995
1282
  var require_keys = __commonJS({
1996
1283
  "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js"(exports2, module2) {
@@ -2070,6 +1357,104 @@ var require_baseAggregator = __commonJS({
2070
1357
  }
2071
1358
  });
2072
1359
 
1360
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js
1361
+ var require_stackClear = __commonJS({
1362
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js"(exports2, module2) {
1363
+ "use strict";
1364
+ var ListCache = require_ListCache();
1365
+ function stackClear() {
1366
+ this.__data__ = new ListCache();
1367
+ this.size = 0;
1368
+ }
1369
+ module2.exports = stackClear;
1370
+ }
1371
+ });
1372
+
1373
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js
1374
+ var require_stackDelete = __commonJS({
1375
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js"(exports2, module2) {
1376
+ "use strict";
1377
+ function stackDelete(key) {
1378
+ var data = this.__data__, result = data["delete"](key);
1379
+ this.size = data.size;
1380
+ return result;
1381
+ }
1382
+ module2.exports = stackDelete;
1383
+ }
1384
+ });
1385
+
1386
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js
1387
+ var require_stackGet = __commonJS({
1388
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js"(exports2, module2) {
1389
+ "use strict";
1390
+ function stackGet(key) {
1391
+ return this.__data__.get(key);
1392
+ }
1393
+ module2.exports = stackGet;
1394
+ }
1395
+ });
1396
+
1397
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js
1398
+ var require_stackHas = __commonJS({
1399
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js"(exports2, module2) {
1400
+ "use strict";
1401
+ function stackHas(key) {
1402
+ return this.__data__.has(key);
1403
+ }
1404
+ module2.exports = stackHas;
1405
+ }
1406
+ });
1407
+
1408
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js
1409
+ var require_stackSet = __commonJS({
1410
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js"(exports2, module2) {
1411
+ "use strict";
1412
+ var ListCache = require_ListCache();
1413
+ var Map = require_Map();
1414
+ var MapCache = require_MapCache();
1415
+ var LARGE_ARRAY_SIZE = 200;
1416
+ function stackSet(key, value) {
1417
+ var data = this.__data__;
1418
+ if (data instanceof ListCache) {
1419
+ var pairs = data.__data__;
1420
+ if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
1421
+ pairs.push([key, value]);
1422
+ this.size = ++data.size;
1423
+ return this;
1424
+ }
1425
+ data = this.__data__ = new MapCache(pairs);
1426
+ }
1427
+ data.set(key, value);
1428
+ this.size = data.size;
1429
+ return this;
1430
+ }
1431
+ module2.exports = stackSet;
1432
+ }
1433
+ });
1434
+
1435
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js
1436
+ var require_Stack = __commonJS({
1437
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js"(exports2, module2) {
1438
+ "use strict";
1439
+ var ListCache = require_ListCache();
1440
+ var stackClear = require_stackClear();
1441
+ var stackDelete = require_stackDelete();
1442
+ var stackGet = require_stackGet();
1443
+ var stackHas = require_stackHas();
1444
+ var stackSet = require_stackSet();
1445
+ function Stack(entries) {
1446
+ var data = this.__data__ = new ListCache(entries);
1447
+ this.size = data.size;
1448
+ }
1449
+ Stack.prototype.clear = stackClear;
1450
+ Stack.prototype["delete"] = stackDelete;
1451
+ Stack.prototype.get = stackGet;
1452
+ Stack.prototype.has = stackHas;
1453
+ Stack.prototype.set = stackSet;
1454
+ module2.exports = Stack;
1455
+ }
1456
+ });
1457
+
2073
1458
  // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheAdd.js
2074
1459
  var require_setCacheAdd = __commonJS({
2075
1460
  "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheAdd.js"(exports2, module2) {
@@ -2198,6 +1583,16 @@ var require_equalArrays = __commonJS({
2198
1583
  }
2199
1584
  });
2200
1585
 
1586
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js
1587
+ var require_Uint8Array = __commonJS({
1588
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js"(exports2, module2) {
1589
+ "use strict";
1590
+ var root = require_root();
1591
+ var Uint8Array2 = root.Uint8Array;
1592
+ module2.exports = Uint8Array2;
1593
+ }
1594
+ });
1595
+
2201
1596
  // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapToArray.js
2202
1597
  var require_mapToArray = __commonJS({
2203
1598
  "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapToArray.js"(exports2, module2) {
@@ -2782,7 +2177,7 @@ var require_baseMatchesProperty = __commonJS({
2782
2177
  "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMatchesProperty.js"(exports2, module2) {
2783
2178
  "use strict";
2784
2179
  var baseIsEqual = require_baseIsEqual();
2785
- var get3 = require_get();
2180
+ var get2 = require_get();
2786
2181
  var hasIn = require_hasIn();
2787
2182
  var isKey = require_isKey();
2788
2183
  var isStrictComparable = require_isStrictComparable();
@@ -2795,7 +2190,7 @@ var require_baseMatchesProperty = __commonJS({
2795
2190
  return matchesStrictComparable(toKey(path), srcValue);
2796
2191
  }
2797
2192
  return function(object) {
2798
- var objValue = get3(object, path);
2193
+ var objValue = get2(object, path);
2799
2194
  return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
2800
2195
  };
2801
2196
  }
@@ -2803,6 +2198,17 @@ var require_baseMatchesProperty = __commonJS({
2803
2198
  }
2804
2199
  });
2805
2200
 
2201
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js
2202
+ var require_identity = __commonJS({
2203
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js"(exports2, module2) {
2204
+ "use strict";
2205
+ function identity(value) {
2206
+ return value;
2207
+ }
2208
+ module2.exports = identity;
2209
+ }
2210
+ });
2211
+
2806
2212
  // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseProperty.js
2807
2213
  var require_baseProperty = __commonJS({
2808
2214
  "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseProperty.js"(exports2, module2) {
@@ -2907,6 +2313,24 @@ var require_groupBy = __commonJS({
2907
2313
  }
2908
2314
  });
2909
2315
 
2316
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js
2317
+ var require_assignValue = __commonJS({
2318
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js"(exports2, module2) {
2319
+ "use strict";
2320
+ var baseAssignValue = require_baseAssignValue();
2321
+ var eq = require_eq();
2322
+ var objectProto = Object.prototype;
2323
+ var hasOwnProperty = objectProto.hasOwnProperty;
2324
+ function assignValue(object, key, value) {
2325
+ var objValue = object[key];
2326
+ if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
2327
+ baseAssignValue(object, key, value);
2328
+ }
2329
+ }
2330
+ module2.exports = assignValue;
2331
+ }
2332
+ });
2333
+
2910
2334
  // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSet.js
2911
2335
  var require_baseSet = __commonJS({
2912
2336
  "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSet.js"(exports2, module2) {
@@ -2961,10 +2385,10 @@ __export(index_exports, {
2961
2385
  CHANGELOG_ALL_FIELDS: () => CHANGELOG_ALL_FIELDS,
2962
2386
  GitChangelog: () => GitChangelog,
2963
2387
  GitChangelogFormatter: () => GitChangelogFormatter,
2964
- Plugin: () => Plugin,
2965
2388
  ReleaseContext: () => ReleaseContext,
2966
2389
  ReleaseLabel: () => ReleaseLabel,
2967
2390
  ReleaseTask: () => ReleaseTask,
2391
+ ScriptPlugin: () => import_scripts_context9.ScriptPlugin,
2968
2392
  factory: () => factory,
2969
2393
  load: () => load,
2970
2394
  loaderPluginsFromPluginTuples: () => loaderPluginsFromPluginTuples,
@@ -2974,10 +2398,7 @@ __export(index_exports, {
2974
2398
  module.exports = __toCommonJS(index_exports);
2975
2399
 
2976
2400
  // src/implments/ReleaseContext.ts
2977
- var import_scripts_context = require("@qlover/scripts-context");
2978
- var import_merge = __toESM(require_merge(), 1);
2979
2401
  var import_get = __toESM(require_get(), 1);
2980
- var import_env_loader = require("@qlover/env-loader");
2981
2402
 
2982
2403
  // src/defaults.ts
2983
2404
  var DEFAULT_SOURCE_BRANCH = "master";
@@ -2991,52 +2412,38 @@ var WORKSPACE_VERSION_SEPARATOR = "@";
2991
2412
  var BATCH_PR_BODY = "\n## ${name} ${version}\n${changelog}\n";
2992
2413
 
2993
2414
  // src/implments/ReleaseContext.ts
2994
- var DEFAULT_ENV_ORDER = [".env.local", ".env"];
2995
- var ReleaseContext = class extends import_scripts_context.FeScriptContext {
2996
- _env;
2997
- /**
2998
- * Shared Config
2999
- */
3000
- shared;
3001
- constructor(context) {
3002
- super(context);
3003
- this._env = import_env_loader.Env.searchEnv({
3004
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
3005
- logger: this.logger,
3006
- preloadList: this.feConfig.envOrder || DEFAULT_ENV_ORDER
3007
- });
3008
- this.shared = Object.assign(
3009
- {},
3010
- this.feConfig.release,
3011
- this.getDefaultShreadOptions(context.shared)
3012
- );
3013
- }
3014
- getDefaultShreadOptions(props) {
3015
- return {
3016
- rootPath: process.cwd(),
3017
- // use currentBranch by default
3018
- sourceBranch: this._env.get("FE_RELEASE_BRANCH") || this._env.get("FE_RELEASE_SOURCE_BRANCH") || DEFAULT_SOURCE_BRANCH,
3019
- releaseEnv: this._env.get("FE_RELEASE_ENV") || this._env.get("NODE_ENV") || "development",
3020
- ...props
3021
- };
2415
+ var import_scripts_context = require("@qlover/scripts-context");
2416
+ var ReleaseContext = class extends import_scripts_context.ScriptContext {
2417
+ constructor(name, options) {
2418
+ super(name, options);
2419
+ if (!this.options.rootPath) {
2420
+ this.setOptions({ rootPath: process.cwd() });
2421
+ }
2422
+ if (!this.options.sourceBranch) {
2423
+ this.setOptions({
2424
+ sourceBranch: this.env.get("FE_RELEASE_BRANCH") || this.env.get("FE_RELEASE_SOURCE_BRANCH") || DEFAULT_SOURCE_BRANCH
2425
+ });
2426
+ }
2427
+ if (!this.options.releaseEnv) {
2428
+ this.setOptions({
2429
+ releaseEnv: this.env.get("FE_RELEASE_ENV") || this.env.get("NODE_ENV") || "development"
2430
+ });
2431
+ }
3022
2432
  }
3023
2433
  get rootPath() {
3024
- return this.shared.rootPath;
2434
+ return this.getOptions("rootPath");
3025
2435
  }
3026
2436
  get sourceBranch() {
3027
- return this.shared.sourceBranch;
2437
+ return this.getOptions("sourceBranch");
3028
2438
  }
3029
2439
  get releaseEnv() {
3030
- return this.shared.releaseEnv;
3031
- }
3032
- get env() {
3033
- return this._env;
2440
+ return this.getOptions("releaseEnv");
3034
2441
  }
3035
2442
  get workspaces() {
3036
- return this.getConfig("workspaces.workspaces");
2443
+ return this.getOptions("workspaces.workspaces");
3037
2444
  }
3038
2445
  get workspace() {
3039
- return this.getConfig("workspaces.workspace");
2446
+ return this.getOptions("workspaces.workspace");
3040
2447
  }
3041
2448
  setWorkspaces(workspaces) {
3042
2449
  this.options.workspaces = {
@@ -3044,15 +2451,6 @@ var ReleaseContext = class extends import_scripts_context.FeScriptContext {
3044
2451
  workspaces
3045
2452
  };
3046
2453
  }
3047
- setConfig(config) {
3048
- this.options = (0, import_merge.default)(this.options, config);
3049
- }
3050
- getConfig(key, defaultValue) {
3051
- return (0, import_get.default)(this.options, key, defaultValue);
3052
- }
3053
- setShared(shared) {
3054
- this.shared = (0, import_merge.default)(this.shared, shared);
3055
- }
3056
2454
  getPkg(key, defaultValue) {
3057
2455
  const packageJson = this.workspace?.packageJson;
3058
2456
  if (!packageJson) {
@@ -3065,7 +2463,7 @@ var ReleaseContext = class extends import_scripts_context.FeScriptContext {
3065
2463
  }
3066
2464
  getTemplateContext() {
3067
2465
  return {
3068
- ...this.shared,
2466
+ ...this.getOptions(),
3069
2467
  ...this.workspace,
3070
2468
  publishPath: this.workspace?.path || "",
3071
2469
  // deprecated
@@ -3098,6 +2496,7 @@ function tuple(plugin, ...args) {
3098
2496
  var import_fe_corekit = require("@qlover/fe-corekit");
3099
2497
 
3100
2498
  // src/implments/ReleaseParams.ts
2499
+ var import_scripts_context2 = require("@qlover/scripts-context");
3101
2500
  var DEFAULT_RELEASE_CONFIG = {
3102
2501
  maxWorkspace: MAX_WORKSPACE,
3103
2502
  multiWorkspaceSeparator: MULTI_WORKSPACE_SEPARATOR,
@@ -3106,8 +2505,7 @@ var DEFAULT_RELEASE_CONFIG = {
3106
2505
  batchTagName: "batch-${length}-packages-${timestamp}"
3107
2506
  };
3108
2507
  var ReleaseParams = class {
3109
- constructor(shell, logger, config = {}) {
3110
- this.shell = shell;
2508
+ constructor(logger, config = {}) {
3111
2509
  this.logger = logger;
3112
2510
  this.config = {
3113
2511
  ...DEFAULT_RELEASE_CONFIG,
@@ -3121,7 +2519,7 @@ var ReleaseParams = class {
3121
2519
  throw new Error("Branch name template is not a string");
3122
2520
  }
3123
2521
  this.logger.debug("Release Branch template is:", branchNameTpl);
3124
- return this.shell.format(branchNameTpl, {
2522
+ return import_scripts_context2.Shell.format(branchNameTpl, {
3125
2523
  pkgName: releaseName,
3126
2524
  releaseName,
3127
2525
  tagName,
@@ -3135,7 +2533,7 @@ var ReleaseParams = class {
3135
2533
  throw new Error("Branch name template is not a string");
3136
2534
  }
3137
2535
  this.logger.debug("Release Batch Branch template is:", branchNameTpl);
3138
- return this.shell.format(branchNameTpl, {
2536
+ return import_scripts_context2.Shell.format(branchNameTpl, {
3139
2537
  pkgName: releaseName,
3140
2538
  releaseName,
3141
2539
  tagName,
@@ -3159,7 +2557,7 @@ var ReleaseParams = class {
3159
2557
  return composeWorkspaces[0].version;
3160
2558
  }
3161
2559
  const { batchTagName } = this.config;
3162
- return this.shell.format(batchTagName, {
2560
+ return import_scripts_context2.Shell.format(batchTagName, {
3163
2561
  length: composeWorkspaces.length,
3164
2562
  timestamp: Date.now()
3165
2563
  });
@@ -3180,7 +2578,7 @@ var ReleaseParams = class {
3180
2578
  }
3181
2579
  getPRTitle(releaseBranchParams, context) {
3182
2580
  const prTitleTpl = this.config.PRTitle || DEFAULT_PR_TITLE;
3183
- return this.shell.format(prTitleTpl, {
2581
+ return import_scripts_context2.Shell.format(prTitleTpl, {
3184
2582
  ...context,
3185
2583
  tagName: releaseBranchParams.tagName,
3186
2584
  pkgName: releaseBranchParams.releaseBranch
@@ -3195,7 +2593,7 @@ var ReleaseParams = class {
3195
2593
  getPRBody(composeWorkspaces, releaseBranchParams, context) {
3196
2594
  const PRBodyTpl = this.config.PRBody;
3197
2595
  const changelog = composeWorkspaces.length > 1 ? composeWorkspaces.map((workspace) => {
3198
- return this.shell.format(
2596
+ return import_scripts_context2.Shell.format(
3199
2597
  BATCH_PR_BODY,
3200
2598
  workspace
3201
2599
  );
@@ -3204,7 +2602,7 @@ var ReleaseParams = class {
3204
2602
  const tagName = composeWorkspaces.length === 1 ? releaseBranchParams.tagName : composeWorkspaces.map(
3205
2603
  (workspace) => `${workspace.name}${workspaceVersionSeparator}${workspace.version}`
3206
2604
  ).join(" ");
3207
- return this.shell.format(PRBodyTpl, {
2605
+ return import_scripts_context2.Shell.format(PRBodyTpl, {
3208
2606
  ...context,
3209
2607
  tagName,
3210
2608
  changelog
@@ -3213,6 +2611,7 @@ var ReleaseParams = class {
3213
2611
  };
3214
2612
 
3215
2613
  // src/plugins/githubPR/GithubManager.ts
2614
+ var import_scripts_context3 = require("@qlover/scripts-context");
3216
2615
  var import_rest = require("@octokit/rest");
3217
2616
  var GithubManager = class {
3218
2617
  constructor(context) {
@@ -3220,7 +2619,7 @@ var GithubManager = class {
3220
2619
  }
3221
2620
  _octokit = null;
3222
2621
  getGitHubUserInfo() {
3223
- const { authorName, repoName } = this.context.shared;
2622
+ const { authorName, repoName } = this.context.getOptions();
3224
2623
  if (!authorName || !repoName) {
3225
2624
  throw new Error("Author name or repo name is not set");
3226
2625
  }
@@ -3230,7 +2629,7 @@ var GithubManager = class {
3230
2629
  };
3231
2630
  }
3232
2631
  getToken() {
3233
- const { tokenRef = "GITHUB_TOKEN" } = this.context.getConfig("githubPR");
2632
+ const { tokenRef = "GITHUB_TOKEN" } = this.context.getOptions("githubPR");
3234
2633
  const token = this.context.env.get(tokenRef);
3235
2634
  if (!token) {
3236
2635
  throw new Error(
@@ -3243,7 +2642,7 @@ var GithubManager = class {
3243
2642
  if (this._octokit) {
3244
2643
  return this._octokit;
3245
2644
  }
3246
- const { timeout } = this.context.getConfig("githubPR");
2645
+ const { timeout } = this.context.getOptions("githubPR");
3247
2646
  const options = {
3248
2647
  auth: this.getToken(),
3249
2648
  request: {
@@ -3265,7 +2664,7 @@ var GithubManager = class {
3265
2664
  * @default `squash`
3266
2665
  */
3267
2666
  get autoMergeType() {
3268
- return this.context.shared.autoMergeType || DEFAULT_AUTO_MERGE_TYPE;
2667
+ return this.context.getOptions().autoMergeType || DEFAULT_AUTO_MERGE_TYPE;
3269
2668
  }
3270
2669
  /**
3271
2670
  * Dry run PR number
@@ -3273,7 +2672,7 @@ var GithubManager = class {
3273
2672
  * @default `999999`
3274
2673
  */
3275
2674
  get dryRunPRNumber() {
3276
- return this.context.getConfig("githubPR.dryRunPRNumber", "999999");
2675
+ return this.context.getOptions("githubPR.dryRunPRNumber", "999999");
3277
2676
  }
3278
2677
  /**
3279
2678
  * Auto merge release PR
@@ -3281,7 +2680,7 @@ var GithubManager = class {
3281
2680
  * @default `false`
3282
2681
  */
3283
2682
  get autoMergeReleasePR() {
3284
- return this.context.shared.autoMergeReleasePR || DEFAULT_AUTO_MERGE_RELEASE_PR;
2683
+ return this.context.getOptions("autoMergeReleasePR") || DEFAULT_AUTO_MERGE_RELEASE_PR;
3285
2684
  }
3286
2685
  /**
3287
2686
  * Automatically merges a pull request.
@@ -3296,7 +2695,7 @@ var GithubManager = class {
3296
2695
  }
3297
2696
  const mergeMethod = this.autoMergeType;
3298
2697
  if (this.context.dryRun) {
3299
- const { repoName, authorName } = this.context.shared;
2698
+ const { repoName, authorName } = this.context.getOptions();
3300
2699
  this.logger.info(
3301
2700
  `[DRY RUN] Would merge PR #${prNumber} with method '${mergeMethod}' in repo ${authorName}/${repoName}, branch ${releaseBranch}`
3302
2701
  );
@@ -3361,7 +2760,7 @@ var GithubManager = class {
3361
2760
  * @throws If the label is not valid or if the creation fails.
3362
2761
  */
3363
2762
  async createReleasePRLabel() {
3364
- const label = this.context.shared.label;
2763
+ const label = this.context.getOptions().label;
3365
2764
  if (!label || !label.name || !label.description || !label.color) {
3366
2765
  throw new Error("Label is not valid, skipping creation");
3367
2766
  }
@@ -3396,7 +2795,7 @@ var GithubManager = class {
3396
2795
  * @throws If the creation fails or if the pull request already exists.
3397
2796
  */
3398
2797
  async createReleasePR(options) {
3399
- const dryRunCreatePR = this.context.getConfig("githubPR.dryRunCreatePR");
2798
+ const dryRunCreatePR = this.context.getOptions("githubPR.dryRunCreatePR");
3400
2799
  if (dryRunCreatePR || this.context.dryRun) {
3401
2800
  this.logger.info(`[DRY RUN] Would create PR with:`, {
3402
2801
  ...options,
@@ -3448,7 +2847,7 @@ var GithubManager = class {
3448
2847
  makeLatest = true,
3449
2848
  releaseNotes,
3450
2849
  discussionCategoryName = void 0
3451
- } = this.context.getConfig("githubPR");
2850
+ } = this.context.getOptions("githubPR");
3452
2851
  const name = releaseName;
3453
2852
  const body = autoGenerate ? "" : this.truncateBody(String(releaseNotes));
3454
2853
  return {
@@ -3469,7 +2868,7 @@ var GithubManager = class {
3469
2868
  tag_name: workspace.tagName,
3470
2869
  body: workspace.changelog
3471
2870
  });
3472
- meragedOptions.name = this.shell.format(
2871
+ meragedOptions.name = import_scripts_context3.Shell.format(
3473
2872
  meragedOptions.name,
3474
2873
  workspace
3475
2874
  );
@@ -3501,92 +2900,14 @@ var GithubManager = class {
3501
2900
 
3502
2901
  // src/plugins/GitBase.ts
3503
2902
  var import_isString = __toESM(require_isString(), 1);
3504
-
3505
- // src/plugins/Plugin.ts
3506
- var import_merge2 = __toESM(require_merge(), 1);
3507
- var import_get2 = __toESM(require_get(), 1);
3508
- var Plugin = class {
3509
- constructor(context, pluginName, props = {}) {
3510
- this.context = context;
3511
- this.pluginName = pluginName;
3512
- this.props = props;
3513
- this.setConfig(this.getInitialProps(props));
3514
- }
3515
- onlyOne = true;
3516
- getInitialProps(props) {
3517
- const pluginConfig = this.context.options[this.pluginName];
3518
- const fileConfig = (0, import_get2.default)(this.context.shared, this.pluginName);
3519
- return pluginConfig || props ? (0, import_merge2.default)({}, fileConfig, props, pluginConfig) : {};
3520
- }
3521
- get logger() {
3522
- return this.context.logger;
3523
- }
3524
- get shell() {
3525
- return this.context.shell;
3526
- }
3527
- get options() {
3528
- return this.context.getConfig(this.pluginName, {});
3529
- }
3530
- getEnv(key, defaultValue) {
3531
- return this.context.env.get(key) ?? defaultValue;
3532
- }
3533
- enabled(_name, _context) {
3534
- return true;
3535
- }
3536
- getConfig(keys, defaultValue) {
3537
- if (!keys) {
3538
- return this.context.getConfig(this.pluginName, defaultValue);
3539
- }
3540
- return this.context.getConfig(
3541
- [this.pluginName, ...Array.isArray(keys) ? keys : [keys]],
3542
- defaultValue
3543
- );
3544
- }
3545
- setConfig(config) {
3546
- this.context.setConfig({
3547
- [this.pluginName]: config
3548
- });
3549
- }
3550
- onBefore(_context) {
3551
- }
3552
- onExec(_context) {
3553
- }
3554
- onSuccess(_context) {
3555
- }
3556
- onError(_context) {
3557
- }
3558
- /**
3559
- * run a step
3560
- *
3561
- * this will log the step and return the result of the task
3562
- *
3563
- * @param label - the label of the step
3564
- * @param task - the task to run
3565
- * @returns the result of the task
3566
- */
3567
- async step({ label, task }) {
3568
- this.logger.log();
3569
- this.logger.info(label);
3570
- this.logger.log();
3571
- try {
3572
- const res = await task();
3573
- this.logger.info(`${label} - success`);
3574
- return res;
3575
- } catch (e) {
3576
- this.logger.error(e);
3577
- throw e;
3578
- }
3579
- }
3580
- };
3581
-
3582
- // src/plugins/GitBase.ts
3583
- var GitBase = class extends Plugin {
2903
+ var import_scripts_context4 = require("@qlover/scripts-context");
2904
+ var GitBase = class extends import_scripts_context4.ScriptPlugin {
3584
2905
  async onBefore() {
3585
2906
  const repoInfo = await this.getUserInfo();
3586
2907
  if (!repoInfo) {
3587
2908
  throw new Error("Failed to get repoInfo");
3588
2909
  }
3589
- let currentBranch = this.context.shared.currentBranch;
2910
+ let currentBranch = this.context.options.currentBranch;
3590
2911
  if (!currentBranch) {
3591
2912
  currentBranch = await this.getCurrentBranch();
3592
2913
  }
@@ -3595,7 +2916,7 @@ var GitBase = class extends Plugin {
3595
2916
  dryRun: false
3596
2917
  });
3597
2918
  }
3598
- this.context.setShared({
2919
+ this.context.setOptions({
3599
2920
  repoName: repoInfo.repoName,
3600
2921
  authorName: repoInfo.authorName,
3601
2922
  currentBranch
@@ -3707,14 +3028,14 @@ var GitChangelog = class {
3707
3028
  * @returns
3708
3029
  */
3709
3030
  async getGitLog(options = {}) {
3710
- const { directory, noMerges = true, fileds } = options;
3031
+ const { directory, noMerges = true, fields } = options;
3711
3032
  const from = await this.resolveTag(options.from, "root");
3712
3033
  const to = await this.resolveTag(options.to, "HEAD");
3713
3034
  const range = from === to ? to : `${from}..${to}`;
3714
3035
  const gitLogOptions = {
3715
3036
  repo: ".",
3716
3037
  number: 1e3,
3717
- fields: fileds,
3038
+ fields,
3718
3039
  branch: range,
3719
3040
  file: directory,
3720
3041
  nameStatus: false,
@@ -3807,6 +3128,7 @@ var GitChangelog = class {
3807
3128
  };
3808
3129
 
3809
3130
  // src/implments/changelog/GitChangelogFormatter.ts
3131
+ var import_scripts_context5 = require("@qlover/scripts-context");
3810
3132
  var import_groupBy = __toESM(require_groupBy(), 1);
3811
3133
  var DEFAULT_TEMPLATE = "\n- ${scopeHeader} ${commitlint.message} ${commitLink} ${prLink}";
3812
3134
  var GitChangelogFormatter = class {
@@ -3858,7 +3180,7 @@ var GitChangelogFormatter = class {
3858
3180
  hash.slice(0, 7),
3859
3181
  repoUrl ? `${repoUrl}/commit/${hash}` : ""
3860
3182
  ) : "";
3861
- return this.options.shell.format(formatTemplate, {
3183
+ return import_scripts_context5.Shell.format(formatTemplate, {
3862
3184
  ...commit,
3863
3185
  scopeHeader,
3864
3186
  commitLink: hashLink,
@@ -4023,11 +3345,11 @@ var GithubChangelog = class _GithubChangelog extends GitChangelog {
4023
3345
  async transformWorkspace(workspaces, context) {
4024
3346
  const githubRootPath = [
4025
3347
  DOMAIN,
4026
- context.shared.authorName,
4027
- context.shared.repoName
3348
+ context.getOptions("authorName"),
3349
+ context.getOptions("repoName")
4028
3350
  ].join("/");
4029
3351
  const changelogProps = {
4030
- ...context.getConfig("changelog"),
3352
+ ...context.getOptions("changelog"),
4031
3353
  githubRootPath,
4032
3354
  mergePRcommit: true,
4033
3355
  shell: context.shell,
@@ -4043,7 +3365,7 @@ var GithubChangelog = class _GithubChangelog extends GitChangelog {
4043
3365
  const changelog = await githubChangelog.getFullCommit({
4044
3366
  from: workspace.lastTag ?? "",
4045
3367
  directory: workspace.path,
4046
- fileds: CHANGELOG_ALL_FIELDS
3368
+ fields: CHANGELOG_ALL_FIELDS
4047
3369
  });
4048
3370
  if (typeof changelog === "string") {
4049
3371
  return {
@@ -4065,6 +3387,7 @@ var GithubChangelog = class _GithubChangelog extends GitChangelog {
4065
3387
  };
4066
3388
 
4067
3389
  // src/plugins/githubPR/GithubPR.ts
3390
+ var import_scripts_context6 = require("@qlover/scripts-context");
4068
3391
  var DEFAULT_RELEASE_NAME = "Release ${name} v${version}";
4069
3392
  var DEFAULT_COMMIT_MESSAGE = "chore(tag): ${name} v${version}";
4070
3393
  var GithubPR = class extends GitBase {
@@ -4075,9 +3398,9 @@ var GithubPR = class extends GitBase {
4075
3398
  });
4076
3399
  this.context = context;
4077
3400
  this.githubManager = new GithubManager(this.context);
4078
- this.releaseParams = new ReleaseParams(context.shell, context.logger, {
4079
- PRTitle: this.getConfig("PRTitle", this.context.shared.PRTitle),
4080
- PRBody: this.getConfig("PRBody", this.context.shared.PRBody),
3401
+ this.releaseParams = new ReleaseParams(context.logger, {
3402
+ PRTitle: this.getConfig("PRTitle", this.context.options.PRTitle),
3403
+ PRBody: this.getConfig("PRBody", this.context.options.PRBody),
4081
3404
  ...this.props
4082
3405
  });
4083
3406
  }
@@ -4110,7 +3433,7 @@ var GithubPR = class extends GitBase {
4110
3433
  }
4111
3434
  await super.onBefore();
4112
3435
  if (this.isPublish) {
4113
- const npmToken = this.getEnv("NPM_TOKEN");
3436
+ const npmToken = this.context.getEnv("NPM_TOKEN");
4114
3437
  if (!npmToken) {
4115
3438
  throw new Error("NPM_TOKEN is not set");
4116
3439
  }
@@ -4122,7 +3445,7 @@ var GithubPR = class extends GitBase {
4122
3445
  async onExec() {
4123
3446
  const workspaces = this.context.workspaces;
4124
3447
  const githubChangelog = new GithubChangelog(
4125
- this.context.getConfig("changelog"),
3448
+ this.context.getOptions("changelog"),
4126
3449
  this.githubManager
4127
3450
  );
4128
3451
  const newWorkspaces = await this.step({
@@ -4197,7 +3520,7 @@ var GithubPR = class extends GitBase {
4197
3520
  );
4198
3521
  }
4199
3522
  async commitWorkspace(workspace, commitArgs = []) {
4200
- const commitMessage = this.shell.format(
3523
+ const commitMessage = import_scripts_context6.Shell.format(
4201
3524
  this.getConfig("commitMessage", DEFAULT_COMMIT_MESSAGE),
4202
3525
  workspace
4203
3526
  );
@@ -4216,13 +3539,14 @@ var GithubPR = class extends GitBase {
4216
3539
  async createReleaseBranch(workspaces) {
4217
3540
  const params = this.releaseParams.getReleaseBranchParams(
4218
3541
  workspaces,
3542
+ // @ts-expect-error TODO: fix this
4219
3543
  this.context.getTemplateContext()
4220
3544
  );
4221
3545
  const { tagName, releaseBranch } = params;
4222
3546
  if (typeof tagName !== "string") {
4223
3547
  throw new Error("Tag name is not a string");
4224
3548
  }
4225
- const { sourceBranch, currentBranch } = this.context.shared;
3549
+ const { sourceBranch, currentBranch } = this.context.getOptions();
4226
3550
  this.context.logger.debug("PR TagName is:", tagName);
4227
3551
  this.context.logger.debug("PR CurrentBranch is:", currentBranch);
4228
3552
  this.context.logger.debug("PR SourceBranch is:", sourceBranch);
@@ -4258,7 +3582,7 @@ var GithubPR = class extends GitBase {
4258
3582
  const label = await this.githubManager.createReleasePRLabel();
4259
3583
  let labels = [label.name];
4260
3584
  if (this.getConfig("pushChangeLabels")) {
4261
- const changeLabels = this.context.getConfig("workspaces.changeLabels");
3585
+ const changeLabels = this.context.getOptions("workspaces.changeLabels");
4262
3586
  if (Array.isArray(changeLabels) && changeLabels.length > 0) {
4263
3587
  labels.push(...changeLabels);
4264
3588
  }
@@ -4346,7 +3670,8 @@ var WorkspaceCreator = class _WorkspaceCreator {
4346
3670
  };
4347
3671
 
4348
3672
  // src/plugins/workspaces/Workspaces.ts
4349
- var Workspaces = class extends Plugin {
3673
+ var import_scripts_context7 = require("@qlover/scripts-context");
3674
+ var Workspaces = class extends import_scripts_context7.ScriptPlugin {
4350
3675
  releaseTask = null;
4351
3676
  workspacesList = [];
4352
3677
  _skip = false;
@@ -4354,8 +3679,8 @@ var Workspaces = class extends Plugin {
4354
3679
  constructor(context) {
4355
3680
  super(context, "workspaces");
4356
3681
  this.releaseLabel = new ReleaseLabel({
4357
- changePackagesLabel: this.context.shared.changePackagesLabel || "change:${name}",
4358
- packagesDirectories: this.context.shared.packagesDirectories || [],
3682
+ changePackagesLabel: this.context.options.changePackagesLabel || "change:${name}",
3683
+ packagesDirectories: this.context.options.packagesDirectories || [],
4359
3684
  compare: (changedFilePath, packagePath) => (0, import_node_path2.resolve)(changedFilePath).startsWith((0, import_node_path2.resolve)(packagePath))
4360
3685
  });
4361
3686
  }
@@ -4373,7 +3698,7 @@ var Workspaces = class extends Plugin {
4373
3698
  if (this.getConfig("skipCheckPackage") || workspaces.length === 0) {
4374
3699
  throw new Error("No changes to publish packages");
4375
3700
  }
4376
- const { publishPath } = this.context.shared;
3701
+ const publishPath = this.context.getOptions("publishPath");
4377
3702
  if (publishPath) {
4378
3703
  const targetWorkspace = workspaces.find(
4379
3704
  (workspace2) => (0, import_node_path2.resolve)(workspace2.root) === (0, import_node_path2.resolve)(publishPath)
@@ -4407,7 +3732,7 @@ var Workspaces = class extends Plugin {
4407
3732
  this.releaseTask = releaseTask;
4408
3733
  }
4409
3734
  setCurrentWorkspace(workspace, workspaces) {
4410
- this.context.setShared({
3735
+ this.context.setOptions({
4411
3736
  publishPath: workspace.path
4412
3737
  });
4413
3738
  this.setConfig({
@@ -4439,7 +3764,7 @@ var Workspaces = class extends Plugin {
4439
3764
  }
4440
3765
  getProjectWorkspaces() {
4441
3766
  const rootPath = this.context.rootPath;
4442
- const packagesDirectories = this.context.shared.packagesDirectories;
3767
+ const packagesDirectories = this.context.options.packagesDirectories;
4443
3768
  if (Array.isArray(packagesDirectories) && packagesDirectories.length > 0) {
4444
3769
  return packagesDirectories.map(
4445
3770
  (path) => WorkspaceCreator.toWorkspace({ path }, rootPath)
@@ -4663,8 +3988,9 @@ async function loaderPluginsFromPluginTuples(context, pluginsTuples, maxLimit =
4663
3988
  // src/plugins/Changelog.ts
4664
3989
  var import_path2 = require("path");
4665
3990
  var import_fs2 = require("fs");
3991
+ var import_scripts_context8 = require("@qlover/scripts-context");
4666
3992
  var contentTmplate = "---\n'${name}': '${increment}'\n---\n\n${changelog}";
4667
- var Changelog = class extends Plugin {
3993
+ var Changelog = class extends import_scripts_context8.ScriptPlugin {
4668
3994
  constructor(context, props) {
4669
3995
  super(context, "changelog", {
4670
3996
  increment: "patch",
@@ -4743,7 +4069,7 @@ var Changelog = class extends Plugin {
4743
4069
  this.context.setWorkspaces(newWorkspaces);
4744
4070
  }
4745
4071
  async restoreIgnorePackages() {
4746
- const { changedPaths = [], packages = [] } = this.context.getConfig(
4072
+ const { changedPaths = [], packages = [] } = this.context.getOptions(
4747
4073
  "workspaces"
4748
4074
  );
4749
4075
  const noChangedPackages = packages.filter((pkgPath) => !changedPaths.includes(pkgPath)).map(
@@ -4755,7 +4081,7 @@ var Changelog = class extends Plugin {
4755
4081
  }
4756
4082
  }
4757
4083
  getTagPrefix(workspace) {
4758
- return this.shell.format(
4084
+ return import_scripts_context8.Shell.format(
4759
4085
  this.getConfig("tagPrefix"),
4760
4086
  workspace
4761
4087
  );
@@ -4772,8 +4098,8 @@ var Changelog = class extends Plugin {
4772
4098
  ...baseConfig,
4773
4099
  from: tagName,
4774
4100
  directory: workspace.path,
4775
- shell: this.shell,
4776
- fileds: CHANGELOG_ALL_FIELDS,
4101
+ shell: this.context.shell,
4102
+ fields: CHANGELOG_ALL_FIELDS,
4777
4103
  logger: this.logger
4778
4104
  };
4779
4105
  const gitChangelog = new GitChangelog(props);
@@ -4788,7 +4114,7 @@ var Changelog = class extends Plugin {
4788
4114
  generateTagName(workspace) {
4789
4115
  try {
4790
4116
  const tagTemplate = this.getConfig("tagTemplate");
4791
- return this.shell.format(
4117
+ return import_scripts_context8.Shell.format(
4792
4118
  tagTemplate,
4793
4119
  workspace
4794
4120
  );
@@ -4800,7 +4126,7 @@ var Changelog = class extends Plugin {
4800
4126
  async getTagName(workspace) {
4801
4127
  try {
4802
4128
  const currentTagPattern = this.generateTagName(workspace);
4803
- const tagMatch = this.shell.format(
4129
+ const tagMatch = import_scripts_context8.Shell.format(
4804
4130
  this.getConfig("tagMatch"),
4805
4131
  workspace
4806
4132
  );
@@ -4824,7 +4150,7 @@ var Changelog = class extends Plugin {
4824
4150
  }
4825
4151
  }
4826
4152
  getIncrement() {
4827
- const lables = this.context.getConfig("workspaces.changeLabels");
4153
+ const lables = this.context.getOptions("workspaces.changeLabels");
4828
4154
  if (Array.isArray(lables) && lables.length > 0) {
4829
4155
  if (lables.includes("increment:major")) {
4830
4156
  return "major";
@@ -4842,7 +4168,7 @@ var Changelog = class extends Plugin {
4842
4168
  const changesetPath = (0, import_path2.join)(this.changesetRoot, `${changesetName}.md`);
4843
4169
  const increment = this.getIncrement();
4844
4170
  this.logger.debug("increment is:", [increment]);
4845
- const fileContent = this.shell.format(contentTmplate, {
4171
+ const fileContent = import_scripts_context8.Shell.format(contentTmplate, {
4846
4172
  ...workspace,
4847
4173
  increment
4848
4174
  });
@@ -4867,18 +4193,19 @@ var innerTuples = [
4867
4193
  tuple(Changelog, {}),
4868
4194
  tuple(GithubPR, {})
4869
4195
  ];
4196
+ var defaultName = "release";
4870
4197
  var ReleaseTask = class {
4871
4198
  constructor(options = {}, executor = new import_fe_corekit.AsyncExecutor(), defaultTuples = innerTuples) {
4872
4199
  this.executor = executor;
4873
4200
  this.defaultTuples = defaultTuples;
4874
- this.context = new ReleaseContext(options);
4201
+ this.context = new ReleaseContext(defaultName, options);
4875
4202
  }
4876
4203
  context;
4877
4204
  getContext() {
4878
4205
  return this.context;
4879
4206
  }
4880
4207
  async usePlugins(externalTuples) {
4881
- externalTuples = externalTuples || this.context.shared.plugins || [];
4208
+ externalTuples = externalTuples || this.context.options.plugins || [];
4882
4209
  const plugins = await loaderPluginsFromPluginTuples(this.context, [
4883
4210
  ...this.defaultTuples,
4884
4211
  ...externalTuples
@@ -4906,6 +4233,9 @@ var ReleaseTask = class {
4906
4233
  }
4907
4234
  };
4908
4235
 
4236
+ // src/index.ts
4237
+ var import_scripts_context9 = require("@qlover/scripts-context");
4238
+
4909
4239
  // src/utils/args.ts
4910
4240
  var import_set = __toESM(require_set(), 1);
4911
4241
  function reduceOptions(opts, commonKey) {
@@ -4923,10 +4253,10 @@ function reduceOptions(opts, commonKey) {
4923
4253
  CHANGELOG_ALL_FIELDS,
4924
4254
  GitChangelog,
4925
4255
  GitChangelogFormatter,
4926
- Plugin,
4927
4256
  ReleaseContext,
4928
4257
  ReleaseLabel,
4929
4258
  ReleaseTask,
4259
+ ScriptPlugin,
4930
4260
  factory,
4931
4261
  load,
4932
4262
  loaderPluginsFromPluginTuples,