#!/usr/bin/env node
import { createHash } from 'node:crypto';
import { readFile } from 'node:fs/promises';
import { fileURLToPath } from 'node:url';
import { dirname, resolve } from 'node:path';

const DATA = "2015-10-07|52,40,48,18,30\n2015-10-10|27,68,12,43,29\n2015-10-14|20,15,31,40,29\n2015-10-17|57,62,69,49,48\n2015-10-21|57,32,30,42,56\n2015-10-24|20,31,56,64,60\n2015-10-28|56,62,54,63,4\n2015-10-31|9,47,20,25,68\n2015-11-04|12,2,17,20,65\n2015-11-07|50,53,7,16,25\n2015-11-11|26,4,32,55,64\n2015-11-14|66,37,22,14,45\n2015-11-18|40,17,46,69,41\n2015-11-21|37,57,47,50,52\n2015-11-25|53,16,69,58,29\n2015-11-28|47,2,66,67,6\n2015-12-02|14,18,19,64,32\n2015-12-05|47,33,68,27,13\n2015-12-09|16,46,10,56,7\n2015-12-12|62,2,30,19,14\n2015-12-16|9,42,10,55,32\n2015-12-19|30,68,59,41,28\n2015-12-23|67,16,63,38,55\n2015-12-26|65,40,44,59,27\n2015-12-30|12,61,54,38,36\n2016-01-02|42,15,6,5,29\n2016-01-06|47,2,63,62,11\n2016-01-09|32,16,19,57,34\n2016-01-13|8,27,34,4,19\n2016-01-16|61,52,51,64,3\n2016-01-20|44,5,39,69,47\n2016-01-23|32,22,40,69,34\n2016-01-27|40,52,3,67,12\n2016-01-30|16,5,12,31,43\n2016-02-03|26,60,67,31,28\n2016-02-06|13,4,36,31,52\n2016-02-10|2,62,40,50,3\n2016-02-13|7,15,36,18,19\n2016-02-17|29,27,7,40,17\n2016-02-20|54,12,11,16,15\n2016-02-24|67,21,65,31,64\n2016-02-27|22,11,53,21,10\n2016-03-02|62,52,13,12,44\n2016-03-05|3,34,27,59,69\n2016-03-09|32,34,14,23,68\n2016-03-12|28,11,50,57,62\n2016-03-16|46,50,12,13,10\n2016-03-19|11,60,23,54,43\n2016-03-23|22,15,49,5,8\n2016-03-26|23,42,68,52,11\n2016-03-30|55,24,63,53,44\n2016-04-02|9,61,28,40,30\n2016-04-06|65,28,49,60,4\n2016-04-09|14,23,41,61,22\n2016-04-13|30,35,38,33,64\n2016-04-16|32,3,25,51,18\n2016-04-20|62,30,12,25,52\n2016-04-23|46,62,59,35,19\n2016-04-27|25,39,64,2,33\n2016-04-30|32,16,3,34,12\n2016-05-04|47,69,30,66,57\n2016-05-07|25,66,44,5,26\n2016-05-11|69,32,52,66,20\n2016-05-14|64,27,65,13,47\n2016-05-18|25,67,39,23,54\n2016-05-21|9,32,5,7,23\n2016-05-25|64,24,59,41,11\n2016-05-28|6,34,33,59,58\n2016-06-01|40,69,33,23,30\n2016-06-04|20,16,43,64,22\n2016-06-08|37,69,12,25,60\n2016-06-11|36,58,27,41,20\n2016-06-15|33,4,24,31,22\n2016-06-18|53,2,23,63,41\n2016-06-22|14,42,43,52,40\n2016-06-25|36,3,56,69,27\n2016-06-29|29,37,23,64,60\n2016-07-02|63,39,59,34,10\n2016-07-06|66,57,2,31,24\n2016-07-09|32,28,10,64,61\n2016-07-13|57,15,29,3,54\n2016-07-16|11,50,40,17,62\n2016-07-20|6,58,66,25,35\n2016-07-23|39,5,35,7,23\n2016-07-27|10,47,68,65,50\n2016-07-30|32,21,17,23,11\n2016-08-03|66,27,11,9,67\n2016-08-06|52,33,47,36,20\n2016-08-10|64,56,61,23,67\n2016-08-13|44,38,64,69,60\n2016-08-17|44,49,33,50,52\n2016-08-20|68,3,21,6,60\n2016-08-24|25,11,9,65,64\n2016-08-27|48,32,63,4,49\n2016-08-31|10,56,24,61,5\n2016-09-03|39,59,7,67,50\n2016-09-07|23,55,33,22,29\n2016-09-10|3,17,49,68,55\n2016-09-14|10,31,23,28,11\n2016-09-17|51,19,9,62,55\n2016-09-21|63,67,1,69,28\n2016-09-24|15,7,29,41,20\n2016-09-28|30,53,62,38,52\n2016-10-01|12,64,50,61,2\n2016-10-05|60,29,18,27,8\n2016-10-08|3,64,68,61,54\n2016-10-12|34,44,30,16,37\n2016-10-15|64,49,57,23,67\n2016-10-19|43,63,16,38,10\n2016-10-22|1,55,33,28,56\n2016-10-26|48,56,2,16,3\n2016-10-29|42,48,20,21,19\n2016-11-02|18,54,61,13,37\n2016-11-05|31,50,69,21,51\n2016-11-09|28,31,54,25,1\n2016-11-12|20,8,27,52,17\n2016-11-16|28,61,63,41,65\n2016-11-19|24,61,43,16,28\n2016-11-23|7,61,41,47,32\n2016-11-26|21,17,37,44,19\n2016-11-30|3,45,25,14,18\n2016-12-03|27,26,33,8,10\n2016-12-07|49,64,48,41,53\n2016-12-10|32,21,12,44,66\n2016-12-14|39,18,66,37,26\n2016-12-17|16,40,8,48,1\n2016-12-21|25,68,40,54,33\n2016-12-24|38,52,42,51,28\n2016-12-28|30,23,44,58,16\n2016-12-31|1,28,3,67,57\n2017-01-04|17,16,42,41,29\n2017-01-07|37,63,12,24,3\n2017-01-11|1,16,13,43,3\n2017-01-14|55,69,23,64,59\n2017-01-18|41,9,58,40,53\n2017-01-21|45,25,23,67,52\n2017-01-25|18,62,66,68,28\n2017-01-28|39,12,49,69,20\n2017-02-01|9,60,64,43,57\n2017-02-04|52,17,16,13,6\n2017-02-08|49,20,42,14,66\n2017-02-11|37,64,17,9,5\n2017-02-15|33,5,42,38,28\n2017-02-18|9,3,33,7,31\n2017-02-22|52,10,61,28,13\n2017-02-25|6,62,32,47,65\n2017-03-01|16,10,52,40,55\n2017-03-04|2,22,63,19,18\n2017-03-08|42,23,59,46,33\n2017-03-11|57,41,50,26,1\n2017-03-15|30,16,41,48,53\n2017-03-18|25,67,54,44,13\n2017-03-22|2,29,9,27,42\n2017-03-25|32,18,31,48,45\n2017-03-29|8,62,31,36,15\n2017-04-01|65,9,44,36,32\n2017-04-05|53,20,54,46,8\n2017-04-08|51,53,36,23,60\n2017-04-12|68,63,14,8,61\n2017-04-15|61,26,45,5,22\n2017-04-19|1,19,52,40,37\n2017-04-22|39,21,48,41,63\n2017-04-26|18,1,51,15,26\n2017-04-29|24,22,23,62,45\n2017-05-03|18,49,66,17,59\n2017-05-06|31,21,11,41,59\n2017-05-10|62,31,56,46,29\n2017-05-13|68,17,20,63,32\n2017-05-17|39,4,48,45,11\n2017-05-20|45,5,47,54,22\n2017-05-24|38,28,33,32,62\n2017-05-27|55,10,5,67,28\n2017-05-31|60,39,33,4,46\n2017-06-03|54,41,9,3,21\n2017-06-07|66,57,5,69,21\n2017-06-10|32,26,20,38,58\n2017-06-14|63,22,5,43,57\n2017-06-17|13,62,10,53,32\n2017-06-21|65,14,46,68,61\n2017-06-24|36,32,22,58,10\n2017-06-28|46,37,29,53,68\n2017-07-01|45,19,42,53,48\n2017-07-05|54,9,68,4,16\n2017-07-08|29,8,40,59,10\n2017-07-12|18,23,2,61,1\n2017-07-15|40,66,9,64,63\n2017-07-19|63,51,59,61,50\n2017-07-22|44,32,60,5,53\n2017-07-26|19,42,21,7,69\n2017-07-29|1,40,28,48,45\n2017-08-02|16,1,54,63,69\n2017-08-05|33,21,45,11,28\n2017-08-09|12,30,47,62,36\n2017-08-12|35,20,49,26,24\n2017-08-16|64,43,60,9,15\n2017-08-19|17,68,19,43,39\n2017-08-23|7,26,16,23,6\n2017-08-26|66,15,7,38,32\n2017-08-30|43,19,69,28,67\n2017-09-02|62,41,21,52,6\n2017-09-06|32,14,8,58,67\n2017-09-09|59,20,6,57,29\n2017-09-13|24,63,35,57,17\n2017-09-16|31,24,25,17,18\n2017-09-20|68,48,67,39,53\n2017-09-23|45,24,56,55,57\n2017-09-27|21,25,10,23,8\n2017-09-30|8,25,12,41,64\n2017-10-04|23,63,62,66,22\n2017-10-07|61,10,49,65,63\n2017-10-11|1,69,19,3,13\n2017-10-14|56,37,69,32,66\n2017-10-18|69,54,49,30,66\n2017-10-21|14,45,69,41,42\n2017-10-25|57,54,29,22,18\n2017-10-28|35,27,57,66,38\n2017-11-01|26,3,19,6,44\n2017-11-04|51,48,12,26,14\n2017-11-08|12,21,14,34,20\n2017-11-11|56,6,4,30,16\n2017-11-15|48,32,44,50,23\n2017-11-18|17,31,28,32,39\n2017-11-22|61,51,37,46,35\n2017-11-25|53,8,54,27,13\n2017-11-29|59,28,26,24,63\n2017-12-02|32,30,36,28,58\n2017-12-06|50,19,55,62,20\n2017-12-09|36,60,55,37,25\n2017-12-13|2,28,51,58,24\n2017-12-16|35,63,37,9,50\n2017-12-20|20,61,64,1,69\n2017-12-23|44,15,1,13,3\n2017-12-27|16,60,3,56,9\n2017-12-30|58,28,51,41,36\n2018-01-03|42,39,18,2,37\n2018-01-06|12,61,30,29,33\n2018-01-10|7,24,50,49,33\n2018-01-13|69,25,35,14,58\n2018-01-17|33,51,3,37,57\n2018-01-20|28,26,58,47,49\n2018-01-24|11,9,5,33,64\n2018-01-27|54,26,17,21,47\n2018-01-31|7,4,14,59,46\n2018-02-03|15,48,23,27,53\n2018-02-07|40,35,34,47,23\n2018-02-10|27,13,41,59,1\n2018-02-14|44,46,37,39,69\n2018-02-17|26,62,39,13,44\n2018-02-21|7,36,31,15,34\n2018-02-24|38,25,62,63,24\n2018-02-28|69,12,65,59,30\n2018-03-03|40,17,36,25,13\n2018-03-07|36,6,19,13,51\n2018-03-10|69,43,54,44,61\n2018-03-14|12,24,6,41,68\n2018-03-17|60,66,22,59,57\n2018-03-21|29,4,61,3,18\n2018-03-24|33,56,53,10,45\n2018-03-28|53,8,52,6,26\n2018-03-31|24,55,52,61,8\n2018-04-04|42,64,54,8,24\n2018-04-07|38,2,20,17,39\n2018-04-11|67,18,16,55,27\n2018-04-14|61,17,19,26,62\n2018-04-18|12,17,10,9,23\n2018-04-21|50,69,54,62,40\n2018-04-25|18,17,39,64,56\n2018-04-28|28,50,22,45,20\n2018-05-02|40,5,31,50,14\n2018-05-05|29,36,14,61,57\n2018-05-09|50,69,16,38,11\n2018-05-12|42,56,22,55,45\n2018-05-16|17,22,21,19,51\n2018-05-19|56,9,17,3,6\n2018-05-23|20,54,61,56,64\n2018-05-26|45,31,21,1,49\n2018-05-30|46,23,26,17,68\n2018-06-02|23,37,64,44,25\n2018-06-06|53,28,41,23,56\n2018-06-09|36,10,25,6,15\n2018-06-13|13,38,45,20,55\n2018-06-16|65,9,58,57,45\n2018-06-20|14,56,27,4,23\n2018-06-23|29,56,45,16,43\n2018-06-27|63,28,62,7,37\n2018-06-30|9,3,20,42,61\n2018-07-04|7,41,15,4,44\n2018-07-07|45,43,1,10,64\n2018-07-11|21,19,47,27,46\n2018-07-14|49,22,41,67,42\n2018-07-18|28,36,10,1,27\n2018-07-21|9,56,58,23,68\n2018-07-25|64,44,18,2,41\n2018-07-28|27,65,56,46,22\n2018-08-01|5,38,22,58,32\n2018-08-04|38,58,3,11,44\n2018-08-08|21,63,30,43,10\n2018-08-11|56,43,5,68,62\n2018-08-15|28,15,12,47,48\n2018-08-18|34,67,52,61,24\n2018-08-22|45,1,47,69,7\n2018-08-25|25,20,57,63,54\n2018-08-29|53,25,41,67,57\n2018-09-01|54,66,55,61,11\n2018-09-05|59,60,6,50,15\n2018-09-08|20,32,3,33,13\n2018-09-12|28,48,63,6,64\n2018-09-15|19,18,24,34,2\n2018-09-19|50,4,51,48,39\n2018-09-22|61,24,69,64,63\n2018-09-26|7,1,30,50,2\n2018-09-29|9,17,34,59,64\n2018-10-03|63,66,53,59,41\n2018-10-06|22,53,27,67,1\n2018-10-10|27,60,42,23,8\n2018-10-13|14,65,11,43,32\n2018-10-17|3,64,69,68,57\n2018-10-20|62,16,54,57,69\n2018-10-24|56,53,45,21,3\n2018-10-27|13,12,8,27,19\n2018-10-31|40,39,47,7,25\n2018-11-03|24,65,21,32,15\n2018-11-07|50,28,34,42,26\n2018-11-10|53,29,5,57,34\n2018-11-14|49,62,42,7,69\n2018-11-17|8,6,68,20,52\n2018-11-21|14,23,38,7,55\n2018-11-24|56,33,58,51,11\n2018-11-28|4,68,59,69,19\n2018-12-01|10,58,47,11,55\n2018-12-05|36,38,9,11,37\n2018-12-08|61,14,34,32,46\n2018-12-12|9,64,29,21,4\n2018-12-15|8,38,55,52,43\n2018-12-19|43,31,29,37,15\n2018-12-22|40,59,28,21,30\n2018-12-26|52,38,25,67,5\n2018-12-29|51,53,42,62,12\n2019-01-02|56,46,42,12,8\n2019-01-05|15,27,69,7,3\n2019-01-09|19,59,37,6,49\n2019-01-12|57,58,7,36,48\n2019-01-16|14,61,29,31,56\n2019-01-19|5,65,8,66,41\n2019-01-23|50,25,48,23,47\n2019-01-26|12,8,21,32,20\n2019-01-30|16,2,12,29,54\n2019-02-02|10,43,17,18,65\n2019-02-06|13,28,5,63,38\n2019-02-09|7,39,2,3,1\n2019-02-13|2,24,8,69,14\n2019-02-16|48,30,41,64,29\n2019-02-20|50,52,49,51,27\n2019-02-23|32,4,20,6,14\n2019-02-27|49,31,59,42,21\n2019-03-02|27,68,25,19,1\n2019-03-06|21,35,10,6,46\n2019-03-09|45,5,59,55,6\n2019-03-13|69,36,45,47,18\n2019-03-16|67,30,34,39,53\n2019-03-20|10,53,50,63,14\n2019-03-23|66,52,60,24,25\n2019-03-27|44,62,20,37,16\n2019-03-30|54,52,21,64,68\n2019-04-03|25,16,32,49,19\n2019-04-06|33,43,60,59,15\n2019-04-10|39,12,21,23,67\n2019-04-13|17,26,32,4,49\n2019-04-17|15,46,66,17,1\n2019-04-20|3,63,27,65,30\n2019-04-24|35,65,32,36,6\n2019-04-27|45,29,62,41,2\n2019-05-01|66,28,23,56,5\n2019-05-04|30,6,23,16,61\n2019-05-08|66,64,45,53,1\n2019-05-11|40,9,8,6,37\n2019-05-15|33,68,61,17,7\n2019-05-18|2,10,66,67,25\n2019-05-22|7,44,57,10,20\n2019-05-25|43,39,2,66,1\n2019-05-29|61,3,42,32,34\n2019-06-01|34,45,6,52,15\n2019-06-05|38,17,28,34,23\n2019-06-08|13,9,48,42,60\n2019-06-12|42,57,35,38,5\n2019-06-15|8,11,49,16,14\n2019-06-19|26,38,21,4,18\n2019-06-22|66,14,3,6,11\n2019-06-26|54,22,16,1,5\n2019-06-29|59,13,24,62,17\n2019-07-03|50,45,43,40,61\n2019-07-06|4,8,46,23,65\n2019-07-10|7,68,9,26,44\n2019-07-13|32,35,13,23,68\n2019-07-17|19,47,68,60,43\n2019-07-20|5,64,36,26,69\n2019-07-24|29,53,56,35,22\n2019-07-27|61,19,1,48,31\n2019-07-31|14,37,67,47,55\n2019-08-03|45,68,3,6,66\n2019-08-07|47,8,59,32,53\n2019-08-10|41,59,58,44,35\n2019-08-14|51,69,30,10,13\n2019-08-17|24,30,18,21,60\n2019-08-21|22,32,21,12,29\n2019-08-24|47,20,12,21,5\n2019-08-28|32,9,41,56,37\n2019-08-31|41,50,14,56,57\n2019-09-04|52,30,8,4,59\n2019-09-07|41,56,20,11,42\n2019-09-11|53,24,57,6,17\n2019-09-14|31,11,27,36,67\n2019-09-18|14,19,47,51,39\n2019-09-21|1,68,36,22,9\n2019-09-25|44,43,37,45,53\n2019-09-28|51,55,34,15,23\n2019-10-02|43,53,8,10,4\n2019-10-05|6,51,36,54,14\n2019-10-09|5,43,65,18,33\n2019-10-12|12,34,53,65,29\n2019-10-16|67,1,25,5,63\n2019-10-19|65,27,59,14,29\n2019-10-23|61,50,12,5,69\n2019-10-26|3,54,20,59,48\n2019-10-30|56,67,52,19,22\n2019-11-02|23,37,32,58,3\n2019-11-06|64,46,28,62,15\n2019-11-09|14,38,60,35,17\n2019-11-13|23,28,66,27,26\n2019-11-16|26,55,63,14,22\n2019-11-20|40,15,39,57,7\n2019-11-23|38,28,66,35,61\n2019-11-27|26,55,37,53,15\n2019-11-30|42,35,15,63,68\n2019-12-04|8,44,61,51,27\n2019-12-07|66,53,18,42,62\n2019-12-11|24,42,29,44,63\n2019-12-14|6,32,3,12,64\n2019-12-18|39,26,68,18,14\n2019-12-21|50,35,67,19,31\n2019-12-25|4,16,2,30,46\n2019-12-28|59,23,39,20,60\n2020-01-01|49,53,57,59,62\n2020-01-04|54,1,25,21,11\n2020-01-08|7,43,56,4,2\n2020-01-11|23,59,31,3,21\n2020-01-15|39,55,53,41,68\n2020-01-18|24,68,20,38,56\n2020-01-22|33,59,44,67,11\n2020-01-25|36,17,2,67,9\n2020-01-29|12,60,9,15,31\n2020-02-01|33,60,54,57,12\n2020-02-05|57,41,35,30,23\n2020-02-08|59,66,35,50,49\n2020-02-12|55,68,47,54,14\n2020-02-15|32,16,36,46,35\n2020-02-19|15,10,12,56,19\n2020-02-22|61,62,37,39,25\n2020-02-26|27,29,36,47,8\n2020-02-29|24,50,46,44,51\n2020-03-04|68,60,18,43,58\n2020-03-07|15,62,7,21,33\n2020-03-11|29,50,67,4,49\n2020-03-14|26,32,9,23,30\n2020-03-18|27,15,59,44,63\n2020-03-21|69,23,2,59,40\n2020-03-25|42,9,5,27,39\n2020-03-28|40,7,55,66,48\n2020-04-01|60,45,48,33,35\n2020-04-04|40,43,31,8,39\n2020-04-08|48,54,39,2,37\n2020-04-11|29,47,30,22,42\n2020-04-15|10,33,41,12,36\n2020-04-18|46,63,56,4,44\n2020-04-22|1,40,69,33,35\n2020-04-25|1,21,3,57,47\n2020-04-29|49,61,67,2,20\n2020-05-02|58,33,13,68,16\n2020-05-06|65,8,7,50,35\n2020-05-09|42,12,65,48,18\n2020-05-13|57,54,53,56,39\n2020-05-16|8,12,26,42,39\n2020-05-20|42,40,50,18,34\n2020-05-23|2,23,8,18,21\n2020-05-27|58,38,59,64,68\n2020-05-30|32,13,58,41,60\n2020-06-03|64,26,1,3,41\n2020-06-06|68,38,69,1,17\n2020-06-10|33,10,41,54,52\n2020-06-13|65,12,2,32,50\n2020-06-17|10,7,68,64,63\n2020-06-20|67,10,31,63,41\n2020-06-24|15,22,46,27,33\n2020-06-27|36,56,49,62,9\n2020-07-01|53,28,15,52,63\n2020-07-04|60,16,21,27,61\n2020-07-08|36,10,3,34,62\n2020-07-11|61,14,19,62,64\n2020-07-15|61,69,47,27,62\n2020-07-18|32,59,13,58,16\n2020-07-22|16,36,25,44,55\n2020-07-25|36,5,62,21,61\n2020-07-29|7,40,29,35,45\n2020-08-01|43,48,36,25,6\n2020-08-05|65,7,14,57,17\n2020-08-08|14,2,3,40,51\n2020-08-12|18,6,36,2,37\n2020-08-15|5,34,56,45,12\n2020-08-19|13,47,55,23,58\n2020-08-22|36,19,42,30,66\n2020-08-26|8,19,47,58,12\n2020-08-29|22,5,21,29,43\n2020-09-02|11,20,4,69,1\n2020-09-05|27,15,22,47,21\n2020-09-09|55,27,64,52,60\n2020-09-12|16,67,17,53,20\n2020-09-16|31,10,17,51,53\n2020-09-19|14,47,57,23,11\n2020-09-23|8,17,52,59,49\n2020-09-26|62,36,11,21,27\n2020-09-30|67,49,18,14,36\n2020-10-03|18,47,31,43,36\n2020-10-07|6,56,53,30,24\n2020-10-10|23,50,18,40,5\n2020-10-14|37,52,58,53,21\n2020-10-17|6,31,37,10,44\n2020-10-21|44,13,1,3,56\n2020-10-24|27,65,45,20,18\n2020-10-28|37,40,11,28,53\n2020-10-31|40,2,42,55,6\n2020-11-04|49,33,45,23,32\n2020-11-07|16,14,58,37,48\n2020-11-11|63,13,45,17,15\n2020-11-14|45,32,7,18,15\n2020-11-18|17,4,43,5,52\n2020-11-21|69,54,57,51,60\n2020-11-25|57,2,65,58,60\n2020-11-28|12,51,44,8,18\n2020-12-02|40,28,31,41,46\n2020-12-05|4,53,6,48,3\n2020-12-09|47,31,14,48,11\n2020-12-12|56,17,54,63,69\n2020-12-16|37,4,67,23,61\n2020-12-19|27,52,43,32,34\n2020-12-23|6,38,53,39,13\n2020-12-26|35,53,27,24,10\n2020-12-30|45,65,43,61,3\n2021-01-02|3,67,41,4,11\n2021-01-06|1,66,20,22,60\n2021-01-09|45,46,26,14,38\n2021-01-13|49,4,23,25,19\n2021-01-16|67,20,65,14,39\n2021-01-20|53,60,40,68,69\n2021-01-23|8,5,17,28,27\n2021-01-27|35,52,17,42,33\n2021-01-30|61,2,7,52,1\n2021-02-03|64,66,40,5,37\n2021-02-06|48,1,65,16,49\n2021-02-10|67,63,58,15,39\n2021-02-13|68,33,20,63,28\n2021-02-17|15,46,21,1,32\n2021-02-20|22,8,32,4,58\n2021-02-24|65,33,4,53,43\n2021-02-27|44,31,2,52,28\n2021-03-03|55,44,21,50,40\n2021-03-06|50,11,58,52,31\n2021-03-10|44,17,53,18,37\n2021-03-13|56,61,11,51,5\n2021-03-17|62,61,38,34,42\n2021-03-20|6,61,42,1,22\n2021-03-24|38,27,4,17,9\n2021-03-27|39,65,6,14,38\n2021-03-31|3,55,10,44,68\n2021-04-03|39,17,12,53,1\n2021-04-07|27,66,35,39,51\n2021-04-10|16,53,23,50,14\n2021-04-14|13,45,33,30,61\n2021-04-17|41,21,26,10,49\n2021-04-21|25,32,21,67,63\n2021-04-24|36,61,59,22,48\n2021-04-28|16,35,53,18,39\n2021-05-01|47,36,63,35,61\n2021-05-05|63,28,16,40,23\n2021-05-08|20,17,12,21,26\n2021-05-12|20,19,1,38,54\n2021-05-15|39,4,10,37,69\n2021-05-19|11,69,13,56,55\n2021-05-22|40,3,27,37,19\n2021-05-26|21,62,34,8,2\n2021-05-29|13,11,46,22,27\n2021-06-02|67,7,6,11,66\n2021-06-05|64,52,44,69,54\n2021-06-09|54,46,28,50,19\n2021-06-12|8,41,38,25,34\n2021-06-16|19,34,50,44,29\n2021-06-19|38,22,4,39,35\n2021-06-23|20,40,63,13,51\n2021-06-26|31,60,43,8,39\n2021-06-30|50,66,24,65,29\n2021-07-03|26,55,40,41,65\n2021-07-07|8,49,57,30,21\n2021-07-10|29,1,62,5,54\n2021-07-14|52,62,33,59,46\n2021-07-17|54,38,22,15,66\n2021-07-21|27,44,67,28,68\n2021-07-24|4,11,67,1,59\n2021-07-28|53,25,60,59,30\n2021-07-31|21,22,34,1,47\n2021-08-04|36,5,21,58,32\n2021-08-07|24,54,7,60,36\n2021-08-11|18,12,29,20,30\n2021-08-14|6,65,49,67,21\n2021-08-18|36,61,55,51,35\n2021-08-21|59,39,36,16,28\n2021-08-23|47,17,61,36,60\n2021-08-25|39,59,27,54,56\n2021-08-28|12,59,46,26,22\n2021-08-30|61,3,51,45,15\n2021-09-01|10,20,29,48,51\n2021-09-04|54,32,35,40,52\n2021-09-06|33,11,54,22,20\n2021-09-08|22,9,41,61,47\n2021-09-11|40,38,31,20,49\n2021-09-13|37,63,61,50,40\n2021-09-15|46,4,62,1,18\n2021-09-18|45,39,5,57,36\n2021-09-20|58,51,37,54,60\n2021-09-22|47,63,20,40,55\n2021-09-25|37,23,62,22,63\n2021-09-27|44,21,22,39,60\n2021-09-29|32,17,2,7,11\n2021-10-02|42,38,47,52,28\n2021-10-04|66,12,22,54,69\n2021-10-06|17,64,52,1,58\n2021-10-09|62,12,30,17,45\n2021-10-11|20,11,33,39,65\n2021-10-13|47,23,59,29,60\n2021-10-16|30,48,31,41,42\n2021-10-18|53,30,63,48,32\n2021-10-20|7,41,29,43,36\n2021-10-23|30,10,57,63,51\n2021-10-25|29,58,44,10,27\n2021-10-27|3,26,51,35,6\n2021-10-30|56,23,28,5,43\n2021-11-01|44,9,25,34,45\n2021-11-03|50,1,57,24,2\n2021-11-06|64,8,48,30,57\n2021-11-08|47,46,62,57,21\n2021-11-10|46,25,43,48,19\n2021-11-13|45,15,35,26,8\n2021-11-15|53,31,51,34,5\n2021-11-17|48,3,60,16,52\n2021-11-20|48,59,40,69,43\n2021-11-22|7,67,20,29,38\n2021-11-24|65,16,63,10,32\n2021-11-27|32,55,66,64,8\n2021-11-29|28,26,18,38,47\n2021-12-01|12,57,38,15,63\n2021-12-04|56,45,10,40,67\n2021-12-06|3,21,59,50,38\n2021-12-08|33,50,7,3,69\n2021-12-11|25,53,44,3,64\n2021-12-13|10,37,59,53,30\n2021-12-15|19,20,59,40,42\n2021-12-18|61,24,51,6,2\n2021-12-20|13,66,2,23,34\n2021-12-22|16,68,48,7,19\n2021-12-25|29,45,58,55,27\n2021-12-27|62,45,36,64,38\n2021-12-29|39,6,9,33,2\n2022-01-01|39,48,12,50,6\n2022-01-03|2,33,13,32,48\n2022-01-05|25,6,14,33,46\n2022-01-08|21,20,65,36,60\n2022-01-10|17,21,14,27,18\n2022-01-12|21,22,30,12,33\n2022-01-15|3,59,37,51,18\n2022-01-17|46,65,24,35,9\n2022-01-19|11,43,61,15,55\n2022-01-22|67,14,8,33,36\n2022-01-24|11,53,47,30,29\n2022-01-26|69,38,49,4,11\n2022-01-29|54,2,15,65,38\n2022-01-31|61,10,69,51,15\n2022-02-02|33,62,18,63,29\n2022-02-05|39,61,27,16,5\n2022-02-07|65,5,15,38,47\n2022-02-09|63,17,51,2,33\n2022-02-12|10,8,41,21,62\n2022-02-14|49,55,16,27,25\n2022-02-16|40,22,48,30,42\n2022-02-19|10,3,15,42,33\n2022-02-21|37,45,36,69,2\n2022-02-23|64,35,17,6,21\n2022-02-26|48,32,36,64,15\n2022-02-28|21,7,39,47,55\n2022-03-02|63,61,48,19,37\n2022-03-05|37,23,52,63,8\n2022-03-07|59,67,10,55,43\n2022-03-09|34,13,22,67,51\n2022-03-12|19,39,37,61,20\n2022-03-14|21,28,32,49,44\n2022-03-16|58,35,28,34,3\n2022-03-19|9,52,18,8,48\n2022-03-21|26,15,65,63,1\n2022-03-23|37,38,31,32,48\n2022-03-26|2,50,10,59,61\n2022-03-28|62,11,18,58,39\n2022-03-30|37,3,31,21,7\n2022-04-02|58,59,47,28,6\n2022-04-04|2,39,69,32,46\n2022-04-06|6,45,47,42,64\n2022-04-09|62,31,66,6,16\n2022-04-11|5,34,24,31,7\n2022-04-13|63,68,41,16,14\n2022-04-16|62,32,15,65,21\n2022-04-18|8,33,59,55,62\n2022-04-20|55,30,56,20,45\n2022-04-23|49,10,56,39,47\n2022-04-25|18,61,12,39,20\n2022-04-27|62,68,61,11,36\n2022-04-30|21,37,44,63,14\n2022-05-02|18,39,44,33,27\n2022-05-04|55,63,69,39,37\n2022-05-07|5,28,6,67,4\n2022-05-09|18,56,30,35,52\n2022-05-11|61,5,7,69,63\n2022-05-14|6,52,40,45,41\n2022-05-16|7,22,15,36,64\n2022-05-18|64,41,40,58,65\n2022-05-21|15,52,25,58,14\n2022-05-23|42,37,33,1,39\n2022-05-25|42,19,28,39,57\n2022-05-28|66,50,61,39,2\n2022-05-30|51,69,28,68,27\n2022-06-01|41,56,63,11,57\n2022-06-04|60,52,14,16,36\n2022-06-06|10,2,44,35,46\n2022-06-08|39,43,62,22,64\n2022-06-11|26,53,69,20,18\n2022-06-13|2,44,42,51,27\n2022-06-15|28,19,42,41,51\n2022-06-18|40,45,10,19,58\n2022-06-20|3,44,69,61,63\n2022-06-22|10,56,6,31,48\n2022-06-25|12,20,32,27,6\n2022-06-27|13,30,37,18,11\n2022-06-29|63,40,8,49,58\n2022-07-02|59,10,9,37,62\n2022-07-04|16,15,56,31,24\n2022-07-06|36,32,69,49,62\n2022-07-09|42,22,52,46,14\n2022-07-11|52,37,34,4,26\n2022-07-13|22,23,47,63,36\n2022-07-16|23,57,32,18,3\n2022-07-18|36,14,50,58,34\n2022-07-20|20,10,65,23,49\n2022-07-23|59,39,41,54,62\n2022-07-25|25,37,38,39,65\n2022-07-27|25,55,1,44,57\n2022-07-30|17,4,58,68,57\n2022-08-01|31,65,36,15,21\n2022-08-03|9,66,21,57,56\n2022-08-06|15,8,46,56,68\n2022-08-08|58,45,51,57,32\n2022-08-10|68,59,61,44,29\n2022-08-13|43,35,24,62,19\n2022-08-15|20,50,47,63,24\n2022-08-17|41,23,55,50,28\n2022-08-20|16,11,9,66,5\n2022-08-22|12,55,67,27,34\n2022-08-24|37,35,6,24,44\n2022-08-27|2,65,60,18,56\n2022-08-29|69,61,43,13,36\n2022-08-31|24,19,7,8,28\n2022-09-03|18,27,65,49,69\n2022-09-05|4,7,55,32,64\n2022-09-07|3,33,16,30,36\n2022-09-10|56,68,38,42,69\n2022-09-12|66,14,34,6,16\n2022-09-14|20,10,22,52,9\n2022-09-17|5,25,36,61,51\n2022-09-19|7,15,67,46,36\n2022-09-21|33,34,6,54,45\n2022-09-24|3,21,29,24,9\n2022-09-26|31,33,13,20,59\n2022-09-28|10,67,33,24,6\n2022-10-01|69,22,21,65,8\n2022-10-03|55,63,2,16,22\n2022-10-05|26,37,33,62,30\n2022-10-08|53,60,68,43,13\n2022-10-10|17,3,22,11,6\n2022-10-12|59,30,42,14,41\n2022-10-15|32,62,40,58,37\n2022-10-17|46,30,36,19,60\n2022-10-19|27,42,15,8,6\n2022-10-22|55,25,60,19,48\n2022-10-24|23,45,54,35,18\n2022-10-26|46,37,19,56,36\n2022-10-29|40,19,57,31,46\n2022-10-31|19,13,39,59,36\n2022-11-02|22,11,60,2,35\n2022-11-05|69,53,45,56,28\n2022-11-07|56,41,33,47,10\n2022-11-09|14,24,7,30,56\n2022-11-12|58,57,20,44,16\n2022-11-14|54,67,19,53,35\n2022-11-16|53,56,28,34,51\n2022-11-19|62,63,28,7,64\n2022-11-21|1,67,51,40,6\n2022-11-23|31,2,1,39,66\n2022-11-26|15,30,47,50,51\n2022-11-28|48,30,50,32,29\n2022-11-30|4,24,47,66,19\n2022-12-03|13,36,37,6,33\n2022-12-05|35,54,55,45,47\n2022-12-07|61,59,28,6,44\n2022-12-10|23,9,68,49,47\n2022-12-12|55,16,50,31,61\n2022-12-14|36,51,68,66,59\n2022-12-17|56,33,66,68,64\n2022-12-19|55,37,65,7,67\n2022-12-21|34,15,59,24,12\n2022-12-24|37,17,67,54,46\n2022-12-26|60,41,47,17,61\n2022-12-28|32,38,45,26,56\n2022-12-31|18,37,44,64,50\n2023-01-02|9,62,12,7,31\n2023-01-04|68,12,56,32,67\n2023-01-07|45,36,67,35,44\n2023-01-09|18,43,48,60,69\n2023-01-11|4,47,48,8,46\n2023-01-14|24,26,57,39,47\n2023-01-16|14,33,4,61,39\n2023-01-18|15,47,22,6,42\n2023-01-21|14,5,64,19,46\n2023-01-23|47,60,31,58,12\n2023-01-25|17,38,20,9,40\n2023-01-28|23,27,47,18,2\n2023-01-30|49,1,36,4,12\n2023-02-01|58,59,43,31,66\n2023-02-04|58,2,15,19,8\n2023-02-06|22,11,23,5,69\n2023-02-08|64,59,66,58,52\n2023-02-11|65,30,10,23,54\n2023-02-13|26,37,17,65,61\n2023-02-15|60,31,63,54,32\n2023-02-18|31,8,37,32,21\n2023-02-20|17,3,54,38,26\n2023-02-22|11,39,65,44,19\n2023-02-25|24,66,58,11,67\n2023-02-27|55,49,16,28,51\n2023-03-01|2,28,9,36,53\n2023-03-04|10,40,16,18,66\n2023-03-06|69,58,13,29,2\n2023-03-08|43,69,26,27,61\n2023-03-11|33,58,11,43,20\n2023-03-13|3,46,24,10,63\n2023-03-15|18,33,37,50,16\n2023-03-18|69,20,14,30,54\n2023-03-20|32,67,47,1,27\n2023-03-22|37,27,28,50,57\n2023-03-25|15,57,18,47,17\n2023-03-27|36,19,26,58,43\n2023-03-29|66,9,24,46,4\n2023-04-01|19,29,21,11,52\n2023-04-03|16,31,68,30,54\n2023-04-05|52,42,9,3,5\n2023-04-08|51,11,22,60,24\n2023-04-10|46,52,9,10,36\n2023-04-12|41,36,59,9,44\n2023-04-15|56,1,33,34,59\n2023-04-17|64,35,63,23,25\n2023-04-19|21,4,11,64,38\n2023-04-22|63,68,17,36,47\n2023-04-24|19,55,68,66,21\n2023-04-26|15,49,2,30,35\n2023-04-29|16,53,65,57,54\n2023-05-01|61,38,66,55,3\n2023-05-03|26,21,47,30,45\n2023-05-06|39,51,53,31,47\n2023-05-08|15,33,43,36,20\n2023-05-10|24,55,69,21,33\n2023-05-13|3,46,20,23,15\n2023-05-15|58,1,26,55,28\n2023-05-17|51,18,37,45,34\n2023-05-20|23,63,32,38,17\n2023-05-22|38,52,48,9,68\n2023-05-24|58,44,21,50,12\n2023-05-27|48,39,56,38,24\n2023-05-29|64,35,21,62,33\n2023-05-31|62,54,4,2,61\n2023-06-03|15,67,64,45,68\n2023-06-05|46,2,45,31,49\n2023-06-07|16,53,29,66,21\n2023-06-10|42,46,50,21,32\n2023-06-12|68,2,23,3,16\n2023-06-14|20,3,42,36,64\n2023-06-17|12,61,2,64,45\n2023-06-19|69,57,52,39,36\n2023-06-21|5,33,35,11,63\n2023-06-24|38,44,50,2,62\n2023-06-26|6,54,43,28,39\n2023-06-28|34,19,68,25,57\n2023-07-01|4,49,61,17,35\n2023-07-03|31,38,15,61,26\n2023-07-05|68,17,24,62,48\n2023-07-08|24,7,32,23,43\n2023-07-10|34,58,24,2,53\n2023-07-12|66,45,23,35,67\n2023-07-15|57,43,2,55,9\n2023-07-17|17,8,9,41,5\n2023-07-19|7,13,10,24,11\n2023-07-22|63,37,25,27,36\n2023-07-24|49,3,12,28,4\n2023-07-26|3,40,16,60,48\n2023-07-29|27,10,34,25,38\n2023-07-31|58,2,65,11,48\n2023-08-02|64,33,24,23,51\n2023-08-05|62,44,65,18,42\n2023-08-07|13,6,20,54,35\n2023-08-09|15,67,10,21,69\n2023-08-12|19,50,65,21,37\n2023-08-14|37,34,47,39,32\n2023-08-16|55,9,11,19,17\n2023-08-19|27,38,1,62,25\n2023-08-21|3,4,28,12,22\n2023-08-23|33,30,32,25,55\n2023-08-26|26,20,63,22,28\n2023-08-28|55,6,25,68,4\n2023-08-30|35,69,61,13,4\n2023-09-02|38,67,25,66,42\n2023-09-04|51,1,32,46,26\n2023-09-06|20,23,9,14,63\n2023-09-09|29,19,11,63,68\n2023-09-11|53,27,25,66,9\n2023-09-13|37,22,45,44,30\n2023-09-16|46,19,24,8,11\n2023-09-18|42,26,2,21,40\n2023-09-20|27,62,16,59,63\n2023-09-23|1,12,66,20,33\n2023-09-25|50,10,36,22,12\n2023-09-27|47,63,1,46,7\n2023-09-30|30,19,46,37,44\n2023-10-02|27,12,43,47,26\n2023-10-04|63,9,35,64,54\n2023-10-07|47,60,57,65,54\n2023-10-09|67,34,46,55,16\n2023-10-11|24,52,40,22,64\n2023-10-14|14,42,64,16,48\n2023-10-16|2,64,31,27,44\n2023-10-18|13,35,1,4,58\n2023-10-21|68,24,15,67,6\n2023-10-23|46,18,21,25,64\n2023-10-25|68,41,53,27,25\n2023-10-28|59,24,64,50,14\n2023-10-30|69,19,22,66,34\n2023-11-01|39,22,26,47,63\n2023-11-04|28,34,1,52,30\n2023-11-06|12,40,25,61,59\n2023-11-08|21,33,62,39,14\n2023-11-11|14,12,57,1,24\n2023-11-13|35,37,33,24,42\n2023-11-15|53,4,3,51,60\n2023-11-18|34,61,50,51,67\n2023-11-20|26,63,39,19,30\n2023-11-22|42,20,39,24,33\n2023-11-25|68,27,63,33,66\n2023-11-27|2,61,38,66,21\n2023-11-29|47,50,68,6,61\n2023-12-02|35,41,60,28,47\n2023-12-04|18,27,45,28,19\n2023-12-06|56,2,65,12,37\n2023-12-09|40,25,60,5,26\n2023-12-11|31,24,62,27,1\n2023-12-13|56,8,41,64,3\n2023-12-16|9,3,10,20,62\n2023-12-18|5,34,39,19,8\n2023-12-20|41,56,35,60,27\n2023-12-23|53,14,9,17,18\n2023-12-25|24,20,12,5,29\n2023-12-27|4,11,38,51,68\n2023-12-30|26,10,34,11,27\n2024-01-01|21,49,44,42,12\n2024-01-03|48,30,38,68,31\n2024-01-06|4,34,61,31,38\n2024-01-08|7,28,40,17,45\n2024-01-10|48,43,25,50,40\n2024-01-13|31,13,51,58,33\n2024-01-15|59,30,49,35,13\n2024-01-17|65,61,22,18,43\n2024-01-20|34,16,65,47,31\n2024-01-22|24,63,43,25,52\n2024-01-24|32,50,5,1,64\n2024-01-27|38,65,68,7,66\n2024-01-29|39,49,41,64,43\n2024-01-31|15,43,41,19,18\n2024-02-03|27,11,66,9,59\n2024-02-05|1,30,27,2,67\n2024-02-07|21,12,62,69,67\n2024-02-10|37,27,28,34,44\n2024-02-12|53,17,36,67,43\n2024-02-14|1,4,45,67,47\n2024-02-17|62,28,6,59,69\n2024-02-19|23,45,53,4,50\n2024-02-21|42,33,4,27,41\n2024-02-24|3,40,58,8,53\n2024-02-26|54,29,42,51,24\n2024-02-28|50,38,26,29,16\n2024-03-02|3,18,36,53,27\n2024-03-04|42,67,36,52,50\n2024-03-06|44,6,19,28,60\n2024-03-09|52,63,36,30,49\n2024-03-11|16,3,7,66,1\n2024-03-13|29,21,62,59,54\n2024-03-16|44,23,12,61,57\n2024-03-18|44,39,10,17,20\n2024-03-20|66,22,13,54,27\n2024-03-23|6,23,51,25,34\n2024-03-25|19,7,68,53,11\n2024-03-27|57,60,46,66,37\n2024-03-30|33,13,50,12,52\n2024-04-01|24,56,19,40,42\n2024-04-03|11,62,65,38,41\n2024-04-06|44,27,52,22,69\n2024-04-08|6,54,23,39,21\n2024-04-10|36,12,6,7,24\n2024-04-13|43,40,33,69,7\n2024-04-15|7,56,61,16,41\n2024-04-17|24,54,44,47,29\n2024-04-20|4,58,44,35,41\n2024-04-22|39,12,16,52,33\n2024-04-24|26,2,20,47,22\n2024-04-27|62,55,53,9,30\n2024-04-29|69,47,11,67,38\n2024-05-01|1,21,19,11,68\n2024-05-04|14,20,69,23,53\n2024-05-06|60,56,7,24,23\n2024-05-08|43,51,44,7,41\n2024-05-11|6,49,39,67,3\n2024-05-13|14,5,29,38,66\n2024-05-15|55,45,69,19,42\n2024-05-18|42,59,37,19,36\n2024-05-20|68,7,1,48,64\n2024-05-22|16,5,67,18,26\n2024-05-25|36,33,6,64,35\n2024-05-27|30,39,49,59,9\n2024-05-29|17,60,56,61,34\n2024-06-01|38,28,68,52,54\n2024-06-03|19,45,35,29,36\n2024-06-05|69,45,8,44,51\n2024-06-08|38,54,64,8,52\n2024-06-10|33,58,3,10,59\n2024-06-12|30,62,61,19,31\n2024-06-15|54,48,4,56,36\n2024-06-17|58,30,66,53,48\n2024-06-19|50,27,4,44,64\n2024-06-22|4,15,62,32,5\n2024-06-24|5,36,53,6,69\n2024-06-26|56,4,9,47,36\n2024-06-29|51,61,54,26,69\n2024-07-01|55,9,39,32,5\n2024-07-03|55,26,2,33,57\n2024-07-06|39,49,35,32,5\n2024-07-08|45,31,22,33,20\n2024-07-10|11,7,12,27,46\n2024-07-13|9,66,55,59,69\n2024-07-15|9,45,39,31,40\n2024-07-17|47,66,24,27,32\n2024-07-20|57,40,18,25,31\n2024-07-22|31,58,56,69,36\n2024-07-24|42,16,68,59,63\n2024-07-27|64,40,31,3,37\n2024-07-29|30,11,44,27,33\n2024-07-31|34,23,37,58,50\n2024-08-03|33,13,61,40,60\n2024-08-05|54,44,42,29,51\n2024-08-07|57,47,35,19,6\n2024-08-10|24,69,33,64,9\n2024-08-12|22,68,9,67,57\n2024-08-14|8,29,23,62,9\n2024-08-17|31,43,12,45,46\n2024-08-19|28,1,15,23,2\n2024-08-21|33,67,27,38,31\n2024-08-24|15,43,21,24,5\n2024-08-26|69,68,23,2,4\n2024-08-28|33,5,50,47,64\n2024-08-31|4,34,69,38,35\n2024-09-02|8,46,48,53,42\n2024-09-04|7,33,59,10,21\n2024-09-07|63,55,34,37,14\n2024-09-09|21,60,47,1,16\n2024-09-11|55,67,10,12,65\n2024-09-14|34,48,56,29,38\n2024-09-16|31,9,11,8,27\n2024-09-18|1,22,68,47,11\n2024-09-21|21,45,17,37,19\n2024-09-23|37,21,15,25,45\n2024-09-25|26,46,45,52,2\n2024-09-28|11,24,13,39,3\n2024-09-30|69,30,11,9,43\n2024-10-02|37,21,2,43,1\n2024-10-05|2,46,12,52,65\n2024-10-07|31,63,52,18,30\n2024-10-09|32,43,66,53,25\n2024-10-12|20,41,57,14,5\n2024-10-14|14,33,64,67,18\n2024-10-16|44,39,4,60,30\n2024-10-19|45,7,19,16,64\n2024-10-21|25,57,62,64,1\n2024-10-23|2,29,15,27,39\n2024-10-26|51,45,12,40,8\n2024-10-28|21,27,67,48,32\n2024-10-30|13,29,43,58,22\n2024-11-02|58,61,45,48,10\n2024-11-04|48,53,6,33,18\n2024-11-06|37,17,12,62,58\n2024-11-09|24,56,50,11,66\n2024-11-11|46,24,21,34,3\n2024-11-13|58,20,43,9,26\n2024-11-16|38,25,22,21,32\n2024-11-18|69,52,27,31,41\n2024-11-20|62,30,60,64,16\n2024-11-23|13,67,12,34,44\n2024-11-25|5,35,63,60,45\n2024-11-27|13,7,6,1,40\n2024-11-30|4,29,24,39,63\n2024-12-02|26,61,9,3,67\n2024-12-04|28,61,23,25,1\n2024-12-07|57,43,31,55,1\n2024-12-09|45,35,37,51,40\n2024-12-11|50,13,44,52,54\n2024-12-14|12,52,17,23,67\n2024-12-16|33,57,9,61,30\n2024-12-18|15,18,6,33,49\n2024-12-21|21,1,17,12,58\n2024-12-23|22,57,42,64,44\n2024-12-25|30,26,15,35,27\n2024-12-28|55,6,31,51,54\n2024-12-30|39,9,38,19,33\n2025-01-01|66,6,28,12,35\n2025-01-04|43,54,56,26,32\n2025-01-06|17,34,46,67,66\n2025-01-08|43,20,1,36,38\n2025-01-11|32,65,6,3,37\n2025-01-13|4,6,66,16,39\n2025-01-15|41,58,52,53,8\n2025-01-18|35,14,69,31,64\n2025-01-20|54,32,15,47,16\n2025-01-22|40,6,49,27,5\n2025-01-25|8,17,15,53,66\n2025-01-27|2,47,55,40,53\n2025-01-29|38,31,12,8,33\n2025-02-01|32,29,49,23,61\n2025-02-03|37,60,47,12,54\n2025-02-05|19,62,50,30,27\n2025-02-08|60,62,23,57,44\n2025-02-10|43,18,29,17,2\n2025-02-12|49,32,21,45,36\n2025-02-15|45,3,56,54,16\n2025-02-17|52,4,47,44,57\n2025-02-19|60,21,49,28,6\n2025-02-22|22,65,18,50,7\n2025-02-24|68,59,10,34,11\n2025-02-26|48,28,55,60,62\n2025-03-01|36,2,49,23,44\n2025-03-03|18,50,52,56,20\n2025-03-05|40,24,28,65,63\n2025-03-08|23,2,16,63,4\n2025-03-10|17,47,55,50,40\n2025-03-12|58,11,28,51,13\n2025-03-15|54,12,33,36,28\n2025-03-17|60,18,38,23,11\n2025-03-19|59,21,49,11,8\n2025-03-22|57,7,25,46,6\n2025-03-24|36,6,47,35,23\n2025-03-26|53,39,29,20,5\n2025-03-29|21,7,11,61,53\n2025-03-31|64,12,41,44,52\n2025-04-02|17,5,64,41,69\n2025-04-05|23,30,46,4,62\n2025-04-07|66,23,59,48,20\n2025-04-09|4,55,37,29,67\n2025-04-12|53,44,16,22,45\n2025-04-14|52,62,20,3,30\n2025-04-16|49,20,42,43,24\n2025-04-19|63,37,7,39,25\n2025-04-21|51,33,46,4,45\n2025-04-23|44,69,66,15,63\n2025-04-26|1,12,69,18,14\n2025-04-28|51,26,56,43,60\n2025-04-30|3,57,1,2,59\n2025-05-03|10,65,23,21,35\n2025-05-05|34,16,40,45,66\n2025-05-07|30,40,59,14,15\n2025-05-10|5,39,28,20,42\n2025-05-12|15,48,16,41,60\n2025-05-14|29,24,4,53,10\n2025-05-17|42,52,7,34,40\n2025-05-19|14,13,50,60,37\n2025-05-21|29,9,31,34,43\n2025-05-24|48,28,18,52,12\n2025-05-26|47,67,13,64,52\n2025-05-28|27,23,32,35,59\n2025-05-31|56,37,29,1,68\n2025-06-02|7,1,61,57,44\n2025-06-04|17,35,45,5,23\n2025-06-07|36,43,31,62,48\n2025-06-09|43,33,30,52,40\n2025-06-11|25,53,13,37,29\n2025-06-14|4,59,23,9,6\n2025-06-16|27,21,17,23,52\n2025-06-18|50,64,23,29,67\n2025-06-21|52,32,62,3,16\n2025-06-23|42,25,44,65,5\n2025-06-25|37,61,12,2,51\n2025-06-28|4,43,62,52,35\n2025-06-30|52,13,28,55,44\n2025-07-02|7,21,19,63,54\n2025-07-05|58,50,1,28,34\n2025-07-07|69,61,33,58,35\n2025-07-09|25,9,69,28,5\n2025-07-12|16,8,54,33,24\n2025-07-14|63,12,8,45,46\n2025-07-16|43,21,49,4,48\n2025-07-19|28,69,48,61,51\n2025-07-21|33,28,42,11,8\n2025-07-23|19,35,2,25,18\n2025-07-26|57,8,67,65,31\n2025-07-28|35,36,62,7,43\n2025-07-30|15,64,35,50,4\n2025-08-02|36,34,35,6,18\n2025-08-04|9,31,38,19,8\n2025-08-06|15,27,45,53,43\n2025-08-09|23,24,60,7,14\n2025-08-11|40,6,16,33,62\n2025-08-13|11,4,50,40,44\n2025-08-16|40,23,49,65,69\n2025-08-18|63,15,64,61,46\n2025-08-20|68,31,65,59,62\n2025-08-23|34,14,11,47,51\n2025-08-25|19,64,34,16,37\n2025-08-27|9,12,22,61,41\n2025-08-30|22,3,33,18,27\n2025-09-01|25,23,8,40,53\n2025-09-03|61,29,69,16,3\n2025-09-06|61,23,62,44,11\n2025-09-08|53,28,41,26,64\n2025-09-10|24,2,64,45,53\n2025-09-13|50,53,28,37,42\n2025-09-15|42,32,49,15,14\n2025-09-17|30,50,54,62,7\n2025-09-20|67,64,15,29,66\n2025-09-22|46,59,3,29,42\n2025-09-24|53,49,31,45,15\n2025-09-27|61,32,16,10,66\n2025-09-29|27,65,60,1,3\n2025-10-01|28,8,17,55,22\n2025-10-04|67,7,3,47,68\n2025-10-06|29,32,67,66,28\n2025-10-08|10,44,54,48,8\n2025-10-11|13,27,16,18,20\n2025-10-13|14,52,64,32,13\n2025-10-15|47,28,10,34,13\n2025-10-18|11,27,58,40,3\n2025-10-20|32,38,69,66,67\n2025-10-22|18,52,54,60,37\n2025-10-25|39,2,12,22,67\n2025-10-27|39,17,43,51,66\n2025-10-29|60,65,49,4,24\n2025-11-01|62,26,44,43,2\n2025-11-03|43,3,32,57,40\n2025-11-05|61,17,29,66,9\n2025-11-08|53,3,68,60,62\n2025-11-10|58,28,44,48,6\n2025-11-12|43,51,29,65,39\n2025-11-15|7,6,47,53,12\n2025-11-17|50,33,66,57,7\n2025-11-19|10,51,31,49,68\n2025-11-22|69,32,36,51,28\n2025-11-24|30,26,8,16,58\n2025-11-26|15,19,28,7,8\n2025-11-29|30,19,32,59,22\n2025-12-01|18,5,26,59,47\n2025-12-03|46,1,14,20,51\n2025-12-06|13,26,28,14,44\n2025-12-08|64,8,52,56,32\n2025-12-10|10,29,69,16,33\n2025-12-13|58,28,31,1,57\n2025-12-15|59,68,63,23,35\n2025-12-17|25,66,33,53,62\n2025-12-20|28,5,52,69,4\n2025-12-22|36,54,18,3,41\n2025-12-24|25,59,4,52,31\n2025-12-27|62,5,34,39,20\n2025-12-29|11,19,34,53,48\n2025-12-31|21,11,38,24,18\n2026-01-03|60,53,18,21,40\n2026-01-05|51,4,56,18,24\n2026-01-07|57,28,15,58,63\n2026-01-10|5,64,19,28,21\n2026-01-12|5,45,59,27,56\n2026-01-14|24,6,51,43,39\n2026-01-17|57,8,5,49,27\n2026-01-19|5,55,34,28,37\n2026-01-21|11,27,55,53,26\n2026-01-24|2,63,16,61,35\n2026-01-26|31,60,21,63,51\n2026-01-28|21,35,68,40,46\n2026-01-31|2,40,14,63,8\n2026-02-02|60,65,3,8,31\n2026-02-04|37,30,29,27,58\n2026-02-07|42,36,25,51,58\n2026-02-09|22,19,28,6,48\n2026-02-11|33,40,20,6,48\n2026-02-14|58,60,64,43,23\n2026-02-16|18,58,16,19,56\n2026-02-18|9,64,52,66,33\n2026-02-21|36,49,28,48,27\n2026-02-23|29,11,5,23,47\n2026-02-25|50,54,56,52,64\n2026-02-28|54,65,20,35,6\n2026-03-02|18,17,38,62,2\n2026-03-04|14,47,42,7,56\n2026-03-07|17,68,30,18,50\n2026-03-09|22,54,23,28,36\n2026-03-11|58,63,6,55,3\n2026-03-14|50,9,42,30,52\n2026-03-16|10,20,7,52,47\n2026-03-18|18,69,14,19,21\n2026-03-21|12,59,36,28,41\n2026-03-23|63,56,18,12,47\n2026-03-25|7,56,21,64,55\n2026-03-28|61,42,11,43,59\n2026-03-30|7,57,11,31,41\n2026-04-01|11,10,52,64,4\n2026-04-04|13,65,41,6,3\n2026-04-06|42,57,24,37,7\n2026-04-08|42,3,52,16,17\n2026-04-11|49,47,60,6,53\n2026-04-13|38,43,64,59,63\n2026-04-15|21,13,27,43,45\n2026-04-18|39,25,24,46,61\n2026-04-20|17,47,9,64,36\n2026-04-22|49,63,32,24,29\n2026-04-25|36,30,57,52,4\n2026-04-27|18,31,36,33,62\n2026-04-29|51,19,3,67,35\n2026-05-02|25,65,52,37,42\n2026-05-04|30,42,60,63,36\n2026-05-06|51,65,18,27,68\n2026-05-09|41,15,47,46,56\n2026-05-11|64,24,56,37,30\n2026-05-13|67,22,52,56,31\n2026-05-16|44,37,65,40,8\n2026-05-18|13,4,34,61,65\n2026-05-20|10,57,46,30,28\n2026-05-23|41,4,66,48,16\n2026-05-25|32,60,17,48,64\n2026-05-27|5,21,51,31,14\n2026-05-30|52,44,35,1,27\n2026-06-01|47,42,57,2,58\n2026-06-03|38,14,16,64,55\n2026-06-06|64,16,59,55,32\n2026-06-08|34,43,49,24,3\n2026-06-10|12,66,38,60,31\n2026-06-13|50,13,44,3,53\n2026-06-15|62,55,60,57,25\n2026-06-17|49,53,3,26,61\n2026-06-20|16,20,48,50,44\n2026-06-22|19,17,48,21,45\n2026-06-24|13,21,38,14,16\n2026-06-27|3,28,59,16,30\n2026-06-29|53,59,41,14,10\n2026-07-01|6,68,26,39,2\n2026-07-04|69,17,46,38,50\n2026-07-06|66,67,44,17,63\n2026-07-08|37,29,43,55,12\n2026-07-11|59,45,8,14,10\n2026-07-13|36,5,48,40,25\n2026-07-15|18,2,29,38,7\n2026-07-18|56,14,44,50,9\n2026-07-20|2,9,59,44,53\n2026-07-22|50,58,5,4,22\n2026-07-25|47,3,36,4,24\n2026-07-27|46,58,65,26,6\n2026-07-29|40,30,57,36,42\n2026-08-01|27,6,48,50,17\n2026-08-03|41,54,48,30,8\n2026-08-05|61,60,59,14,20\n2026-08-08|63,9,54,5,35\n2026-08-10|6,54,64,55,37\n2026-08-12|26,67,69,66,4\n2026-08-15|29,63,8,27,5\n2026-08-17|15,8,65,49,25\n2026-08-19|61,21,64,10,58\n2026-08-22|31,13,57,65,54\n2026-08-24|38,33,68,16,3";
const PINNED_SHA256 = '764198d172a54642e6739ec463198d9019e43ebea702dc1e2904e1f5e5feb3f3';
const OFFICIAL_URL = 'https://www.texaslottery.com/export/sites/lottery/Games/Powerball/Winning_Numbers/powerball.csv';
const EXPECTED = {
  n: 1398,
  first: '2015-10-07',
  last: '2026-08-24',
  appearances: 6990,
  pairAppearances: 13980,
  expected: 101.30434782608695,
  minBall: 13,
  minCount: 76,
  maxBall: 61,
  maxCount: 125,
  raw: 79.33133047210303,
  adjusted: 84.28953862660947,
  p: 0.0877388121,
  pairCells: 2346,
  pairExpected: 5.959079283887468,
  pairX: 2326.545922746777,
  hotA: 3,
  hotB: 16,
  hotPair: 15,
  w1: 3.8208955223880596,
  w2: 0.9118046132971506,
  df1: 68,
  df2: 2277,
  nullMean: 2336,
  nullSD: 75.97128644189436,
  seed: '0x61c0ffee',
  samples: 10000000,
  exceed: 5431810,
  mcP: 0.543181,
  mcSE: 0.00015752314155037666,
  mcMean: 2336.0006338438357
};

