vendor: 5,185 bytes, lines 1-2
1/*! For license information please see app.js.LICENSE.txt */ 2(()=>{var e,t={896:(e,t,n)=>{"use strict";var o="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n.g&&n.g||{},r="URLSearchParams"in o,a="Symbol"in o&&"iterator"in Symbol,c="FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in o,s="ArrayBuffer"in o;if(s)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&u.indexOf(Object.prototype.toString.call(e))>-1};function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function f(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return a&&(t[Symbol.iterator]=function(){return t}),t}function m(e){this.map={},e instanceof m?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function y(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function v(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function w(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:c&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&c&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c&&(this.blob=function(){var e=y(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=y(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(c)return this.blob().then(v);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,o,r,a=y(this);if(a)return a;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=h(t),o=/charset=([A-Za-z0-9_-]+)/.exec(e.type),r=o?o[1]:"utf-8",t.readAsText(e,r),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),o=0;o<t.length;o++)n[o]=String.fromCharCode(t[o]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}m.prototype.append=function(e,t){e=d(e),t=f(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},m.prototype.delete=function(e){delete this.map[d(e)]},m.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},m.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},m.prototype.set=function(e,t){this.map[d(e)]=f(t)},m.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},m.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},m.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},m.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},a&&(m.prototype[Symbol.iterator]=m.prototype.entries);var b=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function S(e,t){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object c
2onstructor cannot be called as a function.');var n,r,a=(t=t||{}).body;if(e instanceof S){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new m(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,a||null==e._bodyInit||(a=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new m(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),b.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in o)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(a),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var c=/([?&])_=[^&]*/;if(c.test(this.url))this.url=this.url.replace(c,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function _(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),o=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(r))}})),t}function L(e,t){if(!(this instanceof L))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new m(t.headers),this.url=t.url||"",this._initBody(e)}S.prototype.clone=function(){return new S(this,{body:this._bodyInit})},w.call(S.prototype),w.call(L.prototype),L.prototype.clone=function(){return new L(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},L.error=function(){var e=new L(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var k=[301,302,303,307,308];L.redirect=function(e,t){if(-1===k.indexOf(t))throw new RangeError("Invalid status code");return new L(null,{status:t,headers:{location:e}})};var E=o.DOMException;try{new E}catch(e){(E=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),E.prototype.constructor=E}function q(e,t){return new Promise((function(n,r){var a=new S(e,t);if(a.signal&&a.signal.aborted)return r(new E("Aborted","AbortError"));var i=new XMLHttpRequest;function u(){i.abort()}if(i.onload=function(){var e,t,o={statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new m,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),o=n.shift().trim();if(o){var r=n.join(":").trim();try{t.append(o,r)}catch(e){console.warn("Response "+e.message)}}})),t)};0===a.url.indexOf("file://")&&(i.status<200||i.status>599)?o.status=200:o.status=i.status,o.url="responseURL"in i?i.responseURL:o.headers.get("X-Request-URL");var r="response"in i?i.response:i.responseText;setTimeout((function(){n(new L(r,o))}),0)},i.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request timed out"))}),0)},i.onabort=function(){setTimeout((function(){r(new E("Aborted","AbortError"))}),0)},i.open(a.method,function(e){try{return""===e&&o.location.href?o.location.href:e}catch(t){return e}}(a.url),!0),"include"===a.credentials?i.withCredentials=!0:"omit"===a.credentials&&(i.withCredentials=!1),"responseType"in i&&(c?i.responseType="blob":s&&(i.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof m||o.Headers&&t.headers instanceof o.Headers)){var l=[];
2Object.getOwnPropertyNames(t.headers).forEach((function(e){l.push(d(e)),i.setRequestHeader(e,f(t.headers[e]))})),a.headers.forEach((function(e,t){-1===l.indexOf(t)&&i.setRequestHeader(t,e)}))}else a.headers.forEach((function(e,t){i.setRequestHeader(t,e)}));a.signal&&(a.signal.addEventListener("abort",u),i.onreadystatechange=function(){4===i.readyState&&a.signal.removeEventListener("abort",u)}),i.send(void 0===a._bodyInit?null:a._bodyInit)}))}q.polyfill=!0,o.fetch||(o.fetch=q,o.Headers=m,o.Request=S,o.Response=L);var A,T;T=(A="https://www.postoj.sk")+"/moj-ucet";var x="https://postoj-backend.crowdfundingtoolbox.news/api/portal/",I="https://postoj-backend.crowdfundingtoolbox.news/portal/",P=A,B=T,C="postoj.sk",j="https://cdn.postoj.sk/",O="https://web.postoj.sk";const N=JSON.parse('{"BD":"880","BE":"32","BF":"226","BG":"359","BA":"387","BB":"+1-246","WF":"681","BL":"590","BM":"+1-441","BN":"673","BO":"591","BH":"973","BI":"257","BJ":"229","BT":"975","JM":"+1-876","BV":"","BW":"267","WS":"685","BQ":"599","BR":"55","BS":"+1-242","JE":"+44-1534","BY":"375","BZ":"501","RU":"7","RW":"250","RS":"381","TL":"670","RE":"262","TM":"993","TJ":"992","RO":"40","TK":"690","GW":"245","GU":"+1-671","GT":"502","GS":"","GR":"30","GQ":"240","GP":"590","JP":"81","GY":"592","GG":"+44-1481","GF":"594","GE":"995","GD":"+1-473","GB":"44","GA":"241","SV":"503","GN":"224","GM":"220","GL":"299","GI":"350","GH":"233","OM":"968","TN":"216","JO":"962","HR":"385","HT":"509","HU":"36","HK":"852","HN":"504","HM":" ","VE":"58","PR":"+1-787 and 1-939","PS":"970","PW":"680","PT":"351","SJ":"47","PY":"595","IQ":"964","PA":"507","PF":"689","PG":"675","PE":"51","PK":"92","PH":"63","PN":"870","PL":"48","PM":"508","ZM":"260","EH":"212","EE":"372","EG":"20","ZA":"27","EC":"593","IT":"39","VN":"84","SB":"677","ET":"251","SO":"252","ZW":"263","SA":"966","ES":"34","ER":"291","ME":"382","MD":"373","MG":"261","MF":"590","MA":"212","MC":"377","UZ":"998","MM":"95","ML":"223","MO":"853","MN":"976","MH":"692","MK":"389","MU":"230","MT":"356","MW":"265","MV":"960","MQ":"596","MP":"+1-670","MS":"+1-664","MR":"222","IM":"+44-1624","UG":"256","TZ":"255","MY":"60","MX":"52","IL":"972","FR":"33","IO":"246","SH":"290","FI":"358","FJ":"679","FK":"500","FM":"691","FO":"298","NI":"505","NL":"31","NO":"47","NA":"264","VU":"678","NC":"687","NE":"227","NF":"672","NG":"234","NZ":"64","NP":"977","NR":"674","NU":"683","CK":"682","XK":"","CI":"225","CH":"41","CO":"57","CN":"86","CM":"237","CL":"56","CC":"61","CA":"1","CG":"242","CF":"236","CD":"243","CZ":"420","CY":"357","CX":"61","CR":"506","CW":"599","CV":"238","CU":"53","SZ":"268","SY":"963","SX":"599","KG":"996","KE":"254","SS":"211","SR":"597","KI":"686","KH":"855","KN":"+1-869","KM":"269","ST":"239","SK":"421","KR":"82","SI":"386","KP":"850","KW":"965","SN":"221","SM":"378","SL":"232","SC":"248","KZ":"7","KY":"+1-345","SG":"65","SE":"46","SD":"249","DO":"+1-809 and 1-829","DM":"+1-767","DJ":"253","DK":"45","VG":"+1-284","DE":"49","YE":"967","DZ":"213","US":"1","UY":"598","YT":"262","UM":"1","LB":"961","LC":"+1-758","LA":"856","TV":"688","TW":"886","TT":"+1-868","TR":"90","LK":"94","LI":"423","LV":"371","TO":"676","LT":"370","LU":"352","LR":"231","LS":"266","TH":"66","TF":"","TG":"228","TD":"235","TC":"+1-649","LY":"218","VA":"379","VC":"+1-784","AE":"971","AD":"376","AG":"+1-268","AF":"93","AI":"+1-264","VI":"+1-340","IS":"354","IR":"98","AM":"374","AL":"355","AO":"244","AQ":"","AS":"+1-684","AR":"54","AU":"61","AT":"43","AW":"297","IN":"91","AX":"+358-18","AZ":"994","IE":"353","ID":"62","UA":"380","QA":"974","MZ":"258"}'),M=JSON.parse('[{"name":"Afghanistan","code":"AF"},{"name":"Ã
land Islands","code":"AX"},{"name":"Albania","code":"AL"},{"name":"Algeria","code":"DZ"},{"name":"American Samoa","code":"AS"},{"name":"AndorrA","code":"AD"},{"name":"Angola","code":"AO"},{"name":"Anguilla","code":"AI"},{"name":"Antarctica","code":"AQ"},{"name":"Antigua and Barbuda","code":"AG"},{"name":"Argentina","code":"AR"},{"name":"Armenia","code":"AM"},{"name":"Aruba","code":"AW"},{"name":"Australia","code":"AU"},{"name":"Austria","code":"AT"},{"name":"Azerbaijan","code":"AZ"},{"name":"Bahamas","code":"BS"},{"name":"Bahrain","code":"BH"},{"name":"Bangladesh","code":"BD"},{"name":"Barbados","code":"BB"},{"name":"Belarus","code":"BY"},{"name":"Belgium","code":"BE"},{"name":"Belize","code":"BZ"},{"name":"Benin","code":"BJ"},{"name":"Bermuda","code":"BM"},{"name":"Bhutan","code":"BT"},{"name":"Bolivia","code":"BO"},{"name":"Bosnia and Herzegovina","code":"BA"},{"name":"Botswana","code":"BW"},{"name":"Bouvet Island","code":"BV"},{"name":"Brazil","code":"BR"},{"name":"British Indian Ocean Territory","code":"IO"},{"name":"Brunei Darussalam","code":"BN"},{"name":"Bulgaria","code":"BG"},{"name":"Burkina Faso","code":"BF"},{"name":"Burundi","code":"BI"},{"name":"Cambodia","code":"KH"},{"name":"Cameroon","code":"CM"},{"name":"Canada","code":"CA"},{"name":"Cape Verde","code":"CV"},{"name":"Cayman Islands","code":"KY"},{"name":"Central African Republic","code":"CF"},{"name":"Chad","code":"TD"},{"name":"Chile","code":"CL"},{"name":"China","code":"CN"},{"name":"Christmas Island","code":"CX"},{"name":"Cocos (Keeling) Islands","code":"CC"},{"name":"Colombia","code":"CO"},{"name":"Comoros","code":"KM"},{"name":"Congo","code":"CG"},{"name":"Congo, The Democratic Republic of the","code":"CD"},{"name":"Cook Islands","code":"CK"},{"name":"Costa Rica","code":"CR"},{"name":"Cote D\\"Ivoire","code":"CI"},{"name":"Croatia","code":"HR"},{"name":"Cuba","code":"CU"},{"name":"Cyprus","code":"CY"},{"name":"Czech Republic","code":"CZ"},{"name":"Denmark","code":"DK"},{"name":"Djibouti","code":"DJ"},{"name":"Dominica","code":"DM"},{"name":"Dominican Republic","code":"DO"},{"name":"Ecuador","code":"EC"},{"name":"Egypt","code":"EG"},{"name":"El Salvador","code":"SV"},{"name":"Equatorial Guinea","code":"GQ"},{"name":"Eritrea","code":"ER"},{"name":"Estonia","code":"EE"},{"name":"Ethiopia","code":"ET"},{"name":"Falkland Islands (Malvinas)","code":"FK"},{"name":"Faroe Islands","code":"FO"},{"name":"Fiji","code":"FJ"},{"name":"Finland","code":"FI"},{"name":"France","code":"FR"},{"name":"French Guiana","code":"GF"},{"name":"French Polynesia","code":"PF"},{"name":"French Southern Territories","code":"TF"},{"name":"Gabon","code":"GA"},{"name":"Gambia","code":"GM"},{"name":"Georgia","code":"GE"},{"name":"Germany","code":"DE"},{"name":"Ghana","code":"GH"},{"name":"Gibraltar","code":"GI"},{"name":"Greece","code":"GR"},{"name":"Greenland","code":"GL"},{"name":"Grenada","code":"GD"},{"name":"Guadeloupe","code":"GP"},{"name":"Guam","code":"GU"},{"name":"Guatemala","code":"GT"},{"name":"Guernsey","code":"GG"},{"name":"Guinea","code":"GN"},{"name":"Guinea-Bissau","code":"GW"},{"name":"Guyana","code":"GY"},{"name":"Haiti","code":"HT"},{"name":"Heard Island and Mcdonald Islands","code":"HM"},{"name":"Holy See (Vatican City State)","code":"VA"},{"name":"Honduras","code":"HN"},{"name":"Hong Kong","code":"HK"},{"name":"Hungary","code":"HU"},{"name":"Iceland","code":"IS"},{"name":"India","code":"IN"},{"name":"Indonesia","code":"ID"}
2,{"name":"Iran, Islamic Republic Of","code":"IR"},{"name":"Iraq","code":"IQ"},{"name":"Ireland","code":"IE"},{"name":"Isle of Man","code":"IM"},{"name":"Israel","code":"IL"},{"name":"Italy","code":"IT"},{"name":"Jamaica","code":"JM"},{"name":"Japan","code":"JP"},{"name":"Jersey","code":"JE"},{"name":"Jordan","code":"JO"},{"name":"Kazakhstan","code":"KZ"},{"name":"Kenya","code":"KE"},{"name":"Kiribati","code":"KI"},{"name":"Korea, Democratic People\\"S Republic of","code":"KP"},{"name":"Korea, Republic of","code":"KR"},{"name":"Kuwait","code":"KW"},{"name":"Kyrgyzstan","code":"KG"},{"name":"Lao People\\"S Democratic Republic","code":"LA"},{"name":"Latvia","code":"LV"},{"name":"Lebanon","code":"LB"},{"name":"Lesotho","code":"LS"},{"name":"Liberia","code":"LR"},{"name":"Libyan Arab Jamahiriya","code":"LY"},{"name":"Liechtenstein","code":"LI"},{"name":"Lithuania","code":"LT"},{"name":"Luxembourg","code":"LU"},{"name":"Macao","code":"MO"},{"name":"Macedonia, The Former Yugoslav Republic of","code":"MK"},{"name":"Madagascar","code":"MG"},{"name":"Malawi","code":"MW"},{"name":"Malaysia","code":"MY"},{"name":"Maldives","code":"MV"},{"name":"Mali","code":"ML"},{"name":"Malta","code":"MT"},{"name":"Marshall Islands","code":"MH"},{"name":"Martinique","code":"MQ"},{"name":"Mauritania","code":"MR"},{"name":"Mauritius","code":"MU"},{"name":"Mayotte","code":"YT"},{"name":"Mexico","code":"MX"},{"name":"Micronesia, Federated States of","code":"FM"},{"name":"Moldova, Republic of","code":"MD"},{"name":"Monaco","code":"MC"},{"name":"Mongolia","code":"MN"},{"name":"Montserrat","code":"MS"},{"name":"Morocco","code":"MA"},{"name":"Mozambique","code":"MZ"},{"name":"Myanmar","code":"MM"},{"name":"Namibia","code":"NA"},{"name":"Nauru","code":"NR"},{"name":"Nepal","code":"NP"},{"name":"Netherlands","code":"NL"},{"name":"Netherlands Antilles","code":"AN"},{"name":"New Caledonia","code":"NC"},{"name":"New Zealand","code":"NZ"},{"name":"Nicaragua","code":"NI"},{"name":"Niger","code":"NE"},{"name":"Nigeria","code":"NG"},{"name":"Niue","code":"NU"},{"name":"Norfolk Island","code":"NF"},{"name":"Northern Mariana Islands","code":"MP"},{"name":"Norway","code":"NO"},{"name":"Oman","code":"OM"},{"name":"Pakistan","code":"PK"},{"name":"Palau","code":"PW"},{"name":"Palestinian Territory, Occupied","code":"PS"},{"name":"Panama","code":"PA"},{"name":"Papua New Guinea","code":"PG"},{"name":"Paraguay","code":"PY"},{"name":"Peru","code":"PE"},{"name":"Philippines","code":"PH"},{"name":"Pitcairn","code":"PN"},{"name":"Poland","code":"PL"},{"name":"Portugal","code":"PT"},{"name":"Puerto Rico","code":"PR"},{"name":"Qatar","code":"QA"},{"name":"Reunion","code":"RE"},{"name":"Romania","code":"RO"},{"name":"Russian Federation","code":"RU"},{"name":"RWANDA","code":"RW"},{"name":"Saint Helena","code":"SH"},{"name":"Saint Kitts and Nevis","code":"KN"},{"name":"Saint Lucia","code":"LC"},{"name":"Saint Pierre and Miquelon","code":"PM"},{"name":"Saint Vincent and the Grenadines","code":"VC"},{"name":"Samoa","code":"WS"},{"name":"San Marino","code":"SM"},{"name":"Sao Tome and Principe","code":"ST"},{"name":"Saudi Arabia","code":"SA"},{"name":"Senegal","code":"SN"},{"name":"Serbia and Montenegro","code":"CS"},{"name":"Seychelles","code":"SC"},{"name":"Sierra Leone","code":"SL"},{"name":"Singapore","code":"SG"},{"name":"Slovensko","code":"SK"},{"name":"Slovenia","code":"SI"},{"name":"Solomon Islands","code":"SB"},{"name":"Somalia","code":"SO"},{"name":"South Africa","code":"ZA"},{"name":"South Georgia and the South Sandwich Islands","code":"GS"},{"name":"Spain","code":"ES"},{"name":"Sri Lanka","code":"LK"},{"name":"Sudan","code":"SD"},{"name":"Suriname","code":"SR"},{"name":"Svalbard and Jan Mayen","code":"SJ"},{"name":"Swaziland","code":"SZ"},{"name":"Sweden","code":"SE"},{"name":"Switzerland","code":"CH"},{"name":"Syrian Arab Republic","code":"SY"},{"name":"Taiwan, Province of China","code":"TW"},{"name":"Tajikistan","code":"TJ"},{"name":"Tanzania, United Republic of","code":"TZ"},{"name":"Thailand","code":"TH"},{"name":"Timor-Leste","code":"TL"},{"name":"Togo","code":"TG"},{"name":"Tokelau","code":"TK"},{"name":"Tonga","code":"TO"},{"name":"Trinidad and Tobago","code":"TT"},{"name":"Tunisia","code":"TN"},{"name":"Turkey","code":"TR"},{"name":"Turkmenistan","code":"TM"},{"name":"Turks and Caicos Islands","code":"TC"},{"name":"Tuvalu","code":"TV"},{"name":"Uganda","code":"UG"},{"name":"Ukraine","code":"UA"},{"name":"United Arab Emirates","code":"AE"},{"name":"United Kingdom","code":"GB"},{"name":"United States","code":"US"},{"name":"United States Minor Outlying Islands","code":"UM"},{"name":"Uruguay","code":"UY"},{"name":"Uzbekistan","code":"UZ"},{"name":"Vanuatu","code":"VU"},{"name":"Venezuela","code":"VE"},{"name":"Viet Nam","code":"VN"},{"name":"Virgin Islands, British","code":"VG"},{"name":"Virgin Islands, U.S.","code":"VI"},{"name":"Wallis and Futuna","code":"WF"},{"name":"Western Sahara","code":"EH"},{"name":"Yemen","code":"YE"},{"name":"Zambia","code":"ZM"},{"name":"Zimbabwe","code":"ZW"}]');var R="impersonate";function D(){if("undefined"!=typeof TrustPayApi){var e=document.querySelectorAll(".comfortpay--updateCard");e.length>0&&e.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault();var t=document.querySelector(".trust-pay--popup");document.querySelector(".popup-overlay").style.display="block",t.style.display="block",z("trust-pay--popup__loader");var n=new XMLHttpRequest;n.responseType="json",n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE)if(200===n.status){var e=n.response;e&&e.trustPayIntent?F(e.trustPayIntent,e.donationId,e.redirectUrl):console.error("[Upd
2ate Card Info] No TrustPay intent received")}else console.error("[Update Card Info] Request failed with status:",n.status)},n.onerror=function(){console.error("[Update Card Info] Network request failed")},n.open("GET",x+"comfortpay/update-card",!0),n.setRequestHeader("Authorization","Bearer "+localStorage.getItem("cft_usertoken")),n.setRequestHeader("Content-type","application/json; charset=utf-8"),n.send()}))}))}else console.error("[TrustPay] TrustPayApi is not defined. Please ensure the TrustPay script is loaded.")}function H(e,t,n){e.on("input",(function(e){console.log("cardPanComponent input",e),window.cardNumberValid=e.valid&&!e.empty,U()})),t.on("input",(function(e){window.cardExpValid=e.valid&&!e.empty,U()})),n.on("input",(function(e){window.cardCvvValid=e.valid&&!e.empty,U()})),e.on("focus",(function(e){window.cardNumberValid=e.valid&&!e.empty})),t.on("focus",(function(e){window.cardExpValid=e.valid&&!e.empty})),n.on("focus",(function(e){window.cardCvvValid=e.valid&&!e.empty}));var o=document.querySelector("#card-exp");window.addEventListener("message",(function(e){if(e.data&&"updateHasFocus"===e.data.messageType)switch(e.data.message.type){case"cardNumber":J("#card-number");break;case"cardExpirationDate":J("#card-exp");break;case"cardVerificationCode":J("#card-cvv")}})),o&&document.querySelectorAll("#card-exp, #card-exp *").forEach((function(e){e.addEventListener("click",(function(){var e=document.querySelector("#card-exp input");e&&e.focus(),J("#card-exp")})),e.addEventListener("focus",(function(){J("#card-exp")}),!0)})),document.addEventListener("click",(function(e){var t=document.querySelector(".focused");if(t&&!t.contains(e.target)){t.classList.remove("focused");var n=t.querySelector("input:focus");n&&n.blur()}!function(){U();var e=document.querySelector("#card-number"),t=document.querySelector("#card-exp"),n=document.querySelector("#card-cvv");!1===window.cardNumberValid?!e.classList.contains("focused")&&e.parentElement.classList.add("error"):e.parentElement.classList.remove("error");!1===window.cardExpValid?!t.classList.contains("focused")&&t.parentElement.classList.add("error"):t.parentElement.classList.remove("error");!1===window.cardCvvValid?!n.classList.contains("focused")&&n.parentElement.classList.add("error"):n.parentElement.classList.remove("error")}()}))}function U(){var e=document.getElementById("trust-pay-button");e&&(window.cardNumberValid&&window.cardExpValid&&window.cardCvvValid?(e.removeAttribute("disabled"),e.classList.remove("disabled")):(e.setAttribute("disabled","disabled"),e.classList.add("disabled")))}function J(e){["#card-cvv","#card-exp","#card-number"].forEach((function(t){var n=document.querySelector(t);n&&(t===e?(n.classList.add("focused"),n.parentElement.classList.remove("error")):n.classList.remove("focused"))}))}function z(e){["trust-pay--popup__loader","trust-pay--popup__form","trust-pay--popup__processing","trust-pay--popup__error","trust-pay--popup__success"].forEach((function(t){var n=document.querySelector("."+t);n&&(n.style.display=t===e?"block":"none")}))}function F(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/";if("undefined"!=typeof TrustPayApi){var o={color:"#000",fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:"400",outline:"none",backgroundColor:"rgba(0, 0, 0, 0)"},r=new TrustPayApi(e.secrets),a=r.createComponent("cardNumber",{style:o}),c=r.createComponent("cardExpirationDate",{style:o}),i=r.createComponent("cardVerificationCode",{style:o}),s=window.location.hostname,u=r.createComponent("applePay",{initiativeContext:s,style:{"--apple-pay-button-width":"100%;","--apple-pay-button-height":"30px;","--apple-pay-button-border-radius":"4px;","--apple-pay-button-padding":"5px 0;"},buttonStyle:"black",buttonType:"plain",buttonLocale:"sk-SK",onPaymentProcessed:function(e){e&&0==e.status?(console.log("[ApplePay] Payment result:",e),G(n)):(console.error("[ApplePay] Payment failed:",e),z("trust-pay--popup__error"))},paymentRequest:e.appleInitResultData}),l=r.createComponent("googlePay",{buttonColor:"black",buttonRadius:"4",buttonType:"plain",buttonLocale:"sk",buttonSizeMode:"fill",onPaymentProcessed:function(e){e&&0==e.status?(console.log("[GooglePay] Payment result:",e),G(n)):(console.error("[GooglePay] Payment failed:",e),z("trust-pay--popup__error"))},paymentRequest:e.googleInitResultData,placement:"trustpay"});
2a.mount("#card-number"),c.mount("#card-exp"),i.mount("#card-cvv"),u.isSupported().then((function(e){e?(document.querySelector("#apple-pay-element").style.display="block",u.mount("#apple-pay-element"),document.querySelector(".trust-pay--popup__divider").style.display="block"):console.log("[ApplePay] NOT supported")})).catch((function(e){console.error("[ApplePay] Support check failed",e)})),l.isSupported().then((function(e){e?(document.querySelector("#google-pay-element").style.display="block",l.mount("#google-pay-element"),document.querySelector(".trust-pay--popup__divider").style.display="block"):console.log("[GooglePay] NOT supported")})).catch((function(e){console.error("[GooglePay] Support check failed",e)})),r.addEventListener("modalopen",(function(e){Array.from(document.querySelectorAll('[style*="z-index: 999"]')).filter((function(e){return!e.classList.contains("crowdWidgetContent--widget--popupOverlay")})).forEach((function(e){e&&(e.style.width="500px",e.style.maxWidth="100%",e.style.height="80vh",e.style.top="10%",e.style.left="max(0px, calc(50% - 250px))",e.style.overflowY="auto",e.style.borderRadius="8px",e.style.padding="15px")}))})),document.getElementById("repeat-payment-button").addEventListener("click",(function(e){e.preventDefault(),z("trust-pay--popup__loader"),function(e){return new Promise((function(t,n){var o=getEnvs().apiPublicUrl+"/portal/",r=new XMLHttpRequest;r.onload=function(){if(r.readyState===XMLHttpRequest.DONE){var e=r.response;200===r.status&&e.trustPayIntent?t(e):n(new Error("[Error] No TrustPay intent received"))}},r.onerror=function(){n(new Error("[Error] Network request failed"))},r.open("POST",o+"donation/trustpay/intent",!0),r.setRequestHeader("Authorization","Bearer "+localStorage.getItem("cft_usertoken")),r.setRequestHeader("Content-type","application/json; charset=utf-8"),r.responseType="json",r.send(JSON.stringify({donation_id:e}))}))}(t).then((function(e){if(e&&e.trustPayIntent){["card-number","card-exp","card-cvv","apple-pay-element","google-pay-element","trust-pay-button"].forEach((function(e){W("#"+e)})),delete window.cardNumberValid,delete window.cardExpValid,delete window.cardCvvValid,setTimeout((function(){F(e.trustPayIntent,t,n)}),1500)}})).catch((function(e){console.error("[Repeat] Error fetching TrustPay intent:",e),z("trust-pay--popup__error")}))})),document.getElementById("trust-pay-button").addEventListener("click",(function(t){t.preventDefault(),z("trust-pay--popup__processing"),r.finishCardPayment(e.secrets.payment,{cardVerificationCode:i,cardExpirationDate:c,cardNumber:a}).then((function(e){e.status>=0?G(n):(console.error("[Payment] Failed:",e),z("trust-pay--popup__error"))})).catch((function(e){z("trust-pay--popup__error"),console.error("[Payment] Exception occurred:",e)}))}));var d=document.querySelectorAll(".trust-pay-close-button");d&&d.forEach((function(e){e.addEventListener("click",(function(){document.querySelector(".popup-overlay").style.display="none",document.querySelector(".trust-pay--popup").style.display="none";["card-number","card-exp","card-cvv","apple-pay-element","google-pay-element","trust-pay-button"].forEach((function(e){W("#"+e)})),delete window.cardNumberValid,delete window.cardExpValid,delete window.cardCvvValid}))})),H(a,c,i),setTimeout((function(){z("trust-pay--popup__form")}),1e3),document.querySelector("#card-number-input")&&(document.querySelector("#card-number-input").placeholder="ââââ ââââ ââââ ââââ")}else console.error("[Init] TrustPayApi is not defined")}function G(){z("trust-pay--popup__success");var e=document.getElementById("redirect-a");e&&e.addEventListener("click",(function(e){e.preventDefault(),window.location.reload()}));var t=document.querySelector("#redirect-timer");if(t)var n=setInterval((function(){var e=parseInt(t.innerText,10);e>0?t.innerText=(e-1).toString():(t.innerText="0",clearInterval(n),window.location.reload())}),1e3)}function W(e){var t=document.querySelector(e);if(t){var n=t.parentNode,o=t.nextSibling,r=t.tagName.toLowerCase(),a=t.className,c=t.id;n.removeChild(t);var i=document.createElement(r);i.id=c,i.className=a,"trust-pay-button"===c&&(i.innerText="PodporiÅ¥"),i.classList.remove("cft--flex-hidden"),o?n.insertBefore(i,o):n.appendChild(i)}else console.error("Element with ID ".concat(id," not found!"))}function X(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,c,i=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=a.call(n)).done)&&(i.push(o.value),i.length!==t);s=!0);}catch(e){u=!0,r=e}
2finally{try{if(!s&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return V(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}document.addEventListener("DOMContentLoaded",(function(){var e=Gt(R);if(null!==e){tn(e),$t(R,"true");var t=window.location.href;window.location.href=t.substr(0,t.indexOf("?"+R))}if("true"===Zt(R)&&nn()&&(new Date).getUTCMilliseconds()/1e3<=nn().exp){var n=document.getElementById("site-header"),o=document.createElement("div");o.classList.add("cft--impersonating-alert"),o.innerText="You are impersonating user with email "+nn().email,n&&n.insertBefore(o,n.firstChild)}}));var Y="cft--widgets_data",K="cft-popup-time",Z="cft--tracking-visit-id",$="cft--user-details",Q={landing:"#cr0wdfundingToolbox-landing",sidebar:".cr0wdfundingToolbox-sidebar",leaderboard:"#cr0wdfundingToolbox-leaderboard",popup:"#cr0wdfundingToolbox-popup",fixed:"#cr0wdfundingToolbox-fixed",locked:"#cr0wdfundingToolbox-locked",article:"#cr0wdfundingToolbox-locked",article_advanced:"#cr0wdfundingToolbox-locked",custom:"#cr0wdfundingToolbox-custom",dtv_static_desktop:"#cr0wdfundingToolbox-dtv-static-desktop",dtv_static_mobile:"#cr0wdfundingToolbox-dtv-static-mobile",dtv_dynamic:".cr0wdfundingToolbox-dtv-dynamic",sticky:"#cr0wdfundingToolbox-sticky",main_articles_feed:".cr0wdfundingToolbox-article-main-feed"},ee=function(e,t){var n,o,r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,c=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=document.querySelectorAll(".cr0wdfundingToolbox-sidebar"),s=document.getElementById("cr0wdfundingToolbox-fixed"),u=document.getElementById("cr0wdfundingToolbox-leaderboard"),l=document.getElementById("cr0wdfundingToolbox-popup"),d=document.getElementById("cr0wdfundingToolbox-locked"),f=(document.getElementById("cr0wdfundingToolbox-article"),document.getElementById("cr0wdfundingToolbox-custom")),p=document.getElementById("cr0wdfundingToolbox-landing"),m=document.getElementById("cr0wdfundingToolbox-dtv-static-desktop"),y=document.getElementById("cr0wdfundingToolbox-dtv-static-mobile"),h=document.querySelectorAll(".cr0wdfundingToolbox-dtv-dynamic"),v=document.getElementById("cr0wdfundingToolbox-sticky"),g=document.querySelectorAll(".cr0wdfundingToolbox-article-main-feed"),w=!0,b=Number(localStorage.getItem(Z)),S=!1,_=document.createElement("script"),L=document.createTextNode(Ot(e.response[jt()]));switch(_.appendChild(L),!l&&location.href.includes("podpora.postoj.sk")&&((l=document.createElement("div")).setAttribute("id","cr0wdfundingToolbox-popup"),document.body.appendChild(l)),e.widget_type.method){case"sidebar":null!=i[0]&&i.forEach((function(n){n.innerHTML=oe(e.response[jt()],a,t),n.appendChild(_),ae(t,n),At(b,e.widget_id,n,e.campaign_id),w=!1}));break;case"leaderboard":null!==u&&(u.innerHTML=oe(e.response[jt()],a,t),u.appendChild(_),ae(t,u),At(b,e.widget_id,u,e.campaign_id),w=!1);break;case"dtv_static":if((window.innerWidth>0?window.innerWidth:screen.width)<768){if(null!==y){if(e.response[jt()].includes('class="newsletter-type"')&&Wt()){var k=JSON.parse(localStorage.getItem("userPageData")),E=e.response[jt()].split('class="newsletter-type"')[1].split(">")[0].split('value="')[1].split('"')[0],q=k?k.activeNewslettersName:[];if(q&&q.length>0&&q.some((function(e){return e===E})))return null}y.innerHTML=oe(e.response[jt()],a,t),y.appendChild(_),ae(t,y),At(b,e.widget_id,y,e.campaign_id),w=!1}}else if(null!==m){if(e.response[jt()].includes('class="newsletter-type"')&&Wt()){var A=JSON.parse(localStorage.getItem("userPageData")),T=e.response[jt()].split('class="newsletter-type"')[1].split(">")[0].split('value="')[1].split('"')[0],x=A?A.activeNewslettersName:[];if(x&&x.length>0&&x.some((function(e){return e===T})))return null}m.innerHTML=oe(e.response[jt()],a,t),m.appendChild(_),ae(t,m),At(b,e.widget_id,m,e.campaign_id),w=!1}break;case"dtv_dynamic":null!==h&&h.forEach((function(n){var o=n.closest(".
2newscast-article")||n.closest(".shortnews-article")||n;o.innerHTML=oe(e.response[jt()],a,t),o.appendChild(_),o.className="cr0wdfundingToolbox-dtv-dynamic",o.id="cr0wdfundingToolbox-dtv-dynamic",ae(t,o),At(b,e.widget_id,o,e.campaign_id),w=!1}));break;case"landing":null!=p&&(p.innerHTML=e.response[jt()],p.appendChild(_),At(b,e.widget_id,p,e.campaign_id),ae(t,p),w=!1,function(){var e=window.location.search,t="periodicity=";if(e.includes(t)){var n=e.split(t)[1].split("&")[0];"one-time"===n&&document.getElementById("cft--monetization--one-step--periodicity--one-time").click(),"yearly"===n&&document.getElementById("cft--monetization--one-step--periodicity--yearly")&&document.getElementById("cft--monetization--one-step--periodicity--yearly").click()}}(),1===(r=document.querySelectorAll(".cft--monetization--one-step--periodicity label")).length&&r[0].click(),function(){var e=window.location.search,t="suma=",n=!1;if(e.includes(t)){var o=e.split(t)[1].split("&")[0];if(document.querySelectorAll(".cft--monatization--donation-button").forEach((function(e){e.querySelector('input[value="'+o+'"]')&&(e.click(),n=!0)})),!n){var r=document.querySelectorAll(".cft--monatization--donation-input-price");r&&r.forEach((function(e){e.value=o,e.click()}))}}}(),localStorage.removeItem("donationFinished"),localStorage.removeItem("cft__did_not_left_thanks_to_widget"),"function"==typeof openTrustPayFromUrl&&openTrustPayFromUrl());break;case"fixed":if(null!=s)if(e.scroll[jt()].is_set){s.style.opacity=0,s.style.transition="opacity .5s";var I=document.querySelector(".article-detail--content")?document.querySelector(".article-detail--content").offsetHeight:document.body.offsetHeight;document.addEventListener("scroll",(function n(){100*window.scrollY/I>=e.scroll[jt()].percentage&&(ne(s,e,_,b,a,t),w=!1,document.removeEventListener("scroll",n))}))}else ne(s,e,_,b,a,t),w=!1;break;case"popup":var P=window.location.href.includes("/moj-ucet");if(window.location.search.includes("showPopupForNotSubscribed=1")&&(Qt(K),Qt("cft-fixed-time")),P)null!==l&&(l.style.display="none",l.innerHTML=e.response[jt()],ae(t,l),l.appendChild(_),null!==document.querySelector(".cr0wdWidgetContent--closeWidget")&&(Lt(l,e.widget_id),document.querySelector(".cr0wdWidgetContent--closeWidget").style.cursor="pointer"));else if(null!=l)if(e.scroll[jt()].is_set){l.style.opacity=0,l.style.transition="opacity .5s";var B=document.querySelector(".article-detail--content")?document.querySelector(".article-detail--content").offsetHeight:document.body.offsetHeight;document.addEventListener("scroll",(function n(){100*(window.scrollY+window.innerHeight)/B>=e.scroll[jt()].percentage&&(te(l,e,b,S,_,!0,a,t),w=!1,document.removeEventListener("scroll",n))}))}else 1==e.mouseout.desktop?document.addEventListener("mousemove",(function n(o){o.clientY<=3&&(location.href.includes("podpora.postoj.sk")&&"1"===localStorage.getItem("donationFinished")||(te(l,e,b,S,_,!0,a,t),w=!1,document.removeEventListener("mousemove",n)))})):te(l,e,b,S,_,!1,a,t);break;case"locked":if(null!=d){if(e.response[jt()].includes('id="scripts--locked">')){var C=document.createElement("script");if(e.response[jt()].includes("previewScripts")){var j=e.response[jt()],O=j.indexOf("previewScripts"),N=Math.max(0,O-30);j.substring(N,N+100),(j.match(/previewScripts/g)||[]).length;C.innerHTML=e.response[jt()].split('class="previewScripts"')[1].split("<\/script>")[0]}document.body.appendChild(C),d.appendChild(_),xt(oe(e.response[jt()],a).split('id="scripts--locked">')[0]+"</div>",e.locked_position[jt()],t)}else xt(oe(e.response[jt()],a),e.locked_position[jt()],t);(o=document.getElementById("cft--widgetLogin--continue-with-email"))&&(o.removeEventListener("click",uo),o.addEventListener("click",uo)),zn(),(n=document.getElementById("cft--widgetLogin--backButton"))&&(n.removeEventListener("click",so),n.addEventListener("click",so)),function(){var e=document.getElementById("cft--widgetLogin--login");e&&(e.removeEventListener("click",lo),e.addEventListener("click",lo))}(),function(){var e=document.getElementById("cft--widgetLogin--register");e&&(e.removeEventListener("click",fo),e.addEventListener("click",fo));var t=document.querySelector('form[name="cft-widgetLogin-step-2-register"] input[name="cft-new-password"]');t&&t.addEventListener("input",(function(e){Kn(e,'form[name="cft-widgetLogin-step-2-register"] input[name="cft-new-password"]',"cft--widgetLogin--register")}));var n=document.querySelector('form[name="cft-widgetLogin-step-2-register"] input[name="cft-repeat-password"]');n&&n.addEventListener("input",(function(e){n.parentElement.classList.remove("error")}));var o=document.querySelector('form[name="cft-widgetLogin-step-2-register"] input[name="cft-agree"]');o&&o.addEventListener("change",(function(){o.parentElement.classList.remove("error")}))}(),function(){var e=document.getElementById("cft--widgetLogin--forget-password");e&&(e.removeEventListener("click",io),e.addEventListener("click",io))}(),function(){var e=document.getElementById("cft--widgetLogin--login-with-link");e&&(e.removeEventListener("click",po),e.addEventListener("click",po))}(),In(),At(b,e.widget_id,d,e.campaign_id),w=!1,function(){var e=document.getElementById("cr0wdWidgetContent-locked");if(Zt("cft-newsletter-subscribe")&&e&&e.querySelector(".cft--newsletter--email")){e.style.height="auto",e.style.background="transparent",e.style.padding="0",e.innerHTML='<div style="background-color: #cde7fe; color: #031f5e; padding: 15px; text-align:center;font-size: 16px;width:100%;min-height: 80px;
2display: flex;flex-direction: column;align-items: center;"><svg xmlns="http://www.w3.org/2000/svg" id="prefix__Icon-envelope2" width="48" height="34" viewBox="0 0 48 34"> <g id="prefix__Postoj-Ucet-Update" transform="translate(-599 -1012)"> <path id="prefix__Combined-Shape" d="M644 1012a3 3 0 013 3v28a3 3 0 01-3 3h-42a3 3 0 01-3-3v-28a3 3 0 013-3zm0 2h-42a1 1 0 00-1 1v27.438l12.97-12.968 1.061 1.061-13.4 13.4a1 1 0 00.368.07h42a1 1 0 00.368-.07l-13.4-13.4 1.061-1.061L645 1042.439V1015a1 1 0 00-1-1zm-1.469 1.914l.937 1.171-20.474 16.38-19.97-16.385.951-1.16 19.03 15.615z" style="fill:#031f5e"/> </g></svg><h2 style="color: #031f5e">PotvrÄte registráciu vo vaÅ¡om emaile</h2><div>Na vami zadaný email sme zaslali odkaz na potvrdenie registrácie.<br />NepriÅ¡iel vám email? Skúste sa <span class="cft--only-logged-out cr0wdfundingToolbox--login" style="color: #3874cf">registrovaÅ¥ znova</span>.</div></div>';var t=document.querySelectorAll(".cr0wdfundingToolbox--login");null!==t[0]&&t.forEach((function(e){e.style.cursor="pointer",e.addEventListener("click",(function(e){e.preventDefault(),Fn(document.querySelector("#cft--account-popup"),"default")}))}))}}()}break;case"article_advanced":case"article":!function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;e=e.replaceAll("\x3c!----\x3e","");var i,s,u,l=document.createElement("div");l.innerHTML=e,l.childNodes.forEach((function(e){"TOP"===e.dataset.position&&(i=e),"MIDDLE"===e.dataset.position&&(s=e),"BOTTOM"===e.dataset.position&&(u=e)}));var d=document.getElementById("cr0wdfundingToolbox-locked");if(null===d)return;var f=d.parentNode;if(i){f.insertBefore(i,f.firstChild),i.id="cr0wdfundingToolbox-article_advanced",i.classList.add("cr0wdfundingToolbox-article_advanced"),ae(a,i),At(t,n,i,o);var p=document.createTextNode(Ot(e));if(p){var m=document.createElement("script");m.appendChild(p),i.appendChild(m)}}if(u){f.appendChild(u,f),u.id="cr0wdfundingToolbox-article_advanced",u.classList.add("cr0wdfundingToolbox-article_advanced"),r||u.classList.add("cft--d-none"),ae(a,u),At(t,n,u,o);var y=document.createTextNode(Ot(e));if(y){var h=document.createElement("script");h.appendChild(y),u.appendChild(h)}}if(s&&r){for(var v=f.querySelectorAll(":scope > p"),g=c?"paragraphs"==c.unit?c.value:Math.floor(v.length*c.value/100):Math.floor(v.length/2),w=v[g],b=0;!It(w)&&b<g;)w=v[g+ ++b];if(w===v[v.length-1])return;try{f.insertBefore(s,w),s.id="cr0wdfundingToolbox-article_advanced",s.classList.add("cr0wdfundingToolbox-article_advanced"),ae(a,s),At(t,n,s,o);var S=document.createTextNode(Ot(s.outerHTML));if(S){var _=document.createElement("script");_.appendChild(S),s.appendChild(_)}}catch(e){console.warn("Error while inserting middle article widget, inserting at the end of content",e)}}}(oe(e.response[jt()],a),localStorage.getItem(Z),e.widget_id,e.campaign_id,c,t,e.show_after_paragraph[jt()]),w=!1,document.getElementById("cr0wdWidgetContent-article_advanced")&&(document.getElementById("cr0wdWidgetContent-article_advanced").style.marginBottom="15px"),de();break;case"custom":null!=f&&(f.innerHTML=oe(e.response[jt()],a))&&f.appendChild(_)&&At(b,e.widget_id,f,e.campaign_id),ae(t,f),w=!1;break;case"main_articles_feed":g&&g.length>0&&g.forEach((function(n){n.innerHTML=oe(e.response[jt()],a,t),n.appendChild(_),ae(t,n),At(b,e.widget_id,n,e.campaign_id),w=!1,n.classList.remove("cft--d-none")}));break;case"sticky":if(null!=v){if(v.style.opacity=.001,v.style.display="none",e.response[jt()].includes('class="newsletter-type"')&&Wt()){var M=JSON.parse(localStorage.getItem("userPageData")),R=e.response[jt()].split('class="newsletter-type"')[1].split(">")[0].split('value="')[1].split('"')[0],D=M?M.activeNewslettersName:[];if(D&&D.length>0&&D.some((function(e){return e===R})))return null}v.innerHTML=oe(e.response[jt()],a,t),v.appendChild(_),v.style.transition="opacity 0.5s ease",ae(t,v),At(b,e.widget_id,v,e.campaign_id),w=!1;var H=document.getElementById("cft--sticky-container");null!==H&&(setTimeout((function(){v.style.display="block"}),100),setTimeout((function(){H.style.right="-"+document.getElementById("cr0wdWidgetContent-sticky").offsetWidth+"px",v.
2style.opacity=1}),1e3),e.sticky_open[jt()]&&setTimeout((function(){document.getElementById("cft--sticky-icon--closed").click()}),2e3),null!==document.querySelector(".cr0wdWidgetContent--closeWidget")&&(Lt(v,e.widget_id,!0),document.querySelector(".cr0wdWidgetContent--closeWidget").style.cursor="pointer"))}}e.intents&&e.intents[jt()]&&ce("apple-pay-button","google-pay-button",e.intents[jt()],null,e.widget_id),function(e){var t=null==e?void 0:e.progressbar_settings;if(t){var n=document.querySelectorAll(".cft-progress-bar-"+e.widget_id);if(!n||!n.length)return;n.forEach((function(n){if(n){var o=t;if(10==e.widget_type.id){var r=n.closest("[data-position]");if(r){var a=r.dataset.position;o=t[a]}}var c=1500,i=Number((parseFloat(o.progress)||0).toFixed(0)),s=Math.max(Number(o.progress_target)||0,0),u=null!==o.progress_percent&&void 0!==o.progress_percent?Number(o.progress_percent)||0:s>0?i/s*100:0,l=Math.max(0,Math.min(100,u)),d=function(e){return e*(2-e)},f=n.querySelectorAll(".cft_progressbar"),p=n.querySelectorAll(".cft_current-value"),m=n.querySelectorAll(".cft_final-value"),y=n.querySelectorAll(".cft_current-percentage"),h=n.querySelectorAll(".cft_days-to-end"),v=n.querySelectorAll(".cft_do-ukoncenia"),g=n.closest(".cft--body"),w=g?g.querySelectorAll(".cft_money-missing"):null;if(m&&m.length){var b,S=vt(m);try{for(S.s();!(b=S.n()).done;){b.value.innerHTML=Nt(s)}}catch(e){S.e(e)}finally{S.f()}}if(h&&h.length){var _,L=vt(h);try{for(L.s();!(_=L.n()).done;){var k;_.value.innerHTML=null!==(k=o.days_info)&&void 0!==k?k:""}}catch(e){L.e(e)}finally{L.f()}}if(v&&v.length)if(o.show_do_ukoncenia){var E,q=vt(v);try{for(q.s();!(E=q.n()).done;){E.value.style.removeProperty("display")}}catch(e){q.e(e)}finally{q.f()}}else{var A,T=vt(v);try{for(T.s();!(A=T.n()).done;){A.value.style.display="none"}}catch(e){T.e(e)}finally{T.f()}}if(w&&w.length){var x,I=s>i?Number(s)-Number(i):0,P=vt(w);try{for(P.s();!(x=P.n()).done;){x.value.innerHTML=Nt(I)}}catch(e){P.e(e)}finally{P.f()}}var B=performance.now(),C=function(e){var t=e-B,n=Math.min(1,t/c),o=d(n);if(f&&f.length){var r,a=l*o+"%",s=vt(f);try{for(s.s();!(r=s.n()).done;){r.value.style.width=a}}catch(e){s.e(e)}finally{s.f()}}if(p&&p.length){var m,h=Math.floor(i*o),v=vt(p);try{for(v.s();!(m=v.n()).done;){m.value.innerHTML=Nt(h)}}catch(e){v.e(e)}finally{v.f()}}if(y&&y.length){var g,w=Math.round(u*o),b=vt(y);try{for(b.s();!(g=b.n()).done;){g.value.innerHTML=w+" %"}}catch(e){b.e(e)}finally{b.f()}}if(n<1)requestAnimationFrame(C);else{if(f&&f.length){var S,_=vt(f);try{for(_.s();!(S=_.n()).done;){S.value.style.width=l+"%"}}catch(e){_.e(e)}finally{_.f()}}if(p&&p.length){var L,k=vt(p);try{for(k.s();!(L=k.n()).done;){L.value.innerHTML=Nt(i)}}catch(e){k.e(e)}finally{k.f()}}if(y&&y.length){var E,q=vt(y);try{for(q.s();!(E=q.n()).done;){E.value.innerHTML=Math.round(u)+" %"}}catch(e){q.e(e)}finally{q.f()}}}};if(f&&f.length){var j,O=vt(f);try{for(O.s();!(j=O.n()).done;){j.value.style.width="0%"}}catch(e){O.e(e)}finally{O.f()}}if(p&&p.length){var N,M=vt(p);try{for(M.s();!(N=M.n()).done;){N.value.innerHTML="0"}}catch(e){M.e(e)}finally{M.f()}}if(y&&y.length){var R,D=vt(y);try{for(D.s();!(R=D.n()).done;){R.value.innerHTML="0 %"}}catch(e){D.e(e)}finally{D.f()}}requestAnimationFrame(C)}}))}}(e),w&&setTimeout((function(){dn()}),2e3),fe(),le(),Et(),yt(),ht()},te=function(e,t,n,o,r){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,i=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;!t.audio_available_articles||document.querySelector(".speech-button--main")?(setTimeout((function(){if(null!=e){if(o=!0,t.response[jt()].includes('class="newsletter-type"')&&Wt()){var a=JSON.parse(localStorage.getItem("userPageData")),s=t.response[jt()].split('class="newsletter-type"')[1].split(">")[0].split('value="')[1].split('"')[0],u=a?a.activeNewslettersName:[];if(u&&u.length>0&&u.some((function(e){return e===s})))return null}e.innerHTML=oe(t.response[jt()],c,i),ae(i,e),e.style.opacity=1,e.appendChild(r),location.href.includes("podpora.postoj.sk")||At(n,t.widget_id,e,t.campaign_id),3===t.widget_id&&(e.style.display="none"),Dt(),le()}null!==document.querySelector(".cr0wdWidgetContent--closeWidget")&&(Lt(e,t.widget_id),document.querySelector(".cr0wdWidgetContent--closeWidget").style.cursor="pointer"),Wt()&&document.querySelector(".cft--newsletter--email-title")&&"none"===document.querySelector(".cft--newsletter--email-title").style.display&&!document.querySelector(".cft--newsletter--email-title").innerText.includes("email:")?document.querySelector(".cft--newsletter--email-title").style.display="block":Wt()&&document.querySelector(".cft--newsletter--email-title")&&(document.querySelector(".cft--newsletter--email-title").innerHTML=""),yt()}),a?50:1500),Pt("popup")):document.addEventListener("audioLoaded",(function(s){s.detail&&s.detail.status&&(setTimeout((function(){if(null!=e){if(o=!0,t.response[jt()].includes('class="newsletter-type"')&&Wt()
2){var a=JSON.parse(localStorage.getItem("userPageData")),s=t.response[jt()].split('class="newsletter-type"')[1].split(">")[0].split('value="')[1].split('"')[0],u=a?a.activeNewslettersName:[];if(u&&u.length>0&&u.some((function(e){return e===s})))return null}e.innerHTML=oe(t.response[jt()],c,i),ae(i,e),e.style.opacity=1,e.appendChild(r),location.href.includes("podpora.postoj.sk")||At(n,t.widget_id,e,t.campaign_id),3===t.widget_id&&(e.style.display="none"),Dt()}null!==document.querySelector(".cr0wdWidgetContent--closeWidget")&&(Lt(e,t.widget_id),document.querySelector(".cr0wdWidgetContent--closeWidget").style.cursor="pointer"),Wt()&&document.querySelector(".cft--newsletter--email-title")&&"none"===document.querySelector(".cft--newsletter--email-title").style.display&&!document.querySelector(".cft--newsletter--email-title").innerText.includes("email:")?document.querySelector(".cft--newsletter--email-title").style.display="block":Wt()&&document.querySelector(".cft--newsletter--email-title")&&(document.querySelector(".cft--newsletter--email-title").innerHTML=""),yt()}),a?50:1500),Pt("popup"))}))},ne=function(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;e.innerHTML=oe(t.response[jt()],r,a),e.style.opacity=1,At(o,t.widget_id,e,t.campaign_id),e.appendChild(n);var c=!1,i=document.querySelector("#cr0wdfundingToolbox-fixed .cft--background");if("0px"===i.style.top||0===i.style.top){c=!0,i.style.position="relative";var s=i.offsetHeight;document.body.setAttribute("style","margin-top: "+s+"px")}var u=document.querySelector(".cr0wdWidgetContent--closeWidget");if(null!==u){var l=document.querySelector(".cft--fixed--minimized");l&&u.replaceChildren(ln(u.style.color)),u.addEventListener("click",(function(){l?"none"==l.style.display?(document.querySelector(".cft--fixed--main").style.display="none",l.style.display="block",u.style.transform="rotate(180deg)"):(document.querySelector(".cft--fixed--main").style.display="block",l.style.display="none",u.style.transform="rotate(0deg)"):(e.style.display="none",c&&document.body.setAttribute("style","margin-top: 0"),kt(Zt(wt),t.widget_id))}))}ae(a,e),Pt("fixed")},oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n="[CFT_ARTICLE_AUTHOR]",o="[CFT_ARTICLE_AUTHOR_WITH_PHOTO]",r="[CFT_ARTICLE_AUTHOR_PHOTO]",a="[CFT_USER_FNAME]",c="[CFT_USER_LNAME]",i="[CFT_USER_VS]",s="[CFT_USER_NP_AMOUNT]",u="[CFT_USER_ARTICLES_READ_TODAY]",l="[CFT_USER_ARTICLES_READ_WEEK]",d="[CFT_USER_ARTICLES_READ_MONTH]",f="Redakcia Postoja",p=window.location.host.includes("blog"),m=JSON.parse(localStorage.getItem($));if(!(e.includes(n)||e.includes(o)||e.includes(a)||e.includes(c)||e.includes(i)||e.includes(u)||e.includes(l)||e.includes(d)||e.includes(r)))return e;var y=document.querySelectorAll(".detail-article-author-name").length||1,h=document.querySelector('input[name="cft--readLater--data"]')?JSON.parse(document.querySelector('input[name="cft--readLater--data"]').value):null,v=1===y&&h&&h.author&&!p?h.author:f;if((e=e.replaceAll(n,v)).includes(o))if(y>1&&(e=e.replaceAll(o,f)),!h||!h.author_image_id||y>1)e=e.replaceAll(o,"");else{var g='\n <span class="author-box"><span class="author-box-photo">\n <img src="'.concat(j).concat(h.author_image_id,'/conversions/square.webp" alt="').concat(h.author,'">\n </span>\n <span class="author-box-name">').concat(h.author,"</span>\n </span>");e=e.replaceAll(o,g)}if(e.includes(r))if(y>1&&(e=e.replaceAll(r,"")),!h||!h.author_image_id||y>1)e=e.replaceAll(r,"");else{var w='\n <span class="author-box"><span class="author-box-only-photo">\n <img src="'.concat(j).concat(h.author_image_id,'/conversions/square.webp" alt="').concat(h.author,'">\n </span>\n </span>');e=e.replaceAll(r,w)}return e.includes(a)&&(e=m&&m.user&&m.user.user_detail&&""!==m.user.user_detail.first_name?e.replaceAll(a,m.user.user_detail.first_name):e.replaceAll(a,"")),e.includes(c)&&(e=m&&m.user&&m.user.user_detail&&""!==m.user.user_detail.last_name?e.replaceAll(c,m.user.user_detail.last_name):e.replaceAll(c,"")),e.includes(i)&&(e=m&&m.variable_symbol?e.replaceAll(i,m.variable_symbol.variable_symbol):e.replaceAll(i,"")),e.includes(s)&&(e=m&&m.last_not_paid?e.replaceAll(s,m.last_not_paid.amount):e.replaceAll(s,"")),e.includes(u)&&(e=t&&t.today?e.replaceAll(u,t.today):e.replaceAll(u,"")),e.includes(l)&&(e=t&&t.week?e.replaceAll(l,t.week):e.replaceAll(l,"")),e.includes(d)&&(e=t&&t.month?e.replaceAll(d,t.month):e.replaceAll(d,"")),e},re=function(e,t){if(t&&t.widgets&&t.widgets.length>0){var n=!0;
2t.widgets.forEach((function(e){"locked"===e.widget_type.method&&(n=!1)}));var o=[];t.widgets.forEach((function(e){var t=Q[e.widget_type.method];t&&document.querySelector(t)&&!o.includes(e.widget_type.method)&&o.push(e.widget_type.method)}));var r=new CustomEvent("cftInfoForAudio",{detail:{widgetTypes:o}});document.dispatchEvent(r),t.widgets.forEach((function(e){ee(e,t.newsletter_subscribers_count,t.read_articles,n)})),Rt(),Dt(),vn(),t.active_donors&&function(e){var t=document.querySelectorAll(".cft-progress-bar-hardcoded");if(!t)return;t.forEach((function(t){var n=t.querySelector(".cft_progress-bar");if(n){var o=t.querySelector(".cft_active-donors"),r=o?o.querySelector("strong"):null,a=parseInt(e,10)||0,c=1,i=0,s=null;if(o&&o.dataset.campaign){var u=Ht(o.dataset.campaign);if(u){var l=parseInt(u.progress_start_value,10)||0;a=(parseInt(u.value)||0)+(parseInt(u.offset)||0)+l,c=parseInt(u.target)||1,s=null===u.progress_percent||void 0===u.progress_percent?null:Number(u.progress_percent)||0;var d=t.querySelector(".cft_active-donors-target");d&&(d.innerText=Nt(c));var f=t.querySelectorAll(".cft_days-to-end");if(f&&f.length){var p,m=vt(f);try{for(m.s();!(p=m.n()).done;){var y;p.value.innerHTML=null!==(y=u.days_info)&&void 0!==y?y:""}}catch(e){m.e(e)}finally{m.f()}}var h=t.querySelectorAll(".cft_do-ukoncenia");if(h&&h.length){var v,g=vt(h);try{for(g.s();!(v=g.n()).done;){var w=v.value;u.show_do_ukoncenia?w.style.removeProperty("display"):w.style.display="none"}}catch(e){g.e(e)}finally{g.f()}}}}else{var b=t.querySelector(".cft_active-donors-target");if(!b)return;c=parseInt(b.innerText,10)||1,b.innerText=Nt(c)}o&&(i=parseInt(o.innerText,10)||0);var S=a-i,_=Math.round(null!==s?s:a/c*100),L=Math.max(0,Math.min(100,_)),k=t.querySelector(".cft_progress-percentage");if(k)k.querySelector("strong");t.classList.remove("cft--d-none");var E=1500,q=performance.now(),A=function(e){var t=e-q,c=Math.min(1,t/E),s=c*(2-c),u=L*s;if(n.style.width=u+"%",o){var l=Math.round(i+S*s);r?r.innerText=Nt(l):o.innerText=Nt(l)}if(k){var d=Math.round(_*s),f=k.querySelector("strong");f?f.innerText=d+" %":k.innerText=d+" %"}if(c<1)requestAnimationFrame(A);else if(n.style.width=L+"%",o&&(r?r.innerText=Nt(a):o.innerText=Nt(a)),k){var p=k.querySelector("strong");p?p.innerText=_+" %":k.innerText=_+" %"}};requestAnimationFrame(A)}}))}(t.active_donors)}else{dn(),yt(),Rt(),Dt();var a=new CustomEvent("cftInfoForAudio",{detail:{widgetTypes:[]}});document.dispatchEvent(a)}},ae=function(e,t){document.querySelectorAll(".cft-newsletter-replacer")&&document.querySelectorAll(".cft-newsletter-replacer").forEach((function(t){t.innerHTML=e[t.dataset.newsletterType]?yn(e[t.dataset.newsletterType]):"mnoho tisÃc"}))},ce=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6],i="."+e+".widget-id-"+r,s="."+t+".widget-id-"+r;if(c&&console.log("Initializing instant monetization buttons with parameters:",{apSelector:e,gpSelector:t,trustPayIntent:n,amount:o,widget_id:r,periodicity:a}),"undefined"==typeof TrustPayApi||!document.querySelector(i)&&!document.querySelector(s))return document.querySelector(".cft--monetization--payment-buttons.widget-id-"+r)&&document.querySelector(".cft--monetization--payment-buttons.widget-id-"+r).classList.add("cft--d-none"),void console.error("TrustPayAPI is not loaded");var u=function(e){var t;if(!e||!e.secrets)return null===(t=document.querySelector(".cft--monetization--payment-buttons.widget-id-"+r))||void 0===t||t.classList.add("cft--d-none"),void console.error("Missing trustPayIntent after fetch");var n,u,l=window.location.hostname,d=new TrustPayApi(e.secrets);r&&String(r).startsWith("disqus")&&(d.addEventListener("modalopen",(function(){document.body.style.overflow="",document.body.style.touchAction=""})),d.addEventListener("modalclose",(function(){document.documentElement.classList.contains("dsp-scroll-lock")&&(document.body.style.overflow="hidden",document.body.style.touchAction="none")})));try{n=d.createComponent("applePay",{initiativeContext:l,style:{"--apple-pay-button-width":"100%;","--apple-pay-button-height":"30px;","--apple-pay-button-border-radius":"4px;","--apple-pay-button-padding":"5px 0;"},buttonStyle:"black",buttonType:"support",buttonLocale:"sk-SK",preferences:["requireCustomerEmail"],onPaymentProcessed:function(t){if(t&&0==t.status){if(console.log("[ApplePay] Payment result:",t),null===t.customerData.email||""===t.customerData.email)return void console.error("[ApplePay] Payment email is empty:",t);var n;ue(e.instanceId,t.customerData.email.toLowerCase()),r&&String(r).startsWith("disqus")&&document.dispatchEvent(new CustomEvent("cftWalletPaymentSuccess",{detail:{widget_id:r}})),null===(n=document.querySelector(i))||void 0===n||null===(n=n.closest('[id^="cr0wdfundingToolbox-"]'))||void 0===n||n.classList.add("cft--d-none")}else console.error("[ApplePay] Payment failed:",t),r&&String(r).startsWith("disqus")&&document.dispatchEvent(new CustomEvent("cftWalletPaymentError",{detail:{widget_id:r}}))},paymentRequest:e.appleInitResultData})}catch(e){console.error("Apple Pay error:",e),se(i)}try{u=d.createComponent("googlePay",{buttonColor:"black",buttonRadius:"4",buttonType:"plain",buttonLocale:"sk",buttonSizeMode:"fill",preferences:["requireCustomerEmail"],onPaymentProcessed:function(t){if(t&&0==t.status){if(console.log("[GooglePay] Payment result:",t),null===t.customerData.email||""===t.customerData.email)return void console.error("[GooglePay] Payment email is empty:",t);var n;ue(e.instanceId,t.customerData.email.toLowerCase()),r&&String(r).startsWith("disqus")&&document.dispatchEvent(new CustomEvent("cftWalletPaymentSuccess",{detail:{widget_id:r}})),null===(n=document.querySelector(s))||void 0===n||null===(n=n.closest('[id^="cr0wdfundingToolbox-"]'))||void 0===n||n.classList.add("cft--d-none")}else console.error("[GooglePay] Payment failed:",t),r&&String(r).startsWith("disqus")&&document.dispatchEvent(new CustomEvent("cftWalletPaymentError",{detail:{widget_id:r}}))},paymentRequest:e.googleInitResultData,placement:"trustpay"})}catch(e){console.error("Google Pay error:",e),se(s)}var f=document.querySelector(i),p=document.querySelector(s),m=document.querySelector(".cft--monetization--payment-buttons.widget-id-"+r),y=function(){c&&(console.log("apEl classlist:",f?f.classList:"apEl not found"),console.log("gpEl classlist:",p?p.classList:"gpEl not found")),f.classList.contains("cft--flex-hidden")&&p.classList.contains("cft--flex-hidden")?(c&&console.log("Both Apple Pay and Google Pay buttons are hidden"),null==m||m.classList.add("cft--d-none")):(c&&console.log("At least one of the payment buttons is visible"),null==m||m.classList.remove("cft--d-none"))};W(i),W(s),n&&n.isSupported().then((function(e){e?(n.mount(i),f.classList.remove("cft--flex-hidden"),c&&console.log("Apple Pay is supported and mounted, classlist:",f.classList)):(console.log("Apple Pay is not supported"),se(i),y())})).catch((function(e){console.error("Apple Pay isSupported error:",e),se(i),y()})),u&&u.isSupported().then((function(e){e?(u.mount(s),p.classList.remove("cft--flex-hidden"),c&&console.log("Google Pay is supported and mounted, classlist:",p.classList)):(console.log("Google Pay is not supported"),se(s),y())})).catch((function(e){console.error("Google Pay isSupported error:",e),se(s),y()})),c&&console.log("Final container visibility check"),setTimeout((function(){y()}),1e3);try{ie(i,s,o,a)}catch(e){console.warn("Error updating other buttons redirects:",e)}};if(!n){var l=Zt(wt),d=new XMLHttpRequest;d.open("POST",x+"donation/trustpay/intent",!0);var f=[{name:"Content-type",value:"application/json; charset=utf8"}];
2(f=Vt(f)).forEach((function(e){return d.setRequestHeader(e.name,e.value)}));var p={amount:o,widget_id:r,user_cookie:l,periodicity:a,is_instant:!0};return d.onload=function(){if(200===d.status){var e,t=JSON.parse(d.responseText||"{}");c&&console.log("TrustPay intent fetch response:",t),u(null!==(e=null==t?void 0:t.trustPayIntent)&&void 0!==e?e:null)}else{var n;console.error("Intent fetch failed, status:",d.status),null===(n=document.querySelector(".cft--monetization--payment-buttons.widget-id-"+r))||void 0===n||n.classList.add("cft--d-none")}},d.onerror=function(){var e;console.error("Intent fetch error"),null===(e=document.querySelector(".cft--monetization--payment-buttons.widget-id-"+r))||void 0===e||e.classList.add("cft--d-none")},void d.send(JSON.stringify(p))}u(n)},ie=function(e,t,n,o){var r=document.querySelector(e),a=document.querySelector(t),c=r?r.closest(".cft--body"):a?a.closest(".cft--body"):null;if(c){var i=c.querySelectorAll("a");i&&0!=i.length&&i.forEach((function(e){if(e.href.includes("podpora.postoj.sk")){n||(n=c.querySelector(".cft--monatization--donation-button--monthly.active input").value);var t=new URL(e.href);t.searchParams.set("suma",n),o&&t.searchParams.set("periodicity",o),e.href=t.toString()}}))}},se=function(e){document.querySelector(e).classList.add("cft--flex-hidden")},ue=function(e,t){var n=new XMLHttpRequest;n.open("POST",x+"donation/wallet-email",!0),n.setRequestHeader("Content-Type","application/json"),n.onreadystatechange=function(){n.readyState===XMLHttpRequest.DONE&&(200===n.status?console.log("Email updated successfully"):console.error("Error updating email"))},n.send(JSON.stringify({instance_id:e,email:t}))},le=function(){var e=document.querySelectorAll(".cft--countdown");if(e.length){var t=function(e,t){var n=X(t,3),o=n[0],r=n[1],a=n[2];return 1===e?o:e>=2&&e<=4?r:a};e.forEach((function(e){e._cftIntervalId&&(clearInterval(e._cftIntervalId),e._cftIntervalId=null);var n=function(t){return e.querySelector(t)},o={dNum:n(".cft--countdown--days .cft--countdown--number"),dLbl:n(".cft--countdown--days .cft--countdown--label"),hNum:n(".cft--countdown--hours .cft--countdown--number"),hLbl:n(".cft--countdown--hours .cft--countdown--label"),mNum:n(".cft--countdown--minutes .cft--countdown--number"),mLbl:n(".cft--countdown--minutes .cft--countdown--label"),sNum:n(".cft--countdown--seconds .cft--countdown--number"),sLbl:n(".cft--countdown--seconds .cft--countdown--label")};if(o.dNum&&o.hNum&&o.mNum&&o.sNum){var r=e.getAttribute("data-target-date")||"",a=new Date(r);if(a instanceof Date&&!Number.isNaN(a.getTime())){var c=function(e,t){e&&e.textContent!==t&&(e.textContent=t)},i=function(){var n=new Date,r=a.getTime()-n.getTime();if(r<=0)return c(o.dNum,"00"),c(o.hNum,"00"),c(o.mNum,"00"),c(o.sNum,"00"),o.dLbl&&c(o.dLbl,"dnÃ"),o.hLbl&&c(o.hLbl,"hodÃn"),o.mLbl&&c(o.mLbl,"minút"),o.sLbl&&c(o.sLbl,"sekúnd"),void(e._cftIntervalId&&(clearInterval(e._cftIntervalId),e._cftIntervalId=null));var i=Math.floor(r/864e5),s=Math.floor(r%864e5/36e5),u=Math.floor(r%36e5/6e4),l=Math.floor(r%6e4/1e3);c(o.dNum,String(i).padStart(2,"0")),c(o.hNum,String(s).padStart(2,"0")),c(o.mNum,String(u).padStart(2,"0")),c(o.sNum,String(l).padStart(2,"0")),o.dLbl&&c(o.dLbl,t(i,["deÅ","dni","dnÃ"])),o.hLbl&&c(o.hLbl,t(s,["hodina","hodiny","hodÃn"])),o.mLbl&&c(o.mLbl,t(u,["minúta","minúty","minút"])),o.sLbl&&c(o.sLbl,t(l,["sekunda","sekundy","sekúnd"]))};i(),e._cftIntervalId=setInterval((function(){"visible"===document.visibilityState&&i()}),1e3);var s=new MutationObserver((function(){!document.body.contains(e)&&e._cftIntervalId&&(clearInterval(e._cftIntervalId),e._cftIntervalId=null,s.disconnect())}));s.observe(document.body,{childList:!0,subtree:!0})}else e.classList.add("cft--d-none")}else e.classList.add("cft--d-none")}))}},de=function(){var e=document.querySelectorAll(".highlight-on-scroll");if(0!==e.length){var t=document.createElement("div");t.className="cft-highlight-scroll-overlay",t.style.cssText="position:fixed;inset:0;pointer-events:none;z-index:9998;opacity:0;background:rgba(0,0,0,0.88);transition:opacity 0.15s;",document.body.appendChild(t),e.forEach((function(e){e.style.position="relative",e.style.zIndex="9999"}));var n=!1,o=function(){var r=window.innerHeight,a=r/2,c=1/0,i=!1,s=!0;if(e.forEach((function(e){var t=e.getBoundingClientRect();if(t.bottom>=0&&(s=!1),!(t.bottom<0||t.top>r)){i=!0;var n=Math.abs(t.top+t.height/2-a);n<c&&(c=n)}})),i&&(n=!0),n&&s)return t.style.opacity=0,window.removeEventListener("scroll",o),window.removeEventListener("resize",o),void 0;if(i){var u=.3*r,l=Math.max(0,c-50);t.style.opacity=.88*Math.max(0,1-l/u)}else t.style.opacity=0};window.addEventListener("scroll",o,{passive:!0}),window.addEventListener("resize",o,{passive:!0}),o()}},fe=function(){var e=document.querySelector(".subscribe-to-author-switcher");document.querySelectorAll(".cft--author-newsletter--subscribe").forEach((function(t){var n=t.closest(".cr0wdfundingToolbox-article_advanced");if(e&&e.dataset.author){var o=e.dataset.author;if(Zt("cft_logged")&&en()){var r,a=JSON.parse(localStorage.getItem("userPageData"));if((null!==(r=null==a?void 0:a.activeNewslettersName)&&void 0!==r?r:[]).includes("author-".concat(o)))return void(n&&n.classList.add("cft--d-none"))}t.dataset.subscribeListenerAdded||(t.dataset.subscribeListenerAdded="true",t.addEventListener("click",(function(){if(Zt("cft_logged")&&en()){t.style.pointerEvents="none",t.style.opacity="0.6";var e=t.innerText;t.innerText="PoÄkajte prosÃm...";var r=t.dataset.showId,a=x+"newsletter/subscribe-mail-with-register?type=author-".concat(o,"&showId=").concat(r);window.fetch(a,{method:"POST",headers:{Accept:"application/json",Authorization:"Bearer "+en()}}).then((function(e){return e.json()})).then((function(r){if(r&&r.unsubscribeHash){dt("ÃspeÅ¡ne ste sa prihlásili na odber autora.","success",!1,"toast--alert");var a=JSON.parse(localStorage.getItem("userPageData"));null!=a&&a.newsletters&&(a.newsletters["author-".concat(o)]=r.unsubscribeHash,localStorage.setItem("userPageData",JSON.stringify(a))),n&&n.classList.add("cft--d-none")}else dt("Nepodarilo sa prihlásiÅ¥ na odber autora. Skúste to, prosÃm, neskôr.","error",!1,"toast--alert"),t.innerText=e,t.style.pointerEvents="",t.style.opacity=""}))}else Dn(t)})))}else n&&n.classList.add("cft--d-none")}))};function pe(e){var t;null!==(t=document.querySelector('select[name="cft-telephone-prefix"]'))&&null!==N&&function(e){var t=[];for(var n in e)if(e.hasOwnProperty(n)){var o=e[n].indexOf("+")>-1?e[n]:"+"+e[n];t.push(n+" ("+o+")")}return t}
2(N).forEach((function(e){var n=document.createElement("option");n.value=e.split("(")[1].split(")")[0],n.text=e,e.indexOf("SK (+421")>-1&&(n.selected=!0),t.appendChild(n)})),e&&dt(e,"success"),function(){var e=[],t=(nn().email,Xt(x+"user-details",Vt(e)));null!==t&&(null!==t.user_details&&(rn('input[name="cft-firstName"]',t.user_details.first_name),rn('input[name="cft-lastName"]',t.user_details.last_name),rn('input[name="cft-street"]',t.user_details.street),rn('input[name="cft-house-number"]',t.user_details.house_number),on('select[name="cft-telephone-prefix"]',t.user_details.telephone_prefix),rn('input[name="cft-telephone"]',t.user_details.telephone),rn('input[name="cft-city"]',t.user_details.city),rn('input[name="cft-zip"]',t.user_details.zip),on('select[name="cft-country"]',t.user_details.country),n=t.user_details.country,null!==(o=document.querySelector('select[name="cft-country"]'))&&M.map((function(e){var t=document.createElement("option");t.value=e.name,t.text=e.name,(e.name===n||"SK"===e.code&&null==n)&&(t.selected=!0),o.appendChild(t)}))),function(){var e='form[name="cft-myAccountDetails"]',t=document.querySelector(e);t.addEventListener("submit",(function(n){if(n.preventDefault(),function(e){var t=!0;return e.querySelectorAll("input").forEach((function(n){var o=n.value.trim(),r=n.required,a=n.pattern;console.log(n.name,o,r,a);var c,i=n.parentElement;if(i.classList.remove("error"),r&&""===o)return i.classList.add("error"),void(t=!1);if("cft-telephone"!==n.name){if(o&&a)try{new RegExp("^".concat(a,"$")).test(o)||(i.parentElement.classList.add("error"),i.parentElement.querySelector(".error-message").innerText="Nesprávny formát",t=!1)}catch(e){console.warn("Invalid pattern on ".concat(n.name,":"),a)}}else if("+421"===(null===(c=e.querySelector('select[name="cft-telephone-prefix"]'))||void 0===c?void 0:c.value))/^(9\d{8}|[2-5]\d{7})$/.test(o)||(i.parentElement.classList.add("error"),i.parentElement.querySelector(".error-message").innerText="Nesprávny formát (mobil: 9XXXXXXXX, pevná: 2â5XXXXXXX)",t=!1);else if(o&&a)try{new RegExp("^".concat(a,"$")).test(o)||(i.parentElement.classList.add("error"),i.parentElement.querySelector(".error-message").innerText="Nesprávny formát",t=!1)}catch(e){console.warn("Invalid pattern on ".concat(n.name,":"),a)}})),t}(t)){var o={"cft-city":document.querySelector(e+' input[name="cft-city"]').value,"cft-country":document.querySelector(e+' select[name="cft-country"]').value,"cft-firstName":document.querySelector(e+' input[name="cft-firstName"]').value,"cft-house-number":document.querySelector(e+' input[name="cft-house-number"]').value,"cft-lastName":document.querySelector(e+' input[name="cft-lastName"]').value,"cft-street":document.querySelector(e+' input[name="cft-street"]').value,"cft-telephone":document.querySelector(e+' input[name="cft-telephone"]').value,"cft-telephone-prefix":document.querySelector(e+' select[name="cft-telephone-prefix"]').value,"cft-zip":document.querySelector(e+' input[name="cft-zip"]').value},r=new XMLHttpRequest;r.open("PUT",x+"update-user-details",!0);var a=[];a.push({name:"Content-type",value:"application/json; charset=utf8"}),(a=Vt(a)).map((function(e){r.setRequestHeader(e.name,e.value)})),r.responseType="json",r.onload=function(){r.response.error?"invalid_credentials"===r.response.error?document.getElementById("cft-current-password").classList.add("error"):dt("Nastala neoÄakávaná chyba, kontaktujte podporu","error",!0):(dt("Váš úÄet bol úspeÅ¡ne aktualizovaný","success"),null!==r.response.user_token&&tn(r.response.user_token)),scrollTo(0,0),document.getElementById("cft-address-submit-button").classList.remove("active")},r.send(JSON.stringify(o))}}),!1)}());var n,o;var r=[];document.querySelectorAll('#cft--myaccount form[name="cft-myAccountDetails"] input').forEach((function(e){""===e.value&&"cft-current-password"!==e.name&&"cft-agree"!==e.name&&"cft-cancel-changes-data"!==e.name&&r.push('input[name="'+e.name+'"]')})),r[0]&&ft("endRegister",r);for(var a=document.querySelectorAll('[name="cft-myAccountDetails"] input, [name="cft-myAccountDetails"] select'),c=function(e){a[e].addEventListener("input",(function(){a[e].parentElement.classList.remove("error")}))},i=0;i<a.length;i++)c(i);document.getElementById("cft-address-submit-button").addEventListener("click",(function(e){e.preventDefault(),document.getElementById("cft-address-submit-button").classList.add("active"),document.querySelector('form[name="cft-myAccountDetails"]').dispatchEvent(new Event("submit",{bubbles:!0,cancelable:!0}))}))}(),me(void 0,!0),document.querySelector(".cft--myAccount--edit-address-form")&&document.querySelectorAll(".cft--myAccount--edit-address-form").forEach((function(e){var t=e.querySelector("input.cft--input--submit"),n=e.querySelector('input[name="eshop-addressId"]').value,o=e.querySelector(".cft--myAccount--address-bin-container");o&&o.addEventListener("click",(function(){o.style.color="#ccc";var e=new XMLHttpRequest;e.open("DELETE",x+"eshop/address/".concat(n),!0);var t=[];t.push({name:"Content-type",value:"application/json; charset=utf8"}),(t=Vt(t)).map((function(t){e.setRequestHeader(t.name,t.value)})),e.responseType="json",e.onload=function(){e.response.error?ft("errorUpdateAccountDetails",[]):(ft("successU
2pdateAccountDetails",[]),setTimeout((function(){location.reload()}),1e3))},e.send()})),e.querySelector(".cft--myAccount--address-add-company").addEventListener("click",(function(){e.querySelector(".cft--myAccount--address-company").classList.remove("cft--myAccount--display-none"),e.querySelector(".cft--myAccount--address-add-company").classList.add("cft--myAccount--display-none")})),""===e.querySelector('input[name="eshop-vat"]').value&&""===e.querySelector('input[name="eshop-dni"]').value&&""===e.querySelector('input[name="eshop-company"]').value||(e.querySelector(".cft--myAccount--address-company").classList.remove("cft--myAccount--display-none"),e.querySelector(".cft--myAccount--address-add-company").classList.add("cft--myAccount--display-none")),e.querySelectorAll("input").forEach((function(e){e.addEventListener("keyup",(function(e){t.classList.remove("cft--myAccount--display-none")}))})),e.addEventListener("submit",(function(e){e.preventDefault();var n={id:Number(e.target.closest(".cft--myAccount--address-form").querySelector('input[name="eshop-addressId"]').value),alias:e.target.closest(".cft--myAccount--address-form").querySelector('input[name="eshop-alias"]').value,city:e.target.closest(".cft--myAccount--address-form").querySelector('input[name="eshop-city"]').value,country:e.target.closest(".cft--myAccount--address-form").querySelector('select[name="eshop-country"]').value,firstName:e.target.closest(".cft--myAccount--address-form").querySelector('input[name="eshop-firstName"]').value,lastName:e.target.closest(".cft--myAccount--address-form").querySelector('input[name="eshop-lastName"]').value,streetAndHouseNumber:e.target.closest(".cft--myAccount--address-form").querySelector('input[name="eshop-street-and-house-number"]').value,telephone:e.target.closest(".cft--myAccount--address-form").querySelector('input[name="eshop-telephone"]').value,zip:e.target.closest(".cft--myAccount--address-form").querySelector('input[name="eshop-zip"]').value,vat:e.target.closest(".cft--myAccount--address-form").querySelector('input[name="eshop-vat"]').value,dni:e.target.closest(".cft--myAccount--address-form").querySelector('input[name="eshop-dni"]').value,company:e.target.closest(".cft--myAccount--address-form").querySelector('input[name="eshop-company"]').value},o=new XMLHttpRequest;o.open("PUT",x+"eshop/address",!0);var r=[];r.push({name:"Content-type",value:"application/json; charset=utf8"}),(r=Vt(r)).map((function(e){o.setRequestHeader(e.name,e.value)})),o.responseType="json",o.onload=function(){o.response.error?ft("errorUpdateAccountDetails",[]):(ft("successUpdateAccountDetails",[]),t.classList.add("cft--myAccount--display-none")),an(document.querySelector("body"),0,50)},o.send(JSON.stringify(n))}),!1)})),function(){if(document.querySelector('form[name="cft--myAccount--eshopAddressForm"]')){var e=document.querySelector('form[name="cft--myAccount--eshopAddressForm"]').querySelector("input.cft--input--submit");document.querySelector('form[name="cft--myAccount--eshopAddressForm"]').querySelectorAll("input").forEach((function(t){t.addEventListener("keyup",(function(t){document.querySelector('form[name="cft--myAccount--eshopAddressForm"]').querySelectorAll("input").forEach((function(e){if("eshop-alias"!=e.name&&""==e.value)return!0})),e.classList.remove("cft--myAccount--display-none")}))}));var t=document.getElementById("newAddress");t.querySelector(".cft--myAccount--address-add-company").addEventListener("click",(function(){t.querySelector(".cft--myAccount--address-company").classList.remove("cft--myAccount--display-none"),t.querySelector(".cft--myAccount--address-add-company").classList.add("cft--myAccount--display-none")})),""===t.querySelector('input[name="eshop-vat"]').value&&""===t.querySelector('input[name="eshop-dni"]').value&&""===t.querySelector('input[name="eshop-company"]').value||(t.querySelector(".cft--myAccount--address-company").classList.remove("cft--myAccount--display-none"),t.querySelector(".cft--myAccount--address-add-company").classList.add("cft--myAccount--display-none")),document.querySelector('form[name="cft--myAccount--eshopAddressForm"]').addEventListener("submit",(function(e){var t='form[name="cft--myAccount--eshopAddressForm"]';e.preventDefault();var n={alias:document.querySelector(t+' input[name="eshop-alias"]').value,city:document.querySelector(t+' input[name="eshop-city"]').value,country:document.querySelector(t+' select[name="eshop-country"]').value,firstName:document.querySelector(t+' input[name="eshop-firstName"]').value,lastName:document.querySelector(t+' input[name="eshop-lastName"]').value,streetAndHouseNumber:document.querySelector(t+' input[name="eshop-street-and-house-number"]').value,telephone:document.querySelector(t+' input[name="eshop-telephone"]').value,zip:document.querySelector(t+' input[name="eshop-zip"]').value,vat:document.querySelector(t+' input[name="eshop-vat"]').value,dni:document.querySelector(t+' input[name="eshop-dni"]').value,company:document.querySelector(t+' input[name="eshop-company"]').value},o=new XMLHttpRequest;o.open("POST",x+"eshop/address",!0);var r=[];r.push({name:"Content-type",value:"application/json; charset=utf8"}
2),(r=Vt(r)).map((function(e){o.setRequestHeader(e.name,e.value)})),o.responseType="json",o.onload=function(){o.response.error?ft("errorCreateEshopAddress",[]):(ft("successUpdateAccountDetails",[]),location.reload()),an(document.querySelector("body"),0,50)},o.send(JSON.stringify(n))}),!1)}}(),et()}function me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cft--logout",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.getElementById(e);null!==n&&n.addEventListener("click",(function(e){e.preventDefault();var n=new XMLHttpRequest;n.open("GET",P+"/odhlasit",!0),n.send(null),"logout"===Xt(x+"logout",Vt([])).status&&(Qt("cft_logged",""),Qt("cft_isdonor",""),$t("cft_logged",!1),Qt("cft_usertoken",""),Qt("cft_usercookie",""),Qt("cft-popup-time",""),Qt("cft-fixed-time",""),Qt($,""),Qt("cft--one-tap-time"),Qt("cft--one-tap-count"),localStorage.removeItem("cft_usertoken"),localStorage.removeItem("userPageData"),window.location.reload()),Qt("cft_logged",""),Qt("cft_isdonor",""),$t("cft_logged",!1),Qt("cft_usertoken",""),Qt("cft_usercookie",""),Qt("cft-popup-time",""),Qt("cft-fixed-time",""),Qt("cft--one-tap-time"),Qt("cft--one-tap-count"),localStorage.removeItem("cft_usertoken"),localStorage.removeItem("userPageData"),$t(R,"false"),localStorage.removeItem(Y),localStorage.removeItem($),Qt($,""),t?window.location.href=P:window.location.reload()}))}function ye(e){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ye(e)}function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){ge(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ge(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ye(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ye(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ye(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function we(){var e,t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0]||Wt();e=n,document.querySelectorAll(".cft--readLater--header").forEach((function(t,n){if(null!=t){if(e){var o=null==localStorage.getItem("cft-count-readLater")?0:parseInt(localStorage.getItem("cft-count-readLater"));o=parseInt(Xt(x+"count-saved-articles",Vt([])).count),localStorage.setItem("cft-count-readLater",o),parseInt(o)>99&&(o=":D"),t.querySelector("span").innerHTML=o,t.classList.contains("active")||t.classList.add("active"),0===parseInt(o)?t.querySelector("span").style.display="none":t.querySelector("span").style.display="inherit"}t.addEventListener("click",(function(t){t.preventDefault(),e?location.href=window.i18n.cftJSmessages.myAccountTexts.myAccountUrl+"#"+window.i18n.cftJSmessages.myAccountTexts.savedArticlesSlug:Fn(document.querySelector("#cft--account-popup"),"read-later")}))}})),function(e){var t=document.querySelectorAll(".cft--readLater");t.forEach((function(e,t){Se(e)})),(t=document.querySelectorAll(".cft--readLater")).forEach((function(t,n){t.classList.contains("visible")&&(t.style.opacity=1),_e(t,e)}))}(n),(t=document.querySelectorAll(".article-in-detail")).length>0&&t.forEach((function(e,t){e.querySelector(".cft--readLater")&&e.querySelector(".cft--readLater").remove()})),n?qe():window.location.href.indexOf("?akcia=prihlasenie")>-1&&(console.log("prihlasenie"),setTimeout((function(){showReadLaterPopUp(),null!==document.querySelector(".cft--loginPopup--content h2")&&(document.querySelector(".cft--loginPopup--content h2").innerHTML="Prihláste sa alebo sa ZDARMA registrujte")}),3e3))}function be(e){document.querySelectorAll(".cft--readLater--header span").forEach((function(t,n){null!=t&&(localStorage.setItem("cft-count-readLater",e),parseInt(e)>99&&(e=":D"),t.innerHTML=e),0===parseInt(e)?t.style.display="none":t.style.display="inherit"}))}function Se(e){var t=e,n=t.cloneNode(!0);t.parentNode.replaceChild(n,t)}function _e(e,t){null!==e&&null!==e.querySelector('input[name="cft--readLater--data"]')&&(e.onclick=function(n){if(n.stopPropagation(),t){var o=JSON.parse(e.querySelector('input[name="cft--readLater--data"]').value),r=un();o=ve(ve({},o),{},{actual_time:r}),e.classList.contains("added")||Le(o)}else{Fn(document.querySelector("#cft--account-popup"),"read-later-article"),window.afterLoginFunction=function(){var t=JSON.parse(e.querySelector('input[name="cft--readLater--data"]').value),n=un();
2t=ve(ve({},t),{},{actual_time:n}),e.classList.contains("added")||Le(t)}}})}function Le(e){var t=new XMLHttpRequest,n=Vt([{name:"Content-type",value:"application/json; charset=utf-8"}]);""===e.image&&(e.image="/assets/frontend/build/img/placeholder/placeholder.jpg"),""===e.author&&(e.author="KonzervatÃvny dennÃk Postoj"),void 0===e.percentage_read&&(e.percentage_read=0),t.open("POST",x+"saved-articles/save",!0),n.map((function(e,n){t.setRequestHeader(e.name,e.value)})),t.responseType="json",t.onload=function(){qe(),null!==t.response.count&&void 0!==t.response.count?(be(t.response.count),dt("Älánok bol úspeÅ¡ne uložený","success",!1,"toast--alert")):dt("Nastala chyba, prosÃm opakujte akciu neskôr alebo nás kontaktujte","error",!1,"toast--alert")},t.send(JSON.stringify(e))}function ke(e,t){document.querySelectorAll(".cft--readLater").forEach((function(e,t){Se(e)}));var n=new XMLHttpRequest,o=Vt([{name:"Content-type",value:"application/json; charset=utf-8"}]);"App\\Models\\ShortNews"===t?n.open("DELETE",x+"saved-articles/delete/"+e+"/short-news",!0):n.open("DELETE",x+"saved-articles/delete/"+e,!0),o.map((function(e,t){n.setRequestHeader(e.name,e.value)})),n.responseType="json",n.onload=function(){qe(),null!==n.response.count&&void 0!==n.response.count?(be(n.response.count),dt("Älánok bol úspeÅ¡ne odstránený","success",!1,"toast--alert")):dt("Nastala chyba, prosÃm opakujte akciu neskôr alebo nás kontaktujte","error",!1,"toast--alert")},n.send()}function Ee(e,t){if(!t)return!1;for(var n=JSON.parse(e.querySelector('input[name="cft--readLater--data"]').value),o=n.id,r=(n.type,0);r<t.length;r++)if(o===t[r].id)return!0;return!1}function qe(){var e=Xt(x+"saved-articles/all-ids",Vt([])),t=document.querySelectorAll(".cft--readLater");t.forEach((function(t,n){Ee(t,e)&&Se(t)})),(t=document.querySelectorAll(".cft--readLater")).forEach((function(t,n){var o=JSON.parse(t.querySelector('input[name="cft--readLater--data"]').value).id;if(Ee(t,e)){t.classList.add("active");var r=t.querySelector("span");if(t.classList.contains("social")){null!==r&&(r.innerHTML===window.i18n.cftJSmessages.savedArticles.updatePosition?(r.innerHTML=window.i18n.cftJSmessages.savedArticles.updatedPosition,r.parentElement.classList.add("updated"),setTimeout((function(){r.innerHTML=window.i18n.cftJSmessages.savedArticles.updatePosition,r.parentElement.classList.remove("updated")}),3e3)):r.innerHTML=window.i18n.cftJSmessages.savedArticles.updatePosition);var a=document.querySelector(".editor-content");null!==a&&(window.addEventListener("scroll",(function(e){e.preventDefault();var n=a.offsetHeight;window.scrollY>n+100?(null!==r&&(r.innerHTML=window.i18n.cftJSmessages.savedArticles.deleteArticle),t.classList.add("delete")):(null!==r&&(r.innerHTML=window.i18n.cftJSmessages.savedArticles.updatePosition,r.parentElement.classList.remove("updated")),t.classList.remove("delete"))}),!1),t.classList.contains("delete")?t.onclick=function(e){e.stopPropagation(),e.preventDefault(),ke(o,JSON.parse(t.querySelector('input[name="cft--readLater--data"]').value).type)}:t.addEventListener("click",(function(e){e.preventDefault();var n=a.offsetHeight,o=100;window.scrollY<n+100&&(o=parseInt((window.scrollY/(n+100)*100).toString(),10));var r=JSON.parse(t.querySelector('input[name="cft--readLater--data"]').value);Le(r=ve(ve({},r),{},{percentage_read:o}))}),!1))}else null!==r&&(t.addEventListener("mouseover",(function(e){e.preventDefault()}),!1),t.addEventListener("mouseout",(function(e){e.preventDefault()}),!1)),t.onclick=function(e){e.stopPropagation(),e.preventDefault(),ke(o,JSON.parse(t.querySelector('input[name="cft--readLater--data"]').value).type)}}else t.classList.remove("active"),t.classList.remove("delete"),null!==t.querySelector("span")&&t.querySelectorAll("span").forEach((function(e,t){e.innerHTML=window.i18n.cftJSmessages.savedArticles.readLater})),_e(t,!0)}))}function Ae(){var e,t;0!=(e=document.querySelectorAll(".cft--savedArticle--restore")).length&&e.forEach((function(e){e.addEventListener("click",(function(t){t.preventDefault();var n=e.dataset.restoreId,o=new XMLHttpRequest,r=Vt([{name:"Content-type",value:"application/json; charset=utf-8"}]);o.open("PUT",x+"saved-articles/restore/"+n,!0),r.map((function(e,t){o.setRequestHeader(e.n
2ame,e.value)})),o.responseType="json",o.onload=function(){var t=e.closest(".cft--savedArticle--wrapper");t.querySelector(".cft--savedArticle").classList.remove("cft--d-none"),t.querySelector(".cft--article-removed-section").classList.add("cft--d-none")},o.onerror=function(){dt("Nastala chyba, prosÃm opakujte akciu neskôr alebo nás kontaktujte","error")},o.send()}))})),document.querySelectorAll(".cft--savedArticles--alert .hide-alert").forEach((function(e){e.addEventListener("click",(function(){document.querySelector(".cft--savedArticles--alert").style.display="none"}))})),document.querySelectorAll(".cft--savedArticle--remove").forEach((function(e){e.addEventListener("click",(function(t){for(var n=0;n<e.parentElement.parentElement.children.length;n++)"INPUT"===e.parentElement.parentElement.children[n].nodeName&&(Te.savedArticleId=e.parentElement.parentElement.children[n].value,Te.type=e.parentElement.parentElement.children[n].dataset.type);for(var o=0;o<e.parentElement.parentElement.parentElement.children[0].children.length;o++)"H3"===e.parentElement.parentElement.parentElement.children[0].children[o].nodeName&&(Te.title=e.parentElement.parentElement.parentElement.children[0].children[o].innerText);var r=new XMLHttpRequest,a=Vt([{name:"Content-type",value:"application/json; charset=utf-8"}]);"App\\Models\\ShortNews"===Te.type?r.open("DELETE",x+"saved-articles/delete/"+Te.savedArticleId+"/short-news",!0):r.open("DELETE",x+"saved-articles/delete/"+Te.savedArticleId,!0),a.map((function(e,t){r.setRequestHeader(e.name,e.value)})),r.responseType="json",r.onload=function(){var t=e.closest(".cft--savedArticle--wrapper");t.querySelector(".cft--savedArticle").classList.add("cft--d-none"),t.querySelector(".cft--article-removed-section").classList.remove("cft--d-none")},r.send()}))})),(t=document.querySelectorAll(".cft--savedArticle--hide-alert")).length>0&&t.forEach((function(e){e.addEventListener("click",(function(t){t.preventDefault(),e.closest(".cft--savedArticle--wrapper").classList.add("cft--d-none");var n=document.querySelectorAll(".cft--savedArticle--wrapper"),o=0;n.forEach((function(e){e.classList.contains("cft--d-none")||o++})),0===o&&location.reload()}))}))}var Te={title:"",savedArticleId:0};function xe(){var e,t,n,o,r;!function(){if(window.accountSupportDataLoading)return null;window.accountSupportDataLoading=!0;var e=Xt(x+"your-support",Vt([]));if(null!=e){if(null!=e.donation.last_donation&&null!=e.donation.last_donation&&e.donation.last_donation!=[]){var t=document.getElementById("cft--yourDonation"),n=document.getElementById("cft--variableSymbol"),o=(document.getElementById("cft--portalBankAccount"),document.getElementById("cft--donatingFrom")),r=document.getElementById("cft--donatingFromComfortpay"),a=(document.querySelector(".cft--donationsTable table tbody"),document.querySelector(".cft--accountBox--content--waiting"));if(n.innerText=e.donation.variable_symbol.variable_symbol,null==e.donation.donations_sum_in_last_year||null==e.donation.donations_sum_in_last_year.donations_sum||null==e.donation.donations_sum_in_last_year.donations_sum||0==e.donation.donations_sum_in_last_year.donations_sum)null!==document.getElementById("cr0wdfundingToolbox-leaderboard")&&(document.getElementById("cr0wdfundingToolbox-leaderboard").style.display="block");else{var c=null===e.donation.last_donation.amount?e.donation.last_donation.amount_initialized:e.donation.last_donation.amount;null!==e.donation.is_monthly_donor&&(c=e.donation.is_monthly_donor.amount),void 0!==e.monthly_sum_bank_transfer&&(c=e.monthly_sum_bank_transfer||e.donation.last_donation.payment.amount),t.innerText=c+" â¬",null===e.donation.last_donation.payment_id&&"initialized"!==e.donation.last_donation.status&&null==e.donation.is_monthly_donor&&(a.style.display="block");var i="",s=!0;if(null!==e.donation.last_donation&&null!==e.donation.last_donation.payment_id&&e.isDonor&&(null!==e.donation.first_donation&&(i=sn(e.donation.first_donation.payment.transaction_date)),"PROCESSED"),null!==e.donation.first_donation&&null!==e.donation.first_donation.payment_id&&(i=sn(e.donation.first_donation.payment.transaction_date)),"initialized"===e.donation.last_donation.status&&null==e.donation.is_monthly_donor)return document.querySelector(".cft--accountBox--notSupporter .cft--accountBox--notCompleteDonation").style.display="block",document.querySelector(".cft--accountBox--content .cft--gri
2d--row").style.display="none",document.querySelectorAll(".cft--accountBox--notSupporter").forEach((function(e,t){e.style.display="block"})),document.querySelectorAll(".cft--not-supported").forEach((function(e,t){e.style.display="block"})),void(null!==document.getElementById("cr0wdfundingToolbox-leaderboard")&&(document.getElementById("cr0wdfundingToolbox-leaderboard").style.display="block"));var u=new Date(e.donation.last_donation.updated_at.replace(/-/g,"/")),l=new Date,d=Math.abs(l-u)/60/60/1e3;if(null!==e.donation.is_monthly_donor){s=!1;var f="",p=document.querySelector(".cft--accountBox--content h3 span");switch(e.donation.is_monthly_donor.payment_method){case 2:f=window.i18n.cftJSmessages.myAccountTexts.donationViaCardPay,""!==e.payment_options.card_number&&(document.getElementById("cft--donatingCard").innerHTML="<b>"+e.payment_options.card_number+"</b>",document.querySelector(".cft--donatingCard").style.display="block");break;case 3:f=window.i18n.cftJSmessages.myAccountTexts.donationViaPayBySquare;break;default:f=window.i18n.cftJSmessages.myAccountTexts.donationViaBankAccount,""!==e.payment_options.bank_account_number&&(document.getElementById("cft--donatingBankAccount").innerHTML="<b>"+e.payment_options.bank_account_number+"</b>",document.querySelector(".cft--donatingBankAccount").style.display="block")}null!==p&&(p.innerHTML=f)}else if(("processed"===e.donation.last_donation.status||"waiting_for_payment"===e.donation.last_donation.status&&d<5)&&!e.isDonor){s=!1;var m="",y=document.querySelector(".cft--accountBox--content h3 span");switch(e.donation.last_donation.payment.transfer_type){case 2:m=window.i18n.cftJSmessages.myAccountTexts.donationViaCardPay,""!==e.payment_options.card_number&&(document.getElementById("cft--donatingCard").innerHTML="<b>"+e.payment_options.card_number+"</b>",document.querySelector(".cft--donatingCard").style.display="block");break;case 3:m=window.i18n.cftJSmessages.myAccountTexts.donationViaPayBySquare;break;default:m=window.i18n.cftJSmessages.myAccountTexts.donationViaBankAccount,""!==e.payment_options.bank_account_number&&(document.getElementById("cft--donatingBankAccount").innerHTML="<b>"+e.payment_options.bank_account_number+"</b>",document.querySelector(".cft--donatingBankAccount").style.display="block")}null!==y&&(y.innerHTML=m)}if(o.innerText=""===i?" - ":i,r.innerText=""===i?" - ":i,s&&null!==document.querySelector("h2.cft--is-supported")&&(document.querySelector("h2.cft--is-supported").innerHTML=window.i18n.cftJSmessages.myAccountTexts.startDonatingNowHeadline,document.querySelector("span.cft--is-supported").innerHTML=window.i18n.cftJSmessages.myAccountTexts.startDonatingNowText),document.querySelectorAll(".cft--accountBox--supporter").forEach((function(e,t){e.style.display="block"})),null!==e.comfortpay_donation){if(document.getElementById("supporter").style.display="none",document.getElementById("supporter--comfortpay").style.display="block",function(){var e=document.getElementById("comfortpay--changeDonation");e.querySelectorAll(".cft--comfortpay--donation-button").forEach((function(t,n){t.addEventListener("click",(function(n){e.querySelectorAll(".cft--comfortpay--donation-button").forEach((function(e,t){e.classList.remove("active")})),t.classList.add("active"),parseFloat(t.querySelector("input").value)<10||isNaN(parseFloat(t.querySelector("input").value))?e.querySelector(".cft--comfortpay--membership--checkbox").classList.remove("active"):e.querySelector(".cft--comfortpay--membership--checkbox").classList.add("active"),t.classList.contains("custom-sum")&&t.querySelector("input").addEventListener("keyup",(function(t){parseFloat(t.target.value)<10||isNaN(parseFloat(t.target.value))?(e.querySelector(".cft--comfortpay--membership--checkbox").classList.remove("active"),parseFloat(t.target.value)<1||isNaN(parseFloat(t.target.value))?(e.querySelector(".cft--comfortpay--error").innerHTML="Podpora musà byÅ¥ vo výške min. 1 â¬.",e.querySelector(".cft--comfortpay--error").style.display="block",e.querySelector('button[type="submit"]').disabled=!0):(e.querySelector(".cft--comfortpay--error").style.display="none",e.querySelector('button[type="submit"]').disabled=!1)):e.querySelector(".cft--comfortpay--membership--checkbox").classList.add("active")}))}))})),null!==e.querySelector(".cft--comfortpay--closeWidget")&&e.querySelector(".cft--comfortpay--closeWidget").addEventListener("click",(function(t){e.style.display="none",document.body.style.overflow="auto"}));document.querySelectorAll(".comfortpay--changeDonation").forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault(),document.getElementById("comfortpay--changeDonation--defaultValue")&&(document.getElementById("comfortpay--changeDonation--defaultValue").style.display="none"),e.style.display="block",document.body.style.overflow="hidden"}))}));var t=document.querySelector(".comfortpay--stopDonation"),n=document.querySelector(".cft--popup");t.addEventListener("click",(function(e){n.classList.add("active"),function(e){var t=document.querySelector(".cft--popup--content-close"),n=document.querySelector(".cft--popup--action-cancel"),o=document.querySelector(".cft--popup--action-confirm"),r=document.querySelector(".cft--popup");t.addEventListener("click",(function(e){r.classList.remove("active")})),n.addEventListener("click",(function(e){r.classList.remove("active")})),document.querySelector(".cft--popup").addEventListener("click",(function(e){"cft--popup active"===e.toElement.className&&r.classList.remove("active")})),"delete"===e&&o.classList.add("delete")}("delete"),n.querySelector('input[name="popupActionType"]').value="stop-comfortpay",n.querySelector(".cft--popup--stopSupporting").style.display="block",n.querySelector("h3").innerHTML=window.i18n.cftJSmessages.myAccountTexts.stoppedComfortpay.title,n.querySelector("p").innerHTML=window.i18n.cftJSmessages.myAccountTexts.stoppedComfortpay.description,n.querySelector("button.cft--popup--action-confirm").innerText=window.i18n.cftJSmessages.myAccountTexts.stoppedComfortpay.submitButton,n.querySelector("button.cft--popup--action-cancel").innerText=window.i18n.cftJSmessages.myAccountTexts.stoppedComfortpay.cancelButton})),n.querySelector("button.cft--popup--action-confirm").addEventListener("click",(function(e){e.preventDefault(),n.querySelector("button.cft--popup--action-confirm").disabled=!0,n.querySelector("button.cft--popup--action-confirm").innerText="ProsÃm poÄkajte ...","stop-comfortpay"===n.querySelector('input[name="popupActionType"]').value&&setTimeout((function(){var e=Xt(x+"comfortpay/unregister-card",Vt([]));null!==e.error&&void 0!==e.error?(n.querySelector(".cft--popup--error").innerHTML="PoÄas odstránenia VaÅ¡ej karty z pravidelnej podpory nastala chyba. Skúste znovu alebo kontaktuje nás na [email protected]",n.querySelector(".cft--popup--error").style.display="block",setTimeout((function(){n.querySelector(".cft--popup--error").style.display="none",n.querySelector("button.cft--popup--action-confirm").disabled=!1,n.querySelector("button.cft--popup--action-confirm").innerText="PotvrdiÅ¥"}),1e4)):(n.querySelector(".cft--popup--success").innerHTML="Zastavenie podpory prebehlo úspeÅ¡ne.",n.querySelector(".cft--popup--success").style.display="block",setTimeout((function(){n.querySelector(".cft--popup--success").style.display="none",n.querySelector("button.cft--popup--action-confirm").disabled=!1,n.querySelector("button.cft--popup--action-confirm").innerText="PotvrdiÅ¥",location.reload()}),3e3))}),500)})),e.querySelector("#changeDonationComfortpay").addEventListener("click",(function(t){t.preventDefault();var n=parseFloat(e.querySelector(".cft--comfortpay--donation-button.active input").value);isNaN(n)||(e.querySelector("#changeDonationComfortpay").disabled=!0,e.querySelector("#changeDonationComfortpay").innerHTML="PoÄkajte prosÃm ...",Ie(n,e))}))}(),document.getElementById("cft--comfortpay--yourDonation").innerHTML=e.comfortpay_donation.amount+" â¬",null!==e.payment_options&&(document.getElementById("cft--comfortpay--cardNumber").innerHTML=e.payment_options.card_number,document.getElementById("cft--comfortpay--expiration").innerHTML=e.payment_options.expiration,document.getElementById("cft--comfortPay--nextDonation").innerHTML=Number(e.payment_options.next_payment_amount)+" â¬"),location.href.indexOf("comfortPayDefaultAmount=")>-1){var h=pn(location.href,"?").get("comfortPayDefaultAmount");if(null!==h&&""!==h){var v=document.getElementById("comfortpay--changeDonation--defaultValue");if(null!==v){var g=document.getElementById("changeDonationComfortpayDefaultAmount");null!==g&&g.addEventListener("click",(function(e){e.preventDefault(),g.disabled=!0,Ie(parseFloat(h),v,g)})),document.getElementById("default-comfortPay-amount").innerText=h;var w=document.getElementById("default-comfortPay-diff"),b=parseFloat(e.comfortpay_donation.amount);w.innerText=w&&b?(parseFloat(h)-b).toFixed(0):"",document.querySelector(".cft--comfortpay--defaultAmount--closeWidget")&&document.querySelector(".cft--comfortpay--defaultAmount--closeWidget").addEventListener("click",(function(e){v.style.display="none",document.body.style.overflow="auto"})),setTimeout((function(){v.style.display="block",document.body.style.overflow="hidden",isNaN(parseFloat(h))&&document.getElementById("changeDonationComfortpayCustomAmount")&&document.getElementById("changeDonationComfortpayCustomAmount").click()}),500)}}}}else document.getElementById("supporter--comfortpay").style.display="none",document.getElementById("supporter").style.display="block","processed"!==e.donation.last_donation.status&&2===e.donation.last_donation.payment_method&&(document.querySelector(".cft--accountBox--notCompleteDonation-bank-transfer").style.display="none",document.querySelector(".cft--accountBox--notCompleteDonation-credit-card").style.display="block",document.querySelector("#supporter").style.display="none",document.querySelector(".cft--accountBox--notSupporter").style.display="block",document.querySelector(" .cft--accountBox--notSupporter .cft--accountBox--notCompleteDonation").style.display="block");document.querySelectorAll(".cft--is-supported").forEach((function(e,t){e.style.display="block"})),document.querySelector(".cft--popup--content-close").style.position="absolute",document.querySelector(".cft--popup--content-close").style.right="15px",null===e.donation.is_monthly_donor&&null!==document.getElementById("cr0wdfundingToolbox-leaderboard")&&(document.getElementById("cr0wdfundingToolbox-leaderboard").style.display="block")}}else document.querySelectorAll(".cft--accountBox--notSupporter").forEach((function(e,t){e.style.display="block"})),document.querySelectorAll(".cft--not-supported").forEach((function(e,t){e.style.display="block"})),null!==document.getElementById("cr0wdfundingToolbox-leaderboard")&&(document.getElementById("cr0wdfundingToolbox-leaderboard").style.display="block");window.accountSupportDataLoading=!1}}(),bt(),null!==document.querySelector(".cft--accountBox--supporter .cft--accountBox--supporter--footer a")&&document.querySelector(".cft--accountBox--supporter .cft--accountBox--supporter--footer a").addEventListener("click",(function(e){e.preventDefault();var t=document.getElementById("cr0wdfundingToolbox-popup");t.style.display="block",null!==t.querySelector(".cr0wdWidgetContent--closeWidget")&&t.querySelector(".cr0wdWidgetContent--closeWidget").addEventListener("click",(function(e){location.href.indexOf("#vasa-podpora")>-1?document.querySelector('.cft--myAccount--sidebar a[href="#vasa-podpora"]').click():document.querySelector('.cft--myAccount--sidebar a[href="#"]').click()}))})),document.querySelectorAll("a.showCftPopup").forEach((function(e,t){e.addEventListener("click",(function(e){e.preventDefault();var t=document.getElementById("cr0wdfundingToolbox-popup");null!==t?(t.style.display="block",null!==t.querySelector(".cr0wdWidgetContent--closeWidget")&&t.querySelector(".cr0wdWidgetContent--closeWidget").addEventListener("click",(function(e){location.href.indexOf("#vasa-podpora")>-1?document.querySelector('.cft--myAccount--sidebar a[href="#vasa-podpora"]').click():document.querySelector('.cft--myAccount--sidebar a[href="#"]').click()}))):location.href="podpora.postoj.sk"}))})),setTimeout((function(){null!==document.querySelector("#cr0wdfundingToolbox-popup .cr0wdWidgetContent--closeWidget")&&document.querySelectorAll(".cr0wdWidgetContent--closeWidget").forEach((function(e,t){e.addEventListener("click",(function(e){location.href.indexOf("#vasa-podpora")>-1?document.querySelector('.cft--myAccount--sidebar a[href="#vasa-podpora"]').click():document.querySelector('.cft--myAccount--sidebar a[href="#"]').click()}))}))}),2e3),null!==(e=document.querySelector(".cft--supporter--gift .cft--switcher"))&&(document.querySelector('.cft--supporter--gift input[type="checkbox"]').hasAttribute("disabled")?e.addEventListener("click",(function(e){document.querySelector(".alert-gift").classList.add("active")})):e.addEventListener("click",(function(e){document.querySelector('.cft--supporter--gift input[type="checkbox"]').checked?document.querySelector(".cft--supporter--gift .cft--switcher-description").innerHTML="Mám záujem o Å¡peciálne vydanie vianoÄných novÃn":document.querySelector(".cft--supporter--gift .cft--switcher-description").innerHTML="Nemám záujem o Å¡peciálne vydanie vianoÄných novÃn";var t=new XMLHttpRequest,n={interest:!!document.querySelector('.cft--supporter--gift input[type="checkbox"]').checked},o=Vt([{name:"Content-type",value:"application/json; charset=utf-8"}]),r=document.querySelector('input[name="gift_id"]').value;null!==r&&(t.open("PUT",x+"user-gift/"+r,!0),o.map((function(e,n){t.setRequestHeader(e.n
2ame,e.value)})),t.responseType="json",t.onload=function(){t.response.error?(document.querySelector(".alert-gift").classList.remove("success"),document.querySelector(".alert-gift").classList.add("error"),document.querySelector(".alert-gift").innerHTML="Pri vykonanej akcii nastala chyba. ProsÃm, skúste neskôr alebo nás kontaktujte.",setTimeout((function(){document.querySelector(".alert-gift").classList.add("active")}),200)):(document.querySelector(".alert-gift").classList.remove("error"),document.querySelector(".alert-gift").classList.add("success"),"interest"===t.response.status?document.querySelector(".alert-gift").innerHTML="Akcia prebehla úspeÅ¡ne. OÄakávajte od nás darÄek.":document.querySelector(".alert-gift").innerHTML="Akcia prebehla úspeÅ¡ne. Noviny Vám posielaÅ¥ nebudeme.",setTimeout((function(){document.querySelector(".alert-gift").classList.add("active")}),200)),setTimeout((function(){document.querySelector(".alert-gift").classList.remove("active")}),3e3)},t.send(JSON.stringify(n)))}))),null!==(r=document.querySelector(".cft--linked-user--edit"))&&r.addEventListener("click",(function(e){document.querySelector(".cft--linked-user--formBlock").classList.remove("cft--hidden"),document.getElementById("cft-linked-user-info").classList.add("cft--hidden")})),null!==(o=document.getElementById("linkedUserFormConfirmButton"))&&o.addEventListener("click",(function(e){var t=document.getElementById("cft-linked-user");if(null!==t)if(null==t.value||""==t.value)ft("emptyLinkedAccountForm",[],"cft--alert--linkedAccount");else{var n=new XMLHttpRequest;n.open("POST",x+"linked-account",!0),Vt([{name:"Content-type",value:"application/json; charset=utf-8"}]).map((function(e,t){n.setRequestHeader(e.name,e.value)})),n.responseType="json";var o={linkedAccountChildEmail:t.value};n.onload=function(){var e,o;n.response.error?23505==n.response.code?ft("linkedAccAlreadyUsed",[],"cft--alert--linkedAccount"):n.response.error.linkedAccountChildEmail?ft("emptyLinkedAccountForm",[],"cft--alert--linkedAccount"):ft("errorEdittingLinkedAccount",[],"cft--alert--linkedAccount"):(ft("successEdittingLinkedAccount",[],"cft--alert--linkedAccount",t.value),document.querySelector(".cft--linked-user--formBlock").classList.add("cft--hidden"),e=t.value,(o=document.getElementById("cft--linked-user--success")).innerHTML="<span>Váš úÄet je prepojený s úÄtom: <b>"+e+"</b>.</span>",o.classList.remove("cft--hidden"))},n.send(JSON.stringify(o))}})),null!==(n=document.querySelector(".cft--linked-user--delete"))&&n.addEventListener("click",(function(e){var t=new XMLHttpRequest;t.open("DELETE",x+"linked-account",!0),Vt([{name:"Content-type",value:"application/json; charset=utf-8"}]).map((function(e,n){t.setRequestHeader(e.name,e.value)})),t.responseType="json",t.onload=function(){t.response.error?ft("errorDeletingLinkedAccount",[],"cft--alert--linkedAccount"):(ft("successDeletingLinkedAccount",[],"cft--alert--linkedAccount"),document.getElementById("cft-linked-user-info").classList.add("cft--hidden"),document.getElementById("cft--linked-user--delete-success").classList.remove("cft--hidden"))},t.send()})),null!==(t=document.getElementById("activateLinkedUser"))&&t.addEventListener("click",(function(e){var n=new XMLHttpRequest;n.open("PUT",x+"linked-account/activate"),Vt([{name:"Content-type",value:"application/json; charset=utf-8"}]).map((function(e,t){n.setRequestHeader(e.name,e.value)})),n.responseType="json",n.onload=function(){n.response.error?ft("errorActivatingLinkedAccount",[],"cft--alert--linkedAccount"):(ft("successActivatingLinkedAccount",[],"cft--alert--linkedAccount"),t.classList.add("cft--hidden"),document.getElementById("cft-linked-user-info").classList.add("cft--hidden"),document.getElementById("cft-linked-user-info-after-activation").classList.remove("cft--hidden"))},n.send()})),D()}function Ie(e,t,n){var o={amount:e},r=new XMLHttpRequest,a=Vt([{name:"Content-type",value:"application/json; charset=utf-8"}]);r.open("POST",x+"comfortpay/change-payment",!0),a.map((function(e,t){r.setRequestHeader(e.name,e.value)})),r.responseType="json",r.onload=function(){r.response.error?(t.querySelector(".cft--comfortpay--error").innerHTML="PoÄas zapÃsania platby nastala chyba. ProsÃm, skúste neskôr alebo kontaktujte nás na [email protected]",t.querySelector(".cft--comfortpay--error").style.display="block",setTimeout((function(){t.querySelector(".cft--comfortpay--error").style.display="none",t.querySelector("#changeDonationComfortpay").disabled=!1,n.disabled=!1,t.querySelector("#changeDonationComfortpay").innerHTML="UpraviÅ¥ podporu"}),5e3)):(n&&(n.style.display="none"),t.querySelector(".comfortpay--changeDonation--content--different-amount")&&(t.querySelector(".comfortpay--changeDonation--content--different-amount").style.display="none"),t.querySelector(".comfortpay--changeDonation--content--title")&&(t.querySelector(".comfortpay--changeDonation--content--title").innerHTML='<span><span class="rectangle-here"><span class="rectangle long"></span>Äakujeme</span> za VaÅ¡u Å¡tedrosÅ¥<span>'),t.querySelector(".comfortpay--changeDonation--content--description")&&(t.querySelector(".comfortpay--changeDonation--content--description").innerText="SpoloÄne tvorÃme najsilnejšà konzervatÃvny de
2nnÃk"),setTimeout((function(){location.href=location.href.split("?")[0],location.reload()}),4e3))},r.send(JSON.stringify(o))}n(543);function Pe(){!function(e,t){if(null!==document.querySelector(e))document.querySelector(e).innerHTML=t}(".cft--myAccount--newsletter--email",nn().email),document.querySelectorAll(".cft--newsletter, .cft--author-newsletter").forEach((function(e,t){e.querySelector('input[type="checkbox"]').addEventListener("change",(function(t){if(t.target.classList.contains("wait"))return t.preventDefault(),void(t.target.checked=!t.target.checked);var n=e.querySelector('input[name="cft--newsletter-code"]').value,o=new XMLHttpRequest,r=Vt([{name:"Content-type",value:"application/json; charset=utf-8"}]);t.target.classList.add("wait");var a={code:n};t.target.checked?(o.open("POST",x+"newsletter/user/subscribe",!0),r.map((function(e,t){o.setRequestHeader(e.name,e.value)})),o.responseType="json",o.onload=function(){var e=o.response;"string"==typeof e&&(e=JSON.parse(e)),200===o.status||"ok"===e.message.status?(dt("Prebehlo úspeÅ¡né prihlásenie k odberateľom vybraného newslettra. Äakujeme.","success"),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"newsletter_subscribe_success",type:n,user:{id:e.portal_user_id}})):dt("PoÄas zápisu emailovej adresy k odberateľom newslettra, nastala chyba. ProsÃm, skúste neskôr.","error"),t.target.classList.remove("wait")}):(o.open("POST",x+"newsletter/user/unsubscribe",!0),r.map((function(e,t){o.setRequestHeader(e.name,e.value)})),o.onload=function(){var e=o.response;"string"==typeof e&&(e=JSON.parse(e)),200===e.status||"ok"===e.message.status?(dt("Prebehlo úspeÅ¡né odhlásenie zo zoznamu odberateľov vybraného newslettra.","success"),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"newsletter_unsubscribe",type:n,user:{id:e.portal_user_id}})):dt("PoÄas odhlásenia emailovej adresy z odberateľov newslettra, nastala chyba. ProsÃm, skúste neskôr.","error"),t.target.classList.remove("wait")}),o.send(JSON.stringify(a))}))})),function(){var e=document.getElementById("cft--author-newsletter-search");if(!e)return;e.addEventListener("input",(function(e){var t=Be(e.target.value);document.querySelectorAll(".cft--author-newsletter").forEach((function(e){var n=Be(e.querySelector("p.seriff").textContent);e.style.display=n.includes(t)?"":"none"}))}));var t=pn(window.location.href,"?");console.log(t);var n=new URLSearchParams(t);console.log(n);var o=n.get("search");o&&(console.log(o),e.value=o,e.dispatchEvent(new Event("input")))}()}function Be(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}function Ce(e){Ae(),xe(),null!==document.querySelector(".cft--accountBox--notSupporter a")&&document.querySelector(".cft--accountBox--notSupporter a").addEventListener("click",(function(e){e.preventDefault(),document.getElementById("cr0wdfundingToolbox-popup").style.display="block"})),Pe(),D(),e&&dt(e,"success")}function je(){var e=window.location.href,t=new URL(e).searchParams.get("email"),n=document.querySelector('form[name="cft-register"] input[name="cft-email"]');n&&(n.value=t)}function Oe(){document.querySelector('input[id^="cft-password"] + img').onclick=function(e){"password"===document.querySelector('input[id^="cft-password"]').getAttribute("type")?document.querySelector('input[id^="cft-password"]').setAttribute("type","text"):document.querySelector('input[id^="cft-password"]').setAttribute("type","password")}}function Ne(){document.querySelector('form[name="cft-register"]')}function Me(e){return function(e){if(Array.isArray(e))return Re(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Re(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Re(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function De(){!function(){var e=document.querySelector(".cft--orders--promo--code");if(null===e)return;e.addEventListener("click",(function(){var t,n=e.getAttribute("data-code");n&&(t=n,navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(t).catch((function(){return He(t)})):He(t),e.classList.add("cft--orders--promo--code--copied"),setTimeout((function(){e.classList.remove("cft--orders--promo--code--copied")}),1500))}))}(),function(){var e=document.querySelector(".cft--orders--return--overlay"),t=document.querySelector(".cft--orders--return--popup");if(!e||!t)return;var n=t.querySelector(".cft--orders--return--form-section"),o=t.querySelector(".cft--orders--return--products-section"),r=t.querySelector(".cft--orders--return--result-section"),a=t.querySelector(".cft--orders--return--error-section"),c=t.querySelector(".cft--orders--return--popup--close"),i=t.querySelector(".cft--orders--return--back--products"),s=t.querySelector(".cft--orders--return--submit"),u=t.querySelector(".cft--orders--return--continue"),l=t.querySelector(".cft--orders--return--confirm-products"),d=t.querySelectorAll(".cft--orders--return--close"),f=t.querySelector('input[name="name"]'),p=t.querySelector('input[name="email"]'),m=t.querySelector('input[name="order_number"]'),y=t.querySelector('input[name="reason"]'),h=t.querySelector(".cft--orders--return--error-message"),v="",g=[];function w(o){v=o.getAttribute("data-order-number")||"";var r=o.getAttribute("data-order-name")||"",a=o.getAttribute("data-order-email")||"";try{g=JSON.parse(o.getAttribute("data-order-items")||"[]")}catch(e){g=[]}f&&(f.value=r),p&&(p.value=a),m&&(m.value=v),y&&(y.value=""),S(),E(n),b(),e.classList.remove("cft--d-none"),t.classList.remove("cft--d-none"),document.body.style.overflow="hidden"}function b(){var e=t.querySelector(".cft--orders--return--products-inline");ze()?(u.classList.remove("cft--d-none"),s.classList.add("cft--d-none"),e&&e.classList.add("cft--d-none")):(u.classList.add("cft--d-none"),s.classList.remove("cft--d-none"),e&&e.classList.remove("cft--d-none"))}function S(){t.querySelectorAll(".cft--orders--return--products-list").forEach((function(e){e.innerHTML="",g.forEach((function(t,n){var o=document.createElement("div");
2o.className="cft--orders--return--product-item";var r=document.createElement("input");r.type="checkbox",r.className="cft--orders--return--product-check",r.value=n,r.checked=!0;var a=document.createElement("span");a.className="cft--orders--return--product-name",a.innerHTML="<strong>"+Fe(t.name)+"</strong>"+(t.author?"<small>"+Fe(t.author)+"</small>":"");var c=document.createElement("span");c.className="cft--orders--return--qty-control";var i=document.createElement("button");i.type="button",i.className="cft--orders--return--qty-btn",i.textContent="â";var s=document.createElement("input");s.type="number",s.className="cft--orders--return--qty-input",s.min="1",s.max=String(t.quantity),s.value=String(t.quantity);var u=document.createElement("button");u.type="button",u.className="cft--orders--return--qty-btn",u.textContent="+",c.appendChild(i),c.appendChild(s),c.appendChild(u);var l=document.createElement("span");if(l.className="cft--orders--return--product-price",l.textContent=t.price,o.appendChild(r),t.image){var d=document.createElement("img");d.src=t.image,d.alt="",d.loading="lazy",o.appendChild(d)}function f(){var e=parseInt(s.value)||1;i.disabled=e<=1||!r.checked,u.disabled=e>=t.quantity||!r.checked}o.appendChild(a),o.appendChild(c),o.appendChild(l),e.appendChild(o),f(),i.addEventListener("click",(function(e){e.stopPropagation();var t=parseInt(s.value)||1;t>1&&(s.value=t-1),f()})),u.addEventListener("click",(function(e){e.stopPropagation();var n=parseInt(s.value)||1;n<t.quantity&&(s.value=n+1),f()})),s.addEventListener("click",(function(e){e.stopPropagation()})),s.addEventListener("change",(function(){var e=parseInt(s.value)||1;e<1&&(e=1),e>t.quantity&&(e=t.quantity),s.value=e,f()})),r.addEventListener("change",(function(){var e=!r.checked;c.classList.toggle("cft--orders--return--qty-control--disabled",e),i.disabled=e||parseInt(s.value)<=1,u.disabled=e||parseInt(s.value)>=t.quantity,s.disabled=e}))}))})),t.querySelectorAll(".cft--orders--return--check-all").forEach((function(e){var n=e.closest(".cft--orders--return--products-header")?e.closest(".cft--orders--return--section, .cft--orders--return--products-inline").querySelector(".cft--orders--return--products-list"):null;e.addEventListener("change",(function(){(n?n.querySelectorAll(".cft--orders--return--product-check"):t.querySelectorAll(".cft--orders--return--product-check")).forEach((function(t){t.checked=e.checked})),L()}))})),t.querySelectorAll(".cft--orders--return--products-list").forEach((function(e){e.addEventListener("change",(function(){_(e),L()}))})),L()}function _(e){var t=e.querySelectorAll(".cft--orders--return--product-check"),n=Array.from(t).every((function(e){return e.checked})),o=Array.from(t).every((function(e){return!e.checked})),r=e.closest(".cft--orders--return--section, .cft--orders--return--products-inline");if(r){var a=r.querySelector(".cft--orders--return--check-all");a&&(a.checked=n,a.indeterminate=!n&&!o)}}function L(){if(l){var e=t.querySelectorAll(".cft--orders--return--product-check:checked");l.disabled=0===e.length}}function k(){var e=ze()?o.querySelector(".cft--orders--return--products-list"):n.querySelector(".cft--orders--return--products-list");return e?Array.from(e.querySelectorAll(".cft--orders--return--product-check:checked")).map((function(e){var t=g[parseInt(e.value)];if(!t)return null;var n=e.closest(".cft--orders--return--product-item")?e.closest(".cft--orders--return--product-item").querySelector(".cft--orders--return--qty-input"):null,o=n?parseInt(n.value)||1:t.quantity;return Object.assign({},t,{return_quantity:o})})).filter(Boolean):[]}document.querySelectorAll(".cft--orders--card--actions--return").forEach((function(e){e.addEventListener("click",(function(){return w(e)}))})),u&&u.addEventListener("click",(function(){E(o)}));l&&l.addEventListener("click",A);i&&i.addEventListener("click",(function(){E(n)}));s&&s.addEventListener("click",A);function E(e){[n,o,r,a].forEach((function(e){e&&e.classList.add("cft--d-none")})),e&&e.classList.remove("cft--d-none")}function q(){e.classList.add("cft--d-none"),t.classList.add("cft--d-none"),document.body.style.overflow=""}function A(){var e=f?f.value.trim():"",t=p?p.value.trim():"",n=v,o=y?y.value.trim():"",c=k();if(e&&t&&n&&0!==c.length){s.disabled=!0;var i=Vt([{name:"Content-type",value:"application/json; charset=utf-8"}]),u=new XMLHttpRequest;u.open("POST",x+"eshop/orders/"+encodeURIComponent(n)+"/return",!0),u.responseType="json",i.forEac
2h((function(e){return u.setRequestHeader(e.name,e.value)})),u.onload=function(){if(s.disabled=!1,200===u.status&&u.response&&u.response.success)E(r);else{var e=u.response&&u.response.message?u.response.message:'Nastala neoÄakávaná chyba. Skúste to prosÃm znova alebo nás kontaktujte na <a href="mailto:[email protected]">[email protected]</a>';h&&(h.innerHTML=e),E(a)}},u.onerror=function(){s.disabled=!1,E(a)};var l=c.map((function(e){return{product_id:e.product_id,quantity:e.return_quantity}}));u.send(JSON.stringify({order_number:n,name:e,email:t,reason:o,items:l}))}}[c].concat(Me(d)).forEach((function(e){e&&e.addEventListener("click",q)})),e.addEventListener("click",q)}(),document.querySelectorAll(".cft--orders--card").forEach((function(e){var t=e.querySelector(".cft--orders--card--body-wrap");if(t){var n=null;e.open||(t.style.height="0",t.style.overflow="hidden"),e.querySelector("summary").addEventListener("click",(function(o){if(o.preventDefault(),n&&(n.cancel(),n=null),e.open){var r=t.scrollHeight;(n=t.animate([{height:r+"px"},{height:"0px"}],{duration:360,easing:"ease-in"})).onfinish=function(){t.style.height="0",e.removeAttribute("open"),n=null}}else{e.setAttribute("open",""),t.style.height="0";var a=t.scrollHeight;(n=t.animate([{height:"0px"},{height:a+"px"}],{duration:360,easing:"ease-out"})).onfinish=function(){t.style.height="",n=null}}}))}}))}function He(e){var t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(t)}var Ue,Je=767;function ze(){return window.innerWidth<=Je}function Fe(e){return e?String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):""}function Ge(e){return Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ge(e)}function We(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,c,i=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=a.call(n)).done)&&(i.push(o.value),i.length!==t);s=!0);}catch(e){u=!0,r=e}finally{try{if(!s&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Ve(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success";if(function(){var e=document.querySelector(".cft--switcher.gift-switcher");if(!e)return;var t=e.querySelector('input[type="checkbox"]'),n=document.querySelector(".alert-gift");t.addEventListener("change",(function(){var e=!t.checked,o=t.checked,r=new XMLHttpRequest,a={interest:!!o},c=Vt([{name:"Content-type",value:"application/json; charset=utf-8"}]),i=1;function s(){t.checked=e}function u(e){n.classList.remove("success"),n.classList.add("error"),n.innerHTML=e,setTimeout((function(){return n.classList.add("active")}),200),setTimeout((function(){return n.classList.remove("active")}),3e3)}i&&(r.open("PUT",x+"user-gift/"+i,!0),c.forEach((function(e){return r.setRequestHeader(e.name,e.value)})),r.responseType="json",r.onerror=function(){s(),u("Pri vykonanej akcii nastala chyba.")},r.onload=function(){var e=r.status,t=r.response;return e<200||e>=300?(s(),void u("Pri vykonanej akcii nastala chyba.")):t&&"object"===Ge(t)?t.error?(s(),void u("Pri vykonanej akcii nastala chyba.")):void 0:(s(),void u("Pri vykonanej akcii nastala chyba."))},r.send(JSON.stringify(a)))}))}(),function(){var e=document.querySelectorAll(".predefined-options .option");e.length>0&&e.forEach((function(t){t.addEventListener("click",(function(){e.forEach((function(e){e.classList.remove("selected")})),t.classList.add("selected"),console.log(t.dataset.value)}))}));var t=document.getElementById("cft--myAccount--confirm-default-support-increase");if(t){var n=t.dataset.type;t.addEventListener("click",(function(e){var t,o,r=(null===(t=document.querySelector(".predefined-options .option.selected"))||void 0===t?void 0:t.dataset.value)||0;"card"===n?Qe(r,null===(o=document.getElementById("update-support-auto-increase-switcher-input"))||void 0===o?void 0:o.checked):Ye(r,"monthly",!1)}))}}(),function(){var e=document.querySelectorAll(".cft--myAccount--support--edit-support-buttton");if(e.length>0){var t=pn(location.href,"?"),n=!!t&&"true"===t.get("closeOnCustomAmount");e.forEach((function(e){e.addEventListener("click",(function(t){if(t.preventDefault(),n&&e.closest(".default-amount-section")){Ke();var o=document.querySelector(".update-support");o&&o.scrollIntoView({behavior:"smooth",block:"start"})}else Ze("edit-support-more-options-section","semiwide")}))}))}}(),D(),(n=document.querySelectorAll(".close-popup")).length>
20&&n.forEach((function(e){gn(e,"active",200),e.addEventListener("click",(function(t){t.preventDefault(),Ke(),e.classList.contains("reload")&&(window.location.href=window.location.href.substring(0,window.location.href.indexOf("?")))}))})),$e(),(t=document.querySelectorAll(".donation-info .label span")).length>0&&t.forEach((function(e){e.addEventListener("click",(function(t){try{t.preventDefault();var n=e.parentElement.nextElementSibling.innerText;navigator.clipboard.writeText(n).then((function(){dt("SkopÃrované","success")})).catch((function(e){dt("Chyba pri kopÃrovanÃ","error")}))}catch(e){dt("Chyba pri kopÃrovanÃ","error")}}))})),function(){var e=document.querySelectorAll(".edit-support-more-options-section .option");e.length>0&&e.forEach((function(t){t.addEventListener("click",(function(n){n.preventDefault(),e.forEach((function(e){e.classList.remove("selected")})),t.classList.add("selected"),t.dataset.value>=10?(t.parentElement.parentElement.querySelector(".benefits-icon").classList.add("checked"),t.parentElement.parentElement.querySelector(".benefits-icon").classList.remove("unchecked")):(t.parentElement.parentElement.querySelector(".benefits-icon").classList.remove("checked"),t.parentElement.parentElement.querySelector(".benefits-icon").classList.add("unchecked"))}))}));var t=document.querySelector(".edit-support-more-options-section #custom-value");t&&(t.addEventListener("focus",(function(e){document.querySelectorAll(".edit-support-more-options-section .option").forEach((function(e){e.classList.remove("selected")})),t.parentElement.classList.add("selected")})),t.addEventListener("input",(function(e){var n=e.target.value;n&&!isNaN(n)&&(t.parentElement.dataset.value=n,n>=10?(t.parentElement.parentElement.parentElement.querySelector(".benefits-icon").classList.add("checked"),t.parentElement.parentElement.parentElement.querySelector(".benefits-icon").classList.remove("unchecked")):(t.parentElement.parentElement.parentElement.querySelector(".benefits-icon").classList.remove("checked"),t.parentElement.parentElement.parentElement.querySelector(".benefits-icon").classList.add("unchecked")))})));var n=document.getElementById("cft--donation-popup--edit-support");n&&n.addEventListener("click",(function(e){gn(n,"active",200),e.preventDefault();var t=document.querySelector(".edit-support-more-options-section .option.selected");if(t){var o,r=t.dataset.value;"card"===n.dataset.type?Qe(r,null===(o=document.getElementById("popup-auto-increase-switcher-input-2"))||void 0===o?void 0:o.checked,pn(location.href,"?")?pn(location.href,"?").get("referral_campaign"):null,pn(location.href,"?")?pn(location.href,"?").get("referral_content"):null):Ye(r,"monthly",!0)}else alert("Please select an option.")}))}(),function(){var e=document.querySelectorAll(".comfortPay--stopSupport");e.length>0&&e.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault(),Ze("stop-support-options-section","semiwide")}))}));var t=document.querySelector(".pause-support-trigger");t&&t.addEventListener("click",(function(){Ze("pause-support-section","semiwide")}));var n=document.querySelector(".reduce-support-trigger");n&&n.addEventListener("click",(function(){Ze("reduce-support-section","semiwide")}));var o=document.querySelector(".comfortPay--stopSupport--confirm");o&&o.addEventListener("click",(function(){Ze("stop-support-confirmation-section")}));var r=document.querySelector(".pause-support-back");r&&r.addEventListener("click",(function(){Ze("stop-support-options-section")}));var a=document.querySelector(".reduce-support-back");a&&a.addEventListener("click",(function(){Ze("stop-support-options-section","semiwide")}));var c=document.querySelector(".stop-support-cancel-back");c&&c.addEventListener("click",(function(){Ze("stop-support-options-section","semiwide")}))}(),$e(),function(){var e=null,t=document.querySelectorAll(".pause-duration-option");t.forEach((function(n){n.addEventListener("click",(function(){t.forEach((function(e){e.classList.remove("selected");var t=e.querySelector(".pause-duration-option-check");t&&t.classList.add("cft--d-none")})),n.classList.add("selected");var o=n.querySelector(".pause-duration-option-check");o&&o.classList.remove("cft--d-none"),e=parseInt(n.getAttribute("data-months"),10)}))}));var n=document.querySelector(".pause-support-confirm-button");n&&n.addEventListener("click",(function(t){if(t.preventDefault(),e){gn(n,"active",200);var o=new XMLHttpRequest,r=Vt([{name:"Content-type",value:"application/json; charset=utf-8"}]);o.open("POST",x+"comfortpay/pause-payment",!0),r.forEach((function(e){return o.setRequestHeader(e.n
2ame,e.value)})),o.responseType="json",o.onload=function(){200===o.status?(Ze("pause-support-successfull-section","semiwide"),setTimeout((function(){location.reload()}),3e3)):Ze("default-error-section","wide")},o.onerror=function(){Ze("default-error-section","wide")},o.send(JSON.stringify({months:e}))}else dt("Vyberte prosÃm dobu pozastavenia.","error")}))}(),function(){var e=null,t=document.querySelectorAll(".reduce-support-option"),n=document.getElementById("reduce-custom-value");t.forEach((function(o){o.addEventListener("click",(function(){t.forEach((function(e){return e.classList.remove("selected")})),o.classList.add("selected");var r=parseFloat(o.getAttribute("data-value"));0===r?(n&&(n.classList.remove("cft--d-none"),n.focus()),e=null):(n&&n.classList.add("cft--d-none"),e=r)}))})),n&&n.addEventListener("input",(function(){e=parseFloat(n.value)||null}));var o=document.querySelector(".reduce-support-confirm-button");o&&o.addEventListener("click",(function(t){if(t.preventDefault(),e){gn(o,"active",200);var n=new XMLHttpRequest,r=Vt([{name:"Content-type",value:"application/json; charset=utf-8"}]);n.open("POST",x+"comfortpay/change-payment",!0),r.forEach((function(e){return n.setRequestHeader(e.name,e.value)})),n.responseType="json",n.onload=function(){200===n.status&&"success"===n.response.status?(Ze("reduce-support-successfull-section","semiwide"),setTimeout((function(){location.reload()}),3e3)):Ze("default-error-section","wide")},n.onerror=function(){Ze("default-error-section","wide")},n.send(JSON.stringify({amount:e,increase_every_year:!1,is_stopped_support_scenario:!0}))}else dt("Vyberte prosÃm sumu.","error")}))}(),function(){var e=document.querySelector(".resume-paused-payment-button");if(!e)return;e.addEventListener("click",(function(t){t.preventDefault(),gn(e,"active",200);var n=new XMLHttpRequest,o=Vt([{name:"Content-type",value:"application/json; charset=utf-8"}]);n.open("POST",x+"comfortpay/resume-payment",!0),o.forEach((function(e){return n.setRequestHeader(e.name,e.value)})),n.responseType="json",n.onload=function(){200===n.status?(localStorage.setItem("setMessage",JSON.stringify(["Platby boli obnovené.","success"])),location.reload()):dt("Nepodarilo sa obnoviÅ¥ platby. Skúste to znova.","error")},n.onerror=function(){dt("Nepodarilo sa obnoviÅ¥ platby. Skúste to znova.","error")},n.send()}))}(),function(){if(location.href.indexOf("comfortPayDefaultAmount=")>-1){var e=pn(location.href,"?"),t=e.get("comfortPayDefaultAmount"),n=e.get("isAmountDiff"),o=e.get("referral_campaign"),r=e.get("referral_content"),a=e.get("redirectUrl"),c=JSON.parse(document.getElementById("lastMonthlyCardDonation").value);if(n&&c&&c.amount&&(t=(parseFloat(t)+parseFloat(c.amount)).toFixed(2)),(null===t||""===t||isNaN(parseFloat(t)))&&c&&c.amount){var i=parseFloat(c.amount);t=(i>=7&&i<11?11:i+1).toFixed(2)}if(null!==t&&""!==t){document.getElementById("default-comfortPay-amount").innerText=t.replace(/\.00$/,"");var s=document.getElementById("default-comfortPay-diff");if(s&&c){s.innerText=(parseFloat(t)-c.amount).toFixed(0);var u=e.get("increaseEveryYear"),l=document.getElementById("popup-auto-increase-switcher-input");l&&u&&("1"===u||"true"===u.toLowerCase())&&(l.checked=!0);
2var d=document.getElementById("defaultSupportAmountConfirmButton");d&&(d.addEventListener("click",(function(e){e.preventDefault(),gn(d,"active",200);var n=!!l&&l.checked;Qe(t,n,o,r,a?function(){Ze("support-successfull-section"),setTimeout((function(){location.href=P+a}),3e3)}:null)})),Ze("default-amount-section","semiwide"))}else Ze("default-error-section","wide")}}}(),function(){if(location.href.indexOf("stopComfortPay=")>-1){var e=pn(location.href,"?").get("stopComfortPay");null!==e&&""!==e&&Ze("stop-support-options-section","semiwide")}}(),function(){(function(){var e=document.querySelectorAll(".cancelLinkedAccountButton");if(e.length>0){var t=document.getElementById("linkedAccountPartnerEmail");if(!t)return void Ze("default-error-section","wide");e.forEach((function(e){e.addEventListener("click",(function(n){gn(e,"active",200),n.preventDefault(),document.querySelector("#cancelLinkedAccountEmailPlaceholder")&&(document.querySelector("#cancelLinkedAccountEmailPlaceholder").innerText=t.value),Ze("cancel-linked-account-section","wide")}))}))}})(),n=document.getElementById("cancelLinkedAccountConfirmButton"),null!==n&&n.addEventListener("click",(function(e){gn(n,"active",200);var t=new XMLHttpRequest;t.open("DELETE",x+"linked-account",!0),Vt([{name:"Content-type",value:"application/json; charset=utf-8"}]).map((function(e,n){t.setRequestHeader(e.name,e.value)})),t.responseType="json",t.onload=function(){t.response.error?Ze("default-error-section","wide"):Ze("cancelation-linked-account-successfull-section")},t.send()})),t=document.querySelector(".activateLinkedAccountButton"),null!==t&&t.addEventListener("click",(function(e){gn(t,"active",200),e.preventDefault();var n=new XMLHttpRequest;n.open("PUT",x+"linked-account/activate"),Vt([{name:"Content-type",value:"application/json; charset=utf-8"}]).map((function(e,t){n.setRequestHeader(e.name,e.value)})),n.responseType="json",n.onload=function(){n.response.error?Ze("default-error-section","wide"):(Ke(),window.location.href=window.location.href.substring(0,window.location.href.indexOf("?")))},n.send()})),e=document.getElementById("createLinkedAccountButton"),null!==e&&e.addEventListener("click",(function(t){t.preventDefault(),gn(e,"active",200);var n=document.getElementById("linked-account-email");if(null!==n)if(null==n.value||""==n.value||!1===fn(n.value))n.parentElement.classList.add("error");else{var o=new XMLHttpRequest;o.open("POST",x+"linked-account",!0),Vt([{name:"Content-type",value:"application/json; charset=utf-8"}]).map((function(e,t){o.setRequestHeader(e.name,e.value)})),o.responseType="json";var r={linkedAccountChildEmail:n.value};o.onload=function(){o.response.error?23505==o.response.code?(n.nextElementSibling.innerText="Tento email už je pridaný iným použÃvateľom.",n.parentElement.classList.add("error")):o.response.error.linkedAccountChildEmail?n.parentElement.classList.add("error"):Ze("default-error-section","wide"):dt("ŽiadosÅ¥ bola úspeÅ¡ne poslaná","success",!0)},o.send(JSON.stringify(r))}}));var e;var t;var n;var o=document.getElementById("linked-account-email");null!==o&&o.addEventListener("input",(function(e){o.parentElement.classList.remove("error")}))}(),function(){if(!window.matchMedia("(max-width: 991px)").matches||"#vasa-podpora"!==location.hash&&""!==location.hash)return;var e=document.querySelector("#main-header");e&&e.classList.add("cft--d-none");var t=document.querySelector(".cft--myAccount--back-to-menu");t&&t.classList.add("cft--d-none")}(),function(){if(!window.matchMedia("(max-width: 991px)").matches)return;var e=document.querySelector(".cft--myAccount--support--mobile-header");if(!e)return;window.addEventListener("scroll",(function(){var t;((null===(t=window.visualViewport)||void 0===t?void 0:t.pageTop)||window.scrollY||document.documentElement.scrollTop)>50?e.classList.add("visible"):e.classList.remove("visible")}))}(),pt(),e&&dt(e,o),localStorage.getItem("setMessage")){var r=We(JSON.parse(localStorage.getItem("setMessage")),2);dt(r[0],r[1]),localStorage.removeItem("setMessage")}var a=new CustomEvent("donationsRedesignInit",{detail:{message:"Donations Redesign Initialized"}});document.dispatchEvent(a)}function Ye(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o={amount:e,email:nn().email,email_valid:!0,frequency:t,payment_method:1,referral_source:"my-account",show_id:window.cftShowId||null,terms:!0},r=new XMLHttpRequest,a=Vt([{name:"Content-type",value:"application/json; charset=utf-8"}]);r.open("POST",x+"donation/initialize",!0),r.responseType="json",a.map((function(e,t){r.setRequestHeader(e.n
2ame,e.value)})),r.onload=function(){if(200===r.status){var e=r.response;if(e)if(function(e){var t=document.querySelectorAll(".cft--button-payme");t.length>0&&t.forEach((function(t){e.payme?t.href=e.payme:(t.classList.add("cft--d-none"),document.querySelectorAll(".payme-info").forEach((function(e){e.classList.add("cft--d-none")})))}));var n=document.querySelectorAll(".amount-value");n.length>0&&n.forEach((function(t){t.innerText=e.amount+" â¬"}));var o=document.querySelectorAll(".vs-value");o.length>0&&o.forEach((function(t){t.innerText=e.variable_symbol}));var r=document.querySelectorAll(".iban-value");r.length>0&&r.forEach((function(t){t.innerText=e.bank_account}));var a=document.querySelectorAll(".pay-by-square");a.length>0&&a.forEach((function(t){e.qr?(t.classList.remove("cft--d-none"),t.innerHTML=e.qr):t.classList.add("cft--d-none")}))}(e),n)Ze("donation-info-section");else{document.querySelector(".support--table").classList.add("cft--d-none"),document.querySelectorAll(".update-support").forEach((function(e){e.classList.add("cft--d-none")})),document.querySelector(".cft--myAccount--support--donation-info").classList.remove("cft--d-none"),document.querySelector(".cft--myAccount--support--donation-info").scrollIntoView({behavior:"smooth",block:"start"});document.querySelectorAll(".support-button")}else Ze("default-error-section","wide")}else Ze("default-error-section","wide")},r.onerror=function(){Ze("default-error-section","wide")},r.send(JSON.stringify(o))}function Ke(){var e=document.querySelectorAll(".cft--myAccount--support--p
2opup--overlay, .cft--myAccount--support--popup");e.length>0&&(e.forEach((function(e){e.classList.add("cft--d-none")})),document.body.style.overflow="auto")}function Ze(e){!function(e){var t=document.querySelectorAll(".cft--myAccount--support--popup--overlay, .cft--myAccount--support--popup");t.length>0&&(t.forEach((function(t){t.classList.remove("cft--d-none"),e&&t.classList.add(e)})),document.body.style.overflow="hidden")}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null);var t=document.querySelectorAll(".cft--myAccount--support--popup--section");t.length>0&&t.forEach((function(e){e.classList.add("cft--d-none")}));var n=document.querySelector(".cft--myAccount--support--popup--section."+e);n&&n.classList.remove("cft--d-none")}function $e(){var e=document.querySelector(".stop-support-confirmation-button");e&&e.addEventListener("click",(function(t){gn(e,"active",200),t.preventDefault();var n=new XMLHttpRequest,o=Vt([{name:"Content-type",value:"application/json; charset=utf-8"}]);n.open("GET",x+"comfortpay/unregister-card",!0),o.forEach((function(e){return n.setRequestHeader(e.name,e.value)})),n.responseType="json",n.onload=function(){200===n.status?(Ze("stop-support-successfull-section"),setTimeout((function(){location.reload()}),3e3)):Ze("default-error-section","wide")},n.onerror=function(){Ze("default-error-section","wide")},n.send()}))}function Qe(e){var t=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,n={amount:e,increase_every_year:arguments.length>1&&void 0!==arguments[1]&&arguments[1],referral_campaign:arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,referral_content:arguments.length>3&&void 0!==arguments[3]?arguments[3]:null},o=new XMLHttpRequest,r=Vt([{name:"Content-type",value:"application/json; charset=utf-8"}]);o.open("POST",x+"comfortpay/change-payment",!0),o.responseType="json",r.map((function(e,t){o.setRequestHeader(e.name,e.value)})),o.onload=function(){200===o.status?"success"===o.response.status?t?t():Ze("support-successfull-section"):Ze("default-error-section","wide"):Ze("default-error-section","wide")},o.onerror=function(){Ze("default-error-section","wide")},o.send(JSON.stringify(n))}function et(){document.querySelector(".cft--orders--empty--button")&&document.querySelector(".cft--orders--empty--button").addEventListener("click",(function(){window.location.href="https://obchod.postoj.sk"}))}function tt(e){var t=I+"set-password",n=null!==e?e:en();window.fetch(t,{method:"GET",headers:{Authorization:"Bearer "+n}}).then((function(e){return e.text()})).then((function(e){document.getElementById("cft--myaccount").innerHTML=e,function(){var e='form[name="cft-setPassword"]',t=document.querySelector(e),n=document.querySelector("#cft--setPassword--submit-button");n.addEventListener("click",(function(e){gn(n,"active",200),e.preventDefault(),t.dispatchEvent(new Event("submit",{bubbles:!0,cancelable:!0}))})),t.addEventListener("submit",(function(t){t.preventDefault();var n=document.querySelector(e+' input[name="cft-agree"]');if(n.checked){var o={password:document.querySelector(e+' input[name="cft-password-set"]').value,agree_conditions:document.querySelector(e+' input[name="cft-agree"]').checked,agree_mailing:!0},r=new XMLHttpRequest;r.open("PUT",x+"update-password",!0);var a=[];a.push({name:"Content-type",value:"application/json; charset=utf8"}),(a=Vt(a)).map((function(e){r.setRequestHeader(e.name,e.value)})),r.responseType="json",r.onload=function(){r.response.error?dt("Nastavenie hesla sa nepodarilo. Skúste to prosÃm neskôr.","error"):(dt("Heslo bolo úspeÅ¡ne nastavené, budete presmerovaný do svojho úÄtu","success"),null!==r.response.user_token&&tn(r.response.user_token)),an(document.querySelector("body"),0,50),setTimeout((function(){location.reload()}),500)},r.send(JSON.stringify(o))}else n.parentElement.classList.add("error")}),!1),document.querySelector(e+' input[name="cft-password-set"]').addEventListener("input",(function(e){Kn(e,"#cft-password-set","cft--setPassword--submit-button")})),document.getElementById("cft-agree-pass").addEventListener("change",(function(e){e.currentTarget.parentElement.classList.remove("error")}))}()}))}function nt(e){var t=I+"reset-password",n=null!==e?e:en();window.fetch(t,{method:"GET",headers:{Authorization:"Bearer "+n}}).then((function(e){return e.text()})).then((function(e){document.getElementById("cft--myaccount").innerHTML=e,function(){var e='form[name="cft-setPassword"]',t=document.querySelector(e);document.querySelector(e+' input[name="cft-password-reset"]').addEventListener("input",(function(e){Kn(e,"#cft-password-reset","cft--setPassword--submit-button")}));var n=document.querySelector("#cft--setPassword--submit-button");n.addEventListener("click",(function(e){gn(n,"active",200),e.preventDefault(),t.dis
2patchEvent(new Event("submit",{bubbles:!0,cancelable:!0}))})),t.addEventListener("submit",(function(n){n.preventDefault(),t.classList.add("submitted");var o=document.querySelector(e+' input[name="cft-password-reset"]'),r={password:o.value};if(o.validity.valid){var a=new XMLHttpRequest;a.open("PUT",x+"update-password-reset",!0);var c=[];c.push({name:"Content-type",value:"application/json; charset=utf8"}),(c=Vt(c)).map((function(e){a.setRequestHeader(e.name,e.value)})),a.responseType="json",a.onload=function(){a.response.error?dt("Nastavenie hesla sa nepodarilo. Skúste to prosÃm neskôr.","error"):(dt("Heslo bolo úspeÅ¡ne nastavené, budete presmerovaný do svojho úÄtu","success"),null!==a.response.user_token&&tn(a.response.user_token)),an(document.querySelector("body"),0,50),setTimeout((function(){location.reload()}),500)},a.send(JSON.stringify(r))}}),!1)}()}))}function ot(e,t){window.isMyAccountLoading=!0;var n=I+"my-account";null!==t||en();window.fetch(n,{method:"GET"}).then((function(e){if(!e.ok){if(401===e.status){Qt("cft_usertoken",""),localStorage.removeItem("cft_usertoken");return window.isMyAccountLoading=!1,document.getElementById("cft--myaccount").innerHTML='\n <div class="error-section" style="margin-top: 50px;">\n <p>OspravedlÅujeme sa za technický problém, skúste sa prosÃm odhlásiÅ¥ a nanovo prihlásiÅ¥.</p>\n <button class="cft--button" id="cft--logout">OdhlásiÅ¥ sa</button>\n </div>\n ',me(),Qt("cft_logged",""),$t("cft_logged",!1),Qt("cft_isdonor",""),location.href=P,null}return null}return e.text()})).then((function(t){document.getElementById("cft--myaccount").innerHTML=t,at(),me("cft--logout"),ct(e),document.querySelectorAll(".cft--myAccount--sidebar a").forEach((function(e){e.addEventListener("click",(function(t){e.classList.contains("expandable")?(e.classList.toggle("active"),e.parentElement.classList.toggle("active"),e.classList.add("pressed"),e.parentElement.classList.add("pressed"),setTimeout((function(){e.classList.remove("pressed"),e.parentElement.classList.remove("pressed")}),150)):setTimeout((function(){ct()}),100)}))})),Mn(),Rn(),window.isMyAccountLoading=!1,pt(),function(){var e=wn(),t=document.querySelector(".mobile-menu--header--initials");t&&(t.innerText=null==e?void 0:e.doubleInitials);var n=document.querySelector(".mobile-menu--header--user-details--first-row"),o=document.querySelector(".mobile-menu--header--user-details--second-row"),r=document.querySelector(".mobile-menu--first-level--header .user-email");n&&o&&(null!=e&&e.firstName||null!=e&&e.lastName?(n.innerText=(null==e?void 0:e.firstName)+" "+(null==e?void 0:e.lastName),o.innerText=null==e?void 0:e.email):(n.innerText=null==e?void 0:e.email,o.style.display="none"));r&&(r.innerText=null==e?void 0:e.email)}(),window.fetch(I+"my-account/diskusny-profil-status",{method:"GET",headers:{Authorization:"Bearer "+en()}}).then((function(e){return e.ok?e.json():{registered:!1}})).then((function(e){rt(!(!e||!e.registered))})).catch((function(){}))}))}function rt(e){var t=document.getElementById("diskusny-profil-menu-item"),n=document.getElementById("diskusny-profil-menu-link"),o=document.getElementById("diskusny-profil-menu-chevron"),r=document.getElementById("diskusny-profil-menu-submenu"),a=document.getElementById("diskusny-profil-mobile-menu-link");if(t&&n){e?(t.classList.add("expandable"),n.classList.add("expandable"),n.removeAttribute("href"),o&&o.classList.remove("cft--d-none"),r&&r.classList.remove("cft--d-none"),a&&a.setAttribute("href","#menu-diskusny-profil")):(t.classList.remove("expandable","active"),n.classList.remove("expandable","active"),n.setAttribute("href","#diskusny-profil"),o&&o.classList.add("cft--d-none"),r&&r.classList.add("cft--d-none"),a&&a.setAttribute("href","#diskusny-profil"));var c=location.href.split("#")[1];c&&c.indexOf("?")>-1&&(c=c.split("?")[0]),ut(c)}}function at(){var e=document.getElementById("cft--loginButton");null!=e&&(window.onhashchange=function(){ct();var e=document.getElementById("cft--header-dropdown-menu-wrapper");e&&(e.style.display="none")},e.classList.add("active"),e.classList.add("active-my-account"))}function ct(e){var t,n,o=location.href.split("#")[1];switch(void 0!==o&&o.indexOf("?")>-1&&(o=o.split("?")[0]),ut(o),o&&"menu"===o?window.matchMedia("(max-width: 991px)").matches?mo():o=window.i18n.cftJSmessages.myAccountTexts.donationSlug:"menu-ucet"===o?mo("account"):"menu-diskusny-profil"===o?mo("diskusny-profil"):(t=document.querySelector(".cft--myAccount--body"),n=document.querySelector(".cft--myAccount--mobile-menu"),t&&n&&(t.classList.remove("cft--d-none"),n.classList.add("cft--d-none"))),o){case window.i18n.cftJSmessages.myAccountTexts.newsletterSlug:it("newsletter");break;case window.i18n.cftJSmessages.myAccountTexts.savedArticlesSlug:it("saved-articles");break;case window.i18n.cftJSmessages.myAccountTexts.donationSlug:it("donation",e);break;case window.i18n.cftJSmessages.myAccountTexts.ordersSlug:it("orders");break;case window.i18n.cftJSmessages.myAccountTexts.accountSlug:it("account",e);break;case window.i18n.cftJSmessages.myAccountTexts.blogProfile:it("blog-profile","",B+"/blog?email="+nn().email);break;case"odoberat-autorov":it("author-newsletters",e);break;case"adresa":it("account",e);break;case"diskusny-profil":it("diskusny-profil",e);break;case"historia-komentarov":it("historia-komentarov",e);break;case"zmena-hesla":it("change-password",e);break;case"vymazat-ucet":it("delete-account",e);break;
2case"menu":case"menu-ucet":case"menu-diskusny-profil":break;default:it("donation",e)}document.querySelector("body").scrollTop=0}function it(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(window.cftAccountSectionLoading)return null;var o=document.querySelector("#main-header");o&&"donation"!==e&&o.classList.remove("cft--d-none");var r=document.querySelector(".action-navigation");r&&r.classList.remove("cft--d-none"),window.cftAccountSectionLoading=!0,Ue=e,function(){document.querySelector("#cft--myaccount .cft--myAccount--body #cft-myAccount-body-section").innerHTML="",document.querySelector(".cft--myAccount--body--loading").classList.remove("cft--d-none"),document.querySelector(".cft--myAccount--back-to-menu").classList.add("cft--d-none");var e=document.querySelector("#cft--myaccount .cft--alert");e&&e.classList.remove("active","error","success")}(),scrollTo(0,0),document.body.classList.add("cft--my-account");var a=n||I+"my-account/"+e;window.fetch(a,{method:"GET",headers:{Authorization:"Bearer "+en()}}).then((function(e){if(!e.ok){if(401===e.status)return Qt("cft_usertoken",""),$t("cft_logged","false",null),localStorage.removeItem("cft_usertoken"),location.href=P,null;return document.getElementById("cft--myaccount").innerHTML='\n <div class="error-section" style="margin-top: 50px;">\n <p>OspravedlÅujeme sa za technický problém, skúste sa prosÃm odhlásiÅ¥ a nanovo prihlásiÅ¥.</p>\n <button class="cft--button" id="cft--logout">OdhlásiÅ¥ sa</button>\n </div>\n ',me(),null}return e.text()})).then((function(n){var o;Ue===e&&(document.getElementById("cft-myAccount-body-section").innerHTML=n,document.querySelector(".cft--myAccount--body--loading").classList.add("cft--d-none"),document.querySelector(".cft--myAccount--back-to-menu").classList.remove("cft--d-none"),document.getElementById("main-header").classList.remove("cft--d-none"),"account"===e||"adresa"===e?(pe(t),null!==(o=document.querySelector(".cft--myAccount--newAddress"))&&o.addEventListener("click",(function(e){document.getElementById("newAddress").classList.remove("cft--myAccount--display-none"),o.classList.add("cft--myAccount--display-none")}))):"change-password"===e?(document.getElementById("cft-newPassword").addEventListener("input",(function(e){Kn(e,"#cft-newPassword","cft-change-password-submit-button")})),function(){var e=document.getElementById("cft-change-password-submit-button");null!==e&&e.addEventListener("click",(function(e){e.preventDefault();var t=document.getElementById("cft-newPassword"),n=document.getElementById("cft-repeatPassword");if(t.value.length<8)t.parentElement.classList.add("error");else if(Kn(null,"#cft-newPassword","cft-change-password-submit-button"))if(t.value===n.value){var o=en();null!==o&&""!==o||(Qt("cft_logged",""),Qt("cft_isdonor",""),$t("cft_logged",!1),Qt("cft_usertoken",""),Qt("cft_usercookie",""),Qt("cft-popup-time",""),Qt("cft-fixed-time",""),Qt($,""),Qt("cft--one-tap-time"),Qt("cft--one-tap-count"),localStorage.removeItem("cft_usertoken"),localStorage.removeItem("userPageData"),window.location.reload());var r={newPassword:t.value},a=new XMLHttpRequest;a.open("POST",x+"set-new-password",!0),a.setRequestHeader("Authorization","Bearer "+o),a.setRequestHeader("Content-type","application/json; charset=utf-8"),a.responseType="json",a.onload=function(){a.response.error?ft("errorUpdatePasswordActivate"):(ft("successUpdatePasswordActivate"),t.value="",n.value="")},a.send(JSON.stringify(r))}else n.parentElement.classList.add("error")}));document.querySelectorAll(".cft--hide-show-password").forEach((function(e){e.addEventListener("click",(function(t){t.preventDefault();var n=e.parentElement.querySelector('input[type="password"], input[type="text"]');e.classList.contains("opened")?(n.type="text",e.classList.add("cft--d-none"),e.parentElement.querySelector(".cft--hide-show-password.closed").classList.remove("cft--d-none")):(n.type="password",e.classList.add("cft--d-none"),e.parentElement.querySelector(".cft--hide-show-password.opened").classList.remove("cft--d-none"))}))}))}()):"preview"===e?Ce(t):"donation"===e?Ve(t):"newsletter"===e||"author-newsletters"===e?Pe():"saved-articles"===e?Ae():"blog-profile"===e?function(e){KdBlog.init({email:nn().email}),e&&dt(e,"success")}(t):"orders"===e?De():"delete-account"===e?function(){var e=document.getElementById("cft-confirm-account-delete-button");e&&e.addEventListener("click",(function(t){t.preventDefault();var n=new XMLHttpRequest;n.open("POST",x+"delete-account",!0),n.setRequestHeader("Authorization","Bearer "+en()),n.setRequestHeader("Content-type","application/json; charset=utf-8"),n.responseType="json",n.onload=function(){n.response.error?ft("accountDeleteError"):(Qt("cft_logged",""),Qt("cft_isdonor",""),$t("cft_logged",!1),Qt("cft_usertoken",""),Qt("cft_usercookie",""),Qt("cft-popup-time",""),Qt("cft-fixed-time",""),Qt($,""),Qt("cft--one-tap-time"),Qt("cft--one-tap-count"),localStorage.removeItem("cft_usertoken"),localStorage.removeItem("userPageData"),e.parentElement.classList.add("cft--d-none"),e.parentElement.parentElement.querySelectorAll("h2").forEach((function(e){e.classList.add("cft--d-none")})),document.querySelector(".account-deleted").classList.remove("cft--d-none"),document.querySelector(".cft--myAccount--sidebar").classList.add("cft--d-none"))},n.send()}))}():"diskusny-profil"===e?(!function(){var e=document.querySelectorAll(".cft--myAccount--discussion-upgrade__option"),t=e.length?parseInt(e[0].dataset.amount):null,n=document.getElementById("diskusny-profil-upgrade-submit");function o(e){if(n){var t=e.querySelector(".cft--myAccount--discussion-upgrade__option-name");t&&(n.textContent="NavýšiÅ¥ na "+t.textContent.trim())}}e.forEach((function(n){n.addEventListener("click",(function(){e.forEach((function(e){e.classList.remove("selected")})),n.classList.add("selected"),t=parseInt(n.dataset.amount),o(n)}))}));var r=document.querySelector(".cft--myAccount--discussion-upgrade__option.selected");r&&o(r);n&&n.addEventListener("click",(function(){if(t){n.classList.add("disabled");var e=new XMLHttpRequest,o=Vt([{name:"Content-type",value:"application/json; charset=utf-8"}]);e.open("POST",x+"comfortpay/change-payment",!0),e.responseType="json",o.forEach((function(t){e.setRequestHeader(t.name,t.value)})),e.onload=function(){200===e.status&&"success"===e.response.status?(ft("successU
2pdateAccountDetails",[]),setTimeout((function(){location.reload()}),2e3)):(ft("errorUpdateAccountDetails",[]),n.classList.remove("disabled"))},e.onerror=function(){ft("errorUpdateAccountDetails",[]),n.classList.remove("disabled")},e.send(JSON.stringify({amount:t,increase_every_year:!1,referral_campaign:"disqus",referral_content:"diskusny_profil_supporter"}))}}));var a=document.querySelector(".cft--features-expand-toggle");a&&a.addEventListener("click",(function(){document.querySelectorAll(".cft--features-expand-item").forEach((function(e){e.style.display=""})),a.remove()}));var c=document.getElementById("diskusny-profil-notifications");c&&c.addEventListener("change",(function(){var e=c.checked;c.disabled=!0,window.fetch(x+"diskusny-profil-notifications",{method:"POST",headers:{Authorization:"Bearer "+en(),"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({enabled:e})}).then((function(e){return e.ok?e.json():Promise.reject()})).then((function(e){if("success"!==e.status)return Promise.reject();c.disabled=!1,ft("successUpdateAccountDetails",[])})).catch((function(){c.checked=!e,c.disabled=!1,ft("errorUpdateAccountDetails",[])}))}));var i=document.getElementById("diskusny-profil-submit");if(!i)return;var s=document.getElementById("diskusny-profil-agree");function u(){s&&i.classList.toggle("disabled",!s.checked)}s&&(u(),s.addEventListener("change",u));i.addEventListener("click",(function(){if(!i.classList.contains("disabled")){var e=document.getElementById("diskusny-profil-name"),t=e?e.closest(".cft--input-redesign"):null,n=e?e.value.trim():"";n?(t&&t.classList.remove("error"),s&&!s.checked||(i.classList.add("disabled"),window.fetch(x+"disqus-set-name",{method:"POST",headers:{Authorization:"Bearer "+en(),"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({disqusName:n})}).then((function(e){return e.json()})).then((function(e){if("success"===e.status)ft("successUpdateAccountDetails",[]),rt(!0),it("diskusny-profil");else{t&&t.classList.add("error");var n=t?t.querySelector(".error-message"):null;n&&(n.textContent=e.message||"Chyba pri ukladanÃ."),i.classList.remove("disabled")}})).catch((function(){ft("errorUpdateAccountDetails",[]),i.classList.remove("disabled")})))):t&&t.classList.add("error")}}))}(),document.getElementById("diskusny-profil-submit")&&st()):"historia-komentarov"===e&&(!function(){var e=document.querySelector(".cft--myAccount--comment-delete--overlay"),t=document.querySelector(".cft--myAccount--comment-delete--popup"),n=document.querySelector(".cft--myAccount--comment-history");if(!e||!t)return;var o=t.querySelectorAll(".cft--myAccount--comment-delete--close, .cft--myAccount--comment-delete--cancel"),r=t.querySelector(".cft--myAccount--comment-delete--confirm"),a=null;function c(n){a=n,e.classList.remove("cft--d-none"),t.classList.remove("cft--d-none"),document.body.style.overflow="hidden",window.addEventListener("hashchange",i)}function i(){a=null,e.classList.add("cft--d-none"),t.classList.add("cft--d-none"),document.body.style.overflow="",window.removeEventListener("hashchange",i)}n&&n.addEventListener("click",(function(e){var t=e.target.closest(".cft--myAccount--comment-history__delete");t&&c(t.closest(".cft--myAccount--comment-history__item"))}));o.forEach((function(e){e.addEventListener("click",i)})),e.addEventListener("click",i),r&&r.addEventListener("click",(function(){if(a&&!r.classList.contains("disabled")){var e=a.dataset.commentId;r.classList.add("disabled"),fetch(x+"my-account/komentare/"+e,{method:"DELETE",headers:{Authorization:"Bearer "+en(),Accept:"application/json"}}).then((function(e){if(r.classList.remove("disabled"),!e.ok)return i(),void ft("errorDeleteComment",[]);var t=a;i(),t.remove(),ft("successDeleteComment",[]),document.querySelector(".cft--myAccount--comment-history__item")||(document.getElementById("historia-komentarov-load-more")?l():u())})).catch((function(){r.classList.remove("disabled"),i(),ft("errorDeleteComment",[])}))}}));var s=document.getElementById("historia-komentarov-load-more");s&&s.addEventListener("click",l);function u(){n&&n.classList.add("cft--d-none");var e=document.querySelector(".cft--myAccount--comment-history--empty");e&&e.classList.remove("cft--d-none")}function l(){if(s&&!s.classList.contains("disabled")){var e=n?n.querySelectorAll(".cft--myAccount--comment-history__item").length:0;s.classList.add("disabled"),fetch(I+"my-account/historia-komentarov?offset="+e,{method:"GET",headers:{Authorization:"Bearer "+en()}}).then((function(e){return e.ok?e.text():Promise.reject()})).then((function(e){var t=(new DOMParser).parseFromString(e,"text/html");if(t.querySelector(".cft--myAccount--comment-history--error"))return Promise.reject();if(n&&t.querySelectorAll(".cft--myAccount--comment-history__item").forEach((function(e){n.appendChild(e)})),t.getElementById("historia-komentarov-load-more"))s.classList.remove("disabled");else{var o=s.closest(".cft--myAccount--comment-history__load-more");o&&o.remove(),document.querySelector(".cft--myAccount--comment-history__item")||u()}})).catch((function(){s.classList.remove("disabled"),ft("errorUpdateAccountDetails",[])}))}}}(),st()),document.querySelectorAll(".cft--showSubMenu").forEach((function(e){e.addEventListener("click",(function(e){setTimeout((function(){ct()}),100)}))})),window.cftAccountSectionLoading=!1)})).catch((function(e){console.error("There was a problem with the fetch operation:",e)}))}function st(){var e=document.querySelector(".action-navigation");e&&e.classList.add("cft--d-none")}function ut(e){var t="#"+e;null!=e&&""!=e&&"menu"!==e&&"menu-ucet"!==e||(t="#vasa-podpora"),document.querySelectorAll(".cft--myAccount--sidebar a").forEach((function(e){e.parentElement.classList.remove("active"),e.classList.remove("active")}));document.querySelector(".cft--myAccount--sidebar");var n=document.querySelector('.cft--myAccount--sidebar a[href="'+t+'"]');
2if(n&&n.closest("ul.submenu")){var o=n.closest("ul.submenu").previousElementSibling;o&&(o.classList.add("active"),o.parentElement.classList.add("active"),o.classList.add("pressed"),o.parentElement.classList.add("pressed"),setTimeout((function(){o.classList.remove("pressed"),o.parentElement.classList.remove("pressed")}),150))}n&&(n.classList.add("active"),n.parentElement.classList.add("active"),n.classList.add("pressed"),n.parentElement.classList.add("pressed"),setTimeout((function(){n.classList.remove("pressed"),n.parentElement.classList.remove("pressed")}),150))}function lt(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;e.includes("&")&&(e=e.split("&")[0]);var c={generatedToken:e,action:t,user:n,linkedAccount:o,type:a,source:r},i=new XMLHttpRequest;i.open("POST",x+"has-user-generated-token",!0),i.setRequestHeader("Content-type","application/json; charset=utf-8"),i.responseType="json",i.onload=function(){if(null!=i.response&&"One hour was already passed."!==i.response.message&&"Token does not match any records."!==i.response.message){tn(i.response.token);var e=location.href.split("&blogger="),n=location.href.includes("#")?"#"+location.href.split("#")[1].split("?")[0]:"";if(e.length>1&&"1"===e[1]&&(n="#"+window.i18n.cftJSmessages.myAccountTexts.blogProfile),t&&t.length>25&&i.response.portal_user_id&&dataLayer.push({event:"newsletter_subscribe_success",type:i.response.newsletter_type,user:{id:i.response.portal_user_id}}),"changeComfortPayAmount"===t){var r=pn(location.href,"?"),a=r?r.get("comfortPayDefaultAmount"):null,c=r?r.get("referral_campaign"):null,s=r?r.get("referral_content"):null,u=r?r.get("redirectUrl"):null,l=r?r.get("closeOnCustomAmount"):null,d=location.pathname+"#vasa-podpora?comfortPayDefaultAmount="+a;c&&(d+="&referral_campaign="+c),s&&(d+="&referral_content="+s),u&&(d+="&redirectUrl="+encodeURIComponent(u)),l&&(d+="&closeOnCustomAmount="+encodeURIComponent(l)),history.replaceState({},null,d),location.reload()}else"stopComfortPay"===t?(history.replaceState({},null,location.pathname+"#vasa-podpora?stopComfortPay=1"),location.reload()):(history.pushState({},null,location.href.split("?")[0]+n),"forgottenPassword"===t||t&&t.length>25?(nn().locked_account||o?tt(i.response.token):nt(i.response.token),setTimeout((function(){t.length>25&&window.location.reload()}),50)):!nn().locked_account&&o?ot("Prepojenie úspešne potvrdené",i.response.token):nn().locked_account?ot("Registrácia úspešná",i.response.token):ot("",i.response.token))}else if("changeComfortPayAmount"===t){var f=pn(location.href,"?"),p=f?f.get("comfortPayDefaultAmount"):null,m=f?f.get("referral_campaign"):null,y=f?f.get("referral_content"):null,h=f?f.get("redirectUrl"):null,v=f?f.get("closeOnCustomAmount"):null,g=location.pathname+"#vasa-podpora?comfortPayDefaultAmount="+p;m&&(g+="&referral_campaign="+m),y&&(g+="&referral_content="+y),h&&(g+="&redirectUrl="+encodeURIComponent(h)),v&&(g+="&closeOnCustomAmount="+encodeURIComponent(v)),history.replaceState({},null,g),location.reload()}else w=I+"my-account/bad-request",window.fetch(w).then((function(e){return e.text()})).then((function(e){document.getElementById("cft--myaccount").innerHTML=e}));var w},i.send(JSON.stringify(c))}function dt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"cft--alert",r=document.querySelector("."+o);if(r.querySelector(".close-alert").addEventListener("click",(function(e){e.preventDefault(),r.classList.remove("active"),n&&window.location.reload()})),r){var a=document.getElementById("main-header");a&&0==a.getBoundingClientRect().top&&"cft--alert"!==o?r.style.top=a.getBoundingClientRect().height+10+"px":"cft--alert"!==o&&(r.style.top="10px"),gn(r,"active",5e3),n&&setTimeout((function(){window.location.reload()}),5e3),r.classList.remove("error","success"),r.classList.add(t),r.querySelector(".message").innerHTML=e}}function ft(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=document.querySelector(n?"#cft--myaccount ."+n:"#cft--myaccount .cft--alert");r.classList.add("active"),r.classList.remove("error"),r.classList.remove("success");var a="";switch(e){case"resetPassword":a=window.i18n.cftJSmessages.myAccountTexts.resetYourPasswordAlert,document.querySelector('input[name="cft-password"]').classList.add("error");break;case"endRegister":a=window.i18n.cftJSmessages.myAccountTexts.endRegister,r.classList.add("error");break;
2case"successUpdateAccountDetails":a=window.i18n.cftJSmessages.myAccountTexts.successUpdate,r.classList.add("success"),cn(r,5e3);break;case"errorUpdateAccountDetails":a=window.i18n.cftJSmessages.myAccountTexts.errorUpdate,r.classList.add("error");break;case"successDeleteComment":a=window.i18n.cftJSmessages.myAccountTexts.successDeleteComment,r.classList.add("success"),cn(r,5e3);break;case"errorDeleteComment":a=window.i18n.cftJSmessages.myAccountTexts.errorDeleteComment,r.classList.add("error");break;case"successUpdatePasswordActivate":a=window.i18n.cftJSmessages.myAccountTexts.successUpdatePasswordActivate,r.classList.add("success"),cn(r,5e3);break;case"errorUpdatePasswordActivate":a=window.i18n.cftJSmessages.myAccountTexts.errorUpdatePasswordActivate,r.classList.add("error"),cn(r,5e3);break;case"errorEdittingLinkedAccount":a=window.i18n.cftJSmessages.myAccountTexts.errorEdittingLinkedAccount,r.classList.add("error"),cn(r,5e3);break;case"errorDeletingLinkedAccount":a=window.i18n.cftJSmessages.myAccountTexts.errorDeletingLinkedAccount,r.classList.add("error"),cn(r,5e3);break;case"linkedAccAlreadyUsed":a=window.i18n.cftJSmessages.myAccountTexts.linkedAccAlreadyUsed,r.classList.add("error"),cn(r,5e3);break;case"successEdittingLinkedAccount":a=window.i18n.cftJSmessages.myAccountTexts.successEdittingLinkedAccount+o,r.classList.add("success"),cn(r,5e3);break;case"successDeletingLinkedAccount":a=window.i18n.cftJSmessages.myAccountTexts.successDeletingLinkedAccount,r.classList.add("success"),cn(r,5e3);break;case"successActivatingLinkedAccount":a=window.i18n.cftJSmessages.myAccountTexts.successActivatingLinkedAccount,r.classList.add("success"),cn(r,5e3);break;case"errorActivatingLinkedAccount":a=window.i18n.cftJSmessages.myAccountTexts.errorActivatingLinkedAccount,r.classList.add("error"),cn(r,5e3);break;case"emptyLinkedAccountForm":a=window.i18n.cftJSmessages.myAccountTexts.emptyLinkedAccountForm,r.classList.add("error"),cn(r,5e3);break;case"errorCreateEshopAddress":a=window.i18n.cftJSmessages.myAccountTexts.errorCreateEshopAddress,r.classList.add("error"),cn(r,5e3);break;case"errorInvoiceDownload":a=window.i18n.cftJSmessages.myAccountTexts.errorInvoiceDownload,r.classList.add("error"),cn(r,5e3);break;case"accountDeleteError":a="Váš úÄet sa nepodarilo vymazaÅ¥. Skúste to prosÃm neskôr.",r.classList.add("error"),cn(r,5e3);break;case"accountDeletedSuccessfully":a="Váš úÄet bol úspeÅ¡ne vymazaný.",r.classList.add("success"),cn(r,5e3);break;default:r.classList.remove("active")}r.innerHTML=a,t!==[]&&void 0!==t&&t.map((function(e){null!==document.querySelector(e)&&(document.querySelector(e).classList.add("error"),document.querySelector(e).addEventListener("keyup",(function(){document.querySelector(e).classList.remove("error"),function(){var e=document.querySelector("#cft--myaccount .cft--alert"),t=!1;document.querySelectorAll("#cft--myaccount input").forEach((function(e){e.classList.contains("error")&&(t=!0)})),t||e.classList.contains("success")||e.classList.remove("active")}()})))}))}function pt(){var e=document.querySelectorAll(".cft--myAccount--back-to-menu, .cft--myAccount--mobile-menu--back-to-menu, .cft--myAccount--support--header-photo--back-button, .cft--myAccount--support--mobile-header .back-icon");e.length>0&&e.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault(),mo()}))}))}function mt(){var e=document.querySelectorAll(".subscribe-news");if(e[0])for(var t=function(){var t=e[n],o=t.querySelector('[type="submit"]');o&&(o.onclick=function(e){if(e.preventDefault(),document.body.classList.contains("logged")){var n=t.querySelector('input[name="cft--newsletter-code"]').value,o=new XMLHttpRequest,r=Vt([{name:"Content-type",value:"application/json; charset=utf-8"}]),a={code:n};o.open("POST",x+"newsletter/user/subscribe",!0),r.map((function(e,t){o.setRequestHeader(e.name,e.value)})),o.responseType="json",this.disabled=!0,o.onload=function(){200===o.status?t.closest(".subscribe-news").classList.add("subscribe-news__done"):alert("Nastala chyba, prosÃm opakujte neskôr alebo nás kontaktujte")},o.send(JSON.stringify(a))}else{var c=t.querySelector('input[name="cft--newsletter-code"]').value,i=t.querySelector('input[type="email"]').value;if(""===i)return t.querySelector('input[type="email"]').classList.add("error"),t.querySelector('input[type="email"]').classList.add("submitted"),void t.querySelector(".email-error").classList.add("email-error__show");if(!t.querySelector("input[type=checkbox]").checked)return t.querySelector("input[type=checkbox]").classList.add("submitted"),void t.querySelector(".checkbox-holder").classList.add("checkbox-holder__error");this.disabled=!0;var s=new XMLHttpRequest,u={type:c,email:i};s.open("POST",x+"newsletter/subscribe-mail",!0),[{name:"Content-type",value:"application/json; charset=utf-8"}
2].map((function(e,t){s.setRequestHeader(e.name,e.value)})),s.responseType="json",s.onload=function(){200===s.status?(t.closest(".subscribe-news").classList.add("subscribe-news__done"),t.querySelector(".content__done--email").innerText=i):alert("Nastala chyba, prosÃm opakujte akciu neskôr alebo nás kontaktujte")},s.send(JSON.stringify(u))}})},n=0;n<e.length;n++)t()}function yt(){var e=document.querySelectorAll(".subscribe-to-author-btn"),t=document.querySelectorAll(".subscribe-to-minizamyslenie-btn"),n=document.querySelectorAll(".subscribe-to-author-switcher");if("false"===Zt("cft_logged")||!Zt("cft_logged"))return e[0]&&e.forEach((function(e){e.parentElement.classList.remove("cft--d-none")})),n[0]&&n.forEach((function(e){e.closest(".author-subscription-switcher").classList.remove("cft--d-none")})),void(t[0]&&t.forEach((function(e){e.classList.remove("cft--d-none")})));var o=JSON.parse(localStorage.getItem("userPageData")),r=[];if(o&&(r=o.activeNewslettersName)){for(var a=document.getElementsByClassName("cft--newsletter-opening"),c=0;c<a.length;c++)for(var i=0;i<r.length;i++)a[c].classList.contains(r[i])&&a[c].classList.add("cft--d-none");e[0]&&e[0].dataset.author&&(r.includes("author-".concat(e[0].dataset.author))&&e.forEach((function(e){e.classList.add("checked"),e.querySelector(".button-text").innerText="Aktivovaný odber"})),e.forEach((function(e){e.parentElement.classList.remove("cft--d-none")}))),n[0]&&n[0].dataset.author&&(r.includes("author-".concat(n[0].dataset.author))&&n.forEach((function(e){e.checked=!0})),n.forEach((function(e){e.closest(".author-subscription-switcher").classList.remove("cft--d-none")}))),t[0]&&(r.includes("minizamyslenie")?t.forEach((function(e){e.classList.add("cft-d-none")})):t.forEach((function(e){e.classList.remove("cft--d-none")})))}for(var s=document.getElementsByClassName("cft--newsletter--email"),u=0;u<s.length;u++)s[0].value=nn()?nn().email:"";var l=document.getElementsByClassName("cft--newsletter--terms-agree");for(u=0;u<l.length;u++)l[u].checked=!0;var d=["cft--newsletter-input","cft--newsletter--checkbox"],f=0;for(u=0;u<d.length;u++){var p=document.getElementsByClassName(d[u]);for(f=0;f<p.length;f++)p[f].style.display="none"}}function ht(){"false"!==Zt("cft_logged")&&Zt("cft_logged")?document.querySelectorAll(".cft--only-logged-out").forEach((function(e){e.style.display="none"})):document.querySelectorAll(".cft--only-logged-in").forEach((function(e){e.style.display="none"}))}function vt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return gt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){i=!0,a=e},f:function(){try{c||null==n.return||n.return()}finally{if(i)throw a}}}}function gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}window.addEventListener("DOMContentLoaded",(function(){if(null!==document.getElementById("cft--myaccount")){if(this.location.href.indexOf("?impersonate")>-1)return;if((location.href.indexOf("#menu")>-1||location.href.indexOf("#menu-ucet")>-1)&&(window.matchMedia("(max-width: 991px)").matches||(location.href=location.href.split("#")[0]+"#vasa-podpora")),location.href.indexOf("generatedToken=")>-1){var e=location.href.split("generatedToken=")[1],t=null;if(location.href.indexOf("&user=")>-1&&(t=location.href.split("&user=")[1],t=parseInt(t.split("&")[0])),e.indexOf("&loggedIn")>-1){e=e.split("&loggedIn")[0];var n=new URLSearchParams(location.href),o=null,r=null;n.has("source")&&(o=n.get("source")),n.has("type")&&(r=n.get("type")),lt(e,"loggedIn",t,null,o,r)}else if(location.href.indexOf("forgottenPassword=true")>-1)location.href.indexOf("&linkedAccount")>-1&<(e=e.split("&user=")[0],"forgottenPassword",t,!0),lt(e,"forgottenPassword",t);else if(location.href.indexOf("&newsletterToken")>-1){lt(e=e.split("&newsletterToken")[0],location.href.split("&newsletterToken=")[1].split("&user")[0],t)}else if(location.href.indexOf("&linkedAccount")>-1)lt(e=e.split("&user=")[0],"linkedAccount",t,!0);else if(location.href.indexOf("&changeComfortPayAmount")>-1)lt(e=e.split("&user=")[0],"changeComfortPayAmount",t,!1);else if(location.href.indexOf("&stopComfortPay")>-1)lt(e=e.split("&user=")[0],"stopComfortPay",t,!1);else if(location.href.indexOf("&newsletterUnsubscribe")>-1)lt(e=e.split("&user=")[0],"newsletterUnsubscribe",t,!1);else if(location.href.indexOf("&preserveToken")>-1)lt(e=e.split("&user=")[0],"preserveToken",t,!1);else{var a=new URLSearchParams(location.href),c=null,i=null;a.has("source")&&(c=a.get("source")),a.has("type")&&(i=a.get("type")),lt(e,null,t,null,c,i)}}else if(hn(),!1===Wt())location.href="/?showLoginPopup=login&redirectUrl="+encodeURIComponent(location.pathname+location.hash);else{var s=nn().locked_account;setTimeout((function(){at(),s?tt(null):window.isMyAccountLoading||ot(null,null)}),300)}}}),{once:!0}),document.addEventListener("DOMContentLoaded",(function(){window.fetch(x+"newsletter/subsrcibers-count",{method:"GET",headers:{Accept:"application/json",Authorization:"Bearer "+en()}}).then((function(e){if(e.ok)return e.json();throw new Error("Failed to fetch subscribers count")})).then((function(e){document.querySelectorAll(".footer-box--newsletter").forEach((function(t){if(t.classList.contains("chw")){var n=yn(e.vatikanska_sedma);t.querySelector("b").innerText=n}else{var o=yn(e.tyzdenny_vyber);t.querySelector("b").innerText=o}}))})).catch((function(e){console.error("Error:",e)}))}
2)),window.loaded=!1,window.visitLoaded=!1,window.showedWidgetId=0;var wt="cft_usercookie";function bt(){if(window.location.href.includes("login_code=")||"true"===Zt("cft--postpone-widgets"))return setTimeout(St,2e3),void Qt("cft--postpone-widgets");St()}function St(){var e=window.location.href,t=(e.indexOf("/podpora")>-1||e.indexOf("podpora.postoj.sk")>-1||e.indexOf("podpora.staging.postoj.sk")>-1||e.indexOf("podpora.postoj")>-1)&&-1===e.indexOf(".sk/moj-ucet")?"support":null!==document.querySelector("#cft--myaccount")&&"is_user_account";if(e.indexOf(".sk/podpora")>-1||e.indexOf("podpora.postoj.sk")>-1)var n=new URL(e),o=n.searchParams.get("referral_widget_id"),r=n.searchParams.get("referral_tracking_show_id");var a=new URL(e).searchParams.get("monetization_type");location.href.includes("showPopupForNotSubscribed=1")&&(Qt("cft-popup-time"),Qt("cft-fixed-time")),!Zt(wt)&&Zt("cr0wdfundingToolbox-user_cookie")&&$t(wt,Zt("cr0wdfundingToolbox-user_cookie"));var c={user_cookie:Zt(wt),user_id:en(),url:window.location.href.includes("showPopupForNotSubscribed")?window.location.href:window.location.origin+window.location.pathname,special:t,monetization_type:a,referral_widget_id:e.indexOf(".sk/podpora")||e.indexOf("podpora.postoj.sk")?o:null,referral_tracking_show_id:e.indexOf(".sk/podpora")||e.indexOf("podpora.postoj.sk")?r:null,popup_time:Zt("cft-popup-time")?Date.parse(Zt("cft-popup-time")):null,fixed_time:Zt("cft-fixed-time")?Date.parse(Zt("cft-fixed-time")):null};if(0!==Number(location.href.split("/")[3])&&Number.isInteger(Number(location.href.split("/")[3]))&&null!==document.querySelector('input[name="cft--readLater--data"]')){c.article=JSON.parse(document.querySelector('input[name="cft--readLater--data"]').value);var i=document.getElementById("cr0wdfundingToolbox-locked"),s=null;if(i)s=i.parentElement.getElementsByTagName("p").length;c.article.paragraph_count=s||null}var u=JSON.stringify(c),l=new XMLHttpRequest;l.responseType="json",l.onreadystatechange=function(){l.readyState===XMLHttpRequest.DONE&&(!function(){var e=10;if(null===nn())return null;var t=1e3*parseInt(nn().iat);if(parseFloat(((new Date-new Date(t))/6e4).toFixed(2))>e){var n=Xt(x+"refresh-token",Vt([]));null!==n&&null!==n.user_token&&tn(n.user_token)}}(),null!=l.response&&(l.response.delete_token&&(Qt("cft_usertoken",""),Qt("cft_logged",""),$t("cft_logged",!1),localStorage.removeItem("cft_usertoken")),t?($t(wt,l.response.user_cookie),localStorage.setItem(Z,l.response.tracking_visit_id),document.getElementById("cr0wdfundingToolbox-leaderboard")||document.getElementById("cr0wdfundingToolbox-landing")?re(t,l.response):document.addEventListener("donationsRedesignInit",(function(e){re(t,l.response)}))):($t(wt,l.response.user_cookie),localStorage.setItem(Z,l.response.tracking_visit_id),localStorage.setItem($,JSON.stringify(l.response.user_details)),$t($,JSON.stringify(l.response.user_details)),re(null,l.response)),localStorage.getItem("cft_usertoken")!==en()&&localStorage.setItem("cft_usertoken",en())),setTimeout((function(){if(localStorage.removeItem("widgets_loaded"),window.loaded=!1,document.querySelector("#cr0wdfundingToolbox-landing")&&document.querySelector("#cr0wdfundingToolbox-landing .container")){document.querySelector("#cr0wdfundingToolbox-landing .container").style.padding=0;var e=document.querySelector('input[name="monetization_widget_type"]').value;e&&Toolbox.initMonetizationWidget(e)}}),1e3))},localStorage.getItem("widgets_loaded")||window.loaded||(localStorage.setItem("widgets-loaded","true"),window.loaded=!0,e.includes("podpora")||e.includes("moj-ucet"),l.open("POST","".concat(x,"widgets")),l.setRequestHeader("Content-type","application/json; charset=utf-8"),l.setRequestHeader("Authorization","Bearer "+en()),l.send(u))}function _t(e){e=e||"https://postoj-backend.crowdfundingtoolbox.news/api/portal/";window.location.href,(new Date).getTime();return bt()}function Lt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(location.href.includes("podpora.postoj.sk")){var o=e.querySelectorAll(".cft__cta__button");o&&o.forEach((function(n){n.onclick=null,n.href="javascript:void(0)",n.addEventListener("click",(function(){e.style.display="none",kt(Zt(wt),t);var o,r,a,c=(o=n.className,r=/(\d+)$/,(a=o.match(r))?a[0]:null);c&&localStorage.setItem("cft__did_not_left_thanks_to_widget",c)}))}))}document.querySelectorAll(".cr0wdWidgetContent--closeWidget").forEach((function(o,r){o.addEventListener("click",(function(){e.style.display="none",n||kt(Zt(wt),t)}))}))}
2function kt(e,t){var n=new XMLHttpRequest,o={user_cookie:e,widget_id:t};n.responseType="json",n.onreadystatechange=function(){n.readyState,XMLHttpRequest.DONE},n.open("POST",x+"close-popup-fixed-widget"),n.setRequestHeader("Content-type","application/json; charset=utf-8"),n.send(JSON.stringify(o))}function Et(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=document.body;if(e||Wt()){null!==t&&(t.classList.add("logged"),t.classList.remove("not-logged"));var n=document.querySelectorAll(".cft--monatization--form-group--donate"),o=document.querySelectorAll(".cft--monatization--form--donate--terms");if(null!==n&&n.length>0&&null!==o&&o.length>0){n.forEach((function(e,t){e.querySelectorAll(["[id*=cft--monatization--form--donate--email"]).forEach((function(e,t){e.setAttribute("value",nn().email),e.setAttribute("type","hidden")})),e.style.display="none"})),o.forEach((function(e,t){e.querySelector("[id*=cft--monatization--form--donate--terms]").checked=!0,e.style.display="none"}));var r=Number(document.querySelector(".cft--monetization--container").style.height.split("px")[0]);document.querySelector(".cft--monetization--container").style.height="".concat(r-120,"px")}document.querySelectorAll(".only-logged-users").forEach((function(e){e.style.display="block"})),document.querySelectorAll(".only-not-logged").forEach((function(e){e.style.display="none"}))}else null!==t&&(t.classList.remove("logged"),t.classList.add("not-logged")),document.querySelectorAll(".only-logged-users").forEach((function(e){e.style.display="none"}))}function qt(){var e,t=navigator.userAgent;return{device_type:e=/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(t)?"tablet":/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(t)?"mobile":"desktop",device_os:/Windows NT/.test(t)?"Windows":/Mac OS X/.test(t)?"desktop"==e?"macOS":"iOS":/(iPhone|iPad|iPod)/.test(t)?"iOS":/Android/.test(t)?"Android":/Linux/.test(t)?"Linux":"unknown"}}function At(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=document.querySelectorAll("a.cft__cta__button"),a=null,c=document.querySelectorAll("a[href*='?referral_source=homepage_button']");c[0]&&(a=c[0].href.substring(0,c[0].href.indexOf("?")));for(var i=0;i<r.length;i++)if(-1===r[i].href.indexOf("javascript:void(0)")){if(a&&a.includes("podpora.postoj.sk")&&r[i].href&&r[i].href.includes("podpora.postoj.sk")){var s=new URL(r[i].href);s.pathname&&"/"!==s.pathname&&""!==s.pathname||(r[i].href=a+s.search)}if(r[i].href&&r[i].href.includes("redirect_url=back")&&(r[i].href=r[i].href.replace("redirect_url=back","redirect_url=".concat(encodeURIComponent(window.location.pathname)))),r[i].href&&r[i].href.includes("redirect_url=article")&&(r[i].href=r[i].href.replace("redirect_url=article","redirect_url=".concat(encodeURIComponent(window.location.pathname)))),r[i].href&&r[i].href.includes("redirectUrl=back")&&(r[i].href=r[i].href.replace("redirectUrl=back","redirectUrl=".concat(encodeURIComponent(window.location.pathname)))),r[i].href&&r[i].href.includes("redirectUrl=article")&&(r[i].href=r[i].href.replace("redirectUrl=article","redirectUrl=".concat(encodeURIComponent(window.location.pathname)))),r[i].href.includes("referral_widget_id=")||(r[i].href="".concat(r[i].href).concat(r[i].href.includes("?")?"&referral_widget_id=".concat(t,"&redirect_url=").concat(encodeURIComponent(window.location.pathname)):"?referral_widget_id=".concat(t,"&redirect_url=").concat(encodeURIComponent(window.location.pathname)))),r[i].closest("#cr0wdfundingToolbox-article_advanced")&&!r[i].href.includes("referral_widget_position=")){var u=r[i].closest("#cr0wdfundingToolbox-article_advanced").dataset.position;r[i].href="".concat(r[i].href).concat(r[i].href.includes("?")?"&referral_widget_position=".concat(u):"?referral_widget_position=".concat(u))}}for(var l=n.querySelectorAll("a"),d=0;d<l.length;d++)if(-1!==l[d].href.indexOf("podpora.postoj")){if(a&&a.includes("podpora.postoj.sk")&&l[d].href&&l[d].href.includes("podpora.postoj.sk")){var f=new URL(l[d].href);f.pathname&&"/"!==f.pathname&&""!==f.pathname||(l[d].href=a+f.search)}if(l[d].href.includes("referral_widget_id=")||(l[d].href="".concat(l[d].href).concat(l[d].href.includes("?")?"&referral_widget_id=".concat(t,"&redirect_url=").concat(encodeURIComponent(window.location.pathname)):"?referral_widget_id=".concat(t,"&redirect_url=").concat(encodeURIComponent(window.location.pathname)))),l[d].closest("#cr0wdfundingToolbox-article_advanced")&&!l[d].href.includes("referral_widget_position=")){u=l[d].closest("#cr0wdfundingToolbox-article_advanced").dataset.position;l[d].href="".concat(l[d].href).concat(l[d].href.includes("?")?"&referral_widget_position=".concat(u):"?referral_widget_position=".concat(u))}}var p=qt(),m=JSON.stringify({tracking_visit_id:e,widget_id:t,device_type:p?p.device_type:null,device_os:p?p.device_os:null}),y=new XMLHttpRequest;y.responseType="json",y.onreadystatechange=function(){if(y.readyState===XMLHttpRequest.DONE){n.dataset.showId=y.response.id,window.cftShowId=y.response.id;var e=n.querySelector(".cft--author-newsletter--subscribe");e&&(e.dataset.showId=y.response.id),(window._cftPendingShowIdElements||[]).forEac
2h((function(e){e.dataset.showId=y.response.id;var t=e.querySelector(".cft--author-newsletter--subscribe");t&&(t.dataset.showId=y.response.id)})),window._cftPendingShowIdElements=[],c[0]&&c.forEach((function(e){e.href=e.href+"&referral_tracking_show_id="+y.response.id+"&redirect_url="+encodeURIComponent(window.location.pathname)}));var t=document.querySelectorAll("a[href*='?referral_source=disqus']");t[0]&&t.forEach((function(e){e.href=e.href+"&referral_tracking_show_id="+y.response.id+"&redirect_url="+encodeURIComponent(window.location.pathname)}));for(var o=document.querySelectorAll("a.cft__cta__button"),r=0;r<o.length;r++)-1!==o[r].href.indexOf("javascript:void(0)")||o[r].href.includes("referral_tracking_show_id=")||(o[r].href=o[r].href+"&referral_tracking_show_id=".concat(y.response.id));for(var a=document.querySelectorAll('a[href^="https://podpora.postoj.sk"]'),i=0;i<a.length;i++)a[i].closest(".cft--body")&&(a[i].href.includes("referral_tracking_show_id=")||(a[i].href="".concat(a[i].href).concat(a[i].href.includes("?")?"&referral_tracking_show_id=".concat(y.response.id):"?referral_tracking_show_id=".concat(y.response.id))));setTimeout((function(){window.showedWidgetId=0}),1e3)}},Number(window.showedWidgetId)!==t?(window.showedWidgetId=t,window._cftPendingShowIdElements=[],y.open("POST",x+"tracking/show"),y.setRequestHeader("Content-type","application/json; charset=utf-8"),y.setRequestHeader("Authorization","Bearer "+en()),y.send(m)):(window._cftPendingShowIdElements=window._cftPendingShowIdElements||[],window._cftPendingShowIdElements.push(n));var h=pn(location.href,"?");if(o&&(localStorage.getItem("userPageData")&&null!==JSON.parse(localStorage.getItem("userPageData"))&&JSON.parse(localStorage.getItem("userPageData")).isSuperAdmin||h&&"dikiDuri"==h.get("debugAdmin"))){var v=n.querySelector(".cft--background");if(v){var g="https://postoj.crowdfundingtoolbox.news/dashboard/campaigns/".concat(o,"/(right:edit/").concat(t,")"),w=document.createElement("a");w.innerHTML="âï¸",w.href=g,w.target="_blank",w.style.cssText="position:absolute;top:8px;right:8px;z-index:9999;display:none;background:white;color:#fff;border:1px solid #22395c;padding:3px 6px;cursor:pointer;font-size:12px;line-height:1;text-decoration:none;border-radius:4px;",v.appendChild(w),v.addEventListener("mouseenter",(function(){v.style.outline="2px dashed #22395c",w.style.display="block"})),v.addEventListener("mouseleave",(function(){v.style.outline="",w.style.display="none"}))}}var b=document.querySelectorAll(".cr0wdfundingToolbox--register");null!==b[0]&&b.forEach((function(e){e.style.cursor="pointer",e.addEventListener("click",(function(e){var t,n;e.preventDefault(),null===(t=document.getElementById("cr0wdfundingToolbox-popup"))||void 0===t||t.classList.add("cft--d-none"),null===(n=document.getElementById("cr0wdfundingToolbox-fixed"))||void 0===n||n.classList.add("cft--d-none"),Fn(document.querySelector("#cft--account-popup"),"register","register")}))}));var S=document.querySelectorAll(".cr0wdfundingToolbox--login");null!==S[0]&&S.forEach((function(e){e.style.cursor="pointer",e.addEventListener("click",(function(e){var t,n;e.preventDefault(),null===(t=document.getElementById("cr0wdfundingToolbox-popup"))||void 0===t||t.classList.add("cft--d-none"),null===(n=document.getElementById("cr0wdfundingToolbox-fixed"))||void 0===n||n.classList.add("cft--d-none"),Fn(document.querySelector("#cft--account-popup"),"default")}))}));var _=document.querySelectorAll(".cr0wdfundingToolbox--readArticle");null!==_[0]&&_.forEach((function(e){e.style.cursor="pointer",e.addEventListener("click",(function(e){var t;e.preventDefault(),null===(t=document.querySelector(".speech-button--main"))||void 0===t||t.click(),n.classList.add("cft--d-none")}))}))}function Tt(e,t,n,o){for(var r=!1,a=0;!1===r;){r=!0;for(var c=0;c<n;c++)t.indexOf(e-c+a)>-1&&(r=!1);if(o===e+a)return Tt(e,t,n-1,o);if(r)return e+a;a++}}function xt(e,t){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=0,a=[],c=document.getElementById("cr0wdfundingToolbox-locked"),i=0,s=!1;
2if(c.parentNode.childNodes.forEach((function(e,t){"P"===e.nodeName?r++:"SECTION"===e.nodeName||"BLOCKQUOTE"===e.nodeName||"H3"===e.nodeName||"H4"===e.nodeName||"H5"===e.nodeName?(a.push(r),a.push(r+1)):"DIV"!==e.nodeName||!e.classList.contains("lockedAnchor")&&"lockedAnchor"!==e.id||(i=r,s=!0)})),s||(i=t.is_set?Math.round(r*(t.position/100)):i||Math.round(r/2)),n=Tt(i,a,1,r),r>1){var u=0,l=!1;c.parentNode.childNodes.forEach((function(e,t){if("P"===e.nodeName&&u++,void 0!==e.classList&&u>n&&"cr0wdfundingToolbox-locked"!==e.id)e.classList.add("cr0wdfunding--locked--hideContent");else if(u===n&&!l){e.style.position="relative";e.insertAdjacentHTML("beforeend",'<span id="cr0wdfunding--locked--gradient" style="position: absolute;width: 100%;height: 100%;max-height:40vh;bottom: 0;left: 0; background: -moz-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);\nbackground: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);\nbackground: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);"></span>'),l=!0}})),c.innerHTML=e,ae(o,c);var d=document.getElementById("btn-cr0wdfunding--continueReading");null!==d&&d.addEventListener("click",(function(){c.parentNode.childNodes.forEach((function(e,t){void 0!==e.classList&&e.classList.contains("cr0wdfunding--locked--hideContent")&&e.classList.remove("cr0wdfunding--locked--hideContent")})),document.getElementById("cr0wdfunding--locked--gradient").style.display="none",c.style.display="none"}));var f=document.querySelectorAll(".cr0wdfundingToolbox--register");null!==f[0]&&f.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault(),Fn(document.querySelector("#cft--account-popup"),"register","register")}))}));var p=document.querySelectorAll(".cr0wdfundingToolbox--login");null!==p[0]&&p.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault(),Fn(document.querySelector("#cft--account-popup"),"default")}))}));for(var m=document.querySelectorAll(".cr0wdfundingToolbox--continueReading"),y=0;y<m.length;y++)m[y].style.cursor="pointer",m[y].addEventListener("click",(function(){var e=c.getBoundingClientRect().top+window.scrollY-window.innerHeight/2;window.scrollTo({top:e,behavior:"smooth"}),c.parentNode.childNodes.forEach((function(e,t){void 0!==e.classList&&e.classList.contains("cr0wdfunding--locked--hideContent")&&e.classList.remove("cr0wdfunding--locked--hideContent")}));var t=c.parentNode.querySelectorAll(".cr0wdfundingToolbox-article_advanced");t&&t.forEach((function(e){if(e.classList.contains("cft--d-none")){e.classList.remove("cft--d-none");try{Ut(e)}catch(e){console.warn("Error while initializing monetization after continue reading click",e)}}})),document.getElementById("cr0wdfunding--locked--gradient").style.display="none",c.style.display="none"}))}}function It(e){for(var t,n,o=!1,r=e.previousElementSibling;r;){if(r.classList.contains("special-container-start")){o=!0;break}if(r.classList.contains("special-container-end"))break;r=r.previousElementSibling}return!o&&(!!e.previousElementSibling&&!(e.previousElementSibling.classList.contains("blockquote-right")||e.previousElementSibling.classList.contains("blockquote-left")||e.previousElementSibling.classList.contains("image-description")||null!==(t=e.previousElementSibling.previousElementSibling)&&void 0!==t&&t.classList.contains("blockquote-right")||null!==(n=e.previousElementSibling.previousElementSibling)&&void 0!==n&&n.classList.contains("blockquote-left")||["DIV","H1","H2","H3","IMG","SECTION"].includes(e.previousElementSibling.tagName)))}function Pt(e){var t=new Date((new Date).getTime()+18e5),n="expires="+t;document.cookie="popup"==e?"cft-popup-time="+t+";"+n+";path=/;domain="+C:"cft-fixed-time="+t+";"+n+";path=/;domain="+C}function Bt(){var e=document.getElementById("cft--adblock-popup");if(e){document.body.classList.add("lock-position"),e.style.display="block",ht();var t=document.getElementById("cft--adblockPopup--step-offer"),n=document.getElementById("cft--adblockPopup--step-instructions"),o=function(){e.style.display="none",document.body.classList.remove("lock-position")},r=document.getElementById("cft--adblockPopup--close");r&&(r.onclick=o);var a=document.getElementById("cft--adblockPopup--howto");a&&(a.onclick=function(){var e,o;t.classList.add("cft--d-none"),n.classList.remove("cft--d-none"),e=new XMLHttpRequest,o=JSON.stringify({url:window.location.origin+window.location.pathname,user_cookie
2:Zt(wt)||null}),e.open("POST",x+"tracking/adblock-howto-click",!0),e.setRequestHeader("Content-type","application/json; charset=utf-8"),en()&&e.setRequestHeader("Authorization","Bearer "+en()),e.send(o)});var c=document.getElementById("cft--adblockPopup--back");c&&(c.onclick=function(){n.classList.add("cft--d-none"),t.classList.remove("cft--d-none")});var i=document.getElementById("cft--adblockPopup--reload");i&&(i.onclick=function(){location.reload()});var s=document.getElementById("cft--adblockPopup--login"),u=s&&s.querySelector("a");u&&(u.onclick=function(e){e.preventDefault(),o();var t=document.getElementById("cft--loginButton");t&&t.click()})}}var Ct="cft_adblock_popup_time";function jt(){return window.innerWidth<768?"mobile":window.innerWidth>767&&window.innerWidth<1200?"tablet":"desktop"}function Ot(e){var t=e,n=e.indexOf('id="scripts');n=t.indexOf(">",n),n=t.indexOf(">",n+1);var o=e.indexOf("<\/script>");return(t=t.substr(n+1,o-n-1)).startsWith("<div")||t.startsWith("</div")?"":t}function Nt(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g," ")}function Mt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1500;if(e){var o=parseFloat((e.innerText||"").replace(/[\s\u00A0]/g,"").replace(",","."))||0,r=t-o,a=performance.now(),c=function(i){var s=i-a,u=Math.min(1,s/n),l=o+r*(u*(2-u));e.innerText=Nt(Math.round(l)),u<1?requestAnimationFrame(c):e.innerText=Nt(Math.round(t))};requestAnimationFrame(c)}}function Rt(){try{var e=document.querySelectorAll(".cft_referral_campaign_money-missing");if(console.log("Updating missing to target values for",e.length,"elements"),!e.length)return;e.forEach((function(e){console.log("Updating element",e);var t=Ht(e.dataset.campaign),n=parseFloat(null==t?void 0:t.value)||0,o=parseFloat(null==t?void 0:t.target)||0,r=parseFloat(null==t?void 0:t.offset)||0,a=Math.max(0,o-n-r).toFixed(0);e.innerText=Nt(a)+" â¬"}))}catch(e){console.warn("Error while updating missing to target values",e)}}function Dt(){try{var e=document.querySelectorAll(".cft_referral_campaign_progress-value[data-campaign]"),t=document.querySelectorAll(".cft_referral_campaign_target-value[data-campaign]"),n=document.querySelectorAll(".cft_referral_campaign_missing-value[data-campaign]");if(!e.length&&!t.length&&!n.length)return;var o={};e.forEach((function(e){return o[e.dataset.campaign]=!0})),t.forEach((function(e){return o[e.dataset.campaign]=!0})),n.forEach((function(e){return o[e.dataset.campaign]=!0})),Object.keys(o).forEach((function(e){var t=Ht(e);if(t){var n=(parseFloat(t.value)||0)+(parseFloat(t.offset)||0),o=parseFloat(t.target)||0,r=Math.max(0,o-n);document.querySelectorAll('.cft_referral_campaign_progress-value[data-campaign="'+e+'"]').forEach((function(e){e.classList.remove("cft--d-none"),Mt(e,n)})),document.querySelectorAll('.cft_referral_campaign_target-value[data-campaign="'+e+'"]').forEach((function(e){e.classList.remove("cft--d-none"),Mt(e,o)})),document.querySelectorAll('.cft_referral_campaign_missing-value[data-campaign="'+e+'"]').forEach((function(e){e.classList.remove("cft--d-none"),Mt(e,r)}))}}))}catch(e){console.warn("Error while updating referral campaign goal/progress values",e)}}function Ht(e){var t=new XMLHttpRequest;if(t.open("GET",x+"campaigns/progress?campaign_name="+e,!1),t.setRequestHeader("Authorization","Bearer "+en()),t.setRequestHeader("Content-type","application/json; charset=utf-8"),t.send(),200===t.status)try{return JSON.parse(t.responseText)}catch(e){return console.error("Failed to parse campaign progress response:",e),null}return null}function Ut(e){var t=e.querySelector(".apple-pay-button"),n=e.querySelector(".google-pay-button"),o=t||n;if(o){var r=o.className.split(" ").find((function(e){return e.startsWith("widget-id-")})).split("-")[2];if(!r)return;var a="",c=e.querySelector(".cft--monatization--donation-button-wrapper");if(!c)return;c.className.indexOf("cft--monatization--only-monthly")>-1&&(a="monthly"),c.className.indexOf("cft--monatization--only-one-time")>-1&&(a="one-time");var i=null;"monthly"===a&&(i=e.querySelector(".cft--monatization--donation-button--monthly.active input").value),"one-time"===a&&(i=e.querySelector(".cft--monatization--donation-button--one-time.active input").value),
2ce("apple-pay-button","google-pay-button",null,i,r,a,!1)}}function Jt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,c,i=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=a.call(n)).done)&&(i.push(o.value),i.length!==t);s=!0);}catch(e){u=!0,r=e}finally{try{if(!s&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw r}}return i}}(e,t)||zt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zt(e,t){if(e){if("string"==typeof e)return Ft(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ft(e,t):void 0}}function Ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Gt(e){var t=null,n=[];return location.search.substr(1).split("&").forEach((function(o){(n=o.split("="))[0]===e&&(t=decodeURIComponent(n[1]))})),t}function Wt(){var e=en();if("true"===Zt("cft_logged"))return!0;if("false"===Zt("cft_logged")||!Zt("cft_logged"))return!1;if(null!==e){var t=Xt(x+"is-user-logged-in",Vt([]));return t&&t.isLoggedIn?(Qt("cft_logged",""),$t("cft_logged",!0,null),!0):(Qt("cft_logged",""),Qt("cft_isdonor",""),$t("cft_logged",!1),!1)}return Qt("cft_logged",""),$t("cft_logged",!1),Qt("cft_isdonor",""),!1}function Xt(e,t){var n=new XMLHttpRequest;return n.open("GET",e,!1),null!==t&&t.map((function(e){n.setRequestHeader(e.name,e.value)})),n.send(null),401!==n.status?JSON.parse(n.response):(Qt("cft_logged",""),$t("cft_logged",!1),Qt("cft_usertoken",""),null)}function Vt(e){var t={name:"Authorization",value:"Bearer "+en()};return e.push(t),e}function Yt(e,t,n){document.querySelector(e).classList.add("active"),document.querySelector(e).classList.add("error"),document.querySelector(t).classList.add("error"),document.querySelector(e).innerHTML=n,document.querySelector(t).addEventListener("change",(function(n){document.querySelector(e).classList.remove("active"),document.querySelector(e).classList.remove("error"),document.querySelector(t).classList.remove("error")}))}function Kt(e,t){e.style.opacity=0,e.style.display="block";var n=+new Date,o=function(){e.style.opacity=+e.style.opacity+(new Date-n)/t,n=+new Date,+e.style.opacity<1&&(window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16))};o()}function Zt(e){for(var t=e+"=",n=decodeURIComponent(document.cookie).split(";"),o=0;o<n.length;o++){for(var r=n[o];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(t))return r.substring(t.length,r.length)}return""}function $t(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=(new Date).getTime(),a=new Date(r+31536e6),c=n||"expires="+a.toUTCString();document.cookie=e+"="+t+";"+c+";path=/;domain="+C+";Priority=High",o&&(document.cookie=e+"="+t+";"+c+";path=/;domain=."+C+";Priority=High",document.cookie=e+"="+t+";"+c+";path=/;domain=www."+C+";Priority=High",document.cookie=e+"="+t+";"+c+";path=/;domain=svetkrestanstva."+C+";Priority=High",document.cookie=e+"="+t+";"+c+";path=/;domain=blog."+C+";Priority=High",document.cookie=e+"="+t+";"+c+";path=/;domain=obchod."+C+";Priority=High",document.cookie=e+"="+t+";"+c+";path=/;Priority=High")}function Qt(e,t){if("cft_usertoken"===e&&console.log("Deleting usertoken cookie"),Zt(e)){$t(e,t,"expires=Thu, 01 Jan 1970 00:00:01 GMT",!0)}return!0}function en(){return Zt("cft_usertoken")}function tn(e){try{Qt("cft_logged",""),$t("cft_logged",!0),$t("cft_usertoken",e),bn()}catch(e){console.error("Error setting token: ",e)}}function nn(){var e=en();if(null==e||""===e)return null;var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(atob(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(n)}function on(e,t){document.querySelectorAll(e+" option").forEach((function(e){e.value.indexOf(t)>-1&&(e.selected=!0)}))}function rn(e,t){return null!==document.querySelector(e)&&void 0!==t?document.querySelector(e).value=t:null}function an(e,t,n){if(!(n<0)){var o=(t-e.scrollTop)/n*2;setTimeout((function(){e.scrollTop=e.scrollTop+o,an(e,t,n-2)}),10)}}function cn(e,t){setTimeout((function(){e.classList.contains("active")?e.classList.remove("active"):e.style.display="none"}),t)}function sn(e){var t=e.split(" ")[0];return t?(t=t.split("-"))[2]+"."+t[1]+"."+t[0]:""}function un(){var e=new Date,t=e.getDate(),n=e.getMonth()+1,o=e.getFullYear(),r=e.getHours(),a=e.getMinutes();return t<10&&(t="0"+t),n<10&&(n="0"+n),r<10&&(r="0"+r),a<10&&(a="0"+a),t+"."+n+"."+o+" "+r+":"+a}document.addEventListener("cft-adblock-detected",(function(){var e=Number(Zt(Ct));if(!(e&&(new Date).getTime()-e<864e5))if($t(Ct,(new Date).getTime()),document.getElementById("cft--adblock-popup"))Bt();else{var t=document.getElementById("cft--adblockPopupContainer");t||((t=document.createElement("div")).setAttribute("id","cft--adblockPopupContainer"),document.body.appendChild(t)),window.fetch(I+"adblock-popup",{cache:"no-cache"}).then((function(e){return e.text()})).then((function(e){t.innerHTML=e,Bt()}))}})),document.addEventListener("DOMContentLoaded",(function(){var e;window.location.href;_t(x),function(){if(Wt()){var e=document.getElementById("dsp-alt2-cta");e&&e.addEventListener("click",(function(){var t=e.dataset.amount;t&&!isNaN(t)?Qe(t=parseFloat(t),!1,"disqus","alt2",(function(){var t=e.closest(".dsp-overlay");t&&(t.style.display="none"),window.location.reload()})):console.warn("No amount found in disqus update amount button")}))}}(),(e=document.querySelector(".google-news-subscription--link"))&&e.addEventListener("click",(function(){var e=new XMLHttpRequest,t=JSON.stringify({url:window.location.origin+window.location.pathname,user_cookie
2:Zt(wt)||null});e.open("POST",x+"tracking/google-news-subscription",!0),e.setRequestHeader("Content-type","application/json; charset=utf-8"),en()&&e.setRequestHeader("Authorization","Bearer "+en()),e.send(t)})),Wt()&&"true"===Zt("cft_isdonor")||function(){if(location.host.startsWith("podpora."))return;var e="blocked",t="ok",n="unknown",o=2;function r(e){"complete"!==document.readyState?window.addEventListener("load",(function(){setTimeout(e,1500)}),{once:!0}):setTimeout(e,1500)}function a(){if(!document.querySelector('script[src*="prebid-ads.js"]'))return n;try{return"function"==typeof canIGetMoney&&!0===canIGetMoney()?t:e}catch(t){return e}}function c(){var o=document.getElementById("adblock-bait");if(!o)return n;var r=window.getComputedStyle(o);return 0===o.offsetHeight||0===o.offsetWidth||"none"===r.display||"hidden"===r.visibility?e:t}function i(){return document.querySelector('script[src*="securepubads.g.doubleclick.net"]')?window.googletag&&window.googletag.apiReady?t:e:n}function s(){return!1===navigator.onLine?n:e}function u(){return fetch("/prebid-ads.js",{cache:"no-store"}).then((function(e){return e.text()})).then((function(n){return n.includes("canIGetMoney")?t:e})).catch(s)}function l(){return fetch("https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js",{method:"HEAD",mode:"no-cors",cache:"no-store"}).then((function(){return t})).catch(s)}function d(){var t={prebid:a(),gpt:i(),bait:c()};Promise.all([u(),l()]).then((function(n){var r=Object.assign({},t,{marker:n[0],network:n[1]}),a=Object.keys(r).filter((function(t){return r[t]===e})).length;console.log("[adblock] signals",r),a>=o&&(console.log("Adblock active!"),document.dispatchEvent(new CustomEvent("cft-adblock-detected")))}))}r(d)}()}));var ln=function(e){var t=document.createElementNS("http://www.w3.org/2000/svg","svg"),n=document.createElementNS("http://www.w3.org/2000/svg","path");return t.setAttribute("width","20"),t.setAttribute("height","24"),t.setAttribute("fill",e),t.setAttribute("viewBox","0 0 448 512"),n.setAttribute("d","M443.5 162.6l-7.1-7.1c-4.7-4.7-12.3-4.7-17 0L224 351 28.5 155.5c-4.7-4.7-12.3-4.7-17 0l-7.1 7.1c-4.7 4.7-4.7 12.3 0 17l211 211.1c4.7 4.7 12.3 4.7 17 0l211-211.1c4.8-4.7 4.8-12.3.1-17z"),t.appendChild(n),t};function dn(){if(!window.cftShowId){var e=localStorage.getItem(Z);if(e){var t=qt(),n=JSON.stringify({tracking_visit_id:e,widget_id:null,device_type:t?t.device_type:null,device_os:t?t.device_os:null}),o=new XMLHttpRequest;o.responseType="json",o.onreadystatechange=function(){if(o.readyState===XMLHttpRequest.DONE){window.cftShowId=o.response.id;var e=document.querySelectorAll("a[href*='?referral_source=homepage_button']");e[0]&&e.forEach((function(e){e.href=e.href+"&referral_tracking_show_id="+o.response.id+"&redirect_url="+encodeURIComponent(window.location.pathname)}));var t=document.querySelectorAll("a[href*='?referral_source=disqus']");t[0]&&t.forEach((function(e){e.href=e.href+"&referral_tracking_show_id="+o.response.id+"&redirect_url="+encodeURIComponent(window.location.pathname)}))}},o.open("POST",x+"tracking/show"),o.setRequestHeader("Content-type","application/json; charset=utf-8"),o.setRequestHeader("Authorization","Bearer "+en()),o.send(n)}}}function fn(e){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase())}function pn(e){if("#"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#")){var t=e.split("#")[1];return t?new URLSearchParams(t):null}var n=Jt(e.split("#"),2),o=n[0],r=n[1],a=o.split("?")[1],c=r?r.split("?")[1]:void 0;if(!a&&!c)return null;var i=new URLSearchParams(a||"");if(c){var s,u=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=zt(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){i=!0,a=e},f:function(){try{c||null==n.return||n.return()}finally{if(i)throw a}}}}(new URLSearchParams(c));try{for(u.s();!(s=u.n()).done;){var l=Jt(s.value,2),d=l[0],f=l[1];i.set(d,f)}}catch(e){u.e(e)}finally{u.f()}}return i}function mn(){var e;(e=new XMLHttpRequest).open("GET",x+"one-tap-time",!0),e.setRequestHeader("Content-type","application/json; charset=utf-8"),e.responseType="json",e.onload=function(){if(e.response.error)console.error("Error:",e.response.error);else if(null!==e.response){var t,n=parseInt(Zt("cft--one-tap-reset-time"),10)||0,o=null===(t=e.response.time)||void 0===t?void 0:t.created_at,r=new Date(o).getTime();(!n||n<r)&&(Qt("cft--one-tap-time",""),Qt("cft--one-tap-count",""),$t("cft--one-tap-reset-time",r))}},e.send();var t=Zt("cft--one-tap-time"),n=Zt("cft--one-tap-count");if(!t||!n)return!0;t=parseInt(t,10),n=parseInt(n,10);var o=(new Date).getTime();return 1===n&&o-t>108e5||(2===n&&o-t>216e5||(3===n&&o-t>432e5||(4===n&&o-t>864e5||(5===n&&o-t>2592e5||(6===n&&o-t>6048e5||n>=7&&o-t>12096e5)))))}function yn(e){return e>999?Math.floor(e/1e3)+" tisÃc":e}function hn(){var e=Gt("token");if(!e){var t=pn(window.location.href,"?");t&&(e=t.get("token"))}console.log(e),e&&tn(e)}function vn(){var e=window.dataLayer||[];e&&document.getElementById("cr0wdfundingToolbox-locked")&&document.getElementById("cr0wdfundingToolbox-locked").hasChildNodes()&&e.push({event:"article_locked"})}function gn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e&&t&&(e.classList.add(t),n&&setTimeout((function(){e.classList.remove(t)}),n))}function wn(){var e={firstName:null,lastName:null,email:null,initials:null,doubleInitials:null};if(null===en())return e;var t=nn();if(!t)return e;var n=t.first_name||null,o=t.last_name||null,r=t.email||null,a=n?n.charAt(0).toUpperCase():"",c=n?n.charAt(0).toUpperCase():"";return c+=o?o.charAt(0).toUpperCase():"",""===a&&(a=r?r.charAt(0).toUpperCase():""),""===c&&(c=r?r.charAt(0).toUpperCase():""),e.firstName=n,e.lastName=o,e.email=r,e.initials=a,e.doubleInitials=c,e}function bn(){var e=wn();if(e&&e.initials){var t=document.querySelector(".cft--myAccount--mobile-account-button"),n=t&&t.querySelector(".login-button-letter");n&&(n.innerText=e.initials,n.classList.remove("cft--d-none"),t.classList.add("has-initials"));var o=document.getElementById("cft--loginButton");if(o){o.removeAttribute("data-icon");var r=o.querySelector(".login-button-letter"),a=o.querySelector(".login-button-text");r&&(r.innerText=e.initials),r&&r.innerText?r.classList.remove("cft--d-none"):r.classList.add("cft--d-none"),a&&(a.innerText=e.firstName?e.firstName:"Môj úÄet"),o.classList.add("logged")}}}function Sn(e){return Sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sn(e)}function _n(){_n=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var a=t&&t.prototype instanceof v?t:v,c=Object.create(a.prototype),i=new I(o||[]);return r(c,"_invoke",{value:q(e,n,i)}),c}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var f="suspendedStart",p="suspendedYield",m="executing",y="completed",h={};function v(){}function g(){}function w(){}var b={};u(b,c,(function(){return this}));var S=Object.getPrototypeOf,_=S&&S(S(P([])));_&&_!==n&&o.call(_,c)&&(b=_);var L=w.prototype=v.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 5,004 bytes, line 2
2))}function E(e,t){function n(r,a,c,i){var s=d(e[r],e,a);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==Sn(l)&&o.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,c,i)}),(function(e){n("throw",e,c,i)})):t.resolve(l).then((function(e){u.value=e,c(u)}),(function(e){return n("throw",e,c,i)}))}i(s.arg)}var a;r(this,"_invoke",{value:function(e,o){function r(){return new t((function(t,r){n(e,o,t,r)}))}return a=a?a.then(r,r):r()}})}function q(t,n,o){var r=f;return function(a,c){if(r===m)throw Error("Generator is already running");if(r===y){if("throw"===a)throw c;return{value:e,done:!0}}for(o.method=a,o.arg=c;;){var i=o.delegate;if(i){var s=A(i,o);if(s){if(s===h)continue;return s}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===f)throw r=y,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=m;var u=d(t,n,o);if("normal"===u.type){if(r=o.done?y:p,u.arg===h)continue;return{value:u.arg,done:o.done}}"throw"===u.type&&(r=y,o.method="throw",o.arg=u.arg)}}}function A(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),h;var a=d(r,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,h;var c=a.arg;return c?c.done?(n[t.resultName]=c.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,h):c:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(Sn(t)+" is not iterable")}return g.prototype=w,r(L,"constructor",{value:w,configurable:!0}),r(w,"constructor",{value:g,configurable:!0}),g.displayName=u(w,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,u(e,s,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},k(E.prototype),u(E.prototype,i,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,o,r,a){void 0===a&&(a=Promise);var c=new E(l(e,n,o,r),a);return t.isGeneratorFunction(n)?c:c.next().then((function(e){return e.done?e.value:c.next()}))},k(L),u(L,s,"Generator"),u(L,c,(function(){return this})),u(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=P,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(x),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(o,r){return i.type="throw",i.arg=t,n.next=o,r&&(n.method="next",n.arg=e),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var c=this.tryEntries[a],i=c.completion;if("root"===c.tryLoc)return r("end");if(c.tryLoc<=this.prev){var s=o.call(c,"catchLoc"),u=o.call(c,"finallyLoc");if(s&&u){if(this.prev<c.catchLoc)return r(c.catchLoc,!0);if(this.prev<c.finallyLoc)return r(c.finallyLoc)}else if(s){if(this.prev<c.catchLoc)return r(c.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return r(c.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var c=a?a.completion:{};return c.type=e,c.arg=t,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(c)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];
2if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;x(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:P(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),h}},t}function Ln(e,t,n,o,r,a,c){try{var i=e[a](c),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(o,r)}function kn(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var a=e.apply(t,n);function c(e){Ln(a,o,r,c,i,"next",e)}function i(e){Ln(a,o,r,c,i,"throw",e)}c(void 0)}))}}function En(e){return function(e){if(Array.isArray(e))return qn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return qn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qn(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function An(e){e.error||fetch(x+"one-tap-login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({credential:e.credential,user_cookie:Zt(wt)})}).then((function(e){return e.json()})).then((function(e){null!=e&&e.token&&(tn(e.token),xn(nn()?nn().email:null))}))}function Tn(e){if(!e)return P;try{var t=new URL(e).searchParams.get("redirectUrl");if(t)return P+t}catch(e){}return e}function xn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;localStorage.setItem("cft_usertoken",en());var t=new URLSearchParams(window.location.search).get("redirectUrl");t&&(location.href=P+t),document.body.classList.remove("lock-position"),_t(x,!0),document.cookie="cft_logged=;expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;domain=www."+C+";Priority=High",document.cookie="cft_logged=;expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;domain=.www."+C+";Priority=High",document.cookie="cft_logged=;expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;domain=svetkrestanstva."+C+";Priority=High",document.cookie="cft_logged=;expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;domain=obchod."+C+";Priority=High",document.cookie="cft_logged=;expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;Priority=High",document.cookie="cft_usertoken=;expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;domain=www."+C+";Priority=High",document.cookie="cft_usertoken=;expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;domain=.www."+C+";Priority=High",document.cookie="cft_usertoken=;expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;domain=svetkrestanstva."+C+";Priority=High",document.cookie="cft_usertoken=;expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;domain=obchod."+C+";Priority=High",document.cookie="cft_usertoken=;expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;Priority=High",Zt("cft_logged")&&0!=Zt("cft_logged")||localStorage.removeItem("userPageData"),Wn(!0,e),Et(!0);var n=document.querySelector("#cft--account-popup");n&&(n.style.display="none"),"undefined"!=typeof Toolbox&&Toolbox.loginSuccess&&Toolbox.loginSuccess()}function In(){document.querySelectorAll(".cft--social-login--btn").forEach((function(e){e.addEventListener("click",(function(){$t("return_to",encodeURIComponent(function(e){try{var t=new URL(O),n=new URL(e);return n.protocol=t.protocol,n.host=t.host,n.toString()}catch(t){return e}}(location.href)),null);var t=e.getAttribute("data-value"),n=e.classList.contains("widget-social-login-button")?"widget":"top-menu",o=encodeURIComponent(JSON.stringify({source:n}));if("google"===t)!function(e){wo.apply(this,arguments)}(o);else if("facebook"===t)!function(e){bo.apply(this,arguments)}(o);else if("apple"===t){var r=new Uint8Array(16);crypto.getRandomValues(r);var a=btoa(String.fromCharCode.apply(String,En(r))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");$t("apple_nonce",a,null);var c="".concat(x,"social-login/apple"),i="https://appleid.apple.com/auth/authorize?"+"client_id=".concat(encodeURIComponent("sk.postoj.web.signin"))+"&redirect_uri=".concat(encodeURIComponent(c))+"&response_type=code%20id_token&response_mode=form_post"+"&scope=".concat(encodeURIComponent("name email"))+"&state=".concat(o)+"&nonce=".concat(a);location.href=i}}))}))}function Pn(e){e.toolbox=!0,!1===e.postoj&&On(e)}function Bn(e){e.toolbox=!1,!0===e.postoj?function(e){var t=document.getElementById("reset-password-for-blog").value,
2n=document.querySelector('meta[name="csrf-token"]').content,o=new XMLHttpRequest;o.responseType="json",o.open("POST",t,!0);var r=new FormData;r.append("email",e.toolboxData.email),r.append("password",e.toolboxData.password),r.append("_token",n),o.onreadystatechange=function(){4===o.readyState&&200===o.status&&(tn(JSON.parse(o.response.body).user_token),xn(e.toolboxData.email),window.afterLoginFunction&&window.afterLoginFunction())},o.send(r)}(e):!1===e.postoj&&(document.getElementById("cft-login-error").style.display="block")}function Cn(e){e.postoj=!0,!1===e.toolbox&&On(e)}function jn(e){e.postoj=!1,!0===e.toolbox?On(e):!1===e.toolbox&&(document.getElementById("cft-login-error").style.display="block")}function On(e){var t=new XMLHttpRequest;t.open("POST",x+"reset-password-in-postoj",!0),t.setRequestHeader("Content-type","application/json; charset=utf-8"),t.setRequestHeader("Authorization","Bearer "+en()),t.responseType="json",t.send(JSON.stringify(e.toolboxData)),t.onreadystatechange=function(){if(4===t.readyState&&200===t.status){var n=document.getElementById("login-route-for-blog").value,o=document.querySelector('meta[name="csrf-token"]').content,r=new XMLHttpRequest;r.responseType="json",r.open("POST",n,!0);var a=new FormData;a.append("email",e.toolboxData.email),a.append("password",e.toolboxData.password),a.append("_token",o),o&&r.send(a),xn(e.toolboxData.email),window.afterLoginFunction&&window.afterLoginFunction()}}}function Nn(e,t){e.style.opacity="1",t.value="",t.classList.remove("error"),e.onclick=function(){if(""!==t.value){this.onclick=null,this.style.opacity="0.5";var e=new XMLHttpRequest;e.open("POST",x+"forgotten-password",!0),e.setRequestHeader("Content-type","application/json; charset=utf-8"),e.responseType="json",e.onload=function(){document.getElementById("cft--popup--password__reset-email").innerText=t.value,Gn(document.querySelector("#cft--account-popup"),"cft--popup--content","cft--popup--content__reset-password--success")},e.send(JSON.stringify({email:t.value}))}else t.classList.add("error")}}function Mn(){var e=I+"logged";!function(){var e=Xt(x+"user-page-data",Vt([]));localStorage.setItem("userPageData",JSON.stringify(e)),$t("cft_isdonor",e.isDonor?"true":"false");var t=[];if(e&&(t=e.activeNewslettersName))for(var n=document.getElementsByClassName("cft--newsletter-opening"),o=0;o<n.length;o++)for(var r=0;r<t.length;r++)n[o].classList.contains(t[r])&&n[o].classList.add("d-none");if(e&&e.isPostojRedactor){var a=document.querySelector(".cft--editArticle");a&&a.classList.remove("cft--d-none"),document.getElementsByClassName("article-detail--content").length>0&&Toolbox&&Toolbox.correctionSuggestions()}if(e&&e.isDonor){var c=document.querySelectorAll(".support-button");c&&c.forEach((function(t){var n=new Date;n>=new Date("2026-02-01")&&n<new Date("2026-04-01")?(t.classList.remove("btn-red"),t.classList.remove("btn-orange"),t.classList.remove("btn-green"),t.classList.add("btn-dark-orange"),window.innerWidth<1e3?t.innerText="2 % ð":t.innerText="Darujte 2 % ð",t.href="https://www.postoj.sk/189276/pomozete-rozvijat-najsilnejsi-konzervativny-dennik"):e.hasActiveRecurringCard&&e.monthlyCardDonationAmount&&!e.hasPendingComfortPayAmountChange&&!e.hasRecentUserInitiatedDonation?(t.classList.remove("btn-green"),t.classList.remove("btn-orange"),t.classList.add("btn-red"),window.matchMedia("(max-width: 989px)").matches?t.innerText="+ ".concat(1," pre Postoj"):t.innerText="+ ".concat(1," eur pre Postoj"),t.href="/moj-ucet#vasa-podpora?comfortPayDefaultAmount=1&isAmountDiff=1&referral_source=homepage_button&redirectUrl="+encodeURIComponent(window.location.pathname)):(t.classList.remove("btn-green"),t.classList.remove("btn-orange"),t.classList.add("btn-red"),t.innerText="Äakujeme",t.href="https://podpora.postoj.sk/vdaka-vam-11-rokov?referral_source=homepage_button")}))}if(e&&!e.isDonor){var i=document.querySelectorAll(".not-supporters-only");i.length&&i.forEach((function(e){e.classList.remove("cft--d-none")}))}mt()}(),window.fetch(e,{cache:"no-cache"}).then((function(e){return e.text()})).then((function(e){document.getElementById("cft--loginButton").insertAdjacentHTML("afterend",e),me("cft--logout-dropdown");var t=wn(),n=document.querySelector(".navigation-dropdown-menu--item.disabled");n&&null!=t&&t.email&&(n.innerText=t.email,n.title=t.email);var o=nn();if(n){var r=function(){var e=document.createElement("hr");return e.className="no-margin",e},a=n,c=function(e){a.insertAdjacentElement("afterend",e),a=e};if(c(r()),null!=o&&o.is_disqus_admin||null!=o&&o.is_eshop_admin){var i=function(e,t){var n=document.createElement("a");n.href=e,n.target="_blank",n.rel="noopener noreferrer";var o=document.createElement("div");return o.className="navigation-dropdown-menu--item",o.style.color="#e00",o.innerText=t,n.appendChild(o),n};null!=o&&o.is_disqus_admin&&c(i("https://diskusia.postoj.sk","Disqus administrácia")),null!=o&&o.is_eshop_admin&&(c(i("https://obchod.postoj.sk/admin","Obchod admin")),c(i("https://sklad.postoj.sk","Sklad"))),c(r())}}}))}function Rn(){document.addEventListener("click",(function(e){var t=e.target,n=document.getElementById("cft--header-dropdown-menu-wrapper");t===document.getElementById("cft--login")||document.getElementById("cft--login").contains(t)||n.c
2ontains(t)||(n.style.display="none")}))}function Dn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.querySelector("#cft--subscribe-author-popup");document.body.classList.add("lock-position"),null!==n&&((!t&&e.classList.contains("checked")||t&&!e.checked)&&(n.querySelector("#author-subscribe-section").classList.add("cft--d-none"),n.querySelector("#author-unsubscribe-section").classList.remove("cft--d-none"),document.getElementById("unsubscribe--popup--close-button").addEventListener("click",(function(e){e.preventDefault(),n.style.display="none",document.body.classList.remove("lock-position"),document.querySelectorAll("input.subscribe-to-author-switcher").forEach((function(e){e.checked=!0}))}))),n.style.display="block");var o=document.querySelectorAll(".cft--subscribeAuthorPopup__confirm-changes--close");o&&o.forEach((function(o){o.onclick=function(o){o.preventDefault(),n.style.display="none",document.body.classList.remove("lock-position"),t&&(e.checked=!1)}}))}function Hn(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];!n&&(e.querySelector(".button-text").innerText="PoÄkajte prosÃm");var r=window.cftShowId,a=x+"newsletter/subscribe-mail-with-register",c=t;o&&(c="author-".concat(t)),window.fetch(a+"?type=".concat(c,"&showId=").concat(r),{method:"POST",headers:{Accept:"application/json",Authorization:"Bearer "+en()}}).then((function(e){return e.json()})).then((function(r){if(o)if(r&&r.unsubscribeHash){var a=document.querySelectorAll(".subscribe-author-success-message");a[0]&&a.forEach((function(e){e.classList.remove("cft--d-none")})),n?e.checked=!0:(e.classList.add("checked"),e.querySelector(".button-text").innerText="Aktivovaný odber");var c=JSON.parse(localStorage.getItem("userPageData"));if(c&&c.newsletters){c.newsletters["author-".concat(t)]=r.unsubscribeHash;var i=JSON.stringify(c);localStorage.setItem("userPageData",i)}}else{var s=document.querySelectorAll(".subscribe-author-fail-message");s[0]&&s.forEach((function(e){e.classList.remove("cft--d-none")})),n&&(e.checked=!1)}else console.log("minizamyslenie res",r),r&&r.unsubscribeHash?(dt("ÃspeÅ¡ne ste sa prihlásili na odber MinizamyslenÃ.","success",!1,"toast--alert"),document.querySelectorAll(".subscribe-to-minizamyslenie-btn").forEach((function(e){e.classList.add("cft--d-none")}))):dt("Nepodarilo sa prihlásiÅ¥ na odber MinizamyslenÃ. Skúste to, prosÃm, neskôr.","error",!1,"toast--alert")}))}function Un(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=document.getElementById("cft--subscribe-author-form"),o=document.getElementById("subscribe-author-popup-button"),r=x+"newsletter/subscribe-mail-with-register";o&&o.addEventListener("click",(function(a){a.preventDefault(),gn(o,"active",200);var c=n.querySelector('input[name="cft--email"]'),i=n.querySelector('input[name="cft--terms-agreement"]');i.addEventListener("change",(function(){i.checked&&i.parentElement.classList.remove("error")}));var s=window.cftShowId,u=fn(c.value),l=i.checked;if(l){if(u&&l){o&&(o.innerText="PoÄkajte prosÃm");var d=e;t&&(d="author-".concat(e)),window.fetch(r+"?email=".concat(c.value,"&type=").concat(d,"&showId=").concat(s),{method:"POST",headers:{Accept:"application/json",Authorization:"Bearer "+en()}}).then((function(e){e.ok?(document.getElementById("author-subscribe-section").classList.add("cft--d-none"),document.getElementById("confirm-email-placeholder").innerText=c.value,document.getElementById("author-subscribe-confirm-section").classList.remove("cft--d-none")):(document.getElementById("author-subscribe-section").classList.add("cft--d-none"),document.getElementById("author-subscribe-error-section").classList.remove("cft--d-none"))}))}}else i.parentElement.classList.add("error")}))}function Jn(){var e=I+"account-popup";window.fetch(e,{cache:"default"}).then((function(e){return e.text()})).then((function(e){document.getElementById("cft--loginPopup").innerHTML=e,In();var t=document.querySelector("#cft--account-popup"),n=document.querySelectorAll("#cft--loginButton, .cft--myAccount--mobile-account-button");n.length>
20&&n.forEach((function(e){e.onclick=function(e){e.preventDefault(),Fn(t,"default"),window.afterLoginFunction=function(){}}}));var o=document.getElementById("cft--login--blog");o&&(o.onclick=function(e){e.preventDefault(),Fn(t,"blog-login")});var r=document.getElementById("cft--register--blog");r&&r.addEventListener("click",(function(e){e.preventDefault(),Fn(t,"blog-login","register")}));for(var a,c,i=t.getElementsByClassName("cft--popup--content-close"),s=0;s<i.length;s++)i[s].onclick=function(){t.style.display="none",document.body.classList.remove("lock-position")};a=document.getElementById("cft--forget-password__button"),c=document.getElementById("cft-forgotten-mail"),a&&Nn(a,c),Ne(),zn()}))}function zn(){for(var e=document.querySelectorAll(".cft--hide-show-password"),t=function(){var t=e[n].parentElement.querySelector("input");e[n].onclick=function(){t.type="password"===t.type?"text":"password",e.forEach((function(e){e.classList.toggle("cft--d-none")}))}},n=0;n<e.length;n++)t()}function Fn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"step-1";return document.body.classList.add("lock-position"),t&&(e.dataset.type=t),Gn(e,"cft--popup--content","cft--popup--content__login"),null!==e&&(e.style.display="block",Vn(n),function(){r=document.getElementById("cft--loginPopup--backButton"),r&&(r.removeEventListener("click",Zn),r.addEventListener("click",Zn)),o=document.getElementById("cft--loginPopup--continue-with-email"),o&&(o.removeEventListener("click",$n),o.addEventListener("click",$n),o.closest("form").addEventListener("submit",(function(e){e.preventDefault(),o.click()}))),n=document.getElementById("cft--forget-password"),n&&(n.removeEventListener("click",eo),n.addEventListener("click",eo)),t=document.getElementById("cft--loginPopup--forgotten-password-submit"),t&&(t.removeEventListener("click",to),t.addEventListener("click",to),t.closest("form").addEventListener("submit",(function(e){e.preventDefault(),t.click()}))),function(){var e=document.getElementById("cft--loginPopup--login-with-link");e&&(e.removeEventListener("click",no),e.addEventListener("click",no))}(),function(){var e=document.getElementById("cft--loginPopup--login");e&&(e.removeEventListener("click",Qn),e.addEventListener("click",Qn),e.closest("form").addEventListener("submit",(function(t){t.preventDefault(),e.click()})))}(),function(){var e=document.getElementById("cft--loginPopup--register");e&&(e.removeEventListener("click",co),e.addEventListener("click",co))}(),e=document.getElementById("cft-new-password"),e&&e.addEventListener("input",Kn),function(){var e=document.getElementById("cft-new-password-repeat"),t=document.getElementById("cft-new-password");e&&e.addEventListener("input",Yn);t&&t.addEventListener("input",Yn)}();var e;var t;var n;var o;var r;var a=new URLSearchParams(window.location.search);if(a&&a.has("email")){var c=a.get("email"),i=document.getElementById("cft-mail");i&&(i.value=c,document.getElementById("cft--loginPopup--continue-with-email").click())}}()),!0}function Gn(e,t,n){for(var o=e.getElementsByClassName(t),r=e.getElementsByClassName(n),a=0;a<o.length;a++)o[a].style.display="none";for(var c=0;c<r.length;c++)r[c].style.display="flex"}function Wn(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=document.getElementById("cft--loginButton"),n=document.getElementById("cft--registerButton"),o=document.querySelector(".cft--myAccount--mobile-account-button"),r=e||Wt();if(!1!==r){window.matchMedia("(max-width: 992px)").matches&&(t.classList.add("cft-account"),o.classList.add("logged"),o.classList.remove("not-logged")),n&&n.classList.add("cft--d-none"),t.onclick=function(){var e=document.getElementById("cft--header-dropdown-menu-wrapper");e.style.display="block"===e.style.display?"none":"block"},Mn(),Rn();var a=document.getElementById("cft--my-blog-account");a&&(a.onclick=function(e){e.preventDefault(),window.location.href=window.i18n.cftJSmessages.myAccountTexts.myAccountUrl+"#"+window.i18n.cftJSmessages.myAccountTexts.blogProfile}),o&&(o.onclick=function(e){e.preventDefault(),location.href.includes("/moj-ucet")?mo():window.location.href="/moj-ucet#menu"});var c=document.getElementById("cft--register--blog");c&&c.addEventListener("click",(function(e){e.preventDefault(),window.location.href=B+"#blogovaci-profil"}))}else{o.classList.remove("logged"),o.classList.add("not-logged"),Jn(),mt();var i=document.querySelectorAll(".not-supporters-only");
2i.length&&i.forEach((function(e){e.classList.remove("cft--d-none")}))}we(r)}function Xn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=new XMLHttpRequest;o.open("POST",x+"social-login",!0),o.setRequestHeader("Content-type","application/json; charset=utf-8"),o.responseType="json";var r=Zt("return_to"),a=Zt("cft_usercookie");Qt("return_to"),o.onload=function(){null==o.response&&(location.href=r||P),o.response.error?location.href=r||P:null!==o.response.token&&(tn(o.response.token),$t("cft_logged",!0,null),location.href=r||P)},o.send(JSON.stringify({source:e,accessToken:t,user_cookie:a,login_tracking_source:n||""}))}function Vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"cft--popup--content__login",n=document.querySelectorAll("."+t);n&&n.forEach((function(t){t.classList.add("cft--d-none"),t.classList.contains(e)&&t.classList.remove("cft--d-none")}))}function Yn(){var e=document.getElementById("cft-new-password").value,t=document.getElementById("cft-new-password-repeat"),n=t.value,o=(document.getElementById("rule-repeated-password"),document.getElementById("cft--loginPopup--register"));e!==n?(t.classList.add("error"),o&&(o.disabled=!0,o.classList.add("disabled"))):(t.classList.remove("error"),o&&(o.disabled=!1,o.classList.remove("disabled")))}function Kn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#cft-new-password",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"cft--loginPopup--register";console.log("checkPassword called with params:",e,t,n);var o=document.querySelector(t),r=o.closest("form");r||(r=o.closest(".cft--change-password"));var a=o.value||"",c=r.querySelector(".rule-min-length"),i=r.querySelector(".rule-uppercase"),s=r.querySelector(".rule-lowercase"),u=r.querySelector(".rule-number"),l=(document.getElementById(n),!0);return a.length>=8?(c.classList.add("valid"),c.classList.remove("invalid")):(c.classList.add("invalid"),c.classList.remove("valid"),l=!1),/[A-Z]/.test(a)?(i.classList.add("valid"),i.classList.remove("invalid")):(i.classList.add("invalid"),i.classList.remove("valid"),l=!1),/[a-z]/.test(a)?(s.classList.add("valid"),s.classList.remove("invalid")):(s.classList.add("invalid"),s.classList.remove("valid"),l=!1),/\d/.test(a)?(u.classList.add("valid"),u.classList.remove("invalid")):(u.classList.add("invalid"),u.classList.remove("valid"),l=!1),l&&(document.getElementById(n).disabled=!1,document.getElementById(n).classList.remove("disabled")),l}function Zn(e){e.preventDefault(),gn(e.currentTarget,"active",200),Vn("step-1")}function $n(e){e.preventDefault();var t=e.currentTarget;ro(t);var n=document.querySelector('form[name="cft-login-step-1"] input[name="cft-email"]');n.onfocus=function(){n.parentElement.classList.remove("error")},n&&!1!==fn(n.value)?function(e){document.querySelectorAll(".email-placeholder").forEach((function(t){t.innerText=e}));var t=new XMLHttpRequest;t.open("POST",x+"check-email",!0),t.setRequestHeader("Content-type","application/json; charset=utf-8"),t.responseType="json",t.onload=function(){if(t.response.error){var n=document.getElementById("cft--loginPopup--step-1-error");n&&oo(n,"Chyba pri pokuse o prihlásenie. Skúste to znova."),ao(document.getElementById("cft--loginPopup--continue-with-email"),"PokraÄovaÅ¥ s e-mailom")}else t.response.registered?(document.querySelectorAll(".email-placeholder").forEach((function(t){t.innerText=e})),ao(document.getElementById("cft--loginPopup--continue-with-email"),"PokraÄovaÅ¥ s e-mailom"),Vn("step-2-login")):(ao(document.getElementById("cft--loginPopup--continue-with-email"),"PokraÄovaÅ¥ s e-mailom"),Vn("step-2-register"))},t.onerror=function(){reject(new Error("Network error occurred"))},t.send(JSON.stringify({email:e}))}(n.value):(n.parentElement.classList.add("error"),ao(t,"PokraÄovaÅ¥ s e-mailom"))}function Qn(e){e.preventDefault();var t=e.currentTarget;ro(t);var n=document.querySelector('form[name="cft-login-step-1"] input[name="cft-email"]').value,o=document.querySelector('form[name="cft-step-2-login"] input[name="cft-password"]'),r=o.value;o.onfocus=function(){o.parentElement.classList.remove("error")},function(e,t,n){var o=new XMLHttpRequest;o.open("POST",x+"login",!0),o.setRequestHeader("Content-type","application/json; charset=utf-8"),o.responseType="json";var r=document.getElementById("login-route-for-blog")?document.getElementById("login-route-for-blog").value:null,a=document.querySelector('meta[name="csrf-token"]')?document.querySelector('meta[name="csrf-token"]').content:null,c={toolbox:null,postoj:null,toolboxData:e,postojData:s};if(e.source="top-menu",e.is_registration=!1,e.type="password",o.onload=function(){if(o.response.error)n.parentElement.classList.add("error"),ao(t,"PrihlásiÅ¥ sa"),Bn(c);else{if("string"==typeof o.response){if(null!==JSON.parse(o.response).token){var r=JSON.parse(o.response),a={};r.name&&(a=r.name.includes("@")?JSON.stringify({user:{email:r.name}}):JSON.stringify({user:{user_detail:{first_name:r.name}}})),$t("cft--user-details",a,null),Pn(c),tn(JSON.parse(o.response).token),xn(e.email)}}else if(null!==o.response.token){if(o.response.name)$t("cft--user-details",o.response.name.includes("@")?JSON.stringify({user:{email:o.response.name}}):JSON.stringify({user:{user_detail:{first_name:o.response.name}}}),null);Pn(c),tn(o.response.token),localStorage.removeItem(Y),xn(e.email)}if("/"!==window.location.pathname&&!window.location.pathname.includes("/prihlasenie"))return void window.location.reload();var i=document.querySelector("#cft--account-popup");i&&(i.style.display="none"),Pn(c),window.afterLoginFunction&&window.afterLoginFunction(),"read-later"===i.dataset.type&&(window.location.href=window.i18n.cftJSmessages.myAccountTexts.myAccountUrl+"#"+window.i18n.cftJSmessages.myAccountTexts.savedArticlesSlug)}},o.send(JSON.stringify(e)),r){var i=new XMLHttpRequest;i.responseType="json",i.open("POST",r,!0);var s=new FormData;s.append("email",e.email),s.append("password",e.password),s.append("_token",a),i.onreadystatechange=function(){4===i.readyState&&(200===i.status?Cn(c,i.response):(i.response&&i.response.user_exists,jn(c)))},i.send(s)}}
2({email:n,password:r,user_cookie:Zt(wt)},t,o)}function eo(){Vn("step-3-forgotten-password")}function to(e){e.preventDefault();var t=e.currentTarget,n=document.querySelector('form[name="cft-forgotten-password"] input[name="cft-forgotten-password-mail"]'),o=n.value;if(n.onfocus=function(){n.parentElement.classList.remove("error")},!1!==fn(o)){ro(t);var r=new XMLHttpRequest;r.open("POST",x+"forgotten-password",!0),r.setRequestHeader("Content-type","application/json; charset=utf-8"),r.responseType="json",r.onload=function(){r.response.error&&(n.parentElement.classList.add("error"),ao(t,"ObnoviÅ¥ heslo")),Vn("step-3-check-email")},r.send(JSON.stringify({email:o}))}else n.parentElement.classList.add("error")}function no(e){e.preventDefault();var t=document.querySelector('form[name="cft-login-step-1"] input[name="cft-email"]').value,n=e.currentTarget;ro(n);var o=new XMLHttpRequest;o.open("POST",x+"login-with-link",!0),o.setRequestHeader("Content-type","application/json; charset=utf-8"),o.responseType="json",o.onload=function(){if(ao(n,"PrihlásiÅ¥ overovacÃm odkazom",!0),o.response.error){var e=document.getElementById("cft--loginPopup--step-2-login-error");e&&oo(e,"Chyba pri pokuse o prihlásenie. Skúste to znova.")}else Vn("step-3-check-email")},o.send(JSON.stringify({email:t,type:"link",source:"top-menu"}))}function oo(e,t){e.innerText=t,e.style.display="block"}function ro(e){gn(e,"active",200),e.innerText="PoÄkajte prosÃm..."}function ao(e,t){e.innerText=t}function co(e){e.preventDefault();var t=e.currentTarget;ro(t);var n=document.querySelector('form[name="cft-login-step-1"] input[name="cft-email"]'),o=document.querySelector('form[name="cft-step-2-register"] input[name="cft-new-password"]'),r=document.querySelector('form[name="cft-step-2-register"] input[name="terms-agreed"]');if(o&&(o.oninput=function(){o.parentElement.classList.remove("error")}),r&&(r.onchange=function(){r.parentElement.classList.remove("error")}),!o||!o.value||o.value.length<6)return o.parentElement.classList.add("error"),void ao(t,"VytvoriÅ¥ heslo");if(!r.checked)return r.parentElement.classList.add("error"),void ao(t,"VytvoriÅ¥ heslo");var a=document.querySelector("#cft--account-popup"),c={email:n.value,password:o.value,agreePersonalData:r.checked,user_cookie:Zt(wt),blogger:a&&"blog-login"===a.dataset.type,source:"top-menu",type:"password"},i=new XMLHttpRequest;return i.open("POST",x+"register",!0),i.setRequestHeader("Content-type","application/json; charset=utf-8"),i.responseType="json",i.onload=function(){ao(t,"VytvoriÅ¥ heslo"),void 0!==i.response.error?("email-registered"===i.response.error.type||"password"===i.response.error.type)&&o.parentElement.classList.add("error"):("undefined"!=typeof Toolbox&&Toolbox.registerSuccess&&Toolbox.registerSuccess(),Vn("step-3-check-email"))},i.send(JSON.stringify(c))}function io(e){e.preventDefault(),Fn(document.querySelector("#cft--account-popup"),!1,!1,"step-3-forgotten-password")}function so(e){e.preventDefault(),Vn("step-1","widget-login")}function uo(e){e.preventDefault();var t=e.currentTarget;ro(t);var n=document.querySelector('form[name="cft-widgetLogin-step-1"] input[name="cft-email"]');if(n&&(n.onfocus=function(){n.classList.remove("error"),n.parentElement.classList.remove("error"),document.getElementById("cft--widgetLogin--step-1-error").style.display="none"}),!n||!1===fn(n.value)){var o=document.getElementById("cft--widgetLogin--step-1-error");return o&&oo(o,"Skontrolujte, prosÃm, Äi je uvedená adresa správna"),document.querySelector('form[name="cft-widgetLogin-step-1"]').classList.add("submitted"),n.parentElement.classList.add("error"),void ao(t,"PokraÄovat s e-mailem")}!function(e){document.querySelectorAll(".email-placeholder").forEach((function(t){t.innerText=e}));var t=new XMLHttpRequest;t.open("POST",x+"check-email",!0),t.setRequestHeader("Content-type","application/json; charset=utf-8"),t.responseType="json",t.onload=function(){if(t.response.error){var n=document.getElementById("cft--widgetLogin--step-1-error");n&&oo(n,"Chyba pri pokuse o prihlásenie. Skúste to znova."),ao(document.getElementById("cft--widgetLogin--continue-with-email"),"PokraÄovaÅ¥ s e-mailom")}else if(t.response.registered){ao(document.getElementById("cft--widgetLogin--continue-with-email"),"PokraÄovaÅ¥ s e-mailom");var o=document.querySelector('form[name="cft-forgotten-password"] input[name="cft-forgotten-password-mail"]');o&&(o.value=e),Vn("step-2-login","widget-login")}else ao(document.getElementById("cft--widgetLogin--continue-with-email"),"PokraÄovaÅ¥ s e-mailom"),Vn("step-2-register","widget-login")},t.onerror=function(){reject(new Error("Network error occurred"))},t.send(JSON.stringify({email:e}))}(n.value)}function lo(e){e.preventDefault();var t=e.currentTarget;ro(t);var n=document.querySelector('form[name="cft-widgetLogin-step-1"] input[name="cft-email"]').value,o=document.querySelector('form[name="cft-widgetLogin-step-2-login"] input[name="cft-password"]'),r=document.getElementById("cft--widgetLogin--step-2-login-error");
2if(!o||!o.value)return r.style.display="block",o.classList.add("error"),r.innerText="VyplÅte heslo",void ao(t,"PrihlásiÅ¥ sa");o&&(o.oninput=function(){o.classList.remove("error"),r.style.display="none"}),function(e,t){var n=new XMLHttpRequest;n.open("POST",x+"login",!0),n.setRequestHeader("Content-type","application/json; charset=utf-8"),e.source="widget",e.is_registration=!1,e.type="password",n.responseType="json",n.onload=function(){if(n.response.error){document.getElementById("cft--widgetLogin--step-2-login-error");document.querySelector('form[name="cft-widgetLogin-step-2-login"] input[name="cft-password"]').parentElement.classList.add("error"),ao(t,"PrihlásiÅ¥ sa")}else{if("string"==typeof n.response){if(null!==JSON.parse(n.response).token){var o=JSON.parse(n.response),r={};o.name&&(r=o.name.includes("@")?JSON.stringify({user:{email:o.name}}):JSON.stringify({user:{user_detail:{first_name:o.name}}})),$t("cft--user-details",r,null),tn(JSON.parse(n.response).token),xn(e.email)}}else if(null!==n.response.token){if(n.response.name)$t("cft--user-details",n.response.name.includes("@")?JSON.stringify({user:{email:n.response.name}}):JSON.stringify({user:{user_detail:{first_name:n.response.name}}}),null);tn(n.response.token),localStorage.removeItem(Y),xn(e.email)}if("/"!==window.location.pathname&&!window.location.pathname.includes("/prihlasenie"))return void window.location.reload();window.afterLoginFunction&&window.afterLoginFunction()}},n.send(JSON.stringify(e))}({email:n,password:o.value,user_cookie:Zt(wt)},t)}function fo(e){e.preventDefault();var t=e.currentTarget;if(t&&!t.classList.contains("disabled")){ro(t);var n=document.querySelector('form[name="cft-widgetLogin-step-2-register"]');n&&n.classList.add("submitted");var o=document.querySelector('form[name="cft-widgetLogin-step-1"] input[name="cft-email"]'),r=document.querySelector('form[name="cft-widgetLogin-step-2-register"] input[name="cft-new-password"]'),a=document.querySelector('form[name="cft-widgetLogin-step-2-register"] input[name="cft-repeat-password"]'),c=document.getElementById("register-error-message"),i=document.getElementById("cft--widgetLogin--step-2-register-error"),s=document.querySelector('form[name="cft-widgetLogin-step-2-register"] input[name="cft-agree"]');if(r&&(r.oninput=function(){r.classList.remove("error"),i.style.display="none"}),!r||!r.value||r.value.length<6)return c&&oo(i,"Heslo musà obsahovaÅ¥ aspoÅ 6 znakov"),r.classList.add("error"),void ao(t,"RegistrovaÅ¥ sa");if(r.value!==a.value)return a.parentElement.classList.add("error"),void ao(t,"RegistrovaÅ¥ sa");if(!s.checked)return s.parentElement.classList.add("error"),void ao(t,"RegistrovaÅ¥ sa");var u={email:o.value,password:r.value,agreePersonalData:s.checked,user_cookie:Zt(wt),blogger:!1,source:"widget",type:"password"},l=new XMLHttpRequest;return l.open("POST",x+"register",!0),l.setRequestHeader("Content-type","application/json; charset=utf-8"),l.responseType="json",l.onload=function(){ao(t,"RegistrovaÅ¥ sa"),void 0!==l.response.error?"email-registered"===l.response.error.type&&c&&oo(c,"Tento e-mail je už zaregistrovaný"):("undefined"!=typeof Toolbox&&Toolbox.registerSuccess&&Toolbox.registerSuccess(),Vn("step-3-check-email","widget-login"))},l.send(JSON.stringify(u))}}function po(e){e.preventDefault();var t=document.querySelector('form[name="cft-widgetLogin-step-1"] input[name="cft-email"]').value,n=e.currentTarget;ro(n);var o=new XMLHttpRequest;o.open("POST",x+"login-with-link",!0),o.setRequestHeader("Content-type","application/json; charset=utf-8"),o.responseType="json",o.onload=function(){if(ao(n,"PrihlásiÅ¥ overovacÃm odkazom",!0),o.response.error){var e=document.getElementById("cft--widgetLogin--step-2-login-error");e&&oo(e,"Chyba pri pokuse o prihlásenie. Skúste to znova.")}else Vn("step-3-check-email","widget-login")},o.send(JSON.stringify({email:t,type:"link",source:"widget"}))}function mo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.querySelector(".cft--myAccount--body"),n=document.querySelector(".cft--myAccount--mobile-menu");if(document.getElementById("main-header").classList.remove("cft--d-none"),t&&n){n.querySelectorAll(".second-level").forEach((function(e){e.classList.add("cft--d-none")})),e?(n.querySelector(".cft--myAccount--mobile-menu--back-to-menu").classList.remove("cft--d-none"),n.querySelector(".first-level").classList.add("cft--d-none"),n.querySelector(".second-level."+e).classList.remove("cft--d-none"),n.querySelector(".mobile-menu--header").classList.remove("cft--d-none"),n.querySelector(".close-menu-button").classList.add("cft--d-none"),n.querySelector(".mobile-menu--first-level--header").classList.add("cft--d-none")):(n.querySelector(".mobile-menu--header").classList.add("cft--d-none"),n.querySelector(".cft--myAccount--mobile-menu--back-to-menu").classList.add("cft--d-none"),n.querySelector(".first-level").classList.remove("cft--d-none"),n.querySelectorAll(".second-level").forEach((function(e){e.classList.add("cft--d-none")})),n.querySelector(".close-menu-button").classList.remove("cft--d-none"),n.querySelector(".mobile-menu--first-level--header").classList.remove("cft--d-none"),location.href=B+"#menu");var o=document.querySelector("#main-header");o&&o.classList.add("cft--d-none");var r=document.querySelector(".action-navigation");r&&r.classList.add("cft--d-none"),t.classList.add("cft--d-none"),n.classList.remove("cft--d-none")}}function yo(e){return ho.apply(this,arguments)}
2function ho(){return(ho=kn(_n().mark((function e(t){return _n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",crypto.subtle.digest("SHA-256",t));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vo(e){return btoa(String.fromCharCode.apply(String,En(new Uint8Array(e)))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function go(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:43,t=new Uint8Array(e);return crypto.getRandomValues(t),vo(t).slice(0,e)}function wo(){return(wo=kn(_n().mark((function e(t){var n,o,r;return _n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=go(64),e.t0=vo,e.next=4,yo((new TextEncoder).encode(n));case 4:e.t1=e.sent,o=(0,e.t0)(e.t1),$t("google_pkce_verifier",n),r=new URLSearchParams({client_id:"946531498754-jfqvmdquqa8ang7tt0cj8auhuhkh3dgs.apps.googleusercontent.com",redirect_uri:"".concat(O,"/moj-ucet/social-login/google"),response_type:"code",scope:"openid email profile",state:t,code_challenge:o,code_challenge_method:"S256",prompt:"select_account"}),location.href="https://accounts.google.com/o/oauth2/v2/auth?".concat(r.toString());case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function bo(){return(bo=kn(_n().mark((function e(t){var n,o,r;return _n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=go(64),e.t0=vo,e.next=4,yo((new TextEncoder).encode(n));case 4:e.t1=e.sent,o=(0,e.t0)(e.t1),$t("fb_pkce_verifier",n),r=new URLSearchParams({client_id:"1365976354226256",redirect_uri:"".concat(O,"/moj-ucet/social-login/facebook"),response_type:"code",scope:"email,public_profile",state:t,code_challenge:o,code_challenge_method:"S256"}),location.href="https://www.facebook.com/v25.0/dialog/oauth?".concat(r.toString());case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function So(e){var t=I+"thank-you-page";window.fetch(t).then((function(e){return e.text()})).then((function(t){switch(document.getElementById("cft--thankYou").innerHTML=t,e){case"success":document.querySelector("#cft--thankYou .cft--thankYouPage--title--success").classList.remove("cft--hidden"),document.querySelector("#cft--thankYou .cft--thankYouPage--message--success").classList.remove("cft--hidden"),document.querySelector("#cft--thankYou .cft--thankYouPage--icon--success").classList.remove("cft--hidden");break;case"error":document.querySelector("#cft--thankYou .cft--thankYouPage--title--error").classList.remove("cft--hidden"),document.querySelector("#cft--thankYou .cft--thankYouPage--message--error").classList.remove("cft--hidden"),document.querySelector("#cft--thankYou .cft--thankYouPage--icon--error").classList.remove("cft--hidden");break;case"exists":document.querySelector("#cft--thankYou .cft--thankYouPage--title--exists").classList.remove("cft--hidden"),document.querySelector("#cft--thankYou .cft--thankYouPage--message--exists").classList.remove("cft--hidden"),document.querySelector("#cft--thankYou .cft--thankYouPage--icon--error").classList.remove("cft--hidden");break;default:document.querySelector("#cft--thankYou .cft--thankYouPage--title--noPayment").classList.remove("cft--hidden"),document.querySelector("#cft--thankYou .cft--thankYouPage--message--noPayment").classList.remove("cft--hidden"),document.querySelector("#cft--thankYou .cft--thankYouPage--icon--error").classList.remove("cft--hidden")}var n=new XMLHttpRequest;n.open("POST",x+"check-user-after-donation",!0),n.setRequestHeader("Content-type","application/json; charset=utf-8"),n.responseType="json";var o=window.location.href.split("/")[window.location.href.split("/").length-1],r={userId:o=o.split("?")[0]};n.onload=function(){var e="https://www.postoj.sk/registracia?email=".concat(n.response.email);n.response.isLoggedIn&&(e="https://www.postoj.sk/moj-ucet"),n.response.isUsed&&(e="https://www.postoj.sk/prihlasenie-moj-ucet?email=".concat(n.response.email)),document.querySelector(".cft--button-container a").setAttribute("href",e)},n.send(JSON.stringify(r))}))}window.loadedLoginFunctions=!1,document.addEventListener("DOMContentLoaded",(function(){var e,t;if(en()&&bn(),hn(),function(){var e=new URL(location.href),t=e.searchParams.get("login_code");if(!t)return;fetch(x+"redeem-login-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:t})}).then((function(e){return e.json()})).then((function(t){null!=t&&t.token&&(tn(t.token),$t("cft_logged",!0,null),e.searchParams.delete("login_code"),history.replaceState({},"",e.toString()),location.reload())}))}(),function(){var e=document.querySelectorAll(".subscribe-to-author-btn"),t=document.querySelectorAll(".subscribe-to-author-switcher");if(e[0]){var n=e[0].dataset.author;if(n){var o=e[0].dataset.authorImg,r=I+"subscribe-author-popup?slug=".concat(n,"&author-image=").concat(o,"¤t_url=").concat(window.location.href);window.fetch(r,{cache:"no-cache"}).then((function(e){return e.text()})).then((function(o){document.getElementById("cft--authorNewsletterPopup").innerHTML=o,function(e,t,n){e.forEach((function(e){e.addEventListener("click",(function(t){t.preventDefault(),Zt("cft_logged")&&en()&&!e.classList.contains("checked")?Hn(e,n):Dn(e)}))})),t.forEach((function(e){e.addEventListener("change",(function(t){t.preventDefault(),Zt("cft_logged")&&en()&&e.checked?Hn(e,n,!0):Dn(e,!0)}))}))}
2(e,t,n)})).then((function(){Un(n),function(e){var t=document.getElementById("unsubscribe-author--popup--cancel-button");t&&t.addEventListener("click",(function(n){t.style.backgroundColor="#ccc",t.innerText="PoÄkajte prosÃm",n.preventDefault();var o={hash:JSON.parse(localStorage.getItem("userPageData")).newsletters["author-".concat(e)]},r=new XMLHttpRequest;r.open("POST",x+"newsletter/unsubscribeFromEmail",!0);var a=[];a.push({name:"Content-type",value:"application/json; charset=utf8"}),(a=Vt(a)).map((function(e){r.setRequestHeader(e.name,e.value)})),r.responseType="json",r.onload=function(){document.getElementById("author-unsubscribe-section").classList.add("cft--d-none"),r.response.error?document.getElementById("author-unsubscribe-error-section").classList.remove("cft--d-none"):(document.getElementById("author-unsubscribe-success-section").classList.remove("cft--d-none"),setTimeout((function(){window.location.reload()}),800))},r.send(JSON.stringify(o))}))}(n)})).then((function(){e.forEach((function(e){e.classList.remove("cft--d-none")}))}))}else e.forEach((function(e){e.style.display="none"}))}}(),function(){var e=document.querySelectorAll(".subscribe-to-minizamyslenie-btn");if(e[0]){var t=e[0].dataset.author,n=I+"subscribe-minizamyslenie-popup?current_url=".concat(window.location.href);window.fetch(n,{cache:"no-cache"}).then((function(e){return e.text()})).then((function(n){document.getElementById("cft--authorNewsletterPopup").innerHTML=n,e.forEach((function(e){e.addEventListener("click",(function(n){n.preventDefault(),Wt()&&en()?Hn(e,t,!1,!1):Dn(e)}))}))})).then((function(){Un(t,!1)}))}}(),(e=document.getElementById("cft--registerButton"))&&(e.onclick=function(){Fn(document.querySelector("#cft--account-popup"),"register","register")}),en()||localStorage.removeItem("userPageData"),window.location.search.includes("?odhlasenie-z-odberu-newslettra=1")||window.location.search.includes("&odhlasenie-z-odberu-newslettra=1"))!function(e){if(e)!function(e){var t=I+"unsubscribe-popup-smart/"+e;window.fetch(t,{cache:"no-cache"}).then((function(e){return e.text()})).then((function(t){document.getElementById("cft--loginPopup").innerHTML=t;var n=document.querySelector("#cft--unsubscribe-popup");Fn(n,"default",!1,"unsubscribe-smart");var o=document.getElementById("cft--popup__confirm-changes--close");o&&(o.onclick=function(e){e.preventDefault(),n.style.display="none",document.body.classList.remove("lock-position"),window.location.assign(P)});var r=document.getElementById("unsubscribe--popup--close-button");r&&(r.onclick=function(e){e.preventDefault(),document.querySelectorAll("input.subscribe-to-author-switcher").forEach((function(e){e.checked=!0})),n.style.display="none",document.body.classList.remove("lock-position"),window.location.assign(P)});var a=document.getElementById("unsubscribe--popup--login--smart");a&&(a.onclick=function(t){document.getElementById("unsubscribe-popup-smart--buttons").style.display="none",document.getElementById("unsubscribe-popup-smart--wait").style.display="block",t.preventDefault();var n={hash:e},o=new XMLHttpRequest;o.open("POST",x+"newsletter/unsubscribeFromEmail",!0);var r=[];r.push({name:"Content-type",value:"application/json; charset=utf8"}),(r=Vt(r)).map((function(e){o.setRequestHeader(e.name,e.value)})),o.responseType="json",o.onload=function(){o.response.error?(document.getElementById("unsubscribe-smart-question").style.display="none",document.getElementById("unsubscribe-smart-failure").style.display="block"):(document.getElementById("unsubscribe-smart-question").style.display="none",document.getElementById("unsubscribe-smart-success").style.display="block")},o.send(JSON.stringify(n))})}))}(e);else{var t=I+"unsubscribe-popup";window.fetch(t,{cache:"no-cache"}).then((function(e){return e.text()})).then((function(e){document.getElementById("cft--loginPopup").innerHTML=e;var t=document.querySelector("#cft--unsubscribe-popup");Wt()?document.getElementById("unsubscribe--popup--notLoggedIn").style.display="none":document.getElementById("unsubscribe--popup--loggedIn").style.display="none",Fn(t,"default",!1,"unsubscribe");var n=document.getElementById("cft--popup__confirm-changes--close");n&&(n.onclick=function(e){e.preventDefault(),t.style.display="none",document.body.classList.remove("lock-position"),window.location.assign(P)});var o=document.getElementById("unsubscribe--popup--login");o&&(o.onclick=function(e){e.preventDefault(),t.style.display="none",document.body.classList.remove("lock-position"),setTimeout((function(){Wn(),setTimeout((function(){var e=document.querySelector("#cft--account-popup");e&&Fn(e,"default")}),1e3)}),200)})}))}}(new URLSearchParams(window.location.search).get("newsletterHash"));else if(location.pathname.endsWith("/moj-ucet/social-login/google")){var n=new URL(location.href),o=n.searchParams.get("code"),r=n.searchParams.get("state"),a=Zt("google_pkce_verifier"),c=Zt("return_to");Qt("return_to"),o&&a?($t("cft--postpone-widgets",!0,null),fetch(x+"social-login/google/code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:o,codeVerifier:a,state:r})}).then((function(e){return e.json()})).then((function(e){null!=e&&e.token&&(tn(e.token),$t("cft_logged",!0,null),Qt("google_pkce_verifier")),location.href=Tn(c)})).catch((function(){location.href=Tn(c)}))):location.href=Tn(c)}else if(location.pathname.endsWith("/moj-ucet/social-login/facebook")){var i=new URL(location.href),s=i.searchParams.get("code"),u=i.searchParams.get("state"),l=Zt("fb_pkce_verifier"),d=Zt("return_to");Qt("return_to"),s&&l?($t("cft--postpone-widgets",!0,null),fetch(x+"social-login/facebook/code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:s,codeVerifier:l,state:u})}).then((function(e){return e.json()})).then((function(e){if(null!=e&&e.token)tn(e.token),$t("cft_logged",!0,null),Qt("fb_pkce_verifier"),location.href=Tn(d);else if("facebook_no_email"===(null==e?void 0:e.error_code)){var t=new URL(d||P);t.searchParams.set("fb_no_email","1"),location.href=t.toString()}else location.href=Tn(d)})).catch((function(){location.href=Tn(d)}))):location.href=Tn(d)}else window.location.href.includes("moj-ucet/social-login")?function(){var e=pn(location.href),t=e.get("access_token"),n=e.get("state");if(t)if(location.href.includes("google")){var o=JSON.parse(n);Xn("google",t,o.source?o.source:null)}else{var r=JSON.parse(n);Xn("facebook",t,r.source?r.source:null)}}():null===document.getElementById("cft--login")||window.loadedLoginFunctions||(Wn(),setTimeout((function(){window.loadedLoginFunctions=!1}),1e3));setTimeout((function(){if(!localStorage.getItem("cft_usertoken")&&(window.location.search.includes("?showLoginPopup")||window.location.search.includes("&showLoginPopup")||window.location.href.includes(P+"/registracia"))){var e=new URLSearchParams(window.location.search).get("showLoginPopup");e?"register"==e?Fn(document.querySelector("#cft--account-popup"),"register","register"):Fn(document.querySelector("#cft--account-popup"),"default"):Fn(document.querySelector("#cft--account-popup"),"register","register")}if(sessionStorage.getItem("cft_fb_no_email")||new URLSearchParams(location.search).get("fb_no_email")){if(sessionStorage.removeItem("cft_fb_no_email"),console.log("Handling Facebook no email case"),new URLSearchParams(location.search).get("fb_no_email")){var t=new URL(location.href);t.searchParams.delete("fb_no_email"),history.replaceState(null,"",t.toString())}var n=document.querySelector("#cft--account-popup");if(n){console.log("Showing login popup with Facebook no email error"),Fn(n,"default"),document.querySelectorAll('[data-value="facebook"]').forEach((function(e){return e.style.display="none"}));var o=document.getElementById("cft--loginPopup--step-1-error");o&&oo(o,"Facebook nám neposkytol VaÅ¡u emailovú adresu, skúste sa prihlásiÅ¥ iným spôsobom.")}}}),1500),(t=document.querySelectorAll(".subscribe-form"))[0]&&t.forEach((function(e){var t=e.querySelector("input[type=submit]");e.addEventListener("submit",(function(e){e.preventDefault(),t.click()})),t.addEventListener("click",(function(t){t.preventDefault(),e.classList.add("submitted");var n=e.querySelector('input[name="subscribe-email"]');if(fn(n.value)){var o=window.cftShowId,r=x+"newsletter/subscribe-mail-with-register",a=e.classList.contains("chw")?"svet-krestanstva":"postoj";window.fetch(r+"?email=".concat(n.value,"&type=").concat(a,"&showId=").concat(o),{method:"POST",headers:{Accept:"application/json",Authorization:"Bearer "+en()}}).then((function(e){if(e.ok)return e.json();throw dt("Nastala chyba, prosÃm opakujte akciu neskôr alebo nás kontaktujte","error",!1,"toast--alert"),new Error("Failed to subscribe")})).then((function(e){(window.dataLayer||[]).push({event:"newsletter_subscribe_submit",type:a,user:{id:e.portal_user_id}}),dt("Potvrdenie o prihlásenà k odberu newslettera bolo odoslané","success",!1,"toast--alert")})).catch((function(e){console.error("Error:",e),dt("Nastala chyba, prosÃm opakujte akciu neskôr alebo nás kontaktujte","error",!1,"toast--alert")}))}else n.classList.add("error")}))})),document.addEventListener("cftInstantAmountChange",(function(e){e.detail&&e.detail.value&&null!==e.detail.value&&!isNaN(e.detail.value)?setTimeout((function(){ce("apple-pay-button","google-pay-button",null,e.detail.value,e.detail.widget_id,e.detail.periodicity,!0)}),0):console.warn("Received cftInstantAmountChange event with invali
2d value:",e.detail)})),setTimeout((function(){if("undefined"!=typeof google&&google&&google.accounts&&google.accounts.id){google.accounts.id.initialize({client_id:"946531498754-jfqvmdquqa8ang7tt0cj8auhuhkh3dgs.apps.googleusercontent.com",callback:An,cancel_on_tap_outside:!1});en()||Zt("cft_logged")&&"false"!=Zt("cft_logged")||mn()&&(google.accounts.id.prompt(),$t("cft--one-tap-time",(new Date).getTime()),$t("cft--one-tap-count",Zt("cft--one-tap-count")?parseInt(Zt("cft--one-tap-count"))+1:1))}}),1e3)})),window.loginRedirectBack=!1,document.addEventListener("DOMContentLoaded",(function(){var e;null!==document.getElementById("cft--loginPage")&&window.location.href.indexOf("/prihlasenie-moj-ucet")>-1&&(Wt()?location.href=window.i18n.cftJSmessages.myAccountTexts.myAccountUrl:(e=I+"login-page",window.fetch(e).then((function(e){return e.text()})).then((function(e){var t,n,o;document.getElementById("cft--loginPage").innerHTML=e,document.querySelector('form[name="cft--login"]').addEventListener("submit",(function(e){e.preventDefault(),window.loginRedirectBack=!1;var t={email:document.querySelector('form[name="cft--login"] input[name="cft-email"]').value,password:document.querySelector('form[name="cft--login"] input[name="cft-password"]').value,user_cookie:Zt(wt)},n=new XMLHttpRequest;n.open("POST",x+"login",!0),n.setRequestHeader("Content-type","application/json; charset=utf-8"),n.responseType="json",n.onload=function(){if(n.response.error)switch(n.response.type){case"email":Yt('form[name="cft--login"] span.cft-email','form[name="cft-*login"] input[name="cft-email"]',window.i18n.cftJSmessages.loginTexts.incorrectEmail);break;case"password":Yt('form[name="cft--login"] span.cft-password','form[name="cft--login"] input[name="cft-password"]',window.i18n.cftJSmessages.loginTexts.incorrectPassword)}else localStorage.removeItem(Y),"string"==typeof n.response?null!==JSON.parse(n.response).token&&tn(JSON.parse(n.response).token):null!==n.response.token&&tn(n.response.token),setTimeout((function(){window.location.search.includes("redirectBack=1")&&window.history.length>2&&!window.loginRedirectBack?(window.history.go(-1),window.loginRedirectBack=!0):window.loginRedirectBack||(location.href=window.i18n.cftJSmessages.myAccountTexts.myAccountUrl)}),200)},n.send(JSON.stringify(t))})),document.querySelector('form[name="cft--login"] button[type="submit"]').addEventListener("click",(function(e){var t=document.createEvent("Event");t.initEvent("submit",!1,!0),e.target.closest("form").dispatchEvent(t)})),t=document.getElementById("cft--forgottenPassword"),n=document.querySelector('form[name="cft--forgottenPassword"]'),o=document.querySelector('form[name="cft--login"]'),t.addEventListener("click",(function(e){e.preventDefault(),o.style.display="none",Kt(n,500)})),document.querySelector('form[name="cft--forgottenPassword"]').addEventListener("submit",(function(e){e.preventDefault(),document.querySelector('form[name="cft--forgottenPassword"] button[type="submit"]').setAttribute("disabled","disabled"),document.querySelector('form[name="cft--forgottenPassword"] button[type="submit"]').innerText=window.i18n.cftJSmessages.loginTexts.loadingText;var t={email:document.querySelector('form[name="cft--forgottenPassword"] input[name="cft-email"]').value},n=new XMLHttpRequest;n.open("POST",x+"forgotten-password",!0),n.setRequestHeader("Content-type","application/json; charset=utf-8"),n.responseType="json",n.onload=function(){if(n.response.error)Yt('form[name="cft--forgottenPassword"] span.cft-email','form[name="cft-forgottenPassword"] input[name="cft-email"]',window.i18n.cftJSmessages.loginTexts.incorrectEmail);else{document.querySelector("form[name=cft--forgottenPassword] .cft-forgottenPassword--change").classList.add("cft--d-none"),document.querySelector("form[name=cft--forgottenPassword] .cft-forgottenPassword--change__success").classList.remove("cft--d-none");var e=document.querySelector("form[name=cft--forgottenPassword] .cft-forgottenPassword--change__success span.email");null!==e&&(e.innerText=t.email)}document.querySelector('form[name="cft--forgottenPassword"] button[type="submit"]').removeAttribute("disabled"),document.querySelector('form[name="cft--forgottenPassword"] button[type="submit"]').innerText=window.i18n.cftJSmessages.loginTexts.resetPassword},n.send(JSON.stringify(t))})),document.querySelector('form[name="cft--forgottenPassword"] button[type="submit"]').addEventListener("click",(function(e){var t=document.createEvent("Event");t.initEvent("submit",!1,!0),e.target.closest("form").dispatchEvent(t)})),function(){var e=document.getElementById("cft--showLoginPage"),t=document.querySelector('form[name="cft--forgottenPassword"]'),n=document.querySelector('form[name="cft--login"]');e.addEventListener("click",(function(e){e.preventDefault(),t.style.display="none",Kt(n,500)}))}(),new URL(window.location.href).searchParams.get("email")&&(document.getElementById("cft-emailLoginPage").value=new URL(window.location.href).searchParams.get("email"))}))))}
2)),document.addEventListener("DOMContentLoaded",(function(){null!==document.getElementById("cft--thankYou")&&!1!==Wt()&&at()})),document.addEventListener("DOMContentLoaded",(function(){var e="/dakujeme";if(e.indexOf("www.")>-1?e=e.split("www.")[1]:e.indexOf("://")>-1&&(e=e.split("://")[1]),window.location.href.indexOf(e)>-1){var t=new URLSearchParams(window.location.search);if(null!==t.get("AMT")&&null!==t.get("ECDSA")){var n=[];window.location.href.indexOf("/")>-1&&window.location.href.includes(e)&&(n=window.location.href.split(e)[1].split("/"));for(var o="",r=0;r<n.length;r++)"?"!==n[r].charAt(0)&&""!==n[r]&&(o+="/"+n[r]);(function(e){var t=x+"payment/card-pay/response";e.indexOf("TRES")>-1&&e.indexOf("CID")>-1&&(t=x+"payment/comfort-pay/response");var n=Xt(t+e,null);if(null!==n.error&&void 0!==n.error)switch(n.error){case"payment_exists":So("exists");break;case"payment_not_valid":So("no-payment");break;case"payment_error":So("error")}else So("success")})(o+="?"+window.location.href.split("?")[1])}else So("no-payment")}}));var _o={renderRegister:function(e){var t="".concat(I,"register-form");window.fetch(t,{cache:"force-cache"}).then((function(e){return e.text()})).then((function(t){null!==document.getElementById(e)&&(document.getElementById(e).innerHTML=t,je(),Oe(),Ne())}))}};void 0!==window&&(window.Cft=_o),document.addEventListener("DOMContentLoaded",(function(){var e;(e=document.querySelectorAll(".speech-button--main")).length>0&&e.forEach((function(e){e.addEventListener("click",(function(e){var t;console.log("playButton clicked",e);var n={article_id:JSON.parse(null===(t=document.querySelector('[name="cft--readLater--data"]'))||void 0===t?void 0:t.value).id,user_cookie:Zt("cft_usercookie")},o=new XMLHttpRequest;o.open("POST",x+"tracking/article-listened",!0),o.setRequestHeader("Content-type","application/json; charset=utf-8"),o.setRequestHeader("Authorization","Bearer "+en()),o.responseType="json",o.onload=function(){200===o.status?"success"==o.response.status&&console.log("Article listened tracked successfully"):console.error("Error tracking article listened:",o.status,o.statusText)},o.send(JSON.stringify(n))}))}))}))},543:function(e,t,n){var o;e=n.nmd(e),function(){var r,a="Expected a function",c="__lodash_hash_undefined__",i="__lodash_placeholder__",s=16,u=32,l=64,d=128,f=256,p=1/0,m=9007199254740991,y=NaN,h=4294967295,v=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",u],["partialRight",l],["rearg",f]],g="[object Arguments]",w="[object Array]",b="[object Boolean]",S="[object Date]",_="[object Error]",L="[object Function]",k="[object GeneratorFunction]",E="[object Map]",q="[object Number]",A="[object Object]",T="[object Promise]",x="[object RegExp]",I="[object Set]",P="[object String]",B="[object Symbol]",C="[object WeakMap]",j="[object ArrayBuffer]",O="[object DataView]",N="[object Float32Array]",M="[object Float64Array]",R="[object Int8Array]",D="[object Int16Array]",H="[object Int32Array]",U="[object Uint8Array]",J="[object Uint8ClampedArray]",z="[object Uint16Array]",F="[object Uint32Array]",G=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,X=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,K=RegExp(V.source),Z=RegExp(Y.source),$=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,oe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(re.source),ce=/^\s+/,ie=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ye=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,we=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,Se=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 1,813 bytes, line 2
27f]/g,_e=/($^)/,Le=/['\n\r\u2028\u2029\\]/g,ke="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",qe="\\u2700-\\u27bf",Ae="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",xe="\\ufe0e\\ufe0f",Ie="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pe="['â]",Be="["+ke+"]",Ce="["+Ie+"]",je="["+Ee+"]",Oe="\\d+",Ne="["+qe+"]",Me="["+Ae+"]",Re="[^"+ke+Ie+Oe+qe+Ae+Te+"]",De="\\ud83c[\\udffb-\\udfff]",He="[^"+ke+"]",Ue="(?:\\ud83c[\\udde6-\\uddff]){2}",Je="[\\ud800-\\udbff][\\udc00-\\udfff]",ze="["+Te+"]",Fe="\\u200d",Ge="(?:"+Me+"|"+Re+")",We="(?:"+ze+"|"+Re+")",Xe="(?:['â](?:d|ll|m|re|s|t|ve))?",Ve="(?:['â](?:D|LL|M|RE|S|T|VE))?",Ye="(?:"+je+"|"+De+")"+"?",Ke="["+xe+"]?",Ze=Ke+Ye+("(?:"+Fe+"(?:"+[He,Ue,Je].join("|")+")"+Ke+Ye+")*"),$e="(?:"+[Ne,Ue,Je].join("|")+")"+Ze,Qe="(?:"+[He+je+"?",je,Ue,Je,Be].join("|")+")",et=RegExp(Pe,"g"),tt=RegExp(je,"g"),nt=RegExp(De+"(?="+De+")|"+Qe+Ze,"g"),ot=RegExp([ze+"?"+Me+"+"+Xe+"(?="+[Ce,ze,"$"].join("|")+")",We+"+"+Ve+"(?="+[Ce,ze+Ge,"$"].join("|")+")",ze+"?"+Ge+"+"+Xe,ze+"+"+Ve,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Oe,$e].join("|"),"g"),rt=RegExp("["+Fe+ke+Ee+xe+"]"),at=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ct=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,st={};
vendor: 14,756 bytes, line 2
2st[N]=st[M]=st[R]=st[D]=st[H]=st[U]=st[J]=st[z]=st[F]=!0,st[g]=st[w]=st[j]=st[b]=st[O]=st[S]=st[_]=st[L]=st[E]=st[q]=st[A]=st[x]=st[I]=st[P]=st[C]=!1;var ut={};ut[g]=ut[w]=ut[j]=ut[O]=ut[b]=ut[S]=ut[N]=ut[M]=ut[R]=ut[D]=ut[H]=ut[E]=ut[q]=ut[A]=ut[x]=ut[I]=ut[P]=ut[B]=ut[U]=ut[J]=ut[z]=ut[F]=!0,ut[_]=ut[L]=ut[C]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ft=parseInt,pt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,mt="object"==typeof self&&self&&self.Object===Object&&self,yt=pt||mt||Function("return this")(),ht=t&&!t.nodeType&&t,vt=ht&&e&&!e.nodeType&&e,gt=vt&&vt.exports===ht,wt=gt&&pt.process,bt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||wt&&wt.binding&&wt.binding("util")}catch(e){}}(),St=bt&&bt.isArrayBuffer,_t=bt&&bt.isDate,Lt=bt&&bt.isMap,kt=bt&&bt.isRegExp,Et=bt&&bt.isSet,qt=bt&&bt.isTypedArray;function At(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Tt(e,t,n,o){for(var r=-1,a=null==e?0:e.length;++r<a;){var c=e[r];t(o,c,n(c),e)}return o}function xt(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e}function It(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Pt(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(!t(e[n],n,e))return!1;return!0}function Bt(e,t){for(var n=-1,o=null==e?0:e.length,r=0,a=[];++n<o;){var c=e[n];t(c,n,e)&&(a[r++]=c)}return a}function Ct(e,t){return!!(null==e?0:e.length)&&zt(e,t,0)>-1}function jt(e,t,n){for(var o=-1,r=null==e?0:e.length;++o<r;)if(n(t,e[o]))return!0;return!1}function Ot(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r}function Nt(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e}function Mt(e,t,n,o){var r=-1,a=null==e?0:e.length;for(o&&a&&(n=e[++r]);++r<a;)n=t(n,e[r],r,e);return n}function Rt(e,t,n,o){var r=null==e?0:e.length;for(o&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function Dt(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}var Ht=Xt("length");function Ut(e,t,n){var o;return n(e,(function(e,n,r){if(t(e,n,r))return o=n,!1})),o}function Jt(e,t,n,o){for(var r=e.length,a=n+(o?1:-1);o?a--:++a<r;)if(t(e[a],a,e))return a;return-1}function zt(e,t,n){return t==t?function(e,t,n){var o=n-1,r=e.length;for(;++o<r;)if(e[o]===t)return o;return-1}(e,t,n):Jt(e,Gt,n)}function Ft(e,t,n,o){for(var r=n-1,a=e.length;++r<a;)if(o(e[r],t))return r;return-1}function Gt(e){return e!=e}function Wt(e,t){var n=null==e?0:e.length;return n?Kt(e,t)/n:y}function Xt(e){return function(t){return null==t?r:t[e]}}function Vt(e){return function(t){return null==e?r:e[t]}}function Yt(e,t,n,o,r){return r(e,(function(e,r,a){n=o?(o=!1,e):t(n,e,r,a)})),n}function Kt(e,t){for(var n,o=-1,a=e.length;++o<a;){var c=t(e[o]);c!==r&&(n=n===r?c:n+c)}return n}function Zt(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}function $t(e){return e?e.slice(0,hn(e)+1).replace(ce,""):e}function Qt(e){return function(t){return e(t)}}function en(e,t){return Ot(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,o=e.length;++n<o&&zt(t,e[n],0)>-1;);return n}function on(e,t){for(var n=e.length;n--&&zt(t,e[n],0)>-1;);return n}var rn=Vt({Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ã:"C",ç:"c",Ã:"D",ð:"d",Ã:"E",Ã:"E",Ã:"E",Ã:"E",è:"e",é:"e",ê:"e",ë:"e",Ã:"I",Ã:"I",Ã:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ã:"N",ñ:"n",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ã:"U",Ã:"U",Ã:"U",Ã:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Ã:"Ae",æ:"ae",Ã:"Th",þ:"th",Ã:"ss",Ä:"A",Ä:"A",Ä:"A",Ä:"a",Ä:"a",Ä
:"a",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"D",Ä:"D",Ä:"d",Ä:"d",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"G",Ä:"G",Ä :"G",Ä¢:"G",Ä:"g",Ä:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",İ:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å:"l",Å:"l",Å:"N",Å
:"N",Å:"N",Å:"N",Å:"n",Å:"n",Å:"n",Å:"n",Å:"O",Å:"O",Å:"O",Å:"o",Å:"o",Å:"o",Å:"R",Å:"R",Å:"R",Å:"r",Å:"r",Å:"r",Å:"S",Å:"S",Å:"S",Å :"S",Å:"s",Å:"s",Å:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Ű:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"s"}),an=Vt({"&":"&","<":"<",">":">",'"':""","'":"'"});function cn(e){return"\\"+lt[e]}function sn(e){return rt.test(e)}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,o=e.length,r=0,a=[];++n<o;){var c=e[n];c!==t&&c!==i||(e[n]=i,a[r++]=n)}return a}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function mn(e){return sn(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):Ht(e)}function yn(e){return sn(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function hn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var vn=Vt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var gn=function e(t){var n,o=(t=null==t?yt:gn.defaults(yt.Object(),t,gn.pick(yt,ct))).Array,ie=t.Date,ke=t.Error,Ee=t.Function,qe=t.Math,Ae=t.Object,Te=t.RegExp,xe=t.String,Ie=t.TypeError,Pe=o.prototype,Be=Ee.prototype,Ce=Ae.prototype,je=t["__core-js_shared__"],Oe=Be.toString,Ne=Ce.hasOwnProperty,Me=0,Re=(n=/[^.]+$/.exec(je&&je.keys&&je.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",De=Ce.toString,He=Oe.call(Ae),Ue=yt._,Je=Te("^"+Oe.call(Ne).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ze=gt?t.Buffer:r,Fe=t.Symbol,Ge=t.Uint8Array,We=ze?ze.allocUnsafe:r,Xe=ln(Ae.getPrototypeOf,Ae),Ve=Ae.create,Ye=Ce.propertyIsEnumerable,Ke=Pe.splice,Ze=Fe?Fe.isConcatSpreadable:r,$e=Fe?Fe.iterator:r,Qe=Fe?Fe.toStringTag:r,nt=function(){try{var e=pa(Ae,"defineProperty");return e({},"",{}),e}catch(e){}}(),rt=t.clearTimeout!==yt.clearTimeout&&t.clearTimeout,lt=ie&&ie.now!==yt.Date.now&&ie.now,pt=t.setTimeout!==yt.setTimeout&&t.setTimeout,mt=qe.ceil,ht=qe.floor,vt=Ae.getOwnPropertySymbols,wt=ze?ze.isBuffer:r,bt=t.isFinite,Ht=Pe.join,Vt=ln(Ae.keys,Ae),wn=qe.max,bn=qe.min,Sn=ie.now,_n=t.parseInt,Ln=qe.random,kn=Pe.reverse,En=pa(t,"DataView"),qn=pa(t,"Map"),An=pa(t,"Promise"),Tn=pa(t,"Set"),xn=pa(t,"WeakMap"),In=pa(Ae,"create"),Pn=xn&&new xn,Bn={},Cn=Da(En),jn=Da(qn),On=Da(An),Nn=Da(Tn),Mn=Da(xn),Rn=Fe?Fe.prototype:r,Dn=Rn?Rn.valueOf:r,Hn=Rn?Rn.toString:r;function Un(e){if(ni(e)&&!Gc(e)&&!(e instanceof Gn)){if(e instanceof Fn)return e;if(Ne.call(e,"__wrapped__"))return Ha(e)}return new Fn(e)}var Jn=function(){function e(){}return function(t){if(!ti(t))return{};if(Ve)return Ve(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function zn(){}function Fn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function Gn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Xn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Vn;++t<n;)this.add(e[t])}function Kn(e){var t=this.__data__=new Xn(e);this.size=t.size}function Zn(e,t){var n=Gc(e),o=!n&&Fc(e),r=!n&&!o&&Yc(e),a=!n&&!o&&!r&&li(e),c=n||o||r||a,i=c?Zt(e.length,xe):[],s=i.length;for(var u in e)!t&&!Ne.call(e,u)||c&&("length"==u||r&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ba(u,s))||i.push(u);return i}function $n(e){var t=e.length;return t?e[Ko(0,t-1)]:r}function Qn(e,t){return Na(Pr(e),so(t,0,e.length))}function eo(e){return Na(Pr(e))}function to(e,t,n){(n!==r&&!Uc(e[t],n)||n===r&&!(t in e))&&co(e,t,n)}function no(e,t,n){var o=e[t];Ne.call(e,t)&&Uc(o,n)&&(n!==r||t in e)||co(e,t,n)}function oo(e,t){for(var n=e.length;n--;)if(Uc(e[n][0],t))return n;return-1}function ro(e,t,n,o){return mo(e,(function(e,r,a){t(o,e,n(e),a)})),o}function ao(e,t){return e&&Br(t,Bi(t),e)}function co(e,t,n){"__proto__"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function io(e,t){for(var n=-1,a=t.length,c=o(a),i=null==e;++n<a;)c[n]=i?r:Ai(e,t[n]);return c}function so(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function uo(e,t,n,o,a,c){var i,s=1&t,u=2&t,l=4&t;if(n&&(i=a?n(e,o,a,c):n(e)),i!==r)return i;if(!ti(e))return e;var d=Gc(e);if(d){if(i=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ne.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return Pr(e,i)}else{var f=ha(e),p=f==L||f==k;if(Yc(e))return Er(e,s);if(f==A||f==g||p&&!a){if(i=u||p?{}:ga(e),!s)return u?function(e,t){return Br(e,ya(e),t)}(e,function(e,t){return e&&Br(t,Ci(t),e)}(i,e)):function(e,t){return Br(e,ma(e),t)}(e,ao(i,e))}else{if(!ut[f])return a?e:{};i=function(e,t,n){var o=e.constructor;switch(t){case j:return qr(e);case b:case S:return new o(+e);case O:return function(e,t){var n=t?qr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case N:case M:case R:case D:case H:case U:case J:case z:case F:return Ar(e,n);case E:return new o;case q:case P:return new o(e);case x:return function(e){var t=new e.constructor(e.source,ye.exec(e));return t.lastIndex=e.lastIndex,t}(e);case I:return new o;case B:return r=e,Dn?Ae(Dn.call(r)):{}}var r}(e,f,s)}}c||(c=new Kn);var m=c.get(e);if(m)return m;c.set(e,i),ii(e)?e.forEach((function(o){i.add(uo(o,t,n,o,e,c))})):oi(e)&&e.forEach((function(o,r){i.set(r,uo(o,t,n,r,e,c))}));var y=d?r:(l?u?ca:aa:u?Ci:Bi)(e);return xt(y||e,(function(o,r){y&&(o=e[r=o]),no(i,r,uo(o,t,n,r,e,c))})),i}function lo(e,t,n){var o=n.length;if(null==e)return!o;for(e=Ae(e);o--;){var a=n[o],c=t[a],i=e[a];if(i===r&&!(a in e)||!c(i))return!1}return!0}function fo(e,t,n){if("function"!=typeof e)throw new Ie(a);return Ba((function(){e.apply(r,n)}),t)}function po(e,t,n,o){var r=-1,a=Ct,c=!0,i=e.length,s=[],u=t.length;if(!i)return s;n&&(t=Ot(t,Qt(n))),o?(a=jt,c=!1):t.length>=200&&(a=tn,c=!1,t=new Yn(t));e:for(;++r<i;){var l=e[r],d=null==n?l:n(l);if(l=o||0!==l?l:0,c&&d==d){for(var f=u;f--;)if(t[f]===d)continue e;s.push(l)}else a(t,d,o)||s.push(l)}return s}Un.templateSettings={escape:$,evaluate:Q,interpolate:ee,variable:"",imports:{_:Un}},Un.prototype=zn.prototype,Un.prototype.constructor=Un,Fn.prototype=Jn(zn.prototype),Fn.prototype.constructor=Fn,Gn.prototype=Jn(zn.prototype),Gn.prototype.constructor=Gn,Wn.prototype.clear=function(){this.__data__=In?In(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(In){var n=t[e];return n===c?r:n}return Ne.call(t,e)?t[e]:r},Wn.prototype.has=function(e){var t=this.__data__;return In?t[e]!==r:Ne.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=In&&t===r?c:t,this},Xn.prototype.clear=function(){this.__data__=[],this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=oo(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,!0)},Xn.prototype.get=function(e){var t=this.__data__,n=oo(t,e);return n<0?r:t[n][1]},Xn.prototype.has=function(e){return oo(this.__data__,e)>-1},Xn.prototype.set=function(e,t){var n=this.__data__,o=oo(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this},Vn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(qn||Xn),string:new Wn}},Vn.prototype.delete=function(e){var t=da(this,e).delete(e);return this.size-=t?1:0,t},Vn.prototype.get=function(e){return da(this,e).get(e)},Vn.prototype.has=function(e){return da(this,e).has(e)},Vn.prototype.set=function(e,t){var n=da(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,c),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new Xn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Xn){var o=n.__data__;if(!qn||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Vn(o)}return n.set(e,t),this.size=n.size,this};var mo=Or(_o),yo=Or(Lo,!0);function ho(e,t){var n=!0;return mo(e,(function(e,o,r){return n=!!t(e,o,r)})),n}function vo(e,t,n){for(var o=-1,a=e.length;++o<a;){var c=e[o],i=t(c);if(null!=i&&(s===r?i==i&&!ui(i):n(i,s)))var s=i,u=c}return u}function go(e,t){var n=[];return mo(e,(function(e,o,r){t(e,o,r)&&n.push(e)})),n}function wo(e,t,n,o,r){var a=-1,c=e.length;for(n||(n=wa),r||(r=[]);++a<c;){var i=e[a];t>0&&n(i)?t>1?wo(i,t-1,n,o,r):Nt(r,i):o||(r[r.length]=i)}return r}var bo=Nr(),So=Nr(!0);function _o(e,t){return e&&bo(e,t,Bi)}function Lo(e,t){return e&&So(e,t,Bi)}function ko(e,t){return Bt(t,(function(t){return $c(e[t])}))}function Eo(e,t){for(var n=0,o=(t=Sr(t,e)).length;null!=e&&n<o;)e=e[Ra(t[n++])];return n&&n==o?e:r}function qo(e,t,n){var o=t(e);return Gc(e)?o:Nt(o,n(e))}function Ao(e){return null==e?e===r?"[object Undefined]":"[object Null]":Qe&&Qe in Ae(e)?function(e){var t=Ne.call(e,Qe),n=e[Qe];try{e[Qe]=r;var o=!0}catch(e){}var a=De.call(e);o&&(t?e[Qe]=n:delete e[Qe]);return a}(e):function(e){return De.call(e)}(e)}function To(e,t){return e>t}function xo(e,t){return null!=e&&Ne.call(e,t)}function Io(e,t){return null!=e&&t in Ae(e)}function Po(e,t,n){for(var a=n?jt:Ct,c=e[0].length,i=e.length,s=i,u=o(i),l=1/0,d=[];s--;){var f=e[s];s&&t&&(f=Ot(f,Qt(t))),l=bn(f.length,l),u[s]=!n&&(t||c>=120&&f.length>=120)?new Yn(s&&f):r}f=e[0];var p=-1,m=u[0];e:for(;++p<c&&d.length<l;){var y=f[p],h=t?t(y):y;if(y=n||0!==y?y:0,!(m?tn(m,h):a(d,h,n))){for(s=i;--s;){var v=u[s];if(!(v?tn(v,h):a(e[s],h,n)))continue e}m&&m.push(h),d.push(y)}}return d}
vendor: 1,049 bytes, line 2
2function Bo(e,t,n){var o=null==(e=xa(e,t=Sr(t,e)))?e:e[Ra(Za(t))];return null==o?r:At(o,e,n)}function Co(e){return ni(e)&&Ao(e)==g}function jo(e,t,n,o,a){return e===t||(null==e||null==t||!ni(e)&&!ni(t)?e!=e&&t!=t:function(e,t,n,o,a,c){var i=Gc(e),s=Gc(t),u=i?w:ha(e),l=s?w:ha(t),d=(u=u==g?A:u)==A,f=(l=l==g?A:l)==A,p=u==l;if(p&&Yc(e)){if(!Yc(t))return!1;i=!0,d=!1}if(p&&!d)return c||(c=new Kn),i||li(e)?oa(e,t,n,o,a,c):function(e,t,n,o,r,a,c){switch(n){case O:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case j:return!(e.byteLength!=t.byteLength||!a(new Ge(e),new Ge(t)));case b:case S:case q:return Uc(+e,+t);case _:return e.name==t.name&&e.message==t.message;case x:case P:return e==t+"";case E:var i=un;case I:var s=1&o;if(i||(i=fn),e.size!=t.size&&!s)return!1;var u=c.get(e);if(u)return u==t;o|=2,c.set(e,t);var l=oa(i(e),i(t),o,r,a,c);return c.delete(e),l;case B:if(Dn)return Dn.call(e)==Dn.call(t)}return!1}(e,t,u,n,o,a,c);if(!(1&n)){var m=d&&Ne.call(e,"__wrapped__"),y=f&&Ne.call(t,"__wrapped__");
vendor: 3,974 bytes, line 2
2if(m||y){var h=m?e.value():e,v=y?t.value():t;return c||(c=new Kn),a(h,v,n,o,c)}}if(!p)return!1;return c||(c=new Kn),function(e,t,n,o,a,c){var i=1&n,s=aa(e),u=s.length,l=aa(t),d=l.length;if(u!=d&&!i)return!1;var f=u;for(;f--;){var p=s[f];if(!(i?p in t:Ne.call(t,p)))return!1}var m=c.get(e),y=c.get(t);if(m&&y)return m==t&&y==e;var h=!0;c.set(e,t),c.set(t,e);var v=i;for(;++f<u;){var g=e[p=s[f]],w=t[p];if(o)var b=i?o(w,g,p,t,e,c):o(g,w,p,e,t,c);if(!(b===r?g===w||a(g,w,n,o,c):b)){h=!1;break}v||(v="constructor"==p)}if(h&&!v){var S=e.constructor,_=t.constructor;S==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof S&&S instanceof S&&"function"==typeof _&&_ instanceof _||(h=!1)}return c.delete(e),c.delete(t),h}(e,t,n,o,a,c)}(e,t,n,o,jo,a))}function Oo(e,t,n,o){var a=n.length,c=a,i=!o;if(null==e)return!c;for(e=Ae(e);a--;){var s=n[a];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<c;){var u=(s=n[a])[0],l=e[u],d=s[1];if(i&&s[2]){if(l===r&&!(u in e))return!1}else{var f=new Kn;if(o)var p=o(l,d,u,e,t,f);if(!(p===r?jo(d,l,3,o,f):p))return!1}}return!0}function No(e){return!(!ti(e)||(t=e,Re&&Re in t))&&($c(e)?Je:ge).test(Da(e));var t}function Mo(e){return"function"==typeof e?e:null==e?rs:"object"==typeof e?Gc(e)?zo(e[0],e[1]):Jo(e):ps(e)}function Ro(e){if(!Ea(e))return Vt(e);var t=[];for(var n in Ae(e))Ne.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Do(e){if(!ti(e))return function(e){var t=[];if(null!=e)for(var n in Ae(e))t.push(n);return t}(e);var t=Ea(e),n=[];for(var o in e)("constructor"!=o||!t&&Ne.call(e,o))&&n.push(o);return n}function Ho(e,t){return e<t}function Uo(e,t){var n=-1,r=Xc(e)?o(e.length):[];return mo(e,(function(e,o,a){r[++n]=t(e,o,a)})),r}function Jo(e){var t=fa(e);return 1==t.length&&t[0][2]?Aa(t[0][0],t[0][1]):function(n){return n===e||Oo(n,e,t)}}function zo(e,t){return _a(e)&&qa(t)?Aa(Ra(e),t):function(n){var o=Ai(n,e);return o===r&&o===t?Ti(n,e):jo(t,o,3)}}function Fo(e,t,n,o,a){e!==t&&bo(t,(function(c,i){if(a||(a=new Kn),ti(c))!function(e,t,n,o,a,c,i){var s=Ia(e,n),u=Ia(t,n),l=i.get(u);if(l)return void to(e,n,l);var d=c?c(s,u,n+"",e,t,i):r,f=d===r;if(f){var p=Gc(u),m=!p&&Yc(u),y=!p&&!m&&li(u);d=u,p||m||y?Gc(s)?d=s:Vc(s)?d=Pr(s):m?(f=!1,d=Er(u,!0)):y?(f=!1,d=Ar(u,!0)):d=[]:ai(u)||Fc(u)?(d=s,Fc(s)?d=gi(s):ti(s)&&!$c(s)||(d=ga(u))):f=!1}f&&(i.set(u,d),a(d,u,o,c,i),i.delete(u));to(e,n,d)}(e,t,i,n,Fo,o,a);else{var s=o?o(Ia(e,i),c,i+"",e,t,a):r;s===r&&(s=c),to(e,i,s)}}),Ci)}function Go(e,t){var n=e.length;if(n)return ba(t+=t<0?n:0,n)?e[t]:r}function Wo(e,t,n){t=t.length?Ot(t,(function(e){return Gc(e)?function(t){return Eo(t,1===e.length?e[0]:e)}:e})):[rs];var o=-1;t=Ot(t,Qt(la()));var r=Uo(e,(function(e,n,r){var a=Ot(t,(function(t){return t(e)}));return{criteria:a,index:++o,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(r,(function(e,t){return function(e,t,n){var o=-1,r=e.criteria,a=t.criteria,c=r.length,i=n.length;for(;++o<c;){var s=Tr(r[o],a[o]);if(s)return o>=i?s:s*("desc"==n[o]?-1:1)}return e.index-t.index}(e,t,n)}))}function Xo(e,t,n){for(var o=-1,r=t.length,a={};++o<r;){var c=t[o],i=Eo(e,c);n(i,c)&&tr(a,Sr(c,e),i)}return a}function Vo(e,t,n,o){var r=o?Ft:zt,a=-1,c=t.length,i=e;for(e===t&&(t=Pr(t)),n&&(i=Ot(e,Qt(n)));++a<c;)for(var s=0,u=t[a],l=n?n(u):u;(s=r(i,l,s,o))>-1;)i!==e&&Ke.call(i,s,1),Ke.call(e,s,1);return e}function Yo(e,t){for(var n=e?t.length:0,o=n-1;n--;){var r=t[n];if(n==o||r!==a){var a=r;ba(r)?Ke.call(e,r,1):pr(e,r)}}return e}function Ko(e,t){return e+ht(Ln()*(t-e+1))}function Zo(e,t){var n="";if(!e||t<1||t>m)return n;do{t%2&&(n+=e),(t=ht(t/2))&&(e+=e)}while(t);return n}function $o(e,t){return Ca(Ta(e,t,rs),e+"")}function Qo(e){return $n(Ui(e))}function er(e,t){var n=Ui(e);return Na(n,so(t,0,n.length))}function tr(e,t,n,o){if(!ti(e))return e;for(var a=-1,c=(t=Sr(t,e)).length,i=c-1,s=e;null!=s&&++a<c;){var u=Ra(t[a]),l=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(a!=i){var d=s[u];
vendor: 5,158 bytes, line 2
2(l=o?o(d,u,s):r)===r&&(l=ti(d)?d:ba(t[a+1])?[]:{})}no(s,u,l),s=s[u]}return e}var nr=Pn?function(e,t){return Pn.set(e,t),e}:rs,or=nt?function(e,t){return nt(e,"toString",{configurable:!0,enumerable:!1,value:ts(t),writable:!0})}:rs;function rr(e){return Na(Ui(e))}function ar(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var c=o(a);++r<a;)c[r]=e[r+t];return c}function cr(e,t){var n;return mo(e,(function(e,o,r){return!(n=t(e,o,r))})),!!n}function ir(e,t,n){var o=0,r=null==e?o:e.length;if("number"==typeof t&&t==t&&r<=2147483647){for(;o<r;){var a=o+r>>>1,c=e[a];null!==c&&!ui(c)&&(n?c<=t:c<t)?o=a+1:r=a}return r}return sr(e,t,rs,n)}function sr(e,t,n,o){var a=0,c=null==e?0:e.length;if(0===c)return 0;for(var i=(t=n(t))!=t,s=null===t,u=ui(t),l=t===r;a<c;){var d=ht((a+c)/2),f=n(e[d]),p=f!==r,m=null===f,y=f==f,h=ui(f);if(i)var v=o||y;else v=l?y&&(o||p):s?y&&p&&(o||!m):u?y&&p&&!m&&(o||!h):!m&&!h&&(o?f<=t:f<t);v?a=d+1:c=d}return bn(c,4294967294)}function ur(e,t){for(var n=-1,o=e.length,r=0,a=[];++n<o;){var c=e[n],i=t?t(c):c;if(!n||!Uc(i,s)){var s=i;a[r++]=0===c?0:c}}return a}function lr(e){return"number"==typeof e?e:ui(e)?y:+e}function dr(e){if("string"==typeof e)return e;if(Gc(e))return Ot(e,dr)+"";if(ui(e))return Hn?Hn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function fr(e,t,n){var o=-1,r=Ct,a=e.length,c=!0,i=[],s=i;if(n)c=!1,r=jt;else if(a>=200){var u=t?null:Zr(e);if(u)return fn(u);c=!1,r=tn,s=new Yn}else s=t?[]:i;e:for(;++o<a;){var l=e[o],d=t?t(l):l;if(l=n||0!==l?l:0,c&&d==d){for(var f=s.length;f--;)if(s[f]===d)continue e;t&&s.push(d),i.push(l)}else r(s,d,n)||(s!==i&&s.push(d),i.push(l))}return i}function pr(e,t){return null==(e=xa(e,t=Sr(t,e)))||delete e[Ra(Za(t))]}function mr(e,t,n,o){return tr(e,t,n(Eo(e,t)),o)}function yr(e,t,n,o){for(var r=e.length,a=o?r:-1;(o?a--:++a<r)&&t(e[a],a,e););return n?ar(e,o?0:a,o?a+1:r):ar(e,o?a+1:0,o?r:a)}function hr(e,t){var n=e;return n instanceof Gn&&(n=n.value()),Mt(t,(function(e,t){return t.func.apply(t.thisArg,Nt([e],t.args))}),n)}function vr(e,t,n){var r=e.length;if(r<2)return r?fr(e[0]):[];for(var a=-1,c=o(r);++a<r;)for(var i=e[a],s=-1;++s<r;)s!=a&&(c[a]=po(c[a]||i,e[s],t,n));return fr(wo(c,1),t,n)}function gr(e,t,n){for(var o=-1,a=e.length,c=t.length,i={};++o<a;){var s=o<c?t[o]:r;n(i,e[o],s)}return i}function wr(e){return Vc(e)?e:[]}function br(e){return"function"==typeof e?e:rs}function Sr(e,t){return Gc(e)?e:_a(e,t)?[e]:Ma(wi(e))}var _r=$o;function Lr(e,t,n){var o=e.length;return n=n===r?o:n,!t&&n>=o?e:ar(e,t,n)}var kr=rt||function(e){return yt.clearTimeout(e)};function Er(e,t){if(t)return e.slice();var n=e.length,o=We?We(n):new e.constructor(n);return e.copy(o),o}function qr(e){var t=new e.constructor(e.byteLength);return new Ge(t).set(new Ge(e)),t}function Ar(e,t){var n=t?qr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Tr(e,t){if(e!==t){var n=e!==r,o=null===e,a=e==e,c=ui(e),i=t!==r,s=null===t,u=t==t,l=ui(t);if(!s&&!l&&!c&&e>t||c&&i&&u&&!s&&!l||o&&i&&u||!n&&u||!a)return 1;if(!o&&!c&&!l&&e<t||l&&n&&a&&!o&&!c||s&&n&&a||!i&&a||!u)return-1}return 0}function xr(e,t,n,r){for(var a=-1,c=e.length,i=n.length,s=-1,u=t.length,l=wn(c-i,0),d=o(u+l),f=!r;++s<u;)d[s]=t[s];for(;++a<i;)(f||a<c)&&(d[n[a]]=e[a]);for(;l--;)d[s++]=e[a++];return d}function Ir(e,t,n,r){for(var a=-1,c=e.length,i=-1,s=n.length,u=-1,l=t.length,d=wn(c-s,0),f=o(d+l),p=!r;++a<d;)f[a]=e[a];for(var m=a;++u<l;)f[m+u]=t[u];for(;++i<s;)(p||a<c)&&(f[m+n[i]]=e[a++]);return f}function Pr(e,t){var n=-1,r=e.length;for(t||(t=o(r));++n<r;)t[n]=e[n];return t}function Br(e,t,n,o){var a=!n;n||(n={});for(var c=-1,i=t.length;++c<i;){var s=t[c],u=o?o(n[s],e[s],s,n,e):r;u===r&&(u=e[s]),a?co(n,s,u):no(n,s,u)}return n}function Cr(e,t){return function(n,o){var r=Gc(n)?Tt:ro,a=t?t():{};return r(n,e,la(o,2),a)}}function jr(e){return $o((function(t,n){var o=-1,a=n.length,c=a>1?n[a-1]:r,i=a>2?n[2]:r;for(c=e.length>3&&"function"==typeof c?(a--,c):r,i&&Sa(n[0],n[1],i)&&(c=a<3?r:c,a=1),t=Ae(t);++o<a;){var s=n[o];s&&e(t,s,o,c)}return t}))}function Or(e,t){return function(n,o){if(null==n)return n;if(!Xc(n))return e(n,o);for(var r=n.length,a=t?r:-1,c=Ae(n);(t?a--:++a<r)&&!1!==o(c[a],a,c););return n}}function Nr(e){return function(t,n,o){for(var r=-1,a=Ae(t),c=o(t),i=c.length;i--;){var s=c[e?i:++r];if(!1===n(a[s],s,a))break}return t}}function Mr(e){return function(t){var n=sn(t=wi(t))?yn(t):r,o=n?n[0]:t.charAt(0),a=n?Lr(n,1).join(""):t.slice(1);return o[e]()+a}}function Rr(e){return function(t){return Mt($i(Fi(t).replace(et,"")),e,"")}}function Dr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Jn(e.prototype),o=e.apply(n,t);return ti(o)?o:n}}function Hr(e){return function(t,n,o){var a=Ae(t);if(!Xc(t)){var c=la(n,3);t=Bi(t),n=function(e){return c(a[e],e,a)}}var i=e(t,n,o);return i>-1?a[c?t[i]:i]:r}}
vendor: 24,835 bytes, line 2
2function Ur(e){return ra((function(t){var n=t.length,o=n,c=Fn.prototype.thru;for(e&&t.reverse();o--;){var i=t[o];if("function"!=typeof i)throw new Ie(a);if(c&&!s&&"wrapper"==sa(i))var s=new Fn([],!0)}for(o=s?o:n;++o<n;){var u=sa(i=t[o]),l="wrapper"==u?ia(i):r;s=l&&La(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?s[sa(l[0])].apply(s,l[3]):1==i.length&&La(i)?s[u]():s.thru(i)}return function(){var e=arguments,o=e[0];if(s&&1==e.length&&Gc(o))return s.plant(o).value();for(var r=0,a=n?t[r].apply(this,e):o;++r<n;)a=t[r].call(this,a);return a}}))}function Jr(e,t,n,a,c,i,s,u,l,f){var p=t&d,m=1&t,y=2&t,h=24&t,v=512&t,g=y?r:Dr(e);return function d(){for(var w=arguments.length,b=o(w),S=w;S--;)b[S]=arguments[S];if(h)var _=ua(d),L=function(e,t){for(var n=e.length,o=0;n--;)e[n]===t&&++o;return o}(b,_);if(a&&(b=xr(b,a,c,h)),i&&(b=Ir(b,i,s,h)),w-=L,h&&w<f){var k=dn(b,_);return Yr(e,t,Jr,d.placeholder,n,b,k,u,l,f-w)}var E=m?n:this,q=y?E[e]:e;return w=b.length,u?b=function(e,t){var n=e.length,o=bn(t.length,n),a=Pr(e);for(;o--;){var c=t[o];e[o]=ba(c,n)?a[c]:r}return e}(b,u):v&&w>1&&b.reverse(),p&&l<w&&(b.length=l),this&&this!==yt&&this instanceof d&&(q=g||Dr(q)),q.apply(E,b)}}function zr(e,t){return function(n,o){return function(e,t,n,o){return _o(e,(function(e,r,a){t(o,n(e),r,a)})),o}(n,e,t(o),{})}}function Fr(e,t){return function(n,o){var a;if(n===r&&o===r)return t;if(n!==r&&(a=n),o!==r){if(a===r)return o;"string"==typeof n||"string"==typeof o?(n=dr(n),o=dr(o)):(n=lr(n),o=lr(o)),a=e(n,o)}return a}}function Gr(e){return ra((function(t){return t=Ot(t,Qt(la())),$o((function(n){var o=this;return e(t,(function(e){return At(e,o,n)}))}))}))}function Wr(e,t){var n=(t=t===r?" ":dr(t)).length;if(n<2)return n?Zo(t,e):t;var o=Zo(t,mt(e/mn(t)));return sn(t)?Lr(yn(o),0,e).join(""):o.slice(0,e)}function Xr(e){return function(t,n,a){return a&&"number"!=typeof a&&Sa(t,n,a)&&(n=a=r),t=mi(t),n===r?(n=t,t=0):n=mi(n),function(e,t,n,r){for(var a=-1,c=wn(mt((t-e)/(n||1)),0),i=o(c);c--;)i[r?c:++a]=e,e+=n;return i}(t,n,a=a===r?t<n?1:-1:mi(a),e)}}function Vr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vi(t),n=vi(n)),e(t,n)}}function Yr(e,t,n,o,a,c,i,s,d,f){var p=8&t;t|=p?u:l,4&(t&=~(p?l:u))||(t&=-4);var m=[e,t,a,p?c:r,p?i:r,p?r:c,p?r:i,s,d,f],y=n.apply(r,m);return La(e)&&Pa(y,m),y.placeholder=o,ja(y,e,t)}function Kr(e){var t=qe[e];return function(e,n){if(e=vi(e),(n=null==n?0:bn(yi(n),292))&&bt(e)){var o=(wi(e)+"e").split("e");return+((o=(wi(t(o[0]+"e"+(+o[1]+n)))+"e").split("e"))[0]+"e"+(+o[1]-n))}return t(e)}}var Zr=Tn&&1/fn(new Tn([,-0]))[1]==p?function(e){return new Tn(e)}:us;function $r(e){return function(t){var n=ha(t);return n==E?un(t):n==I?pn(t):function(e,t){return Ot(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qr(e,t,n,c,p,m,y,h){var v=2&t;if(!v&&"function"!=typeof e)throw new Ie(a);var g=c?c.length:0;if(g||(t&=-97,c=p=r),y=y===r?y:wn(yi(y),0),h=h===r?h:yi(h),g-=p?p.length:0,t&l){var w=c,b=p;c=p=r}var S=v?r:ia(e),_=[e,t,n,c,p,w,b,m,y,h];if(S&&function(e,t){var n=e[1],o=t[1],r=n|o,a=r<131,c=o==d&&8==n||o==d&&n==f&&e[7].length<=t[8]||384==o&&t[7].length<=t[8]&&8==n;if(!a&&!c)return e;1&o&&(e[2]=t[2],r|=1&n?0:4);var s=t[3];if(s){var u=e[3];e[3]=u?xr(u,s,t[4]):s,e[4]=u?dn(e[3],i):t[4]}(s=t[5])&&(u=e[5],e[5]=u?Ir(u,s,t[6]):s,e[6]=u?dn(e[5],i):t[6]);(s=t[7])&&(e[7]=s);o&d&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=r}(_,S),e=_[0],t=_[1],n=_[2],c=_[3],p=_[4],!(h=_[9]=_[9]===r?v?0:e.length:wn(_[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)L=8==t||t==s?function(e,t,n){var a=Dr(e);return function c(){for(var i=arguments.length,s=o(i),u=i,l=ua(c);u--;)s[u]=arguments[u];var d=i<3&&s[0]!==l&&s[i-1]!==l?[]:dn(s,l);return(i-=d.length)<n?Yr(e,t,Jr,c.placeholder,r,s,d,r,r,n-i):At(this&&this!==yt&&this instanceof c?a:e,this,s)}}(e,t,h):t!=u&&33!=t||p.length?Jr.apply(r,_):function(e,t,n,r){var a=1&t,c=Dr(e);return function t(){for(var i=-1,s=arguments.length,u=-1,l=r.length,d=o(l+s),f=this&&this!==yt&&this instanceof t?c:e;++u<l;)d[u]=r[u];for(;s--;)d[u++]=arguments[++i];return At(f,a?n:this,d)}}(e,t,n,c);else var L=function(e,t,n){var o=1&t,r=Dr(e);return function t(){return(this&&this!==yt&&this instanceof t?r:e).apply(o?n:this,arguments)}}(e,t,n);return ja((S?nr:Pa)(L,_),e,t)}function ea(e,t,n,o){return e===r||Uc(e,Ce[n])&&!Ne.call(o,n)?t:e}function ta(e,t,n,o,a,c){return ti(e)&&ti(t)&&(c.set(t,e),Fo(e,t,r,ta,c),c.delete(t)),e}function na(e){return ai(e)?r:e}function oa(e,t,n,o,a,c){var i=1&n,s=e.length,u=t.length;if(s!=u&&!(i&&u>s))return!1;var l=c.get(e),d=c.get(t);if(l&&d)return l==t&&d==e;var f=-1,p=!0,m=2&n?new Yn:r;for(c.set(e,t),c.set(t,e);++f<s;){var y=e[f],h=t[f];if(o)var v=i?o(h,y,f,t,e,c):o(y,h,f,e,t,c);if(v!==r){if(v)continue;p=!1;break}if(m){if(!Dt(t,(function(e,t){if(!tn(m,t)&&(y===e||a(y,e,n,o,c)))return m.push(t)}))){p=!1;break}}else if(y!==h&&!a(y,h,n,o,c)){p=!1;break}}return c.delete(e),c.delete(t),p}function ra(e){return Ca(Ta(e,r,Wa),e+"")}function aa(e){return qo(e,Bi,ma)}function ca(e){return qo(e,Ci,ya)}var ia=Pn?function(e){return Pn.get(e)}:us;function sa(e){for(var t=e.name+"",n=Bn[t],o=Ne.call(Bn,t)?n.length:0;o--;){var r=n[o],a=r.func;if(null==a||a==e)return r.name}return t}function ua(e){return(Ne.call(Un,"placeholder")?Un:e).placeholder}function la(){var e=Un.iteratee||as;return e=e===as?Mo:e,arguments.length?e(arguments[0],arguments[1]):e}function da(e,t){var n,o,r=e.__data__;return("string"==(o=typeof(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function fa(e){for(var t=Bi(e),n=t.length;n--;){var o=t[n],r=e[o];t[n]=[o,r,qa(r)]}return t}function pa(e,t){var n=function(e,t){return null==e?r:e[t]}(e,t);return No(n)?n:r}var ma=vt?function(e){return null==e?[]:(e=Ae(e),Bt(vt(e),(function(t){return Ye.call(e,t)})))}:hs,ya=vt?function(e){for(var t=[];e;)Nt(t,ma(e)),e=Xe(e);return t}:hs,ha=Ao;function va(e,t,n){for(var o=-1,r=(t=Sr(t,e)).length,a=!1;++o<r;){var c=Ra(t[o]);if(!(a=null!=e&&n(e,c)))break;e=e[c]}return a||++o!=r?a:!!(r=null==e?0:e.length)&&ei(r)&&ba(c,r)&&(Gc(e)||Fc(e))}function ga(e){return"function"!=typeof e.constructor||Ea(e)?{}:Jn(Xe(e))}function wa(e){return Gc(e)||Fc(e)||!!(Ze&&e&&e[Ze])}function ba(e,t){var n=typeof e;return!!(t=null==t?m:t)&&("number"==n||"symbol"!=n&&be.test(e))&&e>-1&&e%1==0&&e<t}function Sa(e,t,n){if(!ti(n))return!1;var o=typeof t;return!!("number"==o?Xc(n)&&ba(t,n.length):"string"==o&&t in n)&&Uc(n[t],e)}function _a(e,t){if(Gc(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ui(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Ae(t))}function La(e){var t=sa(e),n=Un[t];if("function"!=typeof n||!(t in Gn.prototype))return!1;if(e===n)return!0;var o=ia(n);return!!o&&e===o[0]}(En&&ha(new En(new ArrayBuffer(1)))!=O||qn&&ha(new qn)!=E||An&&ha(An.resolve())!=T||Tn&&ha(new Tn)!=I||xn&&ha(new xn)!=C)&&(ha=function(e){var t=Ao(e),n=t==A?e.constructor:r,o=n?Da(n):"";if(o)switch(o){case Cn:return O;case jn:return E;case On:return T;case Nn:return I;case Mn:return C}return t});var ka=je?$c:vs;function Ea(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ce)}function qa(e){return e==e&&!ti(e)}function Aa(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==r||e in Ae(n)))}}function Ta(e,t,n){return t=wn(t===r?e.length-1:t,0),function(){for(var r=arguments,a=-1,c=wn(r.length-t,0),i=o(c);++a<c;)i[a]=r[t+a];a=-1;for(var s=o(t+1);++a<t;)s[a]=r[a];return s[t]=n(i),At(e,this,s)}}function xa(e,t){return t.length<2?e:Eo(e,ar(t,0,-1))}function Ia(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Pa=Oa(nr),Ba=pt||function(e,t){return yt.setTimeout(e,t)},Ca=Oa(or);function ja(e,t,n){var o=t+"";return Ca(e,function(e,t){var n=t.length;if(!n)return e;var o=n-1;return t[o]=(n>1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(o,function(e,t){return xt(v,(function(n){var o="_."+n[0];t&n[1]&&!Ct(e,o)&&e.push(o)})),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(le):[]}(o),n)))}function Oa(e){var t=0,n=0;return function(){var o=Sn(),a=16-(o-n);if(n=o,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Na(e,t){var n=-1,o=e.length,a=o-1;for(t=t===r?o:t;++n<t;){var c=Ko(n,a),i=e[c];e[c]=e[n],e[n]=i}return e.length=t,e}var Ma=function(e){var t=Oc(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(oe,(function(e,n,o,r){t.push(o?r.replace(pe,"$1"):n||e)})),t}));function Ra(e){if("string"==typeof e||ui(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Da(e){if(null!=e){try{return Oe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ha(e){if(e instanceof Gn)return e.clone();var t=new Fn(e.__wrapped__,e.__chain__);return t.__actions__=Pr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ua=$o((function(e,t){return Vc(e)?po(e,wo(t,1,Vc,!0)):[]})),Ja=$o((function(e,t){var n=Za(t);return Vc(n)&&(n=r),Vc(e)?po(e,wo(t,1,Vc,!0),la(n,2)):[]})),za=$o((function(e,t){var n=Za(t);return Vc(n)&&(n=r),Vc(e)?po(e,wo(t,1,Vc,!0),r,n):[]}));function Fa(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var r=null==n?0:yi(n);return r<0&&(r=wn(o+r,0)),Jt(e,la(t,3),r)}function Ga(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var a=o-1;return n!==r&&(a=yi(n),a=n<0?wn(o+a,0):bn(a,o-1)),Jt(e,la(t,3),a,!0)}function Wa(e){return(null==e?0:e.length)?wo(e,1):[]}function Xa(e){return e&&e.length?e[0]:r}var Va=$o((function(e){var t=Ot(e,wr);return t.length&&t[0]===e[0]?Po(t):[]})),Ya=$o((function(e){var t=Za(e),n=Ot(e,wr);return t===Za(n)?t=r:n.pop(),n.length&&n[0]===e[0]?Po(n,la(t,2)):[]})),Ka=$o((function(e){var t=Za(e),n=Ot(e,wr);return(t="function"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?Po(n,r,t):[]}));function Za(e){var t=null==e?0:e.length;return t?e[t-1]:r}var $a=$o(Qa);function Qa(e,t){return e&&e.length&&t&&t.length?Vo(e,t):e}var ec=ra((function(e,t){var n=null==e?0:e.length,o=io(e,t);return Yo(e,Ot(t,(function(e){return ba(e,n)?+e:e})).sort(Tr)),o}));function tc(e){return null==e?e:kn.call(e)}var nc=$o((function(e){return fr(wo(e,1,Vc,!0))})),oc=$o((function(e){var t=Za(e);return Vc(t)&&(t=r),fr(wo(e,1,Vc,!0),la(t,2))})),rc=$o((function(e){var t=Za(e);return t="function"==typeof t?t:r,fr(wo(e,1,Vc,!0),r,t)}));function ac(e){if(!e||!e.length)return[];var t=0;return e=Bt(e,(function(e){if(Vc(e))return t=wn(e.length,t),!0})),Zt(t,(function(t){return Ot(e,Xt(t))}))}function cc(e,t){if(!e||!e.length)return[];var n=ac(e);return null==t?n:Ot(n,(function(e){return At(t,r,e)}))}var ic=$o((function(e,t){return Vc(e)?po(e,t):[]})),sc=$o((function(e){return vr(Bt(e,Vc))})),uc=$o((function(e){var t=Za(e);return Vc(t)&&(t=r),vr(Bt(e,Vc),la(t,2))})),lc=$o((function(e){var t=Za(e);return t="function"==typeof t?t:r,vr(Bt(e,Vc),r,t)})),dc=$o(ac);var fc=$o((function(e){var t=e.length,n=t>1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,cc(e,n)}));function pc(e){var t=Un(e);return t.__chain__=!0,t}function mc(e,t){return t(e)}var yc=ra((function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,a=function(t){return io(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Gn&&ba(n)?((o=o.slice(n,+n+(t?1:0))).__actions__.push({func:mc,args:[a],thisArg:r}),new Fn(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(r),e}))):this.thru(a)}));var hc=Cr((function(e,t,n){Ne.call(e,n)?++e[n]:co(e,n,1)}));var vc=Hr(Fa),gc=Hr(Ga);function wc(e,t){return(Gc(e)?xt:mo)(e,la(t,3))}function bc(e,t){return(Gc(e)?It:yo)(e,la(t,3))}var Sc=Cr((function(e,t,n){Ne.call(e,n)?e[n].push(t):co(e,n,[t])}));var _c=$o((function(e,t,n){var r=-1,a="function"==typeof t,c=Xc(e)?o(e.length):[];return mo(e,(function(e){c[++r]=a?At(t,e,n):Bo(e,t,n)})),c})),Lc=Cr((function(e,t,n){co(e,n,t)}));function kc(e,t){return(Gc(e)?Ot:Uo)(e,la(t,3))}var Ec=Cr((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var qc=$o((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Sa(e,t[0],t[1])?t=[]:n>2&&Sa(t[0],t[1],t[2])&&(t=[t[0]]),Wo(e,wo(t,1),[])})),Ac=lt||function(){return yt.Date.now()};function Tc(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,Qr(e,d,r,r,r,r,t)}function xc(e,t){var n;if("function"!=typeof t)throw new Ie(a);return e=yi(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Ic=$o((function(e,t,n){var o=1;if(n.length){var r=dn(n,ua(Ic));o|=u}return Qr(e,o,t,n,r)})),Pc=$o((function(e,t,n){var o=3;if(n.length){var r=dn(n,ua(Pc));o|=u}return Qr(t,o,e,n,r)}));function Bc(e,t,n){var o,c,i,s,u,l,d=0,f=!1,p=!1,m=!0;if("function"!=typeof e)throw new Ie(a);function y(t){var n=o,a=c;return o=c=r,d=t,s=e.apply(a,n)}function h(e){var n=e-l;return l===r||n>=t||n<0||p&&e-d>=i}function v(){var e=Ac();if(h(e))return g(e);u=Ba(v,function(e){var n=t-(e-l);return p?bn(n,i-(e-d)):n}(e))}function g(e){return u=r,m&&o?y(e):(o=c=r,s)}function w(){var e=Ac(),n=h(e);if(o=arguments,c=this,l=e,n){if(u===r)return function(e){return d=e,u=Ba(v,t),f?y(e):s}(l);if(p)return kr(u),u=Ba(v,t),y(l)}return u===r&&(u=Ba(v,t)),s}return t=vi(t)||0,ti(n)&&(f=!!n.leading,i=(p="maxWait"in n)?wn(vi(n.maxWait)||0,t):i,m="trailing"in n?!!n.trailing:m),w.cancel=function(){u!==r&&kr(u),d=0,o=l=c=u=r},w.flush=function(){return u===r?s:g(Ac())},w}var Cc=$o((function(e,t){return fo(e,1,t)})),jc=$o((function(e,t,n){return fo(e,vi(t)||0,n)}));function Oc(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ie(a);var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],a=n.cache;if(a.has(r))return a.get(r);var c=e.apply(this,o);return n.cache=a.set(r,c)||a,c};return n.cache=new(Oc.Cache||Vn),n}function Nc(e){if("function"!=typeof e)throw new Ie(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Oc.Cache=Vn;var Mc=_r((function(e,t){var n=(t=1==t.length&&Gc(t[0])?Ot(t[0],Qt(la())):Ot(wo(t,1),Qt(la()))).length;return $o((function(o){for(var r=-1,a=bn(o.length,n);++r<a;)o[r]=t[r].call(this,o[r]);return At(e,this,o)}))})),Rc=$o((function(e,t){var n=dn(t,ua(Rc));return Qr(e,u,r,t,n)})),Dc=$o((function(e,t){var n=dn(t,ua(Dc));return Qr(e,l,r,t,n)})),Hc=ra((function(e,t){return Qr(e,f,r,r,r,t)}));function Uc(e,t){return e===t||e!=e&&t!=t}var Jc=Vr(To),zc=Vr((function(e,t){return e>=t})),Fc=Co(function(){return arguments}())?Co:function(e){return ni(e)&&Ne.call(e,"callee")&&!Ye.call(e,"callee")},Gc=o.isArray,Wc=St?Qt(St):function(e){return ni(e)&&Ao(e)==j};function Xc(e){return null!=e&&ei(e.length)&&!$c(e)}function Vc(e){return ni(e)&&Xc(e)}var Yc=wt||vs,Kc=_t?Qt(_t):function(e){return ni(e)&&Ao(e)==S};function Zc(e){if(!ni(e))return!1;var t=Ao(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ai(e)}function $c(e){if(!ti(e))return!1;var t=Ao(e);return t==L||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qc(e){return"number"==typeof e&&e==yi(e)}function ei(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=m}function ti(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ni(e){return null!=e&&"object"==typeof e}var oi=Lt?Qt(Lt):function(e){return ni(e)&&ha(e)==E};function ri(e){return"number"==typeof e||ni(e)&&Ao(e)==q}function ai(e){if(!ni(e)||Ao(e)!=A)return!1;var t=Xe(e);if(null===t)return!0;var n=Ne.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Oe.call(n)==He}var ci=kt?Qt(kt):function(e){return ni(e)&&Ao(e)==x};var ii=Et?Qt(Et):function(e){return ni(e)&&ha(e)==I};function si(e){return"string"==typeof e||!Gc(e)&&ni(e)&&Ao(e)==P}function ui(e){return"symbol"==typeof e||ni(e)&&Ao(e)==B}var li=qt?Qt(qt):function(e){return ni(e)&&ei(e.length)&&!!st[Ao(e)]};var di=Vr(Ho),fi=Vr((function(e,t){return e<=t}));function pi(e){if(!e)return[];if(Xc(e))return si(e)?yn(e):Pr(e);if($e&&e[$e])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[$e]());var t=ha(e);return(t==E?un:t==I?fn:Ui)(e)}function mi(e){return e?(e=vi(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function yi(e){var t=mi(e),n=t%1;return t==t?n?t-n:t:0}function hi(e){return e?so(yi(e),0,h):0}function vi(e){if("number"==typeof e)return e;if(ui(e))return y;if(ti(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ti(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=$t(e);var n=ve.test(e);return n||we.test(e)?ft(e.slice(2),n?2:8):he.test(e)?y:+e}function gi(e){return Br(e,Ci(e))}function wi(e){return null==e?"":dr(e)}var bi=jr((function(e,t){if(Ea(t)||Xc(t))Br(t,Bi(t),e);else for(var n in t)Ne.call(t,n)&&no(e,n,t[n])})),Si=jr((function(e,t){Br(t,Ci(t),e)})),_i=jr((function(e,t,n,o){Br(t,Ci(t),e,o)})),Li=jr((function(e,t,n,o){Br(t,Bi(t),e,o)})),ki=ra(io);var Ei=$o((function(e,t){e=Ae(e);var n=-1,o=t.length,a=o>2?t[2]:r;for(a&&Sa(t[0],t[1],a)&&(o=1);++n<o;)for(var c=t[n],i=Ci(c),s=-1,u=i.length;++s<u;){var l=i[s],d=e[l];(d===r||Uc(d,Ce[l])&&!Ne.call(e,l))&&(e[l]=c[l])}return e})),qi=$o((function(e){return e.push(r,ta),At(Oi,r,e)}));function Ai(e,t,n){var o=null==e?r:Eo(e,t);return o===r?n:o}function Ti(e,t){return null!=e&&va(e,t,Io)}var xi=zr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),e[t]=n}),ts(rs)),Ii=zr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),Ne.call(e,t)?e[t].push(n):e[t]=[n]}),la),Pi=$o(Bo);function Bi(e){return Xc(e)?Zn(e):Ro(e)}function Ci(e){return Xc(e)?Zn(e,!0):Do(e)}var ji=jr((function(e,t,n){Fo(e,t,n)})),Oi=jr((function(e,t,n,o){Fo(e,t,n,o)})),Ni=ra((function(e,t){var n={};if(null==e)return n;var o=!1;t=Ot(t,(function(t){return t=Sr(t,e),o||(o=t.length>1),t})),Br(e,ca(e),n),o&&(n=uo(n,7,na));for(var r=t.length;r--;)pr(n,t[r]);return n}));var Mi=ra((function(e,t){return null==e?{}:function(e,t){return Xo(e,t,(function(t,n){return Ti(e,n)}))}(e,t)}));function Ri(e,t){if(null==e)return{};var n=Ot(ca(e),(function(e){return[e]}));return t=la(t),Xo(e,n,(function(e,n){return t(e,n[0])}))}var Di=$r(Bi),Hi=$r(Ci);function Ui(e){return null==e?[]:en(e,Bi(e))}var Ji=Rr((function(e,t,n){return t=t.toLowerCase(),e+(n?zi(t):t)}));function zi(e){return Zi(wi(e).toLowerCase())}function Fi(e){return(e=wi(e))&&e.replace(Se,rn).replace(tt,"")}var Gi=Rr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Wi=Rr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Xi=Mr("toLowerCase");var Vi=Rr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Yi=Rr((function(e,t,n){return e+(n?" ":"")+Zi(t)}));var Ki=Rr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Zi=Mr("toUpperCase");function $i(e,t,n){return e=wi(e),(t=n?r:t)===r?function(e){return at.test(e)}(e)?function(e){return e.match(ot)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Qi=$o((function(e,t){try{return At(e,r,t)}catch(e){return Zc(e)?e:new ke(e)}})),es=ra((function(e,t){return xt(t,(function(t){t=Ra(t),co(e,t,Ic(e[t],e))})),e}));function ts(e){return function(){return e}}var ns=Ur(),os=Ur(!0);function rs(e){return e}function as(e){return Mo("function"==typeof e?e:uo(e,1))}var cs=$o((function(e,t){return function(n){return Bo(n,e,t)}})),is=$o((function(e,t){return function(n){return Bo(e,n,t)}}));function ss(e,t,n){var o=Bi(t),r=ko(t,o);null!=n||ti(t)&&(r.length||!o.length)||(n=t,t=e,e=this,r=ko(t,Bi(t)));var a=!(ti(n)&&"chain"in n&&!n.chain),c=$c(e);return xt(r,(function(n){var o=t[n];e[n]=o,c&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Pr(this.__actions__)).push({func:o,args:arguments,thisArg:e}),n.__chain__=t,n}return o.apply(e,Nt([this.value()],arguments))})})),e}function us(){}var ls=Gr(Ot),ds=Gr(Pt),fs=Gr(Dt);function ps(e){return _a(e)?Xt(Ra(e)):function(e){return function(t){return Eo(t,e)}}(e)}var ms=Xr(),ys=Xr(!0);function hs(){return[]}function vs(){return!1}var gs=Fr((function(e,t){return e+t}),0),ws=Kr("ceil"),bs=Fr((function(e,t){return e/t}),1),Ss=Kr("floor");var _s,Ls=Fr((function(e,t){return e*t}),1),ks=Kr("round"),Es=Fr((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new Ie(a);return e=yi(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=Tc,Un.assign=bi,Un.assignIn=Si,Un.assignInWith=_i,Un.assignWith=Li,Un.at=ki,Un.before=xc,Un.bind=Ic,Un.bindAll=es,Un.bindKey=Pc,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Gc(e)?e:[e]},Un.chain=pc,Un.chunk=function(e,t,n){t=(n?Sa(e,t,n):t===r)?1:wn(yi(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var c=0,i=0,s=o(mt(a/t));c<a;)s[i++]=ar(e,c,c+=t);return s},Un.compact=function(e){for(var t=-1,n=null==e?0:e.length,o=0,r=[];++t<n;){var a=e[t];a&&(r[o++]=a)}return r},Un.concat=function(){var e=arguments.length;if(!e)return[];for(var t=o(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Nt(Gc(n)?Pr(n):[n],wo(t,1))},Un.cond=function(e){var t=null==e?0:e.length,n=la();return e=t?Ot(e,(function(e){if("function"!=typeof e[1])throw new Ie(a);return[n(e[0]),e[1]]})):[],$o((function(n){for(var o=-1;++o<t;){var r=e[o];if(At(r[0],this,n))return At(r[1],this,n)}}))},Un.conforms=function(e){return function(e){var t=Bi(e);return function(n){return lo(n,e,t)}}(uo(e,1))},Un.constant=ts,Un.countBy=hc,Un.create=function(e,t){var n=Jn(e);return null==t?n:ao(n,t)},Un.curry=function e(t,n,o){var a=Qr(t,8,r,r,r,r,r,n=o?r:n);return a.placeholder=e.placeholder,a},Un.curryRight=function e(t,n,o){var a=Qr(t,s,r,r,r,r,r,n=o?r:n);return a.placeholder=e.placeholder,a},Un.debounce=Bc,Un.defaults=Ei,Un.defaultsDeep=qi,Un.defer=Cc,Un.delay=jc,Un.difference=Ua,Un.differenceBy=Ja,Un.differenceWith=za,Un.drop=function(e,t,n){var o=null==e?0:e.length;return o?ar(e,(t=n||t===r?1:yi(t))<0?0:t,o):[]},Un.dropRight=function(e,t,n){var o=null==e?0:e.length;return o?ar(e,0,(t=o-(t=n||t===r?1:yi(t)))<0?0:t):[]},Un.dropRightWhile=function(e,t){return e&&e.length?yr(e,la(t,3),!0,!0):[]},Un.dropWhile=function(e,t){return e&&e.length?yr(e,la(t,3),!0):[]},Un.fill=function(e,t,n,o){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&Sa(e,t,n)&&(n=0,o=a),function(e,t,n,o){var a=e.length;for((n=yi(n))<0&&(n=-n>a?0:a+n),(o=o===r||o>a?a:yi(o))<0&&(o+=a),o=n>o?0:hi(o);n<o;)e[n++]=t;return e}(e,t,n,o)):[]},Un.filter=function(e,t){return(Gc(e)?Bt:go)(e,la(t,3))},Un.flatMap=function(e,t){return wo(kc(e,t),1)},Un.flatMapDeep=function(e,t){return wo(kc(e,t),p)},Un.flatMapDepth=function(e,t,n){return n=n===r?1:yi(n),wo(kc(e,t),n)},Un.flatten=Wa,Un.flattenDeep=function(e){return(null==e?0:e.length)?wo(e,p):[]},Un.flattenDepth=function(e,t){return(null==e?0:e.length)?wo(e,t=t===r?1:yi(t)):[]},Un.flip=function(e){return Qr(e,512)},Un.flow=ns,Un.flowRight=os,Un.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,o={};++t<n;){var r=e[t];o[r[0]]=r[1]}return o},Un.functions=function(e){return null==e?[]:ko(e,Bi(e))},Un.functionsIn=function(e){return null==e?[]:ko(e,Ci(e))},Un.groupBy=Sc,Un.initial=function(e){return(null==e?0:e.length)?ar(e,0,-1):[]},Un.intersection=Va,Un.intersectionBy=Ya,Un.intersectionWith=Ka,Un.invert=xi,Un.invertBy=Ii,Un.invokeMap=_c,Un.iteratee=as,Un.keyBy=Lc,Un.keys=Bi,Un.keysIn=Ci,Un.map=kc,Un.mapKeys=function(e,t){var n={};return t=la(t,3),_o(e,(function(e,o,r){co(n,t(e,o,r),e)})),n},Un.mapValues=function(e,t){var n={};return t=la(t,3),_o(e,(function(e,o,r){co(n,o,t(e,o,r))})),n},Un.matches=function(e){return Jo(uo(e,1))},Un.matchesProperty=function(e,t){return zo(e,uo(t,1))},Un.memoize=Oc,Un.merge=ji,Un.mergeWith=Oi,Un.method=cs,Un.methodOf=is,Un.mixin=ss,Un.negate=Nc,Un.nthArg=function(e){return e=yi(e),$o((function(t){return Go(t,e)}))},Un.omit=Ni,Un.omitBy=function(e,t){return Ri(e,Nc(la(t)))},Un.once=function(e){return xc(2,e)},Un.orderBy=function(e,t,n,o){return null==e?[]:(Gc(t)||(t=null==t?[]:[t]),Gc(n=o?r:n)||(n=null==n?[]:[n]),Wo(e,t,n))},Un.over=ls,Un.overArgs=Mc,Un.overEvery=ds,Un.overSome=fs,Un.partial=Rc,Un.partialRight=Dc,Un.partition=Ec,Un.pick=Mi,Un.pickBy=Ri,Un.property=ps,Un.propertyOf=function(e){return function(t){return null==e?r:Eo(e,t)}},Un.pull=$a,Un.pullAll=Qa,Un.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Vo(e,t,la(n,2)):e},Un.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Vo(e,t,r,n):e},Un.pullAt=ec,Un.range=ms,Un.rangeRight=ys,Un.rearg=Hc,Un.reject=function(e,t){return(Gc(e)?Bt:go)(e,Nc(la(t,3)))},Un.remove=function(e,t){var n=[];if(!e||!e.length)return n;var o=-1,r=[],a=e.length;for(t=la(t,3);++o<a;){var c=e[o];t(c,o,e)&&(n.push(c),r.push(o))}return Yo(e,r),n},Un.rest=function(e,t){if("function"!=typeof e)throw new Ie(a);return $o(e,t=t===r?t:yi(t))},Un.reverse=tc,Un.sampleSize=function(e,t,n){return t=(n?Sa(e,t,n):t===r)?1:yi(t),(G
vendor: 4,257 bytes, line 2
2c(e)?Qn:er)(e,t)},Un.set=function(e,t,n){return null==e?e:tr(e,t,n)},Un.setWith=function(e,t,n,o){return o="function"==typeof o?o:r,null==e?e:tr(e,t,n,o)},Un.shuffle=function(e){return(Gc(e)?eo:rr)(e)},Un.slice=function(e,t,n){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&Sa(e,t,n)?(t=0,n=o):(t=null==t?0:yi(t),n=n===r?o:yi(n)),ar(e,t,n)):[]},Un.sortBy=qc,Un.sortedUniq=function(e){return e&&e.length?ur(e):[]},Un.sortedUniqBy=function(e,t){return e&&e.length?ur(e,la(t,2)):[]},Un.split=function(e,t,n){return n&&"number"!=typeof n&&Sa(e,t,n)&&(t=n=r),(n=n===r?h:n>>>0)?(e=wi(e))&&("string"==typeof t||null!=t&&!ci(t))&&!(t=dr(t))&&sn(e)?Lr(yn(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new Ie(a);return t=null==t?0:wn(yi(t),0),$o((function(n){var o=n[t],r=Lr(n,0,t);return o&&Nt(r,o),At(e,this,r)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?ar(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?ar(e,0,(t=n||t===r?1:yi(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var o=null==e?0:e.length;return o?ar(e,(t=o-(t=n||t===r?1:yi(t)))<0?0:t,o):[]},Un.takeRightWhile=function(e,t){return e&&e.length?yr(e,la(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?yr(e,la(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var o=!0,r=!0;if("function"!=typeof e)throw new Ie(a);return ti(n)&&(o="leading"in n?!!n.leading:o,r="trailing"in n?!!n.trailing:r),Bc(e,t,{leading:o,maxWait:t,trailing:r})},Un.thru=mc,Un.toArray=pi,Un.toPairs=Di,Un.toPairsIn=Hi,Un.toPath=function(e){return Gc(e)?Ot(e,Ra):ui(e)?[e]:Pr(Ma(wi(e)))},Un.toPlainObject=gi,Un.transform=function(e,t,n){var o=Gc(e),r=o||Yc(e)||li(e);if(t=la(t,4),null==n){var a=e&&e.constructor;n=r?o?new a:[]:ti(e)&&$c(a)?Jn(Xe(e)):{}}return(r?xt:_o)(e,(function(e,o,r){return t(n,e,o,r)})),n},Un.unary=function(e){return Tc(e,1)},Un.union=nc,Un.unionBy=oc,Un.unionWith=rc,Un.uniq=function(e){return e&&e.length?fr(e):[]},Un.uniqBy=function(e,t){return e&&e.length?fr(e,la(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?fr(e,r,t):[]},Un.unset=function(e,t){return null==e||pr(e,t)},Un.unzip=ac,Un.unzipWith=cc,Un.update=function(e,t,n){return null==e?e:mr(e,t,br(n))},Un.updateWith=function(e,t,n,o){return o="function"==typeof o?o:r,null==e?e:mr(e,t,br(n),o)},Un.values=Ui,Un.valuesIn=function(e){return null==e?[]:en(e,Ci(e))},Un.without=ic,Un.words=$i,Un.wrap=function(e,t){return Rc(br(t),e)},Un.xor=sc,Un.xorBy=uc,Un.xorWith=lc,Un.zip=dc,Un.zipObject=function(e,t){return gr(e||[],t||[],no)},Un.zipObjectDeep=function(e,t){return gr(e||[],t||[],tr)},Un.zipWith=fc,Un.entries=Di,Un.entriesIn=Hi,Un.extend=Si,Un.extendWith=_i,ss(Un,Un),Un.add=gs,Un.attempt=Qi,Un.camelCase=Ji,Un.capitalize=zi,Un.ceil=ws,Un.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=vi(n))==n?n:0),t!==r&&(t=(t=vi(t))==t?t:0),so(vi(e),t,n)},Un.clone=function(e){return uo(e,4)},Un.cloneDeep=function(e){return uo(e,5)},Un.cloneDeepWith=function(e,t){return uo(e,5,t="function"==typeof t?t:r)},Un.cloneWith=function(e,t){return uo(e,4,t="function"==typeof t?t:r)},Un.conformsTo=function(e,t){return null==t||lo(e,t,Bi(t))},Un.deburr=Fi,Un.defaultTo=function(e,t){return null==e||e!=e?t:e},Un.divide=bs,Un.endsWith=function(e,t,n){e=wi(e),t=dr(t);var o=e.length,a=n=n===r?o:so(yi(n),0,o);return(n-=t.length)>=0&&e.slice(n,a)==t},Un.eq=Uc,Un.escape=function(e){return(e=wi(e))&&Z.test(e)?e.replace(Y,an):e},Un.escapeRegExp=function(e){return(e=wi(e))&&ae.test(e)?e.replace(re,"\\$&"):e},Un.every=function(e,t,n){var o=Gc(e)?Pt:ho;return n&&Sa(e,t,n)&&(t=r),o(e,la(t,3))},Un.find=vc,Un.findIndex=Fa,Un.findKey=function(e,t){return Ut(e,la(t,3),_o)},Un.findLast=gc,Un.findLastIndex=Ga,Un.findLastKey=function(e,t){return Ut(e,la(t,3),Lo)},Un.floor=Ss,Un.forEach=wc,Un.forEachRight=bc,Un.forIn=function(e,t){return null==e?e:bo(e,la(t,3),Ci)},Un.forInRight=function(e,t){return null==e?e:So(e,la(t,3),Ci)},Un.forOwn=function(e,t){return e&&_o(e,la(t,3))},Un.forOwnRight=function(e,t){return e&&Lo(e,la(t,3))},Un.get=Ai,Un.gt=Jc,Un.gte=zc,Un.has=function(e,t){return null!=e&&va(e,t,xo)},Un.hasIn=Ti,Un.head=Xa,Un.identity=rs,Un.includes=function(e,t,n,o){e=Xc(e)?e:Ui(e),n=n&&!o?yi(n):0;var r=e.length;
vendor: 4,760 bytes, line 2
2return n<0&&(n=wn(r+n,0)),si(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&zt(e,t,n)>-1},Un.indexOf=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var r=null==n?0:yi(n);return r<0&&(r=wn(o+r,0)),zt(e,t,r)},Un.inRange=function(e,t,n){return t=mi(t),n===r?(n=t,t=0):n=mi(n),function(e,t,n){return e>=bn(t,n)&&e<wn(t,n)}(e=vi(e),t,n)},Un.invoke=Pi,Un.isArguments=Fc,Un.isArray=Gc,Un.isArrayBuffer=Wc,Un.isArrayLike=Xc,Un.isArrayLikeObject=Vc,Un.isBoolean=function(e){return!0===e||!1===e||ni(e)&&Ao(e)==b},Un.isBuffer=Yc,Un.isDate=Kc,Un.isElement=function(e){return ni(e)&&1===e.nodeType&&!ai(e)},Un.isEmpty=function(e){if(null==e)return!0;if(Xc(e)&&(Gc(e)||"string"==typeof e||"function"==typeof e.splice||Yc(e)||li(e)||Fc(e)))return!e.length;var t=ha(e);if(t==E||t==I)return!e.size;if(Ea(e))return!Ro(e).length;for(var n in e)if(Ne.call(e,n))return!1;return!0},Un.isEqual=function(e,t){return jo(e,t)},Un.isEqualWith=function(e,t,n){var o=(n="function"==typeof n?n:r)?n(e,t):r;return o===r?jo(e,t,r,n):!!o},Un.isError=Zc,Un.isFinite=function(e){return"number"==typeof e&&bt(e)},Un.isFunction=$c,Un.isInteger=Qc,Un.isLength=ei,Un.isMap=oi,Un.isMatch=function(e,t){return e===t||Oo(e,t,fa(t))},Un.isMatchWith=function(e,t,n){return n="function"==typeof n?n:r,Oo(e,t,fa(t),n)},Un.isNaN=function(e){return ri(e)&&e!=+e},Un.isNative=function(e){if(ka(e))throw new ke("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return No(e)},Un.isNil=function(e){return null==e},Un.isNull=function(e){return null===e},Un.isNumber=ri,Un.isObject=ti,Un.isObjectLike=ni,Un.isPlainObject=ai,Un.isRegExp=ci,Un.isSafeInteger=function(e){return Qc(e)&&e>=-9007199254740991&&e<=m},Un.isSet=ii,Un.isString=si,Un.isSymbol=ui,Un.isTypedArray=li,Un.isUndefined=function(e){return e===r},Un.isWeakMap=function(e){return ni(e)&&ha(e)==C},Un.isWeakSet=function(e){return ni(e)&&"[object WeakSet]"==Ao(e)},Un.join=function(e,t){return null==e?"":Ht.call(e,t)},Un.kebabCase=Gi,Un.last=Za,Un.lastIndexOf=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var a=o;return n!==r&&(a=(a=yi(n))<0?wn(o+a,0):bn(a,o-1)),t==t?function(e,t,n){for(var o=n+1;o--;)if(e[o]===t)return o;return o}(e,t,a):Jt(e,Gt,a,!0)},Un.lowerCase=Wi,Un.lowerFirst=Xi,Un.lt=di,Un.lte=fi,Un.max=function(e){return e&&e.length?vo(e,rs,To):r},Un.maxBy=function(e,t){return e&&e.length?vo(e,la(t,2),To):r},Un.mean=function(e){return Wt(e,rs)},Un.meanBy=function(e,t){return Wt(e,la(t,2))},Un.min=function(e){return e&&e.length?vo(e,rs,Ho):r},Un.minBy=function(e,t){return e&&e.length?vo(e,la(t,2),Ho):r},Un.stubArray=hs,Un.stubFalse=vs,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=Ls,Un.nth=function(e,t){return e&&e.length?Go(e,yi(t)):r},Un.noConflict=function(){return yt._===this&&(yt._=Ue),this},Un.noop=us,Un.now=Ac,Un.pad=function(e,t,n){e=wi(e);var o=(t=yi(t))?mn(e):0;if(!t||o>=t)return e;var r=(t-o)/2;return Wr(ht(r),n)+e+Wr(mt(r),n)},Un.padEnd=function(e,t,n){e=wi(e);var o=(t=yi(t))?mn(e):0;return t&&o<t?e+Wr(t-o,n):e},Un.padStart=function(e,t,n){e=wi(e);var o=(t=yi(t))?mn(e):0;return t&&o<t?Wr(t-o,n)+e:e},Un.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),_n(wi(e).replace(ce,""),t||0)},Un.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Sa(e,t,n)&&(t=n=r),n===r&&("boolean"==typeof t?(n=t,t=r):"boolean"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=mi(e),t===r?(t=e,e=0):t=mi(t)),e>t){var o=e;e=t,t=o}if(n||e%1||t%1){var a=Ln();return bn(e+a*(t-e+dt("1e-"+((a+"").length-1))),t)}return Ko(e,t)},Un.reduce=function(e,t,n){var o=Gc(e)?Mt:Yt,r=arguments.length<3;return o(e,la(t,4),n,r,mo)},Un.reduceRight=function(e,t,n){var o=Gc(e)?Rt:Yt,r=arguments.length<3;return o(e,la(t,4),n,r,yo)},Un.repeat=function(e,t,n){return t=(n?Sa(e,t,n):t===r)?1:yi(t),Zo(wi(e),t)},Un.replace=function(){var e=arguments,t=wi(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var o=-1,a=(t=Sr(t,e)).length;for(a||(a=1,e=r);++o<a;){var c=null==e?r:e[Ra(t[o])];c===r&&(o=a,c=n),e=$c(c)?c.call(e):c}return e},Un.round=ks,Un.runInContext=e,Un.sample=function(e){return(Gc(e)?$n:Qo)(e)},Un.size=function(e){if(null==e)return 0;if(Xc(e))return si(e)?mn(e):e.length;var t=ha(e);return t==E||t==I?e.size:Ro(e).length},Un.snakeCase=Vi,Un.some=function(e,t,n){var o=Gc(e)?Dt:cr;return n&&Sa(e,t,n)&&(t=r),o(e,la(t,3))},Un.sortedIndex=function(e,t){return ir(e,t)},Un.sortedIndexBy=function(e,t,n){return sr(e,t,la(n,2))},Un.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var o=ir(e,t);if(o<n&&Uc(e[o],t))return o}return-1},Un.sortedLastIndex=function(e,t){return ir(e,t,!0)},Un.sortedLastIndexBy=function(e,t,n){return sr(e,t,la(n,2),!0)},Un.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ir
vendor: 5,017 bytes, line 2
2(e,t,!0)-1;if(Uc(e[n],t))return n}return-1},Un.startCase=Yi,Un.startsWith=function(e,t,n){return e=wi(e),n=null==n?0:so(yi(n),0,e.length),t=dr(t),e.slice(n,n+t.length)==t},Un.subtract=Es,Un.sum=function(e){return e&&e.length?Kt(e,rs):0},Un.sumBy=function(e,t){return e&&e.length?Kt(e,la(t,2)):0},Un.template=function(e,t,n){var o=Un.templateSettings;n&&Sa(e,t,n)&&(t=r),e=wi(e),t=_i({},t,o,ea);var a,c,i=_i({},t.imports,o.imports,ea),s=Bi(i),u=en(i,s),l=0,d=t.interpolate||_e,f="__p += '",p=Te((t.escape||_e).source+"|"+d.source+"|"+(d===ee?me:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),m="//# sourceURL="+(Ne.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++it+"]")+"\n";e.replace(p,(function(t,n,o,r,i,s){return o||(o=r),f+=e.slice(l,s).replace(Le,cn),n&&(a=!0,f+="' +\n__e("+n+") +\n'"),i&&(c=!0,f+="';\n"+i+";\n__p += '"),o&&(f+="' +\n((__t = ("+o+")) == null ? '' : __t) +\n'"),l=s+t.length,t})),f+="';\n";var y=Ne.call(t,"variable")&&t.variable;if(y){if(fe.test(y))throw new ke("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(c?f.replace(G,""):f).replace(W,"$1").replace(X,"$1;"),f="function("+(y||"obj")+") {\n"+(y?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(c?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var h=Qi((function(){return Ee(s,m+"return "+f).apply(r,u)}));if(h.source=f,Zc(h))throw h;return h},Un.times=function(e,t){if((e=yi(e))<1||e>m)return[];var n=h,o=bn(e,h);t=la(t),e-=h;for(var r=Zt(o,t);++n<e;)t(n);return r},Un.toFinite=mi,Un.toInteger=yi,Un.toLength=hi,Un.toLower=function(e){return wi(e).toLowerCase()},Un.toNumber=vi,Un.toSafeInteger=function(e){return e?so(yi(e),-9007199254740991,m):0===e?e:0},Un.toString=wi,Un.toUpper=function(e){return wi(e).toUpperCase()},Un.trim=function(e,t,n){if((e=wi(e))&&(n||t===r))return $t(e);if(!e||!(t=dr(t)))return e;var o=yn(e),a=yn(t);return Lr(o,nn(o,a),on(o,a)+1).join("")},Un.trimEnd=function(e,t,n){if((e=wi(e))&&(n||t===r))return e.slice(0,hn(e)+1);if(!e||!(t=dr(t)))return e;var o=yn(e);return Lr(o,0,on(o,yn(t))+1).join("")},Un.trimStart=function(e,t,n){if((e=wi(e))&&(n||t===r))return e.replace(ce,"");if(!e||!(t=dr(t)))return e;var o=yn(e);return Lr(o,nn(o,yn(t))).join("")},Un.truncate=function(e,t){var n=30,o="...";if(ti(t)){var a="separator"in t?t.separator:a;n="length"in t?yi(t.length):n,o="omission"in t?dr(t.omission):o}var c=(e=wi(e)).length;if(sn(e)){var i=yn(e);c=i.length}if(n>=c)return e;var s=n-mn(o);if(s<1)return o;var u=i?Lr(i,0,s).join(""):e.slice(0,s);if(a===r)return u+o;if(i&&(s+=u.length-s),ci(a)){if(e.slice(s).search(a)){var l,d=u;for(a.global||(a=Te(a.source,wi(ye.exec(a))+"g")),a.lastIndex=0;l=a.exec(d);)var f=l.index;u=u.slice(0,f===r?s:f)}}else if(e.indexOf(dr(a),s)!=s){var p=u.lastIndexOf(a);p>-1&&(u=u.slice(0,p))}return u+o},Un.unescape=function(e){return(e=wi(e))&&K.test(e)?e.replace(V,vn):e},Un.uniqueId=function(e){var t=++Me;return wi(e)+t},Un.upperCase=Ki,Un.upperFirst=Zi,Un.each=wc,Un.eachRight=bc,Un.first=Xa,ss(Un,(_s={},_o(Un,(function(e,t){Ne.call(Un.prototype,t)||(_s[t]=e)})),_s),{chain:!1}),Un.VERSION="4.17.21",xt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),xt(["drop","take"],(function(e,t){Gn.prototype[e]=function(n){n=n===r?1:wn(yi(n),0);var o=this.__filtered__&&!t?new Gn(this):this.clone();return o.__filtered__?o.__takeCount__=bn(n,o.__takeCount__):o.__views__.push({size:bn(n,h),type:e+(o.__dir__<0?"Right":"")}),o},Gn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),xt(["filter","map","takeWhile"],(function(e,t){var n=t+1,o=1==n||3==n;Gn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:la(e,3),type:n}),t.__filtered__=t.__filtered__||o,t}})),xt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Gn.prototype[e]=function(){return this[n](1).value()[0]}})),xt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Gn.prototype[e]=function(){return this.__filtered__?new Gn(this):this[n](1)}})),Gn.prototype.compact=function(){return this.filter(rs)},Gn.prototype.find=function(e){return this.filter(e).head()},Gn.prototype.findLast=function(e){return this.reverse().find(e)},Gn.prototype.invokeMap=$o((function(e,t){return"function"==typeof e?new Gn(this):this.map((function(n){return Bo(n,e,t)}))})),Gn.prototype.reject=function(e){return this.filter(Nc(la(e)))},Gn.prototype.slice=function(e,t){e=yi(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Gn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=yi(t))<0?n.dropRight(-t):n.take(t-e)),n)},Gn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Gn.prototype.toArray=function(){return this.take(h)},_o(Gn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),a=Un[o?"take"+("last"==t?"Right":""):t],c=o||/^find/.test(t);
2a&&(Un.prototype[t]=function(){var t=this.__wrapped__,i=o?[1]:arguments,s=t instanceof Gn,u=i[0],l=s||Gc(t),d=function(e){var t=a.apply(Un,Nt([e],i));return o&&f?t[0]:t};l&&n&&"function"==typeof u&&1!=u.length&&(s=l=!1);var f=this.__chain__,p=!!this.__actions__.length,m=c&&!f,y=s&&!p;if(!c&&l){t=y?t:new Gn(this);var h=e.apply(t,i);return h.__actions__.push({func:mc,args:[d],thisArg:r}),new Fn(h,f)}return m&&y?e.apply(this,i):(h=this.thru(d),m?o?h.value()[0]:h.value():h)})})),xt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Pe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(o&&!this.__chain__){var r=this.value();return t.apply(Gc(r)?r:[],e)}return this[n]((function(n){return t.apply(Gc(n)?n:[],e)}))}})),_o(Gn.prototype,(function(e,t){var n=Un[t];if(n){var o=n.name+"";Ne.call(Bn,o)||(Bn[o]=[]),Bn[o].push({name:t,func:n})}})),Bn[Jr(r,2).name]=[{name:"wrapper",func:r}],Gn.prototype.clone=function(){var e=new Gn(this.__wrapped__);return e.__actions__=Pr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Pr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Pr(this.__views__),e},Gn.prototype.reverse=function(){if(this.__filtered__){var e=new Gn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Gn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Gc(e),o=t<0,r=n?e.length:0,a=function(e,t,n){var o=-1,r=n.length;for(;++o<r;){var a=n[o],c=a.size;switch(a.type){case"drop":e+=c;break;case"dropRight":t-=c;break;case"take":t=bn(t,e+c);break;case"takeRight":e=wn(e,t-c)}}return{start:e,end:t}}(0,r,this.__views__),c=a.start,i=a.end,s=i-c,u=o?i:c-1,l=this.__iteratees__,d=l.length,f=0,p=bn(s,this.__takeCount__);if(!n||!o&&r==s&&p==s)return hr(e,this.__actions__);var m=[];e:for(;s--&&f<p;){for(var y=-1,h=e[u+=t];++y<d;){var v=l[y],g=v.iteratee,w=v.type,b=g(h);if(2==w)h=b;else if(!b){if(1==w)continue e;break e}}m[f++]=h}return m},Un.prototype.at=yc,Un.prototype.chain=function(){return pc(this)},Un.prototype.commit=function(){return new Fn(this.value(),this.__chain__)},Un.prototype.next=function(){this.__values__===r&&(this.__values__=pi(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,n=this;n instanceof zn;){var o=Ha(n);o.__index__=0,o.__values__=r,t?a.__wrapped__=o:t=o;var a=o;n=n.__wrapped__}return a.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Gn){var t=e;return this.__actions__.length&&(t=new Gn(this)),(t=t.reverse()).__actions__.push({func:mc,args:[tc],thisArg:r}),new Fn(t,this.__chain__)}return this.thru(tc)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return hr(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,$e&&(Un.prototype[$e]=function(){return this}),Un}();yt._=gn,(o=function(){return gn}.call(t,n,t,e))===r||(e.exports=o)}.call(this)},205:()=>{}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(a.exports,a,a.exports,o),a.loaded=!0,a.exports}o.m=t,e=[],o.O=(t,n,r,a)=>{if(!n){var c=1/0;for(l=0;l<e.length;l++){for(var[n,r,a]=e[l],i=!0,s=0;s<n.length;s++)(!1&a||c>=a)&&Object.keys(o.O).every((e=>o.O[e](n[s])))?n.splice(s--,1):(i=!1,a<c&&(c=a));if(i){e.splice(l--,1);var u=r();void 0!==u&&(t=u)}}return t}a=a||0;for(var l=e.length;l>0&&e[l-1][2]>a;l--)e[l]=e[l-1];e[l]=[n,r,a]},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={847:0,252:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,a,[c,i,s]=n,u=0;if(c.some((t=>0!==e[t]))){for(r in i)o.o(i,r)&&(o.m[r]=i[r]);if(s)var l=s(o)}for(t&&t(n);u<c.length;u++)a=c[u],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return o.O(l)},n=self.webpackChunk=self.webpackChunk||[];
2n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),o.O(void 0,[252],(()=>o(896)));var r=o.O(void 0,[252],(()=>o(205)));r=o.O(r)})();
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.