@rocket.chat/fuselage 0.32.0-dev.257 → 0.32.0-dev.259

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.
@@ -1,13 +1,13 @@
1
1
  (function webpackUniversalModuleDefinition(root, factory) {
2
2
  if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("react"), require("@rocket.chat/fuselage-hooks"), require("@rocket.chat/icons"), require("react-dom"), require("react-virtuoso"));
3
+ module.exports = factory(require("react"), require("@rocket.chat/fuselage-hooks"), require("@rocket.chat/icons"), require("react-dom"));
4
4
  else if(typeof define === 'function' && define.amd)
5
- define("RocketChatFuselage", ["react", "@rocket.chat/fuselage-hooks", "@rocket.chat/icons", "react-dom", "react-virtuoso"], factory);
5
+ define("RocketChatFuselage", ["react", "@rocket.chat/fuselage-hooks", "@rocket.chat/icons", "react-dom"], factory);
6
6
  else if(typeof exports === 'object')
7
- exports["RocketChatFuselage"] = factory(require("react"), require("@rocket.chat/fuselage-hooks"), require("@rocket.chat/icons"), require("react-dom"), require("react-virtuoso"));
7
+ exports["RocketChatFuselage"] = factory(require("react"), require("@rocket.chat/fuselage-hooks"), require("@rocket.chat/icons"), require("react-dom"));
8
8
  else
9
- root["RocketChatFuselage"] = factory(root["react"], root["@rocket.chat/fuselage-hooks"], root["@rocket.chat/icons"], root["react-dom"], root["react-virtuoso"]);
10
- })(self, function(__WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_hooks__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_icons__, __WEBPACK_EXTERNAL_MODULE_react_dom__, __WEBPACK_EXTERNAL_MODULE_react_virtuoso__) {
9
+ root["RocketChatFuselage"] = factory(root["React"], root["@rocket.chat/fuselage-hooks"], root["@rocket.chat/icons"], root["react-dom"]);
10
+ })(self, function(__WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_hooks__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_icons__, __WEBPACK_EXTERNAL_MODULE_react_dom__) {
11
11
  return /******/ (function() { // webpackBootstrap
12
12
  /******/ "use strict";
13
13
  /******/ var __webpack_modules__ = ({
@@ -76,6 +76,1287 @@ function murmur2(str) {
76
76
  /* harmony default export */ __webpack_exports__["default"] = (murmur2);
77
77
 
78
78
 
79
+ /***/ }),
80
+
81
+ /***/ "../../node_modules/@virtuoso.dev/react-urx/dist/react-urx.esm.js":
82
+ /*!************************************************************************!*\
83
+ !*** ../../node_modules/@virtuoso.dev/react-urx/dist/react-urx.esm.js ***!
84
+ \************************************************************************/
85
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
86
+
87
+ __webpack_require__.r(__webpack_exports__);
88
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
89
+ /* harmony export */ "systemToComponent": function() { return /* binding */ systemToComponent; }
90
+ /* harmony export */ });
91
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
92
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
93
+ /* harmony import */ var _virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @virtuoso.dev/urx */ "../../node_modules/@virtuoso.dev/urx/dist/urx.esm.js");
94
+
95
+
96
+
97
+ function _objectWithoutPropertiesLoose(source, excluded) {
98
+ if (source == null) return {};
99
+ var target = {};
100
+ var sourceKeys = Object.keys(source);
101
+ var key, i;
102
+
103
+ for (i = 0; i < sourceKeys.length; i++) {
104
+ key = sourceKeys[i];
105
+ if (excluded.indexOf(key) >= 0) continue;
106
+ target[key] = source[key];
107
+ }
108
+
109
+ return target;
110
+ }
111
+
112
+ function _unsupportedIterableToArray(o, minLen) {
113
+ if (!o) return;
114
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
115
+ var n = Object.prototype.toString.call(o).slice(8, -1);
116
+ if (n === "Object" && o.constructor) n = o.constructor.name;
117
+ if (n === "Map" || n === "Set") return Array.from(o);
118
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
119
+ }
120
+
121
+ function _arrayLikeToArray(arr, len) {
122
+ if (len == null || len > arr.length) len = arr.length;
123
+
124
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
125
+
126
+ return arr2;
127
+ }
128
+
129
+ function _createForOfIteratorHelperLoose(o, allowArrayLike) {
130
+ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
131
+ if (it) return (it = it.call(o)).next.bind(it);
132
+
133
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
134
+ if (it) o = it;
135
+ var i = 0;
136
+ return function () {
137
+ if (i >= o.length) return {
138
+ done: true
139
+ };
140
+ return {
141
+ done: false,
142
+ value: o[i++]
143
+ };
144
+ };
145
+ }
146
+
147
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
148
+ }
149
+
150
+ var _excluded = ["children"];
151
+ /** @internal */
152
+
153
+ function omit(keys, obj) {
154
+ var result = {};
155
+ var index = {};
156
+ var idx = 0;
157
+ var len = keys.length;
158
+
159
+ while (idx < len) {
160
+ index[keys[idx]] = 1;
161
+ idx += 1;
162
+ }
163
+
164
+ for (var prop in obj) {
165
+ if (!index.hasOwnProperty(prop)) {
166
+ result[prop] = obj[prop];
167
+ }
168
+ }
169
+
170
+ return result;
171
+ }
172
+
173
+ var useIsomorphicLayoutEffect = typeof document !== 'undefined' ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_0__.useEffect;
174
+ /**
175
+ * Converts a system spec to React component by mapping the system streams to component properties, events and methods. Returns hooks for querying and modifying
176
+ * the system streams from the component's child components.
177
+ * @param systemSpec The return value from a [[system]] call.
178
+ * @param map The streams to props / events / methods mapping Check [[SystemPropsMap]] for more details.
179
+ * @param Root The optional React component to render. By default, the resulting component renders nothing, acting as a logical wrapper for its children.
180
+ * @returns an object containing the following:
181
+ * - `Component`: the React component.
182
+ * - `useEmitterValue`: a hook that lets child components use values emitted from the specified output stream.
183
+ * - `useEmitter`: a hook that calls the provided callback whenever the specified stream emits a value.
184
+ * - `usePublisher`: a hook which lets child components publish values to the specified stream.
185
+ * <hr />
186
+ */
187
+
188
+ function systemToComponent(systemSpec, map, Root) {
189
+ var requiredPropNames = Object.keys(map.required || {});
190
+ var optionalPropNames = Object.keys(map.optional || {});
191
+ var methodNames = Object.keys(map.methods || {});
192
+ var eventNames = Object.keys(map.events || {});
193
+ var Context = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({});
194
+
195
+ function applyPropsToSystem(system, props) {
196
+ if (system['propsReady']) {
197
+ (0,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_1__.publish)(system['propsReady'], false);
198
+ }
199
+
200
+ for (var _iterator = _createForOfIteratorHelperLoose(requiredPropNames), _step; !(_step = _iterator()).done;) {
201
+ var requiredPropName = _step.value;
202
+ var stream = system[map.required[requiredPropName]];
203
+ (0,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_1__.publish)(stream, props[requiredPropName]);
204
+ }
205
+
206
+ for (var _iterator2 = _createForOfIteratorHelperLoose(optionalPropNames), _step2; !(_step2 = _iterator2()).done;) {
207
+ var optionalPropName = _step2.value;
208
+
209
+ if (optionalPropName in props) {
210
+ var _stream = system[map.optional[optionalPropName]];
211
+ (0,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_1__.publish)(_stream, props[optionalPropName]);
212
+ }
213
+ }
214
+
215
+ if (system['propsReady']) {
216
+ (0,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_1__.publish)(system['propsReady'], true);
217
+ }
218
+ }
219
+
220
+ function buildMethods(system) {
221
+ return methodNames.reduce(function (acc, methodName) {
222
+
223
+ acc[methodName] = function (value) {
224
+ var stream = system[map.methods[methodName]];
225
+ (0,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_1__.publish)(stream, value);
226
+ };
227
+
228
+ return acc;
229
+ }, {});
230
+ }
231
+
232
+ function buildEventHandlers(system) {
233
+ return eventNames.reduce(function (handlers, eventName) {
234
+ handlers[eventName] = (0,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_1__.eventHandler)(system[map.events[eventName]]);
235
+ return handlers;
236
+ }, {});
237
+ }
238
+ /**
239
+ * A React component generated from an urx system
240
+ */
241
+
242
+
243
+ var Component = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (propsWithChildren, ref) {
244
+ var children = propsWithChildren.children,
245
+ props = _objectWithoutPropertiesLoose(propsWithChildren, _excluded);
246
+
247
+ var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(function () {
248
+ return (0,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_1__.tap)((0,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_1__.init)(systemSpec), function (system) {
249
+ return applyPropsToSystem(system, props);
250
+ });
251
+ }),
252
+ system = _useState[0];
253
+
254
+ var _useState2 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)((0,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_1__.curry1to0)(buildEventHandlers, system)),
255
+ handlers = _useState2[0];
256
+
257
+ useIsomorphicLayoutEffect(function () {
258
+ for (var _iterator3 = _createForOfIteratorHelperLoose(eventNames), _step3; !(_step3 = _iterator3()).done;) {
259
+ var eventName = _step3.value;
260
+
261
+ if (eventName in props) {
262
+ (0,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_1__.subscribe)(handlers[eventName], props[eventName]);
263
+ }
264
+ }
265
+
266
+ return function () {
267
+ Object.values(handlers).map(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_1__.reset);
268
+ };
269
+ }, [props, handlers, system]);
270
+ useIsomorphicLayoutEffect(function () {
271
+ applyPropsToSystem(system, props);
272
+ });
273
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useImperativeHandle)(ref, (0,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_1__.always)(buildMethods(system)));
274
+ return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(Context.Provider, {
275
+ value: system
276
+ }, Root ? (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(Root, omit([].concat(requiredPropNames, optionalPropNames, eventNames), props), children) : children);
277
+ });
278
+
279
+ var usePublisher = function usePublisher(key) {
280
+ return (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((0,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_1__.curry2to1)(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_1__.publish, (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(Context)[key]), [key]);
281
+ };
282
+ /**
283
+ * Returns the value emitted from the stream.
284
+ */
285
+
286
+
287
+ var useEmitterValue = function useEmitterValue(key) {
288
+ var context = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(Context);
289
+ var source = context[key];
290
+
291
+ var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)((0,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_1__.curry1to0)(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_1__.getValue, source)),
292
+ value = _useState3[0],
293
+ setValue = _useState3[1];
294
+
295
+ useIsomorphicLayoutEffect(function () {
296
+ return (0,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_1__.subscribe)(source, function (next) {
297
+ if (next !== value) {
298
+ setValue((0,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_1__.always)(next));
299
+ }
300
+ });
301
+ }, [source, value]);
302
+ return value;
303
+ };
304
+
305
+ var useEmitter = function useEmitter(key, callback) {
306
+ var context = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(Context);
307
+ var source = context[key];
308
+ useIsomorphicLayoutEffect(function () {
309
+ return (0,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_1__.subscribe)(source, callback);
310
+ }, [callback, source]);
311
+ };
312
+
313
+ return {
314
+ Component: Component,
315
+ usePublisher: usePublisher,
316
+ useEmitterValue: useEmitterValue,
317
+ useEmitter: useEmitter
318
+ };
319
+ }
320
+
321
+
322
+ //# sourceMappingURL=react-urx.esm.js.map
323
+
324
+
325
+ /***/ }),
326
+
327
+ /***/ "../../node_modules/@virtuoso.dev/urx/dist/urx.esm.js":
328
+ /*!************************************************************!*\
329
+ !*** ../../node_modules/@virtuoso.dev/urx/dist/urx.esm.js ***!
330
+ \************************************************************/
331
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
332
+
333
+ __webpack_require__.r(__webpack_exports__);
334
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
335
+ /* harmony export */ "always": function() { return /* binding */ always; },
336
+ /* harmony export */ "call": function() { return /* binding */ call; },
337
+ /* harmony export */ "combineLatest": function() { return /* binding */ combineLatest; },
338
+ /* harmony export */ "compose": function() { return /* binding */ compose; },
339
+ /* harmony export */ "connect": function() { return /* binding */ connect; },
340
+ /* harmony export */ "curry1to0": function() { return /* binding */ curry1to0; },
341
+ /* harmony export */ "curry2to1": function() { return /* binding */ curry2to1; },
342
+ /* harmony export */ "debounceTime": function() { return /* binding */ debounceTime; },
343
+ /* harmony export */ "defaultComparator": function() { return /* binding */ defaultComparator; },
344
+ /* harmony export */ "distinctUntilChanged": function() { return /* binding */ distinctUntilChanged; },
345
+ /* harmony export */ "duc": function() { return /* binding */ duc; },
346
+ /* harmony export */ "eventHandler": function() { return /* binding */ eventHandler; },
347
+ /* harmony export */ "filter": function() { return /* binding */ filter; },
348
+ /* harmony export */ "getValue": function() { return /* binding */ getValue; },
349
+ /* harmony export */ "handleNext": function() { return /* binding */ handleNext; },
350
+ /* harmony export */ "init": function() { return /* binding */ init; },
351
+ /* harmony export */ "joinProc": function() { return /* binding */ joinProc; },
352
+ /* harmony export */ "map": function() { return /* binding */ map; },
353
+ /* harmony export */ "mapTo": function() { return /* binding */ mapTo; },
354
+ /* harmony export */ "merge": function() { return /* binding */ merge; },
355
+ /* harmony export */ "noop": function() { return /* binding */ noop; },
356
+ /* harmony export */ "pipe": function() { return /* binding */ pipe; },
357
+ /* harmony export */ "prop": function() { return /* binding */ prop; },
358
+ /* harmony export */ "publish": function() { return /* binding */ publish; },
359
+ /* harmony export */ "reset": function() { return /* binding */ reset; },
360
+ /* harmony export */ "scan": function() { return /* binding */ scan; },
361
+ /* harmony export */ "skip": function() { return /* binding */ skip; },
362
+ /* harmony export */ "statefulStream": function() { return /* binding */ statefulStream; },
363
+ /* harmony export */ "statefulStreamFromEmitter": function() { return /* binding */ statefulStreamFromEmitter; },
364
+ /* harmony export */ "stream": function() { return /* binding */ stream; },
365
+ /* harmony export */ "streamFromEmitter": function() { return /* binding */ streamFromEmitter; },
366
+ /* harmony export */ "subscribe": function() { return /* binding */ subscribe; },
367
+ /* harmony export */ "system": function() { return /* binding */ system; },
368
+ /* harmony export */ "tap": function() { return /* binding */ tap; },
369
+ /* harmony export */ "throttleTime": function() { return /* binding */ throttleTime; },
370
+ /* harmony export */ "thrush": function() { return /* binding */ thrush; },
371
+ /* harmony export */ "tup": function() { return /* binding */ tup; },
372
+ /* harmony export */ "withLatestFrom": function() { return /* binding */ withLatestFrom; }
373
+ /* harmony export */ });
374
+ var PUBLISH = 0;
375
+ var SUBSCRIBE = 1;
376
+ var RESET = 2;
377
+ var VALUE = 4;
378
+
379
+ /**
380
+ * Utils includes
381
+ * - a handful of functional utilities inspired by or taken from the [Ramda library](https://ramdajs.com/);
382
+ * - TypeScript crutches - the [[tup]] function.
383
+ *
384
+ * Use these for your convenience - they are here so that urx is zero-dependency package.
385
+ *
386
+ * @packageDocumentation
387
+ */
388
+
389
+ /**
390
+ * Performs left to right composition of two functions.
391
+ */
392
+ function compose(a, b) {
393
+ return function (arg) {
394
+ return a(b(arg));
395
+ };
396
+ }
397
+ /**
398
+ * Takes a value and applies a function to it.
399
+ */
400
+
401
+ function thrush(arg, proc) {
402
+ return proc(arg);
403
+ }
404
+ /**
405
+ * Takes a 2 argument function and partially applies the first argument.
406
+ */
407
+
408
+ function curry2to1(proc, arg1) {
409
+ return function (arg2) {
410
+ return proc(arg1, arg2);
411
+ };
412
+ }
413
+ /**
414
+ * Takes a 1 argument function and returns a function which when called, executes it with the provided argument.
415
+ */
416
+
417
+ function curry1to0(proc, arg) {
418
+ return function () {
419
+ return proc(arg);
420
+ };
421
+ }
422
+ /**
423
+ * Returns a function which extracts the property from from the passed object.
424
+ */
425
+
426
+ function prop(property) {
427
+ return function (object) {
428
+ return object[property];
429
+ };
430
+ }
431
+ /**
432
+ * Calls callback with the first argument, and returns it.
433
+ */
434
+
435
+ function tap(arg, proc) {
436
+ proc(arg);
437
+ return arg;
438
+ }
439
+ /**
440
+ * Utility function to help typescript figure out that what we pass is a tuple and not a generic array.
441
+ * Taken from (this StackOverflow tread)[https://stackoverflow.com/questions/49729550/implicitly-create-a-tuple-in-typescript/52445008#52445008]
442
+ */
443
+
444
+ function tup() {
445
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
446
+ args[_key] = arguments[_key];
447
+ }
448
+
449
+ return args;
450
+ }
451
+ /**
452
+ * Calls the passed function.
453
+ */
454
+
455
+ function call(proc) {
456
+ proc();
457
+ }
458
+ /**
459
+ * returns a function which when called always returns the passed value
460
+ */
461
+
462
+ function always(value) {
463
+ return function () {
464
+ return value;
465
+ };
466
+ }
467
+ /**
468
+ * returns a function which calls all passed functions in the passed order.
469
+ * joinProc does not pass arguments or collect return values.
470
+ */
471
+
472
+ function joinProc() {
473
+ for (var _len2 = arguments.length, procs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
474
+ procs[_key2] = arguments[_key2];
475
+ }
476
+
477
+ return function () {
478
+ procs.map(call);
479
+ };
480
+ }
481
+ function noop() {}
482
+
483
+ /**
484
+ * urx Actions operate on streams - `publish` publishes data in a stream, and `subscribe` attaches a subscription to a stream.
485
+ * @packageDocumentation
486
+ */
487
+ /**
488
+ * Subscribes the specified [[Subscription]] to the updates from the Emitter.
489
+ * The emitter calls the subscription with the new data each time new data is published into it.
490
+ *
491
+ * ```ts
492
+ * const foo = stream<number>();
493
+ * subscribe(foo, (value) => console.log(value));
494
+ * ```
495
+ *
496
+ * @returns an [[Unsubscribe]] handle - calling it will unbind the subscription from the emitter.
497
+ *```ts
498
+ * const foo = stream<number>();
499
+ * const unsub = subscribe(foo, (value) => console.log(value));
500
+ * unsub();
501
+ *```
502
+ */
503
+
504
+ function subscribe(emitter, subscription) {
505
+ return emitter(SUBSCRIBE, subscription);
506
+ }
507
+ /**
508
+ * Publishes the value into the passed [[Publisher]].
509
+ *
510
+ * ```ts
511
+ * const foo = stream<number>();
512
+ * publish(foo, 42);
513
+ * ```
514
+ */
515
+
516
+ function publish(publisher, value) {
517
+ publisher(PUBLISH, value);
518
+ }
519
+ /**
520
+ * Clears all subscriptions from the [[Emitter]].
521
+ * ```ts
522
+ * const foo = stream<number>();
523
+ * subscribe(foo, (value) => console.log(value));
524
+ * reset(foo);
525
+ * publish(foo, 42);
526
+ * ```
527
+ */
528
+
529
+ function reset(emitter) {
530
+ emitter(RESET);
531
+ }
532
+ /**
533
+ * Extracts the current value from a stateful stream. Use it only as an escape hatch, as it violates the concept of reactive programming.
534
+ * ```ts
535
+ * const foo = statefulStream(42);
536
+ * console.log(getValue(foo));
537
+ * ```
538
+ */
539
+
540
+ function getValue(depot) {
541
+ return depot(VALUE);
542
+ }
543
+ /**
544
+ * Connects two streams - any value emitted from the emitter will be published in the publisher.
545
+ * ```ts
546
+ * const foo = stream<number>();
547
+ * const bar = stream<number>();
548
+ * subscribe(bar, (value) => console.log(`Bar emitted ${value}`));
549
+ *
550
+ * connect(foo, bar);
551
+ * publish(foo);
552
+ * ```
553
+ * @returns an [[Unsubscribe]] handle which will disconnect the two streams.
554
+ */
555
+
556
+ function connect(emitter, publisher) {
557
+ return subscribe(emitter, curry2to1(publisher, PUBLISH));
558
+ }
559
+ /**
560
+ * Executes the passed subscription at most once, for the next emit from the emitter.
561
+ * ```ts
562
+ * const foo = stream<number>()
563
+ * handleNext(foo, value => console.log(value)) // called once, with 42
564
+ * publish(foo, 42)
565
+ * publish(foo, 43)
566
+ * ```
567
+ * @returns an [[Unsubscribe]] handle to unbind the subscription if necessary.
568
+ */
569
+
570
+ function handleNext(emitter, subscription) {
571
+ var unsub = emitter(SUBSCRIBE, function (value) {
572
+ unsub();
573
+ subscription(value);
574
+ });
575
+ return unsub;
576
+ }
577
+
578
+ /**
579
+ * Streams are the basic building blocks of a reactive system. Think of them as the system permanent "data tubes".
580
+ *
581
+ * A stream acts as both an [[Emitter]] and [[Publisher]]. Each stream can have multiple {@link Subscription | Subscriptions}.
582
+ *
583
+ * urx streams are either **stateless** or **stateful**.
584
+ * Stateless streams emit data to existing subscriptions when published, without keeping track of it.
585
+ * Stateful streams remember the last published value and immediately publish it to new subscriptions.
586
+ *
587
+ * ```ts
588
+ * import { stream, statefulStream, publish, subscribe } from "@virtuoso.dev/urx";
589
+ *
590
+ * // foo is a stateless stream
591
+ * const foo = stream<number>();
592
+ *
593
+ * publish(foo, 42);
594
+ * // this subsription will not be called...
595
+ * subscribe(foo, (value) => console.log(value));
596
+ * // it will only catch published values after it
597
+ * publish(foo, 43);
598
+ *
599
+ * // stateful streams always start with an initial value
600
+ * const bar = statefulStream(42);
601
+ *
602
+ * // subscribing to a stateful stream
603
+ * // immediately calls the subscription with the current value
604
+ * subscribe(bar, (value) => console.log(value));
605
+ *
606
+ * // subsequent publishing works just like stateless streams
607
+ * publish(bar, 43);
608
+ * ```
609
+ * @packageDocumentation
610
+ */
611
+ /**
612
+ * Constructs a new stateless stream.
613
+ * ```ts
614
+ * const foo = stream<number>();
615
+ * ```
616
+ * @typeParam T the type of values to publish in the stream.
617
+ * @returns a [[Stream]]
618
+ */
619
+
620
+ function stream() {
621
+ var subscriptions = [];
622
+ return function (action, arg) {
623
+ switch (action) {
624
+ case RESET:
625
+ subscriptions.splice(0, subscriptions.length);
626
+ return;
627
+
628
+ case SUBSCRIBE:
629
+ subscriptions.push(arg);
630
+ return function () {
631
+ var indexOf = subscriptions.indexOf(arg);
632
+
633
+ if (indexOf > -1) {
634
+ subscriptions.splice(indexOf, 1);
635
+ }
636
+ };
637
+
638
+ case PUBLISH:
639
+ subscriptions.slice().forEach(function (subscription) {
640
+ subscription(arg);
641
+ });
642
+ return;
643
+
644
+ default:
645
+ throw new Error("unrecognized action " + action);
646
+ }
647
+ };
648
+ }
649
+ /**
650
+ * Constructs a new stateful stream.
651
+ * ```ts
652
+ * const foo = statefulStream(42);
653
+ * ```
654
+ * @param initial the initial value in the stream.
655
+ * @typeParam T the type of values to publish in the stream. If omitted, the function infers it from the initial value.
656
+ * @returns a [[StatefulStream]]
657
+ */
658
+
659
+ function statefulStream(initial) {
660
+ var value = initial;
661
+ var innerSubject = stream();
662
+ return function (action, arg) {
663
+ switch (action) {
664
+ case SUBSCRIBE:
665
+ var subscription = arg;
666
+ subscription(value);
667
+ break;
668
+
669
+ case PUBLISH:
670
+ value = arg;
671
+ break;
672
+
673
+ case VALUE:
674
+ return value;
675
+ }
676
+
677
+ return innerSubject(action, arg);
678
+ };
679
+ }
680
+ /**
681
+ * Event handlers are special emitters which can have **at most one active subscription**.
682
+ * Subscribing to an event handler unsubscribes the previous subscription, if present.
683
+ * ```ts
684
+ * const foo = stream<number>();
685
+ * const fooEvent = eventHandler(foo);
686
+ *
687
+ * // will be called once with 42
688
+ * subscribe(fooEvent, (value) => console.log(`Sub 1 ${value}`));
689
+ * publish(foo, 42);
690
+ *
691
+ * // unsubscribes sub 1
692
+ * subscribe(fooEvent, (value) => console.log(`Sub 2 ${value}`));
693
+ * publish(foo, 43);
694
+ * ```
695
+ * @param emitter the source emitter.
696
+ * @returns the single-subscription emitter.
697
+ */
698
+
699
+ function eventHandler(emitter) {
700
+ var unsub;
701
+ var currentSubscription;
702
+
703
+ var cleanup = function cleanup() {
704
+ return unsub && unsub();
705
+ };
706
+
707
+ return function (action, subscription) {
708
+ switch (action) {
709
+ case SUBSCRIBE:
710
+ if (subscription) {
711
+ if (currentSubscription === subscription) {
712
+ return;
713
+ }
714
+
715
+ cleanup();
716
+ currentSubscription = subscription;
717
+ unsub = subscribe(emitter, subscription);
718
+ return unsub;
719
+ } else {
720
+ cleanup();
721
+ return noop;
722
+ }
723
+
724
+ case RESET:
725
+ cleanup();
726
+ currentSubscription = null;
727
+ return;
728
+
729
+ default:
730
+ throw new Error("unrecognized action " + action);
731
+ }
732
+ };
733
+ }
734
+ /**
735
+ * Creates and connects a "junction" stream to the specified emitter. Often used with [[pipe]], to avoid the multiple evaluation of operator sets.
736
+ *
737
+ * ```ts
738
+ * const foo = stream<number>();
739
+ *
740
+ * const fooX2 = pipe(
741
+ * foo,
742
+ * map((value) => {
743
+ * console.log(`multiplying ${value}`);
744
+ * return value * 2;
745
+ * })
746
+ * );
747
+ *
748
+ * subscribe(fooX2, (value) => console.log(value));
749
+ * subscribe(fooX2, (value) => console.log(value));
750
+ *
751
+ * publish(foo, 42); // executes the map operator twice for each subscription.
752
+ *
753
+ * const sharedFooX2 = streamFromEmitter(pipe(
754
+ * foo,
755
+ * map((value) => {
756
+ * console.log(`shared multiplying ${value}`);
757
+ * return value * 2;
758
+ * })
759
+ * ));
760
+ *
761
+ * subscribe(sharedFooX2, (value) => console.log(value));
762
+ * subscribe(sharedFooX2, (value) => console.log(value));
763
+ *
764
+ * publish(foo, 42);
765
+ *```
766
+ * @returns the resulting stream.
767
+ */
768
+
769
+ function streamFromEmitter(emitter) {
770
+ return tap(stream(), function (stream) {
771
+ return connect(emitter, stream);
772
+ });
773
+ }
774
+ /**
775
+ * Creates and connects a "junction" stateful stream to the specified emitter. Often used with [[pipe]], to avoid the multiple evaluation of operator sets.
776
+ *
777
+ * ```ts
778
+ * const foo = stream<number>();
779
+ *
780
+ * const fooX2 = pipe(
781
+ * foo,
782
+ * map((value) => {
783
+ * console.log(`multiplying ${value}`);
784
+ * return value * 2;
785
+ * })
786
+ * );
787
+ *
788
+ * subscribe(fooX2, (value) => console.log(value));
789
+ * subscribe(fooX2, (value) => console.log(value));
790
+ *
791
+ * publish(foo, 42); // executes the map operator twice for each subscription.
792
+ *
793
+ * const sharedFooX2 = statefulStreamFromEmitter(pipe(
794
+ * foo,
795
+ * map((value) => {
796
+ * console.log(`shared multiplying ${value}`);
797
+ * return value * 2;
798
+ * })
799
+ * ), 42);
800
+ *
801
+ * subscribe(sharedFooX2, (value) => console.log(value));
802
+ * subscribe(sharedFooX2, (value) => console.log(value));
803
+ *
804
+ * publish(foo, 42);
805
+ *```
806
+ * @param initial the initial value in the stream.
807
+ * @returns the resulting stateful stream.
808
+ */
809
+
810
+ function statefulStreamFromEmitter(emitter, initial) {
811
+ return tap(statefulStream(initial), function (stream) {
812
+ return connect(emitter, stream);
813
+ });
814
+ }
815
+
816
+ /**
817
+ *
818
+ * Stream values can be transformed and controlled by {@link pipe | **piping**} through **operators**.
819
+ * urx includes several operators like [[map]], [[filter]], [[scan]], and [[throttleTime]].
820
+ * The [[withLatestFrom]] operator allows the combination of values from other streams.
821
+ *
822
+ * ```ts
823
+ * const foo = stream<number>()
824
+ *
825
+ * // create an emitter that first adds 2 to the passed value, then multiplies it by * 2
826
+ * const bar = pipe(foo, map(value => value + 2), map(value => value * 2))
827
+ * subscribe(bar, value => console.log(value))
828
+ * publish(foo, 2) // outputs 8
829
+ * ```
830
+ *
831
+ * ### Implementing Custom Operators
832
+ * To implement your own operators, implement the [[Operator]] interface.
833
+ * @packageDocumentation
834
+ */
835
+ /** @internal */
836
+
837
+ function combineOperators() {
838
+ for (var _len = arguments.length, operators = new Array(_len), _key = 0; _key < _len; _key++) {
839
+ operators[_key] = arguments[_key];
840
+ }
841
+
842
+ return function (subscriber) {
843
+ return operators.reduceRight(thrush, subscriber);
844
+ };
845
+ }
846
+
847
+ function pipe(source) {
848
+ for (var _len2 = arguments.length, operators = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
849
+ operators[_key2 - 1] = arguments[_key2];
850
+ }
851
+
852
+ // prettier-ignore
853
+ var project = combineOperators.apply(void 0, operators);
854
+ return function (action, subscription) {
855
+ switch (action) {
856
+ case SUBSCRIBE:
857
+ return subscribe(source, project(subscription));
858
+
859
+ case RESET:
860
+ reset(source);
861
+ return;
862
+
863
+ default:
864
+ throw new Error("unrecognized action " + action);
865
+ }
866
+ };
867
+ }
868
+ /**
869
+ * The default [[Comparator]] for [[distinctUntilChanged]] and [[duc]].
870
+ */
871
+
872
+ function defaultComparator(previous, next) {
873
+ return previous === next;
874
+ }
875
+ /**
876
+ * Filters out identical values. Pass an optional [[Comparator]] if you need to filter non-primitive values.
877
+ * ```ts
878
+ * const foo = stream<number>()
879
+ *
880
+ * subscribe(
881
+ * pipe(foo, distinctUntilChanged()),
882
+ * console.log
883
+ * ) // will be called only once
884
+ *
885
+ * publish(foo, 42)
886
+ * publish(foo, 42)
887
+ * ```
888
+ */
889
+
890
+ function distinctUntilChanged(comparator) {
891
+ if (comparator === void 0) {
892
+ comparator = defaultComparator;
893
+ }
894
+
895
+ var current;
896
+ return function (done) {
897
+ return function (next) {
898
+ if (!comparator(current, next)) {
899
+ current = next;
900
+ done(next);
901
+ }
902
+ };
903
+ };
904
+ }
905
+ /**
906
+ * Filters out values for which the predicator does not return `true`-ish.
907
+ * ```ts
908
+ * const foo = stream<number>()
909
+ *
910
+ * subscribe(
911
+ * pipe(foo, filter(value => value % 2 === 0)),
912
+ * console.log
913
+ * ) // will be called only with even values
914
+ *
915
+ * publish(foo, 2)
916
+ * publish(foo, 3)
917
+ * publish(foo, 4)
918
+ * publish(foo, 5)
919
+ * ```
920
+ */
921
+
922
+ function filter(predicate) {
923
+ return function (done) {
924
+ return function (value) {
925
+ predicate(value) && done(value);
926
+ };
927
+ };
928
+ }
929
+ /**
930
+ * Maps values using the provided project function.
931
+ * ```ts
932
+ * const foo = stream<number>()
933
+ *
934
+ * subscribe(
935
+ * pipe(foo, map(value => value * 2)),
936
+ * console.log
937
+ * ) // 4, 6
938
+ *
939
+ * publish(foo, 2)
940
+ * publish(foo, 3)
941
+ * ```
942
+ */
943
+
944
+ function map(project) {
945
+ return function (done) {
946
+ return compose(done, project);
947
+ };
948
+ }
949
+ /**
950
+ * Maps values to the hard-coded value.
951
+ * ```ts
952
+ * const foo = stream<number>()
953
+ *
954
+ * subscribe(
955
+ * pipe(foo, mapTo(3)),
956
+ * console.log
957
+ * ) // 3, 3
958
+ *
959
+ * publish(foo, 1)
960
+ * publish(foo, 2)
961
+ * ```
962
+ */
963
+
964
+ function mapTo(value) {
965
+ return function (done) {
966
+ return function () {
967
+ return done(value);
968
+ };
969
+ };
970
+ }
971
+ /**
972
+ * Works like Array#reduce.
973
+ * Applies an accumulator function on the emitter, and outputs intermediate result. Starts with the initial value.
974
+ * ```ts
975
+ * const foo = stream<number>()
976
+ *
977
+ * subscribe(
978
+ * pipe(foo, scan((acc, value) => acc + value, 2),
979
+ * console.log
980
+ * ) // 3, 5
981
+ *
982
+ * publish(foo, 1)
983
+ * publish(foo, 2)
984
+ * ```
985
+ */
986
+
987
+ function scan(scanner, initial) {
988
+ return function (done) {
989
+ return function (value) {
990
+ return done(initial = scanner(initial, value));
991
+ };
992
+ };
993
+ }
994
+ /**
995
+ * Skips the specified amount of values from the emitter.
996
+ * ```ts
997
+ * const foo = stream<number>()
998
+ *
999
+ * subscribe(
1000
+ * pipe(foo, skip(2)),
1001
+ * console.log
1002
+ * ) // 3, 4
1003
+ *
1004
+ * publish(foo, 1) // skipped
1005
+ * publish(foo, 2) // skipped
1006
+ * publish(foo, 3)
1007
+ * publish(foo, 4)
1008
+ * ```
1009
+ */
1010
+
1011
+ function skip(times) {
1012
+ return function (done) {
1013
+ return function (value) {
1014
+ times > 0 ? times-- : done(value);
1015
+ };
1016
+ };
1017
+ }
1018
+ /**
1019
+ * Throttles flowing values at the provided interval in milliseconds.
1020
+ * [Throttle VS Debounce in SO](https://stackoverflow.com/questions/25991367/difference-between-throttling-and-debouncing-a-function).
1021
+ *
1022
+ * ```ts
1023
+ * const foo = stream<number>()
1024
+ * publish(foo, 1)
1025
+ *
1026
+ * setTimeout(() => publish(foo, 2), 20)
1027
+ * setTimeout(() => publish(foo, 3), 20)
1028
+ *
1029
+ * subscribe(pipe(foo, throttleTime(50)), val => {
1030
+ * console.log(value); // 3
1031
+ * })
1032
+ * ```
1033
+ */
1034
+
1035
+ function throttleTime(interval) {
1036
+ var currentValue;
1037
+ var timeout;
1038
+ return function (done) {
1039
+ return function (value) {
1040
+ currentValue = value;
1041
+
1042
+ if (timeout) {
1043
+ return;
1044
+ }
1045
+
1046
+ timeout = setTimeout(function () {
1047
+ timeout = undefined;
1048
+ done(currentValue);
1049
+ }, interval);
1050
+ };
1051
+ };
1052
+ }
1053
+ /**
1054
+ * Debounces flowing values at the provided interval in milliseconds.
1055
+ * [Throttle VS Debounce in SO](https://stackoverflow.com/questions/25991367/difference-between-throttling-and-debouncing-a-function).
1056
+ *
1057
+ * ```ts
1058
+ * const foo = stream<number>()
1059
+ * publish(foo, 1)
1060
+ *
1061
+ * setTimeout(() => publish(foo, 2), 20)
1062
+ * setTimeout(() => publish(foo, 3), 20)
1063
+ *
1064
+ * subscribe(pipe(foo, debounceTime(50)), val => {
1065
+ * console.log(value); // 3
1066
+ * })
1067
+ * ```
1068
+ */
1069
+
1070
+ function debounceTime(interval) {
1071
+ var currentValue;
1072
+ var timeout;
1073
+ return function (done) {
1074
+ return function (value) {
1075
+ currentValue = value;
1076
+
1077
+ if (timeout) {
1078
+ clearTimeout(timeout);
1079
+ }
1080
+
1081
+ timeout = setTimeout(function () {
1082
+ done(currentValue);
1083
+ }, interval);
1084
+ };
1085
+ };
1086
+ }
1087
+ function withLatestFrom() {
1088
+ for (var _len3 = arguments.length, sources = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
1089
+ sources[_key3] = arguments[_key3];
1090
+ }
1091
+
1092
+ var values = new Array(sources.length);
1093
+ var called = 0;
1094
+ var pendingCall = null;
1095
+ var allCalled = Math.pow(2, sources.length) - 1;
1096
+ sources.forEach(function (source, index) {
1097
+ var bit = Math.pow(2, index);
1098
+ subscribe(source, function (value) {
1099
+ var prevCalled = called;
1100
+ called = called | bit;
1101
+ values[index] = value;
1102
+
1103
+ if (prevCalled !== allCalled && called === allCalled && pendingCall) {
1104
+ pendingCall();
1105
+ pendingCall = null;
1106
+ }
1107
+ });
1108
+ });
1109
+ return function (done) {
1110
+ return function (value) {
1111
+ var call = function call() {
1112
+ return done([value].concat(values));
1113
+ };
1114
+
1115
+ if (called === allCalled) {
1116
+ call();
1117
+ } else {
1118
+ pendingCall = call;
1119
+ }
1120
+ };
1121
+ };
1122
+ }
1123
+
1124
+ /**
1125
+ * Transformers change and combine streams, similar to operators.
1126
+ * urx comes with two combinators - [[combineLatest]] and [[merge]], and one convenience filter - [[duc]].
1127
+ *
1128
+ * @packageDocumentation
1129
+ */
1130
+ /**
1131
+ * Merges one or more emitters from the same type into a new Emitter which emits values from any of the source emitters.
1132
+ * ```ts
1133
+ * const foo = stream<number>()
1134
+ * const bar = stream<number>()
1135
+ *
1136
+ * subscribe(merge(foo, bar), (value) => console.log(value)) // 42, 43
1137
+ *
1138
+ * publish(foo, 42)
1139
+ * publish(bar, 43)
1140
+ * ```
1141
+ */
1142
+
1143
+ function merge() {
1144
+ for (var _len = arguments.length, sources = new Array(_len), _key = 0; _key < _len; _key++) {
1145
+ sources[_key] = arguments[_key];
1146
+ }
1147
+
1148
+ return function (action, subscription) {
1149
+ switch (action) {
1150
+ case SUBSCRIBE:
1151
+ return joinProc.apply(void 0, sources.map(function (source) {
1152
+ return subscribe(source, subscription);
1153
+ }));
1154
+
1155
+ case RESET:
1156
+ // do nothing, we are stateless
1157
+ return;
1158
+
1159
+ default:
1160
+ throw new Error("unrecognized action " + action);
1161
+ }
1162
+ };
1163
+ }
1164
+ /**
1165
+ * A convenience wrapper that emits only the distinct values from the passed Emitter. Wraps [[pipe]] and [[distinctUntilChanged]].
1166
+ *
1167
+ * ```ts
1168
+ * const foo = stream<number>()
1169
+ *
1170
+ * // this line...
1171
+ * const a = duc(foo)
1172
+ *
1173
+ * // is equivalent to this
1174
+ * const b = pipe(distinctUntilChanged(foo))
1175
+ * ```
1176
+ *
1177
+ * @param source The source emitter.
1178
+ * @param comparator optional custom comparison function for the two values.
1179
+ *
1180
+ * @typeParam T the type of the value emitted by the source.
1181
+ *
1182
+ * @returns the resulting emitter.
1183
+ */
1184
+
1185
+ function duc(source, comparator) {
1186
+ if (comparator === void 0) {
1187
+ comparator = defaultComparator;
1188
+ }
1189
+
1190
+ return pipe(source, distinctUntilChanged(comparator));
1191
+ }
1192
+ function combineLatest() {
1193
+ var innerSubject = stream();
1194
+
1195
+ for (var _len2 = arguments.length, emitters = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1196
+ emitters[_key2] = arguments[_key2];
1197
+ }
1198
+
1199
+ var values = new Array(emitters.length);
1200
+ var called = 0;
1201
+ var allCalled = Math.pow(2, emitters.length) - 1;
1202
+ emitters.forEach(function (source, index) {
1203
+ var bit = Math.pow(2, index);
1204
+ subscribe(source, function (value) {
1205
+ values[index] = value;
1206
+ called = called | bit;
1207
+
1208
+ if (called === allCalled) {
1209
+ publish(innerSubject, values);
1210
+ }
1211
+ });
1212
+ });
1213
+ return function (action, subscription) {
1214
+ switch (action) {
1215
+ case SUBSCRIBE:
1216
+ if (called === allCalled) {
1217
+ subscription(values);
1218
+ }
1219
+
1220
+ return subscribe(innerSubject, subscription);
1221
+
1222
+ case RESET:
1223
+ return reset(innerSubject);
1224
+
1225
+ default:
1226
+ throw new Error("unrecognized action " + action);
1227
+ }
1228
+ };
1229
+ }
1230
+
1231
+ /**
1232
+ * `system` defines a specification of a system - its constructor, dependencies and if it should act as a singleton in a system dependency tree.
1233
+ * When called, system returns a [[SystemSpec]], which is then initialized along with its dependencies by passing it to [[init]].
1234
+ *
1235
+ * ```ts
1236
+ * @import { subscribe, publish, system, init, tup, connect, map, pipe } from 'urx'
1237
+ *
1238
+ * // a simple system with two streams
1239
+ * const sys1 = system(() => {
1240
+ * const a = stream<number>()
1241
+ * const b = stream<number>()
1242
+ *
1243
+ * connect(pipe(a, map(value => value * 2)), b)
1244
+ * return { a, b }
1245
+ * })
1246
+ *
1247
+ * // a second system which depends on the streams from the first one
1248
+ * const sys2 = system(([ {a, b} ]) => {
1249
+ * const c = stream<number>()
1250
+ * connect(pipe(b, map(value => value * 2)), c)
1251
+ * // re-export the `a` stream, keep `b` internal
1252
+ * return { a, c }
1253
+ * }, tup(sys1))
1254
+ *
1255
+ * // init will recursively initialize sys2 dependencies, in this case sys1
1256
+ * const { a, c } = init(sys2)
1257
+ * subscribe(c, c => console.log(`Value multiplied by 4`, c))
1258
+ * publish(a, 2)
1259
+ * ```
1260
+ *
1261
+ * #### Singletons in Dependency Tree
1262
+ *
1263
+ * By default, systems will be initialized only once if encountered multiple times in the dependency tree.
1264
+ * In the below dependency system tree, systems `b` and `c` will receive the same stream instances from system `a` when system `d` is initialized.
1265
+ * ```txt
1266
+ * a
1267
+ * / \
1268
+ * b c
1269
+ * \ /
1270
+ * d
1271
+ * ```
1272
+ * If `a` gets `{singleton: false}` as a last argument, `init` creates two separate instances - one for `b` and one for `c`.
1273
+ *
1274
+ * @param constructor the system constructor function. Initialize and connect the streams in its body.
1275
+ *
1276
+ * @param dependencies the system dependencies, which the constructor will receive as arguments.
1277
+ * Use the [[tup]] utility **For TypeScript type inference to work correctly**.
1278
+ * ```ts
1279
+ * const sys3 = system(() => { ... }, tup(sys2, sys1))
1280
+ * ```
1281
+ * @param __namedParameters Options
1282
+ * @param singleton determines if the system will act as a singleton in a system dependency tree. `true` by default.
1283
+ */
1284
+ function system(constructor, dependencies, _temp) {
1285
+ if (dependencies === void 0) {
1286
+ dependencies = [];
1287
+ }
1288
+
1289
+ var _ref = _temp === void 0 ? {
1290
+ singleton: true
1291
+ } : _temp,
1292
+ singleton = _ref.singleton;
1293
+
1294
+ return {
1295
+ id: id(),
1296
+ constructor: constructor,
1297
+ dependencies: dependencies,
1298
+ singleton: singleton
1299
+ };
1300
+ }
1301
+ /** @internal */
1302
+
1303
+ var id = function id() {
1304
+ return Symbol();
1305
+ };
1306
+ /**
1307
+ * Initializes a [[SystemSpec]] by recursively initializing its dependencies.
1308
+ *
1309
+ * ```ts
1310
+ * // a simple system with two streams
1311
+ * const sys1 = system(() => {
1312
+ * const a = stream<number>()
1313
+ * const b = stream<number>()
1314
+ *
1315
+ * connect(pipe(a, map(value => value * 2)), b)
1316
+ * return { a, b }
1317
+ * })
1318
+ *
1319
+ * const { a, b } = init(sys1)
1320
+ * subscribe(b, b => console.log(b))
1321
+ * publish(a, 2)
1322
+ * ```
1323
+ *
1324
+ * @returns the [[System]] constructed by the spec constructor.
1325
+ * @param systemSpec the system spec to initialize.
1326
+ */
1327
+
1328
+
1329
+ function init(systemSpec) {
1330
+ var singletons = new Map();
1331
+
1332
+ var _init = function _init(_ref2) {
1333
+ var id = _ref2.id,
1334
+ constructor = _ref2.constructor,
1335
+ dependencies = _ref2.dependencies,
1336
+ singleton = _ref2.singleton;
1337
+
1338
+ if (singleton && singletons.has(id)) {
1339
+ return singletons.get(id);
1340
+ }
1341
+
1342
+ var system = constructor(dependencies.map(function (e) {
1343
+ return _init(e);
1344
+ }));
1345
+
1346
+ if (singleton) {
1347
+ singletons.set(id, system);
1348
+ }
1349
+
1350
+ return system;
1351
+ };
1352
+
1353
+ return _init(systemSpec);
1354
+ }
1355
+
1356
+
1357
+ //# sourceMappingURL=urx.esm.js.map
1358
+
1359
+
79
1360
  /***/ }),
