@orion-js/models 4.0.0-next.2 → 4.0.0-next.3

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.js CHANGED
@@ -4,7 +4,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
7
  var __commonJS = (cb, mod) => function __require() {
9
8
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
9
  };
@@ -85,7 +84,6 @@ var require_getRawTag = __commonJS({
85
84
  }
86
85
  return result;
87
86
  }
88
- __name(getRawTag, "getRawTag");
89
87
  module.exports = getRawTag;
90
88
  }
91
89
  });
@@ -98,7 +96,6 @@ var require_objectToString = __commonJS({
98
96
  function objectToString(value) {
99
97
  return nativeObjectToString.call(value);
100
98
  }
101
- __name(objectToString, "objectToString");
102
99
  module.exports = objectToString;
103
100
  }
104
101
  });
@@ -118,7 +115,6 @@ var require_baseGetTag = __commonJS({
118
115
  }
119
116
  return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
120
117
  }
121
- __name(baseGetTag, "baseGetTag");
122
118
  module.exports = baseGetTag;
123
119
  }
124
120
  });
@@ -131,7 +127,6 @@ var require_overArg = __commonJS({
131
127
  return func(transform(arg));
132
128
  };
133
129
  }
134
- __name(overArg, "overArg");
135
130
  module.exports = overArg;
136
131
  }
137
132
  });
@@ -151,7 +146,6 @@ var require_isObjectLike = __commonJS({
151
146
  function isObjectLike(value) {
152
147
  return value != null && typeof value == "object";
153
148
  }
154
- __name(isObjectLike, "isObjectLike");
155
149
  module.exports = isObjectLike;
156
150
  }
157
151
  });
@@ -179,7 +173,6 @@ var require_isPlainObject = __commonJS({
179
173
  var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
180
174
  return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
181
175
  }
182
- __name(isPlainObject2, "isPlainObject");
183
176
  module.exports = isPlainObject2;
184
177
  }
185
178
  });
@@ -190,7 +183,6 @@ var require_isNil = __commonJS({
190
183
  function isNil2(value) {
191
184
  return value == null;
192
185
  }
193
- __name(isNil2, "isNil");
194
186
  module.exports = isNil2;
195
187
  }
196
188
  });
@@ -207,7 +199,6 @@ var require_baseFindIndex = __commonJS({
207
199
  }
208
200
  return -1;
209
201
  }
210
- __name(baseFindIndex, "baseFindIndex");
211
202
  module.exports = baseFindIndex;
212
203
  }
213
204
  });
@@ -218,7 +209,6 @@ var require_baseIsNaN = __commonJS({
218
209
  function baseIsNaN(value) {
219
210
  return value !== value;
220
211
  }
221
- __name(baseIsNaN, "baseIsNaN");
222
212
  module.exports = baseIsNaN;
223
213
  }
224
214
  });
@@ -235,7 +225,6 @@ var require_strictIndexOf = __commonJS({
235
225
  }
236
226
  return -1;
237
227
  }
238
- __name(strictIndexOf, "strictIndexOf");
239
228
  module.exports = strictIndexOf;
240
229
  }
241
230
  });
@@ -249,7 +238,6 @@ var require_baseIndexOf = __commonJS({
249
238
  function baseIndexOf(array, value, fromIndex) {
250
239
  return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex);
251
240
  }
252
- __name(baseIndexOf, "baseIndexOf");
253
241
  module.exports = baseIndexOf;
254
242
  }
255
243
  });
@@ -261,7 +249,6 @@ var require_isObject = __commonJS({
261
249
  var type = typeof value;
262
250
  return value != null && (type == "object" || type == "function");
263
251
  }
264
- __name(isObject, "isObject");
265
252
  module.exports = isObject;
266
253
  }
267
254
  });
@@ -282,7 +269,6 @@ var require_isFunction = __commonJS({
282
269
  var tag = baseGetTag(value);
283
270
  return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
284
271
  }
285
- __name(isFunction, "isFunction");
286
272
  module.exports = isFunction;
287
273
  }
288
274
  });
@@ -294,7 +280,6 @@ var require_isLength = __commonJS({
294
280
  function isLength(value) {
295
281
  return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
296
282
  }
297
- __name(isLength, "isLength");
298
283
  module.exports = isLength;
299
284
  }
300
285
  });
@@ -307,7 +292,6 @@ var require_isArrayLike = __commonJS({
307
292
  function isArrayLike(value) {
308
293
  return value != null && isLength(value.length) && !isFunction(value);
309
294
  }
310
- __name(isArrayLike, "isArrayLike");
311
295
  module.exports = isArrayLike;
312
296
  }
313
297
  });
@@ -322,7 +306,6 @@ var require_isString = __commonJS({
322
306
  function isString(value) {
323
307
  return typeof value == "string" || !isArray3(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
324
308
  }
325
- __name(isString, "isString");
326
309
  module.exports = isString;
327
310
  }
328
311
  });
@@ -337,7 +320,6 @@ var require_trimmedEndIndex = __commonJS({
337
320
  }
338
321
  return index;
339
322
  }
340
- __name(trimmedEndIndex, "trimmedEndIndex");
341
323
  module.exports = trimmedEndIndex;
342
324
  }
343
325
  });
@@ -350,7 +332,6 @@ var require_baseTrim = __commonJS({
350
332
  function baseTrim(string) {
351
333
  return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
352
334
  }
353
- __name(baseTrim, "baseTrim");
354
335
  module.exports = baseTrim;
355
336
  }
356
337
  });
