// source --> https://chaumont.com.tw/wp-content/plugins/wp-image-zoooom-pro/assets/dist/image_zoom-frontend.min.js?ver=1.58 
(function(d){d.Observe={}})(jQuery);
(function(d,q){var r=function(e,f){f||(f=e,e=window.document);var m=[];d(f).each(function(){for(var l=[],g=d(this),h=g.parent();h.length&&!g.is(e);h=h.parent()){var f=g.get(0).tagName.toLowerCase();l.push(f+":eq("+h.children(f).index(g)+")");g=h}(h.length||g.is(e))&&m.push("> "+l.reverse().join(" > "))});return m.join(", ")};q.path={get:r,capture:function(e,f){f||(f=e,e=window.document);var m=[];d(f).each(function(){var l=-1,g=this;if(this instanceof Text)for(var g=this.parentNode,h=g.childNodes,
f=0;f<h.length;f++)if(h[f]===this){l=f;break}var k=r(e,g),n=d(e).is(g);m.push(function(e){e=n?e:d(e).find(k);return-1===l?e:e.contents()[l]})});return function(e){e=e||window.document;return m.reduce(function(d,f){return d.add(f(e))},d([]))}}}})(jQuery,jQuery.Observe);(function(d,q){var r=function(e){this.original=d(e);this.root=this.original.clone(!1,!0)};r.prototype.find=function(d){return q.path.capture(this.original,d)(this.root)};q.Branch=r})(jQuery,jQuery.Observe);
(function(d,q){var r=function(a,b){var c={};a.forEach(function(a){(a=b(a))&&(c[a[0]]=a[1])});return c},e=r("childList attributes characterData subtree attributeOldValue characterDataOldValue attributeFilter".split(" "),function(a){return[a.toLowerCase(),a]}),f=r(Object.keys(e),function(a){if("attributefilter"!==a)return[e[a],!0]}),m=r(["added","removed"],function(a){return[a.toLowerCase(),a]}),l=d([]),g=function(a){if("object"===typeof a)return a;a=a.split(/\s+/);var b={};a.forEach(function(a){a=
a.toLowerCase();if(!e[a]&&!m[a])throw Error("Unknown option "+a);b[e[a]||m[a]]=!0});return b},h=function(a){return"["+Object.keys(a).sort().reduce(function(b,c){var d=a[c]&&"object"===typeof a[c]?h(a[c]):a[c];return b+"["+JSON.stringify(c)+":"+d+"]"},"")+"]"},t=window.MutationObserver||window.WebKitMutationObserver,k=function(a,b,c,s){this._originalOptions=d.extend({},b);b=d.extend({},b);this.attributeFilter=b.attributeFilter;delete b.attributeFilter;c&&(b.subtree=!0);b.childList&&(b.added=!0,b.removed=
!0);if(b.added||b.removed)b.childList=!0;this.target=d(a);this.options=b;this.selector=c;this.handler=s};k.prototype.is=function(a,b,c){return h(this._originalOptions)===h(a)&&this.selector===b&&this.handler===c};k.prototype.match=function(a){var b=this.options,c=a.type;if(!this.options[c])return l;if(this.selector)switch(c){case "attributes":if(!this._matchAttributeFilter(a))break;case "characterData":return this._matchAttributesAndCharacterData(a);case "childList":if(a.addedNodes&&a.addedNodes.length&&
b.added&&(c=this._matchAddedNodes(a),c.length))return c;if(a.removedNodes&&a.removedNodes.length&&b.removed)return this._matchRemovedNodes(a)}else{var s=a.target instanceof Text?d(a.target).parent():d(a.target);if(!b.subtree&&s.get(0)!==this.target.get(0))return l;switch(c){case "attributes":if(!this._matchAttributeFilter(a))break;case "characterData":return this.target;case "childList":if(a.addedNodes&&a.addedNodes.length&&b.added||a.removedNodes&&a.removedNodes.length&&b.removed)return this.target}}return l};
k.prototype._matchAttributesAndCharacterData=function(a){return this._matchSelector(this.target,[a.target])};k.prototype._matchAddedNodes=function(a){return this._matchSelector(this.target,a.addedNodes)};k.prototype._matchRemovedNodes=function(a){var b=new q.Branch(this.target),c=Array.prototype.slice.call(a.removedNodes).map(function(a){return a.cloneNode(!0)});a.previousSibling?b.find(a.previousSibling).after(c):a.nextSibling?b.find(a.nextSibling).before(c):(this.target===a.target?b.root:b.find(a.target)).empty().append(c);
return this._matchSelector(b.root,c).length?d(a.target):l};k.prototype._matchSelector=function(a,b){var c=a.find(this.selector);b=Array.prototype.slice.call(b);return c=c.filter(function(){var a=this;return b.some(function(b){return b instanceof Text?b.parentNode===a:b===a||d(b).has(a).length})})};k.prototype._matchAttributeFilter=function(a){return this.attributeFilter&&this.attributeFilter.length?0<=this.attributeFilter.indexOf(a.attributeName):!0};var n=function(a){this.patterns=[];this._target=
a;this._observer=null};n.prototype.observe=function(a,b,c){var d=this;this._observer?this._observer.disconnect():this._observer=new t(function(a){a.forEach(function(a){d.patterns.forEach(function(b){var c=b.match(a);c.length&&c.each(function(){b.handler.call(this,a)})})})});this.patterns.push(new k(this._target,a,b,c));this._observer.observe(this._target,this._collapseOptions())};n.prototype.disconnect=function(a,b,c){var d=this;this._observer&&(this.patterns.filter(function(d){return d.is(a,b,c)}).forEach(function(a){a=
d.patterns.indexOf(a);d.patterns.splice(a,1)}),this.patterns.length||this._observer.disconnect())};n.prototype.disconnectAll=function(){this._observer&&(this.patterns=[],this._observer.disconnect())};n.prototype.pause=function(){this._observer&&this._observer.disconnect()};n.prototype.resume=function(){this._observer&&this._observer.observe(this._target,this._collapseOptions())};n.prototype._collapseOptions=function(){var a={};this.patterns.forEach(function(b){var c=a.attributes&&a.attributeFilter;
if(!c&&a.attributes||!b.attributeFilter)c&&b.options.attributes&&!b.attributeFilter&&delete a.attributeFilter;else{var e={},f=[];(a.attributeFilter||[]).concat(b.attributeFilter).forEach(function(a){e[a]||(f.push(a),e[a]=1)});a.attributeFilter=f}d.extend(a,b.options)});Object.keys(m).forEach(function(b){delete a[m[b]]});return a};var p=function(a){this.patterns=[];this._paused=!1;this._target=a;this._events={};this._handler=this._handler.bind(this)};p.prototype.NS=".jQueryObserve";p.prototype.observe=
function(a,b,c){a=new k(this._target,a,b,c);d(this._target);a.options.childList&&(this._addEvent("DOMNodeInserted"),this._addEvent("DOMNodeRemoved"));a.options.attributes&&this._addEvent("DOMAttrModified");a.options.characterData&&this._addEvent("DOMCharacerDataModified");this.patterns.push(a)};p.prototype.disconnect=function(a,b,c){var e=d(this._target),f=this;this.patterns.filter(function(d){return d.is(a,b,c)}).forEach(function(a){a=f.patterns.indexOf(a);f.patterns.splice(a,1)});var g=this.patterns.reduce(function(a,
b){b.options.childList&&(a.DOMNodeInserted=!0,a.DOMNodeRemoved=!0);b.options.attributes&&(a.DOMAttrModified=!0);b.options.characterData&&(a.DOMCharacerDataModified=!0);return a},{});Object.keys(this._events).forEach(function(a){g[a]||(delete f._events[a],e.off(a+f.NS,f._handler))})};p.prototype.disconnectAll=function(){var a=d(this._target),b;for(b in this._events)a.off(b+this.NS,this._handler);this._events={};this.patterns=[]};p.prototype.pause=function(){this._paused=!0};p.prototype.resume=function(){this._paused=
!1};p.prototype._handler=function(a){if(!this._paused){var b={type:null,target:null,addedNodes:null,removedNodes:null,previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null};switch(a.type){case "DOMAttrModified":b.type="attributes";b.target=a.target;b.attributeName=a.attrName;b.oldValue=a.prevValue;break;case "DOMCharacerDataModified":b.type="characterData";b.target=d(a.target).parent().get(0);b.attributeName=a.attrName;b.oldValue=a.prevValue;break;case "DOMNodeInserted":b.type=
"childList";b.target=a.relatedNode;b.addedNodes=[a.target];b.removedNodes=[];break;case "DOMNodeRemoved":b.type="childList",b.target=a.relatedNode,b.addedNodes=[],b.removedNodes=[a.target]}for(a=0;a<this.patterns.length;a++){var c=this.patterns[a],e=c.match(b);e.length&&e.each(function(){c.handler.call(this,b)})}}};p.prototype._addEvent=function(a){this._events[a]||(d(this._target).on(a+this.NS,this._handler),this._events[a]=!0)};q.Pattern=k;q.MutationObserver=n;q.DOMEventObserver=p;d.fn.observe=
function(a,b,c){b?c||(c=b,b=null):(c=a,a=f);return this.each(function(){var e=d(this),f=e.data("observer");f||(f=t?new n(this):new p(this),e.data("observer",f));a=g(a);f.observe(a,b,c)})};d.fn.disconnect=function(a,b,c){a&&(b?c||(c=b,b=null):(c=a,a=f));return this.each(function(){var e=d(this),f=e.data("observer");f&&(a?(a=g(a),f.disconnect(a,b,c)):(f.disconnectAll(),e.removeData("observer")))})}})(jQuery,jQuery.Observe);
/*
A simple jQuery function that can add listeners on attribute change.
http://meetselva.github.io/attrchange/

About License:
Copyright (C) 2013-2014 Selvakumar Arumugam
You may use attrchange plugin under the terms of the MIT Licese.
https://github.com/meetselva/attrchange/blob/master/MIT-License.txt
 */
