exatok 0.1.1

Exact GPU-resident BPE tokenizer whose token ids match tiktoken byte for byte
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
//! Unicode 16.0.0 general-category bitmasks for pretokenization. OWNER: Pretok.
//!
//! GENERATED DATA, do not hand-edit. Regenerate from `regex-syntax`'s
//! `unicode_tables/general_category.rs` and `unicode_tables/perl_space.rs`
//! (`ucd-generate ... ucd-16.0.0 --chars --exclude surrogate`).
//!
//! Unicode 16.0.0 is not an arbitrary choice, it is the version the reference
//! tokenizer resolves. tiktoken 0.12.0 applies these patterns with the Rust
//! `regex` crate through `fancy-regex`, and `regex-syntax` 0.8.10 and 0.8.11
//! both ship Unicode 16.0.0. That was confirmed against the real encoder rather
//! than assumed: codepoints added in Unicode 16.0.0 (U+1C89, U+A7CB) are
//! letters to tiktoken, while codepoints added in Unicode 17.0.0 (U+088F,
//! U+0C5C, U+A7CE) are not. A different table version moves split points and
//! therefore changes token ids, so the version is pinned here and asserted by
//! `unicode_tables_are_version_16` in `tests/pretokenize_split.rs`.

/// `\p{Lu}` or `\p{Lt}`. Kept as one bit because no pattern distinguishes them:
/// o200k's leading letter class takes both, its trailing class takes neither.
pub(super) const LU_LT: u8 = 1;
/// `\p{Ll}`.
pub(super) const LL: u8 = 2;
/// `\p{Lm}` or `\p{Lo}`. In both o200k letter classes.
pub(super) const LM_LO: u8 = 4;
/// `\p{M}`, i.e. `Mn | Mc | Me`. In both o200k letter classes but NOT in
/// `\p{L}`, which is what makes a leading combining mark a real edge case.
pub(super) const M: u8 = 8;
/// `\p{N}`, i.e. `Nd | Nl | No`.
pub(super) const N: u8 = 16;
/// `\s`. The `regex` crate resolves `\s` to `\p{White_Space}` rather than the
/// ASCII subset; confirmed against tiktoken with U+00A0.
pub(super) const WS: u8 = 32;

/// `\p{L}` = `Lu | Ll | Lt | Lm | Lo`. Derived, so it is not stored; the
/// generator asserts this union reproduces the upstream `LETTER` table exactly.
pub(super) const L: u8 = LU_LT | LL | LM_LO;

/// Unicode version these tables were generated from.
pub(super) const UNICODE_VERSION: &str = "16.0.0";

/// Class bitmask of every ASCII codepoint, indexed directly. Real text is
/// mostly ASCII, so the common case stays one load with no search.
const ASCII_CLASS: [u8; 128] = [
     0,  0,  0,  0,  0,  0,  0,  0,  0, 32, 32, 32, 32, 32,  0,  0,
     0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
    32,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
    16, 16, 16, 16, 16, 16, 16, 16, 16, 16,  0,  0,  0,  0,  0,  0,
     0,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,
     1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  0,  0,  0,  0,  0,
     0,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,
     2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2,  0,  0,  0,  0,  0,
];

