@ingestro/importer-react 4.9.3 → 4.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{chunk-F2V7OQWG.js → chunk-ET4YM2J3.js} +1 -1
- package/chunk-FJK35UW2.js +1 -0
- package/{chunk-FVCICCC3.js → chunk-LROANN4K.js} +48 -48
- package/chunk-YNRGLIVA.js +1 -0
- package/index.d.ts +87 -2
- package/index.js +729 -701
- package/package.json +1 -1
- package/workers/matchValues/index.js +1 -1
- package/workers/parseData/index.js +1 -1
- package/workers/searchAndReplace/index.js +1 -1
- package/chunk-FRFILSYE.js +0 -1
- package/chunk-NPXJPUQJ.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as N,h as E,i as p,m,r as B}from"./chunk-FRFILSYE.js";import{isNil as W}from"lodash";var P=[{label:"AFN",value:"AFN",type:"string",alternativeMatches:["Af","Afghanistan"]},{label:"ARS",value:"ARS",type:"string",alternativeMatches:["AR$","Argentina"]},{label:"AWG",value:"AWG",type:"string",alternativeMatches:["Aruba"]},{label:"AUD",value:"AUD",type:"string",alternativeMatches:["AU$","Australia"]},{label:"AZN",value:"AZN",type:"string",alternativeMatches:["man.","Azerbaijan"]},{label:"BSD",value:"BSD",type:"string",alternativeMatches:["Bahamas"]},{label:"BBD",value:"BBD",type:"string",alternativeMatches:["Barbados"]},{label:"BYN",value:"BYN",type:"string",alternativeMatches:["Br"]},{label:"BZD",value:"BZD",type:"string",alternativeMatches:["BZ$","Belize"]},{label:"BMD",value:"BMD",type:"string",alternativeMatches:["Bermuda"]},{label:"BOB",value:"BOB",type:"string",alternativeMatches:["Bs","Bolivia"]},{label:"BAM",value:"BAM",type:"string",alternativeMatches:["KM","Bosnia and Herzegovina"]},{label:"BWP",value:"BWP",type:"string",alternativeMatches:["BWP","Botswana"]},{label:"BGN",value:"BGN",type:"string",alternativeMatches:["BGN","Bulgaria"]},{label:"BRL",value:"BRL",type:"string",alternativeMatches:["R$","Brazil"]},{label:"BND",value:"BND",type:"string",alternativeMatches:["BN$","Brunei"]},{label:"KHR",value:"KHR",type:"string",alternativeMatches:["KHR","Cambodia"]},{label:"CAD",value:"CAD",type:"string",alternativeMatches:["CA$","Canada"]},{label:"KYD",value:"KYD",type:"string",alternativeMatches:["Cayman Islands"]},{label:"CLP",value:"CLP",type:"string",alternativeMatches:["CL$","Chile"]},{label:"CNY",value:"CNY",type:"string",alternativeMatches:["CN\xA5","China"]},{label:"COP",value:"COP",type:"string",alternativeMatches:["CO$","Colombia"]},{label:"CRC",value:"CRC",type:"string",alternativeMatches:["\u20A1","Costa Rica"]},{label:"HRK",value:"HRK",type:"string",alternativeMatches:["kn","Croatia"]},{label:"CUP",value:"CUP",type:"string",alternativeMatches:["Cuba"]},{label:"CZK",value:"CZK",type:"string",alternativeMatches:["K\u010D","Czech Republic"]},{label:"DKK",value:"DKK",type:"string",alternativeMatches:["Dkr","Denmark"]},{label:"DOP",value:"DOP",type:"string",alternativeMatches:["RD$","Dominican Republic"]},{label:"XCD",value:"XCD",type:"string",alternativeMatches:["Anguilla"]},{label:"EGP",value:"EGP",type:"string",alternativeMatches:["EGP","Egypt"]},{label:"SVC",value:"SVC",type:"string",alternativeMatches:["El Salvador"]},{label:"EUR",value:"EUR",type:"string",alternativeMatches:["\u20AC","Germany"]},{label:"FKP",value:"FKP",type:"string",alternativeMatches:["Falkland Islands"]},{label:"FJD",value:"FJD",type:"string",alternativeMatches:["Fiji Islands"]},{label:"GHS",value:"GHS",type:"string",alternativeMatches:["GH\u20B5","Ghana"]},{label:"GIP",value:"GIP",type:"string",alternativeMatches:["Gibraltar"]},{label:"GTQ",value:"GTQ",type:"string",alternativeMatches:["GTQ"]},{label:"GGP",value:"GGP",type:"string",alternativeMatches:[]},{label:"GYD",value:"GYD",type:"string",alternativeMatches:["Guyana"]},{label:"HNL",value:"HNL",type:"string",alternativeMatches:["HNL","Honduras"]},{label:"HKD",value:"HKD",type:"string",alternativeMatches:["HK$","Hong Kong"]},{label:"HUF",value:"HUF",type:"string",alternativeMatches:["Ft","Hungary"]},{label:"ISK",value:"ISK",type:"string",alternativeMatches:["Ikr","Iceland"]},{label:"INR",value:"INR",type:"string",alternativeMatches:["\u20B9","India"]},{label:"IDR",value:"IDR",type:"string",alternativeMatches:["Rp","Indonesia"]},{label:"IRR",value:"IRR",type:"string",alternativeMatches:["IRR","Iran"]},{label:"IMP",value:"IMP",type:"string",alternativeMatches:[]},{label:"ILS",value:"ILS",type:"string",alternativeMatches:["\u20AA","Israel"]},{label:"JMD",value:"JMD",type:"string",alternativeMatches:["J$","Jamaica"]},{label:"JPY",value:"JPY",type:"string",alternativeMatches:["\xA5","Japan"]},{label:"JEP",value:"JEP",type:"string",alternativeMatches:[]},{label:"KZT",value:"KZT",type:"string",alternativeMatches:["KZT","Kazakhstan"]},{label:"KPW",value:"KPW",type:"string",alternativeMatches:["North Korea"]},{label:"KRW",value:"KRW",type:"string",alternativeMatches:["\u20A9","South Korea"]},{label:"KGS",value:"KGS",type:"string",alternativeMatches:["Kyrgyzstan"]},{label:"LAK",value:"LAK",type:"string",alternativeMatches:["Laos"]},{label:"LBP",value:"LBP",type:"string",alternativeMatches:["L.L.","Lebanon"]},{label:"LRD",value:"LRD",type:"string",alternativeMatches:["Liberia"]},{label:"MKD",value:"MKD",type:"string",alternativeMatches:["MKD","North Macedonia"]},{label:"MYR",value:"MYR",type:"string",alternativeMatches:["RM","Malaysia"]},{label:"MUR",value:"MUR",type:"string",alternativeMatches:["MURs","Mauritius"]},{label:"MXN",value:"MXN",type:"string",alternativeMatches:["MX$","Mexico"]},{label:"MNT",value:"MNT",type:"string",alternativeMatches:["Mongolia"]},{label:"MZN",value:"MZN",type:"string",alternativeMatches:["MTn","Mozambique"]},{label:"NAD",value:"NAD",type:"string",alternativeMatches:["N$","Namibia"]},{label:"NPR",value:"NPR",type:"string",alternativeMatches:["NPRs","Nepal"]},{label:"ANG",value:"ANG",type:"string",alternativeMatches:["Netherlands Antilles"]},{label:"NZD",value:"NZD",type:"string",alternativeMatches:["NZ$","Cook Islands"]},{label:"NIO",value:"NIO",type:"string",alternativeMatches:["C$","Nicaragua"]},{label:"NGN",value:"NGN",type:"string",alternativeMatches:["\u20A6","Nigeria"]},{label:"NOK",value:"NOK",type:"string",alternativeMatches:["Nkr","Bouvet Island"]},{label:"OMR",value:"OMR",type:"string",alternativeMatches:["OMR","Oman"]},{label:"PKR",value:"PKR",type:"string",alternativeMatches:["PKRs","Pakistan"]},{label:"PAB",value:"PAB",type:"string",alternativeMatches:["B/.","Panama"]},{label:"PYG",value:"PYG",type:"string",alternativeMatches:["\u20B2","Paraguay"]},{label:"PEN",value:"PEN",type:"string",alternativeMatches:["S/.","Peru"]},{label:"PHP",value:"PHP",type:"string",alternativeMatches:["\u20B1","Philippines"]},{label:"PLN",value:"PLN",type:"string",alternativeMatches:["z\u0142","Poland"]},{label:"QAR",value:"QAR",type:"string",alternativeMatches:["QR","Qatar"]},{label:"RON",value:"RON",type:"string",alternativeMatches:["RON","Romania"]},{label:"RUB",value:"RUB",type:"string",alternativeMatches:["RUB","Russian Federation"]},{label:"SHP",value:"SHP",type:"string",alternativeMatches:["Saint Helena"]},{label:"SAR",value:"SAR",type:"string",alternativeMatches:["SR","Saudi Arabia"]},{label:"RSD",value:"RSD",type:"string",alternativeMatches:["din.","Serbia"]},{label:"SCR",value:"SCR",type:"string",alternativeMatches:["Seychelles"]},{label:"SGD",value:"SGD",type:"string",alternativeMatches:["S$","Singapore"]},{label:"SBD",value:"SBD",type:"string",alternativeMatches:["Solomon Islands"]},{label:"SOS",value:"SOS",type:"string",alternativeMatches:["Ssh","Somalia"]},{label:"ZAR",value:"ZAR",type:"string",alternativeMatches:["R","South Africa"]},{label:"LKR",value:"LKR",type:"string",alternativeMatches:["SLRs","Sri Lanka"]},{label:"SEK",value:"SEK",type:"string",alternativeMatches:["Skr","Sweden"]},{label:"CHF",value:"CHF",type:"string",alternativeMatches:["CHF","Liechtenstein"]},{label:"SRD",value:"SRD",type:"string",alternativeMatches:["Suriname"]},{label:"SYP",value:"SYP",type:"string",alternativeMatches:["SY\xA3","Syria"]},{label:"TWD",value:"TWD",type:"string",alternativeMatches:["NT$"]},{label:"THB",value:"THB",type:"string",alternativeMatches:["\u0E3F","Thailand"]},{label:"TTD",value:"TTD",type:"string",alternativeMatches:["TT$","Trinidad and Tobago"]},{label:"TRY",value:"TRY",type:"string",alternativeMatches:["TL","Turkey"]},{label:"TVD",value:"TVD",type:"string",alternativeMatches:[]},{label:"UAH",value:"UAH",type:"string",alternativeMatches:["\u20B4","Ukraine"]},{label:"GBP",value:"GBP",type:"string",alternativeMatches:["\xA3","England"]},{label:"USD",value:"USD",type:"string",alternativeMatches:["$","USA"]},{label:"UYU",value:"UYU",type:"string",alternativeMatches:["$U","Uruguay"]},{label:"UZS",value:"UZS",type:"string",alternativeMatches:["UZS","Uzbekistan"]},{label:"VEF",value:"VEF",type:"string",alternativeMatches:["Bs.F.","Venezuela"]},{label:"VND",value:"VND",type:"string",alternativeMatches:["\u20AB","Vietnam"]},{label:"YER",value:"YER",type:"string",alternativeMatches:["YR","Yemen"]},{label:"ZWD",value:"ZWD",type:"string",alternativeMatches:["Zimbabwe"]},{label:"XOF",value:"XOF",type:"string",alternativeMatches:["CFA Franc","West Africa"]},{label:"BDT",value:"BDT",type:"string",alternativeMatches:["\u09F3","Bangladesh"]},{label:"UGX",value:"UGX",type:"string",alternativeMatches:["USh","Uganda"]},{label:"KES",value:"KES",type:"string",alternativeMatches:["KSh","Kenya"]},{label:"LSL",value:"LSL",type:"string",alternativeMatches:["Loti","Lesotho"]},{label:"MWK",value:"MWK",type:"string",alternativeMatches:["K","Malawi"]},{label:"TZS",value:"TZS",type:"string",alternativeMatches:["TSh","Tanzania"]},{label:"ETB",value:"ETB",type:"string",alternativeMatches:["Br","Ethiopia"]},{label:"VEB",value:"VEB",type:"string",alternativeMatches:["Bs","Venezuela"]},{label:"XAF",value:"XAF",type:"string",alternativeMatches:["CFA Franc","Central Africa"]}],D=[{value:"AF",label:"AF",type:"string",alternativeMatches:["Afghanistan"]},{value:"AX",label:"AX",type:"string",alternativeMatches:["\xC5land Islands"]},{value:"AL",label:"AL",type:"string",alternativeMatches:["Albania"]},{value:"DZ",label:"DZ",type:"string",alternativeMatches:["Algeria"]},{value:"AS",label:"AS",type:"string",alternativeMatches:["American Samoa"]},{value:"AD",label:"AD",type:"string",alternativeMatches:["Andorra"]},{value:"AO",label:"AO",type:"string",alternativeMatches:["Angola"]},{value:"AI",label:"AI",type:"string",alternativeMatches:["Anguilla"]},{value:"AQ",label:"AQ",type:"string",alternativeMatches:["Antarctica"]},{value:"AG",label:"AG",type:"string",alternativeMatches:["Antigua and Barbuda","Antigua","Barbuda"]},{value:"AR",label:"AR",type:"string",alternativeMatches:["Argentina"]},{value:"AM",label:"AM",type:"string",alternativeMatches:["Armenia"]},{value:"AW",label:"AW",type:"string",alternativeMatches:["Aruba"]},{value:"AU",label:"AU",type:"string",alternativeMatches:["Australia"]},{value:"AT",label:"AT",type:"string",alternativeMatches:["Austria"]},{value:"AZ",label:"AZ",type:"string",alternativeMatches:["Azerbaijan"]},{value:"BS",label:"BS",type:"string",alternativeMatches:["Bahamas"]},{value:"BH",label:"BH",type:"string",alternativeMatches:["Bahrain"]},{value:"BD",label:"BD",type:"string",alternativeMatches:["Bangladesh"]},{value:"BB",label:"BB",type:"string",alternativeMatches:["Barbados"]},{value:"BY",label:"BY",type:"string",alternativeMatches:["Belarus"]},{value:"BE",label:"BE",type:"string",alternativeMatches:["Belgium"]},{value:"BZ",label:"BZ",type:"string",alternativeMatches:["Belize"]},{value:"BJ",label:"BJ",type:"string",alternativeMatches:["Benin"]},{value:"BM",label:"BM",type:"string",alternativeMatches:["Bermuda"]},{value:"BT",label:"BT",type:"string",alternativeMatches:["Bhutan"]},{value:"BO",label:"BO",type:"string",alternativeMatches:["Bolivia (Plurinational State of)","Bolivia"]},{value:"BQ",label:"BQ",type:"string",alternativeMatches:["Bonaire, Sint Eustatius and Saba"]},{value:"BA",label:"BA",type:"string",alternativeMatches:["Bosnia and Herzegovina"]},{value:"BW",label:"BW",type:"string",alternativeMatches:["Botswana"]},{value:"BV",label:"BV",type:"string",alternativeMatches:["Bouvet Island"]},{value:"BR",label:"BR",type:"string",alternativeMatches:["Brazil"]},{value:"IO",label:"IO",type:"string",alternativeMatches:["British Indian Ocean Territory"]},{value:"BN",label:"BN",type:"string",alternativeMatches:["Brunei Darussalam"]},{value:"BG",label:"BG",type:"string",alternativeMatches:["Bulgaria"]},{value:"BF",label:"BF",type:"string",alternativeMatches:["Burkina Faso"]},{value:"BI",label:"BI",type:"string",alternativeMatches:["Burundi"]},{value:"KH",label:"KH",type:"string",alternativeMatches:["Cambodia"]},{value:"CM",label:"CM",type:"string",alternativeMatches:["Cameroon"]},{value:"CA",label:"CA",type:"string",alternativeMatches:["Canada"]},{value:"CV",label:"CV",type:"string",alternativeMatches:["Cape Verde"]},{value:"KY",label:"KY",type:"string",alternativeMatches:["Cayman Islands"]},{value:"CF",label:"CF",type:"string",alternativeMatches:["Central African Republic"]},{value:"TD",label:"TD",type:"string",alternativeMatches:["Chad"]},{value:"CL",label:"CL",type:"string",alternativeMatches:["Chile"]},{value:"CN",label:"CN",type:"string",alternativeMatches:["China"]},{value:"CX",label:"CX",type:"string",alternativeMatches:["Christmas Island"]},{value:"CC",label:"CC",type:"string",alternativeMatches:["Cocos (Keeling) Islands","Cocos Islands"]},{value:"CO",label:"CO",type:"string",alternativeMatches:["Colombia"]},{value:"KM",label:"KM",type:"string",alternativeMatches:["Comoros"]},{value:"CG",label:"CG",type:"string",alternativeMatches:["Congo"]},{value:"CD",label:"CD",type:"string",alternativeMatches:["Congo (the Democratic Republic of the)","Congo"]},{value:"CK",label:"CK",type:"string",alternativeMatches:["Cook Islands"]},{value:"CR",label:"CR",type:"string",alternativeMatches:["Costa Rica"]},{value:"CI",label:"CI",type:"string",alternativeMatches:["C\xF4te d'Ivoire","Cote d Ivoire"]},{value:"HR",label:"HR",type:"string",alternativeMatches:["Croatia"]},{value:"CU",label:"CU",type:"string",alternativeMatches:["Cuba"]},{value:"CW",label:"CW",type:"string",alternativeMatches:["Cura\xE7ao","Curacao"]},{value:"CY",label:"CY",type:"string",alternativeMatches:["Cyprus"]},{value:"CZ",label:"CZ",type:"string",alternativeMatches:["Czechia","Czech Republic"]},{value:"DK",label:"DK",type:"string",alternativeMatches:["Denmark"]},{value:"DJ",label:"DJ",type:"string",alternativeMatches:["Djibouti"]},{value:"DM",label:"DM",type:"string",alternativeMatches:["Dominica"]},{value:"DO",label:"DO",type:"string",alternativeMatches:["Dominican Republic"]},{value:"EC",label:"EC",type:"string",alternativeMatches:["Ecuador"]},{value:"EG",label:"EG",type:"string",alternativeMatches:["Egypt"]},{value:"SV",label:"SV",type:"string",alternativeMatches:["El Salvador"]},{value:"GQ",label:"GQ",type:"string",alternativeMatches:["Equatorial Guinea"]},{value:"ER",label:"ER",type:"string",alternativeMatches:["Eritrea"]},{value:"EE",label:"EE",type:"string",alternativeMatches:["Estonia"]},{value:"ET",label:"ET",type:"string",alternativeMatches:["Ethiopia"]},{value:"FK",label:"FK",type:"string",alternativeMatches:["Falkland Islands (Malvinas)"]},{value:"FO",label:"FO",type:"string",alternativeMatches:["Faroe Islands"]},{value:"FJ",label:"FJ",type:"string",alternativeMatches:["Fiji"]},{value:"FI",label:"FI",type:"string",alternativeMatches:["Finland"]},{value:"FR",label:"FR",type:"string",alternativeMatches:["France"]},{value:"GF",label:"GF",type:"string",alternativeMatches:["French Guiana"]},{value:"PF",label:"PF",type:"string",alternativeMatches:["French Polynesia"]},{value:"TF",label:"TF",type:"string",alternativeMatches:["French Southern Territories"]},{value:"GA",label:"GA",type:"string",alternativeMatches:["Gabon"]},{value:"GM",label:"GM",type:"string",alternativeMatches:["Gambia"]},{value:"GE",label:"GE",type:"string",alternativeMatches:["Georgia"]},{value:"DE",label:"DE",type:"string",alternativeMatches:["Germany"]},{value:"GH",label:"GH",type:"string",alternativeMatches:["Ghana"]},{value:"GI",label:"GI",type:"string",alternativeMatches:["Gibraltar"]},{value:"GR",label:"GR",type:"string",alternativeMatches:["Greece"]},{value:"GL",label:"GL",type:"string",alternativeMatches:["Greenland"]},{value:"GD",label:"GD",type:"string",alternativeMatches:["Grenada"]},{value:"GP",label:"GP",type:"string",alternativeMatches:["Guadeloupe"]},{value:"GU",label:"GU",type:"string",alternativeMatches:["Guam"]},{value:"GT",label:"GT",type:"string",alternativeMatches:["Guatemala"]},{value:"GG",label:"GG",type:"string",alternativeMatches:["Guernsey"]},{value:"GN",label:"GN",type:"string",alternativeMatches:["Guinea"]},{value:"GW",label:"GW",type:"string",alternativeMatches:["Guinea-Bissau"]},{value:"GY",label:"GY",type:"string",alternativeMatches:["Guyana"]},{value:"HT",label:"HT",type:"string",alternativeMatches:["Haiti"]},{value:"HM",label:"HM",type:"string",alternativeMatches:["Heard Island and McDonald Islands","Heard Island","McDonald Islands"]},{value:"VA",label:"VA",type:"string",alternativeMatches:["Holy See (Vatican City State)"]},{value:"HN",label:"HN",type:"string",alternativeMatches:["Honduras"]},{value:"HK",label:"HK",type:"string",alternativeMatches:["Hong Kong"]},{value:"HU",label:"HU",type:"string",alternativeMatches:["Hungary"]},{value:"IS",label:"IS",type:"string",alternativeMatches:["Iceland"]},{value:"IN",label:"IN",type:"string",alternativeMatches:["India"]},{value:"ID",label:"ID",type:"string",alternativeMatches:["Indonesia"]},{value:"IR",label:"IR",type:"string",alternativeMatches:["Iran (Islamic Republic of) ","Iran"]},{value:"IQ",label:"IQ",type:"string",alternativeMatches:["Iraq"]},{value:"IE",label:"IE",type:"string",alternativeMatches:["Ireland"]},{value:"IM",label:"IM",type:"string",alternativeMatches:["Isle of Man"]},{value:"IL",label:"IL",type:"string",alternativeMatches:["Israel"]},{value:"IT",label:"IT",type:"string",alternativeMatches:["Italy"]},{value:"JM",label:"JM",type:"string",alternativeMatches:["Jamaica"]},{value:"JP",label:"JP",type:"string",alternativeMatches:["Japan"]},{value:"JE",label:"JE",type:"string",alternativeMatches:["Jersey"]},{value:"JO",label:"JO",type:"string",alternativeMatches:["Jordan"]},{value:"KZ",label:"KZ",type:"string",alternativeMatches:["Kazakhstan"]},{value:"KE",label:"KE",type:"string",alternativeMatches:["Kenya"]},{value:"KI",label:"KI",type:"string",alternativeMatches:["Kiribati"]},{value:"KP",label:"KP",type:"string",alternativeMatches:["Democratic People's Republic of Korea","North Korea"]},{value:"KR",label:"KR",type:"string",alternativeMatches:["Korea, Republic of Korea","South Korea"]},{value:"KW",label:"KW",type:"string",alternativeMatches:["Kuwait"]},{value:"KG",label:"KG",type:"string",alternativeMatches:["Kyrgyzstan"]},{value:"LA",label:"LA",type:"string",alternativeMatches:["Lao People's Democratic Republic"]},{value:"LV",label:"LV",type:"string",alternativeMatches:["Latvia"]},{value:"LB",label:"LB",type:"string",alternativeMatches:["Lebanon"]},{value:"LS",label:"LS",type:"string",alternativeMatches:["Lesotho"]},{value:"LR",label:"LR",type:"string",alternativeMatches:["Liberia"]},{value:"LY",label:"LY",type:"string",alternativeMatches:["Libya"]},{value:"LI",label:"LI",type:"string",alternativeMatches:["Liechtenstein"]},{value:"LT",label:"LT",type:"string",alternativeMatches:["Lithuania"]},{value:"LU",label:"LU",type:"string",alternativeMatches:["Luxembourg"]},{value:"MO",label:"MO",type:"string",alternativeMatches:["Macao"]},{value:"MK",label:"MK",type:"string",alternativeMatches:["Republic of North Macedonia","North Macedonia"]},{value:"MG",label:"MG",type:"string",alternativeMatches:["Madagascar"]},{value:"MW",label:"MW",type:"string",alternativeMatches:["Malawi"]},{value:"MY",label:"MY",type:"string",alternativeMatches:["Malaysia"]},{value:"MV",label:"MV",type:"string",alternativeMatches:["Maldives"]},{value:"ML",label:"ML",type:"string",alternativeMatches:["Mali"]},{value:"MT",label:"MT",type:"string",alternativeMatches:["Malta"]},{value:"MH",label:"MH",type:"string",alternativeMatches:["Marshall Islands"]},{value:"MQ",label:"MQ",type:"string",alternativeMatches:["Martinique"]},{value:"MR",label:"MR",type:"string",alternativeMatches:["Mauritania"]},{value:"MU",label:"MU",type:"string",alternativeMatches:["Mauritius"]},{value:"YT",label:"YT",type:"string",alternativeMatches:["Mayotte"]},{value:"MX",label:"MX",type:"string",alternativeMatches:["Mexico"]},{value:"FM",label:"FM",type:"string",alternativeMatches:["Micronesia (Federated States of)"]},{value:"MD",label:"MD",type:"string",alternativeMatches:["Moldova (the Republic of)"]},{value:"MC",label:"MC",type:"string",alternativeMatches:["Monaco"]},{value:"MN",label:"MN",type:"string",alternativeMatches:["Mongolia"]},{value:"ME",label:"ME",type:"string",alternativeMatches:["Montenegro"]},{value:"MS",label:"MS",type:"string",alternativeMatches:["Montserrat"]},{value:"MA",label:"MA",type:"string",alternativeMatches:["Morocco"]},{value:"MZ",label:"MZ",type:"string",alternativeMatches:["Mozambique"]},{value:"MM",label:"MM",type:"string",alternativeMatches:["Myanmar"]},{value:"NA",label:"NA",type:"string",alternativeMatches:["Namibia"]},{value:"NR",label:"NR",type:"string",alternativeMatches:["Nauru"]},{value:"NP",label:"NP",type:"string",alternativeMatches:["Nepal"]},{value:"NL",label:"NL",type:"string",alternativeMatches:["Netherlands"]},{value:"NC",label:"NC",type:"string",alternativeMatches:["New Caledonia"]},{value:"NZ",label:"NZ",type:"string",alternativeMatches:["New Zealand"]},{value:"NI",label:"NI",type:"string",alternativeMatches:["Nicaragua"]},{value:"NE",label:"NE",type:"string",alternativeMatches:["Niger"]},{value:"NG",label:"NG",type:"string",alternativeMatches:["Nigeria"]},{value:"NU",label:"NU",type:"string",alternativeMatches:["Niue"]},{value:"NF",label:"NF",type:"string",alternativeMatches:["Norfolk Island"]},{value:"MP",label:"MP",type:"string",alternativeMatches:["Northern Mariana Islands"]},{value:"NO",label:"NO",type:"string",alternativeMatches:["Norway"]},{value:"OM",label:"OM",type:"string",alternativeMatches:["Oman"]},{value:"PK",label:"PK",type:"string",alternativeMatches:["Pakistan"]},{value:"PW",label:"PW",type:"string",alternativeMatches:["Palau"]},{value:"PS",label:"PS",type:"string",alternativeMatches:["Palestinian Territory, Occupied"]},{value:"PA",label:"PA",type:"string",alternativeMatches:["Panama"]},{value:"PG",label:"PG",type:"string",alternativeMatches:["Papua New Guinea"]},{value:"PY",label:"PY",type:"string",alternativeMatches:["Paraguay"]},{value:"PE",label:"PE",type:"string",alternativeMatches:["Peru"]},{value:"PH",label:"PH",type:"string",alternativeMatches:["Philippines"]},{value:"PN",label:"PN",type:"string",alternativeMatches:["Pitcairn"]},{value:"PL",label:"PL",type:"string",alternativeMatches:["Poland"]},{value:"PT",label:"PT",type:"string",alternativeMatches:["Portugal"]},{value:"PR",label:"PR",type:"string",alternativeMatches:["Puerto Rico"]},{value:"QA",label:"QA",type:"string",alternativeMatches:["Qatar"]},{value:"RE",label:"RE",type:"string",alternativeMatches:["R\xE9union"]},{value:"RO",label:"RO",type:"string",alternativeMatches:["Romania"]},{value:"RU",label:"RU",type:"string",alternativeMatches:["Russian Federation"]},{value:"RW",label:"RW",type:"string",alternativeMatches:["Rwanda"]},{value:"BL",label:"BL",type:"string",alternativeMatches:["Saint Barth\xE9lemy"]},{value:"SH",label:"SH",type:"string",alternativeMatches:["Saint Helena, Ascension and Tristan da Cunha"]},{value:"KN",label:"KN",type:"string",alternativeMatches:["Saint Kitts and Nevis","Saint Kitts","Nevis"]},{value:"LC",label:"LC",type:"string",alternativeMatches:["Saint Lucia"]},{value:"MF",label:"MF",type:"string",alternativeMatches:["Saint Martin (French part)"]},{value:"PM",label:"PM",type:"string",alternativeMatches:["Saint Pierre and Miquelon","Saint Pierre","Miquelon"]},{value:"VC",label:"VC",type:"string",alternativeMatches:["Saint Vincent and the Grenadines","Saint Vincent","Grenadines"]},{value:"WS",label:"WS",type:"string",alternativeMatches:["Samoa"]},{value:"SM",label:"SM",type:"string",alternativeMatches:["San Marino"]},{value:"ST",label:"ST",type:"string",alternativeMatches:["Sao Tome and Principe","Sao Tome","Principe"]},{value:"SA",label:"SA",type:"string",alternativeMatches:["Saudi Arabia"]},{value:"SN",label:"SN",type:"string",alternativeMatches:["Senegal"]},{value:"RS",label:"RS",type:"string",alternativeMatches:["Serbia"]},{value:"SC",label:"SC",type:"string",alternativeMatches:["Seychelles"]},{value:"SL",label:"SL",type:"string",alternativeMatches:["Sierra Leone"]},{value:"SG",label:"SG",type:"string",alternativeMatches:["Singapore"]},{value:"SX",label:"SX",type:"string",alternativeMatches:["Sint Maarten"]},{value:"SK",label:"SK",type:"string",alternativeMatches:["Slovakia"]},{value:"SI",label:"SI",type:"string",alternativeMatches:["Slovenia"]},{value:"SB",label:"SB",type:"string",alternativeMatches:["Solomon Islands"]},{value:"SO",label:"SO",type:"string",alternativeMatches:["Somalia"]},{value:"ZA",label:"ZA",type:"string",alternativeMatches:["South Africa"]},{value:"GS",label:"GS",type:"string",alternativeMatches:["South Georgia and the South Sandwich Islands","South Georgia","South Sandwich Islands"]},{value:"SS",label:"SS",type:"string",alternativeMatches:["South Sudan"]},{value:"ES",label:"ES",type:"string",alternativeMatches:["Spain"]},{value:"LK",label:"LK",type:"string",alternativeMatches:["Sri Lanka"]},{value:"SD",label:"SD",type:"string",alternativeMatches:["Sudan"]},{value:"SR",label:"SR",type:"string",alternativeMatches:["Suriname"]},{value:"SJ",label:"SJ",type:"string",alternativeMatches:["Svalbard and Jan Mayen","Svalbard","Jan Mayen"]},{value:"SZ",label:"SZ",type:"string",alternativeMatches:["Swaziland","Eswatini"]},{value:"SE",label:"SE",type:"string",alternativeMatches:["Sweden"]},{value:"CH",label:"CH",type:"string",alternativeMatches:["Switzerland"]},{value:"SY",label:"SY",type:"string",alternativeMatches:["Syrian Arab Republic"]},{value:"TW",label:"TW",type:"string",alternativeMatches:["Taiwan, Province of China"]},{value:"TJ",label:"TJ",type:"string",alternativeMatches:["Tajikistan"]},{value:"TZ",label:"TZ",type:"string",alternativeMatches:["Tanzania, United Republic of","Tanzania"]},{value:"TH",label:"TH",type:"string",alternativeMatches:["Thailand"]},{value:"TL",label:"TL",type:"string",alternativeMatches:["Timor-Leste"]},{value:"TG",label:"TG",type:"string",alternativeMatches:["Togo"]},{value:"TK",label:"TK",type:"string",alternativeMatches:["Tokelau"]},{value:"TO",label:"TO",type:"string",alternativeMatches:["Tonga"]},{value:"TT",label:"TT",type:"string",alternativeMatches:["Trinidad and Tobago","Trinidad","Tobago"]},{value:"TN",label:"TN",type:"string",alternativeMatches:["Tunisia"]},{value:"TR",label:"TR",type:"string",alternativeMatches:["Turkey"]},{value:"TM",label:"TM",type:"string",alternativeMatches:["Turkmenistan"]},{value:"TC",label:"TC",type:"string",alternativeMatches:["Turks and Caicos Islands"]},{value:"TV",label:"TV",type:"string",alternativeMatches:["Tuvalu"]},{value:"UG",label:"UG",type:"string",alternativeMatches:["Uganda"]},{value:"UA",label:"UA",type:"string",alternativeMatches:["Ukraine"]},{value:"AE",label:"AE",type:"string",alternativeMatches:["United Arab Emirates","UAE"]},{value:"GB",label:"GB",type:"string",alternativeMatches:["United Kingdom"]},{value:"US",label:"US",type:"string",alternativeMatches:["United States"]},{value:"UM",label:"UM",type:"string",alternativeMatches:["United States Minor Outlying Islands"]},{value:"UY",label:"UY",type:"string",alternativeMatches:["Uruguay"]},{value:"UZ",label:"UZ",type:"string",alternativeMatches:["Uzbekistan"]},{value:"VU",label:"VU",type:"string",alternativeMatches:["Vanuatu"]},{value:"VE",label:"VE",type:"string",alternativeMatches:["Venezuela (Bolivarian Republic of)","Venezuela","Bolivarian"]},{value:"VN",label:"VN",type:"string",alternativeMatches:["Viet Nam"]},{value:"VG",label:"VG",type:"string",alternativeMatches:["Virgin Islands (British)","British"]},{value:"VI",label:"VI",type:"string",alternativeMatches:["Virgin Islands (U.S.)"]},{value:"WF",label:"WF",type:"string",alternativeMatches:["Wallis and Futuna"]},{value:"EH",label:"EH",type:"string",alternativeMatches:["Western Sahara"]},{value:"YE",label:"YE",type:"string",alternativeMatches:["Yemen"]},{value:"ZM",label:"ZM",type:"string",alternativeMatches:["Zambia"]},{value:"ZW",label:"ZW",type:"string",alternativeMatches:["Zimbabwe"]}],L=[{value:"AFG",label:"AFG",type:"string",alternativeMatches:["Afghanistan"]},{value:"ALA",label:"ALA",type:"string",alternativeMatches:["\xC5land Islands"]},{value:"ALB",label:"ALB",type:"string",alternativeMatches:["Albania"]},{value:"DZA",label:"DZA",type:"string",alternativeMatches:["Algeria"]},{value:"ASM",label:"ASM",type:"string",alternativeMatches:["American Samoa"]},{value:"AND",label:"AND",type:"string",alternativeMatches:["Andorra"]},{value:"AGO",label:"AGO",type:"string",alternativeMatches:["Angola"]},{value:"AIA",label:"AIA",type:"string",alternativeMatches:["Anguilla"]},{value:"ATA",label:"ATA",type:"string",alternativeMatches:["Antarctica"]},{value:"ATG",label:"ATG",type:"string",alternativeMatches:["Antigua and Barbuda","Antigua","Barbuda"]},{value:"ARG",label:"ARG",type:"string",alternativeMatches:["Argentina"]},{value:"ARM",label:"ARM",type:"string",alternativeMatches:["Armenia"]},{value:"ABW",label:"ABW",type:"string",alternativeMatches:["Aruba"]},{value:"AUS",label:"AUS",type:"string",alternativeMatches:["Australia"]},{value:"AUT",label:"AUT",type:"string",alternativeMatches:["Austria"]},{value:"AZE",label:"AZE",type:"string",alternativeMatches:["Azerbaijan"]},{value:"BHS",label:"BHS",type:"string",alternativeMatches:["Bahamas"]},{value:"BHR",label:"BHR",type:"string",alternativeMatches:["Bahrain"]},{value:"BGD",label:"BGD",type:"string",alternativeMatches:["Bangladesh"]},{value:"BRB",label:"BRB",type:"string",alternativeMatches:["Barbados"]},{value:"BLR",label:"BLR",type:"string",alternativeMatches:["Belarus"]},{value:"BEL",label:"BEL",type:"string",alternativeMatches:["Belgium"]},{value:"BLZ",label:"BLZ",type:"string",alternativeMatches:["Belize"]},{value:"BEN",label:"BEN",type:"string",alternativeMatches:["Benin"]},{value:"BMU",label:"BMU",type:"string",alternativeMatches:["Bermuda"]},{value:"BTN",label:"BTN",type:"string",alternativeMatches:["Bhutan"]},{value:"BOL",label:"BOL",type:"string",alternativeMatches:["Bolivia (Plurinational State of)","Bolivia"]},{value:"BES",label:"BES",type:"string",alternativeMatches:["Bonaire, Sint Eustatius and Saba"]},{value:"BIH",label:"BIH",type:"string",alternativeMatches:["Bosnia and Herzegovina"]},{value:"BWA",label:"BWA",type:"string",alternativeMatches:["Botswana"]},{value:"BVT",label:"BVT",type:"string",alternativeMatches:["Bouvet Island"]},{value:"BRA",label:"BRA",type:"string",alternativeMatches:["Brazil"]},{value:"IOT",label:"IOT",type:"string",alternativeMatches:["British Indian Ocean Territory"]},{value:"BRN",label:"BRN",type:"string",alternativeMatches:["Brunei Darussalam"]},{value:"BGR",label:"BGR",type:"string",alternativeMatches:["Bulgaria"]},{value:"BFA",label:"BFA",type:"string",alternativeMatches:["Burkina Faso"]},{value:"BDI",label:"BDI",type:"string",alternativeMatches:["Burundi"]},{value:"KHM",label:"KHM",type:"string",alternativeMatches:["Cambodia"]},{value:"CMR",label:"CMR",type:"string",alternativeMatches:["Cameroon"]},{value:"CAN",label:"CAN",type:"string",alternativeMatches:["Canada"]},{value:"CPV",label:"CPV",type:"string",alternativeMatches:["Cape Verde"]},{value:"CYM",label:"CYM",type:"string",alternativeMatches:["Cayman Islands"]},{value:"CAF",label:"CAF",type:"string",alternativeMatches:["Central African Republic"]},{value:"TCD",label:"TCD",type:"string",alternativeMatches:["Chad"]},{value:"CHL",label:"CHL",type:"string",alternativeMatches:["Chile"]},{value:"CHN",label:"CHN",type:"string",alternativeMatches:["China"]},{value:"CXR",label:"CXR",type:"string",alternativeMatches:["Christmas Island"]},{value:"CCK",label:"CCK",type:"string",alternativeMatches:["Cocos (Keeling) Islands"]},{value:"COL",label:"COL",type:"string",alternativeMatches:["Colombia"]},{value:"COM",label:"COM",type:"string",alternativeMatches:["Comoros"]},{value:"COG",label:"COG",type:"string",alternativeMatches:["Congo"]},{value:"COD",label:"COD",type:"string",alternativeMatches:["Congo (the Democratic Republic of the)"]},{value:"COK",label:"COK",type:"string",alternativeMatches:["Cook Islands"]},{value:"CRI",label:"CRI",type:"string",alternativeMatches:["Costa Rica"]},{value:"CIV",label:"CIV",type:"string",alternativeMatches:["C\xF4te d'Ivoire"]},{value:"HRV",label:"HRV",type:"string",alternativeMatches:["Croatia"]},{value:"CUB",label:"CUB",type:"string",alternativeMatches:["Cuba"]},{value:"CUW",label:"CUW",type:"string",alternativeMatches:["Cura\xE7ao"]},{value:"CYP",label:"CYP",type:"string",alternativeMatches:["Cyprus"]},{value:"CZE",label:"CZE",type:"string",alternativeMatches:["Czechia","Czech Republic"]},{value:"DNK",label:"DNK",type:"string",alternativeMatches:["Denmark"]},{value:"DJI",label:"DJI",type:"string",alternativeMatches:["Djibouti"]},{value:"DMA",label:"DMA",type:"string",alternativeMatches:["Dominica"]},{value:"DOM",label:"DOM",type:"string",alternativeMatches:["Dominican Republic"]},{value:"ECU",label:"ECU",type:"string",alternativeMatches:["Ecuador"]},{value:"EGY",label:"EGY",type:"string",alternativeMatches:["Egypt"]},{value:"SLV",label:"SLV",type:"string",alternativeMatches:["El Salvador"]},{value:"GNQ",label:"GNQ",type:"string",alternativeMatches:["Equatorial Guinea"]},{value:"ERI",label:"ERI",type:"string",alternativeMatches:["Eritrea"]},{value:"EST",label:"EST",type:"string",alternativeMatches:["Estonia"]},{value:"ETH",label:"ETH",type:"string",alternativeMatches:["Ethiopia"]},{value:"FLK",label:"FLK",type:"string",alternativeMatches:["Falkland Islands (Malvinas)"]},{value:"FRO",label:"FRO",type:"string",alternativeMatches:["Faroe Islands"]},{value:"FJI",label:"FJI",type:"string",alternativeMatches:["Fiji"]},{value:"FIN",label:"FIN",type:"string",alternativeMatches:["Finland"]},{value:"FRA",label:"FRA",type:"string",alternativeMatches:["France"]},{value:"GUF",label:"GUF",type:"string",alternativeMatches:["French Guiana"]},{value:"PYF",label:"PYF",type:"string",alternativeMatches:["French Polynesia"]},{value:"ATF",label:"ATF",type:"string",alternativeMatches:["French Southern Territories"]},{value:"GAB",label:"GAB",type:"string",alternativeMatches:["Gabon"]},{value:"GMB",label:"GMB",type:"string",alternativeMatches:["Gambia"]},{value:"GEO",label:"GEO",type:"string",alternativeMatches:["Georgia"]},{value:"DEU",label:"DEU",type:"string",alternativeMatches:["Germany"]},{value:"GHA",label:"GHA",type:"string",alternativeMatches:["Ghana"]},{value:"GIB",label:"GIB",type:"string",alternativeMatches:["Gibraltar"]},{value:"GRC",label:"GRC",type:"string",alternativeMatches:["Greece"]},{value:"GRL",label:"GRL",type:"string",alternativeMatches:["Greenland"]},{value:"GRD",label:"GRD",type:"string",alternativeMatches:["Grenada"]},{value:"GLP",label:"GLP",type:"string",alternativeMatches:["Guadeloupe"]},{value:"GUM",label:"GUM",type:"string",alternativeMatches:["Guam"]},{value:"GTM",label:"GTM",type:"string",alternativeMatches:["Guatemala"]},{value:"GGY",label:"GGY",type:"string",alternativeMatches:["Guernsey"]},{value:"GIN",label:"GIN",type:"string",alternativeMatches:["Guinea"]},{value:"GNB",label:"GNB",type:"string",alternativeMatches:["Guinea-Bissau"]},{value:"GUY",label:"GUY",type:"string",alternativeMatches:["Guyana"]},{value:"HTI",label:"HTI",type:"string",alternativeMatches:["Haiti"]},{value:"HMD",label:"HMD",type:"string",alternativeMatches:["Heard Island and McDonald Islands","Heard Island","McDonald Islands"]},{value:"VAT",label:"VAT",type:"string",alternativeMatches:["Holy See (Vatican City State)"]},{value:"HND",label:"HND",type:"string",alternativeMatches:["Honduras"]},{value:"HKG",label:"HKG",type:"string",alternativeMatches:["Hong Kong"]},{value:"HUN",label:"HUN",type:"string",alternativeMatches:["Hungary"]},{value:"ISL",label:"ISL",type:"string",alternativeMatches:["Iceland"]},{value:"IND",label:"IND",type:"string",alternativeMatches:["India"]},{value:"IDN",label:"IDN",type:"string",alternativeMatches:["Indonesia"]},{value:"IRN",label:"IRN",type:"string",alternativeMatches:["Iran (Islamic Republic of) ","Iran"]},{value:"IRQ",label:"IRQ",type:"string",alternativeMatches:["Iraq"]},{value:"IRL",label:"IRL",type:"string",alternativeMatches:["Ireland"]},{value:"IMN",label:"IMN",type:"string",alternativeMatches:["Isle of Man"]},{value:"ISR",label:"ISR",type:"string",alternativeMatches:["Israel"]},{value:"ITA",label:"ITA",type:"string",alternativeMatches:["Italy"]},{value:"JAM",label:"JAM",type:"string",alternativeMatches:["Jamaica"]},{value:"JPN",label:"JPN",type:"string",alternativeMatches:["Japan"]},{value:"JEY",label:"JEY",type:"string",alternativeMatches:["Jersey"]},{value:"JOR",label:"JOR",type:"string",alternativeMatches:["Jordan"]},{value:"KAZ",label:"KAZ",type:"string",alternativeMatches:["Kazakhstan"]},{value:"KEN",label:"KEN",type:"string",alternativeMatches:["Kenya"]},{value:"KIR",label:"KIR",type:"string",alternativeMatches:["Kiribati"]},{value:"PRK",label:"PRK",type:"string",alternativeMatches:["Democratic People's Republic of Korea","North Korea"]},{value:"KOR",label:"KOR",type:"string",alternativeMatches:["Korea, Republic of Korea","South Korea"]},{value:"KWT",label:"KWT",type:"string",alternativeMatches:["Kuwait"]},{value:"KGZ",label:"KGZ",type:"string",alternativeMatches:["Kyrgyzstan"]},{value:"LAO",label:"LAO",type:"string",alternativeMatches:["Lao People's Democratic Republic"]},{value:"LVA",label:"LVA",type:"string",alternativeMatches:["Latvia"]},{value:"LBN",label:"LBN",type:"string",alternativeMatches:["Lebanon"]},{value:"LSO",label:"LSO",type:"string",alternativeMatches:["Lesotho"]},{value:"LBR",label:"LBR",type:"string",alternativeMatches:["Liberia"]},{value:"LBY",label:"LBY",type:"string",alternativeMatches:["Libya"]},{value:"LIE",label:"LIE",type:"string",alternativeMatches:["Liechtenstein"]},{value:"LTU",label:"LTU",type:"string",alternativeMatches:["Lithuania"]},{value:"LUX",label:"LUX",type:"string",alternativeMatches:["Luxembourg"]},{value:"MAC",label:"MAC",type:"string",alternativeMatches:["Macao"]},{value:"MKD",label:"MKD",type:"string",alternativeMatches:["Republic of North Macedonia","North Macedonia"]},{value:"MDG",label:"MDG",type:"string",alternativeMatches:["Madagascar"]},{value:"MWI",label:"MWI",type:"string",alternativeMatches:["Malawi"]},{value:"MYS",label:"MYS",type:"string",alternativeMatches:["Malaysia"]},{value:"MDV",label:"MDV",type:"string",alternativeMatches:["Maldives"]},{value:"MLI",label:"MLI",type:"string",alternativeMatches:["Mali"]},{value:"MLT",label:"MLT",type:"string",alternativeMatches:["Malta"]},{value:"MHL",label:"MHL",type:"string",alternativeMatches:["Marshall Islands"]},{value:"MTQ",label:"MTQ",type:"string",alternativeMatches:["Martinique"]},{value:"MRT",label:"MRT",type:"string",alternativeMatches:["Mauritania"]},{value:"MUS",label:"MUS",type:"string",alternativeMatches:["Mauritius"]},{value:"MYT",label:"MYT",type:"string",alternativeMatches:["Mayotte"]},{value:"MEX",label:"MEX",type:"string",alternativeMatches:["Mexico"]},{value:"FSM",label:"FSM",type:"string",alternativeMatches:["Micronesia (Federated States of)"]},{value:"MDA",label:"MDA",type:"string",alternativeMatches:["Moldova (the Republic of)"]},{value:"MCO",label:"MCO",type:"string",alternativeMatches:["Monaco"]},{value:"MNG",label:"MNG",type:"string",alternativeMatches:["Mongolia"]},{value:"MNE",label:"MNE",type:"string",alternativeMatches:["Montenegro"]},{value:"MSR",label:"MSR",type:"string",alternativeMatches:["Montserrat"]},{value:"MAR",label:"MAR",type:"string",alternativeMatches:["Morocco"]},{value:"MOZ",label:"MOZ",type:"string",alternativeMatches:["Mozambique"]},{value:"MMR",label:"MMR",type:"string",alternativeMatches:["Myanmar"]},{value:"NAM",label:"NAM",type:"string",alternativeMatches:["Namibia"]},{value:"NRU",label:"NRU",type:"string",alternativeMatches:["Nauru"]},{value:"NPL",label:"NPL",type:"string",alternativeMatches:["Nepal"]},{value:"NLD",label:"NLD",type:"string",alternativeMatches:["Netherlands"]},{value:"NCL",label:"NCL",type:"string",alternativeMatches:["New Caledonia"]},{value:"NZL",label:"NZL",type:"string",alternativeMatches:["New Zealand"]},{value:"NIC",label:"NIC",type:"string",alternativeMatches:["Nicaragua"]},{value:"NER",label:"NER",type:"string",alternativeMatches:["Niger"]},{value:"NGA",label:"NGA",type:"string",alternativeMatches:["Nigeria"]},{value:"NIU",label:"NIU",type:"string",alternativeMatches:["Niue"]},{value:"NFK",label:"NFK",type:"string",alternativeMatches:["Norfolk Island"]},{value:"MNP",label:"MNP",type:"string",alternativeMatches:["Northern Mariana Islands"]},{value:"NOR",label:"NOR",type:"string",alternativeMatches:["Norway"]},{value:"OMN",label:"OMN",type:"string",alternativeMatches:["Oman"]},{value:"PAK",label:"PAK",type:"string",alternativeMatches:["Pakistan"]},{value:"PLW",label:"PLW",type:"string",alternativeMatches:["Palau"]},{value:"PSE",label:"PSE",type:"string",alternativeMatches:["Palestinian Territory, Occupied"]},{value:"PAN",label:"PAN",type:"string",alternativeMatches:["Panama"]},{value:"PNG",label:"PNG",type:"string",alternativeMatches:["Papua New Guinea"]},{value:"PRY",label:"PRY",type:"string",alternativeMatches:["Paraguay"]},{value:"PER",label:"PER",type:"string",alternativeMatches:["Peru"]},{value:"PHL",label:"PHL",type:"string",alternativeMatches:["Philippines"]},{value:"PCN",label:"PCN",type:"string",alternativeMatches:["Pitcairn"]},{value:"POL",label:"POL",type:"string",alternativeMatches:["Poland"]},{value:"PRT",label:"PRT",type:"string",alternativeMatches:["Portugal"]},{value:"PRI",label:"PRI",type:"string",alternativeMatches:["Puerto Rico"]},{value:"QAT",label:"QAT",type:"string",alternativeMatches:["Qatar"]},{value:"REU",label:"REU",type:"string",alternativeMatches:["R\xE9union"]},{value:"ROU",label:"ROU",type:"string",alternativeMatches:["Romania"]},{value:"RUS",label:"RUS",type:"string",alternativeMatches:["Russian Federation"]},{value:"RWA",label:"RWA",type:"string",alternativeMatches:["Rwanda"]},{value:"BLM",label:"BLM",type:"string",alternativeMatches:["Saint Barth\xE9lemy"]},{value:"SHN",label:"SHN",type:"string",alternativeMatches:["Saint Helena, Ascension and Tristan da Cunha"]},{value:"KNA",label:"KNA",type:"string",alternativeMatches:["Saint Kitts and Nevis","Saint Kitts","Nevis"]},{value:"LCA",label:"LCA",type:"string",alternativeMatches:["Saint Lucia"]},{value:"MAF",label:"MAF",type:"string",alternativeMatches:["Saint Martin (French part)"]},{value:"SPM",label:"SPM",type:"string",alternativeMatches:["Saint Pierre and Miquelon","Saint Pierre","Miquelon"]},{value:"VCT",label:"VCT",type:"string",alternativeMatches:["Saint Vincent and the Grenadines","Saint Vincent","Grenadines"]},{value:"WSM",label:"WSM",type:"string",alternativeMatches:["Samoa"]},{value:"SMR",label:"SMR",type:"string",alternativeMatches:["San Marino"]},{value:"STP",label:"STP",type:"string",alternativeMatches:["Sao Tome and Principe","Sao Tome","Principe"]},{value:"SAU",label:"SAU",type:"string",alternativeMatches:["Saudi Arabia"]},{value:"SEN",label:"SEN",type:"string",alternativeMatches:["Senegal"]},{value:"SRB",label:"SRB",type:"string",alternativeMatches:["Serbia"]},{value:"SYC",label:"SYC",type:"string",alternativeMatches:["Seychelles"]},{value:"SLE",label:"SLE",type:"string",alternativeMatches:["Sierra Leone"]},{value:"SGP",label:"SGP",type:"string",alternativeMatches:["Singapore"]},{value:"SXM",label:"SXM",type:"string",alternativeMatches:["Sint Maarten (Dutch part)"]},{value:"SVK",label:"SVK",type:"string",alternativeMatches:["Slovakia"]},{value:"SVN",label:"SVN",type:"string",alternativeMatches:["Slovenia"]},{value:"SLB",label:"SLB",type:"string",alternativeMatches:["Solomon Islands"]},{value:"SOM",label:"SOM",type:"string",alternativeMatches:["Somalia"]},{value:"ZAF",label:"ZAF",type:"string",alternativeMatches:["South Africa"]},{value:"SGS",label:"SGS",type:"string",alternativeMatches:["South Georgia and the South Sandwich Islands","South Georgia","South Sandwich Islands"]},{value:"SSD",label:"SSD",type:"string",alternativeMatches:["South Sudan"]},{value:"ESP",label:"ESP",type:"string",alternativeMatches:["Spain"]},{value:"LKA",label:"LKA",type:"string",alternativeMatches:["Sri Lanka"]},{value:"SDN",label:"SDN",type:"string",alternativeMatches:["Sudan"]},{value:"SUR",label:"SUR",type:"string",alternativeMatches:["Suriname"]},{value:"SJM",label:"SJM",type:"string",alternativeMatches:["Svalbard and Jan Mayen","Svalbard","Jan Mayen"]},{value:"SWZ",label:"SWZ",type:"string",alternativeMatches:["Swaziland","Eswatini"]},{value:"SWE",label:"SWE",type:"string",alternativeMatches:["Sweden"]},{value:"CHE",label:"CHE",type:"string",alternativeMatches:["Switzerland"]},{value:"SYR",label:"SYR",type:"string",alternativeMatches:["Syrian Arab Republic"]},{value:"TWN",label:"TWN",type:"string",alternativeMatches:["Taiwan, Province of China"]},{value:"TJK",label:"TJK",type:"string",alternativeMatches:["Tajikistan"]},{value:"TZA",label:"TZA",type:"string",alternativeMatches:["Tanzania, United Republic of"]},{value:"THA",label:"THA",type:"string",alternativeMatches:["Thailand"]},{value:"TLS",label:"TLS",type:"string",alternativeMatches:["Timor-Leste"]},{value:"TGO",label:"TGO",type:"string",alternativeMatches:["Togo"]},{value:"TKL",label:"TKL",type:"string",alternativeMatches:["Tokelau"]},{value:"TON",label:"TON",type:"string",alternativeMatches:["Tonga"]},{value:"TTO",label:"TTO",type:"string",alternativeMatches:["Trinidad and Tobago","Trinidad","Tobago"]},{value:"TUN",label:"TUN",type:"string",alternativeMatches:["Tunisia"]},{value:"TUR",label:"TUR",type:"string",alternativeMatches:["Turkey"]},{value:"TKM",label:"TKM",type:"string",alternativeMatches:["Turkmenistan"]},{value:"TCA",label:"TCA",type:"string",alternativeMatches:["Turks and Caicos Islands"]},{value:"TUV",label:"TUV",type:"string",alternativeMatches:["Tuvalu"]},{value:"UGA",label:"UGA",type:"string",alternativeMatches:["Uganda"]},{value:"UKR",label:"UKR",type:"string",alternativeMatches:["Ukraine"]},{value:"ARE",label:"ARE",type:"string",alternativeMatches:["United Arab Emirates"]},{value:"GBR",label:"GBR",type:"string",alternativeMatches:["United Kingdom"]},{value:"USA",label:"USA",type:"string",alternativeMatches:["United States"]},{value:"UMI",label:"UMI",type:"string",alternativeMatches:["United States Minor Outlying Islands"]},{value:"URY",label:"URY",type:"string",alternativeMatches:["Uruguay"]},{value:"UZB",label:"UZB",type:"string",alternativeMatches:["Uzbekistan"]},{value:"VUT",label:"VUT",type:"string",alternativeMatches:["Vanuatu"]},{value:"VEN",label:"VEN",type:"string",alternativeMatches:["Venezuela (Bolivarian Republic of)","Venezuela","Bolivarian"]},{value:"VNM",label:"VNM",type:"string",alternativeMatches:["Viet Nam"]},{value:"VGB",label:"VGB",type:"string",alternativeMatches:["Virgin Islands (British)","British"]},{value:"VIR",label:"VIR",type:"string",alternativeMatches:["Virgin Islands (U.S.)"]},{value:"WLF",label:"WLF",type:"string",alternativeMatches:["Wallis and Futuna"]},{value:"ESH",label:"ESH",type:"string",alternativeMatches:["Western Sahara"]},{value:"YEM",label:"YEM",type:"string",alternativeMatches:["Yemen"]},{value:"ZMB",label:"ZMB",type:"string",alternativeMatches:["Zambia"]},{value:"ZWE",label:"ZWE",type:"string",alternativeMatches:["Zimbabwe"]}];import{isArray as Y}from"lodash";var R=class t{constructor(a,e){this.dataModels=[];this.mapValidation=a=>{switch(a){case"regex":return"REGEX";case"required":return"REQUIRED";case"required_with":return"REQUIRED_WITH";case"required_with_all":return"REQUIRED_WITH_ALL";case"required_with_all_values":return"REQUIRED_WITH_ALL_VALUES";case"required_with_values":return"REQUIRED_WITH_VALUES";case"required_without":return"REQUIRED_WITHOUT";case"required_without_all":return"REQUIRED_WITHOUT_ALL";case"required_without_all_values":return"REQUIRED_WITHOUT_ALL_VALUES";case"required_without_values":return"REQUIRED_WITHOUT_VALUES";case"unique":return"UNIQUE";case"compare":return"COMPARE";default:throw new Error(`validation "${a}" isn't in available options`)}};this.getValidator=(a,e)=>new E({validation:this.mapValidation(a.validate),regex:a.regex??void 0,fields:a.columnValues?.map(l=>({key:l.key,value:l.value??[],type:this.findDataModelTypeByKey(l.key,e),label:this.findDataModelLabelByKey(l.key,e)}))??[],errorMessage:a.errorMessage,operator:a.operator,value:a.value});this.findDataModel=a=>this.columns.find(e=>e.key===a);this.findDataModelTypeByKey=(a,e)=>{let l=this.findDataModel(a);if(l)return t.mapDataModelType({columnType:l.columnType});if(e.checkValidation)throw new Error(`validation key "${a}" isn't found.`);return"string"};this.findDataModelLabelByKey=(a,e)=>{let l=this.findDataModel(a);if(l)return l.label;if(e.checkValidation)throw new Error(`validation key "${a}" isn't found.`);return""};this.validatorParser=a=>{let e=a.validate.toUpperCase(),l=a.columnValues??{},r=a.columns??[];return e==="REQUIRED_WITH_VALUES"||e==="REQUIRED_WITH_ALL_VALUES"||e==="REQUIRED_WITHOUT_VALUES"||e==="REQUIRED_WITHOUT_ALL_VALUES"?Object.keys(l).map(n=>({key:n,value:Y(l[n])?l[n]:[l[n]]})):e==="REQUIRED_WITH"||e==="REQUIRED_WITHOUT"||e==="REQUIRED_WITHOUT_ALL"||e==="REQUIRED_WITH_ALL"?r.map(n=>({key:n})):[]};this.setDataModels=a=>{this.dataModels=this.columns.map(e=>{let l=t.mapDataModelType({columnType:e.columnType});e.numberFormat===void 0&&l==="currency_usd"&&(e.numberFormat="us");let r=e.optionMappingConfiguration?.processingMode??"browser",n=e.optionMappingConfiguration?.layers&&e.optionMappingConfiguration?.layers.length>0?e.optionMappingConfiguration?.layers:["smart","historic","fuzzy","exact"];a.enableNodeProcessing||(r="browser",n=n.filter(i=>i!=="historic"&&i!=="smart")),a.enableReuseMapping||(n=n.filter(i=>i!=="historic"));let v={layers:n,processingMode:r,threshold:e.optionMappingConfiguration?.threshold??.6},s={description:e.description??"",example:e.example??"",key:e.key,label:e.label,type:l,isRequired:!1,outputFormat:e.outputFormat??"",inputFormat:l==="date"?N(e.inputFormat):null,validators:e.validations?.map(i=>this.getValidator({...i,columnValues:this.validatorParser(i)},a)),mappingValidation:e.mappingValidation,alternativeMatches:e.alternativeMatches,columnSize:1,columnWidth:e.columnWidth,numberFormat:e.numberFormat||"eu",hidden:e.hidden,disabled:e.disabled,optionMappingConfiguration:v,excludeFromAutoMatching:e.excludeFromAutoMatching};return p.isTypeCategory(l)?new B({...s,type:l,options:t.createDropdownOptions(e),isMultiSelection:e.isMultiSelect??!1,allowCustomOptions:e.allowCustomOptions,allowedCustomOptionTypes:e.allowedCustomOptionTypes,preserveUnmappedOptions:t.sanitizePreserveUnmappedOptions(e.preserveUnmappedOptions)}):new p(s)})};this.getDataModels=()=>this.dataModels;this.columns=a,this.setDataModels(e)}static{this.mapDataModelType=({columnType:a})=>{switch(a){case"boolean":return"boolean";case"int":return"int";case"float":return"float";case"category":return"single-select";case"date":return"date";case"date_dmy":return"date_dmy";case"date_mdy":return"date_mdy";case"date_iso":return"date_iso";case"datetime":return"datetime";case"time_hms":return"time_hms";case"time_hms_24":return"time_hms_24";case"time_hm":return"time_hm";case"time_hm_24":return"time_hm_24";case"email":return"email";case"url_www":return"url_www";case"url_https":return"url_https";case"url":return"url";case"phone":return"phone";case"zip_code_de":return"zip_code_de";case"percentage":return"percentage";case"country_code_alpha_2":return"country_code_alpha_2";case"country_code_alpha_3":return"country_code_alpha_3";case"currency_code":return"currency_code";case"currency_eur":return"currency_eur";case"currency_usd":return"currency_usd";case"bic":return"bic";case"vat_eu":return"vat_eu";case"gtin":return"gtin";case"iban":return"iban";default:return"string"}}}static{this.mapColumnType=({dataType:a})=>{switch(a){case"boolean":return"boolean";case"int":return"int";case"float":return"float";case"single-select":return"category";case"date":return"date";case"date_dmy":return"date_dmy";case"date_mdy":return"date_mdy";case"date_iso":return"date_iso";case"datetime":return"datetime";case"time_hms":return"time_hms";case"time_hms_24":return"time_hms_24";case"time_hm":return"time_hm";case"time_hm_24":return"time_hm_24";case"email":return"email";case"url_www":return"url_www";case"url_https":return"url_https";case"url":return"url";case"phone":return"phone";case"zip_code_de":return"zip_code_de";case"percentage":return"percentage";case"country_code_alpha_2":return"country_code_alpha_2";case"country_code_alpha_3":return"country_code_alpha_3";case"currency_code":return"currency_code";case"currency_eur":return"currency_eur";case"currency_usd":return"currency_usd";case"bic":return"bic";case"vat_eu":return"vat_eu";case"gtin":return"gtin";case"iban":return"iban";default:return"string"}}}static{this.VALID_PRESERVE_UNMAPPED_OPTIONS=["none","optional-off","optional-on","always"]}static{this.sanitizePreserveUnmappedOptions=a=>{if(typeof a=="string"&&t.VALID_PRESERVE_UNMAPPED_OPTIONS.includes(a))return a}}static{this.createDropdownOptions=a=>a.columnType==="category"?a.dropdownOptions?.map(e=>({label:`${e.label}`,value:`${e.value}`,type:e.type,alternativeMatches:e.alternativeMatches??[],validations:e.validations??[],description:e.description??""}))??[]:a.columnType==="currency_code"?P:a.columnType==="country_code_alpha_2"?D:a.columnType==="country_code_alpha_3"?L:[]}},G=R;var Te=(t,a,e,l,r,n)=>{let v=0,s=0,i=0,u=!1,M=!1,{value:g,columns:A,isExact:K,isEmptyValues:b}=a,o=g?.trim();if(!b&&(W(o)||o.length===0))return;let H=b?t.length-1:t.length;for(let h=0;h<H;h++){let T=t[h],d=Object.keys(T);for(let y=0;y<d.length;y++){let C=A.findIndex(c=>c.key===d[y]),S=C>=0?A[C]:void 0;if(S===void 0)continue;let f=T[d[y]];if(m(f,{value:o??"",columns:[S],isExact:K,isEmptyValues:b})){v++;let c=n.findIndex(V=>V.key===S.key),I=n[c];(e.includes(c)||l.includes(h))&&s++,r.includes(c)&&i++,I.disabled&&(M=!0),p.isTypeCategory(G.mapDataModelType({columnType:I.columnType}))&&(u=!0)}}}return{counter:v,hidden:s,skip:i,matchedCategoryType:u,matchedDisabledColumn:M}};var U=t=>t==null||t===""||typeof t=="string"&&t.trim()==="";var O=t=>U(t)||Array.isArray(t)&&t.length===0,_=(t,a)=>typeof t=="string"?a?t.toLowerCase():t:typeof t=="number"?Number.isNaN(t)?{__nuvoNum:"NaN"}:t===1/0?{__nuvoNum:"+Infinity"}:t===-1/0?{__nuvoNum:"-Infinity"}:t:Array.isArray(t)?t.map(e=>_(e,a)):t,w=(t,a,e)=>JSON.stringify(a.map(l=>_(t[l]??null,e))),Z=({rows:t,columnKeys:a,ignoreCase:e=!1,ignoreBlanks:l=!1,excludeFromRemoval:r=[]})=>{if(a.length===0)return[];let n=new Set(r),v=new Set,s=[];for(let i=0;i<t.length;i++){if(n.has(i))continue;let u=t[i];if(l&&a.some(g=>O(u[g])))continue;let M=w(u,a,e);v.has(M)?s.push(i):v.add(M)}return s},k=({rows:t,columnKeys:a,excludeFromRemoval:e=[]})=>{if(a.length===0)return[];let l=new Set(e),r=[];for(let n=0;n<t.length;n++){if(l.has(n))continue;let v=t[n];a.every(s=>O(v[s]))&&r.push(n)}return r},Ee=t=>t.mode==="duplicate"?Z(t):k(t);export{P as a,D as b,L as c,G as d,Te as e,U as f,O as g,Ee as h};
|
|
1
|
+
import{e as N,h as E,i as p,m,r as B}from"./chunk-FJK35UW2.js";import{isNil as W}from"lodash";var P=[{label:"AFN",value:"AFN",type:"string",alternativeMatches:["Af","Afghanistan"]},{label:"ARS",value:"ARS",type:"string",alternativeMatches:["AR$","Argentina"]},{label:"AWG",value:"AWG",type:"string",alternativeMatches:["Aruba"]},{label:"AUD",value:"AUD",type:"string",alternativeMatches:["AU$","Australia"]},{label:"AZN",value:"AZN",type:"string",alternativeMatches:["man.","Azerbaijan"]},{label:"BSD",value:"BSD",type:"string",alternativeMatches:["Bahamas"]},{label:"BBD",value:"BBD",type:"string",alternativeMatches:["Barbados"]},{label:"BYN",value:"BYN",type:"string",alternativeMatches:["Br"]},{label:"BZD",value:"BZD",type:"string",alternativeMatches:["BZ$","Belize"]},{label:"BMD",value:"BMD",type:"string",alternativeMatches:["Bermuda"]},{label:"BOB",value:"BOB",type:"string",alternativeMatches:["Bs","Bolivia"]},{label:"BAM",value:"BAM",type:"string",alternativeMatches:["KM","Bosnia and Herzegovina"]},{label:"BWP",value:"BWP",type:"string",alternativeMatches:["BWP","Botswana"]},{label:"BGN",value:"BGN",type:"string",alternativeMatches:["BGN","Bulgaria"]},{label:"BRL",value:"BRL",type:"string",alternativeMatches:["R$","Brazil"]},{label:"BND",value:"BND",type:"string",alternativeMatches:["BN$","Brunei"]},{label:"KHR",value:"KHR",type:"string",alternativeMatches:["KHR","Cambodia"]},{label:"CAD",value:"CAD",type:"string",alternativeMatches:["CA$","Canada"]},{label:"KYD",value:"KYD",type:"string",alternativeMatches:["Cayman Islands"]},{label:"CLP",value:"CLP",type:"string",alternativeMatches:["CL$","Chile"]},{label:"CNY",value:"CNY",type:"string",alternativeMatches:["CN\xA5","China"]},{label:"COP",value:"COP",type:"string",alternativeMatches:["CO$","Colombia"]},{label:"CRC",value:"CRC",type:"string",alternativeMatches:["\u20A1","Costa Rica"]},{label:"HRK",value:"HRK",type:"string",alternativeMatches:["kn","Croatia"]},{label:"CUP",value:"CUP",type:"string",alternativeMatches:["Cuba"]},{label:"CZK",value:"CZK",type:"string",alternativeMatches:["K\u010D","Czech Republic"]},{label:"DKK",value:"DKK",type:"string",alternativeMatches:["Dkr","Denmark"]},{label:"DOP",value:"DOP",type:"string",alternativeMatches:["RD$","Dominican Republic"]},{label:"XCD",value:"XCD",type:"string",alternativeMatches:["Anguilla"]},{label:"EGP",value:"EGP",type:"string",alternativeMatches:["EGP","Egypt"]},{label:"SVC",value:"SVC",type:"string",alternativeMatches:["El Salvador"]},{label:"EUR",value:"EUR",type:"string",alternativeMatches:["\u20AC","Germany"]},{label:"FKP",value:"FKP",type:"string",alternativeMatches:["Falkland Islands"]},{label:"FJD",value:"FJD",type:"string",alternativeMatches:["Fiji Islands"]},{label:"GHS",value:"GHS",type:"string",alternativeMatches:["GH\u20B5","Ghana"]},{label:"GIP",value:"GIP",type:"string",alternativeMatches:["Gibraltar"]},{label:"GTQ",value:"GTQ",type:"string",alternativeMatches:["GTQ"]},{label:"GGP",value:"GGP",type:"string",alternativeMatches:[]},{label:"GYD",value:"GYD",type:"string",alternativeMatches:["Guyana"]},{label:"HNL",value:"HNL",type:"string",alternativeMatches:["HNL","Honduras"]},{label:"HKD",value:"HKD",type:"string",alternativeMatches:["HK$","Hong Kong"]},{label:"HUF",value:"HUF",type:"string",alternativeMatches:["Ft","Hungary"]},{label:"ISK",value:"ISK",type:"string",alternativeMatches:["Ikr","Iceland"]},{label:"INR",value:"INR",type:"string",alternativeMatches:["\u20B9","India"]},{label:"IDR",value:"IDR",type:"string",alternativeMatches:["Rp","Indonesia"]},{label:"IRR",value:"IRR",type:"string",alternativeMatches:["IRR","Iran"]},{label:"IMP",value:"IMP",type:"string",alternativeMatches:[]},{label:"ILS",value:"ILS",type:"string",alternativeMatches:["\u20AA","Israel"]},{label:"JMD",value:"JMD",type:"string",alternativeMatches:["J$","Jamaica"]},{label:"JPY",value:"JPY",type:"string",alternativeMatches:["\xA5","Japan"]},{label:"JEP",value:"JEP",type:"string",alternativeMatches:[]},{label:"KZT",value:"KZT",type:"string",alternativeMatches:["KZT","Kazakhstan"]},{label:"KPW",value:"KPW",type:"string",alternativeMatches:["North Korea"]},{label:"KRW",value:"KRW",type:"string",alternativeMatches:["\u20A9","South Korea"]},{label:"KGS",value:"KGS",type:"string",alternativeMatches:["Kyrgyzstan"]},{label:"LAK",value:"LAK",type:"string",alternativeMatches:["Laos"]},{label:"LBP",value:"LBP",type:"string",alternativeMatches:["L.L.","Lebanon"]},{label:"LRD",value:"LRD",type:"string",alternativeMatches:["Liberia"]},{label:"MKD",value:"MKD",type:"string",alternativeMatches:["MKD","North Macedonia"]},{label:"MYR",value:"MYR",type:"string",alternativeMatches:["RM","Malaysia"]},{label:"MUR",value:"MUR",type:"string",alternativeMatches:["MURs","Mauritius"]},{label:"MXN",value:"MXN",type:"string",alternativeMatches:["MX$","Mexico"]},{label:"MNT",value:"MNT",type:"string",alternativeMatches:["Mongolia"]},{label:"MZN",value:"MZN",type:"string",alternativeMatches:["MTn","Mozambique"]},{label:"NAD",value:"NAD",type:"string",alternativeMatches:["N$","Namibia"]},{label:"NPR",value:"NPR",type:"string",alternativeMatches:["NPRs","Nepal"]},{label:"ANG",value:"ANG",type:"string",alternativeMatches:["Netherlands Antilles"]},{label:"NZD",value:"NZD",type:"string",alternativeMatches:["NZ$","Cook Islands"]},{label:"NIO",value:"NIO",type:"string",alternativeMatches:["C$","Nicaragua"]},{label:"NGN",value:"NGN",type:"string",alternativeMatches:["\u20A6","Nigeria"]},{label:"NOK",value:"NOK",type:"string",alternativeMatches:["Nkr","Bouvet Island"]},{label:"OMR",value:"OMR",type:"string",alternativeMatches:["OMR","Oman"]},{label:"PKR",value:"PKR",type:"string",alternativeMatches:["PKRs","Pakistan"]},{label:"PAB",value:"PAB",type:"string",alternativeMatches:["B/.","Panama"]},{label:"PYG",value:"PYG",type:"string",alternativeMatches:["\u20B2","Paraguay"]},{label:"PEN",value:"PEN",type:"string",alternativeMatches:["S/.","Peru"]},{label:"PHP",value:"PHP",type:"string",alternativeMatches:["\u20B1","Philippines"]},{label:"PLN",value:"PLN",type:"string",alternativeMatches:["z\u0142","Poland"]},{label:"QAR",value:"QAR",type:"string",alternativeMatches:["QR","Qatar"]},{label:"RON",value:"RON",type:"string",alternativeMatches:["RON","Romania"]},{label:"RUB",value:"RUB",type:"string",alternativeMatches:["RUB","Russian Federation"]},{label:"SHP",value:"SHP",type:"string",alternativeMatches:["Saint Helena"]},{label:"SAR",value:"SAR",type:"string",alternativeMatches:["SR","Saudi Arabia"]},{label:"RSD",value:"RSD",type:"string",alternativeMatches:["din.","Serbia"]},{label:"SCR",value:"SCR",type:"string",alternativeMatches:["Seychelles"]},{label:"SGD",value:"SGD",type:"string",alternativeMatches:["S$","Singapore"]},{label:"SBD",value:"SBD",type:"string",alternativeMatches:["Solomon Islands"]},{label:"SOS",value:"SOS",type:"string",alternativeMatches:["Ssh","Somalia"]},{label:"ZAR",value:"ZAR",type:"string",alternativeMatches:["R","South Africa"]},{label:"LKR",value:"LKR",type:"string",alternativeMatches:["SLRs","Sri Lanka"]},{label:"SEK",value:"SEK",type:"string",alternativeMatches:["Skr","Sweden"]},{label:"CHF",value:"CHF",type:"string",alternativeMatches:["CHF","Liechtenstein"]},{label:"SRD",value:"SRD",type:"string",alternativeMatches:["Suriname"]},{label:"SYP",value:"SYP",type:"string",alternativeMatches:["SY\xA3","Syria"]},{label:"TWD",value:"TWD",type:"string",alternativeMatches:["NT$"]},{label:"THB",value:"THB",type:"string",alternativeMatches:["\u0E3F","Thailand"]},{label:"TTD",value:"TTD",type:"string",alternativeMatches:["TT$","Trinidad and Tobago"]},{label:"TRY",value:"TRY",type:"string",alternativeMatches:["TL","Turkey"]},{label:"TVD",value:"TVD",type:"string",alternativeMatches:[]},{label:"UAH",value:"UAH",type:"string",alternativeMatches:["\u20B4","Ukraine"]},{label:"GBP",value:"GBP",type:"string",alternativeMatches:["\xA3","England"]},{label:"USD",value:"USD",type:"string",alternativeMatches:["$","USA"]},{label:"UYU",value:"UYU",type:"string",alternativeMatches:["$U","Uruguay"]},{label:"UZS",value:"UZS",type:"string",alternativeMatches:["UZS","Uzbekistan"]},{label:"VEF",value:"VEF",type:"string",alternativeMatches:["Bs.F.","Venezuela"]},{label:"VND",value:"VND",type:"string",alternativeMatches:["\u20AB","Vietnam"]},{label:"YER",value:"YER",type:"string",alternativeMatches:["YR","Yemen"]},{label:"ZWD",value:"ZWD",type:"string",alternativeMatches:["Zimbabwe"]},{label:"XOF",value:"XOF",type:"string",alternativeMatches:["CFA Franc","West Africa"]},{label:"BDT",value:"BDT",type:"string",alternativeMatches:["\u09F3","Bangladesh"]},{label:"UGX",value:"UGX",type:"string",alternativeMatches:["USh","Uganda"]},{label:"KES",value:"KES",type:"string",alternativeMatches:["KSh","Kenya"]},{label:"LSL",value:"LSL",type:"string",alternativeMatches:["Loti","Lesotho"]},{label:"MWK",value:"MWK",type:"string",alternativeMatches:["K","Malawi"]},{label:"TZS",value:"TZS",type:"string",alternativeMatches:["TSh","Tanzania"]},{label:"ETB",value:"ETB",type:"string",alternativeMatches:["Br","Ethiopia"]},{label:"VEB",value:"VEB",type:"string",alternativeMatches:["Bs","Venezuela"]},{label:"XAF",value:"XAF",type:"string",alternativeMatches:["CFA Franc","Central Africa"]}],D=[{value:"AF",label:"AF",type:"string",alternativeMatches:["Afghanistan"]},{value:"AX",label:"AX",type:"string",alternativeMatches:["\xC5land Islands"]},{value:"AL",label:"AL",type:"string",alternativeMatches:["Albania"]},{value:"DZ",label:"DZ",type:"string",alternativeMatches:["Algeria"]},{value:"AS",label:"AS",type:"string",alternativeMatches:["American Samoa"]},{value:"AD",label:"AD",type:"string",alternativeMatches:["Andorra"]},{value:"AO",label:"AO",type:"string",alternativeMatches:["Angola"]},{value:"AI",label:"AI",type:"string",alternativeMatches:["Anguilla"]},{value:"AQ",label:"AQ",type:"string",alternativeMatches:["Antarctica"]},{value:"AG",label:"AG",type:"string",alternativeMatches:["Antigua and Barbuda","Antigua","Barbuda"]},{value:"AR",label:"AR",type:"string",alternativeMatches:["Argentina"]},{value:"AM",label:"AM",type:"string",alternativeMatches:["Armenia"]},{value:"AW",label:"AW",type:"string",alternativeMatches:["Aruba"]},{value:"AU",label:"AU",type:"string",alternativeMatches:["Australia"]},{value:"AT",label:"AT",type:"string",alternativeMatches:["Austria"]},{value:"AZ",label:"AZ",type:"string",alternativeMatches:["Azerbaijan"]},{value:"BS",label:"BS",type:"string",alternativeMatches:["Bahamas"]},{value:"BH",label:"BH",type:"string",alternativeMatches:["Bahrain"]},{value:"BD",label:"BD",type:"string",alternativeMatches:["Bangladesh"]},{value:"BB",label:"BB",type:"string",alternativeMatches:["Barbados"]},{value:"BY",label:"BY",type:"string",alternativeMatches:["Belarus"]},{value:"BE",label:"BE",type:"string",alternativeMatches:["Belgium"]},{value:"BZ",label:"BZ",type:"string",alternativeMatches:["Belize"]},{value:"BJ",label:"BJ",type:"string",alternativeMatches:["Benin"]},{value:"BM",label:"BM",type:"string",alternativeMatches:["Bermuda"]},{value:"BT",label:"BT",type:"string",alternativeMatches:["Bhutan"]},{value:"BO",label:"BO",type:"string",alternativeMatches:["Bolivia (Plurinational State of)","Bolivia"]},{value:"BQ",label:"BQ",type:"string",alternativeMatches:["Bonaire, Sint Eustatius and Saba"]},{value:"BA",label:"BA",type:"string",alternativeMatches:["Bosnia and Herzegovina"]},{value:"BW",label:"BW",type:"string",alternativeMatches:["Botswana"]},{value:"BV",label:"BV",type:"string",alternativeMatches:["Bouvet Island"]},{value:"BR",label:"BR",type:"string",alternativeMatches:["Brazil"]},{value:"IO",label:"IO",type:"string",alternativeMatches:["British Indian Ocean Territory"]},{value:"BN",label:"BN",type:"string",alternativeMatches:["Brunei Darussalam"]},{value:"BG",label:"BG",type:"string",alternativeMatches:["Bulgaria"]},{value:"BF",label:"BF",type:"string",alternativeMatches:["Burkina Faso"]},{value:"BI",label:"BI",type:"string",alternativeMatches:["Burundi"]},{value:"KH",label:"KH",type:"string",alternativeMatches:["Cambodia"]},{value:"CM",label:"CM",type:"string",alternativeMatches:["Cameroon"]},{value:"CA",label:"CA",type:"string",alternativeMatches:["Canada"]},{value:"CV",label:"CV",type:"string",alternativeMatches:["Cape Verde"]},{value:"KY",label:"KY",type:"string",alternativeMatches:["Cayman Islands"]},{value:"CF",label:"CF",type:"string",alternativeMatches:["Central African Republic"]},{value:"TD",label:"TD",type:"string",alternativeMatches:["Chad"]},{value:"CL",label:"CL",type:"string",alternativeMatches:["Chile"]},{value:"CN",label:"CN",type:"string",alternativeMatches:["China"]},{value:"CX",label:"CX",type:"string",alternativeMatches:["Christmas Island"]},{value:"CC",label:"CC",type:"string",alternativeMatches:["Cocos (Keeling) Islands","Cocos Islands"]},{value:"CO",label:"CO",type:"string",alternativeMatches:["Colombia"]},{value:"KM",label:"KM",type:"string",alternativeMatches:["Comoros"]},{value:"CG",label:"CG",type:"string",alternativeMatches:["Congo"]},{value:"CD",label:"CD",type:"string",alternativeMatches:["Congo (the Democratic Republic of the)","Congo"]},{value:"CK",label:"CK",type:"string",alternativeMatches:["Cook Islands"]},{value:"CR",label:"CR",type:"string",alternativeMatches:["Costa Rica"]},{value:"CI",label:"CI",type:"string",alternativeMatches:["C\xF4te d'Ivoire","Cote d Ivoire"]},{value:"HR",label:"HR",type:"string",alternativeMatches:["Croatia"]},{value:"CU",label:"CU",type:"string",alternativeMatches:["Cuba"]},{value:"CW",label:"CW",type:"string",alternativeMatches:["Cura\xE7ao","Curacao"]},{value:"CY",label:"CY",type:"string",alternativeMatches:["Cyprus"]},{value:"CZ",label:"CZ",type:"string",alternativeMatches:["Czechia","Czech Republic"]},{value:"DK",label:"DK",type:"string",alternativeMatches:["Denmark"]},{value:"DJ",label:"DJ",type:"string",alternativeMatches:["Djibouti"]},{value:"DM",label:"DM",type:"string",alternativeMatches:["Dominica"]},{value:"DO",label:"DO",type:"string",alternativeMatches:["Dominican Republic"]},{value:"EC",label:"EC",type:"string",alternativeMatches:["Ecuador"]},{value:"EG",label:"EG",type:"string",alternativeMatches:["Egypt"]},{value:"SV",label:"SV",type:"string",alternativeMatches:["El Salvador"]},{value:"GQ",label:"GQ",type:"string",alternativeMatches:["Equatorial Guinea"]},{value:"ER",label:"ER",type:"string",alternativeMatches:["Eritrea"]},{value:"EE",label:"EE",type:"string",alternativeMatches:["Estonia"]},{value:"ET",label:"ET",type:"string",alternativeMatches:["Ethiopia"]},{value:"FK",label:"FK",type:"string",alternativeMatches:["Falkland Islands (Malvinas)"]},{value:"FO",label:"FO",type:"string",alternativeMatches:["Faroe Islands"]},{value:"FJ",label:"FJ",type:"string",alternativeMatches:["Fiji"]},{value:"FI",label:"FI",type:"string",alternativeMatches:["Finland"]},{value:"FR",label:"FR",type:"string",alternativeMatches:["France"]},{value:"GF",label:"GF",type:"string",alternativeMatches:["French Guiana"]},{value:"PF",label:"PF",type:"string",alternativeMatches:["French Polynesia"]},{value:"TF",label:"TF",type:"string",alternativeMatches:["French Southern Territories"]},{value:"GA",label:"GA",type:"string",alternativeMatches:["Gabon"]},{value:"GM",label:"GM",type:"string",alternativeMatches:["Gambia"]},{value:"GE",label:"GE",type:"string",alternativeMatches:["Georgia"]},{value:"DE",label:"DE",type:"string",alternativeMatches:["Germany"]},{value:"GH",label:"GH",type:"string",alternativeMatches:["Ghana"]},{value:"GI",label:"GI",type:"string",alternativeMatches:["Gibraltar"]},{value:"GR",label:"GR",type:"string",alternativeMatches:["Greece"]},{value:"GL",label:"GL",type:"string",alternativeMatches:["Greenland"]},{value:"GD",label:"GD",type:"string",alternativeMatches:["Grenada"]},{value:"GP",label:"GP",type:"string",alternativeMatches:["Guadeloupe"]},{value:"GU",label:"GU",type:"string",alternativeMatches:["Guam"]},{value:"GT",label:"GT",type:"string",alternativeMatches:["Guatemala"]},{value:"GG",label:"GG",type:"string",alternativeMatches:["Guernsey"]},{value:"GN",label:"GN",type:"string",alternativeMatches:["Guinea"]},{value:"GW",label:"GW",type:"string",alternativeMatches:["Guinea-Bissau"]},{value:"GY",label:"GY",type:"string",alternativeMatches:["Guyana"]},{value:"HT",label:"HT",type:"string",alternativeMatches:["Haiti"]},{value:"HM",label:"HM",type:"string",alternativeMatches:["Heard Island and McDonald Islands","Heard Island","McDonald Islands"]},{value:"VA",label:"VA",type:"string",alternativeMatches:["Holy See (Vatican City State)"]},{value:"HN",label:"HN",type:"string",alternativeMatches:["Honduras"]},{value:"HK",label:"HK",type:"string",alternativeMatches:["Hong Kong"]},{value:"HU",label:"HU",type:"string",alternativeMatches:["Hungary"]},{value:"IS",label:"IS",type:"string",alternativeMatches:["Iceland"]},{value:"IN",label:"IN",type:"string",alternativeMatches:["India"]},{value:"ID",label:"ID",type:"string",alternativeMatches:["Indonesia"]},{value:"IR",label:"IR",type:"string",alternativeMatches:["Iran (Islamic Republic of) ","Iran"]},{value:"IQ",label:"IQ",type:"string",alternativeMatches:["Iraq"]},{value:"IE",label:"IE",type:"string",alternativeMatches:["Ireland"]},{value:"IM",label:"IM",type:"string",alternativeMatches:["Isle of Man"]},{value:"IL",label:"IL",type:"string",alternativeMatches:["Israel"]},{value:"IT",label:"IT",type:"string",alternativeMatches:["Italy"]},{value:"JM",label:"JM",type:"string",alternativeMatches:["Jamaica"]},{value:"JP",label:"JP",type:"string",alternativeMatches:["Japan"]},{value:"JE",label:"JE",type:"string",alternativeMatches:["Jersey"]},{value:"JO",label:"JO",type:"string",alternativeMatches:["Jordan"]},{value:"KZ",label:"KZ",type:"string",alternativeMatches:["Kazakhstan"]},{value:"KE",label:"KE",type:"string",alternativeMatches:["Kenya"]},{value:"KI",label:"KI",type:"string",alternativeMatches:["Kiribati"]},{value:"KP",label:"KP",type:"string",alternativeMatches:["Democratic People's Republic of Korea","North Korea"]},{value:"KR",label:"KR",type:"string",alternativeMatches:["Korea, Republic of Korea","South Korea"]},{value:"KW",label:"KW",type:"string",alternativeMatches:["Kuwait"]},{value:"KG",label:"KG",type:"string",alternativeMatches:["Kyrgyzstan"]},{value:"LA",label:"LA",type:"string",alternativeMatches:["Lao People's Democratic Republic"]},{value:"LV",label:"LV",type:"string",alternativeMatches:["Latvia"]},{value:"LB",label:"LB",type:"string",alternativeMatches:["Lebanon"]},{value:"LS",label:"LS",type:"string",alternativeMatches:["Lesotho"]},{value:"LR",label:"LR",type:"string",alternativeMatches:["Liberia"]},{value:"LY",label:"LY",type:"string",alternativeMatches:["Libya"]},{value:"LI",label:"LI",type:"string",alternativeMatches:["Liechtenstein"]},{value:"LT",label:"LT",type:"string",alternativeMatches:["Lithuania"]},{value:"LU",label:"LU",type:"string",alternativeMatches:["Luxembourg"]},{value:"MO",label:"MO",type:"string",alternativeMatches:["Macao"]},{value:"MK",label:"MK",type:"string",alternativeMatches:["Republic of North Macedonia","North Macedonia"]},{value:"MG",label:"MG",type:"string",alternativeMatches:["Madagascar"]},{value:"MW",label:"MW",type:"string",alternativeMatches:["Malawi"]},{value:"MY",label:"MY",type:"string",alternativeMatches:["Malaysia"]},{value:"MV",label:"MV",type:"string",alternativeMatches:["Maldives"]},{value:"ML",label:"ML",type:"string",alternativeMatches:["Mali"]},{value:"MT",label:"MT",type:"string",alternativeMatches:["Malta"]},{value:"MH",label:"MH",type:"string",alternativeMatches:["Marshall Islands"]},{value:"MQ",label:"MQ",type:"string",alternativeMatches:["Martinique"]},{value:"MR",label:"MR",type:"string",alternativeMatches:["Mauritania"]},{value:"MU",label:"MU",type:"string",alternativeMatches:["Mauritius"]},{value:"YT",label:"YT",type:"string",alternativeMatches:["Mayotte"]},{value:"MX",label:"MX",type:"string",alternativeMatches:["Mexico"]},{value:"FM",label:"FM",type:"string",alternativeMatches:["Micronesia (Federated States of)"]},{value:"MD",label:"MD",type:"string",alternativeMatches:["Moldova (the Republic of)"]},{value:"MC",label:"MC",type:"string",alternativeMatches:["Monaco"]},{value:"MN",label:"MN",type:"string",alternativeMatches:["Mongolia"]},{value:"ME",label:"ME",type:"string",alternativeMatches:["Montenegro"]},{value:"MS",label:"MS",type:"string",alternativeMatches:["Montserrat"]},{value:"MA",label:"MA",type:"string",alternativeMatches:["Morocco"]},{value:"MZ",label:"MZ",type:"string",alternativeMatches:["Mozambique"]},{value:"MM",label:"MM",type:"string",alternativeMatches:["Myanmar"]},{value:"NA",label:"NA",type:"string",alternativeMatches:["Namibia"]},{value:"NR",label:"NR",type:"string",alternativeMatches:["Nauru"]},{value:"NP",label:"NP",type:"string",alternativeMatches:["Nepal"]},{value:"NL",label:"NL",type:"string",alternativeMatches:["Netherlands"]},{value:"NC",label:"NC",type:"string",alternativeMatches:["New Caledonia"]},{value:"NZ",label:"NZ",type:"string",alternativeMatches:["New Zealand"]},{value:"NI",label:"NI",type:"string",alternativeMatches:["Nicaragua"]},{value:"NE",label:"NE",type:"string",alternativeMatches:["Niger"]},{value:"NG",label:"NG",type:"string",alternativeMatches:["Nigeria"]},{value:"NU",label:"NU",type:"string",alternativeMatches:["Niue"]},{value:"NF",label:"NF",type:"string",alternativeMatches:["Norfolk Island"]},{value:"MP",label:"MP",type:"string",alternativeMatches:["Northern Mariana Islands"]},{value:"NO",label:"NO",type:"string",alternativeMatches:["Norway"]},{value:"OM",label:"OM",type:"string",alternativeMatches:["Oman"]},{value:"PK",label:"PK",type:"string",alternativeMatches:["Pakistan"]},{value:"PW",label:"PW",type:"string",alternativeMatches:["Palau"]},{value:"PS",label:"PS",type:"string",alternativeMatches:["Palestinian Territory, Occupied"]},{value:"PA",label:"PA",type:"string",alternativeMatches:["Panama"]},{value:"PG",label:"PG",type:"string",alternativeMatches:["Papua New Guinea"]},{value:"PY",label:"PY",type:"string",alternativeMatches:["Paraguay"]},{value:"PE",label:"PE",type:"string",alternativeMatches:["Peru"]},{value:"PH",label:"PH",type:"string",alternativeMatches:["Philippines"]},{value:"PN",label:"PN",type:"string",alternativeMatches:["Pitcairn"]},{value:"PL",label:"PL",type:"string",alternativeMatches:["Poland"]},{value:"PT",label:"PT",type:"string",alternativeMatches:["Portugal"]},{value:"PR",label:"PR",type:"string",alternativeMatches:["Puerto Rico"]},{value:"QA",label:"QA",type:"string",alternativeMatches:["Qatar"]},{value:"RE",label:"RE",type:"string",alternativeMatches:["R\xE9union"]},{value:"RO",label:"RO",type:"string",alternativeMatches:["Romania"]},{value:"RU",label:"RU",type:"string",alternativeMatches:["Russian Federation"]},{value:"RW",label:"RW",type:"string",alternativeMatches:["Rwanda"]},{value:"BL",label:"BL",type:"string",alternativeMatches:["Saint Barth\xE9lemy"]},{value:"SH",label:"SH",type:"string",alternativeMatches:["Saint Helena, Ascension and Tristan da Cunha"]},{value:"KN",label:"KN",type:"string",alternativeMatches:["Saint Kitts and Nevis","Saint Kitts","Nevis"]},{value:"LC",label:"LC",type:"string",alternativeMatches:["Saint Lucia"]},{value:"MF",label:"MF",type:"string",alternativeMatches:["Saint Martin (French part)"]},{value:"PM",label:"PM",type:"string",alternativeMatches:["Saint Pierre and Miquelon","Saint Pierre","Miquelon"]},{value:"VC",label:"VC",type:"string",alternativeMatches:["Saint Vincent and the Grenadines","Saint Vincent","Grenadines"]},{value:"WS",label:"WS",type:"string",alternativeMatches:["Samoa"]},{value:"SM",label:"SM",type:"string",alternativeMatches:["San Marino"]},{value:"ST",label:"ST",type:"string",alternativeMatches:["Sao Tome and Principe","Sao Tome","Principe"]},{value:"SA",label:"SA",type:"string",alternativeMatches:["Saudi Arabia"]},{value:"SN",label:"SN",type:"string",alternativeMatches:["Senegal"]},{value:"RS",label:"RS",type:"string",alternativeMatches:["Serbia"]},{value:"SC",label:"SC",type:"string",alternativeMatches:["Seychelles"]},{value:"SL",label:"SL",type:"string",alternativeMatches:["Sierra Leone"]},{value:"SG",label:"SG",type:"string",alternativeMatches:["Singapore"]},{value:"SX",label:"SX",type:"string",alternativeMatches:["Sint Maarten"]},{value:"SK",label:"SK",type:"string",alternativeMatches:["Slovakia"]},{value:"SI",label:"SI",type:"string",alternativeMatches:["Slovenia"]},{value:"SB",label:"SB",type:"string",alternativeMatches:["Solomon Islands"]},{value:"SO",label:"SO",type:"string",alternativeMatches:["Somalia"]},{value:"ZA",label:"ZA",type:"string",alternativeMatches:["South Africa"]},{value:"GS",label:"GS",type:"string",alternativeMatches:["South Georgia and the South Sandwich Islands","South Georgia","South Sandwich Islands"]},{value:"SS",label:"SS",type:"string",alternativeMatches:["South Sudan"]},{value:"ES",label:"ES",type:"string",alternativeMatches:["Spain"]},{value:"LK",label:"LK",type:"string",alternativeMatches:["Sri Lanka"]},{value:"SD",label:"SD",type:"string",alternativeMatches:["Sudan"]},{value:"SR",label:"SR",type:"string",alternativeMatches:["Suriname"]},{value:"SJ",label:"SJ",type:"string",alternativeMatches:["Svalbard and Jan Mayen","Svalbard","Jan Mayen"]},{value:"SZ",label:"SZ",type:"string",alternativeMatches:["Swaziland","Eswatini"]},{value:"SE",label:"SE",type:"string",alternativeMatches:["Sweden"]},{value:"CH",label:"CH",type:"string",alternativeMatches:["Switzerland"]},{value:"SY",label:"SY",type:"string",alternativeMatches:["Syrian Arab Republic"]},{value:"TW",label:"TW",type:"string",alternativeMatches:["Taiwan, Province of China"]},{value:"TJ",label:"TJ",type:"string",alternativeMatches:["Tajikistan"]},{value:"TZ",label:"TZ",type:"string",alternativeMatches:["Tanzania, United Republic of","Tanzania"]},{value:"TH",label:"TH",type:"string",alternativeMatches:["Thailand"]},{value:"TL",label:"TL",type:"string",alternativeMatches:["Timor-Leste"]},{value:"TG",label:"TG",type:"string",alternativeMatches:["Togo"]},{value:"TK",label:"TK",type:"string",alternativeMatches:["Tokelau"]},{value:"TO",label:"TO",type:"string",alternativeMatches:["Tonga"]},{value:"TT",label:"TT",type:"string",alternativeMatches:["Trinidad and Tobago","Trinidad","Tobago"]},{value:"TN",label:"TN",type:"string",alternativeMatches:["Tunisia"]},{value:"TR",label:"TR",type:"string",alternativeMatches:["Turkey"]},{value:"TM",label:"TM",type:"string",alternativeMatches:["Turkmenistan"]},{value:"TC",label:"TC",type:"string",alternativeMatches:["Turks and Caicos Islands"]},{value:"TV",label:"TV",type:"string",alternativeMatches:["Tuvalu"]},{value:"UG",label:"UG",type:"string",alternativeMatches:["Uganda"]},{value:"UA",label:"UA",type:"string",alternativeMatches:["Ukraine"]},{value:"AE",label:"AE",type:"string",alternativeMatches:["United Arab Emirates","UAE"]},{value:"GB",label:"GB",type:"string",alternativeMatches:["United Kingdom"]},{value:"US",label:"US",type:"string",alternativeMatches:["United States"]},{value:"UM",label:"UM",type:"string",alternativeMatches:["United States Minor Outlying Islands"]},{value:"UY",label:"UY",type:"string",alternativeMatches:["Uruguay"]},{value:"UZ",label:"UZ",type:"string",alternativeMatches:["Uzbekistan"]},{value:"VU",label:"VU",type:"string",alternativeMatches:["Vanuatu"]},{value:"VE",label:"VE",type:"string",alternativeMatches:["Venezuela (Bolivarian Republic of)","Venezuela","Bolivarian"]},{value:"VN",label:"VN",type:"string",alternativeMatches:["Viet Nam"]},{value:"VG",label:"VG",type:"string",alternativeMatches:["Virgin Islands (British)","British"]},{value:"VI",label:"VI",type:"string",alternativeMatches:["Virgin Islands (U.S.)"]},{value:"WF",label:"WF",type:"string",alternativeMatches:["Wallis and Futuna"]},{value:"EH",label:"EH",type:"string",alternativeMatches:["Western Sahara"]},{value:"YE",label:"YE",type:"string",alternativeMatches:["Yemen"]},{value:"ZM",label:"ZM",type:"string",alternativeMatches:["Zambia"]},{value:"ZW",label:"ZW",type:"string",alternativeMatches:["Zimbabwe"]}],L=[{value:"AFG",label:"AFG",type:"string",alternativeMatches:["Afghanistan"]},{value:"ALA",label:"ALA",type:"string",alternativeMatches:["\xC5land Islands"]},{value:"ALB",label:"ALB",type:"string",alternativeMatches:["Albania"]},{value:"DZA",label:"DZA",type:"string",alternativeMatches:["Algeria"]},{value:"ASM",label:"ASM",type:"string",alternativeMatches:["American Samoa"]},{value:"AND",label:"AND",type:"string",alternativeMatches:["Andorra"]},{value:"AGO",label:"AGO",type:"string",alternativeMatches:["Angola"]},{value:"AIA",label:"AIA",type:"string",alternativeMatches:["Anguilla"]},{value:"ATA",label:"ATA",type:"string",alternativeMatches:["Antarctica"]},{value:"ATG",label:"ATG",type:"string",alternativeMatches:["Antigua and Barbuda","Antigua","Barbuda"]},{value:"ARG",label:"ARG",type:"string",alternativeMatches:["Argentina"]},{value:"ARM",label:"ARM",type:"string",alternativeMatches:["Armenia"]},{value:"ABW",label:"ABW",type:"string",alternativeMatches:["Aruba"]},{value:"AUS",label:"AUS",type:"string",alternativeMatches:["Australia"]},{value:"AUT",label:"AUT",type:"string",alternativeMatches:["Austria"]},{value:"AZE",label:"AZE",type:"string",alternativeMatches:["Azerbaijan"]},{value:"BHS",label:"BHS",type:"string",alternativeMatches:["Bahamas"]},{value:"BHR",label:"BHR",type:"string",alternativeMatches:["Bahrain"]},{value:"BGD",label:"BGD",type:"string",alternativeMatches:["Bangladesh"]},{value:"BRB",label:"BRB",type:"string",alternativeMatches:["Barbados"]},{value:"BLR",label:"BLR",type:"string",alternativeMatches:["Belarus"]},{value:"BEL",label:"BEL",type:"string",alternativeMatches:["Belgium"]},{value:"BLZ",label:"BLZ",type:"string",alternativeMatches:["Belize"]},{value:"BEN",label:"BEN",type:"string",alternativeMatches:["Benin"]},{value:"BMU",label:"BMU",type:"string",alternativeMatches:["Bermuda"]},{value:"BTN",label:"BTN",type:"string",alternativeMatches:["Bhutan"]},{value:"BOL",label:"BOL",type:"string",alternativeMatches:["Bolivia (Plurinational State of)","Bolivia"]},{value:"BES",label:"BES",type:"string",alternativeMatches:["Bonaire, Sint Eustatius and Saba"]},{value:"BIH",label:"BIH",type:"string",alternativeMatches:["Bosnia and Herzegovina"]},{value:"BWA",label:"BWA",type:"string",alternativeMatches:["Botswana"]},{value:"BVT",label:"BVT",type:"string",alternativeMatches:["Bouvet Island"]},{value:"BRA",label:"BRA",type:"string",alternativeMatches:["Brazil"]},{value:"IOT",label:"IOT",type:"string",alternativeMatches:["British Indian Ocean Territory"]},{value:"BRN",label:"BRN",type:"string",alternativeMatches:["Brunei Darussalam"]},{value:"BGR",label:"BGR",type:"string",alternativeMatches:["Bulgaria"]},{value:"BFA",label:"BFA",type:"string",alternativeMatches:["Burkina Faso"]},{value:"BDI",label:"BDI",type:"string",alternativeMatches:["Burundi"]},{value:"KHM",label:"KHM",type:"string",alternativeMatches:["Cambodia"]},{value:"CMR",label:"CMR",type:"string",alternativeMatches:["Cameroon"]},{value:"CAN",label:"CAN",type:"string",alternativeMatches:["Canada"]},{value:"CPV",label:"CPV",type:"string",alternativeMatches:["Cape Verde"]},{value:"CYM",label:"CYM",type:"string",alternativeMatches:["Cayman Islands"]},{value:"CAF",label:"CAF",type:"string",alternativeMatches:["Central African Republic"]},{value:"TCD",label:"TCD",type:"string",alternativeMatches:["Chad"]},{value:"CHL",label:"CHL",type:"string",alternativeMatches:["Chile"]},{value:"CHN",label:"CHN",type:"string",alternativeMatches:["China"]},{value:"CXR",label:"CXR",type:"string",alternativeMatches:["Christmas Island"]},{value:"CCK",label:"CCK",type:"string",alternativeMatches:["Cocos (Keeling) Islands"]},{value:"COL",label:"COL",type:"string",alternativeMatches:["Colombia"]},{value:"COM",label:"COM",type:"string",alternativeMatches:["Comoros"]},{value:"COG",label:"COG",type:"string",alternativeMatches:["Congo"]},{value:"COD",label:"COD",type:"string",alternativeMatches:["Congo (the Democratic Republic of the)"]},{value:"COK",label:"COK",type:"string",alternativeMatches:["Cook Islands"]},{value:"CRI",label:"CRI",type:"string",alternativeMatches:["Costa Rica"]},{value:"CIV",label:"CIV",type:"string",alternativeMatches:["C\xF4te d'Ivoire"]},{value:"HRV",label:"HRV",type:"string",alternativeMatches:["Croatia"]},{value:"CUB",label:"CUB",type:"string",alternativeMatches:["Cuba"]},{value:"CUW",label:"CUW",type:"string",alternativeMatches:["Cura\xE7ao"]},{value:"CYP",label:"CYP",type:"string",alternativeMatches:["Cyprus"]},{value:"CZE",label:"CZE",type:"string",alternativeMatches:["Czechia","Czech Republic"]},{value:"DNK",label:"DNK",type:"string",alternativeMatches:["Denmark"]},{value:"DJI",label:"DJI",type:"string",alternativeMatches:["Djibouti"]},{value:"DMA",label:"DMA",type:"string",alternativeMatches:["Dominica"]},{value:"DOM",label:"DOM",type:"string",alternativeMatches:["Dominican Republic"]},{value:"ECU",label:"ECU",type:"string",alternativeMatches:["Ecuador"]},{value:"EGY",label:"EGY",type:"string",alternativeMatches:["Egypt"]},{value:"SLV",label:"SLV",type:"string",alternativeMatches:["El Salvador"]},{value:"GNQ",label:"GNQ",type:"string",alternativeMatches:["Equatorial Guinea"]},{value:"ERI",label:"ERI",type:"string",alternativeMatches:["Eritrea"]},{value:"EST",label:"EST",type:"string",alternativeMatches:["Estonia"]},{value:"ETH",label:"ETH",type:"string",alternativeMatches:["Ethiopia"]},{value:"FLK",label:"FLK",type:"string",alternativeMatches:["Falkland Islands (Malvinas)"]},{value:"FRO",label:"FRO",type:"string",alternativeMatches:["Faroe Islands"]},{value:"FJI",label:"FJI",type:"string",alternativeMatches:["Fiji"]},{value:"FIN",label:"FIN",type:"string",alternativeMatches:["Finland"]},{value:"FRA",label:"FRA",type:"string",alternativeMatches:["France"]},{value:"GUF",label:"GUF",type:"string",alternativeMatches:["French Guiana"]},{value:"PYF",label:"PYF",type:"string",alternativeMatches:["French Polynesia"]},{value:"ATF",label:"ATF",type:"string",alternativeMatches:["French Southern Territories"]},{value:"GAB",label:"GAB",type:"string",alternativeMatches:["Gabon"]},{value:"GMB",label:"GMB",type:"string",alternativeMatches:["Gambia"]},{value:"GEO",label:"GEO",type:"string",alternativeMatches:["Georgia"]},{value:"DEU",label:"DEU",type:"string",alternativeMatches:["Germany"]},{value:"GHA",label:"GHA",type:"string",alternativeMatches:["Ghana"]},{value:"GIB",label:"GIB",type:"string",alternativeMatches:["Gibraltar"]},{value:"GRC",label:"GRC",type:"string",alternativeMatches:["Greece"]},{value:"GRL",label:"GRL",type:"string",alternativeMatches:["Greenland"]},{value:"GRD",label:"GRD",type:"string",alternativeMatches:["Grenada"]},{value:"GLP",label:"GLP",type:"string",alternativeMatches:["Guadeloupe"]},{value:"GUM",label:"GUM",type:"string",alternativeMatches:["Guam"]},{value:"GTM",label:"GTM",type:"string",alternativeMatches:["Guatemala"]},{value:"GGY",label:"GGY",type:"string",alternativeMatches:["Guernsey"]},{value:"GIN",label:"GIN",type:"string",alternativeMatches:["Guinea"]},{value:"GNB",label:"GNB",type:"string",alternativeMatches:["Guinea-Bissau"]},{value:"GUY",label:"GUY",type:"string",alternativeMatches:["Guyana"]},{value:"HTI",label:"HTI",type:"string",alternativeMatches:["Haiti"]},{value:"HMD",label:"HMD",type:"string",alternativeMatches:["Heard Island and McDonald Islands","Heard Island","McDonald Islands"]},{value:"VAT",label:"VAT",type:"string",alternativeMatches:["Holy See (Vatican City State)"]},{value:"HND",label:"HND",type:"string",alternativeMatches:["Honduras"]},{value:"HKG",label:"HKG",type:"string",alternativeMatches:["Hong Kong"]},{value:"HUN",label:"HUN",type:"string",alternativeMatches:["Hungary"]},{value:"ISL",label:"ISL",type:"string",alternativeMatches:["Iceland"]},{value:"IND",label:"IND",type:"string",alternativeMatches:["India"]},{value:"IDN",label:"IDN",type:"string",alternativeMatches:["Indonesia"]},{value:"IRN",label:"IRN",type:"string",alternativeMatches:["Iran (Islamic Republic of) ","Iran"]},{value:"IRQ",label:"IRQ",type:"string",alternativeMatches:["Iraq"]},{value:"IRL",label:"IRL",type:"string",alternativeMatches:["Ireland"]},{value:"IMN",label:"IMN",type:"string",alternativeMatches:["Isle of Man"]},{value:"ISR",label:"ISR",type:"string",alternativeMatches:["Israel"]},{value:"ITA",label:"ITA",type:"string",alternativeMatches:["Italy"]},{value:"JAM",label:"JAM",type:"string",alternativeMatches:["Jamaica"]},{value:"JPN",label:"JPN",type:"string",alternativeMatches:["Japan"]},{value:"JEY",label:"JEY",type:"string",alternativeMatches:["Jersey"]},{value:"JOR",label:"JOR",type:"string",alternativeMatches:["Jordan"]},{value:"KAZ",label:"KAZ",type:"string",alternativeMatches:["Kazakhstan"]},{value:"KEN",label:"KEN",type:"string",alternativeMatches:["Kenya"]},{value:"KIR",label:"KIR",type:"string",alternativeMatches:["Kiribati"]},{value:"PRK",label:"PRK",type:"string",alternativeMatches:["Democratic People's Republic of Korea","North Korea"]},{value:"KOR",label:"KOR",type:"string",alternativeMatches:["Korea, Republic of Korea","South Korea"]},{value:"KWT",label:"KWT",type:"string",alternativeMatches:["Kuwait"]},{value:"KGZ",label:"KGZ",type:"string",alternativeMatches:["Kyrgyzstan"]},{value:"LAO",label:"LAO",type:"string",alternativeMatches:["Lao People's Democratic Republic"]},{value:"LVA",label:"LVA",type:"string",alternativeMatches:["Latvia"]},{value:"LBN",label:"LBN",type:"string",alternativeMatches:["Lebanon"]},{value:"LSO",label:"LSO",type:"string",alternativeMatches:["Lesotho"]},{value:"LBR",label:"LBR",type:"string",alternativeMatches:["Liberia"]},{value:"LBY",label:"LBY",type:"string",alternativeMatches:["Libya"]},{value:"LIE",label:"LIE",type:"string",alternativeMatches:["Liechtenstein"]},{value:"LTU",label:"LTU",type:"string",alternativeMatches:["Lithuania"]},{value:"LUX",label:"LUX",type:"string",alternativeMatches:["Luxembourg"]},{value:"MAC",label:"MAC",type:"string",alternativeMatches:["Macao"]},{value:"MKD",label:"MKD",type:"string",alternativeMatches:["Republic of North Macedonia","North Macedonia"]},{value:"MDG",label:"MDG",type:"string",alternativeMatches:["Madagascar"]},{value:"MWI",label:"MWI",type:"string",alternativeMatches:["Malawi"]},{value:"MYS",label:"MYS",type:"string",alternativeMatches:["Malaysia"]},{value:"MDV",label:"MDV",type:"string",alternativeMatches:["Maldives"]},{value:"MLI",label:"MLI",type:"string",alternativeMatches:["Mali"]},{value:"MLT",label:"MLT",type:"string",alternativeMatches:["Malta"]},{value:"MHL",label:"MHL",type:"string",alternativeMatches:["Marshall Islands"]},{value:"MTQ",label:"MTQ",type:"string",alternativeMatches:["Martinique"]},{value:"MRT",label:"MRT",type:"string",alternativeMatches:["Mauritania"]},{value:"MUS",label:"MUS",type:"string",alternativeMatches:["Mauritius"]},{value:"MYT",label:"MYT",type:"string",alternativeMatches:["Mayotte"]},{value:"MEX",label:"MEX",type:"string",alternativeMatches:["Mexico"]},{value:"FSM",label:"FSM",type:"string",alternativeMatches:["Micronesia (Federated States of)"]},{value:"MDA",label:"MDA",type:"string",alternativeMatches:["Moldova (the Republic of)"]},{value:"MCO",label:"MCO",type:"string",alternativeMatches:["Monaco"]},{value:"MNG",label:"MNG",type:"string",alternativeMatches:["Mongolia"]},{value:"MNE",label:"MNE",type:"string",alternativeMatches:["Montenegro"]},{value:"MSR",label:"MSR",type:"string",alternativeMatches:["Montserrat"]},{value:"MAR",label:"MAR",type:"string",alternativeMatches:["Morocco"]},{value:"MOZ",label:"MOZ",type:"string",alternativeMatches:["Mozambique"]},{value:"MMR",label:"MMR",type:"string",alternativeMatches:["Myanmar"]},{value:"NAM",label:"NAM",type:"string",alternativeMatches:["Namibia"]},{value:"NRU",label:"NRU",type:"string",alternativeMatches:["Nauru"]},{value:"NPL",label:"NPL",type:"string",alternativeMatches:["Nepal"]},{value:"NLD",label:"NLD",type:"string",alternativeMatches:["Netherlands"]},{value:"NCL",label:"NCL",type:"string",alternativeMatches:["New Caledonia"]},{value:"NZL",label:"NZL",type:"string",alternativeMatches:["New Zealand"]},{value:"NIC",label:"NIC",type:"string",alternativeMatches:["Nicaragua"]},{value:"NER",label:"NER",type:"string",alternativeMatches:["Niger"]},{value:"NGA",label:"NGA",type:"string",alternativeMatches:["Nigeria"]},{value:"NIU",label:"NIU",type:"string",alternativeMatches:["Niue"]},{value:"NFK",label:"NFK",type:"string",alternativeMatches:["Norfolk Island"]},{value:"MNP",label:"MNP",type:"string",alternativeMatches:["Northern Mariana Islands"]},{value:"NOR",label:"NOR",type:"string",alternativeMatches:["Norway"]},{value:"OMN",label:"OMN",type:"string",alternativeMatches:["Oman"]},{value:"PAK",label:"PAK",type:"string",alternativeMatches:["Pakistan"]},{value:"PLW",label:"PLW",type:"string",alternativeMatches:["Palau"]},{value:"PSE",label:"PSE",type:"string",alternativeMatches:["Palestinian Territory, Occupied"]},{value:"PAN",label:"PAN",type:"string",alternativeMatches:["Panama"]},{value:"PNG",label:"PNG",type:"string",alternativeMatches:["Papua New Guinea"]},{value:"PRY",label:"PRY",type:"string",alternativeMatches:["Paraguay"]},{value:"PER",label:"PER",type:"string",alternativeMatches:["Peru"]},{value:"PHL",label:"PHL",type:"string",alternativeMatches:["Philippines"]},{value:"PCN",label:"PCN",type:"string",alternativeMatches:["Pitcairn"]},{value:"POL",label:"POL",type:"string",alternativeMatches:["Poland"]},{value:"PRT",label:"PRT",type:"string",alternativeMatches:["Portugal"]},{value:"PRI",label:"PRI",type:"string",alternativeMatches:["Puerto Rico"]},{value:"QAT",label:"QAT",type:"string",alternativeMatches:["Qatar"]},{value:"REU",label:"REU",type:"string",alternativeMatches:["R\xE9union"]},{value:"ROU",label:"ROU",type:"string",alternativeMatches:["Romania"]},{value:"RUS",label:"RUS",type:"string",alternativeMatches:["Russian Federation"]},{value:"RWA",label:"RWA",type:"string",alternativeMatches:["Rwanda"]},{value:"BLM",label:"BLM",type:"string",alternativeMatches:["Saint Barth\xE9lemy"]},{value:"SHN",label:"SHN",type:"string",alternativeMatches:["Saint Helena, Ascension and Tristan da Cunha"]},{value:"KNA",label:"KNA",type:"string",alternativeMatches:["Saint Kitts and Nevis","Saint Kitts","Nevis"]},{value:"LCA",label:"LCA",type:"string",alternativeMatches:["Saint Lucia"]},{value:"MAF",label:"MAF",type:"string",alternativeMatches:["Saint Martin (French part)"]},{value:"SPM",label:"SPM",type:"string",alternativeMatches:["Saint Pierre and Miquelon","Saint Pierre","Miquelon"]},{value:"VCT",label:"VCT",type:"string",alternativeMatches:["Saint Vincent and the Grenadines","Saint Vincent","Grenadines"]},{value:"WSM",label:"WSM",type:"string",alternativeMatches:["Samoa"]},{value:"SMR",label:"SMR",type:"string",alternativeMatches:["San Marino"]},{value:"STP",label:"STP",type:"string",alternativeMatches:["Sao Tome and Principe","Sao Tome","Principe"]},{value:"SAU",label:"SAU",type:"string",alternativeMatches:["Saudi Arabia"]},{value:"SEN",label:"SEN",type:"string",alternativeMatches:["Senegal"]},{value:"SRB",label:"SRB",type:"string",alternativeMatches:["Serbia"]},{value:"SYC",label:"SYC",type:"string",alternativeMatches:["Seychelles"]},{value:"SLE",label:"SLE",type:"string",alternativeMatches:["Sierra Leone"]},{value:"SGP",label:"SGP",type:"string",alternativeMatches:["Singapore"]},{value:"SXM",label:"SXM",type:"string",alternativeMatches:["Sint Maarten (Dutch part)"]},{value:"SVK",label:"SVK",type:"string",alternativeMatches:["Slovakia"]},{value:"SVN",label:"SVN",type:"string",alternativeMatches:["Slovenia"]},{value:"SLB",label:"SLB",type:"string",alternativeMatches:["Solomon Islands"]},{value:"SOM",label:"SOM",type:"string",alternativeMatches:["Somalia"]},{value:"ZAF",label:"ZAF",type:"string",alternativeMatches:["South Africa"]},{value:"SGS",label:"SGS",type:"string",alternativeMatches:["South Georgia and the South Sandwich Islands","South Georgia","South Sandwich Islands"]},{value:"SSD",label:"SSD",type:"string",alternativeMatches:["South Sudan"]},{value:"ESP",label:"ESP",type:"string",alternativeMatches:["Spain"]},{value:"LKA",label:"LKA",type:"string",alternativeMatches:["Sri Lanka"]},{value:"SDN",label:"SDN",type:"string",alternativeMatches:["Sudan"]},{value:"SUR",label:"SUR",type:"string",alternativeMatches:["Suriname"]},{value:"SJM",label:"SJM",type:"string",alternativeMatches:["Svalbard and Jan Mayen","Svalbard","Jan Mayen"]},{value:"SWZ",label:"SWZ",type:"string",alternativeMatches:["Swaziland","Eswatini"]},{value:"SWE",label:"SWE",type:"string",alternativeMatches:["Sweden"]},{value:"CHE",label:"CHE",type:"string",alternativeMatches:["Switzerland"]},{value:"SYR",label:"SYR",type:"string",alternativeMatches:["Syrian Arab Republic"]},{value:"TWN",label:"TWN",type:"string",alternativeMatches:["Taiwan, Province of China"]},{value:"TJK",label:"TJK",type:"string",alternativeMatches:["Tajikistan"]},{value:"TZA",label:"TZA",type:"string",alternativeMatches:["Tanzania, United Republic of"]},{value:"THA",label:"THA",type:"string",alternativeMatches:["Thailand"]},{value:"TLS",label:"TLS",type:"string",alternativeMatches:["Timor-Leste"]},{value:"TGO",label:"TGO",type:"string",alternativeMatches:["Togo"]},{value:"TKL",label:"TKL",type:"string",alternativeMatches:["Tokelau"]},{value:"TON",label:"TON",type:"string",alternativeMatches:["Tonga"]},{value:"TTO",label:"TTO",type:"string",alternativeMatches:["Trinidad and Tobago","Trinidad","Tobago"]},{value:"TUN",label:"TUN",type:"string",alternativeMatches:["Tunisia"]},{value:"TUR",label:"TUR",type:"string",alternativeMatches:["Turkey"]},{value:"TKM",label:"TKM",type:"string",alternativeMatches:["Turkmenistan"]},{value:"TCA",label:"TCA",type:"string",alternativeMatches:["Turks and Caicos Islands"]},{value:"TUV",label:"TUV",type:"string",alternativeMatches:["Tuvalu"]},{value:"UGA",label:"UGA",type:"string",alternativeMatches:["Uganda"]},{value:"UKR",label:"UKR",type:"string",alternativeMatches:["Ukraine"]},{value:"ARE",label:"ARE",type:"string",alternativeMatches:["United Arab Emirates"]},{value:"GBR",label:"GBR",type:"string",alternativeMatches:["United Kingdom"]},{value:"USA",label:"USA",type:"string",alternativeMatches:["United States"]},{value:"UMI",label:"UMI",type:"string",alternativeMatches:["United States Minor Outlying Islands"]},{value:"URY",label:"URY",type:"string",alternativeMatches:["Uruguay"]},{value:"UZB",label:"UZB",type:"string",alternativeMatches:["Uzbekistan"]},{value:"VUT",label:"VUT",type:"string",alternativeMatches:["Vanuatu"]},{value:"VEN",label:"VEN",type:"string",alternativeMatches:["Venezuela (Bolivarian Republic of)","Venezuela","Bolivarian"]},{value:"VNM",label:"VNM",type:"string",alternativeMatches:["Viet Nam"]},{value:"VGB",label:"VGB",type:"string",alternativeMatches:["Virgin Islands (British)","British"]},{value:"VIR",label:"VIR",type:"string",alternativeMatches:["Virgin Islands (U.S.)"]},{value:"WLF",label:"WLF",type:"string",alternativeMatches:["Wallis and Futuna"]},{value:"ESH",label:"ESH",type:"string",alternativeMatches:["Western Sahara"]},{value:"YEM",label:"YEM",type:"string",alternativeMatches:["Yemen"]},{value:"ZMB",label:"ZMB",type:"string",alternativeMatches:["Zambia"]},{value:"ZWE",label:"ZWE",type:"string",alternativeMatches:["Zimbabwe"]}];import{isArray as Y}from"lodash";var R=class t{constructor(a,e){this.dataModels=[];this.mapValidation=a=>{switch(a){case"regex":return"REGEX";case"required":return"REQUIRED";case"required_with":return"REQUIRED_WITH";case"required_with_all":return"REQUIRED_WITH_ALL";case"required_with_all_values":return"REQUIRED_WITH_ALL_VALUES";case"required_with_values":return"REQUIRED_WITH_VALUES";case"required_without":return"REQUIRED_WITHOUT";case"required_without_all":return"REQUIRED_WITHOUT_ALL";case"required_without_all_values":return"REQUIRED_WITHOUT_ALL_VALUES";case"required_without_values":return"REQUIRED_WITHOUT_VALUES";case"unique":return"UNIQUE";case"compare":return"COMPARE";default:throw new Error(`validation "${a}" isn't in available options`)}};this.getValidator=(a,e)=>new E({validation:this.mapValidation(a.validate),regex:a.regex??void 0,fields:a.columnValues?.map(l=>({key:l.key,value:l.value??[],type:this.findDataModelTypeByKey(l.key,e),label:this.findDataModelLabelByKey(l.key,e)}))??[],errorMessage:a.errorMessage,operator:a.operator,value:a.value});this.findDataModel=a=>this.columns.find(e=>e.key===a);this.findDataModelTypeByKey=(a,e)=>{let l=this.findDataModel(a);if(l)return t.mapDataModelType({columnType:l.columnType});if(e.checkValidation)throw new Error(`validation key "${a}" isn't found.`);return"string"};this.findDataModelLabelByKey=(a,e)=>{let l=this.findDataModel(a);if(l)return l.label;if(e.checkValidation)throw new Error(`validation key "${a}" isn't found.`);return""};this.validatorParser=a=>{let e=a.validate.toUpperCase(),l=a.columnValues??{},r=a.columns??[];return e==="REQUIRED_WITH_VALUES"||e==="REQUIRED_WITH_ALL_VALUES"||e==="REQUIRED_WITHOUT_VALUES"||e==="REQUIRED_WITHOUT_ALL_VALUES"?Object.keys(l).map(n=>({key:n,value:Y(l[n])?l[n]:[l[n]]})):e==="REQUIRED_WITH"||e==="REQUIRED_WITHOUT"||e==="REQUIRED_WITHOUT_ALL"||e==="REQUIRED_WITH_ALL"?r.map(n=>({key:n})):[]};this.setDataModels=a=>{this.dataModels=this.columns.map(e=>{let l=t.mapDataModelType({columnType:e.columnType});e.numberFormat===void 0&&l==="currency_usd"&&(e.numberFormat="us");let r=e.optionMappingConfiguration?.processingMode??"browser",n=e.optionMappingConfiguration?.layers&&e.optionMappingConfiguration?.layers.length>0?e.optionMappingConfiguration?.layers:["smart","historic","fuzzy","exact"];a.enableNodeProcessing||(r="browser",n=n.filter(i=>i!=="historic"&&i!=="smart")),a.enableReuseMapping||(n=n.filter(i=>i!=="historic"));let v={layers:n,processingMode:r,threshold:e.optionMappingConfiguration?.threshold??.6},s={description:e.description??"",example:e.example??"",key:e.key,label:e.label,type:l,isRequired:!1,outputFormat:e.outputFormat??"",inputFormat:l==="date"?N(e.inputFormat):null,validators:e.validations?.map(i=>this.getValidator({...i,columnValues:this.validatorParser(i)},a)),mappingValidation:e.mappingValidation,alternativeMatches:e.alternativeMatches,columnSize:1,columnWidth:e.columnWidth,numberFormat:e.numberFormat||"eu",hidden:e.hidden,disabled:e.disabled,optionMappingConfiguration:v,excludeFromAutoMatching:e.excludeFromAutoMatching};return p.isTypeCategory(l)?new B({...s,type:l,options:t.createDropdownOptions(e),isMultiSelection:e.isMultiSelect??!1,allowCustomOptions:e.allowCustomOptions,allowedCustomOptionTypes:e.allowedCustomOptionTypes,preserveUnmappedOptions:t.sanitizePreserveUnmappedOptions(e.preserveUnmappedOptions)}):new p(s)})};this.getDataModels=()=>this.dataModels;this.columns=a,this.setDataModels(e)}static{this.mapDataModelType=({columnType:a})=>{switch(a){case"boolean":return"boolean";case"int":return"int";case"float":return"float";case"category":return"single-select";case"date":return"date";case"date_dmy":return"date_dmy";case"date_mdy":return"date_mdy";case"date_iso":return"date_iso";case"datetime":return"datetime";case"time_hms":return"time_hms";case"time_hms_24":return"time_hms_24";case"time_hm":return"time_hm";case"time_hm_24":return"time_hm_24";case"email":return"email";case"url_www":return"url_www";case"url_https":return"url_https";case"url":return"url";case"phone":return"phone";case"zip_code_de":return"zip_code_de";case"percentage":return"percentage";case"country_code_alpha_2":return"country_code_alpha_2";case"country_code_alpha_3":return"country_code_alpha_3";case"currency_code":return"currency_code";case"currency_eur":return"currency_eur";case"currency_usd":return"currency_usd";case"bic":return"bic";case"vat_eu":return"vat_eu";case"gtin":return"gtin";case"iban":return"iban";default:return"string"}}}static{this.mapColumnType=({dataType:a})=>{switch(a){case"boolean":return"boolean";case"int":return"int";case"float":return"float";case"single-select":return"category";case"date":return"date";case"date_dmy":return"date_dmy";case"date_mdy":return"date_mdy";case"date_iso":return"date_iso";case"datetime":return"datetime";case"time_hms":return"time_hms";case"time_hms_24":return"time_hms_24";case"time_hm":return"time_hm";case"time_hm_24":return"time_hm_24";case"email":return"email";case"url_www":return"url_www";case"url_https":return"url_https";case"url":return"url";case"phone":return"phone";case"zip_code_de":return"zip_code_de";case"percentage":return"percentage";case"country_code_alpha_2":return"country_code_alpha_2";case"country_code_alpha_3":return"country_code_alpha_3";case"currency_code":return"currency_code";case"currency_eur":return"currency_eur";case"currency_usd":return"currency_usd";case"bic":return"bic";case"vat_eu":return"vat_eu";case"gtin":return"gtin";case"iban":return"iban";default:return"string"}}}static{this.VALID_PRESERVE_UNMAPPED_OPTIONS=["none","optional-off","optional-on","always"]}static{this.sanitizePreserveUnmappedOptions=a=>{if(typeof a=="string"&&t.VALID_PRESERVE_UNMAPPED_OPTIONS.includes(a))return a}}static{this.createDropdownOptions=a=>a.columnType==="category"?a.dropdownOptions?.map(e=>({label:`${e.label}`,value:`${e.value}`,type:e.type,alternativeMatches:e.alternativeMatches??[],validations:e.validations??[],description:e.description??""}))??[]:a.columnType==="currency_code"?P:a.columnType==="country_code_alpha_2"?D:a.columnType==="country_code_alpha_3"?L:[]}},G=R;var Te=(t,a,e,l,r,n)=>{let v=0,s=0,i=0,u=!1,M=!1,{value:g,columns:A,isExact:K,isEmptyValues:b}=a,o=g?.trim();if(!b&&(W(o)||o.length===0))return;let H=b?t.length-1:t.length;for(let h=0;h<H;h++){let T=t[h],d=Object.keys(T);for(let y=0;y<d.length;y++){let C=A.findIndex(c=>c.key===d[y]),S=C>=0?A[C]:void 0;if(S===void 0)continue;let f=T[d[y]];if(m(f,{value:o??"",columns:[S],isExact:K,isEmptyValues:b})){v++;let c=n.findIndex(V=>V.key===S.key),I=n[c];(e.includes(c)||l.includes(h))&&s++,r.includes(c)&&i++,I.disabled&&(M=!0),p.isTypeCategory(G.mapDataModelType({columnType:I.columnType}))&&(u=!0)}}}return{counter:v,hidden:s,skip:i,matchedCategoryType:u,matchedDisabledColumn:M}};var U=t=>t==null||t===""||typeof t=="string"&&t.trim()==="";var O=t=>U(t)||Array.isArray(t)&&t.length===0,_=(t,a)=>typeof t=="string"?a?t.toLowerCase():t:typeof t=="number"?Number.isNaN(t)?{__nuvoNum:"NaN"}:t===1/0?{__nuvoNum:"+Infinity"}:t===-1/0?{__nuvoNum:"-Infinity"}:t:Array.isArray(t)?t.map(e=>_(e,a)):t,w=(t,a,e)=>JSON.stringify(a.map(l=>_(t[l]??null,e))),Z=({rows:t,columnKeys:a,ignoreCase:e=!1,ignoreBlanks:l=!1,excludeFromRemoval:r=[]})=>{if(a.length===0)return[];let n=new Set(r),v=new Set,s=[];for(let i=0;i<t.length;i++){if(n.has(i))continue;let u=t[i];if(l&&a.some(g=>O(u[g])))continue;let M=w(u,a,e);v.has(M)?s.push(i):v.add(M)}return s},k=({rows:t,columnKeys:a,excludeFromRemoval:e=[]})=>{if(a.length===0)return[];let l=new Set(e),r=[];for(let n=0;n<t.length;n++){if(l.has(n))continue;let v=t[n];a.every(s=>O(v[s]))&&r.push(n)}return r},Ee=t=>t.mode==="duplicate"?Z(t):k(t);export{P as a,D as b,L as c,G as d,Te as e,U as f,O as g,Ee as h};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{K as T,M as _,a as Z,b as J,c as j,d as ee,e as te,f as re,h as ie,l as oe,m as f}from"./chunk-LROANN4K.js";import{a as d,c as l,f as F,h as A}from"./chunk-REPANPD5.js";import{a as g}from"./chunk-J5WOZVPO.js";var N=class{constructor({validation:e,regex:t,fields:i,errorMessage:o,operator:n,value:s}){this.getValidation=()=>this.validation;this.getRegex=()=>this.regex;this.getFields=()=>this.fields;this.getErrorMessage=()=>this.errorMessage;this.getOperator=()=>this.operator;this.getValue=()=>this.value;this.serialize=()=>({validation:this.getValidation(),fields:this.getFields(),regex:this.getRegex(),errorMessage:this.getErrorMessage(),operator:this.getOperator(),value:this.getValue()});this.validation=e,this.regex=t,this.fields=i??[],this.errorMessage=o,this.operator=n,this.value=s}},Pt=N;var h=class r{constructor({description:e,key:t,example:i,label:o,type:n,validators:s,mappingValidation:a,alternativeMatches:p,columnSize:u,creator:m,baseKey:y,baseKeyCounter:E,outputFormat:M,inputFormat:b,numberFormat:x,hidden:S,disabled:O,optionMappingConfiguration:P,columnWidth:R,excludeFromAutoMatching:I}){this.getDescription=()=>this.description;this.getKey=()=>this.key;this.getExample=()=>this.example;this.getLabel=()=>this.label;this.setLabel=e=>{this.label=e};this.getType=()=>this.type;this.getOutputFormat=()=>r.getOutputFormat(this.outputFormat);this.getInputFormat=()=>this.inputFormat;this.getDeclaredInputFormat=()=>this.declaredInputFormat;this.setInputFormat=e=>{this.inputFormat=e};this.dateFormatPromptResolved=null;this.setDateFormatPromptResolved=e=>{this.dateFormatPromptResolved=e};this.getDateFormatPromptResolved=()=>this.dateFormatPromptResolved;this.resetSessionInputFormat=()=>{this.inputFormat=this.declaredInputFormat,this.dateFormatPromptResolved=null};this.getValidators=()=>this.validators;this.getColumnSize=()=>this.columnSize;this.getColumnWidth=()=>this.columnWidth;this.getIsRequired=()=>!!this.validators.find(t=>t.getValidation()==="REQUIRED");this.getIsUnique=()=>!!this.validators.find(t=>t.getValidation()==="UNIQUE");this.getIsUniqueAndRequired=()=>this.getIsRequired()===!0&&this.getIsUnique()===!0;this.hasMappingValidation=()=>!!(this.mappingValidation&&this.mappingValidation.logic&&this.mappingValidation.logic.trim().length>0);this.getMappingValidation=()=>this.mappingValidation||void 0;this.getAlternativeMatches=()=>this.alternativeMatches.filter(e=>!!e);this.getCreator=()=>this.creator;this.getBaseKey=()=>this.baseKey;this.getBaseKeyCounter=()=>this.baseKeyCounter;this.setCustomKey=({key:e,baseKey:t,baseKeyCounter:i,creator:o})=>{this.baseKey=t,this.key=e,this.baseKeyCounter=i,this.creator=o};this.isDropdown=()=>r.isTypeDropdown(this.getType());this.isCategoryType=()=>r.isTypeCategory(this.getType());this.isBooleanType=()=>this.type==="boolean";this.serialize=()=>({description:this.getDescription(),example:this.getExample(),key:this.getKey(),label:this.getLabel(),type:this.getType(),validators:[],alternativeMatches:this.getAlternativeMatches(),columnSize:this.getColumnSize(),columnWidth:this.getColumnWidth(),outputFormat:this.getOutputFormat(),inputFormat:this.getInputFormat(),isMultiSelection:this.getIsMultiSelection(),numberFormat:this.getNumberFormat(),baseKey:this.getBaseKey(),baseKeyCounter:this.getBaseKeyCounter(),creator:this.getCreator(),hidden:this.isHidden(),disabled:this.isDisabled(),optionMappingConfiguration:this.getOptionMappingConfiguration(),excludeFromAutoMatching:this.isExcludedFromAutoMatching()});this.getIsMultiSelection=()=>!1;this.getNumberFormat=()=>this.numberFormat;this.isDisabled=()=>this.disabled;this.isNumeric=()=>this.type==="int"||this.type==="float"||this.type==="currency_eur"||this.type==="currency_usd"||this.type==="percentage";this.isCurrency=()=>this.type==="currency_eur"||this.type==="currency_usd";this.baseClone=()=>{let e=this.serialize(),t=new r({description:e.description,example:e.example,key:e.key,label:e.label,type:e.type,validators:this.getValidators(),alternativeMatches:e.alternativeMatches,columnSize:e.columnSize,columnWidth:e.columnWidth,baseKey:e.baseKey,baseKeyCounter:e.baseKeyCounter,creator:e.creator,numberFormat:e.numberFormat,outputFormat:e.outputFormat,inputFormat:this.declaredInputFormat,hidden:e.hidden,disabled:e.disabled,optionMappingConfiguration:e.optionMappingConfiguration,excludeFromAutoMatching:e.excludeFromAutoMatching});return t.setInputFormat(this.inputFormat),t.setDateFormatPromptResolved(this.dateFormatPromptResolved),t};this.isHidden=()=>this.hidden;this.isExcludedFromAutoMatching=()=>this.excludeFromAutoMatching;this.getOptionMappingConfiguration=()=>this.optionMappingConfiguration;this.description=e,this.key=t,this.example=i,this.label=o,this.type=n,this.validators=s??[],this.mappingValidation=a,this.alternativeMatches=p?[...p.filter(c=>c!==o&&c!==t)?.map(c=>c?.toString())]:[],this.columnSize=u,this.creator=m,this.baseKey=y||t,this.baseKeyCounter=E||0,this.outputFormat=M||"",this.declaredInputFormat=b??null,this.inputFormat=b??null,this.numberFormat=x||"eu",this.hidden=S??!1,this.disabled=O??!1,this.optionMappingConfiguration=P,this.columnWidth=R,this.excludeFromAutoMatching=I??!1}static{this.getOutputFormat=e=>(e||"DD.MM.YYYY").replace(/d/g,"D").replace(/e|E/g,"")}static{this.isTypeDropdown=e=>r.isTypeCategory(e)||e==="boolean"}static{this.isTypeCategory=e=>e==="single-select"||e==="currency_code"||e==="country_code_alpha_2"||e==="country_code_alpha_3"}};import{isNil as G,escapeRegExp as xt,isArray as St}from"lodash";var V=()=>g.getInstance().getTruthyWords(),H=()=>g.getInstance().getFalsyWords(),Yt=()=>g.getInstance().getBooleanOptionToRender(),wt=[...V(),...H()];import{isArray as Se,isNil as Oe,isObject as Pe}from"lodash";var L=class{constructor(){this.parse=(e,t)=>Oe(e)||Se(e)||Pe(e)?null:V().includes(`${e}`.toLowerCase())?!0:H().includes(`${e}`.toLowerCase())?!1:e===""?null:`${e}`}},se=L;import{isArray as ae,isBoolean as le,isNil as pe,isObject as ue}from"lodash";var Y=class{constructor(){this.parseSingle=(e,t)=>pe(e)||ue(e)||ae(e)?null:le(e)?JSON.stringify(e):A({value:e,dataModel:t.dataModel,isTrim:!0});this.parseMultiple=(e,t)=>ae(e)?e.map(i=>A({value:i,dataModel:t.dataModel,isTrim:!0})):pe(e)||ue(e)||e===""?null:le(e)?[JSON.stringify(e)]:[A({value:e,dataModel:t.dataModel,isTrim:!0})];this.parse=(e,t)=>t.dataModel.getIsMultiSelection()&&!t.forceSingle?this.parseMultiple(e,t):this.parseSingle(e,t)}},me=Y;import{isArray as Re,isBoolean as Ie,isNil as Fe,isObject as _e}from"lodash";var w=class{constructor(){this.parse=(e,t)=>{if(Fe(e)||Re(e)||_e(e))return null;if(Ie(e))return JSON.stringify(e);if(e==="")return null;if(typeof e=="number"){let i=`${e}`;return l(d.isScientificNotation(i)?d.expandScientificNotation(i):i)}return l(`${e}`)}}},de=w;import{isArray as Ne,isBoolean as Ue,isNil as Ve,isObject as He}from"lodash";var X=class{constructor(){this.parse=(e,t)=>Ve(e)?null:Ue(e)?e?"1":"0":He(e)||Ne(e)||e===""||l(e)===null?null:this.valueParser(e,t)}},D=X;var k=class extends D{constructor(){super(...arguments);this.valueParser=(t,i)=>{let o=d.convertStringToNumber(t,{format:i?.numberFormat});return o===null?l(`${t}`):Number(o)}}},ye=k;var v=class extends D{constructor(){super(...arguments);this.valueParser=(t,i)=>{let o=d.convertStringToNumber(t,{format:i?.numberFormat});return o===null?l(`${t}`):Number(o)}}},ce=v;import{isArray as Le,isBoolean as Ye,isNil as we,isNumber as Xe,isObject as ke}from"lodash";var $=class{constructor(){this.parse=(e,t)=>{if(we(e)||ke(e)||Le(e))return null;if(Ye(e))return JSON.stringify(e);if(Xe(e))return e;if(e===""||l(e)===null)return null;let i=d.convertStringToNumber(e,{adornment:"percentage"});return i===null?l(`${e}`):Number(i)}}},Me=$;import{isArray as ve,isBoolean as $e,isNil as We,isObject as Ke}from"lodash";var W=class{constructor(){this.parse=(e,t)=>{if(We(e)||ve(e)||Ke(e))return null;if($e(e))return JSON.stringify(e);if(e===""||l(e)===null)return null;let i=d.convertStringToNumber(e,{format:t?.numberFormat});return i===null?l(`${e}`):Number(i)}}},ge=W;var fe=["dd.MM.yyyy HH:mm","dd.MM.yyyy","dd/MM/yyyy HH:mm:ss","dd/MM/yyyy HH:mm","dd/MM/yyyy","dd-MM-yyyy HH:mm:ss","dd-MM-yyyy HH:mm","yyyy-MM-dd'T'HH:mm:ss","yyyy-MM-dd","yyyy-dd-MM","yyyy-MM-dd HH:mm:ss","dd-MM-yyyy","MM-dd-yyyy","MM/dd/yyyy","MM.dd.yyyy","yyyy/MM/dd","yyyyMMdd","dd MMM yyyy","dd MMMM yyyy","MM-dd-yyyy HH:mm:ss","MM/dd/yyyy HH:mm:ss","yyyy-MM-dd HH:mm","MM-dd-yyyy HH:mm","MM/dd/yyyy HH:mm","dd-MMM-yyyy","MMM yyyy","MMMM yyyy","MM/yyyy","M/yyyy","yyyy/MM","MM.yyyy","MM.yy","yyyy.MM","MM-yyyy","yyyy-MM","MMMM d, yyyy","MMM d, yyyy","MM dd yyyy","yyyy-MM-dd'T'HH:mm:ss.SSS","yyyy-MM-dd'T'HH:mm:ss.SSSxxx","yyyy.MM.dd","yyyy MM dd","yyyy/dd/MM","yyyy.dd.MM","dd yyyy MM","dd.yyyy.MM","dd-yyyy-MM","yyyy dd MM","MM yyyy dd","dd/yyyy/MM","MM/yyyy/dd"],Be=["dd.MM.yyyy","dd/MM/yyyy","dd-MM-yyyy","MM.dd.yyyy","MM/dd/yyyy","MM-dd-yyyy","yyyy.MM.dd","yyyy/MM/dd","yyyy-MM-dd","yyyy.dd.MM","yyyy/dd/MM","yyyy-dd-MM","dd MMM yyyy","dd MMMM yyyy","MMM dd, yyyy","MMMM dd, yyyy","MMM dd yyyy","yyyy MMM dd"],ze=["ddMMyyyy","MMddyyyy","yyyyMMdd"],Qe=[""," HH:mm"," HH:mm:ss"],Ge=["yyyy-MM-dd","yyyy-dd-MM"],qe=["'T'HH:mm:ss","'T'HH:mm:ss.SSS","'T'HH:mm:ss.SSSxxx"],Ze=[...Be.flatMap(r=>Qe.map(e=>`${r}${e}`)),...ze,...Ge.flatMap(r=>qe.map(e=>`${r}${e}`))],Je=new Set(fe),K=new Set([...fe,...Ze.filter(r=>!Je.has(r))]);var je={YYYY:"yyyy",YY:"yy",MMMM:"MMMM",MMM:"MMM",MM:"MM",M:"M",DD:"dd",D:"d",HH:"HH",H:"H",hh:"hh",h:"h",mm:"mm",m:"m",ss:"ss",s:"s",SSS:"SSS",SS:"SS",S:"S",A:"a",a:"a",XXXXX:"XXXXX",XXXX:"XXXX",XXX:"XXX",XX:"XX",X:"X",xxxxx:"xxxxx",xxxx:"xxxx",xxx:"xxx",xx:"xx",x:"x",ZZ:"xxx",Z:"X"},he=r=>r.replace(/'/g,"''"),et=r=>{let e="",t=0;for(;t<r.length;){let i=r[t];if(i==="'"){t+=1;let o="";for(;t<r.length;)if(r[t]==="'")if(r[t+1]==="'")o+="'",t+=2;else{t+=1;break}else o+=r[t],t+=1;e+=`'${he(o)}'`;continue}if(i==="["){t+=1;let o="";for(;t<r.length;)if(r[t]==="]")if(r[t+1]==="]")o+="]",t+=2;else{t+=1;break}else o+=r[t],t+=1;e+=`'${he(o)}'`;continue}if(i==="T"){e+="'T'",t+=1;continue}if(/[A-Za-z]/.test(i)){let o=1;for(;r[t+o]===i;)o++;let n=r.slice(t,t+o);e+=je[n]??n,t+=o}else e+=i,t+=1}return e},Te=/^(yyyy|yy|MMMM|MMM|MM|M|dd|d|HH|H|hh|h|mm|m|ss|s|SSS|SS|S|XXXXX|XXXX|XXX|XX|X|xxxxx|xxxx|xxx|xx|x|a)/,tt=new Set(["HH","H","hh","h","mm","m","ss","s","SSS","SS","S","a","XXXXX","XXXX","XXX","XX","X","xxxxx","xxxx","xxx","xx","x"]),rt=new Set(["MMM","MMMM"]),it=[".","/","-"," "],ot="",nt=r=>{let e=[],t=0;for(;t<r.length;){if(r[t]==="'"){t+=1;let n="'";for(;t<r.length;)if(r[t]==="'")if(r[t+1]==="'")n+="''",t+=2;else{n+="'",t+=1;break}else n+=r[t],t+=1;e.push({kind:"text",text:n});continue}let i=r.slice(t).match(Te);if(i){e.push({kind:"token",token:i[1]}),t+=i[1].length;continue}let o=r[t];for(t+=1;t<r.length&&!(r[t]==="'"||Te.test(r.slice(t)));)o+=r[t],t+=1;e.push({kind:"text",text:o})}return e},st=r=>{for(let e=0;e<r.length;e++){let t=r[e];if(t.kind!=="token"||!tt.has(t.token))continue;let i=e>0?r[e-1]:null;return i?.kind==="text"&&(/^[T\s]+$/.test(i.text)||i.text==="'T'")?e-1:e}return r.length},Ee=r=>{let e=nt(r);if(e.some(a=>a.kind==="token"&&rt.has(a.token)))return`exact:${r}`;let t=st(e),i=e.slice(0,t),o=e.slice(t),n="",s=!1;for(let a of i){if(a.kind==="token"){let p=a.token;p==="d"?p="dd":p==="M"?p="MM":p==="yy"&&(p="yyyy"),n+=p,s=!0;continue}s&&a.text.length===1&&it.includes(a.text)?n+=ot:n+=a.text,s=!1}for(let a of o)n+=a.kind==="token"?a.token:a.text;return n},B=null,at=()=>{if(B)return B;let r=new Set;for(let e of K){let t=Ee(e);t&&r.add(t)}return B=r,r},lt=r=>{if(!f(r))return!1;let e=et(r.trim());if(K.has(e))return!0;let t=Ee(e);return!t||t.startsWith("exact:")?!1:at().has(t)},Cr=r=>{if(!f(r))return null;let e=r.trim();return lt(e)?e:null},pt=({sourceRows:r,inputFormat:e})=>{let t=e.trim(),i=0,o=0;for(let n=0;n<r.length;n++){let s=r[n];oe(s)&&(o+=1,T(s.trim(),t)||(i+=1))}return{mismatchCount:i,totalCount:o}},xr=(r,e)=>{let t=e.trim();if(T(r,t))return!1;let i=r.trim();return/^\d{4}-\d{2}-\d{2}/.test(i)?!!(t.includes("/")||t.includes(".")&&!t.includes("/")):!1},Sr=({columnKey:r,sourceRows:e,inputFormat:t})=>{let{mismatchCount:i,totalCount:o}=pt({sourceRows:e,inputFormat:t});i!==0&&console.warn(`Ingestro: Column '${r}': ${i} of ${o} cells did not match inputFormat '${t.trim()}'.`)};import{parse as ut,format as mt}from"date-fns";import{isArray as dt,isBoolean as yt,isNil as ct,isObject as Mt}from"lodash";import C from"moment";var Ae=/([+-](?:0\d|1[0-4]):?[0-5]\d|Z)$/i,be=(r,e)=>{let o=!!r.match(Ae)?C.parseZone(r,e,!0):C(r,e,!0);return o.isValid()&&o.format(e)===r},z=class{constructor(){this.parse=(e,t)=>{if(ct(e)||dt(e)||Mt(e))return null;if(yt(e))return JSON.stringify(e);let i=t?.dataModel?.getType();if(!i)return l(`${e}`);if(typeof e=="string"){if(e==="")return null;try{if(t?.dataModel?.getType()==="date"){let o=t?.dataModel?.getOutputFormat(),n=t?.dataModel?.getInputFormat(),s=`${e}`,a=!1;if(f(n)&&!t?.skipDeclaredInputFormatNormalization){let y=ee(s);if(T(s,n)||y)y||(s=`${_([s],n)[0]}`),a=!0;else{let M=_([s],n)[0];if(M===s)return be(s,o)?s:l(s);s=`${M}`,a=!0}}if(!a&&be(s,o))return s;let m=!!s.match(Ae)?C.parseZone(s,j):C(s,J);if(m.isValid())return m.format(o);throw new Error("invalid date")}else{let o=te[i];if(!o)return l(`${e}`);let n=ut(e,Z,new Date);return mt(n,o)}}catch{let n=re[i];return n?l(ie(e,n)):l(`${e}`)}}else return l(`${e}`)}}},De=z;import{isArray as gt}from"lodash";var ft=new ye,ht=new ce,Tt=new ge,Et=new Me,bt=new se,At=new me,Dt=new de,Ct=new De,Q=class{static{this.parse=(e,t)=>{let i;switch(t?.dataModel?.getType()){case"int":i=ft;break;case"float":i=ht;break;case"boolean":i=bt;break;case"single-select":case"currency_code":case"country_code_alpha_2":case"country_code_alpha_3":i=At;break;case"percentage":i=Et;break;case"currency_eur":case"currency_usd":i=Tt;break;case"date":case"date_dmy":case"date_mdy":case"date_iso":case"datetime":case"time_hms":case"time_hms_24":case"time_hm":case"time_hm_24":i=Ct;break;case"email":case"url_www":case"url_https":case"url":case"phone":case"zip_code_de":case"bic":case"vat_eu":case"gtin":case"iban":default:i=Dt;break}return i.parse(e,t)}}static{this.parseRawValueToDisplayValue=(e,t)=>{let i=e;if(t.isNumeric)i=d.convertToFormat(e,{targetFormat:t.numberFormat||"eu",adornment:t.type==="percentage"?"percentage":void 0}),["currency_eur","currency_usd"].includes(t.type)&&(t.type==="currency_usd"?i=`$${i}`:i=`${i} \u20AC`);else if(t.type==="boolean"){let n=g.getInstance().getOptionsForReviewEntries().find(s=>`${s.value}`.includes(`${e}`));n&&(i=`${n.label}`)}else if(h.isTypeCategory(t.type))if(t.isMultiSelection){if(gt(e)){let o=t.options?.filter(n=>e.some(s=>F(n,s)));o&&(i=o.map(n=>n.label).join(", "))}}else{let o=t.options?.find(n=>F(n,e));o&&(i=`${o?.label}`)}return`${i}`}}static{this.parseDisplayValueToRawValue=(e,t)=>{if(t.isNumeric){let i=d.convertToUsWithDecimal(`${e}`,t.numberFormat??"eu");if(i===null)return e;let o=d.convertStringToNumber(i,{format:"us"});return o!==null?Number(o):e}else return e}}},Ce=Q;var ai=(r,e)=>Number(r).toLocaleString(e??"de-DE",{numberingSystem:"latn"}),Ot={ar:"ar-SA",he:"he-IL",de:"de-DE",en:"en-US",es:"es-ES",fr:"fr-FR",it:"it-IT",nl:"nl-NL",pl:"pl-PL",pt:"pt-PT",sv:"sv-SE",cz:"cs-CZ",dk:"da-DK",hu:"hu-HU",lt:"lt-LT",no:"nb-NO",ru:"ru-RU",sk:"sk-SK",zh:"zh-CN"},li=r=>r?Ot[r]??"de-DE":"de-DE",pi=(r,e)=>{let{value:t,isExact:i,columns:o,isEmptyValues:n}=e;if(n)return G(r)||r==="";if(St(r)&&o[0]?.isMultiSelection){let a=o[0],p=r.map(u=>{let m=a.options?.find(y=>`${y.value}`==`${u}`);return m?m.label:`${u}`}).join(", ");return i?p===t:p.toLowerCase().includes(t.toLowerCase())}let s=Ce.parseRawValueToDisplayValue(r,o[0]);return i&&!G(r)&&s===t?!0:!!(!i&&!G(r)&&s?.toLowerCase()?.includes(t?.toLowerCase()))},ui=(r,e,t,i)=>{let o=r.map(u=>{let m=i.options?.find(y=>`${y.value}`==`${u}`);return m?m.label:`${u}`}),n=e.split(",").map(u=>u.trim()).filter(Boolean);if(n.length===0)return r;let s=-1;for(let u=0;u<=o.length-n.length;u++){let m=!0;for(let y=0;y<n.length;y++)if(o[u+y].toLowerCase()!==n[y].toLowerCase()){m=!1;break}if(m){s=u;break}}if(s===-1)return r;let a=[...r.slice(0,s),...t,...r.slice(s+n.length)],p=new Set;return a.filter(u=>{let m=`${u}`;return p.has(m)?!1:(p.add(m),!0)})},mi=(r,e,t)=>{let i=new RegExp(xt(e),"gi");return`${r}`.replace(i,t)},di=r=>typeof r=="string"?r.replace(/(\r\n|\n|\r)/gm,""):r,yi=(r,e)=>e?e.map((t,i)=>r.map(o=>({rowIndex:i,valid:!0,key:o.key,value:t[o.key]}))):[];var q=class r extends h{constructor({description:t,key:i,example:o,label:n,type:s,options:a,validators:p,alternativeMatches:u,columnSize:m,isMultiSelection:y,allowCustomOptions:E,allowedCustomOptionTypes:M,preserveUnmappedOptions:b,creator:x,baseKey:S,baseKeyCounter:O,hidden:P,optionMappingConfiguration:R,...I}){super({description:t,key:i,example:o,label:n,type:s,validators:p,alternativeMatches:u,columnSize:m,creator:x,baseKey:S,baseKeyCounter:O,hidden:P,optionMappingConfiguration:R,...I});this.optionTypeMap=null;this.getOptions=()=>this.options;this.getOptionTypeMap=()=>{if(!this.optionTypeMap){this.optionTypeMap=new Map;for(let t=0;t<this.options.length;t++){let i=this.options[t];this.optionTypeMap.set(i.value,i.type??"string")}}return this.optionTypeMap};this.setOptions=t=>{this.options=t,this.optionTypeMap=null};this.serialize=()=>{let t={description:this.getDescription(),example:this.getExample(),isRequired:this.getIsRequired(),key:this.getKey(),label:this.getLabel(),type:this.getType(),validators:this.getValidators().map(o=>o.serialize()),alternativeMatches:this.getAlternativeMatches(),columnSize:this.getColumnSize(),columnWidth:this.getColumnWidth(),outputFormat:this.getOutputFormat(),inputFormat:this.getInputFormat(),numberFormat:this.getNumberFormat(),baseKey:this.getBaseKey(),baseKeyCounter:this.getBaseKeyCounter(),creator:this.getCreator(),hidden:this.isHidden(),disabled:this.isDisabled(),optionMappingConfiguration:this.getOptionMappingConfiguration(),excludeFromAutoMatching:this.isExcludedFromAutoMatching()},i=this.getOptions();return{...t,options:i,isMultiSelection:this.isMultiSelection,allowCustomOptions:this.allowCustomOptions,allowedCustomOptionTypes:this.allowedCustomOptionTypes?[...this.allowedCustomOptionTypes]:void 0,preserveUnmappedOptions:this.preserveUnmappedOptions}};this.getIsMultiSelection=()=>this.isMultiSelection;this.getAllowCustomOptions=()=>this.allowCustomOptions;this.getAllowedCustomOptionTypes=()=>this.allowedCustomOptionTypes?[...this.allowedCustomOptionTypes]:void 0;this.getPreserveUnmappedOptions=()=>this.preserveUnmappedOptions;this.options=a?.map(c=>({...c,baseKey:c?.baseKey||c.value,baseKeyCounter:c.baseKeyCounter||0,alternativeMatches:c.alternativeMatches.filter(xe=>xe!==c.label),validations:c.validations||[]})),this.isMultiSelection=y,this.allowCustomOptions=E,this.allowedCustomOptionTypes=M?[...M]:void 0,this.preserveUnmappedOptions=b}clone(){let t=this.serialize();return new r({description:t.description,example:t.example,key:t.key,label:t.label,type:t.type,options:t.options,validators:this.getValidators(),alternativeMatches:t.alternativeMatches,columnSize:t.columnSize,columnWidth:t.columnWidth,isMultiSelection:t.isMultiSelection,allowCustomOptions:t.allowCustomOptions,allowedCustomOptionTypes:t.allowedCustomOptionTypes,preserveUnmappedOptions:t.preserveUnmappedOptions,hidden:t.hidden,disabled:t.disabled,optionMappingConfiguration:t.optionMappingConfiguration,excludeFromAutoMatching:t.excludeFromAutoMatching})}},Ti=q;export{V as a,H as b,Yt as c,wt as d,Cr as e,xr as f,Sr as g,Pt as h,h as i,Ce as j,ai as k,li as l,pi as m,ui as n,mi as o,di as p,yi as q,Ti as r};
|