@@ -364,7 +345,6 @@ var require_isSymbol = __commonJS({
364
345
  function isSymbol(value) {
365
346
  return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
366
347
  }
367
- __name(isSymbol, "isSymbol");
368
348
  module.exports = isSymbol;
369
349
  }
370
350
  });
@@ -398,7 +378,6 @@ var require_toNumber = __commonJS({
398
378
  var isBinary = reIsBinary.test(value);
399
379
  return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
400
380
  }
401
- __name(toNumber, "toNumber");
402
381
  module.exports = toNumber;
403
382
  }
404
383
  });
@@ -420,7 +399,6 @@ var require_toFinite = __commonJS({
420
399
  }
421
400
  return value === value ? value : 0;
422
401
  }
423
- __name(toFinite, "toFinite");
424
402
  module.exports = toFinite;
425
403
  }
426
404
  });
@@ -433,7 +411,6 @@ var require_toInteger = __commonJS({
433
411
  var result = toFinite(value), remainder = result % 1;
434
412
  return result === result ? remainder ? result - remainder : result : 0;
435
413
  }
436
- __name(toInteger, "toInteger");
437
414
  module.exports = toInteger;
438
415
  }
439
416
  });
@@ -448,7 +425,6 @@ var require_arrayMap = __commonJS({
448
425
  }
449
426
  return result;
450
427
  }
451
- __name(arrayMap, "arrayMap");
452
428
  module.exports = arrayMap;
453
429
  }
454
430
  });
@@ -462,7 +438,6 @@ var require_baseValues = __commonJS({
462
438
  return object[key];
463
439
  });
464
440
  }
465
- __name(baseValues, "baseValues");
466
441
  module.exports = baseValues;
467
442
  }
468
443
  });
@@ -477,7 +452,6 @@ var require_baseTimes = __commonJS({
477
452
  }
478
453
  return result;
479
454
  }
480
- __name(baseTimes, "baseTimes");
481
455
  module.exports = baseTimes;
482
456
  }
483
457
  });
@@ -491,7 +465,6 @@ var require_baseIsArguments = __commonJS({
491
465
  function baseIsArguments(value) {
492
466
  return isObjectLike(value) && baseGetTag(value) == argsTag;
493
467
  }
494
- __name(baseIsArguments, "baseIsArguments");
495
468
  module.exports = baseIsArguments;
496
469
  }
497
470
  });
@@ -519,7 +492,6 @@ var require_stubFalse = __commonJS({
519
492
  function stubFalse() {
520
493
  return false;
521
494
  }
522
- __name(stubFalse, "stubFalse");
523
495
  module.exports = stubFalse;
524
496
  }
525
497
  });
@@ -547,9 +519,8 @@ var require_isIndex = __commonJS({
547
519
  function isIndex(value, length) {
548
520
  var type = typeof value;
549
521
  length = length == null ? MAX_SAFE_INTEGER : length;
550
- return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
522
+ return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
551
523
  }
552
- __name(isIndex, "isIndex");
553
524
  module.exports = isIndex;
554
525
  }
555
526
  });
@@ -590,7 +561,6 @@ var require_baseIsTypedArray = __commonJS({
590
561
  function baseIsTypedArray(value) {
591
562
  return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
592
563
  }
593
- __name(baseIsTypedArray, "baseIsTypedArray");
594
564
  module.exports = baseIsTypedArray;
595
565
  }
596
566
  });
@@ -603,7 +573,6 @@ var require_baseUnary = __commonJS({
603
573
  return func(value);
604
574
  };
605
575
  }
606
- __name(baseUnary, "baseUnary");
607
576
  module.exports = baseUnary;
608
577
  }
609
578
  });
@@ -666,7 +635,6 @@ var require_arrayLikeKeys = __commonJS({
666
635
  }
667
636
  return result;
668
637
  }
669
- __name(arrayLikeKeys, "arrayLikeKeys");
670
638
  module.exports = arrayLikeKeys;
671
639
  }
672
640
  });
@@ -679,7 +647,6 @@ var require_isPrototype = __commonJS({
679
647
  var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
680
648
  return value === proto;
681
649
  }
682
- __name(isPrototype, "isPrototype");
683
650
  module.exports = isPrototype;
684
651
  }
685
652
  });
@@ -712,7 +679,6 @@ var require_baseKeys = __commonJS({
712
679
  }
713
680
  return result;
714
681
  }
715
- __name(baseKeys, "baseKeys");
716
682
  module.exports = baseKeys;
717
683
  }
718
684
  });
@@ -726,7 +692,6 @@ var require_keys = __commonJS({
726
692
  function keys(object) {
727
693
  return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
728
694
  }
729
- __name(keys, "keys");
730
695
  module.exports = keys;
731
696
  }
732
697
  });
@@ -739,7 +704,6 @@ var require_values = __commonJS({
739
704
  function values(object) {
740
705
  return object == null ? [] : baseValues(object, keys(object));
741
706
  }
742
- __name(values, "values");
743
707
  module.exports = values;
744
708
  }
745
709
  });
@@ -762,7 +726,6 @@ var require_includes = __commonJS({
762
726
  }
763
727
  return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
764
728
  }
765
- __name(includes2, "includes");
766
729
  module.exports = includes2;
767
730
  }
768
731
  });
@@ -774,7 +737,6 @@ var require_listCacheClear = __commonJS({
774
737
  this.__data__ = [];
775
738
  this.size = 0;
776
739
  }
777
- __name(listCacheClear, "listCacheClear");
778
740
  module.exports = listCacheClear;
779
741
  }
780
742
  });
@@ -785,7 +747,6 @@ var require_eq = __commonJS({
785
747
  function eq(value, other) {
786
748
  return value === other || value !== value && other !== other;
787
749
  }
788
- __name(eq, "eq");
789
750
  module.exports = eq;
790
751
  }
791
752
  });
