bhd-components 0.10.36 → 0.10.38

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.
@@ -99084,8 +99084,257 @@ fixRegExpWellKnownSymbolLogic$2('search', function (SEARCH, nativeSearch, maybeC
99084
99084
  ];
99085
99085
  });
99086
99086
 
99087
- var call$8 = functionCall;
99087
+ var DESCRIPTORS$7 = descriptors;
99088
+ var globalThis$a = globalThis_1;
99088
99089
  var uncurryThis$d = functionUncurryThis;
99090
+ var isForced$3 = isForced_1;
99091
+ var inheritIfRequired$2 = inheritIfRequired$7;
99092
+ var createNonEnumerableProperty = createNonEnumerableProperty$c;
99093
+ var create$1 = objectCreate;
99094
+ var getOwnPropertyNames$1 = objectGetOwnPropertyNames.f;
99095
+ var isPrototypeOf$2 = objectIsPrototypeOf;
99096
+ var isRegExp$1 = isRegexp;
99097
+ var toString$8 = toString$n;
99098
+ var getRegExpFlags$1 = regexpGetFlags;
99099
+ var stickyHelpers$1 = regexpStickyHelpers;
99100
+ var proxyAccessor = proxyAccessor$2;
99101
+ var defineBuiltIn$3 = defineBuiltIn$h;
99102
+ var fails$b = fails$O;
99103
+ var hasOwn$5 = hasOwnProperty_1;
99104
+ var enforceInternalState = internalState.enforce;
99105
+ var setSpecies$2 = setSpecies$4;
99106
+ var wellKnownSymbol$3 = wellKnownSymbol$s;
99107
+ var UNSUPPORTED_DOT_ALL$1 = regexpUnsupportedDotAll;
99108
+ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
99109
+
99110
+ var MATCH = wellKnownSymbol$3('match');
99111
+ var NativeRegExp = globalThis$a.RegExp;
99112
+ var RegExpPrototype$2 = NativeRegExp.prototype;
99113
+ var SyntaxError$1 = globalThis$a.SyntaxError;
99114
+ var exec$1 = uncurryThis$d(RegExpPrototype$2.exec);
99115
+ var charAt$1 = uncurryThis$d(''.charAt);
99116
+ var replace$4 = uncurryThis$d(''.replace);
99117
+ var stringIndexOf = uncurryThis$d(''.indexOf);
99118
+ var stringSlice$5 = uncurryThis$d(''.slice);
99119
+ // TODO: Use only proper RegExpIdentifierName
99120
+ var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/;
99121
+ var re1 = /a/g;
99122
+ var re2 = /a/g;
99123
+
99124
+ // "new" should create a new object, old webkit bug
99125
+ var CORRECT_NEW = new NativeRegExp(re1) !== re1;
99126
+
99127
+ var MISSED_STICKY$1 = stickyHelpers$1.MISSED_STICKY;
99128
+ var UNSUPPORTED_Y$1 = stickyHelpers$1.UNSUPPORTED_Y;
99129
+
99130
+ var BASE_FORCED = DESCRIPTORS$7 &&
99131
+ (!CORRECT_NEW || MISSED_STICKY$1 || UNSUPPORTED_DOT_ALL$1 || UNSUPPORTED_NCG || fails$b(function () {
99132
+ re2[MATCH] = false;
99133
+ // RegExp constructor can alter flags and IsRegExp works correct with @@match
99134
+ // eslint-disable-next-line sonar/inconsistent-function-call -- required for testing
99135
+ return NativeRegExp(re1) !== re1 || NativeRegExp(re2) === re2 || String(NativeRegExp(re1, 'i')) !== '/a/i';
99136
+ }));
99137
+
99138
+ var handleDotAll = function (string) {
99139
+ var length = string.length;
99140
+ var index = 0;
99141
+ var result = '';
99142
+ var brackets = false;
99143
+ var chr;
99144
+ for (; index <= length; index++) {
99145
+ chr = charAt$1(string, index);
99146
+ if (chr === '\\') {
99147
+ result += chr + charAt$1(string, ++index);
99148
+ continue;
99149
+ }
99150
+ if (!brackets && chr === '.') {
99151
+ result += '[\\s\\S]';
99152
+ } else {
99153
+ if (chr === '[') {
99154
+ brackets = true;
99155
+ } else if (chr === ']') {
99156
+ brackets = false;
99157
+ } result += chr;
99158
+ }
99159
+ } return result;
99160
+ };
99161
+
99162
+ var handleNCG = function (string) {
99163
+ var length = string.length;
99164
+ var index = 0;
99165
+ var result = '';
99166
+ var named = [];
99167
+ var names = create$1(null);
99168
+ var brackets = false;
99169
+ var ncg = false;
99170
+ var groupid = 0;
99171
+ var groupname = '';
99172
+ var chr;
99173
+ for (; index <= length; index++) {
99174
+ chr = charAt$1(string, index);
99175
+ if (chr === '\\') {
99176
+ chr += charAt$1(string, ++index);
99177
+ } else if (chr === ']') {
99178
+ brackets = false;
99179
+ } else if (!brackets) switch (true) {
99180
+ case chr === '[':
99181
+ brackets = true;
99182
+ break;
99183
+ case chr === '(':
99184
+ result += chr;
99185
+ // ignore non-capturing groups
99186
+ if (stringSlice$5(string, index + 1, index + 3) === '?:') {
99187
+ continue;
99188
+ }
99189
+ if (exec$1(IS_NCG, stringSlice$5(string, index + 1))) {
99190
+ index += 2;
99191
+ ncg = true;
99192
+ }
99193
+ groupid++;
99194
+ continue;
99195
+ case chr === '>' && ncg:
99196
+ if (groupname === '' || hasOwn$5(names, groupname)) {
99197
+ throw new SyntaxError$1('Invalid capture group name');
99198
+ }
99199
+ names[groupname] = true;
99200
+ named[named.length] = [groupname, groupid];
99201
+ ncg = false;
99202
+ groupname = '';
99203
+ continue;
99204
+ }
99205
+ if (ncg) groupname += chr;
99206
+ else result += chr;
99207
+ } return [result, named];
99208
+ };
99209
+
99210
+ // `RegExp` constructor
99211
+ // https://tc39.es/ecma262/#sec-regexp-constructor
99212
+ if (isForced$3('RegExp', BASE_FORCED)) {
99213
+ var RegExpWrapper = function RegExp(pattern, flags) {
99214
+ var thisIsRegExp = isPrototypeOf$2(RegExpPrototype$2, this);
99215
+ var patternIsRegExp = isRegExp$1(pattern);
99216
+ var flagsAreUndefined = flags === undefined;
99217
+ var groups = [];
99218
+ var rawPattern = pattern;
99219
+ var rawFlags, dotAll, sticky, handled, result, state;
99220
+
99221
+ if (!thisIsRegExp && patternIsRegExp && flagsAreUndefined && pattern.constructor === RegExpWrapper) {
99222
+ return pattern;
99223
+ }
99224
+
99225
+ if (patternIsRegExp || isPrototypeOf$2(RegExpPrototype$2, pattern)) {
99226
+ pattern = pattern.source;
99227
+ if (flagsAreUndefined) flags = getRegExpFlags$1(rawPattern);
99228
+ }
99229
+
99230
+ pattern = pattern === undefined ? '' : toString$8(pattern);
99231
+ flags = flags === undefined ? '' : toString$8(flags);
99232
+ rawPattern = pattern;
99233
+
99234
+ if (UNSUPPORTED_DOT_ALL$1 && 'dotAll' in re1) {
99235
+ dotAll = !!flags && stringIndexOf(flags, 's') > -1;
99236
+ if (dotAll) flags = replace$4(flags, /s/g, '');
99237
+ }
99238
+
99239
+ rawFlags = flags;
99240
+
99241
+ if (MISSED_STICKY$1 && 'sticky' in re1) {
99242
+ sticky = !!flags && stringIndexOf(flags, 'y') > -1;
99243
+ if (sticky && UNSUPPORTED_Y$1) flags = replace$4(flags, /y/g, '');
99244
+ }
99245
+
99246
+ if (UNSUPPORTED_NCG) {
99247
+ handled = handleNCG(pattern);
99248
+ pattern = handled[0];
99249
+ groups = handled[1];
99250
+ }
99251
+
99252
+ result = inheritIfRequired$2(NativeRegExp(pattern, flags), thisIsRegExp ? this : RegExpPrototype$2, RegExpWrapper);
99253
+
99254
+ if (dotAll || sticky || groups.length) {
99255
+ state = enforceInternalState(result);
99256
+ if (dotAll) {
99257
+ state.dotAll = true;
99258
+ state.raw = RegExpWrapper(handleDotAll(pattern), rawFlags);
99259
+ }
99260
+ if (sticky) state.sticky = true;
99261
+ if (groups.length) state.groups = groups;
99262
+ }
99263
+
99264
+ if (pattern !== rawPattern) try {
99265
+ // fails in old engines, but we have no alternatives for unsupported regex syntax
99266
+ createNonEnumerableProperty(result, 'source', rawPattern === '' ? '(?:)' : rawPattern);
99267
+ } catch (error) { /* empty */ }
99268
+
99269
+ return result;
99270
+ };
99271
+
99272
+ for (var keys = getOwnPropertyNames$1(NativeRegExp), index = 0; keys.length > index;) {
99273
+ proxyAccessor(RegExpWrapper, NativeRegExp, keys[index++]);
99274
+ }
99275
+
99276
+ RegExpPrototype$2.constructor = RegExpWrapper;
99277
+ RegExpWrapper.prototype = RegExpPrototype$2;
99278
+ defineBuiltIn$3(globalThis$a, 'RegExp', RegExpWrapper, { constructor: true });
99279
+ }
99280
+
99281
+ // https://tc39.es/ecma262/#sec-get-regexp-@@species
99282
+ setSpecies$2('RegExp');
99283
+
99284
+ var DESCRIPTORS$6 = descriptors;
99285
+ var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
99286
+ var classof$4 = classofRaw$2;
99287
+ var defineBuiltInAccessor$4 = defineBuiltInAccessor$d;
99288
+ var getInternalState$1 = internalState.get;
99289
+
99290
+ var RegExpPrototype$1 = RegExp.prototype;
99291
+ var $TypeError$6 = TypeError;
99292
+
99293
+ // `RegExp.prototype.dotAll` getter
99294
+ // https://tc39.es/ecma262/#sec-get-regexp.prototype.dotall
99295
+ if (DESCRIPTORS$6 && UNSUPPORTED_DOT_ALL) {
99296
+ defineBuiltInAccessor$4(RegExpPrototype$1, 'dotAll', {
99297
+ configurable: true,
99298
+ get: function dotAll() {
99299
+ if (this === RegExpPrototype$1) return;
99300
+ // We can't use InternalStateModule.getterFor because
99301
+ // we don't add metadata for regexps created by a literal.
99302
+ if (classof$4(this) === 'RegExp') {
99303
+ return !!getInternalState$1(this).dotAll;
99304
+ }
99305
+ throw new $TypeError$6('Incompatible receiver, RegExp required');
99306
+ }
99307
+ });
99308
+ }
99309
+
99310
+ var DESCRIPTORS$5 = descriptors;
99311
+ var MISSED_STICKY = regexpStickyHelpers.MISSED_STICKY;
99312
+ var classof$3 = classofRaw$2;
99313
+ var defineBuiltInAccessor$3 = defineBuiltInAccessor$d;
99314
+ var getInternalState = internalState.get;
99315
+
99316
+ var RegExpPrototype = RegExp.prototype;
99317
+ var $TypeError$5 = TypeError;
99318
+
99319
+ // `RegExp.prototype.sticky` getter
99320
+ // https://tc39.es/ecma262/#sec-get-regexp.prototype.sticky
99321
+ if (DESCRIPTORS$5 && MISSED_STICKY) {
99322
+ defineBuiltInAccessor$3(RegExpPrototype, 'sticky', {
99323
+ configurable: true,
99324
+ get: function sticky() {
99325
+ if (this === RegExpPrototype) return;
99326
+ // We can't use InternalStateModule.getterFor because
99327
+ // we don't add metadata for regexps created by a literal.
99328
+ if (classof$3(this) === 'RegExp') {
99329
+ return !!getInternalState(this).sticky;
99330
+ }
99331
+ throw new $TypeError$5('Incompatible receiver, RegExp required');
99332
+ }
99333
+ });
99334
+ }
99335
+
99336
+ var call$8 = functionCall;
99337
+ var uncurryThis$c = functionUncurryThis;
99089
99338
  var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
99090
99339
  var anObject$3 = anObject$l;
99091
99340
  var isNullOrUndefined$4 = isNullOrUndefined$b;
@@ -99093,21 +99342,21 @@ var requireObjectCoercible$6 = requireObjectCoercible$f;
99093
99342
  var speciesConstructor$1 = speciesConstructor$3;
99094
99343
  var advanceStringIndex$1 = advanceStringIndex$3;
99095
99344
  var toLength$3 = toLength$a;
99096
- var toString$8 = toString$n;
99345
+ var toString$7 = toString$n;
99097
99346
  var getMethod$2 = getMethod$8;
99098
99347
  var regExpExec$2 = regexpExecAbstract;
99099
- var stickyHelpers$1 = regexpStickyHelpers;
99100
- var fails$b = fails$O;
99348
+ var stickyHelpers = regexpStickyHelpers;
99349
+ var fails$a = fails$O;
99101
99350
 
99102
- var UNSUPPORTED_Y$1 = stickyHelpers$1.UNSUPPORTED_Y;
99351
+ var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
99103
99352
  var MAX_UINT32 = 0xFFFFFFFF;
99104
99353
  var min$1 = Math.min;
99105
- var push$1 = uncurryThis$d([].push);
99106
- var stringSlice$5 = uncurryThis$d(''.slice);
99354
+ var push$1 = uncurryThis$c([].push);
99355
+ var stringSlice$4 = uncurryThis$c(''.slice);
99107
99356
 
99108
99357
  // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
99109
99358
  // Weex JS has frozen built-in prototypes, so use try / catch wrapper
