1!function(t,i){"function"==typeof define&&define.amd?define([],function(){return t.svg4everybody=i()}):"object"==typeof module&&module.exports?module.exports=i():t.svg4everybody=i()}(this,function(){function t(t,i,s){if(s){var e=document.createDocumentFragment(),o=!i.hasAttribute("viewBox")&&s.getAttribute("viewBox");o&&i.setAttribute("viewBox",o);for(var n=s.cloneNode(!0);n.childNodes.length;)e.appendChild(n.firstChild);t.appendChild(e)}}function i(i){i.onreadystatechange=function(){if(4===i.readyState){var s=i._cachedDocument;s||(s=i._cachedDocument=document.implementation.createHTMLDocument(""),s.body.innerHTML=i.responseText,i._cachedTarget={}),i._embeds.splice(0).map(function(e){var o=i._cachedTarget[e.id];o||(o=i._cachedTarget[e.id]=s.getElementById(e.id)),t(e.parent,e.svg,o)})}},i.onreadystatechange()}function s(s){function o(){for(var s=0;s<d.length;){var a=d[s],h=a.parentNode,l=e(h);if(l){var _=a.getAttribute("xlink:href")||a.getAttribute("href");if(n&&(!r.validate||r.validate(_,l,a))){h.removeChild(a);var u=_.split("#"),f=u.shift(),m=u.join("#");if(f.length){var g=c[f];g||(g=c[f]=new XMLHttpRequest,g.open("GET",f),g.send(),g._embeds=[]),g._embeds.push({parent:h,svg:l,id:m}),i(g)}else t(h,document.getElementById(m))}}else++s}p(o,67)}var n,r=Object(s),a=/\bTrident\/[567]\b|\bMSIE (?:9|10)\.0\b/,h=/\bAppleWebKit\/(\d+)\b/,l=/\bEdge\/12\.(\d+)\b/;n="polyfill"in r?r.polyfill:a.test(navigator.userAgent)||(navigator.userAgent.match(l)||[])[1]<10547||(navigator.userAgent.match(h)||[])[1]<537;var c={},p=window.requestAnimationFrame||setTimeout,d=document.getElementsByTagName("use");n&&o()}function e(t){for(var i=t;"svg"!==i.nodeName.toLowerCase()&&(i=i.parentNode););return i}return s}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){var i=-1,s=-1,e=function(t){return parseFloat(t)||0},o=function(i){var s=1,o=t(i),n=null,r=[];return o.each(function(){var i=t(this),o=i.offset().top-e(i.css("margin-top")),a=r.length>0?r[r.length-1]:null;null===a?r.push(i):Math.floor(Math.abs(n-o))<=s?r[r.length-1]=a.add(i):r.push(i),n=o}),r},n=function(i){var s={byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof i?t.extend(s,i):("boolean"==typeof i?s.byRow=i:"remove"===i&&(s.remove=!0),s)},r=t.fn.matchHeight=function(i){var s=n(i);if(s.remove){var e=this;return this.css(s.property,""),t.each(r._groups,function(t,i){i.elements=i.elements.not(e)}),this}return this.length<=1&&!s.target?this:(r._groups.push({elements:this,options:s}),r._apply(this,s),this)};r.version="0.7.0",r._groups=[],r._throttle=80,r._maintainScroll=!1,r._beforeUpdate=null,r._afterUpdate=null,r._rows=o,r._parse=e,r._parseOptions=n,r._apply=function(i,s){var a=n(s),h=t(i),l=[h],c=t(window).scrollTop(),p=t("html").outerHeight(!0),d=h.parents().filter(":hidden");return d.each(function(){var i=t(this);i.data("style-cache",i.attr("style"))}),d.css("display","block"),a.byRow&&!a.target&&(h.each(function(){var i=t(this),s=i.css("display");"inline-block"!==s&&"flex"!==s&&"inline-flex"!==s&&(s="block"),i.data("style-cache",i.attr("style")),i.css({display:s,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),l=o(h),h.each(function(){var i=t(this);i.attr("style",i.data("style-cache")||"")})),t.each(l,function(i,s){var o=t(s),n=0;if(a.target)n=a.target.outerHeight(!1);else{if(a.byRow&&o.length<=1)return void o.css(a.property,"");o.each(function(){var i=t(this),s=i.attr("style"),e=i.css("display");"inline-block"!==e&&"flex"!==e&&"inline-flex"!==e&&(e="block");var o={display:e};o[a.property]="",i.css(o),i.outerHeight(!1)>n&&(n=i.outerHeight(!1)),s?i.attr("style",s):i.css("display","")})}o.each(function(){var i=t(this),s=0;a.target&&i.is(a.target)||("border-box"!==i.css("box-sizing")&&(s+=e(i.css("border-top-width"))+e(i.css("border-bottom-width")),s+=e(i.css("padding-top"))+e(i.css("padding-bottom"))),i.css(a.property,n-s+"px"))})}),d.each(function(){var i=t(this);i.attr("style",i.data("style-cache")||null)}),r._maintainScroll&&t(window).scrollTop(c/p*t("html").outerHeight(!0)),this},r._applyDataApi=function(){var i={};t("[data-match-height], [data-mh]").each(function(){var s=t(this),e=s.attr("data-mh")||s.attr("data-match-height");e in i?i[e]=i[e].add(s):i[e]=s}),t.each(i,function(){this.matchHeight(!0)})};var a=function(i){r._beforeUpdate&&r._beforeUpdate(i,r._groups),t.each(r._groups,function(){r._apply(this.elements,this.options)}),r._afterUpdate&&r._afterUpdate(i,r._groups)};r._update=function(e,o){if(o&&"resize"===o.type){var n=t(window).width();if(n===i)return;i=n}e?s===-1&&(s=setTimeout(function(){a(o),s=-1},r._throttle)):a(o)},t(r._applyDataApi),t(window).bind("load",function(t){r._update(!1,t)}),t(window).bind("resize orientationchange",function(t){r._update(!0,t)})}),!function(t,i,s){"use strict";function e(t,i){var s=null;return function(){var e=this,o=arguments;null===s&&(s=setTimeout(function(){t.apply(e,o),s=null},i))}}var o=function(){var t={};return function(i){if(t[i]!==s)return t[i];var e=document.createElement("div"),o=e.style,n=i.charAt(0).toUpperCase()+i.slice(1),r=["webkit","moz","ms","o"],a=(i+" "+r.join(n+" ")+n).split(" ");
1for(var h in a)if(a[h]in o)return t[i]=a[h];return t[i]=!1}}(),n="http://www.w3.org/2000/svg",r=function(){var t;return function(){if(t!==s)return t;var i=document.createElement("div");return i.innerHTML="<svg/>",t=i.firstChild&&i.firstChild.namespaceURI===n}}(),a=t(i),h=o("transform"),l={itemContainer:"ul",itemSelector:"li",start:"center",fadeIn:400,loop:!1,autoplay:!1,pauseOnHover:!0,style:"coverflow",spacing:-.6,click:!0,keyboard:!0,scrollwheel:!0,touch:!0,nav:!1,buttons:!1,buttonPrev:"Previous",buttonNext:"Next",onItemSwitch:!1},c={main:"flipster",active:"flipster--active",container:"flipster__container",nav:"flipster__nav",navChild:"flipster__nav__child",navItem:"flipster__nav__item",navLink:"flipster__nav__link",navCurrent:"flipster__nav__item--current",navCategory:"flipster__nav__item--category",navCategoryLink:"flipster__nav__link--category",button:"flipster__button",buttonPrev:"flipster__button--prev",buttonNext:"flipster__button--next",item:"flipster__item",itemCurrent:"flipster__item--current",itemPast:"flipster__item--past",itemFuture:"flipster__item--future",itemContent:"flipster__item__content"},p=new RegExp("\\b("+c.itemCurrent+"|"+c.itemPast+"|"+c.itemFuture+")(.*?)(\\s|$)","g"),d=new RegExp("\\s\\s+","g");t.fn.flipster=function(i){var o="string"==typeof i;if(o){var _=Array.prototype.slice.call(arguments,1);return this.each(function(){var s=t(this).data("methods");return s[i]?s[i].apply(this,_):this})}var u=t.extend({},l,i);return this.each(function(){function i(t){var i="next"===t?u.buttonNext:u.buttonPrev;return"custom"!==u.buttons&&r?'<svg viewBox="0 0 13 20" xmlns="'+n+'" aria-labelledby="title"><title>'+i+'</title><polyline points="10,3 3,10 10,17"'+("next"===t?' transform="rotate(180 6.5,10)"':"")+"/></svg>":i}function o(s){return s=s||"next",t('<button class="'+c.button+" "+("next"===s?c.buttonNext:c.buttonPrev)+'" role="button" />').html(i(s)).on("click",function(t){x(s),t.preventDefault()})}function l(){u.buttons&&E.length>1&&(R.find("."+c.button).remove(),R.append(o("prev"),o("next")))}function _(){var i={};!u.nav||E.length<=1||(A&&A.remove(),A=t('<ul class="'+c.nav+'" role="navigation" />'),O=t(""),E.each(function(s){var e=t(this),o=e.data("flip-category"),n=e.data("flip-title")||e.attr("title")||s,r=t('<a href="#" class="'+c.navLink+'">'+n+"</a>").data("index",s);if(O=O.add(r),o){if(!i[o]){var a=t('<li class="'+c.navItem+" "+c.navCategory+'">'),h=t('<a href="#" class="'+c.navLink+" "+c.navCategoryLink+'" data-flip-category="'+o+'">'+o+"</a>").data("category",o).data("index",s);i[o]=t('<ul class="'+c.navChild+'" />'),O=O.add(h),a.append(h,i[o]).appendTo(A)}i[o].append(r)}else A.append(r);r.wrap('<li class="'+c.navItem+'">')}),A.on("click","a",function(i){var s=t(this).data("index");s>=0&&(x(s),i.preventDefault())}),"after"===u.nav?R.append(A):R.prepend(A),L=A.find("."+c.navItem))}function f(){if(u.nav){var i=H.data("flip-category");L.removeClass(c.navCurrent),O.filter(function(){return t(this).data("index")===U||i&&t(this).data("category")===i}).parent().addClass(c.navCurrent)}}function m(){R.css("transition","none"),P.css("transition","none"),E.css("transition","none")}function g(){R.css("transition",""),P.css("transition",""),E.css("transition","")}function v(){var i,s=0;return E.each(function(){i=t(this).height(),i>s&&(s=i)}),s}function b(i){return i&&m(),N=P.width(),P.height(v()),N?(j&&(clearInterval(j),j=!1),void E.each(function(s){var e,o,n=t(this);n.attr("class",function(t,i){return i&&i.replace(p,"").replace(d," ")}),e=n.outerWidth(),0!==u.spacing&&n.css("margin-right",e*u.spacing+"px"),o=n.position().left,W[s]=-1*(o+e/2-N/2),s===E.length-1&&(y(),i&&setTimeout(g,1))})):void(j=j||setInterval(function(){b(i)},500))}function y(){var i,e,o,n=E.length;E.each(function(s){i=t(this),e=" ",s===U?(e+=c.itemCurrent,o=n+1):U>s?(e+=c.itemPast+" "+c.itemPast+"-"+(U-s),o=s):(e+=c.itemFuture+" "+c.itemFuture+"-"+(s-U),o=n-s),i.css("z-index",o).attr("class",function(t,i){return i&&i.replace(p,"").replace(d," ")+e})}),U>=0&&(N&&W[U]!==s||b(!0),h?P.css("transform","translateX("+W[U]+"px)"):P.css({left:W[U]+"px"})),f()}function x(t){var i=U;if(!(E.length<=1))return"prev"===t?U>0?U--:u.loop&&(U=E.length-1):"next"===t?U<E.length-1?U++:u.loop&&(U=0):"number"==typeof t?U=t:t!==s&&(U=E.index(t)),H=E.eq(U),U!==i&&u.onItemSwitch&&u.onItemSwitch.call(R,E[U],E[i]),y(),R}function w(t){return u.autoplay=t||u.autoplay,clearInterval(X),X=setInterval(function(){var t=U;x("next"),t!==U||u.loop||clearInterval(X)},u.autoplay),R}function $(){return clearInterval(X),X=0,R}function k(t){return $(),u.autoplay&&t&&(X=-1),R}function F(){b(!0),R.hide().css("visibility","").addClass(c.active).fadeIn(u.fadeIn)}function C(){return P=R.find(u.itemContainer).addClass(c.container),E=P.find(u.itemSelector),E.length<=1?void 0:(E.addClass(c.item).each(function(){var i=t(this);i.children("."+c.itemContent).length||i.wrapInner('<div class="'+c.itemContent+'" />')}),u.click&&E.on("click.flipster touchend.flipster",function(i){q||(t(this).hasClass(c.itemCurrent)||i.preventDefault(),x(this))}),l(),_(),U>=0&&x(U),R)}
1function T(t){u.keyboard&&(t[0].tabIndex=0,t.on("keydown.flipster",e(function(t){var i=t.which;(37===i||39===i)&&(x(37===i?"prev":"next"),t.preventDefault())},250,!0)))}function D(t){if(u.scrollwheel){var i,s,o=!1,n=0,r=0,h=0;t.on("mousewheel.flipster wheel.flipster",function(){o=!0}).on("mousewheel.flipster wheel.flipster",e(function(t){clearTimeout(r),r=setTimeout(function(){n=0,h=0},300),t=t.originalEvent,h+=t.wheelDelta||-1*(t.deltaY+t.deltaX),Math.abs(h)<25||(n++,i=h>0?"prev":"next",s!==i&&(n=0),s=i,(6>n||n%3===0)&&x(i),h=0)},50)),a.on("mousewheel.flipster wheel.flipster",function(t){o&&(t.preventDefault(),o=!1)})}}function M(t){if(u.touch){var i,s,o,n,r=!1,a=e(x,300);t.on({"touchstart.flipster":function(t){t=t.originalEvent,q=t.touches?t.touches[0].clientX:t.clientX,r=t.touches?t.touches[0].clientY:t.clientY},"touchmove.flipster":e(function(t){q!==!1&&(t=t.originalEvent,i=t.touches?t.touches[0].clientX:t.clientX,s=t.touches?t.touches[0].clientY:t.clientY,o=s-r,n=i-q,Math.abs(o)<100&&Math.abs(n)>=30&&(a(0>n?"next":"prev"),q=i,t.preventDefault()))},100),"touchend.flipster touchcancel.flipster ":function(){q=!1}})}}function I(){var t;if(R.css("visibility","hidden"),C(),E.length<=1)return void R.css("visibility","");t=!!u.style&&"flipster--"+u.style.split(" ").join(" flipster--"),R.addClass([c.main,h?"flipster--transform":" flipster--no-transform",t,u.click?"flipster--click":""].join(" ")),u.start&&(U="center"===u.start?Math.floor(E.length/2):u.start),x(U);var i=R.find("img");if(i.length){var s=0;i.on("load",function(){s++,s>=i.length&&F()}),setTimeout(F,750)}else F();a.on("resize.flipster",e(b,400)),u.autoplay&&w(),u.pauseOnHover&&P.on("mouseenter.flipster",function(){X?k(!0):$()}).on("mouseleave.flipster",function(){-1===X&&w()}),T(R),D(P),M(P)}var S,P,N,j,E,H,A,L,O,R=t(this),W=[],U=0,X=!1,q=!1;S={jump:x,next:function(){return x("next")},prev:function(){return x("prev")},play:w,stop:$,pause:k,index:C},R.data("methods",S),R.hasClass(c.active)||I()})}}(jQuery,window),function(t){"function"==typeof define&&define.amd?define(["jquery"],function(i){return t(i,document,window,navigator)}):"object"==typeof exports?t(require("jquery"),document,window,navigator):t(jQuery,document,window,navigator)}(function(t,i,s,e,o){"use strict";var n=0,r=function(){var i,s=e.userAgent,o=/msie\s\d+/i;return s.search(o)>0&&(i=o.exec(s).toString(),i=i.split(" ")[1],i<9)&&(t("html").addClass("lt-ie9"),!0)}();Function.prototype.bind||(Function.prototype.bind=function(t){var i=this,s=[].slice;if("function"!=typeof i)throw new TypeError;var e=s.call(arguments,1),o=function(){if(this instanceof o){var n=function(){};n.prototype=i.prototype;var r=new n,a=i.apply(r,e.concat(s.call(arguments)));return Object(a)===a?a:r}return i.apply(t,e.concat(s.call(arguments)))};return o}
1),Array.prototype.indexOf||(Array.prototype.indexOf=function(t,i){var s;if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),o=e.length>>>0;if(0===o)return-1;var n=+i||0;if(Math.abs(n)===1/0&&(n=0),n>=o)return-1;for(s=Math.max(n>=0?n:o-Math.abs(n),0);s<o;){if(s in e&&e[s]===t)return s;s++}return-1});var a='<span class="irs"><span class="irs-line" tabindex="-1"><span class="irs-line-left"></span><span class="irs-line-mid"></span><span class="irs-line-right"></span></span><span class="irs-min">0</span><span class="irs-max">1</span><span class="irs-from">0</span><span class="irs-to">0</span><span class="irs-single">0</span></span><span class="irs-grid"></span><span class="irs-bar"></span>',h='<span class="irs-bar-edge"></span><span class="irs-shadow shadow-single"></span><span class="irs-slider single"></span>',l='<span class="irs-shadow shadow-from"></span><span class="irs-shadow shadow-to"></span><span class="irs-slider from"></span><span class="irs-slider to"></span>',c='<span class="irs-disable-mask"></span>',p=function(e,n,r){this.VERSION="2.1.6",this.input=e,this.plugin_count=r,this.current_plugin=0,this.calc_count=0,this.update_tm=0,this.old_from=0,this.old_to=0,this.old_min_interval=null,this.raf_id=null,this.dragging=!1,this.force_redraw=!1,this.no_diapason=!1,this.is_key=!1,this.is_update=!1,this.is_first_update=!0,this.is_start=!0,this.is_finish=!1,this.is_active=!1,this.is_resize=!1,this.is_click=!1,n=n||{},this.$cache={win:t(s),body:t(i.body),input:t(e),cont:null,rs:null,min:null,max:null,from:null,to:null,single:null,bar:null,line:null,s_single:null,s_from:null,s_to:null,shad_single:null,shad_from:null,shad_to:null,edge:null,grid:null,grid_labels:[]},this.coords={x_gap:0,x_pointer:0,w_rs:0,w_rs_old:0,w_handle:0,p_gap:0,p_gap_left:0,p_gap_right:0,p_step:0,p_pointer:0,p_handle:0,p_single_fake:0,p_single_real:0,p_from_fake:0,p_from_real:0,p_to_fake:0,p_to_real:0,p_bar_x:0,p_bar_w:0,grid_gap:0,big_num:0,big:[],big_w:[],big_p:[],big_x:[]},this.labels={w_min:0,w_max:0,w_from:0,w_to:0,w_single:0,p_min:0,p_max:0,p_from_fake:0,p_from_left:0,p_to_fake:0,p_to_left:0,p_single_fake:0,p_single_left:0};var a,h,l,c=this.$cache.input,p=c.prop("value");a={type:"single",min:10,max:100,from:null,to:null,step:1,min_interval:0,max_interval:0,drag_interval:!1,values:[],p_values:[],from_fixed:!1,from_min:null,from_max:null,from_shadow:!1,to_fixed:!1,to_min:null,to_max:null,to_shadow:!1,prettify_enabled:!0,prettify_separator:" ",prettify:null,force_edges:!1,keyboard:!1,keyboard_step:5,grid:!1,grid_margin:!0,grid_num:4,grid_snap:!1,hide_min_max:!1,hide_from_to:!1,prefix:"",postfix:"",max_postfix:"",decorate_both:!0,values_separator:" â ",input_values_separator:";",disable:!1,onStart:null,onChange:null,onFinish:null,onUpdate:null},"INPUT"!==c[0].nodeName&&console&&console.warn&&console.warn("Base element should be <input>!",c[0]),h={type:c.data("type"),min:c.data("min"),max:c.data("max"),from:c.data("from"),to:c.data("to"),step:c.data("step"),min_interval:c.data("minInterval"),max_interval:c.data("maxInterval"),drag_interval:c.data("dragInterval"),values:c.data("values"),from_fixed:c.data("fromFixed"),from_min:c.data("fromMin"),from_max:c.data("fromMax"),from_shadow:c.data("fromShadow"),to_fixed:c.data("toFixed"),to_min:c.data("toMin"),to_max:c.data("toMax"),to_shadow:c.data("toShadow"),prettify_enabled:c.data("prettifyEnabled"),prettify_separator:c.data("prettifySeparator"),force_edges:c.data("forceEdges"),keyboard:c.data("keyboard"),keyboard_step:c.data("keyboardStep"),grid:c.data("grid"),grid_margin:c.data("gridMargin"),grid_num:c.data("gridNum"),grid_snap:c.data("gridSnap"),hide_min_max:c.data("hideMinMax"),hide_from_to:c.data("hideFromTo"),prefix:c.data("prefix"),postfix:c.data("postfix"),max_postfix:c.data("maxPostfix"),decorate_both:c.data("decorateBoth"),values_separator:c.data("valuesSeparator"),input_values_separator:c.data("inputValuesSeparator"),disable:c.data("disable")},h.values=h.values&&h.values.split(",");for(l in h)h.hasOwnProperty(l)&&(h[l]!==o&&""!==h[l]||delete h[l]);p!==o&&""!==p&&(p=p.split(h.input_values_separator||n.input_values_separator||";"),p[0]&&p[0]==+p[0]&&(p[0]=+p[0]),p[1]&&p[1]==+p[1]&&(p[1]=+p[1]),n&&n.values&&n.values.length?(a.from=p[0]&&n.values.indexOf(p[0]),a.to=p[1]&&n.values.indexOf(p[1])):(a.from=p[0]&&+p[0],a.to=p[1]&&+p[1])),t.extend(a,n),t.extend(a,h),this.options=a,this.update_check={},this.validate(),this.result={input:this.$cache.input,slider:null,min:this.options.min,max:this.options.max,from:this.options.from,from_percent:0,from_value:null,to:this.options.to,to_percent:0,to_value:null},this.init()};p.prototype={init:function(t){this.no_diapason=!1,this.coords.p_step=this.convertToPercent(this.options.step,!0),this.target="base",this.toggleInput(),this.append(),this.setMinMax(),t?(this.force_redraw=!0,this.calc(!0),this.callOnUpdate()):(this.force_redraw=!0,this.calc(!0),this.callOnStart()),this.updateScene()},append:function(){var t='<span class="irs js-irs-'+this.plugin_count+'"></span>';this.$cache.input.before(t),this.$cache.input.prop("readonly",!0),this.$cache.cont=this.$cache.input.prev(),this.result.slider=this.$cache.cont,this.$cache.cont.html(a),this.$cache.rs=this.$cache.cont.find(".
1irs"),this.$cache.min=this.$cache.cont.find(".irs-min"),this.$cache.max=this.$cache.cont.find(".irs-max"),this.$cache.from=this.$cache.cont.find(".irs-from"),this.$cache.to=this.$cache.cont.find(".irs-to"),this.$cache.single=this.$cache.cont.find(".irs-single"),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.line=this.$cache.cont.find(".irs-line"),this.$cache.grid=this.$cache.cont.find(".irs-grid"),"single"===this.options.type?(this.$cache.cont.append(h),this.$cache.edge=this.$cache.cont.find(".irs-bar-edge"),this.$cache.s_single=this.$cache.cont.find(".single"),this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.shad_single=this.$cache.cont.find(".shadow-single")):(this.$cache.cont.append(l),this.$cache.s_from=this.$cache.cont.find(".from"),this.$cache.s_to=this.$cache.cont.find(".to"),this.$cache.shad_from=this.$cache.cont.find(".shadow-from"),this.$cache.shad_to=this.$cache.cont.find(".shadow-to"),this.setTopHandler()),this.options.hide_from_to&&(this.$cache.from[0].style.display="none",this.$cache.to[0].style.display="none",this.$cache.single[0].style.display="none"),this.appendGrid(),this.options.disable?(this.appendDisableMask(),this.$cache.input[0].disabled=!0):(this.$cache.cont.removeClass("irs-disabled"),this.$cache.input[0].disabled=!1,this.bindEvents()),this.options.drag_interval&&(this.$cache.bar[0].style.cursor="ew-resize")},setTopHandler:function(){var t=this.options.min,i=this.options.max,s=this.options.from,e=this.options.to;s>t&&e===i?this.$cache.s_from.addClass("type_last"):e<i&&this.$cache.s_to.addClass("type_last")},changeLevel:function(t){switch(t){case"single":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_single_fake);break;case"from":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.$cache.s_from.addClass("state_hover"),this.$cache.s_from.addClass("type_last"),this.$cache.s_to.removeClass("type_last");break;case"to":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_to_fake),this.$cache.s_to.addClass("state_hover"),this.$cache.s_to.addClass("type_last"),this.$cache.s_from.removeClass("type_last");break;case"both":this.coords.p_gap_left=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.coords.p_gap_right=this.toFixed(this.coords.p_to_fake-this.coords.p_pointer),this.$cache.s_to.removeClass("type_last"),this.$cache.s_from.removeClass("type_last")}},appendDisableMask:function(){this.$cache.cont.append(c),this.$cache.cont.addClass("irs-disabled")},remove:function(){this.$cache.cont.remove(),this.$cache.cont=null,this.$cache.line.off("keydown.irs_"+this.plugin_count),this.$cache.body.off("touchmove.irs_"+this.plugin_count),this.$cache.body.off("mousemove.irs_"+this.plugin_count),this.$cache.win.off("touchend.irs_"+this.plugin_count),this.$cache.win.off("mouseup.irs_"+this.plugin_count),r&&(this.$cache.body.off("mouseup.irs_"+this.plugin_count),this.$cache.body.off("mouseleave.irs_"+this.plugin_count)),this.$cache.grid_labels=[],this.coords.big=[],this.coords.big_w=[],this.coords.big_p=[],this.coords.big_x=[],cancelAnimationFrame(this.raf_id)},bindEvents:function(){this.no_diapason||(this.$cache.body.on("touchmove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.body.on("mousemove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.win.on("touchend.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.win.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.line.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.options.drag_interval&&"double"===this.options.type?(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"both")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"both"))):(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),"single"===this.options.type?(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.shad_single.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.edge.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_single.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))):(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),this.options.keyboard&&this.$cache.line.on("key
1down.irs_"+this.plugin_count,this.key.bind(this,"keyboard")),r&&(this.$cache.body.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.body.on("mouseleave.irs_"+this.plugin_count,this.pointerUp.bind(this))))},pointerMove:function(t){if(this.dragging){var i=t.pageX||t.originalEvent.touches&&t.originalEvent.touches[0].pageX;this.coords.x_pointer=i-this.coords.x_gap,this.calc()}},pointerUp:function(i){this.current_plugin===this.plugin_count&&this.is_active&&(this.is_active=!1,this.$cache.cont.find(".state_hover").removeClass("state_hover"),this.force_redraw=!0,r&&t("*").prop("unselectable",!1),this.updateScene(),this.restoreOriginalMinInterval(),(t.contains(this.$cache.cont[0],i.target)||this.dragging)&&this.callOnFinish(),this.dragging=!1)},pointerDown:function(i,s){s.preventDefault();var e=s.pageX||s.originalEvent.touches&&s.originalEvent.touches[0].pageX;2!==s.button&&("both"===i&&this.setTempMinInterval(),i||(i=this.target||"from"),this.current_plugin=this.plugin_count,this.target=i,this.is_active=!0,this.dragging=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=e-this.coords.x_gap,this.calcPointerPercent(),this.changeLevel(i),r&&t("*").prop("unselectable",!0),this.$cache.line.trigger("focus"),this.updateScene())},pointerClick:function(t,i){i.preventDefault();var s=i.pageX||i.originalEvent.touches&&i.originalEvent.touches[0].pageX;2!==i.button&&(this.current_plugin=this.plugin_count,this.target=t,this.is_click=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=+(s-this.coords.x_gap).toFixed(),this.force_redraw=!0,this.calc(),this.$cache.line.trigger("focus"))},key:function(t,i){if(!(this.current_plugin!==this.plugin_count||i.altKey||i.ctrlKey||i.shiftKey||i.metaKey)){switch(i.which){case 83:case 65:case 40:case 37:i.preventDefault(),this.moveByKey(!1);break;case 87:case 68:case 38:case 39:i.preventDefault(),this.moveByKey(!0)}return!0}},moveByKey:function(t){var i=this.coords.p_pointer;t?i+=this.options.keyboard_step:i-=this.options.keyboard_step,this.coords.x_pointer=this.toFixed(this.coords.w_rs/100*i),this.is_key=!0,this.calc()},setMinMax:function(){if(this.options){if(this.options.hide_min_max)return this.$cache.min[0].style.display="none",void(this.$cache.max[0].style.display="none");this.options.values.length?(this.$cache.min.html(this.decorate(this.options.p_values[this.options.min])),this.$cache.max.html(this.decorate(this.options.p_values[this.options.max]))):(this.$cache.min.html(this.decorate(this._prettify(this.options.min),this.options.min)),this.$cache.max.html(this.decorate(this._prettify(this.options.max),this.options.max))),this.labels.w_min=this.$cache.min.outerWidth(!1),this.labels.w_max=this.$cache.max.outerWidth(!1)}},setTempMinInterval:function(){var t=this.result.to-this.result.from;null===this.old_min_interval&&(this.old_min_interval=this.options.min_interval),this.options.min_interval=t},restoreOriginalMinInterval:function(){null!==this.old_min_interval&&(this.options.min_interval=this.old_min_interval,this.old_min_interval=null)},calc:function(t){if(this.options&&(this.calc_count++,(10===this.calc_count||t)&&(this.calc_count=0,this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.calcHandlePercent()),this.coords.w_rs)){this.calcPointerPercent();var i=this.getHandleX();switch("both"===this.target&&(this.coords.p_gap=0,i=this.getHandleX()),"click"===this.target&&(this.coords.p_gap=this.coords.p_handle/2,i=this.getHandleX(),this.options.drag_interval?this.target="both_one":this.target=this.chooseHandle(i)),this.target){case"base":var s=(this.options.max-this.options.min)/100,e=(this.result.from-this.options.min)/s,o=(this.result.to-this.options.min)/s;this.coords.p_single_real=this.toFixed(e),this.coords.p_from_real=this.toFixed(e),this.coords.p_to_real=this.toFixed(o),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real),this.target=null;break;case"single":if(this.options.from_fixed)break;this.coords.p_single_real=this.convertToRealPercent(i),this.coords.p_single_real=this.calcWithStep(this.coords.p_single_real),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real);break;case"from":if(this.options.from_fixed)break;this.coords.p_from_real=this.convertToRealPercent(i),this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real>this.coords.p_to_real&&(this.coords.p_from_real=this.coords.p_to_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_real=this.checkMaxInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);break;case"to":if(this.options.to_fixed)break;this.coords.p_to_real=this.convertToRealPercent(i),this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real<this.coords.p_from_real&&(this.coords.p_to_real=this.coords.p_from_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_real=this.checkMaxInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both":if(this.options.from_fixed||this.options.to_fixed)break;i=this.toFixed(i+.001*this.coords.p_handle),this.coords.p_from_real=this.convertToRealPercent(i)-this.coords.p_gap_left,this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.convertToRealPercent(i)+this.coords.p_gap_right,this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both_one":if(this.options.from_fixed||this.options.to_fixed)break;var n=this.convertToRealPercent(i),r=this.result.from_percent,a=this.result.to_percent,h=a-r,l=h/2,c=n-l,p=n+l;c<0&&(c=0,p=c+h),p>100&&(p=100,c=p-h),this.coords.p_from_real=this.calcWithStep(c),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.calcWithStep(p),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real)}"single"===this.options.type?(this.coords.p_bar_x=this.coords.p_handle/2,this.coords.p_bar_w=this.coords.p_single_fake,this.result.from_percent=this.coords.p_single_real,this.result.from=this.convertToValue(this.coords.p_single_real),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from])):(this.coords.p_bar_x=this.toFixed(this.coords.p_from_fake+this.coords.p_handle/2),this.coords.p_bar_w=this.toFixed(this.coords.p_to_fake-this.coords.p_from_fake),this.result.from_percent=this.coords.p_from_real,this.result.from=this.convertToValue(this.coords.p_from_real),this.result.to_percent=this.coords.p_to_real,this.result.to=this.convertToValue(this.coords.p_to_real),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from],this.result.to_value=this.options.values[this.result.to])),this.calcMinMax(),this.calcLabels()}}
1,calcPointerPercent:function(){return this.coords.w_rs?(this.coords.x_pointer<0||isNaN(this.coords.x_pointer)?this.coords.x_pointer=0:this.coords.x_pointer>this.coords.w_rs&&(this.coords.x_pointer=this.coords.w_rs),void(this.coords.p_pointer=this.toFixed(this.coords.x_pointer/this.coords.w_rs*100))):void(this.coords.p_pointer=0)},convertToRealPercent:function(t){var i=100-this.coords.p_handle;return t/i*100},convertToFakePercent:function(t){var i=100-this.coords.p_handle;return t/100*i},getHandleX:function(){var t=100-this.coords.p_handle,i=this.toFixed(this.coords.p_pointer-this.coords.p_gap);return i<0?i=0:i>t&&(i=t),i},calcHandlePercent:function(){"single"===this.options.type?this.coords.w_handle=this.$cache.s_single.outerWidth(!1):this.coords.w_handle=this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100)},chooseHandle:function(t){if("single"===this.options.type)return"single";var i=this.coords.p_from_real+(this.coords.p_to_real-this.coords.p_from_real)/2;return t>=i?this.options.to_fixed?"from":"to":this.options.from_fixed?"to":"from"},calcMinMax:function(){this.coords.w_rs&&(this.labels.p_min=this.labels.w_min/this.coords.w_rs*100,this.labels.p_max=this.labels.w_max/this.coords.w_rs*100)},calcLabels:function(){this.coords.w_rs&&!this.options.hide_from_to&&("single"===this.options.type?(this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=this.coords.p_single_fake+this.coords.p_handle/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake)):(this.labels.w_from=this.$cache.from.outerWidth(!1),this.labels.p_from_fake=this.labels.w_from/this.coords.w_rs*100,this.labels.p_from_left=this.coords.p_from_fake+this.coords.p_handle/2-this.labels.p_from_fake/2,this.labels.p_from_left=this.toFixed(this.labels.p_from_left),this.labels.p_from_left=this.checkEdges(this.labels.p_from_left,this.labels.p_from_fake),this.labels.w_to=this.$cache.to.outerWidth(!1),this.labels.p_to_fake=this.labels.w_to/this.coords.w_rs*100,this.labels.p_to_left=this.coords.p_to_fake+this.coords.p_handle/2-this.labels.p_to_fake/2,this.labels.p_to_left=this.toFixed(this.labels.p_to_left),this.labels.p_to_left=this.checkEdges(this.labels.p_to_left,this.labels.p_to_fake),this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=(this.labels.p_from_left+this.labels.p_to_left+this.labels.p_to_fake)/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.toFixed(this.labels.p_single_left),this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake)))},updateScene:function(){this.raf_id&&(cancelAnimationFrame(this.raf_id),this.raf_id=null),clearTimeout(this.update_tm),this.update_tm=null,this.options&&(this.drawHandles(),this.is_active?this.raf_id=requestAnimationFrame(this.updateScene.bind(this)):this.update_tm=setTimeout(this.updateScene.bind(this),300))},drawHandles:function(){this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_rs!==this.coords.w_rs_old&&(this.target="base",this.is_resize=!0),(this.coords.w_rs!==this.coords.w_rs_old||this.force_redraw)&&(this.setMinMax(),this.calc(!0),this.drawLabels(),this.options.grid&&(this.calcGridMargin(),this.calcGridLabels()),this.force_redraw=!0,this.coords.w_rs_old=this.coords.w_rs,this.drawShadow()),this.coords.w_rs&&(this.dragging||this.force_redraw||this.is_key)&&((this.old_from!==this.result.from||this.old_to!==this.result.to||this.force_redraw||this.is_key)&&(this.drawLabels(),this.$cache.bar[0].style.left=this.coords.p_bar_x+"%",this.$cache.bar[0].style.width=this.coords.p_bar_w+"%","single"===this.options.type?(this.$cache.s_single[0].style.left=this.coords.p_single_fake+"%",this.$cache.single[0].style.left=this.labels.p_single_left+"%"):(this.$cache.s_from[0].style.left=this.coords.p_from_fake+"%",this.$cache.s_to[0].style.left=this.coords.p_to_fake+"%",(this.old_from!==this.result.from||this.force_redraw)&&(this.$cache.from[0].style.left=this.labels.p_from_left+"%"),(this.old_to!==this.result.to||this.force_redraw)&&(this.$cache.to[0].style.left=this.labels.p_to_left+"%"),this.$cache.single[0].style.left=this.labels.p_single_left+"%"),this.writeToInput(),this.old_from===this.result.from&&this.old_to===this.result.to||this.is_start||(this.$cache.input.trigger("change"),this.$cache.input.trigger("input")),this.old_from=this.result.from,this.old_to=this.result.to,this.is_resize||this.is_update||this.is_start||this.is_finish||this.callOnChange(),(this.is_key||this.is_click||this.is_first_update)&&(this.is_key=!1,this.is_click=!1,this.is_first_update=!1,this.callOnFinish()),this.is_update=!1,this.is_resize=!1,this.is_finish=!1),this.is_start=!1,this.is_key=!1,this.is_click=!1,this.force_redraw=!1))},drawLabels:function(){if(this.options){var t,i,s,e=this.options.values.length,o=this.options.p_values;if(!this.options.hide_from_to)if("single"===this.options.type)e?(t=this.decorate(o[this.result.from]),this.$cache.single.html(t)):(t=this.decorate(this._prettify(this.result.from),this.result.from),this.$cache.single.html(t)),this.calcLabels(),this.labels.p_single_left<this.labels.p_min+1?this.$cache.min[0].style.visibility="hidden":this.$cache.min[0].style.visibility="visible",this.labels.p_single_left+this.labels.p_single_fake>100-this.labels.p_max-1?this.$cache.max[0].style.visibility="hidden":this.$cache.max[0].style.visibility="visible";else{e?(this.options.decorate_both?(t=this.decorate(o[this.result.from]),t+=this.options.values_separator,t+=this.decorate(o[this.result.to])):t=this.decorate(o[this.result.from]+this.options.values_separator+o[this.result.to]),i=this.decorate(o[this.result.from]),s=this.decorate(o[this.result.to]),this.$cache.single.html(t),this.$cache.from.html(i),this.$cache.to.html(s)):(this.options.decorate_both?(t=this.decorate(this._prettify(this.result.from),this.result.from),t+=this.options.values_separator,t+=this.decorate(this._prettify(this.result.to),this.result.to)):t=this.decorate(this._prettify(this.result.from)+this.options.values_separator+this._prettify(this.result.to),this.result.to),i=this.decorate(this._prettify(this.result.from),this.result.from),s=this.decorate(this._prettify(this.result.to),this.result.to),this.$cache.single.html(t),this.$cache.from.html(i),this.$cache.to.html(s)),this.calcLabels();var n=Math.min(this.labels.p_single_left,this.labels.p_from_left),r=this.labels.p_single_left+this.labels.p_single_fake,a=this.labels.p_to_left+this.labels.p_to_fake,h=Math.max(r,a);this.labels.p_from_left+this.labels.p_from_fake>=this.labels.p_to_left?(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",this.result.from===this.result.to?("from"===this.target?this.$cache.from[0].style.visibility="visible":"to"===this.target?this.$cache.to[0].style.visibility="visible":this.target||(this.$cache.from[0].style.visibility="visible"),this.$cache.single[0].style.visibility="hidden",h=a):(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",h=Math.max(r,a))):(this.$cache.from[0].style.visibility="visible",this.$cache.to[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden"),n<this.labels.p_min+1?this.$cache.min[0].style.visibility="hidden":this.$cache.min[0].style.visibility="visible",h>100-this.labels.p_max-1?this.$cache.max[0].style.visibility="hidden":this.$cache.max[0].style.visibility="visible"}}},drawShadow:function(){var t,i,s,e,o=this.options,n=this.$cache,r="number"==typeof o.from_min&&!isNaN(o.from_min),a="number"==typeof o.from_max&&!isNaN(o.from_max),h="number"==typeof o.to_min&&!isNaN(o.to_min),l="number"==typeof o.to_max&&!isNaN(o.to_max);"single"===o.type?o.from_shadow&&(r||a)?(t=this.convertToPercent(r?o.from_min:o.min),i=this.convertToPercent(a?o.from_max:o.max)-t,t=this.toFixed(t-this.coords.p_handle/100*t),i=this.toFixed(i-this.coords.p_handle/100*i),t+=this.coords.p_handle/2,n.shad_single[0].style.display="block",n.shad_single[0].style.left=t+"%",n.shad_single[0].style.width=i+"%"):n.shad_single[0].style.display="none":(o.from_shadow&&(r||a)?(t=this.convertToPercent(r?o.from_min:o.min),i=this.convertToPercent(a?o.from_max:o.max)-t,t=this.toFixed(t-this.coords.p_handle/100*t),i=this.toFixed(i-this.coords.p_handle/100*i),t+=this.coords.p_handle/2,n.shad_from[0].style.display="block",n.shad_from[0].style.left=t+"%",n.shad_from[0].style.width=i+"%"):n.shad_from[0].style.display="none",o.to_shadow&&(h||l)?(s=this.convertToPercent(h?o.to_min:o.min),e=this.convertToPercent(l?o.to_max:o.max)-s,s=this.toFixed(s-this.coords.p_handle/100*s),e=this.toFixed(e-this.coords.p_handle/100*e),s+=this.coords.p_handle/2,n.shad_to[0].style.display="block",n.shad_to[0].style.left=s+"%",n.shad_to[0].style.width=e+"%"):n.shad_to[0].style.display="none")}
1,writeToInput:function(){"single"===this.options.type?(this.options.values.length?this.$cache.input.prop("value",this.result.from_value):this.$cache.input.prop("value",this.result.from),this.$cache.input.data("from",this.result.from)):(this.options.values.length?this.$cache.input.prop("value",this.result.from_value+this.options.input_values_separator+this.result.to_value):this.$cache.input.prop("value",this.result.from+this.options.input_values_separator+this.result.to),this.$cache.input.data("from",this.result.from),this.$cache.input.data("to",this.result.to))},callOnStart:function(){this.writeToInput(),this.options.onStart&&"function"==typeof this.options.onStart&&this.options.onStart(this.result)},callOnChange:function(){this.writeToInput(),this.options.onChange&&"function"==typeof this.options.onChange&&this.options.onChange(this.result)},callOnFinish:function(){this.writeToInput(),this.options.onFinish&&"function"==typeof this.options.onFinish&&this.options.onFinish(this.result)},callOnUpdate:function(){this.writeToInput(),this.options.onUpdate&&"function"==typeof this.options.onUpdate&&this.options.onUpdate(this.result)},toggleInput:function(){this.$cache.input.toggleClass("irs-hidden-input")},convertToPercent:function(t,i){var s,e,o=this.options.max-this.options.min,n=o/100;return o?(s=i?t:t-this.options.min,e=s/n,this.toFixed(e)):(this.no_diapason=!0,0)},convertToValue:function(t){var i,s,e=this.options.min,o=this.options.max,n=e.toString().split(".")[1],r=o.toString().split(".")[1],a=0,h=0;if(0===t)return this.options.min;if(100===t)return this.options.max;n&&(i=n.length,a=i),r&&(s=r.length,a=s),i&&s&&(a=i>=s?i:s),e<0&&(h=Math.abs(e),e=+(e+h).toFixed(a),o=+(o+h).toFixed(a));var l,c=(o-e)/100*t+e,p=this.options.step.toString().split(".")[1];return p?c=+c.toFixed(p.length):(c/=this.options.step,c*=this.options.step,c=+c.toFixed(0)),h&&(c-=h),l=p?+c.toFixed(p.length):this.toFixed(c),l<this.options.min?l=this.options.min:l>this.options.max&&(l=this.options.max),l},calcWithStep:function(t){var i=Math.round(t/this.coords.p_step)*this.coords.p_step;return i>100&&(i=100),100===t&&(i=100),this.toFixed(i)},checkMinInterval:function(t,i,s){var e,o,n=this.options;return n.min_interval?(e=this.convertToValue(t),o=this.convertToValue(i),"from"===s?o-e<n.min_interval&&(e=o-n.min_interval):e-o<n.min_interval&&(e=o+n.min_interval),this.convertToPercent(e)):t},checkMaxInterval:function(t,i,s){var e,o,n=this.options;return n.max_interval?(e=this.convertToValue(t),o=this.convertToValue(i),"from"===s?o-e>n.max_interval&&(e=o-n.max_interval):e-o>n.max_interval&&(e=o+n.max_interval),this.convertToPercent(e)):t},checkDiapason:function(t,i,s){var e=this.convertToValue(t),o=this.options;return"number"!=typeof i&&(i=o.min),"number"!=typeof s&&(s=o.max),e<i&&(e=i),e>s&&(e=s),this.convertToPercent(e)},toFixed:function(t){return t=t.toFixed(20),+t},_prettify:function(t){return this.options.prettify_enabled?this.options.prettify&&"function"==typeof this.options.prettify?this.options.prettify(t):this.prettify(t):t},prettify:function(t){var i=t.toString();return i.replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g,"$1"+this.options.prettify_separator)},checkEdges:function(t,i){return this.options.force_edges?(t<0?t=0:t>100-i&&(t=100-i),this.toFixed(t)):this.toFixed(t)},validate:function(){var t,i,s=this.options,e=this.result,o=s.values,n=o.length;if("string"==typeof s.min&&(s.min=+s.min),"string"==typeof s.max&&(s.max=+s.max),"string"==typeof s.from&&(s.from=+s.from),"string"==typeof s.to&&(s.to=+s.to),"string"==typeof s.step&&(s.step=+s.step),"string"==typeof s.from_min&&(s.from_min=+s.from_min),"string"==typeof s.from_max&&(s.from_max=+s.from_max),"string"==typeof s.to_min&&(s.to_min=+s.to_min),"string"==typeof s.to_max&&(s.to_max=+s.to_max),"string"==typeof s.keyboard_step&&(s.keyboard_step=+s.keyboard_step),"string"==typeof s.grid_num&&(s.grid_num=+s.grid_num),s.max<s.min&&(s.max=s.min),n)for(s.p_values=[],s.min=0,s.max=n-1,s.step=1,s.grid_num=s.max,s.grid_snap=!0,i=0;i<n;i++)t=+o[i],isNaN(t)?t=o[i]:(o[i]=t,t=this._prettify(t)),s.p_values.push(t);("number"!=typeof s.from||isNaN(s.from))&&(s.from=s.min),("number"!=typeof s.to||isNaN(s.to))&&(s.to=s.max),"single"===s.type?(s.from<s.min&&(s.from=s.min),s.from>
1s.max&&(s.from=s.max)):(s.from<s.min&&(s.from=s.min),s.from>s.max&&(s.from=s.max),s.to<s.min&&(s.to=s.min),s.to>s.max&&(s.to=s.max),this.update_check.from&&(this.update_check.from!==s.from&&s.from>s.to&&(s.from=s.to),this.update_check.to!==s.to&&s.to<s.from&&(s.to=s.from)),s.from>s.to&&(s.from=s.to),s.to<s.from&&(s.to=s.from)),("number"!=typeof s.step||isNaN(s.step)||!s.step||s.step<0)&&(s.step=1),("number"!=typeof s.keyboard_step||isNaN(s.keyboard_step)||!s.keyboard_step||s.keyboard_step<0)&&(s.keyboard_step=5),"number"==typeof s.from_min&&s.from<s.from_min&&(s.from=s.from_min),"number"==typeof s.from_max&&s.from>s.from_max&&(s.from=s.from_max),"number"==typeof s.to_min&&s.to<s.to_min&&(s.to=s.to_min),"number"==typeof s.to_max&&s.from>s.to_max&&(s.to=s.to_max),e&&(e.min!==s.min&&(e.min=s.min),e.max!==s.max&&(e.max=s.max),(e.from<e.min||e.from>e.max)&&(e.from=s.from),(e.to<e.min||e.to>e.max)&&(e.to=s.to)),("number"!=typeof s.min_interval||isNaN(s.min_interval)||!s.min_interval||s.min_interval<0)&&(s.min_interval=0),("number"!=typeof s.max_interval||isNaN(s.max_interval)||!s.max_interval||s.max_interval<0)&&(s.max_interval=0),s.min_interval&&s.min_interval>s.max-s.min&&(s.min_interval=s.max-s.min),s.max_interval&&s.max_interval>s.max-s.min&&(s.max_interval=s.max-s.min)},decorate:function(t,i){var s="",e=this.options;return e.prefix&&(s+=e.prefix),s+=t,e.max_postfix&&(e.values.length&&t===e.p_values[e.max]?(s+=e.max_postfix,e.postfix&&(s+=" ")):i===e.max&&(s+=e.max_postfix,e.postfix&&(s+=" "))),e.postfix&&(s+=e.postfix),s},updateFrom:function(){this.result.from=this.options.from,this.result.from_percent=this.convertToPercent(this.result.from),this.options.values&&(this.result.from_value=this.options.values[this.result.from])},updateTo:function(){this.result.to=this.options.to,this.result.to_percent=this.convertToPercent(this.result.to),this.options.values&&(this.result.to_value=this.options.values[this.result.to])},updateResult:function(){this.result.min=this.options.min,this.result.max=this.options.max,this.updateFrom(),this.updateTo()},appendGrid:function(){if(this.options.grid){var t,i,s,e,o,n=this.options,r=n.max-n.min,a=n.grid_num,h=0,l=0,c=4,p=0,d="";for(this.calcGridMargin(),n.grid_snap?(a=r/n.step,h=this.toFixed(n.step/(r/100))):h=this.toFixed(100/a),a>4&&(c=3),a>7&&(c=2),a>14&&(c=1),a>28&&(c=0),t=0;t<a+1;t++){for(s=c,l=this.toFixed(h*t),l>100&&(l=100,s-=2,s<0&&(s=0)),this.coords.big[t]=l,e=(l-h*(t-1))/(s+1),i=1;i<=s&&0!==l;i++)p=this.toFixed(l-e*i),d+='<span class="irs-grid-pol small" style="left: '+p+'%"></span>';d+='<span class="irs-grid-pol" style="left: '+l+'%"></span>',o=this.convertToValue(l),o=n.values.length?n.p_values[o]:this._prettify(o),d+='<span class="irs-grid-text js-grid-text-'+t+'" style="left: '+l+'%">'+o+"</span>"}this.coords.big_num=Math.ceil(a+1),this.$cache.cont.addClass("irs-with-grid"),this.$cache.grid.html(d),this.cacheGridLabels()}},cacheGridLabels:function(){var t,i,s=this.coords.big_num;for(i=0;i<s;i++)t=this.$cache.grid.find(".js-grid-text-"+i),this.$cache.grid_labels.push(t);this.calcGridLabels()},calcGridLabels:function(){var t,i,s=[],e=[],o=this.coords.big_num;for(t=0;t<o;t++)this.coords.big_w[t]=this.$cache.grid_labels[t].outerWidth(!1),this.coords.big_p[t]=this.toFixed(this.coords.big_w[t]/this.coords.w_rs*100),this.coords.big_x[t]=this.toFixed(this.coords.big_p[t]/2),s[t]=this.toFixed(this.coords.big[t]-this.coords.big_x[t]),e[t]=this.toFixed(s[t]+this.coords.big_p[t]);for(this.options.force_edges&&(s[0]<-this.coords.grid_gap&&(s[0]=-this.coords.grid_gap,e[0]=this.toFixed(s[0]+this.coords.big_p[0]),this.coords.big_x[0]=this.coords.grid_gap),e[o-1]>100+this.coords.grid_gap&&(e[o-1]=100+this.coords.grid_gap,s[o-1]=this.toFixed(e[o-1]-this.coords.big_p[o-1]),this.coords.big_x[o-1]=this.toFixed(this.coords.big_p[o-1]-this.coords.grid_gap))),this.calcGridCollision(2,s,e),this.calcGridCollision(4,s,e),t=0;t<o;t++)i=this.$cache.grid_labels[t][0],this.coords.big_x[t]!==Number.POSITIVE_INFINITY&&(i.style.marginLeft=-this.coords.big_x[t]+"%")},calcGridCollision:function(t,i,s){var e,o,n,r=this.coords.big_num;for(e=0;e<r&&(o=e+t/2,!(o>=r));e+=t)n=this.$cache.grid_labels[o][0],s[e]<=i[o]?n.style.visibility="visible":n.style.visibility="hidden"},calcGridMargin:function(){this.options.grid_margin&&(this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&("single"===this.options.type?this.coords.w_handle=this.$cache.s_single.outerWidth(!1):this.coords.w_handle=this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100),this.coords.grid_gap=this.toFixed(this.coords.p_handle/2-.1),this.$cache.grid[
10].style.width=this.toFixed(100-this.coords.p_handle)+"%",this.$cache.grid[0].style.left=this.coords.grid_gap+"%"))},update:function(i){this.input&&(this.is_update=!0,this.options.from=this.result.from,this.options.to=this.result.to,this.update_check.from=this.result.from,this.update_check.to=this.result.to,this.options=t.extend(this.options,i),this.validate(),this.updateResult(i),this.toggleInput(),this.remove(),this.init(!0))},reset:function(){this.input&&(this.updateResult(),this.update())},destroy:function(){this.input&&(this.toggleInput(),this.$cache.input.prop("readonly",!1),t.data(this.input,"ionRangeSlider",null),this.remove(),this.input=null,this.options=null)}},t.fn.ionRangeSlider=function(i){return this.each(function(){t.data(this,"ionRangeSlider")||t.data(this,"ionRangeSlider",new p(this,i,(n++)))})},function(){for(var t=0,i=["ms","moz","webkit","o"],e=0;e<i.length&&!s.requestAnimationFrame;++e)s.requestAnimationFrame=s[i[e]+"RequestAnimationFrame"],s.cancelAnimationFrame=s[i[e]+"CancelAnimationFrame"]||s[i[e]+"CancelRequestAnimationFrame"];s.requestAnimationFrame||(s.requestAnimationFrame=function(i,e){var o=(new Date).getTime(),n=Math.max(0,16-(o-t)),r=s.setTimeout(function(){i(o+n)},n);return t=o+n,r}),s.cancelAnimationFrame||(s.cancelAnimationFrame=function(t){clearTimeout(t)})}()}),function(t){function s(t){var s=[],e=[],o={};for(i=0;i<t.length;++i)e.push(t[i].value),s[t[i].value]=t[i].label;return o.values=s,o.range=e,o}function o(i){t.ajax({url:cc.ajax_url,data:{nonce:cc.nonce,action:"do_get_datacenter",post_id:Math.abs(i)},type:"post",dataType:"json",success:function(i,s,e){html=t.parseHTML(i),t(".datacenter-preview").html(html)},error:function(t,i,s){}})}t('[data-toggle="offcanvas"]').click(function(){t("body").toggleClass("nav-active"),t(".sidebar-offcanvas").css("top",t(window).scrollTop())}),t(".nav-offcanvas a").not(":only-child").click(function(i){i.preventDefault&&i.preventDefault(),t(this).parent("li").toggleClass("open")}),t(document).ready(function(){function i(i){rack=t(".rack"),input=t(i.input[0]),label=input.parent(".slide-wrap").next(".label-right"),target=input.data("target"),json=t.parseJSON(input.next("input").val()),json=s(json),value=json.values[i.from_value],"unit"===target&&rack.length?(rack.find("li").removeClass("active"),e=rack.find("li").slice(-Math.abs(i.from_value)),e.addClass("active")):""!==target&&t("."+target).html(value),label.html(value)}t("a[data-scrollto]").click(function(i){i.preventDefault&&i.preventDefault(),$target=t(this).data("scrollto"),$section=t("#"+$target),$section.length?t("html,body").animate({scrollTop:$section.offset().top-t(".banner").height()},600):window.location.href=t(this).attr("href")+"#!"+$target}),hashScroll=location.hash.substr(2),$section=t(hashScroll),$section.length&&t("html,body").animate({scrollTop:$section.offset().top-t(".banner").height()},600),svg4everybody(),document.addEventListener("gesturestart",function(t){t.preventDefault()}),$carousel=t("#coverflow"),$carousel.length&&$carousel.flipster({itemContainer:"ul",itemSelector:"li",start:"center",fadeIn:400,loop:!0,autoplay:!1,pauseOnHover:!0,style:"flat",spacing:-.5,click:!0,keyboard:!0,scrollwheel:!1,touch:!0,nav:"after",buttons:!0,buttonPrev:"Previous",buttonNext:"Next",onItemSwitch:!1}),t(window).width()>991&&(t(".wgt-home-intro h3").matchHeight(),t(".wgt-home-intro .entry-summary").matchHeight()),t(".wgt-services-packs h3").matchHeight(),t(".wgt-services-managed .entry-summary").matchHeight(),t(".wgt-benefits-columns h3").matchHeight(),t(".wgt-benefits-columns .entry-summary").matchHeight(),t(".nav-tabs a").click(function(i){i.preventDefault&&i.preventDefault(),$tabbed=t(this).closest(".tabbed"),$tabbed.find(".active").removeClass("active"),$tabbed.find(t(this).attr("href")).addClass("active"),t(this).parent("li").addClass("active")}),t(".main").on("click",".accordion a",function(i){i.preventDefault&&i.preventDefault(),$accordion=t(this).closest(".accordion"),$accordion.find(".active").removeClass("active"),t(this).parent("li").addClass("active")});for(var n=document.getElementsByClassName("slider"),r=0;r<n.length;r++)json=t(n[r]).next("input").val(),json=t.parseJSON(json),json=s(json),t(n[r]).ionRangeSlider({type:"single",from:1,values:json.range,onChange:i(data)});t(".toggle-datacenters").click(function(i){i.preventDefault&&i.preventDefault(),t(".datacenters-select-wrap").toggleClass("open")}),t(".datacenters-select a").click(function(i){i.preventDefault&&i.preventDefault(),t(".datacenters-select .active").removeClass("active"),t(this).parent("li").addClass("active"),t(".datacenters-select-wrap").toggleClass("open"),o(t(this).data("item"))}),t(".type-3 .datacenter-map a").click(function(i){i.preventDefault&&i.preventDefault(),o(t(this).data("item"))})})}(jQuery);function openInNewTab(url){var win=window.open(url,'_blank');win.focus()} 2jQuery(document).on("click","#colocation-hardware-lto-bundle .button-wrap a, #supermicro-intel-xeon-e3-1240v1-v2-1270v1-v2 .button-wrap a",function(e){return!1});jQuery(document).on("click",".menu-item-quote-request, .request_quote_btn, #colocation-hardware-lto-bundle .button-wrap a, #supermicro-intel-xeon-e3-1240v1-v2-1270v1-v2 .button-wrap a, .colocations-list .btn-blue-dk, #dedicated-server-hosting .btn-green-dk, .dnn-hosting .wgt-content-1col .btn-blue-dk",function(e){e.preventDefault();$("#requestQuote").modal("toggle")});jQuery(document).on("click",".fact-item a:first-child",function(e){});jQuery(document).on("submit","#requestQuoteForm, #contactForm",function(e){jQuery("#msg").html("");var form_data=jQuery(this).serializeArray();form_data.push({"name":"security","value":ajax_nonce});jQuery.ajax({url:ajax_url,type:'post',data:form_data,beforeSend:function(){$("#loader").show()},success:function(response){if(response.status){$("#requestQuoteForm, #contactForm")[0].reset();setTimeout(function(){window.location.href="https://www.colocrossing.com/quote-request-confirm/"},1000)} 3jQuery("#msg").html(response.msg)},fail:function(err){alert(err)},complete:function(){$("#loader").hide()},});return!1});document.addEventListener('DOMContentLoaded',function(){jQuery('.nav_menu-3 h2').wrapInner('<a href="https://www.colocrossing.com/colocation/" class="footer-heading-link"></a>')},!1);window.onload=function(){loadZCPopup('3z832f94d25abab2aa645307fcfc94d66e1ce402f011cde50c73092c640adf6674','ZCFORMVIEW','3za50acd313fb00a0ec6adc8f5ed75d010')}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.