let failures = 0;
function report(name, pass, detail = '') {
  const mark = pass ? 'PASS' : 'FAIL';
  console.log(mark.padEnd(5) + ' ' + name + (detail ? ' | ' + detail : ''));
  if (!pass) failures++;
}
function close(a, b, tol) {
  return Math.abs(a - b) <= tol;
}
function sha256(s) {
  return createHash('sha256').update(s).digest('hex');
}
function parsePinned(s) {
  return s.trim().split('\n').map((line) => {
    const [date, numberText] = line.split('|');
    return { date, nums: numberText.split(',').map(Number) };
  });
}
function normalizedFromOfficial(csv) {
  return csv.trim().split(/\r?\n/).map((line) => line.split(',')).filter((r) => {
    const key = Number(r[3]) * 10000 + Number(r[1]) * 100 + Number(r[2]);
    return key >= 20151007 && key <= 20260824;
  }).map((r) => {
    return r[3] + '-' + String(r[1]).padStart(2, '0') + '-' + String(r[2]).padStart(2, '0') + '|' + r.slice(4, 9).join(',');
  }).join('\n');
}

function logGamma(z) {
  const p = [676.5203681218851, -1259.1392167224028, 771.32342877765313, -176.61502916214059, 12.507343278686905, -0.13857109526572012, 9.9843695780195716e-6, 1.5056327351493116e-7];
  if (z < 0.5) return Math.log(Math.PI) - Math.log(Math.sin(Math.PI * z)) - logGamma(1 - z);
  z -= 1;
  let q = 0.99999999999980993;
  for (let i = 0; i < p.length; i++) q += p[i] / (z + i + 1);
  const t = z + p.length - 0.5;
  return 0.5 * Math.log(2 * Math.PI) + (z + 0.5) * Math.log(t) - t + Math.log(q);
}
function gammaQ(a, x) {
  if (x < 0 || a <= 0) return NaN;
  if (x === 0) return 1;
  let i, delta, sum, ap;
  if (x < a + 1) {
    ap = a;
    sum = 1 / a;
    delta = sum;
    for (i = 1; i < 1000; i++) {
      ap++;
      delta *= x / ap;
      sum += delta;
      if (Math.abs(delta) < Math.abs(sum) * 1e-15) break;
    }
    return 1 - sum * Math.exp(-x + a * Math.log(x) - logGamma(a));
  }
  const tiny = 1e-300;
  let b = x + 1 - a;
  let c = 1 / tiny;
  let d = 1 / b;
  let h = d;
  for (i = 1; i < 1000; i++) {
    const an = -i * (i - a);
    b += 2;
    d = an * d + b;
    if (Math.abs(d) < tiny) d = tiny;
    c = b + an / c;
    if (Math.abs(c) < tiny) c = tiny;
    d = 1 / d;
    delta = d * c;
    h *= delta;
    if (Math.abs(delta - 1) < 1e-15) break;
  }
  return Math.exp(-x + a * Math.log(x) - logGamma(a)) * h;
}
function chiSquareEvenTail(df, value) {
  const x = value / 2;
  let term = 1;
  let sum = 1;
  for (let k = 1; k < df / 2; k++) {
    term *= x / k;
    sum += term;
  }
  return Math.exp(-x) * sum;
}
function weightedTailByQuadrature(target, intervals = 32768) {
  const shapeX = EXPECTED.df1 / 2;
  const upper = target / EXPECTED.w1;
  const step = upper / intervals;
  function integrand(x) {
    if (x <= 0) return 0;
    const densityX = Math.exp((shapeX - 1) * Math.log(x) - x / 2 - shapeX * Math.log(2) - logGamma(shapeX));
    const neededY = Math.max(0, (target - EXPECTED.w1 * x) / EXPECTED.w2);
    return densityX * gammaQ(EXPECTED.df2 / 2, neededY / 2);
  }
  let sum = integrand(0) + integrand(upper);
  for (let i = 1; i < intervals; i++) sum += (i % 2 ? 4 : 2) * integrand(i * step);
  return sum * step / 3 + gammaQ(shapeX, upper / 2);
}