@@ -803,7 +764,6 @@ var require_assocIndexOf = __commonJS({
803
764
  }
804
765
  return -1;
805
766
  }
806
- __name(assocIndexOf, "assocIndexOf");
807
767
  module.exports = assocIndexOf;
808
768
  }
809
769
  });
@@ -828,7 +788,6 @@ var require_listCacheDelete = __commonJS({
828
788
  --this.size;
829
789
  return true;
830
790
  }
831
- __name(listCacheDelete, "listCacheDelete");
832
791
  module.exports = listCacheDelete;
833
792
  }
834
793
  });
@@ -841,7 +800,6 @@ var require_listCacheGet = __commonJS({
841
800
  var data = this.__data__, index = assocIndexOf(data, key);
842
801
  return index < 0 ? void 0 : data[index][1];
843
802
  }
844
- __name(listCacheGet, "listCacheGet");
845
803
  module.exports = listCacheGet;
846
804
  }
847
805
  });
@@ -853,7 +811,6 @@ var require_listCacheHas = __commonJS({
853
811
  function listCacheHas(key) {
854
812
  return assocIndexOf(this.__data__, key) > -1;
855
813
  }
856
- __name(listCacheHas, "listCacheHas");
857
814
  module.exports = listCacheHas;
858
815
  }
859
816
  });
@@ -866,16 +823,12 @@ var require_listCacheSet = __commonJS({
866
823
  var data = this.__data__, index = assocIndexOf(data, key);
867
824
  if (index < 0) {
868
825
  ++this.size;
869
- data.push([
870
- key,
871
- value
872
- ]);
826
+ data.push([key, value]);
873
827
  } else {
874
828
  data[index][1] = value;
875
829
  }
876
830
  return this;
877
831
  }
878
- __name(listCacheSet, "listCacheSet");
879
832
  module.exports = listCacheSet;
880
833
  }
881
834
  });
@@ -896,7 +849,6 @@ var require_ListCache = __commonJS({
896
849
  this.set(entry[0], entry[1]);
897
850
  }
898
851
  }
899
- __name(ListCache, "ListCache");
900
852
  ListCache.prototype.clear = listCacheClear;
901
853
  ListCache.prototype["delete"] = listCacheDelete;
902
854
  ListCache.prototype.get = listCacheGet;
@@ -914,7 +866,6 @@ var require_stackClear = __commonJS({
914
866
  this.__data__ = new ListCache();
915
867
  this.size = 0;
916
868
  }
917
- __name(stackClear, "stackClear");
918
869
  module.exports = stackClear;
919
870
  }
920
871
  });
@@ -927,7 +878,6 @@ var require_stackDelete = __commonJS({
927
878
  this.size = data.size;
928
879
  return result;
929
880
  }
930
- __name(stackDelete, "stackDelete");
931
881
  module.exports = stackDelete;
932
882
  }
933
883
  });
@@ -938,7 +888,6 @@ var require_stackGet = __commonJS({
938
888
  function stackGet(key) {
939
889
  return this.__data__.get(key);
940
890
  }
941
- __name(stackGet, "stackGet");
942
891
  module.exports = stackGet;
943
892
  }
944
893
  });
@@ -949,7 +898,6 @@ var require_stackHas = __commonJS({
949
898
  function stackHas(key) {
950
899
  return this.__data__.has(key);
951
900
  }
952
- __name(stackHas, "stackHas");
953
901
  module.exports = stackHas;
954
902
  }
955
903
  });
@@ -974,7 +922,6 @@ var require_isMasked = __commonJS({
974
922
  function isMasked(func) {
975
923
  return !!maskSrcKey && maskSrcKey in func;
976
924
  }
977
- __name(isMasked, "isMasked");
978
925
  module.exports = isMasked;
979
926
  }
980
927
  });
@@ -997,7 +944,6 @@ var require_toSource = __commonJS({
997
944
  }
998
945
  return "";
999
946
  }
1000
- __name(toSource, "toSource");
1001
947
  module.exports = toSource;
1002
948
  }
1003
949
  });
@@ -1015,7 +961,9 @@ var require_baseIsNative = __commonJS({
1015
961
  var objectProto = Object.prototype;
1016
962
  var funcToString = funcProto.toString;
1017
963
  var hasOwnProperty = objectProto.hasOwnProperty;
1018
- var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
964
+ var reIsNative = RegExp(
965
+ "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
966
+ );
1019
967
  function baseIsNative(value) {
1020
968
  if (!isObject(value) || isMasked(value)) {
1021
969
  return false;
@@ -1023,7 +971,6 @@ var require_baseIsNative = __commonJS({
1023
971
  var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
1024
972
  return pattern.test(toSource(value));
1025
973
  }
1026
- __name(baseIsNative, "baseIsNative");
1027
974
  module.exports = baseIsNative;
1028
975
  }
1029
976
  });
@@ -1034,7 +981,6 @@ var require_getValue = __commonJS({
1034
981
  function getValue(object, key) {
1035
982
  return object == null ? void 0 : object[key];
1036
983
  }
1037
- __name(getValue, "getValue");
1038
984
  module.exports = getValue;
1039
985
  }
1040
986
  });
@@ -1048,7 +994,6 @@ var require_getNative = __commonJS({
1048
994
  var value = getValue(object, key);
1049
995
  return baseIsNative(value) ? value : void 0;
1050
996
  }
1051
- __name(getNative, "getNative");
1052
997
  module.exports = getNative;
1053
998
  }
1054
999
  });
