@wix/image
Advanced tools
Comparing version 1.90.0 to 1.91.0
@@ -10,3 +10,3 @@ "use strict"; | ||
contextWindow = contextWindow || window; | ||
if (customElements.get(elementName) === undefined) { | ||
if (contextWindow.customElements.get(elementName) === undefined) { | ||
let resizeObserver; | ||
@@ -13,0 +13,0 @@ if (contextWindow.ResizeObserver) { |
@@ -5,3 +5,3 @@ import wowImageFactory from './WowImage'; | ||
contextWindow = contextWindow || window; | ||
if (customElements.get(elementName) === undefined) { | ||
if (contextWindow.customElements.get(elementName) === undefined) { | ||
let resizeObserver; | ||
@@ -8,0 +8,0 @@ if (contextWindow.ResizeObserver) { |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("React")):"function"==typeof define&&define.amd?define("image",["React"],e):"object"==typeof exports?exports.image=e(require("React")):t.image=e(t.React)}("undefined"!=typeof self?self:this,(function(t){return function(){var e={114:function(t,e,i){var n;!function(e){"use strict";var r=function(){},o=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(t){return setTimeout(t,16)};function a(){var t=this;t.reads=[],t.writes=[],t.raf=o.bind(e),r("initialized",t)}function s(t){t.scheduled||(t.scheduled=!0,t.raf(c.bind(null,t)),r("flush scheduled"))}function c(t){r("flush");var e,i=t.writes,n=t.reads;try{r("flushing reads",n.length),t.runTasks(n),r("flushing writes",i.length),t.runTasks(i)}catch(t){e=t}if(t.scheduled=!1,(n.length||i.length)&&s(t),e){if(r("task errored",e.message),!t.catch)throw e;t.catch(e)}}function u(t,e){var i=t.indexOf(e);return!!~i&&!!t.splice(i,1)}a.prototype={constructor:a,runTasks:function(t){var e;for(r("run tasks");e=t.shift();)e()},measure:function(t,e){r("measure");var i=e?t.bind(e):t;return this.reads.push(i),s(this),i},mutate:function(t,e){r("mutate");var i=e?t.bind(e):t;return this.writes.push(i),s(this),i},clear:function(t){return r("clear",t),u(this.reads,t)||u(this.writes,t)},extend:function(t){if(r("extend",t),"object"!=typeof t)throw new Error("expected object");var e=Object.create(this);return function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}(e,t),e.fastdom=this,e.initialize&&e.initialize(),e},catch:null};var h=e.fastdom=e.fastdom||new a;void 0===(n=function(){return h}.call(h,i,h,t))||(t.exports=n)}("undefined"!=typeof window?window:this)},24:function(e){"use strict";e.exports=t},816:function(t,e,i){var n=i(738);t.exports=function(t,e,i){return(e=n(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},t.exports.__esModule=!0,t.exports.default=t.exports},191:function(t){function e(){return t.exports=e=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},t.exports.__esModule=!0,t.exports.default=t.exports,e.apply(this,arguments)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},642:function(t){t.exports=function(t,e){return e||(e=t.slice(0)),t.raw=e,t},t.exports.__esModule=!0,t.exports.default=t.exports},723:function(t,e,i){var n=i(422).default;t.exports=function(t,e){if("object"!==n(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,e||"default");if("object"!==n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},738:function(t,e,i){var n=i(422).default,r=i(723);t.exports=function(t){var e=r(t,"string");return"symbol"===n(e)?e:String(e)},t.exports.__esModule=!0,t.exports.default=t.exports},422:function(t){function e(i){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(i)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}},i={};function n(t){var r=i[t];if(void 0!==r)return r.exports;var o=i[t]={exports:{}};return e[t].call(o.exports,o,o.exports,n),o.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return function(){"use strict";n.r(r),n.d(r,{Image:function(){return Le},imageKit:function(){return t},initCustomElement:function(){return ke}});var t={};n.r(t),n.d(t,{STATIC_MEDIA_URL:function(){return _e},alignTypes:function(){return f},fittingTypes:function(){return s},getData:function(){return he},getPlaceholder:function(){return ue},htmlTag:function(){return _},populateGlobalFeatureSupport:function(){return z},sdk:function(){return pe},upscaleMethods:function(){return T}});var e=n(191),i=n.n(e),o=n(24),a="DpEFnE";const s={SCALE_TO_FILL:"fill",SCALE_TO_FIT:"fit",STRETCH:"stretch",ORIGINAL_SIZE:"original_size",TILE:"tile",TILE_HORIZONTAL:"tile_horizontal",TILE_VERTICAL:"tile_vertical",FIT_AND_TILE:"fit_and_tile",LEGACY_STRIP_TILE:"legacy_strip_tile",LEGACY_STRIP_TILE_HORIZONTAL:"legacy_strip_tile_horizontal",LEGACY_STRIP_TILE_VERTICAL:"legacy_strip_tile_vertical",LEGACY_STRIP_SCALE_TO_FILL:"legacy_strip_fill",LEGACY_STRIP_SCALE_TO_FIT:"legacy_strip_fit",LEGACY_STRIP_FIT_AND_TILE:"legacy_strip_fit_and_tile",LEGACY_STRIP_ORIGINAL_SIZE:"legacy_strip_original_size",LEGACY_ORIGINAL_SIZE:"actual_size",LEGACY_FIT_WIDTH:"fitWidth",LEGACY_FIT_HEIGHT:"fitHeight",LEGACY_FULL:"full",LEGACY_BG_FIT_AND_TILE:"legacy_tile",LEGACY_BG_FIT_AND_TILE_HORIZONTAL:"legacy_tile_horizontal",LEGACY_BG_FIT_AND_TILE_VERTICAL:"legacy_tile_vertical",LEGACY_BG_NORMAL:"legacy_normal"},c="fit",u="fill",h="fill_focal",d="crop",l="legacy_crop",g="legacy_fill",f={CENTER:"center",TOP:"top",TOP_LEFT:"top_left",TOP_RIGHT:"top_right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom_left",BOTTOM_RIGHT:"bottom_right",LEFT:"left",RIGHT:"right"},m={[f.CENTER]:{x:.5,y:.5},[f.TOP_LEFT]:{x:0,y:0},[f.TOP_RIGHT]:{x:1,y:.5},[f.TOP]:{x:.5,y:0},[f.BOTTOM_LEFT]:{x:0,y:1},[f.BOTTOM_RIGHT]:{x:1,y:1},[f.BOTTOM]:{x:.5,y:1},[f.RIGHT]:{x:1,y:.5},[f.LEFT]:{x:0,y:.5}},p={center:"c",top:"t",top_left:"tl",top_right:"tr",bottom:"b",bottom_left:"bl",bottom_right:"br",left:"l",right:"r"},_={BG:"bg",IMG:"img",SVG:"svg"},T={AUTO:"auto",CLASSIC:"classic",SUPER:"super"},I=1,b=2,L={radius:"0.66",amount:"1.00",threshold:"0.01"},E={uri:"",css:{img:{},container:{}},attr:{img:{},container:{}},transformed:!1},w=25e6,O=[1.5,2,4],A={HIGH:{size:196e4,quality:90,maxUpscale:1},MEDIUM:{size:36e4,quality:85,maxUpscale:1},LOW:{size:16e4,quality:80,maxUpscale:1.2},TINY:{size:0,quality:80,maxUpscale:1.4}},y="HIGH",v="MEDIUM",M="LOW",R="TINY",x="contrast",S="brightness",C="saturation",G="hue",P="blur",F="jpg",k="jpeg",N="jpe",H="png",Y="webp",j="gif",B="unrecognized",U={isMobile:!1};function z(){if("undefined"!=typeof window&&"undefined"!=typeof navigator){const e=window.matchMedia&&window.matchMedia("(max-width: 767px)").matches,i=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);t=e&&i,U["isMobile"]=t}var t}function D(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const o=n[n.length-1]||{},a=[t[0]];return i.forEach((function(e,i){const r=Number.isInteger(e)?n[e]:o[e];a.push(r,t[i+1])})),a.join("")}}function q(t){return t[t.length-1]}const V=[H,k,F,N,"wix_ico_mp","wix_mp"],Z=[k,F,N];function W(t,e,i){return i&&e&&!(!(n=e.id)||!n.trim()||"none"===n.toLowerCase())&&Object.values(s).includes(t);var n}function $(t){return function(t){return V.includes(tt(t))}(t)&&!/(^https?)|(^data)|(^\/\/)/.test(t)}function Q(t){return tt(t)===H}const J=["/","\\","?","<",">","|","\u201c",":",'"'].map(encodeURIComponent),X=["\\.","\\*"];function K(t){return function(t){return Z.includes(tt(t))}(t)?F:Q(t)?H:function(t){return tt(t)===Y}(t)?Y:B}function tt(t){return(/[.]([^.]+)$/.exec(t)&&/[.]([^.]+)$/.exec(t)[1]||"").toLowerCase()}function et(t,e,i,n,r){let o;return o=r===u?function(t,e,i,n){return Math.max(i/t,n/e)}(t,e,i,n):r===c?function(t,e,i,n){return Math.min(i/t,n/e)}(t,e,i,n):1,o}function it(t,e,i,n,r,o){t=t||n.width,e=e||n.height;const{scaleFactor:a,width:s,height:h}=function(t,e,i,n,r){let o,a=i,s=n;if(o=et(t,e,i,n,r),r===c&&(a=t*o,s=e*o),a&&s&&a*s>w){const i=Math.sqrt(w/(a*s));a*=i,s*=i,o=et(t,e,a,s,r)}return{scaleFactor:o,width:a,height:s}}(t,e,n.width*r,n.height*r,i);return function(t,e,i,n,r,o,a){const{optimizedScaleFactor:s,upscaleMethodValue:h,forceUSM:d}=function(t,e,i,n){if("auto"===n)return function(t,e){const i=at(t,e);return{optimizedScaleFactor:A[i].maxUpscale,upscaleMethodValue:I,forceUSM:!1}}(t,e);if("super"===n)return function(t){return{optimizedScaleFactor:q(O),upscaleMethodValue:b,forceUSM:!(O.includes(t)||t>q(O))}}(i);return function(t,e){const i=at(t,e);return{optimizedScaleFactor:A[i].maxUpscale,upscaleMethodValue:I,forceUSM:!1}}(t,e)}(t,e,o,r);let l=i,g=n;if(o<=s)return{width:l,height:g,scaleFactor:o,upscaleMethodValue:h,forceUSM:d,cssUpscaleNeeded:!1};switch(a){case u:l=i*(s/o),g=n*(s/o);break;case c:l=t*s,g=e*s}return{width:l,height:g,scaleFactor:s,upscaleMethodValue:h,forceUSM:d,cssUpscaleNeeded:!0}}(t,e,s,h,o,a,i)}function nt(t,e,i,n){const r=ot(i)||function(t){return void 0===t&&(t=f.CENTER),m[t]}(n);return{x:Math.max(0,Math.min(t.width-e.width,r.x*t.width-e.width/2)),y:Math.max(0,Math.min(t.height-e.height,r.y*t.height-e.height/2)),width:Math.min(t.width,e.width),height:Math.min(t.height,e.height)}}function rt(t){return t.alignment&&p[t.alignment]||p[f.CENTER]}function ot(t){let e;return!t||"number"!=typeof t.x||isNaN(t.x)||"number"!=typeof t.y||isNaN(t.y)||(e={x:st(Math.max(0,Math.min(100,t.x))/100,2),y:st(Math.max(0,Math.min(100,t.y))/100,2)}),e}function at(t,e){const i=t*e;return i>A[y].size?y:i>A[v].size?v:i>A[M].size?M:R}function st(t,e){const i=Math.pow(10,e||0);return(t*i/i).toFixed(e)}function ct(t){return t&&t.upscaleMethod&&T[t.upscaleMethod.toUpperCase()]||T.AUTO}function ut(t,e){const i={css:{container:{}}},{css:n}=i,{fittingType:r}=t;switch(r){case s.ORIGINAL_SIZE:case s.LEGACY_ORIGINAL_SIZE:case s.LEGACY_STRIP_ORIGINAL_SIZE:n.container.backgroundSize="auto",n.container.backgroundRepeat="no-repeat";break;case s.SCALE_TO_FIT:case s.LEGACY_STRIP_SCALE_TO_FIT:n.container.backgroundSize="contain",n.container.backgroundRepeat="no-repeat";break;case s.STRETCH:n.container.backgroundSize="100% 100%",n.container.backgroundRepeat="no-repeat";break;case s.SCALE_TO_FILL:case s.LEGACY_STRIP_SCALE_TO_FILL:n.container.backgroundSize="cover",n.container.backgroundRepeat="no-repeat";break;case s.TILE_HORIZONTAL:case s.LEGACY_STRIP_TILE_HORIZONTAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat-x";break;case s.TILE_VERTICAL:case s.LEGACY_STRIP_TILE_VERTICAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat-y";break;case s.TILE:case s.LEGACY_STRIP_TILE:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat";break;case s.LEGACY_STRIP_FIT_AND_TILE:n.container.backgroundSize="contain",n.container.backgroundRepeat="repeat";break;case s.FIT_AND_TILE:case s.LEGACY_BG_FIT_AND_TILE:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat";break;case s.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat-x";break;case s.LEGACY_BG_FIT_AND_TILE_VERTICAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat-y";break;case s.LEGACY_BG_NORMAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="no-repeat"}switch(e.alignment){case f.CENTER:n.container.backgroundPosition="center center";break;case f.LEFT:n.container.backgroundPosition="left center";break;case f.RIGHT:n.container.backgroundPosition="right center";break;case f.TOP:n.container.backgroundPosition="center top";break;case f.BOTTOM:n.container.backgroundPosition="center bottom";break;case f.TOP_RIGHT:n.container.backgroundPosition="right top";break;case f.TOP_LEFT:n.container.backgroundPosition="left top";break;case f.BOTTOM_RIGHT:n.container.backgroundPosition="right bottom";break;case f.BOTTOM_LEFT:n.container.backgroundPosition="left bottom"}return i}const ht={[f.CENTER]:"center",[f.TOP]:"top",[f.TOP_LEFT]:"top left",[f.TOP_RIGHT]:"top right",[f.BOTTOM]:"bottom",[f.BOTTOM_LEFT]:"bottom left",[f.BOTTOM_RIGHT]:"bottom right",[f.LEFT]:"left",[f.RIGHT]:"right"},dt={position:"absolute",top:"auto",right:"auto",bottom:"auto",left:"auto"};function lt(t,e){const i={css:{container:{},img:{}}},{css:n}=i,{fittingType:r}=t,o=e.alignment;switch(n.container.position="relative",r){case s.ORIGINAL_SIZE:case s.LEGACY_ORIGINAL_SIZE:t.parts&&t.parts.length?(n.img.width=t.parts[0].width,n.img.height=t.parts[0].height):(n.img.width=t.src.width,n.img.height=t.src.height);break;case s.SCALE_TO_FIT:case s.LEGACY_FIT_WIDTH:case s.LEGACY_FIT_HEIGHT:case s.LEGACY_FULL:n.img.width=e.width,n.img.height=e.height,n.img.objectFit="contain",n.img.objectPosition=ht[o]||"unset";break;case s.LEGACY_BG_NORMAL:n.img.width="100%",n.img.height="100%",n.img.objectFit="none",n.img.objectPosition=ht[o]||"unset";break;case s.STRETCH:n.img.width=e.width,n.img.height=e.height,n.img.objectFit="fill";break;case s.SCALE_TO_FILL:n.img.width=e.width,n.img.height=e.height,n.img.objectFit="cover"}if("number"==typeof n.img.width&&"number"==typeof n.img.height&&(n.img.width!==e.width||n.img.height!==e.height)){const t=Math.round((e.height-n.img.height)/2),i=Math.round((e.width-n.img.width)/2);Object.assign(n.img,dt,function(t,e,i){return{[f.TOP_LEFT]:{top:0,left:0},[f.TOP_RIGHT]:{top:0,right:0},[f.TOP]:{top:0,left:e},[f.BOTTOM_LEFT]:{bottom:0,left:0},[f.BOTTOM_RIGHT]:{bottom:0,right:0},[f.BOTTOM]:{bottom:0,left:e},[f.RIGHT]:{top:t,right:0},[f.LEFT]:{top:t,left:0},[f.CENTER]:{width:i.width,height:i.height,objectFit:"none"}}}(t,i,e)[o])}return i}function gt(t,e){const i={css:{container:{}},attr:{container:{},img:{}}},{css:n,attr:r}=i,{fittingType:o}=t,a=e.alignment,{width:c,height:h}=t.src;let d;switch(n.container.position="relative",o){case s.ORIGINAL_SIZE:case s.LEGACY_ORIGINAL_SIZE:case s.TILE:t.parts&&t.parts.length?(r.img.width=t.parts[0].width,r.img.height=t.parts[0].height):(r.img.width=c,r.img.height=h),r.img.preserveAspectRatio="xMidYMid slice";break;case s.SCALE_TO_FIT:case s.LEGACY_FIT_WIDTH:case s.LEGACY_FIT_HEIGHT:case s.LEGACY_FULL:r.img.width="100%",r.img.height="100%",r.img.transform="",r.img.preserveAspectRatio="";break;case s.STRETCH:r.img.width=e.width,r.img.height=e.height,r.img.x=0,r.img.y=0,r.img.transform="",r.img.preserveAspectRatio="none";break;case s.SCALE_TO_FILL:$(t.src.id)?(r.img.width=e.width,r.img.height=e.height):(d=function(t,e,i,n,r){const o=et(t,e,i,n,r);return{width:Math.round(t*o),height:Math.round(e*o)}}(c,h,e.width,e.height,u),r.img.width=d.width,r.img.height=d.height),r.img.x=0,r.img.y=0,r.img.transform="",r.img.preserveAspectRatio="xMidYMid slice"}if("number"==typeof r.img.width&&"number"==typeof r.img.height&&(r.img.width!==e.width||r.img.height!==e.height)){let t,i,n=0,c=0;o===s.TILE?(t=e.width%r.img.width,i=e.height%r.img.height):(t=e.width-r.img.width,i=e.height-r.img.height);const u=Math.round(t/2),h=Math.round(i/2);switch(a){case f.TOP_LEFT:n=0,c=0;break;case f.TOP:n=u,c=0;break;case f.TOP_RIGHT:n=t,c=0;break;case f.LEFT:n=0,c=h;break;case f.CENTER:n=u,c=h;break;case f.RIGHT:n=t,c=h;break;case f.BOTTOM_LEFT:n=0,c=i;break;case f.BOTTOM:n=u,c=i;break;case f.BOTTOM_RIGHT:n=t,c=i}r.img.x=n,r.img.y=c}return r.container.width=e.width,r.container.height=e.height,r.container.viewBox=[0,0,e.width,e.height].join(" "),i}function ft(){return U["isMobile"]}function mt(t,e,i){let n;switch(e.crop&&(n=function(t,e){const i=Math.max(0,Math.min(t.width,e.x+e.width)-Math.max(0,e.x)),n=Math.max(0,Math.min(t.height,e.y+e.height)-Math.max(0,e.y));return i&&n&&(t.width!==i||t.height!==n)?{x:Math.max(0,e.x),y:Math.max(0,e.y),width:i,height:n}:null}(e,e.crop),n&&(t.src.width=n.width,t.src.height=n.height,t.src.isCropped=!0,t.parts.push(_t(n)))),t.fittingType){case s.SCALE_TO_FIT:case s.LEGACY_FIT_WIDTH:case s.LEGACY_FIT_HEIGHT:case s.LEGACY_FULL:case s.FIT_AND_TILE:case s.LEGACY_BG_FIT_AND_TILE:case s.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:case s.LEGACY_BG_FIT_AND_TILE_VERTICAL:case s.LEGACY_BG_NORMAL:t.parts.push(pt(t,i));break;case s.SCALE_TO_FILL:t.parts.push(function(t,e){const i=it(t.src.width,t.src.height,u,e,t.devicePixelRatio,t.upscaleMethod),n=ot(t.focalPoint);return{transformType:n?h:u,width:Math.round(i.width),height:Math.round(i.height),alignment:rt(e),focalPointX:n&&n.x,focalPointY:n&&n.y,upscale:i.scaleFactor>1,forceUSM:i.forceUSM,scaleFactor:i.scaleFactor,cssUpscaleNeeded:i.cssUpscaleNeeded,upscaleMethodValue:i.upscaleMethodValue}}(t,i));break;case s.STRETCH:t.parts.push(function(t,e){const i=et(t.src.width,t.src.height,e.width,e.height,u),n=Object.assign({},e);return n.width=t.src.width*i,n.height=t.src.height*i,pt(t,n)}(t,i));break;case s.TILE_HORIZONTAL:case s.TILE_VERTICAL:case s.TILE:case s.LEGACY_ORIGINAL_SIZE:case s.ORIGINAL_SIZE:n=nt(t.src,i,t.focalPoint,i.alignment),t.src.isCropped?(Object.assign(t.parts[0],n),t.src.width=n.width,t.src.height=n.height):t.parts.push(_t(n));break;case s.LEGACY_STRIP_TILE_HORIZONTAL:case s.LEGACY_STRIP_TILE_VERTICAL:case s.LEGACY_STRIP_TILE:case s.LEGACY_STRIP_ORIGINAL_SIZE:t.parts.push(function(t){return{transformType:l,width:Math.round(t.width),height:Math.round(t.height),alignment:rt(t),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}(i));break;case s.LEGACY_STRIP_SCALE_TO_FIT:case s.LEGACY_STRIP_FIT_AND_TILE:t.parts.push(function(t){return{transformType:c,width:Math.round(t.width),height:Math.round(t.height),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(i));break;case s.LEGACY_STRIP_SCALE_TO_FILL:t.parts.push(function(t){return{transformType:g,width:Math.round(t.width),height:Math.round(t.height),alignment:rt(t),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(i))}}function pt(t,e){const i=it(t.src.width,t.src.height,c,e,t.devicePixelRatio,t.upscaleMethod);return{transformType:u,width:Math.round(i.width),height:Math.round(i.height),alignment:p.center,upscale:i.scaleFactor>1,forceUSM:i.forceUSM,scaleFactor:i.scaleFactor,cssUpscaleNeeded:i.cssUpscaleNeeded,upscaleMethodValue:i.upscaleMethodValue}}function _t(t){return{transformType:d,x:Math.round(t.x),y:Math.round(t.y),width:Math.round(t.width),height:Math.round(t.height),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}function Tt(t,e){var i;e=e||{},t.quality=function(t,e){const i=t.fileType===H,n=t.fileType===F,r=n||i;if(r){const n=q(t.parts),r=(o=n.width,a=n.height,A[at(o,a)].quality);let s=e.quality&&e.quality>=5&&e.quality<=90?e.quality:r;return s=i?s+5:s,s}var o,a;return 0}(t,e),t.progressive=function(t){return!1!==t.progressive}(e),t.watermark=function(t){return t.watermark}(e),t.autoEncode=null===(i=e.autoEncode)||void 0===i||i,t.unsharpMask=function(t,e){var i,n,r;if(function(t){const e="number"==typeof(t=t||{}).radius&&!isNaN(t.radius)&&t.radius>=.1&&t.radius<=500,i="number"==typeof t.amount&&!isNaN(t.amount)&&t.amount>=0&&t.amount<=10,n="number"==typeof t.threshold&&!isNaN(t.threshold)&&t.threshold>=0&&t.threshold<=255;return e&&i&&n}(e.unsharpMask))return{radius:st(null===(i=e.unsharpMask)||void 0===i?void 0:i.radius,2),amount:st(null===(n=e.unsharpMask)||void 0===n?void 0:n.amount,2),threshold:st(null===(r=e.unsharpMask)||void 0===r?void 0:r.threshold,2)};if(("number"!=typeof(o=(o=e.unsharpMask)||{}).radius||isNaN(o.radius)||0!==o.radius||"number"!=typeof o.amount||isNaN(o.amount)||0!==o.amount||"number"!=typeof o.threshold||isNaN(o.threshold)||0!==o.threshold)&&function(t){const e=q(t.parts);return!(e.scaleFactor>=1)||e.forceUSM}(t))return L;var o;return}(t,e),t.filters=function(t){const e=t.filters||{},i={};It(e[x],-100,100)&&(i[x]=e[x]);It(e[S],-100,100)&&(i[S]=e[S]);It(e[C],-100,100)&&(i[C]=e[C]);It(e[G],-180,180)&&(i[G]=e[G]);It(e[P],0,100)&&(i[P]=e[P]);return i}(e)}function It(t,e,i){return"number"==typeof t&&!isNaN(t)&&0!==t&&t>=e&&t<=i}function bt(t,e,i,n){const r=function(t){var e;return null!==(e=null==t?void 0:t.isSEOBot)&&void 0!==e&&e}(n),o=K(e.id),a=function(t,e){const i=/\.([^.]*)$/,n=new RegExp("("+J.concat(X).join("|")+")","g");if(e&&e.length){let t=e;const r=e.match(i);return r&&V.includes(r[1])&&(t=e.replace(i,"")),encodeURIComponent(t).replace(n,"_")}const r=t.match(/\/(.*?)$/);return(r?r[1]:t).replace(i,"")}(e.id,e.name),s=r?1:function(t){return Math.min(t.pixelAspectRatio||1,2)}(i),c=tt(e.id),u=c,h=$(e.id),d={fileName:a,fileExtension:c,fileType:o,fittingType:t,preferredExtension:u,src:{id:e.id,width:e.width,height:e.height,isCropped:!1},focalPoint:{x:e.focalPoint&&e.focalPoint.x,y:e.focalPoint&&e.focalPoint.y},parts:[],devicePixelRatio:s,quality:0,upscaleMethod:ct(n),progressive:!0,watermark:"",unsharpMask:{},filters:{},transformed:h};return h&&(mt(d,e,i),Tt(d,n)),d}function Lt(t,e,i){const n=Object.assign({},i),r=ft();switch(t){case s.LEGACY_BG_FIT_AND_TILE:case s.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:case s.LEGACY_BG_FIT_AND_TILE_VERTICAL:case s.LEGACY_BG_NORMAL:const t=r?1e3:1920,i=r?1e3:1920;n.width=Math.min(t,e.width),n.height=Math.min(i,Math.round(n.width/(e.width/e.height))),n.pixelAspectRatio=1}return n}var Et,wt,Ot,At,yt,vt,Mt,Rt,xt,St,Ct,Gt,Pt,Ft,kt,Nt,Ht,Yt=n(642),jt=n.n(Yt);const Bt=D(Et||(Et=jt()(["fit/w_",",h_",""])),"width","height"),Ut=D(wt||(wt=jt()(["fill/w_",",h_",",al_",""])),"width","height","alignment"),zt=D(Ot||(Ot=jt()(["fill/w_",",h_",",fp_","_",""])),"width","height","focalPointX","focalPointY"),Dt=D(At||(At=jt()(["crop/x_",",y_",",w_",",h_",""])),"x","y","width","height"),qt=D(yt||(yt=jt()(["crop/w_",",h_",",al_",""])),"width","height","alignment"),Vt=D(vt||(vt=jt()(["fill/w_",",h_",",al_",""])),"width","height","alignment"),Zt=D(Mt||(Mt=jt()([",lg_",""])),"upscaleMethodValue"),Wt=D(Rt||(Rt=jt()([",q_",""])),"quality"),$t=D(xt||(xt=jt()([",usm_","_","_",""])),"radius","amount","threshold"),Qt=D(St||(St=jt()([",bl"]))),Jt=D(Ct||(Ct=jt()([",wm_",""])),"watermark"),Xt={[x]:D(Gt||(Gt=jt()([",con_",""])),"contrast"),[S]:D(Pt||(Pt=jt()([",br_",""])),"brightness"),[C]:D(Ft||(Ft=jt()([",sat_",""])),"saturation"),[G]:D(kt||(kt=jt()([",hue_",""])),"hue"),[P]:D(Nt||(Nt=jt()([",blur_",""])),"blur")},Kt=D(Ht||(Ht=jt()([",enc_auto"])));function te(t,e,i,n,r){return void 0===n&&(n={}),$(e.id)?function(t){const e=[];t.parts.forEach((t=>{switch(t.transformType){case d:e.push(Dt(t));break;case l:e.push(qt(t));break;case g:let i=Vt(t);t.upscale&&(i+=Zt(t)),e.push(i);break;case c:let n=Bt(t);t.upscale&&(n+=Zt(t)),e.push(n);break;case u:let r=Ut(t);t.upscale&&(r+=Zt(t)),e.push(r);break;case h:let o=zt(t);t.upscale&&(o+=Zt(t)),e.push(o)}}));let i=e.join("/");return t.quality&&(i+=Wt(t)),t.unsharpMask&&(i+=$t(t.unsharpMask)),t.progressive||(i+=Qt(t)),t.watermark&&(i+=Jt(t)),t.filters&&(i+=Object.keys(t.filters).map((e=>Xt[e](t.filters))).join("")),t.autoEncode&&t.fileType!==j&&(i+=Kt(t)),t.src.id+"/v1/"+i+"/"+t.fileName+"."+t.preferredExtension}(r=r||bt(t,e,i,n)):e.id}const ee={[f.CENTER]:"50% 50%",[f.TOP_LEFT]:"0% 0%",[f.TOP_RIGHT]:"100% 0%",[f.TOP]:"50% 0%",[f.BOTTOM_LEFT]:"0% 100%",[f.BOTTOM_RIGHT]:"100% 100%",[f.BOTTOM]:"50% 100%",[f.RIGHT]:"100% 50%",[f.LEFT]:"0% 50%"},ie=Object.entries(ee).reduce(((t,e)=>{let[i,n]=e;return t[n]=i,t}),{}),ne=[s.TILE,s.TILE_HORIZONTAL,s.TILE_VERTICAL,s.LEGACY_BG_FIT_AND_TILE,s.LEGACY_BG_FIT_AND_TILE_HORIZONTAL,s.LEGACY_BG_FIT_AND_TILE_VERTICAL],re=[s.LEGACY_ORIGINAL_SIZE,s.ORIGINAL_SIZE,s.LEGACY_BG_NORMAL];function oe(t,e,i){let{width:n,height:r}=i;return t===s.TILE&&e.width>n&&e.height>r}function ae(t,e,i,n){void 0===n&&(n="center");const r={img:{},container:{}};if(t===s.SCALE_TO_FILL){const t=e.focalPoint&&function(t){const e=t.x+"% "+t.y+"%";return ie[e]||""}(e.focalPoint),o=t||n;e.focalPoint&&!t?r.img={objectPosition:se(e,i,e.focalPoint)}:r.img={objectPosition:ee[o]}}else[s.LEGACY_ORIGINAL_SIZE,s.ORIGINAL_SIZE].includes(t)?r.img={objectFit:"none",top:"auto",left:"auto",right:"auto",bottom:"auto"}:ne.includes(t)&&(r.container={backgroundSize:e.width+"px "+e.height+"px"});return r}function se(t,e,i){const{width:n,height:r}=t,{width:o,height:a}=e,{x:s,y:c}=i;if(!o||!a)return s+"% "+c+"%";const u=Math.max(o/n,a/r),h=n*u,d=r*u,l=Math.max(0,Math.min(h-o,h*(s/100)-o/2)),g=Math.max(0,Math.min(d-a,d*(c/100)-a/2));return(l&&Math.floor(l/(h-o)*100))+"% "+(g&&Math.floor(g/(d-a)*100))+"%"}const ce={width:"100%",height:"100%"};function ue(t,e,i,n){if(void 0===n&&(n={}),!W(t,e,i))return E;const{autoEncode:r=!0,isSEOBot:o,shouldLoadHQImage:a}=n,c=$(e.id);if(!c||a)return he(t,e,i,Object.assign(Object.assign({},n),{autoEncode:r,useSrcset:c}));const u=Object.assign(Object.assign({},i),function(t,e){let{width:i,height:n}=e;if(!i||!n){const e=i||Math.min(980,t.width),r=e/t.width;return{width:e,height:n||t.height*r}}return{width:i,height:n}}(e,i)),{alignment:h,htmlTag:d}=u,l=oe(t,e,u),g=function(t,e,i,n){let{width:r,height:o}=i;if(void 0===n&&(n=!1),n)return{width:r,height:o};const a=!re.includes(t),s=oe(t,e,{width:r,height:o}),c=!s&&ne.includes(t),u=c?e.width:r,h=c?e.height:o,d=a?function(t,e){return t>900?e?.05:.15:t>500?e?.1:.18:t>200?.25:1}(u,Q(e.id)):1;return{width:s?1920:u*d,height:h*d}}(t,e,u,o),f=function(t,e,i){return i?0:ne.includes(e)?1:t>200?2:3}(u.width,t,o),m=function(t,e){const i=ne.includes(t)&&!e;return t===s.SCALE_TO_FILL||i?s.SCALE_TO_FIT:t}(t,l),p=ae(t,e,i,h),{uri:_}=he(m,e,Object.assign(Object.assign({},g),{alignment:h,htmlTag:d}),{autoEncode:r,filters:f?{blur:f}:{}}),{attr:T={},css:I}=he(t,e,Object.assign(Object.assign({},u),{alignment:h,htmlTag:d}),{});return I.img=I.img||{},I.container=I.container||{},Object.assign(I.img,p.img,ce),Object.assign(I.container,p.container),{uri:_,css:I,attr:T,transformed:!0}}function he(t,e,i,n){let r={};if(W(t,e,i)){const o=Lt(t,e,i),a=bt(t,e,o,n);r.uri=te(t,e,o,n,a),(null==n?void 0:n.useSrcset)&&(r.srcset=function(t,e,i,n,r){const o=i.pixelAspectRatio||1;return{dpr:[(1===o?r.uri:te(t,e,Object.assign(Object.assign({},i),{pixelAspectRatio:1}),n))+" 1x",(2===o?r.uri:te(t,e,Object.assign(Object.assign({},i),{pixelAspectRatio:2}),n))+" 2x"]}}(t,e,o,n,r)),Object.assign(r,function(t,e){let i;return i=e.htmlTag===_.BG?ut:e.htmlTag===_.SVG?gt:lt,i(t,e)}(a,o),{transformed:a.transformed})}else r=E;return r}function de(t,e,i,n){if(W(t,e,i)){const r=Lt(t,e,i);return{uri:te(t,e,r,n||{},bt(t,e,r,n))}}return{uri:""}}const le="https://static.wixstatic.com/media/",ge=/^media\//i,fe="undefined"!=typeof window?window.devicePixelRatio:1,me=(t,e)=>{const i=e&&e.baseHostURL;return i?""+i+t:(t=>ge.test(t)?"https://static.wixstatic.com/"+t:""+le+t)(t)};z(),z();const pe={getScaleToFitImageURL:function(t,e,i,n,r,o){const a=de(s.SCALE_TO_FIT,{id:t,width:e,height:i,name:o&&o.name},{width:n,height:r,htmlTag:_.IMG,alignment:f.CENTER,pixelAspectRatio:fe},o);return me(a.uri,o)},getScaleToFillImageURL:function(t,e,i,n,r,o){const a=de(s.SCALE_TO_FILL,{id:t,width:e,height:i,name:o&&o.name,focalPoint:{x:o&&o.focalPoint&&o.focalPoint.x,y:o&&o.focalPoint&&o.focalPoint.y}},{width:n,height:r,htmlTag:_.IMG,alignment:f.CENTER,pixelAspectRatio:fe},o);return me(a.uri,o)},getCropImageURL:function(t,e,i,n,r,o,a,c,u,h){const d=de(s.SCALE_TO_FILL,{id:t,width:e,height:i,name:h&&h.name,crop:{x:n,y:r,width:o,height:a}},{width:c,height:u,htmlTag:_.IMG,alignment:f.CENTER,pixelAspectRatio:fe},h);return me(d.uri,h)}},_e=le,{STATIC_MEDIA_URL:Te}=t,Ie=t=>{let{fittingType:e,src:i,target:n,options:r}=t;const o=ue(e,i,n,{...r,autoEncode:!0});return null!=o&&o.uri&&!/^[a-z]+:/.test(o.uri)&&(o.uri=""+Te+o.uri),o},be=/^[a-z]+:/,Le=t=>{var e,n;const{id:r,containerId:s,uri:c,alt:u,name:h="",role:d,width:l,height:g,displayMode:f,devicePixelRatio:m,quality:p,alignType:_,bgEffectName:T="",focalPoint:I,upscaleMethod:b,className:L="",crop:E,imageStyles:w={},targetWidth:O,targetHeight:A,targetScale:y,onLoad:v=(()=>{}),onError:M=(()=>{}),shouldUseLQIP:R,containerWidth:x,containerHeight:S,getPlaceholder:C,isInFirstFold:G,placeholderTransition:P,socialAttrs:F,isSEOBot:k,skipMeasure:N,lazyLoadImgExperimentOpen:H}=t,Y=o.useRef(null);let j="";const B="blur"===P,U=o.useRef(null);if(!U.current)if(C||R||G||k){const t={upscaleMethod:b,...p||{},shouldLoadHQImage:G,isSEOBot:k};U.current=(C||Ie)({fittingType:f,src:{id:c,width:l,height:g,crop:E,name:h,focalPoint:I},target:{width:x,height:S,alignment:_,htmlTag:"img"},options:t}),j=!U.current.transformed||G||k?"":"true"}else U.current={uri:void 0,css:{img:{}},attr:{img:{},container:{}},transformed:!1};const z=!k&&(C||R)&&!G&&U.current.transformed,D=o.useMemo((()=>JSON.stringify({containerId:s,...s&&{containerId:s},..._&&{alignType:_},...N&&{skipMeasure:!0},displayMode:f,...x&&{targetWidth:x},...S&&{targetHeight:S},...O&&{targetWidth:O},...A&&{targetHeight:A},...y&&{targetScale:y},isLQIP:z,isSEOBot:k,lqipTransition:P,imageData:{width:l,height:g,uri:c,name:h,displayMode:f,...p&&{quality:p},...m&&{devicePixelRatio:m},...I&&{focalPoint:I},...E&&{crop:E},...b&&{upscaleMethod:b}}})),[s,_,N,f,S,x,O,A,y,z,k,P,l,g,c,h,p,m,I,E,b]),q=U.current,V=null==q?void 0:q.uri,Z=null==q?void 0:q.srcset,W=null==(e=q.css)?void 0:e.img,$=a+" "+L;o.useEffect((()=>{var t;null!=(t=Y.current)&&t.complete&&v&&v({target:Y.current})}),[]);const Q=!q||null!=q&&q.transformed?O?O+"px":null:"max("+l+"px, 100%)";return o.createElement("wow-image",{id:r,class:$,"data-image-info":D,"data-bg-effect-name":T,"data-has-ssr-src":j,"data-animate-blur":!k&&z&&B?"":void 0,style:Q?{"--wix-img-max-width":Q}:{}},o.createElement("img",i()({src:V,ref:Y,alt:u||"",role:d,style:{...W,...w},onLoad:v,onError:M},F,G?{srcSet:null==Z||null==(n=Z.dpr)?void 0:n.map((t=>be.test(t)?t:""+Te+t)).join(", "),fetchpriority:"high"}:H?{loading:"lazy"}:{})))};var Ee=n(114),we=n.n(Ee),Oe=n(816),Ae=n.n(Oe);const ye={columnCount:1,columns:1,fontWeight:1,lineHeight:1,opacity:1,zIndex:1,zoom:1},ve=(t,e)=>(Array.isArray(e)?e:[e]).reduce(((e,i)=>{const n=t[i];return void 0!==n?Object.assign(e,{[i]:n}):e}),{}),Me=(t,e)=>t&&e&&Object.keys(e).forEach((i=>{const n=e[i];void 0!==n?t.style[i]=((t,e)=>"number"!=typeof e||ye[t]?e:e+"px")(i,n):t.style.removeProperty(i)})),Re=(t,e,i)=>{if(/(^https?)|(^data)|(^blob)|(^\/\/)/.test(t))return t;let n=e+"/";var r;t&&(/^micons\//.test(t)?n=i:"ico"===(null==(r=/[^.]+$/.exec(t))?void 0:r[0])&&(n=n.replace("media","ficons")));return n+t},xe=t=>{const e=window.location.search.split("&").map((t=>t.split("="))).find((t=>t[0].toLowerCase().includes("devicepixelratio")));return(e?Number(e[1]):null)||t||1},Se=t=>t.getAttribute("src"),Ce=()=>window&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype&&"isIntersecting"in window.IntersectionObserverEntry.prototype&&!/Edge\/18/.test(window.navigator.userAgent);var Ge=class{constructor(t){Ae()(this,"intersectionObserver",void 0),Ae()(this,"scrollEffectsIntersectionObserver",void 0),Ae()(this,"mutationService",void 0),this.mutationService=t,Ce()&&(this.intersectionObserver=new IntersectionObserver(this.getViewPortIntersectionHandler(),{rootMargin:"50% 0px"}))}isImageInViewPort(t,e){return t.top+t.height>=0&&t.bottom-t.height<=e}loadImage(t,e){let{screenHeight:i,boundingRect:n}=e;!this.intersectionObserver||this.isImageInViewPort(n,i)?this.setImageSource(t):(this.intersectionObserver.unobserve(t),this.intersectionObserver.observe(t))}onImageDisconnected(t){this.intersectionObserver&&this.intersectionObserver.unobserve(t)}setSrcAttribute(t,e){Se(t)!==e&&(t.setAttribute("fetchpriority","high"),t.src=e,t.hasAttribute("srcset")&&(t.srcset=e))}setImageSource(t){const e=t.querySelector("img");this.setSrcAttribute(e,t.dataset.src)}getViewPortIntersectionHandler(){return(t,e)=>{t.filter((t=>t.isIntersecting)).forEach((t=>{const i=t.target;this.setImageSource(i),e.unobserve(i)}))}}};var Pe={measure:function(t,e,i,n,r){let{containerElm:o,bgEffectName:a="none"}=n;const s=i.image,c=i[t],u=window?window.innerHeight||document.documentElement.clientHeight:0,h=null==o?void 0:o.dataset.mediaHeightOverrideType,d=o&&a&&"none"!==a?o:c,{width:l,height:g}=(null==r.getMediaDimensionsByEffect?void 0:r.getMediaDimensionsByEffect(a,d.offsetWidth,d.offsetHeight,u))||{width:c.offsetWidth,height:c.offsetHeight};if(!s)return;const f=Se(s);e.width=l,e.height=function(t,e){return"fixed"===e||"viewport"===e?document.documentElement.clientHeight+80:t}(g,h),e.screenHeight=u,e.imgSrc=f,e.boundingRect=c.getBoundingClientRect(),e.mediaHeightOverrideType=h},patch:function(t,e,i,n,r,o,a,c){var u;if(!Object.keys(e).length)return;const{imageData:h}=n,d=i[t],l=i.image;c&&(h.devicePixelRatio=1);const g=n.targetScale||1,m=((t,e,i)=>{if(!t.targetWidth||!t.targetHeight||!t.imageData.uri)return{uri:"",css:{},transformed:!1};const{imageData:n}=t,r=t.displayMode||s.SCALE_TO_FILL,o=Object.assign(ve(n,"upscaleMethod"),ve(t,"filters"),t.quality||n.quality),a=t.imageData.devicePixelRatio||e.devicePixelRatio,c=xe(a),u=he(r,Object.assign(ve(n,["width","height","crop","name","focalPoint"]),{id:n.uri}),{width:t.targetWidth,height:t.targetHeight,htmlTag:i||"img",pixelAspectRatio:c,alignment:t.alignType||f.CENTER},o);return u.uri=Re(u.uri,e.staticMediaUrl,e.mediaRootUrl),u})({...n,...!n.skipMeasure&&{targetWidth:(e.width||0)*g,targetHeight:(e.height||0)*g},displayMode:h.displayMode},o,"img"),p=(null==m||null==(u=m.css)?void 0:u.img)||{},_=function(t,e,i,n){const r=function(t,e){return void 0===e&&(e=1),1!==e?{...t,width:"100%",height:"100%"}:t}(e,n);if(!t)return r;const o={...r};return"fill"===i?(o.position="absolute",o.top="0"):"fit"===i&&(o.height="100%"),"fixed"===t&&(o["will-change"]="transform"),o.objectPosition&&(o.objectPosition=e.objectPosition.replace(/(center|bottom)$/,"top")),o}(e.mediaHeightOverrideType,p,h.displayMode,g);Me(l,_);const T=null==m?void 0:m.uri;d.setAttribute("data-src",T||""),d.setAttribute("data-has-ssr-src",""),n.isLQIP&&n.lqipTransition&&!("transitioned"in d.dataset)&&(d.dataset.transitioned="",l.complete?l.onload=function(){l.dataset.loadDone=""}:l.onload=function(){l.complete?l.dataset.loadDone="":l.onload=function(){l.dataset.loadDone=""}}),a&&r.imageLoader.loadImage(d,{screenHeight:e.screenHeight,boundingRect:e.boundingRect})}};var Fe=function(t,e){return t.imageLoader||(t.imageLoader=new Ge(t.mutationService)),class extends HTMLElement{constructor(){super(),Ae()(this,"childListObserver",void 0),Ae()(this,"timeoutId",void 0),this.childListObserver=null,this.timeoutId=null}attributeChangedCallback(t,e){e&&this.reLayout()}connectedCallback(){this.observeResize(),this.reLayout()}disconnectedCallback(){this.unobserveResize(),t.imageLoader.onImageDisconnected(this),this.unobserveChildren()}static get observedAttributes(){return["data-image-info"]}reLayout(){const i={},n={},r=this.getAttribute("id"),o=JSON.parse(this.dataset.imageInfo||""),{bgEffectName:a}=this.dataset;i[r]=this,o.containerId&&(i[o.containerId]=document.getElementById(""+o.containerId)),i.image=this.querySelector("img");const s=o.containerId?i[o.containerId]:void 0;if(!i.image){const t=this;return void this.observeChildren(t)}this.unobserveChildren(),this.observeChildren(this),t.mutationService.measure((()=>{Pe.measure(r,n,i,{containerElm:s,bgEffectName:a},t)}));const c=s=>{t.mutationService.mutate((()=>{Pe.patch(r,n,i,o,t,e,s,a)}))};!Se(i.image)||this.dataset.hasSsrSrc?c(!0):this.debounceImageLoad(c)}debounceImageLoad(t){clearTimeout(this.timeoutId),this.timeoutId=setTimeout((()=>{t(!0)}),250),t(!1)}observeResize(){var e;null==(e=t.resizeService)||e.observe(this)}unobserveResize(){var e;null==(e=t.resizeService)||e.unobserve(this)}observeChildren(t){this.childListObserver||(this.childListObserver=new window.MutationObserver((()=>this.reLayout()))),this.childListObserver.observe(t,{childList:!0})}unobserveChildren(){this.childListObserver&&(this.childListObserver.disconnect(),this.childListObserver=null)}}};function ke(t,e){if(void 0===t&&(t={}),void 0===e&&(e=null),"undefined"==typeof window)return;const i={staticMediaUrl:"https://static.wixstatic.com/media",mediaRootUrl:"https://static.wixstatic.com",experiments:{},devicePixelRatio:/iemobile/i.test(navigator.userAgent)?Math.round(window.screen.availWidth/(window.screen.width||window.document.documentElement.clientWidth)):window.devicePixelRatio},n=function(t){const e="wow-image";if(t=t||window,void 0===customElements.get(e)){let i;return t.ResizeObserver&&(i=new t.ResizeObserver((t=>{t.map((t=>t.target.reLayout()))}))),function(n,r){const o=Fe({resizeService:i,...n},r);t.customElements.define(e,o)}}}(e);n&&n({mutationService:we(),...t},i)}}(),r}()})); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("React")):"function"==typeof define&&define.amd?define("image",["React"],e):"object"==typeof exports?exports.image=e(require("React")):t.image=e(t.React)}("undefined"!=typeof self?self:this,(function(t){return function(){var e={114:function(t,e,i){var n;!function(e){"use strict";var r=function(){},o=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(t){return setTimeout(t,16)};function a(){var t=this;t.reads=[],t.writes=[],t.raf=o.bind(e),r("initialized",t)}function s(t){t.scheduled||(t.scheduled=!0,t.raf(c.bind(null,t)),r("flush scheduled"))}function c(t){r("flush");var e,i=t.writes,n=t.reads;try{r("flushing reads",n.length),t.runTasks(n),r("flushing writes",i.length),t.runTasks(i)}catch(t){e=t}if(t.scheduled=!1,(n.length||i.length)&&s(t),e){if(r("task errored",e.message),!t.catch)throw e;t.catch(e)}}function u(t,e){var i=t.indexOf(e);return!!~i&&!!t.splice(i,1)}a.prototype={constructor:a,runTasks:function(t){var e;for(r("run tasks");e=t.shift();)e()},measure:function(t,e){r("measure");var i=e?t.bind(e):t;return this.reads.push(i),s(this),i},mutate:function(t,e){r("mutate");var i=e?t.bind(e):t;return this.writes.push(i),s(this),i},clear:function(t){return r("clear",t),u(this.reads,t)||u(this.writes,t)},extend:function(t){if(r("extend",t),"object"!=typeof t)throw new Error("expected object");var e=Object.create(this);return function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}(e,t),e.fastdom=this,e.initialize&&e.initialize(),e},catch:null};var h=e.fastdom=e.fastdom||new a;void 0===(n=function(){return h}.call(h,i,h,t))||(t.exports=n)}("undefined"!=typeof window?window:this)},24:function(e){"use strict";e.exports=t},816:function(t,e,i){var n=i(738);t.exports=function(t,e,i){return(e=n(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},t.exports.__esModule=!0,t.exports.default=t.exports},191:function(t){function e(){return t.exports=e=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},t.exports.__esModule=!0,t.exports.default=t.exports,e.apply(this,arguments)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},642:function(t){t.exports=function(t,e){return e||(e=t.slice(0)),t.raw=e,t},t.exports.__esModule=!0,t.exports.default=t.exports},723:function(t,e,i){var n=i(422).default;t.exports=function(t,e){if("object"!==n(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,e||"default");if("object"!==n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},738:function(t,e,i){var n=i(422).default,r=i(723);t.exports=function(t){var e=r(t,"string");return"symbol"===n(e)?e:String(e)},t.exports.__esModule=!0,t.exports.default=t.exports},422:function(t){function e(i){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(i)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}},i={};function n(t){var r=i[t];if(void 0!==r)return r.exports;var o=i[t]={exports:{}};return e[t].call(o.exports,o,o.exports,n),o.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return function(){"use strict";n.r(r),n.d(r,{Image:function(){return Le},imageKit:function(){return t},initCustomElement:function(){return ke}});var t={};n.r(t),n.d(t,{STATIC_MEDIA_URL:function(){return _e},alignTypes:function(){return f},fittingTypes:function(){return s},getData:function(){return he},getPlaceholder:function(){return ue},htmlTag:function(){return _},populateGlobalFeatureSupport:function(){return z},sdk:function(){return pe},upscaleMethods:function(){return T}});var e=n(191),i=n.n(e),o=n(24),a="DpEFnE";const s={SCALE_TO_FILL:"fill",SCALE_TO_FIT:"fit",STRETCH:"stretch",ORIGINAL_SIZE:"original_size",TILE:"tile",TILE_HORIZONTAL:"tile_horizontal",TILE_VERTICAL:"tile_vertical",FIT_AND_TILE:"fit_and_tile",LEGACY_STRIP_TILE:"legacy_strip_tile",LEGACY_STRIP_TILE_HORIZONTAL:"legacy_strip_tile_horizontal",LEGACY_STRIP_TILE_VERTICAL:"legacy_strip_tile_vertical",LEGACY_STRIP_SCALE_TO_FILL:"legacy_strip_fill",LEGACY_STRIP_SCALE_TO_FIT:"legacy_strip_fit",LEGACY_STRIP_FIT_AND_TILE:"legacy_strip_fit_and_tile",LEGACY_STRIP_ORIGINAL_SIZE:"legacy_strip_original_size",LEGACY_ORIGINAL_SIZE:"actual_size",LEGACY_FIT_WIDTH:"fitWidth",LEGACY_FIT_HEIGHT:"fitHeight",LEGACY_FULL:"full",LEGACY_BG_FIT_AND_TILE:"legacy_tile",LEGACY_BG_FIT_AND_TILE_HORIZONTAL:"legacy_tile_horizontal",LEGACY_BG_FIT_AND_TILE_VERTICAL:"legacy_tile_vertical",LEGACY_BG_NORMAL:"legacy_normal"},c="fit",u="fill",h="fill_focal",d="crop",l="legacy_crop",g="legacy_fill",f={CENTER:"center",TOP:"top",TOP_LEFT:"top_left",TOP_RIGHT:"top_right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom_left",BOTTOM_RIGHT:"bottom_right",LEFT:"left",RIGHT:"right"},m={[f.CENTER]:{x:.5,y:.5},[f.TOP_LEFT]:{x:0,y:0},[f.TOP_RIGHT]:{x:1,y:.5},[f.TOP]:{x:.5,y:0},[f.BOTTOM_LEFT]:{x:0,y:1},[f.BOTTOM_RIGHT]:{x:1,y:1},[f.BOTTOM]:{x:.5,y:1},[f.RIGHT]:{x:1,y:.5},[f.LEFT]:{x:0,y:.5}},p={center:"c",top:"t",top_left:"tl",top_right:"tr",bottom:"b",bottom_left:"bl",bottom_right:"br",left:"l",right:"r"},_={BG:"bg",IMG:"img",SVG:"svg"},T={AUTO:"auto",CLASSIC:"classic",SUPER:"super"},I=1,b=2,L={radius:"0.66",amount:"1.00",threshold:"0.01"},E={uri:"",css:{img:{},container:{}},attr:{img:{},container:{}},transformed:!1},w=25e6,O=[1.5,2,4],A={HIGH:{size:196e4,quality:90,maxUpscale:1},MEDIUM:{size:36e4,quality:85,maxUpscale:1},LOW:{size:16e4,quality:80,maxUpscale:1.2},TINY:{size:0,quality:80,maxUpscale:1.4}},y="HIGH",v="MEDIUM",M="LOW",R="TINY",x="contrast",S="brightness",C="saturation",G="hue",P="blur",F="jpg",k="jpeg",N="jpe",H="png",Y="webp",j="gif",B="unrecognized",U={isMobile:!1};function z(){if("undefined"!=typeof window&&"undefined"!=typeof navigator){const e=window.matchMedia&&window.matchMedia("(max-width: 767px)").matches,i=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);t=e&&i,U["isMobile"]=t}var t}function D(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const o=n[n.length-1]||{},a=[t[0]];return i.forEach((function(e,i){const r=Number.isInteger(e)?n[e]:o[e];a.push(r,t[i+1])})),a.join("")}}function q(t){return t[t.length-1]}const V=[H,k,F,N,"wix_ico_mp","wix_mp"],Z=[k,F,N];function W(t,e,i){return i&&e&&!(!(n=e.id)||!n.trim()||"none"===n.toLowerCase())&&Object.values(s).includes(t);var n}function $(t){return function(t){return V.includes(tt(t))}(t)&&!/(^https?)|(^data)|(^\/\/)/.test(t)}function Q(t){return tt(t)===H}const J=["/","\\","?","<",">","|","\u201c",":",'"'].map(encodeURIComponent),X=["\\.","\\*"];function K(t){return function(t){return Z.includes(tt(t))}(t)?F:Q(t)?H:function(t){return tt(t)===Y}(t)?Y:B}function tt(t){return(/[.]([^.]+)$/.exec(t)&&/[.]([^.]+)$/.exec(t)[1]||"").toLowerCase()}function et(t,e,i,n,r){let o;return o=r===u?function(t,e,i,n){return Math.max(i/t,n/e)}(t,e,i,n):r===c?function(t,e,i,n){return Math.min(i/t,n/e)}(t,e,i,n):1,o}function it(t,e,i,n,r,o){t=t||n.width,e=e||n.height;const{scaleFactor:a,width:s,height:h}=function(t,e,i,n,r){let o,a=i,s=n;if(o=et(t,e,i,n,r),r===c&&(a=t*o,s=e*o),a&&s&&a*s>w){const i=Math.sqrt(w/(a*s));a*=i,s*=i,o=et(t,e,a,s,r)}return{scaleFactor:o,width:a,height:s}}(t,e,n.width*r,n.height*r,i);return function(t,e,i,n,r,o,a){const{optimizedScaleFactor:s,upscaleMethodValue:h,forceUSM:d}=function(t,e,i,n){if("auto"===n)return function(t,e){const i=at(t,e);return{optimizedScaleFactor:A[i].maxUpscale,upscaleMethodValue:I,forceUSM:!1}}(t,e);if("super"===n)return function(t){return{optimizedScaleFactor:q(O),upscaleMethodValue:b,forceUSM:!(O.includes(t)||t>q(O))}}(i);return function(t,e){const i=at(t,e);return{optimizedScaleFactor:A[i].maxUpscale,upscaleMethodValue:I,forceUSM:!1}}(t,e)}(t,e,o,r);let l=i,g=n;if(o<=s)return{width:l,height:g,scaleFactor:o,upscaleMethodValue:h,forceUSM:d,cssUpscaleNeeded:!1};switch(a){case u:l=i*(s/o),g=n*(s/o);break;case c:l=t*s,g=e*s}return{width:l,height:g,scaleFactor:s,upscaleMethodValue:h,forceUSM:d,cssUpscaleNeeded:!0}}(t,e,s,h,o,a,i)}function nt(t,e,i,n){const r=ot(i)||function(t){return void 0===t&&(t=f.CENTER),m[t]}(n);return{x:Math.max(0,Math.min(t.width-e.width,r.x*t.width-e.width/2)),y:Math.max(0,Math.min(t.height-e.height,r.y*t.height-e.height/2)),width:Math.min(t.width,e.width),height:Math.min(t.height,e.height)}}function rt(t){return t.alignment&&p[t.alignment]||p[f.CENTER]}function ot(t){let e;return!t||"number"!=typeof t.x||isNaN(t.x)||"number"!=typeof t.y||isNaN(t.y)||(e={x:st(Math.max(0,Math.min(100,t.x))/100,2),y:st(Math.max(0,Math.min(100,t.y))/100,2)}),e}function at(t,e){const i=t*e;return i>A[y].size?y:i>A[v].size?v:i>A[M].size?M:R}function st(t,e){const i=Math.pow(10,e||0);return(t*i/i).toFixed(e)}function ct(t){return t&&t.upscaleMethod&&T[t.upscaleMethod.toUpperCase()]||T.AUTO}function ut(t,e){const i={css:{container:{}}},{css:n}=i,{fittingType:r}=t;switch(r){case s.ORIGINAL_SIZE:case s.LEGACY_ORIGINAL_SIZE:case s.LEGACY_STRIP_ORIGINAL_SIZE:n.container.backgroundSize="auto",n.container.backgroundRepeat="no-repeat";break;case s.SCALE_TO_FIT:case s.LEGACY_STRIP_SCALE_TO_FIT:n.container.backgroundSize="contain",n.container.backgroundRepeat="no-repeat";break;case s.STRETCH:n.container.backgroundSize="100% 100%",n.container.backgroundRepeat="no-repeat";break;case s.SCALE_TO_FILL:case s.LEGACY_STRIP_SCALE_TO_FILL:n.container.backgroundSize="cover",n.container.backgroundRepeat="no-repeat";break;case s.TILE_HORIZONTAL:case s.LEGACY_STRIP_TILE_HORIZONTAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat-x";break;case s.TILE_VERTICAL:case s.LEGACY_STRIP_TILE_VERTICAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat-y";break;case s.TILE:case s.LEGACY_STRIP_TILE:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat";break;case s.LEGACY_STRIP_FIT_AND_TILE:n.container.backgroundSize="contain",n.container.backgroundRepeat="repeat";break;case s.FIT_AND_TILE:case s.LEGACY_BG_FIT_AND_TILE:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat";break;case s.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat-x";break;case s.LEGACY_BG_FIT_AND_TILE_VERTICAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat-y";break;case s.LEGACY_BG_NORMAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="no-repeat"}switch(e.alignment){case f.CENTER:n.container.backgroundPosition="center center";break;case f.LEFT:n.container.backgroundPosition="left center";break;case f.RIGHT:n.container.backgroundPosition="right center";break;case f.TOP:n.container.backgroundPosition="center top";break;case f.BOTTOM:n.container.backgroundPosition="center bottom";break;case f.TOP_RIGHT:n.container.backgroundPosition="right top";break;case f.TOP_LEFT:n.container.backgroundPosition="left top";break;case f.BOTTOM_RIGHT:n.container.backgroundPosition="right bottom";break;case f.BOTTOM_LEFT:n.container.backgroundPosition="left bottom"}return i}const ht={[f.CENTER]:"center",[f.TOP]:"top",[f.TOP_LEFT]:"top left",[f.TOP_RIGHT]:"top right",[f.BOTTOM]:"bottom",[f.BOTTOM_LEFT]:"bottom left",[f.BOTTOM_RIGHT]:"bottom right",[f.LEFT]:"left",[f.RIGHT]:"right"},dt={position:"absolute",top:"auto",right:"auto",bottom:"auto",left:"auto"};function lt(t,e){const i={css:{container:{},img:{}}},{css:n}=i,{fittingType:r}=t,o=e.alignment;switch(n.container.position="relative",r){case s.ORIGINAL_SIZE:case s.LEGACY_ORIGINAL_SIZE:t.parts&&t.parts.length?(n.img.width=t.parts[0].width,n.img.height=t.parts[0].height):(n.img.width=t.src.width,n.img.height=t.src.height);break;case s.SCALE_TO_FIT:case s.LEGACY_FIT_WIDTH:case s.LEGACY_FIT_HEIGHT:case s.LEGACY_FULL:n.img.width=e.width,n.img.height=e.height,n.img.objectFit="contain",n.img.objectPosition=ht[o]||"unset";break;case s.LEGACY_BG_NORMAL:n.img.width="100%",n.img.height="100%",n.img.objectFit="none",n.img.objectPosition=ht[o]||"unset";break;case s.STRETCH:n.img.width=e.width,n.img.height=e.height,n.img.objectFit="fill";break;case s.SCALE_TO_FILL:n.img.width=e.width,n.img.height=e.height,n.img.objectFit="cover"}if("number"==typeof n.img.width&&"number"==typeof n.img.height&&(n.img.width!==e.width||n.img.height!==e.height)){const t=Math.round((e.height-n.img.height)/2),i=Math.round((e.width-n.img.width)/2);Object.assign(n.img,dt,function(t,e,i){return{[f.TOP_LEFT]:{top:0,left:0},[f.TOP_RIGHT]:{top:0,right:0},[f.TOP]:{top:0,left:e},[f.BOTTOM_LEFT]:{bottom:0,left:0},[f.BOTTOM_RIGHT]:{bottom:0,right:0},[f.BOTTOM]:{bottom:0,left:e},[f.RIGHT]:{top:t,right:0},[f.LEFT]:{top:t,left:0},[f.CENTER]:{width:i.width,height:i.height,objectFit:"none"}}}(t,i,e)[o])}return i}function gt(t,e){const i={css:{container:{}},attr:{container:{},img:{}}},{css:n,attr:r}=i,{fittingType:o}=t,a=e.alignment,{width:c,height:h}=t.src;let d;switch(n.container.position="relative",o){case s.ORIGINAL_SIZE:case s.LEGACY_ORIGINAL_SIZE:case s.TILE:t.parts&&t.parts.length?(r.img.width=t.parts[0].width,r.img.height=t.parts[0].height):(r.img.width=c,r.img.height=h),r.img.preserveAspectRatio="xMidYMid slice";break;case s.SCALE_TO_FIT:case s.LEGACY_FIT_WIDTH:case s.LEGACY_FIT_HEIGHT:case s.LEGACY_FULL:r.img.width="100%",r.img.height="100%",r.img.transform="",r.img.preserveAspectRatio="";break;case s.STRETCH:r.img.width=e.width,r.img.height=e.height,r.img.x=0,r.img.y=0,r.img.transform="",r.img.preserveAspectRatio="none";break;case s.SCALE_TO_FILL:$(t.src.id)?(r.img.width=e.width,r.img.height=e.height):(d=function(t,e,i,n,r){const o=et(t,e,i,n,r);return{width:Math.round(t*o),height:Math.round(e*o)}}(c,h,e.width,e.height,u),r.img.width=d.width,r.img.height=d.height),r.img.x=0,r.img.y=0,r.img.transform="",r.img.preserveAspectRatio="xMidYMid slice"}if("number"==typeof r.img.width&&"number"==typeof r.img.height&&(r.img.width!==e.width||r.img.height!==e.height)){let t,i,n=0,c=0;o===s.TILE?(t=e.width%r.img.width,i=e.height%r.img.height):(t=e.width-r.img.width,i=e.height-r.img.height);const u=Math.round(t/2),h=Math.round(i/2);switch(a){case f.TOP_LEFT:n=0,c=0;break;case f.TOP:n=u,c=0;break;case f.TOP_RIGHT:n=t,c=0;break;case f.LEFT:n=0,c=h;break;case f.CENTER:n=u,c=h;break;case f.RIGHT:n=t,c=h;break;case f.BOTTOM_LEFT:n=0,c=i;break;case f.BOTTOM:n=u,c=i;break;case f.BOTTOM_RIGHT:n=t,c=i}r.img.x=n,r.img.y=c}return r.container.width=e.width,r.container.height=e.height,r.container.viewBox=[0,0,e.width,e.height].join(" "),i}function ft(){return U["isMobile"]}function mt(t,e,i){let n;switch(e.crop&&(n=function(t,e){const i=Math.max(0,Math.min(t.width,e.x+e.width)-Math.max(0,e.x)),n=Math.max(0,Math.min(t.height,e.y+e.height)-Math.max(0,e.y));return i&&n&&(t.width!==i||t.height!==n)?{x:Math.max(0,e.x),y:Math.max(0,e.y),width:i,height:n}:null}(e,e.crop),n&&(t.src.width=n.width,t.src.height=n.height,t.src.isCropped=!0,t.parts.push(_t(n)))),t.fittingType){case s.SCALE_TO_FIT:case s.LEGACY_FIT_WIDTH:case s.LEGACY_FIT_HEIGHT:case s.LEGACY_FULL:case s.FIT_AND_TILE:case s.LEGACY_BG_FIT_AND_TILE:case s.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:case s.LEGACY_BG_FIT_AND_TILE_VERTICAL:case s.LEGACY_BG_NORMAL:t.parts.push(pt(t,i));break;case s.SCALE_TO_FILL:t.parts.push(function(t,e){const i=it(t.src.width,t.src.height,u,e,t.devicePixelRatio,t.upscaleMethod),n=ot(t.focalPoint);return{transformType:n?h:u,width:Math.round(i.width),height:Math.round(i.height),alignment:rt(e),focalPointX:n&&n.x,focalPointY:n&&n.y,upscale:i.scaleFactor>1,forceUSM:i.forceUSM,scaleFactor:i.scaleFactor,cssUpscaleNeeded:i.cssUpscaleNeeded,upscaleMethodValue:i.upscaleMethodValue}}(t,i));break;case s.STRETCH:t.parts.push(function(t,e){const i=et(t.src.width,t.src.height,e.width,e.height,u),n=Object.assign({},e);return n.width=t.src.width*i,n.height=t.src.height*i,pt(t,n)}(t,i));break;case s.TILE_HORIZONTAL:case s.TILE_VERTICAL:case s.TILE:case s.LEGACY_ORIGINAL_SIZE:case s.ORIGINAL_SIZE:n=nt(t.src,i,t.focalPoint,i.alignment),t.src.isCropped?(Object.assign(t.parts[0],n),t.src.width=n.width,t.src.height=n.height):t.parts.push(_t(n));break;case s.LEGACY_STRIP_TILE_HORIZONTAL:case s.LEGACY_STRIP_TILE_VERTICAL:case s.LEGACY_STRIP_TILE:case s.LEGACY_STRIP_ORIGINAL_SIZE:t.parts.push(function(t){return{transformType:l,width:Math.round(t.width),height:Math.round(t.height),alignment:rt(t),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}(i));break;case s.LEGACY_STRIP_SCALE_TO_FIT:case s.LEGACY_STRIP_FIT_AND_TILE:t.parts.push(function(t){return{transformType:c,width:Math.round(t.width),height:Math.round(t.height),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(i));break;case s.LEGACY_STRIP_SCALE_TO_FILL:t.parts.push(function(t){return{transformType:g,width:Math.round(t.width),height:Math.round(t.height),alignment:rt(t),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(i))}}function pt(t,e){const i=it(t.src.width,t.src.height,c,e,t.devicePixelRatio,t.upscaleMethod);return{transformType:u,width:Math.round(i.width),height:Math.round(i.height),alignment:p.center,upscale:i.scaleFactor>1,forceUSM:i.forceUSM,scaleFactor:i.scaleFactor,cssUpscaleNeeded:i.cssUpscaleNeeded,upscaleMethodValue:i.upscaleMethodValue}}function _t(t){return{transformType:d,x:Math.round(t.x),y:Math.round(t.y),width:Math.round(t.width),height:Math.round(t.height),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}function Tt(t,e){var i;e=e||{},t.quality=function(t,e){const i=t.fileType===H,n=t.fileType===F,r=n||i;if(r){const n=q(t.parts),r=(o=n.width,a=n.height,A[at(o,a)].quality);let s=e.quality&&e.quality>=5&&e.quality<=90?e.quality:r;return s=i?s+5:s,s}var o,a;return 0}(t,e),t.progressive=function(t){return!1!==t.progressive}(e),t.watermark=function(t){return t.watermark}(e),t.autoEncode=null===(i=e.autoEncode)||void 0===i||i,t.unsharpMask=function(t,e){var i,n,r;if(function(t){const e="number"==typeof(t=t||{}).radius&&!isNaN(t.radius)&&t.radius>=.1&&t.radius<=500,i="number"==typeof t.amount&&!isNaN(t.amount)&&t.amount>=0&&t.amount<=10,n="number"==typeof t.threshold&&!isNaN(t.threshold)&&t.threshold>=0&&t.threshold<=255;return e&&i&&n}(e.unsharpMask))return{radius:st(null===(i=e.unsharpMask)||void 0===i?void 0:i.radius,2),amount:st(null===(n=e.unsharpMask)||void 0===n?void 0:n.amount,2),threshold:st(null===(r=e.unsharpMask)||void 0===r?void 0:r.threshold,2)};if(("number"!=typeof(o=(o=e.unsharpMask)||{}).radius||isNaN(o.radius)||0!==o.radius||"number"!=typeof o.amount||isNaN(o.amount)||0!==o.amount||"number"!=typeof o.threshold||isNaN(o.threshold)||0!==o.threshold)&&function(t){const e=q(t.parts);return!(e.scaleFactor>=1)||e.forceUSM}(t))return L;var o;return}(t,e),t.filters=function(t){const e=t.filters||{},i={};It(e[x],-100,100)&&(i[x]=e[x]);It(e[S],-100,100)&&(i[S]=e[S]);It(e[C],-100,100)&&(i[C]=e[C]);It(e[G],-180,180)&&(i[G]=e[G]);It(e[P],0,100)&&(i[P]=e[P]);return i}(e)}function It(t,e,i){return"number"==typeof t&&!isNaN(t)&&0!==t&&t>=e&&t<=i}function bt(t,e,i,n){const r=function(t){var e;return null!==(e=null==t?void 0:t.isSEOBot)&&void 0!==e&&e}(n),o=K(e.id),a=function(t,e){const i=/\.([^.]*)$/,n=new RegExp("("+J.concat(X).join("|")+")","g");if(e&&e.length){let t=e;const r=e.match(i);return r&&V.includes(r[1])&&(t=e.replace(i,"")),encodeURIComponent(t).replace(n,"_")}const r=t.match(/\/(.*?)$/);return(r?r[1]:t).replace(i,"")}(e.id,e.name),s=r?1:function(t){return Math.min(t.pixelAspectRatio||1,2)}(i),c=tt(e.id),u=c,h=$(e.id),d={fileName:a,fileExtension:c,fileType:o,fittingType:t,preferredExtension:u,src:{id:e.id,width:e.width,height:e.height,isCropped:!1},focalPoint:{x:e.focalPoint&&e.focalPoint.x,y:e.focalPoint&&e.focalPoint.y},parts:[],devicePixelRatio:s,quality:0,upscaleMethod:ct(n),progressive:!0,watermark:"",unsharpMask:{},filters:{},transformed:h};return h&&(mt(d,e,i),Tt(d,n)),d}function Lt(t,e,i){const n=Object.assign({},i),r=ft();switch(t){case s.LEGACY_BG_FIT_AND_TILE:case s.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:case s.LEGACY_BG_FIT_AND_TILE_VERTICAL:case s.LEGACY_BG_NORMAL:const t=r?1e3:1920,i=r?1e3:1920;n.width=Math.min(t,e.width),n.height=Math.min(i,Math.round(n.width/(e.width/e.height))),n.pixelAspectRatio=1}return n}var Et,wt,Ot,At,yt,vt,Mt,Rt,xt,St,Ct,Gt,Pt,Ft,kt,Nt,Ht,Yt=n(642),jt=n.n(Yt);const Bt=D(Et||(Et=jt()(["fit/w_",",h_",""])),"width","height"),Ut=D(wt||(wt=jt()(["fill/w_",",h_",",al_",""])),"width","height","alignment"),zt=D(Ot||(Ot=jt()(["fill/w_",",h_",",fp_","_",""])),"width","height","focalPointX","focalPointY"),Dt=D(At||(At=jt()(["crop/x_",",y_",",w_",",h_",""])),"x","y","width","height"),qt=D(yt||(yt=jt()(["crop/w_",",h_",",al_",""])),"width","height","alignment"),Vt=D(vt||(vt=jt()(["fill/w_",",h_",",al_",""])),"width","height","alignment"),Zt=D(Mt||(Mt=jt()([",lg_",""])),"upscaleMethodValue"),Wt=D(Rt||(Rt=jt()([",q_",""])),"quality"),$t=D(xt||(xt=jt()([",usm_","_","_",""])),"radius","amount","threshold"),Qt=D(St||(St=jt()([",bl"]))),Jt=D(Ct||(Ct=jt()([",wm_",""])),"watermark"),Xt={[x]:D(Gt||(Gt=jt()([",con_",""])),"contrast"),[S]:D(Pt||(Pt=jt()([",br_",""])),"brightness"),[C]:D(Ft||(Ft=jt()([",sat_",""])),"saturation"),[G]:D(kt||(kt=jt()([",hue_",""])),"hue"),[P]:D(Nt||(Nt=jt()([",blur_",""])),"blur")},Kt=D(Ht||(Ht=jt()([",enc_auto"])));function te(t,e,i,n,r){return void 0===n&&(n={}),$(e.id)?function(t){const e=[];t.parts.forEach((t=>{switch(t.transformType){case d:e.push(Dt(t));break;case l:e.push(qt(t));break;case g:let i=Vt(t);t.upscale&&(i+=Zt(t)),e.push(i);break;case c:let n=Bt(t);t.upscale&&(n+=Zt(t)),e.push(n);break;case u:let r=Ut(t);t.upscale&&(r+=Zt(t)),e.push(r);break;case h:let o=zt(t);t.upscale&&(o+=Zt(t)),e.push(o)}}));let i=e.join("/");return t.quality&&(i+=Wt(t)),t.unsharpMask&&(i+=$t(t.unsharpMask)),t.progressive||(i+=Qt(t)),t.watermark&&(i+=Jt(t)),t.filters&&(i+=Object.keys(t.filters).map((e=>Xt[e](t.filters))).join("")),t.autoEncode&&t.fileType!==j&&(i+=Kt(t)),t.src.id+"/v1/"+i+"/"+t.fileName+"."+t.preferredExtension}(r=r||bt(t,e,i,n)):e.id}const ee={[f.CENTER]:"50% 50%",[f.TOP_LEFT]:"0% 0%",[f.TOP_RIGHT]:"100% 0%",[f.TOP]:"50% 0%",[f.BOTTOM_LEFT]:"0% 100%",[f.BOTTOM_RIGHT]:"100% 100%",[f.BOTTOM]:"50% 100%",[f.RIGHT]:"100% 50%",[f.LEFT]:"0% 50%"},ie=Object.entries(ee).reduce(((t,e)=>{let[i,n]=e;return t[n]=i,t}),{}),ne=[s.TILE,s.TILE_HORIZONTAL,s.TILE_VERTICAL,s.LEGACY_BG_FIT_AND_TILE,s.LEGACY_BG_FIT_AND_TILE_HORIZONTAL,s.LEGACY_BG_FIT_AND_TILE_VERTICAL],re=[s.LEGACY_ORIGINAL_SIZE,s.ORIGINAL_SIZE,s.LEGACY_BG_NORMAL];function oe(t,e,i){let{width:n,height:r}=i;return t===s.TILE&&e.width>n&&e.height>r}function ae(t,e,i,n){void 0===n&&(n="center");const r={img:{},container:{}};if(t===s.SCALE_TO_FILL){const t=e.focalPoint&&function(t){const e=t.x+"% "+t.y+"%";return ie[e]||""}(e.focalPoint),o=t||n;e.focalPoint&&!t?r.img={objectPosition:se(e,i,e.focalPoint)}:r.img={objectPosition:ee[o]}}else[s.LEGACY_ORIGINAL_SIZE,s.ORIGINAL_SIZE].includes(t)?r.img={objectFit:"none",top:"auto",left:"auto",right:"auto",bottom:"auto"}:ne.includes(t)&&(r.container={backgroundSize:e.width+"px "+e.height+"px"});return r}function se(t,e,i){const{width:n,height:r}=t,{width:o,height:a}=e,{x:s,y:c}=i;if(!o||!a)return s+"% "+c+"%";const u=Math.max(o/n,a/r),h=n*u,d=r*u,l=Math.max(0,Math.min(h-o,h*(s/100)-o/2)),g=Math.max(0,Math.min(d-a,d*(c/100)-a/2));return(l&&Math.floor(l/(h-o)*100))+"% "+(g&&Math.floor(g/(d-a)*100))+"%"}const ce={width:"100%",height:"100%"};function ue(t,e,i,n){if(void 0===n&&(n={}),!W(t,e,i))return E;const{autoEncode:r=!0,isSEOBot:o,shouldLoadHQImage:a}=n,c=$(e.id);if(!c||a)return he(t,e,i,Object.assign(Object.assign({},n),{autoEncode:r,useSrcset:c}));const u=Object.assign(Object.assign({},i),function(t,e){let{width:i,height:n}=e;if(!i||!n){const e=i||Math.min(980,t.width),r=e/t.width;return{width:e,height:n||t.height*r}}return{width:i,height:n}}(e,i)),{alignment:h,htmlTag:d}=u,l=oe(t,e,u),g=function(t,e,i,n){let{width:r,height:o}=i;if(void 0===n&&(n=!1),n)return{width:r,height:o};const a=!re.includes(t),s=oe(t,e,{width:r,height:o}),c=!s&&ne.includes(t),u=c?e.width:r,h=c?e.height:o,d=a?function(t,e){return t>900?e?.05:.15:t>500?e?.1:.18:t>200?.25:1}(u,Q(e.id)):1;return{width:s?1920:u*d,height:h*d}}(t,e,u,o),f=function(t,e,i){return i?0:ne.includes(e)?1:t>200?2:3}(u.width,t,o),m=function(t,e){const i=ne.includes(t)&&!e;return t===s.SCALE_TO_FILL||i?s.SCALE_TO_FIT:t}(t,l),p=ae(t,e,i,h),{uri:_}=he(m,e,Object.assign(Object.assign({},g),{alignment:h,htmlTag:d}),{autoEncode:r,filters:f?{blur:f}:{}}),{attr:T={},css:I}=he(t,e,Object.assign(Object.assign({},u),{alignment:h,htmlTag:d}),{});return I.img=I.img||{},I.container=I.container||{},Object.assign(I.img,p.img,ce),Object.assign(I.container,p.container),{uri:_,css:I,attr:T,transformed:!0}}function he(t,e,i,n){let r={};if(W(t,e,i)){const o=Lt(t,e,i),a=bt(t,e,o,n);r.uri=te(t,e,o,n,a),(null==n?void 0:n.useSrcset)&&(r.srcset=function(t,e,i,n,r){const o=i.pixelAspectRatio||1;return{dpr:[(1===o?r.uri:te(t,e,Object.assign(Object.assign({},i),{pixelAspectRatio:1}),n))+" 1x",(2===o?r.uri:te(t,e,Object.assign(Object.assign({},i),{pixelAspectRatio:2}),n))+" 2x"]}}(t,e,o,n,r)),Object.assign(r,function(t,e){let i;return i=e.htmlTag===_.BG?ut:e.htmlTag===_.SVG?gt:lt,i(t,e)}(a,o),{transformed:a.transformed})}else r=E;return r}function de(t,e,i,n){if(W(t,e,i)){const r=Lt(t,e,i);return{uri:te(t,e,r,n||{},bt(t,e,r,n))}}return{uri:""}}const le="https://static.wixstatic.com/media/",ge=/^media\//i,fe="undefined"!=typeof window?window.devicePixelRatio:1,me=(t,e)=>{const i=e&&e.baseHostURL;return i?""+i+t:(t=>ge.test(t)?"https://static.wixstatic.com/"+t:""+le+t)(t)};z(),z();const pe={getScaleToFitImageURL:function(t,e,i,n,r,o){const a=de(s.SCALE_TO_FIT,{id:t,width:e,height:i,name:o&&o.name},{width:n,height:r,htmlTag:_.IMG,alignment:f.CENTER,pixelAspectRatio:fe},o);return me(a.uri,o)},getScaleToFillImageURL:function(t,e,i,n,r,o){const a=de(s.SCALE_TO_FILL,{id:t,width:e,height:i,name:o&&o.name,focalPoint:{x:o&&o.focalPoint&&o.focalPoint.x,y:o&&o.focalPoint&&o.focalPoint.y}},{width:n,height:r,htmlTag:_.IMG,alignment:f.CENTER,pixelAspectRatio:fe},o);return me(a.uri,o)},getCropImageURL:function(t,e,i,n,r,o,a,c,u,h){const d=de(s.SCALE_TO_FILL,{id:t,width:e,height:i,name:h&&h.name,crop:{x:n,y:r,width:o,height:a}},{width:c,height:u,htmlTag:_.IMG,alignment:f.CENTER,pixelAspectRatio:fe},h);return me(d.uri,h)}},_e=le,{STATIC_MEDIA_URL:Te}=t,Ie=t=>{let{fittingType:e,src:i,target:n,options:r}=t;const o=ue(e,i,n,{...r,autoEncode:!0});return null!=o&&o.uri&&!/^[a-z]+:/.test(o.uri)&&(o.uri=""+Te+o.uri),o},be=/^[a-z]+:/,Le=t=>{var e,n;const{id:r,containerId:s,uri:c,alt:u,name:h="",role:d,width:l,height:g,displayMode:f,devicePixelRatio:m,quality:p,alignType:_,bgEffectName:T="",focalPoint:I,upscaleMethod:b,className:L="",crop:E,imageStyles:w={},targetWidth:O,targetHeight:A,targetScale:y,onLoad:v=(()=>{}),onError:M=(()=>{}),shouldUseLQIP:R,containerWidth:x,containerHeight:S,getPlaceholder:C,isInFirstFold:G,placeholderTransition:P,socialAttrs:F,isSEOBot:k,skipMeasure:N,lazyLoadImgExperimentOpen:H}=t,Y=o.useRef(null);let j="";const B="blur"===P,U=o.useRef(null);if(!U.current)if(C||R||G||k){const t={upscaleMethod:b,...p||{},shouldLoadHQImage:G,isSEOBot:k};U.current=(C||Ie)({fittingType:f,src:{id:c,width:l,height:g,crop:E,name:h,focalPoint:I},target:{width:x,height:S,alignment:_,htmlTag:"img"},options:t}),j=!U.current.transformed||G||k?"":"true"}else U.current={uri:void 0,css:{img:{}},attr:{img:{},container:{}},transformed:!1};const z=!k&&(C||R)&&!G&&U.current.transformed,D=o.useMemo((()=>JSON.stringify({containerId:s,...s&&{containerId:s},..._&&{alignType:_},...N&&{skipMeasure:!0},displayMode:f,...x&&{targetWidth:x},...S&&{targetHeight:S},...O&&{targetWidth:O},...A&&{targetHeight:A},...y&&{targetScale:y},isLQIP:z,isSEOBot:k,lqipTransition:P,imageData:{width:l,height:g,uri:c,name:h,displayMode:f,...p&&{quality:p},...m&&{devicePixelRatio:m},...I&&{focalPoint:I},...E&&{crop:E},...b&&{upscaleMethod:b}}})),[s,_,N,f,S,x,O,A,y,z,k,P,l,g,c,h,p,m,I,E,b]),q=U.current,V=null==q?void 0:q.uri,Z=null==q?void 0:q.srcset,W=null==(e=q.css)?void 0:e.img,$=a+" "+L;o.useEffect((()=>{var t;null!=(t=Y.current)&&t.complete&&v&&v({target:Y.current})}),[]);const Q=!q||null!=q&&q.transformed?O?O+"px":null:"max("+l+"px, 100%)";return o.createElement("wow-image",{id:r,class:$,"data-image-info":D,"data-bg-effect-name":T,"data-has-ssr-src":j,"data-animate-blur":!k&&z&&B?"":void 0,style:Q?{"--wix-img-max-width":Q}:{}},o.createElement("img",i()({src:V,ref:Y,alt:u||"",role:d,style:{...W,...w},onLoad:v,onError:M},F,G?{srcSet:null==Z||null==(n=Z.dpr)?void 0:n.map((t=>be.test(t)?t:""+Te+t)).join(", "),fetchpriority:"high"}:H?{loading:"lazy"}:{})))};var Ee=n(114),we=n.n(Ee),Oe=n(816),Ae=n.n(Oe);const ye={columnCount:1,columns:1,fontWeight:1,lineHeight:1,opacity:1,zIndex:1,zoom:1},ve=(t,e)=>(Array.isArray(e)?e:[e]).reduce(((e,i)=>{const n=t[i];return void 0!==n?Object.assign(e,{[i]:n}):e}),{}),Me=(t,e)=>t&&e&&Object.keys(e).forEach((i=>{const n=e[i];void 0!==n?t.style[i]=((t,e)=>"number"!=typeof e||ye[t]?e:e+"px")(i,n):t.style.removeProperty(i)})),Re=(t,e,i)=>{if(/(^https?)|(^data)|(^blob)|(^\/\/)/.test(t))return t;let n=e+"/";var r;t&&(/^micons\//.test(t)?n=i:"ico"===(null==(r=/[^.]+$/.exec(t))?void 0:r[0])&&(n=n.replace("media","ficons")));return n+t},xe=t=>{const e=window.location.search.split("&").map((t=>t.split("="))).find((t=>t[0].toLowerCase().includes("devicepixelratio")));return(e?Number(e[1]):null)||t||1},Se=t=>t.getAttribute("src"),Ce=()=>window&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype&&"isIntersecting"in window.IntersectionObserverEntry.prototype&&!/Edge\/18/.test(window.navigator.userAgent);var Ge=class{constructor(t){Ae()(this,"intersectionObserver",void 0),Ae()(this,"scrollEffectsIntersectionObserver",void 0),Ae()(this,"mutationService",void 0),this.mutationService=t,Ce()&&(this.intersectionObserver=new IntersectionObserver(this.getViewPortIntersectionHandler(),{rootMargin:"50% 0px"}))}isImageInViewPort(t,e){return t.top+t.height>=0&&t.bottom-t.height<=e}loadImage(t,e){let{screenHeight:i,boundingRect:n}=e;!this.intersectionObserver||this.isImageInViewPort(n,i)?this.setImageSource(t):(this.intersectionObserver.unobserve(t),this.intersectionObserver.observe(t))}onImageDisconnected(t){this.intersectionObserver&&this.intersectionObserver.unobserve(t)}setSrcAttribute(t,e){Se(t)!==e&&(t.setAttribute("fetchpriority","high"),t.src=e,t.hasAttribute("srcset")&&(t.srcset=e))}setImageSource(t){const e=t.querySelector("img");this.setSrcAttribute(e,t.dataset.src)}getViewPortIntersectionHandler(){return(t,e)=>{t.filter((t=>t.isIntersecting)).forEach((t=>{const i=t.target;this.setImageSource(i),e.unobserve(i)}))}}};var Pe={measure:function(t,e,i,n,r){let{containerElm:o,bgEffectName:a="none"}=n;const s=i.image,c=i[t],u=window?window.innerHeight||document.documentElement.clientHeight:0,h=null==o?void 0:o.dataset.mediaHeightOverrideType,d=o&&a&&"none"!==a?o:c,{width:l,height:g}=(null==r.getMediaDimensionsByEffect?void 0:r.getMediaDimensionsByEffect(a,d.offsetWidth,d.offsetHeight,u))||{width:c.offsetWidth,height:c.offsetHeight};if(!s)return;const f=Se(s);e.width=l,e.height=function(t,e){return"fixed"===e||"viewport"===e?document.documentElement.clientHeight+80:t}(g,h),e.screenHeight=u,e.imgSrc=f,e.boundingRect=c.getBoundingClientRect(),e.mediaHeightOverrideType=h},patch:function(t,e,i,n,r,o,a,c){var u;if(!Object.keys(e).length)return;const{imageData:h}=n,d=i[t],l=i.image;c&&(h.devicePixelRatio=1);const g=n.targetScale||1,m=((t,e,i)=>{if(!t.targetWidth||!t.targetHeight||!t.imageData.uri)return{uri:"",css:{},transformed:!1};const{imageData:n}=t,r=t.displayMode||s.SCALE_TO_FILL,o=Object.assign(ve(n,"upscaleMethod"),ve(t,"filters"),t.quality||n.quality),a=t.imageData.devicePixelRatio||e.devicePixelRatio,c=xe(a),u=he(r,Object.assign(ve(n,["width","height","crop","name","focalPoint"]),{id:n.uri}),{width:t.targetWidth,height:t.targetHeight,htmlTag:i||"img",pixelAspectRatio:c,alignment:t.alignType||f.CENTER},o);return u.uri=Re(u.uri,e.staticMediaUrl,e.mediaRootUrl),u})({...n,...!n.skipMeasure&&{targetWidth:(e.width||0)*g,targetHeight:(e.height||0)*g},displayMode:h.displayMode},o,"img"),p=(null==m||null==(u=m.css)?void 0:u.img)||{},_=function(t,e,i,n){const r=function(t,e){return void 0===e&&(e=1),1!==e?{...t,width:"100%",height:"100%"}:t}(e,n);if(!t)return r;const o={...r};return"fill"===i?(o.position="absolute",o.top="0"):"fit"===i&&(o.height="100%"),"fixed"===t&&(o["will-change"]="transform"),o.objectPosition&&(o.objectPosition=e.objectPosition.replace(/(center|bottom)$/,"top")),o}(e.mediaHeightOverrideType,p,h.displayMode,g);Me(l,_);const T=null==m?void 0:m.uri;d.setAttribute("data-src",T||""),d.setAttribute("data-has-ssr-src",""),n.isLQIP&&n.lqipTransition&&!("transitioned"in d.dataset)&&(d.dataset.transitioned="",l.complete?l.onload=function(){l.dataset.loadDone=""}:l.onload=function(){l.complete?l.dataset.loadDone="":l.onload=function(){l.dataset.loadDone=""}}),a&&r.imageLoader.loadImage(d,{screenHeight:e.screenHeight,boundingRect:e.boundingRect})}};var Fe=function(t,e){return t.imageLoader||(t.imageLoader=new Ge(t.mutationService)),class extends HTMLElement{constructor(){super(),Ae()(this,"childListObserver",void 0),Ae()(this,"timeoutId",void 0),this.childListObserver=null,this.timeoutId=null}attributeChangedCallback(t,e){e&&this.reLayout()}connectedCallback(){this.observeResize(),this.reLayout()}disconnectedCallback(){this.unobserveResize(),t.imageLoader.onImageDisconnected(this),this.unobserveChildren()}static get observedAttributes(){return["data-image-info"]}reLayout(){const i={},n={},r=this.getAttribute("id"),o=JSON.parse(this.dataset.imageInfo||""),{bgEffectName:a}=this.dataset;i[r]=this,o.containerId&&(i[o.containerId]=document.getElementById(""+o.containerId)),i.image=this.querySelector("img");const s=o.containerId?i[o.containerId]:void 0;if(!i.image){const t=this;return void this.observeChildren(t)}this.unobserveChildren(),this.observeChildren(this),t.mutationService.measure((()=>{Pe.measure(r,n,i,{containerElm:s,bgEffectName:a},t)}));const c=s=>{t.mutationService.mutate((()=>{Pe.patch(r,n,i,o,t,e,s,a)}))};!Se(i.image)||this.dataset.hasSsrSrc?c(!0):this.debounceImageLoad(c)}debounceImageLoad(t){clearTimeout(this.timeoutId),this.timeoutId=setTimeout((()=>{t(!0)}),250),t(!1)}observeResize(){var e;null==(e=t.resizeService)||e.observe(this)}unobserveResize(){var e;null==(e=t.resizeService)||e.unobserve(this)}observeChildren(t){this.childListObserver||(this.childListObserver=new window.MutationObserver((()=>this.reLayout()))),this.childListObserver.observe(t,{childList:!0})}unobserveChildren(){this.childListObserver&&(this.childListObserver.disconnect(),this.childListObserver=null)}}};function ke(t,e){if(void 0===t&&(t={}),void 0===e&&(e=null),"undefined"==typeof window)return;const i={staticMediaUrl:"https://static.wixstatic.com/media",mediaRootUrl:"https://static.wixstatic.com",experiments:{},devicePixelRatio:/iemobile/i.test(navigator.userAgent)?Math.round(window.screen.availWidth/(window.screen.width||window.document.documentElement.clientWidth)):window.devicePixelRatio},n=function(t){const e="wow-image";if(void 0===(t=t||window).customElements.get(e)){let i;return t.ResizeObserver&&(i=new t.ResizeObserver((t=>{t.map((t=>t.target.reLayout()))}))),function(n,r){const o=Fe({resizeService:i,...n},r);t.customElements.define(e,o)}}}(e);n&&n({mutationService:we(),...t},i)}}(),r}()})); | ||
//# sourceMappingURL=image.umd.min.js.map |
{ | ||
"image.css": "https://static.parastorage.com/services/image/2b2ee65a59110c69137a6b4f57e931b484c75be5b665c0d1f91d8c57/image.css", | ||
"image.js": "https://static.parastorage.com/services/image/2b2ee65a59110c69137a6b4f57e931b484c75be5b665c0d1f91d8c57/image.umd.js" | ||
"image.css": "https://static.parastorage.com/services/image/943663273a5fc482f54db1efa88bbf5186662fa3a55f298e197e48b4/image.css", | ||
"image.js": "https://static.parastorage.com/services/image/943663273a5fc482f54db1efa88bbf5186662fa3a55f298e197e48b4/image.umd.js" | ||
} |
{ | ||
"image.css": "https://static.parastorage.com/services/image/2b2ee65a59110c69137a6b4f57e931b484c75be5b665c0d1f91d8c57/image.min.css", | ||
"image.js": "https://static.parastorage.com/services/image/2b2ee65a59110c69137a6b4f57e931b484c75be5b665c0d1f91d8c57/image.umd.min.js" | ||
"image.css": "https://static.parastorage.com/services/image/943663273a5fc482f54db1efa88bbf5186662fa3a55f298e197e48b4/image.min.css", | ||
"image.js": "https://static.parastorage.com/services/image/943663273a5fc482f54db1efa88bbf5186662fa3a55f298e197e48b4/image.umd.min.js" | ||
} |
{ | ||
"name": "@wix/image", | ||
"description": "Wix base image component", | ||
"version": "1.90.0", | ||
"version": "1.91.0", | ||
"license": "MIT", | ||
@@ -100,3 +100,3 @@ "author": { | ||
}, | ||
"falconPackageHash": "819c365b238436de74e551bb365553ae5c3530f347e143ce9b915f61" | ||
"falconPackageHash": "1ce86189e100174929bd7fcf2a67ac402e6fd3b9b7392c6efce5d58e" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
794791