/// `(first, last, mask)` for every non-ASCII codepoint run with a nonzero mask,
/// ascending and disjoint. Runs are maximal, so adjacent codepoints sharing a
/// mask collapse into a single entry.
const RANGES: [(u32, u32, u8); 2358] = [
    (0x85, 0x85, 32), (0xa0, 0xa0, 32), (0xaa, 0xaa, 4),
    (0xb2, 0xb3, 16), (0xb5, 0xb5, 2), (0xb9, 0xb9, 16),
    (0xba, 0xba, 4), (0xbc, 0xbe, 16), (0xc0, 0xd6, 1),
    (0xd8, 0xde, 1), (0xdf, 0xf6, 2), (0xf8, 0xff, 2),
    (0x100, 0x100, 1), (0x101, 0x101, 2), (0x102, 0x102, 1),
    (0x103, 0x103, 2), (0x104, 0x104, 1), (0x105, 0x105, 2),
    (0x106, 0x106, 1), (0x107, 0x107, 2), (0x108, 0x108, 1),
    (0x109, 0x109, 2), (0x10a, 0x10a, 1), (0x10b, 0x10b, 2),
    (0x10c, 0x10c, 1), (0x10d, 0x10d, 2), (0x10e, 0x10e, 1),
    (0x10f, 0x10f, 2), (0x110, 0x110, 1), (0x111, 0x111, 2),
    (0x112, 0x112, 1), (0x113, 0x113, 2), (0x114, 0x114, 1),
    (0x115, 0x115, 2), (0x116, 0x116, 1), (0x117, 0x117, 2),
    (0x118, 0x118, 1), (0x119, 0x119, 2), (0x11a, 0x11a, 1),
    (0x11b, 0x11b, 2), (0x11c, 0x11c, 1), (0x11d, 0x11d, 2),
    (0x11e, 0x11e, 1), (0x11f, 0x11f, 2), (0x120, 0x120, 1),
    (0x121, 0x121, 2), (0x122, 0x122, 1), (0x123, 0x123, 2),
    (0x124, 0x124, 1), (0x125, 0x125, 2), (0x126, 0x126, 1),
    (0x127, 0x127, 2), (0x128, 0x128, 1), (0x129, 0x129, 2),
    (0x12a, 0x12a, 1), (0x12b, 0x12b, 2), (0x12c, 0x12c, 1),
    (0x12d, 0x12d, 2), (0x12e, 0x12e, 1), (0x12f, 0x12f, 2),
    (0x130, 0x130, 1), (0x131, 0x131, 2), (0x132, 0x132, 1),
    (0x133, 0x133, 2), (0x134, 0x134, 1), (0x135, 0x135, 2),
    (0x136, 0x136, 1), (0x137, 0x138, 2), (0x139, 0x139, 1),
    (0x13a, 0x13a, 2), (0x13b, 0x13b, 1), (0x13c, 0x13c, 2),
    (0x13d, 0x13d, 1), (0x13e, 0x13e, 2), (0x13f, 0x13f, 1),
    (0x140, 0x140, 2), (0x141, 0x141, 1), (0x142, 0x142, 2),
    (0x143, 0x143, 1), (0x144, 0x144, 2), (0x145, 0x145, 1),
    (0x146, 0x146, 2), (0x147, 0x147, 1), (0x148, 0x149, 2),
    (0x14a, 0x14a, 1), (0x14b, 0x14b, 2), (0x14c, 0x14c, 1),
    (0x14d, 0x14d, 2), (0x14e, 0x14e, 1), (0x14f, 0x14f, 2),
    (0x150, 0x150, 1), (0x151, 0x151, 2), (0x152, 0x152, 1),
    (0x153, 0x153, 2), (0x154, 0x154, 1), (0x155, 0x155, 2),
    (0x156, 0x156, 1), (0x157, 0x157, 2), (0x158, 0x158, 1),
    (0x159, 0x159, 2), (0x15a, 0x15a, 1), (0x15b, 0x15b, 2),
    (0x15c, 0x15c, 1), (0x15d, 0x15d, 2), (0x15e, 0x15e, 1),
    (0x15f, 0x15f, 2), (0x160, 0x160, 1), (0x161, 0x161, 2),
    (0x162, 0x162, 1), (0x163, 0x163, 2), (0x164, 0x164, 1),
    (0x165, 0x165, 2), (0x166, 0x166, 1), (0x167, 0x167, 2),
    (0x168, 0x168, 1), (0x169, 0x169, 2), (0x16a, 0x16a, 1),
    (0x16b, 0x16b, 2), (0x16c, 0x16c, 1), (0x16d, 0x16d, 2),
    (0x16e, 0x16e, 1), (0x16f, 0x16f, 2), (0x170, 0x170, 1),
    (0x171, 0x171, 2), (0x172, 0x172, 1), (0x173, 0x173, 2),
    (0x174, 0x174, 1), (0x175, 0x175, 2), (0x176, 0x176, 1),
    (0x177, 0x177, 2), (0x178, 0x179, 1), (0x17a, 0x17a, 2),
    (0x17b, 0x17b, 1), (0x17c, 0x17c, 2), (0x17d, 0x17d, 1),
    (0x17e, 0x180, 2), (0x181, 0x182, 1), (0x183, 0x183, 2),
    (0x184, 0x184, 1), (0x185, 0x185, 2), (0x186, 0x187, 1),
    (0x188, 0x188, 2), (0x189, 0x18b, 1), (0x18c, 0x18d, 2),
    (0x18e, 0x191, 1), (0x192, 0x192, 2), (0x193, 0x194, 1),
    (0x195, 0x195, 2), (0x196, 0x198, 1), (0x199, 0x19b, 2),
    (0x19c, 0x19d, 1), (0x19e, 0x19e, 2), (0x19f, 0x1a0, 1),
    (0x1a1, 0x1a1, 2), (0x1a2, 0x1a2, 1), (0x1a3, 0x1a3, 2),
    (0x1a4, 0x1a4, 1), (0x1a5, 0x1a5, 2), (0x1a6, 0x1a7, 1),
    (0x1a8, 0x1a8, 2), (0x1a9, 0x1a9, 1), (0x1aa, 0x1ab, 2),
    (0x1ac, 0x1ac, 1), (0x1ad, 0x1ad, 2), (0x1ae, 0x1af, 1),
    (0x1b0, 0x1b0, 2), (0x1b1, 0x1b3, 1), (0x1b4, 0x1b4, 2),
    (0x1b5, 0x1b5, 1), (0x1b6, 0x1b6, 2), (0x1b7, 0x1b8, 1),
    (0x1b9, 0x1ba, 2), (0x1bb, 0x1bb, 4), (0x1bc, 0x1bc, 1),
    (0x1bd, 0x1bf, 2), (0x1c0, 0x1c3, 4), (0x1c4, 0x1c5, 1),
    (0x1c6, 0x1c6, 2), (0x1c7, 0x1c8, 1), (0x1c9, 0x1c9, 2),
    (0x1ca, 0x1cb, 1), (0x1cc, 0x1cc, 2), (0x1cd, 0x1cd, 1),
    (0x1ce, 0x1ce, 2), (0x1cf, 0x1cf, 1), (0x1d0, 0x1d0, 2),
    (0x1d1, 0x1d1, 1), (0x1d2, 0x1d2, 2), (0x1d3, 0x1d3, 1),
    (0x1d4, 0x1d4, 2), (0x1d5, 0x1d5, 1), (0x1d6, 0x1d6, 2),
    (0x1d7, 0x1d7, 1), (0x1d8, 0x1d8, 2), (0x1d9, 0x1d9, 1),
    (0x1da, 0x1da, 2), (0x1db, 0x1db, 1), (0x1dc, 0x1dd, 2),
    (0x1de, 0x1de, 1), (0x1df, 0x1df, 2), (0x1e0, 0x1e0, 1),
    (0x1e1, 0x1e1, 2), (0x1e2, 0x1e2, 1), (0x1e3, 0x1e3, 2),
    (0x1e4, 0x1e4, 1), (0x1e5, 0x1e5, 2), (0x1e6, 0x1e6, 1),
    (0x1e7, 0x1e7, 2), (0x1e8, 0x1e8, 1), (0x1e9, 0x1e9, 2),
    (0x1ea, 0x1ea, 1), (0x1eb, 0x1eb, 2), (0x1ec, 0x1ec, 1),
    (0x1ed, 0x1ed, 2), (0x1ee, 0x1ee, 1), (0x1ef, 0x1f0, 2),
    (0x1f1, 0x1f2, 1), (0x1f3, 0x1f3, 2), (0x1f4, 0x1f4, 1),
    (0x1f5, 0x1f5, 2), (0x1f6, 0x1f8, 1), (0x1f9, 0x1f9, 2),
    (0x1fa, 0x1fa, 1), (0x1fb, 0x1fb, 2), (0x1fc, 0x1fc, 1),
    (0x1fd, 0x1fd, 2), (0x1fe, 0x1fe, 1), (0x1ff, 0x1ff, 2),
    (0x200, 0x200, 1), (0x201, 0x201, 2), (0x202, 0x202, 1),
    (0x203, 0x203, 2), (0x204, 0x204, 1), (0x205, 0x205, 2),
    (0x206, 0x206, 1), (0x207, 0x207, 2), (0x208, 0x208, 1),
    (0x209, 0x209, 2), (0x20a, 0x20a, 1), (0x20b, 0x20b, 2),
    (0x20c, 0x20c, 1), (0x20d, 0x20d, 2), (0x20e, 0x20e, 1),
    (0x20f, 0x20f, 2), (0x210, 0x210, 1), (0x211, 0x211, 2),
    (0x212, 0x212, 1), (0x213, 0x213, 2), (0x214, 0x214, 1),
    (0x215, 0x215, 2), (0x216, 0x216, 1), (0x217, 0x217, 2),
    (0x218, 0x218, 1), (0x219, 0x219, 2), (0x21a, 0x21a, 1),
    (0x21b, 0x21b, 2), (0x21c, 0x21c, 1), (0x21d, 0x21d, 2),
    (0x21e, 0x21e, 1), (0x21f, 0x21f, 2), (0x220, 0x220, 1),
    (0x221, 0x221, 2), (0x222, 0x222, 1), (0x223, 0x223, 2),
    (0x224, 0x224, 1), (0x225, 0x225, 2), (0x226, 0x226, 1),
    (0x227, 0x227, 2), (0x228, 0x228, 1), (0x229, 0x229, 2),
    (0x22a, 0x22a, 1), (0x22b, 0x22b, 2), (0x22c, 0x22c, 1),
    (0x22d, 0x22d, 2), (0x22e, 0x22e, 1), (0x22f, 0x22f, 2),
    (0x230, 0x230, 1), (0x231, 0x231, 2), (0x232, 0x232, 1),
    (0x233, 0x239, 2), (0x23a, 0x23b, 1), (0x23c, 0x23c, 2),
    (0x23d, 0x23e, 1), (0x23f, 0x240, 2), (0x241, 0x241, 1),
    (0x242, 0x242, 2), (0x243, 0x246, 1), (0x247, 0x247, 2),
    (0x248, 0x248, 1), (0x249, 0x249, 2), (0x24a, 0x24a, 1),
    (0x24b, 0x24b, 2), (0x24c, 0x24c, 1), (0x24d, 0x24d, 2),
    (0x24e, 0x24e, 1), (0x24f, 0x293, 2), (0x294, 0x294, 4),
    (0x295, 0x2af, 2), (0x2b0, 0x2c1, 4), (0x2c6, 0x2d1, 4),
    (0x2e0, 0x2e4, 4), (0x2ec, 0x2ec, 4), (0x2ee, 0x2ee, 4),
    (0x300, 0x36f, 8), (0x370, 0x370, 1), (0x371, 0x371, 2),
    (0x372, 0x372, 1), (0x373, 0x373, 2), (0x374, 0x374, 4),
    (0x376, 0x376, 1), (0x377, 0x377, 2), (0x37a, 0x37a, 4),
    (0x37b, 0x37d, 2), (0x37f, 0x37f, 1), (0x386, 0x386, 1),
    (0x388, 0x38a, 1), (0x38c, 0x38c, 1), (0x38e, 0x38f, 1),
    (0x390, 0x390, 2), (0x391, 0x3a1, 1), (0x3a3, 0x3ab, 1),
    (0x3ac, 0x3ce, 2), (0x3cf, 0x3cf, 1), (0x3d0, 0x3d1, 2),
    (0x3d2, 0x3d4, 1), (0x3d5, 0x3d7, 2), (0x3d8, 0x3d8, 1),
    (0x3d9, 0x3d9, 2), (0x3da, 0x3da, 1), (0x3db, 0x3db, 2),
    (0x3dc, 0x3dc, 1), (0x3dd, 0x3dd, 2), (0x3de, 0x3de, 1),
    (0x3df, 0x3df, 2), (0x3e0, 0x3e0, 1), (0x3e1, 0x3e1, 2),
    (0x3e2, 0x3e2, 1), (0x3e3, 0x3e3, 2), (0x3e4, 0x3e4, 1),
    (0x3e5, 0x3e5, 2), (0x3e6, 0x3e6, 1), (0x3e7, 0x3e7, 2),
    (0x3e8, 0x3e8, 1), (0x3e9, 0x3e9, 2), (0x3ea, 0x3ea, 1),
    (0x3eb, 0x3eb, 2), (0x3ec, 0x3ec, 1), (0x3ed, 0x3ed, 2),
    (0x3ee, 0x3ee, 1), (0x3ef, 0x3f3, 2), (0x3f4, 0x3f4, 1),
    (0x3f5, 0x3f5, 2), (0x3f7, 0x3f7, 1), (0x3f8, 0x3f8, 2),
    (0x3f9, 0x3fa, 1), (0x3fb, 0x3fc, 2), (0x3fd, 0x42f, 1),
    (0x430, 0x45f, 2), (0x460, 0x460, 1), (0x461, 0x461, 2),
    (0x462, 0x462, 1), (0x463, 0x463, 2), (0x464, 0x464, 1),
    (0x465, 0x465, 2), (0x466, 0x466, 1), (0x467, 0x467, 2),
    (0x468, 0x468, 1), (0x469, 0x469, 2), (0x46a, 0x46a, 1),
    (0x46b, 0x46b, 2), (0x46c, 0x46c, 1), (0x46d, 0x46d, 2),
    (0x46e, 0x46e, 1), (0x46f, 0x46f, 2), (0x470, 0x470, 1),
    (0x471, 0x471, 2), (0x472, 0x472, 1), (0x473, 0x473, 2),
    (0x474, 0x474, 1), (0x475, 0x475, 2), (0x476, 0x476, 1),
    (0x477, 0x477, 2), (0x478, 0x478, 1), (0x479, 0x479, 2),
    (0x47a, 0x47a, 1), (0x47b, 0x47b, 2), (0x47c, 0x47c, 1),
    (0x47d, 0x47d, 2), (0x47e, 0x47e, 1), (0x47f, 0x47f, 2),
    (0x480, 0x480, 1), (0x481, 0x481, 2), (0x483, 0x489, 8),
    (0x48a, 0x48a, 1), (0x48b, 0x48b, 2), (0x48c, 0x48c, 1),
    (0x48d, 0x48d, 2), (0x48e, 0x48e, 1), (0x48f, 0x48f, 2),
    (0x490, 0x490, 1), (0x491, 0x491, 2), (0x492, 0x492, 1),
    (0x493, 0x493, 2), (0x494, 0x494, 1), (0x495, 0x495, 2),
    (0x496, 0x496, 1), (0x497, 0x497, 2), (0x498, 0x498, 1),
    (0x499, 0x499, 2), (0x49a, 0x49a, 1), (0x49b, 0x49b, 2),
    (0x49c, 0x49c, 1), (0x49d, 0x49d, 2), (0x49e, 0x49e, 1),
    (0x49f, 0x49f, 2), (0x4a0, 0x4a0, 1), (0x4a1, 0x4a1, 2),
    (0x4a2, 0x4a2, 1), (0x4a3, 0x4a3, 2), (0x4a4, 0x4a4, 1),
    (0x4a5, 0x4a5, 2), (0x4a6, 0x4a6, 1), (0x4a7, 0x4a7, 2),
    (0x4a8, 0x4a8, 1), (0x4a9, 0x4a9, 2), (0x4aa, 0x4aa, 1),
    (0x4ab, 0x4ab, 2), (0x4ac, 0x4ac, 1), (0x4ad, 0x4ad, 2),
    (0x4ae, 0x4ae, 1), (0x4af, 0x4af, 2), (0x4b0, 0x4b0, 1),
    (0x4b1, 0x4b1, 2), (0x4b2, 0x4b2, 1), (0x4b3, 0x4b3, 2),
    (0x4b4, 0x4b4, 1), (0x4b5, 0x4b5, 2), (0x4b6, 0x4b6, 1),
    (0x4b7, 0x4b7, 2), (0x4b8, 0x4b8, 1), (0x4b9, 0x4b9, 2),
    (0x4ba, 0x4ba, 1), (0x4bb, 0x4bb, 2), (0x4bc, 0x4bc, 1),
    (0x4bd, 0x4bd, 2), (0x4be, 0x4be, 1), (0x4bf, 0x4bf, 2),
    (0x4c0, 0x4c1, 1), (0x4c2, 0x4c2, 2), (0x4c3, 0x4c3, 1),
    (0x4c4, 0x4c4, 2), (0x4c5, 0x4c5, 1), (0x4c6, 0x4c6, 2),
    (0x4c7, 0x4c7, 1), (0x4c8, 0x4c8, 2), (0x4c9, 0x4c9, 1),
    (0x4ca, 0x4ca, 2), (0x4cb, 0x4cb, 1), (0x4cc, 0x4cc, 2),
    (0x4cd, 0x4cd, 1), (0x4ce, 0x4cf, 2), (0x4d0, 0x4d0, 1),
    (0x4d1, 0x4d1, 2), (0x4d2, 0x4d2, 1), (0x4d3, 0x4d3, 2),
    (0x4d4, 0x4d4, 1), (0x4d5, 0x4d5, 2), (0x4d6, 0x4d6, 1),
    (0x4d7, 0x4d7, 2), (0x4d8, 0x4d8, 1), (0x4d9, 0x4d9, 2),
    (0x4da, 0x4da, 1), (0x4db, 0x4db, 2), (0x4dc, 0x4dc, 1),
    (0x4dd, 0x4dd, 2), (0x4de, 0x4de, 1), (0x4df, 0x4df, 2),
    (0x4e0, 0x4e0, 1), (0x4e1, 0x4e1, 2), (0x4e2, 0x4e2, 1),
    (0x4e3, 0x4e3, 2), (0x4e4, 0x4e4, 1), (0x4e5, 0x4e5, 2),
    (0x4e6, 0x4e6, 1), (0x4e7, 0x4e7, 2), (0x4e8, 0x4e8, 1),
    (0x4e9, 0x4e9, 2), (0x4ea, 0x4ea, 1), (0x4eb, 0x4eb, 2),
    (0x4ec, 0x4ec, 1), (0x4ed, 0x4ed, 2), (0x4ee, 0x4ee, 1),
    (0x4ef, 0x4ef, 2), (0x4f0, 0x4f0, 1), (0x4f1, 0x4f1, 2),
    (0x4f2, 0x4f2, 1), (0x4f3, 0x4f3, 2), (0x4f4, 0x4f4, 1),
    (0x4f5, 0x4f5, 2), (0x4f6, 0x4f6, 1), (0x4f7, 0x4f7, 2),
    (0x4f8, 0x4f8, 1), (0x4f9, 0x4f9, 2), (0x4fa, 0x4fa, 1),
    (0x4fb, 0x4fb, 2), (0x4fc, 0x4fc, 1), (0x4fd, 0x4fd, 2),
    (0x4fe, 0x4fe, 1), (0x4ff, 0x4ff, 2), (0x500, 0x500, 1),
    (0x501, 0x501, 2), (0x502, 0x502, 1), (0x503, 0x503, 2),
    (0x504, 0x504, 1), (0x505, 0x505, 2), (0x506, 0x506, 1),
    (0x507, 0x507, 2), (0x508, 0x508, 1), (0x509, 0x509, 2),
    (0x50a, 0x50a, 1), (0x50b, 0x50b, 2), (0x50c, 0x50c, 1),
    (0x50d, 0x50d, 2), (0x50e, 0x50e, 1), (0x50f, 0x50f, 2),
    (0x510, 0x510, 1), (0x511, 0x511, 2), (0x512, 0x512, 1),
    (0x513, 0x513, 2), (0x514, 0x514, 1), (0x515, 0x515, 2),
    (0x516, 0x516, 1), (0x517, 0x517, 2), (0x518, 0x518, 1),
    (0x519, 0x519, 2), (0x51a, 0x51a, 1), (0x51b, 0x51b, 2),
    (0x51c, 0x51c, 1), (0x51d, 0x51d, 2), (0x51e, 0x51e, 1),
    (0x51f, 0x51f, 2), (0x520, 0x520, 1), (0x521, 0x521, 2),
    (0x522, 0x522, 1), (0x523, 0x523, 2), (0x524, 0x524, 1),
    (0x525, 0x525, 2), (0x526, 0x526, 1), (0x527, 0x527, 2),
    (0x528, 0x528, 1), (0x529, 0x529, 2), (0x52a, 0x52a, 1),
    (0x52b, 0x52b, 2), (0x52c, 0x52c, 1), (0x52d, 0x52d, 2),
    (0x52e, 0x52e, 1), (0x52f, 0x52f, 2), (0x531, 0x556, 1),
    (0x559, 0x559, 4), (0x560, 0x588, 2), (0x591, 0x5bd, 8),
    (0x5bf, 0x5bf, 8), (0x5c1, 0x5c2, 8), (0x5c4, 0x5c5, 8),
    (0x5c7, 0x5c7, 8), (0x5d0, 0x5ea, 4), (0x5ef, 0x5f2, 4),
    (0x610, 0x61a, 8), (0x620, 0x64a, 4), (0x64b, 0x65f, 8),
    (0x660, 0x669, 16), (0x66e, 0x66f, 4), (0x670, 0x670, 8),
    (0x671, 0x6d3, 4), (0x6d5, 0x6d5, 4), (0x6d6, 0x6dc, 8),
    (0x6df, 0x6e4, 8), (0x6e5, 0x6e6, 4), (0x6e7, 0x6e8, 8),
    (0x6ea, 0x6ed, 8), (0x6ee, 0x6ef, 4), (0x6f0, 0x6f9, 16),
    (0x6fa, 0x6fc, 4), (0x6ff, 0x6ff, 4), (0x710, 0x710, 4),
    (0x711, 0x711, 8), (0x712, 0x72f, 4), (0x730, 0x74a, 8),
    (0x74d, 0x7a5, 4), (0x7a6, 0x7b0, 8), (0x7b1, 0x7b1, 4),
    (0x7c0, 0x7c9, 16), (0x7ca, 0x7ea, 4), (0x7eb, 0x7f3, 8),
    (0x7f4, 0x7f5, 4), (0x7fa, 0x7fa, 4), (0x7fd, 0x7fd, 8),
    (0x800, 0x815, 4), (0x816, 0x819, 8), (0x81a, 0x81a, 4),
    (0x81b, 0x823, 8), (0x824, 0x824, 4), (0x825, 0x827, 8),
    (0x828, 0x828, 4), (0x829, 0x82d, 8), (0x840, 0x858, 4),
    (0x859, 0x85b, 8), (0x860, 0x86a, 4), (0x870, 0x887, 4),
    (0x889, 0x88e, 4), (0x897, 0x89f, 8), (0x8a0, 0x8c9, 4),
    (0x8ca, 0x8e1, 8), (0x8e3, 0x903, 8), (0x904, 0x939, 4),
    (0x93a, 0x93c, 8), (0x93d, 0x93d, 4), (0x93e, 0x94f, 8),
    (0x950, 0x950, 4), (0x951, 0x957, 8), (0x958, 0x961, 4),
    (0x962, 0x963, 8), (0x966, 0x96f, 16), (0x971, 0x980, 4),
    (0x981, 0x983, 8), (0x985, 0x98c, 4), (0x98f, 0x990, 4),
    (0x993, 0x9a8, 4), (0x9aa, 0x9b0, 4), (0x9b2, 0x9b2, 4),
    (0x9b6, 0x9b9, 4), (0x9bc, 0x9bc, 8), (0x9bd, 0x9bd, 4),
    (0x9be, 0x9c4, 8), (0x9c7, 0x9c8, 8), (0x9cb, 0x9cd, 8),
    (0x9ce, 0x9ce, 4), (0x9d7, 0x9d7, 8), (0x9dc, 0x9dd, 4),
    (0x9df, 0x9e1, 4), (0x9e2, 0x9e3, 8), (0x9e6, 0x9ef, 16),
    (0x9f0, 0x9f1, 4), (0x9f4, 0x9f9, 16), (0x9fc, 0x9fc, 4),
    (0x9fe, 0x9fe, 8), (0xa01, 0xa03, 8), (0xa05, 0xa0a, 4),
    (0xa0f, 0xa10, 4), (0xa13, 0xa28, 4), (0xa2a, 0xa30, 4),
    (0xa32, 0xa33, 4), (0xa35, 0xa36, 4), (0xa38, 0xa39, 4),
    (0xa3c, 0xa3c, 8), (0xa3e, 0xa42, 8), (0xa47, 0xa48, 8),
    (0xa4b, 0xa4d, 8), (0xa51, 0xa51, 8), (0xa59, 0xa5c, 4),
    (0xa5e, 0xa5e, 4), (0xa66, 0xa6f, 16), (0xa70, 0xa71, 8),
    (0xa72, 0xa74, 4), (0xa75, 0xa75, 8), (0xa81, 0xa83, 8),
    (0xa85, 0xa8d, 4), (0xa8f, 0xa91, 4), (0xa93, 0xaa8, 4),
    (0xaaa, 0xab0, 4), (0xab2, 0xab3, 4), (0xab5, 0xab9, 4),
    (0xabc, 0xabc, 8), (0xabd, 0xabd, 4), (0xabe, 0xac5, 8),
    (0xac7, 0xac9, 8), (0xacb, 0xacd, 8), (0xad0, 0xad0, 4),
    (0xae0, 0xae1, 4), (0xae2, 0xae3, 8), (0xae6, 0xaef, 16),
    (0xaf9, 0xaf9, 4), (0xafa, 0xaff, 8), (0xb01, 0xb03, 8),
    (0xb05, 0xb0c, 4), (0xb0f, 0xb10, 4), (0xb13, 0xb28, 4),
    (0xb2a, 0xb30, 4), (0xb32, 0xb33, 4), (0xb35, 0xb39, 4),
    (0xb3c, 0xb3c, 8), (0xb3d, 0xb3d, 4), (0xb3e, 0xb44, 8),
    (0xb47, 0xb48, 8), (0xb4b, 0xb4d, 8), (0xb55, 0xb57, 8),
    (0xb5c, 0xb5d, 4), (0xb5f, 0xb61, 4), (0xb62, 0xb63, 8),
    (0xb66, 0xb6f, 16), (0xb71, 0xb71, 4), (0xb72, 0xb77, 16),
    (0xb82, 0xb82, 8), (0xb83, 0xb83, 4), (0xb85, 0xb8a, 4),
    (0xb8e, 0xb90, 4), (0xb92, 0xb95, 4), (0xb99, 0xb9a, 4),
    (0xb9c, 0xb9c, 4), (0xb9e, 0xb9f, 4), (0xba3, 0xba4, 4),
    (0xba8, 0xbaa, 4), (0xbae, 0xbb9, 4), (0xbbe, 0xbc2, 8),
    (0xbc6, 0xbc8, 8), (0xbca, 0xbcd, 8), (0xbd0, 0xbd0, 4),
    (0xbd7, 0xbd7, 8), (0xbe6, 0xbf2, 16), (0xc00, 0xc04, 8),
    (0xc05, 0xc0c, 4), (0xc0e, 0xc10, 4), (0xc12, 0xc28, 4),
    (0xc2a, 0xc39, 4), (0xc3c, 0xc3c, 8), (0xc3d, 0xc3d, 4),
    (0xc3e, 0xc44, 8), (0xc46, 0xc48, 8), (0xc4a, 0xc4d, 8),
    (0xc55, 0xc56, 8), (0xc58, 0xc5a, 4), (0xc5d, 0xc5d, 4),
    (0xc60, 0xc61, 4), (0xc62, 0xc63, 8), (0xc66, 0xc6f, 16),
    (0xc78, 0xc7e, 16), (0xc80, 0xc80, 4), (0xc81, 0xc83, 8),
    (0xc85, 0xc8c, 4), (0xc8e, 0xc90, 4), (0xc92, 0xca8, 4),
    (0xcaa, 0xcb3, 4), (0xcb5, 0xcb9, 4), (0xcbc, 0xcbc, 8),
    (0xcbd, 0xcbd, 4), (0xcbe, 0xcc4, 8), (0xcc6, 0xcc8, 8),
    (0xcca, 0xccd, 8), (0xcd5, 0xcd6, 8), (0xcdd, 0xcde, 4),
    (0xce0, 0xce1, 4), (0xce2, 0xce3, 8), (0xce6, 0xcef, 16),
    (0xcf1, 0xcf2, 4), (0xcf3, 0xcf3, 8), (0xd00, 0xd03, 8),
    (0xd04, 0xd0c, 4), (0xd0e, 0xd10, 4), (0xd12, 0xd3a, 4),
    (0xd3b, 0xd3c, 8), (0xd3d, 0xd3d, 4), (0xd3e, 0xd44, 8),
    (0xd46, 0xd48, 8), (0xd4a, 0xd4d, 8), (0xd4e, 0xd4e, 4),
    (0xd54, 0xd56, 4), (0xd57, 0xd57, 8), (0xd58, 0xd5e, 16),
    (0xd5f, 0xd61, 4), (0xd62, 0xd63, 8), (0xd66, 0xd78, 16),
    (0xd7a, 0xd7f, 4), (0xd81, 0xd83, 8), (0xd85, 0xd96, 4),
    (0xd9a, 0xdb1, 4), (0xdb3, 0xdbb, 4), (0xdbd, 0xdbd, 4),
    (0xdc0, 0xdc6, 4), (0xdca, 0xdca, 8), (0xdcf, 0xdd4, 8),
    (0xdd6, 0xdd6, 8), (0xdd8, 0xddf, 8), (0xde6, 0xdef, 16),
    (0xdf2, 0xdf3, 8), (0xe01, 0xe30, 4), (0xe31, 0xe31, 8),
    (0xe32, 0xe33, 4), (0xe34, 0xe3a, 8), (0xe40, 0xe46, 4),
    (0xe47, 0xe4e, 8), (0xe50, 0xe59, 16), (0xe81, 0xe82, 4),
    (0xe84, 0xe84, 4), (0xe86, 0xe8a, 4), (0xe8c, 0xea3, 4),
    (0xea5, 0xea5, 4), (0xea7, 0xeb0, 4), (0xeb1, 0xeb1, 8),
    (0xeb2, 0xeb3, 4), (0xeb4, 0xebc, 8), (0xebd, 0xebd, 4),
    (0xec0, 0xec4, 4), (0xec6, 0xec6, 4), (0xec8, 0xece, 8),
    (0xed0, 0xed9, 16), (0xedc, 0xedf, 4), (0xf00, 0xf00, 4),
    (0xf18, 0xf19, 8), (0xf20, 0xf33, 16), (0xf35, 0xf35, 8),
    (0xf37, 0xf37, 8), (0xf39, 0xf39, 8), (0xf3e, 0xf3f, 8),
    (0xf40, 0xf47, 4), (0xf49, 0xf6c, 4), (0xf71, 0xf84, 8),
    (0xf86, 0xf87, 8), (0xf88, 0xf8c, 4), (0xf8d, 0xf97, 8),
    (0xf99, 0xfbc, 8), (0xfc6, 0xfc6, 8), (0x1000, 0x102a, 4),
    (0x102b, 0x103e, 8), (0x103f, 0x103f, 4), (0x1040, 0x1049, 16),
    (0x1050, 0x1055, 4), (0x1056, 0x1059, 8), (0x105a, 0x105d, 4),
    (0x105e, 0x1060, 8), (0x1061, 0x1061, 4), (0x1062, 0x1064, 8),
    (0x1065, 0x1066, 4), (0x1067, 0x106d, 8), (0x106e, 0x1070, 4),
    (0x1071, 0x1074, 8), (0x1075, 0x1081, 4), (0x1082, 0x108d, 8),
    (0x108e, 0x108e, 4), (0x108f, 0x108f, 8), (0x1090, 0x1099, 16),
    (0x109a, 0x109d, 8), (0x10a0, 0x10c5, 1), (0x10c7, 0x10c7, 1),
    (0x10cd, 0x10cd, 1), (0x10d0, 0x10fa, 2), (0x10fc, 0x10fc, 4),
    (0x10fd, 0x10ff, 2), (0x1100, 0x1248, 4), (0x124a, 0x124d, 4),
    (0x1250, 0x1256, 4), (0x1258, 0x1258, 4), (0x125a, 0x125d, 4),
    (0x1260, 0x1288, 4), (0x128a, 0x128d, 4), (0x1290, 0x12b0, 4),
    (0x12b2, 0x12b5, 4), (0x12b8, 0x12be, 4), (0x12c0, 0x12c0, 4),
    (0x12c2, 0x12c5, 4), (0x12c8, 0x12d6, 4), (0x12d8, 0x1310, 4),
    (0x1312, 0x1315, 4), (0x1318, 0x135a, 4), (0x135d, 0x135f, 8),
    (0x1369, 0x137c, 16), (0x1380, 0x138f, 4), (0x13a0, 0x13f5, 1),
    (0x13f8, 0x13fd, 2), (0x1401, 0x166c, 4), (0x166f, 0x167f, 4),
    (0x1680, 0x1680, 32), (0x1681, 0x169a, 4), (0x16a0, 0x16ea, 4),
    (0x16ee, 0x16f0, 16), (0x16f1, 0x16f8, 4), (0x1700, 0x1711, 4),
    (0x1712, 0x1715, 8), (0x171f, 0x1731, 4), (0x1732, 0x1734, 8),
    (0x1740, 0x1751, 4), (0x1752, 0x1753, 8), (0x1760, 0x176c, 4),
    (0x176e, 0x1770, 4), (0x1772, 0x1773, 8), (0x1780, 0x17b3, 4),
    (0x17b4, 0x17d3, 8), (0x17d7, 0x17d7, 4), (0x17dc, 0x17dc, 4),
    (0x17dd, 0x17dd, 8), (0x17e0, 0x17e9, 16), (0x17f0, 0x17f9, 16),
    (0x180b, 0x180d, 8), (0x180f, 0x180f, 8), (0x1810, 0x1819, 16),
    (0x1820, 0x1878, 4), (0x1880, 0x1884, 4), (0x1885, 0x1886, 8),
    (0x1887, 0x18a8, 4), (0x18a9, 0x18a9, 8), (0x18aa, 0x18aa, 4),
    (0x18b0, 0x18f5, 4), (0x1900, 0x191e, 4), (0x1920, 0x192b, 8),
    (0x1930, 0x193b, 8), (0x1946, 0x194f, 16), (0x1950, 0x196d, 4),
    (0x1970, 0x1974, 4), (0x1980, 0x19ab, 4), (0x19b0, 0x19c9, 4),
    (0x19d0, 0x19da, 16), (0x1a00, 0x1a16, 4), (0x1a17, 0x1a1b, 8),
    (0x1a20, 0x1a54, 4), (0x1a55, 0x1a5e, 8), (0x1a60, 0x1a7c, 8),
    (0x1a7f, 0x1a7f, 8), (0x1a80, 0x1a89, 16), (0x1a90, 0x1a99, 16),
    (0x1aa7, 0x1aa7, 4), (0x1ab0, 0x1ace, 8), (0x1b00, 0x1b04, 8),
    (0x1b05, 0x1b33, 4), (0x1b34, 0x1b44, 8), (0x1b45, 0x1b4c, 4),
    (0x1b50, 0x1b59, 16), (0x1b6b, 0x1b73, 8), (0x1b80, 0x1b82, 8),
    (0x1b83, 0x1ba0, 4), (0x1ba1, 0x1bad, 8), (0x1bae, 0x1baf, 4),
    (0x1bb0, 0x1bb9, 16), (0x1bba, 0x1be5, 4), (0x1be6, 0x1bf3, 8),
    (0x1c00, 0x1c23, 4), (0x1c24, 0x1c37, 8), (0x1c40, 0x1c49, 16),
    (0x1c4d, 0x1c4f, 4), (0x1c50, 0x1c59, 16), (0x1c5a, 0x1c7d, 4),
    (0x1c80, 0x1c88, 2), (0x1c89, 0x1c89, 1), (0x1c8a, 0x1c8a, 2),
    (0x1c90, 0x1cba, 1), (0x1cbd, 0x1cbf, 1), (0x1cd0, 0x1cd2, 8),
    (0x1cd4, 0x1ce8, 8), (0x1ce9, 0x1cec, 4), (0x1ced, 0x1ced, 8),
    (0x1cee, 0x1cf3, 4), (0x1cf4, 0x1cf4, 8), (0x1cf5, 0x1cf6, 4),
    (0x1cf7, 0x1cf9, 8), (0x1cfa, 0x1cfa, 4), (0x1d00, 0x1d2b, 2),
    (0x1d2c, 0x1d6a, 4), (0x1d6b, 0x1d77, 2), (0x1d78, 0x1d78, 4),
    (0x1d79, 0x1d9a, 2), (0x1d9b, 0x1dbf, 4), (0x1dc0, 0x1dff, 8),
    (0x1e00, 0x1e00, 1), (0x1e01, 0x1e01, 2), (0x1e02, 0x1e02, 1),
    (0x1e03, 0x1e03, 2), (0x1e04, 0x1e04, 1), (0x1e05, 0x1e05, 2),
    (0x1e06, 0x1e06, 1), (0x1e07, 0x1e07, 2), (0x1e08, 0x1e08, 1),
    (0x1e09, 0x1e09, 2), (0x1e0a, 0x1e0a, 1), (0x1e0b, 0x1e0b, 2),
    (0x1e0c, 0x1e0c, 1), (0x1e0d, 0x1e0d, 2), (0x1e0e, 0x1e0e, 1),
    (0x1e0f, 0x1e0f, 2), (0x1e10, 0x1e10, 1), (0x1e11, 0x1e11, 2),
    (0x1e12, 0x1e12, 1), (0x1e13, 0x1e13, 2), (0x1e14, 0x1e14, 1),
    (0x1e15, 0x1e15, 2), (0x1e16, 0x1e16, 1), (0x1e17, 0x1e17, 2),
    (0x1e18, 0x1e18, 1), (0x1e19, 0x1e19, 2), (0x1e1a, 0x1e1a, 1),
    (0x1e1b, 0x1e1b, 2), (0x1e1c, 0x1e1c, 1), (0x1e1d, 0x1e1d, 2),
    (0x1e1e, 0x1e1e, 1), (0x1e1f, 0x1e1f, 2), (0x1e20, 0x1e20, 1),
    (0x1e21, 0x1e21, 2), (0x1e22, 0x1e22, 1), (0x1e23, 0x1e23, 2),
    (0x1e24, 0x1e24, 1), (0x1e25, 0x1e25, 2), (0x1e26, 0x1e26, 1),
    (0x1e27, 0x1e27, 2), (0x1e28, 0x1e28, 1), (0x1e29, 0x1e29, 2),
    (0x1e2a, 0x1e2a, 1), (0x1e2b, 0x1e2b, 2), (0x1e2c, 0x1e2c, 1),
    (0x1e2d, 0x1e2d, 2), (0x1e2e, 0x1e2e, 1), (0x1e2f, 0x1e2f, 2),
    (0x1e30, 0x1e30, 1), (0x1e31, 0x1e31, 2), (0x1e32, 0x1e32, 1),
    (0x1e33, 0x1e33, 2), (0x1e34, 0x1e34, 1), (0x1e35, 0x1e35, 2),
    (0x1e36, 0x1e36, 1), (0x1e37, 0x1e37, 2), (0x1e38, 0x1e38, 1),
    (0x1e39, 0x1e39, 2), (0x1e3a, 0x1e3a, 1), (0x1e3b, 0x1e3b, 2),
    (0x1e3c, 0x1e3c, 1), (0x1e3d, 0x1e3d, 2), (0x1e3e, 0x1e3e, 1),
    (0x1e3f, 0x1e3f, 2), (0x1e40, 0x1e40, 1), (0x1e41, 0x1e41, 2),
    (0x1e42, 0x1e42, 1), (0x1e43, 0x1e43, 2), (0x1e44, 0x1e44, 1),
    (0x1e45, 0x1e45, 2), (0x1e46, 0x1e46, 1), (0x1e47, 0x1e47, 2),
    (0x1e48, 0x1e48, 1), (0x1e49, 0x1e49, 2), (0x1e4a, 0x1e4a, 1),
    (0x1e4b, 0x1e4b, 2), (0x1e4c, 0x1e4c, 1), (0x1e4d, 0x1e4d, 2),
    (0x1e4e, 0x1e4e, 1), (0x1e4f, 0x1e4f, 2), (0x1e50, 0x1e50, 1),
    (0x1e51, 0x1e51, 2), (0x1e52, 0x1e52, 1), (0x1e53, 0x1e53, 2),
    (0x1e54, 0x1e54, 1), (0x1e55, 0x1e55, 2), (0x1e56, 0x1e56, 1),
    (0x1e57, 0x1e57, 2), (0x1e58, 0x1e58, 1), (0x1e59, 0x1e59, 2),
    (0x1e5a, 0x1e5a, 1), (0x1e5b, 0x1e5b, 2), (0x1e5c, 0x1e5c, 1),
    (0x1e5d, 0x1e5d, 2), (0x1e5e, 0x1e5e, 1), (0x1e5f, 0x1e5f, 2),
    (0x1e60, 0x1e60, 1), (0x1e61, 0x1e61, 2), (0x1e62, 0x1e62, 1),
    (0x1e63, 0x1e63, 2), (0x1e64, 0x1e64, 1), (0x1e65, 0x1e65, 2),
    (0x1e66, 0x1e66, 1), (0x1e67, 0x1e67, 2), (0x1e68, 0x1e68, 1),
    (0x1e69, 0x1e69, 2), (0x1e6a, 0x1e6a, 1), (0x1e6b, 0x1e6b, 2),
    (0x1e6c, 0x1e6c, 1), (0x1e6d, 0x1e6d, 2), (0x1e6e, 0x1e6e, 1),
    (0x1e6f, 0x1e6f, 2), (0x1e70, 0x1e70, 1), (0x1e71, 0x1e71, 2),
    (0x1e72, 0x1e72, 1), (0x1e73, 0x1e73, 2), (0x1e74, 0x1e74, 1),
    (0x1e75, 0x1e75, 2), (0x1e76, 0x1e76, 1), (0x1e77, 0x1e77, 2),
    (0x1e78, 0x1e78, 1), (0x1e79, 0x1e79, 2), (0x1e7a, 0x1e7a, 1),
    (0x1e7b, 0x1e7b, 2), (0x1e7c, 0x1e7c, 1), (0x1e7d, 0x1e7d, 2),
    (0x1e7e, 0x1e7e, 1), (0x1e7f, 0x1e7f, 2), (0x1e80, 0x1e80, 1),
    (0x1e81, 0x1e81, 2), (0x1e82, 0x1e82, 1), (0x1e83, 0x1e83, 2),
    (0x1e84, 0x1e84, 1), (0x1e85, 0x1e85, 2), (0x1e86, 0x1e86, 1),
    (0x1e87, 0x1e87, 2), (0x1e88, 0x1e88, 1), (0x1e89, 0x1e89, 2),
    (0x1e8a, 0x1e8a, 1), (0x1e8b, 0x1e8b, 2), (0x1e8c, 0x1e8c, 1),
    (0x1e8d, 0x1e8d, 2), (0x1e8e, 0x1e8e, 1), (0x1e8f, 0x1e8f, 2),
    (0x1e90, 0x1e90, 1), (0x1e91, 0x1e91, 2), (0x1e92, 0x1e92, 1),
    (0x1e93, 0x1e93, 2), (0x1e94, 0x1e94, 1), (0x1e95, 0x1e9d, 2),
    (0x1e9e, 0x1e9e, 1), (0x1e9f, 0x1e9f, 2), (0x1ea0, 0x1ea0, 1),
    (0x1ea1, 0x1ea1, 2), (0x1ea2, 0x1ea2, 1), (0x1ea3, 0x1ea3, 2),
    (0x1ea4, 0x1ea4, 1), (0x1ea5, 0x1ea5, 2), (0x1ea6, 0x1ea6, 1),
    (0x1ea7, 0x1ea7, 2), (0x1ea8, 0x1ea8, 1), (0x1ea9, 0x1ea9, 2),
    (0x1eaa, 0x1eaa, 1), (0x1eab, 0x1eab, 2), (0x1eac, 0x1eac, 1),
    (0x1ead, 0x1ead, 2), (0x1eae, 0x1eae, 1), (0x1eaf, 0x1eaf, 2),
    (0x1eb0, 0x1eb0, 1), (0x1eb1, 0x1eb1, 2), (0x1eb2, 0x1eb2, 1),
    (0x1eb3, 0x1eb3, 2), (0x1eb4, 0x1eb4, 1), (0x1eb5, 0x1eb5, 2),
    (0x1eb6, 0x1eb6, 1), (0x1eb7, 0x1eb7, 2), (0x1eb8, 0x1eb8, 1),
    (0x1eb9, 0x1eb9, 2), (0x1eba, 0x1eba, 1), (0x1ebb, 0x1ebb, 2),
    (0x1ebc, 0x1ebc, 1), (0x1ebd, 0x1ebd, 2), (0x1ebe, 0x1ebe, 1),
    (0x1ebf, 0x1ebf, 2), (0x1ec0, 0x1ec0, 1), (0x1ec1, 0x1ec1, 2),
    (0x1ec2, 0x1ec2, 1), (0x1ec3, 0x1ec3, 2), (0x1ec4, 0x1ec4, 1),
    (0x1ec5, 0x1ec5, 2), (0x1ec6, 0x1ec6, 1), (0x1ec7, 0x1ec7, 2),
    (0x1ec8, 0x1ec8, 1), (0x1ec9, 0x1ec9, 2), (0x1eca, 0x1eca, 1),
    (0x1ecb, 0x1ecb, 2), (0x1ecc, 0x1ecc, 1), (0x1ecd, 0x1ecd, 2),
    (0x1ece, 0x1ece, 1), (0x1ecf, 0x1ecf, 2), (0x1ed0, 0x1ed0, 1),
    (0x1ed1, 0x1ed1, 2), (0x1ed2, 0x1ed2, 1), (0x1ed3, 0x1ed3, 2),
    (0x1ed4, 0x1ed4, 1), (0x1ed5, 0x1ed5, 2), (0x1ed6, 0x1ed6, 1),
    (0x1ed7, 0x1ed7, 2), (0x1ed8, 0x1ed8, 1), (0x1ed9, 0x1ed9, 2),
    (0x1eda, 0x1eda, 1), (0x1edb, 0x1edb, 2), (0x1edc, 0x1edc, 1),
    (0x1edd, 0x1edd, 2), (0x1ede, 0x1ede, 1), (0x1edf, 0x1edf, 2),
    (0x1ee0, 0x1ee0, 1), (0x1ee1, 0x1ee1, 2), (0x1ee2, 0x1ee2, 1),
    (0x1ee3, 0x1ee3, 2), (0x1ee4, 0x1ee4, 1), (0x1ee5, 0x1ee5, 2),
    (0x1ee6, 0x1ee6, 1), (0x1ee7, 0x1ee7, 2), (0x1ee8, 0x1ee8, 1),
    (0x1ee9, 0x1ee9, 2), (0x1eea, 0x1eea, 1), (0x1eeb, 0x1eeb, 2),
    (0x1eec, 0x1eec, 1), (0x1eed, 0x1eed, 2), (0x1eee, 0x1eee, 1),
    (0x1eef, 0x1eef, 2), (0x1ef0, 0x1ef0, 1), (0x1ef1, 0x1ef1, 2),
    (0x1ef2, 0x1ef2, 1), (0x1ef3, 0x1ef3, 2), (0x1ef4, 0x1ef4, 1),
    (0x1ef5, 0x1ef5, 2), (0x1ef6, 0x1ef6, 1), (0x1ef7, 0x1ef7, 2),
    (0x1ef8, 0x1ef8, 1), (0x1ef9, 0x1ef9, 2), (0x1efa, 0x1efa, 1),
    (0x1efb, 0x1efb, 2), (0x1efc, 0x1efc, 1), (0x1efd, 0x1efd, 2),
    (0x1efe, 0x1efe, 1), (0x1eff, 0x1f07, 2), (0x1f08, 0x1f0f, 1),
    (0x1f10, 0x1f15, 2), (0x1f18, 0x1f1d, 1), (0x1f20, 0x1f27, 2),
    (0x1f28, 0x1f2f, 1), (0x1f30, 0x1f37, 2), (0x1f38, 0x1f3f, 1),
    (0x1f40, 0x1f45, 2), (0x1f48, 0x1f4d, 1), (0x1f50, 0x1f57, 2),
    (0x1f59, 0x1f59, 1), (0x1f5b, 0x1f5b, 1), (0x1f5d, 0x1f5d, 1),
    (0x1f5f, 0x1f5f, 1), (0x1f60, 0x1f67, 2), (0x1f68, 0x1f6f, 1),
    (0x1f70, 0x1f7d, 2), (0x1f80, 0x1f87, 2), (0x1f88, 0x1f8f, 1),
    (0x1f90, 0x1f97, 2), (0x1f98, 0x1f9f, 1), (0x1fa0, 0x1fa7, 2),
    (0x1fa8, 0x1faf, 1), (0x1fb0, 0x1fb4, 2), (0x1fb6, 0x1fb7, 2),
    (0x1fb8, 0x1fbc, 1), (0x1fbe, 0x1fbe, 2), (0x1fc2, 0x1fc4, 2),
    (0x1fc6, 0x1fc7, 2), (0x1fc8, 0x1fcc, 1), (0x1fd0, 0x1fd3, 2),
    (0x1fd6, 0x1fd7, 2), (0x1fd8, 0x1fdb, 1), (0x1fe0, 0x1fe7, 2),
    (0x1fe8, 0x1fec, 1), (0x1ff2, 0x1ff4, 2), (0x1ff6, 0x1ff7, 2),
    (0x1ff8, 0x1ffc, 1), (0x2000, 0x200a, 32), (0x2028, 0x2029, 32),
    (0x202f, 0x202f, 32), (0x205f, 0x205f, 32), (0x2070, 0x2070, 16),
    (0x2071, 0x2071, 4), (0x2074, 0x2079, 16), (0x207f, 0x207f, 4),
    (0x2080, 0x2089, 16), (0x2090, 0x209c, 4), (0x20d0, 0x20f0, 8),
    (0x2102, 0x2102, 1), (0x2107, 0x2107, 1), (0x210a, 0x210a, 2),
    (0x210b, 0x210d, 1), (0x210e, 0x210f, 2), (0x2110, 0x2112, 1),
    (0x2113, 0x2113, 2), (0x2115, 0x2115, 1), (0x2119, 0x211d, 1),
    (0x2124, 0x2124, 1), (0x2126, 0x2126, 1), (0x2128, 0x2128, 1),
    (0x212a, 0x212d, 1), (0x212f, 0x212f, 2), (0x2130, 0x2133, 1),
    (0x2134, 0x2134, 2), (0x2135, 0x2138, 4), (0x2139, 0x2139, 2),
    (0x213c, 0x213d, 2), (0x213e, 0x213f, 1), (0x2145, 0x2145, 1),
    (0x2146, 0x2149, 2), (0x214e, 0x214e, 2), (0x2150, 0x2182, 16),
    (0x2183, 0x2183, 1), (0x2184, 0x2184, 2), (0x2185, 0x2189, 16),
    (0x2460, 0x249b, 16), (0x24ea, 0x24ff, 16), (0x2776, 0x2793, 16),
    (0x2c00, 0x2c2f, 1), (0x2c30, 0x2c5f, 2), (0x2c60, 0x2c60, 1),
    (0x2c61, 0x2c61, 2), (0x2c62, 0x2c64, 1), (0x2c65, 0x2c66, 2),
    (0x2c67, 0x2c67, 1), (0x2c68, 0x2c68, 2), (0x2c69, 0x2c69, 1),
    (0x2c6a, 0x2c6a, 2), (0x2c6b, 0x2c6b, 1), (0x2c6c, 0x2c6c, 2),
    (0x2c6d, 0x2c70, 1), (0x2c71, 0x2c71, 2), (0x2c72, 0x2c72, 1),
    (0x2c73, 0x2c74, 2), (0x2c75, 0x2c75, 1), (0x2c76, 0x2c7b, 2),
    (0x2c7c, 0x2c7d, 4), (0x2c7e, 0x2c80, 1), (0x2c81, 0x2c81, 2),
    (0x2c82, 0x2c82, 1), (0x2c83, 0x2c83, 2), (0x2c84, 0x2c84, 1),
    (0x2c85, 0x2c85, 2), (0x2c86, 0x2c86, 1), (0x2c87, 0x2c87, 2),
    (0x2c88, 0x2c88, 1), (0x2c89, 0x2c89, 2), (0x2c8a, 0x2c8a, 1),
    (0x2c8b, 0x2c8b, 2), (0x2c8c, 0x2c8c, 1), (0x2c8d, 0x2c8d, 2),
    (0x2c8e, 0x2c8e, 1), (0x2c8f, 0x2c8f, 2), (0x2c90, 0x2c90, 1),
    (0x2c91, 0x2c91, 2), (0x2c92, 0x2c92, 1), (0x2c93, 0x2c93, 2),
    (0x2c94, 0x2c94, 1), (0x2c95, 0x2c95, 2), (0x2c96, 0x2c96, 1),
    (0x2c97, 0x2c97, 2), (0x2c98, 0x2c98, 1), (0x2c99, 0x2c99, 2),
    (0x2c9a, 0x2c9a, 1), (0x2c9b, 0x2c9b, 2), (0x2c9c, 0x2c9c, 1),
    (0x2c9d, 0x2c9d, 2), (0x2c9e, 0x2c9e, 1), (0x2c9f, 0x2c9f, 2),
    (0x2ca0, 0x2ca0, 1), (0x2ca1, 0x2ca1, 2), (0x2ca2, 0x2ca2, 1),
    (0x2ca3, 0x2ca3, 2), (0x2ca4, 0x2ca4, 1), (0x2ca5, 0x2ca5, 2),
    (0x2ca6, 0x2ca6, 1), (0x2ca7, 0x2ca7, 2), (0x2ca8, 0x2ca8, 1),
    (0x2ca9, 0x2ca9, 2), (0x2caa, 0x2caa, 1), (0x2cab, 0x2cab, 2),
    (0x2cac, 0x2cac, 1), (0x2cad, 0x2cad, 2), (0x2cae, 0x2cae, 1),
    (0x2caf, 0x2caf, 2), (0x2cb0, 0x2cb0, 1), (0x2cb1, 0x2cb1, 2),
    (0x2cb2, 0x2cb2, 1), (0x2cb3, 0x2cb3, 2), (0x2cb4, 0x2cb4, 1),
    (0x2cb5, 0x2cb5, 2), (0x2cb6, 0x2cb6, 1), (0x2cb7, 0x2cb7, 2),
    (0x2cb8, 0x2cb8, 1), (0x2cb9, 0x2cb9, 2), (0x2cba, 0x2cba, 1),
    (0x2cbb, 0x2cbb, 2), (0x2cbc, 0x2cbc, 1), (0x2cbd, 0x2cbd, 2),
    (0x2cbe, 0x2cbe, 1), (0x2cbf, 0x2cbf, 2), (0x2cc0, 0x2cc0, 1),
    (0x2cc1, 0x2cc1, 2), (0x2cc2, 0x2cc2, 1), (0x2cc3, 0x2cc3, 2),
    (0x2cc4, 0x2cc4, 1), (0x2cc5, 0x2cc5, 2), (0x2cc6, 0x2cc6, 1),
    (0x2cc7, 0x2cc7, 2), (0x2cc8, 0x2cc8, 1), (0x2cc9, 0x2cc9, 2),
    (0x2cca, 0x2cca, 1), (0x2ccb, 0x2ccb, 2), (0x2ccc, 0x2ccc, 1),
    (0x2ccd, 0x2ccd, 2), (0x2cce, 0x2cce, 1), (0x2ccf, 0x2ccf, 2),
    (0x2cd0, 0x2cd0, 1), (0x2cd1, 0x2cd1, 2), (0x2cd2, 0x2cd2, 1),
    (0x2cd3, 0x2cd3, 2), (0x2cd4, 0x2cd4, 1), (0x2cd5, 0x2cd5, 2),
    (0x2cd6, 0x2cd6, 1), (0x2cd7, 0x2cd7, 2), (0x2cd8, 0x2cd8, 1),
    (0x2cd9, 0x2cd9, 2), (0x2cda, 0x2cda, 1), (0x2cdb, 0x2cdb, 2),
    (0x2cdc, 0x2cdc, 1), (0x2cdd, 0x2cdd, 2), (0x2cde, 0x2cde, 1),
    (0x2cdf, 0x2cdf, 2), (0x2ce0, 0x2ce0, 1), (0x2ce1, 0x2ce1, 2),
    (0x2ce2, 0x2ce2, 1), (0x2ce3, 0x2ce4, 2), (0x2ceb, 0x2ceb, 1),
    (0x2cec, 0x2cec, 2), (0x2ced, 0x2ced, 1), (0x2cee, 0x2cee, 2),
    (0x2cef, 0x2cf1, 8), (0x2cf2, 0x2cf2, 1), (0x2cf3, 0x2cf3, 2),
    (0x2cfd, 0x2cfd, 16), (0x2d00, 0x2d25, 2), (0x2d27, 0x2d27, 2),
    (0x2d2d, 0x2d2d, 2), (0x2d30, 0x2d67, 4), (0x2d6f, 0x2d6f, 4),
    (0x2d7f, 0x2d7f, 8), (0x2d80, 0x2d96, 4), (0x2da0, 0x2da6, 4),
    (0x2da8, 0x2dae, 4), (0x2db0, 0x2db6, 4), (0x2db8, 0x2dbe, 4),
    (0x2dc0, 0x2dc6, 4), (0x2dc8, 0x2dce, 4), (0x2dd0, 0x2dd6, 4),
    (0x2dd8, 0x2dde, 4), (0x2de0, 0x2dff, 8), (0x2e2f, 0x2e2f, 4),
    (0x3000, 0x3000, 32), (0x3005, 0x3006, 4), (0x3007, 0x3007, 16),
    (0x3021, 0x3029, 16), (0x302a, 0x302f, 8), (0x3031, 0x3035, 4),
    (0x3038, 0x303a, 16), (0x303b, 0x303c, 4), (0x3041, 0x3096, 4),
    (0x3099, 0x309a, 8), (0x309d, 0x309f, 4), (0x30a1, 0x30fa, 4),
    (0x30fc, 0x30ff, 4), (0x3105, 0x312f, 4), (0x3131, 0x318e, 4),
    (0x3192, 0x3195, 16), (0x31a0, 0x31bf, 4), (0x31f0, 0x31ff, 4),
    (0x3220, 0x3229, 16), (0x3248, 0x324f, 16), (0x3251, 0x325f, 16),
    (0x3280, 0x3289, 16), (0x32b1, 0x32bf, 16), (0x3400, 0x4dbf, 4),
    (0x4e00, 0xa48c, 4), (0xa4d0, 0xa4fd, 4), (0xa500, 0xa60c, 4),
    (0xa610, 0xa61f, 4), (0xa620, 0xa629, 16), (0xa62a, 0xa62b, 4),
    (0xa640, 0xa640, 1), (0xa641, 0xa641, 2), (0xa642, 0xa642, 1),
    (0xa643, 0xa643, 2), (0xa644, 0xa644, 1), (0xa645, 0xa645, 2),
    (0xa646, 0xa646, 1), (0xa647, 0xa647, 2), (0xa648, 0xa648, 1),
    (0xa649, 0xa649, 2), (0xa64a, 0xa64a, 1), (0xa64b, 0xa64b, 2),
    (0xa64c, 0xa64c, 1), (0xa64d, 0xa64d, 2), (0xa64e, 0xa64e, 1),
    (0xa64f, 0xa64f, 2), (0xa650, 0xa650, 1), (0xa651, 0xa651, 2),
    (0xa652, 0xa652, 1), (0xa653, 0xa653, 2), (0xa654, 0xa654, 1),
    (0xa655, 0xa655, 2), (0xa656, 0xa656, 1), (0xa657, 0xa657, 2),
    (0xa658, 0xa658, 1), (0xa659, 0xa659, 2), (0xa65a, 0xa65a, 1),
    (0xa65b, 0xa65b, 2), (0xa65c, 0xa65c, 1), (0xa65d, 0xa65d, 2),
    (0xa65e, 0xa65e, 1), (0xa65f, 0xa65f, 2), (0xa660, 0xa660, 1),
    (0xa661, 0xa661, 2), (0xa662, 0xa662, 1), (0xa663, 0xa663, 2),
    (0xa664, 0xa664, 1), (0xa665, 0xa665, 2), (0xa666, 0xa666, 1),
    (0xa667, 0xa667, 2), (0xa668, 0xa668, 1), (0xa669, 0xa669, 2),
    (0xa66a, 0xa66a, 1), (0xa66b, 0xa66b, 2), (0xa66c, 0xa66c, 1),
    (0xa66d, 0xa66d, 2), (0xa66e, 0xa66e, 4), (0xa66f, 0xa672, 8),
    (0xa674, 0xa67d, 8), (0xa67f, 0xa67f, 4), (0xa680, 0xa680, 1),
    (0xa681, 0xa681, 2), (0xa682, 0xa682, 1), (0xa683, 0xa683, 2),
    (0xa684, 0xa684, 1), (0xa685, 0xa685, 2), (0xa686, 0xa686, 1),
    (0xa687, 0xa687, 2), (0xa688, 0xa688, 1), (0xa689, 0xa689, 2),
    (0xa68a, 0xa68a, 1), (0xa68b, 0xa68b, 2), (0xa68c, 0xa68c, 1),
    (0xa68d, 0xa68d, 2), (0xa68e, 0xa68e, 1), (0xa68f, 0xa68f, 2),
    (0xa690, 0xa690, 1), (0xa691, 0xa691, 2), (0xa692, 0xa692, 1),
    (0xa693, 0xa693, 2), (0xa694, 0xa694, 1), (0xa695, 0xa695, 2),
    (0xa696, 0xa696, 1), (0xa697, 0xa697, 2), (0xa698, 0xa698, 1),
    (0xa699, 0xa699, 2), (0xa69a, 0xa69a, 1), (0xa69b, 0xa69b, 2),
    (0xa69c, 0xa69d, 4), (0xa69e, 0xa69f, 8), (0xa6a0, 0xa6e5, 4),
    (0xa6e6, 0xa6ef, 16), (0xa6f0, 0xa6f1, 8), (0xa717, 0xa71f, 4),
    (0xa722, 0xa722, 1), (0xa723, 0xa723, 2), (0xa724, 0xa724, 1),
    (0xa725, 0xa725, 2), (0xa726, 0xa726, 1), (0xa727, 0xa727, 2),
    (0xa728, 0xa728, 1), (0xa729, 0xa729, 2), (0xa72a, 0xa72a, 1),
    (0xa72b, 0xa72b, 2), (0xa72c, 0xa72c, 1), (0xa72d, 0xa72d, 2),
    (0xa72e, 0xa72e, 1), (0xa72f, 0xa731, 2), (0xa732, 0xa732, 1),
    (0xa733, 0xa733, 2), (0xa734, 0xa734, 1), (0xa735, 0xa735, 2),
    (0xa736, 0xa736, 1), (0xa737, 0xa737, 2), (0xa738, 0xa738, 1),
    (0xa739, 0xa739, 2), (0xa73a, 0xa73a, 1), (0xa73b, 0xa73b, 2),
    (0xa73c, 0xa73c, 1), (0xa73d, 0xa73d, 2), (0xa73e, 0xa73e, 1),
    (0xa73f, 0xa73f, 2), (0xa740, 0xa740, 1), (0xa741, 0xa741, 2),
    (0xa742, 0xa742, 1), (0xa743, 0xa743, 2), (0xa744, 0xa744, 1),
    (0xa745, 0xa745, 2), (0xa746, 0xa746, 1), (0xa747, 0xa747, 2),
    (0xa748, 0xa748, 1), (0xa749, 0xa749, 2), (0xa74a, 0xa74a, 1),
    (0xa74b, 0xa74b, 2), (0xa74c, 0xa74c, 1), (0xa74d, 0xa74d, 2),
    (0xa74e, 0xa74e, 1), (0xa74f, 0xa74f, 2), (0xa750, 0xa750, 1),
    (0xa751, 0xa751, 2), (0xa752, 0xa752, 1), (0xa753, 0xa753, 2),
    (0xa754, 0xa754, 1), (0xa755, 0xa755, 2), (0xa756, 0xa756, 1),
    (0xa757, 0xa757, 2), (0xa758, 0xa758, 1), (0xa759, 0xa759, 2),
    (0xa75a, 0xa75a, 1), (0xa75b, 0xa75b, 2), (0xa75c, 0xa75c, 1),
    (0xa75d, 0xa75d, 2), (0xa75e, 0xa75e, 1), (0xa75f, 0xa75f, 2),
    (0xa760, 0xa760, 1), (0xa761, 0xa761, 2), (0xa762, 0xa762, 1),
    (0xa763, 0xa763, 2), (0xa764, 0xa764, 1), (0xa765, 0xa765, 2),
    (0xa766, 0xa766, 1), (0xa767, 0xa767, 2), (0xa768, 0xa768, 1),
    (0xa769, 0xa769, 2), (0xa76a, 0xa76a, 1), (0xa76b, 0xa76b, 2),
    (0xa76c, 0xa76c, 1), (0xa76d, 0xa76d, 2), (0xa76e, 0xa76e, 1),
    (0xa76f, 0xa76f, 2), (0xa770, 0xa770, 4), (0xa771, 0xa778, 2),
    (0xa779, 0xa779, 1), (0xa77a, 0xa77a, 2), (0xa77b, 0xa77b, 1),
    (0xa77c, 0xa77c, 2), (0xa77d, 0xa77e, 1), (0xa77f, 0xa77f, 2),
    (0xa780, 0xa780, 1), (0xa781, 0xa781, 2), (0xa782, 0xa782, 1),
    (0xa783, 0xa783, 2), (0xa784, 0xa784, 1), (0xa785, 0xa785, 2),
    (0xa786, 0xa786, 1), (0xa787, 0xa787, 2), (0xa788, 0xa788, 4),
    (0xa78b, 0xa78b, 1), (0xa78c, 0xa78c, 2), (0xa78d, 0xa78d, 1),
    (0xa78e, 0xa78e, 2), (0xa78f, 0xa78f, 4), (0xa790, 0xa790, 1),
    (0xa791, 0xa791, 2), (0xa792, 0xa792, 1), (0xa793, 0xa795, 2),
    (0xa796, 0xa796, 1), (0xa797, 0xa797, 2), (0xa798, 0xa798, 1),
    (0xa799, 0xa799, 2), (0xa79a, 0xa79a, 1), (0xa79b, 0xa79b, 2),
    (0xa79c, 0xa79c, 1), (0xa79d, 0xa79d, 2), (0xa79e, 0xa79e, 1),
    (0xa79f, 0xa79f, 2), (0xa7a0, 0xa7a0, 1), (0xa7a1, 0xa7a1, 2),
    (0xa7a2, 0xa7a2, 1), (0xa7a3, 0xa7a3, 2), (0xa7a4, 0xa7a4, 1),
    (0xa7a5, 0xa7a5, 2), (0xa7a6, 0xa7a6, 1), (0xa7a7, 0xa7a7, 2),
    (0xa7a8, 0xa7a8, 1), (0xa7a9, 0xa7a9, 2), (0xa7aa, 0xa7ae, 1),
    (0xa7af, 0xa7af, 2), (0xa7b0, 0xa7b4, 1), (0xa7b5, 0xa7b5, 2),
    (0xa7b6, 0xa7b6, 1), (0xa7b7, 0xa7b7, 2), (0xa7b8, 0xa7b8, 1),
    (0xa7b9, 0xa7b9, 2), (0xa7ba, 0xa7ba, 1), (0xa7bb, 0xa7bb, 2),
    (0xa7bc, 0xa7bc, 1), (0xa7bd, 0xa7bd, 2), (0xa7be, 0xa7be, 1),
    (0xa7bf, 0xa7bf, 2), (0xa7c0, 0xa7c0, 1), (0xa7c1, 0xa7c1, 2),
    (0xa7c2, 0xa7c2, 1), (0xa7c3, 0xa7c3, 2), (0xa7c4, 0xa7c7, 1),
    (0xa7c8, 0xa7c8, 2), (0xa7c9, 0xa7c9, 1), (0xa7ca, 0xa7ca, 2),
    (0xa7cb, 0xa7cc, 1), (0xa7cd, 0xa7cd, 2), (0xa7d0, 0xa7d0, 1),
    (0xa7d1, 0xa7d1, 2), (0xa7d3, 0xa7d3, 2), (0xa7d5, 0xa7d5, 2),
    (0xa7d6, 0xa7d6, 1), (0xa7d7, 0xa7d7, 2), (0xa7d8, 0xa7d8, 1),
    (0xa7d9, 0xa7d9, 2), (0xa7da, 0xa7da, 1), (0xa7db, 0xa7db, 2),
    (0xa7dc, 0xa7dc, 1), (0xa7f2, 0xa7f4, 4), (0xa7f5, 0xa7f5, 1),
    (0xa7f6, 0xa7f6, 2), (0xa7f7, 0xa7f9, 4), (0xa7fa, 0xa7fa, 2),
    (0xa7fb, 0xa801, 4), (0xa802, 0xa802, 8), (0xa803, 0xa805, 4),
    (0xa806, 0xa806, 8), (0xa807, 0xa80a, 4), (0xa80b, 0xa80b, 8),
    (0xa80c, 0xa822, 4), (0xa823, 0xa827, 8), (0xa82c, 0xa82c, 8),
    (0xa830, 0xa835, 16), (0xa840, 0xa873, 4), (0xa880, 0xa881, 8),
    (0xa882, 0xa8b3, 4), (0xa8b4, 0xa8c5, 8), (0xa8d0, 0xa8d9, 16),
    (0xa8e0, 0xa8f1, 8), (0xa8f2, 0xa8f7, 4), (0xa8fb, 0xa8fb, 4),
    (0xa8fd, 0xa8fe, 4), (0xa8ff, 0xa8ff, 8), (0xa900, 0xa909, 16),
    (0xa90a, 0xa925, 4), (0xa926, 0xa92d, 8), (0xa930, 0xa946, 4),
    (0xa947, 0xa953, 8), (0xa960, 0xa97c, 4), (0xa980, 0xa983, 8),
    (0xa984, 0xa9b2, 4), (0xa9b3, 0xa9c0, 8), (0xa9cf, 0xa9cf, 4),
    (0xa9d0, 0xa9d9, 16), (0xa9e0, 0xa9e4, 4), (0xa9e5, 0xa9e5, 8),
    (0xa9e6, 0xa9ef, 4), (0xa9f0, 0xa9f9, 16), (0xa9fa, 0xa9fe, 4),
    (0xaa00, 0xaa28, 4), (0xaa29, 0xaa36, 8), (0xaa40, 0xaa42, 4),
    (0xaa43, 0xaa43, 8), (0xaa44, 0xaa4b, 4), (0xaa4c, 0xaa4d, 8),
    (0xaa50, 0xaa59, 16), (0xaa60, 0xaa76, 4), (0xaa7a, 0xaa7a, 4),
    (0xaa7b, 0xaa7d, 8), (0xaa7e, 0xaaaf, 4), (0xaab0, 0xaab0, 8),
    (0xaab1, 0xaab1, 4), (0xaab2, 0xaab4, 8), (0xaab5, 0xaab6, 4),
    (0xaab7, 0xaab8, 8), (0xaab9, 0xaabd, 4), (0xaabe, 0xaabf, 8),
    (0xaac0, 0xaac0, 4), (0xaac1, 0xaac1, 8), (0xaac2, 0xaac2, 4),
    (0xaadb, 0xaadd, 4), (0xaae0, 0xaaea, 4), (0xaaeb, 0xaaef, 8),
    (0xaaf2, 0xaaf4, 4), (0xaaf5, 0xaaf6, 8), (0xab01, 0xab06, 4),
    (0xab09, 0xab0e, 4), (0xab11, 0xab16, 4), (0xab20, 0xab26, 4),
    (0xab28, 0xab2e, 4), (0xab30, 0xab5a, 2), (0xab5c, 0xab5f, 4),
    (0xab60, 0xab68, 2), (0xab69, 0xab69, 4), (0xab70, 0xabbf, 2),
    (0xabc0, 0xabe2, 4), (0xabe3, 0xabea, 8), (0xabec, 0xabed, 8),
    (0xabf0, 0xabf9, 16), (0xac00, 0xd7a3, 4), (0xd7b0, 0xd7c6, 4),
    (0xd7cb, 0xd7fb, 4), (0xf900, 0xfa6d, 4), (0xfa70, 0xfad9, 4),
    (0xfb00, 0xfb06, 2), (0xfb13, 0xfb17, 2), (0xfb1d, 0xfb1d, 4),
    (0xfb1e, 0xfb1e, 8), (0xfb1f, 0xfb28, 4), (0xfb2a, 0xfb36, 4),
    (0xfb38, 0xfb3c, 4), (0xfb3e, 0xfb3e, 4), (0xfb40, 0xfb41, 4),
    (0xfb43, 0xfb44, 4), (0xfb46, 0xfbb1, 4), (0xfbd3, 0xfd3d, 4),
    (0xfd50, 0xfd8f, 4), (0xfd92, 0xfdc7, 4), (0xfdf0, 0xfdfb, 4),
    (0xfe00, 0xfe0f, 8), (0xfe20, 0xfe2f, 8), (0xfe70, 0xfe74, 4),
    (0xfe76, 0xfefc, 4), (0xff10, 0xff19, 16), (0xff21, 0xff3a, 1),
    (0xff41, 0xff5a, 2), (0xff66, 0xffbe, 4), (0xffc2, 0xffc7, 4),
    (0xffca, 0xffcf, 4), (0xffd2, 0xffd7, 4), (0xffda, 0xffdc, 4),
    (0x10000, 0x1000b, 4), (0x1000d, 0x10026, 4), (0x10028, 0x1003a, 4),
    (0x1003c, 0x1003d, 4), (0x1003f, 0x1004d, 4), (0x10050, 0x1005d, 4),
    (0x10080, 0x100fa, 4), (0x10107, 0x10133, 16), (0x10140, 0x10178, 16),
    (0x1018a, 0x1018b, 16), (0x101fd, 0x101fd, 8), (0x10280, 0x1029c, 4),
    (0x102a0, 0x102d0, 4), (0x102e0, 0x102e0, 8), (0x102e1, 0x102fb, 16),
    (0x10300, 0x1031f, 4), (0x10320, 0x10323, 16), (0x1032d, 0x10340, 4),
    (0x10341, 0x10341, 16), (0x10342, 0x10349, 4), (0x1034a, 0x1034a, 16),
    (0x10350, 0x10375, 4), (0x10376, 0x1037a, 8), (0x10380, 0x1039d, 4),
    (0x103a0, 0x103c3, 4), (0x103c8, 0x103cf, 4), (0x103d1, 0x103d5, 16),
    (0x10400, 0x10427, 1), (0x10428, 0x1044f, 2), (0x10450, 0x1049d, 4),
    (0x104a0, 0x104a9, 16), (0x104b0, 0x104d3, 1), (0x104d8, 0x104fb, 2),
    (0x10500, 0x10527, 4), (0x10530, 0x10563, 4), (0x10570, 0x1057a, 1),
    (0x1057c, 0x1058a, 1), (0x1058c, 0x10592, 1), (0x10594, 0x10595, 1),
    (0x10597, 0x105a1, 2), (0x105a3, 0x105b1, 2), (0x105b3, 0x105b9, 2),
    (0x105bb, 0x105bc, 2), (0x105c0, 0x105f3, 4), (0x10600, 0x10736, 4),
    (0x10740, 0x10755, 4), (0x10760, 0x10767, 4), (0x10780, 0x10785, 4),
    (0x10787, 0x107b0, 4), (0x107b2, 0x107ba, 4), (0x10800, 0x10805, 4),
    (0x10808, 0x10808, 4), (0x1080a, 0x10835, 4), (0x10837, 0x10838, 4),
    (0x1083c, 0x1083c, 4), (0x1083f, 0x10855, 4), (0x10858, 0x1085f, 16),
    (0x10860, 0x10876, 4), (0x10879, 0x1087f, 16), (0x10880, 0x1089e, 4),
    (0x108a7, 0x108af, 16), (0x108e0, 0x108f2, 4), (0x108f4, 0x108f5, 4),
    (0x108fb, 0x108ff, 16), (0x10900, 0x10915, 4), (0x10916, 0x1091b, 16),
    (0x10920, 0x10939, 4), (0x10980, 0x109b7, 4), (0x109bc, 0x109bd, 16),
    (0x109be, 0x109bf, 4), (0x109c0, 0x109cf, 16), (0x109d2, 0x109ff, 16),
    (0x10a00, 0x10a00, 4), (0x10a01, 0x10a03, 8), (0x10a05, 0x10a06, 8),
    (0x10a0c, 0x10a0f, 8), (0x10a10, 0x10a13, 4), (0x10a15, 0x10a17, 4),
    (0x10a19, 0x10a35, 4), (0x10a38, 0x10a3a, 8), (0x10a3f, 0x10a3f, 8),
    (0x10a40, 0x10a48, 16), (0x10a60, 0x10a7c, 4), (0x10a7d, 0x10a7e, 16),
    (0x10a80, 0x10a9c, 4), (0x10a9d, 0x10a9f, 16), (0x10ac0, 0x10ac7, 4),
    (0x10ac9, 0x10ae4, 4), (0x10ae5, 0x10ae6, 8), (0x10aeb, 0x10aef, 16),
    (0x10b00, 0x10b35, 4), (0x10b40, 0x10b55, 4), (0x10b58, 0x10b5f, 16),
    (0x10b60, 0x10b72, 4), (0x10b78, 0x10b7f, 16), (0x10b80, 0x10b91, 4),
    (0x10ba9, 0x10baf, 16), (0x10c00, 0x10c48, 4), (0x10c80, 0x10cb2, 1),
    (0x10cc0, 0x10cf2, 2), (0x10cfa, 0x10cff, 16), (0x10d00, 0x10d23, 4),
    (0x10d24, 0x10d27, 8), (0x10d30, 0x10d39, 16), (0x10d40, 0x10d49, 16),
    (0x10d4a, 0x10d4f, 4), (0x10d50, 0x10d65, 1), (0x10d69, 0x10d6d, 8),
    (0x10d6f, 0x10d6f, 4), (0x10d70, 0x10d85, 2), (0x10e60, 0x10e7e, 16),
    (0x10e80, 0x10ea9, 4), (0x10eab, 0x10eac, 8), (0x10eb0, 0x10eb1, 4),
    (0x10ec2, 0x10ec4, 4), (0x10efc, 0x10eff, 8), (0x10f00, 0x10f1c, 4),
    (0x10f1d, 0x10f26, 16), (0x10f27, 0x10f27, 4), (0x10f30, 0x10f45, 4),
    (0x10f46, 0x10f50, 8), (0x10f51, 0x10f54, 16), (0x10f70, 0x10f81, 4),
    (0x10f82, 0x10f85, 8), (0x10fb0, 0x10fc4, 4), (0x10fc5, 0x10fcb, 16),
    (0x10fe0, 0x10ff6, 4), (0x11000, 0x11002, 8), (0x11003, 0x11037, 4),
    (0x11038, 0x11046, 8), (0x11052, 0x1106f, 16), (0x11070, 0x11070, 8),
    (0x11071, 0x11072, 4), (0x11073, 0x11074, 8), (0x11075, 0x11075, 4),
    (0x1107f, 0x11082, 8), (0x11083, 0x110af, 4), (0x110b0, 0x110ba, 8),
    (0x110c2, 0x110c2, 8), (0x110d0, 0x110e8, 4), (0x110f0, 0x110f9, 16),
    (0x11100, 0x11102, 8), (0x11103, 0x11126, 4), (0x11127, 0x11134, 8),
    (0x11136, 0x1113f, 16), (0x11144, 0x11144, 4), (0x11145, 0x11146, 8),
    (0x11147, 0x11147, 4), (0x11150, 0x11172, 4), (0x11173, 0x11173, 8),
    (0x11176, 0x11176, 4), (0x11180, 0x11182, 8), (0x11183, 0x111b2, 4),
    (0x111b3, 0x111c0, 8), (0x111c1, 0x111c4, 4), (0x111c9, 0x111cc, 8),
    (0x111ce, 0x111cf, 8), (0x111d0, 0x111d9, 16), (0x111da, 0x111da, 4),
    (0x111dc, 0x111dc, 4), (0x111e1, 0x111f4, 16), (0x11200, 0x11211, 4),
    (0x11213, 0x1122b, 4), (0x1122c, 0x11237, 8), (0x1123e, 0x1123e, 8),
    (0x1123f, 0x11240, 4), (0x11241, 0x11241, 8), (0x11280, 0x11286, 4),
    (0x11288, 0x11288, 4), (0x1128a, 0x1128d, 4), (0x1128f, 0x1129d, 4),
    (0x1129f, 0x112a8, 4), (0x112b0, 0x112de, 4), (0x112df, 0x112ea, 8),
    (0x112f0, 0x112f9, 16), (0x11300, 0x11303, 8), (0x11305, 0x1130c, 4),
    (0x1130f, 0x11310, 4), (0x11313, 0x11328, 4), (0x1132a, 0x11330, 4),
    (0x11332, 0x11333, 4), (0x11335, 0x11339, 4), (0x1133b, 0x1133c, 8),
    (0x1133d, 0x1133d, 4), (0x1133e, 0x11344, 8), (0x11347, 0x11348, 8),
    (0x1134b, 0x1134d, 8), (0x11350, 0x11350, 4), (0x11357, 0x11357, 8),
    (0x1135d, 0x11361, 4), (0x11362, 0x11363, 8), (0x11366, 0x1136c, 8),
    (0x11370, 0x11374, 8), (0x11380, 0x11389, 4), (0x1138b, 0x1138b, 4),
    (0x1138e, 0x1138e, 4), (0x11390, 0x113b5, 4), (0x113b7, 0x113b7, 4),
    (0x113b8, 0x113c0, 8), (0x113c2, 0x113c2, 8), (0x113c5, 0x113c5, 8),
    (0x113c7, 0x113ca, 8), (0x113cc, 0x113d0, 8), (0x113d1, 0x113d1, 4),
    (0x113d2, 0x113d2, 8), (0x113d3, 0x113d3, 4), (0x113e1, 0x113e2, 8),
    (0x11400, 0x11434, 4), (0x11435, 0x11446, 8), (0x11447, 0x1144a, 4),
    (0x11450, 0x11459, 16), (0x1145e, 0x1145e, 8), (0x1145f, 0x11461, 4),
    (0x11480, 0x114af, 4), (0x114b0, 0x114c3, 8), (0x114c4, 0x114c5, 4),
    (0x114c7, 0x114c7, 4), (0x114d0, 0x114d9, 16), (0x11580, 0x115ae, 4),
    (0x115af, 0x115b5, 8), (0x115b8, 0x115c0, 8), (0x115d8, 0x115db, 4),
    (0x115dc, 0x115dd, 8), (0x11600, 0x1162f, 4), (0x11630, 0x11640, 8),
    (0x11644, 0x11644, 4), (0x11650, 0x11659, 16), (0x11680, 0x116aa, 4),
    (0x116ab, 0x116b7, 8), (0x116b8, 0x116b8, 4), (0x116c0, 0x116c9, 16),
    (0x116d0, 0x116e3, 16), (0x11700, 0x1171a, 4), (0x1171d, 0x1172b, 8),
    (0x11730, 0x1173b, 16), (0x11740, 0x11746, 4), (0x11800, 0x1182b, 4),
    (0x1182c, 0x1183a, 8), (0x118a0, 0x118bf, 1), (0x118c0, 0x118df, 2),
    (0x118e0, 0x118f2, 16), (0x118ff, 0x11906, 4), (0x11909, 0x11909, 4),
    (0x1190c, 0x11913, 4), (0x11915, 0x11916, 4), (0x11918, 0x1192f, 4),
    (0x11930, 0x11935, 8), (0x11937, 0x11938, 8), (0x1193b, 0x1193e, 8),
    (0x1193f, 0x1193f, 4), (0x11940, 0x11940, 8), (0x11941, 0x11941, 4),
    (0x11942, 0x11943, 8), (0x11950, 0x11959, 16), (0x119a0, 0x119a7, 4),
    (0x119aa, 0x119d0, 4), (0x119d1, 0x119d7, 8), (0x119da, 0x119e0, 8),
    (0x119e1, 0x119e1, 4), (0x119e3, 0x119e3, 4), (0x119e4, 0x119e4, 8),
    (0x11a00, 0x11a00, 4), (0x11a01, 0x11a0a, 8), (0x11a0b, 0x11a32, 4),
    (0x11a33, 0x11a39, 8), (0x11a3a, 0x11a3a, 4), (0x11a3b, 0x11a3e, 8),
    (0x11a47, 0x11a47, 8), (0x11a50, 0x11a50, 4), (0x11a51, 0x11a5b, 8),
    (0x11a5c, 0x11a89, 4), (0x11a8a, 0x11a99, 8), (0x11a9d, 0x11a9d, 4),
    (0x11ab0, 0x11af8, 4), (0x11bc0, 0x11be0, 4), (0x11bf0, 0x11bf9, 16),
    (0x11c00, 0x11c08, 4), (0x11c0a, 0x11c2e, 4), (0x11c2f, 0x11c36, 8),
    (0x11c38, 0x11c3f, 8), (0x11c40, 0x11c40, 4), (0x11c50, 0x11c6c, 16),
    (0x11c72, 0x11c8f, 4), (0x11c92, 0x11ca7, 8), (0x11ca9, 0x11cb6, 8),
    (0x11d00, 0x11d06, 4), (0x11d08, 0x11d09, 4), (0x11d0b, 0x11d30, 4),
    (0x11d31, 0x11d36, 8), (0x11d3a, 0x11d3a, 8), (0x11d3c, 0x11d3d, 8),
    (0x11d3f, 0x11d45, 8), (0x11d46, 0x11d46, 4), (0x11d47, 0x11d47, 8),
    (0x11d50, 0x11d59, 16), (0x11d60, 0x11d65, 4), (0x11d67, 0x11d68, 4),
    (0x11d6a, 0x11d89, 4), (0x11d8a, 0x11d8e, 8), (0x11d90, 0x11d91, 8),
    (0x11d93, 0x11d97, 8), (0x11d98, 0x11d98, 4), (0x11da0, 0x11da9, 16),
    (0x11ee0, 0x11ef2, 4), (0x11ef3, 0x11ef6, 8), (0x11f00, 0x11f01, 8),
    (0x11f02, 0x11f02, 4), (0x11f03, 0x11f03, 8), (0x11f04, 0x11f10, 4),
    (0x11f12, 0x11f33, 4), (0x11f34, 0x11f3a, 8), (0x11f3e, 0x11f42, 8),
    (0x11f50, 0x11f59, 16), (0x11f5a, 0x11f5a, 8), (0x11fb0, 0x11fb0, 4),
    (0x11fc0, 0x11fd4, 16), (0x12000, 0x12399, 4), (0x12400, 0x1246e, 16),
    (0x12480, 0x12543, 4), (0x12f90, 0x12ff0, 4), (0x13000, 0x1342f, 4),
    (0x13440, 0x13440, 8), (0x13441, 0x13446, 4), (0x13447, 0x13455, 8),
    (0x13460, 0x143fa, 4), (0x14400, 0x14646, 4), (0x16100, 0x1611d, 4),
    (0x1611e, 0x1612f, 8), (0x16130, 0x16139, 16), (0x16800, 0x16a38, 4),
    (0x16a40, 0x16a5e, 4), (0x16a60, 0x16a69, 16), (0x16a70, 0x16abe, 4),
    (0x16ac0, 0x16ac9, 16), (0x16ad0, 0x16aed, 4), (0x16af0, 0x16af4, 8),
    (0x16b00, 0x16b2f, 4), (0x16b30, 0x16b36, 8), (0x16b40, 0x16b43, 4),
    (0x16b50, 0x16b59, 16), (0x16b5b, 0x16b61, 16), (0x16b63, 0x16b77, 4),
    (0x16b7d, 0x16b8f, 4), (0x16d40, 0x16d6c, 4), (0x16d70, 0x16d79, 16),
    (0x16e40, 0x16e5f, 1), (0x16e60, 0x16e7f, 2), (0x16e80, 0x16e96, 16),
    (0x16f00, 0x16f4a, 4), (0x16f4f, 0x16f4f, 8), (0x16f50, 0x16f50, 4),
    (0x16f51, 0x16f87, 8), (0x16f8f, 0x16f92, 8), (0x16f93, 0x16f9f, 4),
    (0x16fe0, 0x16fe1, 4), (0x16fe3, 0x16fe3, 4), (0x16fe4, 0x16fe4, 8),
    (0x16ff0, 0x16ff1, 8), (0x17000, 0x187f7, 4), (0x18800, 0x18cd5, 4),
    (0x18cff, 0x18d08, 4), (0x1aff0, 0x1aff3, 4), (0x1aff5, 0x1affb, 4),
    (0x1affd, 0x1affe, 4), (0x1b000, 0x1b122, 4), (0x1b132, 0x1b132, 4),
    (0x1b150, 0x1b152, 4), (0x1b155, 0x1b155, 4), (0x1b164, 0x1b167, 4),
    (0x1b170, 0x1b2fb, 4), (0x1bc00, 0x1bc6a, 4), (0x1bc70, 0x1bc7c, 4),
    (0x1bc80, 0x1bc88, 4), (0x1bc90, 0x1bc99, 4), (0x1bc9d, 0x1bc9e, 8),
    (0x1ccf0, 0x1ccf9, 16), (0x1cf00, 0x1cf2d, 8), (0x1cf30, 0x1cf46, 8),
    (0x1d165, 0x1d169, 8), (0x1d16d, 0x1d172, 8), (0x1d17b, 0x1d182, 8),
    (0x1d185, 0x1d18b, 8), (0x1d1aa, 0x1d1ad, 8), (0x1d242, 0x1d244, 8),
    (0x1d2c0, 0x1d2d3, 16), (0x1d2e0, 0x1d2f3, 16), (0x1d360, 0x1d378, 16),
    (0x1d400, 0x1d419, 1), (0x1d41a, 0x1d433, 2), (0x1d434, 0x1d44d, 1),
    (0x1d44e, 0x1d454, 2), (0x1d456, 0x1d467, 2), (0x1d468, 0x1d481, 1),
    (0x1d482, 0x1d49b, 2), (0x1d49c, 0x1d49c, 1), (0x1d49e, 0x1d49f, 1),
    (0x1d4a2, 0x1d4a2, 1), (0x1d4a5, 0x1d4a6, 1), (0x1d4a9, 0x1d4ac, 1),
    (0x1d4ae, 0x1d4b5, 1), (0x1d4b6, 0x1d4b9, 2), (0x1d4bb, 0x1d4bb, 2),
    (0x1d4bd, 0x1d4c3, 2), (0x1d4c5, 0x1d4cf, 2), (0x1d4d0, 0x1d4e9, 1),
    (0x1d4ea, 0x1d503, 2), (0x1d504, 0x1d505, 1), (0x1d507, 0x1d50a, 1),
    (0x1d50d, 0x1d514, 1), (0x1d516, 0x1d51c, 1), (0x1d51e, 0x1d537, 2),
    (0x1d538, 0x1d539, 1), (0x1d53b, 0x1d53e, 1), (0x1d540, 0x1d544, 1),
    (0x1d546, 0x1d546, 1), (0x1d54a, 0x1d550, 1), (0x1d552, 0x1d56b, 2),
    (0x1d56c, 0x1d585, 1), (0x1d586, 0x1d59f, 2), (0x1d5a0, 0x1d5b9, 1),
    (0x1d5ba, 0x1d5d3, 2), (0x1d5d4, 0x1d5ed, 1), (0x1d5ee, 0x1d607, 2),
    (0x1d608, 0x1d621, 1), (0x1d622, 0x1d63b, 2), (0x1d63c, 0x1d655, 1),
    (0x1d656, 0x1d66f, 2), (0x1d670, 0x1d689, 1), (0x1d68a, 0x1d6a5, 2),
    (0x1d6a8, 0x1d6c0, 1), (0x1d6c2, 0x1d6da, 2), (0x1d6dc, 0x1d6e1, 2),
    (0x1d6e2, 0x1d6fa, 1), (0x1d6fc, 0x1d714, 2), (0x1d716, 0x1d71b, 2),
    (0x1d71c, 0x1d734, 1), (0x1d736, 0x1d74e, 2), (0x1d750, 0x1d755, 2),
    (0x1d756, 0x1d76e, 1), (0x1d770, 0x1d788, 2), (0x1d78a, 0x1d78f, 2),
    (0x1d790, 0x1d7a8, 1), (0x1d7aa, 0x1d7c2, 2), (0x1d7c4, 0x1d7c9, 2),
    (0x1d7ca, 0x1d7ca, 1), (0x1d7cb, 0x1d7cb, 2), (0x1d7ce, 0x1d7ff, 16),
    (0x1da00, 0x1da36, 8), (0x1da3b, 0x1da6c, 8), (0x1da75, 0x1da75, 8),
    (0x1da84, 0x1da84, 8), (0x1da9b, 0x1da9f, 8), (0x1daa1, 0x1daaf, 8),
    (0x1df00, 0x1df09, 2), (0x1df0a, 0x1df0a, 4), (0x1df0b, 0x1df1e, 2),
    (0x1df25, 0x1df2a, 2), (0x1e000, 0x1e006, 8), (0x1e008, 0x1e018, 8),
    (0x1e01b, 0x1e021, 8), (0x1e023, 0x1e024, 8), (0x1e026, 0x1e02a, 8),
    (0x1e030, 0x1e06d, 4), (0x1e08f, 0x1e08f, 8), (0x1e100, 0x1e12c, 4),
    (0x1e130, 0x1e136, 8), (0x1e137, 0x1e13d, 4), (0x1e140, 0x1e149, 16),
    (0x1e14e, 0x1e14e, 4), (0x1e290, 0x1e2ad, 4), (0x1e2ae, 0x1e2ae, 8),
    (0x1e2c0, 0x1e2eb, 4), (0x1e2ec, 0x1e2ef, 8), (0x1e2f0, 0x1e2f9, 16),
    (0x1e4d0, 0x1e4eb, 4), (0x1e4ec, 0x1e4ef, 8), (0x1e4f0, 0x1e4f9, 16),
    (0x1e5d0, 0x1e5ed, 4), (0x1e5ee, 0x1e5ef, 8), (0x1e5f0, 0x1e5f0, 4),
    (0x1e5f1, 0x1e5fa, 16), (0x1e7e0, 0x1e7e6, 4), (0x1e7e8, 0x1e7eb, 4),
    (0x1e7ed, 0x1e7ee, 4), (0x1e7f0, 0x1e7fe, 4), (0x1e800, 0x1e8c4, 4),
    (0x1e8c7, 0x1e8cf, 16), (0x1e8d0, 0x1e8d6, 8), (0x1e900, 0x1e921, 1),
    (0x1e922, 0x1e943, 2), (0x1e944, 0x1e94a, 8), (0x1e94b, 0x1e94b, 4),
    (0x1e950, 0x1e959, 16), (0x1ec71, 0x1ecab, 16), (0x1ecad, 0x1ecaf, 16),
    (0x1ecb1, 0x1ecb4, 16), (0x1ed01, 0x1ed2d, 16), (0x1ed2f, 0x1ed3d, 16),
    (0x1ee00, 0x1ee03, 4), (0x1ee05, 0x1ee1f, 4), (0x1ee21, 0x1ee22, 4),
    (0x1ee24, 0x1ee24, 4), (0x1ee27, 0x1ee27, 4), (0x1ee29, 0x1ee32, 4),
    (0x1ee34, 0x1ee37, 4), (0x1ee39, 0x1ee39, 4), (0x1ee3b, 0x1ee3b, 4),
    (0x1ee42, 0x1ee42, 4), (0x1ee47, 0x1ee47, 4), (0x1ee49, 0x1ee49, 4),
    (0x1ee4b, 0x1ee4b, 4), (0x1ee4d, 0x1ee4f, 4), (0x1ee51, 0x1ee52, 4),
    (0x1ee54, 0x1ee54, 4), (0x1ee57, 0x1ee57, 4), (0x1ee59, 0x1ee59, 4),
    (0x1ee5b, 0x1ee5b, 4), (0x1ee5d, 0x1ee5d, 4), (0x1ee5f, 0x1ee5f, 4),
    (0x1ee61, 0x1ee62, 4), (0x1ee64, 0x1ee64, 4), (0x1ee67, 0x1ee6a, 4),
    (0x1ee6c, 0x1ee72, 4), (0x1ee74, 0x1ee77, 4), (0x1ee79, 0x1ee7c, 4),
    (0x1ee7e, 0x1ee7e, 4), (0x1ee80, 0x1ee89, 4), (0x1ee8b, 0x1ee9b, 4),
    (0x1eea1, 0x1eea3, 4), (0x1eea5, 0x1eea9, 4), (0x1eeab, 0x1eebb, 4),
    (0x1f100, 0x1f10c, 16), (0x1fbf0, 0x1fbf9, 16), (0x20000, 0x2a6df, 4),
    (0x2a700, 0x2b739, 4), (0x2b740, 0x2b81d, 4), (0x2b820, 0x2cea1, 4),
    (0x2ceb0, 0x2ebe0, 4), (0x2ebf0, 0x2ee5d, 4), (0x2f800, 0x2fa1d, 4),
    (0x30000, 0x3134a, 4), (0x31350, 0x323af, 4), (0xe0100, 0xe01ef, 8),
];

