1(()=>{"use strict";var e={},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.rv=function(){return"1.2.3"},n.ruid="[email protected]";var r,i,o,a,l,c,s,u,d,p,_,h={},f=[],m=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,v=Array.isArray;function g(e,t){for(var n in t)e[n]=t[n];return e}function w(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function y(e,t,n,r,a){var l={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:a??++o,__i:-1,__u:0};return null==a&&null!=i.vnode&&i.vnode(l),l}function b(e){return e.children}function x(e,t){this.props=e,this.context=t}function k(e,t){if(null==t)return e.__?k(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?k(e):null}function C(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!N.__r++||l!==i.debounceRendering)&&((l=i.debounceRendering)||c)(N)}function N(){var e,t,n,r,o,l,c,u;for(a.sort(s);e=a.shift();)e.__d&&(t=a.length,r=void 0,l=(o=(n=e).__v).__e,c=[],u=[],n.__P&&((r=g({},o)).__v=o.__v+1,i.vnode&&i.vnode(r),T(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[l]:null,c,l??k(o),!!(32&o.__u),u),r.__v=o.__v,r.__.__k[r.__i]=r,L(c,r,u),r.__e!=l&&function e(t){var n,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(r=t.__k[n])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return e(t)}}(r)),a.length>t&&a.sort(s));N.__r=0}function E(e,t,n,r,o,a,l,c,s,u,d){var p,_,m,g,x,C,N=r&&r.__k||f,E=t.length;for(s=function(e,t,n,r,o){var a,l,c,s,u,d=n.length,p=d,_=0;for(e.__k=Array(o),a=0;a<o;a++)null!=(l=t[a])&&"boolean"!=typeof l&&"function"!=typeof l?(s=a+_,(l=e.__k[a]="string"==typeof l||"number"==typeof l||"bigint"==typeof l||l.constructor==String?y(null,l,null,null,null):v(l)?y(b,{children:l},null,null,null):void 0===l.constructor&&l.__b>0?y(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):l).__=e,l.__b=e.__b+1,c=null,-1!==(u=l.__i=function(e,t,n,r){var i,o,a=e.key,l=e.type,c=t[n];if(null===c||c&&a==c.key&&l===c.type&&!(2&c.__u))return n;if(r>(null==c||2&c.__u?0:1))for(i=n-1,o=n+1;i>=0||o<t.length;){if(i>=0){if((c=t[i])&&!(2&c.__u)&&a==c.key&&l===c.type)return i;i--}if(o<t.length){if((c=t[o])&&!(2&c.__u)&&a==c.key&&l===c.type)return o;o++}}return -1}(l,n,s,p))&&(p--,(c=n[u])&&(c.__u|=2)),null==c||null===c.__v?(-1==u&&_--,"function"!=typeof l.type&&(l.__u|=4)):u!=s&&(u==s-1?_--:u==s+1?_++:(u>s?_--:_++,l.__u|=4))):e.__k[a]=null;if(p)for(a=0;a<d;a++)null==(c=n[a])||2&c.__u||(c.__e==r&&(r=k(c)),function e(t,n,r){var o,a;if(i.unmount&&i.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||P(o,null,n)),null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){i.__e(e,n)}o.base=o.__P=null}if(o=t.__k)for(a=0;a<o.length;a++)o[a]&&e(o[a],n,r||"function"!=typeof t.type);r||w(t.__e),t.__c=t.__=t.__e=void 0}(c,c));return r}(n,t,N,s,E),p=0;p<E;p++)null!=(m=n.__k[p])&&(_=-1===m.__i?h:N[m.__i]||h,m.__i=p,C=T(e,m,_,o,a,l,c,s,u,d),g=m.__e,m.ref&&_.ref!=m.ref&&(_.ref&&P(_.ref,null,m),d.push(m.ref,m.__c||g,m)),null==x&&null!=g&&(x=g),4&m.__u||_.__k===m.__k?s=function e(t,n,r){var i,o;if("function"==typeof t.type){for(i=t.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=t,n=e(i[o],n,r));return n}t.__e!=n&&(n&&t.type&&!r.contains(n)&&(n=k(t)),r.insertBefore(t.__e,n||null),n=t.__e);do n=n&&n.nextSibling;while(null!=n&&8==n.nodeType);return n}(m,s,e):"function"==typeof m.type&&void 0!==C?s=C:g&&(s=g.nextSibling),m.__u&=-7);return n.__e=x,s}function I(e,t,n){"-"==t[0]?e.setProperty(t,n??""):e[t]=null==n?"":"number"!=typeof n||m.test(t)?n:n+"px"}function S(e,t,n,r,i){var o;e:if("style"==t){if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||I(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||I(e.style,t,n[t])}}else if("o"==t[0]&&"n"==t[1])o=t!=(t=t.replace(u,"$1")),t=t.toLowerCase()in e||"onFocusOut"==t||"onFocusIn"==t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=d,e.addEventListener(t,o?_:p,o)):e.removeEventListener(t,o?_:p,o);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=n??"";break e}catch{}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function A(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=d++;else if(t.t<n.u)return;return n(i.event?i.event(t):t)}}}function T(e,t,n,o,a,l,c,s,u,d){var p,_,f,m,y,C,N,I,A,T,L,P,z,W,M,R,$,D=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(u=!!(32&n.__u),l=[s=t.__e=n.__e]),(p=i.__b)&&p(t);e:if("function"==typeof D)try{if(I=t.props,A="prototype"in D&&D.prototype.render,T=(p=D.contextType)&&o[p.__c],L=p?T?T.props.value:p.__:o,n.__c?
vendor: 3,993 bytes, line 1
1N=(_=t.__c=n.__c).__=_.__E:(A?t.__c=_=new D(I,L):(t.__c=_=new x(I,L),_.constructor=D,_.render=O),T&&T.sub(_),_.props=I,_.state||(_.state={}),_.context=L,_.__n=o,f=_.__d=!0,_.__h=[],_._sb=[]),A&&null==_.__s&&(_.__s=_.state),A&&null!=D.getDerivedStateFromProps&&(_.__s==_.state&&(_.__s=g({},_.__s)),g(_.__s,D.getDerivedStateFromProps(I,_.__s))),m=_.props,y=_.state,_.__v=t,f)A&&null==D.getDerivedStateFromProps&&null!=_.componentWillMount&&_.componentWillMount(),A&&null!=_.componentDidMount&&_.__h.push(_.componentDidMount);else{if(A&&null==D.getDerivedStateFromProps&&I!==m&&null!=_.componentWillReceiveProps&&_.componentWillReceiveProps(I,L),!_.__e&&(null!=_.shouldComponentUpdate&&!1===_.shouldComponentUpdate(I,_.__s,L)||t.__v==n.__v)){for(t.__v!=n.__v&&(_.props=I,_.state=_.__s,_.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),P=0;P<_._sb.length;P++)_.__h.push(_._sb[P]);_._sb=[],_.__h.length&&c.push(_);break e}null!=_.componentWillUpdate&&_.componentWillUpdate(I,_.__s,L),A&&null!=_.componentDidUpdate&&_.__h.push(function(){_.componentDidUpdate(m,y,C)})}if(_.context=L,_.props=I,_.__P=e,_.__e=!1,z=i.__r,W=0,A){for(_.state=_.__s,_.__d=!1,z&&z(t),p=_.render(_.props,_.state,_.context),M=0;M<_._sb.length;M++)_.__h.push(_._sb[M]);_._sb=[]}else do _.__d=!1,z&&z(t),p=_.render(_.props,_.state,_.context),_.state=_.__s;while(_.__d&&++W<25);_.state=_.__s,null!=_.getChildContext&&(o=g(g({},o),_.getChildContext())),A&&!f&&null!=_.getSnapshotBeforeUpdate&&(C=_.getSnapshotBeforeUpdate(m,y)),s=E(e,v(R=null!=p&&p.type===b&&null==p.key?p.props.children:p)?R:[R],t,n,o,a,l,c,s,u,d),_.base=t.__e,t.__u&=-161,_.__h.length&&c.push(_),N&&(_.__E=_.__=null)}catch(e){if(t.__v=null,u||null!=l){if(e.then){for(t.__u|=u?160:128;s&&8==s.nodeType&&s.nextSibling;)s=s.nextSibling;l[l.indexOf(s)]=null,t.__e=s}else for($=l.length;$--;)w(l[$])}else t.__e=n.__e,t.__k=n.__k;i.__e(e,t,n)}else null==l&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=function(e,t,n,o,a,l,c,s,u){var d,p,_,f,m,g,y,b=n.props,x=t.props,C=t.type;if("svg"==C?a="http://www.w3.org/2000/svg":"math"==C?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=l){for(d=0;d<l.length;d++)if((m=l[d])&&"setAttribute"in m==!!C&&(C?m.localName==C:3==m.nodeType)){e=m,l[d]=null;break}}if(null==e){if(null==C)return document.createTextNode(x);e=document.createElementNS(a,C,x.is&&x),s&&(i.__m&&i.__m(t,l),s=!1),l=null}if(null===C)b===x||s&&e.data===x||(e.data=x);else{if(l=l&&r.call(e.childNodes),b=n.props||h,!s&&null!=l)for(b={},d=0;d<e.attributes.length;d++)b[(m=e.attributes[d]).name]=m.value;for(d in b)if(m=b[d],"children"!=d){if("dangerouslySetInnerHTML"==d)_=m;else if(!(d in x)){if("value"==d&&"defaultValue"in x||"checked"==d&&"defaultChecked"in x)continue;S(e,d,null,m,a)}}for(d in x)m=x[d],"children"==d?f=m:"dangerouslySetInnerHTML"==d?p=m:"value"==d?g=m:"checked"==d?y=m:s&&"function"!=typeof m||b[d]===m||S(e,d,m,b[d],a);if(p)s||_&&(p.__html===_.__html||p.__html===e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(_&&(e.innerHTML=""),E(e,v(f)?f:[f],t,n,o,"foreignObject"==C?"http://www.w3.org/1999/xhtml":a,l,c,l?l[0]:n.__k&&k(n,0),s,u),null!=l)for(d=l.length;d--;)w(l[d]);s||(d="value","progress"==C&&null==g?e.removeAttribute("value"):void 0===g||g===e[d]&&("progress"!=C||g)&&("option"!=C||g===b[d])||S(e,d,g,b[d],a),d="checked",void 0!==y&&y!==e[d]&&S(e,d,y,b[d],a))}return e}(n.__e,t,n,o,a,l,c,u,d);return(p=i.diffed)&&p(t),128&t.__u?void 0:s}function L(e,t,n){for(var r=0;r<n.length;r++)P(n[r],n[++r],n[++r]);i.__c&&i.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){i.__e(e,t.__v)}})}function P(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){i.__e(e,n)}}function O(e,t,n){return this.constructor(e,n)}function z(e,t,n){var o,a,l;t==document&&(t=document.documentElement),i.__&&i.__(e,t),o=t.__k,a=[],l=[],T(t,e=t.__k=function(e,t,n){var i,o,a,l={};
vendor: 1,078 bytes, line 1
1for(a in t)"key"==a?i=t[a]:"ref"==a?o=t[a]:l[a]=t[a];if(arguments.length>2&&(l.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===l[a]&&(l[a]=e.defaultProps[a]);return y(e,l,i,o,null)}(b,null,[e]),o||h,h,t.namespaceURI,o?null:t.firstChild?r.call(t.childNodes):null,a,o?o.__e:t.firstChild,!1,l),L(a,e,l)}r=f.slice,i={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},o=0,x.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=g({},this.state),"function"==typeof e&&(e=e(g({},n),this.props)),e&&g(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),C(this))},x.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),C(this))},x.prototype.render=b,a=[],c="function"==typeof Promise?Promise.prototype.then.bind(Prom
1ise.resolve()):setTimeout,s=function(e,t){return e.__v.__b-t.__v.__b},N.__r=0,u=/(PointerCapture)$|Capture$/i,d=0,p=A(!1),_=A(!0);var W=0;function M(e,t,n,r,o,a){t||(t={});var l,c,s=t;if("ref"in s)for(c in s={},t)"ref"==c?l=t[c]:s[c]=t[c];var u={type:e,props:s,key:n,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--W,__i:-1,__u:0,__source:o,__self:a};if("function"==typeof e&&(l=e.defaultProps))for(c in l)void 0===s[c]&&(s[c]=l[c]);return i.vnode&&i.vnode(u),u}var R,$,D,B,H=0,F=[],j=i,U=j.__b,q=j.__r,G=j.diffed,V=j.__c,Y=j.unmount,K=j.__;function Z(e,t){j.__h&&j.__h($,e,H||t),H=0;var n=$.__H||($.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function J(e,t,n){var r=Z(R++,2);if(r.t=e,!r.__c&&(r.__=[ea(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=$,!$.u)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!o||o.call(this,e,t,n);var a=r.__c.props!==e;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}}),o&&o.call(this,e,t,n)||a};$.u=!0;var o=$.shouldComponentUpdate,a=$.componentWillUpdate;$.componentWillUpdate=function(e,t,n){if(this.__e){var r=o;o=void 0,i(e,t,n),o=r}a&&a.call(this,e,t,n)},$.shouldComponentUpdate=i}return r.__N||r.__}function Q(e,t){var n=Z(R++,3);!j.__s&&eo(n.__H,t)&&(n.__=e,n.i=t,$.__H.__h.push(n))}function X(e){return H=5,ee(function(){return{current:e}},[])}function ee(e,t){var n=Z(R++,7);return eo(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function et(){for(var e;e=F.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(er),e.__H.__h.forEach(ei),e.__H.__h=[]}catch(t){e.__H.__h=[],j.__e(t,e.__v)}}j.__b=function(e){$=null,U&&U(e)},j.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),K&&K(e,t)},j.__r=function(e){q&&q(e),R=0;var t=($=e.__c).__H;t&&(D===$?(t.__h=[],$.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0})):(t.__h.forEach(er),t.__h.forEach(ei),t.__h=[],R=0)),D=$},j.diffed=function(e){G&&G(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==F.push(t)&&B===j.requestAnimationFrame||((B=j.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),en&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);en&&(t=requestAnimationFrame(n))})(et)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.i=void 0})),D=$=null},j.__c=function(e,t){t.some(function(e){try{e.__h.forEach(er),e.__h=e.__h.filter(function(e){return!e.__||ei(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],j.__e(n,e.__v)}}),V&&V(e,t)},j.unmount=function(e){Y&&Y(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{er(e)}catch(e){t=e}}),n.__H=void 0,t&&j.__e(t,n.__v))};var en="function"==typeof requestAnimationFrame;function er(e){var t=$,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),$=t}function ei(e){var t=$;e.__c=e.__(),$=t}function eo(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function ea(e,t){return"function"==typeof t?t(e):t}function el({containerRef:e,areaId:t,index:n,type:r,recommendationType:i,containerId:o,imgSelector:a,target_url:l,id:c}){Q(()=>{"number"==typeof o&&e.current&&function({containerRef:e,areaId:t,index:n,type:r,recommendationType:i,containerId:o,imgSelector:a,target_url:l,id:c}){let s=e.current;s&&window.WP.push(()=>{var e;window.WP.pwp.registerBox(s,{url:window.location.href,type:r,areaid:t,index:n,recommendationType:i,target_url:l??(s.href||void 0),id:c??"",img:a?(null==(e=s.querySelector(a))?void 0:e.src)||a:""},o,{time:1,percent:50})})}({containerRef:e,areaId:t,index:n,type:r,recommendationType:i,containerId:o,imgSelector:a,target_url:l,id:c})},[o,e.current])}function ec(){return M("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:M("path",{d:"M10.5 5.75001C10.5017 6.40995 10.3475 7.06096 10.05 7.65001C9.69722 8.35589 9.15488 8.9496 8.48372 9.36465C7.81257 9.77971 7.03912 9.99971 6.25 10C5.59007 10.0017 4.93906 9.84755 4.35 9.55001L1.5 10.5L2.45 7.65001C2.15247 7.06096 1.99828 6.40995 2 5.75001C2.00031 4.96089 2.22031 4.18744 2.63536 3.51629C3.05041 2.84514 3.64413 2.3028 4.35 1.95001C4.93906 1.65248 5.59007 1.49829 6.25 1.50001H6.5C7.54217 1.55751 8.52652 1.99739 9.26457 2.73544C10.0026 3.47349 10.4425 4.45784 10.5 5.50001V5.75001Z",stroke:"black","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"})})}function es(e){let t=e.data,{hideLabel:n=!1,labelText:r,containerId:i,areaId:o,index:a,commentsCount:l}=t,c=X(null);if(el({containerRef:c,areaId:o,index:a,type:"teaser",recommendationType:"big-data",containerId:i,imgSelector:".exit-disco-teaser__photo",id:"native-teaser"}),!t.src||!t.url||!t.text)return null;let s=function(e,t,n){let r=function(e){if(!e)return null;try{return new URL(e)}catch{return null}}(e);if(!r)return"";e&&r.href;let i=e?r.host:"",o=e?r.pathname:"";return`https://i.wpimg.pl/597x316/${i||""}${o||""}`||""}(t.src,0,0),u=window.WP.crux.mess(s),d=n?void 0:r,p=(l??0)>5;return M("a",{ref:c,className:"exit-disco-teaser__link",href:t.url,children:[M("figure",{className:"exit-disco-teaser__figure",children:[M("img",{src:u,alt:t.text,className:"exit-disco-teaser__photo"}),p&&M("span",{className:"exit-disco-teaser__comments-count-label",children:[M(ec,{}),l]})]}),M("div",{className:"exit-disco-teaser__text exit-disco-teaser__title",children:t.text}),d&&M("span",{className:"exit-disco-teaser__label",children:d})]})}!function(e){e.Autocentrum="AUTOCENTRUM.PL",e.Autokult="AUTOKULT",e.Benchmark="BENCHMARK.PL",e.Dobreprogramy="DOBREPROGRAMY",e.EAutokult="E-AUTOKULT",e.Fotoblogia="FOTOBLOGIA",e.Gadzetomania="GADŻETOMANIA",e.Genialne="GENIALNE.PL",e.Jastrzabpost="JASTRZABPOST.PL",e.Komorkomania="KOM\xd3RKOMANIA",e.Money="MONEY.P
1L",e.O2="O2.PL",e.Polygamia="POLYGAMIA.PL",e.Pudelek="PUDELEK.PL",e.Pysznosci="PYSZNOÅCI.PL",e.Informacje="INFORMACJE",e.Sportowefakty="SPORTOWE FAKTY",e.Wiadomosci="WIADOMOÅCI",e.Tech="TECH",e.Abczdrowie="ABC ZDROWIE",e.Teleshow="TELESHOW",e.Wideo="WIDEO",e.Finanse="FINANSE",e.Kuchnia="KUCHNIA",e.Parenting="PARENTING",e.Kobieta="KOBIETA",e.Facet="FACET",e.Gry="GRY",e.Turystyka="TURYSTYKA",e.Film="FILM",e.Moto="MOTO",e.Pogoda="POGODA",e.Wszechmocne="WSZECHEMOCNE",e.Kultura="KULTURA",e.Dom="DOM",e.Popularne="POPULARNE",e.Gwiazdy="GWIAZDY",e.Ksiazki="KSIÄÅ»KI",e.Premium="PREMIUM"}(ta||(ta={})),function(e){e.Autocentrum="autocentrum.pl",e.Autokult="autokult.pl",e.Benchmark="benchmark.pl",e.Dobreprogramy="dobreprogramy.pl",e.EAutokult="e.autokult.pl",e.Fotoblogia="fotoblogia.pl",e.Gadzetomania="gadzetomania.pl",e.Genialne="genialne.pl",e.Jastrzabpost="jastrzabpost.pl",e.Komorkomania="komorkomania.pl",e.Money="money.pl",e.O2="o2.pl",e.Polygamia="polygamia.pl",e.Pudelek="pudelek.pl",e.Pysznosci="pysznosci.pl",e.Deliciousmagazine="deliciousmagazine.pl",e.InformacjeWp="informacje.wp.pl",e.SportowefaktyWp="sportowefakty.wp.pl",e.WiadomosciWp="wiadomosci.wp.pl",e.TechWp="tech.wp.pl",e.Abczdrowie="abczdrowie.pl",e.TeleshowWp="teleshow.wp.pl",e.WideoWp="wideo.wp.pl",e.FinanseWp="finanse.wp.pl",e.KuchniaWp="kuchnia.wp.pl",e.Parenting="parenting.pl",e.KobietaWp="kobieta.wp.pl",e.FacetWp="facet.wp.pl",e.GryWp="gry.wp.pl",e.TurystykaWp="turystyka.wp.pl",e.FilmWp="film.wp.pl",e.MotoWp="moto.wp.pl",e.PogodaWp="pogoda.wp.pl",e.WszechmocneWp="wszechmocne.wp.pl",e.KulturaWp="kultura.wp.pl",e.DomWp="dom.wp.pl",e.Popularne="popularne.pl",e.GwiazdyWp="gwiazdy.wp.pl",e.KsiazkiWp="ksiazki.wp.pl",e.PremiumWp="premium.wp.pl"}(tl||(tl={}));let eu="https://sgwp.wpcdn.pl/static/logotypes/feed",ed={[tl.Autocentrum]:{img:eu+"/autocentrum.svg",name:ta.Autocentrum},[tl.Autokult]:{img:eu+"/autokult.svg",name:ta.Autokult},[tl.Benchmark]:{img:eu+"/benchmark.svg",name:ta.Benchmark},[tl.Dobreprogramy]:{img:eu+"/dobreprogramy.svg",name:ta.Dobreprogramy},[tl.EAutokult]:{img:eu+"/eautokut.svg",name:ta.EAutokult},[tl.Fotoblogia]:{img:eu+"/fotoblogia.svg",name:ta.Fotoblogia},[tl.Gadzetomania]:{img:eu+"/gadzetomania.svg",name:ta.Gadzetomania},[tl.Genialne]:{img:eu+"/genialne.svg",name:ta.Genialne},[tl.Jastrzabpost]:{img:eu+"/jastrzabpost.svg",name:ta.Jastrzabpost},[tl.Komorkomania]:{img:eu+"/komorkomania.svg",name:ta.Komorkomania},[tl.Money]:{img:eu+"/money.svg",name:ta.Money},[tl.O2]:{img:eu+"/o2.svg",name:ta.O2},[tl.Polygamia]:{img:eu+"/polygamia.svg",name:ta.Polygamia},[tl.Pudelek]:{img:eu+"/pudelek.svg",name:ta.Pudelek},[tl.Pysznosci]:{img:eu+"/pysznosci.svg",name:ta.Pysznosci},[tl.Deliciousmagazine]:{img:eu+"/pysznosci.svg",name:ta.Pysznosci},[tl.InformacjeWp]:{img:eu+"/informacje.svg",name:ta.Informacje},[tl.SportowefaktyWp]:{name:ta.Sportowefakty,color:"#166c00"},[tl.WiadomosciWp]:{name:ta.Wiadomosci,color:"#c00"},[tl.TechWp]:{name:ta.Tech,color:"#734db2"},[tl.Abczdrowie]:{name:ta.Abczdrowie,color:"#fb434b"},[tl.TeleshowWp]:{name:ta.Teleshow,color:"#4069a2"},[tl.WideoWp]:{name:ta.Wideo,color:"#c00"},[tl.FinanseWp]:{name:ta.Finanse,color:"#d26740"},[tl.KuchniaWp]:{name:ta.Kuchnia,color:"#66bf00"},[tl.Parenting]:{name:ta.Parenting,color:"#e15aa2"},[tl.KobietaWp]:{name:ta.Kobieta,color:"#a65867"},[tl.FacetWp]:{name:ta.Facet,color:"#80838a"},[tl.GryWp]:{name:ta.Gry,color:"#406c94"},[tl.TurystykaWp]:{name:ta.Turystyka,color:"#3d6fb0"},[tl.FilmWp]:{name:ta.Film,color:"#694BBD"},[tl.MotoWp]:{name:ta.Moto,color:"#e54600"},[tl.PogodaWp]:{name:ta.Pogoda,color:"#02ade3"},[tl.WszechmocneWp]:{name:ta.Wszechmocne,color:"#a65867"},[tl.KulturaWp]:{name:ta.Kultura,color:"#ca0044"},[tl.DomWp]:{name:ta.Dom,color:"#31b4d0"},[tl.Popularne]:{name:ta.Popularne,color:"#d21f15"},[tl.GwiazdyWp]:{name:ta.Gwiazdy,color:"#9c7aaa"},[tl.KsiazkiWp]:{name:ta.Ksiazki,color:"#8ccac8"},[tl.PremiumWp]:{name:ta.Premium,color:"#22242d"}};function ep(e){return"u">typeof window&&window.WP.crux&&window.WP.crux.mess?window.WP.crux.mess(e):e}function e_({url:e}){let t=ee(()=>(function(e){if(!e)return null;let t=Object.values(tl).find(t=>e.toLowerCase().includes(t));return t&&ed[t]||null})(e),[e]);return t?M("div",{className:"wp-service-label",children:[M("div",{className:"wp-service-logo",style:t.color?{backgroundColor:t.color}:{},children:[t.img&&M("img",{src:ep(t.img),alt:"",height:18,width:18}),t.color&&M("img",{src:ep("https://sgwp.wpcdn.pl/static/images/svg/logo.svg"),alt:"",width:13,height:8})]}),t.name]}):null}function eh(){return M("div",{className:"wp-action-bar",children:M("span",{className:"wp-see-more-button",children:"Czytaj wiÄcej"})})}function ef({title:e}){return M("div",{className:"wp-title",children:M("span",{class:"wp-title-text",children:e})})}function em(e){var t;let{url:n,text:r,originalUrl:i,leadText:o,containerId:a,areaId:l,index:c}=e,s=X(null);return el({containerRef:s,areaId:l,index:c,type:"teaserNoPhoto",containerId:a,target_url:null==(t=s.current)?void 0:t.href,id:"native-teaser-without-photo",recommendationType:"big-data"}),n&&r?M("div",{className:"wp-native-teaser-without-photo",children:M("a",{ref:s,href:n,className:"wp-link",children:[M(e_,{url:i??""}),M("div",{className:"wp-content",children:[M(ef,{title:r??""}),o&&M("div",{className:"wp-lead",dangerouslySetInnerHTML:{__html:o??""}})]}),M(eh,{})]})}):null}function ev(){return M("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:M("path",{d:"M11 1L1 11M1 1l10 10",stroke:"currentColor","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round"})})}let eg=e=>Math.random().toString(36).substring(2,12),ew=e=>M("div",{className:"exit-disco-teaser",children:M(es,{data:e})});function ey({slotNumber:e,areaId:t,containerId:n,index:r}){let i=X(null),o=eg();return Q(()=>{i.current&&window.WP.gaf.registerSlot(e,i.current,{setNative:(e,o)=>{"teaser"===e.type&&i.current&&(i.current.innerHTML="",z(ew({areaId:t,containerId:n,index:r,...e}),i.current),null==o||o({el:i.current}))}})},[e,t,n,r]),M("div",{className:o,children:M("div",{ref:i})})}function eb(){return M("div",{className:"exit-disco-teaser__skeleton",children:[M("figure",{className:"exit-disco-teaser__figure",children:M("div",{className:"exit-disco-teaser__photo"})}),M("div",{className:"exit-disco-teaser__text",children:[M("p",{className:"exit-disco-teaser__title"}),M("p",{className:"exit-disco-teaser__title"})]})]})}var ex=(e=>(e[e.SLOT_826=826]="SLOT_826",e[e.SLOT_827=827]="SLOT_827",e[e.SLOT_828=828]="SLOT_828",e[e.SLOT_829=829]="SLOT_829",e[e.SLOT_830=830]="SLOT_830",e[e.SLOT_831=831]="SLOT_831",e))(ex||{});let ek=(e,t)=>{let n="click";function r(i){null===e||e===i.target||e.contains(i.target)||(t(),document.body.removeEventListener(n,r))}return document.addEventListener(n,r),()=>{document.removeEventListener(n,r)}},eC=e=>{var t,n;null!=(n=null==(t=e.target)?void 0:t.closest)&&n.call(t,".exit-disco__teasers")||e.preventDefault()},eN=!1,eE=()=>{eN?(eN=!1,document.removeEventListener("touchmove",eC),document.body.style.overflow=""):(eN=!0,document.addEventListener("touchmove",eC,{passive:!1}),document.body.style.overflow="hidden")},eI=[ex.SLOT_826,ex.SLOT_827,ex.SLOT_828,ex.SLOT_829,ex.SLOT_830,ex.SLOT_831];function eS(e){let{isLogged:t=!1,topOffset:n=0,bottomOffset:r=0,teasersAmount:i=6,withNativeSlots:o=[]}=e,a=X(null),l=X(null),c=X(null),s=X(null),u=X([]),d=X(null),[p,_]=(H=1,J(ea,!0)),h=eI.slice(0,i),f="scrolled-top",m="scrolled-bottom",v="exit-discover",g=function({areaId:e,isLogged:t,length:n,enabled:r=!0}){let[i,o]=(H=1,J(ea,!1));return Q(()=>{r&&function({areaId:e,isLogged:t,length:n},r){window.WP.push(()=>{let i=window.WP.pwp.registerContainer({isLogged:t,url:window.location.href,type:"area",areaid:e,length:n});r("number"==typeof i&&i)})}({areaId:e,isLogged:t,length:n},o)},[e,t,n,r]),i}({areaId:v,isLogged:t,length:h.length,enabled:p}),w=e=>{e&&e.target&&window.WP.push(()=>{window.WP.stat.wave("click",{type:"button",areaId:v,index:0,url:window.location.href,target_url:"close"})}),eE(),_(e=>!e)};el({containerRef:d,areaId:v,index:0,type:"button",containerId:g,target_url:"close",id:"close"});let y=()=>{var e;null==(e=l.current)||e.classList.add("exit-disco__drawer--roll-in")},b=()=>{var t;if(e&&l.current&&a.current){let i=(null==(t=e.getBottomOffset)?void 0:t.call(e))??r;a.current.style.bottom=i.toString()+"px",l.current.style.height=`calc(100% - ${i+n}px)`}},x=()=>
1{let e=c.current,t=s.current;e&&t&&(0===e.scrollTop?t.classList.add(f):Math.round(e.scrollTop)===e.scrollHeight-e.clientHeight?t.classList.add(m):(t.classList.contains(f)&&t.classList.remove(f),t.classList.contains(m)&&t.classList.remove(m)))},k=()=>{h.forEach((e,t)=>{if(!o.includes(e)){let n=u.current[t];n&&window.WP.gaf.registerSlot(e,n,{setNative:(e,r)=>{"teaser"===e.type&&((n.innerHTML="",e.src)?z(M(es,{data:{areaId:v,containerId:g,index:t,...e}}),n):z(M(em,{url:e.url??"",text:e.text??"",leadText:e.leadText??"",originalUrl:e.originalUrl??"",containerId:g,areaId:v,index:t}),n),r&&r({el:n}))}})}})},C=()=>{a.current&&(p?a.current.classList.remove("exit-disco-hide"):a.current.classList.add("exit-disco-hide"))};return Q(()=>{"number"==typeof g&&k()},[g]),Q(()=>{if(C(),p){eE(),b(),y(),x();let e=l.current&&ek(l.current,w);return()=>{e&&e()}}},[p]),M("div",{ref:a,className:"exit-disco",children:M("div",{ref:l,className:"exit-disco__drawer",children:[M("div",{className:"exit-disco__header",children:[M("span",{className:"exit-disco__title",children:"Czytaj dalej"}),M("button",{ref:d,className:"exit-disco__close",onClick:w,"aria-label":"Zamknij",children:M(ev,{})})]}),M("div",{ref:s,className:"exit-disco__teasers-wrapper cHJldmVudENC",children:M("div",{ref:c,className:"exit-disco__teasers",onScroll:x,children:h.map((e,t)=>o.includes(e)?M(ey,{slotNumber:e,areaId:v,containerId:g,index:t},e):M("div",{className:"exit-disco-teaser",ref:e=>u.current[t]=e,children:M(eb,{})},e))})})]})})}function eA(e,t,n="traffic"){if(window.location.hostname.includes("localhost")){console.info("SEND_WAVE => ",e,t,n);return}if("undefined"!=typeof window&&window.WP)try{window.WP.push(function(){window.WP.stat.wave(e,t,n)})}catch(e){console.error("WP_STAT_WAVE_ERROR: ",e)}}let eT=new Set,eL=new IntersectionObserver(function(e){e.forEach(e=>{if(e.isIntersecting){let t=e.target.getAttribute("data-uxc");t&&!eT.has(t)&&(eT.add(t),eA("evt_ux_consumption",{event:"view",pos:String(t)})),eL.unobserve(e.target)}})},{threshold:0,root:null}),eP="data-navigate-href",eO=`[${eP}]`,ez=new Set(["A","BUTTON"]);function eW(e,t){let n=e.getAttribute(eP),r=t||"_blank"===e.getAttribute("data-navigate-target");if(e.hasAttribute("data-navigate-back")&&!r&&window.history.length>1){window.history.back();return}if(n){if(r){window.open(n,"_blank","noopener");return}window.location.href=n}}function eM(e){return e instanceof Element?e.closest(eO):null}function eR(e){let t=eM(e.target);t&&(e.preventDefault(),eW(t,e.metaKey||e.ctrlKey||e.shiftKey))}function e$(e){if(1!==e.button)return;let t=eM(e.target);t&&(e.preventDefault(),eW(t,!0))}function eD(e){if("Enter"!==e.key&&" "!==e.key)return;let t=eM(e.target);!(!t||ez.has(t.tagName))&&(e.preventDefault(),eW(t,!1))}function eB(e){!ez.has(e.tagName)&&(e.hasAttribute("role")||e.setAttribute("role","link"),e.hasAttribute("tabindex")||e.setAttribute("tabindex","0"))}function eH(e){e instanceof Element&&e.matches(eO)&&eB(e),(e instanceof Element||e instanceof Document)&&e.querySelectorAll(eO).forEach(eB)}function eF(e=document){eH(e),window.__NAVIGATE_LINKS_INITIALIZED__||(document.addEventListener("click",eR),document.addEventListener("auxclick",e$),document.addEventListener("keydown",eD),window.__NAVIGATE_LINKS_INITIALIZED__=!0),window.__NAVIGATE_LINKS_OBSERVER_STARTED__||(window.__NAVIGATE_LINKS_OBSERVER_STARTED__=!0,function(e=document.body){new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>eH(e))})}).observe(e,{childList:!0,subtree:!0})}())}let ej=["wp-bottombar-newest-panel","wp-bottombar-gallery-panel","wp-bottombar-discover-more-panel"],eU=!1,eq=0;function eG(e){1===e.targetTouches.length&&(eq=e.targetTouches[0].clientY)}function eV(e){var t;if(1!==e.targetTouches.length)return;let n=(t=e.target)instanceof Element?t.closest(".timeline-slider"):null;if(!n){e.preventDefault();return}let r=e.targetTouches[0].clientY-eq,{scrollTop:i,scrollHeight:o,clientHeight:a}=n;(i<=0&&r>0||i+a>=o&&r<0)&&e.preventDefault()}function eY({listContainer:e,prevButton:t,nextButton:n}){let r=e.scrollWidth-e.clientWidth;t.disabled=e.scrollLeft<=0,n.disabled=e.scrollLeft>=r-1}
1function eK(e,t,n){var r;let i=e.firstElementChild;return((null!==(r=null==i?void 0:i.clientWidth)&&void 0!==r?r:0)+function(e,t){let n=window.getComputedStyle(e),r=parseFloat(n.columnGap),i=parseFloat(n.gap);return Number.isFinite(r)?r:Number.isFinite(i)?i:t}(e,t))*n}let eZ="#wp-video-queue-list > .wp-video-queue-teaser:first-child",eJ="data-wp-video-queue-countdown-overlay",eQ=` 2<svg viewBox="0 0 174 98" class="wp-video-queue-teaser-counter-border" ${eJ} aria-hidden="true" focusable="false"> 3 <rect width="174" height="98" x="2" y="2" fill="#000" fill-opacity="0" rx="8"></rect> 4 <rect 5 width="174" 6 height="98" 7 x="0" 8 y="0" 9 fill-opacity="0" 10 stroke="#ED1C24" 11 stroke-dasharray="544" 12 stroke-dashoffset="544" 13 stroke-width="4" 14 rx="4" 15 class="wp-video-queue-teaser-border-rect" 16 style="--initial-offset: 544" 17 ></rect> 18</svg> 19<span class="wp-video-queue-teaser-countdown" ${eJ} aria-hidden="true" hidden></span> 20`;function eX(e,t,n){var r,i,o,a,l;(null==n?void 0:n.withTeaserOverlay)===!0&&"playing"===t?null!==(o=e.teaserOverlay)&&void 0!==o||(e.teaserOverlay=function(){let e=document.querySelector(eZ),t=null==e?void 0:e.querySelector(":scope > img");return e&&t?(e.querySelector(`[${eJ}]`)||t.insertAdjacentHTML("afterend",eQ),function(e){let t=e.querySelector(`.wp-video-queue-teaser-countdown[${eJ}]`);return t?{borderRects:Array.from(e.querySelectorAll(".wp-video-queue-teaser-border-rect")),countdownEl:t}:null}(e)):null}()):"idle"===t&&(function(e=null){var t;let n=null!==(t=null==e?void 0:e.countdownEl.parentElement)&&void 0!==t?t:document.querySelector(eZ);if(n)for(let e of n.querySelectorAll(`[${eJ}]`))e.remove()}(e.teaserOverlay),e.teaserOverlay=null),function(e,t){for(let n of e)n.classList.remove("playing","paused"),"playing"===t?(n.getBoundingClientRect(),n.classList.add("playing")):"paused"===t&&n.classList.add("paused")}([...null!==(a=null===(r=e.endscreen)||void 0===r?void 0:r.borderRects)&&void 0!==a?a:[],...null!==(l=null===(i=e.teaserOverlay)||void 0===i?void 0:i.borderRects)&&void 0!==l?l:[]],t)}let e0="wp-video-queue-endscreen",e1=` 21<svg width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true" focusable="false"> 22 <path d="M3.01206 10.2855C2.62018 12.3399 2.94392 14.4666 3.92937 16.3113C4.91482 18.156 6.5025 19.6075 8.428 20.424C10.3535 21.2404 12.5006 21.3726 14.5117 20.7985C16.5228 20.2244 18.2765 18.9787 19.4808 17.2687C20.6851 15.5588 21.2673 13.4879 21.1304 11.401C20.9934 9.31401 20.1457 7.33694 18.7283 5.79902C17.3109 4.2611 15.4095 3.25517 13.3406 2.94874C11.2717 2.64232 9.1603 3.0539 7.35799 4.11494" stroke="currentColor" stroke-width="1.7" stroke-linecap="round"/> 23 <path d="M6.77634 2.10234L6.2587 4.0342C6.11576 4.56766 6.43234 5.116 6.9658 5.25894L8.89766 5.77658" stroke="currentColor" stroke-width="1.7" stroke-linecap="round"/> 24 <path d="M10.2119 8.45142C10.2143 8.45228 10.2206 8.45448 10.2295 8.46118L15.0273 12.0598C15.0368 12.0669 15.0409 12.0732 15.043 12.0774C15.0455 12.0828 15.0479 12.0906 15.0479 12.0999C15.0479 12.1091 15.0455 12.1169 15.043 12.1223C15.0409 12.1265 15.0368 12.1328 15.0273 12.1399L10.2295 15.7385C10.2206 15.7452 10.2143 15.7474 10.2119 15.7483C10.2095 15.7491 10.2073 15.7501 10.2051 15.7502C10.1998 15.7506 10.1897 15.7493 10.1777 15.7434C10.1656 15.7373 10.1583 15.7294 10.1553 15.7249C10.154 15.7229 10.1531 15.7206 10.1523 15.718C10.1516 15.7156 10.1494 15.7097 10.1494 15.6985V8.50122C10.1494 8.49005 10.1516 8.48408 10.1523 8.48169C10.1531 8.4791 10.154 8.47682 10.1553 8.47485C10.1583 8.47034 10.1656 8.46237 10.1777 8.4563C10.1897 8.45044 10.1998 8.44915 10.2051 8.44946C10.2073 8.44962 10.2095 8.45057 10.2119 8.45142Z" stroke="currentColor" stroke-width="1.7"/> 25</svg>`,e2=` 26<svg width="32" height="32" viewBox="0 0 32 32" fill="none" aria-hidden="true" focusable="false"> 27 <path fill="#cc0000" d="M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z"/> 28 <path fill="#fff" d="M13 11.358C13 10.4105 14.0979 9.8855 14.8354 10.4804L20.8711 15.3487C21.4435 15.8104 21.4278 16.6878 20.8391 17.1287L14.8034 21.6493C14.06 22.2061 13 21.6756 13 20.7468V11.358Z"/> 29</svg>`,e3=` 30<svg viewBox="0 0 120 68" class="wp-video-queue-teaser-counter-border" aria-hidden="true" focusable="false"> 31 <rect 32 width="120" 33 height="68" 34 fill-opacity="0" 35 stroke="#ED1C24" 36 stroke-dasharray="376" 37 stroke-dashoffset="376" 38 stroke-width="4" 39 rx="4" 40 class="wp-video-queue-teaser-border-rect" 41 style="--initial-offset: 376" 42 /> 43</svg>`;function e5(e){return e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}let e4="wp-video-queue-endscreen-floating",e7=new WeakMap;function e6(){let e=document.querySelector(".wpp-endscreen");e&&e.style.setProperty("display","none")}function e8(){for(let e of document.querySelectorAll('.wpp-endscreen [data-wpp-control
43="replay"]'))e.textContent="Odtw\xf3rz ponownie"}function e9(e,t){if(e.endscreen)return e.endscreen.root.parentElement!==t&&t.appendChild(e.endscreen.root),!0;t.insertAdjacentHTML("beforeend",function(e){let t=e5(e.titleUrl),n=e5(e.title),r=e5(function(e){var t,n,r,i;if(!e)return"";let o=e.replace(/^(https?:)?\/\//,""),a=`https://i.wpimg.pl/120x68/${o}`;return null!==(i=null===(r=window.WP)||void 0===r?void 0:null===(n=r.crux)||void 0===n?void 0:null===(t=n.mess)||void 0===t?void 0:t.call(n,a))&&void 0!==i?i:a}(e.screenshot));return` 44<section class="wp-video-queue-endscreen" id="${e0}" aria-labelledby="wp-video-queue-endscreen-heading"> 45 <div class="wp-video-queue-endscreen-next"> 46 <h2 id="wp-video-queue-endscreen-heading" class="wp-video-queue-endscreen-label">Proponowany film:</h2> 47 <span class="wp-video-queue-endscreen-thumb"> 48 <img src="${r}" width="120" height="68" alt=""> 49 ${e3} 50 <span class="wp-video-queue-endscreen-countdown" aria-hidden="true">5</span> 51 <span class="wp-video-queue-endscreen-watch-cue" aria-hidden="true"> 52 ${e2} 53 <span>OglÄ daj</span> 54 </span> 55 </span> 56 <a class="wp-video-queue-endscreen-next-link" href="${t}">${n}</a> 57 </div> 58 <button type="button" class="wp-video-queue-endscreen-replay-btn"> 59 ${e1} 60 Odtw\xf3rz ponownie 61 </button> 62</section>`}(e.nextVideo));let n=t.querySelector(`#${e0}`);if(!n)return!1;let r=function(e){let t=e.querySelector(".wp-video-queue-endscreen-countdown"),n=e.querySelector(".wp-video-queue-endscreen-replay-btn"),r=e.querySelector(".wp-video-queue-endscreen-next-link");return t&&n&&r?{root:e,countdown:t,borderRects:Array.from(e.querySelectorAll(".wp-video-queue-teaser-border-rect")),replayBtn:n,nextLink:r,controlsWired:!1}:null}(n);return r?(e.endscreen=r,!function(e){let t=e7.get(e),n=e.endscreen;t&&n&&!n.controlsWired&&(n.controlsWired=!0,n.replayBtn.addEventListener("click",()=>{var n,r;te(e),eX(e,"idle"),null===(r=(n=t.player).setUrl)||void 0===r||r.call(n,n.p.url)}))}(e),!0):(n.remove(),!1)}function te(e){var t;null===(t=e.endscreen)||void 0===t||t.root.remove(),e.endscreen=null,function(){let e=document.querySelector(".wpp-endscreen");e&&e.style.removeProperty("display")}()}function tt(e){let{player:t,session:n,countdown:r,enableEndscreenInPlayer:i,enableTeaserCountdownOverlay:o=!1,autoplayAfterFloatingClose:a,pauseOnFloatingCloseBeforeEnd:l,onEndMovie:c,onShowEndscreenInPlayer:s}=e,u=!1,d=!1,p=!0,_={withTeaserOverlay:o};function h(){var e;return!!(null===(e=t.isSticky)||void 0===e?void 0:e.call(t))}function f(){eX(n,"idle",_),r.reset()}function m(){u&&!h()&&!d&&("hidden"!==document.visibilityState&&p?(eX(n,"playing",_),r.start()):(eX(n,"paused",_),r.reset()))}function v(){!d&&(eX(n,"idle",_),function(e,t){var n;let r=function(e){var t,n,r;let i=null!==(r=null===(t=e.getOverlayContainer)||void 0===t?void 0:t.call(e))&&void 0!==r?r:null===(n=e.getContainer)||void 0===n?void 0:n.call(e);return i instanceof HTMLElement?i:null}(t);r&&e9(e,r)&&(null===(n=e.endscreen)||void 0===n||n.root.classList.add(e4),e6())}(n,t),r.stop())}function g(){var e,t;i&&(null==s||s(),e9(e=n,e.playerBox)&&(null===(t=e.endscreen)||void 0===t||t.root.classList.remove(e4),e6())),m()}function w(){u&&!d&&(f(),v())}t.on("END_MOVIE",function(){if(u=!0,null==c||c(),d){f();return}if(h()){f(),v();return}g()}),t.on("CHANGE_CLIPDATA",function(){u=!1,te(n),f()}),t.on("CHANGE_STICKY",function(e){var i,o;let c=null==e?void 0:null===(i=e.detail)||void 0===i?void 0:i.isSticky;"boolean"==typeof c&&(c?w():(null===(o=e.detail)||void 0===o?void 0:o.reason)==="close-user"?function(){if(f(),!u){l&&t.pause(),te(n);return}if(a){g();return}d=!0,te(n)}():(te(n),r.reset(),u&&!d&&g()))}),t.on("VISIBLE",function(e){var t;let n=null==e?void 0:null===(t=e.detail)||void 0===t?void 0:t.visible;"boolean"==typeof n&&(p=n),m()}),document.addEventListener("visibilitychange",m),h()&&w()}let tn=!1;function tr(e){try{let{withVideoQueue:t,isMobile:n}=window.__INIT_CONFIG__,r=document.querySelectorAll("[data-video-config]");if(!r.length)return null;r.forEach(r=>{let i=JSON.parse(r.dataset.videoConfig||"");if(i.url){if(!window.WP)return(window.__wpsjqueue=window.__wpsjqueue||[]).push(tr);window.WP.push(()=>{let r=!1;if(function(e){let t=window.WP.player.T;return t&&t.some(t=>!!t.p&&t.p.url===e)}(i.url))return;let o=window.WP.player(i);if(o.on("CHANGE_CLIPDATA",t=>{var n,r,o;let{title:a,mid:l}
62=(null===(n=t.detail)||void 0===n?void 0:n.clip)||(null===(o=t.detail)||void 0===o?void 0:null===(r=o.data)||void 0===r?void 0:r.clip)||{};a&&l&&function(e,t,n,r){var i,o;let a=document.querySelector(t),l=null==a?void 0:a.closest(".wp-content-part-video"),c=null!==(i=null==l?void 0:l.closest(".wp-content-part-video-title-contained"))&&void 0!==i?i:null==l?void 0:l.previousElementSibling,s=null==c?void 0:c.querySelector("[data-video-title]"),u=null==c?void 0:c.querySelector("a.wp-video-title-link");if(!s)return;s.innerHTML=e;let d=r.find(e=>e.mid===String(n));if(null==d?void 0:d.titleUrl){if(u)u.setAttribute("href",d.titleUrl);else{let e=document.createElement("a");e.className="wp-video-title-link",e.setAttribute("href",d.titleUrl),null===(o=s.parentNode)||void 0===o||o.insertBefore(e,s),e.appendChild(s)}}}(a,i.target,l,e)}),o.on("START_MOVIE",()=>{if(!r){r=!0,e.length>0&&o.setRelatedVideos(e);return}}),e.length>0&&t){let[t]=e;!function(e,t,n){var r;if(tn||!t&&!document.getElementById(`wp-video-queue-teaser-${e.mid}`))return;let i=function(e){let t=document.getElementById("video-queue-root"),n=t?document.querySelector(`[data-video-queue-player="${t.id}"]`):null;return t&&n?{root:t,list:document.getElementById("wp-video-queue-list"),playerBox:n,nextVideo:e,teaserOverlay:null,endscreen:null}:null}(e);if(!i)return;tn=!0;let o=(e7.set(i,{player:n}),function(e,t,n){let r=null,i=null;function o(){null!==r&&(clearInterval(r),r=null),null!==i&&(clearTimeout(i),i=null)}return{start:function(){o();let e=5;t(e),r=setInterval(()=>{t(Math.max(e-=1,0)),e<=0&&(null!==r&&clearInterval(r),r=null,i=setTimeout(()=>{i=null,n()},1e3))},1e3)},stop:o,reset:function(){o(),t(null)}}}(0,e=>(function(e,t){var n;let r=null!==t?String(t):"";e.endscreen&&(e.endscreen.countdown.textContent=r);let i=null===(n=e.teaserOverlay)||void 0===n?void 0:n.countdownEl;i&&(i.hidden=null===t,i.textContent=r)})(i,e),()=>(function(e){var t;let n=null===(t=e.endscreen)||void 0===t?void 0:t.nextLink;if(n){n.click();return}window.location.href=e.nextVideo.titleUrl})(i)));if(t){!function(){let e=document.getElementById("wp-video-queue-toggle-button"),t=document.getElementById("wp-video-queue-collapsible-list");e&&t&&"true"!==e.dataset.videoQueueInitialized&&(e.dataset.videoQueueInitialized="true",e.ariaLabel="Pokaż wiÄcej film\xf3w",e.addEventListener("click",function(){let n="true"!==e.ariaExpanded;e.ariaExpanded=`${n}`,e.ariaLabel=n?"Pokaż mniej film\xf3w":"Pokaż wiÄcej film\xf3w",t.setAttribute("data-expanded",`${n}`)}))}();let e=!1;tt({player:n,session:i,countdown:o,autoplayAfterFloatingClose:!0,pauseOnFloatingCloseBeforeEnd:!0,enableEndscreenInPlayer:!0,enableTeaserCountdownOverlay:!1,onEndMovie:()=>{e8()},onShowEndscreenInPlayer:()=>{e||(!function(){let e=document.querySelector('[data-mobile-current-teaser="true"]');if(!e)return;let t=document.querySelector('[data-mobile-next-teaser="true"]');if(!t)return;e.classList.add("wp-video-queue-mobile-teaser-hidden"),e.after(t),t.classList.remove("wp-video-queue-teaser-buffer-hidden");let n=document.getElementById("wp-video-queue-collapsible-list");if(!n)return;let r=n.querySelector(".wp-video-queue-teaser-buffer-hidden");r&&r.classList.remove("wp-video-queue-teaser-buffer-hidden")}(),e=!0)}});return}let a=!!(null===(r=i.list)||void 0===r?void 0:r.closest(".wp-video-series-header"));!function({listContainer:e,prevButton:t,nextButton:n,itemGap:r=24,itemsPerStep:i=1,initializedDataKey:o="carouselInitialized"}){if(!e||!(t instanceof HTMLButtonElement)||!(n instanceof HTMLButtonElement))return;let a={listContainer:e,prevButton:t,nextButton:n};if("true"===e.dataset[o]){eY(a);return}e.dataset[o]="true",eY(a),e.addEventListener("scroll",()=>eY(a)),t.addEventListener("click",()=>{e.scrollBy({behavior:"smooth",left:-eK(e,r,i)})}),n.addEventListener("click",()=>{e.scrollBy({behavior:"smooth",left:eK(e,r,i)})})}({listContainer:i.list,prevButton:document.getElementById("wp-video-queue-carousel-btn-left"),nextButton:document.getElementById("wp-video-queue-carousel-btn-right"),itemsPerStep:a?2:1}),tt({player:n,session:i,countdown:o,autoplayAfterFloatingClose:!1,pauseOnFloating
62CloseBeforeEnd:!1,enableEndscreenInPlayer:!1,enableTeaserCountdownOverlay:!0,onEndMovie:()=>{var e;(e=i.list)&&e.scrollTo({left:0,behavior:"smooth"}),e8()},onShowEndscreenInPlayer:()=>{}})}({mid:t.mid,titleUrl:t.titleUrl,title:t.title,screenshot:t.screenshot},n,o)}})}})}catch(e){return console.error(e),null}}async function ti(e,t=!1){if(!e)return;let n=document.querySelector(".embed-vimeo"),r=n.dataset.url;try{let e=await fetch(`https://vimeo.com/api/oembed.json?url=${r}&responsive=true${t?"":"&autoplay=true&muted=true"}`),i=await e.json();n.innerHTML=i.html}catch(e){console.error(e)}}function to(e){let t=document.querySelectorAll(".wp-content-part-video");if(!t.length)return;let n=function(e){let t=new IntersectionObserver(n=>{n.forEach(async n=>{if(n.isIntersecting){var r,i;let o=n.target,a=null==o?void 0:o.dataset.type,l=null!==(i=null===(r=window.__INIT_CONFIG__)||void 0===r?void 0:r.mothRelatedVideos)&&void 0!==i?i:[];switch(a){case"WIDEOWPPL":case"YOUTUBE":case"short":tr(l);break;case"VIMEO":await ti(o,e)}t.unobserve(n.target)}})},{threshold:0,rootMargin:"200px"});return t}(e);t.forEach(e=>n.observe(e))}var ta,tl,tc,ts,tu,td,tp,t_,th,tf,tm,tv,tg,tw={},ty=[],tb=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,tx=Array.isArray;function tk(e,t){for(var n in t)e[n]=t[n];return e}function tC(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function tN(e,t,n){var r,i,o,a={};for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?tc.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return tE(e,a,r,i,null)}function tE(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++tu,__i:-1,__u:0};return null==i&&null!=ts.vnode&&ts.vnode(o),o}function tI(e){return e.children}function tS(e,t){this.props=e,this.context=t}function tA(e,t){if(null==t)return e.__?tA(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?tA(e):null}function tT(e){(!e.__d&&(e.__d=!0)&&td.push(e)&&!tL.__r++||tp!==ts.debounceRendering)&&((tp=ts.debounceRendering)||t_)(tL)}function tL(){var e,t,n,r,i,o,a,l;for(td.sort(th);e=td.shift();)e.__d&&(t=td.length,r=void 0,o=(i=(n=e).__v).__e,a=[],l=[],n.__P&&((r=tk({},i)).__v=i.__v+1,ts.vnode&&ts.vnode(r),tR(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,a,o??tA(i),!!(32&i.__u),l),r.__v=i.__v,r.__.__k[r.__i]=r,t$(a,r,l),r.__e!=o&&function e(t){var n,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(r=t.__k[n])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return e(t)}}(r)),td.length>t&&td.sort(th));tL.__r=0}function tP(e,t,n,r,i,o,a,l,c,s,u){var d,p,_,h,f,m,v=r&&r.__k||ty,g=t.length;for(c=function(e,t,n,r,i){var o,a,l,c,s,u=n.length,d=u,p=0;for(e.__k=Array(i),o=0;o<i;o++)null!=(a=t[o])&&"boolean"!=typeof a&&"function"!=typeof a?(c=o+p,(a=e.__k[o]="string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?tE(null,a,null,null,null):tx(a)?tE(tI,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?tE(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,l=null,-1!==(s=a.__i=function(e,t,n,r){var i,o,a=e.key,l=e.type,c=t[n];if(null===c||c&&a==c.key&&l===c.type&&!(2&c.__u))return n;if(r>(null==c||2&c.__u?0:1))for(i=n-1,o=n+1;i>=0||o<t.length;){if(i>=0){if((c=t[i])&&!(2&c.__u)&&a==c.key&&l===c.type)return i;i--}if(o<t.length){if((c=t[o])&&!(2&c.__u)&&a==c.key&&l===c.type)return o;o++}}return -1}(a,n,c,d))&&(d--,(l=n[s])&&(l.__u|=2)),null==l||null===l.__v?(-1==s&&p--,"function"!=typeof a.type&&(a.__u|=4)):s!=c&&(s==c-1?p--:s==c+1?p++:(s>c?p--:p++,a.__u|=4))):e.__k[o]=null;if(d)for(o=0;o<u;o++)null==(l=n[o])||2&l.__u||(l.__e==r&&(r=tA(l)),function e(t,n,r){var i,o;if(ts.unmount&&ts.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||tD(i,null,n)),null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){ts.__e(e,n)}i.base=i.__P=null}if(i=t.__k)for(o=0;o<i.length;o++)i[o]&&e(i[o],n,r||"function"!=typeof t.type);r||tC(t.__e),t.__c=t.__=t.__e=void 0}(l,l));return r}(n,t,v,c,g),d=0;d<g;d++)null!=(_=n.__k[d])&&(p=-1===_.__i?tw:v[_.__i]||tw,_.__i=d,m=tR(e,_,p,i,o,a,l,c,s,u),h=_.__e,_.ref&&p.ref!=_.ref&&(p.ref&&tD(p.ref,null,_),u.push(_.ref,_.__c||h,_)),null==f&&null!=h&&(f=h),4&_.__u||p.__k===_.__k?c=function e(t,n,r){var i,o;if("function"==typeof t.type){for(i=t.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=t,n=e(i[o],n,r));return n}t.__e!=n&&(n&&t.type&&!r.contains(n)&&(n=tA(t)),r.insertBefore(t.__e,n||null),n=t.__e);do n=n&&n.nextSibling;while(null!=n&&8==n.nodeType);return n}
vendor: 5,325 bytes, line 62
62(_,c,e):"function"==typeof _.type&&void 0!==m?c=m:h&&(c=h.nextSibling),_.__u&=-7);return n.__e=f,c}function tO(e,t){return t=t||[],null==e||"boolean"==typeof e||(tx(e)?e.some(function(e){tO(e,t)}):t.push(e)),t}function tz(e,t,n){"-"==t[0]?e.setProperty(t,n??""):e[t]=null==n?"":"number"!=typeof n||tb.test(t)?n:n+"px"}function tW(e,t,n,r,i){var o;e:if("style"==t){if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||tz(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||tz(e.style,t,n[t])}}else if("o"==t[0]&&"n"==t[1])o=t!=(t=t.replace(tf,"$1")),t=t.toLowerCase()in e||"onFocusOut"==t||"onFocusIn"==t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=tm,e.addEventListener(t,o?tg:tv,o)):e.removeEventListener(t,o?tg:tv,o);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=n??"";break e}catch{}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function tM(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=tm++;else if(t.t<n.u)return;return n(ts.event?ts.event(t):t)}}}function tR(e,t,n,r,i,o,a,l,c,s){var u,d,p,_,h,f,m,v,g,w,y,b,x,k,C,N,E,I=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(c=!!(32&n.__u),o=[l=t.__e=n.__e]),(u=ts.__b)&&u(t);e:if("function"==typeof I)try{if(v=t.props,g="prototype"in I&&I.prototype.render,w=(u=I.contextType)&&r[u.__c],y=u?w?w.props.value:u.__:r,n.__c?m=(d=t.__c=n.__c).__=d.__E:(g?t.__c=d=new I(v,y):(t.__c=d=new tS(v,y),d.constructor=I,d.render=tB),w&&w.sub(d),d.props=v,d.state||(d.state={}),d.context=y,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),g&&null==d.__s&&(d.__s=d.state),g&&null!=I.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=tk({},d.__s)),tk(d.__s,I.getDerivedStateFromProps(v,d.__s))),_=d.props,h=d.state,d.__v=t,p)g&&null==I.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),g&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(g&&null==I.getDerivedStateFromProps&&v!==_&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(v,y),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(v,d.__s,y)||t.__v==n.__v)){for(t.__v!=n.__v&&(d.props=v,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(v,d.__s,y),g&&null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(_,h,f)})}if(d.context=y,d.props=v,d.__P=e,d.__e=!1,x=ts.__r,k=0,g){for(d.state=d.__s,d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),C=0;C<d._sb.length;C++)d.__h.push(d._sb[C]);d._sb=[]}else do d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++k<25);d.state=d.__s,null!=d.getChildContext&&(r=tk(tk({},r),d.getChildContext())),g&&!p&&null!=d.getSnapshotBeforeUpdate&&(f=d.getSnapshotBeforeUpdate(_,h)),l=tP(e,tx(N=null!=u&&u.type===tI&&null==u.key?u.props.children:u)?N:[N],t,n,r,i,o,a,l,c,s),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),m&&(d.__E=d.__=null)}catch(e){if(t.__v=null,c||null!=o){if(e.then){for(t.__u|=c?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;o[o.indexOf(l)]=null,t.__e=l}else for(E=o.length;E--;)tC(o[E])}else t.__e=n.__e,t.__k=n.__k;ts.__e(e,t,n)}else null==o&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):l=t.__e=function(e,t,n,r,i,o,a,l,c){var s,u,d,p,_,h,f,m=n.props,v=t.props,g=t.type;if("svg"==g?i="http://www.w3.org/2000/svg":"math"==g?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=o){for(s=0;s<o.length;s++)if((_=o[s])&&"setAttribute"in _==!!g&&(g?_.localName==g:3==_.nodeType)){e=_,o[s]=null;break}}if(null==e){if(null==g)return document.createTextNode(v);e=document.createElementNS(i,g,v.is&&v),l&&(ts.__m&&ts.__m(t,o),l=!1),o=null}if(null===g)m===v||l&&e.data===v||(e.data=v);else{if(o=o&&tc.call(e.childNodes),m=n.props||tw,!l&&null!=o)for(m={},s=0;s<e.attributes.length;s++)m[(_=e.attributes[s]).name]=_.value;for(s in m)if(_=m[s],"children"!=s){if("dangerouslySetInnerHTML"==s)d=_;else if(!(s in v)){if("value"==s&&"defaultValue"in v||"checked"==s&&"defaultChecked"in v)continue;tW(e,s,null,_,i)}}for(s in v)_=v[s],"children"==s?p=_:"dangerouslySetInnerHTML"==s?u=_:"value"==s?h=_:"checked"==s?f=_:l&&"function"!=typeof _||m[s]===_||tW(e,s,_,m[s],i);if(u)l||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),tP(e,tx(p)?p:[p],t,n,r,"foreignObject"==g?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:n.__k&&tA(n,0),l,c),null!=o)for(s=o.length;s--;)tC(o[s]);l||(s="value","progress"==g&&null==h?e.removeAttribute("value"):void 0===h||h===e[s]&&("progress"!=g||h)&&("option"!=g||h===m[s])||tW(e,s,h,m[s],i),s="checked",void 0!==f&&f!==e[s]&&tW(e,s,f,m[s],i))}return e}(n.__e,t,n,r,i,o,a,c,s);return(u=ts.diffed)&&u(t),128&t.__u?void 0:l}function t$(e,t,n){for(var r=0;r<n.length;r++)tD(n[r],n[++r],n[++r]);ts.__c&&ts.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}
vendor: 1,190 bytes, line 62
62catch(e){ts.__e(e,t.__v)}})}function tD(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){ts.__e(e,n)}}function tB(e,t,n){return this.constructor(e,n)}function tH(e,t,n){var r,i,o;t==document&&(t=document.documentElement),ts.__&&ts.__(e,t),r=t.__k,i=[],o=[],tR(t,e=t.__k=tN(tI,null,[e]),r||tw,tw,t.namespaceURI,r?null:t.firstChild?tc.call(t.childNodes):null,i,r?r.__e:t.firstChild,!1,o),t$(i,e,o)}tc=ty.slice,ts={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},tu=0,tS.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=tk({},this.state),"function"==typeof e&&(e=e(tk({},n),this.props)),e&&tk(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),tT(this))},tS.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),tT(this))},tS.prototype.render=tI,td=[],t_="function"==typeof Promise?Promise.prototype.then.bind(Prom
62ise.resolve()):setTimeout,th=function(e,t){return e.__v.__b-t.__v.__b},tL.__r=0,tf=/(PointerCapture)$|Capture$/i,tm=0,tv=tM(!1),tg=tM(!0);var tF=0;function tj(e,t,n,r,i,o){t||(t={});var a,l,c=t;if("ref"in c)for(l in c={},t)"ref"==l?a=t[l]:c[l]=t[l];var s={type:e,props:c,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--tF,__i:-1,__u:0,__source:i,__self:o};if("function"==typeof e&&(a=e.defaultProps))for(l in a)void 0===c[l]&&(c[l]=a[l]);return ts.vnode&&ts.vnode(s),s}var tU,tq,tG,tV,tY=0,tK=[],tZ=ts,tJ=tZ.__b,tQ=tZ.__r,tX=tZ.diffed,t0=tZ.__c,t1=tZ.unmount,t2=tZ.__;function t3(e,t){tZ.__h&&tZ.__h(tq,e,tY||t),tY=0;var n=tq.__H||(tq.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function t5(e){return tY=1,t4(no,e)}function t4(e,t,n){var r=t3(tU++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):no(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=tq,!tq.u)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!o||o.call(this,e,t,n);var a=r.__c.props!==e;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}}),o&&o.call(this,e,t,n)||a};tq.u=!0;var o=tq.shouldComponentUpdate,a=tq.componentWillUpdate;tq.componentWillUpdate=function(e,t,n){if(this.__e){var r=o;o=void 0,i(e,t,n),o=r}a&&a.call(this,e,t,n)},tq.shouldComponentUpdate=i}return r.__N||r.__}function t7(e,t){var n=t3(tU++,3);!tZ.__s&&ni(n.__H,t)&&(n.__=e,n.i=t,tq.__H.__h.push(n))}function t6(e){return tY=5,t8(function(){return{current:e}},[])}function t8(e,t){var n=t3(tU++,7);return ni(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function t9(e,t){return tY=8,t8(function(){return e},t)}function ne(){for(var e;e=tK.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(nn),e.__H.__h.forEach(nr),e.__H.__h=[]}catch(t){e.__H.__h=[],tZ.__e(t,e.__v)}}tZ.__b=function(e){tq=null,tJ&&tJ(e)},tZ.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),t2&&t2(e,t)},tZ.__r=function(e){tQ&&tQ(e),tU=0;var t=(tq=e.__c).__H;t&&(tG===tq?(t.__h=[],tq.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0})):(t.__h.forEach(nn),t.__h.forEach(nr),t.__h=[],tU=0)),tG=tq},tZ.diffed=function(e){tX&&tX(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==tK.push(t)&&tV===tZ.requestAnimationFrame||((tV=tZ.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),nt&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);nt&&(t=requestAnimationFrame(n))})(ne)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.i=void 0})),tG=tq=null},tZ.__c=function(e,t){t.some(function(e){try{e.__h.forEach(nn),e.__h=e.__h.filter(function(e){return!e.__||nr(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],tZ.__e(n,e.__v)}}),t0&&t0(e,t)},tZ.unmount=function(e){t1&&t1(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{nn(e)}catch(e){t=e}}),n.__H=void 0,t&&tZ.__e(t,n.__v))};var nt="function"==typeof requestAnimationFrame;function nn(e){var t=tq,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),tq=t}function nr(e){var t=tq;e.__c=e.__(),tq=t}function ni(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function no(e,t){return"function"==typeof t?t(e):t}let na="WPgeoudc",nl="weatherv2",nc="u">typeof window&&window.API_WEATHER?window.API_WEATHER:"https://www.wp.pl/v1/weather",ns="u">typeof window&&window.API_TABS?window.API_TABS:"https://www.wp.pl/v1/tab";function nu(e){let t=e+"=",n=decodeURIComponent(document.cookie).split(";");for(let e=0;e<n.length;e++){let r=n[e];for(;" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(t))return r.substring(t.length,r.length)}return""}let nd=/^\d{1,3}(\.\d{1,3}){3}$/;function np(e){let{name:t,value:n,exdays:r,domain:i,sameSite:o,secure:a}=e,l=new Date;l.setTime(l.getTime()+864e5*r);let c=`${t}=${n};expires=${l.toUTCString()};path=/`;i&&(c+=`;domain=${i}`),o&&(c+=`;SameSite=${o}`),a&&(c+=";Secure"),document.cookie=c}function n_(){return nu(na)||nu(nl)}function nh(e){np({name:na,value:e,domain:function(e=window.location.hostname){if(!("localhost"===e||nd.test(e))&&e.includes("."))return e}(),exdays:365,sameSite:"None",secure:!0}),np({name:nl,value:e,exdays:365})}function nf(e,t){let[n,r]=t4(function(e,t){return"LOADING"===t.type?{state:t.type,data:void 0,error:void 0}:"ERROR"===t.type?{state:t.type,error:t.payload}:"FETCHED"===t.type?{state:t.type,error:void 0,data:t.payload}:e},{error:void 0,data:void 0,state:"LOADING"});return t7(()=>{e&&(async()=>{r({type:"LOADING"});try{let n=await fetch(e,t);if(!n.ok)throw Error(n.statusText);let i=await n.json();r({type:"FETCHED",payload:i})}catch(e){r({type:"ERROR",payload:e})}})()},[e]),n}function nm(e,t){try{localStorage&&localStorage.setItem(e,t);return}catch{return}}function nv(e){try{return localStorage?localStorage.getItem(e):null}catch{return null}}let ng=()=>{let[e,t]=t5([]);return t7(()=>{let e=nv("lastSearchedCities");if(e)try{let n=JSON.parse(e);t(n)}catch(e){console.log(e)}},[]),[e,n=>{let r=e.filter(e=>e.geonameid!==n.geonameid).slice(0,3),i=[n,...r];nm("lastSearchedCities",JSON.stringify(i)),t(i)}]},nw=e=>{let{intervals:t,airQuality:n,...r}=e;return e?{airQuality:n&&n.level,intervals:Array.isArray(t)&&t.length?t:[],...r,time:"00:00"}:null},ny=()=>tj("span",{className:"mx-1.5 mb-1 inline-block rotate-45 border-b border-r border-solid border-inherit p-[3px]"}),nb=()=>tj("span",{className:"mx-1 mb-1 inline-block rotate-45 border-b border-l-0 border-r border-t-0 border-solid border-[var(--wp-weather-text-primary,#059)] p-0.5"}),nx=()=>tj("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",transform:"matrix(-1,0,0,1,0,0)",children:[tj("path",{d:"M19.0711 12.0002L4.92893 12.0002",stroke:"currentColor","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round"}),tj("path",{d:"M12 19.0713L4.92893 12.0002L12 4.92915",stroke:"currentColor","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round"})]});function nk({areaId:e,useTime:t=!1,skip:n=!1,onRegistered:r}){let i=t6(null);return t7(()=>
62{if(n)return;let o=i.current;if(!o)return;let a=o.querySelectorAll("[data-vab-box]");if(a.length)try{let n={type:"area",areaid:e,length:a.length},i=window.WP.pwp.registerContainer(n);a.forEach((n,r)=>{let o={type:"button",areaid:e,index:r,target_url:n.getAttribute("href")||"",id:n.dataset.vabBox||""};window.WP.pwp.registerBox(n,o,i,t?{useTime:!0}:void 0)}),null==r||r()}catch(t){console.log(`Error registering ${e}: ${String(t)}`)}},[n]),i}let nC=e=>{let{iconId:t,cdnURL:n="https://sgwp.wpcdn.pl/static/images/weather/",messUrl:r,...i}=e,o=function(e){return e in nN?nN[e]:null}(t);if(!o)return null;let a=`${n}${o.id}.svg`;return tj("img",{src:r?r(a):a,...i,alt:o.alt||"pogoda"})},nN={1:{id:1,night:!1,heavy:!1,name:"freezing light rain",alt:"marznÄ
cy lekki deszcz",precipitation:"RAIN",storm:!1},2:{id:2,night:!1,heavy:!1,name:"freezing rain",alt:"marznÄ
cy deszcz",precipitation:"HAIL",storm:!1},3:{id:3,night:!1,heavy:!0,name:"heavy rain",alt:"ulewa",precipitation:"RAIN",storm:!1},4:{id:4,night:!1,heavy:!0,name:"heavy snow",alt:"duże opady Åniegu",precipitation:"SNOW",storm:!1},5:{id:5,night:!1,heavy:!1,name:"light rain",alt:"lekki deszcz",precipitation:"RAIN",storm:!1},6:{id:6,night:!1,heavy:!1,name:"light sleet",alt:"sÅaby deszcz ze Åniegiem",precipitation:"SLEET",storm:!1},7:{id:7,night:!1,heavy:!1,name:"sleet",alt:"deszcz ze Åniegiem",precipitation:"SLEET",storm:!1},8:{id:8,night:!1,heavy:!1,name:"snow",alt:"Ånieg",precipitation:"SNOW",storm:!1},9:{id:9,night:!1,heavy:!1,name:"snow thunder storms",alt:"burze z piorunami i opady Åniegu",precipitation:"SNOW",storm:!0},10:{id:10,night:!1,heavy:!1,name:"thunder storms",alt:"burze z piorunami",precipitation:"RAIN",storm:!0},11:{id:11,night:!1,heavy:!1,name:"cloudy",alt:"",precipitation:"NONE",storm:!1},12:{id:12,night:!1,heavy:!1,name:"fog",alt:"",precipitation:"NONE",storm:!1},13:{id:13,night:!0,heavy:!1,name:"freezing drizzle",alt:"",precipitation:"RAIN",storm:!1},14:{id:14,night:!0,heavy:!0,name:"heavy rain",alt:"ulewa",precipitation:"RAIN",storm:!1},15:{id:15,night:!0,heavy:!0,name:"heavy sleet",alt:"",precipitation:"SLEET",storm:!1},16:{id:16,night:!0,heavy:!0,name:"heavy snow",alt:"",precipitation:"SNOW",storm:!1},17:{id:17,night:!0,heavy:!1,name:"light rain",alt:"lekki deszcz",precipitation:"RAIN",storm:!1},18:{id:18,night:!0,heavy:!1,name:"light sleet",alt:"",precipitation:"SLEET",storm:!1},19:{id:19,night:!0,heavy:!1,name:"rain",alt:"",precipitation:"RAIN",storm:!1},20:{id:20,night:!0,heavy:!1,name:"snow",alt:"",precipitation:"SNOW",storm:!1},21:{id:21,night:!0,heavy:!1,name:"snow thunder storms",alt:"burze z piorunami i opady Åniegu",precipitation:"SNOW",storm:!0},22:{id:22,night:!0,heavy:!1,name:"thunder storms",alt:"burze z piorunami",precipitation:"RAIN",storm:!0},23:{id:23,night:!0,heavy:!1,name:"cloudy",alt:"",precipitation:"NONE",storm:!1},24:{id:24,night:!0,heavy:!1,name:"fog",alt:"",precipitation:"NONE",storm:!1},25:{id:25,night:!0,heavy:!1,name:"partly fog",alt:"",precipitation:"NONE",storm:!1},26:{id:26,night:!0,heavy:!1,name:"various clouds",alt:"",precipitation:"NONE",storm:!1},27:{id:27,night:!0,heavy:!1,name:"freezing drizzle",alt:"",precipitation:"HAIL",storm:!1},28:{id:28,night:!0,heavy:!1,name:"freezing rain",alt:"",precipitation:"RAIN",storm:!1},29:{id:29,night:!0,heavy:!0,name:"heavy rain",alt:"ulewa",precipitation:"RAIN",storm:!1},30:{id:30,night:!0,heavy:!1,name:"light rain",alt:"lekki deszcz",precipitation:"RAIN",storm:!1},31:{id:31,night:!0,heavy:!1,name:"light sleet",alt:"",precipitation:"SLEET",storm:!1},32:{id:32,night:!0,heavy:!1,name:"light snow",alt:"",precipitation:"SNOW",storm:!1},33:{id:33,night:!0,heavy:!1,name:"rain",alt:"",precipitation:"RAIN",storm:!1},34:{id:34,night:!0,heavy:!1,name:"sleet",alt:"",precipitation:"SLEET",storm:!1},35:{id:35,night:!0,heavy:!1,name:"snow",alt:"",precipitation:"SNOW",storm:!1},36:{id:36,night:!0,heavy:!1,name:"thunder storms",alt:"burze z piorunami",precipitation:"RAIN",storm:!0},37:{id:37,night:!0,heavy:!1,name:"night",alt:"",precipitation:"NONE",storm:!1},38:{id:38,night:!1,heavy:!1,name:"freezing drizzle",alt:"",precipitation:"HAIL",storm:!1},39:{id:39,night:!1,heavy:!1,name:"freezing rain",alt:"",precipitation:"HAIL",storm:!1},40:{id:40,night:!1,heavy:!0,name:"heavy rain",alt:"ulewa",precipitation:"RAIN",storm:!1},41:{id:41,night:!1,heavy:!1,name:"heavy sleet",alt:"",precipitation:"SLEET",storm:!1},42:{id:42,night:!1,heavy:!1,name:"heavy snow",alt:"",precipitation:"SNOW",storm:!1}
62,43:{id:43,night:!1,heavy:!1,name:"light rain",alt:"lekki deszcz",precipitation:"RAIN",storm:!1},44:{id:44,night:!1,heavy:!1,name:"o_rain",alt:"",precipitation:"RAIN",storm:!1},45:{id:45,night:!1,heavy:!1,name:"sleet",alt:"",precipitation:"SLEET",storm:!1},46:{id:46,night:!1,heavy:!1,name:"snow",alt:"",precipitation:"SNOW",storm:!1},47:{id:47,night:!1,heavy:!1,name:"snow thunder storms",alt:"burze z piorunami i opady Åniegu",precipitation:"SNOW",storm:!0},48:{id:48,night:!1,heavy:!1,name:"thunder storms",alt:"burze z piorunami",precipitation:"RAIN",storm:!0},49:{id:49,night:!1,heavy:!1,name:"overcast",alt:"",precipitation:"NONE",storm:!1},50:{id:50,night:!1,heavy:!1,name:"partly fog",alt:"",precipitation:"NONE",storm:!1},51:{id:51,night:!1,heavy:!1,name:"sunny",alt:"",precipitation:"NONE",storm:!1},52:{id:52,night:!1,heavy:!1,name:"various clouds",alt:"",precipitation:"NONE",storm:!1},53:{id:53,night:!1,heavy:!1,name:"freezing rain",alt:"",precipitation:"HAIL",storm:!1},54:{id:54,night:!1,heavy:!0,name:"heavy drizzle",alt:"",precipitation:"RAIN",storm:!1},55:{id:55,night:!1,heavy:!0,name:"heavy rain",alt:"ulewa",precipitation:"RAIN",storm:!1},56:{id:56,night:!1,heavy:!1,name:"light drizzle",alt:"",precipitation:"RAIN",storm:!1},57:{id:57,night:!1,heavy:!1,name:"light rain",alt:"lekki deszcz",precipitation:"RAIN",storm:!1},58:{id:58,night:!1,heavy:!1,name:"light sleet",alt:"",precipitation:"SLEET",storm:!1},59:{id:59,night:!1,heavy:!1,name:"light snow",alt:"",precipitation:"SNOW",storm:!1},60:{id:60,night:!1,heavy:!1,name:"rain",alt:"",precipitation:"RAIN",storm:!1},61:{id:61,night:!1,heavy:!1,name:"showers",alt:"",precipitation:"RAIN",storm:!1},62:{id:62,night:!1,heavy:!1,name:"sleet",alt:"",precipitation:"SLEET",storm:!1},63:{id:63,night:!1,heavy:!1,name:"snow",alt:"",precipitation:"SNOW",storm:!1},64:{id:64,night:!1,heavy:!1,name:"snow thunder storms",alt:"burze z piorunami i opady Åniegu",precipitation:"SNOW",storm:!0},65:{id:65,night:!1,heavy:!1,name:"thunder storms",alt:"burze z piorunami",precipitation:"RAIN",storm:!0}};function nE(e,t=!1){return(function(e,t=!1){return Object.values(nN).filter(n=>n.precipitation===e&&n.storm===t)})(e,t).map(e=>e.id)}function nI(e,t,n){void 0===n&&(n={});var r,i,o,a=null!=(r=n.isImmediate)&&r,l=null!=(i=n.callback)&&i,c=n.maxWait,s=Date.now(),u=[],d=function(){var n=[].slice.call(arguments),r=this;return new Promise(function(i,d){var p=a&&void 0===o;if(void 0!==o&&clearTimeout(o),o=setTimeout(function(){if(o=void 0,s=Date.now(),!a){var t=e.apply(r,n);l&&l(t),u.forEach(function(e){return(0,e.resolve)(t)}),u=[]}},function(){if(void 0!==c){var e=Date.now()-s;if(e+t>=c)return c-e}return t}()),p){var _=e.apply(r,n);return l&&l(_),i(_)}u.push({resolve:i,reject:d})})};return d.cancel=function(e){void 0!==o&&clearTimeout(o),u.forEach(function(t){return(0,t.reject)(e)}),u=[]},d}let nS=()=>parseInt(nv("lastGeo")||"",10)||0,nA=()=>{nm("lastGeo",String(new Date().getTime()))},nT=(e=36e5)=>{let t=new Date(nS()).getTime();return Date.now()-t>e},nL=e=>!(!nT()||e===null.denied);async function nP(e){if(!(window&&"permissions"in window.navigator))return null.denied;let{permissions:t}=window.navigator;return(await t.query({name:e})).state}function nO(e,t){try{if(t){window.WP.geo.setGeolocation(t,e);return}navigator.geolocation.getCurrentPosition(t=>{window.WP.geo.setGeolocation(t,e)})}catch(e){console.error(e)}}async function nz(){return new Promise((e,t)=>{navigator.geolocation.getCurrentPosition(e,t)})}function nW(e){let[t,n]=t5(!1);return t7(()=>{let t=({key:t})=>{t===e&&n(!1)};function r({key:t}){t===e&&n(!0)}return window.addEventListener("keydown",r),window.addEventListener("keyup",t),()=>{window.removeEventListener("keydown",r),window.removeEventListener("keyup",t)}},[e]),t}let nM=()=>tj("div",{className:"py-2.5 text-center",children:tj("div",{className:"inline-block h-9 w-9",children:tj("div",{className:"flex h-6 w-6 animate-spin items-center justify-between",children:[tj("div",{className:"h-1.5 w-1.5 rounded-md bg-[#059]"}),tj("div",{className:"h-1.5 w-1.5 rounded-md bg-[#059]"}),tj("div",{className:"h-1.5 w-1.5 rounded-md bg-[#059]"})]})})});function nR(e,t){var n,r;if(!(null!=(r=null==(n=null==window?void 0:window.WP)?void 0:n.stat)&&r.wave)){console.log(e,t);return}try{window.WP.stat.wave(e,t)}catch(e){console.error({error:e,message:"problem with sending event show - wpjslib"})}}let n$="weather-widget";function nD(e){let{event:t,device:n,areaId:r}=e,i={event:t,device:n,areaid:r};"desktop"===e.device&&(i.location=e.location),nR(n$,i)}function nB(e){let{event:t,device:n,localization:r,areaId:i}=e,o={event:t,device:n,areaid:i};r&&(o.localization=r),"desktop"===e.device&&(o.location=e.location),nR(n$,o)}let nH=(e,t,n)=>{nR(n$,{event:"auto_localization",device:e,areaid:n,...t})},nF=async e=>{let{coords:{latitude:t,longitude:n,accuracy:r}}=e??await nz(),i=await (await fetch(`https://pogoda.wp.pl/v2/api/geoname/lat/${t}/lon/${n}`)).json();return{city:{geonameid:Number(i.geonameid),name:i.name,country:i.country,admin1:i.admin1,admin2:i.admin2},coords:{latitude:t,longitude:n,accuracy:r}}},nj=e=>new Promise((t,n)=>{nP("geolocation").then(async r=>{if(nL(r))try{let n=await nz();nO(e,n);let r=await nF(n);nA(),t(r)}catch(e){n(e)}else n({message:"auto-geolocation not available"})}).catch(e=>{n(e)})}),nU=(e,t)=>new Promise((n,r)=>{nj(t).then(r=>{nH(e,r.city,t),nm("WPGeo","1"),n(r)}).catch(e=>{r(e)})}),nq=({message:e})=>tj("div",{className:"pb-2 text-sm text-[#8f8f8f]",children:e});function nG(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r)}return i}(e))&&(r&&(r+=" "),r+=t);return r}let nV=({onClick:e,totalElements:t})=>tj("button",{className:"mt-4 flex h-10 w-full cursor-pointer items-center justify-center gap-1 rounded-lg bg-[--color-blue-400] text-base font-medium text-white hover:underline",type:"button",onClick:e,children:["WiÄcej",tj("span",{children:["(",t,")"]})]}),nY=e=>{let{setCurrentCityIndex:t,searchedCities:n=[],onCityChange:r,loadMoreCities:i,totalElements:o,searchCityLoading:a,isLastSearchedCities:l,onToggleShowMore:c,sourceAreaId:s,widgetLocation:u}=e,d=!!(o&&o>1&&!a);return n.length||a?tj("div",{className:"relative max-h-80 flex-1 overflow-auto rounded-lg bg-[var(--wp-weather-bg,initial)]",children:[l&&n&&n.length>0&&tj("div",{className:"py-2 text-base text-[#22242d] dark:text-white",children:"Ostatnio sprawdzane:"}),tj("ul",{className:nG(a&&"opacity-50","relative cursor-pointer"),"data-vab-box":null.selectLocation,children:[n&&n.length>0&&n.map((e,n)=>tj(nK,{id:(n+1).toString(),geonameid:e.geonameid,onCityChange:r,onToggleShowMore:c,voivodeshipOrState:e.admin1,city:e.name,country:e.country,setCurrentCityIndex:t,district:e.admin2,isLastSearchedCities:l,sourceAreaId:s,widgetLocation:u},`${e.geonameid}_${n}`)),a&&tj("div",{className:nG(o&&"absolute bottom-40 left-[calc(50%-35px)]","py-2.5"),
62children:tj(nM,{})}),d&&o&&n.length>0&&tj(nV,{totalElements:o,onClick:i})]})]}):null},nK=e=>{let{setCurrentCityIndex:t,city:n,country:r,voivodeshipOrState:i,onCityChange:o,id:a,geonameid:l,onToggleShowMore:c,district:s,isLastSearchedCities:u,sourceAreaId:d,widgetLocation:p}=e;return tj("li",{className:"group w-full py-2 text-base",id:a,onMouseDown:()=>{o({geonameid:l,name:n,country:r,admin1:i,admin2:s}),c(!1),nB({event:u?"history_click":"search_list_click",device:"desktop",localization:n,location:p,areaId:d})},onMouseEnter:e=>{t&&t(parseInt(e.currentTarget.id))},children:[tj("span",{className:"mr-1 break-words text-[--color-blue-400] group-hover:underline dark:text-white",children:n}),tj("span",{className:"text-xs text-[#636880] dark:text-[#ccd1dd]",children:(()=>{if("Polska"===r&&s){let e=s.includes("powiat")?s.replace("powiat","pow."):`pow. ${s}`;return`(woj. ${i} / ${e})`}return"Polska"===r?`(woj. ${i})`:`(${r} - ${i})`})()})]})},nZ=async(e,t=0,n)=>{try{return await (await fetch(`https://pogoda.wp.pl/v2/api/geoname/search/${e}?page=${t}&size=${n}`)).json()}catch(e){console.log(e)}},nJ=async e=>{let{coords:t}=e;try{return await (await fetch(`https://pogoda.wp.pl/v2/api/geoname/lat/${t.latitude}/lon/${t.longitude}`)).json()}catch(e){console.log(e)}},nQ=e=>tj("svg",{fill:"none",viewBox:"0 0 41 41",xmlns:"http://www.w3.org/2000/svg",...e,children:[tj("path",{d:"m30.75 11.81c0 7.1929-10.25 18.085-10.25 18.085s-10.25-10.892-10.25-18.085c0-2.4527 1.0799-4.805 3.0022-6.5393 1.9222-1.7343 4.5293-2.7087 7.2478-2.7087s5.3256 0.97434 7.2478 2.7087c1.9223 1.7343 3.0022 4.0866 3.0022 6.5393z",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.7"}),tj("path",{d:"m20.501 16.23c1.8869 0 3.4166-1.5297 3.4166-3.4167s-1.5297-3.4167-3.4166-3.4167c-1.887 0-3.4167 1.5297-3.4167 3.4167s1.5297 3.4167 3.4167 3.4167z",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.7"}),tj("path",{d:"m11.959 29.897c-1.7083 0-5.125 0.6597-5.125 3.1318 0 2.0443 6.1188 3.7016 13.667 3.7016 7.5478 0 13.667-1.6573 13.667-3.7016s-2.5625-3.1318-4.2708-3.1318",stroke:"currentColor","stroke-linecap":"round","stroke-width":"1.7"})]}),nX=e=>{let{onClick:t}=e;return tj("button",{type:"button",className:"flex h-10 w-full cursor-pointer items-center justify-center gap-2 rounded-lg border-none bg-[--color-blue-400] text-base font-medium text-white no-underline hover:underline",onClick:t,"data-vab-box":null.detectLocation,children:[tj(nQ,{class:"size-6 text-white"}),tj("div",{children:"Rozpoznaj lokalizacjÄ"})]})};function n0(e){let{title:t,cityName:n,onModalOpen:r}=e;return tj("div",{className:"flex w-full justify-between gap-4 text-base/5 font-bold text-white",children:[tj("span",{className:"flex-none",children:t}),tj("button",{type:"button",className:"inline-flex max-w-full cursor-pointer items-center gap-1 overflow-hidden rounded border-none bg-[--bg-secondary] px-1.5 text-[--text-secondary] hover:underline",onClick:r,"data-vab-box":null.changeLocation,children:[tj("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:n}),tj("span",{className:"mx-1.5 mb-1 inline-block rotate-45 border-b border-r border-solid border-inherit p-[3px]"})]})]})}let n1=e=>tj("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:tj("path",{d:"M10.653 15.858a5.732 5.732 0 1 0 0-11.464 5.732 5.732 0 0 0 0 11.464m9.927 3.748-5.4-5.4",stroke:"currentColor","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round"})}),n2=e=>{let{onChange:t,onFocus:n,onBlur:r,onCityChange:i,cityObj:o,onToggleShowMore:a,inputRef:l,header:c,city:s,sourceAreaId:u}=e,d=c?"header":"widget",[p,_]=t5(s||"");return tj("div",{className:"relative",children:[tj("input",{className:"h-10 w-full rounded-lg border border-solid border-[--color-blue-400] bg-transparent pl-5 pr-10 text-base text-[--color-blue-400] shadow-none outline-none placeholder:text-[#636880] dark:border-white dark:text-white dark:placeholder:text-[#ccd1dd]",ref:l,type:"text",placeholder:"Wpisz minimum 3 znaki",onChange:function(e){_(e.currentTarget.value),"function"==typeof t&&t(e)},onFocus:function(){p===s&&_(""),"function"==typeof n&&n()},onBlur:r,value:p}),tj("div",{onClick:function(){o&&void 0===o.geonameid||(o&&(i&&o&&i(o),nB({event:"search_click",device:"desktop",localization:o.name,location:d,areaId:u})),a&&a())},className:"absolute right-4 top-2 cursor-pointer","data-vab-box":null.searchLocation,children:tj(n1,{className:"text-[--color-blue-400] dark:text-white"})})]})},n3=({onSearchInputChange:e,onInputFocus:t,onInputBlur:n,onCityChange:r,searchedCities:i,currentInputValue:o,onToggleShowMore:a,currentCityIndex:l,setInputFocused:c,inputRef:s,header:u,city:d,sourceAreaId:p})=>{let _=u?"header":"widget",h={geonameid:i[l]&&i[l].geonameid,name:i[l]&&i[l].name,country:i[l]&&i[l].country,admin1:i[l]&&i[l].admin1,admin2:i[l]&&i[l].admin2};return tj("form",{onSubmit:e=>{e.preventDefault(),o.length>2&&(r(h),a(!0),c(!1),nB({event:"search_list_click",device:"desktop",localization:h.name,location:_,areaId:p}))},children:tj(n2,{onChange:e,onFocus:t,onBlur:n,onCityChange:r,cityObj:h,onToggleShowMore:a,inputRef:s,header:u,city:d,sourceAreaId:p})})},n5=e=>{let{location:t,onCityChange:n,city:r,lastSearchedCities:i=[],onClose:o,disableAutoGeolocation:a=!1,triggerRef:l,sourceAreaId:c}=e,s=nk({areaId:null.weatherLayer,useTime:!0}),[u,d]=t5([]),[p,_]=t5(!1),[h,f]=t5(!1),[m,v]=t5(0),[g,w]=t5(0),[y,b]=t5(!1),[x,k]=t5(""),[C,N]=t5(1),E=nW("ArrowUp"),I=nW("ArrowDown"),S=t6(null);function A(){d([]),w(0),N(1)}t7(()=>{E&&N(e=>e>1?e-1:e),I&&N(e=>e<u.length?e+1:e)},[E,I,u.length]),t7(()=>{"header"===t||a||nU("desktop",c).then(e=>{let{city:t}=e;n(t)}
62).catch(e=>console.log(e.message))},[t,n,a,c]);let T=t9(function(e){let{current:t}=s,n=l.current;!t||e.target===t||t.contains(e.target)||null!=n&&n.contains(e.target)||(o(),k(""),b(!1),A())},[t,o]);t7(()=>(document.addEventListener("mousedown",T),document.addEventListener("touchstart",T),()=>{document.removeEventListener("mousedown",T),document.removeEventListener("touchstart",T)}),[T]);let L=async(e,t=0)=>{let n=await nZ(e,t,6);!n||n.error||setTimeout(()=>{0===t?(d(n.content),w(n.totalElements-6),v(0)):(d([...u,...n.content]),w(g-6)),f(!1)},100)},P=t9(nI(e=>L(e),300),[]),O=async e=>{x.length<1&&nD({event:"search_type",device:"desktop",location:t,areaId:c});let n=e.currentTarget.value;k(n),A(),n.length>2&&(f(!0),await P(n))},z=async()=>{nD({event:"search_list_more",device:"desktop",location:t,areaId:c}),f(!0),v(m+1),await L(x,m+1),S.current&&S.current.focus()},W=async e=>{let r=nv("WPGeo");nm("WPGeo","1"),nO(c,e);let i=await nJ(e);if(!i)return null;let{geonameid:a,name:l,country:s,admin1:u,admin2:d}=i;o(),_(!1),n({geonameid:a,name:l,country:s,admin1:u,admin2:d}),nA(),nB({event:"1"!==r?"localization_approved":"localization_change",device:"desktop",localization:l,location:t,areaId:c})};async function M(){if(nD({event:"recognize",device:"desktop",location:t,areaId:c}),navigator.geolocation){A(),k(""),_(!0);try{let e=await nz();await W(e)}catch{navigator.permissions?await nP("geolocation")!==null.granted?(nD({event:"localization_denied",device:"desktop",location:t,areaId:c}),_(!1),alert("Brak zgody na dostÄp do geolokalizacji. Możesz na to zezwoliÄ w ustawieniach przeglÄ
darki.")):nm("WPGeo","0"):(nD({event:"localization_unavailable",device:"desktop",location:t,areaId:c}),_(!1))}}}let R=e=>{k(""),b(!1),A(),n(e)};return tj("div",{ref:s,className:"absolute left-[--popup-offset-left] top-[--popup-offset-top] z-50 flex w-[360px] cursor-auto flex-col gap-4 roun
62ded-lg bg-[var(--wp-weather-bg,#fff)] p-4",children:[tj("div",{className:"text-lg/[21px] font-bold text-[#22242d] dark:text-white",children:"ZmieÅ lokalizacjÄ"}),navigator.geolocation&&tj(nX,{onClick:M}),p&&tj(nM,{}),!p&&tj(tI,{children:[tj(n3,{onSearchInputChange:O,onCityChange:R,onInputBlur:()=>{b(!1)},onInputFocus:()=>{x.length<1&&nD({event:"search_enter",device:"desktop",location:t,areaId:c}),b(!0)},searchedCities:u,currentInputValue:x,onToggleShowMore:function(e=!1){A(),k(""),e&&o()},currentCityIndex:C-1,setInputFocused:b,inputRef:S,header:"header"===t,city:r,sourceAreaId:c}),x.length>2&&y&&u&&!u.length&&!h&&tj(nq,{message:"Nie znaleziono wynik\xf3w."})]}),!p&&tj(nY,{onCityChange:R,onToggleShowMore:o,searchCityLoading:h&&x.length>2,searchedCities:x.length<3&&!y?i:u&&x.length>2?u:!i.length||u.length||y?[]:i,isLastSearchedCities:i&&i.length>0&&0===x.length&&!y,totalElements:g,loadMoreCities:z,setCurrentCityIndex:N,sourceAreaId:c,widgetLocation:t})]})},n4=e=>{let{city:t,location:n="header",...r}=e,[i,o]=t5(!1),a=t6(null),l=()=>{o(e=>!e)};return tj("div",{ref:a,className:"relative w-full",children:[tj("div",{"data-vab-box":null.changeLocation,className:"header"===n?"wp-weather-header-location":void 0,children:tj(n6,{onClick:l,city:t,location:n})}),i&&tj(n5,{onClose:l,city:t,location:n,triggerRef:a,...r})]})};function n7(e){return tj("div",{onClick:e.onClick,className:"flex items-center overflow-hidden text-[var(--wp-weather-text-primary,initial)] no-underline hover:cursor-pointer hover:underline",children:e.children})}function n6(e){let{onClick:t,city:n,location:r}=e;return"locationWidget"===r?tj("button",{onClick:e.onClick,className:"flex items-center overflow-hidden bg-transparent text-white no-underline hover:cursor-pointer hover:underline",children:[tj("div",{className:"line-clamp-1 max-w-[230px] text-left text-base/5 font-bold",children:n}),tj(ny,{})]}):"header"===r?tj(n7,{onClick:t,location:r,children:[tj("span",{className:"inline-block max-w-[80px] overflow-hidden text-ellipsis whitespace-nowrap xl:max-w-[100px]",children:n}),tj(nb,{})]}):tj(n0,{title:"POGODA DLA:",cityName:n,onModalOpen:e.onClick})}let n8=e=>{let t=null.find(t=>t.id===e);return t?t.slug:"warszawa"},n9=e=>`https://pogoda.wp.pl/pogoda-na-dzis/${n8(e)}/${e}`,re=e=>`https://pogoda.wp.pl/pogoda-na-jutro/${n8(e)}/${e}`,rt=e=>`https://pogoda.wp.pl/pogoda-dlugoterminowa/${n8(e)}/${e}`;function rn(e){let t=n9(e);!function(e){try{let t=window.scrollY/document.body.clientHeight*100;window.WP.stat.wave("headerClick",{link:e,scrolledSoFar:t})}catch(e){console.log(e)}}(t);let n=window.open(t,"_blank");(!n||n.closed||typeof n.closed>"u")&&(window.location.href=t)}function rr(e){let{onCityChange:t,widgetLocation:n="headerLink",cityId:r,city:i,temperature:o,sourceAreaId:a}=e;async function l(e){let r=nv("WPGeo");nm("WPGeo","1"),nO(a,e);let i=await nJ(e);if(!i)return null;let{geonameid:o,name:l,country:c,admin1:s,admin2:u}=i;return t({geonameid:o,name:l,country:c,admin1:s,admin2:u}),nA(),nB({event:"1"!==r?"localization_approved":"localization_change",device:"desktop",localization:l,location:n,areaId:a}),o}async function c(){if(nD({event:"recognize",device:"desktop",location:n,areaId:a}),!navigator.geolocation||!navigator.permissions){nD({event:"localization_unavailable",device:"desktop",location:n,areaId:a}),rn(r);return}try{if(await nP("geolocation")!==null.prompt){rn(r);return}let e=await nz(),t=await l(e);rn(t||r)}catch(e){rn(r),console.error(e)}}return tj(tI,{children:[tj("button",{onClick:c,type:"button",className:"wp-weather-container-link","aria-label":i&&o?`${i} ${o}\xb0`:""}),tj("button",{onClick:c,type:"button",className:"wp-weather-cta","data-vab-box":null.weatherDetails,children:["Sprawdź pogodÄ na 7 dni ",tj(nx,{})]})]})}let ri=e=>{let{cityId:t,city:n,temperature:r,iconId:i,onCityChange:o,lastSearchedCities:a,disableAutoGeolocation:l=!1,messUrl:c,registeredDataRef:s,sourceAreaId:u}=e;return tj("div",{className:"size-full",ref:nk({areaId:null.weather,useTime:!0,skip:s.current.box,onRegistered:()=>{s.current.box=!0}}),children:[tj("div",{className:"wp-weather-header",children:tj("div",{className:"relative flex h-11 items-center py-1 xl:gap-4",children:tj("div",{className:"flex cursor-pointer py-1",children:[tj("div",{className:"flex items-center",children:i?tj(nC,{className:"h-8 w-9 text-transparent",iconId:i,messUrl:c}):null}),tj("div",{className:"ml-1 text-[10px]/none text-white",children:[tj("div",{className:"relative z-[11] mb-0.5 [--popup-offset-left:-20px] [--popup-offset-top:-8px]",children:tj(n4,{onCityChange:o,city:n,lastSearchedCities:a,location:"header",disableAutoGeolocation:l,sourceAreaId:u})}),tj("span",{className:"wp-weather-temperature-info text-lg/none no-underline",children:[r,"\xb0"]})]})]})})}),tj(rr,{onCityChange:o,cityId:t,city:n,temperature:r,sourceAreaId:u})]})};function ro(e){return tj("a",{href:e.href,target:"_blank",rel:"noopener",className:"wp-weather-cta",children:["Sprawdź pogodÄ na 7 dni ",tj(nx,{})]})}let ra=e=>{let{lastSearchedCities:t,onCityChange:n,data:r,loadingState:i,disableAutoGelocation:o=!1,messUrl:a,sourceAreaId:l}=e,c=t6(null);return tj("div",{className:"size-full",children:tj(rl,{loadingState:i,children:r?tj(ri,{disableAutoGeolocation:o,lastSearchedCities:t,...r,onCityChange:n,messUrl:a,registeredDataRef:c,sourceAreaId:l}):null})})},rl=e=>{let{children:t,loadingState:n}=e;return"FETCHED"===n?t:tj(ro,{href:"https://pogoda.wp.pl"})};function rc(e){let{title:t,cityName:n,onModalOpen:r}=e;return tj("div",{className:"flex w-full justify-between gap-4 text-lg/[21px] font-bold min-[400px]:text-xl",children:[tj("span",{className:"flex-none",children:t}),tj("button",{type:"button",className:"inline-flex max-w-full items-center gap-1 overflow-hidden rounded border-none bg-[--bg-secondary] px-1.5 text-[--text-secondary]",onClick:r,"data-vab-box":null.changeLocation,children:[tj("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:n}),tj("span",{className:"mx-1.5 mb-1 inline-block flex-none rotate-45 border-b border-r border-solid border-inherit p-[3px]"})]})]})}function rs(){return/iPhone|iPad|iPod/i.test(navigator.userAgent)}function ru(){return document.body.classList.contains("wp-scroll-lock-ios")}function rd(e){return t7(()=>((function(){if(!rs()){document.body.classList.add("wp-scroll-lock");return}
62if(ru())return;let e=window.pageYOffset;document.body.classList.add("wp-scroll-lock-ios"),document.body.style.top=`-${e}px`})(),()=>{(function(){if(!rs()){document.body.classList.remove("wp-scroll-lock");return}if(!ru())return;let e=document.body.style.top;document.body.classList.remove("wp-scroll-lock-ios"),document.body.style.top="",window.scrollTo(0,-1*parseInt(e||"0"))})()})),tj("div",{children:e.children})}function rp(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function r_(e,t){this.props=e,this.context=t}(r_.prototype=new tS).isPureReactComponent=!0,r_.prototype.shouldComponentUpdate=function(e,t){return rp(this.props,e)||rp(this.state,t)};var rh=ts.__b;ts.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),rh&&rh(e)};var rf=ts.__e;ts.__e=function(e,t,n,r){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}rf(e,t,n,r)};var rm=ts.unmount;function rv(){this.__u=0,this.o=null,this.__b=null}function rg(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function rw(){this.i=null,this.l=null}ts.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),rm&&rm(e)},(rv.prototype=new tS).__c=function(e,t){var n=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(n);var i=rg(r.__v),o=!1,a=function(){o||(o=!0,n.__R=null,i?i(l):l())};n.__R=a;var l=function(){if(!--r.__u){if(r.state.__a){var e,t=r.state.__a;r.__v.__k[0]=function e(t,n,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return e(t,n,r)}),t.__c&&t.__c.__P===n&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}(t,t.__c.__P,t.__c.__O)}for(r.setState({__a:r.__b=null});e=r.o.pop();)e.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},rv.prototype.componentWillUnmount=function(){this.o=[]},rv.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),t.__c.__H=null),null!=(t=function(e,t){for(var n in t)e[n]=t[n];return e}({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return e(t,n,r)})),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&tN(tI,null,e.fallback);return i&&(i.__u&=-33),[tN(tI,null,t.__a?null:e.children),i]};var ry=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function rb(e){return this.getChildContext=function(){return e.context},e.children}function rx(e){var t=this,n=e.h;t.componentWillUnmount=function(){tH(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.h.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.h.insertBefore(e,n)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}),tH(tN(rb,{context:t.context},e.__v),t.v)}function rk(e,t){var n=tN(rx,{__v:e,h:t});return n.containerInfo=t,n}(rw.prototype=new tS).__a=function(e){var t=this,n=rg(t.__v),r=t.l.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),ry(t,e,r)):i()};n?n(o):o()}},rw.prototype.render=function(e){this.i=null,this.l=new Map;var t=tO(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},rw.prototype.componentDidUpdate=rw.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){ry(e,n,t)})};var rC="u">typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,rN=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,rE=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,rI=/[A-Z0-9]/g,rS="u">typeof document;tS.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(tS.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var rA=ts.event;function rT(){}function rL(){return this.cancelBubble}function rP(){return this.defaultPrevented}ts.event=function(e){return rA&&(e=rA(e)),e.persist=rT,e.isPropagationStopped=rL,e.isDefaultPrevented=rP,e.nativeEvent=e};
62var rO={enumerable:!1,configurable:!0,get:function(){return this.class}},rz=ts.vnode;ts.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},i=-1===n.indexOf("-");for(var o in t){var a=t[o];if(!("value"===o&&"defaultValue"in t&&null==a||rS&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var l,c=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===a?a="":"translate"===c&&"no"===a?a=!1:"o"===c[0]&&"n"===c[1]?"ondoubleclick"===c?o="ondblclick":"onchange"!==c||"input"!==n&&"textarea"!==n||(l=t.type,("u">typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(l))?"onfocus"===c?o="onfocusin":"onblur"===c?o="onfocusout":rE.test(o)&&(o=c):c=o="oninput":i&&rN.test(o)?o=o.replace(rI,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===c&&r[o=c]&&(o="oninputCapture"),r[o]=a}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=tO(t.children).forEach(function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)})),"select"==n&&null!=r.defaultValue&&(r.value=tO(t.children).forEach(function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value})),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",rO)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=rC,rz&&rz(e)};var rW=ts.__r;ts.__r=function(e){rW&&rW(e),e.__c};var rM=ts.diffed;ts.diffed=function(e){rM&&rM(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};let rR=e=>{let{id:t,children:n}=e;return rk(n,function(e){let t=t6(null);return t7(()=>{let n=document.getElementById(e),r=n||function(e){let t=document.createElement("div");return t.setAttribute("id",e),t}(e);return n||document.body.appendChild(r),t.current&&r.appendChild(t.current),()=>{t.current&&t.current.remove(),r.childElementCount||r.remove()}},[e]),t.current||(t.current=document.createElement("div")),t.current}(t))};function r$(e){let{setCurrentCityIndex:t,searchedCities:n=[],onCityChange:r,loadMoreCities:i,totalElements:o,searchCityLoading:a,isLastSearchedCities:l,onToggleShowMore:c,sourceAreaId:s}=e,u=!!(o&&o>1&&!a);return tj("div",{className:"relative max-h-none flex-1 overflow-auto px-4 pb-4",children:[l&&n&&n.length>0&&tj("div",{className:"py-2 text-base text-[#22242d] dark:text-white",children:"Ostatnio sprawdzane"}),tj("ul",{className:nG("relative",a&&"opacity-50"),"data-vab-box":null.selectLocation,children:[n&&n.length>0&&n.map((e,n)=>tj(rD,{id:(n+1).toString(),geonameid:e.geonameid,onCityChange:r,onToggleShowMore:c,voivodeshipOrState:e.admin1,city:e.name,country:e.country,setCurrentCityIndex:t,isLastSearchedCities:l,district:e.admin2,sourceAreaId:s},`${e.geonameid}_${n}`)),a&&tj("div",{className:nG("py-2.5",o&&"absolute bottom-40 left-[calc(50%-35px)] top-[calc(50%-35px)]"),children:tj(nM,{})}),u&&o&&n.length>0&&tj(nV,{totalElements:o,onClick:i})]})]})}function rD(e){let{isLastSearchedCities:t,setCurrentCityIndex:n,city:r,country:i,voivodeshipOrState:o,onCityChange:a,id:l,geonameid:c,onToggleShowMore:s,district:u,sourceAreaId:d}=e;return tj("li",{className:"w-full py-2 text-base text-[--color-blue-400] dark:text-white",id:l,onMouseDown:()=>{a({geonameid:c,name:r,country:i,admin1:o,admin2:u}),s(!1),nB({event:t?"history_click":"search_list_click",device:"mobile",localization:r,areaId:d})},onMouseEnter:e=>{n&&n(parseInt(e.currentTarget.id))},children:[tj("span",{className:"mr-1 break-words",children:r}),tj("span",{className:"text-xs text-[#636880] dark:text-[#ccd1dd]",children:(()=>{if("Polska"===i&&u){let e=u.includes("powiat")?u.replace("powiat","pow."):`pow. ${u}`;return`(woj. ${o} / ${e})`}return"Polska"===i?`(woj. ${o})`:`(${i} - ${o})`})()})]})}let rB=e=>{let{onChange:t,onFocus:n,onBlur:r,onCityChange:i,city:o,cityObj:a,onToggleShowMore:l,inputRef:c,sourceAreaId:s}=e;return tj("div",{className:"relative",children:[tj("input",{className:"mb-2 h-10 w-full rounded-lg border border-solid border-[--color-blue-400] bg-transparent pl-4 pr-10 text-base text-[--color-blue-400] shadow-none outline-none dark:border-white dark:text-white",ref:c,type:"text",onCh
62ange:t,onFocus:n,onBlur:r,value:o}),tj("div",{onClick:function(){a&&void 0===a.geonameid||(a&&(i&&a&&i(a),nB({event:"search_click",device:"mobile",localization:a.name,areaId:s})),l&&l())},className:"absolute right-4 top-2","data-vab-box":null.searchLocation,children:tj(n1,{className:"text-[--color-blue-400] dark:text-white"})})]})},rH=()=>tj("svg",{width:"12px",height:"12px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:tj("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:tj("g",{transform:"translate(-974.000000, -26.000000)",fill:"currentColor",children:tj("g",{transform:"translate(942.000000, 0.000000)",children:tj("g",{transform:"translate(32.000000, 26.000000)",children:tj("g",{children:[tj("path",{d:"M-1.16981132,9.48528137 L19.1698113,9.48528137 C19.6280755,9.48528137 20,9.03728137 20,8.48528137 C20,7.93328137 19.6280755,7.48528137 19.1698113,7.48528137 L-1.16981132,7.48528137 C-1.62807547,7.48528137 -2,7.93328137 -2,8.48528137 C-2,9.03728137 -1.62807547,9.48528137 -1.16981132,9.48528137 Z",id:"Path-Copy",transform:"translate(9.000000, 8.485281) rotate(-45.000000) translate(-9.000000, -8.485281) "}),tj("path",{d:"M-1.16981132,9.48528137 L19.1698113,9.48528137 C19.6280755,9.48528137 20,9.03728137 20,8.48528137 C20,7.93328137 19.6280755,7.48528137 19.1698113,7.48528137 L-1.16981132,7.48528137 C-1.62807547,7.48528137 -2,7.93328137 -2,8.48528137 C-2,9.03728137 -1.62807547,9.48528137 -1.16981132,9.48528137 Z",id:"Path-Copy-2",transform:"translate(9.000000, 8.485281) scale(1, -1) rotate(-45.000000) translate(-9.000000, -8.485281) "})]})})})})})}),rF=e=>{let{onClick:t}=e;return tj("button",{type:"button",className:"flex h-10 w-full items-center justify-center gap-2 rounded-lg bg-[--color-blue-400] text-base font-medium text-white min-[400px]:text-lg",onClick:t,"data-vab-box":null.detectLocation,children:[tj(nQ,{class:"size-6 text-white"}),tj("div",{children:"Rozpoznaj lokalizacjÄ"})]})},rj=()=>tj("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:tj("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:tj("g",{transform:"translate(-16.000000, -28.000000)",fill:"currentColor",children:tj("g",{transform:"translate(16.000000, 28.000000)",children:[tj("polygon",{fillRule:"nonzero",transform:"translate(5.000000, 8.000000) scale(1, -1) translate(-5.000000, -8.000000) ",points:"0 8 8.5 16 10 14.5714286 3 8 10 1.42857143 8.5 0"}),tj("rect",{x:"2",y:"7",width:"14",height:"2"})]})})})}),rU=e=>{let{onBackClicked:t}=e;return tj("a",{onClick:t,children:tj(rj,{})})},rq=({onBackClicked:e,onSearchInputChange:t,onSearchFocus:n,onSearchBlur:r,onSearchIconClicked:i,city:o})=>{let a=t6(null),[l,c]=t5(o);return t7(()=>{a.current&&a.current.focus({preventScroll:!0})},[]),tj("div",{className:"relative flex-none p-4 text-black dark:text-white",children:[tj(rU,{onBackClicked:e}),tj("input",{className:"ml-4 h-10 w-[calc(100%-32px)] rounded-lg border border-solid border-[--color-blue-400] bg-transparent px-4 text-base/none text-black outline-none placeholder:text-[#636880] dark:border-white dark:text-white dark:placeholder:text-[#ccd1dd]",ref:a,onChange:e=>{c(e.currentTarget.value),t(e)},onFocus:n,onBlur:r,value:l,placeholder:"Wpisz minimum 3 znaki"}),tj("a",{className:"absolute right-8 top-6",onClick:i,children:tj(n1,{className:"text-[--color-blue-400] dark:text-white"})})]})},rG=({onBackClicked:e,onCityChange:t,lastSearchedCities:n,onToggleShowMore:r,sourceAreaId:i})=>{let[o,a]=t5([]),[l,c]=t5(!1),[s,u]=t5(0),[d,p]=t5(0),[_,h]=t5(!1),[f,m]=t5(""),v=async(e,t=0)=>{let n=await nZ(e,t,10);n&&setTimeout(()=>{0===t?(a(n.content),p(n.totalElements-10),u(0)):(a([...o,...n.content]),p(d-10)),c(!1)},100)},g=t9(nI(e=>v(e),300),[]),w=async()=>{c(!0),u(s+1),await v(f,s+1),nD({event:"search_list_more",device:"mobile",areaId:i})},y=async e=>{p(0),m(e),a([]),e.length>2&&(c(!0),await g(e))},b=async e=>{f.length<1&&nD({event:"search_type",device:"mobile",areaId:i});let t=e.currentTarget.value;await y(t)},x={geonameid:o[0]&&o[0].geonameid,name:o[0]&&o[0].name,country:o[0]&&o[0].country,admin1:o[0]&&o[0].admin1,admin2:o[0]&&o[0].admin2};return tj("div",{className:"fixed left-0 top-0 z-50 flex h-full w-full flex-col content-stretch overflow-hidden overscroll-none bg-white dark:bg-[#0e0c18]",children:[tj(rq,{onBackClicked:e,onSearchInputChange:b,onSearchBlur:()=>{h(!1)},onSearchFocus:()=>{h(!0)},onSearchIconClicked:function(){void 0!==x.geonameid&&(t&&x&&t(x),e(),r&&r(),nB({event:"search_click",device:"mobile",localization:x.name,areaId:i}))}}),tj("div",{className:"flex-none px-4",children:_&&tj(tI,{children:f.length>2&&!o.length&&!l&&tj("div",{className:"text-sm text-black dark:text-white",children:"Nie znaleziono wynik\xf3w."})})}),tj(r$,{onCityChange:t,searchCityLoading:l&&f.length>2,searchedCities:0===f.length&&n?n:o&&f.length>
622?o:[],isLastSearchedCities:!f.length,totalElements:d,loadMoreCities:w,onToggleShowMore:r,sourceAreaId:i})]})},rV=e=>{let{city:t,lastSearchedCities:n,onClose:r,onCityChange:i,sourceAreaId:o}=e,[a,l]=t5(!1),[c,s]=t5(!1),u=nk({areaId:null.weatherLayer,useTime:!0}),d=e=>{s(!1),i(e)},p=async e=>{let t=nv("WPGeo");nm("WPGeo","1"),nO(o,e),nA();let{coords:n}=e,a=await fetch(`https://pogoda.wp.pl/v2/api/geoname/lat/${n.latitude}/lon/${n.longitude}`);if(!a.ok)throw Error(`Geolocation API error: ${a.status}`);let l=await a.json();r(),i({geonameid:l.geonameid,name:l.name,country:l.country,admin1:l.admin1,admin2:l.admin2}),nB({event:"1"!==t?"localization_approved":"localization_change",device:"mobile",localization:l.name,areaId:o})};async function _(){if(nD({event:"recognize",device:"mobile",areaId:o}),navigator.geolocation){l(!0);try{let e=await nz();await p(e)}catch{navigator.permissions?await nP("geolocation")!==null.granted?(nD({event:"localization_denied",device:"mobile",areaId:o}),l(!1),alert("Brak zgody na dostÄp do geolokalizacji. Możesz na to zezwoliÄ w ustawieniach przeglÄ
darki.")):localStorage.setItem("WPGeo","0"):(l(!1),nD({event:"localization_unavailable",device:"mobile",areaId:o}),alert("Brak zgody na dostÄp do geolokalizacji. Możesz na to zezwoliÄ w ustawieniach przeglÄ
darki."))}}}return tj(rd,{children:tj(rR,{id:"citylist-portal",children:tj("div",{ref:u,className:"fixed inset-0 z-50 bg-white dark:bg-[#0e0c18]",children:[tj("div",{className:"flex flex-col gap-4 px-4 pt-4",children:[tj("span",{className:"text-lg/[21px] font-bold text-[#22242d] dark:text-white min-[400px]:text-xl",children:"ZmieÅ lokalizacjÄ"}),tj("a",{className:"absolute right-4 top-4 size-4 text-black dark:text-white",onClick:r,"data-vab-box":null.close,children:tj(rH,{})}),navigator.geolocation&&tj(rF,{onClick:_}),a&&tj(nM,{}),!a&&tj(rB,{onFocus:()=>{nD({event:"search_enter",device:"mobile",areaId:o}),s(!0)},city:t,sourceAreaId:o})]}),n.length>0&&!a&&tj(r$,{onCityChange:d,searchedCities:n,isLastSearchedCities:!0,onToggleShowMore:r,sourceAreaId:o}),c&&tj(rG,{onToggleShowMore:r,city:t,onBackClicked:function(){s(!1)},onCityChange:d,lastSearchedCities:n,sourceAreaId:o})]})})})},rY=e=>{let{lastSearchedCities:t,onCityChange:n,city:r,disableAutoGeolocation:i,isCityPicker:o,sourceAreaId:a}=e,[l,c]=t5(!1);function s(){c(!0)}return t7(()=>{i||nU("mobile",a).then(({city:e})=>{n(e)}).catch(e=>console.log(e.message))},[i,a]),tj("div",{className:nG("relative flex items-center justify-between",!o&&"w-full"),children:[o?tj("div",{className:"flex items-center text-base/5 font-bold capitalize text-white min-[400px]:text-lg/[21px]",onClick:s,"data-vab-box":null.changeLocation,children:[tj("div",{className:"line-clamp-1",children:r}),tj(ny,{})]}):tj(rc,{title:"Pogoda dla:",cityName:r,onModalOpen:s}),l&&tj(rV,{city:r,lastSearchedCities:t,onClose:function(){c(!1)},onCityChange:n,sourceAreaId:a})]})},rK="Brak zgody na dostÄp do geolokalizacji. Możesz na to zezwoliÄ w ustawieniach przeglÄ
darki.",rZ=e=>{let{variant:t="mobile",city:n,lastSearchedCities:r,onCityChange:i,disableAutoGeolocation:o=!1,sourceAreaId:a}=e,l=!!(parseInt(n_()||"0")&&null!=n&&n.name),c=!l||(null==n?void 0:n.country)==="Polska",s=function(e,t){return e&&t&&t.name&&"Polska"===t.country?t.name:"CaÅa Polska"}(l,n),u=function(e,t){return e&&t&&t.admin1&&"Polska"===t.country?`Wojew\xf3dztwo ${t.admin1}`:""}(l,n),d=nk({areaId:null.localWidgetGeo}),p=e=>{if("desktop"===t){nD({event:e,device:"desktop",location:"locationWidget",areaId:a});return}nD({event:e,device:"mobile",areaId:a})},_=(e,n)=>{if("desktop"===t){nB({event:e,device:"desktop",localization:n,location:"locationWidget",areaId:a});return}nB({event:e,device:"mobile",localization:n,areaId:a})},h=async e=>{let t=nv("WPGeo");nm("WPGeo","1"),nO(a,e);let n=await nJ(e);if(!n)return null;let{geonameid:r,name:o,country:l,admin1:c,admin2:s}=n;i({geonameid:r,name:o,country:l,admin1:c,admin2:s}),nA(),_("1"!==t?"localization_approved":"localization_change",o)},f=async()=>{if(p("recognize"),navigator.geolocation)try{let e=await nz();await h(e)}catch{navigator.permissions?await nP("geolocation")!==null.granted?(p("localization_denied"),alert(rK)):nm("WPGeo","0"):(p("localization_unavailable"),alert(rK))}};return"desktop"===t?tj("div",{className:"flex h-[142px] w-full flex-col justify-between gap-2 rounded-lg bg-[--color-blue-400] p-2.5 text-white",ref:d,children:tj(rJ,{cityName:s,voivodeship:u,lastSearchedCities:r,onCityChange:i,onLocalizationClick:f,hasLocation:l,disableAutoGeolocation:o,isPoland:c,sourceAreaId:a})}):tj("div",{className:nG("bg-[--color-blue-400] py-2.5",l&&c?"h-[90px] min-[400px]:h-[97px]":"h-[138px] min-[400px]:h-[152px]"),ref:d,children:tj("div",{className:"wp-inner-content max-w-mobile mx-auto flex w-full flex-col justify-between gap-2 text-white",children:tj(rQ,{cityName:s,voivodeship:u,lastSearchedCities:r,onCityChange:i,onLocalizationClick:f,hasLocation:l,disableAutoGeolocation:o,isPoland:c,sourceAreaId:a})})})},rJ=e=>{let{cityName:t,voivodeship:n,lastSearchedCities:r,onCityChange:i,onLocalizationClick:o,hasLocation:a,disableAutoGeolocation:l,isPoland:c,sourceAreaId:s}=e;return tj(tI,{children:[tj(r1,{className:"text-base/5 font-bold uppercase",children:a?"Twoja okolica, Twoje wiadomoÅci":"WiadomoÅci lokalne dla"}),tj("div",{className:"my-auto flex items-center gap-2",children:[tj(nQ,{
62className:"size-10 text-white"}),tj("div",{className:"flex flex-col [--popup-offset-left:-48px] [--popup-offset-top:48px]",children:[tj(n4,{onCityChange:i,city:t,lastSearchedCities:r,location:"locationWidget",disableAutoGeolocation:l,sourceAreaId:s}),tj(r0,{className:"text-sm",voivodeship:n})]})]}),c?tj(r2,{hasLocation:a,onClick:o,className:"text-base/5 font-medium text-[--color-blue-400] hover:cursor-pointer hover:underline"}):tj(rX,{className:"text-sm"})]})},rQ=e=>{let{cityName:t,voivodeship:n,lastSearchedCities:r,onCityChange:i,onLocalizationClick:o,hasLocation:a,disableAutoGeolocation:l,isPoland:c,sourceAreaId:s}=e;return tj(tI,{children:[tj(r1,{className:"text-[18px]/[21px] font-bold min-[400px]:text-[20px]/7",children:a?"Twoja okolica, Twoje wiadomoÅci":"WiadomoÅci lokalne dla"}),tj("div",{className:"my-auto flex items-center gap-2",children:[tj(nQ,{className:"size-10 text-white"}),tj("div",{className:"flex flex-col",children:[tj(rY,{onCityChange:i,cities:null,city:t,lastSearchedCities:r,disableAutoGeolocation:l,isCityPicker:!0,sourceAreaId:s}),tj(r0,{className:"text-sm min-[400px]:text-base/5",voivodeship:n})]})]}),c?tj(r2,{hasLocation:a,onClick:o,className:"text-base/5 font-medium text-[--color-blue-400] min-[400px]:text-[18px]/[21px]"}):tj(rX,{className:"text-sm min-[400px]:text-base/5"})]})};function rX(e){return tj("span",{className:e.className,children:"WiadomoÅci lokalne sÄ
dostÄpne tylko dla polskich miast."})}function r0(e){return e.voivodeship?tj("span",{className:e.className,children:e.voivodeship}):null}function r1(e){return tj("span",{className:e.className,children:e.children})}function r2(e){return e.hasLocation?null:tj("button",{onClick:e.onClick,className:"flex h-10 w-full flex-none items-center justify-center rounded-lg bg-white px-1","data-vab-box":null.weatherDetailsGeo,children:tj("div",{className:e.className,children:"UdostÄpnij lokalizacjÄ"})})}function r3(e){let{cityId:t}=e,n=re(t),r=rt(t);return tj("div",{className:"flex items-center gap-5",children:[tj("a",{className:"flex h-10 flex-1 items-center justify-center rounded-lg border border-solid border-current bg-transparent px-1 text-base/5 font-medium text-white no-underline",href:n,"data-vab-box":null.weatherTomorrow,target:"_blank",rel:"noopener",children:"Pogoda na jutro"}),tj("a",{className:"flex h-10 flex-1 items-center justify-center rounded-lg border border-solid border-current bg-transparent px-1 text-base/5 font-medium text-white no-underline",href:r,"data-vab-box":null.weather28Days,target:"_blank",rel:"noopener",children:"Pogoda na 28 dni"})]})}function r5(e){return!(!e||"unknown"===e)}function r4(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r7,r6={exports:{}};r6.exports;let r8=r4(function(){var e;return r7||(r7=1,e=function(){var e="millisecond",t="second",n="minute",r="hour",i="week",o="month",a="quarter",l="year",c="date",s="Invalid Date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},_="en",h={};h[_]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||"th")+"]"}};var f="$isDayjsObject",m=function(e){return e instanceof y||!(!e||!e[f])},v=function e(t,n,r){var i;if(!t)return _;if("string"==typeof t){var o=t.toLowerCase();h[o]&&(i=o),n&&(h[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var l=t.name;h[l]=t,i=l}return!r&&i&&(_=i),i||!r&&_},g=function(e,t){if(m(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new y(n)},w={s:p,z:function(e){var t=-e.utcOffset(),n=Math.abs(t);return(t<=0?"+":"-")+p(Math.floor(n/60),2,"0")+":"+p(n%60,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,o),a=n-i<0,l=t.clone().add(r+(a?-1:1),o);return+(-(r+(n-i)/(a?i-l:l-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(s){return({M:o,y:l,w:i,d:"day",D:c,h:r,m:n,s:t,ms:e,Q:a})[s]||String(s||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};w.l=v,w.i=m,w.w=function(e,t){return g(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var y=function(){function p(e){this.$L=v(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[f]=!0}var _=p.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(w.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(u);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return w},_.isValid=function(){return this.$d.toString()!==s}
62,_.isSame=function(e,t){var n=g(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return g(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<g(e)},_.$g=function(e,t,n){return w.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,a){var s=this,u=!!w.u(a)||a,d=w.p(e),p=function(e,t){var n=w.w(s.$u?Date.UTC(s.$y,t,e):new Date(s.$y,t,e),s);return u?n:n.endOf("day")},_=function(e,t){return w.w(s.toDate()[e].apply(s.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),s)},h=this.$W,f=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(d){case l:return u?p(1,0):p(31,11);case o:return u?p(1,f):p(0,f+1);case i:var g=this.$locale().weekStart||0,y=(h<g?h+7:h)-g;return p(u?m-y:m+(6-y),f);case"day":case c:return _(v+"Hours",0);case r:return _(v+"Minutes",1);case n:return _(v+"Seconds",2);case t:return _(v+"Milliseconds",3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(i,a){var s,u=w.p(i),d="set"+(this.$u?"UTC":""),p=((s={}).day=d+"Date",s[c]=d+"Date",s[o]=d+"Month",s[l]=d+"FullYear",s[r]=d+"Hours",s[n]=d+"Minutes",s[t]=d+"Seconds",s[e]=d+"Milliseconds",s)[u],_="day"===u?this.$D+(a-this.$W):a;if(u===o||u===l){var h=this.clone().set(c,1);h.$d[p](_),h.init(),this.$d=h.set(c,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](_);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[w.p(e)]()},_.add=function(e,a){var c,s=this;e=Number(e);var u=w.p(a),d=function(t){var n=g(s);return w.w(n.date(n.date()+Math.round(t*e)),s)};if(u===o)return this.set(o,this.$M+e);if(u===l)return this.set(l,this.$y+e);if("day"===u)return d(1);if(u===i)return d(7);var p=((c={})[n]=6e4,c[r]=36e5,c[t]=1e3,c)[u]||1,_=this.$d.getTime()+e*p;return w.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||s;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=w.z(this),o=this.$H,a=this.$m,l=this.$M,c=n.weekdays,u=n.months,p=n.meridiem,_=function(e,n,i,o){return e&&(e[
62n]||e(t,r))||i[n].slice(0,o)},h=function(e){return w.s(o%12||12,e,"0")},f=p||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(d,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return w.s(t.$y,4,"0");case"M":return l+1;case"MM":return w.s(l+1,2,"0");case"MMM":return _(n.monthsShort,l,u,3);case"MMMM":return _(u,l);case"D":return t.$D;case"DD":return w.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return _(n.weekdaysMin,t.$W,c,2);case"ddd":return _(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(o);case"HH":return w.s(o,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return f(o,a,!0);case"A":return f(o,a,!1);case"m":return String(a);case"mm":return w.s(a,2,"0");case"s":return String(t.$s);case"ss":return w.s(t.$s,2,"0");case"SSS":return w.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},_.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},_.diff=function(e,c,s){var u,d=this,p=w.p(c),_=g(e),h=(_.utcOffset()-this.utcOffset())*6e4,f=this-_,m=function(){return w.m(d,_)};switch(p){case l:u=m()/12;break;case o:u=m();break;case a:u=m()/3;break;case i:u=(f-h)/6048e5;break;case"day":u=(f-h)/864e5;break;case r:u=f/36e5;break;case n:u=f/6e4;break;case t:u=f/1e3;break;default:u=f}return s?u:w.a(u)},_.daysInMonth=function(){return this.endOf(o).$D},_.$locale=function(){return h[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=v(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return w.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},p}(),b=y.prototype;return g.prototype=b,[["$ms",e],["$s",t],["$m",n],["$H",r],["$W","day"],["$M",o],["$y",l],["$D",c]].forEach(function(e){b[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),g.extend=function(e,t){return e.$i||(e(t,y,g),e.$i=!0),g},g.locale=v,g.isDayjs=m,g.unix=function(e){return g(1e3*e)},g.en=h[_],g.Ls=h,g.p={},g},r6.exports=e()),r6.exports}());var r9,ie={exports:{}};ie.exports;let it=r4(function(){var e;return r9||(r9=1,e=function(){return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}},ie.exports=e()),ie.exports}());var ir,ii={exports:{}};ii.exports;let io=r4(function(){var e;return ir||(ir=1,e=function(){return function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}},ii.exports=e()),ii.exports}());function ia(e){let{startDay:t,startMonth:n,endDay:r,endMonth:i,currentDate:o=new Date}=e,a=o.getFullYear(),l=new Date(`${a}-${n}-${t}T00:00:00`),c=new Date(`${a}-${i}-${r}T23:59:59`);return!r8(l).isAfter(c)&&function(e,t,n){let r=r8(e),i=r8(t),o=r8(n);return r.isSameOrAfter(i,"day")&&r.isSameOrBefore(o,"day")}(o,l,c)}r8.extend(it),r8.extend(io);let il=e=>tj("svg",{width:"31px",height:"10px",xmlns:"http://www.w3.org/2000/svg","fill-rule":"evenodd","stroke-linejoin":"round","stroke-giterlimit":"2","clip-rule":"evenodd",viewBox:"0 0 1000 318",fill:"currentColor",...e,children:[tj("link",{id:"dark-mode-general-link",rel:"stylesheet",type:"text/css"}),tj("style",{id:"dark-mode-custom-style",type:"text/css"}),tj("style",{id:"dark-mode-native-style",type:"text/css"}),tj("path",{id:"logo-primary",fill:"none",d:"M0 0H1000V318H0z"}),tj("clipPath",{id:"_clip1",children:tj("path",{d:"M0 0H1000V318H0z"})}),tj("g",{fill:"currentColor",clipPath:"url(#_clip1)",children:[tj("path",{d:"M579.6 82.5V244h-21.3v-31.6c-13.6 21.6-36.5 35.5-65.2 35.5-45.5 0-83.3-36.8-83.3-84.6s37.8-84.6 83.3-84.6c28.7 0 51.7 13.9 65.2 35.5V82.5h21.3zm-21.3 80.7c0-35.8-27.8-63.9-63.6-63.9S431 127.4 431 163.2s27.8 63.9 63.6 63.9 63.7-28.1 63.7-63.9zM614.4 32.7c0-8.4 6.8-15.5 15.5-15.5s15.5 7.1 15.5 15.5-6.8 15.5-15.5 15.5-15.5-7.1-15.5-15.5zm4.9 49.8h21.3V244h-21.3V82.5zM752.6 79.9v20.7c-25.8 0-51 13.6-51 53.6V244h-21.3V82.5h21.3v26.8c11.3-22.6 30.4-29.4 51-29.4z"}),tj("path",{d:"M788.2 8.2H809.5V243.89999999999998H788.2z"}),tj("path",{d:"M1000 82.5l-69.1 176.3c-12.3 31-36.2 52-65.2 49.7v-20c21 2.3 35.5-12.6 44.2-33.6l4.2-10-72.3-162.4h22.6l60.7 135.3 52.3-135.3h22.6z"}),tj("g",{children:tj("path",{d:"M97.9 63.7c.7 0 5.3-.4 10.4-1.5C138.8 56 151 30.5 143.6 0L122 4.4c6.3 30.4-11.8 56.8-24.1 59.3zM51 125.7c.5-.5 3.8-3.7 7-7.8 19.3-24.4 12.3-51.7-13-70.3L31.3 64.8C55.6 84 58.7 115.9 51 125.7zM54.8 203.3c.1-.7.5-5.3.3-10.5-.9-31.1-23.9-47.5-55.2-45.5l.6 22c31.1-.9 54 21.6 54.3 34zM107.7 260.3c-.4-.6-3-4.4-6.5-8.3-20.6-23.2-48.8-21.1-71.5.6l14.6 16.5c23.2-20.6 55.1-18.1 63.4-8.8zM184.8 270c-.7-.2-5.1-1.4-10.3-2.2-30.7-4.5-50.9 15.2-54.4 46.4l21.8 3.2c4.5-30.6 30.6-49.2 42.9-47.4zM250.2 227.9c-.7.3-4.8 2.2-9.3 5-26.5 16.3-29.2 44.4-11.8 70.5l18.7-11.5c-16.3-26.5-8.3-57.5 2.4-64zM273.1 153.6c-.4.6-2.3 4.8-3.9 9.8-9.8 29.5 6.2 52.8 36.3 61.6l6.9-20.9c-29.5-9.8-43.3-38.7-39.3-50.5zM242.9 81.9c.1.7 1.3 5.2 3.3 10 11.4 28.9 38.7 36.5 67.4 23.9l-8.1-20.5c-28.9 11.5-58-1.8-62.6-13.4zM173.7 46.4c.6.5 4.3 3.1 8.9 5.6 27.3 14.8 53.1 3.1 67-25l-19.4-10.5c-14.6 27.3-45.5 35.9-56.5 29.9z"})})]})]}),ic=e=>{let{airQuality:t,messUrl:n}=e,r="very_low"===t||"low"===t?"https://sgwp.wpcdn.pl/static/images/weather/smile2.svg":"https://sgwp.wpcdn.pl/static/images/weather/sad2.svg";return tj("div",{className:"flex items-center text-[10px]/none",children:[tj("img",{src:n?n(r):r,alt:"",width:"36",height:"36"}),tj("div",{className:"ml-2.5 flex flex-col",children:[tj("div",{className:"mb-px flex",children:[tj("div",{className:"mr-2 whitespace-nowrap text-[10px] text-white",children:"JakoÅÄ powietrza:"}),tj(il,{})]}),tj("div",{className:"text-xs text-white",children:null[t]})]})]})},is=nE("NONE"),iu=nE("RAIN"),id=nE("RAIN",!0),ip=nE("HAIL"),i_=nE("SNOW"),ih=nE("SNOW",!0),im=nE("SLEET"),iv=[...iu,...id,...ip,...i_,...ih];function ig(e,t){return is.includes(e)?"CLEAR":iu.includes(e)?t>=7.5?"HEAVY_RAIN":"RAIN":id.includes(e)?t>=7.5?"HEAVY_STORM":"STORM":ip.includes(e)?"HAIL":i_.includes(e)?"SNOW":im.includes(e)?"SLEET":ih.includes(e)?"SNOW":"NO_PRECIPITATION"}function iw(e){let{iconId:t,precipitation:n,forecastData:r,currentHour:i=new Date().getHours()}=e;if(!r)return null;let o=i>=21,a=!!iv&&!!r&&r.some(e=>iv.includes(e.iconId));if(!iv.includes(t)&&!a)return{...null.NO_PRECIPITATION,time:"CONSTANTLY",timeDescription:"bez opad\xf3w"};let l=ig(t,n),c=null[l],s=r.findIndex(e=>
62["00:00","00:15","00:45"].includes(e.time)),u=r.reduce((e,t,n)=>{let{time:r,iconId:i,precipitation:a}=t,l=ig(i,a);if(!o&&s<=n)return e;let c=`od ok. ${r}`;return l?[...e,{...t,type:l,timeDescription:c}]:e},[]);if(!u.filter(e=>e.type!==l).length)return"CLEAR"===l?{...null.NO_PRECIPITATION,time:"CONSTANTLY",timeDescription:"bez opad\xf3w"}:"SNOW"===l?{...null.CONTINUOUS_SNOW,time:"CONSTANTLY",timeDescription:"Åniegu"}:{...null.CONTINUOUS_RAIN,time:"CONSTANTLY",timeDescription:"deszczu"};if("CLEAR"===l){let[e]=u.filter(e=>"CLEAR"!==e.type);return{...null[e.type],time:e.time,timeDescription:e.timeDescription}}let d=u.find(e=>null[e.type].priority>c.priority);return d?{...null[d.type],time:d.time,timeDescription:d.timeDescription}:{...null.CONTINUOUS_RAIN,time:"CONSTANTLY",timeDescription:"deszczu"}}let iy=e=>{let{iconId:t,precipitation:n,forecastData:r,messUrl:i}=e,o=t8(()=>iw({iconId:t,precipitation:n,forecastData:r}),[t,n,r]);if(!o)return null;let{title:a,timeDescription:l,type:c}=o,s="NO_PRECIPITATION"===c||"CLEAR"===c?"https://sgwp.wpcdn.pl/static/images/weather/smile2.svg":"https://sgwp.wpcdn.pl/static/images/weather/sad2.svg";return tj(tI,{children:[tj("img",{src:i?i(s):s,alt:"",width:"35",height:"35"}),tj("div",{className:"ml-2.5 flex flex-col justify-end text-white",children:tj("div",{className:"mt-1 flex w-24 whitespace-nowrap text-xs",children:[a," ",l?tj("br",{}):null," ",l]})})]})},ib=e=>{let{cityId:t,city:n,onCityChange:r,temperature:i,iconId:o,airQuality:a,intervals:l,precipitation:c,lastSearchedCities:s,disableAutoGeolocation:u=!1,dailyIntervals:d,messUrl:p,sourceAreaId:_,hasLocation:h}=e,f=nk({areaId:null.localWidgetWeather,useTime:!0}),m=!ia(null)&&r5(a);return tj("div",{className:"flex h-[228px] flex-col gap-2 rounded-[--wp-weather-box-radius] bg-[--color-blue-400] p-2.5",ref:f,children:[tj("div",{className:"flex items-center px-1.5 [--popup-offset-left:-6px] [--popup-offset-top:28px]",children:tj(n4,{onCityChange:r,city:n,lastSearchedCities:s,location:"widget",disableAutoGeolocation:u,sourceAreaId:_})}),tj("div",{className:"flex items-center justify-between px-1.5",children:[tj("div",{className:"mb-1.5 flex items-center",children:[o?tj("div",{className:"flex",children:tj(nC,{iconId:o,width:35,height:35,messUrl:p})}):null,tj("div",{className:"ml-2.5 flex flex-col justify-between self-start text-[10px]/none text-white",children:[tj("div",{children:"TERAZ"}),tj("div",{className:"text-3xl/none",children:[i,"\xb0"]})]})]}),tj("div",{className:"mb-1.5 flex items-center px-1.5",children:m?tj(ic,{airQuality:a,messUrl:p}):tj(iy,{forecastData:l,iconId:o,precipitation:c,messUrl:p})})]}),d&&d.length?tj("div",{className:"mb-0.5 flex items-center justify-between",children:d.slice(0,4).map((e,t)=>tj("div",{className:"flex h-[76px] w-[66px] flex-col justify-between rounded-lg bg-white/10 px-2.5 py-0.5 text-white",children:[tj("span",{className:"text-base/5",children:e.dayName}),tj("div",{className:"flex justify-center",children:tj(nC,{iconId:e.iconId,width:25,height:25,messUrl:p})}),tj("div",{className:"flex items-end gap-0.5",children:[tj("div",{className:"text-xl/6",children:[e.maxTemperature,"\xb0"]}),tj("div",{className:"text-sm text-[#bfc6ff]",children:[e.minTemperature,"\xb0"]})]})]},t))}):null,h?tj(r3,{cityId:t}):tj("a",{className:"block rounded-lg border border-solid border-transparent bg-white px-2 py-[9px] text-center text-base/5 font-medium text-[--color-blue-400] no-underline hover:underline",href:n9(t),target:"_blank",rel:"noopener","data-vab-box":null.weatherMore,children:"Pogoda godzinowa"})]})};function ix(){return tj("svg",{className:"wp-weather-loader",viewBox:"0 0 26 26",xmlns:"http://www.w3.org/2000/svg",children:[tj("path",{d:"m13.17 3.2289c-0.5402 0-0.9823-0.44206-0.9823-0.98226v-0.86432c0-0.54019 0.4421-0.98226 0.9823-0.98226s0.9822 0.44206 0.9822 0.98226v0.86432c0 0.5402-0.442 0.98226-0.9822 0.98226z",fill:"#03357D"}),tj("path",{d:"m10.098 3.7159c-0.51408 0.16701-1.0709-0.11704-1.2379-0.63068l-0.26695-0.82245c-0.16701-0.51409 0.11704-1.0709 0.63068-1.238 0.51409-0.16701 1.0709 0.11704 1.2379 0.63068l0.267 0.822c0.167 0.51409-0.1171 1.0709-0.6307 1.238v4.5e-4z",fill:"#03357D"}),tj("path",{d:"m7.3268 5.1281c-0.43711 0.31737-1.0547 0.21968-1.3721-0.21743l-0.50823-0.69955c-0.31782-0.43711-0.21968-1.0547 0.21743-1.3721 0.43711-0.31782 1.0547-0.21968 1.3721 0.21743l0.50824
620.69955c0.31736 0.43711 0.21968 1.0547-0.21743 1.3721z",fill:"#03357D"}),tj("path",{d:"m5.1274 7.3272c-0.31737 0.43711-0.93499 0.5348-1.3721 0.21743l-0.69956-0.50824c-0.43711-0.31781-0.53479-0.93499-0.21743-1.3721 0.31737-0.43711 0.935-0.53479 1.3721-0.21743l0.69955 0.50824c0.43711 0.31737 0.5348 0.93499 0.21743 1.3721z",fill:"#03357D"}),tj("path",{d:"m3.7156 10.098c-0.16702 0.5141-0.72387 0.7977-1.238 0.6306l-0.822-0.2669c-0.51409-0.167-0.79769-0.72387-0.63068-1.238 0.16701-0.51408 0.72387-0.79769 1.238-0.63068l0.822 0.26695c0.51409 0.16701 0.7977 0.72387 0.63069 1.238z",fill:"#03357D"}),tj("path",{d:"m3.2287 13.17c0 0.5402-0.44206 0.9823-0.98226 0.9823h-0.86432c-0.5402 0-0.98226-0.4421-0.98226-0.9823s0.44206-0.9823 0.98226-0.9823h0.86432c0.5402 0 0.98226 0.4421 0.98226 0.9823z",fill:"#03357D"}),tj("path",{d:"m3.7156 16.242c0.16702 0.5141-0.11704 1.0709-0.63068 1.2379l-0.822 0.267c-0.51409 0.167-1.0709-0.1171-1.238-0.6307-0.16701-0.5141 0.11704-1.0709 0.63068-1.2379l0.822-0.267c0.51409-0.167 1.0709 0.1171 1.238 0.6307z",fill:"#03357D"}),tj("path",{d:"m5.1274 19.014c0.31782 0.4371 0.21968 1.0547-0.21743 1.3721l-0.69955 0.5082c-0.43711 0.3174-1.0547 0.2197-1.3721-0.2174-0.31736-0.4371-0.21968-1.0548 0.21743-1.3721l0.69956-0.5083c0.43711-0.3173 1.0547-0.2197 1.3721 0.2175z",fill:"#03357D"}),tj("path",{d:"m7.3271 21.212c0.43711 0.3173 0.5348 0.935 0.21743 1.3721l-0.50824 0.6995c-0.31781 0.4371-0.93499 0.5348-1.3721 0.2175-0.43711-0.3174-0.53479-0.935-0.21743-1.3721l0.50824-0.6996c0.31736-0.4371 0.93499-0.5348 1.3721-0.2174z",fill:"#E1E6F1"}),tj("path",{d:"m10.098 22.625c0.514 0.167 0.7976 0.7238 0.6306 1.2379l-0.2669 0.822c-0.167 0.5141-0.72388 0.7977-1.238 0.6307s-0.79769-0.7239-0.63068-1.238l0.26695-0.822c0.16701-0.5141 0.72386-0.7977 1.238-0.6306z",fill:"#E1E6F1"}),tj("path",{d:"m13.17 23.111c0.5402 0 0.9822 0.4421 0.9822 0.9823v0.8643c0 0.5402-0.442 0.9823-0.9822 0.9823s-0.9823-0.4421-0.9823-0.9823v-0.8643c0-0.5402 0.4421-0.9823 0.9823-0.9823z",fill:"#E1E6F1"}),tj("path",{d:"m16.242 22.625c0.514-0.167 1.0709 0.117 1.2379 0.6307l0.267 0.822c0.167 0.514-0.1171 1.0709-0.6307 1.2379-0.5141 0.167-1.071-0.117-1.238-0.6307l-0.2669-0.822c-0.167-0.5141 0.117-1.0709 0.6307-1.2379z",fill:"#E1E6F1"}),tj("path",{d:"m19.013 21.212c0.4371-0.3178 1.0547-0.2197 1.3721 0.2174l0.5082 0.6996c0.3178 0.4371 0.2197 1.0547-0.2174 1.3721-0.4371 0.3178-1.0547 0.2196-1.3721-0.2175l-0.5083-0.6995c-0.3178-0.4371-0.2196-1.0548 0.2175-1.3721z",fill:"#E1E6F1"}),tj("path",{d:"m21.212 19.014c0.3173-0.4372 0.935-0.5348 1.3721-0.2175l0.6995 0.5083c0.4371 0.3173 0.5348 0.935 0.2174 1.3721-0.3178 0.4371-0.9349 0.5348-1.3721 0.2174l-0.6995-0.5082c-0.4371-0.3174-0.5348-0.935-0.2174-1.3721z",fill:"#E1E6F1"}),tj("path",{d:"m22.624 16.242c0.167-0.5141 0.7239-0.7977 1.238-0.6307l0.822 0.267c0.514 0.167 0.7976 0.7238 0.6306 1.2379s-0.7238 0.7977-1.2379 0.6307l-0.822-0.2669c-0.5141-0.167-0.7977-0.7239-0.6307-1.238z",fill:"#E1E6F1"}),tj("path",{d:"m23.111 13.17c0-0.5402 0.4421-0.9823 0.9823-0.9823h0.8643c0.5402 0 0.9823 0.4421 0.9823 0.9823s-0.4421 0.9823-0.9823 0.9823h-0.8643c-0.5402 0-0.9823-0.4421-0.9823-0.9823z",fill:"#E1E6F1"}),tj("path",{d:"m22.624 10.098c-0.1671-0.51411 0.117-1.071 0.6306-1.238l0.822-0.26695c0.5141-0.16701 1.071 0.11705 1.238 0.63068 0.167 0.51409-0.117 1.0709-0.6307 1.2379l-0.822 0.267c-0.5141 0.167-1.0709-0.1171-1.2379-0.6307z",fill:"#E1E6F1"}),tj("path",{d:"m21.212 7.3272c-0.3179-0.43711-0.2197-1.0547 0.2174-1.3721l0.6995-0.50824c0.4371-0.31736 1.0548-0.21968 1.3721 0.21743 0.3174 0.43711 0.2197 1.0547-0.2174 1.3721l-0.6995 0.50824c-0.4372 0.31737-1.0548 0.21968-1.3721-0.21743z",fill:"#E1E6F1"}),tj("path",{d:"m19.013 5.1281c-0.4371-0.31736-0.5348-0.93499-0.2175-1.3721l0.5083-0.69956c0.3178-0.4371 0.935-0.53479 1.3721-0.21742 0.4371 0.31736 0.5348 0.93499 0.2174 1.3721l-0.5082 0.69955c-0.3174 0.43711-0.935 0.5348-1.3721 0.21743z",fill:"#E1E6F1"}),tj("path",{d:"m16.242 3.7155c-0.5141-0.16701-0.7977-0.72386-0.6307-1.238l0.267-0.822c0.167-0.51409 0.7238-0.79769 1.2379-0.63068 0.5141 0.16701 0.7977 0.72386 0.6307 1.238l-0.2669 0.82245c-0.1671 0.51409-0.7239 0.79769-1.238 0.63068v-4.5e-4z",fill:"#E1E6F1"})]})}let ik=()=>tj("div",{className:"wp-weather-loader-box",children:[tj(ix,{}),tj("span",{className:"wp-weather-box-info",children:["Sprawdzamy pogodÄ dla Twojej ",tj("br",{})," lokalizacji"]})]});function iC(){return tj("div",{className:"wp-weather-error-box",children:[tj(nQ,{
62class:"size-[41px] text-white"}),tj("div",{className:"wp-weather-box-info",children:"Nie możemy teraz sprawdziÄ pogody dla Twojej lokalizacji. Spr\xf3buj odÅwieżyÄ stronÄ, albo przejdź do peÅnej prognozy"}),tj("a",{href:"https://pogoda.wp.pl",target:"_blank",className:"wp-weather-cta",rel:"noopener",children:"Sprawdź pogodÄ na Pogoda.wp.pl"})]})}let iN=e=>{let{lastSearchedCities:t,onCityChange:n,data:r,loadingState:i,messUrl:o,disableAutoGeolocation:a,sourceAreaId:l,hasLocation:c}=e;return tj(iE,{loadingState:i,children:r?tj(ib,{lastSearchedCities:t,...r,onCityChange:n,messUrl:o,disableAutoGeolocation:a,sourceAreaId:l,hasLocation:c}):null})},iE=e=>{let{children:t,loadingState:n}=e;return"FETCHED"===n?tj(tI,{children:t}):"ERROR"===n?tj(iI,{children:tj(iC,{})}):tj(iI,{children:tj(ik,{})})};function iI(e){return tj("div",{className:"ml-auto flex h-[228px] w-full items-center justify-center rounded-lg bg-[--color-blue-400] text-white",children:e.children})}function iS(e){let{data:t}=nf(e?`${nc}/hourly/location/${e}`:void 0);return{data:t?function(e){let t=e.items[0];return t?{city:e.name,cityId:e.locationId,iconId:t.icon,temperature:t.temperature,description:t.description}:null}(t):null}}function iA({geonameId:e}){let{data:t}=iS(e),n=nk({areaId:"weather",useTime:!0});return t?tj("div",{className:"size-full",ref:n,children:tj("div",{className:"wp-weather-header",children:tj("div",{className:"relative flex h-11 items-center py-1 xl:gap-4",children:tj("div",{className:"flex gap-2 py-1",children:[tj("div",{className:"flex items-center",children:t.iconId?tj(nC,{className:"h-8 w-9 text-transparent",iconId:t.iconId}):null}),tj("div",{className:"ml-1",children:[tj("div",{className:"relative z-[11] ",children:tj("span",{className:"inline-block max-w-[80px] overflow-hidden text-ellipsis whitespace-nowrap text-xs leading-none xl:max-w-[100px]",children:t.city})}),tj("span",{className:"wp-weather-temperature-info text-xl font-medium leading-none no-underline",children:[t.temperature,"\xb0"]})]})]})})})}):null}function iT(e){let{airQuality:t,messUrl:n}=e,r="very_low"===t||"low"===t?"https://sgwp.wpcdn.pl/static/images/weather/smile2.svg":"https://sgwp.wpcdn.pl/static/images/weather/sad2.svg";return tj("div",{className:"flex items-center gap-1",children:[tj("img",{src:n?n(r):r,alt:"",width:"35",height:"35"}),tj("div",{className:"flex flex-col gap-1 text-xs text-white",children:[tj(il,{}),null[t]," jakoÅÄ powietrza"]})]})}let iL=e=>{let{iconId:t,precipitation:n,forecastData:r,messUrl:i}=e,o=t8(()=>iw({iconId:t,precipitation:n,forecastData:r}),[n,r,t]);if(!o)return null;let{title:a,type:l,timeDescription:c}=o,s="NO_PRECIPITATION"===l||"CLEAR"===l?"https://sgwp.wpcdn.pl/static/images/weather/smile2.svg":"https://sgwp.wpcdn.pl/static/images/weather/sad2.svg";return tj("div",{className:"flex items-center gap-1",children:[tj("img",{src:i?i(s):s,alt:"",width:"35",height:"35"}),tj("div",{className:"text-xs text-[--text-primary,#fff] first-letter:uppercase",children:[a," ",c]})]})},iP=e=>{let{onClick:t,cityId:n,onCityChange:r,temperature:i,iconId:o,precipitation:a,airQuality:l,intervals:c=[],city:s,lastSearchedCities:u=[],disableAutoGeolocation:d,messUrl:p,registeredDataRef:_,vabAreaId:h=null.weather,sourceAreaId:f,hasLocation:m}=e,v=t?{onClick:t}:{href:n9(n),target:"_blank",rel:"noopener"},g=nk({areaId:h,useTime:!0,skip:_.current.box,onRegistered:()=>{_.current.box=!0}}),w=!ia(null)&&r5(l);return tj("div",{className:"wp-weather-box",ref:g,children:[tj(rY,{sourceAreaId:f,onCityChange:r,cities:null,city:s,lastSearchedCities:u,disableAutoGeolocation:d}),tj("div",{className:"flex justify-evenly gap-6",children:[tj("div",{className:"flex items-center",children:[tj(nC,{iconId:o,width:36,height:36,messUrl:p,className:"text-transparent"}),tj("div",{className:"ml-2 flex flex-col",children:tj("div",{className:"text-4xl",children:[i,"\xb0"]})})]}),w?tj(iT,{airQuality:l,messUrl:p}):c&&c.length&&tj(iL,{forecastData:c,iconId:o,precipitation:a,messUrl:p})]}),m?tj(r3,{cityId:n}):tj("a",{"data-vab-box":null.weatherDetails,className:"wp-weather-cta",...v,children:"Pogoda godzinowa"})]})};function iO(){return tj("div",{className:"wp-weather-error-box",children:[tj("div",{className:"flex flex-auto items-center",children:tj("div",{className:"flex items-start gap-2",children:[tj(nQ,{
62class:"size-10 flex-none"}),tj("div",{className:"wp-weather-box-info",children:"Nie możemy teraz sprawdziÄ pogody dla Twojej lokalizacji. Spr\xf3buj odÅwieżyÄ stronÄ albo przejdź do peÅnej prognozy"})]})}),tj("a",{href:"https://pogoda.wp.pl",target:"_blank",className:"wp-weather-cta",rel:"noopener",children:["Sprawdź pogodÄ na Pogoda.wp.pl",tj("svg",{fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:[tj("path",{d:"m3.332 8h9.3334",stroke:"#fff","stroke-linecap":"round","stroke-linejoin":"round"}),tj("path",{d:"M8 3.33268L12.6667 7.99935L8 12.666",stroke:"#fff","stroke-linecap":"round","stroke-linejoin":"round"})]})]})]})}let iz=e=>{let{disableAutoGeolocation:t,lastSearchedCities:n,onCityChange:r,data:i,loadingState:o,messUrl:a,vabAreaId:l,sourceAreaId:c,hasLocation:s}=e,u=t6(null);return"FETCHED"===o&&i?tj(iP,{...i,"data-st-area":"weather-box",onCityChange:r,lastSearchedCities:n,disableAutoGeolocation:t,messUrl:a,registeredDataRef:u,vabAreaId:l,sourceAreaId:c,hasLocation:s}):"ERROR"===o?tj(iO,{}):tj(ik,{})},iW=e=>{let t="u">typeof document&&document.getElementById&&document.getElementById("wp-local-news-weather-widget");if(!t)return null;let n=t.querySelector("#wp-local-news-weather-loader");return n&&n.remove(),rk(e.children,t)};var iM,iR,i$,iD,iB,iH,iF,ij,iU,iq,iG,iV={},iY=[],iK=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,iZ=Array.isArray;function iJ(e,t){for(var n in t)e[n]=t[n];return e}function iQ(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function iX(e,t,n){var r,i,o,a={};for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?iM.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return i0(e,a,r,i,null)}function i0(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++i$,__i:-1,__u:0};return null==i&&null!=iR.vnode&&iR.vnode(o),o}function i1(e){return e.children}function i2(e,t){this.props=e,this.context=t}function i3(e,t){if(null==t)return e.__?i3(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?i3(e):null}function i5(e){(!e.__d&&(e.__d=!0)&&iD.push(e)&&!i4.__r++||iB!==iR.debounceRendering)&&((iB=iR.debounceRendering)||iH)(i4)}function i4(){for(var e,t,n,r,i,o,a=1;iD.length;)iD.length>a&&iD.sort(iF),e=iD.shift(),a=iD.length,e.__d&&(t=void 0,r=(n=e.__v).__e,i=[],o=[],e.__P&&((t=iJ({},n)).__v=n.__v+1,iR.vnode&&iR.vnode(t),ot(e.__P,t,n,e.__n,e.__P.namespaceURI,32&n.__u?[r]:null,i,r??i3(n),!!(32&n.__u),o),t.__v=n.__v,t.__.__k[t.__i]=t,function(e,t,n){for(var r=0;r<n.length;r++)on(n[r],n[++r],n[++r]);iR.__c&&iR.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){iR.__e(e,t.__v)}})}(i,t,o),t.__e!=r&&function e(t){var n,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(r=t.__k[n])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return e(t)}}(t)));i4.__r=0}function i7(e,t,n,r,i,o,a,l,c,s,u){var d,p,_,h,f,m,v=r&&r.__k||iY,g=t.length;for(c=function(e,t,n,r,i){var o,a,l,c,s,u=n.length,d=u,p=0;for(e.__k=Array(i),o=0;o<i;o++)null!=(a=t[o])&&"boolean"!=typeof a&&"function"!=typeof a?(c=o+p,(a=e.__k[o]="string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?i0(null,a,null,null,null):iZ(a)?i0(i1,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?i0(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,l=null,-1!==(s=a.__i=function(e,t,n,r){var i,o,a=e.key,l=e.type,c=t[n];if(null===c||c&&a==c.key&&l===c.type&&!(2&c.__u))return n;if(r>(null==c||2&c.__u?0:1))for(i=n-1,o=n+1;i>=0||o<t.length;){if(i>=0){if((c=t[i])&&!(2&c.__u)&&a==c.key&&l===c.type)return i;i--}if(o<t.length){if((c=t[o])&&!(2&c.__u)&&a==c.key&&l===c.type)return o;o++}}return -1}(a,n,c,d))&&(d--,(l=n[s])&&(l.__u|=2)),null==l||null===l.__v?(-1==s&&p--,"function"!=typeof a.type&&(a.__u|=4)):s!=c&&(s==c-1?p--:s==c+1?p++:(s>c?p--:p++,a.__u|=4))):e.__k[o]=null;if(d)for(o=0;o<u;o++)null==(l=n[o])||2&l.__u||(l.__e==r&&(r=i3(l)),function e(t,n,r){var i,o;if(iR.unmount&&iR.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||on(i,null,n)),null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){iR.__e(e,n)}i.base=i.__P=null}if(i=t.__k)for(o=0;o<i.length;o++)i[o]&&e(i[o],n,r||"function"!=typeof t.type);r||iQ(t.__e),t.__c=t.__=t.__e=void 0}(l,l));return r}(n,t,v,c,g),d=0;d<g;d++)null!=(_=n.__k[d])&&(p=-1===_.__i?iV:v[_.__i]||iV,_.__i=d,m=ot(e,_,p,i,o,a,l,c,s,u),h=_.__e,_.ref&&p.ref!=_.ref&&(p.ref&&on(p.ref,null,_),u.push(_.ref,_.__c||h,_)),null==f&&null!=h&&(f=h),4&_.__u||p.__k===_.__k?c=function e(t,n,r){var i,o;if("function"==typeof t.type){for(i=t.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=t,n=e(i[o],n,r));return n}t.__e!=n&&(n&&t.type&&!r.contains(n)&&(n=i3(t)),r.insertBefore(t.__e,n||null),n=t.__e);do n=n&&n.nextSibling;while(null!=n&&8==n.nodeType);return n}
vendor: 6,146 bytes, line 62
62(_,c,e):"function"==typeof _.type&&void 0!==m?c=m:h&&(c=h.nextSibling),_.__u&=-7);return n.__e=f,c}function i6(e,t){return t=t||[],null==e||"boolean"==typeof e||(iZ(e)?e.some(function(e){i6(e,t)}):t.push(e)),t}function i8(e,t,n){"-"==t[0]?e.setProperty(t,n??""):e[t]=null==n?"":"number"!=typeof n||iK.test(t)?n:n+"px"}function i9(e,t,n,r,i){var o;e:if("style"==t){if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||i8(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||i8(e.style,t,n[t])}}else if("o"==t[0]&&"n"==t[1])o=t!=(t=t.replace(ij,"$1")),t=t.toLowerCase()in e||"onFocusOut"==t||"onFocusIn"==t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=iU,e.addEventListener(t,o?iG:iq,o)):e.removeEventListener(t,o?iG:iq,o);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=n??"";break e}catch{}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function oe(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=iU++;else if(t.t<n.u)return;return n(iR.event?iR.event(t):t)}}}function ot(e,t,n,r,i,o,a,l,c,s){var u,d,p,_,h,f,m,v,g,w,y,b,x,k,C,N,E,I,S=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(c=!!(32&n.__u),o=[l=t.__e=n.__e]),(u=iR.__b)&&u(t);e:if("function"==typeof S)try{if(v=t.props,g="prototype"in S&&S.prototype.render,w=(u=S.contextType)&&r[u.__c],y=u?w?w.props.value:u.__:r,n.__c?m=(d=t.__c=n.__c).__=d.__E:(g?t.__c=d=new S(v,y):(t.__c=d=new i2(v,y),d.constructor=S,d.render=or),w&&w.sub(d),d.props=v,d.state||(d.state={}),d.context=y,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),g&&null==d.__s&&(d.__s=d.state),g&&null!=S.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=iJ({},d.__s)),iJ(d.__s,S.getDerivedStateFromProps(v,d.__s))),_=d.props,h=d.state,d.__v=t,p)g&&null==S.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),g&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(g&&null==S.getDerivedStateFromProps&&v!==_&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(v,y),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(v,d.__s,y)||t.__v==n.__v)){for(t.__v!=n.__v&&(d.props=v,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(v,d.__s,y),g&&null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(_,h,f)})}if(d.context=y,d.props=v,d.__P=e,d.__e=!1,x=iR.__r,k=0,g){for(d.state=d.__s,d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),C=0;C<d._sb.length;C++)d.__h.push(d._sb[C]);d._sb=[]}else do d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++k<25);d.state=d.__s,null!=d.getChildContext&&(r=iJ(iJ({},r),d.getChildContext())),g&&!p&&null!=d.getSnapshotBeforeUpdate&&(f=d.getSnapshotBeforeUpdate(_,h)),E=(N=null!=u&&u.type===i1&&null==u.key)?u.props.children:u,N&&(u.props.children=null),l=i7(e,iZ(E)?E:[E],t,n,r,i,o,a,l,c,s),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),m&&(d.__E=d.__=null)}catch(e){if(t.__v=null,c||null!=o){if(e.then){for(t.__u|=c?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;o[o.indexOf(l)]=null,t.__e=l}else for(I=o.length;I--;)iQ(o[I])}else t.__e=n.__e,t.__k=n.__k;iR.__e(e,t,n)}else null==o&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):l=t.__e=function(e,t,n,r,i,o,a,l,c){var s,u,d,p,_,h,f,m=n.props,v=t.props,g=t.type;if("svg"==g?i="http://www.w3.org/2000/svg":"math"==g?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=o){for(s=0;s<o.length;s++)if((_=o[s])&&"setAttribute"in _==!!g&&(g?_.localName==g:3==_.nodeType)){e=_,o[s]=null;break}}if(null==e){if(null==g)return document.createTextNode(v);e=document.createElementNS(i,g,v.is&&v),l&&(iR.__m&&iR.__m(t,o),l=!1),o=null}if(null===g)m===v||l&&e.data===v||(e.data=v);else{if(o=o&&iM.call(e.childNodes),m=n.props||iV,!l&&null!=o)for(m={},s=0;s<e.attributes.length;s++)m[(_=e.attributes[s]).name]=_.value;for(s in m)if(_=m[s],"children"!=s){if("dangerouslySetInnerHTML"==s)d=_;else if(!(s in v)){if("value"==s&&"defaultValue"in v||"checked"==s&&"defaultChecked"in v)continue;i9(e,s,null,_,i)}}for(s in v)_=v[s],"children"==s?p=_:"dangerouslySetInnerHTML"==s?u=_:"value"==s?h=_:"checked"==s?f=_:l&&"function"!=typeof _||m[s]===_||i9(e,s,_,m[s],i);if(u)l||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),i7("template"===t.type?e.content:e,iZ(p)?p:[p],t,n,r,"foreignObject"==g?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:n.__k&&i3(n,0),l,c),null!=o)for(s=o.length;s--;)iQ(o[s]);l||(s="value","progress"==g&&null==h?e.removeAttribute("value"):void 0===h||h===e[s]&&("progress"!=g||h)&&("option"!=g||h===m[s])||i9(e,s,h,m[s],i),s="checked",void 0!==f&&f!==e[s]&&i9(e,s,f,m[s],i))}return e}(n.__e,t,n,r,i,o,a,c,s);return(u=iR.diffed)&&u(t),128&t.__u?void 0:l}function on(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){iR.__e(e,n)}}function or(e,t,n){return this.constructor(e,n)}iM=iY.slice,iR={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},i$=0,i2.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=iJ({},this.state),"function"==typeof e&&(e=e(iJ({},n),this.props)),e&&iJ(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),i5(this))},i2.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),i5(this))},i2.prototype.render=i1,iD=[],iH="function"==typeof Promise?Promise.prototype.then.bind(Prom
62ise.resolve()):setTimeout,iF=function(e,t){return e.__v.__b-t.__v.__b},i4.__r=0,ij=/(PointerCapture)$|Capture$/i,iU=0,iq=oe(!1),iG=oe(!0);var oi,oo,oa,ol=[],oc=iR,os=oc.__b,ou=oc.__r,od=oc.diffed,op=oc.__c,o_=oc.unmount,oh=oc.__;function of(){for(var e;e=ol.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ov),e.__H.__h.forEach(og),e.__H.__h=[]}catch(t){e.__H.__h=[],oc.__e(t,e.__v)}}oc.__b=function(e){oi=null,os&&os(e)},oc.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),oh&&oh(e,t)},oc.__r=function(e){ou&&ou(e);var t=(oi=e.__c).__H;t&&(oo===oi?(t.__h=[],oi.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(ov),t.__h.forEach(og),t.__h=[])),oo=oi},oc.diffed=function(e){od&&od(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ol.push(t)&&oa===oc.requestAnimationFrame||((oa=oc.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),om&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);om&&(t=requestAnimationFrame(n))})(of)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),oo=oi=null},oc.__c=function(e,t){t.some(function(e){try{e.__h.forEach(ov),e.__h=e.__h.filter(function(e){return!e.__||og(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],oc.__e(n,e.__v)}}),op&&op(e,t)},oc.unmount=function(e){o_&&o_(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{ov(e)}catch(e){t=e}}),n.__H=void 0,t&&oc.__e(t,n.__v))};var om="function"==typeof requestAnimationFrame;function ov(e){var t=oi,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),oi=t}function og(e){var t=oi;e.__c=e.__(),oi=t}function ow(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function oy(e,t){this.props=e,this.context=t}(oy.prototype=new i2).isPureReactComponent=!0,oy.prototype.shouldComponentUpdate=function(e,t){return ow(this.props,e)||ow(this.state,t)};var ob=iR.__b;iR.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ob&&ob(e)};var ox=iR.__e;iR.__e=function(e,t,n,r){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}ox(e,t,n,r)};var ok=iR.unmount;function oC(){this.__u=0,this.o=null,this.__b=null}function oN(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function oE(){this.i=null,this.l=null}iR.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ok&&ok(e)},(oC.prototype=new i2).__c=function(e,t){var n=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(n);var i=oN(r.__v),o=!1,a=function(){o||(o=!0,n.__R=null,i?i(l):l())};n.__R=a;var l=function(){if(!--r.__u){if(r.state.__a){var e,t=r.state.__a;r.__v.__k[0]=function e(t,n,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return e(t,n,r)}),t.__c&&t.__c.__P===n&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}(t,t.__c.__P,t.__c.__O)}for(r.setState({__a:r.__b=null});e=r.o.pop();)e.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},oC.prototype.componentWillUnmount=function(){this.o=[]},oC.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),t.__c.__H=null),null!=(t=function(e,t){for(var n in t)e[n]=t[n];return e}({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return e(t,n,r)})),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&iX(i1,null,e.fallback);return i&&(i.__u&=-33),[iX(i1,null,t.__a?null:e.children),i]};var oI=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};(oE.prototype=new i2).__a=function(e){var t=this,n=oN(t.__v),r=t.l.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),oI(t,e,r)):i()};n?n(o):o()}},oE.prototype.render=function(e){this.i=null,this.l=new Map;var t=i6(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},oE.prototype.componentDidUpdate=oE.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){oI(e,n,t)})};var oS="u">typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,oA=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,oT=
62/^on(Ani|Tra|Tou|BeforeInp|Compo)/,oL=/[A-Z0-9]/g,oP="u">typeof document;i2.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(i2.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var oO=iR.event;function oz(){}function oW(){return this.cancelBubble}function oM(){return this.defaultPrevented}iR.event=function(e){return oO&&(e=oO(e)),e.persist=oz,e.isPropagationStopped=oW,e.isDefaultPrevented=oM,e.nativeEvent=e};var oR={enumerable:!1,configurable:!0,get:function(){return this.class}},o$=iR.vnode;iR.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},i=-1===n.indexOf("-");for(var o in t){var a=t[o];if(!("value"===o&&"defaultValue"in t&&null==a||oP&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var l,c=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===a?a="":"translate"===c&&"no"===a?a=!1:"o"===c[0]&&"n"===c[1]?"ondoubleclick"===c?o="ondblclick":"onchange"!==c||"input"!==n&&"textarea"!==n||(l=t.type,("u">typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(l))?"onfocus"===c?o="onfocusin":"onblur"===c?o="onfocusout":oT.test(o)&&(o=c):c=o="oninput":i&&oA.test(o)?o=o.replace(oL,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===c&&r[o=c]&&(o="oninputCapture"),r[o]=a}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=i6(t.children).forEach(function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)})),"select"==n&&null!=r.defaultValue&&(r.value=i6(t.children).forEach(function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value})),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",oR)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=oS,o$&&o$(e)};var oD=iR.__r;iR.__r=function(e){oD&&oD(e),e.__c};var oB=iR.diffed;function oH(){return(oH=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function oF(e,t){return(oF=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}iR.diffed=function(e){oB&&oB(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};var oj=new Map,oU=new WeakMap,oq=0,oG=void 0,oV=["children","as","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function oY(e){return"function"!=typeof e.children}var oK=function(e){function t(t){var n;return(n=e.call(this,t)||this).node=null,n._unobserveCb=null,n.handleNode=function(e){!n.node||(n.unobserve(),e||n.props.triggerOnce||n.props.skip||n.setState({inView:!!n.props.initialInView,entry:void 0})),n.node=e||null,n.observeNode()},n.handleChange=function(e,t){e&&n.props.triggerOnce&&n.unobserve(),oY(n.props)||n.setState({inView:e,entry:t}),n.props.onChange&&n.props.onChange(e,t)},n.state={inView:!!t.initialInView,entry:void 0},n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,oF(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())},n.componentWillUnmount=function(){this.unobserve(),this.node=null},n.observeNode=function(){if(!(!this.node||this.props.skip)){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin,i=e.trackVisibility,o=e.delay,a=e.fallbackInView;this._unobserveCb=function(e,t,n,r){if(void 0===n&&(n={}),void 0===r&&(r=oG),typeof window.IntersectionObserver>"u"&&void 0!==r){var i=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),function(){}}var o=function(e){var t=Object.keys(e).sort().filter(function(t){return void 0!==e[t]}).map(function(t){var n;return t+"_"+("root"===t?(n=e.root)?(oU.has(n)||(oq+=1,oU.set(n,oq.toString())),oU.get(n)):"0":e[t])}).toString(),n=oj.get(t);if(!n){var r,i=new Map,o=new IntersectionObserver(function(t){t.forEach(function(t){var n,o=t.isIntersecting&&r.some(function(e){return t.intersectionRatio>=e});e.trackVisibility&&typeof t.isVisible>
62"u"&&(t.isVisible=o),null==(n=i.get(t.target))||n.forEach(function(e){e(o,t)})})},e);r=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:o,elements:i},oj.set(t,n)}return n}(n),a=o.id,l=o.observer,c=o.elements,s=c.get(e)||[];return c.has(e)||c.set(e,s),s.push(t),l.observe(e),function(){s.splice(s.indexOf(t),1),0===s.length&&(c.delete(e),l.unobserve(e)),0===c.size&&(l.disconnect(),oj.delete(a))}}(this.node,this.handleChange,{threshold:t,root:n,rootMargin:r,trackVisibility:i,delay:o},a)}},n.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},n.render=function(){if(!oY(this.props)){var e=this.state,t=e.inView,n=e.entry;return this.props.children({inView:t,entry:n,ref:this.handleNode})}var r=this.props,i=r.children,o=r.as,a=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(r,oV);return iX(o||"div",oH({ref:this.handleNode},a),i)},t}(i2);function oZ(){return tj("div",{className:"h-[267px] w-full bg-[--bg-primary] py-2.5 text-[--text-primary]",children:tj("div",{className:"max-w-mobile wp-inner-content mx-auto flex h-full flex-col",children:[tj("div",{className:"flex flex-1 flex-col items-center justify-center gap-2",children:[tj(nQ,{className:"size-10"}),tj("span",{className:"text-center text-base/5 font-medium",children:"Nie możemy teraz sprawdziÄ informacji dla Twojej lokalizacji. Spr\xf3buj odÅwieżyÄ stronÄ."})]}),tj("button",{className:"w-fit border-none bg-transparent text-base/5 text-inherit underline decoration-[10%] underline-offset-[24%]",onClick:function(){window.location.reload()},children:"OdÅwież stronÄ"})]})})}function oJ(){return tj("div",{className:"wp-loader-box",children:[tj(ix,{}),tj("span",{className:"wp-info-box",children:["Sprawdzamy informacje dla ",tj("br",{})," Twojej lokalizacji"]})]})}function oQ(e){return tj("button",{type:"button",className:"flex h-10 w-full items-center justify-center rounded-lg bg-[--bg-secondary] text-lg font-medium text-[--text-secondary]",onClick:e.onClick,"data-vab-box":null.weatherDetailsGeo,children:e.text})}oK.displayName="InView",oK.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1};let oX=e=>tj("svg",{fill:"none",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",...e,children:tj("path",{d:"M12.5 16.667V12.5m0-4.167h.01M22.917 12.5c0 5.753-4.664 10.418-10.418 10.418S2.082 18.253 2.082 12.5 6.746 2.083 12.5 2.083 22.917 6.747 22.917 12.5Z",stroke:"currentColor","stroke-linecap":"round","stroke-width":"2"})});function o0(){return tj("div",{className:"flex size-full items-center justify-center gap-2.5 rounded-lg border border-solid border-white/10 bg-white/5 px-2.5 py-5 text-[--text-primary]",children:[tj(oX,{className:"size-6 shrink-0"}),tj("span",{className:"text-sm/4 font-medium",children:"Dla zagranicznych miast nie mamy jeszcze lokalnych wiadomoÅci."})]})}function o1(e){let{iconId:t,messUrl:n,temperature:r,intervals:i,precipitation:o}=e;return tj("div",{className:"flex items-center justify-between",children:[tj("div",{className:"flex items-center",children:[tj(nC,{iconId:t,width:36,height:36,messUrl:n}),tj("div",{className:"ml-2 flex flex-col",children:tj("div",{className:"text-4xl",children:[r,"\xb0"]})})]}),!!(null!=i&&i.length)&&tj(iL,{forecastData:i,iconId:t,precipitation:o,messUrl:n})]})}function o2(e){let{messUrl:t,onCityChange:n,data:r,hasLocation:i,lastSearchedCities:o,sourceAreaId:a}=e,[l,c]=t5(!1),{weather:s,teaser:u}=r,d="Polska"===s.country?u:null,p=function(e,t){let n=t6(null);return t7(()=>{let t=n.current;t&&e&&function(e,t,n){var r,i,o;let a=document.createElement("a");a.classList.add("wp-teaser-inline"),a.id=`${t.id}-${t.categoryId}`,a.href=t.url,a.setAttribute("data-bdbd",JSON.stringify({type:"sgTeaser",teaserId:t.id,categoryId:t.categoryId,baseTeaserId:t.baseTeaserId,pinned:t.pinned,siteVisited:t.siteVisited,teaserVisited:!1,teaserClicked:t.teaserClicked,teaserViewed:t.teaserViewed,indexInCategory:t.indexInCategory,banditScore:t.banditScore,dotParams:t.wp_dot_addparams,globalIndex:t.globalIndex,alternativesCount:t.alternativesCount})),a.setAttribute("data-st-clk",`{"teaserId":"${t.id}","sgcat":"${t.categoryId}","sgcatidx":"${t.indexInCategory}"}`);
62let l=document.createElement("div");l.classList.add("wp-image-wrapper");let c=document.createElement("div");c.classList.add("wp-image-placeholder");let s=document.createElement("img"),u=function(e,t="",n="",r){return e?`//i.wpimg.pl/${t}x${n}/${e.replace(/(https?:)?\/\//g,"")}`:e}(t.images.r1_365,236)||t.images.r1_365;s.src=(null==(o=null==(i=null==(r=window.WP)?void 0:r.crux)?void 0:i.mess)?void 0:o.call(i,u))??u,s.setAttribute("data-bdimg","true"),c.appendChild(s),l.appendChild(c);let d=document.createElement("div");d.classList.add("wp-content-wrapper");let p=document.createElement("h3");if(p.classList.add("wp-title"),t.titlePrefix){let e=document.createElement("span");e.textContent=`${t.titlePrefix} `,p.appendChild(e)}p.append(t.title),d.appendChild(p),a.appendChild(l),a.appendChild(d),e.appendChild(a)}(t,e)},[e]),n}(d),_=i&&!!d;function h(){c(!1)}function f(){c(!0)}return tj(tI,{children:tj("div",{ref:nk({areaId:null.localWeather}),className:"w-full bg-[--bg-primary] py-2.5 text-[--text-primary]",children:tj("div",{className:"max-w-mobile wp-inner-content mx-auto flex w-full flex-col gap-5",children:[tj(rc,{title:"Twoja okolica:",cityName:s.city,onModalOpen:f}),l&&tj(rV,{city:s.city,lastSearchedCities:o,onClose:h,onCityChange:function(e){n(e),h()},sourceAreaId:a}),tj(o1,{precipitation:s.precipitation,intervals:s.intervals,iconId:s.iconId,temperature:s.temperature,cityId:s.geonameId,messUrl:t}),d?tj("div",{ref:p,className:"flex h-[86px] w-full"}):tj(o0,{}),_?tj(r3,{cityId:s.geonameId}):tj(oQ,{text:i?"ZmieÅ lokalizacjÄ":"ZmieÅ na swojÄ
lokalizacjÄ",onClick:f})]})})})}function o3({geonameId:e}){let{data:t}=iS(e),n=nk({areaId:"weather",useTime:!0});if(!t)return null;let{iconId:r,temperature:i,description:o}=t;return tj("div",{className:"wp-weather-widget-local",ref:n,children:tj("div",{className:"flex items-center justify-center",children:[tj("div",{className:"flex items-center",children:[r?tj(nC,{iconId:r,width:40,height:40,className:"text-transparent"}):null,tj("div",{className:"ml-2 text-2xl font-medium leading-none",children:[i,"\xb0"]})]}),o?tj("div",{className:"ml-[1rem] text-base/tight text-[--text-primary,#fff] first-letter:uppercase",children:o}):null]})})}function o5(e,t,n={}){let r=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;n.expires&&(r+=`; expires=${n.expires.toUTCString()}`),n.domain&&(r+=`; domain=${n.domain}`),n.path&&(r+=`; path=${n.path}`),n.secure&&(r+="; secure"),n.sameSite&&(r+=`; samesite=${n.sameSite}`),document.cookie=r}function o4(){window.dispatchEvent(new CustomEvent("wp:theme-change"))}let o7=e=>{o5("wp_dark",e?"0":"1",{..."localhost"===window.location.hostname?{path:"/"}:{domain:window.__INIT_CONFIG__.cookieDomain,path:"/",sameSite:"none",secure:!0},expires:new Date(Date.now()+31536e6)})};function o6(e,t=!0){try{window.WP.push(function(){window.WP.stat.setDarkMode(e)}),t&&eA("evt_menu",{event:e?"darkmode_on":"darkmode_off"})}catch(e){console.error(e)}}function o8(e){let t=document.querySelector('meta[name="logo"]');if(!t)return;let n=t.content;if(e){let e=n.replace("logo.png","logoDark.png"),r=new Image;r.onload=()=>t.content=e,r.src=e}else t.content=n.replace("logoDark.png","logo.png")}function o9(e){let t=e.match(/-(\d+)[a-zA-Z]$/);return t?t[1]:null}let ae="recommendations-bottom-new";function at(e,t){if(t in window.__GOFER_FACTORY__.userActions.containers)return window.__GOFER_FACTORY__.userActions.containers[t];let n=function(e,t){let n=window.__INIT_CONFIG__.isLoggedIn,r=window.location.origin+window.location.pathname;return window.WP.pwp.registerContainer({type:"area",areaid:t,length:e,isLogged:n,url:r})}(e,t);return"number"!=typeof n?null:(window.__GOFER_FACTORY__.userActions.containers[t]=n,n)}function an(e,t,n=".wp-cockroach:not(.wp-cockroach-intext) .wpstat-teaser",r=ae){try{let i=at(e,r);if(null===i)return;document.querySelectorAll(n).forEach((e,n)=>{var o,a;let l=(null===(o=e.querySelector("img"))||void 0===o?void 0:o.src)||"",c={type:"teaser",index:n,url:t,img:l,areaid:r,target_url:e.href,id:null!==(a=o9(e.href))&&void 0!==a?a:void 0,yd:""};window.WP.pwp.registerBox(e,c,i,{time:1,percent:50})})}catch(e){console.error(e)}}let ar=!1,ai=0,ao=null;function aa(e){let t=e instanceof Element?e:null;for(;t&&t!==document.body;){if(function(e){let t=window.getComputedStyle(e).overflowY;return("auto"===t||"scroll"===t)&&e.scrollHeight>e.clientHeight}(t))return t;t=t.parentElement}return null}function al(e){1===e.targetTouches.length?(ai=e.targetTouches[0].clientY,ao=aa(e.target)):ao=null}function ac(e){if(1!==e.targetTouches.length)return;let t=null!=ao?ao:aa(e.target);if(!t){e.preventDefault();return}let n=e.targetTouches[0].clientY-ai,{scrollTop:r,scrollHeight:i,clientHeight:o}=t;(r<=0&&n>0||r+o>=i&&n<0)&&e.preventDefault()}function as(){document.body.classList.add("wp-scroll-lock"),/iPhone|iPad|iPod/i.test(window.navigator.userAgent)&&!ar&&(ar=!0,document.addEventListener("touchstart",al,{passive:!0}),document.addEventListener("touchmove",ac,{passive:!1}))}function au(){document.body.classList.remove("wp-scroll-lock"),ar&&(ar=!1,ao=null,document.removeEventListener("touchstart",al),document.removeEventListener("touchmove",ac))}function ad(){let e=document.createElement("div");return e.className="h-0",e}function ap(e){return{get:(t,n)=>
62"push"===n?function(...n){return am===e&&n.forEach(e=>"function"==typeof e&&e()),Array.prototype.push.apply(t,n)}:Reflect.get(t,n)}}let a_=new Proxy([],ap("wide")),ah=new Proxy([],ap("narrow")),af=new Proxy([],ap("extrawide")),am=null,av=[],ag=new Proxy(av,{get:(e,t)=>"push"===t?function(...t){if(null!==aw){let e=aw;t.forEach(t=>"function"==typeof t&&t(e))}return Array.prototype.push.apply(e,t)}:Reflect.get(e,t)}),aw=null;function ay(e){aw=e,av.forEach(t=>t(e))}function ab(e,t,n,r,i,o){let a;if(o){e.forEach(e=>"function"==typeof e&&e());return}a=i&&window.innerWidth>=i?"extrawide":window.innerWidth>=r?"wide":"narrow",am!==a&&(am=a,"wide"===a&&t.length&&t.forEach(e=>"function"==typeof e&&e()),"extrawide"===a&&n.length&&n.forEach(e=>"function"==typeof e&&e()),"narrow"===a&&e.length&&e.forEach(e=>"function"==typeof e&&e()))}let ax={registerNative:function(e,t,n,r=ae){window.WP.push(()=>{try{let i=window.location.origin+window.location.pathname,o=at(n,r);if(null===o)return;let a={type:e.dataNative.src?"teaser":"teaserNoPhoto",index:t,url:i,areaid:r,target_url:e.dataNative.url,img:e.dataNative.src,recommendationType:"moth"===e.type?"big-data":"ad",yd:""};window.WP.pwp.registerBox(e.originalEl,a,o,{time:1,percent:50})}catch(e){console.error(e)}})},registerNativeIntextTeaser:function(e,t,n){window.WP.push(()=>{try{let r=window.location.origin+window.location.pathname,i=window.__INIT_CONFIG__.isLoggedIn,o=window.WP.pwp.registerContainer({type:"area",areaid:"adspace-recommendation",length:n,isLogged:i,position:t,url:r});if("number"!=typeof o)return;let a={type:"intextTeaser",index:0,url:r,img:e.dataNative.src,areaid:"adspace-photorecommendation",target_url:e.dataNative.url,position:t,recommendationType:"big-data",yd:""};window.WP.pwp.registerBox(e.originalEl,a,o,{time:1,percent:50})}catch(e){console.error(e)}})},containers:{}};function ak(){let e=document.getElementById("wp-main-menu");if(!e)return;let{height:t}=e.getBoundingClientRect();t&&document.body.style.setProperty("--nav-header-height",`${t+17.5}px`)}let aC=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var aN="object"==typeof global&&global&&global.Object===Object&&global,aE="object"==typeof self&&self&&self.Object===Object&&self,aI=aN||aE||Function("return this")();let aS=function(){return aI.Date.now()};var aA=/\s/;let aT=function(e){for(var t=e.length;t--&&aA.test(e.charAt(t)););return t};var aL=/^\s+/,aP=aI.Symbol,aO=Object.prototype,az=aO.hasOwnProperty,aW=aO.toString,aM=aP?aP.toStringTag:void 0;let aR=function(e){var t=az.call(e,aM),n=e[aM];try{e[aM]=void 0;var r=!0}catch(e){}var i=aW.call(e);return r&&(t?e[aM]=n:delete e[aM]),i};var a$=Object.prototype.toString,aD=aP?aP.toStringTag:void 0;let aB=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":aD&&aD in Object(e)?aR(e):a$.call(e)},aH=function(e){return"symbol"==typeof e||null!=e&&"object"==typeof e&&"[object Symbol]"==aB(e)};var aF=0/0,aj=/^[-+]0x[0-9a-f]+$/i,aU=/^0b[01]+$/i,aq=/^0o[0-7]+$/i,aG=parseInt;let aV=function(e){if("number"==typeof e)return e;if(aH(e))return aF;if(aC(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=aC(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,aT(t)+1).replace(aL,""):t;var r=aU.test(e);return r||aq.test(e)?aG(e.slice(2),r?2:8):aj.test(e)?aF:+e};var aY=Math.max,aK=Math.min;let aZ=function(e,t,n){var r,i,o,a,l,c,s=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw TypeError("Expected a function");function _(t){var n=r,o=i;return r=i=void 0,s=t,a=e.apply(o,n)}function h(e){var n=e-c,r=e-s;return void 0===c||n>=t||n<0||d&&r>=o}function f(){var e,n,r,i=aS();if(h(i))return m(i);l=setTimeout(f,(e=i-c,n=i-s,r=t-e,d?aK(r,o-n):r))}function m(e){return(l=void 0,p&&r)?_(e):(r=i=void 0,a)}function v(){var e,n=aS(),o=h(n);if(r=arguments,i=this,c=n,o){if(void 0===l)return s=e=c,l=setTimeout(f,t),u?_(e):a;if(d)return clearTimeout(l),l=setTimeout(f,t),_(c)}return void 0===l&&(l=setTimeout(f,t)),a}return t=aV(t)||0,aC(n)&&(u=!!n.leading,o=(d="maxWait"in n)?aY(aV(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==l&&clearTimeout(l),s=0,r=c=i=l=void 0},v.flush=function(){return void 0===l?a:m(aS())},v}
62,aJ=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw TypeError("Expected a function");return aC(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),aZ(e,t,{leading:r,maxWait:t,trailing:i})},aQ=` 63 <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"> 64 <path d="M11.5 3L6.75 7.75L4.25 5.25L0.5 9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/> 65 <path d="M8.5 3H11.5V6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/> 66 </svg> 67`,aX=e=>1===e?"osoba czyta teraz!":e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?"osoby czytajÄ teraz!":"os\xf3b czyta teraz!",a0=` 68 <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"> 69 <path d="M0.5 6C0.5 6 2.5 2 6 2C9.5 2 11.5 6 11.5 6C11.5 6 9.5 10 6 10C2.5 10 0.5 6 0.5 6Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/> 70 <path d="M6 7.5C6.82843 7.5 7.5 6.82843 7.5 6C7.5 5.17157 6.82843 4.5 6 4.5C5.17157 4.5 4.5 5.17157 4.5 6C4.5 6.82843 5.17157 7.5 6 7.5Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/> 71 </svg> 72`,a1=`<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"> 73 <path d="M10.5 5.75001C10.5017 6.40995 10.3475 7.06096 10.05 7.65001C9.69722 8.35589 9.15488 8.9496 8.48372 9.36465C7.81257 9.77971 7.03912 9.99971 6.25 10C5.59007 10.0017 4.93906 9.84755 4.35 9.55001L1.5 10.5L2.45 7.65001C2.15247 7.06096 1.99828 6.40995 2 5.75001C2.00031 4.96089 2.22031 4.18744 2.63536 3.51629C3.05041 2.84514 3.64413 2.3028 4.35 1.95001C4.93906 1.65248 5.59007 1.49829 6.25 1.50001H6.5C7.54217 1.55751 8.52652 1.99739 9.26457 2.73544C10.0026 3.47349 10.4425 4.45784 10.5 5.50001V5.75001Z" stroke="black" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/> 74</svg>`;function a2(e){let t=document.createElement("span");return t.className="wp-comments-count-label",t.insertAdjacentHTML("beforeend",a1),t.appendChild(document.createTextNode(e)),t}let a3=`<svg width="7" height="10" viewBox="0 0 7 10" fill="none" xmlns="http://www.w3.org/2000/svg"> 75 <path d="M0 8.6539C0 9.50826 1.00212 9.96917 1.65079 9.41316L6.1142 5.58738C6.57981 5.18829 6.57981 4.46796 6.1142 4.06887L1.65079 0.243089C1.00212 -0.312917 0 0.147993 0 1.00235V8.6539Z" fill="black"/> 76</svg>`,a5="https://sgwp.wpcdn.pl/static/logotypes/feed",a4={"autocentrum.pl":{img:`${a5}/autocentrum.svg`,name:"AUTOCENTRUM.PL"},"autokult.pl":{img:`${a5}/autokult.svg`,name:"AUTOKULT"},"benchmark.pl":{img:`${a5}/benchmark.svg`,name:"BENCHMARK.PL"},"dobreprogramy.pl":{img:`${a5}/dobreprogramy.svg`,name:"DOBREPROGRAMY"},"e.autokult.pl":{img:`${a5}/eautokut.svg`,name:"E-AUTOKULT"},"fotoblogia.pl":{img:`${a5}/fotoblogia.svg`,name:"FOTOBLOGIA"},"gadzetomania.pl":{img:`${a5}/gadzetomania.svg`,name:"GADÅ»ETOMANIA"},"genialne.pl":{img:`${a5}/genialne.svg`,name:"GENIALNE.PL"},"jastrzabpost.pl":{img:`${a5}/jastrzabpost.svg`,name:"JASTRZABPOST.PL"},"komorkomania.pl":{img:`${a5}/komorkomania.svg`,name:"KOM\xd3RKOMANIA"},"money.pl":{img:`${a5}/money.svg`,name:"MONEY.PL",badgeColor:"#03357d"},"o2.pl":{img:`${a5}/o2.svg`,name:"O2.PL",badgeColor:"#0d45d7"},"polygamia.pl":{img:`${a5}/polygamia.svg`,name:"POLYGAMIA.PL"},"pudelek.pl":{img:`${a5}/pudelek.svg`,name:"PUDELEK.PL",badgeColor:"#da2f73"},"pysznosci.pl":{img:`${a5}/pysznosci.svg`,name:"PYSZNOÅCI.PL"},"deliciousmagazine.pl":{img:`${a5}/pysznosci.svg`,name:"PYSZNOÅCI.PL"},"informacje.wp.pl":{img:`${a5}/informacje.svg`,name:"INFORMACJE"},"sportowefakty.wp.pl":{name:"SPORTOWE FAKTY",color:"#166c00"},"wiadomosci.wp.pl":{name:"WIADOMOÅCI",color:"#c00"},"tech.wp.pl":{name:"TECH",color:"#734db2"},"abczdrowie.pl":{name:"ABC ZDROWIE",color:"#fb434b"},"teleshow.wp.pl":{name:"TELESHOW",color:"#4069a2"},"wideo.wp.pl":{name:"WIDEO",color:"#c00"},"finanse.wp.pl":{name:"FINANSE",color:"#d26740"},"kuchnia.wp.pl":{name:"KUCHNIA",color:"#66bf00"},"parenting.pl":{name:"PARENTING",color:"#e15aa2"},"kobieta.wp.pl":{name:"KOBIETA",color:"#a65867"},"facet.wp.pl":{name:"FACET",color:"#80838a"},"gry.wp.pl":{name:"GRY",color:"#406c94"},"turystyka.wp.pl":{name:"TURYSTYKA",color:"#3d6fb0"},"film.wp.pl":{name:"FILM",color:"#694BBD"},"moto.wp.pl":{name:"MOTO",color:"#e54600"},"pogoda.wp.pl":{name:"POGODA",color:"#02ade3"},"wszechmocne.wp.pl":{name:"WSZECHMOCNE",color:"#a65867"},"kultura.wp.pl":{name:"KULTURA",color:"#ca0044"},"dom.wp.pl":{name:"DOM",color:"#31b4d0"},"popularne.pl":{name:"POPULARNE",color:"#d21f15"},"gwiazdy.wp.pl":{name:"GWIAZDY",color:"#9c7aaa"},"premium.wp.pl":{name:"PREMIUM",color:"#22242d"},"rolnicy.wp.pl":{name:"ROLNICY",color:"#13663C"},"zwierzaki.wp.pl":{name:"ZWIERZAKI",color:"#FE5C0B"}};function a7(e){let t=function(e){for(let t in a4)if(e.includes(t))return a4[t];return null}(e);if(!t)return null;let n=document.createElement("div");n.className="wp-service-label";let r=document.createElement("div");if(r.className="wp-service-logo",t.img){let e=document.createElement("img"),n=window.WP.crux.mess(t.img);e.src=n,e.alt="",e.height=18,e.width=18,r.appendChild(e)}if(t.color){r.style.backgroundColor=t.color;let e=document.createElement("img"),n=window.WP.crux.mess("https://sgwp.wpcdn.pl/static/images/svg/logo.svg");e.src=n,e.alt="",e.width=13,e.height=8,r.appendChild(e)}return n.appendChild(r),n.appendChild(document.createTextNode(t.name)),n}function a6(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let a8="cHJldmVudENC";function a9(e){if(!e)return null;try{return new URL(e)}catch(e){return null}}class le extends Array{push(...e){let t=super.push(...e);
76return e.forEach(e=>{"function"==typeof this.handler&&this.handler(e)}),t}constructor(e){super(),a6(this,"handler",void 0),this.handler=e}}let lt=()=>` 77 <svg 78 xmlns="http://www.w3.org/2000/svg" 79 fill="currentColor" 80 viewBox="0 0 14 24" 81 > 82 <path d="M9.48 11.648a.5.5 0 0 1 0 .704L.7 21.195a1 1 0 0 0 0 1.41l.676.68a1 1 0 0 0 1.419 0L13.3 12.705a1 1 0 0 0 0-1.41L2.795.715a1 1 0 0 0-1.42 0l-.675.68a1 1 0 0 0 0 1.41z"></path> 83 </svg> 84 `,ln="adblock",lr="adblock_plus",li=`?continue_url=${encodeURIComponent(window.location.href)}`;function lo(e,t){["top","bottom"].forEach(n=>{let r=`social_tools_${n}`,i=document.querySelectorAll(`.wp-article-share-option[data-vab-container="${r}"], 85 .wp-article-action[data-vab-container="${r}"]`);i.length&&function(e,t,n,r){let i={type:"area",areaid:e,length:t.length,isLogged:n,url:r},o=window.WP.pwp.registerContainer(i);"number"==typeof o&&t.forEach(t=>{if(t.dataset.vabIndex){let i={type:"button",index:Number(t.dataset.vabIndex),url:r,areaid:e,isLogged:n,id:t.dataset.vabBox};window.WP.pwp.registerBox(t,i,o)}})}(r,i,e,t)})}let{isMobile:la}=window.__INIT_CONFIG__,ll={HEADER_HEIGHT:la?56:80,XBAL_HEIGHT:46*!!document.getElementById("xbal"),SCROLL_DETECTION_THRESHOLD:1,SCROLL_STOP_CHECKS_REQUIRED:3,REPOSITION_THRESHOLD:50,SELECTOR:"comments-root"};function lc(e){let{location:t}=e.dataset;t&&e.addEventListener("click",e=>{if(function(){let e=document.querySelectorAll(".wp-comment-dot");e.length&&e.forEach(e=>{e.setAttribute("data-clicked","true")})}(),t===`#${ll.SELECTOR}`){e.preventDefault(),window.history.replaceState(null,"",`#${ll.SELECTOR}`),requestAnimationFrame(()=>(function(){let e=document.getElementById(ll.SELECTOR);if(!e)return;lu(ls(e));let t=window.pageYOffset||document.documentElement.scrollTop,n=0,r=()=>{let i=window.pageYOffset||document.documentElement.scrollTop;if(Math.abs(i-t)>=ll.SCROLL_DETECTION_THRESHOLD){n=0,t=i,requestAnimationFrame(r);return}if(++n<ll.SCROLL_STOP_CHECKS_REQUIRED){t=i,requestAnimationFrame(r);return}let o=ls(e);Math.abs(i-o)>ll.REPOSITION_THRESHOLD&&lu(o,"instant")};requestAnimationFrame(r)})());return}window.location.assign(t)})}function ls(e){let t=e.getBoundingClientRect(),n=window.pageYOffset||document.documentElement.scrollTop;return Math.max(0,t.top+n-ll.HEADER_HEIGHT-ll.XBAL_HEIGHT)}function lu(e,t="smooth"){window.scrollTo({top:e,behavior:t})}function ld(e,t){let n="comments_more",r=".wp-article-comments-page-link",i=document.querySelector(`${r}[data-vab-container="${n}"]`);i&&(!function(e=".wp-article-action.comments[data-location]"){let t=document.querySelectorAll(e);t.length&&t.forEach(lc)}(`${r}[data-location]`),function(e,t,n,r){let i=window.WP.pwp.registerContainer({type:"area",areaid:e,length:1,isLogged:n,url:r});if("number"!=typeof i)return;let o={type:"button",index:0,url:r,areaid:e,isLogged:n,id:t.dataset.vabBox};window.WP.pwp.registerBox(t,o,i)}(n,i,e,t))}let lp="service_header_back",l_=e=>e?new URL(e,window.location.href).href:void 0,lh=e=>{let{containerId:t,currentUrl:n}=e,r=document.getElementById("service_logo");r&&window.WP.pwp.registerBox(r,{type:"button",index:0,url:n,areaid:"service_header",target_url:r.href,id:"service_logo",yd:""},t,{time:1,percent:50})},lf=e=>{let{containerId:t,currentUrl:n}=e,r=document.getElementById("wp-sgwp-logo-link");r&&window.WP.pwp.registerBox(r,{type:"button",index:1,url:n,areaid:"service_header",target_url:r.dataset.vabTargetUrl,id:"sgwp_logo",yd:""},t,{time:1,percent:50})},lm=e=>{let{containerId:t,currentUrl:n,isLogged:r,isMobile:i}=e,o=document.getElementById("wp-poczta-link");o&&window.WP.pwp.registerBox(o,{type:"button",isLogged:r,url:n,areaid:"service_header",index:i?2:8,id:"poczta"},t)},lv=e=>{let{containerId:t,currentUrl:n,isLogged:r,isMobile:i}=e,o=document.getElementById("wp-login-button");o&&window.WP.pwp.registerBox(o,{type:"button",isLogged:r,url:n,areaid:"service_header",index:i?3:10,id:"login"},t)},lg=e=>{let{containerId:t,currentUrl:n,isLogged:r}=e,i=document.getElementById("wp-logged-button");i&&window.WP.pwp.registerBox(i,{type:"button",isLogged:r,url:n,areaid:"service_header",index:0,id:"profil"},t)};function lw(e,t,n,r,i,o){e.forEach(({el:e,type:a,id:l},c)=>{window.WP.pwp.registerBox(e,{type:a,id:l,areaid:t,index:n+c,url:i,isLogged:o},r,{time:1,percent:50})})}function ly(e){return(null==e?void 0:e.querySelector(".wp-button-prefix-hidden"))?"home_short":"home_expanded"}function lb({element:e,index:t,url:n,areaid:r,id:i,target_url:o,containerId:a,eventData:l}){let c={time:1,percent:50};l&&(c.eventData=l),window.WP.pwp.registerBox(e,{type:"button",index:t,url:n,areaid:r,id:i,yd:"",target_url:o},a,c)}function lx(e,t,n,r,i,o){var a;if("true"===e.dataset.registered)return;let l=e.querySelector("a");if(!l)return;let c=(null===(a=e.querySelector("img"))||void 0===a?void 0:a.src)||"";!function({element:e,index:t,url:n,areaid:r,linkHref:i,containerId:o,type:a,image:l}){window.WP.pwp.registerBox(e,{type:a,index:t,url:n,areaid:r,target_url:i,id:o9(i),img:l||""},o,{time:1,percent:50})}({element:e,index:t,url:n,areaid:r,linkHref:l.href,containerId:i,type:o,image:c}),e.dataset.registered="true"}function lk({panelElement:e,areaId:t,isLogged:n,currentUrl:r,withObserver:i,t
85ype:o}){if(!e)return;let a=e.querySelectorAll(".timeline-item").length;if(0===a)return;let l=window.WP.pwp.registerContainer({type:"area",areaid:t,length:a,isLogged:n,url:r});"number"==typeof l&&i&&o&&function({panelElement:e,currentUrl:t,areaId:n,containerId:r,type:i}){new MutationObserver(()=>{let o=Array.from(e.querySelectorAll(".timeline-item"));o.forEach(e=>{if("true"===e.dataset.visible&&"true"!==e.dataset.registered){let a=o.indexOf(e);lx(e,a,t,n,r,i)}})}).observe(e,{childList:!0,attributes:!0,subtree:!0,attributeFilter:["class","data-visible"]});let o=Array.from(e.querySelectorAll(".panel-item"));o.forEach(e=>{if("true"===e.dataset.visible&&"true"!==e.dataset.registered){let a=o.indexOf(e);lx(e,a,t,n,r,i)}})}({panelElement:e,currentUrl:r,areaId:t,containerId:l,type:o})}function lC(e,t){let n=document.querySelectorAll(".wp-content-text-raw");n.length&&n.forEach(function(n){!function(e,t,n){let r=e.querySelectorAll("a");if(!r.length)return;let i="content-text",o=e.getAttribute("data-cpidx"),a={type:"area",areaid:i,length:r.length,isLogged:t,url:n,...null!==o&&{position:Number(o)}},l=window.WP.pwp.registerContainer(a);"number"==typeof l&&r.forEach((e,t)=>{var r;let a={type:"textlink",index:t,url:n,areaid:i,target_url:e.href,id:null!==(r=o9(e.href))&&void 0!==r?r:void 0,position:o?Number(o):void 0};window.WP.pwp.registerBox(e,a,l,{time:1,percent:50})})}(n,e,t)})}function lN(e,t){let n=document.querySelectorAll(".wp-content-toc");n.length&&n.forEach(n=>{let r=n.querySelectorAll("a");if(!r.length)return;let i="article_shortcut",o=n.getAttribute("data-cpidx"),a={type:"area",areaid:i,length:r.length,isLogged:e,url:t,...null!==o&&{position:Number(o)}},l=window.WP.pwp.registerContainer(a);if("number"!=typeof l)return;r.forEach((e,n)=>{let r={type:"textlink",target_url:e.href,index:n,url:t,areaid:i};window.WP.pwp.registerBox(e,r,l,{time:1,percent:50})});let c=n.querySelectorAll(".trimbox-button");c.length&&c.forEach((e,n)=>{window.WP.pwp.registerBox(e,{type:"button",id:"expand",areaid:i,index:n,url:t},l,{time:1,percent:50})})})}let lE="sg_tab_acquisition";function lI(e,t){let n=document.querySelectorAll(".wp-teaser-grid");n.length&&n.forEach(function(n){let r=n.querySelectorAll("a");if(!r.length)return;let i="recommendations-header",o={type:"area",areaid:i,length:r.length,isLogged:e,url:t},a=window.WP.pwp.registerContainer(o);"number"==typeof a&&r.forEach((e,n)=>{var r,o,l;let c={type:"teaser",index:n,url:t,img:null!==(o=null===(r=e.querySelector("img"))||void 0===r?void 0:r.src)&&void 0!==o?o:"",areaid:i,target_url:e.href,id:null!==(l=o9(e.href))&&void 0!==l?l:void 0};window.WP.pwp.registerBox(e,c,a,{time:1,percent:50})})})}let lS=".wp-content-part-teaser",lA=".wp-content-part-multiteaser",lT=".wp-content-part-teaser-large",lL=".wp-content-part-teaser-dotted";function lP(e,t,n){let r=document.querySelectorAll(e);r.length&&r.forEach(function(r){!function(e,t,n,r){let i=e.querySelectorAll("a");if(!i.length)return;let o=t===lT?"intext-photorecommendation":"intext-recommendation",a=e.getAttribute("data-cpidx"),l=null!==a?Number(a):void 0,c=window.WP.pwp.registerContainer({type:"area",areaid:o,length:i.length,isLogged:n,position:l,url:r});"number"==typeof c&&i.forEach((e,t)=>{var n,i,a;let s=null!==(i=null===(n=e.querySelector("img"))||void 0===n?void 0:n.src)&&void 0!==i?i:"";window.WP.pwp.registerBox(e,{type:"intextTeaser",index:t,url:r,img:s,areaid:o,target_url:e.href,id:null!==(a=o9(e.href))&&void 0!==a?a:void 0,position:l},c,{time:1,percent:50})})}(r,e,t,n)})}function lO(e){let{videoElement:t,playerElement:n=t,currentUrl:r,areaId:i,position:o,isLogged:a,isMothVideo:l}=e,c={type:"area",areaid:i,length:1,isLogged:a,url:r,...void 0!==o&&{position:Number(o)}},s=window.WP.pwp.registerContainer(c);if("number"!=typeof s)return;let u={index:0,type:"button",url:r,areaid:i,id:"initial_autoplay",recommendationType:e.isMothVideo?"big-data":"pinned",yd:"autoplay_on"};window.WP.pwp.registerBox(n,u,s,{time:1,percent:50,eventData:function(){let e=t.querySelector(".wp-player .npp-container:not(.automute) .btnplaybig"),n=l?"big-data":"pinned";if(e&&"none"!==getComputedStyle(e).display)return{id:"video_player",recommendationType:n,yd:"autoplay_off"};let r=t.querySelector(".wp-player .npp-container.automute .btnplaybig");return r&&"none"!==getComputedStyle(r).display?{id:"video_unmute",yd:"autoplay_on",recommendationType:n}
85:{id:"initial_autoplay",recommendationType:n,yd:"autoplay_on"}}})}let lz="newsletter",lW="newsletter_confirmation",lM="video_more";function lR(e,t){let n=document.querySelector(".wp-content-part-video");n&&!function(e,t,n){let r=document.querySelector("[data-id='wpplayer-placeholder']");if(!r)return;let i=r.getAttribute("data-cpidx"),o="true"===e.getAttribute("data-moth-video");lO({videoElement:e,playerElement:r,currentUrl:n,isLogged:t,areaId:"video",position:i||void 0,isMothVideo:o})}(n,e,t)}let{isMobile:l$,isLoggedIn:lD,showExitDiscover:lB,withNewestBottombar:lH,goferGoogleTagManagerID:lF}=window.__INIT_CONFIG__;window.NativeAdManager=new class{initAsyncQueue(){var e;(null===(e=window.asyncNativeQueue)||void 0===e?void 0:e.length)&&window.asyncNativeQueue.forEach(e=>{e.action&&e.payload&&this.handleAction(e)}),window.asyncNativeQueue=new le(this.handleAction)}getElement(e){return document.querySelector(`.${e}`)}createNativeTeaser(e,t,n,r){let i=t.labelText||"REKLAMA",o=document.createElement("a"),a=document.createElement("div"),l=document.createElement("img"),c=document.createElement("span"),s=e.getAttribute("data-position"),u=t.commentsCount||"0",d=t.videoLength||0;if(o.classList.add("wp-native-teaser-anchor"),o.setAttribute("href",t.url||""),a.classList.add("wp-native-img-container"),l.setAttribute("src",t.src||""),c.textContent=t.text||"",e.classList.contains("wp-cockroach-native-teaser")){var p;let{containerRatio:e,mismatchThreshold:n}=window.__INIT_CONFIG__.isMobile?{containerRatio:1.87619,mismatchThreshold:1.28}:{containerRatio:1.90909,mismatchThreshold:1.3};"number"==typeof(p=t.imageAspectRatio)&&Math.max(p/e,e/p)>
85n&&(a.dataset.fit="contain")}if(a.appendChild(l),o.appendChild(a),o.appendChild(c),e.appendChild(o),t.privacyIcon&&t.privacyLink){let n=document.createElement("a");n.classList.add("wp-native-privacy-anchor");let r=document.createElement("img");n.setAttribute("href",t.privacyLink),n.setAttribute("target","_blank"),n.setAttribute("rel","noopener noreferrer"),r.setAttribute("src",t.privacyIcon),n.appendChild(r),o.setAttribute("data-privacy","true"),e.appendChild(n)}let _={type:"native",dataNative:t,originalEl:o};if(!t.hideLabel)return o.classList.add(a8),o.setAttribute("data-before",i),_;if(a9(t.originalUrl)){let e=s?parseInt(s):0,t=n&&parseInt(u)>5,i=r&&d>0;if(t||i){let e=document.createElement("div");e.className="wp-labels-container",i&&e.appendChild(function(e){let t=document.createElement("span");return t.className="wp-video-duration-label",t.insertAdjacentHTML("beforeend",a3),t.appendChild(document.createTextNode(function(e){let t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=String(e%60).padStart(2,"0"),i=String(n).padStart(2,"0");return t>0?`${t}:${i}:${r}`:`${n}:${r}`}(e))),t}(d)),t&&e.appendChild(a2(u)),a.appendChild(e)}e>0&&o.setAttribute("data-st-clk",JSON.stringify({mth_type:"s",mth_index:e})),_.type="moth"}return _}createNativeTeaserWithLabels(e,t){let n=t.labelText||"REKLAMA",r=document.createElement("a"),i=document.createElement("div"),o=document.createElement("img"),a=document.createElement("span"),l=e.getAttribute("data-position");if(r.classList.add("wp-native-teaser-anchor"),r.setAttribute("href",t.url||""),i.classList.add("wp-native-img-container"),o.setAttribute("src",t.src||""),a.textContent=t.text||"",i.appendChild(o),r.appendChild(i),r.appendChild(a),e.appendChild(r),t.privacyIcon&&t.privacyLink){let n=document.createElement("a");n.classList.add("wp-native-privacy-anchor");let i=document.createElement("img");n.setAttribute("href",t.privacyLink),n.setAttribute("target","_blank"),n.setAttribute("rel","noopener noreferrer"),i.setAttribute("src",t.privacyIcon),n.appendChild(i),r.setAttribute("data-privacy","true"),e.appendChild(n)}let c={type:"native",dataNative:t,originalEl:r};if(!t.hideLabel)return r.classList.add(a8),r.setAttribute("data-before",n),c;if(a9(t.originalUrl)){let n=parseInt(e.getAttribute("data-readers")||"0"),i=parseInt(e.getAttribute("data-views")||"0");if(n)r.appendChild(function(e){let t=document.createElement("div");t.className="wp-readers-label";let n=document.createElement("span");return n.innerHTML=`<b>${e}</b> ${aX(e)}`,t.insertAdjacentHTML("beforeend",aQ),t.appendChild(n),t}(n));else if(i)r.appendChild(function(e){let t=document.createElement("div");t.className="wp-views-label";let n=document.createElement("span");return n.innerHTML=`<b>${e} tys.</b> wyÅwietleÅ`,t.insertAdjacentHTML("beforeend",a0),t.appendChild(n),t}(i));else if(t.originalUrl){let e=a7(t.originalUrl);e&&r.appendChild(e)}let o=l?parseInt(l):0;o>0&&r.setAttribute("data-st-clk",JSON.stringify({mth_type:"s",mth_index:o})),c.type="moth"}return c}createExitPopupNativeTeaser(e,t){let n=document.createElement("a"),r=document.createElement("div"),i=document.createElement("div"),o=document.createElement("img"),a=document.createElement("span"),l=document.createElement("span"),c=e.getAttribute("data-position"),s=t.commentsCount||"0";if(n.classList.add("wp-native-teaser-anchor"),n.setAttribute("href",t.url||""),r.classList.add("wp-native-teaser-content-container"),i.classList.add("wp-native-img-container"),o.setAttribute("src",t.src||""),a.textContent=t.text||"",a.classList.add("wp-native-teaser-text"),l.innerHTML=`Zobacz caÅy artykuÅ ${lt()}`,l.classList.add("wp-native-teaser-button"),i.appendChild(o),r.appendChild(i),r.appendChild(a),n.appendChild(r),n.appendChild(l),e.appendChild(n),t.privacyIcon&&t.privacyLink){let r=document.createElement("a");r.classList.add("wp-native-privacy-anchor");let i=document.createElement("img");r.setAttribute("href",t.privacyLink),r.setAttribute("target","_blank"),r.setAttribute("rel","noopener noreferrer"),i.setAttribute("src",t.privacyIcon),r.appendChild(i),n.setAttribute("data-privacy","true"),e.appendChild(r)}let u={type:"native",dataNative:t,originalEl:n},d=a9(t.originalUrl);
85if(d){let e=d.hostname.replace(/^www\./,"").toUpperCase();n.setAttribute("data-service",e),parseInt(s)>5&&i.appendChild(a2(s));let t=c?parseInt(c):0;t>0&&n.setAttribute("data-st-clk",JSON.stringify({mth_type:"s",mth_index:t})),u.type="moth"}return u}createBottombarPanelTeaser(e,t){let n=document.createElement("a");n.href=t.url||"",n.className="wp-timeline-teaser wp-timeline-teaser-horizontal";let r=e.getAttribute("data-position");if(t.src){let e=document.createElement("img");e.src=t.src,e.alt=t.text||"",e.className="timeline-teaser-image timeline-teaser-image-horizontal",n.appendChild(e)}let i=document.createElement("span");if(i.className="teaser-content teaser-content-horizontal",i.textContent=t.text||"",n.appendChild(i),e.appendChild(n),t.privacyIcon&&t.privacyLink){let r=document.createElement("a");r.classList.add("wp-native-privacy-anchor");let i=document.createElement("img");r.setAttribute("href",t.privacyLink),r.setAttribute("target","_blank"),r.setAttribute("rel","noopener noreferrer"),i.setAttribute("src",t.privacyIcon),r.appendChild(i),n.setAttribute("data-privacy","true"),e.appendChild(r)}let o={type:"native",dataNative:t,originalEl:n},a=a9(t.originalUrl);if(a){let e=a.hostname.replace(/^www\./,"").toUpperCase();n.setAttribute("data-service",e);let t=r?parseInt(r):0;t>0&&n.setAttribute("data-st-clk",JSON.stringify({mth_type:"s",mth_index:t})),o.type="moth"}return o}createNativeTeaserWithoutPhoto(e,t,n=!1,r=!1,i="",o=!1){let a=document.createElement("div");a.className="wp-superteaser wp-superteaser-teaser-without-photo",r||a.classList.add("wp-superteaser-disable-border");let l=document.createElement("a");if(l.className="wp-link",i&&l.classList.add(i),l.href=t.url||"",t.originalUrl){let e=a7(t.originalUrl);e&&l.appendChild(e)}let c=document.createElement("div");c.className="wp-content";let s=document.createElement("div");s.className="wp-title";let u=document.createElement("span");if(u.textContent=t.text||"",s.appendChild(u),c.appendChild(s),t.leadText){let e=document.createElement("p");e.innerHTML=t.leadText,c.appendChild(e)}if(l.appendChild(c),o){let e=t.commentsCount||"0";parseInt(e)>5&&l.appendChild(a2(e))}let d=document.createElement("div");d.className="wp-action-bar",n&&d.classList.add("all-article-button");let p=document.createElement("span");return p.className=n?"wp-look-all-article-button":"wp-see-more-button",n?p.innerHTML=`Zobacz caÅy artykuÅ ${lt()}`:p.textContent="Czytaj wiÄcej",d.appendChild(p),l.appendChild(d),a.appendChild(l),e.appendChild(a),{type:"native",dataNative:t,originalEl:a}}updateTeaserVisibility(e,t){let n=this.getElement(e);n&&(n.style.display="hide"===t?"none":"inherit")}handleNativeTeaser(e){let t;let{dataNative:n,onViewCallback:r,teaserClassName:i,nativeSlotClassName:o,template:a}=e,l=this.getElement(o);if(!l)return null;if(n.src)switch(a){case"bottombar-panel":t=this.createBottombarPanelTeaser(l,n);break;case"exitpopup":t=this.createExitPopupNativeTeaser(l,n);break;case"recommendations-splited":t=this.createNativeTeaserWithLabels(l,n);break;case"recommendations-video":t=this.createNativeTeaser(l,n,!1,!1);break;default:t=this.createNativeTeaser(l,n,!0,!0)}else switch(a){case"exitpopup":t=this.createNativeTeaserWithoutPhoto(l,n,!0,!0,"wp-exit-popup-native-teaser-link",!0);break;case"bottombar-panel":t=this.createNativeTeaserWithoutPhoto(l,n);break;default:t=this.createNativeTeaserWithoutPhoto(l,n,!1,!0)}return this.updateTeaserVisibility(i,"hide"),r({el:l}),t}handleNativeScreening(e,t){let n=this.getElement(e);return n?(t({el:n}),n.dataset.screening="true",n):null}handleScreeningEndSection(e,t){let n=`${e}-observer`,r=document.getElementById(n);if(!r)return;let i=0;function o(){let e=r.getBoundingClientRect().top-t.getBoundingClientRect().top;i!==e&&(t.style.maxHeight=`${e}px`,i=e)}let a=aJ(o,350);o(),window.addEventListener("scroll",()=>a(),{passive:!0})}handleGlobalScreeningClass(e,t){document.body.classList.add("fullServiceWallpaper"===e||t?"fullpage":"glopage")}constructor(e){a6(this,"options",void 0),a6(this,"handlers",void 0),a6(this,"handleAction",void 0),a6(this,"onTeaser",void 0),a6(this,"onAlternativeScreening",void 0),a6(this,"onFullpageScreening",void 0),a6(this,"onScreening",void 0),a6(this,"onPanelPremium",void 0),a6(this,"onSectionPremiumBranding",void 0),a6(this,"onLabelTarget",void 0),this.options=e,this.handleAction=e=>{"onTeaser"===e.action&&this.onTeaser(e.payload),"onScreening"===e.action&&this.onScreening(e.payload),"onAlternativeScreening"===e.action&&this.onAlternativeScreening(e.payload),"onFullpageScreening"===e.action&&this.onFullpageScreening(e.payload),"onPanelPremium"===e.action&&this.onPanelPremium(e.payload),"onLabelTarget"===e.action&&this.onLabelTarget(e.payload),"onSectionPremiumBranding"===e.action&&this.onSectionPremiumBranding(e.payload)},this.onTeaser=e=>{if(!e.dataNative)return;let{type:t}
85=e.dataNative,{teaserClassName:n,nativeSlotClassName:r,alternativeContainerClassName:i,dataNative:o,onViewCallback:a,template:l}=e;if("teaser"===t&&"function"==typeof e.onViewCallback){let t=this.handleNativeTeaser({dataNative:o,onViewCallback:a,teaserClassName:n,nativeSlotClassName:r,template:l});"function"==typeof e.onRenderCallback&&t&&e.onRenderCallback(t)}if("teaserHide"===t&&this.updateTeaserVisibility(n,"hide"),"teaserShow"===t&&this.updateTeaserVisibility(n,"show"),"alternativeSlot"===t&&"function"==typeof a){let e=this.getElement(i);if(!e)return;a({el:e})}},this.onAlternativeScreening=e=>{var t,n,r;if(!e.dataNative||"function"!=typeof e.onViewCallback)return;let{screeningWallpaperClassName:i,alternativeContainerClassName:o,slotNumber:a,dataNative:l,onViewCallback:c}=e,{type:s}=l;if("alternativeSlot"===s){let e=this.getElement(o);if(!e)return;l.buildPlaceholder&&this.handlers.onRegisterPlaceholder(a,null!==(n=null==e?void 0:null===(t=e.parentNode)||void 0===t?void 0:t.parentNode)&&void 0!==n?n:null),c({el:e})}"wallpaper"===s&&(this.handleNativeScreening(i,c),null===(r=document.querySelector(".wp-rail-margin-reserved"))||void 0===r||r.classList.add("wallpaper-active"))},this.onFullpageScreening=e=>{if(e.dataNative&&"function"==typeof e.onViewCallback&&("wallpaper"===e.dataNative.type||"fullServiceWallpaper"===e.dataNative.type)){let t=this.handleNativeScreening(e.screeningWallpaperClassName,e.onViewCallback),n=!!e.dataNative.endSection&&"glonews"!==e.dataNative.endSection;if(this.handleGlobalScreeningClass(e.dataNative.type,n),t&&e.dataNative.endSection)this.handleScreeningEndSection(e.dataNative.endSection,t)}},this.onScreening=e=>{if(!e.dataNative||"wallpaper"!==e.dataNative.type||"function"!=typeof e.onViewCallback)return;let t=this.handleNativeScreening(e.screeningWallpaperClassName,e.onViewCallback);t&&e.dataNative.endSection&&"tourism"===e.dataNative.endSection&&(this.handleGlobalScreeningClass(e.dataNative.type,!0),t.setAttribute("data-takeover","true"))},this.onPanelPremium=e=>{e.dataNative&&("wallpaper"===e.dataNative.type&&"function"==typeof e.onViewCallback&&this.handleNativeScreening(e.screeningWallpaperClassName,e.onViewCallback),"function"==typeof e.onRenderCallback&&e.onRenderCallback(e.dataNative))},this.onSectionPremiumBranding=e=>{if(e.dataNative&&"function"==typeof e.onViewCallback){if("sectionBranding"===e.dataNative.type){let t=document.querySelector(e.sectionSelector);t&&e.onViewCallback({el:t});return}this.onLabelTarget({targetId:e.targetId,dataNative:e.dataNative,onViewCallback:e.onViewCallback})}},this.onLabelTarget=e=>{let t=document.getElementById(e.targetId);t&&e.onViewCallback({el:t})},this.handlers=e,this.initAsyncQueue()}}({onRegisterPlaceholder:(e,t,n)=>{try{"function"==typeof window.WP.gaf.registerPlaceholder&&window.WP.gaf.registerPlaceholder(e,t,n)}catch(e){console.error(e)}}}),function(e){var t,n,r;window.__GOFER_FACTORY__={},window.__GOFER_FACTORY__.onNarrow=ah,window.__GOFER_FACTORY__.onWide=a_,window.__GOFER_FACTORY__.onExtraWide=af,window.__GOFER_FACTORY__.createSlot=ad,window.__GOFER_FACTORY__.createPlaceholder=(t=window.__INIT_CONFIG__.randvar,n=window.__INIT_CONFIG__.randomClasses,r=window.__INIT_CONFIG__.removePaddingBottom,function(e,i,o,a){let l=document.createElement("div");return l.classList.add(t||""),l.classList.add(n[e]||""),i&&l.classList.add(n.transparent||""),o&&l.classList.add(n.placeholderMargin||""),a&&l.classList.add(n.boxSizingContentBox||""),r&&l.classList.add(n.removePaddingBottom||""),l}),window.__GOFER_FACTORY__.onTabChangeTrigger=ay,window.__GOFER_FACTORY__.onTabChange=ag,window.__GOFER_FACTORY__.disableBodyScroll=as,window.__GOFER_FACTORY__.clearBodyScroll=au,window.__GOFER_FACTORY__.userActions=ax,ab(window.__GOFER_FACTORY__.onNarrow,a_,af,e.breakpointNarrow,e.breakpointExtraWide,e.isMobile),window.addEventListener("resize",()=>{ab(window.__GOFER_FACTORY__.onNarrow,a_,af,e.breakpointNarrow,e.breakpointExtraWide,e.isMobile)})}({breakpointNarrow:window.breakpointNarrow,breakpointExtraWide:window.breakpointExtraWide,isMobile:l$}),function(e){e&&window.WP.push(function(){var t;null===(t=window.WP.gdpr)||void 0===t||t.runAfterConsent(function(){var t;window.dataLayer=window.dataLayer||[],window.dataLayer.push({"gtm.start":new Date().getTime(),event:"gtm.js"});let n=document.getElementsByTagName("script")[0],r=document.createElement("script");r.async=!0,r.src=`https://www.googletagmanager.com/gtm.js?id=${e}`,(null!==(t=null==n?void 0:n.parentNode)&&void 0!==t?t:document.head).insertBefore(r,null!=n?n:null)})})}(lF),function(e=!0){var t;let n=document.getElementById("darkModeCheckbox");n&&("localhost"!==window.location.hostname&&`.${window.location.hostname}`!==window.__INIT_CONFIG__.cookieDomain&&o5("wp_dark","",{expires:new Date(0),domain:window.location.hostname,path:"/"}),n.addEventListener("click",()=>{let t=document.documentElement.classList.contains("dark");document.documentElement.classList.toggle("dark"),o8(!t),o7(t),o6(!t,e),o4()}),null===(t=window.matchMedia("(prefers-color-scheme: dark)"))||void 0===t||t.addEventListener("change",function(t){if(null!==function(e){for(let t of document.cookie.split("; ")){let[n,r]=t.split("=");if(decodeURIComponent(n)===e)return decodeURIComponent(r)}return null}("wp_dark"))return;let n=t.matches;n!==document.documentElement.classList.contains("dark")&&(document.documentElement.classList.toggle("dark"),o8(n),o6(n,e),o4())}
85))}(),function(){let e=document.getElementById("wp-content-drastic");e&&e.addEventListener("submit",function(t){t.preventDefault();let n=new FormData(e).get("dont_ask_again")?"dont_ask":"once";("dont_ask"===n||"once"===n)&&("dont_ask"===n&&function(e,t,n){let{expires:r=30}=n||{},i=new Date;i.setTime(i.getTime()+864e5*r);let o=`expires=${i.toUTCString()}`;document.cookie=`${e}=${t};${o};path=/`}("allowDrasticContent",n,{expires:30}),e.style.display="none",window.scrollTo(0,0))})}(),eF(),ak(),function(){var e;let t=!1,n=document.querySelectorAll("[data-video-config]"),r=null===(e=window.__INIT_CONFIG__)||void 0===e?void 0:e.mothRelatedVideos,i=new IntersectionObserver(function(e){e.forEach(e=>{if(e.isIntersecting){if(t){i.unobserve(e.target);return}if(t=!0,i.unobserve(e.target),"function"==typeof window.requestIdleCallback){window.requestIdleCallback(()=>tr(null!=r?r:[]),{timeout:1500});return}tr(null!=r?r:[])}})},{rootMargin:"100px 0px"});n.forEach(e=>{i.observe(e)})}(),"function"==typeof window.requestIdleCallback?window.requestIdleCallback(()=>to(l$),{timeout:1500}):setTimeout(()=>to(l$),1500),ak(),function(){let e=document.querySelector(".wp-ticker-container");if(!e)return;let t=window.scrollY,n=0,r=function(e,t=200){let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}(function(){let r=e.offsetHeight,i=window.scrollY,o=e.hasAttribute("data-ticker-hidden"),a=i>t,l=i<t,c=i-t;a&&c>2?n+=c:a||(n=0),a&&!o&&n>r?e.setAttribute("data-ticker-hidden","true"):l&&o&&e.removeAttribute("data-ticker-hidden"),t=i},100);window.addEventListener("scroll",r,{passive:!0})}(),function(){var e;let t=document.getElementById("weather-widget-local-root"),n=Number.parseInt(null!==(e=null==t?void 0:t.dataset.geonameId)&&void 0!==e?e:"",10);if(!n)return;let{isMobile:r}=window.__INIT_CONFIG__;r?function(e){let t=document.getElementById("weather-widget-local-root");t&&tH(tj(o3,{geonameId:e.geonameId}),t)}({geonameId:n}):function(e){let t=document.getElementById("weather-widget-local-root");t&&tH(tj(iA,{geonameId:e.geonameId}),t)}({geonameId:n})}();let lj=window.location.origin+window.location.pathname;if(eA("evt_ux_consumption",{event:"view",pos:"started"}),function(){let e=document.querySelectorAll("[data-uxc]");e.length&&e.forEach(e=>eL.observe(e))}(),!function(e,t,n,r){window.WP.push(()=>{(function(e,t,n){try{let r=window.WP.pwp.registerContainer({type:"area",areaid:"service_header",length:2,isLogged:e,url:t});if("number"!=typeof r)return;lh({containerId:r,currentUrl:t}),lf({containerId:r,currentUrl:t}),lm({containerId:r,currentUrl:t,isLogged:e,isMobile:n}),lv({containerId:r,currentUrl:t,isLogged:e,isMobile:n}),lg({containerId:r,currentUrl:t,isLogged:e})}catch(e){var r,i;null===(r=(i=window.WP).captureError)||void 0===r||r.call(i,e)}})(t,n,e),e?(function(e,t){let n=document.getElementById("xbal");if(!n)return;let r=window.WP.pwp.registerContainer({type:"area",areaid:"xball",length:1,isLogged:e,url:t});"number"==typeof r&&window.WP.pwp.registerBox(n,{type:"button",url:t,index:0,areaid:"xball",target_url:"https://www.wp.pl?utm_source=xbalo2",id:"xball",yd:""},r,{time:1,percent:50})}(t,n),lP(lS,t,n),lP(lL,t,n),lP(lA,t,n),lP(lT,t,n),lR(t,n),lC(t,n),lN(t,n),lo(t,n),ld(t,n),an(24,n),lI(t,n),r?function(e,t){let n=document.getElementById("wp-bottombar");if(!n)return;let r=document.getElementById("wp-bottombar-newest-panel"),i=document.getElementById("wp-bottombar-gallery-panel"),o=n.querySelectorAll("[data-vab-id]").length,a=window.WP.pwp.registerContainer({type:"area",areaid:"bottombar",length:o>0?o:1,isLogged:e,url:t},{eventData:function(){return{id:ly(n.querySelector("#wp-back-bottombar-button"))}}});"number"==typeof a&&(function({bottombar:e,currentUrl:t,containerId:n,eventData:r}){if(!e)return;let i=e.querySelector("#wp-back-bottombar-button");i&&function({backButton:e,currentUrl:t,containerId:n}){let r=e.querySelector("button"),i=null==r?void 0:r.getAttribute("data-navigate-href");lb({element:e,index:0,url:t,areaid:"bottombar",id:ly(e),target_url:i||"",containerId:n,eventData:function(){return{id:ly(e)}}})}({backButton:i,currentUrl:t,containerId:n}),Array.from(e.querySelectorAll("button.wp-bottombar-icon")).forEac
85h((e,i)=>{let o=e.getAttribute("data-vab-id");o&&lb({element:e,index:i+1,url:t,areaid:"bottombar",id:o,containerId:n,eventData:r})});let o=e.querySelector("#wp-back-button-comments-gofer-open-form-trigger");o&&lb({element:o,index:1,url:t,areaid:"bottombar",id:"glo-comment",containerId:n})}({bottombar:n,currentUrl:t,containerId:a}),r&&lk({panelElement:r,areaId:"bottombar_news",isLogged:e,currentUrl:t,withObserver:!0,type:"textlink"}),i&&lk({panelElement:i,areaId:"bottombar_gallery",isLogged:e,currentUrl:t,withObserver:!0,type:"teaser"}))}(t,n):function(e,t){let n="bottombar",r=document.querySelectorAll(`[data-vab-container="${n}"]`);r.length&&function(e,t,n,r){let i={type:"area",areaid:e,length:t.length,isLogged:n,url:r},o=window.WP.pwp.registerContainer(i);"number"==typeof o&&t.forEach((t,i)=>{if(t){let a={type:"button",index:i,url:r,areaid:e,isLogged:n,id:t.dataset.vabBoxId,yd:""};window.WP.pwp.registerBox(t,a,o,{time:1,percent:50})}})}(n,r,e,t)}(t,n)):(function(e,t){try{let n=document.getElementById("wp-sg-back-button");if(!n)return;let r=document.querySelector(".back-button-hover-content"),i=window.WP.pwp.registerContainer({type:"area",areaid:lp,length:1,isLogged:e,url:t});if("number"!=typeof i)return;let o=(e,n)=>{let r={type:"button",index:0,url:t,areaid:lp,target_url:l_(e.dataset.vabTargetUrl),id:e.dataset.vabBoxId,yd:""};window.WP.pwp.registerBox(e,r,i,{time:1,percent:50,...n})};o(n),r&&o(r,{noView:!0})}catch(e){var n,r;null===(n=(r=window.WP).captureError)||void 0===n||n.call(r,e)}}(t,n),lP(lS,t,n),lP(lL,t,n),lP(lA,t,n),lC(t,n),lN(t,n),lR(t,n),lo(t,n),ld(t,n),an(12,n),lI(t,n)),function(e,t){var n;let r=document.getElementById("wp-newsletter");if(!r)return;let i=null!==(n=r.dataset.newsletterOrigin)&&void 0!==n?n:"wp_premium",o=document.getElementById("newsletter-email"),a=document.getElementById("newsletter-submit-btn"),l=document.getElementById("newsletter-success-message"),c=window.WP.pwp.registerContainer({type:"area",areaid:lz,isLogged:e,url:t,length:2});if("number"==typeof c&&(a&&window.WP.pwp.registerBox(a,{type:"button",url:t,areaid:lz,index:1,id:"subscribe",yd:"",origin:i},c,{time:1,percent:50}),o&&window.WP.pwp.registerBox(o,{type:"button",url:t,areaid:lz,index:0,id:"email",yd:"",origin:i},c),l)){let n=new MutationObserver(()=>{let r=l.dataset.newsletterState;if(!r)return;n.disconnect();let o=window.WP.pwp.registerContainer({type:"area",areaid:lW,isLogged:e,url:t,length:1});"number"==typeof o&&window.WP.pwp.registerBox(l,{type:"button",url:t,areaid:lW,index:0,id:"new"===r?"newsletter_new":"newsletter_subscribed",origin:i},o)});n.observe(l,{attributes:!0,attributeFilter:["data-newsletter-state"]})}}(t,n),function(e,t){let n=document.getElementById("preferred-source-banner");if(!n)return;let r=window.WP.pwp.registerContainer({type:"area",areaid:"preferred_source",length:1,isLogged:e,url:t});if("number"!=typeof r)return;let i={type:"button",url:t,index:0,areaid:"preferred_source",target_url:n.href,id:"preferred_source_banner",yd:""};window.WP.pwp.registerBox(n,i,r,{time:1,percent:50})}(t,n),function(e,t){let n=document.getElementById("entertainment-banner");if(!n)return;let r=window.WP.pwp.registerContainer({type:"area",areaid:lE,length:1,isLogged:e,url:t});if("number"!=typeof r)return;let i={type:"button",areaid:lE,id:"entertainment",index:0,isLogged:e,url:t,target_url:n.href,yd:""};window.WP.pwp.registerBox(n,i,r,{time:1,percent:50})}(t,n),an(7,n,".wp-video-recommendations-teaser","recommendations-video"),function(e,t,n){var r,i;let o=document.querySelectorAll(e);if(0===o.length)return;let a=null!==(i=null===(r=o[0].closest(".wp-cockroach-intext"))||void 0===r?void 0:r.getAttribute("data-cpidx"))&&void 0!==i?i:null;try{let e=function(e,t,n){if(t in window.__GOFER_FACTORY__.userActions.containers)return window.__GOFER_FACTORY__.userActions.containers[t];let r=function(e,t,n){let r=window.__INIT_CONFIG__.isLoggedIn,i=window.location.origin+window.location.pathname,o=window.WP.pwp.registerContainer({type:"area",areaid:t,length:e,isLogged:r,position:n?Number(n):void 0,url:i});return"number"!=typeof o?null:o}
85(e,t,n);return"number"==typeof r&&(window.__GOFER_FACTORY__.userActions.containers[t]=r),r}(o.length,t,a);if("number"!=typeof e)return;o.forEach((r,i)=>{var o,l;let c=(null===(o=r.querySelector("img"))||void 0===o?void 0:o.src)||"",s={type:"teaser",index:i,url:n,img:c,areaid:t,target_url:r.href,id:null!==(l=o9(r.href))&&void 0!==l?l:void 0,position:a?Number(a):void 0,yd:""};window.WP.pwp.registerBox(r,s,e,{time:1,percent:50})})}catch(e){console.error(e)}}(".wp-cockroach-intext-carousel .wpstat-teaser","list-midtext4you",n),eF(),function(e,t){let n=document.getElementById("wp-article-author-info");if(!n)return;let r=function(e){let t=[];e.querySelectorAll(".wp-article-author-link").forEach(e=>t.push({el:e,type:"textlink",id:"author_bio"}));let n=e.querySelector(".wp-article-author-email-icon");return n&&t.push({el:n,type:"button",id:"author_mailto"}),t}(n);if(!r.length)return;let i={type:"area",areaid:"author_top",isLogged:e,url:t,length:r.length},o=window.WP.pwp.registerContainer(i);"number"==typeof o&&lw(r,"author_top",0,o,t,e)}(t,n),function(e,t){let n=document.querySelector(".wp-article-author-card");if(!n)return;let r=document.getElementById("wp-author-card-expand"),i=Array.from(n.querySelectorAll(".wp-author-card-bio-link")),o=Array.from(n.querySelectorAll(".wp-author-card-mailto")),a=r?[{el:r,type:"button",id:"author_expand"}]:[],l=[...i.map(e=>({el:e,type:"button",id:"author_bio"})),...o.map(e=>({el:e,type:"button",id:"author_mailto"}))],c=[...a,...l];if(!c.length)return;let s={type:"area",areaid:"author_bottom",isLogged:e,url:t,length:c.length},u=window.WP.pwp.registerContainer(s);if("number"!=typeof u||(lw(a,"author_bottom",0,u,t,e),!l.length))return;let d=n.querySelector("#wp-author-card-toggle");if(!d)return;let p=()=>{d.checked&&(lw(l,"author_bottom",a.length,u,t,e),d.removeEventListener("change",p))};d.addEventListener("change",p)}(t,n),document.querySelectorAll("[data-clk-st-area]").forEach(e=>{let t=e.getAttribute("data-clk-st-area"),n=e.getAttribute("data-location");t&&n&&e.addEventListener("click",function(){window.WP.stat.click({statTag:`ST-${t}`,linkHref:n,linkTitle:e.textContent})})}),function(e,t){let n=document.querySelector("[data-expandable-expand]"),r=document.querySelector("[data-expandable-collapse]");if(!n||!r)return;let i=window.WP.pwp.registerContainer({type:"area",areaid:lM,isLogged:e,url:t,length:2});if("number"!=typeof i)return;let o=(e,n)=>({type:"button",url:t,areaid:lM,index:n,id:e,yd:""}),a={time:1,percent:50};window.WP.pwp.registerBox(n,o("expand",0),i,a),window.WP.pwp.registerBox(r,o("hide",1),i,a)}(t,n),function(e,t){let n=document.querySelector(".video-container");n&&lO({videoElement:n,currentUrl:t,isLogged:e,areaId:"video_player"})}(t,n),function(e,t){let n=document.querySelectorAll("[data-mainmedia-photo]");n.length&&n.forEach((r,i)=>{let o=r.querySelector("[data-link]");if(!o)return;let a={type:"area",areaid:"imagePreview",length:n.length,isLogged:e,url:t},l=window.WP.pwp.registerContainer(a);if("number"!=typeof l)return;let c={index:i,type:"button",url:t,img:o.getAttribute("data-link")||"",areaid:"imagePreview",id:"img"};window.WP.pwp.registerBox(r,c,l,{time:1,percent:50})})}(t,n),function(e,t){let n=document.getElementById("adblock-wall-container");if(!n)return;let r=window.WP.pwp.registerContainer({type:"area",areaid:ln,length:1,isLogged:e,url:t});if("number"!=typeof r)return;let i=n.querySelector("#adblock-disable-button");i&&window.WP.pwp.registerBox(i,{type:"button",areaid:ln,isLogged:e,url:t,id:"disable_adblock",index:2},r,{time:1,percent:50});let o=n.querySelector("#adblock-redirect-link");o&&window.WP.pwp.registerBox(o,{type:"textlink",areaid:ln,isLogged:e,url:t,id:"skip_and_enable",index:2},r,{time:1,percent:50})}(t,n),function(e,t){let n=document.getElementById("adblock-wall-container");if(!n)return;let r=n.querySelector("#adblock-pay-or-ok-link");if(!r)return;r.addEventListener("click",function(){window.location.href=`/auth/v1/sso/payment/init${li}`});let i=window.WP.pwp.registerContainer({type:"area",areaid:lr,length:2,isLogged:e,url:t});if("number"!=typeof i)return;let o=n.querySelector("#adblock-disable-button");o&&window.WP.pwp.registerBox(o,{type:"button",areaid:lr,isLogged:e,url:t,id:"disable_adblock",index:0},i,{time:1,percent:50}),window.WP.pwp.registerBox(r,{type:"button",areaid:lr,isLogged:e,url:t,id:"skip_and_pay",index:1},i,{time:1,percent:50})}(t,n)})}(l$,lD,lj,lH),function(){let{body:e}=document;if("true"===e.getAttribute("data-wp-loaded")){lU();return}let t=new MutationObserver(n=>
85{n.forEach(n=>{"data-wp-loaded"===n.attributeName&&"true"===e.getAttribute("data-wp-loaded")&&(lU(),t.disconnect())})});t.observe(e,{attributes:!0,attributeFilter:["data-wp-loaded"]})}(),l$&&lB){let e=()=>ej.some(e=>{var t;return null===(t=document.getElementById(e))||void 0===t?void 0:t.classList.contains("active")}),t=document.getElementById("menu-toggle-button"),n=function(e){let{isLogged:t=!1,topOffset:n=0,bottomOffset:r=0,isScroll:i=!1,scrollThreshold:o=1e3,teasersAmount:a=6,withNativeSlots:l=[],container:c,inactivityTimeout:s}=e,u=!1,d=!1,p=null,_=()=>{if(u)return;u=!0;let i=c??document.getElementById("bottom-sticky-container");i&&z(M(eS,{isLogged:t,topOffset:n,bottomOffset:r,teasersAmount:a,withNativeSlots:l,getBottomOffset:e.getBottomOffset}),i)},h=()=>{s&&d&&!u&&(p&&clearTimeout(p),p=setTimeout(()=>{if(e.canTrigger&&!e.canTrigger()){h();return}_()},s))},f=()=>{let e=window.scrollY;!d&&e>=o&&(d=!0),d&&h()},m=!1;return new URLSearchParams(window.location.search).get("force-exit-disco")&&(window.WP.push(()=>{window.WP.stat.wave("evt_start_close_watcher",{state:"back_button",event:"click",area:"close_watcher"})}),_()),i&&window.addEventListener("scroll",()=>{m||(window.requestAnimationFrame(()=>{f(),m=!1}),m=!0)}),{resetInactivityTimer:h}}({isLogged:lD,topOffset:116,bottomOffset:0,isScroll:!0,scrollThreshold:1,inactivityTimeout:7e3,withNativeSlots:[827],container:document.getElementById("exit-disco-container"),canTrigger:()=>{var n,r,i;return!((null==t?void 0:t.checked)||e())&&!(null===(i=window.WP)||void 0===i?void 0:null===(r=i.player)||void 0===r?void 0:null===(n=r.list)||void 0===n?void 0:n.some(e=>{var t,n;return(null==e?void 0:null===(t=e.isPlaying)||void 0===t?void 0:t.call(e))||(null==e?void 0:null===(n=e.isAdvPlaying)||void 0===n?void 0:n.call(e))}))},getBottomOffset:()=>{var e,t;if(null===(e=document.getElementById("bottom-sticky-container"))||void 0===e?void 0:e.hasAttribute("data-hidden"))return 0;let n=document.querySelector(".wp-bottombar-container");return null!==(t=null==n?void 0:n.offsetHeight)&&void 0!==t?t:0}});t&&t.addEventListener("change",()=>{t.checked||n.resetInactivityTimer()}
85),ej.forEach(e=>{let t=document.getElementById(e);if(!t)return;let r=t.classList.contains("active");new MutationObserver(()=>{let e=t.classList.contains("active");r&&!e&&n.resetInactivityTimer(),r=e}).observe(t,{attributes:!0,attributeFilter:["class"]})})}function lU(){let e=window.__INIT_CONFIG__.scriptSrc;if(!e)return;let t=document.createElement("script");t.crossOrigin="anonymous",t.src=e,t.defer=!0,document.body.appendChild(t)}})();
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.