function Cookie(n,t,i){var f,r,e,o,u,s;if(typeof t!="undefined"){i=i||{};t===null&&(t="",i.expires=-1);f="";i.expires&&(typeof i.expires=="number"||i.expires.toUTCString)&&(typeof i.expires=="number"?(r=new Date,r.setTime(r.getTime()+i.expires*864e5)):r=i.expires,f="; expires="+r.toUTCString());var h=i.path?"; path="+i.path:"",c=i.domain?"; domain="+i.domain:"",l=i.secure?"; secure":"";document.cookie=[n,"=",encodeURIComponent(t),f,h,c,l].join("")}else{if(e=null,document.cookie&&document.cookie!="")for(o=document.cookie.split(";"),u=0;u<o.length;u++)if(s=jQuery.trim(o[u]),s.substring(0,n.length+1)==n+"="){e=decodeURIComponent(s.substring(n.length+1));break}return e}}function NewRelicPost(n,t){window.NREUM||(NREUM={});__nr_require=function(n,t,i){function r(i){if(!t[i]){var u=t[i]={exports:{}};n[i][0].call(u.exports,function(t){var u=n[i][1][t];return r(u?u:t)},u,u.exports)}return t[i].exports}if("function"==typeof __nr_require)return __nr_require;for(var u=0;u<i.length;u++)r(i[u]);return r}({QJf3ax:[function(n,t){function i(n){function o(i,e,o){n&&n(i,e,o);o||(o={});for(var h=t(i),l=h.length,c=f(o,u,r),s=0;l>s;s++)h[s].apply(c,e);return c}function s(n,i){e[n]=t(n).concat(i)}function t(n){return e[n]||[]}function h(){return i(o)}var e={};return{on:s,emit:o,create:h,listeners:t,_events:e}}function r(){return{}}var u="nr@context",f=n("gos");t.exports=i()},{gos:"7eSDFh"}],ee:[function(n,t){t.exports=n("QJf3ax")},{}],3:[function(n){function o(n,r,u,f,o){try{t?t-=1:i("err",[o||new s(n,r,u)])}catch(c){try{i("ierr",[c,(new Date).getTime(),!0])}catch(l){}}return"function"==typeof e?e.apply(this,h(arguments)):!1}function s(n,t,i){this.message=n||"Uncaught error with no additional information";this.sourceURL=t;this.line=i}function f(n){i("err",[n,(new Date).getTime()])}var i=n("handle"),h=n(5),r=n("ee"),e=window.onerror,u=!1,t=0;n("loader").features.err=!0;window.onerror=o;NREUM.noticeError=f;try{throw new Error;}catch(c){"stack"in c&&(n(1),n(4),"addEventListener"in window&&n(2),window.XMLHttpRequest&&XMLHttpRequest.prototype&&XMLHttpRequest.prototype.addEventListener&&n(3),u=!0)}r.on("fn-start",function(){u&&(t+=1)});r.on("fn-err",function(n,t,i){u&&(this.thrown=!0,f(i))});r.on("fn-end",function(){u&&!this.thrown&&t>0&&(t-=1)});r.on("internal-error",function(n){i("ierr",[n,(new Date).getTime(),!0])})},{1:8,2:5,3:9,4:7,5:21,ee:"QJf3ax",handle:"D5DuLP",loader:"G9z0Bl"}],4:[function(n){function r(){}if(window.performance&&window.performance.timing&&window.performance.getEntriesByType){var i=n("ee"),t=n("handle"),u=n(2);n("loader").features.stn=!0;n(1);i.on("fn-start",function(n){var t=n[0];t instanceof Event&&(this.bstStart=Date.now())});i.on("fn-end",function(n,i){var r=n[0];r instanceof Event&&t("bst",[r,i,this.bstStart,Date.now()])});u.on("fn-start",function(n,t,i){this.bstStart=Date.now();this.bstType=i});u.on("fn-end",function(n,i){t("bstTimer",[i,this.bstStart,Date.now(),this.bstType])});i.on("pushState-start",function(){this.time=Date.now();this.startPath=location.pathname+location.hash});i.on("pushState-end",function(){t("bstHist",[location.pathname+location.hash,this.startPath,this.time])});"addEventListener"in window.performance&&(window.performance.addEventListener("webkitresourcetimingbufferfull",function(){t("bstResource",[window.performance.getEntriesByType("resource")]);window.performance.webkitClearResourceTimings()},!1),window.performance.addEventListener("resourcetimingbufferfull",function(){t("bstResource",[window.performance.getEntriesByType("resource")]);window.performance.clearResourceTimings()},!1));document.addEventListener("scroll",r,!1);document.addEventListener("keypress",r,!1);document.addEventListener("click",r,!1)}},{1:6,2:8,ee:"QJf3ax",handle:"D5DuLP",loader:"G9z0Bl"}],5:[function(n,t){function u(n){e.inPlace(n,["addEventListener","removeEventListener"],"-",o)}function o(n){return n[1]}var f=(n(1),n("ee").create()),e=n(2)(f),s=n("gos"),i,r;if(t.exports=f,u(window),"getPrototypeOf"in Object){for(i=document;i&&!i.hasOwnProperty("addEventListener");)i=Object.getPrototypeOf(i);for(i&&u(i),r=XMLHttpRequest.prototype;r&&!r.hasOwnProperty("addEventListener");)r=Object.getPrototypeOf(r);r&&u(r)}else XMLHttpRequest.prototype.hasOwnProperty("addEventListener")&&u(XMLHttpRequest.prototype);f.on("addEventListener-start",function(n){if(n[1]){var t=n[1];"function"==typeof t?this.wrapped=n[1]=s(t,"nr@wrapped",function(){return e(t,"fn-",null,t.name||"anonymous")}):"function"==typeof t.handleEvent&&e.inPlace(t,["handleEvent"],"fn-")}});f.on("removeEventListener-start",function(n){var t=this.wrapped;t&&(n[1]=t)})},{1:21,2:22,ee:"QJf3ax",gos:"7eSDFh"}],6:[function(n,t){var i=(n(2),n("ee").create()),r=n(1)(i);t.exports=i;r.inPlace(window.history,["pushState"],"-")},{1:22,2:21,ee:"QJf3ax"}],7:[function(n,t){var i=(n(2),n("ee").create()),r=n(1)(i);t.exports=i;r.inPlace(window,["requestAnimationFrame","mozRequestAnimationFrame","webkitRequestAnimationFrame","msRequestAnimationFrame"],"raf-");i.on("raf-start",function(n){n[0]=r(n[0],"fn-")})},{1:22,2:21,ee:"QJf3ax"}],8:[function(n,t){function u(n,t,i){var u=n[0];"string"==typeof u&&(u=new Function(u));n[0]=r(u,"fn-",null,i)}var i=(n(2),n("ee").create()),r=n(1)(i);t.exports=i;r.inPlace(window,["setTimeout","setInterval","setImmediate"],"setTimer-");i.on("setTimer-start",u)},{1:22,2:21,ee:"QJf3ax"}],9:[function(n,t){function o(){r.inPlace(this,l,"fn-")}function u(n,t){r.inPlace(t,["onreadystatechange"],"fn-")}function s(n,t){return t}var i=n("ee").create(),h=n(1),f=n(2),r=f(i),c=f(h),e=window.XMLHttpRequest,l=["onload","onerror","onabort","onloadstart","onloadend","onprogress","ontimeout"];t.exports=i;window.XMLHttpRequest=function(n){var t=new e(n);try{i.emit("new-xhr",[],t);c.inPlace(t,["addEventListener","removeEventListener"],"-",function(n,t){return t});t.addEventListener("readystatechange",o,!1)}catch(r){try{i.emit("internal-error",[r])}catch(u){}}return t};window.XMLHttpRequest.prototype=e.prototype;r.inPlace(XMLHttpRequest.prototype,["open","send"],"-xhr-",s);i.on("send-xhr-start",u);i.on("open-xhr-start",u)},{1:5,2:22,ee:"QJf3ax"}],10:[function(n){function r(n){if("string"==typeof n&&n.length)return n.length;if("object"!=typeof n)return void 0;if("undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer&&n.byteLength)return n.byteLength;if("undefined"!=typeof Blob&&n instanceof Blob&&n.size)return n.size;if("undefined"!=typeof FormData&&n instanceof FormData)return void 0;try{return JSON.stringify(n).length}catch(t){return void 0}}function e(n){var t=this.params,f=this.metrics,e,h;if(!this.ended){for(this.ended=!0,e=0;u>e;e++)n.removeEventListener(i[e],this.listener,!1);if(!t.aborted){if(f.duration=(new Date).getTime()-this.startTime,4===n.readyState){t.status=n.status;var o=n.responseType,l="arraybuffer"===o||"blob"===o||"json"===o?n.response:n.responseText,c=r(l);(c&&(f.rxSize=c),this.sameOrigin)&&(h=n.getResponseHeader("X-NewRelic-App-Data"),h&&(t.cat=h.split(", ").pop()))}else t.status=0;f.cbTime=this.cbTime;s("xhr",[t,f,this.startTime])}}}function o(n,t){var i=h(t),r=n.params;r.host=i.hostname+":"+i.port;r.pathname=i.pathname;n.sameOrigin=i.sameOrigin}if(window.XMLHttpRequest&&XMLHttpRequest.prototype&&XMLHttpRequest.prototype.addEventListener&&!/CriOS/.test(navigator.userAgent)){n("loader").features.xhr=!0;var s=n("handle"),h=n(2),t=n("ee"),i=["load","error","abort","timeout"],u=i.length,f=n(1);n(4);n(3);t.on("new-xhr",function(){this.totalCbs=0;this.called=0;this.cbTime=0;this.end=e;this.ended=!1;this.xhrGuids={}});t.on("open-xhr-start",function(n){this.params={method:n[0]};o(this,n[1]);this.metrics={}});t.on("open-xhr-end",function(n,t){"loader_config"in NREUM&&"xpid"in NREUM.loader_config&&this.sameOrigin&&t.setRequestHeader("X-NewRelic-ID",NREUM.loader_config.xpid)});t.on("send-xhr-start",function(n,f){var h=this.metrics,c=n[0],e=this,s,o;for(h&&c&&(s=r(c),s&&(h.txSize=s)),this.startTime=(new Date).getTime(),this.listener=function(n){try{"abort"===n.type&&(e.params.aborted=!0);("load"!==n.type||e.called===e.totalCbs&&(e.onloadCalled||"function"!=typeof f.onload))&&e.end(f)}catch(i){try{t.emit("internal-error",[i])}catch(r){}}},o=0;u>o;o++)f.addEventListener(i[o],this.listener,!1)});t.on("xhr-cb-time",function(n,t,i){this.cbTime+=n;t?this.onloadCalled=!0:this.called+=1;this.called!==this.totalCbs||!this.onloadCalled&&"function"==typeof i.onload||this.end(i)});t.on("xhr-load-added",function(n,t){var i=""+f(n)+!!t;this.xhrGuids&&!this.xhrGuids[i]&&(this.xhrGuids[i]=!0,this.totalCbs+=1)});t.on("xhr-load-removed",function(n,t){var i=""+f(n)+!!t;this.xhrGuids&&this.xhrGuids[i]&&(delete this.xhrGuids[i],this.totalCbs-=1)});t.on("addEventListener-end",function(n,i){i instanceof XMLHttpRequest&&"load"===n[0]&&t.emit("xhr-load-added",[n[1],n[2]],i)});t.on("removeEventListener-end",function(n,i){i instanceof XMLHttpRequest&&"load"===n[0]&&t.emit("xhr-load-removed",[n[1],n[2]],i)});t.on("fn-start",function(n,t,i){t instanceof XMLHttpRequest&&("onload"===i&&(this.onload=!0),("load"===(n[0]&&n[0].type)||this.onload)&&(this.xhrCbStart=(new Date).getTime()))});t.on("fn-end",function(n,i){this.xhrCbStart&&t.emit("xhr-cb-time",[(new Date).getTime()-this.xhrCbStart,this.onload,i],i)})}},{1:"XL7HBI",2:11,3:9,4:5,ee:"QJf3ax",handle:"D5DuLP",loader:"G9z0Bl"}],11:[function(n,t){t.exports=function(n){var i=document.createElement("a"),u=window.location,t={},r;return i.href=n,t.port=i.port,r=i.href.split("://"),!t.port&&r[1]&&(t.port=r[1].split("/")[0].split("@").pop().split(":")[1]),t.port&&"0"!==t.port||(t.port="https"===r[0]?"443":"80"),t.hostname=i.hostname||u.hostname,t.pathname=i.pathname,t.protocol=r[0],"/"!==t.pathname.charAt(0)&&(t.pathname="/"+t.pathname),t.sameOrigin=!i.hostname||i.hostname===document.domain&&i.port===u.port&&i.protocol===u.protocol,t}},{}],gos:[function(n,t){t.exports=n("7eSDFh")},{}],"7eSDFh":[function(n,t){function i(n,t,i){if(r.call(n,t))return n[t];var u=i();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(n,t,{value:u,writable:!0,enumerable:!1}),u}catch(f){}return n[t]=u,u}var r=Object.prototype.hasOwnProperty;t.exports=i},{}],D5DuLP:[function(n,t){function u(n,t,u){return i.listeners(n).length?i.emit(n,t,u):(r[n]||(r[n]=[]),void r[n].push(t))}var i=n("ee").create(),r={};t.exports=u;u.ee=i;i.q=r},{ee:"QJf3ax"}],handle:[function(n,t){t.exports=n("D5DuLP")},{}],XL7HBI:[function(n,t){function i(n){var t=typeof n;return!n||"object"!==t&&"function"!==t?-1:n===window?0:f(n,u,function(){return r++})}var r=1,u="nr@id",f=n("gos");t.exports=i},{gos:"7eSDFh"}],id:[function(n,t){t.exports=n("XL7HBI")},{}],loader:[function(n,t){t.exports=n("G9z0Bl")},{}],G9z0Bl:[function(n,t){function s(){var n=o.info=NREUM.info,t;n&&n.licenseKey&&n.applicationID&&i&&i.body&&(v(y,function(t,i){t in n||(n[t]=i)}),o.proto="https"===l.split(":")[0]||n.sslForHttp?"https://":"http://",u("mark",["onload",r()]),t=i.createElement("script"),t.src=o.proto+n.agent,i.body.appendChild(t))}function a(){"complete"===i.readyState&&h()}function h(){u("mark",["domContent",r()])}function r(){return(new Date).getTime()}var u=n("handle"),v=n(1),f=window,i=f.document,e="addEventListener",c="attachEvent",l=(""+location).split("?")[0],y={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net",agent:"js-agent.newrelic.com/nr-515.min.js"},o=t.exports={offset:r(),origin:l,features:{}};i[e]?(i[e]("DOMContentLoaded",h,!1),f[e]("load",s,!1)):(i[c]("onreadystatechange",a),f[c]("onload",s));u("mark",["firstbyte",r()])},{1:20,handle:"D5DuLP"}],20:[function(n,t){function i(n,t){var u=[],i="",f=0;for(i in n)r.call(n,i)&&(u[f]=t(i,n[i]),f+=1);return u}var r=Object.prototype.hasOwnProperty;t.exports=i},{}],21:[function(n,t){function i(n,t,i){t||(t=0);"undefined"==typeof i&&(i=n?n.length:0);for(var r=-1,u=i-t||0,f=Array(0>u?0:u);++r<u;)f[r]=n[t+r];return f}t.exports=i},{}],22:[function(n,t){function r(n){return!(n&&"function"==typeof n&&n.apply&&!n[i])}var u=n("ee"),f=n(1),i="nr@wrapper",e=Object.prototype.hasOwnProperty;t.exports=function(n){function t(n,t,u,e){function h(){var i,r,h,l;try{r=this;i=f(arguments);h=u&&u(i,r)||{}}catch(a){s([a,"",[i,r,e],h])}o(t+"start",[i,r,e],h);try{return n.apply(r,i)}catch(c){throw o(t+"err",[i,r,c],h),c;}finally{o(t+"end",[i,r,l],h)}}return r(n)?n:(t||(t=""),h[i]=!0,c(n,h),h)}function h(n,i,u,f){u||(u="");for(var s,e,h="-"===u.charAt(0),o=0;o<i.length;o++)e=i[o],s=n[e],r(s)||(n[e]=t(s,h?e+u:u,f,e,n))}function o(t,i,r){try{n.emit(t,i,r)}catch(u){s([u,t,i,r])}}function c(n,t){var r,i;if(Object.defineProperty&&Object.keys)try{return r=Object.keys(n),r.forEach(function(i){Object.defineProperty(t,i,{get:function(){return n[i]},set:function(t){return n[i]=t,t}})}),t}catch(u){s([u])}for(i in n)e.call(n,i)&&(t[i]=n[i]);return t}function s(t){try{n.emit("internal-error",t)}catch(i){}}return n||(n=u),t.inPlace=h,t.flag=i,t}},{1:21,ee:"QJf3ax"}]},{},["G9z0Bl",3,10,4]);NREUM.info={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net",licenseKey:n,applicationID:t,sa:1,agent:"js-agent.newrelic.com/nr-515.min.js"}}function logon(n){function i(n){$(".alert--error-home").css("display","block");$("#signin__pwd"+n).val("");$("#signin__log"+n).select().focus()}function r(n){$("#signin__pwd"+n).keypress(function(t){var i=t.keyCode?t.keyCode:t.which;i=="13"&&$("#btn_account_ok"+n).trigger("click")})}var t="";n!=undefined&&n==!0&&(t="_mobil");$("#btn_account_ok"+t).on("click",function(n){var r,u,f;n.preventDefault();r=$("#signin__log"+t).val();u=$("#signin__pwd"+t).val();$(".alert--error-home").css("display","none");f=$(location).attr("href");$.ajax({url:"/Authentication/Identification",type:"POST",data:{login:r,password:u},success:function(n){n?f.indexOf("NewMember")>0?window.location.href="/":($("body").append('<form name="ff5" method="post" action="" ><input type="hidden" name="ticks" value="'+(new Date).getTime()+'" /><\/form>'),$('form[name="ff5"]')[0].submit()):i(t)},error:function(){i(t)}})});r(t)}function openWindow(n,t){if(n!="")if(t!==undefined)window.open(n.replace(/([^#]*)(#.*)?$/,"$1?searchType="+t+"$2"),"_top");else window.open(n,"_top")}function viewport(){var n=window,t="inner";return"innerWidth"in window||(t="client",n=document.documentElement||document.body),{width:n[t+"Width"],height:n[t+"Height"]}}function goBack(){window.history.back(-1)}function isMobil(){return $(".isMobil").is(":visible")}function isTab(){return $(".isTab").is(":visible")}function getCaretPosition(n){var t=0,i;return n.selectionStart||n.selectionStart=="0"?t=n.selectionEnd:document.selection&&(n.focus(),i=document.selection.createRange(),i.moveStart("character",-n.value.length),t=i.text.length),t}function setCaretPosition(n,t){if(n.setSelectionRange)n.focus(),n.setSelectionRange(t,t);else if(n.createTextRange){var i=n.createTextRange();i.collapse(!0);i.moveEnd("character",t);i.moveStart("character",t);i.select()}}function AttachEventWithAutoComplete(n,t){n.on("input",function(n){n.preventDefault();n.stopPropagation();t(this,n)})}function showModalMessage(n){$("#"+n).modal("show")}function faqs(){function i(n){n.hasClass("icon-misc--arrowlgright")?(n.removeClass("icon-misc--arrowlgright"),n.addClass("icon-misc--arrowlgdown")):(n.removeClass("icon-misc--arrowlgdown"),n.addClass("icon-misc--arrowlgright"))}var t=$(".j_faq"),n=t.find(".questions__item");n.click(function(){if($.each(n,function(n,t){$(t).find("span").removeClass("icon-misc--arrowlgdown");$(t).find("span").addClass("icon-misc--arrowlgright")}),$(this).hasClass("is_open"))n.removeClass("is_open");else{n.removeClass("is_open");$(this).addClass("is_open");var t=$(this).find("span");i(t)}})}function showMessage(n){window.alert($("#"+n).text().trim())}function initSelectpicker(n){n!=undefined?/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)?$(".selectpicker").selectpicker("mobile"):$(".selectpicker").selectpicker("refresh"):/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)&&$(".selectpicker").selectpicker("mobile")}function breadcrumbs(){var i=$("#breadcrumbs li"),f=$("#breadcrumbs .breadcrumbs-list"),t=$("#breadcrumbs .detailCat"),r=$(".detailCat .detailCat-cat"),n=$(".detailCat .list-group-item"),e,u;f.bind("click touchstart",function(u){var f,e,o;u.preventDefault();u.stopPropagation();f=$(this);f.hasClass("is_open")||f.hasClass("is_current")||(u.stopPropagation(),i.removeClass("is_open"),e=f.attr("data-current-category-id"),r.removeClass("is_active"),n.removeClass("active"),e!=undefined&&e!=""&&e!=null?(o=$('li[data-category-id="'+e+'"]'),o.addClass("active")):$(n[0]).addClass("active"),f.addClass("is_open"),t.addClass("is_open"),$(".detailCat-container").height($(".detailCat .list-group").height()),$(document).bind("click touchstart",breadcrumbsCloser))});n.mouseenter(function(){u=$(this);e=setTimeout(function(){n.removeClass("active");$(u).addClass("active");var t=$(u).attr("data-category-id");$(".detailCat-cat").addClass("hidden");$("[data-categoryid='"+t+"']").removeClass("hidden");$(".detailCat-container").height($(".detailCat .list-group").height())},50)}).mouseleave(function(){clearTimeout(e)});f.hover(function(u){var e=$(this),f;e.hasClass("is_current")||(u.stopPropagation(),i.removeClass("is_open"),t.removeClass("is_open"),e.addClass("is_open"),t.addClass("is_open"),f=e.attr("data-current-category-id"),r.removeClass("active"),n.removeClass("active"),$(".detailCat-cat").addClass("hidden"),f!=undefined&&f!=""&&f!=null?($("[data-category-id='"+f+"']").addClass("active"),$("[data-categoryid='"+f+"']").removeClass("hidden"),$(".detailCat-container").height($(".detailCat .list-group").height())):($(n[0]).addClass("active"),$(r[0]).removeClass("hidden")),$(document).bind("click",breadcrumbsCloser))});$("#breadcrumbs .detailCat, #breadcrumbs .breadcrumbs-list").mouseleave(function(n){var f=$(this),r,u;r=n.toElement!=undefined?n.toElement:n.relatedTarget;u=$(r).closest("#breadcrumbs");($(r).hasClass("is_current")||$(r).hasClass("breadcrumbs-list-first")||$(r).hasClass("icon-misc--breadcrumbnext")||$(r).attr("id")==="breadcrumbs"||!f.hasClass("is_current")&&u.attr("id")!="breadcrumbs")&&(i.removeClass("is_open"),t.removeClass("is_open"),$(document).unbind("click",breadcrumbsCloser))})}function breadcrumbsCloser(n){var t=$("#breadcrumbs li"),i=$("#breadcrumbs .detailCat"),r=$(n.target).closest(".detailCat");r.length==0&&(t.removeClass("is_open"),i.removeClass("is_open"),$(document).unbind("click",breadcrumbsCloser))}var _BaseClassName,_0xeaeb,transformation,commonTools,bannerCookiesModule,tools,browserIeVersionPopup,catalogButtonAddToBasketTooltipModule,vehicleSelectorTrackingModule,carouselModal;(function(n){function i(n,t){for(var i=window,r=(n||"").split(".");i&&r.length;)i=i[r.shift()];return typeof i=="function"?i:(t.push(n),Function.constructor.apply(null,t))}function u(n){return n==="GET"||n==="POST"}function o(n,t){u(t)||n.setRequestHeader("X-HTTP-Method-Override",t)}function s(t,i,r){var u;r.indexOf("application/x-javascript")===-1&&(u=(t.getAttribute("data-ajax-mode")||"").toUpperCase(),n(t.getAttribute("data-ajax-update")).each(function(t,r){var f;switch(u){case"BEFORE":f=r.firstChild;n("<div />").html(i).contents().each(function(){r.insertBefore(this,f)});break;case"AFTER":n("<div />").html(i).contents().each(function(){r.appendChild(this)});break;case"REPLACE-WITH":n(r).replaceWith(i);break;default:n(r).html(i)}}))}function f(t,r){var e,h,f,c;(e=t.getAttribute("data-ajax-confirm"),!e||window.confirm(e))&&(h=n(t.getAttribute("data-ajax-loading")),c=parseInt(t.getAttribute("data-ajax-loading-duration"),10)||0,n.extend(r,{type:t.getAttribute("data-ajax-method")||undefined,url:t.getAttribute("data-ajax-url")||undefined,cache:!!t.getAttribute("data-ajax-cache"),beforeSend:function(n){var r;return o(n,f),r=i(t.getAttribute("data-ajax-begin"),["xhr"]).apply(t,arguments),r!==!1&&h.show(c),r},complete:function(){h.hide(c);i(t.getAttribute("data-ajax-complete"),["xhr","status"]).apply(t,arguments)},success:function(n,r,u){s(t,n,u.getResponseHeader("Content-Type")||"text/html");i(t.getAttribute("data-ajax-success"),["data","status","xhr"]).apply(t,arguments)},error:function(){i(t.getAttribute("data-ajax-failure"),["xhr","status","error"]).apply(t,arguments)}}),r.data.push({name:"X-Requested-With",value:"XMLHttpRequest"}),f=r.type.toUpperCase(),u(f)||(r.type="POST",r.data.push({name:"X-HTTP-Method-Override",value:f})),n.ajax(r))}function h(t){var i=n(t).data(e);return!i||!i.validate||i.validate()}var t="unobtrusiveAjaxClick",r="unobtrusiveAjaxClickTarget",e="unobtrusiveValidation";n(document).on("click","a[data-ajax=true]",function(n){n.preventDefault();f(this,{url:this.href,type:"GET",data:[]})});n(document).on("click","form[data-ajax=true] input[type=image]",function(i){var r=i.target.name,u=n(i.target),f=n(u.parents("form")[0]),e=u.offset();f.data(t,[{name:r+".x",value:Math.round(i.pageX-e.left)},{name:r+".y",value:Math.round(i.pageY-e.top)}]);setTimeout(function(){f.removeData(t)},0)});n(document).on("click","form[data-ajax=true] :submit",function(i){var f=i.currentTarget.name,e=n(i.target),u=n(e.parents("form")[0]);u.data(t,f?[{name:f,value:i.currentTarget.value}]:[]);u.data(r,e);setTimeout(function(){u.removeData(t);u.removeData(r)},0)});n(document).on("submit","form[data-ajax=true]",function(i){var e=n(this).data(t)||[],u=n(this).data(r),o=u&&u.hasClass("cancel");(i.preventDefault(),o||h(this))&&f(this,{url:this.action,type:this.method||"GET",data:e.concat(n(this).serializeArray())})})})(jQuery);jQuery.cookie=function(n,t,i){var f,r,e,o,u,s;if(typeof t!="undefined"){i=i||{};t===null&&(t="",i.expires=-1);f="";i.expires&&(typeof i.expires=="number"||i.expires.toUTCString)&&(typeof i.expires=="number"?(r=new Date,r.setTime(r.getTime()+i.expires*864e5)):r=i.expires,f="; expires="+r.toUTCString());var h=i.path?"; path="+i.path:"",c=i.domain?"; domain="+i.domain:"",l=i.secure?"; secure":"";document.cookie=[n,"=",encodeURIComponent(t),f,h,c,l].join("")}else{if(e=null,document.cookie&&document.cookie!="")for(o=document.cookie.split(";"),u=0;u<o.length;u++)if(s=jQuery.trim(o[u]),s.substring(0,n.length+1)==n+"="){e=decodeURIComponent(s.substring(n.length+1));break}return e}};_BaseClassName="nfl";_0xeaeb=["conciergerie","getElementsByClassName","*","getElementsByTagName","length"," ","split","className","0A12B34C56D78E9F",",","charset,name,rel,rev,target,accesskey,id,style,tabindex,title","blur,click,dblclick,focus,mousedown,mousemove,mouseover,mouseup,keydown,keyppress,keyup","","indexOf","substr","charAt","fromCharCode","a","createElement","document","href","getAttribute","on","addEventListener","childNodes","appendChild","insertBefore","parentNode","removeChild","transformation()"];document[_0xeaeb[1]]||(document[_0xeaeb[1]]=function(n){var t=[],r=document[_0xeaeb[3]](_0xeaeb[2]),u;for(i=0;i<r[_0xeaeb[4]];i++)for(u=r[i][_0xeaeb[7]][_0xeaeb[6]](_0xeaeb[5]),j=0;j<u[_0xeaeb[4]];j++)u[j]==n&&(t[t[_0xeaeb[4]]]=r[i]);return t});transformation=function(){for(var o=document[_0xeaeb[1]](_BaseClassName),p=o[_0xeaeb[4]],s=_0xeaeb[8],h=_0xeaeb[10][_0xeaeb[6]](_0xeaeb[9]),c=_0xeaeb[11][_0xeaeb[6]](_0xeaeb[9]),f,e=_0xeaeb[12],n,l,u=null,a,v,t,i,r=0,y=p;y--;){if(n=o[y],i=n[_0xeaeb[7]][_0xeaeb[13]](_0xeaeb[5]),r=n[_0xeaeb[7]][_0xeaeb[13]](_0xeaeb[5],i+1),r==-1&&(r=n[_0xeaeb[7]][_0xeaeb[4]]),e=_0xeaeb[12],i>0)for(f=n[_0xeaeb[7]][_0xeaeb[14]](i+1,r-i-1),t=0;t<f[_0xeaeb[4]];t+=2)a=s[_0xeaeb[13]](f[_0xeaeb[15]](t)),v=s[_0xeaeb[13]](f[_0xeaeb[15]](t+1)),e+=String[_0xeaeb[16]](a*16+v);for(l=n[_0xeaeb[7]][_0xeaeb[14]](r+1,n[_0xeaeb[7]][_0xeaeb[4]]-r-1),u=this[_0xeaeb[19]][_0xeaeb[18]](_0xeaeb[17]),u[_0xeaeb[20]]=e,t=h[_0xeaeb[4]];t--;)try{i=h[t];(r=n[_0xeaeb[21]](i))&&(u[i]=r)}catch(w){}for(t=c[_0xeaeb[4]];t--;)try{i=c[t];(r=n[_0xeaeb[22]+i])&&u[_0xeaeb[23]](i,r,!1)}catch(w){}for(u[_0xeaeb[7]]=l,t=n[_0xeaeb[24]][_0xeaeb[4]];t--;)u[_0xeaeb[25]](n[_0xeaeb[24]][0]);n[_0xeaeb[27]][_0xeaeb[26]](u,n);n[_0xeaeb[27]][_0xeaeb[28]](n)}setTimeout(_0xeaeb[29],50)};transformation();var _wt1Q=_wt1Q||[],marketingTrackModule=function(){function f(n,u,f,e){t=JSON.parse(n);i=JSON.parse(u);r=f;e!==undefined&&trackers.wt2.start(e)}function e(n,t,i){document.location.hostname.indexOf("localhost")<0?$.cookie(n,t,{expires:366,path:"/",domain:i}):$.cookie(n,t,{expires:366,path:"/"})}function o(n){var t="";return $.each(document.cookie.split(";"),function(i,r){var u=r.trim();u.indexOf(n)==0&&(t=u.substring(Number(n.length),r.length))}),t}function s(n){return t&&(n!=""&&_wt1Q.push(["trackPage",{tdl:n}]),u(i,r)),!1}function h(n){return t&&(n!=""&&_wt1Q.push(["trackPage",{tdl_popinout:n}]),u(i,r)),!1}function c(n){return t&&(n!=""&&_wt1Q.push(["trackPage",{CrossSellView_A:n}]),u(i,r)),!1}function u(n,t){return n&&_wt1Q.push(["setVisitorParam","mail",t]),!1}function l(n){var t=o("OSC_COOKIE_FIRSTCONNECTION_FR");t==""&&(e("OSC_COOKIE_FIRSTCONNECTION_FR",!0,n),u(i,r))}function a(t){n("cart_per_mail",{shoppingList:t})}function v(t){t!=undefined&&t.productId!=""&&t.availabilityType!=""&&(t.refSearch!=""?n("unavailable-item",{"article-id":t.productId,popupAvailabilityType:t.availabilityType,refSearch:t.refSearch}):n("unavailable-item",{"article-id":t.productId,popupAvailabilityType:t.availabilityType}))}function y(t,i,r,u){n("pageCategory",{genart:i,rankingSignature:r,allSku:u})}function p(t){n("manual_vehicle_selector",{choice:"constructor",constructor_id:t})}function w(t){n("manual_vehicle_selector",{choice:"model",model_id:t})}function b(t,i){n("manual_vehicle_selector",{choice:"type",type_id:t,level_id:i})}function k(t){t.success?n("license_plate_search",{plate:t.plateLicense,success:!0,type_id:t.typeId,polk_ids:t.polkIds}):n("license_plate_search",{plate:t.plateLicense,success:!1})}function d(){n("vehicule_change_click_gt")}function g(i,r){t&&n("breadcrumbs_ariane_click_gt",{cat:i,subCat:r})}function nt(t,i,r){n("genart_search_click_gt",{searchvalue:r,cat:t,subCat:i})}function tt(){n("live_tchat_open")}function it(t){n("live_tchat_send_msg",{message:t})}function n(n,i){t&&(i!==undefined?_wt1Q.push(["trackEvent",{type:n,params:i}]):_wt1Q.push(["trackEvent",{type:n}]))}var t,i,r;return{init:f,trackerPushCartPerMail:a,trackerPushDataLayer:s,trackerPushPopInOutData:h,trackerPushCrossSellViewAbData:c,trackerPushEmail:l,trackerUnavailables:v,trackerOilShopVehicleSelected:y,pushManualVehicleSelectorForConstructorId:p,pushManualVehicleSelectorForModelId:w,pushManualVehicleSelectorForTypeLevelId:b,pushLicensePlateSearch:k,changeVehiculeClick:d,breadCrumbsClick:g,genartSearchEvent:nt,liveTchatOpen:tt,liveTchatSendMessage:it}}(),TrackerOscaro=function(){function n(n,t,i){var r,u;i&&(r=document.createElement("script"),r.src=n,r.type="text/javascript",r.async=t,u=document.getElementsByTagName("script")[0],u.parentNode.insertBefore(r,u))}return{init:n}}(),TrackerOscaro=function(){function n(n,t,i){var r,u;i&&(r=document.createElement("script"),r.src=n,r.type="text/javascript",r.async=t,u=document.getElementsByTagName("script")[0],u.parentNode.insertBefore(r,u))}return{init:n}}(),searchBanner=function(){function u(){$("#Manufacturers").change(f);$("#Models").change(e);$("#Types").change(i)}function f(){var n;$("#Types")[0].options[0].selected=!0;$("#Models").attr("disabled",!0);$("#Types")[0].disabled=!0;n=$("#Manufacturers option:selected").val();n==0||isNaN(n)?($("#Models")[0].options[0].selected=!0,$("#Types")[0].options[0].selected=!0):$.post("/Catalog/SearchEngine/GetModels",{idOscManufacturer:n},o);i()}function e(){var n;$("#Types")[0].disabled=!0;n=$("#Models option:selected").val();n==0||isNaN(n)?$("#Types")[0].options[0].selected=!0:$.post("/Catalog/SearchEngine/GetTypes",{idOscModel:n},h);i()}function i(){l();c($("#Types").val())}function o(n){r($("#Models"),n);$("#Models").removeClass("disabled");$("#Models").hasClass("autocomplete")&&$("#Models").each(commonCatalog.creerAutoCompleteDdl)}function s(n,i){var r,u,f;n.length==0&&(n="{urlOscaro}");t.length>0&&(r=n.split("{urlOscaro}").join(t),r.indexOf("<encode>")>0&&r.indexOf("<\/encode>")>r.indexOf("<encode>")&&(u=r.split("<encode>"),f=u[1].split("<\/encode>"),r=u[0]+encodeURIComponent(f[0])+f[1]),window.open(r,i))}function h(t){r($("#Types"),t.datas);$("#Types").removeClass("disabled");n=t.urls}function c(i){var r=i;t=n!=null||n!=undefined?n[r]:""}function l(){var n=$("#Types").val().split("_");$("#GreyButton").length>0&&(n.length==2?($("#GreyButton")[0].style.display="none",$("#ClearButton")[0].style.display=""):($("#GreyButton")[0].style.display="",$("#ClearButton")[0].style.display="none"))}function r(n,t){var i,r;n.prop("disabled",!0);r=n.find("option").first().text();n.html("");$('<option value="0">'+r+"<\/option>").appendTo(n);$.each(t,function(t,r){i=$("<optgroup/>",{label:r.Name}).appendTo(n);$.each(r.Items,function(n,t){$('<option value="'+t.Value+'">'+t.Text+"<\/option>").appendTo(i)})});n.prop("disabled",!1)}var n,t="";return{init:u,bannerSubmit:s}}();if(typeof jQuery=="undefined")throw new Error("Bootstrap's JavaScript requires jQuery");+function(n){"use strict";var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||t[0]==1&&t[1]==9&&t[2]<1||t[0]>2)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3");}(jQuery);+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(i.style[n]!==undefined)return{end:t[n]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one("bsTransitionEnd",function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){(n.support.transition=t(),n.support.transition)&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery);+function(n){"use strict";function u(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));typeof i=="string"&&u[i].call(r)})}var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.VERSION="3.3.6";t.TRANSITION_DURATION=150;t.prototype.close=function(i){function e(){r.detach().trigger("closed.bs.alert").remove()}var f=n(this),u=f.attr("data-target"),r;(u||(u=f.attr("href"),u=u&&u.replace(/.*(?=#[^\s]*$)/,"")),r=n(u),i&&i.preventDefault(),r.length||(r=f.closest(".alert")),r.trigger(i=n.Event("close.bs.alert")),i.isDefaultPrevented())||(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e())};r=n.fn.alert;n.fn.alert=u;n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f=typeof i=="object"&&i;r||u.data("bs.button",r=new t(this,f));i=="toggle"?r.toggle():i&&r.setState(i)})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.isLoading=!1},r;t.VERSION="3.3.6";t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var r="disabled",i=this.$element,f=i.is("input")?"val":"html",u=i.data();t+="Text";u.resetText==null&&i.data("resetText",i[f]());setTimeout(n.proxy(function(){i[f](u[t]==null?this.options[t]:u[t]);t=="loadingText"?(this.isLoading=!0,i.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,i.removeClass(r).removeAttr(r))},this),0)};t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length?(n=this.$element.find("input"),n.prop("type")=="radio"?(n.prop("checked")&&(t=!1),i.find(".active").removeClass("active"),this.$element.addClass("active")):n.prop("type")=="checkbox"&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))};r=n.fn.button;n.fn.button=i;n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=r,this};n(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=n(t.target);r.hasClass("btn")||(r=r.closest(".btn"));i.call(r,"toggle");n(t.target).is('input[type="radio"]')||n(t.target).is('input[type="checkbox"]')||t.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){n(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i),e=typeof i=="string"?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));typeof i=="number"?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})}var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=null;this.sliding=null;this.interval=null;this.$active=null;this.$items=null;this.options.keyboard&&this.$element.on("keydown.bs.carousel",n.proxy(this.keydown,this));this.options.pause!="hover"||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",n.proxy(this.pause,this)).on("mouseleave.bs.carousel",n.proxy(this.cycle,this))},u,r;t.VERSION="3.3.6";t.TRANSITION_DURATION=600;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0};t.prototype.keydown=function(n){if(!/input|textarea/i.test(n.target.tagName)){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()}};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)};t.prototype.getItemForDirection=function(n,t){var i=this.getItemIndex(t),f=n=="prev"&&i===0||n=="next"&&i==this.$items.length-1,r,u;return f&&!this.options.wrap?t:(r=n=="prev"?-1:1,u=(i+r)%this.$items.length,this.$items.eq(u))};t.prototype.to=function(n){var i=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(n>this.$items.length-1)&&!(n<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(n)}):t==n?this.pause().cycle():this.slide(n>t?"next":"prev",this.$items.eq(n))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(i,r){var e=this.$element.find(".item.active"),u=r||this.getItemForDirection(i,e),l=this.interval,f=i=="next"?"left":"right",a=this,o,s,h,c;return u.hasClass("active")?this.sliding=!1:(o=u[0],s=n.Event("slide.bs.carousel",{relatedTarget:o,direction:f}),this.$element.trigger(s),s.isDefaultPrevented())?void 0:(this.sliding=!0,l&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),h=n(this.$indicators.children()[this.getItemIndex(u)]),h&&h.addClass("active")),c=n.Event("slid.bs.carousel",{relatedTarget:o,direction:f}),n.support.transition&&this.$element.hasClass("slide")?(u.addClass(i),u[0].offsetWidth,e.addClass(f),u.addClass(f),e.one("bsTransitionEnd",function(){u.removeClass([i,f].join(" ")).addClass("active");e.removeClass(["active",f].join(" "));a.sliding=!1;setTimeout(function(){a.$element.trigger(c)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(e.removeClass("active"),u.addClass("active"),this.sliding=!1,this.$element.trigger(c)),l&&this.cycle(),this)};u=n.fn.carousel;n.fn.carousel=i;n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=u,this};r=function(t){var o,r=n(this),u=n(r.attr("data-target")||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"")),e,f;u.hasClass("carousel")&&(e=n.extend({},u.data(),r.data()),f=r.attr("data-slide-to"),f&&(e.interval=!1),i.call(u,e),f&&u.data("bs.carousel").to(f),t.preventDefault())};n(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r);n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(t){var i,r=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return n(r)}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i);!r&&f.toggle&&/show|hide/.test(i)&&(f.toggle=!1);r||u.data("bs.collapse",r=new t(this,f));typeof i=="string"&&r[i]()})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.$trigger=n('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]');this.transitioning=null;this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger);this.options.toggle&&this.toggle()},u;t.VERSION="3.3.6";t.TRANSITION_DURATION=350;t.DEFAULTS={toggle:!0};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var f,r,e,u,o,s;if(!this.transitioning&&!this.$element.hasClass("in")&&(r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing"),!r||!r.length||(f=r.data("bs.collapse"),!f||!f.transitioning))&&(e=n.Event("show.bs.collapse"),this.$element.trigger(e),!e.isDefaultPrevented())){if(r&&r.length&&(i.call(r,"hide"),f||r.data("bs.collapse",null)),u=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[u](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[u]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return o.call(this);s=n.camelCase(["scroll",u].join("-"));this.$element.one("bsTransitionEnd",n.proxy(o,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[u](this.$element[0][s])}};t.prototype.hide=function(){var r,i,u;if(!this.transitioning&&this.$element.hasClass("in")&&(r=n.Event("hide.bs.collapse"),this.$element.trigger(r),!r.isDefaultPrevented())){if(i=this.dimension(),this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,u=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},!n.support.transition)return u.call(this);this.$element[i](0).one("bsTransitionEnd",n.proxy(u,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};t.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,i){var u=n(i);this.addAriaAndCollapsedClass(r(u),u)},this)).end()};t.prototype.addAriaAndCollapsedClass=function(n,t){var i=n.hasClass("in");n.attr("aria-expanded",i);t.toggleClass("collapsed",!i).attr("aria-expanded",i)};u=n.fn.collapse;n.fn.collapse=i;n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=u,this};n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var u=n(this);u.attr("data-target")||t.preventDefault();var f=r(u),e=f.data("bs.collapse"),o=e?"toggle":u.data();i.call(f,o)})}(jQuery);+function(n){"use strict";function r(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}function u(t){t&&t.which===3||(n(e).remove(),n(i).each(function(){var u=n(this),i=r(u),f={relatedTarget:this};i.hasClass("open")&&(t&&t.type=="click"&&/input|textarea/i.test(t.target.tagName)&&n.contains(i[0],t.target)||(i.trigger(t=n.Event("hide.bs.dropdown",f)),t.isDefaultPrevented())||(u.attr("aria-expanded","false"),i.removeClass("open").trigger(n.Event("hidden.bs.dropdown",f))))}))}function o(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));typeof i=="string"&&u[i].call(r)})}var e=".dropdown-backdrop",i='[data-toggle="dropdown"]',t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.VERSION="3.3.6";t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=r(f),o=i.hasClass("open"),u(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length)n(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(n(this)).on("click",u);if(e={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",e)),t.isDefaultPrevented())return;f.trigger("focus").attr("aria-expanded","true");i.toggleClass("open").trigger(n.Event("shown.bs.dropdown",e))}return!1}};t.prototype.keydown=function(t){var e,o,s,h,f,u;if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=r(e),s=o.hasClass("open"),!s&&t.which!=27||s&&t.which==27)return t.which==27&&o.find(i).trigger("focus"),e.trigger("click");(h=" li:not(.disabled):visible a",f=o.find(".dropdown-menu"+h),f.length)&&(u=f.index(t.target),t.which==38&&u>0&&u--,t.which==40&&u<f.length-1&&u++,~u||(u=0),f.eq(u).trigger("focus"))}};f=n.fn.dropdown;n.fn.dropdown=o;n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",u).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i,t.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",t.prototype.keydown)}(jQuery);+function(n){"use strict";function i(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),typeof i=="object"&&i);u||f.data("bs.modal",u=new t(this,e));typeof i=="string"?u[i](r):e.show&&u.show(r)})}var t=function(t,i){this.options=i;this.$body=n(document.body);this.$element=n(t);this.$dialog=this.$element.find(".modal-dialog");this.$backdrop=null;this.isShown=null;this.originalBodyPad=null;this.scrollbarWidth=0;this.ignoreBackdropClick=!1;this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},r;t.VERSION="3.3.6";t.TRANSITION_DURATION=300;t.BACKDROP_TRANSITION_DURATION=150;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)};t.prototype.show=function(i){var r=this,u=n.Event("show.bs.modal",{relatedTarget:i});if(this.$element.trigger(u),!this.isShown&&!u.isDefaultPrevented()){this.isShown=!0;this.checkScrollbar();this.setScrollbar();this.$body.addClass("modal-open");this.escape();this.resize();this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this));this.$dialog.on("mousedown.dismiss.bs.modal",function(){r.$element.one("mouseup.dismiss.bs.modal",function(t){n(t.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})});this.backdrop(function(){var f=n.support.transition&&r.$element.hasClass("fade"),u;r.$element.parent().length||r.$element.appendTo(r.$body);r.$element.show().scrollTop(0);r.adjustDialog();f&&r.$element[0].offsetWidth;r.$element.addClass("in");r.enforceFocus();u=n.Event("shown.bs.modal",{relatedTarget:i});f?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(u)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(u)})}};t.prototype.hide=function(i){(i&&i.preventDefault(),i=n.Event("hide.bs.modal"),this.$element.trigger(i),this.isShown&&!i.isDefaultPrevented())&&(this.isShown=!1,this.escape(),this.resize(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",n.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.trigger("focus")},this))};t.prototype.escape=function(){if(this.isShown&&this.options.keyboard)this.$element.on("keydown.dismiss.bs.modal",n.proxy(function(n){n.which==27&&this.hide()},this));else this.isShown||this.$element.off("keydown.dismiss.bs.modal")};t.prototype.resize=function(){if(this.isShown)n(window).on("resize.bs.modal",n.proxy(this.handleUpdate,this));else n(window).off("resize.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.$body.removeClass("modal-open");n.resetAdjustments();n.resetScrollbar();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(i){var e=this,f=this.$element.hasClass("fade")?"fade":"",r,u;if(this.isShown&&this.options.backdrop){r=n.support.transition&&f;this.$backdrop=n(document.createElement("div")).addClass("modal-backdrop "+f).appendTo(this.$body);this.$element.on("click.dismiss.bs.modal",n.proxy(function(n){if(this.ignoreBackdropClick){this.ignoreBackdropClick=!1;return}n.target===n.currentTarget&&(this.options.backdrop=="static"?this.$element[0].focus():this.hide())},this));if(r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;r?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),u=function(){e.removeBackdrop();i&&i()},n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",u).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):u()):i&&i()};t.prototype.handleUpdate=function(){this.adjustDialog()};t.prototype.adjustDialog=function(){var n=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})};t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};t.prototype.checkScrollbar=function(){var n=window.innerWidth,t;n||(t=document.documentElement.getBoundingClientRect(),n=t.right-Math.abs(t.left));this.bodyIsOverflowing=document.body.clientWidth<n;this.scrollbarWidth=this.measureScrollbar()};t.prototype.setScrollbar=function(){var n=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";this.bodyIsOverflowing&&this.$body.css("padding-right",n+this.scrollbarWidth)};t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)};t.prototype.measureScrollbar=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",this.$body.append(n),t=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),t};r=n.fn.modal;n.fn.modal=i;n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=r,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=n(this),f=r.attr("href"),u=n(r.attr("data-target")||f&&f.replace(/.*(?=#[^\s]+$)/,"")),e=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(f)&&f},u.data(),r.data());r.is("a")&&t.preventDefault();u.one("show.bs.modal",function(n){if(!n.isDefaultPrevented())u.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})});i.call(u,e,this)})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f=typeof i=="object"&&i;(r||!/destroy|hide/.test(i))&&(r||u.data("bs.tooltip",r=new t(this,f)),typeof i=="string"&&r[i]())})}var t=function(n,t){this.type=null;this.options=null;this.enabled=null;this.timeout=null;this.hoverState=null;this.$element=null;this.inState=null;this.init("tooltip",n,t)},i;t.VERSION="3.3.6";t.TRANSITION_DURATION=150;t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}};t.prototype.init=function(t,i,r){var f,e,u,o,s;if(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&n(n.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],u=="click")this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else if(u!="manual"){o=u=="hover"?"mouseenter":"focusin";s=u=="hover"?"mouseleave":"focusout";this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this));this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this))}this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState[t.type=="focusin"?"focus":"hover"]=!0),i.tip().hasClass("in")||i.hoverState=="in"){i.hoverState="in";return}if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){i.hoverState=="in"&&i.show()},i.options.delay.show)};t.prototype.isInStateTrue=function(){for(var n in this.inState)if(this.inState[n])return!0;return!1};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState[t.type=="focusout"?"focus":"hover"]=!1),!i.isInStateTrue()){if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){i.hoverState=="out"&&i.hide()},i.options.delay.hide)}};t.prototype.show=function(){var c=n.Event("show.bs."+this.type),l,p,e,w,h;if(this.hasContent()&&this.enabled){if(this.$element.trigger(c),l=n.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),c.isDefaultPrevented()||!l)return;var u=this,r=this.tip(),a=this.getUID(this.type);this.setContent();r.attr("id",a);this.$element.attr("aria-describedby",a);this.options.animation&&r.addClass("fade");var i=typeof this.options.placement=="function"?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,v=/\s?auto?\s?/i,y=v.test(i);y&&(i=i.replace(v,"")||"top");r.detach().css({top:0,left:0,display:"block"}).addClass(i).data("bs."+this.type,this);this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);this.$element.trigger("inserted.bs."+this.type);var f=this.getPosition(),o=r[0].offsetWidth,s=r[0].offsetHeight;y&&(p=i,e=this.getPosition(this.$viewport),i=i=="bottom"&&f.bottom+s>e.bottom?"top":i=="top"&&f.top-s<e.top?"bottom":i=="right"&&f.right+o>e.width?"left":i=="left"&&f.left-o<e.left?"right":i,r.removeClass(p).addClass(i));w=this.getCalculatedOffset(i,f,o,s);this.applyPlacement(w,i);h=function(){var n=u.hoverState;u.$element.trigger("shown.bs."+u.type);u.hoverState=null;n=="out"&&u.leave(u)};n.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",h).emulateTransitionEnd(t.TRANSITION_DURATION):h()}};t.prototype.applyPlacement=function(t,i){var r=this.tip(),l=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),h,f,u;isNaN(o)&&(o=0);isNaN(s)&&(s=0);t.top+=o;t.left+=s;n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0);r.addClass("in");h=r[0].offsetWidth;f=r[0].offsetHeight;i=="top"&&f!=e&&(t.top=t.top+e-f);u=this.getViewportAdjustedDelta(i,t,h,f);u.left?t.left+=u.left:t.top+=u.top;var c=/top|bottom/.test(i),a=c?u.left*2-l+h:u.top*2-e+f,v=c?"offsetWidth":"offsetHeight";r.offset(t);this.replaceArrow(a,r[0][v],c)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i?"left":"top",50*(1-n/t)+"%").css(i?"top":"left","")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(i){function e(){u.hoverState!="in"&&r.detach();u.$element.removeAttr("aria-describedby").trigger("hidden.bs."+u.type);i&&i()}var u=this,r=n(this.$tip),f=n.Event("hide.bs."+this.type);if(this.$element.trigger(f),!f.isDefaultPrevented())return r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e(),this.hoverState=null,this};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||typeof n.attr("data-original-title")!="string")&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(t){t=t||this.$element;var u=t[0],r=u.tagName=="BODY",i=u.getBoundingClientRect();i.width==null&&(i=n.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var f=r?{top:0,left:0}:t.offset(),e={scroll:r?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},o=r?{width:n(window).width(),height:n(window).height()}:null;return n.extend({},i,e,o,f)};t.prototype.getCalculatedOffset=function(n,t,i,r){return n=="bottom"?{top:t.top+t.height,left:t.left+t.width/2-i/2}:n=="top"?{top:t.top-r,left:t.left+t.width/2-i/2}:n=="left"?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getViewportAdjustedDelta=function(n,t,i,r){var f={top:0,left:0},e,u,o,s,h,c;return this.$viewport?(e=this.options.viewport&&this.options.viewport.padding||0,u=this.getPosition(this.$viewport),/right|left/.test(n)?(o=t.top-e-u.scroll,s=t.top+e-u.scroll+r,o<u.top?f.top=u.top-o:s>u.top+u.height&&(f.top=u.top+u.height-s)):(h=t.left-e,c=t.left+e+i,h<u.left?f.left=u.left-h:c>u.right&&(f.left=u.left+u.width-c)),f):f};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title)};t.prototype.getUID=function(n){do n+=~~(Math.random()*1e6);while(document.getElementById(n));return n};t.prototype.tip=function(){if(!this.$tip&&(this.$tip=n(this.options.template),this.$tip.length!=1))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=this;t&&(i=n(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)));t?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){var n=this;clearTimeout(this.timeout);this.hide(function(){n.$element.off("."+n.type).removeData("bs."+n.type);n.$tip&&n.$tip.detach();n.$tip=null;n.$arrow=null;n.$viewport=null})};i=n.fn.tooltip;n.fn.tooltip=r;n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f=typeof i=="object"&&i;(r||!/destroy|hide/.test(i))&&(r||u.data("bs.popover",r=new t(this,f)),typeof i=="string"&&r[i]())})}var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.6";t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i);n.find(".popover-content").children().detach().end()[this.options.html?typeof t=="string"?"html":"append":"text"](t);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||(typeof n.content=="function"?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};i=n.fn.popover;n.fn.popover=r;n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery);+function(n){"use strict";function t(i,r){this.$body=n(document.body);this.$scrollElement=n(i).is(document.body)?n(window):n(i);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",n.proxy(this.process,this));this.refresh();this.process()}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f=typeof i=="object"&&i;r||u.data("bs.scrollspy",r=new t(this,f));typeof i=="string"&&r[i]()})}t.VERSION="3.3.6";t.DEFAULTS={offset:10};t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};t.prototype.refresh=function(){var t=this,i="offset",r=0;this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();n.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop());this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),t=/^#./.test(u)&&n(u);return t&&t.length&&t.is(":visible")&&[[t[i]().top+r,u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var i=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),e=this.options.offset+f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget,n;if(this.scrollHeight!=f&&this.refresh(),i>=e)return u!=(n=r[r.length-1])&&this.activate(n);if(u&&i<t[0])return this.activeTarget=null,this.clear();for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(t[n+1]===undefined||i<t[n+1])&&this.activate(r[n])};t.prototype.activate=function(t){this.activeTarget=t;this.clear();var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate.bs.scrollspy")};t.prototype.clear=function(){n(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=n.fn.scrollspy;n.fn.scrollspy=i;n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=r,this};n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));typeof i=="string"&&r[i]()})}var t=function(t){this.element=n(t)},u,i;t.VERSION="3.3.6";t.TRANSITION_DURATION=150;t.prototype.show=function(){var t=this.element,f=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),u;if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=f.find(".active:last a"),e=n.Event("hide.bs.tab",{relatedTarget:t[0]}),o=n.Event("show.bs.tab",{relatedTarget:r[0]});(r.trigger(e),t.trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(u=n(i),this.activate(t.closest("li"),f),this.activate(u,u.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]});t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}};t.prototype.activate=function(i,r,u){function o(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1);i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0);e?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade");i.parent(".dropdown-menu").length&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0);u&&u()}var f=r.find("> .active"),e=u&&n.support.transition&&(f.length&&f.hasClass("fade")||!!r.find("> .fade").length);f.length&&e?f.one("bsTransitionEnd",o).emulateTransitionEnd(t.TRANSITION_DURATION):o();f.removeClass("in")};u=n.fn.tab;n.fn.tab=r;n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=u,this};i=function(t){t.preventDefault();r.call(n(this),"show")};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f=typeof i=="object"&&i;r||u.data("bs.affix",r=new t(this,f));typeof i=="string"&&r[i]()})}var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$target=n(this.options.target).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=null;this.unpin=null;this.pinnedOffset=null;this.checkPosition()},r;t.VERSION="3.3.6";t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0,target:window};t.prototype.getState=function(n,t,i,r){var u=this.$target.scrollTop(),f=this.$element.offset(),e=this.$target.height();if(i!=null&&this.affixed=="top")return u<i?"top":!1;if(this.affixed=="bottom")return i!=null?u+this.unpin<=f.top?!1:"bottom":u+e<=n-r?!1:"bottom";var o=this.affixed==null,s=o?u:f.top,h=o?e:t;return i!=null&&u<=i?"top":r!=null&&s+h>=n-r?"bottom":!1};t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i,e,o;if(this.$element.is(":visible")){var s=this.$element.height(),r=this.options.offset,f=r.top,u=r.bottom,h=Math.max(n(document).height(),n(document.body).height());if(typeof r!="object"&&(u=f=r),typeof f=="function"&&(f=r.top(this.$element)),typeof u=="function"&&(u=r.bottom(this.$element)),i=this.getState(h,s,f,u),this.affixed!=i){if(this.unpin!=null&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),o=n.Event(e+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=i;this.unpin=i=="bottom"?this.getPinnedOffset():null;this.$element.removeClass(t.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}i=="bottom"&&this.$element.offset({top:h-s-u})}};r=n.fn.affix;n.fn.affix=i;n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=r,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var r=n(this),t=r.data();t.offset=t.offset||{};t.offsetBottom!=null&&(t.offset.bottom=t.offsetBottom);t.offsetTop!=null&&(t.offset.top=t.offsetTop);i.call(r,t)})})}(jQuery),function(n,t){typeof define=="function"&&define.amd?define(["jquery"],function(n){return t(n)}):typeof exports=="object"?module.exports=t(require("jquery")):t(jQuery)}(this,function(n){(function(n){"use strict";function i(t){return n.each([{re:/[\xC0-\xC6]/g,ch:"A"},{re:/[\xE0-\xE6]/g,ch:"a"},{re:/[\xC8-\xCB]/g,ch:"E"},{re:/[\xE8-\xEB]/g,ch:"e"},{re:/[\xCC-\xCF]/g,ch:"I"},{re:/[\xEC-\xEF]/g,ch:"i"},{re:/[\xD2-\xD6]/g,ch:"O"},{re:/[\xF2-\xF6]/g,ch:"o"},{re:/[\xD9-\xDC]/g,ch:"U"},{re:/[\xF9-\xFC]/g,ch:"u"},{re:/[\xC7-\xE7]/g,ch:"c"},{re:/[\xD1]/g,ch:"N"},{re:/[\xF1]/g,ch:"n"}],function(){t=t.replace(this.re,this.ch)}),t}function r(n){var i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},r="(?:"+Object.keys(i).join("|")+")",u=new RegExp(r),f=new RegExp(r,"g"),t=n==null?"":""+n;return u.test(t)?t.replace(f,function(n){return i[n]}):t}function u(i,r){var e=arguments,u=i,s=r,f,o;return[].shift.apply(e),o=this.each(function(){var o=n(this),i,r,c,h;if(o.is("select")){if(i=o.data("selectpicker"),r=typeof u=="object"&&u,i){if(r)for(h in r)r.hasOwnProperty(h)&&(i.options[h]=r[h])}else c=n.extend({},t.DEFAULTS,n.fn.selectpicker.defaults||{},o.data(),r),c.template=n.extend({},t.DEFAULTS.template,n.fn.selectpicker.defaults?n.fn.selectpicker.defaults.template:{},o.data().template,r.template),o.data("selectpicker",i=new t(this,c,s));typeof u=="string"&&(f=i[u]instanceof Function?i[u].apply(i,e):i.options[u])}}),typeof f!="undefined"?f:o}var t,f;String.prototype.includes||function(){var i={}.toString,n=function(){try{var n={},t=Object.defineProperty,i=t(n,n,n)&&t}catch(r){}return i}(),r="".indexOf,t=function(n){var u,s;if(this==null)throw new TypeError;if(u=String(this),n&&i.call(n)=="[object RegExp]")throw new TypeError;var f=u.length,e=String(n),h=e.length,o=arguments.length>1?arguments[1]:undefined,t=o?Number(o):0;return(t!=t&&(t=0),s=Math.min(Math.max(t,0),f),h+s>f)?!1:r.call(u,e,t)!=-1};n?n(String.prototype,"includes",{value:t,configurable:!0,writable:!0}):String.prototype.includes=t}();String.prototype.startsWith||function(){var n=function(){try{var n={},t=Object.defineProperty,i=t(n,n,n)&&t}catch(r){}return i}(),i={}.toString,t=function(n){var u,f,r;if(this==null)throw new TypeError;if(u=String(this),n&&i.call(n)=="[object RegExp]")throw new TypeError;var e=u.length,o=String(n),s=o.length,h=arguments.length>1?arguments[1]:undefined,t=h?Number(h):0;if(t!=t&&(t=0),f=Math.min(Math.max(t,0),e),s+f>e)return!1;for(r=-1;++r<s;)if(u.charCodeAt(f+r)!=o.charCodeAt(r))return!1;return!0};n?n(String.prototype,"startsWith",{value:t,configurable:!0,writable:!0}):String.prototype.startsWith=t}();Object.keys||(Object.keys=function(n,t,i){i=[];for(t in n)i.hasOwnProperty.call(n,t)&&i.push(t);return i});n.fn.triggerNative=function(n){var i=this[0],t;i.dispatchEvent?(typeof Event=="function"?t=new Event(n,{bubbles:!0}):(t=document.createEvent("Event"),t.initEvent(n,!0,!1)),i.dispatchEvent(t)):(i.fireEvent&&(t=document.createEventObject(),t.eventType=n,i.fireEvent("on"+n,t)),this.trigger(n))};n.expr[":"].icontains=function(t,i,r){var u=n(t),f=(u.data("tokens")||u.text()).toUpperCase();return f.includes(r[3].toUpperCase())};n.expr[":"].ibegins=function(t,i,r){var u=n(t),f=(u.data("tokens")||u.text()).toUpperCase();return f.startsWith(r[3].toUpperCase())};n.expr[":"].aicontains=function(t,i,r){var u=n(t),f=(u.data("tokens")||u.data("normalizedText")||u.text()).toUpperCase();return f.includes(r[3].toUpperCase())};n.expr[":"].aibegins=function(t,i,r){var u=n(t),f=(u.data("tokens")||u.data("normalizedText")||u.text()).toUpperCase();return f.startsWith(r[3].toUpperCase())};t=function(i,r,u){u&&(u.stopPropagation(),u.preventDefault());this.$element=n(i);this.$newElement=null;this.$button=null;this.$menu=null;this.$lis=null;this.options=r;this.options.title===null&&(this.options.title=this.$element.attr("title"));this.val=t.prototype.val;this.render=t.prototype.render;this.refresh=t.prototype.refresh;this.setStyle=t.prototype.setStyle;this.selectAll=t.prototype.selectAll;this.deselectAll=t.prototype.deselectAll;this.destroy=t.prototype.destroy;this.remove=t.prototype.remove;this.show=t.prototype.show;this.hide=t.prototype.hide;this.init()};t.VERSION="1.9.4";t.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(n){return n==1?"{0} item selected":"{0} items selected"},maxOptionsText:function(n,t){return[n==1?"Limit reached ({n} item max)":"Limit reached ({n} items max)",t==1?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:"btn-default",size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:null,liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:"glyphicon",tickIcon:"glyphicon-ok",template:{caret:'<span class="caret"><\/span>'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1};t.prototype={constructor:t,init:function(){var t=this,i=this.$element.attr("id");this.liObj={};this.multiple=this.$element.prop("multiple");this.autofocus=this.$element.prop("autofocus");this.$newElement=this.createView();this.$element.after(this.$newElement).appendTo(this.$newElement);this.$button=this.$newElement.children("button");this.$menu=this.$newElement.children(".dropdown-menu");this.$menuInner=this.$menu.children(".inner");this.$searchbox=this.$menu.find("input");this.options.dropdownAlignRight&&this.$menu.addClass("dropdown-menu-right");typeof i!="undefined"&&(this.$button.attr("data-id",i),n('label[for="'+i+'"]').click(function(n){n.preventDefault();t.$button.focus()}));this.checkDisabled();this.clickListener();this.options.liveSearch&&this.liveSearchListener();this.render();this.setStyle();this.setWidth();this.options.container&&this.selectPosition();this.$menu.data("this",this);this.$newElement.data("this",this);this.options.mobile&&this.mobile();this.$newElement.on({"hide.bs.dropdown":function(n){t.$element.trigger("hide.bs.select",n)},"hidden.bs.dropdown":function(n){t.$element.trigger("hidden.bs.select",n)},"show.bs.dropdown":function(n){t.$element.trigger("show.bs.select",n)},"shown.bs.dropdown":function(n){t.$element.trigger("shown.bs.select",n)}});if(t.$element[0].hasAttribute("required"))this.$element.on("invalid",function(){t.$button.addClass("bs-invalid").focus();t.$element.on({"focus.bs.select":function(){t.$button.focus();t.$element.off("focus.bs.select")},"shown.bs.select":function(){t.$element.val(t.$element.val()).off("shown.bs.select")},"rendered.bs.select":function(){this.validity.valid&&t.$button.removeClass("bs-invalid");t.$element.off("rendered.bs.select")}})});setTimeout(function(){t.$element.trigger("loaded.bs.select")})},createDropdown:function(){var t=this.multiple?" show-tick":"",i=this.$element.parent().hasClass("input-group")?" input-group-btn":"",u=this.autofocus?" autofocus":"",f=this.options.header?'<div class="popover-title"><button type="button" class="close" aria-hidden="true">&times;<\/button>'+this.options.header+"<\/div>":"",e=this.options.liveSearch?'<div class="bs-searchbox"><input type="text" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+r(this.options.liveSearchPlaceholder)+'"')+"><\/div>":"",o=this.multiple&&this.options.actionsBox?'<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn btn-default">'+this.options.selectAllText+'<\/button><button type="button" class="actions-btn bs-deselect-all btn btn-default">'+this.options.deselectAllText+"<\/button><\/div><\/div>":"",s=this.multiple&&this.options.doneButton?'<div class="bs-donebutton"><div class="btn-group btn-block"><button type="button" class="btn btn-sm btn-default">'+this.options.doneButtonText+"<\/button><\/div><\/div>":"",h='<div class="btn-group bootstrap-select'+t+i+'"><button type="button" class="'+this.options.styleBase+' dropdown-toggle" data-toggle="dropdown"'+u+'><span class="filter-option pull-left"><\/span>&nbsp;<span class="bs-caret">'+this.options.template.caret+'<\/span><\/button><div class="dropdown-menu open">'+f+e+o+'<ul class="dropdown-menu inner" role="menu"><\/ul>'+s+"<\/div><\/div>";return n(h)},createView:function(){var n=this.createDropdown(),t=this.createLi();return n.find("ul")[0].innerHTML=t,n},reloadLi:function(){this.destroyLi();var n=this.createLi();this.$menuInner[0].innerHTML=n},destroyLi:function(){this.$menu.find("li").remove()},createLi:function(){var u=this,t=[],o=0,s=document.createElement("option"),f=-1,e=function(n,t,i,r){return"<li"+(typeof i!="undefined"&""!==i?' class="'+i+'"':"")+(typeof t!="undefined"&null!==t?' data-original-index="'+t+'"':"")+(typeof r!="undefined"&null!==r?'data-optgroup="'+r+'"':"")+">"+n+"<\/li>"},c=function(n,t,f,e){return'<a tabindex="0"'+(typeof t!="undefined"?' class="'+t+'"':"")+(typeof f!="undefined"?' style="'+f+'"':"")+(u.options.liveSearchNormalize?' data-normalized-text="'+i(r(n))+'"':"")+(typeof e!="undefined"||e!==null?' data-tokens="'+e+'"':"")+">"+n+'<span class="'+u.options.iconBase+" "+u.options.tickIcon+' check-mark"><\/span><\/a>'},h;return this.options.title&&!this.multiple&&(f--,this.$element.find(".bs-title-option").length||(h=this.$element[0],s.className="bs-title-option",s.appendChild(document.createTextNode(this.options.title)),s.value="",h.insertBefore(s,h.firstChild),n(h.options[h.selectedIndex]).attr("selected")===undefined&&(s.selected=!0))),this.$element.find("option").each(function(i){var r=n(this),w;if(f++,!r.hasClass("bs-title-option")){var l=this.className||"",a=this.style.cssText,s=r.data("content")?r.data("content"):r.html(),v=r.data("tokens")?r.data("tokens"):null,k=typeof r.data("subtext")!="undefined"?'<small class="text-muted">'+r.data("subtext")+"<\/small>":"",h=typeof r.data("icon")!="undefined"?'<span class="'+u.options.iconBase+" "+r.data("icon")+'"><\/span> ':"",y=this.parentNode.tagName==="OPTGROUP",p=this.disabled||y&&this.parentNode.disabled;if(h!==""&&p&&(h="<span>"+h+"<\/span>"),u.options.hideDisabled&&p&&!y){f--;return}if(r.data("content")||(s=h+'<span class="text">'+s+k+"<\/span>"),y&&r.data("divider")!==!0){if(w=" "+this.parentNode.className||"",r.index()===0){o+=1;var b=this.parentNode.label,d=typeof r.parent().data("subtext")!="undefined"?'<small class="text-muted">'+r.parent().data("subtext")+"<\/small>":"",g=r.parent().data("icon")?'<span class="'+u.options.iconBase+" "+r.parent().data("icon")+'"><\/span> ':"";b=g+'<span class="text">'+b+d+"<\/span>";i!==0&&t.length>0&&(f++,t.push(e("",null,"divider",o+"div")));f++;t.push(e(b,null,"dropdown-header"+w,o))}if(u.options.hideDisabled&&p){f--;return}t.push(e(c(s,"opt "+l+w,a,v),i,"",o))}else r.data("divider")===!0?t.push(e("",i,"divider")):r.data("hidden")===!0?t.push(e(c(s,l,a,v),i,"hidden is-hidden")):(this.previousElementSibling&&this.previousElementSibling.tagName==="OPTGROUP"&&(f++,t.push(e("",null,"divider",o+"div"))),t.push(e(c(s,l,a,v),i)));u.liObj[i]=f}}),this.multiple||this.$element.find("option:selected").length!==0||this.options.title||this.$element.find("option").eq(0).prop("selected",!0).attr("selected","selected"),t.join("")},findLis:function(){return this.$lis==null&&(this.$lis=this.$menu.find("li")),this.$lis},render:function(t){var i=this,o,r,u,f,e,s;t!==!1&&this.$element.find("option").each(function(n){var t=i.findLis().eq(i.liObj[n]);i.setDisabled(n,this.disabled||this.parentNode.tagName==="OPTGROUP"&&this.parentNode.disabled,t);i.setSelected(n,this.selected,t)});this.tabIndex();r=this.$element.find("option").map(function(){if(this.selected){if(i.options.hideDisabled&&(this.disabled||this.parentNode.tagName==="OPTGROUP"&&this.parentNode.disabled))return;var t=n(this),u=t.data("icon")&&i.options.showIcon?'<i class="'+i.options.iconBase+" "+t.data("icon")+'"><\/i> ':"",r;return r=i.options.showSubtext&&t.data("subtext")&&!i.multiple?' <small class="text-muted">'+t.data("subtext")+"<\/small>":"",typeof t.attr("title")!="undefined"?t.attr("title"):t.data("content")&&i.options.showContent?t.data("content"):u+t.html()+r}}).toArray();u=this.multiple?r.join(this.options.multipleSeparator):r[0];this.multiple&&this.options.selectedTextFormat.indexOf("count")>-1&&(f=this.options.selectedTextFormat.split(">"),(f.length>1&&r.length>f[1]||f.length==1&&r.length>=2)&&(o=this.options.hideDisabled?", [disabled]":"",e=this.$element.find("option").not('[data-divider="true"], [data-hidden="true"]'+o).length,s=typeof this.options.countSelectedText=="function"?this.options.countSelectedText(r.length,e):this.options.countSelectedText,u=s.replace("{0}",r.length.toString()).replace("{1}",e.toString())));this.options.title==undefined&&(this.options.title=this.$element.attr("title"));this.options.selectedTextFormat=="static"&&(u=this.options.title);u||(u=typeof this.options.title!="undefined"?this.options.title:this.options.noneSelectedText);this.$button.attr("title",n.trim(u.replace(/<[^>]*>?/g,"")));this.$button.children(".filter-option").html(u);this.$element.trigger("rendered.bs.select")},setStyle:function(n,t){this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,""));var i=n?n:this.options.style;t=="add"?this.$button.addClass(i):t=="remove"?this.$button.removeClass(i):(this.$button.removeClass(this.options.style),this.$button.addClass(i))},liHeight:function(t){var y;if(t||this.options.size!==!1&&!this.sizeInfo){var e=document.createElement("div"),r=document.createElement("div"),o=document.createElement("ul"),l=document.createElement("li"),p=document.createElement("li"),a=document.createElement("a"),v=document.createElement("span"),s=this.options.header&&this.$menu.find(".popover-title").length>0?this.$menu.find(".popover-title")[0].cloneNode(!0):null,u=this.options.liveSearch?document.createElement("div"):null,h=this.options.actionsBox&&this.multiple&&this.$menu.find(".bs-actionsbox").length>0?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,c=this.options.doneButton&&this.multiple&&this.$menu.find(".bs-donebutton").length>0?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null;v.className="text";e.className=this.$menu[0].parentNode.className+" open";r.className="dropdown-menu open";o.className="dropdown-menu inner";l.className="divider";v.appendChild(document.createTextNode("Inner text"));a.appendChild(v);p.appendChild(a);o.appendChild(p);o.appendChild(l);s&&r.appendChild(s);u&&(y=document.createElement("span"),u.className="bs-searchbox",y.className="form-control",u.appendChild(y),r.appendChild(u));h&&r.appendChild(h);r.appendChild(o);c&&r.appendChild(c);e.appendChild(r);document.body.appendChild(e);var b=a.offsetHeight,k=s?s.offsetHeight:0,d=u?u.offsetHeight:0,g=h?h.offsetHeight:0,nt=c?c.offsetHeight:0,tt=n(l).outerHeight(!0),i=typeof getComputedStyle=="function"?getComputedStyle(r):!1,f=i?null:n(r),w=parseInt(i?i.paddingTop:f.css("paddingTop"))+parseInt(i?i.paddingBottom:f.css("paddingBottom"))+parseInt(i?i.borderTopWidth:f.css("borderTopWidth"))+parseInt(i?i.borderBottomWidth:f.css("borderBottomWidth")),it=w+parseInt(i?i.marginTop:f.css("marginTop"))+parseInt(i?i.marginBottom:f.css("marginBottom"))+2;document.body.removeChild(e);this.sizeInfo={liHeight:b,headerHeight:k,searchHeight:d,actionsHeight:g,doneButtonHeight:nt,dividerHeight:tt,menuPadding:w,menuExtras:it}}},setSize:function(){var h,d,g;if(this.findLis(),this.liHeight(),this.options.header&&this.$menu.css("padding-top",0),this.options.size!==!1){var i=this,t=this.$menu,p=this.$menuInner,c=n(window),nt=this.$newElement[0].offsetHeight,w=this.sizeInfo.liHeight,l=this.sizeInfo.headerHeight,a=this.sizeInfo.searchHeight,v=this.sizeInfo.actionsHeight,y=this.sizeInfo.doneButtonHeight,tt=this.sizeInfo.dividerHeight,o=this.sizeInfo.menuPadding,f=this.sizeInfo.menuExtras,b=this.options.hideDisabled?".disabled":"",r,u,e,s,k=function(){e=i.$newElement.offset().top-c.scrollTop();s=c.height()-e-nt};if(k(),this.options.size==="auto"){h=function(){var h,b=function(t,i){return function(r){return i?r.classList?r.classList.contains(t):n(r).hasClass(t):!(r.classList?r.classList.contains(t):n(r).hasClass(t))}},d=i.$menuInner[0].getElementsByTagName("li"),c=Array.prototype.filter?Array.prototype.filter.call(d,b("hidden",!1)):i.$lis.not(".hidden"),g=Array.prototype.filter?Array.prototype.filter.call(c,b("dropdown-header",!0)):c.filter(".dropdown-header");k();r=s-f;i.options.container?(t.data("height")||t.data("height",t.height()),u=t.data("height")):u=t.height();i.options.dropupAuto&&i.$newElement.toggleClass("dropup",e>s&&r-f<u);i.$newElement.hasClass("dropup")&&(r=e-f);h=c.length+g.length>3?w*3+f-2:0;t.css({"max-height":r+"px",overflow:"hidden","min-height":h+l+a+v+y+"px"});p.css({"max-height":r-l-a-v-y-o+"px","overflow-y":"auto","min-height":Math.max(h-o,0)+"px"})};h();this.$searchbox.off("input.getSize propertychange.getSize").on("input.getSize propertychange.getSize",h);c.off("resize.getSize scroll.getSize").on("resize.getSize scroll.getSize",h)}else this.options.size&&this.options.size!="auto"&&this.$lis.not(b).length>this.options.size&&(d=this.$lis.not(".divider").not(b).children().slice(0,this.options.size).last().parent().index(),g=this.$lis.slice(0,d+1).filter(".divider").length,r=w*this.options.size+g*tt+o,i.options.container?(t.data("height")||t.data("height",t.height()),u=t.data("height")):u=t.height(),i.options.dropupAuto&&this.$newElement.toggleClass("dropup",e>s&&r-f<u),t.css({"max-height":r+l+a+v+y+"px",overflow:"hidden","min-height":""}),p.css({"max-height":r-o+"px","overflow-y":"auto","min-height":""}))}},setWidth:function(){if(this.options.width==="auto"){this.$menu.css("min-width","0");var n=this.$menu.parent().clone().appendTo("body"),t=this.options.container?this.$newElement.clone().appendTo("body"):n,i=n.children(".dropdown-menu").outerWidth(),r=t.css("width","auto").children("button").outerWidth();n.remove();t.remove();this.$newElement.css("width",Math.max(i,r)+"px")}else this.options.width==="fit"?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width",""));this.$newElement.hasClass("fit-width")&&this.options.width!=="fit"&&this.$newElement.removeClass("fit-width")},selectPosition:function(){this.$bsContainer=n('<div class="bs-container" />');var t=this,i,r,u=function(n){t.$bsContainer.addClass(n.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass("dropup",n.hasClass("dropup"));i=n.offset();r=n.hasClass("dropup")?0:n[0].offsetHeight;t.$bsContainer.css({top:i.top+r,left:i.left,width:n[0].offsetWidth})};this.$button.on("click",function(){var i=n(this);t.isDisabled()||(u(t.$newElement),t.$bsContainer.appendTo(t.options.container).toggleClass("open",!i.hasClass("open")).append(t.$menu))});n(window).on("resize scroll",function(){u(t.$newElement)});this.$element.on("hide.bs.select",function(){t.$menu.data("height",t.$menu.height());t.$bsContainer.detach()})},setSelected:function(n,t,i){i||(i=this.findLis().eq(this.liObj[n]));i.toggleClass("selected",t)},setDisabled:function(n,t,i){i||(i=this.findLis().eq(this.liObj[n]));t?i.addClass("disabled").children("a").attr("href","#").attr("tabindex",-1):i.removeClass("disabled").children("a").removeAttr("href").attr("tabindex",0)},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){var n=this;this.isDisabled()?(this.$newElement.addClass("disabled"),this.$button.addClass("disabled").attr("tabindex",-1)):(this.$button.hasClass("disabled")&&(this.$newElement.removeClass("disabled"),this.$button.removeClass("disabled")),this.$button.attr("tabindex")!=-1||this.$element.data("tabindex")||this.$button.removeAttr("tabindex"));this.$button.click(function(){return!n.isDisabled()})},tabIndex:function(){this.$element.data("tabindex")!==this.$element.attr("tabindex")&&this.$element.attr("tabindex")!==-98&&this.$element.attr("tabindex")!=="-98"&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex")));this.$element.attr("tabindex",-98)},clickListener:function(){var t=this,i=n(document);this.$newElement.on("touchstart.dropdown",".dropdown-menu",function(n){n.stopPropagation()});i.data("spaceSelect",!1);this.$button.on("keyup",function(n){/(32)/.test(n.keyCode.toString(10))&&i.data("spaceSelect")&&(n.preventDefault(),i.data("spaceSelect",!1))});this.$button.on("click",function(){t.setSize();t.$element.on("shown.bs.select",function(){var i,n;if(t.options.liveSearch||t.multiple){if(!t.multiple){if(i=t.liObj[t.$element[0].selectedIndex],typeof i!="number"||t.options.size===!1)return;n=t.$lis.eq(i)[0].offsetTop-t.$menuInner[0].offsetTop;n=n-t.$menuInner[0].offsetHeight/2+t.sizeInfo.liHeight/2;t.$menuInner[0].scrollTop=n}}else t.$menuInner.find(".selected a").focus()})});this.$menuInner.on("click","li a",function(i){var s=n(this),e=s.parent().data("originalIndex"),k=t.$element.val(),d=t.$element.prop("selectedIndex"),v,y,b;if(t.multiple&&i.stopPropagation(),i.preventDefault(),!t.isDisabled()&&!s.parent().hasClass("disabled")){var h=t.$element.find("option"),f=h.eq(e),l=f.prop("selected"),a=f.parent("optgroup"),r=t.options.maxOptions,u=a.data("maxOptions")||!1;if(t.multiple){if(f.prop("selected",!l),t.setSelected(e,!l),s.blur(),(r!==!1||u!==!1)&&(v=r<h.filter(":selected").length,y=u<a.find("option:selected").length,r&&v||u&&y))if(r&&r==1)h.prop("selected",!1),f.prop("selected",!0),t.$menuInner.find(".selected").removeClass("selected"),t.setSelected(e,!0);else if(u&&u==1)a.find("option:selected").prop("selected",!1),f.prop("selected",!0),b=s.parent().data("optgroup"),t.$menuInner.find('[data-optgroup="'+b+'"]').removeClass("selected"),t.setSelected(e,!0);else{var o=typeof t.options.maxOptionsText=="function"?t.options.maxOptionsText(r,u):t.options.maxOptionsText,p=o[0].replace("{n}",r),w=o[1].replace("{n}",u),c=n('<div class="notify"><\/div>');o[2]&&(p=p.replace("{var}",o[2][r>1?0:1]),w=w.replace("{var}",o[2][u>1?0:1]));f.prop("selected",!1);t.$menu.append(c);r&&v&&(c.append(n("<div>"+p+"<\/div>")),t.$element.trigger("maxReached.bs.select"));u&&y&&(c.append(n("<div>"+w+"<\/div>")),t.$element.trigger("maxReachedGrp.bs.select"));setTimeout(function(){t.setSelected(e,!1)},10);c.delay(750).fadeOut(300,function(){n(this).remove()})}}else h.prop("selected",!1),f.prop("selected",!0),t.$menuInner.find(".selected").removeClass("selected"),t.setSelected(e,!0);t.multiple?t.options.liveSearch&&t.$searchbox.focus():t.$button.focus();(k!=t.$element.val()&&t.multiple||d!=t.$element.prop("selectedIndex")&&!t.multiple)&&(t.$element.triggerNative("change"),t.$element.trigger("changed.bs.select",[e,f.prop("selected"),l]))}});this.$menu.on("click","li.disabled a, .popover-title, .popover-title :not(.close)",function(i){i.currentTarget==this&&(i.preventDefault(),i.stopPropagation(),t.options.liveSearch&&!n(i.target).hasClass("close")?t.$searchbox.focus():t.$button.focus())});this.$menuInner.on("click",".divider, .dropdown-header",function(n){n.preventDefault();n.stopPropagation();t.options.liveSearch?t.$searchbox.focus():t.$button.focus()});this.$menu.on("click",".popover-title .close",function(){t.$button.click()});this.$searchbox.on("click",function(n){n.stopPropagation()});this.$menu.on("click",".actions-btn",function(i){t.options.liveSearch?t.$searchbox.focus():t.$button.focus();i.preventDefault();i.stopPropagation();n(this).hasClass("bs-select-all")?t.selectAll():t.deselectAll();t.$element.triggerNative("change")});this.$element.change(function(){t.render(!1)})},liveSearchListener:function(){var t=this,u=n('<li class="no-results"><\/li>');this.$button.on("click.dropdown.data-api touchstart.dropdown.data-api",function(){t.$menuInner.find(".active").removeClass("active");!t.$searchbox.val()||(t.$searchbox.val(""),t.$lis.not(".is-hidden").removeClass("hidden"),!u.parent().length||u.remove());t.multiple||t.$menuInner.find(".selected").addClass("active");setTimeout(function(){t.$searchbox.focus()},10)});this.$searchbox.on("click.dropdown.data-api focus.dropdown.data-api touchend.dropdown.data-api",function(n){n.stopPropagation()});this.$searchbox.on("input propertychange",function(){var f,e;t.$searchbox.val()?(f=t.$lis.not(".is-hidden").removeClass("hidden").children("a"),f=t.options.liveSearchNormalize?f.not(":a"+t._searchStyle()+'("'+i(t.$searchbox.val())+'")'):f.not(":"+t._searchStyle()+'("'+t.$searchbox.val()+'")'),f.parent().addClass("hidden"),t.$lis.filter(".dropdown-header").each(function(){var i=n(this),r=i.data("optgroup");t.$lis.filter("[data-optgroup="+r+"]").not(i).not(".hidden").length===0&&(i.addClass("hidden"),t.$lis.filter("[data-optgroup="+r+"div]").addClass("hidden"))}),e=t.$lis.not(".hidden"),e.each(function(t){var i=n(this);i.hasClass("divider")&&(i.index()===e.first().index()||i.index()===e.last().index()||e.eq(t+1).hasClass("divider"))&&i.addClass("hidden")}),t.$lis.not(".hidden, .no-results").length?!u.parent().length||u.remove():(!u.parent().length||u.remove(),u.html(t.options.noneResultsText.replace("{0}",'"'+r(t.$searchbox.val())+'"')).show(),t.$menuInner.append(u))):(t.$lis.not(".is-hidden").removeClass("hidden"),!u.parent().length||u.remove());t.$lis.filter(".active").removeClass("active");t.$searchbox.val()&&t.$lis.not(".hidden, .divider, .dropdown-header").eq(0).addClass("active").children("a").focus();n(this).focus()})},_searchStyle:function(){return{begins:"ibegins",startsWith:"ibegins"}[this.options.liveSearchStyle]||"icontains"},val:function(n){return typeof n!="undefined"?(this.$element.val(n),this.render(),this.$element):this.$element.val()},changeAll:function(t){var i,f;typeof t=="undefined"&&(t=!0);this.findLis();var e=this.$element.find("option"),u=this.$lis.not(".divider, .dropdown-header, .disabled, .hidden").toggleClass("selected",t),o=u.length,r=[];for(i=0;i<o;i++)f=u[i].getAttribute("data-original-index"),r[r.length]=e.eq(f)[0];n(r).prop("selected",t);this.render(!1)},selectAll:function(){return this.changeAll(!0)},deselectAll:function(){return this.changeAll(!1)},keydown:function(t){var e=n(this),l=e.is("input")?e.parent().parent():e.parent(),u,r=l.data("this"),f,h,a,v,p,w,k,s,c=":not(.disabled, .hidden, .dropdown-header, .divider)",b={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},y,o,g,d;(r.options.liveSearch&&(l=e.parent().parent()),r.options.container&&(l=r.$menu),u=n("[role=menu] li",l),s=r.$newElement.hasClass("open"),!s&&(t.keyCode>=48&&t.keyCode<=57||t.keyCode>=96&&t.keyCode<=105||t.keyCode>=65&&t.keyCode<=90)&&(r.options.container?r.$button.trigger("click"):(r.setSize(),r.$menu.parent().addClass("open"),s=!0),r.$searchbox.focus()),r.options.liveSearch&&(/(^9$|27)/.test(t.keyCode.toString(10))&&s&&r.$menu.find(".active").length===0&&(t.preventDefault(),r.$menu.parent().removeClass("open"),r.options.container&&r.$newElement.removeClass("open"),r.$button.focus()),u=n("[role=menu] li"+c,l),e.val()||/(38|40)/.test(t.keyCode.toString(10))||u.filter(".active").length===0&&(u=r.$menuInner.find("li"),u=r.options.liveSearchNormalize?u.filter(":a"+r._searchStyle()+"("+i(b[t.keyCode])+")"):u.filter(":"+r._searchStyle()+"("+b[t.keyCode]+")"))),u.length)&&(/(38|40)/.test(t.keyCode.toString(10))?(f=u.index(u.find("a").filter(":focus").parent()),a=u.filter(c).first().index(),v=u.filter(c).last().index(),h=u.eq(f).nextAll(c).eq(0).index(),p=u.eq(f).prevAll(c).eq(0).index(),w=u.eq(h).prevAll(c).eq(0).index(),r.options.liveSearch&&(u.each(function(t){n(this).hasClass("disabled")||n(this).data("index",t)}),f=u.index(u.filter(".active")),a=u.first().data("index"),v=u.last().data("index"),h=u.eq(f).nextAll().eq(0).data("index"),p=u.eq(f).prevAll().eq(0).data("index"),w=u.eq(h).prevAll().eq(0).data("index")),k=e.data("prevIndex"),t.keyCode==38?(r.options.liveSearch&&f--,f!=w&&f>p&&(f=p),f<a&&(f=a),f==k&&(f=v)):t.keyCode==40&&(r.options.liveSearch&&f++,f==-1&&(f=0),f!=w&&f<h&&(f=h),f>v&&(f=v),f==k&&(f=a)),e.data("prevIndex",f),r.options.liveSearch?(t.preventDefault(),e.hasClass("dropdown-toggle")||(u.removeClass("active").eq(f).addClass("active").children("a").focus(),e.focus())):u.eq(f).children("a").focus()):e.is("input")||(y=[],u.each(function(){n(this).hasClass("disabled")||n.trim(n(this).children("a").text().toLowerCase()).substring(0,1)==b[t.keyCode]&&y.push(n(this).index())}),o=n(document).data("keycount"),o++,n(document).data("keycount",o),g=n.trim(n(":focus").text().toLowerCase()).substring(0,1),g!=b[t.keyCode]?(o=1,n(document).data("keycount",o)):o>=y.length&&(n(document).data("keycount",0),o>y.length&&(o=1)),u.eq(y[o-1]).children("a").focus()),(/(13|32)/.test(t.keyCode.toString(10))||/(^9$)/.test(t.keyCode.toString(10))&&r.options.selectOnTab)&&s&&(/(32)/.test(t.keyCode.toString(10))||t.preventDefault(),r.options.liveSearch?/(32)/.test(t.keyCode.toString(10))||(r.$menuInner.find(".active a").click(),e.focus()):(d=n(":focus"),d.click(),d.focus(),t.preventDefault(),n(document).data("spaceSelect",!0)),n(document).data("keycount",0)),(/(^9$|27)/.test(t.keyCode.toString(10))&&s&&(r.multiple||r.options.liveSearch)||/(27)/.test(t.keyCode.toString(10))&&!s)&&(r.$menu.parent().removeClass("open"),r.options.container&&r.$newElement.removeClass("open"),r.$button.focus()))},mobile:function(){this.$element.addClass("mobile-device")},refresh:function(){this.$lis=null;this.liObj={};this.reloadLi();this.render();this.checkDisabled();this.liHeight(!0);this.setStyle();this.setWidth();this.$lis&&this.$searchbox.trigger("propertychange");this.$element.trigger("refreshed.bs.select")},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove();this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove();this.$bsContainer?this.$bsContainer.remove():this.$menu.remove();this.$element.off(".bs.select").removeData("selectpicker").removeClass("bs-select-hidden selectpicker")}};f=n.fn.selectpicker;n.fn.selectpicker=u;n.fn.selectpicker.Constructor=t;n.fn.selectpicker.noConflict=function(){return n.fn.selectpicker=f,this};n(document).data("keycount",0).on("keydown.bs.select",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="menu"], .bs-searchbox input',t.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="menu"], .bs-searchbox input',function(n){n.stopPropagation()});n(window).on("load.bs.select.data-api",function(){n(".selectpicker").each(function(){var t=n(this);u.call(t,t.data())})})})(n)}),function(n){"use strict";var i=function(t,i){return t===null||t===undefined||t.length===0||i&&n.trim(t)===""},t={timeout:3e5,data:{},exist:function(n){return!!t.data[n]&&(new Date).getTime()-t.data[n]<t.timeout},set:function(n){delete t.data[n];t.data[n]=(new Date).getTime()}},r=function(t,i){var r=this;r.$element=n(t);r.init(i);r.listen()};r.prototype={constructor:r,init:function(r){var u=this,f=u.$element,e;n.each(r,function(n,t){u[n]=t});e=u.enableCache;i(u.addCss)||f.hasClass(u.addCss)||f.addClass(u.addCss);u.enableCache=e===!0||e==="true"||parseInt(e)===1;u.$pane=f.find(".tab-pane.active");u.$content=f.find(".tab-content");u.$tabs=f.find(".nav-tabs");u.isVertical=f.hasClass("tabs-left")||f.hasClass("tabs-right");u.isVerticalSide=u.isVertical&&f.hasClass("tab-sideways");u.isVertical&&u.$content.css("min-height",u.$tabs.outerHeight()+1+"px");t.timeout=u.cacheTimeout},setTitle:function(t){var r=this,u=n.trim(t.text()),f=r.isVertical,e=i(t.data("maxTitleLength"))?r.maxTitleLength:t.data("maxTitleLength");f&&u.length>e-2&&i(t.attr("title"))&&t.attr("title",u)},listen:function(){var r=this,u=r.$element;u.find(".nav-tabs li.disabled").each(function(){n(this).find('[data-toggle="tab"]').removeAttr("data-toggle")});u.find('.nav-tabs li [data-toggle="dropdown"]').each(function(){r.setTitle(n(this))});u.find('.nav-tabs li [data-toggle="tab"]').each(function(){var u=n(this),f=u.closest("li");f.removeAttr("data-toggle");r.setTitle(u);u.on("click",function(e){if(f.hasClass("disabled")){e.preventDefault();return}var s=n(this).attr("data-url"),o=this.hash,y=s+o,p;if(i(s)||r.enableCache&&t.exist(y)){u.trigger("tabsX.click");return}e.preventDefault();var w=n(o),h=n(this),c=h,l=n(this).attr("data-loading-class")||"kv-tab-loading",b=h.closest(".dropdown"),a=r.successCallback[o]||null,v=r.errorCallback[o]||null;i(b.attr("class"))||(c=b.find(".dropdown-toggle"));p=n.extend({type:"post",dataType:"json",url:s,beforeSend:function(n,t){w.html("<br><br><br>");c.removeClass(l).addClass(l);u.trigger("tabsX.beforeSend",[n,t])},success:function(n,i,f){setTimeout(function(){w.html(n);h.tab("show");c.removeClass(l);r.enableCache&&t.set(y);a&&typeof a=="function"&&a(n,i,f);u.trigger("tabsX.success",[n,i,f])},300)},error:function(n,t,i){v&&typeof v=="function"&&v(n,t,i);u.trigger("tabsX.error",[n,t,i])},complete:function(n,t){u.trigger("tabsX.click",[n,t])}},r.ajaxSettings);n.ajax(p)})})}};n.fn.tabsX=function(t){var i=Array.apply(null,arguments);return i.shift(),this.each(function(){var f=n(this),u=f.data("tabsX"),e=typeof t=="object"&&t;u||(u=new r(this,n.extend({},n.fn.tabsX.defaults,e,n(this).data())),f.data("tabsX",u));typeof t=="string"&&u[t].apply(u,i)})};n.fn.tabsX.Constructor=r;n.fn.tabsX.defaults={enableCache:!0,cacheTimeout:3e5,maxTitleLength:9,ajaxSettings:{},successCallback:{},errorCallback:{},addCss:"tabs-krajee"};n(document).on("ready",function(){n(".tabs-x").tabsX({})})}(window.jQuery),function(n){n.fn.bootpag=function(t){function f(t,f){var l;f=parseInt(f,10);var o,e=0==i.maxVisible?1:i.maxVisible,h=1==i.maxVisible?0:1,c=Math.floor((f-1)/e)*e,s=t.find("li");i.page=f=0>f?0:f>i.total?i.total:f;s.removeClass(i.activeClass);o=1>f-1?1:i.leaps&&f-1>=i.maxVisible?Math.floor((f-1)/e)*e:f-1;i.firstLastUse&&s.first().toggleClass(i.disabledClass,1===f);e=s.first();i.firstLastUse&&(e=e.next());e.toggleClass(i.disabledClass,1===f).attr("data-lp",o).find("a").attr("href",r(o));h=1==i.maxVisible?0:1;o=f+1>i.total?i.total:i.leaps&&f+1<i.total-i.maxVisible?c+i.maxVisible+h:f+1;e=s.last();i.firstLastUse&&(e=e.prev());e.toggleClass(i.disabledClass,f===i.total).attr("data-lp",o).find("a").attr("href",r(o));s.last().toggleClass(i.disabledClass,f===i.total);e=s.filter("[data-lp="+f+"]");h="."+[i.nextClass,i.prevClass,i.firstClass,i.lastClass].join(",.");e.not(h).length||(l=f<=c?-i.maxVisible:0,s.not(h).each(function(t){o=t+1+c+l;n(this).attr("data-lp",o).toggle(o<=i.total).find("a").html(o).attr("href",r(o))}),e=s.filter("[data-lp="+f+"]"));e.not(h).addClass(i.activeClass);u.data("settings",i)}function r(n){return i.href.replace(i.hrefVariable,n)}var u=this,i=n.extend({total:0,page:1,maxVisible:null,leaps:!0,href:"#",hrefVariable:"{{number}}",next:"&raquo;",prev:"&laquo;",firstLastUse:!1,first:'<span aria-hidden="true">&larr;<\/span>',last:'<span aria-hidden="true">&rarr;<\/span>',wrapClass:"pagination",activeClass:"active",disabledClass:"disabled",nextClass:"next",prevClass:"prev",lastClass:"last",firstClass:"first"},u.data("settings")||{},t||{});return 0>=i.total?this:(n.isNumeric(i.maxVisible)||i.maxVisible||(i.maxVisible=parseInt(i.total,10)),u.data("settings",i),this.each(function(){var t,e,o=n(this);for(t=['<ul class="',i.wrapClass,' bootpag">'],i.firstLastUse&&(t=t.concat(['<li data-lp="1" class="',i.firstClass,'"><a href="',r(1),'">',i.first,"<\/a><\/li>"])),i.prev&&(t=t.concat(['<li data-lp="1" class="',i.prevClass,'"><a href="',r(1),'">',i.prev,"<\/a><\/li>"])),e=1;e<=Math.min(i.total,i.maxVisible);e++)t=t.concat(['<li data-lp="',e,'"><a href="',r(e),'">',e,"<\/a><\/li>"]);i.next&&(e=i.leaps&&i.total>i.maxVisible?Math.min(i.maxVisible+1,i.total):2,t=t.concat(['<li data-lp="',e,'" class="',i.nextClass,'"><a href="',r(e),'">',i.next,"<\/a><\/li>"]));i.firstLastUse&&(t=t.concat(['<li data-lp="',i.total,'" class="last"><a href="',r(i.total),'">',i.last,"<\/a><\/li>"]));t.push("<\/ul>");o.find("ul.bootpag").remove();o.append(t.join(""));t=o.find("ul.bootpag");o.find("li").click(function(){var t=n(this),r;t.hasClass(i.disabledClass)||t.hasClass(i.activeClass)||(r=parseInt(t.attr("data-lp"),10),u.find("ul.bootpag").each(function(){f(n(this),r)}),u.trigger("page",r))});f(t,i.page)}))}}(jQuery,window);Number.prototype.ToDisplayMoney=function(n,t,i,r){n=isNaN(n=Math.abs(n))?2:n;t=t!==undefined?t:"€";i=i||" ";r=r||",";var f=this,o=f<0?"-":"",e=parseInt(f=Math.abs(+f||0).toFixed(n),10)+"",u=(u=e.length)>3?u%3:0;return o+(u?e.substr(0,u)+i:"")+e.substr(u).replace(/(\d{3})(?=\d)/g,"$1"+i)+(n?r+Math.abs(f-e).toFixed(n).slice(2):"")+" "+t};commonTools=function(){function t(n,t,i,r){document.location.hostname.indexOf("localhost")<0?$.cookie(n,t,{expires:r,path:"/",domain:i}):$.cookie(n,t,{expires:r,path:"/"})}function i(t,i,r){var u=n(window.location.href);document.location.hostname.indexOf("localhost")<0?$.cookie(t,i,{expires:r,path:"/",domain:u}):$.cookie(t,i,{expires:r,path:"/"})}function r(t){var i=n(window.location.href);$.cookie(t,null,{domain:i})}function n(n){var i,t;return i=n.indexOf("://")>-1?n.split("/")[2]:n.split("/")[0],i=i.split(":")[0],t=i.split("."),t.length<=2?i:t[t.length-2]+"."+t[t.length-1]}function u(n){var t="";return $.each(document.cookie.split(";"),function(i,r){var u=r.trim();u.indexOf(n)==0&&(t=u.substring(Number(n.length),r.length))}),t}function f(n,t){var i=window.localStorage;i.setItem(n,t)}function e(n){var t=window.localStorage;return t.getItem(n)}function o(n,t){var i=window.sessionStorage;i.setItem(n,t)}function s(n){var t=window.sessionStorage;return t.getItem(n)}function h(n){try{var i=window[n],t="__storage_test__";return i.setItem(t,t),i.removeItem(t),!0}catch(r){return!1}}function c(){}return{setCookie:t,getCookie:u,getLocalStorageValue:e,setLocalStorageValue:f,getSessionStorageValue:s,setSessionStorageValue:o,deleteCookie:r,isStorageAvailable:h,setCookieLight:i,init:c}}();bannerCookiesModule=function(){function r(){$(".bannerCookie .close").bind("click  touchstart",function(){$(".bannerCookie").addClass("hidden");commonTools.setCookie(n,!0,t,366)})}function u(u){i=commonTools.isStorageAvailable("localStorage");n=u.cookieName;t=u.domain;r();commonTools.getCookie(n)==""&&$(".bannerCookie").removeClass("hidden")}var n,t,i;return{init:u}}();tools=function(){function t(n,t){var i;n.prop("disabled",!0);n.html("");$.each(t,function(t,r){i=$("<optgroup/>",{label:r.Name}).appendTo(n);$.each(r.Items,function(n,t){t.Selected==!0?$('<option value="'+t.Value+'" selected=selected >'+t.Text+"<\/option>").appendTo(i):$('<option value="'+t.Value+'" >'+t.Text+"<\/option>").appendTo(i)})});n.prop("disabled",!1)}function i(t){t.prop("disabled",!0);n=t.find("option").first().text();t.html("");$('<option value="0">'+n+"<\/option>").appendTo(t);t.prop("disabled",!1)}function r(n){n.manufacturersSelector!=undefined&&n.modelsSelector!=undefined&&n.typesSelector!=undefined&&($(n.manufacturersSelector).change(function(){var t=$(n.manufacturersSelector+" option:selected").val();t==0||isNaN(t)||$.post("/Catalog/SearchEngine/GetModels",{idOscManufacturer:t},function(t){tools.populateSelectWithOptions($(n.modelsSelector),t)});tools.clearSelectWithOptions($(n.modelsSelector));tools.clearSelectWithOptions($(n.typesSelector));$(n.modelsSelector)[0].options[0].selected=!0;$(n.typesSelector)[0].options[0].selected=!0}),$(n.modelsSelector).change(function(){var t=$(n.modelsSelector+" option:selected").val();t==0||isNaN(t)||$.post("/Catalog/SearchEngine/GetTypes",{idOscModel:t},function(t){tools.populateSelectWithOptions($(n.typesSelector),t.datas)});tools.clearSelectWithOptions($(n.typesSelector));$(n.typesSelector)[0].options[0].selected=!0}))}var n;return{populateSelectWithOptions:t,clearSelectWithOptions:i,loadDdl:r}}();browserIeVersionPopup=function(){function i(i){var r,u;n=i.versionLimit;r=navigator.userAgent.indexOf("MSIE")!=-1?/MSIE (\d+\.\d+);/:/Trident.*rv[ :]*(\d+\.\d+)/;r.test(navigator.userAgent)&&(u=parseInt(RegExp.$1),u<=n&&commonTools.getCookie(t)==""&&($("#broName").html("(Internet Explorer "+u+")"),$("#BrowserVersion").modal("show")))}var t,n;return{init:i}}();catalogButtonAddToBasketTooltipModule=function(){function n(n){var u=n.find("input[type='hidden'][id$='ProductId']"),f=n.find("input[type='hidden'][id$='AvailabilityType']"),r=n.find("input[type='hidden'][id$='RefSearch']"),t,i,e;u.length&&f.length&&(t="",i=document.referrer,window.location!=i&&i!=null&&i.indexOf("Catalog/PartsList/Find")>0?(t=window.location.hash,t!=null&&(t=t.replace(/#/g,""))):r.length>0&&r.val()!=""&&(t=r.val()),e={productId:u.val(),availabilityType:f.val(),refSearch:t},marketingTrackModule.trackerUnavailables(e))}function t(){$("[data-tooltip-target]").each(function(){var n;try{n=$(this).find("a[id^='addproduct_']");n.length>0&&i(n)}catch(t){n!=undefined}})}function i(t){var i=t.popover({html:!0,placement:"auto top",template:'<div class="popover custom-mobil" role="tooltip"><div class="arrow"><\/div><div class="popover-content"><\/div><\/div>',content:function(){var n=t.attr("id").replace("addproduct_","");return $("[data-popover-id='AddBasketPopoverId_"+n+"']").html()},trigger:"manual"});t.on("click touchstart",function(n){n.preventDefault();t.popover("toggle");n.stopPropagation()});i.on("show.bs.popover",function(){});i.on("shown.bs.popover",function(){});i.on("hide.bs.popover",function(){});i.on("hidden.bs.popover",function(){});i.on("shown.bs.popover",function(){var u=t.attr("aria-describedby"),i,r;if(u!=null&&(i=$("#"+u),i.length>0)){if(r=i.find("a.popoverClose"),r.length>0)r.on("click",function(){t.popover("hide")});n(i)}});return!1}function r(){t()}return{init:r}}();vehicleSelectorTrackingModule=function(){function t(){$('select[id*="Manu"]').on("change",function(){try{var n=$("#"+$(this).attr("id")+" option:selected").val();marketingTrackModule.pushManualVehicleSelectorForConstructorId(n)}catch(t){}});$('select[id*="Model"]').on("change",function(){try{var n=$("#"+$(this).attr("id")+" option:selected").val();marketingTrackModule.pushManualVehicleSelectorForModelId(n)}catch(t){}});$('select[id*="Type"]').filter(":not(select[id*='CG'])").on("change",function(){var t,n;try{t=$("#"+$(this).attr("id")+" option:selected").val();t.match(/^[\d]+_[\d]+$/gi)&&(n=t.split("_"),n!=null&&marketingTrackModule.pushManualVehicleSelectorForTypeLevelId(n[0],n[1]))}catch(i){}})}function n(n){marketingTrackModule.pushLicensePlateSearch(n)}function i(t){var i,r;try{t.success?(i=[],t.idsPolkTypeForOscaroId!=undefined&&(r=t.idsPolkTypeForOscaroId.split("|"),$.each(r,function(n,t){jQuery.isNumeric(t)&&i.push(parseInt(t))})),n({success:!0,plateLicense:t.plate,typeId:parseInt(t.typeLevelId.split("_")[0]),polkIds:i})):n({success:!1,plateLicense:t.plate})}catch(u){}}function r(){t()}return{init:r,setEventTrackingSearchByPlateData:i}}();$(window).load(function(){catalogButtonAddToBasketTooltipModule.init()});$(document).ready(function(){function n(){verticalOffset=typeof verticalOffset!="undefined"?verticalOffset:0;element=$("body");offset=element.offset();offsetTop=offset.top;$("html, body").animate({scrollTop:offsetTop},500,"linear")}faqs();initSelectpicker();$(".autoFillOff").on("focus",function(){this.removeAttribute("readonly")});$('[data-toggle="popover"]').popover();$("body").on("click touchstart",function(n){$("[data-toggle=popover]").each(function(){$(this).is(n.target)||$(this).has(n.target).length!==0||$(".popover").has(n.target).length!==0||$(this).popover("hide")})});$(function(){$(document).on("scroll",function(){$(window).scrollTop()>100?$(".scroll-top-wrapper").addClass("show"):$(".scroll-top-wrapper").removeClass("show")});$(".scroll-top-wrapper").on("click",n)});$(".dropdown-menu").click(function(n){n.stopPropagation()});vehicleSelectorTrackingModule.init();headerUserInfoModule.init()});var searchByRefModule=function(){function n(){$(".searchByRef_searchForm_icon").on("click",function(){$(".searchByRefform").submit()});$(".searchByRef_searchForm_icon").on("mouseover",function(){$(this).css("cursor","pointer")});$(".searchByRef_searchForm_icon_xs").on("click",function(){$(".searchByRefform_xs").submit()});$(".searchByRef_searchForm_icon_xs").on("mouseover",function(){$(this).css("cursor","pointer")});$(".searchByRef_titleBar_filter_list_item").click(function(){var n=$(this).val(),t=$(this).text().trim();$(".searchByRef_titleBar_filter_button_text").html(t);n!=0?($(".productfile[data-group-artgenid='"+n+"']").show(),$(".productfile[data-group-artgenid!='"+n+"']").hide()):$(".productfile").show();$(".searchByRef_productListBlock").each(function(){$(this).find(".productfile:hidden").length==$(this).find(".productfile").length?$(this).find(".searchByRef_productListBlock_TitleBar").hide():$(this).find(".searchByRef_productListBlock_TitleBar").show()});$(".searchByRef_titleBar_filter_list_item.selected").removeClass("selected");$(this).addClass("selected");$(".searchByRef_titleBar_filter_button").dropdown("toggle")});$("#searchPart").keydown(function(n){n.keyCode==13&&$(".searchByRefform").submit()});$("#searchPart_Max").keydown(function(n){n.keyCode==13&&$(".searchByRefform_xs").submit()})}return{init:n}}(),headerUserInfoModule=function(){function n(){$(".media.panier").on("click",function(){var t=$(this),n=t.data("cartHref");window.location.href!=n&&(window.location.href=n)})}function t(){n()}return{init:t}}(),MainValidatorMobilPhone=function(){function o(){$(t).length>0&&AttachEventWithAutoComplete($(t),function(e){e&&(e.value=e.value.replace(/[^\d|+]/g,"").trim());n.ValidateMobilePhone($(t).val(),u,f,r,i)})}var n=this,i,r,t,u,f,e;return n.Reg={5:"^((\\+|00)33|0)([67][0-9]{0,8})?$",14:"^((\\+|00)34)?[67][0-9]{0,8}$",73:"^((\\+|00)35)?(1[0-9]{0,8})?$"},n.IsMobilePhone=function(t,i){var r=n.Reg[i],u;return(r==undefined||r==null)&&(r=n.Reg[5]),u=new RegExp(r),u.test(t)},n.ValidateMobilePhone=function(t,i,r,u,f){f!=0&&f!=73&&(t.length>0&&!n.IsMobilePhone(t,f)?($(i).addClass(u),$(r).addClass(u)):($(i).removeClass(u),$(r).removeClass(u)))},n.LockOnKeyPressEvents=function(n){if($(n).length>0)$(n).on("keypress",function(n){var t=n.charCode?n.charCode:n.keyCode;return t>=48&&t<=57||t==8||t==43||n.which==0&&t>=37&&t<=40})},n.Init=function(n){i=n.countryId;r=n.className;t=n.numberPhoneSelector;u=n.mobilMessageSelector;f=n.mobilMessageSelectorForMobil;e=n.selectorsToLock;o()},n}();$(document).ready(function(){breadcrumbs()});carouselModal=function(n){var t=this;t.UrlMedia=n;t.Opened=!1;t.Url=null;t.SetEvent=function(){$(window).resize(function(n){t.Opened&&!$(n.target).hasClass("reel")&&($("#modal-galery").modal("hide"),t.Opened=!1)});$("#modal-galery").on("shown.bs.modal",function(n){var u=n.relatedTarget,i,r;t.Url=$(u).attr("data-url");i=null;r=$.get(t.Url,function(n){i=n});$.when($,r).done(function(){$("#modal-galery .modal-galery-content").html(i).promise().done(function(){var i=$("#modal-galery .modal-galery-content div[data-fct] img"),r=$(".modal-carousel .zoombox").height(),n;i.length>0&&$.each(i,function(n,i){var u=new Image;u.src=$(this).attr("src");$(u).load(function(){var f=u.height,e=u.width,n=(r-i.height)/2;n>0&&($(i).css("margin-top",n),$(i).css("margin-bottom",n));$(i).hasClass("reel")&&($(i).attr("height",f),$(i).attr("width",e),t.SetReel($(i)))})});n=$("#modal-galery .modal-galery-content .zoombox .zoombox-video");n.length>0&&$.each(n,function(n,t){var i=(r-$(t).height())/2;i>0&&($(t).css("margin-top",i),$(t).css("margin-bottom",i))});t.SetEventCarousel();$("#Carousel-modal").carousel({interval:!1});setTimeout(function(){t.Opened=!0;var n=$("#modal-galery .thumbnail img"),i=n.toArray().reduce(function(n,t){return n==null?t:$(n).height()>$(t).height()?n:t},null),r=$(i).height();$.each(n,function(n,t){var i=(r-$(t).height())/2;i>0&&($(t).css("margin-top",i),$(t).css("margin-bottom",i))});$("#modal-galery").modal("handleUpdate");$(".modal-carousel .item").removeClass("active");$(".modal-carousel .item:first-child").addClass("active")},80)})})});$("#modal-galery").on("hide.bs.modal",function(){var n=$('#modal-galery .modal-galery-content div[data-fct="3D"] img');n.length>=1&&$.each(n,function(n,t){$(t).unreel()});$("#modal-galery .modal-galery-content").html(null);t.Opened=!1;t.Url=null});$("#modal-galery").on("slid.bs.carousel",function(n){$(n.target).find(".active").find('[data-fct="3D"] img')[0]!=undefined&&t.SetReel($(n.target).find(".active").find('[data-fct="3D"] img')[0]);$("#modal-galery .zoombox-video").attr("src",null);var i=$(n.target).find(".active").find(".zoombox-video").attr("data-url");i!=undefined&&i!=""&&$("#modal-galery  .zoombox-video").attr("src",i)})};t.SetEventCarousel=function(){$("#modal-galery .thumbnail").click(function(n){var t=$(n.target).closest(".thumbnail").attr("id").substr($(n.target).closest(".thumbnail").attr("id").lastIndexOf("-")+1);t=parseInt(t);$("#modal-galery").carousel(t)});$("#modal-galery .icon-3D, #modal-galery .icon-zoom").click(function(n){var i=$(n.target).attr("data-id"),f=$(n.target).hasClass("fct-active"),e=$(n.target).hasClass("icon-3D")?"3D":"zoom",u,r;f||($(n.target).parent().parent().parent().find(".icon-3D, .icon-zoom").removeClass("fct-active"),$(n.target).parent().parent().parent().find("[data-fct='3D'], [data-fct='zoom']").removeClass("show"),$(n.target).parent().parent().parent().find("[data-fct='3D'], [data-fct='zoom']").addClass("hidden"),e=="3D"?($(n.target).parent().parent().parent().find(".icon-3D").addClass("fct-active"),$(n.target).parent().parent().parent().find("[data-fct='3D']").removeClass("hidden"),$(n.target).parent().parent().parent().find("[data-fct='3D']").addClass("show"),t.SetReel(document.getElementById(i))):(u=$("#"+i).attr("src").replace("Lv2","Lv1"),r=$("#"+i).css("margin-top"),$(n.target).parent().parent().parent().find("[data-fct='zoom'] img").attr("src",$("#"+i).attr("src")),$(n.target).parent().parent().parent().find("[data-fct='zoom'] img").css("margin-top",r),$(n.target).parent().parent().parent().find("[data-fct='zoom'] img").css("margin-bottom",r),$(n.target).parent().parent().parent().find("[data-fct='zoom']").removeClass("hidden"),$(n.target).parent().parent().parent().find("[data-fct='zoom']").addClass("show"),$($(n.target).parent().parent().parent().find("[data-fct='zoom']")).trigger("zoom.destroy"),$($(n.target).parent().parent().parent().find("[data-fct='zoom']")).zoom({url:u,on:isMobil()?"grab":"mouseover"}),$(n.target).parent().parent().parent().find(".icon-zoom").addClass("fct-active")))});$("#modal-galery .img-click").click(function(n){window.open($(n.target).attr("data-url"))})};t.SetReel=function(n){var i=$(n).attr("data-name"),r=$(n).attr("data-media");i!=undefined&&($(n).unreel(),$(n).reel({images:t.UrlMedia+"/osc360/"+i+"/Lv2/img##.jpg|01.."+r,loops:!0,speed:.3333,duration:3.1,cw:!0}),$(n).closest("div").css("width","100%"),$(n).closest("div").css("height","100%"))};t.SetEvent()},function(n){var t=typeof define=="function"&&define.amd&&(define(["jquery"],n)||!0),i=!t&&typeof module=="object"&&typeof module.exports=="object"&&(module.exports=n),r=!t&&!i&&n()}(function(){return jQuery.reel||function(n,t,i,r){function ao(n){return u.instances.push(n[0])&&n}function vo(n){return(u.instances=u.instances.not(di(n.attr(yt))))&&n}function ht(n){return u.instances.first().data(n)}function yo(n){return"data:image/gif;base64,R0lGODlh"+n}function nt(n){return"<"+n+"/>"}function f(n){return"."+(n||"")}function gr(n){return n.replace(pi,u.cdn)}function wi(n){return"url('"+ce(n)+"')"}function se(n,t){return typeof t==uf?t[n]:t}function bi(n,t,i){return eu(n,ui(t,i))}function ki(n,t){return a(n)*(t?-1:1)}function nu(n){return n.touch||n.originalEvent.touches&&n.originalEvent.touches[0]||n}function ef(n){return n.originalEvent}function e(n){return n===r?0:typeof n==ff?n:n+"px"}function di(n){return"#"+n}function he(n,t,i){while(n.length<t)n=i+n;return n}function of(n){return he(n,2,"0")}function ce(n){return encodeURI(decodeURI(n))}function sf(n){return u.re.array.exec(n)?n.split(u.re.array):n}function po(n){return!n.parents(nf).length}function le(t){return typeof t==ff?t:n.each(t,function(n,i){t[n]=i?+i:r})}function hf(n){try{console.error("[ Reel ] "+n)}catch(t){}}function wo(n){return t.toStaticHTML?toStaticHTML(n):n}var ri;if(n){if(ri=n&&n().jquery.split(/\./),!ri||+(of(ri[0])+of(ri[1])+of(ri[2]||""))<10602)return hf("Too old jQuery library. Please upgrade your jQuery to version 1.6.2 or higher");var u=n.reel={version:"1.3.1-devel",def:{frame:1,frames:36,loops:!0,clickfree:!1,draggable:!0,scrollable:!0,steppable:!0,throwable:!0,wheelable:!0,orientable:!1,cw:!1,revolution:r,stitched:0,directional:!1,row:1,rows:0,rowlock:!1,framelock:!1,orbital:0,vertical:!1,inversed:!1,footage:6,spacing:0,horizontal:!0,suffix:"-reel",image:r,images:"",path:"",preload:"fidelity",shy:!1,speed:0,delay:0,timeout:2,duration:r,rebound:.5,entry:r,opening:0,brake:.23,velocity:0,tempo:36,laziness:6,cursor:r,hint:"",indicator:0,klass:"",preloader:2,area:r,attr:{},annotations:r,responsive:!1,graph:r,monitor:r},scan:function(){return n(f(o)+":not("+f(ru)+" > "+f(o)+")").each(function(t,i){var u=n(i),r=u.data(),o=r.images=sf(r.images),e={};n(f(yf)+"[data-for="+u.attr(yt)+"]").each(function(t,i){var u=n(i),r=u.data(),o=r.x=le(sf(r.x)),s=r.y=le(sf(r.y)),f=u.attr(yt),h=r.node=u.removeData();e[f]=r});r.annotations=e;u.removeData().reel(r)})},fn:{reel:function(){var gi=arguments,bi=n(this),pi=bi.data(),bt=gi[0]||{},ri=gi[1];if(typeof bt!="object")return bt.slice(0,1)==":"?bi.trigger(bt.slice(1),ri):gi.length==1?pi[bt]:(ri!==r&&(u.normal[bt]&&(ri=u.normal[bt](ri,pi)),pi[bt]===r?pi[bt]=ri:pi[bt]!==ri&&bi.trigger(bt+"Change",[r,pi[bt]=ri])),bi);var i=n.extend({},u.def,bt),tu=bi.filter(kr).unreel().filter(function(){var t=n(this),r=i.attr,u=r.src||t.attr(gt),f=r.width||t.attr(p)||t.width(),e=r.height||t.attr(c)||t.height();return u?!f||!e?hf("Dimension(s) of the target image unknown"):!0:hf("`src` attribute missing on target image")}),wr=[];return tu.each(function(){var pi=n(this),ri=function(n,t){return pi.reel(n,t)&&bt(n)},bt=function(n){return pi.data(n)},nr={setup:function(){if(!pi.hasClass(o)||!pi.parent().hasClass(ru)){ri(hi,i);var dr={src:pi.attr(gt),width:pi.attr(c)||null,height:pi.attr(p)||null,style:pi.attr(et)||null,"class":pi.attr(df)||null},gr=pi.attr(i.attr).attr(gt),nu=ri(yt,pi.attr(yt)||pi.attr(yt,o+"-"+ +new Date).attr(yt)),tu=n.extend({},pi.data()),a=ri(rt,i.images||[]),r=ri(g,i.stitched),iu=!a.length||r,ct=ri(ar,i.responsive&&(ve?!0:!iu)),fu=ri(re,{}),ci=i.loops,b=i.orbital,wi=i.revolution,t=i.rows,gi=ri(wt,ui(i.footage,i.frames)),ku=ri(vr,i.spacing),st=ri(c,+pi.attr(c)||pi.width()),ht=ri(p,+pi.attr(p)||pi.height()),eu=ri(vi,i.shy),tr=ri(k,b&&gi||t<=1&&a.length||i.frames),ou=t>1||b,gu=ri(ai,se("x",wi)||r/2||st*2),nf=ri(pu,ou?se("y",wi)||(t>3?ht:ht/(5-t)):0),t=r?1:lt(tr/gi),tf=ri(bu,r-(ci?0:st)),rf=ri(yr,0),ir=di(nu+i.suffix),fr=pi.attr(df),su=fr?fr+h:w,l=n(nt(ii),{id:ir.substr(1),"class":su+h+ru+h+pf+"0"}),br=pi.wrap(l.addClass(i.klass)).addClass(o),uf=wr.push(ao(br)[0]),l=br.parent().bind(nr.instance);ri(au,a.length?w:i.image||gr.replace(u.re.image,"$1"+i.suffix+".$2"));ri(ur,n(nt(ii),{"class":uu}).appendTo("body"));ri(ei,n());ri(kf,[]);ri(y,null);ri(s,null);ri(d,i.row);ri(ni,0);ri(wu,t);ri(te,i.rowlock);ri(gf,i.framelock);ri(sr,ri(oi,ri(hr,0)));ri(rr,1/(tr-+!ci));ri(ie,ir);ri(dt,i.speed);ri(v,!1);ri(si,!1);ri(at,0);ri(ti,i.vertical);ri(ft,0);ri(pt,ki(1,!i.cw&&!r));ri(er,{});ri(it,!1);ri(or,ri(cu,0));ri(lr,ri(cr,0));ri(li,!1);ri(yu,!1);ri(ut,!1);ri(bf,i.brake);ri(hu,!!b);ri(ot,i.tempo/(u.lazy?i.laziness:1));ri(kt,-1);ri(pr,-1);ri(fi,i.annotations||l.unbind(f(fi))&&{});ri(vu,1);ri(ne,"");ri(wf,{attr:dr,data:tu});i.steppable||l.unbind("up.steppable");i.indicator||l.unbind(".indicator");bi(w,{overflow:lu,position:"relative"});ct||bi(w,{width:st,height:ht});ct&&n.each(eo,function(n,t){fu[t]=bt(t)});bi(vt+h+f(o),{display:du});bi(f(uu),{position:"fixed",left:e(-100),top:e(-100)},!0);bi(f(uu)+h+kr,{position:yi,width:10,height:10},!0);tt.bind(nr.pool);pi.trigger(eu?"prepare":"setup")}},instance:{teardown:function(){var i=pi.data(wf);pi.parent().unbind(nr.instance);bt(vi)?pi.parent().unbind(fr,yo):bt(et).remove()&&bt(ei).unbind(l);bt(ur).remove();clearTimeout(ns);clearTimeout(ts);n(t).unbind(ue,os);n(t).unbind(l);tt.unbind(nr.pool);iu.unbind(st);pi.siblings().unbind(l).remove();le();pi.removeAttr("onloaded");vo(pi.unbind(l).removeData().unwrap().attr(i.attr).data(i.data));pi.attr(et)==w&&pi.removeAttr(et)},setup:function(){function l(n){return pi.trigger("down",[nu(n).clientX,nu(n).clientY,n])&&n.give}function y(n,t){return!t||pi.trigger("wheel",[t,n])&&n.give}var u=pi.parent().append(tf()),s=ri(ei,n(i.area||u)),a=i.rows>1,e=i.cursor,c=e==fe?so:e||oo,v=e==fe?ho+h+"!important":r;bi(h+f(o),{MozUserSelect:dr,WebkitUserSelect:dr,MozTransform:"translateZ(0)"});pi.unbind(fr,yo);s.bind(uo,l).bind(i.clickfree?ke:be,l).bind(i.wheelable?to:null,y).bind(we,function(){return!1});bi(w,{cursor:gr(c)});bi(f(fu),{cursor:"wait"});bi(f(tr)+vt+f(tr)+" *",{cursor:gr(v||c)},!0);bt(ar)&&(bi(h+f(o),{width:"100%",height:su}),n(t).bind(ue,os));i.hint&&s.attr("title",i.hint);i.indicator&&u.append(sf("x"));a&&i.indicator&&u.append(sf("y"));i.monitor&&u.append(bo())},preload:function(){function l(){var n=s.children(':not([src]),[src=""]').first();return n.attr(gt,n.data(gt))}var f=pi.parent(),e=bt(rt),o=!e.length,a=u.preload[i.preload]||u.preload[u.def.preload],t=o?[bt(au)]:a(e.slice(0),i,bt),y=t.length,p=ri(ft,o?.5:0),v=0,s=bt(ur).empty(),h=[],r,c;for(f.addClass(fu),ri(et,bt(et)||n(wo("<"+et+' type="text/css">'+bi.rules.join("\n")+"<\/"+et+">")).prependTo(gu)),ri(si,!0),pi.trigger("stop"),i.responsive&&go(),pi.trigger("resize",!0);t.length;)r=u.substitute(i.path+t.shift(),bt),c=n(nt(kr)).data(gt,r).appendTo(s),c.bind("load error abort",function(n){return n.type!="load"&&pi.trigger(n.type),!po(f)&&pi.trigger("preloaded")&&l()&&!1}),h.push(r);setTimeout(function(){while(++v<u.concurrent_requests)l()},0);ri(kf,h);ri(vi,!1)},preloaded:function(){var n=bt(rt).length||1,t=ri(ft,ui(bt(ft)+1,n)),i;t===1&&(i=pi.trigger("frameChange",[r,bt(y)]));t===n&&(pi.parent().removeClass(fu),pi.trigger("loaded"))},loaded:function(){bt(rt).length>1||pi.css({backgroundImage:wi(u.substitute(i.path+bt(au),bt))}).attr({src:gr(oe)});bt(g)&&pi.attr({src:gr(oe)});bt(yu)||ri(at,i.velocity||0);ri(si,!1);lo=!0},prepare:function(){pi.css("display",du).parent().one(fr,yo)},opening:function(){if(!i.opening)return pi.trigger("openingDone");var u=ri(ut,!0),f=ri(ku,!bt(dt)),t=i.entry||i.speed,r=bt(s),n=i.opening,e=ri(s,r-t*n),o=ri(kt,lt(n*ht(ot)))},openingDone:function(){function u(n){return pi.trigger("orient",[ef(n).alpha,ef(n).beta,ef(n).gamma,n])&&n.give}var e=ri(ci,!1),o=ri(ut,!1),r=br+f(ut);tt.unbind(r,nr.pool[r]);i.orientable&&n(t).bind(pe,u);i.delay>0?ns=setTimeout(function(){pi.trigger("play")},i.delay*1e3):pi.trigger("play")},play:function(n,t){var t=t?ri(dt,t):bt(dt)*ki(1,bt(v)),r=i.duration,f=r&&ri(pr,lt(r*ht(ot))),e=ri(v,t<0),u=ri(ci,!!t),o=ri(ku,!u);ss()},reach:function(n,t,i){if(t!=bt(y)){var r=bt(k),o=ri(d,lt(t/r)),f=ri(sr,bt(y)),t=ri(oi,t),e=ri(hr,u.math.distance(f,t,r)),i=a(i||bt(dt))*ki(1,e<0);pi.trigger("play",i)}},pause:function(){tu()},stop:function(){var n=ri(ku,!0),t=ri(ci,!n)},down:function(t,u,f,e){function l(n){return pi.trigger("pan",[nu(n).clientX,nu(n).clientY,n])&&n.give}function s(n){return pi.trigger("up",[n])&&n.give}if((i.clickfree||!e||e.button===r||e.button==co)&&i.draggable){var a=ri(it,bt(y)),o=i.clickfree,v=ri(at,0),c=o?bt(ei):iu,p=he=ae(bt(ai),u,f);tu();le();of=0;n(nf,iu).addClass(tr);c.bind(fo+h+ge,l).bind(ro+h+io,s).bind(o?de:no,s)}},up:function(){var f=ri(it,!1),e=ri(li,!1),t=i.throwable,r=a(hf[0]+hf[1])/60,u=ri(at,t?t===!0?r:ui(t,r):0),o=rf=u?1:0;tu();le();n(nf,iu).removeClass(tr);(i.clickfree?bt(ei):iu).unbind(st)},pan:function(n,t,r,f){var h,e;if(i.draggable&&cf){cf=!1;tu();var w=i.rows,b=i.orbital,nt=!bt(li)&&w<=1&&!b&&i.scrollable,c={x:t-he.x,y:r-he.y},o={x:a(c.x),y:a(c.y)};if(f&&nt&&o.x<o.y)return f.give=!0;if(o.x>0||o.y>0){f&&(f.give=!1);of=eu(o.x,o.y);he={x:t,y:r};var l=bt(ai),e=bt(er),h=bt(ti);if(!bt(gf))var tt=ri(s,es(h?r-e.y:t-e.x,bt(or),l,bt(lr),bt(cr),bt(pt),h?r-e.y:t-e.x)),rt=ri(li,bt(li)||bt(y)!=bt(it)),k=fs(h?c.y:c.x||0),ut=k&&ri(v,k<0);if(b&&bt(hu)&&(h=ri(ti,a(r-e.y)>a(t-e.x)),e=ae(l,t,r)),w>1&&!bt(te))var p=bt(pu),d=bt(cu),g=-d*p,ft=ri(ni,u.math.envelope(r-e.y,d,p,g,g+p,-1));tt%1||i.loops||(e=ae(l,t,r))}}},wheel:function(n,t,i){if(t){ee=!0;var r=lt(ct.sqrt(a(t))/2),r=ki(r,t>0),u=.0833*bt(ai),f=ae(u),e=r&&ri(v,r<0),o=ri(at,0),h=ri(s,es(r,bt(or),u,bt(lr),bt(cr),bt(pt)));i&&i.preventDefault();i&&(i.give=!1);tu();pi.trigger("up",[i])}},orient:function(n,t){if(cf&&!gi){us=!0;var r=t/360,u=ri(s,+(i.stitched||i.cw?1-r:r).toFixed(2));cf=!1}},fractionChange:function(n,t,u){var f;if(t===r){var f=1+ir(u/bt(rr)),o=i.rows>1,e=i.orbital,s=ri(hu,!!e&&(f<=e||f>=bt(wt)-e+2));o&&(f=f+(bt(d)-1)*bt(k));f=ri(y,f)}},tierChange:function(n,t,u){if(t===r)var o=ri(d,b(ou(u,1,i.rows))),f=bt(k),e=bt(y)%f||f,e=ri(y,e+o*f-f)},rowChange:function(n,t,u){if(t===r)var f=is(ni,r,u,i.rows)},frameChange:function(n,t,f){var f;if(t===r){this.className=this.className.replace(u.re.frame_klass,pf+f);var y=bt(k),o=i.rows,st=i.path,ht=f%y||y,kt=(f-ht)/y+1,dt=(kt-1)/(o-1),nt=bt(d),ei=o?is(ni,dt,nt,o):bt(ni),gt=is(s,r,ht,y),l=bt(wt);i.orbital&&bt(ti)&&(f=i.inversed?l+1-f:f,f=f+l);var tt=bt(g),a=bt(rt),ii=!a.length||tt;if(ii){var it=bt(vr),ct=bt(c),ut=bt(p);if(tt){var ui=ri(yr,b(ou(gt,0,bt(bu)))%tt),fi=o<=1?0:(ut+it)*(o-nt),vt=[e(-ui),e(-fi)],yt=a.length>1&&a[nt-1],pt=u.substitute(st+yt,bt);yt&&pi.css("backgroundImage").search(pt)<0&&pi.css({backgroundImage:wi(pt)})}else var et=i.horizontal,w=f%l-1,w=w<0?l-1:w,ot=ir((f-.1)/l),ot=ot+(o>1?0:bt(v)?0:i.directional?bt(wu):0),lt=ot*((et?ut:ct)+it),at=w*((et?ct:ut)+it),vt=a.length?[0,0]:et?[e(-at),e(-lt)]:[e(-lt),e(-at)];pi.css({backgroundPosition:vt.join(h)})}else bt(ar)&&go(),bt(ft)&&pi.attr({src:ce(u.substitute(st+a[f-1],bt))})}},"frameChange.reach":function(n,t,i){if(bt(oi)&&t===r){var f=u.math.distance(bt(sr),i,bt(k)),e=a(f)>=a(bt(hr));e&&(ri(y,ri(oi)),ri(oi,ri(hr,ri(sr,0))),pi.trigger("stop"))}},"imageChange imagesChange":function(){pi.trigger("preload")},"fractionChange.indicator":function(n,t,u){if(i.indicator&&t===r)var h=i.indicator,l=i.orbital,f=l&&bt(ti)?bt(p):bt(c),a=l?bt(wt):i.images.length||bt(k),s=lt(f/a),f=f-s,o=b(ou(u,0,f)),o=!i.cw||bt(g)?o:f-o,v=sf.$x.css(bt(ti)?{left:0,top:e(o),bottom:su,width:h,height:s}:{bottom:0,left:e(o),top:su,width:s,height:h})},"tierChange.indicator":function(n,t,u){if(i.rows>1&&i.indicator&&t===r)var f=bt(p),o=i.indicator,e=lt(f/i.rows),f=f-e,s=b(u*f),h=sf.$y.css({left:0,top:s,width:o,height:e})},monitorChange:function(n,t,i){bo.$.text(i)},"setup.annotations":function(){var t=pi.parent();n.each(bt(fi),function(i,r){var u=typeof r.node==ff?n(r.node):r.node||{},u=u.jquery?u:n(nt(ii),u),u=u.attr({id:i}).addClass(yf),e=r.image?n(nt(kr),r.image):n(),f=r.link?n(nt("a"),r.link).click(function(){pi.trigger("up.annotations",{target:f})}):n();bi(di(i),{display:dr,position:yi},!0);r.image||r.link&&u.append(f);r.link||r.image&&u.append(e);r.link&&r.image&&u.append(f.append(e));u.appendTo(t)})},"prepare.annotations":function(){n.each(bt(fi),function(t){n(di(t)).hide()})},"frameChange.annotations":function(t,i){if(bt(ft)&&i===r){var f=bt(c),u=bt(g),o=bt(yr);n.each(bt(fi),function(t,i){var b=n(di(t)),l=i.start||1,a=i.end,v=v||bt(y),h=v-1,k=i.at?i.at[h]=="+":!1,h=i.at?h:h-l+1,s=typeof i.x!=uf?i.x:i.x[h],c=typeof i.y!=uf?i.y:i.y[h],d=s!==r&&c!==r,g=d&&(i.at?k:h>=0&&(!a||h<=a-l)),w;if(u)var nt=s<f&&o>u-f,tt=s>u-f&&o>=0&&o<f,s=nt?s+u:s,s=tt?s-u:s,s=s-o;if(bt(ar))var p=bt(vu),s=s&&s*p,c=c&&c*p;w={display:g?du:dr,left:e(s),top:e(c)};b.css(w)})}},"up.annotations":function(t,i){if(!(of>10)&&!ee){var r=n(i.target),u=r.is("a")?r:r.parents("a"),f=u.attr("href");f&&(of=10)}},"up.steppable":function(){of||ee||pi.trigger(bt(er).x-pi.offset().left>.5*bt(c)?"stepRight":"stepLeft")},"stepLeft stepRight":function(){tu()},stepLeft:function(){ri(v,!1);ri(s,bt(s)-bt(rr)*bt(pt))},stepRight:function(){ri(v,!0);ri(s,bt(s)+bt(rr)*bt(pt))},stepUp:function(){ri(d,bt(d)-1)},stepDown:function(){ri(d,bt(d)+1)},resize:function(n,t){if(!bt(si)||t){var f=bt(g),u=bt(vr),o=bt(p),l=!bt(rt).length||f,s=i.rows||1,a=bt(rt).length?f?e(f)+h+e(o):r:f&&e(f)+h+e((o+u)*s-u)||e((bt(c)+u)*bt(wt)-u)+h+e((o+u)*bt(wu)*s*(i.directional?2:1)-u);pi.css({height:l?e(o):null,backgroundSize:a||null});t||pi.trigger("imagesChange")}},"setup.fu":function(){var n=ri(y,i.frame+(bt(d)-1)*bt(k));pi.trigger("preload")},"wheel.fu":function(){ee=!1},"clean.fu":function(){pi.trigger("teardown")},"loaded.fu":function(){pi.trigger("opening")}},pool:{"tick.reel.preload":function(){if((lo||bt(si))&&!bt(vi)){var t=bt(c),n=ye(tf.$.css(c)),i=bt(rt).length||1,r=b(1/i*bt(ft)*t);tf.$.css({width:n+(r-n)/3+1});bt(ft)===i&&n>t-1&&(lo=!1,tf.$.fadeOut(300,function(){tf.$.css({opacity:1,width:0})}))}},"tick.reel":function(n){var f,t;if(!bt(vi)){var t=bt(at),e=ht(ot),o=i.monitor;if(u.intense||!hs()){if(rf&&(f=t-bt(bf)/e*rf,t=ri(at,f>.1?f:rf=gi=0)),o&&ri(ne,bt(o)+w),t&&rf++,gi&&gi++,fs(0),cf=!0,gi&&!t)return rs(n);if(bt(it))return rs(n,tu());if(!(bt(kt)>0)){if(!i.loops&&i.rebound)var y=!gi&&!(bt(s)%1)?ko++:ko=0,h=ko>=i.rebound*1e3/e,p=h&&ri(v,!bt(v));var c=bt(pt)*ki(1,bt(v)),r=bt(pr),l=(!bt(ci)||us||!r?t:a(bt(dt))+t)/ht(ot),b=ri(s,bt(s)-l*c),r=i.duration?r>0&&ri(pr,r-1):r;!r&&bt(ci)&&pi.trigger("stop")}}}},"tick.reel.opening":function(){if(bt(ut)){var n=i.entry||i.speed,t=n/ht(ot)*(i.cw?-1:1),r=ri(kt,bt(kt)-1),u=ri(s,bt(s)+t);r||pi.trigger("openingDone")}}}},lo=!1,rs=function(n,t){return n.stopImmediatePropagation()||t},yo=function(){pi.trigger("setup")},gi,rf=0,ss=function(){return gi=0},tu=function(){return clearTimeout(ns),tt.unbind(br+f(ut),nr.pool[br+f(ut)]),ri(kt,0),ri(yu,!0),gi=-i.timeout*ht(ot)},of=0,ee=!1,us=!1,bo=function(){return bi(h+f(vf),{position:yi,left:0,top:0}),bo.$=n(nt(ii),{"class":vf})},tf=function(){return bi(h+f(af),{position:yi,left:0,bottom:0,height:i.preloader,overflow:lu,backgroundColor:"#000"}),tf.$=n(nt(ii),{"class":af})},sf=function(t){return bi(h+f(lf)+f(t),{position:yi,width:0,height:0,overflow:lu,backgroundColor:"#000"}),sf["$"+t]=n(nt(ii),{"class":lf+h+t})},bi=function(t,i,r){function f(t){var i=[];return n.each(t,function(n,t){i.push(n.replace(/([A-Z])/g,"-$1").toLowerCase()+":"+e(t)+";")}),"{"+i.join(w)+"}"}var u=r?w:bt(ie),t=t.replace(/^/,u).replace(vt,vt+u);return bi.rules.push(t+f(i))&&i},hs=function(){var r=bt(p),u=bt(c),i=pi[0].getBoundingClientRect();return i.top<-r||i.left<-u||i.right>u+n(t).width()||i.bottom>r+n(t).height()},ko=0,he={x:0,y:0},fs=function(n){return hf.push(n)&&hf.shift()&&n},le=function(){return hf=[0,0]},hf=le(),es=i.graph||u.math[i.loops?"hatch":"envelope"],ls=u.normal,os=function(){clearTimeout(ts);ts=setTimeout(go,u.resize_gauge)},go=function(){if(pi.width()!=bt(c)){var t=bt(re),i=ri(vu,pi.width()/t.width);n.each(t,function(n,t){ri(n,b(t*i))});pi.trigger("resize")}},ns,ts,ae=function(n,t,u){var f=ri(or,bt(s)),o=ri(cu,bt(ni)),e=i.loops,h=ri(lr,e?0:-f*n),c=ri(cr,e?n:n-f*n);return t!==r&&ri(er,{x:t,y:u})||r},cf=!0,is=function(n,t,i,u){if(u){var e=bt(n)||0,f=t!==r?t:(i-1)/(u-1),f=n!=s?f:ui(f,.9999),o=+a(e-f).toFixed(8)>=+(1/(u-1)).toFixed(8),t=o?ri(n,f):t||e;return t}},iu=tt,cs;try{tt[0]!=top.document&&(iu=tt.add(top.document))}catch(as){}cs=top===self?n():function(t){return n("iframe",iu.last()).each(function(){try{if(n(this).contents().find(gu).html()==n(gu).html())return(t=n(this))&&!1}catch(i){}}),t}();bi.rules=[];nr.setup()}),nr=nr||function iu(){var t=+new Date,n=ht(ot);return n?(tt.trigger(br),u.cost=(+new Date+u.cost-t)/2,nr=setTimeout(iu,eu(4,1e3/n-u.cost))):nr=null}(),n(wr)},unreel:function(){return this.trigger("teardown")}},re:{image:/^(.*)\.(jpg|jpeg|png|gif)\??.*$/i,ua:[/(msie|opera|firefox|chrome|safari)[ \/:]([\d.]+)/i,/(webkit)\/([\d.]+)/i,/(mozilla)\/([\d.]+)/i],array:/ *, */,lazy_agent:/\(iphone|ipod|android|fennec|blackberry/i,frame_klass:/frame-\d+/,substitution:/(@([A-Z]))/g,no_match:/^(undefined|)$/,sequence:/(^[^#|]*([#]+)[^#|]*)($|[|]([0-9]+)\.\.([0-9]+))($|[|]([0-9]+)$)/},cdn:"http://code.vostrel.net/",math:{envelope:function(n,t,i,r,u,f){return t+bi(r,u,-n*f)/i},hatch:function(n,t,i,r,u,f){var n=(n<r?u:0)+n%u,e=t+-n*f/i;return e-ir(e)},interpolate:function(n,t,i){return t+n*(i-t)},distance:function(n,t,i){var u=i/2,r=t-n;return r<-u?r+i:r>u?r-i:r}},preload:{fidelity:function(n,t,i){function h(n,i,r){function c(n){while(!(n>=1&&n<=e))n+=n<1?+e:-e;return s[r+n]||(s[r+n]=!!f.push(n))}var u;if(!n.length)return[];var f=[],l=4*i,a=t.frame,e=n.length,h=!0,o=e/l;for(u=0;u<l;u++)c(a+b(u*o));while(o>1)for(var u=0,v=f.length,o=o/2,y=h=!h;u<v;u++)c(f[u]+(h?1:-1)*b(o));for(u=0;u<=e;u++)c(u);for(u=0;u<f.length;u++)f[u]=n[f[u]-1];return f}var u=t.orbital,f=u?2:t.rows||1,e=u?i(wt):i(k),r=(t.row-1)*e,o=[].concat(n),s=new Array(n.length+1),c=f<2?[]:o.slice(r,r+e);return h(c,1,r).concat(h(o,f,0))},linear:function(n){return n}},substitute:function(n,t){return n.replace(u.re.substitution,function(n,i,r){return typeof u.substitutes[r]=="function"?u.substitutes[r](t):ee[r]?t(ee[r]):i})},substitutes:{T:function(){return+new Date}},normal:{fraction:function(n,t){return n===null?n:t[hi].loops?n-ir(n):bi(0,1,n)},tier:function(n){return n===null?n:bi(0,1,n)},row:function(n,t){return n===null?n:b(bi(1,t[hi].rows,n))},frame:function(n,t){if(n===null)return n;var r=t[hi],i=t[k]*(r.orbital?2:r.rows||1),u=b(r.loops?n%i||i:bi(1,i,n));return u<0?u+i:u},speed:function(n,t){var i=t[v]=n<0;return n},images:function(n,t){var i=u.re.sequence.exec(n);return i?u.sequence(i,t[hi]):n}},sequence:function(n,t){if(n.length<=1)return t.images;for(var f=[],e=t.orbital,s=n[1],o=n[2],i=n[4],i=u.re.no_match.test(i+w)?1:+i,h=e?2:t.rows||1,c=e?t.footage:t.stitched?1:t.frames,l=+(n[5]||h*c),a=l-i,v=+n[7]||1,r=0;r<=a;)f.push(s.replace(o,he(i+r+w,o.length,"0"))),r+=v;return f},instances:n(),leader:ht,resize_gauge:300,concurrent_requests:4,cost:0},tt=n(i),gi=navigator.userAgent,cf=u.re.ua[0].exec(gi)||u.re.ua[1].exec(gi)||u.re.ua[2].exec(gi),tu=+cf[2].split(".").slice(0,2).join("."),iu=cf[1]=="MSIE",ae=!(iu&&tu<8),ve=!(iu&&tu<9),nr,o="reel",ru=o+"-overlay",uu=o+"-cache",lf=o+"-indicator",af=o+"-preloader",vf=o+"-monitor",yf=o+"-annotation",tr=o+"-panning",fu=o+"-loading",pf="frame-",ct=Math,b=ct.round,ir=ct.floor,lt=ct.ceil,ui=ct.min,eu=ct.max,a=ct.abs,ye=parseInt,ou=u.math.interpolate,fi="annotations",ei="area",su="auto",wf="backup",v="backwards",rr="bit",bf="brake",ur="cache",kf=ur+"d",hu="center",df="class",fr="click",it=fr+"ed",er=it+"_location",or=it+"_on",cu=it+"_tier",pt="cwish",sr="departure",oi="destination",hr="distance",wt="footage",s="fraction",y="frame",gf="framelock",k="frames",p="height",cr="hi",lu="hidden",au="image",rt="images",lr="lo",si="loading",ne="monitor",bt="mouse",ut="opening",kt=ut+"_ticks",hi="options",ci="playing",ft="preloaded",vu="ratio",li="reeling",yu="reeled",ar="responsive",ai="revolution",pu="revolution_y",d="row",te="rowlock",wu="rows",vi="shy",vr="spacing",dt="speed",gt="src",ie="stage",g="stitched",yr=g+"_shift",bu=g+"_travel",ku="stopped",et="style",ot="tempo",pr="ticks",ni="tier",wr="touch",re="truescale",at="velocity",ti="vertical",c="width",l=f(o),st=f("pan")+l,pe="deviceorientation"+l,we="dragstart"+l,be=bt+"down"+l,ke=bt+"enter"+l,de=bt+"leave"+st,ge=bt+"move"+st,no=bt+"up"+st,to=bt+"wheel"+l,br="tick"+l,io=wr+"cancel"+st,ro=wr+"end"+st,uo=wr+"start"+l,fo=wr+"move"+st,ue="resize"+l,w="",h=" ",vt=",",yi="absolute",du="block",pi="@CDN@",ii="div",fe="hand",gu="head",nf="html",yt="id",kr="img",tf="jquery."+o,rf="move",dr="none",uf="object",ff="string",eo=[c,p,vr,ai,pu,g,yr,bu],ee={W:c,H:p},oe=ae?yo("CAAIAIAAAAAAAAAAACH5BAEAAAAALAAAAAAIAAgAAAIHhI+py+1dAAA7"):pi+"blank.gif",oo=wi(pi+tf+".cur")+vt+rf,so=wi(pi+tf+"-drag.cur")+vt+rf,ho=wi(pi+tf+"-drag-down.cur")+vt+rf,bo=u.lazy=u.re.lazy_agent.test(gi),co=iu&&tu<9?1:0,lo=n.cleanData,ko=n.cleanData=function(t){return n(t).each(function(){n(this).triggerHandler("clean")}),lo.apply(this,arguments)};return n.extend(n.fn,u.fn)&&n(u.scan),u}}(jQuery,window,document)});!function(n){"use strict";var t=function(n,t){this.init("magnify",n,t)};t.prototype={constructor:t,init:function(t,i,r){this.type=t;this.$element=n(i);this.options=this.getOptions(r);this.nativeWidth=0;this.nativeHeight=0;this.$element.parent().hasClass("magnify")||(this.$element.wrap('<div class="magnify" >'),this.$element.parent(".magnify").append('<div class="magnify-large" >'));this.$element.siblings(".magnify-large").css("background","url('"+this.$element.attr("src")+"') no-repeat");this.$element.parent(".magnify").on("mousemove."+this.type,n.proxy(this.check,this));this.$element.parent(".magnify").on("mouseleave."+this.type,n.proxy(this.check,this))},getOptions:function(t){return t=n.extend({},n.fn[this.type].defaults,t,this.$element.data()),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t},check:function(t){var r=n(t.currentTarget),s=r.children("img"),i=r.children(".magnify-large"),u;if(this.nativeWidth||this.nativeHeight){var o=r.offset(),f=t.pageX-o.left,e=t.pageY-o.top;if(f<r.width()&&e<r.height()&&f>0&&e>0?i.fadeIn(100):i.fadeOut(100),i.is(":visible")){var h=Math.round(f/r.width()*this.nativeWidth-i.width()/2)*-1,c=Math.round(e/r.height()*this.nativeHeight-i.height()/2)*-1,l=h+"px "+c+"px",a=f-i.width()/2,v=e-i.height()/2;i.css({left:a,top:v,backgroundPosition:l})}}else u=new Image,u.src=s.attr("src"),this.nativeWidth=u.width,this.nativeHeight=u.height}};n.fn.magnify=function(i){return this.each(function(){var u=n(this),r=u.data("magnify"),f=typeof i=="object"&&i;r||u.data("tooltip",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.magnify.Constructor=t;n.fn.magnify.defaults={delay:0};n(window).on("load",function(){n('[data-toggle="magnify"]').each(function(){var t=n(this);t.magnify()})})}(window.jQuery),function(n){var t={url:!1,callback:!1,target:!1,duration:120,on:"mouseover",touch:!0,onZoomIn:!1,onZoomOut:!1,magnify:1};n.zoom=function(t,i,r,u){var s,h,e,o,a,v,c,f=n(t),y=f.css("position"),l=n(i);return f.css("position",/(absolute|fixed)/.test(y)?y:"relative"),f.css("overflow","hidden"),r.style.width=r.style.height="",n(r).addClass("zoomImg").css({position:"absolute",top:0,left:0,opacity:0,width:r.width*u,height:r.height*u,border:"none",maxWidth:"none",maxHeight:"none"}).appendTo(t),{init:function(){h=f.outerWidth();s=f.outerHeight();i===f[0]?(o=h,e=s):(o=l.outerWidth(),e=l.outerHeight());a=(r.width-h)/o;v=(r.height-s)/e;c=l.offset()},move:function(n){var t=n.pageX-c.left,i=n.pageY-c.top;i=Math.max(Math.min(i,e),0);t=Math.max(Math.min(t,o),0);r.style.left=t*-a+"px";r.style.top=i*-v+"px"}}};n.fn.zoom=function(i){return this.each(function(){var r=n.extend({},t,i||{}),a=r.target||this,v=this,u=n(v),h=n(a),f=document.createElement("img"),l=n(f),o="mousemove.zoom",e=!1,s=!1,c;(r.url||(c=u.find("img"),c[0]&&(r.url=c.data("src")||c.attr("src")),r.url))&&(function(){var n=h.css("position"),t=h.css("overflow");u.one("zoom.destroy",function(){u.off(".zoom");h.css("position",n);h.css("overflow",t);l.remove()})}(),f.onload=function(){function h(i){t.init();t.move(i);l.stop().fadeTo(n.support.opacity?r.duration:0,1,n.isFunction(r.onZoomIn)?r.onZoomIn.call(f):!1)}function i(){l.stop().fadeTo(r.duration,0,n.isFunction(r.onZoomOut)?r.onZoomOut.call(f):!1)}var t=n.zoom(a,v,f,r.magnify);if(r.on==="grab")u.on("mousedown.zoom",function(r){if(r.which===1){n(document).one("mouseup.zoom",function(){i();n(document).off(o,t.move)});h(r);n(document).on(o,t.move);r.preventDefault()}});else if(r.on==="click")u.on("click.zoom",function(r){if(!e){e=!0;h(r);n(document).on(o,t.move);n(document).one("click.zoom",function(){i();e=!1;n(document).off(o,t.move)});return!1}});else if(r.on==="toggle")u.on("click.zoom",function(n){e?i():h(n);e=!e});else if(r.on==="mouseover"){t.init();u.on("mouseenter.zoom",h).on("mouseleave.zoom",i).on(o,t.move)}if(r.touch)u.on("touchstart.zoom",function(n){n.preventDefault();s?(s=!1,i()):(s=!0,h(n.originalEvent.touches[0]||n.originalEvent.changedTouches[0]))}).on("touchmove.zoom",function(n){n.preventDefault();t.move(n.originalEvent.touches[0]||n.originalEvent.changedTouches[0])}).on("touchend.zoom",function(n){n.preventDefault();s&&(s=!1,i())});n.isFunction(r.callback)&&r.callback.call(f)},f.src=r.url)})};n.fn.zoom.defaults=t}(window.jQuery)