@@ -1080,7 +1025,6 @@ var require_hashClear = __commonJS({
1080
1025
  this.__data__ = nativeCreate ? nativeCreate(null) : {};
1081
1026
  this.size = 0;
1082
1027
  }
1083
- __name(hashClear, "hashClear");
1084
1028
  module.exports = hashClear;
1085
1029
  }
1086
1030
  });
@@ -1093,7 +1037,6 @@ var require_hashDelete = __commonJS({
1093
1037
  this.size -= result ? 1 : 0;
1094
1038
  return result;
1095
1039
  }
1096
- __name(hashDelete, "hashDelete");
1097
1040
  module.exports = hashDelete;
1098
1041
  }
1099
1042
  });
@@ -1113,7 +1056,6 @@ var require_hashGet = __commonJS({
1113
1056
  }
1114
1057
  return hasOwnProperty.call(data, key) ? data[key] : void 0;
1115
1058
  }
1116
- __name(hashGet, "hashGet");
1117
1059
  module.exports = hashGet;
1118
1060
  }
1119
1061
  });
@@ -1128,7 +1070,6 @@ var require_hashHas = __commonJS({
1128
1070
  var data = this.__data__;
1129
1071
  return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
1130
1072
  }
1131
- __name(hashHas, "hashHas");
1132
1073
  module.exports = hashHas;
1133
1074
  }
1134
1075
  });
@@ -1144,7 +1085,6 @@ var require_hashSet = __commonJS({
1144
1085
  data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
1145
1086
  return this;
1146
1087
  }
1147
- __name(hashSet, "hashSet");
1148
1088
  module.exports = hashSet;
1149
1089
  }
1150
1090
  });
@@ -1165,7 +1105,6 @@ var require_Hash = __commonJS({
1165
1105
  this.set(entry[0], entry[1]);
1166
1106
  }
1167
1107
  }
1168
- __name(Hash, "Hash");
1169
1108
  Hash.prototype.clear = hashClear;
1170
1109
  Hash.prototype["delete"] = hashDelete;
1171
1110
  Hash.prototype.get = hashGet;
@@ -1189,7 +1128,6 @@ var require_mapCacheClear = __commonJS({
1189
1128
  "string": new Hash()
1190
1129
  };
1191
1130
  }
1192
- __name(mapCacheClear, "mapCacheClear");
1193
1131
  module.exports = mapCacheClear;
1194
1132
  }
1195
1133
  });
@@ -1201,7 +1139,6 @@ var require_isKeyable = __commonJS({
1201
1139
  var type = typeof value;
1202
1140
  return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
1203
1141
  }
1204
- __name(isKeyable, "isKeyable");
1205
1142
  module.exports = isKeyable;
1206
1143
  }
1207
1144
  });
@@ -1214,7 +1151,6 @@ var require_getMapData = __commonJS({
1214
1151
  var data = map.__data__;
1215
1152
  return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
1216
1153
  }
1217
- __name(getMapData, "getMapData");
1218
1154
  module.exports = getMapData;
1219
1155
  }
1220
1156
  });
@@ -1228,7 +1164,6 @@ var require_mapCacheDelete = __commonJS({
1228
1164
  this.size -= result ? 1 : 0;
1229
1165
  return result;
1230
1166
  }
1231
- __name(mapCacheDelete, "mapCacheDelete");
1232
1167
  module.exports = mapCacheDelete;
1233
1168
  }
1234
1169
  });
@@ -1240,7 +1175,6 @@ var require_mapCacheGet = __commonJS({
1240
1175
  function mapCacheGet(key) {
1241
1176
  return getMapData(this, key).get(key);
1242
1177
  }
1243
- __name(mapCacheGet, "mapCacheGet");
1244
1178
  module.exports = mapCacheGet;
1245
1179
  }
1246
1180
  });
@@ -1252,7 +1186,6 @@ var require_mapCacheHas = __commonJS({
1252
1186
  function mapCacheHas(key) {
1253
1187
  return getMapData(this, key).has(key);
1254
1188
  }
1255
- __name(mapCacheHas, "mapCacheHas");
1256
1189
  module.exports = mapCacheHas;
1257
1190
  }
1258
1191
  });
@@ -1267,7 +1200,6 @@ var require_mapCacheSet = __commonJS({
1267
1200
  this.size += data.size == size ? 0 : 1;
1268
1201
  return this;
1269
1202
  }
1270
- __name(mapCacheSet, "mapCacheSet");
1271
1203
  module.exports = mapCacheSet;
1272
1204
  }
1273
1205
  });
@@ -1288,7 +1220,6 @@ var require_MapCache = __commonJS({
1288
1220
  this.set(entry[0], entry[1]);
1289
1221
  }
1290
1222
  }
1291
- __name(MapCache, "MapCache");
1292
1223
  MapCache.prototype.clear = mapCacheClear;
1293
1224
  MapCache.prototype["delete"] = mapCacheDelete;
1294
1225
  MapCache.prototype.get = mapCacheGet;
@@ -1310,10 +1241,7 @@ var require_stackSet = __commonJS({
1310
1241
  if (data instanceof ListCache) {
1311
1242
  var pairs = data.__data__;
1312
1243
  if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
1313
- pairs.push([
1314
- key,
1315
- value
1316
- ]);
1244
+ pairs.push([key, value]);
1317
1245
  this.size = ++data.size;
1318
1246
  return this;
1319
1247
  }
@@ -1323,7 +1251,6 @@ var require_stackSet = __commonJS({
1323
1251
  this.size = data.size;
1324
1252
  return this;
1325
1253
  }
1326
- __name(stackSet, "stackSet");
1327
1254
  module.exports = stackSet;
1328
1255
  }
1329
1256
  });