/// Class bitmask of an ASCII byte, as one table load with no call and no
/// bounds check.
///
/// Split out of [`class_of`] because it is the whole hot path. `class_of` is
/// large enough that LLVM keeps it out of line, and the pretokenizer consults a
/// class once per character, so routing ASCII through it charged every byte of
/// English text two nested calls to reach a load it could have done inline.
///
/// # Panics
///
/// Never: `& 0x7F` is the identity on the `byte < 0x80` every caller has
/// already established, and keeps the index provably in range for anything
/// else, so no caller can turn a misuse into a panic in the hot loop.
#[inline]
pub(super) const fn ascii_class(byte: u8) -> u8 {
    ASCII_CLASS[(byte as usize) & 0x7F]
}

/// Codepoints per page of the derived lookup below. 256 is not arbitrary: it is
/// the size that leaves only 139 of Unicode 16.0.0's 4352 pages needing a page
/// of their own, so the whole structure is 44 KiB rather than the 64 KiB a
/// 1024-codepoint page costs or the 46 KiB a 128-codepoint page costs.
const PAGE_BITS: u32 = 8;
/// Codepoints one page covers.
const PAGE_SIZE: usize = 1 << PAGE_BITS;
/// Pages spanning the whole scalar space, U+0000 through U+10FFFF.
const PAGE_COUNT: usize = 0x11_0000 >> PAGE_BITS;
/// Pages of Unicode 16.0.0 that are not one repeated mask, and so need a page
/// of per-codepoint bytes. Re-derived by [`build_pages`], which fails the build
/// rather than the lookup if a regenerated [`RANGES`] disagrees.
const BLOCK_COUNT: usize = 139;
/// Set in a page entry when the low byte IS the mask of every codepoint in that
/// page, so the lookup needs no second load. 4213 of 4352 pages are like this,
/// and every CJK page is, which is why a CJK scan touches only the page index.
const UNIFORM: u16 = 0x8000;