!function(a){function b(){var a=document.createElement("p"),b=!1;if(a.addEventListener)a.addEventListener("DOMAttrModified",function(){b=!0},!1);else{if(!a.attachEvent)return!1;a.attachEvent("onDOMAttrModified",function(){b=!0})}return a.setAttribute("id","target"),b}function c(b,c){if(b){var d=this.data("attr-old-value");if(c.attributeName.indexOf("style")>=0){d.style||(d.style={});var e=c.attributeName.split(".");c.attributeName=e[0],c.oldValue=d.style[e[1]],c.newValue=e[1]+":"+this.prop("style")[a.camelCase(e[1])],d.style[e[1]]=c.newValue}else c.oldValue=d[c.attributeName],c.newValue=this.attr(c.attributeName),d[c.attributeName]=c.newValue;this.data("attr-old-value",d)}}var d=window.MutationObserver||window.WebKitMutationObserver;a.fn.attrchange=function(e,f){if("object"==typeof e){var g={trackValues:!1,callback:a.noop};if("function"==typeof e?g.callback=e:a.extend(g,e),g.trackValues&&this.each(function(b,c){for(var d,e={},f=0,g=c.attributes,h=g.length;h>f;f++)d=g.item(f),e[d.nodeName]=d.value;a(this).data("attr-old-value",e)}),d){var h={subtree:!1,attributes:!0,attributeOldValue:g.trackValues},i=new d(function(b){b.forEach(function(b){var c=b.target;g.trackValues&&(b.newValue=a(c).attr(b.attributeName)),"connected"===a(c).data("attrchange-status")&&g.callback.call(c,b)})});return this.data("attrchange-method","Mutation Observer").data("attrchange-status","connected").data("attrchange-obs",i).each(function(){i.observe(this,h)})}return b()?this.data("attrchange-method","DOMAttrModified").data("attrchange-status","connected").on("DOMAttrModified",function(b){b.originalEvent&&(b=b.originalEvent),b.attributeName=b.attrName,b.oldValue=b.prevValue,"connected"===a(this).data("attrchange-status")&&g.callback.call(this,b)}):"onpropertychange"in document.body?this.data("attrchange-method","propertychange").data("attrchange-status","connected").on("propertychange",function(b){b.attributeName=window.event.propertyName,c.call(a(this),g.trackValues,b),"connected"===a(this).data("attrchange-status")&&g.callback.call(this,b)}):this}return"string"==typeof e&&a.fn.attrchange.hasOwnProperty("extensions")&&a.fn.attrchange.extensions.hasOwnProperty(e)?a.fn.attrchange.extensions[e].call(this,f):void 0}}(jQuery);
/*! Image Zoom - v4.13 - 2023-05-17
* Copyright (c) 2023 Diana Burduja; Licensed MIT License
* It is a very strongly modified version of the https://github.com/elevateweb/elevatezoom jQuery plugin. */