function fastCounts(rows) {
  const counts = Array(70).fill(0);
  const pairs = Array.from({ length: 70 }, () => Array(70).fill(0));
  for (const row of rows) {
    for (const value of row.nums) counts[value]++;
    for (let i = 0; i < 5; i++) {
      for (let j = i + 1; j < 5; j++) {
        const a = Math.min(row.nums[i], row.nums[j]);
        const b = Math.max(row.nums[i], row.nums[j]);
        pairs[a][b]++;
      }
    }
  }
  return { counts, pairs };
}
function directCounts(rows) {
  return Array.from({ length: 70 }, (_, ball) => {
    if (ball === 0) return 0;
    return rows.filter((row) => row.nums.includes(ball)).length;
  });
}
function directPairCounts(rows) {
  const out = new Map();
  for (let a = 1; a <= 69; a++) {
    for (let b = a + 1; b <= 69; b++) {
      out.set(a + ',' + b, rows.filter((row) => row.nums.includes(a) && row.nums.includes(b)).length);
    }
  }
  return out;
}
function pearson(values, expected) {
  return values.reduce((sum, value) => sum + (value - expected) ** 2 / expected, 0);
}
function pearsonBySquares(values, expected, knownTotal) {
  return values.reduce((sum, value) => sum + value * value, 0) / expected - knownTotal;
}
function poison(rows) {
  let changed = 0;
  return {
    changedRef: () => changed,
    rows: rows.map((row) => {
      const nums = row.nums.slice();
      if (changed < 200 && !nums.includes(1) && !nums.includes(2)) {
        nums[0] = 1;
        nums[1] = 2;
        changed++;
      }
      return { date: row.date, nums };
    })
  };
}
function seededCalibration(target, samples) {
  let state = 0x61c0ffee >>> 0;
  let spare = null;
  function uniform() {
    state ^= state << 13;
    state ^= state >>> 17;
    state ^= state << 5;
    return ((state >>> 0) + 0.5) / 4294967296;
  }
  function normal() {
    if (spare !== null) {
      const value = spare;
      spare = null;
      return value;
    }
    let a, b, s;
    do {
      a = 2 * uniform() - 1;
      b = 2 * uniform() - 1;
      s = a * a + b * b;
    } while (!s || s >= 1);
    const m = Math.sqrt(-2 * Math.log(s) / s);
    spare = b * m;
    return a * m;
  }
  function gamma(shape) {
    const d = shape - 1 / 3;
    const c = 1 / Math.sqrt(9 * d);
    for (;;) {
      const x = normal();
      const v0 = 1 + c * x;
      if (v0 <= 0) continue;
      const v = v0 * v0 * v0;
      const q = x * x;
      if (uniform() < 1 - 0.0331 * q * q || Math.log(uniform()) < 0.5 * q + d * (1 - v + Math.log(v))) return d * v;
    }
  }
  let exceed = 0;
  let sum = 0;
  for (let i = 0; i < samples; i++) {
    const value = EXPECTED.w1 * 2 * gamma(EXPECTED.df1 / 2) + EXPECTED.w2 * 2 * gamma(EXPECTED.df2 / 2);
    if (value >= target) exceed++;
    sum += value;
  }
  const p = exceed / samples;
  return { exceed, p, se: Math.sqrt(p * (1 - p) / samples), mean: sum / samples };
}

