openai-api-mock 0.2.0 → 0.2.2
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/README.md +107 -47
- package/dist/index.cjs +331 -353
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +331 -353
- package/dist/index.js.map +1 -1
- package/index.d.ts +10 -3
- package/package.json +9 -5
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import nock from "nock";
|
|
2
2
|
import { Readable } from "node:stream";
|
|
3
|
-
var e = [{ name: "Aegean Airlines", iataCode: "A3" }, { name: "Aeroflot", iataCode: "SU" }, { name: "Aerolineas Argentinas", iataCode: "AR" }, { name: "Aeromexico", iataCode: "AM" }, { name: "Air Algerie", iataCode: "AH" }, { name: "Air Arabia", iataCode: "G9" }, { name: "Air Canada", iataCode: "AC" }, { name: "Air China", iataCode: "CA" }, { name: "Air Europa", iataCode: "UX" }, { name: "Air France", iataCode: "AF" }, { name: "Air India", iataCode: "AI" }, { name: "Air Mauritius", iataCode: "MK" }, { name: "Air New Zealand", iataCode: "NZ" }, { name: "Air Niugini", iataCode: "PX" }, { name: "Air Tahiti", iataCode: "VT" }, { name: "Air Tahiti Nui", iataCode: "TN" }, { name: "Air Transat", iataCode: "TS" }, { name: "AirAsia X", iataCode: "D7" }, { name: "AirAsia", iataCode: "AK" }, { name: "Aircalin", iataCode: "SB" }, { name: "Alaska Airlines", iataCode: "AS" }, { name: "Alitalia", iataCode: "AZ" }, { name: "All Nippon Airways", iataCode: "NH" }, { name: "Allegiant Air", iataCode: "G4" }, { name: "American Airlines", iataCode: "AA" }, { name: "Asiana Airlines", iataCode: "OZ" }, { name: "Avianca", iataCode: "AV" }, { name: "Azul Linhas Aereas Brasileiras", iataCode: "AD" }, { name: "Azur Air", iataCode: "ZF" }, { name: "Beijing Capital Airlines", iataCode: "JD" }, { name: "Boliviana de Aviacion", iataCode: "OB" }, { name: "British Airways", iataCode: "BA" }, { name: "Cathay Pacific", iataCode: "CX" }, { name: "Cebu Pacific Air", iataCode: "5J" }, { name: "China Airlines", iataCode: "CI" }, { name: "China Eastern Airlines", iataCode: "MU" }, { name: "China Southern Airlines", iataCode: "CZ" }, { name: "Condor", iataCode: "DE" }, { name: "Copa Airlines", iataCode: "CM" }, { name: "Delta Air Lines", iataCode: "DL" }, { name: "Easyfly", iataCode: "VE" }, { name: "EasyJet", iataCode: "U2" }, { name: "EcoJet", iataCode: "8J" }, { name: "Egyptair", iataCode: "MS" }, { name: "El Al", iataCode: "LY" }, { name: "Emirates Airlines", iataCode: "EK" }, { name: "Ethiopian Airlines", iataCode: "ET" }, { name: "Etihad Airways", iataCode: "EY" }, { name: "EVA Air", iataCode: "BR" }, { name: "Fiji Airways", iataCode: "FJ" }, { name: "Finnair", iataCode: "AY" }, { name: "Flybondi", iataCode: "FO" }, { name: "Flydubai", iataCode: "FZ" }, { name: "FlySafair", iataCode: "FA" }, { name: "Frontier Airlines", iataCode: "F9" }, { name: "Garuda Indonesia", iataCode: "GA" }, { name: "Go First", iataCode: "G8" }, { name: "Gol Linhas Aereas Inteligentes", iataCode: "G3" }, { name: "Hainan Airlines", iataCode: "HU" }, { name: "Hawaiian Airlines", iataCode: "HA" }, { name: "IndiGo Airlines", iataCode: "6E" }, { name: "Japan Airlines", iataCode: "JL" }, { name: "Jeju Air", iataCode: "7C" }, { name: "Jet2", iataCode: "LS" }, { name: "JetBlue Airways", iataCode: "B6" }, { name: "JetSMART", iataCode: "JA" }, { name: "Juneyao Airlines", iataCode: "HO" }, { name: "Kenya Airways", iataCode: "KQ" }, { name: "KLM Royal Dutch Airlines", iataCode: "KL" }, { name: "Korean Air", iataCode: "KE" }, { name: "Kulula.com", iataCode: "MN" }, { name: "LATAM Airlines", iataCode: "LA" }, { name: "Lion Air", iataCode: "JT" }, { name: "LOT Polish Airlines", iataCode: "LO" }, { name: "Lufthansa", iataCode: "LH" }, { name: "Libyan Airlines", iataCode: "LN" }, { name: "Linea Aerea Amaszonas", iataCode: "Z8" }, { name: "Malaysia Airlines", iataCode: "MH" }, { name: "Nordwind Airlines", iataCode: "N4" }, { name: "Norwegian Air Shuttle", iataCode: "DY" }, { name: "Oman Air", iataCode: "WY" }, { name: "Pakistan International Airlines", iataCode: "PK" }, { name: "Pegasus Airlines", iataCode: "PC" }, { name: "Philippine Airlines", iataCode: "PR" }, { name: "Qantas Group", iataCode: "QF" }, { name: "Qatar Airways", iataCode: "QR" }, { name: "Republic Airways", iataCode: "YX" }, { name: "Royal Air Maroc", iataCode: "AT" }, { name: "Ryanair", iataCode: "FR" }, { name: "S7 Airlines", iataCode: "S7" }, { name: "SAS", iataCode: "SK" }, { name: "Satena", iataCode: "9R" }, { name: "Saudia", iataCode: "SV" }, { name: "Shandong Airlines", iataCode: "SC" }, { name: "Sichuan Airlines", iataCode: "3U" }, { name: "Singapore Airlines", iataCode: "SQ" }, { name: "Sky Airline", iataCode: "H2" }, { name: "SkyWest Airlines", iataCode: "OO" }, { name: "South African Airways", iataCode: "SA" }, { name: "Southwest Airlines", iataCode: "WN" }, { name: "SpiceJet", iataCode: "SG" }, { name: "Spirit Airlines", iataCode: "NK" }, { name: "Spring Airlines", iataCode: "
|
|
3
|
+
var e = [{ name: "Aegean Airlines", iataCode: "A3" }, { name: "Aeroflot", iataCode: "SU" }, { name: "Aerolineas Argentinas", iataCode: "AR" }, { name: "Aeromexico", iataCode: "AM" }, { name: "Air Algerie", iataCode: "AH" }, { name: "Air Arabia", iataCode: "G9" }, { name: "Air Canada", iataCode: "AC" }, { name: "Air China", iataCode: "CA" }, { name: "Air Europa", iataCode: "UX" }, { name: "Air France", iataCode: "AF" }, { name: "Air India", iataCode: "AI" }, { name: "Air Mauritius", iataCode: "MK" }, { name: "Air New Zealand", iataCode: "NZ" }, { name: "Air Niugini", iataCode: "PX" }, { name: "Air Tahiti", iataCode: "VT" }, { name: "Air Tahiti Nui", iataCode: "TN" }, { name: "Air Transat", iataCode: "TS" }, { name: "AirAsia X", iataCode: "D7" }, { name: "AirAsia", iataCode: "AK" }, { name: "Aircalin", iataCode: "SB" }, { name: "Alaska Airlines", iataCode: "AS" }, { name: "Alitalia", iataCode: "AZ" }, { name: "All Nippon Airways", iataCode: "NH" }, { name: "Allegiant Air", iataCode: "G4" }, { name: "American Airlines", iataCode: "AA" }, { name: "Asiana Airlines", iataCode: "OZ" }, { name: "Avianca", iataCode: "AV" }, { name: "Azul Linhas Aereas Brasileiras", iataCode: "AD" }, { name: "Azur Air", iataCode: "ZF" }, { name: "Beijing Capital Airlines", iataCode: "JD" }, { name: "Boliviana de Aviacion", iataCode: "OB" }, { name: "British Airways", iataCode: "BA" }, { name: "Cathay Pacific", iataCode: "CX" }, { name: "Cebu Pacific Air", iataCode: "5J" }, { name: "China Airlines", iataCode: "CI" }, { name: "China Eastern Airlines", iataCode: "MU" }, { name: "China Southern Airlines", iataCode: "CZ" }, { name: "Condor", iataCode: "DE" }, { name: "Copa Airlines", iataCode: "CM" }, { name: "Delta Air Lines", iataCode: "DL" }, { name: "Easyfly", iataCode: "VE" }, { name: "EasyJet", iataCode: "U2" }, { name: "EcoJet", iataCode: "8J" }, { name: "Egyptair", iataCode: "MS" }, { name: "El Al", iataCode: "LY" }, { name: "Emirates Airlines", iataCode: "EK" }, { name: "Ethiopian Airlines", iataCode: "ET" }, { name: "Etihad Airways", iataCode: "EY" }, { name: "EVA Air", iataCode: "BR" }, { name: "Fiji Airways", iataCode: "FJ" }, { name: "Finnair", iataCode: "AY" }, { name: "Flybondi", iataCode: "FO" }, { name: "Flydubai", iataCode: "FZ" }, { name: "FlySafair", iataCode: "FA" }, { name: "Frontier Airlines", iataCode: "F9" }, { name: "Garuda Indonesia", iataCode: "GA" }, { name: "Go First", iataCode: "G8" }, { name: "Gol Linhas Aereas Inteligentes", iataCode: "G3" }, { name: "Hainan Airlines", iataCode: "HU" }, { name: "Hawaiian Airlines", iataCode: "HA" }, { name: "IndiGo Airlines", iataCode: "6E" }, { name: "Japan Airlines", iataCode: "JL" }, { name: "Jeju Air", iataCode: "7C" }, { name: "Jet2", iataCode: "LS" }, { name: "JetBlue Airways", iataCode: "B6" }, { name: "JetSMART", iataCode: "JA" }, { name: "Juneyao Airlines", iataCode: "HO" }, { name: "Kenya Airways", iataCode: "KQ" }, { name: "KLM Royal Dutch Airlines", iataCode: "KL" }, { name: "Korean Air", iataCode: "KE" }, { name: "Kulula.com", iataCode: "MN" }, { name: "LATAM Airlines", iataCode: "LA" }, { name: "Lion Air", iataCode: "JT" }, { name: "LOT Polish Airlines", iataCode: "LO" }, { name: "Lufthansa", iataCode: "LH" }, { name: "Libyan Airlines", iataCode: "LN" }, { name: "Linea Aerea Amaszonas", iataCode: "Z8" }, { name: "Malaysia Airlines", iataCode: "MH" }, { name: "Nordwind Airlines", iataCode: "N4" }, { name: "Norwegian Air Shuttle", iataCode: "DY" }, { name: "Oman Air", iataCode: "WY" }, { name: "Pakistan International Airlines", iataCode: "PK" }, { name: "Pegasus Airlines", iataCode: "PC" }, { name: "Philippine Airlines", iataCode: "PR" }, { name: "Qantas Group", iataCode: "QF" }, { name: "Qatar Airways", iataCode: "QR" }, { name: "Republic Airways", iataCode: "YX" }, { name: "Royal Air Maroc", iataCode: "AT" }, { name: "Ryanair", iataCode: "FR" }, { name: "S7 Airlines", iataCode: "S7" }, { name: "SAS", iataCode: "SK" }, { name: "Satena", iataCode: "9R" }, { name: "Saudia", iataCode: "SV" }, { name: "Shandong Airlines", iataCode: "SC" }, { name: "Sichuan Airlines", iataCode: "3U" }, { name: "Singapore Airlines", iataCode: "SQ" }, { name: "Sky Airline", iataCode: "H2" }, { name: "SkyWest Airlines", iataCode: "OO" }, { name: "South African Airways", iataCode: "SA" }, { name: "Southwest Airlines", iataCode: "WN" }, { name: "SpiceJet", iataCode: "SG" }, { name: "Spirit Airlines", iataCode: "NK" }, { name: "Spring Airlines", iataCode: "9C" }, { name: "SriLankan Airlines", iataCode: "UL" }, { name: "Star Peru", iataCode: "2I" }, { name: "Sun Country Airlines", iataCode: "SY" }, { name: "SunExpress", iataCode: "XQ" }, { name: "TAP Air Portugal", iataCode: "TP" }, { name: "Thai AirAsia", iataCode: "FD" }, { name: "Thai Airways", iataCode: "TG" }, { name: "TUI Airways", iataCode: "BY" }, { name: "Tunisair", iataCode: "TU" }, { name: "Turkish Airlines", iataCode: "TK" }, { name: "Ukraine International", iataCode: "PS" }, { name: "United Airlines", iataCode: "UA" }, { name: "Ural Airlines", iataCode: "U6" }, { name: "VietJet Air", iataCode: "VJ" }, { name: "Vietnam Airlines", iataCode: "VN" }, { name: "Virgin Atlantic Airways", iataCode: "VS" }, { name: "Virgin Australia", iataCode: "VA" }, { name: "VivaAerobus", iataCode: "VB" }, { name: "VOEPASS Linhas Aereas", iataCode: "2Z" }, { name: "Volaris", iataCode: "Y4" }, { name: "WestJet", iataCode: "WS" }, { name: "Wingo", iataCode: "P5" }, { name: "Wizz Air", iataCode: "W6" }];
|
|
4
4
|
var a = [{ name: "Aerospatiale/BAC Concorde", iataTypeCode: "SSC" }, { name: "Airbus A300", iataTypeCode: "AB3" }, { name: "Airbus A310", iataTypeCode: "310" }, { name: "Airbus A310-200", iataTypeCode: "312" }, { name: "Airbus A310-300", iataTypeCode: "313" }, { name: "Airbus A318", iataTypeCode: "318" }, { name: "Airbus A319", iataTypeCode: "319" }, { name: "Airbus A319neo", iataTypeCode: "31N" }, { name: "Airbus A320", iataTypeCode: "320" }, { name: "Airbus A320neo", iataTypeCode: "32N" }, { name: "Airbus A321", iataTypeCode: "321" }, { name: "Airbus A321neo", iataTypeCode: "32Q" }, { name: "Airbus A330", iataTypeCode: "330" }, { name: "Airbus A330-200", iataTypeCode: "332" }, { name: "Airbus A330-300", iataTypeCode: "333" }, { name: "Airbus A330-800neo", iataTypeCode: "338" }, { name: "Airbus A330-900neo", iataTypeCode: "339" }, { name: "Airbus A340", iataTypeCode: "340" }, { name: "Airbus A340-200", iataTypeCode: "342" }, { name: "Airbus A340-300", iataTypeCode: "343" }, { name: "Airbus A340-500", iataTypeCode: "345" }, { name: "Airbus A340-600", iataTypeCode: "346" }, { name: "Airbus A350", iataTypeCode: "350" }, { name: "Airbus A350-900", iataTypeCode: "359" }, { name: "Airbus A350-1000", iataTypeCode: "351" }, { name: "Airbus A380", iataTypeCode: "380" }, { name: "Airbus A380-800", iataTypeCode: "388" }, { name: "Antonov An-12", iataTypeCode: "ANF" }, { name: "Antonov An-24", iataTypeCode: "AN4" }, { name: "Antonov An-26", iataTypeCode: "A26" }, { name: "Antonov An-28", iataTypeCode: "A28" }, { name: "Antonov An-30", iataTypeCode: "A30" }, { name: "Antonov An-32", iataTypeCode: "A32" }, { name: "Antonov An-72", iataTypeCode: "AN7" }, { name: "Antonov An-124 Ruslan", iataTypeCode: "A4F" }, { name: "Antonov An-140", iataTypeCode: "A40" }, { name: "Antonov An-148", iataTypeCode: "A81" }, { name: "Antonov An-158", iataTypeCode: "A58" }, { name: "Antonov An-225 Mriya", iataTypeCode: "A5F" }, { name: "Boeing 707", iataTypeCode: "703" }, { name: "Boeing 717", iataTypeCode: "717" }, { name: "Boeing 720B", iataTypeCode: "B72" }, { name: "Boeing 727", iataTypeCode: "727" }, { name: "Boeing 727-100", iataTypeCode: "721" }, { name: "Boeing 727-200", iataTypeCode: "722" }, { name: "Boeing 737 MAX 7", iataTypeCode: "7M7" }, { name: "Boeing 737 MAX 8", iataTypeCode: "7M8" }, { name: "Boeing 737 MAX 9", iataTypeCode: "7M9" }, { name: "Boeing 737 MAX 10", iataTypeCode: "7MJ" }, { name: "Boeing 737", iataTypeCode: "737" }, { name: "Boeing 737-100", iataTypeCode: "731" }, { name: "Boeing 737-200", iataTypeCode: "732" }, { name: "Boeing 737-300", iataTypeCode: "733" }, { name: "Boeing 737-400", iataTypeCode: "734" }, { name: "Boeing 737-500", iataTypeCode: "735" }, { name: "Boeing 737-600", iataTypeCode: "736" }, { name: "Boeing 737-700", iataTypeCode: "73G" }, { name: "Boeing 737-800", iataTypeCode: "738" }, { name: "Boeing 737-900", iataTypeCode: "739" }, { name: "Boeing 747", iataTypeCode: "747" }, { name: "Boeing 747-100", iataTypeCode: "741" }, { name: "Boeing 747-200", iataTypeCode: "742" }, { name: "Boeing 747-300", iataTypeCode: "743" }, { name: "Boeing 747-400", iataTypeCode: "744" }, { name: "Boeing 747-400D", iataTypeCode: "74J" }, { name: "Boeing 747-8", iataTypeCode: "748" }, { name: "Boeing 747SP", iataTypeCode: "74L" }, { name: "Boeing 747SR", iataTypeCode: "74R" }, { name: "Boeing 757", iataTypeCode: "757" }, { name: "Boeing 757-200", iataTypeCode: "752" }, { name: "Boeing 757-300", iataTypeCode: "753" }, { name: "Boeing 767", iataTypeCode: "767" }, { name: "Boeing 767-200", iataTypeCode: "762" }, { name: "Boeing 767-300", iataTypeCode: "763" }, { name: "Boeing 767-400", iataTypeCode: "764" }, { name: "Boeing 777", iataTypeCode: "777" }, { name: "Boeing 777-200", iataTypeCode: "772" }, { name: "Boeing 777-200LR", iataTypeCode: "77L" }, { name: "Boeing 777-300", iataTypeCode: "773" }, { name: "Boeing 777-300ER", iataTypeCode: "77W" }, { name: "Boeing 787", iataTypeCode: "787" }, { name: "Boeing 787-8", iataTypeCode: "788" }, { name: "Boeing 787-9", iataTypeCode: "789" }, { name: "Boeing 787-10", iataTypeCode: "781" }, { name: "Canadair Challenger", iataTypeCode: "CCJ" }, { name: "Canadair CL-44", iataTypeCode: "CL4" }, { name: "Canadair Regional Jet 100", iataTypeCode: "CR1" }, { name: "Canadair Regional Jet 200", iataTypeCode: "CR2" }, { name: "Canadair Regional Jet 700", iataTypeCode: "CR7" }, { name: "Canadair Regional Jet 705", iataTypeCode: "CRA" }, { name: "Canadair Regional Jet 900", iataTypeCode: "CR9" }, { name: "Canadair Regional Jet 1000", iataTypeCode: "CRK" }, { name: "De Havilland Canada DHC-2 Beaver", iataTypeCode: "DHP" }, { name: "De Havilland Canada DHC-2 Turbo-Beaver", iataTypeCode: "DHR" }, { name: "De Havilland Canada DHC-3 Otter", iataTypeCode: "DHL" }, { name: "De Havilland Canada DHC-4 Caribou", iataTypeCode: "DHC" }, { name: "De Havilland Canada DHC-6 Twin Otter", iataTypeCode: "DHT" }, { name: "De Havilland Canada DHC-7 Dash 7", iataTypeCode: "DH7" }, { name: "De Havilland Canada DHC-8-100 Dash 8 / 8Q", iataTypeCode: "DH1" }, { name: "De Havilland Canada DHC-8-200 Dash 8 / 8Q", iataTypeCode: "DH2" }, { name: "De Havilland Canada DHC-8-300 Dash 8 / 8Q", iataTypeCode: "DH3" }, { name: "De Havilland Canada DHC-8-400 Dash 8Q", iataTypeCode: "DH4" }, { name: "De Havilland DH.104 Dove", iataTypeCode: "DHD" }, { name: "De Havilland DH.114 Heron", iataTypeCode: "DHH" }, { name: "Douglas DC-3", iataTypeCode: "D3F" }, { name: "Douglas DC-6", iataTypeCode: "D6F" }, { name: "Douglas DC-8-50", iataTypeCode: "D8T" }, { name: "Douglas DC-8-62", iataTypeCode: "D8L" }, { name: "Douglas DC-8-72", iataTypeCode: "D8Q" }, { name: "Douglas DC-9-10", iataTypeCode: "D91" }, { name: "Douglas DC-9-20", iataTypeCode: "D92" }, { name: "Douglas DC-9-30", iataTypeCode: "D93" }, { name: "Douglas DC-9-40", iataTypeCode: "D94" }, { name: "Douglas DC-9-50", iataTypeCode: "D95" }, { name: "Douglas DC-10", iataTypeCode: "D10" }, { name: "Douglas DC-10-10", iataTypeCode: "D1X" }, { name: "Douglas DC-10-30", iataTypeCode: "D1Y" }, { name: "Embraer 170", iataTypeCode: "E70" }, { name: "Embraer 175", iataTypeCode: "E75" }, { name: "Embraer 190", iataTypeCode: "E90" }, { name: "Embraer 195", iataTypeCode: "E95" }, { name: "Embraer E190-E2", iataTypeCode: "290" }, { name: "Embraer E195-E2", iataTypeCode: "295" }, { name: "Embraer EMB.110 Bandeirante", iataTypeCode: "EMB" }, { name: "Embraer EMB.120 Brasilia", iataTypeCode: "EM2" }, { name: "Embraer Legacy 600", iataTypeCode: "ER3" }, { name: "Embraer Phenom 100", iataTypeCode: "EP1" }, { name: "Embraer Phenom 300", iataTypeCode: "EP3" }, { name: "Embraer RJ135", iataTypeCode: "ER3" }, { name: "Embraer RJ140", iataTypeCode: "ERD" }, { name: "Embraer RJ145 Amazon", iataTypeCode: "ER4" }, { name: "Ilyushin IL18", iataTypeCode: "IL8" }, { name: "Ilyushin IL62", iataTypeCode: "IL6" }, { name: "Ilyushin IL76", iataTypeCode: "IL7" }, { name: "Ilyushin IL86", iataTypeCode: "ILW" }, { name: "Ilyushin IL96-300", iataTypeCode: "I93" }, { name: "Ilyushin IL114", iataTypeCode: "I14" }, { name: "Lockheed L-182 / 282 / 382 (L-100) Hercules", iataTypeCode: "LOH" }, { name: "Lockheed L-188 Electra", iataTypeCode: "LOE" }, { name: "Lockheed L-1011 Tristar", iataTypeCode: "L10" }, { name: "Lockheed L-1049 Super Constellation", iataTypeCode: "L49" }, { name: "McDonnell Douglas MD11", iataTypeCode: "M11" }, { name: "McDonnell Douglas MD80", iataTypeCode: "M80" }, { name: "McDonnell Douglas MD81", iataTypeCode: "M81" }, { name: "McDonnell Douglas MD82", iataTypeCode: "M82" }, { name: "McDonnell Douglas MD83", iataTypeCode: "M83" }, { name: "McDonnell Douglas MD87", iataTypeCode: "M87" }, { name: "McDonnell Douglas MD88", iataTypeCode: "M88" }, { name: "McDonnell Douglas MD90", iataTypeCode: "M90" }, { name: "Sukhoi Superjet 100-95", iataTypeCode: "SU9" }, { name: "Tupolev Tu-134", iataTypeCode: "TU3" }, { name: "Tupolev Tu-154", iataTypeCode: "TU5" }, { name: "Tupolev Tu-204", iataTypeCode: "T20" }, { name: "Yakovlev Yak-40", iataTypeCode: "YK4" }, { name: "Yakovlev Yak-42", iataTypeCode: "YK2" }];
|
|
5
5
|
var r = [{ name: "Adelaide International Airport", iataCode: "ADL" }, { name: "Adolfo Suarez Madrid-Barajas Airport", iataCode: "MAD" }, { name: "Aeroparque Jorge Newbery Airport", iataCode: "AEP" }, { name: "Afonso Pena International Airport", iataCode: "CWB" }, { name: "Alfonso Bonilla Aragon International Airport", iataCode: "CLO" }, { name: "Amsterdam Airport Schiphol", iataCode: "AMS" }, { name: "Arturo Merino Benitez International Airport", iataCode: "SCL" }, { name: "Auckland International Airport", iataCode: "AKL" }, { name: "Beijing Capital International Airport", iataCode: "PEK" }, { name: "Belem Val de Cans International Airport", iataCode: "BEL" }, { name: "Belo Horizonte Tancredo Neves International Airport", iataCode: "CNF" }, { name: "Berlin-Tegel Airport", iataCode: "TXL" }, { name: "Bole International Airport", iataCode: "ADD" }, { name: "Brasilia-Presidente Juscelino Kubitschek International Airport", iataCode: "BSB" }, { name: "Brisbane International Airport", iataCode: "BNE" }, { name: "Brussels Airport", iataCode: "BRU" }, { name: "Cairns Airport", iataCode: "CNS" }, { name: "Cairo International Airport", iataCode: "CAI" }, { name: "Canberra Airport", iataCode: "CBR" }, { name: "Capetown International Airport", iataCode: "CPT" }, { name: "Charles de Gaulle International Airport", iataCode: "CDG" }, { name: "Charlotte Douglas International Airport", iataCode: "CLT" }, { name: "Chengdu Shuangliu International Airport", iataCode: "CTU" }, { name: "Chhatrapati Shivaji International Airport", iataCode: "BOM" }, { name: "Chicago O'Hare International Airport", iataCode: "ORD" }, { name: "Chongqing Jiangbei International Airport", iataCode: "CKG" }, { name: "Christchurch International Airport", iataCode: "CHC" }, { name: "Copenhagen Kastrup Airport", iataCode: "CPH" }, { name: "Dallas Fort Worth International Airport", iataCode: "DFW" }, { name: "Daniel K. Inouye International Airport", iataCode: "HNL" }, { name: "Denver International Airport", iataCode: "DEN" }, { name: "Don Mueang International Airport", iataCode: "DMK" }, { name: "Dubai International Airport", iataCode: "DXB" }, { name: "Dublin Airport", iataCode: "DUB" }, { name: "Dusseldorf Airport", iataCode: "DUS" }, { name: "El Dorado International Airport", iataCode: "BOG" }, { name: "Eleftherios Venizelos International Airport", iataCode: "ATH" }, { name: "Faa'a International Airport", iataCode: "PPT" }, { name: "Fort Lauderdale Hollywood International Airport", iataCode: "FLL" }, { name: "Fortaleza Pinto Martins International Airport", iataCode: "FOR" }, { name: "Frankfurt am Main Airport", iataCode: "FRA" }, { name: "George Bush Intercontinental Houston Airport", iataCode: "IAH" }, { name: "Gold Coast Airport", iataCode: "OOL" }, { name: "Guarulhos - Governador Andre Franco Montoro International Airport", iataCode: "GRU" }, { name: "Hartsfield-Jackson Atlanta International Airport", iataCode: "ATL" }, { name: "Helsinki Vantaa Airport", iataCode: "HEL" }, { name: "Hobart International Airport", iataCode: "HBA" }, { name: "Hong Kong International Airport", iataCode: "HKG" }, { name: "Houari Boumediene Airport", iataCode: "ALG" }, { name: "Hurgada International Airport", iataCode: "HRG" }, { name: "Incheon International Airport", iataCode: "ICN" }, { name: "Indira Gandhi International Airport", iataCode: "DEL" }, { name: "Istanbul Airport", iataCode: "IST" }, { name: "Jacksons International Airport", iataCode: "POM" }, { name: "Jeju International Airport", iataCode: "CJU" }, { name: "John F Kennedy International Airport", iataCode: "JFK" }, { name: "Jorge Chavez International Airport", iataCode: "LIM" }, { name: "Jose Maria Cordova International Airport", iataCode: "MDE" }, { name: "Josep Tarradellas Barcelona-El Prat Airport", iataCode: "BCN" }, { name: "Kahului Airport", iataCode: "OGG" }, { name: "King Abdulaziz International Airport", iataCode: "JED" }, { name: "Kuala Lumpur International Airport", iataCode: "KUL" }, { name: "Kunming Changshui International Airport", iataCode: "KMG" }, { name: "La Tontouta International Airport", iataCode: "NOU" }, { name: "Leonardo da Vinci-Fiumicino Airport", iataCode: "FCO" }, { name: "London Heathrow Airport", iataCode: "LHR" }, { name: "Los Angeles International Airport", iataCode: "LAX" }, { name: "McCarran International Airport", iataCode: "LAS" }, { name: "Melbourne International Airport", iataCode: "MEL" }, { name: "Mexico City International Airport", iataCode: "MEX" }, { name: "Miami International Airport", iataCode: "MIA" }, { name: "Ministro Pistarini International Airport", iataCode: "EZE" }, { name: "Minneapolis-St Paul International/Wold-Chamberlain Airport", iataCode: "MSP" }, { name: "Mohammed V International Airport", iataCode: "CMN" }, { name: "Moscow Domodedovo Airport", iataCode: "DME" }, { name: "Munich Airport", iataCode: "MUC" }, { name: "Murtala Muhammed International Airport", iataCode: "LOS" }, { name: "Nadi International Airport", iataCode: "NAN" }, { name: "Nairobi Jomo Kenyatta International Airport", iataCode: "NBO" }, { name: "Narita International Airport", iataCode: "NRT" }, { name: "Newark Liberty International Airport", iataCode: "EWR" }, { name: "Ninoy Aquino International Airport", iataCode: "MNL" }, { name: "Noumea Magenta Airport", iataCode: "GEA" }, { name: "O. R. Tambo International Airport", iataCode: "JNB" }, { name: "Orlando International Airport", iataCode: "MCO" }, { name: "Oslo Lufthavn", iataCode: "OSL" }, { name: "Perth Airport", iataCode: "PER" }, { name: "Phoenix Sky Harbor International Airport", iataCode: "PHX" }, { name: "Recife Guararapes-Gilberto Freyre International Airport", iataCode: "REC" }, { name: "Rio de Janeiro Galeao International Airport", iataCode: "GIG" }, { name: "Salgado Filho International Airport", iataCode: "POA" }, { name: "Salvador Deputado Luis Eduardo Magalhaes International Airport", iataCode: "SSA" }, { name: "San Francisco International Airport", iataCode: "SFO" }, { name: "Santos Dumont Airport", iataCode: "SDU" }, { name: "Sao Paulo-Congonhas Airport", iataCode: "CGH" }, { name: "Seattle Tacoma International Airport", iataCode: "SEA" }, { name: "Shanghai Hongqiao International Airport", iataCode: "SHA" }, { name: "Shanghai Pudong International Airport", iataCode: "PVG" }, { name: "Shenzhen Bao'an International Airport", iataCode: "SZX" }, { name: "Sheremetyevo International Airport", iataCode: "SVO" }, { name: "Singapore Changi Airport", iataCode: "SIN" }, { name: "Soekarno-Hatta International Airport", iataCode: "CGK" }, { name: 'Stockholm-Arlanda Airport"', iataCode: "ARN" }, { name: "Suvarnabhumi Airport", iataCode: "BKK" }, { name: "Sydney Kingsford Smith International Airport", iataCode: "SYD" }, { name: "Taiwan Taoyuan International Airport", iataCode: "TPE" }, { name: "Tan Son Nhat International Airport", iataCode: "SGN" }, { name: "Tokyo Haneda International Airport", iataCode: "HND" }, { name: "Toronto Pearson International Airport", iataCode: "YYZ" }, { name: "Tunis Carthage International Airport", iataCode: "TUN" }, { name: "Vancouver International Airport", iataCode: "YVR" }, { name: "Vienna International Airport", iataCode: "VIE" }, { name: "Viracopos International Airport", iataCode: "VCP" }, { name: "Vnukovo International Airport", iataCode: "VKO" }, { name: "Wellington International Airport", iataCode: "WLG" }, { name: "Xi'an Xianyang International Airport", iataCode: "XIY" }, { name: "Zhukovsky International Airport", iataCode: "ZIA" }, { name: "Zurich Airport", iataCode: "ZRH" }];
|
|
6
6
|
var Za = { airline: e, airplane: a, airport: r }, o = Za;
|
|
@@ -26,20 +26,20 @@ var v$1 = ["Redhold", "Treeflex", "Trippledex", "Kanlam", "Bigtax", "Daltfresh",
|
|
|
26
26
|
var A$1 = ["0.#.#", "0.##", "#.##", "#.#", "#.#.#"];
|
|
27
27
|
var Qa = { author: f$1, name: v$1, version: A$1 }, B$1 = Qa;
|
|
28
28
|
var T$1 = ["A.A. Milne", "Agatha Christie", "Alan Moore and Dave Gibbons", "Albert Camus", "Aldous Huxley", "Alexander Pope", "Alexandre Dumas", "Alice Walker", "Andrew Lang", "Anne Frank", "Anthony Burgess", "Anthony Trollope", "Antoine de Saint-Exupéry", "Anton Chekhov", "Anton Pavlovich Chekhov", "Arthur Conan Doyle", "Arthur Schopenhauer", "Aylmer Maude", "Ayn Rand", "Beatrix Potter", "Benjamin Disraeli", "Benjamin Jowett", "Bernard Shaw", "Bertrand Russell", "Bhagavanlal Indrajit", "Boris Pasternak", "Bram Stoker", "Brian Evenson", "C.E. Brock", "C.S. Lewis", "Carson McCallers", "Charles Dickens", "Charles E. Derbyshire", "Charlotte Brontë", "Charlotte Perkins Gilman", "Chinua Achebe", "Clifford R. Adams", "Constance Garnett", "Cormac McCarthy", "D.H. Lawrence", "Dan Brown", "Daniel Defoe", "Dante Alighieri", "Dashiell Hammett", "David Widger", "David Wyllie", "Dean Koontz", "Don DeLillo", "E.M. Forster", "Edgar Allan Poe", "Edgar Rice Burroughs", "Elizabeth Cleghorn Gaskell", "Elizabeth Von Arnim", "Emily Brontë", "Erich Remarque", "Ernest Hemingway", "Evelyn Waugh", "F. Scott Fitzgerald", "Ford Madox Ford", "Frances Hodgson Burnett", "Frank Herbert", "Frank T. Merrill", "Franz Kafka", "Friedrich Wilhelm Nietzsche", "Fyodor Dostoyevsky", "G.K. Chesterton", "Gabriel Garcia Marquez", "Geoffrey Chaucer", "George Eliot", "George Grossmith", "George Orwell", "George R. R. Martin", "George Saunders", "Grady Ward", "Graham Greene", "Gustave Doré", "Gustave Flaubert", "Guy de Maupassant", "Günter Grass", "H.G. Wells", "H.P. Lovecraft", "Harper Lee", "Harriet Beecher Stowe", "Haruki Murakami", "Henrik Ibsen", "Henry David Thoreau", "Henry Fielding", "Henry James", "Henry Miller", "Henry Morley", "Herman Melville", "Hermann Broch", "Homer", "Honoré de Balzac", "Ian McEwan", "Isabel Florence Hapgood", "Italo Calvino", "J.D. Salinger", "J.K. Rowling", "J.M. Barrie", "J.R.R. Tolkien", "Jack Kerouac", "Jack London", "Jacob Grimm", "Jacqueline Crooks", "James Baldwin", "James Dickey", "James Ellroy", "James Joyce", "James Patterson", "Jane Austen", "Johann Wolfgang von Goethe", "John Bunyan", "John Camden Hotten", "John Dos Passos", "John Green", "John Grisham", "John Kennedy Toole", "John Milton", "John Ormsby", "John Steinbeck", "John Updike", "Jonathan Franzen", "Jonathan Swift", "Joseph Conrad", "Joseph Heller", "José Rizal", "Judy Blume", "Jules Verne", "Junot Diaz", "Karl Marx", "Kazuo Ishiguro", "Ken Follett", "Ken Kesey", "Kenneth Grahame", "Khaled Hosseini", "Kingsley Amis", "Kurt Vonnegut", "L. Frank Baum", "L.M. Montgomery", "Laurence Sterne", "Leo Tolstoy", "Lewis Carroll", "Louisa May Alcott", "Louise Maude", "Malcolm Lowry", "Marcel Proust", "Margaret Atwood", "Margaret Mitchell", "Marilynne Robinson", "Mark Twain", "Martin Amis", "Mary Shelley", "Michael Chabon", "Miguel de Cervantes", "Mikhail Bulgakov", "Muriel Spark", "Nancy Mitford", "Nathanael West", "Nathaniel Hawthorne", "Neil Gaiman", "Niccolo Machiavelli", "Norman Mailer", "Oscar Levy", "Oscar Wilde", "P.G. Wodehouse", "Paulo Coelho", "Peter Carey", "Philip Pullman", "Philip Roth", "Plato", "R.L. Stine", "Rachel Kushner", "Ralph Ellison", "Ray Bradbury", "Raymond Chandler", "Richard Wagner", "Richard Wright", "Richard Yates", "Roald Dahl", "Robert Graves", "Robert Louis Stevenson", "Robert Penn Warren", "Rudyard Kipling", "Salman Rushdie", "Samuel Beckett", "Samuel Butler", "Samuel Richardson", "Saul Bellow", "Shivaram Parashuram Bhide", "Sir Arthur Conan Doyle", "Sir Richard Francis Burton", "Stendhal", "Stephen Hawking", "Stephen King", "Sun Tzu", "Suzanne Collins", "T. Smollett", "T.S. Eliot", "Theodore Alois Buckley", "Theodore Dreiser", "Thomas Hardy", "Thomas Love Peacock", "Thomas Mann", "Toni Morrison", "Truman Capote", "V.S. Naipaul", "Vance Packard", "Vatsyayana", "Victor Hugo", "Virgil", "Virginia Woolf", "Vladimir Nabokov", "Voltaire", "W.G. Sebald", "W.K. Marriott", "Walker Percy", "Walt Whitman", "Walter Scott", "Wilhelm Grimm", "Wilkie Collins", "William Faulkner", "William Gibson", "William Golding", "William Makepeace Thackeray", "William Shakespeare", "Zadie Smith"];
|
|
29
|
-
var M
|
|
29
|
+
var M = ["Audiobook", "Ebook", "Hardcover", "Paperback"];
|
|
30
30
|
var w$1 = ["Adventure", "Biography", "Business", "Children's Literature", "Classic", "Comedy", "Comic", "Detective", "Drama", "Fantasy", "Graphic Novel", "Historical Fiction", "Horror", "Memoir", "Mystery", "Mythology", "Philosophy", "Poetry", "Psychology", "Religion", "Romance", "Science Fiction", "Thriller", "Western", "Young Adult"];
|
|
31
31
|
var L$1 = ["Academic Press", "Ace Books", "Addison-Wesley", "Adis International", "Airiti Press", "Allen Ltd", "Andrews McMeel Publishing", "Anova Books", "Anvil Press Poetry", "Applewood Books", "Apress", "Athabasca University Press", "Atheneum Books", "Atheneum Publishers", "Atlantic Books", "Atlas Press", "BBC Books", "Ballantine Books", "Banner of Truth Trust", "Bantam Books", "Bantam Spectra", "Barrie & Jenkins", "Basic Books", "Belknap Press", "Bella Books", "Bellevue Literary Press", "Berg Publishers", "Berkley Books", "Bison Books", "Black Dog Publishing", "Black Library", "Black Sparrow Books", "Blackie and Son Limited", "Blackstaff Press", "Blackwell Publishing", "Bloodaxe Books", "Bloomsbury Publishing Plc", "Blue Ribbon Books", "Book League of America", "Book Works", "Booktrope", "Borgo Press", "Bowes & Bowes", "Boydell & Brewer", "Breslov Research Institute", "Brill", "Brimstone Press", "Broadview Press", "Burns & Oates", "Butterworth-Heinemann", "Caister Academic Press", "Cambridge University Press", "Candlewick Press", "Canongate Books", "Carcanet Press", "Carlton Books", "Carlton Publishing Group", "Carnegie Mellon University Press", "Casemate Publishers", "Cengage Learning", "Central European University Press", "Chambers Harrap", "Charles Scribner's Sons", "Chatto and Windus", "Chick Publications", "Chronicle Books", "Churchill Livingstone", "Cisco Press", "City Lights Publishers", "Cloverdale Corporation", "D. Appleton & Company", "D. Reidel", "DAW Books", "Da Capo Press", "Daedalus Publishing", "Dalkey Archive Press", "Darakwon Press", "David & Charles", "Dedalus Books", "Del Rey Books", "E. P. Dutton", "ECW Press", "Earthscan", "Edupedia Publications", "Eel Pie Publishing", "Eerdmans Publishing", "Ellora's Cave", "Elsevier", "Emerald Group Publishing", "Etruscan Press", "FabJob", "Faber and Faber", "Fairview Press", "Farrar, Straus & Giroux", "Fearless Books", "Felony & Mayhem Press", "Firebrand Books", "Flame Tree Publishing", "Focal Press", "G-Unit Books", "G. P. Putnam's Sons", "Gaspereau Press", "Gay Men's Press", "Gefen Publishing House", "George H. Doran Company", "George Newnes", "George Routledge & Sons", "Godwit Press", "Golden Cockerel Press", "HMSO", "Hachette Book Group USA", "Hackett Publishing Company", "Hamish Hamilton", "Happy House", "Harcourt Assessment", "Harcourt Trade Publishers", "Harlequin Enterprises Ltd", "Harper & Brothers", "Harper & Row", "HarperCollins", "HarperPrism", "HarperTrophy", "Harry N. Abrams, Inc.", "Harvard University Press", "Harvest House", "Harvill Press at Random House", "Hawthorne Books", "Hay House", "Haynes Manuals", "Heyday Books", "Hodder & Stoughton", "Hodder Headline", "Hogarth Press", "Holland Park Press", "Holt McDougal", "Horizon Scientific Press", "Ian Allan Publishing", "Ignatius Press", "Imperial War Museum", "Indiana University Press", "J. M. Dent", "Jaico Publishing House", "Jarrolds Publishing", "John Blake Publishing", "Karadi Tales", "Kensington Books", "Kessinger Publishing", "Kodansha", "Kogan Page", "Koren Publishers Jerusalem", "Ladybird Books", "Leaf Books", "Leafwood Publishers", "Left Book Club", "Legend Books", "Lethe Press", "Libertas Academica", "Liberty Fund", "Library of America", "Lion Hudson", "Macmillan Publishers", "Mainstream Publishing", "Manchester University Press", "Mandrake Press", "Mandrake of Oxford", "Manning Publications", "Manor House Publishing", "Mapin Publishing", "Marion Boyars Publishers", "Mark Batty Publisher", "Marshall Cavendish", "Marshall Pickering", "Martinus Nijhoff Publishers", "Mascot Books", "Matthias Media", "McClelland and Stewart", "McFarland & Company", "McGraw Hill Financial", "McGraw-Hill Education", "Medknow Publications", "Naiad Press", "Nauka", "NavPress", "New Directions Publishing", "New English Library", "New Holland Publishers", "New Village Press", "Newnes", "No Starch Press", "Nonesuch Press", "O'Reilly Media", "Oberon Books", "Open Court Publishing Company", "Open University Press", "Orchard Books", "Orion Books", "Packt Publishing", "Palgrave Macmillan", "Pan Books", "Pantheon Books at Random House", "Papadakis Publisher", "Parachute Publishing", "Parragon", "Pathfinder Press", "Paulist Press", "Pavilion Books", "Peace Hill Press", "Pecan Grove Press", "Pen and Sword Books", "Penguin Books", "Random House", "Reed Elsevier", "Reed Publishing", "SAGE Publications", "Salt Publishing", "Sams Publishing", "Schocken Books", "Scholastic Press", "Seagull Books", "Secker & Warburg", "Shambhala Publications", "Shire Books", "Shoemaker & Hoard Publishers", "Shuter & Shooter Publishers", "Sidgwick & Jackson", "Signet Books", "Simon & Schuster", "St. Martin's Press", "T & T Clark", "Tachyon Publications", "Tammi", "Target Books", "Tarpaulin Sky Press", "Tartarus Press", "Tate Publishing & Enterprises", "Taunton Press", "Taylor & Francis", "Ten Speed Press", "UCL Press", "Unfinished Monument Press", "United States Government Publishing Office", "University of Akron Press", "University of Alaska Press", "University of California Press", "University of Chicago Press", "University of Michigan Press", "University of Minnesota Press", "University of Nebraska Press", "Velazquez Press", "Verso Books", "Victor Gollancz Ltd", "Viking Press", "Vintage Books", "Vintage Books at Random House", "Virago Press", "Virgin Publishing", "Voyager Books", "Zed Books", "Ziff Davis Media", "Zondervan"];
|
|
32
32
|
var D$1 = ["A Song of Ice and Fire", "Anna Karenina", "Colonel Race", "Discworld", "Dune", "Harry Potter", "Hercule Poirot", "His Dark Materials", "Jane Austen Murder Mysteries", "Little Women", "Outlander", "Percy Jackson", "Sherlock Holmes", "The Arc of a Scythe", "The Bartimaeus Trilogy", "The Border Trilogy", "The Chronicles of Narnia", "The Dark Tower", "The Dresden Files", "The Eighth Life", "The Foundation Series", "The Hitchhiker's Guide to the Galaxy", "The Hunger Games", "The Infinity Cycle", "The Inheritance Cycle", "The Lord of the Rings", "The Maze Runner", "The Prison Healer", "The Red Rising Saga", "The Southern Reach", "The Wheel of Time", "Thursday Next Series", "Twilight", "War and Peace"];
|
|
33
33
|
var R$1 = ["1984", "20,000 Leagues Under the Sea", "A Bend in the River", "A Brief History of Time", "A Clockwork Orange", "A Confederacy of Dunces", "A Doll's House", "A Handful of Dust", "A Modest Proposal", "A Passage to India", "A Portrait of the Artist as a Young Man", "A Room with a View", "A Study in Scarlet", "A Tale of Two Cities", "A Wrinkle in Time", "Absalom, Absalom!", "Adventures of Huckleberry Finn", "Alice's Adventures in Wonderland", "All Quiet on the Western Front", "All the King's Men", "American Pastoral", "An American Tragedy", "And Then There Were None", "Animal Farm", "Anna Karenina", "Anne of Green Gables", "Are You There God? It's Me, Margaret", "As I Lay Dying", "Atlas Shrugged", "Atonement", "Austerlitz", "Beloved", "Beyond Good and Evil", "Bible", "Bleak House", "Blood Meridian", "Brave New World", "Brideshead Revisited", "Candide", "Carmilla", "Catch-22", "Charlie and the Chocolate Factory", "Charlotte's Web", "Clarissa", "Cranford", "Crime and Punishment", "Dao De Jing: A Minimalist Translation", "David Copperfield", "Deliverance", "Don Quixote", "Dora", "Dr. Zhivago", "Dracula", "Dubliners", "Dune", "East of Eden", "Emma", "Fahrenheit 451", "Faust", "For Whom the Bell Tolls", "Frankenstein", "Freakonomics", "Go Tell It on the Mountain", "Gone with the Wind", "Great Expectations", "Grimms' Fairy Tales", "Gulliver's Travels", "Hamlet", "Harry Potter and the Sorcerer's Stone", "Heart of Darkness", "Herzog", "His Dark Materials", "Hitting the line", "Housekeeping", "I, Claudius", "If on a Winter's Night a Traveler", "In Cold Blood", "In Search of Lost Time", "Invisible Man", "It", "Jane Eyre", "Josefine Mutzenbacher", "Jude the Obscure", "L.A. Confidential", "Leaves of Grass", "Les Miserables", "Life of Pi", "Little Women", "Lolita", "Long Walk to Freedom", "Lord Jim", "Lord of the Flies", "Lucky Jim", "Madame Bovary", "Malone Dies", "Meditations", "Men Without Women", "Metamorphosis", "Middlemarch", "Midnight's Children", "Moby Dick", "Money", "Mrs. Dalloway", "My Bondage and My Freedom", "My Life", "Native Son", "Neuromancer", "Never Let Me Go", "Nightmare Abbey", "Nineteen Eighty Four", "Nostromo", "Notes from the Underground", "Of Mice and Men", "Oliver Twist", "On the Duty of Civil Disobedience", "On the Road", "One Flew Over the Cuckoo's Nest", "One Hundred Years of Solitude", "One Thousand and One Nights", "Oscar and Lucinda", "Pale Fire", "Paradise Lost", "Peter Pan", "Portnoy's Complaint", "Pride and Prejudice", "Rabbit, Run", "Republic", "Revolutionary Road", "Robinson Crusoe", "Romeo and Juliet", "Ruth Fielding in Alaska", "Scoop", "Second Treatise of Government", "Slaughterhouse Five", "Stories of Anton Chekhov", "Sybil", "Tess of the d'Urbervilles", "The Adventures of Augie March", "The Adventures of Huckleberry Finn", "The Adventures of Sherlock Holmes", "The Adventures of Tom Sawyer", "The Aeneid", "The Alchemist", "The Ambassadors", "The Art of War", "The Big Sleep", "The Black Sheep", "The Blue Castle", "The Brief Wondrous Life of Oscar Wao", "The Brothers Karamazov", "The Call of the Wild", "The Canterbury Tales", "The Catcher in the Rye", "The Color Purple", "The Complete Works of Edgar Allen Poe", "The Corrections", "The Count of Monte Cristo", "The Day of the Locust", "The Diary of a Nobody", "The Diary of a Young Girl", "The Divine Comedy", "The Enchanted April", "The Fountainhead", "The Golden Bowl", "The Golden Notebook", "The Good Soldier", "The Grapes of Wrath", "The Great Gatsby", "The Handmaid's Tale", "The Heart is a Lonely Hunter", "The Heart of the Matter", "The Hobbit", "The Hound of the Baskervilles", "The Idiot", "The Iliad", "The King in Yellow", "The Kite Runner", "The Lion, the Witch, and the Wardrobe", "The Little Prince", "The Lord of the Rings", "The Magic Mountain", "The Maltese Falcon", "The Master and Margarita", "The Moviegoer", "The Naked and the Dead", "The Odyssey", "The Old Man and the Sea", "The Pickwick Papers", "The Picture of Dorian Gray", "The Pilgrim's Progress", "The Pillars of the Earth", "The Plague", "The Portrait of a Lady", "The Prime of Miss Jean Brodie", "The Prince", "The Problems of Philosophy", "The Prophet", "The Pursuit of Love", "The Rainbow", "The Red and the Black", "The Remains of the Day", "The Republic", "The Scarlet Letter", "The Sleepwalkers", "The Sound and the Fury", "The Stand", "The Strange Case of Dr. Jekyll and Mr. Hyde", "The Stranger", "The Sun Also Rises", "The Thirty-Nine Steps", "The Three Musketeers", "The Time Machine", "The Tin Drum", "The Trial", "The War of the Worlds", "The Waste Land", "The Way We Live Now", "The Wind in the Willows", "The Woman in White", "The Wonderful Wizard of Oz", "The Works of Edgar Allan Poe", "The Yellow Wallpaper", "Things Fall Apart", "Tinker, Tailor, Soldier, Spy", "To Kill a Mockingbird", "To the Lighthouse", "Tom Jones", "Treasure Island", "Tristram Shandy", "Tropic of Cancer", "U.S.A. Trilogy", "Ulysses", "Uncle Tom's Cabin", "Under the Volcano", "Underworld", "Vanity Fair", "Walden", "War and Peace", "Watchmen", "Winnie-the-Pooh", "Wuthering Heights"];
|
|
34
|
-
var Xa = { author: T$1, format: M
|
|
34
|
+
var Xa = { author: T$1, format: M, genre: w$1, publisher: L$1, series: D$1, title: R$1 }, P$1 = Xa;
|
|
35
35
|
var H$1 = ["###-###-####", "(###) ###-####", "1-###-###-####", "###.###.####"];
|
|
36
36
|
var $a = { formats: H$1 }, W$1 = $a;
|
|
37
37
|
var G$1 = ["azure", "black", "blue", "cyan", "fuchsia", "gold", "green", "grey", "indigo", "ivory", "lavender", "lime", "magenta", "maroon", "mint green", "olive", "orange", "orchid", "pink", "plum", "purple", "red", "salmon", "silver", "sky blue", "tan", "teal", "turquoise", "violet", "white", "yellow"];
|
|
38
38
|
var er$1 = { human: G$1 }, F$1 = er$1;
|
|
39
|
-
var N = ["Automotive", "Baby", "Beauty", "Books", "Clothing", "Computers", "Electronics", "Games", "Garden", "Grocery", "Health", "Home", "Industrial", "Jewelry", "Kids", "Movies", "Music", "Outdoors", "Shoes", "Sports", "Tools", "Toys"];
|
|
39
|
+
var N$1 = ["Automotive", "Baby", "Beauty", "Books", "Clothing", "Computers", "Electronics", "Games", "Garden", "Grocery", "Health", "Home", "Industrial", "Jewelry", "Kids", "Movies", "Music", "Outdoors", "Shoes", "Sports", "Tools", "Toys"];
|
|
40
40
|
var E = ["Discover the {{animal.type}}-like agility of our {{commerce.product}}, perfect for {{word.adjective}} users", "Discover the {{word.adjective}} new {{commerce.product}} with an exciting mix of {{commerce.productMaterial}} ingredients", "Ergonomic {{commerce.product}} made with {{commerce.productMaterial}} for all-day {{word.adjective}} support", "Experience the {{color.human}} brilliance of our {{commerce.product}}, perfect for {{word.adjective}} environments", "Featuring {{science.chemical_element.name}}-enhanced technology, our {{commerce.product}} offers unparalleled {{word.adjective}} performance", "Innovative {{commerce.product}} featuring {{word.adjective}} technology and {{commerce.productMaterial}} construction", "Introducing the {{location.country}}-inspired {{commerce.product}}, blending {{word.adjective}} style with local craftsmanship", "New {{color.human}} {{commerce.product}} with ergonomic design for {{word.adjective}} comfort", 'New {{commerce.product}} model with {{number.int({"min": 1, "max": 100})}} GB RAM, {{number.int({"min": 1, "max": 1000})}} GB storage, and {{word.adjective}} features', "Our {{animal.type}}-friendly {{commerce.product}} ensures {{word.adjective}} comfort for your pets", "Our {{food.adjective}}-inspired {{commerce.product}} brings a taste of luxury to your {{word.adjective}} lifestyle", "Professional-grade {{commerce.product}} perfect for {{word.adjective}} training and recreational use", "Savor the {{food.adjective}} essence in our {{commerce.product}}, designed for {{word.adjective}} culinary adventures", "Stylish {{commerce.product}} designed to make you stand out with {{word.adjective}} looks", "The sleek and {{word.adjective}} {{commerce.product}} comes with {{color.human}} LED lighting for smart functionality", "The {{color.human}} {{commerce.product}} combines {{location.country}} aesthetics with {{science.chemical_element.name}}-based durability", "The {{company.catchPhrase}} {{commerce.product}} offers reliable performance and {{word.adjective}} design", "The {{person.firstName}} {{commerce.product}} is the latest in a series of {{word.adjective}} products from {{company.name}}", "{{commerce.productAdjective}} {{commerce.product}} designed with {{commerce.productMaterial}} for {{word.adjective}} performance", "{{company.name}}'s most advanced {{commerce.product}} technology increases {{word.adjective}} capabilities"];
|
|
41
41
|
var J$1 = { adjective: ["Awesome", "Bespoke", "Electronic", "Elegant", "Ergonomic", "Fantastic", "Fresh", "Frozen", "Generic", "Gorgeous", "Handcrafted", "Handmade", "Incredible", "Intelligent", "Licensed", "Luxurious", "Modern", "Oriental", "Practical", "Recycled", "Refined", "Rustic", "Sleek", "Small", "Soft", "Tasty", "Unbranded"], material: ["Aluminum", "Bamboo", "Bronze", "Ceramic", "Concrete", "Cotton", "Gold", "Granite", "Marble", "Metal", "Plastic", "Rubber", "Silk", "Steel", "Wooden"], product: ["Bacon", "Ball", "Bike", "Car", "Chair", "Cheese", "Chicken", "Chips", "Computer", "Fish", "Gloves", "Hat", "Keyboard", "Mouse", "Pants", "Pizza", "Salad", "Sausages", "Shirt", "Shoes", "Soap", "Table", "Towels", "Tuna"] };
|
|
42
|
-
var ar$1 = { department: N, product_description: E, product_name: J$1 }, I$1 = ar$1;
|
|
42
|
+
var ar$1 = { department: N$1, product_description: E, product_name: J$1 }, I$1 = ar$1;
|
|
43
43
|
var K$1 = ["AI-driven", "Adaptive", "Advanced", "Automated", "Balanced", "Business-focused", "Centralized", "Compatible", "Configurable", "Cross-platform", "Customer-focused", "Customizable", "Decentralized", "Devolved", "Digitized", "Distributed", "Diverse", "Enhanced", "Ergonomic", "Exclusive", "Expanded", "Extended", "Face to face", "Focused", "Front-line", "Fully-configurable", "Fundamental", "Future-proofed", "Grass-roots", "Horizontal", "Immersive", "Implemented", "Innovative", "Integrated", "Intuitive", "Managed", "Monitored", "Multi-tiered", "Networked", "Open-architected", "Open-source", "Operative", "Optimized", "Optional", "Organic", "Organized", "Persevering", "Persistent", "Phased", "Polarised", "Proactive", "Profit-focused", "Profound", "Programmable", "Progressive", "Public-key", "Quality-focused", "Reactive", "Realigned", "Reduced", "Reverse-engineered", "Robust", "Seamless", "Secured", "Self-enabling", "Sharable", "Smart", "Stand-alone", "Streamlined", "Sustainable", "Synchronised", "Team-oriented", "Total", "Triple-buffered", "Universal", "Upgradable", "User-centric", "User-friendly", "Versatile", "Virtual", "Visionary"];
|
|
44
44
|
var O$1 = ["24/7", "AI-driven", "B2B", "B2C", "back-end", "best-of-breed", "bleeding-edge", "collaborative", "compelling", "cross-media", "cross-platform", "customized", "cutting-edge", "decentralized", "distributed", "dynamic", "efficient", "end-to-end", "enterprise", "extensible", "frictionless", "front-end", "generative", "global", "granular", "holistic", "immersive", "impactful", "innovative", "integrated", "interactive", "intuitive", "killer", "leading-edge", "magnetic", "mission-critical", "next-generation", "one-to-one", "open-source", "out-of-the-box", "plug-and-play", "proactive", "quantum", "real-time", "revolutionary", "rich", "robust", "scalable", "seamless", "smart", "sticky", "strategic", "sustainable", "synergistic", "transparent", "turn-key", "ubiquitous", "user-centric", "value-added", "vertical", "viral", "virtual", "visionary", "world-class"];
|
|
45
45
|
var x$1 = ["AI", "ROI", "applications", "architectures", "blockchains", "channels", "communities", "content", "convergence", "deliverables", "e-commerce", "experiences", "functionalities", "infrastructures", "initiatives", "interfaces", "large language models", "lifetime value", "markets", "methodologies", "metrics", "mindshare", "models", "networks", "niches", "paradigms", "partnerships", "platforms", "relationships", "schemas", "smart contracts", "solutions", "supply-chains", "synergies", "systems", "technologies", "users", "web services"];
|
|
@@ -50,14 +50,14 @@ var j$1 = ["{{person.last_name.generic}} - {{person.last_name.generic}}", "{{per
|
|
|
50
50
|
var q$1 = ["ability", "access", "adapter", "algorithm", "alliance", "analyzer", "application", "approach", "architecture", "archive", "array", "artificial intelligence", "attitude", "benchmark", "budgetary management", "capability", "capacity", "challenge", "circuit", "collaboration", "complexity", "concept", "conglomeration", "contingency", "core", "customer loyalty", "data-warehouse", "database", "definition", "emulation", "encoding", "encryption", "firmware", "flexibility", "focus group", "forecast", "frame", "framework", "function", "functionalities", "generative AI", "hardware", "help-desk", "hierarchy", "hub", "implementation", "infrastructure", "initiative", "installation", "instruction set", "interface", "internet solution", "intranet", "knowledge base", "knowledge user", "leverage", "local area network", "matrices", "matrix", "methodology", "microservice", "middleware", "migration", "model", "moderator", "monitoring", "moratorium", "neural-net", "open architecture", "orchestration", "paradigm", "parallelism", "policy", "portal", "pricing structure", "process improvement", "product", "productivity", "project", "projection", "protocol", "service-desk", "software", "solution", "standardization", "strategy", "structure", "success", "support", "synergy", "system engine", "task-force", "throughput", "time-frame", "toolset", "utilisation", "website", "workforce"];
|
|
51
51
|
var rr$1 = { adjective: K$1, buzz_adjective: O$1, buzz_noun: x$1, buzz_verb: z$1, descriptor: V$1, legal_entity_type: Y$1, name_pattern: j$1, noun: q$1 }, U$1 = rr$1;
|
|
52
52
|
var Z$1 = ["avatar", "category", "comment", "createdAt", "email", "group", "id", "name", "password", "phone", "status", "title", "token", "updatedAt"];
|
|
53
|
-
var or$1 = { column: Z$1 }, _ = or$1;
|
|
53
|
+
var or$1 = { column: Z$1 }, _$1 = or$1;
|
|
54
54
|
var Q$1 = { wide: ["April", "August", "December", "February", "January", "July", "June", "March", "May", "November", "October", "September"], abbr: ["Apr", "Aug", "Dec", "Feb", "Jan", "Jul", "Jun", "Mar", "May", "Nov", "Oct", "Sep"] };
|
|
55
55
|
var X$1 = { wide: ["Friday", "Monday", "Saturday", "Sunday", "Thursday", "Tuesday", "Wednesday"], abbr: ["Fri", "Mon", "Sat", "Sun", "Thu", "Tue", "Wed"] };
|
|
56
|
-
var nr$1 = { month: Q$1, weekday: X$1 },
|
|
56
|
+
var nr$1 = { month: Q$1, weekday: X$1 }, $ = nr$1;
|
|
57
57
|
var ee$1 = ["Auto Loan", "Checking", "Credit Card", "Home Loan", "Investment", "Money Market", "Personal Loan", "Savings"];
|
|
58
58
|
var ae$1 = ["34##-######-####L", "37##-######-####L"];
|
|
59
|
-
var re$1 = ["30[0-5]#-######-###L", "36##-######-###L"
|
|
60
|
-
var oe$1 = ["6011-####-####-###L", "
|
|
59
|
+
var re$1 = ["30[0-5]#-######-###L", "36##-######-###L"];
|
|
60
|
+
var oe$1 = ["6011-####-####-###L", "65##-####-####-###L"];
|
|
61
61
|
var ne$1 = ["3528-####-####-###L", "3529-####-####-###L", "35[3-8]#-####-####-###L"];
|
|
62
62
|
var ie$1 = ["2[221-720]-####-####-###L", "5[1-5]##-####-####-###L"];
|
|
63
63
|
var te$1 = ["4###########L", "4###-####-####-###L"];
|
|
@@ -157,10 +157,10 @@ var Ya = ["CD", "SUV", "abacus", "academics", "accelerator", "accompanist", "acc
|
|
|
157
157
|
var ja = ["a", "abaft", "aboard", "about", "above", "absent", "across", "afore", "after", "against", "along", "alongside", "amid", "amidst", "among", "amongst", "an", "anenst", "anti", "apropos", "apud", "around", "as", "aside", "astride", "at", "athwart", "atop", "barring", "before", "behind", "below", "beneath", "beside", "besides", "between", "beyond", "but", "by", "circa", "concerning", "considering", "despite", "down", "during", "except", "excepting", "excluding", "failing", "following", "for", "forenenst", "from", "given", "in", "including", "inside", "into", "lest", "like", "mid", "midst", "minus", "modulo", "near", "next", "notwithstanding", "of", "off", "on", "onto", "opposite", "out", "outside", "over", "pace", "past", "per", "plus", "pro", "qua", "regarding", "round", "sans", "save", "since", "than", "the", "through", "throughout", "till", "times", "to", "toward", "towards", "under", "underneath", "unlike", "until", "unto", "up", "upon", "versus", "via", "vice", "with", "within", "without", "worth"];
|
|
158
158
|
var qa = ["abnegate", "abscond", "abseil", "absolve", "accentuate", "accept", "access", "accessorise", "accompany", "account", "accredit", "achieve", "acknowledge", "acquire", "adjourn", "adjudge", "admonish", "adumbrate", "advocate", "afford", "airbrush", "ameliorate", "amend", "amount", "anaesthetise", "analyse", "anesthetize", "anneal", "annex", "antagonize", "ape", "apologise", "apostrophize", "appertain", "appreciate", "appropriate", "approximate", "arbitrate", "archive", "arraign", "arrange", "ascertain", "ascribe", "assail", "atomize", "attend", "attest", "attribute", "augment", "avow", "axe", "baa", "banish", "bank", "baptise", "battle", "beard", "beep", "behold", "belabor", "bemuse", "besmirch", "bestride", "better", "bewail", "bicycle", "bide", "bind", "biodegrade", "blacken", "blaspheme", "bleach", "blend", "blink", "bliss", "bloom", "bludgeon", "bobble", "boggle", "bolster", "book", "boom", "bootleg", "border", "bore", "boss", "braid", "brand", "brandish", "break", "breed", "broadcast", "broadside", "brood", "browse", "buck", "burgeon", "bus", "butter", "buzzing", "camouflage", "cannibalise", "canter", "cap", "capitalise", "capitalize", "capsize", "card", "carouse", "carp", "carpool", "catalog", "catalyze", "catch", "categorise", "cease", "celebrate", "censor", "certify", "char", "charter", "chase", "chatter", "chime", "chip", "christen", "chromakey", "chunder", "chunter", "cinch", "circle", "circulate", "circumnavigate", "clamor", "clamour", "claw", "cleave", "clinch", "clinking", "clone", "clonk", "coagulate", "coexist", "coincide", "collaborate", "colligate", "colorize", "colour", "comb", "come", "commandeer", "commemorate", "communicate", "compete", "conceal", "conceptualize", "conclude", "concrete", "condense", "cone", "confide", "confirm", "confiscate", "confound", "confute", "congregate", "conjecture", "connect", "consign", "construe", "contradict", "contrast", "contravene", "controvert", "convalesce", "converse", "convince", "convoke", "coop", "cop", "corner", "covenant", "cow", "crackle", "cram", "crank", "creak", "creaking", "cripple", "croon", "cross", "crumble", "crystallize", "culminate", "culture", "curry", "curse", "customise", "cycle", "dally", "dampen", "darn", "debit", "debut", "decide", "decode", "decouple", "decriminalize", "deduce", "deduct", "deflate", "deflect", "deform", "defrag", "degenerate", "degrease", "delete", "delight", "deliquesce", "demob", "demobilise", "democratize", "demonstrate", "denitrify", "deny", "depart", "depend", "deplore", "deploy", "deprave", "depute", "dereference", "describe", "desecrate", "deselect", "destock", "detain", "develop", "devise", "dial", "dicker", "digitize", "dilate", "disapprove", "disarm", "disbar", "discontinue", "disgorge", "dishearten", "dishonor", "disinherit", "dislocate", "dispense", "display", "dispose", "disrespect", "dissemble", "ditch", "divert", "dock", "doodle", "downchange", "downshift", "dowse", "draft", "drag", "drain", "dramatize", "drowse", "drum", "dwell", "economise", "edge", "efface", "egg", "eke", "electrify", "embalm", "embed", "embody", "emboss", "emerge", "emphasise", "emphasize", "emulsify", "encode", "endow", "enfold", "engage", "engender", "enhance", "enlist", "enrage", "enrich", "enroll", "entice", "entomb", "entrench", "entwine", "equate", "essay", "etch", "eulogise", "even", "evince", "exacerbate", "exaggerate", "exalt", "exempt", "exonerate", "expatiate", "explode", "expostulate", "extract", "extricate", "eyeglasses", "fabricate", "facilitate", "factorise", "factorize", "fail", "fall", "familiarize", "fashion", "father", "fathom", "fax", "federate", "feminize", "fence", "fess", "fictionalize", "fiddle", "fidget", "fill", "flash", "fleck", "flight", "floodlight", "floss", "fluctuate", "fluff", "fly", "focalise", "foot", "forearm", "forecast", "foretell", "forgather", "forgo", "fork", "form", "forswear", "founder", "fraternise", "fray", "frizz", "fumigate", "function", "furlough", "fuss", "gad", "gallivant", "galvanize", "gape", "garage", "garrote", "gasp", "gestate", "give", "glimmer", "glisten", "gloat", "gloss", "glow", "gnash", "gnaw", "goose", "govern", "grade", "graduate", "graft", "grok", "guest", "guilt", "gulp", "gum", "gurn", "gust", "gut", "guzzle", "ham", "harangue", "harvest", "hassle", "haul", "haze", "headline", "hearten", "heighten", "highlight", "hoick", "hold", "hole", "hollow", "holster", "home", "homeschool", "hoot", "horn", "horse", "hotfoot", "house", "hover", "howl", "huddle", "huff", "hunger", "hunt", "husk", "hype", "hypothesise", "hypothesize", "idle", "ignite", "imagineer", "impact", "impanel", "implode", "incinerate", "incline", "inculcate", "industrialize", "ingratiate", "inhibit", "inject", "innovate", "inscribe", "insert", "insist", "inspect", "institute", "institutionalize", "intend", "intermarry", "intermesh", "intermix", "internalise", "internalize", "internationalize", "intrigue", "inure", "inveigle", "inventory", "investigate", "irk", "iterate", "jaywalk", "jell", "jeopardise", "jiggle", "jive", "joint", "jot", "jut", "keel", "knife", "knit", "know", "kowtow", "lack", "lampoon", "large", "leap", "lecture", "legitimize", "lend", "libel", "liberalize", "license", "ligate", "list", "lobotomise", "lock", "log", "loose", "low", "lowball", "machine", "magnetize", "major", "make", "malfunction", "manage", "manipulate", "maroon", "masculinize", "mash", "mask", "masquerade", "massage", "masticate", "materialise", "matter", "maul", "memorise", "merge", "mesh", "metabolise", "microblog", "microchip", "micromanage", "militate", "mill", "minister", "minor", "misappropriate", "miscalculate", "misfire", "misjudge", "miskey", "mismatch", "mispronounce", "misread", "misreport", "misspend", "mob", "mobilise", "mobilize", "moisten", "mooch", "moor", "moralise", "mortar", "mosh", "mothball", "motivate", "motor", "mould", "mount", "muddy", "mummify", "mutate", "mystify", "nab", "narrate", "narrowcast", "nasalise", "nauseate", "navigate", "neaten", "neck", "neglect", "norm", "notarize", "object", "obscure", "observe", "obsess", "obstruct", "obtrude", "offend", "offset", "option", "orchestrate", "orient", "orientate", "outbid", "outdo", "outfit", "outflank", "outfox", "outnumber", "outrank", "outrun", "outsource", "overburden", "overcharge", "overcook", "overdub", "overfeed", "overload", "overplay", "overproduce", "overreact", "override", "overspend", "overstay", "overtrain", "overvalue", "overwork", "own", "oxidise", "oxidize", "oxygenate", "pace", "pack", "pale", "pant", "paralyse", "parody", "part", "pause", "pave", "penalise", "persecute", "personalise", "perspire", "pertain", "peter", "pike", "pillory", "pinion", "pip", "pity", "pivot", "pixellate", "plagiarise", "plait", "plan", "please", "pluck", "ponder", "popularize", "portray", "prance", "preclude", "preheat", "prejudge", "preregister", "presell", "preside", "pretend", "print", "prioritize", "probate", "probe", "proceed", "procrastinate", "profane", "progress", "proliferate", "proofread", "propound", "proselytise", "provision", "pry", "publicize", "puff", "pull", "pulp", "pulverize", "purse", "put", "putrefy", "quadruple", "quaff", "quantify", "quarrel", "quash", "quaver", "question", "quiet", "quintuple", "quip", "quit", "rag", "rally", "ramp", "randomize", "rationalise", "rationalize", "ravage", "ravel", "react", "readies", "readjust", "readmit", "ready", "reapply", "rear", "reassemble", "rebel", "reboot", "reborn", "rebound", "rebuff", "rebuild", "rebuke", "recede", "reckon", "reclassify", "recompense", "reconstitute", "record", "recount", "redact", "redevelop", "redound", "redraw", "redress", "reel", "refer", "reference", "refine", "reflate", "refute", "regulate", "reiterate", "rejigger", "rejoin", "rekindle", "relaunch", "relieve", "remand", "remark", "reopen", "reorient", "replicate", "repossess", "represent", "reprimand", "reproach", "reprove", "repurpose", "requite", "reschedule", "resort", "respray", "restructure", "retool", "retract", "revere", "revitalise", "revoke", "reword", "rewrite", "ride", "ridge", "rim", "ring", "rise", "rival", "roger", "rosin", "rot", "rout", "row", "rue", "rule", "safeguard", "sashay", "sate", "satirise", "satirize", "satisfy", "saturate", "savour", "scale", "scamper", "scar", "scare", "scarper", "scent", "schematise", "scheme", "schlep", "scoff", "scoop", "scope", "scotch", "scowl", "scrabble", "scram", "scramble", "scrape", "screw", "scruple", "scrutinise", "scuffle", "scuttle", "search", "secularize", "see", "segregate", "sell", "sense", "sensitize", "sequester", "serenade", "serialize", "serve", "service", "settle", "sew", "shaft", "sham", "shampoo", "shanghai", "shear", "sheathe", "shell", "shinny", "shirk", "shoot", "shoulder", "shout", "shovel", "showboat", "shred", "shrill", "shudder", "shush", "sidetrack", "sign", "silt", "sin", "singe", "sit", "sizzle", "skateboard", "ski", "slake", "slap", "slather", "sleet", "slink", "slip", "slope", "slump", "smarten", "smuggle", "snack", "sneak", "sniff", "snoop", "snow", "snowplow", "snuggle", "soap", "solace", "solder", "solicit", "source", "spark", "spattering", "spectacles", "spectate", "spellcheck", "spew", "spice", "spirit", "splash", "splay", "split", "splosh", "splurge", "spook", "square", "squirm", "stabilise", "stable", "stack", "stage", "stake", "starch", "state", "statement", "stiffen", "stigmatize", "sting", "stint", "stoop", "store", "storyboard", "stratify", "structure", "stuff", "stunt", "substantiate", "subtract", "suckle", "suffice", "suffocate", "summarise", "sun", "sunbathe", "sunder", "sup", "surge", "surprise", "swat", "swathe", "sway", "swear", "swelter", "swerve", "swill", "swing", "symbolise", "synthesise", "syringe", "table", "tabulate", "tag", "tame", "tank", "tankful", "tarry", "task", "taxicab", "team", "telescope", "tenant", "terraform", "terrorise", "testify", "think", "throbbing", "thump", "tighten", "toady", "toe", "tough", "tousle", "traduce", "train", "transcend", "transplant", "trash", "treasure", "treble", "trek", "trial", "tromp", "trouser", "trust", "tune", "tut", "twine", "twist", "typify", "unbalance", "uncork", "uncover", "underachieve", "undergo", "underplay", "unearth", "unfreeze", "unfurl", "unlearn", "unscramble", "unzip", "uproot", "upsell", "usher", "vacation", "vamoose", "vanish", "vary", "veg", "venture", "verify", "vet", "veto", "volunteer", "vulgarise", "waft", "wallop", "waltz", "warp", "wash", "waver", "weary", "weatherize", "wedge", "weep", "weight", "welcome", "westernise", "westernize", "while", "whine", "whisper", "whistle", "whitewash", "whup", "wilt", "wing", "wire", "wisecrack", "wolf", "wound", "wring", "writ", "yak", "yawn", "yearn", "yuppify"];
|
|
159
159
|
var kr$1 = { adjective: Oa, adverb: xa, conjunction: za, interjection: Va, noun: Ya, preposition: ja, verb: qa }, Ua = kr$1;
|
|
160
|
-
var fr$1 = { airline: o, animal: k, app: B$1, book: P$1, cell_phone: W$1, color: F$1, commerce: I$1, company: U$1, database: _, date:
|
|
160
|
+
var fr$1 = { airline: o, animal: k, app: B$1, book: P$1, cell_phone: W$1, color: F$1, commerce: I$1, company: U$1, database: _$1, date: $, finance: ce$1, food: ve$1, hacker: Le$1, internet: He$1, location: Qe$1, lorem: $e$1, metadata: ea, music: ia, person: Aa, phone_number: La, science: Pa, team: Ga, vehicle: Ka, word: Ua }, ys = fr$1;
|
|
161
161
|
var m = class extends Error {
|
|
162
162
|
};
|
|
163
|
-
function
|
|
163
|
+
function Me(i2) {
|
|
164
164
|
let e2 = Object.getPrototypeOf(i2);
|
|
165
165
|
do {
|
|
166
166
|
for (let r2 of Object.getOwnPropertyNames(e2)) typeof i2[r2] == "function" && r2 !== "constructor" && (i2[r2] = i2[r2].bind(i2));
|
|
@@ -170,7 +170,7 @@ function Ce(i2) {
|
|
|
170
170
|
var x = class {
|
|
171
171
|
constructor(e2) {
|
|
172
172
|
this.faker = e2;
|
|
173
|
-
|
|
173
|
+
Me(this);
|
|
174
174
|
}
|
|
175
175
|
}, p = class extends x {
|
|
176
176
|
constructor(r2) {
|
|
@@ -178,7 +178,7 @@ var x = class {
|
|
|
178
178
|
this.faker = r2;
|
|
179
179
|
}
|
|
180
180
|
};
|
|
181
|
-
var
|
|
181
|
+
var Ce = ((t2) => (t2.Narrowbody = "narrowbody", t2.Regional = "regional", t2.Widebody = "widebody", t2))(Ce || {}), kr = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], xr = ["0", "O", "1", "I", "L"], Ar = { regional: 20, narrowbody: 35, widebody: 60 }, Er = { regional: ["A", "B", "C", "D"], narrowbody: ["A", "B", "C", "D", "E", "F"], widebody: ["A", "B", "C", "D", "E", "F", "G", "H", "J", "K"] }, F = class extends p {
|
|
182
182
|
airport() {
|
|
183
183
|
return this.faker.helpers.arrayElement(this.faker.definitions.airline.airport);
|
|
184
184
|
}
|
|
@@ -197,14 +197,14 @@ var Ne = ((t2) => (t2.Narrowbody = "narrowbody", t2.Regional = "regional", t2.Wi
|
|
|
197
197
|
return `${n2}${o2}`;
|
|
198
198
|
}
|
|
199
199
|
aircraftType() {
|
|
200
|
-
return this.faker.helpers.enumValue(
|
|
200
|
+
return this.faker.helpers.enumValue(Ce);
|
|
201
201
|
}
|
|
202
202
|
flightNumber(e2 = {}) {
|
|
203
203
|
let { length: r2 = { min: 1, max: 4 }, addLeadingZeros: t2 = false } = e2, a2 = this.faker.string.numeric({ length: r2, allowLeadingZeros: false });
|
|
204
204
|
return t2 ? a2.padStart(4, "0") : a2;
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
|
-
var
|
|
207
|
+
var Ne = ((n2) => (n2.SRGB = "sRGB", n2.DisplayP3 = "display-p3", n2.REC2020 = "rec2020", n2.A98RGB = "a98-rgb", n2.ProphotoRGB = "prophoto-rgb", n2))(Ne || {}), De = ((c2) => (c2.RGB = "rgb", c2.RGBA = "rgba", c2.HSL = "hsl", c2.HSLA = "hsla", c2.HWB = "hwb", c2.CMYK = "cmyk", c2.LAB = "lab", c2.LCH = "lch", c2.COLOR = "color", c2))(De || {});
|
|
208
208
|
function wr(i2, e2) {
|
|
209
209
|
let { prefix: r2, casing: t2 } = e2;
|
|
210
210
|
switch (t2) {
|
|
@@ -219,13 +219,13 @@ function wr(i2, e2) {
|
|
|
219
219
|
}
|
|
220
220
|
return r2 && (i2 = r2 + i2), i2;
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function Re(i2) {
|
|
223
223
|
return i2.map((r2) => {
|
|
224
224
|
if (r2 % 1 !== 0) {
|
|
225
225
|
let a2 = new ArrayBuffer(4);
|
|
226
226
|
new DataView(a2).setFloat32(0, r2);
|
|
227
227
|
let n2 = new Uint8Array(a2);
|
|
228
|
-
return
|
|
228
|
+
return Re([...n2]).replaceAll(" ", "");
|
|
229
229
|
}
|
|
230
230
|
return (r2 >>> 0).toString(2).padStart(8, "0");
|
|
231
231
|
}).join(" ");
|
|
@@ -255,12 +255,12 @@ function Sr(i2, e2 = "rgb", r2 = "sRGB") {
|
|
|
255
255
|
return `rgb(${i2[0]}, ${i2[1]}, ${i2[2]})`;
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function N(i2, e2, r2 = "rgb", t2 = "sRGB") {
|
|
259
259
|
switch (e2) {
|
|
260
260
|
case "css":
|
|
261
261
|
return Sr(i2, r2, t2);
|
|
262
262
|
case "binary":
|
|
263
|
-
return
|
|
263
|
+
return Re(i2);
|
|
264
264
|
case "decimal":
|
|
265
265
|
return i2;
|
|
266
266
|
}
|
|
@@ -273,73 +273,66 @@ var G = class extends p {
|
|
|
273
273
|
return this.faker.helpers.arrayElement(this.faker.definitions.color.space);
|
|
274
274
|
}
|
|
275
275
|
cssSupportedFunction() {
|
|
276
|
-
return this.faker.helpers.enumValue(
|
|
276
|
+
return this.faker.helpers.enumValue(De);
|
|
277
277
|
}
|
|
278
278
|
cssSupportedSpace() {
|
|
279
|
-
return this.faker.helpers.enumValue(
|
|
279
|
+
return this.faker.helpers.enumValue(Ne);
|
|
280
280
|
}
|
|
281
281
|
rgb(e2 = {}) {
|
|
282
282
|
let { format: r2 = "hex", includeAlpha: t2 = false, prefix: a2 = "#", casing: n2 = "lower" } = e2, o2, s2 = "rgb";
|
|
283
|
-
return r2 === "hex" ? (o2 = this.faker.string.hexadecimal({ length: t2 ? 8 : 6, prefix: "" }), o2 = wr(o2, { prefix: a2, casing: n2 }), o2) : (o2 = Array.from({ length: 3 }, () => this.faker.number.int(255)), t2 && (o2.push(this.faker.number.float({ multipleOf: 0.01 })), s2 = "rgba"),
|
|
283
|
+
return r2 === "hex" ? (o2 = this.faker.string.hexadecimal({ length: t2 ? 8 : 6, prefix: "" }), o2 = wr(o2, { prefix: a2, casing: n2 }), o2) : (o2 = Array.from({ length: 3 }, () => this.faker.number.int(255)), t2 && (o2.push(this.faker.number.float({ multipleOf: 0.01 })), s2 = "rgba"), N(o2, r2, s2));
|
|
284
284
|
}
|
|
285
285
|
cmyk(e2 = {}) {
|
|
286
286
|
let { format: r2 = "decimal" } = e2, t2 = Array.from({ length: 4 }, () => this.faker.number.float({ multipleOf: 0.01 }));
|
|
287
|
-
return
|
|
287
|
+
return N(t2, r2, "cmyk");
|
|
288
288
|
}
|
|
289
289
|
hsl(e2 = {}) {
|
|
290
290
|
let { format: r2 = "decimal", includeAlpha: t2 = false } = e2, a2 = [this.faker.number.int(360)];
|
|
291
291
|
for (let n2 = 0; n2 < (e2?.includeAlpha ? 3 : 2); n2++) a2.push(this.faker.number.float({ multipleOf: 0.01 }));
|
|
292
|
-
return
|
|
292
|
+
return N(a2, r2, t2 ? "hsla" : "hsl");
|
|
293
293
|
}
|
|
294
294
|
hwb(e2 = {}) {
|
|
295
295
|
let { format: r2 = "decimal" } = e2, t2 = [this.faker.number.int(360)];
|
|
296
296
|
for (let a2 = 0; a2 < 2; a2++) t2.push(this.faker.number.float({ multipleOf: 0.01 }));
|
|
297
|
-
return
|
|
297
|
+
return N(t2, r2, "hwb");
|
|
298
298
|
}
|
|
299
299
|
lab(e2 = {}) {
|
|
300
300
|
let { format: r2 = "decimal" } = e2, t2 = [this.faker.number.float({ multipleOf: 1e-6 })];
|
|
301
301
|
for (let a2 = 0; a2 < 2; a2++) t2.push(this.faker.number.float({ min: -100, max: 100, multipleOf: 1e-4 }));
|
|
302
|
-
return
|
|
302
|
+
return N(t2, r2, "lab");
|
|
303
303
|
}
|
|
304
304
|
lch(e2 = {}) {
|
|
305
305
|
let { format: r2 = "decimal" } = e2, t2 = [this.faker.number.float({ multipleOf: 1e-6 })];
|
|
306
306
|
for (let a2 = 0; a2 < 2; a2++) t2.push(this.faker.number.float({ max: 230, multipleOf: 0.1 }));
|
|
307
|
-
return
|
|
307
|
+
return N(t2, r2, "lch");
|
|
308
308
|
}
|
|
309
309
|
colorByCSSColorSpace(e2 = {}) {
|
|
310
310
|
let { format: r2 = "decimal", space: t2 = "sRGB" } = e2, a2 = Array.from({ length: 3 }, () => this.faker.number.float({ multipleOf: 1e-4 }));
|
|
311
|
-
return
|
|
311
|
+
return N(a2, r2, "color", t2);
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
|
-
var be = ((a2) => (a2.Legacy = "legacy", a2.Segwit = "segwit", a2.Bech32 = "bech32", a2.Taproot = "taproot", a2))(be || {}),
|
|
315
|
-
var de = typeof Buffer > "u" || !
|
|
314
|
+
var be = ((a2) => (a2.Legacy = "legacy", a2.Segwit = "segwit", a2.Bech32 = "bech32", a2.Taproot = "taproot", a2))(be || {}), Le = ((r2) => (r2.Mainnet = "mainnet", r2.Testnet = "testnet", r2))(Le || {}), Pe = { legacy: { prefix: { mainnet: "1", testnet: "m" }, length: { min: 26, max: 34 }, casing: "mixed", exclude: "0OIl" }, segwit: { prefix: { mainnet: "3", testnet: "2" }, length: { min: 26, max: 34 }, casing: "mixed", exclude: "0OIl" }, bech32: { prefix: { mainnet: "bc1", testnet: "tb1" }, length: { min: 42, max: 42 }, casing: "lower", exclude: "1bBiIoO" }, taproot: { prefix: { mainnet: "bc1p", testnet: "tb1p" }, length: { min: 62, max: 62 }, casing: "lower", exclude: "1bBiIoO" } };
|
|
315
|
+
var de = typeof Buffer > "u" || !Be("base64") ? (i2) => {
|
|
316
316
|
let e2 = new TextEncoder().encode(i2), r2 = Array.from(e2, (t2) => String.fromCodePoint(t2)).join("");
|
|
317
317
|
return btoa(r2);
|
|
318
|
-
} : (i2) => Buffer.from(i2).toString("base64"), ge = typeof Buffer > "u" || !
|
|
319
|
-
function
|
|
318
|
+
} : (i2) => Buffer.from(i2).toString("base64"), ge = typeof Buffer > "u" || !Be("base64url") ? (i2) => de(i2).replaceAll("+", "-").replaceAll("/", "_").replaceAll(/=+$/g, "") : (i2) => Buffer.from(i2).toString("base64url");
|
|
319
|
+
function Be(i2) {
|
|
320
320
|
try {
|
|
321
321
|
return typeof Buffer.from("test").toString(i2) == "string";
|
|
322
322
|
} catch {
|
|
323
323
|
return false;
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
|
|
327
|
-
let { deprecated: e2, since: r2, until: t2, proposed: a2 } = i2, n2 = `[@faker-js/faker]: ${e2} is deprecated`;
|
|
328
|
-
r2 && (n2 += ` since v${r2}`), t2 && (n2 += ` and will be removed in v${t2}`), a2 && (n2 += `. Please use ${a2} instead`), console.warn(`${n2}.`);
|
|
329
|
-
}
|
|
330
|
-
var Mr = Object.fromEntries([["А", "A"], ["а", "a"], ["Б", "B"], ["б", "b"], ["В", "V"], ["в", "v"], ["Г", "G"], ["г", "g"], ["Д", "D"], ["д", "d"], ["ъе", "ye"], ["Ъе", "Ye"], ["ъЕ", "yE"], ["ЪЕ", "YE"], ["Е", "E"], ["е", "e"], ["Ё", "Yo"], ["ё", "yo"], ["Ж", "Zh"], ["ж", "zh"], ["З", "Z"], ["з", "z"], ["И", "I"], ["и", "i"], ["ый", "iy"], ["Ый", "Iy"], ["ЫЙ", "IY"], ["ыЙ", "iY"], ["Й", "Y"], ["й", "y"], ["К", "K"], ["к", "k"], ["Л", "L"], ["л", "l"], ["М", "M"], ["м", "m"], ["Н", "N"], ["н", "n"], ["О", "O"], ["о", "o"], ["П", "P"], ["п", "p"], ["Р", "R"], ["р", "r"], ["С", "S"], ["с", "s"], ["Т", "T"], ["т", "t"], ["У", "U"], ["у", "u"], ["Ф", "F"], ["ф", "f"], ["Х", "Kh"], ["х", "kh"], ["Ц", "Ts"], ["ц", "ts"], ["Ч", "Ch"], ["ч", "ch"], ["Ш", "Sh"], ["ш", "sh"], ["Щ", "Sch"], ["щ", "sch"], ["Ъ", ""], ["ъ", ""], ["Ы", "Y"], ["ы", "y"], ["Ь", ""], ["ь", ""], ["Э", "E"], ["э", "e"], ["Ю", "Yu"], ["ю", "yu"], ["Я", "Ya"], ["я", "ya"]]), Tr = Object.fromEntries([["α", "a"], ["β", "v"], ["γ", "g"], ["δ", "d"], ["ε", "e"], ["ζ", "z"], ["η", "i"], ["θ", "th"], ["ι", "i"], ["κ", "k"], ["λ", "l"], ["μ", "m"], ["ν", "n"], ["ξ", "ks"], ["ο", "o"], ["π", "p"], ["ρ", "r"], ["σ", "s"], ["τ", "t"], ["υ", "y"], ["φ", "f"], ["χ", "x"], ["ψ", "ps"], ["ω", "o"], ["ά", "a"], ["έ", "e"], ["ί", "i"], ["ό", "o"], ["ύ", "y"], ["ή", "i"], ["ώ", "o"], ["ς", "s"], ["ϊ", "i"], ["ΰ", "y"], ["ϋ", "y"], ["ΐ", "i"], ["Α", "A"], ["Β", "B"], ["Γ", "G"], ["Δ", "D"], ["Ε", "E"], ["Ζ", "Z"], ["Η", "I"], ["Θ", "TH"], ["Ι", "I"], ["Κ", "K"], ["Λ", "L"], ["Μ", "M"], ["Ν", "N"], ["Ξ", "KS"], ["Ο", "O"], ["Π", "P"], ["Ρ", "R"], ["Σ", "S"], ["Τ", "T"], ["Υ", "Y"], ["Φ", "F"], ["Χ", "X"], ["Ψ", "PS"], ["Ω", "O"], ["Ά", "A"], ["Έ", "E"], ["Ί", "I"], ["Ό", "O"], ["Ύ", "Y"], ["Ή", "I"], ["Ώ", "O"], ["Ϊ", "I"], ["Ϋ", "Y"]]), Cr = Object.fromEntries([["ء", "e"], ["آ", "a"], ["أ", "a"], ["ؤ", "w"], ["إ", "i"], ["ئ", "y"], ["ا", "a"], ["ب", "b"], ["ة", "t"], ["ت", "t"], ["ث", "th"], ["ج", "j"], ["ح", "h"], ["خ", "kh"], ["د", "d"], ["ذ", "dh"], ["ر", "r"], ["ز", "z"], ["س", "s"], ["ش", "sh"], ["ص", "s"], ["ض", "d"], ["ط", "t"], ["ظ", "z"], ["ع", "e"], ["غ", "gh"], ["ـ", "_"], ["ف", "f"], ["ق", "q"], ["ك", "k"], ["ل", "l"], ["م", "m"], ["ن", "n"], ["ه", "h"], ["و", "w"], ["ى", "a"], ["ي", "y"], ["َ", "a"], ["ُ", "u"], ["ِ", "i"]]), Nr = Object.fromEntries([["ա", "a"], ["Ա", "A"], ["բ", "b"], ["Բ", "B"], ["գ", "g"], ["Գ", "G"], ["դ", "d"], ["Դ", "D"], ["ե", "ye"], ["Ե", "Ye"], ["զ", "z"], ["Զ", "Z"], ["է", "e"], ["Է", "E"], ["ը", "y"], ["Ը", "Y"], ["թ", "t"], ["Թ", "T"], ["ժ", "zh"], ["Ժ", "Zh"], ["ի", "i"], ["Ի", "I"], ["լ", "l"], ["Լ", "L"], ["խ", "kh"], ["Խ", "Kh"], ["ծ", "ts"], ["Ծ", "Ts"], ["կ", "k"], ["Կ", "K"], ["հ", "h"], ["Հ", "H"], ["ձ", "dz"], ["Ձ", "Dz"], ["ղ", "gh"], ["Ղ", "Gh"], ["ճ", "tch"], ["Ճ", "Tch"], ["մ", "m"], ["Մ", "M"], ["յ", "y"], ["Յ", "Y"], ["ն", "n"], ["Ն", "N"], ["շ", "sh"], ["Շ", "Sh"], ["ո", "vo"], ["Ո", "Vo"], ["չ", "ch"], ["Չ", "Ch"], ["պ", "p"], ["Պ", "P"], ["ջ", "j"], ["Ջ", "J"], ["ռ", "r"], ["Ռ", "R"], ["ս", "s"], ["Ս", "S"], ["վ", "v"], ["Վ", "V"], ["տ", "t"], ["Տ", "T"], ["ր", "r"], ["Ր", "R"], ["ց", "c"], ["Ց", "C"], ["ու", "u"], ["ՈՒ", "U"], ["Ու", "U"], ["փ", "p"], ["Փ", "P"], ["ք", "q"], ["Ք", "Q"], ["օ", "o"], ["Օ", "O"], ["ֆ", "f"], ["Ֆ", "F"], ["և", "yev"]]), Dr = Object.fromEntries([["چ", "ch"], ["ک", "k"], ["گ", "g"], ["پ", "p"], ["ژ", "zh"], ["ی", "y"]]), Rr = Object.fromEntries([["א", "a"], ["ב", "b"], ["ג", "g"], ["ד", "d"], ["ה", "h"], ["ו", "v"], ["ז", "z"], ["ח", "ch"], ["ט", "t"], ["י", "y"], ["כ", "k"], ["ך", "kh"], ["ל", "l"], ["ם", "m"], ["מ", "m"], ["ן", "n"], ["נ", "n"], ["ס", "s"], ["ע", "a"], ["פ", "f"], ["ף", "ph"], ["צ", "ts"], ["ץ", "ts"], ["ק", "k"], ["ר", "r"], ["ש", "sh"], ["ת", "t"], ["ו", "v"]]), ye = { ...Mr, ...Tr, ...Cr, ...Dr, ...Nr, ...Rr };
|
|
326
|
+
var Tr = Object.fromEntries([["А", "A"], ["а", "a"], ["Б", "B"], ["б", "b"], ["В", "V"], ["в", "v"], ["Г", "G"], ["г", "g"], ["Д", "D"], ["д", "d"], ["ъе", "ye"], ["Ъе", "Ye"], ["ъЕ", "yE"], ["ЪЕ", "YE"], ["Е", "E"], ["е", "e"], ["Ё", "Yo"], ["ё", "yo"], ["Ж", "Zh"], ["ж", "zh"], ["З", "Z"], ["з", "z"], ["И", "I"], ["и", "i"], ["ый", "iy"], ["Ый", "Iy"], ["ЫЙ", "IY"], ["ыЙ", "iY"], ["Й", "Y"], ["й", "y"], ["К", "K"], ["к", "k"], ["Л", "L"], ["л", "l"], ["М", "M"], ["м", "m"], ["Н", "N"], ["н", "n"], ["О", "O"], ["о", "o"], ["П", "P"], ["п", "p"], ["Р", "R"], ["р", "r"], ["С", "S"], ["с", "s"], ["Т", "T"], ["т", "t"], ["У", "U"], ["у", "u"], ["Ф", "F"], ["ф", "f"], ["Х", "Kh"], ["х", "kh"], ["Ц", "Ts"], ["ц", "ts"], ["Ч", "Ch"], ["ч", "ch"], ["Ш", "Sh"], ["ш", "sh"], ["Щ", "Sch"], ["щ", "sch"], ["Ъ", ""], ["ъ", ""], ["Ы", "Y"], ["ы", "y"], ["Ь", ""], ["ь", ""], ["Э", "E"], ["э", "e"], ["Ю", "Yu"], ["ю", "yu"], ["Я", "Ya"], ["я", "ya"]]), Mr = Object.fromEntries([["α", "a"], ["β", "v"], ["γ", "g"], ["δ", "d"], ["ε", "e"], ["ζ", "z"], ["η", "i"], ["θ", "th"], ["ι", "i"], ["κ", "k"], ["λ", "l"], ["μ", "m"], ["ν", "n"], ["ξ", "ks"], ["ο", "o"], ["π", "p"], ["ρ", "r"], ["σ", "s"], ["τ", "t"], ["υ", "y"], ["φ", "f"], ["χ", "x"], ["ψ", "ps"], ["ω", "o"], ["ά", "a"], ["έ", "e"], ["ί", "i"], ["ό", "o"], ["ύ", "y"], ["ή", "i"], ["ώ", "o"], ["ς", "s"], ["ϊ", "i"], ["ΰ", "y"], ["ϋ", "y"], ["ΐ", "i"], ["Α", "A"], ["Β", "B"], ["Γ", "G"], ["Δ", "D"], ["Ε", "E"], ["Ζ", "Z"], ["Η", "I"], ["Θ", "TH"], ["Ι", "I"], ["Κ", "K"], ["Λ", "L"], ["Μ", "M"], ["Ν", "N"], ["Ξ", "KS"], ["Ο", "O"], ["Π", "P"], ["Ρ", "R"], ["Σ", "S"], ["Τ", "T"], ["Υ", "Y"], ["Φ", "F"], ["Χ", "X"], ["Ψ", "PS"], ["Ω", "O"], ["Ά", "A"], ["Έ", "E"], ["Ί", "I"], ["Ό", "O"], ["Ύ", "Y"], ["Ή", "I"], ["Ώ", "O"], ["Ϊ", "I"], ["Ϋ", "Y"]]), Cr = Object.fromEntries([["ء", "e"], ["آ", "a"], ["أ", "a"], ["ؤ", "w"], ["إ", "i"], ["ئ", "y"], ["ا", "a"], ["ب", "b"], ["ة", "t"], ["ت", "t"], ["ث", "th"], ["ج", "j"], ["ح", "h"], ["خ", "kh"], ["د", "d"], ["ذ", "dh"], ["ر", "r"], ["ز", "z"], ["س", "s"], ["ش", "sh"], ["ص", "s"], ["ض", "d"], ["ط", "t"], ["ظ", "z"], ["ع", "e"], ["غ", "gh"], ["ـ", "_"], ["ف", "f"], ["ق", "q"], ["ك", "k"], ["ل", "l"], ["م", "m"], ["ن", "n"], ["ه", "h"], ["و", "w"], ["ى", "a"], ["ي", "y"], ["َ", "a"], ["ُ", "u"], ["ِ", "i"]]), Nr = Object.fromEntries([["ա", "a"], ["Ա", "A"], ["բ", "b"], ["Բ", "B"], ["գ", "g"], ["Գ", "G"], ["դ", "d"], ["Դ", "D"], ["ե", "ye"], ["Ե", "Ye"], ["զ", "z"], ["Զ", "Z"], ["է", "e"], ["Է", "E"], ["ը", "y"], ["Ը", "Y"], ["թ", "t"], ["Թ", "T"], ["ժ", "zh"], ["Ժ", "Zh"], ["ի", "i"], ["Ի", "I"], ["լ", "l"], ["Լ", "L"], ["խ", "kh"], ["Խ", "Kh"], ["ծ", "ts"], ["Ծ", "Ts"], ["կ", "k"], ["Կ", "K"], ["հ", "h"], ["Հ", "H"], ["ձ", "dz"], ["Ձ", "Dz"], ["ղ", "gh"], ["Ղ", "Gh"], ["ճ", "tch"], ["Ճ", "Tch"], ["մ", "m"], ["Մ", "M"], ["յ", "y"], ["Յ", "Y"], ["ն", "n"], ["Ն", "N"], ["շ", "sh"], ["Շ", "Sh"], ["ո", "vo"], ["Ո", "Vo"], ["չ", "ch"], ["Չ", "Ch"], ["պ", "p"], ["Պ", "P"], ["ջ", "j"], ["Ջ", "J"], ["ռ", "r"], ["Ռ", "R"], ["ս", "s"], ["Ս", "S"], ["վ", "v"], ["Վ", "V"], ["տ", "t"], ["Տ", "T"], ["ր", "r"], ["Ր", "R"], ["ց", "c"], ["Ց", "C"], ["ու", "u"], ["ՈՒ", "U"], ["Ու", "U"], ["փ", "p"], ["Փ", "P"], ["ք", "q"], ["Ք", "Q"], ["օ", "o"], ["Օ", "O"], ["ֆ", "f"], ["Ֆ", "F"], ["և", "yev"]]), Dr = Object.fromEntries([["چ", "ch"], ["ک", "k"], ["گ", "g"], ["پ", "p"], ["ژ", "zh"], ["ی", "y"]]), Rr = Object.fromEntries([["א", "a"], ["ב", "b"], ["ג", "g"], ["ד", "d"], ["ה", "h"], ["ו", "v"], ["ז", "z"], ["ח", "ch"], ["ט", "t"], ["י", "y"], ["כ", "k"], ["ך", "kh"], ["ל", "l"], ["ם", "m"], ["מ", "m"], ["ן", "n"], ["נ", "n"], ["ס", "s"], ["ע", "a"], ["פ", "f"], ["ף", "ph"], ["צ", "ts"], ["ץ", "ts"], ["ק", "k"], ["ר", "r"], ["ש", "sh"], ["ת", "t"], ["ו", "v"]]), ye = { ...Tr, ...Mr, ...Cr, ...Dr, ...Nr, ...Rr };
|
|
331
327
|
var Lr = ((u2) => (u2.Any = "any", u2.Loopback = "loopback", u2.PrivateA = "private-a", u2.PrivateB = "private-b", u2.PrivateC = "private-c", u2.TestNet1 = "test-net-1", u2.TestNet2 = "test-net-2", u2.TestNet3 = "test-net-3", u2.LinkLocal = "link-local", u2.Multicast = "multicast", u2))(Lr || {}), Pr = { any: "0.0.0.0/0", loopback: "127.0.0.0/8", "private-a": "10.0.0.0/8", "private-b": "172.16.0.0/12", "private-c": "192.168.0.0/16", "test-net-1": "192.0.2.0/24", "test-net-2": "198.51.100.0/24", "test-net-3": "203.0.113.0/24", "link-local": "169.254.0.0/16", multicast: "224.0.0.0/4" };
|
|
332
|
-
function
|
|
328
|
+
function ve(i2) {
|
|
333
329
|
return /^[a-z][a-z-]*[a-z]$/i.exec(i2) !== null;
|
|
334
330
|
}
|
|
335
331
|
function Ie(i2, e2) {
|
|
336
332
|
let r2 = i2.helpers.slugify(e2);
|
|
337
|
-
if (
|
|
333
|
+
if (ve(r2)) return r2;
|
|
338
334
|
let t2 = i2.helpers.slugify(i2.lorem.word());
|
|
339
|
-
return
|
|
340
|
-
}
|
|
341
|
-
function ke(i2, e2) {
|
|
342
|
-
return Math.floor((i2.number.int(256) + e2) / 2).toString(16).padStart(2, "0");
|
|
335
|
+
return ve(t2) ? t2 : i2.string.alpha({ casing: "lower", length: i2.number.int({ min: 4, max: 8 }) });
|
|
343
336
|
}
|
|
344
337
|
var O = class extends p {
|
|
345
338
|
email(e2 = {}) {
|
|
@@ -354,9 +347,6 @@ var O = class extends p {
|
|
|
354
347
|
let { firstName: r2, lastName: t2, allowSpecialCharacters: a2 = false } = e2, n2 = this.faker.helpers.arrayElement(this.faker.definitions.internet.example_email);
|
|
355
348
|
return this.email({ firstName: r2, lastName: t2, provider: n2, allowSpecialCharacters: a2 });
|
|
356
349
|
}
|
|
357
|
-
userName(e2 = {}) {
|
|
358
|
-
return w({ deprecated: "faker.internet.userName()", proposed: "faker.internet.username()", since: "9.1.0", until: "10.0.0" }), this.username(e2);
|
|
359
|
-
}
|
|
360
350
|
username(e2 = {}) {
|
|
361
351
|
let { firstName: r2 = this.faker.person.firstName(), lastName: t2 = this.faker.person.lastName(), lastName: a2 } = e2, n2 = this.faker.helpers.arrayElement([".", "_"]), o2 = this.faker.number.int(99), s2 = [() => `${r2}${n2}${t2}${o2}`, () => `${r2}${n2}${t2}`];
|
|
362
352
|
a2 || s2.push(() => `${r2}${o2}`);
|
|
@@ -365,11 +355,11 @@ var O = class extends p {
|
|
|
365
355
|
if (ye[c2]) return ye[c2];
|
|
366
356
|
let u2 = c2.codePointAt(0) ?? Number.NaN;
|
|
367
357
|
return u2 < 128 ? c2 : u2.toString(36);
|
|
368
|
-
}).join(""), l2 = l2.
|
|
358
|
+
}).join(""), l2 = l2.replaceAll("'", ""), l2 = l2.replaceAll(" ", ""), l2;
|
|
369
359
|
}
|
|
370
360
|
displayName(e2 = {}) {
|
|
371
361
|
let { firstName: r2 = this.faker.person.firstName(), lastName: t2 = this.faker.person.lastName() } = e2, a2 = this.faker.helpers.arrayElement([".", "_"]), n2 = this.faker.number.int(99), o2 = [() => `${r2}${n2}`, () => `${r2}${a2}${t2}`, () => `${r2}${a2}${t2}${n2}`], s2 = this.faker.helpers.arrayElement(o2)();
|
|
372
|
-
return s2 = s2.
|
|
362
|
+
return s2 = s2.replaceAll("'", ""), s2 = s2.replaceAll(" ", ""), s2;
|
|
373
363
|
}
|
|
374
364
|
protocol() {
|
|
375
365
|
let e2 = ["http", "https"];
|
|
@@ -403,7 +393,7 @@ var O = class extends p {
|
|
|
403
393
|
ipv4(e2 = {}) {
|
|
404
394
|
let { network: r2 = "any", cidrBlock: t2 = Pr[r2] } = e2;
|
|
405
395
|
if (!/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\/\d{1,2}$/.test(t2)) throw new m(`Invalid CIDR block provided: ${t2}. Must be in the format x.x.x.x/y.`);
|
|
406
|
-
let [a2, n2] = t2.split("/"), o2 = 4294967295 >>> Number.parseInt(n2), [s2, l2, c2, u2] = a2.split(".").map(Number), f2 = (s2 << 24 | l2 << 16 | c2 << 8 | u2) & ~o2,
|
|
396
|
+
let [a2, n2] = t2.split("/"), o2 = 4294967295 >>> Number.parseInt(n2), [s2, l2, c2, u2] = a2.split(".").map(Number), f2 = (s2 << 24 | l2 << 16 | c2 << 8 | u2) & ~o2, k2 = this.faker.number.int(o2), b2 = f2 | k2;
|
|
407
397
|
return [b2 >>> 24 & 255, b2 >>> 16 & 255, b2 >>> 8 & 255, b2 & 255].join(".");
|
|
408
398
|
}
|
|
409
399
|
ipv6() {
|
|
@@ -415,11 +405,6 @@ var O = class extends p {
|
|
|
415
405
|
userAgent() {
|
|
416
406
|
return this.faker.helpers.fake(this.faker.definitions.internet.user_agent_pattern);
|
|
417
407
|
}
|
|
418
|
-
color(e2 = {}) {
|
|
419
|
-
w({ deprecated: "faker.internet.color()", proposed: "faker.color.rgb()", since: "9.6.0", until: "10.0.0" });
|
|
420
|
-
let { redBase: r2 = 0, greenBase: t2 = 0, blueBase: a2 = 0 } = e2, n2 = ke(this.faker, r2), o2 = ke(this.faker, t2), s2 = ke(this.faker, a2);
|
|
421
|
-
return `#${n2}${o2}${s2}`;
|
|
422
|
-
}
|
|
423
408
|
mac(e2 = {}) {
|
|
424
409
|
typeof e2 == "string" && (e2 = { separator: e2 });
|
|
425
410
|
let { separator: r2 = ":" } = e2, t2, a2 = "";
|
|
@@ -430,7 +415,7 @@ var O = class extends p {
|
|
|
430
415
|
let r2 = /[aeiouAEIOU]$/, t2 = /[bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ]$/, a2 = (c2, u2, h2, f2) => {
|
|
431
416
|
if (f2.length >= c2) return f2;
|
|
432
417
|
u2 && (h2 = t2.test(f2) ? r2 : t2);
|
|
433
|
-
let
|
|
418
|
+
let k2 = this.faker.number.int(94) + 33, b2 = String.fromCodePoint(k2);
|
|
434
419
|
return u2 && (b2 = b2.toLowerCase()), h2.test(b2) ? a2(c2, u2, h2, f2 + b2) : a2(c2, u2, h2, f2);
|
|
435
420
|
}, { length: n2 = 15, memorable: o2 = false, pattern: s2 = /\w/, prefix: l2 = "" } = e2;
|
|
436
421
|
return a2(n2, o2, s2, l2);
|
|
@@ -448,7 +433,7 @@ var O = class extends p {
|
|
|
448
433
|
}
|
|
449
434
|
};
|
|
450
435
|
var _e = ((r2) => (r2.Female = "female", r2.Male = "male", r2))(_e || {});
|
|
451
|
-
function
|
|
436
|
+
function D(i2, e2, r2) {
|
|
452
437
|
let { generic: t2, female: a2, male: n2 } = r2;
|
|
453
438
|
switch (e2) {
|
|
454
439
|
case "female":
|
|
@@ -461,17 +446,17 @@ function R(i2, e2, r2) {
|
|
|
461
446
|
}
|
|
462
447
|
var U = class extends p {
|
|
463
448
|
firstName(e2) {
|
|
464
|
-
return this.faker.helpers.arrayElement(
|
|
449
|
+
return this.faker.helpers.arrayElement(D(this.faker, e2, this.faker.definitions.person.first_name));
|
|
465
450
|
}
|
|
466
451
|
lastName(e2) {
|
|
467
452
|
if (this.faker.rawDefinitions.person?.last_name_pattern != null) {
|
|
468
|
-
let r2 = this.faker.helpers.weightedArrayElement(
|
|
453
|
+
let r2 = this.faker.helpers.weightedArrayElement(D(this.faker, e2, this.faker.rawDefinitions.person.last_name_pattern));
|
|
469
454
|
return this.faker.helpers.fake(r2);
|
|
470
455
|
}
|
|
471
|
-
return this.faker.helpers.arrayElement(
|
|
456
|
+
return this.faker.helpers.arrayElement(D(this.faker, e2, this.faker.definitions.person.last_name));
|
|
472
457
|
}
|
|
473
458
|
middleName(e2) {
|
|
474
|
-
return this.faker.helpers.arrayElement(
|
|
459
|
+
return this.faker.helpers.arrayElement(D(this.faker, e2, this.faker.definitions.person.middle_name));
|
|
475
460
|
}
|
|
476
461
|
fullName(e2 = {}) {
|
|
477
462
|
let { sex: r2 = this.faker.helpers.arrayElement(["female", "male"]), firstName: t2 = this.firstName(r2), lastName: a2 = this.lastName(r2) } = e2, n2 = this.faker.helpers.weightedArrayElement(this.faker.definitions.person.name);
|
|
@@ -491,7 +476,7 @@ var U = class extends p {
|
|
|
491
476
|
return this.faker.helpers.fake(e2);
|
|
492
477
|
}
|
|
493
478
|
prefix(e2) {
|
|
494
|
-
return this.faker.helpers.arrayElement(
|
|
479
|
+
return this.faker.helpers.arrayElement(D(this.faker, e2, this.faker.definitions.person.prefix));
|
|
495
480
|
}
|
|
496
481
|
suffix() {
|
|
497
482
|
return this.faker.helpers.arrayElement(this.faker.definitions.person.suffix);
|
|
@@ -512,29 +497,29 @@ var U = class extends p {
|
|
|
512
497
|
return this.faker.helpers.arrayElement(this.faker.definitions.person.western_zodiac_sign);
|
|
513
498
|
}
|
|
514
499
|
};
|
|
515
|
-
var Br = 23283064365386963e-26, vr = 1 / 9007199254740992, { imul:
|
|
516
|
-
function
|
|
517
|
-
return typeof i2 == "number" ?
|
|
500
|
+
var Br = 23283064365386963e-26, vr = 1 / 9007199254740992, { imul: xe, trunc: Ae } = Math;
|
|
501
|
+
function $e(i2) {
|
|
502
|
+
return typeof i2 == "number" ? Fe(i2) : Ir(i2);
|
|
518
503
|
}
|
|
519
|
-
function
|
|
504
|
+
function Fe(i2) {
|
|
520
505
|
let e2 = Array.from({ length: 624 });
|
|
521
506
|
e2[0] = i2;
|
|
522
507
|
for (let r2 = 1; r2 !== 624; ++r2) {
|
|
523
508
|
let t2 = e2[r2 - 1] ^ e2[r2 - 1] >>> 30;
|
|
524
|
-
e2[r2] =
|
|
509
|
+
e2[r2] = Ae(xe(1812433253, t2) + r2);
|
|
525
510
|
}
|
|
526
511
|
return e2;
|
|
527
512
|
}
|
|
528
|
-
function
|
|
529
|
-
let e2 =
|
|
513
|
+
function Ir(i2) {
|
|
514
|
+
let e2 = Fe(19650218), r2 = 1, t2 = 0;
|
|
530
515
|
for (let a2 = Math.max(624, i2.length); a2 !== 0; --a2) {
|
|
531
516
|
let n2 = e2[r2 - 1] ^ e2[r2 - 1] >>> 30;
|
|
532
|
-
e2[r2] =
|
|
517
|
+
e2[r2] = Ae((e2[r2] ^ xe(n2, 1664525)) + i2[t2] + t2), r2++, t2++, r2 >= 624 && (e2[0] = e2[623], r2 = 1), t2 >= i2.length && (t2 = 0);
|
|
533
518
|
}
|
|
534
|
-
for (let a2 = 623; a2 !== 0; a2--) e2[r2] =
|
|
519
|
+
for (let a2 = 623; a2 !== 0; a2--) e2[r2] = Ae((e2[r2] ^ xe(e2[r2 - 1] ^ e2[r2 - 1] >>> 30, 1566083941)) - r2), r2++, r2 >= 624 && (e2[0] = e2[623], r2 = 1);
|
|
535
520
|
return e2[0] = 2147483648, e2;
|
|
536
521
|
}
|
|
537
|
-
function
|
|
522
|
+
function ke(i2) {
|
|
538
523
|
for (let r2 = 0; r2 !== 227; ++r2) {
|
|
539
524
|
let t2 = (i2[r2] & 2147483648) + (i2[r2 + 1] & 2147483647);
|
|
540
525
|
i2[r2] = i2[r2 + 397] ^ t2 >>> 1 ^ -(t2 & 1) & 2567483615;
|
|
@@ -546,14 +531,14 @@ function xe(i2) {
|
|
|
546
531
|
let e2 = (i2[623] & 2147483648) + (i2[0] & 2147483647);
|
|
547
532
|
return i2[623] = i2[396] ^ e2 >>> 1 ^ -(e2 & 1) & 2567483615, i2;
|
|
548
533
|
}
|
|
549
|
-
var
|
|
550
|
-
constructor(e2 = Math.random() * Number.MAX_SAFE_INTEGER, r2 =
|
|
534
|
+
var R = class {
|
|
535
|
+
constructor(e2 = Math.random() * Number.MAX_SAFE_INTEGER, r2 = ke($e(e2)), t2 = 0) {
|
|
551
536
|
this.states = r2;
|
|
552
537
|
this.index = t2;
|
|
553
538
|
}
|
|
554
539
|
nextU32() {
|
|
555
540
|
let e2 = this.states[this.index];
|
|
556
|
-
return e2 ^= this.states[this.index] >>> 11, e2 ^= e2 << 7 & 2636928640, e2 ^= e2 << 15 & 4022730752, e2 ^= e2 >>> 18, ++this.index >= 624 && (this.states =
|
|
541
|
+
return e2 ^= this.states[this.index] >>> 11, e2 ^= e2 << 7 & 2636928640, e2 ^= e2 << 15 & 4022730752, e2 ^= e2 >>> 18, ++this.index >= 624 && (this.states = ke(this.states), this.index = 0), e2 >>> 0;
|
|
557
542
|
}
|
|
558
543
|
nextF32() {
|
|
559
544
|
return this.nextU32() * Br;
|
|
@@ -566,14 +551,14 @@ var L = class {
|
|
|
566
551
|
return this.nextU53() * vr;
|
|
567
552
|
}
|
|
568
553
|
seed(e2) {
|
|
569
|
-
this.states =
|
|
554
|
+
this.states = ke($e(e2)), this.index = 0;
|
|
570
555
|
}
|
|
571
556
|
};
|
|
572
|
-
function
|
|
557
|
+
function L() {
|
|
573
558
|
return Math.ceil(Math.random() * Number.MAX_SAFE_INTEGER);
|
|
574
559
|
}
|
|
575
|
-
function
|
|
576
|
-
let e2 = new
|
|
560
|
+
function Ge(i2 = L()) {
|
|
561
|
+
let e2 = new R(i2);
|
|
577
562
|
return { next() {
|
|
578
563
|
return e2.nextF53();
|
|
579
564
|
}, seed(r2) {
|
|
@@ -587,7 +572,7 @@ var K = class extends x {
|
|
|
587
572
|
return r2 <= 0 ? false : r2 >= 1 ? true : this.faker.number.float() < r2;
|
|
588
573
|
}
|
|
589
574
|
};
|
|
590
|
-
function
|
|
575
|
+
function w(i2, e2 = "refDate") {
|
|
591
576
|
let r2 = new Date(i2);
|
|
592
577
|
if (Number.isNaN(r2.valueOf())) throw new m(`Invalid ${e2} date: ${i2.toString()}`);
|
|
593
578
|
return r2;
|
|
@@ -595,12 +580,12 @@ function S(i2, e2 = "refDate") {
|
|
|
595
580
|
var j = () => {
|
|
596
581
|
throw new m("You cannot edit the locale data on the faker instance");
|
|
597
582
|
};
|
|
598
|
-
function
|
|
583
|
+
function Oe(i2) {
|
|
599
584
|
let e2 = {};
|
|
600
585
|
return new Proxy(i2, { has() {
|
|
601
586
|
return true;
|
|
602
587
|
}, get(r2, t2) {
|
|
603
|
-
return typeof t2 == "symbol" || t2 === "nodeType" ? r2[t2] : t2 in e2 ? e2[t2] : e2[t2] =
|
|
588
|
+
return typeof t2 == "symbol" || t2 === "nodeType" ? r2[t2] : t2 in e2 ? e2[t2] : e2[t2] = _r(t2, r2[t2]);
|
|
604
589
|
}, set: j, deleteProperty: j });
|
|
605
590
|
}
|
|
606
591
|
function H(i2, ...e2) {
|
|
@@ -611,7 +596,7 @@ function H(i2, ...e2) {
|
|
|
611
596
|
Please contribute the missing data to the project or use a locale/Faker instance that has these data.
|
|
612
597
|
For more information see https://fakerjs.dev/guide/localization.html`);
|
|
613
598
|
}
|
|
614
|
-
function
|
|
599
|
+
function _r(i2, e2 = {}) {
|
|
615
600
|
return new Proxy(e2, { has(r2, t2) {
|
|
616
601
|
return r2[t2] != null;
|
|
617
602
|
}, get(r2, t2) {
|
|
@@ -619,64 +604,60 @@ function Ir(i2, e2 = {}) {
|
|
|
619
604
|
return typeof t2 == "symbol" || t2 === "nodeType" || H(a2, i2, t2.toString()), a2;
|
|
620
605
|
}, set: j, deleteProperty: j });
|
|
621
606
|
}
|
|
622
|
-
var
|
|
607
|
+
var P = class extends x {
|
|
623
608
|
anytime(e2 = {}) {
|
|
624
|
-
let { refDate: r2 = this.faker.defaultRefDate() } = e2, t2 =
|
|
609
|
+
let { refDate: r2 = this.faker.defaultRefDate() } = e2, t2 = w(r2).getTime();
|
|
625
610
|
return this.between({ from: t2 - 1e3 * 60 * 60 * 24 * 365, to: t2 + 1e3 * 60 * 60 * 24 * 365 });
|
|
626
611
|
}
|
|
627
612
|
past(e2 = {}) {
|
|
628
613
|
let { years: r2 = 1, refDate: t2 = this.faker.defaultRefDate() } = e2;
|
|
629
614
|
if (r2 <= 0) throw new m("Years must be greater than 0.");
|
|
630
|
-
let a2 =
|
|
615
|
+
let a2 = w(t2).getTime();
|
|
631
616
|
return this.between({ from: a2 - r2 * 365 * 24 * 3600 * 1e3, to: a2 - 1e3 });
|
|
632
617
|
}
|
|
633
618
|
future(e2 = {}) {
|
|
634
619
|
let { years: r2 = 1, refDate: t2 = this.faker.defaultRefDate() } = e2;
|
|
635
620
|
if (r2 <= 0) throw new m("Years must be greater than 0.");
|
|
636
|
-
let a2 =
|
|
621
|
+
let a2 = w(t2).getTime();
|
|
637
622
|
return this.between({ from: a2 + 1e3, to: a2 + r2 * 365 * 24 * 3600 * 1e3 });
|
|
638
623
|
}
|
|
639
624
|
between(e2) {
|
|
640
|
-
|
|
641
|
-
let { from: r2, to: t2 } = e2, a2 = S(r2, "from").getTime(), n2 = S(t2, "to").getTime();
|
|
625
|
+
let { from: r2, to: t2 } = e2, a2 = w(r2, "from").getTime(), n2 = w(t2, "to").getTime();
|
|
642
626
|
if (a2 > n2) throw new m("`from` date must be before `to` date.");
|
|
643
627
|
return new Date(this.faker.number.int({ min: a2, max: n2 }));
|
|
644
628
|
}
|
|
645
629
|
betweens(e2) {
|
|
646
|
-
if (e2 == null || e2.from == null || e2.to == null) throw new m("Must pass an options object with `from` and `to` values.");
|
|
647
630
|
let { from: r2, to: t2, count: a2 = 3 } = e2;
|
|
648
631
|
return this.faker.helpers.multiple(() => this.between({ from: r2, to: t2 }), { count: a2 }).sort((n2, o2) => n2.getTime() - o2.getTime());
|
|
649
632
|
}
|
|
650
633
|
recent(e2 = {}) {
|
|
651
634
|
let { days: r2 = 1, refDate: t2 = this.faker.defaultRefDate() } = e2;
|
|
652
635
|
if (r2 <= 0) throw new m("Days must be greater than 0.");
|
|
653
|
-
let a2 =
|
|
636
|
+
let a2 = w(t2).getTime();
|
|
654
637
|
return this.between({ from: a2 - r2 * 24 * 3600 * 1e3, to: a2 - 1e3 });
|
|
655
638
|
}
|
|
656
639
|
soon(e2 = {}) {
|
|
657
640
|
let { days: r2 = 1, refDate: t2 = this.faker.defaultRefDate() } = e2;
|
|
658
641
|
if (r2 <= 0) throw new m("Days must be greater than 0.");
|
|
659
|
-
let a2 =
|
|
642
|
+
let a2 = w(t2).getTime();
|
|
660
643
|
return this.between({ from: a2 + 1e3, to: a2 + r2 * 24 * 3600 * 1e3 });
|
|
661
644
|
}
|
|
662
645
|
birthdate(e2 = {}) {
|
|
663
|
-
let { mode: r2 = "age", min: t2 = 18, max: a2 = 80, refDate: n2 = this.faker.defaultRefDate()
|
|
664
|
-
if ([s2, l2, o2].filter((f2) => f2 != null).length % 3 !== 0) throw new m("The 'min', 'max', and 'mode' options must be set together.");
|
|
665
|
-
let u2 = S(n2), h2 = u2.getUTCFullYear();
|
|
646
|
+
let { mode: r2 = "age", min: t2 = 18, max: a2 = 80, refDate: n2 = this.faker.defaultRefDate() } = e2, o2 = w(n2), s2 = o2.getUTCFullYear();
|
|
666
647
|
switch (r2) {
|
|
667
648
|
case "age": {
|
|
668
|
-
let
|
|
669
|
-
if (
|
|
670
|
-
return this.between({ from:
|
|
649
|
+
let c2 = new Date(o2).setUTCFullYear(s2 - a2 - 1) + 864e5, u2 = new Date(o2).setUTCFullYear(s2 - t2);
|
|
650
|
+
if (c2 > u2) throw new m(`Max age ${a2} should be greater than or equal to min age ${t2}.`);
|
|
651
|
+
return this.between({ from: c2, to: u2 });
|
|
671
652
|
}
|
|
672
653
|
case "year": {
|
|
673
|
-
let
|
|
674
|
-
if (
|
|
675
|
-
return this.between({ from:
|
|
654
|
+
let l2 = new Date(Date.UTC(0, 0, 2)).setUTCFullYear(t2), c2 = new Date(Date.UTC(0, 11, 30)).setUTCFullYear(a2);
|
|
655
|
+
if (l2 > c2) throw new m(`Max year ${a2} should be greater than or equal to min year ${t2}.`);
|
|
656
|
+
return this.between({ from: l2, to: c2 });
|
|
676
657
|
}
|
|
677
658
|
}
|
|
678
659
|
}
|
|
679
|
-
}, V = class extends
|
|
660
|
+
}, V = class extends P {
|
|
680
661
|
constructor(r2) {
|
|
681
662
|
super(r2);
|
|
682
663
|
this.faker = r2;
|
|
@@ -697,33 +678,30 @@ var B = class extends x {
|
|
|
697
678
|
return this.faker.helpers.arrayElement(this.faker.definitions.date.time_zone);
|
|
698
679
|
}
|
|
699
680
|
};
|
|
700
|
-
var
|
|
701
|
-
function
|
|
681
|
+
var $r = /\.|\(/;
|
|
682
|
+
function Ue(i2, e2, r2 = [e2, e2.rawDefinitions]) {
|
|
702
683
|
if (i2.length === 0) throw new m("Eval expression cannot be empty.");
|
|
703
684
|
if (r2.length === 0) throw new m("Eval entrypoints cannot be empty.");
|
|
704
685
|
let t2 = r2, a2 = i2;
|
|
705
686
|
do {
|
|
706
687
|
let o2;
|
|
707
|
-
a2.startsWith("(") ? [o2, t2] = Fr(a2, t2
|
|
688
|
+
a2.startsWith("(") ? [o2, t2] = Fr(a2, t2) : [o2, t2] = Or(a2, t2), a2 = a2.substring(o2), t2 = t2.filter((s2) => s2 != null).map((s2) => Array.isArray(s2) ? e2.helpers.arrayElement(s2) : s2);
|
|
708
689
|
} while (a2.length > 0 && t2.length > 0);
|
|
709
690
|
if (t2.length === 0) throw new m(`Cannot resolve expression '${i2}'`);
|
|
710
691
|
let n2 = t2[0];
|
|
711
692
|
return typeof n2 == "function" ? n2() : n2;
|
|
712
693
|
}
|
|
713
|
-
function Fr(i2, e2
|
|
714
|
-
let [
|
|
715
|
-
switch (
|
|
694
|
+
function Fr(i2, e2) {
|
|
695
|
+
let [r2, t2] = Gr(i2), a2 = i2[r2 + 1];
|
|
696
|
+
switch (a2) {
|
|
716
697
|
case ".":
|
|
717
698
|
case "(":
|
|
718
699
|
case void 0:
|
|
719
700
|
break;
|
|
720
701
|
default:
|
|
721
|
-
throw new m(`Expected dot ('.'), open parenthesis ('('), or nothing after function call but got '${
|
|
702
|
+
throw new m(`Expected dot ('.'), open parenthesis ('('), or nothing after function call but got '${a2}'`);
|
|
722
703
|
}
|
|
723
|
-
return [
|
|
724
|
-
Please remove the parentheses or replace the expression with an actual function.
|
|
725
|
-
${r2}
|
|
726
|
-
${" ".repeat(r2.length - i2.length)}^`), o2))];
|
|
704
|
+
return [r2 + (a2 === "." ? 2 : 1), e2.map((n2) => typeof n2 == "function" ? n2(...t2) : void 0)];
|
|
727
705
|
}
|
|
728
706
|
function Gr(i2) {
|
|
729
707
|
let e2 = i2.indexOf(")", 1);
|
|
@@ -745,7 +723,7 @@ function Gr(i2) {
|
|
|
745
723
|
return [e2, [r2]];
|
|
746
724
|
}
|
|
747
725
|
function Or(i2, e2) {
|
|
748
|
-
let r2 =
|
|
726
|
+
let r2 = $r.exec(i2), t2 = (r2?.[0] ?? "") === ".", a2 = r2?.index ?? i2.length, n2 = i2.substring(0, a2);
|
|
749
727
|
if (n2.length === 0) throw new m(`Expression parts cannot be empty in '${i2}'`);
|
|
750
728
|
let o2 = i2[a2 + 1];
|
|
751
729
|
if (t2 && (o2 == null || o2 === "." || o2 === "(")) throw new m(`Found dot without property name in '${i2}'`);
|
|
@@ -767,7 +745,7 @@ function Ur(i2, e2) {
|
|
|
767
745
|
return;
|
|
768
746
|
}
|
|
769
747
|
}
|
|
770
|
-
function
|
|
748
|
+
function Ke(i2) {
|
|
771
749
|
let e2 = Kr(i2.replace(/L?$/, "0"));
|
|
772
750
|
return e2 === 0 ? 0 : 10 - e2;
|
|
773
751
|
}
|
|
@@ -780,7 +758,7 @@ function Kr(i2) {
|
|
|
780
758
|
}
|
|
781
759
|
return e2 % 10;
|
|
782
760
|
}
|
|
783
|
-
function
|
|
761
|
+
function je(i2, e2, r2, t2) {
|
|
784
762
|
let a2 = 1;
|
|
785
763
|
if (e2) switch (e2) {
|
|
786
764
|
case "?": {
|
|
@@ -812,12 +790,12 @@ function jr(i2, e2 = "") {
|
|
|
812
790
|
for (c2 = a2.exec(e2); c2 != null; ) n2 = Number.parseInt(c2[1]), o2 = Number.parseInt(c2[2]), n2 > o2 && (s2 = o2, o2 = n2, n2 = s2), e2 = e2.slice(0, c2.index) + i2.number.int({ min: n2, max: o2 }).toString() + e2.slice(c2.index + c2[0].length), c2 = a2.exec(e2);
|
|
813
791
|
return e2;
|
|
814
792
|
}
|
|
815
|
-
function
|
|
793
|
+
function Ee(i2, e2 = "", r2 = "#") {
|
|
816
794
|
let t2 = "";
|
|
817
795
|
for (let a2 = 0; a2 < e2.length; a2++) e2.charAt(a2) === r2 ? t2 += i2.number.int(9) : e2.charAt(a2) === "!" ? t2 += i2.number.int({ min: 2, max: 9 }) : t2 += e2.charAt(a2);
|
|
818
796
|
return t2;
|
|
819
797
|
}
|
|
820
|
-
var
|
|
798
|
+
var B = class extends x {
|
|
821
799
|
slugify(e2 = "") {
|
|
822
800
|
return e2.normalize("NFKD").replaceAll(/[\u0300-\u036F]/g, "").replaceAll(" ", "-").replaceAll(/[^\w.-]+/g, "");
|
|
823
801
|
}
|
|
@@ -827,8 +805,8 @@ var v = class extends x {
|
|
|
827
805
|
return t2;
|
|
828
806
|
}
|
|
829
807
|
replaceCreditCardSymbols(e2 = "6453-####-####-####-###L", r2 = "#") {
|
|
830
|
-
e2 = jr(this.faker, e2), e2 =
|
|
831
|
-
let t2 =
|
|
808
|
+
e2 = jr(this.faker, e2), e2 = Ee(this.faker, e2, r2);
|
|
809
|
+
let t2 = Ke(e2);
|
|
832
810
|
return e2.replace("L", String(t2));
|
|
833
811
|
}
|
|
834
812
|
fromRegExp(e2) {
|
|
@@ -836,50 +814,50 @@ var v = class extends x {
|
|
|
836
814
|
e2 instanceof RegExp && (r2 = e2.flags.includes("i"), e2 = e2.toString(), e2 = /\/(.+?)\//.exec(e2)?.[1] ?? "");
|
|
837
815
|
let t2, a2, n2, o2 = /([.A-Za-z0-9])(?:\{(\d+)(?:,(\d+)|)\}|(\?|\*|\+))(?![^[]*]|[^{]*})/, s2 = o2.exec(e2);
|
|
838
816
|
for (; s2 != null; ) {
|
|
839
|
-
let f2 = s2[2],
|
|
840
|
-
n2 =
|
|
841
|
-
let
|
|
842
|
-
s2[1] === "." ?
|
|
817
|
+
let f2 = s2[2], k2 = s2[3], b2 = s2[4];
|
|
818
|
+
n2 = je(this.faker, b2, f2, k2);
|
|
819
|
+
let g2;
|
|
820
|
+
s2[1] === "." ? g2 = this.faker.string.alphanumeric(n2) : r2 ? g2 = this.faker.string.fromCharacters([s2[1].toLowerCase(), s2[1].toUpperCase()], n2) : g2 = s2[1].repeat(n2), e2 = e2.slice(0, s2.index) + g2 + e2.slice(s2.index + s2[0].length), s2 = o2.exec(e2);
|
|
843
821
|
}
|
|
844
822
|
let l2 = /(\d-\d|\w-\w|\d|\w|[-!@#$&()`.+,/"])/, c2 = /\[(\^|)(-|)(.+?)\](?:\{(\d+)(?:,(\d+)|)\}|(\?|\*|\+)|)/;
|
|
845
823
|
for (s2 = c2.exec(e2); s2 != null; ) {
|
|
846
|
-
let f2 = s2[1] === "^",
|
|
847
|
-
for (
|
|
848
|
-
if (
|
|
849
|
-
let E2 =
|
|
824
|
+
let f2 = s2[1] === "^", k2 = s2[2] === "-", b2 = s2[4], g2 = s2[5], C2 = s2[6], y2 = [], $2 = s2[3], M2 = l2.exec($2);
|
|
825
|
+
for (k2 && y2.push(45); M2 != null; ) {
|
|
826
|
+
if (M2[0].includes("-")) {
|
|
827
|
+
let E2 = M2[0].split("-").map((d2) => d2.codePointAt(0) ?? Number.NaN);
|
|
850
828
|
if (t2 = E2[0], a2 = E2[1], t2 > a2) throw new m("Character range provided is out of order.");
|
|
851
829
|
for (let d2 = t2; d2 <= a2; d2++) if (r2 && Number.isNaN(Number(String.fromCodePoint(d2)))) {
|
|
852
830
|
let Te2 = String.fromCodePoint(d2);
|
|
853
|
-
|
|
854
|
-
} else
|
|
855
|
-
} else r2 && Number.isNaN(Number(
|
|
856
|
-
|
|
831
|
+
y2.push(Te2.toUpperCase().codePointAt(0) ?? Number.NaN, Te2.toLowerCase().codePointAt(0) ?? Number.NaN);
|
|
832
|
+
} else y2.push(d2);
|
|
833
|
+
} else r2 && Number.isNaN(Number(M2[0])) ? y2.push(M2[0].toUpperCase().codePointAt(0) ?? Number.NaN, M2[0].toLowerCase().codePointAt(0) ?? Number.NaN) : y2.push(M2[0].codePointAt(0) ?? Number.NaN);
|
|
834
|
+
$2 = $2.substring(M2[0].length), M2 = l2.exec($2);
|
|
857
835
|
}
|
|
858
|
-
if (n2 =
|
|
836
|
+
if (n2 = je(this.faker, C2, b2, g2), f2) {
|
|
859
837
|
let E2 = -1;
|
|
860
838
|
for (let d2 = 48; d2 <= 57; d2++) {
|
|
861
|
-
if (E2 =
|
|
862
|
-
|
|
839
|
+
if (E2 = y2.indexOf(d2), E2 > -1) {
|
|
840
|
+
y2.splice(E2, 1);
|
|
863
841
|
continue;
|
|
864
842
|
}
|
|
865
|
-
|
|
843
|
+
y2.push(d2);
|
|
866
844
|
}
|
|
867
845
|
for (let d2 = 65; d2 <= 90; d2++) {
|
|
868
|
-
if (E2 =
|
|
869
|
-
|
|
846
|
+
if (E2 = y2.indexOf(d2), E2 > -1) {
|
|
847
|
+
y2.splice(E2, 1);
|
|
870
848
|
continue;
|
|
871
849
|
}
|
|
872
|
-
|
|
850
|
+
y2.push(d2);
|
|
873
851
|
}
|
|
874
852
|
for (let d2 = 97; d2 <= 122; d2++) {
|
|
875
|
-
if (E2 =
|
|
876
|
-
|
|
853
|
+
if (E2 = y2.indexOf(d2), E2 > -1) {
|
|
854
|
+
y2.splice(E2, 1);
|
|
877
855
|
continue;
|
|
878
856
|
}
|
|
879
|
-
|
|
857
|
+
y2.push(d2);
|
|
880
858
|
}
|
|
881
859
|
}
|
|
882
|
-
let yr2 = this.multiple(() => String.fromCodePoint(this.arrayElement(
|
|
860
|
+
let yr2 = this.multiple(() => String.fromCodePoint(this.arrayElement(y2)), { count: n2 }).join("");
|
|
883
861
|
e2 = e2.slice(0, s2.index) + yr2 + e2.slice(s2.index + s2[0].length), s2 = c2.exec(e2);
|
|
884
862
|
}
|
|
885
863
|
let u2 = /(.)\{(\d+),(\d+)\}/;
|
|
@@ -970,7 +948,7 @@ var v = class extends x {
|
|
|
970
948
|
let t2 = this.rangeToNumber(r2.count ?? 3);
|
|
971
949
|
return t2 <= 0 ? [] : Array.from({ length: t2 }, e2);
|
|
972
950
|
}
|
|
973
|
-
}, z = class extends
|
|
951
|
+
}, z = class extends B {
|
|
974
952
|
constructor(r2) {
|
|
975
953
|
super(r2);
|
|
976
954
|
this.faker = r2;
|
|
@@ -979,10 +957,104 @@ var v = class extends x {
|
|
|
979
957
|
r2 = typeof r2 == "string" ? r2 : this.arrayElement(r2);
|
|
980
958
|
let t2 = r2.search(/{{[a-z]/), a2 = r2.indexOf("}}", t2);
|
|
981
959
|
if (t2 === -1 || a2 === -1) return r2;
|
|
982
|
-
let o2 = r2.substring(t2 + 2, a2 + 2).replace("}}", "").replace("{{", ""), s2 =
|
|
960
|
+
let o2 = r2.substring(t2 + 2, a2 + 2).replace("}}", "").replace("{{", ""), s2 = Ue(o2, this.faker), l2 = String(s2), c2 = r2.substring(0, t2) + l2 + r2.substring(a2 + 2);
|
|
983
961
|
return this.fake(c2);
|
|
984
962
|
}
|
|
985
963
|
};
|
|
964
|
+
var v = class extends x {
|
|
965
|
+
latitude(e2 = {}) {
|
|
966
|
+
let { max: r2 = 90, min: t2 = -90, precision: a2 = 4 } = e2;
|
|
967
|
+
return this.faker.number.float({ min: t2, max: r2, fractionDigits: a2 });
|
|
968
|
+
}
|
|
969
|
+
longitude(e2 = {}) {
|
|
970
|
+
let { max: r2 = 180, min: t2 = -180, precision: a2 = 4 } = e2;
|
|
971
|
+
return this.faker.number.float({ max: r2, min: t2, fractionDigits: a2 });
|
|
972
|
+
}
|
|
973
|
+
nearbyGPSCoordinate(e2 = {}) {
|
|
974
|
+
let { origin: r2, radius: t2 = 10, isMetric: a2 = false } = e2;
|
|
975
|
+
if (r2 == null) return [this.latitude(), this.longitude()];
|
|
976
|
+
let n2 = this.faker.number.float({ max: 2 * Math.PI, fractionDigits: 5 }), o2 = a2 ? t2 : t2 * 1.60934, l2 = this.faker.number.float({ max: o2, fractionDigits: 3 }) * 0.995, c2 = 4e4 / 360, u2 = l2 / c2, h2 = [r2[0] + Math.sin(n2) * u2, r2[1] + Math.cos(n2) * u2];
|
|
977
|
+
return h2[0] = h2[0] % 180, (h2[0] < -90 || h2[0] > 90) && (h2[0] = Math.sign(h2[0]) * 180 - h2[0], h2[1] += 180), h2[1] = (h2[1] % 360 + 540) % 360 - 180, [h2[0], h2[1]];
|
|
978
|
+
}
|
|
979
|
+
}, Y = class extends v {
|
|
980
|
+
constructor(r2) {
|
|
981
|
+
super(r2);
|
|
982
|
+
this.faker = r2;
|
|
983
|
+
}
|
|
984
|
+
zipCode(r2 = {}) {
|
|
985
|
+
typeof r2 == "string" && (r2 = { format: r2 });
|
|
986
|
+
let { state: t2 } = r2;
|
|
987
|
+
if (t2 != null) {
|
|
988
|
+
let n2 = this.faker.definitions.location.postcode_by_state[t2];
|
|
989
|
+
if (n2 == null) throw new m(`No zip code definition found for state "${t2}"`);
|
|
990
|
+
return this.faker.helpers.fake(n2);
|
|
991
|
+
}
|
|
992
|
+
let { format: a2 = this.faker.definitions.location.postcode } = r2;
|
|
993
|
+
return typeof a2 == "string" && (a2 = [a2]), a2 = this.faker.helpers.arrayElement(a2), this.faker.helpers.replaceSymbols(a2);
|
|
994
|
+
}
|
|
995
|
+
city() {
|
|
996
|
+
return this.faker.helpers.fake(this.faker.definitions.location.city_pattern);
|
|
997
|
+
}
|
|
998
|
+
buildingNumber() {
|
|
999
|
+
return this.faker.helpers.arrayElement(this.faker.definitions.location.building_number).replaceAll(/#+/g, (r2) => this.faker.string.numeric({ length: r2.length, allowLeadingZeros: false }));
|
|
1000
|
+
}
|
|
1001
|
+
street() {
|
|
1002
|
+
return this.faker.helpers.fake(this.faker.definitions.location.street_pattern);
|
|
1003
|
+
}
|
|
1004
|
+
streetAddress(r2 = {}) {
|
|
1005
|
+
typeof r2 == "boolean" && (r2 = { useFullAddress: r2 });
|
|
1006
|
+
let { useFullAddress: t2 } = r2, n2 = this.faker.definitions.location.street_address[t2 ? "full" : "normal"];
|
|
1007
|
+
return this.faker.helpers.fake(n2);
|
|
1008
|
+
}
|
|
1009
|
+
secondaryAddress() {
|
|
1010
|
+
return this.faker.helpers.fake(this.faker.definitions.location.secondary_address).replaceAll(/#+/g, (r2) => this.faker.string.numeric({ length: r2.length, allowLeadingZeros: false }));
|
|
1011
|
+
}
|
|
1012
|
+
county() {
|
|
1013
|
+
return this.faker.helpers.arrayElement(this.faker.definitions.location.county);
|
|
1014
|
+
}
|
|
1015
|
+
country() {
|
|
1016
|
+
return this.faker.helpers.arrayElement(this.faker.definitions.location.country);
|
|
1017
|
+
}
|
|
1018
|
+
continent() {
|
|
1019
|
+
return this.faker.helpers.arrayElement(this.faker.definitions.location.continent);
|
|
1020
|
+
}
|
|
1021
|
+
countryCode(r2 = {}) {
|
|
1022
|
+
typeof r2 == "string" && (r2 = { variant: r2 });
|
|
1023
|
+
let { variant: t2 = "alpha-2" } = r2, a2 = (() => {
|
|
1024
|
+
switch (t2) {
|
|
1025
|
+
case "numeric":
|
|
1026
|
+
return "numeric";
|
|
1027
|
+
case "alpha-3":
|
|
1028
|
+
return "alpha3";
|
|
1029
|
+
case "alpha-2":
|
|
1030
|
+
return "alpha2";
|
|
1031
|
+
}
|
|
1032
|
+
})();
|
|
1033
|
+
return this.faker.helpers.arrayElement(this.faker.definitions.location.country_code)[a2];
|
|
1034
|
+
}
|
|
1035
|
+
state(r2 = {}) {
|
|
1036
|
+
let { abbreviated: t2 = false } = r2, a2 = t2 ? this.faker.definitions.location.state_abbr : this.faker.definitions.location.state;
|
|
1037
|
+
return this.faker.helpers.arrayElement(a2);
|
|
1038
|
+
}
|
|
1039
|
+
direction(r2 = {}) {
|
|
1040
|
+
let { abbreviated: t2 = false } = r2;
|
|
1041
|
+
return t2 ? this.faker.helpers.arrayElement([...this.faker.definitions.location.direction.cardinal_abbr, ...this.faker.definitions.location.direction.ordinal_abbr]) : this.faker.helpers.arrayElement([...this.faker.definitions.location.direction.cardinal, ...this.faker.definitions.location.direction.ordinal]);
|
|
1042
|
+
}
|
|
1043
|
+
cardinalDirection(r2 = {}) {
|
|
1044
|
+
let { abbreviated: t2 = false } = r2;
|
|
1045
|
+
return t2 ? this.faker.helpers.arrayElement(this.faker.definitions.location.direction.cardinal_abbr) : this.faker.helpers.arrayElement(this.faker.definitions.location.direction.cardinal);
|
|
1046
|
+
}
|
|
1047
|
+
ordinalDirection(r2 = {}) {
|
|
1048
|
+
let { abbreviated: t2 = false } = r2;
|
|
1049
|
+
return t2 ? this.faker.helpers.arrayElement(this.faker.definitions.location.direction.ordinal_abbr) : this.faker.helpers.arrayElement(this.faker.definitions.location.direction.ordinal);
|
|
1050
|
+
}
|
|
1051
|
+
timeZone() {
|
|
1052
|
+
return this.faker.helpers.arrayElement(this.faker.definitions.location.time_zone);
|
|
1053
|
+
}
|
|
1054
|
+
language() {
|
|
1055
|
+
return this.faker.helpers.arrayElement(this.faker.definitions.location.language);
|
|
1056
|
+
}
|
|
1057
|
+
};
|
|
986
1058
|
var W = class extends x {
|
|
987
1059
|
int(e2 = {}) {
|
|
988
1060
|
typeof e2 == "number" && (e2 = { max: e2 });
|
|
@@ -1047,16 +1119,16 @@ var W = class extends x {
|
|
|
1047
1119
|
return l2;
|
|
1048
1120
|
}
|
|
1049
1121
|
};
|
|
1050
|
-
var
|
|
1051
|
-
function
|
|
1122
|
+
var we = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
1123
|
+
function He(i2) {
|
|
1052
1124
|
let e2 = i2.valueOf(), r2 = "";
|
|
1053
1125
|
for (let t2 = 10; t2 > 0; t2--) {
|
|
1054
1126
|
let a2 = e2 % 32;
|
|
1055
|
-
r2 =
|
|
1127
|
+
r2 = we[a2] + r2, e2 = (e2 - a2) / 32;
|
|
1056
1128
|
}
|
|
1057
1129
|
return r2;
|
|
1058
1130
|
}
|
|
1059
|
-
var
|
|
1131
|
+
var Z = [..."ABCDEFGHIJKLMNOPQRSTUVWXYZ"], J = [..."abcdefghijklmnopqrstuvwxyz"], Ve = [..."0123456789"], X = class extends x {
|
|
1060
1132
|
fromCharacters(e2, r2 = 1) {
|
|
1061
1133
|
if (r2 = this.faker.helpers.rangeToNumber(r2), r2 <= 0) return "";
|
|
1062
1134
|
if (typeof e2 == "string" && (e2 = [...e2]), e2.length === 0) throw new m("Unable to generate string: No characters to select from.");
|
|
@@ -1071,15 +1143,15 @@ var Y = [..."ABCDEFGHIJKLMNOPQRSTUVWXYZ"], Z = [..."abcdefghijklmnopqrstuvwxyz"]
|
|
|
1071
1143
|
let n2;
|
|
1072
1144
|
switch (t2) {
|
|
1073
1145
|
case "upper": {
|
|
1074
|
-
n2 = [...
|
|
1146
|
+
n2 = [...Z];
|
|
1075
1147
|
break;
|
|
1076
1148
|
}
|
|
1077
1149
|
case "lower": {
|
|
1078
|
-
n2 = [...
|
|
1150
|
+
n2 = [...J];
|
|
1079
1151
|
break;
|
|
1080
1152
|
}
|
|
1081
1153
|
case "mixed": {
|
|
1082
|
-
n2 = [...
|
|
1154
|
+
n2 = [...J, ...Z];
|
|
1083
1155
|
break;
|
|
1084
1156
|
}
|
|
1085
1157
|
}
|
|
@@ -1091,18 +1163,18 @@ var Y = [..."ABCDEFGHIJKLMNOPQRSTUVWXYZ"], Z = [..."abcdefghijklmnopqrstuvwxyz"]
|
|
|
1091
1163
|
if (r2 <= 0) return "";
|
|
1092
1164
|
let { casing: t2 = "mixed" } = e2, { exclude: a2 = [] } = e2;
|
|
1093
1165
|
typeof a2 == "string" && (a2 = [...a2]);
|
|
1094
|
-
let n2 = [...
|
|
1166
|
+
let n2 = [...Ve];
|
|
1095
1167
|
switch (t2) {
|
|
1096
1168
|
case "upper": {
|
|
1097
|
-
n2.push(...
|
|
1169
|
+
n2.push(...Z);
|
|
1098
1170
|
break;
|
|
1099
1171
|
}
|
|
1100
1172
|
case "lower": {
|
|
1101
|
-
n2.push(...
|
|
1173
|
+
n2.push(...J);
|
|
1102
1174
|
break;
|
|
1103
1175
|
}
|
|
1104
1176
|
case "mixed": {
|
|
1105
|
-
n2.push(...
|
|
1177
|
+
n2.push(...J, ...Z);
|
|
1106
1178
|
break;
|
|
1107
1179
|
}
|
|
1108
1180
|
}
|
|
@@ -1128,7 +1200,7 @@ var Y = [..."ABCDEFGHIJKLMNOPQRSTUVWXYZ"], Z = [..."abcdefghijklmnopqrstuvwxyz"]
|
|
|
1128
1200
|
if (r2 <= 0) return "";
|
|
1129
1201
|
let { allowLeadingZeros: t2 = true } = e2, { exclude: a2 = [] } = e2;
|
|
1130
1202
|
typeof a2 == "string" && (a2 = [...a2]);
|
|
1131
|
-
let n2 =
|
|
1203
|
+
let n2 = Ve.filter((s2) => !a2.includes(s2));
|
|
1132
1204
|
if (n2.length === 0 || n2.length === 1 && !t2 && n2[0] === "0") throw new m("Unable to generate numeric string, because all possible digits are excluded.");
|
|
1133
1205
|
let o2 = "";
|
|
1134
1206
|
return !t2 && !a2.includes("0") && (o2 += this.faker.helpers.arrayElement(n2.filter((s2) => s2 !== "0"))), o2 += this.fromCharacters(n2, r2 - o2.length), o2;
|
|
@@ -1143,8 +1215,8 @@ var Y = [..."ABCDEFGHIJKLMNOPQRSTUVWXYZ"], Z = [..."abcdefghijklmnopqrstuvwxyz"]
|
|
|
1143
1215
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replaceAll("x", () => this.faker.number.hex({ min: 0, max: 15 })).replaceAll("y", () => this.faker.number.hex({ min: 8, max: 11 }));
|
|
1144
1216
|
}
|
|
1145
1217
|
ulid(e2 = {}) {
|
|
1146
|
-
let { refDate: r2 = this.faker.defaultRefDate() } = e2, t2 =
|
|
1147
|
-
return
|
|
1218
|
+
let { refDate: r2 = this.faker.defaultRefDate() } = e2, t2 = w(r2);
|
|
1219
|
+
return He(t2) + this.fromCharacters(we, 16);
|
|
1148
1220
|
}
|
|
1149
1221
|
nanoid(e2 = 21) {
|
|
1150
1222
|
if (e2 = this.faker.helpers.rangeToNumber(e2), e2 <= 0) return "";
|
|
@@ -1159,7 +1231,7 @@ var Y = [..."ABCDEFGHIJKLMNOPQRSTUVWXYZ"], Z = [..."abcdefghijklmnopqrstuvwxyz"]
|
|
|
1159
1231
|
return this.fromCharacters(["!", '"', "#", "$", "%", "&", "'", "(", ")", "*", "+", ",", "-", ".", "/", ":", ";", "<", "=", ">", "?", "@", "[", "\\", "]", "^", "_", "`", "{", "|", "}", "~"], e2);
|
|
1160
1232
|
}
|
|
1161
1233
|
};
|
|
1162
|
-
var
|
|
1234
|
+
var I = class {
|
|
1163
1235
|
_defaultRefDate = () => /* @__PURE__ */ new Date();
|
|
1164
1236
|
get defaultRefDate() {
|
|
1165
1237
|
return this._defaultRefDate;
|
|
@@ -1169,20 +1241,21 @@ var $ = class {
|
|
|
1169
1241
|
}
|
|
1170
1242
|
_randomizer;
|
|
1171
1243
|
datatype = new K(this);
|
|
1172
|
-
date = new
|
|
1173
|
-
helpers = new
|
|
1244
|
+
date = new P(this);
|
|
1245
|
+
helpers = new B(this);
|
|
1246
|
+
location = new v(this);
|
|
1174
1247
|
number = new W(this);
|
|
1175
|
-
string = new
|
|
1248
|
+
string = new X(this);
|
|
1176
1249
|
constructor(e2 = {}) {
|
|
1177
1250
|
let { randomizer: r2, seed: t2 } = e2;
|
|
1178
|
-
r2 != null && t2 != null && r2.seed(t2), this._randomizer = r2 ??
|
|
1251
|
+
r2 != null && t2 != null && r2.seed(t2), this._randomizer = r2 ?? Ge(t2);
|
|
1179
1252
|
}
|
|
1180
|
-
seed(e2 =
|
|
1253
|
+
seed(e2 = L()) {
|
|
1181
1254
|
return this._randomizer.seed(e2), e2;
|
|
1182
1255
|
}
|
|
1183
1256
|
};
|
|
1184
|
-
new
|
|
1185
|
-
function
|
|
1257
|
+
new I();
|
|
1258
|
+
function ze(i2) {
|
|
1186
1259
|
let e2 = {};
|
|
1187
1260
|
for (let r2 of i2) for (let t2 in r2) {
|
|
1188
1261
|
let a2 = r2[t2];
|
|
@@ -1190,7 +1263,7 @@ function We(i2) {
|
|
|
1190
1263
|
}
|
|
1191
1264
|
return e2;
|
|
1192
1265
|
}
|
|
1193
|
-
var
|
|
1266
|
+
var Q = class extends p {
|
|
1194
1267
|
dog() {
|
|
1195
1268
|
return this.faker.helpers.arrayElement(this.faker.definitions.animal.dog);
|
|
1196
1269
|
}
|
|
@@ -1240,7 +1313,7 @@ var X = class extends p {
|
|
|
1240
1313
|
return this.faker.helpers.arrayElement(this.faker.definitions.animal.pet_name);
|
|
1241
1314
|
}
|
|
1242
1315
|
};
|
|
1243
|
-
var
|
|
1316
|
+
var q = class extends p {
|
|
1244
1317
|
author() {
|
|
1245
1318
|
return this.faker.helpers.arrayElement(this.faker.definitions.book.author);
|
|
1246
1319
|
}
|
|
@@ -1260,7 +1333,7 @@ var Q = class extends p {
|
|
|
1260
1333
|
return this.faker.helpers.arrayElement(this.faker.definitions.book.title);
|
|
1261
1334
|
}
|
|
1262
1335
|
};
|
|
1263
|
-
var Hr = { 0: [[1999999, 2], [2279999, 3], [2289999, 4], [3689999, 3], [3699999, 4], [6389999, 3], [6397999, 4], [6399999, 7], [6449999, 3], [6459999, 7], [6479999, 3], [6489999, 7], [6549999, 3], [6559999, 4], [6999999, 3], [8499999, 4], [8999999, 5], [9499999, 6], [9999999, 7]], 1: [[99999, 3], [299999, 2], [349999, 3], [399999, 4], [499999, 3], [699999, 2], [999999, 4], [3979999, 3], [5499999, 4], [6499999, 5], [6799999, 4], [6859999, 5], [7139999, 4], [7169999, 3], [7319999, 4], [7399999, 7], [7749999, 5], [7753999, 7], [7763999, 5], [7764999, 7], [7769999, 5], [7782999, 7], [7899999, 5], [7999999, 4], [8004999, 5], [8049999, 5], [8379999, 5], [8384999, 7], [8671999, 5], [8675999, 4], [8697999, 5], [9159999, 6], [9165059, 7], [9168699, 6], [9169079, 7], [9195999, 6], [9196549, 7], [9729999, 6], [9877999, 4], [9911499, 6], [9911999, 7], [9989899, 6], [9999999, 7]] },
|
|
1336
|
+
var Hr = { 0: [[1999999, 2], [2279999, 3], [2289999, 4], [3689999, 3], [3699999, 4], [6389999, 3], [6397999, 4], [6399999, 7], [6449999, 3], [6459999, 7], [6479999, 3], [6489999, 7], [6549999, 3], [6559999, 4], [6999999, 3], [8499999, 4], [8999999, 5], [9499999, 6], [9999999, 7]], 1: [[99999, 3], [299999, 2], [349999, 3], [399999, 4], [499999, 3], [699999, 2], [999999, 4], [3979999, 3], [5499999, 4], [6499999, 5], [6799999, 4], [6859999, 5], [7139999, 4], [7169999, 3], [7319999, 4], [7399999, 7], [7749999, 5], [7753999, 7], [7763999, 5], [7764999, 7], [7769999, 5], [7782999, 7], [7899999, 5], [7999999, 4], [8004999, 5], [8049999, 5], [8379999, 5], [8384999, 7], [8671999, 5], [8675999, 4], [8697999, 5], [9159999, 6], [9165059, 7], [9168699, 6], [9169079, 7], [9195999, 6], [9196549, 7], [9729999, 6], [9877999, 4], [9911499, 6], [9911999, 7], [9989899, 6], [9999999, 7]] }, ee = class extends p {
|
|
1264
1337
|
department() {
|
|
1265
1338
|
return this.faker.helpers.arrayElement(this.faker.definitions.commerce.department);
|
|
1266
1339
|
}
|
|
@@ -1290,19 +1363,19 @@ var Hr = { 0: [[1999999, 2], [2279999, 3], [2289999, 4], [3689999, 3], [3699999,
|
|
|
1290
1363
|
}
|
|
1291
1364
|
isbn(e2 = {}) {
|
|
1292
1365
|
typeof e2 == "number" && (e2 = { variant: e2 });
|
|
1293
|
-
let { variant: r2 = 13, separator: t2 = "-" } = e2, a2 = "978", [n2, o2] = this.faker.helpers.objectEntry(Hr), s2 = this.faker.string.numeric(8), l2 = Number.parseInt(s2.slice(0, -1)), c2 = o2.find(([
|
|
1366
|
+
let { variant: r2 = 13, separator: t2 = "-" } = e2, a2 = "978", [n2, o2] = this.faker.helpers.objectEntry(Hr), s2 = this.faker.string.numeric(8), l2 = Number.parseInt(s2.slice(0, -1)), c2 = o2.find(([g2]) => l2 <= g2)?.[1];
|
|
1294
1367
|
if (!c2) throw new m(`Unable to find a registrant length for the group ${n2}`);
|
|
1295
1368
|
let u2 = s2.slice(0, c2), h2 = s2.slice(c2), f2 = [a2, n2, u2, h2];
|
|
1296
1369
|
r2 === 10 && f2.shift();
|
|
1297
|
-
let
|
|
1298
|
-
for (let
|
|
1299
|
-
let
|
|
1300
|
-
b2 +=
|
|
1370
|
+
let k2 = f2.join(""), b2 = 0;
|
|
1371
|
+
for (let g2 = 0; g2 < r2 - 1; g2++) {
|
|
1372
|
+
let C2 = r2 === 10 ? g2 + 1 : g2 % 2 ? 3 : 1;
|
|
1373
|
+
b2 += C2 * Number.parseInt(k2[g2]);
|
|
1301
1374
|
}
|
|
1302
1375
|
return b2 = r2 === 10 ? b2 % 11 : (10 - b2 % 10) % 10, f2.push(b2 === 10 ? "X" : b2.toString()), f2.join(t2);
|
|
1303
1376
|
}
|
|
1304
1377
|
};
|
|
1305
|
-
var
|
|
1378
|
+
var re = class extends p {
|
|
1306
1379
|
name() {
|
|
1307
1380
|
return this.faker.helpers.fake(this.faker.definitions.company.name_pattern);
|
|
1308
1381
|
}
|
|
@@ -1331,7 +1404,7 @@ var ee = class extends p {
|
|
|
1331
1404
|
return this.faker.helpers.arrayElement(this.faker.definitions.company.buzz_noun);
|
|
1332
1405
|
}
|
|
1333
1406
|
};
|
|
1334
|
-
var
|
|
1407
|
+
var te = class extends p {
|
|
1335
1408
|
column() {
|
|
1336
1409
|
return this.faker.helpers.arrayElement(this.faker.definitions.database.column);
|
|
1337
1410
|
}
|
|
@@ -1352,13 +1425,13 @@ var Vr = { alpha: ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "
|
|
|
1352
1425
|
let e2 = 0;
|
|
1353
1426
|
for (let r2 of i2) e2 = (e2 * 10 + +r2) % 97;
|
|
1354
1427
|
return e2;
|
|
1355
|
-
}, pattern10: ["01", "02", "03", "04", "05", "06", "07", "08", "09"], pattern100: ["001", "002", "003", "004", "005", "006", "007", "008", "009"], toDigitString: (i2) => i2.replaceAll(/[A-Z]/gi, (e2) => String((e2.toUpperCase().codePointAt(0) ?? Number.NaN) - 55)) },
|
|
1428
|
+
}, pattern10: ["01", "02", "03", "04", "05", "06", "07", "08", "09"], pattern100: ["001", "002", "003", "004", "005", "006", "007", "008", "009"], toDigitString: (i2) => i2.replaceAll(/[A-Z]/gi, (e2) => String((e2.toUpperCase().codePointAt(0) ?? Number.NaN) - 55)) }, S = Vr;
|
|
1356
1429
|
function zr(i2) {
|
|
1357
1430
|
let e2 = "";
|
|
1358
1431
|
for (let r2 = 0; r2 < i2.length; r2 += 4) e2 += `${i2.substring(r2, r2 + 4)} `;
|
|
1359
1432
|
return e2.trimEnd();
|
|
1360
1433
|
}
|
|
1361
|
-
var
|
|
1434
|
+
var ae = class extends p {
|
|
1362
1435
|
accountNumber(e2 = {}) {
|
|
1363
1436
|
typeof e2 == "number" && (e2 = { length: e2 });
|
|
1364
1437
|
let { length: r2 = 8 } = e2;
|
|
@@ -1372,11 +1445,6 @@ var te = class extends p {
|
|
|
1372
1445
|
for (let t2 = 0; t2 < e2.length; t2 += 3) r2 += Number(e2[t2]) * 3, r2 += Number(e2[t2 + 1]) * 7, r2 += Number(e2[t2 + 2]) || 0;
|
|
1373
1446
|
return `${e2}${Math.ceil(r2 / 10) * 10 - r2}`;
|
|
1374
1447
|
}
|
|
1375
|
-
maskedNumber(e2 = {}) {
|
|
1376
|
-
w({ deprecated: "faker.finance.maskedNumber()", proposed: "faker.finance.iban().replace(/(?<=.{4})\\w(?=.{2})/g, '*') or a similar approach", since: "9.3.0", until: "10.0.0" }), typeof e2 == "number" && (e2 = { length: e2 });
|
|
1377
|
-
let { ellipsis: r2 = true, length: t2 = 4, parens: a2 = true } = e2, n2 = this.faker.string.numeric({ length: t2 });
|
|
1378
|
-
return r2 && (n2 = `...${n2}`), a2 && (n2 = `(${n2})`), n2;
|
|
1379
|
-
}
|
|
1380
1448
|
amount(e2 = {}) {
|
|
1381
1449
|
let { autoFormat: r2 = false, dec: t2 = 2, max: a2 = 1e3, min: n2 = 0, symbol: o2 = "" } = e2, s2 = this.faker.number.float({ max: a2, min: n2, fractionDigits: t2 }), l2 = r2 ? s2.toLocaleString(void 0, { minimumFractionDigits: t2 }) : s2.toFixed(t2);
|
|
1382
1450
|
return o2 + l2;
|
|
@@ -1404,7 +1472,7 @@ var te = class extends p {
|
|
|
1404
1472
|
return this.currency().numericCode;
|
|
1405
1473
|
}
|
|
1406
1474
|
bitcoinAddress(e2 = {}) {
|
|
1407
|
-
let { type: r2 = this.faker.helpers.enumValue(be), network: t2 = "mainnet" } = e2, a2 =
|
|
1475
|
+
let { type: r2 = this.faker.helpers.enumValue(be), network: t2 = "mainnet" } = e2, a2 = Pe[r2], n2 = a2.prefix[t2], o2 = this.faker.number.int(a2.length), s2 = this.faker.string.alphanumeric({ length: o2 - n2.length, casing: a2.casing, exclude: a2.exclude });
|
|
1408
1476
|
return n2 + s2;
|
|
1409
1477
|
}
|
|
1410
1478
|
litecoinAddress() {
|
|
@@ -1438,21 +1506,21 @@ var te = class extends p {
|
|
|
1438
1506
|
return this.faker.string.hexadecimal({ length: 40, casing: "lower" });
|
|
1439
1507
|
}
|
|
1440
1508
|
iban(e2 = {}) {
|
|
1441
|
-
let { countryCode: r2, formatted: t2 = false } = e2, a2 = r2 ?
|
|
1509
|
+
let { countryCode: r2, formatted: t2 = false } = e2, a2 = r2 ? S.formats.find((c2) => c2.country === r2) : this.faker.helpers.arrayElement(S.formats);
|
|
1442
1510
|
if (!a2) throw new m(`Country code ${r2} not supported.`);
|
|
1443
1511
|
let n2 = "", o2 = 0;
|
|
1444
1512
|
for (let c2 of a2.bban) {
|
|
1445
1513
|
let u2 = c2.count;
|
|
1446
|
-
for (o2 += c2.count; u2 > 0; ) c2.type === "a" ? n2 += this.faker.helpers.arrayElement(
|
|
1514
|
+
for (o2 += c2.count; u2 > 0; ) c2.type === "a" ? n2 += this.faker.helpers.arrayElement(S.alpha) : c2.type === "c" ? this.faker.datatype.boolean(0.8) ? n2 += this.faker.number.int(9) : n2 += this.faker.helpers.arrayElement(S.alpha) : u2 >= 3 && this.faker.datatype.boolean(0.3) ? this.faker.datatype.boolean() ? (n2 += this.faker.helpers.arrayElement(S.pattern100), u2 -= 2) : (n2 += this.faker.helpers.arrayElement(S.pattern10), u2--) : n2 += this.faker.number.int(9), u2--;
|
|
1447
1515
|
n2 = n2.substring(0, o2);
|
|
1448
1516
|
}
|
|
1449
|
-
let s2 = 98 -
|
|
1517
|
+
let s2 = 98 - S.mod97(S.toDigitString(`${n2}${a2.country}00`));
|
|
1450
1518
|
s2 < 10 && (s2 = `0${s2}`);
|
|
1451
1519
|
let l2 = `${a2.country}${s2}${n2}`;
|
|
1452
1520
|
return t2 ? zr(l2) : l2;
|
|
1453
1521
|
}
|
|
1454
1522
|
bic(e2 = {}) {
|
|
1455
|
-
let { includeBranchCode: r2 = this.faker.datatype.boolean() } = e2, t2 = this.faker.string.alpha({ length: 4, casing: "upper" }), a2 = this.faker.helpers.arrayElement(
|
|
1523
|
+
let { includeBranchCode: r2 = this.faker.datatype.boolean() } = e2, t2 = this.faker.string.alpha({ length: 4, casing: "upper" }), a2 = this.faker.helpers.arrayElement(S.iso3166), n2 = this.faker.string.alphanumeric({ length: 2, casing: "upper" }), o2 = r2 ? this.faker.datatype.boolean() ? this.faker.string.alphanumeric({ length: 3, casing: "upper" }) : "XXX" : "";
|
|
1456
1524
|
return `${t2}${a2}${n2}${o2}`;
|
|
1457
1525
|
}
|
|
1458
1526
|
transactionDescription() {
|
|
@@ -1462,7 +1530,7 @@ var te = class extends p {
|
|
|
1462
1530
|
function Ye(i2) {
|
|
1463
1531
|
return i2.split(" ").map((e2) => e2.charAt(0).toUpperCase() + e2.slice(1)).join(" ");
|
|
1464
1532
|
}
|
|
1465
|
-
var
|
|
1533
|
+
var ne = class extends p {
|
|
1466
1534
|
adjective() {
|
|
1467
1535
|
return this.faker.helpers.arrayElement(this.faker.definitions.food.adjective);
|
|
1468
1536
|
}
|
|
@@ -1491,7 +1559,7 @@ var ae = class extends p {
|
|
|
1491
1559
|
return this.faker.helpers.arrayElement(this.faker.definitions.food.vegetable);
|
|
1492
1560
|
}
|
|
1493
1561
|
};
|
|
1494
|
-
var
|
|
1562
|
+
var Yr = " ", ie = class extends p {
|
|
1495
1563
|
branch() {
|
|
1496
1564
|
let e2 = this.faker.hacker.noun().replace(" ", "-"), r2 = this.faker.hacker.verb().replace(" ", "-");
|
|
1497
1565
|
return `${e2}-${r2}`;
|
|
@@ -1500,7 +1568,7 @@ var Wr = " ", ne = class extends p {
|
|
|
1500
1568
|
let { merge: r2 = this.faker.datatype.boolean({ probability: 0.2 }), eol: t2 = "CRLF", refDate: a2 } = e2, n2 = [`commit ${this.faker.git.commitSha()}`];
|
|
1501
1569
|
r2 && n2.push(`Merge: ${this.commitSha({ length: 7 })} ${this.commitSha({ length: 7 })}`);
|
|
1502
1570
|
let o2 = this.faker.person.firstName(), s2 = this.faker.person.lastName(), l2 = this.faker.person.fullName({ firstName: o2, lastName: s2 }), c2 = this.faker.internet.username({ firstName: o2, lastName: s2 }), u2 = this.faker.helpers.arrayElement([l2, c2]), h2 = this.faker.internet.email({ firstName: o2, lastName: s2 });
|
|
1503
|
-
u2 = u2.replaceAll(/^[.,:;"\\']|[<>\n]|[.,:;"\\']$/g, ""), n2.push(`Author: ${u2} <${h2}>`, `Date: ${this.commitDate({ refDate: a2 })}`, "", `${
|
|
1571
|
+
u2 = u2.replaceAll(/^[.,:;"\\']|[<>\n]|[.,:;"\\']$/g, ""), n2.push(`Author: ${u2} <${h2}>`, `Date: ${this.commitDate({ refDate: a2 })}`, "", `${Yr.repeat(4)}${this.commitMessage()}`, "");
|
|
1504
1572
|
let f2 = t2 === "CRLF" ? `\r
|
|
1505
1573
|
` : `
|
|
1506
1574
|
`;
|
|
@@ -1510,15 +1578,15 @@ var Wr = " ", ne = class extends p {
|
|
|
1510
1578
|
return `${this.faker.hacker.verb()} ${this.faker.hacker.adjective()} ${this.faker.hacker.noun()}`;
|
|
1511
1579
|
}
|
|
1512
1580
|
commitDate(e2 = {}) {
|
|
1513
|
-
let { refDate: r2 = this.faker.defaultRefDate() } = e2, t2 = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], a2 = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], n2 = this.faker.date.recent({ days: 1, refDate: r2 }), o2 = t2[n2.getUTCDay()], s2 = a2[n2.getUTCMonth()], l2 = n2.getUTCDate(), c2 = n2.getUTCHours().toString().padStart(2, "0"), u2 = n2.getUTCMinutes().toString().padStart(2, "0"), h2 = n2.getUTCSeconds().toString().padStart(2, "0"), f2 = n2.getUTCFullYear(),
|
|
1514
|
-
return `${o2} ${s2} ${l2} ${c2}:${u2}:${h2} ${f2} ${
|
|
1581
|
+
let { refDate: r2 = this.faker.defaultRefDate() } = e2, t2 = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], a2 = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], n2 = this.faker.date.recent({ days: 1, refDate: r2 }), o2 = t2[n2.getUTCDay()], s2 = a2[n2.getUTCMonth()], l2 = n2.getUTCDate(), c2 = n2.getUTCHours().toString().padStart(2, "0"), u2 = n2.getUTCMinutes().toString().padStart(2, "0"), h2 = n2.getUTCSeconds().toString().padStart(2, "0"), f2 = n2.getUTCFullYear(), k2 = this.faker.number.int({ min: -11, max: 12 }), b2 = Math.abs(k2).toString().padStart(2, "0"), g2 = "00", C2 = k2 >= 0 ? "+" : "-";
|
|
1582
|
+
return `${o2} ${s2} ${l2} ${c2}:${u2}:${h2} ${f2} ${C2}${b2}${g2}`;
|
|
1515
1583
|
}
|
|
1516
1584
|
commitSha(e2 = {}) {
|
|
1517
1585
|
let { length: r2 = 40 } = e2;
|
|
1518
1586
|
return this.faker.string.hexadecimal({ length: r2, casing: "lower", prefix: "" });
|
|
1519
1587
|
}
|
|
1520
1588
|
};
|
|
1521
|
-
var
|
|
1589
|
+
var oe = class extends p {
|
|
1522
1590
|
abbreviation() {
|
|
1523
1591
|
return this.faker.helpers.arrayElement(this.faker.definitions.hacker.abbreviation);
|
|
1524
1592
|
}
|
|
@@ -1539,7 +1607,11 @@ var ie = class extends p {
|
|
|
1539
1607
|
return this.faker.helpers.mustache(r2, e2);
|
|
1540
1608
|
}
|
|
1541
1609
|
};
|
|
1542
|
-
|
|
1610
|
+
function We(i2) {
|
|
1611
|
+
let { deprecated: e2, since: r2, until: t2, proposed: a2 } = i2, n2 = `[@faker-js/faker]: ${e2} is deprecated`;
|
|
1612
|
+
r2 && (n2 += ` since v${r2}`), t2 && (n2 += ` and will be removed in v${t2}`), a2 && (n2 += `. Please use ${a2} instead`), console.warn(`${n2}.`);
|
|
1613
|
+
}
|
|
1614
|
+
var se = class extends p {
|
|
1543
1615
|
avatar() {
|
|
1544
1616
|
return this.faker.helpers.arrayElement([this.personPortrait, this.avatarGitHub])();
|
|
1545
1617
|
}
|
|
@@ -1550,14 +1622,12 @@ var oe = class extends p {
|
|
|
1550
1622
|
let { sex: r2 = this.faker.person.sexType(), size: t2 = 512 } = e2;
|
|
1551
1623
|
return `https://cdn.jsdelivr.net/gh/faker-js/assets-person-portrait/${r2}/${t2}/${this.faker.number.int({ min: 0, max: 99 })}.jpg`;
|
|
1552
1624
|
}
|
|
1553
|
-
avatarLegacy() {
|
|
1554
|
-
return w({ deprecated: "faker.image.avatarLegacy()", proposed: "faker.image.avatar() or faker.image.personPortrait()", since: "9.0.2", until: "10.0.0" }), `https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/${this.faker.number.int(1249)}.jpg`;
|
|
1555
|
-
}
|
|
1556
1625
|
url(e2 = {}) {
|
|
1557
1626
|
let { width: r2 = this.faker.number.int({ min: 1, max: 3999 }), height: t2 = this.faker.number.int({ min: 1, max: 3999 }) } = e2;
|
|
1558
|
-
return this.faker.helpers.arrayElement([
|
|
1627
|
+
return this.faker.helpers.arrayElement([({ width: n2, height: o2 }) => this.urlPicsumPhotos({ width: n2, height: o2, grayscale: false, blur: 0 })])({ width: r2, height: t2 });
|
|
1559
1628
|
}
|
|
1560
1629
|
urlLoremFlickr(e2 = {}) {
|
|
1630
|
+
We({ deprecated: "faker.image.urlLoremFlickr()", proposed: "faker.image.url()", since: "10.1.0", until: "11.0.0" });
|
|
1561
1631
|
let { width: r2 = this.faker.number.int({ min: 1, max: 3999 }), height: t2 = this.faker.number.int({ min: 1, max: 3999 }), category: a2 } = e2;
|
|
1562
1632
|
return `https://loremflickr.com/${r2}/${t2}${a2 == null ? "" : `/${a2}`}?lock=${this.faker.number.int()}`;
|
|
1563
1633
|
}
|
|
@@ -1565,105 +1635,11 @@ var oe = class extends p {
|
|
|
1565
1635
|
let { width: r2 = this.faker.number.int({ min: 1, max: 3999 }), height: t2 = this.faker.number.int({ min: 1, max: 3999 }), grayscale: a2 = this.faker.datatype.boolean(), blur: n2 = this.faker.number.int({ max: 10 }) } = e2, o2 = `https://picsum.photos/seed/${this.faker.string.alphanumeric({ length: { min: 5, max: 10 } })}/${r2}/${t2}`, s2 = typeof n2 == "number" && n2 >= 1 && n2 <= 10;
|
|
1566
1636
|
return (a2 || s2) && (o2 += "?", a2 && (o2 += "grayscale"), a2 && s2 && (o2 += "&"), s2 && (o2 += `blur=${n2}`)), o2;
|
|
1567
1637
|
}
|
|
1568
|
-
urlPlaceholder(e2 = {}) {
|
|
1569
|
-
w({ deprecated: "faker.image.urlPlaceholder()", proposed: "faker.image.url() or faker.image.dataUri()", since: "9.4.0", until: "10.0.0" });
|
|
1570
|
-
let { width: r2 = this.faker.number.int({ min: 1, max: 3500 }), height: t2 = this.faker.number.int({ min: 1, max: 3500 }), backgroundColor: a2 = this.faker.color.rgb({ format: "hex", prefix: "" }), textColor: n2 = this.faker.color.rgb({ format: "hex", prefix: "" }), format: o2 = this.faker.helpers.arrayElement(["gif", "jpeg", "jpg", "png", "webp"]), text: s2 = this.faker.lorem.words() } = e2, l2 = "https://via.placeholder.com";
|
|
1571
|
-
return l2 += `/${r2}`, l2 += `x${t2}`, l2 += `/${a2}`, l2 += `/${n2}`, l2 += `.${o2}`, l2 += `?text=${encodeURIComponent(s2)}`, l2;
|
|
1572
|
-
}
|
|
1573
1638
|
dataUri(e2 = {}) {
|
|
1574
1639
|
let { width: r2 = this.faker.number.int({ min: 1, max: 3999 }), height: t2 = this.faker.number.int({ min: 1, max: 3999 }), color: a2 = this.faker.color.rgb(), type: n2 = this.faker.helpers.arrayElement(["svg-uri", "svg-base64"]) } = e2, o2 = `<svg xmlns="http://www.w3.org/2000/svg" version="1.1" baseProfile="full" width="${r2}" height="${t2}"><rect width="100%" height="100%" fill="${a2}"/><text x="${r2 / 2}" y="${t2 / 2}" font-size="20" alignment-baseline="middle" text-anchor="middle" fill="white">${r2}x${t2}</text></svg>`;
|
|
1575
1640
|
return n2 === "svg-uri" ? `data:image/svg+xml;charset=UTF-8,${encodeURIComponent(o2)}` : `data:image/svg+xml;base64,${de(o2)}`;
|
|
1576
1641
|
}
|
|
1577
1642
|
};
|
|
1578
|
-
var se = class extends p {
|
|
1579
|
-
zipCode(e2 = {}) {
|
|
1580
|
-
typeof e2 == "string" && (e2 = { format: e2 });
|
|
1581
|
-
let { state: r2 } = e2;
|
|
1582
|
-
if (r2 != null) {
|
|
1583
|
-
let a2 = this.faker.definitions.location.postcode_by_state[r2];
|
|
1584
|
-
if (a2 == null) throw new m(`No zip code definition found for state "${r2}"`);
|
|
1585
|
-
return this.faker.helpers.fake(a2);
|
|
1586
|
-
}
|
|
1587
|
-
let { format: t2 = this.faker.definitions.location.postcode } = e2;
|
|
1588
|
-
return typeof t2 == "string" && (t2 = [t2]), t2 = this.faker.helpers.arrayElement(t2), this.faker.helpers.replaceSymbols(t2);
|
|
1589
|
-
}
|
|
1590
|
-
city() {
|
|
1591
|
-
return this.faker.helpers.fake(this.faker.definitions.location.city_pattern);
|
|
1592
|
-
}
|
|
1593
|
-
buildingNumber() {
|
|
1594
|
-
return this.faker.helpers.arrayElement(this.faker.definitions.location.building_number).replaceAll(/#+/g, (e2) => this.faker.string.numeric({ length: e2.length, allowLeadingZeros: false }));
|
|
1595
|
-
}
|
|
1596
|
-
street() {
|
|
1597
|
-
return this.faker.helpers.fake(this.faker.definitions.location.street_pattern);
|
|
1598
|
-
}
|
|
1599
|
-
streetAddress(e2 = {}) {
|
|
1600
|
-
typeof e2 == "boolean" && (e2 = { useFullAddress: e2 });
|
|
1601
|
-
let { useFullAddress: r2 } = e2, a2 = this.faker.definitions.location.street_address[r2 ? "full" : "normal"];
|
|
1602
|
-
return this.faker.helpers.fake(a2);
|
|
1603
|
-
}
|
|
1604
|
-
secondaryAddress() {
|
|
1605
|
-
return this.faker.helpers.fake(this.faker.definitions.location.secondary_address).replaceAll(/#+/g, (e2) => this.faker.string.numeric({ length: e2.length, allowLeadingZeros: false }));
|
|
1606
|
-
}
|
|
1607
|
-
county() {
|
|
1608
|
-
return this.faker.helpers.arrayElement(this.faker.definitions.location.county);
|
|
1609
|
-
}
|
|
1610
|
-
country() {
|
|
1611
|
-
return this.faker.helpers.arrayElement(this.faker.definitions.location.country);
|
|
1612
|
-
}
|
|
1613
|
-
continent() {
|
|
1614
|
-
return this.faker.helpers.arrayElement(this.faker.definitions.location.continent);
|
|
1615
|
-
}
|
|
1616
|
-
countryCode(e2 = {}) {
|
|
1617
|
-
typeof e2 == "string" && (e2 = { variant: e2 });
|
|
1618
|
-
let { variant: r2 = "alpha-2" } = e2, t2 = (() => {
|
|
1619
|
-
switch (r2) {
|
|
1620
|
-
case "numeric":
|
|
1621
|
-
return "numeric";
|
|
1622
|
-
case "alpha-3":
|
|
1623
|
-
return "alpha3";
|
|
1624
|
-
case "alpha-2":
|
|
1625
|
-
return "alpha2";
|
|
1626
|
-
}
|
|
1627
|
-
})();
|
|
1628
|
-
return this.faker.helpers.arrayElement(this.faker.definitions.location.country_code)[t2];
|
|
1629
|
-
}
|
|
1630
|
-
state(e2 = {}) {
|
|
1631
|
-
let { abbreviated: r2 = false } = e2, t2 = r2 ? this.faker.definitions.location.state_abbr : this.faker.definitions.location.state;
|
|
1632
|
-
return this.faker.helpers.arrayElement(t2);
|
|
1633
|
-
}
|
|
1634
|
-
latitude(e2 = {}) {
|
|
1635
|
-
let { max: r2 = 90, min: t2 = -90, precision: a2 = 4 } = e2;
|
|
1636
|
-
return this.faker.number.float({ min: t2, max: r2, fractionDigits: a2 });
|
|
1637
|
-
}
|
|
1638
|
-
longitude(e2 = {}) {
|
|
1639
|
-
let { max: r2 = 180, min: t2 = -180, precision: a2 = 4 } = e2;
|
|
1640
|
-
return this.faker.number.float({ max: r2, min: t2, fractionDigits: a2 });
|
|
1641
|
-
}
|
|
1642
|
-
direction(e2 = {}) {
|
|
1643
|
-
let { abbreviated: r2 = false } = e2;
|
|
1644
|
-
return r2 ? this.faker.helpers.arrayElement([...this.faker.definitions.location.direction.cardinal_abbr, ...this.faker.definitions.location.direction.ordinal_abbr]) : this.faker.helpers.arrayElement([...this.faker.definitions.location.direction.cardinal, ...this.faker.definitions.location.direction.ordinal]);
|
|
1645
|
-
}
|
|
1646
|
-
cardinalDirection(e2 = {}) {
|
|
1647
|
-
let { abbreviated: r2 = false } = e2;
|
|
1648
|
-
return r2 ? this.faker.helpers.arrayElement(this.faker.definitions.location.direction.cardinal_abbr) : this.faker.helpers.arrayElement(this.faker.definitions.location.direction.cardinal);
|
|
1649
|
-
}
|
|
1650
|
-
ordinalDirection(e2 = {}) {
|
|
1651
|
-
let { abbreviated: r2 = false } = e2;
|
|
1652
|
-
return r2 ? this.faker.helpers.arrayElement(this.faker.definitions.location.direction.ordinal_abbr) : this.faker.helpers.arrayElement(this.faker.definitions.location.direction.ordinal);
|
|
1653
|
-
}
|
|
1654
|
-
nearbyGPSCoordinate(e2 = {}) {
|
|
1655
|
-
let { origin: r2, radius: t2 = 10, isMetric: a2 = false } = e2;
|
|
1656
|
-
if (r2 == null) return [this.latitude(), this.longitude()];
|
|
1657
|
-
let n2 = this.faker.number.float({ max: 2 * Math.PI, fractionDigits: 5 }), o2 = a2 ? t2 : t2 * 1.60934, l2 = this.faker.number.float({ max: o2, fractionDigits: 3 }) * 0.995, c2 = 4e4 / 360, u2 = l2 / c2, h2 = [r2[0] + Math.sin(n2) * u2, r2[1] + Math.cos(n2) * u2];
|
|
1658
|
-
return h2[0] = h2[0] % 180, (h2[0] < -90 || h2[0] > 90) && (h2[0] = Math.sign(h2[0]) * 180 - h2[0], h2[1] += 180), h2[1] = (h2[1] % 360 + 540) % 360 - 180, [h2[0], h2[1]];
|
|
1659
|
-
}
|
|
1660
|
-
timeZone() {
|
|
1661
|
-
return this.faker.helpers.arrayElement(this.faker.definitions.location.time_zone);
|
|
1662
|
-
}
|
|
1663
|
-
language() {
|
|
1664
|
-
return this.faker.helpers.arrayElement(this.faker.definitions.location.language);
|
|
1665
|
-
}
|
|
1666
|
-
};
|
|
1667
1643
|
function Ze(i2, e2, r2 = (t2) => t2) {
|
|
1668
1644
|
let t2 = {};
|
|
1669
1645
|
for (let a2 of i2) {
|
|
@@ -1672,7 +1648,7 @@ function Ze(i2, e2, r2 = (t2) => t2) {
|
|
|
1672
1648
|
}
|
|
1673
1649
|
return t2;
|
|
1674
1650
|
}
|
|
1675
|
-
var
|
|
1651
|
+
var Se = { fail: () => {
|
|
1676
1652
|
throw new m("No words found that match the given length.");
|
|
1677
1653
|
}, closest: (i2, e2) => {
|
|
1678
1654
|
let r2 = Ze(i2, (s2) => s2.length), t2 = Object.keys(r2).map(Number), a2 = Math.min(...t2), n2 = Math.max(...t2), o2 = Math.min(e2.min - a2, n2 - e2.max);
|
|
@@ -1685,11 +1661,11 @@ var Me = { fail: () => {
|
|
|
1685
1661
|
return i2.filter((r2) => r2.length === e2);
|
|
1686
1662
|
}, "any-length": (i2) => [...i2] };
|
|
1687
1663
|
function T(i2) {
|
|
1688
|
-
let { wordList: e2, length: r2, strategy: t2 = "
|
|
1664
|
+
let { wordList: e2, length: r2, strategy: t2 = "fail" } = i2;
|
|
1689
1665
|
if (r2 != null) {
|
|
1690
1666
|
let a2 = typeof r2 == "number" ? (o2) => o2.length === r2 : (o2) => o2.length >= r2.min && o2.length <= r2.max, n2 = e2.filter(a2);
|
|
1691
|
-
return n2.length > 0 ? n2 : typeof r2 == "number" ?
|
|
1692
|
-
} else if (t2 === "shortest" || t2 === "longest") return
|
|
1667
|
+
return n2.length > 0 ? n2 : typeof r2 == "number" ? Se[t2](e2, { min: r2, max: r2 }) : Se[t2](e2, r2);
|
|
1668
|
+
} else if (t2 === "shortest" || t2 === "longest") return Se[t2](e2);
|
|
1693
1669
|
return [...e2];
|
|
1694
1670
|
}
|
|
1695
1671
|
var ce = class extends p {
|
|
@@ -1745,7 +1721,7 @@ var me = class extends p {
|
|
|
1745
1721
|
let { style: r2 = "human" } = e2, a2 = this.faker.definitions.phone_number.format[r2];
|
|
1746
1722
|
if (!a2) throw new Error(`No definitions for ${r2} in this locale`);
|
|
1747
1723
|
let n2 = this.faker.helpers.arrayElement(a2);
|
|
1748
|
-
return
|
|
1724
|
+
return Ee(this.faker, n2);
|
|
1749
1725
|
}
|
|
1750
1726
|
imei() {
|
|
1751
1727
|
return this.faker.helpers.replaceCreditCardSymbols("##-######-######-L", "#");
|
|
@@ -1759,7 +1735,7 @@ var ue = class extends p {
|
|
|
1759
1735
|
return this.faker.helpers.arrayElement(this.faker.definitions.science.unit);
|
|
1760
1736
|
}
|
|
1761
1737
|
};
|
|
1762
|
-
var
|
|
1738
|
+
var Wr = ["video", "audio", "image", "text", "application"], Zr = ["application/pdf", "audio/mpeg", "audio/wav", "image/png", "image/jpeg", "image/gif", "video/mp4", "video/mpeg", "text/html"], Jr = ["en", "wl", "ww"], Je = { index: "o", slot: "s", mac: "x", pci: "p" }, Xr = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"], pe = class extends p {
|
|
1763
1739
|
fileName(e2 = {}) {
|
|
1764
1740
|
let { extensionCount: r2 = 1 } = e2, t2 = this.faker.word.words().toLowerCase().replaceAll(/\W/g, "_"), a2 = this.faker.helpers.multiple(() => this.fileExt(), { count: r2 }).join(".");
|
|
1765
1741
|
return a2.length === 0 ? t2 : `${t2}.${a2}`;
|
|
@@ -1772,7 +1748,7 @@ var Yr = ["video", "audio", "image", "text", "application"], Zr = ["application/
|
|
|
1772
1748
|
return this.faker.helpers.arrayElement(e2);
|
|
1773
1749
|
}
|
|
1774
1750
|
commonFileType() {
|
|
1775
|
-
return this.faker.helpers.arrayElement(
|
|
1751
|
+
return this.faker.helpers.arrayElement(Wr);
|
|
1776
1752
|
}
|
|
1777
1753
|
commonFileExt() {
|
|
1778
1754
|
return this.fileExt(this.faker.helpers.arrayElement(Zr));
|
|
@@ -1820,10 +1796,10 @@ var Yr = ["video", "audio", "image", "text", "application"], Zr = ["application/
|
|
|
1820
1796
|
return `${n2}${r2}${Je[t2]}${a2}`;
|
|
1821
1797
|
}
|
|
1822
1798
|
cron(e2 = {}) {
|
|
1823
|
-
let { includeYear: r2 = false, includeNonStandard: t2 = false } = e2, a2 = [this.faker.number.int(59), "*"], n2 = [this.faker.number.int(23), "*"], o2 = [this.faker.number.int({ min: 1, max: 31 }), "*", "?"], s2 = [this.faker.number.int({ min: 1, max: 12 }), "*"], l2 = [this.faker.number.int(6), this.faker.helpers.arrayElement(Xr), "*", "?"], c2 = [this.faker.number.int({ min: 1970, max: 2099 }), "*"], u2 = this.faker.helpers.arrayElement(a2), h2 = this.faker.helpers.arrayElement(n2), f2 = this.faker.helpers.arrayElement(o2),
|
|
1824
|
-
r2 && (
|
|
1825
|
-
let
|
|
1826
|
-
return !t2 || this.faker.datatype.boolean() ?
|
|
1799
|
+
let { includeYear: r2 = false, includeNonStandard: t2 = false } = e2, a2 = [this.faker.number.int(59), "*"], n2 = [this.faker.number.int(23), "*"], o2 = [this.faker.number.int({ min: 1, max: 31 }), "*", "?"], s2 = [this.faker.number.int({ min: 1, max: 12 }), "*"], l2 = [this.faker.number.int(6), this.faker.helpers.arrayElement(Xr), "*", "?"], c2 = [this.faker.number.int({ min: 1970, max: 2099 }), "*"], u2 = this.faker.helpers.arrayElement(a2), h2 = this.faker.helpers.arrayElement(n2), f2 = this.faker.helpers.arrayElement(o2), k2 = this.faker.helpers.arrayElement(s2), b2 = this.faker.helpers.arrayElement(l2), g2 = this.faker.helpers.arrayElement(c2), C2 = `${u2} ${h2} ${f2} ${k2} ${b2}`;
|
|
1800
|
+
r2 && (C2 += ` ${g2}`);
|
|
1801
|
+
let y2 = ["@annually", "@daily", "@hourly", "@monthly", "@reboot", "@weekly", "@yearly"];
|
|
1802
|
+
return !t2 || this.faker.datatype.boolean() ? C2 : this.faker.helpers.arrayElement(y2);
|
|
1827
1803
|
}
|
|
1828
1804
|
};
|
|
1829
1805
|
var he = class extends p {
|
|
@@ -1893,25 +1869,25 @@ var fe = class extends p {
|
|
|
1893
1869
|
return this.faker.helpers.multiple(() => this.sample(), { count: r2 }).join(" ");
|
|
1894
1870
|
}
|
|
1895
1871
|
};
|
|
1896
|
-
var Xe = class extends
|
|
1872
|
+
var Xe = class extends I {
|
|
1897
1873
|
rawDefinitions;
|
|
1898
1874
|
definitions;
|
|
1899
1875
|
airline = new F(this);
|
|
1900
|
-
animal = new
|
|
1901
|
-
book = new
|
|
1876
|
+
animal = new Q(this);
|
|
1877
|
+
book = new q(this);
|
|
1902
1878
|
color = new G(this);
|
|
1903
|
-
commerce = new
|
|
1904
|
-
company = new
|
|
1905
|
-
database = new
|
|
1879
|
+
commerce = new ee(this);
|
|
1880
|
+
company = new re(this);
|
|
1881
|
+
database = new te(this);
|
|
1906
1882
|
date = new V(this);
|
|
1907
|
-
finance = new
|
|
1908
|
-
food = new
|
|
1909
|
-
git = new
|
|
1910
|
-
hacker = new
|
|
1883
|
+
finance = new ae(this);
|
|
1884
|
+
food = new ne(this);
|
|
1885
|
+
git = new ie(this);
|
|
1886
|
+
hacker = new oe(this);
|
|
1911
1887
|
helpers = new z(this);
|
|
1912
|
-
image = new
|
|
1888
|
+
image = new se(this);
|
|
1913
1889
|
internet = new O(this);
|
|
1914
|
-
location = new
|
|
1890
|
+
location = new Y(this);
|
|
1915
1891
|
lorem = new ce(this);
|
|
1916
1892
|
music = new le(this);
|
|
1917
1893
|
person = new U(this);
|
|
@@ -1920,20 +1896,14 @@ var Xe = class extends $ {
|
|
|
1920
1896
|
system = new pe(this);
|
|
1921
1897
|
vehicle = new he(this);
|
|
1922
1898
|
word = new fe(this);
|
|
1923
|
-
get address() {
|
|
1924
|
-
return w({ deprecated: "faker.address", proposed: "faker.location", since: "8.0", until: "10.0" }), this.location;
|
|
1925
|
-
}
|
|
1926
|
-
get name() {
|
|
1927
|
-
return w({ deprecated: "faker.name", proposed: "faker.person", since: "8.0", until: "10.0" }), this.person;
|
|
1928
|
-
}
|
|
1929
1899
|
constructor(e2) {
|
|
1930
1900
|
super({ randomizer: e2.randomizer, seed: e2.seed });
|
|
1931
1901
|
let { locale: r2 } = e2;
|
|
1932
1902
|
if (Array.isArray(r2)) {
|
|
1933
1903
|
if (r2.length === 0) throw new m("The locale option must contain at least one locale definition.");
|
|
1934
|
-
r2 =
|
|
1904
|
+
r2 = ze(r2);
|
|
1935
1905
|
}
|
|
1936
|
-
this.rawDefinitions = r2, this.definitions =
|
|
1906
|
+
this.rawDefinitions = r2, this.definitions = Oe(this.rawDefinitions);
|
|
1937
1907
|
}
|
|
1938
1908
|
getMetadata() {
|
|
1939
1909
|
return this.rawDefinitions.metadata ?? {};
|
|
@@ -1945,8 +1915,8 @@ var er = ["ascii_bin", "ascii_general_ci", "cp1250_bin", "cp1250_general_ci", "u
|
|
|
1945
1915
|
var rr = ["ARCHIVE", "BLACKHOLE", "CSV", "InnoDB", "MEMORY", "MyISAM"];
|
|
1946
1916
|
var tr = ["bigint", "binary", "bit", "blob", "boolean", "date", "datetime", "decimal", "double", "enum", "float", "geometry", "int", "mediumint", "point", "real", "serial", "set", "smallint", "text", "time", "timestamp", "tinyint", "varchar"];
|
|
1947
1917
|
var qr = { collation: er, engine: rr, type: tr }, ar = qr;
|
|
1948
|
-
var
|
|
1949
|
-
var et = { time_zone:
|
|
1918
|
+
var _ = ["Africa/Abidjan", "Africa/Accra", "Africa/Addis_Ababa", "Africa/Algiers", "Africa/Asmara", "Africa/Bamako", "Africa/Bangui", "Africa/Banjul", "Africa/Bissau", "Africa/Blantyre", "Africa/Brazzaville", "Africa/Bujumbura", "Africa/Cairo", "Africa/Casablanca", "Africa/Ceuta", "Africa/Conakry", "Africa/Dakar", "Africa/Dar_es_Salaam", "Africa/Djibouti", "Africa/Douala", "Africa/El_Aaiun", "Africa/Freetown", "Africa/Gaborone", "Africa/Harare", "Africa/Johannesburg", "Africa/Juba", "Africa/Kampala", "Africa/Khartoum", "Africa/Kigali", "Africa/Kinshasa", "Africa/Lagos", "Africa/Libreville", "Africa/Lome", "Africa/Luanda", "Africa/Lubumbashi", "Africa/Lusaka", "Africa/Malabo", "Africa/Maputo", "Africa/Maseru", "Africa/Mbabane", "Africa/Mogadishu", "Africa/Monrovia", "Africa/Nairobi", "Africa/Ndjamena", "Africa/Niamey", "Africa/Nouakchott", "Africa/Ouagadougou", "Africa/Porto-Novo", "Africa/Sao_Tome", "Africa/Tripoli", "Africa/Tunis", "Africa/Windhoek", "America/Adak", "America/Anchorage", "America/Anguilla", "America/Antigua", "America/Araguaina", "America/Argentina/Buenos_Aires", "America/Argentina/Catamarca", "America/Argentina/Cordoba", "America/Argentina/Jujuy", "America/Argentina/La_Rioja", "America/Argentina/Mendoza", "America/Argentina/Rio_Gallegos", "America/Argentina/Salta", "America/Argentina/San_Juan", "America/Argentina/San_Luis", "America/Argentina/Tucuman", "America/Argentina/Ushuaia", "America/Aruba", "America/Asuncion", "America/Atikokan", "America/Bahia", "America/Bahia_Banderas", "America/Barbados", "America/Belem", "America/Belize", "America/Blanc-Sablon", "America/Boa_Vista", "America/Bogota", "America/Boise", "America/Cambridge_Bay", "America/Campo_Grande", "America/Cancun", "America/Caracas", "America/Cayenne", "America/Cayman", "America/Chicago", "America/Chihuahua", "America/Ciudad_Juarez", "America/Costa_Rica", "America/Creston", "America/Cuiaba", "America/Curacao", "America/Danmarkshavn", "America/Dawson", "America/Dawson_Creek", "America/Denver", "America/Detroit", "America/Dominica", "America/Edmonton", "America/Eirunepe", "America/El_Salvador", "America/Fort_Nelson", "America/Fortaleza", "America/Glace_Bay", "America/Goose_Bay", "America/Grand_Turk", "America/Grenada", "America/Guadeloupe", "America/Guatemala", "America/Guayaquil", "America/Guyana", "America/Halifax", "America/Havana", "America/Hermosillo", "America/Indiana/Indianapolis", "America/Indiana/Knox", "America/Indiana/Marengo", "America/Indiana/Petersburg", "America/Indiana/Tell_City", "America/Indiana/Vevay", "America/Indiana/Vincennes", "America/Indiana/Winamac", "America/Inuvik", "America/Iqaluit", "America/Jamaica", "America/Juneau", "America/Kentucky/Louisville", "America/Kentucky/Monticello", "America/Kralendijk", "America/La_Paz", "America/Lima", "America/Los_Angeles", "America/Lower_Princes", "America/Maceio", "America/Managua", "America/Manaus", "America/Marigot", "America/Martinique", "America/Matamoros", "America/Mazatlan", "America/Menominee", "America/Merida", "America/Metlakatla", "America/Mexico_City", "America/Miquelon", "America/Moncton", "America/Monterrey", "America/Montevideo", "America/Montserrat", "America/Nassau", "America/New_York", "America/Nome", "America/Noronha", "America/North_Dakota/Beulah", "America/North_Dakota/Center", "America/North_Dakota/New_Salem", "America/Nuuk", "America/Ojinaga", "America/Panama", "America/Paramaribo", "America/Phoenix", "America/Port-au-Prince", "America/Port_of_Spain", "America/Porto_Velho", "America/Puerto_Rico", "America/Punta_Arenas", "America/Rankin_Inlet", "America/Recife", "America/Regina", "America/Resolute", "America/Rio_Branco", "America/Santarem", "America/Santiago", "America/Santo_Domingo", "America/Sao_Paulo", "America/Scoresbysund", "America/Sitka", "America/St_Barthelemy", "America/St_Johns", "America/St_Kitts", "America/St_Lucia", "America/St_Thomas", "America/St_Vincent", "America/Swift_Current", "America/Tegucigalpa", "America/Thule", "America/Tijuana", "America/Toronto", "America/Tortola", "America/Vancouver", "America/Whitehorse", "America/Winnipeg", "America/Yakutat", "America/Yellowknife", "Antarctica/Casey", "Antarctica/Davis", "Antarctica/DumontDUrville", "Antarctica/Macquarie", "Antarctica/Mawson", "Antarctica/McMurdo", "Antarctica/Palmer", "Antarctica/Rothera", "Antarctica/Syowa", "Antarctica/Troll", "Antarctica/Vostok", "Arctic/Longyearbyen", "Asia/Aden", "Asia/Almaty", "Asia/Amman", "Asia/Anadyr", "Asia/Aqtau", "Asia/Aqtobe", "Asia/Ashgabat", "Asia/Atyrau", "Asia/Baghdad", "Asia/Bahrain", "Asia/Baku", "Asia/Bangkok", "Asia/Barnaul", "Asia/Beirut", "Asia/Bishkek", "Asia/Brunei", "Asia/Chita", "Asia/Choibalsan", "Asia/Colombo", "Asia/Damascus", "Asia/Dhaka", "Asia/Dili", "Asia/Dubai", "Asia/Dushanbe", "Asia/Famagusta", "Asia/Gaza", "Asia/Hebron", "Asia/Ho_Chi_Minh", "Asia/Hong_Kong", "Asia/Hovd", "Asia/Irkutsk", "Asia/Jakarta", "Asia/Jayapura", "Asia/Jerusalem", "Asia/Kabul", "Asia/Kamchatka", "Asia/Karachi", "Asia/Kathmandu", "Asia/Khandyga", "Asia/Kolkata", "Asia/Krasnoyarsk", "Asia/Kuala_Lumpur", "Asia/Kuching", "Asia/Kuwait", "Asia/Macau", "Asia/Magadan", "Asia/Makassar", "Asia/Manila", "Asia/Muscat", "Asia/Nicosia", "Asia/Novokuznetsk", "Asia/Novosibirsk", "Asia/Omsk", "Asia/Oral", "Asia/Phnom_Penh", "Asia/Pontianak", "Asia/Pyongyang", "Asia/Qatar", "Asia/Qostanay", "Asia/Qyzylorda", "Asia/Riyadh", "Asia/Sakhalin", "Asia/Samarkand", "Asia/Seoul", "Asia/Shanghai", "Asia/Singapore", "Asia/Srednekolymsk", "Asia/Taipei", "Asia/Tashkent", "Asia/Tbilisi", "Asia/Tehran", "Asia/Thimphu", "Asia/Tokyo", "Asia/Tomsk", "Asia/Ulaanbaatar", "Asia/Urumqi", "Asia/Ust-Nera", "Asia/Vientiane", "Asia/Vladivostok", "Asia/Yakutsk", "Asia/Yangon", "Asia/Yekaterinburg", "Asia/Yerevan", "Atlantic/Azores", "Atlantic/Bermuda", "Atlantic/Canary", "Atlantic/Cape_Verde", "Atlantic/Faroe", "Atlantic/Madeira", "Atlantic/Reykjavik", "Atlantic/South_Georgia", "Atlantic/St_Helena", "Atlantic/Stanley", "Australia/Adelaide", "Australia/Brisbane", "Australia/Broken_Hill", "Australia/Darwin", "Australia/Eucla", "Australia/Hobart", "Australia/Lindeman", "Australia/Lord_Howe", "Australia/Melbourne", "Australia/Perth", "Australia/Sydney", "Europe/Amsterdam", "Europe/Andorra", "Europe/Astrakhan", "Europe/Athens", "Europe/Belgrade", "Europe/Berlin", "Europe/Bratislava", "Europe/Brussels", "Europe/Bucharest", "Europe/Budapest", "Europe/Busingen", "Europe/Chisinau", "Europe/Copenhagen", "Europe/Dublin", "Europe/Gibraltar", "Europe/Guernsey", "Europe/Helsinki", "Europe/Isle_of_Man", "Europe/Istanbul", "Europe/Jersey", "Europe/Kaliningrad", "Europe/Kirov", "Europe/Kyiv", "Europe/Lisbon", "Europe/Ljubljana", "Europe/London", "Europe/Luxembourg", "Europe/Madrid", "Europe/Malta", "Europe/Mariehamn", "Europe/Minsk", "Europe/Monaco", "Europe/Moscow", "Europe/Oslo", "Europe/Paris", "Europe/Podgorica", "Europe/Prague", "Europe/Riga", "Europe/Rome", "Europe/Samara", "Europe/San_Marino", "Europe/Sarajevo", "Europe/Saratov", "Europe/Simferopol", "Europe/Skopje", "Europe/Sofia", "Europe/Stockholm", "Europe/Tallinn", "Europe/Tirane", "Europe/Ulyanovsk", "Europe/Vaduz", "Europe/Vatican", "Europe/Vienna", "Europe/Vilnius", "Europe/Volgograd", "Europe/Warsaw", "Europe/Zagreb", "Europe/Zurich", "Indian/Antananarivo", "Indian/Chagos", "Indian/Christmas", "Indian/Cocos", "Indian/Comoro", "Indian/Kerguelen", "Indian/Mahe", "Indian/Maldives", "Indian/Mauritius", "Indian/Mayotte", "Indian/Reunion", "Pacific/Apia", "Pacific/Auckland", "Pacific/Bougainville", "Pacific/Chatham", "Pacific/Chuuk", "Pacific/Easter", "Pacific/Efate", "Pacific/Fakaofo", "Pacific/Fiji", "Pacific/Funafuti", "Pacific/Galapagos", "Pacific/Gambier", "Pacific/Guadalcanal", "Pacific/Guam", "Pacific/Honolulu", "Pacific/Kanton", "Pacific/Kiritimati", "Pacific/Kosrae", "Pacific/Kwajalein", "Pacific/Majuro", "Pacific/Marquesas", "Pacific/Midway", "Pacific/Nauru", "Pacific/Niue", "Pacific/Norfolk", "Pacific/Noumea", "Pacific/Pago_Pago", "Pacific/Palau", "Pacific/Pitcairn", "Pacific/Pohnpei", "Pacific/Port_Moresby", "Pacific/Rarotonga", "Pacific/Saipan", "Pacific/Tahiti", "Pacific/Tarawa", "Pacific/Tongatapu", "Pacific/Wake", "Pacific/Wallis"];
|
|
1919
|
+
var et = { time_zone: _ }, nr = et;
|
|
1950
1920
|
var ir = ["ADP", "AGP", "AI", "API", "ASCII", "CLI", "COM", "CSS", "DNS", "DRAM", "EXE", "FTP", "GB", "HDD", "HEX", "HTTP", "IB", "IP", "JBOD", "JSON", "OCR", "PCI", "PNG", "RAM", "RSS", "SAS", "SCSI", "SDD", "SMS", "SMTP", "SQL", "SSD", "SSL", "TCP", "THX", "TLS", "UDP", "USB", "UTF8", "VGA", "XML", "XSS"];
|
|
1951
1921
|
var rt = { abbreviation: ir }, or = rt;
|
|
1952
1922
|
var sr = { smiley: ["☠️", "☹️", "☺️", "❣️", "❤️", "❤️🔥", "❤️🩹", "👁️🗨️", "👹", "👺", "👻", "👽", "👾", "👿", "💀", "💋", "💌", "💓", "💔", "💕", "💖", "💗", "💘", "💙", "💚", "💛", "💜", "💝", "💞", "💟", "💢", "💣", "💤", "💥", "💦", "💨", "💩", "💫", "💬", "💭", "💯", "🕳️", "🖤", "🗨️", "🗯️", "😀", "😁", "😂", "😃", "😄", "😅", "😆", "😇", "😈", "😉", "😊", "😋", "😌", "😍", "😎", "😏", "😐", "😑", "😒", "😓", "😔", "😕", "😖", "😗", "😘", "😙", "😚", "😛", "😜", "😝", "😞", "😟", "😠", "😡", "😢", "😣", "😤", "😥", "😦", "😧", "😨", "😩", "😪", "😫", "😬", "😭", "😮", "😮💨", "😯", "😰", "😱", "😲", "😳", "😴", "😵", "😵💫", "😶", "😶🌫️", "😷", "😸", "😹", "😺", "😻", "😼", "😽", "😾", "😿", "🙀", "🙁", "🙂", "🙃", "🙄", "🙈", "🙉", "🙊", "🤍", "🤎", "🤐", "🤑", "🤒", "🤓", "🤔", "🤕", "🤖", "🤗", "🤠", "🤡", "🤢", "🤣", "🤤", "🤥", "🤧", "🤨", "🤩", "🤪", "🤫", "🤬", "🤭", "🤮", "🤯", "🥰", "🥱", "🥲", "🥳", "🥴", "🥵", "🥶", "🥸", "🥺", "🧐", "🧡"], body: ["☝🏻", "☝🏼", "☝🏽", "☝🏾", "☝🏿", "☝️", "✊", "✊🏻", "✊🏼", "✊🏽", "✊🏾", "✊🏿", "✋", "✋🏻", "✋🏼", "✋🏽", "✋🏾", "✋🏿", "✌🏻", "✌🏼", "✌🏽", "✌🏾", "✌🏿", "✌️", "✍🏻", "✍🏼", "✍🏽", "✍🏾", "✍🏿", "✍️", "👀", "👁️", "👂", "👂🏻", "👂🏼", "👂🏽", "👂🏾", "👂🏿", "👃", "👃🏻", "👃🏼", "👃🏽", "👃🏾", "👃🏿", "👄", "👅", "👆", "👆🏻", "👆🏼", "👆🏽", "👆🏾", "👆🏿", "👇", "👇🏻", "👇🏼", "👇🏽", "👇🏾", "👇🏿", "👈", "👈🏻", "👈🏼", "👈🏽", "👈🏾", "👈🏿", "👉", "👉🏻", "👉🏼", "👉🏽", "👉🏾", "👉🏿", "👊", "👊🏻", "👊🏼", "👊🏽", "👊🏾", "👊🏿", "👋", "👋🏻", "👋🏼", "👋🏽", "👋🏾", "👋🏿", "👌", "👌🏻", "👌🏼", "👌🏽", "👌🏾", "👌🏿", "👍", "👍🏻", "👍🏼", "👍🏽", "👍🏾", "👍🏿", "👎", "👎🏻", "👎🏼", "👎🏽", "👎🏾", "👎🏿", "👏", "👏🏻", "👏🏼", "👏🏽", "👏🏾", "👏🏿", "👐", "👐🏻", "👐🏼", "👐🏽", "👐🏾", "👐🏿", "💅", "💅🏻", "💅🏼", "💅🏽", "💅🏾", "💅🏿", "💪", "💪🏻", "💪🏼", "💪🏽", "💪🏾", "💪🏿", "🖐🏻", "🖐🏼", "🖐🏽", "🖐🏾", "🖐🏿", "🖐️", "🖕", "🖕🏻", "🖕🏼", "🖕🏽", "🖕🏾", "🖕🏿", "🖖", "🖖🏻", "🖖🏼", "🖖🏽", "🖖🏾", "🖖🏿", "🙌", "🙌🏻", "🙌🏼", "🙌🏽", "🙌🏾", "🙌🏿", "🙏", "🙏🏻", "🙏🏼", "🙏🏽", "🙏🏾", "🙏🏿", "🤌", "🤌🏻", "🤌🏼", "🤌🏽", "🤌🏾", "🤌🏿", "🤏", "🤏🏻", "🤏🏼", "🤏🏽", "🤏🏾", "🤏🏿", "🤘", "🤘🏻", "🤘🏼", "🤘🏽", "🤘🏾", "🤘🏿", "🤙", "🤙🏻", "🤙🏼", "🤙🏽", "🤙🏾", "🤙🏿", "🤚", "🤚🏻", "🤚🏼", "🤚🏽", "🤚🏾", "🤚🏿", "🤛", "🤛🏻", "🤛🏼", "🤛🏽", "🤛🏾", "🤛🏿", "🤜", "🤜🏻", "🤜🏼", "🤜🏽", "🤜🏾", "🤜🏿", "🤝", "🤞", "🤞🏻", "🤞🏼", "🤞🏽", "🤞🏾", "🤞🏿", "🤟", "🤟🏻", "🤟🏼", "🤟🏽", "🤟🏾", "🤟🏿", "🤲", "🤲🏻", "🤲🏼", "🤲🏽", "🤲🏾", "🤲🏿", "🤳", "🤳🏻", "🤳🏼", "🤳🏽", "🤳🏾", "🤳🏿", "🦴", "🦵", "🦵🏻", "🦵🏼", "🦵🏽", "🦵🏾", "🦵🏿", "🦶", "🦶🏻", "🦶🏼", "🦶🏽", "🦶🏾", "🦶🏿", "🦷", "🦻", "🦻🏻", "🦻🏼", "🦻🏽", "🦻🏾", "🦻🏿", "🦾", "🦿", "🧠", "🫀", "🫁"], person: ["🎅", "🎅🏻", "🎅🏼", "🎅🏽", "🎅🏾", "🎅🏿", "👦", "👦🏻", "👦🏼", "👦🏽", "👦🏾", "👦🏿", "👧", "👧🏻", "👧🏼", "👧🏽", "👧🏾", "👧🏿", "👨", "👨⚕️", "👨⚖️", "👨✈️", "👨🌾", "👨🍳", "👨🍼", "👨🎓", "👨🎤", "👨🎨", "👨🏫", "👨🏭", "👨💻", "👨💼", "👨🔧", "👨🔬", "👨🚀", "👨🚒", "👨🦰", "👨🦱", "👨🦲", "👨🦳", "👨🏻", "👨🏻⚕️", "👨🏻⚖️", "👨🏻✈️", "👨🏻🌾", "👨🏻🍳", "👨🏻🍼", "👨🏻🎓", "👨🏻🎤", "👨🏻🎨", "👨🏻🏫", "👨🏻🏭", "👨🏻💻", "👨🏻💼", "👨🏻🔧", "👨🏻🔬", "👨🏻🚀", "👨🏻🚒", "👨🏻🦰", "👨🏻🦱", "👨🏻🦲", "👨🏻🦳", "👨🏼", "👨🏼⚕️", "👨🏼⚖️", "👨🏼✈️", "👨🏼🌾", "👨🏼🍳", "👨🏼🍼", "👨🏼🎓", "👨🏼🎤", "👨🏼🎨", "👨🏼🏫", "👨🏼🏭", "👨🏼💻", "👨🏼💼", "👨🏼🔧", "👨🏼🔬", "👨🏼🚀", "👨🏼🚒", "👨🏼🦰", "👨🏼🦱", "👨🏼🦲", "👨🏼🦳", "👨🏽", "👨🏽⚕️", "👨🏽⚖️", "👨🏽✈️", "👨🏽🌾", "👨🏽🍳", "👨🏽🍼", "👨🏽🎓", "👨🏽🎤", "👨🏽🎨", "👨🏽🏫", "👨🏽🏭", "👨🏽💻", "👨🏽💼", "👨🏽🔧", "👨🏽🔬", "👨🏽🚀", "👨🏽🚒", "👨🏽🦰", "👨🏽🦱", "👨🏽🦲", "👨🏽🦳", "👨🏾", "👨🏾⚕️", "👨🏾⚖️", "👨🏾✈️", "👨🏾🌾", "👨🏾🍳", "👨🏾🍼", "👨🏾🎓", "👨🏾🎤", "👨🏾🎨", "👨🏾🏫", "👨🏾🏭", "👨🏾💻", "👨🏾💼", "👨🏾🔧", "👨🏾🔬", "👨🏾🚀", "👨🏾🚒", "👨🏾🦰", "👨🏾🦱", "👨🏾🦲", "👨🏾🦳", "👨🏿", "👨🏿⚕️", "👨🏿⚖️", "👨🏿✈️", "👨🏿🌾", "👨🏿🍳", "👨🏿🍼", "👨🏿🎓", "👨🏿🎤", "👨🏿🎨", "👨🏿🏫", "👨🏿🏭", "👨🏿💻", "👨🏿💼", "👨🏿🔧", "👨🏿🔬", "👨🏿🚀", "👨🏿🚒", "👨🏿🦰", "👨🏿🦱", "👨🏿🦲", "👨🏿🦳", "👩", "👩⚕️", "👩⚖️", "👩✈️", "👩🌾", "👩🍳", "👩🍼", "👩🎓", "👩🎤", "👩🎨", "👩🏫", "👩🏭", "👩💻", "👩💼", "👩🔧", "👩🔬", "👩🚀", "👩🚒", "👩🦰", "👩🦱", "👩🦲", "👩🦳", "👩🏻", "👩🏻⚕️", "👩🏻⚖️", "👩🏻✈️", "👩🏻🌾", "👩🏻🍳", "👩🏻🍼", "👩🏻🎓", "👩🏻🎤", "👩🏻🎨", "👩🏻🏫", "👩🏻🏭", "👩🏻💻", "👩🏻💼", "👩🏻🔧", "👩🏻🔬", "👩🏻🚀", "👩🏻🚒", "👩🏻🦰", "👩🏻🦱", "👩🏻🦲", "👩🏻🦳", "👩🏼", "👩🏼⚕️", "👩🏼⚖️", "👩🏼✈️", "👩🏼🌾", "👩🏼🍳", "👩🏼🍼", "👩🏼🎓", "👩🏼🎤", "👩🏼🎨", "👩🏼🏫", "👩🏼🏭", "👩🏼💻", "👩🏼💼", "👩🏼🔧", "👩🏼🔬", "👩🏼🚀", "👩🏼🚒", "👩🏼🦰", "👩🏼🦱", "👩🏼🦲", "👩🏼🦳", "👩🏽", "👩🏽⚕️", "👩🏽⚖️", "👩🏽✈️", "👩🏽🌾", "👩🏽🍳", "👩🏽🍼", "👩🏽🎓", "👩🏽🎤", "👩🏽🎨", "👩🏽🏫", "👩🏽🏭", "👩🏽💻", "👩🏽💼", "👩🏽🔧", "👩🏽🔬", "👩🏽🚀", "👩🏽🚒", "👩🏽🦰", "👩🏽🦱", "👩🏽🦲", "👩🏽🦳", "👩🏾", "👩🏾⚕️", "👩🏾⚖️", "👩🏾✈️", "👩🏾🌾", "👩🏾🍳", "👩🏾🍼", "👩🏾🎓", "👩🏾🎤", "👩🏾🎨", "👩🏾🏫", "👩🏾🏭", "👩🏾💻", "👩🏾💼", "👩🏾🔧", "👩🏾🔬", "👩🏾🚀", "👩🏾🚒", "👩🏾🦰", "👩🏾🦱", "👩🏾🦲", "👩🏾🦳", "👩🏿", "👩🏿⚕️", "👩🏿⚖️", "👩🏿✈️", "👩🏿🌾", "👩🏿🍳", "👩🏿🍼", "👩🏿🎓", "👩🏿🎤", "👩🏿🎨", "👩🏿🏫", "👩🏿🏭", "👩🏿💻", "👩🏿💼", "👩🏿🔧", "👩🏿🔬", "👩🏿🚀", "👩🏿🚒", "👩🏿🦰", "👩🏿🦱", "👩🏿🦲", "👩🏿🦳", "👮", "👮♀️", "👮♂️", "👮🏻", "👮🏻♀️", "👮🏻♂️", "👮🏼", "👮🏼♀️", "👮🏼♂️", "👮🏽", "👮🏽♀️", "👮🏽♂️", "👮🏾", "👮🏾♀️", "👮🏾♂️", "👮🏿", "👮🏿♀️", "👮🏿♂️", "👰", "👰♀️", "👰♂️", "👰🏻", "👰🏻♀️", "👰🏻♂️", "👰🏼", "👰🏼♀️", "👰🏼♂️", "👰🏽", "👰🏽♀️", "👰🏽♂️", "👰🏾", "👰🏾♀️", "👰🏾♂️", "👰🏿", "👰🏿♀️", "👰🏿♂️", "👱", "👱♀️", "👱♂️", "👱🏻", "👱🏻♀️", "👱🏻♂️", "👱🏼", "👱🏼♀️", "👱🏼♂️", "👱🏽", "👱🏽♀️", "👱🏽♂️", "👱🏾", "👱🏾♀️", "👱🏾♂️", "👱🏿", "👱🏿♀️", "👱🏿♂️", "👲", "👲🏻", "👲🏼", "👲🏽", "👲🏾", "👲🏿", "👳", "👳♀️", "👳♂️", "👳🏻", "👳🏻♀️", "👳🏻♂️", "👳🏼", "👳🏼♀️", "👳🏼♂️", "👳🏽", "👳🏽♀️", "👳🏽♂️", "👳🏾", "👳🏾♀️", "👳🏾♂️", "👳🏿", "👳🏿♀️", "👳🏿♂️", "👴", "👴🏻", "👴🏼", "👴🏽", "👴🏾", "👴🏿", "👵", "👵🏻", "👵🏼", "👵🏽", "👵🏾", "👵🏿", "👶", "👶🏻", "👶🏼", "👶🏽", "👶🏾", "👶🏿", "👷", "👷♀️", "👷♂️", "👷🏻", "👷🏻♀️", "👷🏻♂️", "👷🏼", "👷🏼♀️", "👷🏼♂️", "👷🏽", "👷🏽♀️", "👷🏽♂️", "👷🏾", "👷🏾♀️", "👷🏾♂️", "👷🏿", "👷🏿♀️", "👷🏿♂️", "👸", "👸🏻", "👸🏼", "👸🏽", "👸🏾", "👸🏿", "👼", "👼🏻", "👼🏼", "👼🏽", "👼🏾", "👼🏿", "💁", "💁♀️", "💁♂️", "💁🏻", "💁🏻♀️", "💁🏻♂️", "💁🏼", "💁🏼♀️", "💁🏼♂️", "💁🏽", "💁🏽♀️", "💁🏽♂️", "💁🏾", "💁🏾♀️", "💁🏾♂️", "💁🏿", "💁🏿♀️", "💁🏿♂️", "💂", "💂♀️", "💂♂️", "💂🏻", "💂🏻♀️", "💂🏻♂️", "💂🏼", "💂🏼♀️", "💂🏼♂️", "💂🏽", "💂🏽♀️", "💂🏽♂️", "💂🏾", "💂🏾♀️", "💂🏾♂️", "💂🏿", "💂🏿♀️", "💂🏿♂️", "💆", "💆♀️", "💆♂️", "💆🏻", "💆🏻♀️", "💆🏻♂️", "💆🏼", "💆🏼♀️", "💆🏼♂️", "💆🏽", "💆🏽♀️", "💆🏽♂️", "💆🏾", "💆🏾♀️", "💆🏾♂️", "💆🏿", "💆🏿♀️", "💆🏿♂️", "💇", "💇🏻", "💇🏼", "💇🏽", "🕵🏻", "🕵🏻♀️", "🕵🏻♂️", "🕵🏼", "🕵🏼♀️", "🕵🏼♂️", "🕵🏽", "🕵🏽♀️", "🕵🏽♂️", "🕵🏾", "🕵🏾♀️", "🕵🏾♂️", "🕵🏿", "🕵🏿♀️", "🕵🏿♂️", "🕵️", "🕵️♀️", "🕵️♂️", "🙅", "🙅♀️", "🙅♂️", "🙅🏻", "🙅🏻♀️", "🙅🏻♂️", "🙅🏼", "🙅🏼♀️", "🙅🏼♂️", "🙅🏽", "🙅🏽♀️", "🙅🏽♂️", "🙅🏾", "🙅🏾♀️", "🙅🏾♂️", "🙅🏿", "🙅🏿♀️", "🙅🏿♂️", "🙆", "🙆♀️", "🙆♂️", "🙆🏻", "🙆🏻♀️", "🙆🏻♂️", "🙆🏼", "🙆🏼♀️", "🙆🏼♂️", "🙆🏽", "🙆🏽♀️", "🙆🏽♂️", "🙆🏾", "🙆🏾♀️", "🙆🏾♂️", "🙆🏿", "🙆🏿♀️", "🙆🏿♂️", "🙇", "🙇♀️", "🙇♂️", "🙇🏻", "🙇🏻♀️", "🙇🏻♂️", "🙇🏼", "🙇🏼♀️", "🙇🏼♂️", "🙇🏽", "🙇🏽♀️", "🙇🏽♂️", "🙇🏾", "🙇🏾♀️", "🙇🏾♂️", "🙇🏿", "🙇🏿♀️", "🙇🏿♂️", "🙋", "🙋♀️", "🙋♂️", "🙋🏻", "🙋🏻♀️", "🙋🏻♂️", "🙋🏼", "🙋🏼♀️", "🙋🏼♂️", "🙋🏽", "🙋🏽♀️", "🙋🏽♂️", "🙋🏾", "🙋🏾♀️", "🙋🏾♂️", "🙋🏿", "🙋🏿♀️", "🙋🏿♂️", "🙍", "🙍♀️", "🙍♂️", "🙍🏻", "🙍🏻♀️", "🙍🏻♂️", "🙍🏼", "🙍🏼♀️", "🙍🏼♂️", "🙍🏽", "🙍🏽♀️", "🙍🏽♂️", "🙍🏾", "🙍🏾♀️", "🙍🏾♂️", "🙍🏿", "🙍🏿♀️", "🙍🏿♂️", "🙎", "🙎♀️", "🙎♂️", "🙎🏻", "🙎🏻♀️", "🙎🏻♂️", "🙎🏼", "🙎🏼♀️", "🙎🏼♂️", "🙎🏽", "🙎🏽♀️", "🙎🏽♂️", "🙎🏾", "🙎🏾♀️", "🙎🏾♂️", "🙎🏿", "🙎🏿♀️", "🙎🏿♂️", "🤦", "🤦♀️", "🤦♂️", "🤦🏻", "🤦🏻♀️", "🤦🏻♂️", "🤦🏼", "🤦🏼♀️", "🤦🏼♂️", "🤦🏽", "🤦🏽♀️", "🤦🏽♂️", "🤦🏾", "🤦🏾♀️", "🤦🏾♂️", "🤦🏿", "🤦🏿♀️", "🤦🏿♂️", "🤰", "🤰🏻", "🤰🏼", "🤰🏽", "🤰🏾", "🤰🏿", "🤱", "🤱🏻", "🤱🏼", "🤱🏽", "🤱🏾", "🤱🏿", "🤴", "🤴🏻", "🤴🏼", "🤴🏽", "🤴🏾", "🤴🏿", "🤵", "🤵♀️", "🤵♂️", "🤵🏻", "🤵🏻♀️", "🤵🏻♂️", "🤵🏼", "🤵🏼♀️", "🤵🏼♂️", "🤵🏽", "🤵🏽♀️", "🤵🏽♂️", "🤵🏾", "🤵🏾♀️", "🤵🏾♂️", "🤵🏿", "🤵🏿♀️", "🤵🏿♂️", "🤶", "🤶🏻", "🤶🏼", "🤶🏽", "🤶🏾", "🤶🏿", "🤷", "🤷♀️", "🤷♂️", "🤷🏻", "🤷🏻♀️", "🤷🏻♂️", "🤷🏼", "🤷🏼♀️", "🤷🏼♂️", "🤷🏽", "🤷🏽♀️", "🤷🏽♂️", "🤷🏾", "🤷🏾♀️", "🤷🏾♂️", "🤷🏿", "🤷🏿♀️", "🤷🏿♂️", "🥷", "🥷🏻", "🥷🏼", "🥷🏽", "🥷🏾", "🥷🏿", "🦸", "🦸♀️", "🦸♂️", "🦸🏻", "🦸🏻♀️", "🦸🏻♂️", "🦸🏼", "🦸🏼♀️", "🦸🏼♂️", "🦸🏽", "🦸🏽♀️", "🦸🏽♂️", "🦸🏾", "🦸🏾♀️", "🦸🏾♂️", "🦸🏿", "🦸🏿♀️", "🦸🏿♂️", "🦹", "🦹♀️", "🦹♂️", "🦹🏻", "🦹🏻♀️", "🦹🏻♂️", "🦹🏼", "🦹🏼♀️", "🦹🏼♂️", "🦹🏽", "🦹🏽♀️", "🦹🏽♂️", "🦹🏾", "🦹🏾♀️", "🦹🏾♂️", "🦹🏿", "🦹🏿♀️", "🦹🏿♂️", "🧏", "🧏♀️", "🧏♂️", "🧏🏻", "🧏🏻♀️", "🧏🏻♂️", "🧏🏼", "🧏🏼♀️", "🧏🏼♂️", "🧏🏽", "🧏🏽♀️", "🧏🏽♂️", "🧏🏾", "🧏🏾♀️", "🧏🏾♂️", "🧏🏿", "🧏🏿♀️", "🧏🏿♂️", "🧑", "🧑⚕️", "🧑⚖️", "🧑✈️", "🧑🌾", "🧑🍳", "🧑🍼", "🧑🎄", "🧑🎓", "🧑🎤", "🧑🎨", "🧑🏫", "🧑🏭", "🧑💻", "🧑💼", "🧑🔧", "🧑🔬", "🧑🚀", "🧑🚒", "🧑🦰", "🧑🦱", "🧑🦲", "🧑🦳", "🧑🏻", "🧑🏻⚕️", "🧑🏻⚖️", "🧑🏻✈️", "🧑🏻🌾", "🧑🏻🍳", "🧑🏻🍼", "🧑🏻🎄", "🧑🏻🎓", "🧑🏻🎤", "🧑🏻🎨", "🧑🏻🏫", "🧑🏻🏭", "🧑🏻💻", "🧑🏻💼", "🧑🏻🔧", "🧑🏻🔬", "🧑🏻🚀", "🧑🏻🚒", "🧑🏻🦰", "🧑🏻🦱", "🧑🏻🦲", "🧑🏻🦳", "🧑🏼", "🧑🏼⚕️", "🧑🏼⚖️", "🧑🏼✈️", "🧑🏼🌾", "🧑🏼🍳", "🧑🏼🍼", "🧑🏼🎄", "🧑🏼🎓", "🧑🏼🎤", "🧑🏼🎨", "🧑🏼🏫", "🧑🏼🏭", "🧑🏼💻", "🧑🏼💼", "🧑🏼🔧", "🧑🏼🔬", "🧑🏼🚀", "🧑🏼🚒", "🧑🏼🦰", "🧑🏼🦱", "🧑🏼🦲", "🧑🏼🦳", "🧑🏽", "🧑🏽⚕️", "🧑🏽⚖️", "🧑🏽✈️", "🧑🏽🌾", "🧑🏽🍳", "🧑🏽🍼", "🧑🏽🎄", "🧑🏽🎓", "🧑🏽🎤", "🧑🏽🎨", "🧑🏽🏫", "🧑🏽🏭", "🧑🏽💻", "🧑🏽💼", "🧑🏽🔧", "🧑🏽🔬", "🧑🏽🚀", "🧑🏽🚒", "🧑🏽🦰", "🧑🏽🦱", "🧑🏽🦲", "🧑🏽🦳", "🧑🏾", "🧑🏾⚕️", "🧑🏾⚖️", "🧑🏾✈️", "🧑🏾🌾", "🧑🏾🍳", "🧑🏾🍼", "🧑🏾🎄", "🧑🏾🎓", "🧑🏾🎤", "🧑🏾🎨", "🧑🏾🏫", "🧑🏾🏭", "🧑🏾💻", "🧑🏾💼", "🧑🏾🔧", "🧑🏾🔬", "🧑🏾🚀", "🧑🏾🚒", "🧑🏾🦰", "🧑🏾🦱", "🧑🏾🦲", "🧑🏾🦳", "🧑🏿", "🧑🏿⚕️", "🧑🏿⚖️", "🧑🏿✈️", "🧑🏿🌾", "🧑🏿🍳", "🧑🏿🍼", "🧑🏿🎄", "🧑🏿🎓", "🧑🏿🎤", "🧑🏿🎨", "🧑🏿🏫", "🧑🏿🏭", "🧑🏿💻", "🧑🏿💼", "🧑🏿🔧", "🧑🏿🔬", "🧑🏿🚀", "🧑🏿🚒", "🧑🏿🦰", "🧑🏿🦱", "🧑🏿🦲", "🧑🏿🦳", "🧒", "🧒🏻", "🧒🏼", "🧒🏽", "🧒🏾", "🧒🏿", "🧓", "🧓🏻", "🧓🏼", "🧓🏽", "🧓🏾", "🧓🏿", "🧔", "🧔♀️", "🧔♂️", "🧔🏻", "🧔🏻♀️", "🧔🏻♂️", "🧔🏼", "🧔🏼♀️", "🧔🏼♂️", "🧔🏽", "🧔🏽♀️", "🧔🏽♂️", "🧔🏾", "🧔🏾♀️", "🧔🏾♂️", "🧔🏿", "🧔🏿♀️", "🧔🏿♂️", "🧕", "🧕🏻", "🧕🏼", "🧕🏽", "🧕🏾", "🧕🏿", "🧙", "🧙♀️", "🧙♂️", "🧙🏻", "🧙🏻♀️", "🧙🏻♂️", "🧙🏼", "🧙🏼♀️", "🧙🏼♂️", "🧙🏽", "🧙🏽♀️", "🧙🏽♂️", "🧙🏾", "🧙🏾♀️", "🧙🏾♂️", "🧙🏿", "🧙🏿♀️", "🧙🏿♂️", "🧚", "🧚♀️", "🧚♂️", "🧚🏻", "🧚🏻♀️", "🧚🏻♂️", "🧚🏼", "🧚🏼♀️", "🧚🏼♂️", "🧚🏽", "🧚🏽♀️", "🧚🏽♂️", "🧚🏾", "🧚🏾♀️", "🧚🏾♂️", "🧚🏿", "🧚🏿♀️", "🧚🏿♂️", "🧛", "🧛♀️", "🧛♂️", "🧛🏻", "🧛🏻♀️", "🧛🏻♂️", "🧛🏼", "🧛🏼♀️", "🧛🏼♂️", "🧛🏽", "🧛🏽♀️", "🧛🏽♂️", "🧛🏾", "🧛🏾♀️", "🧛🏾♂️", "🧛🏿", "🧛🏿♀️", "🧛🏿♂️", "🧜", "🧜♀️", "🧜♂️", "🧜🏻", "🧜🏻♀️", "🧜🏻♂️", "🧜🏼", "🧜🏼♀️", "🧜🏼♂️", "🧜🏽", "🧜🏽♀️", "🧜🏽♂️", "🧜🏾", "🧜🏾♀️", "🧜🏾♂️", "🧜🏿", "🧜🏿♀️", "🧜🏿♂️", "🧝", "🧝♀️", "🧝♂️", "🧝🏻", "🧝🏻♀️", "🧝🏻♂️", "🧝🏼", "🧝🏼♀️", "🧝🏼♂️", "🧝🏽", "🧝🏽♀️", "🧝🏽♂️", "🧝🏾", "🧝🏾♀️", "🧝🏾♂️", "🧝🏿", "🧝🏿♀️", "🧝🏿♂️", "🧞", "🧞♀️", "🧞♂️", "🧟", "🧟♀️", "🧟♂️"], nature: ["☘️", "🌱", "🌲", "🌳", "🌴", "🌵", "🌷", "🌸", "🌹", "🌺", "🌻", "🌼", "🌾", "🌿", "🍀", "🍁", "🍂", "🍃", "🏵️", "🐀", "🐁", "🐂", "🐃", "🐄", "🐅", "🐆", "🐇", "🐈", "🐈⬛", "🐉", "🐊", "🐋", "🐌", "🐍", "🐎", "🐏", "🐐", "🐑", "🐒", "🐓", "🐔", "🐕", "🐕🦺", "🐖", "🐗", "🐘", "🐙", "🐚", "🐛", "🐜", "🐝", "🐞", "🐟", "🐠", "🐡", "🐢", "🐣", "🐤", "🐥", "🐦", "🐧", "🐨", "🐩", "🐪", "🐫", "🐬", "🐭", "🐮", "🐯", "🐰", "🐱", "🐲", "🐳", "🐴", "🐵", "🐶", "🐷", "🐸", "🐹", "🐺", "🐻", "🐻❄️", "🐼", "🐽", "🐾", "🐿️", "💐", "💮", "🕊️", "🕷️", "🕸️", "🥀", "🦁", "🦂", "🦃", "🦄", "🦅", "🦆", "🦇", "🦈", "🦉", "🦊", "🦋", "🦌", "🦍", "🦎", "🦏", "🦒", "🦓", "🦔", "🦕", "🦖", "🦗", "🦘", "🦙", "🦚", "🦛", "🦜", "🦝", "🦟", "🦠", "🦡", "🦢", "🦣", "🦤", "🦥", "🦦", "🦧", "🦨", "🦩", "🦫", "🦬", "🦭", "🦮", "🪰", "🪱", "🪲", "🪳", "🪴", "🪶"], food: ["☕", "🌭", "🌮", "🌯", "🌰", "🌶️", "🌽", "🍄", "🍅", "🍆", "🍇", "🍈", "🍉", "🍊", "🍋", "🍌", "🍍", "🍎", "🍏", "🍐", "🍑", "🍒", "🍓", "🍔", "🍕", "🍖", "🍗", "🍘", "🍙", "🍚", "🍛", "🍜", "🍝", "🍞", "🍟", "🍠", "🍡", "🍢", "🍣", "🍤", "🍥", "🍦", "🍧", "🍨", "🍩", "🍪", "🍫", "🍬", "🍭", "🍮", "🍯", "🍰", "🍱", "🍲", "🍳", "🍴", "🍵", "🍶", "🍷", "🍸", "🍹", "🍺", "🍻", "🍼", "🍽️", "🍾", "🍿", "🎂", "🏺", "🔪", "🥂", "🥃", "🥄", "🥐", "🥑", "🥒", "🥓", "🥔", "🥕", "🥖", "🥗", "🥘", "🥙", "🥚", "🥛", "🥜", "🥝", "🥞", "🥟", "🥠", "🥡", "🥢", "🥣", "🥤", "🥥", "🥦", "🥧", "🥨", "🥩", "🥪", "🥫", "🥬", "🥭", "🥮", "🥯", "🦀", "🦐", "🦑", "🦞", "🦪", "🧀", "🧁", "🧂", "🧃", "🧄", "🧅", "🧆", "🧇", "🧈", "🧉", "🧊", "🧋", "🫐", "🫑", "🫒", "🫓", "🫔", "🫕", "🫖"], travel: ["⌚", "⌛", "⏰", "⏱️", "⏲️", "⏳", "☀️", "☁️", "☂️", "☃️", "☄️", "☔", "♨️", "⚓", "⚡", "⛄", "⛅", "⛈️", "⛩️", "⛪", "⛰️", "⛱️", "⛲", "⛴️", "⛵", "⛺", "⛽", "✈️", "❄️", "⭐", "🌀", "🌁", "🌂", "🌃", "🌄", "🌅", "🌆", "🌇", "🌈", "🌉", "🌊", "🌋", "🌌", "🌍", "🌎", "🌏", "🌐", "🌑", "🌒", "🌓", "🌔", "🌕", "🌖", "🌗", "🌘", "🌙", "🌚", "🌛", "🌜", "🌝", "🌞", "🌟", "🌠", "🌡️", "🌤️", "🌥️", "🌦️", "🌧️", "🌨️", "🌩️", "🌪️", "🌫️", "🌬️", "🎠", "🎡", "🎢", "🎪", "🏍️", "🏎️", "🏔️", "🏕️", "🏖️", "🏗️", "🏘️", "🏙️", "🏚️", "🏛️", "🏜️", "🏝️", "🏞️", "🏟️", "🏠", "🏡", "🏢", "🏣", "🏤", "🏥", "🏦", "🏨", "🏩", "🏪", "🏫", "🏬", "🏭", "🏯", "🏰", "💈", "💒", "💧", "💺", "🔥", "🕋", "🕌", "🕍", "🕐", "🕑", "🕒", "🕓", "🕔", "🕕", "🕖", "🕗", "🕘", "🕙", "🕚", "🕛", "🕜", "🕝", "🕞", "🕟", "🕠", "🕡", "🕢", "🕣", "🕤", "🕥", "🕦", "🕧", "🕰️", "🗺️", "🗻", "🗼", "🗽", "🗾", "🚀", "🚁", "🚂", "🚃", "🚄", "🚅", "🚆", "🚇", "🚈", "🚉", "🚊", "🚋", "🚌", "🚍", "🚎", "🚏", "🚐", "🚑", "🚒", "🚓", "🚔", "🚕", "🚖", "🚗", "🚘", "🚙", "🚚", "🚛", "🚜", "🚝", "🚞", "🚟", "🚠", "🚡", "🚢", "🚤", "🚥", "🚦", "🚧", "🚨", "🚲", "🛎️", "🛑", "🛕", "🛖", "🛢️", "🛣️", "🛤️", "🛥️", "🛩️", "🛫", "🛬", "🛰️", "🛳️", "🛴", "🛵", "🛶", "🛸", "🛹", "🛺", "🛻", "🛼", "🦼", "🦽", "🧭", "🧱", "🧳", "🪂", "🪐", "🪨", "🪵"], activity: ["♟️", "♠️", "♣️", "♥️", "♦️", "⚽", "⚾", "⛳", "⛸️", "✨", "🀄", "🃏", "🎀", "🎁", "🎃", "🎄", "🎆", "🎇", "🎈", "🎉", "🎊", "🎋", "🎍", "🎎", "🎏", "🎐", "🎑", "🎖️", "🎗️", "🎟️", "🎣", "🎨", "🎫", "🎭", "🎮", "🎯", "🎰", "🎱", "🎲", "🎳", "🎴", "🎽", "🎾", "🎿", "🏀", "🏅", "🏆", "🏈", "🏉", "🏏", "🏐", "🏑", "🏒", "🏓", "🏸", "🔮", "🕹️", "🖼️", "🛷", "🤿", "🥅", "🥇", "🥈", "🥉", "🥊", "🥋", "🥌", "🥍", "🥎", "🥏", "🧧", "🧨", "🧩", "🧵", "🧶", "🧸", "🧿", "🪀", "🪁", "🪄", "🪅", "🪆", "🪡", "🪢"], object: ["⌨️", "☎️", "⚒️", "⚔️", "⚖️", "⚗️", "⚙️", "⚰️", "⚱️", "⛏️", "⛑️", "⛓️", "✂️", "✉️", "✏️", "✒️", "🎒", "🎓", "🎙️", "🎚️", "🎛️", "🎞️", "🎤", "🎥", "🎧", "🎩", "🎬", "🎵", "🎶", "🎷", "🎸", "🎹", "🎺", "🎻", "🎼", "🏮", "🏷️", "🏹", "👑", "👒", "👓", "👔", "👕", "👖", "👗", "👘", "👙", "👚", "👛", "👜", "👝", "👞", "👟", "👠", "👡", "👢", "💄", "💉", "💊", "💍", "💎", "💡", "💰", "💳", "💴", "💵", "💶", "💷", "💸", "💹", "💻", "💼", "💽", "💾", "💿", "📀", "📁", "📂", "📃", "📄", "📅", "📆", "📇", "📈", "📉", "📊", "📋", "📌", "📍", "📎", "📏", "📐", "📑", "📒", "📓", "📔", "📕", "📖", "📗", "📘", "📙", "📚", "📜", "📝", "📞", "📟", "📠", "📡", "📢", "📣", "📤", "📥", "📦", "📧", "📨", "📩", "📪", "📫", "📬", "📭", "📮", "📯", "📰", "📱", "📲", "📷", "📸", "📹", "📺", "📻", "📼", "📽️", "📿", "🔇", "🔈", "🔉", "🔊", "🔋", "🔌", "🔍", "🔎", "🔏", "🔐", "🔑", "🔒", "🔓", "🔔", "🔕", "🔖", "🔗", "🔦", "🔧", "🔨", "🔩", "🔫", "🔬", "🔭", "🕯️", "🕶️", "🖇️", "🖊️", "🖋️", "🖌️", "🖍️", "🖥️", "🖨️", "🖱️", "🖲️", "🗂️", "🗃️", "🗄️", "🗑️", "🗒️", "🗓️", "🗜️", "🗝️", "🗞️", "🗡️", "🗳️", "🗿", "🚪", "🚬", "🚽", "🚿", "🛁", "🛋️", "🛍️", "🛏️", "🛒", "🛗", "🛠️", "🛡️", "🥁", "🥻", "🥼", "🥽", "🥾", "🥿", "🦯", "🦺", "🧢", "🧣", "🧤", "🧥", "🧦", "🧪", "🧫", "🧬", "🧮", "🧯", "🧰", "🧲", "🧴", "🧷", "🧹", "🧺", "🧻", "🧼", "🧽", "🧾", "🩰", "🩱", "🩲", "🩳", "🩴", "🩸", "🩹", "🩺", "🪃", "🪑", "🪒", "🪓", "🪔", "🪕", "🪖", "🪗", "🪘", "🪙", "🪚", "🪛", "🪜", "🪝", "🪞", "🪟", "🪠", "🪣", "🪤", "🪥", "🪦", "🪧"], symbol: ["#️⃣", "*️⃣", "0️⃣", "1️⃣", "2️⃣", "3️⃣", "4️⃣", "5️⃣", "6️⃣", "7️⃣", "8️⃣", "9️⃣", "©️", "®️", "‼️", "⁉️", "™️", "ℹ️", "↔️", "↕️", "↖️", "↗️", "↘️", "↙️", "↩️", "↪️", "⏏️", "⏩", "⏪", "⏫", "⏬", "⏭️", "⏮️", "⏯️", "⏸️", "⏹️", "⏺️", "Ⓜ️", "▪️", "▫️", "▶️", "◀️", "◻️", "◼️", "◽", "◾", "☑️", "☢️", "☣️", "☦️", "☪️", "☮️", "☯️", "☸️", "♀️", "♂️", "♈", "♉", "♊", "♋", "♌", "♍", "♎", "♏", "♐", "♑", "♒", "♓", "♻️", "♾️", "♿", "⚕️", "⚛️", "⚜️", "⚠️", "⚧️", "⚪", "⚫", "⛎", "⛔", "✅", "✔️", "✖️", "✝️", "✡️", "✳️", "✴️", "❇️", "❌", "❎", "❓", "❔", "❕", "❗", "➕", "➖", "➗", "➡️", "➰", "➿", "⤴️", "⤵️", "⬅️", "⬆️", "⬇️", "⬛", "⬜", "⭕", "〰️", "〽️", "㊗️", "㊙️", "🅰️", "🅱️", "🅾️", "🅿️", "🆎", "🆑", "🆒", "🆓", "🆔", "🆕", "🆖", "🆗", "🆘", "🆙", "🆚", "🈁", "🈂️", "🈚", "🈯", "🈲", "🈳", "🈴", "🈵", "🈶", "🈷️", "🈸", "🈹", "🈺", "🉐", "🉑", "🎦", "🏧", "💠", "💱", "💲", "📛", "📳", "📴", "📵", "📶", "🔀", "🔁", "🔂", "🔃", "🔄", "🔅", "🔆", "🔘", "🔙", "🔚", "🔛", "🔜", "🔝", "🔞", "🔟", "🔠", "🔡", "🔢", "🔣", "🔤", "🔯", "🔰", "🔱", "🔲", "🔳", "🔴", "🔵", "🔶", "🔷", "🔸", "🔹", "🔺", "🔻", "🔼", "🔽", "🕉️", "🕎", "🚫", "🚭", "🚮", "🚯", "🚰", "🚱", "🚳", "🚷", "🚸", "🚹", "🚺", "🚻", "🚼", "🚾", "🛂", "🛃", "🛄", "🛅", "🛐", "🟠", "🟡", "🟢", "🟣", "🟤", "🟥", "🟦", "🟧", "🟨", "🟩", "🟪", "🟫"], flag: ["🇦🇨", "🇦🇩", "🇦🇪", "🇦🇫", "🇦🇬", "🇦🇮", "🇦🇱", "🇦🇲", "🇦🇴", "🇦🇶", "🇦🇷", "🇦🇸", "🇦🇹", "🇦🇺", "🇦🇼", "🇦🇽", "🇦🇿", "🇧🇦", "🇧🇧", "🇧🇩", "🇧🇪", "🇧🇫", "🇧🇬", "🇧🇭", "🇧🇮", "🇧🇯", "🇧🇱", "🇧🇲", "🇧🇳", "🇧🇴", "🇧🇶", "🇧🇷", "🇧🇸", "🇧🇹", "🇧🇻", "🇧🇼", "🇧🇾", "🇧🇿", "🇨🇦", "🇨🇨", "🇨🇩", "🇨🇫", "🇨🇬", "🇨🇭", "🇨🇮", "🇨🇰", "🇨🇱", "🇨🇲", "🇨🇳", "🇨🇴", "🇨🇵", "🇨🇷", "🇨🇺", "🇨🇻", "🇨🇼", "🇨🇽", "🇨🇾", "🇨🇿", "🇩🇪", "🇩🇬", "🇩🇯", "🇩🇰", "🇩🇲", "🇩🇴", "🇩🇿", "🇪🇦", "🇪🇨", "🇪🇪", "🇪🇬", "🇪🇭", "🇪🇷", "🇪🇸", "🇪🇹", "🇪🇺", "🇫🇮", "🇫🇯", "🇫🇰", "🇫🇲", "🇫🇴", "🇫🇷", "🇬🇦", "🇬🇧", "🇬🇩", "🇬🇪", "🇬🇫", "🇬🇬", "🇬🇭", "🇬🇮", "🇬🇱", "🇬🇲", "🇬🇳", "🇬🇵", "🇬🇶", "🇬🇷", "🇬🇸", "🇬🇹", "🇬🇺", "🇬🇼", "🇬🇾", "🇭🇰", "🇭🇲", "🇭🇳", "🇭🇷", "🇭🇹", "🇭🇺", "🇮🇨", "🇮🇩", "🇮🇪", "🇮🇱", "🇮🇲", "🇮🇳", "🇮🇴", "🇮🇶", "🇮🇷", "🇮🇸", "🇮🇹", "🇯🇪", "🇯🇲", "🇯🇴", "🇯🇵", "🇰🇪", "🇰🇬", "🇰🇭", "🇰🇮", "🇰🇲", "🇰🇳", "🇰🇵", "🇰🇷", "🇰🇼", "🇰🇾", "🇰🇿", "🇱🇦", "🇱🇧", "🇱🇨", "🇱🇮", "🇱🇰", "🇱🇷", "🇱🇸", "🇱🇹", "🇱🇺", "🇱🇻", "🇱🇾", "🇲🇦", "🇲🇨", "🇲🇩", "🇲🇪", "🇲🇫", "🇲🇬", "🇲🇭", "🇲🇰", "🇲🇱", "🇲🇲", "🇲🇳", "🇲🇴", "🇲🇵", "🇲🇶", "🇲🇷", "🇲🇸", "🇲🇹", "🇲🇺", "🇲🇻", "🇲🇼", "🇲🇽", "🇲🇾", "🇲🇿", "🇳🇦", "🇳🇨", "🇳🇪", "🇳🇫", "🇳🇬", "🇳🇮", "🇳🇱", "🇳🇴", "🇳🇵", "🇳🇷", "🇳🇺", "🇳🇿", "🇴🇲", "🇵🇦", "🇵🇪", "🇵🇫", "🇵🇬", "🇵🇭", "🇵🇰", "🇵🇱", "🇵🇲", "🇵🇳", "🇵🇷", "🇵🇸", "🇵🇹", "🇵🇼", "🇵🇾", "🇶🇦", "🇷🇪", "🇷🇴", "🇷🇸", "🇷🇺", "🇷🇼", "🇸🇦", "🇸🇧", "🇸🇨", "🇸🇩", "🇸🇪", "🇸🇬", "🇸🇭", "🇸🇮", "🇸🇯", "🇸🇰", "🇸🇱", "🇸🇲", "🇸🇳", "🇸🇴", "🇸🇷", "🇸🇸", "🇸🇹", "🇸🇻", "🇸🇽", "🇸🇾", "🇸🇿", "🇹🇦", "🇹🇨", "🇹🇩", "🇹🇫", "🇹🇬", "🇹🇭", "🇹🇯", "🇹🇰", "🇹🇱", "🇹🇲", "🇹🇳", "🇹🇴", "🇹🇷", "🇹🇹", "🇹🇻", "🇹🇼", "🇹🇿", "🇺🇦", "🇺🇬", "🇺🇲", "🇺🇳", "🇺🇸", "🇺🇾", "🇺🇿", "🇻🇦", "🇻🇨", "🇻🇪", "🇻🇬", "🇻🇮", "🇻🇳", "🇻🇺", "🇼🇫", "🇼🇸", "🇽🇰", "🇾🇪", "🇾🇹", "🇿🇦", "🇿🇲", "🇿🇼", "🎌", "🏁", "🏳️", "🏳️⚧️", "🏳️🌈", "🏴", "🏴☠️", "🚩"] };
|
|
@@ -1955,22 +1925,18 @@ var lr = ["ES256", "ES384", "ES512", "HS256", "HS384", "HS512", "PS256", "PS384"
|
|
|
1955
1925
|
var mr = ["FakerBot/{{system.semver}}", "Googlebot/2.1 (+http://www.google.com/bot.html)", 'Mozilla/5.0 (Linux; Android {{number.int({"min":5,"max":13})}}; {{helpers.arrayElement(["SM-G998U","SM-G998B","SM-G998N","SM-G998P","SM-T800"])}}) AppleWebKit/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}} (KHTML, like Gecko) Chrome/{{number.int({"min":55,"max":131})}}.{{system.semver}} Mobile Safari/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}}', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:{{number.int({"min":75, "max":133})}}.0) Gecko/20100101 Firefox/{{number.int({"min":75, "max":133})}}.0', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}}.{{number.int({"min":0,"max":99})}} (KHTML, like Gecko) Version/16.1 Safari/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}}.{{number.int({"min":0,"max":99})}}', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_15_7) AppleWebKit/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}}.{{number.int({"min":0,"max":99})}} (KHTML, like Gecko) Chrome/{{number.int({"min":55,"max":131})}}.{{system.semver}} Safari/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}}.{{number.int({"min":0,"max":99})}}', 'Mozilla/5.0 (Windows NT {{helpers.arrayElement(["5.1","5.2","6.0","6.1","6.2","6.3","10.0"])}}; Win64; x64) AppleWebKit/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}} (KHTML, like Gecko) Chrome/{{number.int({"min":55,"max":131})}}.{{system.semver}} Safari/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}} Edg/{{number.int({"min":110,"max":131})}}.{{system.semver}}', 'Mozilla/5.0 (X11; Linux x86_64; rv:{{number.int({"min":75,"max":133})}}.0) Gecko/20100101 Firefox/{{number.int({"min":75,"max":133})}}.0', 'Mozilla/5.0 (compatible; MSIE {{number.int({"min":6,"max":10})}}.0; Windows NT {{helpers.arrayElement(["5.1","5.2","6.0","6.1","6.2","6.3","10.0"])}}; Trident/{{number.int({"min":4,"max":7})}}.0)', 'Mozilla/5.0 (iPhone; CPU iPhone OS {{number.int({"min":10,"max":18})}}_{{number.int({"min":0,"max":4})}} like Mac OS X) AppleWebKit/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}}.{{number.int({"min":0,"max":99})}} (KHTML, like Gecko) Version/{{number.int({"min":10,"max":18})}}_{{number.int({"min":0,"max":4})}} Mobile/15E148 Safari/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}}'];
|
|
1956
1926
|
var tt = { emoji: sr, http_status_code: cr, jwt_algorithm: lr, user_agent_pattern: mr }, ur = tt;
|
|
1957
1927
|
var pr = [{ alpha2: "AD", alpha3: "AND", numeric: "020" }, { alpha2: "AE", alpha3: "ARE", numeric: "784" }, { alpha2: "AF", alpha3: "AFG", numeric: "004" }, { alpha2: "AG", alpha3: "ATG", numeric: "028" }, { alpha2: "AI", alpha3: "AIA", numeric: "660" }, { alpha2: "AL", alpha3: "ALB", numeric: "008" }, { alpha2: "AM", alpha3: "ARM", numeric: "051" }, { alpha2: "AO", alpha3: "AGO", numeric: "024" }, { alpha2: "AQ", alpha3: "ATA", numeric: "010" }, { alpha2: "AR", alpha3: "ARG", numeric: "032" }, { alpha2: "AS", alpha3: "ASM", numeric: "016" }, { alpha2: "AT", alpha3: "AUT", numeric: "040" }, { alpha2: "AU", alpha3: "AUS", numeric: "036" }, { alpha2: "AW", alpha3: "ABW", numeric: "533" }, { alpha2: "AX", alpha3: "ALA", numeric: "248" }, { alpha2: "AZ", alpha3: "AZE", numeric: "031" }, { alpha2: "BA", alpha3: "BIH", numeric: "070" }, { alpha2: "BB", alpha3: "BRB", numeric: "052" }, { alpha2: "BD", alpha3: "BGD", numeric: "050" }, { alpha2: "BE", alpha3: "BEL", numeric: "056" }, { alpha2: "BF", alpha3: "BFA", numeric: "854" }, { alpha2: "BG", alpha3: "BGR", numeric: "100" }, { alpha2: "BH", alpha3: "BHR", numeric: "048" }, { alpha2: "BI", alpha3: "BDI", numeric: "108" }, { alpha2: "BJ", alpha3: "BEN", numeric: "204" }, { alpha2: "BL", alpha3: "BLM", numeric: "652" }, { alpha2: "BM", alpha3: "BMU", numeric: "060" }, { alpha2: "BN", alpha3: "BRN", numeric: "096" }, { alpha2: "BO", alpha3: "BOL", numeric: "068" }, { alpha2: "BQ", alpha3: "BES", numeric: "535" }, { alpha2: "BR", alpha3: "BRA", numeric: "076" }, { alpha2: "BS", alpha3: "BHS", numeric: "044" }, { alpha2: "BT", alpha3: "BTN", numeric: "064" }, { alpha2: "BV", alpha3: "BVT", numeric: "074" }, { alpha2: "BW", alpha3: "BWA", numeric: "072" }, { alpha2: "BY", alpha3: "BLR", numeric: "112" }, { alpha2: "BZ", alpha3: "BLZ", numeric: "084" }, { alpha2: "CA", alpha3: "CAN", numeric: "124" }, { alpha2: "CC", alpha3: "CCK", numeric: "166" }, { alpha2: "CD", alpha3: "COD", numeric: "180" }, { alpha2: "CF", alpha3: "CAF", numeric: "140" }, { alpha2: "CG", alpha3: "COG", numeric: "178" }, { alpha2: "CH", alpha3: "CHE", numeric: "756" }, { alpha2: "CI", alpha3: "CIV", numeric: "384" }, { alpha2: "CK", alpha3: "COK", numeric: "184" }, { alpha2: "CL", alpha3: "CHL", numeric: "152" }, { alpha2: "CM", alpha3: "CMR", numeric: "120" }, { alpha2: "CN", alpha3: "CHN", numeric: "156" }, { alpha2: "CO", alpha3: "COL", numeric: "170" }, { alpha2: "CR", alpha3: "CRI", numeric: "188" }, { alpha2: "CU", alpha3: "CUB", numeric: "192" }, { alpha2: "CV", alpha3: "CPV", numeric: "132" }, { alpha2: "CW", alpha3: "CUW", numeric: "531" }, { alpha2: "CX", alpha3: "CXR", numeric: "162" }, { alpha2: "CY", alpha3: "CYP", numeric: "196" }, { alpha2: "CZ", alpha3: "CZE", numeric: "203" }, { alpha2: "DE", alpha3: "DEU", numeric: "276" }, { alpha2: "DJ", alpha3: "DJI", numeric: "262" }, { alpha2: "DK", alpha3: "DNK", numeric: "208" }, { alpha2: "DM", alpha3: "DMA", numeric: "212" }, { alpha2: "DO", alpha3: "DOM", numeric: "214" }, { alpha2: "DZ", alpha3: "DZA", numeric: "012" }, { alpha2: "EC", alpha3: "ECU", numeric: "218" }, { alpha2: "EE", alpha3: "EST", numeric: "233" }, { alpha2: "EG", alpha3: "EGY", numeric: "818" }, { alpha2: "EH", alpha3: "ESH", numeric: "732" }, { alpha2: "ER", alpha3: "ERI", numeric: "232" }, { alpha2: "ES", alpha3: "ESP", numeric: "724" }, { alpha2: "ET", alpha3: "ETH", numeric: "231" }, { alpha2: "FI", alpha3: "FIN", numeric: "246" }, { alpha2: "FJ", alpha3: "FJI", numeric: "242" }, { alpha2: "FK", alpha3: "FLK", numeric: "238" }, { alpha2: "FM", alpha3: "FSM", numeric: "583" }, { alpha2: "FO", alpha3: "FRO", numeric: "234" }, { alpha2: "FR", alpha3: "FRA", numeric: "250" }, { alpha2: "GA", alpha3: "GAB", numeric: "266" }, { alpha2: "GB", alpha3: "GBR", numeric: "826" }, { alpha2: "GD", alpha3: "GRD", numeric: "308" }, { alpha2: "GE", alpha3: "GEO", numeric: "268" }, { alpha2: "GF", alpha3: "GUF", numeric: "254" }, { alpha2: "GG", alpha3: "GGY", numeric: "831" }, { alpha2: "GH", alpha3: "GHA", numeric: "288" }, { alpha2: "GI", alpha3: "GIB", numeric: "292" }, { alpha2: "GL", alpha3: "GRL", numeric: "304" }, { alpha2: "GM", alpha3: "GMB", numeric: "270" }, { alpha2: "GN", alpha3: "GIN", numeric: "324" }, { alpha2: "GP", alpha3: "GLP", numeric: "312" }, { alpha2: "GQ", alpha3: "GNQ", numeric: "226" }, { alpha2: "GR", alpha3: "GRC", numeric: "300" }, { alpha2: "GS", alpha3: "SGS", numeric: "239" }, { alpha2: "GT", alpha3: "GTM", numeric: "320" }, { alpha2: "GU", alpha3: "GUM", numeric: "316" }, { alpha2: "GW", alpha3: "GNB", numeric: "624" }, { alpha2: "GY", alpha3: "GUY", numeric: "328" }, { alpha2: "HK", alpha3: "HKG", numeric: "344" }, { alpha2: "HM", alpha3: "HMD", numeric: "334" }, { alpha2: "HN", alpha3: "HND", numeric: "340" }, { alpha2: "HR", alpha3: "HRV", numeric: "191" }, { alpha2: "HT", alpha3: "HTI", numeric: "332" }, { alpha2: "HU", alpha3: "HUN", numeric: "348" }, { alpha2: "ID", alpha3: "IDN", numeric: "360" }, { alpha2: "IE", alpha3: "IRL", numeric: "372" }, { alpha2: "IL", alpha3: "ISR", numeric: "376" }, { alpha2: "IM", alpha3: "IMN", numeric: "833" }, { alpha2: "IN", alpha3: "IND", numeric: "356" }, { alpha2: "IO", alpha3: "IOT", numeric: "086" }, { alpha2: "IQ", alpha3: "IRQ", numeric: "368" }, { alpha2: "IR", alpha3: "IRN", numeric: "364" }, { alpha2: "IS", alpha3: "ISL", numeric: "352" }, { alpha2: "IT", alpha3: "ITA", numeric: "380" }, { alpha2: "JE", alpha3: "JEY", numeric: "832" }, { alpha2: "JM", alpha3: "JAM", numeric: "388" }, { alpha2: "JO", alpha3: "JOR", numeric: "400" }, { alpha2: "JP", alpha3: "JPN", numeric: "392" }, { alpha2: "KE", alpha3: "KEN", numeric: "404" }, { alpha2: "KG", alpha3: "KGZ", numeric: "417" }, { alpha2: "KH", alpha3: "KHM", numeric: "116" }, { alpha2: "KI", alpha3: "KIR", numeric: "296" }, { alpha2: "KM", alpha3: "COM", numeric: "174" }, { alpha2: "KN", alpha3: "KNA", numeric: "659" }, { alpha2: "KP", alpha3: "PRK", numeric: "408" }, { alpha2: "KR", alpha3: "KOR", numeric: "410" }, { alpha2: "KW", alpha3: "KWT", numeric: "414" }, { alpha2: "KY", alpha3: "CYM", numeric: "136" }, { alpha2: "KZ", alpha3: "KAZ", numeric: "398" }, { alpha2: "LA", alpha3: "LAO", numeric: "418" }, { alpha2: "LB", alpha3: "LBN", numeric: "422" }, { alpha2: "LC", alpha3: "LCA", numeric: "662" }, { alpha2: "LI", alpha3: "LIE", numeric: "438" }, { alpha2: "LK", alpha3: "LKA", numeric: "144" }, { alpha2: "LR", alpha3: "LBR", numeric: "430" }, { alpha2: "LS", alpha3: "LSO", numeric: "426" }, { alpha2: "LT", alpha3: "LTU", numeric: "440" }, { alpha2: "LU", alpha3: "LUX", numeric: "442" }, { alpha2: "LV", alpha3: "LVA", numeric: "428" }, { alpha2: "LY", alpha3: "LBY", numeric: "434" }, { alpha2: "MA", alpha3: "MAR", numeric: "504" }, { alpha2: "MC", alpha3: "MCO", numeric: "492" }, { alpha2: "MD", alpha3: "MDA", numeric: "498" }, { alpha2: "ME", alpha3: "MNE", numeric: "499" }, { alpha2: "MF", alpha3: "MAF", numeric: "663" }, { alpha2: "MG", alpha3: "MDG", numeric: "450" }, { alpha2: "MH", alpha3: "MHL", numeric: "584" }, { alpha2: "MK", alpha3: "MKD", numeric: "807" }, { alpha2: "ML", alpha3: "MLI", numeric: "466" }, { alpha2: "MM", alpha3: "MMR", numeric: "104" }, { alpha2: "MN", alpha3: "MNG", numeric: "496" }, { alpha2: "MO", alpha3: "MAC", numeric: "446" }, { alpha2: "MP", alpha3: "MNP", numeric: "580" }, { alpha2: "MQ", alpha3: "MTQ", numeric: "474" }, { alpha2: "MR", alpha3: "MRT", numeric: "478" }, { alpha2: "MS", alpha3: "MSR", numeric: "500" }, { alpha2: "MT", alpha3: "MLT", numeric: "470" }, { alpha2: "MU", alpha3: "MUS", numeric: "480" }, { alpha2: "MV", alpha3: "MDV", numeric: "462" }, { alpha2: "MW", alpha3: "MWI", numeric: "454" }, { alpha2: "MX", alpha3: "MEX", numeric: "484" }, { alpha2: "MY", alpha3: "MYS", numeric: "458" }, { alpha2: "MZ", alpha3: "MOZ", numeric: "508" }, { alpha2: "NA", alpha3: "NAM", numeric: "516" }, { alpha2: "NC", alpha3: "NCL", numeric: "540" }, { alpha2: "NE", alpha3: "NER", numeric: "562" }, { alpha2: "NF", alpha3: "NFK", numeric: "574" }, { alpha2: "NG", alpha3: "NGA", numeric: "566" }, { alpha2: "NI", alpha3: "NIC", numeric: "558" }, { alpha2: "NL", alpha3: "NLD", numeric: "528" }, { alpha2: "NO", alpha3: "NOR", numeric: "578" }, { alpha2: "NP", alpha3: "NPL", numeric: "524" }, { alpha2: "NR", alpha3: "NRU", numeric: "520" }, { alpha2: "NU", alpha3: "NIU", numeric: "570" }, { alpha2: "NZ", alpha3: "NZL", numeric: "554" }, { alpha2: "OM", alpha3: "OMN", numeric: "512" }, { alpha2: "PA", alpha3: "PAN", numeric: "591" }, { alpha2: "PE", alpha3: "PER", numeric: "604" }, { alpha2: "PF", alpha3: "PYF", numeric: "258" }, { alpha2: "PG", alpha3: "PNG", numeric: "598" }, { alpha2: "PH", alpha3: "PHL", numeric: "608" }, { alpha2: "PK", alpha3: "PAK", numeric: "586" }, { alpha2: "PL", alpha3: "POL", numeric: "616" }, { alpha2: "PM", alpha3: "SPM", numeric: "666" }, { alpha2: "PN", alpha3: "PCN", numeric: "612" }, { alpha2: "PR", alpha3: "PRI", numeric: "630" }, { alpha2: "PS", alpha3: "PSE", numeric: "275" }, { alpha2: "PT", alpha3: "PRT", numeric: "620" }, { alpha2: "PW", alpha3: "PLW", numeric: "585" }, { alpha2: "PY", alpha3: "PRY", numeric: "600" }, { alpha2: "QA", alpha3: "QAT", numeric: "634" }, { alpha2: "RE", alpha3: "REU", numeric: "638" }, { alpha2: "RO", alpha3: "ROU", numeric: "642" }, { alpha2: "RS", alpha3: "SRB", numeric: "688" }, { alpha2: "RU", alpha3: "RUS", numeric: "643" }, { alpha2: "RW", alpha3: "RWA", numeric: "646" }, { alpha2: "SA", alpha3: "SAU", numeric: "682" }, { alpha2: "SB", alpha3: "SLB", numeric: "090" }, { alpha2: "SC", alpha3: "SYC", numeric: "690" }, { alpha2: "SD", alpha3: "SDN", numeric: "729" }, { alpha2: "SE", alpha3: "SWE", numeric: "752" }, { alpha2: "SG", alpha3: "SGP", numeric: "702" }, { alpha2: "SH", alpha3: "SHN", numeric: "654" }, { alpha2: "SI", alpha3: "SVN", numeric: "705" }, { alpha2: "SJ", alpha3: "SJM", numeric: "744" }, { alpha2: "SK", alpha3: "SVK", numeric: "703" }, { alpha2: "SL", alpha3: "SLE", numeric: "694" }, { alpha2: "SM", alpha3: "SMR", numeric: "674" }, { alpha2: "SN", alpha3: "SEN", numeric: "686" }, { alpha2: "SO", alpha3: "SOM", numeric: "706" }, { alpha2: "SR", alpha3: "SUR", numeric: "740" }, { alpha2: "SS", alpha3: "SSD", numeric: "728" }, { alpha2: "ST", alpha3: "STP", numeric: "678" }, { alpha2: "SV", alpha3: "SLV", numeric: "222" }, { alpha2: "SX", alpha3: "SXM", numeric: "534" }, { alpha2: "SY", alpha3: "SYR", numeric: "760" }, { alpha2: "SZ", alpha3: "SWZ", numeric: "748" }, { alpha2: "TC", alpha3: "TCA", numeric: "796" }, { alpha2: "TD", alpha3: "TCD", numeric: "148" }, { alpha2: "TF", alpha3: "ATF", numeric: "260" }, { alpha2: "TG", alpha3: "TGO", numeric: "768" }, { alpha2: "TH", alpha3: "THA", numeric: "764" }, { alpha2: "TJ", alpha3: "TJK", numeric: "762" }, { alpha2: "TK", alpha3: "TKL", numeric: "772" }, { alpha2: "TL", alpha3: "TLS", numeric: "626" }, { alpha2: "TM", alpha3: "TKM", numeric: "795" }, { alpha2: "TN", alpha3: "TUN", numeric: "788" }, { alpha2: "TO", alpha3: "TON", numeric: "776" }, { alpha2: "TR", alpha3: "TUR", numeric: "792" }, { alpha2: "TT", alpha3: "TTO", numeric: "780" }, { alpha2: "TV", alpha3: "TUV", numeric: "798" }, { alpha2: "TW", alpha3: "TWN", numeric: "158" }, { alpha2: "TZ", alpha3: "TZA", numeric: "834" }, { alpha2: "UA", alpha3: "UKR", numeric: "804" }, { alpha2: "UG", alpha3: "UGA", numeric: "800" }, { alpha2: "UM", alpha3: "UMI", numeric: "581" }, { alpha2: "US", alpha3: "USA", numeric: "840" }, { alpha2: "UY", alpha3: "URY", numeric: "858" }, { alpha2: "UZ", alpha3: "UZB", numeric: "860" }, { alpha2: "VA", alpha3: "VAT", numeric: "336" }, { alpha2: "VC", alpha3: "VCT", numeric: "670" }, { alpha2: "VE", alpha3: "VEN", numeric: "862" }, { alpha2: "VG", alpha3: "VGB", numeric: "092" }, { alpha2: "VI", alpha3: "VIR", numeric: "850" }, { alpha2: "VN", alpha3: "VNM", numeric: "704" }, { alpha2: "VU", alpha3: "VUT", numeric: "548" }, { alpha2: "WF", alpha3: "WLF", numeric: "876" }, { alpha2: "WS", alpha3: "WSM", numeric: "882" }, { alpha2: "YE", alpha3: "YEM", numeric: "887" }, { alpha2: "YT", alpha3: "MYT", numeric: "175" }, { alpha2: "ZA", alpha3: "ZAF", numeric: "710" }, { alpha2: "ZM", alpha3: "ZMB", numeric: "894" }, { alpha2: "ZW", alpha3: "ZWE", numeric: "716" }];
|
|
1958
|
-
var at = { country_code: pr, time_zone:
|
|
1928
|
+
var at = { country_code: pr, time_zone: _ }, hr = at;
|
|
1959
1929
|
var nt = { title: "Base", code: "base" }, fr = nt;
|
|
1960
1930
|
var br = ["/Applications", "/bin", "/boot", "/boot/defaults", "/dev", "/etc", "/etc/defaults", "/etc/mail", "/etc/namedb", "/etc/periodic", "/etc/ppp", "/home", "/home/user", "/home/user/dir", "/lib", "/Library", "/lost+found", "/media", "/mnt", "/net", "/Network", "/opt", "/opt/bin", "/opt/include", "/opt/lib", "/opt/sbin", "/opt/share", "/private", "/private/tmp", "/private/var", "/proc", "/rescue", "/root", "/sbin", "/selinux", "/srv", "/sys", "/System", "/tmp", "/Users", "/usr", "/usr/X11R6", "/usr/bin", "/usr/include", "/usr/lib", "/usr/libdata", "/usr/libexec", "/usr/local/bin", "/usr/local/src", "/usr/obj", "/usr/ports", "/usr/sbin", "/usr/share", "/usr/src", "/var", "/var/log", "/var/mail", "/var/spool", "/var/tmp", "/var/yp"];
|
|
1961
1931
|
var dr = { "application/epub+zip": { extensions: ["epub"] }, "application/gzip": { extensions: ["gz"] }, "application/java-archive": { extensions: ["jar", "war", "ear"] }, "application/json": { extensions: ["json", "map"] }, "application/ld+json": { extensions: ["jsonld"] }, "application/msword": { extensions: ["doc", "dot"] }, "application/octet-stream": { extensions: ["bin", "dms", "lrf", "mar", "so", "dist", "distz", "pkg", "bpk", "dump", "elc", "deploy", "exe", "dll", "deb", "dmg", "iso", "img", "msi", "msp", "msm", "buffer"] }, "application/ogg": { extensions: ["ogx"] }, "application/pdf": { extensions: ["pdf"] }, "application/rtf": { extensions: ["rtf"] }, "application/vnd.amazon.ebook": { extensions: ["azw"] }, "application/vnd.apple.installer+xml": { extensions: ["mpkg"] }, "application/vnd.mozilla.xul+xml": { extensions: ["xul"] }, "application/vnd.ms-excel": { extensions: ["xls", "xlm", "xla", "xlc", "xlt", "xlw"] }, "application/vnd.ms-fontobject": { extensions: ["eot"] }, "application/vnd.ms-powerpoint": { extensions: ["ppt", "pps", "pot"] }, "application/vnd.oasis.opendocument.presentation": { extensions: ["odp"] }, "application/vnd.oasis.opendocument.spreadsheet": { extensions: ["ods"] }, "application/vnd.oasis.opendocument.text": { extensions: ["odt"] }, "application/vnd.openxmlformats-officedocument.presentationml.presentation": { extensions: ["pptx"] }, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": { extensions: ["xlsx"] }, "application/vnd.openxmlformats-officedocument.wordprocessingml.document": { extensions: ["docx"] }, "application/vnd.rar": { extensions: ["rar"] }, "application/vnd.visio": { extensions: ["vsd", "vst", "vss", "vsw"] }, "application/x-7z-compressed": { extensions: ["7z"] }, "application/x-abiword": { extensions: ["abw"] }, "application/x-bzip": { extensions: ["bz"] }, "application/x-bzip2": { extensions: ["bz2", "boz"] }, "application/x-csh": { extensions: ["csh"] }, "application/x-freearc": { extensions: ["arc"] }, "application/x-httpd-php": { extensions: ["php"] }, "application/x-sh": { extensions: ["sh"] }, "application/x-tar": { extensions: ["tar"] }, "application/xhtml+xml": { extensions: ["xhtml", "xht"] }, "application/xml": { extensions: ["xml", "xsl", "xsd", "rng"] }, "application/zip": { extensions: ["zip"] }, "audio/3gpp": { extensions: ["3gpp"] }, "audio/3gpp2": { extensions: ["3g2"] }, "audio/aac": { extensions: ["aac"] }, "audio/midi": { extensions: ["mid", "midi", "kar", "rmi"] }, "audio/mpeg": { extensions: ["mpga", "mp2", "mp2a", "mp3", "m2a", "m3a"] }, "audio/ogg": { extensions: ["oga", "ogg", "spx", "opus"] }, "audio/opus": { extensions: ["opus"] }, "audio/wav": { extensions: ["wav"] }, "audio/webm": { extensions: ["weba"] }, "font/otf": { extensions: ["otf"] }, "font/ttf": { extensions: ["ttf"] }, "font/woff": { extensions: ["woff"] }, "font/woff2": { extensions: ["woff2"] }, "image/avif": { extensions: ["avif"] }, "image/bmp": { extensions: ["bmp"] }, "image/gif": { extensions: ["gif"] }, "image/jpeg": { extensions: ["jpeg", "jpg", "jpe"] }, "image/png": { extensions: ["png"] }, "image/svg+xml": { extensions: ["svg", "svgz"] }, "image/tiff": { extensions: ["tif", "tiff"] }, "image/vnd.microsoft.icon": { extensions: ["ico"] }, "image/webp": { extensions: ["webp"] }, "text/calendar": { extensions: ["ics", "ifb"] }, "text/css": { extensions: ["css"] }, "text/csv": { extensions: ["csv"] }, "text/html": { extensions: ["html", "htm", "shtml"] }, "text/javascript": { extensions: ["js", "mjs"] }, "text/plain": { extensions: ["txt", "text", "conf", "def", "list", "log", "in", "ini"] }, "video/3gpp": { extensions: ["3gp", "3gpp"] }, "video/3gpp2": { extensions: ["3g2"] }, "video/mp2t": { extensions: ["ts"] }, "video/mp4": { extensions: ["mp4", "mp4v", "mpg4"] }, "video/mpeg": { extensions: ["mpeg", "mpg", "mpe", "m1v", "m2v"] }, "video/ogg": { extensions: ["ogv"] }, "video/webm": { extensions: ["webm"] }, "video/x-msvideo": { extensions: ["avi"] } };
|
|
1962
1932
|
var it = { directory_path: br, mime_type: dr }, gr = it;
|
|
1963
|
-
var ot = { color: qe, database: ar, date: nr, hacker: or, internet: ur, location: hr, metadata: fr, system: gr },
|
|
1964
|
-
var f = new Xe({ locale: [ys,
|
|
1933
|
+
var ot = { color: qe, database: ar, date: nr, hacker: or, internet: ur, location: hr, metadata: fr, system: gr }, _i = ot;
|
|
1934
|
+
var f = new Xe({ locale: [ys, _i] });
|
|
1965
1935
|
function generateToolCallArguments(requestBody) {
|
|
1966
1936
|
const { parameters } = requestBody.tools[0].function;
|
|
1967
1937
|
const argumentsObject = {};
|
|
1968
1938
|
Object.entries(parameters.properties).forEach(([paramName, paramDetails]) => {
|
|
1969
|
-
argumentsObject[paramName] = generateFakeData(
|
|
1970
|
-
paramDetails.type,
|
|
1971
|
-
paramDetails,
|
|
1972
|
-
paramName
|
|
1973
|
-
);
|
|
1939
|
+
argumentsObject[paramName] = generateFakeData(paramDetails.type, paramDetails, paramName);
|
|
1974
1940
|
});
|
|
1975
1941
|
return JSON.stringify(argumentsObject, null, 2);
|
|
1976
1942
|
}
|
|
@@ -1978,11 +1944,7 @@ function generateFunctionCallArguments(requestBody) {
|
|
|
1978
1944
|
const { parameters } = requestBody.functions[0];
|
|
1979
1945
|
const argumentsObject = {};
|
|
1980
1946
|
Object.entries(parameters.properties).forEach(([paramName, paramDetails]) => {
|
|
1981
|
-
argumentsObject[paramName] = generateFakeData(
|
|
1982
|
-
paramDetails.type,
|
|
1983
|
-
paramDetails,
|
|
1984
|
-
paramName
|
|
1985
|
-
);
|
|
1947
|
+
argumentsObject[paramName] = generateFakeData(paramDetails.type, paramDetails, paramName);
|
|
1986
1948
|
});
|
|
1987
1949
|
return JSON.stringify(argumentsObject, null, 2);
|
|
1988
1950
|
}
|
|
@@ -2049,7 +2011,8 @@ function generateFakeStringData(name) {
|
|
|
2049
2011
|
return f.lorem.words(5);
|
|
2050
2012
|
}
|
|
2051
2013
|
}
|
|
2052
|
-
function createDefaultResponse(created) {
|
|
2014
|
+
function createDefaultResponse(created, requestBody = {}) {
|
|
2015
|
+
const model = requestBody.model ? `${requestBody.model}-mock` : "gpt-3.5-mock";
|
|
2053
2016
|
return {
|
|
2054
2017
|
choices: [
|
|
2055
2018
|
{
|
|
@@ -2064,7 +2027,7 @@ function createDefaultResponse(created) {
|
|
|
2064
2027
|
],
|
|
2065
2028
|
created,
|
|
2066
2029
|
id: `chatcmpl-${f.string.alphanumeric(30)}`,
|
|
2067
|
-
model
|
|
2030
|
+
model,
|
|
2068
2031
|
object: "chat.completion",
|
|
2069
2032
|
usage: {
|
|
2070
2033
|
completion_tokens: 17,
|
|
@@ -2077,11 +2040,12 @@ function createFunctionCallingResponse(requestBody, created) {
|
|
|
2077
2040
|
const isTool = Boolean(requestBody.tools);
|
|
2078
2041
|
const functionOrToolCallObject = isTool ? [createToolCallObject(requestBody)] : createFunctionCallObject(requestBody);
|
|
2079
2042
|
const functionOrToolCall = isTool ? "tool_calls" : "function_call";
|
|
2043
|
+
const model = requestBody.model ? `${requestBody.model}-mock` : "gpt-3.5-mock";
|
|
2080
2044
|
return {
|
|
2081
2045
|
id: `chatcmpl-${f.string.alphanumeric(30)}`,
|
|
2082
2046
|
object: "chat.completion",
|
|
2083
2047
|
created,
|
|
2084
|
-
model
|
|
2048
|
+
model,
|
|
2085
2049
|
choices: [
|
|
2086
2050
|
{
|
|
2087
2051
|
index: 0,
|
|
@@ -2116,15 +2080,16 @@ function createFunctionCallObject(requestBody) {
|
|
|
2116
2080
|
arguments: `${generateFunctionCallArguments(requestBody)}`
|
|
2117
2081
|
};
|
|
2118
2082
|
}
|
|
2119
|
-
function getSteamChatObject() {
|
|
2083
|
+
function getSteamChatObject(requestBody = {}) {
|
|
2120
2084
|
const created = Math.floor(Date.now() / 1e3);
|
|
2085
|
+
const model = requestBody.model ? `${requestBody.model}-mock` : "gpt-3.5-mock";
|
|
2121
2086
|
let lorem = f.lorem.paragraph();
|
|
2122
2087
|
const loremArray = lorem.split(" ");
|
|
2123
2088
|
let ob = {
|
|
2124
2089
|
id: `chatcmpl-${f.string.alphanumeric(30)}`,
|
|
2125
2090
|
object: "chat.completion.chunk",
|
|
2126
2091
|
created,
|
|
2127
|
-
model
|
|
2092
|
+
model,
|
|
2128
2093
|
system_fingerprint: null,
|
|
2129
2094
|
choices: [
|
|
2130
2095
|
{
|
|
@@ -2142,11 +2107,11 @@ function getSteamChatObject() {
|
|
|
2142
2107
|
function getChatResponce(requestBody) {
|
|
2143
2108
|
const created = Math.floor(Date.now() / 1e3);
|
|
2144
2109
|
if (!requestBody.functions && !requestBody.tools) {
|
|
2145
|
-
return createDefaultResponse(created);
|
|
2110
|
+
return createDefaultResponse(created, requestBody);
|
|
2146
2111
|
}
|
|
2147
2112
|
return createFunctionCallingResponse(requestBody, created);
|
|
2148
2113
|
}
|
|
2149
|
-
function createChatStream() {
|
|
2114
|
+
function createChatStream(requestBody) {
|
|
2150
2115
|
const stream = new Readable({
|
|
2151
2116
|
read() {
|
|
2152
2117
|
}
|
|
@@ -2156,7 +2121,7 @@ function createChatStream() {
|
|
|
2156
2121
|
function sendData() {
|
|
2157
2122
|
setTimeout(() => {
|
|
2158
2123
|
if (count < maxCount - 1) {
|
|
2159
|
-
stream.push(`data: ${getSteamChatObject()}
|
|
2124
|
+
stream.push(`data: ${getSteamChatObject(requestBody)}
|
|
2160
2125
|
|
|
2161
2126
|
`);
|
|
2162
2127
|
count++;
|
|
@@ -2295,13 +2260,16 @@ function deepMerge(target, source) {
|
|
|
2295
2260
|
const OPEN_AI_BASE_URL = "https://api.openai.com";
|
|
2296
2261
|
const CHAT_COMPLETIONS_ENDPOINT = "/v1/chat/completions";
|
|
2297
2262
|
const IMAGE_GENERATIONS_ENDPOINT = "/v1/images/generations";
|
|
2263
|
+
const CHAT_COMPLETIONS_ENDPOINT_NO_PREFIX = "/chat/completions";
|
|
2264
|
+
const IMAGE_GENERATIONS_ENDPOINT_NO_PREFIX = "/images/generations";
|
|
2298
2265
|
function mockOpenAIResponse(force = false, options = {}) {
|
|
2299
2266
|
const {
|
|
2300
2267
|
includeErrors = false,
|
|
2301
2268
|
latency = 0,
|
|
2302
2269
|
logRequests = false,
|
|
2303
2270
|
seed = null,
|
|
2304
|
-
useFixedResponses = false
|
|
2271
|
+
useFixedResponses = false,
|
|
2272
|
+
baseUrl = OPEN_AI_BASE_URL
|
|
2305
2273
|
} = options;
|
|
2306
2274
|
if (seed !== null) {
|
|
2307
2275
|
f.seed(seed);
|
|
@@ -2313,7 +2281,13 @@ function mockOpenAIResponse(force = false, options = {}) {
|
|
|
2313
2281
|
if (env !== "development" && !force) {
|
|
2314
2282
|
return { isActive: false, stopMocking };
|
|
2315
2283
|
}
|
|
2316
|
-
|
|
2284
|
+
if (logRequests) {
|
|
2285
|
+
console.log(`[openai-api-mock] Mocking requests to: ${baseUrl}`);
|
|
2286
|
+
}
|
|
2287
|
+
const isDefaultBaseUrl = baseUrl === OPEN_AI_BASE_URL;
|
|
2288
|
+
const chatEndpoint = isDefaultBaseUrl ? CHAT_COMPLETIONS_ENDPOINT : CHAT_COMPLETIONS_ENDPOINT_NO_PREFIX;
|
|
2289
|
+
const imageEndpoint = isDefaultBaseUrl ? IMAGE_GENERATIONS_ENDPOINT : IMAGE_GENERATIONS_ENDPOINT_NO_PREFIX;
|
|
2290
|
+
nock(baseUrl).post(chatEndpoint).delay(latency).reply(function(uri, requestBody) {
|
|
2317
2291
|
if (logRequests) {
|
|
2318
2292
|
console.log(`[openai-api-mock] Chat request:`, JSON.stringify(requestBody, null, 2));
|
|
2319
2293
|
}
|
|
@@ -2344,7 +2318,7 @@ function mockOpenAIResponse(force = false, options = {}) {
|
|
|
2344
2318
|
return [500, { error: { message: "Internal server error in mock" } }];
|
|
2345
2319
|
}
|
|
2346
2320
|
}).persist();
|
|
2347
|
-
nock(
|
|
2321
|
+
nock(baseUrl).post(imageEndpoint).delay(latency).reply(function(uri, requestBody) {
|
|
2348
2322
|
if (logRequests) {
|
|
2349
2323
|
console.log(`[openai-api-mock] Image request:`, JSON.stringify(requestBody, null, 2));
|
|
2350
2324
|
}
|
|
@@ -2353,7 +2327,10 @@ function mockOpenAIResponse(force = false, options = {}) {
|
|
|
2353
2327
|
return [400, { error: { message: "Invalid request. Missing prompt." } }];
|
|
2354
2328
|
}
|
|
2355
2329
|
if (includeErrors && Math.random() < 0.05) {
|
|
2356
|
-
return [
|
|
2330
|
+
return [
|
|
2331
|
+
400,
|
|
2332
|
+
{ error: { message: "Your request was rejected as a result of our safety system." } }
|
|
2333
|
+
];
|
|
2357
2334
|
}
|
|
2358
2335
|
if (useFixedResponses) {
|
|
2359
2336
|
return [200, createResponseTemplate("IMAGE_GENERATION")];
|
|
@@ -2364,7 +2341,8 @@ function mockOpenAIResponse(force = false, options = {}) {
|
|
|
2364
2341
|
return [500, { error: { message: "Internal server error in mock" } }];
|
|
2365
2342
|
}
|
|
2366
2343
|
}).persist();
|
|
2367
|
-
|
|
2344
|
+
const baseUrlHost = new URL(baseUrl).hostname;
|
|
2345
|
+
nock.enableNetConnect((host) => host !== baseUrlHost);
|
|
2368
2346
|
return {
|
|
2369
2347
|
isActive: true,
|
|
2370
2348
|
stopMocking,
|
|
@@ -2409,7 +2387,7 @@ function mockOpenAIResponse(force = false, options = {}) {
|
|
|
2409
2387
|
*/
|
|
2410
2388
|
addCustomEndpoint(method, path, handler) {
|
|
2411
2389
|
const methodLower = method.toLowerCase();
|
|
2412
|
-
nock(
|
|
2390
|
+
nock(baseUrl)[methodLower](path).reply(handler).persist();
|
|
2413
2391
|
}
|
|
2414
2392
|
};
|
|
2415
2393
|
}
|