Spaces:
Paused
Paused
Upload 16 files
Browse filesFiles changed (14)
- .env+19-21
- doc/language.jsonAdded+937
- doc/regions.jsonAdded+699
- index.js+3-5
- package-lock.json+1422-217
- package.json+1-3
- public/configure.html+104-1625
- src/cache.jsAdded+112
- src/db.jsAdded+89
- src/routes.jsAdded+363
- src/tmdb.jsAdded+343
- src/utils/logger.jsAdded+69
- src/utils/middleware.jsAdded+28
- src/utils/queue.jsAdded+7
12345678910111213141516171819202122232425262728# BASE_URL is the base URL for accessing the addon without a trailing slash.# Example: https://tmdb-dice.stremio# Ensure this URL is correctly configured for your environment.BASE_URL=http://localhost:3000# Specifies the cache expiration duration for catalog content.# The format is either days or hours, e.g., '3d' for 3 days or '3h' for 3 hours.CATALOG_CONTENT_CACHE_DURATION=3d# Specifies the cache expiration duration for RPDB posters.# The format is either days or hours, e.g., '3d' for 3 days or '3h' for 3 hours.RPDB_POSTER_CACHE_DURATION=3d# The number of days after which application logs will be automatically deleted.# Set this to a suitable duration to manage log file size and retention.LOG_INTERVAL_DELETION=3d# Defines the logging level for the application.# Set to "info" for standard logging or "debug" for more detailed logs.LOG_LEVEL=info# The environment in which the application is running.# Typically set to "production" for live environments or "development" for testing and debugging.NODE_ENV=production# The port on which the addon will listen for incoming connections.# Make sure this port is open and not used by other services.PORT=30001234567891011121314151617181920212223242526# Change exposition portPORT=3000# URL to access the addonBASE_URL=http://localhost:3000CACHE_CATALOG_CONTENT_DURATION_DAYS=3CACHE_POSTER_CONTENT_DURATION_DAYS=7# Enable public instanceTMDB_BEARER_TOKEN=# Define streaming catalog providers based on region# TMDB_LANGUAGE = iso_639_1 code from doc/languages.json# TMDB_WATCH_REGION= = iso_3166_1 code from doc/regions.jsonTMDB_LANGUAGE=enTMDB_WATCH_REGION=GB# Possible values are: info, debug# Default is 'info' if not specified; 'debug' provides more detailed logsLOG_LEVEL=info# The value can be expressed in days (d), weeks (w), or months (M).# For example, '3d' means that log files will be kept for 3 days before being deleted.# If LOG_INTERVAL_DELETION is not defined in the environment variables, the default value is '3d'.LOG_INTERVAL_DELETION=3d
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937[ { "iso_639_1": "bi", "english_name": "Bislama", "name": "" }, { "iso_639_1": "cs", "english_name": "Czech", "name": "Český" }, { "iso_639_1": "ba", "english_name": "Bashkir", "name": "" }, { "iso_639_1": "ae", "english_name": "Avestan", "name": "" }, { "iso_639_1": "av", "english_name": "Avaric", "name": "" }, { "iso_639_1": "de", "english_name": "German", "name": "Deutsch" }, { "iso_639_1": "mt", "english_name": "Maltese", "name": "Malti" }, { "iso_639_1": "om", "english_name": "Oromo", "name": "" }, { "iso_639_1": "rm", "english_name": "Raeto-Romance", "name": "" }, { "iso_639_1": "so", "english_name": "Somali", "name": "Somali" }, { "iso_639_1": "ts", "english_name": "Tsonga", "name": "" }, { "iso_639_1": "vi", "english_name": "Vietnamese", "name": "Tiếng Việt" }, { "iso_639_1": "gn", "english_name": "Guarani", "name": "" }, { "iso_639_1": "ig", "english_name": "Igbo", "name": "" }, { "iso_639_1": "it", "english_name": "Italian", "name": "Italiano" }, { "iso_639_1": "ki", "english_name": "Kikuyu", "name": "" }, { "iso_639_1": "ku", "english_name": "Kurdish", "name": "" }, { "iso_639_1": "la", "english_name": "Latin", "name": "Latin" }, { "iso_639_1": "ln", "english_name": "Lingala", "name": "" }, { "iso_639_1": "lb", "english_name": "Letzeburgesch", "name": "" }, { "iso_639_1": "ny", "english_name": "Chichewa; Nyanja", "name": "" }, { "iso_639_1": "pl", "english_name": "Polish", "name": "Polski" }, { "iso_639_1": "si", "english_name": "Sinhalese", "name": "සිංහල" }, { "iso_639_1": "to", "english_name": "Tonga", "name": "" }, { "iso_639_1": "az", "english_name": "Azerbaijani", "name": "Azərbaycan" }, { "iso_639_1": "ce", "english_name": "Chechen", "name": "" }, { "iso_639_1": "cu", "english_name": "Slavic", "name": "" }, { "iso_639_1": "da", "english_name": "Danish", "name": "Dansk" }, { "iso_639_1": "hz", "english_name": "Herero", "name": "" }, { "iso_639_1": "ie", "english_name": "Interlingue", "name": "" }, { "iso_639_1": "rw", "english_name": "Kinyarwanda", "name": "Kinyarwanda" }, { "iso_639_1": "mi", "english_name": "Maori", "name": "" }, { "iso_639_1": "no", "english_name": "Norwegian", "name": "Norsk" }, { "iso_639_1": "pi", "english_name": "Pali", "name": "" }, { "iso_639_1": "sk", "english_name": "Slovak", "name": "Slovenčina" }, { "iso_639_1": "se", "english_name": "Northern Sami", "name": "" }, { "iso_639_1": "sm", "english_name": "Samoan", "name": "" }, { "iso_639_1": "uk", "english_name": "Ukrainian", "name": "Український" }, { "iso_639_1": "en", "english_name": "English", "name": "English" }, { "iso_639_1": "ay", "english_name": "Aymara", "name": "" }, { "iso_639_1": "ca", "english_name": "Catalan", "name": "Català" }, { "iso_639_1": "eo", "english_name": "Esperanto", "name": "Esperanto" }, { "iso_639_1": "ha", "english_name": "Hausa", "name": "Hausa" }, { "iso_639_1": "ho", "english_name": "Hiri Motu", "name": "" }, { "iso_639_1": "hu", "english_name": "Hungarian", "name": "Magyar" }, { "iso_639_1": "io", "english_name": "Ido", "name": "" }, { "iso_639_1": "ii", "english_name": "Yi", "name": "" }, { "iso_639_1": "kn", "english_name": "Kannada", "name": "?????" }, { "iso_639_1": "kv", "english_name": "Komi", "name": "" }, { "iso_639_1": "li", "english_name": "Limburgish", "name": "" }, { "iso_639_1": "oj", "english_name": "Ojibwa", "name": "" }, { "iso_639_1": "ru", "english_name": "Russian", "name": "Pусский" }, { "iso_639_1": "sr", "english_name": "Serbian", "name": "Srpski" }, { "iso_639_1": "sv", "english_name": "Swedish", "name": "svenska" }, { "iso_639_1": "ty", "english_name": "Tahitian", "name": "" }, { "iso_639_1": "zu", "english_name": "Zulu", "name": "isiZulu" }, { "iso_639_1": "ka", "english_name": "Georgian", "name": "ქართული" }, { "iso_639_1": "ch", "english_name": "Chamorro", "name": "Finu' Chamorro" }, { "iso_639_1": "be", "english_name": "Belarusian", "name": "беларуская мова" }, { "iso_639_1": "br", "english_name": "Breton", "name": "" }, { "iso_639_1": "kw", "english_name": "Cornish", "name": "" }, { "iso_639_1": "fi", "english_name": "Finnish", "name": "suomi" }, { "iso_639_1": "sh", "english_name": "Serbo-Croatian", "name": "" }, { "iso_639_1": "nn", "english_name": "Norwegian Nynorsk", "name": "" }, { "iso_639_1": "tt", "english_name": "Tatar", "name": "" }, { "iso_639_1": "tg", "english_name": "Tajik", "name": "" }, { "iso_639_1": "vo", "english_name": "Volapük", "name": "" }, { "iso_639_1": "ps", "english_name": "Pushto", "name": "پښتو" }, { "iso_639_1": "mk", "english_name": "Macedonian", "name": "" }, { "iso_639_1": "fr", "english_name": "French", "name": "Français" }, { "iso_639_1": "bm", "english_name": "Bambara", "name": "Bamanankan" }, { "iso_639_1": "eu", "english_name": "Basque", "name": "euskera" }, { "iso_639_1": "fj", "english_name": "Fijian", "name": "" }, { "iso_639_1": "id", "english_name": "Indonesian", "name": "Bahasa indonesia" }, { "iso_639_1": "mg", "english_name": "Malagasy", "name": "" }, { "iso_639_1": "na", "english_name": "Nauru", "name": "" }, { "iso_639_1": "xx", "english_name": "No Language", "name": "No Language" }, { "iso_639_1": "qu", "english_name": "Quechua", "name": "" }, { "iso_639_1": "sq", "english_name": "Albanian", "name": "shqip" }, { "iso_639_1": "ti", "english_name": "Tigrinya", "name": "" }, { "iso_639_1": "tw", "english_name": "Twi", "name": "" }, { "iso_639_1": "wa", "english_name": "Walloon", "name": "" }, { "iso_639_1": "ab", "english_name": "Abkhazian", "name": "" }, { "iso_639_1": "bs", "english_name": "Bosnian", "name": "Bosanski" }, { "iso_639_1": "af", "english_name": "Afrikaans", "name": "Afrikaans" }, { "iso_639_1": "an", "english_name": "Aragonese", "name": "" }, { "iso_639_1": "fy", "english_name": "Frisian", "name": "" }, { "iso_639_1": "gu", "english_name": "Gujarati", "name": "" }, { "iso_639_1": "ik", "english_name": "Inupiaq", "name": "" }, { "iso_639_1": "ja", "english_name": "Japanese", "name": "日本語" }, { "iso_639_1": "ko", "english_name": "Korean", "name": "한국어/조선말" }, { "iso_639_1": "lg", "english_name": "Ganda", "name": "" }, { "iso_639_1": "nl", "english_name": "Dutch", "name": "Nederlands" }, { "iso_639_1": "os", "english_name": "Ossetian; Ossetic", "name": "" }, { "iso_639_1": "el", "english_name": "Greek", "name": "ελληνικά" }, { "iso_639_1": "bn", "english_name": "Bengali", "name": "বাংলা" }, { "iso_639_1": "cr", "english_name": "Cree", "name": "" }, { "iso_639_1": "km", "english_name": "Khmer", "name": "" }, { "iso_639_1": "lo", "english_name": "Lao", "name": "" }, { "iso_639_1": "nd", "english_name": "Ndebele", "name": "" }, { "iso_639_1": "ne", "english_name": "Nepali", "name": "" }, { "iso_639_1": "sc", "english_name": "Sardinian", "name": "" }, { "iso_639_1": "sw", "english_name": "Swahili", "name": "Kiswahili" }, { "iso_639_1": "tl", "english_name": "Tagalog", "name": "" }, { "iso_639_1": "ur", "english_name": "Urdu", "name": "اردو" }, { "iso_639_1": "ee", "english_name": "Ewe", "name": "Èʋegbe" }, { "iso_639_1": "aa", "english_name": "Afar", "name": "" }, { "iso_639_1": "co", "english_name": "Corsican", "name": "" }, { "iso_639_1": "et", "english_name": "Estonian", "name": "Eesti" }, { "iso_639_1": "is", "english_name": "Icelandic", "name": "Íslenska" }, { "iso_639_1": "ks", "english_name": "Kashmiri", "name": "" }, { "iso_639_1": "kr", "english_name": "Kanuri", "name": "" }, { "iso_639_1": "ky", "english_name": "Kirghiz", "name": "??????" }, { "iso_639_1": "kj", "english_name": "Kuanyama", "name": "" }, { "iso_639_1": "nr", "english_name": "Ndebele", "name": "" }, { "iso_639_1": "or", "english_name": "Oriya", "name": "" }, { "iso_639_1": "wo", "english_name": "Wolof", "name": "Wolof" }, { "iso_639_1": "za", "english_name": "Zhuang", "name": "" }, { "iso_639_1": "ar", "english_name": "Arabic", "name": "العربية" }, { "iso_639_1": "cv", "english_name": "Chuvash", "name": "" }, { "iso_639_1": "fo", "english_name": "Faroese", "name": "" }, { "iso_639_1": "hr", "english_name": "Croatian", "name": "Hrvatski" }, { "iso_639_1": "ms", "english_name": "Malay", "name": "Bahasa melayu" }, { "iso_639_1": "nb", "english_name": "Norwegian Bokmål", "name": "Bokmål" }, { "iso_639_1": "rn", "english_name": "Rundi", "name": "Kirundi" }, { "iso_639_1": "sn", "english_name": "Shona", "name": "" }, { "iso_639_1": "st", "english_name": "Sotho", "name": "" }, { "iso_639_1": "tr", "english_name": "Turkish", "name": "Türkçe" }, { "iso_639_1": "am", "english_name": "Amharic", "name": "" }, { "iso_639_1": "fa", "english_name": "Persian", "name": "فارسی" }, { "iso_639_1": "hy", "english_name": "Armenian", "name": "" }, { "iso_639_1": "pa", "english_name": "Punjabi", "name": "ਪੰਜਾਬੀ" }, { "iso_639_1": "as", "english_name": "Assamese", "name": "" }, { "iso_639_1": "ia", "english_name": "Interlingua", "name": "" }, { "iso_639_1": "lv", "english_name": "Latvian", "name": "Latviešu" }, { "iso_639_1": "lu", "english_name": "Luba-Katanga", "name": "" }, { "iso_639_1": "mr", "english_name": "Marathi", "name": "" }, { "iso_639_1": "mn", "english_name": "Mongolian", "name": "" }, { "iso_639_1": "pt", "english_name": "Portuguese", "name": "Português" }, { "iso_639_1": "th", "english_name": "Thai", "name": "ภาษาไทย" }, { "iso_639_1": "tk", "english_name": "Turkmen", "name": "" }, { "iso_639_1": "ve", "english_name": "Venda", "name": "" }, { "iso_639_1": "dv", "english_name": "Divehi", "name": "" }, { "iso_639_1": "gv", "english_name": "Manx", "name": "" }, { "iso_639_1": "kl", "english_name": "Kalaallisut", "name": "" }, { "iso_639_1": "kk", "english_name": "Kazakh", "name": "қазақ" }, { "iso_639_1": "lt", "english_name": "Lithuanian", "name": "Lietuvių" }, { "iso_639_1": "my", "english_name": "Burmese", "name": "" }, { "iso_639_1": "sl", "english_name": "Slovenian", "name": "Slovenščina" }, { "iso_639_1": "sd", "english_name": "Sindhi", "name": "" }, { "iso_639_1": "cn", "english_name": "Cantonese", "name": "广州话 / 廣州話" }, { "iso_639_1": "hi", "english_name": "Hindi", "name": "हिन्दी" }, { "iso_639_1": "cy", "english_name": "Welsh", "name": "Cymraeg" }, { "iso_639_1": "ht", "english_name": "Haitian; Haitian Creole", "name": "" }, { "iso_639_1": "iu", "english_name": "Inuktitut", "name": "" }, { "iso_639_1": "jv", "english_name": "Javanese", "name": "" }, { "iso_639_1": "mh", "english_name": "Marshall", "name": "" }, { "iso_639_1": "sa", "english_name": "Sanskrit", "name": "" }, { "iso_639_1": "ss", "english_name": "Swati", "name": "" }, { "iso_639_1": "te", "english_name": "Telugu", "name": "తెలుగు" }, { "iso_639_1": "kg", "english_name": "Kongo", "name": "" }, { "iso_639_1": "ml", "english_name": "Malayalam", "name": "" }, { "iso_639_1": "uz", "english_name": "Uzbek", "name": "ozbek" }, { "iso_639_1": "sg", "english_name": "Sango", "name": "" }, { "iso_639_1": "xh", "english_name": "Xhosa", "name": "" }, { "iso_639_1": "es", "english_name": "Spanish", "name": "Español" }, { "iso_639_1": "su", "english_name": "Sundanese", "name": "" }, { "iso_639_1": "ug", "english_name": "Uighur", "name": "" }, { "iso_639_1": "yi", "english_name": "Yiddish", "name": "" }, { "iso_639_1": "yo", "english_name": "Yoruba", "name": "Èdè Yorùbá" }, { "iso_639_1": "zh", "english_name": "Mandarin", "name": "普通话" }, { "iso_639_1": "he", "english_name": "Hebrew", "name": "עִבְרִית" }, { "iso_639_1": "bo", "english_name": "Tibetan", "name": "" }, { "iso_639_1": "ak", "english_name": "Akan", "name": "" }, { "iso_639_1": "mo", "english_name": "Moldavian", "name": "" }, { "iso_639_1": "ng", "english_name": "Ndonga", "name": "" }, { "iso_639_1": "dz", "english_name": "Dzongkha", "name": "" }, { "iso_639_1": "ff", "english_name": "Fulah", "name": "Fulfulde" }, { "iso_639_1": "gd", "english_name": "Gaelic", "name": "" }, { "iso_639_1": "ga", "english_name": "Irish", "name": "Gaeilge" }, { "iso_639_1": "gl", "english_name": "Galician", "name": "Galego" }, { "iso_639_1": "nv", "english_name": "Navajo", "name": "" }, { "iso_639_1": "oc", "english_name": "Occitan", "name": "" }, { "iso_639_1": "ro", "english_name": "Romanian", "name": "Română" }, { "iso_639_1": "ta", "english_name": "Tamil", "name": "தமிழ்" }, { "iso_639_1": "tn", "english_name": "Tswana", "name": "" }, { "iso_639_1": "bg", "english_name": "Bulgarian", "name": "български език" } ]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699{ "results": [ { "iso_3166_1": "AD", "english_name": "Andorra", "native_name": "Andorra" }, { "iso_3166_1": "AE", "english_name": "United Arab Emirates", "native_name": "United Arab Emirates" }, { "iso_3166_1": "AG", "english_name": "Antigua and Barbuda", "native_name": "Antigua & Barbuda" }, { "iso_3166_1": "AL", "english_name": "Albania", "native_name": "Albania" }, { "iso_3166_1": "AO", "english_name": "Angola", "native_name": "Angola" }, { "iso_3166_1": "AR", "english_name": "Argentina", "native_name": "Argentina" }, { "iso_3166_1": "AT", "english_name": "Austria", "native_name": "Austria" }, { "iso_3166_1": "AU", "english_name": "Australia", "native_name": "Australia" }, { "iso_3166_1": "AZ", "english_name": "Azerbaijan", "native_name": "Azerbaijan" }, { "iso_3166_1": "BA", "english_name": "Bosnia and Herzegovina", "native_name": "Bosnia & Herzegovina" }, { "iso_3166_1": "BB", "english_name": "Barbados", "native_name": "Barbados" }, { "iso_3166_1": "BE", "english_name": "Belgium", "native_name": "Belgium" }, { "iso_3166_1": "BF", "english_name": "Burkina Faso", "native_name": "Burkina Faso" }, { "iso_3166_1": "BG", "english_name": "Bulgaria", "native_name": "Bulgaria" }, { "iso_3166_1": "BH", "english_name": "Bahrain", "native_name": "Bahrain" }, { "iso_3166_1": "BM", "english_name": "Bermuda", "native_name": "Bermuda" }, { "iso_3166_1": "BO", "english_name": "Bolivia", "native_name": "Bolivia" }, { "iso_3166_1": "BR", "english_name": "Brazil", "native_name": "Brazil" }, { "iso_3166_1": "BS", "english_name": "Bahamas", "native_name": "Bahamas" }, { "iso_3166_1": "BY", "english_name": "Belarus", "native_name": "Belarus" }, { "iso_3166_1": "BZ", "english_name": "Belize", "native_name": "Belize" }, { "iso_3166_1": "CA", "english_name": "Canada", "native_name": "Canada" }, { "iso_3166_1": "CD", "english_name": "Congo", "native_name": "Democratic Republic of the Congo (Kinshasa)" }, { "iso_3166_1": "CH", "english_name": "Switzerland", "native_name": "Switzerland" }, { "iso_3166_1": "CI", "english_name": "Cote D'Ivoire", "native_name": "Côte d’Ivoire" }, { "iso_3166_1": "CL", "english_name": "Chile", "native_name": "Chile" }, { "iso_3166_1": "CM", "english_name": "Cameroon", "native_name": "Cameroon" }, { "iso_3166_1": "CO", "english_name": "Colombia", "native_name": "Colombia" }, { "iso_3166_1": "CR", "english_name": "Costa Rica", "native_name": "Costa Rica" }, { "iso_3166_1": "CU", "english_name": "Cuba", "native_name": "Cuba" }, { "iso_3166_1": "CV", "english_name": "Cape Verde", "native_name": "Cape Verde" }, { "iso_3166_1": "CY", "english_name": "Cyprus", "native_name": "Cyprus" }, { "iso_3166_1": "CZ", "english_name": "Czech Republic", "native_name": "Czech Republic" }, { "iso_3166_1": "DE", "english_name": "Germany", "native_name": "Germany" }, { "iso_3166_1": "DK", "english_name": "Denmark", "native_name": "Denmark" }, { "iso_3166_1": "DO", "english_name": "Dominican Republic", "native_name": "Dominican Republic" }, { "iso_3166_1": "DZ", "english_name": "Algeria", "native_name": "Algeria" }, { "iso_3166_1": "EC", "english_name": "Ecuador", "native_name": "Ecuador" }, { "iso_3166_1": "EE", "english_name": "Estonia", "native_name": "Estonia" }, { "iso_3166_1": "EG", "english_name": "Egypt", "native_name": "Egypt" }, { "iso_3166_1": "ES", "english_name": "Spain", "native_name": "Spain" }, { "iso_3166_1": "FI", "english_name": "Finland", "native_name": "Finland" }, { "iso_3166_1": "FJ", "english_name": "Fiji", "native_name": "Fiji" }, { "iso_3166_1": "FR", "english_name": "France", "native_name": "France" }, { "iso_3166_1": "GB", "english_name": "United Kingdom", "native_name": "United Kingdom" }, { "iso_3166_1": "GF", "english_name": "French Guiana", "native_name": "French Guiana" }, { "iso_3166_1": "GH", "english_name": "Ghana", "native_name": "Ghana" }, { "iso_3166_1": "GI", "english_name": "Gibraltar", "native_name": "Gibraltar" }, { "iso_3166_1": "GP", "english_name": "Guadaloupe", "native_name": "Guadeloupe" }, { "iso_3166_1": "GQ", "english_name": "Equatorial Guinea", "native_name": "Equatorial Guinea" }, { "iso_3166_1": "GR", "english_name": "Greece", "native_name": "Greece" }, { "iso_3166_1": "GT", "english_name": "Guatemala", "native_name": "Guatemala" }, { "iso_3166_1": "GY", "english_name": "Guyana", "native_name": "Guyana" }, { "iso_3166_1": "HK", "english_name": "Hong Kong", "native_name": "Hong Kong SAR China" }, { "iso_3166_1": "HN", "english_name": "Honduras", "native_name": "Honduras" }, { "iso_3166_1": "HR", "english_name": "Croatia", "native_name": "Croatia" }, { "iso_3166_1": "HU", "english_name": "Hungary", "native_name": "Hungary" }, { "iso_3166_1": "ID", "english_name": "Indonesia", "native_name": "Indonesia" }, { "iso_3166_1": "IE", "english_name": "Ireland", "native_name": "Ireland" }, { "iso_3166_1": "IL", "english_name": "Israel", "native_name": "Israel" }, { "iso_3166_1": "IN", "english_name": "India", "native_name": "India" }, { "iso_3166_1": "IQ", "english_name": "Iraq", "native_name": "Iraq" }, { "iso_3166_1": "IS", "english_name": "Iceland", "native_name": "Iceland" }, { "iso_3166_1": "IT", "english_name": "Italy", "native_name": "Italy" }, { "iso_3166_1": "JM", "english_name": "Jamaica", "native_name": "Jamaica" }, { "iso_3166_1": "JO", "english_name": "Jordan", "native_name": "Jordan" }, { "iso_3166_1": "JP", "english_name": "Japan", "native_name": "Japan" }, { "iso_3166_1": "KE", "english_name": "Kenya", "native_name": "Kenya" }, { "iso_3166_1": "KR", "english_name": "South Korea", "native_name": "South Korea" }, { "iso_3166_1": "KW", "english_name": "Kuwait", "native_name": "Kuwait" }, { "iso_3166_1": "LB", "english_name": "Lebanon", "native_name": "Lebanon" }, { "iso_3166_1": "LC", "english_name": "St. Lucia", "native_name": "St. Lucia" }, { "iso_3166_1": "LI", "english_name": "Liechtenstein", "native_name": "Liechtenstein" }, { "iso_3166_1": "LT", "english_name": "Lithuania", "native_name": "Lithuania" }, { "iso_3166_1": "LU", "english_name": "Luxembourg", "native_name": "Luxembourg" }, { "iso_3166_1": "LV", "english_name": "Latvia", "native_name": "Latvia" }, { "iso_3166_1": "LY", "english_name": "Libyan Arab Jamahiriya", "native_name": "Libya" }, { "iso_3166_1": "MA", "english_name": "Morocco", "native_name": "Morocco" }, { "iso_3166_1": "MC", "english_name": "Monaco", "native_name": "Monaco" }, { "iso_3166_1": "MD", "english_name": "Moldova", "native_name": "Moldova" }, { "iso_3166_1": "ME", "english_name": "Montenegro", "native_name": "Montenegro" }, { "iso_3166_1": "MG", "english_name": "Madagascar", "native_name": "Madagascar" }, { "iso_3166_1": "MK", "english_name": "Macedonia", "native_name": "Macedonia" }, { "iso_3166_1": "ML", "english_name": "Mali", "native_name": "Mali" }, { "iso_3166_1": "MT", "english_name": "Malta", "native_name": "Malta" }, { "iso_3166_1": "MU", "english_name": "Mauritius", "native_name": "Mauritius" }, { "iso_3166_1": "MW", "english_name": "Malawi", "native_name": "Malawi" }, { "iso_3166_1": "MX", "english_name": "Mexico", "native_name": "Mexico" }, { "iso_3166_1": "MY", "english_name": "Malaysia", "native_name": "Malaysia" }, { "iso_3166_1": "MZ", "english_name": "Mozambique", "native_name": "Mozambique" }, { "iso_3166_1": "NE", "english_name": "Niger", "native_name": "Niger" }, { "iso_3166_1": "NG", "english_name": "Nigeria", "native_name": "Nigeria" }, { "iso_3166_1": "NI", "english_name": "Nicaragua", "native_name": "Nicaragua" }, { "iso_3166_1": "NL", "english_name": "Netherlands", "native_name": "Netherlands" }, { "iso_3166_1": "NO", "english_name": "Norway", "native_name": "Norway" }, { "iso_3166_1": "NZ", "english_name": "New Zealand", "native_name": "New Zealand" }, { "iso_3166_1": "OM", "english_name": "Oman", "native_name": "Oman" }, { "iso_3166_1": "PA", "english_name": "Panama", "native_name": "Panama" }, { "iso_3166_1": "PE", "english_name": "Peru", "native_name": "Peru" }, { "iso_3166_1": "PF", "english_name": "French Polynesia", "native_name": "French Polynesia" }, { "iso_3166_1": "PG", "english_name": "Papua New Guinea", "native_name": "Papua New Guinea" }, { "iso_3166_1": "PH", "english_name": "Philippines", "native_name": "Philippines" }, { "iso_3166_1": "PK", "english_name": "Pakistan", "native_name": "Pakistan" }, { "iso_3166_1": "PL", "english_name": "Poland", "native_name": "Poland" }, { "iso_3166_1": "PS", "english_name": "Palestinian Territory", "native_name": "Palestinian Territories" }, { "iso_3166_1": "PT", "english_name": "Portugal", "native_name": "Portugal" }, { "iso_3166_1": "PY", "english_name": "Paraguay", "native_name": "Paraguay" }, { "iso_3166_1": "QA", "english_name": "Qatar", "native_name": "Qatar" }, { "iso_3166_1": "RO", "english_name": "Romania", "native_name": "Romania" }, { "iso_3166_1": "RS", "english_name": "Serbia", "native_name": "Serbia" }, { "iso_3166_1": "RU", "english_name": "Russia", "native_name": "Russia" }, { "iso_3166_1": "SA", "english_name": "Saudi Arabia", "native_name": "Saudi Arabia" }, { "iso_3166_1": "SC", "english_name": "Seychelles", "native_name": "Seychelles" }, { "iso_3166_1": "SE", "english_name": "Sweden", "native_name": "Sweden" }, { "iso_3166_1": "SG", "english_name": "Singapore", "native_name": "Singapore" }, { "iso_3166_1": "SI", "english_name": "Slovenia", "native_name": "Slovenia" }, { "iso_3166_1": "SK", "english_name": "Slovakia", "native_name": "Slovakia" }, { "iso_3166_1": "SM", "english_name": "San Marino", "native_name": "San Marino" }, { "iso_3166_1": "SN", "english_name": "Senegal", "native_name": "Senegal" }, { "iso_3166_1": "SV", "english_name": "El Salvador", "native_name": "El Salvador" }, { "iso_3166_1": "TC", "english_name": "Turks and Caicos Islands", "native_name": "Turks & Caicos Islands" }, { "iso_3166_1": "TD", "english_name": "Chad", "native_name": "Chad" }, { "iso_3166_1": "TH", "english_name": "Thailand", "native_name": "Thailand" }, { "iso_3166_1": "TN", "english_name": "Tunisia", "native_name": "Tunisia" }, { "iso_3166_1": "TR", "english_name": "Turkey", "native_name": "Turkey" }, { "iso_3166_1": "TT", "english_name": "Trinidad and Tobago", "native_name": "Trinidad & Tobago" }, { "iso_3166_1": "TW", "english_name": "Taiwan", "native_name": "Taiwan" }, { "iso_3166_1": "TZ", "english_name": "Tanzania", "native_name": "Tanzania" }, { "iso_3166_1": "UA", "english_name": "Ukraine", "native_name": "Ukraine" }, { "iso_3166_1": "UG", "english_name": "Uganda", "native_name": "Uganda" }, { "iso_3166_1": "US", "english_name": "United States of America", "native_name": "United States" }, { "iso_3166_1": "UY", "english_name": "Uruguay", "native_name": "Uruguay" }, { "iso_3166_1": "VA", "english_name": "Holy See", "native_name": "Vatican City" }, { "iso_3166_1": "VE", "english_name": "Venezuela", "native_name": "Venezuela" }, { "iso_3166_1": "XK", "english_name": "Kosovo", "native_name": "Kosovo" }, { "iso_3166_1": "YE", "english_name": "Yemen", "native_name": "Yemen" }, { "iso_3166_1": "ZA", "english_name": "South Africa", "native_name": "South Africa" }, { "iso_3166_1": "ZM", "english_name": "Zambia", "native_name": "Zambia" }, { "iso_3166_1": "ZW", "english_name": "Zimbabwe", "native_name": "Zimbabwe" } ] }1 unmodified line234567892 unmodified lines121314151617181920211 unmodified lineconst express = require('express');const cors = require('cors');const path = require('path');const log = require('./src/helpers/logger');const routes = require('./src/routes/index');const PORT = process.env.PORT || 7000;const app = express();2 unmodified linesapp.use(express.static(path.join(__dirname, 'public')));app.use(express.json());app.use('/', routes);app.listen(PORT, () => {log.info(`Server running on port ${PORT} - Environment: ${process.env.NODE_ENV || 'development'}`);});1 unmodified line234567892 unmodified lines12131415161718191 unmodified lineconst express = require('express');const cors = require('cors');const path = require('path');const log = require('./src/utils/logger');const routes = require('./src/routes');const PORT = process.env.PORT || 7000;const app = express();2 unmodified linesapp.use(express.static(path.join(__dirname, 'public')));app.use('/', routes);app.listen(PORT, () => {log.info(`Express server running on port ${PORT} in ${process.env.NODE_ENV || 'development'} mode.`);});
10 unmodified lines11121314151617181920212218 unmodified lines41424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021032 unmodified lines1061071081091101117 unmodified lines11912012112212312423 unmodified lines14814915015115215318 unmodified lines1721731741751761771781791801811824 unmodified lines18718818919019119213 unmodified lines20620720820921021121221321421521621721831 unmodified lines25025125225325425516 unmodified lines27227327427527627752 unmodified lines33033133233333433520 unmodified lines35635735835936036113 unmodified lines37537637737837938012 unmodified lines3933943953963973989 unmodified lines40840941041141241330 unmodified lines44444544644744844951 unmodified lines50150250350450550670 unmodified lines5775785795805815823 unmodified lines58658758858959059159259359459559659759815 unmodified lines6146156166176186196 unmodified lines62662762862963063130 unmodified lines6626636646656666676685 unmodified lines67467567667767867910 unmodified lines6906916926936946956 unmodified lines7027037047057067077087097107117127139 unmodified lines7237247257267277286 unmodified lines73573673773873974023 unmodified lines76476576676776876951 unmodified lines8218228238248258269 unmodified lines8368378388398408413 unmodified lines84584684784884985033 unmodified lines884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104215 unmodified lines10581059106010611062106333 unmodified lines1097109810991100110111028 unmodified lines11111112111311141115111611171118111911201121112211231124112511261127112811291130113131 unmodified lines11631164116511661167116839 unmodified lines12081209121012111212121335 unmodified lines1249125012511252125312543 unmodified lines125812591260126112621263126412651266126712681269127023 unmodified lines12941295129612971298129918 unmodified lines1318131913201321132213237 unmodified lines13311332133313341335133627 unmodified lines13641365136613671368136948 unmodified lines1418141914201421142214231424142514261427142814291430143110 unmodified lines"dependencies": {"async": "^3.2.6","axios": "^1.7.5","bottleneck": "^2.19.5","cors": "^2.8.5","dotenv": "^16.4.5","express": "^4.19.2","pg": "^8.13.0","redis": "^4.7.0","winston": "^3.14.2","winston-daily-rotate-file": "^5.0.0"}18 unmodified lines"kuler": "^2.0.0"}},"node_modules/@redis/bloom": {"version": "1.2.0","resolved": "https://registry.npmjs.org/@redis/bloom/-/bloom-1.2.0.tgz","integrity": "sha512-HG2DFjYKbpNmVXsa0keLHp/3leGJz1mjh09f2RLGGLQZzSHpkmZWuwJbAvo3QcRY8p80m5+ZdXZdYOSBLlp7Cg==","license": "MIT","peerDependencies": {"@redis/client": "^1.0.0"}},"node_modules/@redis/client": {"version": "1.6.0","resolved": "https://registry.npmjs.org/@redis/client/-/client-1.6.0.tgz","integrity": "sha512-aR0uffYI700OEEH4gYnitAnv3vzVGXCFvYfdpu/CJKvk4pHfLPEy/JSZyrpQ+15WhXe1yJRXLtfQ84s4mEXnPg==","license": "MIT","dependencies": {"cluster-key-slot": "1.1.2","generic-pool": "3.9.0","yallist": "4.0.0"},"engines": {"node": ">=14"}},"node_modules/@redis/graph": {"version": "1.1.1","resolved": "https://registry.npmjs.org/@redis/graph/-/graph-1.1.1.tgz","integrity": "sha512-FEMTcTHZozZciLRl6GiiIB4zGm5z5F3F6a6FZCyrfxdKOhFlGkiAqlexWMBzCi4DcRoyiOsuLfW+cjlGWyExOw==","license": "MIT","peerDependencies": {"@redis/client": "^1.0.0"}},"node_modules/@redis/json": {"version": "1.0.7","resolved": "https://registry.npmjs.org/@redis/json/-/json-1.0.7.tgz","integrity": "sha512-6UyXfjVaTBTJtKNG4/9Z8PSpKE6XgSyEb8iwaqDcy+uKrd/DGYHTWkUdnQDyzm727V7p21WUMhsqz5oy65kPcQ==","license": "MIT","peerDependencies": {"@redis/client": "^1.0.0"}},"node_modules/@redis/search": {"version": "1.2.0","resolved": "https://registry.npmjs.org/@redis/search/-/search-1.2.0.tgz","integrity": "sha512-tYoDBbtqOVigEDMAcTGsRlMycIIjwMCgD8eR2t0NANeQmgK/lvxNAvYyb6bZDD4frHRhIHkJu2TBRvB0ERkOmw==","license": "MIT","peerDependencies": {"@redis/client": "^1.0.0"}},"node_modules/@redis/time-series": {"version": "1.1.0","resolved": "https://registry.npmjs.org/@redis/time-series/-/time-series-1.1.0.tgz","integrity": "sha512-c1Q99M5ljsIuc4YdaCwfUEXsofakb9c8+Zse2qxTadu8TalLXuAESzLvFAvNVbkmSlvlzIQOLpBCmWI9wTOt+g==","license": "MIT","peerDependencies": {"@redis/client": "^1.0.0"}},"node_modules/@types/triple-beam": {2 unmodified lines"integrity": "sha512-6WaYesThRMCl19iryMYP7/x2OVgCtbIVflDGFpWnb9irXI3UjYE4AzmYuiUKY1AJstGijoY+MgUszMgRxIYTYw==","license": "MIT"},"node_modules/accepts": {"version": "1.3.8","resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",7 unmodified lines"node": ">= 0.6"}},"node_modules/array-flatten": {"version": "1.1.1","resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",23 unmodified lines"proxy-from-env": "^1.1.0"}},"node_modules/body-parser": {"version": "1.20.2","resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz",18 unmodified lines"npm": "1.2.8000 || >= 1.4.16"}},"node_modules/bottleneck": {"version": "2.19.5","resolved": "https://registry.npmjs.org/bottleneck/-/bottleneck-2.19.5.tgz","integrity": "sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw==","license": "MIT"},"node_modules/bytes": {"version": "3.1.2",4 unmodified lines"node": ">= 0.8"}},"node_modules/call-bind": {"version": "1.0.7","resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz",13 unmodified lines"url": "https://github.com/sponsors/ljharb"}},"node_modules/cluster-key-slot": {"version": "1.1.2","resolved": "https://registry.npmjs.org/cluster-key-slot/-/cluster-key-slot-1.1.2.tgz","integrity": "sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA==","license": "Apache-2.0","engines": {"node": ">=0.10.0"}},"node_modules/color": {31 unmodified lines"simple-swizzle": "^0.2.2"}},"node_modules/colorspace": {"version": "1.1.4","resolved": "https://registry.npmjs.org/colorspace/-/colorspace-1.1.4.tgz",16 unmodified lines"node": ">= 0.8"}},"node_modules/content-disposition": {"version": "0.5.4","resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",52 unmodified lines"ms": "2.0.0"}},"node_modules/define-data-property": {"version": "1.1.4","resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",20 unmodified lines"node": ">=0.4.0"}},"node_modules/depd": {"version": "2.0.0","resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",13 unmodified lines"npm": "1.2.8000 || >= 1.4.16"}},"node_modules/dotenv": {"version": "16.4.5","resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz",12 unmodified lines"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==","license": "MIT"},"node_modules/enabled": {"version": "2.0.0","resolved": "https://registry.npmjs.org/enabled/-/enabled-2.0.0.tgz",9 unmodified lines"node": ">= 0.8"}},"node_modules/es-define-property": {"version": "1.0.0","resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz",30 unmodified lines"node": ">= 0.6"}},"node_modules/express": {"version": "4.19.2","resolved": "https://registry.npmjs.org/express/-/express-4.19.2.tgz",51 unmodified lines"moment": "^2.29.1"}},"node_modules/finalhandler": {"version": "1.2.0","resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz",70 unmodified lines"node": ">= 0.6"}},"node_modules/function-bind": {"version": "1.1.2","resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",3 unmodified lines"url": "https://github.com/sponsors/ljharb"}},"node_modules/generic-pool": {"version": "3.9.0","resolved": "https://registry.npmjs.org/generic-pool/-/generic-pool-3.9.0.tgz","integrity": "sha512-hymDOu5B53XvN4QT9dBmZxPX4CWhBPPLguTZ9MMFeFa/Kg0xWVfylOVNlJji/E7yTZWFd/q9GO5TxDLq156D7g==","license": "MIT","engines": {"node": ">= 4"}},"node_modules/get-intrinsic": {15 unmodified lines"url": "https://github.com/sponsors/ljharb"}},"node_modules/gopd": {"version": "1.0.1","resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",6 unmodified lines"url": "https://github.com/sponsors/ljharb"}},"node_modules/has-property-descriptors": {"version": "1.0.2","resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",30 unmodified lines"url": "https://github.com/sponsors/ljharb"}},"node_modules/hasown": {"version": "2.0.2","resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz","integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",5 unmodified lines"node": ">= 0.4"}},"node_modules/http-errors": {"version": "2.0.0","resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",10 unmodified lines"node": ">= 0.8"}},"node_modules/iconv-lite": {"version": "0.4.24","resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",6 unmodified lines"node": ">=0.10.0"}},"node_modules/inherits": {"version": "2.0.4","resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz","integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==","license": "ISC"},"node_modules/ipaddr.js": {"version": "1.9.1","resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",9 unmodified lines"integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==","license": "MIT"},"node_modules/is-stream": {"version": "2.0.1","resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",6 unmodified lines"url": "https://github.com/sponsors/sindresorhus"}},"node_modules/kuler": {"version": "2.0.0","resolved": "https://registry.npmjs.org/kuler/-/kuler-2.0.0.tgz",23 unmodified lines"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==","license": "MIT"},"node_modules/media-typer": {"version": "0.3.0","resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",51 unmodified lines"node": ">= 0.6"}},"node_modules/moment": {"version": "2.30.1","resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz",9 unmodified lines"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==","license": "MIT"},"node_modules/negotiator": {"version": "0.6.3","resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",3 unmodified lines"node": ">= 0.6"}},"node_modules/object-assign": {"version": "4.1.1","resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",33 unmodified lines"ee-first": "1.1.1"},"engines": {"node": ">= 0.8"}},"node_modules/one-time": {"version": "1.0.0","resolved": "https://registry.npmjs.org/one-time/-/one-time-1.0.0.tgz","integrity": "sha512-5DXOiRKwuSEcQ/l0kGCF6Q3jcADFv5tSmRaJck/OqkVFcOzutB134KRSfF0xDrL39MNnqxbHBbUUcjZIhTgb2g==","license": "MIT","dependencies": {"fn.name": "1.x.x"}},"node_modules/parseurl": {"version": "1.3.3","resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz","integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==","license": "MIT","engines": {"node": ">= 0.8"}},"node_modules/path-to-regexp": {"version": "0.1.7","resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz","integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==","license": "MIT"},"node_modules/pg": {"version": "8.13.0","resolved": "https://registry.npmjs.org/pg/-/pg-8.13.0.tgz","integrity": "sha512-34wkUTh3SxTClfoHB3pQ7bIMvw9dpFU1audQQeZG837fmHfHpr14n/AELVDoOYVDW2h5RDWU78tFjkD+erSBsw==","license": "MIT","dependencies": {"pg-connection-string": "^2.7.0","pg-pool": "^3.7.0","pg-protocol": "^1.7.0","pg-types": "^2.1.0","pgpass": "1.x"},"engines": {"node": ">= 8.0.0"},"optionalDependencies": {"pg-cloudflare": "^1.1.1"},"peerDependencies": {"pg-native": ">=3.0.1"},"peerDependenciesMeta": {"pg-native": {"optional": true}}},"node_modules/pg-cloudflare": {"version": "1.1.1","resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.1.1.tgz","integrity": "sha512-xWPagP/4B6BgFO+EKz3JONXv3YDgvkbVrGw2mTo3D6tVDQRh1e7cqVGvyR3BE+eQgAvx1XhW/iEASj4/jCWl3Q==","license": "MIT","optional": true},"node_modules/pg-connection-string": {"version": "2.7.0","resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.7.0.tgz","integrity": "sha512-PI2W9mv53rXJQEOb8xNR8lH7Hr+EKa6oJa38zsK0S/ky2er16ios1wLKhZyxzD7jUReiWokc9WK5nxSnC7W1TA==","license": "MIT"},"node_modules/pg-int8": {"version": "1.0.1","resolved": "https://registry.npmjs.org/pg-int8/-/pg-int8-1.0.1.tgz","integrity": "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==","license": "ISC","engines": {"node": ">=4.0.0"}},"node_modules/pg-pool": {"version": "3.7.0","resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.7.0.tgz","integrity": "sha512-ZOBQForurqh4zZWjrgSwwAtzJ7QiRX0ovFkZr2klsen3Nm0aoh33Ls0fzfv3imeH/nw/O27cjdz5kzYJfeGp/g==","license": "MIT","peerDependencies": {"pg": ">=8.0"}},"node_modules/pg-protocol": {"version": "1.7.0","resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.7.0.tgz","integrity": "sha512-hTK/mE36i8fDDhgDFjy6xNOG+LCorxLG3WO17tku+ij6sVHXh1jQUJ8hYAnRhNla4QVD2H8er/FOjc/+EgC6yQ==","license": "MIT"},"node_modules/pg-types": {"version": "2.2.0","resolved": "https://registry.npmjs.org/pg-types/-/pg-types-2.2.0.tgz","integrity": "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==","license": "MIT","dependencies": {"pg-int8": "1.0.1","postgres-array": "~2.0.0","postgres-bytea": "~1.0.0","postgres-date": "~1.0.4","postgres-interval": "^1.1.0"},"engines": {"node": ">=4"}},"node_modules/pgpass": {"version": "1.0.5","resolved": "https://registry.npmjs.org/pgpass/-/pgpass-1.0.5.tgz","integrity": "sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==","license": "MIT","dependencies": {"split2": "^4.1.0"}},"node_modules/postgres-array": {"version": "2.0.0","resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-2.0.0.tgz","integrity": "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==","license": "MIT","engines": {"node": ">=4"}},"node_modules/postgres-bytea": {"version": "1.0.0","resolved": "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-1.0.0.tgz","integrity": "sha512-xy3pmLuQqRBZBXDULy7KbaitYqLcmxigw14Q5sj8QBVLqEwXfeybIKVWiqAXTlcvdvb0+xkOtDbfQMOf4lST1w==","license": "MIT","engines": {"node": ">=0.10.0"}},"node_modules/postgres-date": {"version": "1.0.7","resolved": "https://registry.npmjs.org/postgres-date/-/postgres-date-1.0.7.tgz","integrity": "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==","license": "MIT","engines": {"node": ">=0.10.0"}},"node_modules/postgres-interval": {"version": "1.2.0","resolved": "https://registry.npmjs.org/postgres-interval/-/postgres-interval-1.2.0.tgz","integrity": "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==","license": "MIT","dependencies": {"xtend": "^4.0.0"},"engines": {"node": ">=0.10.0"}},"node_modules/proxy-addr": {15 unmodified lines"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==","license": "MIT"},"node_modules/qs": {"version": "6.11.0","resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz",33 unmodified lines"node": ">= 0.8"}},"node_modules/readable-stream": {"version": "3.6.2","resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",8 unmodified lines"node": ">= 6"}},"node_modules/redis": {"version": "4.7.0","resolved": "https://registry.npmjs.org/redis/-/redis-4.7.0.tgz","integrity": "sha512-zvmkHEAdGMn+hMRXuMBtu4Vo5P6rHQjLoHftu+lBqq8ZTA3RCVC/WzD790bkKKiNFp7d5/9PcSD19fJyyRvOdQ==","license": "MIT","workspaces": ["./packages/*"],"dependencies": {"@redis/bloom": "1.2.0","@redis/client": "1.6.0","@redis/graph": "1.1.1","@redis/json": "1.0.7","@redis/search": "1.2.0","@redis/time-series": "1.1.0"}},"node_modules/safe-buffer": {31 unmodified lines"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==","license": "MIT"},"node_modules/send": {"version": "0.18.0","resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz",39 unmodified lines"node": ">= 0.8.0"}},"node_modules/set-function-length": {"version": "1.2.2","resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",35 unmodified lines"url": "https://github.com/sponsors/ljharb"}},"node_modules/simple-swizzle": {"version": "0.2.2","resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz",3 unmodified lines"is-arrayish": "^0.3.1"}},"node_modules/split2": {"version": "4.2.0","resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz","integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==","license": "ISC","engines": {"node": ">= 10.x"}},"node_modules/stack-trace": {23 unmodified lines"safe-buffer": "~5.2.0"}},"node_modules/text-hex": {"version": "1.0.0","resolved": "https://registry.npmjs.org/text-hex/-/text-hex-1.0.0.tgz",18 unmodified lines"node": ">= 14.0.0"}},"node_modules/type-is": {"version": "1.6.18","resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",7 unmodified lines"node": ">= 0.6"}},"node_modules/unpipe": {"version": "1.0.0","resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",27 unmodified lines"node": ">= 0.8"}},"node_modules/winston": {"version": "3.14.2","resolved": "https://registry.npmjs.org/winston/-/winston-3.14.2.tgz",48 unmodified lines"node": ">= 12.0.0"}},"node_modules/xtend": {"version": "4.0.2","resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz","integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==","license": "MIT","engines": {"node": ">=0.4"}},"node_modules/yallist": {"version": "4.0.0",10 unmodified lines1112131415161718192018 unmodified lines39404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384852 unmodified lines8889909192939495969798991007 unmodified lines10810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921023 unmodified lines23423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528618 unmodified lines3053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433444 unmodified lines34935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338413 unmodified lines39839940040140240340440540640740840941041141241341441541641741841942031 unmodified lines45245345445545645745845946046146246346446546646716 unmodified lines48448548648748848949049149249349449549649749849950050150250352 unmodified lines55655755855956056156256356456556656756856957057157257357457557657757857958058158258358458520 unmodified lines60660760860961061161261361461561661761813 unmodified lines63263363463563663763863964064164264364464564612 unmodified lines6596606616626636646656666676686696706719 unmodified lines68168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473530 unmodified lines76676776876977077177277377477577677777877978051 unmodified lines83283383483583683783883984084184284370 unmodified lines9149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439443 unmodified lines94894995095195295395495595695795895996096196296396496596696796896997097197215 unmodified lines98898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010216 unmodified lines102810291030103110321033103410351036103710381039104030 unmodified lines107110721073107410751076107710781079108010811082108310845 unmodified lines109010911092109310941095109610971098109911001101110210 unmodified lines111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612076 unmodified lines12141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313049 unmodified lines131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513366 unmodified lines1343134413451346134713481349135013511352135313541355135613571358135913601361136223 unmodified lines1386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143251 unmodified lines1484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516369 unmodified lines1646164716481649165016511652165316541655165616573 unmodified lines166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174233 unmodified lines1776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188815 unmodified lines190419051906190719081909191019111912191319141915191619171918191933 unmodified lines1953195419551956195719581959196019611962196319641965196619671968196919701971197219738 unmodified lines198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201231 unmodified lines20442045204620472048204920502051205220532054205520562057205820592060206139 unmodified lines210121022103210421052106210721082109211021112112211335 unmodified lines21492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522063 unmodified lines22102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323 unmodified lines234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244918 unmodified lines2468246924702471247224732474247524762477247824792480248124822483248424857 unmodified lines2493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251827 unmodified lines2546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257748 unmodified lines2626262726282629263026312632263326342635263610 unmodified lines"dependencies": {"async": "^3.2.6","axios": "^1.7.5","cors": "^2.8.5","dotenv": "^16.4.5","express": "^4.19.2","sqlite3": "^5.1.7","winston": "^3.14.2","winston-daily-rotate-file": "^5.0.0"}18 unmodified lines"kuler": "^2.0.0"}},"node_modules/@gar/promisify": {"version": "1.1.3","resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz","integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==","license": "MIT","optional": true},"node_modules/@npmcli/fs": {"version": "1.1.1","resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-1.1.1.tgz","integrity": "sha512-8KG5RD0GVP4ydEzRn/I4BNDuxDtqVbOdm8675T49OIG/NGhaK0pjPX7ZcDlvKYbA+ulvVK3ztfcF4uBdOxuJbQ==","license": "ISC","optional": true,"dependencies": {"@gar/promisify": "^1.0.1","semver": "^7.3.5"}},"node_modules/@npmcli/move-file": {"version": "1.1.2","resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-1.1.2.tgz","integrity": "sha512-1SUf/Cg2GzGDyaf15aR9St9TWlb+XvbZXWpDx8YKs7MLzMH/BCeopv+y9vzrzgkfykCGuWOlSu3mZhj2+FQcrg==","deprecated": "This functionality has been moved to @npmcli/fs","license": "MIT","optional": true,"dependencies": {"mkdirp": "^1.0.4","rimraf": "^3.0.2"},"engines": {"node": ">=10"}},"node_modules/@tootallnate/once": {"version": "1.1.2","resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz","integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==","license": "MIT","optional": true,"engines": {"node": ">= 6"}},"node_modules/@types/triple-beam": {2 unmodified lines"integrity": "sha512-6WaYesThRMCl19iryMYP7/x2OVgCtbIVflDGFpWnb9irXI3UjYE4AzmYuiUKY1AJstGijoY+MgUszMgRxIYTYw==","license": "MIT"},"node_modules/abbrev": {"version": "1.1.1","resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz","integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==","license": "ISC","optional": true},"node_modules/accepts": {"version": "1.3.8","resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",7 unmodified lines"node": ">= 0.6"}},"node_modules/agent-base": {"version": "6.0.2","resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz","integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==","license": "MIT","optional": true,"dependencies": {"debug": "4"},"engines": {"node": ">= 6.0.0"}},"node_modules/agent-base/node_modules/debug": {"version": "4.3.6","resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz","integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==","license": "MIT","optional": true,"dependencies": {"ms": "2.1.2"},"engines": {"node": ">=6.0"},"peerDependenciesMeta": {"supports-color": {"optional": true}}},"node_modules/agent-base/node_modules/ms": {"version": "2.1.2","resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz","integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==","license": "MIT","optional": true},"node_modules/agentkeepalive": {"version": "4.5.0","resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.5.0.tgz","integrity": "sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==","license": "MIT","optional": true,"dependencies": {"humanize-ms": "^1.2.1"},"engines": {"node": ">= 8.0.0"}},"node_modules/aggregate-error": {"version": "3.1.0","resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz","integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==","license": "MIT","optional": true,"dependencies": {"clean-stack": "^2.0.0","indent-string": "^4.0.0"},"engines": {"node": ">=8"}},"node_modules/ansi-regex": {"version": "5.0.1","resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz","integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==","license": "MIT","optional": true,"engines": {"node": ">=8"}},"node_modules/aproba": {"version": "2.0.0","resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz","integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==","license": "ISC","optional": true},"node_modules/are-we-there-yet": {"version": "3.0.1","resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz","integrity": "sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==","deprecated": "This package is no longer supported.","license": "ISC","optional": true,"dependencies": {"delegates": "^1.0.0","readable-stream": "^3.6.0"},"engines": {"node": "^12.13.0 || ^14.15.0 || >=16.0.0"}},"node_modules/array-flatten": {"version": "1.1.1","resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",23 unmodified lines"proxy-from-env": "^1.1.0"}},"node_modules/balanced-match": {"version": "1.0.2","resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz","integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==","license": "MIT","optional": true},"node_modules/base64-js": {"version": "1.5.1","resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz","integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==","funding": [{"type": "github","url": "https://github.com/sponsors/feross"},{"type": "patreon","url": "https://www.patreon.com/feross"},{"type": "consulting","url": "https://feross.org/support"}],"license": "MIT"},"node_modules/bindings": {"version": "1.5.0","resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz","integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==","license": "MIT","dependencies": {"file-uri-to-path": "1.0.0"}},"node_modules/bl": {"version": "4.1.0","resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz","integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==","license": "MIT","dependencies": {"buffer": "^5.5.0","inherits": "^2.0.4","readable-stream": "^3.4.0"}},"node_modules/body-parser": {"version": "1.20.2","resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz",18 unmodified lines"npm": "1.2.8000 || >= 1.4.16"}},"node_modules/brace-expansion": {"version": "1.1.11","resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz","integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==","license": "MIT","optional": true,"dependencies": {"balanced-match": "^1.0.0","concat-map": "0.0.1"}},"node_modules/buffer": {"version": "5.7.1","resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz","integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==","funding": [{"type": "github","url": "https://github.com/sponsors/feross"},{"type": "patreon","url": "https://www.patreon.com/feross"},{"type": "consulting","url": "https://feross.org/support"}],"license": "MIT","dependencies": {"base64-js": "^1.3.1","ieee754": "^1.1.13"}},"node_modules/bytes": {"version": "3.1.2",4 unmodified lines"node": ">= 0.8"}},"node_modules/cacache": {"version": "15.3.0","resolved": "https://registry.npmjs.org/cacache/-/cacache-15.3.0.tgz","integrity": "sha512-VVdYzXEn+cnbXpFgWs5hTT7OScegHVmLhJIR8Ufqk3iFD6A6j5iSX1KuBTfNEv4tdJWE2PzA6IVFtcLC7fN9wQ==","license": "ISC","optional": true,"dependencies": {"@npmcli/fs": "^1.0.0","@npmcli/move-file": "^1.0.1","chownr": "^2.0.0","fs-minipass": "^2.0.0","glob": "^7.1.4","infer-owner": "^1.0.4","lru-cache": "^6.0.0","minipass": "^3.1.1","minipass-collect": "^1.0.2","minipass-flush": "^1.0.5","minipass-pipeline": "^1.2.2","mkdirp": "^1.0.3","p-map": "^4.0.0","promise-inflight": "^1.0.1","rimraf": "^3.0.2","ssri": "^8.0.1","tar": "^6.0.2","unique-filename": "^1.1.1"},"engines": {"node": ">= 10"}},"node_modules/call-bind": {"version": "1.0.7","resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz",13 unmodified lines"url": "https://github.com/sponsors/ljharb"}},"node_modules/chownr": {"version": "2.0.0","resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz","integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==","license": "ISC","engines": {"node": ">=10"}},"node_modules/clean-stack": {"version": "2.2.0","resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz","integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==","license": "MIT","optional": true,"engines": {"node": ">=6"}},"node_modules/color": {31 unmodified lines"simple-swizzle": "^0.2.2"}},"node_modules/color-support": {"version": "1.1.3","resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz","integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==","license": "ISC","optional": true,"bin": {"color-support": "bin.js"}},"node_modules/colorspace": {"version": "1.1.4","resolved": "https://registry.npmjs.org/colorspace/-/colorspace-1.1.4.tgz",16 unmodified lines"node": ">= 0.8"}},"node_modules/concat-map": {"version": "0.0.1","resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz","integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==","license": "MIT","optional": true},"node_modules/console-control-strings": {"version": "1.1.0","resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz","integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==","license": "ISC","optional": true},"node_modules/content-disposition": {"version": "0.5.4","resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",52 unmodified lines"ms": "2.0.0"}},"node_modules/decompress-response": {"version": "6.0.0","resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz","integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==","license": "MIT","dependencies": {"mimic-response": "^3.1.0"},"engines": {"node": ">=10"},"funding": {"url": "https://github.com/sponsors/sindresorhus"}},"node_modules/deep-extend": {"version": "0.6.0","resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz","integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==","license": "MIT","engines": {"node": ">=4.0.0"}},"node_modules/define-data-property": {"version": "1.1.4","resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",20 unmodified lines"node": ">=0.4.0"}},"node_modules/delegates": {"version": "1.0.0","resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz","integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==","license": "MIT","optional": true},"node_modules/depd": {"version": "2.0.0","resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",13 unmodified lines"npm": "1.2.8000 || >= 1.4.16"}},"node_modules/detect-libc": {"version": "2.0.3","resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.3.tgz","integrity": "sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==","license": "Apache-2.0","engines": {"node": ">=8"}},"node_modules/dotenv": {"version": "16.4.5","resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz",12 unmodified lines"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==","license": "MIT"},"node_modules/emoji-regex": {"version": "8.0.0","resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz","integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==","license": "MIT","optional": true},"node_modules/enabled": {"version": "2.0.0","resolved": "https://registry.npmjs.org/enabled/-/enabled-2.0.0.tgz",9 unmodified lines"node": ">= 0.8"}},"node_modules/encoding": {"version": "0.1.13","resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz","integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==","license": "MIT","optional": true,"dependencies": {"iconv-lite": "^0.6.2"}},"node_modules/encoding/node_modules/iconv-lite": {"version": "0.6.3","resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz","integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==","license": "MIT","optional": true,"dependencies": {"safer-buffer": ">= 2.1.2 < 3.0.0"},"engines": {"node": ">=0.10.0"}},"node_modules/end-of-stream": {"version": "1.4.4","resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz","integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==","license": "MIT","dependencies": {"once": "^1.4.0"}},"node_modules/env-paths": {"version": "2.2.1","resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz","integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==","license": "MIT","optional": true,"engines": {"node": ">=6"}},"node_modules/err-code": {"version": "2.0.3","resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz","integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==","license": "MIT","optional": true},"node_modules/es-define-property": {"version": "1.0.0","resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz",30 unmodified lines"node": ">= 0.6"}},"node_modules/expand-template": {"version": "2.0.3","resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz","integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==","license": "(MIT OR WTFPL)","engines": {"node": ">=6"}},"node_modules/express": {"version": "4.19.2","resolved": "https://registry.npmjs.org/express/-/express-4.19.2.tgz",51 unmodified lines"moment": "^2.29.1"}},"node_modules/file-uri-to-path": {"version": "1.0.0","resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz","integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==","license": "MIT"},"node_modules/finalhandler": {"version": "1.2.0","resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz",70 unmodified lines"node": ">= 0.6"}},"node_modules/fs-constants": {"version": "1.0.0","resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz","integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==","license": "MIT"},"node_modules/fs-minipass": {"version": "2.1.0","resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz","integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==","license": "ISC","dependencies": {"minipass": "^3.0.0"},"engines": {"node": ">= 8"}},"node_modules/fs.realpath": {"version": "1.0.0","resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz","integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==","license": "ISC","optional": true},"node_modules/function-bind": {"version": "1.1.2","resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",3 unmodified lines"url": "https://github.com/sponsors/ljharb"}},"node_modules/gauge": {"version": "4.0.4","resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.4.tgz","integrity": "sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==","deprecated": "This package is no longer supported.","license": "ISC","optional": true,"dependencies": {"aproba": "^1.0.3 || ^2.0.0","color-support": "^1.1.3","console-control-strings": "^1.1.0","has-unicode": "^2.0.1","signal-exit": "^3.0.7","string-width": "^4.2.3","strip-ansi": "^6.0.1","wide-align": "^1.1.5"},"engines": {"node": "^12.13.0 || ^14.15.0 || >=16.0.0"}},"node_modules/get-intrinsic": {15 unmodified lines"url": "https://github.com/sponsors/ljharb"}},"node_modules/github-from-package": {"version": "0.0.0","resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz","integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==","license": "MIT"},"node_modules/glob": {"version": "7.2.3","resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz","integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==","deprecated": "Glob versions prior to v9 are no longer supported","license": "ISC","optional": true,"dependencies": {"fs.realpath": "^1.0.0","inflight": "^1.0.4","inherits": "2","minimatch": "^3.1.1","once": "^1.3.0","path-is-absolute": "^1.0.0"},"engines": {"node": "*"},"funding": {"url": "https://github.com/sponsors/isaacs"}},"node_modules/gopd": {"version": "1.0.1","resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",6 unmodified lines"url": "https://github.com/sponsors/ljharb"}},"node_modules/graceful-fs": {"version": "4.2.11","resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz","integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==","license": "ISC","optional": true},"node_modules/has-property-descriptors": {"version": "1.0.2","resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",30 unmodified lines"url": "https://github.com/sponsors/ljharb"}},"node_modules/has-unicode": {"version": "2.0.1","resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz","integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==","license": "ISC","optional": true},"node_modules/hasown": {"version": "2.0.2","resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz","integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",5 unmodified lines"node": ">= 0.4"}},"node_modules/http-cache-semantics": {"version": "4.1.1","resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz","integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==","license": "BSD-2-Clause","optional": true},"node_modules/http-errors": {"version": "2.0.0","resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",10 unmodified lines"node": ">= 0.8"}},"node_modules/http-proxy-agent": {"version": "4.0.1","resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz","integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==","license": "MIT","optional": true,"dependencies": {"@tootallnate/once": "1","agent-base": "6","debug": "4"},"engines": {"node": ">= 6"}},"node_modules/http-proxy-agent/node_modules/debug": {"version": "4.3.6","resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz","integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==","license": "MIT","optional": true,"dependencies": {"ms": "2.1.2"},"engines": {"node": ">=6.0"},"peerDependenciesMeta": {"supports-color": {"optional": true}}},"node_modules/http-proxy-agent/node_modules/ms": {"version": "2.1.2","resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz","integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==","license": "MIT","optional": true},"node_modules/https-proxy-agent": {"version": "5.0.1","resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz","integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==","license": "MIT","optional": true,"dependencies": {"agent-base": "6","debug": "4"},"engines": {"node": ">= 6"}},"node_modules/https-proxy-agent/node_modules/debug": {"version": "4.3.6","resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz","integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==","license": "MIT","optional": true,"dependencies": {"ms": "2.1.2"},"engines": {"node": ">=6.0"},"peerDependenciesMeta": {"supports-color": {"optional": true}}},"node_modules/https-proxy-agent/node_modules/ms": {"version": "2.1.2","resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz","integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==","license": "MIT","optional": true},"node_modules/humanize-ms": {"version": "1.2.1","resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz","integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==","license": "MIT","optional": true,"dependencies": {"ms": "^2.0.0"}},"node_modules/iconv-lite": {"version": "0.4.24","resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",6 unmodified lines"node": ">=0.10.0"}},"node_modules/ieee754": {"version": "1.2.1","resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz","integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==","funding": [{"type": "github","url": "https://github.com/sponsors/feross"},{"type": "patreon","url": "https://www.patreon.com/feross"},{"type": "consulting","url": "https://feross.org/support"}],"license": "BSD-3-Clause"},"node_modules/imurmurhash": {"version": "0.1.4","resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz","integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==","license": "MIT","optional": true,"engines": {"node": ">=0.8.19"}},"node_modules/indent-string": {"version": "4.0.0","resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz","integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==","license": "MIT","optional": true,"engines": {"node": ">=8"}},"node_modules/infer-owner": {"version": "1.0.4","resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz","integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==","license": "ISC","optional": true},"node_modules/inflight": {"version": "1.0.6","resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz","integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==","deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.","license": "ISC","optional": true,"dependencies": {"once": "^1.3.0","wrappy": "1"}},"node_modules/inherits": {"version": "2.0.4","resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz","integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==","license": "ISC"},"node_modules/ini": {"version": "1.3.8","resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz","integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==","license": "ISC"},"node_modules/ip-address": {"version": "9.0.5","resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz","integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==","license": "MIT","optional": true,"dependencies": {"jsbn": "1.1.0","sprintf-js": "^1.1.3"},"engines": {"node": ">= 12"}},"node_modules/ipaddr.js": {"version": "1.9.1","resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",9 unmodified lines"integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==","license": "MIT"},"node_modules/is-fullwidth-code-point": {"version": "3.0.0","resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz","integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==","license": "MIT","optional": true,"engines": {"node": ">=8"}},"node_modules/is-lambda": {"version": "1.0.1","resolved": "https://registry.npmjs.org/is-lambda/-/is-lambda-1.0.1.tgz","integrity": "sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==","license": "MIT","optional": true},"node_modules/is-stream": {"version": "2.0.1","resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",6 unmodified lines"url": "https://github.com/sponsors/sindresorhus"}},"node_modules/isexe": {"version": "2.0.0","resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz","integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==","license": "ISC","optional": true},"node_modules/jsbn": {"version": "1.1.0","resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz","integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==","license": "MIT","optional": true},"node_modules/kuler": {"version": "2.0.0","resolved": "https://registry.npmjs.org/kuler/-/kuler-2.0.0.tgz",23 unmodified lines"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==","license": "MIT"},"node_modules/lru-cache": {"version": "6.0.0","resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz","integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==","license": "ISC","optional": true,"dependencies": {"yallist": "^4.0.0"},"engines": {"node": ">=10"}},"node_modules/make-fetch-happen": {"version": "9.1.0","resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-9.1.0.tgz","integrity": "sha512-+zopwDy7DNknmwPQplem5lAZX/eCOzSvSNNcSKm5eVwTkOBzoktEfXsa9L23J/GIRhxRsaxzkPEhrJEpE2F4Gg==","license": "ISC","optional": true,"dependencies": {"agentkeepalive": "^4.1.3","cacache": "^15.2.0","http-cache-semantics": "^4.1.0","http-proxy-agent": "^4.0.1","https-proxy-agent": "^5.0.0","is-lambda": "^1.0.1","lru-cache": "^6.0.0","minipass": "^3.1.3","minipass-collect": "^1.0.2","minipass-fetch": "^1.3.2","minipass-flush": "^1.0.5","minipass-pipeline": "^1.2.4","negotiator": "^0.6.2","promise-retry": "^2.0.1","socks-proxy-agent": "^6.0.0","ssri": "^8.0.0"},"engines": {"node": ">= 10"}},"node_modules/media-typer": {"version": "0.3.0","resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",51 unmodified lines"node": ">= 0.6"}},"node_modules/mimic-response": {"version": "3.1.0","resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz","integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==","license": "MIT","engines": {"node": ">=10"},"funding": {"url": "https://github.com/sponsors/sindresorhus"}},"node_modules/minimatch": {"version": "3.1.2","resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz","integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==","license": "ISC","optional": true,"dependencies": {"brace-expansion": "^1.1.7"},"engines": {"node": "*"}},"node_modules/minimist": {"version": "1.2.8","resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz","integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==","license": "MIT","funding": {"url": "https://github.com/sponsors/ljharb"}},"node_modules/minipass": {"version": "3.3.6","resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz","integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==","license": "ISC","dependencies": {"yallist": "^4.0.0"},"engines": {"node": ">=8"}},"node_modules/minipass-collect": {"version": "1.0.2","resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-1.0.2.tgz","integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==","license": "ISC","optional": true,"dependencies": {"minipass": "^3.0.0"},"engines": {"node": ">= 8"}},"node_modules/minipass-fetch": {"version": "1.4.1","resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-1.4.1.tgz","integrity": "sha512-CGH1eblLq26Y15+Azk7ey4xh0J/XfJfrCox5LDJiKqI2Q2iwOLOKrlmIaODiSQS8d18jalF6y2K2ePUm0CmShw==","license": "MIT","optional": true,"dependencies": {"minipass": "^3.1.0","minipass-sized": "^1.0.3","minizlib": "^2.0.0"},"engines": {"node": ">=8"},"optionalDependencies": {"encoding": "^0.1.12"}},"node_modules/minipass-flush": {"version": "1.0.5","resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.5.tgz","integrity": "sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==","license": "ISC","optional": true,"dependencies": {"minipass": "^3.0.0"},"engines": {"node": ">= 8"}},"node_modules/minipass-pipeline": {"version": "1.2.4","resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz","integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==","license": "ISC","optional": true,"dependencies": {"minipass": "^3.0.0"},"engines": {"node": ">=8"}},"node_modules/minipass-sized": {"version": "1.0.3","resolved": "https://registry.npmjs.org/minipass-sized/-/minipass-sized-1.0.3.tgz","integrity": "sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g==","license": "ISC","optional": true,"dependencies": {"minipass": "^3.0.0"},"engines": {"node": ">=8"}},"node_modules/minizlib": {"version": "2.1.2","resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz","integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==","license": "MIT","dependencies": {"minipass": "^3.0.0","yallist": "^4.0.0"},"engines": {"node": ">= 8"}},"node_modules/mkdirp": {"version": "1.0.4","resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz","integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==","license": "MIT","bin": {"mkdirp": "bin/cmd.js"},"engines": {"node": ">=10"}},"node_modules/mkdirp-classic": {"version": "0.5.3","resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz","integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==","license": "MIT"},"node_modules/moment": {"version": "2.30.1","resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz",9 unmodified lines"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==","license": "MIT"},"node_modules/napi-build-utils": {"version": "1.0.2","resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz","integrity": "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==","license": "MIT"},"node_modules/negotiator": {"version": "0.6.3","resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",3 unmodified lines"node": ">= 0.6"}},"node_modules/node-abi": {"version": "3.67.0","resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.67.0.tgz","integrity": "sha512-bLn/fU/ALVBE9wj+p4Y21ZJWYFjUXLXPi/IewyLZkx3ApxKDNBWCKdReeKOtD8dWpOdDCeMyLh6ZewzcLsG2Nw==","license": "MIT","dependencies": {"semver": "^7.3.5"},"engines": {"node": ">=10"}},"node_modules/node-addon-api": {"version": "7.1.1","resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz","integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==","license": "MIT"},"node_modules/node-gyp": {"version": "8.4.1","resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-8.4.1.tgz","integrity": "sha512-olTJRgUtAb/hOXG0E93wZDs5YiJlgbXxTwQAFHyNlRsXQnYzUaF2aGgujZbw+hR8aF4ZG/rST57bWMWD16jr9w==","license": "MIT","optional": true,"dependencies": {"env-paths": "^2.2.0","glob": "^7.1.4","graceful-fs": "^4.2.6","make-fetch-happen": "^9.1.0","nopt": "^5.0.0","npmlog": "^6.0.0","rimraf": "^3.0.2","semver": "^7.3.5","tar": "^6.1.2","which": "^2.0.2"},"bin": {"node-gyp": "bin/node-gyp.js"},"engines": {"node": ">= 10.12.0"}},"node_modules/nopt": {"version": "5.0.0","resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz","integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==","license": "ISC","optional": true,"dependencies": {"abbrev": "1"},"bin": {"nopt": "bin/nopt.js"},"engines": {"node": ">=6"}},"node_modules/npmlog": {"version": "6.0.2","resolved": "https://registry.npmjs.org/npmlog/-/npmlog-6.0.2.tgz","integrity": "sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==","deprecated": "This package is no longer supported.","license": "ISC","optional": true,"dependencies": {"are-we-there-yet": "^3.0.0","console-control-strings": "^1.1.0","gauge": "^4.0.3","set-blocking": "^2.0.0"},"engines": {"node": "^12.13.0 || ^14.15.0 || >=16.0.0"}},"node_modules/object-assign": {"version": "4.1.1","resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",33 unmodified lines"ee-first": "1.1.1"},"engines": {"node": ">= 0.8"}},"node_modules/once": {"version": "1.4.0","resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz","integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==","license": "ISC","dependencies": {"wrappy": "1"}},"node_modules/one-time": {"version": "1.0.0","resolved": "https://registry.npmjs.org/one-time/-/one-time-1.0.0.tgz","integrity": "sha512-5DXOiRKwuSEcQ/l0kGCF6Q3jcADFv5tSmRaJck/OqkVFcOzutB134KRSfF0xDrL39MNnqxbHBbUUcjZIhTgb2g==","license": "MIT","dependencies": {"fn.name": "1.x.x"}},"node_modules/p-map": {"version": "4.0.0","resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz","integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==","license": "MIT","optional": true,"dependencies": {"aggregate-error": "^3.0.0"},"engines": {"node": ">=10"},"funding": {"url": "https://github.com/sponsors/sindresorhus"}},"node_modules/parseurl": {"version": "1.3.3","resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz","integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==","license": "MIT","engines": {"node": ">= 0.8"}},"node_modules/path-is-absolute": {"version": "1.0.1","resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz","integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==","license": "MIT","optional": true,"engines": {"node": ">=0.10.0"}},"node_modules/path-to-regexp": {"version": "0.1.7","resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz","integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==","license": "MIT"},"node_modules/prebuild-install": {"version": "7.1.2","resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.2.tgz","integrity": "sha512-UnNke3IQb6sgarcZIDU3gbMeTp/9SSU1DAIkil7PrqG1vZlBtY5msYccSKSHDqa3hNg436IXK+SNImReuA1wEQ==","license": "MIT","dependencies": {"detect-libc": "^2.0.0","expand-template": "^2.0.3","github-from-package": "0.0.0","minimist": "^1.2.3","mkdirp-classic": "^0.5.3","napi-build-utils": "^1.0.1","node-abi": "^3.3.0","pump": "^3.0.0","rc": "^1.2.7","simple-get": "^4.0.0","tar-fs": "^2.0.0","tunnel-agent": "^0.6.0"},"bin": {"prebuild-install": "bin.js"},"engines": {"node": ">=10"}},"node_modules/promise-inflight": {"version": "1.0.1","resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz","integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==","license": "ISC","optional": true},"node_modules/promise-retry": {"version": "2.0.1","resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz","integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==","license": "MIT","optional": true,"dependencies": {"err-code": "^2.0.2","retry": "^0.12.0"},"engines": {"node": ">=10"}},"node_modules/proxy-addr": {15 unmodified lines"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==","license": "MIT"},"node_modules/pump": {"version": "3.0.0","resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz","integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==","license": "MIT","dependencies": {"end-of-stream": "^1.1.0","once": "^1.3.1"}},"node_modules/qs": {"version": "6.11.0","resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz",33 unmodified lines"node": ">= 0.8"}},"node_modules/rc": {"version": "1.2.8","resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz","integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==","license": "(BSD-2-Clause OR MIT OR Apache-2.0)","dependencies": {"deep-extend": "^0.6.0","ini": "~1.3.0","minimist": "^1.2.0","strip-json-comments": "~2.0.1"},"bin": {"rc": "cli.js"}},"node_modules/readable-stream": {"version": "3.6.2","resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",8 unmodified lines"node": ">= 6"}},"node_modules/retry": {"version": "0.12.0","resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz","integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==","license": "MIT","optional": true,"engines": {"node": ">= 4"}},"node_modules/rimraf": {"version": "3.0.2","resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz","integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==","deprecated": "Rimraf versions prior to v4 are no longer supported","license": "ISC","optional": true,"dependencies": {"glob": "^7.1.3"},"bin": {"rimraf": "bin.js"},"funding": {"url": "https://github.com/sponsors/isaacs"}},"node_modules/safe-buffer": {31 unmodified lines"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==","license": "MIT"},"node_modules/semver": {"version": "7.6.3","resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz","integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==","license": "ISC","bin": {"semver": "bin/semver.js"},"engines": {"node": ">=10"}},"node_modules/send": {"version": "0.18.0","resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz",39 unmodified lines"node": ">= 0.8.0"}},"node_modules/set-blocking": {"version": "2.0.0","resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz","integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==","license": "ISC","optional": true},"node_modules/set-function-length": {"version": "1.2.2","resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",35 unmodified lines"url": "https://github.com/sponsors/ljharb"}},"node_modules/signal-exit": {"version": "3.0.7","resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz","integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==","license": "ISC","optional": true},"node_modules/simple-concat": {"version": "1.0.1","resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz","integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==","funding": [{"type": "github","url": "https://github.com/sponsors/feross"},{"type": "patreon","url": "https://www.patreon.com/feross"},{"type": "consulting","url": "https://feross.org/support"}],"license": "MIT"},"node_modules/simple-get": {"version": "4.0.1","resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz","integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==","funding": [{"type": "github","url": "https://github.com/sponsors/feross"},{"type": "patreon","url": "https://www.patreon.com/feross"},{"type": "consulting","url": "https://feross.org/support"}],"license": "MIT","dependencies": {"decompress-response": "^6.0.0","once": "^1.3.1","simple-concat": "^1.0.0"}},"node_modules/simple-swizzle": {"version": "0.2.2","resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz",3 unmodified lines"is-arrayish": "^0.3.1"}},"node_modules/smart-buffer": {"version": "4.2.0","resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz","integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==","license": "MIT","optional": true,"engines": {"node": ">= 6.0.0","npm": ">= 3.0.0"}},"node_modules/socks": {"version": "2.8.3","resolved": "https://registry.npmjs.org/socks/-/socks-2.8.3.tgz","integrity": "sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw==","license": "MIT","optional": true,"dependencies": {"ip-address": "^9.0.5","smart-buffer": "^4.2.0"},"engines": {"node": ">= 10.0.0","npm": ">= 3.0.0"}},"node_modules/socks-proxy-agent": {"version": "6.2.1","resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-6.2.1.tgz","integrity": "sha512-a6KW9G+6B3nWZ1yB8G7pJwL3ggLy1uTzKAgCb7ttblwqdz9fMGJUuTy3uFzEP48FAs9FLILlmzDlE2JJhVQaXQ==","license": "MIT","optional": true,"dependencies": {"agent-base": "^6.0.2","debug": "^4.3.3","socks": "^2.6.2"},"engines": {"node": ">= 10"}},"node_modules/socks-proxy-agent/node_modules/debug": {"version": "4.3.6","resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz","integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==","license": "MIT","optional": true,"dependencies": {"ms": "2.1.2"},"engines": {"node": ">=6.0"},"peerDependenciesMeta": {"supports-color": {"optional": true}}},"node_modules/socks-proxy-agent/node_modules/ms": {"version": "2.1.2","resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz","integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==","license": "MIT","optional": true},"node_modules/sprintf-js": {"version": "1.1.3","resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz","integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==","license": "BSD-3-Clause","optional": true},"node_modules/sqlite3": {"version": "5.1.7","resolved": "https://registry.npmjs.org/sqlite3/-/sqlite3-5.1.7.tgz","integrity": "sha512-GGIyOiFaG+TUra3JIfkI/zGP8yZYLPQ0pl1bH+ODjiX57sPhrLU5sQJn1y9bDKZUFYkX1crlrPfSYt0BKKdkog==","hasInstallScript": true,"license": "BSD-3-Clause","dependencies": {"bindings": "^1.5.0","node-addon-api": "^7.0.0","prebuild-install": "^7.1.1","tar": "^6.1.11"},"optionalDependencies": {"node-gyp": "8.x"},"peerDependencies": {"node-gyp": "8.x"},"peerDependenciesMeta": {"node-gyp": {"optional": true}}},"node_modules/ssri": {"version": "8.0.1","resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz","integrity": "sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==","license": "ISC","optional": true,"dependencies": {"minipass": "^3.1.1"},"engines": {"node": ">= 8"}},"node_modules/stack-trace": {23 unmodified lines"safe-buffer": "~5.2.0"}},"node_modules/string-width": {"version": "4.2.3","resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz","integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==","license": "MIT","optional": true,"dependencies": {"emoji-regex": "^8.0.0","is-fullwidth-code-point": "^3.0.0","strip-ansi": "^6.0.1"},"engines": {"node": ">=8"}},"node_modules/strip-ansi": {"version": "6.0.1","resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz","integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==","license": "MIT","optional": true,"dependencies": {"ansi-regex": "^5.0.1"},"engines": {"node": ">=8"}},"node_modules/strip-json-comments": {"version": "2.0.1","resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz","integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==","license": "MIT","engines": {"node": ">=0.10.0"}},"node_modules/tar": {"version": "6.2.1","resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz","integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==","license": "ISC","dependencies": {"chownr": "^2.0.0","fs-minipass": "^2.0.0","minipass": "^5.0.0","minizlib": "^2.1.1","mkdirp": "^1.0.3","yallist": "^4.0.0"},"engines": {"node": ">=10"}},"node_modules/tar-fs": {"version": "2.1.1","resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz","integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==","license": "MIT","dependencies": {"chownr": "^1.1.1","mkdirp-classic": "^0.5.2","pump": "^3.0.0","tar-stream": "^2.1.4"}},"node_modules/tar-fs/node_modules/chownr": {"version": "1.1.4","resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz","integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==","license": "ISC"},"node_modules/tar-stream": {"version": "2.2.0","resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz","integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==","license": "MIT","dependencies": {"bl": "^4.0.3","end-of-stream": "^1.4.1","fs-constants": "^1.0.0","inherits": "^2.0.3","readable-stream": "^3.1.1"},"engines": {"node": ">=6"}},"node_modules/tar/node_modules/minipass": {"version": "5.0.0","resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz","integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==","license": "ISC","engines": {"node": ">=8"}},"node_modules/text-hex": {"version": "1.0.0","resolved": "https://registry.npmjs.org/text-hex/-/text-hex-1.0.0.tgz",18 unmodified lines"node": ">= 14.0.0"}},"node_modules/tunnel-agent": {"version": "0.6.0","resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz","integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==","license": "Apache-2.0","dependencies": {"safe-buffer": "^5.0.1"},"engines": {"node": "*"}},"node_modules/type-is": {"version": "1.6.18","resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",7 unmodified lines"node": ">= 0.6"}},"node_modules/unique-filename": {"version": "1.1.1","resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz","integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==","license": "ISC","optional": true,"dependencies": {"unique-slug": "^2.0.0"}},"node_modules/unique-slug": {"version": "2.0.2","resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz","integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==","license": "ISC","optional": true,"dependencies": {"imurmurhash": "^0.1.4"}},"node_modules/unpipe": {"version": "1.0.0","resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",27 unmodified lines"node": ">= 0.8"}},"node_modules/which": {"version": "2.0.2","resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz","integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==","license": "ISC","optional": true,"dependencies": {"isexe": "^2.0.0"},"bin": {"node-which": "bin/node-which"},"engines": {"node": ">= 8"}},"node_modules/wide-align": {"version": "1.1.5","resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz","integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==","license": "ISC","optional": true,"dependencies": {"string-width": "^1.0.2 || 2 || 3 || 4"}},"node_modules/winston": {"version": "3.14.2","resolved": "https://registry.npmjs.org/winston/-/winston-3.14.2.tgz",48 unmodified lines"node": ">= 12.0.0"}},"node_modules/wrappy": {"version": "1.0.2","resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz","integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==","license": "ISC"},"node_modules/yallist": {"version": "4.0.0",
11 unmodified lines12131415161718192021222311 unmodified lines"dependencies": {"async": "^3.2.6","axios": "^1.7.5","bottleneck": "^2.19.5","cors": "^2.8.5","dotenv": "^16.4.5","express": "^4.19.2","pg": "^8.13.0","redis": "^4.7.0","winston": "^3.14.2","winston-daily-rotate-file": "^5.0.0"}11 unmodified lines1213141516171819202111 unmodified lines"dependencies": {"async": "^3.2.6","axios": "^1.7.5","cors": "^2.8.5","dotenv": "^16.4.5","express": "^4.19.2","sqlite3": "^5.1.7","winston": "^3.14.2","winston-daily-rotate-file": "^5.0.0"}
308 unmodified lines309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386124 unmodified lines5115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298301 unmodified line83283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811594 unmodified lines11641165116611671168116911703 unmodified lines11741175117611771178117911801181118211831184118511861 unmodified line118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912709 unmodified lines12801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313042 unmodified lines130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515064 unmodified lines1511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204308 unmodified linestransition: background-color 0.3s, transform 0.2s;}#connectTraktButton {background-color: #e9e9ed;color: #333;display: inline-flex;align-items: center;justify-content: center;padding: 10px 20px;border: none;cursor: pointer;border-radius: 8px;}#connectTraktButton:hover {background-color: #d3d3d3;color: #333;}.trakt-logo {width: 38px;height: 38px;display: inline-flex;align-items: center;justify-content: center;margin-right: 10px;vertical-align: middle;}#connectTraktButton span {display: inline-block;vertical-align: middle;}@media (max-width: 768px) {#connectTraktButton {margin: 0 auto;display: flex;align-items: center;justify-content: center;padding: 12px 20px;}#connectTraktButton span {display: inline-block;vertical-align: middle;}.trakt-logo {width: 36px;height: 36px;margin-right: 8px;}}body.dark-mode #connectTraktButton {background-color: #555;color: #f0f0f5;border: 1px solid #666;}body.dark-mode #connectTraktButton:hover {background-color: #666;color: #f0f0f5;}#confirmButton {background-color: #007aff;}#confirmButton:hover {background-color: #007aff;}#installButton {background-color: #007aff;}124 unmodified linescolor: #333;}}.custom-select-container {position: relative;width: 100%;}.tags-input {display: flex;flex-wrap: wrap;align-items: center;gap: 5px;padding: 5px;border: 1px solid #ccc;border-radius: 8px;position: relative;}#regionSearchInput {border: none;outline: none;flex-grow: 1;padding: 8px;font-size: 1rem;min-width: 100px;}.custom-dropdown {position: absolute;top: 100%;left: 0;width: 100%;max-height: 350px;overflow-y: auto;background-color: #fff;border: 1px solid #ccc;border-radius: 0 0 8px 8px;z-index: 100;display: none;}.dropdown-option {padding: 8px;cursor: pointer;}.dropdown-option:hover {background-color: #f0f0f5;}.tag {display: inline-flex;align-items: center;background-color: #e9e9ed;color: #333;border-radius: 8px;padding: 5px 10px;font-size: 0.9rem;margin-right: 5px;margin-bottom: 5px;}.tag .flag {margin-right: 5px;}.tag .country-name {margin-right: 5px;}body.dark-mode .custom-select-container {background-color: #555;color: #f0f0f5;border: 1px solid #666;border-radius: 8px;width: 100%;position: relative;}body.dark-mode .tags-input {display: flex;flex-wrap: wrap;align-items: center;gap: 5px;padding: 5px;background-color: #555;border: 1px solid #666;border-radius: 8px;position: relative;color: #f0f0f5;}body.dark-mode #regionSearchInput {background-color: #555;color: #f0f0f5;border: none;outline: none;flex-grow: 1;padding: 8px;font-size: 1rem;min-width: 100px;}body.dark-mode .custom-dropdown {background-color: #555;border: 1px solid #666;border-radius: 0 0 8px 8px;z-index: 100;max-height: 350px;overflow-y: auto;display: none;}body.dark-mode .dropdown-option {padding: 8px;background-color: #555;color: #f0f0f5;cursor: pointer;transition: background-color 0.2s;}body.dark-mode .dropdown-option:hover {background-color: #666;}body.dark-mode .tag {display: inline-flex;align-items: center;background-color: #666;color: #f0f0f5;border-radius: 8px;padding: 5px 10px;font-size: 0.9rem;margin-right: 5px;margin-bottom: 5px;}body.dark-mode .tag .flag,body.dark-mode .tag .country-name {color: #f0f0f5;}.toggle-switch {position: relative;display: inline-block;width: 40px;height: 20px;margin-left: 10px;vertical-align: middle;}.toggle-switch input {opacity: 0;width: 0;height: 0;}.slider {position: absolute;cursor: pointer;top: 0;left: 0;right: 0;bottom: 0;background-color: #ccc;transition: 0.4s;border-radius: 34px;}.slider:before {position: absolute;content: "";height: 14px;width: 14px;left: 3px;bottom: 3px;background-color: white;transition: 0.4s;border-radius: 50%;}input:checked + .slider {background-color: #4caf50;}input:checked + .slider:before {transform: translateX(20px);}body.dark-mode .picmo__picker {background-color: #444;color: #f0f0f5;border: 1px solid #666;}body.dark-mode .picmo__category {background-color: #555;color: #f0f0f5;}body.dark-mode .picmo__emoji {background-color: #555;color: #f0f0f5;}body.dark-mode .picmo__emoji:hover {background-color: #666;}body.dark-mode .picmo__search {background-color: #555;color: #f0f0f5;border: 1px solid #666;}body.dark-mode .picmo__search input {background-color: #555;color: #f0f0f5;border: 1px solid #666;}body.dark-mode .picmo__footer {background-color: #444;border-top: 1px solid #666;}body.dark-mode .picmo__category-label {color: #f0f0f5;}body.dark-mode .picmo__skin-tone-selector {background-color: #555;color: #f0f0f5;border: 1px solid #666;}body.dark-mode .picmo__skin-tone-selector:hover {background-color: #666;}.provider {position: relative;display: inline-block;}.provider img {width: 100px;height: auto;display: block;}.region-flag {position: absolute;bottom: 0;right: 0;font-size: 20px;width: 24px;height: 24px;background-color: #ffffff;display: flex;justify-content: center;align-items: center;box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);}/* Style pour les boutons radio "additionalContent" */.form-element .radio-group {display: flex;flex-direction: column; /* Aligne verticalement */gap: 10px; /* Espace entre les labels */margin-bottom: 20px;}.form-element .radio-group label {display: inline-flex;align-items: center;color: #333;cursor: pointer;gap: 10px; /* Espace entre le texte du label et le bouton */}.form-element .radio-group label span {flex-grow: 1; /* Permet d'occuper tout l'espace restant pour aligner les boutons à droite du plus long label */}.form-element .radio-group input[type="radio"] {appearance: none;width: 12px;height: 12px;border-radius: 50%;border: 2px solid #ccc;background-color: #fff;cursor: pointer;transition: background-color 0.3s, border-color 0.3s;}.form-element .radio-group input[type="radio"]:checked {background-color: #007aff;border-color: #007aff;}/* Mode sombre */body.dark-mode .radio-group input[type="radio"] {border-color: #666;background-color: #555;}body.dark-mode .radio-group input[type="radio"]:checked {background-color: #4caf50;border-color: #4caf50;}body.dark-mode .radio-group label {color: #f0f0f5;}</style></head><html>1 unmodified line<div id="addon"><div id="theme-toggle" class="theme-toggle" title="Toggle Dark/Light Mode"> 🌙 </div><div class="logo"><img src="/assets/logo.png" alt="Addon Logo" /></div><h1 class="name">Streaming Catalog Providers</h1><h2 class="version">1.3.0</h2><h2 class="description">Catalog from TMDB streaming providers</h2><div id="popup" class="popup"></div><div id="interface1"><div class="form-element"><label for="tmdbApiKey">TMDB API key (<a href="https://www.themoviedb.org/settings/api" target="_blank" style="color: #007aff;">Get it here</a>)</label><input type="text" id="tmdbApiKey" name="tmdbApiKey" required /></div><button type="button" id="confirmButton">CONFIRM</button></div><div id="interface2" style="display: none;"><div class="separator"></div><h3 class="providers-title">Available providers</h3><div class="form-element"><label for="regionSelect">Catalog regions</label><div class="custom-select-container" id="regionSelectContainer"><div class="tags-input" id="tagsInput"><input type="text" id="regionSearchInput" placeholder="Type or select a region..." /></div><div id="regionDropdown" class="custom-dropdown"></div></div></div><div class="form-element"><input type="text" id="searchProviders" placeholder="Search providers..." /></div><div id="providers" class="provider-container"></div><div class="separator"></div><form class="pure-form" id="mainForm"><div class="form-element"><label for="language"> Language </label><select id="language" name="language" required><option value="">Select your language</option></select></div><div class="form-element"><label for="ageRange"> Age range (content moderation) <span id="infoIcon" class="info-icon" title="Learn more">?</span></label><select id="ageRange" name="ageRange"><option value="">Select your age range</option><option value="0-5">0-5 years</option><option value="6-11">6-11 years</option><option value="12-15">12-15 years</option><option value="16-17">16-17 years</option><option value="18+">18+ years</option></select></div><div class="separator"></div><div class="form-element"><label for="rpdbApiKey">RPDB API key (<a href="https://ratingposterdb.com/api-key/" target="_blank" style="color: #007aff;">Get it here</a>) </label><input type="text" id="rpdbApiKey" name="rpdbApiKey"></div><div class="separator"></div><div class="form-element"><label for="fanartApiKey">Fanart API key (<a href="https://fanart.tv/get-an-api-key" target="_blank" style="color: #007aff;">Get it here</a>) </label><input type="text" id="fanartApiKey" name="fanartApiKey"></div><div class="separator"></div><div class="form-element"><button type="button" id="connectTraktButton"><img src="/assets/logoTrakt.png" alt="Trakt Logo" class="trakt-logo">Connect to Trakt</button></div><div class="separator"></div><div class="form-element"><label for="popularCatalogTitle">Popular catalog title</label><input type="text" id="popularCatalogTitle" name="popularCatalogTitle" placeholder="Replace 'Popular' in catalog title"></div><div class="form-element"><label for="newCatalogTitle">New catalog title</label><input type="text" id="newCatalogTitle" name="newCatalogTitle" placeholder="Replace 'New' in catalog title"></div><div class="form-element"><label for="filterContentWithoutPoster">Do not display content that does not have a poster (often bad results)<div class="toggle-switch"><input type="checkbox" id="filterContentWithoutPoster" name="filterContentWithoutPoster" value="true"><span class="slider"></span></div></label></div><div class="form-element"><label for="recommendationsToggle">Get recommendations related to the content on the content details page<div class="toggle-switch"><input type="checkbox" id="recommendationsToggle" name="recommendationsToggle"><span class="slider"></span></div></label><input type="text" id="recommendationsText" placeholder="Replace 'Recommendations' in content page" style="display:none;" /></div><div class="form-element"><label for="similarToggle">Get similar content related to the content on the content details page<div class="toggle-switch"><input type="checkbox" id="similarToggle" name="similarToggle"><span class="slider"></span></div></label><input type="text" id="similarText" placeholder="Replace 'Similar' in content page" style="display:none;" /></div><div class="separator"></div><h3 class="selected-providers-title">Selected providers</h3><div id="selectedProviders" class="provider-container"></div><div class="separator"></div><div class="button-container"><button type="button" id="installButton">INSTALL</button><button type="button" id="copyButton">COPY LINK</button></div><div class="separator"></div></form><div id="infoModal" class="modal"><span id="modalClose" class="modal-close">×</span><h4>Age Range Content Moderation</h4><p> The content moderation system filters media based on the selected age range to ensure suitability for viewers. Here's how it works: </p><ul><li><strong>0-5 years:</strong> Uses the US certification 'G' (General Audience). Filters out content that is not suitable for very young children. This includes genres such as horror, drama, thriller, crime, war, western, erotic, war & politics, talk-show, soap-opera, reality-show, news, mystery, documentary, and history.</li><li><strong>6-11 years:</strong> Uses the US certification 'G' (General Audience). Filters out content unsuitable for young children, maintaining a focus on safe, family-friendly genres. The same genres as for 0-5 years are excluded.</li><li><strong>12-15 years:</strong> Uses the US certification 'PG' (Parental Guidance). Allows content with mild themes appropriate for older children and pre-teens. No specific genres are excluded for this age range.</li><li><strong>16-17 years:</strong> Uses the US certification 'PG-13' (Parents Strongly Cautioned). Permits content suitable for older teens, including more complex and mature themes but not adult content. No specific genres are excluded for this age range.</li><li><strong>18+ years:</strong> Includes all content, even those with adult themes and explicit material. For this age range, no genres are excluded.</li></ul><p><p><strong>Warning:</strong> Please note that the data for this content moderation system is sourced from TMDB (The Movie Database) and may contain inaccuracies. Viewer discretion is advised.</p></p></div></div></div><img id="countdownImage" src="/assets/countdown.webp" alt="Old Film Countdown" style="display:none; position:fixed; top:0; left:0; width:100%; height:100%; z-index:10000;"><script src="/js/languages.js"></script><script src="/js/countries.js"></script><script>document.addEventListener('DOMContentLoaded', () => {const urlParams = new URLSearchParams(window.location.search);const traktUsername = urlParams.get('username');if (traktUsername) {const connectButton = document.getElementById('connectTraktButton');connectButton.style.display = 'none';const usernameDisplay = document.createElement('div');usernameDisplay.id = 'traktUsername';usernameDisplay.textContent = `Connected as: ${traktUsername}`;connectButton.parentNode.appendChild(usernameDisplay);const toggleContainer = document.createElement('div');toggleContainer.className = 'form-element';toggleContainer.style.marginTop = '10px';toggleContainer.style.marginBottom = '10px';toggleContainer.style.display = 'flex';toggleContainer.style.flexDirection = 'column';const toggleLabel = document.createElement('label');toggleLabel.setAttribute('for', 'hideTraktHistory');toggleLabel.textContent = 'Mark the Trakt history as watched in the catalogs';const toggleSwitch = document.createElement('div');toggleSwitch.className = 'toggle-switch';const toggleInput = document.createElement('input');toggleInput.type = 'checkbox';toggleInput.id = 'hideTraktHistory';toggleInput.name = 'hideTraktHistory';const toggleSlider = document.createElement('span');toggleSlider.className = 'slider';toggleSwitch.appendChild(toggleInput);toggleSwitch.appendChild(toggleSlider);toggleLabel.appendChild(toggleSwitch);toggleContainer.appendChild(toggleLabel);usernameDisplay.parentNode.appendChild(toggleContainer);const additionalLabelContainer = document.createElement('div');additionalLabelContainer.className = 'additional-label';additionalLabelContainer.style.display = 'none';additionalLabelContainer.style.alignItems = 'center';const additionalLabel = document.createElement('label');additionalLabel.textContent = 'Adds ✔️ in front of their name';const emojiIcon = document.createElement('span');emojiIcon.innerHTML = '⚙️';emojiIcon.style.marginLeft = '10px';emojiIcon.style.cursor = 'pointer';emojiIcon.style.fontSize = '1em';additionalLabelContainer.appendChild(additionalLabel);additionalLabelContainer.appendChild(emojiIcon);usernameDisplay.parentNode.appendChild(additionalLabelContainer);const emojiContainer = document.createElement('div');emojiContainer.style.position = 'fixed';emojiContainer.style.display = 'none';emojiContainer.style.backgroundColor = '#fff';emojiContainer.style.border = '1px solid #ccc';emojiContainer.style.zIndex = '1000';emojiContainer.style.width = '90%';emojiContainer.style.height = 'auto';emojiContainer.style.maxWidth = '400px';emojiContainer.style.maxHeight = '400px';emojiContainer.style.overflow = 'auto';emojiContainer.style.left = '50%';emojiContainer.style.top = '50%';emojiContainer.style.transform = 'translate(-50%, -50%)';emojiContainer.style.boxSizing = 'border-box';emojiContainer.style.borderRadius = '8px';emojiContainer.style.scrollbarWidth = 'none';emojiContainer.style.overflow = 'hidden';document.body.appendChild(emojiContainer);import('https://cdn.skypack.dev/picmo').then(({ createPicker }) => {const picker = createPicker({rootElement: emojiContainer,theme: 'auto',});emojiIcon.addEventListener('click', (event) => {event.stopPropagation();event.preventDefault();emojiContainer.style.display = 'block';document.addEventListener('click', (event) => {if (!emojiContainer.contains(event.target) && !emojiIcon.contains(event.target)) {emojiContainer.style.display = 'none';}});});picker.addEventListener('emoji:select', (event) => {additionalLabel.textContent = `Adds ${event.emoji} in front of their name`;emojiContainer.style.display = 'none';});});toggleInput.addEventListener('change', function() {if (toggleInput.checked) {additionalLabelContainer.style.display = 'flex';additionalLabelContainer.style.width = '100%';} else {additionalLabelContainer.style.display = 'none';}});const traktToggleContainer = document.createElement('div');traktToggleContainer.className = 'form-element';traktToggleContainer.style.marginTop = '10px';traktToggleContainer.style.marginBottom = '10px';traktToggleContainer.style.display = 'flex';traktToggleContainer.style.flexDirection = 'column';const traktToggleLabel = document.createElement('label');traktToggleLabel.setAttribute('for', 'addWatchedButton');traktToggleLabel.textContent = 'Add a mark as watched button to update Trakt';const traktToggleSwitch = document.createElement('div');traktToggleSwitch.className = 'toggle-switch';const traktToggleInput = document.createElement('input');traktToggleInput.type = 'checkbox';traktToggleInput.id = 'addWatchedButton';traktToggleInput.name = 'addWatchedButton';const traktToggleSlider = document.createElement('span');traktToggleSlider.className = 'slider';traktToggleSwitch.appendChild(traktToggleInput);traktToggleSwitch.appendChild(traktToggleSlider);traktToggleLabel.appendChild(traktToggleSwitch);traktToggleContainer.appendChild(traktToggleLabel);usernameDisplay.parentNode.appendChild(traktToggleContainer);const markAsWatchedContainer = document.createElement('div');markAsWatchedContainer.id = 'markAsWatchedContainer';markAsWatchedContainer.style.display = 'none';markAsWatchedContainer.style.marginTop = '10px';const markAsWatchedTextbox = document.createElement('input');markAsWatchedTextbox.type = 'text';markAsWatchedTextbox.value = 'Mark as watched';markAsWatchedTextbox.id = 'markAsWatchedTextbox';markAsWatchedTextbox.style.width = '100%';markAsWatchedTextbox.style.padding = '8px';markAsWatchedTextbox.style.fontSize = '16px';markAsWatchedContainer.appendChild(markAsWatchedTextbox);usernameDisplay.parentNode.appendChild(markAsWatchedContainer);traktToggleInput.addEventListener('change', function() {if (traktToggleInput.checked) {markAsWatchedContainer.style.display = 'block';} else {markAsWatchedContainer.style.display = 'none';}});}function populateLanguageDropdown() {const dropdown = document.getElementById('language');languages.forEach(lang => {4 unmodified lines});}populateLanguageDropdown();const mainForm = document.getElementById('mainForm');const installButton = document.getElementById('installButton');const copyButton = document.getElementById('copyButton');3 unmodified linesconst infoModal = document.getElementById('infoModal');const modalClose = document.getElementById('modalClose');const selectedProvidersContainer = document.getElementById('selectedProviders');const confirmButton = document.getElementById('confirmButton');const interface1 = document.getElementById('interface1');const interface2 = document.getElementById('interface2');let providersData = [];let selectedProviders = [];let providersMap = {};new Sortable(selectedProvidersContainer, {animation: 150,ghostClass: 'sortable-ghost',1 unmodified lineselectedProviders = Array.from(selectedProvidersContainer.querySelectorAll('.selected-provider')).map(div => div.getAttribute('data-id'));}});const renderSelectedProviders = () => {selectedProvidersContainer.innerHTML = selectedProviders.map(providerId => {const provider = providersMap[providerId];if (!provider) return '';const regionCode = Object.keys(JSON.parse(provider.display_priorities)).find(region => selectedRegions.includes(region));return `<div class="selected-provider" data-id="${providerId}"><img src="https://image.tmdb.org/t/p/w500/${provider.logo_path}" alt="${provider.provider_name}" title="${provider.provider_name}" /><button class="remove-button" data-id="${providerId}">×</button></div>`;}).join('');document.querySelectorAll('.remove-button').forEach(button => {button.addEventListener('click', (event) => {const providerId = event.target.getAttribute('data-id');selectedProviders = selectedProviders.filter(id => id !== providerId);const providerElement = document.querySelector(`.provider[data-id="${providerId}"]`);if (providerElement) providerElement.style.display = 'block';const regionCode = providerElement.getAttribute('data-region');if (!selectedProviders.some(id => {const provider = providersMap[id];const displayPriorities = JSON.parse(provider.display_priorities);return Object.keys(displayPriorities).includes(regionCode);})) {selectedRegions = selectedRegions.filter(region => region !== regionCode);}renderSelectedProviders();});});};const fetchProviders = async (apiKey) => {try {const response = await fetch('/fetch-providers', {method: 'POST',headers: {'Content-Type': 'application/json',},body: JSON.stringify({ apiKey }),});if (!response.ok) {throw new Error('Failed to fetch providers');}const providers = await response.json();return providers;} catch (error) {console.error('Error fetching providers:', error);showPopup('Failed to fetch providers. Please check your API key and try again.', 'error');return [];}};const renderProviders = () => {if (selectedRegions.length === 0) {providersContainer.innerHTML = '';return;}let filteredProviders = providersData.filter(provider => {const displayPriorities = JSON.parse(provider.display_priorities || '{}');return selectedRegions.some(regionCode => displayPriorities[regionCode] !== undefined);});filteredProviders.sort((a, b) => a.provider_name.localeCompare(b.provider_name));providersContainer.innerHTML = filteredProviders.map(provider => `<div class="provider" data-id="${provider.provider_id}"><img src="https://image.tmdb.org/t/p/w500/${provider.logo_path}" alt="${provider.provider_name}" title="${provider.provider_name}" /></div>`).join('');document.querySelectorAll('.provider').forEach(provider => {provider.addEventListener('click', () => {9 unmodified lines});});};confirmButton.addEventListener('click', async () => {const apiKey = document.getElementById('tmdbApiKey').value.trim();if (!apiKey) {showPopup('Please enter your TMDB API key.', 'error');return;}providersData = await fetchProviders(apiKey);populateProvidersMap();const event = new Event('providersLoaded');confirmButton.dispatchEvent(event);renderProviders('ALL');interface1.style.display = 'none';interface2.style.display = 'block';});const showInfoModal = () => {infoModal.style.display = 'block';};2 unmodified lines};infoIcon.addEventListener('click', showInfoModal);modalClose.addEventListener('click', hideInfoModal);let selectedRegions = [];const populateRegionDropdown = () => {const regionDropdown = document.getElementById('regionDropdown');regionDropdown.innerHTML = '';const sortedCountries = countries.sort((a, b) => a.english_name.localeCompare(b.english_name));sortedCountries.forEach(country => {const option = document.createElement('div');option.className = 'dropdown-option';option.setAttribute('data-value', country.iso_3166_1);const flag = country.iso_3166_1.toUpperCase().replace(/./g, char => String.fromCodePoint(127397 + char.charCodeAt()));option.innerHTML = `${flag} ${country.english_name}`;option.onclick = () => {addSelectedRegion(country.iso_3166_1, flag, country.english_name);filterRegionDropdown('');document.getElementById('regionSearchInput').value = '';regionDropdown.style.display = 'none';};regionDropdown.appendChild(option);});};const filterRegionDropdown = (searchTerm) => {const options = document.querySelectorAll('.dropdown-option');options.forEach(option => {const text = option.textContent.toLowerCase();option.style.display = text.includes(searchTerm.toLowerCase()) ? 'block' : 'none';});document.getElementById('regionDropdown').style.display = 'block';};document.getElementById('regionSearchInput').addEventListener('input', function () {const searchTerm = this.value;filterRegionDropdown(searchTerm);});const addSelectedRegion = (regionCode, flag, countryName) => {if (!selectedRegions.includes(regionCode)) {selectedRegions.push(regionCode);}if (!document.querySelector(`.tag[data-id='${regionCode}']`)) {const tag = document.createElement('span');tag.className = 'tag';tag.setAttribute('data-id', regionCode);tag.innerHTML = `<span class="flag">${flag}</span><span class="country-name">${countryName}</span>`;tag.addEventListener('click', () => {removeSelectedRegion(regionCode);});document.getElementById('regionSearchInput').parentNode.insertBefore(tag, document.getElementById('regionSearchInput'));}renderProviders();};const removeSelectedRegion = (regionCode) => {selectedRegions = selectedRegions.filter(code => code !== regionCode);document.querySelector(`.tag[data-id='${regionCode}']`).remove();renderProviders();};populateRegionDropdown();document.getElementById('regionSearchInput').addEventListener('focus', function () {document.getElementById('regionDropdown').style.display = 'block';});document.addEventListener('click', function (event) {const regionContainer = document.getElementById('regionSelectContainer');if (!regionContainer.contains(event.target)) {document.getElementById('regionDropdown').style.display = 'none';}});const encodeToBase64 = (str) => {return btoa(unescape(encodeURIComponent(str)));};const getStremioLink = () => {const config = Object.fromEntries(new FormData(mainForm));config.providers = selectedProviders;config.ageRange = document.getElementById('ageRange').value;config.tmdbApiKey = document.getElementById('tmdbApiKey').value.trim();config.regions = selectedRegions;config.filterContentWithoutPoster = document.getElementById('filterContentWithoutPoster').checked ? 'true' : '';config.traktUsername = traktUsername || '';config.hideTraktHistory = document.getElementById('hideTraktHistory') ? document.getElementById('hideTraktHistory').checked.toString() : 'false';const additionalLabel = document.querySelector('.additional-label label');const watchedEmoji = additionalLabel ? additionalLabel.textContent.split(' ')[1] || '✔️' : '✔️';config.watchedEmoji = watchedEmoji;const addWatchedTraktBtnToggle = document.getElementById('addWatchedButton');if (addWatchedTraktBtnToggle && addWatchedTraktBtnToggle.checked) {const markAsWatchedTextbox = document.getElementById('markAsWatchedTextbox');config.addWatchedTraktBtn = markAsWatchedTextbox ? markAsWatchedTextbox.value.trim() : '';}const recommendationsToggle = document.getElementById('recommendationsToggle').checked;const similarToggle = document.getElementById('similarToggle').checked;const recommendationsText = document.getElementById('recommendationsText').value.trim() || 'Recommendations';const similarText = document.getElementById('similarText').value.trim() || 'Similar';if (recommendationsToggle && similarToggle) {config.additionalContent = 'recommendations-similar';config.recommendationsTitle = recommendationsText;config.similarTitle = similarText;} else if (recommendationsToggle) {config.additionalContent = 'recommendations';config.recommendationsTitle = recommendationsText;} else if (similarToggle) {config.additionalContent = 'similar';config.similarTitle = similarText;}const encodedConfig = encodeToBase64(JSON.stringify(config));return "stremio://" + window.location.host + "/" + encodedConfig + "/manifest.json";};const getHttpsLink = () => {const config = Object.fromEntries(new FormData(mainForm));config.providers = selectedProviders;config.ageRange = document.getElementById('ageRange').value;config.tmdbApiKey = document.getElementById('tmdbApiKey').value.trim();config.regions = selectedRegions;config.filterContentWithoutPoster = document.getElementById('filterContentWithoutPoster').checked ? 'true' : '';config.traktUsername = traktUsername || '';config.hideTraktHistory = document.getElementById('hideTraktHistory') ? document.getElementById('hideTraktHistory').checked.toString() : 'false';const additionalLabel = document.querySelector('.additional-label label');const watchedEmoji = additionalLabel ? additionalLabel.textContent.split(' ')[1] || '✔️' : '✔️';config.watchedEmoji = watchedEmoji;const addWatchedTraktBtnToggle = document.getElementById('addWatchedButton');if (addWatchedTraktBtnToggle && addWatchedTraktBtnToggle.checked) {const markAsWatchedTextbox = document.getElementById('markAsWatchedTextbox');config.addWatchedTraktBtn = markAsWatchedTextbox ? markAsWatchedTextbox.value.trim() : '';}const recommendationsToggle = document.getElementById('recommendationsToggle').checked;const similarToggle = document.getElementById('similarToggle').checked;const recommendationsText = document.getElementById('recommendationsText').value.trim() || 'Recommendations';const similarText = document.getElementById('similarText').value.trim() || 'Similar';if (recommendationsToggle && similarToggle) {config.additionalContent = 'recommendations-similar';config.recommendationsTitle = recommendationsText;config.similarTitle = similarText;} else if (recommendationsToggle) {config.additionalContent = 'recommendations';config.recommendationsTitle = recommendationsText;} else if (similarToggle) {config.additionalContent = 'similar';config.similarTitle = similarText;}const encodedConfig = encodeToBase64(JSON.stringify(config));return "https://" + window.location.host + "/" + encodedConfig + "/manifest.json";};const showPopup = (message, type) => {popup.textContent = message;popup.className = `popup ${type}`;popup.style.display = 'block';setTimeout(() => {popup.style.display = 'none';}, 5000);};const validateForm = () => {const language = document.getElementById('language').value.trim();const ageRange = document.getElementById('ageRange').value.trim();const regionSearchInput = document.getElementById('regionSearchInput').value.trim();const isRegionSelected = selectedRegions.length > 0;return isRegionSelected && language && ageRange && selectedProviders.length > 0;};copyButton.onclick = () => {if (!validateForm()) {showPopup('Please select at least one Catalog regions, your Language, an Age Range and choose at least one provider.', 'error');return;}const link = getHttpsLink();4 unmodified linesshowPopup('Failed to copy the link.', 'error');});};installButton.onclick = () => {if (!validateForm()) {showPopup('Please select at least one Catalog regions, your Language, an Age Range and choose at least one provider.', 'error');return;}const link = getStremioLink();window.location.href = link;};document.getElementById('theme-toggle').addEventListener('click', () => {document.body.classList.toggle('dark-mode');const isDarkMode = document.body.classList.contains('dark-mode');document.getElementById('theme-toggle').textContent = isDarkMode ? '🌞' : '🌙';});let snakeGameActive = false;const snakeGameCanvas = document.createElement('canvas');const snakeGameContext = snakeGameCanvas.getContext('2d');snakeGameCanvas.width = window.innerWidth;snakeGameCanvas.height = window.innerHeight;snakeGameCanvas.style.position = 'fixed';snakeGameCanvas.style.top = '0';snakeGameCanvas.style.left = '0';snakeGameCanvas.style.zIndex = '1000';snakeGameCanvas.style.backgroundColor = '#f0f0f0';document.body.appendChild(snakeGameCanvas);snakeGameCanvas.style.display = 'none';const SNAKE_SIZE = Math.min(40, window.innerWidth / 20);let snake;let dx;let dy;let foodX;let foodY;let changingDirection;let providersIcons = [];let currentFoodIcon;let eatenIcons = new Set();let iconsCache = {};let gameSpeed = 85;const resetGame = () => {snake = [{ x: 160, y: 160 },{ x: 160 - SNAKE_SIZE, y: 160 },{ x: 160 - 2 * SNAKE_SIZE, y: 160 },{ x: 160 - 3 * SNAKE_SIZE, y: 160 },];dx = SNAKE_SIZE;dy = 0;changingDirection = false;eatenIcons.clear();generateFood();};const snakeGame = () => {fetchProviderIcons();resetGame();document.getElementById('addon').style.display = 'none';snakeGameCanvas.style.display = 'block';snakeGameActive = true;document.addEventListener('keydown', changeDirection);addTouchControls();main();};function main() {if (hasGameEnded()) {displayScoreAndIcons();return;}if (eatenIcons.size === providersIcons.length) {displayScoreAndIcons(true);return;}setTimeout(() => {changingDirection = false;clearCanvas();drawScore();drawFood();advanceSnake();drawSnake();main();}, gameSpeed);}function clearCanvas() {snakeGameContext.fillStyle = '#f0f0f0';snakeGameContext.fillRect(0, 0, snakeGameCanvas.width, snakeGameCanvas.height);snakeGameContext.strokeRect(0, 0, snakeGameCanvas.width, snakeGameCanvas.height);}function drawScore() {snakeGameContext.font = '20px Arial';snakeGameContext.fillStyle = 'black';snakeGameContext.textAlign = 'left';snakeGameContext.textBaseline = 'top';snakeGameContext.fillText('Score: ' + eatenIcons.size, 10, 10);}function drawSnake() {for (let i = 0; i < snake.length; i++) {if (i === 0) {drawSnakeHead(snake[i]);} else {drawSnakePart(snake[i]);}}}function drawSnakeHead(snakePart) {snakeGameContext.fillStyle = 'lightgreen';snakeGameContext.strokeStyle = 'darkgreen';snakeGameContext.lineWidth = 2;snakeGameContext.fillRect(snakePart.x, snakePart.y, SNAKE_SIZE, SNAKE_SIZE);snakeGameContext.strokeRect(snakePart.x, snakePart.y, SNAKE_SIZE, SNAKE_SIZE);snakeGameContext.fillStyle = 'black';snakeGameContext.beginPath();snakeGameContext.arc(snakePart.x + 10, snakePart.y + 10, 3, 0, 2 * Math.PI);snakeGameContext.arc(snakePart.x + 30, snakePart.y + 10, 3, 0, 2 * Math.PI);snakeGameContext.fill();snakeGameContext.strokeStyle = 'red';snakeGameContext.lineWidth = 2;snakeGameContext.beginPath();snakeGameContext.moveTo(snakePart.x + 20, snakePart.y + 20);snakeGameContext.lineTo(snakePart.x + 20, snakePart.y + 35);snakeGameContext.stroke();}function drawSnakePart(snakePart) {snakeGameContext.fillStyle = 'lightgreen';snakeGameContext.strokeStyle = 'darkgreen';snakeGameContext.fillRect(snakePart.x, snakePart.y, SNAKE_SIZE, SNAKE_SIZE);snakeGameContext.strokeRect(snakePart.x, snakePart.y, SNAKE_SIZE, SNAKE_SIZE);}function advanceSnake() {const head = { x: snake[0].x + dx, y: snake[0].y + dy };snake.unshift(head);if (Math.abs(head.x - foodX) < SNAKE_SIZE && Math.abs(head.y - foodY) < SNAKE_SIZE) {eatenIcons.add(currentFoodIcon);generateFood();} else {snake.pop();}}function changeDirection(event) {const keyPressed = event.keyCode;const goingUp = dy === -SNAKE_SIZE;const goingDown = dy === SNAKE_SIZE;const goingRight = dx === SNAKE_SIZE;const goingLeft = dx === -SNAKE_SIZE;if (changingDirection) return;changingDirection = true;if (keyPressed === 37 && !goingRight) {dx = -SNAKE_SIZE;dy = 0;}if (keyPressed === 38 && !goingDown) {dx = 0;dy = -SNAKE_SIZE;}if (keyPressed === 39 && !goingLeft) {dx = SNAKE_SIZE;dy = 0;}if (keyPressed === 40 && !goingUp) {dx = 0;dy = SNAKE_SIZE;}}function fetchProviderIcons() {const providerElements = document.querySelectorAll('#providers .provider img');providersIcons = Array.from(providerElements).map(img => img.src);providersIcons.forEach(iconSrc => {const img = new Image();img.src = iconSrc;iconsCache[iconSrc] = img;});}function generateFood() {if (providersIcons.length === 0) return;const availableIcons = providersIcons.filter(icon => !eatenIcons.has(icon));currentFoodIcon = availableIcons[Math.floor(Math.random() * availableIcons.length)];foodX = Math.round((Math.random() * (snakeGameCanvas.width - SNAKE_SIZE)) / SNAKE_SIZE) * SNAKE_SIZE;foodY = Math.round((Math.random() * (snakeGameCanvas.height - SNAKE_SIZE)) / SNAKE_SIZE) * SNAKE_SIZE;}function drawFood() {const foodImage = iconsCache[currentFoodIcon];if (foodImage) {snakeGameContext.drawImage(foodImage, foodX, foodY, SNAKE_SIZE, SNAKE_SIZE);snakeGameContext.strokeStyle = 'red';snakeGameContext.lineWidth = 2;snakeGameContext.strokeRect(foodX, foodY, SNAKE_SIZE, SNAKE_SIZE);}}function hasGameEnded() {for (let i = 4; i < snake.length; i++) {const hasCollided = snake[i].x === snake[0].x && snake[i].y === snake[0].y;if (hasCollided) return true;}const hitLeftWall = snake[0].x < 0;const hitRightWall = snake[0].x >= snakeGameCanvas.width;const hitTopWall = snake[0].y < 0;const hitBottomWall = snake[0].y >= snakeGameCanvas.height;return hitLeftWall || hitRightWall || hitTopWall || hitBottomWall;}function displayScoreAndIcons(won = false) {clearCanvas();snakeGameContext.font = '30px Arial';snakeGameContext.fillStyle = 'black';snakeGameContext.textAlign = 'center';const message = won ? 'Congratulations, you won!' : 'Game Over!';snakeGameContext.fillText(message, snakeGameCanvas.width / 2, snakeGameCanvas.height / 2 - 40);snakeGameContext.fillText('Score: ' + eatenIcons.size, snakeGameCanvas.width / 2, snakeGameCanvas.height / 2);let startX = snakeGameCanvas.width / 2 - (eatenIcons.size * (SNAKE_SIZE / 2));let startY = snakeGameCanvas.height / 2 + 40;let iconsPerRow = Math.floor(snakeGameCanvas.width / (SNAKE_SIZE + 10));let currentIconIndex = 0;eatenIcons.forEach(iconSrc => {const img = new Image();img.src = iconSrc;img.onload = () => {snakeGameContext.drawImage(img, startX, startY, SNAKE_SIZE, SNAKE_SIZE);currentIconIndex++;startX += SNAKE_SIZE + 10;if (currentIconIndex >= iconsPerRow) {startX = snakeGameCanvas.width / 2 - (eatenIcons.size * (SNAKE_SIZE / 2));startY += SNAKE_SIZE + 10;currentIconIndex = 0;}};});createQuitButton();}function createQuitButton() {const quitButton = document.createElement('button');quitButton.textContent = 'Quit';quitButton.style.position = 'fixed';quitButton.style.top = '20px';quitButton.style.right = '20px';quitButton.style.zIndex = '1001';quitButton.style.padding = '10px 20px';quitButton.style.fontSize = '20px';quitButton.style.backgroundColor = '#ff4d4d';quitButton.style.color = 'white';quitButton.style.border = 'none';quitButton.style.borderRadius = '5px';quitButton.style.cursor = 'pointer';document.body.appendChild(quitButton);quitButton.onclick = () => {snakeGameCanvas.style.display = 'none';document.getElementById('addon').style.display = 'block';document.getElementById('searchProviders').value = '';quitButton.remove();snakeGameActive = false;};}function addTouchControls() {let touchStartX = 0;let touchStartY = 0;snakeGameCanvas.addEventListener('touchstart', function (event) {event.preventDefault();touchStartX = event.touches[0].clientX;touchStartY = event.touches[0].clientY;});snakeGameCanvas.addEventListener('touchmove', function (event) {event.preventDefault();const touchEndX = event.touches[0].clientX;const touchEndY = event.touches[0].clientY;const dx = touchEndX - touchStartX;const dy = touchEndY - touchStartY;if (Math.abs(dx) > Math.abs(dy)) {if (dx > 0 && dx >= 20 && !changingDirection) changeDirection({ keyCode: 39 });if (dx < 0 && dx <= -20 && !changingDirection) changeDirection({ keyCode: 37 });} else {if (dy > 0 && dy >= 20 && !changingDirection) changeDirection({ keyCode: 40 });if (dy < 0 && dy <= -20 && !changingDirection) changeDirection({ keyCode: 38 });}touchStartX = touchEndX;touchStartY = touchEndY;});}const getFlagForRegion = (isoCode) => {const flag = isoCode.toUpperCase().replace(/./g, char => String.fromCodePoint(127397 + char.charCodeAt()));console.log("Flag for region:", isoCode, "is", flag);return flag;};const getCountryInfo = (regionCode) => {const country = countries.find(c => c.iso_3166_1 === regionCode);if (country) {const flag = country.iso_3166_1.toUpperCase().replace(/./g, char => String.fromCodePoint(127397 + char.charCodeAt()));return { english_name: country.english_name, flag: flag };}return { english_name: regionCode, flag: regionCode };};document.getElementById('searchProviders').addEventListener('input', function(event) {const searchTerm = event.target.value.toLowerCase();console.log("Search term:", searchTerm);document.getElementById('providers').innerHTML = '';Object.keys(providersMap).forEach(providerId => {const provider = providersMap[providerId];const providerName = provider.provider_name.toLowerCase();if (providerName.includes(searchTerm)) {const displayPriorities = JSON.parse(provider.display_priorities);console.log("Display priorities for provider:", provider.provider_name, displayPriorities);Object.keys(displayPriorities).forEach(regionCode => {const { english_name, flag } = getCountryInfo(regionCode);const providerElement = document.createElement('div');providerElement.className = 'provider';providerElement.setAttribute('data-id', providerId);providerElement.setAttribute('data-region', regionCode);providerElement.innerHTML = `<img src="https://image.tmdb.org/t/p/w500/${provider.logo_path}" alt="${provider.provider_name}" title="${provider.provider_name}" /><span class="region-flag">${flag}</span>`;console.log("Generated HTML for provider:", providerElement.innerHTML);providerElement.addEventListener('click', function() {if (!selectedProviders.includes(providerId)) {selectedProviders.push(providerId);addSelectedRegion(regionCode, flag, english_name);}renderSelectedProviders();});document.getElementById('providers').appendChild(providerElement);});}});if (searchTerm === '') {renderProviders();}});function getQueryParams() {const url = new URL(window.location.href);const path = url.pathname.split('/')[1];if (!path || path.length < 10) {console.log('No valid base64 encoded parameters found in the URL.');return {};}try {const decodedPath = atob(path);const decodedURI = decodeURIComponent(escape(decodedPath));const config = JSON.parse(decodedURI);if (config.traktUsername && !url.searchParams.has('username')) {const currentUrl = new URL(window.location.href);currentUrl.searchParams.set('username', config.traktUsername);const newUrl = currentUrl.toString();window.location.href = newUrl;return {};}return config;} catch (error) {console.error('Error decoding or parsing configuration parameters:', error);if (path) {showPopup('Error decoding or parsing configuration parameters. Please check your input and try again.', 'error');}}return {};}function prefillFormFromUrlParams() {const params = getQueryParams();if (params.tmdbApiKey && !localStorage.getItem('tmdbApiKey')) {localStorage.setItem('tmdbApiKey', params.tmdbApiKey);}if (params.language && !localStorage.getItem('language')) {localStorage.setItem('language', params.language);}if (params.ageRange && !localStorage.getItem('ageRange')) {localStorage.setItem('ageRange', params.ageRange);}if (params.rpdbApiKey && !localStorage.getItem('rpdbApiKey')) {localStorage.setItem('rpdbApiKey', params.rpdbApiKey);}if (params.fanartApiKey && !localStorage.getItem('fanartApiKey')) {localStorage.setItem('fanartApiKey', params.fanartApiKey);}if (params.providers && !localStorage.getItem('selectedProviders')) {localStorage.setItem('selectedProviders', JSON.stringify(params.providers));}if (params.regions && !localStorage.getItem('selectedRegions')) {localStorage.setItem('selectedRegions', JSON.stringify(params.regions));}if (params.filterContentWithoutPoster && !localStorage.getItem('filterContentWithoutPoster')) {localStorage.setItem('filterContentWithoutPoster', params.filterContentWithoutPoster);}if (params.popularCatalogTitle && !localStorage.getItem('popularCatalogTitle')) {localStorage.setItem('popularCatalogTitle', params.popularCatalogTitle);}if (params.newCatalogTitle && !localStorage.getItem('newCatalogTitle')) {localStorage.setItem('newCatalogTitle', params.newCatalogTitle);}if (params.recommendationsToggle && !localStorage.getItem('recommendationsToggle')) {localStorage.setItem('recommendationsToggle', params.recommendationsToggle);}if (params.recommendationsText && !localStorage.getItem('recommendationsText')) {localStorage.setItem('recommendationsText', params.recommendationsText);}if (params.similarToggle && !localStorage.getItem('similarToggle')) {localStorage.setItem('similarToggle', params.similarToggle);}if (params.similarText && !localStorage.getItem('similarText')) {localStorage.setItem('similarText', params.similarText);}const tmdbApiKey = localStorage.getItem('tmdbApiKey');const language = localStorage.getItem('language');const ageRange = localStorage.getItem('ageRange');const rpdbApiKey = localStorage.getItem('rpdbApiKey');const fanartApiKey = localStorage.getItem('fanartApiKey');const savedProviders = localStorage.getItem('selectedProviders');const savedRegions = localStorage.getItem('selectedRegions');const filterContentWithoutPoster = localStorage.getItem('filterContentWithoutPoster');const popularCatalogTitle = localStorage.getItem('popularCatalogTitle');const newCatalogTitle = localStorage.getItem('newCatalogTitle');const recommendationsToggle = localStorage.getItem('recommendationsToggle');const recommendationsText = localStorage.getItem('recommendationsText');const similarToggle = localStorage.getItem('similarToggle');const similarText = localStorage.getItem('similarText');if (tmdbApiKey) {document.getElementById('tmdbApiKey').value = tmdbApiKey;confirmButton.click();}if (language) {document.getElementById('language').value = language;}if (ageRange) {document.getElementById('ageRange').value = ageRange;}if (rpdbApiKey) {document.getElementById('rpdbApiKey').value = rpdbApiKey;}if (fanartApiKey) {document.getElementById('fanartApiKey').value = fanartApiKey;}if (filterContentWithoutPoster === 'true') {document.getElementById('filterContentWithoutPoster').checked = true;} else if (filterContentWithoutPoster === 'false') {document.getElementById('filterContentWithoutPoster').checked = false;}if (savedProviders) {selectedProviders = JSON.parse(savedProviders);if (providersData.length > 0) {populateProvidersMap();renderSelectedProviders();} else {confirmButton.addEventListener('providersLoaded', () => {populateProvidersMap();renderSelectedProviders();}, { once: true });}}if (savedRegions) {selectedRegions = JSON.parse(savedRegions);selectedRegions.forEach(regionCode => {const country = countries.find(c => c.iso_3166_1 === regionCode);if (country) {const flag = country.iso_3166_1.toUpperCase().replace(/./g, char => String.fromCodePoint(127397 + char.charCodeAt()));addSelectedRegion(regionCode, flag, country.english_name);}});}if (popularCatalogTitle) {document.getElementById('popularCatalogTitle').value = popularCatalogTitle;}if (newCatalogTitle) {document.getElementById('newCatalogTitle').value = newCatalogTitle;}if (recommendationsToggle === 'true') {document.getElementById('recommendationsToggle').checked = true;document.getElementById('recommendationsText').style.display = 'block';} else {document.getElementById('recommendationsToggle').checked = false;document.getElementById('recommendationsText').style.display = 'none';}if (recommendationsText) {document.getElementById('recommendationsText').value = recommendationsText;}if (similarToggle === 'true') {document.getElementById('similarToggle').checked = true;document.getElementById('similarText').style.display = 'block';} else {document.getElementById('similarToggle').checked = false;document.getElementById('similarText').style.display = 'none';}if (similarText) {document.getElementById('similarText').value = similarText;}localStorage.removeItem('tmdbApiKey');localStorage.removeItem('language');localStorage.removeItem('ageRange');localStorage.removeItem('rpdbApiKey');localStorage.removeItem('fanartApiKey');localStorage.removeItem('selectedProviders');localStorage.removeItem('selectedRegions');localStorage.removeItem('filterContentWithoutPoster');localStorage.removeItem('popularCatalogTitle');localStorage.removeItem('newCatalogTitle');localStorage.removeItem('recommendationsToggle');localStorage.removeItem('recommendationsText');localStorage.removeItem('similarToggle');localStorage.removeItem('similarText');}const populateProvidersMap = () => {providersData.forEach(provider => {providersMap[provider.provider_id] = provider;});};prefillFormFromUrlParams();fetch('/env').then(response => response.json()).then(env => {document.getElementById('connectTraktButton').addEventListener('click', () => {localStorage.setItem('tmdbApiKey', document.getElementById('tmdbApiKey').value.trim());localStorage.setItem('language', document.getElementById('language').value);localStorage.setItem('ageRange', document.getElementById('ageRange').value);localStorage.setItem('rpdbApiKey', document.getElementById('rpdbApiKey').value);localStorage.setItem('fanartApiKey', document.getElementById('fanartApiKey').value);localStorage.setItem('selectedProviders', JSON.stringify(selectedProviders));localStorage.setItem('selectedRegions', JSON.stringify(selectedRegions));localStorage.setItem('filterContentWithoutPoster', document.getElementById('filterContentWithoutPoster').checked ? 'true' : 'false');localStorage.setItem('popularCatalogTitle', document.getElementById('popularCatalogTitle').value.trim());localStorage.setItem('newCatalogTitle', document.getElementById('newCatalogTitle').value.trim());localStorage.setItem('recommendationsToggle', document.getElementById('recommendationsToggle').checked ? 'true' : 'false');localStorage.setItem('recommendationsText', document.getElementById('recommendationsText').value.trim());localStorage.setItem('similarToggle', document.getElementById('similarToggle').checked ? 'true' : 'false');localStorage.setItem('similarText', document.getElementById('similarText').value.trim());const clientId = env.TRAKT_CLIENT_ID;const redirectUri = `${window.location.origin}/callback`;const traktAuthUrl = `https://trakt.tv/oauth/authorize?response_type=code&client_id=${clientId}&redirect_uri=${encodeURIComponent(redirectUri)}`;window.location.href = traktAuthUrl;});document.getElementById('recommendationsToggle').addEventListener('change', function() {const recommendationsText = document.getElementById('recommendationsText');if (this.checked) {recommendationsText.style.display = 'block';} else {recommendationsText.style.display = 'none';recommendationsText.value = '';}});document.getElementById('similarToggle').addEventListener('change', function() {const similarText = document.getElementById('similarText');if (this.checked) {similarText.style.display = 'block';} else {similarText.style.display = 'none';similarText.value = '';}});}).catch(error => console.error('Error fetching environment variables:', error));const logo = document.querySelector('.logo');let logoClickCount = 0;let countdownActive = false;logo.addEventListener('click', () => {if (!countdownActive) {logoClickCount++;if (logoClickCount >= 5) {startCountdown();}}});function startCountdown() {const countdownImage = document.getElementById('countdownImage');const addonContent = document.getElementById('addon');countdownActive = true;logoClickCount = 0;addonContent.style.display = 'none';countdownImage.style.display = 'none';countdownImage.src = '';countdownImage.src = '/assets/countdown.webp';countdownImage.style.display = 'block';setTimeout(() => {countdownImage.style.display = 'none';window.location.href = 'https://www.youtube.com/watch?v=GFq6wH5JR2A&t=43s';}, 10000);}document.getElementById('recommendationsToggle').addEventListener('change', function() {const recommendationsText = document.getElementById('recommendationsText');if (this.checked) {recommendationsText.style.display = 'block';} else {recommendationsText.style.display = 'none';recommendationsText.value = '';}});document.getElementById('similarToggle').addEventListener('change', function() {const similarText = document.getElementById('similarText');if (this.checked) {similarText.style.display = 'block';} else {similarText.style.display = 'none';similarText.value = '';}});});</script></body></html>308 unmodified lines309310311312313314124 unmodified lines4394404414424434441 unmodified line4464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315324 unmodified lines5375385395405415423 unmodified lines5465475485495505515525531 unmodified line5555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996009 unmodified lines6106116126136146152 unmodified lines6186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506514 unmodified lines656657658659660661662663664665666667668669670671672673674675676677678679680681682683308 unmodified linestransition: background-color 0.3s, transform 0.2s;}#installButton {background-color: #007aff;}124 unmodified linescolor: #333;}}</style></head><html>1 unmodified line<div id="addon"><div id="theme-toggle" class="theme-toggle" title="Toggle Dark/Light Mode"> 🌙 </div><div class="logo"><img src="assets/logo.png" alt="Addon Logo" /></div><h1 class="name">Streaming Catalog Providers</h1><h2 class="version">1.0.0</h2><h2 class="description">Choose your streaming providers below.</h2><div class="separator"></div><h3 class="providers-title">Available providers</h3><div class="form-element"><input type="text" id="searchProviders" placeholder="Search providers..." /></div><div id="providers" class="provider-container"></div><div class="separator"></div><form class="pure-form" id="mainForm"><div class="form-element"><label for="tmdbApiKey"> TMDB API key (<a href="https://www.themoviedb.org/settings/api" target="_blank" style="color: #007aff;">Get it here</a>) </label><input type="text" id="tmdbApiKey" name="tmdbApiKey" /></div><div class="form-element"><label for="language"> Language </label><select id="language" name="language" required><option value="">Select your language</option></select></div><div class="form-element"><label for="ageRange"> Age range (content moderation) <span id="infoIcon" class="info-icon" title="Learn more">?</span></label><select id="ageRange" name="ageRange"><option value="">Select your age range</option><option value="0-5">0-5 years</option><option value="6-11">6-11 years</option><option value="12-15">12-15 years</option><option value="16-17">16-17 years</option><option value="18+">18+ years</option></select></div><div class="separator"></div><div class="form-element"><label for="rpdbApiKey">RPDB API key (<a href="https://ratingposterdb.com/api-key/" target="_blank" style="color: #007aff;">Get it here</a>) </label><input type="text" id="rpdbApiKey" name="rpdbApiKey"></div><div class="separator"></div><h3 class="selected-providers-title">Selected providers</h3><div id="selectedProviders" class="provider-container"></div><div class="separator"></div><div class="button-container"><button type="button" id="installButton">INSTALL</button><button type="button" id="copyButton">COPY LINK</button></div><div class="separator"></div></form><div id="popup" class="popup"></div><div id="infoModal" class="modal"><span id="modalClose" class="modal-close">×</span><h4>Age Range Content Moderation</h4><p> The content moderation system filters media based on the selected age range to ensure suitability for viewers. Here's how it works: </p><ul><li><strong>0-5 years:</strong> Uses the US certification 'G' (General Audience). Filters out content that is not suitable for very young children. This includes genres such as horror, drama, thriller, crime, war, western, erotic, war & politics, talk-show, soap-opera, reality-show, news, mystery, documentary, and history.</li><li><strong>6-11 years:</strong> Uses the US certification 'G' (General Audience). Filters out content unsuitable for young children, maintaining a focus on safe, family-friendly genres. The same genres as for 0-5 years are excluded.</li><li><strong>12-15 years:</strong> Uses the US certification 'PG' (Parental Guidance). Allows content with mild themes appropriate for older children and pre-teens. No specific genres are excluded for this age range.</li><li><strong>16-17 years:</strong> Uses the US certification 'PG-13' (Parents Strongly Cautioned). Permits content suitable for older teens, including more complex and mature themes but not adult content. No specific genres are excluded for this age range.</li><li><strong>18+ years:</strong> Includes all content, even those with adult themes and explicit material. For this age range, no genres are excluded.</li></ul><p><p><strong>Warning:</strong> Please note that the data for this content moderation system is sourced from TMDB (The Movie Database) and may contain inaccuracies. Viewer discretion is advised.</p></p></div><script src="js/languages.js"></script><script>document.addEventListener('DOMContentLoaded', () => {function populateLanguageDropdown() {const dropdown = document.getElementById('language');languages.forEach(lang => {4 unmodified lines});}populateLanguageDropdown();const mainForm = document.getElementById('mainForm');const installButton = document.getElementById('installButton');const copyButton = document.getElementById('copyButton');3 unmodified linesconst infoModal = document.getElementById('infoModal');const modalClose = document.getElementById('modalClose');const selectedProvidersContainer = document.getElementById('selectedProviders');let selectedProviders = [];let providersMap = {};new Sortable(selectedProvidersContainer, {animation: 150,ghostClass: 'sortable-ghost',1 unmodified lineselectedProviders = Array.from(selectedProvidersContainer.querySelectorAll('.selected-provider')).map(div => div.getAttribute('data-id'));}});const renderSelectedProviders = () => {selectedProvidersContainer.innerHTML = selectedProviders.map(providerId => `<div class="selected-provider" data-id="${providerId}"><img src="https://image.tmdb.org/t/p/w500/${providersMap[providerId].logo_path}" alt="${providersMap[providerId].display_name}" title="${providersMap[providerId].display_name}" /><button class="remove-button" data-id="${providerId}">×</button></div>`).join('');document.querySelectorAll('.remove-button').forEach(button => {button.addEventListener('click', (event) => {const providerId = event.target.getAttribute('data-id');selectedProviders = selectedProviders.filter(id => id !== providerId);const providerElement = document.querySelector(`.provider[data-id="${providerId}"]`);if (providerElement) providerElement.style.display = 'block';renderSelectedProviders();});});};const fetchProviders = async () => {try {const response = await fetch('/providers');if (!response.ok) {throw new Error('Failed to fetch providers');}const providers = await response.json();providersMap = providers.reduce((map, provider) => {map[provider.id] = provider;return map;}, {});return providers;} catch (error) {console.error('Error fetching providers:', error);return [];}};const renderProviders = async () => {const providers = await fetchProviders();providers.sort((a, b) => a.display_name.localeCompare(b.display_name));providersContainer.innerHTML = providers.map(provider => `<div class="provider" data-id="${provider.id}"><img src="https://image.tmdb.org/t/p/w500/${provider.logo_path}" alt="${provider.display_name}" title="${provider.display_name}" /></div>`).join('');document.querySelectorAll('.provider').forEach(provider => {provider.addEventListener('click', () => {9 unmodified lines});});};const showInfoModal = () => {infoModal.style.display = 'block';};2 unmodified lines};infoIcon.addEventListener('click', showInfoModal);modalClose.addEventListener('click', hideInfoModal);const getStremioLink = () => {const config = Object.fromEntries(new FormData(mainForm));config.providers = selectedProviders;config.ageRange = document.getElementById('ageRange').value;return "stremio://" + window.location.host + "/" + encodeURIComponent(JSON.stringify(config)) + "/manifest.json";};const getHttpsLink = () => {const config = Object.fromEntries(new FormData(mainForm));config.providers = selectedProviders;config.ageRange = document.getElementById('ageRange').value;return "https://" + window.location.host + "/" + encodeURIComponent(JSON.stringify(config)) + "/manifest.json";};const showPopup = (message, type) => {popup.textContent = message;popup.className = `popup ${type}`;popup.style.display = 'block';setTimeout(() => {popup.style.display = 'none';}, 3000);};const validateForm = () => {const language = document.getElementById('language').value.trim();const ageRange = document.getElementById('ageRange').value.trim();return language && ageRange && selectedProviders.length > 0;};copyButton.onclick = () => {if (!validateForm()) {showPopup('Configuration incomplete: Please select a Language, an Age Range and choose at least one provider.', 'error');return;}const link = getHttpsLink();4 unmodified linesshowPopup('Failed to copy the link.', 'error');});};installButton.onclick = () => {if (!validateForm()) {showPopup('Configuration incomplete: Please select a Language, an Age Range and choose at least one provider.', 'error');return;}const link = getStremioLink();window.location.href = link;};renderProviders();document.getElementById('theme-toggle').addEventListener('click', () => {document.body.classList.toggle('dark-mode');const isDarkMode = document.body.classList.contains('dark-mode');document.getElementById('theme-toggle').textContent = isDarkMode ? '🌞' : '🌙';});document.getElementById('searchProviders').addEventListener('input', function(event) {const searchTerm = event.target.value.toLowerCase();document.querySelectorAll('#providers .provider').forEach(provider => {const providerName = providersMap[provider.getAttribute('data-id')].display_name.toLowerCase();provider.style.display = providerName.includes(searchTerm) ? 'flex' : 'none';});});});</script></body></html>
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112const { catalogDb } = require('./db');const log = require('./utils/logger');const fs = require('fs');const path = require('path');const axios = require('axios');const { CACHE_CATALOG_CONTENT_DURATION_DAYS, CACHE_POSTER_CONTENT_DURATION_DAYS } = process.env;const baseUrl = process.env.BASE_URL || 'http://localhost:7000';
const defaultCacheDurationDays = 3;const cacheCatalogDurationDays = parseInt(CACHE_CATALOG_CONTENT_DURATION_DAYS, 10) || defaultCacheDurationDays;const cacheCatalogDurationMillis = cacheCatalogDurationDays * 24 * 60 * 60 * 1000;
const posterCacheDurationDays = parseInt(CACHE_POSTER_CONTENT_DURATION_DAYS, 10) || defaultCacheDurationDays;const posterCacheDurationMillis = posterCacheDurationDays * 24 * 60 * 60 * 1000;
log.debug(`Cache duration for catalog: ${cacheCatalogDurationMillis} milliseconds (${cacheCatalogDurationDays} days)`);log.debug(`Cache duration for posters: ${posterCacheDurationMillis} milliseconds (${posterCacheDurationDays} days)`);
const getCache = (key) => { return new Promise((resolve, reject) => { catalogDb.get("SELECT value, expiration FROM cache WHERE key = ?", [key], (err, row) => { if (err) { log.error(`Error fetching cache for key ${key}:`, err); return reject(err); } if (row && row.expiration > Date.now()) { log.info(`Cache hit for key ${key}`); resolve(JSON.parse(row.value)); } else { log.info(`Cache miss for key ${key}`); resolve(null); } }); });};
const setCache = (key, value, page = 1, skip = 0, providerId = null, type = null, sortBy = null, ageRange = null) => { const expiration = Date.now() + cacheCatalogDurationMillis; log.debug(`Setting cache with expiration: ${new Date(expiration).toUTCString()}`);
catalogDb.run(` INSERT OR REPLACE INTO cache (key, value, expiration, page, skip, provider_id, type, sortBy, ageRange) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`, [key, JSON.stringify(value), expiration, page, skip, providerId, type, sortBy, ageRange], (err) => { if (err) { log.error('Error setting cache:', err); } else { log.debug(`Cache set with page: ${page}, skip: ${skip}, providerId: ${providerId}, type: ${type}, sortBy: ${sortBy}, ageRange: ${ageRange}`); } } );};
const posterDirectory = path.join(__dirname, '../db/rpdbPosters');
if (!fs.existsSync(posterDirectory)) { fs.mkdirSync(posterDirectory, { recursive: true });}
const formatFileName = (posterId) => { return posterId.replace(/[^a-zA-Z0-9-_]/g, '_');};
const getCachedPoster = async (posterId) => { const formattedPosterId = formatFileName(posterId); const filePath = path.join(posterDirectory, `${formattedPosterId}.jpg`); const fileStats = fs.existsSync(filePath) ? fs.statSync(filePath) : null;
if (fileStats && (Date.now() - fileStats.mtimeMs < posterCacheDurationMillis)) { const posterUrl = `${baseUrl}/poster/${formattedPosterId}.jpg`; log.debug(`Cache hit for poster id ${posterId}, serving from ${posterUrl}`); return { poster_url: posterUrl }; } else { log.debug(`Cache miss or expired for poster id ${posterId}`); return null; }};
const setCachedPoster = async (posterId, posterUrl) => { const formattedPosterId = formatFileName(posterId); const filePath = path.join(posterDirectory, `${formattedPosterId}.jpg`);
try { const response = await axios.get(posterUrl, { responseType: 'arraybuffer' }); fs.writeFileSync(filePath, response.data); log.debug(`Poster id ${posterId} cached at ${filePath}`); } catch (error) { log.error(`Error caching poster id ${posterId} from URL ${posterUrl}: ${error.message}`); throw error; }};
const cleanUpCache = () => { catalogDb.run("DELETE FROM cache WHERE expiration <= ?", [Date.now()], (err) => { if (err) { log.error('Failed to clean up cache:', err); } else { log.info('Cache cleanup completed successfully.'); } });};
setInterval(cleanUpCache, 24 * 60 * 60 * 1000);
module.exports = { getCache, setCache, cleanUpCache, getCachedPoster, setCachedPoster};1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889const fs = require('fs');const path = require('path');const sqlite3 = require('sqlite3').verbose();const log = require('./utils/logger');
const dbDir = path.join(__dirname, '../db');
if (!fs.existsSync(dbDir)) { fs.mkdirSync(dbDir, { recursive: true }); log.debug('Created db directory');}
const providersDb = new sqlite3.Database(path.join(dbDir, 'providers.db'), (err) => { if (err) { log.error('Failed to connect to providers.db:', err); } else { log.debug('Connected to providers.db successfully'); }});
const catalogDb = new sqlite3.Database(path.join(dbDir, 'catalog.db'), (err) => { if (err) { log.error('Failed to connect to catalog.db:', err); } else { log.debug('Connected to catalog.db successfully'); }});
const genresDb = new sqlite3.Database(path.join(dbDir, 'genres.db'), (err) => { if (err) { log.error('Failed to connect to genres.db:', err); } else { log.debug('Connected to genres.db successfully'); }});
providersDb.serialize(() => { providersDb.run(`CREATE TABLE IF NOT EXISTS providers ( provider_id INTEGER PRIMARY KEY, provider_name TEXT, logo_path TEXT )`, (err) => { if (err) { log.error('Error creating providers table:', err); } else { log.debug('Providers table created or already exists'); } });});
catalogDb.serialize(() => { catalogDb.run(`CREATE TABLE IF NOT EXISTS cache ( key TEXT PRIMARY KEY, value TEXT, expiration INTEGER, page INTEGER DEFAULT 1, skip INTEGER DEFAULT 0, provider_id INTEGER, type TEXT, sortBy TEXT, ageRange TEXT )`, (err) => { if (err) { log.error('Error creating cache table:', err); } else { log.debug('Cache table created or already exists with type, sortBy, and ageRange columns'); } });});
genresDb.serialize(() => { genresDb.run(`CREATE TABLE IF NOT EXISTS genres ( genre_id INTEGER PRIMARY KEY, genre_name TEXT, media_type TEXT )`, (err) => { if (err) { log.error('Error creating genres table:', err); } else { log.debug('Genres table created or already exists'); } });});
module.exports = { providersDb, catalogDb, genresDb};123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363const express = require('express');const path = require('path');const fs = require('fs');const log = require('./utils/logger');const { requestLogger, errorHandler } = require('./utils/middleware');const { providersDb, genresDb } = require('./db');const { discoverContent, getGenres } = require('./tmdb');const { getCachedPoster, setCachedPoster } = require('./cache');const { TMDB_LANGUAGE } = process.env;const axios = require('axios');
const router = express.Router();
router.use(requestLogger);
router.get('/poster/:filename', (req, res) => { const filePath = path.join(__dirname, '../db/rpdbPosters', req.params.filename); fs.access(filePath, fs.constants.F_OK, (err) => { if (err) { log.error(`Poster not found: ${filePath}`); res.status(404).send('Poster not found'); } else { res.sendFile(filePath); } });});
router.get("/:configParameters?/catalog/:type/:id/:extra?.json", async (req, res, next) => { const { id, configParameters, type, extra: extraParam } = req.params; const extra = extraParam ? decodeURIComponent(extraParam) : ''; let ageRange = null; let genre = null; let tmdbApiKey = null; let rpdbApiKey = null; let language = TMDB_LANGUAGE; let skip = 0;
log.debug(`Received parameters: id=${id}, type=${type}, configParameters=${configParameters}, extra=${extra}`);
if (configParameters) { try { const parsedConfig = JSON.parse(decodeURIComponent(configParameters)); ageRange = parsedConfig.ageRange || null; tmdbApiKey = parsedConfig.tmdbApiKey || null; rpdbApiKey = parsedConfig.rpdbApiKey || null; language = parsedConfig.language || TMDB_LANGUAGE; log.debug(`Config parameters extracted: ageRange=${ageRange}, tmdbApiKey=${tmdbApiKey}, rpdbApiKey=${rpdbApiKey}, language=${language}`); } catch (error) { log.error(`Error parsing configParameters: ${error.message}`); } } else { log.warn('configParameters is missing'); }
const match = id.match(/^tmdb-discover-(movies|series)(-new)?-(\d+)$/); if (!match) { return res.status(400).json({ error: 'Invalid catalog id' }); } const catalogType = match[1]; const providerId = parseInt(match[3], 10); const providers = [providerId.toString()];
if (extra.startsWith('skip=')) { const skipValue = parseInt(extra.split('=')[1], 10); skip = isNaN(skipValue) ? 0 : skipValue; }
if (extra.includes('genre=')) { const genreName = extra.split('genre=')[1]; log.debug(`Extracting genre: ${genreName}`); const genreRow = await new Promise((resolve, reject) => { genresDb.get("SELECT genre_id FROM genres WHERE genre_name = ? AND media_type = ?", [genreName, type === 'series' ? 'tv' : 'movie'], (err, row) => { if (err) { reject(err); } else { resolve(row); } }); }); if (genreRow) { genre = genreRow.genre_id; log.debug(`Genre ID extracted: ${genre}`); } else { log.warn(`Genre not found for name: ${genreName}`); } } else { log.warn('Genre parameter is missing in extra'); }
try { const sortBy = catalogType === 'movies' ? (id.includes('-new') ? 'primary_release_date.desc' : 'popularity.desc') : (id.includes('-new') ? 'first_air_date.desc' : 'popularity.desc');
log.debug(`Calling discoverContent with parameters: type=${catalogType}, ageRange=${ageRange}, sortBy=${sortBy}, genre=${genre}, language=${language}, skip=${skip}`);
const discoverResults = await discoverContent(catalogType, providers, ageRange, sortBy, genre, tmdbApiKey, language, skip, type);
const getRpdbPoster = (type, id, language, rpdbkey) => { const tier = rpdbkey.split("-")[0]; const lang = language.split("-")[0]; const baseUrl = `https://api.ratingposterdb.com/${rpdbkey}/tmdb/poster-default/${type}-${id}.jpg?fallback=true`; return tier === "t1" || lang === "en" ? baseUrl : `${baseUrl}&lang=${lang}`; };
const getPosterUrl = async (content, rpdbApiKey) => { const posterId = `poster:${content.id}`; if (rpdbApiKey) { const cachedPoster = await getCachedPoster(posterId); if (cachedPoster) { log.debug(`Using cached poster URL for id ${posterId}`); return cachedPoster.poster_url; } } let posterUrl; if (rpdbApiKey) { const rpdbImage = getRpdbPoster(catalogType, content.id, language, rpdbApiKey); try { log.debug(`Fetching RPDB poster URL: ${rpdbImage}`); await axios.get(rpdbImage); posterUrl = rpdbImage; } catch (error) { log.warn('Error fetching RPDB poster, falling back to TMDB poster.'); posterUrl = `https://image.tmdb.org/t/p/w500${content.poster_path}`; } } else { posterUrl = `https://image.tmdb.org/t/p/w500${content.poster_path}`; } return posterUrl; };
const filteredResults = discoverResults.results.filter(content => content.poster_path);
const metas = await Promise.all(filteredResults.map(async (content) => ({ id: `tmdb:${content.id}`, type: catalogType === 'movies' ? 'movie' : 'series', name: catalogType === 'movies' ? content.title : content.name, poster: await getPosterUrl(content, rpdbApiKey), background: `https://image.tmdb.org/t/p/w1280${content.backdrop_path}`, description: content.overview, year: catalogType === 'movies' ? content.release_date?.split('-')[0] : content.first_air_date?.split('-')[0], imdbRating: content.vote_average ? content.vote_average.toFixed(1) : null, })));
res.json({ metas });
filteredResults.forEach(async (content) => { const posterId = `poster:${content.id}`; const posterUrl = await getPosterUrl(content, rpdbApiKey); if (rpdbApiKey && posterUrl !== `https://image.tmdb.org/t/p/w500${content.poster_path}`) { setCachedPoster(posterId, posterUrl).catch(err => log.error(`Error caching poster: ${err.message}`)); } });
} catch (error) { log.error(`Error processing request: ${error.message}`); if (!res.headersSent) { res.status(500).json({ error: 'Internal Server Error' }); } }});
router.get('/providers', (req, res) => { log.info('Route /providers: Fetching providers from the database');
providersDb.all('SELECT provider_id AS id, provider_name AS display_name, logo_path FROM providers', [], (err, rows) => { if (err) { log.error('Error querying database:', err); return res.status(500).json({ error: 'Error querying database' }); } res.json(rows); });});
router.get("/", (req, res) => { log.info('Route /: Redirecting to /configure'); res.redirect("/configure");});
router.get("/:configParameters?/configure", (req, res) => { log.info('Route /:configParameters?/configure: Sending configure.html page'); res.sendFile(path.join(__dirname, '../public/configure.html'));});
const getProvider = (providerId) => { return new Promise((resolve, reject) => { providersDb.get("SELECT * FROM providers WHERE provider_id = ?", [providerId], (err, row) => { if (err) { reject(err); } else if (row) { resolve(row); } else { resolve(null); } }); });};
const manifestTemplate = { id: 'community.tmdb-addon', version: '1.0.0', name: 'TMDB Collection Addon', description: 'Addon that provides collections from TMDB.', resources: ['catalog'], types: ['movie', 'series'], idPrefixes: ['tt'], catalogs: [], behaviorHints: { configurable: true, configurationRequired: false, }, config: [ { key: 'tmdbApiKey', type: 'text', title: 'TMDB API Key (<a href="https://www.themoviedb.org/settings/api" target="_blank">Get it here</a>)', }, { key: 'language', type: 'text', title: 'Language (<a href="https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes" target="_blank">ISO 639-1 codes</a>)', required: true, }, { key: "providers", type: "text", title: "Providers list", required: true, }, { key: "ageRange", type: "select", title: "Select Age Range", options: [ { value: "0-5", title: "0-5 years" }, { value: "6-11", title: "6-11 years" }, { value: "12-15", title: "12-15 years" }, { value: "16-17", title: "16-17 years" }, { value: "18+", title: "18+ years (Adults)" }, ], required: true, } ] };
router.get("/:configParameters?/manifest.json", async (req, res, next) => { const { configParameters } = req.params; let config = { ...req.query };
if (configParameters) { try { const decodedConfig = JSON.parse(decodeURIComponent(configParameters)); config = { ...config, ...decodedConfig }; } catch (error) { log.error(`Failed to decode configParameters: ${error.message}`, error); return res.status(400).json({ error: 'Invalid config parameters' }); } }
const providers = Array.isArray(config.providers) ? config.providers : [];
if (!providers.length) { log.error('No providers specified.'); return res.status(400).json({ error: 'No providers specified' }); }
try { const providerInfo = await Promise.all(providers.map(providerId => getProvider(providerId)));
const [movieGenres, seriesGenres] = await Promise.all([ getGenres('movie'), getGenres('series') ]);
const genreOptions = (genres) => genres.map(genre => genre.name);
const isKidsMode = config.ageRange && config.ageRange !== '18+'; const catalogs = providerInfo.flatMap(provider => { if (!provider) { log.warn(`Provider with ID not found`); return []; }
const popularMovieCatalog = { type: 'movie', id: `tmdb-discover-movies-${provider.provider_id}`, name: `Popular Movies - ${provider.provider_name}`, extra: [ { name: 'genre', isRequired: false, options: genreOptions(movieGenres) }, { name: 'skip', isRequired: false }, ] };
const newMovieCatalog = { type: 'movie', id: `tmdb-discover-movies-new-${provider.provider_id}`, name: `New Movies - ${provider.provider_name}`, extra: [ { name: 'genre', isRequired: false, options: genreOptions(movieGenres) }, { name: 'skip', isRequired: false }, ] };
const popularSeriesCatalog = { type: 'series', id: `tmdb-discover-series-${provider.provider_id}`, name: `Popular Series - ${provider.provider_name}`, extra: [ { name: 'genre', isRequired: false, options: genreOptions(seriesGenres) }, { name: 'skip', isRequired: false }, ] };
const newSeriesCatalog = { type: 'series', id: `tmdb-discover-series-new-${provider.provider_id}`, name: `New Series - ${provider.provider_name}`, extra: [ { name: 'genre', isRequired: false, options: genreOptions(seriesGenres) }, { name: 'skip', isRequired: false }, ] };
if (isKidsMode) { popularMovieCatalog.extra.push({ name: 'ageRange', value: config.ageRange }); newMovieCatalog.extra.push({ name: 'ageRange', value: config.ageRange }); popularSeriesCatalog.extra.push({ name: 'ageRange', value: config.ageRange }); newSeriesCatalog.extra.push({ name: 'ageRange', value: config.ageRange }); } else { popularMovieCatalog.extra.push({ name: 'ageRange', value: '18+' }); newMovieCatalog.extra.push({ name: 'ageRange', value: '18+' }); popularSeriesCatalog.extra.push({ name: 'ageRange', value: '18+' }); newSeriesCatalog.extra.push({ name: 'ageRange', value: '18+' }); }
return [popularMovieCatalog, newMovieCatalog, popularSeriesCatalog, newSeriesCatalog]; });
const manifest = { ...manifestTemplate, catalogs: catalogs };
log.info('Route /manifest.json: Sending manifest'); res.json(manifest); } catch (error) { log.error(`Error generating manifest: ${error.message}`, error); res.status(500).json({ error: 'Internal Server Error' }); }});
router.use(errorHandler);
module.exports = router;123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343const axios = require('axios');const queue = require('./utils/queue');const { providersDb, genresDb, catalogDb } = require('./db');const { TMDB_BEARER_TOKEN, TMDB_LANGUAGE, TMDB_WATCH_REGION } = process.env;const { getCache, setCache } = require('./cache');const log = require('./utils/logger');
const TMDB_BASE_URL = 'https://api.themoviedb.org/3';
const makeRequest = (url, tmdbApiKey = null) => { const headers = {};
if (!tmdbApiKey) { headers['Authorization'] = `Bearer ${TMDB_BEARER_TOKEN}`; }
return new Promise((resolve, reject) => { queue.push({ fn: () => axios.get(url, { headers }) .then(response => { log.debug(`API request successful for URL: ${url}`); resolve(response.data); }) .catch(error => { log.error(`Error during API request for URL: ${url} - ${error.message}`); reject(error); }) }); });};
const determinePageFromSkip = async (providerId, skip, catalogDb, type, sortBy, ageRange) => { try { const cachedEntry = await new Promise((resolve, reject) => { catalogDb.get( "SELECT page, skip FROM cache WHERE provider_id = ? AND skip = ? AND type = ? AND sortBy = ? AND ageRange = ? ORDER BY skip DESC LIMIT 1", [providerId, skip, type, sortBy, ageRange], (err, row) => { if (err) { reject(err); } else { resolve(row); } } ); });
if (cachedEntry) { log.debug('Cached Entry:', cachedEntry); log.debug('Determined Page from Cache:', cachedEntry.page); return cachedEntry.page; }
const lastEntry = await new Promise((resolve, reject) => { catalogDb.get( "SELECT page, skip FROM cache WHERE provider_id = ? AND type = ? AND sortBy = ? AND ageRange = ? ORDER BY skip DESC LIMIT 1", [providerId, type, sortBy, ageRange], (err, row) => { if (err) { reject(err); } else { resolve(row); } } ); });
log.debug('Last Entry:', lastEntry);
if (lastEntry) { log.debug('Current Skip:', skip, 'Last Skip:', lastEntry.skip);
if (skip > lastEntry.skip) { log.debug('Determined Page:', lastEntry.page + 1); return lastEntry.page + 1; } }
log.debug('Default Page:', 1); return 1; } catch (error) { log.error('Error in determinePageFromSkip:', error); return 1; }};
const fetchData = async (endpoint, params = {}, tmdbApiKey = null, providerId = null, ageRange = null) => { if (tmdbApiKey) { params.api_key = tmdbApiKey; }
const { skip, type, sort_by: sortBy, ...queryParams } = params;
const page = providerId ? await determinePageFromSkip(providerId, skip, catalogDb, type, sortBy, ageRange) : 1;
const queryParamsWithPage = { ...queryParams, page, language: params.language || TMDB_LANGUAGE, };
if (sortBy) { queryParamsWithPage.sort_by = sortBy; }
const queryString = new URLSearchParams(queryParamsWithPage).toString();
const url = `${TMDB_BASE_URL}${endpoint}?${queryString}`;
log.debug('Request URL:', url);
const cachedData = await getCache(url, skip); if (cachedData) { return cachedData; }
const data = await makeRequest(url, tmdbApiKey);
setCache(url, data, page, skip, providerId, type, sortBy, ageRange); log.debug(`Data stored in cache for URL: ${url} with page: ${page}, skip: ${skip}, providerId: ${providerId}, type: ${type}, sortBy: ${sortBy}, ageRange: ${ageRange}`);
return data;};
const discoverContent = async (type, watchProviders = [], ageRange = null, sortBy = 'popularity.desc', genre = null, tmdbApiKey = null, language = TMDB_LANGUAGE, skip = 0) => { const mediaType = type === 'series' ? 'tv' : 'movie'; const endpoint = `/discover/${mediaType}`;
const regions = TMDB_WATCH_REGION ? TMDB_WATCH_REGION.split(',') : []; const providerId = watchProviders[0];
const params = { with_watch_providers: watchProviders.join(','), sort_by: sortBy, language, skip, type };
if (ageRange) { switch(ageRange) { case '0-5': if (mediaType === 'movie') { params.certification_country = 'US'; params.certification = 'G'; params.without_genres = '27,18,53,80,10752,37,10749,10768,10767,10766,10764,10763,9648,99,36'; } if (mediaType === 'tv') { params.with_genres = '10762'; // Kids only } break;
case '6-11': if (mediaType === 'movie') { params.certification_country = 'US'; params.certification = 'G'; params.without_genres = '27,18,53,80,10752,37,10749,10768,10767,10766,10764,10763,9648,99,36'; } if (mediaType === 'tv') { params.with_genres = '10762'; // Kids only } break;
case '12-15': if (mediaType === 'movie') { params.certification_country = 'US'; params.certification = 'PG'; } if (mediaType === 'tv') { params.with_genres = '16'; // Animation only } break;
case '16-17': if (mediaType === 'movie') { params.certification_country = 'US'; params.certification = 'PG-13'; } break;
case '18+': if (mediaType === 'movie') { params.include_adult = true; } break;
default: log.warn(`Unknown ageRange: ${ageRange}`); break; } }
if (genre) { params.with_genres = genre; }
const fetchForRegion = async (region) => { params.watch_region = region; return await fetchData(endpoint, params, tmdbApiKey, providerId, ageRange); };
const results = await Promise.all(regions.map(region => fetchForRegion(region)));
const combinedResults = results.reduce((acc, result) => acc.concat(result.results), []);
const uniqueResults = Array.from(new Map(combinedResults.map(item => [item.id, item])).values());
return { ...results[0], results: uniqueResults };};
const mergeProviders = (providers) => { const merged = {};
providers.forEach(provider => { const { provider_id, provider_name, logo_path } = provider;
if (!merged[provider_name]) { merged[provider_name] = { provider_id, logo_path }; } });
return Object.entries(merged).map(([provider_name, details]) => ({ provider_id: details.provider_id, provider_name, logo_path: details.logo_path }));};
const updateProviders = async () => { try { const regions = TMDB_WATCH_REGION ? TMDB_WATCH_REGION.split(',') : []; const movieEndpoint = `/watch/providers/movie`; const tvEndpoint = `/watch/providers/tv`;
const fetchProvidersForRegion = async (region) => { const params = { watch_region: region }; const [movieData, tvData] = await Promise.all([ fetchData(movieEndpoint, params), fetchData(tvEndpoint, params) ]); return [...movieData.results, ...tvData.results]; };
const results = await Promise.all(regions.map(region => fetchProvidersForRegion(region))); const combinedProviders = mergeProviders(results.flat());
const insertOrUpdateProvider = providersDb.prepare(` INSERT INTO providers (provider_id, provider_name, logo_path) VALUES (?, ?, ?) ON CONFLICT(provider_id) DO UPDATE SET provider_name = excluded.provider_name, logo_path = excluded.logo_path; `);
combinedProviders.forEach(provider => { insertOrUpdateProvider.run(provider.provider_id, provider.provider_name, provider.logo_path); });
insertOrUpdateProvider.finalize(); log.info('Providers update completed.'); } catch (error) { log.error(`Error during providers update: ${error.message}`); }};
const scheduleUpdates = () => { log.info('Scheduling provider and genre updates every 72 hours.'); setInterval(async () => { log.info('Starting provider update...'); await updateProviders();
log.info('Starting genre update...'); await updateGenres(); }, 3 * 24 * 60 * 60 * 1000);};
const getGenres = async (type) => { const mediaType = type === 'series' ? 'tv' : 'movie'; const endpoint = `/genre/${mediaType}/list`; const data = await fetchData(endpoint); log.debug(`Genres retrieved for type ${type}`); return data.genres;};
const updateGenres = async () => { try { const genresMap = new Map();
const movieGenres = await getGenres('movie'); const tvGenres = await getGenres('series');
movieGenres.concat(tvGenres).forEach(genre => { if (genresMap.has(genre.name)) { const existingGenre = genresMap.get(genre.name); existingGenre.ids.push(genre.id); } else { genresMap.set(genre.name, { name: genre.name, ids: [genre.id], mediaTypes: new Set([genre.media_type || (movieGenres.includes(genre) ? 'movie' : 'tv')]) }); } });
const insertOrUpdateGenre = genresDb.prepare(` INSERT INTO genres (genre_id, genre_name, media_type) VALUES (?, ?, ?) ON CONFLICT(genre_id) DO UPDATE SET genre_name = excluded.genre_name, media_type = excluded.media_type; `);
genresMap.forEach((value) => { const mediaTypes = Array.from(value.mediaTypes).join(','); value.ids.forEach(id => { insertOrUpdateGenre.run(id, value.name, mediaTypes); }); });
insertOrUpdateGenre.finalize();
log.info('Genres update completed.'); } catch (error) { log.error(`Error during genres update: ${error.message}`); }};
(async () => { try { log.info('Initializing provider and genre updates.'); await updateProviders(); await updateGenres(); scheduleUpdates(); } catch (error) { log.error(`Initialization error: ${error.message}`); }})();
module.exports = { makeRequest, fetchData, discoverContent, updateProviders, getGenres };123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869const winston = require('winston');const DailyRotateFile = require('winston-daily-rotate-file');const path = require('path');
winston.addColors({ error: 'red', warn: 'yellow', info: 'blue', debug: 'green'});
const uppercaseLevelFormat = winston.format((info) => { info.level = info.level.toUpperCase(); return info;});
const LOG_LEVEL = process.env.LOG_LEVEL || 'info';const LOG_FILE_PATH = path.join(__dirname, '../../log/application-%DATE%.log');const MAX_FILES = process.env.LOG_INTERVAL_DELETION || '3d';
const log = winston.createLogger({ level: LOG_LEVEL, format: winston.format.combine( uppercaseLevelFormat(), winston.format.colorize(), winston.format.timestamp(), winston.format.printf(({ level, message, timestamp }) => { return `${timestamp} ${level}: ${message}`; }) ), transports: [ new winston.transports.Console(), new DailyRotateFile({ filename: LOG_FILE_PATH, datePattern: 'YYYY-MM-DD', maxSize: '20m', maxFiles: MAX_FILES }) ]});
log.exceptions.handle( new winston.transports.Console({ format: winston.format.combine( uppercaseLevelFormat(), winston.format.colorize(), winston.format.timestamp(), winston.format.printf(({ level, message, timestamp }) => { return `${timestamp} ${level}: ${message}`; }) ) }), new DailyRotateFile({ filename: path.join(__dirname, '../../log/exceptions-%DATE%.log'), datePattern: 'YYYY-MM-DD', maxSize: '20m', maxFiles: '30d' }));
process.on('unhandledRejection', (reason, promise) => { throw reason;});
log.on('error', function (err) { console.error('Error in logger:', err);});
module.exports = log;12345678910111213141516171819202122232425262728const log = require('./logger');
const requestLogger = (req, res, next) => { const userAgent = req.headers['user-agent'] || ''; const origin = req.get('origin') || ''; const fullUrl = req.protocol + '://' + req.get('host') + req.originalUrl;
log.info('--- Request received ---'); log.debug(`Full URL: ${fullUrl}`); // log.debug(`Method: ${req.method}`); // log.debug(`Query parameters: ${JSON.stringify(req.query, null, 2)}`); // log.debug(`Request body: ${JSON.stringify(req.body, null, 2)}`); // log.debug(`Headers: ${JSON.stringify(req.headers, null, 2)}`); // log.debug(`User-Agent: ${userAgent}`); // log.debug(`Origin: ${origin}`);
next();};
const errorHandler = (err, req, res, next) => { log.error(`Error occurred: ${err.message}\nStack trace: ${err.stack}`); res.status(500).json({ error: 'Internal Server Error' });};
module.exports = { requestLogger, errorHandler};1234567const async = require('async');
const queue = async.queue((task, callback) => { task.fn().then(callback).catch(callback);}, 45); // 45 requests per second
module.exports = queue;.env+19-21
doc/language.jsonAdded+937
doc/regions.jsonAdded+699
index.js+3-5
package-lock.json+1422-217
package.json+1-3
public/configure.html+104-1625
src/cache.jsAdded+112
src/db.jsAdded+89
src/routes.jsAdded+363
src/tmdb.jsAdded+343
src/utils/logger.jsAdded+69
src/utils/middleware.jsAdded+28
src/utils/queue.jsAdded+7