const rows = parsePinned(DATA);
report('pinned extract SHA-256', sha256(DATA) === PINNED_SHA256, sha256(DATA));
report('row count and boundary', rows.length === EXPECTED.n && rows[0].date === EXPECTED.first && rows.at(-1).date === EXPECTED.last, rows.length + ' rows, ' + rows[0].date + ' to ' + rows.at(-1).date);
report('every row is five distinct balls in 1..69', rows.every((r) => r.nums.length === 5 && new Set(r.nums).size === 5 && r.nums.every((v) => Number.isInteger(v) && v >= 1 && v <= 69)));

const fast = fastCounts(rows);
const direct = directCounts(rows);
const countValues = fast.counts.slice(1);
const total = countValues.reduce((a, b) => a + b, 0);
report('closed-form appearance anchor', total === EXPECTED.appearances && total === rows.length * 5, total + ' = ' + rows.length + ' * 5');
report('independent direct membership counts', direct.every((v, i) => v === fast.counts[i]));
const minimum = Math.min(...countValues);
const maximum = Math.max(...countValues);
report('coldest ball 13', fast.counts[13] === EXPECTED.minCount && minimum === EXPECTED.minCount, String(fast.counts[13]));
report('hottest ball 61', fast.counts[61] === EXPECTED.maxCount && maximum === EXPECTED.maxCount, String(fast.counts[61]));