/// Two-level form of [`ASCII_CLASS`] and [`RANGES`], derived at compile time.
///
/// NOT a second copy of the data and not hand-written: [`build_pages`] rebuilds
/// it from those two tables on every compile, so regenerating them regenerates
/// this and the two cannot drift. `page_lookup_agrees_with_the_range_table`
/// re-checks the agreement over every scalar.
struct ClassPages {
    /// Per page: `UNIFORM | mask`, or an index into `block`.
    page: [u16; PAGE_COUNT],
    /// Per-codepoint masks for the pages that need them.
    block: [[u8; PAGE_SIZE]; BLOCK_COUNT],
}

/// `static` rather than `const` so the 44 KiB exists once, at one address,
/// instead of being inlined at each use site.
static PAGES: ClassPages = build_pages();

/// Fold [`ASCII_CLASS`] and [`RANGES`] into [`ClassPages`].
///
/// One cursor sweeps both tables, since [`RANGES`] is ascending and disjoint, so
/// this costs a walk of the ranges plus a fill of the 139 pages that need one.
/// A per-codepoint search would be 0x110000 binary searches at compile time.
///
/// # Panics
///
/// At COMPILE time, never at run time, if a regenerated [`RANGES`] needs a
/// different [`BLOCK_COUNT`]. The alternative to failing the build is a lookup
/// that silently reports class zero for a page it had no room for, which would
/// move split points and therefore token ids.
const fn build_pages() -> ClassPages {
    // A page no range reaches is uniformly class zero, which is what the
    // default entry says, so only the exceptions are written below.
    let mut pages = ClassPages {
        page: [UNIFORM; PAGE_COUNT],
        block: [[0; PAGE_SIZE]; BLOCK_COUNT],
    };
    let mut used = 0;
    let mut first = 0;
    let mut index = 0;
    while index < PAGE_COUNT {
        let low = (index << PAGE_BITS) as u32;
        let high = low + PAGE_SIZE as u32 - 1;
        // Ranges wholly below this page can never be reached again.
        while first < RANGES.len() && RANGES[first].1 < low {
            first += 1;
        }
        let intersects = first < RANGES.len() && RANGES[first].0 <= high;
        let spans = intersects && RANGES[first].0 <= low && RANGES[first].1 >= high;
        // Page 0 also carries the ASCII half of the tables, whose masks vary,
        // so it always needs its own page of bytes.
        if index != 0 && (!intersects || spans) {
            if spans {
                pages.page[index] = UNIFORM | RANGES[first].2 as u16;
            }
            index += 1;
            continue;
        }
        assert!(
            used < BLOCK_COUNT,
            "more non-uniform Unicode pages than BLOCK_COUNT; raise it to match"
        );
        let mut byte = 0;
        while index == 0 && byte < ASCII_CLASS.len() {
            pages.block[used][byte] = ASCII_CLASS[byte];
            byte += 1;
        }
        let mut range = first;
        while range < RANGES.len() && RANGES[range].0 <= high {
            let (start, end, mask) = RANGES[range];
            let mut scalar = if start > low { start } else { low };
            let last = if end < high { end } else { high };
            while scalar <= last {
                pages.block[used][(scalar - low) as usize] = mask;
                scalar += 1;
            }
            range += 1;
        }
        pages.page[index] = used as u16;
        used += 1;
        index += 1;
    }
    assert!(
        used == BLOCK_COUNT,
        "fewer non-uniform Unicode pages than BLOCK_COUNT; lower it to match"
    );
    pages
}

