1/*! XTOPIA JS SDK v1.1 | (c) XTOPIA IO | https://www.xtopia.io */ 2!function(t,e){"use strict";e.Accordion=function(t,i){this.el=e(i),this.dataId=this.el.attr("data-id"),this.items=this.el.children("ul").children("li"),this.itemsCount=this.items.length,this.init(t)},e.Accordion.defaults={open:-1,oneOpenedItem:!1,speed:600,easing:"easeInOutExpo",scrollSpeed:900,scrollEasing:"easeInOutExpo",offSet:"0"},e.Accordion.prototype={init:function(t){var i,n=this,o=[];n.options=e.extend(!0,{},e.Accordion.defaults,t),n.validate(),n.current=n.options.open,n.items.find("> div.st-content").hide(),n.saveDimValues(),n.dataId&&($x.rmo[n.dataId]?(i=$x.rmo[n.dataId].ave.curr,$x.rmo[n.dataId].ave.full.forEach(function(t){o.push(t)}),o.forEach(function(t){t>-1&&t!==i&&n.toggleItem(n.items.eq(t),!0)}),n.current=i):($x.rmo[n.dataId]={ave:{curr:n.current,full:[]}},$x.rmo[n.dataId].ave.full.push(n.current))),-1!==n.current&&n.toggleItem(n.items.eq(n.current),!0),n.initEvents()},saveDimValues:function(){this.items.each(function(){var t=e(this);t.data({originalHeight:t.find("> a:first").innerHeight(),offsetTop:t.offset().top})})},validate:function(){(this.options.open<-1||this.options.open>this.itemsCount-1)&&(this.options.open=-1)},initEvents:function(){var i=this;this.items.find("> a:first").on("click",function(n){var o=t.document.createEvent("UIEvents");o.initUIEvent("resize",!0,!1,t,0),t.dispatchEvent(o);var s,r,a,c=e(this).parent();i.options.oneOpenedItem&&i.isOpened()&&i.current!==c.index()?(r=i.items.eq(i.current),s=c.offset().top,i.toggleItem(r),a=c.index()>r.index()?r.find("> .st-content").outerHeight():0,i.toggleItem(c,null,s,a)):i.toggleItem(c),n.preventDefault()})},isOpened:function(){return this.el.find("> ul > li.st-open").length>0},toggleItem:function(t,e,i,n){var o,s,r=t.find("> div.st-content"),a=t.index();t.hasClass("st-open")?(this.current=-1,r.slideUp(),t.removeClass("st-open")):(this.current=a,e?r.show():r.slideDown(),t.addClass("st-open"),this.scroll(this,e,i,n)),this.dataId&&($x.rmo[this.dataId].ave.curr=this.current,(o=(s=$x.rmo[this.dataId].ave.full).indexOf(a))>-1&&s.splice(o,1),-1!==this.current&&s.push(a))},scroll:function(t,i,n,o){var s;s=-1!==(t=t||this).current?t.current:t.el.find("> ul > li.st-open:last").index(),o=o||0,i||(n=n||t.items.eq(s).offset().top,t.options.scrollSpeed>0&&e("html, body").stop().animate({scrollTop:n-t.options.offSet-o},t.options.scrollSpeed,t.options.scrollEasing))},destroy:function(){this.items.find("> div.st-content").show(),this.items.find("> a:first").off("click"),this.el.removeData("accordion")}};var i=function(e){t.console};e.fn.accordion=function(t){if("string"==typeof t){var n=Array.prototype.slice.call(arguments,1);this.each(function(){var o=e.data(this,"accordion");o&&e.isFunction(o[t])&&"_"!==t.charAt(0)?o[t].apply(o,n):i()})}else this.each(function(){e.data(this,"accordion")||e.data(this,"accordion",new e.Accordion(t,this))});return this}}(window,jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.