const expected = rows.length * 5 / 69;
const raw = pearson(countValues, expected);
const rawIndependent = pearsonBySquares(countValues, expected, total);
const adjusted = raw / (64 / 68);
const pSingle = gammaQ(68 / 2, adjusted / 2);
report('single-ball raw X2, deviation route', close(raw, EXPECTED.raw, 1e-10), raw.toFixed(10));
report('single-ball raw X2, sum-of-squares route', close(rawIndependent, raw, 1e-10), rawIndependent.toFixed(10));
report('single-ball adjusted X2', close(adjusted, EXPECTED.adjusted, 1e-10), adjusted.toFixed(10));
report('single-ball p-value', close(pSingle, EXPECTED.p, 1e-10), pSingle.toFixed(10));
const pSingleFinite = chiSquareEvenTail(68, adjusted);
report('single p-value, independent finite sum', close(pSingleFinite, pSingle, 1e-13), pSingleFinite.toFixed(10));

const pairExpected = rows.length * 10 / EXPECTED.pairCells;
const pairValues = [];
for (let a = 1; a <= 69; a++) for (let b = a + 1; b <= 69; b++) pairValues.push(fast.pairs[a][b]);
const pairTotal = pairValues.reduce((a, b) => a + b, 0);
const pairX = pearson(pairValues, pairExpected);
const directPairs = directPairCounts(rows);
const directPairValues = [];
for (let a = 1; a <= 69; a++) for (let b = a + 1; b <= 69; b++) directPairValues.push(directPairs.get(a + ',' + b));
const pairIndependent = pearsonBySquares(directPairValues, pairExpected, pairTotal);
report('closed-form pair anchor', pairTotal === EXPECTED.pairAppearances && pairTotal === rows.length * 10, pairTotal + ' = ' + rows.length + ' * 10');
report('all 2,346 direct pair counts match', directPairValues.every((v, i) => v === pairValues[i]));
report('pair expectation', close(pairExpected, EXPECTED.pairExpected, 1e-12), pairExpected.toFixed(10));
report('pair X2, deviation route', close(pairX, EXPECTED.pairX, 1e-9), pairX.toFixed(10));
report('pair X2, independent sum-of-squares route', close(pairIndependent, pairX, 1e-8), pairIndependent.toFixed(10));
const hotTies = pairValues.filter((v) => v === EXPECTED.hotPair).length;
report('hottest pair 3 + 16, one of five tied', fast.pairs[3][16] === EXPECTED.hotPair && Math.max(...pairValues) === EXPECTED.hotPair && hotTies === 5 && [[21, 32], [37, 44], [52, 64], [61, 69]].every(([a, b]) => fast.pairs[a][b] === EXPECTED.hotPair), String(fast.pairs[3][16]) + ', ties ' + hotTies);

