-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.da503a76.js
41 lines (41 loc) · 43.7 KB
/
index.da503a76.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
30
31
32
33
34
35
36
37
38
39
40
41
const a=[{name:"Веритате",iau:"Veritate",constellation:"Андромеда",magnitude:"5.22",hr:"8930",hip:"116076",hd:"221345"},{name:"Нембус",iau:"Nembus",constellation:"Андромеда",magnitude:"3.59",hr:"464",hip:"7607",hd:"9927"},{name:"Альферац",iau:"Alpheratz",constellation:"Андромеда",magnitude:"2.07",hr:"15",hip:"677",hd:"358"},{name:"Мирах",iau:"Mirach",constellation:"Андромеда",magnitude:"2.07",hr:"337",hip:"5447",hd:"6860"},{name:"Аламак",iau:"Almach",constellation:"Андромеда",magnitude:"2.1",hr:"603",hip:"9640",hd:"12533"},{name:"Адхил",iau:"Adhil",constellation:"Андромеда",magnitude:"4.87",hr:"390",hip:"6411",hd:"8207"},{name:"Титавин",iau:"Titawin",constellation:"Андромеда",magnitude:"4.09",hr:"458",hip:"7513",hd:"9826"},{name:"Кастор",iau:"Castor",constellation:"Близнецы",magnitude:"1.98",hr:"2891",hip:"36850",hd:"60179"},{name:"Поллукс",iau:"Pollux",constellation:"Близнецы",magnitude:"1.16",hr:"2990",hip:"37826",hd:"62509"},{name:"Альхена",iau:"Alhena",constellation:"Близнецы",magnitude:"1.93",hr:"2421",hip:"31681",hd:"47105"},{name:"Васат",iau:"Wasat",constellation:"Близнецы",magnitude:"3.52",hr:"2777",hip:"35550",hd:"56986"},{name:"Мебсута",iau:"Mebsuta",constellation:"Близнецы",magnitude:"3.06",hr:"2473",hip:"32246",hd:"48329"},{name:"Мекбуда",iau:"Mekbuda",constellation:"Близнецы",magnitude:"4.01",hr:"2650",hip:"34088",hd:"52973"},{name:"Пропус",iau:"Propus",constellation:"Близнецы",magnitude:"3.32",hr:"2216",hip:"29655",hd:"42995"},{name:"Теят",iau:"Tejat",constellation:"Близнецы",magnitude:"2.87",hr:"2286",hip:"30343",hd:"44478"},{name:"Альзирр",iau:"Alzirr",constellation:"Близнецы",magnitude:"3.35",hr:"2484",hip:"32362",hd:"48737"},{name:"Цзишуй",iau:"Jishui",constellation:"Близнецы",magnitude:"4.89",hr:"2930",hip:"37265",hd:"61110"},{name:"Интеркрус",iau:"Intercrus",constellation:"Большая Медведица",magnitude:"5.41",hr:"3743",hip:"46471",hd:"81688"},{name:"Чалаван",iau:"Chalawan",constellation:"Большая Медведица",magnitude:"5.03",hr:"4277",hip:"53721",hd:"95128"},{name:"Алькор",iau:"Alcor",constellation:"Большая Медведица",magnitude:"3.99",hr:"5062",hip:"65477",hd:"116842"},{name:"Дубхе",iau:"Dubhe",constellation:"Большая Медведица",magnitude:"1.81",hr:"4301",hip:"54061",hd:"95689"},{name:"Мерак",iau:"Merak",constellation:"Большая Медведица",magnitude:"2.34",hr:"4295",hip:"53910",hd:"95418"},{name:"Фекда",iau:"Phecda",constellation:"Большая Медведица",magnitude:"2.41",hr:"4554",hip:"58001",hd:"103287"},{name:"Мегрец",iau:"Megrez",constellation:"Большая Медведица",magnitude:"3.32",hr:"4660",hip:"59774",hd:"106591"},{name:"Алиот",iau:"Alioth",constellation:"Большая Медведица",magnitude:"1.76",hr:"4905",hip:"62956",hd:"112185"},{name:"Мицар",iau:"Mizar",constellation:"Большая Медведица",magnitude:"2.23",hr:"5054",hip:"65378",hd:"116656"},{name:"Алкаид",iau:"Alkaid",constellation:"Большая Медведица",magnitude:"1.85",hr:"5191",hip:"67301",hd:"120315"},{name:"Талитха",iau:"Talitha",constellation:"Большая Медведица",magnitude:"3.12",hr:"3569",hip:"44127",hd:"76644"},{name:"Алькафрах",iau:"Alkaphrah",constellation:"Большая Медведица",magnitude:"4.16",hr:"3594",hip:"44471",hd:"77327"},{name:"Тания Бореалис",iau:"Tania Borealis",constellation:"Большая Медведица",magnitude:"3.45",hr:"4033",hip:"50372",hd:"89021"},{name:"Тания Австралис",iau:"Tania Australis",constellation:"Большая Медведица",magnitude:"3.06",hr:"4069",hip:"50801",hd:"89758"},{name:"Алюла Бореалис",iau:"Alula Borealis",constellation:"Большая Медведица",magnitude:"3.49",hr:"4377",hip:"55219",hd:"98262"},{name:"Алюла Австралис",iau:"Alula Australis",constellation:"Большая Медведица",magnitude:"4.41",hr:"4375",hip:"55203",hd:"98231"},{name:"Мускида",iau:"Muscida",constellation:"Большая Медведица",magnitude:"3.35",hr:"3323",hip:"41704",hd:"71369"},{name:"Тайяншоу",iau:"Taiyangshou",constellation:"Большая Медведица",magnitude:"3.69",hr:"4518",hip:"57399",hd:"102224"},{name:"Сириус",iau:"Sirius",constellation:"Большой Пёс",magnitude:"-1.46",hr:"2491",hip:"32349",hd:"48915"},{name:"Мирзам",iau:"Mirzam",constellation:"Большой Пёс",magnitude:"1.98",hr:"2294",hip:"30324",hd:"44743"},{name:"Мулифен",iau:"Muliphein",constellation:"Большой Пёс",magnitude:"4.11",hr:"2657",hip:"34045",hd:"53244"},{name:"Везен",iau:"Wezen",constellation:"Большой Пёс",magnitude:"1.83",hr:"2693",hip:"34444",hd:"54605"},{name:"Адара",iau:"Adhara",constellation:"Большой Пёс",magnitude:"1.5",hr:"2618",hip:"33579",hd:"52089"},{name:"Фуруд",iau:"Furud",constellation:"Большой Пёс",magnitude:"3.02",hr:"2282",hip:"30122",hd:"44402"},{name:"Алудра",iau:"Aludra",constellation:"Большой Пёс",magnitude:"2.45",hr:"2827",hip:"35904",hd:"58350"},{name:"Унургуните",iau:"Unurgunite",constellation:"Большой Пёс",magnitude:"3.49",hr:"2646",hip:"33856",hd:"52877"},{name:"Зубен эль Генуби",iau:"Zubenelgenubi",constellation:"Весы",magnitude:"2.75",hr:"5531",hip:"72622",hd:"130841"},{name:"Зубен Эльшемали",iau:"Zubeneschamali",constellation:"Весы",magnitude:"2.61",hr:"5685",hip:"74785",hd:"135742"},{name:"Зубен эль Акраб",iau:"Zubenelhakrabi",constellation:"Весы",magnitude:"3.91",hr:"5787",hip:"76333",hd:"138905"},{name:"Брахиум",iau:"Brachium",constellation:"Весы",magnitude:"3.25",hr:"5603",hip:"73714",hd:"133216"},{name:"Садалмелик",iau:"Sadalmelik",constellation:"Водолей",magnitude:"2.95",hr:"8414",hip:"109074",hd:"209750"},{name:"Садалсууд",iau:"Sadalsuud",constellation:"Водолей",magnitude:"2.9",hr:"8232",hip:"106278",hd:"204867"},{name:"Садахбия",iau:"Sadachbia",constellation:"Водолей",magnitude:"3.86",hr:"8518",hip:"110395",hd:"212061"},{name:"Скат",iau:"Skat",constellation:"Водолей",magnitude:"3.27",hr:"8709",hip:"113136",hd:"216627"},{name:"Альбали",iau:"Albali",constellation:"Водолей",magnitude:"3.78",hr:"7950",hip:"102618",hd:"198001"},{name:"Анха",iau:"Ancha",constellation:"Водолей",magnitude:"4.17",hr:"8499",hip:"110003",hd:"211391"},{name:"Ситула",iau:"Situla",constellation:"Водолей",magnitude:"5.04",hr:"8610",hip:"111710",hd:"214376"},{name:"Капелла",iau:"Capella",constellation:"Возничий",magnitude:"0.08",hr:"1708",hip:"24608",hd:"34029"},{name:"Менкалинан",iau:"Menkalinan",constellation:"Возничий",magnitude:"1.9",hr:"2088",hip:"28360",hd:"40183"},{name:"Альмааз",iau:"Almaaz",constellation:"Возничий",magnitude:"3.03",hr:"1605",hip:"23416",hd:"31964"},{name:"Саклатени",iau:"Saclateni",constellation:"Возничий",magnitude:"3.69",hr:"1612",hip:"23453",hd:"32068"},{name:"Хедус",iau:"Haedus",constellation:"Возничий",magnitude:"3.18",hr:"1641",hip:"23767",hd:"32630"},{name:"Махасим",iau:"Mahasim",constellation:"Возничий",magnitude:"2.65",hr:"2095",hip:"28380",hd:"40312"},{name:"Хассалех",iau:"Hassaleh",constellation:"Возничий",magnitude:"2.69",hr:"1577",hip:"23015",hd:"31398"},{name:"Мерга",iau:"Merga",constellation:"Волопас",magnitude:"5.76",hr:"5533",hip:"72487",hd:"130945"},{name:"Арктур",iau:"Arcturus",constellation:"Волопас",magnitude:"-0.05",hr:"5340",hip:"69673",hd:"124897"},{name:"Неккар",iau:"Nekkar",constellation:"Волопас",magnitude:"3.49",hr:"5602",hip:"73555",hd:"133208"},{name:"Сегинус",iau:"Seginus",constellation:"Волопас",magnitude:"3.04",hr:"5435",hip:"71075",hd:"127762"},{name:"Ицар",iau:"Izar",constellation:"Волопас",magnitude:"2.35",hr:"5506",hip:"72105",hd:"129988"},{name:"Муфрид",iau:"Muphrid",constellation:"Волопас",magnitude:"2.68",hr:"5235",hip:"67927",hd:"121370"},{name:"Сюаньгэ",iau:"Xuange",constellation:"Волопас",magnitude:"4.18",hr:"5351",hip:"69732",hd:"125162"},{name:"Алкалуропс",iau:"Alkalurops",constellation:"Волопас",magnitude:"4.31",hr:"5733",hip:"75411",hd:"137391"},{name:"Диадема",iau:"Diadem",constellation:"Волосы Вероники",magnitude:"4.85",hr:"4968",hip:"64241",hd:"114378"},{name:"Альхиба",iau:"Alchiba",constellation:"Ворон",magnitude:"4.02",hr:"4623",hip:"59199",hd:"105452"},{name:"Гиена",iau:"Gienah",constellation:"Ворон",magnitude:"2.58",hr:"4662",hip:"59803",hd:"106625"},{name:"Альгораб",iau:"Algorab",constellation:"Ворон",magnitude:"2.94",hr:"4757",hip:"60965",hd:"108767"},{name:"Крац",iau:"Kraz",constellation:"Ворон",magnitude:"2.65",hr:"4786",hip:"61359",hd:"109379"},{name:"Расальгети",iau:"Rasalgethi",constellation:"Геркулес",magnitude:"3.37",hr:"6406",hip:"84345",hd:"156014"},{name:"Корнефорос",iau:"Kornephoros",constellation:"Геркулес",magnitude:"2.78",hr:"6148",hip:"80816",hd:"148856"},{name:"Сарин",iau:"Sarin",constellation:"Геркулес",magnitude:"3.12",hr:"6410",hip:"84379",hd:"156164"},{name:"Марсик",iau:"Marsic",constellation:"Геркулес",magnitude:"5",hr:"6008",hip:"79043",hd:"145001"},{name:"Масим",iau:"Maasym",constellation:"Геркулес",magnitude:"4.41",hr:"6526",hip:"85693",hd:"158899"},{name:"Каям",iau:"Cujam",constellation:"Геркулес",magnitude:"4.57",hr:"6117",hip:"80463",hd:"148112"},{name:"Альфард",iau:"Alphard",constellation:"Гидра",magnitude:"1.99",hr:"3748",hip:"46390",hd:"81797"},{name:"Минхир",iau:"Minchir",constellation:"Гидра",magnitude:"4.45",hr:"3418",hip:"42402",hd:"73471"},{name:"Чжанг",iau:"Zhang",constellation:"Гидра",magnitude:"4.11",hr:"3903",hip:"48356",hd:"85444"},{name:"Факт",iau:"Phact",constellation:"Голубь",magnitude:"2.65",hr:"1956",hip:"26634",hd:"37795"},{name:"Вазн",iau:"Wazn",constellation:"Голубь",magnitude:"3.12",hr:"2040",hip:"27628",hd:"39425"},{name:"Сердце Карла",iau:"Cor Caroli",constellation:"Гончие Псы",magnitude:"2.89",hr:"4915",hip:"63125",hd:"112413"},{name:"Хара",iau:"Chara",constellation:"Гончие Псы",magnitude:"4.24",hr:"4785",hip:"61317",hd:"109358"},{name:"Лич",iau:"Lich",constellation:"Дева",magnitude:"-",hr:"-",hip:"-",hd:"-"},{name:"Спика",iau:"Spica",constellation:"Дева",magnitude:"0.98",hr:"5056",hip:"65474",hd:"116658"},{name:"Завиява",iau:"Zavijava",constellation:"Дева",magnitude:"3.59",hr:"4540",hip:"57757",hd:"102870"},{name:"Поррима",iau:"Porrima",constellation:"Дева",magnitude:"3.44",hr:"4825",hip:"61941",hd:"110379"},{name:"Минальаува",iau:"Minelauva",constellation:"Дева",magnitude:"3.39",hr:"4910",hip:"63090",hd:"112300"},{name:"Виндемиатрикс",iau:"Vindemiatrix",constellation:"Дева",magnitude:"2.85",hr:"4932",hip:"63608",hd:"113226"},{name:"Заниах",iau:"Zaniah",constellation:"Дева",magnitude:"4.6",hr:"4689",hip:"60129",hd:"107259"},{name:"Сирма",iau:"Syrma",constellation:"Дева",magnitude:"4.07",hr:"5338",hip:"69701",hd:"124850"},{name:"Канг",iau:"Kang",constellation:"Дева",magnitude:"4.18",hr:"5315",hip:"69427",hd:"124294"},{name:"Кхамбалия",iau:"Khambalia",constellation:"Дева",magnitude:"4.52",hr:"5359",hip:"69974",hd:"125337"},{name:"Хезе",iau:"Heze",constellation:"Дева",magnitude:"3.38",hr:"5107",hip:"66249",hd:"118098"},{name:"Музыка",iau:"Musica",constellation:"Дельфин",magnitude:"5.48",hr:"8030",hip:"103527",hd:"199665"},{name:"Суалоцин",iau:"Sualocin",constellation:"Дельфин",magnitude:"3.86",hr:"7906",hip:"101958",hd:"196867"},{name:"Ротанев",iau:"Rotanev",constellation:"Дельфин",magnitude:"3.64",hr:"7882",hip:"101769",hd:"196524"},{name:"Альдулфин",iau:"Aldulfin",constellation:"Дельфин",magnitude:"4.03",hr:"7852",hip:"101421",hd:"195810"},{name:"Фафнир",iau:"Fafnir",constellation:"Дракон",magnitude:"4.82",hr:"6945",hip:"90344",hd:"170693"},{name:"Тяньи",iau:"Tianyi",constellation:"Дракон",magnitude:"5.43",hr:"4863",hip:"62423",hd:"111335"},{name:"Тайи",iau:"Taiyi",constellation:"Дракон",magnitude:"5.23",hr:"4916",hip:"63076",hd:"112429"},{name:"Тубан",iau:"Thuban",constellation:"Дракон",magnitude:"3.67",hr:"5291",hip:"68756",hd:"123299"},{name:"Растабан",iau:"Rastaban",constellation:"Дракон",magnitude:"2.79",hr:"6536",hip:"85670",hd:"159181"},{name:"Эльтанин",iau:"Eltanin",constellation:"Дракон",magnitude:"2.24",hr:"6705",hip:"87833",hd:"164058"},{name:"Альтаис",iau:"Altais",constellation:"Дракон",magnitude:"3.07",hr:"7310",hip:"94376",hd:"180711"},{name:"Альдибах",iau:"Aldhibah",constellation:"Дракон",magnitude:"3.17",hr:"6396",hip:"83895",hd:"155763"},{name:"Athebyne",iau:"Athebyne",constellation:"Дракон",magnitude:"2.73",hr:"6132",hip:"80331",hd:"148387"},{name:"Эдасих",iau:"Edasich",constellation:"Дракон",magnitude:"3.29",hr:"5744",hip:"75458",hd:"137759"},{name:"Джансар",iau:"Giausar",constellation:"Дракон",magnitude:"3.82",hr:"4434",hip:"56211",hd:"100029"},{name:"Алракис",iau:"Alrakis",constellation:"Дракон",magnitude:"5.55",hr:"6370",hip:"83608",hd:"154906"},{name:"Грумиум",iau:"Grumium",constellation:"Дракон",magnitude:"3.73",hr:"6688",hip:"87585",hd:"163588"},{name:"Альсафи",iau:"Alsafi",constellation:"Дракон",magnitude:"4.67",hr:"7462",hip:"96100",hd:"185144"},{name:"Дзибан",iau:"Dziban",constellation:"Дракон",magnitude:"4.57",hr:"6636",hip:"86614",hd:"162003"},{name:"Сервантес",iau:"Cervantes",constellation:"Жертвенник",magnitude:"5.15",hr:"6585",hip:"86796",hd:"160691"},{name:"Тонатиу",iau:"Tonatiuh",constellation:"Жираф",magnitude:"5.8",hr:"4609",hip:"58952",hd:"104985"},{name:"Альнаир",iau:"Alnair",constellation:"Журавль",magnitude:"1.73",hr:"8425",hip:"109268",hd:"209952"},{name:"Тиаки",iau:"Tiaki",constellation:"Журавль",magnitude:"2.12",hr:"8636",hip:"112122",hd:"214952"},{name:"Альданаб",iau:"Aldhanab",constellation:"Журавль",magnitude:"3",hr:"8353",hip:"108085",hd:"207971"},{name:"Арнеб",iau:"Arneb",constellation:"Заяц",magnitude:"2.58",hr:"1865",hip:"25985",hd:"36673"},{name:"Нихаль",iau:"Nihal",constellation:"Заяц",magnitude:"2.83",hr:"1829",hip:"25606",hd:"36079"},{name:"Расальхаг",iau:"Rasalhague",constellation:"Змееносец",magnitude:"2.08",hr:"6556",hip:"86032",hd:"159561"},{name:"Цебальрай",iau:"Cebalrai",constellation:"Змееносец",magnitude:"2.76",hr:"6603",hip:"86742",hd:"161096"},{name:"Йед Приор",iau:"Yed Prior",constellation:"Змееносец",magnitude:"2.73",hr:"6056",hip:"79593",hd:"146051"},{name:"Йед Постериор",iau:"Yed Posterior",constellation:"Змееносец",magnitude:"3.23",hr:"6075",hip:"79882",hd:"146791"},{name:"Сабик",iau:"Sabik",constellation:"Змееносец",magnitude:"2.43",hr:"6378",hip:"84012",hd:"155125"},{name:"Марфик",iau:"Marfik",constellation:"Змееносец",magnitude:"3.82",hr:"6149",hip:"80883",hd:"148857"},{name:"Унукалхай",iau:"Unukalhai",constellation:"Змея",magnitude:"2.63",hr:"5854",hip:"77070",hd:"140573"},{name:"Алия",iau:"Alya",constellation:"Змея",magnitude:"4.62",hr:"7141",hip:"92946",hd:"175638"},{name:"Шедар",iau:"Schedar",constellation:"Кассиопея",magnitude:"2.24",hr:"168",hip:"3179",hd:"3712"},{name:"Каф",iau:"Caph",constellation:"Кассиопея",magnitude:"2.28",hr:"21",hip:"746",hd:"432"},{name:"Рукба",iau:"Ruchbah",constellation:"Кассиопея",magnitude:"2.66",hr:"403",hip:"6686",hd:"8538"},{name:"Сегин",iau:"Segin",constellation:"Кассиопея",magnitude:"3.35",hr:"542",hip:"8886",hd:"11415"},{name:"Фулу",iau:"Fulu",constellation:"Кассиопея",magnitude:"3.69",hr:"153",hip:"2920",hd:"3360"},{name:"Ахирд",iau:"Achird",constellation:"Кассиопея",magnitude:"3.46",hr:"219",hip:"3821",hd:"4614"},{name:"Кастула",iau:"Castula",constellation:"Кассиопея",magnitude:"4.62",hr:"265",hip:"4422",hd:"5395"},{name:"Ригиль Кентаврус",iau:"Rigil Kentaurus",constellation:"Кентавр",magnitude:"-0.01",hr:"5459",hip:"71683",hd:"128620"},{name:"Проксима Кентавра",iau:"Proxima Centauri",constellation:"Кентавр",magnitude:"11.01",hip:"70890",hd:"999999"},{name:"Хадар",iau:"Hadar",constellation:"Кентавр",magnitude:"0.61",hr:"5267",hip:"68702",hd:"122451"},{name:"Менкент",iau:"Menkent",constellation:"Кентавр",magnitude:"2.06",hr:"5288",hip:"68933",hd:"123139"},{name:"Канопус",iau:"Canopus",constellation:"Киль",magnitude:"-0.62",hr:"2326",hip:"30438",hd:"45348"},{name:"Миаплацидус",iau:"Miaplacidus",constellation:"Киль",magnitude:"1.67",hr:"3685",hip:"45238",hd:"80007"},{name:"Авиор",iau:"Avior",constellation:"Киль",magnitude:"1.86",hr:"3307",hip:"41037",hd:"71129"},{name:"Аспидиске",iau:"Aspidiske",constellation:"Киль",magnitude:"2.21",hr:"3699",hip:"45556",hd:"80404"},{name:"Менкар",iau:"Menkar",constellation:"Кит",magnitude:"2.54",hr:"911",hip:"14135",hd:"18884"},{name:"Дифда",iau:"Diphda",constellation:"Кит",magnitude:"2.04",hr:"188",hip:"3419",hd:"4128"},{name:"Каффальджидхма",iau:"Kaffaljidhma",constellation:"Кит",magnitude:"3.56",hr:"804",hip:"12706",hd:"16970"},{name:"Батен Каитос",iau:"Baten Kaitos",constellation:"Кит",magnitude:"3.74",hr:"539",hip:"8645",hd:"11353"},{name:"Мира",iau:"Mira",constellation:"Кит",magnitude:"6.47",hr:"681",hip:"10826",hd:"14386"},{name:"Алгеди",iau:"Algedi",constellation:"Козерог",magnitude:"3.58",hr:"7754",hip:"100064",hd:"192947"},{name:"Дабих",iau:"Dabih",constellation:"Козерог",magnitude:"3.05",hr:"7776",hip:"100345",hd:"193495"},{name:"Нашира",iau:"Nashira",constellation:"Козерог",magnitude:"3.69",hr:"8278",hip:"106985",hd:"206088"},{name:"Денеб Алгеди",iau:"Deneb Algedi",constellation:"Козерог",magnitude:"2.85",hr:"8322",hip:"107556",hd:"207098"},{name:"Альшат",iau:"Alshat",constellation:"Козерог",magnitude:"4.77",hr:"7773",hip:"100310",hd:"193432"},{name:"Наос",iau:"Naos",constellation:"Корма",magnitude:"2.21",hr:"3165",hip:"39429",hd:"66811"},{name:"Турейс",iau:"Tureis",constellation:"Корма",magnitude:"2.83",hr:"3185",hip:"39757",hd:"67523"},{name:"Асмидиске",iau:"Azmidi",constellation:"Корма",magnitude:"3.45",hr:"3045",hd:"63700"},{name:"Денеб",iau:"Deneb",constellation:"Лебедь",magnitude:"1.25",hr:"7924",hip:"102098",hd:"197345"},{name:"Альбирео",iau:"Albireo",constellation:"Лебедь",magnitude:"3.37",hr:"7417",hip:"95947",hd:"183912"},{name:"Садр",iau:"Sadr",constellation:"Лебедь",magnitude:"2.23",hr:"7796",hip:"100453",hd:"194093"},{name:"Дженах",iau:"Aljanah",constellation:"Лебедь",magnitude:"2.48",hr:"7949",hip:"102488",hd:"197989"},{name:"Азельфафага",iau:"Azelfafage",constellation:"Лебедь",magnitude:"4.69",hr:"8301",hip:"107136",hd:"206672"},{name:"Регул",iau:"Regulus",constellation:"Лев",magnitude:"1.36",hr:"3982",hip:"49669",hd:"87901"},{name:"Денебола",iau:"Denebola",constellation:"Лев",magnitude:"2.14",hr:"4534",hip:"57632",hd:"102647"},{name:"Альгиеба",iau:"Algieba",constellation:"Лев",magnitude:"2.61",hr:"4057",hip:"50583",hd:"89484"},{name:"Зосма",iau:"Zosma",constellation:"Лев",magnitude:"2.56",hr:"4357",hip:"54872",hd:"97603"},{name:"Адхафера",iau:"Adhafera",constellation:"Лев",magnitude:"3.43",hr:"4031",hip:"50335",hd:"89025"},{name:"Хертан",iau:"Chertan",constellation:"Лев",magnitude:"3.33",hr:"4359",hip:"54879",hd:"97633"},{name:"Альтерф",iau:"Alterf",constellation:"Лев",magnitude:"4.32",hr:"3773",hip:"46750",hd:"82308"},{name:"Расаляс",iau:"Rasalas",constellation:"Лев",magnitude:"3.88",hr:"3905",hip:"48455",hd:"85503"},{name:"Субра",iau:"Subra",constellation:"Лев",magnitude:"3.52",hr:"3852",hip:"47508",hd:"83808"},{name:"Вега",iau:"Vega",constellation:"Лира",magnitude:"0.03",hr:"7001",hip:"91262",hd:"172167"},{name:"Шелиак",iau:"Sheliak",constellation:"Лира",magnitude:"3.6",hr:"7106",hip:"92420",hd:"174638"},{name:"Сулафат",iau:"Sulafat",constellation:"Лира",magnitude:"3.25",hr:"7178",hip:"93194",hd:"176437"},{name:"Альадфар",iau:"Aladfar",constellation:"Лира",magnitude:"4.43",hr:"7298",hip:"94481",hd:"180163"},{name:"Ансер",iau:"Anser",constellation:"Лисичка",magnitude:"4.44",hr:"7405",hip:"95771",hd:"183439"},{name:"Полярная",iau:"Polaris",constellation:"Малая Медведица",magnitude:"2.13",hr:"424",hip:"11767",hd:"8890"},{name:"Кохаб",iau:"Kochab",constellation:"Малая Медведица",magnitude:"2.07",hr:"5563",hip:"72607",hd:"131873"},{name:"Феркад",iau:"Pherkad",constellation:"Малая Медведица",magnitude:"3",hr:"5735",hip:"75097",hd:"137422"},{name:"Йилдун",iau:"Yildun",constellation:"Малая Медведица",magnitude:"4.35",hr:"6789",hip:"85822",hd:"166205"},{name:"Китальфа",iau:"Kitalpha",constellation:"Малый Конь",magnitude:"3.92",hr:"8131",hip:"104987",hd:"202447"},{name:"Преципуя",iau:"Praecipua",constellation:"Малый Лев",magnitude:"3.79",hr:"4247",hip:"53229",hd:"94264"},{name:"Процион",iau:"Procyon",constellation:"Малый Пёс",magnitude:"0.4",hr:"2943",hip:"37279",hd:"61421"},{name:"Гомейса",iau:"Gomeisa",constellation:"Малый Пёс",magnitude:"2.89",hr:"2845",hip:"36188",hd:"58715"},{name:"Северная Лилия",iau:"Lilii Borea",constellation:"Овен",magnitude:"4.52",hr:"824",hip:"13061",hd:"17361"},{name:"Bharani",iau:"Bharani",constellation:"Овен",magnitude:"3.61",hr:"838",hip:"13209",hd:"17573"},{name:"Хамаль",iau:"Hamal",constellation:"Овен",magnitude:"2.01",hr:"617",hip:"9884",hd:"12929"},{name:"Шератан",iau:"Sheratan",constellation:"Овен",magnitude:"2.7",hr:"553",hip:"8903",hd:"11636"},{name:"Месартхим",iau:"Mesarthim",constellation:"Овен",magnitude:"4.75",hr:"546",hip:"8832",hd:"11502"},{name:"Ботейн",iau:"Botein",constellation:"Овен",magnitude:"4.35",hr:"951",hip:"14838",hd:"19787"},{name:"Южнополярная",iau:"Polaris Australis",constellation:"Октант",magnitude:"5.45",hr:"7228",hip:"104382",hd:"177482"},{name:"Альтаир",iau:"Altair",constellation:"Орёл",magnitude:"0.76",hr:"7557",hip:"97649",hd:"187642"},{name:"Альшаин",iau:"Alshain",constellation:"Орёл",magnitude:"3.71",hr:"7602",hip:"98036",hd:"188512"},{name:"Таразед",iau:"Tarazed",constellation:"Орёл",magnitude:"2.72",hr:"7525",hip:"97278",hd:"186791"},{name:"Либертас",iau:"Libertas",constellation:"Орёл",magnitude:"4.71",hr:"7595",hip:"97938",hd:"188310"},{name:"Окаб",iau:"Okab",constellation:"Орёл",magnitude:"2.99",hr:"7235",hip:"93747",hd:"177724"},{name:"Бетельгейзе",iau:"Betelgeuse",constellation:"Орион",magnitude:"0.45",hr:"2061",hip:"27989",hd:"39801"},{name:"Ригель",iau:"Rigel",constellation:"Орион",magnitude:"0.18",hr:"1713",hip:"24436",hd:"34085"},{name:"Беллатрикс",iau:"Bellatrix",constellation:"Орион",magnitude:"1.64",hr:"1790",hip:"25336",hd:"35468"},{name:"Минтака",iau:"Mintaka",constellation:"Орион",magnitude:"2.25",hr:"1852",hip:"25930",hd:"36486"},{name:"Альнилам",iau:"Alnilam",constellation:"Орион",magnitude:"1.69",hr:"1903",hip:"26311",hd:"37128"},{name:"Альнитак",iau:"Alnitak",constellation:"Орион",magnitude:"1.74",hr:"1948",hip:"26727",hd:"37742"},{name:"Хатиса",iau:"Hatysa",constellation:"Орион",magnitude:"2.8",hr:"1899",hip:"26241",hd:"37043"},{name:"Саиф",iau:"Saiph",constellation:"Орион",magnitude:"2.07",hr:"2004",hip:"27366",hd:"38771"},{name:"Мейсса",iau:"Meissa",constellation:"Орион",magnitude:"3.39",hr:"1879",hip:"26207",hd:"36861"},{name:"Табит",iau:"Tabit",constellation:"Орион",magnitude:"3.19",hr:"1543",hip:"22449",hd:"30652"},{name:"Пикок",iau:"Peacock",constellation:"Павлин",magnitude:"1.94",hr:"7790",hip:"100751",hd:"193924"},{name:"Альсефина",iau:"Alsephina",constellation:"Паруса",magnitude:"1.99",hr:"3485",hip:"42913",hd:"74956"},{name:"Маркеб",iau:"Markeb",constellation:"Паруса",magnitude:"2.47",hr:"3734",hip:"45941",hd:"81188"},{name:"Сухайль",iau:"Suhail",constellation:"Паруса",magnitude:"2.23",hr:"3634",hip:"44816",hd:"78647"},{name:"Гельветиос",iau:"Helvetios",constellation:"Пегас",magnitude:"5.49",hr:"8729",hip:"113357",hd:"217014"},{name:"Маркаб",iau:"Markab",constellation:"Пегас",magnitude:"2.49",hr:"8781",hip:"113963",hd:"218045"},{name:"Шеат",iau:"Scheat",constellation:"Пегас",magnitude:"2.44",hr:"8775",hip:"113881",hd:"217906"},{name:"Альгениб",iau:"Algenib",constellation:"Пегас",magnitude:"2.83",hr:"39",hip:"1067",hd:"886"},{name:"Эниф",iau:"Enif",constellation:"Пегас",magnitude:"2.38",hr:"8308",hip:"107315",hd:"206778"},{name:"Хомам",iau:"Homam",constellation:"Пегас",magnitude:"3.41",hr:"8634",hip:"112029",hd:"214923"},{name:"Матар",iau:"Matar",constellation:"Пегас",magnitude:"2.93",hr:"8650",hip:"112158",hd:"215182"},{name:"Бихам",iau:"Biham",constellation:"Пегас",magnitude:"3.52",hr:"8450",hip:"109427",hd:"210418"},{name:"Садалбари",iau:"Sadalbari",constellation:"Пегас",magnitude:"3.51",hr:"8684",hip:"112748",hd:"216131"},{name:"Сальма",iau:"Salm",constellation:"Пегас",magnitude:"4.58",hr:"8880",hip:"115250",hd:"220061"},{name:"Алькараб",iau:"Alkarab",constellation:"Пегас",magnitude:"4.42",hr:"8905",hip:"115623",hd:"220657"},{name:"Мирфак",iau:"Mirfak",constellation:"Персей",magnitude:"1.79",hr:"1017",hip:"15863",hd:"20902"},{name:"Алголь",iau:"Algol",constellation:"Персей",magnitude:"2.09",hr:"936",hip:"14576",hd:"19356"},{name:"Мирам",iau:"Miram",constellation:"Персей",magnitude:"3.77",hr:"834",hip:"13268",hd:"17506"},{name:"Мисам",iau:"Misam",constellation:"Персей",magnitude:"3.79",hr:"941",hip:"14668",hd:"19476"},{name:"Менкиб",iau:"Menkib",constellation:"Персей",magnitude:"3.98",hr:"1228",hip:"18614",hd:"24912"},{name:"Атик",iau:"Atik",constellation:"Персей",magnitude:"3.84",hr:"1131",hip:"17448",hd:"23180"},{name:"Далим",iau:"Dalim",constellation:"Печь",magnitude:"3.86",hr:"963",hip:"14879",hd:"20010"},{name:"Коперник",iau:"Copernicus",constellation:"Рак",magnitude:"5.95",hr:"3522",hip:"43587",hd:"75732"},{name:"Акубенс",iau:"Acubens",constellation:"Рак",magnitude:"4.26",hr:"3572",hip:"44066",hd:"76756"},{name:"Азеллюс Бореалис",iau:"Asellus Borealis",constellation:"Рак",magnitude:"4.66",hr:"3449",hip:"42806",hd:"74198"},{name:"Азеллюс Австралис",iau:"Asellus Australis",constellation:"Рак",magnitude:"3.94",hr:"3461",hip:"42911",hd:"74442"},{name:"Мелеф",iau:"Meleph",constellation:"Рак",magnitude:"6.29",hr:"3429",hip:"42556",hd:"73731"},{name:"Тегмен",iau:"Tegmine",constellation:"Рак",magnitude:"5.24",hr:"3208",hip:"40167",hd:"68255"},{name:"Тарф",iau:"Tarf",constellation:"Рак",magnitude:"3.53",hr:"3249",hip:"40526",hd:"69267"},{name:"Альриша",iau:"Alrescha",constellation:"Рыбы",magnitude:"3.82",hr:"596",hip:"9487",hd:"12446"},{name:"Ревати",iau:"Revati",constellation:"Рыбы",magnitude:"5.21",hr:"361",hip:"5737",hd:"7344"},{name:"Торкулар",iau:"Torcular",constellation:"Рыбы",magnitude:"4.29",hr:"510",hip:"8198",hd:"10761"},{name:"Фумальсамаках",iau:"Fumalsamakah",constellation:"Рыбы",magnitude:"4.48",hr:"8773",hip:"113889",hd:"217891"},{name:"Альфарг",iau:"Alpherg",constellation:"Рыбы",magnitude:"2.88",hr:"437",hip:"7097",hd:"9270"},{name:"Альциаукат",iau:"Alsciaukat",constellation:"Рысь",magnitude:"4.25",hr:"3275",hip:"41075",hd:"70272"},{name:"Альфекка",iau:"Alphecca",constellation:"Северная Корона",magnitude:"2.22",hr:"5793",hip:"76267",hd:"139006"},{name:"Нусакан",iau:"Nusakan",constellation:"Северная Корона",magnitude:"3.9",hr:"5747",hip:"75695",hd:"137909"},{name:"Фуюэ",iau:"Fuyue",constellation:"Скорпион",magnitude:"3.19",hr:"6630",hip:"87261",hd:"161892"},{name:"Антарес",iau:"Antares",constellation:"Скорпион",magnitude:"1.06",hr:"6134",hip:"80763",hd:"148478"},{name:"Акраб",iau:"Acrab",constellation:"Скорпион",magnitude:"2.56",hr:"5984",hip:"78820",hd:"144217"},{name:"Джубба",iau:"Dschubba",constellation:"Скорпион",magnitude:"2.29",hr:"5953",hip:"78401",hd:"143275"},{name:"Лараваг",iau:"Larawag",constellation:"Скорпион",magnitude:"2.29",hr:"6241",hip:"82396",hd:"151680"},{name:"Саргас",iau:"Sargas",constellation:"Скорпион",magnitude:"1.86",hr:"6553",hip:"86228",hd:"159532"},{name:"Шаула",iau:"Shaula",constellation:"Скорпион",magnitude:"2.08",hr:"6527",hip:"85927",hd:"158926"},{name:"Xamidimura",iau:"Xamidimura",constellation:"Скорпион",magnitude:"3",hr:"6247",hip:"82514",hd:"151890"},{name:"Пипирима",iau:"Pipirima",constellation:"Скорпион",magnitude:"3.56",hr:"6252",hip:"82545",hd:"151985"},{name:"Джаббах",iau:"Jabbah",constellation:"Скорпион",magnitude:"4.5",hr:"6027",hip:"79374",hd:"145502"},{name:"Фанг",iau:"Fang",constellation:"Скорпион",magnitude:"2.89",hr:"5944",hip:"78265",hd:"143018"},{name:"Иклил",iau:"Iklil",constellation:"Скорпион",magnitude:"3.87",hr:"5928",hip:"78104",hd:"142669"},{name:"Альният",iau:"Alniyat",constellation:"Скорпион",magnitude:"2.9",hr:"6084",hip:"80112",hd:"147165"},{name:"Лесатх",iau:"Lesath",constellation:"Скорпион",magnitude:"2.7",hr:"6508",hip:"85696",hd:"158408"},{name:"Шам",iau:"Sham",constellation:"Стрела",magnitude:"4.39",hr:"7479",hip:"96757",hd:"185758"},{name:"Рукбат",iau:"Rukbat",constellation:"Стрелец",magnitude:"3.96",hr:"7348",hip:"95347",hd:"181869"},{name:"Аркаб Приор",iau:"Arkab Prior",constellation:"Стрелец",magnitude:"3.96",hr:"7337",hip:"95241",hd:"181454"},{name:"Аркаб Постериор",iau:"Arkab Posterior",constellation:"Стрелец",magnitude:"4.27",hr:"7343",hip:"95294",hd:"181623"},{name:"Альназль",iau:"Alnasl",constellation:"Стрелец",magnitude:"2.98",hr:"6746",hip:"88635",hd:"165135"},{name:"Каус Медия",iau:"Kaus Media",constellation:"Стрелец",magnitude:"2.72",hr:"6859",hip:"89931",hd:"168454"},{name:"Каус Австралис",iau:"Kaus Australis",constellation:"Стрелец",magnitude:"1.79",hr:"6879",hip:"90185",hd:"169022"},{name:"Асцелла",iau:"Ascella",constellation:"Стрелец",magnitude:"2.6",hr:"7194",hip:"93506",hd:"176687"},{name:"Каус Бореалис",iau:"Kaus Borealis",constellation:"Стрелец",magnitude:"2.82",hr:"6913",hip:"90496",hd:"169916"},{name:"Полис",iau:"Polis",constellation:"Стрелец",magnitude:"3.84",hr:"6812",hip:"89341",hd:"166937"},{name:"Аинальрами",iau:"Ainalrami",constellation:"Стрелец",magnitude:"4.86",hr:"7116",hip:"92761",hd:"174974"},{name:"Альбальдах",iau:"Albaldah",constellation:"Стрелец",magnitude:"2.88",hr:"7264",hip:"94141",hd:"178524"},{name:"Нунки",iau:"Nunki",constellation:"Стрелец",magnitude:"2.05",hr:"7121",hip:"92855",hd:"175191"},{name:"Теребелл",iau:"Terebellum",constellation:"Стрелец",magnitude:"4.7",hr:"7597",hip:"98066",hd:"188376"},{name:"Целено",iau:"Celaeno",constellation:"Телец",magnitude:"5.45",hr:"1140",hip:"17489",hd:"23288"},{name:"Электра",iau:"Electra",constellation:"Телец",magnitude:"3.72",hr:"1142",hip:"17499",hd:"23302"},{name:"Тайгета",iau:"Taygeta",constellation:"Телец",magnitude:"4.3",hr:"1145",hip:"17531",hd:"23338"},{name:"Майя",iau:"Maia",constellation:"Телец",magnitude:"3.87",hr:"1149",hip:"17573",hd:"23408"},{name:"Астеропа",iau:"Asterope",constellation:"Телец",magnitude:"5.76",hr:"1151",hip:"17579",hd:"23432"},{name:"Меропа",iau:"Merope",constellation:"Телец",magnitude:"4.14",hr:"1156",hip:"17608",hd:"23480"},{name:"Атлас",iau:"Atlas",constellation:"Телец",magnitude:"3.62",hr:"1178",hip:"17847",hd:"23850"},{name:"Плейона",iau:"Pleione",constellation:"Телец",magnitude:"5.05",hr:"1180",hip:"17851",hd:"23862"},{name:"Альдебаран",iau:"Aldebaran",constellation:"Телец",magnitude:"0.87",hr:"1457",hip:"21421",hd:"29139"},{name:"Эльнат",iau:"Elnath",constellation:"Телец",magnitude:"1.65",hr:"1791",hip:"25428",hd:"35497"},{name:"Прима Хиадум",iau:"Prima Hyadum",constellation:"Телец",magnitude:"3.65",hr:"1346",hip:"20205",hd:"27371"},{name:"Секунда Хиадум",iau:"Secunda Hyadum",constellation:"Телец",magnitude:"3.78",hr:"1373",hip:"20455",hd:"27697"},{name:"Аин",iau:"Ain",constellation:"Телец",magnitude:"3.53",hr:"1409",hip:"20889",hd:"28305"},{name:"Тяньгуань",iau:"Tianguan",constellation:"Телец",magnitude:"2.97",hr:"1910",hip:"26451",hd:"37202"},{name:"Альциона",iau:"Alcyone",constellation:"Телец",magnitude:"2.85",hr:"1165",hip:"17702",hd:"23630"},{name:"Chamukuy",iau:"Chamukuy",constellation:"Телец",magnitude:"3.73",hr:"1412",hip:"20894",hd:"28319"},{name:"Моталлах",iau:"Mothallah",constellation:"Треугольник",magnitude:"3.42",hr:"544",hip:"8796",hd:"11443"},{name:"Анкаа",iau:"Ankaa",constellation:"Феникс",magnitude:"2.4",hr:"99",hip:"2081",hd:"2261"},{name:"Вуррен",iau:"Wurren",constellation:"Феникс",magnitude:"4.02",hr:"338",hip:"5348",hd:"6882"},{name:"Альдерамин",iau:"Alderamin",constellation:"Цефей",magnitude:"2.45",hr:"8162",hip:"105199",hd:"203280"},{name:"Альфирк",iau:"Alfirk",constellation:"Цефей",magnitude:"3.23",hr:"8238",hip:"106032",hd:"205021"},{name:"Эрраи",iau:"Errai",constellation:"Цефей",magnitude:"3.21",hr:"8974",hip:"116727",hd:"222404"},{name:"Курхах",iau:"Kurhah",constellation:"Цефей",magnitude:"4.26",hr:"8417",hip:"108917",hd:"209790"},{name:"Алькес",iau:"Alkes",constellation:"Чаша",magnitude:"4.08",hr:"4287",hip:"53740",hd:"95272"},{name:"Скептрум",iau:"Sceptrum",constellation:"Эридан",magnitude:"4.02",hr:"1481",hip:"21594",hd:"29503"},{name:"Ахернар",iau:"Achernar",constellation:"Эридан",magnitude:"0.45",hr:"472",hip:"7588",hd:"10144"},{name:"Курса",iau:"Cursa",constellation:"Эридан",magnitude:"2.78",hr:"1666",hip:"23875",hd:"33111"},{name:"Заурак",iau:"Zaurak",constellation:"Эридан",magnitude:"2.97",hr:"1231",hip:"18543",hd:"25025"},{name:"Ран",iau:"Ran",constellation:"Эридан",magnitude:"3.73",hr:"1084",hip:"16537",hd:"22049"},{name:"Зибаль",iau:"Zibal",constellation:"Эридан",magnitude:"4.8",hr:"984",hip:"15197",hd:"20320"},{name:"Азха",iau:"Azha",constellation:"Эридан",magnitude:"3.89",hr:"874",hip:"13701",hd:"18322"},{name:"Акамар",iau:"Acamar",constellation:"Эридан",magnitude:"2.88",hr:"897",hip:"13847",hd:"18622"},{name:"Бейд",iau:"Beid",constellation:"Эридан",magnitude:"4.04",hr:"1298",hip:"19587",hd:"26574"},{name:"Кейд",iau:"Keid",constellation:"Эридан",magnitude:"4.43",hr:"1325",hip:"19849",hd:"26965"},{name:"Ангетенар",iau:"Angetenar",constellation:"Эридан",magnitude:"4.76",hr:"850",hip:"13288",hd:"17824"},{name:"Тееним",iau:"Theemin",constellation:"Эридан",magnitude:"3.81",hr:"1464",hip:"21393",hd:"29291"},{name:"Беемим",iau:"Beemim",constellation:"Эридан",magnitude:"3.97",hr:"1393",hip:"20535",hd:"28028"},{name:"Меридиана",iau:"Meridiana",constellation:"Южная Корона",magnitude:"4.11",hr:"7254",hip:"94114",hd:"178253"},{name:"Фомальгаут",iau:"Fomalhaut",constellation:"Южная Рыба",magnitude:"1.17",hr:"8728",hip:"113368",hd:"216956"},{name:"Акрукс",iau:"Acrux",constellation:"Южный Крест",magnitude:"1.33",hr:"4730",hip:"60718",hd:"108248"},{name:"Мимоза",iau:"Mimosa",constellation:"Южный Крест",magnitude:"1.25",hr:"4853",hip:"62434",hd:"111123"},{name:"Гакрукс",iau:"Gacrux",constellation:"Южный Крест",magnitude:"1.59",hr:"4763",hip:"61084",hd:"108903"},{name:"Гинан",iau:"Ginan",constellation:"Южный Крест",magnitude:"3.59",hr:"4700",hip:"60260",hd:"107446"},{name:"Атрия",iau:"Atria",constellation:"Южный Треугольник",magnitude:"1.91",hr:"6217",hip:"82273",hd:"150798"},{name:"Альруба",iau:"Alruba",constellation:"Дракон",magnitude:"5.75",hr:"6618",hip:"86782",hd:"161693"},{name:"Фелис",iau:"Felis",constellation:"Гидра",magnitude:"4.94",hr:"3923",hip:"48615",hd:"85951"}],i=new List("stars",{valueNames:["name","iau","constellation","magnitude","hr","hip","hd"],item:function(a){return`
<li class="catalog__item card">
<div class="card__title">${a.name}</div>
<ul class="card__list">
<li class="card__item">
<div class="card__caption">Название IAU</div>
<div class="card__text">${a.iau||"Значение не указано"}</div>
</li>
<li class="card__item">
<div class="card__caption">Созвездие</div>
<div class="card__text">${a.constellation||"Значение не указано"}</div>
</li>
<li class="card__item">
<div class="card__caption">Видимая величина</div>
<div class="card__text">${a.magnitude||"Значение не указано"}</div>
</li>
<li class="card__item">
<div class="card__caption">HR</div>
<div class="card__text">${a.hr||"Значение не указано"}</div>
</li>
<li class="card__item">
<div class="card__caption">HIP</div>
<div class="card__text">${a.hip||"Значение не указано"}</div>
</li>
<li class="card__item">
<div class="card__caption">HD</div>
<div class="card__text">${a.hd||"Значение не указано"}</div>
</li>
</ul>
</li>
`}},a),n=document.querySelector(".search"),e=document.querySelector(".search__control"),t=document.querySelector(".search__reset");function h(){""!==e.value.trim()?t.classList.remove("search__reset--hidden"):t.classList.add("search__reset--hidden")}e.addEventListener("input",a=>{let n=a.target.value;i.search(n),h()}),e.addEventListener("keydown",function(a){13===a.keyCode&&a.preventDefault()}),t.addEventListener("click",function(){e.value="",i.search(),h()});const l=document.querySelector('.select[name="constellation"]'),u=[];a.forEach(a=>{u.includes(a.constellation)||u.push(a.constellation)}),// Sort the constellation names alphabetically
u.sort(),// Add the options to the select element
u.forEach(a=>{let i=document.createElement("option");i.value=a,i.textContent=a,l.append(i)}),// Filtering by constellation
l.addEventListener("change",a=>{let n=a.target.value;i.filter(a=>""===n||a.values().constellation===n)});const d=document.querySelector('input[name="min-magnitude"]'),o=document.querySelector('input[name="max-magnitude"]'),m=document.querySelector('input[name="min-hr"]'),r=document.querySelector('input[name="max-hr"]'),s=document.querySelector('input[name="min-hip"]'),c=document.querySelector('input[name="max-hip"]'),p=document.querySelector('input[name="min-hd"]'),g=document.querySelector('input[name="max-hd"]'),v=a.filter(a=>"-"!==a.magnitude&&!isNaN(parseFloat(a.magnitude))).map(a=>parseFloat(a.magnitude)),A=a.filter(a=>"-"!==a.hr&&!isNaN(parseInt(a.hr))).map(a=>parseInt(a.hr)),b=a.filter(a=>"-"!==a.hip&&!isNaN(parseInt(a.hip))).map(a=>parseInt(a.hip)),_=a.filter(a=>"-"!==a.hd&&!isNaN(parseInt(a.hd))).map(a=>parseInt(a.hd)),I=Math.min(...v),S=Math.max(...v),k=Math.min(...A).toString(),y=Math.max(...A).toString(),E=Math.min(...b).toString(),M=Math.max(...b).toString(),N=Math.min(..._).toString(),f=Math.max(..._).toString();// Function to validate and update the input value
function L(a,i,n){// Get the entered value
let e=parseFloat(a.value);e>n&&(a.value=n),e<i&&(a.value=i)}function T(){let a=parseFloat(d.value)||Number.NEGATIVE_INFINITY,n=parseFloat(o.value)||Number.POSITIVE_INFINITY,e=parseFloat(m.value)||Number.NEGATIVE_INFINITY,t=parseFloat(r.value)||Number.POSITIVE_INFINITY,h=parseFloat(s.value)||Number.NEGATIVE_INFINITY,l=parseFloat(c.value)||Number.POSITIVE_INFINITY,u=parseFloat(p.value)||Number.NEGATIVE_INFINITY,v=parseFloat(g.value)||Number.POSITIVE_INFINITY;i.filter(i=>{let d=parseFloat(i.values().magnitude)||0,o=parseFloat(i.values().hr)||0,m=parseFloat(i.values().hip)||0,r=parseFloat(i.values().hd)||0;return d>=a&&d<=n&&o>=e&&o<=t&&m>=h&&m<=l&&r>=u&&r<=v})}// Set the input values
d.value=I,o.value=S,m.value="Infinity"!==k?k:"",r.value="-Infinity"!==y?y:"",s.value="Infinity"!==E?E:"",c.value="-Infinity"!==M?M:"",p.value="Infinity"!==N?N:"",g.value="-Infinity"!==f?f:"",// Add event listeners to the input fields
d.addEventListener("input",()=>{L(d,I,S),T()}),o.addEventListener("input",()=>{L(o,I,S),T()}),m.addEventListener("input",()=>{L(m,parseInt(k),parseInt(y)),T()}),r.addEventListener("input",()=>{L(r,parseInt(k),parseInt(y)),T()}),s.addEventListener("input",()=>{L(s,parseInt(E),parseInt(M)),T()}),c.addEventListener("input",()=>{L(c,parseInt(E),parseInt(M)),T()}),p.addEventListener("input",()=>{L(p,parseInt(N),parseInt(f)),T()}),g.addEventListener("input",()=>{L(g,parseInt(N),parseInt(f)),T()}),// Add event listeners to handle empty inputs
d.addEventListener("blur",()=>{""===d.value&&(d.value=I)}),o.addEventListener("blur",()=>{""===o.value&&(o.value=S)}),m.addEventListener("blur",()=>{""===m.value&&(m.value=k)}),r.addEventListener("blur",()=>{""===r.value&&(r.value=y)}),s.addEventListener("blur",()=>{""===s.value&&(s.value=E)}),c.addEventListener("blur",()=>{""===c.value&&(c.value=M)}),p.addEventListener("blur",()=>{""===p.value&&(p.value=N)}),g.addEventListener("blur",()=>{""===g.value&&(g.value=f)});const F=document.querySelector('.select[name="sort"]');F.addEventListener("change",a=>{let n=a.target.value,e=a.target.options[a.target.selectedIndex].getAttribute("data-sort-dir")||"asc";i.sort(n,{order:e})});const x=document.querySelector(".filter-panel__count-text");function P(){let a=i.matchingItems.length;x.textContent=`Результатов: ${a}`}// Add this line after the starList initialization to update the count initially
P(),// Add these lines inside the event listeners for filtering and sorting
i.on("updated",P);const C=document.querySelector(".catalog__sidebar"),q=document.querySelector(".catalog__sidebar-close"),z=document.querySelector(".catalog__trigger");z&&z.addEventListener("click",()=>C.classList.add("catalog__sidebar--visible")),q&&q.addEventListener("click",()=>C.classList.remove("catalog__sidebar--visible")),document.addEventListener("keydown",a=>{"Escape"===a.key&&C.classList.contains("catalog__sidebar--visible")&&C.classList.remove("catalog__sidebar--visible")});const H=document.querySelector(".filters");document.querySelector(".catalog__list");const B=()=>{let a=window.innerWidth;if(a<=768||!H)return;window.innerHeight;let i=n.offsetHeight;H.style.maxHeight=`calc(100vh - ${i}px - 3 * var(--space-sm))`};B(),window.addEventListener("resize",()=>{B()}),window.addEventListener("scroll",()=>{B()});