80
1361
 
81
1362
  /***/ "./src/components/Banner/Banner.styles.scss":
@@ -2424,6 +3705,34 @@ function flattenChildren(children, depth, keys) {
2424
3705
  exports["default"] = flattenChildren;
2425
3706
 
2426
3707
 
3708
+ /***/ }),
3709
+
3710
+ /***/ "../../node_modules/react-virtuoso/dist/index.m.js":
3711
+ /*!*********************************************************!*\
3712
+ !*** ../../node_modules/react-virtuoso/dist/index.m.js ***!
3713
+ \*********************************************************/
3714
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3715
+
3716
+ __webpack_require__.r(__webpack_exports__);
3717
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3718
+ /* harmony export */ "GroupedVirtuoso": function() { return /* binding */ mn; },
3719
+ /* harmony export */ "LogLevel": function() { return /* binding */ h; },
3720
+ /* harmony export */ "TableVirtuoso": function() { return /* binding */ dn; },
3721
+ /* harmony export */ "Virtuoso": function() { return /* binding */ cn; },
3722
+ /* harmony export */ "VirtuosoGrid": function() { return /* binding */ fn; },
3723
+ /* harmony export */ "VirtuosoGridMockContext": function() { return /* binding */ _e; },
3724
+ /* harmony export */ "VirtuosoMockContext": function() { return /* binding */ Ge; }
3725
+ /* harmony export */ });
3726
+ /* harmony import */ var _virtuoso_dev_react_urx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @virtuoso.dev/react-urx */ "../../node_modules/@virtuoso.dev/react-urx/dist/react-urx.esm.js");
3727
+ /* harmony import */ var _virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @virtuoso.dev/urx */ "../../node_modules/@virtuoso.dev/urx/dist/urx.esm.js");
3728
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
3729
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
3730
+ /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "react-dom");
3731
+ /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
3732
+ function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},c.apply(this,arguments)}function m(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)t.indexOf(n=i[o])>=0||(r[n]=e[n]);return r}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[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?react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_0__.useEffect;!function(e){e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR"}(h||(h={}));var v=((p={})[h.DEBUG]="debug",p[h.INFO]="log",p[h.WARN]="warn",p[h.ERROR]="error",p),S=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(){var e=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(h.ERROR);return{log:_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.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:_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.getValue(e))&&console[v[r]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",n,o)}),logLevel:e}},[],{singleton:!0});function C(e,t){void 0===t&&(t=!0);var n=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),o=function(e){};if("undefined"!=typeof ResizeObserver){var r=new ResizeObserver(function(t){var n=t[0].target;null!==n.offsetParent&&e(n)});o=function(e){e&&t?(r.observe(e),n.current=e):(n.current&&r.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:o}}function I(e,t){return void 0===t&&(t=!0),C(e,t).callbackRef}function T(e,t,n,o,r,i,a){return C(function(n){for(var l=function(e,t,n,o){var r=e.length;if(0===r)return null;for(var i=[],a=0;a<r;a++){var l=e.item(a);if(l&&void 0!==l.dataset.index){var s=parseInt(l.dataset.index),u=parseFloat(l.dataset.knownSize),c=t(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,t,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(e,t,n){return"normal"===t||null!=t&&t.endsWith("px")||n("row-gap was not resolved to pixel value correctly",t,h.WARN),"normal"===t?0:parseInt(null!=t?t:"0",10)}(0,getComputedStyle(n).rowGap,r)),null!==l&&e(l)},n)}function w(e,t){return Math.round(e.getBoundingClientRect()[t])}function x(e,t){return Math.abs(e-t)<1.01}function b(e,n,o,l,s){void 0===l&&(l=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.noop);var c=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),m=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),d=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),f=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(!1),p=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function(t){var o=t.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(){e({scrollTop:Math.max(i,0),scrollHeight:a,viewportHeight:l})};f.current?(0,react_dom__WEBPACK_IMPORTED_MODULE_1__.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))},[e,n]);return (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function(){var e=s||c.current;return l(s||c.current),p({target:e}),e.addEventListener("scroll",p,{passive:!0}),function(){l(null),e.removeEventListener("scroll",p)}},[c,p,o,l,s]),{scrollerRef:c,scrollByCallback:function(e){f.current=!0,c.current.scrollBy(e)},scrollToCallback:function(t){var o=c.current;if(o&&(!("offsetHeight"in o)||0!==o.offsetHeight)){var r,i,a,l="smooth"===t.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),t.top=Math.ceil(Math.max(Math.min(i-r,t.top),0)),x(r,i)||t.top===a)return e({scrollTop:a,scrollHeight:i,viewportHeight:r}),void(l&&n(!0));l?(m.current=t.top,d.current&&clearTimeout(d.current),d.current=setTimeout(function(){d.current=null,m.current=null,n(!0)},1e3)):m.current=null,o.scrollTo(t)}}}}var y=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(){var e=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),n=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),o=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(0),r=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),i=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(0),a=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),l=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),s=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(0),u=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(0),c=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(0),m=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(0),d=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),f=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),p=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(!1),h=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(!1);return _virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(e,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return e.scrollTop})),n),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(e,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return e.scrollHeight})),l),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(n,i),{scrollContainerState:e,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={lvl:0};function E(e,t,n,o,r){return void 0===o&&(o=H),void 0===r&&(r=H),{k:e,v:t,lvl:n,l:o,r:r}}function R(e){return e===H}function L(){return H}function F(e,t){if(R(e))return H;var n=e.k,o=e.l,r=e.r;if(t===n){if(R(o))return r;if(R(r))return o;var i=O(o);return U(W(e,{k:i[0],v:i[1],l:M(o)}))}return U(W(e,t<n?{l:F(o,t)}:{r:F(r,t)}))}function k(e,t,n){if(void 0===n&&(n="k"),R(e))return[-Infinity,void 0];if(e[n]===t)return[e.k,e.v];if(e[n]<t){var o=k(e.r,t,n);return-Infinity===o[0]?[e.k,e.v]:o}return k(e.l,t,n)}function z(e,t,n){return R(e)?E(t,n,1):t===e.k?W(e,{k:t,v:n}):function(e){return D(G(e))}(W(e,t<e.k?{l:z(e.l,t,n)}:{r:z(e.r,t,n)}))}function B(e,t,n){if(R(e))return[];var o=e.k,r=e.v,i=e.r,a=[];return o>t&&(a=a.concat(B(e.l,t,n))),o>=t&&o<=n&&a.push({k:o,v:r}),o<=n&&(a=a.concat(B(i,t,n))),a}function P(e){return R(e)?[]:[].concat(P(e.l),[{k:e.k,v:e.v}],P(e.r))}function O(e){return R(e.r)?[e.k,e.v]:O(e.r)}function M(e){return R(e.r)?e.l:U(W(e,{r:M(e.r)}))}function W(e,t){return E(void 0!==t.k?t.k:e.k,void 0!==t.v?t.v:e.v,void 0!==t.lvl?t.lvl:e.lvl,void 0!==t.l?t.l:e.l,void 0!==t.r?t.r:e.r)}function V(e){return R(e)||e.lvl>e.r.lvl}function U(e){var t=e.l,n=e.r,o=e.lvl;if(n.lvl>=o-1&&t.lvl>=o-1)return e;if(o>n.lvl+1){if(V(t))return G(W(e,{lvl:o-1}));if(R(t)||R(t.r))throw new Error("Unexpected empty nodes");return W(t.r,{l:W(t,{r:t.r.l}),r:W(e,{l:t.r.r,lvl:o-1}),lvl:o})}if(V(e))return D(W(e,{lvl:o-1}));if(R(n)||R(n.l))throw new Error("Unexpected empty nodes");var r=n.l,i=V(r)?n.lvl-1:n.lvl;return W(r,{l:W(e,{r:r.l,lvl:o-1}),r:D(W(n,{l:r.r,lvl:i})),lvl:r.lvl+1})}function A(e,t,n){return R(e)?[]:N(B(e,k(e,t)[0],n),function(e){return{index:e.k,value:e.v}})}function N(e,t){var n=e.length;if(0===n)return[];for(var o=t(e[0]),r=o.index,i=o.value,a=[],l=1;l<n;l++){var s=t(e[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(e){var t=e.r,n=e.lvl;return R(t)||R(t.r)||t.lvl!==n||t.r.lvl!==n?e:W(t,{l:W(e,{r:t.l}),lvl:n+1})}function G(e){var t=e.l;return R(t)||t.lvl!==e.lvl?e:W(t,{r:W(e,{l:t.r})})}function _(e,t,n,o){void 0===o&&(o=0);for(var r=e.length-1;o<=r;){var i=Math.floor((o+r)/2),a=n(e[i],t);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 - "+e.join(",")+", searched for "+t)}function j(e,t,n){return e[_(e,t,n)]}var K=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(){return{recalcInProgress:_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(!1)}},[],{singleton:!0});function Y(e){var t=e.size,n=e.startIndex,o=e.endIndex;return function(e){return e.start===n&&(e.end===o||Infinity===e.end)&&e.value===t}}function q(e,t){var n=e.index;return t===n?0:t<n?-1:1}function Z(e,t){var n=e.offset;return t===n?0:t<n?-1:1}function J(e){return{index:e.index,value:e}}function $(e,t,n,o){var r=e,i=0,a=0,l=0,s=0;if(0!==t){l=r[s=_(r,t-1,q)].offset;var u=k(n,t-1);i=u[0],a=u[1],r.length&&r[s].size===k(n,t)[1]&&(s-=1),r=r.slice(0,s+1)}else r=[];for(var c,m=f(A(n,t,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(e,t){var n=t[0],o=t[1],r=t[3];n.length>0&&(0,t[2])("received item sizes",n,h.DEBUG);var i=e.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(e,t){return z(z(e,t,s),t+1,u)},a)}else{var c=function(e,t){for(var n,o=R(e)?0:Infinity,r=f(t);!(n=r()).done;){var i=n.value,a=i.size,l=i.startIndex,s=i.endIndex;if(o=Math.min(o,l),R(e))e=z(e,0,a);else{var u=A(e,l-1,s+1);if(!u.some(Y(i))){for(var c,m=!1,d=!1,p=f(u);!(c=p()).done;){var h=c.value,g=h.start,v=h.end,S=h.value;m?(s>=g||a===S)&&(e=F(e,g)):(d=S!==a,m=!0),v>s&&s>=g&&S!==a&&(e=z(e,s+1,S))}d&&(e=z(e,l,a))}}}return[e,o]}(a,n);a=c[0],l=c[1]}if(a===i)return e;var m=$(e.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(e,t){return z(e,t,X(t,d,r))},L()),groupIndices:o}}function X(e,t,n){if(0===t.length)return 0;var o=j(t,e,q),r=e-o.index,i=o.size*r+(r-1)*n+o.offset;return i>0?i+n:i}function ee(e,t,n){if(function(e){return void 0!==e.groupIndex}(e))return t.groupIndices[e.groupIndex]+1;var o=te("LAST"===e.index?n:e.index,t);return Math.max(0,o,Math.min(n,o))}function te(e,t){if(!ne(t))return e;for(var n=0;t.groupIndices[n]<=e+n;)n++;return e+n}function ne(e){return!R(e.groupOffsetTree)}var oe={offsetHeight:"height",offsetWidth:"width"},re=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(e){var n=e[0].log,o=e[1].recalcInProgress,r=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),i=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),a=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStreamFromEmitter(i,0),l=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),s=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),u=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(0),m=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream([]),d=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(void 0),f=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(void 0),p=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(function(e,t){return w(e,oe[t])}),g=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(void 0),v=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(0),S={offsetTree:[],sizeTree:L(),groupOffsetTree:L(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]},C=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStreamFromEmitter(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(r,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(m,n,v),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.scan(Q,S),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.distinctUntilChanged()),S);_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(m,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return e.length>0}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(C,v),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){var t=e[0],n=e[1],o=e[2],r=t.reduce(function(e,t,r){return z(e,t,X(t,n.offsetTree,o)||r)},L());return c({},n,{groupIndices:t,groupOffsetTree:r})})),C),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(i,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(C),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return e[0]<e[1].lastIndex}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){var t=e[1];return[{startIndex:e[0],endIndex:t.lastIndex,size:t.lastSize}]})),r),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(d,f);var I=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStreamFromEmitter(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(d,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return void 0===e})),!0);_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(f,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return void 0!==e&&R(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.getValue(C).sizeTree)}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return[{startIndex:0,endIndex:0,size:e}]})),r);var T=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.streamFromEmitter(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(r,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(C),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.scan(function(e,t){var n=t[1];return{changed:n!==e.sizes,sizes:n}},{changed:!1,sizes:S}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return e.changed})));_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.subscribe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(u,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.scan(function(e,t){return{diff:e.prev-t,prev:t}},{diff:0,prev:0}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return e.diff})),function(e){e>0?(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.publish(o,!0),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.publish(l,e)):e<0&&_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.publish(s,e)}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.subscribe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(u,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(n)),function(e){e[0]<0&&(0,e[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=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.streamFromEmitter(l);_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(l,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(C),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){var t=e[0],n=e[1];if(n.groupIndices.length>0)throw new Error("Virtuoso: prepending items does not work with groups");return P(n.sizeTree).reduce(function(e,n){var o=n.k,r=n.v;return{ranges:[].concat(e.ranges,[{startIndex:e.prevIndex,endIndex:o+t-1,size:e.prevSize}]),prevIndex:o+t,prevSize:r}},{ranges:[],prevIndex:0,prevSize:n.lastSize}).ranges})),r);var b=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.streamFromEmitter(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(s,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(C,v),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return X(-e[0],e[1].offsetTree,e[2])})));return _virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(s,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(C,v),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){var t=e[0],n=e[1],o=e[2];if(n.groupIndices.length>0)throw new Error("Virtuoso: shifting items does not work with groups");var r=P(n.sizeTree).reduce(function(e,n){var o=n.v;return z(e,Math.max(0,n.k+t),o)},L());return c({},n,{sizeTree:r},$(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}},_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.tup(S,K),{singleton:!0}),ie="undefined"!=typeof document&&"scrollBehavior"in document.documentElement.style;function ae(e){var t="number"==typeof e?{index:e}:e;return t.align||(t.align="start"),t.behavior&&ie||(t.behavior="auto"),t.offset||(t.offset=0),t}var le=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(e){var n=e[0],o=n.sizes,r=n.totalCount,i=n.listRefresh,a=n.gap,l=e[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=e[2].log,S=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),C=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(0),I=null,T=null,w=null;function x(){I&&(I(),I=null),w&&(w(),w=null),T&&(clearTimeout(T),T=null),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.publish(s,!1)}return _virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(S,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(o,u,r,C,d,f,v),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(a,p,g),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){var n=e[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=e[1],g=e[2],v=e[3],C=ae(o),b=C.align,y=C.behavior,H=C.offset,E=l-1,R=ee(C,r,E),L=X(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(e){x(),e?(f("retrying to scroll to",{location:o},h.DEBUG),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.publish(S,o)):f("list did not change, scroll successful",{},h.DEBUG)};if(x(),"smooth"===y){var z=!1;w=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.subscribe(i,function(e){z=z||e}),I=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.handleNext(m,function(){F(z)})}else I=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.handleNext(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(i,function(e){var t=setTimeout(function(){e(!1)},150);return function(n){n&&(e(!0),clearTimeout(t))}}),F);return T=setTimeout(function(){x()},1200),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.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}},_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.tup(re,y,S),{singleton:!0}),se="up",ue={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},ce=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(e){var n=e[0],o=n.scrollContainerState,r=n.scrollTop,i=n.viewportHeight,a=n.headerHeight,l=n.footerHeight,s=n.scrollBy,u=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(!1),c=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(!0),m=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),d=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),f=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(4),p=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(0),h=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStreamFromEmitter(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.merge(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(r),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.skip(1),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.mapTo(!0)),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(r),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.skip(1),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.mapTo(!1),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.debounceTime(100))),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.distinctUntilChanged()),!1),g=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStreamFromEmitter(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.merge(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(s,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.mapTo(!0)),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(s,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.mapTo(!1),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.debounceTime(200))),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.distinctUntilChanged()),!1);_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.combineLatest(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(r),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(p)),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return e[0]<=e[1]}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.distinctUntilChanged()),c),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(c,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.throttleTime(50)),d);var v=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.streamFromEmitter(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.combineLatest(o,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(i),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(a),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(l),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(f)),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.scan(function(e,t){var n,o,r=t[0],i=r.scrollTop,a=r.scrollHeight,l=t[1],s={viewportHeight:l,scrollTop:i,scrollHeight:a};return i+l-a>-t[4]?(i>e.state.scrollTop?(n="SCROLLED_DOWN",o=e.state.scrollTop-i):(n="SIZE_DECREASED",o=e.state.scrollTop-i||e.scrollTopDelta),{atBottom:!0,state:s,atBottomBecause:n,scrollTopDelta:o}):{atBottom:!1,notAtBottomBecause:s.scrollHeight>e.state.scrollHeight?"SIZE_INCREASED":l<e.state.viewportHeight?"VIEWPORT_HEIGHT_DECREASING":i<e.state.scrollTop?"SCROLLING_UPWARDS":"NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",state:s}},ue),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.distinctUntilChanged(function(e,t){return e&&e.atBottom===t.atBottom}))),S=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStreamFromEmitter(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(o,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.scan(function(e,t){var n=t.scrollTop,o=t.scrollHeight,r=t.viewportHeight;return x(e.scrollHeight,o)?{scrollTop:n,scrollHeight:o,jump:0,changed:!1}:e.scrollTop!==n&&o-(n+r)<1?{scrollHeight:o,scrollTop:n,jump:e.scrollTop-n,changed:!0}:{scrollHeight:o,scrollTop:n,jump:0,changed:!0}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return e.changed}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return e.jump})),0);_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(v,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return e.atBottom})),u),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(u,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.throttleTime(50)),m);var C=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream("down");_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(o,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return e.scrollTop}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.distinctUntilChanged(),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.scan(function(e,n){return _virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.getValue(g)?{direction:e.direction,prevScrollTop:n}:{direction:n<e.prevScrollTop?se:"down",prevScrollTop:n}},{direction:"down",prevScrollTop:0}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return e.direction})),C),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(o,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.throttleTime(50),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.mapTo("none")),C);var I=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(0);return _virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(h,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return!e}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.mapTo(0)),I),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(r,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.throttleTime(100),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(h),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return!!e[1]}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.scan(function(e,t){return[e[1],t[0]]},[0,0]),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return e[1]-e[0]})),I),{isScrolling:h,isAtTop:c,isAtBottom:u,atBottomState:v,atTopStateChange:d,atBottomStateChange:m,scrollDirection:C,atBottomThreshold:f,atTopThreshold:p,scrollVelocity:I,lastJumpDueToItemResize:S}},_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.tup(y)),me=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(e){var n=e[0].log,o=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(!1),r=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.streamFromEmitter(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(o,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return e}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.distinctUntilChanged()));return _virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.subscribe(o,function(e){e&&_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.getValue(n)("props updated",{},h.DEBUG)}),{propsReady:o,didMount:r}},_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.tup(S),{singleton:!0}),de=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(e){var n=e[0],o=n.sizes,r=n.listRefresh,i=n.defaultItemSize,a=e[1].scrollTop,l=e[2].scrollToIndex,s=e[3].didMount,u=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(!0),c=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(0);return _virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(s,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(c),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return!!e[1]}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.mapTo(!1)),u),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.subscribe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.combineLatest(r,s),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(u,o,i),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){var t=e[1],n=e[3];return e[0][1]&&(!R(e[2].sizeTree)||void 0!==n)&&!t}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(c)),function(e){var n=e[1];setTimeout(function(){_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.handleNext(a,function(){_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.publish(u,!0)}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.publish(l,n)})}),{scrolledToInitialItem:u,initialTopMostItemIndex:c}},_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.tup(re,y,le,me),{singleton:!0});function fe(e){return!!e&&("smooth"===e?"smooth":"auto")}var pe=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(e){var n=e[0],o=n.totalCount,r=n.listRefresh,i=e[1],a=i.isAtBottom,l=i.atBottomState,s=e[2].scrollToIndex,u=e[3].scrolledToInitialItem,c=e[4],m=c.propsReady,d=c.didMount,f=e[5].log,p=e[6].scrollingInProgress,g=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(!1),v=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),S=null;function C(e){_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.publish(s,{index:"LAST",align:"end",behavior:e})}function I(e){var n=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.handleNext(l,function(n){!e||n.atBottom||"SIZE_INCREASED"!==n.notAtBottomBecause||S||(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.getValue(f)("scrolling to bottom due to increased size",{},h.DEBUG),C("auto"))});setTimeout(n,100)}return _virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.subscribe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.combineLatest(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(o),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.skip(1)),d),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(g),a,u,p),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){var t=e[0],n=t[0],o=t[1]&&e[3],r="auto";return o&&(r=function(e,t){return"function"==typeof e?fe(e(t)):t&&fe(e)}(e[1],e[2]||e[4]),o=o&&!!r),{totalCount:n,shouldFollow:o,followOutputBehavior:r}}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return e.shouldFollow})),function(e){var n=e.totalCount,o=e.followOutputBehavior;S&&(S(),S=null),S=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.handleNext(r,function(){_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.getValue(f)("following output to ",{totalCount:n},h.DEBUG),C(o),S=null})}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.subscribe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.combineLatest(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(g),o,m),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return e[0]&&e[2]}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.scan(function(e,t){var n=t[1];return{refreshed:e.value===n,value:n}},{refreshed:!1,value:0}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return e.refreshed}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(g,o)),function(e){I(!1!==e[1])}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.subscribe(v,function(){I(!1!==_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.getValue(g))}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.subscribe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.combineLatest(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(g),l),function(e){var t=e[1];e[0]&&!t.atBottom&&"VIEWPORT_HEIGHT_DECREASING"===t.notAtBottomBecause&&C("auto")}),{followOutput:g,autoscrollToBottom:v}},_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.tup(re,ce,le,de,me,S,y));function he(e){return e.reduce(function(e,t){return e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e},{totalCount:0,groupIndices:[]})}var ge=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(e){var n=e[0],o=n.totalCount,r=n.groupIndices,i=n.sizes,a=e[1],l=a.scrollTop,s=a.headerHeight,u=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),c=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),m=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.streamFromEmitter(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(u,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(he)));return _virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(m,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return e.totalCount})),o),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(m,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return e.groupIndices})),r),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.combineLatest(l,i,s),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return ne(e[1])}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return k(e[1].groupOffsetTree,Math.max(e[0]-e[2],0),"v")[0]}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.distinctUntilChanged(),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return[e]})),c),{groupCounts:u,topItemsIndexes:c}},_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.tup(re,y));function ve(e,t){return!(!e||e[0]!==t[0]||e[1]!==t[1])}function Se(e,t){return!(!e||e.startIndex!==t.startIndex||e.endIndex!==t.endIndex)}function Ce(e,t,n){return"number"==typeof e?n===se&&"top"===t||"down"===n&&"bottom"===t?e:0:n===se?"top"===t?e.main:e.reverse:"bottom"===t?e.main:e.reverse}function Ie(e,t){return"number"==typeof e?e:e[t]||0}var Te=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(e){var n=e[0],o=n.scrollTop,r=n.viewportHeight,i=n.deviation,a=n.headerHeight,l=n.fixedHeaderHeight,s=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),u=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(0),c=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(0),m=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(0),d=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStreamFromEmitter(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.combineLatest(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(o),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(r),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(a),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(s,ve),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(m),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(u),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(l),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(i),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(c)),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){var t=e[0],n=e[1],o=e[2],r=e[3],i=r[0],a=r[1],l=e[4],s=e[6],u=e[7],c=e[8],m=t-u,d=e[5]+s,f=Math.max(o-m,0),p="none",h=Ie(c,"top"),g=Ie(c,"bottom");return i-=u,a+=o+s,(i+=o+s)>t+d-h&&(p=se),(a-=u)<t-f+n+g&&(p="down"),"none"!==p?[Math.max(m-o-Ce(l,"top",p)-h,0),m-f-s+n+Ce(l,"bottom",p)+g]:null}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return null!=e}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.distinctUntilChanged(ve)),[0,0]);return{listBoundary:s,overscan:m,topListHeight:u,increaseViewportBy:c,visibleRange:d}},_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.tup(y),{singleton:!0}),we={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function xe(e,t,n){if(0===e.length)return[];if(!ne(t))return e.map(function(e){return c({},e,{index:e.index+n,originalIndex:e.index})});for(var o,r=[],i=A(t.groupOffsetTree,e[0].index,e[e.length-1].index),a=void 0,l=0,s=f(e);!(o=s()).done;){var u=o.value;(!a||a.end<u.index)&&(a=i.shift(),l=t.groupIndices.indexOf(a.start)),r.push(c({},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 be(e,t,n,o,r,i){var a=0,l=0;if(e.length>0){a=e[0].offset;var s=e[e.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:xe(e,r,i),topItems:xe(t,r,i),topListHeight:t.reduce(function(e,t){return t.size+e},0),offsetTop:a,offsetBottom:m,top:c,bottom:l,totalCount:n,firstItemIndex:i}}var ye=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(e){var n=e[0],o=n.sizes,r=n.totalCount,i=n.data,a=n.firstItemIndex,l=n.gap,s=e[1],u=e[2],m=u.visibleRange,d=u.listBoundary,p=u.topListHeight,h=e[3],g=h.scrolledToInitialItem,v=h.initialTopMostItemIndex,S=e[4].topListHeight,C=e[5],I=e[6].didMount,T=e[7].recalcInProgress,w=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream([]),x=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream();_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(s.topItemsIndexes,w);var b=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStreamFromEmitter(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.combineLatest(I,T,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(m,ve),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(r),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(o),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(v),g,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(w),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(a),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(l),i),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return e[0]&&!e[1]}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){var n=e[2],o=n[0],r=n[1],i=e[3],a=e[5],l=e[6],s=e[7],u=e[8],m=e[9],d=e[10],p=e[4],h=p.sizeTree,g=p.offsetTree;if(0===i||0===o&&0===r)return c({},we,{totalCount:i});if(R(h))return be(function(e,t,n){if(ne(t)){var o=te(e,t);return[{index:k(t.groupOffsetTree,o)[0],size:0,offset:0},{index:o,size:0,offset:0,data:n&&n[0]}]}return[{index:e,size:0,offset:0,data:n&&n[0]}]}(function(e,t){return"number"==typeof e?e:"LAST"===e.index?t-1:e.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(A(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 be([],v,i,m,p,u);var L=s.length>0?s[s.length-1]+1:0,F=function(e,t,n,o){return void 0===o&&(o=0),o>0&&(t=Math.max(t,j(e,o,q).offset)),N((i=n,l=_(r=e,t,a=Z),s=_(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 be(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.tap([],function(e){for(var t,n=f(F);!(t=n()).done;){var i=t.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++)e.push({index:h,size:u,offset:l,data:d&&d[h]}),l+=u+m}}),v,i,m,p,u)}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return null!==e}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.distinctUntilChanged()),we);return _virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(i,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return void 0!==e}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return e.length})),r),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(b,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return e.topListHeight})),S),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(S,p),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(b,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return[e.top,e.bottom]})),d),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(b,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return e.items})),x),c({listState:b,topItemsIndexes:w,endReached:_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.streamFromEmitter(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(b,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return e.items.length>0}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(r,i),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){var t=e[0].items;return t[t.length-1].originalIndex===e[1]-1}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return[e[1]-1,e[2]]}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.distinctUntilChanged(ve),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return e[0]}))),startReached:_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.streamFromEmitter(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(b,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.throttleTime(200),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){var t=e.items;return t.length>0&&t[0].originalIndex===e.topItems.length}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return e.items[0].index}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.distinctUntilChanged())),rangeChanged:_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.streamFromEmitter(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(b,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return e.items.length>0}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){for(var t=e.items,n=0,o=t.length-1;"group"===t[n].type&&n<o;)n++;for(;"group"===t[o].type&&o>n;)o--;return{startIndex:t[n].index,endIndex:t[o].index}}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.distinctUntilChanged(Se))),itemsRendered:x},C)},_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.tup(re,ge,Te,de,le,ce,me,K),{singleton:!0}),He=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(e){var n=e[0],o=n.sizes,r=n.firstItemIndex,i=n.data,a=n.gap,l=e[1].listState,s=e[2].didMount,u=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(0);return _virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(s,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(u),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return 0!==e[1]}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(o,r,a,i),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){var t=e[0][1],n=e[1],o=e[2],r=e[3],i=e[4],a=void 0===i?[]:i,l=0;if(n.groupIndices.length>0)for(var s,u=f(n.groupIndices);!((s=u()).done||s.value-l>=t);)l++;var c=t+l;return be(Array.from({length:c}).map(function(e,t){return{index:t,size:0,offset:0,data:a[t]}}),[],c,r,n,o)})),l),{initialItemCount:u}},_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.tup(re,ye,me),{singleton:!0}),Ee=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(e){var n=e[0].scrollVelocity,o=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(!1),r=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),i=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(!1);return _virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(n,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(i,o,r),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return!!e[1]}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){var t=e[0],n=e[1],o=e[2],r=e[3],i=n.enter;if(o){if((0,n.exit)(t,r))return!1}else if(i(t,r))return!0;return o}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.distinctUntilChanged()),o),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.subscribe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.combineLatest(o,n,r),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(i)),function(e){var t=e[0],n=e[1];return t[0]&&n&&n.change&&n.change(t[1],t[2])}),{isSeeking:o,scrollSeekConfiguration:i,scrollVelocity:n,scrollSeekRangeChanged:r}},_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.tup(ce),{singleton:!0}),Re=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(e){var n=e[0].topItemsIndexes,o=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(0);return _virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(o,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return e>0}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return Array.from({length:e}).map(function(e,t){return t})})),n),{topItemCount:o}},_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.tup(ye)),Le=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(e){var n=e[0],o=n.footerHeight,r=n.headerHeight,i=n.fixedHeaderHeight,a=n.fixedFooterHeight,l=e[1].listState,s=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),u=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStreamFromEmitter(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.combineLatest(o,a,r,i,l),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){var t=e[4];return e[0]+e[1]+e[2]+e[3]+t.offsetBottom+t.bottom})),0);return _virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(u),s),{totalListHeight:u,totalListHeightChanged:s}},_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.tup(y,ye),{singleton:!0});function Fe(e){var t,n=!1;return function(){return n||(n=!0,t=e()),t}}var ke=Fe(function(){return/iP(ad|hone|od).+Version\/[\d.]+.*Safari/i.test(navigator.userAgent)}),ze=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(e){var n=e[0],o=n.scrollBy,r=n.scrollTop,i=n.deviation,a=n.scrollingInProgress,l=e[1],s=l.isScrolling,u=l.isAtBottom,c=l.scrollDirection,m=e[3],d=m.beforeUnshiftWith,f=m.shiftWithOffset,p=m.sizes,g=m.gap,v=e[4].log,S=e[5].recalcInProgress,C=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.streamFromEmitter(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(e[2].listState,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(l.lastJumpDueToItemResize),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.scan(function(e,t){var n=e[1],o=t[0],r=o.items,i=o.totalCount,a=o.bottom+o.offsetBottom,l=0;return e[2]===i&&n.length>0&&r.length>0&&(0===r[0].originalIndex&&0===n[0].originalIndex||0!=(l=a-e[3])&&(l+=t[1])),[l,r,i,a]},[0,[],0,0]),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return 0!==e[0]}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(r,c,a,u,v),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return!e[3]&&0!==e[1]&&e[2]===se}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){var t=e[0][0];return(0,e[5])("Upward scrolling compensation",{amount:t},h.DEBUG),t})));function I(e){e>0?(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.publish(o,{top:-e,behavior:"auto"}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.publish(i,0)):(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.publish(i,0),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.publish(o,{top:-e,behavior:"auto"}))}return _virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.subscribe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(C,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(i,s)),function(e){var n=e[0],o=e[1];e[2]&&ke()?_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.publish(i,o-n):I(-n)}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.subscribe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.combineLatest(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStreamFromEmitter(s,!1),i,S),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return!e[0]&&!e[2]&&0!==e[1]}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return e[1]}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.throttleTime(1)),I),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(f,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return{top:-e}})),o),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.subscribe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(d,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(p,g),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){var t=e[0];return t*e[1].lastSize+t*e[2]})),function(e){_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.publish(i,e),requestAnimationFrame(function(){_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.publish(o,{top:e}),requestAnimationFrame(function(){_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.publish(i,0),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.publish(S,!1)})})}),{deviation:i}},_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.tup(y,ce,ye,re,S,K)),Be=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(e){var n=e[0].totalListHeight,o=e[1].didMount,r=e[2].scrollTo,i=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(0);return _virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.subscribe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(o,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(i),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return 0!==e[1]}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return{top:e[1]}})),function(e){_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.handleNext(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(n,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return 0!==e})),function(){setTimeout(function(){_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.publish(r,e)})})}),{initialScrollTop:i}},_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.tup(Le,me,y),{singleton:!0}),Pe=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(e){var n=e[0].viewportHeight,o=e[1].totalListHeight,r=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(!1);return{alignToBottom:r,paddingTopAddition:_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStreamFromEmitter(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.combineLatest(r,n,o),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return e[0]}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return Math.max(0,e[1]-e[2])}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.distinctUntilChanged()),0)}},_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.tup(y,Le),{singleton:!0}),Oe=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(e){var n=e[0],o=n.scrollTo,r=n.scrollContainerState,i=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),a=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),l=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),s=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(!1),u=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(void 0);return _virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.combineLatest(i,a),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){var t=e[0],n=t.viewportHeight,o=t.scrollHeight;return{scrollTop:Math.max(0,t.scrollTop-e[1].offsetTop),scrollHeight:o,viewportHeight:n}})),r),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(o,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(a),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){var t=e[0];return c({},t,{top:t.top+e[1].offsetTop})})),l),{useWindowScroll:s,customScrollParent:u,windowScrollContainerState:i,windowViewportRect:a,windowScrollTo:l}},_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.tup(y)),Me=["done","behavior","align"],We=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(e){var n=e[0],o=n.sizes,r=n.totalCount,i=n.gap,a=e[1],l=a.scrollTop,s=a.viewportHeight,u=a.headerHeight,d=a.fixedHeaderHeight,f=a.fixedFooterHeight,p=a.scrollingInProgress,h=e[2].scrollToIndex,g=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream();return _virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(g,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(o,s,r,u,d,f,l),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(i),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){var n=e[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=e[1],h=o.done,g=o.behavior,v=o.align,S=m(o,Me),C=null,I=ee(o,r,a-1),T=X(I,r.offsetTree,f)+l+s;return T<d+s?C=c({},S,{behavior:g,align:null!=v?v:"start"}):T+k(r.sizeTree,I)[1]>d+i-u&&(C=c({},S,{behavior:g,align:null!=v?v:"end"})),C?h&&_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.handleNext(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(p,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.skip(1),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return!1===e})),h):h&&h(),C}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return null!==e})),h),{scrollIntoView:g}},_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.tup(re,y,le,ye,S),{singleton:!0}),Ve=["listState","topItemsIndexes"],Ue=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(e){return c({},e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.tup(Te,He,me,Ee,Le,Be,Pe,Oe,We)),Ae=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(e){var n=e[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=e[1],v=g.initialTopMostItemIndex,S=g.scrolledToInitialItem,C=e[2],I=e[3],T=e[4],w=T.listState,x=T.topItemsIndexes,b=m(T,Ve),y=e[5].scrollToIndex,H=e[7].topItemCount,E=e[8].groupCounts,R=e[9],L=e[10];return _virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(b.rangeChanged,R.scrollSeekRangeChanged),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(R.windowViewportRect,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return e.visibleHeight})),C.viewportHeight),c({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)},_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.tup(re,de,y,pe,ye,le,ze,Re,ge,Ue,S)),Ne=Fe(function(){if("undefined"==typeof document)return"sticky";var e=document.createElement("div");return e.style.position="-webkit-sticky","-webkit-sticky"===e.style.position?"-webkit-sticky":"sticky"});function De(e,t){var n=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),o=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function(o){if(null!==o&&o.offsetParent){var r,i,a=o.getBoundingClientRect(),l=a.width;if(t){var s=t.getBoundingClientRect(),u=a.top-s.top;r=s.height-Math.max(0,u),i=u+t.scrollTop}else r=window.innerHeight-Math.max(0,a.top),i=a.top+window.pageYOffset;n.current={offsetTop:i,visibleHeight:r,visibleWidth:l},e(n.current)}},[e,t]),l=C(o),s=l.callbackRef,u=l.ref,c=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function(){o(u.current)},[o,u]);return (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function(){if(t){t.addEventListener("scroll",c);var e=new ResizeObserver(c);return e.observe(t),function(){t.removeEventListener("scroll",c),e.unobserve(t)}}return window.addEventListener("scroll",c),window.addEventListener("resize",c),function(){window.removeEventListener("scroll",c),window.removeEventListener("resize",c)}},[c,t]),s}var Ge=react__WEBPACK_IMPORTED_MODULE_0__.createContext(void 0),_e=react__WEBPACK_IMPORTED_MODULE_0__.createContext(void 0),je=["placeholder"],Ke=["style","children"],Ye=["style","children"];function qe(e){return e}var Ze=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(){var e=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(function(e){return"Item "+e}),n=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(null),o=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(function(e){return"Group "+e}),r=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream({}),i=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(qe),a=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream("div"),l=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.noop),s=function(e,n){return void 0===n&&(n=null),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStreamFromEmitter(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(r,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(t){return t[e]}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.distinctUntilChanged()),n)};return{context:n,itemContent:e,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 Je(e,n){var o=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream();return _virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.subscribe(o,function(){return console.warn("react-virtuoso: You are using a deprecated property. "+n,"color: red;","color: inherit;","color: blue;")}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(o,e),o}var $e=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(e){var n=e[0],o=e[1],r={item:Je(o.itemContent,"Rename the %citem%c prop to %citemContent."),group:Je(o.groupContent,"Rename the %cgroup%c prop to %cgroupContent."),topItems:Je(n.topItemCount,"Rename the %ctopItems%c prop to %ctopItemCount."),itemHeight:Je(n.fixedItemHeight,"Rename the %citemHeight%c prop to %cfixedItemHeight."),scrollingStateChange:Je(n.isScrolling,"Rename the %cscrollingStateChange%c prop to %cisScrolling."),adjustForPrependedItems:_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),maxHeightCacheSize:_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),footer:_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),header:_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),HeaderContainer:_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),FooterContainer:_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),ItemContainer:_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),ScrollContainer:_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),GroupContainer:_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),ListContainer:_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),emptyComponent:_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),scrollSeek:_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream()};function i(e,n,r){_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(e,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(o.components),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){var t,o=e[0],i=e[1];return console.warn("react-virtuoso: "+r+" property is deprecated. Pass components."+n+" instead."),c({},i,((t={})[n]=o,t))})),o.components)}return _virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.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;")}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.subscribe(r.maxHeightCacheSize,function(){console.warn("react-virtuoso: maxHeightCacheSize is no longer necessary. Setting it has no effect - remove it from your code.")}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.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.")}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.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.")}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.subscribe(r.scrollSeek,function(e){var r=e.placeholder,i=m(e,je);console.warn("react-virtuoso: scrollSeek property is deprecated. Pass scrollSeekConfiguration and specify the placeholder in components.ScrollSeekPlaceholder instead."),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.publish(o.components,c({},_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.getValue(o.components),{ScrollSeekPlaceholder:r})),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.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({},n,o,r)},_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.tup(Ae,Ze)),Qe=function(e){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:{height:e.height}})},Xe={position:Ne(),zIndex:1,overflowAnchor:"none"},et={overflowAnchor:"none"},tt=react__WEBPACK_IMPORTED_MODULE_0__.memo(function(e){var o=e.showTopList,r=void 0!==o&&o,i=gt("listState"),a=ht("sizeRanges"),s=gt("useWindowScroll"),u=gt("customScrollParent"),m=ht("windowScrollContainerState"),d=ht("scrollContainerState"),f=u||s?m:d,p=gt("itemContent"),h=gt("context"),g=gt("groupContent"),v=gt("trackItemSizes"),S=gt("itemSize"),C=gt("log"),I=ht("gap"),w=T(a,S,v,r?_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.noop:f,C,I,u).callbackRef,x=react__WEBPACK_IMPORTED_MODULE_0__.useState(0),b=x[0],y=x[1];vt("deviation",function(e){b!==e&&y(e)});var H=gt("EmptyPlaceholder"),E=gt("ScrollSeekPlaceholder")||Qe,R=gt("ListComponent"),L=gt("ItemComponent"),F=gt("GroupComponent"),k=gt("computeItemKey"),z=gt("isSeeking"),B=gt("groupIndices").length>0,P=gt("paddingTopAddition"),O=r?{}:{boxSizing:"border-box",paddingTop:i.offsetTop+P,paddingBottom:i.offsetBottom,marginTop:b};return!r&&0===i.totalCount&&H?(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(H,it(H,h)):(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(R,c({},it(R,h),{ref:w,style:O,"data-test-id":r?"virtuoso-top-item-list":"virtuoso-item-list"}),(r?i.topItems:i.items).map(function(e){var t=e.originalIndex,n=k(t+i.firstItemIndex,e.data,h);return z?(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(E,c({},it(E,h),{key:n,index:e.index,height:e.size,type:e.type||"item"},"group"===e.type?{}:{groupIndex:e.groupIndex})):"group"===e.type?(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(F,c({},it(F,h),{key:n,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,style:Xe}),g(e.index)):(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(L,c({},it(L,h),{key:n,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,"data-item-group-index":e.groupIndex,style:et}),B?p(e.index,e.groupIndex,e.data,h):p(e.index,e.data,h))}))}),nt={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},ot={width:"100%",height:"100%",position:"absolute",top:0},rt={width:"100%",position:Ne(),top:0};function it(e,t){if("string"!=typeof e)return{context:t}}var at=react__WEBPACK_IMPORTED_MODULE_0__.memo(function(){var e=gt("HeaderComponent"),t=ht("headerHeight"),n=gt("headerFooterTag"),o=I(function(e){return t(w(e,"height"))}),r=gt("context");return e?(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(n,{ref:o},(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(e,it(e,r))):null}),lt=react__WEBPACK_IMPORTED_MODULE_0__.memo(function(){var e=gt("FooterComponent"),t=ht("footerHeight"),n=gt("headerFooterTag"),o=I(function(e){return t(w(e,"height"))}),r=gt("context");return e?(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(n,{ref:o},(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(e,it(e,r))):null});function st(e){var t=e.usePublisher,o=e.useEmitter,r=e.useEmitterValue;return react__WEBPACK_IMPORTED_MODULE_0__.memo(function(e){var n=e.style,i=e.children,a=m(e,Ke),s=t("scrollContainerState"),u=r("ScrollerComponent"),d=t("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),(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(u,c({ref:g,style:c({},nt,n),"data-test-id":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0},a,it(u,p)),i)})}function ut(e){var o=e.usePublisher,r=e.useEmitter,i=e.useEmitterValue;return react__WEBPACK_IMPORTED_MODULE_0__.memo(function(e){var n=e.style,a=e.children,s=m(e,Ye),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,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.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),(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(d,c({style:c({position:"relative"},n,0!==p?{height:p+h}:{}),"data-virtuoso-scroller":!0},s,it(d,S)),a)})}var ct=function(e){var o=e.children,r=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(Ge),i=ht("viewportHeight"),a=ht("fixedItemHeight"),l=I(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.compose(i,function(e){return w(e,"height")}));return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function(){r&&(i(r.viewportHeight),a(r.itemHeight))},[r,i,a]),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:ot,ref:l,"data-viewport-type":"element"},o)},mt=function(e){var t=e.children,o=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(Ge),r=ht("windowViewportRect"),i=ht("fixedItemHeight"),a=gt("customScrollParent"),l=De(r,a);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function(){o&&(i(o.itemHeight),r({offsetTop:0,visibleHeight:o.viewportHeight,visibleWidth:100}))},[o,r,i]),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{ref:l,style:ot,"data-viewport-type":"window"},t)},dt=function(e){var t=e.children,n=gt("TopItemListComponent"),o=gt("headerHeight"),r=c({},rt,{marginTop:o+"px"}),i=gt("context");return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(n||"div",{style:r,context:i},t)},ft=(0,_virtuoso_dev_react_urx__WEBPACK_IMPORTED_MODULE_3__.systemToComponent)($e,{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__WEBPACK_IMPORTED_MODULE_0__.memo(function(e){var t=gt("useWindowScroll"),o=gt("topItemsIndexes").length>0,r=gt("customScrollParent"),i=r||t?mt:ct;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(r||t?Ct:St,c({},e),react__WEBPACK_IMPORTED_MODULE_0__.createElement(i,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(at,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(tt,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(lt,null)),o&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(dt,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(tt,{showTopList:!0})))})),pt=ft.Component,ht=ft.usePublisher,gt=ft.useEmitterValue,vt=ft.useEmitter,St=st({usePublisher:ht,useEmitterValue:gt,useEmitter:vt}),Ct=ut({usePublisher:ht,useEmitterValue:gt,useEmitter:vt}),It={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},Tt={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},wt=Math.round,xt=Math.ceil,bt=Math.floor,yt=Math.min,Ht=Math.max;function Et(e,t,n){return Array.from({length:t-e+1}).map(function(t,o){return{index:o+e,data:null==n?void 0:n[o+e]}})}function Rt(e,t){return e&&e.column===t.column&&e.row===t.row}var Lt=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(e){var n=e[0],o=n.overscan,r=n.visibleRange,i=n.listBoundary,a=e[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=e[2],v=e[3],S=e[4],C=S.propsReady,I=S.didMount,T=e[5],w=T.windowViewportRect,x=T.windowScrollTo,b=T.useWindowScroll,y=T.customScrollParent,H=T.windowScrollContainerState,E=e[6],R=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(0),L=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(0),F=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(It),k=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream({height:0,width:0}),z=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream({height:0,width:0}),B=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),P=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),O=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(0),M=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(void 0),W=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream({row:0,column:0});_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.combineLatest(I,L,M),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return 0!==e[1]}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return{items:Et(0,e[1]-1,e[2]),top:0,bottom:0,offsetBottom:0,offsetTop:0,itemHeight:0,itemWidth:0}})),F),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.combineLatest(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(R),r,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(W,Rt),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(z,function(e,t){return e&&e.width===t.width&&e.height===t.height}),M),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(k),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){var t=e[0],n=t[0],o=t[1],r=o[0],i=o[1],a=t[2],l=t[3],s=t[4],u=e[1],m=a.row,d=a.column,f=l.height,p=l.width,h=u.width;if(0===n||0===h)return It;if(0===p)return function(e){return c({},Tt,{items:e})}(Et(0,0,s));var g=zt(h,p,d),v=g*bt((r+m)/(f+m)),S=g*xt((i+m)/(f+m))-1;S=Ht(0,yt(n-1,S));var C=Et(v=yt(S,Ht(0,v)),S,s),I=Ft(u,a,l,C),T=I.top,w=I.bottom,x=xt(n/g);return{items:C,offsetTop:T,offsetBottom:x*f+(x-1)*m-w,top:T,bottom:w,itemHeight:f,itemWidth:p}})),F),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(M,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return void 0!==e}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return e.length})),R),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(k,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return e.height})),s),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.combineLatest(k,z,F,W),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){var t=Ft(e[0],e[3],e[1],e[2].items);return[t.top,t.bottom]}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.distinctUntilChanged(ve)),i);var V=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.streamFromEmitter(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(F),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return e.items.length>0}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(R),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){var t=e[0].items;return t[t.length-1].index===e[1]-1}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return e[1]-1}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.distinctUntilChanged())),U=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.streamFromEmitter(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(F),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){var t=e.items;return t.length>0&&0===t[0].index}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.mapTo(0),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.distinctUntilChanged())),A=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.streamFromEmitter(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.duc(F),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.filter(function(e){return e.items.length>0}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){var t=e.items;return{startIndex:t[0].index,endIndex:t[t.length-1].index}}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.distinctUntilChanged(Se)));_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(A,v.scrollSeekRangeChanged),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(B,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(k,z,R,W),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){var t=e[1],n=e[2],o=e[3],r=e[4],i=ae(e[0]),a=i.align,l=i.behavior,s=i.offset,u=i.index;"LAST"===u&&(u=o-1);var c=kt(t,r,n,u=Ht(0,u,yt(o-1,u)));return"end"===a?c=wt(c-t.height+n.height):"center"===a&&(c=wt(c-t.height/2+n.height/2)),s&&(c+=s),{top:c,behavior:l}})),m);var N=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStreamFromEmitter(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(F,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return e.offsetBottom+e.bottom})),0);return _virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(w,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){return{width:e.visibleWidth,height:e.visibleHeight}})),k),c({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)},_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.tup(Te,y,ce,Ee,me,Oe,S));function Ft(e,t,n,o){var r=n.height;return void 0===r||0===o.length?{top:0,bottom:0}:{top:kt(e,t,n,o[0].index),bottom:kt(e,t,n,o[o.length-1].index)+r}}function kt(e,t,n,o){var r=zt(e.width,n.width,t.column),i=bt(o/r),a=i*n.height+Ht(0,i-1)*t.row;return a>0?a+t.row:a}function zt(e,t,n){return Ht(1,bt((e+n)/(t+n)))}var Bt=["placeholder"],Pt=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(){var e=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(function(e){return"Item "+e}),n=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream({}),o=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(null),r=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream("virtuoso-grid-item"),i=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream("virtuoso-grid-list"),a=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(qe),l=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream("div"),s=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.noop),u=function(e,o){return void 0===o&&(o=null),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStreamFromEmitter(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(n,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(t){return t[e]}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.distinctUntilChanged()),o)};return{context:o,itemContent:e,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")}}),Ot=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(e){var n=e[0],o=e[1],r={item:Je(o.itemContent,"Rename the %citem%c prop to %citemContent."),ItemContainer:_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),ScrollContainer:_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),ListContainer:_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),emptyComponent:_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream(),scrollSeek:_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.stream()};function i(e,n,r){_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.connect(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(e,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.withLatestFrom(o.components),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(e){var t,o=e[0],i=e[1];return console.warn("react-virtuoso: "+r+" property is deprecated. Pass components."+n+" instead."),c({},i,((t={})[n]=o,t))})),o.components)}return _virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.subscribe(r.scrollSeek,function(e){var r=e.placeholder,i=m(e,Bt);console.warn("react-virtuoso: scrollSeek property is deprecated. Pass scrollSeekConfiguration and specify the placeholder in components.ScrollSeekPlaceholder instead."),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.publish(o.components,c({},_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.getValue(o.components),{ScrollSeekPlaceholder:r})),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.publish(n.scrollSeekConfiguration,i)}),i(r.ItemContainer,"Item","ItemContainer"),i(r.ListContainer,"List","ListContainer"),i(r.ScrollContainer,"Scroller","ScrollContainer"),c({},n,o,r)},_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.tup(Lt,Pt)),Mt=react__WEBPACK_IMPORTED_MODULE_0__.memo(function(){var e=_t("gridState"),t=_t("listClassName"),n=_t("itemClassName"),o=_t("itemContent"),r=_t("computeItemKey"),i=_t("isSeeking"),a=Gt("scrollHeight"),s=_t("ItemComponent"),u=_t("ListComponent"),m=_t("ScrollSeekPlaceholder"),d=_t("context"),f=Gt("itemDimensions"),p=Gt("gap"),h=_t("log"),g=I(function(e){a(e.parentElement.parentElement.scrollHeight);var t=e.firstChild;t&&f(t.getBoundingClientRect()),p({row:qt("row-gap",getComputedStyle(e).rowGap,h),column:qt("column-gap",getComputedStyle(e).columnGap,h)})});return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(u,c({ref:g,className:t},it(u,d),{style:{paddingTop:e.offsetTop,paddingBottom:e.offsetBottom}}),e.items.map(function(t){var a=r(t.index,t.data,d);return i?(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(m,c({key:a},it(m,d),{index:t.index,height:e.itemHeight,width:e.itemWidth})):(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(s,c({},it(s,d),{className:n,"data-index":t.index,key:a}),o(t.index,t.data,d))}))}),Wt=react__WEBPACK_IMPORTED_MODULE_0__.memo(function(){var e=_t("HeaderComponent"),t=Gt("headerHeight"),n=_t("headerFooterTag"),o=I(function(e){return t(w(e,"height"))}),r=_t("context");return e?(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(n,{ref:o},(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(e,it(e,r))):null}),Vt=react__WEBPACK_IMPORTED_MODULE_0__.memo(function(){var e=_t("FooterComponent"),t=Gt("footerHeight"),n=_t("headerFooterTag"),o=I(function(e){return t(w(e,"height"))}),r=_t("context");return e?(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(n,{ref:o},(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(e,it(e,r))):null}),Ut=function(e){var t=e.children,o=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_e),r=Gt("itemDimensions"),i=Gt("viewportDimensions"),a=I(function(e){i(e.getBoundingClientRect())});return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function(){o&&(i({height:o.viewportHeight,width:o.viewportWidth}),r({height:o.itemHeight,width:o.itemWidth}))},[o,i,r]),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:ot,ref:a},t)},At=function(e){var t=e.children,o=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_e),r=Gt("windowViewportRect"),i=Gt("itemDimensions"),a=_t("customScrollParent"),l=De(r,a);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function(){o&&(i({height:o.itemHeight,width:o.itemWidth}),r({offsetTop:0,visibleHeight:o.viewportHeight,visibleWidth:o.viewportWidth}))},[o,r,i]),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{ref:l,style:ot},t)},Nt=(0,_virtuoso_dev_react_urx__WEBPACK_IMPORTED_MODULE_3__.systemToComponent)(Ot,{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__WEBPACK_IMPORTED_MODULE_0__.memo(function(e){var t=c({},e),o=_t("useWindowScroll"),r=_t("customScrollParent"),i=r||o?At:Ut;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(r||o?Yt:Kt,c({},t),react__WEBPACK_IMPORTED_MODULE_0__.createElement(i,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wt,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Mt,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Vt,null)))})),Dt=Nt.Component,Gt=Nt.usePublisher,_t=Nt.useEmitterValue,jt=Nt.useEmitter,Kt=st({usePublisher:Gt,useEmitterValue:_t,useEmitter:jt}),Yt=ut({usePublisher:Gt,useEmitterValue:_t,useEmitter:jt});function qt(e,t,n){return"normal"===t||null!=t&&t.endsWith("px")||n(e+" was not resolved to pixel value correctly",t,h.WARN),"normal"===t?0:parseInt(null!=t?t:"0",10)}var Zt=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(){var e=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(function(e){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("td",null,"Item $",e)}),o=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(null),r=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(null),i=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(null),a=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream({}),l=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(qe),s=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStream(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.noop),u=function(e,n){return void 0===n&&(n=null),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.statefulStreamFromEmitter(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.pipe(a,_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.map(function(t){return t[e]}),_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.distinctUntilChanged()),n)};return{context:o,itemContent:e,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")}}),Jt=_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.system(function(e){return c({},e[0],e[1])},_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.tup(Ae,Zt)),$t=function(e){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("tr",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("td",{style:{height:e.height}}))},Qt=function(e){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("tr",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("td",{style:{height:e.height,padding:0,border:0}}))},Xt=react__WEBPACK_IMPORTED_MODULE_0__.memo(function(){var e=an("listState"),t=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(t,an("itemSize"),m,s,an("log"),void 0,r),f=d.callbackRef,p=d.ref,h=react__WEBPACK_IMPORTED_MODULE_0__.useState(0),g=h[0],v=h[1];ln("deviation",function(e){g!==e&&(p.current.style.marginTop=e+"px",v(e))});var S=an("EmptyPlaceholder"),C=an("ScrollSeekPlaceholder")||$t,I=an("FillerRow")||Qt,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 (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(S,it(S,L));var F=e.offsetTop+H+g,k=e.offsetBottom,z=F>0?react__WEBPACK_IMPORTED_MODULE_0__.createElement(I,{height:F,key:"padding-top"}):null,B=k>0?react__WEBPACK_IMPORTED_MODULE_0__.createElement(I,{height:k,key:"padding-bottom"}):null,P=e.items.map(function(e){var t=e.originalIndex,n=b(t+E,e.data,L);return y?(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(C,c({},it(C,L),{key:n,index:e.index,height:e.size,type:e.type||"item"})):(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(x,c({},it(x,L),{key:n,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,style:{overflowAnchor:"none"}}),u(e.index,e.data,L))});return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(w,c({ref:f,"data-test-id":"virtuoso-item-list"},it(w,L)),[z].concat(P,[B]))}),en=function(e){var o=e.children,r=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(Ge),i=rn("viewportHeight"),a=rn("fixedItemHeight"),l=I(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.compose(i,function(e){return w(e,"height")}));return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function(){r&&(i(r.viewportHeight),a(r.itemHeight))},[r,i,a]),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:ot,ref:l,"data-viewport-type":"element"},o)},tn=function(e){var t=e.children,o=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(Ge),r=rn("windowViewportRect"),i=rn("fixedItemHeight"),a=an("customScrollParent"),l=De(r,a);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function(){o&&(i(o.itemHeight),r({offsetTop:0,visibleHeight:o.viewportHeight,visibleWidth:100}))},[o,r,i]),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{ref:l,style:ot,"data-viewport-type":"window"},t)},nn=(0,_virtuoso_dev_react_urx__WEBPACK_IMPORTED_MODULE_3__.systemToComponent)(Jt,{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__WEBPACK_IMPORTED_MODULE_0__.memo(function(e){var o=an("useWindowScroll"),r=an("customScrollParent"),i=rn("fixedHeaderHeight"),a=rn("fixedFooterHeight"),l=an("fixedHeaderContent"),s=an("fixedFooterContent"),u=an("context"),m=I(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.compose(i,function(e){return w(e,"height")})),d=I(_virtuoso_dev_urx__WEBPACK_IMPORTED_MODULE_2__.compose(a,function(e){return w(e,"height")})),f=r||o?un:sn,p=r||o?tn:en,h=an("TableComponent"),g=an("TableHeadComponent"),v=an("TableFooterComponent"),S=l?react__WEBPACK_IMPORTED_MODULE_0__.createElement(g,c({key:"TableHead",style:{zIndex:1,position:"sticky",top:0},ref:m},it(g,u)),l()):null,C=s?react__WEBPACK_IMPORTED_MODULE_0__.createElement(v,c({key:"TableFoot",style:{zIndex:1,position:"sticky",bottom:0},ref:d},it(v,u)),s()):null;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(f,c({},e),react__WEBPACK_IMPORTED_MODULE_0__.createElement(p,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(h,c({style:{borderSpacing:0}},it(h,u)),[S,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Xt,{key:"TableBody"}),C])))})),on=nn.Component,rn=nn.usePublisher,an=nn.useEmitterValue,ln=nn.useEmitter,sn=st({usePublisher:rn,useEmitterValue:an,useEmitter:ln}),un=ut({usePublisher:rn,useEmitterValue:an,useEmitter:ln}),cn=pt,mn=pt,dn=on,fn=Dt;
3733
+ //# sourceMappingURL=index.m.js.map
3734
+
3735
+
2427
3736
  /***/ }),
2428
3737
 
2429
3738
  /***/ "../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":
@@ -8607,12 +9916,9 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
8607
9916
 
8608
9917
 
8609
9918
  var Modal = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (_a, ref) {
8610
- var children = _a.children, _b = _a.wrapper, wrapper = _b === void 0 ? _Box__WEBPACK_IMPORTED_MODULE_1__["default"] : _b, props = __rest(_a, ["children", "wrapper"]);
8611
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'dialog', "rcx-modal": true, ref: ref }, props), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(wrapper, {
8612
- children: children,
8613
- className: 'rcx-modal__inner',
8614
- elevation: '2',
8615
- })));
9919
+ var children = _a.children, props = __rest(_a, ["children"]);
9920
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], __assign({ is: 'dialog', "rcx-modal": true }, props),
9921
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_1__["default"], { ref: ref, "rcx-modal__inner": true, elevation: '2' }, children)));
8616
9922
  });