99110
- var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$b(function () {
99359
+ var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$a(function () {
99111
99360
  // eslint-disable-next-line regexp/no-empty-group -- required for testing
99112
99361
  var re = /(?:)/;
99113
99362
  var originalExec = re.exec;
@@ -99139,7 +99388,7 @@ fixRegExpWellKnownSymbolLogic$1('split', function (SPLIT, nativeSplit, maybeCall
99139
99388
  var splitter = isNullOrUndefined$4(separator) ? undefined : getMethod$2(separator, SPLIT);
99140
99389
  return splitter
99141
99390
  ? call$8(splitter, separator, O, limit)
99142
- : call$8(internalSplit, toString$8(O), separator, limit);
99391
+ : call$8(internalSplit, toString$7(O), separator, limit);
99143
99392
  },
99144
99393
  // `RegExp.prototype[@@split]` method
99145
99394
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@split
@@ -99148,7 +99397,7 @@ fixRegExpWellKnownSymbolLogic$1('split', function (SPLIT, nativeSplit, maybeCall
99148
99397
  // the 'y' flag.
99149
99398
  function (string, limit) {
99150
99399
  var rx = anObject$3(this);
99151
- var S = toString$8(string);
99400
+ var S = toString$7(string);
99152
99401
 
99153
99402
  if (!BUGGY) {
99154
99403
  var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
@@ -99160,10 +99409,10 @@ fixRegExpWellKnownSymbolLogic$1('split', function (SPLIT, nativeSplit, maybeCall
99160
99409
  var flags = (rx.ignoreCase ? 'i' : '') +
99161
99410
  (rx.multiline ? 'm' : '') +
99162
99411
  (rx.unicode ? 'u' : '') +
99163
- (UNSUPPORTED_Y$1 ? 'g' : 'y');
99412
+ (UNSUPPORTED_Y ? 'g' : 'y');
99164
99413
  // ^(? + rx + ) is needed, in combination with some S slicing, to
99165
99414
  // simulate the 'y' flag.
99166
- var splitter = new C(UNSUPPORTED_Y$1 ? '^(?:' + rx.source + ')' : rx, flags);
99415
+ var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
99167
99416
  var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
99168
99417
  if (lim === 0) return [];
99169
99418
  if (S.length === 0) return regExpExec$2(splitter, S) === null ? [S] : [];
@@ -99171,16 +99420,16 @@ fixRegExpWellKnownSymbolLogic$1('split', function (SPLIT, nativeSplit, maybeCall
99171
99420
  var q = 0;
99172
99421
  var A = [];
99173
99422
  while (q < S.length) {
99174
- splitter.lastIndex = UNSUPPORTED_Y$1 ? 0 : q;
99175
- var z = regExpExec$2(splitter, UNSUPPORTED_Y$1 ? stringSlice$5(S, q) : S);
99423
+ splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
99424
+ var z = regExpExec$2(splitter, UNSUPPORTED_Y ? stringSlice$4(S, q) : S);
99176
99425
  var e;
99177
99426
  if (
99178
99427
  z === null ||
99179
- (e = min$1(toLength$3(splitter.lastIndex + (UNSUPPORTED_Y$1 ? q : 0)), S.length)) === p
99428
+ (e = min$1(toLength$3(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
99180
99429
  ) {
99181
99430
  q = advanceStringIndex$1(S, q, unicodeMatching);
99182
99431
  } else {
99183
- push$1(A, stringSlice$5(S, p, q));
99432
+ push$1(A, stringSlice$4(S, p, q));
99184
99433
  if (A.length === lim) return A;
99185
99434
  for (var i = 1; i <= z.length - 1; i++) {
99186
99435
  push$1(A, z[i]);
@@ -99189,41 +99438,41 @@ fixRegExpWellKnownSymbolLogic$1('split', function (SPLIT, nativeSplit, maybeCall
99189
99438
  q = p = e;
99190
99439
  }
99191
99440
  }
99192
- push$1(A, stringSlice$5(S, p));
99441
+ push$1(A, stringSlice$4(S, p));
99193
99442
  return A;
99194
99443
  }
99195
99444
  ];
99196
- }, BUGGY || !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y$1);
99445
+ }, BUGGY || !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
99197
99446
 
99198
- var globalThis$a = globalThis_1;
99447
+ var globalThis$9 = globalThis_1;
99199
99448
 
99200
- var path$1 = globalThis$a;
99449
+ var path$1 = globalThis$9;
99201
99450
 
99202
- var uncurryThis$c = functionUncurryThis;
99451
+ var uncurryThis$b = functionUncurryThis;
99203
99452
 
99204
99453
  // `thisNumberValue` abstract operation
99205
99454
  // https://tc39.es/ecma262/#sec-thisnumbervalue
99206
- var thisNumberValue$1 = uncurryThis$c(1.0.valueOf);
99455
+ var thisNumberValue$1 = uncurryThis$b(1.0.valueOf);
99207
99456
 
99208
99457
  // a string of all valid unicode whitespaces
99209
99458
  var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
99210
99459
  '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
99211
99460
 
99212
- var uncurryThis$b = functionUncurryThis;
99461
+ var uncurryThis$a = functionUncurryThis;
99213
99462
  var requireObjectCoercible$5 = requireObjectCoercible$f;
99214
- var toString$7 = toString$n;
99463
+ var toString$6 = toString$n;
99215
99464
  var whitespaces$1 = whitespaces$2;
99216
99465
 
99217
- var replace$4 = uncurryThis$b(''.replace);
99466
+ var replace$3 = uncurryThis$a(''.replace);
99218
99467
  var ltrim = RegExp('^[' + whitespaces$1 + ']+');
99219
99468
  var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
99220
99469
 
99221
99470
  // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
99222
99471
  var createMethod$1 = function (TYPE) {
99223
99472
  return function ($this) {
99224
- var string = toString$7(requireObjectCoercible$5($this));
99225
- if (TYPE & 1) string = replace$4(string, ltrim, '');
99226
- if (TYPE & 2) string = replace$4(string, rtrim, '$1');
99473
+ var string = toString$6(requireObjectCoercible$5($this));
99474
+ if (TYPE & 1) string = replace$3(string, ltrim, '');
99475
+ if (TYPE & 2) string = replace$3(string, rtrim, '$1');
99227
99476
  return string;
99228
99477
  };
99229
99478
  };
@@ -99242,30 +99491,30 @@ var stringTrim = {
99242
99491
 
99243
99492
  var $$p = _export;
99244
99493
  var IS_PURE = isPure;
99245
- var DESCRIPTORS$7 = descriptors;
99246
- var globalThis$9 = globalThis_1;
99494
+ var DESCRIPTORS$4 = descriptors;
99495
+ var globalThis$8 = globalThis_1;
99247
99496
  var path = path$1;
99248
- var uncurryThis$a = functionUncurryThis;
99249
- var isForced$3 = isForced_1;
99250
- var hasOwn$5 = hasOwnProperty_1;
99251
- var inheritIfRequired$2 = inheritIfRequired$7;
99252
- var isPrototypeOf$2 = objectIsPrototypeOf;
99497
+ var uncurryThis$9 = functionUncurryThis;
99498
+ var isForced$2 = isForced_1;
99499
+ var hasOwn$4 = hasOwnProperty_1;
99500
+ var inheritIfRequired$1 = inheritIfRequired$7;
99501
+ var isPrototypeOf$1 = objectIsPrototypeOf;
99253
99502
  var isSymbol$1 = isSymbol$5;
99254
99503
  var toPrimitive = toPrimitive$3;
99255
- var fails$a = fails$O;
99256
- var getOwnPropertyNames$1 = objectGetOwnPropertyNames.f;
99504
+ var fails$9 = fails$O;
99505
+ var getOwnPropertyNames = objectGetOwnPropertyNames.f;
99257
99506
  var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
99258
99507
  var defineProperty$2 = objectDefineProperty.f;
99259
99508
  var thisNumberValue = thisNumberValue$1;
99260
99509
  var trim = stringTrim.trim;
99261
99510
 
99262
99511
  var NUMBER = 'Number';
99263
- var NativeNumber = globalThis$9[NUMBER];
99512
+ var NativeNumber = globalThis$8[NUMBER];
99264
99513
  path[NUMBER];
99265
99514
  var NumberPrototype = NativeNumber.prototype;
99266
- var TypeError$2 = globalThis$9.TypeError;
99267
- var stringSlice$4 = uncurryThis$a(''.slice);
99268
- var charCodeAt$1 = uncurryThis$a(''.charCodeAt);
99515
+ var TypeError$2 = globalThis$8.TypeError;
99516
+ var stringSlice$3 = uncurryThis$9(''.slice);
99517
+ var charCodeAt$1 = uncurryThis$9(''.charCodeAt);
99269
99518
 
99270
99519
  // `ToNumeric` abstract operation
99271
99520
  // https://tc39.es/ecma262/#sec-tonumeric
@@ -99303,7 +99552,7 @@ var toNumber = function (argument) {
99303
99552
  default:
99304
99553
  return +it;
99305
99554
  }
99306
- digits = stringSlice$4(it, 2);
99555
+ digits = stringSlice$3(it, 2);
99307
99556
  length = digits.length;
99308
99557
  for (index = 0; index < length; index++) {
99309
99558
  code = charCodeAt$1(digits, index);
@@ -99315,18 +99564,18 @@ var toNumber = function (argument) {
99315
99564
  } return +it;
99316
99565
  };
99317
99566
 
99318
- var FORCED$2 = isForced$3(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'));
99567
+ var FORCED$2 = isForced$2(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'));
99319
99568
 
99320
99569
  var calledWithNew = function (dummy) {
99321
99570
  // includes check on 1..constructor(foo) case
99322
- return isPrototypeOf$2(NumberPrototype, dummy) && fails$a(function () { thisNumberValue(dummy); });
99571
+ return isPrototypeOf$1(NumberPrototype, dummy) && fails$9(function () { thisNumberValue(dummy); });
99323
99572
  };
99324
99573
 
99325
99574
  // `Number` constructor
99326
99575
  // https://tc39.es/ecma262/#sec-number-constructor
99327
99576
  var NumberWrapper = function Number(value) {
99328
99577
  var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
99329
- return calledWithNew(this) ? inheritIfRequired$2(Object(n), this, NumberWrapper) : n;
99578
+ return calledWithNew(this) ? inheritIfRequired$1(Object(n), this, NumberWrapper) : n;
99330
99579
  };
99331
99580
 
99332
99581
  NumberWrapper.prototype = NumberPrototype;
@@ -99338,7 +99587,7 @@ $$p({ global: true, constructor: true, wrap: true, forced: FORCED$2 }, {
99338
99587
 
99339
99588
  // Use `internal/copy-constructor-properties` helper in `core-js@4`
99340
99589
  var copyConstructorProperties = function (target, source) {
99341
- for (var keys = DESCRIPTORS$7 ? getOwnPropertyNames$1(source) : (
99590
+ for (var keys = DESCRIPTORS$4 ? getOwnPropertyNames(source) : (
99342
99591
  // ES3:
99343
99592
  'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
99344
99593
  // ES2015 (in case, if modules with ES2015 Number statics required before):
@@ -99346,7 +99595,7 @@ var copyConstructorProperties = function (target, source) {
99346
99595
  // ESNext
99347
99596
  'fromString,range'
99348
99597
  ).split(','), j = 0, key; keys.length > j; j++) {
99349
- if (hasOwn$5(source, key = keys[j]) && !hasOwn$5(target, key)) {
99598
+ if (hasOwn$4(source, key = keys[j]) && !hasOwn$4(target, key)) {
99350
99599
  defineProperty$2(target, key, getOwnPropertyDescriptor$2(source, key));
99351
99600
  }
99352
99601
  }
@@ -99355,22 +99604,22 @@ if (FORCED$2 || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber);
99355
99604
 
99356
99605
  var $$o = _export;
99357
99606
  var call$7 = functionCall;
99358
- var uncurryThis$9 = functionUncurryThis;
99607
+ var uncurryThis$8 = functionUncurryThis;
99359
99608
  var requireObjectCoercible$4 = requireObjectCoercible$f;
99360
99609
  var isCallable$7 = isCallable$t;
99361
99610
  var isNullOrUndefined$3 = isNullOrUndefined$b;
99362
- var isRegExp$1 = isRegexp;
99363
- var toString$6 = toString$n;
99611
+ var isRegExp = isRegexp;
99612
+ var toString$5 = toString$n;
99364
99613
  var getMethod$1 = getMethod$8;
99365
- var getRegExpFlags$1 = regexpGetFlags;
99614
+ var getRegExpFlags = regexpGetFlags;
99366
99615
  var getSubstitution = getSubstitution$2;
99367
- var wellKnownSymbol$3 = wellKnownSymbol$s;
99616
+ var wellKnownSymbol$2 = wellKnownSymbol$s;
99368
99617
 
99369
- var REPLACE = wellKnownSymbol$3('replace');
99370
- var $TypeError$6 = TypeError;
99371
- var indexOf = uncurryThis$9(''.indexOf);
99372
- uncurryThis$9(''.replace);
99373
- var stringSlice$3 = uncurryThis$9(''.slice);
99618
+ var REPLACE = wellKnownSymbol$2('replace');
99619
+ var $TypeError$4 = TypeError;
99620
+ var indexOf = uncurryThis$8(''.indexOf);
99621
+ uncurryThis$8(''.replace);
99622
+ var stringSlice$2 = uncurryThis$8(''.slice);
99374
99623
  var max$1 = Math.max;
99375
99624
 
99376
99625
  // `String.prototype.replaceAll` method
@@ -99382,285 +99631,36 @@ $$o({ target: 'String', proto: true }, {
99382
99631
  var endOfLastMatch = 0;
99383
99632
  var result = '';
99384
99633
  if (!isNullOrUndefined$3(searchValue)) {
99385
- IS_REG_EXP = isRegExp$1(searchValue);
99634
+ IS_REG_EXP = isRegExp(searchValue);
99386
99635
  if (IS_REG_EXP) {
99387
- flags = toString$6(requireObjectCoercible$4(getRegExpFlags$1(searchValue)));
99388
- if (!~indexOf(flags, 'g')) throw new $TypeError$6('`.replaceAll` does not allow non-global regexes');
99636
+ flags = toString$5(requireObjectCoercible$4(getRegExpFlags(searchValue)));
99637
+ if (!~indexOf(flags, 'g')) throw new $TypeError$4('`.replaceAll` does not allow non-global regexes');
99389
99638
  }
99390
99639
  replacer = getMethod$1(searchValue, REPLACE);
99391
99640
  if (replacer) return call$7(replacer, searchValue, O, replaceValue);
99392
99641
  }
99393
- string = toString$6(O);
99394
- searchString = toString$6(searchValue);
99642
+ string = toString$5(O);
99643
+ searchString = toString$5(searchValue);
99395
99644
  functionalReplace = isCallable$7(replaceValue);
99396
- if (!functionalReplace) replaceValue = toString$6(replaceValue);
99645
+ if (!functionalReplace) replaceValue = toString$5(replaceValue);
99397
99646
  searchLength = searchString.length;
99398
99647
  advanceBy = max$1(1, searchLength);
99399
99648
  position = indexOf(string, searchString);
99400
99649
  while (position !== -1) {
99401
99650
  replacement = functionalReplace
99402
- ? toString$6(replaceValue(searchString, position, string))
99651
+ ? toString$5(replaceValue(searchString, position, string))
99403
99652
  : getSubstitution(searchString, string, position, [], undefined, replaceValue);
99404
- result += stringSlice$3(string, endOfLastMatch, position) + replacement;
99653
+ result += stringSlice$2(string, endOfLastMatch, position) + replacement;
99405
99654
  endOfLastMatch = position + searchLength;
99406
99655
  position = position + advanceBy > string.length ? -1 : indexOf(string, searchString, position + advanceBy);
99407
99656
  }
99408
99657
  if (endOfLastMatch < string.length) {
99409
- result += stringSlice$3(string, endOfLastMatch);
99658
+ result += stringSlice$2(string, endOfLastMatch);
99410
99659
  }
99411
99660
  return result;
99412
99661
  }
99413
99662
  });
99414
99663
 
99415
- var DESCRIPTORS$6 = descriptors;
99416
- var globalThis$8 = globalThis_1;
99417
- var uncurryThis$8 = functionUncurryThis;
99418
- var isForced$2 = isForced_1;
99419
- var inheritIfRequired$1 = inheritIfRequired$7;
99420
- var createNonEnumerableProperty = createNonEnumerableProperty$c;
99421
- var create$1 = objectCreate;
99422
- var getOwnPropertyNames = objectGetOwnPropertyNames.f;
99423
- var isPrototypeOf$1 = objectIsPrototypeOf;
99424
- var isRegExp = isRegexp;
99425
- var toString$5 = toString$n;
99426
- var getRegExpFlags = regexpGetFlags;
99427
- var stickyHelpers = regexpStickyHelpers;
99428
- var proxyAccessor = proxyAccessor$2;
99429
- var defineBuiltIn$3 = defineBuiltIn$h;
99430
- var fails$9 = fails$O;
99431
- var hasOwn$4 = hasOwnProperty_1;
99432
- var enforceInternalState = internalState.enforce;
99433
- var setSpecies$2 = setSpecies$4;
99434
- var wellKnownSymbol$2 = wellKnownSymbol$s;
99435
- var UNSUPPORTED_DOT_ALL$1 = regexpUnsupportedDotAll;
99436
- var UNSUPPORTED_NCG = regexpUnsupportedNcg;
99437
-
99438
- var MATCH = wellKnownSymbol$2('match');
99439
- var NativeRegExp = globalThis$8.RegExp;
99440
- var RegExpPrototype$2 = NativeRegExp.prototype;
99441
- var SyntaxError$1 = globalThis$8.SyntaxError;
99442
- var exec$1 = uncurryThis$8(RegExpPrototype$2.exec);
99443
- var charAt$1 = uncurryThis$8(''.charAt);
99444
- var replace$3 = uncurryThis$8(''.replace);
99445
- var stringIndexOf = uncurryThis$8(''.indexOf);
99446
- var stringSlice$2 = uncurryThis$8(''.slice);
99447
- // TODO: Use only proper RegExpIdentifierName
99448
- var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/;
99449
- var re1 = /a/g;
99450
- var re2 = /a/g;
99451
-
99452
- // "new" should create a new object, old webkit bug
99453
- var CORRECT_NEW = new NativeRegExp(re1) !== re1;
99454
-
99455
- var MISSED_STICKY$1 = stickyHelpers.MISSED_STICKY;
99456
- var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
99457
-
99458
- var BASE_FORCED = DESCRIPTORS$6 &&
99459
- (!CORRECT_NEW || MISSED_STICKY$1 || UNSUPPORTED_DOT_ALL$1 || UNSUPPORTED_NCG || fails$9(function () {
99460
- re2[MATCH] = false;
99461
- // RegExp constructor can alter flags and IsRegExp works correct with @@match
99462
- // eslint-disable-next-line sonar/inconsistent-function-call -- required for testing
99463
- return NativeRegExp(re1) !== re1 || NativeRegExp(re2) === re2 || String(NativeRegExp(re1, 'i')) !== '/a/i';
99464
- }));
99465
-
99466
- var handleDotAll = function (string) {
99467
- var length = string.length;
99468
- var index = 0;
99469
- var result = '';
99470
- var brackets = false;
99471
- var chr;
99472
- for (; index <= length; index++) {
99473
- chr = charAt$1(string, index);
99474
- if (chr === '\\') {
99475
- result += chr + charAt$1(string, ++index);
99476
- continue;
99477
- }
99478
- if (!brackets && chr === '.') {
99479
- result += '[\\s\\S]';
99480
- } else {
99481
- if (chr === '[') {
99482
- brackets = true;
99483
- } else if (chr === ']') {
99484
- brackets = false;
99485
- } result += chr;
99486
- }
99487
- } return result;
99488
- };
99489
-
99490
- var handleNCG = function (string) {
99491
- var length = string.length;
99492
- var index = 0;
99493
- var result = '';
99494
- var named = [];
99495
- var names = create$1(null);
99496
- var brackets = false;
99497
- var ncg = false;
99498
- var groupid = 0;
99499
- var groupname = '';
99500
- var chr;
99501
- for (; index <= length; index++) {
99502
- chr = charAt$1(string, index);
99503
- if (chr === '\\') {
99504
- chr += charAt$1(string, ++index);
99505
- } else if (chr === ']') {
99506
- brackets = false;
99507
- } else if (!brackets) switch (true) {
99508
- case chr === '[':
99509
- brackets = true;
99510
- break;
99511
- case chr === '(':
99512
- result += chr;
99513
- // ignore non-capturing groups
99514
- if (stringSlice$2(string, index + 1, index + 3) === '?:') {
99515
- continue;
99516
- }
99517
- if (exec$1(IS_NCG, stringSlice$2(string, index + 1))) {
99518
- index += 2;
99519
- ncg = true;
99520
- }
99521
- groupid++;
99522
- continue;
99523
- case chr === '>' && ncg:
99524
- if (groupname === '' || hasOwn$4(names, groupname)) {
99525
- throw new SyntaxError$1('Invalid capture group name');
99526
- }
99527
- names[groupname] = true;
99528
- named[named.length] = [groupname, groupid];
99529
- ncg = false;
99530
- groupname = '';
99531
- continue;
99532
- }
99533
- if (ncg) groupname += chr;
99534
- else result += chr;
99535
- } return [result, named];
99536
- };
99537
-
99538
- // `RegExp` constructor
99539
- // https://tc39.es/ecma262/#sec-regexp-constructor
99540
- if (isForced$2('RegExp', BASE_FORCED)) {
99541
- var RegExpWrapper = function RegExp(pattern, flags) {
99542
- var thisIsRegExp = isPrototypeOf$1(RegExpPrototype$2, this);
99543
- var patternIsRegExp = isRegExp(pattern);
99544
- var flagsAreUndefined = flags === undefined;
99545
- var groups = [];
99546
- var rawPattern = pattern;
99547
- var rawFlags, dotAll, sticky, handled, result, state;
99548
-
99549
- if (!thisIsRegExp && patternIsRegExp && flagsAreUndefined && pattern.constructor === RegExpWrapper) {
99550
- return pattern;
99551
- }
99552
-
99553
- if (patternIsRegExp || isPrototypeOf$1(RegExpPrototype$2, pattern)) {
99554
- pattern = pattern.source;
99555
- if (flagsAreUndefined) flags = getRegExpFlags(rawPattern);
99556
- }
99557
-
99558
- pattern = pattern === undefined ? '' : toString$5(pattern);
99559
- flags = flags === undefined ? '' : toString$5(flags);
99560
- rawPattern = pattern;
99561
-
99562
- if (UNSUPPORTED_DOT_ALL$1 && 'dotAll' in re1) {
99563
- dotAll = !!flags && stringIndexOf(flags, 's') > -1;
99564
- if (dotAll) flags = replace$3(flags, /s/g, '');
99565
- }
99566
-
99567
- rawFlags = flags;
99568
-
99569
- if (MISSED_STICKY$1 && 'sticky' in re1) {
99570
- sticky = !!flags && stringIndexOf(flags, 'y') > -1;
99571
- if (sticky && UNSUPPORTED_Y) flags = replace$3(flags, /y/g, '');
99572
- }
99573
-
99574
- if (UNSUPPORTED_NCG) {
99575
- handled = handleNCG(pattern);
99576
- pattern = handled[0];
99577
- groups = handled[1];
99578
- }
99579
-
99580
- result = inheritIfRequired$1(NativeRegExp(pattern, flags), thisIsRegExp ? this : RegExpPrototype$2, RegExpWrapper);
99581
-
99582
- if (dotAll || sticky || groups.length) {
99583
- state = enforceInternalState(result);
99584
- if (dotAll) {
99585
- state.dotAll = true;
99586
- state.raw = RegExpWrapper(handleDotAll(pattern), rawFlags);
99587
- }
99588
- if (sticky) state.sticky = true;
99589
- if (groups.length) state.groups = groups;
99590
- }
99591
-
99592
- if (pattern !== rawPattern) try {
99593
- // fails in old engines, but we have no alternatives for unsupported regex syntax
99594
- createNonEnumerableProperty(result, 'source', rawPattern === '' ? '(?:)' : rawPattern);
99595
- } catch (error) { /* empty */ }
99596
-
99597
- return result;
99598
- };
99599
-
99600
- for (var keys = getOwnPropertyNames(NativeRegExp), index = 0; keys.length > index;) {
99601
- proxyAccessor(RegExpWrapper, NativeRegExp, keys[index++]);
99602
- }
99603
-
99604
- RegExpPrototype$2.constructor = RegExpWrapper;
99605
- RegExpWrapper.prototype = RegExpPrototype$2;
99606
- defineBuiltIn$3(globalThis$8, 'RegExp', RegExpWrapper, { constructor: true });
99607
- }
99608
-
99609
- // https://tc39.es/ecma262/#sec-get-regexp-@@species
99610
- setSpecies$2('RegExp');
99611
-
99612
- var DESCRIPTORS$5 = descriptors;
99613
- var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
99614
- var classof$4 = classofRaw$2;
99615
- var defineBuiltInAccessor$4 = defineBuiltInAccessor$d;
99616
- var getInternalState$1 = internalState.get;
99617
-
99618
- var RegExpPrototype$1 = RegExp.prototype;
99619
- var $TypeError$5 = TypeError;
99620
-
99621
- // `RegExp.prototype.dotAll` getter
99622
- // https://tc39.es/ecma262/#sec-get-regexp.prototype.dotall
99623
- if (DESCRIPTORS$5 && UNSUPPORTED_DOT_ALL) {
99624
- defineBuiltInAccessor$4(RegExpPrototype$1, 'dotAll', {
99625
- configurable: true,
99626
- get: function dotAll() {
99627
- if (this === RegExpPrototype$1) return;
99628
- // We can't use InternalStateModule.getterFor because
99629
- // we don't add metadata for regexps created by a literal.
99630
- if (classof$4(this) === 'RegExp') {
99631
- return !!getInternalState$1(this).dotAll;
99632
- }
99633
- throw new $TypeError$5('Incompatible receiver, RegExp required');
99634
- }
99635
- });
99636
- }
99637
-
99638
- var DESCRIPTORS$4 = descriptors;
99639
- var MISSED_STICKY = regexpStickyHelpers.MISSED_STICKY;
99640
- var classof$3 = classofRaw$2;
99641
- var defineBuiltInAccessor$3 = defineBuiltInAccessor$d;
99642
- var getInternalState = internalState.get;
99643
-
99644
- var RegExpPrototype = RegExp.prototype;
99645
- var $TypeError$4 = TypeError;
99646
-
99647
- // `RegExp.prototype.sticky` getter
99648
- // https://tc39.es/ecma262/#sec-get-regexp.prototype.sticky
99649
- if (DESCRIPTORS$4 && MISSED_STICKY) {
99650
- defineBuiltInAccessor$3(RegExpPrototype, 'sticky', {
99651
- configurable: true,
99652
- get: function sticky() {
99653
- if (this === RegExpPrototype) return;
99654
- // We can't use InternalStateModule.getterFor because
99655
- // we don't add metadata for regexps created by a literal.
99656
- if (classof$3(this) === 'RegExp') {
99657
- return !!getInternalState(this).sticky;
99658
- }
99659
- throw new $TypeError$4('Incompatible receiver, RegExp required');
99660
- }
99661
- });
99662
- }
99663
-
99664
99664
  var DESCRIPTORS$3 = descriptors;
99665
99665
  var isArray$2 = isArray$5;
99666
99666
 
@@ -101344,16 +101344,86 @@ $$7({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
101344
101344
  }
101345
101345
  });
101346
101346
 
101347
+ var toIntegerOrInfinity = toIntegerOrInfinity$c;
101348
+ var toString$3 = toString$n;
101349
+ var requireObjectCoercible$3 = requireObjectCoercible$f;
101350
+
101351
+ var $RangeError = RangeError;
101352
+
101353
+ // `String.prototype.repeat` method implementation
101354
+ // https://tc39.es/ecma262/#sec-string.prototype.repeat
101355
+ var stringRepeat = function repeat(count) {
101356
+ var str = toString$3(requireObjectCoercible$3(this));
101357
+ var result = '';
101358
+ var n = toIntegerOrInfinity(count);
101359
+ if (n < 0 || n === Infinity) throw new $RangeError('Wrong number of repetitions');
101360
+ for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;
101361
+ return result;
101362
+ };
101363
+
101364
+ // https://github.com/tc39/proposal-string-pad-start-end
101365
+ var uncurryThis$1 = functionUncurryThis;
101366
+ var toLength$2 = toLength$a;
101367
+ var toString$2 = toString$n;
101368
+ var $repeat = stringRepeat;
101369
+ var requireObjectCoercible$2 = requireObjectCoercible$f;
101370
+
101371
+ var repeat = uncurryThis$1($repeat);
101372
+ var stringSlice$1 = uncurryThis$1(''.slice);
101373
+ var ceil = Math.ceil;
101374
+
101375
+ // `String.prototype.{ padStart, padEnd }` methods implementation
101376
+ var createMethod = function (IS_END) {
101377
+ return function ($this, maxLength, fillString) {
101378
+ var S = toString$2(requireObjectCoercible$2($this));
101379
+ var intMaxLength = toLength$2(maxLength);
101380
+ var stringLength = S.length;
101381
+ var fillStr = fillString === undefined ? ' ' : toString$2(fillString);
101382
+ var fillLen, stringFiller;
101383
+ if (intMaxLength <= stringLength || fillStr === '') return S;
101384
+ fillLen = intMaxLength - stringLength;
101385
+ stringFiller = repeat(fillStr, ceil(fillLen / fillStr.length));
101386
+ if (stringFiller.length > fillLen) stringFiller = stringSlice$1(stringFiller, 0, fillLen);
101387
+ return IS_END ? S + stringFiller : stringFiller + S;
101388
+ };
101389
+ };
101390
+
101391
+ var stringPad = {
101392
+ // `String.prototype.padStart` method
101393
+ // https://tc39.es/ecma262/#sec-string.prototype.padstart
101394
+ start: createMethod(false),
101395
+ // `String.prototype.padEnd` method
101396
+ // https://tc39.es/ecma262/#sec-string.prototype.padend
101397
+ end: createMethod(true)
101398
+ };
101399
+
101400
+ // https://github.com/zloirock/core-js/issues/280
101401
+ var userAgent = environmentUserAgent;
101402
+
101403
+ var stringPadWebkitBug = /Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(userAgent);
101404
+
101347
101405
  var $$6 = _export;
101348
- var uncurryThis$1 = functionUncurryThisClause;
101406
+ var $padStart = stringPad.start;
101407
+ var WEBKIT_BUG = stringPadWebkitBug;
101408
+
101409
+ // `String.prototype.padStart` method
101410
+ // https://tc39.es/ecma262/#sec-string.prototype.padstart
101411
+ $$6({ target: 'String', proto: true, forced: WEBKIT_BUG }, {
101412
+ padStart: function padStart(maxLength /* , fillString = ' ' */) {
101413
+ return $padStart(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);
101414
+ }
101415
+ });
101416
+
101417
+ var $$5 = _export;
101418
+ var uncurryThis = functionUncurryThisClause;
101349
101419
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
101350
- var toLength$2 = toLength$a;
101351
- var toString$3 = toString$n;
101420
+ var toLength$1 = toLength$a;
101421
+ var toString$1 = toString$n;
101352
101422
  var notARegExp = notARegexp;
101353
- var requireObjectCoercible$3 = requireObjectCoercible$f;
101423
+ var requireObjectCoercible$1 = requireObjectCoercible$f;
101354
101424
  var correctIsRegExpLogic = correctIsRegexpLogic;
101355
101425
 
101356
- var stringSlice$1 = uncurryThis$1(''.slice);
101426
+ var stringSlice = uncurryThis(''.slice);
101357
101427
  var min = Math.min;
101358
101428
 
101359
101429
  var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');
@@ -101365,13 +101435,13 @@ var MDN_POLYFILL_BUG = !CORRECT_IS_REGEXP_LOGIC && !!function () {
101365
101435
 
101366
101436
  // `String.prototype.startsWith` method
101367
101437
  // https://tc39.es/ecma262/#sec-string.prototype.startswith
101368
- $$6({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
101438
+ $$5({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
101369
101439
  startsWith: function startsWith(searchString /* , position = 0 */) {
101370
- var that = toString$3(requireObjectCoercible$3(this));
101440
+ var that = toString$1(requireObjectCoercible$1(this));
101371
101441
  notARegExp(searchString);
101372
- var index = toLength$2(min(arguments.length > 1 ? arguments[1] : undefined, that.length));
101373
- var search = toString$3(searchString);
101374
- return stringSlice$1(that, index, index + search.length) === search;
101442
+ var index = toLength$1(min(arguments.length > 1 ? arguments[1] : undefined, that.length));
101443
+ var search = toString$1(searchString);
101444
+ return stringSlice(that, index, index + search.length) === search;
101375
101445
  }
101376
101446
  });
101377
101447
 
@@ -101391,13 +101461,13 @@ var stringTrimForced = function (METHOD_NAME) {
101391
101461
  });
101392
101462
  };
101393
101463
 
101394
- var $$5 = _export;
101464
+ var $$4 = _export;
101395
101465
  var $trim = stringTrim.trim;
101396
101466
  var forcedStringTrimMethod = stringTrimForced;
101397
101467
 
101398
101468
  // `String.prototype.trim` method
101399
101469
  // https://tc39.es/ecma262/#sec-string.prototype.trim
101400
- $$5({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
101470
+ $$4({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
101401
101471
  trim: function trim() {
101402
101472
  return $trim(this);
101403
101473
  }
@@ -102600,15 +102670,15 @@ function systemToComponent(systemSpec, map, Root) {
102600
102670
  };
102601
102671
  }
102602
102672
 
102603
- function c$1(){return c$1=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);}return t},c$1.apply(this,arguments)}function m(t,e){if(null==t)return {};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)e.indexOf(n=i[o])>=0||(r[n]=t[n]);return r}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function f$2(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return (n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return "Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var p,h,g="undefined"!=typeof document?useLayoutEffect$2:useEffect;!function(t){t[t.DEBUG=0]="DEBUG",t[t.INFO=1]="INFO",t[t.WARN=2]="WARN",t[t.ERROR=3]="ERROR";}(h||(h={}));var v$1=((p={})[h.DEBUG]="debug",p[h.INFO]="log",p[h.WARN]="warn",p[h.ERROR]="error",p),S$1=system(function(){var t=statefulStream(h.ERROR);return {log:statefulStream(function(n,o,r){var i;void 0===r&&(r=h.INFO),r>=(null!=(i=("undefined"==typeof globalThis?window:globalThis).VIRTUOSO_LOG_LEVEL)?i:getValue(t))&&console[v$1[r]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",n,o);}),logLevel:t}},[],{singleton:!0});function C(t,e){void 0===e&&(e=!0);var n=useRef(null),o=function(t){};if("undefined"!=typeof ResizeObserver){var r=new ResizeObserver(function(e){var n=e[0].target;null!==n.offsetParent&&t(n);});o=function(t){t&&e?(r.observe(t),n.current=t):(n.current&&r.unobserve(n.current),n.current=null);};}return {ref:n,callbackRef:o}}function I$1(t,e){return void 0===e&&(e=!0),C(t,e).callbackRef}function T$1(t,e,n,o,r,i,a){return C(function(n){for(var l=function(t,e,n,o){var r=t.length;if(0===r)return null;for(var i=[],a=0;a<r;a++){var l=t.item(a);if(l&&void 0!==l.dataset.index){var s=parseInt(l.dataset.index),u=parseFloat(l.dataset.knownSize),c=e(l,"offsetHeight");if(0===c&&o("Zero-sized element, this should not happen",{child:l},h.ERROR),c!==u){var m=i[i.length-1];0===i.length||m.size!==c||m.endIndex!==s-1?i.push({startIndex:s,endIndex:s,size:c}):i[i.length-1].endIndex++;}}}return i}(n.children,e,0,r),s=n.parentElement;!s.dataset.virtuosoScroller;)s=s.parentElement;var u="window"===s.firstElementChild.dataset.viewportType,c=a?a.scrollTop:u?window.pageYOffset||document.documentElement.scrollTop:s.scrollTop,m=a?a.scrollHeight:u?document.documentElement.scrollHeight:s.scrollHeight,d=a?a.offsetHeight:u?window.innerHeight:s.offsetHeight;o({scrollTop:Math.max(c,0),scrollHeight:m,viewportHeight:d}),null==i||i(function(t,e,n){return "normal"===e||null!=e&&e.endsWith("px")||n("row-gap was not resolved to pixel value correctly",e,h.WARN),"normal"===e?0:parseInt(null!=e?e:"0",10)}(0,getComputedStyle(n).rowGap,r)),null!==l&&t(l);},n)}function w(t,e){return Math.round(t.getBoundingClientRect()[e])}function x(t,e){return Math.abs(t-e)<1.01}function b(t,n,o,l,s){void 0===l&&(l=noop);var c=useRef(null),m=useRef(null),d=useRef(null),f=useRef(!1),p=useCallback(function(e){var o=e.target,r=o===window||o===document,i=r?window.pageYOffset||document.documentElement.scrollTop:o.scrollTop,a=r?document.documentElement.scrollHeight:o.scrollHeight,l=r?window.innerHeight:o.offsetHeight,s=function(){t({scrollTop:Math.max(i,0),scrollHeight:a,viewportHeight:l});};f.current?flushSync(s):s(),f.current=!1,null!==m.current&&(i===m.current||i<=0||i===a-l)&&(m.current=null,n(!0),d.current&&(clearTimeout(d.current),d.current=null));},[t,n]);return useEffect(function(){var t=s||c.current;return l(s||c.current),p({target:t}),t.addEventListener("scroll",p,{passive:!0}),function(){l(null),t.removeEventListener("scroll",p);}},[c,p,o,l,s]),{scrollerRef:c,scrollByCallback:function(t){f.current=!0,c.current.scrollBy(t);},scrollToCallback:function(e){var o=c.current;if(o&&(!("offsetHeight"in o)||0!==o.offsetHeight)){var r,i,a,l="smooth"===e.behavior;if(o===window?(i=Math.max(w(document.documentElement,"height"),document.documentElement.scrollHeight),r=window.innerHeight,a=document.documentElement.scrollTop):(i=o.scrollHeight,r=w(o,"height"),a=o.scrollTop),e.top=Math.ceil(Math.max(Math.min(i-r,e.top),0)),x(r,i)||e.top===a)return t({scrollTop:a,scrollHeight:i,viewportHeight:r}),void(l&&n(!0));l?(m.current=e.top,d.current&&clearTimeout(d.current),d.current=setTimeout(function(){d.current=null,m.current=null,n(!0);},1e3)):m.current=null,o.scrollTo(e);}}}}var y$1=system(function(){var t=stream(),n=stream(),o=statefulStream(0),r=stream(),i=statefulStream(0),a=stream(),l=stream(),s=statefulStream(0),u=statefulStream(0),c=statefulStream(0),m=statefulStream(0),d=stream(),f=stream(),p=statefulStream(!1),h=statefulStream(!1);return connect(pipe(t,map(function(t){return t.scrollTop})),n),connect(pipe(t,map(function(t){return t.scrollHeight})),l),connect(n,i),{scrollContainerState:t,scrollTop:n,viewportHeight:a,headerHeight:s,fixedHeaderHeight:u,fixedFooterHeight:c,footerHeight:m,scrollHeight:l,smoothScrollTargetReached:r,react18ConcurrentRendering:h,scrollTo:d,scrollBy:f,statefulScrollTop:i,deviation:o,scrollingInProgress:p}},[],{singleton:!0}),H$1={lvl:0};function E$1(t,e,n,o,r){return void 0===o&&(o=H$1),void 0===r&&(r=H$1),{k:t,v:e,lvl:n,l:o,r:r}}function R(t){return t===H$1}function L$1(){return H$1}function F$1(t,e){if(R(t))return H$1;var n=t.k,o=t.l,r=t.r;if(e===n){if(R(o))return r;if(R(r))return o;var i=O(o);return U$1(W(t,{k:i[0],v:i[1],l:M$1(o)}))}return U$1(W(t,e<n?{l:F$1(o,e)}:{r:F$1(r,e)}))}function k(t,e,n){if(void 0===n&&(n="k"),R(t))return [-Infinity,void 0];if(t[n]===e)return [t.k,t.v];if(t[n]<e){var o=k(t.r,e,n);return -Infinity===o[0]?[t.k,t.v]:o}return k(t.l,e,n)}function z$1(t,e,n){return R(t)?E$1(e,n,1):e===t.k?W(t,{k:e,v:n}):function(t){return D$1(G(t))}(W(t,e<t.k?{l:z$1(t.l,e,n)}:{r:z$1(t.r,e,n)}))}function B(t,e,n){if(R(t))return [];var o=t.k,r=t.v,i=t.r,a=[];return o>e&&(a=a.concat(B(t.l,e,n))),o>=e&&o<=n&&a.push({k:o,v:r}),o<=n&&(a=a.concat(B(i,e,n))),a}function P$1(t){return R(t)?[]:[].concat(P$1(t.l),[{k:t.k,v:t.v}],P$1(t.r))}function O(t){return R(t.r)?[t.k,t.v]:O(t.r)}function M$1(t){return R(t.r)?t.l:U$1(W(t,{r:M$1(t.r)}))}function W(t,e){return E$1(void 0!==e.k?e.k:t.k,void 0!==e.v?e.v:t.v,void 0!==e.lvl?e.lvl:t.lvl,void 0!==e.l?e.l:t.l,void 0!==e.r?e.r:t.r)}function V$1(t){return R(t)||t.lvl>t.r.lvl}function U$1(t){var e=t.l,n=t.r,o=t.lvl;if(n.lvl>=o-1&&e.lvl>=o-1)return t;if(o>n.lvl+1){if(V$1(e))return G(W(t,{lvl:o-1}));if(R(e)||R(e.r))throw new Error("Unexpected empty nodes");return W(e.r,{l:W(e,{r:e.r.l}),r:W(t,{l:e.r.r,lvl:o-1}),lvl:o})}if(V$1(t))return D$1(W(t,{lvl:o-1}));if(R(n)||R(n.l))throw new Error("Unexpected empty nodes");var r=n.l,i=V$1(r)?n.lvl-1:n.lvl;return W(r,{l:W(t,{r:r.l,lvl:o-1}),r:D$1(W(n,{l:r.r,lvl:i})),lvl:r.lvl+1})}function A$1(t,e,n){return R(t)?[]:N(B(t,k(t,e)[0],n),function(t){return {index:t.k,value:t.v}})}function N(t,e){var n=t.length;if(0===n)return [];for(var o=e(t[0]),r=o.index,i=o.value,a=[],l=1;l<n;l++){var s=e(t[l]),u=s.index,c=s.value;a.push({start:r,end:u-1,value:i}),r=u,i=c;}return a.push({start:r,end:Infinity,value:i}),a}function D$1(t){var e=t.r,n=t.lvl;return R(e)||R(e.r)||e.lvl!==n||e.r.lvl!==n?t:W(e,{l:W(t,{r:e.l}),lvl:n+1})}function G(t){var e=t.l;return R(e)||e.lvl!==t.lvl?t:W(e,{r:W(t,{l:e.r})})}function _$1(t,e,n,o){void 0===o&&(o=0);for(var r=t.length-1;o<=r;){var i=Math.floor((o+r)/2),a=n(t[i],e);if(0===a)return i;if(-1===a){if(r-o<2)return i-1;r=i-1;}else {if(r===o)return i;o=i+1;}}throw new Error("Failed binary finding record in array - "+t.join(",")+", searched for "+e)}function j(t,e,n){return t[_$1(t,e,n)]}var K=system(function(){return {recalcInProgress:statefulStream(!1)}},[],{singleton:!0});function Y$1(t){var e=t.size,n=t.startIndex,o=t.endIndex;return function(t){return t.start===n&&(t.end===o||Infinity===t.end)&&t.value===e}}function q(t,e){var n=t.index;return e===n?0:e<n?-1:1}function Z$1(t,e){var n=t.offset;return e===n?0:e<n?-1:1}function J(t){return {index:t.index,value:t}}function $$4(t,e,n,o){var r=t,i=0,a=0,l=0,s=0;if(0!==e){l=r[s=_$1(r,e-1,q)].offset;var u=k(n,e-1);i=u[0],a=u[1],r.length&&r[s].size===k(n,e)[1]&&(s-=1),r=r.slice(0,s+1);}else r=[];for(var c,m=f$2(A$1(n,e,Infinity));!(c=m()).done;){var d=c.value,p=d.start,h=d.value,g=p-i,v=g*a+l+g*o;r.push({offset:v,size:h,index:p}),i=p,l=v,a=h;}return {offsetTree:r,lastIndex:i,lastOffset:l,lastSize:a}}function Q(t,e){var n=e[0],o=e[1],r=e[3];n.length>0&&(0, e[2])("received item sizes",n,h.DEBUG);var i=t.sizeTree,a=i,l=0;if(o.length>0&&R(i)&&2===n.length){var s=n[0].size,u=n[1].size;a=o.reduce(function(t,e){return z$1(z$1(t,e,s),e+1,u)},a);}else {var c=function(t,e){for(var n,o=R(t)?0:Infinity,r=f$2(e);!(n=r()).done;){var i=n.value,a=i.size,l=i.startIndex,s=i.endIndex;if(o=Math.min(o,l),R(t))t=z$1(t,0,a);else {var u=A$1(t,l-1,s+1);if(!u.some(Y$1(i))){for(var c,m=!1,d=!1,p=f$2(u);!(c=p()).done;){var h=c.value,g=h.start,v=h.end,S=h.value;m?(s>=g||a===S)&&(t=F$1(t,g)):(d=S!==a,m=!0),v>s&&s>=g&&S!==a&&(t=z$1(t,s+1,S));}d&&(t=z$1(t,l,a));}}}return [t,o]}(a,n);a=c[0],l=c[1];}if(a===i)return t;var m=$$4(t.offsetTree,l,a,r),d=m.offsetTree;return {sizeTree:a,offsetTree:d,lastIndex:m.lastIndex,lastOffset:m.lastOffset,lastSize:m.lastSize,groupOffsetTree:o.reduce(function(t,e){return z$1(t,e,X$1(e,d,r))},L$1()),groupIndices:o}}function X$1(t,e,n){if(0===e.length)return 0;var o=j(e,t,q),r=t-o.index,i=o.size*r+(r-1)*n+o.offset;return i>0?i+n:i}function tt$1(t,e,n){if(function(t){return void 0!==t.groupIndex}(t))return e.groupIndices[t.groupIndex]+1;var o=et("LAST"===t.index?n:t.index,e);return Math.max(0,o,Math.min(n,o))}function et(t,e){if(!nt(e))return t;for(var n=0;e.groupIndices[n]<=t+n;)n++;return t+n}function nt(t){return !R(t.groupOffsetTree)}var ot={offsetHeight:"height",offsetWidth:"width"},rt=system(function(t){var n=t[0].log,o=t[1].recalcInProgress,r=stream(),i=stream(),a=statefulStreamFromEmitter(i,0),l=stream(),s=stream(),u=statefulStream(0),m=statefulStream([]),d=statefulStream(void 0),f=statefulStream(void 0),p=statefulStream(function(t,e){return w(t,ot[e])}),g=statefulStream(void 0),v=statefulStream(0),S={offsetTree:[],sizeTree:L$1(),groupOffsetTree:L$1(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]},C=statefulStreamFromEmitter(pipe(r,withLatestFrom(m,n,v),scan(Q,S),distinctUntilChanged()),S);connect(pipe(m,filter(function(t){return t.length>0}),withLatestFrom(C,v),map(function(t){var e=t[0],n=t[1],o=t[2],r=e.reduce(function(t,e,r){return z$1(t,e,X$1(e,n.offsetTree,o)||r)},L$1());return c$1({},n,{groupIndices:e,groupOffsetTree:r})})),C),connect(pipe(i,withLatestFrom(C),filter(function(t){return t[0]<t[1].lastIndex}),map(function(t){var e=t[1];return [{startIndex:t[0],endIndex:e.lastIndex,size:e.lastSize}]})),r),connect(d,f);var I=statefulStreamFromEmitter(pipe(d,map(function(t){return void 0===t})),!0);connect(pipe(f,filter(function(t){return void 0!==t&&R(getValue(C).sizeTree)}),map(function(t){return [{startIndex:0,endIndex:0,size:t}]})),r);var T=streamFromEmitter(pipe(r,withLatestFrom(C),scan(function(t,e){var n=e[1];return {changed:n!==t.sizes,sizes:n}},{changed:!1,sizes:S}),map(function(t){return t.changed})));subscribe(pipe(u,scan(function(t,e){return {diff:t.prev-e,prev:e}},{diff:0,prev:0}),map(function(t){return t.diff})),function(t){t>0?(publish(o,!0),publish(l,t)):t<0&&publish(s,t);}),subscribe(pipe(u,withLatestFrom(n)),function(t){t[0]<0&&(0, t[1])("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:u},h.ERROR);});var x=streamFromEmitter(l);connect(pipe(l,withLatestFrom(C),map(function(t){var e=t[0],n=t[1];if(n.groupIndices.length>0)throw new Error("Virtuoso: prepending items does not work with groups");return P$1(n.sizeTree).reduce(function(t,n){var o=n.k,r=n.v;return {ranges:[].concat(t.ranges,[{startIndex:t.prevIndex,endIndex:o+e-1,size:t.prevSize}]),prevIndex:o+e,prevSize:r}},{ranges:[],prevIndex:0,prevSize:n.lastSize}).ranges})),r);var b=streamFromEmitter(pipe(s,withLatestFrom(C,v),map(function(t){return X$1(-t[0],t[1].offsetTree,t[2])})));return connect(pipe(s,withLatestFrom(C,v),map(function(t){var e=t[0],n=t[1],o=t[2];if(n.groupIndices.length>0)throw new Error("Virtuoso: shifting items does not work with groups");var r=P$1(n.sizeTree).reduce(function(t,n){var o=n.v;return z$1(t,Math.max(0,n.k+e),o)},L$1());return c$1({},n,{sizeTree:r},$$4(n.offsetTree,0,r,o))})),C),{data:g,totalCount:i,sizeRanges:r,groupIndices:m,defaultItemSize:f,fixedItemSize:d,unshiftWith:l,shiftWith:s,shiftWithOffset:b,beforeUnshiftWith:x,firstItemIndex:u,gap:v,sizes:C,listRefresh:T,statefulTotalCount:a,trackItemSizes:I,itemSize:p}},tup(S$1,K),{singleton:!0}),it="undefined"!=typeof document&&"scrollBehavior"in document.documentElement.style;function at(t){var e="number"==typeof t?{index:t}:t;return e.align||(e.align="start"),e.behavior&&it||(e.behavior="auto"),e.offset||(e.offset=0),e}var lt=system(function(t){var n=t[0],o=n.sizes,r=n.totalCount,i=n.listRefresh,a=n.gap,l=t[1],s=l.scrollingInProgress,u=l.viewportHeight,c=l.scrollTo,m=l.smoothScrollTargetReached,d=l.headerHeight,f=l.footerHeight,p=l.fixedHeaderHeight,g=l.fixedFooterHeight,v=t[2].log,S=stream(),C=statefulStream(0),I=null,T=null,w=null;function x(){I&&(I(),I=null),w&&(w(),w=null),T&&(clearTimeout(T),T=null),publish(s,!1);}return connect(pipe(S,withLatestFrom(o,u,r,C,d,f,v),withLatestFrom(a,p,g),map(function(t){var n=t[0],o=n[0],r=n[1],a=n[2],l=n[3],u=n[4],c=n[5],d=n[6],f=n[7],p=t[1],g=t[2],v=t[3],C=at(o),b=C.align,y=C.behavior,H=C.offset,E=l-1,R=tt$1(C,r,E),L=X$1(R,r.offsetTree,p)+c;"end"===b?(L+=g+k(r.sizeTree,R)[1]-a+v,R===E&&(L+=d)):"center"===b?L+=(g+k(r.sizeTree,R)[1]-a+v)/2:L-=u,H&&(L+=H);var F=function(t){x(),t?(f("retrying to scroll to",{location:o},h.DEBUG),publish(S,o)):f("list did not change, scroll successful",{},h.DEBUG);};if(x(),"smooth"===y){var z=!1;w=subscribe(i,function(t){z=z||t;}),I=handleNext(m,function(){F(z);});}else I=handleNext(pipe(i,function(t){var e=setTimeout(function(){t(!1);},150);return function(n){n&&(t(!0),clearTimeout(e));}}),F);return T=setTimeout(function(){x();},1200),publish(s,!0),f("scrolling from index to",{index:R,top:L,behavior:y},h.DEBUG),{top:L,behavior:y}})),c),{scrollToIndex:S,topListHeight:C}},tup(rt,y$1,S$1),{singleton:!0}),st="up",ut={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},ct=system(function(t){var n=t[0],o=n.scrollContainerState,r=n.scrollTop,i=n.viewportHeight,a=n.headerHeight,l=n.footerHeight,s=n.scrollBy,u=statefulStream(!1),c=statefulStream(!0),m=stream(),d=stream(),f=statefulStream(4),p=statefulStream(0),h=statefulStreamFromEmitter(pipe(merge(pipe(duc(r),skip(1),mapTo(!0)),pipe(duc(r),skip(1),mapTo(!1),debounceTime(100))),distinctUntilChanged()),!1),g=statefulStreamFromEmitter(pipe(merge(pipe(s,mapTo(!0)),pipe(s,mapTo(!1),debounceTime(200))),distinctUntilChanged()),!1);connect(pipe(combineLatest(duc(r),duc(p)),map(function(t){return t[0]<=t[1]}),distinctUntilChanged()),c),connect(pipe(c,throttleTime(50)),d);var v=streamFromEmitter(pipe(combineLatest(o,duc(i),duc(a),duc(l),duc(f)),scan(function(t,e){var n,o,r=e[0],i=r.scrollTop,a=r.scrollHeight,l=e[1],s={viewportHeight:l,scrollTop:i,scrollHeight:a};return i+l-a>-e[4]?(i>t.state.scrollTop?(n="SCROLLED_DOWN",o=t.state.scrollTop-i):(n="SIZE_DECREASED",o=t.state.scrollTop-i||t.scrollTopDelta),{atBottom:!0,state:s,atBottomBecause:n,scrollTopDelta:o}):{atBottom:!1,notAtBottomBecause:s.scrollHeight>t.state.scrollHeight?"SIZE_INCREASED":l<t.state.viewportHeight?"VIEWPORT_HEIGHT_DECREASING":i<t.state.scrollTop?"SCROLLING_UPWARDS":"NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",state:s}},ut),distinctUntilChanged(function(t,e){return t&&t.atBottom===e.atBottom}))),S=statefulStreamFromEmitter(pipe(o,scan(function(t,e){var n=e.scrollTop,o=e.scrollHeight,r=e.viewportHeight;return x(t.scrollHeight,o)?{scrollTop:n,scrollHeight:o,jump:0,changed:!1}:t.scrollTop!==n&&o-(n+r)<1?{scrollHeight:o,scrollTop:n,jump:t.scrollTop-n,changed:!0}:{scrollHeight:o,scrollTop:n,jump:0,changed:!0}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),filter(function(t){return t.changed}),map(function(t){return t.jump})),0);connect(pipe(v,map(function(t){return t.atBottom})),u),connect(pipe(u,throttleTime(50)),m);var C=statefulStream("down");connect(pipe(o,map(function(t){return t.scrollTop}),distinctUntilChanged(),scan(function(t,n){return getValue(g)?{direction:t.direction,prevScrollTop:n}:{direction:n<t.prevScrollTop?st:"down",prevScrollTop:n}},{direction:"down",prevScrollTop:0}),map(function(t){return t.direction})),C),connect(pipe(o,throttleTime(50),mapTo("none")),C);var I=statefulStream(0);return connect(pipe(h,filter(function(t){return !t}),mapTo(0)),I),connect(pipe(r,throttleTime(100),withLatestFrom(h),filter(function(t){return !!t[1]}),scan(function(t,e){return [t[1],e[0]]},[0,0]),map(function(t){return t[1]-t[0]})),I),{isScrolling:h,isAtTop:c,isAtBottom:u,atBottomState:v,atTopStateChange:d,atBottomStateChange:m,scrollDirection:C,atBottomThreshold:f,atTopThreshold:p,scrollVelocity:I,lastJumpDueToItemResize:S}},tup(y$1)),mt=system(function(t){var n=t[0].log,o=statefulStream(!1),r=streamFromEmitter(pipe(o,filter(function(t){return t}),distinctUntilChanged()));return subscribe(o,function(t){t&&getValue(n)("props updated",{},h.DEBUG);}),{propsReady:o,didMount:r}},tup(S$1),{singleton:!0}),dt=system(function(t){var n=t[0],o=n.sizes,r=n.listRefresh,i=n.defaultItemSize,a=t[1].scrollTop,l=t[2].scrollToIndex,s=t[3].didMount,u=statefulStream(!0),c=statefulStream(0);return connect(pipe(s,withLatestFrom(c),filter(function(t){return !!t[1]}),mapTo(!1)),u),subscribe(pipe(combineLatest(r,s),withLatestFrom(u,o,i),filter(function(t){var e=t[1],n=t[3];return t[0][1]&&(!R(t[2].sizeTree)||void 0!==n)&&!e}),withLatestFrom(c)),function(t){var n=t[1];setTimeout(function(){handleNext(a,function(){publish(u,!0);}),publish(l,n);});}),{scrolledToInitialItem:u,initialTopMostItemIndex:c}},tup(rt,y$1,lt,mt),{singleton:!0});function ft(t){return !!t&&("smooth"===t?"smooth":"auto")}var pt=system(function(t){var n=t[0],o=n.totalCount,r=n.listRefresh,i=t[1],a=i.isAtBottom,l=i.atBottomState,s=t[2].scrollToIndex,u=t[3].scrolledToInitialItem,c=t[4],m=c.propsReady,d=c.didMount,f=t[5].log,p=t[6].scrollingInProgress,g=statefulStream(!1),v=stream(),S=null;function C(t){publish(s,{index:"LAST",align:"end",behavior:t});}function I(t){var n=handleNext(l,function(n){!t||n.atBottom||"SIZE_INCREASED"!==n.notAtBottomBecause||S||(getValue(f)("scrolling to bottom due to increased size",{},h.DEBUG),C("auto"));});setTimeout(n,100);}return subscribe(pipe(combineLatest(pipe(duc(o),skip(1)),d),withLatestFrom(duc(g),a,u,p),map(function(t){var e=t[0],n=e[0],o=e[1]&&t[3],r="auto";return o&&(r=function(t,e){return "function"==typeof t?ft(t(e)):e&&ft(t)}(t[1],t[2]||t[4]),o=o&&!!r),{totalCount:n,shouldFollow:o,followOutputBehavior:r}}),filter(function(t){return t.shouldFollow})),function(t){var n=t.totalCount,o=t.followOutputBehavior;S&&(S(),S=null),S=handleNext(r,function(){getValue(f)("following output to ",{totalCount:n},h.DEBUG),C(o),S=null;});}),subscribe(pipe(combineLatest(duc(g),o,m),filter(function(t){return t[0]&&t[2]}),scan(function(t,e){var n=e[1];return {refreshed:t.value===n,value:n}},{refreshed:!1,value:0}),filter(function(t){return t.refreshed}),withLatestFrom(g,o)),function(t){I(!1!==t[1]);}),subscribe(v,function(){I(!1!==getValue(g));}),subscribe(combineLatest(duc(g),l),function(t){var e=t[1];t[0]&&!e.atBottom&&"VIEWPORT_HEIGHT_DECREASING"===e.notAtBottomBecause&&C("auto");}),{followOutput:g,autoscrollToBottom:v}},tup(rt,ct,lt,dt,mt,S$1,y$1));function ht(t){return t.reduce(function(t,e){return t.groupIndices.push(t.totalCount),t.totalCount+=e+1,t},{totalCount:0,groupIndices:[]})}var gt=system(function(t){var n=t[0],o=n.totalCount,r=n.groupIndices,i=n.sizes,a=t[1],l=a.scrollTop,s=a.headerHeight,u=stream(),c=stream(),m=streamFromEmitter(pipe(u,map(ht)));return connect(pipe(m,map(function(t){return t.totalCount})),o),connect(pipe(m,map(function(t){return t.groupIndices})),r),connect(pipe(combineLatest(l,i,s),filter(function(t){return nt(t[1])}),map(function(t){return k(t[1].groupOffsetTree,Math.max(t[0]-t[2],0),"v")[0]}),distinctUntilChanged(),map(function(t){return [t]})),c),{groupCounts:u,topItemsIndexes:c}},tup(rt,y$1));function vt(t,e){return !(!t||t[0]!==e[0]||t[1]!==e[1])}function St(t,e){return !(!t||t.startIndex!==e.startIndex||t.endIndex!==e.endIndex)}function Ct(t,e,n){return "number"==typeof t?n===st&&"top"===e||"down"===n&&"bottom"===e?t:0:n===st?"top"===e?t.main:t.reverse:"bottom"===e?t.main:t.reverse}function It(t,e){return "number"==typeof t?t:t[e]||0}var Tt=system(function(t){var n=t[0],o=n.scrollTop,r=n.viewportHeight,i=n.deviation,a=n.headerHeight,l=n.fixedHeaderHeight,s=stream(),u=statefulStream(0),c=statefulStream(0),m=statefulStream(0),d=statefulStreamFromEmitter(pipe(combineLatest(duc(o),duc(r),duc(a),duc(s,vt),duc(m),duc(u),duc(l),duc(i),duc(c)),map(function(t){var e=t[0],n=t[1],o=t[2],r=t[3],i=r[0],a=r[1],l=t[4],s=t[6],u=t[7],c=t[8],m=e-u,d=t[5]+s,f=Math.max(o-m,0),p="none",h=It(c,"top"),g=It(c,"bottom");return i-=u,a+=o+s,(i+=o+s)>e+d-h&&(p=st),(a-=u)<e-f+n+g&&(p="down"),"none"!==p?[Math.max(m-o-Ct(l,"top",p)-h,0),m-f-s+n+Ct(l,"bottom",p)+g]:null}),filter(function(t){return null!=t}),distinctUntilChanged(vt)),[0,0]);return {listBoundary:s,overscan:m,topListHeight:u,increaseViewportBy:c,visibleRange:d}},tup(y$1),{singleton:!0}),wt={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function xt(t,e,n){if(0===t.length)return [];if(!nt(e))return t.map(function(t){return c$1({},t,{index:t.index+n,originalIndex:t.index})});for(var o,r=[],i=A$1(e.groupOffsetTree,t[0].index,t[t.length-1].index),a=void 0,l=0,s=f$2(t);!(o=s()).done;){var u=o.value;(!a||a.end<u.index)&&(a=i.shift(),l=e.groupIndices.indexOf(a.start)),r.push(c$1({},u.index===a.start?{type:"group",index:l}:{index:u.index-(l+1)+n,groupIndex:l},{size:u.size,offset:u.offset,originalIndex:u.index,data:u.data}));}return r}function bt(t,e,n,o,r,i){var a=0,l=0;if(t.length>0){a=t[0].offset;var s=t[t.length-1];l=s.offset+s.size;}var u=n-r.lastIndex,c=a,m=r.lastOffset+u*r.lastSize+(u-1)*o-l;return {items:xt(t,r,i),topItems:xt(e,r,i),topListHeight:e.reduce(function(t,e){return e.size+t},0),offsetTop:a,offsetBottom:m,top:c,bottom:l,totalCount:n,firstItemIndex:i}}var yt=system(function(t){var n=t[0],o=n.sizes,r=n.totalCount,i=n.data,a=n.firstItemIndex,l=n.gap,s=t[1],u=t[2],m=u.visibleRange,d=u.listBoundary,p=u.topListHeight,h=t[3],g=h.scrolledToInitialItem,v=h.initialTopMostItemIndex,S=t[4].topListHeight,C=t[5],I=t[6].didMount,T=t[7].recalcInProgress,w=statefulStream([]),x=stream();connect(s.topItemsIndexes,w);var b=statefulStreamFromEmitter(pipe(combineLatest(I,T,duc(m,vt),duc(r),duc(o),duc(v),g,duc(w),duc(a),duc(l),i),filter(function(t){return t[0]&&!t[1]}),map(function(t){var n=t[2],o=n[0],r=n[1],i=t[3],a=t[5],l=t[6],s=t[7],u=t[8],m=t[9],d=t[10],p=t[4],h=p.sizeTree,g=p.offsetTree;if(0===i||0===o&&0===r)return c$1({},wt,{totalCount:i});if(R(h))return bt(function(t,e,n){if(nt(e)){var o=et(t,e);return [{index:k(e.groupOffsetTree,o)[0],size:0,offset:0},{index:o,size:0,offset:0,data:n&&n[0]}]}return [{index:t,size:0,offset:0,data:n&&n[0]}]}(function(t,e){return "number"==typeof t?t:"LAST"===t.index?e-1:t.index}(a,i),p,d),[],i,m,p,u);var v=[];if(s.length>0)for(var S,C=s[0],I=s[s.length-1],T=0,w=f$2(A$1(h,C,I));!(S=w()).done;)for(var x=S.value,b=x.value,y=Math.max(x.start,C),H=Math.min(x.end,I),E=y;E<=H;E++)v.push({index:E,size:b,offset:T,data:d&&d[E]}),T+=b;if(!l)return bt([],v,i,m,p,u);var L=s.length>0?s[s.length-1]+1:0,F=function(t,e,n,o){return void 0===o&&(o=0),o>0&&(e=Math.max(e,j(t,o,q).offset)),N((i=n,l=_$1(r=t,e,a=Z$1),s=_$1(r,i,a,l),r.slice(l,s+1)),J);var r,i,a,l,s;}(g,o,r,L);if(0===F.length)return null;var z=i-1;return bt(tap([],function(t){for(var e,n=f$2(F);!(e=n()).done;){var i=e.value,a=i.value,l=a.offset,s=i.start,u=a.size;if(a.offset<o){var c=(s+=Math.floor((o-a.offset+m)/(u+m)))-i.start;l+=c*u+c*m;}s<L&&(l+=(L-s)*u,s=L);for(var p=Math.min(i.end,z),h=s;h<=p&&!(l>=r);h++)t.push({index:h,size:u,offset:l,data:d&&d[h]}),l+=u+m;}}),v,i,m,p,u)}),filter(function(t){return null!==t}),distinctUntilChanged()),wt);return connect(pipe(i,filter(function(t){return void 0!==t}),map(function(t){return t.length})),r),connect(pipe(b,map(function(t){return t.topListHeight})),S),connect(S,p),connect(pipe(b,map(function(t){return [t.top,t.bottom]})),d),connect(pipe(b,map(function(t){return t.items})),x),c$1({listState:b,topItemsIndexes:w,endReached:streamFromEmitter(pipe(b,filter(function(t){return t.items.length>0}),withLatestFrom(r,i),filter(function(t){var e=t[0].items;return e[e.length-1].originalIndex===t[1]-1}),map(function(t){return [t[1]-1,t[2]]}),distinctUntilChanged(vt),map(function(t){return t[0]}))),startReached:streamFromEmitter(pipe(b,throttleTime(200),filter(function(t){var e=t.items;return e.length>0&&e[0].originalIndex===t.topItems.length}),map(function(t){return t.items[0].index}),distinctUntilChanged())),rangeChanged:streamFromEmitter(pipe(b,filter(function(t){return t.items.length>0}),map(function(t){for(var e=t.items,n=0,o=e.length-1;"group"===e[n].type&&n<o;)n++;for(;"group"===e[o].type&&o>n;)o--;return {startIndex:e[n].index,endIndex:e[o].index}}),distinctUntilChanged(St))),itemsRendered:x},C)},tup(rt,gt,Tt,dt,lt,ct,mt,K),{singleton:!0}),Ht=system(function(t){var n=t[0],o=n.sizes,r=n.firstItemIndex,i=n.data,a=n.gap,l=t[1].listState,s=t[2].didMount,u=statefulStream(0);return connect(pipe(s,withLatestFrom(u),filter(function(t){return 0!==t[1]}),withLatestFrom(o,r,a,i),map(function(t){var e=t[0][1],n=t[1],o=t[2],r=t[3],i=t[4],a=void 0===i?[]:i,l=0;if(n.groupIndices.length>0)for(var s,u=f$2(n.groupIndices);!((s=u()).done||s.value-l>=e);)l++;var c=e+l;return bt(Array.from({length:c}).map(function(t,e){return {index:e,size:0,offset:0,data:a[e]}}),[],c,r,n,o)})),l),{initialItemCount:u}},tup(rt,yt,mt),{singleton:!0}),Et=system(function(t){var n=t[0].scrollVelocity,o=statefulStream(!1),r=stream(),i=statefulStream(!1);return connect(pipe(n,withLatestFrom(i,o,r),filter(function(t){return !!t[1]}),map(function(t){var e=t[0],n=t[1],o=t[2],r=t[3],i=n.enter;if(o){if((0, n.exit)(e,r))return !1}else if(i(e,r))return !0;return o}),distinctUntilChanged()),o),subscribe(pipe(combineLatest(o,n,r),withLatestFrom(i)),function(t){var e=t[0],n=t[1];return e[0]&&n&&n.change&&n.change(e[1],e[2])}),{isSeeking:o,scrollSeekConfiguration:i,scrollVelocity:n,scrollSeekRangeChanged:r}},tup(ct),{singleton:!0}),Rt=system(function(t){var n=t[0].topItemsIndexes,o=statefulStream(0);return connect(pipe(o,filter(function(t){return t>0}),map(function(t){return Array.from({length:t}).map(function(t,e){return e})})),n),{topItemCount:o}},tup(yt)),Lt=system(function(t){var n=t[0],o=n.footerHeight,r=n.headerHeight,i=n.fixedHeaderHeight,a=n.fixedFooterHeight,l=t[1].listState,s=stream(),u=statefulStreamFromEmitter(pipe(combineLatest(o,a,r,i,l),map(function(t){var e=t[4];return t[0]+t[1]+t[2]+t[3]+e.offsetBottom+e.bottom})),0);return connect(duc(u),s),{totalListHeight:u,totalListHeightChanged:s}},tup(y$1,yt),{singleton:!0});function Ft(t){var e,n=!1;return function(){return n||(n=!0,e=t()),e}}var kt=Ft(function(){return /iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)}),zt=system(function(t){var n=t[0],o=n.scrollBy,r=n.scrollTop,i=n.deviation,a=n.scrollingInProgress,l=t[1],s=l.isScrolling,u=l.isAtBottom,c=l.scrollDirection,m=t[3],d=m.beforeUnshiftWith,f=m.shiftWithOffset,p=m.sizes,g=m.gap,v=t[4].log,S=t[5].recalcInProgress,C=streamFromEmitter(pipe(t[2].listState,withLatestFrom(l.lastJumpDueToItemResize),scan(function(t,e){var n=t[1],o=e[0],r=o.items,i=o.totalCount,a=o.bottom+o.offsetBottom,l=0;return t[2]===i&&n.length>0&&r.length>0&&(0===r[0].originalIndex&&0===n[0].originalIndex||0!=(l=a-t[3])&&(l+=e[1])),[l,r,i,a]},[0,[],0,0]),filter(function(t){return 0!==t[0]}),withLatestFrom(r,c,a,u,v),filter(function(t){return !t[3]&&0!==t[1]&&t[2]===st}),map(function(t){var e=t[0][0];return (0, t[5])("Upward scrolling compensation",{amount:e},h.DEBUG),e})));function I(t){t>0?(publish(o,{top:-t,behavior:"auto"}),publish(i,0)):(publish(i,0),publish(o,{top:-t,behavior:"auto"}));}return subscribe(pipe(C,withLatestFrom(i,s)),function(t){var n=t[0],o=t[1];t[2]&&kt()?publish(i,o-n):I(-n);}),subscribe(pipe(combineLatest(statefulStreamFromEmitter(s,!1),i,S),filter(function(t){return !t[0]&&!t[2]&&0!==t[1]}),map(function(t){return t[1]}),throttleTime(1)),I),connect(pipe(f,map(function(t){return {top:-t}})),o),subscribe(pipe(d,withLatestFrom(p,g),map(function(t){var e=t[0];return e*t[1].lastSize+e*t[2]})),function(t){publish(i,t),requestAnimationFrame(function(){publish(o,{top:t}),requestAnimationFrame(function(){publish(i,0),publish(S,!1);});});}),{deviation:i}},tup(y$1,ct,yt,rt,S$1,K)),Bt=system(function(t){var n=t[0].totalListHeight,o=t[1].didMount,r=t[2].scrollTo,i=statefulStream(0);return subscribe(pipe(o,withLatestFrom(i),filter(function(t){return 0!==t[1]}),map(function(t){return {top:t[1]}})),function(t){handleNext(pipe(n,filter(function(t){return 0!==t})),function(){setTimeout(function(){publish(r,t);});});}),{initialScrollTop:i}},tup(Lt,mt,y$1),{singleton:!0}),Pt=system(function(t){var n=t[0].viewportHeight,o=t[1].totalListHeight,r=statefulStream(!1);return {alignToBottom:r,paddingTopAddition:statefulStreamFromEmitter(pipe(combineLatest(r,n,o),filter(function(t){return t[0]}),map(function(t){return Math.max(0,t[1]-t[2])}),distinctUntilChanged()),0)}},tup(y$1,Lt),{singleton:!0}),Ot=system(function(t){var n=t[0],o=n.scrollTo,r=n.scrollContainerState,i=stream(),a=stream(),l=stream(),s=statefulStream(!1),u=statefulStream(void 0);return connect(pipe(combineLatest(i,a),map(function(t){var e=t[0],n=e.viewportHeight,o=e.scrollHeight;return {scrollTop:Math.max(0,e.scrollTop-t[1].offsetTop),scrollHeight:o,viewportHeight:n}})),r),connect(pipe(o,withLatestFrom(a),map(function(t){var e=t[0];return c$1({},e,{top:e.top+t[1].offsetTop})})),l),{useWindowScroll:s,customScrollParent:u,windowScrollContainerState:i,windowViewportRect:a,windowScrollTo:l}},tup(y$1)),Mt=["done","behavior","align"],Wt=system(function(t){var n=t[0],o=n.sizes,r=n.totalCount,i=n.gap,a=t[1],l=a.scrollTop,s=a.viewportHeight,u=a.headerHeight,d=a.fixedHeaderHeight,f=a.fixedFooterHeight,p=a.scrollingInProgress,h=t[2].scrollToIndex,g=stream();return connect(pipe(g,withLatestFrom(o,s,r,u,d,f,l),withLatestFrom(i),map(function(t){var n=t[0],o=n[0],r=n[1],i=n[2],a=n[3],l=n[4],s=n[5],u=n[6],d=n[7],f=t[1],h=o.done,g=o.behavior,v=o.align,S=m(o,Mt),C=null,I=tt$1(o,r,a-1),T=X$1(I,r.offsetTree,f)+l+s;return T<d+s?C=c$1({},S,{behavior:g,align:null!=v?v:"start"}):T+k(r.sizeTree,I)[1]>d+i-u&&(C=c$1({},S,{behavior:g,align:null!=v?v:"end"})),C?h&&handleNext(pipe(p,skip(1),filter(function(t){return !1===t})),h):h&&h(),C}),filter(function(t){return null!==t})),h),{scrollIntoView:g}},tup(rt,y$1,lt,yt,S$1),{singleton:!0}),Vt=["listState","topItemsIndexes"],Ut=system(function(t){return c$1({},t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},tup(Tt,Ht,mt,Et,Lt,Bt,Pt,Ot,Wt)),At=system(function(t){var n=t[0],o=n.totalCount,r=n.sizeRanges,i=n.fixedItemSize,a=n.defaultItemSize,l=n.trackItemSizes,s=n.itemSize,u=n.data,d=n.firstItemIndex,f=n.groupIndices,p=n.statefulTotalCount,h=n.gap,g=t[1],v=g.initialTopMostItemIndex,S=g.scrolledToInitialItem,C=t[2],I=t[3],T=t[4],w=T.listState,x=T.topItemsIndexes,b=m(T,Vt),y=t[5].scrollToIndex,H=t[7].topItemCount,E=t[8].groupCounts,R=t[9],L=t[10];return connect(b.rangeChanged,R.scrollSeekRangeChanged),connect(pipe(R.windowViewportRect,map(function(t){return t.visibleHeight})),C.viewportHeight),c$1({totalCount:o,data:u,firstItemIndex:d,sizeRanges:r,initialTopMostItemIndex:v,scrolledToInitialItem:S,topItemsIndexes:x,topItemCount:H,groupCounts:E,fixedItemHeight:i,defaultItemHeight:a,gap:h},I,{statefulTotalCount:p,listState:w,scrollToIndex:y,trackItemSizes:l,itemSize:s,groupIndices:f},b,R,C,L)},tup(rt,dt,y$1,pt,yt,lt,zt,Rt,gt,Ut,S$1)),Nt=Ft(function(){if("undefined"==typeof document)return "sticky";var t=document.createElement("div");return t.style.position="-webkit-sticky","-webkit-sticky"===t.style.position?"-webkit-sticky":"sticky"});function Dt(t,e){var n=useRef(null),o=useCallback(function(o){if(null!==o&&o.offsetParent){var r,i,a=o.getBoundingClientRect(),l=a.width;if(e){var s=e.getBoundingClientRect(),u=a.top-s.top;r=s.height-Math.max(0,u),i=u+e.scrollTop;}else r=window.innerHeight-Math.max(0,a.top),i=a.top+window.pageYOffset;n.current={offsetTop:i,visibleHeight:r,visibleWidth:l},t(n.current);}},[t,e]),l=C(o),s=l.callbackRef,u=l.ref,c=useCallback(function(){o(u.current);},[o,u]);return useEffect(function(){if(e){e.addEventListener("scroll",c);var t=new ResizeObserver(c);return t.observe(e),function(){e.removeEventListener("scroll",c),t.unobserve(e);}}return window.addEventListener("scroll",c),window.addEventListener("resize",c),function(){window.removeEventListener("scroll",c),window.removeEventListener("resize",c);}},[c,e]),s}var Gt=React.createContext(void 0),_t=React.createContext(void 0),jt=["placeholder"],Kt=["style","children"],Yt=["style","children"];function qt(t){return t}var Zt=system(function(){var t=statefulStream(function(t){return "Item "+t}),n=statefulStream(null),o=statefulStream(function(t){return "Group "+t}),r=statefulStream({}),i=statefulStream(qt),a=statefulStream("div"),l=statefulStream(noop),s=function(t,n){return void 0===n&&(n=null),statefulStreamFromEmitter(pipe(r,map(function(e){return e[t]}),distinctUntilChanged()),n)};return {context:n,itemContent:t,groupContent:o,components:r,computeItemKey:i,headerFooterTag:a,scrollerRef:l,FooterComponent:s("Footer"),HeaderComponent:s("Header"),TopItemListComponent:s("TopItemList"),ListComponent:s("List","div"),ItemComponent:s("Item","div"),GroupComponent:s("Group","div"),ScrollerComponent:s("Scroller","div"),EmptyPlaceholder:s("EmptyPlaceholder"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder")}});function Jt(t,n){var o=stream();return subscribe(o,function(){return console.warn("react-virtuoso: You are using a deprecated property. "+n,"color: red;","color: inherit;","color: blue;")}),connect(o,t),o}var $t=system(function(t){var n=t[0],o=t[1],r={item:Jt(o.itemContent,"Rename the %citem%c prop to %citemContent."),group:Jt(o.groupContent,"Rename the %cgroup%c prop to %cgroupContent."),topItems:Jt(n.topItemCount,"Rename the %ctopItems%c prop to %ctopItemCount."),itemHeight:Jt(n.fixedItemHeight,"Rename the %citemHeight%c prop to %cfixedItemHeight."),scrollingStateChange:Jt(n.isScrolling,"Rename the %cscrollingStateChange%c prop to %cisScrolling."),adjustForPrependedItems:stream(),maxHeightCacheSize:stream(),footer:stream(),header:stream(),HeaderContainer:stream(),FooterContainer:stream(),ItemContainer:stream(),ScrollContainer:stream(),GroupContainer:stream(),ListContainer:stream(),emptyComponent:stream(),scrollSeek:stream()};function i(t,n,r){connect(pipe(t,withLatestFrom(o.components),map(function(t){var e,o=t[0],i=t[1];return console.warn("react-virtuoso: "+r+" property is deprecated. Pass components."+n+" instead."),c$1({},i,((e={})[n]=o,e))})),o.components);}return subscribe(r.adjustForPrependedItems,function(){console.warn("react-virtuoso: adjustForPrependedItems is no longer supported. Use the firstItemIndex property instead - https://virtuoso.dev/prepend-items.","color: red;","color: inherit;","color: blue;");}),subscribe(r.maxHeightCacheSize,function(){console.warn("react-virtuoso: maxHeightCacheSize is no longer necessary. Setting it has no effect - remove it from your code.");}),subscribe(r.HeaderContainer,function(){console.warn("react-virtuoso: HeaderContainer is deprecated. Use headerFooterTag if you want to change the wrapper of the header component and pass components.Header to change its contents.");}),subscribe(r.FooterContainer,function(){console.warn("react-virtuoso: FooterContainer is deprecated. Use headerFooterTag if you want to change the wrapper of the footer component and pass components.Footer to change its contents.");}),subscribe(r.scrollSeek,function(t){var r=t.placeholder,i=m(t,jt);console.warn("react-virtuoso: scrollSeek property is deprecated. Pass scrollSeekConfiguration and specify the placeholder in components.ScrollSeekPlaceholder instead."),publish(o.components,c$1({},getValue(o.components),{ScrollSeekPlaceholder:r})),publish(n.scrollSeekConfiguration,i);}),i(r.footer,"Footer","footer"),i(r.header,"Header","header"),i(r.ItemContainer,"Item","ItemContainer"),i(r.ListContainer,"List","ListContainer"),i(r.ScrollContainer,"Scroller","ScrollContainer"),i(r.emptyComponent,"EmptyPlaceholder","emptyComponent"),i(r.GroupContainer,"Group","GroupContainer"),c$1({},n,o,r)},tup(At,Zt)),Qt=function(t){return React.createElement("div",{style:{height:t.height}})},Xt={position:Nt(),zIndex:1,overflowAnchor:"none"},te={overflowAnchor:"none"},ee=React.memo(function(t){var o=t.showTopList,r=void 0!==o&&o,i=ge("listState"),a=he("sizeRanges"),s=ge("useWindowScroll"),u=ge("customScrollParent"),m=he("windowScrollContainerState"),d=he("scrollContainerState"),f=u||s?m:d,p=ge("itemContent"),h=ge("context"),g=ge("groupContent"),v=ge("trackItemSizes"),S=ge("itemSize"),C=ge("log"),I=he("gap"),w=T$1(a,S,v,r?noop:f,C,I,u).callbackRef,x=React.useState(0),b=x[0],y=x[1];ve("deviation",function(t){b!==t&&y(t);});var H=ge("EmptyPlaceholder"),E=ge("ScrollSeekPlaceholder")||Qt,R=ge("ListComponent"),L=ge("ItemComponent"),F=ge("GroupComponent"),k=ge("computeItemKey"),z=ge("isSeeking"),B=ge("groupIndices").length>0,P=ge("paddingTopAddition"),O=r?{}:{boxSizing:"border-box",paddingTop:i.offsetTop+P,paddingBottom:i.offsetBottom,marginTop:b};return !r&&0===i.totalCount&&H?createElement$2(H,ie(H,h)):createElement$2(R,c$1({},ie(R,h),{ref:w,style:O,"data-test-id":r?"virtuoso-top-item-list":"virtuoso-item-list"}),(r?i.topItems:i.items).map(function(t){var e=t.originalIndex,n=k(e+i.firstItemIndex,t.data,h);return z?createElement$2(E,c$1({},ie(E,h),{key:n,index:t.index,height:t.size,type:t.type||"item"},"group"===t.type?{}:{groupIndex:t.groupIndex})):"group"===t.type?createElement$2(F,c$1({},ie(F,h),{key:n,"data-index":e,"data-known-size":t.size,"data-item-index":t.index,style:Xt}),g(t.index)):createElement$2(L,c$1({},ie(L,h),{key:n,"data-index":e,"data-known-size":t.size,"data-item-index":t.index,"data-item-group-index":t.groupIndex,style:te}),B?p(t.index,t.groupIndex,t.data,h):p(t.index,t.data,h))}))}),ne={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},oe={width:"100%",height:"100%",position:"absolute",top:0},re={width:"100%",position:Nt(),top:0};function ie(t,e){if("string"!=typeof t)return {context:e}}var ae=React.memo(function(){var t=ge("HeaderComponent"),e=he("headerHeight"),n=ge("headerFooterTag"),o=I$1(function(t){return e(w(t,"height"))}),r=ge("context");return t?createElement$2(n,{ref:o},createElement$2(t,ie(t,r))):null}),le=React.memo(function(){var t=ge("FooterComponent"),e=he("footerHeight"),n=ge("headerFooterTag"),o=I$1(function(t){return e(w(t,"height"))}),r=ge("context");return t?createElement$2(n,{ref:o},createElement$2(t,ie(t,r))):null});function se(t){var e=t.usePublisher,o=t.useEmitter,r=t.useEmitterValue;return React.memo(function(t){var n=t.style,i=t.children,a=m(t,Kt),s=e("scrollContainerState"),u=r("ScrollerComponent"),d=e("smoothScrollTargetReached"),f=r("scrollerRef"),p=r("context"),h=b(s,d,u,f),g=h.scrollerRef,v=h.scrollByCallback;return o("scrollTo",h.scrollToCallback),o("scrollBy",v),createElement$2(u,c$1({ref:g,style:c$1({},ne,n),"data-test-id":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0},a,ie(u,p)),i)})}function ue(t){var o=t.usePublisher,r=t.useEmitter,i=t.useEmitterValue;return React.memo(function(t){var n=t.style,a=t.children,s=m(t,Yt),u=o("windowScrollContainerState"),d=i("ScrollerComponent"),f=o("smoothScrollTargetReached"),p=i("totalListHeight"),h=i("deviation"),v=i("customScrollParent"),S=i("context"),C=b(u,f,d,noop,v),I=C.scrollerRef,T=C.scrollByCallback,w=C.scrollToCallback;return g(function(){return I.current=v||window,function(){I.current=null;}},[I,v]),r("windowScrollTo",w),r("scrollBy",T),createElement$2(d,c$1({style:c$1({position:"relative"},n,0!==p?{height:p+h}:{}),"data-virtuoso-scroller":!0},s,ie(d,S)),a)})}var ce=function(t){var o=t.children,r=useContext$1(Gt),i=he("viewportHeight"),a=he("fixedItemHeight"),l=I$1(compose(i,function(t){return w(t,"height")}));return React.useEffect(function(){r&&(i(r.viewportHeight),a(r.itemHeight));},[r,i,a]),React.createElement("div",{style:oe,ref:l,"data-viewport-type":"element"},o)},me=function(t){var e=t.children,o=useContext$1(Gt),r=he("windowViewportRect"),i=he("fixedItemHeight"),a=ge("customScrollParent"),l=Dt(r,a);return React.useEffect(function(){o&&(i(o.itemHeight),r({offsetTop:0,visibleHeight:o.viewportHeight,visibleWidth:100}));},[o,r,i]),React.createElement("div",{ref:l,style:oe,"data-viewport-type":"window"},e)},de=function(t){var e=t.children,n=ge("TopItemListComponent"),o=ge("headerHeight"),r=c$1({},re,{marginTop:o+"px"}),i=ge("context");return createElement$2(n||"div",{style:r,context:i},e)},fe=systemToComponent($t,{required:{},optional:{context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",react18ConcurrentRendering:"react18ConcurrentRendering",item:"item",group:"group",topItems:"topItems",itemHeight:"itemHeight",scrollingStateChange:"scrollingStateChange",maxHeightCacheSize:"maxHeightCacheSize",footer:"footer",header:"header",ItemContainer:"ItemContainer",ScrollContainer:"ScrollContainer",ListContainer:"ListContainer",GroupContainer:"GroupContainer",emptyComponent:"emptyComponent",HeaderContainer:"HeaderContainer",FooterContainer:"FooterContainer",scrollSeek:"scrollSeek"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",adjustForPrependedItems:"adjustForPrependedItems",autoscrollToBottom:"autoscrollToBottom"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},React.memo(function(t){var e=ge("useWindowScroll"),o=ge("topItemsIndexes").length>0,r=ge("customScrollParent"),i=r||e?me:ce;return React.createElement(r||e?Ce:Se,c$1({},t),React.createElement(i,null,React.createElement(ae,null),React.createElement(ee,null),React.createElement(le,null)),o&&React.createElement(de,null,React.createElement(ee,{showTopList:!0})))})),pe=fe.Component,he=fe.usePublisher,ge=fe.useEmitterValue,ve=fe.useEmitter,Se=se({usePublisher:he,useEmitterValue:ge,useEmitter:ve}),Ce=ue({usePublisher:he,useEmitterValue:ge,useEmitter:ve}),Ie={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},Te={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},we=Math.round,xe=Math.ceil,be=Math.floor,ye=Math.min,He=Math.max;function Ee(t,e,n){return Array.from({length:e-t+1}).map(function(e,o){return {index:o+t,data:null==n?void 0:n[o+t]}})}function Re(t,e){return t&&t.column===e.column&&t.row===e.row}var Le=system(function(t){var n=t[0],o=n.overscan,r=n.visibleRange,i=n.listBoundary,a=t[1],l=a.scrollTop,s=a.viewportHeight,u=a.scrollBy,m=a.scrollTo,d=a.smoothScrollTargetReached,f=a.scrollContainerState,p=a.footerHeight,h=a.headerHeight,g=t[2],v=t[3],S=t[4],C=S.propsReady,I=S.didMount,T=t[5],w=T.windowViewportRect,x=T.windowScrollTo,b=T.useWindowScroll,y=T.customScrollParent,H=T.windowScrollContainerState,E=t[6],R=statefulStream(0),L=statefulStream(0),F=statefulStream(Ie),k=statefulStream({height:0,width:0}),z=statefulStream({height:0,width:0}),B=stream(),P=stream(),O=statefulStream(0),M=statefulStream(void 0),W=statefulStream({row:0,column:0});connect(pipe(combineLatest(I,L,M),filter(function(t){return 0!==t[1]}),map(function(t){return {items:Ee(0,t[1]-1,t[2]),top:0,bottom:0,offsetBottom:0,offsetTop:0,itemHeight:0,itemWidth:0}})),F),connect(pipe(combineLatest(duc(R),r,duc(W,Re),duc(z,function(t,e){return t&&t.width===e.width&&t.height===e.height}),M),withLatestFrom(k),map(function(t){var e=t[0],n=e[0],o=e[1],r=o[0],i=o[1],a=e[2],l=e[3],s=e[4],u=t[1],m=a.row,d=a.column,f=l.height,p=l.width,h=u.width;if(0===n||0===h)return Ie;if(0===p)return function(t){return c$1({},Te,{items:t})}(Ee(0,0,s));var g=ze(h,p,d),v=g*be((r+m)/(f+m)),S=g*xe((i+m)/(f+m))-1;S=ye(n-1,He(S,g-1));var C=Ee(v=ye(S,He(0,v)),S,s),I=Fe(u,a,l,C),T=I.top,w=I.bottom,x=xe(n/g);return {items:C,offsetTop:T,offsetBottom:x*f+(x-1)*m-w,top:T,bottom:w,itemHeight:f,itemWidth:p}})),F),connect(pipe(M,filter(function(t){return void 0!==t}),map(function(t){return t.length})),R),connect(pipe(k,map(function(t){return t.height})),s),connect(pipe(combineLatest(k,z,F,W),map(function(t){var e=Fe(t[0],t[3],t[1],t[2].items);return [e.top,e.bottom]}),distinctUntilChanged(vt)),i);var V=streamFromEmitter(pipe(duc(F),filter(function(t){return t.items.length>0}),withLatestFrom(R),filter(function(t){var e=t[0].items;return e[e.length-1].index===t[1]-1}),map(function(t){return t[1]-1}),distinctUntilChanged())),U=streamFromEmitter(pipe(duc(F),filter(function(t){var e=t.items;return e.length>0&&0===e[0].index}),mapTo(0),distinctUntilChanged())),A=streamFromEmitter(pipe(duc(F),filter(function(t){return t.items.length>0}),map(function(t){var e=t.items;return {startIndex:e[0].index,endIndex:e[e.length-1].index}}),distinctUntilChanged(St)));connect(A,v.scrollSeekRangeChanged),connect(pipe(B,withLatestFrom(k,z,R,W),map(function(t){var e=t[1],n=t[2],o=t[3],r=t[4],i=at(t[0]),a=i.align,l=i.behavior,s=i.offset,u=i.index;"LAST"===u&&(u=o-1);var c=ke(e,r,n,u=He(0,u,ye(o-1,u)));return "end"===a?c=we(c-e.height+n.height):"center"===a&&(c=we(c-e.height/2+n.height/2)),s&&(c+=s),{top:c,behavior:l}})),m);var N=statefulStreamFromEmitter(pipe(F,map(function(t){return t.offsetBottom+t.bottom})),0);return connect(pipe(w,map(function(t){return {width:t.visibleWidth,height:t.visibleHeight}})),k),c$1({data:M,totalCount:R,viewportDimensions:k,itemDimensions:z,scrollTop:l,scrollHeight:P,overscan:o,scrollBy:u,scrollTo:m,scrollToIndex:B,smoothScrollTargetReached:d,windowViewportRect:w,windowScrollTo:x,useWindowScroll:b,customScrollParent:y,windowScrollContainerState:H,deviation:O,scrollContainerState:f,footerHeight:p,headerHeight:h,initialItemCount:L,gap:W},v,{gridState:F,totalListHeight:N},g,{startReached:U,endReached:V,rangeChanged:A,propsReady:C},E)},tup(Tt,y$1,ct,Et,mt,Ot,S$1));function Fe(t,e,n,o){var r=n.height;return void 0===r||0===o.length?{top:0,bottom:0}:{top:ke(t,e,n,o[0].index),bottom:ke(t,e,n,o[o.length-1].index)+r}}function ke(t,e,n,o){var r=ze(t.width,n.width,e.column),i=be(o/r),a=i*n.height+He(0,i-1)*e.row;return a>0?a+e.row:a}function ze(t,e,n){return He(1,be((t+n)/(e+n)))}var Be=["placeholder"],Pe=system(function(){var t=statefulStream(function(t){return "Item "+t}),n=statefulStream({}),o=statefulStream(null),r=statefulStream("virtuoso-grid-item"),i=statefulStream("virtuoso-grid-list"),a=statefulStream(qt),l=statefulStream("div"),s=statefulStream(noop),u=function(t,o){return void 0===o&&(o=null),statefulStreamFromEmitter(pipe(n,map(function(e){return e[t]}),distinctUntilChanged()),o)};return {context:o,itemContent:t,components:n,computeItemKey:a,itemClassName:r,listClassName:i,headerFooterTag:l,scrollerRef:s,FooterComponent:u("Footer"),HeaderComponent:u("Header"),ListComponent:u("List","div"),ItemComponent:u("Item","div"),ScrollerComponent:u("Scroller","div"),ScrollSeekPlaceholder:u("ScrollSeekPlaceholder","div")}}),Oe=system(function(t){var n=t[0],o=t[1],r={item:Jt(o.itemContent,"Rename the %citem%c prop to %citemContent."),ItemContainer:stream(),ScrollContainer:stream(),ListContainer:stream(),emptyComponent:stream(),scrollSeek:stream()};function i(t,n,r){connect(pipe(t,withLatestFrom(o.components),map(function(t){var e,o=t[0],i=t[1];return console.warn("react-virtuoso: "+r+" property is deprecated. Pass components."+n+" instead."),c$1({},i,((e={})[n]=o,e))})),o.components);}return subscribe(r.scrollSeek,function(t){var r=t.placeholder,i=m(t,Be);console.warn("react-virtuoso: scrollSeek property is deprecated. Pass scrollSeekConfiguration and specify the placeholder in components.ScrollSeekPlaceholder instead."),publish(o.components,c$1({},getValue(o.components),{ScrollSeekPlaceholder:r})),publish(n.scrollSeekConfiguration,i);}),i(r.ItemContainer,"Item","ItemContainer"),i(r.ListContainer,"List","ListContainer"),i(r.ScrollContainer,"Scroller","ScrollContainer"),c$1({},n,o,r)},tup(Le,Pe)),Me=React.memo(function(){var t=_e("gridState"),e=_e("listClassName"),n=_e("itemClassName"),o=_e("itemContent"),r=_e("computeItemKey"),i=_e("isSeeking"),a=Ge("scrollHeight"),s=_e("ItemComponent"),u=_e("ListComponent"),m=_e("ScrollSeekPlaceholder"),d=_e("context"),f=Ge("itemDimensions"),p=Ge("gap"),h=_e("log"),g=I$1(function(t){a(t.parentElement.parentElement.scrollHeight);var e=t.firstChild;e&&f(e.getBoundingClientRect()),p({row:qe("row-gap",getComputedStyle(t).rowGap,h),column:qe("column-gap",getComputedStyle(t).columnGap,h)});});return createElement$2(u,c$1({ref:g,className:e},ie(u,d),{style:{paddingTop:t.offsetTop,paddingBottom:t.offsetBottom}}),t.items.map(function(e){var a=r(e.index,e.data,d);return i?createElement$2(m,c$1({key:a},ie(m,d),{index:e.index,height:t.itemHeight,width:t.itemWidth})):createElement$2(s,c$1({},ie(s,d),{className:n,"data-index":e.index,key:a}),o(e.index,e.data,d))}))}),We=React.memo(function(){var t=_e("HeaderComponent"),e=Ge("headerHeight"),n=_e("headerFooterTag"),o=I$1(function(t){return e(w(t,"height"))}),r=_e("context");return t?createElement$2(n,{ref:o},createElement$2(t,ie(t,r))):null}),Ve=React.memo(function(){var t=_e("FooterComponent"),e=Ge("footerHeight"),n=_e("headerFooterTag"),o=I$1(function(t){return e(w(t,"height"))}),r=_e("context");return t?createElement$2(n,{ref:o},createElement$2(t,ie(t,r))):null}),Ue=function(t){var e=t.children,o=useContext$1(_t),r=Ge("itemDimensions"),i=Ge("viewportDimensions"),a=I$1(function(t){i(t.getBoundingClientRect());});return React.useEffect(function(){o&&(i({height:o.viewportHeight,width:o.viewportWidth}),r({height:o.itemHeight,width:o.itemWidth}));},[o,i,r]),React.createElement("div",{style:oe,ref:a},e)},Ae=function(t){var e=t.children,o=useContext$1(_t),r=Ge("windowViewportRect"),i=Ge("itemDimensions"),a=_e("customScrollParent"),l=Dt(r,a);return React.useEffect(function(){o&&(i({height:o.itemHeight,width:o.itemWidth}),r({offsetTop:0,visibleHeight:o.viewportHeight,visibleWidth:o.viewportWidth}));},[o,r,i]),React.createElement("div",{ref:l,style:oe},e)},Ne=systemToComponent(Oe,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",item:"item",ItemContainer:"ItemContainer",ScrollContainer:"ScrollContainer",ListContainer:"ListContainer",scrollSeek:"scrollSeek"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange"}},React.memo(function(t){var e=c$1({},t),o=_e("useWindowScroll"),r=_e("customScrollParent"),i=r||o?Ae:Ue;return React.createElement(r||o?Ye:Ke,c$1({},e),React.createElement(i,null,React.createElement(We,null),React.createElement(Me,null),React.createElement(Ve,null)))})),Ge=Ne.usePublisher,_e=Ne.useEmitterValue,je=Ne.useEmitter,Ke=se({usePublisher:Ge,useEmitterValue:_e,useEmitter:je}),Ye=ue({usePublisher:Ge,useEmitterValue:_e,useEmitter:je});function qe(t,e,n){return "normal"===e||null!=e&&e.endsWith("px")||n(t+" was not resolved to pixel value correctly",e,h.WARN),"normal"===e?0:parseInt(null!=e?e:"0",10)}var Ze=system(function(){var t=statefulStream(function(t){return React.createElement("td",null,"Item $",t)}),o=statefulStream(null),r=statefulStream(null),i=statefulStream(null),a=statefulStream({}),l=statefulStream(qt),s=statefulStream(noop),u=function(t,n){return void 0===n&&(n=null),statefulStreamFromEmitter(pipe(a,map(function(e){return e[t]}),distinctUntilChanged()),n)};return {context:o,itemContent:t,fixedHeaderContent:r,fixedFooterContent:i,components:a,computeItemKey:l,scrollerRef:s,TableComponent:u("Table","table"),TableHeadComponent:u("TableHead","thead"),TableFooterComponent:u("TableFoot","tfoot"),TableBodyComponent:u("TableBody","tbody"),TableRowComponent:u("TableRow","tr"),ScrollerComponent:u("Scroller","div"),EmptyPlaceholder:u("EmptyPlaceholder"),ScrollSeekPlaceholder:u("ScrollSeekPlaceholder"),FillerRow:u("FillerRow")}}),Je=system(function(t){return c$1({},t[0],t[1])},tup(At,Ze)),$e=function(t){return React.createElement("tr",null,React.createElement("td",{style:{height:t.height}}))},Qe=function(t){return React.createElement("tr",null,React.createElement("td",{style:{height:t.height,padding:0,border:0}}))},Xe=React.memo(function(){var t=an("listState"),e=rn("sizeRanges"),o=an("useWindowScroll"),r=an("customScrollParent"),i=rn("windowScrollContainerState"),a=rn("scrollContainerState"),s=r||o?i:a,u=an("itemContent"),m=an("trackItemSizes"),d=T$1(e,an("itemSize"),m,s,an("log"),void 0,r),f=d.callbackRef,p=d.ref,h=React.useState(0),g=h[0],v=h[1];ln("deviation",function(t){g!==t&&(p.current.style.marginTop=t+"px",v(t));});var S=an("EmptyPlaceholder"),C=an("ScrollSeekPlaceholder")||$e,I=an("FillerRow")||Qe,w=an("TableBodyComponent"),x=an("TableRowComponent"),b=an("computeItemKey"),y=an("isSeeking"),H=an("paddingTopAddition"),E=an("firstItemIndex"),R=an("statefulTotalCount"),L=an("context");if(0===R&&S)return createElement$2(S,ie(S,L));var F=t.offsetTop+H+g,k=t.offsetBottom,z=F>0?React.createElement(I,{height:F,key:"padding-top"}):null,B=k>0?React.createElement(I,{height:k,key:"padding-bottom"}):null,P=t.items.map(function(t){var e=t.originalIndex,n=b(e+E,t.data,L);return y?createElement$2(C,c$1({},ie(C,L),{key:n,index:t.index,height:t.size,type:t.type||"item"})):createElement$2(x,c$1({},ie(x,L),{key:n,"data-index":e,"data-known-size":t.size,"data-item-index":t.index,style:{overflowAnchor:"none"}}),u(t.index,t.data,L))});return createElement$2(w,c$1({ref:f,"data-test-id":"virtuoso-item-list"},ie(w,L)),[z].concat(P,[B]))}),tn=function(t){var o=t.children,r=useContext$1(Gt),i=rn("viewportHeight"),a=rn("fixedItemHeight"),l=I$1(compose(i,function(t){return w(t,"height")}));return React.useEffect(function(){r&&(i(r.viewportHeight),a(r.itemHeight));},[r,i,a]),React.createElement("div",{style:oe,ref:l,"data-viewport-type":"element"},o)},en=function(t){var e=t.children,o=useContext$1(Gt),r=rn("windowViewportRect"),i=rn("fixedItemHeight"),a=an("customScrollParent"),l=Dt(r,a);return React.useEffect(function(){o&&(i(o.itemHeight),r({offsetTop:0,visibleHeight:o.viewportHeight,visibleWidth:100}));},[o,r,i]),React.createElement("div",{ref:l,style:oe,"data-viewport-type":"window"},e)},nn=systemToComponent(Je,{required:{},optional:{context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",react18ConcurrentRendering:"react18ConcurrentRendering"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},React.memo(function(t){var o=an("useWindowScroll"),r=an("customScrollParent"),i=rn("fixedHeaderHeight"),a=rn("fixedFooterHeight"),l=an("fixedHeaderContent"),s=an("fixedFooterContent"),u=an("context"),m=I$1(compose(i,function(t){return w(t,"height")})),d=I$1(compose(a,function(t){return w(t,"height")})),f=r||o?un:sn,p=r||o?en:tn,h=an("TableComponent"),g=an("TableHeadComponent"),v=an("TableFooterComponent"),S=l?React.createElement(g,c$1({key:"TableHead",style:{zIndex:1,position:"sticky",top:0},ref:m},ie(g,u)),l()):null,C=s?React.createElement(v,c$1({key:"TableFoot",style:{zIndex:1,position:"sticky",bottom:0},ref:d},ie(v,u)),s()):null;return React.createElement(f,c$1({},t),React.createElement(p,null,React.createElement(h,c$1({style:{borderSpacing:0}},ie(h,u)),[S,React.createElement(Xe,{key:"TableBody"}),C])))})),rn=nn.usePublisher,an=nn.useEmitterValue,ln=nn.useEmitter,sn=se({usePublisher:rn,useEmitterValue:an,useEmitter:ln}),un=ue({usePublisher:rn,useEmitterValue:an,useEmitter:ln}),cn=pe;
102673
+ function c$1(){return c$1=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);}return t},c$1.apply(this,arguments)}function m(t,e){if(null==t)return {};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)e.indexOf(n=i[o])>=0||(r[n]=t[n]);return r}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function f$2(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return (n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return "Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var p,h,g="undefined"!=typeof document?useLayoutEffect$2:useEffect;!function(t){t[t.DEBUG=0]="DEBUG",t[t.INFO=1]="INFO",t[t.WARN=2]="WARN",t[t.ERROR=3]="ERROR";}(h||(h={}));var v$1=((p={})[h.DEBUG]="debug",p[h.INFO]="log",p[h.WARN]="warn",p[h.ERROR]="error",p),S$1=system(function(){var t=statefulStream(h.ERROR);return {log:statefulStream(function(n,o,r){var i;void 0===r&&(r=h.INFO),r>=(null!=(i=("undefined"==typeof globalThis?window:globalThis).VIRTUOSO_LOG_LEVEL)?i:getValue(t))&&console[v$1[r]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",n,o);}),logLevel:t}},[],{singleton:!0});function C(t,e){void 0===e&&(e=!0);var n=useRef(null),o=function(t){};if("undefined"!=typeof ResizeObserver){var r=new ResizeObserver(function(e){var n=e[0].target;null!==n.offsetParent&&t(n);});o=function(t){t&&e?(r.observe(t),n.current=t):(n.current&&r.unobserve(n.current),n.current=null);};}return {ref:n,callbackRef:o}}function I$1(t,e){return void 0===e&&(e=!0),C(t,e).callbackRef}function T$1(t,e,n,o,r,i,a){return C(function(n){for(var l=function(t,e,n,o){var r=t.length;if(0===r)return null;for(var i=[],a=0;a<r;a++){var l=t.item(a);if(l&&void 0!==l.dataset.index){var s=parseInt(l.dataset.index),u=parseFloat(l.dataset.knownSize),c=e(l,"offsetHeight");if(0===c&&o("Zero-sized element, this should not happen",{child:l},h.ERROR),c!==u){var m=i[i.length-1];0===i.length||m.size!==c||m.endIndex!==s-1?i.push({startIndex:s,endIndex:s,size:c}):i[i.length-1].endIndex++;}}}return i}(n.children,e,0,r),s=n.parentElement;!s.dataset.virtuosoScroller;)s=s.parentElement;var u="window"===s.firstElementChild.dataset.viewportType,c=a?a.scrollTop:u?window.pageYOffset||document.documentElement.scrollTop:s.scrollTop,m=a?a.scrollHeight:u?document.documentElement.scrollHeight:s.scrollHeight,d=a?a.offsetHeight:u?window.innerHeight:s.offsetHeight;o({scrollTop:Math.max(c,0),scrollHeight:m,viewportHeight:d}),null==i||i(function(t,e,n){return "normal"===e||null!=e&&e.endsWith("px")||n("row-gap was not resolved to pixel value correctly",e,h.WARN),"normal"===e?0:parseInt(null!=e?e:"0",10)}(0,getComputedStyle(n).rowGap,r)),null!==l&&t(l);},n)}function w(t,e){return Math.round(t.getBoundingClientRect()[e])}function x(t,e){return Math.abs(t-e)<1.01}function b(t,n,o,l,s){void 0===l&&(l=noop);var c=useRef(null),m=useRef(null),d=useRef(null),f=useRef(!1),p=useCallback(function(e){var o=e.target,r=o===window||o===document,i=r?window.pageYOffset||document.documentElement.scrollTop:o.scrollTop,a=r?document.documentElement.scrollHeight:o.scrollHeight,l=r?window.innerHeight:o.offsetHeight,s=function(){t({scrollTop:Math.max(i,0),scrollHeight:a,viewportHeight:l});};f.current?flushSync(s):s(),f.current=!1,null!==m.current&&(i===m.current||i<=0||i===a-l)&&(m.current=null,n(!0),d.current&&(clearTimeout(d.current),d.current=null));},[t,n]);return useEffect(function(){var t=s||c.current;return l(s||c.current),p({target:t}),t.addEventListener("scroll",p,{passive:!0}),function(){l(null),t.removeEventListener("scroll",p);}},[c,p,o,l,s]),{scrollerRef:c,scrollByCallback:function(t){f.current=!0,c.current.scrollBy(t);},scrollToCallback:function(e){var o=c.current;if(o&&(!("offsetHeight"in o)||0!==o.offsetHeight)){var r,i,a,l="smooth"===e.behavior;if(o===window?(i=Math.max(w(document.documentElement,"height"),document.documentElement.scrollHeight),r=window.innerHeight,a=document.documentElement.scrollTop):(i=o.scrollHeight,r=w(o,"height"),a=o.scrollTop),e.top=Math.ceil(Math.max(Math.min(i-r,e.top),0)),x(r,i)||e.top===a)return t({scrollTop:a,scrollHeight:i,viewportHeight:r}),void(l&&n(!0));l?(m.current=e.top,d.current&&clearTimeout(d.current),d.current=setTimeout(function(){d.current=null,m.current=null,n(!0);},1e3)):m.current=null,o.scrollTo(e);}}}}var y$1=system(function(){var t=stream(),n=stream(),o=statefulStream(0),r=stream(),i=statefulStream(0),a=stream(),l=stream(),s=statefulStream(0),u=statefulStream(0),c=statefulStream(0),m=statefulStream(0),d=stream(),f=stream(),p=statefulStream(!1),h=statefulStream(!1);return connect(pipe(t,map(function(t){return t.scrollTop})),n),connect(pipe(t,map(function(t){return t.scrollHeight})),l),connect(n,i),{scrollContainerState:t,scrollTop:n,viewportHeight:a,headerHeight:s,fixedHeaderHeight:u,fixedFooterHeight:c,footerHeight:m,scrollHeight:l,smoothScrollTargetReached:r,react18ConcurrentRendering:h,scrollTo:d,scrollBy:f,statefulScrollTop:i,deviation:o,scrollingInProgress:p}},[],{singleton:!0}),H$1={lvl:0};function E$1(t,e,n,o,r){return void 0===o&&(o=H$1),void 0===r&&(r=H$1),{k:t,v:e,lvl:n,l:o,r:r}}function R(t){return t===H$1}function L$1(){return H$1}function F$1(t,e){if(R(t))return H$1;var n=t.k,o=t.l,r=t.r;if(e===n){if(R(o))return r;if(R(r))return o;var i=O(o);return U$1(W(t,{k:i[0],v:i[1],l:M$1(o)}))}return U$1(W(t,e<n?{l:F$1(o,e)}:{r:F$1(r,e)}))}function k(t,e,n){if(void 0===n&&(n="k"),R(t))return [-Infinity,void 0];if(t[n]===e)return [t.k,t.v];if(t[n]<e){var o=k(t.r,e,n);return -Infinity===o[0]?[t.k,t.v]:o}return k(t.l,e,n)}function z$1(t,e,n){return R(t)?E$1(e,n,1):e===t.k?W(t,{k:e,v:n}):function(t){return D$1(G(t))}(W(t,e<t.k?{l:z$1(t.l,e,n)}:{r:z$1(t.r,e,n)}))}function B(t,e,n){if(R(t))return [];var o=t.k,r=t.v,i=t.r,a=[];return o>e&&(a=a.concat(B(t.l,e,n))),o>=e&&o<=n&&a.push({k:o,v:r}),o<=n&&(a=a.concat(B(i,e,n))),a}function P$1(t){return R(t)?[]:[].concat(P$1(t.l),[{k:t.k,v:t.v}],P$1(t.r))}function O(t){return R(t.r)?[t.k,t.v]:O(t.r)}function M$1(t){return R(t.r)?t.l:U$1(W(t,{r:M$1(t.r)}))}function W(t,e){return E$1(void 0!==e.k?e.k:t.k,void 0!==e.v?e.v:t.v,void 0!==e.lvl?e.lvl:t.lvl,void 0!==e.l?e.l:t.l,void 0!==e.r?e.r:t.r)}function V$1(t){return R(t)||t.lvl>t.r.lvl}function U$1(t){var e=t.l,n=t.r,o=t.lvl;if(n.lvl>=o-1&&e.lvl>=o-1)return t;if(o>n.lvl+1){if(V$1(e))return G(W(t,{lvl:o-1}));if(R(e)||R(e.r))throw new Error("Unexpected empty nodes");return W(e.r,{l:W(e,{r:e.r.l}),r:W(t,{l:e.r.r,lvl:o-1}),lvl:o})}if(V$1(t))return D$1(W(t,{lvl:o-1}));if(R(n)||R(n.l))throw new Error("Unexpected empty nodes");var r=n.l,i=V$1(r)?n.lvl-1:n.lvl;return W(r,{l:W(t,{r:r.l,lvl:o-1}),r:D$1(W(n,{l:r.r,lvl:i})),lvl:r.lvl+1})}function A$1(t,e,n){return R(t)?[]:N(B(t,k(t,e)[0],n),function(t){return {index:t.k,value:t.v}})}function N(t,e){var n=t.length;if(0===n)return [];for(var o=e(t[0]),r=o.index,i=o.value,a=[],l=1;l<n;l++){var s=e(t[l]),u=s.index,c=s.value;a.push({start:r,end:u-1,value:i}),r=u,i=c;}return a.push({start:r,end:Infinity,value:i}),a}function D$1(t){var e=t.r,n=t.lvl;return R(e)||R(e.r)||e.lvl!==n||e.r.lvl!==n?t:W(e,{l:W(t,{r:e.l}),lvl:n+1})}function G(t){var e=t.l;return R(e)||e.lvl!==t.lvl?t:W(e,{r:W(t,{l:e.r})})}function _$1(t,e,n,o){void 0===o&&(o=0);for(var r=t.length-1;o<=r;){var i=Math.floor((o+r)/2),a=n(t[i],e);if(0===a)return i;if(-1===a){if(r-o<2)return i-1;r=i-1;}else {if(r===o)return i;o=i+1;}}throw new Error("Failed binary finding record in array - "+t.join(",")+", searched for "+e)}function j(t,e,n){return t[_$1(t,e,n)]}var K=system(function(){return {recalcInProgress:statefulStream(!1)}},[],{singleton:!0});function Y$1(t){var e=t.size,n=t.startIndex,o=t.endIndex;return function(t){return t.start===n&&(t.end===o||Infinity===t.end)&&t.value===e}}function q(t,e){var n=t.index;return e===n?0:e<n?-1:1}function Z$1(t,e){var n=t.offset;return e===n?0:e<n?-1:1}function J(t){return {index:t.index,value:t}}function $$3(t,e,n,o){var r=t,i=0,a=0,l=0,s=0;if(0!==e){l=r[s=_$1(r,e-1,q)].offset;var u=k(n,e-1);i=u[0],a=u[1],r.length&&r[s].size===k(n,e)[1]&&(s-=1),r=r.slice(0,s+1);}else r=[];for(var c,m=f$2(A$1(n,e,Infinity));!(c=m()).done;){var d=c.value,p=d.start,h=d.value,g=p-i,v=g*a+l+g*o;r.push({offset:v,size:h,index:p}),i=p,l=v,a=h;}return {offsetTree:r,lastIndex:i,lastOffset:l,lastSize:a}}function Q(t,e){var n=e[0],o=e[1],r=e[3];n.length>0&&(0, e[2])("received item sizes",n,h.DEBUG);var i=t.sizeTree,a=i,l=0;if(o.length>0&&R(i)&&2===n.length){var s=n[0].size,u=n[1].size;a=o.reduce(function(t,e){return z$1(z$1(t,e,s),e+1,u)},a);}else {var c=function(t,e){for(var n,o=R(t)?0:Infinity,r=f$2(e);!(n=r()).done;){var i=n.value,a=i.size,l=i.startIndex,s=i.endIndex;if(o=Math.min(o,l),R(t))t=z$1(t,0,a);else {var u=A$1(t,l-1,s+1);if(!u.some(Y$1(i))){for(var c,m=!1,d=!1,p=f$2(u);!(c=p()).done;){var h=c.value,g=h.start,v=h.end,S=h.value;m?(s>=g||a===S)&&(t=F$1(t,g)):(d=S!==a,m=!0),v>s&&s>=g&&S!==a&&(t=z$1(t,s+1,S));}d&&(t=z$1(t,l,a));}}}return [t,o]}(a,n);a=c[0],l=c[1];}if(a===i)return t;var m=$$3(t.offsetTree,l,a,r),d=m.offsetTree;return {sizeTree:a,offsetTree:d,lastIndex:m.lastIndex,lastOffset:m.lastOffset,lastSize:m.lastSize,groupOffsetTree:o.reduce(function(t,e){return z$1(t,e,X$1(e,d,r))},L$1()),groupIndices:o}}function X$1(t,e,n){if(0===e.length)return 0;var o=j(e,t,q),r=t-o.index,i=o.size*r+(r-1)*n+o.offset;return i>0?i+n:i}function tt$1(t,e,n){if(function(t){return void 0!==t.groupIndex}(t))return e.groupIndices[t.groupIndex]+1;var o=et("LAST"===t.index?n:t.index,e);return Math.max(0,o,Math.min(n,o))}function et(t,e){if(!nt(e))return t;for(var n=0;e.groupIndices[n]<=t+n;)n++;return t+n}function nt(t){return !R(t.groupOffsetTree)}var ot={offsetHeight:"height",offsetWidth:"width"},rt=system(function(t){var n=t[0].log,o=t[1].recalcInProgress,r=stream(),i=stream(),a=statefulStreamFromEmitter(i,0),l=stream(),s=stream(),u=statefulStream(0),m=statefulStream([]),d=statefulStream(void 0),f=statefulStream(void 0),p=statefulStream(function(t,e){return w(t,ot[e])}),g=statefulStream(void 0),v=statefulStream(0),S={offsetTree:[],sizeTree:L$1(),groupOffsetTree:L$1(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]},C=statefulStreamFromEmitter(pipe(r,withLatestFrom(m,n,v),scan(Q,S),distinctUntilChanged()),S);connect(pipe(m,filter(function(t){return t.length>0}),withLatestFrom(C,v),map(function(t){var e=t[0],n=t[1],o=t[2],r=e.reduce(function(t,e,r){return z$1(t,e,X$1(e,n.offsetTree,o)||r)},L$1());return c$1({},n,{groupIndices:e,groupOffsetTree:r})})),C),connect(pipe(i,withLatestFrom(C),filter(function(t){return t[0]<t[1].lastIndex}),map(function(t){var e=t[1];return [{startIndex:t[0],endIndex:e.lastIndex,size:e.lastSize}]})),r),connect(d,f);var I=statefulStreamFromEmitter(pipe(d,map(function(t){return void 0===t})),!0);connect(pipe(f,filter(function(t){return void 0!==t&&R(getValue(C).sizeTree)}),map(function(t){return [{startIndex:0,endIndex:0,size:t}]})),r);var T=streamFromEmitter(pipe(r,withLatestFrom(C),scan(function(t,e){var n=e[1];return {changed:n!==t.sizes,sizes:n}},{changed:!1,sizes:S}),map(function(t){return t.changed})));subscribe(pipe(u,scan(function(t,e){return {diff:t.prev-e,prev:e}},{diff:0,prev:0}),map(function(t){return t.diff})),function(t){t>0?(publish(o,!0),publish(l,t)):t<0&&publish(s,t);}),subscribe(pipe(u,withLatestFrom(n)),function(t){t[0]<0&&(0, t[1])("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:u},h.ERROR);});var x=streamFromEmitter(l);connect(pipe(l,withLatestFrom(C),map(function(t){var e=t[0],n=t[1];if(n.groupIndices.length>0)throw new Error("Virtuoso: prepending items does not work with groups");return P$1(n.sizeTree).reduce(function(t,n){var o=n.k,r=n.v;return {ranges:[].concat(t.ranges,[{startIndex:t.prevIndex,endIndex:o+e-1,size:t.prevSize}]),prevIndex:o+e,prevSize:r}},{ranges:[],prevIndex:0,prevSize:n.lastSize}).ranges})),r);var b=streamFromEmitter(pipe(s,withLatestFrom(C,v),map(function(t){return X$1(-t[0],t[1].offsetTree,t[2])})));return connect(pipe(s,withLatestFrom(C,v),map(function(t){var e=t[0],n=t[1],o=t[2];if(n.groupIndices.length>0)throw new Error("Virtuoso: shifting items does not work with groups");var r=P$1(n.sizeTree).reduce(function(t,n){var o=n.v;return z$1(t,Math.max(0,n.k+e),o)},L$1());return c$1({},n,{sizeTree:r},$$3(n.offsetTree,0,r,o))})),C),{data:g,totalCount:i,sizeRanges:r,groupIndices:m,defaultItemSize:f,fixedItemSize:d,unshiftWith:l,shiftWith:s,shiftWithOffset:b,beforeUnshiftWith:x,firstItemIndex:u,gap:v,sizes:C,listRefresh:T,statefulTotalCount:a,trackItemSizes:I,itemSize:p}},tup(S$1,K),{singleton:!0}),it="undefined"!=typeof document&&"scrollBehavior"in document.documentElement.style;function at(t){var e="number"==typeof t?{index:t}:t;return e.align||(e.align="start"),e.behavior&&it||(e.behavior="auto"),e.offset||(e.offset=0),e}var lt=system(function(t){var n=t[0],o=n.sizes,r=n.totalCount,i=n.listRefresh,a=n.gap,l=t[1],s=l.scrollingInProgress,u=l.viewportHeight,c=l.scrollTo,m=l.smoothScrollTargetReached,d=l.headerHeight,f=l.footerHeight,p=l.fixedHeaderHeight,g=l.fixedFooterHeight,v=t[2].log,S=stream(),C=statefulStream(0),I=null,T=null,w=null;function x(){I&&(I(),I=null),w&&(w(),w=null),T&&(clearTimeout(T),T=null),publish(s,!1);}return connect(pipe(S,withLatestFrom(o,u,r,C,d,f,v),withLatestFrom(a,p,g),map(function(t){var n=t[0],o=n[0],r=n[1],a=n[2],l=n[3],u=n[4],c=n[5],d=n[6],f=n[7],p=t[1],g=t[2],v=t[3],C=at(o),b=C.align,y=C.behavior,H=C.offset,E=l-1,R=tt$1(C,r,E),L=X$1(R,r.offsetTree,p)+c;"end"===b?(L+=g+k(r.sizeTree,R)[1]-a+v,R===E&&(L+=d)):"center"===b?L+=(g+k(r.sizeTree,R)[1]-a+v)/2:L-=u,H&&(L+=H);var F=function(t){x(),t?(f("retrying to scroll to",{location:o},h.DEBUG),publish(S,o)):f("list did not change, scroll successful",{},h.DEBUG);};if(x(),"smooth"===y){var z=!1;w=subscribe(i,function(t){z=z||t;}),I=handleNext(m,function(){F(z);});}else I=handleNext(pipe(i,function(t){var e=setTimeout(function(){t(!1);},150);return function(n){n&&(t(!0),clearTimeout(e));}}),F);return T=setTimeout(function(){x();},1200),publish(s,!0),f("scrolling from index to",{index:R,top:L,behavior:y},h.DEBUG),{top:L,behavior:y}})),c),{scrollToIndex:S,topListHeight:C}},tup(rt,y$1,S$1),{singleton:!0}),st="up",ut={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},ct=system(function(t){var n=t[0],o=n.scrollContainerState,r=n.scrollTop,i=n.viewportHeight,a=n.headerHeight,l=n.footerHeight,s=n.scrollBy,u=statefulStream(!1),c=statefulStream(!0),m=stream(),d=stream(),f=statefulStream(4),p=statefulStream(0),h=statefulStreamFromEmitter(pipe(merge(pipe(duc(r),skip(1),mapTo(!0)),pipe(duc(r),skip(1),mapTo(!1),debounceTime(100))),distinctUntilChanged()),!1),g=statefulStreamFromEmitter(pipe(merge(pipe(s,mapTo(!0)),pipe(s,mapTo(!1),debounceTime(200))),distinctUntilChanged()),!1);connect(pipe(combineLatest(duc(r),duc(p)),map(function(t){return t[0]<=t[1]}),distinctUntilChanged()),c),connect(pipe(c,throttleTime(50)),d);var v=streamFromEmitter(pipe(combineLatest(o,duc(i),duc(a),duc(l),duc(f)),scan(function(t,e){var n,o,r=e[0],i=r.scrollTop,a=r.scrollHeight,l=e[1],s={viewportHeight:l,scrollTop:i,scrollHeight:a};return i+l-a>-e[4]?(i>t.state.scrollTop?(n="SCROLLED_DOWN",o=t.state.scrollTop-i):(n="SIZE_DECREASED",o=t.state.scrollTop-i||t.scrollTopDelta),{atBottom:!0,state:s,atBottomBecause:n,scrollTopDelta:o}):{atBottom:!1,notAtBottomBecause:s.scrollHeight>t.state.scrollHeight?"SIZE_INCREASED":l<t.state.viewportHeight?"VIEWPORT_HEIGHT_DECREASING":i<t.state.scrollTop?"SCROLLING_UPWARDS":"NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",state:s}},ut),distinctUntilChanged(function(t,e){return t&&t.atBottom===e.atBottom}))),S=statefulStreamFromEmitter(pipe(o,scan(function(t,e){var n=e.scrollTop,o=e.scrollHeight,r=e.viewportHeight;return x(t.scrollHeight,o)?{scrollTop:n,scrollHeight:o,jump:0,changed:!1}:t.scrollTop!==n&&o-(n+r)<1?{scrollHeight:o,scrollTop:n,jump:t.scrollTop-n,changed:!0}:{scrollHeight:o,scrollTop:n,jump:0,changed:!0}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),filter(function(t){return t.changed}),map(function(t){return t.jump})),0);connect(pipe(v,map(function(t){return t.atBottom})),u),connect(pipe(u,throttleTime(50)),m);var C=statefulStream("down");connect(pipe(o,map(function(t){return t.scrollTop}),distinctUntilChanged(),scan(function(t,n){return getValue(g)?{direction:t.direction,prevScrollTop:n}:{direction:n<t.prevScrollTop?st:"down",prevScrollTop:n}},{direction:"down",prevScrollTop:0}),map(function(t){return t.direction})),C),connect(pipe(o,throttleTime(50),mapTo("none")),C);var I=statefulStream(0);return connect(pipe(h,filter(function(t){return !t}),mapTo(0)),I),connect(pipe(r,throttleTime(100),withLatestFrom(h),filter(function(t){return !!t[1]}),scan(function(t,e){return [t[1],e[0]]},[0,0]),map(function(t){return t[1]-t[0]})),I),{isScrolling:h,isAtTop:c,isAtBottom:u,atBottomState:v,atTopStateChange:d,atBottomStateChange:m,scrollDirection:C,atBottomThreshold:f,atTopThreshold:p,scrollVelocity:I,lastJumpDueToItemResize:S}},tup(y$1)),mt=system(function(t){var n=t[0].log,o=statefulStream(!1),r=streamFromEmitter(pipe(o,filter(function(t){return t}),distinctUntilChanged()));return subscribe(o,function(t){t&&getValue(n)("props updated",{},h.DEBUG);}),{propsReady:o,didMount:r}},tup(S$1),{singleton:!0}),dt=system(function(t){var n=t[0],o=n.sizes,r=n.listRefresh,i=n.defaultItemSize,a=t[1].scrollTop,l=t[2].scrollToIndex,s=t[3].didMount,u=statefulStream(!0),c=statefulStream(0);return connect(pipe(s,withLatestFrom(c),filter(function(t){return !!t[1]}),mapTo(!1)),u),subscribe(pipe(combineLatest(r,s),withLatestFrom(u,o,i),filter(function(t){var e=t[1],n=t[3];return t[0][1]&&(!R(t[2].sizeTree)||void 0!==n)&&!e}),withLatestFrom(c)),function(t){var n=t[1];setTimeout(function(){handleNext(a,function(){publish(u,!0);}),publish(l,n);});}),{scrolledToInitialItem:u,initialTopMostItemIndex:c}},tup(rt,y$1,lt,mt),{singleton:!0});function ft(t){return !!t&&("smooth"===t?"smooth":"auto")}var pt=system(function(t){var n=t[0],o=n.totalCount,r=n.listRefresh,i=t[1],a=i.isAtBottom,l=i.atBottomState,s=t[2].scrollToIndex,u=t[3].scrolledToInitialItem,c=t[4],m=c.propsReady,d=c.didMount,f=t[5].log,p=t[6].scrollingInProgress,g=statefulStream(!1),v=stream(),S=null;function C(t){publish(s,{index:"LAST",align:"end",behavior:t});}function I(t){var n=handleNext(l,function(n){!t||n.atBottom||"SIZE_INCREASED"!==n.notAtBottomBecause||S||(getValue(f)("scrolling to bottom due to increased size",{},h.DEBUG),C("auto"));});setTimeout(n,100);}return subscribe(pipe(combineLatest(pipe(duc(o),skip(1)),d),withLatestFrom(duc(g),a,u,p),map(function(t){var e=t[0],n=e[0],o=e[1]&&t[3],r="auto";return o&&(r=function(t,e){return "function"==typeof t?ft(t(e)):e&&ft(t)}(t[1],t[2]||t[4]),o=o&&!!r),{totalCount:n,shouldFollow:o,followOutputBehavior:r}}),filter(function(t){return t.shouldFollow})),function(t){var n=t.totalCount,o=t.followOutputBehavior;S&&(S(),S=null),S=handleNext(r,function(){getValue(f)("following output to ",{totalCount:n},h.DEBUG),C(o),S=null;});}),subscribe(pipe(combineLatest(duc(g),o,m),filter(function(t){return t[0]&&t[2]}),scan(function(t,e){var n=e[1];return {refreshed:t.value===n,value:n}},{refreshed:!1,value:0}),filter(function(t){return t.refreshed}),withLatestFrom(g,o)),function(t){I(!1!==t[1]);}),subscribe(v,function(){I(!1!==getValue(g));}),subscribe(combineLatest(duc(g),l),function(t){var e=t[1];t[0]&&!e.atBottom&&"VIEWPORT_HEIGHT_DECREASING"===e.notAtBottomBecause&&C("auto");}),{followOutput:g,autoscrollToBottom:v}},tup(rt,ct,lt,dt,mt,S$1,y$1));function ht(t){return t.reduce(function(t,e){return t.groupIndices.push(t.totalCount),t.totalCount+=e+1,t},{totalCount:0,groupIndices:[]})}var gt=system(function(t){var n=t[0],o=n.totalCount,r=n.groupIndices,i=n.sizes,a=t[1],l=a.scrollTop,s=a.headerHeight,u=stream(),c=stream(),m=streamFromEmitter(pipe(u,map(ht)));return connect(pipe(m,map(function(t){return t.totalCount})),o),connect(pipe(m,map(function(t){return t.groupIndices})),r),connect(pipe(combineLatest(l,i,s),filter(function(t){return nt(t[1])}),map(function(t){return k(t[1].groupOffsetTree,Math.max(t[0]-t[2],0),"v")[0]}),distinctUntilChanged(),map(function(t){return [t]})),c),{groupCounts:u,topItemsIndexes:c}},tup(rt,y$1));function vt(t,e){return !(!t||t[0]!==e[0]||t[1]!==e[1])}function St(t,e){return !(!t||t.startIndex!==e.startIndex||t.endIndex!==e.endIndex)}function Ct(t,e,n){return "number"==typeof t?n===st&&"top"===e||"down"===n&&"bottom"===e?t:0:n===st?"top"===e?t.main:t.reverse:"bottom"===e?t.main:t.reverse}function It(t,e){return "number"==typeof t?t:t[e]||0}var Tt=system(function(t){var n=t[0],o=n.scrollTop,r=n.viewportHeight,i=n.deviation,a=n.headerHeight,l=n.fixedHeaderHeight,s=stream(),u=statefulStream(0),c=statefulStream(0),m=statefulStream(0),d=statefulStreamFromEmitter(pipe(combineLatest(duc(o),duc(r),duc(a),duc(s,vt),duc(m),duc(u),duc(l),duc(i),duc(c)),map(function(t){var e=t[0],n=t[1],o=t[2],r=t[3],i=r[0],a=r[1],l=t[4],s=t[6],u=t[7],c=t[8],m=e-u,d=t[5]+s,f=Math.max(o-m,0),p="none",h=It(c,"top"),g=It(c,"bottom");return i-=u,a+=o+s,(i+=o+s)>e+d-h&&(p=st),(a-=u)<e-f+n+g&&(p="down"),"none"!==p?[Math.max(m-o-Ct(l,"top",p)-h,0),m-f-s+n+Ct(l,"bottom",p)+g]:null}),filter(function(t){return null!=t}),distinctUntilChanged(vt)),[0,0]);return {listBoundary:s,overscan:m,topListHeight:u,increaseViewportBy:c,visibleRange:d}},tup(y$1),{singleton:!0}),wt={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function xt(t,e,n){if(0===t.length)return [];if(!nt(e))return t.map(function(t){return c$1({},t,{index:t.index+n,originalIndex:t.index})});for(var o,r=[],i=A$1(e.groupOffsetTree,t[0].index,t[t.length-1].index),a=void 0,l=0,s=f$2(t);!(o=s()).done;){var u=o.value;(!a||a.end<u.index)&&(a=i.shift(),l=e.groupIndices.indexOf(a.start)),r.push(c$1({},u.index===a.start?{type:"group",index:l}:{index:u.index-(l+1)+n,groupIndex:l},{size:u.size,offset:u.offset,originalIndex:u.index,data:u.data}));}return r}function bt(t,e,n,o,r,i){var a=0,l=0;if(t.length>0){a=t[0].offset;var s=t[t.length-1];l=s.offset+s.size;}var u=n-r.lastIndex,c=a,m=r.lastOffset+u*r.lastSize+(u-1)*o-l;return {items:xt(t,r,i),topItems:xt(e,r,i),topListHeight:e.reduce(function(t,e){return e.size+t},0),offsetTop:a,offsetBottom:m,top:c,bottom:l,totalCount:n,firstItemIndex:i}}var yt=system(function(t){var n=t[0],o=n.sizes,r=n.totalCount,i=n.data,a=n.firstItemIndex,l=n.gap,s=t[1],u=t[2],m=u.visibleRange,d=u.listBoundary,p=u.topListHeight,h=t[3],g=h.scrolledToInitialItem,v=h.initialTopMostItemIndex,S=t[4].topListHeight,C=t[5],I=t[6].didMount,T=t[7].recalcInProgress,w=statefulStream([]),x=stream();connect(s.topItemsIndexes,w);var b=statefulStreamFromEmitter(pipe(combineLatest(I,T,duc(m,vt),duc(r),duc(o),duc(v),g,duc(w),duc(a),duc(l),i),filter(function(t){return t[0]&&!t[1]}),map(function(t){var n=t[2],o=n[0],r=n[1],i=t[3],a=t[5],l=t[6],s=t[7],u=t[8],m=t[9],d=t[10],p=t[4],h=p.sizeTree,g=p.offsetTree;if(0===i||0===o&&0===r)return c$1({},wt,{totalCount:i});if(R(h))return bt(function(t,e,n){if(nt(e)){var o=et(t,e);return [{index:k(e.groupOffsetTree,o)[0],size:0,offset:0},{index:o,size:0,offset:0,data:n&&n[0]}]}return [{index:t,size:0,offset:0,data:n&&n[0]}]}(function(t,e){return "number"==typeof t?t:"LAST"===t.index?e-1:t.index}(a,i),p,d),[],i,m,p,u);var v=[];if(s.length>0)for(var S,C=s[0],I=s[s.length-1],T=0,w=f$2(A$1(h,C,I));!(S=w()).done;)for(var x=S.value,b=x.value,y=Math.max(x.start,C),H=Math.min(x.end,I),E=y;E<=H;E++)v.push({index:E,size:b,offset:T,data:d&&d[E]}),T+=b;if(!l)return bt([],v,i,m,p,u);var L=s.length>0?s[s.length-1]+1:0,F=function(t,e,n,o){return void 0===o&&(o=0),o>0&&(e=Math.max(e,j(t,o,q).offset)),N((i=n,l=_$1(r=t,e,a=Z$1),s=_$1(r,i,a,l),r.slice(l,s+1)),J);var r,i,a,l,s;}(g,o,r,L);if(0===F.length)return null;var z=i-1;return bt(tap([],function(t){for(var e,n=f$2(F);!(e=n()).done;){var i=e.value,a=i.value,l=a.offset,s=i.start,u=a.size;if(a.offset<o){var c=(s+=Math.floor((o-a.offset+m)/(u+m)))-i.start;l+=c*u+c*m;}s<L&&(l+=(L-s)*u,s=L);for(var p=Math.min(i.end,z),h=s;h<=p&&!(l>=r);h++)t.push({index:h,size:u,offset:l,data:d&&d[h]}),l+=u+m;}}),v,i,m,p,u)}),filter(function(t){return null!==t}),distinctUntilChanged()),wt);return connect(pipe(i,filter(function(t){return void 0!==t}),map(function(t){return t.length})),r),connect(pipe(b,map(function(t){return t.topListHeight})),S),connect(S,p),connect(pipe(b,map(function(t){return [t.top,t.bottom]})),d),connect(pipe(b,map(function(t){return t.items})),x),c$1({listState:b,topItemsIndexes:w,endReached:streamFromEmitter(pipe(b,filter(function(t){return t.items.length>0}),withLatestFrom(r,i),filter(function(t){var e=t[0].items;return e[e.length-1].originalIndex===t[1]-1}),map(function(t){return [t[1]-1,t[2]]}),distinctUntilChanged(vt),map(function(t){return t[0]}))),startReached:streamFromEmitter(pipe(b,throttleTime(200),filter(function(t){var e=t.items;return e.length>0&&e[0].originalIndex===t.topItems.length}),map(function(t){return t.items[0].index}),distinctUntilChanged())),rangeChanged:streamFromEmitter(pipe(b,filter(function(t){return t.items.length>0}),map(function(t){for(var e=t.items,n=0,o=e.length-1;"group"===e[n].type&&n<o;)n++;for(;"group"===e[o].type&&o>n;)o--;return {startIndex:e[n].index,endIndex:e[o].index}}),distinctUntilChanged(St))),itemsRendered:x},C)},tup(rt,gt,Tt,dt,lt,ct,mt,K),{singleton:!0}),Ht=system(function(t){var n=t[0],o=n.sizes,r=n.firstItemIndex,i=n.data,a=n.gap,l=t[1].listState,s=t[2].didMount,u=statefulStream(0);return connect(pipe(s,withLatestFrom(u),filter(function(t){return 0!==t[1]}),withLatestFrom(o,r,a,i),map(function(t){var e=t[0][1],n=t[1],o=t[2],r=t[3],i=t[4],a=void 0===i?[]:i,l=0;if(n.groupIndices.length>0)for(var s,u=f$2(n.groupIndices);!((s=u()).done||s.value-l>=e);)l++;var c=e+l;return bt(Array.from({length:c}).map(function(t,e){return {index:e,size:0,offset:0,data:a[e]}}),[],c,r,n,o)})),l),{initialItemCount:u}},tup(rt,yt,mt),{singleton:!0}),Et=system(function(t){var n=t[0].scrollVelocity,o=statefulStream(!1),r=stream(),i=statefulStream(!1);return connect(pipe(n,withLatestFrom(i,o,r),filter(function(t){return !!t[1]}),map(function(t){var e=t[0],n=t[1],o=t[2],r=t[3],i=n.enter;if(o){if((0, n.exit)(e,r))return !1}else if(i(e,r))return !0;return o}),distinctUntilChanged()),o),subscribe(pipe(combineLatest(o,n,r),withLatestFrom(i)),function(t){var e=t[0],n=t[1];return e[0]&&n&&n.change&&n.change(e[1],e[2])}),{isSeeking:o,scrollSeekConfiguration:i,scrollVelocity:n,scrollSeekRangeChanged:r}},tup(ct),{singleton:!0}),Rt=system(function(t){var n=t[0].topItemsIndexes,o=statefulStream(0);return connect(pipe(o,filter(function(t){return t>0}),map(function(t){return Array.from({length:t}).map(function(t,e){return e})})),n),{topItemCount:o}},tup(yt)),Lt=system(function(t){var n=t[0],o=n.footerHeight,r=n.headerHeight,i=n.fixedHeaderHeight,a=n.fixedFooterHeight,l=t[1].listState,s=stream(),u=statefulStreamFromEmitter(pipe(combineLatest(o,a,r,i,l),map(function(t){var e=t[4];return t[0]+t[1]+t[2]+t[3]+e.offsetBottom+e.bottom})),0);return connect(duc(u),s),{totalListHeight:u,totalListHeightChanged:s}},tup(y$1,yt),{singleton:!0});function Ft(t){var e,n=!1;return function(){return n||(n=!0,e=t()),e}}var kt=Ft(function(){return /iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)}),zt=system(function(t){var n=t[0],o=n.scrollBy,r=n.scrollTop,i=n.deviation,a=n.scrollingInProgress,l=t[1],s=l.isScrolling,u=l.isAtBottom,c=l.scrollDirection,m=t[3],d=m.beforeUnshiftWith,f=m.shiftWithOffset,p=m.sizes,g=m.gap,v=t[4].log,S=t[5].recalcInProgress,C=streamFromEmitter(pipe(t[2].listState,withLatestFrom(l.lastJumpDueToItemResize),scan(function(t,e){var n=t[1],o=e[0],r=o.items,i=o.totalCount,a=o.bottom+o.offsetBottom,l=0;return t[2]===i&&n.length>0&&r.length>0&&(0===r[0].originalIndex&&0===n[0].originalIndex||0!=(l=a-t[3])&&(l+=e[1])),[l,r,i,a]},[0,[],0,0]),filter(function(t){return 0!==t[0]}),withLatestFrom(r,c,a,u,v),filter(function(t){return !t[3]&&0!==t[1]&&t[2]===st}),map(function(t){var e=t[0][0];return (0, t[5])("Upward scrolling compensation",{amount:e},h.DEBUG),e})));function I(t){t>0?(publish(o,{top:-t,behavior:"auto"}),publish(i,0)):(publish(i,0),publish(o,{top:-t,behavior:"auto"}));}return subscribe(pipe(C,withLatestFrom(i,s)),function(t){var n=t[0],o=t[1];t[2]&&kt()?publish(i,o-n):I(-n);}),subscribe(pipe(combineLatest(statefulStreamFromEmitter(s,!1),i,S),filter(function(t){return !t[0]&&!t[2]&&0!==t[1]}),map(function(t){return t[1]}),throttleTime(1)),I),connect(pipe(f,map(function(t){return {top:-t}})),o),subscribe(pipe(d,withLatestFrom(p,g),map(function(t){var e=t[0];return e*t[1].lastSize+e*t[2]})),function(t){publish(i,t),requestAnimationFrame(function(){publish(o,{top:t}),requestAnimationFrame(function(){publish(i,0),publish(S,!1);});});}),{deviation:i}},tup(y$1,ct,yt,rt,S$1,K)),Bt=system(function(t){var n=t[0].totalListHeight,o=t[1].didMount,r=t[2].scrollTo,i=statefulStream(0);return subscribe(pipe(o,withLatestFrom(i),filter(function(t){return 0!==t[1]}),map(function(t){return {top:t[1]}})),function(t){handleNext(pipe(n,filter(function(t){return 0!==t})),function(){setTimeout(function(){publish(r,t);});});}),{initialScrollTop:i}},tup(Lt,mt,y$1),{singleton:!0}),Pt=system(function(t){var n=t[0].viewportHeight,o=t[1].totalListHeight,r=statefulStream(!1);return {alignToBottom:r,paddingTopAddition:statefulStreamFromEmitter(pipe(combineLatest(r,n,o),filter(function(t){return t[0]}),map(function(t){return Math.max(0,t[1]-t[2])}),distinctUntilChanged()),0)}},tup(y$1,Lt),{singleton:!0}),Ot=system(function(t){var n=t[0],o=n.scrollTo,r=n.scrollContainerState,i=stream(),a=stream(),l=stream(),s=statefulStream(!1),u=statefulStream(void 0);return connect(pipe(combineLatest(i,a),map(function(t){var e=t[0],n=e.viewportHeight,o=e.scrollHeight;return {scrollTop:Math.max(0,e.scrollTop-t[1].offsetTop),scrollHeight:o,viewportHeight:n}})),r),connect(pipe(o,withLatestFrom(a),map(function(t){var e=t[0];return c$1({},e,{top:e.top+t[1].offsetTop})})),l),{useWindowScroll:s,customScrollParent:u,windowScrollContainerState:i,windowViewportRect:a,windowScrollTo:l}},tup(y$1)),Mt=["done","behavior","align"],Wt=system(function(t){var n=t[0],o=n.sizes,r=n.totalCount,i=n.gap,a=t[1],l=a.scrollTop,s=a.viewportHeight,u=a.headerHeight,d=a.fixedHeaderHeight,f=a.fixedFooterHeight,p=a.scrollingInProgress,h=t[2].scrollToIndex,g=stream();return connect(pipe(g,withLatestFrom(o,s,r,u,d,f,l),withLatestFrom(i),map(function(t){var n=t[0],o=n[0],r=n[1],i=n[2],a=n[3],l=n[4],s=n[5],u=n[6],d=n[7],f=t[1],h=o.done,g=o.behavior,v=o.align,S=m(o,Mt),C=null,I=tt$1(o,r,a-1),T=X$1(I,r.offsetTree,f)+l+s;return T<d+s?C=c$1({},S,{behavior:g,align:null!=v?v:"start"}):T+k(r.sizeTree,I)[1]>d+i-u&&(C=c$1({},S,{behavior:g,align:null!=v?v:"end"})),C?h&&handleNext(pipe(p,skip(1),filter(function(t){return !1===t})),h):h&&h(),C}),filter(function(t){return null!==t})),h),{scrollIntoView:g}},tup(rt,y$1,lt,yt,S$1),{singleton:!0}),Vt=["listState","topItemsIndexes"],Ut=system(function(t){return c$1({},t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},tup(Tt,Ht,mt,Et,Lt,Bt,Pt,Ot,Wt)),At=system(function(t){var n=t[0],o=n.totalCount,r=n.sizeRanges,i=n.fixedItemSize,a=n.defaultItemSize,l=n.trackItemSizes,s=n.itemSize,u=n.data,d=n.firstItemIndex,f=n.groupIndices,p=n.statefulTotalCount,h=n.gap,g=t[1],v=g.initialTopMostItemIndex,S=g.scrolledToInitialItem,C=t[2],I=t[3],T=t[4],w=T.listState,x=T.topItemsIndexes,b=m(T,Vt),y=t[5].scrollToIndex,H=t[7].topItemCount,E=t[8].groupCounts,R=t[9],L=t[10];return connect(b.rangeChanged,R.scrollSeekRangeChanged),connect(pipe(R.windowViewportRect,map(function(t){return t.visibleHeight})),C.viewportHeight),c$1({totalCount:o,data:u,firstItemIndex:d,sizeRanges:r,initialTopMostItemIndex:v,scrolledToInitialItem:S,topItemsIndexes:x,topItemCount:H,groupCounts:E,fixedItemHeight:i,defaultItemHeight:a,gap:h},I,{statefulTotalCount:p,listState:w,scrollToIndex:y,trackItemSizes:l,itemSize:s,groupIndices:f},b,R,C,L)},tup(rt,dt,y$1,pt,yt,lt,zt,Rt,gt,Ut,S$1)),Nt=Ft(function(){if("undefined"==typeof document)return "sticky";var t=document.createElement("div");return t.style.position="-webkit-sticky","-webkit-sticky"===t.style.position?"-webkit-sticky":"sticky"});function Dt(t,e){var n=useRef(null),o=useCallback(function(o){if(null!==o&&o.offsetParent){var r,i,a=o.getBoundingClientRect(),l=a.width;if(e){var s=e.getBoundingClientRect(),u=a.top-s.top;r=s.height-Math.max(0,u),i=u+e.scrollTop;}else r=window.innerHeight-Math.max(0,a.top),i=a.top+window.pageYOffset;n.current={offsetTop:i,visibleHeight:r,visibleWidth:l},t(n.current);}},[t,e]),l=C(o),s=l.callbackRef,u=l.ref,c=useCallback(function(){o(u.current);},[o,u]);return useEffect(function(){if(e){e.addEventListener("scroll",c);var t=new ResizeObserver(c);return t.observe(e),function(){e.removeEventListener("scroll",c),t.unobserve(e);}}return window.addEventListener("scroll",c),window.addEventListener("resize",c),function(){window.removeEventListener("scroll",c),window.removeEventListener("resize",c);}},[c,e]),s}var Gt=React.createContext(void 0),_t=React.createContext(void 0),jt=["placeholder"],Kt=["style","children"],Yt=["style","children"];function qt(t){return t}var Zt=system(function(){var t=statefulStream(function(t){return "Item "+t}),n=statefulStream(null),o=statefulStream(function(t){return "Group "+t}),r=statefulStream({}),i=statefulStream(qt),a=statefulStream("div"),l=statefulStream(noop),s=function(t,n){return void 0===n&&(n=null),statefulStreamFromEmitter(pipe(r,map(function(e){return e[t]}),distinctUntilChanged()),n)};return {context:n,itemContent:t,groupContent:o,components:r,computeItemKey:i,headerFooterTag:a,scrollerRef:l,FooterComponent:s("Footer"),HeaderComponent:s("Header"),TopItemListComponent:s("TopItemList"),ListComponent:s("List","div"),ItemComponent:s("Item","div"),GroupComponent:s("Group","div"),ScrollerComponent:s("Scroller","div"),EmptyPlaceholder:s("EmptyPlaceholder"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder")}});function Jt(t,n){var o=stream();return subscribe(o,function(){return console.warn("react-virtuoso: You are using a deprecated property. "+n,"color: red;","color: inherit;","color: blue;")}),connect(o,t),o}var $t=system(function(t){var n=t[0],o=t[1],r={item:Jt(o.itemContent,"Rename the %citem%c prop to %citemContent."),group:Jt(o.groupContent,"Rename the %cgroup%c prop to %cgroupContent."),topItems:Jt(n.topItemCount,"Rename the %ctopItems%c prop to %ctopItemCount."),itemHeight:Jt(n.fixedItemHeight,"Rename the %citemHeight%c prop to %cfixedItemHeight."),scrollingStateChange:Jt(n.isScrolling,"Rename the %cscrollingStateChange%c prop to %cisScrolling."),adjustForPrependedItems:stream(),maxHeightCacheSize:stream(),footer:stream(),header:stream(),HeaderContainer:stream(),FooterContainer:stream(),ItemContainer:stream(),ScrollContainer:stream(),GroupContainer:stream(),ListContainer:stream(),emptyComponent:stream(),scrollSeek:stream()};function i(t,n,r){connect(pipe(t,withLatestFrom(o.components),map(function(t){var e,o=t[0],i=t[1];return console.warn("react-virtuoso: "+r+" property is deprecated. Pass components."+n+" instead."),c$1({},i,((e={})[n]=o,e))})),o.components);}return subscribe(r.adjustForPrependedItems,function(){console.warn("react-virtuoso: adjustForPrependedItems is no longer supported. Use the firstItemIndex property instead - https://virtuoso.dev/prepend-items.","color: red;","color: inherit;","color: blue;");}),subscribe(r.maxHeightCacheSize,function(){console.warn("react-virtuoso: maxHeightCacheSize is no longer necessary. Setting it has no effect - remove it from your code.");}),subscribe(r.HeaderContainer,function(){console.warn("react-virtuoso: HeaderContainer is deprecated. Use headerFooterTag if you want to change the wrapper of the header component and pass components.Header to change its contents.");}),subscribe(r.FooterContainer,function(){console.warn("react-virtuoso: FooterContainer is deprecated. Use headerFooterTag if you want to change the wrapper of the footer component and pass components.Footer to change its contents.");}),subscribe(r.scrollSeek,function(t){var r=t.placeholder,i=m(t,jt);console.warn("react-virtuoso: scrollSeek property is deprecated. Pass scrollSeekConfiguration and specify the placeholder in components.ScrollSeekPlaceholder instead."),publish(o.components,c$1({},getValue(o.components),{ScrollSeekPlaceholder:r})),publish(n.scrollSeekConfiguration,i);}),i(r.footer,"Footer","footer"),i(r.header,"Header","header"),i(r.ItemContainer,"Item","ItemContainer"),i(r.ListContainer,"List","ListContainer"),i(r.ScrollContainer,"Scroller","ScrollContainer"),i(r.emptyComponent,"EmptyPlaceholder","emptyComponent"),i(r.GroupContainer,"Group","GroupContainer"),c$1({},n,o,r)},tup(At,Zt)),Qt=function(t){return React.createElement("div",{style:{height:t.height}})},Xt={position:Nt(),zIndex:1,overflowAnchor:"none"},te={overflowAnchor:"none"},ee=React.memo(function(t){var o=t.showTopList,r=void 0!==o&&o,i=ge("listState"),a=he("sizeRanges"),s=ge("useWindowScroll"),u=ge("customScrollParent"),m=he("windowScrollContainerState"),d=he("scrollContainerState"),f=u||s?m:d,p=ge("itemContent"),h=ge("context"),g=ge("groupContent"),v=ge("trackItemSizes"),S=ge("itemSize"),C=ge("log"),I=he("gap"),w=T$1(a,S,v,r?noop:f,C,I,u).callbackRef,x=React.useState(0),b=x[0],y=x[1];ve("deviation",function(t){b!==t&&y(t);});var H=ge("EmptyPlaceholder"),E=ge("ScrollSeekPlaceholder")||Qt,R=ge("ListComponent"),L=ge("ItemComponent"),F=ge("GroupComponent"),k=ge("computeItemKey"),z=ge("isSeeking"),B=ge("groupIndices").length>0,P=ge("paddingTopAddition"),O=r?{}:{boxSizing:"border-box",paddingTop:i.offsetTop+P,paddingBottom:i.offsetBottom,marginTop:b};return !r&&0===i.totalCount&&H?createElement$2(H,ie(H,h)):createElement$2(R,c$1({},ie(R,h),{ref:w,style:O,"data-test-id":r?"virtuoso-top-item-list":"virtuoso-item-list"}),(r?i.topItems:i.items).map(function(t){var e=t.originalIndex,n=k(e+i.firstItemIndex,t.data,h);return z?createElement$2(E,c$1({},ie(E,h),{key:n,index:t.index,height:t.size,type:t.type||"item"},"group"===t.type?{}:{groupIndex:t.groupIndex})):"group"===t.type?createElement$2(F,c$1({},ie(F,h),{key:n,"data-index":e,"data-known-size":t.size,"data-item-index":t.index,style:Xt}),g(t.index)):createElement$2(L,c$1({},ie(L,h),{key:n,"data-index":e,"data-known-size":t.size,"data-item-index":t.index,"data-item-group-index":t.groupIndex,style:te}),B?p(t.index,t.groupIndex,t.data,h):p(t.index,t.data,h))}))}),ne={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},oe={width:"100%",height:"100%",position:"absolute",top:0},re={width:"100%",position:Nt(),top:0};function ie(t,e){if("string"!=typeof t)return {context:e}}var ae=React.memo(function(){var t=ge("HeaderComponent"),e=he("headerHeight"),n=ge("headerFooterTag"),o=I$1(function(t){return e(w(t,"height"))}),r=ge("context");return t?createElement$2(n,{ref:o},createElement$2(t,ie(t,r))):null}),le=React.memo(function(){var t=ge("FooterComponent"),e=he("footerHeight"),n=ge("headerFooterTag"),o=I$1(function(t){return e(w(t,"height"))}),r=ge("context");return t?createElement$2(n,{ref:o},createElement$2(t,ie(t,r))):null});function se(t){var e=t.usePublisher,o=t.useEmitter,r=t.useEmitterValue;return React.memo(function(t){var n=t.style,i=t.children,a=m(t,Kt),s=e("scrollContainerState"),u=r("ScrollerComponent"),d=e("smoothScrollTargetReached"),f=r("scrollerRef"),p=r("context"),h=b(s,d,u,f),g=h.scrollerRef,v=h.scrollByCallback;return o("scrollTo",h.scrollToCallback),o("scrollBy",v),createElement$2(u,c$1({ref:g,style:c$1({},ne,n),"data-test-id":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0},a,ie(u,p)),i)})}function ue(t){var o=t.usePublisher,r=t.useEmitter,i=t.useEmitterValue;return React.memo(function(t){var n=t.style,a=t.children,s=m(t,Yt),u=o("windowScrollContainerState"),d=i("ScrollerComponent"),f=o("smoothScrollTargetReached"),p=i("totalListHeight"),h=i("deviation"),v=i("customScrollParent"),S=i("context"),C=b(u,f,d,noop,v),I=C.scrollerRef,T=C.scrollByCallback,w=C.scrollToCallback;return g(function(){return I.current=v||window,function(){I.current=null;}},[I,v]),r("windowScrollTo",w),r("scrollBy",T),createElement$2(d,c$1({style:c$1({position:"relative"},n,0!==p?{height:p+h}:{}),"data-virtuoso-scroller":!0},s,ie(d,S)),a)})}var ce=function(t){var o=t.children,r=useContext$1(Gt),i=he("viewportHeight"),a=he("fixedItemHeight"),l=I$1(compose(i,function(t){return w(t,"height")}));return React.useEffect(function(){r&&(i(r.viewportHeight),a(r.itemHeight));},[r,i,a]),React.createElement("div",{style:oe,ref:l,"data-viewport-type":"element"},o)},me=function(t){var e=t.children,o=useContext$1(Gt),r=he("windowViewportRect"),i=he("fixedItemHeight"),a=ge("customScrollParent"),l=Dt(r,a);return React.useEffect(function(){o&&(i(o.itemHeight),r({offsetTop:0,visibleHeight:o.viewportHeight,visibleWidth:100}));},[o,r,i]),React.createElement("div",{ref:l,style:oe,"data-viewport-type":"window"},e)},de=function(t){var e=t.children,n=ge("TopItemListComponent"),o=ge("headerHeight"),r=c$1({},re,{marginTop:o+"px"}),i=ge("context");return createElement$2(n||"div",{style:r,context:i},e)},fe=systemToComponent($t,{required:{},optional:{context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",react18ConcurrentRendering:"react18ConcurrentRendering",item:"item",group:"group",topItems:"topItems",itemHeight:"itemHeight",scrollingStateChange:"scrollingStateChange",maxHeightCacheSize:"maxHeightCacheSize",footer:"footer",header:"header",ItemContainer:"ItemContainer",ScrollContainer:"ScrollContainer",ListContainer:"ListContainer",GroupContainer:"GroupContainer",emptyComponent:"emptyComponent",HeaderContainer:"HeaderContainer",FooterContainer:"FooterContainer",scrollSeek:"scrollSeek"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",adjustForPrependedItems:"adjustForPrependedItems",autoscrollToBottom:"autoscrollToBottom"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},React.memo(function(t){var e=ge("useWindowScroll"),o=ge("topItemsIndexes").length>0,r=ge("customScrollParent"),i=r||e?me:ce;return React.createElement(r||e?Ce:Se,c$1({},t),React.createElement(i,null,React.createElement(ae,null),React.createElement(ee,null),React.createElement(le,null)),o&&React.createElement(de,null,React.createElement(ee,{showTopList:!0})))})),pe=fe.Component,he=fe.usePublisher,ge=fe.useEmitterValue,ve=fe.useEmitter,Se=se({usePublisher:he,useEmitterValue:ge,useEmitter:ve}),Ce=ue({usePublisher:he,useEmitterValue:ge,useEmitter:ve}),Ie={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},Te={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},we=Math.round,xe=Math.ceil,be=Math.floor,ye=Math.min,He=Math.max;function Ee(t,e,n){return Array.from({length:e-t+1}).map(function(e,o){return {index:o+t,data:null==n?void 0:n[o+t]}})}function Re(t,e){return t&&t.column===e.column&&t.row===e.row}var Le=system(function(t){var n=t[0],o=n.overscan,r=n.visibleRange,i=n.listBoundary,a=t[1],l=a.scrollTop,s=a.viewportHeight,u=a.scrollBy,m=a.scrollTo,d=a.smoothScrollTargetReached,f=a.scrollContainerState,p=a.footerHeight,h=a.headerHeight,g=t[2],v=t[3],S=t[4],C=S.propsReady,I=S.didMount,T=t[5],w=T.windowViewportRect,x=T.windowScrollTo,b=T.useWindowScroll,y=T.customScrollParent,H=T.windowScrollContainerState,E=t[6],R=statefulStream(0),L=statefulStream(0),F=statefulStream(Ie),k=statefulStream({height:0,width:0}),z=statefulStream({height:0,width:0}),B=stream(),P=stream(),O=statefulStream(0),M=statefulStream(void 0),W=statefulStream({row:0,column:0});connect(pipe(combineLatest(I,L,M),filter(function(t){return 0!==t[1]}),map(function(t){return {items:Ee(0,t[1]-1,t[2]),top:0,bottom:0,offsetBottom:0,offsetTop:0,itemHeight:0,itemWidth:0}})),F),connect(pipe(combineLatest(duc(R),r,duc(W,Re),duc(z,function(t,e){return t&&t.width===e.width&&t.height===e.height}),M),withLatestFrom(k),map(function(t){var e=t[0],n=e[0],o=e[1],r=o[0],i=o[1],a=e[2],l=e[3],s=e[4],u=t[1],m=a.row,d=a.column,f=l.height,p=l.width,h=u.width;if(0===n||0===h)return Ie;if(0===p)return function(t){return c$1({},Te,{items:t})}(Ee(0,0,s));var g=ze(h,p,d),v=g*be((r+m)/(f+m)),S=g*xe((i+m)/(f+m))-1;S=ye(n-1,He(S,g-1));var C=Ee(v=ye(S,He(0,v)),S,s),I=Fe(u,a,l,C),T=I.top,w=I.bottom,x=xe(n/g);return {items:C,offsetTop:T,offsetBottom:x*f+(x-1)*m-w,top:T,bottom:w,itemHeight:f,itemWidth:p}})),F),connect(pipe(M,filter(function(t){return void 0!==t}),map(function(t){return t.length})),R),connect(pipe(k,map(function(t){return t.height})),s),connect(pipe(combineLatest(k,z,F,W),map(function(t){var e=Fe(t[0],t[3],t[1],t[2].items);return [e.top,e.bottom]}),distinctUntilChanged(vt)),i);var V=streamFromEmitter(pipe(duc(F),filter(function(t){return t.items.length>0}),withLatestFrom(R),filter(function(t){var e=t[0].items;return e[e.length-1].index===t[1]-1}),map(function(t){return t[1]-1}),distinctUntilChanged())),U=streamFromEmitter(pipe(duc(F),filter(function(t){var e=t.items;return e.length>0&&0===e[0].index}),mapTo(0),distinctUntilChanged())),A=streamFromEmitter(pipe(duc(F),filter(function(t){return t.items.length>0}),map(function(t){var e=t.items;return {startIndex:e[0].index,endIndex:e[e.length-1].index}}),distinctUntilChanged(St)));connect(A,v.scrollSeekRangeChanged),connect(pipe(B,withLatestFrom(k,z,R,W),map(function(t){var e=t[1],n=t[2],o=t[3],r=t[4],i=at(t[0]),a=i.align,l=i.behavior,s=i.offset,u=i.index;"LAST"===u&&(u=o-1);var c=ke(e,r,n,u=He(0,u,ye(o-1,u)));return "end"===a?c=we(c-e.height+n.height):"center"===a&&(c=we(c-e.height/2+n.height/2)),s&&(c+=s),{top:c,behavior:l}})),m);var N=statefulStreamFromEmitter(pipe(F,map(function(t){return t.offsetBottom+t.bottom})),0);return connect(pipe(w,map(function(t){return {width:t.visibleWidth,height:t.visibleHeight}})),k),c$1({data:M,totalCount:R,viewportDimensions:k,itemDimensions:z,scrollTop:l,scrollHeight:P,overscan:o,scrollBy:u,scrollTo:m,scrollToIndex:B,smoothScrollTargetReached:d,windowViewportRect:w,windowScrollTo:x,useWindowScroll:b,customScrollParent:y,windowScrollContainerState:H,deviation:O,scrollContainerState:f,footerHeight:p,headerHeight:h,initialItemCount:L,gap:W},v,{gridState:F,totalListHeight:N},g,{startReached:U,endReached:V,rangeChanged:A,propsReady:C},E)},tup(Tt,y$1,ct,Et,mt,Ot,S$1));function Fe(t,e,n,o){var r=n.height;return void 0===r||0===o.length?{top:0,bottom:0}:{top:ke(t,e,n,o[0].index),bottom:ke(t,e,n,o[o.length-1].index)+r}}function ke(t,e,n,o){var r=ze(t.width,n.width,e.column),i=be(o/r),a=i*n.height+He(0,i-1)*e.row;return a>0?a+e.row:a}function ze(t,e,n){return He(1,be((t+n)/(e+n)))}var Be=["placeholder"],Pe=system(function(){var t=statefulStream(function(t){return "Item "+t}),n=statefulStream({}),o=statefulStream(null),r=statefulStream("virtuoso-grid-item"),i=statefulStream("virtuoso-grid-list"),a=statefulStream(qt),l=statefulStream("div"),s=statefulStream(noop),u=function(t,o){return void 0===o&&(o=null),statefulStreamFromEmitter(pipe(n,map(function(e){return e[t]}),distinctUntilChanged()),o)};return {context:o,itemContent:t,components:n,computeItemKey:a,itemClassName:r,listClassName:i,headerFooterTag:l,scrollerRef:s,FooterComponent:u("Footer"),HeaderComponent:u("Header"),ListComponent:u("List","div"),ItemComponent:u("Item","div"),ScrollerComponent:u("Scroller","div"),ScrollSeekPlaceholder:u("ScrollSeekPlaceholder","div")}}),Oe=system(function(t){var n=t[0],o=t[1],r={item:Jt(o.itemContent,"Rename the %citem%c prop to %citemContent."),ItemContainer:stream(),ScrollContainer:stream(),ListContainer:stream(),emptyComponent:stream(),scrollSeek:stream()};function i(t,n,r){connect(pipe(t,withLatestFrom(o.components),map(function(t){var e,o=t[0],i=t[1];return console.warn("react-virtuoso: "+r+" property is deprecated. Pass components."+n+" instead."),c$1({},i,((e={})[n]=o,e))})),o.components);}return subscribe(r.scrollSeek,function(t){var r=t.placeholder,i=m(t,Be);console.warn("react-virtuoso: scrollSeek property is deprecated. Pass scrollSeekConfiguration and specify the placeholder in components.ScrollSeekPlaceholder instead."),publish(o.components,c$1({},getValue(o.components),{ScrollSeekPlaceholder:r})),publish(n.scrollSeekConfiguration,i);}),i(r.ItemContainer,"Item","ItemContainer"),i(r.ListContainer,"List","ListContainer"),i(r.ScrollContainer,"Scroller","ScrollContainer"),c$1({},n,o,r)},tup(Le,Pe)),Me=React.memo(function(){var t=_e("gridState"),e=_e("listClassName"),n=_e("itemClassName"),o=_e("itemContent"),r=_e("computeItemKey"),i=_e("isSeeking"),a=Ge("scrollHeight"),s=_e("ItemComponent"),u=_e("ListComponent"),m=_e("ScrollSeekPlaceholder"),d=_e("context"),f=Ge("itemDimensions"),p=Ge("gap"),h=_e("log"),g=I$1(function(t){a(t.parentElement.parentElement.scrollHeight);var e=t.firstChild;e&&f(e.getBoundingClientRect()),p({row:qe("row-gap",getComputedStyle(t).rowGap,h),column:qe("column-gap",getComputedStyle(t).columnGap,h)});});return createElement$2(u,c$1({ref:g,className:e},ie(u,d),{style:{paddingTop:t.offsetTop,paddingBottom:t.offsetBottom}}),t.items.map(function(e){var a=r(e.index,e.data,d);return i?createElement$2(m,c$1({key:a},ie(m,d),{index:e.index,height:t.itemHeight,width:t.itemWidth})):createElement$2(s,c$1({},ie(s,d),{className:n,"data-index":e.index,key:a}),o(e.index,e.data,d))}))}),We=React.memo(function(){var t=_e("HeaderComponent"),e=Ge("headerHeight"),n=_e("headerFooterTag"),o=I$1(function(t){return e(w(t,"height"))}),r=_e("context");return t?createElement$2(n,{ref:o},createElement$2(t,ie(t,r))):null}),Ve=React.memo(function(){var t=_e("FooterComponent"),e=Ge("footerHeight"),n=_e("headerFooterTag"),o=I$1(function(t){return e(w(t,"height"))}),r=_e("context");return t?createElement$2(n,{ref:o},createElement$2(t,ie(t,r))):null}),Ue=function(t){var e=t.children,o=useContext$1(_t),r=Ge("itemDimensions"),i=Ge("viewportDimensions"),a=I$1(function(t){i(t.getBoundingClientRect());});return React.useEffect(function(){o&&(i({height:o.viewportHeight,width:o.viewportWidth}),r({height:o.itemHeight,width:o.itemWidth}));},[o,i,r]),React.createElement("div",{style:oe,ref:a},e)},Ae=function(t){var e=t.children,o=useContext$1(_t),r=Ge("windowViewportRect"),i=Ge("itemDimensions"),a=_e("customScrollParent"),l=Dt(r,a);return React.useEffect(function(){o&&(i({height:o.itemHeight,width:o.itemWidth}),r({offsetTop:0,visibleHeight:o.viewportHeight,visibleWidth:o.viewportWidth}));},[o,r,i]),React.createElement("div",{ref:l,style:oe},e)},Ne=systemToComponent(Oe,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",item:"item",ItemContainer:"ItemContainer",ScrollContainer:"ScrollContainer",ListContainer:"ListContainer",scrollSeek:"scrollSeek"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange"}},React.memo(function(t){var e=c$1({},t),o=_e("useWindowScroll"),r=_e("customScrollParent"),i=r||o?Ae:Ue;return React.createElement(r||o?Ye:Ke,c$1({},e),React.createElement(i,null,React.createElement(We,null),React.createElement(Me,null),React.createElement(Ve,null)))})),Ge=Ne.usePublisher,_e=Ne.useEmitterValue,je=Ne.useEmitter,Ke=se({usePublisher:Ge,useEmitterValue:_e,useEmitter:je}),Ye=ue({usePublisher:Ge,useEmitterValue:_e,useEmitter:je});function qe(t,e,n){return "normal"===e||null!=e&&e.endsWith("px")||n(t+" was not resolved to pixel value correctly",e,h.WARN),"normal"===e?0:parseInt(null!=e?e:"0",10)}var Ze=system(function(){var t=statefulStream(function(t){return React.createElement("td",null,"Item $",t)}),o=statefulStream(null),r=statefulStream(null),i=statefulStream(null),a=statefulStream({}),l=statefulStream(qt),s=statefulStream(noop),u=function(t,n){return void 0===n&&(n=null),statefulStreamFromEmitter(pipe(a,map(function(e){return e[t]}),distinctUntilChanged()),n)};return {context:o,itemContent:t,fixedHeaderContent:r,fixedFooterContent:i,components:a,computeItemKey:l,scrollerRef:s,TableComponent:u("Table","table"),TableHeadComponent:u("TableHead","thead"),TableFooterComponent:u("TableFoot","tfoot"),TableBodyComponent:u("TableBody","tbody"),TableRowComponent:u("TableRow","tr"),ScrollerComponent:u("Scroller","div"),EmptyPlaceholder:u("EmptyPlaceholder"),ScrollSeekPlaceholder:u("ScrollSeekPlaceholder"),FillerRow:u("FillerRow")}}),Je=system(function(t){return c$1({},t[0],t[1])},tup(At,Ze)),$e=function(t){return React.createElement("tr",null,React.createElement("td",{style:{height:t.height}}))},Qe=function(t){return React.createElement("tr",null,React.createElement("td",{style:{height:t.height,padding:0,border:0}}))},Xe=React.memo(function(){var t=an("listState"),e=rn("sizeRanges"),o=an("useWindowScroll"),r=an("customScrollParent"),i=rn("windowScrollContainerState"),a=rn("scrollContainerState"),s=r||o?i:a,u=an("itemContent"),m=an("trackItemSizes"),d=T$1(e,an("itemSize"),m,s,an("log"),void 0,r),f=d.callbackRef,p=d.ref,h=React.useState(0),g=h[0],v=h[1];ln("deviation",function(t){g!==t&&(p.current.style.marginTop=t+"px",v(t));});var S=an("EmptyPlaceholder"),C=an("ScrollSeekPlaceholder")||$e,I=an("FillerRow")||Qe,w=an("TableBodyComponent"),x=an("TableRowComponent"),b=an("computeItemKey"),y=an("isSeeking"),H=an("paddingTopAddition"),E=an("firstItemIndex"),R=an("statefulTotalCount"),L=an("context");if(0===R&&S)return createElement$2(S,ie(S,L));var F=t.offsetTop+H+g,k=t.offsetBottom,z=F>0?React.createElement(I,{height:F,key:"padding-top"}):null,B=k>0?React.createElement(I,{height:k,key:"padding-bottom"}):null,P=t.items.map(function(t){var e=t.originalIndex,n=b(e+E,t.data,L);return y?createElement$2(C,c$1({},ie(C,L),{key:n,index:t.index,height:t.size,type:t.type||"item"})):createElement$2(x,c$1({},ie(x,L),{key:n,"data-index":e,"data-known-size":t.size,"data-item-index":t.index,style:{overflowAnchor:"none"}}),u(t.index,t.data,L))});return createElement$2(w,c$1({ref:f,"data-test-id":"virtuoso-item-list"},ie(w,L)),[z].concat(P,[B]))}),tn=function(t){var o=t.children,r=useContext$1(Gt),i=rn("viewportHeight"),a=rn("fixedItemHeight"),l=I$1(compose(i,function(t){return w(t,"height")}));return React.useEffect(function(){r&&(i(r.viewportHeight),a(r.itemHeight));},[r,i,a]),React.createElement("div",{style:oe,ref:l,"data-viewport-type":"element"},o)},en=function(t){var e=t.children,o=useContext$1(Gt),r=rn("windowViewportRect"),i=rn("fixedItemHeight"),a=an("customScrollParent"),l=Dt(r,a);return React.useEffect(function(){o&&(i(o.itemHeight),r({offsetTop:0,visibleHeight:o.viewportHeight,visibleWidth:100}));},[o,r,i]),React.createElement("div",{ref:l,style:oe,"data-viewport-type":"window"},e)},nn=systemToComponent(Je,{required:{},optional:{context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",react18ConcurrentRendering:"react18ConcurrentRendering"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},React.memo(function(t){var o=an("useWindowScroll"),r=an("customScrollParent"),i=rn("fixedHeaderHeight"),a=rn("fixedFooterHeight"),l=an("fixedHeaderContent"),s=an("fixedFooterContent"),u=an("context"),m=I$1(compose(i,function(t){return w(t,"height")})),d=I$1(compose(a,function(t){return w(t,"height")})),f=r||o?un:sn,p=r||o?en:tn,h=an("TableComponent"),g=an("TableHeadComponent"),v=an("TableFooterComponent"),S=l?React.createElement(g,c$1({key:"TableHead",style:{zIndex:1,position:"sticky",top:0},ref:m},ie(g,u)),l()):null,C=s?React.createElement(v,c$1({key:"TableFoot",style:{zIndex:1,position:"sticky",bottom:0},ref:d},ie(v,u)),s()):null;return React.createElement(f,c$1({},t),React.createElement(p,null,React.createElement(h,c$1({style:{borderSpacing:0}},ie(h,u)),[S,React.createElement(Xe,{key:"TableBody"}),C])))})),rn=nn.usePublisher,an=nn.useEmitterValue,ln=nn.useEmitter,sn=se({usePublisher:rn,useEmitterValue:an,useEmitter:ln}),un=ue({usePublisher:rn,useEmitterValue:an,useEmitter:ln}),cn=pe;
102604
102674
 
102605
102675
  var call = functionCall;
102606
102676
  var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
102607
102677
  var anObject = anObject$l;
102608
102678
  var isNullOrUndefined = isNullOrUndefined$b;
102609
- var toLength$1 = toLength$a;
102610
- var toString$2 = toString$n;
102611
- var requireObjectCoercible$2 = requireObjectCoercible$f;
102679
+ var toLength = toLength$a;
102680
+ var toString = toString$n;
102681
+ var requireObjectCoercible = requireObjectCoercible$f;
102612
102682
  var getMethod = getMethod$8;
102613
102683
  var advanceStringIndex = advanceStringIndex$3;
102614
102684
  var regExpExec = regexpExecAbstract;
@@ -102619,15 +102689,15 @@ fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNa
102619
102689
  // `String.prototype.match` method
102620
102690
  // https://tc39.es/ecma262/#sec-string.prototype.match
102621
102691
  function match(regexp) {
102622
- var O = requireObjectCoercible$2(this);
102692
+ var O = requireObjectCoercible(this);
102623
102693
  var matcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, MATCH);
102624
- return matcher ? call(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString$2(O));
102694
+ return matcher ? call(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString(O));
102625
102695
  },
102626
102696
  // `RegExp.prototype[@@match]` method
102627
102697
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@match
102628
102698
  function (string) {
102629
102699
  var rx = anObject(this);
102630
- var S = toString$2(string);
102700
+ var S = toString(string);
102631
102701
  var res = maybeCallNative(nativeMatch, rx, S);
102632
102702
 
102633
102703
  if (res.done) return res.value;
@@ -102640,9 +102710,9 @@ fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNa
102640
102710
  var n = 0;
102641
102711
  var result;
102642
102712
  while ((result = regExpExec(rx, S)) !== null) {
102643
- var matchStr = toString$2(result[0]);
102713
+ var matchStr = toString(result[0]);
102644
102714
  A[n] = matchStr;
102645
- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength$1(rx.lastIndex), fullUnicode);
102715
+ if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
102646
102716
  n++;
102647
102717
  }
102648
102718
  return n === 0 ? null : A;
@@ -102650,76 +102720,6 @@ fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNa
102650
102720
  ];
102651
102721
  });
102652
102722
 
102653
- var toIntegerOrInfinity = toIntegerOrInfinity$c;
102654
- var toString$1 = toString$n;
102655
- var requireObjectCoercible$1 = requireObjectCoercible$f;
102656
-
102657
- var $RangeError = RangeError;
102658
-
102659
- // `String.prototype.repeat` method implementation
102660
- // https://tc39.es/ecma262/#sec-string.prototype.repeat
102661
- var stringRepeat = function repeat(count) {
102662
- var str = toString$1(requireObjectCoercible$1(this));
102663
- var result = '';
102664
- var n = toIntegerOrInfinity(count);
102665
- if (n < 0 || n === Infinity) throw new $RangeError('Wrong number of repetitions');
102666
- for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;
102667
- return result;
102668
- };
102669
-
102670
- // https://github.com/tc39/proposal-string-pad-start-end
102671
- var uncurryThis = functionUncurryThis;
102672
- var toLength = toLength$a;
102673
- var toString = toString$n;
102674
- var $repeat = stringRepeat;
102675
- var requireObjectCoercible = requireObjectCoercible$f;
102676
-
102677
- var repeat = uncurryThis($repeat);
102678
- var stringSlice = uncurryThis(''.slice);
102679
- var ceil = Math.ceil;
102680
-
102681
- // `String.prototype.{ padStart, padEnd }` methods implementation
102682
- var createMethod = function (IS_END) {
102683
- return function ($this, maxLength, fillString) {
102684
- var S = toString(requireObjectCoercible($this));
102685
- var intMaxLength = toLength(maxLength);
102686
- var stringLength = S.length;
102687
- var fillStr = fillString === undefined ? ' ' : toString(fillString);
102688
- var fillLen, stringFiller;
102689
- if (intMaxLength <= stringLength || fillStr === '') return S;
102690
- fillLen = intMaxLength - stringLength;
102691
- stringFiller = repeat(fillStr, ceil(fillLen / fillStr.length));
102692
- if (stringFiller.length > fillLen) stringFiller = stringSlice(stringFiller, 0, fillLen);
102693
- return IS_END ? S + stringFiller : stringFiller + S;
102694
- };
102695
- };
102696
-
102697
- var stringPad = {
102698
- // `String.prototype.padStart` method
102699
- // https://tc39.es/ecma262/#sec-string.prototype.padstart
102700
- start: createMethod(false),
102701
- // `String.prototype.padEnd` method
102702
- // https://tc39.es/ecma262/#sec-string.prototype.padend
102703
- end: createMethod(true)
102704
- };
102705
-
102706
- // https://github.com/zloirock/core-js/issues/280
102707
- var userAgent = environmentUserAgent;
102708
-
102709
- var stringPadWebkitBug = /Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(userAgent);
102710
-
102711
- var $$3 = _export;
102712
- var $padStart = stringPad.start;
102713
- var WEBKIT_BUG = stringPadWebkitBug;
102714
-
102715
- // `String.prototype.padStart` method
102716
- // https://tc39.es/ecma262/#sec-string.prototype.padstart
102717
- $$3({ target: 'String', proto: true, forced: WEBKIT_BUG }, {
102718
- padStart: function padStart(maxLength /* , fillString = ' ' */) {
102719
- return $padStart(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);
102720
- }
102721
- });
102722
-
102723
102723
  var $$2 = _export;
102724
102724
  var lastIndexOf = arrayLastIndexOf;
102725
102725
 
@@ -122962,7 +122962,7 @@ function requireD () {
122962
122962
  + 'pragma private protected public pure ref return scope shared static struct '
122963
122963
  + 'super switch synchronized template this throw try typedef typeid typeof union '
122964
122964
  + 'unittest version void volatile while with __FILE__ __LINE__ __gshared|10 '
122965
- + '__thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ "0.10.36"',
122965
+ + '__thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ "0.10.38"',
122966
122966
  built_in:
122967
122967
  'bool cdouble cent cfloat char creal dchar delegate double dstring float function '
122968
122968
  + 'idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar '
@@ -182675,4 +182675,4 @@ function defaultOnOpen(response) {
182675
182675
  }
182676
182676
  }
182677
182677
 
182678
- export { DoubleRightOutlined$1 as $, App$1 as A, Spin$1 as B, ConfigProvider$1 as C, CloseOutlined$1 as D, I as E, html2canvas as F, r as G, H, Icon$1 as I, Remarkable as J, Drawer as K, LeftOutlined$1 as L, Modal$1 as M, HighlightJS as N, cn as O, Pagination$1 as P, DatePicker$1 as Q, RightOutlined$1 as R, StyleProvider as S, Tooltip$1 as T, Button$2 as U, l as V, Upload$1 as W, X, Popover$1 as Y, ZoomInOutlined$1 as Z, _object_spread as _, AntdMessage as a, CloseCircleFilled$1 as a0, Divider$1 as a1, fetchEventSource as a2, Affix$1 as a3, Alert$1 as a4, Anchor$1 as a5, RefAutoComplete$1 as a6, Avatar$1 as a7, FloatButton$1 as a8, index$4 as a9, Segmented$1 as aA, Skeleton$1 as aB, Slider$1 as aC, Space$1 as aD, Statistic$1 as aE, Steps$1 as aF, Switch$1 as aG, Tabs as aH, Tag$1 as aI, theme as aJ, TimePicker$1 as aK, Timeline$1 as aL, Tour$1 as aM, Transfer$1 as aN, Tree$1 as aO, TreeSelect$1 as aP, Typography$1 as aQ, Watermark$1 as aR, QRCode$1 as aS, version$3 as aT, en_US$1 as aU, Badge$1 as aa, Breadcrumb$1 as ab, Calendar$1 as ac, Card$1 as ad, Carousel$1 as ae, Cascader$1 as af, Checkbox$1 as ag, Col$1 as ah, Collapse$1 as ai, Descriptions as aj, Dropdown$1 as ak, Empty$1 as al, Form$1 as am, index$3 as an, Image$2 as ao, InputNumber$1 as ap, Layout$1 as aq, List$1 as ar, Mentions$1 as as, Menu$1 as at, Popconfirm$1 as au, Progress$1 as av, Radio$1 as aw, Rate$1 as ax, Result$2 as ay, Row$3 as az, AntdNotification as b, _extends as c, _object_destructuring_empty as d, _object_spread_props as e, jsxs as f, _sliced_to_array as g, Table$1 as h, _to_consumable_array as i, jsx as j, Select$1 as k, CaretDownOutlined$1 as l, _inherits as m, _create_super as n, _create_class as o, _class_call_check as p, _define_property as q, _assert_this_initialized as r, _async_to_generator as s, transform$2 as t, MinusOutlined$1 as u, PlusOutlined$1 as v, __generator$1 as w, Input$1 as x, SearchOutlined$1 as y, zhCN as z };
182678
+ export { DoubleRightOutlined$1 as $, App$1 as A, Spin$1 as B, ConfigProvider$1 as C, CloseOutlined$1 as D, I as E, html2canvas as F, r as G, H, Icon$1 as I, Remarkable as J, Drawer as K, LeftOutlined$1 as L, Modal$1 as M, HighlightJS as N, cn as O, Pagination$1 as P, DatePicker$1 as Q, RightOutlined$1 as R, StyleProvider as S, Tooltip$1 as T, Button$2 as U, l as V, Upload$1 as W, X, Popover$1 as Y, ZoomInOutlined$1 as Z, _object_spread as _, AntdMessage as a, CloseCircleFilled$1 as a0, Divider$1 as a1, fetchEventSource as a2, Affix$1 as a3, Alert$1 as a4, Anchor$1 as a5, RefAutoComplete$1 as a6, Avatar$1 as a7, FloatButton$1 as a8, index$4 as a9, Segmented$1 as aA, Skeleton$1 as aB, Slider$1 as aC, Space$1 as aD, Statistic$1 as aE, Steps$1 as aF, Switch$1 as aG, Tabs as aH, Tag$1 as aI, theme as aJ, TimePicker$1 as aK, Timeline$1 as aL, Tour$1 as aM, Transfer$1 as aN, Tree$1 as aO, TreeSelect$1 as aP, Typography$1 as aQ, Watermark$1 as aR, QRCode$1 as aS, version$3 as aT, en_US$1 as aU, Badge$1 as aa, Breadcrumb$1 as ab, Calendar$1 as ac, Card$1 as ad, Carousel$1 as ae, Cascader$1 as af, Checkbox$1 as ag, Col$1 as ah, Collapse$1 as ai, Descriptions as aj, Dropdown$1 as ak, Empty$1 as al, Form$1 as am, index$3 as an, Image$2 as ao, InputNumber$1 as ap, Layout$1 as aq, List$1 as ar, Mentions$1 as as, Menu$1 as at, Popconfirm$1 as au, Progress$1 as av, Radio$1 as aw, Rate$1 as ax, Result$2 as ay, Row$3 as az, AntdNotification as b, _extends as c, _object_destructuring_empty as d, _object_spread_props as e, jsxs as f, _sliced_to_array as g, Table$1 as h, _to_consumable_array as i, jsx as j, Select$1 as k, CaretDownOutlined$1 as l, _inherits as m, _create_super as n, _create_class as o, _class_call_check as p, _define_property as q, _assert_this_initialized as r, _async_to_generator as s, transform$2 as t, __generator$1 as u, MinusOutlined$1 as v, PlusOutlined$1 as w, Input$1 as x, SearchOutlined$1 as y, zhCN as z };