!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).OneLogin={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var o=n((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},t.apply(this,arguments)}e.exports=t})),r=function(e){return e&&e.Math==Math&&e},i=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||Function("return this")(),a=function(e){try{return!!e()}catch(e){return!0}},l=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,u={f:s&&!c.call({1:2},1)?function(e){var t=s(this,e);return!!t&&t.enumerable}:c},d=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},f={}.toString,p="".split,v=a((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==function(e){return f.call(e).slice(8,-1)}(e)?p.call(e,""):Object(e)}:Object,h=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},g=function(e){return v(h(e))},m=function(e){return"object"==typeof e?null!==e:"function"==typeof e},_=function(e,t){if(!m(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!m(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!m(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!m(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,w=function(e,t){return y.call(e,t)},b=i.document,x=m(b)&&m(b.createElement),E=function(e){return x?b.createElement(e):{}},S=!l&&!a((function(){return 7!=Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a})),L=Object.getOwnPropertyDescriptor,O={f:l?L:function(e,t){if(e=g(e),t=_(t,!0),S)try{return L(e,t)}catch(e){}if(w(e,t))return d(!u.f.call(e,t),e[t])}},k=function(e){if(!m(e))throw TypeError(String(e)+" is not an object");return e},P=Object.defineProperty,j={f:l?P:function(e,t,n){if(k(e),t=_(t,!0),k(n),S)try{return P(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},C=l?function(e,t,n){return j.f(e,t,d(1,n))}:function(e,t,n){return e[t]=n,e},U=function(e,t){try{C(i,e,t)}catch(n){i[e]=t}return t},T="__core-js_shared__",A=i[T]||U(T,{}),R=Function.toString;"function"!=typeof A.inspectSource&&(A.inspectSource=function(e){return R.call(e)});var B,I,z,M=A.inspectSource,D=i.WeakMap,N="function"==typeof D&&/native code/.test(M(D)),F=n((function(e){(e.exports=function(e,t){return A[e]||(A[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),W=0,q=Math.random(),G=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++W+q).toString(36)},J=F("keys"),V=function(e){return J[e]||(J[e]=G(e))},H={},Z=i.WeakMap;if(N){var K=new Z,X=K.get,Q=K.has,Y=K.set;B=function(e,t){return Y.call(K,e,t),t},I=function(e){return X.call(K,e)||{}},z=function(e){return Q.call(K,e)}}else{var $=V("state");H[$]=!0,B=function(e,t){return C(e,$,t),t},I=function(e){return w(e,$)?e[$]:{}},z=function(e){return w(e,$)}}var ee,te={set:B,get:I,has:z,enforce:function(e){return z(e)?I(e):B(e,{})},getterFor:function(e){return function(t){var n;if(!m(t)||(n=I(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},ne=n((function(e){var t=te.get,n=te.enforce,o=String(String).split("String");(e.exports=function(e,t,r,a){var l=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,s=!!a&&!!a.noTargetGet;"function"==typeof r&&("string"!=typeof t||w(r,"name")||C(r,"name",t),n(r).source=o.join("string"==typeof t?t:"")),e!==i?(l?!s&&e[t]&&(c=!0):delete e[t],c?e[t]=r:C(e,t,r)):c?e[t]=r:U(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||M(this)}))})),oe=i,re=function(e){return"function"==typeof e?e:void 0},ie=function(e,t){return arguments.length<2?re(oe[e])||re(i[e]):oe[e]&&oe[e][t]||i[e]&&i[e][t]},ae=Math.ceil,le=Math.floor,ce=function(e){return isNaN(e=+e)?0:(e>0?le:ae)(e)},se=Math.min,ue=function(e){return e>0?se(ce(e),9007199254740991):0},de=Math.max,fe=Math.min,pe=function(e,t){var n=ce(e);return n<0?de(n+t,0):fe(n,t)},ve=function(e){return function(t,n,o){var r,i=g(t),a=ue(i.length),l=pe(o,a);if(e&&n!=n){for(;a>l;)if((r=i[l++])!=r)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===n)return e||l||0;return!e&&-1}},he={includes:ve(!0),indexOf:ve(!1)}.indexOf,ge=function(e,t){var n,o=g(e),r=0,i=[];for(n in o)!w(H,n)&&w(o,n)&&i.push(n);for(;t.length>r;)w(o,n=t[r++])&&(~he(i,n)||i.push(n));return i},me=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_e=me.concat("length","prototype"),ye={f:Object.getOwnPropertyNames||function(e){return ge(e,_e)}},we={f:Object.getOwnPropertySymbols},be=ie("Reflect","ownKeys")||function(e){var t=ye.f(k(e)),n=we.f;return n?t.concat(n(e)):t},xe=function(e,t){for(var n=be(t),o=j.f,r=O.f,i=0;i<n.length;i++){var a=n[i];w(e,a)||o(e,a,r(t,a))}},Ee=/#|\.prototype\./,Se=function(e,t){var n=Oe[Le(e)];return n==Pe||n!=ke&&("function"==typeof t?a(t):!!t)},Le=Se.normalize=function(e){return String(e).replace(Ee,".").toLowerCase()},Oe=Se.data={},ke=Se.NATIVE="N",Pe=Se.POLYFILL="P",je=Se,Ce=O.f,Ue=function(e){return Object(h(e))},Te=!!Object.getOwnPropertySymbols&&!a((function(){return!String(Symbol())})),Ae=Te&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Re=F("wks"),Be=i.Symbol,Ie=Ae?Be:Be&&Be.withoutSetter||G,ze=Object.keys||function(e){return ge(e,me)},Me=l?Object.defineProperties:function(e,t){k(e);for(var n,o=ze(t),r=o.length,i=0;r>i;)j.f(e,n=o[i++],t[n]);return e},De=ie("document","documentElement"),Ne=V("IE_PROTO"),Fe=function(){},We=function(e){return"<script>"+e+"</"+"script>"},qe=function(){try{ee=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;qe=ee?function(e){e.write(We("")),e.close();var t=e.parentWindow.Object;return e=null,t}(ee):((t=E("iframe")).style.display="none",De.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(We("document.F=Object")),e.close(),e.F);for(var n=me.length;n--;)delete qe.prototype[me[n]];return qe()};H[Ne]=!0;var Ge,Je=Object.create||function(e,t){var n;return null!==e?(Fe.prototype=k(e),n=new Fe,Fe.prototype=null,n[Ne]=e):n=qe(),void 0===t?n:Me(n,t)},Ve=(w(Re,Ge="unscopables")||(Te&&w(Be,Ge)?Re[Ge]=Be[Ge]:Re[Ge]=Ie("Symbol."+Ge)),Re[Ge]),He=Array.prototype;null==He[Ve]&&j.f(He,Ve,{configurable:!0,value:Je(null)});var Ze;!function(e,t){var n,o,r,a,l,c=e.target,s=e.global,u=e.stat;if(n=s?i:u?i[c]||U(c,{}):(i[c]||{}).prototype)for(o in t){if(a=t[o],r=e.noTargetGet?(l=Ce(n,o))&&l.value:n[o],!je(s?o:c+(u?".":"#")+o,e.forced)&&void 0!==r){if(typeof a==typeof r)continue;xe(a,r)}(e.sham||r&&r.sham)&&C(a,"sham",!0),ne(n,o,a,e)}}({target:"Array",proto:!0},{fill:function(e){for(var t=Ue(this),n=ue(t.length),o=arguments.length,r=pe(o>1?arguments[1]:void 0,n),i=o>2?arguments[2]:void 0,a=void 0===i?n:pe(i,n);a>r;)t[r++]=e;return t}}),Ze="fill",He[Ve][Ze]=!0;var Ke,Xe,Qe=function(e,t,n){if(function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function")}(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}},Ye=Function.call;Ke="fill",Qe(Ye,i["Array"].prototype[Ke],Xe);!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,o;return(t=t||{}).bubbles=!!t.bubbles,t.cancelable=!!t.cancelable,(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),o=n.preventDefault,n.preventDefault=function(){o.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,o){var r=new XMLHttpRequest,i=[],a=[],l={},c=function(){return{ok:2==(r.status/100|0),statusText:r.statusText,status:r.status,url:r.responseURL,text:function(){return Promise.resolve(r.responseText)},json:function(){return Promise.resolve(JSON.parse(r.responseText))},blob:function(){return Promise.resolve(new Blob([r.response]))},clone:c,headers:{keys:function(){return i},entries:function(){return a},get:function(e){return l[e.toLowerCase()]},has:function(e){return e.toLowerCase()in l}}}};for(var s in r.open(t.method||"get",e,!0),r.onload=function(){r.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){i.push(t=t.toLowerCase()),a.push([t,n]),l[t]=l[t]?l[t]+","+n:n})),n(c())},r.onerror=o,r.withCredentials="include"==t.credentials,t.headers)r.setRequestHeader(s,t.headers[s]);r.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===r.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 o(e){for(var t=0,n=Math.min(65536,e.length+1),o=new Uint16Array(n),r=[],i=0;;){var a=t<e.length;if(!a||i>=n-1){if(r.push(String.fromCharCode.apply(null,o.subarray(0,i))),!a)return r.join("");e=e.subarray(t),i=t=0}if(0==(128&(a=e[t++])))o[i++]=a;else if(192==(224&a)){var l=63&e[t++];o[i++]=(31&a)<<6|l}else if(224==(240&a)){l=63&e[t++];var c=63&e[t++];o[i++]=(31&a)<<12|l<<6|c}else if(240==(248&a)){65535<(a=(7&a)<<18|(l=63&e[t++])<<12|(c=63&e[t++])<<6|63&e[t++])&&(a-=65536,o[i++]=a>>>10&1023|55296,a=56320|1023&a),o[i++]=a}}}if(e.TextEncoder&&e.TextDecoder)return!1;var r=["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,o=0,r=Math.max(32,n+(n>>>1)+7),i=new Uint8Array(r>>>3<<3);t<n;){var a=e.charCodeAt(t++);if(55296<=a&&56319>=a){if(t<n){var l=e.charCodeAt(t);56320==(64512&l)&&(++t,a=((1023&a)<<10)+(1023&l)+65536)}if(55296<=a&&56319>=a)continue}if(o+4>i.length&&(r+=8,r=(r*=1+t/e.length*2)>>>3<<3,(l=new Uint8Array(r)).set(i),i=l),0==(4294967168&a))i[o++]=a;else{if(0==(4294965248&a))i[o++]=a>>>6&31|192;else if(0==(4294901760&a))i[o++]=a>>>12&15|224,i[o++]=a>>>6&63|128;else{if(0!=(4292870144&a))continue;i[o++]=a>>>18&7|240,i[o++]=a>>>12&63|128,i[o++]=a>>>6&63|128}i[o++]=63&a|128}}return i.slice?i.slice(0,o):i.subarray(0,o)},Object.defineProperty(n.prototype,"encoding",{value:"utf-8"}),Object.defineProperty(n.prototype,"fatal",{value:!1}),Object.defineProperty(n.prototype,"ignoreBOM",{value:!1});var i=o;"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 o(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:t),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}(),o=n&&"a=1"===new n({a:1}).toString(),r=n&&"+"===new n("s=%2B").get("s"),i=!n||((t=new n).append("s"," &"),"s=+%26"===t.toString()),a=u.prototype,l=!(!e.Symbol||!e.Symbol.iterator);if(!(n&&o&&r&&i)){a.append=function(e,t){h(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 m(this.__URLSearchParams__,e)},a.set=function(e,t){this.__URLSearchParams__[e]=[""+t]},a.toString=function(){var e,t,n,o,r=this.__URLSearchParams__,i=[];for(t in r)for(n=d(t),e=0,o=r[t];e<o.length;e++)i.push(n+"="+d(o[e]));return i.join("&")};var c=!!r&&n&&!o&&e.Proxy;Object.defineProperty(e,"URLSearchParams",{value:c?new Proxy(n,{construct:function(e,t){return new e(new u(t[0]).toString())}}):u});var s=e.URLSearchParams.prototype;s.polyfill=!0,s.forEach=s.forEach||function(e,t){var n=v(this.toString());Object.getOwnPropertyNames(n).forEach((function(o){n[o].forEach((function(n){e.call(t,n,o,this)}),this)}),this)},s.sort=s.sort||function(){var e,t,n,o=v(this.toString()),r=[];for(e in o)r.push(e);for(r.sort(),t=0;t<r.length;t++)this.delete(r[t]);for(t=0;t<r.length;t++){var i=r[t],a=o[i];for(n=0;n<a.length;n++)this.append(i,a[n])}},s.keys=s.keys||function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},s.values=s.values||function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},s.entries=s.entries||function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},l&&(s[e.Symbol.iterator]=s[e.Symbol.iterator]||s.entries)}function u(e){((e=e||"")instanceof URLSearchParams||e instanceof u)&&(e=e.toString()),this.__URLSearchParams__=v(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 l&&(n[e.Symbol.iterator]=function(){return n}),n}function v(e){var t={};if("object"==typeof e)if(g(e))for(var n=0;n<e.length;n++){var o=e[n];if(!g(o)||2!==o.length)throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");h(t,o[0],o[1])}else for(var r in e)e.hasOwnProperty(r)&&h(t,r,e[r]);else{0===e.indexOf("?")&&(e=e.slice(1));for(var i=e.split("&"),a=0;a<i.length;a++){var l=i[a],c=l.indexOf("=");-1<c?h(t,f(l.slice(0,c)),f(l.slice(c+1))):l&&h(t,f(l),"")}}return t}function h(e,t,n){var o="string"==typeof n?n:null!=n&&"function"==typeof n.toString?n.toString():JSON.stringify(n);m(e,t)?e[t].push(o):e[t]=[o]}function g(e){return!!e&&"[object Array]"===Object.prototype.toString.call(e)}function m(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(void 0!==t?t:"undefined"!=typeof window?window:t);var $e,et=function(e,t){var n;null==(n=window.WP)||n.push((function(){var n;null==(n=window.WP)||n.stat.wave("onelogin",{mode:e,event:t})}))},tt=n((function(e,t){var n;n=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var o in n)t[o]=n[o]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(o){function r(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},r.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=o.write?o.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 l="";for(var c in i)i[c]&&(l+="; "+c,!0!==i[c]&&(l+="="+i[c].split(";")[0]));return document.cookie=t+"="+n+l}}function a(e,n){if("undefined"!=typeof document){for(var r={},i=document.cookie?document.cookie.split("; "):[],a=0;a<i.length;a++){var l=i[a].split("="),c=l.slice(1).join("=");n||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var s=t(l[0]);if(c=(o.read||o)(c,s)||t(c),n)try{c=JSON.parse(c)}catch(e){}if(r[s]=c,e===s)break}catch(e){}}return e?r[e]:r}}return r.set=i,r.get=function(e){return a(e,!1)},r.getJSON=function(e){return a(e,!0)},r.remove=function(t,n){i(t,"",e(n,{expires:-1}))},r.defaults={},r.withConverter=n,r}((function(){}))},e.exports=n()})),nt={error:{priority:3,method:function(){var e;return(e=console).error.apply(e,arguments)}},warn:{priority:2,method:function(){var e;return(e=console).warn.apply(e,arguments)}},info:{priority:1,method:function(){var e;return(e=console).info.apply(e,arguments)}},debug:{priority:0,method:function(){var e;return(e=console).debug.apply(e,arguments)}}},ot=["%c 1L Widget ","background: #2019f5; color: #fff"],rt="olw_loglvl",it=new function(){var e,t=this;this.level=(e=tt.get(rt))&&e in nt?e:"info",this.setLevel=function(e){if(!e||!(e in nt))return t.error("Incorrect log level.");t.level=e,tt.set(rt,e),t.info('Log level changed to "'+e+'".')},this.log=function(e){if(nt[e].priority>=nt[t.level].priority){for(var n,o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];return(n=nt[e]).method.apply(n,ot.concat(["["+e.toUpperCase()+"] "],r))}},this.error=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.log.apply(t,["error"].concat(n))},this.warn=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.log.apply(t,["warn"].concat(n))},this.info=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.log.apply(t,["info"].concat(n))},this.debug=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.log.apply(t,["debug"].concat(n))}},at=1024,lt=window.crypto||window.msCrypto,ct=function(e){return JSON.parse(decodeURIComponent(escape(atob(e.split(".")[1]))))},st=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";return Array(e).fill(null).map((function(){return t.charAt(Math.floor(lt.getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)*t.length))})).join("")},ut=function(e){return String.fromCharCode.apply(null,new Uint8Array(e))},dt=function(e){var t=(new TextEncoder).encode(e),n=lt.subtle.digest("SHA-256",t);return n instanceof Promise?n:new Promise((function(e,t){var o=n;o.oncomplete=function(t){return e(t.target.result)},o.onerror=function(e){return t(e.toString())}}))},ft=function(e){return window.btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},pt=function(e){return e.split("/").slice(0,3).join("/")},vt="ONELOGIN_ID_TOKEN",ht="ONELOGIN_PKCE_STATE",gt="ONELOGIN_PKCE_CODE_VERIFIER",mt="ONELOGIN_ACCESS_TOKEN",_t="ONELOGIN_REFRESH_TOKEN",yt="https://1login.wp.pl",wt=function(){return tt.get("OL_ID")},bt=function e(t,n){var r=st(111),i=st(111);return dt(i).then((function(a){var l=ft(ut(a));return function(e){var t=e.clientId,n=e.redirectUrl,o=e.scope,r=e.state,i=e.codeChallenge,a=new URLSearchParams("");return a.set("response_type","code"),a.set("client_id",t),a.set("redirect_uri",n),a.set("scope",o),a.set("state",r),a.set("code_challenge",i),a.set("code_challenge_method","S256"),window.location.href.length<=at&&a.set("continue_url",window.location.href),fetch($e.authProviderUrl+"/auth/silent?"+a.toString(),{credentials:"include"})}(o({},n,{olId:t,state:r,codeChallenge:l})).then((function(o){if(401===o.status){var a=wt();return!(t===a||!a)&&e(a,n)}return 200===o.status&&o.json().then((function(e){var t=e.data.redirectUrl.split("?")[1],n=new URLSearchParams(t),o=n.get("code"),a=n.get("state");return!(!o||r!=a)&&{code:o,codeVerifier:i}}))}))}))},xt=function(e,t){var n,o=e.authUrl,r=e.clientId,i=e.redirectUrl,a=e.scope,l=e.postLogoutRedirectUrl,c=e.passContinueUrl,s=e.autologinDomain,u=function(){it.debug("clearing storage"),t.clear(vt),t.clear(mt),t.clear(_t),document.dispatchEvent(new CustomEvent("ol-not-logged"))},d=function(){var e=t.load(vt);if(!e)throw u(),new Error("No token in storage");return ct(e)},f=function(){var e=t.load(_t);return e?function(e){var t=e.clientId,n=e.refreshToken;return fetch($e.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((function(e){return 200!==e.status?(it.debug("current session is invalid"),u(),!1):e.json().then((function(e){return t.save(mt,e.access_token),t.save(_t,e.refresh_token),!0}))})):Promise.resolve(!1)},p=function(e){clearTimeout(n),n=setTimeout(f,1e3*(e-30))},v=function(e){var n=e.code,a=e.codeVerifier,l=e.continueUrl;return function(e){var t=e.clientId,n=e.redirectUrl,o=e.code,r=e.codeVerifier;return fetch($e.authProviderUrl+"/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"grant_type=authorization_code&client_id="+t+"&redirect_uri="+n+"&code="+o+"&code_verifier="+r})}({clientId:r,code:n,codeVerifier:a,redirectUrl:i}).then((function(e){return e.json()})).then((function(e){if(!e.id_token)throw new Error("No token from response");var n=ct(e.id_token);if(!n.aud.includes(r))throw new Error("Aud differs from clientId!");if(n.iss!==pt(o)+"/api/v1/public/ol-authprovider")throw new Error("Wrong ISS");!function(e,t){void 0===t&&(t=".wp.pl");var n=new Date(Date.now()+12096e5);it.debug("setting OL_ID with: ",{adId:e,domain:t,expires:n}),tt.set("OL_ID",e,{domain:t,expires:n})}(n.ad_id,s),t.save(mt,e.access_token),t.save(_t,e.refresh_token),p(e.expires_in),function(e){it.debug("setting user token"),t.save(vt,e),document.dispatchEvent(new CustomEvent("ol-login"))}(e.id_token),l&&window.location.assign(decodeURIComponent(l))}))},h=function(){var e=t.load(mt);return e?function(e){return fetch($e.authProviderUrl+"/introspect",{headers:{Authorization:"Bearer "+e},method:"POST"})}(e).then((function(e){return 200===e.status?e.json().then((function(e){var t=Math.floor(Date.now()/1e3),n=e.exp-t;return p(n),!0})):e.status.toString().startsWith("4")?f():(it.error("invalid response during introspect"),u(),!1)})):Promise.resolve(!1)};return function(){!function(e){var t=pt(e.authUrl);$e=Object.freeze({origin:t,authProviderUrl:t+"/api/v1/public/ol-authprovider"})}(e),setInterval(h,6e4);var n=window.location.href;n.startsWith(decodeURI(i))&&n.includes("code=")?function(){var e=new URLSearchParams(window.location.search),n=e.get("state"),o=e.get("code"),r=e.get("error"),a=e.get("continue_url");if(!o)throw new Error("No code from response");if(r)throw new Error(r);history.replaceState({},"Logowanie 1L",i);var l=t.load(ht),c=t.load(gt);if(t.clear(ht),t.clear(gt),n!==l)throw console.error({state:n,storageState:l}),new Error("State differs from storage");if(!c)throw new Error("There is no `code_verifier` in storage");if(!l)throw new Error("There is no `state` in storage");v({code:o,codeVerifier:c,continueUrl:a})}():h().then((function(n){n?(it.debug("user logged in"),document.dispatchEvent(new CustomEvent("ol-login"))):(it.debug("no active session found"),function(e){var t=e.storage,n=e.callback,o=e.config;if(t.load(mt))it.debug("Token in storage - autologin denied");else{var r=wt();r?(it.debug("autologin - data found; initializing..."),bt(r,o).then((function(e){e?(it.debug("autologin - accepted; token granted"),n(e)):it.debug("autologin - denied; session no longer active")}))):it.debug("autologin - no data found")}}({config:e,storage:t,callback:v}),document.dispatchEvent(new CustomEvent("ol-not-logged")))}))}(),{login:function(e){var n=st(111);t.save(ht,n);var l=st(111);return t.save(gt,l),dt(l).then((function(t){var l=ft(ut(t)),s=new URLSearchParams("");e&&s.set("flow","select_account"),s.set("response_type","code"),s.set("client_id",r),s.set("redirect_uri",i),s.set("scope",a),s.set("state",n),s.set("code_challenge",l),s.set("code_challenge_method","S256"),c&&window.location.href.length<=at&&s.set("continue_url",window.location.href),window.location.assign(o+"?"+s.toString())}))},logout:function(){it.debug("logout initiated");try{var e=d().l_hint;u(),it.debug("removing autologin cookie"),tt.remove("OL_ID"),window.location.assign(pt(o)+"/api/v1/public/ol-authprovider/logout?l_hint="+e+"&post_logout_redirect_uri="+l)}catch(e){console.error(e)}},getUserData:function(){var e=d();return{first_name:e.first_name,last_name:e.last_name,email:e.sub,avatar_url:e.avatar_url}}}},Et=function(e,t){return"PKCE"===e.flow?xt(e,t):(o=(n=e).passContinueUrl,r=n.logout,i=r.url,a=r.method,l=void 0===a?"GET":a,c=n.authUrl,s=void 0,{login:function(e){var t=new URLSearchParams("");e&&t.set("flow","select_account"),o&&window.location.href.length<=at&&t.set("continue_url",window.location.href);var n=t.toString();window.location.assign(c+(n?"?"+n:""))},logout:function(){var e=document.createElement("form");e.setAttribute("method",l),e.setAttribute("action",i),document.body.appendChild(e),e.submit()},getUserData:function(){if(!s)throw new Error("No UserData in storage");return s},setUserData:function(e){s=e,document.dispatchEvent(new CustomEvent("ol-login"))}});var n,o,r,i,a,l,c,s},St=void 0,Lt={COOKIE:{clear:function(e){tt.remove(e,{domain:St,secure:!0,sameSite:"none"})},load:function(e){return tt.get(e)},save:function(e,t){tt.set(e,t,{domain:St,secure:!0,sameSite:"none"})}},LOCAL_STORAGE:{clear:function(e){return localStorage.removeItem(e)},load:function(e){return localStorage.getItem(e)},save:function(e,t){localStorage.setItem(e,t)}}};var Ot=function(e,t){return t||(t=e.slice(0)),e.raw=t,e},kt=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return e.map((function(e,t){return""+e+(n[t]||"")})).join("")};function Pt(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}var jt="styles-module_Button__1bJy1",Ct="styles-module_Icon__1t6X6";function Ut(){var e=Ot(['<button type="button" class="','"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" viewBox="0 0 18 20" class="','"><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>Zaloguj z 1login od WP</span></button>']);return Ut=function(){return e},e}Pt(".styles-module_Button__1bJy1{display:flex;align-items:center;justify-content:center;border:none;border-radius:4px;background-color:#2019f5;color:#fff;font-size:14px;outline:none;padding:10px 12px 10px 30px;max-width:270px;width:100%;position:relative;cursor:pointer}.styles-module_Button__1bJy1 span{position:relative}.styles-module_Button__1bJy1:hover{background-color:#333cf6}.styles-module_Icon__1t6X6{position:absolute;top:50%;left:12px;transform:translateY(-50%)}");var Tt="styles-module_Text__2N4ci",At="styles-module_Overlay__aUjWP",Rt="styles-module_Bold__27ljj",Bt="styles-module_Button__3Bq4n",It="styles-module_TextWrapper__3szJT";function zt(){var e=Ot(['<button type="button" id="','" class="olw__button'," ",'">','<div class="olw__button__text ','"><span class="olw__button__text--overlay '," ",'">','</span> <span class="olw__button__text--bold '," ",'">',"</span></div></button>"]);return zt=function(){return e},e}Pt(".styles-module_Text__2N4ci{display:block;max-width:95px}.styles-module_Text__2N4ci.styles-module_Overlay__aUjWP{position:absolute;left:50%;transform:translateX(-50%)}.styles-module_Text__2N4ci.styles-module_Bold__27ljj{font-weight:600;visibility:hidden}.styles-module_Button__3Bq4n{display:flex;justify-content:center;align-items:center;flex-direction:column;background:none;border:0;font-size:12px;font-weight:500;cursor:pointer;outline:0;text-transform:uppercase}.styles-module_Button__3Bq4n>*{position:relative}.styles-module_Button__3Bq4n:hover .styles-module_Overlay__aUjWP{visibility:hidden}.styles-module_Button__3Bq4n:hover .styles-module_Bold__27ljj{visibility:visible}.styles-module_Button__3Bq4n .styles-module_TextWrapper__3szJT{margin-top:8px}@media (max-width:768px){.styles-module_Button__3Bq4n .styles-module_TextWrapper__3szJT{display:none}}");var Mt=function(e,t,n,o){void 0===o&&(o=!0);var r=t.length<=10?t:t.substring(0,10).replace(/...$/,"...");return kt(zt(),e,o?"":"--login",Bt,n,It,Tt,At,r,Tt,Rt,r)},Dt="styles-module_Wrapper__28I5v",Nt="styles-module_Link__7LnyB",Ft="styles-module_Icon__2j5nC";Pt(".styles-module_Wrapper__28I5v{display:flex;flex-direction:column;padding:0 20px 10px;border-top:1px solid rgba(0,0,0,.1)}.styles-module_Link__7LnyB{display:flex;align-items:center;margin-top:10px;font-size:14px;cursor:pointer;color:#1a1a1a}.styles-module_Link__7LnyB:hover{text-decoration:underline}.styles-module_Icon__2j5nC{display:flex;align-items:center;justify-content:center;width:20px;margin-right:15px}");var Wt=function(){return"true"===tt.get("mobileApp")};function qt(){var e=Ot(['<div class="olw__action--logout ','"><a class="olw__action--link ','" id="olw-actions-logout"><span class="olw__action--icon ','"><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>Wyloguj</a></div>']);return qt=function(){return e},e}var Gt="styles-module_Wrapper__2g7OW",Jt="styles-module_AvatarWrapper__pJPgY",Vt="styles-module_Avatar__2n7RQ",Ht="styles-module_OneLoginLogo__2RFnu",Zt="styles-module_PersonalData__p1q4n",Kt="styles-module_Email__3ZhPR",Xt="styles-module_Link__1nZwl",Qt="styles-module_DisplayNone__1dBmu";function Yt(){var e=Ot(['<svg xmlns="http://www.w3.org/2000/svg" class="','" width="','" height="','" 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>']);return Yt=function(){return e},e}Pt(".styles-module_Wrapper__2g7OW{display:flex;flex-direction:column;width:100%;align-items:center;padding:20px 20px 0;box-sizing:border-box}.styles-module_AvatarWrapper__pJPgY{position:relative}.styles-module_Avatar__2n7RQ{height:60px;width:60px;border-radius:50%}@media (max-width:768px){.styles-module_Avatar__2n7RQ{height:43px;width:43px}}.styles-module_OneLoginLogo__2RFnu{position:absolute;bottom:0;left:-10px}.styles-module_PersonalData__p1q4n{margin-top:10px;font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.styles-module_Email__3ZhPR{font-size:12px;color:#656565;margin-bottom:10px}.styles-module_Link__1nZwl{font-size:14px;font-weight:600;color:#2019f5;margin-bottom:15px;cursor:pointer;text-decoration:none}.styles-module_Link__1nZwl:hover{text-decoration:underline}.styles-module_Link__1nZwl:last-child{margin-bottom:10px}.styles-module_DisplayNone__1dBmu{display:none}");var $t=function(e){var t=void 0===e?{}:e,n=t.size,o=void 0===n?30:n,r=t.class,i=void 0===r?"":r;return kt(Yt(),i,o,o)};function en(){var e=Ot(['<div class="','"><div class="olw__avatarwrapper ','">',' <svg xmlns="http://www.w3.org/2000/svg" width="24" height="23" viewBox="0 0 24 23" class="','"><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 ','">'," ",'</div><div class="olw__email ','">','</div><a class="olw__link '," ",'" href="','" target="_blank" rel="noreferrer noopener">Zarządzaj kontem </a><a class="olw__link ','" id="olw-link-login">Przełącz konto</a></div>']);return en=function(){return e},e}var tn="styles-module_Wrapper__3Ue2n",nn="styles-module_Dropdown__22z2G",on="styles-module_Open__qza-y",rn="styles-module_Closed__12SQg",an="styles-module_Backdrop__3E_yg",ln="styles-module_Visible__3WocK",cn="styles-module_Content__2QMnt",sn="styles-module_CloseButton__OZ9N-",un="styles-module_Placeholder__GOJhG",dn="styles-module_AvatarWrapper__2IFqp";function fn(){var e=Ot(['<div class="olw__button__avatar ','"><img src="','" alt="avatar"></div>']);return fn=function(){return e},e}function pn(){var e=Ot(['<div id="olw-db-backdrop" class="','"></div><div class="','">','<div id="olw-db-dropdown" class="olw__dropdown '," ",'"><div class="','"><div id="olw-db-user">a</div><div class="','" id="olw-db-user-actions-placeholder"></div><div id="olw-db-actions">b</div><button type="button" id="olw-db-x-button" class="','"><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>']);return pn=function(){return e},e}Pt(".styles-module_Wrapper__3Ue2n{color:#1a1a1a;position:relative}.styles-module_Dropdown__22z2G{position:absolute;width:350px;right:0;background-color:#fff;border-radius:5px;box-shadow:0 0 10px 0 rgba(0,0,0,.2);z-index:999;top:-5px;opacity:0;transform:scale(.2);transform-origin:top right;transition:transform .2s ease-in-out,opacity .2s ease-in-out,top .2s ease-in-out}.styles-module_Dropdown__22z2G.styles-module_Open__qza-y{top:100%;opacity:1;transform:scale(1)}.styles-module_Dropdown__22z2G.styles-module_Closed__12SQg{display:none}@media (max-width:768px){.styles-module_Dropdown__22z2G{position:fixed;transform-origin:top center;transform:scale(.2) translateX(-50%);top:10px;left:50%}.styles-module_Dropdown__22z2G.styles-module_Open__qza-y{top:10px;transform:scale(1) translateX(-50%)}}.styles-module_Backdrop__3E_yg{display:none;position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(88,88,88,.83);z-index:998}@media (max-width:768px){.styles-module_Backdrop__3E_yg.styles-module_Visible__3WocK{display:block}}.styles-module_Content__2QMnt{position:relative}.styles-module_CloseButton__OZ9N-{display:none;position:absolute;background:none;border:none;padding:0;margin:0;top:20px;right:20px;outline:none}@media (max-width:768px){.styles-module_CloseButton__OZ9N-{display:block}}.styles-module_Placeholder__GOJhG:not(:empty){border-top:1px solid rgba(0,0,0,.1)}.styles-module_AvatarWrapper__2IFqp{display:flex;align-items:center;justify-content:center;width:30px;height:30px;background-color:#e0e0e0;border-radius:50%}.styles-module_AvatarWrapper__2IFqp img{height:24px;width:24px;border-radius:50%}");var vn=function(e,t){var n=e.flow.getUserData(),o=n.first_name,r=n.avatar_url;t.innerHTML=kt(pn(),an,tn,Mt("olw-db-button",o,r?kt(fn(),dn,r):$t()),nn,rn,cn,un,sn);var i=document.getElementById("olw-db-dropdown"),a=document.getElementById("olw-db-backdrop"),l=document.getElementById("olw-db-button"),c=document.getElementById("olw-db-x-button"),s=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");var f=function(e,t,n){var o=n.avatar_url,r=n.first_name,i=n.last_name,a=n.email;t.innerHTML=kt(en(),Gt,Jt,o?'<img class="'+Vt+'" src="'+o+'" alt="avatar" />':$t({class:Vt}),Ht,Zt,r,i,Kt,a,Xt,Wt()||window.location.href.startsWith(yt)?Qt:"",yt,Xt);var l=t.querySelector("#olw-link-login");if(!l)throw new Error("User link login element not found");var c=function(){Wt()?window.location.assign("onelogin://profile/choose"):e.flow.login(!0)};return l.addEventListener("click",c),function(){l.removeEventListener("click",c)}}(e,u,n),p=function(e,t){t.innerHTML=kt(qt(),Dt,Nt,Ft);var n=t.querySelector("#olw-actions-logout");if(!n)throw new Error("Actions logout link element not found");var o=function(){Wt()?window.location.assign("onelogin://profile/logout"):e.flow.logout()};return n.addEventListener("click",o),function(){n.removeEventListener("click",o)}}(e,d),v=function(){i.classList.remove(on),a.classList.remove(ln),"none"===getComputedStyle(a).display&&document.body.removeAttribute("style"),setTimeout((function(){return i.classList.add(rn)}),250)};document.addEventListener("ol-close-dropdown",v);var h=function(){i.classList.contains(rn)?(i.classList.remove(rn),window.requestAnimationFrame((function(){window.requestAnimationFrame((function(){"none"!==getComputedStyle(a).display&&(document.body.style.overflow="hidden"),i.classList.add(on)}))})),a.classList.add(ln)):v()},g=function(e){"Escape"===e.code&&v()},m=function(e){i&&l&&e.target&&(i.contains(e.target)||l.contains(e.target)||v())};return null==l||l.addEventListener("click",h),null==c||c.addEventListener("click",v),document.addEventListener("keyup",g),document.addEventListener("click",m),s.forEach((function(e){return e.addEventListener("click",h)})),function(){f(),p(),null==l||l.removeEventListener("click",h),null==c||c.addEventListener("click",v),document.removeEventListener("keyup",g),document.removeEventListener("click",m),s.forEach((function(e){return e.removeEventListener("click",h)})),document.removeEventListener("ol-close-dropdown",v),t.innerHTML=""}};function hn(){var e=Ot(['<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>']);return hn=function(){return e},e}var gn=function(e,t){var n=[],o=function(){n.push(vn(e,t))},r=function(){n.push(function(e,t){t.innerHTML=Mt("ol-widget-login-button","Zaloguj",kt(hn()),!1);var n=document.querySelector("#ol-widget-login-button"),o=function(){et("service_header","click"),e.flow.login()};if(!n)throw new Error("Login button not exists");return et("service_header","view"),n.addEventListener("click",o),function(){n.removeEventListener("click",o)}}(e,t))};try{o()}catch(e){r()}return document.addEventListener("ol-login",o),document.addEventListener("ol-not-logged",r),function(){document.removeEventListener("ol-login",o),document.removeEventListener("ol-not-logged",r),n.forEach((function(e){return e()})),n.length=0}},mn=function(){document.dispatchEvent(new CustomEvent("ol-close-dropdown"))},_n=function(e){return{renderDropdown:function(t){return gn(e,t)},renderButton:function(t,n){return function(e,t,n){var o=function(){e.flow.login(n)};return t.innerHTML=kt(Ut(),jt,Ct),t.addEventListener("click",o),function(){t.removeEventListener("click",o)}}(e,t,n)},closeDropdown:mn}},yn=!1,wn=it.setLevel;e.createWidget=function(e){if(yn)throw new Error("Creating multiple widgets not allowed");!function(){if(!window.WP&&!document.querySelector("#wpjslib")){void 0===window.wp_sn&&(window.wp_sn="onelogin_widget");var 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.appendChild(e)}}(),yn=!0,it.debug("widget v1.25.1 initialized");var t=function(e){e.domain&&(St=e.domain);var t=e.stateStorage||"LOCAL_STORAGE";return it.debug("storage "+t+" initialized"),Lt[t]}(e),n=Et(e,t),r=_n({flow:n});return o({},n,r)},e.setLogLevel=wn,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=olwidget.js.map