8617
9923
 
8618
9924
 
@@ -10430,14 +11736,13 @@ __webpack_require__.r(__webpack_exports__);
10430
11736
  /* harmony import */ var _rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__);
10431
11737
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
10432
11738
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
10433
- /* harmony import */ var react_virtuoso__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-virtuoso */ "react-virtuoso");
10434
- /* harmony import */ var react_virtuoso__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_virtuoso__WEBPACK_IMPORTED_MODULE_2__);
10435
- /* harmony import */ var _helpers_prevent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/prevent */ "./src/helpers/prevent.ts");
10436
- /* harmony import */ var _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../AnimatedVisibility */ "./src/components/AnimatedVisibility/index.ts");
10437
- /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
10438
- /* harmony import */ var _CheckBox__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../CheckBox */ "./src/components/CheckBox/index.ts");
10439
- /* harmony import */ var _Option__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Option */ "./src/components/Option/index.tsx");
10440
- /* harmony import */ var _Tile__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Tile */ "./src/components/Tile/index.ts");
11739
+ /* harmony import */ var react_virtuoso__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-virtuoso */ "../../node_modules/react-virtuoso/dist/index.m.js");
11740
+ /* harmony import */ var _helpers_prevent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/prevent */ "./src/helpers/prevent.ts");
11741
+ /* harmony import */ var _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../AnimatedVisibility */ "./src/components/AnimatedVisibility/index.ts");
11742
+ /* harmony import */ var _Box__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Box */ "./src/components/Box/index.tsx");
11743
+ /* harmony import */ var _CheckBox__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../CheckBox */ "./src/components/CheckBox/index.ts");
11744
+ /* harmony import */ var _Option__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Option */ "./src/components/Option/index.tsx");
11745
+ /* harmony import */ var _Tile__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Tile */ "./src/components/Tile/index.ts");
10441
11746
  var __assign = (undefined && undefined.__assign) || function () {
10442
11747
  __assign = Object.assign || function(t) {
10443
11748
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -10485,34 +11790,34 @@ var __read = (undefined && undefined.__read) || function (o, n) {
10485
11790
 
10486
11791
 
10487
11792
 
10488
- var Empty = (0,react__WEBPACK_IMPORTED_MODULE_1__.memo)(function () { return react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Option__WEBPACK_IMPORTED_MODULE_7__["default"], { label: 'Empty' }); });
11793
+ var Empty = (0,react__WEBPACK_IMPORTED_MODULE_1__.memo)(function () { return react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Option__WEBPACK_IMPORTED_MODULE_6__["default"], { label: 'Empty' }); });
10489
11794
  var CheckOption = (0,react__WEBPACK_IMPORTED_MODULE_1__.memo)(function CheckOption(_a) {
10490
11795
  var selected = _a.selected, label = _a.children, options = __rest(_a, ["selected", "children"]);
10491
- return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Option__WEBPACK_IMPORTED_MODULE_7__["default"], __assign({ label: label, selected: selected }, options),
10492
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_CheckBox__WEBPACK_IMPORTED_MODULE_6__.CheckBox, { checked: selected })));
11796
+ return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Option__WEBPACK_IMPORTED_MODULE_6__["default"], __assign({ label: label, selected: selected }, options),
11797
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_CheckBox__WEBPACK_IMPORTED_MODULE_5__.CheckBox, { checked: selected })));
10493
11798
  });
