-
Notifications
You must be signed in to change notification settings - Fork 0
/
r.js
29 lines (27 loc) · 8.42 KB
/
r.js
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
var c, c_o = {};
var c_a;
var a2;
var a1 =
[
[["BXM1", "00933C", 1], ["BXM2", "00933C", 1], ["BXM3", "00933C", 1], ["BXM4", "00933C", 1], ["BXM6", "00933C", 1], ["BXM7", "00933C", 1], ["BXM8", "00933C", 1], ["BXM9", "00933C", 1], ["L92", "EE352E"], ["SIM33C", "00933C"], ["BXM10", "00933C", 1], ["BXM11", "00933C", 1], ["BXM18", "00933C", 1], ["BX18A", "6CBE45"], ["BX18B", "6CBE45"], ["B12", "6CBE45"], ["B13", "FAA61A"], ["B11", "006CB7"], ["B16", "FAA61A"], ["B17", "B933AD"], ["B14", "00AEEF"], ["B15", "B933AD"], ["B20", "6CBE45"], ["M79+", "EE352E", , "M79-SBS"], ["B24", "FAA61A"], ["B25", "6CBE45"], ["B26", "006CB7"], ["S40", "B933AD"], ["S44", "FAA61A"], ["S42", "00AEEF"], ["Q06", "B933AD", 1, "Q6"], ["S48", "EE352E"], ["Q07", "6CBE45", 1, "Q7"], ["S46", "006CB7"], ["Q08", "B933AD", 1, "Q8"], ["Q09", "B933AD", 1, "Q9"], ["B31", "FAA61A"], ["B35", "EE352E"], ["B32", "006CB7"], ["B38", "00AEEF"], ["B39", "00AEEF"], ["B36", "FAA61A"], ["B37", "B933AD"], ["S51", "006CB7"], ["S52", "B933AD"], ["Q10", "FAA61A", 1], ["Q13", "EE352E"], ["S55", "FAA61A"], ["S56", "6CBE45"], ["S53", "EE352E"], ["Q11", "6CBE45", 1], ["Q12", "EE352E"], ["S54", "FAA61A"], ["S59", "EE352E"], ["Q17", "EE352E"], ["Q18", "00AEEF", 1], ["Q15", "FAA61A"], ["S57", "6CBE45"], ["Q16", "EE352E"], ["SIM8", "00933C"], ["SIM9", "00933C"], ["Q19", "00AEEF", 1], ["B41", "006CB7"], ["B42", "006CB7"], ["B45", "EE352E"], ["SIM1", "00933C"], ["B46", "6CBE45"], ["SIM2", "00933C"], ["B43", "EE352E"], ["B44", "B933AD"], ["SIM3", "00933C"], ["B49", "EE352E"], ["SIM4", "00933C"], ["SIM5", "00933C"], ["B47", "FAA61A"], ["SIM6", "00933C"], ["SIM7", "00933C"], ["B48", "6CBE45"], ["BX12+", "006CB7"], ["S62", "B933AD"], ["Q21", "006CB7", 1], ["S61", "EE352E"], ["S66", "6CBE45"], ["Q24", "00AEEF"], ["Q25", "00AEEF", 1], ["Q22", "EE352E", 1], ["Q23", "FAA61A", 1], ["Q28", "EE352E"], ["Q29", "00AEEF", 1], ["Q26", "6CBE45"], ["Q27", "EE352E"], ["D90", "EE352E"], ["B52", "EE352E"], ["B57", "EE352E"], ["B54", "6CBE45"], ["Q31", "FAA61A"], ["Q32", "00AEEF"], ["M106", "6CBE45"], ["S74", "EE352E"], ["Q30", "FAA61A"], ["Q35", "006CB7", 1], ["S78", "FAA61A"], ["Q36", "FAA61A"], ["Q33", "EE352E", 1], ["S76", "B933AD"], ["Q34", "FAA61A", 1], ["Q39", "B933AD", 1], ["Q37", "00AEEF", 1], ["Q38", "EE352E", 1], ["B60", "B933AD"], ["B63", "006CB7"], ["B64", "6CBE45"], ["B61", "6CBE45"], ["B103", "FAA61A", 1], ["B62", "00AEEF"], ["B67", "EE352E"], ["B68", "EE352E"], ["B100", "B933AD", 1], ["B65", "00AEEF"], ["B69", "006CB7"], ["S81", "006CB7"], ["S84", "EE352E"], ["Q42", "00AEEF"], ["Q43", "EE352E"], ["Q40", "6CBE45", 1], ["Q41", "B933AD", 1], ["Q46", "EE352E"], ["Q47", "6CBE45", 1], ["S89", "EE352E"], ["S86", "B933AD"], ["Q48", "006CB7"], ["Q49", "006CB7", 1], ["M34+", "006CB7", , "M34-SBS"], ["B70", "B933AD"], ["B74", "EE352E"], ["M101", "FAA61A"], ["M102", "FAA61A"], ["M103", "B933AD"], ["M104", "B933AD"], ["Q70+", "EE352E", 1, "Q70-SBS"], ["M100", "00AEEF"], ["S91", "EE352E"], ["S92", "B933AD"], ["Q50", "FAA61A", 1], ["S90", "B933AD"], ["Q54", "B933AD"], ["S96", "006CB7"], ["S93", "EE352E"], ["S94", "FAA61A"], ["Q58", "6CBE45"], ["Q55", "EE352E"], ["S98", "EE352E"], ["Q56", "B933AD"], ["Q59", "FAA61A"], ["B82", "6CBE45"], ["B83", "EE352E"], ["B84", "006CB7"], ["Q60", "EE352E", 1], ["Q64", "EE352E", 1], ["M116", "6CBE45"], ["Q65", "00AEEF", 1], ["Q69", "00AEEF", 1], ["Q66", "EE352E", 1], ["Q67", "FAA61A", 1], ["B90", "EE352E"], ["M125", "B933AD"], ["Q72", "B933AD", 1], ["Q76", "6CBE45"], ["Q77", "FAA61A"], ["M15+", "006CB7", , "M15-SBS"], ["Q83", "6CBE45"], ["Q84", "B933AD"], ["Q85", "EE352E"], ["Q88", "FAA61A"], ["Q93", "6CBE45"], ["M10", "006CB7"], ["Q94", "6CBE45"], ["Q92", "00933C"], ["Q95", "6CBE45"], ["M11", "FAA61A"], ["M12", "006CB7"], ["M15", "006CB7"], ["Q53+", "FAA61A", 1, "Q53-SBS"], ["M20", "EE352E"], ["M21", "FAA61A"], ["M22", "00AEEF"], ["M14D+", "6CBE45", , "M14D-SBS"], ["M31", "B933AD"], ["M35", "FAA61A"], ["M14A+", "6CBE45", , "M14A-SBS"], ["M42", "EE352E"], ["M50", "6CBE45"], ["M57", "00AEEF"], ["M55", "6CBE45"], ["M34A+", "006CB7", , "M34A-SBS"], ["M66", "FAA61A"], ["M72", "6CBE45"], ["Q110", "006CB7", 1], ["Q111", "EE352E", 1], ["Q114", "FAA61A", 1], ["Q112", "EE352E", 1], ["Q113", "EE352E", 1], ["Q100", "FAA61A", 1], ["Q103", "EE352E", 1], ["Q104", "B933AD", 1], ["Q101", "6CBE45", 1], ["Q102", "006CB7", 1], ["M98", "EE352E"], ["M96", "6CBE45"], ["B2", "006CB7"], ["B1", "00AEEF"], ["B4", "6CBE45"], ["B3", "EE352E"], ["S79+", "006CB7", , "S79-SBS"], ["B6", "EE352E"], ["B8", "FAA61A"], ["B7", "EE352E"], ["B9", "EE352E"], ["SIM15", "00933C"], ["SIM10", "00933C"], ["SIM11", "00933C"], ["X27", "00933C"], ["X28", "00933C"], ["X37", "00933C"], ["X38", "00933C"], ["Q15A", "FAA61A"], ["BX20", "00AEEF"], ["BX21", "6CBE45"], ["BX22", "EE352E"], ["BX23", "B933AD", 1], ["BX24", "6CBE45"], ["BX25", "FAA61A"], ["BX26", "FAA61A"], ["BX27", "00AEEF"], ["BX28", "00AEEF"], ["BX29", "00AEEF"], ["B82+", "6CBE45", , "B82-SBS"], ["BX10", "006CB7"], ["BX11", "FAA61A"], ["X63", "00933C"], ["BX12", "006CB7"], ["BX13", "006CB7"], ["X64", "00933C"], ["BX15", "FAA61A"], ["BX16", "00AEEF"], ["X68", "00933C"], ["BX17", "006CB7"], ["BX19", "B933AD"], ["BX40", "006CB7"], ["BX41", "EE352E"], ["BX42", "EE352E"], ["BX46", "EE352E"], ["QM25", "00933C", 1], ["QM24", "00933C", 1], ["QM21", "00933C", 1], ["QM20", "00933C", 1], ["BX4A", "FAA61A"], ["BM2", "00933C", 1], ["BM3", "00933C", 1], ["BM1", "00933C", 1], ["BM4", "00933C", 1], ["BM5", "00933C", 1], ["BX30", "EE352E"], ["BX31", "EE352E"], ["BX32", "6CBE45"], ["BX33", "6CBE45"], ["BX34", "B933AD"], ["BX35", "00AEEF"], ["BX36", "B933AD"], ["QM15", "00933C", 1], ["BX38", "FAA61A"], ["BX39", "FAA61A"], ["QM12", "00933C", 1], ["QM11", "00933C", 1], ["QM10", "00933C", 1], ["QM18", "00933C", 1], ["QM17", "00933C", 1], ["QM16", "00933C", 1], ["M60+", "EE352E", , "M60-SBS"], ["BX6+", "EE352E"], ["QM40", "00933C", 1], ["QM44", "00933C", 1], ["QM42", "00933C", 1], ["M1", "EE352E"], ["SIM8X", "00933C"], ["M3", "B933AD"], ["M2", "B933AD"], ["M5", "EE352E"], ["M4", "00AEEF"], ["M7", "00AEEF"], ["M9", "B933AD"], ["M8", "00AEEF"], ["QM3", "00933C", 1], ["QM4", "00933C", 1], ["QM1", "00933C", 1], ["QM2", "00933C", 1], ["QM7", "00933C", 1], ["QM8", "00933C", 1], ["QM36", "00933C", 1], ["QM35", "00933C", 1], ["QM5", "00933C", 1], ["M86+", "FAA61A", , "M86-SBS"], ["QM6", "00933C", 1], ["QM34", "00933C", 1], ["QM32", "00933C", 1], ["QM31", "00933C", 1], ["SIM35", "00933C"], ["SIM3C", "00933C"], ["SIM32", "00933C"], ["SIM31", "00933C"], ["SIM34", "00933C"], ["SIM33", "00933C"], ["SIM30", "00933C"], ["SIM25", "00933C"], ["SIM24", "00933C"], ["SIM26", "00933C"], ["SIM1C", "00933C"], ["SIM23", "00933C"], ["SIM22", "00933C"], ["SIM4X", "00933C"], ["Q1", "FAA61A"], ["Q3", "00AEEF"], ["Q2", "6CBE45"], ["Q5", "EE352E"], ["Q4", "EE352E"], ["SIM4C", "00933C"], ["B44+", "B933AD", , "B44-SBS"], ["B46+", "6CBE45", , "B46-SBS"], ["M23+", "B933AD", , "M23-SBS"], ["BX1", "00AEEF"], ["BX2", "FAA61A"], ["BX5", "EE352E"], ["BX6", "EE352E"], ["BX3", "EE352E"], ["BX4", "FAA61A"], ["BX9", "FAA61A"], ["BX7", "EE352E"], ["BX8", "FAA61A"], ["BX41+", "EE352E"], ["Q20B", "006CB7"], ["Q20A", "006CB7"], ["Q44+", "EE352E", , "Q44-SBS"], ["Q52+", "FAA61A", 1, "Q52-SBS"]], [[1, "00985F", , "Babylon Branch"], [12, "4D5357", , "City Terminal Zone"], [7, "6E3219", , "Far Rockaway Branch"], [2, "0039A6", 1, "Harlem"], ["Wassaic", "0039A6", 1, "Wassaic"], [2, "CE8E00", , "Hempstead Branch"], [1, "009B3A", 1, "Hudson"], [6, "FF6319", , "Long Beach Branch"], [5, "00B2A9", , "Montauk Branch"], [3, "EE0034", 1, "New Haven"], [5, "EE0034", 1, "Danbury"], [4, "EE0034", 1, "New Canaan"], [6, "EE0034", 1, "Waterbury"], [3, "00AF3F", , "Oyster Bay Branch"], [50, "94219A", 1, "Pascack Valley"], [10, "006EC7", , "Port Jefferson Branch"], [51, "FFD411", 1, "Port Jervis"], [9, "C60C30", , "Port Washington Branch"], [4, "A626AA", , "Ronkonkoma Branch"], [8, "00A1DE", , "West Hempstead Branch"]], [[1, 1], [3, 3], [2, 2], [5, 5], [4, 4], [7, 9], [6, 7], ["H", 28], ["J", 19], ["M", 17], ["L", 21], ["N", 22], ["Q", 23], ["R", 24], ["W", 25], ["A", 11], ["C", 12], ["B", 14], ["E", 13], ["D", 15], ["G", 18], ["F", 16], ["Z", 20], ["FS", 26], ["GS", 27], ["SI", 29]]
];
for (i in a1) {
a2 = a1[i]
for (i in a2) {
c = a2[i][1];
c_o[c] ? c_o[c]++ : c_o[c] = 1;
}
}
//sort highest freq first, so 0 aka empty string, is most common, and single digit afterwards
c_a = Object.keys(c_o).sort(function (a, b) {
return c_o[b] - c_o[a];
});
for (i in a1) {
a2 = a1[i];
for (i in a2) {
c = a2[i][1];
a2[i][1] = c_a.indexOf(c);
}
}
a1.unshift(c_a);
a1;