@@ -1341,7 +1268,6 @@ var require_Stack = __commonJS({
1341
1268
  var data = this.__data__ = new ListCache(entries);
1342
1269
  this.size = data.size;
1343
1270
  }
1344
- __name(Stack, "Stack");
1345
1271
  Stack.prototype.clear = stackClear;
1346
1272
  Stack.prototype["delete"] = stackDelete;
1347
1273
  Stack.prototype.get = stackGet;
@@ -1363,7 +1289,6 @@ var require_arrayEach = __commonJS({
1363
1289
  }
1364
1290
  return array;
1365
1291
  }
1366
- __name(arrayEach, "arrayEach");
1367
1292
  module.exports = arrayEach;
1368
1293
  }
1369
1294
  });
@@ -1400,7 +1325,6 @@ var require_baseAssignValue = __commonJS({
1400
1325
  object[key] = value;
1401
1326
  }
1402
1327
  }
1403
- __name(baseAssignValue, "baseAssignValue");
1404
1328
  module.exports = baseAssignValue;
1405
1329
  }
1406
1330
  });
@@ -1418,7 +1342,6 @@ var require_assignValue = __commonJS({
1418
1342
  baseAssignValue(object, key, value);
1419
1343
  }
1420
1344
  }
1421
- __name(assignValue, "assignValue");
1422
1345
  module.exports = assignValue;
1423
1346
  }
1424
1347
  });
@@ -1446,7 +1369,6 @@ var require_copyObject = __commonJS({
1446
1369
  }
1447
1370
  return object;
1448
1371
  }
1449
- __name(copyObject, "copyObject");
1450
1372
  module.exports = copyObject;
1451
1373
  }
1452
1374
  });
@@ -1459,7 +1381,6 @@ var require_baseAssign = __commonJS({
1459
1381
  function baseAssign(object, source) {
1460
1382
  return object && copyObject(source, keys(source), object);
1461
1383
  }
1462
- __name(baseAssign, "baseAssign");
1463
1384
  module.exports = baseAssign;
1464
1385
  }
1465
1386
  });
@@ -1476,7 +1397,6 @@ var require_nativeKeysIn = __commonJS({
1476
1397
  }
1477
1398
  return result;
1478
1399
  }
1479
- __name(nativeKeysIn, "nativeKeysIn");
1480
1400
  module.exports = nativeKeysIn;
1481
1401
  }
1482
1402
  });
@@ -1501,7 +1421,6 @@ var require_baseKeysIn = __commonJS({
1501
1421
  }
1502
1422
  return result;
1503
1423
  }
1504
- __name(baseKeysIn, "baseKeysIn");
1505
1424
  module.exports = baseKeysIn;
1506
1425
  }
1507
1426
  });
@@ -1515,7 +1434,6 @@ var require_keysIn = __commonJS({
1515
1434
  function keysIn(object) {
1516
1435
  return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
1517
1436
  }
1518
- __name(keysIn, "keysIn");
1519
1437
  module.exports = keysIn;
1520
1438
  }
1521
1439
  });
@@ -1528,7 +1446,6 @@ var require_baseAssignIn = __commonJS({
1528
1446
  function baseAssignIn(object, source) {
1529
1447
  return object && copyObject(source, keysIn(source), object);
1530
1448
  }
1531
- __name(baseAssignIn, "baseAssignIn");
1532
1449
  module.exports = baseAssignIn;
1533
1450
  }
1534
1451
  });
@@ -1550,7 +1467,6 @@ var require_cloneBuffer = __commonJS({
1550
1467
  buffer.copy(result);
1551
1468
  return result;
1552
1469
  }
1553
- __name(cloneBuffer, "cloneBuffer");
1554
1470
  module.exports = cloneBuffer;
1555
1471
  }
1556
1472
  });
@@ -1566,7 +1482,6 @@ var require_copyArray = __commonJS({
1566
1482
  }
1567
1483
  return array;
1568
1484
  }
1569
- __name(copyArray, "copyArray");
1570
1485
  module.exports = copyArray;
1571
1486
  }
1572
1487
  });
@@ -1584,7 +1499,6 @@ var require_arrayFilter = __commonJS({
1584
1499
  }
1585
1500
  return result;
1586
1501
  }
1587
- __name(arrayFilter, "arrayFilter");
1588
1502
  module.exports = arrayFilter;
1589
1503
  }
1590
1504
  });
@@ -1595,7 +1509,6 @@ var require_stubArray = __commonJS({
1595
1509
  function stubArray() {
1596
1510
  return [];
1597
1511
  }
1598
- __name(stubArray, "stubArray");
1599
1512
  module.exports = stubArray;
1600
1513
  }
1601
1514
  });
@@ -1629,7 +1542,6 @@ var require_copySymbols = __commonJS({
1629
1542
  function copySymbols(source, object) {
1630
1543
  return copyObject(source, getSymbols(source), object);
1631
1544
  }
1632
- __name(copySymbols, "copySymbols");
1633
1545
  module.exports = copySymbols;
1634
1546
  }
1635
1547
  });
@@ -1644,7 +1556,6 @@ var require_arrayPush = __commonJS({
1644
1556
  }
1645
1557
  return array;
1646
1558
  }
1647
- __name(arrayPush, "arrayPush");
1648
1559
  module.exports = arrayPush;
1649
1560
  }
1650
1561
  });
@@ -1677,7 +1588,6 @@ var require_copySymbolsIn = __commonJS({
1677
1588
  function copySymbolsIn(source, object) {
1678
1589
  return copyObject(source, getSymbolsIn(source), object);
1679
1590
  }
1680
- __name(copySymbolsIn, "copySymbolsIn");
1681
1591
  module.exports = copySymbolsIn;
1682
1592
  }
1683
1593
  });