const nullMean = EXPECTED.w1 * EXPECTED.df1 + EXPECTED.w2 * EXPECTED.df2;
const nullSD = Math.sqrt(2 * (EXPECTED.w1 ** 2 * EXPECTED.df1 + EXPECTED.w2 ** 2 * EXPECTED.df2));
report('published weighted-law mean anchor', close(nullMean, EXPECTED.nullMean, 1e-12), nullMean.toFixed(10));
report('published weighted-law SD anchor', close(nullSD, EXPECTED.nullSD, 1e-12), nullSD.toFixed(10));
const pairTailQuadrature = weightedTailByQuadrature(pairX);
report('pair p-value, independent quadrature', Math.abs(pairTailQuadrature - EXPECTED.mcP) < 5 * EXPECTED.mcSE, pairTailQuadrature.toFixed(8) + ' vs seeded ' + EXPECTED.mcP.toFixed(6));

const poisoned = poison(rows);
const poisonFast = fastCounts(poisoned.rows);
const poisonSingleRaw = pearson(poisonFast.counts.slice(1), expected);
const poisonSingleP = gammaQ(34, poisonSingleRaw / (64 / 68) / 2);
const poisonPairValues = [];
for (let a = 1; a <= 69; a++) for (let b = a + 1; b <= 69; b++) poisonPairValues.push(poisonFast.pairs[a][b]);
const poisonPairX = pearson(poisonPairValues, pairExpected);
report('control on control changed 200 rows', poisoned.changedRef() === 200, String(poisoned.changedRef()));
report('marginal checker rejects poisoned rows', poisonSingleP < 0.05, 'p=' + poisonSingleP.toExponential(4));
report('pair alarm rejects poisoned rows', poisonPairX > nullMean + 6 * nullSD, 'X2=' + poisonPairX.toFixed(4));

