!(function (i) { i.fn.theiaStickySidebar = function (t) { function e(t, e) { var a = o(t, e); a || (console.log( "TSS: Body width smaller than options.minWidth. Init is delayed." ), i(document).on( "scroll." + t.namespace, (function (t, e) { return function (a) { var n = o(t, e); n && i(this).unbind(a); }; })(t, e) ), i(window).on( "resize." + t.namespace, (function (t, e) { return function (a) { var n = o(t, e); n && i(this).unbind(a); }; })(t, e) )); } function o(t, e) { return ( t.initialized === !0 || (!(i("body").width() < t.minWidth) && (a(t, e), !0)) ); } function a(t, e) { t.initialized = !0; var o = i("#theia-sticky-sidebar-stylesheet-" + t.namespace); 0 === o.length && i("head").append( i( '' ) ), e.each(function () { function e() { (a.fixedScrollTop = 0), a.sidebar.css({ "min-height": "1px" }), a.stickySidebar.css({ position: "static", width: "", transform: "none", }); } function o(t) { var e = t.height(); return ( t.children().each(function () { e = Math.max(e, i(this).height()); }), e ); } var a = {}; if ( ((a.sidebar = i(this)), (a.options = t || {}), (a.container = i(a.options.containerSelector)), 0 == a.container.length && (a.container = a.sidebar.parent()), a.sidebar.parents().css("-webkit-transform", "none"), a.sidebar.css({ position: a.options.defaultPosition, overflow: "visible", "-webkit-box-sizing": "border-box", "-moz-box-sizing": "border-box", "box-sizing": "border-box", }), (a.stickySidebar = a.sidebar.find(".theiaStickySidebar")), 0 == a.stickySidebar.length) ) { var s = /(?:text|application)\/(?:x-)?(?:javascript|ecmascript)/i; a.sidebar .find("script") .filter(function (i, t) { return 0 === t.type.length || t.type.match(s); }) .remove(), (a.stickySidebar = i("
") .addClass("theiaStickySidebar") .append(a.sidebar.children())), a.sidebar.append(a.stickySidebar); } (a.marginBottom = parseInt(a.sidebar.css("margin-bottom"))), (a.paddingTop = parseInt(a.sidebar.css("padding-top"))), (a.paddingBottom = parseInt(a.sidebar.css("padding-bottom"))); var r = a.stickySidebar.offset().top, d = a.stickySidebar.outerHeight(); a.stickySidebar.css("padding-top", 1), a.stickySidebar.css("padding-bottom", 1), (r -= a.stickySidebar.offset().top), (d = a.stickySidebar.outerHeight() - d - r), 0 == r ? (a.stickySidebar.css("padding-top", 0), (a.stickySidebarPaddingTop = 0)) : (a.stickySidebarPaddingTop = 1), 0 == d ? (a.stickySidebar.css("padding-bottom", 0), (a.stickySidebarPaddingBottom = 0)) : (a.stickySidebarPaddingBottom = 1), (a.previousScrollTop = null), (a.fixedScrollTop = 0), e(), (a.onScroll = function (a) { if (a.stickySidebar.is(":visible")) { if (i("body").width() < a.options.minWidth) return void e(); if (a.options.disableOnResponsiveLayouts) { var s = a.sidebar.outerWidth( "none" == a.sidebar.css("float") ); if (s + 50 > a.container.width()) return void e(); } var r = i(document).scrollTop(), d = "static"; if ( r >= a.sidebar.offset().top + (a.paddingTop - a.options.additionalMarginTop) ) { var c, p = a.paddingTop + t.additionalMarginTop, b = a.paddingBottom + a.marginBottom + t.additionalMarginBottom, l = a.sidebar.offset().top, f = a.sidebar.offset().top + o(a.container), h = 0 + t.additionalMarginTop, g = a.stickySidebar.outerHeight() + p + b < i(window).height(); c = g ? h + a.stickySidebar.outerHeight() : i(window).height() - a.marginBottom - a.paddingBottom - t.additionalMarginBottom; var u = l - r + a.paddingTop, S = f - r - a.paddingBottom - a.marginBottom, y = a.stickySidebar.offset().top - r, m = a.previousScrollTop - r; "fixed" == a.stickySidebar.css("position") && "modern" == a.options.sidebarBehavior && (y += m), "stick-to-top" == a.options.sidebarBehavior && (y = t.additionalMarginTop), "stick-to-bottom" == a.options.sidebarBehavior && (y = c - a.stickySidebar.outerHeight()), (y = m > 0 ? Math.min(y, h) : Math.max(y, c - a.stickySidebar.outerHeight())), (y = Math.max(y, u)), (y = Math.min(y, S - a.stickySidebar.outerHeight())); var k = a.container.height() == a.stickySidebar.outerHeight(); d = (k || y != h) && (k || y != c - a.stickySidebar.outerHeight()) ? r + y - a.sidebar.offset().top - a.paddingTop <= t.additionalMarginTop ? "static" : "absolute" : "fixed"; } if ("fixed" == d) { var v = i(document).scrollLeft(); a.stickySidebar.css({ position: "fixed", width: n(a.stickySidebar) + "px", transform: "translateY(" + y + "px)", left: a.sidebar.offset().left + parseInt(a.sidebar.css("padding-left")) - v + "px", top: "0px", }); } else if ("absolute" == d) { var x = {}; "absolute" != a.stickySidebar.css("position") && ((x.position = "absolute"), (x.transform = "translateY(" + (r + y - a.sidebar.offset().top - a.stickySidebarPaddingTop - a.stickySidebarPaddingBottom) + "px)"), (x.top = "0px")), (x.width = n(a.stickySidebar) + "px"), (x.left = ""), a.stickySidebar.css(x); } else "static" == d && e(); "static" != d && 1 == a.options.updateSidebarHeight && a.sidebar.css({ "min-height": a.stickySidebar.outerHeight() + a.stickySidebar.offset().top - a.sidebar.offset().top + a.paddingBottom, }), (a.previousScrollTop = r); } }), a.onScroll(a), i(document).on( "scroll." + a.options.namespace, (function (i) { return function () { i.onScroll(i); }; })(a) ), i(window).on( "resize." + a.options.namespace, (function (i) { return function () { i.stickySidebar.css({ position: "static" }), i.onScroll(i); }; })(a) ), "undefined" != typeof ResizeSensor && new ResizeSensor( a.stickySidebar[0], (function (i) { return function () { i.onScroll(i); }; })(a) ); }); } function n(i) { var t; try { t = i[0].getBoundingClientRect().width; } catch (i) {} return "undefined" == typeof t && (t = i.width()), t; } var s = { containerSelector: "", additionalMarginTop: 0, additionalMarginBottom: 0, updateSidebarHeight: !0, minWidth: 0, disableOnResponsiveLayouts: !0, sidebarBehavior: "modern", defaultPosition: "relative", namespace: "TSS", }; return ( (t = i.extend(s, t)), (t.additionalMarginTop = parseInt(t.additionalMarginTop) || 0), (t.additionalMarginBottom = parseInt(t.additionalMarginBottom) || 0), e(t, this), this ); }; })(jQuery); function launch_tl_sticky(e = "1") { var t = "desktop", s = 1; /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( navigator.userAgent ) && (t = "mobile"), jQuery(".tl-sticky-fixed .tl-sticky-lists").each(function () { if (!(s > 1)) { var i = 1; jQuery(this) .find("li") .each(function () { if (jQuery(this).hasClass("tl-sticky-minimize")) jQuery(this).hasClass("element-minimize") && jQuery(this).trigger("click"); else if (jQuery(this).hasClass("element-" + t + "-on")) return e == i ? (jQuery(this).addClass("elements-active"), jQuery(this) .parent() .parent() .parent() .hasClass("tl-sticky-on-click") || jQuery(this) .parent() .parent() .parent() .addClass("tl-sticky-on-click"), !1) : void i++; }), s++; } }); } // sidebar function close_tl_sticky() { /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( navigator.userAgent ), jQuery(".tl-sticky-fixed .tl-sticky-lists").each(function () { jQuery(this) .find("li") .each(function () { jQuery(this).hasClass("elements-active") && jQuery(this).removeClass("elements-active"); }); }); } function hide_tl_sticky() { jQuery(".tl-sticky-fixed").each(function () { jQuery(this).hide(), jQuery.cookie("hide_tl-sticky", "closed", { expires: 365, path: "/", }); }); } function show_tl_sticky() { jQuery(".tl-sticky-fixed").each(function () { jQuery(this).show(), jQuery.cookie("hide_tl-sticky", "opened", { expires: 1, path: "/", }); }); } !(function (e) { "use strict"; var t = "", s = "", i = 0, m = !1; function n() { if (e(window).width() <= 2600) { if ( e(".tl-sticky-fixed").hasClass( "tl-sticky-position-mobile-top" ) ) { var t = e(".tl-sticky-fixed").height(); e("html").attr("style", "margin-top: " + t + "px !important"); } } else e("html").css("margin-top", ""); } e(document).ready(function () { ("closed" == e.cookie("hide_tl-sticky") && e(".tl-sticky-fixed").each(function () { jQuery(this).hide(); }), /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( navigator.userAgent ) && e(".tl-sticky-fixed") .addClass("tl-sticky-on-click") .removeClass("tl-sticky-on-hover"), e(".tl-sticky-on-click .tl-sticky-social-icon").on( "click touch" ), e(".tl-sticky-on-hover .tl-sticky-social-icon").on( "click", function (t) { e(this).parent("li").hasClass("elements-active") && 0 == e(this).children("a").length && (e(this).parent("li").removeClass("elements-hover-active"), t.preventDefault(), e(this) .parent() .parent() .parent() .parent(".tl-sticky-on-hover") .removeClass("tl-sticky-on-click")); } ), e(".tl-sticky-on-hover .tl-sticky-social-icon-li") .on("mouseenter", function () { e(this).hasClass("elements-active"), e(this).hasClass("elements-active") || (e(".tl-sticky-on-click .elements-active").removeClass( "elements-active" ), e(this).addClass("elements-active"), e(this).addClass("elements-hover-active"), e(this) .parent() .parent() .parent(".tl-sticky-on-hover") .addClass("tl-sticky-on-click")); }) .on("mouseleave", function () { e(this).removeClass("elements-active"), e(this).removeClass("elements-hover-active"), e(this) .parent() .parent() .parent(".tl-sticky-on-hover") .removeClass("tl-sticky-on-click"); }), e("li.tl-sticky-minimize").on("click", function (t) { var s, i, m, n; e(this).toggleClass("element-minimize"), /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( navigator.userAgent ) ? ((i = "mobile"), (m = "mobile-"), (n = "element-mobile-on")) : ((i = "desktop"), (m = ""), (n = "element-desktop-on")), !0 === e(this).hasClass("element-minimize") ? (e.cookie("minimize_" + i, "minimize", { path: "/" }), (s = !0)) : (e.cookie("minimize_" + i, "minimize_not", { path: "/" }), (s = !1)), e(".tl-sticky-position-" + m + "left ul li").each(function () { 1 == e(this).hasClass(n) && (1 == e(".tl-sticky-fixed").hasClass("tl-sticky-size-large") ? e(this).animate({ width: "toggle", left: !0 === s ? "-=80" : "", }) : e(this).animate({ width: "toggle", left: !0 === s ? "-=50" : "", })); }), e(".tl-sticky-position-" + m + "right ul li").each(function () { 1 == e(this).hasClass(n) && (1 == e(".tl-sticky-fixed").hasClass("tl-sticky-size-large") ? e(this).animate( { width: "toggle", left: !0 === s ? "+=80" : "" }, 300, function () {} ) : e(this).animate( { width: "toggle", left: !0 === s ? "+=50" : "" }, 300, function () {} )); }), e(".tl-sticky-position-" + m + "bottom ul li").each(function () { 1 == e(this).hasClass(n) && (e(this).css("position", "relative"), 1 == e(".tl-sticky-fixed").hasClass("tl-sticky-size-large") ? e(this).animate( { height: "toggle", bottom: !0 === s ? "-=80" : "" }, 300, function () { e(this).css("position", !0 === s ? "relative" : "static"); } ) : e(this).animate( { height: "toggle", bottom: !0 === s ? "-=60" : "" }, 300, function () { e(this).css("position", !0 === s ? "relative" : "static"); } )); }), e(".tl-sticky-position-" + m + "top ul li").each(function () { 1 == e(this).hasClass(n) && (e(this).css("position", "relative"), 1 == e(".tl-sticky-fixed").hasClass("tl-sticky-size-large") ? e(this).animate( { height: "toggle", top: !0 === s ? "-=80" : "" }, 300, function () { e(this).css("position", !0 === s ? "relative" : "static"); } ) : e(this).animate( { height: "toggle", top: !0 === s ? "-=60" : "" }, 300, function () { e(this).css("position", !0 === s ? "relative" : "static"); } )); }), !0 === e("span.tl-sticky-minimize").hasClass( "minimize-position-" + m + "left" ) ? !0 === e("li.tl-sticky-minimize").hasClass("element-minimize") ? e( ".tl-sticky-minimize.minimize-position-" + m + "left" ).html("→") : e( ".tl-sticky-minimize.minimize-position-" + m + "left" ).html("←") : !0 === e("span.tl-sticky-minimize").hasClass( "minimize-position-" + m + "bottom" ) ? !0 === e("li.tl-sticky-minimize").hasClass("element-minimize") ? e( ".tl-sticky-minimize.minimize-position-" + m + "bottom" ).html("↑") : e( ".tl-sticky-minimize.minimize-position-" + m + "bottom" ).html("↓") : !0 === e("span.tl-sticky-minimize").hasClass( "minimize-position-" + m + "top" ) ? !0 === e("li.tl-sticky-minimize").hasClass("element-minimize") ? e( ".tl-sticky-minimize.minimize-position-" + m + "top" ).html("↓") : e( ".tl-sticky-minimize.minimize-position-" + m + "top" ).html("↑") : !0 === e("li.tl-sticky-minimize").hasClass("element-minimize") ? e( ".tl-sticky-minimize.minimize-position-" + m + "right" ).html("←") : e( ".tl-sticky-minimize.minimize-position-" + m + "right" ).html("→"); }), e(".tl-sticky-fixed ul li").each(function () { if ( e(this).hasClass("tl-sticky-custom-html-main") && e(this).hasClass("tl-sticky-custom-html-iframe") ) e(this).find(".tl-sticky-custom-html").height(), e(".tl-sticky-fixed ul").height(); }), setTimeout(function () { e( ".tl-sticky-entry-effect-fade.entry-effect,.tl-sticky-entry-effect-slide-in.entry-effect" ).css("transition", "all 0s ease 0s"); }, 1e3), e(".tl-sticky-fixed ul li").on("click", function () { e(this).hasClass("tl-sticky-custom-html-iframe") ? e(".tl-sticky-fixed").toggleClass( "tl-sticky-custom-html-iframe-open" ) : e(".tl-sticky-fixed").removeClass( "tl-sticky-custom-html-iframe-open" ); }), e(".tl-sticky-fixed").addClass("entry-effect"), e(window).width() > 1024) && e(".tl-sticky-position-bottom .tl-sticky-lists").width() < 300 && n(); }), e(window).on("resize", function () { o(), n(); }); })(jQuery); /*! * jQuery Cookie Plugin v1.4.1 * https://github.com/carhartl/jquery-cookie * * Copyright 2006, 2014 Klaus Hartl * Released under the MIT license */ !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){var n=/\+/g;function o(e){return t.raw?e:encodeURIComponent(e)}function i(e){return o(t.json?JSON.stringify(e):String(e))}function r(o,i){var r=t.raw?o:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(n," ")),t.json?JSON.parse(e):e}catch(e){}}(o);return e.isFunction(i)?i(r):r}var t=e.cookie=function(n,c,u){if(arguments.length>1&&!e.isFunction(c)){if("number"==typeof(u=e.extend({},t.defaults,u)).expires){var s=u.expires,a=u.expires=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*s)}return document.cookie=[o(n),"=",i(c),u.expires?"; expires="+u.expires.toUTCString():"",u.path?"; path="+u.path:"",u.domain?"; domain="+u.domain:"",u.secure?"; secure":""].join("")}for(var d,f=n?void 0:{},p=document.cookie?document.cookie.split("; "):[],l=0,m=p.length;l