/*! jQuery-ui-Slider-Pips - v1.9.2 - 2015-05-07 * Copyright (c) 2015 Simon Goellner ; Licensed MIT */ !function(a){"use strict";var b={pips:function(b){function c(b){if(!h.option("disabled")){var c,d,e,f,g,i=a(b).data("value"),j=h.element;if(h.options.values&&h.options.values.length){for(f=d=j.slider("values"),e=d.map(function(a){return Math.abs(a-i)}),g=Math.min.apply(Math,e),c=0;c'+l.formatLabel(c)+""}var e,f,g,h=this,i="",j=(h.options.max-h.options.min)/h.options.step,k=h.element.find(".ui-slider-handle"),l={first:"label",last:"label",rest:"pip",labels:!1,prefix:"",suffix:"",step:j>100?Math.floor(.05*j):1,formatLabel:function(a){return this.prefix+a+this.suffix}};a.extend(l,b),h.options.pipStep=l.step,h.element.addClass("ui-slider-pips").find(".ui-slider-pip").remove();var m={single:function(a){this.resetClasses(),g.filter(".ui-slider-pip-"+this.classLabel(a)).addClass("ui-slider-pip-selected")},range:function(a){for(this.resetClasses(),e=0;ef;f++)f%h.options.pipStep===0&&(i+=d(f));i+=d("last"),h.element.append(i),g=h.element.find(".ui-slider-pip"),h.element.on("mousedown.selectPip",function(){h.element.off("mouseup.selectPip").one("mouseup.selectPip",".ui-slider-label",function(){c(this)})}),h.element.on("slide.selectPip slidechange.selectPip",function(b,c){var d,e,f=a(this);c?c.values?m.range(c.values):m.single(c.value):(d=f.slider("value"),e=f.slider("values"),e.length?m.range(e):m.single(d))})}};a.extend(!0,a.ui.slider.prototype,b)}(jQuery),function(a){"use strict";var b={"float":function(b){function c(b){var c=[],f=b.map(function(a){return Math.ceil((a-e.options.min)/e.options.step)});if("array"===a.type(h.labels))for(d=0;de.options.max&&(e.options.value=e.options.max),e.options.values&&e.options.values.length)for(d=0;de.options.max&&(e.options.values[d]=e.options.max);if(e.element.addClass("ui-slider-float").find(".ui-slider-tip, .ui-slider-tip-label").remove(),h.handle)for(f=c(e.options.values&&e.options.values.length?e.options.values:[e.options.value]),d=0;d'+h.formatLabel(f[d])+""));h.pips&&e.element.find(".ui-slider-label").each(function(b,d){var e,f,g=a(d),i=[g.data("value")];e=h.formatLabel(c(i)[0]),f=a(''+e+"").insertAfter(g)}),"slide"!==h.event&&"slidechange"!==h.event&&"slide slidechange"!==h.event&&"slidechange slide"!==h.event&&(h.event="slidechange slide"),e.element.on(h.event,function(b,d){var e="array"===a.type(d.value)?d.value:[d.value],f=h.formatLabel(c(e)[0]);a(d.handle).find(".ui-slider-tip").html(f)})}};a.extend(!0,a.ui.slider.prototype,b)}(jQuery);