1!function(s){s.fn.ezMark=function(t){var e={checkboxCls:(t=t||{}).checkboxCls||"ez-checkbox",radioCls:t.radioCls||"ez-radio",checkedCls:t.checkedCls||"ez-checked",selectedCls:t.selectedCls||"ez-selected",hideCls:"ez-hide"};return this.each(function(){var t=s(this),i="checkbox"==t.attr("type")?'<div class="'+e.checkboxCls+'">':'<div class="'+e.radioCls+'">';"checkbox"==t.attr("type")?(t.addClass(e.hideCls).wrap(i).change(function(){s(this).is(":checked")?s(this).parent().addClass(e.checkedCls):s(this).parent().removeClass(e.checkedCls)}),t.is(":checked")&&t.parent().addClass(e.checkedCls)):"radio"==t.attr("type")&&(t.addClass(e.hideCls).wrap(i).change(function(){s('input[name="'+s(this).attr("name")+'"]').each(function(){s(this).is(":checked")?s(this).parent().addClass(e.selectedCls):s(this).parent().removeClass(e.selectedCls)})}),t.is(":checked")&&t.parent().addClass(e.selectedCls))})}}(jQuery),function(i){i.fn.touchwipe=function(t){var a={min_move_x:20,min_move_y:20,wipeLeft:function(){},wipeRight:function(){},wipeUp:function(){},wipeDown:function(){},preventDefaultEvents:!0};return t&&i.extend(a,t),this.each(function(){var e,s,o=!1;function n(){this.removeEventListener("touchmove",i),e=null,o=!1}function i(t){var i;a.preventDefaultEvents&&t.preventDefault(),o&&(i=t.touches[0].pageX,t=t.touches[0].pageY,i=e-i,t=s-t,Math.abs(i)>=a.min_move_x?(n(),0<i?a.wipeLeft():a.wipeRight()):Math.abs(t)>=a.min_move_y&&(n(),0<t?a.wipeDown():a.wipeUp()))}"ontouchstart"in document.documentElement&&this.addEventListener("touchstart",function(t){1==t.touches.length&&(e=t.touches[0].pageX,s=t.touches[0].pageY,o=!0,this.addEventListener("touchmove",i,!1))},!1)}),this}}(jQuery),function(h){h.fn.unveil=function(t,i){var e,o=h(window),n=t||0,s=1<window.devicePixelRatio?"data-src-retina":"data-src",a=this;function r(){var t=a.filter(function(){var t=h(this),i=o.scrollTop(),e=i+o.height(),s=t.offset().top,t=s+t.height();return i-n<=t&&s<=e+n});e=t.trigger("unveil"),a=a.not(e)}return this.one("unveil",function(){var t;(t=this.getAttribute(s)||this.getAttribute("data-src"))&&(this.setAttribute("src",t),"function"==typeof i&&i.call(this))}),o.on("scroll.unveil resize.unveil lookup.unveil",r),r(),this}}(window.jQuery||window.Zepto),function(i){"undefined"!=typeof jQuery&&jQuery||"function"!=typeof define||!define.amd?"undefined"!=typeof jQuery&&jQuery||"object"!=typeof exports?i(jQuery,document,window,navigator):i(require("jquery"),document,window,navigator):define(["jquery"],function(t){return i(t,document,window,navigator)})}(function(a,r,h,t,c){"use strict";function i(t,i,e){this.VERSION="2.3.1",this.input=t,this.plugin_count=e,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.has_tab_index=!0,this.is_key=!1,this.is_update=!1,this.is_start=!0,this.is_finish=!1,this.is_active=!1,this.is_resize=!1,this.is_click=!1,i=i||{},this.$cache={win:a(h),body:a(r.body),input:a(t),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 s,o,t=(e=this.$cache.input).prop("value"),n={skin:"flat",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:!0,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,block:!1,extra_classes:"",scope:null,onStart:null,onChange:null,onFinish:null,onUpdate:null};for(o in"INPUT"!==e[0].nodeName&&console&&console.warn&&console.warn("Base element should be <input>!",e[0]),(s={skin:e.data("skin"),type:e.data("type"),min:e.data("min"),max:e.data("max"),from:e.data("from"),to:e.data("to"),step:e.data("step"),min_interval:e.data("minInterval"),max_interval:e.data("maxInterval"),drag_interval:e.data("dragInterval"),values:e.data("values"),from_fixed:e.data("fromFixed"),from_min:e.data("fromMin"),from_max:e.data("fromMax"),from_shadow:e.data("fromShadow"),to_fixed:e.data("toFixed"),to_min:e.data("toMin"),to_max:e.data("toMax"),to_shadow:e.data("toShadow"),prettify_enabled:e.data("prettifyEnabled"),prettify_separator:e.data("prettifySeparator"),force_edges:e.data("forceEdges"),keyboard:e.data("keyboard"),grid:e.data("grid"),grid_margin:e.data("gridMargin"),grid_num:e.data("gridNum"),grid_snap:e.data("gridSnap"),hide_min_max:e.data("hideMinMax"),hide_from_to:e.data("hideFromTo"),prefix:e.data("prefix"),postfix:e.data("postfix"),max_postfix:e.data("maxPostfix"),decorate_both:e.data("decorateBoth"),values_separator:e.data("valuesSeparator"),input_values_separator:e.data("inputValuesSeparator"),disable:e.data("disable"),block:e.data("block"),extra_classes:e.data("extraClasse
1s")}).values=s.values&&s.values.split(","),s)!s.hasOwnProperty(o)||s[o]!==c&&""!==s[o]||delete s[o];t!==c&&""!==t&&((t=t.split(s.input_values_separator||i.input_values_separator||";"))[0]&&t[0]==+t[0]&&(t[0]=+t[0]),t[1]&&t[1]==+t[1]&&(t[1]=+t[1]),i&&i.values&&i.values.length?(n.from=t[0]&&i.values.indexOf(t[0]),n.to=t[1]&&i.values.indexOf(t[1])):(n.from=t[0]&&+t[0],n.to=t[1]&&+t[1])),a.extend(n,i),a.extend(n,s),this.options=n,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()}var e,s=0,o=(t=t.userAgent,e=/msie\s\d+/i,0<t.search(e)&&e.exec(t).toString().split(" ")[1]<9&&(a("html").addClass("lt-ie9"),!0));Function.prototype.bind||(Function.prototype.bind=function(e){var s=this,o=[].slice;if("function"!=typeof s)throw new TypeError;var n=o.call(arguments,1),a=function(){var t,i;return this instanceof a?((t=function(){}).prototype=s.prototype,t=new t,i=s.apply(t,n.concat(o.call(arguments))),Object(i)===i?i:t):s.apply(e,n.concat(o.call(arguments)))};return a}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t,i){var e;if(null==this)throw new TypeError('"this" is null or not defined');var s=Object(this),o=s.length>>>0;if(0==o)return-1;i=+i||0;if(o<=(i=Math.abs(i)===1/0?0:i))return-1;for(e=Math.max(0<=i?i:o-Math.abs(i),0);e<o;){if(e in s&&s[e]===t)return e;e++}return-1});i.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.callOnStar
vendor: 2,620 bytes, line 1
1t()),this.updateScene()},append:function(){var t='<span class="irs irs--'+this.options.skin+" js-irs-"+this.plugin_count+" "+this.options.extra_classes+'"></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('<span class="irs"><span class="irs-line" tabindex="0"></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>'),this.$cache.rs=this.$cache.cont.find(".irs"),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.line=this.$cache.cont.find(".irs-line"),this.$cache.grid=this.$cache.cont.find(".irs-grid"),"single"===this.options.type?(this.$cache.cont.append('<span class="irs-bar irs-bar--single"></span><span class="irs-shadow shadow-single"></span><span class="irs-handle single"><i></i><i></i><i></i></span>'),this.$cache.bar=this.$cache.cont.find(".irs-bar"),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('<span class="irs-bar"></span><span class="irs-shadow shadow-from"></span><span class="irs-shadow shadow-to"></span><span class="irs-handle from"><i></i><i></i><i></i></span><span class="irs-handle to"><i></i><i></i><i></i></span>'),this.$cache.bar=this.$cache.cont.find(".irs-bar"),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.input[0].disabled=!1,this.removeDisableMask(),this.bindEvents()),this.options.disable||(this.options.block?this.appendDisableMask():this.removeDisableMask()),this.options.drag_interval&&(this.$cache.bar[0].style.cursor="ew-resize")},setTopHandler:function(){var t=this.options.min,i=this.options.max,
vendor: 4,997 bytes, line 1
1e=this.options.from,s=this.options.to;t<e&&s===i?this.$cache.s_from.addClass("type_last"):s<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),this.$cache.s_single.addClass("state_hover");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('<span class="irs-disable-mask"></span>'),this.$cache.cont.addClass("irs-disabled")},removeDisableMask:function(){this.$cache.cont.remove(".irs-disable-mask"),this.$cache.cont.removeClass("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),o&&(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.$cache.line.on("focus.irs_"+this.plugin_count,this.pointerFocus.bind(this)),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")),o&&(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))))},pointerFocus:function(t){var i,e;this.target||(e=(i="single"===this.options.type?this.$cache.single:this.$cache.from).offset().left,e+=i.width()/2-1,this.pointerClick("single",{preventDefault:function(){},pageX:e}))},pointerMove:function(t){this.dragging&&(t=t.pageX||t.originalEvent.touches&&t.originalEvent.touches[0].pageX,this.coords.x_pointer=t-this.coords.x_gap,this.calc())},pointerUp:function(t){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,o&&a("*").prop("unselectable",!1),this.updateScene(),this.restoreOriginalMinInterval(),(a.contains(this.$cache.cont[0],t.target)||this.dragging)&&this.callOnFinish(),this.dragging=!1)},pointerDown:function(t,i){i.preventDefault();var e=i.pageX||i.originalEvent.touches&&i.originalEvent.touches[0].pageX;2!==i.button&&("both"===t&&this.setTempMinInterval(),t=t||(this.target||"from"),this.current_plugin=this.plugin_count,this.target=t,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(t),o&&a("*").prop("unselectable",!0),this.$cache.line.trigger("focus"),this.updateScene())},pointerClick:function(t,i){i.preventDefault();var e=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=+(e-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,e=(this.options.max-this.options.min)/100,e=this.options.step/e;t?i+=e:i-=e,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");var t,i;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]))):(t=this._prettify(this.options.min),i=this._prettify(this.options.max),this.result.min_pretty=t,this.result.max_pretty=i,this.$cache.min.html(this.decorate(t,this.options.min)),this.$cache.max.html(this.decorate(i,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 e=(this.options.max-this.options.min)/100,s=(this.result.from-this.options.min)/e,e=(this.result.to-this.options.min)/e;this.coords.p_single_real=this.toFixed(s),this.coords.p_from_real=this.toFixed(s),this.coords.p_to_real=this.toFixed(e),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 s=this.convertToRealPercent(i),e=this.result.from_percent,e=this.result.to_percent-e,o=e/2,n=s-o,s=s+o;100<(s=n<0?(n=0)+e:s)&&(n=(s=100)-e),this.coords.p_from_real=this.calcWithStep(n),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(s),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.result.from_pretty=this._prettify(this.result.from),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.from_pretty=this._prettify(this.result.from),this.result.to_percent=this.coords.p_to_real,this.result.to=this.convertToValue(this.coords.p_to_real),this.result.to_pretty=this._prettify(this.result.to),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()}}
vendor: 17,891 bytes, line 1
1,calcPointerPercent:function(){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),this.coords.p_pointer=this.toFixed(this.coords.x_pointer/this.coords.w_rs*100)):this.coords.p_pointer=0},convertToRealPercent:function(t){return t/(100-this.coords.p_handle)*100},convertToFakePercent:function(t){return t/100*(100-this.coords.p_handle)},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:t<i&&(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){return"single"===this.options.type?"single":this.coords.p_from_real+(this.coords.p_to_real-this.coords.p_from_real)/2<=t?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.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.bar[0].style.left=0,this.$cache.bar[0].style.width=this.coords.p_bar_w+this.coords.p_bar_x+"%",this.$cache.s_single[0].style.left=this.coords.p_single_fake+"%"):(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_key=!1,this.is_click=!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(){var t,i,e,s,o;this.options&&(e=this.options.values.length,t=this.options.p_values,this.options.hide_from_to||("single"===this.options.type?(s=e?this.decorate(t[this.result.from]):(i=this._prettify(this.result.from),this.decorate(i,this.result.from)),this.$cache.single.html(s),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"):(t=e?(s=this.options.decorate_both?(s=this.decorate(t[this.result.from]),(s+=this.options.values_separator)+this.decorate(t[this.result.to])):this.decorate(t[this.result.from]+this.options.values_separator+t[this.result.to]),o=this.decorate(t[this.result.from]),this.decorate(t[this.result.to])):(i=this._prettify(this.result.from),e=this._prettify(this.result.to),s=this.options.decorate_both?(s=this.decorate(i,this.result.from),(s+=this.options.values_separator)+this.decorate(e,this.result.to)):this.decorate(i+this.options.values_separator+e,this.result.to),o=this.decorate(i,this.result.from),this.decorate(e,this.result.to)),this.$cache.single.html(s),this.$cache.from.html(o),this.$cache.to.html(t),this.calcLabels(),i=Math.min(this.labels.p_single_left,this.labels.p_from_left),e=this.labels.p_single_left+this.labels.p_single_fake,s=this.labels.p_to_left+this.labels.p_to_fake,o=Math.max(e,s),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",o=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",s):(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",Math.max(e,s))):(this.$cache.from[0].style.visibility="visible",this.$cache.to[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden"),i<this.labels.p_min+1?this.$cache.min[0].style.visibility="hidden":this.$cache.min[0].style.visibility="visible",o>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,e=this.options,s=this.$cache,o="number"==typeof e.from_min&&!isNaN(e.from_min),n="number"==typeof e.from_max&&!isNaN(e.from_max),a="number"==typeof e.to_min&&!isNaN(e.to_min),r="number"==typeof e.to_max&&!isNaN(e.to_max);"single"===e.type?e.from_shadow&&(o||n)?(t=this.convertToPercent(o?e.from_min:e.min),i=this.convertToPercent(n?e.from_max:e.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,s.shad_single[0].style.display="block",s.shad_single[0].style.left=t+"%",s.shad_single[0].style.width=i+"%"):s.shad_single[0].style.display="none":(e.from_shadow&&(o||n)?(t=this.convertToPercent(o?e.from_min:e.min),i=this.convertToPercent(n?e.from_max:e.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,s.shad_from[0].style.display="block",s.shad_from[0].style.left=t+"%",s.shad_from[0].style.width=i+"%"):s.shad_from[0].style.display="none",e.to_shadow&&(a||r)?(o=this.convertToPercent(a?e.to_min:e.min),n=this.convertToPercent(r?e.to_max:e.max)-o,o=this.toFixed(o-this.coords.p_handle/100*o),n=this.toFixed(n-this.coords.p_handle/100*n),o+=this.coords.p_handle/2,s.shad_to[0].style.display="block",s.shad_to[0].style.left=o+"%",s.shad_to[0].style.width=n+"%"):s.shad_to[0].style.display="none")},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.scope?this.options.onStart.call(this.options.scope,this.result):this.options.onStart(this.result))},callOnChange:function(){this.writeToInput(),this.options.onChange&&"function"==typeof this.options.onChange&&(this.options.scope?this.options.onChange.call(this.options.scope,this.result):this.options.onChange(this.result))},callOnFinish:function(){this.writeToInput(),this.options.onFinish&&"function"==typeof this.options.onFinish&&(this.options.scope?this.options.onFinish.call(this.options.scope,this.result):this.options.onFinish(this.result))},callOnUpdate:function(){this.writeToInput(),this.options.onUpdate&&"function"==typeof this.options.onUpdate&&(this.options.scope?this.options.onUpdate.call(this.options.scope,this.result):this.options.onUpdate(this.result))},toggleInput:function(){this.$cache.input.toggleClass("irs-hidden-input"),this.has_tab_index?this.$cache.input.prop("tabindex",-1):this.$cache.input.removeProp("tabindex"),this.has_tab_index=!this.has_tab_index},convertToPercent:function(t,i){var e=this.options.max-this.options.min;return e?(i=i?t:t-this.options.min,this.toFixed(i/(e/100))):(this.no_diapason=!0,0)},convertToValue:function(t){var i,e=this.options.min,s=this.options.max,o=e.toString().split(".")[1],n=s.toString().split(".")[1],a=0,r=0;if(0===t)return this.options.min;if(100===t)return this.options.max;o&&(a=h=o.length),n&&(a=i=n.length),h&&i&&(a=i<=h?h:i),e<0&&(e=+(e+(r=Math.abs(e))).toFixed(a),s=+(s+r).toFixed(a));var h,o=(s-e)/100*t+e,n=this.options.step.toString().split(".")[1],o=n?+o.toFixed(n.length):+(o=(o/=this.options.step)*this.options.step).toFixed(0);return r&&(o-=r),(h=n?+o.toFixed(n.length):this.toFixed(o))<this.options.min?h=this.options.min:h>this.options.max&&(h=this.options.max),h},calcWithStep:function(t){var i=Math.round(t/this.coords.p_step)*this.coords.p_step;return 100<i&&(i=100),this.toFixed(i=100===t?100:i)},checkMinInterval:function(t,i,e){var s,o=this.options;return o.min_interval?(s=this.convertToValue(t),i=this.convertToValue(i),"from"===e?i-s<o.min_interval&&(s=i-o.min_interval):s-i<o.min_interval&&(s=i+o.min_interval),this.convertToPercent(s)):t},checkMaxInterval:function(t,i,e){var s,o=this.options;return o.max_interval?(s=this.convertToValue(t),i=this.convertToValue(i),"from"===e?i-s>o.max_interval&&(s=i-o.max_interval):s-i>o.max_interval&&(s=i+o.max_interval),this.convertToPercent(s)):t},checkDiapason:function(t,i,e){var t=this.convertToValue(t),s=this.options;return"number"!=typeof i&&(i=s.min),(e="number"!=typeof e?s.max:e)<(t=t<i?i:t)&&(t=e),this.convertToPercent(t)},toFixed:function(t){return+(t=t.toFixed(20))},_prettify:function(t){return this.options.prettify_enabled?(this.options.prettify&&"function"==typeof this.options.prettify?this.options:this).prettify(t):t},prettify:function(t){return t.toString().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:100-i<t&&(t=100-i)),this.toFixed(t)},validate:function(){var t,i,e=this.options,s=this.result,o=e.values,n=o.length;if("string"==typeof e.min&&(e.min=+e.min),"string"==typeof e.max&&(e.max=+e.max),"string"==typeof e.from&&(e.from=+e.from),"string"==typeof e.to&&(e.to=+e.to),"string"==typeof e.step&&(e.step=+e.step),"string"==typeof e.from_min&&(e.from_min=+e.from_min),"string"==typeof e.from_max&&(e.from_max=+e.from_max),"string"==typeof e.to_min&&(e.to_min=+e.to_min),"string"==typeof e.to_max&&(e.to_max=+e.to_max),"string"==typeof e.grid_num&&(e.grid_num=+e.grid_num),e.max<e.min&&(e.max=e.min),n)for(e.p_values=[],e.min=0,e.max=n-1,e.step=1,e.grid_num=e.max,e.grid_snap=!0,i=0;i<n;i++)t=+o[i],t=isNaN(t)?o[i]:(o[i]=t,this._prettify(t)),e.p_values.push(t);"number"==typeof e.from&&!isNaN(e.from)||(e.from=e.min),"number"==typeof e.to&&!isNaN(e.to)||(e.to=e.max),"single"===e.type?(e.from<e.min&&(e.from=e.min),e.from>e.max&&(e.from=e.max)):(e.from<e.min&&(e.from=e.min),e.from>e.max&&(e.from=e.max),e.to<e.min&&(e.to=e.min),e.to>e.max&&(e.to=e.max),this.update_check.from&&(this.update_check.from!==e.from&&e.from>e.to&&(e.from=e.to),this.update_check.to!==e.to&&e.to<e.from&&(e.to=e.from)),e.from>e.to&&(e.from=e.to),e.to<e.from&&(e.to=e.from)),("number"!=typeof e.step||isNaN(e.step)||!e.step||e.step<0)&&(e.step=1),"number"==typeof e.from_min&&e.from<e.from_min&&(e.from=e.from_min),"number"==typeof e.from_max&&e.from>e.from_max&&(e.from=e.from_max),"number"==typeof e.to_min&&e.to<e.to_min&&(e.to=e.to_min),"number"==typeof e.to_max&&e.from>e.to_max&&(e.to=e.to_max),s&&(s.min!==e.min&&(s.min=e.min),s.max!==e.max&&(s.max=e.max),(s.from<s.min||s.from>s.max)&&(s.from=e.from),(s.to<s.min||s.to>s.max)&&(s.to=e.to)),("number"!=typeof e.min_interval||isNaN(e.min_interval)||!e.min_interval||e.min_interval<0)&&(e.min_interval=0),("number"!=typeof e.max_interval||isNaN(e.max_interval)||!e.max_interval||e.max_interval<0)&&(e.max_interval=0),e.min_interval&&e.min_interval>e.max-e.min&&(e.min_interval=e.max-e.min),e.max_interval&&e.max_interval>e.max-e.min&&(e.max_interval=e.max-e.min)},decorate:function(t,i){var e="",s=this.options;return s.prefix&&(e+=s.prefix),e+=t,s.max_postfix&&(s.values.length&&t===s.p_values[s.max]||i===s.max)&&(e+=s.max_postfix,s.postfix&&(e+=" ")),s.postfix&&(e+=s.postfix),e},updateFrom:function(){this.result.from=this.options.from,this.result.from_percent=this.convertToPercent(this.result.from),this.result.from_pretty=this._prettify(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.result.to_pretty=this._prettify(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,e,s,o,n,a=this.options,r=a.max-a.min,h=a.grid_num,c=0,l=4,d="";for(this.calcGridMargin(),a.grid_snap&&(h=r/a.step),e=this.toFixed(100/(h=50<h?50:h)),4<h&&(l=3),7<h&&(l=2),14<h&&(l=1),28<h&&(l=0),t=0;t<h+1;t++){for(s=l,100<(c=this.toFixed(e*t))&&(c=100),o=((this.coords.big[t]=c)-e*(t-1))/(s+1),i=1;i<=s&&0!==c;i++)d+='<span class="irs-grid-pol small" style="left: '+this.toFixed(c-o*i)+'%"></span>';d+='<span class="irs-grid-pol" style="left: '+c+'%"></span>',n=this.convertToValue(c),d+='<span class="irs-grid-text js-grid-text-'+t+'" style="left: '+c+'%">'+(n=a.values.length?a.p_values[n]:this._prettify(n))+"</span>"}this.coords.big_num=Math.ceil(h+1),this.$cache.cont.addClass("irs-with-grid"),this.$cache.grid.html(d),this.cacheGridLabels()}},cacheGridLabels:function(){for(var t,i=this.coords.big_num,e=0;e<i;e++)t=this.$cache.grid.find(".js-grid-text-"+e),this.$cache.grid_labels.push(t);this.calcGridLabels()},calcGridLabels:function(){for(var t,i=[],e=[],s=this.coords.big_num,o=0;o<s;o++)this.coords.big_w[o]=this.$cache.grid_labels[o].outerWidth(!1),this.coords.big_p[o]=this.toFixed(this.coords.big_w[o]/this.coords.w_rs*100),this.coords.big_x[o]=this.toFixed(this.coords.big_p[o]/2),i[o]=this.toFixed(this.coords.big[o]-this.coords.big_x[o]),e[o]=this.toFixed(i[o]+this.coords.big_p[o]);for(this.options.force_edges&&(i[0]<-this.coords.grid_gap&&(i[0]=-this.coords.grid_gap,e[0]=this.toFixed(i[0]+this.coords.big_p[0]),this.coords.big_x[0]=this.coords.grid_gap),e[s-1]>100+this.coords.grid_gap&&(e[s-1]=100+this.coords.grid_gap,i[s-1]=this.toFixed(e[s-1]-this.coords.big_p[s-1]),this.coords.big_x[s-1]=this.toFixed(this.coords.big_p[s-1]-this.coords.grid_gap))),this.calcGridCollision(2,i,e),this.calcGridCollision(4,i,e),o=0;o<s;o++)t=this.$cache.grid_labels[o][0],this.coords.big_x[o]!==Number.POSITIVE_INFINITY&&(t.style.marginLeft=-this.coords.big_x[o]+"%")},calcGridCollision:function(t,i,e){for(var s,o,n=this.coords.big_num,a=0;a<n&&!(n<=(s=a+t/2));a+=t)o=this.$cache.grid_labels[s][0],e[a]<=i[s]?o.style.visibility="visible":o.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(t){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=a.extend(this.options,t),this.validate(),this.updateResult(t),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),a.data(this.input,"ionRangeSlider",null),this.remove(),this.input=null,this.options=null)}},a.fn.ionRangeSlider=function(t){return this.each(function(){a.data(this,"ionRangeSlider")||a.data(this,"ionRangeSlider",new i(this,t,s++))})};for(var n=0,l=["ms","moz","webkit","o"],d=0;d<l.length&&!h.requestAnimationFrame;++d)h.requestAnimationFrame=h[l[d]+"RequestAnimationFrame"],h.cancelAnimationFrame=h[l[d]+"CancelAnimationFrame"]||h[l[d]+"CancelRequestAnimationFrame"];h.requestAnimationFrame||(h.requestAnimationFrame=function(t,i){var e=(new Date).getTime(),s=Math.max(0,16-(e-n)),o=h.setTimeout(function(){t(e+s)},s);return n=e+s,o}),h.cancelAnimationFrame||(h.cancelAnimationFrame=function(t){clearTimeout(t)})});var $w,$d,$b,crossDomainResizeHandler,w=window,d=document,b=document.body;function isTouch(){return!!("ontouchstart"in window||navigator.msMaxTouchPoints)}function urldecode(t){return decodeURIComponent((t+"").replace(/\+/g,"%20"))}function urlencode(t){return t=(t+"").toString(),encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")}function appendSubShopId(t){var i="sub_shop_id="+subShopId;return t.includes(i)||-1===subShopId?t:t+(t.includes("?")?"&"+i:"?"+i)}function uploadImages(s){var o,n;void 0!==window.pictureDropzoneObjects&&(o=window.pictureDropzoneObjects,n=document.getElementById("cart_quantity"),function t(i){var e;i>=o.length?s&&s():o[i].isCropped()?(e=o[i].getContainer().getAttribute("data-area-name"),$.post("image_upload/canvas.php",{data:o[i].toDataURL()}).done(function(t){var i=document.createElement("input");i.type="hidden",i.name="upload_files["+e+"]",i.value=t.filename,n.appendChild(i)}).always(function(){t(i+1)})):t(i+1)}(0))}function isInstanceArrayFilled(){return"undefined"!=typeof pictureDropzoneObjects&&0<pictureDropzoneObjects.length}function isOffsetInViewport(t){var i=$(window).scrollTop(),e=i+$(window).height();return i<t&&t<e}function scrollToElement(t,i){var e;window.parent!=window?(e=parseInt(t.offset().top)+(i||0),crossDomainIframeResize(!0,e)):isOffsetInViewport(e=void(e=0)!==t&&t.length&&t.offset()?parseInt(t.offset().top)+(i||0):i||0)||$("html, body").animate({scrollTop:e},500)}function round(t,i){void 0===i&&(i=1);i=Math.pow(10,i);return Math.round(t*i)/i}function goBack(){$("#inneriframe").remove(),1<history.length?history.go(-1):window.close(),preventDefault()}function showError(t){var i=$(".inc-error-box");(i=0==i.length?$("<div>").addClass("inc-error-box").insertBefore($(".button-row, .buttonRow, .buttons-right").first()).slideUp(0):i).html(t).slideDown()}function hideError(){$(".inc-error-box").slideUp()}function setupBirthdateSelect(){if($("#dob-input-container")&&$(".birthdate-select"))for(var t=(new Date).getFullYear(),i=t-17;t-110<i;i--)$("#birthdate_year").append(new Option(i,i))}function splitBirthdate(){var t=$("#dob-input-container").find("input").val().split(".");$("#birthdate_day").val(t[0]),$("#birthdate_month").val(t[1]),$("#birthdate_year").val(t[2])}function adjustCartQuantity(t,i,e){let s=i;s=e?i+1:i-1,$.ajax({url:appendSubShopId("api/frontend/shoppingCart/change"),type:"PUT",data:JSON.stringify({cartProductId:""+t,quantity:s}),success:(t,i,e)=>{200==e.status&&updateShoppingCart(t)},error:t=>{console.log("error loading data on shoppingCart change")}})}function deleteCartItem(t){$.ajax({url:appendSubShopId("api/frontend/shoppingCart/delete/"+t),type:"DELETE",success:(t,i,e)=>{200==e.status&&updateShoppingCart(t)},error:t=>{console.log("error loading data on shoppingCart change")}})}function loadShoppingCart(){$.ajax({url:appendSubShopId("api/frontend/shoppingCart"),type:"GET",success:(t,i,e)=>{!1===t.commentsAllowed&&$(".inc-order-comment").remove(),200==e.status&&updateShoppingCart(t)},error:t=>{console.log("error get data")}})}function updateShoppingCartComment(){var t=$("#inc-order-comment-textarea").val();$.ajax({url:appendSubShopId("api/frontend/shoppingCart"),type:"GET",data:JSON.stringify({comment:t}),error:t=>{console.log("error get data")}})}
1function redeemVoucher(){var t=$("#infobox-cart-redeem-coupon-input").val();$.ajax({url:appendSubShopId("api/frontend/shoppingCart/addPromocode"),type:"POST",data:JSON.stringify({gv_redeem_code:t}),success:(t,i,e)=>{200==e.status&&t.items?(updateShoppingCart(t),$("#infobox-cart-redeem-message").html("Coupon wurde eingelöst").removeClass().addClass("inc-success-box")):$("#infobox-cart-redeem-message").html("Coupon konnte nicht eingelöst werden").removeClass().addClass("inc-message-box")},error:t=>{console.log("error get data")}}),loadShoppingCart()}function updateShoppingCart(i){let s=0;if($(".infobox-cart-content-tbody").html(""),i.items&&0<i.items.length)for(var o of i.items){let t='<tr class="infobox-cart-items" data-qty="'+o.quantity+'">';var n="",a="";if(s+=o.quantity,"1"===showCartItemQuantity||!0===showCartItemQuantity){let t="";n=' <div class="inc-cart-quantity-inner"> <button class="inc-cart-quantity-adjust inc-cart-quantity-adjust-minus '+(t=1===o.quantity?"inc-cart-quantity-adjust-disabled":t)+'" onclick="adjustCartQuantity(`'+o.id+"`,"+o.quantity+', false)"> <span class="icon-minus" aria-hidden="true"></span> <span class="sr-only">Ein Produkt entfernen</span> </button> <span class="cart-items-info-qty">'+o.quantity+'</span> <button class="inc-cart-quantity-adjust inc-cart-quantity-adjust-plus" onclick="adjustCartQuantity(`'+o.id+"`,"+o.quantity+', true)"> <span class="icon-plus" aria-hidden="true"></span> <span class="sr-only">Weiteres Produkt hinzufügen</span> </button> </div>\n'}else a='<span class="cart-items-info-qty">'+o.quantity+" x </span>";let i="",e=("1"!==showCartItemDelete&&!0!==showCartItemDelete||(i='<span class="cart-items-info-delete"> <button class="inc-cart-delete" onclick="deleteCartItem(`'+o.id+'`)"> <span class="icon-close" aria-hidden="true" aria-label="Delete"></span> </button> </span>'),"");o.additionalData.points&&(e=1===o.additionalData.points?'<span class="inc-price-points">'+o.additionalData.points+pointSingleLabel+"</span>":'<span class="inc-price-points">'+o.additionalData.points+pointsMultipleLabel+"</span>");t="1"===showCartImage||!0===showCartImage?t+'<td class="cart-items-image"><img src="'+o.product.media?.data?.source+'" alt="'+o.product.name+'" aria-hidden="true"/></td><td class="cart-items-text" colspan="2"> <div class="cart-items-info-row">'+a+o.product.name+i+'</div><div class="cart-items-info-row">'+n+'<span class="cart-items-info-price">'+o.product.priceInfo.priceFormatted+e+"</span></div></td></tr>":t+' <td class="cart-items-text">'+a+o.product.name+n+'</td><td class="cart-items-price">'+o.product.priceInfo.priceFormatted+e+i+"</td></tr>",$(".infobox-cart-content-tbody").append(t),$(".infobox-cart").removeClass("infobox-cart-empty")}else $(".infobox-cart").addClass("infobox-cart-empty");if($("#infobox-cart-total-sum").html(i.priceTotal?.priceFormatted),i.bonusPoints?.totalPoints){let t='<span class="inc-price-points">';1===i.bonusPoints?.totalPoints?t+=i.bonusPoints?.totalPoints+pointSingleLabel:t+=i.bonusPoints?.totalPoints+pointsMultipleLabel,t+="</span>",$("#infobox-cart-total-points").html(t)}$("#inc-cartItemCount").html(s)}$().ready(function(){$w=$(w),$d=$(d),$b=$("body"),$(window).scroll(function(){300<$(window).scrollTop()?$(".standalone").addClass("scrolling"):$(".standalone").removeClass("scrolling")});var t=$(".sidebar-inc");function o(){"function"==typeof crossDomainIframeResize&&(crossDomainResizeHandler&&clearTimeout(crossDomainResizeHandler),crossDomainResizeHandler=setTimeout(function(){crossDomainIframeResize(!1)},500))}0<t.length&&(i=$("#navtrail_anchor"),t.height()>i.height()&&i.css("min-height",t.height())),$(".tooltip-container").on("mouseover",function(){$(this).parent().find(".tooltip").addClass("show-tooltip")}).on("mouseout",function(){$(this).parent().find(".tooltip").removeClass("show-tooltip")}),$d.on("click","#show-share-links-toggle",function(){console.log("yeah"),$(this).parent().toggleClass("social-bar-visible")}),$d.find(".inc-nav-item:not(.inc-nav-item-modal-sidebar)").each(function(){$d.on("mouseleave",".inc-nav-item:not(.inc-nav-item-modal-sidebar)",function(t){$(this).removeClass("open")});var t=null,i=this;function e(){$(i).addClass("open"),$(i).find(".inc-nav-link").attr("aria-expanded","true"),window.clearTimeout(t),t=null}$(i).on("focusin",e),$(i).on("mouseenter",".inc-nav-link",e),$(i).on("mouseleave focusout",function(){t=window.setTimeout(function(){$(i).removeClass("open"),$(i).find(".inc-nav-link").attr("aria-expanded","fal
1se")},200)})}),$d.on("click",".inc-nav-item-modal-sidebar .inc-nav-link",function(t){$(this).parent().hasClass("open")?($(this).parent().removeClass("open"),$(".body").removeClass("prevent-scrolling")):($(this).parent().addClass("open"),$(".body").addClass("prevent-scrolling")),loadShoppingCart()}),$d.on("click",".inc-cart-close",function(t){$(".inc-nav-item-modal-sidebar").removeClass("open"),$(".body").removeClass("prevent-scrolling")}),$d.on("click",".inc-modal-menu-sidebar-outside-click",function(t){$(".inc-nav-item-modal-sidebar").removeClass("open"),$(".body").removeClass("prevent-scrolling")}),$d.on("click",".inc-nav-link.inc-nav-cart.inc-modal-control",function(t){try{document.createEvent("TouchEvent"),t.preventDefault()}catch(t){return}}),$(".inc-form-group *").each(function(){var t;"TEXTAREA"!=this.tagName&&"INPUT"!=this.tagName||(t=($(this).is("#ticket-filter-price")?$(this).parent():$(this)).parent(),""==this.value&&!$(this).is(":focus")||t.addClass("touched"))}),$d.on("focusin",".inc-form-group *",function(){var t;"TEXTAREA"!=this.tagName&&"INPUT"!=this.tagName||(t=($(this).is("#ticket-filter-price")?$(this).parent():$(this)).parent(),this.classList.contains("touched")||t.addClass("touched"))}),$d.on("focusout propertychange change click keyup input paste",".inc-form-group *",function(){var t;"TEXTAREA"!=this.tagName&&"INPUT"!=this.tagName||$(this).is(":focus")||(t=($(this).is("#ticket-filter-price")?$(this).parent():$(this)).parent(),""==this.value?t.removeClass("touched"):this.classList.contains("touched")||t.addClass("touched"))}),$d.on("click",".inc-lightbox-close",function(t){t.preventDefault(),window.closeLightbox()}),$d.on("click",".inc-lightbox-inner",function(t){t.stopPropagation()}),$(".inc-lightbox-switch.inc-prev").click(function(t){var i=parseInt($(".inc-lightbox-content>*:first-child").attr("lightboxpos"))-1;i<0&&(i=lightboxContent.length-1),window.navigateLightbox(i,lightboxContent)}),$(".inc-lightbox-switch.inc-next").click(function(t){var i=parseInt($(".inc-lightbox-content>*:first-child").attr("lightboxpos"))+1;i>=lightboxContent.length&&(i=0),window.navigateLightbox(i,lightboxContent)}),$d.on("click","a.ajax.popup",function(t){var i=$(this).attr("href");return w.open(i,"Versandkosten","scrollbars=1,width=600,height=400"),t.preventDefault(),!1}),0<$("[name=gender] [value=c]").length&&($(".form-section-hide-company").css("display","none"),$("[name=gender]").bind("input change",function(){"c"===$("[name=gender]").val()?$(".form-section-hide-company").slideDown(void 0,function(){o()}
1):$(".form-section-hide-company").slideUp(void 0,function(){o()})}).trigger("change")),0<$("[name=gender_billing] [value=c]").length&&($(".form-section-hide-company-billing").css("display","none"),$("[name=gender_billing]").bind("input change",function(){"c"===$("[name=gender_billing]").val()?$(".form-section-hide-company-billing").slideDown(void 0,function(){o()}):$(".form-section-hide-company-billing").slideUp(void 0,function(){o()})}).trigger("change")),$(".inc-product-item-image img").on("load",function(){o()}),$(window).resize(function(){o()}),adjustProductsListHandler=setTimeout(function(){o()},100),$d.on("keydown","input[type=text],input[type=number]",function(t){if("0"==this.value||0<parseInt(this.value)&&parseInt(this.value)<99&&parseInt(this.value).toString().length==this.value.length)switch(t.which){case 38:case 107:case 187:return this.value=parseInt(this.value)+1,$(this).select().trigger("change"),!1;case 40:case 109:case 189:return"products_qty"==this.name?1<parseInt(this.value)&&(this.value=parseInt(this.value)-1):0<parseInt(this.value)&&(this.value=parseInt(this.value)-1),$(this).select().trigger("change"),!1}}),$d.on("click",".inc-cart-remove a, .cart-delete a, a.inc-cart-quantity-adjust",function(){$("body").addClass("loading")});var i=$("input[name=card_lookup_id]");function s(t){var i=t.attr("data-product-id"),i=$("#inc-product-item-"+i);i.find(".inc-product-item-image img").attr("src",t.attr("data-color-image")),i.find(".inc-product-item-desc h3").text(t.attr("data-color-headline"))}i.length&&"undefined"!=typeof textCardId&&i.attr("placeholder",textCardId),$d.on("click",".inc-header a.mobile-sidebar-toggle",function(){$(this).toggleClass("active"),$(".body-inc").toggleClass("show-sidebar")}),$("form").attr("autocomplete","on"),$("body").removeClass("load"),void 0!==$.fn.unveil&&$("img[data-src]").unveil(200),$(".inc-variant-color-directbuy").click(function(){var t=$(this).attr("data-color-buy-now-link"),i=$(this).attr("data-product-id"),e=$("#inc-product-item-"+i);$("#direct-buy-"+i).attr("action",t),e.find(".inc-variant-color").removeClass("inc-variant-color-selected"),$(this).addClass("inc-variant-color-selected"),s($(this)),e.find(".
1inc-product-item-image-url-hidden").val($(this).attr("data-color-image")),e.find(".inc-product-item-hidden-name").val($(this).attr("data-color-headline"))}),$(".inc-product-item-extras .inc-variant-color").mouseenter(function(){s($(this)),$(this).find(".tooltip").show()}),$(".inc-product-item-extras .inc-variant-color").mouseleave(function(){var t=$(this).attr("data-product-id"),t=$("#inc-product-item-"+t);t.find(".inc-product-item-image img").attr("src",t.find(".inc-product-item-image-url-hidden").val()),t.find(".inc-product-item-desc h3").text(t.find(".inc-product-item-hidden-name").val()),$(this).find(".tooltip").hide()}),$("input[type=checkbox],input[type=radio]").ezMark();var e=!1;$d.on("click",".moduleRowCheckout, .moduleRowOverCheckout, .moduleRowSelectedCheckout",function(){e||(e=!0,$(this).parent().find(".moduleRowCheckout, .moduleRowOverCheckout, .moduleRowSelectedCheckout").find(".ez-radio").removeClass("ez-selected"),$(this).find(".ez-radio").addClass("ez-selected"),e=!1)}),$d.on("click",".moduleSubRowCheckout, .moduleSubRowOverCheckout, .moduleSubRowSelectedCheckout",function(){e||(e=!0,$(this).parent().find(".moduleSubRowCheckout, .moduleSubRowOverCheckout, .moduleSubRowSelectedCheckout").find(".ez-radio").removeClass("ez-selected"),$(this).find(".ez-radio").addClass("ez-selected"),e=!1)});$(".product-sale-countdown").find(".countdown-inner").each(function(){var t=$(this);void 0!==$.fn.countdown&&t.countdown(t.data("datetime"),function(t){$(this).html(t.strftime("%DT %Hh %Mm %Ss"))})});var n=!0;window.showDropzones=function(t){n=t,$(".inc-product-voucher-image .dropzone").toggleClass("no-style",!t);var i=$(".inc-voucher-preview-button.inc-voucher-preview-button-hide-fields");t?i.text(i.data("hide-text")):i.text(i.data("show-text"))},$d.on("click",".inc-voucher-preview-button.inc-voucher-preview-button-hide-fields",function(t){return window.showDropzones(!n),!1}),$d.on("click",".accordion-button",function(t){var i,e=$(this)[0],s=($(this).parent().toggleClass("open"),$(this).siblings(".accordion-content")[0]);"true"===e.getAttribute("aria-expanded")?(e.setAttribute("aria-expanded","false"),(i=s).style.height="0px",i.setAttribute("data-collapsed","true")):(e.setAttribute("aria-expanded","true"),(i=s).style.height=i.scrollHeight+"px",i.setAttribute("data-collapsed","false")),setTimeout(o(),300)});var a=$("#cookie-bar");try{"1"!=localStorage.getItem("cookiesallowed")&&a.css("display","block")}catch(t){console.log("Couldn't get cookie bar localStorage item. "+t)}$("#cookie-btn").click(function(){try{a.slideDown,localStorage.setItem("cookiesallowed","1"),a.css("display","none")}catch(t){console.log("Couldn't set cookie bar localStorage item. "+t)}}),(history.length<=1||-1===document.referrer.indexOf(location.host))&&$("[data-goback-fallback]").each(function(){$(this).attr("href",$(this).data("goback-fallback")).text($(this).data("goback-fallback-text"))})}),$().ready(function(){setupBirthdateSelect(),$("#dob").val()&&splitBirthdate(),$("input, select").bind("input change",function(){var t,i;"birthdate_day"!==this.id&&"birthdate_month"!==this.id&&"birthdate_year"!==this.id||0<(t=$("#dob-input-container").find("input")).length&&((i=t.val().split("."))[0]=$("#birthdate_day").val(),i[1]=$("#birthdate_month").val(),i[2]=$("#birthdate_year").val(),null!=i[0]||null!=i[1]||null!=i[2]?t.val(i.join(".")).addClass("not-empty"):""!==t.val()&&splitBirthdate())}).trigger("input")}),"undefined"==typeof twoColumnWindowWidth&&(twoColumnWindowWidth=767),"undefined"==typeof oneColumnWindowWidth&&(oneColumnWindowWidth=400),"undefined"==typeof cSliderMinItems&&(cSliderMinItems=1),"undefined"==typeof cSliderMaxItems&&(cSliderMaxItems=3),"undefined"==typeof voucherSliderCenterMode&&(voucherSliderCenterMode=!1),$().ready(function(){"function"==typeof $.fn.slick&&$(".inc-category-list-item-wrapper.scrollable").slick({infinite:!1,slidesToShow:cSliderMaxItems,slidesToScroll:cSliderMaxItems,centerMode:voucherSliderCenterMode,arrows:voucherSliderShowArrows,dots:voucherSliderShowDots,customPaging:function(t,i){return"<button>"+(i+1).toString()+"</button>"},responsive:[{breakpoint:twoColumnWindowWidth,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:oneColumnWindowWidth,settings:{slidesToShow:cSliderMinItems,slidesToScroll:cSliderMinItems}}]})}),"undefined"==typeof twoColumnWindowWidth&&(twoColumnWindowWidth=767),"undefined"==typeof oneColumnWindowWidth&&(oneColumnWindowWidth=400),"undefined"==typeof vSliderMinItems&&(vSliderMinItems=1),"undefined"==typeof vSliderMaxItems&&(vSliderMaxItems=3),"undefined"==typeof voucherSliderCenterMode&&(voucherSliderCenterMode=!1),$().ready(function(){"function"==typeof $.fn.slick&&$(".inc-product-list-item-wrapper.scrollable").slick({infinite:!1,slidesToShow:vSliderMaxItems,slidesToScroll:vSliderMaxItems,centerMode:voucherSliderCenterMode,arrows:voucherSliderShowArrows,dots:voucherSliderShowDots,customPaging:function(t,i){return"<button>"+(i+1).toString()+"</button>"},responsive:[{breakpoint:twoColumnWindowWidth,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:oneColumnWindowWidth,settings:{slidesToShow:vSliderMinItems,slidesToScroll:vSliderMinItems}}]})}),function(n,a){function e(t){Array.isArray(t)&&1<t.length&&($(".inc-lightbox-switch").attr("disabled",!1),n.removeEventListener("keydown",i),n.addEventListener("keydown",i))}function s(t,i,e){var s,o=$("#inc-lightbox");if(!o.length)throw new Error("No lightbox was found");o.hasClass("show")||(s=o[0],l=s,h=a.activeElement,c=a.activeElement,a.addEventListener("focus",p,!0),o.find(".inc-lightbox-content").append(t),s=o.find(".inc-lightbox-header"),i?(s.show(),s.html(i)):s.hide(),e&&o.addClass(e),n.removeEventListener("keydown",r),n.addEventListener("keydown",r),o.addClass("show"),$("input[type=checkbox]:not(.ez-hide),input[type=radio]:not(.ez-hide)").ezMark())}function i(t){switch(t.key){case"Left":case"ArrowLeft":$(".inc-lightbox-switch.inc-prev").trigger("click");break;case"Right":case"ArrowRight":$(".inc-lightbox-switch.inc-next").trigger("click")}}function r(t){switch(t.key){case"Esc":case"Escape":n.closeLightbox()}}n.showImageLightbox=function(i,t=[]){e(t),s('<img lightboxpos="'+t.indexOf(t.find(t=>t.data==i&&"img"==t.type))+'" src="'+i+'" alt="" onload="javascript:window.repositionLightbox();">')},n.showLightbox=function(t,i="",e=""){s($(t).html(),i,e)},n.showVideoLightbox=function(i,t=[]){e(t),s(` 2 <div class="inc-video-container" id="video-lightbox" lightboxpos="${t.indexOf(t.find(t=>t.data.title==i.title&&"vid"==t.type))}"> 3 <video class="inc-video" id="video-player-lightbox" muted autoplay controls> 4 <source src="${i.videoSrc}" /> 5 </video> 6 </div>`,"","")},n.navigateLightbox=function(t,i=[]){var e=i[t];switch($(".inc-lightbox-content").empty(),e.type){case"img":$("#inc-lightbox .inc-lightbox-inner").addClass("lightbox-img"),$(".inc-lightbox-content").append(`<img lightboxpos="${t}" src="${e.data}" alt="" onload="javascript:window.repositionLightbox();">`);break;case"vid":$("#inc-lightbox .inc-lightbox-inner").removeClass("lightbox-img"),$(".inc-lightbox-content").append(` 7 <div class="inc-video-container" id="video-lightbox" lightboxpos="${t}"> 8 <video class="inc-video" id="video-player-lightbox" muted autoplay controls> 9 <source src="${e.data.videoSrc}" /> 10 </video> 11 </div>`)}},n.showAboEdit=function(t,i,e,s){$("#inc-lightbox .inc-abo-edit>h3").html(t),$("#inc-lightbox .inc-abo-edit>.inc-lightbox-message").html(i),$("#inc-lightbox .inc-abo-edit>.inc-abo-options").html(e),$("#inc-lightbox .inc-abo-edit>.inc-lightbox-buttons>div").html(s),$("#inc-lightbox .inc-abo-edit-inc").addClass("show"),$("#inc-lightbox").addClass("show"),n.repositionLightbox()},n.closeLightbox=function(){a.removeEventListener("focus",p,!0),c&&c!==a.body&&(c.focus(),c=null),$(".inc-lightbox-switch").attr("disabled",!0),n.removeEventListener("keydown",i),n.removeEventListener("keydown",r),$(".inc-lightbox-overlay").removeClass("show"),setTimeout(()=>{$(".inc-added-to-cart").removeClass("visible lightbox-anchor"),$(".inc-ticket-overlay").removeClass("show"),$(".inc-cart-info").removeClass("show"),$(".inc-lightbox-content").empty(),$(".inc-lightbox-header").html(""),$("#inc-lightbox .inc-lightbox-inner").removeClass("lightbox-img lightbox-voucher"),$("#inc-lightbox").removeClass().addClass("inc-lightbox-overlay inc-lightbox-close")},500)};var o=!(n.repositionLightbox=function(){n.parent!=n&&scrollToElement($(".inc-lightbox-inner"),-50)}),h=null,c=null,l=null;function d(t){if(function(t){if(!(t.tabIndex<0||t.disabled))switch(t.nodeName){case"A":return t.href&&"ignore"!==t.rel;case"INPUT":return"hidden"!==t.type;case"BUTTON":case"SELECT":case"TEXTAREA":return 1}}(t)){o=!0;try{t.focus()}catch(t){}return o=!1,a.activeElement===t}}function p(t){!o&&l&&(h=l.contains(t.target)?t.target:(function t(i){for(var e=0;e<i.childNodes.length;++e){var s=i.childNodes[e];if(d(s)||t(s))return 1}}(l),h===a.activeElement&&function t(i){for(var e=i.childNodes.length-1;0<=e;--e){var s=i.childNodes[e];if(d(s)||t(s))return 1}}(l),a.activeElement))}}(window,document),$().ready(function(){if("undefined"!=typeof voucher_print_positions&&voucher_print_positions){if(void 0!==voucher_print_positions.picture)for(var t=voucher_print_positions.picture,i=0;i<t.length;
11i++)o("picture",t[i]);if(void 0!==voucher_print_positions.video)for(var e=voucher_print_positions.video,i=0;i<e.length;i++)o("video",e[i]);if(void 0!==voucher_print_positions.text)for(var s=voucher_print_positions.text,i=0;i<s.length;i++)o("text",s[i]);"undefined"!=typeof resizeDropzones&&resizeDropzones()}function o(t,i){var e,s,o;"undefined"==typeof dropzone_scale&&(dropzone_scale=5),void 0!==i&&(e=$("<div>"),"picture"==t&&(s=i.h/i.w*(voucher_paper_size.h/voucher_paper_size.w),o=150*dropzone_scale,e.addClass("dropzone picture"),e.attr({"crop-width":o.toString(),"crop-height":(o*s).toString(),"crop-btn-disable-left":"true","crop-btn-disable-horizontal":"true","crop-btn-disable-fit":"true","crop-input":"false","crop-scale":"expand",for:"image_upload_"+i.area_name,"data-area-name":i.area_name}),o='<input class="optional" type="file" name="'+i.area_name+'" id="image_upload_'+i.area_name+'" accept="image/*" />',e.html(o),e.click(function(){$("#personalize_text_desktop_tab").trigger("click")})),"video"==t&&(e.addClass("dropzone video"),e.attr("for","video_upload_"+i.area_name),e.attr("data-caption",dropzone_add_video||"Video"),e.click(function(){$("#personalize_picture_desktop_tab").trigger("click"),setTimeout(function(){$(".tab-button-mobile.video").is(":visible")&&scrollToElement($(".tab-button-mobile.video"))},500)})),"text"==t&&(e.addClass("dropzone text"),e.attr("for","cke_vouchertext"),e.attr("data-caption",dropzone_add_text||"Text einfügen"),e.click(function(){$("#personalize_video_desktop_tab").trigger("click"),setTimeout(function(){const t=$("#cke_vouchertext:visible, #vouchertext:visible");t.length&&scrollToElement(t),"object"==typeof CKEDITOR&&CKEDITOR.instances&&CKEDITOR.instances.vouchertext?CKEDITOR.instances.vouchertext.focus():t.length&&t.get(0).focus()},0)}),"number"==typeof VOUCHER_CUSTOMIZE_ANGLE&&0!==VOUCHER_CUSTOMIZE_ANGLE&&e.css({transform:"rotate(-"+VOUCHER_CUSTOMIZE_ANGLE+"deg)","transform-origin":"top left"})),void 0!==i.area_name&&e.attr("data-area-name",i.area_name),e.css({position:"absolute",left:100*i.correctedX+"%",top:100*i.correctedY+"%",width:100*i.correctedW+"%",height:100*i.correctedH+"%"}),100*i.correctedX+100*i.correctedW<50?e.addClass("crop-container-left"):e.addClass("crop-container-right"),e.appendTo($(".voucher-area-target")))}});
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.