diff --git a/.scripts.gen.min.js b/.scripts.gen.min.js index c9e9fad..d3caca5 100644 --- a/.scripts.gen.min.js +++ b/.scripts.gen.min.js @@ -1 +1 @@ -let j=e=>[...Array(e).keys()];function B(e){return document.querySelector(e)}function D(e){return document.querySelectorAll(e)}function a(e){return document.getElementById(e)}function h(e,t={}){var n,a=document.createElement(e);for(n in t)if("Dataset"===n)for(var r in t[n])a.dataset[r]=t[n][r];else a[n]=t[n];return a}function t(e,t={}){var n,a=document.createElementNS("http://www.w3.org/2000/svg",e);for(n in t)a.setAttribute(n,t[n]);return a}Element.prototype.Q=Element.prototype.querySelector,Element.prototype.Qall=Element.prototype.querySelectorAll;let N=t("svg",{id:"spinner-svg",viewBox:"-50 -50 100 100"}),R=(N.appendChild(t("circle",{id:"spinner",cx:0,cy:0,r:35,fill:"none","stroke-width":"10","stroke-dasharray":"40 30"})),location),r=localStorage,i=(e,t=!0)=>{t?r.setItem(e,"Y"):r.removeItem(e)},Q=a("dark"),p=a("body"),W=(a("all"),a("help"),a("helptoggle"),a("optiontoggle"),a("options"),a("guide"),a("darkmode_option"),a("darkmode_input")),F=a("teacher_option"),P=a("teacher"),O=a("qaris"),V=a("qariurl"),Y=a("cn"),U=a("zz"),X=a("quizmode_option"),o=a("quizmode"),Z=a("uthm_options"),d=(a("uthm_options_title"),a("tafsir_option")),G=a("mvbtns_input"),J=a("textclr_input"),ee=a("ayatnum_input"),te=a("linebreaks_input"),ne=a("tl_input"),ae=a("imla_options"),re=(a("imla_options_title"),a("feedbackrate")),ie=(a("helpcontent"),a("player")),le=a("preloader"),oe=a("title"),ue=a("selectors"),l=a("sura_bgn"),u=a("aaya_bgn"),c=a("sura_end"),s=a("aaya_end"),ce=a("ok"),se=a("show"),de=a("header"),he=a("hb"),pe=a("reshow"),fe=a("repeat"),me=a("new"),ve=a("zzignore"),ye=a("end_of_header"),ge=a("tafsirhint"),f=a("uthm_txt"),m=a("imla_txt_container"),v=a("imla_txt"),y=a("endmsg"),be=a("zzback"),g=a("mvbtns"),we=a("prevaaya"),ke=a("prevjmla"),Ke=a("prevword"),xe=a("nextword"),Te=a("nextjmla"),Le=a("nextaaya"),n=a("tl"),Me=(a("N"),a("X"),a("R"),a("Q"),a("L"),a("W"),a("J"),a("T"),a("tvc")),_e=(a("tv"),a("tvh")),Ae=a("tvt"),Ee=a("sxc"),qe=(a("sx"),a("sxi"),a("sura_sx")),b=a("sxq"),w=a("sxr"),Se=e=>e.scrollTo({top:0}),$e=e=>e.scrollTo({top:e.scrollHeight}),ze=()=>Se(p),He=()=>$e(p),Ie=()=>{$e(p),$e(v)},Ce=e=>{e.style.visibility="hidden",e.style.opacity="0"},je=e=>{e.style.visibility="visible",e.style.opacity="1"},k=e=>e.toString().replace(/[0٠]/g,"٠").replace(/[1١]/g,"١").replace(/[2٢]/g,"٢").replace(/[3٣]/g,"٣").replace(/[4٤]/g,"٤").replace(/[5٥]/g,"٥").replace(/[6٦]/g,"٦").replace(/[7٧]/g,"٧").replace(/[8٨]/g,"٨").replace(/[9٩]/g,"٩").replace(/[^٠١٢٣٤٥٦٧٨٩]/g,""),e,Be,De=()=>""===l.value?0:T[+l.value],Ne=()=>""===c.value?0:T[+c.value],Re=()=>""===l.value?"":+l.value,Qe=()=>""===c.value?"":+c.value,We=()=>""===u.value?"":+u.value,Fe=()=>""===s.value?"":+s.value,Pe=e=>j(e).map(e=>``).join(""),Oe=(e,t,n)=>{We(),e.innerHTML=Pe(t),e.value=n||t};function Ve(e){var t=e.target,e="blur"===e.type;t!==u&&s,e||t!==l?e||t!==c||(Oe(s,Ne()),Qe(){let t,n,a;function r(e){return null!=e?e:a}function i(e){return null==(e=r(e))||e<0||!n||!t||e>=t.length}function l(e){if(!i(e=r(e)))return n+t[e]+".mp3"}function o(e){i(e=r(e))||(le.src=l(e))}function u(e){e=+e,isNaN(e)||(a=e,o())}function c(){(i()?Ce:je)(ie)}function s(e){n=e?`https://www.everyayah.com/data/${e}/`:void 0,o()}return{update_qari:function(e){s(e),c()},init:function(e,t){s(e),!e&&t&&(n=t.endsWith("/")?t:t+"/"),u(0)},fill:function(e){t=e,u(0),c()},play:function(e){null!=e&&u(e),c(),i()||(ie.src=l(),ie.addEventListener("loadeddata",()=>o(a+1)),ie.play().catch(()=>{}))},set_index:function(e){u(e)},next:function(){u(a+1)},back:function(){u(a-1)}}})();function Ye(e){var t=e.slice(-1);return""===t||"\n"===t?"a":e.match(/[\u06D6-\u06DC]\t/)?"j":""}function Ue(e,t,n,a){return""!==e&&""!==t&&""!==n&&""!==a&&e<=n&&(t<=a||ee.replace(/[\u064B-\u0652\xA0\u06DD٠-٩]+/g,""),Ze=e=>e,Ge=e=>e.replace(/\S*$/,""),Je=e=>e.replace(/[^\n]*$/,"");function change_feedbackrate(){var e=re.value;window.imlafilter="a"===e?Je:"w"===e?Ge:Ze,v.value&&v.oninput&&v.oninput(),"l"===e?r.removeItem("fbrate"):r.setItem("fbrate",e),x("feedbackrate",e)}window.imlafilter=Ze;let et=(e,t,n=window.imlafilter)=>Xe(e).startsWith(Xe(n(t))),tt=(e,t)=>f.classList.toggle(e,t);function nt(){var e=y.hidden,t=f.hidden,n=ue.hidden,a="uthm"!==o.value,r=!fe.innerText.startsWith("ابدأ");ge.hidden=(t||r&&e)&&(!e||n||a)}function at(){ne.checked?n.style.display=f.hidden||"taj"!==J.value?"none":"":("true"===n.getAttribute("aria-expanded")&&n.onclick({}),n.style.display="none")}function change_tajweed(){var e=J.value,t="taj"!==e;i("notajweed",t),tt("letter-parts","bas"===e),tt("letter-nocolor","no"===e),ne.disabled=t,ne.previousElementSibling.classList.toggle("disabled",t),at(),x("tajweed",e.slice(0,1))}function change_teacher(){var e=P.checked;i("teacher",e),x("teacher",e)}function change_ayatnum(){var e=!ee.checked;i("noayatnumcolor",e),tt("ayat-nocolor",e),x("ayatnum",!e)}function change_linebreaks(){var e=!te.checked;i("nolinebreaks",e),tt("nb",e),x("linebreaks",!e)}function change_dark(){var e=W.checked;r.setItem("dark",e?"Y":"N"),x("dark",Q.checked=e)}function change_mvbtns(){var e=G.value,t=("b"===e?r.removeItem("mvbtns"):r.setItem("mvbtns",e),"r"===e?"sidebtns rightside":"l"===e?"sidebtns leftside":"");g.className=t,f.classList.toggle("sidebtns",t),n.classList.toggle("right","l"===e),x("mvbtns",e)}function change_tafsir(){var e=d.value;"ar_muyassar"===(e=d.value)?r.removeItem("tafsir"):r.setItem("tafsir",e),x("tafsir",e)}function change_tajweedlegend(){i("notajweedlegend",!ne.checked),at()}function rt(e,t,n,a){e=+e,t=+t,n=+n,a=+a;var r=T[e-1],i=T[n-1],l=ht[e-1],o=ht[n-1],u=1===t?"الأولى":t===r?k(t)+" الأخيرة":k(t),c=1===a?"الأولى":a===i?k(a)+" الأخيرة":k(a);return e===n?t===a?`تسميع الآية ${u} من سورة `+l:a===t+1?`تسميع الآيتين ${u} و${c} من سورة `+l:1===t&&a===i?`تسميع سورة ${l} كاملة`:`تسميع سورة ${l} من الآية ${u} حتى الآية `+c:1===t&&a===i?n===e+1?`تسميع سورتي ${l} و${o} كاملتين`:`تسميع السور من ${l} حتى `+o:n===e+1&&t==r&&1==a?`تسميع الآية ${u} من سورة ${l} والآية ${c} من سورة `+o:`تسميع من سورة ${l} الآية ${u} حتى سورة ${o} الآية `+c}let it={arak:{Backquote:["`","~"],Minus:["[","{"],Equal:["]","}"],KeyQ:["ض",'"'],KeyW:["ع","غ"],KeyE:["ب","پ"],KeyR:["ح","َ"],KeyT:["س","ً"],KeyY:["خ","ٌ"],KeyU:["د","ُ"],KeyI:["أ","آ"],KeyO:["ك","گ"],KeyP:["ج","چ"],BracketLeft:["/","؟"],BracketRight:["=","+"],KeyA:["ه","؛"],KeyS:["ي","»"],KeyD:["م","«"],KeyF:["ن","ْ"],KeyG:["ف","ڤ"],KeyH:["ت","ث"],KeyJ:["ل","ّ"],KeyK:["ا","ء"],KeyL:["و","ؤ"],Semicolon:["ر",">"],Quote:["إ","<"],KeyZ:[".",":"],KeyX:["،","ـ"],KeyC:["ش","_"],KeyV:["ق","-"],KeyB:["ص","'"],KeyN:["ذ","ٍ"],KeyM:["ة","ِ"],Comma:["ى","ئ"],Period:["ز","ژ"],Slash:["ط","ظ"]},dv:{Backquote:["`","~"],Minus:["[","{"],Equal:["]","}"],KeyQ:["'",'"'],KeyW:["،","<"],KeyE:[".",">"],KeyR:["ط","ظ"],KeyT:["ى","آ"],KeyY:["ف","ڤ"],KeyU:["غ","ـ"],KeyI:["ص","ض"],KeyO:["ر","»"],KeyP:["ل","«"],BracketLeft:["/","؟"],BracketRight:["=","+"],KeyA:["ا","أ"],KeyS:["ع","إ"],KeyD:["ه","ة"],KeyF:["و","ؤ"],KeyG:["ي","ئ"],KeyH:["د","َ"],KeyJ:["ح","ً"],KeyK:["ت","ٌ"],KeyL:["ن","ُ"],Semicolon:["س","ش"],Quote:["-","_"],KeyZ:["؛",":"],KeyX:["ق","ء"],KeyC:["ج","چ"],KeyV:["ك","گ"],KeyB:["خ","ْ"],KeyN:["ب","پ"],KeyM:["م","ّ"],Comma:["ث","ٍ"],Period:["ذ","ِ"],Slash:["ز","ژ"]},ibm:{Backquote:["ذ","ّ"],Minus:["-","_"],Equal:["=","+"],KeyQ:["ض","َ"],KeyW:["ص","ً"],KeyE:["ث","ُ"],KeyR:["ق","ٌ"],KeyT:["ف","لإ"],KeyY:["غ","إ"],KeyU:["ع","`"],KeyI:["ه","÷"],KeyO:["خ","×"],KeyP:["ح","؛"],BracketLeft:["ج","<"],BracketRight:["د",">"],KeyA:["ش","ِ"],KeyS:["س","ٍ"],KeyD:["ي","]"],KeyF:["ب","["],KeyG:["ل","لأ"],KeyH:["ا","أ"],KeyJ:["ت","ـ"],KeyK:["ن","،"],KeyL:["م","/"],Semicolon:["ك",":"],Quote:["ط",'"'],KeyZ:["ئ","~"],KeyX:["ء","ْ"],KeyC:["ؤ","}"],KeyV:["ر","{"],KeyB:["لا","لآ"],KeyN:["ى","آ"],KeyM:["ة","'"],Comma:["و",","],Period:["ز","."],Slash:["ظ","؟"]},mac:{Backquote:["§","±"],Minus:["-","_"],Equal:["=","+"],KeyQ:["ض","َ"],KeyW:["ص","ً"],KeyE:["ث","ِ"],KeyR:["ق","ٍ"],KeyT:["ف","ُ"],KeyY:["غ","ٌ"],KeyU:["ع","ْ"],KeyI:["ه","ّ"],KeyO:["خ","]"],KeyP:["ح","["],BracketLeft:["ج","}"],BracketRight:["ة","{"],KeyA:["ش","»"],KeyS:["س","«"],KeyD:["ي","ى"],KeyF:["ب",""],KeyG:["ل",""],KeyH:["ا","آ"],KeyJ:["ت",""],KeyK:["ن",""],KeyL:["م",""],Semicolon:["ك",":"],Quote:["؛",'"'],KeyZ:["ظ",""],KeyX:["ط",""],KeyC:["ذ","ئ"],KeyV:["د","ء"],KeyB:["ز","أ"],KeyN:["ر","إ"],KeyM:["و","ؤ"],Comma:["،",">"],Period:[".","<"],Slash:["/","؟"]}},lt={l:"l",letter:"l",w:"w",word:"w",a:"a",aaya:"a"},ot={t:"taj",taj:"taj",tajweed:"taj",b:"bas",bas:"bas",basic:"bas",n:"no",no:"no",none:"no"},ut={i:"imla",imla:"imla",imlaai:"imla",u:"uthm",uthm:"uthm",uthmani:"uthm"};function ct(e){return ut[e.toLowerCase()]}function st(e,t,n,a){e.value=null!=t?t:r.getItem(n),e.value||(e.value=a),e.value!==a&&r.setItem(n,e.value),e.onchange()}function dt(e,t,n){e.checked=null!=t?!t:!r.getItem(n),i(n,!e.checked),e.onchange()}null==(e=(e=>{let r,i,l,o,u,c,s,d,h,p,f,m,v,y,g,b,w,k,K,x,T;return e.slice(1).split("&").map(e=>e.split("=")).forEach((t,e)=>{var n,a=(...e)=>e.includes(t[0]);a("dark","d")?r=!0:a("light","l")?r=!1:a("color","c")?i=(n=t[1],ot[n.toLowerCase()]||i):a("mvbtns","mv","m")?l=(""==(n=(n=t[1]).toLowerCase())||"b"==n?"b":"r"==n?"r":"l"==n?"l":void 0)||l:a("quizmode","qz","q")?o=ct(t[1])||o:a("txt")?o=ct("imlaai"):a("byaaya")?u="a":a("byword")?u="w":a("byletter")?u="l":a("by")?u=(n=t[1],lt[n.toLowerCase()]||u):a("linebreaks")?c=!1:a("nolinebreaks")?c=!0:a("t","teach","teacher")?h=!0:a("n","noteach","noteacher")?h=!1:a("dt","disableteacher")?p=!0:a("dq","disablequizmode")?f=!0:a("dp","disablepreview")?m=!0:a("dc","disablecheat")?v=!0:a("hc","highcontrast")?y=!0:a("lc","lowcontrast")?g=!0:a("emu","emulate","emulation")?w=t[1]:a("qari")?s=t[1]:a("qariurl")?d=t[1]:a("tafsir")?b=t[1]:a("fp","fullpage")?k=!0:a("noborder")?K=!0:a("cn")?x=!0:a("zz")&&(T=!0)}),{dark:r,color:i,mv:l,quizmode:o,fbrate:u,nolinebreaks:c,teacher:h,disableteacher:p,disablequizmode:f,disablepreview:m,disablecheat:v,highcontrast:y,lowcontrast:g,emulate:w,qari:s,qariurl:d,fullpage:k,noborder:K,cn:x,zz:T}})(R.search+R.hash.replace(/^#/,"&"))).quizmode?r.imla&&(o.value="imla",o.onchange()):(o.value=e.quizmode,o.onchange(),i("imla","imla"===e.quizmode)),e.highcontrast&&p.classList.add("highcontrast"),e.lowcontrast&&p.classList.add("lowcontrast"),null==e.dark&&null==r.getItem("dark")?e.dark=window.matchMedia("(prefers-color-scheme: dark)").matches:null!=e.dark&&r.setItem("dark",e.dark?"Y":"N"),W.checked=e.dark||"Y"===r.dark,W.onchange(),window.prefers_reduced_motion=window.matchMedia("(prefers-reduced-motion: reduce)").matches,null==e.teacher?P.checked=!!r.teacher:(P.checked=e.teacher,i("teacher",e.teacher)),st(d,e.tafsir,"tafsir","ar_muyassar"),st(O,e.qari,"qari",""),st(G,e.mv,"mvbtns","b"),st(re,e.fbrate,"fbrate","l"),e.qariurl&&(O.value="_"),V.value=e.qariurl||"",J.value=null!=e.color?e.color:r.notajweed?"no":"taj","taj"!==J.value&&r.setItem("notajweed","Y"),J.onchange(),dt(te,e.nolinebreaks,"nolinebreaks"),dt(ee,null,"noayatnumcolor"),dt(ne,null,"notajweedlegend"),Be=e=>e.style.display="none",e.disableteacher&&Be(F),e.disablequizmode&&(Be(X),D(".mode_options_title").forEach(Be)),e.disablepreview&&Be(se),window.allow_cheating=!e.disablecheat,e.emulate&&it[e.emulate]&&(window.emulate=e.emulate),e.fullpage&&p.classList.add("fullpage"),e.noborder&&v.classList.add("noborder"),e.cn&&(Y.value=e.cn?"1":""),e.zz&&(U.value=e.zz?"1":"");let T=[7,286,200,176,120,165,206,75,129,109,123,111,43,52,99,128,111,110,98,135,112,78,118,64,77,227,93,88,69,60,34,30,73,54,45,83,182,88,75,85,54,53,89,59,37,35,38,29,18,45,60,49,62,55,78,96,29,22,24,13,14,11,11,18,12,12,30,52,52,44,28,28,20,56,40,31,50,40,46,42,29,19,36,25,22,17,19,26,30,20,15,21,11,8,8,19,5,8,8,11,11,8,3,9,5,4,7,3,6,3,5,4,5,6],ht=["الفاتحة","البقرة","آل عمران","النساء","المائدة","الأنعام","الأعراف","الأنفال","التوبة","يونس","هود","يوسف","الرعد","إبراهيم","الحجر","النحل","الإسراء","الكهف","مريم","طه","الأنبياء","الحج","المؤمنون","النور","الفرقان","الشعراء","النمل","القصص","العنكبوت","الروم","لقمان","السجدة","الأحزاب","سبأ","فاطر","يس","الصافات","ص","الزمر","غافر","فصلت","الشورى","الزخرف","الدخان","الجاثية","الأحقاف","محمد","الفتح","الحجرات","ق","الذاريات","الطور","النجم","القمر","الرحمن","الواقعة","الحديد","المجادلة","الحشر","الممتحنة","الصف","الجمعة","المنافقون","التغابن","الطلاق","التحريم","الملك","القلم","الحاقة","المعارج","نوح","الجن","المزمل","المدثر","القيامة","الإنسان","المرسلات","النبأ","النازعات","عبس","التكوير","الانفطار","المطففين","الانشقاق","البروج","الطارق","الأعلى","الغاشية","الفجر","البلد","الشمس","الليل","الضحى","الشرح","التين","العلق","القدر","البينة","الزلزلة","العاديات","القارعة","التكاثر","العصر","الهمزة","الفيل","قريش","الماعون","الكوثر","الكافرون","النصر","المسد","الإخلاص","الفلق","الناس"],pt=[0,32,50,66,81,98,112,130,148,164,183,195,209,225,239,249,259,269,278,289,307,325,344,367,385,405,425,445,463,478,493,504,516,528,550,566,580,592,606,627,640,655,669,680,695,709,719,735,750,765,777,801,824,847,862,883,899,915,929,939,954,984,1e3,1018,1041,1070,1095,1109,1124,1142,1160,1181,1200,1220,1235,1253,1268,1280,1294,1309,1327,1345,1356,1374,1389,1416,1434,1453,1478,1496,1513,1533,1556,1580,1602,1625,1648,1672,1696,1711,1725,1741,1759,1777,1802,1851,1901,1930,1951,1975,1990,2011,2029,2051,2078,2098,2127,2156,2171,2190,2214,2238,2271,2308,2348,2402,2430,2458,2483,2511,2533,2565,2595,2613,2632,2654,2673,2708,2747,2791,2811,2825,2843,2855,2875,2907,2932,2983,3042,3112,3159,3185,3214,3240,3263,3280,3302,3327,3340,3365,3385,3409,3439,3462,3490,3513,3533,3550,3563,3583,3592,3615,3629,3651,3674,3700,3732,3764,3809,3870,3932,3990,4021,4065,4089,4110,4133,4153,4173,4198,4226,4242,4264,4284,4298,4322,4348,4381,4430,4484,4510,4530,4554,4577,4600,4612,4625,4656,4705,4758,4809,4854,4901,4979,5053,5090,5104,5117,5136,5156,5177,5191,5217,5229,5241,5271,5323,5393,5447,5494,5551,5609,5672,5758,5829,5884,5948,6023,6090,6154,6236],ft=[0,7,12,23,31,36,44,55,64,68,76,83,90,95,100,108,112,119,126,133,141,148,152,160,170,176,183,188,193,197,203,209,217,222,226,231,237,240,244,252,255,259,263,266,271,276,281,288,289,293,302,308,315,322,330,338,345,354,363,370,376,384,393,401,408,414,425,433,441,446,450,458,466,473,479,487,493,499,504,507,512,516,519,526,530,537,544,552,558,567,572,579,584,587,594,598,606,614,620,627,633,640,647,655,663,668,671,674,678,682,686,692,700,705,710,714,719,726,733,739,745,751,758,764,772,777,782,789,797,807,816,824,833,841,848,857,862,870,879,883,890,899,907,913,920,926,931,935,940,946,954,965,976,984,991,997,1005,1011,1021,1027,1035,1041,1049,1058,1074,1084,1091,1097,1103,1109,1113,1117,1124,1132,1141,1149,1160,1168,1176,1185,1193,1200,1205,1212,1221,1229,1235,1241,1248,1255,1261,1266,1271,1275,1282,1289,1296,1303,1307,1314,1321,1328,1334,1341,1346,1352,1357,1364,1370,1378,1384,1389,1397,1406,1417,1425,1434,1442,1452,1461,1470,1478,1485,1492,1501,1510,1518,1526,1535,1544,1554,1561,1570,1581,1590,1600,1610,1618,1626,1633,1639,1648,1659,1665,1674,1682,1691,1699,1707,1712,1720,1725,1735,1741,1749,1755,1760,1768,1774,1783,1792,1802,1817,1833,1853,1872,1892,1907,1915,1927,1935,1943,1955,1965,1973,1980,1988,1994,2003,2011,2019,2029,2036,2046,2056,2067,2078,2087,2095,2104,2115,2125,2133,2144,2155,2160,2167,2174,2185,2193,2201,2214,2223,2237,2250,2261,2275,2288,2301,2314,2326,2345,2360,2385,2399,2412,2424,2435,2446,2461,2473,2483,2493,2507,2518,2527,2540,2555,2564,2573,2584,2595,2600,2610,2618,2625,2633,2641,2650,2659,2667,2673,2690,2700,2715,2732,2747,2762,2777,2791,2801,2811,2818,2822,2827,2834,2844,2849,2852,2857,2866,2875,2887,2898,2910,2922,2932,2951,2971,2992,3015,3043,3068,3091,3115,3138,3159,3172,3181,3194,3203,3214,3222,3235,3247,3257,3265,3273,3280,3287,3295,3302,3311,3322,3329,3336,3346,3354,3363,3370,3378,3385,3392,3403,3414,3424,3433,3441,3450,3459,3469,3480,3488,3497,3503,3514,3523,3533,3539,3548,3555,3563,3568,3576,3583,3587,3595,3606,3613,3620,3628,3637,3645,3654,3663,3671,3678,3690,3698,3704,3717,3732,3745,3759,3775,3788,3812,3839,3864,3890,3914,3941,3970,3986,3996,4012,4031,4053,4063,4068,4079,4089,4098,4105,4114,4125,4132,4140,4149,4158,4166,4173,4182,4191,4199,4210,4218,4229,4238,4247,4256,4264,4272,4282,4287,4294,4303,4316,4323,4335,4347,4358,4372,4385,4398,4414,4432,4453,4473,4486,4495,4505,4515,4524,4530,4538,4545,4556,4564,4574,4583,4592,4598,4606,4611,4616,4623,4630,4645,4665,4681,4705,4726,4749,4766,4784,4810,4828,4852,4873,4895,4917,4941,4968,4995,5029,5055,5078,5086,5093,5099,5104,5110,5115,5125,5129,5135,5142,5150,5155,5161,5168,5177,5185,5192,5199,5208,5217,5222,5229,5236,5241,5253,5267,5286,5313,5331,5357,5385,5414,5429,5447,5460,5475,5494,5512,5542,5570,5596,5616,5641,5672,5702,5727,5758,5800,5829,5854,5882,5909,5931,5963,5993,6016,6043,6072,6098,6125,6137,6155,6176,6193,6207,6221,6236],mt=[[1],[1,8,21,30,40,47,60,62,72,83,87,97,104,113,122,130,142,148,153,164,168,177,183,189,197,211,217,222,229,232,236,243,249,254,258,261,267,274,282,284],[1,10,21,31,42,55,64,72,81,92,102,110,121,130,144,149,156,172,181,190],[1,11,15,23,26,34,43,51,60,71,77,88,92,97,101,105,113,116,127,135,142,153,163,172],[1,6,12,20,27,35,44,51,57,67,78,87,94,101,109,116],[1,11,21,31,42,51,56,61,71,83,91,95,101,111,122,130,141,145,151,155],[1,11,26,32,40,48,54,59,65,73,85,94,100,109,127,130,142,148,152,158,163,172,182,189],[1,11,20,29,38,45,49,59,65,70],[1,7,17,25,30,38,43,60,67,73,81,90,100,111,119,123],[1,11,21,31,41,54,61,71,83,93,104],[1,9,25,36,50,61,69,84,96,110],[1,7,21,30,36,43,50,58,69,80,94,105],[1,8,19,27,32,38],[1,7,13,22,28,35,42],[1,16,26,45,61,80],[1,10,22,26,35,41,51,61,66,71,77,84,90,101,111,120],[1,11,23,31,41,53,61,71,78,85,94,101],[1,13,18,23,32,45,50,54,60,71,83,102],[1,16,41,51,66,83],[1,25,55,77,90,105,116,129],[1,11,30,42,51,76,94],[1,11,23,26,34,39,49,58,65,73],[1,23,33,51,78,93],[1,11,21,27,35,41,51,58,62],[1,10,21,35,45,61],[1,10,34,53,70,105,123,141,160,176,192],[1,15,32,45,59,67,83],[1,14,22,29,43,51,61,76],[1,14,23,31,45,52,64],[1,11,20,28,41,54],[1,12,20],[1,12,23],[1,9,21,28,35,41,53,59,69],[1,10,22,31,37,46],[1,8,15,27,38],[1,13,33,51,68],[1,22,75,114,139],[1,15,27,41,65],[1,10,22,32,42,53,64,71],[1,10,21,28,38,51,61,69,79],[1,9,19,26,33,45],[1,10,20,30,44],[1,16,26,36,46,57,68],[1,30,43],[1,12,22,27],[1,11,21,27],[1,12,20,29],[1,11,18,27],[1,11],[1,16,30],[1,24,47],[1,29],[1,26,33],[1,23,41],[1,26,46],[1,39,75],[1,11,20,26],[1,7,14],[1,11,18],[1,7],[1,10],[1,9],[1,9],[1,11],[1,8],[1,8],[1,15],[1,34],[1,38],[1,36],[1,21],[1,20],[1,20],[1,32],[1,31],[1,23],[1,41],[1,31],[1,27],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1]];function L(e){return+T.slice(0,e).reduce((e,t)=>e+t,0)}let M=j(115).map(L);function vt(t){return j(115).find(e=>M[e]>=t)}let _=30,yt=60,gt=240,bt=6236,wt=114,kt=604,Kt=556;function xt(e){return null==e?e:!!e.match(/^[0-9]+$/)}function Tt(e,t){return 2===(e=e.split(t)).length&&e.every(xt)}function Lt(e){return""===e||xt(e)||Tt(e,"//")||Tt(e,"/")}function Mt(e){var t;return""===e?[null,null]:1===(t=e.split("-")).length&&t.every(Lt)?[e,e]:2===t.length&&t.every(Lt)?t:[null,null]}function _t(t){var e;return t<0||6236t>=L(e)&&twt))return t=T[n-1],t=Math.max(1,Math.min(t,a)),L(n-1)+t}}else if(!(+e>bt))return+e}function Et(e,t){return t>mt[e-1].length?null:[L(e-1)+mt[e-1][t-1],t===mt[e-1].length?-1+L(e)+mt[e][0]:-1+L(e-1)+mt[e-1][t]]}function qt(n){var e;if(n.includes("/"))return 2!==(e=n.split("/")).length||+e[0]>wt?null:Et(+e[0],+e[1]);if(!(+n>Kt))for(let t=0;tt||+n[1]<0||+n[1]>e))return(+n[0]-1)*e+ +n[1]+1}function $t(e){return e.includes("//")?St(gt/_,_,e.split("//")):e.includes("/")?St(gt/yt,yt,e.split("/")):+e>gt?void 0:+e}function zt(e){return e.includes("/")?St(yt/_,_,e.split("/")):+e>yt?void 0:+e}var Ht,It,Ct,A,jt,E,Bt,Dt,q={maxCount:150,speed:2,frameInterval:15,alpha:1,gradient:!1,start:null,stop:null,toggle:null,pause:null,resume:null,togglePause:null,remove:null,isPaused:null,isRunning:null};function Nt(e,t,n){return e.color=It[Math.random()*It.length|0]+(q.alpha+")"),e.color2=It[Math.random()*It.length|0]+(q.alpha+")"),e.x=Math.random()*t,e.y=Math.random()*n-n,e.diameter=10*Math.random()+5,e.tilt=10*Math.random()-10,e.tiltAngleIncrement=.07*Math.random()+.05,e.tiltAngle=Math.random()*Math.PI,e}function Rt(){A=!0}function Qt(){A=!1,Wt()}function Wt(){if(!A)if(0===E.length)Dt.clearRect(0,0,window.innerWidth,window.innerHeight);else{var e=Date.now(),t=e-jt;if(!Ht||t>q.frameInterval){Dt.clearRect(0,0,window.innerWidth,window.innerHeight);var n,a=window.innerWidth,r=window.innerHeight;Bt+=.01;for(var i=0;ia+20||n.x<-20||n.y>r)&&(Ct&&E.length<=q.maxCount?Nt(n,a,r):(E.splice(i,1),i--));for(var l,o,u,c=Dt,s=0;s{var e;d.value=Yt.value,"ar_muyassar"===(e=d.value)?r.removeItem("tafsir"):r.setItem("tafsir",e),x("tafsir",e),nn(Ot)},e=>new Set(e.split(" "))),Xt=[0,7,107,217,293,493,669,789,954,1160,1235,1364,1473,1596,1707,1750,1901,2029,2140,2250,2348,2483,2595,2673,2791,2855,2932,3159,3252,3340,3409,3533,3606,3705,3970,4058,4133,4272,4472,4583,4630,4901,5104,5163,5241,5447,5672,5993,6130,6236],Zt=[0,493,954,1473,2140,2932,3788,4735,6236],Gt=Ut("tanweer tabary qortoby waseet katheer baghawy sa3dy fa_khorramdel"),Jt=Ut("dv fa ku ps sd ug ur"),en={},tn;function tv(e){nn(e)}function nn(r){Ot=r;let e,i=d.value,t=(e=i.match(/^([a-z]+)_/))?e[1]:"ar",n="ar"===t?" ":Jt.has(t)?` lang="${t}" `:` lang="${t}" dir="ltr" `;var l,a=d.innerHTML.match('value="'+d.value+'"[^<>]*>([^<>]+)')[1],a=" "==n?a:`ترجمة ${a}`,o=(Me.style.display="block",je(Me),r+";"+i),o=(tn!==o&&Se(Me),tn=o,vt(r)-1),u=C.u[r-1].replace(/[#A-Z<>]+/g,"");_e.innerHTML="",_e.append(h("p",{innerHTML:`${a} للآية ${k(r-M[o])} من سورة `+ht[o]}),Vt,h("p",{className:"aya",innerText:u}),h("hr")),Ae.append(N),l=e=>{Ae.innerHTML="'+e+""};{var c=i,s=r;let t=Gt.has(c)?Xt:Zt,e=t.findIndex(e=>s<=e),n=e-1,a=()=>{return e=en[c][n][s-t[n]-1],l(""===e?"
(لا يوجد تفسير لهذه الآية؛ اختر تفسيرا آخر أو آية أخرى)
":e.replace(/اً/g,"ًا"));var e};null==en[c]&&(en[c]=[]),en[c][n]?a():Yn(`rt/${c}-${e}.lzma`,e=>{en[c][n]=e,a()})}}function an(){Ce(Ee),setTimeout(()=>{Ee.style.display="none"},1e3)}B("#tvc > .x").onclick=()=>{Ce(Me),setTimeout(()=>{Me.style.display="none"},1e3)},B("#sxc > .x").onclick=an;let rn="آأإئؤء]",ln="
أدخل جزءًا من آية للبحث عنها
",S={},on=p.classList.contains("fullpage");function un(){Ue(Re(),We(),Qe(),Fe())&&pn(M[Re()]+We(),M[Qe()]+Fe())}function cn(){fn(S.st,S.en)}function sn(e){var t=e.target.id;"Enter"!==e.key||"aaya_bgn"!==t&&"aaya_end"!==t&&"sura_bgn"!==t&&"sura_end"!==t||("sura_bgn"===t?u:"aaya_bgn"===t?c:"sura_end"===t?s:"aaya_end"===t?ce:1).focus()}function dn(){y.hidden&&(y.hidden=!1,q.start(1200,50,150),"none"===be.style.display?(gn(),setTimeout(()=>ce.focus(),500)):(g.hidden=!0,setTimeout(()=>be.focus(),500)),m.hidden?f.classList.add("done"):(kn(),Ie()))}function tab_toggled(e){e.checked&&setTimeout(ze,100)}function hn(e,t,n){B("title").innerHTML=n+" | رسيت",x("title",n),l.value=e[0]-1,c.value=t[0]-1,Oe(u,De(),e[1]),Oe(s,Ne(),t[1])}function pn(e,t){S.st=e||S.st,S.en=t||S.en,yn("preview");var e=_t(e-1),t=_t(t-1),n=(R.hash=e.join("/")+"-"+t.join("/")+"&p",rt(...e,...t).replace(/تسميع/g,"عرض"));hn(e,t,oe.innerHTML=n),Un("u",()=>{var e=S.st,t=S.en,n=!!Y.value;f.style.textAlign="",f.innerHTML="",f.classList.remove("done"),ge.style.marginTop="2em",at(),f.innerHTML=Xn(e,t,n).join("")})}function fn(e,t){S.st=e||S.st,S.en=t||S.en;var n=O.value,a=V.value,r=o.value,i=(P.checked,r.slice(0,1)),e=(yn(r),_t(e-1)),t=_t(t-1),l=(R.hash=e.join("/")+"-"+t.join("/")+"&q="+i,rt(...e,...t));hn(e,t,oe.innerHTML=l),l=e,e=t,t=n,n=a,K.init(t,n),K.fill(Vn(l[0]-1,l[1],e[0]-1,e[1])),U.value&&parent.zz_show(),g.Qall("button").forEach(e=>e.disabled=!0),f.style.textAlign="center",f.append(N),Un(i,"imla"===r?mn:vn)}function mn(){var e=S.st,t=S.en;function i(){if(y.hidden){a&&(v.value=v.value.replace(/ \u06dd/g," ۝").replace(/[^ \xA0\nء-غف-\u0652٠-٩\u06DD]+/g,"").replace(/ +(\n)/g,"$1").replace(/(\A|\n| )[ \n]+/g,"$1"),a=!1);var e=v.value.slice(-2);if(" "!==e&&"\n"!==e||(v.value="")," "!==e&&"\n "!==e&&"\n\n"!==e||(v.value=v.value.slice(0,-1))," \n"===e&&(v.value=v.value.slice(0,-2)+"\n"),et(l,v.value)){if(m.classList="",!r)return;("\n"===(e=v.value.slice(-1))||"a"!==re.value&&" "===e)&&u(e),"\n"===e&&K.play(v.value.split("\n").length-2+(n?1:0)),v.value===l&&(v.value=v.value.slice(0,-1),dn(),He(),v.disabled=!0,m.classList="done",me.focus())}else e=v.value.slice(-1),"a"!==re.value&&(" "===e&&et(l,v.value.slice(0,-1)+"\n")||"\n"===e&&et(l,v.value.slice(0,-1)+" "))?m.classList="spacewrong":m.classList="wrong";v.selectionStart===v.value.length&&requestAnimationFrame(Ie)}}let n=P.checked,l=(v.focus(),C.i.slice(e-1,t).map(e=>e.startsWith("#")?e.replace("#","بِسْمِ اللَّهِ الرَّحْمَنِ الرَّحِيمِ\n"):e).join("\n")+"\n"),a=!1,r=v.selectionStart===v.value.length,o=(e,t)=>{let n=0,a=e.replace(new RegExp("[^"+t+"]+","g"),"").length;for(let e=0;e{var t,e=o(v.value,e);v.selectionStart===v.value.length?v.value=l.slice(0,e):(t=Xe(v.value.slice(0,v.selectionStart)),t=o(t,t.slice(-1)),v.value=l.slice(0,e),v.selectionStart=v.selectionEnd=t+1)},c=0,s=0;v.onkeydown=e=>{var t,n,a=!e.altKey&&!e.ctrlKey;if(a&&"!"===e.key&&window.allow_cheating){e.preventDefault();var r=(new Date).getTime();if(r-s<250)return;if(s=r,10===(c+=1)&&(c=0,et(l,v.value,Ze))){for(u(Xe(v.value).slice(-1));v.value=l.slice(0,v.value.length+1),""===Xe(v.value.slice(-1)););return i(),void Ie()}}else c=0,s=0;a&&1===e.key.length&&(e.preventDefault(),(r=window.emulate&&it[window.emulate]&&it[window.emulate][e.code]?it[window.emulate][e.code][+e.shiftKey]:e.key).match(/^[ \nء-غف-\u0652]$|^ل[اأإآ]$/))&&(a=v,(e=r)&&(r=a.selectionStart,n=a.selectionEnd,t=a.value.substring(0,r),n=a.value.substring(n,a.value.length),a.value=t+e+n,a.selectionStart=a.selectionEnd=r+e.length),i())},v.oninput=i,v.onpaste=e=>{a=!0},document.onkeyup=null,document.ondblclick=null,n&&K.play(0)}function vn(){function e(a){if(0!==l.length){let e="a"===a?e=>"a"!==e:"j"===a?e=>"a"!==e&&"j"!==e:e=>!1,t,n="";do{var r=l.shift()}while(n+=r,t=Ye(r.slice(-2)),e(t));"a"===t&&(K.next(),K.play()),f.innerHTML+=n,0===l.length&&dn(),He()}}function t(e){let t=f.innerHTML;if(0!==t.length&&y.hidden){for(var n="a"===e?e=>"a"!==e:"j"===e?e=>"a"!==e&&"j"!==e:e=>!1;0e.disabled=!1),f.style.textAlign="",f.innerHTML="",f.classList.remove("done"),f.focus(),K.set_index(i?0:-1),ge.style.marginTop="2em",at(),Xn(n,a,r)),o=()=>e(""),u=()=>e("a"),c=()=>e("j"),s=()=>t(""),d=()=>t("a"),h=()=>t("j");document.onkeyup=function(e){var t=e.target.nodeName,n=e.key,e=e.shiftKey||e.ctrlKey||e.altKey,a="Backspace"===n||"ArrowRight"===n;"INPUT"!==t&&"SELECT"!==t&&"BUTTON"!==t&&(" "===n||"Enter"===n||"ArrowLeft"===n?(e?u:o)():a?(e?d:s)():"0"!==n&&"["!==n||e?"1"!==n&&"]"!==n||e||h():c())},document.ondblclick=e=>{e.target!==f&&e.target!==p||o()},Le.onclick=u,Te.onclick=c,xe.onclick=o,Ke.onclick=s,ke.onclick=h,we.onclick=d,i&&K.play(0)}document.body.addEventListener("click",e=>{"BUTTON"===e.target.tagName&&("new"===e.target.id?ce.focus():e.target.blur())}),n.onclick=e=>{"true"===n.getAttribute("aria-expanded")?(n.setAttribute("aria-expanded",!1),n.Qall("circle").forEach(e=>e.setAttribute("cx",875==e.getAttribute("cx")?125:45)),n.Qall("text").forEach(e=>Ce(e)),Ce(n.Q("line")),n.Q("rect").setAttribute("width",155),setTimeout(()=>n.setAttribute("viewBox","0 0 155 400"),500)):(n.setAttribute("viewBox","0 0 925 400"),n.setAttribute("aria-expanded",!0),n.Qall("circle").forEach(e=>e.setAttribute("cx",e.getAttribute("cx")<50?400:875)),n.Qall("text").forEach(e=>je(e)),je(n.Q("line")),n.Q("rect").setAttribute("width",925))},document.addEventListener("keyup",e=>{"Escape"===e.key&&(K.play(),!m.hidden)&&y.hidden&&v.focus()}),ce.onclick=function(){Ue(Re(),We(),Qe(),Fe())&&fn(M[Re()]+We(),M[Qe()]+Fe())},se.onclick=un,pe.onclick=un,fe.onmouseup=cn,fe.onclick=cn;let yn=function(e){ue.hidden=!0,de.hidden=!1,y.hidden=!0,oe.style.display="inline-block",be.style.display=U.value?"block":"none",ve.style.display=U.value?"":"none",me.style.display=U.value?"none":"";var t=document.documentElement;"preview"===e?(fe.innerHTML="ابدأ\nالاختبار",fe.title="ابدأ في تسميع الآيات.",pe.style.display="none",he.classList.remove("b3"),f.hidden=!1,f.innerHTML="",g.hidden=!0,m.hidden=!0,ye.style.color="",t.style.setProperty("--sticky","sticky")):(fe.innerText="إعادة",fe.title="اضغط لإعادة هذا الاختبار من البداية.","none"!==se.style.display?(pe.style.display="",he.classList.add("b3")):pe.style.display="none","imla"===e?(m.style.height=on?"100vh":"95vh",v.value="",v.disabled=!1,m.classList="",m.hidden=!1,f.hidden=!0,g.hidden=!0,ye.style.color="transparent",t.style.setProperty("--sticky",""),v.focus()):(f.hidden=!1,f.innerHTML="",g.hidden=!1,m.hidden=!0,ye.style.color="",t.style.setProperty("--sticky","sticky"))),nt(),He()},gn=function(){ue.hidden=!1,de.hidden=!0,g.hidden=!0,oe.style.display="none",n.style.display="none",nt()},bn=function(){f.hidden=!0,document.onkeyup=null,document.ondblclick=null,ge.style.marginTop="4em",m.hidden=!0,y.hidden=!0};function wn(){R.hash="",gn(),bn()}function kn(){var e=getComputedStyle,t=(a=parseFloat)(e(ue).height)+a(e(ue.Q("hr")).marginBottom),t=isNaN(t)?a(e(de).height):t,n=a((e=e(y)).height)+a(e.marginTop)+a(e.marginBottom),a=a(e.marginTop),e=(e=visualViewport)?e.height:document.body.clientHeight;m.style.height=e-t-n-.1*a+"px"}me.onmouseup=wn,me.onclick=wn,be.onclick=()=>{bn(),parent.zz_done()},ve.onclick=()=>{bn(),parent.zz_ignore()},onload=function(){{var e=ht.map((e,t)=>``).join("");l.innerHTML=c.innerHTML=e,qe.innerHTML=''+e,u.innerHTML=s.innerHTML=Pe(T[0]),s.value=T[0],u.value=1,l.value=c.value=0,l.oninput=u.oninput=c.oninput=s.oninput=Ve,l.onblur=u.onblur=c.onblur=s.onblur=Ve,l.onkeyup=u.onkeyup=c.onkeyup=s.onkeyup=sn;let a="",r=0;u.onkeydown=s.onkeydown=e=>{var t,n;e.key.match(/[0-9]/)&&(t=(new Date).getTime(),r=(t-r<500?a+=e.key:a=e.key,t),n=+e.target.lastChild.value,1<=a&&a<=n?e.target.value=a:1<=e.key&&e.key<=n&&(e.target.value=a=e.key,r=t))},D(".search").forEach(e=>e.onclick=({target:n})=>{{var c=(n=(n="SPAN"===n.tagName?n.parentElement:n).previousElementSibling).previousElementSibling.previousElementSibling,s=n;b.value="",w.innerHTML=ln,Ee.style.display="block",je(Ee),b.focus();let i=!1,e=()=>{i=!1;let e=qe.value,n=""===e?0:M[e],a=""===e?6236:n+T[e],r=b.value.replace(/[هتة]\b/g,"T").replace(/ا/g,"A").replace(/ى/g,"Y").replace(/ي/g,"I").replace(/و/g,"W").replace(/[آأإ]/g,"a").replace(/ئ/g,"i").replace(/ؤ/g,"w").replace(/ء/g,"x").replace(/T/g,"[هتة]").replace(/A/g,"[اىأإآ]").replace(/Y/g,"[ايىئأإ]").replace(/I/g,"[يىئ]").replace(/W/g,"[وؤ]").replace(/a/g,"[ا"+rn).replace(/i/g,"[يى"+rn).replace(/w/g,"[و"+rn).replace(/x/g,"["+rn),o=C.p.map((e,t)=>n<=t&&t-1!==e);if(50يطابق بحثك "+k(o.length)+" من الآيات، وهو أكثر من ٥٠؛ حاول التحديد أكثر";else if(0===o.length)w.innerHTML="
تعذر إيجاد العبارة التي أدخلتها
";else{w.innerHTML=`
يوجد ${k(o.length)} من الآيات
`;let t=j(o.length).map(e=>h("div",{className:"ac"}));t.forEach((e,t)=>{let n=o[t],a=vt(n+1)-1,r=n-M[a]+1,i=k(r),l=ht[a];e.onclick=()=>{c.value=a,Ve({target:c}),s.value=r,Ve({target:s}),an()},e.append(h("span",{className:"s_a",innerHTML:`سورة ${l} آية ${i}:`}),h("span",{className:"aya",innerHTML:"يحمّل"}))}),w.append(...t,N),Un("u",()=>{for(let e=0;e]+/g,"");w.removeChild(N)})}},l;function d(){clearTimeout(l),l=null,i||w.insertBefore(N,w.firstChild),i=!0,l=setTimeout(t,1e3)}let t=()=>(C.p?e:d)(),o=e=>e.replace(/\s+/g," ").replace(/\u06A9/g,"ك").replace(/\u06CC/g,"ي").replace(/[\u06BE\u06C1]/g,"ه").replace(/[^ء-غف-ي ]/g,""),u="";b.oninput=e=>{var t=b.selectionStart,n=b.value.length,a=b.value[t-1],r=b.value[t],t=(b.value=o(b.value),b.selectionStart=b.selectionEnd=t-(n-b.value.length)+(" "===a&&" "===r?1:0)," "===b.value?"":b.value);u===t?u=t:""===(u=t)?(clearTimeout(l),l=null,i=!1,w.innerHTML=ln):d()},qe.oninput=()=>{var e=o(b.value);""!==e&&" "!==e&&(clearTimeout(l),l=null,t())},C.p||Un("i",()=>{C.p=C.i.map(e=>e.replace(/[^ ء-ي\n]/g,"").replace(/^|$/g," "))})}})}D("input, select").forEach(e=>e.onchange&&e.onchange()),e=a("xyz"),t=B("body").innerHTML.match(/github[.]com\/([a-z0-9]+)\//)[1],e.innerHTML=t+String.fromCharCode(64)+"pro"+(""+!0)[0]+"moc.liamno".split("").reverse().join(""),e.href=e.innerHTML.slice(16,20)+"to"+String.fromCharCode(64^"xyz".charCodeAt(2))+e.innerHTML;var[t,e,n]=(e=>{let a,r,i=0,l=0,o;return e.slice(1).split("&").map(e=>e.split("=")).forEach((t,e)=>{var n=(...e)=>e.includes(t[0]);n("p","preview")?o=!0:n("a")?i=isNaN(+t[1])?i:+t[1]:n("b")?l=isNaN(+t[1])?l:+t[1]:n("p")?[a,r]=((e,t)=>{if(null!=e&&(e=+e||1,t=+t||kt,!(e>kt||t>kt)))return[ft[+e-1]+1,ft[+t]]})(...Mt(t[1]))||[a,r]:n("s")?[a,r]=((e,t)=>{if(""===t&&(t="114"),xt(e=""===e?"1":e)&&xt(t)&&(e=+e||1,t=+t||wt,!(e<1||t<1||e>wt||t>wt)))return[L(e-1)+1,L(t-1)+T[t-1]]})(...Mt(t[1]))||[a,r]:n("r")?[a,r]=((e,t)=>{if(null!=e&&(e=$t(e),t=$t(t),null!=e)&&null!=t)return[pt[(e||1)-1]+1,pt[t||240]]})(...Mt(t[1]))||[a,r]:n("h")?[a,r]=((e,t)=>{if(null!=e){var n,e=zt(e),t=zt(t);if(null!=e&&null!=t)return n=gt/yt,[pt[((e||1)-1)*n]+1,pt[(t||60)*n]]}})(...Mt(t[1]))||[a,r]:n("j")?[a,r]=((e,t)=>{var n;if(null!=e&&(e=+e||1,t=+t||_,!(e>_||t>_)))return n=gt/_,[pt[((e||1)-1)*n]+1,pt[(t||_)*n]]})(...Mt(t[1]))||[a,r]:n("k")?[a,r]=((e,t)=>{if(null!=e&&(e=qt(e),t=qt(t),null!=e)&&null!=t)return[e[0],t[1]]})(...Mt(t[1]))||[a,r]:[a,r]=((e,t)=>{if(e&&(e=At(e),t=At(t),null!=e)&&null!=t)return[+e||1,+t||bt]})(...Mt(t[0]))||[a,r]}),null==a||null==r?[null,null]:(a-=l,r+=i,a<=0&&(a=1),6236{t.addEventListener("toggle",e=>{t.open&&(window.prefers_reduced_motion?t.scrollIntoView({block:"nearest",inline:"nearest"}):t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}))})})},v.onfocus=()=>v.scrollIntoView(window.scroll_behavior),window.visualViewport&&window.visualViewport.addEventListener("resize",e=>{m.hidden||(y.hidden?(m.style.height=on?e.target.height+"px":Math.trunc(.95*e.target.height)+"px",v.scrollIntoView()):kn())}),Kn="function"==typeof setImmediate?setImmediate:setTimeout,xn=[4294967295,-($=4294967296)],Tn=[0,0],Ln=[1,0],"undefined"==typeof onmessage||"undefined"!=typeof window&&void 0!==window.document||(onmessage=function(e){e&&e.W&&2==e.W.action&&Mn.decompress(e.W.W,e.W.cbn)});var Kn,$,xn,Tn,Ln,Mn={decompress:function(e,r,i){var l,n,o,u,c={},t=void 0===r&&void 0===i;if("function"!=typeof r&&(n=r,r=i=0),i=i||function(e){return void 0!==n?void postMessage({action:3,cbn:n,result:o?e:-1}):void 0},r=r||function(e,t){return void 0!==n?postMessage({action:2,cbn:n,result:e,error:t}):void 0},t){for(c.d=Hn({},e);Bn(c.d.Q););return Pn(zn(c.d.S))}try{c.d=Hn({},e),u=On(c.d.N),o=-1=e.O?-1:255&e.ab[e.cb++]}function zn(e){var t=e.ab;return t.length=e.O,t}function Hn(e,t){e.S=((i={}).ab=z(32),i.O=0,i);for(var n,a,r,i=e,l=((r={}).ab=t,r.cb=0,r.O=t.length,r),t=e.S,o="",u=[],c=0;c<5;++c){if(-1==(n=$n(l)))throw Error("truncated input");u[c]=n<<24>>24}if(!((e,t)=>{var n,a,u,c,r;if(!(t.length<5)){for(u=(r=255&t[0])%9,c=(r=~~(r/9))%5,r=~~(r/5),a=n=0;a<4;++a)n+=(255&t[1+a])<<8*a;return!(99999999{var n,a,r;if(!(8{e.b={},e.a={},e.q=z(192),e.E=z(12),e.s=z(12),e.u=z(12),e.r=z(12),e.n=z(192),e.j=z(4),e.J=z(114),e.t=Wn({},4),e.C=Rn({}),e.o=Rn({}),e.k={};for(var t=0;t<4;++t)e.j[t]=Wn({},6);return e})({}),u))throw Error("corrupted input");for(c=0;c<64;c+=8){if(-1==(n=$n(l)))throw Error("truncated input");o=(n=1==(n=n.toString(16)).length?"0"+n:n)+""+o}return/^0+$|^f+$/i.test(o)?i.N=xn:(a=parseInt(o,16),i.N=4294967295{e.b.w=0,e.b.D=0,I(e.q),I(e.n),I(e.E),I(e.s),I(e.u),I(e.r),I(e.J);for(var t=e.k,n=1<{var r,t,n=Sn(e.d)&e.P;if(H(e.a,e.q,(e.f<<4)+n)){if(H(e.a,e.E,e.f))t=0,H(e.a,e.s,e.f)?(H(e.a,e.u,e.f)?(H(e.a,e.r,e.f)?(o=e._,e._=e.R):o=e.R,e.R=e.T):o=e.T,e.T=e.l,e.l=o):H(e.a,e.n,(e.f<<4)+n)||(e.f=e.f<7?9:11,t=1),t||(t=Nn(e.o,e.a,n)+2,e.f=e.f<7?8:11);else if(e._=e.R,e.R=e.T,e.T=e.l,t=2+Nn(e.C,e.a,n),e.f=e.f<7?7:10,4<=(n=Fn(e.j[o=t,(o-=2)<4?o:3],e.a))){if(e.l=(2|1&n)<<(r=(n>>1)-1),n<14)e.l+=((e,t,n,a)=>{for(var r,i=1,l=0,o=0;o{for(var t,n=0,a=r-4;0!=a;--a)e.i>>>=1,e.p-=e.i&(t=e.p-e.i>>>31)-1,n=n<<1|1-t,-16777216&e.i||(e.p=e.p<<8|$n(e.K),e.i<<=8);return n})(e.a)<<4,e.l+=((e,t)=>{for(var n,a=1,r=0,i=0;e.A>i;++i)a=(a<<1)+(n=H(t,e.B,a)),r|=n<=e.m)return-1;var a=e.b,i=t,l=a.D-e.l-1;for(l<0&&(l+=a.c);0!=i;--i)l>=a.c&&(l=0),a.x[a.D++]=a.x[l++],a.c<=a.D&&In(a);e.d=_n(e.d,qn(t)),e.I=Cn(e.b,0)}else{o=e.k,n=Sn(e.d),t=o.F[((n&o.Y)<>>8-o.g)],e.I=e.f<7?((e,t)=>{for(var n=1;(n=n<<1|H(t,e.v,n))<256;);return n<<24>>24})(t,e.a):((e,t,n)=>{var a,r,i=1;do{if(r=n>>7&1,n<<=1,i=i<<1|(a=H(t,e.v,(1+r<<8)+i)),r!=a){for(;i<256;)i=i<<1|H(t,e.v,i);break}}while(i<256);return i<<24>>24})(t,e.a,Cn(e.b,e.l));var n=e.b,o=e.I;n.x[n.D++]=o,n.c<=n.D&&In(n),e.f=(t=e.f)<4?0:t<10?t-3:t-6,e.d=_n(e.d,Ln)}return 0})(t.h);if(-1==n)throw Error("corrupted input");return t.$=xn,t.Z=t.h.d,(n||0<=An(t.h.U,Tn)&&0<=An(t.h.d,t.h.U))&&(In(t.h.b),jn(t.h.b),t.h.a.K=null,t.X=0),e.X}function Dn(e,t){for(;t>e.e;++e.e)e.G[e.e]=Wn({},3),e.H[e.e]=Wn({},3)}function Nn(e,t,n){return H(t,e.M,0)?8+(H(t,e.M,1)?8+Fn(e.L,t):Fn(e.H[n],t)):Fn(e.G[n],t)}function Rn(e){return e.M=z(2),e.G=z(16),e.H=z(16),e.L=Wn({},8),e.e=0,e}function Qn(e){I(e.M);for(var t=0;e.e>t;++t)I(e.G[t].B),I(e.H[t].B);I(e.L.B)}function Wn(e,t){return e.A=t,e.B=z(1<>>11)*a;return(-2147483648^e.p)<(-2147483648^r)?(e.i=r,t[n]=a+(2048-a>>>5)<<16>>16,-16777216&e.i||(e.p=e.p<<8|$n(e.K),e.i<<=8),0):(e.i-=r,e.p-=r,t[n]=a-(a>>>5)<<16>>16,-16777216&e.i||(e.p=e.p<<8|$n(e.K),e.i<<=8),1)}function I(e){for(var t=e.length-1;0<=t;--t)e[t]=1024}function Pn(e){for(var t,n,a,r=0,i=0,l=e.length,o=[],u=[];rj(115).slice(+e+1,+a+2).map(t=>j(+T[t-1]+1).slice(t===+e+1?+n:1,t===+a+1?+r+1:300).map(e=>t.toString().padStart(3,"0")+e.toString().padStart(3,"0"))).reduce((e,t)=>(!t[0].match(/001$/)||t[0].match(/^001/)||t[0].match(/^009/)||t.unshift("001001"),e.push(...t),e),[]);var C={};function Yn(e,t){fetch(e).then(e=>e.ok?e.arrayBuffer():null).then(e=>{t(LZMA.decompress(new Uint8Array(e)).split("\n").slice(0,-1))})}function Un(t,n){C[t]?n():Yn(`res/${t}.lzma`,e=>{C[t]=e,n()})}function Xn(a,r,i){var e=M[vt(r)];i&&re.replace(/A/,t+a+"A")).reduce((e,t,n)=>(t.startsWith("#")&&(e.push(l+"
"),t=t.replace("#","")),i&&n===r-a&&(t=t.replace(/([\u06DC\u06D6\u06D7\u06D8\u06DA\u06DB]) .*/,"$1")),e.push(t),e),[]).map(e=>(e.replace(/([A-Z])<([^>]+)>/g,'$2').replace(/ /g,"\t")+"\n").replace(/_/g," ").replace(/([0-9]+)((e.push(...t.split("",-1)),e),[])}window.goatcounter={path:location.href.replace(/[?#].*/,""),allow_frame:!0},document.body.append(h("script",{Dataset:{goatcounter:"https://recite.goatcounter.com/count"},async:!0,src:"//gc.zgo.at/count.js"})) \ No newline at end of file +let j=e=>[...Array(e).keys()];function B(e){return document.querySelector(e)}function D(e){return document.querySelectorAll(e)}function a(e){return document.getElementById(e)}function h(e,t={}){var n,a=document.createElement(e);for(n in t)if("Dataset"===n)for(var r in t[n])a.dataset[r]=t[n][r];else a[n]=t[n];return a}function t(e,t={}){var n,a=document.createElementNS("http://www.w3.org/2000/svg",e);for(n in t)a.setAttribute(n,t[n]);return a}Element.prototype.Q=Element.prototype.querySelector,Element.prototype.Qall=Element.prototype.querySelectorAll;let N=t("svg",{id:"spinner-svg",viewBox:"-50 -50 100 100"}),R=(N.appendChild(t("circle",{id:"spinner",cx:0,cy:0,r:35,fill:"none","stroke-width":"10","stroke-dasharray":"40 30"})),location),r=localStorage,i=(e,t=!0)=>{t?r.setItem(e,"Y"):r.removeItem(e)},Q=a("dark"),p=a("body"),W=(a("all"),a("help"),a("helptoggle"),a("optiontoggle"),a("options"),a("guide"),a("darkmode_option"),a("darkmode_input")),F=a("teacher_option"),P=a("teacher"),O=a("qaris"),V=a("qariurl"),Y=a("cn"),U=a("zz"),X=a("quizmode_option"),o=a("quizmode"),Z=a("uthm_options"),d=(a("uthm_options_title"),a("tafsir_option")),G=a("mvbtns_input"),J=a("textclr_input"),ee=a("ayatnum_input"),te=a("linebreaks_input"),ne=a("tl_input"),ae=a("imla_options"),re=(a("imla_options_title"),a("feedbackrate")),ie=(a("helpcontent"),a("player")),le=a("preloader"),oe=a("title"),ue=a("selectors"),l=a("sura_bgn"),u=a("aaya_bgn"),c=a("sura_end"),s=a("aaya_end"),ce=a("ok"),se=a("show"),de=a("header"),he=a("hb"),pe=a("reshow"),fe=a("repeat"),me=a("new"),ve=a("zzignore"),ye=a("end_of_header"),ge=a("tafsirhint"),f=a("uthm_txt"),m=a("imla_txt_container"),v=a("imla_txt"),y=a("endmsg"),be=a("zzback"),g=a("mvbtns"),we=a("prevaaya"),ke=a("prevjmla"),Ke=a("prevword"),xe=a("nextword"),Te=a("nextjmla"),Le=a("nextaaya"),n=a("tl"),Me=(a("N"),a("X"),a("R"),a("Q"),a("L"),a("W"),a("J"),a("T"),a("tvc")),_e=(a("tv"),a("tvh")),Ae=a("tvt"),Ee=a("sxc"),qe=(a("sx"),a("sxi"),a("sura_sx")),b=a("sxq"),w=a("sxr"),Se=e=>e.scrollTo({top:0}),$e=e=>e.scrollTo({top:e.scrollHeight}),ze=()=>Se(p),He=()=>$e(p),Ie=()=>{$e(p),$e(v)},Ce=e=>{e.style.visibility="hidden",e.style.opacity="0"},je=e=>{e.style.visibility="visible",e.style.opacity="1"},k=e=>e.toString().replace(/[0٠]/g,"٠").replace(/[1١]/g,"١").replace(/[2٢]/g,"٢").replace(/[3٣]/g,"٣").replace(/[4٤]/g,"٤").replace(/[5٥]/g,"٥").replace(/[6٦]/g,"٦").replace(/[7٧]/g,"٧").replace(/[8٨]/g,"٨").replace(/[9٩]/g,"٩").replace(/[^٠١٢٣٤٥٦٧٨٩]/g,""),e,Be,De=()=>""===l.value?0:T[+l.value],Ne=()=>""===c.value?0:T[+c.value],Re=()=>""===l.value?"":+l.value,Qe=()=>""===c.value?"":+c.value,We=()=>""===u.value?"":+u.value,Fe=()=>""===s.value?"":+s.value,Pe=e=>j(e).map(e=>``).join(""),Oe=(e,t,n)=>{We(),e.innerHTML=Pe(t),e.value=n||t};function Ve(e){var t=e.target,e="blur"===e.type;t!==u&&s,e||t!==l?e||t!==c||(Oe(s,Ne()),Qe(){let t,n,a;function r(e){return null!=e?e:a}function i(e){return null==(e=r(e))||e<0||!n||!t||e>=t.length}function l(e){if(!i(e=r(e)))return n+t[e]+".mp3"}function o(e){i(e=r(e))||(le.src=l(e))}function u(e){e=+e,isNaN(e)||(a=e,o())}function c(){(i()?Ce:je)(ie)}function s(e){n=e?`https://www.everyayah.com/data/${e}/`:void 0,o()}return{update_qari:function(e){s(e),c()},init:function(e,t){s(e),!e&&t&&(n=t.endsWith("/")?t:t+"/"),u(0)},fill:function(e){t=e,u(0),c()},play:function(e){null!=e&&u(e),c(),i()||(ie.src=l(),ie.addEventListener("loadeddata",()=>o(a+1)),ie.play().catch(()=>{}))},set_index:function(e){u(e)},next:function(){u(a+1)},back:function(){u(a-1)}}})();function Ye(e){var t=e.slice(-1);return""===t||"\n"===t?"a":e.match(/[\u06D6-\u06DC]\t/)?"j":""}function Ue(e,t,n,a){return""!==e&&""!==t&&""!==n&&""!==a&&e<=n&&(t<=a||ee.replace(/[\u064B-\u0652\xA0\u06DD٠-٩]+/g,""),Ze=e=>e,Ge=e=>e.replace(/\S*$/,""),Je=e=>e.replace(/[^\n]*$/,"");function change_feedbackrate(){var e=re.value;window.imlafilter="a"===e?Je:"w"===e?Ge:Ze,v.value&&v.oninput&&v.oninput(),"l"===e?r.removeItem("fbrate"):r.setItem("fbrate",e),x("feedbackrate",e)}window.imlafilter=Ze;let et=(e,t,n=window.imlafilter)=>Xe(e).startsWith(Xe(n(t))),tt=(e,t)=>f.classList.toggle(e,t);function nt(){var e=y.hidden,t=f.hidden,n=ue.hidden,a="uthm"!==o.value,r=!fe.innerText.startsWith("ابدأ");ge.hidden=(t||r&&e)&&(!e||n||a)}function at(){ne.checked?n.style.display=f.hidden||"taj"!==J.value?"none":"":("true"===n.getAttribute("aria-expanded")&&n.onclick({}),n.style.display="none")}function change_tajweed(){var e=J.value,t="taj"!==e;i("notajweed",t),tt("letter-parts","bas"===e),tt("letter-nocolor","no"===e),ne.disabled=t,ne.previousElementSibling.classList.toggle("disabled",t),at(),x("tajweed",e.slice(0,1))}function change_teacher(){var e=P.checked;i("teacher",e),x("teacher",e)}function change_ayatnum(){var e=!ee.checked;i("noayatnumcolor",e),tt("ayat-nocolor",e),x("ayatnum",!e)}function change_linebreaks(){var e=!te.checked;i("nolinebreaks",e),tt("nb",e),x("linebreaks",!e)}function change_dark(){var e=W.checked;r.setItem("dark",e?"Y":"N"),x("dark",Q.checked=e)}function change_mvbtns(){var e=G.value,t=("b"===e?r.removeItem("mvbtns"):r.setItem("mvbtns",e),"r"===e?"sidebtns rightside":"l"===e?"sidebtns leftside":"");g.className=t,f.classList.toggle("sidebtns",t),n.classList.toggle("right","l"===e),x("mvbtns",e)}function change_tafsir(){var e=d.value;"ar_muyassar"===(e=d.value)?r.removeItem("tafsir"):r.setItem("tafsir",e),x("tafsir",e)}function change_tajweedlegend(){i("notajweedlegend",!ne.checked),at()}function rt(e,t,n,a){e=+e,t=+t,n=+n,a=+a;var r=T[e-1],i=T[n-1],l=ht[e-1],o=ht[n-1],u=1===t?"الأولى":t===r?k(t)+" الأخيرة":k(t),c=1===a?"الأولى":a===i?k(a)+" الأخيرة":k(a);return e===n?t===a?`تسميع الآية ${u} من سورة `+l:a===t+1?`تسميع الآيتين ${u} و${c} من سورة `+l:1===t&&a===i?`تسميع سورة ${l} كاملة`:`تسميع سورة ${l} من الآية ${u} حتى الآية `+c:1===t&&a===i?n===e+1?`تسميع سورتي ${l} و${o} كاملتين`:`تسميع السور من ${l} حتى `+o:n===e+1&&t==r&&1==a?`تسميع الآية ${u} من سورة ${l} والآية ${c} من سورة `+o:`تسميع من سورة ${l} الآية ${u} حتى سورة ${o} الآية `+c}let it={arak:{Backquote:["`","~"],Minus:["[","{"],Equal:["]","}"],KeyQ:["ض",'"'],KeyW:["ع","غ"],KeyE:["ب","پ"],KeyR:["ح","َ"],KeyT:["س","ً"],KeyY:["خ","ٌ"],KeyU:["د","ُ"],KeyI:["أ","آ"],KeyO:["ك","گ"],KeyP:["ج","چ"],BracketLeft:["/","؟"],BracketRight:["=","+"],KeyA:["ه","؛"],KeyS:["ي","»"],KeyD:["م","«"],KeyF:["ن","ْ"],KeyG:["ف","ڤ"],KeyH:["ت","ث"],KeyJ:["ل","ّ"],KeyK:["ا","ء"],KeyL:["و","ؤ"],Semicolon:["ر",">"],Quote:["إ","<"],KeyZ:[".",":"],KeyX:["،","ـ"],KeyC:["ش","_"],KeyV:["ق","-"],KeyB:["ص","'"],KeyN:["ذ","ٍ"],KeyM:["ة","ِ"],Comma:["ى","ئ"],Period:["ز","ژ"],Slash:["ط","ظ"]},dv:{Backquote:["`","~"],Minus:["[","{"],Equal:["]","}"],KeyQ:["'",'"'],KeyW:["،","<"],KeyE:[".",">"],KeyR:["ط","ظ"],KeyT:["ى","آ"],KeyY:["ف","ڤ"],KeyU:["غ","ـ"],KeyI:["ص","ض"],KeyO:["ر","»"],KeyP:["ل","«"],BracketLeft:["/","؟"],BracketRight:["=","+"],KeyA:["ا","أ"],KeyS:["ع","إ"],KeyD:["ه","ة"],KeyF:["و","ؤ"],KeyG:["ي","ئ"],KeyH:["د","َ"],KeyJ:["ح","ً"],KeyK:["ت","ٌ"],KeyL:["ن","ُ"],Semicolon:["س","ش"],Quote:["-","_"],KeyZ:["؛",":"],KeyX:["ق","ء"],KeyC:["ج","چ"],KeyV:["ك","گ"],KeyB:["خ","ْ"],KeyN:["ب","پ"],KeyM:["م","ّ"],Comma:["ث","ٍ"],Period:["ذ","ِ"],Slash:["ز","ژ"]},ibm:{Backquote:["ذ","ّ"],Minus:["-","_"],Equal:["=","+"],KeyQ:["ض","َ"],KeyW:["ص","ً"],KeyE:["ث","ُ"],KeyR:["ق","ٌ"],KeyT:["ف","لإ"],KeyY:["غ","إ"],KeyU:["ع","`"],KeyI:["ه","÷"],KeyO:["خ","×"],KeyP:["ح","؛"],BracketLeft:["ج","<"],BracketRight:["د",">"],KeyA:["ش","ِ"],KeyS:["س","ٍ"],KeyD:["ي","]"],KeyF:["ب","["],KeyG:["ل","لأ"],KeyH:["ا","أ"],KeyJ:["ت","ـ"],KeyK:["ن","،"],KeyL:["م","/"],Semicolon:["ك",":"],Quote:["ط",'"'],KeyZ:["ئ","~"],KeyX:["ء","ْ"],KeyC:["ؤ","}"],KeyV:["ر","{"],KeyB:["لا","لآ"],KeyN:["ى","آ"],KeyM:["ة","'"],Comma:["و",","],Period:["ز","."],Slash:["ظ","؟"]},mac:{Backquote:["§","±"],Minus:["-","_"],Equal:["=","+"],KeyQ:["ض","َ"],KeyW:["ص","ً"],KeyE:["ث","ِ"],KeyR:["ق","ٍ"],KeyT:["ف","ُ"],KeyY:["غ","ٌ"],KeyU:["ع","ْ"],KeyI:["ه","ّ"],KeyO:["خ","]"],KeyP:["ح","["],BracketLeft:["ج","}"],BracketRight:["ة","{"],KeyA:["ش","»"],KeyS:["س","«"],KeyD:["ي","ى"],KeyF:["ب",""],KeyG:["ل",""],KeyH:["ا","آ"],KeyJ:["ت",""],KeyK:["ن",""],KeyL:["م",""],Semicolon:["ك",":"],Quote:["؛",'"'],KeyZ:["ظ",""],KeyX:["ط",""],KeyC:["ذ","ئ"],KeyV:["د","ء"],KeyB:["ز","أ"],KeyN:["ر","إ"],KeyM:["و","ؤ"],Comma:["،",">"],Period:[".","<"],Slash:["/","؟"]}},lt={l:"l",letter:"l",w:"w",word:"w",a:"a",aaya:"a"},ot={t:"taj",taj:"taj",tajweed:"taj",b:"bas",bas:"bas",basic:"bas",n:"no",no:"no",none:"no"},ut={i:"imla",imla:"imla",imlaai:"imla",u:"uthm",uthm:"uthm",uthmani:"uthm"};function ct(e){return ut[e.toLowerCase()]}function st(e,t,n,a){e.value=null!=t?t:r.getItem(n),e.value||(e.value=a),e.value!==a&&r.setItem(n,e.value),e.onchange()}function dt(e,t,n){e.checked=null!=t?!t:!r.getItem(n),i(n,!e.checked),e.onchange()}null==(e=(e=>{let r,i,l,o,u,c,s,d,h,p,f,m,v,y,g,b,w,k,K,x,T;return e.slice(1).split("&").map(e=>e.split("=")).forEach((t,e)=>{var n,a=(...e)=>e.includes(t[0]);a("dark","d")?r=!0:a("light","l")?r=!1:a("color","c")?i=(n=t[1],ot[n.toLowerCase()]||i):a("mvbtns","mv","m")?l=(""==(n=(n=t[1]).toLowerCase())||"b"==n?"b":"r"==n?"r":"l"==n?"l":void 0)||l:a("quizmode","qz","q")?o=ct(t[1])||o:a("txt")?o=ct("imlaai"):a("byaaya")?u="a":a("byword")?u="w":a("byletter")?u="l":a("by")?u=(n=t[1],lt[n.toLowerCase()]||u):a("linebreaks")?c=!1:a("nolinebreaks")?c=!0:a("t","teach","teacher")?h=!0:a("n","noteach","noteacher")?h=!1:a("dt","disableteacher")?p=!0:a("dq","disablequizmode")?f=!0:a("dp","disablepreview")?m=!0:a("dc","disablecheat")?v=!0:a("hc","highcontrast")?y=!0:a("lc","lowcontrast")?g=!0:a("emu","emulate","emulation")?w=t[1]:a("qari")?s=t[1]:a("qariurl")?d=t[1]:a("tafsir")?b=t[1]:a("fp","fullpage")?k=!0:a("noborder")?K=!0:a("cn")?x=!0:a("zz")&&(T=!0)}),{dark:r,color:i,mv:l,quizmode:o,fbrate:u,nolinebreaks:c,teacher:h,disableteacher:p,disablequizmode:f,disablepreview:m,disablecheat:v,highcontrast:y,lowcontrast:g,emulate:w,qari:s,qariurl:d,fullpage:k,noborder:K,cn:x,zz:T}})(R.search+R.hash.replace(/^#/,"&"))).quizmode?r.imla&&(o.value="imla",o.onchange()):(o.value=e.quizmode,o.onchange(),i("imla","imla"===e.quizmode)),e.highcontrast&&p.classList.add("highcontrast"),e.lowcontrast&&p.classList.add("lowcontrast"),null==e.dark&&null==r.getItem("dark")?e.dark=window.matchMedia("(prefers-color-scheme: dark)").matches:null!=e.dark&&r.setItem("dark",e.dark?"Y":"N"),W.checked=e.dark||"Y"===r.dark,W.onchange(),window.prefers_reduced_motion=window.matchMedia("(prefers-reduced-motion: reduce)").matches,null==e.teacher?P.checked=!!r.teacher:(P.checked=e.teacher,i("teacher",e.teacher)),st(d,e.tafsir,"tafsir","ar_muyassar"),st(O,e.qari,"qari",""),st(G,e.mv,"mvbtns","b"),st(re,e.fbrate,"fbrate","l"),e.qariurl&&(O.value="_"),V.value=e.qariurl||"",J.value=null!=e.color?e.color:r.notajweed?"no":"taj","taj"!==J.value&&r.setItem("notajweed","Y"),J.onchange(),dt(te,e.nolinebreaks,"nolinebreaks"),dt(ee,null,"noayatnumcolor"),dt(ne,null,"notajweedlegend"),Be=e=>e.style.display="none",e.disableteacher&&Be(F),e.disablequizmode&&(Be(X),D(".mode_options_title").forEach(Be)),e.disablepreview&&Be(se),window.allow_cheating=!e.disablecheat,e.emulate&&it[e.emulate]&&(window.emulate=e.emulate),e.fullpage&&p.classList.add("fullpage"),e.noborder&&v.classList.add("noborder"),e.cn&&(Y.value=e.cn?"1":""),e.zz&&(U.value=e.zz?"1":"");let T=[7,286,200,176,120,165,206,75,129,109,123,111,43,52,99,128,111,110,98,135,112,78,118,64,77,227,93,88,69,60,34,30,73,54,45,83,182,88,75,85,54,53,89,59,37,35,38,29,18,45,60,49,62,55,78,96,29,22,24,13,14,11,11,18,12,12,30,52,52,44,28,28,20,56,40,31,50,40,46,42,29,19,36,25,22,17,19,26,30,20,15,21,11,8,8,19,5,8,8,11,11,8,3,9,5,4,7,3,6,3,5,4,5,6],ht=["الفاتحة","البقرة","آل عمران","النساء","المائدة","الأنعام","الأعراف","الأنفال","التوبة","يونس","هود","يوسف","الرعد","إبراهيم","الحجر","النحل","الإسراء","الكهف","مريم","طه","الأنبياء","الحج","المؤمنون","النور","الفرقان","الشعراء","النمل","القصص","العنكبوت","الروم","لقمان","السجدة","الأحزاب","سبأ","فاطر","يس","الصافات","ص","الزمر","غافر","فصلت","الشورى","الزخرف","الدخان","الجاثية","الأحقاف","محمد","الفتح","الحجرات","ق","الذاريات","الطور","النجم","القمر","الرحمن","الواقعة","الحديد","المجادلة","الحشر","الممتحنة","الصف","الجمعة","المنافقون","التغابن","الطلاق","التحريم","الملك","القلم","الحاقة","المعارج","نوح","الجن","المزمل","المدثر","القيامة","الإنسان","المرسلات","النبأ","النازعات","عبس","التكوير","الانفطار","المطففين","الانشقاق","البروج","الطارق","الأعلى","الغاشية","الفجر","البلد","الشمس","الليل","الضحى","الشرح","التين","العلق","القدر","البينة","الزلزلة","العاديات","القارعة","التكاثر","العصر","الهمزة","الفيل","قريش","الماعون","الكوثر","الكافرون","النصر","المسد","الإخلاص","الفلق","الناس"],pt=[0,32,50,66,81,98,112,130,148,164,183,195,209,225,239,249,259,269,278,289,307,325,344,367,385,405,425,445,463,478,493,504,516,528,550,566,580,592,606,627,640,655,669,680,695,709,719,735,750,765,777,801,824,847,862,883,899,915,929,939,954,984,1e3,1018,1041,1070,1095,1109,1124,1142,1160,1181,1200,1220,1235,1253,1268,1280,1294,1309,1327,1345,1356,1374,1389,1416,1434,1453,1478,1496,1513,1533,1556,1580,1602,1625,1648,1672,1696,1711,1725,1741,1759,1777,1802,1851,1901,1930,1951,1975,1990,2011,2029,2051,2078,2098,2127,2156,2171,2190,2214,2238,2271,2308,2348,2402,2430,2458,2483,2511,2533,2565,2595,2613,2632,2654,2673,2708,2747,2791,2811,2825,2843,2855,2875,2907,2932,2983,3042,3112,3159,3185,3214,3240,3263,3280,3302,3327,3340,3365,3385,3409,3439,3462,3490,3513,3533,3550,3563,3583,3592,3615,3629,3651,3674,3700,3732,3764,3809,3870,3932,3990,4021,4065,4089,4110,4133,4153,4173,4198,4226,4242,4264,4284,4298,4322,4348,4381,4430,4484,4510,4530,4554,4577,4600,4612,4625,4656,4705,4758,4809,4854,4901,4979,5053,5090,5104,5117,5136,5156,5177,5191,5217,5229,5241,5271,5323,5393,5447,5494,5551,5609,5672,5758,5829,5884,5948,6023,6090,6154,6236],ft=[0,7,12,23,31,36,44,55,64,68,76,83,90,95,100,108,112,119,126,133,141,148,152,160,170,176,183,188,193,197,203,209,217,222,226,231,237,240,244,252,255,259,263,266,271,276,281,288,289,293,302,308,315,322,330,338,345,354,363,370,376,384,393,401,408,414,425,433,441,446,450,458,466,473,479,487,493,499,504,507,512,516,519,526,530,537,544,552,558,567,572,579,584,587,594,598,606,614,620,627,633,640,647,655,663,668,671,674,678,682,686,692,700,705,710,714,719,726,733,739,745,751,758,764,772,777,782,789,797,807,816,824,833,841,848,857,862,870,879,883,890,899,907,913,920,926,931,935,940,946,954,965,976,984,991,997,1005,1011,1021,1027,1035,1041,1049,1058,1074,1084,1091,1097,1103,1109,1113,1117,1124,1132,1141,1149,1160,1168,1176,1185,1193,1200,1205,1212,1221,1229,1235,1241,1248,1255,1261,1266,1271,1275,1282,1289,1296,1303,1307,1314,1321,1328,1334,1341,1346,1352,1357,1364,1370,1378,1384,1389,1397,1406,1417,1425,1434,1442,1452,1461,1470,1478,1485,1492,1501,1510,1518,1526,1535,1544,1554,1561,1570,1581,1590,1600,1610,1618,1626,1633,1639,1648,1659,1665,1674,1682,1691,1699,1707,1712,1720,1725,1735,1741,1749,1755,1760,1768,1774,1783,1792,1802,1817,1833,1853,1872,1892,1907,1915,1927,1935,1943,1955,1965,1973,1980,1988,1994,2003,2011,2019,2029,2036,2046,2056,2067,2078,2087,2095,2104,2115,2125,2133,2144,2155,2160,2167,2174,2185,2193,2201,2214,2223,2237,2250,2261,2275,2288,2301,2314,2326,2345,2360,2385,2399,2412,2424,2435,2446,2461,2473,2483,2493,2507,2518,2527,2540,2555,2564,2573,2584,2595,2600,2610,2618,2625,2633,2641,2650,2659,2667,2673,2690,2700,2715,2732,2747,2762,2777,2791,2801,2811,2818,2822,2827,2834,2844,2849,2852,2857,2866,2875,2887,2898,2910,2922,2932,2951,2971,2992,3015,3043,3068,3091,3115,3138,3159,3172,3181,3194,3203,3214,3222,3235,3247,3257,3265,3273,3280,3287,3295,3302,3311,3322,3329,3336,3346,3354,3363,3370,3378,3385,3392,3403,3414,3424,3433,3441,3450,3459,3469,3480,3488,3497,3503,3514,3523,3533,3539,3548,3555,3563,3568,3576,3583,3587,3595,3606,3613,3620,3628,3637,3645,3654,3663,3671,3678,3690,3698,3704,3717,3732,3745,3759,3775,3788,3812,3839,3864,3890,3914,3941,3970,3986,3996,4012,4031,4053,4063,4068,4079,4089,4098,4105,4114,4125,4132,4140,4149,4158,4166,4173,4182,4191,4199,4210,4218,4229,4238,4247,4256,4264,4272,4282,4287,4294,4303,4316,4323,4335,4347,4358,4372,4385,4398,4414,4432,4453,4473,4486,4495,4505,4515,4524,4530,4538,4545,4556,4564,4574,4583,4592,4598,4606,4611,4616,4623,4630,4645,4665,4681,4705,4726,4749,4766,4784,4810,4828,4852,4873,4895,4917,4941,4968,4995,5029,5055,5078,5086,5093,5099,5104,5110,5115,5125,5129,5135,5142,5150,5155,5161,5168,5177,5185,5192,5199,5208,5217,5222,5229,5236,5241,5253,5267,5286,5313,5331,5357,5385,5414,5429,5447,5460,5475,5494,5512,5542,5570,5596,5616,5641,5672,5702,5727,5758,5800,5829,5854,5882,5909,5931,5963,5993,6016,6043,6072,6098,6125,6137,6155,6176,6193,6207,6221,6236],mt=[[1],[1,8,21,30,40,47,60,62,72,83,87,97,104,113,122,130,142,148,153,164,168,177,183,189,197,211,217,222,229,232,236,243,249,254,258,261,267,274,282,284],[1,10,21,31,42,55,64,72,81,92,102,110,121,130,144,149,156,172,181,190],[1,11,15,23,26,34,43,51,60,71,77,88,92,97,101,105,113,116,127,135,142,153,163,172],[1,6,12,20,27,35,44,51,57,67,78,87,94,101,109,116],[1,11,21,31,42,51,56,61,71,83,91,95,101,111,122,130,141,145,151,155],[1,11,26,32,40,48,54,59,65,73,85,94,100,109,127,130,142,148,152,158,163,172,182,189],[1,11,20,29,38,45,49,59,65,70],[1,7,17,25,30,38,43,60,67,73,81,90,100,111,119,123],[1,11,21,31,41,54,61,71,83,93,104],[1,9,25,36,50,61,69,84,96,110],[1,7,21,30,36,43,50,58,69,80,94,105],[1,8,19,27,32,38],[1,7,13,22,28,35,42],[1,16,26,45,61,80],[1,10,22,26,35,41,51,61,66,71,77,84,90,101,111,120],[1,11,23,31,41,53,61,71,78,85,94,101],[1,13,18,23,32,45,50,54,60,71,83,102],[1,16,41,51,66,83],[1,25,55,77,90,105,116,129],[1,11,30,42,51,76,94],[1,11,23,26,34,39,49,58,65,73],[1,23,33,51,78,93],[1,11,21,27,35,41,51,58,62],[1,10,21,35,45,61],[1,10,34,53,70,105,123,141,160,176,192],[1,15,32,45,59,67,83],[1,14,22,29,43,51,61,76],[1,14,23,31,45,52,64],[1,11,20,28,41,54],[1,12,20],[1,12,23],[1,9,21,28,35,41,53,59,69],[1,10,22,31,37,46],[1,8,15,27,38],[1,13,33,51,68],[1,22,75,114,139],[1,15,27,41,65],[1,10,22,32,42,53,64,71],[1,10,21,28,38,51,61,69,79],[1,9,19,26,33,45],[1,10,20,30,44],[1,16,26,36,46,57,68],[1,30,43],[1,12,22,27],[1,11,21,27],[1,12,20,29],[1,11,18,27],[1,11],[1,16,30],[1,24,47],[1,29],[1,26,33],[1,23,41],[1,26,46],[1,39,75],[1,11,20,26],[1,7,14],[1,11,18],[1,7],[1,10],[1,9],[1,9],[1,11],[1,8],[1,8],[1,15],[1,34],[1,38],[1,36],[1,21],[1,20],[1,20],[1,32],[1,31],[1,23],[1,41],[1,31],[1,27],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1]];function L(e){return+T.slice(0,e).reduce((e,t)=>e+t,0)}let M=j(115).map(L);function vt(t){return j(115).find(e=>M[e]>=t)}let _=30,yt=60,gt=240,bt=6236,wt=114,kt=604,Kt=556;function xt(e){return null==e?e:!!e.match(/^[0-9]+$/)}function Tt(e,t){return 2===(e=e.split(t)).length&&e.every(xt)}function Lt(e){return""===e||xt(e)||Tt(e,"//")||Tt(e,"/")}function Mt(e){var t;return""===e?[null,null]:1===(t=e.split("-")).length&&t.every(Lt)?[e,e]:2===t.length&&t.every(Lt)?t:[null,null]}function _t(t){var e;return t<0||6236t>=L(e)&&twt))return t=T[n-1],t=Math.max(1,Math.min(t,a)),L(n-1)+t}}else if(!(+e>bt))return+e}function Et(e,t){return t>mt[e-1].length?null:[L(e-1)+mt[e-1][t-1],t===mt[e-1].length?-1+L(e)+mt[e][0]:-1+L(e-1)+mt[e-1][t]]}function qt(n){var e;if(n.includes("/"))return 2!==(e=n.split("/")).length||+e[0]>wt?null:Et(+e[0],+e[1]);if(!(+n>Kt))for(let t=0;tt||+n[1]<0||+n[1]>e))return(+n[0]-1)*e+ +n[1]+1}function $t(e){return e.includes("//")?St(gt/_,_,e.split("//")):e.includes("/")?St(gt/yt,yt,e.split("/")):+e>gt?void 0:+e}function zt(e){return e.includes("/")?St(yt/_,_,e.split("/")):+e>yt?void 0:+e}var Ht,It,Ct,A,jt,E,Bt,Dt,q={maxCount:150,speed:2,frameInterval:15,alpha:1,gradient:!1,start:null,stop:null,toggle:null,pause:null,resume:null,togglePause:null,remove:null,isPaused:null,isRunning:null};function Nt(e,t,n){return e.color=It[Math.random()*It.length|0]+(q.alpha+")"),e.color2=It[Math.random()*It.length|0]+(q.alpha+")"),e.x=Math.random()*t,e.y=Math.random()*n-n,e.diameter=10*Math.random()+5,e.tilt=10*Math.random()-10,e.tiltAngleIncrement=.07*Math.random()+.05,e.tiltAngle=Math.random()*Math.PI,e}function Rt(){A=!0}function Qt(){A=!1,Wt()}function Wt(){if(!A)if(0===E.length)Dt.clearRect(0,0,window.innerWidth,window.innerHeight);else{var e=Date.now(),t=e-jt;if(!Ht||t>q.frameInterval){Dt.clearRect(0,0,window.innerWidth,window.innerHeight);var n,a=window.innerWidth,r=window.innerHeight;Bt+=.01;for(var i=0;ia+20||n.x<-20||n.y>r)&&(Ct&&E.length<=q.maxCount?Nt(n,a,r):(E.splice(i,1),i--));for(var l,o,u,c=Dt,s=0;s{var e;d.value=Yt.value,"ar_muyassar"===(e=d.value)?r.removeItem("tafsir"):r.setItem("tafsir",e),x("tafsir",e),nn(Ot)},e=>new Set(e.split(" "))),Xt=[0,7,107,217,293,493,669,789,954,1160,1235,1364,1473,1596,1707,1750,1901,2029,2140,2250,2348,2483,2595,2673,2791,2855,2932,3159,3252,3340,3409,3533,3606,3705,3970,4058,4133,4272,4472,4583,4630,4901,5104,5163,5241,5447,5672,5993,6130,6236],Zt=[0,493,954,1473,2140,2932,3788,4735,6236],Gt=Ut("tanweer tabary qortoby waseet katheer baghawy sa3dy fa_khorramdel"),Jt=Ut("dv fa ku ps sd ug ur"),en={},tn;function tv(e){nn(e)}function nn(r){Ot=r;let e,i=d.value,t=(e=i.match(/^([a-z]+)_/))?e[1]:"ar",n="ar"===t?" ":Jt.has(t)?` lang="${t}" `:` lang="${t}" dir="ltr" `;var l,a=d.innerHTML.match('value="'+d.value+'"[^<>]*>([^<>]+)')[1],a=" "==n?a:`ترجمة ${a}`,o=(Me.style.display="block",je(Me),r+";"+i),o=(tn!==o&&Se(Me),tn=o,vt(r)-1),u=C.u[r-1].replace(/[#A-Z<>]+/g,"");_e.innerHTML="",_e.append(h("p",{innerHTML:`${a} للآية ${k(r-M[o])} من سورة `+ht[o]}),Vt,h("p",{className:"aya",innerText:u}),h("hr")),Ae.append(N),l=e=>{Ae.innerHTML="'+e+""};{var c=i,s=r;let t=Gt.has(c)?Xt:Zt,e=t.findIndex(e=>s<=e),n=e-1,a=()=>{return e=en[c][n][s-t[n]-1],l(""===e?"
(لا يوجد تفسير لهذه الآية؛ اختر تفسيرا آخر أو آية أخرى)
":e.replace(/اً/g,"ًا"));var e};null==en[c]&&(en[c]=[]),en[c][n]?a():Yn(`rt/${c}-${e}.lzma`,e=>{en[c][n]=e,a()})}}function an(){Ce(Ee),setTimeout(()=>{Ee.style.display="none"},1e3)}B("#tvc > .x").onclick=()=>{Ce(Me),setTimeout(()=>{Me.style.display="none"},1e3)},B("#sxc > .x").onclick=an;let rn="آأإئؤء]",ln="
أدخل جزءًا من آية للبحث عنها
",S={},on=p.classList.contains("fullpage");function un(){Ue(Re(),We(),Qe(),Fe())&&pn(M[Re()]+We(),M[Qe()]+Fe())}function cn(){fn(S.st,S.en)}function sn(e){var t=e.target.id;"Enter"!==e.key||"aaya_bgn"!==t&&"aaya_end"!==t&&"sura_bgn"!==t&&"sura_end"!==t||("sura_bgn"===t?u:"aaya_bgn"===t?c:"sura_end"===t?s:"aaya_end"===t?ce:1).focus()}function dn(){y.hidden&&(y.hidden=!1,q.start(1200,50,150),"none"===be.style.display?(gn(),setTimeout(()=>ce.focus(),500)):(g.hidden=!0,setTimeout(()=>be.focus(),500)),m.hidden?f.classList.add("done"):(kn(),Ie()))}function tab_toggled(e){e.checked&&setTimeout(ze,100)}function hn(e,t,n){B("title").innerHTML=n+" | رسيت",x("title",n),l.value=e[0]-1,c.value=t[0]-1,Oe(u,De(),e[1]),Oe(s,Ne(),t[1])}function pn(e,t){S.st=e||S.st,S.en=t||S.en,yn("preview");var e=_t(e-1),t=_t(t-1),n=(R.hash=e.join("/")+"-"+t.join("/")+"&p",rt(...e,...t).replace(/تسميع/g,"عرض"));hn(e,t,oe.innerHTML=n),Un("u",()=>{var e=S.st,t=S.en,n=!!Y.value;f.style.textAlign="",f.innerHTML="",f.classList.remove("done"),ge.style.marginTop="2em",at(),f.innerHTML=Xn(e,t,n).join("")})}function fn(e,t){S.st=e||S.st,S.en=t||S.en;var n=O.value,a=V.value,r=o.value,i=(P.checked,r.slice(0,1)),e=(yn(r),_t(e-1)),t=_t(t-1),l=(R.hash=e.join("/")+"-"+t.join("/"),rt(...e,...t));hn(e,t,oe.innerHTML=l),l=e,e=t,t=n,n=a,K.init(t,n),K.fill(Vn(l[0]-1,l[1],e[0]-1,e[1])),U.value&&parent.zz_show(),g.Qall("button").forEach(e=>e.disabled=!0),f.style.textAlign="center",f.append(N),Un(i,"imla"===r?mn:vn)}function mn(){var e=S.st,t=S.en;function i(){if(y.hidden){a&&(v.value=v.value.replace(/ \u06dd/g," ۝").replace(/[^ \xA0\nء-غف-\u0652٠-٩\u06DD]+/g,"").replace(/ +(\n)/g,"$1").replace(/(\A|\n| )[ \n]+/g,"$1"),a=!1);var e=v.value.slice(-2);if(" "!==e&&"\n"!==e||(v.value="")," "!==e&&"\n "!==e&&"\n\n"!==e||(v.value=v.value.slice(0,-1))," \n"===e&&(v.value=v.value.slice(0,-2)+"\n"),et(l,v.value)){if(m.classList="",!r)return;("\n"===(e=v.value.slice(-1))||"a"!==re.value&&" "===e)&&u(e),"\n"===e&&K.play(v.value.split("\n").length-2+(n?1:0)),v.value===l&&(v.value=v.value.slice(0,-1),dn(),He(),v.disabled=!0,m.classList="done",me.focus())}else e=v.value.slice(-1),"a"!==re.value&&(" "===e&&et(l,v.value.slice(0,-1)+"\n")||"\n"===e&&et(l,v.value.slice(0,-1)+" "))?m.classList="spacewrong":m.classList="wrong";v.selectionStart===v.value.length&&requestAnimationFrame(Ie)}}let n=P.checked,l=(v.focus(),C.i.slice(e-1,t).map(e=>e.startsWith("#")?e.replace("#","بِسْمِ اللَّهِ الرَّحْمَنِ الرَّحِيمِ\n"):e).join("\n")+"\n"),a=!1,r=v.selectionStart===v.value.length,o=(e,t)=>{let n=0,a=e.replace(new RegExp("[^"+t+"]+","g"),"").length;for(let e=0;e{var t,e=o(v.value,e);v.selectionStart===v.value.length?v.value=l.slice(0,e):(t=Xe(v.value.slice(0,v.selectionStart)),t=o(t,t.slice(-1)),v.value=l.slice(0,e),v.selectionStart=v.selectionEnd=t+1)},c=0,s=0;v.onkeydown=e=>{var t,n,a=!e.altKey&&!e.ctrlKey;if(a&&"!"===e.key&&window.allow_cheating){e.preventDefault();var r=(new Date).getTime();if(r-s<250)return;if(s=r,10===(c+=1)&&(c=0,et(l,v.value,Ze))){for(u(Xe(v.value).slice(-1));v.value=l.slice(0,v.value.length+1),""===Xe(v.value.slice(-1)););return i(),void Ie()}}else c=0,s=0;a&&1===e.key.length&&(e.preventDefault(),(r=window.emulate&&it[window.emulate]&&it[window.emulate][e.code]?it[window.emulate][e.code][+e.shiftKey]:e.key).match(/^[ \nء-غف-\u0652]$|^ل[اأإآ]$/))&&(a=v,(e=r)&&(r=a.selectionStart,n=a.selectionEnd,t=a.value.substring(0,r),n=a.value.substring(n,a.value.length),a.value=t+e+n,a.selectionStart=a.selectionEnd=r+e.length),i())},v.oninput=i,v.onpaste=e=>{a=!0},document.onkeyup=null,document.ondblclick=null,n&&K.play(0)}function vn(){function e(a){if(0!==l.length){let e="a"===a?e=>"a"!==e:"j"===a?e=>"a"!==e&&"j"!==e:e=>!1,t,n="";do{var r=l.shift()}while(n+=r,t=Ye(r.slice(-2)),e(t));"a"===t&&(K.next(),K.play()),f.innerHTML+=n,0===l.length&&dn(),He()}}function t(e){let t=f.innerHTML;if(0!==t.length&&y.hidden){for(var n="a"===e?e=>"a"!==e:"j"===e?e=>"a"!==e&&"j"!==e:e=>!1;0e.disabled=!1),f.style.textAlign="",f.innerHTML="",f.classList.remove("done"),f.focus(),K.set_index(i?0:-1),ge.style.marginTop="2em",at(),Xn(n,a,r)),o=()=>e(""),u=()=>e("a"),c=()=>e("j"),s=()=>t(""),d=()=>t("a"),h=()=>t("j");document.onkeyup=function(e){var t=e.target.nodeName,n=e.key,e=e.shiftKey||e.ctrlKey||e.altKey,a="Backspace"===n||"ArrowRight"===n;"INPUT"!==t&&"SELECT"!==t&&"BUTTON"!==t&&(" "===n||"Enter"===n||"ArrowLeft"===n?(e?u:o)():a?(e?d:s)():"0"!==n&&"["!==n||e?"1"!==n&&"]"!==n||e||h():c())},document.ondblclick=e=>{e.target!==f&&e.target!==p||o()},Le.onclick=u,Te.onclick=c,xe.onclick=o,Ke.onclick=s,ke.onclick=h,we.onclick=d,i&&K.play(0)}document.body.addEventListener("click",e=>{"BUTTON"===e.target.tagName&&("new"===e.target.id?ce.focus():e.target.blur())}),n.onclick=e=>{"true"===n.getAttribute("aria-expanded")?(n.setAttribute("aria-expanded",!1),n.Qall("circle").forEach(e=>e.setAttribute("cx",875==e.getAttribute("cx")?125:45)),n.Qall("text").forEach(e=>Ce(e)),Ce(n.Q("line")),n.Q("rect").setAttribute("width",155),setTimeout(()=>n.setAttribute("viewBox","0 0 155 400"),500)):(n.setAttribute("viewBox","0 0 925 400"),n.setAttribute("aria-expanded",!0),n.Qall("circle").forEach(e=>e.setAttribute("cx",e.getAttribute("cx")<50?400:875)),n.Qall("text").forEach(e=>je(e)),je(n.Q("line")),n.Q("rect").setAttribute("width",925))},document.addEventListener("keyup",e=>{"Escape"===e.key&&(K.play(),!m.hidden)&&y.hidden&&v.focus()}),ce.onclick=function(){Ue(Re(),We(),Qe(),Fe())&&fn(M[Re()]+We(),M[Qe()]+Fe())},se.onclick=un,pe.onclick=un,fe.onmouseup=cn,fe.onclick=cn;let yn=function(e){ue.hidden=!0,de.hidden=!1,y.hidden=!0,oe.style.display="inline-block",be.style.display=U.value?"block":"none",ve.style.display=U.value?"":"none",me.style.display=U.value?"none":"";var t=document.documentElement;"preview"===e?(fe.innerHTML="ابدأ\nالاختبار",fe.title="ابدأ في تسميع الآيات.",pe.style.display="none",he.classList.remove("b3"),f.hidden=!1,f.innerHTML="",g.hidden=!0,m.hidden=!0,ye.style.color="",t.style.setProperty("--sticky","sticky")):(fe.innerText="إعادة",fe.title="اضغط لإعادة هذا الاختبار من البداية.","none"!==se.style.display?(pe.style.display="",he.classList.add("b3")):pe.style.display="none","imla"===e?(m.style.height=on?"100vh":"95vh",v.value="",v.disabled=!1,m.classList="",m.hidden=!1,f.hidden=!0,g.hidden=!0,ye.style.color="transparent",t.style.setProperty("--sticky",""),v.focus()):(f.hidden=!1,f.innerHTML="",g.hidden=!1,m.hidden=!0,ye.style.color="",t.style.setProperty("--sticky","sticky"))),nt(),He()},gn=function(){ue.hidden=!1,de.hidden=!0,g.hidden=!0,oe.style.display="none",n.style.display="none",nt()},bn=function(){f.hidden=!0,document.onkeyup=null,document.ondblclick=null,ge.style.marginTop="4em",m.hidden=!0,y.hidden=!0};function wn(){R.hash="",gn(),bn()}function kn(){var e=getComputedStyle,t=(a=parseFloat)(e(ue).height)+a(e(ue.Q("hr")).marginBottom),t=isNaN(t)?a(e(de).height):t,n=a((e=e(y)).height)+a(e.marginTop)+a(e.marginBottom),a=a(e.marginTop),e=(e=visualViewport)?e.height:document.body.clientHeight;m.style.height=e-t-n-.1*a+"px"}me.onmouseup=wn,me.onclick=wn,be.onclick=()=>{bn(),parent.zz_done()},ve.onclick=()=>{bn(),parent.zz_ignore()},onload=function(){{var e=ht.map((e,t)=>``).join("");l.innerHTML=c.innerHTML=e,qe.innerHTML=''+e,u.innerHTML=s.innerHTML=Pe(T[0]),s.value=T[0],u.value=1,l.value=c.value=0,l.oninput=u.oninput=c.oninput=s.oninput=Ve,l.onblur=u.onblur=c.onblur=s.onblur=Ve,l.onkeyup=u.onkeyup=c.onkeyup=s.onkeyup=sn;let a="",r=0;u.onkeydown=s.onkeydown=e=>{var t,n;e.key.match(/[0-9]/)&&(t=(new Date).getTime(),r=(t-r<500?a+=e.key:a=e.key,t),n=+e.target.lastChild.value,1<=a&&a<=n?e.target.value=a:1<=e.key&&e.key<=n&&(e.target.value=a=e.key,r=t))},D(".search").forEach(e=>e.onclick=({target:n})=>{{var c=(n=(n="SPAN"===n.tagName?n.parentElement:n).previousElementSibling).previousElementSibling.previousElementSibling,s=n;b.value="",w.innerHTML=ln,Ee.style.display="block",je(Ee),b.focus();let i=!1,e=()=>{i=!1;let e=qe.value,n=""===e?0:M[e],a=""===e?6236:n+T[e],r=b.value.replace(/[هتة]\b/g,"T").replace(/ا/g,"A").replace(/ى/g,"Y").replace(/ي/g,"I").replace(/و/g,"W").replace(/[آأإ]/g,"a").replace(/ئ/g,"i").replace(/ؤ/g,"w").replace(/ء/g,"x").replace(/T/g,"[هتة]").replace(/A/g,"[اىأإآ]").replace(/Y/g,"[ايىئأإ]").replace(/I/g,"[يىئ]").replace(/W/g,"[وؤ]").replace(/a/g,"[ا"+rn).replace(/i/g,"[يى"+rn).replace(/w/g,"[و"+rn).replace(/x/g,"["+rn),o=C.p.map((e,t)=>n<=t&&t-1!==e);if(50يطابق بحثك "+k(o.length)+" من الآيات، وهو أكثر من ٥٠؛ حاول التحديد أكثر";else if(0===o.length)w.innerHTML="
تعذر إيجاد العبارة التي أدخلتها
";else{w.innerHTML=`
يوجد ${k(o.length)} من الآيات
`;let t=j(o.length).map(e=>h("div",{className:"ac"}));t.forEach((e,t)=>{let n=o[t],a=vt(n+1)-1,r=n-M[a]+1,i=k(r),l=ht[a];e.onclick=()=>{c.value=a,Ve({target:c}),s.value=r,Ve({target:s}),an()},e.append(h("span",{className:"s_a",innerHTML:`سورة ${l} آية ${i}:`}),h("span",{className:"aya",innerHTML:"يحمّل"}))}),w.append(...t,N),Un("u",()=>{for(let e=0;e]+/g,"");w.removeChild(N)})}},l;function d(){clearTimeout(l),l=null,i||w.insertBefore(N,w.firstChild),i=!0,l=setTimeout(t,1e3)}let t=()=>(C.p?e:d)(),o=e=>e.replace(/\s+/g," ").replace(/\u06A9/g,"ك").replace(/\u06CC/g,"ي").replace(/[\u06BE\u06C1]/g,"ه").replace(/[^ء-غف-ي ]/g,""),u="";b.oninput=e=>{var t=b.selectionStart,n=b.value.length,a=b.value[t-1],r=b.value[t],t=(b.value=o(b.value),b.selectionStart=b.selectionEnd=t-(n-b.value.length)+(" "===a&&" "===r?1:0)," "===b.value?"":b.value);u===t?u=t:""===(u=t)?(clearTimeout(l),l=null,i=!1,w.innerHTML=ln):d()},qe.oninput=()=>{var e=o(b.value);""!==e&&" "!==e&&(clearTimeout(l),l=null,t())},C.p||Un("i",()=>{C.p=C.i.map(e=>e.replace(/[^ ء-ي\n]/g,"").replace(/^|$/g," "))})}})}D("input, select").forEach(e=>e.onchange&&e.onchange()),e=a("xyz"),t=B("body").innerHTML.match(/github[.]com\/([a-z0-9]+)\//)[1],e.innerHTML=t+String.fromCharCode(64)+"pro"+(""+!0)[0]+"moc.liamno".split("").reverse().join(""),e.href=e.innerHTML.slice(16,20)+"to"+String.fromCharCode(64^"xyz".charCodeAt(2))+e.innerHTML;var[t,e,n]=(e=>{let a,r,i=0,l=0,o;return e.slice(1).split("&").map(e=>e.split("=")).forEach((t,e)=>{var n=(...e)=>e.includes(t[0]);n("p","preview")?o=!0:n("a")?i=isNaN(+t[1])?i:+t[1]:n("b")?l=isNaN(+t[1])?l:+t[1]:n("p")?[a,r]=((e,t)=>{if(null!=e&&(e=+e||1,t=+t||kt,!(e>kt||t>kt)))return[ft[+e-1]+1,ft[+t]]})(...Mt(t[1]))||[a,r]:n("s")?[a,r]=((e,t)=>{if(""===t&&(t="114"),xt(e=""===e?"1":e)&&xt(t)&&(e=+e||1,t=+t||wt,!(e<1||t<1||e>wt||t>wt)))return[L(e-1)+1,L(t-1)+T[t-1]]})(...Mt(t[1]))||[a,r]:n("r")?[a,r]=((e,t)=>{if(null!=e&&(e=$t(e),t=$t(t),null!=e)&&null!=t)return[pt[(e||1)-1]+1,pt[t||240]]})(...Mt(t[1]))||[a,r]:n("h")?[a,r]=((e,t)=>{if(null!=e){var n,e=zt(e),t=zt(t);if(null!=e&&null!=t)return n=gt/yt,[pt[((e||1)-1)*n]+1,pt[(t||60)*n]]}})(...Mt(t[1]))||[a,r]:n("j")?[a,r]=((e,t)=>{var n;if(null!=e&&(e=+e||1,t=+t||_,!(e>_||t>_)))return n=gt/_,[pt[((e||1)-1)*n]+1,pt[(t||_)*n]]})(...Mt(t[1]))||[a,r]:n("k")?[a,r]=((e,t)=>{if(null!=e&&(e=qt(e),t=qt(t),null!=e)&&null!=t)return[e[0],t[1]]})(...Mt(t[1]))||[a,r]:[a,r]=((e,t)=>{if(e&&(e=At(e),t=At(t),null!=e)&&null!=t)return[+e||1,+t||bt]})(...Mt(t[0]))||[a,r]}),null==a||null==r?[null,null]:(a-=l,r+=i,a<=0&&(a=1),6236{t.addEventListener("toggle",e=>{t.open&&(window.prefers_reduced_motion?t.scrollIntoView({block:"nearest",inline:"nearest"}):t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}))})})},v.onfocus=()=>v.scrollIntoView(window.scroll_behavior),window.visualViewport&&window.visualViewport.addEventListener("resize",e=>{m.hidden||(y.hidden?(m.style.height=on?e.target.height+"px":Math.trunc(.95*e.target.height)+"px",v.scrollIntoView()):kn())}),Kn="function"==typeof setImmediate?setImmediate:setTimeout,xn=[4294967295,-($=4294967296)],Tn=[0,0],Ln=[1,0],"undefined"==typeof onmessage||"undefined"!=typeof window&&void 0!==window.document||(onmessage=function(e){e&&e.W&&2==e.W.action&&Mn.decompress(e.W.W,e.W.cbn)});var Kn,$,xn,Tn,Ln,Mn={decompress:function(e,r,i){var l,n,o,u,c={},t=void 0===r&&void 0===i;if("function"!=typeof r&&(n=r,r=i=0),i=i||function(e){return void 0!==n?void postMessage({action:3,cbn:n,result:o?e:-1}):void 0},r=r||function(e,t){return void 0!==n?postMessage({action:2,cbn:n,result:e,error:t}):void 0},t){for(c.d=Hn({},e);Bn(c.d.Q););return Pn(zn(c.d.S))}try{c.d=Hn({},e),u=On(c.d.N),o=-1=e.O?-1:255&e.ab[e.cb++]}function zn(e){var t=e.ab;return t.length=e.O,t}function Hn(e,t){e.S=((i={}).ab=z(32),i.O=0,i);for(var n,a,r,i=e,l=((r={}).ab=t,r.cb=0,r.O=t.length,r),t=e.S,o="",u=[],c=0;c<5;++c){if(-1==(n=$n(l)))throw Error("truncated input");u[c]=n<<24>>24}if(!((e,t)=>{var n,a,u,c,r;if(!(t.length<5)){for(u=(r=255&t[0])%9,c=(r=~~(r/9))%5,r=~~(r/5),a=n=0;a<4;++a)n+=(255&t[1+a])<<8*a;return!(99999999{var n,a,r;if(!(8{e.b={},e.a={},e.q=z(192),e.E=z(12),e.s=z(12),e.u=z(12),e.r=z(12),e.n=z(192),e.j=z(4),e.J=z(114),e.t=Wn({},4),e.C=Rn({}),e.o=Rn({}),e.k={};for(var t=0;t<4;++t)e.j[t]=Wn({},6);return e})({}),u))throw Error("corrupted input");for(c=0;c<64;c+=8){if(-1==(n=$n(l)))throw Error("truncated input");o=(n=1==(n=n.toString(16)).length?"0"+n:n)+""+o}return/^0+$|^f+$/i.test(o)?i.N=xn:(a=parseInt(o,16),i.N=4294967295{e.b.w=0,e.b.D=0,I(e.q),I(e.n),I(e.E),I(e.s),I(e.u),I(e.r),I(e.J);for(var t=e.k,n=1<{var r,t,n=Sn(e.d)&e.P;if(H(e.a,e.q,(e.f<<4)+n)){if(H(e.a,e.E,e.f))t=0,H(e.a,e.s,e.f)?(H(e.a,e.u,e.f)?(H(e.a,e.r,e.f)?(o=e._,e._=e.R):o=e.R,e.R=e.T):o=e.T,e.T=e.l,e.l=o):H(e.a,e.n,(e.f<<4)+n)||(e.f=e.f<7?9:11,t=1),t||(t=Nn(e.o,e.a,n)+2,e.f=e.f<7?8:11);else if(e._=e.R,e.R=e.T,e.T=e.l,t=2+Nn(e.C,e.a,n),e.f=e.f<7?7:10,4<=(n=Fn(e.j[o=t,(o-=2)<4?o:3],e.a))){if(e.l=(2|1&n)<<(r=(n>>1)-1),n<14)e.l+=((e,t,n,a)=>{for(var r,i=1,l=0,o=0;o{for(var t,n=0,a=r-4;0!=a;--a)e.i>>>=1,e.p-=e.i&(t=e.p-e.i>>>31)-1,n=n<<1|1-t,-16777216&e.i||(e.p=e.p<<8|$n(e.K),e.i<<=8);return n})(e.a)<<4,e.l+=((e,t)=>{for(var n,a=1,r=0,i=0;e.A>i;++i)a=(a<<1)+(n=H(t,e.B,a)),r|=n<=e.m)return-1;var a=e.b,i=t,l=a.D-e.l-1;for(l<0&&(l+=a.c);0!=i;--i)l>=a.c&&(l=0),a.x[a.D++]=a.x[l++],a.c<=a.D&&In(a);e.d=_n(e.d,qn(t)),e.I=Cn(e.b,0)}else{o=e.k,n=Sn(e.d),t=o.F[((n&o.Y)<>>8-o.g)],e.I=e.f<7?((e,t)=>{for(var n=1;(n=n<<1|H(t,e.v,n))<256;);return n<<24>>24})(t,e.a):((e,t,n)=>{var a,r,i=1;do{if(r=n>>7&1,n<<=1,i=i<<1|(a=H(t,e.v,(1+r<<8)+i)),r!=a){for(;i<256;)i=i<<1|H(t,e.v,i);break}}while(i<256);return i<<24>>24})(t,e.a,Cn(e.b,e.l));var n=e.b,o=e.I;n.x[n.D++]=o,n.c<=n.D&&In(n),e.f=(t=e.f)<4?0:t<10?t-3:t-6,e.d=_n(e.d,Ln)}return 0})(t.h);if(-1==n)throw Error("corrupted input");return t.$=xn,t.Z=t.h.d,(n||0<=An(t.h.U,Tn)&&0<=An(t.h.d,t.h.U))&&(In(t.h.b),jn(t.h.b),t.h.a.K=null,t.X=0),e.X}function Dn(e,t){for(;t>e.e;++e.e)e.G[e.e]=Wn({},3),e.H[e.e]=Wn({},3)}function Nn(e,t,n){return H(t,e.M,0)?8+(H(t,e.M,1)?8+Fn(e.L,t):Fn(e.H[n],t)):Fn(e.G[n],t)}function Rn(e){return e.M=z(2),e.G=z(16),e.H=z(16),e.L=Wn({},8),e.e=0,e}function Qn(e){I(e.M);for(var t=0;e.e>t;++t)I(e.G[t].B),I(e.H[t].B);I(e.L.B)}function Wn(e,t){return e.A=t,e.B=z(1<>>11)*a;return(-2147483648^e.p)<(-2147483648^r)?(e.i=r,t[n]=a+(2048-a>>>5)<<16>>16,-16777216&e.i||(e.p=e.p<<8|$n(e.K),e.i<<=8),0):(e.i-=r,e.p-=r,t[n]=a-(a>>>5)<<16>>16,-16777216&e.i||(e.p=e.p<<8|$n(e.K),e.i<<=8),1)}function I(e){for(var t=e.length-1;0<=t;--t)e[t]=1024}function Pn(e){for(var t,n,a,r=0,i=0,l=e.length,o=[],u=[];rj(115).slice(+e+1,+a+2).map(t=>j(+T[t-1]+1).slice(t===+e+1?+n:1,t===+a+1?+r+1:300).map(e=>t.toString().padStart(3,"0")+e.toString().padStart(3,"0"))).reduce((e,t)=>(!t[0].match(/001$/)||t[0].match(/^001/)||t[0].match(/^009/)||t.unshift("001001"),e.push(...t),e),[]);var C={};function Yn(e,t){fetch(e).then(e=>e.ok?e.arrayBuffer():null).then(e=>{t(LZMA.decompress(new Uint8Array(e)).split("\n").slice(0,-1))})}function Un(t,n){C[t]?n():Yn(`res/${t}.lzma`,e=>{C[t]=e,n()})}function Xn(a,r,i){var e=M[vt(r)];i&&re.replace(/A/,t+a+"A")).reduce((e,t,n)=>(t.startsWith("#")&&(e.push(l+"
"),t=t.replace("#","")),i&&n===r-a&&(t=t.replace(/([\u06DC\u06D6\u06D7\u06D8\u06DA\u06DB]) .*/,"$1")),e.push(t),e),[]).map(e=>(e.replace(/([A-Z])<([^>]+)>/g,'$2').replace(/ /g,"\t")+"\n").replace(/_/g," ").replace(/([0-9]+)((e.push(...t.split("",-1)),e),[])}window.goatcounter={path:location.href.replace(/[?#].*/,""),allow_frame:!0},document.body.append(h("script",{Dataset:{goatcounter:"https://recite.goatcounter.com/count"},async:!0,src:"//gc.zgo.at/count.js"})) \ No newline at end of file diff --git a/index.html b/index.html index d55d74f..9431866 100644 --- a/index.html +++ b/index.html @@ -2,4 +2,4 @@ الاختبار
💡 اضغط على علامة الآية ۝ لإظهار تفسيرها
\ No newline at end of file +الاختبار
💡 اضغط على علامة الآية ۝ لإظهار تفسيرها
\ No newline at end of file diff --git a/javascript.js b/javascript.js index 8bbb8e1..3f93322 100644 --- a/javascript.js +++ b/javascript.js @@ -161,7 +161,7 @@ function recite (st, en) { const stpair = idx2aya(st-1) const enpair = idx2aya(en-1) - L.hash = stpair.join('/') + '-' + enpair.join('/') + '&q=' + qz + L.hash = stpair.join('/') + '-' + enpair.join('/') const title = make_title(...stpair, ...enpair) el_title.innerHTML = title