@@ -1691,7 +1601,6 @@ var require_baseGetAllKeys = __commonJS({
1691
1601
  var result = keysFunc(object);
1692
1602
  return isArray3(object) ? result : arrayPush(result, symbolsFunc(object));
1693
1603
  }
1694
- __name(baseGetAllKeys, "baseGetAllKeys");
1695
1604
  module.exports = baseGetAllKeys;
1696
1605
  }
1697
1606
  });
@@ -1705,7 +1614,6 @@ var require_getAllKeys = __commonJS({
1705
1614
  function getAllKeys(object) {
1706
1615
  return baseGetAllKeys(object, keys, getSymbols);
1707
1616
  }
1708
- __name(getAllKeys, "getAllKeys");
1709
1617
  module.exports = getAllKeys;
1710
1618
  }
1711
1619
  });
@@ -1719,7 +1627,6 @@ var require_getAllKeysIn = __commonJS({
1719
1627
  function getAllKeysIn(object) {
1720
1628
  return baseGetAllKeys(object, keysIn, getSymbolsIn);
1721
1629
  }
1722
- __name(getAllKeysIn, "getAllKeysIn");
1723
1630
  module.exports = getAllKeysIn;
1724
1631
  }
1725
1632
  });
@@ -1787,7 +1694,7 @@ var require_getTag = __commonJS({
1787
1694
  var weakMapCtorString = toSource(WeakMap);
1788
1695
  var getTag = baseGetTag;
1789
1696
  if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
1790
- getTag = /* @__PURE__ */ __name(function(value) {
1697
+ getTag = function(value) {
1791
1698
  var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
1792
1699
  if (ctorString) {
1793
1700
  switch (ctorString) {
@@ -1804,7 +1711,7 @@ var require_getTag = __commonJS({
1804
1711
  }
1805
1712
  }
1806
1713
  return result;
1807
- }, "getTag");
1714
+ };
1808
1715
  }
1809
1716
  module.exports = getTag;
1810
1717
  }
@@ -1823,7 +1730,6 @@ var require_initCloneArray = __commonJS({
1823
1730
  }
1824
1731
  return result;
1825
1732
  }
1826
- __name(initCloneArray, "initCloneArray");
1827
1733
  module.exports = initCloneArray;
1828
1734
  }
1829
1735
  });
@@ -1846,7 +1752,6 @@ var require_cloneArrayBuffer = __commonJS({
1846
1752
  new Uint8Array2(result).set(new Uint8Array2(arrayBuffer));
1847
1753
  return result;
1848
1754
  }
1849
- __name(cloneArrayBuffer, "cloneArrayBuffer");
1850
1755
  module.exports = cloneArrayBuffer;
1851
1756
  }
1852
1757
  });
@@ -1859,7 +1764,6 @@ var require_cloneDataView = __commonJS({
1859
1764
  var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
1860
1765
  return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
1861
1766
  }
1862
- __name(cloneDataView, "cloneDataView");
1863
1767
  module.exports = cloneDataView;
1864
1768
  }
1865
1769
  });
@@ -1873,7 +1777,6 @@ var require_cloneRegExp = __commonJS({
1873
1777
  result.lastIndex = regexp.lastIndex;
1874
1778
  return result;
1875
1779
  }
1876
- __name(cloneRegExp, "cloneRegExp");
1877
1780
  module.exports = cloneRegExp;
1878
1781
  }
1879
1782
  });
@@ -1887,7 +1790,6 @@ var require_cloneSymbol = __commonJS({
1887
1790
  function cloneSymbol(symbol) {
1888
1791
  return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
1889
1792
  }
1890
- __name(cloneSymbol, "cloneSymbol");
1891
1793
  module.exports = cloneSymbol;
1892
1794
  }
1893
1795
  });
@@ -1900,7 +1802,6 @@ var require_cloneTypedArray = __commonJS({
1900
1802
  var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
1901
1803
  return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
1902
1804
  }
1903
- __name(cloneTypedArray, "cloneTypedArray");
1904
1805
  module.exports = cloneTypedArray;
1905
1806
  }
1906
1807
  });
@@ -1965,7 +1866,6 @@ var require_initCloneByTag = __commonJS({
1965
1866
  return cloneSymbol(object);
1966
1867
  }
1967
1868
  }
1968
- __name(initCloneByTag, "initCloneByTag");
1969
1869
  module.exports = initCloneByTag;
1970
1870
  }
1971
1871
  });
@@ -1978,7 +1878,6 @@ var require_baseCreate = __commonJS({
1978
1878
  var baseCreate = /* @__PURE__ */ function() {
1979
1879
  function object() {
1980
1880
  }
1981
- __name(object, "object");
1982
1881
  return function(proto) {
1983
1882
  if (!isObject(proto)) {
1984
1883
  return {};
@@ -2005,7 +1904,6 @@ var require_initCloneObject = __commonJS({
2005
1904
  function initCloneObject(object) {
2006
1905
  return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
2007
1906
  }
2008
- __name(initCloneObject, "initCloneObject");
2009
1907
  module.exports = initCloneObject;
2010
1908
  }
2011
1909
  });
@@ -2019,7 +1917,6 @@ var require_baseIsMap = __commonJS({
2019
1917
  function baseIsMap(value) {
2020
1918
  return isObjectLike(value) && getTag(value) == mapTag;
2021
1919
  }
2022
- __name(baseIsMap, "baseIsMap");
2023
1920
  module.exports = baseIsMap;
2024
1921
  }
2025
1922
  });
@@ -2045,7 +1942,6 @@ var require_baseIsSet = __commonJS({
2045
1942
  function baseIsSet(value) {
2046
1943
  return isObjectLike(value) && getTag(value) == setTag;
2047
1944
  }
2048
- __name(baseIsSet, "baseIsSet");
2049
1945
  module.exports = baseIsSet;
2050
1946
  }
2051
1947
  });
@@ -2179,7 +2075,6 @@ var require_baseClone = __commonJS({
2179
2075
  });
2180
2076
  return result;
2181
2077
  }
2182
- __name(baseClone, "baseClone");
2183
2078
  module.exports = baseClone;
2184
2079
  }