10494
11799
  var OptionsPaginated = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_a, ref) {
10495
- var title = _a.title, multiple = _a.multiple, _b = _a.renderEmpty, EmptyComponent = _b === void 0 ? Empty : _b, options = _a.options, cursor = _a.cursor, _c = _a.renderItem, OptionComponent = _c === void 0 ? _Option__WEBPACK_IMPORTED_MODULE_7__["default"] : _c, onSelect = _a.onSelect, endReached = _a.endReached, props = __rest(_a, ["title", "multiple", "renderEmpty", "options", "cursor", "renderItem", "onSelect", "endReached"]);
11800
+ var title = _a.title, multiple = _a.multiple, _b = _a.renderEmpty, EmptyComponent = _b === void 0 ? Empty : _b, options = _a.options, cursor = _a.cursor, _c = _a.renderItem, OptionComponent = _c === void 0 ? _Option__WEBPACK_IMPORTED_MODULE_6__["default"] : _c, onSelect = _a.onSelect, endReached = _a.endReached, props = __rest(_a, ["title", "multiple", "renderEmpty", "options", "cursor", "renderItem", "onSelect", "endReached"]);
10496
11801
  var OptionsComponentWithData = function (_a) {
10497
11802
  var index = _a.index, data = _a.data;
10498
11803
  var value = data.value, label = data.label, selected = data.selected;
10499
11804
  return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(OptionComponent, __assign({}, (title && { title: label }), { role: 'option', label: label, onMouseDown: function (e) {
10500
- (0,_helpers_prevent__WEBPACK_IMPORTED_MODULE_3__.prevent)(e);
11805
+ (0,_helpers_prevent__WEBPACK_IMPORTED_MODULE_2__.prevent)(e);
10501
11806
  onSelect([value, label]);
10502
11807
  return false;
10503
11808
  }, key: value, value: value, selected: selected || (multiple !== true && null), focus: cursor === index || null })));
10504
11809
  };
