<reponame>greythane/qtUC
# # -*- coding: utf-8 -*-
#
# qtUC - pyUC with a QT interface
# Adapted from the original pyUC code modified to use QT5
# <NAME> - VK3VW - <EMAIL>
#
# pyUC ("puck")
# Copyright (C) 2014, 2015, 2016, 2019, 2020, 2021 N4IRR
#
# This software is for use on amateur radio networks only, it is to be used
# for educational purposes only. Its use on commercial networks is strictly
# prohibited.  Permission to use, copy, modify, and/or distribute this software
# hereby granted, provided that the above copyright notice and this permission
# notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND DVSWITCH DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS.  IN NO EVENT SHALL N4IRR BE LIABLE FOR ANY SPECIAL, DIRECT,
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
#
# --------------------------------------------------------------------------- #

UC_VERSION = '1.2.3'
qtUC_VERSION = '1.0'

# USRP packet types
USRP_TYPE_VOICE = 0
USRP_TYPE_DTMF = 1
USRP_TYPE_TEXT = 2
USRP_TYPE_PING = 3
USRP_TYPE_TLV = 4
USRP_TYPE_VOICE_ADPCM = 5
USRP_TYPE_VOICE_ULAW = 6

# TLV tags
TLV_TAG_BEGIN_TX = 0
TLV_TAG_AMBE = 1
TLV_TAG_END_TX = 2
TLV_TAG_TG_TUNE = 3
TLV_TAG_PLAY_AMBE = 4
TLV_TAG_REMOTE_CMD = 5
TLV_TAG_AMBE_49 = 6
TLV_TAG_AMBE_72 = 7
TLV_TAG_SET_INFO = 8
TLV_TAG_IMBE = 9
TLV_TAG_DSAMBE = 10
TLV_TAG_FILE_XFER = 11