/// Class bitmask of a Unicode scalar value.
///
/// Zero means "in none of the classes these patterns test": unassigned,
/// punctuation, symbols, and non-whitespace controls all land here. The
/// pretokenizer also reports zero for bytes that are not part of a well-formed
/// UTF-8 sequence, which is what puts them in the punctuation alternative.
///
/// Two loads and no search. What this replaced was a `partition_point` over
/// 2358 ranges: twelve data-dependent branches per character, which cost about
/// fifty cycles and made a CJK scan four times slower per character than a
/// Latin one even though CJK is where the ranges are widest. A scalar past
/// U+10FFFF cannot come from the decoder, which rejects it, but the tests sweep
/// the whole `u32`-shaped space, so it reports zero rather than indexing out.
#[inline]
pub(super) fn class_of(scalar: u32) -> u8 {
    let Some(&entry) = PAGES.page.get((scalar >> PAGE_BITS) as usize) else {
        return 0;
    };
    if entry & UNIFORM != 0 {
        return entry as u8;
    }
    match PAGES.block.get(entry as usize) {
        Some(block) => block[(scalar as usize) & (PAGE_SIZE - 1)],
        None => 0,
    }
}

#[cfg(test)]
mod tests {
    use super::*;

    /// The mask [`RANGES`] assigns to `scalar`, by search rather than by table.
    ///
    /// This is the lookup [`class_of`] used before the page table replaced it,
    /// kept here as the reference the table is checked against.
    fn searched(scalar: u32) -> u8 {
        if let Some(&mask) = ASCII_CLASS.get(scalar as usize) {
            return mask;
        }
        let above = RANGES.partition_point(|&(first, _, _)| first <= scalar);
        match above.checked_sub(1).and_then(|index| RANGES.get(index)) {
            Some(&(_, last, mask)) if scalar <= last => mask,
            _ => 0,
        }
    }

