var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=function(e){return e&&e.Math==Math&&e},n=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||function(){return this}()||Function("return this")(),r={},o=function(e){try{return!!e()}catch(e){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a=Function.prototype.call,s=a.bind?a.bind(a):function(){return a.apply(a,arguments)},l={},c={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,d=u&&!c.call({1:2},1);l.f=d?function(e){var t=u(this,e);return!!t&&t.enumerable}:c;var f,p,h=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},g=Function.prototype,v=g.bind,y=g.call,m=v&&v.bind(y),_=v?function(e){return e&&m(y,e)}:function(e){return e&&function(){return y.apply(e,arguments)}},w=_,b=w({}.toString),E=w("".slice),x=function(e){return E(b(e),8,-1)},O=_,L=o,A=x,S=n.Object,T=O("".split),I=L((function(){return!S("z").propertyIsEnumerable(0)}))?function(e){return"String"==A(e)?T(e,""):S(e)}:S,P=n.TypeError,R=function(e){if(null==e)throw P("Can't call method on "+e);return e},k=I,C=R,U=function(e){return k(C(e))},N=function(e){return"function"==typeof e},$=N,j=function(e){return"object"==typeof e?null!==e:$(e)},B=n,M=N,D=function(e){return M(e)?e:void 0},F=function(e,t){return arguments.length<2?D(B[e]):B[e]&&B[e][t]},z=_({}.isPrototypeOf),W=F("navigator","userAgent")||"",G=n,V=W,Y=G.process,q=G.Deno,H=Y&&Y.versions||q&&q.version,K=H&&H.v8;K&&(p=(f=K.split("."))[0]>0&&f[0]<4?1:+(f[0]+f[1])),!p&&V&&(!(f=V.match(/Edge\/(\d+)/))||f[1]>=74)&&(f=V.match(/Chrome\/(\d+)/))&&(p=+f[1]);var X=p,Z=X,J=o,Q=!!Object.getOwnPropertySymbols&&!J((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Z&&Z<41})),ee=Q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,te=F,ne=N,re=z,oe=ee,ie=n.Object,ae=oe?function(e){return"symbol"==typeof e}:function(e){var t=te("Symbol");return ne(t)&&re(t.prototype,ie(e))},se=n.String,le=function(e){try{return se(e)}catch(e){return"Object"}},ce=N,ue=le,de=n.TypeError,fe=function(e){if(ce(e))return e;throw de(ue(e)+" is not a function")},pe=fe,he=function(e,t){var n=e[t];return null==n?void 0:pe(n)},ge=s,ve=N,ye=j,me=n.TypeError,_e={exports:{}},we=n,be=Object.defineProperty,Ee=function(e,t){try{be(we,e,{value:t,configurable:!0,writable:!0})}catch(n){we[e]=t}return t},xe=Ee,Oe=n["__core-js_shared__"]||xe("__core-js_shared__",{}),Le=Oe;(_e.exports=function(e,t){return Le[e]||(Le[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var Ae=R,Se=n.Object,Te=function(e){return Se(Ae(e))},Ie=Te,Pe=_({}.hasOwnProperty),Re=Object.hasOwn||function(e,t){return Pe(Ie(e),t)},ke=_,Ce=0,Ue=Math.random(),Ne=ke(1..toString),$e=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ne(++Ce+Ue,36)},je=n,Be=_e.exports,Me=Re,De=$e,Fe=Q,ze=ee,We=Be("wks"),Ge=je.Symbol,Ve=Ge&&Ge.for,Ye=ze?Ge:Ge&&Ge.withoutSetter||De,qe=function(e){if(!Me(We,e)||!Fe&&"string"!=typeof We[e]){var t="Symbol."+e;Fe&&Me(Ge,e)?We[e]=Ge[e]:We[e]=ze&&Ve?Ve(t):Ye(t)}return We[e]},He=s,Ke=j,Xe=ae,Ze=he,Je=function(e,t){var n,r;if("string"===t&&ve(n=e.toString)&&!ye(r=ge(n,e)))return r;if(ve(n=e.valueOf)&&!ye(r=ge(n,e)))return r;if("string"!==t&&ve(n=e.toString)&&!ye(r=ge(n,e)))return r;throw me("Can't convert object to primitive value")},Qe=qe,et=n.TypeError,tt=Qe("toPrimitive"),nt=function(e,t){if(!Ke(e)||Xe(e))return e;var n,r=Ze(e,tt);if(r){if(void 0===t&&(t="default"),n=He(r,e,t),!Ke(n)||Xe(n))return n;throw et("Can't convert object to primitive value")}return void 0===t&&(t="number"),Je(e,t)},rt=ae,ot=function(e){var t=nt(e,"string");return rt(t)?t:t+""},it=j,at=n.document,st=it(at)&&it(at.createElement),lt=function(e){return st?at.createElement(e):{}},ct=lt,ut=!i&&!o((function(){return 7!=Object.defineProperty(ct("div"),"a",{get:function(){return 7}}).a})),dt=i,ft=s,pt=l,ht=h,gt=U,vt=ot,yt=Re,mt=ut,_t=Object.getOwnPropertyDescriptor;r.f=dt?_t:function(e,t){if(e=gt(e),t=vt(t),mt)try{return _t(e,t)}catch(e){}if(yt(e,t))return ht(!ft(pt.f,e,t),e[t])};var wt={},bt=n,Et=j,xt=bt.String,Ot=bt.TypeError,Lt=function(e){if(Et(e))return e;throw Ot(xt(e)+" is not an object")},At=i,St=ut,Tt=Lt,It=ot,Pt=n.TypeError,Rt=Object.defineProperty;wt.f=At?Rt:function(e,t,n){if(Tt(e),t=It(t),Tt(n),St)try{return Rt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Pt("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var kt=wt,Ct=h,Ut=i?function(e,t,n){return kt.f(e,t,Ct(1,n))}:function(e,t,n){return e[t]=n,e},Nt={exports:{}},$t=N,jt=Oe,Bt=_(Function.toString);$t(jt.inspectSource)||(jt.inspectSource=function(e){return Bt(e)});var Mt,Dt,Ft,zt=jt.inspectSource,Wt=N,Gt=zt,Vt=n.WeakMap,Yt=Wt(Vt)&&/native code/.test(Gt(Vt)),qt=_e.exports,Ht=$e,Kt=qt("keys"),Xt=function(e){return Kt[e]||(Kt[e]=Ht(e))},Zt={},Jt=Yt,Qt=n,en=_,tn=j,nn=Ut,rn=Re,on=Oe,an=Xt,sn=Zt,ln=Qt.TypeError,cn=Qt.WeakMap;if(Jt||on.state){var un=on.state||(on.state=new cn),dn=en(un.get),fn=en(un.has),pn=en(un.set);Mt=function(e,t){if(fn(un,e))throw new ln("Object already initialized");return t.facade=e,pn(un,e,t),t},Dt=function(e){return dn(un,e)||{}},Ft=function(e){return fn(un,e)}}else{var hn=an("state");sn[hn]=!0,Mt=function(e,t){if(rn(e,hn))throw new ln("Object already initialized");return t.facade=e,nn(e,hn,t),t},Dt=function(e){return rn(e,hn)?e[hn]:{}},Ft=function(e){return rn(e,hn)}}var gn={set:Mt,get:Dt,has:Ft,enforce:function(e){return Ft(e)?Dt(e):Mt(e,{})},getterFor:function(e){return function(t){var n;if(!tn(t)||(n=Dt(t)).type!==e)throw ln("Incompatible receiver, "+e+" required");return n}}},vn=i,yn=Re,mn=Function.prototype,_n=vn&&Object.getOwnPropertyDescriptor,wn=yn(mn,"name"),bn={EXISTS:wn,PROPER:wn&&"something"===function(){}.name,CONFIGURABLE:wn&&(!vn||vn&&_n(mn,"name").configurable)},En=n,xn=N,On=Re,Ln=Ut,An=Ee,Sn=zt,Tn=bn.CONFIGURABLE,In=gn.get,Pn=gn.enforce,Rn=String(String).split("String");(Nt.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,s=!!r&&!!r.noTargetGet,l=r&&void 0!==r.name?r.name:t;xn(n)&&("Symbol("===String(l).slice(0,7)&&(l="["+String(l).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!On(n,"name")||Tn&&n.name!==l)&&Ln(n,"name",l),(o=Pn(n)).source||(o.source=Rn.join("string"==typeof l?l:""))),e!==En?(i?!s&&e[t]&&(a=!0):delete e[t],a?e[t]=n:Ln(e,t,n)):a?e[t]=n:An(t,n)})(Function.prototype,"toString",(function(){return xn(this)&&In(this).source||Sn(this)}));var kn={},Cn=Math.ceil,Un=Math.floor,Nn=function(e){var t=+e;return t!=t||0===t?0:(t>0?Un:Cn)(t)},$n=Nn,jn=Math.max,Bn=Math.min,Mn=function(e,t){var n=$n(e);return n<0?jn(n+t,0):Bn(n,t)},Dn=Nn,Fn=Math.min,zn=function(e){return e>0?Fn(Dn(e),9007199254740991):0},Wn=zn,Gn=function(e){return Wn(e.length)},Vn=U,Yn=Mn,qn=Gn,Hn=function(e){return function(t,n,r){var o,i=Vn(t),a=qn(i),s=Yn(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},Kn={includes:Hn(!0),indexOf:Hn(!1)},Xn=Re,Zn=U,Jn=Kn.indexOf,Qn=Zt,er=_([].push),tr=function(e,t){var n,r=Zn(e),o=0,i=[];for(n in r)!Xn(Qn,n)&&Xn(r,n)&&er(i,n);for(;t.length>o;)Xn(r,n=t[o++])&&(~Jn(i,n)||er(i,n));return i},nr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],rr=tr,or=nr.concat("length","prototype");kn.f=Object.getOwnPropertyNames||function(e){return rr(e,or)};var ir={};ir.f=Object.getOwnPropertySymbols;var ar,sr=F,lr=kn,cr=ir,ur=Lt,dr=_([].concat),fr=sr("Reflect","ownKeys")||function(e){var t=lr.f(ur(e)),n=cr.f;return n?dr(t,n(e)):t},pr=Re,hr=fr,gr=r,vr=wt,yr=o,mr=N,_r=/#|\.prototype\./,wr=function(e,t){var n=Er[br(e)];return n==Or||n!=xr&&(mr(t)?yr(t):!!t)},br=wr.normalize=function(e){return String(e).replace(_r,".").toLowerCase()},Er=wr.data={},xr=wr.NATIVE="N",Or=wr.POLYFILL="P",Lr=wr,Ar=n,Sr=r.f,Tr=Ut,Ir=Nt.exports,Pr=Ee,Rr=function(e,t){for(var n=hr(t),r=vr.f,o=gr.f,i=0;i<n.length;i++){var a=n[i];pr(e,a)||r(e,a,o(t,a))}},kr=Lr,Cr=function(e,t){var n,r,o,i,a,s=e.target,l=e.global,c=e.stat;if(n=l?Ar:c?Ar[s]||Pr(s,{}):(Ar[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Sr(n,r))&&a.value:n[r],!kr(l?r:s+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Rr(i,o)}(e.sham||o&&o.sham)&&Tr(i,"sham",!0),Ir(n,r,i,e)}},Ur=Te,Nr=Mn,$r=Gn,jr=function(e){for(var t=Ur(this),n=$r(t),r=arguments.length,o=Nr(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:Nr(i,n);a>o;)t[o++]=e;return t},Br=tr,Mr=nr,Dr=Object.keys||function(e){return Br(e,Mr)},Fr=wt,zr=Lt,Wr=U,Gr=Dr,Vr=i?Object.defineProperties:function(e,t){zr(e);for(var n,r=Wr(t),o=Gr(t),i=o.length,a=0;i>a;)Fr.f(e,n=o[a++],r[n]);return e},Yr=F("document","documentElement"),qr=Lt,Hr=Vr,Kr=nr,Xr=Zt,Zr=Yr,Jr=lt,Qr=Xt("IE_PROTO"),eo=function(){},to=function(e){return"<script>"+e+"<\/script>"},no=function(e){e.write(to("")),e.close();var t=e.parentWindow.Object;return e=null,t},ro=function(){try{ar=new ActiveXObject("htmlfile")}catch(e){}var e,t;ro="undefined"!=typeof document?document.domain&&ar?no(ar):((t=Jr("iframe")).style.display="none",Zr.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(to("document.F=Object")),e.close(),e.F):no(ar);for(var n=Kr.length;n--;)delete ro.prototype[Kr[n]];return ro()};Xr[Qr]=!0;var oo=Object.create||function(e,t){var n;return null!==e?(eo.prototype=qr(e),n=new eo,eo.prototype=null,n[Qr]=e):n=ro(),void 0===t?n:Hr(n,t)},io=oo,ao=wt,so=qe("unscopables"),lo=Array.prototype;null==lo[so]&&ao.f(lo,so,{configurable:!0,value:io(null)});var co=function(e){lo[so][e]=!0},uo=co;Cr({target:"Array",proto:!0},{fill:jr}),uo("fill");var fo=n,po=_;(function(e,t){po(fo[e].prototype[t])})("Array","fill"),function(){if("undefined"!=typeof window)try{var e=new window.CustomEvent("test",{cancelable:!0});if(e.preventDefault(),!0!==e.defaultPrevented)throw new Error("Could not prevent default")}catch(e){var t=function(e,t){var n,r;return(t=t||{}).bubbles=!!t.bubbles,t.cancelable=!!t.cancelable,(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),r=n.preventDefault,n.preventDefault=function(){r.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},n};t.prototype=window.Event.prototype,window.CustomEvent=t}}(),self.fetch||(self.fetch=function(e,t){return t=t||{},new Promise((function(n,r){var o=new XMLHttpRequest,i=[],a=[],s={},l=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:l,headers:{keys:function(){return i},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var c in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){i.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n})),n(l())},o.onerror=r,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(c,t.headers[c]);o.send(t.body||null)}))}),function(e){function t(){}function n(e,t){if(e=void 0===e?"utf-8":e,t=void 0===t?{fatal:!1}:t,-1===o.indexOf(e.toLowerCase()))throw new RangeError("Failed to construct 'TextDecoder': The encoding label provided ('"+e+"') is invalid.");if(t.fatal)throw Error("Failed to construct 'TextDecoder': the 'fatal' option is unsupported.")}function r(e){for(var t=0,n=Math.min(65536,e.length+1),r=new Uint16Array(n),o=[],i=0;;){var a=t<e.length;if(!a||i>=n-1){if(o.push(String.fromCharCode.apply(null,r.subarray(0,i))),!a)return o.join("");e=e.subarray(t),i=t=0}if(0==(128&(a=e[t++])))r[i++]=a;else if(192==(224&a)){var s=63&e[t++];r[i++]=(31&a)<<6|s}else if(224==(240&a)){s=63&e[t++];var l=63&e[t++];r[i++]=(31&a)<<12|s<<6|l}else if(240==(248&a)){65535<(a=(7&a)<<18|(s=63&e[t++])<<12|(l=63&e[t++])<<6|63&e[t++])&&(a-=65536,r[i++]=a>>>10&1023|55296,a=56320|1023&a),r[i++]=a}}}if(e.TextEncoder&&e.TextDecoder)return!1;var o=["utf-8","utf8","unicode-1-1-utf-8"];Object.defineProperty(t.prototype,"encoding",{value:"utf-8"}),t.prototype.encode=function(e,t){if((t=void 0===t?{stream:!1}:t).stream)throw Error("Failed to encode: the 'stream' option is unsupported.");t=0;for(var n=e.length,r=0,o=Math.max(32,n+(n>>>1)+7),i=new Uint8Array(o>>>3<<3);t<n;){var a=e.charCodeAt(t++);if(55296<=a&&56319>=a){if(t<n){var s=e.charCodeAt(t);56320==(64512&s)&&(++t,a=((1023&a)<<10)+(1023&s)+65536)}if(55296<=a&&56319>=a)continue}if(r+4>i.length&&(o+=8,o=(o*=1+t/e.length*2)>>>3<<3,(s=new Uint8Array(o)).set(i),i=s),0==(4294967168&a))i[r++]=a;else{if(0==(4294965248&a))i[r++]=a>>>6&31|192;else if(0==(4294901760&a))i[r++]=a>>>12&15|224,i[r++]=a>>>6&63|128;else{if(0!=(4292870144&a))continue;i[r++]=a>>>18&7|240,i[r++]=a>>>12&63|128,i[r++]=a>>>6&63|128}i[r++]=63&a|128}}return i.slice?i.slice(0,r):i.subarray(0,r)},Object.defineProperty(n.prototype,"encoding",{value:"utf-8"}),Object.defineProperty(n.prototype,"fatal",{value:!1}),Object.defineProperty(n.prototype,"ignoreBOM",{value:!1});var i=r;"function"==typeof Buffer&&Buffer.from?i=function(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf-8")}:"function"==typeof Blob&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&(i=function(e){var t=URL.createObjectURL(new Blob([e],{type:"text/plain;charset=UTF-8"}));try{var n=new XMLHttpRequest;return n.open("GET",t,!1),n.send(),n.responseText}catch(t){return r(e)}finally{URL.revokeObjectURL(t)}}),n.prototype.decode=function(e,t){if((t=void 0===t?{stream:!1}:t).stream)throw Error("Failed to decode: the 'stream' option is unsupported.");return e=e instanceof Uint8Array?e:e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer):new Uint8Array(e),i(e)},e.TextEncoder=t,e.TextDecoder=n}("undefined"!=typeof window?window:e),function(e){var t,n=function(){try{if(e.URLSearchParams&&"bar"===new e.URLSearchParams("foo=bar").get("foo"))return e.URLSearchParams}catch(e){}return null}(),r=n&&"a=1"===new n({a:1}).toString(),o=n&&"+"===new n("s=%2B").get("s"),i=!n||((t=new n).append("s"," &"),"s=+%26"===t.toString()),a=u.prototype,s=!(!e.Symbol||!e.Symbol.iterator);if(!(n&&r&&o&&i)){var l;a.append=function(e,t){g(this.__URLSearchParams__,e,t)},a.delete=function(e){delete this.__URLSearchParams__[e]},a.get=function(e){var t=this.__URLSearchParams__;return this.has(e)?t[e][0]:null},a.getAll=function(e){var t=this.__URLSearchParams__;return this.has(e)?t[e].slice(0):[]},a.has=function(e){return y(this.__URLSearchParams__,e)},a.set=function(e,t){this.__URLSearchParams__[e]=[""+t]},a.toString=function(){var e,t,n,r,o=this.__URLSearchParams__,i=[];for(t in o)for(n=d(t),e=0,r=o[t];e<r.length;e++)i.push(n+"="+d(r[e]));return i.join("&")},!!o&&n&&!r&&e.Proxy?(l=new Proxy(n,{construct:function(e,t){return new e(new u(t[0]).toString())}})).toString=Function.prototype.toString.bind(u):l=u,Object.defineProperty(e,"URLSearchParams",{value:l});var c=e.URLSearchParams.prototype;c.polyfill=!0,c.forEach=c.forEach||function(e,t){var n=h(this.toString());Object.getOwnPropertyNames(n).forEach((function(r){n[r].forEach((function(n){e.call(t,n,r,this)}),this)}),this)},c.sort=c.sort||function(){var e,t,n,r=h(this.toString()),o=[];for(e in r)o.push(e);for(o.sort(),t=0;t<o.length;t++)this.delete(o[t]);for(t=0;t<o.length;t++){var i=o[t],a=r[i];for(n=0;n<a.length;n++)this.append(i,a[n])}},c.keys=c.keys||function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},c.values=c.values||function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},c.entries=c.entries||function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},s&&(c[e.Symbol.iterator]=c[e.Symbol.iterator]||c.entries)}function u(e){((e=e||"")instanceof URLSearchParams||e instanceof u)&&(e=e.toString()),this.__URLSearchParams__=h(e)}function d(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,(function(e){return t[e]}))}function f(e){return e.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/gi,(function(e){return decodeURIComponent(e)}))}function p(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return s&&(n[e.Symbol.iterator]=function(){return n}),n}function h(e){var t={};if("object"==typeof e)if(v(e))for(var n=0;n<e.length;n++){var r=e[n];if(!v(r)||2!==r.length)throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");g(t,r[0],r[1])}else for(var o in e)e.hasOwnProperty(o)&&g(t,o,e[o]);else{0===e.indexOf("?")&&(e=e.slice(1));for(var i=e.split("&"),a=0;a<i.length;a++){var s=i[a],l=s.indexOf("=");-1<l?g(t,f(s.slice(0,l)),f(s.slice(l+1))):s&&g(t,f(s),"")}}return t}function g(e,t,n){var r="string"==typeof n?n:null!=n&&"function"==typeof n.toString?n.toString():JSON.stringify(n);y(e,t)?e[t].push(r):e[t]=[r]}function v(e){return!!e&&"[object Array]"===Object.prototype.toString.call(e)}function y(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(void 0!==e?e:"undefined"!=typeof window?window:e),function(){function e(){null!==this.parentNode&&this.parentNode.removeChild(this)}[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:e})}))}();var ho=Object.prototype,go=ho.hasOwnProperty,vo="function"==typeof Symbol?Symbol:{},yo=vo.iterator||"@@iterator",mo=vo.asyncIterator||"@@asyncIterator",_o=vo.toStringTag||"@@toStringTag";function wo(){}function bo(){}var Eo={};Eo[yo]=function(){return this};var xo=Object.getPrototypeOf,Oo=xo&&xo(xo(function(e){if(e){var t=e[yo];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(go.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=undefined,t.done=!0,t};return r.next=r}}return{next:To}}([])));Oo&&Oo!==ho&&go.call(Oo,yo)&&(Eo=Oo);var Lo=bo.prototype=Object.create(Eo);function Ao(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function So(e,t){function n(r,o,i,a){var s=function(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}(e[r],e,o);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"==typeof c&&go.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,a)}),(function(e){n("throw",e,i,a)})):t.resolve(c).then((function(e){l.value=e,i(l)}),(function(e){return n("throw",e,i,a)}))}a(s.arg)}var r;this._invoke=function(e,o){function i(){return new t((function(t,r){n(e,o,t,r)}))}return r=r?r.then(i,i):i()}}function To(){return{value:undefined,done:!0}}wo.prototype=Lo.constructor=bo,bo.constructor=wo,bo[_o]=wo.displayName="GeneratorFunction",Ao(So.prototype),So.prototype[mo]=function(){return this},Ao(Lo),Lo[_o]="Generator",Lo[yo]=function(){return this},Lo.toString=function(){return"[object Generator]"};var Io,Po={exports:{}};Io=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var l in i)i[l]&&(s+="; "+l,!0!==i[l]&&(s+="="+i[l].split(";")[0]));return document.cookie=t+"="+n+s}}function a(e,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],a=0;a<i.length;a++){var s=i[a].split("="),l=s.slice(1).join("=");n||'"'!==l.charAt(0)||(l=l.slice(1,-1));try{var c=t(s[0]);if(l=(r.read||r)(l,c)||t(l),n)try{l=JSON.parse(l)}catch(e){}if(o[c]=l,e===c)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return a(e,!1)},o.getJSON=function(e){return a(e,!0)},o.remove=function(t,n){i(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))},Po.exports=Io();var Ro=Po.exports;const ko={error:{priority:3,method:function(){return console.error(...arguments)}},warn:{priority:2,method:function(){return console.warn(...arguments)}},info:{priority:1,method:function(){return console.info(...arguments)}},debug:{priority:0,method:function(){return console.debug(...arguments)}}},Co=["%c 1L Widget ","background: #2019f5; color: #fff"];const Uo=new class{constructor(){var e=this;this.level=(()=>{const e=Ro.get("olw_loglvl");return e&&e in ko?e:"info"})(),this.setLevel=e=>{if(!e||!(e in ko))return this.error("Incorrect log level.");this.level=e,Ro.set("olw_loglvl",e),this.info(`Log level changed to "${e}".`)},this.log=function(t){if(ko[t].priority>=ko[e.level].priority){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return ko[t].method(...Co,`[${t.toUpperCase()}] `,...r)}},this.error=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.log("error",...n)},this.warn=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.log("warn",...n)},this.info=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.log("info",...n)},this.debug=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.log("debug",...n)}}},No=(e,t)=>{var n;null==(n=window.WP)||n.push((()=>{var n;null==(n=window.WP)||n.stat.wave("onelogin",{mode:e,event:t})}))};let $o;const jo={clear:e=>{Ro.remove(e,{domain:$o,secure:!0,sameSite:"none"})},load:e=>Ro.get(e),save:(e,t)=>{Ro.set(e,t,{domain:$o,secure:!0,sameSite:"none"})}},Bo={clear:e=>localStorage.removeItem(e),load:e=>localStorage.getItem(e),save:(e,t)=>{localStorage.setItem(e,t)}},Mo={COOKIE:jo,LOCAL_STORAGE:Bo},Do=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.map(((e,t)=>`${e}${n[t]||""}`)).join("")};function Fo(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var zo="styles-module_Button__az16X",Wo="styles-module_Icon__gXZYb";Fo(".styles-module_Button__az16X{align-items:center;background-color:#2019f5;border:none;border-radius:4px;color:#fff;cursor:pointer;display:flex;font-size:14px;justify-content:center;max-width:270px;outline:none;padding:10px 12px 10px 30px;position:relative;width:100%}.styles-module_Button__az16X span{position:relative}.styles-module_Button__az16X:hover{background-color:#333cf6}.styles-module_Icon__gXZYb{left:12px;position:absolute;top:50%;transform:translateY(-50%)}");var Go={};Go[qe("toStringTag")]="z";var Vo,Yo,qo=n,Ho="[object z]"===String(Go),Ko=N,Xo=x,Zo=qe("toStringTag"),Jo=qo.Object,Qo="Arguments"==Xo(function(){return arguments}()),ei=Ho?Xo:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Jo(e),Zo))?n:Qo?Xo(t):"Object"==(r=Xo(t))&&Ko(t.callee)?"Arguments":r},ti=ei,ni=n.String,ri=function(e){if("Symbol"===ti(e))throw TypeError("Cannot convert a Symbol value to a string");return ni(e)},oi=Lt,ii=o,ai=n.RegExp,si=ii((function(){var e=ai("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),li=si||ii((function(){return!ai("a","y").sticky})),ci={BROKEN_CARET:si||ii((function(){var e=ai("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:li,UNSUPPORTED_Y:si},ui=o,di=n.RegExp,fi=ui((function(){var e=di(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),pi=o,hi=n.RegExp,gi=pi((function(){var e=hi("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),vi=s,yi=_,mi=ri,_i=function(){var e=oi(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},wi=ci,bi=_e.exports,Ei=oo,xi=gn.get,Oi=fi,Li=gi,Ai=bi("native-string-replace",String.prototype.replace),Si=RegExp.prototype.exec,Ti=Si,Ii=yi("".charAt),Pi=yi("".indexOf),Ri=yi("".replace),ki=yi("".slice),Ci=(Yo=/b*/g,vi(Si,Vo=/a/,"a"),vi(Si,Yo,"a"),0!==Vo.lastIndex||0!==Yo.lastIndex),Ui=wi.BROKEN_CARET,Ni=void 0!==/()??/.exec("")[1];(Ci||Ni||Ui||Oi||Li)&&(Ti=function(e){var t,n,r,o,i,a,s,l=this,c=xi(l),u=mi(e),d=c.raw;if(d)return d.lastIndex=l.lastIndex,t=vi(Ti,d,u),l.lastIndex=d.lastIndex,t;var f=c.groups,p=Ui&&l.sticky,h=vi(_i,l),g=l.source,v=0,y=u;if(p&&(h=Ri(h,"y",""),-1===Pi(h,"g")&&(h+="g"),y=ki(u,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==Ii(u,l.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Ni&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Ci&&(r=l.lastIndex),o=vi(Si,p?n:l,y),p?o?(o.input=ki(o.input,v),o[0]=ki(o[0],v),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:Ci&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),Ni&&o&&o.length>1&&vi(Ai,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&f)for(o.groups=a=Ei(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var $i=Ti;Cr({target:"RegExp",proto:!0,forced:/./.exec!==$i},{exec:$i});var ji=Function.prototype,Bi=ji.apply,Mi=ji.bind,Di=ji.call,Fi="object"==typeof Reflect&&Reflect.apply||(Mi?Di.bind(Bi):function(){return Di.apply(Bi,arguments)}),zi=_,Wi=Nt.exports,Gi=$i,Vi=o,Yi=qe,qi=Ut,Hi=Yi("species"),Ki=RegExp.prototype,Xi=_,Zi=Nn,Ji=ri,Qi=R,ea=Xi("".charAt),ta=Xi("".charCodeAt),na=Xi("".slice),ra=function(e){return function(t,n){var r,o,i=Ji(Qi(t)),a=Zi(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=ta(i,a))<55296||r>56319||a+1===s||(o=ta(i,a+1))<56320||o>57343?e?ea(i,a):r:e?na(i,a,a+2):o-56320+(r-55296<<10)+65536}},oa={codeAt:ra(!1),charAt:ra(!0)}.charAt,ia=_,aa=Te,sa=Math.floor,la=ia("".charAt),ca=ia("".replace),ua=ia("".slice),da=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,fa=/\$([$&'`]|\d{1,2})/g,pa=s,ha=Lt,ga=N,va=x,ya=$i,ma=n.TypeError,_a=Fi,wa=s,ba=_,Ea=function(e,t,n,r){var o=Yi(e),i=!Vi((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Vi((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Hi]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var s=zi(/./[o]),l=t(o,""[e],(function(e,t,n,r,o){var a=zi(e),l=t.exec;return l===Gi||l===Ki.exec?i&&!o?{done:!0,value:s(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Wi(String.prototype,e,l[0]),Wi(Ki,o,l[1])}r&&qi(Ki[o],"sham",!0)},xa=o,Oa=Lt,La=N,Aa=Nn,Sa=zn,Ta=ri,Ia=R,Pa=function(e,t,n){return t+(n?oa(e,t).length:1)},Ra=he,ka=function(e,t,n,r,o,i){var a=n+e.length,s=r.length,l=fa;return void 0!==o&&(o=aa(o),l=da),ca(i,l,(function(i,l){var c;switch(la(l,0)){case"$":return"$";case"&":return e;case"`":return ua(t,0,n);case"'":return ua(t,a);case"<":c=o[ua(l,1,-1)];break;default:var u=+l;if(0===u)return i;if(u>s){var d=sa(u/10);return 0===d?i:d<=s?void 0===r[d-1]?la(l,1):r[d-1]+la(l,1):i}c=r[u-1]}return void 0===c?"":c}))},Ca=function(e,t){var n=e.exec;if(ga(n)){var r=pa(n,e,t);return null!==r&&ha(r),r}if("RegExp"===va(e))return pa(ya,e,t);throw ma("RegExp#exec called on incompatible receiver")},Ua=qe("replace"),Na=Math.max,$a=Math.min,ja=ba([].concat),Ba=ba([].push),Ma=ba("".indexOf),Da=ba("".slice),Fa="$0"==="a".replace(/./,"$0"),za=!!/./[Ua]&&""===/./[Ua]("a","$0");Ea("replace",(function(e,t,n){var r=za?"$":"$0";return[function(e,n){var r=Ia(this),o=null==e?void 0:Ra(e,Ua);return o?wa(o,e,r,n):wa(t,Ta(r),e,n)},function(e,o){var i=Oa(this),a=Ta(e);if("string"==typeof o&&-1===Ma(o,r)&&-1===Ma(o,"$<")){var s=n(t,i,a,o);if(s.done)return s.value}var l=La(o);l||(o=Ta(o));var c=i.global;if(c){var u=i.unicode;i.lastIndex=0}for(var d=[];;){var f=Ca(i,a);if(null===f)break;if(Ba(d,f),!c)break;""===Ta(f[0])&&(i.lastIndex=Pa(a,Sa(i.lastIndex),u))}for(var p,h="",g=0,v=0;v<d.length;v++){for(var y=Ta((f=d[v])[0]),m=Na($a(Aa(f.index),a.length),0),_=[],w=1;w<f.length;w++)Ba(_,void 0===(p=f[w])?p:String(p));var b=f.groups;if(l){var E=ja([y],_,m,a);void 0!==b&&Ba(E,b);var x=Ta(_a(o,void 0,E))}else x=ka(y,a,m,_,b,o);m>=g&&(h+=Da(a,g,m)+x,g=m+y.length)}return h+Da(a,g)}]}),!!xa((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Fa||za);var Wa="styles-module_Text__v-LsD",Ga="styles-module_Overlay__jS43v",Va="styles-module_Bold__R5yyc",Ya="styles-module_Button__miUzP",qa="styles-module_TextWrapper__XPzoa";Fo(".styles-module_Text__v-LsD{display:block;max-width:95px}.styles-module_Text__v-LsD.styles-module_Overlay__jS43v{left:50%;position:absolute;transform:translateX(-50%)}.styles-module_Text__v-LsD.styles-module_Bold__R5yyc{font-weight:600;visibility:hidden}.styles-module_Button__miUzP{align-items:center;background:none;border:0;cursor:pointer;display:flex;flex-direction:column;font-size:12px;font-weight:500;justify-content:center;outline:0;text-transform:uppercase}.styles-module_Button__miUzP>*{position:relative}.styles-module_Button__miUzP:hover .styles-module_Overlay__jS43v{visibility:hidden}.styles-module_Button__miUzP:hover .styles-module_Bold__R5yyc{visibility:visible}.styles-module_Button__miUzP .styles-module_TextWrapper__XPzoa{margin-top:8px}@media (max-width:768px){.styles-module_Button__miUzP .styles-module_TextWrapper__XPzoa{display:none}}");const Ha=function(e,t,n,r){void 0===r&&(r=!0);const o=t.length<=10?t:t.slice(0,10).replace(/...$/,"...");return Do`<button type="button" id="${e}" class="olw__button${r?"":"--login"} ${Ya}">${n}<div class="olw__button__text ${qa}"><span class="olw__button__text--overlay ${Wa} ${Ga}">${o}</span> <span class="olw__button__text--bold ${Wa} ${Va}">${o}</span></div></button>`};var Ka="styles-module_Wrapper__JaPUP",Xa="styles-module_Link__qvYeB",Za="styles-module_Icon__4XaEP";Fo(".styles-module_Wrapper__JaPUP{border-top:1px solid rgba(0,0,0,.1);display:flex;flex-direction:column;padding:0 20px 16px}.styles-module_Link__qvYeB{align-items:center;color:#1a1a1a;cursor:pointer;display:flex;font-size:14px;margin-top:16px}.styles-module_Link__qvYeB:hover{text-decoration:underline}.styles-module_Icon__4XaEP{align-items:center;display:flex;justify-content:center;margin-right:15px;width:20px}");const Ja=()=>"true"===Ro.get("mobileApp"),Qa="https://1login.wp.pl";var es="styles-module_Wrapper__-iqeY",ts="styles-module_AvatarWrapper__BMpHS",ns="styles-module_Avatar__bYePG",rs="styles-module_OneLoginLogo__qyTj-",os="styles-module_PersonalData__sv-Bc",is="styles-module_Email__4tCwK",as="styles-module_Link__T7ZcZ",ss="styles-module_DisplayNone__VXeaF";Fo(".styles-module_Wrapper__-iqeY{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;padding:20px 20px 0;width:100%}.styles-module_AvatarWrapper__BMpHS{position:relative}.styles-module_Avatar__bYePG{border-radius:50%;height:60px;width:60px}@media (max-width:768px){.styles-module_Avatar__bYePG{height:43px;width:43px}}.styles-module_OneLoginLogo__qyTj-{bottom:0;left:-10px;position:absolute}.styles-module_PersonalData__sv-Bc{font-size:14px;font-weight:500;margin-top:10px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.styles-module_Email__4tCwK{color:#656565;font-size:12px;margin-bottom:10px}.styles-module_Link__T7ZcZ{color:#2019f5;cursor:pointer;font-size:14px;font-weight:600;margin-bottom:15px;text-decoration:none}.styles-module_Link__T7ZcZ:hover{text-decoration:underline}.styles-module_Link__T7ZcZ:last-child{margin-bottom:10px}.styles-module_DisplayNone__VXeaF{display:none}");const ls=function(e){let{size:t=30,class:n=""}=void 0===e?{}:e;return Do`<svg xmlns="http://www.w3.org/2000/svg" class="${n}" width="${t}" height="${t}" viewBox="0 0 41 40"><g fill="none" fill-rule="evenodd" transform="translate(5.24 5)"><circle cx="15" cy="15" r="17.4" fill="#E3E8FE" stroke="#E3E8FE" stroke-width="4.8"/><path fill="#2019F5" fill-rule="nonzero" d="M20.487 22.274v-1.796c0-2.115-1.687-3.38-3.309-4.615-.224-.17-.509-.493-.509-.986s.257-.974.51-1.18c1.577-1.286 3.308-2.5 3.308-4.615V7.726h1.273V6h-14v1.726h1.273v1.356c0 2.116 1.73 3.329 3.309 4.615.252.206.509.687.509 1.18 0 .493-.285.816-.51.986-1.62 1.234-3.308 2.5-3.308 4.615v1.796H7.76V24h14v-1.726h-1.273zm-8.941-11.59c-.47-.513-.731-1.009-.731-1.602V7.726h7.89v1.356c0 .593-.262 1.089-.73 1.603h-6.43zm7.16 11.109l-2.997-1.133c-.522-.197-1.376-.197-1.897 0l-2.997 1.133v-1.315c0-1.197.982-2.005 2.584-3.225l.043-.032c.608-.462 1.003-1.106 1.137-1.815.12.026.243.026.362 0 .134.71.529 1.353 1.136 1.814l.044.033c1.602 1.22 2.584 2.028 2.584 3.225v1.315z"/></g></svg>`};var cs="styles-module_Wrapper__yQxZ4",us="styles-module_Dropdown__2Nyie",ds="styles-module_Open__qVrPm",fs="styles-module_Closed__zi55k",ps="styles-module_Backdrop__IYghP",hs="styles-module_Visible__osoZ7",gs="styles-module_Content__sLSum",vs="styles-module_CloseButton__O6fyt",ys="styles-module_Placeholder__iQP-B",ms="styles-module_AvatarWrapper__Nkl-U";Fo(".styles-module_Wrapper__yQxZ4{color:#1a1a1a;position:relative}.styles-module_Dropdown__2Nyie{background-color:#fff;border-radius:5px;box-shadow:0 0 10px 0 rgba(0,0,0,.2);opacity:0;position:absolute;right:0;top:-5px;transform:scale(.2);transform-origin:top right;transition:transform .2s ease-in-out,opacity .2s ease-in-out,top .2s ease-in-out;width:350px;z-index:999}.styles-module_Dropdown__2Nyie.styles-module_Open__qVrPm{opacity:1;top:100%;transform:scale(1)}.styles-module_Dropdown__2Nyie.styles-module_Closed__zi55k{display:none}@media (max-width:768px){.styles-module_Dropdown__2Nyie{left:50%;position:fixed;top:10px;transform:scale(.2) translateX(-50%);transform-origin:top center;width:300px}.styles-module_Dropdown__2Nyie.styles-module_Open__qVrPm{top:10px;transform:scale(1) translateX(-50%)}}.styles-module_Backdrop__IYghP{background-color:rgba(88,88,88,.83);bottom:0;display:none;left:0;position:fixed;right:0;top:0;z-index:998}@media (max-width:768px){.styles-module_Backdrop__IYghP.styles-module_Visible__osoZ7{display:block}}.styles-module_Content__sLSum{position:relative}.styles-module_CloseButton__O6fyt{background:none;border:none;display:none;margin:0;outline:none;padding:0;position:absolute;right:20px;top:20px}@media (max-width:768px){.styles-module_CloseButton__O6fyt{display:block}}.styles-module_Placeholder__iQP-B:not(:empty){border-top:1px solid rgba(0,0,0,.1)}.styles-module_AvatarWrapper__Nkl-U{align-items:center;background-color:#e0e0e0;border-radius:50%;display:flex;height:30px;justify-content:center;width:30px}.styles-module_AvatarWrapper__Nkl-U img{border-radius:50%;height:24px;width:24px}");const _s=(e,t)=>{const n=e.flow.getUserData(),{first_name:r,avatar_url:o}=n;t.innerHTML=Do`<div id="olw-db-backdrop" class="${ps}"></div><div class="${cs}">${Ha("olw-db-button",r,o?Do`<div class="olw__button__avatar ${ms}"><img src="${o}" alt="avatar"></div>`:ls())}<div id="olw-db-dropdown" class="olw__dropdown ${us} ${fs}"><div class="${gs}"><div id="olw-db-user">a</div><div class="${ys}" id="olw-db-user-actions-placeholder"></div><div id="olw-db-actions">b</div><button type="button" id="olw-db-x-button" class="${vs}"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="#A1A1A1" fill-rule="evenodd" d="M11.414 10l4.293-4.293c.391-.391.391-1.023 0-1.414-.39-.391-1.023-.391-1.414 0L10 8.586 5.707 4.293c-.39-.391-1.023-.391-1.414 0-.39.391-.39 1.023 0 1.414L8.586 10l-4.293 4.293c-.39.391-.39 1.023 0 1.414.195.195.451.293.707.293.256 0 .512-.098.707-.293L10 11.414l4.293 4.293c.195.195.451.293.707.293.256 0 .512-.098.707-.293.391-.391.391-1.023 0-1.414L11.414 10z"/></svg></button></div></div></div>`;const i=t.querySelector("#olw-db-dropdown"),a=t.querySelector("#olw-db-backdrop"),s=t.querySelector("#olw-db-button"),l=t.querySelector("#olw-db-x-button"),c=Array.from(t.querySelectorAll("a")),u=t.querySelector("#olw-db-user"),d=t.querySelector("#olw-db-actions");if(!(i&&a&&u&&d))throw new Error("Missing element during dropdown-button render");const f=((e,t,n)=>{let{avatar_url:r,first_name:o,last_name:i,email:a}=n;t.innerHTML=Do`<div class="${es}"><div class="olw__avatarwrapper ${ts}">${r?`<img class="${ns}" src="${r}" alt="avatar" />`:ls({class:ns})} <svg xmlns="http://www.w3.org/2000/svg" width="24" height="23" viewBox="0 0 24 23" class="${rs}"><g fill="none" fill-rule="evenodd" transform="translate(.754)"><ellipse cx="11.475" cy="11.4" fill="#FFF" rx="11.475" ry="11.4"/><g fill="#2019F5"><path d="M14.765 1.87c-.348 0-.672.108-.94.291-.104.059-.202.127-.294.21l-4.84 4.962c-.672.609-.718 1.651-.102 2.315.616.665 1.67.71 2.342.1l2.165-2.13v8.307c0 .907.751 1.65 1.67 1.65.918 0 1.669-.743 1.669-1.65V3.52c0-.907-.75-1.65-1.67-1.65" transform="translate(2.416 2.4)"/><path d="M6.587 11.8c-.743-.586-1.222-1.278-1.441-2.16-.196-.796-.115-1.46.153-2.26.038-.094.042-.105.01-.032.022-.052.046-.103.07-.154.036-.075.074-.15.115-.223.108-.195.229-.385.365-.562-.084.109.068-.076.08-.088.073-.085.15-.165.23-.244.08-.08.163-.155.248-.228.021-.018.206-.162.092-.078.183-.136.377-.256.578-.361.217-.116.263-.133.43-.193.454-.16.823-.223 1.25-.238.46-.014.852-.376.852-.841 0-.446-.39-.859-.853-.843-1.784.057-3.385.902-4.429 2.331-1 1.368-1.27 3.245-.723 4.84.339.987.943 1.876 1.768 2.526.36.285.854.348 1.205 0 .297-.293.362-.905 0-1.192M10.223 12.288c-.644.222-1.281.288-1.959.209-.457-.054-.852.425-.852.842 0 .5.393.789.852.843.808.095 1.645-.005 2.412-.268.435-.15.723-.577.596-1.036-.116-.418-.612-.74-1.049-.59" transform="translate(2.416 2.4)"/><path d="M1.774 9.804c-.129-.99-.085-1.865.132-2.728.055-.22.12-.437.194-.652.037-.106.076-.212.118-.317.02-.053.04-.106.063-.157-.058.134.051-.107.052-.108.19-.406.418-.796.676-1.165.064-.09.13-.183.198-.272-.064.084.096-.115.132-.156.164-.192.337-.378.52-.554.37-.361.603-.548.983-.799.836-.553 1.536-.847 2.515-1.06 1.296-.282 2.68-.173 3.966.271.435.15.933-.171 1.048-.589.13-.464-.158-.886-.594-1.036-2.452-.846-5.242-.568-7.47.754C2.443 2.343 1.035 4.126.39 6.178.023 7.343-.087 8.596.069 9.804c.059.452.35.843.853.843.415 0 .91-.387.852-.843M10.129 15.724c-1.498.27-3.112.04-4.43-.616-1.392-.692-2.444-1.715-3.177-3.06-.22-.401-.78-.527-1.166-.303-.41.237-.526.75-.307 1.153.864 1.584 2.234 2.915 3.872 3.706 1.774.856 3.725 1.095 5.66.746.455-.082.71-.626.597-1.037-.131-.472-.594-.67-1.049-.589" transform="translate(2.416 2.4)"/></g></g></svg></div><div class="olw__personaldata ${os}">${o} ${i}</div><div class="olw__email ${is}">${a}</div><a class="olw__link ${as} ${Ja()||window.location.href.startsWith(Qa)?ss:""}" href="${Qa}" target="_blank" rel="noreferrer noopener">${e.locale.MANAGE_ACCOUNT} </a><a class="olw__link ${as}" id="olw-link-login">${e.locale.SWITCH_ACCOUNT}</a></div>`;const s=t.querySelector("#olw-link-login");if(!s)throw new Error("User link login element not found");const l=()=>{Ja()?window.location.assign("onelogin://profile/choose"):e.flow.login(!0)};return s.addEventListener("click",l),()=>{s.removeEventListener("click",l)}})(e,u,n),p=((e,t)=>{t.innerHTML=Do`<div class="olw__action--logout ${Ka}"><a class="olw__action--link ${Xa}" id="olw-actions-logout"><span class="olw__action--icon ${Za}"><svg xmlns="http://www.w3.org/2000/svg" width="17" height="19" viewBox="0 0 17 19"><path fill="#2019F5" stroke="#2019F5" d="M7 1c4.791 0 8.675 3.884 8.675 8.675S11.791 18.35 7 18.35c-.373 0-.675-.302-.675-.675 0-.373.302-.675.675-.675 4.045 0 7.325-3.28 7.325-7.325S11.045 2.35 7 2.35c-.373 0-.675-.302-.675-.675C6.325 1.302 6.627 1 7 1zM4.632 5.873l.084-.071.092-.056c.252-.126.568-.084.779.127h0l.071.083c.19.264.166.634-.071.871h0L3.305 9.11h6.412l.1.008c.325.048.575.329.575.668 0 .372-.302.675-.675.675h0l-6.412-.001 2.282 2.283.071.084c.19.263.166.633-.071.87-.264.264-.691.264-.955 0h0l-3.448-3.448-.057-.07-.053-.085-.04-.095-.026-.11L1 9.784c0-.07.01-.137.03-.2h0l.038-.096.052-.088h0l.026-.036.044-.05 3.442-3.442z"/></svg> </span>${e.locale.LOGOUT}</a></div>`;const n=t.querySelector("#olw-actions-logout");if(!n)throw new Error("Actions logout link element not found");const r=()=>{Ja()?window.location.assign("onelogin://profile/logout"):e.flow.logout()};return n.addEventListener("click",r),()=>{n.removeEventListener("click",r)}})(e,d),h=()=>{i.classList.remove(ds),a.classList.remove(hs),"none"===getComputedStyle(a).display&&document.body.removeAttribute("style"),setTimeout((()=>i.classList.add(fs)),250)};document.addEventListener("ol-close-dropdown",h);const g=()=>{i.classList.contains(fs)?(i.classList.remove(fs),window.requestAnimationFrame((()=>{window.requestAnimationFrame((()=>{"none"!==getComputedStyle(a).display&&(document.body.style.overflow="hidden"),i.classList.add(ds)}))})),a.classList.add(hs)):h()},v=e=>{"Escape"===e.code&&h()},y=e=>{if(i&&s&&e.target){i.contains(e.target)||s.contains(e.target)||h()}};return null==s||s.addEventListener("click",g),null==l||l.addEventListener("click",h),document.addEventListener("keyup",v),document.addEventListener("click",y),c.forEach((e=>e.addEventListener("click",g))),()=>{f(),p(),null==s||s.removeEventListener("click",g),null==l||l.addEventListener("click",h),document.removeEventListener("keyup",v),document.removeEventListener("click",y),c.forEach((e=>e.removeEventListener("click",g))),document.removeEventListener("ol-close-dropdown",h),t.innerHTML=""}},ws=(e,t)=>{const n=[],r=()=>{n.push(_s(e,t))},o=()=>{n.push(((e,t)=>{t.innerHTML=Do`${Ha("ol-widget-login-button",e.locale.LOGIN_BUTTON,Do`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="28" viewBox="0 0 32 28"><path class="olw__button--icon" d="M12.698 3.048c1.806 0 3.523.376 5.078 1.055-.168.484-.297.985-.383 1.5-1.426-.662-3.017-1.032-4.695-1.032-6.171 0-11.174 5.003-11.174 11.175 0 6.172 5.003 11.175 11.174 11.175 6.122 0 11.094-4.922 11.174-11.025.49.142.997.243 1.517.301-.237 6.804-5.828 12.247-12.69 12.247C5.684 28.444 0 22.76 0 15.746 0 8.733 5.685 3.048 12.698 3.048zm2.477 14.349c2.279 0 4.127 1.848 4.127 4.127 0 .456-.37.825-.826.825-.423 0-.772-.318-.82-.729l-.01-.242c-.072-1.251-1.074-2.254-2.326-2.326l-.145-.004h-4.953c-1.367 0-2.476 1.108-2.476 2.476 0 .456-.37.825-.825.825-.456 0-.826-.37-.826-.825 0-2.22 1.752-4.03 3.948-4.123l.18-.004h4.952zm-2.477-8.254c2.28 0 4.127 1.848 4.127 4.127 0 2.28-1.847 4.127-4.127 4.127-2.279 0-4.127-1.848-4.127-4.127 0-2.28 1.848-4.127 4.127-4.127zm0 1.65c-1.367 0-2.476 1.11-2.476 2.477 0 1.367 1.109 2.476 2.476 2.476 1.368 0 2.477-1.109 2.477-2.476 0-1.368-1.109-2.476-2.477-2.476z"/><path class="olw__button--logo" d="M31.166 1.514c.739 0 1.342.601 1.342 1.336v10.037c0 .734-.603 1.335-1.342 1.335-.737 0-1.34-.601-1.34-1.335V6.164L28.084 7.89c-.54.493-1.386.456-1.882-.081-.495-.538-.458-1.381.082-1.874l3.89-4.016c.073-.067.152-.122.235-.169.216-.148.476-.235.756-.235zm-10.775 7.99c.31-.18.76-.079.937.245.59 1.09 1.434 1.917 2.553 2.477 1.059.53 2.356.717 3.56.499.365-.066.737.094.842.476.092.333-.114.773-.478.84-1.556.281-3.124.088-4.549-.604-1.317-.64-2.417-1.717-3.111-3-.176-.325-.083-.74.246-.932zm7.126.44c.35-.12.749.14.842.477.102.372-.129.718-.478.839-.617.213-1.29.293-1.939.216-.369-.043-.684-.277-.684-.681 0-.338.317-.726.684-.682.545.064 1.057.01 1.575-.169zm-1.171-7.278c.371-.012.685.321.685.682 0 .377-.315.67-.685.681-.343.013-.64.064-1.004.193-.135.048-.171.062-.345.156-.162.085-.318.182-.465.292l.028-.02c.005-.004-.002 0-.028.02l.027-.019-.036.03-.05.04-.015.012c-.068.06-.135.12-.2.184-.063.064-.125.13-.185.198l-.07.083-.01.012.008-.012-.01.013c-.002.004-.002.004 0 .002l-.087.12c-.067.1-.13.203-.188.308l-.093.18-.039.087c.002-.003-.006.019-.024.064-.215.648-.281 1.185-.123 1.829.176.714.56 1.274 1.158 1.748.29.232.239.727 0 .965-.282.281-.68.23-.969 0-.663-.526-1.148-1.246-1.42-2.044-.44-1.291-.223-2.81.58-3.917.84-1.157 2.126-1.84 3.56-1.887zM22.763 1c1.79-1.07 4.032-1.294 6.002-.61.35.121.582.463.478.839-.093.337-.493.597-.843.476-1.033-.359-2.145-.448-3.186-.22-.787.173-1.35.411-2.022.859-.305.203-.492.354-.79.646-.147.142-.286.293-.418.448-.028.033-.157.195-.105.127l-.01.01-.071.1-.079.11c-.207.298-.39.614-.543.943l-.045.098-.01.018-.012.034-.026.064c-.033.085-.064.17-.094.256-.06.175-.112.35-.156.528-.175.698-.21 1.406-.106 2.208.047.368-.351.682-.685.682-.404 0-.638-.317-.685-.682-.126-.978-.037-1.992.257-2.934.52-1.661 1.65-3.104 3.149-4z"/></svg>`,!1)}`;const n=t.querySelector("#ol-widget-login-button"),r=()=>{No("service_header","click"),e.flow.login()};if(!n)throw new Error("Login button not exists");return No("service_header","view"),n.addEventListener("click",r),()=>{n.removeEventListener("click",r)}})(e,t))};try{r()}catch{o()}return document.addEventListener("ol-login",r),document.addEventListener("ol-not-logged",o),()=>{document.removeEventListener("ol-login",r),document.removeEventListener("ol-not-logged",o),n.forEach((e=>e())),n.length=0}},bs=()=>{document.dispatchEvent(new CustomEvent("ol-close-dropdown"))},Es=()=>Ro.get("OLWIDGET_BRANCH"),xs=e=>Ro.set("OLWIDGET_BRANCH",e),Os=e=>{const t=Es();return"https://onelogin.wpcdn.pl/onelogin/static/"+(t?t+"/":"")+e};var Ls="styles-module_Tooltip__UsdZm",As="styles-module_Hide__RVmbc",Ss="styles-module_BarContainer__KnbY4",Ts="styles-module_Arrow__xViGp",Is="styles-module_BarTitle__f7LhW",Ps="styles-module_BarButton__fL74u",Rs="styles-module_CloseBar__g2V3D";Fo('.styles-module_Tooltip__UsdZm{height:258px;opacity:1;position:absolute;transition:opacity .2s ease-in-out,visibility 0s linear;visibility:visible;width:410px;z-index:10}@media (max-width:768px){.styles-module_Tooltip__UsdZm{display:none}}.styles-module_Hide__RVmbc{opacity:0;transition:opacity .2s ease-in-out,visibility 0s linear .2s;visibility:hidden}.styles-module_BarContainer__KnbY4{align-items:center;background-color:#3665f6;display:flex;justify-content:space-around;padding:4px;position:relative;width:100%}.styles-module_Arrow__xViGp{border:8px solid rgba(136,183,213,0);border-bottom-color:#3665f6;bottom:100%;content:"";display:none;height:0;margin-right:-8px;pointer-events:none;position:absolute;width:0}.styles-module_BarTitle__f7LhW{display:flex;flex:1;justify-content:flex-end;min-width:0;padding:0 16px}.styles-module_BarTitle__f7LhW>img{min-width:0}.styles-module_BarButton__fL74u{cursor:pointer;display:flex;flex:1;min-width:0}.styles-module_BarButton__fL74u>img{min-width:0}.styles-module_CloseBar__g2V3D{cursor:pointer;display:flex;flex:0 0 34px;justify-content:center;width:34px}');const ks=()=>{Ro.set("oneLoginCapping","1",{expires:14})},Cs=()=>Ro.get("oneLoginCapping"),Us=()=>"undefined"!=typeof navigator?/bot|googlebot|crawler|spider|robot|crawling/i.test(navigator.userAgent):void 0,Ns=e=>{try{e.flow.getUserData()}catch{return!1}return!0},$s=(e,t)=>{let n;if(Us())return Uo.info("Crawler detected, promo bar stopped"),()=>{};const r=()=>{null==n||n(),Cs()||(n=(e=>{const t=[],n=()=>{t.reverse().forEach((e=>e())),t.length=0},r=document.createElement("div");t.push((()=>r.remove())),r.className=`olw__promo_tooltip ${As} ${Ls}`,document.body.append(r),r.innerHTML=Do`<img src="${Os("promo-tooltip.png")}" usemap="#olw-pt-map" alt=""><map name="olw-pt-map"><area id="olw-close-promo" target="" alt="" href="" coords="387,53,365,33" shape="rect"><area target="_blank" href="https://1login.wp.pl/informacje" rel="noreferrer noopener" alt="" coords="197,200,326,221" shape="rect"><area target="_blank" href="https://1login.wp.pl" rel="noreferrer noopener" alt="" coords="31,190,181,229" shape="rect"></map>`;const o=document.querySelector("#olw-close-promo");let i;const a=()=>{i&&clearTimeout(i);const{left:t,top:n}=e.getBoundingClientRect();r.style.top=`${n+40}px`,r.style.left=`${t+-328}px`,r.classList.remove(As)},s=()=>{i=setTimeout((()=>{r.classList.add(As)}),300),t.push((()=>i&&clearTimeout(i)))};return o.addEventListener("click",(()=>{ks(),n()})),e.addEventListener("mouseenter",a),e.addEventListener("mouseleave",s),t.push((()=>{e.removeEventListener("mouseenter",a),e.removeEventListener("mouseleave",s)})),r.addEventListener("mouseenter",a),r.addEventListener("mouseleave",s),n})(t))},o=()=>{null==n||n()};return document.addEventListener("ol-not-logged",r),document.addEventListener("ol-login",o),Ns(e)?o():r(),()=>{null==n||n(),document.removeEventListener("ol-not-logged",r),document.removeEventListener("ol-login",o)}},js=(e,t,n)=>{let r;if(Us())return Uo.info("Crawler detected, promo bar stopped"),()=>{};const o=()=>{null==r||r(),Cs()||(r=((e,t)=>{let n;e.innerHTML=Do`<div class="olw__promo_bar ${Ss}"><div class="${Is}"><img src="${Os("promo-bar-tekst.svg")}" alt=""></div><a target="_blank" href="https://1login.wp.pl/informacje" class="${Ps}" rel="noreferrer noopener"><img src="${Os("promo-bar-button.svg")}" alt=""></a><div id="olw-promo-bar-close" class="${Rs}"><img src="${Os("promo-bar-x.svg")}" alt=""></div><div id="olw-promo-bar-arrow" class="${Ts}"></div>`;const r=e.querySelector("#olw-promo-bar-arrow"),o=e.querySelector("#olw-promo-bar-close"),i=()=>{if(t){const{right:n,width:o}=t.getBoundingClientRect(),{right:i}=e.getBoundingClientRect(),a=n-i+o/2;r.style.right=`${a}px`,r.style.display="inherit"}},a=()=>{ks(),n()};return n=()=>{o.removeEventListener("click",a),e.innerHTML="",window.removeEventListener("resize",i),window.removeEventListener("load",i)},o.addEventListener("click",a),window.addEventListener("resize",i),window.addEventListener("load",i),i(),n})(t,n))},i=()=>{null==r||r()};return document.addEventListener("ol-not-logged",o),document.addEventListener("ol-login",i),Ns(e)?i():o(),()=>{null==r||r(),document.removeEventListener("ol-not-logged",o),document.removeEventListener("ol-login",i)}},Bs=e=>({renderDropdown:t=>ws(e,t),renderButton:(t,n)=>((e,t,n)=>{const r=()=>{e.flow.login(n)};return t.innerHTML=Do`<button type="button" class="${zo}"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" viewBox="0 0 18 20" class="${Wo}"><g fill="#FFF" fill-rule="evenodd"><path d="M15.891 2.026c-.375 0-.723.117-1.012.315-.111.064-.217.137-.315.227l-5.21 5.376c-.724.66-.773 1.789-.11 2.508.664.72 1.797.77 2.52.11l2.331-2.31v9c0 .982.808 1.787 1.796 1.787.99 0 1.798-.805 1.798-1.787V3.815c0-.983-.808-1.789-1.798-1.789"/><path d="M7.09 12.784c-.8-.635-1.316-1.385-1.551-2.341-.212-.862-.124-1.58.164-2.448.04-.102.045-.114.01-.035l.075-.166c.04-.082.081-.162.125-.242.116-.211.247-.417.393-.609-.09.118.073-.082.085-.095.08-.092.163-.18.249-.265.086-.086.175-.167.267-.247.022-.019.221-.175.099-.084.196-.147.406-.277.622-.392.234-.124.282-.144.463-.208.488-.173.885-.242 1.344-.258.496-.015.917-.407.917-.911 0-.484-.42-.93-.917-.913-1.92.061-3.644.977-4.767 2.525-1.076 1.482-1.366 3.515-.778 5.243.364 1.07 1.014 2.033 1.902 2.737.388.308.92.376 1.298 0 .32-.318.39-.981 0-1.291M11.003 13.313c-.693.24-1.38.31-2.108.225-.493-.058-.918.46-.918.913 0 .541.423.854.918.913.87.102 1.77-.005 2.596-.29.468-.162.777-.625.64-1.123-.124-.452-.657-.8-1.128-.638"/><path d="M1.91 10.621c-.14-1.073-.093-2.02.14-2.955.06-.238.13-.473.21-.707.04-.115.082-.23.127-.343.022-.058.044-.115.068-.17-.062.145.055-.116.056-.117.205-.44.45-.863.727-1.262.069-.099.14-.198.214-.295-.07.092.103-.125.141-.17.177-.207.363-.409.56-.599.399-.391.65-.594 1.058-.865.9-.6 1.654-.918 2.708-1.149 1.394-.306 2.884-.187 4.267.294.469.162 1.005-.186 1.129-.638.14-.503-.171-.96-.64-1.123-2.639-.916-5.641-.615-8.04.817C2.63 2.539 1.116 4.47.42 6.693c-.395 1.261-.513 2.62-.344 3.928.063.49.376.913.917.913.447 0 .98-.42.917-.913M10.902 17.035c-1.612.292-3.35.042-4.768-.668-1.499-.75-2.63-1.857-3.42-3.316-.236-.434-.838-.57-1.255-.327-.441.257-.565.813-.33 1.25.93 1.715 2.404 3.156 4.168 4.014 1.908.927 4.009 1.185 6.092.808.488-.089.764-.678.641-1.123-.14-.511-.639-.727-1.128-.638"/></g></svg> <span>${e.locale.BUTTON}</span></button>`,t.addEventListener("click",r),()=>{t.removeEventListener("click",r)}})(e,t,n),renderPromoTooltip:t=>$s(e,t),renderPromoBar:(t,n)=>js(e,t,n),closeDropdown:bs}),Ms=[(e,t)=>{t&&!e.some((e=>e.src.includes(".es6.")))&&Uo.warn("No es6 version of script found, despite using modern browser!",e)},e=>{e.some((e=>e.src.includes(".es6.")&&e.hasAttribute("async")))||Uo.warn("No async initialization found for widget script!",e)},e=>{e.some((e=>!e.src.includes("pkce")&&!e.src.includes("standard")))&&Uo.warn("You are using full bundle that is designed for development purposes only. Please use bundle that is designed for your flow.",e)}],Ds=()=>{const e=[document.body,document.head].flatMap((e=>Array.from((null==e?void 0:e.querySelectorAll("script"))||[]))).filter((e=>e.src.startsWith("https://onelogin"))).filter((e=>!e.dataset.olwbranch));if(0===e.length)return;const t="noModule"in HTMLScriptElement.prototype;Ms.forEach((n=>n(e,t)))};var Fs="styles_Container__sCBFS",zs="styles_Inline__anxRB",Ws="styles_Popup__f-gEb";Fo(".styles_Container__sCBFS{background-color:#fff;height:0;pointer-events:none;transition:opacity .5s ease-in-out;user-select:none;z-index:9999999}.styles_Container__sCBFS iframe{border:0;height:100%;width:100%}.styles_Inline__anxRB{width:320px}.styles_Popup__f-gEb{border:1px solid #e0e0e0;border-top-left-radius:5px;border-top-right-radius:5px;bottom:0;box-shadow:0 0 10px rgba(0,0,0,.2);display:flex;left:0;opacity:0;overflow:hidden;position:fixed;right:0;width:100%}@media (min-width:600px){.styles_Popup__f-gEb{border-bottom-left-radius:5px;border-bottom-right-radius:5px;bottom:auto;left:auto;right:20px;top:80px;width:320px}}");const Gs=()=>{localStorage.removeItem("OL_1t_dc_expiration"),localStorage.removeItem("OL_1tc_count")},Vs=()=>{const e=Number(localStorage.getItem("OL_1tc_count"))||0,t=(e=>{const t=new Date(Date.now());switch(e){case 0:return t.getTime()+72e5;case 1:return t.setHours(23,59,59,999).valueOf();case 2:return t.getTime()+6048e5;default:return t.setMonth(t.getMonth()+1).valueOf()}})(e);localStorage.setItem("OL_1t_dc_expiration",String(t)),localStorage.setItem("OL_1tc_count",String(e+1)),Uo.debug("[#ONETAP] set OneTap cooldown until: "+new Date(t))},Ys={isMobile:!1,timeoutId:void 0},qs=(e,t)=>{Ys.isMobile=window.matchMedia("(max-width: 600px)").matches,Uo.debug(`[#ONETAP] AutoExit: ${Ys.isMobile?"mobile":"desktop"} device detected`),Ys.isMobile&&((e=>{Ys.timeoutId=window.setTimeout((()=>{e()}),9e4),Uo.debug(`[#ONETAP] AutoExit: set initially to 90000 ms - timeoutId: ${Ys.timeoutId}`)})(t),((e,t)=>{e.addEventListener("mouseenter",(()=>{Uo.debug(`[#ONETAP] AutoExit: remove - timeoutId: ${Ys.timeoutId}`),window.clearTimeout(Ys.timeoutId)})),e.addEventListener("mouseleave",(()=>{window.clearTimeout(Ys.timeoutId),Ys.timeoutId=window.setTimeout((()=>{t()}),9e4),Uo.debug(`[#ONETAP] AutoExit: reset to 90000 ms - timeoutId: ${Ys.timeoutId}`)}))})(e,t))},Hs=5e3,Ks=e=>{let{clientId:t,olOrigin:n=Qa,getUserData:r,login:o,container:i,internal:a,timeout:s=Hs}=e;return new Promise((e=>{let l=!1;setTimeout((()=>{l||e({status:"timed-out"})}),s);const c=()=>{try{return!!r()}catch{return!1}},u=(()=>{const e=Number(localStorage.getItem("OL_1t_dc_expiration"));return!!e&&e>Date.now()&&!Number.isNaN(e)&&e})(),d=i?"inline":"popup";if(!t)return Uo.warn("[#ONETAP] You need to specify clientId to enable OneTap!"),e({status:"skipped",reason:"configuration"});if(u)return Uo.debug("[#ONETAP] OneTap on cooldown until: "+new Date(u)),e({status:"skipped",reason:"cooldown"});if(c())return Uo.debug("[#ONETAP] User logged in - initialization canceled"),e({status:"skipped",reason:"logged-in"});Uo.debug("[#ONETAP] OneTap started");const f=(e=>{let{origin:t,clientId:n,mode:r,isInternal:o}=e;return`${t}/onetap/iframe?clientId=${n}&origin=${window.location.origin}&mode=${r}${o?"&internal=1":""}`})({origin:n,clientId:t,mode:d,isInternal:!!a}),{containerElement:p,frameElement:h}=function(e,t){void 0===t&&(t=document.body);const n=document.createElement("div"),r=document.createElement("iframe");r.setAttribute("src",e),n.append(r);const o=t===document.body?Ws:zs;return n.classList.add("olw__onetap",Fs,o),t.append(n),{containerElement:n,frameElement:r}}(f,i),g=h.contentWindow;if(!g)return void Uo.debug("[#ONETAP] No contentWindow for selected frame element!");const v=(e=>{const t=new Map,n=n=>{if(!((e,t)=>{let{frameContentWindow:n,olOrigin:r}=e;return t.source===n&&t.origin.startsWith(r)})(e,n))return;const r=t.get(n.data.type);r?(Uo.debug(`[#ONETAP] handling message type ${n.data.type}`),r(n.data)):Uo.error(`[#ONETAP] message handler for type ${n.data.type} not found!`)};return{listener:n,add:(e,n)=>{t.set(e,n)},start:()=>window.addEventListener("message",n),stop:()=>window.removeEventListener("message",n)}})({frameContentWindow:g,olOrigin:n}),y=()=>{Uo.debug("[#ONETAP] closing onetap modal");try{p.remove()}catch{Uo.debug("[#ONETAP] failed to remove container element")}v.stop()};v.add("INIT",(()=>{((e,t)=>{let{frameContentWindow:n,olOrigin:r}=e;Uo.debug("[#ONETAP] sending event",t.type,{data:t}),n.postMessage(t,r)})({frameContentWindow:g,olOrigin:n},{type:"INIT_FRAME",payload:{device:Po.exports.get("OL_ONETAP_DEVICE"),clientId:t}})})),v.add("SELECT",(e=>{o(e.payload.user)})),v.add("LOGIN",(()=>{o(!0),Gs()})),v.add("SHOW",(t=>{var n;c()?y():(n=t.payload.height,l=!0,Uo.debug("[#ONETAP] showing onetap modal"),p.style.height=`${n}px`,p.style.opacity="1",p.style.userSelect="initial",p.style.pointerEvents="initial",h.style.opacity="1",e({status:"display",close:y}))})),v.add("EXIT",(()=>{y(),e({status:"skipped"})})),v.add("CLOSE",(()=>{y(),Vs()})),v.add("INTERNAL",(()=>{if(!a)throw new Error("internal handler invoked without callback");y(),a()})),document.addEventListener("ol-login",(()=>{Uo.debug("[#ONETAP] user logged in - closing modal"),Gs(),y()})),qs(p,y),v.start()}))};var Xs={LOGIN_BUTTON:"Zaloguj",BUTTON:"Zaloguj z 1login od WP",LOGOUT:"Wyloguj",MANAGE_ACCOUNT:"Zarządzaj kontem",SWITCH_ACCOUNT:"Przełącz konto"};var Zs,Js,Qs,el={},tl=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),nl=n,rl=Re,ol=N,il=Te,al=tl,sl=Xt("IE_PROTO"),ll=nl.Object,cl=ll.prototype,ul=al?ll.getPrototypeOf:function(e){var t=il(e);if(rl(t,sl))return t[sl];var n=t.constructor;return ol(n)&&t instanceof n?n.prototype:t instanceof ll?cl:null},dl=o,fl=N,pl=ul,hl=Nt.exports,gl=qe("iterator"),vl=!1;[].keys&&("next"in(Qs=[].keys())?(Js=pl(pl(Qs)))!==Object.prototype&&(Zs=Js):vl=!0);var yl=null==Zs||dl((function(){var e={};return Zs[gl].call(e)!==e}));yl&&(Zs={}),fl(Zs[gl])||hl(Zs,gl,(function(){return this}));var ml={IteratorPrototype:Zs,BUGGY_SAFARI_ITERATORS:vl},_l=wt.f,wl=Re,bl=qe("toStringTag"),El=function(e,t,n){e&&!wl(e=n?e:e.prototype,bl)&&_l(e,bl,{configurable:!0,value:t})},xl=ml.IteratorPrototype,Ol=oo,Ll=h,Al=El,Sl=el,Tl=function(){return this},Il=function(e,t,n,r){var o=t+" Iterator";return e.prototype=Ol(xl,{next:Ll(+!r,n)}),Al(e,o,!1),Sl[o]=Tl,e},Pl=n,Rl=N,kl=Pl.String,Cl=Pl.TypeError,Ul=_,Nl=Lt,$l=function(e){if("object"==typeof e||Rl(e))return e;throw Cl("Can't set "+kl(e)+" as a prototype")},jl=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Ul(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Nl(n),$l(r),t?e(n,r):n.__proto__=r,n}}():void 0),Bl=Cr,Ml=s,Dl=bn,Fl=N,zl=Il,Wl=ul,Gl=jl,Vl=El,Yl=Ut,ql=Nt.exports,Hl=el,Kl=Dl.PROPER,Xl=Dl.CONFIGURABLE,Zl=ml.IteratorPrototype,Jl=ml.BUGGY_SAFARI_ITERATORS,Ql=qe("iterator"),ec=function(){return this},tc=U,nc=co,rc=el,oc=gn,ic=function(e,t,n,r,o,i,a){zl(n,t,r);var s,l,c,u=function(e){if(e===o&&g)return g;if(!Jl&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",f=!1,p=e.prototype,h=p[Ql]||p["@@iterator"]||o&&p[o],g=!Jl&&h||u(o),v="Array"==t&&p.entries||h;if(v&&(s=Wl(v.call(new e)))!==Object.prototype&&s.next&&(Wl(s)!==Zl&&(Gl?Gl(s,Zl):Fl(s[Ql])||ql(s,Ql,ec)),Vl(s,d,!0)),Kl&&"values"==o&&h&&"values"!==h.name&&(Xl?Yl(p,"name","values"):(f=!0,g=function(){return Ml(h,this)})),o)if(l={values:u("values"),keys:i?g:u("keys"),entries:u("entries")},a)for(c in l)(Jl||f||!(c in p))&&ql(p,c,l[c]);else Bl({target:t,proto:!0,forced:Jl||f},l);return p[Ql]!==g&&ql(p,Ql,g,{name:o}),Hl[t]=g,l},ac=oc.set,sc=oc.getterFor("Array Iterator");ic(Array,"Array",(function(e,t){ac(this,{type:"Array Iterator",target:tc(e),index:0,kind:t})}),(function(){var e=sc(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),rc.Arguments=rc.Array,nc("keys"),nc("values"),nc("entries");var lc=o,cc=qe("iterator"),uc=!lc((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[cc]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host})),dc=Nt.exports,fc=function(e,t,n){for(var r in t)dc(e,r,t[r],n);return e},pc=z,hc=n.TypeError,gc=function(e,t){if(pc(t,e))return e;throw hc("Incorrect invocation")},vc=fe,yc=_(_.bind),mc=function(e,t){return vc(e),void 0===t?e:yc?yc(e,t):function(){return e.apply(t,arguments)}},_c=ei,wc=he,bc=el,Ec=qe("iterator"),xc=function(e){if(null!=e)return wc(e,Ec)||wc(e,"@@iterator")||bc[_c(e)]},Oc=s,Lc=fe,Ac=Lt,Sc=le,Tc=xc,Ic=n.TypeError,Pc=function(e,t){var n=arguments.length<2?Tc(e):t;if(Lc(n))return Ac(Oc(n,e));throw Ic(Sc(e)+" is not iterable")},Rc=ot,kc=wt,Cc=h,Uc=Mn,Nc=Gn,$c=function(e,t,n){var r=Rc(t);r in e?kc.f(e,r,Cc(0,n)):e[r]=n},jc=n.Array,Bc=Math.max,Mc=function(e,t,n){for(var r=Nc(e),o=Uc(t,r),i=Uc(void 0===n?r:n,r),a=jc(Bc(i-o,0)),s=0;o<i;o++,s++)$c(a,s,e[o]);return a.length=s,a},Dc=Mc,Fc=Math.floor,zc=function(e,t){var n=e.length,r=Fc(n/2);return n<8?Wc(e,t):Gc(e,zc(Dc(e,0,r),t),zc(Dc(e,r),t),t)},Wc=function(e,t){for(var n,r,o=e.length,i=1;i<o;){for(r=i,n=e[i];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},Gc=function(e,t,n,r){for(var o=t.length,i=n.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?r(t[a],n[s])<=0?t[a++]:n[s++]:a<o?t[a++]:n[s++];return e},Vc=zc,Yc=Cr,qc=n,Hc=F,Kc=s,Xc=_,Zc=uc,Jc=Nt.exports,Qc=fc,eu=El,tu=Il,nu=gn,ru=gc,ou=N,iu=Re,au=mc,su=ei,lu=Lt,cu=j,uu=ri,du=oo,fu=h,pu=Pc,hu=xc,gu=Vc,vu=qe("iterator"),yu=nu.set,mu=nu.getterFor("URLSearchParams"),_u=nu.getterFor("URLSearchParamsIterator"),wu=Hc("fetch"),bu=Hc("Request"),Eu=Hc("Headers"),xu=bu&&bu.prototype,Ou=Eu&&Eu.prototype,Lu=qc.RegExp,Au=qc.TypeError,Su=qc.decodeURIComponent,Tu=qc.encodeURIComponent,Iu=Xc("".charAt),Pu=Xc([].join),Ru=Xc([].push),ku=Xc("".replace),Cu=Xc([].shift),Uu=Xc([].splice),Nu=Xc("".split),$u=Xc("".slice),ju=/\+/g,Bu=Array(4),Mu=function(e){return Bu[e-1]||(Bu[e-1]=Lu("((?:%[\\da-f]{2}){"+e+"})","gi"))},Du=function(e){try{return Su(e)}catch(t){return e}},Fu=function(e){var t=ku(e,ju," "),n=4;try{return Su(t)}catch(e){for(;n;)t=ku(t,Mu(n--),Du);return t}},zu=/[!'()~]|%20/g,Wu={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Gu=function(e){return Wu[e]},Vu=function(e){return ku(Tu(e),zu,Gu)},Yu=function(e,t){if(e<t)throw Au("Not enough arguments")},qu=tu((function(e,t){yu(this,{type:"URLSearchParamsIterator",iterator:pu(mu(e).entries),kind:t})}),"Iterator",(function(){var e=_u(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),!0),Hu=function(e){this.entries=[],this.url=null,void 0!==e&&(cu(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Iu(e,0)?$u(e,1):e:uu(e)))};Hu.prototype={type:"URLSearchParams",bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,i,a,s,l=hu(e);if(l)for(n=(t=pu(e,l)).next;!(r=Kc(n,t)).done;){if(i=(o=pu(lu(r.value))).next,(a=Kc(i,o)).done||(s=Kc(i,o)).done||!Kc(i,o).done)throw Au("Expected sequence with length 2");Ru(this.entries,{key:uu(a.value),value:uu(s.value)})}else for(var c in e)iu(e,c)&&Ru(this.entries,{key:c,value:uu(e[c])})},parseQuery:function(e){if(e)for(var t,n,r=Nu(e,"&"),o=0;o<r.length;)(t=r[o++]).length&&(n=Nu(t,"="),Ru(this.entries,{key:Fu(Cu(n)),value:Fu(Pu(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],Ru(n,Vu(e.key)+"="+Vu(e.value));return Pu(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Ku=function(){ru(this,Xu);var e=arguments.length>0?arguments[0]:void 0;yu(this,new Hu(e))},Xu=Ku.prototype;if(Qc(Xu,{append:function(e,t){Yu(arguments.length,2);var n=mu(this);Ru(n.entries,{key:uu(e),value:uu(t)}),n.updateURL()},delete:function(e){Yu(arguments.length,1);for(var t=mu(this),n=t.entries,r=uu(e),o=0;o<n.length;)n[o].key===r?Uu(n,o,1):o++;t.updateURL()},get:function(e){Yu(arguments.length,1);for(var t=mu(this).entries,n=uu(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){Yu(arguments.length,1);for(var t=mu(this).entries,n=uu(e),r=[],o=0;o<t.length;o++)t[o].key===n&&Ru(r,t[o].value);return r},has:function(e){Yu(arguments.length,1);for(var t=mu(this).entries,n=uu(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){Yu(arguments.length,1);for(var n,r=mu(this),o=r.entries,i=!1,a=uu(e),s=uu(t),l=0;l<o.length;l++)(n=o[l]).key===a&&(i?Uu(o,l--,1):(i=!0,n.value=s));i||Ru(o,{key:a,value:s}),r.updateURL()},sort:function(){var e=mu(this);gu(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=mu(this).entries,r=au(e,arguments.length>1?arguments[1]:void 0),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new qu(this,"keys")},values:function(){return new qu(this,"values")},entries:function(){return new qu(this,"entries")}},{enumerable:!0}),Jc(Xu,vu,Xu.entries,{name:"entries"}),Jc(Xu,"toString",(function(){return mu(this).serialize()}),{enumerable:!0}),eu(Ku,"URLSearchParams"),Yc({global:!0,forced:!Zc},{URLSearchParams:Ku}),!Zc&&ou(Eu)){var Zu=Xc(Ou.has),Ju=Xc(Ou.set),Qu=function(e){if(cu(e)){var t,n=e.body;if("URLSearchParams"===su(n))return t=e.headers?new Eu(e.headers):new Eu,Zu(t,"content-type")||Ju(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),du(e,{body:fu(0,uu(n)),headers:fu(0,t)})}return e};if(ou(wu)&&Yc({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return wu(e,arguments.length>1?Qu(arguments[1]):{})}}),ou(bu)){var ed=function(e){return ru(this,xu),new bu(e,arguments.length>1?Qu(arguments[1]):{})};xu.constructor=ed,ed.prototype=xu,Yc({global:!0,forced:!0},{Request:ed})}}var td={exports:{}},nd=qe("iterator"),rd=!1;try{var od=0,id={next:function(){return{done:!!od++}},return:function(){rd=!0}};id[nd]=function(){return this},Array.from(id,(function(){throw 2}))}catch(e){}var ad,sd,ld,cd="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,ud=cd,dd=i,fd=n,pd=N,hd=j,gd=Re,vd=ei,yd=le,md=Ut,_d=Nt.exports,wd=wt.f,bd=z,Ed=ul,xd=jl,Od=qe,Ld=$e,Ad=fd.Int8Array,Sd=Ad&&Ad.prototype,Td=fd.Uint8ClampedArray,Id=Td&&Td.prototype,Pd=Ad&&Ed(Ad),Rd=Sd&&Ed(Sd),kd=Object.prototype,Cd=fd.TypeError,Ud=Od("toStringTag"),Nd=Ld("TYPED_ARRAY_TAG"),$d=Ld("TYPED_ARRAY_CONSTRUCTOR"),jd=ud&&!!xd&&"Opera"!==vd(fd.opera),Bd=!1,Md={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Dd={BigInt64Array:8,BigUint64Array:8},Fd=function(e){if(!hd(e))return!1;var t=vd(e);return gd(Md,t)||gd(Dd,t)};for(ad in Md)(ld=(sd=fd[ad])&&sd.prototype)?md(ld,$d,sd):jd=!1;for(ad in Dd)(ld=(sd=fd[ad])&&sd.prototype)&&md(ld,$d,sd);if((!jd||!pd(Pd)||Pd===Function.prototype)&&(Pd=function(){throw Cd("Incorrect invocation")},jd))for(ad in Md)fd[ad]&&xd(fd[ad],Pd);if((!jd||!Rd||Rd===kd)&&(Rd=Pd.prototype,jd))for(ad in Md)fd[ad]&&xd(fd[ad].prototype,Rd);if(jd&&Ed(Id)!==Rd&&xd(Id,Rd),dd&&!gd(Rd,Ud))for(ad in Bd=!0,wd(Rd,Ud,{get:function(){return hd(this)?this[Nd]:void 0}}),Md)fd[ad]&&md(fd[ad],Nd,ad);var zd={NATIVE_ARRAY_BUFFER_VIEWS:jd,TYPED_ARRAY_CONSTRUCTOR:$d,TYPED_ARRAY_TAG:Bd&&Nd,aTypedArray:function(e){if(Fd(e))return e;throw Cd("Target is not a typed array")},aTypedArrayConstructor:function(e){if(pd(e)&&(!xd||bd(Pd,e)))return e;throw Cd(yd(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n){if(dd){if(n)for(var r in Md){var o=fd[r];if(o&&gd(o.prototype,e))try{delete o.prototype[e]}catch(e){}}Rd[e]&&!n||_d(Rd,e,n?t:jd&&Sd[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(dd){if(xd){if(n)for(r in Md)if((o=fd[r])&&gd(o,e))try{delete o[e]}catch(e){}if(Pd[e]&&!n)return;try{return _d(Pd,e,n?t:jd&&Pd[e]||t)}catch(e){}}for(r in Md)!(o=fd[r])||o[e]&&!n||_d(o,e,t)}},isView:function(e){if(!hd(e))return!1;var t=vd(e);return"DataView"===t||gd(Md,t)||gd(Dd,t)},isTypedArray:Fd,TypedArray:Pd,TypedArrayPrototype:Rd},Wd=n,Gd=o,Vd=function(e,t){if(!t&&!rd)return!1;var n=!1;try{var r={};r[nd]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Yd=zd.NATIVE_ARRAY_BUFFER_VIEWS,qd=Wd.ArrayBuffer,Hd=Wd.Int8Array,Kd=!Yd||!Gd((function(){Hd(1)}))||!Gd((function(){new Hd(-1)}))||!Vd((function(e){new Hd,new Hd(null),new Hd(1.5),new Hd(e)}),!0)||Gd((function(){return 1!==new Hd(new qd(2),1,void 0).length})),Xd=Nn,Zd=zn,Jd=n.RangeError,Qd=function(e){if(void 0===e)return 0;var t=Xd(e),n=Zd(t);if(t!==n)throw Jd("Wrong length or index");return n},ef=n.Array,tf=Math.abs,nf=Math.pow,rf=Math.floor,of=Math.log,af=Math.LN2,sf=n,lf=_,cf=i,uf=cd,df=bn,ff=Ut,pf=fc,hf=o,gf=gc,vf=Nn,yf=zn,mf=Qd,_f={pack:function(e,t,n){var r,o,i,a=ef(n),s=8*n-t-1,l=(1<<s)-1,c=l>>1,u=23===t?nf(2,-24)-nf(2,-77):0,d=e<0||0===e&&1/e<0?1:0,f=0;for((e=tf(e))!=e||e===1/0?(o=e!=e?1:0,r=l):(r=rf(of(e)/af),e*(i=nf(2,-r))<1&&(r--,i*=2),(e+=r+c>=1?u/i:u*nf(2,1-c))*i>=2&&(r++,i/=2),r+c>=l?(o=0,r=l):r+c>=1?(o=(e*i-1)*nf(2,t),r+=c):(o=e*nf(2,c-1)*nf(2,t),r=0));t>=8;)a[f++]=255&o,o/=256,t-=8;for(r=r<<t|o,s+=t;s>0;)a[f++]=255&r,r/=256,s-=8;return a[--f]|=128*d,a},unpack:function(e,t){var n,r=e.length,o=8*r-t-1,i=(1<<o)-1,a=i>>1,s=o-7,l=r-1,c=e[l--],u=127&c;for(c>>=7;s>0;)u=256*u+e[l--],s-=8;for(n=u&(1<<-s)-1,u>>=-s,s+=t;s>0;)n=256*n+e[l--],s-=8;if(0===u)u=1-a;else{if(u===i)return n?NaN:c?-1/0:1/0;n+=nf(2,t),u-=a}return(c?-1:1)*n*nf(2,u-t)}},wf=ul,bf=jl,Ef=kn.f,xf=wt.f,Of=jr,Lf=Mc,Af=El,Sf=df.PROPER,Tf=df.CONFIGURABLE,If=gn.get,Pf=gn.set,Rf=sf.ArrayBuffer,kf=Rf,Cf=kf&&kf.prototype,Uf=sf.DataView,Nf=Uf&&Uf.prototype,$f=Object.prototype,jf=sf.Array,Bf=sf.RangeError,Mf=lf(Of),Df=lf([].reverse),Ff=_f.pack,zf=_f.unpack,Wf=function(e){return[255&e]},Gf=function(e){return[255&e,e>>8&255]},Vf=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Yf=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},qf=function(e){return Ff(e,23,4)},Hf=function(e){return Ff(e,52,8)},Kf=function(e,t){xf(e.prototype,t,{get:function(){return If(this)[t]}})},Xf=function(e,t,n,r){var o=mf(n),i=If(e);if(o+t>i.byteLength)throw Bf("Wrong index");var a=If(i.buffer).bytes,s=o+i.byteOffset,l=Lf(a,s,s+t);return r?l:Df(l)},Zf=function(e,t,n,r,o,i){var a=mf(n),s=If(e);if(a+t>s.byteLength)throw Bf("Wrong index");for(var l=If(s.buffer).bytes,c=a+s.byteOffset,u=r(+o),d=0;d<t;d++)l[c+d]=u[i?d:t-d-1]};if(uf){var Jf=Sf&&"ArrayBuffer"!==Rf.name;if(hf((function(){Rf(1)}))&&hf((function(){new Rf(-1)}))&&!hf((function(){return new Rf,new Rf(1.5),new Rf(NaN),Jf&&!Tf})))Jf&&Tf&&ff(Rf,"name","ArrayBuffer");else{(kf=function(e){return gf(this,Cf),new Rf(mf(e))}).prototype=Cf;for(var Qf,ep=Ef(Rf),tp=0;ep.length>tp;)(Qf=ep[tp++])in kf||ff(kf,Qf,Rf[Qf]);Cf.constructor=kf}bf&&wf(Nf)!==$f&&bf(Nf,$f);var np=new Uf(new kf(2)),rp=lf(Nf.setInt8);np.setInt8(0,2147483648),np.setInt8(1,2147483649),!np.getInt8(0)&&np.getInt8(1)||pf(Nf,{setInt8:function(e,t){rp(this,e,t<<24>>24)},setUint8:function(e,t){rp(this,e,t<<24>>24)}},{unsafe:!0})}else Cf=(kf=function(e){gf(this,Cf);var t=mf(e);Pf(this,{bytes:Mf(jf(t),0),byteLength:t}),cf||(this.byteLength=t)}).prototype,Nf=(Uf=function(e,t,n){gf(this,Nf),gf(e,Cf);var r=If(e).byteLength,o=vf(t);if(o<0||o>r)throw Bf("Wrong offset");if(o+(n=void 0===n?r-o:yf(n))>r)throw Bf("Wrong length");Pf(this,{buffer:e,byteLength:n,byteOffset:o}),cf||(this.buffer=e,this.byteLength=n,this.byteOffset=o)}).prototype,cf&&(Kf(kf,"byteLength"),Kf(Uf,"buffer"),Kf(Uf,"byteLength"),Kf(Uf,"byteOffset")),pf(Nf,{getInt8:function(e){return Xf(this,1,e)[0]<<24>>24},getUint8:function(e){return Xf(this,1,e)[0]},getInt16:function(e){var t=Xf(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Xf(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return Yf(Xf(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return Yf(Xf(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return zf(Xf(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return zf(Xf(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){Zf(this,1,e,Wf,t)},setUint8:function(e,t){Zf(this,1,e,Wf,t)},setInt16:function(e,t){Zf(this,2,e,Gf,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){Zf(this,2,e,Gf,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){Zf(this,4,e,Vf,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){Zf(this,4,e,Vf,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){Zf(this,4,e,qf,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){Zf(this,8,e,Hf,t,arguments.length>2?arguments[2]:void 0)}});Af(kf,"ArrayBuffer"),Af(Uf,"DataView");var op={ArrayBuffer:kf,DataView:Uf},ip=j,ap=Math.floor,sp=Number.isInteger||function(e){return!ip(e)&&isFinite(e)&&ap(e)===e},lp=Nn,cp=n.RangeError,up=function(e){var t=lp(e);if(t<0)throw cp("The argument can't be less than 0");return t},dp=n.RangeError,fp=function(e,t){var n=up(e);if(n%t)throw dp("Wrong offset");return n},pp=_,hp=o,gp=N,vp=ei,yp=zt,mp=function(){},_p=[],wp=F("Reflect","construct"),bp=/^\s*(?:class|function)\b/,Ep=pp(bp.exec),xp=!bp.exec(mp),Op=function(e){if(!gp(e))return!1;try{return wp(mp,_p,e),!0}catch(e){return!1}},Lp=!wp||hp((function(){var e;return Op(Op.call)||!Op(Object)||!Op((function(){e=!0}))||e}))?function(e){if(!gp(e))return!1;switch(vp(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return xp||!!Ep(bp,yp(e))}:Op,Ap=Lp,Sp=le,Tp=n.TypeError,Ip=el,Pp=qe("iterator"),Rp=Array.prototype,kp=mc,Cp=s,Up=function(e){if(Ap(e))return e;throw Tp(Sp(e)+" is not a constructor")},Np=Te,$p=Gn,jp=Pc,Bp=xc,Mp=function(e){return void 0!==e&&(Ip.Array===e||Rp[Pp]===e)},Dp=zd.aTypedArrayConstructor,Fp=x,zp=n,Wp=Array.isArray||function(e){return"Array"==Fp(e)},Gp=Lp,Vp=j,Yp=qe("species"),qp=zp.Array,Hp=function(e){var t;return Wp(e)&&(t=e.constructor,(Gp(t)&&(t===qp||Wp(t.prototype))||Vp(t)&&null===(t=t[Yp]))&&(t=void 0)),void 0===t?qp:t},Kp=mc,Xp=I,Zp=Te,Jp=Gn,Qp=function(e,t){return new(Hp(e))(0===t?0:t)},eh=_([].push),th=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(l,c,u,d){for(var f,p,h=Zp(l),g=Xp(h),v=Kp(c,u),y=Jp(g),m=0,_=d||Qp,w=t?_(l,y):n||a?_(l,0):void 0;y>m;m++)if((s||m in g)&&(p=v(f=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:eh(w,f)}else switch(e){case 4:return!1;case 7:eh(w,f)}return i?-1:r||o?o:w}},nh={forEach:th(0),map:th(1),filter:th(2),some:th(3),every:th(4),find:th(5),findIndex:th(6),filterReject:th(7)},rh=F,oh=wt,ih=i,ah=qe("species"),sh=N,lh=j,ch=jl,uh=Cr,dh=n,fh=s,ph=i,hh=Kd,gh=zd,vh=op,yh=gc,mh=h,_h=Ut,wh=sp,bh=zn,Eh=Qd,xh=fp,Oh=ot,Lh=Re,Ah=ei,Sh=j,Th=ae,Ih=oo,Ph=z,Rh=jl,kh=kn.f,Ch=function(e){var t,n,r,o,i,a,s=Up(this),l=Np(e),c=arguments.length,u=c>1?arguments[1]:void 0,d=void 0!==u,f=Bp(l);if(f&&!Mp(f))for(a=(i=jp(l,f)).next,l=[];!(o=Cp(a,i)).done;)l.push(o.value);for(d&&c>2&&(u=kp(u,arguments[2])),n=$p(l),r=new(Dp(s))(n),t=0;n>t;t++)r[t]=d?u(l[t],t):l[t];return r},Uh=nh.forEach,Nh=function(e){var t=rh(e),n=oh.f;ih&&t&&!t[ah]&&n(t,ah,{configurable:!0,get:function(){return this}})},$h=wt,jh=r,Bh=function(e,t,n){var r,o;return ch&&sh(r=t.constructor)&&r!==n&&lh(o=r.prototype)&&o!==n.prototype&&ch(e,o),e},Mh=gn.get,Dh=gn.set,Fh=$h.f,zh=jh.f,Wh=Math.round,Gh=dh.RangeError,Vh=vh.ArrayBuffer,Yh=Vh.prototype,qh=vh.DataView,Hh=gh.NATIVE_ARRAY_BUFFER_VIEWS,Kh=gh.TYPED_ARRAY_CONSTRUCTOR,Xh=gh.TYPED_ARRAY_TAG,Zh=gh.TypedArray,Jh=gh.TypedArrayPrototype,Qh=gh.aTypedArrayConstructor,eg=gh.isTypedArray,tg=function(e,t){Qh(e);for(var n=0,r=t.length,o=new e(r);r>n;)o[n]=t[n++];return o},ng=function(e,t){Fh(e,t,{get:function(){return Mh(this)[t]}})},rg=function(e){var t;return Ph(Yh,e)||"ArrayBuffer"==(t=Ah(e))||"SharedArrayBuffer"==t},og=function(e,t){return eg(e)&&!Th(t)&&t in e&&wh(+t)&&t>=0},ig=function(e,t){return t=Oh(t),og(e,t)?mh(2,e[t]):zh(e,t)},ag=function(e,t,n){return t=Oh(t),!(og(e,t)&&Sh(n)&&Lh(n,"value"))||Lh(n,"get")||Lh(n,"set")||n.configurable||Lh(n,"writable")&&!n.writable||Lh(n,"enumerable")&&!n.enumerable?Fh(e,t,n):(e[t]=n.value,e)};ph?(Hh||(jh.f=ig,$h.f=ag,ng(Jh,"buffer"),ng(Jh,"byteOffset"),ng(Jh,"byteLength"),ng(Jh,"length")),uh({target:"Object",stat:!0,forced:!Hh},{getOwnPropertyDescriptor:ig,defineProperty:ag}),td.exports=function(e,t,n){var r=e.match(/\d+$/)[0]/8,o=e+(n?"Clamped":"")+"Array",i="get"+e,a="set"+e,s=dh[o],l=s,c=l&&l.prototype,u={},d=function(e,t){Fh(e,t,{get:function(){return function(e,t){var n=Mh(e);return n.view[i](t*r+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,o){var i=Mh(e);n&&(o=(o=Wh(o))<0?0:o>255?255:255&o),i.view[a](t*r+i.byteOffset,o,!0)}(this,t,e)},enumerable:!0})};Hh?hh&&(l=t((function(e,t,n,o){return yh(e,c),Bh(Sh(t)?rg(t)?void 0!==o?new s(t,xh(n,r),o):void 0!==n?new s(t,xh(n,r)):new s(t):eg(t)?tg(l,t):fh(Ch,l,t):new s(Eh(t)),e,l)})),Rh&&Rh(l,Zh),Uh(kh(s),(function(e){e in l||_h(l,e,s[e])})),l.prototype=c):(l=t((function(e,t,n,o){yh(e,c);var i,a,s,u=0,f=0;if(Sh(t)){if(!rg(t))return eg(t)?tg(l,t):fh(Ch,l,t);i=t,f=xh(n,r);var p=t.byteLength;if(void 0===o){if(p%r)throw Gh("Wrong length");if((a=p-f)<0)throw Gh("Wrong length")}else if((a=bh(o)*r)+f>p)throw Gh("Wrong length");s=a/r}else s=Eh(t),i=new Vh(a=s*r);for(Dh(e,{buffer:i,byteOffset:f,byteLength:a,length:s,view:new qh(i)});u<s;)d(e,u++)})),Rh&&Rh(l,Zh),c=l.prototype=Ih(Jh)),c.constructor!==l&&_h(c,"constructor",l),_h(c,Kh,l),Xh&&_h(c,Xh,o),u[o]=l,uh({global:!0,forced:l!=s,sham:!Hh},u),"BYTES_PER_ELEMENT"in l||_h(l,"BYTES_PER_ELEMENT",r),"BYTES_PER_ELEMENT"in c||_h(c,"BYTES_PER_ELEMENT",r),Nh(o)}):td.exports=function(){},(0,td.exports)("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}));var sg=zd,lg=Gn,cg=fp,ug=Te,dg=o,fg=n.RangeError,pg=sg.aTypedArray;(0,sg.exportTypedArrayMethod)("set",(function(e){pg(this);var t=cg(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=ug(e),o=lg(r),i=0;if(o+t>n)throw fg("Wrong length");for(;i<o;)this[t+i]=r[i++]}),dg((function(){new Int8Array(1).set({})})));var hg=W.match(/firefox\/(\d+)/i),gg=!!hg&&+hg[1],vg=/MSIE|Trident/.test(W),yg=W.match(/AppleWebKit\/(\d+)\./),mg=!!yg&&+yg[1],_g=n,wg=_,bg=o,Eg=fe,xg=Vc,Og=zd,Lg=gg,Ag=vg,Sg=X,Tg=mg,Ig=_g.Array,Pg=Og.aTypedArray,Rg=Og.exportTypedArrayMethod,kg=_g.Uint16Array,Cg=kg&&wg(kg.prototype.sort),Ug=!(!Cg||bg((function(){Cg(new kg(2),null)}))&&bg((function(){Cg(new kg(2),{})}))),Ng=!!Cg&&!bg((function(){if(Sg)return Sg<74;if(Lg)return Lg<67;if(Ag)return!0;if(Tg)return Tg<602;var e,t,n=new kg(516),r=Ig(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(Cg(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));Rg("sort",(function(e){return void 0!==e&&Eg(e),Ng?Cg(this,e):xg(Pg(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!Ng||Ug),(0,td.exports)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}));const $g=window.crypto||window.msCrypto,jg=e=>JSON.parse(decodeURIComponent(escape(atob(e.split(".")[1])))),Bg=e=>{const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";return Array.from({length:e}).fill(null).map((()=>t.charAt(Math.floor((()=>{const[e]=$g.getRandomValues(new Uint32Array(1));return e/2**32})()*t.length)))).join("")},Mg=e=>String.fromCharCode.apply(null,new Uint8Array(e)),Dg=e=>{const t=(new TextEncoder).encode(e),n=$g.subtle.digest("SHA-256",t);return n instanceof Promise?n:new Promise(((e,t)=>{const r=n;r.oncomplete=t=>e(t.target.result),r.onerror=e=>t(e.toString())}))},Fg=e=>window.btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),zg=e=>e.split("/").slice(0,3).join("/"),Wg=()=>Ro.get("OL_ID");let Gg;const Vg=(e,t)=>{const n=Bg(111),r=Bg(111);return Dg(r).then((o=>{const i=Fg(Mg(o));return(e=>{let{clientId:t,redirectUrl:n,scope:r,state:o,codeChallenge:i}=e;const a=new URLSearchParams("");a.set("response_type","code"),a.set("client_id",t),a.set("redirect_uri",n),a.set("scope",r),a.set("state",o),a.set("code_challenge",i),a.set("code_challenge_method","S256"),window.location.href.length<=1024&&a.set("continue_url",window.location.href);const s=Wg();return fetch(`${Gg.authProviderUrl}/auth/silent?${a.toString()}`,{credentials:"include",headers:s?{"ol-id":s}:void 0})})({...t,olId:e,state:n,codeChallenge:i}).then((o=>{if(401===o.status){const n=Wg();return!(e===n||!n)&&Vg(n,t)}return 200===o.status&&o.json().then((e=>{const t=e.data.redirectUrl,[,o]=t.split("?"),i=new URLSearchParams(o),a=i.get("code"),s=i.get("state");return!(!a||n!=s)&&{code:a,codeVerifier:r}}))}))}))};(e=>{let{createFlow:t,name:n}=e;Uo.debug(`script v1.35.0 ES6 ${n} loaded`);const r=Es();if(r&&!(()=>{const e=document.head.querySelector("script[data-olwbranch]");return!!e&&(Uo.debug("branch script element already loaded",e),!0)})())return Uo.debug(`branch cookie "${r}" spotted, reinitializing...`),void(e=>{const t=document.createElement("script");return new Promise(((n,r)=>{t.addEventListener("load",(()=>n())),t.addEventListener("error",(()=>r())),t.src=`https://onelogin.wpcdn.pl/onelogin/${e}/olwidget.js`,t.async=!0,t.defer=!0,t.dataset.olwbranch=e,t.crossOrigin="anonymous",document.head.append(t)}))})(r).then((()=>{Uo.debug(`widget's branch version "${r}" script loaded`)})).catch((()=>{Uo.error(`error loading widget's branch version "${r}" script`)}));let o=!1;const i={createWidget:e=>{if(o)throw new Error("Creating multiple widgets not allowed");(()=>{if(!window.WP&&!document.querySelector("#wpjslib")){void 0===window.wp_sn&&(window.wp_sn="onelogin_widget");const e=document.createElement("script");e.setAttribute("id","wpjslib"),e.setAttribute("async",""),e.setAttribute("defer",""),e.setAttribute("crossorigin",""),e.setAttribute("src","https://std.wpcdn.pl/wpjslib/wpjslib-lite.js"),document.head.append(e)}})(),o=!0,Uo.info("widget v1.35.0 initialized");const n=(e=>{e.domain&&($o=e.domain);const t=e.stateStorage||"LOCAL_STORAGE";return Uo.debug(`storage ${t} initialized`),Mo[t]})(e),r=t(e,n),i=e.locale||Xs,a=Bs({flow:r,locale:i});return{...r,...a,enableOneTap:function(t){return void 0===t&&(t={}),Ks({...e,...t,login:r.login,getUserData:r.getUserData})}}},setLogLevel:Uo.setLevel,setBranch:xs};Object.defineProperty(window,"OneLogin",{value:Object.freeze(i),writable:!1,enumerable:!0}),Ds(),null==window.olwAsync||window.olwAsync()})({createFlow:(e,t)=>{const{authUrl:n,clientId:r,redirectUrl:o,scope:i,postLogoutRedirectUrl:a,passContinueUrl:s,autologinDomain:l}=e;let c;const u=()=>{Uo.debug("clearing storage"),t.clear("ONELOGIN_ID_TOKEN"),t.clear("ONELOGIN_ACCESS_TOKEN"),t.clear("ONELOGIN_REFRESH_TOKEN"),document.dispatchEvent(new CustomEvent("ol-not-logged"))},d=()=>{const e=t.load("ONELOGIN_ID_TOKEN");if(!e)throw u(),new Error("No token in storage");return jg(e)},f=()=>{const e=t.load("ONELOGIN_REFRESH_TOKEN");return e?(e=>{let{clientId:t,refreshToken:n}=e;return fetch(`${Gg.authProviderUrl}/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:`grant_type=refresh_token&client_id=${t}&refresh_token=${n}`})})({clientId:r,refreshToken:e}).then((e=>200!==e.status?(Uo.debug("current session is invalid"),u(),!1):e.json().then((e=>(t.save("ONELOGIN_ACCESS_TOKEN",e.access_token),t.save("ONELOGIN_REFRESH_TOKEN",e.refresh_token),!0))))):Promise.resolve(!1)},p=e=>{clearTimeout(c),c=setTimeout(f,1e3*(e-30))},h=e=>{let{code:i,codeVerifier:a,continueUrl:s}=e;return(e=>{let{clientId:t,redirectUrl:n,code:r,codeVerifier:o}=e;return fetch(`${Gg.authProviderUrl}/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:`grant_type=authorization_code&client_id=${t}&redirect_uri=${n}&code=${r}&code_verifier=${o}`})})({clientId:r,code:i,codeVerifier:a,redirectUrl:o}).then((e=>e.json())).then((e=>{if(!e.id_token)throw new Error("No token from response");const o=jg(e.id_token);if(!o.aud.includes(r))throw new Error("Aud differs from clientId!");if(o.iss!==`${zg(n)}/api/v1/public/ol-authprovider`)throw new Error("Wrong ISS");!function(e,t){void 0===t&&(t=".wp.pl");const n=new Date(Date.now()+12096e5);Uo.debug("setting OL_ID with: ",{adId:e,domain:t,expires:n}),Ro.set("OL_ID",e,{domain:t,expires:n})}(o.ad_id,l),t.save("ONELOGIN_ACCESS_TOKEN",e.access_token),t.save("ONELOGIN_REFRESH_TOKEN",e.refresh_token),p(e.expires_in),(e=>{Uo.debug("setting user token"),t.save("ONELOGIN_ID_TOKEN",e),document.dispatchEvent(new CustomEvent("ol-login"))})(e.id_token),s&&window.location.assign(decodeURIComponent(s))}))},g=()=>{const e=t.load("ONELOGIN_ACCESS_TOKEN");return e?(e=>fetch(`${Gg.authProviderUrl}/introspect`,{headers:{Authorization:`Bearer ${e}`},method:"POST"}))(e).then((e=>200===e.status?e.json().then((e=>{const t=Math.floor(Date.now()/1e3),n=e.exp-t;return p(n),!0})):e.status.toString().startsWith("4")?f():(Uo.error("invalid response during introspect"),u(),!1))):Promise.resolve(!1)};return(()=>{(e=>{const t=zg(e.authUrl);Gg=Object.freeze({origin:t,authProviderUrl:`${t}/api/v1/public/ol-authprovider`})})(e),setInterval(g,6e4);const n=window.location.href;n.startsWith(decodeURI(o))&&n.includes("code=")?(()=>{const e=new URLSearchParams(window.location.search),n=e.get("state"),r=e.get("code"),i=e.get("error"),a=e.get("continue_url");if(!r)throw new Error("No code from response");if(i)throw new Error(i);history.replaceState({},"Logowanie 1L",o);const s=t.load("ONELOGIN_PKCE_STATE"),l=t.load("ONELOGIN_PKCE_CODE_VERIFIER");if(t.clear("ONELOGIN_PKCE_STATE"),t.clear("ONELOGIN_PKCE_CODE_VERIFIER"),n!==s)throw console.error({state:n,storageState:s}),new Error("State differs from storage");if(!l)throw new Error("There is no `code_verifier` in storage");if(!s)throw new Error("There is no `state` in storage");h({code:r,codeVerifier:l,continueUrl:a})})():g().then((n=>{n?(Uo.debug("user logged in"),document.dispatchEvent(new CustomEvent("ol-login"))):(Uo.debug("no active session found"),(e=>{let{storage:t,callback:n,config:r}=e;if(t.load("ONELOGIN_ACCESS_TOKEN"))return void Uo.debug("Token in storage - autologin denied");const o=Wg();o?(Uo.debug("autologin - data found; initializing..."),Vg(o,r).then((e=>{e?(Uo.debug("autologin - accepted; token granted"),n(e)):Uo.debug("autologin - denied; session no longer active")}))):Uo.debug("autologin - no data found")})({config:e,storage:t,callback:h}),document.dispatchEvent(new CustomEvent("ol-not-logged")))}))})(),{login:async e=>{const a="boolean"==typeof e&&e,l="string"==typeof e?e:void 0,c=Bg(111);t.save("ONELOGIN_PKCE_STATE",c);const u=Bg(111);t.save("ONELOGIN_PKCE_CODE_VERIFIER",u);const d=await Dg(u),f=Fg(Mg(d)),p=new URLSearchParams("");a&&p.set("flow","select_account"),l&&(p.set("flow","onetap"),p.set("onetap_user",l)),p.set("response_type","code"),p.set("client_id",r),p.set("redirect_uri",o),p.set("scope",i),p.set("state",c),p.set("code_challenge",f),p.set("code_challenge_method","S256"),s&&window.location.href.length<=1024&&p.set("continue_url",window.location.href),window.location.assign(`${n}?${p.toString()}`)},logout:()=>{Uo.debug("logout initiated");try{const e=d().l_hint;u(),Uo.debug("removing autologin cookie"),Ro.remove("OL_ID"),window.location.assign(`${zg(n)}/api/v1/public/ol-authprovider/logout?l_hint=${e}&post_logout_redirect_uri=${a}`)}catch(e){console.error(e)}},getUserData:()=>{const{first_name:e,last_name:t,sub:n,avatar_url:r}=d();return{first_name:e,last_name:t,email:n,avatar_url:r}}}},name:"PKCE"});
//# sourceMappingURL=olwidget-pkce.es6.js.map
