File Manager

Current Directory: /home/astoriaah/www/old15/templates/client/js/min
Viewing File: /home/astoriaah/www/old15/templates/client/js/min/template-ck.js
!function(e){if("function"==typeof define&&define.amd&&define("uikit",function(){var t=e(window,window.jQuery,window.document);return t.load=function(e,o,n,i){var r=e.split(","),a=[],s,l=(i.config&&i.config.uikit&&i.config.uikit.base?i.config.uikit.base:"").replace(/\/+$/g,"");if(!l)throw new Error("Please define base path to uikit in the requirejs config.");for(s=0;s<r.length;s+=1){var c=r[s].replace(/\./g,"/");a.push(l+"/js/addons/"+c)}o(a,function(){n(t)})},t}),!window.jQuery)throw new Error("UIkit requires jQuery");window&&window.jQuery&&e(window,window.jQuery,window.document)}(function(e,t,o){"use strict";var n=t.UIkit||{},i=t("html"),r=t(window);return n.fn?n:(n.version="2.5.0",n.fn=function(e,o){var i=arguments,r=e.match(/^([a-z\-]+)(?:\.([a-z]+))?/i),a=r[1],s=r[2];return n[a]?this.each(function(){var e=t(this),r=e.data(a);r||e.data(a,r=new n[a](this,s?void 0:o)),s&&r[s].apply(r,Array.prototype.slice.call(i,1))}):(t.error("UIkit component ["+a+"] does not exist."),this)},n.support={},n.support.transition=function(){var e=function(){var e=o.body||o.documentElement,t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(void 0!==e.style[n])return t[n]}();return e&&{end:e}}(),n.support.animation=function(){var e=function(){var e=o.body||o.documentElement,t={WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"},n;for(n in t)if(void 0!==e.style[n])return t[n]}();return e&&{end:e}}(),n.support.requestAnimationFrame=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||e.oRequestAnimationFrame||function(t){e.setTimeout(t,1e3/60)},n.support.touch="ontouchstart"in window&&navigator.userAgent.toLowerCase().match(/mobile|tablet/)||e.DocumentTouch&&document instanceof e.DocumentTouch||e.navigator.msPointerEnabled&&e.navigator.msMaxTouchPoints>0||e.navigator.pointerEnabled&&e.navigator.maxTouchPoints>0||!1,n.support.mutationobserver=e.MutationObserver||e.WebKitMutationObserver||e.MozMutationObserver||null,n.Utils={},n.Utils.debounce=function(e,t,o){var n;return function(){var i=this,r=arguments,a=function(){n=null,o||e.apply(i,r)},s=o&&!n;clearTimeout(n),n=setTimeout(a,t),s&&e.apply(i,r)}},n.Utils.removeCssRules=function(e){var t,o,n,i,r,a,s,l,c,d;e&&setTimeout(function(){try{for(d=document.styleSheets,i=0,s=d.length;s>i;i++){for(n=d[i],o=[],n.cssRules=n.cssRules,t=r=0,l=n.cssRules.length;l>r;t=++r)n.cssRules[t].type===CSSRule.STYLE_RULE&&e.test(n.cssRules[t].selectorText)&&o.unshift(t);for(a=0,c=o.length;c>a;a++)n.deleteRule(o[a])}}catch(u){}},0)},n.Utils.isInView=function(e,o){var n=t(e);if(!n.is(":visible"))return!1;var i=r.scrollLeft(),a=r.scrollTop(),s=n.offset(),l=s.left,c=s.top;return o=t.extend({topoffset:0,leftoffset:0},o),c+n.height()>=a&&c-o.topoffset<=a+r.height()&&l+n.width()>=i&&l-o.leftoffset<=i+r.width()?!0:!1},n.Utils.options=function(e){if(t.isPlainObject(e))return e;var o=e?e.indexOf("{"):-1,n={};if(-1!=o)try{n=new Function("","var json = "+e.substr(o)+"; return JSON.parse(JSON.stringify(json));")()}catch(i){}return n},n.Utils.template=function(e,t){for(var o=e.replace(/\n/g,"\\n").replace(/\{\{\{\s*(.+?)\s*\}\}\}/g,"{{!$1}}").split(/(\{\{\s*(.+?)\s*\}\})/g),n=0,i,r,a,s,l,c=[],d=0;n<o.length;){if(i=o[n],i.match(/\{\{\s*(.+?)\s*\}\}/))switch(n+=1,i=o[n],r=i[0],a=i.substring(i.match(/^(\^|\#|\!|\~|\:)/)?1:0),r){case"~":c.push("for(var $i=0;$i<"+a+".length;$i++) { var $item = "+a+"[$i];"),d++;break;case":":c.push("for(var $key in "+a+") { var $val = "+a+"[$key];"),d++;break;case"#":c.push("if("+a+") {"),d++;break;case"^":c.push("if(!"+a+") {"),d++;break;case"/":c.push("}"),d--;break;case"!":c.push("__ret.push("+a+");");break;default:c.push("__ret.push(escape("+a+"));")}else c.push("__ret.push('"+i.replace(/\'/g,"\\'")+"');");n+=1}l=["var __ret = [];","try {","with($data){",d?'__ret = ["Not all blocks are closed correctly."]':c.join(""),"};","}catch(e){__ret = [e.message];}",'return __ret.join("").replace(/\\n\\n/g, "\\n");',"function escape(html) { return String(html).replace(/&/g, '&amp;').replace(/\"/g, '&quot;').replace(/</g, '&lt;').replace(/>/g, '&gt;');}"].join("\n");var u=new Function("$data",l);return t?u(t):u},n.Utils.events={},n.Utils.events.click=n.support.touch?"tap":"click",t.UIkit=n,t.fn.uk=n.fn,t.UIkit.langdirection="rtl"==i.attr("dir")?"right":"left",t(function(){if(t(o).trigger("uk-domready"),n.support.mutationobserver){var e=new n.support.mutationobserver(n.Utils.debounce(function(e){t(o).trigger("uk-domready")},300));e.observe(document.body,{childList:!0,subtree:!0}),n.support.touch&&n.Utils.removeCssRules(/\.uk-(?!navbar).*:hover/)}}),i.addClass(n.support.touch?"uk-touch":"uk-notouch"),n)}),function(e){"function"==typeof define&&define.amd&&define("uikit-sticky",["uikit"],function(){return jQuery.fn.uksticky||e(window,window.jQuery,window.jQuery.UIkit)}),window&&window.jQuery&&window.jQuery.UIkit&&e(window,window.jQuery,window.jQuery.UIkit)}(function(e,t,o){var n={top:0,bottom:0,clsactive:"uk-active",clswrapper:"uk-sticky",getWidthFrom:""},i=t(window),r=t(document),a=[],s=i.height(),l=function(){for(var e=i.scrollTop(),o=r.height(),n=o-s,l=e>n?n-e:0,c=0;c<a.length;c++)if(a[c].stickyElement.is(":visible")){var d=a[c],u=d.stickyWrapper.offset().top,f=u-d.top-l;if(f>=e)null!==d.currentTop&&(d.stickyElement.css({position:"",top:"",width:""}).parent().removeClass(d.clsactive),d.currentTop=null);else{var h=o-d.stickyElement.outerHeight()-d.top-d.bottom-e-l;h=0>h?h+d.top:d.top,d.currentTop!=h&&(d.stickyElement.css({position:"fixed",top:h,width:d.stickyElement.width()}),"undefined"!=typeof d.getWidthFrom&&d.stickyElement.css("width",t(d.getWidthFrom).width()),d.stickyElement.parent().addClass(d.clsactive),d.currentTop=h)}}},c=function(){s=i.height()},d={init:function(e){var o=t.extend({},n,e);return this.each(function(){var e=t(this);if(!e.data("sticky")){var n=e.attr("id")||"s"+Math.ceil(1e4*Math.random()),i=t("<div></div>").attr("id","sticky-"+n).addClass(o.clswrapper);e.wrapAll(i),"right"==e.css("float")&&e.css({"float":"none"}).parent().css({"float":"right"}),e.data("sticky",!0);var r=e.parent();r.css("height",e.outerHeight()),a.push({top:o.top,bottom:o.bottom,stickyElement:e,currentTop:null,stickyWrapper:r,clsactive:o.clsactive,getWidthFrom:o.getWidthFrom})}})},update:l};return window.addEventListener("scroll",l,!1),window.addEventListener("resize",c,!1),t.fn.uksticky=function(e){return d[e]?d[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.sticky"):d.init.apply(this,arguments)},t(document).on("uk-domready",function(e){setTimeout(function(){l(),t("[data-uk-sticky]").each(function(){var e=t(this);e.data("sticky")||e.uksticky(o.Utils.options(e.attr("data-uk-sticky")))})},0)}),t.fn.uksticky}),function(e){e.fn.zenaccordion=function(t){var o=e.extend({openfirst:!1,showactive:!1,type:"default",openicon:"icon-chevron-up",closeicon:"icon-chevron-down",submenu:"hide"},t),n=e(this),i=e(".moduletable.accordion li span.separator,.moduletable.accordion li span.nav-header"),r=e("#sidebar-2 .accordion ul.dropdown-menu"),a=e(".moduletable.accordion li:first-child span.separator,.moduletable.accordion li:first-child span.nav-header"),s=e(".moduletable.accordion li.active ul.dropdown-menu"),l="open "+o.openicon,c="closed "+o.closeicon;r.hide().addClass("closed "),i.addClass(c),o.openfirst&&(a.parent().children().slideDown().addClass("open"),a.parent().children("span").addClass(l).removeClass(c)),o.showactive&&(s.show().addClass("open"),s.parent().children("span").addClass(l).removeClass(c)),i.on("click",function(t){e(this).hasClass("closed")?("accordion"==o.type&&(i.removeClass(l).addClass(c),r.slideUp("normal")),e(this).next().stop(!0,!0).slideToggle("normal"),"show"==o.submenu&&e("ul.accordion ul ul").show(),e(this).removeClass(c).addClass(l)):("accordion"==o.type&&i.removeClass(l),e(this).next("ul").slideUp("normal").addClass("closed").removeClass("open"),e(this).addClass(c).removeClass(l))})}}(jQuery),function(e){e.fn.lazyload=function(t){var o={threshold:0,failurelimit:0,event:"scroll",effect:"show",container:window};t&&e.extend(o,t);var n=this;return"scroll"==o.event&&e(o.container).bind("scroll",function(t){var i=0;n.each(function(){if(e.belowthefold(this,o)||e.rightoffold(this,o)){if(i++>o.failurelimit)return!1}else e(this).trigger("appear")});var r=e.grep(n,function(e){return!e.loaded});n=e(r)}),this.each(function(){var t=this;e(t).attr("original",e(t).attr("src")),"scroll"!=o.event||e.belowthefold(t,o)||e.rightoffold(t,o)?(o.placeholder?e(t).attr("src",o.placeholder):e(t).removeAttr("src"),t.loaded=!1):t.loaded=!0,e(t).one("appear",function(){this.loaded||e("<img />").bind("load",function(){e(t).hide().attr("src",e(t).attr("original"))[o.effect](o.effectspeed),t.loaded=!0}).attr("src",e(t).attr("original"))}),"scroll"!=o.event&&e(t).bind(o.event,function(o){t.loaded||e(t).trigger("appear")})})},e.belowthefold=function(t,o){if(void 0===o.container||o.container===window)var n=e(window).height()+e(window).scrollTop();else var n=e(o.container).offset().top+e(o.container).height();return n<=e(t).offset().top-o.threshold},e.rightoffold=function(t,o){if(void 0===o.container||o.container===window)var n=e(window).width()+e(window).scrollLeft();else var n=e(o.container).offset().left+e(o.container).width();return n<=e(t).offset().left-o.threshold},e.extend(e.expr[":"],{"below-the-fold":"$.belowthefold(a, {threshold : 0, container: window})","above-the-fold":"!$.belowthefold(a, {threshold : 0, container: window})","right-of-fold":"$.rightoffold(a, {threshold : 0, container: window})","left-of-fold":"!$.rightoffold(a, {threshold : 0, container: window})"})}(jQuery),jQuery(document).ready(function(){jQuery(".sidebar ul ul").addClass("nav-list"),jQuery("#topwrap ul").removeClass("nav-pills nav-stacked"),jQuery(".navbar-nav span").click(function(){jQuery(this).next(".dropdown-menu").slideToggle()}),jQuery("body").on("click",".navbar-collapse.in li.dropdown > a",function(){return jQuery(this).next(".dropdown-menu").slideToggle(),!1}),jQuery(".level2.dropdown-menu").parent().children("span").append("<b class='caret'></b>"),jQuery(".level1.dropdown-menu").parent().addClass("dropdown-menu").children("span").append("<b class='caret'></b>"),jQuery("#search-toggle").click(function(){jQuery("#search-module").animate({width:"toggle"})})}),function(e){e.fn.lazyload=function(t){var o={threshold:0,failurelimit:0,event:"scroll",effect:"show",container:window};t&&e.extend(o,t);var n=this;return"scroll"==o.event&&e(o.container).bind("scroll",function(t){var i=0;n.each(function(){if(e.belowthefold(this,o)||e.rightoffold(this,o)){if(i++>o.failurelimit)return!1}else e(this).trigger("appear")});var r=e.grep(n,function(e){return!e.loaded});n=e(r)}),this.each(function(){var t=this;e(t).attr("original",e(t).attr("src")),"scroll"!=o.event||e.belowthefold(t,o)||e.rightoffold(t,o)?(o.placeholder?e(t).attr("src",o.placeholder):e(t).removeAttr("src"),t.loaded=!1):t.loaded=!0,e(t).one("appear",function(){this.loaded||e("<img />").bind("load",function(){e(t).hide().attr("src",e(t).attr("original"))[o.effect](o.effectspeed),t.loaded=!0}).attr("src",e(t).attr("original"))}),"scroll"!=o.event&&e(t).bind(o.event,function(o){t.loaded||e(t).trigger("appear")})})},e.belowthefold=function(t,o){if(void 0===o.container||o.container===window)var n=e(window).height()+e(window).scrollTop();else var n=e(o.container).offset().top+e(o.container).height();return n<=e(t).offset().top-o.threshold},e.rightoffold=function(t,o){if(void 0===o.container||o.container===window)var n=e(window).width()+e(window).scrollLeft();else var n=e(o.container).offset().left+e(o.container).width();return n<=e(t).offset().left-o.threshold},e.extend(e.expr[":"],{"below-the-fold":"$.belowthefold(a, {threshold : 0, container: window})","above-the-fold":"!$.belowthefold(a, {threshold : 0, container: window})","right-of-fold":"$.rightoffold(a, {threshold : 0, container: window})","left-of-fold":"!$.rightoffold(a, {threshold : 0, container: window})"})}(jQuery),function(e){e.fn.zenaccordion=function(t){var o=e.extend({openfirst:!1,showactive:!1,type:"default",openicon:"icon-chevron-up",closeicon:"icon-chevron-down",submenu:"hide"},t),n=e(this),i=e(".moduletable.accordion li span.separator,.moduletable.accordion li span.nav-header"),r=e("#sidebar-2 .accordion ul.dropdown-menu"),a=e(".moduletable.accordion li:first-child span.separator,.moduletable.accordion li:first-child span.nav-header"),s=e(".moduletable.accordion li.active ul.dropdown-menu"),l="open "+o.openicon,c="closed "+o.closeicon;r.hide().addClass("closed "),i.addClass(c),o.openfirst&&(a.parent().children().slideDown().addClass("open"),a.parent().children("span").addClass(l).removeClass(c)),o.showactive&&(s.show().addClass("open"),s.parent().children("span").addClass(l).removeClass(c)),i.on("click",function(t){e(this).hasClass("closed")?("accordion"==o.type&&(i.removeClass(l).addClass(c),r.slideUp("normal")),e(this).next().stop(!0,!0).slideToggle("normal"),"show"==o.submenu&&e("ul.accordion ul ul").show(),e(this).removeClass(c).addClass(l)):("accordion"==o.type&&i.removeClass(l),e(this).next("ul").slideUp("normal").addClass("closed").removeClass("open"),e(this).addClass(c).removeClass(l))})}}(jQuery),function(e){function t(e){return e.replace(/(:|\.)/g,"\\$1")}var o="1.4.11",n={exclude:[],excludeWithin:[],offset:0,direction:"top",scrollElement:null,scrollTarget:null,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficent:2,preventDefault:!0},i=function(t){var o=[],n=!1,i=t.dir&&"left"==t.dir?"scrollLeft":"scrollTop";return this.each(function(){if(this!=document&&this!=window){var t=e(this);t[i]()>0?o.push(this):(t[i](1),n=t[i]()>0,n&&o.push(this),t[i](0))}}),o.length||this.each(function(e){"BODY"===this.nodeName&&(o=[this])}),"first"===t.el&&o.length>1&&(o=[o[0]]),o},r="ontouchend"in document;e.fn.extend({scrollable:function(e){var t=i.call(this,{dir:e});return this.pushStack(t)},firstScrollable:function(e){var t=i.call(this,{el:"first",dir:e});return this.pushStack(t)},smoothScroll:function(o){o=o||{};var n=e.extend({},e.fn.smoothScroll.defaults,o),i=e.smoothScroll.filterPath(location.pathname);return this.unbind("click.smoothscroll").bind("click.smoothscroll",function(o){var r=this,a=e(this),s=n.exclude,l=n.excludeWithin,c=0,d=0,u=!0,f={},h=location.hostname===r.hostname||!r.hostname,p=n.scrollTarget||(e.smoothScroll.filterPath(r.pathname)||i)===i,m=t(r.hash);if(n.scrollTarget||h&&p&&m){for(;u&&c<s.length;)a.is(t(s[c++]))&&(u=!1);for(;u&&d<l.length;)a.closest(l[d++]).length&&(u=!1)}else u=!1;u&&(n.preventDefault&&o.preventDefault(),e.extend(f,n,{scrollTarget:n.scrollTarget||m,link:r}),e.smoothScroll(f))}),this}}),e.smoothScroll=function(t,o){var n,i,r,a,s=0,l="offset",c="scrollTop",d={},u={},f=[];"number"==typeof t?(n=e.fn.smoothScroll.defaults,r=t):(n=e.extend({},e.fn.smoothScroll.defaults,t||{}),n.scrollElement&&(l="position","static"==n.scrollElement.css("position")&&n.scrollElement.css("position","relative"))),n=e.extend({link:null},n),c="left"==n.direction?"scrollLeft":c,n.scrollElement?(i=n.scrollElement,s=i[c]()):i=e("html, body").firstScrollable(),n.beforeScroll.call(i,n),r="number"==typeof t?t:o||e(n.scrollTarget)[l]()&&e(n.scrollTarget)[l]()[n.direction]||0,d[c]=r+s+n.offset,a=n.speed,"auto"===a&&(a=d[c]||i.scrollTop(),a/=n.autoCoefficent),u={duration:a,easing:n.easing,complete:function(){n.afterScroll.call(n.link,n)}},n.step&&(u.step=n.step),i.length?i.stop().animate(d,u):n.afterScroll.call(n.link,n)},e.smoothScroll.version=o,e.smoothScroll.filterPath=function(e){return e.replace(/^\//,"").replace(/(index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},e.fn.smoothScroll.defaults=n}(jQuery);