;(function($,_,undefined){'use strict';$('iframe').each(function(i,el){var $iframe=$(el);var $iframeParent=$iframe.closest('.ipsEmbeddedVideo');if(!el.dataset.embedSrc||!$iframeParent){return;}
el.dataset.src=el.dataset.embedSrc;el.removeAttribute('data-embed-src');var overlayHtml=['<div class="video-cookie-overlay">','<div>','<p>','This content cannot be displayed until agreeing to our use of cookies. ','<a class="js-consent-ignore" href="https://go.microsoft.com/fwlink/?linkid=845480" target="_blank" rel="noopener">Learn more</a>.','</p>','<p>','<button class="btn" type="button">Agree</button>','</p>','</div>','</div>',].join('');$iframeParent.append($(overlayHtml));window.onConsent&&window.onConsent.add(function(){$iframeParent.find('.video-cookie-overlay').remove();$iframe.attr('src',$iframe.data('src'));});});ips.controller.register('obsidian.front.cookies.main',{_expireTime:60*60*24*365*1000,_listenerSelectors:['a','button'].map(function(s){return s+':not(.js-consent-ignore)';}).join(', '),initialize:function(){this.scope.addClass('ob__popup--show');this.on(document.body,'click',this._listenerSelectors,this.onBodyClick);},onBodyClick:function(){this.scope.removeClass('ob__popup--show');this.scope.addClass('ob__popup--hide');setTimeout(_.bind(function(){this.scope.remove();this._destroy();},this),300);var domain=this._determineCookieDomain();var date=new Date();date.setTime(date.getTime()+this._expireTime);document.cookie=`cookie_consent=1;expires=${date.toUTCString()};domain=${domain};path=/;`;window.onConsent&&window.onConsent.run();},_determineCookieDomain(){var domain=/\.obsidian\.[a-z]+/.exec(window.location.hostname);return domain.length?domain[0]:'.obsidian.net';}})}(jQuery,_));;