# Call prefix to country
CCODES = {
    # PREFIX: [COUNTRY, CQ-ZONE, ITU-ZONE, FLAG]
    # '"UA-UI,8,9, o, RA - RZ", Asiatic Russia', "16, 17, 18, 19", "21, 27, 30, 33"],
    # 'EA6 t.m. EH6, "Balearic Isl. (Mallorca, Ibiza, Menorca)", 14, 37],
    # 'EA8 t.m. EH8, Canary Isl., 33, 36],
    # 'EA9 t.m. EH9, Ceuta & Melilla, 33, 37],

    # 'PP0': ['<NAME>', 11, 13],
    # 'PPo, PYoS", St. Peter & St Paul\'s Rocks', 11, 13],
    # 'UA1': ['European Russia,' 16, "19, 29, 30", 'ru'],
    # 'UA3': ['European Russia,' 16, "19, 29, 30", 'ru'],
    # 'UA4': ['European Russia,' 16, "19, 29, 30", 'ru'],
    # 'UA6': ['European Russia,' 16, "19, 29, 30", 'ru'],
    # 'XA4 t.m. XI4, <NAME>', 6, 10, 'mx'],
    '1A': ['Sov. Mil. Order of Malta', 15, 28, 'mt'],
    '1S': ['Spratly Is', 26, 50, 'ph'],
    '3A': ['Monaco (Monte Carlo)', 14, 27, 'mc'],
    '3B6': ['Agalega & <NAME>', 39, 53, 'mu'],
    '3B7': ['Agalega & St. Brandon', 39, 53, 'mu'],
    '3B8': ['Mauritius', 39, 53, 'mu'],
    '3B9': ['<NAME>', 39, 53, 'mu'],
    '3C': ['Equatorial Guinea', 36, 47, 'gq'],
    '3C0': ['Annobon Is (Pagalu Is)', 36, 52, 'gq'],
    '3D2': ['Fiji Is', 32, 56, 'fj'],
    '3D2C': ['<NAME>', 32, 56, 'fj'],
    '3D2R': ['Rotuma Is', 32, 56, 'fj'],
    '3D6': ['Swaziland', 38, 57, 'sz'],
    '3DA0': ['Swaziland', 38, 57, 'sz'],
    '3E': ['Panama', 7, 11, 'pa'],
    '3F': ['Panama', 7, 11, 'pa'],
    '3G': ['Chile', 7, 11, 'cl'],
    '3H': ['China', "23,24", "42,43,44", 'cn'],
    '3I': ['China', "23,24", "42,43,44", 'cn'],
    '3J': ['China', "23,24", "42,43,44", 'cn'],
    '3K': ['China', "23,24", "42,43,44", 'cn'],
    '3L': ['China', "23,24", "42,43,44", 'cn'],
    '3M': ['China', "23,24", "42,43,44", 'cn'],
    '3N': ['China', "23,24", "42,43,44", 'cn'],
    '3O': ['China', "23,24", "42,43,44", 'cn'],
    '3P': ['China', "23,24", "42,43,44", 'cn'],
    '3Q': ['China', "23,24", "42,43,44", 'cn'],
    '3R': ['China', "23,24", "42,43,44", 'cn'],
    '3S': ['China', "23,24", "42,43,44", 'cn'],
    '3T': ['China', "23,24", "42,43,44", 'cn'],
    '3U': ['China', "23,24", "42,43,44", 'cn'],
    '3V': ['Tunisia', 33, 37, 'tn'],
    '3W': ['Vietnam', 26, 49, 'vn'],
    '3X': ['Guinea', 35, 46, 'gn'],
    '3Y0': ['<NAME>', 12, 72, 'no'],
    '3Y5': ['Bouvet', 38, 67, 'no'],
    '3Z': ['Poland', 15, 28, 'pl'],
    '4A': ['Mexico', 6, 10, 'mx'],
    '4B': ['Mexico', 6, 10, 'mx'],
    '4C': ['Mexico', 6, 10, 'mx'],
    '4D': ['Philippines', 27, 50, 'ph'],
    '4E': ['Philippines', 27, 50, 'ph'],
    '4F': ['Philippines', 27, 50, 'ph'],
    '4G': ['Philippines', 27, 50, 'ph'],
    '4H': ['Philippines', 27, 50, 'ph'],
    '4I': ['Philippines', 27, 50, 'ph'],
    '4J': ['Azerbaidjan', 21, 29, 'az'],
    '4K': ['Azerbaidjan', 21, 29, 'az'],
    '4L': ['Georgia', 21, 29, 'ge'],
    '4M': ['Venezuela', 9, 12, 've'],
    # '4N': ['Yugoslavia', 15, 28, 'si'],       # defunct
    '4O': ['Montenegro', 15, 28, 'me'],
    '4P': ['Srilanka', 22, 41, 'lk'],
    '4Q': ['Srilanka', 22, 41, 'lk'],
    '4R': ['Srilanka', 22, 41, 'lk'],
    '4S': ['Srilanka', 22, 41, 'lk'],
    '4T': ['Peru', 10, 12, 'pe'],
    '4U1ITU': ['<NAME>', 14, 28, 'un'],
    '4U1UN': ['Hq. United Nations', 5, 8, 'un'],
    '4V': ['Haiti', 8, 11, 'ht'],
    '4W': ['<NAME>', 28, 54],
    '4X': ['Israel', 20, 39, 'il'],
    '4Z': ['Israel', 20, 39, 'il'],
    '5A': ['Libya', 34, 38, 'ly'],
    '5B': ['Cyprus', 20, 39, 'cy'],
    '5H': ['Tanzania', 37, 53, 'tz'],
    '5I': ['Tanzania', 37, 53, 'tz'],
    '5J': ['Colombia', 9, 12, 'co'],
    '5K': ['Colombia', 9, 12, 'co'],
    '5L': ['Liberia', 35, 46, 'lr'],
    '5M': ['Liberia', 35, 46, 'lr'],
    '5N': ['Nigeria', 35, 46, 'ng'],
    '5O': ['Nigeria', 35, 46, 'ng'],
    '5P': ['Denmark', 14, 28, 'dk'],
    '5Q': ['Denmark', 14, 28, 'dk'],
    '5R': ['Madagascar', 39, 53, 'mg'],
    '5S': ['Madagascar', 39, 53, 'mg'],
    '5T': ['Mauritania', 35, 46, 'mr'],
    '5U': ['Niger', 35, 46, 'ne'],
    '5V': ['Togo', 35, 46, 'tg'],
    '5W': ['Western Samoa', 32, 62, 'ws'],
    '5X': ['Uganda', 37, 48, 'ug'],
    '5Y': ['Kenya', 37, 48, 'ke'],
    '5Z': ['Kenya', 37, 48, 'ke'],
    '6A': ['Egypt', 34, 38, 'eg'],
    '6B': ['Egypt', 34, 38, 'eg'],
    '6C': ['Syria', 20, 39, 'sy'],
    '6D': ['Mexico', 6, 10, 'mx'],
    '6E': ['Mexico', 6, 10, 'mx'],
    '6F': ['Mexico', 6, 10, 'mx'],
    '6G': ['Mexico', 6, 10, 'mx'],
    '6H': ['Mexico', 6, 10, 'mx'],
    '6I': ['Mexico', 6, 10, 'mx'],
    '6J': ['Mexico', 6, 10, 'mx'],
    '6K': ['South Korea', 25, 44, 'kr'],
    '6L': ['South Korea', 25, 44, 'kr'],
    '6M': ['South Korea', 25, 44, 'kr'],
    '6N': ['South Korea', 25, 44, 'kr'],
    '6O': ['Somalia', 37, 48, 'so'],
    '6P': ['Pakistan', 21, 41, 'pk'],
    '6Q': ['Pakistan', 21, 41, 'pk'],
    '6R': ['Pakistan', 21, 41, 'pk'],
    '6S': ['Pakistan', 21, 41, 'pk'],
    '6T': ['Sudan', 34, 48, 'ss'],
    '6U': ['Sudan', 34, 48, 'ss'],
    '6V': ['Senegal', 35, 46, 'sn'],
    '6W': ['Senegal', 35, 46, 'sn'],
    '6X': ['Madagascar', 39, 53, 'mg'],
    '6Y': ['Jamaica', 8, 11, 'jm'],
    '6Z': ['Liberia', 35, 46, 'lr'],
    '7A': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '7B': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '7C': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '7D': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '7E': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '7F': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '7G': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '7H': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '7I': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '7J': ['Japan', 25, 45, 'jp'],
    '7K': ['Japan', 25, 45, 'jp'],
    '7L': ['Japan', 25, 45, 'jp'],
    '7M': ['Japan', 25, 45, 'jp'],
    '7N': ['Japan', 25, 45, 'jp'],
    '7O': ['People\'s Rep. Of Yemen', 21, 39, 'ye'],
    '7P': ['Lesotho', 38, 57, 'ls'],
    '7Q': ['Malawi', 37, 53, 'mw'],
    '7R': ['Algeria', 33, 37, 'dz'],
    '7S': ['Sweden', 14, 18, 'se'],
    '7T': ['Algeria', 33, 37, 'dz'],
    '7U': ['Algeria', 33, 37, 'dz'],
    '7V': ['Algeria', 33, 37, 'dz'],
    '7W': ['Algeria', 33, 37, 'dz'],
    '7X': ['Algeria', 33, 37, 'dz'],
    '7Y': ['Algeria', 33, 37, 'dz'],
    '7Z': ['Saudi Arabia', 21, 39, 'sa'],
    '8A': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '8B': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '8C': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '8D': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '8E': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '8F': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '8G': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '8H': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '8I': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '8J': ['Japan', 25, 45, 'jp'],
    '8K': ['Japan', 25, 45, 'jp'],
    '8L': ['Japan', 25, 45, 'jp'],
    '8M': ['Japan', 25, 45, 'jp'],
    '8N': ['Japan', 25, 45, 'jp'],
    '8O': ['Botswana', 38, 57, 'bw'],
    '8P': ['Barbados', 8, 11, 'bb'],
    '8Q': ['Maldives', 22, 41, 'mv'],
    '8R': ['Guyana', 9, 12, 'gy'],
    '8S': ['Sweden', 14, 18, 'se'],
    '8T': ['India', 22, 41, 'in'],
    '8U': ['India', 22, 41, 'in'],
    '8V': ['India', 22, 41, 'in'],
    '8W': ['India', 22, 41, 'in'],
    '8X': ['India', 22, 41, 'in'],
    '8Y': ['India', 22, 41, 'in'],
    '8Z': ['Saudi Arabia', 21, 39, 'sa'],
    '9A': ['Croatia', 15, 28, 'hr'],
    '9B': ['Iran', 21, 40, 'ir'],
    '9C': ['Iran', 21, 40, 'ir'],
    '9D': ['Iran', 21, 40, 'ir'],
    '9E': ['Ethiopia', 37, 48, 'et'],
    '9F': ['Ethiopia', 37, 48, 'et'],
    '9G': ['Ghana', 35, 46, 'gh'],
    '9H': ['Malta', 15, 28, 'mt'],
    '9I': ['Zambia', 36, 53, 'zm'],
    '9J': ['Zambia', 36, 53, 'zm'],
    '9K': ['Kuwait', 21, 39, 'kw'],
    '9L': ['Sierra Leone', 35, 46, 'sl'],
    '9M': ['Malaysia', 28, 54, 'my'],
    '9M0': ['Spratly Is', 26, 50, 'ph'],
    '9M2': ['West Malaysia', 28, 54, 'my'],
    '9M4': ['West Malaysia', 28, 54, 'my'],
    '9M6': ['East Malaysia', 28, 54, 'my'],
    '9M8': ['East Malaysia', 28, 54, 'my'],
    '9N': ['Nepal', 22, 42, 'np'],
    '9O': ['Rep. of Congo', 36, 52, 'cg'],
    '9P': ['Rep. of Congo', 36, 52, 'cg'],
    '9Q': ['Rep. of Congo', 36, 52, 'cg'],
    '9R': ['Rep. of Congo', 36, 52, 'cg'],
    '9S': ['Rep. of Congo', 36, 52, 'cg'],
    '9T': ['Rep. of Congo', 36, 52, 'cg'],
    '9U': ['Burundi', 36, 52, 'bi'],
    '9V': ['Singapore', 28, 54, 'sg'],
    '9W': ['Malaysia', 28, 54, 'my'],
    '9X': ['Rwanda', 36, 52, 'rw'],
    '9Y': ['Trinidad & Tobago', 9, 11, 'tt'],
    '9Z': ['Trinidad & Tobago', 9, 11, 'tt'],
    'A2': ['Botswana', 38, 57, 'bw'],
    'A3': ['Tonga Is', 32, 62, 'to'],
    'A4': ['<NAME>', 21, 39, 'om'],
    'A5': ['Bhutan', 22, 41, 'bt'],
    'A6': ['United Arab Emirates', 21, 39, 'ae'],
    'A7': ['Qatar', 21, 39, 'qa'],
    'A8': ['Liberia', 35, 46, 'lr'],
    'A9': ['Bahrain', 21, 39, 'bh'],
    'AA': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'AB': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'AC': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'AD': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'AE': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'AF': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'AG': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'AH': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'AH7': ['Hawaii Is', 31, 61, 'us'],
    'AH7K': ['Kure Is', 31, 61, 'us'],
    'AH8': ['American Samoa', 32, 62, 'as'],
    'AH9': ['Wake Is', 31, 65, 'us'],
    'AI': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'AJ': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'AK': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'AL': ['Alaska', 1, "01, 02", 'us'],
    'AM': ['Spain', 14, 37, 'es'],
    'AN': ['Spain', 14, 37, 'es'],
    'AO': ['Spain', 14, 37, 'es'],
    'AP': ['Pakistan', 21, 41, 'pk'],
    'AQ': ['Pakistan', 21, 41, 'pk'],
    'AR': ['Pakistan', 21, 41, 'pk'],
    'AS': ['Pakistan', 21, 41, 'pk'],
    'AT': ['India', 22, 41, 'in'],
    'AU': ['India', 22, 41, 'in'],
    'AV': ['India', 22, 41, 'in'],
    'AW': ['India', 22, 41, 'in'],
    'AX': ['Australia', "29, 30", "55, 58, 59", 'au'],
    'AY': ['Argentina', 13, "14, 15, 16", 'ar'],
    'AZ': ['Argentina', 13, "14, 15, 16", 'ar'],
    'B': ['China', "23,24", "42,43,44", 'cn'],
    'BS7': ['Scarborough Reef', 27, 50, 'cn'],
    'BV': ['Taiwan', 24, 44, 'tw'],
    'BQ9': ['Pratas', 24, 44, 'tw'],
    'BV9P': ['Pratas', 24, 44, 'tw'],
    'BX': ['China', "23,24", "42,43,44", 'cn'],
    'BY': ['China', "23,24", "42,43,44", 'cn'],
    'BZ': ['China', "23,24", "42,43,44", 'cn'],
    'C2': ['Rep.of Nauru', 31, 65, 'nr'],
    'C3': ['Andorra', 14, 27, 'ad'],
    'C4': ['Cyprus', 20, 39, 'cy'],
    'C5': ['Gambia', 35, 46, 'gm'],
    'C6': ['Bahamas', 8, 11, 'bs'],
    'C8': ['Mozambique', 37, 53, 'mz'],
    'C9': ['Mozambique', 37, 53, 'mz'],
    'CA': ['Chile', 12, "14,15,16", 'cl'],
    'CB': ['Chile', 12, "14,15,16", 'cl'],
    'CC': ['Chile', 12, "14,15,16", 'cl'],
    'CD': ['Chile', 12, "14,15,16", 'cl'],
    'CE': ['Chile', 12, "14,15,16", 'cl'],
    'CE9': ['Antarctica', 13, 73, 'aq'],
    'CE9': ['South Shetland Is', 13, 73, 'gb-sct'],
    'CEO': ['Easter Is\nSan Felix Is\n<NAME> Is', 12, 14, 'cl'],
    'CF': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'CG': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'CH': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'CI': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'CJ': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'CK': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'CL': ['Cuba', 8, 11, 'cu'],
    'CM': ['Cuba', 8, 11, 'cu'],
    'CN': ['Morocco', 33, 37, 'ma'],
    'CO': ['Cuba', 8, 11, 'cu'],
    'CP': ['Bolivia', 12, "12,13,14", 'bo'],
    'CQ': ['Portugal', 14, 37, 'pt'],
    'CR': ['Portugal', 14, 37, 'pt'],
    'CS': ['Portugal', 14, 37, 'pt'],
    'CT': ['Portugal', 14, 37, 'pt'],
    'CT3': ['<NAME>', 33, 36, 'pt'],
    'CU': ['Azores Is', 14, 36, 'pt'],
    'CV': ['Uruguay', 13, 14, 'uy'],
    'CW': ['Uruguay', 13, 14, 'uy'],
    'CX': ['Uruguay', 13, 14, 'uy'],
    'CY9': ['St.Paul Is', 5, 9, 'ca'],
    'CYO': ['Sable Is', 5, 9, 'ca'],
    'D2': ['Angola', 36, 52, 'ao'],
    'D3': ['Angola', 36, 52, 'ao'],
    'D4': ['Rep.of Cape Verde', 35, 46, 'cv'],
    'D5': ['Liberia', 35, 46, 'lr'],
    'D6': ['Comoros', 39, 53, 'km'],
    'D7': ['South Korea', 25, 44, 'kr'],
    'D8': ['South Korea', 25, 44, 'kr'],
    'D9': ['South Korea', 25, 44, 'kr'],
    'DA': ['Germany', 14, 28, 'de'],
    'DB': ['Germany', 14, 28, 'de'],
    'DC': ['Germany', 14, 28, 'de'],
    'DD': ['Germany', 14, 28, 'de'],
    'DE': ['Germany', 14, 28, 'de'],
    'DF': ['Germany', 14, 28, 'de'],
    'DG': ['Germany', 14, 28, 'de'],
    'DH': ['Germany', 14, 28, 'de'],
    'DI': ['Germany', 14, 28, 'de'],
    'DJ': ['Germany', 14, 28, 'de'],
    'DK': ['Germany', 14, 28, 'de'],
    'DL': ['Germany', 14, 28, 'de'],
    'DM': ['Germany', 14, 28, 'de'],
    'DN': ['Germany', 14, 28, 'de'],
    'DO': ['Germany', 14, 28, 'de'],
    'DP': ['Germany', 14, 28, 'de'],
    'DQ': ['Germany', 14, 28, 'de'],
    'DR': ['Germany', 14, 28, 'de'],
    'DS': ['South Korea', 25, 44, 'kr'],
    'DT': ['South Korea', 25, 44, 'kr'],
    'DU': ['Philippines', 27, 50, 'ph'],
    'DV': ['Philippines', 27, 50, 'ph'],
    'DW': ['Philippines', 27, 50, 'ph'],
    'DX': ['Philippines', 27, 50, 'ph'],
    'DY': ['Philippines', 27, 50, 'ph'],
    'DZ': ['Philippines', 27, 50, 'ph'],
    'E2': ['Thailand', 26, 49, 'th'],
    'E3': ['Erythrea', 37, 48, 'er'],
    'E4': ['Palestine', 20, 39, 'ps'],
    'E5': ['Cook Is', 32, 62, 'ck'],
    'E7': ['Bosnia - Herzegovina', 15, 28, 'ba'],
    'EA': ['Spain', 14, 37, 'es'],
    'EB': ['Spain', 14, 37, 'es'],
    'EC': ['Spain', 14, 37, 'es'],
    'ED': ['Spain', 14, 37, 'es'],
    'EF': ['Spain', 14, 37, 'es'],
    'EG': ['Spain', 14, 37, 'es'],
    'EH': ['Spain', 14, 37, 'es'],
    'EI': ['Ireland', 14, 27, 'ie'],
    'EJ': ['Ireland', 14, 27, 'ie'],
    'EK': ['Armenia', 21, 29, 'am'],
    'EL': ['Liberia', 35, 46, 'lr'],
    'EM': ['Ukraine', 16, 29, 'ua'],
    'EM': ['Ukraine', 16, 29, 'ua'],
    'EN': ['Ukraine', 16, 29, 'ua'],
    'EP': ['Iran', 21, 40, 'ir'],
    'EQ': ['Iran', 21, 40, 'ir'],
    'ER': ['Moldova', 16, 29, 'md'],
    'ES': ['Estonia', 15, 29, 'ee'],
    'ET': ['Ethiopia', 37, 48, 'et'],
    'EU': ['Belarus', 16, 29, 'by'],
    'EV': ['Belarus', 16, 29, 'by'],
    'EW': ['Belarus', 16, 29, 'by'],
    'EX': ['Kyrgystan', 17, "30, 31", 'kg'],
    'EY': ['Tajikistan', 17, 30, 'tj'],
    'EZ': ['Turkmenistan', 17, 30, 'tm'],
    'F': ['France', 14, 27, 'fr'],
    'FG': ['Guadeloupe', 8, 11, 'gp'],
    'FH': ['Mayotte', 39, 53, 'yt'],
    'FJ': ['French St. Martin', 8, 11, 'fr'],
    'FK': ['New Caledonia', 32, 56, 'nc'],
    'FM': ['Martinique', 8, 11, 'mq'],
    'FO': ['French Polynesia', 32, 63, 'pf'],
    'FO0': ['Clipperton Isl\nMarquesas\nAustral Isl', 32, 63, 'pf'],
    'FP': ['St. Pierre & Miquelon', 5, 9, 'pm'],
    'FR': [' Reunion', 39, 53, 're'],
    'FR/G': ['Glorioso', 39, 53, 'tf'],
    'FR/J': ['Juan de Nova', 39, 53, 'tf'],
    'FR/T': ['Tromelin', 39, 53, 'tf'],
    'FS': ['French St. Martin', 8, 11, 'fr'],
    'FT8W': ['Crozet Is', 39, 68, 'tf'],
    'FT8X': ['Kerguelen Is', 39, 68, 'tf'],
    'FT8Z': ['Amsterdam & St. Paul Is', 39, 68, 'tf'],
    'FW': ['Wallis & Futuna Is', 32, 62, 'wf'],
    'FX': ['France (Satellite)', 14, 27, 'fr'],
    'FY': ['French Guiana', 9, 12, 'gf'],
    'G': ['England', 14, 27, 'gb-eng'],
    'GB': ['England (Special event)', 14, 27, 'gb-eng'],
    'GC': ['Wales', 14, 27, 'gb-wls'],
    'GD': ['Isle of Man', 14, 27, 'im'],
    'GH': ['Jersey', 14, 27, 'je'],
    'GI': ['Northern Ireland', 14, 27, 'gb-nir'],
    'GJ': ['Jersey', 14, 27, 'je'],
    'GM': ['Scotland', 14, 27, 'gb-sct'],
    'GN': ['Northern Ireland', 14, 27, 'gb-nir'],
    'GP': ['Guernsey & Dep.', 14, 27, 'gg'],
    'GS': ['Scotland', 14, 27, 'gb-sct'],
    'GT': ['Isle of Man', 14, 27, 'im'],
    'GU': ['Guernsey & Dep.', 14, 27, 'gg'],
    'GW': ['Wales', 14, 27, 'gb-wls'],
    'GX': ['England', 14, 27, 'gb-eng'],
    'GZ': ['England (Shetland Is)', 14, 27, 'gb-eng'],
    'H2': ['Cyprus', 20, 39, 'cy'],
    'H3': ['Panama', 7, 11, 'pa'],
    'H4': ['Solomon Is', 28, 51, 'sb'],
    'H40': ['Temotu Province', 32, 51, 'vu'],
    'H6': ['Nicaragua', 7, 11, 'ni'],
    'H7': ['Nicaragua', 7, 11, 'ni'],
    'H8': ['Panama', 7, 11, 'pa'],
    'H9': ['Panama', 7, 11, 'pa'],
    'HA': ['Hungary', 14, 28, 'hu'],
    'HB': ['Switzerland', 14, 28, 'ch'],
    'HB0': ['Liechtenstein', 14, 28, 'li'],
    'HC': ['Ecuador', 10, 12, 'ec'],
    'HC8': ['Galapagos Is', 10, 12, 'ec'],
    'HD': ['Ecuador', 10, 12, 'ec'],
    'HD8': ['Galapagos Is', 10, 12, 'ec'],
    'HF0': ['South Shetland Is', 13, 73, 'pl'],
    'HG': ['Hungary', 14, 28, 'hu'],
    'HH': ['Haiti', 8, 11, 'ht'],
    'HI': ['Dominican Rep.', 8, 11, 'do'],
    'HJ': ['Colombia', 9, 12, 'co'],
    'HK': ['Colombia', 9, 12, 'co'],
    'HK0M': ['Malpelo Is', 9, 12, 'co'],
    'HK0S': ['San Andres & Providencia', 7, 11, 'co'],
    'HL': ['South Korea', 25, 44, 'kr'],
    'HM': ['North Korea', 25, 44, 'kr'],
    'HN': ['Iraq', 21, 39, 'iq'],
    'HO': ['Panama', 7, 11, 'pa'],
    'HP': ['Panama', 7, 11, 'pa'],
    'HQ': ['Honduras', 7, 11, 'hn'],
    'HR': ['Honduras', 7, 11, 'hn'],
    'HS': ['Thailand', 26, 49, 'th'],
    'HT': ['Nicaragua', 7, 11, 'ni'],
    'HU': ['El Salvador', 7, 11, 'sv'],
    'HV': ['Vatican City', 15, 28, 'va'],
    'HW': ['France', 14, 27, 'fr'],
    'HX': ['France', 14, 27, 'fr'],
    'HY': ['France', 14, 27, 'fr'],
    'HZ': ['Saudi Arabia', 21, 39, 'sa'],
    'I': ['Italy', "15,33", "28, 37", 'it'],
    'IA': ['Antarctica (Italy)', "15,33", "28, 37", 'it'],
    'IM0': ['Sardinia', 15, 28, 'it'],
    'IR': ['Antarctica (Italy)', "15,33", "28, 37", 'it'],
    'IS0': ['Sardinia', 15, 28, 'it'],
    'IY': ['Antarctica (Italy)', "15,33", "28, 37", 'it'],
    'J2': ['Djibouti', 37, 48, 'dj'],
    'J3': ['Grenada', 8, 11, 'gd'],
    'J4': ['Greece', 20, 28, 'gr'],
    'J45': ['Dodecanese (Rhodes)', 20, 28, 'gr'],
    'J49': ['Crete', 20, 28, 'gr'],
    'J5': ['<NAME>', 35, 46, 'gw'],
    'J6': ['St. Lucia', 8, 11, 'lc'],
    'J7': ['Dominica', 8, 11, 'dm'],
    'J8': ['St. Vincent', 8, 11, 'vc'],
    'JA': ['Japan', 25, 45, 'jp'],
    'JB': ['Japan', 25, 45, 'jp'],
    'JC': ['Japan', 25, 45, 'jp'],
    'JD': ['Japan', 25, 45, 'jp'],
    'JD1M': ['Min<NAME>', 27, 90, 'jp'],
    'JD1O': ['Ogasawara', 27, 45, 'jp'],
    'JE': ['Japan', 25, 45, 'jp'],
    'JF': ['Japan', 25, 45, 'jp'],
    'JG': ['Japan', 25, 45, 'jp'],
    'JH': ['Japan', 25, 45, 'jp'],
    'JI': ['Japan', 25, 45, 'jp'],
    'JJ': ['Japan', 25, 45, 'jp'],
    'JK': ['Japan', 25, 45, 'jp'],
    'JL': ['Japan', 25, 45, 'jp'],
    'JM': ['Japan', 25, 45, 'jp'],
    'JN': ['Japan', 25, 45, 'jp'],
    'JO': ['Japan', 25, 45, 'jp'],
    'JP': ['Japan', 25, 45, 'jp'],
    'JQ': ['Japan', 25, 45, 'jp'],
    'JR': ['Japan', 25, 45, 'jp'],
    'JS': ['Japan', 25, 45, 'jp'],
    'JT': ['Mongolia', 23, 32, 'mn'],
    'JU': ['Mongolia', 23, 32, 'mn'],
    'JV': ['Mongolia', 23, 32, 'mn'],
    'JW': ['<NAME>', 40, 18, 'sj'],
    'JX': ['<NAME>', 40, 18, 'sj'],
    'JY': ['Jordan', 20, 39, 'jo'],
    'JZ': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    'K': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'KC4': ['Antarctica (USA)', 13, 73, 'aq'],
    'KC6': ['West Caroline Is\nBelau', 27, 64, 'fm'],
    'KG4': ['Guantanamo Bay', 8, 11, 'us'],
    'KH0': ['Mariana Is', 27, 64, 'us'],
    'KH1': ['Baker & Howland Is', 31, 61, 'us'],
    'KH2': ['Guam', 27, 64, 'gu'],
    'KH3': ['Johnston Is', 31, 61, 'us'],
    'KH4': ['Midway Is', 31, 61, 'us'],
    'KH5': ['Palmyra & Jarvis Is', 31, "61, 62", 'us'],
    'KH5K': ['Kingman Reef', 31, 61, 'us'],
    'KH6': ['Hawaii Is', 31, 61, 'us'],
    'KH7': ['Hawaii Is', 31, 61, 'us'],
    'KH7K': ['Kure Is', 31, 61, 'us'],
    'KH8': ['American Samoa', 32, 62, 'as'],
    'KH9': ['Wake Is', 31, 65, 'us'],
    'KL': ['Alaska', 1, "01, 02", 'us'],
    'KP1': ['Navassa Is', 8, 11, 'pr'],
    'KP2': ['Virgin Is', 8, 11, 'pr'],
    'KP3': ['Puerto Rico', 8, 11, 'pr'],
    'KP4': ['Puerto Rico', 8, 11, 'pr'],
    'KP5': ['Desecheo Is', 8, 11, 'pr'],
    'L2': ['Argentina', 13, "14, 15, 16", 'ar'],
    'L3': ['Argentina', 13, "14, 15, 16", 'ar'],
    'L4': ['Argentina', 13, "14, 15, 16", 'ar'],
    'L5': ['Argentina', 13, "14, 15, 16", 'ar'],
    'L6': ['Argentina', 13, "14, 15, 16", 'ar'],
    'L7': ['Argentina', 13, "14, 15, 16", 'ar'],
    'L8': ['Argentina', 13, "14, 15, 16", 'ar'],
    'L9': ['Argentina', 13, "14, 15, 16", 'ar'],
    'LA': ['Norway', 14, 18, 'no'],
    'LB': ['Norway', 14, 18, 'no'],
    'LC': ['Norway', 14, 18, 'no'],
    'LD': ['Norway', 14, 18, 'no'],
    'LE': ['Norway', 14, 18, 'no'],
    'LF': ['Norway', 14, 18, 'no'],
    'LG': ['Norway', 14, 18, 'no'],
    'LH': ['Norway', 14, 18, 'no'],
    'LI': ['Norway', 14, 18, 'no'],
    'LJ': ['Norway', 14, 18, 'no'],
    'LK': ['Norway', 14, 18, 'no'],
    'LL': ['Norway', 14, 18, 'no'],
    'LM': ['Norway', 14, 18, 'no'],
    'LN': ['Norway', 14, 18, 'no'],
    'LO': ['Argentina', 13, "14, 15, 16", 'ar'],
    'LP': ['Argentina', 13, "14, 15, 16", 'ar'],
    'LQ': ['Argentina', 13, "14, 15, 16", 'ar'],
    'LR': ['Argentina', 13, "14, 15, 16", 'ar'],
    'LS': ['Argentina', 13, "14, 15, 16", 'ar'],
    'LT': ['Argentina', 13, "14, 15, 16", 'ar'],
    'LU': ['Argentina', 13, "14, 15, 16", 'ar'],
    'LW': ['Argentina', 13, "14, 15, 16", 'ar'],
    'LX': ['Luxembourg', 14, 27, 'lu'],
    'LY': ['Lithuania', 15, 29, 'lt'],
    'LZ': ['Bulgaria', 20, 28, 'bg'],
    'LZ0': ['Antarctica (Bulgaria)', 20, 28, 'bg'],
    'M': ['England', 14, 27, 'gb-eng'],
    'MC': ['Wales', 14, 27, 'gb-wls'],
    'MD': ['Isle of Man', 14, 27, 'im'],
    'MH': ['Jersey', 14, 27, 'je'],
    'MI': ['Northern Ireland', 14, 27, 'gb-nir'],
    'MJ': ['Jersey', 14, 27, 'je'],
    'MM': ['Scotland', 14, 27, 'gb-sct'],
    'MU': ['Guernsey & Dep.', 14, 27, 'gg'],
    'MW': ['Wales', 14, 27, 'gb-wls'],
    'MX': ['England (Shetland Is)', 14, 27, 'gb-wls'],
    'N': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'NC6': ['<NAME>\nBelau', 27, 64, 'fm'],
    'NH0': ['Mariana Is', 27, 64, 'us'],
    'NH1': ['Baker & Howland Is', 31, 61, 'us'],
    'NH2': ['Guam', 27, 64, 'gu'],
    'NH3': ['Johnston Is', 31, 61, 'us'],
    'NH4': ['Midway Is', 31, 61, 'us'],
    'NH5': ['Palmyra & Jarvis Is', 31, "61, 62", 'us'],
    'NH5K': ['Kingman Reef', 31, 61, 'us'],
    'NH6': ['Hawaii Is', 31, 61, 'us'],
    'NH7': ['Hawaii Is', 31, 61, 'us'],
    'NH7K': ['Kure Is', 31, 61, 'us'],
    'NH8': ['American Samoa', 32, 62, 'as'],
    'NH9': ['Wake Is', 31, 65, 'us'],
    'NL7': ['Alaska', 1, "01, 02", 'us'],
    'NP1': ['Navassa Is', 8, 11, 'pr'],
    'NP2': ['Virgin Is', 8, 11, 'pr'],
    'NP3': ['Puerto Rico', 8, 11, 'pr'],
    'NP4': ['Puerto Rico', 8, 11, 'pr'],
    'NP5': ['Desecheo Is', 8, 11, 'pr'],
    'OA': ['Peru', 10, 12, 'pe'],
    'OB': ['Peru', 10, 12, 'pe'],
    'OC': ['Peru', 10, 12, 'pe'],
    'OD': ['Lebanon', 20, 39, 'lb'],
    'OE': ['Austria', 15, 28, 'at'],
    'OF': ['Finland', 15, 18, 'fi'],
    'OG': ['Finland', 15, 18, 'fi'],
    'OH': ['Finland', 15, 18, 'fi'],
    'OH0': ['Aland Is', 15, 18, 'fi'],
    'OH0M': ['Market Reef', 15, 18, 'fi'],
    'OI': ['Finland', 15, 18, 'fi'],
    'OJ': ['Finland', 15, 18, 'fi'],
    'OJ0': ['Market Reef', 15, 18, 'fi'],
    'OK': ['Czech Republic', 15, 28, 'cz'],
    'OL': ['Czech Republic', 15, 28, 'cz'],
    'OM': ['Slovak Republic', 15, 28],
    'ON': ['Belgium', 14, 27, 'be'],
    'OO': ['Belgium', 14, 27, 'be'],
    'OP': ['Belgium', 14, 27, 'be'],
    'OQ': ['Belgium', 14, 27, 'be'],
    'OR': ['Belgium', 14, 27, 'be'],
    'OS': ['Belgium', 14, 27, 'be'],
    'OT': ['Belgium', 14, 27, 'be'],
    'OU': ['Denmark', 14, 28, 'dk'],
    'OV': ['Denmark', 14, 28, 'dk'],
    'OZ': ['Denmark', 14, 28, 'dk'],
    'OX': ['Greenland', 40, "05, 75", 'gl'],
    'OY': ['Faroe Is', 14, 18, 'fo'],
    'OZ': ['Denmark', 14, 28, 'dk'],
    'P2': ['Papua New Guinea', 28, 51, 'pg'],
    'P3': ['Cyprus', 20, 39, 'cy'],
    'P4': ['Aruba', 9, 11, 'aw'],
    'P5': ['North Korea', 25, 44, 'kp'],
    'P6': ['North Korea', 25, 44, 'kp'],
    'P7': ['North Korea', 25, 44, 'kp'],
    'P8': ['North Korea', 25, 44, 'kp'],
    'P9': ['North Korea', 25, 44, 'kp'],
    'PA': ['The Netherlands', 14, 27, 'nl'],
    'PB': ['The Netherlands', 14, 27, 'nl'],
    'PC': ['The Netherlands', 14, 27, 'nl'],
    'PD': ['The Netherlands', 14, 27, 'nl'],
    'PE': ['The Netherlands', 14, 27, 'nl'],
    'PF': ['The Netherlands', 14, 27, 'nl'],
    'PG': ['The Netherlands', 14, 27, 'nl'],
    'PH': ['The Netherlands', 14, 27, 'nl'],
    'PI': ['The Netherlands', 14, 27, 'nl'],
    'PJ2': ['<NAME>', 9, 11, 'nl'],
    'PJ4': ['<NAME>', 9, 11, 'nl'],
    'PJ5': ['St. Maarten, Saba, St. Eustatius', 8, 11, 'sx'],
    'PJ7': ['St. Maarten, Saba, St. Eustatius', 8, 11, 'sx'],
    'PJ8': ['St. Maarten, Saba, St. Eustatius', 8, 11, 'sx'],
    'PJ9': ['<NAME>', 9, 11, 'nl'],
    'PK': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    'PL': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    'PM': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    'PN': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    'PO': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    'PP': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'PP0': ['Trindade & Martim Vaz. Is', 11, 15, 'br'],
    'PQ': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'PR': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'PS': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'PT': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'PU': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'PV': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'PW': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'PX': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'PY': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'PY0F': ['<NAME>', 11, 13, 'br'],
    'PY0S': ['St. Peter & St Paul\'s Rocks', 11, 13, 'br'],
    'PY0T': ['Trindade & <NAME>. Is', 11, 15, 'br'],
    'PZ': ['Surinam', 9, 12, 'sr'],
    'R1FJ': ['<NAME>', 40, 75, 'ru'],
    'R1MV': ['<NAME>', 16, 29, 'fi'],
    'RA': ['Russia', 16, "19, 29, 30", 'ru'],
    'RB': ['Russia', 16, "19, 29, 30", 'ru'],
    'RC': ['Russia', 16, "19, 29, 30", 'ru'],
    'RD': ['Russia', 16, "19, 29, 30", 'ru'],
    'RE': ['Russia', 16, "19, 29, 30", 'ru'],
    'RF': ['Russia', 16, "19, 29, 30", 'ru'],
    'RG': ['Russia', 16, "19, 29, 30", 'ru'],
    'RH': ['Russia', 16, "19, 29, 30", 'ru'],
    'RI': ['Russia', 16, "19, 29, 30", 'ru'],
    'RJ': ['Russia', 16, "19, 29, 30", 'ru'],
    'RK': ['Russia', 16, "19, 29, 30", 'ru'],
    'RL': ['Russia', 16, "19, 29, 30", 'ru'],
    'RM': ['Russia', 16, "19, 29, 30", 'ru'],
    'RN': ['Russia', 16, "19, 29, 30", 'ru'],
    'RO': ['Russia', 16, "19, 29, 30", 'ru'],
    'RP': ['Russia', 16, "19, 29, 30", 'ru'],
    'RQ': ['Russia', 16, "19, 29, 30", 'ru'],
    'RR': ['Russia', 16, "19, 29, 30", 'ru'],
    'RS': ['Russia', 16, "19, 29, 30", 'ru'],
    'RT': ['Russia', 16, "19, 29, 30", 'ru'],
    'RU': ['Russia', 16, "19, 29, 30", 'ru'],
    'RV': ['Russia', 16, "19, 29, 30", 'ru'],
    'RW': ['Russia', 16, "19, 29, 30", 'ru'],
    'RW2': ['Kaliningrad', 15, 29, 'ru'],
    'RX': ['Russia', 16, "19, 29, 30", 'ru'],
    'RY': ['Russia', 16, "19, 29, 30", 'ru'],
    'RZ': ['Russia', 16, "19, 29, 30", 'ru'],
    'S0': ['Western Sahara', 33, 46, 'eh'],
    'S2': ['Bangladesh', 22, 41, 'bd'],
    'S3': ['Bangladesh', 22, 41, 'bd'],
    'S5': ['Slovenia', 15, 28, 'si'],
    'S6': ['Singapore', 28, 54, 'sg'],
    'S7': ['Seychelles', 39, 53, 'sc'],
    'S8': ['South Africa', 38, 57, 'za'],
    'S9': ['Sao Tome & Principe', 36, 47, 'st'],
    'SA': ['Sweden', 14, 18, 'se'],
    'SB': ['Sweden', 14, 18, 'se'],
    'SC': ['Sweden', 14, 18, 'se'],
    'SD': ['Sweden', 14, 18, 'se'],
    'SE': ['Sweden', 14, 18, 'se'],
    'SF': ['Sweden', 14, 18, 'se'],
    'SG': ['Sweden', 14, 18, 'se'],
    'SH': ['Sweden', 14, 18, 'se'],
    'SI': ['Sweden', 14, 18, 'se'],
    'SJ': ['Sweden', 14, 18, 'se'],
    'SK': ['Sweden', 14, 18, 'se'],
    'SL': ['Sweden', 14, 18, 'se'],
    'SM': ['Sweden', 14, 18, 'se'],
    'SN': ['Poland', 15, 28, 'pl'],
    'SO': ['Poland', 15, 28, 'pl'],
    'SP': ['Poland', 15, 28, 'pl'],
    'SQ': ['Poland', 15, 28, 'pl'],
    'SR': ['Poland', 15, 28, 'pl'],
    'ST': ['Sudan', 34, 48, 'ss'],
    'ST0': ['South Sudan', 34, 48, 'ss'],
    'SU': ['Egypt', 34, 38, 'eg'],
    'SV': ['Greece', 20, 28, 'gr'],
    'SV2A': ['Mount Athos', 20, 28, 'gr'],
    'SV5': ['Dodecanese (Rhodos)', 20, 28, 'gr'],
    'SV9': ['Crete', 20, 28, 'gr'],
    'SY': ['Mount Athos', 20, 28, 'gr'],
    'SZ': ['Greece', 20, 28, 'gr'],
    'T2': ['Tuvalu', 31, 65, 'tv'],
    'T30': ['West Kiribati', 31, 65, 'ki'],
    'T31': ['Cent. Kiribati', 31, 62, 'ki'],
    'T32': ['East Kiribati', 31, "61, 62, 63", 'ki'],
    'T33': ['Banaba Is', 31, 65, 'fi'],
    'T4': ['Cuba', 8, 11, 'cu'],
    'T5': ['Somalia', 37, 48, 'so'],
    'T7': ['San Marino', 15, 28, 'sm'],
    'T8': ['Belau', 27, 64, 'fm'],
    'T9': ['Bosnia - Herzegovina', 15, 28, 'ba'],
    'TA': ['Turkey', 20, 39, 'tr'],
    'TB': ['Turkey', 20, 39, 'tr'],
    'TC': ['Turkey', 20, 39, 'tr'],
    'TD': ['Guatemala', 7, 11, 'gt'],
    'TE': ['Costa Rica', 7, 11, 'cr'],
    'TF': ['Iceland', 40, 17, 'is'],
    'TG': ['Guatemala', 7, 11, 'gt'],
    'TH': ['France', 14, 27, 'fr'],
    'TI': ['Costa Rica', 7, 11, 'cr'],
    'TI9': ['Cocos Is', 7, 11, 'cc'],
    'TJ': ['Cameroon', 36, 47, 'cm'],
    'TK': ['Corsica', 15, 28, 'fr'],
    'TL': ['Centr. African Rep.', 36, 47, 'cf'],
    'TM': ['France', 14, 27, 'fr'],
    'TN': ['Congo', 36, 52, 'cd'],
    'TO': ['France', 14, 27, 'fr'],
    'TO5M': ['St. Pierre & Miquelon', 5, 9, 'pm'],
    'TP': ['France', 14, 27, 'fr'],
    'TQ': ['France', 14, 27, 'fr'],
    'TR': ['Gabon', 36, 52, 'ga'],
    'TS': ['Tunisia', 33, 37, 'tn'],
    'TT': ['Chad', 36, 47, 'td'],
    'TU': ['Ivory Coast', 35, 46, 'ci'],
    'TV': ['France', 14, 27, 'fr'],
    'TW': ['France', 14, 27, 'fr'],
    'TX': ['Chesterfield Islands', 39, 53, 'nc'],
    'TY': ['Benin', 35, 46, 'bj'],
    'TZ': ['Mali', 35, 46, 'ml'],
    'UA': ['Russia', 16, "19, 29, 30", 'ru'],
    'UA2': ['Kaliningrad', 15, 29, 'ru'],
    'UB': ['Russia', 16, "19, 29, 30", 'ru'],
    'UC': ['Russia', 16, "19, 29, 30", 'ru'],
    'UD': ['Russia', 16, "19, 29, 30", 'ru'],
    'UE': ['Russia', 16, "19, 29, 30", 'ru'],
    'UF': ['Russia', 16, "19, 29, 30", 'ru'],
    'UG': ['Russia', 16, "19, 29, 30", 'ru'],
    'UH': ['Russia', 16, "19, 29, 30", 'ru'],
    'UI': ['Russia', 16, "19, 29, 30", 'ru'],
    'UJ': ['Uzbekistan', 17, 30, 'uz'],
    'UK': ['Uzbekistan', 17, 30, 'uz'],
    'UL': ['Uzbekistan', 17, 30, 'uz'],
    'UM': ['Uzbekistan', 17, 30, 'uz'],
    'UN': ['Kazakhstan', 17, "29,30,31", 'kz'],
    'UO': ['Kazakhstan', 17, "29,30,31", 'kz'],
    'UP': ['Kazakhstan', 17, "29,30,31", 'kz'],
    'UQ': ['Kazakhstan', 17, "29,30,31", 'kz'],
    'UR': ['Ukraine', 16, 29, 'ua'],
    'US': ['Ukraine', 16, 29, 'ua'],
    'UT': ['Ukraine', 16, 29, 'ua'],
    'UU': ['Ukraine', 16, 29, 'ua'],
    'UV': ['Ukraine', 16, 29, 'ua'],
    'UW': ['Ukraine', 16, 29, 'ua'],
    'UX': ['Ukraine', 16, 29, 'ua'],
    'UY': ['Ukraine', 16, 29, 'ua'],
    'UZ': ['Ukraine', 16, 29, 'ua'],
    'V2': ['Antigua & Barbuda', 8, 11, 'ag'],
    'V3': ['Belize', 7, 11, 'bz'],
    'V4': ['<NAME>', 8, 11, 'kn'],
    'V5': ['Namibia', 38, 57, 'na'],
    'V6': ['Micronesia', 27, 65, 'fm'],
    'V7': ['<NAME>', 31, 65, 'mh'],
    'V8': ['Brunei', 28, 54, 'bn'],
    'VA': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'VB': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'VC': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'VD': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'VE': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'VF': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'VG': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'VH': ['Australia', "29, 30", "55, 58, 59", 'au'],
    'VI': ['Australia (Special event)', "29, 30", "55, 58, 59", 'au'],
    'VJ': ['Australia', "29, 30", "55, 58, 59", 'au'],
    'VK': ['Australia', "29, 30", "55, 58, 59", 'au'],
    'VK0': ['Antarctica\nHeard Is\nMacquarie Is', 30, 60, 'hm'],
    'VK9C': ['Cocos Keeling Is', 29, 54, 'cc'],
    'VK9L': ['<NAME>', 30, 60, 'au'],
    'VK9M': ['Mellish Reef', 30, 56, 'au'],
    'VK9N': ['Norfolk Is', 32, 60, 'nf'],
    'VK9W': ['<NAME>', 30, 55, 'au'],
    'VK9X': ['<NAME>', 29, 54, 'cx'],
    'VO': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'VP': ['United Kingdom', 14, 27, 'uk'],
    'VQ': ['United Kingdom', 14, 27, 'uk'],
    'VP2E': ['Anguilla', 8, 11, 'ai'],
    'VP2M': ['Montserrat', 8, 11, 'ms'],
    'VP2V': ['Brit. Virgin Is', 8, 11, 'vg'],
    'VP5': ['Turks & Caicos Is', 8, 11, 'tc'],
    'VP6': ['Pitcairn Is', 32, 63, 'pn'],
    'VP8': ['Falkland Is', 13, 16, 'fk'],
    'VP8': ['South Georgia Is\nSouth Orkney Is\nSouth Sandwich Is', 13, 73, 'gs'],
    'VP8': ['South Shetland Is', 13, 73, 'gb-sct'],
    'VP9': ['Bermuda', 5, 11, 'bm'],
    'VQ9': ['Chagos', 39, 41, 'io'],
    'VR2': ['Hong Kong', 24, 44, 'hk'],
    'VS6': ['Hong Kong', 24, 44, 'hk'],
    'VT': ['India', 22, 41, 'in'],
    'VU': ['India', 22, 41, 'in'],
    'VU4': ['Andaman & Nicobar Is', 26, 49, 'in'],
    'VU7': ['Laccadive Is', 22, 41, 'mv'],
    'VV': ['India', 22, 41, 'in'],
    'VW': ['India', 22, 41, 'in'],
    'VX': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'VY': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'W': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'WH0': ['Mariana Is', 27, 64, 'us'],
    'WH1': ['Baker & Howland Is', 31, 61, 'us'],
    'WH2': ['Guam', 27, 64, 'gu'],
    'WH3': ['Johnston Is', 31, 61, 'us'],
    'WH4': ['Midway Is', 31, 61, 'us'],
    'WH5': ['Palmyra & Jarvis Is', 31, "61, 62", 'us'],
    'WH5K': ['Kingman Reef', 31, 61, 'us'],
    'WH6': ['Hawaii Is', 31, 61, 'us'],
    'WH7': ['Hawaii Is', 31, 61, 'us'],
    'WH7K': ['Kure Is', 31, 61, 'us'],
    'WH8': ['American Samoa', 32, 62, 'as'],
    'WH9': ['Wake Is', 31, 65, 'us'],
    'WL': ['Alaska', 1, "01, 02", 'us'],
    'WP1': ['Navassa Is', 8, 11, 'pr'],
    'WP2': ['Virgin Is', 8, 11, 'pr'],
    'WP3': ['Puerto Rico', 8, 11, 'pr'],
    'WP4': ['Puerto Rico', 8, 11, 'pr'],
    'WP5': ['Desecheo Is', 8, 11, 'pr'],
    'XA': ['Mexico', 6, 10, 'mx'],
    'XB': ['Mexico', 6, 10, 'mx'],
    'XC': ['Mexico', 6, 10, 'mx'],
    'XD': ['Mexico', 6, 10, 'mx'],
    'XE': ['Mexico', 6, 10, 'mx'],
    'XF': ['Mexico', 6, 10, 'mx'],
    'XG': ['Mexico', 6, 10, 'mx'],
    'XH': ['Mexico', 6, 10, 'mx'],
    'XI': ['Mexico', 6, 10, 'mx'],
    'XJ': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'XK': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'XL': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'XM': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'XN': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'XO': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'XP': ['Greenland', 40, "05, 75", 'gl'],
    'XQ': ['Chile', 12, "14,15,16", 'cl'],
    'XR': ['Chile', 12, "14,15,16", 'cl'],
    'XS': ['China', "23,24", "42,43,44", 'cn'],
    'XT': ['<NAME>', 35, 46, 'bf'],
    'XU': ['Kampuchea', 26, 49, 'kh'],
    'XV': ['Vietnam', 26, 49, 'vn'],
    'XW': ['Laos', 26, 49, 'la'],
    'XX9': ['Macao', 24, 44, 'mo'],
    'XY': ['Myanmar (Burma)', 26, 49, 'mm'],
    'XZ': ['Myanmar (Burma)', 26, 49, 'mm'],
    'YA': ['Afghanistan', 21, 40],
    'YB': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    'YC': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    'YD': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    'YE': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    'YF': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    'YG': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    'YH': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    'YI': ['Iraq', 21, 39, 'iq'],
    'YJ': ['Vanuatu (New Hebrides)', 32, 56, 'vu'],
    'YK': ['Syria', 20, 39, 'sy'],
    'YL': ['Latvia (Letland)', 15, 29, 'li'],
    'YM': ['Turkey', 20, 39, 'tr'],
    'YN': ['Nicaragua', 7, 11, 'ni'],
    'YO': ['Romania', 20, 28, 'ro'],
    'YP': ['Romania', 20, 28, 'ro'],
    'YQ': ['Romania', 20, 28, 'ro'],
    'YR': ['Romania', 20, 28, 'ro'],
    'YS': ['El Salvador', 7, 11, 'sv'],
    'YT': ['Serbia', 15, 28, 'rs'],
    'YU': ['Serbia', 15, 28, 'rs'],
    'YV': ['Venezuela', 9, 12, 've'],
    'YV0': ['Aves Is', 8, 11, 've'],
    'YW': ['Venezuela', 9, 12, 've'],
    'YX': ['Venezuela', 9, 12, 've'],
    'YY': ['Venezuela', 9, 12, 've'],
    # 'YZ': ['Yugoslavia', 15, 28, 'si'],        # defunct
    'Z2': ['Zimbabwe', 38, 53, 'zw'],
    'Z3': ['Macedonia', 15, 28, 'mk'],
    'Z6': ['Kovoso', 0, 0, 'xk'],
    'ZA': ['Albania', 15, 28, 'al'],
    'ZB': ['United Kingdom', 14, 27, 'uk'],
    'ZB2': ['Gibraltar', 14, 37, 'gi'],
    'ZC': ['United Kingdom', 14, 27, 'uk'],
    'ZC4': ['British Sov. Base on Cyprus', 20, 39, 'cy'],
    'ZD': ['United Kingdom', 14, 27, 'uk'],
    'ZD7': ['St.Helena', 36, 66, 'sh'],
    'ZD8': ['Ascension Is', 36, 66, 'sh'],
    'ZD9': ['Tristan Da Cunha & Gough Is', 38, 66, 'sh'],
    'ZE': ['United Kingdom', 14, 27, 'uk'],
    'ZF': ['Cayman Is', 8, 11, 'ky'],
    'ZG': ['United Kingdom', 14, 27, 'uk'],
    'ZH': ['United Kingdom', 14, 27, 'uk'],
    'ZI': ['United Kingdom', 14, 27, 'uk'],
    'ZJ': ['United Kingdom', 14, 27, 'uk'],
    'ZK': ['New Zealand', 32, 60, 'nz'],
    'ZK1N': ['North Cook Is', 32, 62, 'ck'],
    'ZK1S': ['South Cook Is', 32, 62, 'ck'],
    'ZK2': ['Niue', 32, 62, 'nu'],
    'ZK3': ['Tokelau', 31, 62, 'tk'],
    'ZL': ['New Zealand', 32, 60, 'nz'],
    'ZL7': ['Chatham Is', 32, 60, 'nz'],
    'ZL8': ['Kermadec Is', 32, 60, 'nz'],
    'ZL9': ['Auckland & Campbell Is', 32, 60, 'nz'],
    'ZM': ['New Zealand', 32, 60, 'nz'],
    'ZN': ['United Kingdom', 14, 27, 'uk'],
    'ZO': ['United Kingdom', 14, 27, 'uk'],
    'ZP': ['Paraguay', 11, 14, 'py'],
    'ZQ': ['United Kingdom', 14, 27, 'uk'],
    'ZR': ['South Africa', 38, 57, 'za'],
    'ZS': ['South Africa', 38, 57, 'za'],
    'ZS8': ['Marion & Pr. <NAME>', 38, 57, 'za'],
    'ZT': ['South Africa', 38, 57, 'za'],
    'ZU': ['South Africa', 38, 57, 'za'],
    'ZV': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'ZV0': ['Antarctica (Brazil)', 11, "12, 13, 14 ,15", 'br'],
    'ZW': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'ZX': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'ZX0': ['Antarctica (Brazil)', 11, "12, 13, 14 ,15", 'br'],
    'ZY': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'ZZ': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
}