    /// The page table answers exactly what searching [`RANGES`] answers, for
    /// every scalar in the Unicode space and past its end.
    ///
    /// Exhaustive rather than sampled because the table is derived by a `const
    /// fn` from the same generated data it is checked against: a derivation bug
    /// would be uniform inside one page and invisible to any sample that misses
    /// that page. 1.1 million scalars is a few milliseconds.
    #[test]
    fn page_lookup_agrees_with_the_range_table() {
        for scalar in 0..=0x10FFFF {
            assert_eq!(
                class_of(scalar),
                searched(scalar),
                "class disagrees at U+{scalar:04X}"
            );
        }
        // The decoder never produces these, but `class_of` takes a `u32` and
        // must index in bounds for anything it is handed.
        for scalar in [0x11_0000, 0x7FFF_FFFF, u32::MAX] {
            assert_eq!(class_of(scalar), 0, "past-Unicode U+{scalar:04X} is classless");
        }
    }

    /// The ASCII fast path agrees with the scalar path on every ASCII byte, and
    /// folds the high half onto the low half rather than indexing out.
    ///
    /// [`ascii_class`] exists only to skip the decode, so it earns its place
    /// only while it cannot disagree with the path it skips. The `& 0x7F` in it
    /// is there to make the index provably in range, not to define an answer
    /// for a non-ASCII byte: every caller gates on `byte < 0x80` first, and the
    /// aliasing asserted below is what that mask does if one ever does not.
    #[test]
    fn ascii_class_agrees_with_class_of_on_every_ascii_byte() {
        for byte in 0..=127u8 {
            assert_eq!(
                ascii_class(byte),
                class_of(u32::from(byte)),
                "ASCII class disagrees at {byte:#04x}"
            );
        }
        for byte in 128..=255u8 {
            assert_eq!(
                ascii_class(byte),
                ascii_class(byte & 0x7F),
                "the high half must alias the low half, not index out"
            );
        }
    }
}