!function(m,r,l){"use strict";var e={textOnImage:function(){var o,i,t=this;""!==t.options.customText&&t.$elem.attr("width")&&!t.$elem.next().hasClass("iz-text")&&(o=m("<div>").css({position:"absolute","margin-top":"-35px","padding-bottom":"35px",width:t.$elem.attr("width"),color:t.options.customTextColor,"font-size":t.options.customTextSize+"px","text-align":t.options.customTextAlign}).addClass("iz-text").text(t.options.customText),"right"==t.options.customTextAlign&&o.css("padding-right","30px"),"left"==t.options.customTextAlign&&o.css("padding-left","30px"),"top"==t.options.customTextVAlign&&t.$elem.attr("height")&&(i=parseInt(t.$elem.attr("height"))-30,o.css("margin-top","-"+i+"px"),o.css("padding-bottom",i+"px")),t.$elem.after(o))},init:function(o,i){var t,e,n=this;if(n.elem=i,n.$elem=m(i),n.options=o,n.is_touch=!1,n.img_big={src:n.$elem.attr("src")},void 0===n.img_big.src&&void 0!==n.$elem.attr("data-src")&&(n.img_big.src=n.$elem.attr("data-src")),n.$elem.data("zoom-image")?n.img_big.src=n.$elem.data("zoom-image"):n.$elem.attr("srcset")&&(i=n.$elem.attr("srcset").split(","),t=0,e="",m.each(i,function(o,i){i=i.trim().split(" ");parseInt(i[1])>t&&(t=parseInt(i[1]),e=i[0])}),""!==e&&(n.img_big.src=e)),n.$elem.data("zoom-attr"))for(var s in n.$elem.data("zoom-attr"))n.options[s]=n.$elem.data("zoom-attr")[s];n.ratio={width:1,height:1},n.zw={height:parseInt(n.options.zoomWindowHeight),width:parseInt(n.options.zoomWindowWidth)},n.lens={height:n.options.lensSize,width:n.options.lensSize},n.screen={height:m(l).height(),width:m(l).width()},n.options.tint&&(n.options.lensColour="none",n.options.lensOpacity="1"),"inner"===n.options.zoomType&&(n.options.showLens=!1),n.$elem.parent().removeAttr("title").removeAttr("alt"),!0===n.options.responsive&&n.screen.width<=n.options.responsiveThreshold&&(n.options.zoomType="inner",n.options.showLens=!1),n.loadImage()},isTouchDevice:function(){return!!("ontouchstart"in r)},loadImage:function(){var t=this,e=new Image;e.onload=function(){var o,i;t.img_big.height=e.height,t.img_big.width=e.width,0===t.img_big.width&&-1!==t.img_big.src.search(/.svg/i)&&(o=t.elem.getBoundingClientRect(),i=t.options.ratio||2,t.img_big.width=o.width*i,t.img_big.height=o.height*i),t.img_big.width<t.zw.width&&(t.zw.width=t.img_big.width),t.img_big.height<t.zw.height&&(t.zw.height=t.img_big.height),t.registerStart()},e.src=t.img_big.src},registerStart:function(){var t,o,e=this;e.$elem.off("touchstart touchmove touchend"),e.$elem.on("touchstart",function(o){o.preventDefault(),e.is_touch=!0,e.startZoom(o),e.registerTouchStart(o)}).on("touchmove",function(o){e.is_touch=!0,o.preventDefault(),e.registerTouchMove(o)}).on("touchend",function(o){e.is_touch=!1,o.preventDefault(),e.registerTouchEnd()}),!0===e.options.onClick?(e.$elem.off("click"),e.$elem.on("click",function(o){o.preventDefault(),e.startZoom(o),e.setElements(!0)})):(t=1,o="mouseenter",!0===e.options.onMouseMove&&(o="mousemove mouseenter"),e.$elem.off(o),e.$elem.on(o,function(o){var i;e.isTouchDevice()?(i=!1,e.$elem.on("touchstart",function(){e.is_touch=!0,i=!0}),setTimeout(function(){i||e.startZoom(o)},10)):((!(e.is_touch=!1)!==e.options.onMouseMove||1<t||"mouseenter"!==o.type)&&e.startZoom(o),t+=1)})),e.$elem.on("dragstart",function(){return!1})},buildZoomContainer:function(){var i=this;i.zoomContainer=m("<div />").addClass("zoomContainer").css({"-webkit-transform":"translateZ(0)",position:"absolute",left:i.img_small.offset.left+"px",top:i.img_small.offset.top+"px",height:i.img_small.height+"px",width:i.img_small.width+"px","z-index":i.options.zIndex}),"lens"==i.options.zoomType&&1==i.options.lensOverflow&&i.zoomContainer.css("overflow","hidden"),i.zoomContainer.appendTo("body").on("mouseleave",function(){i.setElements(!1)}),!0===i.options.onClick&&i.zoomContainer.on("click",function(o){i.setElements(!1),o.preventDefault()})},buildZoomLens:function(){var o,i=this,t=(i.options.containLensZoom&&i.zoomContainer.css("overflow","hidden"),{"background-position":"0px 0px","background-color":"white",float:"left",display:"none",border:i.options.borderSize+"px solid "+i.options.borderColour,width:i.options.lensSize+"px",height:i.options.lensSize+"px","border-radius":i.options.borderRadius+"px",cursor:i.options.cursor,"background-repeat":"no-repeat",position:"absolute",overflow:"hidden","z-index":i.options.zIndex});!0===i.options.tint&&(t["-webkit-transform"]="translateZ(0)",t.opacity=i.options.lensOpacity,t["-ms-filter"]="progid:DXImageTransform.Microsoft.Alpha(Opacity="+100*i.options.lensOpacity+")",t.filter="alpha(opacity= "+100*i.options.lensOpacity+")"),"round"===i.options.lensShape&&(o=i.options.lensSize/2+i.options.borderSize+"px",t["-webkit-border-radius"]=o,t["-moz-border-radius"]=o,t["border-radius"]=o),i.zoomLens=m("<div />").addClass("zoomLens").css(t).appendTo(i.zoomContainer),!0===i.options.lensTriggerClick&&i.zoomLens.on("click",function(){i.$elem.trigger("click")})},buildZoomWindow:function(){var o,i=this,t=(i.lens.height=i.zw.height/i.ratio.height,i.img_big.height<i.zw.height&&(i.lens.height=i.img_small.height),i.lens.width=i.zw.width/i.ratio.width,i.img_big.width<i.zw.width&&(i.lens.width=i.img_small.width),{"background-position":"0px 0px",display:"none",overflow:"hidden","z-index":i.options.zIndex,"-webkit-transform":"translateZ(0)",opacity:i.options.lensOpacity,"-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity="+100*i.options.lensOpacity+")",filter:"alpha(opacity= "+100*i.options.lensOpacity+")",zoom:1,width:i.lens.width+"px",height:i.lens.height+"px","background-color":i.options.lensColour,cursor:i.options.cursor,"border-radius":i.options.borderRadius+"px",border:i.options.lensBorderSize+"px solid "+i.options.lensBorderColour,"background-repeat":"no-repeat",position:"absolute","box-shadow":"-0px -0px 10px rgba(0, 0, 0, 0.4)"}),t=(!1!==i.options.lensOverlay&&(t.background="url("+i.options.lensOverlay+") "+i.options.lensColour),i.zoomLens=m("<div />").addClass("zoomLens").css(t).appendTo(i.zoomContainer),!0===i.options.lensTriggerClick&&i.zoomLens.on("click",function(){i.$elem.trigger("click")}),i.xp&&i.yp||(i.xp=-i.img_big.width/2,i.yp=-i.img_big.height/2),{overflow:"hidden","background-position":i.xp+"px "+i.yp+"px","text-align":"center","background-color":i.options.zoomWindowBgColour,width:i.zw.width+"px",height:i.zw.height+"px",float:"left","border-radius":i.options.borderRadius+"px","background-size":i.img_big.width/i.currentZoomLevel+"px "+i.img_big.height/i.currentZoomLevel+"px",display:"none","z-index":i.options.zIndex,border:i.options.borderSize+"px solid "+i.options.borderColour,"background-repeat":"no-repeat",position:"absolute"});return 0<i.options.zoomWindowShadow&&(o=2*i.options.zoomWindowShadow+"px "+2*i.options.zoomWindowShadow+"px "+i.options.zoomWindowShadow+"px #ccc",t["box-shadow"]=o,t["-moz-box-shadow"]=o,t["-webkit-box-shadow"]=o,t["-khtml-box-shadow"]=o),t},buildZoomInner:function(){var o=this,i=o.$elem.css("border-left-width");return o.xp&&o.yp||(o.xp=-o.img_big.width/2,o.yp=-o.img_big.height/2),{overflow:"hidden","margin-left":i,"margin-top":i,"background-position":o.xp+"px "+o.yp+"px","background-color":"white",width:o.img_small.width+"px",height:o.img_small.height+.5+"px",float:"left","border-radius":o.options.borderRadius+"px",display:"none",cursor:o.options.cursor,"background-repeat":"no-repeat",position:"absolute","z-index":o.options.zIndex}},buildTint:function(){var o,i=this;i.options.tint&&(o={display:"block",position:"absolute","background-color":i.options.tintColour,filter:"alpha(opacity=0)",border:"none",opacity:0,"z-index":i.options.zIndex-20,width:i.img_small.width+"px",height:i.img_small.height+"px"},i.tintContainer=m("<div />").addClass("tintContainer"),i.zoomTint=m("<div />").addClass("zoomTint").css(o),i.zoomLens.wrap(i.tintContainer),i.zoomLens.after(i.zoomTint),o={position:"absolute",left:"0px",top:"0px","z-index":i.options.zIndex-20,opacity:"0","max-width":"none",width:i.img_small.width+"px",height:i.img_small.height+"px"},"window"===i.options.zoomType&&(o.opacity=1),i.zoomTintImage=m("<img />").css(o).attr("src",i.img_big.src).appendTo(i.zoomLens).on("click",function(){i.$elem.trigger("click")}).on("dragstart",function(){return!1}))},startZoom:function(o){var i=this;if(i.isWindowActive=!1,i.isLensActive=!1,i.isTintActive=!1,i.zoomLock=1,i.scrollingLock=!1,i.changeBgSize=!1,i.currentZoomLevel=i.options.zoomLevel,i.img_small={src:i.$elem.attr("src"),width:i.$elem.width(),height:i.$elem.height(),offset:i.$elem.offset()},i.$elem.css("padding-top")&&(i.img_small.offset.top+=parseInt(i.$elem.css("padding-top")),i.img_small.offset.left+=parseInt(i.$elem.css("padding-left"))),i.img_big.width/i.img_small.width<1&&1===i.options.zoomLevel&&(i.currentZoomLevel=i.img_big.width/i.img_small.width/1.3,i.options.zoomLevel=i.currentZoomLevel),i.ratio={width:i.img_big.width/i.img_small.width/i.currentZoomLevel,height:i.img_big.height/i.img_small.height/i.currentZoomLevel},i.options.ratio&&(i.ratio={width:i.options.ratio,height:i.options.ratio},i.currentZoomLevel=i.img_big.width/i.img_small.width/i.options.ratio,i.options.zoomLevel=i.currentZoomLevel),(i.ratio.height<1||i.ratio.width<1)&&!0!==i.options.scrollZoom)return!1;i.buildZoomContainer();var t={};switch(i.options.zoomType){case"lens":i.buildZoomLens(),i.buildTint();break;case"window":t=i.buildZoomWindow(),i.buildTint();break;case"inner":t=i.buildZoomInner()}var e="body",e=(isNaN(i.options.zoomWindowPosition)||(e=i.zoomContainer),i.zoomWindow=m("<div />").addClass("zoomWindow").css(t).appendTo(e).on("click",function(){i.$elem.trigger("click")}),m("<div />").addClass("iz_watermark").css({width:i.img_small.width+"px",height:i.img_small.height+"px","vertical-align":i.options.customTextVAlign,display:"table-cell","text-align":i.options.customTextAlign,color:i.options.customTextColor,"font-size":i.options.customTextSize+"px",padding:"3px"}).html(i.options.customText)),e=(0<m(".iz_watermark").length&&m(".iz_watermark").remove(),i.zoomWindow.after(e),!1!==i.options.imageTitlePosition&&i.$elem.attr("title")&&(e=m("<div />").addClass("iz_image_title").css({color:i.options.imageTitleColour,"background-color":i.options.imageTitleBg,"font-size":i.options.imageTitleSize,width:"100%",position:"absolute",padding:"4px",opacity:"0.85"}).html(i.$elem.attr("title")),"bottom"==i.options.imageTitlePosition&&e.css("bottom","0"),i.zoomWindow.html(e)),i.zoomWindowContainer=m("<div/>").addClass("zoomWindowContainer").css("width",i.zw.width),i.zoomWindow.wrap(i.zoomWindowContainer),{backgroundImage:"url('"+i.img_big.src+"')"});("lens"===i.options.zoomType?i.zoomLens:i.zoomWindow).css(e),!0!==i.options.onClick&&!i.isTouchDevice()||i.setElements(!0),i.registerMouseMove(o),i.registerMouseEvents(),i.registerScrollZoom()},registerTouchEnd:function(){this.scrollLock||this.setElements(!1)},registerTouchStart:function(o){var i=this,o=(o.preventDefault(),o.originalEvent.touches[0]||o.originalEvent.changedTouches[0]);i.mouse={left:parseInt(o.pageX-i.img_small.offset.left),top:parseInt(o.pageY-i.img_small.offset.top)},"lens"==i.options.zoomType&&i.options.lensUnderTouch&&(i.mouse.top-=i.zoomLens.height()/2),i.setPosition(o)},registerTouchMove:function(o){var i=this,o=(o.preventDefault(),o.originalEvent.touches[0]||o.originalEvent.changedTouches[0]);void 0!==i.img_small&&(i.mouse={left:parseInt(o.pageX-i.img_small.offset.left),top:parseInt(o.pageY-i.img_small.offset.top)},"lens"==i.options.zoomType&&i.options.lensUnderTouch&&(i.mouse.top-=i.zoomLens.height()/2),i.setPosition(o))},registerMouseMove:function(o){var i=this;i.mouse={left:parseInt(o.pageX-i.img_small.offset.left),top:parseInt(o.pageY-i.img_small.offset.top)},i.lastX===o.clientX&&i.lastY===o.clientY||(i.setPosition(o),i.currentLoc=o),i.lastX=o.clientX,i.lastY=o.clientY},registerMouseEvents:function(){function o(o){i.mouse={left:parseInt(o.pageX-i.img_small.offset.left),top:parseInt(o.pageY-i.img_small.offset.top)},i.lastX===o.clientX&&i.lastY===o.clientY||(i.setPosition(o),i.currentLoc=o),i.lastX=o.clientX,i.lastY=o.clientY}var i=this;i.$elem.on("mousemove",o),i.zoomContainer.on("mousemove",o),"inner"===i.options.zoomType?i.zoomWindow.on("mousemove",o):(i.zoomLens.on("mousemove",o),i.options.tint&&i.zoomTint.on("mousemove",o))},registerScrollZoom:function(){var t=this;if(!t.options.scrollZoom)return t.changeZoomLevel(t.currentZoomLevel),!1;t.changeZoomLevel(t.currentZoomLevel),1!==t.options.zoomLevel&&t.changeZoomLevel(t.currentZoomLevel);var e=2*t.options.scrollZoomIncrement;t.options.minZoomLevel&&(e=t.options.minZoomLevel);t.zoomContainer.add(t.$elem).on("mousewheel DOMMouseScroll MozMousePixelScroll",function(o){t.scrollLock=!0,clearTimeout(m.data(this,"timer")),m.data(this,"timer",setTimeout(function(){t.scrollLock=!1},250));var i=o.originalEvent.wheelDelta||-1*o.originalEvent.detail||o.originalEvent.deltaY,o=(o.stopImmediatePropagation(),o.stopPropagation(),o.preventDefault(),0);return t.currentZoomLevel=parseFloat(t.currentZoomLevel),0<i?t.currentZoomLevel>=e&&(o=t.currentZoomLevel-t.options.scrollZoomIncrement):o=t.currentZoomLevel+t.options.scrollZoomIncrement,t.changeZoomLevel(o),!1})},setElements:function(o){var i=this;if(!i.options.zoomEnabled)return!1;!1===o&&(i.$elem.off("mousemove"),i.zoomContainer.off("mousemove click mouseleave"),i.zoomWindow.off("mousemove click"),i.zoomLens&&i.zoomLens.off("mousemove click"),i.zoomTint&&i.zoomTint.off("mousemove"),m(".zoomContainer").remove(),m(".zoomLens").remove(),m(".zoomWindow").remove(),m(".tintContainer").remove()),i.showZoomWindow(o),i.showLens(o),i.showTint(o)},setPosition:function(o){var i,t=this;if(!t.options.zoomEnabled)return!1;t.options.tint&&"inner"!==t.options.zoomType&&t.zoomTint.css({top:0,left:0}),t.options.responsive&&!t.options.scrollZoom&&t.options.showLens&&("lens"===t.options.zoomType?t.zoomLens.css({width:t.options.lensSize+"px",height:t.options.lensSize+"px"}):(i=t.zw.height/t.ratio.height,t.img_small.height<t.zw.width/t.ratio.width&&(i=t.img_small.height),n=t.zw.width/t.ratio.width,t.img_small.width<t.zw.width/t.ratio.height&&(n=t.img_small.width),t.zoomLens.css({width:n+"px",height:i+"px"}),t.options.tint&&t.zoomTintImage.css({width:t.img_small.width+"px",height:t.img_small.height+"px"}))),t.zoomContainer.css({top:t.img_small.offset.top,left:t.img_small.offset.left});var e={top:!1,bottom:!1,left:!1,right:!1},n=("window"===t.options.zoomType&&(e.height=t.zoomLens.height()/2,e.width=t.zoomLens.width()/2),"inner"===t.options.zoomType&&(e.height=t.img_small.height/2/t.ratio.height,e.width=t.img_small.width/2/t.ratio.width),e.top=t.mouse.top<e.height,e.bottom=t.mouse.top>t.img_small.height-e.height,e.left=t.mouse.left<e.width,e.right=t.mouse.left>t.img_small.width-e.width,t.bound=e,0);if("lens"==t.options.zoomType&&1==t.is_touch&&(n=-t.zoomLens.height()/2),t.mouse.left<0||t.mouse.top<n||t.mouse.left>t.img_small.width||t.mouse.top>t.img_small.height)t.setElements(!1);else{t.setElements(!0);var s=0,m=0;switch(t.options.zoomType){case"window":s=t.mouse.left-t.zoomLens.width()/2-t.options.lensBorderSize,m=t.mouse.top-t.zoomLens.height()/2-t.options.lensBorderSize,e.bottom&&(m=t.img_small.height-t.zoomLens.height()-t.options.lensBorderSize),e.right&&(s=t.img_small.width-t.zoomLens.width()-t.options.lensBorderSize),e.top&&(m=-t.options.lensBorderSize),e.left&&(s=-t.options.lensBorderSize),t.options.tint&&t.setTintPosition(o);break;case"inner":e.bottom&&(m=Math.max(t.img_small.height-2*t.options.lensBorderSize,0)),e.right&&(s=2*-t.options.lensBorderSize);break;case"lens":t.windowLeftPos=t.zoomLens.width()/2-t.mouse.left*t.ratio.width,t.windowTopPos=t.zoomLens.height()/2-t.mouse.top*t.ratio.height,1==t.is_touch&&t.mouse.top<0&&(t.windowTopPos=t.zoomLens.height()/2-t.mouse.top),t.zoomLens.css({backgroundPosition:t.windowLeftPos+"px "+t.windowTopPos+"px"}),t.changeBackgroundSize(),t.options.tint&&t.setTintPosition(o),s=t.mouse.left-t.zoomLens.width()/2,m=t.mouse.top-t.zoomLens.height()/2}t.setWindowPosition(o),t.options.showLens&&(t.fullwidth&&"lens"!==t.options.zoomType&&(s=0),t.zoomLens.css({left:s+"px",top:m+"px"}))}},showZoomWindow:function(o){var i=this;i.isWindowActive!==o&&(i.fadeEffect(i.zoomWindow,o,i.options.zoomWindowFadeIn,i.options.zoomWindowFadeOut),i.isWindowActive=o)},showLens:function(o){var i=this;i.options.showLens&&i.isLensActive!==o&&(i.fadeEffect(i.zoomLens,o,i.options.lensFadeIn,i.options.lensFadeOut),i.isLensActive=o)},showTint:function(o){var i=this;i.options.tint&&"inner"!==i.options.zoomType&&i.isTintActive!==o&&(o&&i.zoomTint.css({opacity:i.options.tintOpacity}).animate(),i.fadeEffect(i.zoomTint,o,"slow","slow"),i.isTintActive=o)},fadeEffect:function(o,i,t,e){i?0<t?o.stop(!0,!0,!1).fadeIn(t):o.show():0<e?o.stop(!0,!0).fadeOut(e):o.hide()},setWindowPosition:function(o){var i,t=this,e=("inner"===t.options.zoomType&&(t.options.zoomWindowPosition=1),t.options.zoomWindowOffsetx=parseInt(t.options.zoomWindowOffsetx),t.options.zoomWindowOffsety=parseInt(t.options.zoomWindowOffsety),t.options.zoomWindowOffsety),n=t.img_small.width;if(isNaN(t.options.zoomWindowPosition))var s=m("#"+t.options.zoomWindowPosition).offset(),e=s.top,n=s.left;else{switch(t.options.zoomWindowPosition){case 4:case 5:case 6:case 7:case 8:e=t.img_small.height;break;case 12:case 13:case 14:case 15:case 16:e=-t.zoomWindow.height()-2*t.options.borderSize;break;case 1:case 11:e=t.options.zoomWindowOffsety;break;case 2:case 10:e=t.img_small.height/2-t.zw.height/2;break;case 3:case 9:e=t.img_small.height-t.zoomWindow.height()-2*t.options.borderSize}switch(t.options.zoomWindowPosition){case 1:case 2:case 3:case 4:case 16:n=t.img_small.width+t.options.zoomWindowOffsetx,!0===t.options.responsive&&"window"===t.options.zoomType&&t.$elem.offset().left+n+t.zw.width>=t.screen.width&&(t.zw.width=t.screen.width-t.$elem.offset().left-n-20,t.zoomWindow.css({width:t.zw.width}),t.zoomLens.css({width:t.zw.width/t.ratio.width})),"inner"===t.options.zoomType&&(n=t.options.zoomWindowOffsetx);break;case 8:case 9:case 10:case 11:case 12:!0===t.options.responsive&&"window"===t.options.zoomType&&t.zw.width+2*t.options.borderSize+t.options.zoomWindowOffsetx>=t.$elem.offset().left&&(t.zw.width=t.$elem.offset().left-2*t.options.borderSize-t.options.zoomWindowOffsetx-20,t.zoomWindow.css({width:t.zw.width}),t.zoomLens.css({width:t.zw.width/t.ratio.width})),n=-t.zw.width-2*t.options.borderSize-3*t.options.zoomWindowOffsetx;break;case 5:case 15:n=t.img_small.width-t.zoomWindow.width()-2*t.options.borderSize;break;case 6:case 14:n=t.img_small.width/2-t.zw.width/2-2*t.options.borderSize;break;case 7:case 13:n=0}}e+=t.options.zoomWindowOffsety,n+=t.options.zoomWindowOffsetx,"window"===t.options.zoomType&&t.options.adjustZoomWindowHeight&&(s="innerHeight"in r?r.innerHeight:l.documentElement.offsetHeight,i=r.pageYOffset||l.documentElement.scrollTop,t.img_small.offset.top-i+t.zw.height>s&&(e=-(t.img_small.offset.top-i+t.zw.height-s+10),t.zw.height+20>s&&(t.zw.height=s-20,t.zoomWindow.css({height:t.zw.height}),t.zoomLens.css({height:t.zw.height/t.ratio.height})))),"inner"==t.options.zoomType&&(n=0),t.zoomWindow.css({top:e,left:n}),t.windowLeftPos=t.zoomWindow.width()/2-t.mouse.left*t.ratio.width,t.windowTopPos=t.zoomWindow.height()/2-t.mouse.top*t.ratio.height,(t.bound.top||t.fullheight)&&(t.windowTopPos=0),(t.bound.left||t.fullwidth)&&(t.windowLeftPos=0),t.bound.bottom&&(t.windowTopPos=t.zoomWindow.height()-t.img_big.height/t.currentZoomLevel),t.bound.right&&(t.windowLeftPos=t.zoomWindow.width()-t.img_big.width/t.currentZoomLevel),"window"!==t.options.zoomType&&"inner"!==t.options.zoomType||(1===t.zoomLock&&(t.ratio.width<=1&&(t.windowLeftPos=0),t.ratio.height<=1&&(t.windowTopPos=0)),0<t.options.easingAmount?t.easingEffect(o):(t.changeBackgroundSize(),t.zoomWindow.css({backgroundPosition:t.windowLeftPos+"px "+t.windowTopPos+"px"})))},changeBackgroundSize:function(){var o,i=this;i.changeBgSize&&(o=i.img_big.width/i.newZoomLevel+"px "+i.img_big.height/i.newZoomLevel+"px","lens"===i.options.zoomType&&i.zoomLens.css({"background-size":o}),i.zoomWindow.css({"background-size":o}),i.changeBgSize=!1)},easingEffect:function(o){var i=this;i.xp||(i.xp=0),i.yp||(i.yp=0),i.loop||(i.loop=setInterval(function(){i.xp+=(i.windowLeftPos-i.xp)/i.options.easingAmount,i.yp+=(i.windowTopPos-i.yp)/i.options.easingAmount,0<i.xp&&(i.xp=0),0<i.yp&&(i.yp=0),i.yp<i.zoomWindow.height()-i.img_big.height/i.currentZoomLevel&&(i.yp=i.zoomWindow.height()-i.img_big.height/i.currentZoomLevel),i.xp<i.zoomWindow.width()-i.img_big.width/i.currentZoomLevel&&(i.xp=i.zoomWindow.width()-i.img_big.width/i.currentZoomLevel),i.scrollingLock?(clearInterval(i.loop),i.xp=i.zoomWindow.width()/2-i.mouse.left*i.ratio.width,i.yp=i.zoomWindow.height()/2-i.mouse.top*i.ratio.height,i.changeBackgroundSize(),i.zoomWindow.css({backgroundPosition:i.windowLeftPos+"px "+i.windowTopPos+"px"}),i.scrollingLock=!1,i.loop=!1):(i.changeBackgroundSize(),i.zoomWindow.css({backgroundPosition:i.xp+"px "+i.yp+"px"}))},16))},setTintPosition:function(){var o=this;o.options.tint&&(o.tintpos=o.zoomLens.width()/2-o.mouse.left,o.tintposy=o.zoomLens.height()/2-o.mouse.top,(o.bound.top||o.fullheight)&&(o.tintposy=0),(o.bound.left||o.fullwidth)&&(o.tintpos=0),o.bound.bottom&&(o.tintposy=o.zoomLens.height()-o.img_small.height),o.bound.right&&(o.tintpos=o.zoomLens.width()-o.img_small.width),o.zoomTintImage.css({left:o.tintpos+"px",top:o.tintposy+"px"}))},changeZoomLevel:function(o){var i=this,o=(i.scrollingLock=!0,i.newZoomLevel=parseFloat(o).toFixed(2),"inner"===i.options.zoomType&&(i.zw.width=i.img_small.width,i.zw.height=i.img_small.height),parseFloat(i.img_big.height/i.zw.height).toFixed(2)),t=parseFloat(i.img_big.width/i.zw.width).toFixed(2);i.newZoomLevel=Math.min(o,t,i.newZoomLevel),i.newZoomLevel<.1&&(i.newZoomLevel=.1),i.ratio.width=i.img_big.width/i.newZoomLevel/i.img_small.width,i.ratio.height=i.img_big.height/i.newZoomLevel/i.img_small.height,i.zoomLock=0,i.changeBgSize=!0,i.currentZoomLevel=i.newZoomLevel,"window"===i.options.zoomType&&i.zoomLens.css({height:String(i.zw.height/i.ratio.height)+"px",width:String(i.zw.width/i.ratio.width)+"px"}),i.setPosition(i.currentLoc)}};m.fn.image_zoom=function(t){return this.each(function(){function o(){}var i=m.extend(!0,{},m.fn.image_zoom.options,t);o.prototype=e,(new o).init(i,this)})},m.fn.image_zoom.options={zoomEnabled:!0,zoomLevel:1,ratio:!1,onClick:!1,scrollZoom:!1,scrollZoomIncrement:.1,adjustZoomWindowHeight:!1,minZoomLevel:!1,maxZoomLevel:!1,easingAmount:12,lensSize:200,zoomWindowWidth:400,zoomWindowHeight:360,zoomWindowOffsetx:0,zoomWindowOffsety:0,zoomWindowPosition:1,zoomWindowBgColour:"#fff",zoomWindowShadow:4,lensFadeIn:!1,lensFadeOut:!1,lensOverlay:!1,zoomWindowFadeIn:!1,zoomWindowFadeOut:!1,zoomWindowAlwaysShow:!1,zoomTintFadeIn:!1,zoomTintFadeOut:!1,borderSize:4,showLens:!0,borderColour:"#888",borderRadius:0,lensBorderSize:1,lensBorderColour:"#000",lensShape:"square",zoomType:"window",containLensZoom:!1,lensColour:"white",lensOpacity:.4,lenszoom:!1,tint:!1,tintColour:"#333",tintOpacity:.4,cursor:"default",responsive:!1,responsiveThreshold:550,customText:"",customTextSize:12,customTextColor:"#ccc",customTextAlign:"bottom",customTextVAlign:"center",zIndex:999,onMouseMove:!1,lensOverflow:!0,lensTriggerClick:!0,imageTitleBg:"#000",imageTitleColour:"#fff",imageTitleSize:12,lensUnderTouch:!0,imageTitlePosition:!1,onComplete:m.noop}}(jQuery,window,document);window.mobilecheck=function(){var o,e=!1;return o=navigator.userAgent||navigator.vendor||window.opera,e=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(o)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(o.substr(0,4))?!0:e},jQuery(window).ready(function(n){function i(o,e,t,i){var a;o.attr(t)&&(a=o.attr(t)),e.attr(t)?o.attr(t,e.attr(t)):o.removeAttr(t),i&&(a&&0<a.length?e.attr(t,a):e.removeAttr(t))}function a(o,e,t,i){temp=o.data(t),e.data(t)||e.data(t,""),o.data(t,e.data(t)),temp=temp||"",i&&e.data(t,temp)}({init:function(){window.mobilecheck()&&"1"!=IZ.enable_mobile||this.is_wysiwyg_editor()||(this.use_zoooom_class(),this.compat_flexslider(),this.compat_woocommerce2(),this.compat_woocommerce3_slider(),this.compat_woocommerce3_no_slider(),this.compat_fancybox(),this.compat_search_filter_pro(),this.compat_huge_it_gallery(),this.compat_flatsome_gallery(),this.compat_jetpack_lightbox(),this.compat_lightbox_photo_gallery(),this.compat_lightbox_avada_portfolio(),this.compat_lightbox_prettyphoto(),"1"===IZ.enable_lightbox_zoom&&(this.lightbox_compat(".sl-image img",".sl-image"),this.lightbox_compat(".slb_container img",".slb_container")),this.compat_magnific_popup(),this.compat_lightbox_media_grid(),this.compat_nextgenpro_lightbox(),this.compat_owl_carousel(),this.compat_flickity_carousel(),this.compat_slick_carousel(),this.compat_lightbox_etoile(),this.compat_featherlight(),this.compat_woo_layout_injector(),void 0!==IZ.shopkeeper&&"1"==IZ.shopkeeper&&this.enable_on_swiper(".woocommerce-product-gallery"),void 0!==IZ.swiper&&0<IZ.swiper.length&&this.enable_on_swiper(IZ.swiper),this.compat_lightbox_elementor(),this.compat_woo_openswatch())},is_wysiwyg_editor:function(){if(0<n("body.elementor-editor-active").length)return!0;if(0<n("body.fl-builder-edit").length)return!0;var o=(window.location!=window.parent.location?window.parent:window).location.href;return 0<o.indexOf("vc_action=vc_inline")||0<o.indexOf("vc_editable=true")||(0<o.indexOf("et_fb=")||0<o.indexOf("et_fb="))},use_zoooom_class:function(){n(".is-style-zoooom").each(function(){n(this).addClass("zoooom")}),n(".zoooom").each(function(){"IMG"!==this.tagName&&(n(this).find("img").addClass("zoooom"),n(this).removeClass("zoooom"))}),n("img[data-lazy-src]").each(function(){var e,t;n(this).attr("data-zoom-image",n(this).data("lazy-src")),n(this).attr("srcset")&&(e=0,t="",n(this).attr("srcset").split(", ").forEach(function(o){o=o.split(" ");parseInt(o[1])>e&&(e=parseInt(o[1]),t=o[0])}),0<t.length&&n(this).attr("data-zoom-image",t))}),n("img[data-lazy-type]").each(function(){n(this).attr("data-zoom-image",n(this).data("src"))}),n("img[data-src].lazyload").each(function(){n(this).attr("data-zoom-image",n(this).data("src"))}),n("img[data-large_image]").each(function(){n(this).attr("data-zoom-image",n(this).data("large_image"))});var o,e=void 0===IZ.options.zoomWindowPosition?1:IZ.options.zoomWindowPosition,t=(n(".zoooom-left img, img.zoooom-left").each(function(){var o=new Map([[1,11],[2,10],[3,9]]),o=o.has(e)?o.get(e):11;n(this).attr("data-zoom-attr",'{"zoomWindowPosition": '+o+"}")}),n(".zoooom-right img, img.zoooom-right").each(function(){var o=new Map([[11,1],[10,2],[9,3]]),o=o.has(e)?o.get(e):1;n(this).attr("data-zoom-attr",'{"zoomWindowPosition": '+o+"}")}),"img.zoooom, .zoooom img, .mp_product_image_single, a.zoomGallery img, .portfolio_images img, .single-fluxus_portfolio .project-image img, .attachment-product_page_image, .product-slider-image, .slider-content-images img");n(t).image_zoom(IZ.options),n("img.zoooom, a.zoomGallery").attrchange(r),n("body").observe("added",".zoooom, a.zoomGallery img",function(o){IZ.options.onMouseMove=!0,n(".zoooom img, img.zoooom, a.zoomGallery img").image_zoom(IZ.options),n("body").observe("removed",".zoooom",function(o){n(".zoomContainer").remove()})}),""!=IZ.custom_class&&n(IZ.custom_class).image_zoom(IZ.options),"function"==typeof n.unveil&&n("img.unveil").unveil(0,function(){n(this).load(function(){n("img.zoooom").image_zoom(IZ.options),n(".zoooom img").image_zoom(IZ.options)})}),n(window).on("resize",function(o){window.resizeEvt,n(window).on("resize",function(){clearTimeout(window.resizeEvt),window.resizeEvt=setTimeout(function(){n(".zoomContainer").remove(),n(t).image_zoom(IZ.options)},500)})}),"1"==IZ.woo_categories&&(n(o=".tax-product_cat .products img:not(.woocommerce-placeholder), .post-type-archive-product .products img:not(.woocommerce-placeholder)").image_zoom(IZ.options),n(document).on("yith-wcan-ajax-filtered",function(){n(".zoomContainer").remove(),n(o).image_zoom(IZ.options)})),"1"==IZ.force_attachments&&n(".type-attachment img").image_zoom(IZ.options)},compat_flexslider:function(){var o,e,t;0!==IZ.flexslider.length&&(o=".slides",e=".flex-active-slide",0<n(IZ.flexslider+" .lvca-slide").length&&(o=".lvca-slide",e=".lvca-flex-active-slide"),0<n(IZ.flexslider+" .woocommerce-product-gallery__image").length&&(o=".woocommerce-product-gallery__image"),0<n(IZ.flexslider+" "+o).length&&(setTimeout(function(){n(IZ.flexslider+" img").first().image_zoom(IZ.options)},500),t="",n(IZ.flexslider+" "+o).attrchange({trackValues:!0,callback:function(o){o.newValue!=t&&(n(".zoomContainer").remove(),setTimeout(function(){n(IZ.flexslider+" "+e+" img").image_zoom(IZ.options)},400)),t=o.newValue}}),n(IZ.flexslider+" .slides li").attrchange({trackValues:!0,callback:function(o){"class"===o.attributeName&&(n(".zoomContainer").remove(),setTimeout(function(){n(IZ.flexslider+" "+e+" img").image_zoom(IZ.options)},400))}})))},compat_woocommerce2:function(){"1"==IZ.with_woocommerce&&(0===IZ.flexslider.length&&(0<n(".woocommerce-product-gallery .attachment-shop_single").length&&n(".woocommerce-product-gallery .attachment-shop_single").image_zoom(IZ.options),n(".woocommerce-product-gallery .attachment-shop_single").attrchange(r)),"0"==IZ.remove_lightbox_thumbnails&&"0"==IZ.remove_lightbox||n("a[data-rel^='zoomImage']").each(function(o){n(this).on("click",function(o){var e,i=n(".attachment-shop_single"),a=(1<i.length&&(i=n(this).closest(".images").find(n(".attachment-shop_single"))),n(this).find("img"));o.preventDefault(),!1===a.hasClass("attachment-shop_single")&&(i.removeAttr("srcset").removeAttr("sizes"),a.removeAttr("srcset").removeAttr("sizes"),o=a.attr("src"),n.each(["alt","title"],function(o,e){var t;i.attr(e)&&(t=i.attr(e)),a.attr(e)?i.attr(e,a.attr(e)):i.removeAttr(e),"1"==IZ.exchange_thumbnails&&(t&&0<t.length?a.attr(e,t):a.removeAttr(e))}),e=a.parent().attr("href"),"1"==IZ.exchange_thumbnails&&a.parent().attr("href",i.parent().attr("href")),i.parent().attr("href",e),i.attr("src",e),i.data("thumbnail-src")&&"1"==IZ.exchange_thumbnails&&a.attr("src",i.attr("data-thumbnail-src")),i.attr("data-thumbnail-src",o),e=i.data("zoom-image"),a.data("zoom-image")||a.data("zoom-image",""),i.data("zoom-image",a.data("zoom-image")),a.data("zoom-image",e=e||""),n(".zoomContainer").remove(),n(".attachment-shop_single").image_zoom(IZ.options))})}),"1"==IZ.remove_lightbox_thumbnails&&"0"==IZ.remove_lightbox&&"function"==typeof n({}).prettyPhoto&&(n(".thumbnails a").on("click",function(o){o.preventDefault(),n(this).off("click.prettyphoto")}),n("a[data-rel^='zoomImage']").prettyPhoto({hook:"data-rel",social_tools:!1,theme:"pp_woocommerce",horizontal_padding:20,opacity:.8,deeplinking:!0,overlay_gallery:!0})))},compat_woocommerce3_slider:function(){if("1"!=IZ.with_woocommerce||"1"!=IZ.woo_slider&&0===n(".woo_product_slider_enabled").length)return!1;if(0===n(".woocommerce-product-gallery img").length)return!1;IZ.options.onMouseMove=!0;var t=".woocommerce-product-gallery__wrapper img",e=("1"==IZ.remove_lightbox&&(IZ.options.lensTriggerClick=!1),setTimeout(function(){0<n(".woocommerce-product-gallery .flex-viewport").length&&(t=".woocommerce-product-gallery__wrapper .flex-active-slide img"),n(t).first().image_zoom(IZ.options)},500),"");function i(){n(t).first().image_zoom(IZ.options);var e="";n(".woocommerce-product-gallery__wrapper").attrchange({trackValues:!0,callback:function(o){o.newValue!=e&&(n(".zoomContainer").remove(),setTimeout(function(){n(".woocommerce-product-gallery__wrapper .flex-active-slide img").image_zoom(IZ.options)},550)),e=o.newValue}})}n(".woocommerce-product-gallery__wrapper").attrchange({trackValues:!0,callback:function(o){o.newValue!=e&&(n(".zoomContainer").remove(),setTimeout(function(){n(t).first().image_zoom(IZ.options)},550)),e=o.newValue}}),n(".pswp").attrchange({trackValues:!0,callback:function(o){o.newValue!=e&&n(".zoomContainer").remove(),e=o.newValue}}),n(window).on("resize",function(o){window.resizeEvt,n(window).resize(function(){clearTimeout(window.resizeEvt),window.resizeEvt=setTimeout(function(){n(".zoomContainer").remove(),n(t).first().image_zoom(IZ.options)},300)})}),"1"==IZ.remove_lightbox&&n(".woocommerce-product-gallery img").on("click",function(o){o.preventDefault()}),n(".attachment-shop_thumbnail").attrchange({trackValue:!0,callback:function(o){"data-large_image"==o.attributeName&&(n(this).data("zoom-image",n(this).attr("data-large_image")),n(".zoomContainer").remove(),n(t).first().image_zoom(IZ.options))}}),n("body").on("wc_additional_variation_images_frontend_image_swap_done_callback",function(){i()}),n("body").on("woocommerce_gallery_init_zoom",function(){n("body").observe("added",".woocommerce-product-gallery__image",function(o){setTimeout(function(){i()},500)})}),n("body").on("uni_cpo_options_product_image_replaced_event",function(){n(".zoomContainer").remove(),setTimeout(function(){(0<n(".flex-active-slide").length?n(".woocommerce-product-gallery__wrapper .flex-active-slide img"):n(".woocommerce-product-gallery__image img.attachment-shop_thumbnail")).image_zoom(IZ.options)},200)})},compat_woocommerce3_no_slider:function(){if("1"!=IZ.with_woocommerce||"0"!=IZ.woo_slider&&0==n(".woo_product_slider_disabled").length)return!1;var e=n(".woocommerce-product-gallery__image:first-child img"),t=(e.image_zoom(IZ.options),e.attrchange(r),n(".woocommerce-product-gallery__image img").on("click",function(o){o.preventDefault()}),"1"==IZ.exchange_thumbnails);n(".woocommerce-product-gallery__image:nth-child(n+2) img").each(function(o){n(this).on("click",function(o){i(e,n(this),"src",t),i(e,n(this),"alt",t),i(e,n(this),"title",t),i(e,n(this),"data-src",t),a(e,n(this),"zoom-image",t),a(e,n(this),"thumbnail-image",t),i(e.parent(),n(this).parent(),"href",t),a(e.parent().parent(),n(this).parent().parent(),"thumb",t),n(".zoomContainer").remove(),e.image_zoom(IZ.options)})}),n("body").on("change.wc-variation-form",function(o){n(".zoomContainer").remove(),a(e,n(this),"zoom-image",!0),n(e).first().image_zoom(IZ.options)}),"1"==IZ.remove_lightbox&&n(".woocommerce-product-gallery img").on("click",function(o){o.preventDefault()});n(".pswp").attrchange({trackValues:!0,callback:function(o){""!=o.newValue&&n(".zoomContainer").remove()}})},compat_fancybox:function(){if("1"!=IZ.enable_lightbox_zoom)return!1;setTimeout(function(){0<n("#fancybox-content").length&&n("#fancybox-close").attrchange({trackValues:!0,callback:function(o){if(o.newValue!=o.oldValue)return"display: none;"==o.newValue?(n("#fancybox-content img").remove(),void n(".zoomContainer").remove()):void(0<n("#fancybox-content img").length&&(IZ.options.zIndex=112400,IZ.options.onMouseMove=!0,n("#fancybox-left").remove(),n("#fancybox-right").remove(),n("#fancybox-content img").image_zoom(IZ.options)))}})},500),n("body").observe("added",".fancybox-inner img",function(o){n(".fancybox-inner img").image_zoom(IZ.options),n(".fancybox-overlay").attrchange({trackValues:!0,callback:function(o){o.newValue!=o.oldValue&&(n(".fancybox-inner img").remove(),n(".zoomContainer").remove())}}),n("body").observe("removed",".fancybox-container",function(o){n(".zoomContainer").remove()})})},compat_search_filter_pro:function(){if("1"!=IZ.search_filter_pro)return!1;n(document).on("sf:ajaxfinish",".searchandfilter",function(){n(".zoomContainer").remove(),n(".attachment-shop_single").image_zoom(IZ.options),n(".zoooom").image_zoom(IZ.options)})},compat_huge_it_gallery:function(){if(0===IZ.huge_it_gallery.length)return!1;0<=IZ.huge_it_gallery.indexOf(",")?IZ.huge_it_gallery.split(",").forEach(function(o){n("#huge_it_gallery_container_moving_"+o.trim()+" img").image_zoom(IZ.options)}):n("#huge_it_gallery_container_moving_"+IZ.huge_it_gallery.trim()+" img").image_zoom(IZ.options),n(".gallery-image-overlay").remove(),n("body").observe("added","img.gicboxPhoto",function(o){IZ.options.zIndex=19999,n("img.gicboxPhoto").image_zoom(IZ.options),n("#gicolorbox").attrchange({trackValues:!0,callback:function(o){o.newValue!=o.oldValue&&"style"==o.attributeName&&-1!==o.newValue.indexOf("opacity")&&n(".zoomContainer").remove()}})}),n("body").observe("added",".rwd-container",function(o){IZ.options.zIndex=19999999,IZ.options.onMouseMove=!0,n(".rwd-container .rwd-current img").image_zoom(IZ.options),n(".rwd-container .rwd-item").attrchange({trackValues:!0,callback:function(o){o.newValue!=o.oldValue&&"class"==o.attributeName&&-1!==o.newValue.indexOf("rwd-current")&&(n(".zoomContainer").remove(),n(".rwd-container .rwd-current img").image_zoom(IZ.options))}})})},compat_flatsome_gallery:function(){if(0===n(".slide.easyzoom img").length)return!1;n(".slide.easyzoom img").each(function(o){var e=n(this).parent().attr("href");n(this).attr("data-zoom-image",e)}),n(".slide.easyzoom img").image_zoom(IZ.options)},compat_jetpack_lightbox:function(){if("1"!==IZ.enable_lightbox_zoom)return!1;IZ.options.zIndex=2177483647,n(document.body).on("click.jp-carousel","div.gallery,div.tiled-gallery",function(o){n(".jp-carousel-slide.selected img").image_zoom(IZ.options)}),n(window).on("hashchange.jp-carousel",function(){setTimeout(function(){n(".jp-carousel-slide.selected img").image_zoom(IZ.options),n(".jp-carousel-slide img").attrchange({trackValues:!0,callback:function(o){o.newValue!=o.oldValue&&"src"==o.attributeName&&n(".jp-carousel-slide.selected img").image_zoom(IZ.options)}})},500)})},compat_lightbox_photo_gallery:function(){if("1"!==IZ.enable_lightbox_zoom)return!1;n("body").observe("added","#spider_popup_wrap",function(o){IZ.options.zIndex=3e5,IZ.options.onMouseMove=!0,n("#spider_popup_wrap .bwg_popup_image").image_zoom(IZ.options),n(".bwg_popup_image_spun").observe("attributes",function(o){"image_id"==o.attributeName&&n("#spider_popup_wrap .bwg_popup_image").image_zoom(IZ.options)}),n("body").observe("removed","#spider_popup_wrap",function(o){n(".zoomContainer").remove()})})},compat_lightbox_avada_portfolio:function(){if("1"!==IZ.enable_lightbox_zoom)return!1;n("body").observe("added",".ilightbox-overlay",function(o){setTimeout(function(){IZ.options.zIndex=110003,IZ.options.onMouseMove=!0,n("img.ilightbox-image").image_zoom(IZ.options),n("body").observe("added","img.ilightbox-image",function(o){setTimeout(function(){n("img.ilightbox-image").image_zoom(IZ.options)},500)})},500),n("body").observe("removed",".ilightbox-overlay",function(o){n(".zoomContainer").remove()})})},compat_lightbox_prettyphoto:function(){if("1"!==IZ.enable_lightbox_zoom)return!1;n("body").observe("added","#fullResImage",function(o){setTimeout(function(){n(".pp_hoverContainer").remove(),n(".pp_expand").remove(),IZ.options.zIndex=13e4,IZ.options.onMouseMove=!0,n("#fullResImage").image_zoom(IZ.options)},300),n("body").observe("removed",".pp_pic_holder",function(o){n(".zoomContainer").remove()})})},lightbox_compat:function(t,i){n("body").observe("added",t,function(o){setTimeout(function(){IZ.options.zIndex=110003,IZ.options.onMouseMove=!0,n(t).image_zoom(IZ.options)},300);var e=0;n(t).observe("attributes",function(o){"src"!==o.attributeName||Date.now()-e<200||(e=Date.now(),n(".zoomContainer").remove(),n(t).image_zoom(IZ.options))}),n("body").observe("removed",i,function(o){n(".zoomContainer").remove()})})},compat_magnific_popup:function(){if("1"!==IZ.enable_lightbox_zoom)return!1;n("body").observe("added",".mfp-gallery",function(o){setTimeout(function(){IZ.options.onMouseMove=!0,n(".mfp-content img").image_zoom(IZ.options)},300);var e=0;n(".mfp-gallery").observe("attributes",function(o){"class"!==o.attributeName||Date.now()-e<200||(e=Date.now(),n(".zoomContainer").remove(),n(".mfp-content img").image_zoom(IZ.options))}),n(".mfp-gallery").observe("removed",".mfp-content",function(o){n(".zoomContainer").remove()}),n(".mfp-gallery").observe("added",".mfp-content",function(o){n(".mfp-content img").image_zoom(IZ.options)}),n("body").observe("removed",".mfp-gallery",function(o){n(".zoomContainer").remove()})}),n("body").observe("added",".mfp-content",function(o){setTimeout(function(){IZ.options.onMouseMove=!0,n(".mfp-content img").image_zoom(IZ.options)},300),n("body").observe("removed",".mfp-wrap",function(o){n(".zoomContainer").remove()})})},compat_lightbox_media_grid:function(){if("1"!==IZ.enable_lightbox_zoom)return!1;n("body").observe("added",".mg_item_featured",function(o){setTimeout(function(){IZ.options.zIndex=1110003,IZ.options.onMouseMove=!0,n(".mg_item_featured img").image_zoom(IZ.options)},300),n("#mg_lb_wrap").observe("attributes",function(o){"style"===o.attributeName&&0<n(o.target).attr("style").search(/none/i)&&n(".zoomContainer").remove()})})},compat_nextgenpro_lightbox:function(){if("1"!==IZ.enable_lightbox_zoom)return!1;n("body").observe("added",".galleria-theme-nextgen_pro_lightbox",function(o){setTimeout(function(){IZ.options.zIndex=10000020,IZ.options.onMouseMove=!0,n(".galleria-theme-nextgen_pro_lightbox .galleria-image img").image_zoom(IZ.options)},300);var e=0;n(".galleria-theme-nextgen_pro_lightbox .galleria-image").observe("attributes",function(o){"style"!==o.attributeName||Date.now()-e<200||(e=Date.now(),n(".zoomContainer").remove(),n(".galleria-theme-nextgen_pro_lightbox .galleria-image img:visible").image_zoom(IZ.options))}),n("body").observe("removed",".galleria-theme-nextgen_pro_lightbox",function(o){console.log("remove"),n(".zoomContainer").remove()})})},compat_owl_carousel:function(){if(0===IZ.owl.length)return!1;n(IZ.owl).observe("added",".owl-item",function(o){n(IZ.owl+" .owl-item").on("click",function(o){o.preventDefault()});var e=n(IZ.owl+" .owl-item").width(),t=IZ.owl+" .owl-wrapper";0<n(IZ.owl+" .owl-stage").length&&(t=IZ.owl+" .owl-stage"),n(IZ.owl+" .owl-item:nth-child(1) img").image_zoom(IZ.options),n(t).observe("attributes",function(o){"style"===o.attributeName&&(null==(o=n(t).attr("style").match(/translate3d\(-([0-9]+)px/))&&(o=[0,0]),o=Math.floor(parseInt(o[1])/e+.1)+1,n(".zoomContainer").remove(),n(IZ.owl+" .owl-item img").off("mousemove mouseenter"),n(IZ.owl+" .owl-item:nth-child("+o+") img").image_zoom(IZ.options))})})},compat_flickity_carousel:function(){if(0===IZ.flickity.length)return!1;setTimeout(function(){var e=IZ.flickity+" .flickity-slider",t=(n(e+" .is-selected img").image_zoom(IZ.options),IZ.options.onMouseMove=!0,0);n(e).attrchange({trackValues:!0,callback:function(o){Date.now()-t<2e3||(t=Date.now(),n(".zoomContainer").remove(),n(e+" .is-selected img").image_zoom(IZ.options))}}),0<n(IZ.flickity+" .product-gallery-stacked").length&&n(IZ.flickity+" img").image_zoom(IZ.options)},300)},compat_slick_carousel:function(){if(0===IZ.slick.length)return!1;n("body").observe("added",IZ.slick+" .slick-current",function(o){n(IZ.slick+" .slick-arrow").css("display","none");var e=n(IZ.slick+" .slick-current img");IZ.options.onMouseMove=!0,IZ.options.lensTriggerClick=!1,IZ.options.zIndex=99,e.image_zoom(IZ.options),n(IZ.slick+" .slick-track").attrchange({trackValues:!0,callback:function(o){o.newValue!==o.oldValue&&(n(".zoomContainer").remove(),n(IZ.slick+" .slick-current img").image_zoom(IZ.options))}})})},compat_featherlight:function(){if("1"!=IZ.enable_lightbox_zoom)return!1;n("body").observe("added",".featherlight-content",function(o){setTimeout(function(){IZ.options.zIndex=2147487647,IZ.options.onMouseMove=!0,n(".featherlight-content img").image_zoom(IZ.options),n(".featherlight").css("background","rgba(0,0,0,.9)"),n("body").observe("removed",".featherlight-content",function(o){n(".zoomContainer").remove()})},600)})},compat_lightbox_etoile:function(){if("1"!=IZ.enable_lightbox_zoom)return!1;n(".ewd-ulb-slide-img img").image_zoom(IZ.options)},compat_woo_layout_injector:function(){if(0===n(".sb_woo_product_image img").length)return!1;n(".sb_woo_product_image img").image_zoom(IZ.options),n(".sb_woo_product_image img").attrchange({trackValues:!0,callback:function(o){"src"==o.attributeName&&(n(".zoomContainer").remove(),setTimeout(function(){n(".sb_woo_product_image img").image_zoom(IZ.options)},200))}})},enable_on_swiper:function(e){IZ.options.onMouseMove=!0,n(e+" .swiper-slide-active img").length,n(e+" .swiper-slide").children().removeClass("easyzoom").removeClass("el_zoom"),setTimeout(function(){n(e+" .swiper-slide-active img").image_zoom(IZ.options)},300);var t=0;n(e+" .swiper-wrapper").attrchange({trackValues:!0,callback:function(o){Date.now()-t<200||(t=Date.now(),n(".zoomContainer").remove(),setTimeout(function(){n(e+" .swiper-slide-active img").image_zoom(IZ.options)},400))}})},compat_lightbox_elementor:function(){var e=this;if("1"!=IZ.enable_lightbox_zoom)return!1;IZ.options.onMouseMove=!0,n("body").observe("added",".elementor-lightbox .swiper-slide-active .elementor-lightbox-image",function(o){void 0===n(".swiper-slide-active img.elementor-lightbox-image").attr("src")?n(".swiper-slide-active img.elementor-lightbox-image").attrchange({trackValues:!0,callback:function(o){"src"===o.attributeName&&void 0!==n(".zoomContainer")&&(n(".zoomContainer").remove(),e.enable_on_swiper(".elementor-lightbox .swiper-container"))}}):e.enable_on_swiper(".elementor-lightbox .swiper-container"),n(".elementor-lightbox").attrchange({trackValues:!0,callback:function(o){/display: none/.test(o.newValue)&&n(".zoomContainer").remove()}})}),n("body").observe("added","img.elementor-lightbox-image",function(o){setTimeout(function(){n("img.elementor-lightbox-image").image_zoom(IZ.options)},300),n(".elementor-lightbox").attrchange({trackValues:!0,callback:function(o){/display: none/.test(o.newValue)&&n(".zoomContainer").remove()}})})},compat_woo_openswatch:function(){if("1"!=IZ.with_woocommerce)return!1;n(document.body).on("openswatch_update_images",function(o,e){setTimeout(function(){n(".woocommerce-product-gallery__wrapper img").first().image_zoom(IZ.options);var e="";n(".woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image").attrchange({trackValues:!0,callback:function(o){o.newValue!=e&&(n(".zoomContainer").remove(),setTimeout(function(){n(".woocommerce-product-gallery__wrapper .flex-active-slide img").image_zoom(IZ.options)},400)),e=o.newValue}})},500)})}}).init();var r={trackValues:!0,callback:function(o){o.newValue!=o.oldValue&&("href"==o.attributeName&&n(this).attr("src",o.newValue),"src"==o.attributeName&&(n(".zoomContainer").remove(),n(this).image_zoom(IZ.options)))}}});