2185
2080
  });
@@ -2193,7 +2088,6 @@ var require_cloneDeep = __commonJS({
2193
2088
  function cloneDeep2(value) {
2194
2089
  return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
2195
2090
  }
2196
- __name(cloneDeep2, "cloneDeep");
2197
2091
  module.exports = cloneDeep2;
2198
2092
  }
2199
2093
  });
@@ -2240,7 +2134,6 @@ function initItem_default({ schema, resolvers, name }, item) {
2240
2134
  }
2241
2135
  return item;
2242
2136
  }
2243
- __name(initItem_default, "default");
2244
2137
 
2245
2138
  // src/createModel/resolveParam.ts
2246
2139
  function resolveParam_default(param) {
@@ -2249,7 +2142,6 @@ function resolveParam_default(param) {
2249
2142
  if (result.default) return result.default;
2250
2143
  return result || {};
2251
2144
  }
2252
- __name(resolveParam_default, "default");
2253
2145
 
2254
2146
  // src/createModel/index.ts
2255
2147
  import { validate, clean } from "@orion-js/schema";
@@ -2257,13 +2149,13 @@ import { validate, clean } from "@orion-js/schema";
2257
2149
  // src/createModel/clone.ts
2258
2150
  var import_includes = __toESM(require_includes(), 1);
2259
2151
  var import_cloneDeep = __toESM(require_cloneDeep(), 1);
2260
- var clone = /* @__PURE__ */ __name((cloneInfo, options) => {
2152
+ var clone = (cloneInfo, options) => {
2261
2153
  const { createModel: createModel2, getSchema, getResolvers, modelOptions } = cloneInfo;
2262
2154
  return createModel2({
2263
2155
  name: options.name,
2264
2156
  clean: modelOptions.clean,
2265
2157
  validate: modelOptions.validate,
2266
- resolvers: /* @__PURE__ */ __name(() => {
2158
+ resolvers: () => {
2267
2159
  if (!options.extendResolvers) return getResolvers();
2268
2160
  return {
2269
2161
  default: {
@@ -2271,8 +2163,8 @@ var clone = /* @__PURE__ */ __name((cloneInfo, options) => {
2271
2163
  ...options.extendResolvers
2272
2164
  }
2273
2165
  };
2274
- }, "resolvers"),
2275
- schema: /* @__PURE__ */ __name(() => {
2166
+ },
2167
+ schema: () => {
2276
2168
  const oldSchema = (0, import_cloneDeep.default)(getSchema());
2277
2169
  const newSchema = {};
2278
2170
  const keys = Object.keys(oldSchema).filter((key) => {
@@ -2290,19 +2182,15 @@ var clone = /* @__PURE__ */ __name((cloneInfo, options) => {
2290
2182
  newSchema[key] = field;
2291
2183
  }
2292
2184
  }
2293
- if (!options.extendSchema) return {
2294
- default: newSchema
2295
- };
2185
+ if (!options.extendSchema) return { default: newSchema };
2296
2186
  const clonedSchema = {
2297
2187
  ...newSchema,
2298
2188
  ...options.extendSchema
2299
2189
  };
2300
- return {
2301
- default: clonedSchema
2302
- };
2303
- }, "schema")
2190
+ return { default: clonedSchema };
2191
+ }
2304
2192
  });
2305
- }, "clone");
2193
+ };
2306
2194
  var clone_default = clone;
2307
2195
 
2308
2196
  // src/createModel/modelToSchema.ts
@@ -2310,11 +2198,9 @@ var import_isArray2 = __toESM(require_isArray(), 1);
2310
2198
  function isModelSchema(type) {
2311
2199
  return type && typeof type === "object" && "__isModel" in type;
2312
2200
  }
2313
- __name(isModelSchema, "isModelSchema");
2314
2201
  function isModelArraySchema(type) {
2315
2202
  return type && (0, import_isArray2.default)(type) && typeof type[0] === "object" && "__isModel" in type[0];
2316
2203
  }
2317
- __name(isModelArraySchema, "isModelArraySchema");
2318
2204
  function modelToSchema(modelSchema, { cleanSchema = true } = {}) {
2319
2205
  const compiledSchema = {};
2320
2206
  for (const key in modelSchema) {
@@ -2329,41 +2215,27 @@ function modelToSchema(modelSchema, { cleanSchema = true } = {}) {
2329
2215
  } else if (isModelArraySchema(fieldSchema.type)) {
2330
2216
  currNode = {
2331
2217
  ...fieldSchema,
2332
- type: cleanSchema ? [
2333
- fieldSchema.type[0].getCleanSchema()
2334
- ] : [
2335
- fieldSchema.type[0].getSchema()
2336
- ]
2218
+ type: cleanSchema ? [fieldSchema.type[0].getCleanSchema()] : [fieldSchema.type[0].getSchema()]
2337
2219
  };
2338
2220
  } else {
2339
- currNode = {
2340
- ...fieldSchema,
2341
- type: fieldSchema.type
2342
- };
2221
+ currNode = { ...fieldSchema, type: fieldSchema.type };
2343
2222
  }
2344
2223
  compiledSchema[key] = currNode;
2345
2224
  }
2346
2225
  return compiledSchema;
2347
2226
  }
2348
- __name(modelToSchema, "modelToSchema");
2349
2227
  function modelToSchemaWithModel(modelSchema, model) {
2350
- const schema = modelToSchema(modelSchema, {
2351
- cleanSchema: !model
2352
- });
2228
+ const schema = modelToSchema(modelSchema, { cleanSchema: !model });
2353
2229
  if (!model) return schema;
2354
2230
  return {
2355
2231
  ...schema,
2356
2232
  __model: model
2357
2233
  };
2358
2234
  }
2359
- __name(modelToSchemaWithModel, "modelToSchemaWithModel");
2360
2235
  function modelToSchemaClean(modelSchema) {
2361
- const schema = modelToSchema(modelSchema, {
2362
- cleanSchema: true
2363
- });
2236
+ const schema = modelToSchema(modelSchema, { cleanSchema: true });
2364
2237
  return schema;
2365
2238
  }
2366
- __name(modelToSchemaClean, "modelToSchemaClean");
2367
2239
 
2368
2240
  // src/createModel/index.ts
2369
2241
  function createModel(modelOptions) {
@@ -2371,7 +2243,7 @@ function createModel(modelOptions) {
2371
2243
  let resolvedSchema = null;
2372
2244
  let resolvedCleanSchema = null;
2373
2245
  let resolvedResolvers = null;
2374
- const getSchema = /* @__PURE__ */ __name(() => {
2246
+ const getSchema = () => {
2375
2247
  if (!modelOptions.schema) return {};
2376
2248
  if (resolvedSchema) return resolvedSchema;
2377
2249
  const schema = resolveParam_default(modelOptions.schema);
@@ -2383,8 +2255,8 @@ function createModel(modelOptions) {
2383
2255
  resolvedSchema.__clean = modelOptions.validate;
2384
2256
  }
2385
2257
  return resolvedSchema;
2386
- }, "getSchema");
2387
- const getCleanSchema = /* @__PURE__ */ __name(() => {
2258
+ };
2259
+ const getCleanSchema = () => {
2388
2260
  if (!modelOptions.schema) return {};
2389
2261
  if (resolvedCleanSchema) return resolvedCleanSchema;
2390
2262
  const schema = resolveParam_default(modelOptions.schema);
@@ -2396,22 +2268,18 @@ function createModel(modelOptions) {
2396
2268
  resolvedCleanSchema.__clean = modelOptions.validate;
2397
2269
  }
2398
2270
  return resolvedCleanSchema;
2399
- }, "getCleanSchema");
2400
- const getResolvers = /* @__PURE__ */ __name(() => {
2271
+ };
2272
+ const getResolvers = () => {
2401
2273
  if (!modelOptions.resolvers) return {};
2402
2274
  if (resolvedResolvers) return resolvedResolvers;
2403
2275
  resolvedResolvers = resolveParam_default(modelOptions.resolvers);
2404
2276
  return resolvedResolvers;
2405
- }, "getResolvers");
2406
- const modelInitItem = /* @__PURE__ */ __name((item) => {
2277
+ };
2278
+ const modelInitItem = (item) => {
2407
2279
  const schema = getSchema();
2408
2280
  const resolvers = getResolvers();
2409
- return initItem_default({
2410
- schema,
2411
- resolvers,
2412
- name
2413
- }, item);
2414
- }, "modelInitItem");
2281
+ return initItem_default({ schema, resolvers, name }, item);
2282
+ };
2415
2283
  const model = {
2416
2284
  __isModel: true,
2417
2285
  name,
@@ -2419,33 +2287,35 @@ function createModel(modelOptions) {
2419
2287
  getCleanSchema,
2420
2288
  getResolvers,
2421
2289
  initItem: modelInitItem,
2422
- validate: /* @__PURE__ */ __name(async (doc) => {
2290
+ validate: async (doc) => {
2423
2291
  const schema = getSchema();
2424
2292
  return await validate(schema, doc);
2425
- }, "validate"),
2426
- clean: /* @__PURE__ */ __name(async (doc) => {
2293
+ },
2294
+ clean: async (doc) => {
2427
2295
  const schema = getSchema();
2428
2296
  return await clean(schema, doc);
2429
- }, "clean"),
2430
- cleanAndValidate: /* @__PURE__ */ __name(async (doc) => {
2297
+ },
2298
+ cleanAndValidate: async (doc) => {
2431
2299
  const schema = getSchema();
2432
2300
  const cleaned = await clean(schema, doc);
2433
2301
  await validate(schema, cleaned);
2434
2302
  return cleaned;
2435
- }, "cleanAndValidate"),
2436
- clone: /* @__PURE__ */ __name((cloneOptions) => {
2437
- return clone_default({
2438
- createModel,
2439
- getSchema,
2440
- getResolvers,
2441
- modelOptions
2442
- }, cloneOptions);
2443
- }, "clone"),
2303
+ },
2304
+ clone: (cloneOptions) => {
2305
+ return clone_default(
2306
+ {
2307
+ createModel,
2308
+ getSchema,
2309
+ getResolvers,
2310
+ modelOptions
2311
+ },
2312
+ cloneOptions
2313
+ );
2314
+ },
2444
2315
  type: null
2445
2316
  };
2446
2317
  return model;
2447
2318
  }
2448
- __name(createModel, "createModel");
2449
2319
  export {
2450
2320
  createModel,
2451
2321
  modelToSchema,