# # -*- coding: utf-8 -*-
#
# qtUC - pyUC with a QT interface
# Adapted from the original pyUC code modified to use QT5
# <NAME> - VK3VW - <EMAIL>
#
# pyUC ("puck")
# Copyright (C) 2014, 2015, 2016, 2019, 2020, 2021 N4IRR
#
# This software is for use on amateur radio networks only, it is to be used
# for educational purposes only. Its use on commercial networks is strictly
# prohibited.  Permission to use, copy, modify, and/or distribute this software
# hereby granted, provided that the above copyright notice and this permission
# notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND DVSWITCH DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS.  IN NO EVENT SHALL N4IRR BE LIABLE FOR ANY SPECIAL, DIRECT,
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
#
# --------------------------------------------------------------------------- #

UC_VERSION = '1.2.3'
qtUC_VERSION = '1.0'

# USRP packet types
USRP_TYPE_VOICE = 0
USRP_TYPE_DTMF = 1
USRP_TYPE_TEXT = 2
USRP_TYPE_PING = 3
USRP_TYPE_TLV = 4
USRP_TYPE_VOICE_ADPCM = 5
USRP_TYPE_VOICE_ULAW = 6

# TLV tags
TLV_TAG_BEGIN_TX = 0
TLV_TAG_AMBE = 1
TLV_TAG_END_TX = 2
TLV_TAG_TG_TUNE = 3
TLV_TAG_PLAY_AMBE = 4
TLV_TAG_REMOTE_CMD = 5
TLV_TAG_AMBE_49 = 6
TLV_TAG_AMBE_72 = 7
TLV_TAG_SET_INFO = 8
TLV_TAG_IMBE = 9
TLV_TAG_DSAMBE = 10
TLV_TAG_FILE_XFER = 11