10505
- return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_5__["default"], __assign({ "rcx-options": true }, props, { ref: ref }),
10506
- react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Tile__WEBPACK_IMPORTED_MODULE_8__["default"], { padding: 0, paddingBlock: 'x12', paddingInline: 0, elevation: '2' }, !options.length ? (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(EmptyComponent, null)) : (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_virtuoso__WEBPACK_IMPORTED_MODULE_2__.Virtuoso, { endReached: endReached, style: { height: '144px' }, totalCount: options.length, data: options,
11810
+ return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Box__WEBPACK_IMPORTED_MODULE_4__["default"], __assign({ "rcx-options": true }, props, { ref: ref }),
11811
+ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Tile__WEBPACK_IMPORTED_MODULE_7__["default"], { padding: 0, paddingBlock: 'x12', paddingInline: 0, elevation: '2' }, !options.length ? (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(EmptyComponent, null)) : (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_virtuoso__WEBPACK_IMPORTED_MODULE_8__.Virtuoso, { endReached: endReached, style: { height: '144px' }, totalCount: options.length, data: options,
10507
11812
  // TODO Add a scroller element
10508
11813
  // components={{ Scroller: ScrollableContentWrapper }}
10509
11814
  itemContent: function (index, data) { return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement(OptionsComponentWithData, { index: index, data: data })); } })))));