console.log('INFO  running 10,000,000 seeded weighted-null samples');
const mc = seededCalibration(pairX, EXPECTED.samples);
report('seeded exceedance count', mc.exceed === EXPECTED.exceed, mc.exceed + ' / ' + EXPECTED.samples);
report('seeded pair p-value', close(mc.p, EXPECTED.mcP, 0), mc.p.toFixed(6));
report('Monte Carlo standard error', close(mc.se, EXPECTED.mcSE, 1e-15), mc.se.toFixed(10));
report('Monte Carlo mean hits published anchor', Math.abs(mc.mean - nullMean) < 0.1, mc.mean.toFixed(6) + ' vs ' + nullMean.toFixed(0));

const here = dirname(fileURLToPath(import.meta.url));
const root = resolve(here, '../..');
const htmlPath = resolve(root, 'public/strata/the-hottest-ball-is-still-cold/index.html');
const mdPath = resolve(root, 'src/content/strata/the-hottest-ball-is-still-cold.md');
const html = await readFile(htmlPath, 'utf8');
const md = await readFile(mdPath, 'utf8');
const embedded = html.match(/<script id="draw-data" type="text\/plain">([\s\S]*?)<\/script>/);
report('page embeds identical pinned extract', Boolean(embedded) && embedded[1] === DATA);
const requiredSurface = [
  'Are Powerball Numbers Biased? An Audit of 1,398 Draws',
  'Ball 61 appeared 125 times while ball 13 appeared only 76 times',
  '2015-10-07 to 2026-08-24',
  'Raw X² = <span id="r-raw">',
  '64/68',
  '3.8208955224 × chi-square₆₈ + 0.9118046133 × chi-square₂₂₇₇',
  '<span class="label">recorded p</span><span class="stat">' + mc.p.toFixed(6) + '</span>',
  '<span class="label">MC standard error</span><span class="stat">' + mc.se.toFixed(7) + '</span>',
  'single-ball p-value is about ' + pSingle.toFixed(4),
  'pair test gives about ' + mc.p.toFixed(3),
  'Pair 3 + 16 is one of five cells tied for hottest at 15 (with 21 + 32, 37 + 44, 52 + 64 and 61 + 69)',
  'the audit itself makes no network request',
  'failure to reject equal marginal frequencies',
  'It is not proof of a fair machine'
];
report('shareable and rendered surface strings', requiredSurface.every((s) => html.includes(s)));
const occurrences = (s) => html.split(s).length - 1;
report('dek p-values match computed values in all three page copies (meta, JSON-LD, dek)', occurrences('single-ball p-value is about ' + pSingle.toFixed(4)) === 3 && occurrences('pair test gives about ' + mc.p.toFixed(3)) === 3);
report('markdown dek p-values match computed values', md.includes('single-ball p-value is about ' + pSingle.toFixed(4)) && md.includes('pair test gives about ' + mc.p.toFixed(3)));
report('retracted no-request sentence is gone', !html.includes('<p>The official extract is embedded in this page. No request leaves your browser.'));
report('live result wiring uses computed values', [
  "textContent=f(expected,7)",
  "textContent=f(adjusted,10)",
  "textContent=f(singleP,10)",
  "textContent=f(raw,10)",
  "textContent=f(pairX,10)"
].every((s) => html.includes(s)));
const jsonText = html.match(/<script type="application\/ld\+json">([\s\S]*?)<\/script>/)?.[1];
let jsonLd = null;
try { jsonLd = JSON.parse(jsonText); } catch {}
report('JSON-LD parses with Article fields', jsonLd?.['@type'] === 'Article' && jsonLd.name === 'Are Powerball Numbers Biased? An Audit of 1,398 Draws' && jsonLd.headline === 'The Hottest Ball Is Still Cold' && jsonLd.datePublished === '2026-08-25' && jsonLd.dateModified === '2026-10-18');
report('frontmatter surface matches page', md.includes('title: "The Hottest Ball Is Still Cold"') && md.includes('date: 2026-08-25') && md.includes('seoTitle: "Are Powerball Numbers Biased? An Audit of 1,398 Draws"') && md.includes('draft: false'));
report('load-bearing closing tags', /<\/script>\s*<\/body>\s*<\/html>\s*$/.test(html));
report('no em dash in authored files', !html.includes('—') && !md.includes('—'));

if (process.argv.includes('--fetch')) {
  const response = await fetch(OFFICIAL_URL);
  if (!response.ok) throw new Error('official CSV fetch failed: HTTP ' + response.status);
  const liveCsv = await response.text();
  const normalized = normalizedFromOfficial(liveCsv);
  report('live official rows through cutoff match pin', sha256(normalized) === PINNED_SHA256, sha256(normalized));
  console.log('INFO  current full CSV SHA-256 ' + sha256(liveCsv));
} else {
  console.log('INFO  network comparison skipped; pass --fetch to compare the current official CSV through the fixed cutoff');
}

if (failures) {
  console.error('\n' + failures + ' verification assertion(s) failed.');
  process.exit(1);
}
console.log('\nAll verification assertions passed.');