# Call prefix to country
CCODES = {
    # PREFIX: [COUNTRY, CQ-ZONE, ITU-ZONE, FLAG]
    # '"UA-UI,8,9, o, RA - RZ", Asiatic Russia', "16, 17, 18, 19", "21, 27, 30, 33"],
    # 'EA6 t.m. EH6, "Balearic Isl. (Mallorca, Ibiza, Menorca)", 14, 37],
    # 'EA8 t.m. EH8, Canary Isl., 33, 36],
    # 'EA9 t.m. EH9, Ceuta & Melilla, 33, 37],

    # 'PP0': ['<NAME>', 11, 13],
    # 'PPo, PYoS", St. Peter & St Paul\'s Rocks', 11, 13],
    # 'UA1': ['European Russia,' 16, "19, 29, 30", 'ru'],
    # 'UA3': ['European Russia,' 16, "19, 29, 30", 'ru'],
    # 'UA4': ['European Russia,' 16, "19, 29, 30", 'ru'],
    # 'UA6': ['European Russia,' 16, "19, 29, 30", 'ru'],
    # 'XA4 t.m. XI4, <NAME>', 6, 10, 'mx'],
    '1A': ['Sov. Mil. Order of Malta', 15, 28, 'mt'],
    '1S': ['Spratly Is', 26, 50, 'ph'],
    '3A': ['Monaco (Monte Carlo)', 14, 27, 'mc'],
    '3B6': ['Agalega & <NAME>', 39, 53, 'mu'],
    '3B7': ['Agalega & St. Brandon', 39, 53, 'mu'],
    '3B8': ['Mauritius', 39, 53, 'mu'],
    '3B9': ['<NAME>', 39, 53, 'mu'],
    '3C': ['Equatorial Guinea', 36, 47, 'gq'],
    '3C0': ['Annobon Is (Pagalu Is)', 36, 52, 'gq'],
    '3D2': ['Fiji Is', 32, 56, 'fj'],
    '3D2C': ['<NAME>', 32, 56, 'fj'],
    '3D2R': ['Rotuma Is', 32, 56, 'fj'],
    '3D6': ['Swaziland', 38, 57, 'sz'],
    '3DA0': ['Swaziland', 38, 57, 'sz'],
    '3E': ['Panama', 7, 11, 'pa'],
    '3F': ['Panama', 7, 11, 'pa'],
    '3G': ['Chile', 7, 11, 'cl'],
    '3H': ['China', "23,24", "42,43,44", 'cn'],
    '3I': ['China', "23,24", "42,43,44", 'cn'],
    '3J': ['China', "23,24", "42,43,44", 'cn'],
    '3K': ['China', "23,24", "42,43,44", 'cn'],
    '3L': ['China', "23,24", "42,43,44", 'cn'],
    '3M': ['China', "23,24", "42,43,44", 'cn'],
    '3N': ['China', "23,24", "42,43,44", 'cn'],
    '3O': ['China', "23,24", "42,43,44", 'cn'],
    '3P': ['China', "23,24", "42,43,44", 'cn'],
    '3Q': ['China', "23,24", "42,43,44", 'cn'],
    '3R': ['China', "23,24", "42,43,44", 'cn'],
    '3S': ['China', "23,24", "42,43,44", 'cn'],
    '3T': ['China', "23,24", "42,43,44", 'cn'],
    '3U': ['China', "23,24", "42,43,44", 'cn'],
    '3V': ['Tunisia', 33, 37, 'tn'],
    '3W': ['Vietnam', 26, 49, 'vn'],
    '3X': ['Guinea', 35, 46, 'gn'],
    '3Y0': ['<NAME>', 12, 72, 'no'],
    '3Y5': ['Bouvet', 38, 67, 'no'],
    '3Z': ['Poland', 15, 28, 'pl'],
    '4A': ['Mexico', 6, 10, 'mx'],
    '4B': ['Mexico', 6, 10, 'mx'],
    '4C': ['Mexico', 6, 10, 'mx'],
    '4D': ['Philippines', 27, 50, 'ph'],
    '4E': ['Philippines', 27, 50, 'ph'],
    '4F': ['Philippines', 27, 50, 'ph'],
    '4G': ['Philippines', 27, 50, 'ph'],
    '4H': ['Philippines', 27, 50, 'ph'],
    '4I': ['Philippines', 27, 50, 'ph'],
    '4J': ['Azerbaidjan', 21, 29, 'az'],
    '4K': ['Azerbaidjan', 21, 29, 'az'],
    '4L': ['Georgia', 21, 29, 'ge'],
    '4M': ['Venezuela', 9, 12, 've'],
    # '4N': ['Yugoslavia', 15, 28, 'si'],       # defunct
    '4O': ['Montenegro', 15, 28, 'me'],
    '4P': ['Srilanka', 22, 41, 'lk'],
    '4Q': ['Srilanka', 22, 41, 'lk'],
    '4R': ['Srilanka', 22, 41, 'lk'],
    '4S': ['Srilanka', 22, 41, 'lk'],
    '4T': ['Peru', 10, 12, 'pe'],
    '4U1ITU': ['<NAME>', 14, 28, 'un'],
    '4U1UN': ['Hq. United Nations', 5, 8, 'un'],
    '4V': ['Haiti', 8, 11, 'ht'],
    '4W': ['<NAME>', 28, 54],
    '4X': ['Israel', 20, 39, 'il'],
    '4Z': ['Israel', 20, 39, 'il'],
    '5A': ['Libya', 34, 38, 'ly'],
    '5B': ['Cyprus', 20, 39, 'cy'],
    '5H': ['Tanzania', 37, 53, 'tz'],
    '5I': ['Tanzania', 37, 53, 'tz'],
    '5J': ['Colombia', 9, 12, 'co'],
    '5K': ['Colombia', 9, 12, 'co'],
    '5L': ['Liberia', 35, 46, 'lr'],
    '5M': ['Liberia', 35, 46, 'lr'],
    '5N': ['Nigeria', 35, 46, 'ng'],
    '5O': ['Nigeria', 35, 46, 'ng'],
    '5P': ['Denmark', 14, 28, 'dk'],
    '5Q': ['Denmark', 14, 28, 'dk'],
    '5R': ['Madagascar', 39, 53, 'mg'],
    '5S': ['Madagascar', 39, 53, 'mg'],
    '5T': ['Mauritania', 35, 46, 'mr'],
    '5U': ['Niger', 35, 46, 'ne'],
    '5V': ['Togo', 35, 46, 'tg'],
    '5W': ['Western Samoa', 32, 62, 'ws'],
    '5X': ['Uganda', 37, 48, 'ug'],
    '5Y': ['Kenya', 37, 48, 'ke'],
    '5Z': ['Kenya', 37, 48, 'ke'],
    '6A': ['Egypt', 34, 38, 'eg'],
    '6B': ['Egypt', 34, 38, 'eg'],
    '6C': ['Syria', 20, 39, 'sy'],
    '6D': ['Mexico', 6, 10, 'mx'],
    '6E': ['Mexico', 6, 10, 'mx'],
    '6F': ['Mexico', 6, 10, 'mx'],
    '6G': ['Mexico', 6, 10, 'mx'],
    '6H': ['Mexico', 6, 10, 'mx'],
    '6I': ['Mexico', 6, 10, 'mx'],
    '6J': ['Mexico', 6, 10, 'mx'],
    '6K': ['South Korea', 25, 44, 'kr'],
    '6L': ['South Korea', 25, 44, 'kr'],
    '6M': ['South Korea', 25, 44, 'kr'],
    '6N': ['South Korea', 25, 44, 'kr'],
    '6O': ['Somalia', 37, 48, 'so'],
    '6P': ['Pakistan', 21, 41, 'pk'],
    '6Q': ['Pakistan', 21, 41, 'pk'],
    '6R': ['Pakistan', 21, 41, 'pk'],
    '6S': ['Pakistan', 21, 41, 'pk'],
    '6T': ['Sudan', 34, 48, 'ss'],
    '6U': ['Sudan', 34, 48, 'ss'],
    '6V': ['Senegal', 35, 46, 'sn'],
    '6W': ['Senegal', 35, 46, 'sn'],
    '6X': ['Madagascar', 39, 53, 'mg'],
    '6Y': ['Jamaica', 8, 11, 'jm'],
    '6Z': ['Liberia', 35, 46, 'lr'],
    '7A': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '7B': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '7C': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '7D': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '7E': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '7F': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '7G': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '7H': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '7I': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '7J': ['Japan', 25, 45, 'jp'],
    '7K': ['Japan', 25, 45, 'jp'],
    '7L': ['Japan', 25, 45, 'jp'],
    '7M': ['Japan', 25, 45, 'jp'],
    '7N': ['Japan', 25, 45, 'jp'],
    '7O': ['People\'s Rep. Of Yemen', 21, 39, 'ye'],
    '7P': ['Lesotho', 38, 57, 'ls'],
    '7Q': ['Malawi', 37, 53, 'mw'],
    '7R': ['Algeria', 33, 37, 'dz'],
    '7S': ['Sweden', 14, 18, 'se'],
    '7T': ['Algeria', 33, 37, 'dz'],
    '7U': ['Algeria', 33, 37, 'dz'],
    '7V': ['Algeria', 33, 37, 'dz'],
    '7W': ['Algeria', 33, 37, 'dz'],
    '7X': ['Algeria', 33, 37, 'dz'],
    '7Y': ['Algeria', 33, 37, 'dz'],
    '7Z': ['Saudi Arabia', 21, 39, 'sa'],
    '8A': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '8B': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '8C': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '8D': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '8E': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '8F': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '8G': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '8H': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '8I': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    '8J': ['Japan', 25, 45, 'jp'],
    '8K': ['Japan', 25, 45, 'jp'],
    '8L': ['Japan', 25, 45, 'jp'],
    '8M': ['Japan', 25, 45, 'jp'],
    '8N': ['Japan', 25, 45, 'jp'],
    '8O': ['Botswana', 38, 57, 'bw'],
    '8P': ['Barbados', 8, 11, 'bb'],
    '8Q': ['Maldives', 22, 41, 'mv'],
    '8R': ['Guyana', 9, 12, 'gy'],
    '8S': ['Sweden', 14, 18, 'se'],
    '8T': ['India', 22, 41, 'in'],
    '8U': ['India', 22, 41, 'in'],
    '8V': ['India', 22, 41, 'in'],
    '8W': ['India', 22, 41, 'in'],
    '8X': ['India', 22, 41, 'in'],
    '8Y': ['India', 22, 41, 'in'],
    '8Z': ['Saudi Arabia', 21, 39, 'sa'],
    '9A': ['Croatia', 15, 28, 'hr'],
    '9B': ['Iran', 21, 40, 'ir'],
    '9C': ['Iran', 21, 40, 'ir'],
    '9D': ['Iran', 21, 40, 'ir'],
    '9E': ['Ethiopia', 37, 48, 'et'],
    '9F': ['Ethiopia', 37, 48, 'et'],
    '9G': ['Ghana', 35, 46, 'gh'],
    '9H': ['Malta', 15, 28, 'mt'],
    '9I': ['Zambia', 36, 53, 'zm'],
    '9J': ['Zambia', 36, 53, 'zm'],
    '9K': ['Kuwait', 21, 39, 'kw'],
    '9L': ['Sierra Leone', 35, 46, 'sl'],
    '9M': ['Malaysia', 28, 54, 'my'],
    '9M0': ['Spratly Is', 26, 50, 'ph'],
    '9M2': ['West Malaysia', 28, 54, 'my'],
    '9M4': ['West Malaysia', 28, 54, 'my'],
    '9M6': ['East Malaysia', 28, 54, 'my'],
    '9M8': ['East Malaysia', 28, 54, 'my'],
    '9N': ['Nepal', 22, 42, 'np'],
    '9O': ['Rep. of Congo', 36, 52, 'cg'],
    '9P': ['Rep. of Congo', 36, 52, 'cg'],
    '9Q': ['Rep. of Congo', 36, 52, 'cg'],
    '9R': ['Rep. of Congo', 36, 52, 'cg'],
    '9S': ['Rep. of Congo', 36, 52, 'cg'],
    '9T': ['Rep. of Congo', 36, 52, 'cg'],
    '9U': ['Burundi', 36, 52, 'bi'],
    '9V': ['Singapore', 28, 54, 'sg'],
    '9W': ['Malaysia', 28, 54, 'my'],
    '9X': ['Rwanda', 36, 52, 'rw'],
    '9Y': ['Trinidad & Tobago', 9, 11, 'tt'],
    '9Z': ['Trinidad & Tobago', 9, 11, 'tt'],
    'A2': ['Botswana', 38, 57, 'bw'],
    'A3': ['Tonga Is', 32, 62, 'to'],
    'A4': ['<NAME>', 21, 39, 'om'],
    'A5': ['Bhutan', 22, 41, 'bt'],
    'A6': ['United Arab Emirates', 21, 39, 'ae'],
    'A7': ['Qatar', 21, 39, 'qa'],
    'A8': ['Liberia', 35, 46, 'lr'],
    'A9': ['Bahrain', 21, 39, 'bh'],
    'AA': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'AB': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'AC': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'AD': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'AE': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'AF': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'AG': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'AH': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'AH7': ['Hawaii Is', 31, 61, 'us'],
    'AH7K': ['Kure Is', 31, 61, 'us'],
    'AH8': ['American Samoa', 32, 62, 'as'],
    'AH9': ['Wake Is', 31, 65, 'us'],
    'AI': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'AJ': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'AK': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'AL': ['Alaska', 1, "01, 02", 'us'],
    'AM': ['Spain', 14, 37, 'es'],
    'AN': ['Spain', 14, 37, 'es'],
    'AO': ['Spain', 14, 37, 'es'],
    'AP': ['Pakistan', 21, 41, 'pk'],
    'AQ': ['Pakistan', 21, 41, 'pk'],
    'AR': ['Pakistan', 21, 41, 'pk'],
    'AS': ['Pakistan', 21, 41, 'pk'],
    'AT': ['India', 22, 41, 'in'],
    'AU': ['India', 22, 41, 'in'],
    'AV': ['India', 22, 41, 'in'],
    'AW': ['India', 22, 41, 'in'],
    'AX': ['Australia', "29, 30", "55, 58, 59", 'au'],
    'AY': ['Argentina', 13, "14, 15, 16", 'ar'],
    'AZ': ['Argentina', 13, "14, 15, 16", 'ar'],
    'B': ['China', "23,24", "42,43,44", 'cn'],
    'BS7': ['Scarborough Reef', 27, 50, 'cn'],
    'BV': ['Taiwan', 24, 44, 'tw'],
    'BQ9': ['Pratas', 24, 44, 'tw'],
    'BV9P': ['Pratas', 24, 44, 'tw'],
    'BX': ['China', "23,24", "42,43,44", 'cn'],
    'BY': ['China', "23,24", "42,43,44", 'cn'],
    'BZ': ['China', "23,24", "42,43,44", 'cn'],
    'C2': ['Rep.of Nauru', 31, 65, 'nr'],
    'C3': ['Andorra', 14, 27, 'ad'],
    'C4': ['Cyprus', 20, 39, 'cy'],
    'C5': ['Gambia', 35, 46, 'gm'],
    'C6': ['Bahamas', 8, 11, 'bs'],
    'C8': ['Mozambique', 37, 53, 'mz'],
    'C9': ['Mozambique', 37, 53, 'mz'],
    'CA': ['Chile', 12, "14,15,16", 'cl'],
    'CB': ['Chile', 12, "14,15,16", 'cl'],
    'CC': ['Chile', 12, "14,15,16", 'cl'],
    'CD': ['Chile', 12, "14,15,16", 'cl'],
    'CE': ['Chile', 12, "14,15,16", 'cl'],
    'CE9': ['Antarctica', 13, 73, 'aq'],
    'CE9': ['South Shetland Is', 13, 73, 'gb-sct'],
    'CEO': ['Easter Is\nSan Felix Is\n<NAME> Is', 12, 14, 'cl'],
    'CF': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'CG': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'CH': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'CI': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'CJ': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'CK': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'CL': ['Cuba', 8, 11, 'cu'],
    'CM': ['Cuba', 8, 11, 'cu'],
    'CN': ['Morocco', 33, 37, 'ma'],
    'CO': ['Cuba', 8, 11, 'cu'],
    'CP': ['Bolivia', 12, "12,13,14", 'bo'],
    'CQ': ['Portugal', 14, 37, 'pt'],
    'CR': ['Portugal', 14, 37, 'pt'],
    'CS': ['Portugal', 14, 37, 'pt'],
    'CT': ['Portugal', 14, 37, 'pt'],
    'CT3': ['<NAME>', 33, 36, 'pt'],
    'CU': ['Azores Is', 14, 36, 'pt'],
    'CV': ['Uruguay', 13, 14, 'uy'],
    'CW': ['Uruguay', 13, 14, 'uy'],
    'CX': ['Uruguay', 13, 14, 'uy'],
    'CY9': ['St.Paul Is', 5, 9, 'ca'],
    'CYO': ['Sable Is', 5, 9, 'ca'],
    'D2': ['Angola', 36, 52, 'ao'],
    'D3': ['Angola', 36, 52, 'ao'],
    'D4': ['Rep.of Cape Verde', 35, 46, 'cv'],
    'D5': ['Liberia', 35, 46, 'lr'],
    'D6': ['Comoros', 39, 53, 'km'],
    'D7': ['South Korea', 25, 44, 'kr'],
    'D8': ['South Korea', 25, 44, 'kr'],
    'D9': ['South Korea', 25, 44, 'kr'],
    'DA': ['Germany', 14, 28, 'de'],
    'DB': ['Germany', 14, 28, 'de'],
    'DC': ['Germany', 14, 28, 'de'],
    'DD': ['Germany', 14, 28, 'de'],
    'DE': ['Germany', 14, 28, 'de'],
    'DF': ['Germany', 14, 28, 'de'],
    'DG': ['Germany', 14, 28, 'de'],
    'DH': ['Germany', 14, 28, 'de'],
    'DI': ['Germany', 14, 28, 'de'],
    'DJ': ['Germany', 14, 28, 'de'],
    'DK': ['Germany', 14, 28, 'de'],
    'DL': ['Germany', 14, 28, 'de'],
    'DM': ['Germany', 14, 28, 'de'],
    'DN': ['Germany', 14, 28, 'de'],
    'DO': ['Germany', 14, 28, 'de'],
    'DP': ['Germany', 14, 28, 'de'],
    'DQ': ['Germany', 14, 28, 'de'],
    'DR': ['Germany', 14, 28, 'de'],
    'DS': ['South Korea', 25, 44, 'kr'],
    'DT': ['South Korea', 25, 44, 'kr'],
    'DU': ['Philippines', 27, 50, 'ph'],
    'DV': ['Philippines', 27, 50, 'ph'],
    'DW': ['Philippines', 27, 50, 'ph'],
    'DX': ['Philippines', 27, 50, 'ph'],
    'DY': ['Philippines', 27, 50, 'ph'],
    'DZ': ['Philippines', 27, 50, 'ph'],
    'E2': ['Thailand', 26, 49, 'th'],
    'E3': ['Erythrea', 37, 48, 'er'],
    'E4': ['Palestine', 20, 39, 'ps'],
    'E5': ['Cook Is', 32, 62, 'ck'],
    'E7': ['Bosnia - Herzegovina', 15, 28, 'ba'],
    'EA': ['Spain', 14, 37, 'es'],
    'EB': ['Spain', 14, 37, 'es'],
    'EC': ['Spain', 14, 37, 'es'],
    'ED': ['Spain', 14, 37, 'es'],
    'EF': ['Spain', 14, 37, 'es'],
    'EG': ['Spain', 14, 37, 'es'],
    'EH': ['Spain', 14, 37, 'es'],
    'EI': ['Ireland', 14, 27, 'ie'],
    'EJ': ['Ireland', 14, 27, 'ie'],
    'EK': ['Armenia', 21, 29, 'am'],
    'EL': ['Liberia', 35, 46, 'lr'],
    'EM': ['Ukraine', 16, 29, 'ua'],
    'EM': ['Ukraine', 16, 29, 'ua'],
    'EN': ['Ukraine', 16, 29, 'ua'],
    'EP': ['Iran', 21, 40, 'ir'],
    'EQ': ['Iran', 21, 40, 'ir'],
    'ER': ['Moldova', 16, 29, 'md'],
    'ES': ['Estonia', 15, 29, 'ee'],
    'ET': ['Ethiopia', 37, 48, 'et'],
    'EU': ['Belarus', 16, 29, 'by'],
    'EV': ['Belarus', 16, 29, 'by'],
    'EW': ['Belarus', 16, 29, 'by'],
    'EX': ['Kyrgystan', 17, "30, 31", 'kg'],
    'EY': ['Tajikistan', 17, 30, 'tj'],
    'EZ': ['Turkmenistan', 17, 30, 'tm'],
    'F': ['France', 14, 27, 'fr'],
    'FG': ['Guadeloupe', 8, 11, 'gp'],
    'FH': ['Mayotte', 39, 53, 'yt'],
    'FJ': ['French St. Martin', 8, 11, 'fr'],
    'FK': ['New Caledonia', 32, 56, 'nc'],
    'FM': ['Martinique', 8, 11, 'mq'],
    'FO': ['French Polynesia', 32, 63, 'pf'],
    'FO0': ['Clipperton Isl\nMarquesas\nAustral Isl', 32, 63, 'pf'],
    'FP': ['St. Pierre & Miquelon', 5, 9, 'pm'],
    'FR': [' Reunion', 39, 53, 're'],
    'FR/G': ['Glorioso', 39, 53, 'tf'],
    'FR/J': ['Juan de Nova', 39, 53, 'tf'],
    'FR/T': ['Tromelin', 39, 53, 'tf'],
    'FS': ['French St. Martin', 8, 11, 'fr'],
    'FT8W': ['Crozet Is', 39, 68, 'tf'],
    'FT8X': ['Kerguelen Is', 39, 68, 'tf'],
    'FT8Z': ['Amsterdam & St. Paul Is', 39, 68, 'tf'],
    'FW': ['Wallis & Futuna Is', 32, 62, 'wf'],
    'FX': ['France (Satellite)', 14, 27, 'fr'],
    'FY': ['French Guiana', 9, 12, 'gf'],
    'G': ['England', 14, 27, 'gb-eng'],
    'GB': ['England (Special event)', 14, 27, 'gb-eng'],
    'GC': ['Wales', 14, 27, 'gb-wls'],
    'GD': ['Isle of Man', 14, 27, 'im'],
    'GH': ['Jersey', 14, 27, 'je'],
    'GI': ['Northern Ireland', 14, 27, 'gb-nir'],
    'GJ': ['Jersey', 14, 27, 'je'],
    'GM': ['Scotland', 14, 27, 'gb-sct'],
    'GN': ['Northern Ireland', 14, 27, 'gb-nir'],
    'GP': ['Guernsey & Dep.', 14, 27, 'gg'],
    'GS': ['Scotland', 14, 27, 'gb-sct'],
    'GT': ['Isle of Man', 14, 27, 'im'],
    'GU': ['Guernsey & Dep.', 14, 27, 'gg'],
    'GW': ['Wales', 14, 27, 'gb-wls'],
    'GX': ['England', 14, 27, 'gb-eng'],
    'GZ': ['England (Shetland Is)', 14, 27, 'gb-eng'],
    'H2': ['Cyprus', 20, 39, 'cy'],
    'H3': ['Panama', 7, 11, 'pa'],
    'H4': ['Solomon Is', 28, 51, 'sb'],
    'H40': ['Temotu Province', 32, 51, 'vu'],
    'H6': ['Nicaragua', 7, 11, 'ni'],
    'H7': ['Nicaragua', 7, 11, 'ni'],
    'H8': ['Panama', 7, 11, 'pa'],
    'H9': ['Panama', 7, 11, 'pa'],
    'HA': ['Hungary', 14, 28, 'hu'],
    'HB': ['Switzerland', 14, 28, 'ch'],
    'HB0': ['Liechtenstein', 14, 28, 'li'],
    'HC': ['Ecuador', 10, 12, 'ec'],
    'HC8': ['Galapagos Is', 10, 12, 'ec'],
    'HD': ['Ecuador', 10, 12, 'ec'],
    'HD8': ['Galapagos Is', 10, 12, 'ec'],
    'HF0': ['South Shetland Is', 13, 73, 'pl'],
    'HG': ['Hungary', 14, 28, 'hu'],
    'HH': ['Haiti', 8, 11, 'ht'],
    'HI': ['Dominican Rep.', 8, 11, 'do'],
    'HJ': ['Colombia', 9, 12, 'co'],
    'HK': ['Colombia', 9, 12, 'co'],
    'HK0M': ['Malpelo Is', 9, 12, 'co'],
    'HK0S': ['San Andres & Providencia', 7, 11, 'co'],
    'HL': ['South Korea', 25, 44, 'kr'],
    'HM': ['North Korea', 25, 44, 'kr'],
    'HN': ['Iraq', 21, 39, 'iq'],
    'HO': ['Panama', 7, 11, 'pa'],
    'HP': ['Panama', 7, 11, 'pa'],
    'HQ': ['Honduras', 7, 11, 'hn'],
    'HR': ['Honduras', 7, 11, 'hn'],
    'HS': ['Thailand', 26, 49, 'th'],
    'HT': ['Nicaragua', 7, 11, 'ni'],
    'HU': ['El Salvador', 7, 11, 'sv'],
    'HV': ['Vatican City', 15, 28, 'va'],
    'HW': ['France', 14, 27, 'fr'],
    'HX': ['France', 14, 27, 'fr'],
    'HY': ['France', 14, 27, 'fr'],
    'HZ': ['Saudi Arabia', 21, 39, 'sa'],
    'I': ['Italy', "15,33", "28, 37", 'it'],
    'IA': ['Antarctica (Italy)', "15,33", "28, 37", 'it'],
    'IM0': ['Sardinia', 15, 28, 'it'],
    'IR': ['Antarctica (Italy)', "15,33", "28, 37", 'it'],
    'IS0': ['Sardinia', 15, 28, 'it'],
    'IY': ['Antarctica (Italy)', "15,33", "28, 37", 'it'],
    'J2': ['Djibouti', 37, 48, 'dj'],
    'J3': ['Grenada', 8, 11, 'gd'],
    'J4': ['Greece', 20, 28, 'gr'],
    'J45': ['Dodecanese (Rhodes)', 20, 28, 'gr'],
    'J49': ['Crete', 20, 28, 'gr'],
    'J5': ['<NAME>', 35, 46, 'gw'],
    'J6': ['St. Lucia', 8, 11, 'lc'],
    'J7': ['Dominica', 8, 11, 'dm'],
    'J8': ['St. Vincent', 8, 11, 'vc'],
    'JA': ['Japan', 25, 45, 'jp'],
    'JB': ['Japan', 25, 45, 'jp'],
    'JC': ['Japan', 25, 45, 'jp'],
    'JD': ['Japan', 25, 45, 'jp'],
    'JD1M': ['Min<NAME>', 27, 90, 'jp'],
    'JD1O': ['Ogasawara', 27, 45, 'jp'],
    'JE': ['Japan', 25, 45, 'jp'],
    'JF': ['Japan', 25, 45, 'jp'],
    'JG': ['Japan', 25, 45, 'jp'],
    'JH': ['Japan', 25, 45, 'jp'],
    'JI': ['Japan', 25, 45, 'jp'],
    'JJ': ['Japan', 25, 45, 'jp'],
    'JK': ['Japan', 25, 45, 'jp'],
    'JL': ['Japan', 25, 45, 'jp'],
    'JM': ['Japan', 25, 45, 'jp'],
    'JN': ['Japan', 25, 45, 'jp'],
    'JO': ['Japan', 25, 45, 'jp'],
    'JP': ['Japan', 25, 45, 'jp'],
    'JQ': ['Japan', 25, 45, 'jp'],
    'JR': ['Japan', 25, 45, 'jp'],
    'JS': ['Japan', 25, 45, 'jp'],
    'JT': ['Mongolia', 23, 32, 'mn'],
    'JU': ['Mongolia', 23, 32, 'mn'],
    'JV': ['Mongolia', 23, 32, 'mn'],
    'JW': ['<NAME>', 40, 18, 'sj'],
    'JX': ['<NAME>', 40, 18, 'sj'],
    'JY': ['Jordan', 20, 39, 'jo'],
    'JZ': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    'K': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'KC4': ['Antarctica (USA)', 13, 73, 'aq'],
    'KC6': ['West Caroline Is\nBelau', 27, 64, 'fm'],
    'KG4': ['Guantanamo Bay', 8, 11, 'us'],
    'KH0': ['Mariana Is', 27, 64, 'us'],
    'KH1': ['Baker & Howland Is', 31, 61, 'us'],
    'KH2': ['Guam', 27, 64, 'gu'],
    'KH3': ['Johnston Is', 31, 61, 'us'],
    'KH4': ['Midway Is', 31, 61, 'us'],
    'KH5': ['Palmyra & Jarvis Is', 31, "61, 62", 'us'],
    'KH5K': ['Kingman Reef', 31, 61, 'us'],
    'KH6': ['Hawaii Is', 31, 61, 'us'],
    'KH7': ['Hawaii Is', 31, 61, 'us'],
    'KH7K': ['Kure Is', 31, 61, 'us'],
    'KH8': ['American Samoa', 32, 62, 'as'],
    'KH9': ['Wake Is', 31, 65, 'us'],
    'KL': ['Alaska', 1, "01, 02", 'us'],
    'KP1': ['Navassa Is', 8, 11, 'pr'],
    'KP2': ['Virgin Is', 8, 11, 'pr'],
    'KP3': ['Puerto Rico', 8, 11, 'pr'],
    'KP4': ['Puerto Rico', 8, 11, 'pr'],
    'KP5': ['Desecheo Is', 8, 11, 'pr'],
    'L2': ['Argentina', 13, "14, 15, 16", 'ar'],
    'L3': ['Argentina', 13, "14, 15, 16", 'ar'],
    'L4': ['Argentina', 13, "14, 15, 16", 'ar'],
    'L5': ['Argentina', 13, "14, 15, 16", 'ar'],
    'L6': ['Argentina', 13, "14, 15, 16", 'ar'],
    'L7': ['Argentina', 13, "14, 15, 16", 'ar'],
    'L8': ['Argentina', 13, "14, 15, 16", 'ar'],
    'L9': ['Argentina', 13, "14, 15, 16", 'ar'],
    'LA': ['Norway', 14, 18, 'no'],
    'LB': ['Norway', 14, 18, 'no'],
    'LC': ['Norway', 14, 18, 'no'],
    'LD': ['Norway', 14, 18, 'no'],
    'LE': ['Norway', 14, 18, 'no'],
    'LF': ['Norway', 14, 18, 'no'],
    'LG': ['Norway', 14, 18, 'no'],
    'LH': ['Norway', 14, 18, 'no'],
    'LI': ['Norway', 14, 18, 'no'],
    'LJ': ['Norway', 14, 18, 'no'],
    'LK': ['Norway', 14, 18, 'no'],
    'LL': ['Norway', 14, 18, 'no'],
    'LM': ['Norway', 14, 18, 'no'],
    'LN': ['Norway', 14, 18, 'no'],
    'LO': ['Argentina', 13, "14, 15, 16", 'ar'],
    'LP': ['Argentina', 13, "14, 15, 16", 'ar'],
    'LQ': ['Argentina', 13, "14, 15, 16", 'ar'],
    'LR': ['Argentina', 13, "14, 15, 16", 'ar'],
    'LS': ['Argentina', 13, "14, 15, 16", 'ar'],
    'LT': ['Argentina', 13, "14, 15, 16", 'ar'],
    'LU': ['Argentina', 13, "14, 15, 16", 'ar'],
    'LW': ['Argentina', 13, "14, 15, 16", 'ar'],
    'LX': ['Luxembourg', 14, 27, 'lu'],
    'LY': ['Lithuania', 15, 29, 'lt'],
    'LZ': ['Bulgaria', 20, 28, 'bg'],
    'LZ0': ['Antarctica (Bulgaria)', 20, 28, 'bg'],
    'M': ['England', 14, 27, 'gb-eng'],
    'MC': ['Wales', 14, 27, 'gb-wls'],
    'MD': ['Isle of Man', 14, 27, 'im'],
    'MH': ['Jersey', 14, 27, 'je'],
    'MI': ['Northern Ireland', 14, 27, 'gb-nir'],
    'MJ': ['Jersey', 14, 27, 'je'],
    'MM': ['Scotland', 14, 27, 'gb-sct'],
    'MU': ['Guernsey & Dep.', 14, 27, 'gg'],
    'MW': ['Wales', 14, 27, 'gb-wls'],
    'MX': ['England (Shetland Is)', 14, 27, 'gb-wls'],
    'N': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'NC6': ['<NAME>\nBelau', 27, 64, 'fm'],
    'NH0': ['Mariana Is', 27, 64, 'us'],
    'NH1': ['Baker & Howland Is', 31, 61, 'us'],
    'NH2': ['Guam', 27, 64, 'gu'],
    'NH3': ['Johnston Is', 31, 61, 'us'],
    'NH4': ['Midway Is', 31, 61, 'us'],
    'NH5': ['Palmyra & Jarvis Is', 31, "61, 62", 'us'],
    'NH5K': ['Kingman Reef', 31, 61, 'us'],
    'NH6': ['Hawaii Is', 31, 61, 'us'],
    'NH7': ['Hawaii Is', 31, 61, 'us'],
    'NH7K': ['Kure Is', 31, 61, 'us'],
    'NH8': ['American Samoa', 32, 62, 'as'],
    'NH9': ['Wake Is', 31, 65, 'us'],
    'NL7': ['Alaska', 1, "01, 02", 'us'],
    'NP1': ['Navassa Is', 8, 11, 'pr'],
    'NP2': ['Virgin Is', 8, 11, 'pr'],
    'NP3': ['Puerto Rico', 8, 11, 'pr'],
    'NP4': ['Puerto Rico', 8, 11, 'pr'],
    'NP5': ['Desecheo Is', 8, 11, 'pr'],
    'OA': ['Peru', 10, 12, 'pe'],
    'OB': ['Peru', 10, 12, 'pe'],
    'OC': ['Peru', 10, 12, 'pe'],
    'OD': ['Lebanon', 20, 39, 'lb'],
    'OE': ['Austria', 15, 28, 'at'],
    'OF': ['Finland', 15, 18, 'fi'],
    'OG': ['Finland', 15, 18, 'fi'],
    'OH': ['Finland', 15, 18, 'fi'],
    'OH0': ['Aland Is', 15, 18, 'fi'],
    'OH0M': ['Market Reef', 15, 18, 'fi'],
    'OI': ['Finland', 15, 18, 'fi'],
    'OJ': ['Finland', 15, 18, 'fi'],
    'OJ0': ['Market Reef', 15, 18, 'fi'],
    'OK': ['Czech Republic', 15, 28, 'cz'],
    'OL': ['Czech Republic', 15, 28, 'cz'],
    'OM': ['Slovak Republic', 15, 28],
    'ON': ['Belgium', 14, 27, 'be'],
    'OO': ['Belgium', 14, 27, 'be'],
    'OP': ['Belgium', 14, 27, 'be'],
    'OQ': ['Belgium', 14, 27, 'be'],
    'OR': ['Belgium', 14, 27, 'be'],
    'OS': ['Belgium', 14, 27, 'be'],
    'OT': ['Belgium', 14, 27, 'be'],
    'OU': ['Denmark', 14, 28, 'dk'],
    'OV': ['Denmark', 14, 28, 'dk'],
    'OZ': ['Denmark', 14, 28, 'dk'],
    'OX': ['Greenland', 40, "05, 75", 'gl'],
    'OY': ['Faroe Is', 14, 18, 'fo'],
    'OZ': ['Denmark', 14, 28, 'dk'],
    'P2': ['Papua New Guinea', 28, 51, 'pg'],
    'P3': ['Cyprus', 20, 39, 'cy'],
    'P4': ['Aruba', 9, 11, 'aw'],
    'P5': ['North Korea', 25, 44, 'kp'],
    'P6': ['North Korea', 25, 44, 'kp'],
    'P7': ['North Korea', 25, 44, 'kp'],
    'P8': ['North Korea', 25, 44, 'kp'],
    'P9': ['North Korea', 25, 44, 'kp'],
    'PA': ['The Netherlands', 14, 27, 'nl'],
    'PB': ['The Netherlands', 14, 27, 'nl'],
    'PC': ['The Netherlands', 14, 27, 'nl'],
    'PD': ['The Netherlands', 14, 27, 'nl'],
    'PE': ['The Netherlands', 14, 27, 'nl'],
    'PF': ['The Netherlands', 14, 27, 'nl'],
    'PG': ['The Netherlands', 14, 27, 'nl'],
    'PH': ['The Netherlands', 14, 27, 'nl'],
    'PI': ['The Netherlands', 14, 27, 'nl'],
    'PJ2': ['<NAME>', 9, 11, 'nl'],
    'PJ4': ['<NAME>', 9, 11, 'nl'],
    'PJ5': ['St. Maarten, Saba, St. Eustatius', 8, 11, 'sx'],
    'PJ7': ['St. Maarten, Saba, St. Eustatius', 8, 11, 'sx'],
    'PJ8': ['St. Maarten, Saba, St. Eustatius', 8, 11, 'sx'],
    'PJ9': ['<NAME>', 9, 11, 'nl'],
    'PK': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    'PL': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    'PM': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    'PN': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    'PO': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    'PP': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'PP0': ['Trindade & Martim Vaz. Is', 11, 15, 'br'],
    'PQ': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'PR': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'PS': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'PT': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'PU': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'PV': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'PW': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'PX': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'PY': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'PY0F': ['<NAME>', 11, 13, 'br'],
    'PY0S': ['St. Peter & St Paul\'s Rocks', 11, 13, 'br'],
    'PY0T': ['Trindade & <NAME>. Is', 11, 15, 'br'],
    'PZ': ['Surinam', 9, 12, 'sr'],
    'R1FJ': ['<NAME>', 40, 75, 'ru'],
    'R1MV': ['<NAME>', 16, 29, 'fi'],
    'RA': ['Russia', 16, "19, 29, 30", 'ru'],
    'RB': ['Russia', 16, "19, 29, 30", 'ru'],
    'RC': ['Russia', 16, "19, 29, 30", 'ru'],
    'RD': ['Russia', 16, "19, 29, 30", 'ru'],
    'RE': ['Russia', 16, "19, 29, 30", 'ru'],
    'RF': ['Russia', 16, "19, 29, 30", 'ru'],
    'RG': ['Russia', 16, "19, 29, 30", 'ru'],
    'RH': ['Russia', 16, "19, 29, 30", 'ru'],
    'RI': ['Russia', 16, "19, 29, 30", 'ru'],
    'RJ': ['Russia', 16, "19, 29, 30", 'ru'],
    'RK': ['Russia', 16, "19, 29, 30", 'ru'],
    'RL': ['Russia', 16, "19, 29, 30", 'ru'],
    'RM': ['Russia', 16, "19, 29, 30", 'ru'],
    'RN': ['Russia', 16, "19, 29, 30", 'ru'],
    'RO': ['Russia', 16, "19, 29, 30", 'ru'],
    'RP': ['Russia', 16, "19, 29, 30", 'ru'],
    'RQ': ['Russia', 16, "19, 29, 30", 'ru'],
    'RR': ['Russia', 16, "19, 29, 30", 'ru'],
    'RS': ['Russia', 16, "19, 29, 30", 'ru'],
    'RT': ['Russia', 16, "19, 29, 30", 'ru'],
    'RU': ['Russia', 16, "19, 29, 30", 'ru'],
    'RV': ['Russia', 16, "19, 29, 30", 'ru'],
    'RW': ['Russia', 16, "19, 29, 30", 'ru'],
    'RW2': ['Kaliningrad', 15, 29, 'ru'],
    'RX': ['Russia', 16, "19, 29, 30", 'ru'],
    'RY': ['Russia', 16, "19, 29, 30", 'ru'],
    'RZ': ['Russia', 16, "19, 29, 30", 'ru'],
    'S0': ['Western Sahara', 33, 46, 'eh'],
    'S2': ['Bangladesh', 22, 41, 'bd'],
    'S3': ['Bangladesh', 22, 41, 'bd'],
    'S5': ['Slovenia', 15, 28, 'si'],
    'S6': ['Singapore', 28, 54, 'sg'],
    'S7': ['Seychelles', 39, 53, 'sc'],
    'S8': ['South Africa', 38, 57, 'za'],
    'S9': ['Sao Tome & Principe', 36, 47, 'st'],
    'SA': ['Sweden', 14, 18, 'se'],
    'SB': ['Sweden', 14, 18, 'se'],
    'SC': ['Sweden', 14, 18, 'se'],
    'SD': ['Sweden', 14, 18, 'se'],
    'SE': ['Sweden', 14, 18, 'se'],
    'SF': ['Sweden', 14, 18, 'se'],
    'SG': ['Sweden', 14, 18, 'se'],
    'SH': ['Sweden', 14, 18, 'se'],
    'SI': ['Sweden', 14, 18, 'se'],
    'SJ': ['Sweden', 14, 18, 'se'],
    'SK': ['Sweden', 14, 18, 'se'],
    'SL': ['Sweden', 14, 18, 'se'],
    'SM': ['Sweden', 14, 18, 'se'],
    'SN': ['Poland', 15, 28, 'pl'],
    'SO': ['Poland', 15, 28, 'pl'],
    'SP': ['Poland', 15, 28, 'pl'],
    'SQ': ['Poland', 15, 28, 'pl'],
    'SR': ['Poland', 15, 28, 'pl'],
    'ST': ['Sudan', 34, 48, 'ss'],
    'ST0': ['South Sudan', 34, 48, 'ss'],
    'SU': ['Egypt', 34, 38, 'eg'],
    'SV': ['Greece', 20, 28, 'gr'],
    'SV2A': ['Mount Athos', 20, 28, 'gr'],
    'SV5': ['Dodecanese (Rhodos)', 20, 28, 'gr'],
    'SV9': ['Crete', 20, 28, 'gr'],
    'SY': ['Mount Athos', 20, 28, 'gr'],
    'SZ': ['Greece', 20, 28, 'gr'],
    'T2': ['Tuvalu', 31, 65, 'tv'],
    'T30': ['West Kiribati', 31, 65, 'ki'],
    'T31': ['Cent. Kiribati', 31, 62, 'ki'],
    'T32': ['East Kiribati', 31, "61, 62, 63", 'ki'],
    'T33': ['Banaba Is', 31, 65, 'fi'],
    'T4': ['Cuba', 8, 11, 'cu'],
    'T5': ['Somalia', 37, 48, 'so'],
    'T7': ['San Marino', 15, 28, 'sm'],
    'T8': ['Belau', 27, 64, 'fm'],
    'T9': ['Bosnia - Herzegovina', 15, 28, 'ba'],
    'TA': ['Turkey', 20, 39, 'tr'],
    'TB': ['Turkey', 20, 39, 'tr'],
    'TC': ['Turkey', 20, 39, 'tr'],
    'TD': ['Guatemala', 7, 11, 'gt'],
    'TE': ['Costa Rica', 7, 11, 'cr'],
    'TF': ['Iceland', 40, 17, 'is'],
    'TG': ['Guatemala', 7, 11, 'gt'],
    'TH': ['France', 14, 27, 'fr'],
    'TI': ['Costa Rica', 7, 11, 'cr'],
    'TI9': ['Cocos Is', 7, 11, 'cc'],
    'TJ': ['Cameroon', 36, 47, 'cm'],
    'TK': ['Corsica', 15, 28, 'fr'],
    'TL': ['Centr. African Rep.', 36, 47, 'cf'],
    'TM': ['France', 14, 27, 'fr'],
    'TN': ['Congo', 36, 52, 'cd'],
    'TO': ['France', 14, 27, 'fr'],
    'TO5M': ['St. Pierre & Miquelon', 5, 9, 'pm'],
    'TP': ['France', 14, 27, 'fr'],
    'TQ': ['France', 14, 27, 'fr'],
    'TR': ['Gabon', 36, 52, 'ga'],
    'TS': ['Tunisia', 33, 37, 'tn'],
    'TT': ['Chad', 36, 47, 'td'],
    'TU': ['Ivory Coast', 35, 46, 'ci'],
    'TV': ['France', 14, 27, 'fr'],
    'TW': ['France', 14, 27, 'fr'],
    'TX': ['Chesterfield Islands', 39, 53, 'nc'],
    'TY': ['Benin', 35, 46, 'bj'],
    'TZ': ['Mali', 35, 46, 'ml'],
    'UA': ['Russia', 16, "19, 29, 30", 'ru'],
    'UA2': ['Kaliningrad', 15, 29, 'ru'],
    'UB': ['Russia', 16, "19, 29, 30", 'ru'],
    'UC': ['Russia', 16, "19, 29, 30", 'ru'],
    'UD': ['Russia', 16, "19, 29, 30", 'ru'],
    'UE': ['Russia', 16, "19, 29, 30", 'ru'],
    'UF': ['Russia', 16, "19, 29, 30", 'ru'],
    'UG': ['Russia', 16, "19, 29, 30", 'ru'],
    'UH': ['Russia', 16, "19, 29, 30", 'ru'],
    'UI': ['Russia', 16, "19, 29, 30", 'ru'],
    'UJ': ['Uzbekistan', 17, 30, 'uz'],
    'UK': ['Uzbekistan', 17, 30, 'uz'],
    'UL': ['Uzbekistan', 17, 30, 'uz'],
    'UM': ['Uzbekistan', 17, 30, 'uz'],
    'UN': ['Kazakhstan', 17, "29,30,31", 'kz'],
    'UO': ['Kazakhstan', 17, "29,30,31", 'kz'],
    'UP': ['Kazakhstan', 17, "29,30,31", 'kz'],
    'UQ': ['Kazakhstan', 17, "29,30,31", 'kz'],
    'UR': ['Ukraine', 16, 29, 'ua'],
    'US': ['Ukraine', 16, 29, 'ua'],
    'UT': ['Ukraine', 16, 29, 'ua'],
    'UU': ['Ukraine', 16, 29, 'ua'],
    'UV': ['Ukraine', 16, 29, 'ua'],
    'UW': ['Ukraine', 16, 29, 'ua'],
    'UX': ['Ukraine', 16, 29, 'ua'],
    'UY': ['Ukraine', 16, 29, 'ua'],
    'UZ': ['Ukraine', 16, 29, 'ua'],
    'V2': ['Antigua & Barbuda', 8, 11, 'ag'],
    'V3': ['Belize', 7, 11, 'bz'],
    'V4': ['<NAME>', 8, 11, 'kn'],
    'V5': ['Namibia', 38, 57, 'na'],
    'V6': ['Micronesia', 27, 65, 'fm'],
    'V7': ['<NAME>', 31, 65, 'mh'],
    'V8': ['Brunei', 28, 54, 'bn'],
    'VA': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'VB': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'VC': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'VD': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'VE': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'VF': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'VG': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'VH': ['Australia', "29, 30", "55, 58, 59", 'au'],
    'VI': ['Australia (Special event)', "29, 30", "55, 58, 59", 'au'],
    'VJ': ['Australia', "29, 30", "55, 58, 59", 'au'],
    'VK': ['Australia', "29, 30", "55, 58, 59", 'au'],
    'VK0': ['Antarctica\nHeard Is\nMacquarie Is', 30, 60, 'hm'],
    'VK9C': ['Cocos Keeling Is', 29, 54, 'cc'],
    'VK9L': ['<NAME>', 30, 60, 'au'],
    'VK9M': ['Mellish Reef', 30, 56, 'au'],
    'VK9N': ['Norfolk Is', 32, 60, 'nf'],
    'VK9W': ['<NAME>', 30, 55, 'au'],
    'VK9X': ['<NAME>', 29, 54, 'cx'],
    'VO': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'VP': ['United Kingdom', 14, 27, 'uk'],
    'VQ': ['United Kingdom', 14, 27, 'uk'],
    'VP2E': ['Anguilla', 8, 11, 'ai'],
    'VP2M': ['Montserrat', 8, 11, 'ms'],
    'VP2V': ['Brit. Virgin Is', 8, 11, 'vg'],
    'VP5': ['Turks & Caicos Is', 8, 11, 'tc'],
    'VP6': ['Pitcairn Is', 32, 63, 'pn'],
    'VP8': ['Falkland Is', 13, 16, 'fk'],
    'VP8': ['South Georgia Is\nSouth Orkney Is\nSouth Sandwich Is', 13, 73, 'gs'],
    'VP8': ['South Shetland Is', 13, 73, 'gb-sct'],
    'VP9': ['Bermuda', 5, 11, 'bm'],
    'VQ9': ['Chagos', 39, 41, 'io'],
    'VR2': ['Hong Kong', 24, 44, 'hk'],
    'VS6': ['Hong Kong', 24, 44, 'hk'],
    'VT': ['India', 22, 41, 'in'],
    'VU': ['India', 22, 41, 'in'],
    'VU4': ['Andaman & Nicobar Is', 26, 49, 'in'],
    'VU7': ['Laccadive Is', 22, 41, 'mv'],
    'VV': ['India', 22, 41, 'in'],
    'VW': ['India', 22, 41, 'in'],
    'VX': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'VY': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'W': ['USA', "3, 4, 5", "6, 7, 8", 'us'],
    'WH0': ['Mariana Is', 27, 64, 'us'],
    'WH1': ['Baker & Howland Is', 31, 61, 'us'],
    'WH2': ['Guam', 27, 64, 'gu'],
    'WH3': ['Johnston Is', 31, 61, 'us'],
    'WH4': ['Midway Is', 31, 61, 'us'],
    'WH5': ['Palmyra & Jarvis Is', 31, "61, 62", 'us'],
    'WH5K': ['Kingman Reef', 31, 61, 'us'],
    'WH6': ['Hawaii Is', 31, 61, 'us'],
    'WH7': ['Hawaii Is', 31, 61, 'us'],
    'WH7K': ['Kure Is', 31, 61, 'us'],
    'WH8': ['American Samoa', 32, 62, 'as'],
    'WH9': ['Wake Is', 31, 65, 'us'],
    'WL': ['Alaska', 1, "01, 02", 'us'],
    'WP1': ['Navassa Is', 8, 11, 'pr'],
    'WP2': ['Virgin Is', 8, 11, 'pr'],
    'WP3': ['Puerto Rico', 8, 11, 'pr'],
    'WP4': ['Puerto Rico', 8, 11, 'pr'],
    'WP5': ['Desecheo Is', 8, 11, 'pr'],
    'XA': ['Mexico', 6, 10, 'mx'],
    'XB': ['Mexico', 6, 10, 'mx'],
    'XC': ['Mexico', 6, 10, 'mx'],
    'XD': ['Mexico', 6, 10, 'mx'],
    'XE': ['Mexico', 6, 10, 'mx'],
    'XF': ['Mexico', 6, 10, 'mx'],
    'XG': ['Mexico', 6, 10, 'mx'],
    'XH': ['Mexico', 6, 10, 'mx'],
    'XI': ['Mexico', 6, 10, 'mx'],
    'XJ': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'XK': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'XL': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'XM': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'XN': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'XO': ['Canada', "01, 02, 03, 04, 05", "02, 03, 04, 05, 06, 07, 08, 09", 'ca'],
    'XP': ['Greenland', 40, "05, 75", 'gl'],
    'XQ': ['Chile', 12, "14,15,16", 'cl'],
    'XR': ['Chile', 12, "14,15,16", 'cl'],
    'XS': ['China', "23,24", "42,43,44", 'cn'],
    'XT': ['<NAME>', 35, 46, 'bf'],
    'XU': ['Kampuchea', 26, 49, 'kh'],
    'XV': ['Vietnam', 26, 49, 'vn'],
    'XW': ['Laos', 26, 49, 'la'],
    'XX9': ['Macao', 24, 44, 'mo'],
    'XY': ['Myanmar (Burma)', 26, 49, 'mm'],
    'XZ': ['Myanmar (Burma)', 26, 49, 'mm'],
    'YA': ['Afghanistan', 21, 40],
    'YB': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    'YC': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    'YD': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    'YE': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    'YF': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    'YG': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    'YH': ['Indonesia', 28, "51, 52, 53,54", 'iq'],
    'YI': ['Iraq', 21, 39, 'iq'],
    'YJ': ['Vanuatu (New Hebrides)', 32, 56, 'vu'],
    'YK': ['Syria', 20, 39, 'sy'],
    'YL': ['Latvia (Letland)', 15, 29, 'li'],
    'YM': ['Turkey', 20, 39, 'tr'],
    'YN': ['Nicaragua', 7, 11, 'ni'],
    'YO': ['Romania', 20, 28, 'ro'],
    'YP': ['Romania', 20, 28, 'ro'],
    'YQ': ['Romania', 20, 28, 'ro'],
    'YR': ['Romania', 20, 28, 'ro'],
    'YS': ['El Salvador', 7, 11, 'sv'],
    'YT': ['Serbia', 15, 28, 'rs'],
    'YU': ['Serbia', 15, 28, 'rs'],
    'YV': ['Venezuela', 9, 12, 've'],
    'YV0': ['Aves Is', 8, 11, 've'],
    'YW': ['Venezuela', 9, 12, 've'],
    'YX': ['Venezuela', 9, 12, 've'],
    'YY': ['Venezuela', 9, 12, 've'],
    # 'YZ': ['Yugoslavia', 15, 28, 'si'],        # defunct
    'Z2': ['Zimbabwe', 38, 53, 'zw'],
    'Z3': ['Macedonia', 15, 28, 'mk'],
    'Z6': ['Kovoso', 0, 0, 'xk'],
    'ZA': ['Albania', 15, 28, 'al'],
    'ZB': ['United Kingdom', 14, 27, 'uk'],
    'ZB2': ['Gibraltar', 14, 37, 'gi'],
    'ZC': ['United Kingdom', 14, 27, 'uk'],
    'ZC4': ['British Sov. Base on Cyprus', 20, 39, 'cy'],
    'ZD': ['United Kingdom', 14, 27, 'uk'],
    'ZD7': ['St.Helena', 36, 66, 'sh'],
    'ZD8': ['Ascension Is', 36, 66, 'sh'],
    'ZD9': ['Tristan Da Cunha & Gough Is', 38, 66, 'sh'],
    'ZE': ['United Kingdom', 14, 27, 'uk'],
    'ZF': ['Cayman Is', 8, 11, 'ky'],
    'ZG': ['United Kingdom', 14, 27, 'uk'],
    'ZH': ['United Kingdom', 14, 27, 'uk'],
    'ZI': ['United Kingdom', 14, 27, 'uk'],
    'ZJ': ['United Kingdom', 14, 27, 'uk'],
    'ZK': ['New Zealand', 32, 60, 'nz'],
    'ZK1N': ['North Cook Is', 32, 62, 'ck'],
    'ZK1S': ['South Cook Is', 32, 62, 'ck'],
    'ZK2': ['Niue', 32, 62, 'nu'],
    'ZK3': ['Tokelau', 31, 62, 'tk'],
    'ZL': ['New Zealand', 32, 60, 'nz'],
    'ZL7': ['Chatham Is', 32, 60, 'nz'],
    'ZL8': ['Kermadec Is', 32, 60, 'nz'],
    'ZL9': ['Auckland & Campbell Is', 32, 60, 'nz'],
    'ZM': ['New Zealand', 32, 60, 'nz'],
    'ZN': ['United Kingdom', 14, 27, 'uk'],
    'ZO': ['United Kingdom', 14, 27, 'uk'],
    'ZP': ['Paraguay', 11, 14, 'py'],
    'ZQ': ['United Kingdom', 14, 27, 'uk'],
    'ZR': ['South Africa', 38, 57, 'za'],
    'ZS': ['South Africa', 38, 57, 'za'],
    'ZS8': ['Marion & Pr. <NAME>', 38, 57, 'za'],
    'ZT': ['South Africa', 38, 57, 'za'],
    'ZU': ['South Africa', 38, 57, 'za'],
    'ZV': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'ZV0': ['Antarctica (Brazil)', 11, "12, 13, 14 ,15", 'br'],
    'ZW': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'ZX': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'ZX0': ['Antarctica (Brazil)', 11, "12, 13, 14 ,15", 'br'],
    'ZY': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
    'ZZ': ['Brazil', 11, "12, 13, 14 ,15", 'br'],
}
# # -*- coding: utf-8 -*- # # qtUC - pyUC with a QT interface # Adapted from the original pyUC code modified to use QT5 # <NAME> - VK3VW - <EMAIL> # # pyUC ("puck") # Copyright (C) 2014, 2015, 2016, 2019, 2020, 2021 N4IRR # # This software is for use on amateur radio networks only, it is to be used # for educational purposes only. Its use on commercial networks is strictly # prohibited.  Permission to use, copy, modify, and/or distribute this software # hereby granted, provided that the above copyright notice and this permission # notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND DVSWITCH DISCLAIMS ALL WARRANTIES WITH # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY # AND FITNESS.  IN NO EVENT SHALL N4IRR BE LIABLE FOR ANY SPECIAL, DIRECT, # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. # # --------------------------------------------------------------------------- # # USRP packet types # TLV tags # Call prefix to country # PREFIX: [COUNTRY, CQ-ZONE, ITU-ZONE, FLAG] # '"UA-UI,8,9, o, RA - RZ", Asiatic Russia', "16, 17, 18, 19", "21, 27, 30, 33"], # 'EA6 t.m. EH6, "Balearic Isl. (Mallorca, Ibiza, Menorca)", 14, 37], # 'EA8 t.m. EH8, Canary Isl., 33, 36], # 'EA9 t.m. EH9, Ceuta & Melilla, 33, 37], # 'PP0': ['<NAME>', 11, 13], # 'PPo, PYoS", St. Peter & St Paul\'s Rocks', 11, 13], # 'UA1': ['European Russia,' 16, "19, 29, 30", 'ru'], # 'UA3': ['European Russia,' 16, "19, 29, 30", 'ru'], # 'UA4': ['European Russia,' 16, "19, 29, 30", 'ru'], # 'UA6': ['European Russia,' 16, "19, 29, 30", 'ru'], # 'XA4 t.m. XI4, <NAME>', 6, 10, 'mx'], # '4N': ['Yugoslavia', 15, 28, 'si'],       # defunct # 'YZ': ['Yugoslavia', 15, 28, 'si'],        # defunct