10510
11815
  });
10511
11816
  var useVisible = function (initialVisibility) {
10512
- if (initialVisibility === void 0) { initialVisibility = _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_4__["default"].HIDDEN; }
11817
+ if (initialVisibility === void 0) { initialVisibility = _AnimatedVisibility__WEBPACK_IMPORTED_MODULE_3__["default"].HIDDEN; }
10513
11818
  var _a = __read((0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useDebouncedState)(initialVisibility, 10), 2), visible = _a[0], setVisible = _a[1];
10514
- var hide = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMutableCallback)(function () { return setVisible(_AnimatedVisibility__WEBPACK_IMPORTED_MODULE_4__["default"].HIDDEN); });
10515
- var show = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMutableCallback)(function () { return setVisible(_AnimatedVisibility__WEBPACK_IMPORTED_MODULE_4__["default"].VISIBLE); });
11819
+ var hide = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMutableCallback)(function () { return setVisible(_AnimatedVisibility__WEBPACK_IMPORTED_MODULE_3__["default"].HIDDEN); });
11820
+ var show = (0,_rocket_chat_fuselage_hooks__WEBPACK_IMPORTED_MODULE_0__.useMutableCallback)(function () { return setVisible(_AnimatedVisibility__WEBPACK_IMPORTED_MODULE_3__["default"].VISIBLE); });
10516
11821
  return [visible, hide, show];
