var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t={},n={get exports(){return t},set exports(e){t=e}},r=function(e){return e&&e.Math==Math&&e},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")(),i={},a=function(e){try{return!!e()}catch(e){return!0}},s=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l=!a((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),c=l,u=Function.prototype.call,d=c?u.bind(u):function(){return u.apply(u,arguments)},p={},f={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,g=h&&!f.call({1:2},1);p.f=g?function(e){var t=h(this,e);return!!t&&t.enumerable}:f;var m,y,v=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_=l,w=Function.prototype,b=w.call,E=_&&w.bind.bind(b,b),L=_?E:function(e){return function(){return b.apply(e,arguments)}},x=L,O=x({}.toString),S=x("".slice),T=function(e){return S(O(e),8,-1)},A=a,P=T,C=Object,I=L("".split),N=A((function(){return!C("z").propertyIsEnumerable(0)}))?function(e){return"String"==P(e)?I(e,""):C(e)}:C,k=function(e){return null==e},U=k,j=TypeError,$=function(e){if(U(e))throw j("Can't call method on "+e);return e},R=N,B=$,D=function(e){return R(B(e))},z="object"==typeof document&&document.all,M={all:z,IS_HTMLDDA:void 0===z&&void 0!==z},F=M.all,W=M.IS_HTMLDDA?function(e){return"function"==typeof e||e===F}:function(e){return"function"==typeof e},G=W,V=M.all,H=M.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:G(e)||e===V}:function(e){return"object"==typeof e?null!==e:G(e)},q=o,Y=W,K=function(e){return Y(e)?e:void 0},X=function(e,t){return arguments.length<2?K(q[e]):q[e]&&q[e][t]},Z=L({}.isPrototypeOf),J=o,Q="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ee=J.process,te=J.Deno,ne=ee&&ee.versions||te&&te.version,re=ne&&ne.v8;re&&(y=(m=re.split("."))[0]>0&&m[0]<4?1:+(m[0]+m[1])),!y&&Q&&(!(m=Q.match(/Edge\/(\d+)/))||m[1]>=74)&&(m=Q.match(/Chrome\/(\d+)/))&&(y=+m[1]);var oe=y,ie=a,ae=!!Object.getOwnPropertySymbols&&!ie((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&oe&&oe<41})),se=ae&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,le=X,ce=W,ue=Z,de=Object,pe=se?function(e){return"symbol"==typeof e}:function(e){var t=le("Symbol");return ce(t)&&ue(t.prototype,de(e))},fe=String,he=function(e){try{return fe(e)}catch(e){return"Object"}},ge=W,me=he,ye=TypeError,ve=function(e){if(ge(e))return e;throw ye(me(e)+" is not a function")},_e=ve,we=k,be=d,Ee=W,Le=H,xe=TypeError,Oe={},Se={get exports(){return Oe},set exports(e){Oe=e}},Te=o,Ae=Object.defineProperty,Pe=function(e,t){try{Ae(Te,e,{value:t,configurable:!0,writable:!0})}catch(n){Te[e]=t}return t},Ce=Pe,Ie=o["__core-js_shared__"]||Ce("__core-js_shared__",{}),Ne=Ie;(Se.exports=function(e,t){return Ne[e]||(Ne[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.28.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE",source:"https://github.com/zloirock/core-js"});var ke=$,Ue=Object,je=function(e){return Ue(ke(e))},$e=je,Re=L({}.hasOwnProperty),Be=Object.hasOwn||function(e,t){return Re($e(e),t)},De=L,ze=0,Me=Math.random(),Fe=De(1..toString),We=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Fe(++ze+Me,36)},Ge=Oe,Ve=Be,He=We,qe=ae,Ye=se,Ke=o.Symbol,Xe=Ge("wks"),Ze=Ye?Ke.for||Ke:Ke&&Ke.withoutSetter||He,Je=function(e){return Ve(Xe,e)||(Xe[e]=qe&&Ve(Ke,e)?Ke[e]:Ze("Symbol."+e)),Xe[e]},Qe=d,et=H,tt=pe,nt=function(e,t){var n=e[t];return we(n)?void 0:_e(n)},rt=function(e,t){var n,r;if("string"===t&&Ee(n=e.toString)&&!Le(r=be(n,e)))return r;if(Ee(n=e.valueOf)&&!Le(r=be(n,e)))return r;if("string"!==t&&Ee(n=e.toString)&&!Le(r=be(n,e)))return r;throw xe("Can't convert object to primitive value")},ot=TypeError,it=Je("toPrimitive"),at=function(e,t){if(!et(e)||tt(e))return e;var n,r=nt(e,it);if(r){if(void 0===t&&(t="default"),n=Qe(r,e,t),!et(n)||tt(n))return n;throw ot("Can't convert object to primitive value")}return void 0===t&&(t="number"),rt(e,t)},st=pe,lt=function(e){var t=at(e,"string");return st(t)?t:t+""},ct=H,ut=o.document,dt=ct(ut)&&ct(ut.createElement),pt=function(e){return dt?ut.createElement(e):{}},ft=pt,ht=!s&&!a((function(){return 7!=Object.defineProperty(ft("div"),"a",{get:function(){return 7}}).a})),gt=s,mt=d,yt=p,vt=v,_t=D,wt=lt,bt=Be,Et=ht,Lt=Object.getOwnPropertyDescriptor;i.f=gt?Lt:function(e,t){if(e=_t(e),t=wt(t),Et)try{return Lt(e,t)}catch(e){}if(bt(e,t))return vt(!mt(yt.f,e,t),e[t])};var xt={},Ot=s&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),St=H,Tt=String,At=TypeError,Pt=function(e){if(St(e))return e;throw At(Tt(e)+" is not an object")},Ct=s,It=ht,Nt=Ot,kt=Pt,Ut=lt,jt=TypeError,$t=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor;xt.f=Ct?Nt?function(e,t,n){if(kt(e),t=Ut(t),kt(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=Rt(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return $t(e,t,n)}:$t:function(e,t,n){if(kt(e),t=Ut(t),kt(n),It)try{return $t(e,t,n)}catch(e){}if("get"in n||"set"in n)throw jt("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Bt=xt,Dt=v,zt=s?function(e,t,n){return Bt.f(e,t,Dt(1,n))}:function(e,t,n){return e[t]=n,e},Mt={},Ft={get exports(){return Mt},set exports(e){Mt=e}},Wt=s,Gt=Be,Vt=Function.prototype,Ht=Wt&&Object.getOwnPropertyDescriptor,qt=Gt(Vt,"name"),Yt={EXISTS:qt,PROPER:qt&&"something"===function(){}.name,CONFIGURABLE:qt&&(!Wt||Wt&&Ht(Vt,"name").configurable)},Kt=W,Xt=Ie,Zt=L(Function.toString);Kt(Xt.inspectSource)||(Xt.inspectSource=function(e){return Zt(e)});var Jt,Qt,en,tn=Xt.inspectSource,nn=W,rn=o.WeakMap,on=nn(rn)&&/native code/.test(String(rn)),an=We,sn=Oe("keys"),ln=function(e){return sn[e]||(sn[e]=an(e))},cn={},un=on,dn=o,pn=H,fn=zt,hn=Be,gn=Ie,mn=ln,yn=cn,vn=dn.TypeError,_n=dn.WeakMap;if(un||gn.state){var wn=gn.state||(gn.state=new _n);wn.get=wn.get,wn.has=wn.has,wn.set=wn.set,Jt=function(e,t){if(wn.has(e))throw vn("Object already initialized");return t.facade=e,wn.set(e,t),t},Qt=function(e){return wn.get(e)||{}},en=function(e){return wn.has(e)}}else{var bn=mn("state");yn[bn]=!0,Jt=function(e,t){if(hn(e,bn))throw vn("Object already initialized");return t.facade=e,fn(e,bn,t),t},Qt=function(e){return hn(e,bn)?e[bn]:{}},en=function(e){return hn(e,bn)}}var En={set:Jt,get:Qt,has:en,enforce:function(e){return en(e)?Qt(e):Jt(e,{})},getterFor:function(e){return function(t){var n;if(!pn(t)||(n=Qt(t)).type!==e)throw vn("Incompatible receiver, "+e+" required");return n}}},Ln=L,xn=a,On=W,Sn=Be,Tn=s,An=Yt.CONFIGURABLE,Pn=tn,Cn=En.enforce,In=En.get,Nn=String,kn=Object.defineProperty,Un=Ln("".slice),jn=Ln("".replace),$n=Ln([].join),Rn=Tn&&!xn((function(){return 8!==kn((function(){}),"length",{value:8}).length})),Bn=String(String).split("String"),Dn=Ft.exports=function(e,t,n){"Symbol("===Un(Nn(t),0,7)&&(t="["+jn(Nn(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Sn(e,"name")||An&&e.name!==t)&&(Tn?kn(e,"name",{value:t,configurable:!0}):e.name=t),Rn&&n&&Sn(n,"arity")&&e.length!==n.arity&&kn(e,"length",{value:n.arity});try{n&&Sn(n,"constructor")&&n.constructor?Tn&&kn(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=Cn(e);return Sn(r,"source")||(r.source=$n(Bn,"string"==typeof t?t:"")),e};Function.prototype.toString=Dn((function(){return On(this)&&In(this).source||Pn(this)}),"toString");var zn=W,Mn=xt,Fn=Mt,Wn=Pe,Gn=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(zn(n)&&Fn(n,i,r),r.global)o?e[t]=n:Wn(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:Mn.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},Vn={},Hn=Math.ceil,qn=Math.floor,Yn=Math.trunc||function(e){var t=+e;return(t>0?qn:Hn)(t)},Kn=function(e){var t=+e;return t!=t||0===t?0:Yn(t)},Xn=Kn,Zn=Math.max,Jn=Math.min,Qn=function(e,t){var n=Xn(e);return n<0?Zn(n+t,0):Jn(n,t)},er=Kn,tr=Math.min,nr=function(e){return e>0?tr(er(e),9007199254740991):0},rr=function(e){return nr(e.length)},or=D,ir=Qn,ar=rr,sr=function(e){return function(t,n,r){var o,i=or(t),a=ar(i),s=ir(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}},lr={includes:sr(!0),indexOf:sr(!1)},cr=Be,ur=D,dr=lr.indexOf,pr=cn,fr=L([].push),hr=function(e,t){var n,r=ur(e),o=0,i=[];for(n in r)!cr(pr,n)&&cr(r,n)&&fr(i,n);for(;t.length>o;)cr(r,n=t[o++])&&(~dr(i,n)||fr(i,n));return i},gr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],mr=hr,yr=gr.concat("length","prototype");Vn.f=Object.getOwnPropertyNames||function(e){return mr(e,yr)};var vr={};vr.f=Object.getOwnPropertySymbols;var _r=X,wr=Vn,br=vr,Er=Pt,Lr=L([].concat),xr=_r("Reflect","ownKeys")||function(e){var t=wr.f(Er(e)),n=br.f;return n?Lr(t,n(e)):t},Or=Be,Sr=xr,Tr=i,Ar=xt,Pr=a,Cr=W,Ir=/#|\.prototype\./,Nr=function(e,t){var n=Ur[kr(e)];return n==$r||n!=jr&&(Cr(t)?Pr(t):!!t)},kr=Nr.normalize=function(e){return String(e).replace(Ir,".").toLowerCase()},Ur=Nr.data={},jr=Nr.NATIVE="N",$r=Nr.POLYFILL="P",Rr=Nr,Br=o,Dr=i.f,zr=zt,Mr=Gn,Fr=Pe,Wr=function(e,t,n){for(var r=Sr(t),o=Ar.f,i=Tr.f,a=0;a<r.length;a++){var s=r[a];Or(e,s)||n&&Or(n,s)||o(e,s,i(t,s))}},Gr=Rr,Vr=function(e,t){var n,r,o,i,a,s=e.target,l=e.global,c=e.stat;if(n=l?Br:c?Br[s]||Fr(s,{}):(Br[s]||{}).prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=Dr(n,r))&&a.value:n[r],!Gr(l?r:s+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Wr(i,o)}(e.sham||o&&o.sham)&&zr(i,"sham",!0),Mr(n,r,i,e)}},Hr=je,qr=Qn,Yr=rr,Kr={},Xr=hr,Zr=gr,Jr=Object.keys||function(e){return Xr(e,Zr)},Qr=s,eo=Ot,to=xt,no=Pt,ro=D,oo=Jr;Kr.f=Qr&&!eo?Object.defineProperties:function(e,t){no(e);for(var n,r=ro(t),o=oo(t),i=o.length,a=0;i>a;)to.f(e,n=o[a++],r[n]);return e};var io,ao=X("document","documentElement"),so=Pt,lo=Kr,co=gr,uo=cn,po=ao,fo=pt,ho=ln("IE_PROTO"),go=function(){},mo=function(e){return"<script>"+e+"<\/script>"},yo=function(e){e.write(mo("")),e.close();var t=e.parentWindow.Object;return e=null,t},vo=function(){try{io=new ActiveXObject("htmlfile")}catch(e){}var e,t;vo="undefined"!=typeof document?document.domain&&io?yo(io):((t=fo("iframe")).style.display="none",po.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(mo("document.F=Object")),e.close(),e.F):yo(io);for(var n=co.length;n--;)delete vo.prototype[co[n]];return vo()};uo[ho]=!0;var _o=Je,wo=Object.create||function(e,t){var n;return null!==e?(go.prototype=so(e),n=new go,go.prototype=null,n[ho]=e):n=vo(),void 0===t?n:lo.f(n,t)},bo=xt.f,Eo=_o("unscopables"),Lo=Array.prototype;null==Lo[Eo]&&bo(Lo,Eo,{configurable:!0,value:wo(null)});var xo=function(e){Lo[Eo][e]=!0},Oo=xo;Vr({target:"Array",proto:!0},{fill:function(e){for(var t=Hr(this),n=Yr(t),r=arguments.length,o=qr(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:qr(i,n);a>o;)t[o++]=e;return t}}),Oo("fill");var So=o,To=L,Ao=function(e,t){return To(So[e].prototype[t])}("Array","fill");n.exports=Ao,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=function e(){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:e,headers:{keys:function(){return i},entries:function(){return i.map((function(e){return[e,o.getResponseHeader(e)]}))},get:function(e){return o.getResponseHeader(e)},has:function(e){return null!=o.getResponseHeader(e)}}}};for(var l in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,(function(e,t){a[t]||i.push(a[t]=t)})),n(s())},o.onerror=r,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(l,t.headers[l]);o.send(t.body||null)}))}),function(e){function t(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){var s=r.subarray(0,i);if(o.push(String.fromCharCode.apply(null,s)),!a)return o.join("");e=e.subarray(t),t=0,i=0}var l=e[t++];if(0==(128&l))r[i++]=l;else if(192==(224&l)){var c=63&e[t++];r[i++]=(31&l)<<6|c}else if(224==(240&l)){c=63&e[t++];var u=63&e[t++];r[i++]=(31&l)<<12|c<<6|u}else if(240==(248&l)){var d=(7&l)<<18|(c=63&e[t++])<<12|(u=63&e[t++])<<6|63&e[t++];d>65535&&(d-=65536,r[i++]=d>>>10&1023|55296,d=56320|1023&d),r[i++]=d}}}var n="Failed to ",r=function(e,t,r){if(e)throw new Error("".concat(n).concat(t,": the '").concat(r,"' option is unsupported."))},o="function"==typeof Buffer&&Buffer.from,i=o?function(e){return Buffer.from(e)}:function(e){for(var t=0,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(a>=55296&&a<=56319){if(t<n){var s=e.charCodeAt(t);56320==(64512&s)&&(++t,a=((1023&a)<<10)+(1023&s)+65536)}if(a>=55296&&a<=56319)continue}if(r+4>i.length){o+=8,o=(o*=1+t/e.length*2)>>>3<<3;var l=new Uint8Array(o);l.set(i),i=l}if(0!=(4294967168&a)){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}else i[r++]=a}return i.slice?i.slice(0,r):i.subarray(0,r)};function a(){this.encoding="utf-8"}a.prototype.encode=function(e,t){return r(t&&t.stream,"encode","stream"),i(e)};var s=!o&&"function"==typeof Blob&&"function"==typeof URL&&"function"==typeof URL.createObjectURL,l=["utf-8","utf8","unicode-1-1-utf-8"],c=t;o?c=function(e,t){return(e instanceof Buffer?e:Buffer.from(e.buffer,e.byteOffset,e.byteLength)).toString(t)}:s&&(c=function(e){try{return function(e){var t;try{var n=new Blob([e],{type:"text/plain;charset=UTF-8"});t=URL.createObjectURL(n);var r=new XMLHttpRequest;return r.open("GET",t,!1),r.send(),r.responseText}finally{t&&URL.revokeObjectURL(t)}}(e)}catch(n){return t(e)}});var u="construct 'TextDecoder'",d="".concat(n," ").concat(u,": the ");function p(e,t){if(r(t&&t.fatal,u,"fatal"),e=e||"utf-8",!(o?Buffer.isEncoding(e):-1!==l.indexOf(e.toLowerCase())))throw new RangeError("".concat(d," encoding label provided ('").concat(e,"') is invalid."));this.encoding=e,this.fatal=!1,this.ignoreBOM=!1}p.prototype.decode=function(e,t){var n;return r(t&&t.stream,"decode","stream"),n=e instanceof Uint8Array?e:e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer):new Uint8Array(e),c(n,this.encoding)},e.TextEncoder=e.TextEncoder||a,e.TextDecoder=e.TextDecoder||p}("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)})),f(e)},c.values=c.values||function(){var e=[];return this.forEach((function(t){e.push(t)})),f(e)},c.entries=c.entries||function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),f(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 p(e){return e.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/gi,(function(e){return decodeURIComponent(e)}))}function f(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(m(e))for(var n=0;n<e.length;n++){var r=e[n];if(!m(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,p(s.slice(0,l)),p(s.slice(l+1))):s&&g(t,p(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 m(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 Po=Object.prototype,Co=Po.hasOwnProperty,Io="function"==typeof Symbol?Symbol:{},No=Io.iterator||"@@iterator",ko=Io.asyncIterator||"@@asyncIterator",Uo=Io.toStringTag||"@@toStringTag";var jo={};function $o(){}function Ro(){}var Bo={};Bo[No]=function(){return this};var Do=Object.getPrototypeOf,zo=Do&&Do(Do(qo([])));zo&&zo!==Po&&Co.call(zo,No)&&(Bo=zo);var Mo=Ro.prototype=Object.create(Bo);function Fo(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function Wo(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&&Co.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 Go(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Vo(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Ho(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Go,this),this.reset(!0)}function qo(e){if(e){var t=e[No];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(Co.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:Yo}}function Yo(){return{value:undefined,done:!0}}function Ko(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}$o.prototype=Mo.constructor=Ro,Ro.constructor=$o,Ro[Uo]=$o.displayName="GeneratorFunction",Fo(Wo.prototype),Wo.prototype[ko]=function(){return this},Fo(Mo),Mo[Uo]="Generator",Mo[No]=function(){return this},Mo.toString=function(){return"[object Generator]"},Ho.prototype={constructor:Ho,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(Vo),!e)for(var t in this)"t"===t.charAt(0)&&Co.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=undefined)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=undefined),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var a=Co.call(o,"catchLoc"),s=Co.call(o,"finallyLoc");if(a&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&Co.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,jo):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),jo},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Vo(n),jo}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;Vo(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:qo(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=undefined),jo}};var Xo=function e(t,n){function r(e,r,o){if("undefined"!=typeof document){"number"==typeof(o=Ko({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var a in o)o[a]&&(i+="; "+a,!0!==o[a]&&(i+="="+o[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+i}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),a=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(r[s]=t.read(a,s),e===s)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",Ko({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,Ko({},this.attributes,t))},withConverter:function(t){return e(Ko({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const Zo={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)}}},Jo=["%c 1L Widget ","background: #2019f5; color: #fff"];const Qo=new class{constructor(){var e=this;this.level=(()=>{const e=Xo.get("olw_loglvl");return e&&e in Zo?e:"info"})(),this.setLevel=e=>{if(!e||!(e in Zo))return this.error("Incorrect log level.");this.level=e,Xo.set("olw_loglvl",e),this.info(`Log level changed to "${e}".`)},this.log=function(t){if(Zo[t].priority>=Zo[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 Zo[t].method(...Jo,`[${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)}}},ei=(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 ti;const ni={COOKIE:{clear:e=>{Xo.remove(e,{domain:ti,secure:!0,sameSite:"none"})},load:e=>Xo.get(e),save:(e,t)=>{Xo.set(e,t,{domain:ti,secure:!0,sameSite:"none"})}},LOCAL_STORAGE:{clear:e=>localStorage.removeItem(e),load:e=>localStorage.getItem(e),save:(e,t)=>{localStorage.setItem(e,t)}}},ri=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 oi(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 ii="styles-module_Button__az16X",ai="styles-module_Icon__gXZYb";oi(".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 si="styles-module_Text__v-LsD",li="styles-module_Overlay__jS43v",ci="styles-module_Bold__R5yyc",ui="styles-module_Button__miUzP",di="styles-module_TextWrapper__XPzoa";oi(".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 pi=function(e,t,n,r){void 0===r&&(r=!0);const o=t.length<=10?t:t.slice(0,10).replace(/...$/,"...");return ri`<button type="button" id="${e}" class="olw__button${r?"":"--login"} ${ui}">${n}<div class="olw__button__text ${di}"><span class="olw__button__text--overlay ${si} ${li}">${o}</span> <span class="olw__button__text--bold ${si} ${ci}">${o}</span></div></button>`};var fi="styles-module_Wrapper__JaPUP",hi="styles-module_Link__qvYeB",gi="styles-module_Icon__4XaEP";oi(".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 mi=()=>"true"===Xo.get("mobileApp"),yi="https://1login.wp.pl";var vi="styles-module_Wrapper__-iqeY",_i="styles-module_AvatarWrapper__BMpHS",wi="styles-module_Avatar__bYePG",bi="styles-module_OneLoginLogo__qyTj-",Ei="styles-module_PersonalData__sv-Bc",Li="styles-module_Email__4tCwK",xi="styles-module_Link__T7ZcZ",Oi="styles-module_DisplayNone__VXeaF";oi(".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 Si=function(e){let{size:t=30,class:n=""}=void 0===e?{}:e;return ri`<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 Ti="styles-module_Wrapper__yQxZ4",Ai="styles-module_Dropdown__2Nyie",Pi="styles-module_Open__qVrPm",Ci="styles-module_Closed__zi55k",Ii="styles-module_Backdrop__IYghP",Ni="styles-module_Visible__osoZ7",ki="styles-module_Content__sLSum",Ui="styles-module_CloseButton__O6fyt",ji="styles-module_Placeholder__iQP-B",$i="styles-module_AvatarWrapper__Nkl-U";oi(".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 Ri=(e,t)=>{const n=e.flow.getUserData(),{first_name:r,avatar_url:o}=n;t.innerHTML=ri`<div id="olw-db-backdrop" class="${Ii}"></div><div class="${Ti}">${pi("olw-db-button",r,o?ri`<div class="olw__button__avatar ${$i}"><img src="${o}" alt="avatar"></div>`:Si())}<div id="olw-db-dropdown" class="olw__dropdown ${Ai} ${Ci}"><div class="${ki}"><div id="olw-db-user">a</div><div class="${ji}" id="olw-db-user-actions-placeholder"></div><div id="olw-db-actions">b</div><button type="button" id="olw-db-x-button" class="${Ui}"><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 p=((e,t,n)=>{let{avatar_url:r,first_name:o,last_name:i,email:a}=n;t.innerHTML=ri`<div class="${vi}"><div class="olw__avatarwrapper ${_i}">${r?`<img class="${wi}" src="${r}" alt="avatar" />`:Si({class:wi})} <svg xmlns="http://www.w3.org/2000/svg" width="24" height="23" viewBox="0 0 24 23" class="${bi}"><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 ${Ei}">${o} ${i}</div><div class="olw__email ${Li}">${a}</div><a class="olw__link ${xi} ${mi()||window.location.href.startsWith(yi)?Oi:""}" id="olw-link-manage-account">${e.locale.MANAGE_ACCOUNT} </a><a class="olw__link ${xi}" id="olw-link-login">${e.locale.SWITCH_ACCOUNT}</a></div>`;const s=async t=>{t.preventDefault(),e.flow.redirectToPreselectedUser()},l=t.querySelector("#olw-link-manage-account");l&&l.addEventListener("click",s);const c=t.querySelector("#olw-link-login");if(!c)throw new Error("User link login element not found");const u=()=>{mi()?window.location.assign("onelogin://profile/choose"):e.flow.login(!0)};return c.addEventListener("click",u),()=>{c.removeEventListener("click",u),null==l||l.removeEventListener("click",s)}})(e,u,n),f=((e,t)=>{t.innerHTML=ri`<div class="olw__action--logout ${fi}"><a class="olw__action--link ${hi}" id="olw-actions-logout"><span class="olw__action--icon ${gi}"><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=()=>{mi()?window.location.assign("onelogin://profile/logout"):e.flow.logout()};return n.addEventListener("click",r),()=>{n.removeEventListener("click",r)}})(e,d),h=()=>{i.classList.remove(Pi),a.classList.remove(Ni),"none"===getComputedStyle(a).display&&document.body.removeAttribute("style"),setTimeout((()=>i.classList.add(Ci)),250)};document.addEventListener("ol-close-dropdown",h);const g=()=>{i.classList.contains(Ci)?(i.classList.remove(Ci),window.requestAnimationFrame((()=>{window.requestAnimationFrame((()=>{"none"!==getComputedStyle(a).display&&(document.body.style.overflow="hidden"),i.classList.add(Pi)}))})),a.classList.add(Ni)):h()},m=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",m),document.addEventListener("click",y),c.forEach((e=>e.addEventListener("click",g))),()=>{p(),f(),null==s||s.removeEventListener("click",g),null==l||l.addEventListener("click",h),document.removeEventListener("keyup",m),document.removeEventListener("click",y),c.forEach((e=>e.removeEventListener("click",g))),document.removeEventListener("ol-close-dropdown",h),t.innerHTML=""}},Bi=(e,t)=>{const n=[],r=()=>{n.push(Ri(e,t))},o=()=>{n.push(((e,t)=>{t.innerHTML=ri`${pi("ol-widget-login-button",e.locale.LOGIN_BUTTON,ri`<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=()=>{ei("service_header","click"),e.flow.login()};if(!n)throw new Error("Login button not exists");return ei("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}},Di=()=>{document.dispatchEvent(new CustomEvent("ol-close-dropdown"))},zi=()=>Xo.get("OLWIDGET_BRANCH"),Mi=e=>Xo.set("OLWIDGET_BRANCH",e),Fi=e=>{const t=zi();return"https://onelogin.wpcdn.pl/onelogin/static/"+(t?t+"/":"")+e};var Wi="styles-module_Tooltip__UsdZm",Gi="styles-module_Hide__RVmbc",Vi="styles-module_BarContainer__KnbY4",Hi="styles-module_Arrow__xViGp",qi="styles-module_BarTitle__f7LhW",Yi="styles-module_BarButton__fL74u",Ki="styles-module_CloseBar__g2V3D";oi('.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 Xi=()=>{Xo.set("oneLoginCapping","1",{expires:14})},Zi=()=>Xo.get("oneLoginCapping"),Ji=()=>"undefined"!=typeof navigator?/bot|googlebot|crawler|spider|robot|crawling/i.test(navigator.userAgent):void 0,Qi=e=>{try{e.flow.getUserData()}catch{return!1}return!0},ea=(e,t)=>{let n;if(Ji())return Qo.info("Crawler detected, promo bar stopped"),()=>{};const r=()=>{null==n||n(),Zi()||(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 ${Gi} ${Wi}`,document.body.append(r),r.innerHTML=ri`<img src="${Fi("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(Gi)},s=()=>{i=setTimeout((()=>{r.classList.add(Gi)}),300),t.push((()=>i&&clearTimeout(i)))};return o.addEventListener("click",(()=>{Xi(),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),Qi(e)?o():r(),()=>{null==n||n(),document.removeEventListener("ol-not-logged",r),document.removeEventListener("ol-login",o)}},ta=(e,t,n)=>{let r;if(Ji())return Qo.info("Crawler detected, promo bar stopped"),()=>{};const o=()=>{null==r||r(),Zi()||(r=((e,t)=>{let n;e.innerHTML=ri`<div class="olw__promo_bar ${Vi}"><div class="${qi}"><img src="${Fi("promo-bar-tekst.svg")}" alt=""></div><a target="_blank" href="https://1login.wp.pl/informacje" class="${Yi}" rel="noreferrer noopener"><img src="${Fi("promo-bar-button.svg")}" alt=""></a><div id="olw-promo-bar-close" class="${Ki}"><img src="${Fi("promo-bar-x.svg")}" alt=""></div><div id="olw-promo-bar-arrow" class="${Hi}"></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=()=>{Xi(),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),Qi(e)?i():o(),()=>{null==r||r(),document.removeEventListener("ol-not-logged",o),document.removeEventListener("ol-login",i)}},na=e=>({renderDropdown:t=>Bi(e,t),renderButton:(t,n)=>((e,t,n)=>{const r=()=>{e.flow.login(n)};return t.innerHTML=ri`<button type="button" class="${ii}"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" viewBox="0 0 18 20" class="${ai}"><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=>ea(e,t),renderPromoBar:(t,n)=>ta(e,t,n),closeDropdown:Di});var ra=lr.includes,oa=xo;Vr({target:"Array",proto:!0,forced:a((function(){return!Array(1).includes()}))},{includes:function(e){return ra(this,e,arguments.length>1?arguments[1]:void 0)}}),oa("includes");const ia=[(e,t)=>{t&&!e.some((e=>e.src.includes(".es6.")))&&Qo.warn("No es6 version of script found, despite using modern browser!",e)},e=>{e.some((e=>e.src.includes(".es6.")&&e.hasAttribute("async")))||Qo.warn("No async initialization found for widget script!",e)},e=>{e.some((e=>!e.src.includes("pkce")&&!e.src.includes("standard")))&&Qo.warn("You are using full bundle that is designed for development purposes only. Please use bundle that is designed for your flow.",e)}],aa=()=>{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;ia.forEach((n=>n(e,t)))};var sa="styles_Container__sCBFS",la="styles_Inline__anxRB",ca="styles_Popup__f-gEb";oi(".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 ua=()=>{localStorage.removeItem("OL_1t_dc_expiration"),localStorage.removeItem("OL_1tc_count")},da=()=>{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)),Qo.debug("[#ONETAP] set OneTap cooldown until: "+new Date(t))},pa={isMobile:!1,timeoutId:void 0},fa=(e,t)=>{pa.isMobile=window.matchMedia("(max-width: 600px)").matches,Qo.debug(`[#ONETAP] AutoExit: ${pa.isMobile?"mobile":"desktop"} device detected`),pa.isMobile&&((e=>{pa.timeoutId=window.setTimeout((()=>{e()}),9e4),Qo.debug(`[#ONETAP] AutoExit: set initially to 90000 ms - timeoutId: ${pa.timeoutId}`)})(t),((e,t)=>{e.addEventListener("mouseenter",(()=>{Qo.debug(`[#ONETAP] AutoExit: remove - timeoutId: ${pa.timeoutId}`),window.clearTimeout(pa.timeoutId)})),e.addEventListener("mouseleave",(()=>{window.clearTimeout(pa.timeoutId),pa.timeoutId=window.setTimeout((()=>{t()}),9e4),Qo.debug(`[#ONETAP] AutoExit: reset to 90000 ms - timeoutId: ${pa.timeoutId}`)}))})(e,t))},ha=5e3,ga=e=>{let{clientId:t,olOrigin:n=yi,getUserData:r,login:o,container:i,internal:a,timeout:s=ha,onlyLoggedIn:l=!1}=e;return new Promise((e=>{let c=!1;setTimeout((()=>{c||e({status:"timed-out"})}),s);const u=()=>{try{return!!r()}catch{return!1}},d=(()=>{const e=Number(localStorage.getItem("OL_1t_dc_expiration"));return!!e&&e>Date.now()&&!Number.isNaN(e)&&e})(),p=i?"inline":"popup";if(!t)return Qo.warn("[#ONETAP] You need to specify clientId to enable OneTap!"),e({status:"skipped",reason:"configuration"});if(d)return Qo.debug("[#ONETAP] OneTap on cooldown until: "+new Date(d)),e({status:"skipped",reason:"cooldown"});if(u())return Qo.debug("[#ONETAP] User logged in - initialization canceled"),e({status:"skipped",reason:"logged-in"});Qo.debug("[#ONETAP] OneTap started");const f=(e=>{let{origin:t,clientId:n,mode:r,isInternal:o,onlyLoggedIn:i}=e;return`${t}/onetap/iframe?clientId=${n}&origin=${window.location.origin}&mode=${r}${o?"&internal=1":""}${i?"&only_logged_in=1":""}`})({origin:n,clientId:t,mode:p,isInternal:!!a,onlyLoggedIn:l}),{containerElement:h,frameElement:g}=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?ca:la;return n.classList.add("olw__onetap",sa,o),t.append(n),{containerElement:n,frameElement:r}}(f,i),m=g.contentWindow;if(!m)return void Qo.debug("[#ONETAP] No contentWindow for selected frame element!");const y=(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?(Qo.debug(`[#ONETAP] handling message type ${n.data.type}`),r(n.data)):Qo.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:m,olOrigin:n}),v=()=>{Qo.debug("[#ONETAP] closing onetap modal");try{h.remove()}catch{Qo.debug("[#ONETAP] failed to remove container element")}y.stop()};y.add("INIT",(()=>{((e,t)=>{let{frameContentWindow:n,olOrigin:r}=e;Qo.debug("[#ONETAP] sending event",t.type,{data:t}),n.postMessage(t,r)})({frameContentWindow:m,olOrigin:n},{type:"INIT_FRAME",payload:{device:Xo.get("OL_ONETAP_DEVICE"),clientId:t}})})),y.add("SELECT",(e=>{o(e.payload.user)})),y.add("LOGIN",(()=>{o(!0),ua()})),y.add("SHOW",(t=>{var n;u()?v():(n=t.payload.height,c=!0,Qo.debug("[#ONETAP] showing onetap modal"),h.style.height=`${n}px`,h.style.opacity="1",h.style.userSelect="initial",h.style.pointerEvents="initial",g.style.opacity="1",e({status:"display",close:v}))})),y.add("EXIT",(()=>{v(),e({status:"skipped"})})),y.add("CLOSE",(()=>{v(),da()})),y.add("INTERNAL",(()=>{if(!a)throw new Error("internal handler invoked without callback");v(),a()})),document.addEventListener("ol-login",(()=>{Qo.debug("[#ONETAP] user logged in - closing modal"),ua(),v()})),fa(h,(()=>{v(),a&&a()})),y.start()}))};var ma={LOGIN_BUTTON:"Zaloguj",BUTTON:"Zaloguj z 1login od WP",LOGOUT:"Wyloguj",MANAGE_ACCOUNT:"Zarządzaj kontem",SWITCH_ACCOUNT:"Przełącz konto"};var ya="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,va={};va[Je("toStringTag")]="z";var _a,wa,ba,Ea="[object z]"===String(va),La=W,xa=T,Oa=Je("toStringTag"),Sa=Object,Ta="Arguments"==xa(function(){return arguments}()),Aa=Ea?xa: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=Sa(e),Oa))?n:Ta?xa(t):"Object"==(r=xa(t))&&La(t.callee)?"Arguments":r},Pa=Mt,Ca=xt,Ia=!a((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Na=Be,ka=W,Ua=je,ja=Ia,$a=ln("IE_PROTO"),Ra=Object,Ba=Ra.prototype,Da=ja?Ra.getPrototypeOf:function(e){var t=Ua(e);if(Na(t,$a))return t[$a];var n=t.constructor;return ka(n)&&t instanceof n?n.prototype:t instanceof Ra?Ba:null},za=L,Ma=ve,Fa=W,Wa=String,Ga=TypeError,Va=function(e,t,n){try{return za(Ma(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},Ha=Pt,qa=function(e){if("object"==typeof e||Fa(e))return e;throw Ga("Can't set "+Wa(e)+" as a prototype")},Ya=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Va(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Ha(n),qa(r),t?e(n,r):n.__proto__=r,n}}():void 0),Ka=ya,Xa=s,Za=o,Ja=W,Qa=H,es=Be,ts=Aa,ns=he,rs=zt,os=Gn,is=function(e,t,n){return n.get&&Pa(n.get,t,{getter:!0}),n.set&&Pa(n.set,t,{setter:!0}),Ca.f(e,t,n)},as=Z,ss=Da,ls=Ya,cs=Je,us=We,ds=En.enforce,ps=En.get,fs=Za.Int8Array,hs=fs&&fs.prototype,gs=Za.Uint8ClampedArray,ms=gs&&gs.prototype,ys=fs&&ss(fs),vs=hs&&ss(hs),_s=Object.prototype,ws=Za.TypeError,bs=cs("toStringTag"),Es=us("TYPED_ARRAY_TAG"),Ls=Ka&&!!ls&&"Opera"!==ts(Za.opera),xs=!1,Os={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Ss={BigInt64Array:8,BigUint64Array:8},Ts=function(e){var t=ss(e);if(Qa(t)){var n=ps(t);return n&&es(n,"TypedArrayConstructor")?n.TypedArrayConstructor:Ts(t)}},As=function(e){if(!Qa(e))return!1;var t=ts(e);return es(Os,t)||es(Ss,t)};for(_a in Os)(ba=(wa=Za[_a])&&wa.prototype)?ds(ba).TypedArrayConstructor=wa:Ls=!1;for(_a in Ss)(ba=(wa=Za[_a])&&wa.prototype)&&(ds(ba).TypedArrayConstructor=wa);if((!Ls||!Ja(ys)||ys===Function.prototype)&&(ys=function(){throw ws("Incorrect invocation")},Ls))for(_a in Os)Za[_a]&&ls(Za[_a],ys);if((!Ls||!vs||vs===_s)&&(vs=ys.prototype,Ls))for(_a in Os)Za[_a]&&ls(Za[_a].prototype,vs);if(Ls&&ss(ms)!==vs&&ls(ms,vs),Xa&&!es(vs,bs))for(_a in xs=!0,is(vs,bs,{configurable:!0,get:function(){return Qa(this)?this[Es]:void 0}}),Os)Za[_a]&&rs(Za[_a],Es,_a);var Ps=Kn,Cs=RangeError,Is=function(e){var t=Ps(e);if(t<0)throw Cs("The argument can't be less than 0");return t},Ns=RangeError,ks=o,Us=d,js={NATIVE_ARRAY_BUFFER_VIEWS:Ls,TYPED_ARRAY_TAG:xs&&Es,aTypedArray:function(e){if(As(e))return e;throw ws("Target is not a typed array")},aTypedArrayConstructor:function(e){if(Ja(e)&&(!ls||as(ys,e)))return e;throw ws(ns(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(Xa){if(n)for(var o in Os){var i=Za[o];if(i&&es(i.prototype,e))try{delete i.prototype[e]}catch(n){try{i.prototype[e]=t}catch(e){}}}vs[e]&&!n||os(vs,e,n?t:Ls&&hs[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(Xa){if(ls){if(n)for(r in Os)if((o=Za[r])&&es(o,e))try{delete o[e]}catch(e){}if(ys[e]&&!n)return;try{return os(ys,e,n?t:Ls&&ys[e]||t)}catch(e){}}for(r in Os)!(o=Za[r])||o[e]&&!n||os(o,e,t)}},getTypedArrayConstructor:Ts,isView:function(e){if(!Qa(e))return!1;var t=ts(e);return"DataView"===t||es(Os,t)||es(Ss,t)},isTypedArray:As,TypedArray:ys,TypedArrayPrototype:vs},$s=rr,Rs=function(e,t){var n=Is(e);if(n%t)throw Ns("Wrong offset");return n},Bs=je,Ds=a,zs=ks.RangeError,Ms=ks.Int8Array,Fs=Ms&&Ms.prototype,Ws=Fs&&Fs.set,Gs=js.aTypedArray,Vs=js.exportTypedArrayMethod,Hs=!Ds((function(){var e=new Uint8ClampedArray(2);return Us(Ws,e,{length:1,0:3},1),3!==e[1]})),qs=Hs&&js.NATIVE_ARRAY_BUFFER_VIEWS&&Ds((function(){var e=new Ms(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));Vs("set",(function(e){Gs(this);var t=Rs(arguments.length>1?arguments[1]:void 0,1),n=Bs(e);if(Hs)return Us(Ws,this,n,t);var r=this.length,o=$s(n),i=0;if(o+t>r)throw zs("Wrong length");for(;i<o;)this[t+i]=n[i++]}),!Hs||qs);const Ys=window.crypto||window.msCrypto,Ks=e=>JSON.parse(decodeURIComponent(escape(atob(e.split(".")[1])))),Xs=e=>{const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";return Array.from({length:e}).fill(null).map((()=>t.charAt(Math.floor((()=>{const[e]=Ys.getRandomValues(new Uint32Array(1));return e/2**32})()*t.length)))).join("")},Zs=e=>String.fromCharCode.apply(null,new Uint8Array(e)),Js=e=>{const t=(new TextEncoder).encode(e),n=Ys.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())}))},Qs=e=>window.btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),el=e=>e.split("/").slice(0,3).join("/"),tl=()=>Xo.get("OL_ID");let nl;const rl=(e,t)=>{const n=Xs(111),r=Xs(111);return Js(r).then((o=>{const i=Qs(Zs(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=tl();return fetch(`${nl.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=tl();return!(e===n||!n)&&rl(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;Qo.debug(`script v1.39.1 ES6 ${n} loaded`);const r=zi();if(r&&!(()=>{const e=document.head.querySelector("script[data-olwbranch]");return!!e&&(Qo.debug("branch script element already loaded",e),!0)})())return Qo.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((()=>{Qo.debug(`widget's branch version "${r}" script loaded`)})).catch((()=>{Qo.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,Qo.info("widget v1.39.1 initialized");const n=(e=>{e.domain&&(ti=e.domain);const t=e.stateStorage||"LOCAL_STORAGE";return Qo.debug(`storage ${t} initialized`),ni[t]})(e),r=t(e,n),i={...ma,...e.locale},a=na({flow:r,locale:i});return{...r,...a,enableOneTap:function(t){return void 0===t&&(t={}),ga({...e,...t,login:r.login,getUserData:r.getUserData})}}},setLogLevel:Qo.setLevel,setBranch:Mi};Object.defineProperty(window,"OneLogin",{value:Object.freeze(i),writable:!1,enumerable:!0}),aa(),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=()=>{Qo.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 Ks(e)},p=()=>{const e=t.load("ONELOGIN_REFRESH_TOKEN");return e?(e=>{let{clientId:t,refreshToken:n}=e;return fetch(`${nl.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?(Qo.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)},f=e=>{clearTimeout(c),c=setTimeout(p,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(`${nl.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=Ks(e.id_token);if(!o.aud.includes(r))throw new Error("Aud differs from clientId!");if(o.iss!==`${el(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);Qo.debug("setting OL_ID with: ",{adId:e,domain:t,expires:n}),Xo.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),f(e.expires_in),(e=>{Qo.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(`${nl.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 f(n),!0})):e.status.toString().startsWith("4")?p():(Qo.error("invalid response during introspect"),u(),!1))):Promise.resolve(!1)};return(()=>{(e=>{const t=el(e.authUrl);nl=Object.freeze({origin:t,authProviderUrl:`${t}/api/v1/public/ol-authprovider`,preselectedUser:`${t}/login/v1/sso/preselected/user`})})(e),setInterval(g,6e4);try{const{WPaduid:e}=d();e&&(n=e,Xo.set("WPaduid",n,{secure:!0,path:"/",sameSite:"none"}))}catch(e){console.error(e)}var n;const r=window.location.href;r.startsWith(decodeURI(o))&&r.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?(Qo.debug("user logged in"),document.dispatchEvent(new CustomEvent("ol-login"))):(Qo.debug("no active session found"),(e=>{let{storage:t,callback:n,config:r}=e;if(t.load("ONELOGIN_ACCESS_TOKEN"))return void Qo.debug("Token in storage - autologin denied");const o=tl();o?(Qo.debug("autologin - data found; initializing..."),rl(o,r).then((e=>{e?(Qo.debug("autologin - accepted; token granted"),n(e)):Qo.debug("autologin - denied; session no longer active")}))):Qo.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=Xs(111);t.save("ONELOGIN_PKCE_STATE",c);const u=Xs(111);t.save("ONELOGIN_PKCE_CODE_VERIFIER",u);const d=await Js(u),p=Qs(Zs(d)),f=new URLSearchParams("");a&&f.set("flow","select_account"),l&&(f.set("flow","onetap"),f.set("onetap_user",l)),f.set("response_type","code"),f.set("client_id",r),f.set("redirect_uri",o),f.set("scope",i),f.set("state",c),f.set("code_challenge",p),f.set("code_challenge_method","S256"),s&&window.location.href.length<=1024&&f.set("continue_url",window.location.href),window.location.assign(`${n}?${f.toString()}`)},logout:()=>{Qo.debug("logout initiated");try{const e=d().l_hint;u(),Qo.debug("removing autologin cookie"),Xo.remove("OL_ID"),window.location.assign(`${el(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}},redirectToPreselectedUser:async()=>{try{const e=await(e=>{let{clientId:t}=e;return fetch(`${nl.preselectedUser}?client_id=${t}`)})({clientId:r});if(200!==e.status)throw new Error("Error on fetching selected user");const{data:{url:t}}=await e.json();window.location.href=t?`${t}&continue_url=https://1login.wp.pl/profil/dane`:yi}catch{window.location.href=yi}}}},name:"PKCE"});
//# sourceMappingURL=olwidget-pkce.es6.js.map
