@karmaniverous/stan-cli 0.11.6 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import * as readline$1 from 'node:readline';
3
3
  import readline__default from 'node:readline';
4
- import { g as getDefaultExportFromCjs, r as requireIsFullwidthCodePoint, a as requireEmojiRegex, b as requireColorConvert, o as onExit } from './stan.js';
4
+ import { g as getDefaultExportFromCjs, o as onExit } from './stan.js';
5
5
  import $ from 'stream';
6
- import tty from 'node:tty';
6
+ import { styleText, stripVTControlCharacters } from 'node:util';
7
7
  import process$1 from 'node:process';
8
8
  import { AsyncLocalStorage, AsyncResource } from 'node:async_hooks';
9
- import { stripVTControlCharacters } from 'node:util';
10
9
  import require$$0$1 from 'tty';
11
10
  import i, { writeFileSync, readFileSync, unlinkSync } from 'fs';
12
11
  import { spawnSync, spawn } from 'child_process';
@@ -26,6 +25,7 @@ import 'path';
26
25
  import 'util';
27
26
  import 'events';
28
27
  import 'node:events';
28
+ import 'node:tty';
29
29
  import 'clipboardy';
30
30
  import 'node:module';
31
31
 
@@ -210,116 +210,6 @@ function useEffect(cb, depArray) {
210
210
  });
211
211
  }
212
212
 
213
- var yoctocolorsCjs;
214
- var hasRequiredYoctocolorsCjs;
215
-
216
- function requireYoctocolorsCjs () {
217
- if (hasRequiredYoctocolorsCjs) return yoctocolorsCjs;
218
- hasRequiredYoctocolorsCjs = 1;
219
- const tty$1 = tty; // eslint-disable-line unicorn/prefer-module
220
-
221
- // eslint-disable-next-line no-warning-comments
222
- // TODO: Use a better method when it's added to Node.js (https://github.com/nodejs/node/pull/40240)
223
- // Lots of optionals here to support Deno.
224
- const hasColors = tty$1?.WriteStream?.prototype?.hasColors?.() ?? false;
225
-
226
- const format = (open, close) => {
227
- if (!hasColors) {
228
- return input => input;
229
- }
230
-
231
- const openCode = `\u001B[${open}m`;
232
- const closeCode = `\u001B[${close}m`;
233
-
234
- return input => {
235
- const string = input + ''; // eslint-disable-line no-implicit-coercion -- This is faster.
236
- let index = string.indexOf(closeCode);
237
-
238
- if (index === -1) {
239
- // Note: Intentionally not using string interpolation for performance reasons.
240
- return openCode + string + closeCode;
241
- }
242
-
243
- // Handle nested colors.
244
-
245
- // We could have done this, but it's too slow (as of Node.js 22).
246
- // return openCode + string.replaceAll(closeCode, openCode) + closeCode;
247
-
248
- let result = openCode;
249
- let lastIndex = 0;
250
-
251
- // SGR 22 resets both bold (1) and dim (2). When we encounter a nested
252
- // close for styles that use 22, we need to re-open the outer style.
253
- const reopenOnNestedClose = close === 22;
254
- const replaceCode = (reopenOnNestedClose ? closeCode : '') + openCode;
255
-
256
- while (index !== -1) {
257
- result += string.slice(lastIndex, index) + replaceCode;
258
- lastIndex = index + closeCode.length;
259
- index = string.indexOf(closeCode, lastIndex);
260
- }
261
-
262
- result += string.slice(lastIndex) + closeCode;
263
-
264
- return result;
265
- };
266
- };
267
-
268
- const colors = {};
269
-
270
- colors.reset = format(0, 0);
271
- colors.bold = format(1, 22);
272
- colors.dim = format(2, 22);
273
- colors.italic = format(3, 23);
274
- colors.underline = format(4, 24);
275
- colors.overline = format(53, 55);
276
- colors.inverse = format(7, 27);
277
- colors.hidden = format(8, 28);
278
- colors.strikethrough = format(9, 29);
279
-
280
- colors.black = format(30, 39);
281
- colors.red = format(31, 39);
282
- colors.green = format(32, 39);
283
- colors.yellow = format(33, 39);
284
- colors.blue = format(34, 39);
285
- colors.magenta = format(35, 39);
286
- colors.cyan = format(36, 39);
287
- colors.white = format(37, 39);
288
- colors.gray = format(90, 39);
289
-
290
- colors.bgBlack = format(40, 49);
291
- colors.bgRed = format(41, 49);
292
- colors.bgGreen = format(42, 49);
293
- colors.bgYellow = format(43, 49);
294
- colors.bgBlue = format(44, 49);
295
- colors.bgMagenta = format(45, 49);
296
- colors.bgCyan = format(46, 49);
297
- colors.bgWhite = format(47, 49);
298
- colors.bgGray = format(100, 49);
299
-
300
- colors.redBright = format(91, 39);
301
- colors.greenBright = format(92, 39);
302
- colors.yellowBright = format(93, 39);
303
- colors.blueBright = format(94, 39);
304
- colors.magentaBright = format(95, 39);
305
- colors.cyanBright = format(96, 39);
306
- colors.whiteBright = format(97, 39);
307
-
308
- colors.bgRedBright = format(101, 49);
309
- colors.bgGreenBright = format(102, 49);
310
- colors.bgYellowBright = format(103, 49);
311
- colors.bgBlueBright = format(104, 49);
312
- colors.bgMagentaBright = format(105, 49);
313
- colors.bgCyanBright = format(106, 49);
314
- colors.bgWhiteBright = format(107, 49);
315
-
316
- yoctocolorsCjs = colors; // eslint-disable-line unicorn/prefer-module
317
- return yoctocolorsCjs;
318
- }
319
-
320
- var yoctocolorsCjsExports = /*@__PURE__*/ requireYoctocolorsCjs();
321
- var colors = /*@__PURE__*/getDefaultExportFromCjs(yoctocolorsCjsExports);
322
-
323
213
  // process.env dot-notation access prints:
324
214
  // Property 'TERM' comes from an index signature, so it must be accessed with ['TERM'].ts(4111)
325
215
  /* eslint dot-notation: ["off"] */
@@ -606,32 +496,36 @@ const specialFallbackSymbols = {
606
496
  oneNinth: '1/9',
607
497
  oneTenth: '1/10',
608
498
  };
609
- const mainSymbols = { ...common, ...specialMainSymbols };
499
+ const mainSymbols = {
500
+ ...common,
501
+ ...specialMainSymbols,
502
+ };
610
503
  const fallbackSymbols = {
611
504
  ...common,
612
505
  ...specialFallbackSymbols,
613
506
  };
614
507
  const shouldUseMain = isUnicodeSupported();
615
- const figures = shouldUseMain ? mainSymbols : fallbackSymbols;
508
+ const figures = shouldUseMain
509
+ ? mainSymbols
510
+ : fallbackSymbols;
616
511
 
617
512
  const defaultTheme = {
618
513
  prefix: {
619
- idle: colors.blue('?'),
620
- // TODO: use figure
621
- done: colors.green(figures.tick),
514
+ idle: styleText('blue', '?'),
515
+ done: styleText('green', figures.tick),
622
516
  },
623
517
  spinner: {
624
518
  interval: 80,
625
- frames: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'].map((frame) => colors.yellow(frame)),
519
+ frames: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'].map((frame) => styleText('yellow', frame)),
626
520
  },
627
521
  style: {
628
- answer: colors.cyan,
629
- message: colors.bold,
630
- error: (text) => colors.red(`> ${text}`),
631
- defaultAnswer: (text) => colors.dim(`(${text})`),
632
- help: colors.dim,
633
- highlight: colors.cyan,
634
- key: (text) => colors.cyan(colors.bold(`<${text}>`)),
522
+ answer: (text) => styleText('cyan', text),
523
+ message: (text) => styleText('bold', text),
524
+ error: (text) => styleText('red', `> ${text}`),
525
+ defaultAnswer: (text) => styleText('dim', `(${text})`),
526
+ help: (text) => styleText('dim', text),
527
+ highlight: (text) => styleText('cyan', text),
528
+ key: (text) => styleText('cyan', styleText('bold', `<${text}>`)),
635
529
  },
636
530
  };
637
531
 