10517
11822
  };
10518
11823
 
@@ -15481,16 +16786,6 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_icons__;
15481
16786
 
15482
16787
  /***/ }),
15483
16788
 
15484
- /***/ "react":
15485
- /*!************************!*\
15486
- !*** external "react" ***!
15487
- \************************/
15488
- /***/ (function(module) {
15489
-
15490
- module.exports = __WEBPACK_EXTERNAL_MODULE_react__;
15491
-
15492
- /***/ }),
15493
-
15494
16789
  /***/ "react-dom":
15495
16790
  /*!****************************!*\
15496
16791
  !*** external "react-dom" ***!
@@ -15501,13 +16796,13 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_react_dom__;
15501
16796
 
15502
16797
  /***/ }),
15503
16798
 
15504
- /***/ "react-virtuoso":
15505
- /*!*********************************!*\
15506
- !*** external "react-virtuoso" ***!
15507
- \*********************************/
16799
+ /***/ "react":
16800
+ /*!**************************************************************************************!*\
16801
+ !*** external {"commonjs":"react","commonjs2":"react","amd":"react","root":"React"} ***!
16802
+ \**************************************************************************************/
15508
16803
  /***/ (function(module) {
15509
16804
 
15510
- module.exports = __WEBPACK_EXTERNAL_MODULE_react_virtuoso__;
16805
+ module.exports = __WEBPACK_EXTERNAL_MODULE_react__;
15511
16806
 
15512
16807
  /***/ }),
15513
16808