!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.klaro=t():e.klaro=t()}(self,(()=>(()=>{var e={362:(e,t,n)=>{"use strict";var o=n(441);function i(){}function r(){}r.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,r,s){if(s!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:i};return n.PropTypes=n,n}},441:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},688:(e,t,n)=>{e.exports=n(362)()}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.r(o),n.d(o,{addEventListener:()=>ln,defaultConfig:()=>nn,defaultTranslations:()=>on,getConfigTranslations:()=>pn,getElement:()=>cn,getElementID:()=>an,getManager:()=>kn,language:()=>ht,render:()=>dn,renderContextualConsentNotices:()=>_n,resetManagers:()=>bn,setup:()=>gn,show:()=>vn,updateConfig:()=>Pt,validateConfig:()=>hn,version:()=>En});var e,t,i,r,s,a,c,l,u,p,f,d,_={},m=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function v(e,t){for(var n in t)e[n]=t[n];return e}function y(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function b(t,n,o){var i,r,s,a={};for(s in n)"key"==s?i=n[s]:"ref"==s?r=n[s]:a[s]=n[s];if(arguments.length>2&&(a.children=arguments.length>3?e.call(arguments,2):o),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===a[s]&&(a[s]=t.defaultProps[s]);return k(t,a,i,r,null)}function k(e,n,o,r,s){var a={type:e,props:n,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==s?++i:s,__i:-1,__u:0};return null==s&&null!=t.vnode&&t.vnode(a),a}function E(e){return e.children}function w(e,t){this.props=e,this.context=t}function C(e,t){if(null==t)return e.__?C(e.__,e.__i+1):null;for(var n;tu&&r.sort(c),e=r.shift(),u=r.length,e.__d&&(o=void 0,s=(i=(n=e).__v).__e,a=[],l=[],n.__P&&((o=v({},i)).__v=i.__v+1,t.vnode&&t.vnode(o),q(n.__P,o,i,n.__n,n.__P.namespaceURI,32&i.__u?[s]:null,a,null==s?C(i):s,!!(32&i.__u),l),o.__v=i.__v,o.__.__k[o.__i]=o,U(a,o,l),o.__e!=s&&x(o)));O.__r=0}function S(e,t,n,o,i,r,s,a,c,l,u){var p,f,d,h,g,v,y=o&&o.__k||m,b=t.length;for(c=P(n,t,y,c,b),p=0;p0?k(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,-1!=(l=s.__i=D(s,n,c,p))&&(p--,(a=n[l])&&(a.__u|=2)),null==a||null==a.__v?(-1==l&&(i>u?f--:ic?f--:f++,s.__u|=4))):e.__k[r]=null;if(p)for(r=0;r(null==c||2&c.__u?0:1))for(i=n-1,r=n+1;i>=0||r=0){if((c=t[i])&&!(2&c.__u)&&s==c.key&&a==c.type)return i;i--}if(r0?e:g(e)?e.map(H):v({},e)}function I(n,o,i,r,s,a,c,l,u){var p,f,d,m,h,v,b,k=i.props,E=o.props,w=o.type;if("svg"==w?s="http://www.w3.org/2000/svg":"math"==w?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),null!=a)for(p=0;p2&&(c.children=arguments.length>3?e.call(arguments,2):o),k(t.type,c,i||t.key,r||t.ref,null)}e=m.slice,t={__e:function(e,t,n,o){for(var i,r,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(e)),s=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,o||{}),s=i.__d),s)return i.__E=i}catch(t){e=t}throw e}},i=0,w.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=v({},this.state),"function"==typeof e&&(e=e(v({},n),this.props)),e&&v(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),N(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),N(this))},w.prototype.render=E,r=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(e,t){return e.__v.__b-t.__v.__b},O.__r=0,l=/(PointerCapture)$|Capture$/i,u=0,p=M(!1),f=M(!0),d=0;var V,K,J,G,Y=0,Z=[],X=t,Q=X.__b,ee=X.__r,te=X.diffed,ne=X.__c,oe=X.unmount,ie=X.__;function re(e,t){X.__h&&X.__h(K,e,Y||t),Y=0;var n=K.__H||(K.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function se(e){return Y=1,ae(we,e)}function ae(e,t,n){var o=re(V++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):we(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],n=o.t(t,e);t!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=K,!K.__f)){var i=function(e,t,n){if(!o.__c.__H)return!0;var i=o.__c.__H.__.filter((function(e){return!!e.__c}));if(i.every((function(e){return!e.__N})))return!r||r.call(this,e,t,n);var s=o.__c.props!==e;return i.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}})),r&&r.call(this,e,t,n)||s};K.__f=!0;var r=K.shouldComponentUpdate,s=K.componentWillUpdate;K.componentWillUpdate=function(e,t,n){if(this.__e){var o=r;r=void 0,i(e,t,n),r=o}s&&s.call(this,e,t,n)},K.shouldComponentUpdate=i}return o.__N||o.__}function ce(e,t){var n=re(V++,3);!X.__s&&Ee(n.__H,t)&&(n.__=e,n.u=t,K.__H.__h.push(n))}function le(e,t){var n=re(V++,4);!X.__s&&Ee(n.__H,t)&&(n.__=e,n.u=t,K.__h.push(n))}function ue(e){return Y=5,fe((function(){return{current:e}}),[])}function pe(e,t,n){Y=6,le((function(){if("function"==typeof e){var n=e(t());return function(){e(null),n&&"function"==typeof n&&n()}}if(e)return e.current=t(),function(){return e.current=null}}),null==n?n:n.concat(e))}function fe(e,t){var n=re(V++,7);return Ee(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function de(e,t){return Y=8,fe((function(){return e}),t)}function _e(e){var t=K.context[e.__c],n=re(V++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(K)),t.props.value):e.__}function me(e,t){X.useDebugValue&&X.useDebugValue(t?t(e):e)}function he(){var e=re(V++,11);if(!e.__){for(var t=K.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function ge(){for(var e;e=Z.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(be),e.__H.__h.forEach(ke),e.__H.__h=[]}catch(t){e.__H.__h=[],X.__e(t,e.__v)}}X.__b=function(e){K=null,Q&&Q(e)},X.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ie&&ie(e,t)},X.__r=function(e){ee&&ee(e),V=0;var t=(K=e.__c).__H;t&&(J===K?(t.__h=[],K.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0}))):(t.__h.forEach(be),t.__h.forEach(ke),t.__h=[],V=0)),J=K},X.diffed=function(e){te&&te(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Z.push(t)&&G===X.requestAnimationFrame||((G=X.requestAnimationFrame)||ye)(ge)),t.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.u=void 0}))),J=K=null},X.__c=function(e,t){t.some((function(e){try{e.__h.forEach(be),e.__h=e.__h.filter((function(e){return!e.__||ke(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],X.__e(n,e.__v)}})),ne&&ne(e,t)},X.unmount=function(e){oe&&oe(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{be(e)}catch(e){t=e}})),n.__H=void 0,t&&X.__e(t,n.__v))};var ve="function"==typeof requestAnimationFrame;function ye(e){var t,n=function(){clearTimeout(o),ve&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,35);ve&&(t=requestAnimationFrame(n))}function be(e){var t=K,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),K=t}function ke(e){var t=K;e.__c=e.__(),K=t}function Ee(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function we(e,t){return"function"==typeof t?t(e):t}function Ce(e,t){for(var n in t)e[n]=t[n];return e}function xe(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var o in t)if("__source"!==o&&e[o]!==t[o])return!0;return!1}function Ne(e,t){var n=t(),o=se({t:{__:n,u:t}}),i=o[0].t,r=o[1];return le((function(){i.__=n,i.u=t,Oe(i)&&r({t:i})}),[e,n,t]),ce((function(){return Oe(i)&&r({t:i}),e((function(){Oe(i)&&r({t:i})}))}),[e]),n}function Oe(e){var t,n,o=e.u,i=e.__;try{var r=o();return!((t=i)===(n=r)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}function Se(e){e()}function Pe(e){return e}function Ae(){return[!1,Se]}var je=le;function De(e,t){this.props=e,this.context=t}(De.prototype=new w).isPureReactComponent=!0,De.prototype.shouldComponentUpdate=function(e,t){return xe(this.props,e)||xe(this.state,t)};var Te=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Te&&Te(e)};var Re="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,Me=function(e,t){return null==e?null:j(j(e).map(t))},qe={map:Me,forEach:Me,count:function(e){return e?j(e).length:0},only:function(e){var t=j(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:j},Ue=t.__e;t.__e=function(e,t,n,o){if(e.then)for(var i,r=t;r=r.__;)if((i=r.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);Ue(e,t,n,o)};var He=t.unmount;function Ie(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=Ce({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Ie(e,t,n)}))),e}function We(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return We(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Le(){this.__u=0,this.o=null,this.__b=null}function $e(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Fe(){this.i=null,this.l=null}t.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),He&&He(e)},(Le.prototype=new w).__c=function(e,t){var n=t.__c,o=this;null==o.o&&(o.o=[]),o.o.push(n);var i=$e(o.__v),r=!1,s=function(){r||(r=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(! --o.__u){if(o.state.__a){var e=o.state.__a;o.__v.__k[0]=We(e,e.__c.__P,e.__c.__O)}var t;for(o.setState({__a:o.__b=null});t=o.o.pop();)t.forceUpdate()}};o.__u++||32&t.__u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(s,s)},Le.prototype.componentWillUnmount=function(){this.o=[]},Le.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=Ie(this.__b,n,o.__O=o.__P)}this.__b=null}var i=t.__a&&b(E,null,e.fallback);return i&&(i.__u&=-33),[b(E,null,t.__a?null:e.children),i]};var Be=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),t.h.removeChild(e)}}}F(b(ze,{context:t.context},e.__v),t.v)}(Fe.prototype=new w).__a=function(e){var t=this,n=$e(t.__v),o=t.l.get(e);return o[0]++,function(i){var r=function(){t.props.revealOrder?(o.push(i),Be(t,e,o)):i()};n?n(r):r()}},Fe.prototype.render=function(e){this.i=null,this.l=new Map;var t=j(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Fe.prototype.componentDidUpdate=Fe.prototype.componentDidMount=function(){var e=this;this.l.forEach((function(t,n){Be(e,n,t)}))};var Ke="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Je=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ge=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ye=/[A-Z0-9]/g,Ze="undefined"!=typeof document,Xe=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Qe(e,t,n){return null==t.__k&&(t.textContent=""),F(e,t),"function"==typeof n&&n(),e?e.__c:null}w.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(w.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var et=t.event;function tt(){}function nt(){return this.cancelBubble}function ot(){return this.defaultPrevented}t.event=function(e){return et&&(e=et(e)),e.persist=tt,e.isPropagationStopped=nt,e.isDefaultPrevented=ot,e.nativeEvent=e};var it,rt={enumerable:!1,configurable:!0,get:function(){return this.class}},st=t.vnode;t.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,o={},i=-1===n.indexOf("-");for(var r in t){var s=t[r];if(!("value"===r&&"defaultValue"in t&&null==s||Ze&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var a=r.toLowerCase();"defaultValue"===r&&"value"in t&&null==t.value?r="value":"download"===r&&!0===s?s="":"translate"===a&&"no"===s?s=!1:"o"===a[0]&&"n"===a[1]?"ondoubleclick"===a?r="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||Xe(t.type)?"onfocus"===a?r="onfocusin":"onblur"===a?r="onfocusout":Ge.test(r)&&(r=a):a=r="oninput":i&&Je.test(r)?r=r.replace(Ye,"-$&").toLowerCase():null===s&&(s=void 0),"oninput"===a&&o[r=a]&&(r="oninputCapture"),o[r]=s}}"select"==n&&o.multiple&&Array.isArray(o.value)&&(o.value=j(t.children).forEach((function(e){e.props.selected=-1!=o.value.indexOf(e.props.value)}))),"select"==n&&null!=o.defaultValue&&(o.value=j(t.children).forEach((function(e){e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value}))),t.class&&!t.className?(o.class=t.class,Object.defineProperty(o,"className",rt)):(t.className&&!t.class||t.class&&t.className)&&(o.class=o.className=t.className),e.props=o}(e),e.$$typeof=Ke,st&&st(e)};var at=t.__r;t.__r=function(e){at&&at(e),it=e.__c};var ct=t.diffed;t.diffed=function(e){ct&&ct(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),it=null};var lt={ReactCurrentDispatcher:{current:{readContext:function(e){return it.__n[e.__c].props.value},useCallback:de,useContext:_e,useDebugValue:me,useDeferredValue:Pe,useEffect:ce,useId:he,useImperativeHandle:pe,useInsertionEffect:je,useLayoutEffect:le,useMemo:fe,useReducer:ae,useRef:ue,useState:se,useSyncExternalStore:Ne,useTransition:Ae}}};function ut(e){return!!e&&e.$$typeof===Ke}var pt={useState:se,useId:he,useReducer:ae,useEffect:ce,useLayoutEffect:le,useInsertionEffect:je,useTransition:Ae,useDeferredValue:Pe,useSyncExternalStore:Ne,startTransition:Se,useRef:ue,useImperativeHandle:pe,useMemo:fe,useCallback:de,useContext:_e,useDebugValue:me,version:"18.3.1",Children:qe,render:Qe,hydrate:function(e,t,n){return B(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(F(null,e),!0)},createPortal:function(e,t){var n=b(Ve,{__v:e,h:t});return n.containerInfo=t,n},createElement:b,createContext:function(e){function t(e){var n,o;return this.getChildContext||(n=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach((function(e){e.__e=!0,N(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+d++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t},createFactory:function(e){return b.bind(null,e)},cloneElement:function(e){return ut(e)?z.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:E,isValidElement:ut,isElement:ut,isFragment:function(e){return ut(e)&&e.type===E},isMemo:function(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")},findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:w,PureComponent:De,memo:function(e,t){function n(e){var n=this.props.ref,o=n==e.ref;return!o&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!o:xe(this.props,e)}function o(t){return this.shouldComponentUpdate=n,b(e,t)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o},forwardRef:function(e){function t(t){var n=Ce({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Re,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:E,Suspense:Le,SuspenseList:Fe,lazy:function(e){var t,n,o;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){o=e})),o)throw o;if(!n)throw t;return b(n,i)}return i.displayName="Lazy",i.__f=!0,i},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:lt},ft=n(688);const dt=({t:e})=>pt.createElement("svg",{role:"img","aria-label":e(["close"]),width:"12",height:"12",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},pt.createElement("title",null,e(["close"])),pt.createElement("line",{x1:"1",y1:"11",x2:"11",y2:"1",strokeWidth:"1"}),pt.createElement("line",{x1:"1",y1:"1",x2:"11",y2:"11",strokeWidth:"1"}));function _t(e){return e.split("-").map((e=>e.slice(0,1).toUpperCase()+e.slice(1))).join(" ")}dt.propTypes={t:n.n(ft)().func};const mt=(e,...t)=>{const n=typeof t[0];let o;o=0===t.length?{}:"string"===n||"number"===n?Array.prototype.slice.call(t):t[0];const i=[];let r=e.toString();for(;r.length>0;){const e=r.match(/\{(?!\{)([\w\d]+)\}(?!\})/);if(null!==e){const t=r.substr(0,e.index);r=r.substr(e.index+e[0].length);const n=parseInt(e[1]);i.push(t),n!=n?i.push(o[e[1]]):i.push(o[n])}else i.push(r),r=""}return i};function ht(e){if(void 0!==e&&void 0!==e.lang&&"zz"!==e.lang)return e.lang;const t=(("string"==typeof window.language?window.language:null)||document.documentElement.lang||(void 0!==e&&void 0!==e.languages&&void 0!==e.languages[0]?e.languages[0]:"en")).toLowerCase(),n=new RegExp("^([\\w]+)-([\\w]+)$").exec(t);return null===n?t:n[1]}function gt(e,t,n){let o=t;Array.isArray(o)||(o=[o]);let i=e;for(let e=0;e0?mt(a,...i):a}const yt=({text:e,config:t})=>{if(e instanceof Array||(e=[e]),!0===t.htmlTexts){let t=!1;"<"===e[0][0]&&(t=!0);const n=e.map(((e,t)=>"string"==typeof e?pt.createElement("span",{key:t,dangerouslySetInnerHTML:{__html:e}}):e));return t?pt.createElement(pt.Fragment,null,n):pt.createElement("span",null,n)}return pt.createElement("span",null,e)};function bt(){return bt=Object.assign?Object.assign.bind():function(e){for(var t=1;tu(["!","purposes",e,"title?"])||_t(e))).join(", "),g=f?pt.createElement("span",{className:"cm-opt-out",title:u(["service","optOut","description"])},u(["service","optOut","title"])):"",v=p?pt.createElement("span",{className:"cm-required",title:u(["service","required","description"])},u(["service","required","title"])):"";let y;d.length>0&&(y=pt.createElement("p",{className:"purposes"},u(["service",d.length>1?"purposes":"purpose"]),": ",h));const b=c||vt(s,i,"zz",["!","description"])||u(["!",o,"description?"]);return pt.createElement("div",null,pt.createElement("input",{id:_,className:"cm-list-input"+(p?" required":"")+(t?" half-checked only-required":""),"aria-labelledby":`${m}`,"aria-describedby":`${_}-description`,disabled:p,checked:e||p,tabIndex:l?"0":"-1",type:"checkbox",onChange:e=>{n(e.target.checked)}}),pt.createElement("label",bt({htmlFor:_,className:"cm-list-label"},p?{tabIndex:"0"}:{}),pt.createElement("span",{className:"cm-list-title",id:`${m}`},a||vt(s,i,"zz",["!","title"])||u(["!",o,"title?"])||_t(o)),v,g,pt.createElement("span",{className:"cm-switch"},pt.createElement("div",{className:"slider round active"}))),pt.createElement("div",{id:`${_}-description`},b&&pt.createElement("p",{className:"cm-list-description"},pt.createElement(yt,{config:r,text:b})),y))}}function Et(){return Et=Object.assign?Object.assign.bind():function(e){for(var t=1;te.map((e=>{const a=n[e.name];return pt.createElement("li",{key:e.name,className:"cm-service"},pt.createElement(kt,Et({checked:a||e.required,onToggle:t=>{i([e],t)},config:t,lang:o,visible:r,t:s},e)))}));class Ct extends pt.Component{constructor(e){super(e),e.manager.watch(this),this.state={consents:e.manager.consents}}componentWillUnmount(){this.props.manager.unwatch(this)}update(e,t,n){e===this.props.manager&&"consents"===t&&this.setState({consents:n})}render(){const{config:e,t,manager:n,lang:o}=this.props,{consents:i}=this.state,{services:r}=e,s=(e,t)=>{e.map((e=>{e.required||n.updateConsent(e.name,t)}))},a=pt.createElement(wt,{config:e,lang:o,services:r,t,consents:i,toggle:s}),c=r.filter((e=>!e.required)),l=c.filter((e=>i[e.name])).length,u=r.filter((e=>e.required)).length,p=l===c.length;return r.filter((e=>e.required)).length,pt.createElement("ul",{className:"cm-services"},a,!e.hideToggleAll&&c.length>1&&pt.createElement("li",{className:"cm-service cm-toggle-all"},pt.createElement(kt,{name:"disableAll",title:t(["service","disableAll","title"]),description:t(["service","disableAll","description"]),checked:p,config:e,onlyRequiredEnabled:!p&&u>0,onToggle:e=>{s(r,e)},lang:o,t})))}}function xt(){return xt=Object.assign?Object.assign.bind():function(e){for(var t=1;tf(["!","purposes",e,"title?"])||_t(e))).join(", "),y=_?pt.createElement("span",{className:"cm-required",title:f(["!","service","required","description"])||""},f(["service","required","title"])):"";let b;m.length>0&&(b=pt.createElement("p",{className:"purposes"},f(["purpose",m.length>1?"purposes":"purpose"]),": ",v));const k=e=>{e.preventDefault();const t="false"!==e.currentTarget.getAttribute("aria-expanded");e.currentTarget.setAttribute("aria-expanded",!t),this.setState({servicesVisible:!d})},E=pt.createElement(wt,{config:i,lang:a,services:o,toggle:(e,t)=>{e.map((e=>{e.required||c.updateConsent(e.name,t)}))},consents:l,visible:d,t:f}),w=p||f(["!","purposes",s,"description"]);return pt.createElement(pt.Fragment,null,pt.createElement("input",{id:h,className:"cm-list-input"+(_?" required":"")+(e?"":t?" only-required":" half-checked"),"aria-labelledby":`${g}`,"aria-describedby":`${h}-description`,disabled:_,checked:e||!n&&!t,type:"checkbox",onChange:e=>{r(e.target.checked)}}),pt.createElement("label",xt({htmlFor:h,className:"cm-list-label"},_?{tabIndex:"0"}:{}),pt.createElement("span",{className:"cm-list-title",id:`${g}`},u||f(["!","purposes",s,"title?"])||_t(s)),y,pt.createElement("span",{className:"cm-switch"},pt.createElement("div",{className:"slider round active"}))),pt.createElement("div",{id:`${h}-description`},w&&pt.createElement("p",{className:"cm-list-description"},pt.createElement(yt,{config:i,text:w})),b),o.length>0&&pt.createElement("div",{className:"cm-services"},pt.createElement("div",{className:"cm-caret"},pt.createElement("a",{href:"#","aria-haspopup":"true","aria-expanded":"false",tabIndex:"0",onClick:k,onKeyDown:e=>{32===e.keyCode&&k(e)}},d&&pt.createElement("span",null,"↑")||pt.createElement("span",null,"↓")," ",o.length," ",f(["purposeItem",o.length>1?"services":"service"]))),pt.createElement("ul",{className:"cm-content"+(d?" expanded":"")},E)))}}class Ot extends pt.Component{constructor(e){super(e),e.manager.watch(this),this.state={consents:e.manager.consents}}componentWillUnmount(){this.props.manager.unwatch(this)}update(e,t,n){e===this.props.manager&&"consents"===t&&this.setState({consents:n})}render(){const{config:e,t,manager:n,lang:o}=this.props,{consents:i}=this.state,{services:r}=e,s={};for(const e of r)for(const t of e.purposes)void 0===s[t]&&(s[t]=[]),s[t].push(e);const a=(e,t)=>{e.map((e=>{const o=s[e];for(const e of o)e.required||n.updateConsent(e.name,t)}))},c=e=>{const t={allEnabled:!0,onlyRequiredEnabled:!0,allDisabled:!0,allRequired:!0};for(const n of e)n.required||(t.allRequired=!1),i[n.name]?(n.required||(t.onlyRequiredEnabled=!1),t.allDisabled=!1):n.required||(t.allEnabled=!1);return t.allDisabled&&(t.onlyRequiredEnabled=!1),t},l=e.purposeOrder||[],u=Object.keys(s).sort(((e,t)=>l.indexOf(e)-l.indexOf(t))).map((r=>{const l=c(s[r]);return pt.createElement("li",{key:r,className:"cm-purpose"},pt.createElement(Nt,{allEnabled:l.allEnabled,allDisabled:l.allDisabled,onlyRequiredEnabled:l.onlyRequiredEnabled,required:l.allRequired,consents:i,name:r,config:e,lang:o,manager:n,onToggle:e=>{a([r],e)},services:s[r],t}))})),p=Object.keys(s).filter((e=>{for(const t of s[e])if(!t.required)return!0;return!1})),f=c(r);return pt.createElement("ul",{className:"cm-purposes"},u,p.length>1&&pt.createElement("li",{className:"cm-purpose cm-toggle-all"},pt.createElement(Nt,{name:"disableAll",title:t(["service","disableAll","title"]),description:t(["service","disableAll","description"]),allDisabled:f.allDisabled,allEnabled:f.allEnabled,onlyRequiredEnabled:f.onlyRequiredEnabled,onToggle:e=>{a(Object.keys(s),e)},manager:n,consents:i,config:e,lang:o,services:[],t})))}}class St extends pt.Component{componentDidMount(){this.consentModalRef&&this.consentModalRef.focus()}render(){const{hide:e,confirming:t,saveAndHide:n,acceptAndHide:o,declineAndHide:i,config:r,manager:s,lang:a,t:c}=this.props,{embedded:l}=r,u=void 0===r.groupByPurpose||r.groupByPurpose;let p,f,d;r.mustConsent||(p=pt.createElement("button",{title:c(["close"]),"aria-label":c(["close"]),className:"hide",type:"button",onClick:e,tabIndex:"0",ref:e=>{this.consentModalRef=e}},pt.createElement(dt,{t:c}))),r.hideDeclineAll||s.confirmed||(f=pt.createElement("button",{disabled:t,className:"cm-btn cm-btn-decline cm-btn-danger cn-decline",type:"button",onClick:i},c(["decline"])));const _=pt.createElement("button",{disabled:t,className:"cm-btn cm-btn-success cm-btn-info cm-btn-accept",type:"button",onClick:n},c([s.confirmed?"save":"acceptSelected"]));let m,h,g;r.acceptAll&&!s.confirmed&&(d=pt.createElement("button",{disabled:t,className:"cm-btn cm-btn-success cm-btn-accept-all",type:"button",onClick:o},c(["acceptAll"]))),void 0!==r.privacyPolicy?"string"==typeof r.privacyPolicy?m=r.privacyPolicy:"object"==typeof r.privacyPolicy&&(m=r.privacyPolicy[a]||r.privacyPolicy.default):(m=c(["!","privacyPolicyUrl"],{lang:a}),void 0!==m&&(m=m.join(""))),void 0!==m&&(h=pt.createElement("a",{key:"ppLink",href:m,target:"_blank",rel:"noopener"},c(["privacyPolicy","name"]))),g=u?pt.createElement(Ot,{t:c,config:r,manager:s,lang:a}):pt.createElement(Ct,{t:c,config:r,manager:s,lang:a});const v=pt.createElement("div",{className:"cm-modal cm-klaro"},pt.createElement("div",{className:"cm-header"},p,pt.createElement("h1",{className:"title"},pt.createElement(yt,{config:r,text:c(["consentModal","title"])})),pt.createElement("p",null,pt.createElement(yt,{config:r,text:[c(["consentModal","description"])].concat(h&&[" "].concat(c(["privacyPolicy","text"],{privacyPolicy:h}))||[])}))),pt.createElement("div",{className:"cm-body"},g),pt.createElement("div",{className:"cm-footer"},pt.createElement("div",{className:"cm-footer-buttons"},f,_,d),!r.disablePoweredBy&&pt.createElement("p",{className:"cm-powered-by"},pt.createElement("a",{target:"_blank",href:r.poweredBy||"https://kiprotect.com/klaro",rel:"noopener"},c(["poweredBy"])))));return l?pt.createElement("div",{id:"cookieScreen",className:"cookie-modal cm-embedded"},v):pt.createElement("div",{id:"cookieScreen",className:"cookie-modal"},pt.createElement("div",{className:"cm-bg",onClick:e}),v)}}function Pt(e,t,n){void 0===n&&(n=!0);const o=Object.keys(t);for(let i=0;i{const{modal:o}=this.state;let i=0;e&&(i=this.props.manager.changeAll(t));const r=this.props.manager.confirmed;if(this.props.manager.saveAndApplyConsents(n),e&&!r&&(o||this.props.config.mustConsent)){const e=()=>{this.setState({confirming:!1}),this.props.hide()};this.setState({confirming:!0}),0===i?e():setTimeout(e,800)}else this.props.hide()})),At(this,"saveAndHide",(()=>{this.executeButtonClicked(!1,!1,"save")})),At(this,"acceptAndHide",(()=>{this.executeButtonClicked(!0,!0,"accept")})),At(this,"declineAndHide",(()=>{this.executeButtonClicked(!0,!1,"decline")})),this.state={modal:e.modal,confirming:!1}}componentDidMount(){this.props.config.autoFocus&&this.noticeRef&&this.noticeRef.focus()}componentDidUpdate(e){e.modal!==this.props.modal&&this.setState({modal:this.props.modal}),this.noticeRef&&this.noticeRef.focus()}render(){const{lang:e,config:t,show:n,manager:o,testing:i,t:r}=this.props,{confirming:s,modal:a}=this.state,{embedded:c,noticeAsModal:l,hideLearnMore:u}=t,p=t.purposeOrder||[],f=function(e){const t=new Set([]);for(let n=0;n"functional"!==e)).sort(((e,t)=>p.indexOf(e)-p.indexOf(t))),d=f.map((e=>r(["!","purposes",e,"title?"])||_t(e)));let _,m="";m=1===d.length?d[0]:[...d.slice(0,-2),d.slice(-2).join(" & ")].join(", "),void 0!==t.privacyPolicy?"string"==typeof t.privacyPolicy?_=t.privacyPolicy:"object"==typeof t.privacyPolicy&&(_=t.privacyPolicy[e]||t.privacyPolicy.default):(_=r(["!","privacyPolicyUrl"],{lang:e}),void 0!==_&&(_=_.join("")));const h=e=>{e.preventDefault(),this.setState({modal:!0})};let g;if(o.changed&&(g=pt.createElement("p",{className:"cn-changes"},r(["consentNotice","changeDescription"]))),!n&&!i&&!s)return pt.createElement("div",null);const v=(!t.mustConsent||l)&&!o.confirmed&&!t.noNotice,y=t.hideDeclineAll?"":pt.createElement("button",{className:"cm-btn cm-btn-danger cn-decline",type:"button",onClick:this.declineAndHide},r(["decline"])),b=t.acceptAll?pt.createElement("button",{className:"cm-btn cm-btn-success",type:"button",onClick:this.acceptAndHide},r(["ok"])):pt.createElement("button",{className:"cm-btn cm-btn-success",type:"button",onClick:this.saveAndHide},r(["ok"])),k=()=>l?pt.createElement("button",{key:"learnMoreLink",className:"cm-btn cm-btn-lern-more cm-btn-info",type:"button",onClick:h},r(["consentNotice","learnMore"])):pt.createElement("a",{key:"learnMoreLink",className:"cm-link cn-learn-more",href:"#",onClick:h},r(["consentNotice","learnMore"]));let E;if(void 0!==_&&(E=pt.createElement("a",{key:"ppLink",href:_},r(["privacyPolicy","name"]))),a||o.confirmed&&!i||!o.confirmed&&t.mustConsent)return pt.createElement(St,{t:r,lang:e,config:t,hide:()=>{t.mustConsent&&!t.acceptAll||(o.confirmed&&!i?this.props.hide():this.setState({modal:!1}),setTimeout((()=>{this.noticeRef&&this.noticeRef.focus()}),1))},confirming:s,declineAndHide:this.declineAndHide,saveAndHide:this.saveAndHide,acceptAndHide:this.acceptAndHide,manager:o});const w=pt.createElement("div",{role:"dialog","aria-describedby":"id-cookie-notice","aria-labelledby":"id-cookie-title",id:"klaro-cookie-notice",tabIndex:"0",autofocus:t.autoFocus,ref:e=>{this.noticeRef=e},className:`cookie-notice ${v||i?"":"cookie-notice-hidden"} ${l?"cookie-modal-notice":""} ${c?"cn-embedded":""}`},pt.createElement("div",{className:"cn-body"},r(["!","consentNotice","title"])&&t.showNoticeTitle&&pt.createElement("h2",{id:"id-cookie-title"},r(["consentNotice","title"])),pt.createElement("p",{id:"id-cookie-notice"},pt.createElement(yt,{config:t,text:r(["consentNotice","description"],{purposes:pt.createElement("strong",{key:"strong"},m),privacyPolicy:E,learnMoreLink:k()})})),i&&pt.createElement("p",null,r(["consentNotice","testing"])),g,pt.createElement("div",{className:"cn-ok"},!u&&k(),pt.createElement("div",{className:"cn-buttons"},y,b))));return l?pt.createElement("div",{id:"cookieScreen",className:"cookie-modal"},pt.createElement("div",{className:"cm-bg"}),w):w}}class Dt extends pt.Component{constructor(e){super(e),e.manager.watch(this),this.state={show:e.show>0||!e.manager.confirmed}}componentWillUnmount(){this.props.manager.unwatch(this)}update(e,t){e===this.props.manager&&"applyConsents"===t&&(!this.props.config.embedded&&this.props.manager.confirmed?this.setState({show:!1}):this.forceUpdate())}notifyApi(){const{api:e,modal:t,show:n,config:o}=this.props;if(void 0!==e){if(t||n>0)return;this.props.manager.confirmed||this.props.manager.auxiliaryStore.getWithKey("shown-before")||(e.update(this,"showNotice",{config:o}),this.props.manager.auxiliaryStore.setWithKey("shown-before",!0))}}componentDidMount(){this.notifyApi()}componentDidUpdate(e){if(e.show===this.props.show)return;this.notifyApi();const t=this.props.show>0||!this.props.manager.confirmed;t!==this.state.show&&this.setState({show:t})}render(){const{config:e,t,lang:n,testing:o,manager:i,modal:r}=this.props,{show:s}=this.state,{additionalClass:a,embedded:c,stylePrefix:l}=e;return pt.createElement("div",{lang:n,className:(l||"klaro")+(void 0!==a?" "+a:"")},pt.createElement(jt,{key:"app-"+this.props.show,t,testing:o,show:s,lang:n,modal:r,hide:()=>{c||this.setState({show:!1})},config:e,manager:i}))}}const Tt=({manager:e,style:t,config:n,t:o,lang:i,service:r})=>{const[s,a]=se(0),{additionalClass:c,embedded:l,stylePrefix:u}=n;ce((()=>{const t={update:()=>a(s+1)};return e.watch(t),()=>{e.unwatch(t)}}));const p=vt(r.translations||{},i,"zz",["!","title"])||o(["!",r.name,"title?"])||_t(r.name);return pt.createElement("div",{lang:i,className:(u||"klaro")+(void 0!==c?" "+c:"")+" cm-as-context-notice"},pt.createElement("div",{className:"context-notice"+(void 0!==t?` cm-${t}`:"")},pt.createElement("p",null,o(["contextualConsent","description"],{title:p})),pt.createElement("p",{className:"cm-buttons"},pt.createElement("button",{className:"cm-btn cm-btn-success",type:"button",onClick:()=>{e.updateConsent(r.name,!0),e.applyConsents(!1,!0,r.name),e.updateConsent(r.name,!1)}},o(["contextualConsent","acceptOnce"])),null!==e.store.get()?pt.createElement("button",{className:"cm-btn cm-btn-success-var",type:"button",onClick:()=>{e.updateConsent(r.name,!0),e.confirmed?(e.saveConsents("contextual-accept"),e.applyConsents(!1,!0,r.name)):e.applyConsents(!1,!0,r.name)}},o(["contextualConsent","acceptAlways"])):""),null===e.store.get()&&n.showDescriptionEmptyStore?pt.createElement(pt.Fragment,null,pt.createElement("p",{className:"ccn-description-empty-store"},o(["contextualConsent","descriptionEmptyStore"],{title:p,link:pt.createElement("a",{key:"modalLink",className:"ccn-modal-link",href:"#",onClick:e=>{e.preventDefault(),vn(n,!0)}},o(["contextualConsent","modalLinkText"]))}))):""))};function Rt(){const e=document.cookie.split(";"),t=[],n=new RegExp("^\\s*([^=]+)\\s*=\\s*(.*?)$");for(let o=0;o{n.update(this,e,t)}))}getService(e){const t=this.config.services.filter((t=>t.name===e));if(t.length>0)return t[0]}getDefaultConsent(e){let t=e.default||e.required;return void 0===t&&(t=this.config.default),void 0===t&&(t=!1),t}changeAll(e){let t=0;return this.config.services.filter((e=>!e.contextualConsentOnly)).map((n=>{n.required||this.config.required||e?this.updateConsent(n.name,!0)&&t++:this.updateConsent(n.name,!1)&&t++})),t}updateConsent(e,t){const n=(this.consents[e]||!1)!==t;return this.consents[e]=t,this.notify("consents",this.consents),n}resetConsents(){this.consents=this.defaultConsents,this.states={},this.confirmed=!1,this.applyConsents(),this.savedConsents=Ft({},this.consents),this.store.delete(),this.notify("consents",this.consents)}getConsent(e){return this.consents[e]||!1}loadConsents(){const e=this.store.get();return null!==e&&(this.consents=JSON.parse(decodeURIComponent(e)),this._checkConsents(),this.notify("consents",this.consents)),this.consents}saveAndApplyConsents(e){this.saveConsents(e),this.applyConsents()}changedConsents(){const e={};for(const[t,n]of Object.entries(this.consents))this.savedConsents[t]!==n&&(e[t]=n);return e}saveConsents(e){const t=encodeURIComponent(JSON.stringify(this.consents));this.store.set(t),this.confirmed=!0,this.changed=!1;const n=this.changedConsents();this.savedConsents=Ft({},this.consents),this.notify("saveConsents",{changes:n,consents:this.consents,type:e||"script"})}applyConsents(e,t,n){function o(e,t){if(void 0===e)return;let n;return n="function"==typeof e?e:new Function("opts",e),n(t)}let i=0;for(let e=0;e0){const t=Rt();for(let n=0;ne.name))),n=new Set(Object.keys(this.consents));for(const e of Object.keys(this.consents))t.has(e)||delete this.consents[e];for(const t of this.config.services)n.has(t.name)||(this.consents[t.name]=this.getDefaultConsent(t),e=!1);this.confirmed=e,e||(this.changed=!0)}}function Vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Kt(e){for(var t=1;t{const s=new XMLHttpRequest;let a;var c;s.addEventListener("load",(()=>{const e=JSON.parse(s.response);s.status<200||s.status>=300?(e.status=s.status,r(e)):i(e,s.status)})),s.addEventListener("error",(()=>{r({status:0,xhr:s})})),void 0!==n&&("GET"===e?t+="?"+(c=n,"?"+Object.keys(c).map((function(e){return e+"="+encodeURIComponent(c[e])})).join("&")):a=JSON.stringify(n)),s.open(e,this.url+t),void 0!==a&&s.setRequestHeader("Content-Type",o||"application/json;charset=UTF-8"),s.send(a)}))}submitConsentData(e){return this.apiRequest("POST","/v1/privacy-managers/"+this.id+"/submit",e,"text/plain;charset=UTF-8")}loadConfig(e){return this.apiRequest("GET","/v1/privacy-managers/"+this.id+"/config.json?name="+e+(this.opts.testing?"&testing=true":""))}loadConfigs(){return this.apiRequest("GET","/v1/privacy-managers/"+this.id+"/configs.json"+(this.opts.testing?"&testing=true":""))}}function Yt(e){const t=new Map([]);for(const n of Object.keys(e)){const o=e[n];"string"==typeof n&&("string"==typeof o||null===o?t.set(n,o):t.set(n,Yt(o)))}return t}function Zt(e,t,n,o){const i=(e,t,n)=>{if(n instanceof Map){const o=new Map([]);Zt(o,n,!0,!1),e.set(t,o)}else e.set(t,n)};if(!(t instanceof Map&&e instanceof Map))throw new Error("Parameters are not maps!");void 0===n&&(n=!0),void 0===o&&(o=!1),o&&(e=new e.constructor(e));for(const r of t.keys()){const s=t.get(r),a=e.get(r);if(e.has(r))if(s instanceof Map&&a instanceof Map)e.set(r,Zt(a,s,n,o));else{if(!n)continue;i(e,r,s)}else i(e,r,s)}return e}const Xt={top:{_meta:{incompatibleWith:["bottom"]},"notice-top":"20px","notice-bottom":"auto"},bottom:{_meta:{incompatibleWith:["top"]},"notice-bottom":"20px","notice-top":"auto"},left:{_meta:{incompatibleWith:["wide"]},"notice-left":"20px","notice-right":"auto"},right:{_meta:{incompatibleWith:["wide"]},"notice-right":"20px","notice-left":"auto"},wide:{"notice-left":"20px","notice-right":"auto","notice-max-width":"calc(100vw - 60px)","notice-position":"fixed"},light:{"button-text-color":"#fff",dark1:"#fafafa",dark2:"#777",dark3:"#555",light1:"#444",light2:"#666",light3:"#111",green3:"#f00"}};function Qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function en(e){for(var t=1;t`${t}: ${o}; ${t}: var(--${n}, ${o})`))}const o=document.createElement("style");o.setAttribute("type","text/css"),o.setAttribute("data-context","klaro-styles"),void 0!==o.styleSheet?o.styleSheet.cssText=t:o.innerText=t,n.parentElement.appendChild(o),n.parentElement.removeChild(n)}}(o)}(e,Xt,o);const r=ht(e),s=pn(e),a=(...t)=>vt(s,r,e.fallbackLang||"zz",...t),c=Qe(pt.createElement(Dt,{t:a,lang:r,manager:i,config:e,testing:t.testing,modal:t.modal,api:t.api,show:n}),o);return _n(i,a,r,e,t),c}function _n(e,t,n,o,i){const r=[];for(const s of o.services){const a=e.getConsent(s.name)&&(e.confirmed||s.optOut),c=document.querySelectorAll("[data-name='"+s.name+"']");for(const l of c){const c=qt(l);if("placeholder"!==c.type&&("IFRAME"===l.tagName||"DIV"===l.tagName)){let u=l.previousElementSibling;if(null!==u){const e=qt(u);"placeholder"===e.type&&e.name===s.name||(u=null)}if(null===u){u=document.createElement("DIV"),u.style.maxWidth=l.width+"px",u.style.height=l.height+"px",Ut({type:"placeholder",name:s.name},u),a&&(u.style.display="none"),l.parentElement.insertBefore(u,l);const p=Qe(pt.createElement(Tt,{t,lang:n,manager:e,config:o,service:s,style:c.style,testing:i.testing,api:i.api}),u);r.push(p)}"IFRAME"===l.tagName&&(c.src=l.src),void 0===c["modified-by-klaro"]&&void 0===l.style.display&&(c["original-display"]=l.style.display),c["modified-by-klaro"]="yes",Ut(c,l),a||(l.src="",l.style.display="none")}}}return r}function mn(e){/complete|interactive|loaded/.test(document.readyState)?e():window.addEventListener("DOMContentLoaded",e)}function hn(e){const t=en({},e);return 2===t.version||(void 0!==t.apps&&void 0===t.services&&(t.services=t.apps,console.warn("Warning, your configuration file is outdated. Please change `apps` to `services`"),delete t.apps),void 0!==t.translations&&void 0!==t.translations.apps&&void 0===t.services&&(t.translations.services=t.translations.apps,console.warn("Warning, your configuration file is outdated. Please change `apps` to `services` in the `translations` key"),delete t.translations.apps)),t}function gn(e){if(void 0===window)return;const t=function(){if(null!==document.currentScript&&void 0!==document.currentScript)return document.currentScript;const e=document.getElementsByTagName("script");for(let t=0;te.split("="))).map((e=>1===e.length?[e[0],!0]:e))),o=n.get("klaro-testing"),i=e=>{const t=en(en({},e),{},{testing:o});nn.noAutoLoad||nn.testing&&!t.testing||dn(nn,t)};if(void 0!==e)nn=e,mn((()=>i({})));else if(null!==t){const e=function(e){const t=e.getAttribute("data-klaro-id");if(null!==t)return t;const n=/.*\/privacy-managers\/([a-f0-9]+)\/klaro.*\.js/.exec(e.src);return null!==n?n[1]:null}(t),r=function(e){const t=e.getAttribute("data-klaro-api-url");if(null!==t)return t;const n=/(http(?:s)?:\/\/[^/]+)\/v1\/privacy-managers\/([a-f0-9]+)\/klaro.*\.js/.exec(e.src);return null!==n?n[1]:null}(t),s=function(e,t){if(e.has("klaro-config"))return e.get("klaro-config");const n=t.getAttribute("data-klaro-config");return null!==n?n:"default"}(n,t);if(null!==e){const t=new Gt(r,e,{testing:o});if(void 0!==window.klaroApiConfigs){if(!0===un("apiConfigsLoaded",window.klaroApiConfigs,t))return;const e=window.klaroApiConfigs.find((e=>e.name===s&&("active"===e.status||o)));void 0!==e?(nn=e,mn((()=>i({api:t})))):un("apiConfigsFailed",{})}else t.loadConfig(s).then((e=>{!0!==un("apiConfigsLoaded",[e],t)&&(nn=e,mn((()=>i({api:t}))))})).catch((e=>{console.error(e,"cannot load Klaro configs"),un("apiConfigsFailed",e)}))}else{const e=t.getAttribute("data-klaro-config")||"klaroConfig";nn=window[e],void 0!==nn&&mn((()=>i({})))}}n.has("klaro-ide")&&function(e){const t=/^(.*)(\/[^/]+)$/.exec(e.src)[1]||"",n=document.createElement("script");n.src=""!==t?t+"/ide.js":"ide.js",n.type="application/javascript";for(const e of n.attributes)n.setAttribute(e.name,e.value);document.head.appendChild(n)}(t)}function vn(e,t,n){return dn(e=e||nn,{show:!0,modal:t,api:n}),!1}const yn={};function bn(){for(const e in Object.keys(yn))delete yn[e]}function kn(e){const t=(e=e||nn).storageName||e.cookieName||"default";return void 0===yn[t]&&(yn[t]=new zt(hn(e))),yn[t]}function En(){return"v"==="unknown"[0]?"unknown".slice(1):"unknown"}gn()})(),o})()));