@@ -794,464 +688,943 @@ function requireCliWidth () {
794
688
  var cliWidthExports = requireCliWidth();
795
689
  var cliWidth = /*@__PURE__*/getDefaultExportFromCjs(cliWidthExports);
796
690
 
797
- var stringWidth = {exports: {}};
798
-
799
- var ansiRegex;
800
- var hasRequiredAnsiRegex;
691
+ function ansiRegex({onlyFirst = false} = {}) {
692
+ // Valid string terminator sequences are BEL, ESC\, and 0x9c
693
+ const ST = '(?:\\u0007|\\u001B\\u005C|\\u009C)';
694
+
695
+ // OSC sequences only: ESC ] ... ST (non-greedy until the first ST)
696
+ const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
697
+
698
+ // CSI and related: ESC/C1, optional intermediates, optional params (supports ; and :) then final byte
699
+ const csi = '[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]';
700
+
701
+ const pattern = `${osc}|${csi}`;
702
+
703
+ return new RegExp(pattern, onlyFirst ? undefined : 'g');
704
+ }
705
+
706
+ const regex = ansiRegex();
707
+
708
+ function stripAnsi(string) {
709
+ if (typeof string !== 'string') {
710
+ throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
711
+ }
712
+
713
+ // Even though the regex is global, we don't need to reset the `.lastIndex`
714
+ // because unlike `.exec()` and `.test()`, `.replace()` does it automatically
715
+ // and doing it manually has a performance penalty.
716
+ return string.replace(regex, '');
717
+ }
718
+
719
+ // Generated code.
720
+
721
+ function isAmbiguous(x) {
722
+ return x === 0xA1
723
+ || x === 0xA4
724
+ || x === 0xA7
725
+ || x === 0xA8
726
+ || x === 0xAA
727
+ || x === 0xAD
728
+ || x === 0xAE
729
+ || x >= 0xB0 && x <= 0xB4
730
+ || x >= 0xB6 && x <= 0xBA
731
+ || x >= 0xBC && x <= 0xBF
732
+ || x === 0xC6
733
+ || x === 0xD0
734
+ || x === 0xD7
735
+ || x === 0xD8
736
+ || x >= 0xDE && x <= 0xE1
737
+ || x === 0xE6
738
+ || x >= 0xE8 && x <= 0xEA
739
+ || x === 0xEC
740
+ || x === 0xED
741
+ || x === 0xF0
742
+ || x === 0xF2
743
+ || x === 0xF3
744
+ || x >= 0xF7 && x <= 0xFA
745
+ || x === 0xFC
746
+ || x === 0xFE
747
+ || x === 0x101
748
+ || x === 0x111
749
+ || x === 0x113
750
+ || x === 0x11B
751
+ || x === 0x126
752
+ || x === 0x127
753
+ || x === 0x12B
754
+ || x >= 0x131 && x <= 0x133
755
+ || x === 0x138
756
+ || x >= 0x13F && x <= 0x142
757
+ || x === 0x144
758
+ || x >= 0x148 && x <= 0x14B
759
+ || x === 0x14D
760
+ || x === 0x152
761
+ || x === 0x153
762
+ || x === 0x166
763
+ || x === 0x167
764
+ || x === 0x16B
765
+ || x === 0x1CE
766
+ || x === 0x1D0
767
+ || x === 0x1D2
768
+ || x === 0x1D4
769
+ || x === 0x1D6
770
+ || x === 0x1D8
771
+ || x === 0x1DA
772
+ || x === 0x1DC
773
+ || x === 0x251
774
+ || x === 0x261
775
+ || x === 0x2C4
776
+ || x === 0x2C7
777
+ || x >= 0x2C9 && x <= 0x2CB
778
+ || x === 0x2CD
779
+ || x === 0x2D0
780
+ || x >= 0x2D8 && x <= 0x2DB
781
+ || x === 0x2DD
782
+ || x === 0x2DF
783
+ || x >= 0x300 && x <= 0x36F
784
+ || x >= 0x391 && x <= 0x3A1
785
+ || x >= 0x3A3 && x <= 0x3A9
786
+ || x >= 0x3B1 && x <= 0x3C1
787
+ || x >= 0x3C3 && x <= 0x3C9
788
+ || x === 0x401
789
+ || x >= 0x410 && x <= 0x44F
790
+ || x === 0x451
791
+ || x === 0x2010
792
+ || x >= 0x2013 && x <= 0x2016
793
+ || x === 0x2018
794
+ || x === 0x2019
795
+ || x === 0x201C
796
+ || x === 0x201D
797
+ || x >= 0x2020 && x <= 0x2022
798
+ || x >= 0x2024 && x <= 0x2027
799
+ || x === 0x2030
800
+ || x === 0x2032
801
+ || x === 0x2033
802
+ || x === 0x2035
803
+ || x === 0x203B
804
+ || x === 0x203E
805
+ || x === 0x2074
806
+ || x === 0x207F
807
+ || x >= 0x2081 && x <= 0x2084
808
+ || x === 0x20AC
809
+ || x === 0x2103
810
+ || x === 0x2105
811
+ || x === 0x2109
812
+ || x === 0x2113
813
+ || x === 0x2116
814
+ || x === 0x2121
815
+ || x === 0x2122
816
+ || x === 0x2126
817
+ || x === 0x212B
818
+ || x === 0x2153
819
+ || x === 0x2154
820
+ || x >= 0x215B && x <= 0x215E
821
+ || x >= 0x2160 && x <= 0x216B
822
+ || x >= 0x2170 && x <= 0x2179
823
+ || x === 0x2189
824
+ || x >= 0x2190 && x <= 0x2199
825
+ || x === 0x21B8
826
+ || x === 0x21B9
827
+ || x === 0x21D2
828
+ || x === 0x21D4
829
+ || x === 0x21E7
830
+ || x === 0x2200
831
+ || x === 0x2202
832
+ || x === 0x2203
833
+ || x === 0x2207
834
+ || x === 0x2208
835
+ || x === 0x220B
836
+ || x === 0x220F
837
+ || x === 0x2211
838
+ || x === 0x2215
839
+ || x === 0x221A
840
+ || x >= 0x221D && x <= 0x2220
841
+ || x === 0x2223
842
+ || x === 0x2225
843
+ || x >= 0x2227 && x <= 0x222C
844
+ || x === 0x222E
845
+ || x >= 0x2234 && x <= 0x2237
846
+ || x === 0x223C
847
+ || x === 0x223D
848
+ || x === 0x2248
849
+ || x === 0x224C
850
+ || x === 0x2252
851
+ || x === 0x2260
852
+ || x === 0x2261
853
+ || x >= 0x2264 && x <= 0x2267
854
+ || x === 0x226A
855
+ || x === 0x226B
856
+ || x === 0x226E
857
+ || x === 0x226F
858
+ || x === 0x2282
859
+ || x === 0x2283
860
+ || x === 0x2286
861
+ || x === 0x2287
862
+ || x === 0x2295
863
+ || x === 0x2299
864
+ || x === 0x22A5
865
+ || x === 0x22BF
866
+ || x === 0x2312
867
+ || x >= 0x2460 && x <= 0x24E9
868
+ || x >= 0x24EB && x <= 0x254B
869
+ || x >= 0x2550 && x <= 0x2573
870
+ || x >= 0x2580 && x <= 0x258F
871
+ || x >= 0x2592 && x <= 0x2595
872
+ || x === 0x25A0
873
+ || x === 0x25A1
874
+ || x >= 0x25A3 && x <= 0x25A9
875
+ || x === 0x25B2
876
+ || x === 0x25B3
877
+ || x === 0x25B6
878
+ || x === 0x25B7
879
+ || x === 0x25BC
880
+ || x === 0x25BD
881
+ || x === 0x25C0
882
+ || x === 0x25C1
883
+ || x >= 0x25C6 && x <= 0x25C8
884
+ || x === 0x25CB
885
+ || x >= 0x25CE && x <= 0x25D1
886
+ || x >= 0x25E2 && x <= 0x25E5
887
+ || x === 0x25EF
888
+ || x === 0x2605
889
+ || x === 0x2606
890
+ || x === 0x2609
891
+ || x === 0x260E
892
+ || x === 0x260F
893
+ || x === 0x261C
894
+ || x === 0x261E
895
+ || x === 0x2640
896
+ || x === 0x2642
897
+ || x === 0x2660
898
+ || x === 0x2661
899
+ || x >= 0x2663 && x <= 0x2665
900
+ || x >= 0x2667 && x <= 0x266A
901
+ || x === 0x266C
902
+ || x === 0x266D
903
+ || x === 0x266F
904
+ || x === 0x269E
905
+ || x === 0x269F
906
+ || x === 0x26BF
907
+ || x >= 0x26C6 && x <= 0x26CD
908
+ || x >= 0x26CF && x <= 0x26D3
909
+ || x >= 0x26D5 && x <= 0x26E1
910
+ || x === 0x26E3
911
+ || x === 0x26E8
912
+ || x === 0x26E9
913
+ || x >= 0x26EB && x <= 0x26F1
914
+ || x === 0x26F4
915
+ || x >= 0x26F6 && x <= 0x26F9
916
+ || x === 0x26FB
917
+ || x === 0x26FC
918
+ || x === 0x26FE
919
+ || x === 0x26FF
920
+ || x === 0x273D
921
+ || x >= 0x2776 && x <= 0x277F
922
+ || x >= 0x2B56 && x <= 0x2B59
923
+ || x >= 0x3248 && x <= 0x324F
924
+ || x >= 0xE000 && x <= 0xF8FF
925
+ || x >= 0xFE00 && x <= 0xFE0F
926
+ || x === 0xFFFD
927
+ || x >= 0x1F100 && x <= 0x1F10A
928
+ || x >= 0x1F110 && x <= 0x1F12D
929
+ || x >= 0x1F130 && x <= 0x1F169
930
+ || x >= 0x1F170 && x <= 0x1F18D
931
+ || x === 0x1F18F
932
+ || x === 0x1F190
933
+ || x >= 0x1F19B && x <= 0x1F1AC
934
+ || x >= 0xE0100 && x <= 0xE01EF
935
+ || x >= 0xF0000 && x <= 0xFFFFD
936
+ || x >= 0x100000 && x <= 0x10FFFD;
937
+ }
938
+
939
+ function isFullWidth(x) {
940
+ return x === 0x3000
941
+ || x >= 0xFF01 && x <= 0xFF60
942
+ || x >= 0xFFE0 && x <= 0xFFE6;
943
+ }
944
+
945
+ function isWide(x) {
946
+ return x >= 0x1100 && x <= 0x115F
947
+ || x === 0x231A
948
+ || x === 0x231B
949
+ || x === 0x2329
950
+ || x === 0x232A
951
+ || x >= 0x23E9 && x <= 0x23EC
952
+ || x === 0x23F0
953
+ || x === 0x23F3
954
+ || x === 0x25FD
955
+ || x === 0x25FE
956
+ || x === 0x2614
957
+ || x === 0x2615
958
+ || x >= 0x2630 && x <= 0x2637
959
+ || x >= 0x2648 && x <= 0x2653
960
+ || x === 0x267F
961
+ || x >= 0x268A && x <= 0x268F
962
+ || x === 0x2693
963
+ || x === 0x26A1
964
+ || x === 0x26AA
965
+ || x === 0x26AB
966
+ || x === 0x26BD
967
+ || x === 0x26BE
968
+ || x === 0x26C4
969
+ || x === 0x26C5
970
+ || x === 0x26CE
971
+ || x === 0x26D4
972
+ || x === 0x26EA
973
+ || x === 0x26F2
974
+ || x === 0x26F3
975
+ || x === 0x26F5
976
+ || x === 0x26FA
977
+ || x === 0x26FD
978
+ || x === 0x2705
979
+ || x === 0x270A
980
+ || x === 0x270B
981
+ || x === 0x2728
982
+ || x === 0x274C
983
+ || x === 0x274E
984
+ || x >= 0x2753 && x <= 0x2755
985
+ || x === 0x2757
986
+ || x >= 0x2795 && x <= 0x2797
987
+ || x === 0x27B0
988
+ || x === 0x27BF
989
+ || x === 0x2B1B
990
+ || x === 0x2B1C
991
+ || x === 0x2B50
992
+ || x === 0x2B55
993
+ || x >= 0x2E80 && x <= 0x2E99
994
+ || x >= 0x2E9B && x <= 0x2EF3
995
+ || x >= 0x2F00 && x <= 0x2FD5
996
+ || x >= 0x2FF0 && x <= 0x2FFF
997
+ || x >= 0x3001 && x <= 0x303E
998
+ || x >= 0x3041 && x <= 0x3096
999
+ || x >= 0x3099 && x <= 0x30FF
1000
+ || x >= 0x3105 && x <= 0x312F
1001
+ || x >= 0x3131 && x <= 0x318E
1002
+ || x >= 0x3190 && x <= 0x31E5
1003
+ || x >= 0x31EF && x <= 0x321E
1004
+ || x >= 0x3220 && x <= 0x3247
1005
+ || x >= 0x3250 && x <= 0xA48C
1006
+ || x >= 0xA490 && x <= 0xA4C6
1007
+ || x >= 0xA960 && x <= 0xA97C
1008
+ || x >= 0xAC00 && x <= 0xD7A3
1009
+ || x >= 0xF900 && x <= 0xFAFF
1010
+ || x >= 0xFE10 && x <= 0xFE19
1011
+ || x >= 0xFE30 && x <= 0xFE52
1012
+ || x >= 0xFE54 && x <= 0xFE66
1013
+ || x >= 0xFE68 && x <= 0xFE6B
1014
+ || x >= 0x16FE0 && x <= 0x16FE4
1015
+ || x >= 0x16FF0 && x <= 0x16FF6
1016
+ || x >= 0x17000 && x <= 0x18CD5
1017
+ || x >= 0x18CFF && x <= 0x18D1E
1018
+ || x >= 0x18D80 && x <= 0x18DF2
1019
+ || x >= 0x1AFF0 && x <= 0x1AFF3
1020
+ || x >= 0x1AFF5 && x <= 0x1AFFB
1021
+ || x === 0x1AFFD
1022
+ || x === 0x1AFFE
1023
+ || x >= 0x1B000 && x <= 0x1B122
1024
+ || x === 0x1B132
1025
+ || x >= 0x1B150 && x <= 0x1B152
1026
+ || x === 0x1B155
1027
+ || x >= 0x1B164 && x <= 0x1B167
1028
+ || x >= 0x1B170 && x <= 0x1B2FB
1029
+ || x >= 0x1D300 && x <= 0x1D356
1030
+ || x >= 0x1D360 && x <= 0x1D376
1031
+ || x === 0x1F004
1032
+ || x === 0x1F0CF
1033
+ || x === 0x1F18E
1034
+ || x >= 0x1F191 && x <= 0x1F19A
1035
+ || x >= 0x1F200 && x <= 0x1F202
1036
+ || x >= 0x1F210 && x <= 0x1F23B
1037
+ || x >= 0x1F240 && x <= 0x1F248
1038
+ || x === 0x1F250
1039
+ || x === 0x1F251
1040
+ || x >= 0x1F260 && x <= 0x1F265
1041
+ || x >= 0x1F300 && x <= 0x1F320
1042
+ || x >= 0x1F32D && x <= 0x1F335
1043
+ || x >= 0x1F337 && x <= 0x1F37C
1044
+ || x >= 0x1F37E && x <= 0x1F393
1045
+ || x >= 0x1F3A0 && x <= 0x1F3CA
1046
+ || x >= 0x1F3CF && x <= 0x1F3D3
1047
+ || x >= 0x1F3E0 && x <= 0x1F3F0
1048
+ || x === 0x1F3F4
1049
+ || x >= 0x1F3F8 && x <= 0x1F43E
1050
+ || x === 0x1F440
1051
+ || x >= 0x1F442 && x <= 0x1F4FC
1052
+ || x >= 0x1F4FF && x <= 0x1F53D
1053
+ || x >= 0x1F54B && x <= 0x1F54E
1054
+ || x >= 0x1F550 && x <= 0x1F567
1055
+ || x === 0x1F57A
1056
+ || x === 0x1F595
1057
+ || x === 0x1F596
1058
+ || x === 0x1F5A4
1059
+ || x >= 0x1F5FB && x <= 0x1F64F
1060
+ || x >= 0x1F680 && x <= 0x1F6C5
1061
+ || x === 0x1F6CC
1062
+ || x >= 0x1F6D0 && x <= 0x1F6D2
1063
+ || x >= 0x1F6D5 && x <= 0x1F6D8
1064
+ || x >= 0x1F6DC && x <= 0x1F6DF
1065
+ || x === 0x1F6EB
1066
+ || x === 0x1F6EC
1067
+ || x >= 0x1F6F4 && x <= 0x1F6FC
1068
+ || x >= 0x1F7E0 && x <= 0x1F7EB
1069
+ || x === 0x1F7F0
1070
+ || x >= 0x1F90C && x <= 0x1F93A
1071
+ || x >= 0x1F93C && x <= 0x1F945
1072
+ || x >= 0x1F947 && x <= 0x1F9FF
1073
+ || x >= 0x1FA70 && x <= 0x1FA7C
1074
+ || x >= 0x1FA80 && x <= 0x1FA8A
1075
+ || x >= 0x1FA8E && x <= 0x1FAC6
1076
+ || x === 0x1FAC8
1077
+ || x >= 0x1FACD && x <= 0x1FADC
1078
+ || x >= 0x1FADF && x <= 0x1FAEA
1079
+ || x >= 0x1FAEF && x <= 0x1FAF8
1080
+ || x >= 0x20000 && x <= 0x2FFFD
1081
+ || x >= 0x30000 && x <= 0x3FFFD;
1082
+ }
1083
+
1084
+ function validate(codePoint) {
1085
+ if (!Number.isSafeInteger(codePoint)) {
1086
+ throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
1087
+ }
1088
+ }
1089
+
1090
+ function eastAsianWidth(codePoint, {ambiguousAsWide = false} = {}) {
1091
+ validate(codePoint);
1092
+
1093
+ if (
1094
+ isFullWidth(codePoint)
1095
+ || isWide(codePoint)
1096
+ || (ambiguousAsWide && isAmbiguous(codePoint))
1097
+ ) {
1098
+ return 2;
1099
+ }
1100
+
1101
+ return 1;
1102
+ }
1103
+
1104
+ var emojiRegex = () => {
1105
+ // https://mths.be/emoji
1106
+ return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
1107
+ };
801
1108
 
802
- function requireAnsiRegex () {
803
- if (hasRequiredAnsiRegex) return ansiRegex;
804
- hasRequiredAnsiRegex = 1;
1109
+ const segmenter = new Intl.Segmenter();
805
1110
 
806
- ansiRegex = ({onlyFirst = false} = {}) => {
807
- const pattern = [
808
- '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
809
- '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
810
- ].join('|');
1111
+ const defaultIgnorableCodePointRegex = /^\p{Default_Ignorable_Code_Point}$/u;
811
1112
 
812
- return new RegExp(pattern, onlyFirst ? undefined : 'g');
813
- };
814
- return ansiRegex;
815
- }
1113
+ function stringWidth(string, options = {}) {
1114
+ if (typeof string !== 'string' || string.length === 0) {
1115
+ return 0;
1116
+ }
816
1117
 
817
- var stripAnsi;
818
- var hasRequiredStripAnsi;
1118
+ const {
1119
+ ambiguousIsNarrow = true,
1120
+ countAnsiEscapeCodes = false,
1121
+ } = options;
819
1122
 
820
- function requireStripAnsi () {
821
- if (hasRequiredStripAnsi) return stripAnsi;
822
- hasRequiredStripAnsi = 1;
823
- const ansiRegex = requireAnsiRegex();
1123
+ if (!countAnsiEscapeCodes) {
1124
+ string = stripAnsi(string);
1125
+ }
824
1126
 
825
- stripAnsi = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;
826
- return stripAnsi;
827
- }
1127
+ if (string.length === 0) {
1128
+ return 0;
1129
+ }
828
1130
 
829
- var hasRequiredStringWidth;
1131
+ let width = 0;
1132
+ const eastAsianWidthOptions = {ambiguousAsWide: !ambiguousIsNarrow};
830
1133
 
831
- function requireStringWidth () {
832
- if (hasRequiredStringWidth) return stringWidth.exports;
833
- hasRequiredStringWidth = 1;
834
- const stripAnsi = requireStripAnsi();
835
- const isFullwidthCodePoint = requireIsFullwidthCodePoint();
836
- const emojiRegex = requireEmojiRegex();
1134
+ for (const {segment: character} of segmenter.segment(string)) {
1135
+ const codePoint = character.codePointAt(0);
837
1136
 
838
- const stringWidth$1 = string => {
839
- if (typeof string !== 'string' || string.length === 0) {
840
- return 0;
1137
+ // Ignore control characters
1138
+ if (codePoint <= 0x1F || (codePoint >= 0x7F && codePoint <= 0x9F)) {
1139
+ continue;
841
1140
  }
842
1141
 
843
- string = stripAnsi(string);
844
-
845
- if (string.length === 0) {
846
- return 0;
1142
+ // Ignore zero-width characters
1143
+ if (
1144
+ (codePoint >= 0x20_0B && codePoint <= 0x20_0F) // Zero-width space, non-joiner, joiner, left-to-right mark, right-to-left mark
1145
+ || codePoint === 0xFE_FF // Zero-width no-break space
1146
+ ) {
1147
+ continue;
847
1148
  }
848
1149
 
849
- string = string.replace(emojiRegex(), ' ');
850
-
851
- let width = 0;
852
-
853
- for (let i = 0; i < string.length; i++) {
854
- const code = string.codePointAt(i);
855
-
856
- // Ignore control characters
857
- if (code <= 0x1F || (code >= 0x7F && code <= 0x9F)) {
858
- continue;
859
- }
1150
+ // Ignore combining characters
1151
+ if (
1152
+ (codePoint >= 0x3_00 && codePoint <= 0x3_6F) // Combining diacritical marks
1153
+ || (codePoint >= 0x1A_B0 && codePoint <= 0x1A_FF) // Combining diacritical marks extended
1154
+ || (codePoint >= 0x1D_C0 && codePoint <= 0x1D_FF) // Combining diacritical marks supplement
1155
+ || (codePoint >= 0x20_D0 && codePoint <= 0x20_FF) // Combining diacritical marks for symbols
1156
+ || (codePoint >= 0xFE_20 && codePoint <= 0xFE_2F) // Combining half marks
1157
+ ) {
1158
+ continue;
1159
+ }
860
1160
 
861
- // Ignore combining characters
862
- if (code >= 0x300 && code <= 0x36F) {
863
- continue;
864
- }
1161
+ // Ignore surrogate pairs
1162
+ if (codePoint >= 0xD8_00 && codePoint <= 0xDF_FF) {
1163
+ continue;
1164
+ }
865
1165
 
866
- // Surrogates
867
- if (code > 0xFFFF) {
868
- i++;
869
- }
1166
+ // Ignore variation selectors
1167
+ if (codePoint >= 0xFE_00 && codePoint <= 0xFE_0F) {
1168
+ continue;
1169
+ }
870
1170
 
871
- width += isFullwidthCodePoint(code) ? 2 : 1;
1171
+ // This covers some of the above cases, but we still keep them for performance reasons.
1172
+ if (defaultIgnorableCodePointRegex.test(character)) {
1173
+ continue;
872
1174
  }
873
1175
 
874
- return width;
875
- };
1176
+ // TODO: Use `/\p{RGI_Emoji}/v` when targeting Node.js 20.
1177
+ if (emojiRegex().test(character)) {
1178
+ width += 2;
1179
+ continue;
1180
+ }
876
1181
 
877
- stringWidth.exports = stringWidth$1;
878
- // TODO: remove this in the next major version
879
- stringWidth.exports.default = stringWidth$1;
880
- return stringWidth.exports;
881
- }
1182
+ width += eastAsianWidth(codePoint, eastAsianWidthOptions);
1183
+ }
1184
+
1185
+ return width;
1186
+ }
1187
+
1188
+ const ANSI_BACKGROUND_OFFSET = 10;
1189
+
1190
+ const wrapAnsi16 = (offset = 0) => code => `\u001B[${code + offset}m`;
1191
+
1192
+ const wrapAnsi256 = (offset = 0) => code => `\u001B[${38 + offset};5;${code}m`;
1193
+
1194
+ const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u001B[${38 + offset};2;${red};${green};${blue}m`;
1195
+
1196
+ const styles = {
1197
+ modifier: {
1198
+ reset: [0, 0],
1199
+ // 21 isn't widely supported and 22 does the same thing
1200
+ bold: [1, 22],
1201
+ dim: [2, 22],
1202
+ italic: [3, 23],
1203
+ underline: [4, 24],
1204
+ overline: [53, 55],
1205
+ inverse: [7, 27],
1206
+ hidden: [8, 28],
1207
+ strikethrough: [9, 29],
1208
+ },
1209
+ color: {
1210
+ black: [30, 39],
1211
+ red: [31, 39],
1212
+ green: [32, 39],
1213
+ yellow: [33, 39],
1214
+ blue: [34, 39],
1215
+ magenta: [35, 39],
1216
+ cyan: [36, 39],
1217
+ white: [37, 39],
1218
+
1219
+ // Bright color
1220
+ blackBright: [90, 39],
1221
+ gray: [90, 39], // Alias of `blackBright`
1222
+ grey: [90, 39], // Alias of `blackBright`
1223
+ redBright: [91, 39],
1224
+ greenBright: [92, 39],
1225
+ yellowBright: [93, 39],
1226
+ blueBright: [94, 39],
1227
+ magentaBright: [95, 39],
1228
+ cyanBright: [96, 39],
1229
+ whiteBright: [97, 39],
1230
+ },
1231
+ bgColor: {
1232
+ bgBlack: [40, 49],
1233
+ bgRed: [41, 49],
1234
+ bgGreen: [42, 49],
1235
+ bgYellow: [43, 49],
1236
+ bgBlue: [44, 49],
1237
+ bgMagenta: [45, 49],
1238
+ bgCyan: [46, 49],
1239
+ bgWhite: [47, 49],
1240
+
1241
+ // Bright color
1242
+ bgBlackBright: [100, 49],
1243
+ bgGray: [100, 49], // Alias of `bgBlackBright`
1244
+ bgGrey: [100, 49], // Alias of `bgBlackBright`
1245
+ bgRedBright: [101, 49],
1246
+ bgGreenBright: [102, 49],
1247
+ bgYellowBright: [103, 49],
1248
+ bgBlueBright: [104, 49],
1249
+ bgMagentaBright: [105, 49],
1250
+ bgCyanBright: [106, 49],
1251
+ bgWhiteBright: [107, 49],
1252
+ },
1253
+ };
882
1254
 
883
- var ansiStyles = {exports: {}};
1255
+ Object.keys(styles.modifier);
1256
+ const foregroundColorNames = Object.keys(styles.color);
1257
+ const backgroundColorNames = Object.keys(styles.bgColor);
1258
+ [...foregroundColorNames, ...backgroundColorNames];
884
1259
 
885
- ansiStyles.exports;
1260
+ function assembleStyles() {
1261
+ const codes = new Map();
886
1262
 
887
- var hasRequiredAnsiStyles;
1263
+ for (const [groupName, group] of Object.entries(styles)) {
1264
+ for (const [styleName, style] of Object.entries(group)) {
1265
+ styles[styleName] = {
1266
+ open: `\u001B[${style[0]}m`,
1267
+ close: `\u001B[${style[1]}m`,
1268
+ };
888
1269
 
889
- function requireAnsiStyles () {
890
- if (hasRequiredAnsiStyles) return ansiStyles.exports;
891
- hasRequiredAnsiStyles = 1;
892
- (function (module) {
1270
+ group[styleName] = styles[styleName];
893
1271
 
894
- const wrapAnsi16 = (fn, offset) => (...args) => {
895
- const code = fn(...args);
896
- return `\u001B[${code + offset}m`;
897
- };
1272
+ codes.set(style[0], style[1]);
1273
+ }
898
1274
 
899
- const wrapAnsi256 = (fn, offset) => (...args) => {
900
- const code = fn(...args);
901
- return `\u001B[${38 + offset};5;${code}m`;
902
- };
1275
+ Object.defineProperty(styles, groupName, {
1276
+ value: group,
1277
+ enumerable: false,
1278
+ });
1279
+ }
903
1280
 
904
- const wrapAnsi16m = (fn, offset) => (...args) => {
905
- const rgb = fn(...args);
906
- return `\u001B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
907
- };
1281
+ Object.defineProperty(styles, 'codes', {
1282
+ value: codes,
1283
+ enumerable: false,
1284
+ });
908
1285
 
909
- const ansi2ansi = n => n;
910
- const rgb2rgb = (r, g, b) => [r, g, b];
911
-
912
- const setLazyProperty = (object, property, get) => {
913
- Object.defineProperty(object, property, {
914
- get: () => {
915
- const value = get();
916
-
917
- Object.defineProperty(object, property, {
918
- value,
919
- enumerable: true,
920
- configurable: true
921
- });
922
-
923
- return value;
924
- },
925
- enumerable: true,
926
- configurable: true
927
- });
928
- };
1286
+ styles.color.close = '\u001B[39m';
1287
+ styles.bgColor.close = '\u001B[49m';
1288
+
1289
+ styles.color.ansi = wrapAnsi16();
1290
+ styles.color.ansi256 = wrapAnsi256();
1291
+ styles.color.ansi16m = wrapAnsi16m();
1292
+ styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
1293
+ styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
1294
+ styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
1295
+
1296
+ // From https://github.com/Qix-/color-convert/blob/3f0e0d4e92e235796ccb17f6e85c72094a651f49/conversions.js
1297
+ Object.defineProperties(styles, {
1298
+ rgbToAnsi256: {
1299
+ value(red, green, blue) {
1300
+ // We use the extended greyscale palette here, with the exception of
1301
+ // black and white. normal palette only has 4 greyscale shades.
1302
+ if (red === green && green === blue) {
1303
+ if (red < 8) {
1304
+ return 16;
1305
+ }
1306
+
1307
+ if (red > 248) {
1308
+ return 231;
1309
+ }
1310
+
1311
+ return Math.round(((red - 8) / 247) * 24) + 232;
1312
+ }
929
1313
 
930
- /** @type {typeof import('color-convert')} */
931
- let colorConvert;
932
- const makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
933
- if (colorConvert === undefined) {
934
- colorConvert = requireColorConvert();
935
- }
1314
+ return 16
1315
+ + (36 * Math.round(red / 255 * 5))
1316
+ + (6 * Math.round(green / 255 * 5))
1317
+ + Math.round(blue / 255 * 5);
1318
+ },
1319
+ enumerable: false,
1320
+ },
1321
+ hexToRgb: {
1322
+ value(hex) {
1323
+ const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
1324
+ if (!matches) {
1325
+ return [0, 0, 0];
1326
+ }
936
1327
 
937
- const offset = isBackground ? 10 : 0;
938
- const styles = {};
1328
+ let [colorString] = matches;
939
1329
 
940
- for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
941
- const name = sourceSpace === 'ansi16' ? 'ansi' : sourceSpace;
942
- if (sourceSpace === targetSpace) {
943
- styles[name] = wrap(identity, offset);
944
- } else if (typeof suite === 'object') {
945
- styles[name] = wrap(suite[targetSpace], offset);
1330
+ if (colorString.length === 3) {
1331
+ colorString = [...colorString].map(character => character + character).join('');
946
1332
  }
947
- }
948
1333
 
949
- return styles;
950
- };
1334
+ const integer = Number.parseInt(colorString, 16);
1335
+
1336
+ return [
1337
+ /* eslint-disable no-bitwise */
1338
+ (integer >> 16) & 0xFF,
1339
+ (integer >> 8) & 0xFF,
1340
+ integer & 0xFF,
1341
+ /* eslint-enable no-bitwise */
1342
+ ];
1343
+ },
1344
+ enumerable: false,
1345
+ },
1346
+ hexToAnsi256: {
1347
+ value: hex => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
1348
+ enumerable: false,
1349
+ },
1350
+ ansi256ToAnsi: {
1351
+ value(code) {
1352
+ if (code < 8) {
1353
+ return 30 + code;
1354
+ }
951
1355
 
952
- function assembleStyles() {
953
- const codes = new Map();
954
- const styles = {
955
- modifier: {
956
- reset: [0, 0],
957
- // 21 isn't widely supported and 22 does the same thing
958
- bold: [1, 22],
959
- dim: [2, 22],
960
- italic: [3, 23],
961
- underline: [4, 24],
962
- inverse: [7, 27],
963
- hidden: [8, 28],
964
- strikethrough: [9, 29]
965
- },
966
- color: {
967
- black: [30, 39],
968
- red: [31, 39],
969
- green: [32, 39],
970
- yellow: [33, 39],
971
- blue: [34, 39],
972
- magenta: [35, 39],
973
- cyan: [36, 39],
974
- white: [37, 39],
975
-
976
- // Bright color
977
- blackBright: [90, 39],
978
- redBright: [91, 39],
979
- greenBright: [92, 39],
980
- yellowBright: [93, 39],
981
- blueBright: [94, 39],
982
- magentaBright: [95, 39],
983
- cyanBright: [96, 39],
984
- whiteBright: [97, 39]
985
- },
986
- bgColor: {
987
- bgBlack: [40, 49],
988
- bgRed: [41, 49],
989
- bgGreen: [42, 49],
990
- bgYellow: [43, 49],
991
- bgBlue: [44, 49],
992
- bgMagenta: [45, 49],
993
- bgCyan: [46, 49],
994
- bgWhite: [47, 49],
995
-
996
- // Bright color
997
- bgBlackBright: [100, 49],
998
- bgRedBright: [101, 49],
999
- bgGreenBright: [102, 49],
1000
- bgYellowBright: [103, 49],
1001
- bgBlueBright: [104, 49],
1002
- bgMagentaBright: [105, 49],
1003
- bgCyanBright: [106, 49],
1004
- bgWhiteBright: [107, 49]
1356
+ if (code < 16) {
1357
+ return 90 + (code - 8);
1005
1358
  }
1006
- };
1007
1359
 
1008
- // Alias bright black as gray (and grey)
1009
- styles.color.gray = styles.color.blackBright;
1010
- styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
1011
- styles.color.grey = styles.color.blackBright;
1012
- styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
1360
+ let red;
1361
+ let green;
1362
+ let blue;
1013
1363
 
1014
- for (const [groupName, group] of Object.entries(styles)) {
1015
- for (const [styleName, style] of Object.entries(group)) {
1016
- styles[styleName] = {
1017
- open: `\u001B[${style[0]}m`,
1018
- close: `\u001B[${style[1]}m`
1019
- };
1364
+ if (code >= 232) {
1365
+ red = (((code - 232) * 10) + 8) / 255;
1366
+ green = red;
1367
+ blue = red;
1368
+ } else {
1369
+ code -= 16;
1020
1370
 
1021
- group[styleName] = styles[styleName];
1371
+ const remainder = code % 36;
1022
1372
 
1023
- codes.set(style[0], style[1]);
1373
+ red = Math.floor(code / 36) / 5;
1374
+ green = Math.floor(remainder / 6) / 5;
1375
+ blue = (remainder % 6) / 5;
1024
1376
  }
1025
1377
 
1026
- Object.defineProperty(styles, groupName, {
1027
- value: group,
1028
- enumerable: false
1029
- });
1030
- }
1378
+ const value = Math.max(red, green, blue) * 2;
1031
1379
 
1032
- Object.defineProperty(styles, 'codes', {
1033
- value: codes,
1034
- enumerable: false
1035
- });
1380
+ if (value === 0) {
1381
+ return 30;
1382
+ }
1036
1383
 
1037
- styles.color.close = '\u001B[39m';
1038
- styles.bgColor.close = '\u001B[49m';
1384
+ // eslint-disable-next-line no-bitwise
1385
+ let result = 30 + ((Math.round(blue) << 2) | (Math.round(green) << 1) | Math.round(red));
1039
1386
 
1040
- setLazyProperty(styles.color, 'ansi', () => makeDynamicStyles(wrapAnsi16, 'ansi16', ansi2ansi, false));
1041
- setLazyProperty(styles.color, 'ansi256', () => makeDynamicStyles(wrapAnsi256, 'ansi256', ansi2ansi, false));
1042
- setLazyProperty(styles.color, 'ansi16m', () => makeDynamicStyles(wrapAnsi16m, 'rgb', rgb2rgb, false));
1043
- setLazyProperty(styles.bgColor, 'ansi', () => makeDynamicStyles(wrapAnsi16, 'ansi16', ansi2ansi, true));
1044
- setLazyProperty(styles.bgColor, 'ansi256', () => makeDynamicStyles(wrapAnsi256, 'ansi256', ansi2ansi, true));
1045
- setLazyProperty(styles.bgColor, 'ansi16m', () => makeDynamicStyles(wrapAnsi16m, 'rgb', rgb2rgb, true));
1387
+ if (value === 2) {
1388
+ result += 60;
1389
+ }
1046
1390
 
1047
- return styles;
1048
- }
1391
+ return result;
1392
+ },
1393
+ enumerable: false,
1394
+ },
1395
+ rgbToAnsi: {
1396
+ value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
1397
+ enumerable: false,
1398
+ },
1399
+ hexToAnsi: {
1400
+ value: hex => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
1401
+ enumerable: false,
1402
+ },
1403
+ });
1049
1404
 
1050
- // Make the export immutable
1051
- Object.defineProperty(module, 'exports', {
1052
- enumerable: true,
1053
- get: assembleStyles
1054
- });
1055
- } (ansiStyles));
1056
- return ansiStyles.exports;
1405
+ return styles;
1057
1406
  }
1058
1407
 
1059
- var wrapAnsi_1;
1060
- var hasRequiredWrapAnsi;
1408
+ const ansiStyles = assembleStyles();
1061
1409
 
1062
- function requireWrapAnsi () {
1063
- if (hasRequiredWrapAnsi) return wrapAnsi_1;
1064
- hasRequiredWrapAnsi = 1;
1065
- const stringWidth = requireStringWidth();
1066
- const stripAnsi = requireStripAnsi();
1067
- const ansiStyles = requireAnsiStyles();
1410
+ const ESCAPES = new Set([
1411
+ '\u001B',
1412
+ '\u009B',
1413
+ ]);
1068
1414
 
1069
- const ESCAPES = new Set([
1070
- '\u001B',
1071
- '\u009B'
1072
- ]);
1415
+ const END_CODE = 39;
1416
+ const ANSI_ESCAPE_BELL = '\u0007';
1417
+ const ANSI_CSI = '[';
1418
+ const ANSI_OSC = ']';
1419
+ const ANSI_SGR_TERMINATOR = 'm';
1420
+ const ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
1073
1421
 
1074
- const END_CODE = 39;
1422
+ const wrapAnsiCode = code => `${ESCAPES.values().next().value}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`;
1423
+ const wrapAnsiHyperlink = url => `${ESCAPES.values().next().value}${ANSI_ESCAPE_LINK}${url}${ANSI_ESCAPE_BELL}`;
1075
1424
 
1076
- const wrapAnsi = code => `${ESCAPES.values().next().value}[${code}m`;
1425
+ // Calculate the length of words split on ' ', ignoring
1426
+ // the extra characters added by ansi escape codes
1427
+ const wordLengths = string => string.split(' ').map(character => stringWidth(character));
1077
1428
 
1078
- // Calculate the length of words split on ' ', ignoring
1079
- // the extra characters added by ansi escape codes
1080
- const wordLengths = string => string.split(' ').map(character => stringWidth(character));
1429
+ // Wrap a long word across multiple rows
1430
+ // Ansi escape codes do not count towards length
1431
+ const wrapWord = (rows, word, columns) => {
1432
+ const characters = [...word];
1081
1433
 
1082
- // Wrap a long word across multiple rows
1083
- // Ansi escape codes do not count towards length
1084
- const wrapWord = (rows, word, columns) => {
1085
- const characters = [...word];
1434
+ let isInsideEscape = false;
1435
+ let isInsideLinkEscape = false;
1436
+ let visible = stringWidth(stripAnsi(rows.at(-1)));
1086
1437
 
1087
- let isInsideEscape = false;
1088
- let visible = stringWidth(stripAnsi(rows[rows.length - 1]));
1438
+ for (const [index, character] of characters.entries()) {
1439
+ const characterLength = stringWidth(character);
1089
1440
 
1090
- for (const [index, character] of characters.entries()) {
1091
- const characterLength = stringWidth(character);
1441
+ if (visible + characterLength <= columns) {
1442
+ rows[rows.length - 1] += character;
1443
+ } else {
1444
+ rows.push(character);
1445
+ visible = 0;
1446
+ }
1092
1447
 
1093
- if (visible + characterLength <= columns) {
1094
- rows[rows.length - 1] += character;
1095
- } else {
1096
- rows.push(character);
1097
- visible = 0;
1098
- }
1448
+ if (ESCAPES.has(character)) {
1449
+ isInsideEscape = true;
1099
1450
 
1100
- if (ESCAPES.has(character)) {
1101
- isInsideEscape = true;
1102
- } else if (isInsideEscape && character === 'm') {
1103
- isInsideEscape = false;
1104
- continue;
1105
- }
1451
+ const ansiEscapeLinkCandidate = characters.slice(index + 1, index + 1 + ANSI_ESCAPE_LINK.length).join('');
1452
+ isInsideLinkEscape = ansiEscapeLinkCandidate === ANSI_ESCAPE_LINK;
1453
+ }
1106
1454
 
1107
- if (isInsideEscape) {
1108
- continue;
1455
+ if (isInsideEscape) {
1456
+ if (isInsideLinkEscape) {
1457
+ if (character === ANSI_ESCAPE_BELL) {
1458
+ isInsideEscape = false;
1459
+ isInsideLinkEscape = false;
1460
+ }
1461
+ } else if (character === ANSI_SGR_TERMINATOR) {
1462
+ isInsideEscape = false;
1109
1463
  }
1110
1464
 
1111
- visible += characterLength;
1112
-
1113
- if (visible === columns && index < characters.length - 1) {
1114
- rows.push('');
1115
- visible = 0;
1116
- }
1465
+ continue;
1117
1466
  }
1118
1467
 
1119
- // It's possible that the last row we copy over is only
1120
- // ansi escape characters, handle this edge-case
1121
- if (!visible && rows[rows.length - 1].length > 0 && rows.length > 1) {
1122
- rows[rows.length - 2] += rows.pop();
1468
+ visible += characterLength;
1469
+
1470
+ if (visible === columns && index < characters.length - 1) {
1471
+ rows.push('');
1472
+ visible = 0;
1123
1473
  }
1124
- };
1474
+ }
1125
1475
 
1126
- // Trims spaces from a string ignoring invisible sequences
1127
- const stringVisibleTrimSpacesRight = str => {
1128
- const words = str.split(' ');
1129
- let last = words.length;
1476
+ // It's possible that the last row we copy over is only
1477
+ // ansi escape characters, handle this edge-case
1478
+ if (!visible && rows.at(-1).length > 0 && rows.length > 1) {
1479
+ rows[rows.length - 2] += rows.pop();
1480
+ }
1481
+ };
1130
1482
 
1131
- while (last > 0) {
1132
- if (stringWidth(words[last - 1]) > 0) {
1133
- break;
1134
- }
1483
+ // Trims spaces from a string ignoring invisible sequences
1484
+ const stringVisibleTrimSpacesRight = string => {
1485
+ const words = string.split(' ');
1486
+ let last = words.length;
1135
1487
 
1136
- last--;
1488
+ while (last > 0) {
1489
+ if (stringWidth(words[last - 1]) > 0) {
1490
+ break;
1137
1491
  }
1138
1492
 
1139
- if (last === words.length) {
1140
- return str;
1141
- }
1493
+ last--;
1494
+ }
1142
1495
 
1143
- return words.slice(0, last).join(' ') + words.slice(last).join('');
1144
- };
1496
+ if (last === words.length) {
1497
+ return string;
1498
+ }
1145
1499
 
1146
- // The wrap-ansi module can be invoked in either 'hard' or 'soft' wrap mode
1147
- //
1148
- // 'hard' will never allow a string to take up more than columns characters
1149
- //
1150
- // 'soft' allows long words to expand past the column length
1151
- const exec = (string, columns, options = {}) => {
1152
- if (options.trim !== false && string.trim() === '') {
1153
- return '';
1154
- }
1500
+ return words.slice(0, last).join(' ') + words.slice(last).join('');
1501
+ };
1155
1502
 
1156
- let pre = '';
1157
- let ret = '';
1158
- let escapeCode;
1503
+ // The wrap-ansi module can be invoked in either 'hard' or 'soft' wrap mode.
1504
+ //
1505
+ // 'hard' will never allow a string to take up more than columns characters.
1506
+ //
1507
+ // 'soft' allows long words to expand past the column length.
1508
+ const exec = (string, columns, options = {}) => {
1509
+ if (options.trim !== false && string.trim() === '') {
1510
+ return '';
1511
+ }
1159
1512
 
1160
- const lengths = wordLengths(string);
1161
- let rows = [''];
1513
+ let returnValue = '';
1514
+ let escapeCode;
1515
+ let escapeUrl;
1162
1516
 
1163
- for (const [index, word] of string.split(' ').entries()) {
1164
- if (options.trim !== false) {
1165
- rows[rows.length - 1] = rows[rows.length - 1].trimLeft();
1166
- }
1517
+ const lengths = wordLengths(string);
1518
+ let rows = [''];
1167
1519
 
1168
- let rowLength = stringWidth(rows[rows.length - 1]);
1520
+ for (const [index, word] of string.split(' ').entries()) {
1521
+ if (options.trim !== false) {
1522
+ rows[rows.length - 1] = rows.at(-1).trimStart();
1523
+ }
1169
1524
 
1170
- if (index !== 0) {
1171
- if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
1172
- // If we start with a new word but the current row length equals the length of the columns, add a new row
1173
- rows.push('');
1174
- rowLength = 0;
1175
- }
1525
+ let rowLength = stringWidth(rows.at(-1));
1176
1526
 
1177
- if (rowLength > 0 || options.trim === false) {
1178
- rows[rows.length - 1] += ' ';
1179
- rowLength++;
1180
- }
1527
+ if (index !== 0) {
1528
+ if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
1529
+ // If we start with a new word but the current row length equals the length of the columns, add a new row
1530
+ rows.push('');
1531
+ rowLength = 0;
1181
1532
  }
1182
1533
 
1183
- // In 'hard' wrap mode, the length of a line is never allowed to extend past 'columns'
1184
- if (options.hard && lengths[index] > columns) {
1185
- const remainingColumns = (columns - rowLength);
1186
- const breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns);
1187
- const breaksStartingNextLine = Math.floor((lengths[index] - 1) / columns);
1188
- if (breaksStartingNextLine < breaksStartingThisLine) {
1189
- rows.push('');
1190
- }
1191
-
1192
- wrapWord(rows, word, columns);
1193
- continue;
1534
+ if (rowLength > 0 || options.trim === false) {
1535
+ rows[rows.length - 1] += ' ';
1536
+ rowLength++;
1194
1537
  }
1538
+ }
1195
1539
 
1196
- if (rowLength + lengths[index] > columns && rowLength > 0 && lengths[index] > 0) {
1197
- if (options.wordWrap === false && rowLength < columns) {
1198
- wrapWord(rows, word, columns);
1199
- continue;
1200
- }
1201
-
1540
+ // In 'hard' wrap mode, the length of a line is never allowed to extend past 'columns'
1541
+ if (options.hard && lengths[index] > columns) {
1542
+ const remainingColumns = (columns - rowLength);
1543
+ const breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns);
1544
+ const breaksStartingNextLine = Math.floor((lengths[index] - 1) / columns);
1545
+ if (breaksStartingNextLine < breaksStartingThisLine) {
1202
1546
  rows.push('');
1203
1547
  }
1204
1548
 
1205
- if (rowLength + lengths[index] > columns && options.wordWrap === false) {
1549
+ wrapWord(rows, word, columns);
1550
+ continue;
1551
+ }
1552
+
1553
+ if (rowLength + lengths[index] > columns && rowLength > 0 && lengths[index] > 0) {
1554
+ if (options.wordWrap === false && rowLength < columns) {
1206
1555
  wrapWord(rows, word, columns);
1207
1556
  continue;
1208
1557
  }
1209
1558
 
1210
- rows[rows.length - 1] += word;
1559
+ rows.push('');
1211
1560
  }
1212
1561
 
1213
- if (options.trim !== false) {
1214
- rows = rows.map(stringVisibleTrimSpacesRight);
1562
+ if (rowLength + lengths[index] > columns && options.wordWrap === false) {
1563
+ wrapWord(rows, word, columns);
1564
+ continue;
1215
1565
  }
1216
1566
 
1217
- pre = rows.join('\n');
1567
+ rows[rows.length - 1] += word;
1568
+ }
1569
+
1570
+ if (options.trim !== false) {
1571
+ rows = rows.map(row => stringVisibleTrimSpacesRight(row));
1572
+ }
1573
+
1574
+ const preString = rows.join('\n');
1575
+ const pre = [...preString];
1576
+
1577
+ // We need to keep a separate index as `String#slice()` works on Unicode code units, while `pre` is an array of codepoints.
1578
+ let preStringIndex = 0;
1218
1579
 
1219
- for (const [index, character] of [...pre].entries()) {
1220
- ret += character;
1580
+ for (const [index, character] of pre.entries()) {
1581
+ returnValue += character;
1221
1582
 
1222
- if (ESCAPES.has(character)) {
1223
- const code = parseFloat(/\d[^m]*/.exec(pre.slice(index, index + 4)));
1224
- escapeCode = code === END_CODE ? null : code;
1583
+ if (ESCAPES.has(character)) {
1584
+ const {groups} = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`).exec(preString.slice(preStringIndex)) || {groups: {}};
1585
+ if (groups.code !== undefined) {
1586
+ const code = Number.parseFloat(groups.code);
1587
+ escapeCode = code === END_CODE ? undefined : code;
1588
+ } else if (groups.uri !== undefined) {
1589
+ escapeUrl = groups.uri.length === 0 ? undefined : groups.uri;
1225
1590
  }
1591
+ }
1592
+
1593
+ const code = ansiStyles.codes.get(Number(escapeCode));
1226
1594
 
1227
- const code = ansiStyles.codes.get(Number(escapeCode));
1595
+ if (pre[index + 1] === '\n') {
1596
+ if (escapeUrl) {
1597
+ returnValue += wrapAnsiHyperlink('');
1598
+ }
1228
1599
 
1229
1600
  if (escapeCode && code) {
1230
- if (pre[index + 1] === '\n') {
1231
- ret += wrapAnsi(code);
1232
- } else if (character === '\n') {
1233
- ret += wrapAnsi(escapeCode);
1234
- }
1601
+ returnValue += wrapAnsiCode(code);
1602
+ }
1603
+ } else if (character === '\n') {
1604
+ if (escapeCode && code) {
1605
+ returnValue += wrapAnsiCode(escapeCode);
1606
+ }
1607
+
1608
+ if (escapeUrl) {
1609
+ returnValue += wrapAnsiHyperlink(escapeUrl);
1235
1610
  }
1236
1611
  }
1237
1612
 
1238
- return ret;
1239
- };
1613
+ preStringIndex += character.length;
1614
+ }
1240
1615
 
1241
- // For each newline, invoke the method separately
1242
- wrapAnsi_1 = (string, columns, options) => {
1243
- return String(string)
1244
- .normalize()
1245
- .replace(/\r\n/g, '\n')
1246
- .split('\n')
1247
- .map(line => exec(line, columns, options))
1248
- .join('\n');
1249
- };
1250
- return wrapAnsi_1;
1251
- }
1616
+ return returnValue;
1617
+ };
1252
1618
 
1253
- var wrapAnsiExports = requireWrapAnsi();
1254
- var wrapAnsi = /*@__PURE__*/getDefaultExportFromCjs(wrapAnsiExports);
1619
+ // For each newline, invoke the method separately
1620
+ function wrapAnsi(string, columns, options) {
1621
+ return String(string)
1622
+ .normalize()
1623
+ .replaceAll('\r\n', '\n')
1624
+ .split('\n')
1625
+ .map(line => exec(line, columns, options))
1626
+ .join('\n');
1627
+ }
1255
1628
 
1256
1629
  /**
1257
1630
  * Force line returns at specific width. This function is ANSI code friendly and it'll
@@ -1671,7 +2044,7 @@ function getCallSites() {
1671
2044
  result = callSitesWithoutCurrent;
1672
2045
  return callSitesWithoutCurrent;
1673
2046
  };
1674
- // eslint-disable-next-line @typescript-eslint/no-unused-expressions
2047
+ // oxlint-disable-next-line no-unused-expressions
1675
2048
  new Error().stack;
1676
2049
  }
1677
2050
  catch {
@@ -1776,7 +2149,7 @@ function createPrompt(view) {
1776
2149
  * Used to space/separate choices group
1777
2150
  */
1778
2151
  class Separator {
1779
- separator = colors.dim(Array.from({ length: 15 }).join(figures.line));
2152
+ separator = styleText('dim', Array.from({ length: 15 }).join(figures.line));
1780
2153
  type = 'separator';
1781
2154
  constructor(separator) {
1782
2155
  if (separator) {
@@ -1793,19 +2166,18 @@ class Separator {
1793
2166
 
1794
2167
  const checkboxTheme = {
1795
2168
  icon: {
1796
- checked: colors.green(figures.circleFilled),
2169
+ checked: styleText('green', figures.circleFilled),
1797
2170
  unchecked: figures.circle,
1798
2171
  cursor: figures.pointer,
1799
2172
  },
1800
2173
  style: {
1801
- disabledChoice: (text) => colors.dim(`- ${text}`),
2174
+ disabledChoice: (text) => styleText('dim', `- ${text}`),
1802
2175
  renderSelectedChoices: (selectedChoices) => selectedChoices.map((choice) => choice.short).join(', '),
1803
- description: (text) => colors.cyan(text),
2176
+ description: (text) => styleText('cyan', text),
1804
2177
  keysHelpTip: (keys) => keys
1805
- .map(([key, action]) => `${colors.bold(key)} ${colors.dim(action)}`)
1806
- .join(colors.dim(' • ')),
2178
+ .map(([key, action]) => `${styleText('bold', key)} ${styleText('dim', action)}`)
2179
+ .join(styleText('dim', ' • ')),
1807
2180
  },
1808
- helpMode: 'always',
1809
2181
  keybindings: [],
1810
2182
  };
1811
2183
  function isSelectable$2(item) {
@@ -1852,9 +2224,7 @@ function normalizeChoices$4(choices) {
1852
2224
  });
1853
2225
  }
1854
2226
  var checkbox = createPrompt((config, done) => {
1855
- const {
1856
- // eslint-disable-next-line @typescript-eslint/no-deprecated
1857
- instructions, pageSize = 7, loop = true, required, validate = () => true, } = config;
2227
+ const { pageSize = 7, loop = true, required, validate = () => true } = config;
1858
2228
  const shortcuts = { all: 'a', invert: 'i', ...config.shortcuts };
1859
2229
  const theme = makeTheme(checkboxTheme, config.theme);
1860
2230
  const { keybindings } = theme;
@@ -1956,25 +2326,16 @@ var checkbox = createPrompt((config, done) => {
1956
2326
  const answer = theme.style.answer(theme.style.renderSelectedChoices(selection, items));
1957
2327
  return [prefix, message, answer].filter(Boolean).join(' ');
1958
2328
  }
1959
- let helpLine;
1960
- // eslint-disable-next-line @typescript-eslint/no-deprecated
1961
- if (theme.helpMode !== 'never' && instructions !== false) {
1962
- if (typeof instructions === 'string') {
1963
- helpLine = instructions;
1964
- }
1965
- else {
1966
- const keys = [
1967
- ['↑↓', 'navigate'],
1968
- ['space', 'select'],
1969
- ];
1970
- if (shortcuts.all)
1971
- keys.push([shortcuts.all, 'all']);
1972
- if (shortcuts.invert)
1973
- keys.push([shortcuts.invert, 'invert']);
1974
- keys.push(['⏎', 'submit']);
1975
- helpLine = theme.style.keysHelpTip(keys);
1976
- }
1977
- }
2329
+ const keys = [
2330
+ ['↑↓', 'navigate'],
2331
+ ['space', 'select'],
2332
+ ];
2333
+ if (shortcuts.all)
2334
+ keys.push([shortcuts.all, 'all']);
2335
+ if (shortcuts.invert)
2336
+ keys.push([shortcuts.invert, 'invert']);
2337
+ keys.push(['', 'submit']);
2338
+ const helpLine = theme.style.keysHelpTip(keys);
1978
2339
  const lines = [
1979
2340
  [prefix, message].filter(Boolean).join(' '),
1980
2341
  page,
@@ -1998,10 +2359,10 @@ var hasRequiredNode;
1998
2359
  function requireNode () {
1999
2360
  if (hasRequiredNode) return node.exports;
2000
2361
  hasRequiredNode = 1;
2001
- (function (module, exports) {
2002
- Object.defineProperty(exports, "__esModule", { value: true });
2362
+ (function (module, exports$1) {
2363
+ Object.defineProperty(exports$1, "__esModule", { value: true });
2003
2364
  let fsModule;
2004
- exports.default = () => {
2365
+ exports$1.default = () => {
2005
2366
  {
2006
2367
  fsModule = fsModule ? fsModule : i;
2007
2368
  return fsModule;
@@ -3536,7 +3897,7 @@ var hasRequiredLib$1;
3536
3897
  function requireLib$1 () {
3537
3898
  if (hasRequiredLib$1) return lib$1;
3538
3899
  hasRequiredLib$1 = 1;
3539
- (function (exports) {
3900
+ (function (exports$1) {
3540
3901
  var __createBinding = (lib$1 && lib$1.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3541
3902
  if (k2 === undefined) k2 = k;
3542
3903
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -3573,8 +3934,8 @@ function requireLib$1 () {
3573
3934
  var __importDefault = (lib$1 && lib$1.__importDefault) || function (mod) {
3574
3935
  return (mod && mod.__esModule) ? mod : { "default": mod };
3575
3936
  };
3576
- Object.defineProperty(exports, "__esModule", { value: true });
3577
- exports.detectFileSync = exports.detectFile = exports.analyse = exports.detect = void 0;
3937
+ Object.defineProperty(exports$1, "__esModule", { value: true });
3938
+ exports$1.detectFileSync = exports$1.detectFile = exports$1.analyse = exports$1.detect = void 0;
3578
3939
  const node_1 = __importDefault(requireNode());
3579
3940
  const ascii_1 = __importDefault(requireAscii());
3580
3941
  const utf8_1 = __importDefault(requireUtf8());
@@ -3610,10 +3971,10 @@ function requireLib$1 () {
3610
3971
  new ascii_1.default(),
3611
3972
  ];
3612
3973
  const detect = (buffer) => {
3613
- const matches = (0, exports.analyse)(buffer);
3974
+ const matches = (0, exports$1.analyse)(buffer);
3614
3975
  return matches.length > 0 ? matches[0].name : null;
3615
3976
  };
3616
- exports.detect = detect;
3977
+ exports$1.detect = detect;
3617
3978
  const analyse = (buffer) => {
3618
3979
  if (!(0, utils_1.isByteArray)(buffer)) {
3619
3980
  throw new Error('Input must be a byte array, e.g. Buffer or Uint8Array');
@@ -3650,7 +4011,7 @@ function requireLib$1 () {
3650
4011
  });
3651
4012
  return matches;
3652
4013
  };
3653
- exports.analyse = analyse;
4014
+ exports$1.analyse = analyse;
3654
4015
  const detectFile = (filepath, opts = {}) => new Promise((resolve, reject) => {
3655
4016
  let fd;
3656
4017
  const fs = (0, node_1.default)();
@@ -3661,38 +4022,53 @@ function requireLib$1 () {
3661
4022
  if (err) {
3662
4023
  reject(err);
3663
4024
  }
4025
+ else if (buffer) {
4026
+ resolve((0, exports$1.detect)(buffer));
4027
+ }
3664
4028
  else {
3665
- resolve((0, exports.detect)(buffer));
4029
+ reject(new Error('No error and no buffer received'));
3666
4030
  }
3667
4031
  };
3668
- if (opts && opts.sampleSize) {
4032
+ const sampleSize = (opts === null || opts === void 0 ? void 0 : opts.sampleSize) || 0;
4033
+ if (sampleSize > 0) {
3669
4034
  fd = fs.openSync(filepath, 'r');
3670
- const sample = Buffer.allocUnsafe(opts.sampleSize);
3671
- fs.read(fd, sample, 0, opts.sampleSize, opts.offset, (err) => {
3672
- handler(err, sample);
4035
+ let sample = Buffer.allocUnsafe(sampleSize);
4036
+ fs.read(fd, sample, 0, sampleSize, opts.offset, (err, bytesRead) => {
4037
+ if (err) {
4038
+ handler(err, null);
4039
+ }
4040
+ else {
4041
+ if (bytesRead < sampleSize) {
4042
+ sample = sample.subarray(0, bytesRead);
4043
+ }
4044
+ handler(null, sample);
4045
+ }
3673
4046
  });
3674
4047
  return;
3675
4048
  }
3676
4049
  fs.readFile(filepath, handler);
3677
4050
  });
3678
- exports.detectFile = detectFile;
4051
+ exports$1.detectFile = detectFile;
3679
4052
  const detectFileSync = (filepath, opts = {}) => {
3680
4053
  const fs = (0, node_1.default)();
3681
4054
  if (opts && opts.sampleSize) {
3682
4055
  const fd = fs.openSync(filepath, 'r');
3683
- const sample = Buffer.allocUnsafe(opts.sampleSize);
3684
- fs.readSync(fd, sample, 0, opts.sampleSize, opts.offset);
4056
+ let sample = Buffer.allocUnsafe(opts.sampleSize);
4057
+ const bytesRead = fs.readSync(fd, sample, 0, opts.sampleSize, opts.offset);
4058
+ if (bytesRead < opts.sampleSize) {
4059
+ sample = sample.subarray(0, bytesRead);
4060
+ }
3685
4061
  fs.closeSync(fd);
3686
- return (0, exports.detect)(sample);
4062
+ return (0, exports$1.detect)(sample);
3687
4063
  }
3688
- return (0, exports.detect)(fs.readFileSync(filepath));
4064
+ return (0, exports$1.detect)(fs.readFileSync(filepath));
3689
4065
  };
3690
- exports.detectFileSync = detectFileSync;
3691
- exports.default = {
3692
- analyse: exports.analyse,
3693
- detect: exports.detect,
3694
- detectFileSync: exports.detectFileSync,
3695
- detectFile: exports.detectFile,
4066
+ exports$1.detectFileSync = detectFileSync;
4067
+ exports$1.default = {
4068
+ analyse: exports$1.analyse,
4069
+ detect: exports$1.detect,
4070
+ detectFileSync: exports$1.detectFileSync,
4071
+ detectFile: exports$1.detectFile,
3696
4072
  };
3697
4073
 
3698
4074
  } (lib$1));
@@ -14640,7 +15016,7 @@ var hasRequiredEncodings;
14640
15016
  function requireEncodings () {
14641
15017
  if (hasRequiredEncodings) return encodings;
14642
15018
  hasRequiredEncodings = 1;
14643
- (function (exports) {
15019
+ (function (exports$1) {
14644
15020
 
14645
15021
  var mergeModules = requireMergeExports();
14646
15022
 
@@ -14661,7 +15037,7 @@ function requireEncodings () {
14661
15037
  // Put all encoding/alias/codec definitions to single object and export it.
14662
15038
  for (var i = 0; i < modules.length; i++) {
14663
15039
  var module = modules[i];
14664
- mergeModules(exports, module);
15040
+ mergeModules(exports$1, module);
14665
15041
  }
14666
15042
  } (encodings));
14667
15043
  return encodings;
@@ -15203,7 +15579,7 @@ const editorTheme = {
15203
15579
  validationFailureMode: 'keep',
15204
15580
  };
15205
15581
  var editor = createPrompt((config, done) => {
15206
- const { waitForUseInput = true, file: { postfix = config.postfix ?? '.txt', ...fileProps } = {}, validate = () => true, } = config;
15582
+ const { waitForUserInput = true, file: { postfix = config.postfix ?? '.txt', ...fileProps } = {}, validate = () => true, } = config;
15207
15583
  const theme = makeTheme(editorTheme, config.theme);
15208
15584
  const [status, setStatus] = useState('idle');
15209
15585
  const [value = '', setValue] = useState(config.default);
@@ -15243,7 +15619,7 @@ var editor = createPrompt((config, done) => {
15243
15619
  });
15244
15620
  }
15245
15621
  useEffect((rl) => {
15246
- if (!waitForUseInput) {
15622
+ if (!waitForUserInput) {
15247
15623
  startEditor(rl);
15248
15624
  }
15249
15625
  }, []);
@@ -15324,13 +15700,26 @@ const inputTheme = {
15324
15700
  validationFailureMode: 'keep',
15325
15701
  };
15326
15702
  var input = createPrompt((config, done) => {
15327
- const { required, validate = () => true, prefill = 'tab' } = config;
15703
+ const { prefill = 'tab' } = config;
15328
15704
  const theme = makeTheme(inputTheme, config.theme);
15329
15705
  const [status, setStatus] = useState('idle');
15330
15706
  const [defaultValue = '', setDefaultValue] = useState(config.default);
15331
15707
  const [errorMsg, setError] = useState();
15332
15708
  const [value, setValue] = useState('');
15333
15709
  const prefix = usePrefix({ status, theme });
15710
+ async function validate(value) {
15711
+ const { required, pattern, patternError = 'Invalid input' } = config;
15712
+ if (required && !value) {
15713
+ return 'You must provide a value';
15714
+ }
15715
+ if (pattern && !pattern.test(value)) {
15716
+ return patternError;
15717
+ }
15718
+ if (typeof config.validate === 'function') {
15719
+ return (await config.validate(value)) || 'You must provide a valid value';
15720
+ }
15721
+ return true;
15722
+ }
15334
15723
  useKeypress(async (key, rl) => {
15335
15724
  // Ignore keypress while our prompt is doing other processing.
15336
15725
  if (status !== 'idle') {
@@ -15339,7 +15728,7 @@ var input = createPrompt((config, done) => {
15339
15728
  if (isEnterKey(key)) {
15340
15729
  const answer = value || defaultValue;
15341
15730
  setStatus('loading');
15342
- const isValid = required && !answer ? 'You must provide a value' : await validate(answer);
15731
+ const isValid = await validate(answer);
15343
15732
  if (isValid === true) {
15344
15733
  setValue(answer);
15345
15734
  setStatus('done');
@@ -15354,7 +15743,7 @@ var input = createPrompt((config, done) => {
15354
15743
  // get cleared, forcing the user to re-enter the value instead of fixing it.
15355
15744
  rl.write(value);
15356
15745
  }
15357
- setError(isValid || 'You must provide a valid value');
15746
+ setError(isValid);
15358
15747
  setStatus('idle');
15359
15748
  }
15360
15749
  }
@@ -15544,7 +15933,7 @@ var expand$1 = createPrompt((config, done) => {
15544
15933
  setError('Please input a value');
15545
15934
  }
15546
15935
  else {
15547
- setError(`"${colors.red(value)}" isn't an available option`);
15936
+ setError(`"${styleText('red', value)}" isn't an available option`);
15548
15937
  }
15549
15938
  }
15550
15939
  }
@@ -15592,7 +15981,7 @@ var expand$1 = createPrompt((config, done) => {
15592
15981
  let helpTip = '';
15593
15982
  const currentOption = choices.find((choice) => !Separator.isSeparator(choice) && choice.key === value.toLowerCase());
15594
15983
  if (currentOption) {
15595
- helpTip = `${colors.cyan('>>')} ${currentOption.name}`;
15984
+ helpTip = `${styleText('cyan', '>>')} ${currentOption.name}`;
15596
15985
  }
15597
15986
  let error = '';
15598
15987
  if (errorMsg) {
@@ -15614,11 +16003,12 @@ function normalizeChoices$2(choices) {
15614
16003
  if (Separator.isSeparator(choice))
15615
16004
  return choice;
15616
16005
  index += 1;
15617
- if (typeof choice === 'string') {
16006
+ if (typeof choice !== 'object' || choice === null || !('value' in choice)) {
16007
+ const name = String(choice);
15618
16008
  return {
15619
16009
  value: choice,
15620
- name: choice,
15621
- short: choice,
16010
+ name,
16011
+ short: name,
15622
16012
  key: String(index),
15623
16013
  };
15624
16014
  }
@@ -15649,7 +16039,12 @@ var rawlist = createPrompt((config, done) => {
15649
16039
  const { loop = true } = config;
15650
16040
  const choices = useMemo(() => normalizeChoices$2(config.choices), [config.choices]);
15651
16041
  const [status, setStatus] = useState('idle');
15652
- const [value, setValue] = useState('');
16042
+ const [value, setValue] = useState(() => {
16043
+ const defaultChoice = config.default == null
16044
+ ? undefined
16045
+ : choices.find((choice) => isSelectableChoice(choice) && choice.value === config.default);
16046
+ return defaultChoice?.key ?? '';
16047
+ });
15653
16048
  const [errorMsg, setError] = useState();
15654
16049
  const theme = makeTheme(config.theme);
15655
16050
  const prefix = usePrefix({ status, theme });
@@ -15673,7 +16068,7 @@ var rawlist = createPrompt((config, done) => {
15673
16068
  setError('Please input a value');
15674
16069
  }
15675
16070
  else {
15676
- setError(`"${colors.red(value)}" isn't an available option`);
16071
+ setError(`"${styleText('red', value)}" isn't an available option`);
15677
16072
  }
15678
16073
  }
15679
16074
  else if (isUpKey(key) || isDownKey(key)) {
@@ -15784,14 +16179,13 @@ var password = createPrompt((config, done) => {
15784
16179
  const searchTheme = {
15785
16180
  icon: { cursor: figures.pointer },
15786
16181
  style: {
15787
- disabled: (text) => colors.dim(`- ${text}`),
15788
- searchTerm: (text) => colors.cyan(text),
15789
- description: (text) => colors.cyan(text),
16182
+ disabled: (text) => styleText('dim', `- ${text}`),
16183
+ searchTerm: (text) => styleText('cyan', text),
16184
+ description: (text) => styleText('cyan', text),
15790
16185
  keysHelpTip: (keys) => keys
15791
- .map(([key, action]) => `${colors.bold(key)} ${colors.dim(action)}`)
15792
- .join(colors.dim(' • ')),
16186
+ .map(([key, action]) => `${styleText('bold', key)} ${styleText('dim', action)}`)
16187
+ .join(styleText('dim', ' • ')),
15793
16188
  },
15794
- helpMode: 'always',
15795
16189
  };
15796
16190
  function isSelectable$1(item) {
15797
16191
  return !Separator.isSeparator(item) && !item.disabled;
@@ -15912,22 +16306,10 @@ var search = createPrompt((config, done) => {
15912
16306
  }
15913
16307
  });
15914
16308
  const message = theme.style.message(config.message, status);
15915
- let helpLine;
15916
- // eslint-disable-next-line @typescript-eslint/no-deprecated
15917
- if (theme.helpMode !== 'never') {
15918
- // eslint-disable-next-line @typescript-eslint/no-deprecated
15919
- if (config.instructions) {
15920
- // eslint-disable-next-line @typescript-eslint/no-deprecated
15921
- const { pager, navigation } = config.instructions;
15922
- helpLine = theme.style.help(searchResults.length > pageSize ? pager : navigation);
15923
- }
15924
- else {
15925
- helpLine = theme.style.keysHelpTip([
15926
- ['↑↓', 'navigate'],
15927
- ['⏎', 'select'],
15928
- ]);
15929
- }
15930
- }
16309
+ const helpLine = theme.style.keysHelpTip([
16310
+ ['↑↓', 'navigate'],
16311
+ ['⏎', 'select'],
16312
+ ]);
15931
16313
  const page = usePagination({
15932
16314
  items: searchResults,
15933
16315
  active,
@@ -15980,13 +16362,12 @@ var search = createPrompt((config, done) => {
15980
16362
  const selectTheme = {
15981
16363
  icon: { cursor: figures.pointer },
15982
16364
  style: {
15983
- disabled: (text) => colors.dim(`- ${text}`),
15984
- description: (text) => colors.cyan(text),
16365
+ disabled: (text) => styleText('dim', `- ${text}`),
16366
+ description: (text) => styleText('cyan', text),
15985
16367
  keysHelpTip: (keys) => keys
15986
- .map(([key, action]) => `${colors.bold(key)} ${colors.dim(action)}`)
15987
- .join(colors.dim(' • ')),
16368
+ .map(([key, action]) => `${styleText('bold', key)} ${styleText('dim', action)}`)
16369
+ .join(styleText('dim', ' • ')),
15988
16370
  },
15989
- helpMode: 'always',
15990
16371
  indexMode: 'hidden',
15991
16372
  keybindings: [],
15992
16373
  };
@@ -15997,11 +16378,13 @@ function normalizeChoices(choices) {
15997
16378
  return choices.map((choice) => {
15998
16379
  if (Separator.isSeparator(choice))
15999
16380
  return choice;
16000
- if (typeof choice === 'string') {
16381
+ if (typeof choice !== 'object' || choice === null || !('value' in choice)) {
16382
+ // It's a raw value (string, number, etc.)
16383
+ const name = String(choice);
16001
16384
  return {
16002
16385
  value: choice,
16003
- name: choice,
16004
- short: choice,
16386
+ name,
16387
+ short: name,
16005
16388
  disabled: false,
16006
16389
  };
16007
16390
  }
@@ -16104,22 +16487,10 @@ var select = createPrompt((config, done) => {
16104
16487
  clearTimeout(searchTimeoutRef.current);
16105
16488
  }, []);
16106
16489
  const message = theme.style.message(config.message, status);
16107
- let helpLine;
16108
- // eslint-disable-next-line @typescript-eslint/no-deprecated
16109
- if (theme.helpMode !== 'never') {
16110
- // eslint-disable-next-line @typescript-eslint/no-deprecated
16111
- if (config.instructions) {
16112
- // eslint-disable-next-line @typescript-eslint/no-deprecated
16113
- const { pager, navigation } = config.instructions;
16114
- helpLine = theme.style.help(items.length > pageSize ? pager : navigation);
16115
- }
16116
- else {
16117
- helpLine = theme.style.keysHelpTip([
16118
- ['↑↓', 'navigate'],
16119
- ['⏎', 'select'],
16120
- ]);
16121
- }
16122
- }
16490
+ const helpLine = theme.style.keysHelpTip([
16491
+ ['↑↓', 'navigate'],
16492
+ ['⏎', 'select'],
16493
+ ]);
16123
16494
  let separatorCount = 0;
16124
16495
  const page = usePagination({
16125
16496
  items,
@@ -16467,7 +16838,7 @@ var hasRequiredTimeoutProvider;
16467
16838
  function requireTimeoutProvider () {
16468
16839
  if (hasRequiredTimeoutProvider) return timeoutProvider;
16469
16840
  hasRequiredTimeoutProvider = 1;
16470
- (function (exports) {
16841
+ (function (exports$1) {
16471
16842
  var __read = (timeoutProvider && timeoutProvider.__read) || function (o, n) {
16472
16843
  var m = typeof Symbol === "function" && o[Symbol.iterator];
16473
16844
  if (!m) return o;
@@ -16489,22 +16860,22 @@ function requireTimeoutProvider () {
16489
16860
  to[j] = from[i];
16490
16861
  return to;
16491
16862
  };
16492
- Object.defineProperty(exports, "__esModule", { value: true });
16493
- exports.timeoutProvider = void 0;
16494
- exports.timeoutProvider = {
16863
+ Object.defineProperty(exports$1, "__esModule", { value: true });
16864
+ exports$1.timeoutProvider = void 0;
16865
+ exports$1.timeoutProvider = {
16495
16866
  setTimeout: function (handler, timeout) {
16496
16867
  var args = [];
16497
16868
  for (var _i = 2; _i < arguments.length; _i++) {
16498
16869
  args[_i - 2] = arguments[_i];
16499
16870
  }
16500
- var delegate = exports.timeoutProvider.delegate;
16871
+ var delegate = exports$1.timeoutProvider.delegate;
16501
16872
  if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {
16502
16873
  return delegate.setTimeout.apply(delegate, __spreadArray([handler, timeout], __read(args)));
16503
16874
  }
16504
16875
  return setTimeout.apply(void 0, __spreadArray([handler, timeout], __read(args)));
16505
16876
  },
16506
16877
  clearTimeout: function (handle) {
16507
- var delegate = exports.timeoutProvider.delegate;
16878
+ var delegate = exports$1.timeoutProvider.delegate;
16508
16879
  return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);
16509
16880
  },
16510
16881
  delegate: undefined,
@@ -16631,7 +17002,7 @@ var hasRequiredSubscriber;
16631
17002
  function requireSubscriber () {
16632
17003
  if (hasRequiredSubscriber) return Subscriber;
16633
17004
  hasRequiredSubscriber = 1;
16634
- (function (exports) {
17005
+ (function (exports$1) {
16635
17006
  var __extends = (Subscriber && Subscriber.__extends) || (function () {
16636
17007
  var extendStatics = function (d, b) {
16637
17008
  extendStatics = Object.setPrototypeOf ||
@@ -16647,8 +17018,8 @@ function requireSubscriber () {
16647
17018
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16648
17019
  };
16649
17020
  })();
16650
- Object.defineProperty(exports, "__esModule", { value: true });
16651
- exports.EMPTY_OBSERVER = exports.SafeSubscriber = exports.Subscriber = void 0;
17021
+ Object.defineProperty(exports$1, "__esModule", { value: true });
17022
+ exports$1.EMPTY_OBSERVER = exports$1.SafeSubscriber = exports$1.Subscriber = void 0;
16652
17023
  var isFunction_1 = /*@__PURE__*/ requireIsFunction();
16653
17024
  var Subscription_1 = /*@__PURE__*/ requireSubscription();
16654
17025
  var config_1 = /*@__PURE__*/ requireConfig();
@@ -16669,7 +17040,7 @@ function requireSubscriber () {
16669
17040
  }
16670
17041
  }
16671
17042
  else {
16672
- _this.destination = exports.EMPTY_OBSERVER;
17043
+ _this.destination = exports$1.EMPTY_OBSERVER;
16673
17044
  }
16674
17045
  return _this;
16675
17046
  }
@@ -16730,7 +17101,7 @@ function requireSubscriber () {
16730
17101
  };
16731
17102
  return Subscriber;
16732
17103
  }(Subscription_1.Subscription));
16733
- exports.Subscriber = Subscriber$1;
17104
+ exports$1.Subscriber = Subscriber$1;
16734
17105
  var _bind = Function.prototype.bind;
16735
17106
  function bind(fn, thisArg) {
16736
17107
  return _bind.call(fn, thisArg);
@@ -16809,7 +17180,7 @@ function requireSubscriber () {
16809
17180
  }
16810
17181
  return SafeSubscriber;
16811
17182
  }(Subscriber$1));
16812
- exports.SafeSubscriber = SafeSubscriber;
17183
+ exports$1.SafeSubscriber = SafeSubscriber;
16813
17184
  function handleUnhandledError(error) {
16814
17185
  if (config_1.config.useDeprecatedSynchronousErrorHandling) {
16815
17186
  errorContext_1.captureError(error);
@@ -16825,7 +17196,7 @@ function requireSubscriber () {
16825
17196
  var onStoppedNotification = config_1.config.onStoppedNotification;
16826
17197
  onStoppedNotification && timeoutProvider_1.timeoutProvider.setTimeout(function () { return onStoppedNotification(notification, subscriber); });
16827
17198
  }
16828
- exports.EMPTY_OBSERVER = {
17199
+ exports$1.EMPTY_OBSERVER = {
16829
17200
  closed: true,
16830
17201
  next: noop_1.noop,
16831
17202
  error: defaultErrorHandler,
@@ -17272,12 +17643,12 @@ var hasRequiredPerformanceTimestampProvider;
17272
17643
  function requirePerformanceTimestampProvider () {
17273
17644
  if (hasRequiredPerformanceTimestampProvider) return performanceTimestampProvider;
17274
17645
  hasRequiredPerformanceTimestampProvider = 1;
17275
- (function (exports) {
17276
- Object.defineProperty(exports, "__esModule", { value: true });
17277
- exports.performanceTimestampProvider = void 0;
17278
- exports.performanceTimestampProvider = {
17646
+ (function (exports$1) {
17647
+ Object.defineProperty(exports$1, "__esModule", { value: true });
17648
+ exports$1.performanceTimestampProvider = void 0;
17649
+ exports$1.performanceTimestampProvider = {
17279
17650
  now: function () {
17280
- return (exports.performanceTimestampProvider.delegate || performance).now();
17651
+ return (exports$1.performanceTimestampProvider.delegate || performance).now();
17281
17652
  },
17282
17653
  delegate: undefined,
17283
17654
  };
@@ -17293,7 +17664,7 @@ var hasRequiredAnimationFrameProvider;
17293
17664
  function requireAnimationFrameProvider () {
17294
17665
  if (hasRequiredAnimationFrameProvider) return animationFrameProvider;
17295
17666
  hasRequiredAnimationFrameProvider = 1;
17296
- (function (exports) {
17667
+ (function (exports$1) {
17297
17668
  var __read = (animationFrameProvider && animationFrameProvider.__read) || function (o, n) {
17298
17669
  var m = typeof Symbol === "function" && o[Symbol.iterator];
17299
17670
  if (!m) return o;
@@ -17315,14 +17686,14 @@ function requireAnimationFrameProvider () {
17315
17686
  to[j] = from[i];
17316
17687
  return to;
17317
17688
  };
17318
- Object.defineProperty(exports, "__esModule", { value: true });
17319
- exports.animationFrameProvider = void 0;
17689
+ Object.defineProperty(exports$1, "__esModule", { value: true });
17690
+ exports$1.animationFrameProvider = void 0;
17320
17691
  var Subscription_1 = /*@__PURE__*/ requireSubscription();
17321
- exports.animationFrameProvider = {
17692
+ exports$1.animationFrameProvider = {
17322
17693
  schedule: function (callback) {
17323
17694
  var request = requestAnimationFrame;
17324
17695
  var cancel = cancelAnimationFrame;
17325
- var delegate = exports.animationFrameProvider.delegate;
17696
+ var delegate = exports$1.animationFrameProvider.delegate;
17326
17697
  if (delegate) {
17327
17698
  request = delegate.requestAnimationFrame;
17328
17699
  cancel = delegate.cancelAnimationFrame;
@@ -17338,7 +17709,7 @@ function requireAnimationFrameProvider () {
17338
17709
  for (var _i = 0; _i < arguments.length; _i++) {
17339
17710
  args[_i] = arguments[_i];
17340
17711
  }
17341
- var delegate = exports.animationFrameProvider.delegate;
17712
+ var delegate = exports$1.animationFrameProvider.delegate;
17342
17713
  return ((delegate === null || delegate === void 0 ? void 0 : delegate.requestAnimationFrame) || requestAnimationFrame).apply(void 0, __spreadArray([], __read(args)));
17343
17714
  },
17344
17715
  cancelAnimationFrame: function () {
@@ -17346,7 +17717,7 @@ function requireAnimationFrameProvider () {
17346
17717
  for (var _i = 0; _i < arguments.length; _i++) {
17347
17718
  args[_i] = arguments[_i];
17348
17719
  }
17349
- var delegate = exports.animationFrameProvider.delegate;
17720
+ var delegate = exports$1.animationFrameProvider.delegate;
17350
17721
  return ((delegate === null || delegate === void 0 ? void 0 : delegate.cancelAnimationFrame) || cancelAnimationFrame).apply(void 0, __spreadArray([], __read(args)));
17351
17722
  },
17352
17723
  delegate: undefined,
@@ -17692,12 +18063,12 @@ var hasRequiredDateTimestampProvider;
17692
18063
  function requireDateTimestampProvider () {
17693
18064
  if (hasRequiredDateTimestampProvider) return dateTimestampProvider;
17694
18065
  hasRequiredDateTimestampProvider = 1;
17695
- (function (exports) {
17696
- Object.defineProperty(exports, "__esModule", { value: true });
17697
- exports.dateTimestampProvider = void 0;
17698
- exports.dateTimestampProvider = {
18066
+ (function (exports$1) {
18067
+ Object.defineProperty(exports$1, "__esModule", { value: true });
18068
+ exports$1.dateTimestampProvider = void 0;
18069
+ exports$1.dateTimestampProvider = {
17699
18070
  now: function () {
17700
- return (exports.dateTimestampProvider.delegate || Date).now();
18071
+ return (exports$1.dateTimestampProvider.delegate || Date).now();
17701
18072
  },
17702
18073
  delegate: undefined,
17703
18074
  };
@@ -17906,7 +18277,7 @@ var hasRequiredIntervalProvider;
17906
18277
  function requireIntervalProvider () {
17907
18278
  if (hasRequiredIntervalProvider) return intervalProvider;
17908
18279
  hasRequiredIntervalProvider = 1;
17909
- (function (exports) {
18280
+ (function (exports$1) {
17910
18281
  var __read = (intervalProvider && intervalProvider.__read) || function (o, n) {
17911
18282
  var m = typeof Symbol === "function" && o[Symbol.iterator];
17912
18283
  if (!m) return o;
@@ -17928,22 +18299,22 @@ function requireIntervalProvider () {
17928
18299
  to[j] = from[i];
17929
18300
  return to;
17930
18301
  };
17931
- Object.defineProperty(exports, "__esModule", { value: true });
17932
- exports.intervalProvider = void 0;
17933
- exports.intervalProvider = {
18302
+ Object.defineProperty(exports$1, "__esModule", { value: true });
18303
+ exports$1.intervalProvider = void 0;
18304
+ exports$1.intervalProvider = {
17934
18305
  setInterval: function (handler, timeout) {
17935
18306
  var args = [];
17936
18307
  for (var _i = 2; _i < arguments.length; _i++) {
17937
18308
  args[_i - 2] = arguments[_i];
17938
18309
  }
17939
- var delegate = exports.intervalProvider.delegate;
18310
+ var delegate = exports$1.intervalProvider.delegate;
17940
18311
  if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) {
17941
18312
  return delegate.setInterval.apply(delegate, __spreadArray([handler, timeout], __read(args)));
17942
18313
  }
17943
18314
  return setInterval.apply(void 0, __spreadArray([handler, timeout], __read(args)));
17944
18315
  },
17945
18316
  clearInterval: function (handle) {
17946
- var delegate = exports.intervalProvider.delegate;
18317
+ var delegate = exports$1.intervalProvider.delegate;
17947
18318
  return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle);
17948
18319
  },
17949
18320
  delegate: undefined,
@@ -18116,7 +18487,7 @@ var hasRequiredImmediateProvider;
18116
18487
  function requireImmediateProvider () {
18117
18488
  if (hasRequiredImmediateProvider) return immediateProvider;
18118
18489
  hasRequiredImmediateProvider = 1;
18119
- (function (exports) {
18490
+ (function (exports$1) {
18120
18491
  var __read = (immediateProvider && immediateProvider.__read) || function (o, n) {
18121
18492
  var m = typeof Symbol === "function" && o[Symbol.iterator];
18122
18493
  if (!m) return o;
@@ -18138,21 +18509,21 @@ function requireImmediateProvider () {
18138
18509
  to[j] = from[i];
18139
18510
  return to;
18140
18511
  };
18141
- Object.defineProperty(exports, "__esModule", { value: true });
18142
- exports.immediateProvider = void 0;
18512
+ Object.defineProperty(exports$1, "__esModule", { value: true });
18513
+ exports$1.immediateProvider = void 0;
18143
18514
  var Immediate_1 = /*@__PURE__*/ requireImmediate();
18144
18515
  var setImmediate = Immediate_1.Immediate.setImmediate, clearImmediate = Immediate_1.Immediate.clearImmediate;
18145
- exports.immediateProvider = {
18516
+ exports$1.immediateProvider = {
18146
18517
  setImmediate: function () {
18147
18518
  var args = [];
18148
18519
  for (var _i = 0; _i < arguments.length; _i++) {
18149
18520
  args[_i] = arguments[_i];
18150
18521
  }
18151
- var delegate = exports.immediateProvider.delegate;
18522
+ var delegate = exports$1.immediateProvider.delegate;
18152
18523
  return ((delegate === null || delegate === void 0 ? void 0 : delegate.setImmediate) || setImmediate).apply(void 0, __spreadArray([], __read(args)));
18153
18524
  },
18154
18525
  clearImmediate: function (handle) {
18155
- var delegate = exports.immediateProvider.delegate;
18526
+ var delegate = exports$1.immediateProvider.delegate;
18156
18527
  return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearImmediate) || clearImmediate)(handle);
18157
18528
  },
18158
18529
  delegate: undefined,
@@ -18376,13 +18747,13 @@ var hasRequiredAsap;
18376
18747
  function requireAsap () {
18377
18748
  if (hasRequiredAsap) return asap;
18378
18749
  hasRequiredAsap = 1;
18379
- (function (exports) {
18380
- Object.defineProperty(exports, "__esModule", { value: true });
18381
- exports.asap = exports.asapScheduler = void 0;
18750
+ (function (exports$1) {
18751
+ Object.defineProperty(exports$1, "__esModule", { value: true });
18752
+ exports$1.asap = exports$1.asapScheduler = void 0;
18382
18753
  var AsapAction_1 = /*@__PURE__*/ requireAsapAction();
18383
18754
  var AsapScheduler_1 = /*@__PURE__*/ requireAsapScheduler();
18384
- exports.asapScheduler = new AsapScheduler_1.AsapScheduler(AsapAction_1.AsapAction);
18385
- exports.asap = exports.asapScheduler;
18755
+ exports$1.asapScheduler = new AsapScheduler_1.AsapScheduler(AsapAction_1.AsapAction);
18756
+ exports$1.asap = exports$1.asapScheduler;
18386
18757
 
18387
18758
  } (asap));
18388
18759
  return asap;
@@ -18395,13 +18766,13 @@ var hasRequiredAsync;
18395
18766
  function requireAsync () {
18396
18767
  if (hasRequiredAsync) return async;
18397
18768
  hasRequiredAsync = 1;
18398
- (function (exports) {
18399
- Object.defineProperty(exports, "__esModule", { value: true });
18400
- exports.async = exports.asyncScheduler = void 0;
18769
+ (function (exports$1) {
18770
+ Object.defineProperty(exports$1, "__esModule", { value: true });
18771
+ exports$1.async = exports$1.asyncScheduler = void 0;
18401
18772
  var AsyncAction_1 = /*@__PURE__*/ requireAsyncAction();
18402
18773
  var AsyncScheduler_1 = /*@__PURE__*/ requireAsyncScheduler();
18403
- exports.asyncScheduler = new AsyncScheduler_1.AsyncScheduler(AsyncAction_1.AsyncAction);
18404
- exports.async = exports.asyncScheduler;
18774
+ exports$1.asyncScheduler = new AsyncScheduler_1.AsyncScheduler(AsyncAction_1.AsyncAction);
18775
+ exports$1.async = exports$1.asyncScheduler;
18405
18776
 
18406
18777
  } (async));
18407
18778
  return async;
@@ -18512,13 +18883,13 @@ var hasRequiredQueue;
18512
18883
  function requireQueue () {
18513
18884
  if (hasRequiredQueue) return queue;
18514
18885
  hasRequiredQueue = 1;
18515
- (function (exports) {
18516
- Object.defineProperty(exports, "__esModule", { value: true });
18517
- exports.queue = exports.queueScheduler = void 0;
18886
+ (function (exports$1) {
18887
+ Object.defineProperty(exports$1, "__esModule", { value: true });
18888
+ exports$1.queue = exports$1.queueScheduler = void 0;
18518
18889
  var QueueAction_1 = /*@__PURE__*/ requireQueueAction();
18519
18890
  var QueueScheduler_1 = /*@__PURE__*/ requireQueueScheduler();
18520
- exports.queueScheduler = new QueueScheduler_1.QueueScheduler(QueueAction_1.QueueAction);
18521
- exports.queue = exports.queueScheduler;
18891
+ exports$1.queueScheduler = new QueueScheduler_1.QueueScheduler(QueueAction_1.QueueAction);
18892
+ exports$1.queue = exports$1.queueScheduler;
18522
18893
 
18523
18894
  } (queue));
18524
18895
  return queue;
@@ -18656,13 +19027,13 @@ var hasRequiredAnimationFrame;
18656
19027
  function requireAnimationFrame () {
18657
19028
  if (hasRequiredAnimationFrame) return animationFrame;
18658
19029
  hasRequiredAnimationFrame = 1;
18659
- (function (exports) {
18660
- Object.defineProperty(exports, "__esModule", { value: true });
18661
- exports.animationFrame = exports.animationFrameScheduler = void 0;
19030
+ (function (exports$1) {
19031
+ Object.defineProperty(exports$1, "__esModule", { value: true });
19032
+ exports$1.animationFrame = exports$1.animationFrameScheduler = void 0;
18662
19033
  var AnimationFrameAction_1 = /*@__PURE__*/ requireAnimationFrameAction();
18663
19034
  var AnimationFrameScheduler_1 = /*@__PURE__*/ requireAnimationFrameScheduler();
18664
- exports.animationFrameScheduler = new AnimationFrameScheduler_1.AnimationFrameScheduler(AnimationFrameAction_1.AnimationFrameAction);
18665
- exports.animationFrame = exports.animationFrameScheduler;
19035
+ exports$1.animationFrameScheduler = new AnimationFrameScheduler_1.AnimationFrameScheduler(AnimationFrameAction_1.AnimationFrameAction);
19036
+ exports$1.animationFrame = exports$1.animationFrameScheduler;
18666
19037
 
18667
19038
  } (animationFrame));
18668
19039
  return animationFrame;
@@ -18806,15 +19177,15 @@ var hasRequiredEmpty;
18806
19177
  function requireEmpty () {
18807
19178
  if (hasRequiredEmpty) return empty;
18808
19179
  hasRequiredEmpty = 1;
18809
- (function (exports) {
18810
- Object.defineProperty(exports, "__esModule", { value: true });
18811
- exports.empty = exports.EMPTY = void 0;
19180
+ (function (exports$1) {
19181
+ Object.defineProperty(exports$1, "__esModule", { value: true });
19182
+ exports$1.empty = exports$1.EMPTY = void 0;
18812
19183
  var Observable_1 = /*@__PURE__*/ requireObservable();
18813
- exports.EMPTY = new Observable_1.Observable(function (subscriber) { return subscriber.complete(); });
19184
+ exports$1.EMPTY = new Observable_1.Observable(function (subscriber) { return subscriber.complete(); });
18814
19185
  function empty(scheduler) {
18815
- return scheduler ? emptyScheduled(scheduler) : exports.EMPTY;
19186
+ return scheduler ? emptyScheduled(scheduler) : exports$1.EMPTY;
18816
19187
  }
18817
- exports.empty = empty;
19188
+ exports$1.empty = empty;
18818
19189
  function emptyScheduled(scheduler) {
18819
19190
  return new Observable_1.Observable(function (subscriber) { return scheduler.schedule(function () { return subscriber.complete(); }); });
18820
19191
  }
@@ -19667,9 +20038,9 @@ var hasRequiredNotification;
19667
20038
  function requireNotification () {
19668
20039
  if (hasRequiredNotification) return Notification;
19669
20040
  hasRequiredNotification = 1;
19670
- (function (exports) {
19671
- Object.defineProperty(exports, "__esModule", { value: true });
19672
- exports.observeNotification = exports.Notification = exports.NotificationKind = void 0;
20041
+ (function (exports$1) {
20042
+ Object.defineProperty(exports$1, "__esModule", { value: true });
20043
+ exports$1.observeNotification = exports$1.Notification = exports$1.NotificationKind = void 0;
19673
20044
  var empty_1 = /*@__PURE__*/ requireEmpty();
19674
20045
  var of_1 = /*@__PURE__*/ requireOf();
19675
20046
  var throwError_1 = /*@__PURE__*/ requireThrowError();
@@ -19678,7 +20049,7 @@ function requireNotification () {
19678
20049
  NotificationKind["NEXT"] = "N";
19679
20050
  NotificationKind["ERROR"] = "E";
19680
20051
  NotificationKind["COMPLETE"] = "C";
19681
- })(exports.NotificationKind || (exports.NotificationKind = {}));
20052
+ })(exports$1.NotificationKind || (exports$1.NotificationKind = {}));
19682
20053
  var Notification = (function () {
19683
20054
  function Notification(kind, value, error) {
19684
20055
  this.kind = kind;
@@ -19731,7 +20102,7 @@ function requireNotification () {
19731
20102
  Notification.completeNotification = new Notification('C');
19732
20103
  return Notification;
19733
20104
  }());
19734
- exports.Notification = Notification;
20105
+ exports$1.Notification = Notification;
19735
20106
  function observeNotification(notification, observer) {
19736
20107
  var _a, _b, _c;
19737
20108
  var _d = notification, kind = _d.kind, value = _d.value, error = _d.error;
@@ -19740,7 +20111,7 @@ function requireNotification () {
19740
20111
  }
19741
20112
  kind === 'N' ? (_a = observer.next) === null || _a === void 0 ? void 0 : _a.call(observer, value) : kind === 'E' ? (_b = observer.error) === null || _b === void 0 ? void 0 : _b.call(observer, error) : (_c = observer.complete) === null || _c === void 0 ? void 0 : _c.call(observer);
19742
20113
  }
19743
- exports.observeNotification = observeNotification;
20114
+ exports$1.observeNotification = observeNotification;
19744
20115
 
19745
20116
  } (Notification));
19746
20117
  return Notification;
@@ -19950,9 +20321,9 @@ var hasRequiredTimeout;
19950
20321
  function requireTimeout () {
19951
20322
  if (hasRequiredTimeout) return timeout;
19952
20323
  hasRequiredTimeout = 1;
19953
- (function (exports) {
19954
- Object.defineProperty(exports, "__esModule", { value: true });
19955
- exports.timeout = exports.TimeoutError = void 0;
20324
+ (function (exports$1) {
20325
+ Object.defineProperty(exports$1, "__esModule", { value: true });
20326
+ exports$1.timeout = exports$1.TimeoutError = void 0;
19956
20327
  var async_1 = /*@__PURE__*/ requireAsync();
19957
20328
  var isDate_1 = /*@__PURE__*/ requireIsDate();
19958
20329
  var lift_1 = /*@__PURE__*/ requireLift();
@@ -19960,7 +20331,7 @@ function requireTimeout () {
19960
20331
  var createErrorClass_1 = /*@__PURE__*/ requireCreateErrorClass();
19961
20332
  var OperatorSubscriber_1 = /*@__PURE__*/ requireOperatorSubscriber();
19962
20333
  var executeSchedule_1 = /*@__PURE__*/ requireExecuteSchedule();
19963
- exports.TimeoutError = createErrorClass_1.createErrorClass(function (_super) {
20334
+ exports$1.TimeoutError = createErrorClass_1.createErrorClass(function (_super) {
19964
20335
  return function TimeoutErrorImpl(info) {
19965
20336
  if (info === void 0) { info = null; }
19966
20337
  _super(this);
@@ -20008,9 +20379,9 @@ function requireTimeout () {
20008
20379
  !seen && startTimer(first != null ? (typeof first === 'number' ? first : +first - scheduler.now()) : each);
20009
20380
  });
20010
20381
  }
20011
- exports.timeout = timeout;
20382
+ exports$1.timeout = timeout;
20012
20383
  function timeoutErrorFactory(info) {
20013
- throw new exports.TimeoutError(info);
20384
+ throw new exports$1.TimeoutError(info);
20014
20385
  }
20015
20386
 
20016
20387
  } (timeout));
@@ -20996,16 +21367,16 @@ var hasRequiredNever;
20996
21367
  function requireNever () {
20997
21368
  if (hasRequiredNever) return never;
20998
21369
  hasRequiredNever = 1;
20999
- (function (exports) {
21000
- Object.defineProperty(exports, "__esModule", { value: true });
21001
- exports.never = exports.NEVER = void 0;
21370
+ (function (exports$1) {
21371
+ Object.defineProperty(exports$1, "__esModule", { value: true });
21372
+ exports$1.never = exports$1.NEVER = void 0;
21002
21373
  var Observable_1 = /*@__PURE__*/ requireObservable();
21003
21374
  var noop_1 = /*@__PURE__*/ requireNoop();
21004
- exports.NEVER = new Observable_1.Observable(noop_1.noop);
21375
+ exports$1.NEVER = new Observable_1.Observable(noop_1.noop);
21005
21376
  function never() {
21006
- return exports.NEVER;
21377
+ return exports$1.NEVER;
21007
21378
  }
21008
- exports.never = never;
21379
+ exports$1.never = never;
21009
21380
 
21010
21381
  } (never));
21011
21382
  return never;
@@ -25254,7 +25625,7 @@ var hasRequiredCjs;
25254
25625
  function requireCjs () {
25255
25626
  if (hasRequiredCjs) return cjs;
25256
25627
  hasRequiredCjs = 1;
25257
- (function (exports) {
25628
+ (function (exports$1) {
25258
25629
  var __createBinding = (cjs && cjs.__createBinding) || (Object.create ? (function(o, m, k, k2) {
25259
25630
  if (k2 === undefined) k2 = k;
25260
25631
  Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
@@ -25262,355 +25633,355 @@ function requireCjs () {
25262
25633
  if (k2 === undefined) k2 = k;
25263
25634
  o[k2] = m[k];
25264
25635
  }));
25265
- var __exportStar = (cjs && cjs.__exportStar) || function(m, exports) {
25266
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
25636
+ var __exportStar = (cjs && cjs.__exportStar) || function(m, exports$1) {
25637
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports$1, p)) __createBinding(exports$1, m, p);
25267
25638
  };
25268
- Object.defineProperty(exports, "__esModule", { value: true });
25269
- exports.interval = exports.iif = exports.generate = exports.fromEventPattern = exports.fromEvent = exports.from = exports.forkJoin = exports.empty = exports.defer = exports.connectable = exports.concat = exports.combineLatest = exports.bindNodeCallback = exports.bindCallback = exports.UnsubscriptionError = exports.TimeoutError = exports.SequenceError = exports.ObjectUnsubscribedError = exports.NotFoundError = exports.EmptyError = exports.ArgumentOutOfRangeError = exports.firstValueFrom = exports.lastValueFrom = exports.isObservable = exports.identity = exports.noop = exports.pipe = exports.NotificationKind = exports.Notification = exports.Subscriber = exports.Subscription = exports.Scheduler = exports.VirtualAction = exports.VirtualTimeScheduler = exports.animationFrameScheduler = exports.animationFrame = exports.queueScheduler = exports.queue = exports.asyncScheduler = exports.async = exports.asapScheduler = exports.asap = exports.AsyncSubject = exports.ReplaySubject = exports.BehaviorSubject = exports.Subject = exports.animationFrames = exports.observable = exports.ConnectableObservable = exports.Observable = void 0;
25270
- exports.filter = exports.expand = exports.exhaustMap = exports.exhaustAll = exports.exhaust = exports.every = exports.endWith = exports.elementAt = exports.distinctUntilKeyChanged = exports.distinctUntilChanged = exports.distinct = exports.dematerialize = exports.delayWhen = exports.delay = exports.defaultIfEmpty = exports.debounceTime = exports.debounce = exports.count = exports.connect = exports.concatWith = exports.concatMapTo = exports.concatMap = exports.concatAll = exports.combineLatestWith = exports.combineLatestAll = exports.combineAll = exports.catchError = exports.bufferWhen = exports.bufferToggle = exports.bufferTime = exports.bufferCount = exports.buffer = exports.auditTime = exports.audit = exports.config = exports.NEVER = exports.EMPTY = exports.scheduled = exports.zip = exports.using = exports.timer = exports.throwError = exports.range = exports.race = exports.partition = exports.pairs = exports.onErrorResumeNext = exports.of = exports.never = exports.merge = void 0;
25271
- exports.switchMap = exports.switchAll = exports.subscribeOn = exports.startWith = exports.skipWhile = exports.skipUntil = exports.skipLast = exports.skip = exports.single = exports.shareReplay = exports.share = exports.sequenceEqual = exports.scan = exports.sampleTime = exports.sample = exports.refCount = exports.retryWhen = exports.retry = exports.repeatWhen = exports.repeat = exports.reduce = exports.raceWith = exports.publishReplay = exports.publishLast = exports.publishBehavior = exports.publish = exports.pluck = exports.pairwise = exports.onErrorResumeNextWith = exports.observeOn = exports.multicast = exports.min = exports.mergeWith = exports.mergeScan = exports.mergeMapTo = exports.mergeMap = exports.flatMap = exports.mergeAll = exports.max = exports.materialize = exports.mapTo = exports.map = exports.last = exports.isEmpty = exports.ignoreElements = exports.groupBy = exports.first = exports.findIndex = exports.find = exports.finalize = void 0;
25272
- exports.zipWith = exports.zipAll = exports.withLatestFrom = exports.windowWhen = exports.windowToggle = exports.windowTime = exports.windowCount = exports.window = exports.toArray = exports.timestamp = exports.timeoutWith = exports.timeout = exports.timeInterval = exports.throwIfEmpty = exports.throttleTime = exports.throttle = exports.tap = exports.takeWhile = exports.takeUntil = exports.takeLast = exports.take = exports.switchScan = exports.switchMapTo = void 0;
25639
+ Object.defineProperty(exports$1, "__esModule", { value: true });
25640
+ exports$1.interval = exports$1.iif = exports$1.generate = exports$1.fromEventPattern = exports$1.fromEvent = exports$1.from = exports$1.forkJoin = exports$1.empty = exports$1.defer = exports$1.connectable = exports$1.concat = exports$1.combineLatest = exports$1.bindNodeCallback = exports$1.bindCallback = exports$1.UnsubscriptionError = exports$1.TimeoutError = exports$1.SequenceError = exports$1.ObjectUnsubscribedError = exports$1.NotFoundError = exports$1.EmptyError = exports$1.ArgumentOutOfRangeError = exports$1.firstValueFrom = exports$1.lastValueFrom = exports$1.isObservable = exports$1.identity = exports$1.noop = exports$1.pipe = exports$1.NotificationKind = exports$1.Notification = exports$1.Subscriber = exports$1.Subscription = exports$1.Scheduler = exports$1.VirtualAction = exports$1.VirtualTimeScheduler = exports$1.animationFrameScheduler = exports$1.animationFrame = exports$1.queueScheduler = exports$1.queue = exports$1.asyncScheduler = exports$1.async = exports$1.asapScheduler = exports$1.asap = exports$1.AsyncSubject = exports$1.ReplaySubject = exports$1.BehaviorSubject = exports$1.Subject = exports$1.animationFrames = exports$1.observable = exports$1.ConnectableObservable = exports$1.Observable = void 0;
25641
+ exports$1.filter = exports$1.expand = exports$1.exhaustMap = exports$1.exhaustAll = exports$1.exhaust = exports$1.every = exports$1.endWith = exports$1.elementAt = exports$1.distinctUntilKeyChanged = exports$1.distinctUntilChanged = exports$1.distinct = exports$1.dematerialize = exports$1.delayWhen = exports$1.delay = exports$1.defaultIfEmpty = exports$1.debounceTime = exports$1.debounce = exports$1.count = exports$1.connect = exports$1.concatWith = exports$1.concatMapTo = exports$1.concatMap = exports$1.concatAll = exports$1.combineLatestWith = exports$1.combineLatestAll = exports$1.combineAll = exports$1.catchError = exports$1.bufferWhen = exports$1.bufferToggle = exports$1.bufferTime = exports$1.bufferCount = exports$1.buffer = exports$1.auditTime = exports$1.audit = exports$1.config = exports$1.NEVER = exports$1.EMPTY = exports$1.scheduled = exports$1.zip = exports$1.using = exports$1.timer = exports$1.throwError = exports$1.range = exports$1.race = exports$1.partition = exports$1.pairs = exports$1.onErrorResumeNext = exports$1.of = exports$1.never = exports$1.merge = void 0;
25642
+ exports$1.switchMap = exports$1.switchAll = exports$1.subscribeOn = exports$1.startWith = exports$1.skipWhile = exports$1.skipUntil = exports$1.skipLast = exports$1.skip = exports$1.single = exports$1.shareReplay = exports$1.share = exports$1.sequenceEqual = exports$1.scan = exports$1.sampleTime = exports$1.sample = exports$1.refCount = exports$1.retryWhen = exports$1.retry = exports$1.repeatWhen = exports$1.repeat = exports$1.reduce = exports$1.raceWith = exports$1.publishReplay = exports$1.publishLast = exports$1.publishBehavior = exports$1.publish = exports$1.pluck = exports$1.pairwise = exports$1.onErrorResumeNextWith = exports$1.observeOn = exports$1.multicast = exports$1.min = exports$1.mergeWith = exports$1.mergeScan = exports$1.mergeMapTo = exports$1.mergeMap = exports$1.flatMap = exports$1.mergeAll = exports$1.max = exports$1.materialize = exports$1.mapTo = exports$1.map = exports$1.last = exports$1.isEmpty = exports$1.ignoreElements = exports$1.groupBy = exports$1.first = exports$1.findIndex = exports$1.find = exports$1.finalize = void 0;
25643
+ exports$1.zipWith = exports$1.zipAll = exports$1.withLatestFrom = exports$1.windowWhen = exports$1.windowToggle = exports$1.windowTime = exports$1.windowCount = exports$1.window = exports$1.toArray = exports$1.timestamp = exports$1.timeoutWith = exports$1.timeout = exports$1.timeInterval = exports$1.throwIfEmpty = exports$1.throttleTime = exports$1.throttle = exports$1.tap = exports$1.takeWhile = exports$1.takeUntil = exports$1.takeLast = exports$1.take = exports$1.switchScan = exports$1.switchMapTo = void 0;
25273
25644
  var Observable_1 = /*@__PURE__*/ requireObservable();
25274
- Object.defineProperty(exports, "Observable", { enumerable: true, get: function () { return Observable_1.Observable; } });
25645
+ Object.defineProperty(exports$1, "Observable", { enumerable: true, get: function () { return Observable_1.Observable; } });
25275
25646
  var ConnectableObservable_1 = /*@__PURE__*/ requireConnectableObservable();
25276
- Object.defineProperty(exports, "ConnectableObservable", { enumerable: true, get: function () { return ConnectableObservable_1.ConnectableObservable; } });
25647
+ Object.defineProperty(exports$1, "ConnectableObservable", { enumerable: true, get: function () { return ConnectableObservable_1.ConnectableObservable; } });
25277
25648
  var observable_1 = /*@__PURE__*/ requireObservable$1();
25278
- Object.defineProperty(exports, "observable", { enumerable: true, get: function () { return observable_1.observable; } });
25649
+ Object.defineProperty(exports$1, "observable", { enumerable: true, get: function () { return observable_1.observable; } });
25279
25650
  var animationFrames_1 = /*@__PURE__*/ requireAnimationFrames();
25280
- Object.defineProperty(exports, "animationFrames", { enumerable: true, get: function () { return animationFrames_1.animationFrames; } });
25651
+ Object.defineProperty(exports$1, "animationFrames", { enumerable: true, get: function () { return animationFrames_1.animationFrames; } });
25281
25652
  var Subject_1 = /*@__PURE__*/ requireSubject();
25282
- Object.defineProperty(exports, "Subject", { enumerable: true, get: function () { return Subject_1.Subject; } });
25653
+ Object.defineProperty(exports$1, "Subject", { enumerable: true, get: function () { return Subject_1.Subject; } });
25283
25654
  var BehaviorSubject_1 = /*@__PURE__*/ requireBehaviorSubject();
25284
- Object.defineProperty(exports, "BehaviorSubject", { enumerable: true, get: function () { return BehaviorSubject_1.BehaviorSubject; } });
25655
+ Object.defineProperty(exports$1, "BehaviorSubject", { enumerable: true, get: function () { return BehaviorSubject_1.BehaviorSubject; } });
25285
25656
  var ReplaySubject_1 = /*@__PURE__*/ requireReplaySubject();
25286
- Object.defineProperty(exports, "ReplaySubject", { enumerable: true, get: function () { return ReplaySubject_1.ReplaySubject; } });
25657
+ Object.defineProperty(exports$1, "ReplaySubject", { enumerable: true, get: function () { return ReplaySubject_1.ReplaySubject; } });
25287
25658
  var AsyncSubject_1 = /*@__PURE__*/ requireAsyncSubject();
25288
- Object.defineProperty(exports, "AsyncSubject", { enumerable: true, get: function () { return AsyncSubject_1.AsyncSubject; } });
25659
+ Object.defineProperty(exports$1, "AsyncSubject", { enumerable: true, get: function () { return AsyncSubject_1.AsyncSubject; } });
25289
25660
  var asap_1 = /*@__PURE__*/ requireAsap();
25290
- Object.defineProperty(exports, "asap", { enumerable: true, get: function () { return asap_1.asap; } });
25291
- Object.defineProperty(exports, "asapScheduler", { enumerable: true, get: function () { return asap_1.asapScheduler; } });
25661
+ Object.defineProperty(exports$1, "asap", { enumerable: true, get: function () { return asap_1.asap; } });
25662
+ Object.defineProperty(exports$1, "asapScheduler", { enumerable: true, get: function () { return asap_1.asapScheduler; } });
25292
25663
  var async_1 = /*@__PURE__*/ requireAsync();
25293
- Object.defineProperty(exports, "async", { enumerable: true, get: function () { return async_1.async; } });
25294
- Object.defineProperty(exports, "asyncScheduler", { enumerable: true, get: function () { return async_1.asyncScheduler; } });
25664
+ Object.defineProperty(exports$1, "async", { enumerable: true, get: function () { return async_1.async; } });
25665
+ Object.defineProperty(exports$1, "asyncScheduler", { enumerable: true, get: function () { return async_1.asyncScheduler; } });
25295
25666
  var queue_1 = /*@__PURE__*/ requireQueue();
25296
- Object.defineProperty(exports, "queue", { enumerable: true, get: function () { return queue_1.queue; } });
25297
- Object.defineProperty(exports, "queueScheduler", { enumerable: true, get: function () { return queue_1.queueScheduler; } });
25667
+ Object.defineProperty(exports$1, "queue", { enumerable: true, get: function () { return queue_1.queue; } });
25668
+ Object.defineProperty(exports$1, "queueScheduler", { enumerable: true, get: function () { return queue_1.queueScheduler; } });
25298
25669
  var animationFrame_1 = /*@__PURE__*/ requireAnimationFrame();
25299
- Object.defineProperty(exports, "animationFrame", { enumerable: true, get: function () { return animationFrame_1.animationFrame; } });
25300
- Object.defineProperty(exports, "animationFrameScheduler", { enumerable: true, get: function () { return animationFrame_1.animationFrameScheduler; } });
25670
+ Object.defineProperty(exports$1, "animationFrame", { enumerable: true, get: function () { return animationFrame_1.animationFrame; } });
25671
+ Object.defineProperty(exports$1, "animationFrameScheduler", { enumerable: true, get: function () { return animationFrame_1.animationFrameScheduler; } });
25301
25672
  var VirtualTimeScheduler_1 = /*@__PURE__*/ requireVirtualTimeScheduler();
25302
- Object.defineProperty(exports, "VirtualTimeScheduler", { enumerable: true, get: function () { return VirtualTimeScheduler_1.VirtualTimeScheduler; } });
25303
- Object.defineProperty(exports, "VirtualAction", { enumerable: true, get: function () { return VirtualTimeScheduler_1.VirtualAction; } });
25673
+ Object.defineProperty(exports$1, "VirtualTimeScheduler", { enumerable: true, get: function () { return VirtualTimeScheduler_1.VirtualTimeScheduler; } });
25674
+ Object.defineProperty(exports$1, "VirtualAction", { enumerable: true, get: function () { return VirtualTimeScheduler_1.VirtualAction; } });
25304
25675
  var Scheduler_1 = /*@__PURE__*/ requireScheduler();
25305
- Object.defineProperty(exports, "Scheduler", { enumerable: true, get: function () { return Scheduler_1.Scheduler; } });
25676
+ Object.defineProperty(exports$1, "Scheduler", { enumerable: true, get: function () { return Scheduler_1.Scheduler; } });
25306
25677
  var Subscription_1 = /*@__PURE__*/ requireSubscription();
25307
- Object.defineProperty(exports, "Subscription", { enumerable: true, get: function () { return Subscription_1.Subscription; } });
25678
+ Object.defineProperty(exports$1, "Subscription", { enumerable: true, get: function () { return Subscription_1.Subscription; } });
25308
25679
  var Subscriber_1 = /*@__PURE__*/ requireSubscriber();
25309
- Object.defineProperty(exports, "Subscriber", { enumerable: true, get: function () { return Subscriber_1.Subscriber; } });
25680
+ Object.defineProperty(exports$1, "Subscriber", { enumerable: true, get: function () { return Subscriber_1.Subscriber; } });
25310
25681
  var Notification_1 = /*@__PURE__*/ requireNotification();
25311
- Object.defineProperty(exports, "Notification", { enumerable: true, get: function () { return Notification_1.Notification; } });
25312
- Object.defineProperty(exports, "NotificationKind", { enumerable: true, get: function () { return Notification_1.NotificationKind; } });
25682
+ Object.defineProperty(exports$1, "Notification", { enumerable: true, get: function () { return Notification_1.Notification; } });
25683
+ Object.defineProperty(exports$1, "NotificationKind", { enumerable: true, get: function () { return Notification_1.NotificationKind; } });
25313
25684
  var pipe_1 = /*@__PURE__*/ requirePipe();
25314
- Object.defineProperty(exports, "pipe", { enumerable: true, get: function () { return pipe_1.pipe; } });
25685
+ Object.defineProperty(exports$1, "pipe", { enumerable: true, get: function () { return pipe_1.pipe; } });
25315
25686
  var noop_1 = /*@__PURE__*/ requireNoop();
25316
- Object.defineProperty(exports, "noop", { enumerable: true, get: function () { return noop_1.noop; } });
25687
+ Object.defineProperty(exports$1, "noop", { enumerable: true, get: function () { return noop_1.noop; } });
25317
25688
  var identity_1 = /*@__PURE__*/ requireIdentity();
25318
- Object.defineProperty(exports, "identity", { enumerable: true, get: function () { return identity_1.identity; } });
25689
+ Object.defineProperty(exports$1, "identity", { enumerable: true, get: function () { return identity_1.identity; } });
25319
25690
  var isObservable_1 = /*@__PURE__*/ requireIsObservable();
25320
- Object.defineProperty(exports, "isObservable", { enumerable: true, get: function () { return isObservable_1.isObservable; } });
25691
+ Object.defineProperty(exports$1, "isObservable", { enumerable: true, get: function () { return isObservable_1.isObservable; } });
25321
25692
  var lastValueFrom_1 = /*@__PURE__*/ requireLastValueFrom();
25322
- Object.defineProperty(exports, "lastValueFrom", { enumerable: true, get: function () { return lastValueFrom_1.lastValueFrom; } });
25693
+ Object.defineProperty(exports$1, "lastValueFrom", { enumerable: true, get: function () { return lastValueFrom_1.lastValueFrom; } });
25323
25694
  var firstValueFrom_1 = /*@__PURE__*/ requireFirstValueFrom();
25324
- Object.defineProperty(exports, "firstValueFrom", { enumerable: true, get: function () { return firstValueFrom_1.firstValueFrom; } });
25695
+ Object.defineProperty(exports$1, "firstValueFrom", { enumerable: true, get: function () { return firstValueFrom_1.firstValueFrom; } });
25325
25696
  var ArgumentOutOfRangeError_1 = /*@__PURE__*/ requireArgumentOutOfRangeError();
25326
- Object.defineProperty(exports, "ArgumentOutOfRangeError", { enumerable: true, get: function () { return ArgumentOutOfRangeError_1.ArgumentOutOfRangeError; } });
25697
+ Object.defineProperty(exports$1, "ArgumentOutOfRangeError", { enumerable: true, get: function () { return ArgumentOutOfRangeError_1.ArgumentOutOfRangeError; } });
25327
25698
  var EmptyError_1 = /*@__PURE__*/ requireEmptyError();
25328
- Object.defineProperty(exports, "EmptyError", { enumerable: true, get: function () { return EmptyError_1.EmptyError; } });
25699
+ Object.defineProperty(exports$1, "EmptyError", { enumerable: true, get: function () { return EmptyError_1.EmptyError; } });
25329
25700
  var NotFoundError_1 = /*@__PURE__*/ requireNotFoundError();
25330
- Object.defineProperty(exports, "NotFoundError", { enumerable: true, get: function () { return NotFoundError_1.NotFoundError; } });
25701
+ Object.defineProperty(exports$1, "NotFoundError", { enumerable: true, get: function () { return NotFoundError_1.NotFoundError; } });
25331
25702
  var ObjectUnsubscribedError_1 = /*@__PURE__*/ requireObjectUnsubscribedError();
25332
- Object.defineProperty(exports, "ObjectUnsubscribedError", { enumerable: true, get: function () { return ObjectUnsubscribedError_1.ObjectUnsubscribedError; } });
25703
+ Object.defineProperty(exports$1, "ObjectUnsubscribedError", { enumerable: true, get: function () { return ObjectUnsubscribedError_1.ObjectUnsubscribedError; } });
25333
25704
  var SequenceError_1 = /*@__PURE__*/ requireSequenceError();
25334
- Object.defineProperty(exports, "SequenceError", { enumerable: true, get: function () { return SequenceError_1.SequenceError; } });
25705
+ Object.defineProperty(exports$1, "SequenceError", { enumerable: true, get: function () { return SequenceError_1.SequenceError; } });
25335
25706
  var timeout_1 = /*@__PURE__*/ requireTimeout();
25336
- Object.defineProperty(exports, "TimeoutError", { enumerable: true, get: function () { return timeout_1.TimeoutError; } });
25707
+ Object.defineProperty(exports$1, "TimeoutError", { enumerable: true, get: function () { return timeout_1.TimeoutError; } });
25337
25708
  var UnsubscriptionError_1 = /*@__PURE__*/ requireUnsubscriptionError();
25338
- Object.defineProperty(exports, "UnsubscriptionError", { enumerable: true, get: function () { return UnsubscriptionError_1.UnsubscriptionError; } });
25709
+ Object.defineProperty(exports$1, "UnsubscriptionError", { enumerable: true, get: function () { return UnsubscriptionError_1.UnsubscriptionError; } });
25339
25710
  var bindCallback_1 = /*@__PURE__*/ requireBindCallback();
25340
- Object.defineProperty(exports, "bindCallback", { enumerable: true, get: function () { return bindCallback_1.bindCallback; } });
25711
+ Object.defineProperty(exports$1, "bindCallback", { enumerable: true, get: function () { return bindCallback_1.bindCallback; } });
25341
25712
  var bindNodeCallback_1 = /*@__PURE__*/ requireBindNodeCallback();
25342
- Object.defineProperty(exports, "bindNodeCallback", { enumerable: true, get: function () { return bindNodeCallback_1.bindNodeCallback; } });
25713
+ Object.defineProperty(exports$1, "bindNodeCallback", { enumerable: true, get: function () { return bindNodeCallback_1.bindNodeCallback; } });
25343
25714
  var combineLatest_1 = /*@__PURE__*/ requireCombineLatest$1();
25344
- Object.defineProperty(exports, "combineLatest", { enumerable: true, get: function () { return combineLatest_1.combineLatest; } });
25715
+ Object.defineProperty(exports$1, "combineLatest", { enumerable: true, get: function () { return combineLatest_1.combineLatest; } });
25345
25716
  var concat_1 = /*@__PURE__*/ requireConcat$1();
25346
- Object.defineProperty(exports, "concat", { enumerable: true, get: function () { return concat_1.concat; } });
25717
+ Object.defineProperty(exports$1, "concat", { enumerable: true, get: function () { return concat_1.concat; } });
25347
25718
  var connectable_1 = /*@__PURE__*/ requireConnectable();
25348
- Object.defineProperty(exports, "connectable", { enumerable: true, get: function () { return connectable_1.connectable; } });
25719
+ Object.defineProperty(exports$1, "connectable", { enumerable: true, get: function () { return connectable_1.connectable; } });
25349
25720
  var defer_1 = /*@__PURE__*/ requireDefer();
25350
- Object.defineProperty(exports, "defer", { enumerable: true, get: function () { return defer_1.defer; } });
25721
+ Object.defineProperty(exports$1, "defer", { enumerable: true, get: function () { return defer_1.defer; } });
25351
25722
  var empty_1 = /*@__PURE__*/ requireEmpty();
25352
- Object.defineProperty(exports, "empty", { enumerable: true, get: function () { return empty_1.empty; } });
25723
+ Object.defineProperty(exports$1, "empty", { enumerable: true, get: function () { return empty_1.empty; } });
25353
25724
  var forkJoin_1 = /*@__PURE__*/ requireForkJoin();
25354
- Object.defineProperty(exports, "forkJoin", { enumerable: true, get: function () { return forkJoin_1.forkJoin; } });
25725
+ Object.defineProperty(exports$1, "forkJoin", { enumerable: true, get: function () { return forkJoin_1.forkJoin; } });
25355
25726
  var from_1 = /*@__PURE__*/ requireFrom();
25356
- Object.defineProperty(exports, "from", { enumerable: true, get: function () { return from_1.from; } });
25727
+ Object.defineProperty(exports$1, "from", { enumerable: true, get: function () { return from_1.from; } });
25357
25728
  var fromEvent_1 = /*@__PURE__*/ requireFromEvent();
25358
- Object.defineProperty(exports, "fromEvent", { enumerable: true, get: function () { return fromEvent_1.fromEvent; } });
25729
+ Object.defineProperty(exports$1, "fromEvent", { enumerable: true, get: function () { return fromEvent_1.fromEvent; } });
25359
25730
  var fromEventPattern_1 = /*@__PURE__*/ requireFromEventPattern();
25360
- Object.defineProperty(exports, "fromEventPattern", { enumerable: true, get: function () { return fromEventPattern_1.fromEventPattern; } });
25731
+ Object.defineProperty(exports$1, "fromEventPattern", { enumerable: true, get: function () { return fromEventPattern_1.fromEventPattern; } });
25361
25732
  var generate_1 = /*@__PURE__*/ requireGenerate();
25362
- Object.defineProperty(exports, "generate", { enumerable: true, get: function () { return generate_1.generate; } });
25733
+ Object.defineProperty(exports$1, "generate", { enumerable: true, get: function () { return generate_1.generate; } });
25363
25734
  var iif_1 = /*@__PURE__*/ requireIif();
25364
- Object.defineProperty(exports, "iif", { enumerable: true, get: function () { return iif_1.iif; } });
25735
+ Object.defineProperty(exports$1, "iif", { enumerable: true, get: function () { return iif_1.iif; } });
25365
25736
  var interval_1 = /*@__PURE__*/ requireInterval();
25366
- Object.defineProperty(exports, "interval", { enumerable: true, get: function () { return interval_1.interval; } });
25737
+ Object.defineProperty(exports$1, "interval", { enumerable: true, get: function () { return interval_1.interval; } });
25367
25738
  var merge_1 = /*@__PURE__*/ requireMerge$1();
25368
- Object.defineProperty(exports, "merge", { enumerable: true, get: function () { return merge_1.merge; } });
25739
+ Object.defineProperty(exports$1, "merge", { enumerable: true, get: function () { return merge_1.merge; } });
25369
25740
  var never_1 = /*@__PURE__*/ requireNever();
25370
- Object.defineProperty(exports, "never", { enumerable: true, get: function () { return never_1.never; } });
25741
+ Object.defineProperty(exports$1, "never", { enumerable: true, get: function () { return never_1.never; } });
25371
25742
  var of_1 = /*@__PURE__*/ requireOf();
25372
- Object.defineProperty(exports, "of", { enumerable: true, get: function () { return of_1.of; } });
25743
+ Object.defineProperty(exports$1, "of", { enumerable: true, get: function () { return of_1.of; } });
25373
25744
  var onErrorResumeNext_1 = /*@__PURE__*/ requireOnErrorResumeNext();
25374
- Object.defineProperty(exports, "onErrorResumeNext", { enumerable: true, get: function () { return onErrorResumeNext_1.onErrorResumeNext; } });
25745
+ Object.defineProperty(exports$1, "onErrorResumeNext", { enumerable: true, get: function () { return onErrorResumeNext_1.onErrorResumeNext; } });
25375
25746
  var pairs_1 = /*@__PURE__*/ requirePairs();
25376
- Object.defineProperty(exports, "pairs", { enumerable: true, get: function () { return pairs_1.pairs; } });
25747
+ Object.defineProperty(exports$1, "pairs", { enumerable: true, get: function () { return pairs_1.pairs; } });
25377
25748
  var partition_1 = /*@__PURE__*/ requirePartition();
25378
- Object.defineProperty(exports, "partition", { enumerable: true, get: function () { return partition_1.partition; } });
25749
+ Object.defineProperty(exports$1, "partition", { enumerable: true, get: function () { return partition_1.partition; } });
25379
25750
  var race_1 = /*@__PURE__*/ requireRace();
25380
- Object.defineProperty(exports, "race", { enumerable: true, get: function () { return race_1.race; } });
25751
+ Object.defineProperty(exports$1, "race", { enumerable: true, get: function () { return race_1.race; } });
25381
25752
  var range_1 = /*@__PURE__*/ requireRange();
25382
- Object.defineProperty(exports, "range", { enumerable: true, get: function () { return range_1.range; } });
25753
+ Object.defineProperty(exports$1, "range", { enumerable: true, get: function () { return range_1.range; } });
25383
25754
  var throwError_1 = /*@__PURE__*/ requireThrowError();
25384
- Object.defineProperty(exports, "throwError", { enumerable: true, get: function () { return throwError_1.throwError; } });
25755
+ Object.defineProperty(exports$1, "throwError", { enumerable: true, get: function () { return throwError_1.throwError; } });
25385
25756
  var timer_1 = /*@__PURE__*/ requireTimer();
25386
- Object.defineProperty(exports, "timer", { enumerable: true, get: function () { return timer_1.timer; } });
25757
+ Object.defineProperty(exports$1, "timer", { enumerable: true, get: function () { return timer_1.timer; } });
25387
25758
  var using_1 = /*@__PURE__*/ requireUsing();
25388
- Object.defineProperty(exports, "using", { enumerable: true, get: function () { return using_1.using; } });
25759
+ Object.defineProperty(exports$1, "using", { enumerable: true, get: function () { return using_1.using; } });
25389
25760
  var zip_1 = /*@__PURE__*/ requireZip$1();
25390
- Object.defineProperty(exports, "zip", { enumerable: true, get: function () { return zip_1.zip; } });
25761
+ Object.defineProperty(exports$1, "zip", { enumerable: true, get: function () { return zip_1.zip; } });
25391
25762
  var scheduled_1 = /*@__PURE__*/ requireScheduled();
25392
- Object.defineProperty(exports, "scheduled", { enumerable: true, get: function () { return scheduled_1.scheduled; } });
25763
+ Object.defineProperty(exports$1, "scheduled", { enumerable: true, get: function () { return scheduled_1.scheduled; } });
25393
25764
  var empty_2 = /*@__PURE__*/ requireEmpty();
25394
- Object.defineProperty(exports, "EMPTY", { enumerable: true, get: function () { return empty_2.EMPTY; } });
25765
+ Object.defineProperty(exports$1, "EMPTY", { enumerable: true, get: function () { return empty_2.EMPTY; } });
25395
25766
  var never_2 = /*@__PURE__*/ requireNever();
25396
- Object.defineProperty(exports, "NEVER", { enumerable: true, get: function () { return never_2.NEVER; } });
25397
- __exportStar(/*@__PURE__*/ requireTypes(), exports);
25767
+ Object.defineProperty(exports$1, "NEVER", { enumerable: true, get: function () { return never_2.NEVER; } });
25768
+ __exportStar(/*@__PURE__*/ requireTypes(), exports$1);
25398
25769
  var config_1 = /*@__PURE__*/ requireConfig();
25399
- Object.defineProperty(exports, "config", { enumerable: true, get: function () { return config_1.config; } });
25770
+ Object.defineProperty(exports$1, "config", { enumerable: true, get: function () { return config_1.config; } });
25400
25771
  var audit_1 = /*@__PURE__*/ requireAudit();
25401
- Object.defineProperty(exports, "audit", { enumerable: true, get: function () { return audit_1.audit; } });
25772
+ Object.defineProperty(exports$1, "audit", { enumerable: true, get: function () { return audit_1.audit; } });
25402
25773
  var auditTime_1 = /*@__PURE__*/ requireAuditTime();
25403
- Object.defineProperty(exports, "auditTime", { enumerable: true, get: function () { return auditTime_1.auditTime; } });
25774
+ Object.defineProperty(exports$1, "auditTime", { enumerable: true, get: function () { return auditTime_1.auditTime; } });
25404
25775
  var buffer_1 = /*@__PURE__*/ requireBuffer();
25405
- Object.defineProperty(exports, "buffer", { enumerable: true, get: function () { return buffer_1.buffer; } });
25776
+ Object.defineProperty(exports$1, "buffer", { enumerable: true, get: function () { return buffer_1.buffer; } });
25406
25777
  var bufferCount_1 = /*@__PURE__*/ requireBufferCount();
25407
- Object.defineProperty(exports, "bufferCount", { enumerable: true, get: function () { return bufferCount_1.bufferCount; } });
25778
+ Object.defineProperty(exports$1, "bufferCount", { enumerable: true, get: function () { return bufferCount_1.bufferCount; } });
25408
25779
  var bufferTime_1 = /*@__PURE__*/ requireBufferTime();
25409
- Object.defineProperty(exports, "bufferTime", { enumerable: true, get: function () { return bufferTime_1.bufferTime; } });
25780
+ Object.defineProperty(exports$1, "bufferTime", { enumerable: true, get: function () { return bufferTime_1.bufferTime; } });
25410
25781
  var bufferToggle_1 = /*@__PURE__*/ requireBufferToggle();
25411
- Object.defineProperty(exports, "bufferToggle", { enumerable: true, get: function () { return bufferToggle_1.bufferToggle; } });
25782
+ Object.defineProperty(exports$1, "bufferToggle", { enumerable: true, get: function () { return bufferToggle_1.bufferToggle; } });
25412
25783
  var bufferWhen_1 = /*@__PURE__*/ requireBufferWhen();
25413
- Object.defineProperty(exports, "bufferWhen", { enumerable: true, get: function () { return bufferWhen_1.bufferWhen; } });
25784
+ Object.defineProperty(exports$1, "bufferWhen", { enumerable: true, get: function () { return bufferWhen_1.bufferWhen; } });
25414
25785
  var catchError_1 = /*@__PURE__*/ requireCatchError();
25415
- Object.defineProperty(exports, "catchError", { enumerable: true, get: function () { return catchError_1.catchError; } });
25786
+ Object.defineProperty(exports$1, "catchError", { enumerable: true, get: function () { return catchError_1.catchError; } });
25416
25787
  var combineAll_1 = /*@__PURE__*/ requireCombineAll();
25417
- Object.defineProperty(exports, "combineAll", { enumerable: true, get: function () { return combineAll_1.combineAll; } });
25788
+ Object.defineProperty(exports$1, "combineAll", { enumerable: true, get: function () { return combineAll_1.combineAll; } });
25418
25789
  var combineLatestAll_1 = /*@__PURE__*/ requireCombineLatestAll();
25419
- Object.defineProperty(exports, "combineLatestAll", { enumerable: true, get: function () { return combineLatestAll_1.combineLatestAll; } });
25790
+ Object.defineProperty(exports$1, "combineLatestAll", { enumerable: true, get: function () { return combineLatestAll_1.combineLatestAll; } });
25420
25791
  var combineLatestWith_1 = /*@__PURE__*/ requireCombineLatestWith();
25421
- Object.defineProperty(exports, "combineLatestWith", { enumerable: true, get: function () { return combineLatestWith_1.combineLatestWith; } });
25792
+ Object.defineProperty(exports$1, "combineLatestWith", { enumerable: true, get: function () { return combineLatestWith_1.combineLatestWith; } });
25422
25793
  var concatAll_1 = /*@__PURE__*/ requireConcatAll();
25423
- Object.defineProperty(exports, "concatAll", { enumerable: true, get: function () { return concatAll_1.concatAll; } });
25794
+ Object.defineProperty(exports$1, "concatAll", { enumerable: true, get: function () { return concatAll_1.concatAll; } });
25424
25795
  var concatMap_1 = /*@__PURE__*/ requireConcatMap();
25425
- Object.defineProperty(exports, "concatMap", { enumerable: true, get: function () { return concatMap_1.concatMap; } });
25796
+ Object.defineProperty(exports$1, "concatMap", { enumerable: true, get: function () { return concatMap_1.concatMap; } });
25426
25797
  var concatMapTo_1 = /*@__PURE__*/ requireConcatMapTo();
25427
- Object.defineProperty(exports, "concatMapTo", { enumerable: true, get: function () { return concatMapTo_1.concatMapTo; } });
25798
+ Object.defineProperty(exports$1, "concatMapTo", { enumerable: true, get: function () { return concatMapTo_1.concatMapTo; } });
25428
25799
  var concatWith_1 = /*@__PURE__*/ requireConcatWith();
25429
- Object.defineProperty(exports, "concatWith", { enumerable: true, get: function () { return concatWith_1.concatWith; } });
25800
+ Object.defineProperty(exports$1, "concatWith", { enumerable: true, get: function () { return concatWith_1.concatWith; } });
25430
25801
  var connect_1 = /*@__PURE__*/ requireConnect();
25431
- Object.defineProperty(exports, "connect", { enumerable: true, get: function () { return connect_1.connect; } });
25802
+ Object.defineProperty(exports$1, "connect", { enumerable: true, get: function () { return connect_1.connect; } });
25432
25803
  var count_1 = /*@__PURE__*/ requireCount();
25433
- Object.defineProperty(exports, "count", { enumerable: true, get: function () { return count_1.count; } });
25804
+ Object.defineProperty(exports$1, "count", { enumerable: true, get: function () { return count_1.count; } });
25434
25805
  var debounce_1 = /*@__PURE__*/ requireDebounce();
25435
- Object.defineProperty(exports, "debounce", { enumerable: true, get: function () { return debounce_1.debounce; } });
25806
+ Object.defineProperty(exports$1, "debounce", { enumerable: true, get: function () { return debounce_1.debounce; } });
25436
25807
  var debounceTime_1 = /*@__PURE__*/ requireDebounceTime();
25437
- Object.defineProperty(exports, "debounceTime", { enumerable: true, get: function () { return debounceTime_1.debounceTime; } });
25808
+ Object.defineProperty(exports$1, "debounceTime", { enumerable: true, get: function () { return debounceTime_1.debounceTime; } });
25438
25809
  var defaultIfEmpty_1 = /*@__PURE__*/ requireDefaultIfEmpty();
25439
- Object.defineProperty(exports, "defaultIfEmpty", { enumerable: true, get: function () { return defaultIfEmpty_1.defaultIfEmpty; } });
25810
+ Object.defineProperty(exports$1, "defaultIfEmpty", { enumerable: true, get: function () { return defaultIfEmpty_1.defaultIfEmpty; } });
25440
25811
  var delay_1 = /*@__PURE__*/ requireDelay();
25441
- Object.defineProperty(exports, "delay", { enumerable: true, get: function () { return delay_1.delay; } });
25812
+ Object.defineProperty(exports$1, "delay", { enumerable: true, get: function () { return delay_1.delay; } });
25442
25813
  var delayWhen_1 = /*@__PURE__*/ requireDelayWhen();
25443
- Object.defineProperty(exports, "delayWhen", { enumerable: true, get: function () { return delayWhen_1.delayWhen; } });
25814
+ Object.defineProperty(exports$1, "delayWhen", { enumerable: true, get: function () { return delayWhen_1.delayWhen; } });
25444
25815
  var dematerialize_1 = /*@__PURE__*/ requireDematerialize();
25445
- Object.defineProperty(exports, "dematerialize", { enumerable: true, get: function () { return dematerialize_1.dematerialize; } });
25816
+ Object.defineProperty(exports$1, "dematerialize", { enumerable: true, get: function () { return dematerialize_1.dematerialize; } });
25446
25817
  var distinct_1 = /*@__PURE__*/ requireDistinct();
25447
- Object.defineProperty(exports, "distinct", { enumerable: true, get: function () { return distinct_1.distinct; } });
25818
+ Object.defineProperty(exports$1, "distinct", { enumerable: true, get: function () { return distinct_1.distinct; } });
25448
25819
  var distinctUntilChanged_1 = /*@__PURE__*/ requireDistinctUntilChanged();
25449
- Object.defineProperty(exports, "distinctUntilChanged", { enumerable: true, get: function () { return distinctUntilChanged_1.distinctUntilChanged; } });
25820
+ Object.defineProperty(exports$1, "distinctUntilChanged", { enumerable: true, get: function () { return distinctUntilChanged_1.distinctUntilChanged; } });
25450
25821
  var distinctUntilKeyChanged_1 = /*@__PURE__*/ requireDistinctUntilKeyChanged();
25451
- Object.defineProperty(exports, "distinctUntilKeyChanged", { enumerable: true, get: function () { return distinctUntilKeyChanged_1.distinctUntilKeyChanged; } });
25822
+ Object.defineProperty(exports$1, "distinctUntilKeyChanged", { enumerable: true, get: function () { return distinctUntilKeyChanged_1.distinctUntilKeyChanged; } });
25452
25823
  var elementAt_1 = /*@__PURE__*/ requireElementAt();
25453
- Object.defineProperty(exports, "elementAt", { enumerable: true, get: function () { return elementAt_1.elementAt; } });
25824
+ Object.defineProperty(exports$1, "elementAt", { enumerable: true, get: function () { return elementAt_1.elementAt; } });
25454
25825
  var endWith_1 = /*@__PURE__*/ requireEndWith();
25455
- Object.defineProperty(exports, "endWith", { enumerable: true, get: function () { return endWith_1.endWith; } });
25826
+ Object.defineProperty(exports$1, "endWith", { enumerable: true, get: function () { return endWith_1.endWith; } });
25456
25827
  var every_1 = /*@__PURE__*/ requireEvery();
25457
- Object.defineProperty(exports, "every", { enumerable: true, get: function () { return every_1.every; } });
25828
+ Object.defineProperty(exports$1, "every", { enumerable: true, get: function () { return every_1.every; } });
25458
25829
  var exhaust_1 = /*@__PURE__*/ requireExhaust();
25459
- Object.defineProperty(exports, "exhaust", { enumerable: true, get: function () { return exhaust_1.exhaust; } });
25830
+ Object.defineProperty(exports$1, "exhaust", { enumerable: true, get: function () { return exhaust_1.exhaust; } });
25460
25831
  var exhaustAll_1 = /*@__PURE__*/ requireExhaustAll();
25461
- Object.defineProperty(exports, "exhaustAll", { enumerable: true, get: function () { return exhaustAll_1.exhaustAll; } });
25832
+ Object.defineProperty(exports$1, "exhaustAll", { enumerable: true, get: function () { return exhaustAll_1.exhaustAll; } });
25462
25833
  var exhaustMap_1 = /*@__PURE__*/ requireExhaustMap();
25463
- Object.defineProperty(exports, "exhaustMap", { enumerable: true, get: function () { return exhaustMap_1.exhaustMap; } });
25834
+ Object.defineProperty(exports$1, "exhaustMap", { enumerable: true, get: function () { return exhaustMap_1.exhaustMap; } });
25464
25835
  var expand_1 = /*@__PURE__*/ requireExpand();
25465
- Object.defineProperty(exports, "expand", { enumerable: true, get: function () { return expand_1.expand; } });
25836
+ Object.defineProperty(exports$1, "expand", { enumerable: true, get: function () { return expand_1.expand; } });
25466
25837
  var filter_1 = /*@__PURE__*/ requireFilter();
25467
- Object.defineProperty(exports, "filter", { enumerable: true, get: function () { return filter_1.filter; } });
25838
+ Object.defineProperty(exports$1, "filter", { enumerable: true, get: function () { return filter_1.filter; } });
25468
25839
  var finalize_1 = /*@__PURE__*/ requireFinalize();
25469
- Object.defineProperty(exports, "finalize", { enumerable: true, get: function () { return finalize_1.finalize; } });
25840
+ Object.defineProperty(exports$1, "finalize", { enumerable: true, get: function () { return finalize_1.finalize; } });
25470
25841
  var find_1 = /*@__PURE__*/ requireFind();
25471
- Object.defineProperty(exports, "find", { enumerable: true, get: function () { return find_1.find; } });
25842
+ Object.defineProperty(exports$1, "find", { enumerable: true, get: function () { return find_1.find; } });
25472
25843
  var findIndex_1 = /*@__PURE__*/ requireFindIndex();
25473
- Object.defineProperty(exports, "findIndex", { enumerable: true, get: function () { return findIndex_1.findIndex; } });
25844
+ Object.defineProperty(exports$1, "findIndex", { enumerable: true, get: function () { return findIndex_1.findIndex; } });
25474
25845
  var first_1 = /*@__PURE__*/ requireFirst();
25475
- Object.defineProperty(exports, "first", { enumerable: true, get: function () { return first_1.first; } });
25846
+ Object.defineProperty(exports$1, "first", { enumerable: true, get: function () { return first_1.first; } });
25476
25847
  var groupBy_1 = /*@__PURE__*/ requireGroupBy();
25477
- Object.defineProperty(exports, "groupBy", { enumerable: true, get: function () { return groupBy_1.groupBy; } });
25848
+ Object.defineProperty(exports$1, "groupBy", { enumerable: true, get: function () { return groupBy_1.groupBy; } });
25478
25849
  var ignoreElements_1 = /*@__PURE__*/ requireIgnoreElements();
25479
- Object.defineProperty(exports, "ignoreElements", { enumerable: true, get: function () { return ignoreElements_1.ignoreElements; } });
25850
+ Object.defineProperty(exports$1, "ignoreElements", { enumerable: true, get: function () { return ignoreElements_1.ignoreElements; } });
25480
25851
  var isEmpty_1 = /*@__PURE__*/ requireIsEmpty();
25481
- Object.defineProperty(exports, "isEmpty", { enumerable: true, get: function () { return isEmpty_1.isEmpty; } });
25852
+ Object.defineProperty(exports$1, "isEmpty", { enumerable: true, get: function () { return isEmpty_1.isEmpty; } });
25482
25853
  var last_1 = /*@__PURE__*/ requireLast();
25483
- Object.defineProperty(exports, "last", { enumerable: true, get: function () { return last_1.last; } });
25854
+ Object.defineProperty(exports$1, "last", { enumerable: true, get: function () { return last_1.last; } });
25484
25855
  var map_1 = /*@__PURE__*/ requireMap();
25485
- Object.defineProperty(exports, "map", { enumerable: true, get: function () { return map_1.map; } });
25856
+ Object.defineProperty(exports$1, "map", { enumerable: true, get: function () { return map_1.map; } });
25486
25857
  var mapTo_1 = /*@__PURE__*/ requireMapTo();
25487
- Object.defineProperty(exports, "mapTo", { enumerable: true, get: function () { return mapTo_1.mapTo; } });
25858
+ Object.defineProperty(exports$1, "mapTo", { enumerable: true, get: function () { return mapTo_1.mapTo; } });
25488
25859
  var materialize_1 = /*@__PURE__*/ requireMaterialize();
25489
- Object.defineProperty(exports, "materialize", { enumerable: true, get: function () { return materialize_1.materialize; } });
25860
+ Object.defineProperty(exports$1, "materialize", { enumerable: true, get: function () { return materialize_1.materialize; } });
25490
25861
  var max_1 = /*@__PURE__*/ requireMax();
25491
- Object.defineProperty(exports, "max", { enumerable: true, get: function () { return max_1.max; } });
25862
+ Object.defineProperty(exports$1, "max", { enumerable: true, get: function () { return max_1.max; } });
25492
25863
  var mergeAll_1 = /*@__PURE__*/ requireMergeAll();
25493
- Object.defineProperty(exports, "mergeAll", { enumerable: true, get: function () { return mergeAll_1.mergeAll; } });
25864
+ Object.defineProperty(exports$1, "mergeAll", { enumerable: true, get: function () { return mergeAll_1.mergeAll; } });
25494
25865
  var flatMap_1 = /*@__PURE__*/ requireFlatMap();
25495
- Object.defineProperty(exports, "flatMap", { enumerable: true, get: function () { return flatMap_1.flatMap; } });
25866
+ Object.defineProperty(exports$1, "flatMap", { enumerable: true, get: function () { return flatMap_1.flatMap; } });
25496
25867
  var mergeMap_1 = /*@__PURE__*/ requireMergeMap();
25497
- Object.defineProperty(exports, "mergeMap", { enumerable: true, get: function () { return mergeMap_1.mergeMap; } });
25868
+ Object.defineProperty(exports$1, "mergeMap", { enumerable: true, get: function () { return mergeMap_1.mergeMap; } });
25498
25869
  var mergeMapTo_1 = /*@__PURE__*/ requireMergeMapTo();
25499
- Object.defineProperty(exports, "mergeMapTo", { enumerable: true, get: function () { return mergeMapTo_1.mergeMapTo; } });
25870
+ Object.defineProperty(exports$1, "mergeMapTo", { enumerable: true, get: function () { return mergeMapTo_1.mergeMapTo; } });
25500
25871
  var mergeScan_1 = /*@__PURE__*/ requireMergeScan();
25501
- Object.defineProperty(exports, "mergeScan", { enumerable: true, get: function () { return mergeScan_1.mergeScan; } });
25872
+ Object.defineProperty(exports$1, "mergeScan", { enumerable: true, get: function () { return mergeScan_1.mergeScan; } });
25502
25873
  var mergeWith_1 = /*@__PURE__*/ requireMergeWith();
25503
- Object.defineProperty(exports, "mergeWith", { enumerable: true, get: function () { return mergeWith_1.mergeWith; } });
25874
+ Object.defineProperty(exports$1, "mergeWith", { enumerable: true, get: function () { return mergeWith_1.mergeWith; } });
25504
25875
  var min_1 = /*@__PURE__*/ requireMin();
25505
- Object.defineProperty(exports, "min", { enumerable: true, get: function () { return min_1.min; } });
25876
+ Object.defineProperty(exports$1, "min", { enumerable: true, get: function () { return min_1.min; } });
25506
25877
  var multicast_1 = /*@__PURE__*/ requireMulticast();
25507
- Object.defineProperty(exports, "multicast", { enumerable: true, get: function () { return multicast_1.multicast; } });
25878
+ Object.defineProperty(exports$1, "multicast", { enumerable: true, get: function () { return multicast_1.multicast; } });
25508
25879
  var observeOn_1 = /*@__PURE__*/ requireObserveOn();
25509
- Object.defineProperty(exports, "observeOn", { enumerable: true, get: function () { return observeOn_1.observeOn; } });
25880
+ Object.defineProperty(exports$1, "observeOn", { enumerable: true, get: function () { return observeOn_1.observeOn; } });
25510
25881
  var onErrorResumeNextWith_1 = /*@__PURE__*/ requireOnErrorResumeNextWith();
25511
- Object.defineProperty(exports, "onErrorResumeNextWith", { enumerable: true, get: function () { return onErrorResumeNextWith_1.onErrorResumeNextWith; } });
25882
+ Object.defineProperty(exports$1, "onErrorResumeNextWith", { enumerable: true, get: function () { return onErrorResumeNextWith_1.onErrorResumeNextWith; } });
25512
25883
  var pairwise_1 = /*@__PURE__*/ requirePairwise();
25513
- Object.defineProperty(exports, "pairwise", { enumerable: true, get: function () { return pairwise_1.pairwise; } });
25884
+ Object.defineProperty(exports$1, "pairwise", { enumerable: true, get: function () { return pairwise_1.pairwise; } });
25514
25885
  var pluck_1 = /*@__PURE__*/ requirePluck();
25515
- Object.defineProperty(exports, "pluck", { enumerable: true, get: function () { return pluck_1.pluck; } });
25886
+ Object.defineProperty(exports$1, "pluck", { enumerable: true, get: function () { return pluck_1.pluck; } });
25516
25887
  var publish_1 = /*@__PURE__*/ requirePublish();
25517
- Object.defineProperty(exports, "publish", { enumerable: true, get: function () { return publish_1.publish; } });
25888
+ Object.defineProperty(exports$1, "publish", { enumerable: true, get: function () { return publish_1.publish; } });
25518
25889
  var publishBehavior_1 = /*@__PURE__*/ requirePublishBehavior();
25519
- Object.defineProperty(exports, "publishBehavior", { enumerable: true, get: function () { return publishBehavior_1.publishBehavior; } });
25890
+ Object.defineProperty(exports$1, "publishBehavior", { enumerable: true, get: function () { return publishBehavior_1.publishBehavior; } });
25520
25891
  var publishLast_1 = /*@__PURE__*/ requirePublishLast();
25521
- Object.defineProperty(exports, "publishLast", { enumerable: true, get: function () { return publishLast_1.publishLast; } });
25892
+ Object.defineProperty(exports$1, "publishLast", { enumerable: true, get: function () { return publishLast_1.publishLast; } });
25522
25893
  var publishReplay_1 = /*@__PURE__*/ requirePublishReplay();
25523
- Object.defineProperty(exports, "publishReplay", { enumerable: true, get: function () { return publishReplay_1.publishReplay; } });
25894
+ Object.defineProperty(exports$1, "publishReplay", { enumerable: true, get: function () { return publishReplay_1.publishReplay; } });
25524
25895
  var raceWith_1 = /*@__PURE__*/ requireRaceWith();
25525
- Object.defineProperty(exports, "raceWith", { enumerable: true, get: function () { return raceWith_1.raceWith; } });
25896
+ Object.defineProperty(exports$1, "raceWith", { enumerable: true, get: function () { return raceWith_1.raceWith; } });
25526
25897
  var reduce_1 = /*@__PURE__*/ requireReduce();
25527
- Object.defineProperty(exports, "reduce", { enumerable: true, get: function () { return reduce_1.reduce; } });
25898
+ Object.defineProperty(exports$1, "reduce", { enumerable: true, get: function () { return reduce_1.reduce; } });
25528
25899
  var repeat_1 = /*@__PURE__*/ requireRepeat();
25529
- Object.defineProperty(exports, "repeat", { enumerable: true, get: function () { return repeat_1.repeat; } });
25900
+ Object.defineProperty(exports$1, "repeat", { enumerable: true, get: function () { return repeat_1.repeat; } });
25530
25901
  var repeatWhen_1 = /*@__PURE__*/ requireRepeatWhen();
25531
- Object.defineProperty(exports, "repeatWhen", { enumerable: true, get: function () { return repeatWhen_1.repeatWhen; } });
25902
+ Object.defineProperty(exports$1, "repeatWhen", { enumerable: true, get: function () { return repeatWhen_1.repeatWhen; } });
25532
25903
  var retry_1 = /*@__PURE__*/ requireRetry();
25533
- Object.defineProperty(exports, "retry", { enumerable: true, get: function () { return retry_1.retry; } });
25904
+ Object.defineProperty(exports$1, "retry", { enumerable: true, get: function () { return retry_1.retry; } });
25534
25905
  var retryWhen_1 = /*@__PURE__*/ requireRetryWhen();
25535
- Object.defineProperty(exports, "retryWhen", { enumerable: true, get: function () { return retryWhen_1.retryWhen; } });
25906
+ Object.defineProperty(exports$1, "retryWhen", { enumerable: true, get: function () { return retryWhen_1.retryWhen; } });
25536
25907
  var refCount_1 = /*@__PURE__*/ requireRefCount();
25537
- Object.defineProperty(exports, "refCount", { enumerable: true, get: function () { return refCount_1.refCount; } });
25908
+ Object.defineProperty(exports$1, "refCount", { enumerable: true, get: function () { return refCount_1.refCount; } });
25538
25909
  var sample_1 = /*@__PURE__*/ requireSample();
25539
- Object.defineProperty(exports, "sample", { enumerable: true, get: function () { return sample_1.sample; } });
25910
+ Object.defineProperty(exports$1, "sample", { enumerable: true, get: function () { return sample_1.sample; } });
25540
25911
  var sampleTime_1 = /*@__PURE__*/ requireSampleTime();
25541
- Object.defineProperty(exports, "sampleTime", { enumerable: true, get: function () { return sampleTime_1.sampleTime; } });
25912
+ Object.defineProperty(exports$1, "sampleTime", { enumerable: true, get: function () { return sampleTime_1.sampleTime; } });
25542
25913
  var scan_1 = /*@__PURE__*/ requireScan();
25543
- Object.defineProperty(exports, "scan", { enumerable: true, get: function () { return scan_1.scan; } });
25914
+ Object.defineProperty(exports$1, "scan", { enumerable: true, get: function () { return scan_1.scan; } });
25544
25915
  var sequenceEqual_1 = /*@__PURE__*/ requireSequenceEqual();
25545
- Object.defineProperty(exports, "sequenceEqual", { enumerable: true, get: function () { return sequenceEqual_1.sequenceEqual; } });
25916
+ Object.defineProperty(exports$1, "sequenceEqual", { enumerable: true, get: function () { return sequenceEqual_1.sequenceEqual; } });
25546
25917
  var share_1 = /*@__PURE__*/ requireShare();
25547
- Object.defineProperty(exports, "share", { enumerable: true, get: function () { return share_1.share; } });
25918
+ Object.defineProperty(exports$1, "share", { enumerable: true, get: function () { return share_1.share; } });
25548
25919
  var shareReplay_1 = /*@__PURE__*/ requireShareReplay();
25549
- Object.defineProperty(exports, "shareReplay", { enumerable: true, get: function () { return shareReplay_1.shareReplay; } });
25920
+ Object.defineProperty(exports$1, "shareReplay", { enumerable: true, get: function () { return shareReplay_1.shareReplay; } });
25550
25921
  var single_1 = /*@__PURE__*/ requireSingle();
25551
- Object.defineProperty(exports, "single", { enumerable: true, get: function () { return single_1.single; } });
25922
+ Object.defineProperty(exports$1, "single", { enumerable: true, get: function () { return single_1.single; } });
25552
25923
  var skip_1 = /*@__PURE__*/ requireSkip();
25553
- Object.defineProperty(exports, "skip", { enumerable: true, get: function () { return skip_1.skip; } });
25924
+ Object.defineProperty(exports$1, "skip", { enumerable: true, get: function () { return skip_1.skip; } });
25554
25925
  var skipLast_1 = /*@__PURE__*/ requireSkipLast();
25555
- Object.defineProperty(exports, "skipLast", { enumerable: true, get: function () { return skipLast_1.skipLast; } });
25926
+ Object.defineProperty(exports$1, "skipLast", { enumerable: true, get: function () { return skipLast_1.skipLast; } });
25556
25927
  var skipUntil_1 = /*@__PURE__*/ requireSkipUntil();
25557
- Object.defineProperty(exports, "skipUntil", { enumerable: true, get: function () { return skipUntil_1.skipUntil; } });
25928
+ Object.defineProperty(exports$1, "skipUntil", { enumerable: true, get: function () { return skipUntil_1.skipUntil; } });
25558
25929
  var skipWhile_1 = /*@__PURE__*/ requireSkipWhile();
25559
- Object.defineProperty(exports, "skipWhile", { enumerable: true, get: function () { return skipWhile_1.skipWhile; } });
25930
+ Object.defineProperty(exports$1, "skipWhile", { enumerable: true, get: function () { return skipWhile_1.skipWhile; } });
25560
25931
  var startWith_1 = /*@__PURE__*/ requireStartWith();
25561
- Object.defineProperty(exports, "startWith", { enumerable: true, get: function () { return startWith_1.startWith; } });
25932
+ Object.defineProperty(exports$1, "startWith", { enumerable: true, get: function () { return startWith_1.startWith; } });
25562
25933
  var subscribeOn_1 = /*@__PURE__*/ requireSubscribeOn();
25563
- Object.defineProperty(exports, "subscribeOn", { enumerable: true, get: function () { return subscribeOn_1.subscribeOn; } });
25934
+ Object.defineProperty(exports$1, "subscribeOn", { enumerable: true, get: function () { return subscribeOn_1.subscribeOn; } });
25564
25935
  var switchAll_1 = /*@__PURE__*/ requireSwitchAll();
25565
- Object.defineProperty(exports, "switchAll", { enumerable: true, get: function () { return switchAll_1.switchAll; } });
25936
+ Object.defineProperty(exports$1, "switchAll", { enumerable: true, get: function () { return switchAll_1.switchAll; } });
25566
25937
  var switchMap_1 = /*@__PURE__*/ requireSwitchMap();
25567
- Object.defineProperty(exports, "switchMap", { enumerable: true, get: function () { return switchMap_1.switchMap; } });
25938
+ Object.defineProperty(exports$1, "switchMap", { enumerable: true, get: function () { return switchMap_1.switchMap; } });
25568
25939
  var switchMapTo_1 = /*@__PURE__*/ requireSwitchMapTo();
25569
- Object.defineProperty(exports, "switchMapTo", { enumerable: true, get: function () { return switchMapTo_1.switchMapTo; } });
25940
+ Object.defineProperty(exports$1, "switchMapTo", { enumerable: true, get: function () { return switchMapTo_1.switchMapTo; } });
25570
25941
  var switchScan_1 = /*@__PURE__*/ requireSwitchScan();
25571
- Object.defineProperty(exports, "switchScan", { enumerable: true, get: function () { return switchScan_1.switchScan; } });
25942
+ Object.defineProperty(exports$1, "switchScan", { enumerable: true, get: function () { return switchScan_1.switchScan; } });
25572
25943
  var take_1 = /*@__PURE__*/ requireTake();
25573
- Object.defineProperty(exports, "take", { enumerable: true, get: function () { return take_1.take; } });
25944
+ Object.defineProperty(exports$1, "take", { enumerable: true, get: function () { return take_1.take; } });
25574
25945
  var takeLast_1 = /*@__PURE__*/ requireTakeLast();
25575
- Object.defineProperty(exports, "takeLast", { enumerable: true, get: function () { return takeLast_1.takeLast; } });
25946
+ Object.defineProperty(exports$1, "takeLast", { enumerable: true, get: function () { return takeLast_1.takeLast; } });
25576
25947
  var takeUntil_1 = /*@__PURE__*/ requireTakeUntil();
25577
- Object.defineProperty(exports, "takeUntil", { enumerable: true, get: function () { return takeUntil_1.takeUntil; } });
25948
+ Object.defineProperty(exports$1, "takeUntil", { enumerable: true, get: function () { return takeUntil_1.takeUntil; } });
25578
25949
  var takeWhile_1 = /*@__PURE__*/ requireTakeWhile();
25579
- Object.defineProperty(exports, "takeWhile", { enumerable: true, get: function () { return takeWhile_1.takeWhile; } });
25950
+ Object.defineProperty(exports$1, "takeWhile", { enumerable: true, get: function () { return takeWhile_1.takeWhile; } });
25580
25951
  var tap_1 = /*@__PURE__*/ requireTap();
25581
- Object.defineProperty(exports, "tap", { enumerable: true, get: function () { return tap_1.tap; } });
25952
+ Object.defineProperty(exports$1, "tap", { enumerable: true, get: function () { return tap_1.tap; } });
25582
25953
  var throttle_1 = /*@__PURE__*/ requireThrottle();
25583
- Object.defineProperty(exports, "throttle", { enumerable: true, get: function () { return throttle_1.throttle; } });
25954
+ Object.defineProperty(exports$1, "throttle", { enumerable: true, get: function () { return throttle_1.throttle; } });
25584
25955
  var throttleTime_1 = /*@__PURE__*/ requireThrottleTime();
25585
- Object.defineProperty(exports, "throttleTime", { enumerable: true, get: function () { return throttleTime_1.throttleTime; } });
25956
+ Object.defineProperty(exports$1, "throttleTime", { enumerable: true, get: function () { return throttleTime_1.throttleTime; } });
25586
25957
  var throwIfEmpty_1 = /*@__PURE__*/ requireThrowIfEmpty();
25587
- Object.defineProperty(exports, "throwIfEmpty", { enumerable: true, get: function () { return throwIfEmpty_1.throwIfEmpty; } });
25958
+ Object.defineProperty(exports$1, "throwIfEmpty", { enumerable: true, get: function () { return throwIfEmpty_1.throwIfEmpty; } });
25588
25959
  var timeInterval_1 = /*@__PURE__*/ requireTimeInterval();
25589
- Object.defineProperty(exports, "timeInterval", { enumerable: true, get: function () { return timeInterval_1.timeInterval; } });
25960
+ Object.defineProperty(exports$1, "timeInterval", { enumerable: true, get: function () { return timeInterval_1.timeInterval; } });
25590
25961
  var timeout_2 = /*@__PURE__*/ requireTimeout();
25591
- Object.defineProperty(exports, "timeout", { enumerable: true, get: function () { return timeout_2.timeout; } });
25962
+ Object.defineProperty(exports$1, "timeout", { enumerable: true, get: function () { return timeout_2.timeout; } });
25592
25963
  var timeoutWith_1 = /*@__PURE__*/ requireTimeoutWith();
25593
- Object.defineProperty(exports, "timeoutWith", { enumerable: true, get: function () { return timeoutWith_1.timeoutWith; } });
25964
+ Object.defineProperty(exports$1, "timeoutWith", { enumerable: true, get: function () { return timeoutWith_1.timeoutWith; } });
25594
25965
  var timestamp_1 = /*@__PURE__*/ requireTimestamp();
25595
- Object.defineProperty(exports, "timestamp", { enumerable: true, get: function () { return timestamp_1.timestamp; } });
25966
+ Object.defineProperty(exports$1, "timestamp", { enumerable: true, get: function () { return timestamp_1.timestamp; } });
25596
25967
  var toArray_1 = /*@__PURE__*/ requireToArray();
25597
- Object.defineProperty(exports, "toArray", { enumerable: true, get: function () { return toArray_1.toArray; } });
25968
+ Object.defineProperty(exports$1, "toArray", { enumerable: true, get: function () { return toArray_1.toArray; } });
25598
25969
  var window_1 = /*@__PURE__*/ requireWindow();
25599
- Object.defineProperty(exports, "window", { enumerable: true, get: function () { return window_1.window; } });
25970
+ Object.defineProperty(exports$1, "window", { enumerable: true, get: function () { return window_1.window; } });
25600
25971
  var windowCount_1 = /*@__PURE__*/ requireWindowCount();
25601
- Object.defineProperty(exports, "windowCount", { enumerable: true, get: function () { return windowCount_1.windowCount; } });
25972
+ Object.defineProperty(exports$1, "windowCount", { enumerable: true, get: function () { return windowCount_1.windowCount; } });
25602
25973
  var windowTime_1 = /*@__PURE__*/ requireWindowTime();
25603
- Object.defineProperty(exports, "windowTime", { enumerable: true, get: function () { return windowTime_1.windowTime; } });
25974
+ Object.defineProperty(exports$1, "windowTime", { enumerable: true, get: function () { return windowTime_1.windowTime; } });
25604
25975
  var windowToggle_1 = /*@__PURE__*/ requireWindowToggle();
25605
- Object.defineProperty(exports, "windowToggle", { enumerable: true, get: function () { return windowToggle_1.windowToggle; } });
25976
+ Object.defineProperty(exports$1, "windowToggle", { enumerable: true, get: function () { return windowToggle_1.windowToggle; } });
25606
25977
  var windowWhen_1 = /*@__PURE__*/ requireWindowWhen();
25607
- Object.defineProperty(exports, "windowWhen", { enumerable: true, get: function () { return windowWhen_1.windowWhen; } });
25978
+ Object.defineProperty(exports$1, "windowWhen", { enumerable: true, get: function () { return windowWhen_1.windowWhen; } });
25608
25979
  var withLatestFrom_1 = /*@__PURE__*/ requireWithLatestFrom();
25609
- Object.defineProperty(exports, "withLatestFrom", { enumerable: true, get: function () { return withLatestFrom_1.withLatestFrom; } });
25980
+ Object.defineProperty(exports$1, "withLatestFrom", { enumerable: true, get: function () { return withLatestFrom_1.withLatestFrom; } });
25610
25981
  var zipAll_1 = /*@__PURE__*/ requireZipAll();
25611
- Object.defineProperty(exports, "zipAll", { enumerable: true, get: function () { return zipAll_1.zipAll; } });
25982
+ Object.defineProperty(exports$1, "zipAll", { enumerable: true, get: function () { return zipAll_1.zipAll; } });
25612
25983
  var zipWith_1 = /*@__PURE__*/ requireZipWith();
25613
- Object.defineProperty(exports, "zipWith", { enumerable: true, get: function () { return zipWith_1.zipWith; } });
25984
+ Object.defineProperty(exports$1, "zipWith", { enumerable: true, get: function () { return zipWith_1.zipWith; } });
25614
25985
 
25615
25986
  } (cjs));
25616
25987
  return cjs;
@@ -26027,8 +26398,6 @@ class PromptsRunner {
26027
26398
  const builtInPrompts = {
26028
26399
  input,
26029
26400
  select,
26030
- /** @deprecated `list` is now named `select` */
26031
- list: select,
26032
26401
  number,
26033
26402
  confirm,
26034
26403
  rawlist,