!function(){const e=()=>{const e="__tcfapiLocator",t=[];let n,o=window;for(;o;){try{if(o.frames[e]){n=o;break}}catch(e){}if(o===window.top)break;o=o.parent}n||(!function t(){const n=o.document,p=!!o.frames[e];if(!p)if(n.body){const t=n.createElement("iframe");t.style.cssText="display:none",t.name=e,n.body.appendChild(t)}else setTimeout(t,5);return!p}(),o.__tcfapi=function(...e){let n=o.gdprApplies;if(!e.length)return t;"setGdprApplies"===e[0]?e.length>3&&2===parseInt(e[1],10)&&"boolean"==typeof e[3]&&(n=e[3],o.gdprApplies=n,"function"==typeof e[2]&&e[2]({gdprApplies:n},!0)):"ping"===e[0]?"function"==typeof e[2]&&e[2]({gdprApplies:n,cmpLoaded:!1,cmpStatus:"stub",apiVersion:"2.0"},!0):t.push(e)},o.addEventListener("message",function(e){const t=e&&e.data,n="string"==typeof t;let o={};try{n?o=JSON.parse(e.data):"object"==typeof t&&t.constructor===Object&&(o=t)}catch(e){}const p=o&&o.__tcfapiCall;p&&window.__tcfapi(p.command,p.version,function(t,o){let s={__tcfapiReturn:{returnValue:t,success:o,callId:p.callId}};n&&(s=JSON.stringify(s)),e.source.postMessage(s,"*")},p.parameter)},!1))};"undefined"!=typeof module?module.exports=e:e()}();
