@quranjs/api 1.1.4 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.esm.js CHANGED
@@ -1,8 +1,5 @@
1
- import { Language as Language$1 } from '@/types';
2
1
  import fetch from 'cross-fetch';
3
2
  import { camelizeKeys, decamelizeKeys, decamelize } from 'humps';
4
- import stringify from '@/utils/qs-stringify';
5
- import { removeBeginningSlash } from '@/utils/misc';
6
3
 
7
4
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
8
5
  try {
@@ -818,6 +815,199 @@ try {
818
815
 
819
816
  var _regeneratorRuntime = runtime.exports;
820
817
 
818
+ var CharType;
819
+
820
+ (function (CharType) {
821
+ CharType["Word"] = "word";
822
+ CharType["End"] = "end";
823
+ CharType["Pause"] = "pause";
824
+ CharType["Sajdah"] = "sajdah";
825
+ CharType["RubElHizb"] = "rub-el-hizb";
826
+ })(CharType || (CharType = {}));
827
+
828
+ var Language;
829
+
830
+ (function (Language) {
831
+ Language["ARABIC"] = "ar";
832
+ Language["ENGLISH"] = "en";
833
+ Language["URDU"] = "ur";
834
+ Language["BENGALI"] = "bn";
835
+ Language["TURKISH"] = "tr";
836
+ Language["SPANISH"] = "es";
837
+ Language["GERMAN"] = "de";
838
+ Language["BOSNIAN"] = "bs";
839
+ Language["RUSSIAN"] = "ru";
840
+ Language["ALBANIAN_AL"] = "al";
841
+ Language["FRENCH"] = "fr";
842
+ Language["DUTCH"] = "nl";
843
+ Language["TAMIL"] = "ta";
844
+ Language["TAJIK"] = "tg";
845
+ Language["INDONESIAN"] = "id";
846
+ Language["UZBEK"] = "uz";
847
+ Language["VIETNAMESE"] = "vi";
848
+ Language["CHINESE"] = "zh";
849
+ Language["ITALIAN"] = "it";
850
+ Language["JAPANESE"] = "ja";
851
+ Language["MALAYALAM"] = "ml";
852
+ Language["AMHARIC"] = "am";
853
+ Language["KAZAKH"] = "kk";
854
+ Language["PORTUGUESE"] = "pt";
855
+ Language["TAGALOG"] = "tl";
856
+ Language["THAI"] = "th";
857
+ Language["KOREAN"] = "ko";
858
+ Language["HINDI"] = "hi";
859
+ Language["KURDISH"] = "ku";
860
+ Language["HAUSA"] = "ha";
861
+ Language["AZERI"] = "az";
862
+ Language["SWAHILI"] = "sw";
863
+ Language["PERSIAN"] = "fa";
864
+ Language["SERBIAN"] = "sr";
865
+ Language["MARANAO"] = "mrn";
866
+ Language["AMAZIGH"] = "zgh";
867
+ Language["ASSAMESE"] = "as";
868
+ Language["BULGARIAN"] = "bg";
869
+ Language["CHECHEN"] = "ce";
870
+ Language["CZECH"] = "cs";
871
+ Language["DIVEHI"] = "dv";
872
+ Language["DHIVEHI"] = "dv";
873
+ Language["MALDIVIAN"] = "dv";
874
+ Language["FINNISH"] = "fi";
875
+ Language["GUJAARATI"] = "gu";
876
+ Language["HEBREW"] = "he";
877
+ Language["GEORGIAN"] = "ka";
878
+ Language["CENTRAL_KHMER"] = "km";
879
+ Language["GANDA"] = "lg";
880
+ Language["MARATHI"] = "mr";
881
+ Language["YORUBA"] = "yo";
882
+ Language["MALAY"] = "ms";
883
+ Language["NEPALI"] = "ne";
884
+ Language["SWEDISH"] = "sv";
885
+ Language["TELUGU"] = "te";
886
+ Language["TATAR"] = "tt";
887
+ Language["UIGHUR"] = "ug";
888
+ Language["UYGHUR"] = "ug";
889
+ Language["UKRAINIAN"] = "uk";
890
+ Language["NORWEGIAN"] = "no";
891
+ Language["OROMO"] = "om";
892
+ Language["POLISH"] = "pl";
893
+ Language["PASHTO"] = "ps";
894
+ Language["ROMANIAN"] = "ro";
895
+ Language["SINDHI"] = "sd";
896
+ Language["NORTHERN_SAMI"] = "se";
897
+ Language["SINHALA"] = "si";
898
+ Language["SINHALESE"] = "si";
899
+ Language["SOMALI"] = "so";
900
+ Language["ALBANIAN_SQ"] = "sq";
901
+ })(Language || (Language = {}));
902
+
903
+ var QuranFont;
904
+
905
+ (function (QuranFont) {
906
+ QuranFont["MadaniV1"] = "code_v1";
907
+ QuranFont["MadaniV2"] = "code_v2";
908
+ QuranFont["Uthmani"] = "text_uthmani";
909
+ })(QuranFont || (QuranFont = {}));
910
+
911
+ // Reference: https://github.com/billjs/query-string/blob/master/src/index.ts
912
+ var defaultStringifyFunction = function defaultStringifyFunction(_key, value) {
913
+ return value;
914
+ };
915
+
916
+ var defaultEq = '=';
917
+ var defaultSep = '&';
918
+ var defaultConfig = {
919
+ eq: defaultEq,
920
+ sep: defaultSep,
921
+ prefix: '',
922
+ fn: defaultStringifyFunction
923
+ };
924
+ /**
925
+ * Given a query object, return the query string
926
+ * See qs-stringify.test.ts for examples
927
+ *
928
+ * @param {QueryObject} obj a query object to be converted to a query string
929
+ * @param {Config} config optional configuration
930
+ * @returns {string} query string
931
+ *
932
+ * @example
933
+ * stringify({a: 1, b: 2}) // returns 'a=1&b=s'
934
+ */
935
+
936
+ function stringify(obj, config) {
937
+ if (config === void 0) {
938
+ config = defaultConfig;
939
+ }
940
+
941
+ var _defaultConfig$config = _extends({}, defaultConfig, config),
942
+ eq = _defaultConfig$config.eq,
943
+ sep = _defaultConfig$config.sep,
944
+ fn = _defaultConfig$config.fn,
945
+ prefix = _defaultConfig$config.prefix;
946
+
947
+ if (obj == null || !isObject(obj)) {
948
+ return '';
949
+ }
950
+
951
+ return Object.entries(obj).filter(function (_ref) {
952
+ var value = _ref[1];
953
+ return value !== null;
954
+ }) // filter out null values
955
+ .map(function (_ref2) {
956
+ var key = _ref2[0],
957
+ value = _ref2[1];
958
+ if (Array.isArray(value)) return encode(key, value.join(','), {
959
+ eq: eq,
960
+ fn: fn,
961
+ prefix: prefix
962
+ });
963
+ if (isObject(value)) return stringify(value, {
964
+ eq: eq,
965
+ sep: sep,
966
+ fn: fn,
967
+ prefix: getKey(key, prefix)
968
+ });
969
+ return encode(key, value, {
970
+ eq: eq,
971
+ fn: fn,
972
+ prefix: prefix
973
+ });
974
+ }).join(sep);
975
+ } // encode the key and add prefix if necessary
976
+
977
+
978
+ var getKey = function getKey(key, prefix) {
979
+ if (prefix === void 0) {
980
+ prefix = '';
981
+ }
982
+
983
+ var encodedKey = encodeURIComponent(key);
984
+ if (prefix) return prefix + "[" + encodedKey + "]";
985
+ return encodedKey;
986
+ }; // encode the key and value of a query object
987
+
988
+
989
+ var encode = function encode(key, value, _ref3) {
990
+ var _ref3$eq = _ref3.eq,
991
+ eq = _ref3$eq === void 0 ? defaultEq : _ref3$eq,
992
+ _ref3$fn = _ref3.fn,
993
+ fn = _ref3$fn === void 0 ? defaultStringifyFunction : _ref3$fn,
994
+ _ref3$prefix = _ref3.prefix,
995
+ prefix = _ref3$prefix === void 0 ? '' : _ref3$prefix;
996
+ var newValue = encodeURIComponent(fn(key, value));
997
+ var newKey = getKey(key, prefix);
998
+ return [newKey, newValue].join(eq);
999
+ }; // check if the given value is an object
1000
+
1001
+
1002
+ function isObject(obj) {
1003
+ var type = typeof obj;
1004
+ return obj && (type === 'object' || type === 'function') || false;
1005
+ }
1006
+
1007
+ var removeBeginningSlash = function removeBeginningSlash(url) {
1008
+ return url.startsWith('/') ? url.slice(1) : url;
1009
+ };
1010
+
821
1011
  var API_BASE_URL = 'https://api.quran.com/api/v4/';
822
1012
  var makeUrl = function makeUrl(url, params) {
823
1013
  var baseUrl = "" + API_BASE_URL + removeBeginningSlash(url);
@@ -1107,7 +1297,7 @@ var Utils = {
1107
1297
  };
1108
1298
 
1109
1299
  var defaultOptions$2 = {
1110
- language: Language$1.ARABIC
1300
+ language: Language.ARABIC
1111
1301
  };
1112
1302
 
1113
1303
  var getChapterOptions = function getChapterOptions(options) {
@@ -1122,7 +1312,7 @@ var getChapterOptions = function getChapterOptions(options) {
1122
1312
  /**
1123
1313
  * Get all chapters.
1124
1314
  * @description https://quran.api-docs.io/v4/chapters/list-chapters
1125
- * @param {Options} options
1315
+ * @param {GetChapterOptions} options
1126
1316
  * @example
1127
1317
  * quran.v4.chapters.findAll()
1128
1318
  */
@@ -1161,7 +1351,7 @@ var findAll$1 = /*#__PURE__*/function () {
1161
1351
  * Get chapter by id.
1162
1352
  * @description https://quran.api-docs.io/v4/chapters/get-chapter
1163
1353
  * @param {ChapterId} id chapter id, minimum 1, maximum 114
1164
- * @param {Options} options
1354
+ * @param {GetChapterOptions} options
1165
1355
  * @example
1166
1356
  * quran.v4.chapters.findById('1')
1167
1357
  * quran.v4.chapters.findById('114')
@@ -1209,7 +1399,7 @@ var findById = /*#__PURE__*/function () {
1209
1399
  * Get chapter info by id.
1210
1400
  * @description https://quran.api-docs.io/v4/chapters/chapter_info
1211
1401
  * @param {ChapterId} id chapter id, minimum 1, maximum 114
1212
- * @param {Options} options
1402
+ * @param {GetChapterOptions} options
1213
1403
  * @example
1214
1404
  * quran.v4.chapters.findInfoById('1')
1215
1405
  * quran.v4.chapters.findInfoById('114')
@@ -1261,7 +1451,7 @@ var chapters = {
1261
1451
  };
1262
1452
 
1263
1453
  var defaultOptions$1 = {
1264
- language: Language$1.ARABIC,
1454
+ language: Language.ARABIC,
1265
1455
  perPage: 50
1266
1456
  };
1267
1457
 
@@ -1645,7 +1835,7 @@ var juzs = {
1645
1835
  };
1646
1836
 
1647
1837
  var defaultChapterRecitationsOptions = {
1648
- language: Language$1.ARABIC
1838
+ language: Language.ARABIC
1649
1839
  };
1650
1840
 
1651
1841
  var getChapterRecitationsOptions = function getChapterRecitationsOptions(options) {
@@ -1659,7 +1849,7 @@ var getChapterRecitationsOptions = function getChapterRecitationsOptions(options
1659
1849
  };
1660
1850
 
1661
1851
  var defaultVerseRecitationsOptions = {
1662
- language: Language$1.ARABIC
1852
+ language: Language.ARABIC
1663
1853
  };
1664
1854
 
1665
1855
  var getVerseRecitationsOptions = function getVerseRecitationsOptions(options) {
@@ -1692,7 +1882,7 @@ var getVerseRecitationsOptions = function getVerseRecitationsOptions(options) {
1692
1882
  * Get all chapter recitations for specific reciter
1693
1883
  * @description https://quran.api-docs.io/v4/audio-recitations/list-of-all-surah-audio-files-for-specific-reciter
1694
1884
  * @param {string} reciterId
1695
- * @param {GetChapterRecitationsOptions} options
1885
+ * @param {GetChapterRecitationOptions} options
1696
1886
  * @example
1697
1887
  * quran.v4.audio.findAllChapterRecitations('2')
1698
1888
  */
@@ -1732,7 +1922,7 @@ var findAllChapterRecitations = /*#__PURE__*/function () {
1732
1922
  * @description https://quran.api-docs.io/v4/audio-recitations/get-single-surah-audio-for-specific-reciter
1733
1923
  * @param {ChapterId} chapterId
1734
1924
  * @param {string} reciterId
1735
- * @param {GetChapterRecitationsOptions} options
1925
+ * @param {GetChapterRecitationOptions} options
1736
1926
  * @example
1737
1927
  * quran.v4.audio.findChapterRecitationById('1', '2') // first chapter recitation for reciter 2
1738
1928
  */
@@ -1780,7 +1970,7 @@ var findChapterRecitationById = /*#__PURE__*/function () {
1780
1970
  * @description https://quran.api-docs.io/v4/audio-recitations/get-ayah-recitations-for-specific-surah
1781
1971
  * @param {ChapterId} chapterId
1782
1972
  * @param {string} recitationId
1783
- * @param {GetVerseRecitationsOptions} options
1973
+ * @param {GetVerseRecitationOptions} options
1784
1974
  * @example
1785
1975
  * quran.v4.audio.findVerseRecitationsByChapter('1', '2')
1786
1976
  */
@@ -1872,7 +2062,7 @@ var findVerseRecitationsByJuz = /*#__PURE__*/function () {
1872
2062
  * @description https://quran.api-docs.io/v4/audio-recitations/get-ayah-recitations-for-specific-madani-mushaf-page
1873
2063
  * @param {PageNumber} page
1874
2064
  * @param {string} recitationId
1875
- * @param {GetVerseRecitationsOptions} options
2065
+ * @param {GetVerseRecitationOptions} options
1876
2066
  * @example
1877
2067
  * quran.v4.audio.findVerseRecitationsByPage('1', '2')
1878
2068
  */
@@ -1918,7 +2108,7 @@ var findVerseRecitationsByPage = /*#__PURE__*/function () {
1918
2108
  * @description https://quran.api-docs.io/v4/audio-recitations/get-ayah-recitations-for-specific-rub
1919
2109
  * @param {RubNumber} rub
1920
2110
  * @param {string} recitationId
1921
- * @param {GetVerseRecitationsOptions} options
2111
+ * @param {GetVerseRecitationOptions} options
1922
2112
  * @example
1923
2113
  * quran.v4.audio.findVerseRecitationsByRub('1', '2')
1924
2114
  */
@@ -1964,7 +2154,7 @@ var findVerseRecitationsByRub = /*#__PURE__*/function () {
1964
2154
  * @description https://quran.api-docs.io/v4/audio-recitations/get-ayah-recitations-for-specific-hizb
1965
2155
  * @param {HizbNumber} hizb
1966
2156
  * @param {string} recitationId
1967
- * @param {GetVerseRecitationsOptions} options
2157
+ * @param {GetVerseRecitationOptions} options
1968
2158
  * @example
1969
2159
  * quran.v4.audio.findVerseRecitationsByHizb('1', '2')
1970
2160
  */
@@ -2006,11 +2196,11 @@ var findVerseRecitationsByHizb = /*#__PURE__*/function () {
2006
2196
  };
2007
2197
  }();
2008
2198
  /**
2009
- * Get all verse audio files for a specific reciter and a specific hizb
2199
+ * Get all verse audio files for a specific reciter and a specific verse
2010
2200
  * @description https://quran.api-docs.io/v4/audio-recitations/get-ayah-recitations-for-specific-ayah
2011
2201
  * @param {VerseKey} key
2012
2202
  * @param {string} recitationId
2013
- * @param {GetVerseRecitationsOptions} options
2203
+ * @param {GetVerseRecitationOptions} options
2014
2204
  * @example
2015
2205
  * quran.v4.audio.findVerseRecitationsByKey('1:1', '2')
2016
2206
  */
@@ -2064,7 +2254,7 @@ var audio = {
2064
2254
  };
2065
2255
 
2066
2256
  var defaultOptions = {
2067
- language: Language$1.ARABIC
2257
+ language: Language.ARABIC
2068
2258
  };
2069
2259
 
2070
2260
  var getResourcesOptions = function getResourcesOptions(options) {
@@ -2079,7 +2269,7 @@ var getResourcesOptions = function getResourcesOptions(options) {
2079
2269
  /**
2080
2270
  * Get all recitations.
2081
2271
  * @description https://quran.api-docs.io/v4/resources/recitations
2082
- * @param {GetResourcesOptions} options
2272
+ * @param {GetResourceOptions} options
2083
2273
  * @example
2084
2274
  * quran.v4.resources.findAllRecitations()
2085
2275
  */
@@ -2119,11 +2309,11 @@ var findAllRecitations = /*#__PURE__*/function () {
2119
2309
  * Get all recitation info.
2120
2310
  * @description https://quran.api-docs.io/v4/resources/recitation-info
2121
2311
  * @param {string} id recitation id
2122
- * @param {GetResourcesOptions} options
2312
+ * @param {GetResourceOptions} options
2123
2313
  * @example
2124
2314
  * quran.v4.resources.findRecitationInfo('1')
2125
2315
  */
2126
- // const findRecitationInfo = async (id: string, options?: GetResourcesOptions) => {
2316
+ // const findRecitationInfo = async (id: string, options?: GetResourceOptions) => {
2127
2317
  // const params = getResourcesOptions(options);
2128
2318
  // const { info } = await fetcher<{
2129
2319
  // info: RecitationInfoResource;
@@ -2134,7 +2324,7 @@ var findAllRecitations = /*#__PURE__*/function () {
2134
2324
  /**
2135
2325
  * Get all translations.
2136
2326
  * @description https://quran.api-docs.io/v4/resources/translations
2137
- * @param {GetResourcesOptions} options
2327
+ * @param {GetResourceOptions} options
2138
2328
  * @example
2139
2329
  * quran.v4.resources.findAllTranslations()
2140
2330
  */
@@ -2174,11 +2364,11 @@ var findAllTranslations = /*#__PURE__*/function () {
2174
2364
  * Get translation info.
2175
2365
  * @description https://quran.api-docs.io/v4/resources/translation-info
2176
2366
  * @param {string} id translation id
2177
- * @param {GetResourcesOptions} options
2367
+ * @param {GetResourceOptions} options
2178
2368
  * @example
2179
2369
  * quran.v4.resources.findTranslationInfo('169')
2180
2370
  */
2181
- // const findTranslationInfo = async (id: string, options?: GetResourcesOptions) => {
2371
+ // const findTranslationInfo = async (id: string, options?: GetResourceOptions) => {
2182
2372
  // const params = getResourcesOptions(options);
2183
2373
  // const { info } = await fetcher<{
2184
2374
  // info: TranslationInfoResource;
@@ -2189,7 +2379,7 @@ var findAllTranslations = /*#__PURE__*/function () {
2189
2379
  /**
2190
2380
  * Get all tafsirs.
2191
2381
  * @description https://quran.api-docs.io/v4/resources/tafsirs
2192
- * @param {GetResourcesOptions} options
2382
+ * @param {GetResourceOptions} options
2193
2383
  * @example
2194
2384
  * quran.v4.resources.findAllTafsirs()
2195
2385
  */
@@ -2229,11 +2419,11 @@ var findAllTafsirs = /*#__PURE__*/function () {
2229
2419
  * Get tafsir info.
2230
2420
  * @description https://quran.api-docs.io/v4/resources/tafsirs-info
2231
2421
  * @param {string} id tafsir id
2232
- * @param {GetResourcesOptions} options
2422
+ * @param {GetResourceOptions} options
2233
2423
  * @example
2234
2424
  * quran.v4.resources.findTranslationInfo('1')
2235
2425
  */
2236
- // const findTafsirInfo = async (id: string, options?: GetResourcesOptions) => {
2426
+ // const findTafsirInfo = async (id: string, options?: GetResourceOptions) => {
2237
2427
  // const params = getResourcesOptions(options);
2238
2428
  // const { info } = await fetcher<{
2239
2429
  // info: TafsirInfoResource;
@@ -2280,7 +2470,7 @@ var findAllRecitationStyles = /*#__PURE__*/function () {
2280
2470
  /**
2281
2471
  * Get all languages.
2282
2472
  * @description https://quran.api-docs.io/v4/resources/languages
2283
- * @param {GetResourcesOptions} options
2473
+ * @param {GetResourceOptions} options
2284
2474
  * @example
2285
2475
  * quran.v4.resources.findAllLanguages()
2286
2476
  */
@@ -2318,7 +2508,7 @@ var findAllLanguages = /*#__PURE__*/function () {
2318
2508
  /**
2319
2509
  * Get all chapter infos.
2320
2510
  * @description https://quran.api-docs.io/v4/resources/chapter-info
2321
- * @param {GetResourcesOptions} options
2511
+ * @param {GetResourceOptions} options
2322
2512
  * @example
2323
2513
  * quran.v4.resources.findAllChapterInfos()
2324
2514
  */
@@ -2356,7 +2546,7 @@ var findAllChapterInfos = /*#__PURE__*/function () {
2356
2546
  /**
2357
2547
  * Get verse media.
2358
2548
  * @description https://quran.api-docs.io/v4/resources/verse_media
2359
- * @param {GetResourcesOptions} options
2549
+ * @param {GetResourceOptions} options
2360
2550
  * @example
2361
2551
  * quran.v4.resources.findVerseMedia()
2362
2552
  */
@@ -2394,7 +2584,7 @@ var findVerseMedia = /*#__PURE__*/function () {
2394
2584
  /**
2395
2585
  * Get all chapter reciters.
2396
2586
  * @description https://quran.api-docs.io/v4/resources/list-of-chapter-reciters
2397
- * @param {GetResourcesOptions} options
2587
+ * @param {GetResourceOptions} options
2398
2588
  * @example
2399
2589
  * quran.v4.resources.findAllChapterReciters()
2400
2590
  */
@@ -2445,7 +2635,7 @@ var resources = {
2445
2635
  };
2446
2636
 
2447
2637
  var defaultSearchOptions = {
2448
- language: Language$1.ARABIC,
2638
+ language: Language.ARABIC,
2449
2639
  size: 30
2450
2640
  };
2451
2641
 
@@ -2463,13 +2653,13 @@ var getSearchOptions = function getSearchOptions(q, options) {
2463
2653
  /**
2464
2654
  * Search
2465
2655
  * @description https://quran.api-docs.io/v4/search/KfCmk4KQYbtyK9adj
2466
- * @param q search query
2467
- * @param options search options
2656
+ * @param {string} q search query
2657
+ * @param {SearchOptions} options
2468
2658
  * @example
2469
- * quran.v4.search.search('الله')
2470
- * quran.v4.search.search('الله', { language: Language.ENGLISH })
2471
- * quran.v4.search.search('الله', { language: Language.ENGLISH, size: 10 })
2472
- * quran.v4.search.search('الله', { language: Language.ENGLISH, page: 2 })
2659
+ * quran.v4.search.search('نور')
2660
+ * quran.v4.search.search('نور', { language: Language.ENGLISH })
2661
+ * quran.v4.search.search('نور', { language: Language.ENGLISH, size: 10 })
2662
+ * quran.v4.search.search('نور', { language: Language.ENGLISH, page: 2 })
2473
2663
  */
2474
2664
 
2475
2665
 
@@ -2521,98 +2711,5 @@ var quran = {
2521
2711
  utils: Utils
2522
2712
  };
2523
2713
 
2524
- var CharType;
2525
-
2526
- (function (CharType) {
2527
- CharType["Word"] = "word";
2528
- CharType["End"] = "end";
2529
- CharType["Pause"] = "pause";
2530
- CharType["Sajdah"] = "sajdah";
2531
- CharType["RubElHizb"] = "rub-el-hizb";
2532
- })(CharType || (CharType = {}));
2533
-
2534
- var Language;
2535
-
2536
- (function (Language) {
2537
- Language["ARABIC"] = "ar";
2538
- Language["ENGLISH"] = "en";
2539
- Language["URDU"] = "ur";
2540
- Language["BENGALI"] = "bn";
2541
- Language["TURKISH"] = "tr";
2542
- Language["SPANISH"] = "es";
2543
- Language["GERMAN"] = "de";
2544
- Language["BOSNIAN"] = "bs";
2545
- Language["RUSSIAN"] = "ru";
2546
- Language["ALBANIAN_AL"] = "al";
2547
- Language["FRENCH"] = "fr";
2548
- Language["DUTCH"] = "nl";
2549
- Language["TAMIL"] = "ta";
2550
- Language["TAJIK"] = "tg";
2551
- Language["INDONESIAN"] = "id";
2552
- Language["UZBEK"] = "uz";
2553
- Language["VIETNAMESE"] = "vi";
2554
- Language["CHINESE"] = "zh";
2555
- Language["ITALIAN"] = "it";
2556
- Language["JAPANESE"] = "ja";
2557
- Language["MALAYALAM"] = "ml";
2558
- Language["AMHARIC"] = "am";
2559
- Language["KAZAKH"] = "kk";
2560
- Language["PORTUGUESE"] = "pt";
2561
- Language["TAGALOG"] = "tl";
2562
- Language["THAI"] = "th";
2563
- Language["KOREAN"] = "ko";
2564
- Language["HINDI"] = "hi";
2565
- Language["KURDISH"] = "ku";
2566
- Language["HAUSA"] = "ha";
2567
- Language["AZERI"] = "az";
2568
- Language["SWAHILI"] = "sw";
2569
- Language["PERSIAN"] = "fa";
2570
- Language["SERBIAN"] = "sr";
2571
- Language["MARANAO"] = "mrn";
2572
- Language["AMAZIGH"] = "zgh";
2573
- Language["ASSAMESE"] = "as";
2574
- Language["BULGARIAN"] = "bg";
2575
- Language["CHECHEN"] = "ce";
2576
- Language["CZECH"] = "cs";
2577
- Language["DIVEHI"] = "dv";
2578
- Language["DHIVEHI"] = "dv";
2579
- Language["MALDIVIAN"] = "dv";
2580
- Language["FINNISH"] = "fi";
2581
- Language["GUJAARATI"] = "gu";
2582
- Language["HEBREW"] = "he";
2583
- Language["GEORGIAN"] = "ka";
2584
- Language["CENTRAL_KHMER"] = "km";
2585
- Language["GANDA"] = "lg";
2586
- Language["MARATHI"] = "mr";
2587
- Language["YORUBA"] = "yo";
2588
- Language["MALAY"] = "ms";
2589
- Language["NEPALI"] = "ne";
2590
- Language["SWEDISH"] = "sv";
2591
- Language["TELUGU"] = "te";
2592
- Language["TATAR"] = "tt";
2593
- Language["UIGHUR"] = "ug";
2594
- Language["UYGHUR"] = "ug";
2595
- Language["UKRAINIAN"] = "uk";
2596
- Language["NORWEGIAN"] = "no";
2597
- Language["OROMO"] = "om";
2598
- Language["POLISH"] = "pl";
2599
- Language["PASHTO"] = "ps";
2600
- Language["ROMANIAN"] = "ro";
2601
- Language["SINDHI"] = "sd";
2602
- Language["NORTHERN_SAMI"] = "se";
2603
- Language["SINHALA"] = "si";
2604
- Language["SINHALESE"] = "si";
2605
- Language["SOMALI"] = "so";
2606
- Language["ALBANIAN_SQ"] = "sq";
2607
- })(Language || (Language = {}));
2608
-
2609
- var QuranFont;
2610
-
2611
- (function (QuranFont) {
2612
- QuranFont["MadaniV1"] = "code_v1";
2613
- QuranFont["MadaniV2"] = "code_v2";
2614
- QuranFont["Uthmani"] = "text_uthmani";
2615
- })(QuranFont || (QuranFont = {}));
2616
-
2617
2714
  export { CharType, Language, QuranFont, quran };
2618
2715
  //# sourceMappingURL=api.esm.js.map