!function(){"use strict";var e=e=>{"complete"!==document.readyState&&"interactive"!==document.readyState||e(),document.addEventListener("DOMContentLoaded",e,{once:!0})};!function(t){const{component:o,load:n,name:r,querySelector:c={},querySelectorAll:a={},options:i={}}=t;if("function"!=typeof o)return;const l=()=>{(()=>{const e=void 0===r?null==t?void 0:t.root:`[data-component='${r}']`;let o;try{o=document.querySelectorAll(e)}catch(e){return console.error(e),[]}return o.length<1?(console.log(`No elements found for ${e}`),[]):Array.from(o).map((e=>{const t={};return Object.keys(c).forEach((o=>{t[o]=e.querySelector(c[o])})),Object.keys(a).forEach((o=>{const n=e.querySelectorAll(a[o]);t[o]=Array.from(n)})),{element:e,children:t,options:i}}))})().forEach((e=>new o(e)))};if(!1===n)return l;!function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(t)if("function"==typeof o)o(t);else if(Array.isArray(o)){const[e,n]=o;null==e||e.addEventListener(n,t)}}(l,n)}({root:".wp-block-the-wrap-connatix",component:function(e){let{children:{playerEl:t}}=e;const{dataset:o}=t;if(void 0!==o.initialized)return;if(o.initialized=!0,"string"!=typeof o.matchmedia||!window.matchMedia(o.matchmedia).matches)return;const n=window.setInterval((()=>{let e=0;if("string"==typeof o.scrolldepth){try{const t=document.querySelector(o.scrolldepth);t&&(e=t.offsetTop+t.offsetHeight)}catch(e){}0===e&&o.scrolldepth.match(/^\d+$/)&&(e=Number(o.scrolldepth))}window.scrollY>=e&&t.dispatchEvent(new Event("shouldLoad"))}),500);t.addEventListener("shouldLoad",(()=>{window.clearInterval(n),(new Image).src="https://capi.connatix.com/tr/si?token=82b705fe-17aa-40a7-98b4-3f42aebc6016&cid=8759484e-bb96-415e-9d33-167af5d155f0",window.cnx.cmd.push((()=>{window.cnx({playerId:"82b705fe-17aa-40a7-98b4-3f42aebc6016"}).render(t.id)}))}),{once:!0})},querySelector:{playerEl:".wp-block-the-wrap-connatix__player-container"}})}();