PageSourceSearch

https://mybank.pl/kursy-walut/waluta/profile.min.js?v=20260925-single-feed

js mybank.pl collected 2026-10-02 12:16:02 UTC 22,238 bytes, 1 lines download raw bytes

1(()=>{"use strict";const e=document.getElementById("currencyProfile"),t=document.getElementById("currencyProfileConfig");if(!e||!t)return;let n;try{n=JSON.parse(t.textContent)}catch(e){return}"tuples-v1"===n.seriesEncoding&&Array.isArray(n.series)&&(n.series=n.series.map(e=>Array.isArray(e)?{date:e[0],rate:e[1]}:null));const o=e=>document.getElementById(e),a=(e,t)=>{const n=o(e);n&&(n.textContent=t)},r=(e,t=n.precision)=>new Intl.NumberFormat("pl-PL",{minimumFractionDigits:t,maximumFractionDigits:t}).format(e),i=e=>e.slice(0,10).split("-").reverse().join("."),s=e=>new Intl.DateTimeFormat("pl-PL",{timeZone:"Europe/Warsaw",day:"numeric",month:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date(e)),l=e=>{if(null===e||!Number.isFinite(e))return"—";const t=Math.abs(e)<.005?"flat":e>0?"up":"down",n=r(Math.abs(e),2)+"%";return'<span class="mbw-change mbw-change--'+t+'" role="img" aria-label="'+(("flat"===t?"Bez zmian po zaokrągleniu: ":"up"===t?"Wzrost o ":"Spadek o ")+n)+'">'+("flat"===t?"":'<svg class="mbw-icon mbw-icon-trend" viewBox="0 0 24 24" width="20" height="20" aria-hidden="true" focusable="false"><path d="M12 3 4 11h5v10h6V11h5L12 3Z" fill="currentColor"/></svg>')+"<span>"+n+"</span></span>"},c=e=>Math.abs(e)<.005?"":e>0?"mbw-up":e<0?"mbw-down":"",d=e=>"number"==typeof e&&Number.isFinite(e)&&e>0;let u,m=n.initialQuote&&d(n.initialQuote.price)&&d(n.initialQuote.time)&&n.initialQuote.time<=Date.now()+6e4?n.initialQuote:null,p=!1,h=null,y=null,f=()=>{};const b=e=>{a("profileToast",e),clearTimeout(u),u=setTimeout(()=>a("profileToast",""),4500)},w=new URLSearchParams(location.search),v=new Intl.DateTimeFormat("en-GB",{timeZone:"Europe/Warsaw",year:"numeric",month:"2-digit",day:"2-digit",weekday:"short",hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:"h23"}),g=e=>Object.fromEntries(v.formatToParts(new Date(e)).filter(e=>"literal"!==e.type).map(e=>[e.type,e.value]));function k(e=Date.now()){const t=g(e),n=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"].indexOf(t.weekday)+1,o=Number(t.hour);if(!(5===n&&o>=23||6===n||7===n&&o<23))return{closed:!1,opensAt:null};const a=Date.UTC(Number(t.year),Number(t.month)-1,Number(t.day)+7-n,23);let r=a;for(let e=0;e<3;e++){const e=g(r);r+=a-Date.UTC(Number(e.year),Number(e.month)-1,Number(e.day),Number(e.hour),Number(e.minute),Number(e.second))}return{closed:!0,opensAt:r}}const z=(e,t)=>{const n=o(e);n&&n.textContent!==t&&(n.textContent=t)};function C(e=!1){!function(){if(!m)return;const e=g(m.time),t=g(Date.now()),n=["year","month","day"].every(n=>e[n]===t[n]);z("liveTime",(n?"":e.day+"."+e.month+"."+e.year+", ")+e.hour+":"+e.minute+":"+e.second),o("liveTime").title=s(m.time)+" (Warszawa)"+(m.via?" · kurs wyliczony przez USD · czas starszego notowania":"");const a=new Date(m.time).toISOString();o("liveTime").dateTime!==a&&(o("liveTime").dateTime=a)}();const t=k(),n=o("liveStatus"),a=o("forexWeekendInfo"),r=o("forexCountdown");if(n.classList.toggle("is-weekend",t.closed),a.hidden=!t.closed,r.hidden=!t.closed,t.closed){n.hidden=!1,z("liveStatusMessage",m?"Przerwa weekendowa. Pokazujemy ostatni dostępny kurs Forex.":"Przerwa weekendowa w notowaniach Forex.");const e=new Date(t.opensAt);z("forexReopenTime",new Intl.DateTimeFormat("pl-PL",{timeZone:"Europe/Warsaw",weekday:"long",day:"2-digit",month:"2-digit",hour:"2-digit",minute:"2-digit"}).format(e)+" (Warszawa)"),o("forexReopenTime").dateTime=e.toISOString();const a=Math.max(0,Math.ceil((t.opensAt-Date.now())/1e3)),i=Math.floor(a/86400),s=Math.floor(a%86400/3600),l=Math.floor(a%3600/60);return[["forexDays",i],["forexHours",s],["forexMinutes",l],["forexSeconds",a%60]].forEach(([e,t])=>z(e,String(t).padStart(2,"0"))),void r.setAttribute("aria-label","Do planowego wznowienia: "+i+" dni, "+s+" godz., "+l+" min, "+a%60+" sek.")}const i=m&&Date.now()-m.time>12e4;n.hidden=!!m&&!i&&!e,z("liveStatusMessage",m?(e?"Nie udało się odświeżyć kursu Forex.":"Czekamy na nowy kurs Forex.")+" Ostatnie notowanie: "+s(m.time)+" (Warszawa).":e?"Nie udało się pobrać kursu Forex. Spróbujemy ponownie.":"Pobieranie notowania Forex…")}const S=e.querySelector(".mbw-news");if(S){const e=()=>
1{S.style.setProperty("--news-sticky-top",Math.min(24,innerHeight-S.offsetHeight-24)+"px"),S.classList.add("is-sticky-ready")};e(),window.addEventListener("resize",e,{passive:!0}),window.ResizeObserver&&new ResizeObserver(e).observe(S)}const L=o("recentRatesMore"),E=o("toggleRecentRates");if(L&&E){const e=E.textContent;L.hidden=!0,E.hidden=!1,E.addEventListener("click",()=>{L.hidden=!L.hidden,E.setAttribute("aria-expanded",String(!L.hidden)),E.textContent=L.hidden?e:"Pokaż 5 publikacji"})}let D=["live","nbp"].includes(w.get("mode"));const A=()=>{try{const e=JSON.parse(localStorage.getItem("mybank.currencyWatchlist")||"[]");return Array.isArray(e)?[...new Set(e.filter(e=>"string"==typeof e&&/^[A-Z]{3}$/.test(e)&&n.catalog&&Object.prototype.hasOwnProperty.call(n.catalog,e)))].slice(0,60):[]}catch(e){return[]}};function N(e,t){const o=n.catalog&&n.catalog[t];if(e.replaceChildren(),e.className="currency-icon",o&&o.flag&&/^[a-z]{2}$/.test(o.flag)){const t=document.createElement("img");t.src="/kursy-walut/kalkulator/flags/"+o.flag+".svg",t.alt="",t.width=30,t.height=30,e.append(t)}else e.textContent=t}let P=null;if(window.MyBankCurrencyPicker&&n.catalog){const t=Object.fromEntries(Object.entries(n.catalog).map(([e,t])=>[e,[t.name,t.retired?"historical":"XDR"===t.code?"nbp":"fiat"]]));if(P=window.MyBankCurrencyPicker.enhance({root:e,ids:["profileCurrency"],currencies:t,paintIcon:N,getContext:()=>"Wybór waluty otworzy jej profil."}),P){e.querySelector(".mbw-currency-visual").hidden=!1;const t=o("profileCurrency").form;t.querySelector("label").hidden=!0,t.querySelector('button[type="submit"]').hidden=!0,t.classList.add("is-enhanced"),t.addEventListener("submit",e=>{"true"===t.dataset.previewOnly&&(e.preventDefault(),o("profileCurrency").value=n.code,P.sync("profileCurrency"),b("Lokalny podgląd obejmuje euro. Przechodzenie do innych walut działa w drafcie PHP."))}),o("profileCurrency").addEventListener("change",()=>{o("profileCurrency").value!==n.code&&t.requestSubmit()})}}function j(){const e=A(),t=o("savedCurrencyList");if(t.replaceChildren(),a("savedCount",String(e.length)),o("profileSaved").hidden=!e.length,!e.length){const e=document.createElement("p");return e.textContent="Lista jest pusta. Gwiazdką przy nazwie zapiszesz tę walutę.",void t.append(e)}e.forEach(e=>{const a=document.createElement("button"),r=document.createElement("span"),i=document.createElement("span");a.type="button",a.dataset.code=e,N(r,e),i.textContent=e+" · "+n.catalog[e].name,a.append(r,i),a.addEventListener("click",()=>{const t=o("profileCurrency");t.value=e,t.dispatchEvent(new Event("change",{bubbles:!0}));(o("profileCurrencyPicker")||t).focus()}),t.append(a)})}j();const x=Array.from(e.querySelectorAll(".mbw-anchor-nav a")),T=e=>x.forEach(t=>{t.hash==="#"+e?t.setAttribute("aria-current","location"):t.removeAttribute("aria-current")});let B=!1;const M=()=>{B=!1;let e="profileQuotes";["profileHistory","profileAbout","profileSources"].forEach(t=>{const n=o(t);n&&n.getBoundingClientRect().top<=140&&(e=t)}),window.scrollY+innerHeight>=document.documentElement.scrollHeight-2&&(e="profileSources"),"profileQuotes"===e&&x.some(e=>"#profileConvert"===e.hash&&e.hasAttribute("aria-current"))&&(e="profileConvert"),T(e)};x.forEach(e=>e.addEventListener("click",()=>T(e.hash.slice(1)))),window.addEventListener("scroll",()=>{B||(B=!0,requestAnimationFrame(M))},{passive:!0}),T("profileQuotes"),M();const R=o("profileWatch");if(R){const e=A,t=()=>{const t=e().includes(n.code);R.setAttribute("aria-pressed",String(t)),R.setAttribute("aria-label",t?"Usuń "+n.code+" z zapisanych walut w tej przeglądarce":"Zapisz "+n.code+" w tej przeglądarce"),R.title=R.getAttribute("aria-label"),R.querySelector(".mbw-watch-label").textContent=t?"Zapisano walutę":"Zapisz walutę";const a=e();o("profileCurrency").querySelectorAll("option").forEach(e=>{e.dataset.label||(e.dataset.label=e.textContent),e.textContent=e.dataset.label+(a.includes(e.value)?" ★":"")}),j(),P&&P.sync("profileCurrency")};try{t(),R.hidden=!1}catch(e){}R.addEventListener("click",()=>{try{const o=e(),a=o.includes(n.code);localStorage.setItem("mybank.currencyWatchlist",JSON.stringify(a?o.filter(e=>
1e!==n.code):[...o,n.code])),t(),b(a?"Usunięto z zapisanych walut.":"Zapisano walutę w tej przeglądarce. Nie wysyłamy powiadomień.")}catch(e){b("Ta przeglądarka nie pozwala zapisać waluty.")}})}function O(e){let t=e.trim().replace(/[\s\u00a0\u202f]/g,"");if(!t||!/^[0-9.,]+$/.test(t))return null;if(t.includes(",")&&t.includes("."))if(/^\d{1,3}(\.\d{3})+,\d+$/.test(t))t=t.replace(/\./g,"").replace(",",".");else{if(!/^\d{1,3}(,\d{3})+\.\d+$/.test(t))return null;t=t.replace(/,/g,"")}else{if(!/^\d+(?:[.,]\d*)?$/.test(t))return null;t=t.replace(",",".")}const n=Number(t);return Number.isFinite(n)&&n>=0&&n<=1e12?n:null}function U(){const e=o("profileAmount"),t=o("convertSource");if(!e||!t)return;const l=O(e.value),c="live"===t.value,u=c?m&&m.price:n.latest&&n.latest.rate,h=p?"PLN":n.code,y=p?n.code:"PLN";if(o("sourceButtons").querySelectorAll("button").forEach(e=>{const n=t.querySelector('option[value="'+e.dataset.source+'"]');e.disabled=!n||n.disabled,e.setAttribute("aria-pressed",String(e.dataset.source===t.value))}),a("amountCurrency",h),a("amountSuffix",h),a("convertDirection",h+" → "+y),e.setAttribute("aria-invalid",String(null===l)),a("convertError",null===l?"Wpisz poprawną kwotę od 0 do 1 000 000 000 000, np. 1 250,50.":""),null===l||!d(u))return a("convertResult","—"),a("convertBasis",d(u)?"Popraw kwotę, aby zobaczyć wynik.":"Brak dostępnego kursu do przeliczenia."),void f();if(a("convertResult",r(p?l/u:l*u,2)+" "+y),a("convertBasis",c?(k().closed?"Ostatni kurs Forex":"Forex")+(m.via?" (przez USD)":"")+" · "+s(m.time)+(!k().closed&&Date.now()-m.time>12e4?" · starsze notowanie":""):"NBP · "+i(n.latest.date)),f(),!n.retired){const e=new URLSearchParams({from:h,to:y,amount:String(l),mode:c?"live":"nbp"});o("fullCalculatorLink").href="/kursy-walut/kalkulator/?"+e}}if(o("profileConvertForm")){"PLN"===w.get("from")&&(p=!0),w.has("amount")&&null!==O(w.get("amount"))&&(o("profileAmount").value=w.get("amount")),D&&o("convertSource").querySelector('option[value="'+w.get("mode")+'"]')&&(o("convertSource").value=w.get("mode")),o("sourceButtons").hidden=!!n.forexOnly,o("convertSourceLabel").hidden=!0,o("sourceButtons").addEventListener("click",e=>{const t=e.target.closest("button[data-source]");t&&!t.disabled&&(D=!0,o("convertSource").value=t.dataset.source,U())}),o("profileAmount").disabled=!1,o("convertSource").disabled=!1,o("profileConvertForm").addEventListener("submit",e=>{e.preventDefault(),U()}),o("profileAmount").addEventListener("input",()=>{D=!0,U()}),o("convertSource").addEventListener("change",()=>{D=!0,U()});const e=o("reverseConversion");e.hidden=!1,e.addEventListener("click",()=>{p=!p,D=!0,U()}),U()}function F(e,t){if(C(e),!m)return;const i=m.price<.1?6:5;a("livePrice",r(m.price,i));const s=d(t)?m.price-t:0;if(o("liveQuote").className="quote mbw-price "+(s>0?"mbw-tick-up":s<0?"mbw-tick-down":"mbw-tick-flat"),a("liveBid",null===m.bid?"—":r(m.bid,i)),a("liveAsk",null===m.ask?"—":r(m.ask,i)),a("liveSpread",null===m.bid?"—":r(m.ask-m.bid,5)+" zł ("+r((m.ask-m.bid)/((m.ask+m.bid)/2)*100,2)+"%)"),n.latest){const e=m.price-n.latest.rate,t=e/n.latest.rate*100;o("liveChangePct").innerHTML=l(t),a("liveChangeAmount","("+r(Math.abs(e),4)+" zł)"),o("liveChangeBox").className="change "+c(t)}const u=o("convertSource"),p=u.querySelector('option[value="live"]');p&&(p.disabled=!1,D||(u.value="live",D=!0)),U()}async function I(){if(!n.hasLive||h||document.hidden||k().closed)return;const e=new AbortController;h=e;const t=setTimeout(()=>e.abort(),2e3);try{const t=new URL(n.feed,location.href);t.searchParams.set("_",Date.now());const o=await fetch(t.href,{signal:e.signal,cache:"no-store",credentials:"same-origin"});if(!o.ok)throw new Error("Unavailable");const a=await o.json();if(!a||"object"!=typeof a||Array.isArray(a))throw new Error("Invalid data");const r=function(e,t,n=Date.now()){if(!e||Array.isArray(e)||!/^[A-Z]{3}$/.test(t)||"PLN"===t)return null;const o=e[t+"PLN"]?.quote;if(!o||"object"!=typeof o||Array.isArray(o))return null;const a=e=>{if("number"!=typeof e&&"string"!=typeof e)return null;const t="string"==typeof e?e.trim().replace(/,/g,"."):e;if("string"==typeof t&&!/^[+]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?$/i.test(t))return null;const n=Number(t);return Number.isFinite(n)&&n>0?n:null},r=a(o.price),i=a(o.time),s=e=>null!==e&&e>=1e12&&e<=1e3*(Math.floor(n/1e3)+60);
1if(null===r||!s(i)||!Array.isArray(o.components))return null;let l=a(o.bid),c=a(o.ask);(null===l||null===c||l>c)&&(l=c=null);const d=[];for(const e of o.components){if(!e||"string"!=typeof e.symbol||!/^[A-Z]{3}\/[A-Z]{3}$/.test(e.symbol))return null;const t=a(e.time);if(!s(t))return null;d.push({symbol:e.symbol,time:t})}return d.length&&Math.min(...d.map(e=>e.time))===i?{price:r,time:i,bid:l,ask:c,via:"USD"===o.via?"USD":null,components:d}:null}(a,n.code);if(!r)throw new Error("Invalid quote");const i=m&&m.price;(function(e,t){if(!t)return!0;if(e.time<t.time)return!1;const n=new Map((t.components||[]).map(e=>[e.symbol,e.time]));return(e.components||[]).every(e=>!n.has(e.symbol)||e.time>=n.get(e.symbol))})(r,m)&&(m=r),F(!1,i)}catch(e){document.hidden||F(!0)}finally{clearTimeout(t),h===e&&(h=null)}}if(n.hasLive){F(!1);let e=k().closed;const t=()=>{if(document.hidden)return;const n=k().closed;n?(h&&h.abort(),C(),e||U()):(e&&F(!1),I()),e=n,y=setTimeout(t,1e3)},n=()=>{clearTimeout(y),t()};document.addEventListener("visibilitychange",()=>{document.hidden?(clearTimeout(y),h&&h.abort()):(m&&F(!1),n())}),window.addEventListener("online",I),window.addEventListener("pagehide",()=>{clearTimeout(y),h&&h.abort()}),window.addEventListener("pageshow",e=>{e.persisted&&!document.hidden&&n()}),document.hidden||n()}const Z=o("profileChart"),q=Array.isArray(n.series)?n.series.filter(e=>e&&/^\d{4}-\d{2}-\d{2}$/.test(e.date)&&d(e.rate)):[];if(!Z||q.length<2||!window.MyBankChart)return;const W=e=>Date.parse(e+"T12:00:00Z");let H,V=365,$="";const Q=o("historyDateA"),K=o("historyDateB"),Y=e=>/^\d{4}-\d{2}-\d{2}$/.test(e)&&Number.isFinite(W(e))&&new Date(W(e)).toISOString().slice(0,10)===e;for(const[e,t]of[[Q,"date1"],[K,"date2"]])w.has(t)&&Y(w.get(t))&&(e.value=w.get(t));const X=e=>{if(!Y(e))return null;let t=null;for(const n of q){if(n.date>e)break;t=n}return t&&W(e)-W(t.date)<=6048e5?t:null};f=()=>{const e=O(o("profileAmount").value),t=p?"PLN":n.code,s=p?n.code:"PLN";a("historyAmountLabel",null===e?"Popraw kwotę ↑":r(e,Number.isInteger(e)?0:2)+" "+t+" · zmień ↑");const l=!Y(Q.value)||!Q.checkValidity(),d=!Y(K.value)||!K.checkValidity();Q.setAttribute("aria-invalid",String(l||Q.value>K.value)),K.setAttribute("aria-invalid",String(d||Q.value>K.value));const u=l?null:X(Q.value),m=d?null:X(K.value),h=l||d?"Wybierz daty od "+i(Q.min)+" do "+i(Q.max)+".":Q.value>K.value?"Pierwsza data nie może być późniejsza od drugiej.":u&&m?"":"Brak publikacji NBP w ciągu 7 dni przed jedną z wybranych dat. Wybierz inną datę.",y=[];if(h||[[Q,u],[K,m]].forEach(([e,t])=>{e.value!==t.date&&y.push("Dla "+i(e.value)+" użyto ostatniej dostępnej publikacji z "+i(t.date)+".")}),a("historyDateNotice",h||y.join(" ")||"Obie daty odpowiadają dostępnym publikacjom NBP."),h||null===e)return["historySelectedValue","historyLatestValue","historyValueDifference"].forEach(e=>a(e,"—")),["historySelectedDate","historyLatestDate"].forEach(e=>{a(e,"—"),o(e).removeAttribute("datetime")}),$="",void(o("copyHistoryComparison").disabled=!0);const f=p?e/u.rate:e*u.rate,b=p?e/m.rate:e*m.rate,w=b-f;a("historySelectedDate",i(u.date)),a("historyLatestDate",i(m.date)),o("historySelectedDate").dateTime=u.date,o("historyLatestDate").dateTime=m.date,a("historySelectedValue",r(f,2)+" "+s),a("historyLatestValue",r(b,2)+" "+s);const v=(w>=.005?"+":w<=-.005?"−":"")+r(Math.abs(w),2)+" "+s;a("historyValueDifference",v),o("historyValueDifference").className=Math.abs(w)<.005?"":c(w),$="MyBank.pl · porównanie tej samej kwoty: "+r(e,2)+" "+t+" → "+s+"\nWybrane daty: "+i(Q.value)+" → "+i(K.value)+"\nNBP "+i(u.date)+": "+r(f,2)+" "+s+" (1 "+n.code+" = "+r(u.rate)+" PLN)\nNBP "+i(m.date)+": "+r(b,2)+" "+s+" (1 "+n.code+" = "+r(m.rate)+" PLN)\nRóżnica: "+v+". Dane historyczne, bez opłat; nie prognoza.\n"+n.url,o("copyHistoryComparison").disabled=!1};const _=o("historyComparison");_.hidden=!1,_.open=["date1","date2"].some(e=>w.has(e)&&Y(w.get(e)))||"#historyComparison"===location.hash,window.addEventListener("hashchange",()=>{"#historyComparison"===location.hash&&(_.open=!0)}
1),[Q,K].forEach(e=>e.addEventListener("input",f)),o("copyHistoryComparison").addEventListener("click",async()=>{if($)try{await navigator.clipboard.writeText($),b("Skopiowano kwotę, daty, kursy i źródło NBP.")}catch(e){b("Nie udało się skopiować. Możesz zaznaczyć widoczne wartości.")}});const J=o("chartDialog"),G=o("chartWorkspace"),ee=o("expandChart"),te=window.matchMedia("(pointer:coarse)").matches;function ne(){a("chartHint",te?J.open?"Przeciągnij lub rozsuń dwa palce, aby zmienić widok. Dotknij punktu, aby porównać daty.":"Przesuń historię poziomo. Przybliż przyciskiem lupy. Dotknij punktu, aby porównać daty.":J.open?"Przeciągnij, aby przesunąć historię. Kółko myszy zmienia przybliżenie. Kliknij punkt, aby porównać daty.":"Przeciągnij, aby przesunąć historię. Zoom: przyciski lub Ctrl + kółko myszy. Kliknij punkt, aby porównać daty.")}const oe=q.map(e=>({...e,time:W(e.date),value:e.rate}));function ae(e){V=e;const t=function(e){const t=W(q[q.length-1].date),o={30:1,90:3,365:12,1096:36,1827:60}[e],a=o<12?n.monthReferences?.[o]:n.referenceRates?.[o/12],r=new Date(t),i=r.getUTCDate();return r.setUTCDate(1),r.setUTCMonth(r.getUTCMonth()-o),r.setUTCDate(Math.min(i,new Date(Date.UTC(r.getUTCFullYear(),r.getUTCMonth()+1,0)).getUTCDate())),{start:a?W(a.date):r.getTime(),end:t}}(e);H.setRange(t.start,t.end,!0)}H=window.MyBankChart.create({element:Z,data:oe,minimumSpan:6048e5,formatValue:e=>r(e),formatAxis:e=>r(e,e<.1?5:3),formatTime:e=>i(new Date(e).toISOString().slice(0,10)),valueLabel:"PLN za 1 "+n.code,label:"Odczyt historii "+n.code+"/PLN",describedBy:"chartHint chartKeyboardHint",onInspect:(e,{commit:t})=>{t&&(Q.value=e.date,_.open=!0,f())},onRangeChange:e=>{const t=e.points[0],n=e.points[e.points.length-1];if(a("chartRange",t&&n?i(t.date)+" — "+i(n.date):"Brak publikacji w widocznym zakresie."),t&&n){const e=100*(n.value/t.value-1),a=document.createElement("strong");a.className=c(e),a.innerHTML=l(e),o("chartRange").appendChild(a)}a("chartCaption",(e.referenceVisible?"Linia pozioma: ostatni kurs 
1NBP.":"Ostatni kurs NBP jest poza widoczną skalą wartości.")+" Zmiana procentowa: od pierwszej do ostatniej widocznej publikacji."),o("chartZoomIn").disabled=!e.canZoomIn,o("chartZoomOut").disabled=!e.canZoomOut,o("chartReset").disabled=e.isDefault,o("downloadRates").disabled=!e.points.length,o("chartPeriods").querySelectorAll("button").forEach(t=>t.setAttribute("aria-pressed",String(e.isDefault&&Number(t.dataset.days)===V)))}}),o("chartPeriods").addEventListener("click",e=>{const t=e.target.closest("button[data-days]");t&&ae(Number(t.dataset.days))}),o("chartZoomIn").addEventListener("click",()=>H.zoomIn()),o("chartZoomOut").addEventListener("click",()=>H.zoomOut()),o("chartReset").addEventListener("click",()=>H.reset()),o("chartControls").hidden=!1,o("chartHint").hidden=!1,ne();let re=null,ie="",se=null,le=null;function ce(){J.open&&J.close()}"function"==typeof J.showModal&&(ee.hidden=!1,ee.addEventListener("click",()=>{J.open||(re=document.createElement("div"),re.setAttribute("aria-hidden","true"),re.style.height=G.getBoundingClientRect().height+"px",G.before(re),se={x:window.scrollX,y:window.scrollY},ie=document.body.style.overflow,o("chartDialogBody").appendChild(G),ee.hidden=!0,J.showModal(),document.body.style.overflow="hidden",o("chartDialogBody").scrollTop=0,H.setExpanded(!0),ne(),o("closeChart").focus({preventScroll:!0}))}),o("closeChart").addEventListener("click",ce),J.addEventListener("cancel",e=>{e.preventDefault(),ce()}),J.addEventListener("keydown",e=>{if("Tab"!==e.key)return;const t=Array.from(J.querySelectorAll('button:not([disabled]),a[href],input:not([disabled]),select:not([disabled]),summary,[tabindex]:not([tabindex="-1"])')).filter(e=>{const t=e.closest("details:not([open])");return e.getClientRects().length&&!e.closest("[hidden]")&&(!t||e===t.querySelector("summary"))&&"hidden"!==getComputedStyle(e).visibility}),n=t[0],o=t[t.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),o?.focus()):e.shiftKey||document.activeElement!==o||(e.preventDefault(),n?.focus())}),J.addEventListener("close",()=>{if(re&&(re.replaceWith(G),re=null),document.body.style.overflow=ie,ee.hidden=!1,H.setExpanded(!1),ne(),se&&window.scrollTo(se.x,se.y),ee.focus({preventScroll:!0}),le){const e=o(le);le=null,e?.scrollIntoView({block:"start"}),"profileConvert"===e?.id&&o("profileAmount").focus({preventScroll:!0})}}),J.addEventListener("click",e=>{if(e.target!==J)return;const t=J.getBoundingClientRect();(e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom)&&ce()}),G.addEventListener("click",e=>{const t=e.target.closest('a[href^="#"]');J.open&&t&&(e.preventDefault(),le=t.hash.slice(1),ce())}));const de=o("downloadRates");de.hidden=!1,de.addEventListener("click",()=>{const e=H.getVisibleData();if(!e.length)return;const t="\ufeffdata;waluta;PLN_za_1_jednostke;zrodlo\r\n"+e.map(e=>[e.date,n.code,String(e.value).replace(".",","),"NBP Tabela A"].join(";")).join("\r\n"),o=URL.createObjectURL(new Blob([t],{type:"text/csv;charset=utf-8"})),a=document.createElement("a");a.href=o,a.download=n.code+"-PLN-NBP-"+e[0].date+"-"+e[e.length-1].date+".csv",document.body.appendChild(a),a.click(),a.remove(),setTimeout(()=>URL.revokeObjectURL(o),1e3),b("Pobrano publikacje NBP z widocznego zakresu.")});const ue=Number(w.get("days"));ae([30,90,365,1096,1827].includes(ue)?ue:365),f()})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.