function iolCopyToClipboard(e){navigator.clipboard&&(navigator.clipboard.writeText(e.dataset.sharelink),clipBoarded(e))}function clipBoarded(e){const t=e.parentElement;t.classList.add("iol-clipboarded-link"),setTimeout((function(){t.classList.add("iol-clipboarded-link--show")}),64),setTimeout((function(){t.classList.remove("iol-clipboarded-link--show")}),1600)}function initSocialShareMenu(){const e=document.documentElement.getElementsByClassName("iol-share-trg")[0];if(is_mobile)if(navigator.share){const t=document.querySelector("link[rel=canonical]"),a=null!==t?t.href:document.location.href;e.onclick=function(){navigator.share({url:a})}}else e.style.display="none";else{const t=document.getElementById("t-share-menu"),a=t.content.children[0];let n=!1;socialMenuClone=document.importNode(a,!0);const o=socialMenuClone.getElementsByClassName("iol-share-menu-close")[0];e.onclick=function(){this.setAttribute("aria-expanded","true"),o.setAttribute("aria-expanded","true"),socialMenuClone.setAttribute("aria-hidden","false"),n||(t.after(socialMenuClone),n=!0)},o.onclick=function(){this.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded","false"),socialMenuClone.setAttribute("aria-hidden","true")}}}function initSocialShareModal(){let e=document.documentElement.getElementsByClassName("iol-share-trg")[0],t=document.documentElement.getElementsByClassName("iol-share-overlay")[0],a=document.getElementById("t-share-dialog"),n="";e.onclick=function(){if(document.body.classList.add("fixed-iol-share-overlay"),document.querySelector(".iol-share-overlay").classList.add("visible"),this.setAttribute("aria-expanded","true"),""===n){n=a.content.cloneNode(!0),t.appendChild(n);let o=[t.getElementsByClassName("iol-share-overlay-close")[0],t.getElementsByClassName("iol-share-modal-cancel")[0],t];t.getElementsByClassName("iol-share-modal")[0].addEventListener("click",(function(e){e.stopPropagation()})),o.forEach((t=>{t.onclick=function(){document.body.classList.remove("fixed-iol-share-overlay"),document.querySelector(".iol-share-overlay").classList.remove("visible"),e.setAttribute("aria-expanded","false")}}))}}}document.addEventListener("DOMContentLoaded",(()=>{document.documentElement.getElementsByClassName("iol-share-menu").length>0&&initSocialShareMenu(),document.getElementById("t-share-dialog")&&initSocialShareModal()}));; /*! * jQuery Smooth Scroll - v1.5.5 - 2015-02-19 * https://github.com/kswedberg/jquery-smooth-scroll * Copyright (c) 2015 Karl Swedberg * Licensed MIT (https://github.com/kswedberg/jquery-smooth-scroll/blob/master/LICENSE-MIT) */ (function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a); }else{if(typeof module==="object"&&module.exports){a(require("jquery"));}else{a(jQuery);}}}(function(d){var b="1.5.5",f={},e={exclude:[],excludeWithin:[],offset:0,direction:"top",scrollElement:null,scrollTarget:null,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficient:2,preventDefault:true},a=function(i){var j=[],h=false,g=i.dir&&i.dir==="left"?"scrollLeft":"scrollTop"; this.each(function(){if(this===document||this===window){return;}var k=d(this);if(k[g]()>0){j.push(this);}else{k[g](1);h=k[g]()>0;if(h){j.push(this);}k[g](0); }});if(!j.length){this.each(function(){if(this.nodeName==="BODY"){j=[this];}});}if(i.el==="first"&&j.length>1){j=[j[0]];}return j;};d.fn.extend({scrollable:function(g){var h=a.call(this,{dir:g}); return this.pushStack(h);},firstScrollable:function(g){var h=a.call(this,{el:"first",dir:g});return this.pushStack(h);},smoothScroll:function(h,g){h=h||{}; if(h==="options"){if(!g){return this.first().data("ssOpts");}return this.each(function(){var l=d(this),k=d.extend(l.data("ssOpts")||{},g);d(this).data("ssOpts",k); });}var i=d.extend({},d.fn.smoothScroll.defaults,h),j=d.smoothScroll.filterPath(location.pathname);this.unbind("click.smoothscroll").bind("click.smoothscroll",function(m){var u=this,t=d(this),o=d.extend({},i,t.data("ssOpts")||{}),n=i.exclude,r=o.excludeWithin,v=0,q=0,l=true,w={},p=((location.hostname===u.hostname)||!u.hostname),k=o.scrollTarget||(d.smoothScroll.filterPath(u.pathname)===j),s=c(u.hash); if(!o.scrollTarget&&(!p||!k||!s)){l=false;}else{while(l&&v1){if(f=a({path:"/"},d.defaults,f),"number"==typeof f.expires){var h=new Date;h.setMilliseconds(h.getMilliseconds()+864e5*f.expires),f.expires=h}try{g=JSON.stringify(e),/^[\{\[]/.test(g)&&(e=g)}catch(i){}return e=encodeURIComponent(String(e)),e=e.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),b=encodeURIComponent(String(b)),b=b.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),b=b.replace(/[\(\)]/g,escape),document.cookie=[b,"=",e,f.expires&&"; expires="+f.expires.toUTCString(),f.path&&"; path="+f.path,f.domain&&"; domain="+f.domain,f.secure?"; secure":""].join("")}b||(g={});for(var j=document.cookie?document.cookie.split("; "):[],k=/(%[0-9A-Z]{2})+/g,l=0;l");u=function(){var J,L,K;if(z){return;}I=p.height();J=parseInt(w.css("border-top-width"),10);L=parseInt(w.css("padding-top"),10); G=parseInt(w.css("padding-bottom"),10);q=w.offset().top+J+L;i=w.height();if(r){r=false;D=false;if(f==null){t.insertAfter(v);v.detach();}t.css({position:"",top:"",width:"",bottom:""}).removeClass(g); K=true;}B=t.offset().top-(parseInt(t.css("margin-top"),10)||0)-l;C=t.outerHeight(true);y=t.css("float");if(v){v.css({width:t.outerWidth(true),height:C,display:t.css("display"),"vertical-align":t.css("vertical-align"),"float":y}); }if(K){return E();}};u();if(C===i){return;}F=void 0;s=l;A=c;E=function(){var L,O,M,K,J,N;if(z){return;}M=false;if(A!=null){A-=1;if(A<=0){A=c;u();M=true; }}if(!M&&p.height()!==I){u();M=true;}K=b.scrollTop();if(F!=null){O=K-F;}F=K;if(r){if(o){J=K+C+s>i+q;if(D&&!J){D=false;t.css({position:"fixed",bottom:"",top:s}).trigger("sticky_kit:unbottom"); }}if(KN){if(!D){s-=O;s=Math.max(N-C,s);s=Math.min(l,s);if(r){t.css({top:s+"px"});}}}}}else{if(K>B){r=true;L={position:"fixed",top:s}; L.width=t.css("box-sizing")==="border-box"?t.outerWidth()+"px":t.width()+"px";t.css(L).addClass(g);if(f==null){t.after(v);if(y==="left"||y==="right"){v.append(t); }}t.trigger("sticky_kit:stick");}}if(r&&o){if(J==null){J=K+C+s>i+q;}if(!D&&J){D=true;if(w.css("position")==="static"){w.css({position:"relative"});}return t.css({position:"absolute",bottom:G,top:"auto"}).trigger("sticky_kit:bottom"); }}};x=function(){u();return E();};H=function(){z=true;b.off("touchmove",E);b.off("scroll",E);b.off("resize",x);a(document.body).off("sticky_kit:recalc",x); t.off("sticky_kit:detach",H);t.removeData("sticky_kit");t.css({position:"",bottom:"",top:"",width:""});w.position("position","");if(r){if(f==null){if(y==="left"||y==="right"){t.insertAfter(v); }v.remove();}return t.removeClass(g);}};b.on("touchmove",E);b.on("scroll",E);b.on("resize",x);a(document.body).on("sticky_kit:recalc",x);t.on("sticky_kit:detach",H); return setTimeout(E,0);};for(j=0,k=this.length;j?@[\]^`{|}~])/g,"\\$1");if(0'+i+"");var o=jQuery("#ez-toc-height-test").height();return jQuery("#ez-toc-height-test").remove(),o-t.children("ul").first().height()}(i),l("#ez-toc-active-height").remove(),l('").appendTo("head");var i,o}(h)}}function n(){0