Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wix/image

Package Overview
Dependencies
Maintainers
31
Versions
335
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wix/image - npm Package Compare versions

Comparing version 1.14.0 to 1.15.0

2

dist/statics/image.umd.min.js

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React")):"function"==typeof define&&define.amd?define("image",["React"],t):"object"==typeof exports?exports.image=t(require("React")):e.image=t(e.React)}("undefined"!=typeof self?self:this,(function(e){return function(){var t={72:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},85:function(e,t,i){var r=i(699),n=i(704);function a(t,i,o){return n()?(e.exports=a=Reflect.construct,e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=a=function(e,t,i){var n=[null];n.push.apply(n,t);var a=new(Function.bind.apply(e,n));return i&&r(a,i.prototype),a},e.exports.default=e.exports,e.exports.__esModule=!0),a.apply(null,arguments)}e.exports=a,e.exports.default=e.exports,e.exports.__esModule=!0},723:function(e){function t(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e},e.exports.default=e.exports,e.exports.__esModule=!0},245:function(e){e.exports=function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e},e.exports.default=e.exports,e.exports.__esModule=!0},727:function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,t.apply(this,arguments)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},712:function(e){function t(i){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,t(i)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},785:function(e,t,i){var r=i(699);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},193:function(e){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")},e.exports.default=e.exports,e.exports.__esModule=!0},704:function(e){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.default=e.exports,e.exports.__esModule=!0},699:function(e){function t(i,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,t(i,r)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},586:function(e,t,i){var r=i(712),n=i(699),a=i(193),o=i(85);function c(t){var i="function"==typeof Map?new Map:void 0;return e.exports=c=function(e){if(null===e||!a(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==i){if(i.has(e))return i.get(e);i.set(e,t)}function t(){return o(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n(t,e)},e.exports.default=e.exports,e.exports.__esModule=!0,c(t)}e.exports=c,e.exports.default=e.exports,e.exports.__esModule=!0},114:function(e,t,i){var r;!function(t){"use strict";var n=function(){},a=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(e){return setTimeout(e,16)};function o(){var e=this;e.reads=[],e.writes=[],e.raf=a.bind(t),n("initialized",e)}function c(e){e.scheduled||(e.scheduled=!0,e.raf(s.bind(null,e)),n("flush scheduled"))}function s(e){n("flush");var t,i=e.writes,r=e.reads;try{n("flushing reads",r.length),e.runTasks(r),n("flushing writes",i.length),e.runTasks(i)}catch(e){t=e}if(e.scheduled=!1,(r.length||i.length)&&c(e),t){if(n("task errored",t.message),!e.catch)throw t;e.catch(t)}}function u(e,t){var i=e.indexOf(t);return!!~i&&!!e.splice(i,1)}o.prototype={constructor:o,runTasks:function(e){var t;for(n("run tasks");t=e.shift();)t()},measure:function(e,t){n("measure");var i=t?e.bind(t):e;return this.reads.push(i),c(this),i},mutate:function(e,t){n("mutate");var i=t?e.bind(t):e;return this.writes.push(i),c(this),i},clear:function(e){return n("clear",e),u(this.reads,e)||u(this.writes,e)},extend:function(e){if(n("extend",e),"object"!=typeof e)throw new Error("expected object");var t=Object.create(this);return function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])}(t,e),t.fastdom=this,t.initialize&&t.initialize(),t},catch:null};var h=t.fastdom=t.fastdom||new o;void 0===(r=function(){return h}.call(h,i,h,e))||(e.exports=r)}("undefined"!=typeof window?window:this)},24:function(t){"use strict";t.exports=e}},i={};function r(e){var n=i[e];if(void 0!==n)return n.exports;var a=i[e]={exports:{}};return t[e].call(a.exports,a,a.exports,r),a.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return function(){"use strict";r.r(n),r.d(n,{Image:function(){return Ot},imageKit:function(){return e},initCustomElement:function(){return Wt}});var e={};r.r(e),r.d(e,{STATIC_MEDIA_URL:function(){return bt},alignTypes:function(){return p},fittingTypes:function(){return s},getData:function(){return gt},getPlaceholder:function(){return ft},htmlTag:function(){return T},populateGlobalFeatureSupport:function(){return V},sdk:function(){return It},upscaleMethods:function(){return v}});var t,i=r(727),a=r.n(i),o=r(24),c="_2zC5u",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"},u="fit",h="fill",d="fill_focal",l="crop",f="legacy_crop",g="legacy_fill",p={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"},_=((t={})[p.CENTER]={x:.5,y:.5},t[p.TOP_LEFT]={x:0,y:0},t[p.TOP_RIGHT]={x:1,y:.5},t[p.TOP]={x:.5,y:0},t[p.BOTTOM_LEFT]={x:0,y:1},t[p.BOTTOM_RIGHT]={x:1,y:1},t[p.BOTTOM]={x:.5,y:1},t[p.RIGHT]={x:1,y:.5},t[p.LEFT]={x:0,y:.5},t),m={center:"c",top:"t",top_left:"tl",top_right:"tr",bottom:"b",bottom_left:"bl",bottom_right:"br",left:"l",right:"r"},T={BG:"bg",IMG:"img",SVG:"svg"},v={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:{}}},w=25e6,O=[1.5,2,4],y={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}},x="HIGH",A="MEDIUM",M="LOW",R="TINY",S="contrast",C="brightness",G="saturation",P="hue",F="blur",N="jpg",k="jpeg",H="jpe",Y="png",j="webp",B="wix_ico_mp",U="wix_mp",z="gif",D="unrecognized",q={isMobile:!1};function V(){if("undefined"!=typeof window&&"undefined"!=typeof navigator){var e=window.matchMedia&&window.matchMedia("(max-width: 767px)").matches,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);i=e&&t,q["isMobile"]=i}var i}var Z=function(){return Z=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},Z.apply(this,arguments)};Object.create;function W(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}Object.create;function $(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var n=i[i.length-1]||{},a=[e[0]];return t.forEach((function(t,r){var o=Number.isInteger(t)?i[t]:n[t];a.push(o,e[r+1])})),a.join("")}}function Q(e){return e[e.length-1]}var J=[Y,k,N,H,B,U],X=[k,N,H];function K(e,t,i){return i&&t&&!(!(r=t.id)||!r.trim()||"none"===r.toLowerCase())&&Object.values(s).includes(e);var r}function ee(e){return function(e){return J.includes(ae(e))}(e)&&!/(^https?)|(^data)|(^\/\/)/.test(e)}var te,ie=["/","\\","?","<",">","|","\u201c",":",'"'].map(encodeURIComponent),re=["\\.","\\*"];function ne(e){return function(e){return X.includes(ae(e))}(e)?N:function(e){return ae(e)===Y}(e)?Y:function(e){return ae(e)===j}(e)?j:D}function ae(e){return(/[.]([^.]+)$/.exec(e)&&/[.]([^.]+)$/.exec(e)[1]||"").toLowerCase()}function oe(e,t,i,r,n){var a;return a=n===h?function(e,t,i,r){return Math.max(i/e,r/t)}(e,t,i,r):n===u?function(e,t,i,r){return Math.min(i/e,r/t)}(e,t,i,r):1,a}function ce(e,t,i,r,n,a){var o=function(e,t,i,r,n){var a,o=i,c=r;if(a=oe(e,t,i,r,n),n===u&&(o=e*a,c=t*a),o&&c&&o*c>w){var s=Math.sqrt(w/(o*c));a=oe(e,t,o*=s,c*=s,n)}return{scaleFactor:a,width:o,height:c}}(e=e||r.width,t=t||r.height,r.width*n,r.height*n,i),c=o.scaleFactor;return function(e,t,i,r,n,a,o){var c=function(e,t,i,r){if("auto"===r)return function(e,t){var i=de(e,t);return{optimizedScaleFactor:y[i].maxUpscale,upscaleMethodValue:I,forceUSM:!1}}(e,t);if("super"===r)return function(e){return{optimizedScaleFactor:Q(O),upscaleMethodValue:b,forceUSM:!(O.includes(e)||e>Q(O))}}(i);return function(e,t){var i=de(e,t);return{optimizedScaleFactor:y[i].maxUpscale,upscaleMethodValue:I,forceUSM:!1}}(e,t)}(e,t,a,n),s=c.optimizedScaleFactor,d=c.upscaleMethodValue,l=c.forceUSM,f=i,g=r;if(a<=s)return{width:f,height:g,scaleFactor:a,upscaleMethodValue:d,forceUSM:l,cssUpscaleNeeded:!1};switch(o){case h:f=i*(s/a),g=r*(s/a);break;case u:f=e*s,g=t*s}return{width:f,height:g,scaleFactor:s,upscaleMethodValue:d,forceUSM:l,cssUpscaleNeeded:!0}}(e,t,o.width,o.height,a,c,i)}function se(e,t,i,r){var n=he(i)||function(e){return void 0===e&&(e=p.CENTER),_[e]}(r);return{x:Math.max(0,Math.min(e.width-t.width,n.x*e.width-t.width/2)),y:Math.max(0,Math.min(e.height-t.height,n.y*e.height-t.height/2)),width:Math.min(e.width,t.width),height:Math.min(e.height,t.height)}}function ue(e){return e.alignment&&m[e.alignment]||m[p.CENTER]}function he(e){var t;return!e||"number"!=typeof e.x||isNaN(e.x)||"number"!=typeof e.y||isNaN(e.y)||(t={x:le(Math.max(0,Math.min(100,e.x))/100,2),y:le(Math.max(0,Math.min(100,e.y))/100,2)}),t}function de(e,t){var i=e*t;return i>y[x].size?x:i>y[A].size?A:i>y[M].size?M:R}function le(e,t){var i=Math.pow(10,t||0);return(e*i/i).toFixed(t)}function fe(e){return e&&e.upscaleMethod&&v[e.upscaleMethod.toUpperCase()]||v.AUTO}function ge(e,t){var i={css:{container:{}}},r=i.css;switch(e.fittingType){case s.ORIGINAL_SIZE:case s.LEGACY_ORIGINAL_SIZE:case s.LEGACY_STRIP_ORIGINAL_SIZE:r.container.backgroundSize="auto",r.container.backgroundRepeat="no-repeat";break;case s.SCALE_TO_FIT:case s.LEGACY_STRIP_SCALE_TO_FIT:r.container.backgroundSize="contain",r.container.backgroundRepeat="no-repeat";break;case s.STRETCH:r.container.backgroundSize="100% 100%",r.container.backgroundRepeat="no-repeat";break;case s.SCALE_TO_FILL:case s.LEGACY_STRIP_SCALE_TO_FILL:r.container.backgroundSize="cover",r.container.backgroundRepeat="no-repeat";break;case s.TILE_HORIZONTAL:case s.LEGACY_STRIP_TILE_HORIZONTAL:r.container.backgroundSize="auto",r.container.backgroundRepeat="repeat-x";break;case s.TILE_VERTICAL:case s.LEGACY_STRIP_TILE_VERTICAL:r.container.backgroundSize="auto",r.container.backgroundRepeat="repeat-y";break;case s.TILE:case s.LEGACY_STRIP_TILE:r.container.backgroundSize="auto",r.container.backgroundRepeat="repeat";break;case s.LEGACY_STRIP_FIT_AND_TILE:r.container.backgroundSize="contain",r.container.backgroundRepeat="repeat";break;case s.FIT_AND_TILE:case s.LEGACY_BG_FIT_AND_TILE:r.container.backgroundSize="auto",r.container.backgroundRepeat="repeat";break;case s.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:r.container.backgroundSize="auto",r.container.backgroundRepeat="repeat-x";break;case s.LEGACY_BG_FIT_AND_TILE_VERTICAL:r.container.backgroundSize="auto",r.container.backgroundRepeat="repeat-y";break;case s.LEGACY_BG_NORMAL:r.container.backgroundSize="auto",r.container.backgroundRepeat="no-repeat"}switch(t.alignment){case p.CENTER:r.container.backgroundPosition="center center";break;case p.LEFT:r.container.backgroundPosition="left center";break;case p.RIGHT:r.container.backgroundPosition="right center";break;case p.TOP:r.container.backgroundPosition="center top";break;case p.BOTTOM:r.container.backgroundPosition="center bottom";break;case p.TOP_RIGHT:r.container.backgroundPosition="right top";break;case p.TOP_LEFT:r.container.backgroundPosition="left top";break;case p.BOTTOM_RIGHT:r.container.backgroundPosition="right bottom";break;case p.BOTTOM_LEFT:r.container.backgroundPosition="left bottom"}return i}var pe,_e=((te={})[p.CENTER]="center",te[p.TOP]="top",te[p.TOP_LEFT]="top left",te[p.TOP_RIGHT]="top right",te[p.BOTTOM]="bottom",te[p.BOTTOM_LEFT]="bottom left",te[p.BOTTOM_RIGHT]="bottom right",te[p.LEFT]="left",te[p.RIGHT]="right",te),me={position:"absolute",top:"auto",right:"auto",bottom:"auto",left:"auto"};function Te(e,t){var i={css:{container:{},img:{}}},r=i.css,n=e.fittingType,a=t.alignment;switch(r.container.position="relative",n){case s.ORIGINAL_SIZE:case s.LEGACY_ORIGINAL_SIZE:e.parts&&e.parts.length?(r.img.width=e.parts[0].width,r.img.height=e.parts[0].height):(r.img.width=e.src.width,r.img.height=e.src.height);break;case s.SCALE_TO_FIT:case s.LEGACY_FIT_WIDTH:case s.LEGACY_FIT_HEIGHT:case s.LEGACY_FULL:r.img.width=t.width,r.img.height=t.height,r.img.objectFit="contain",r.img.objectPosition=_e[a]||"unset";break;case s.LEGACY_BG_NORMAL:r.img.width="100%",r.img.height="100%",r.img.objectFit="none",r.img.objectPosition=_e[a]||"unset";break;case s.STRETCH:r.img.width=t.width,r.img.height=t.height,r.img.objectFit="fill";break;case s.SCALE_TO_FILL:r.img.width=t.width,r.img.height=t.height,r.img.objectFit="cover"}if("number"==typeof r.img.width&&"number"==typeof r.img.height&&(r.img.width!==t.width||r.img.height!==t.height)){var o=Math.round((t.height-r.img.height)/2),c=Math.round((t.width-r.img.width)/2);Object.assign(r.img,me,function(e,t,i){var r;return(r={})[p.TOP_LEFT]={top:0,left:0},r[p.TOP_RIGHT]={top:0,right:0},r[p.TOP]={top:0,left:t},r[p.BOTTOM_LEFT]={top:0,left:0},r[p.BOTTOM_RIGHT]={bottom:0,right:0},r[p.BOTTOM]={bottom:0,left:t},r[p.RIGHT]={top:e,right:0},r[p.LEFT]={top:e,left:0},r[p.CENTER]={width:i.width,height:i.height,objectFit:"none"},r}(o,c,t)[a])}return i}function ve(e,t){var i,r,n,a,o,c,u={css:{container:{}},attr:{container:{},img:{}}},d=u.css,l=u.attr,f=e.fittingType,g=t.alignment,_=e.src,m=_.width,T=_.height;switch(d.container.position="relative",f){case s.ORIGINAL_SIZE:case s.LEGACY_ORIGINAL_SIZE:case s.TILE:e.parts&&e.parts.length?(l.img.width=e.parts[0].width,l.img.height=e.parts[0].height):(l.img.width=m,l.img.height=T),l.img.preserveAspectRatio="xMidYMid slice";break;case s.SCALE_TO_FIT:case s.LEGACY_FIT_WIDTH:case s.LEGACY_FIT_HEIGHT:case s.LEGACY_FULL:l.img.width="100%",l.img.height="100%",l.img.transform="",l.img.preserveAspectRatio="";break;case s.STRETCH:l.img.width=t.width,l.img.height=t.height,l.img.x=0,l.img.y=0,l.img.transform="",l.img.preserveAspectRatio="none";break;case s.SCALE_TO_FILL:ee(e.src.id)?(l.img.width=t.width,l.img.height=t.height):(r=m,n=T,a=t.width,o=t.height,c=oe(r,n,a,o,h),i={width:Math.round(r*c),height:Math.round(n*c)},l.img.width=i.width,l.img.height=i.height),l.img.x=0,l.img.y=0,l.img.transform="",l.img.preserveAspectRatio="xMidYMid slice"}if("number"==typeof l.img.width&&"number"==typeof l.img.height&&(l.img.width!==t.width||l.img.height!==t.height)){var v=0,I=0,b=void 0,L=void 0;f===s.TILE?(b=t.width%l.img.width,L=t.height%l.img.height):(b=t.width-l.img.width,L=t.height-l.img.height);var E=Math.round(b/2),w=Math.round(L/2);switch(g){case p.TOP_LEFT:v=0,I=0;break;case p.TOP:v=E,I=0;break;case p.TOP_RIGHT:v=b,I=0;break;case p.LEFT:v=0,I=w;break;case p.CENTER:v=E,I=w;break;case p.RIGHT:v=b,I=w;break;case p.BOTTOM_LEFT:v=0,I=L;break;case p.BOTTOM:v=E,I=L;break;case p.BOTTOM_RIGHT:v=b,I=L}l.img.x=v,l.img.y=I}return l.container.width=t.width,l.container.height=t.height,l.container.viewBox=[0,0,t.width,t.height].join(" "),u}function Ie(){return q["isMobile"]}function be(e,t,i){var r,n,a,o,c;switch(t.crop&&(n=t,a=t.crop,o=Math.max(0,Math.min(n.width,a.x+a.width)-Math.max(0,a.x)),c=Math.max(0,Math.min(n.height,a.y+a.height)-Math.max(0,a.y)),(r=o&&c&&(n.width!==o||n.height!==c)?{x:Math.max(0,a.x),y:Math.max(0,a.y),width:o,height:c}:null)&&(e.src.width=r.width,e.src.height=r.height,e.src.isCropped=!0,e.parts.push(Ee(r)))),e.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:e.parts.push(Le(e,i));break;case s.SCALE_TO_FILL:e.parts.push(function(e,t){var i=ce(e.src.width,e.src.height,h,t,e.devicePixelRatio,e.upscaleMethod),r=he(e.focalPoint);return{transformType:r?d:h,width:Math.round(i.width),height:Math.round(i.height),alignment:ue(t),focalPointX:r&&r.x,focalPointY:r&&r.y,upscale:i.scaleFactor>1,forceUSM:i.forceUSM,scaleFactor:i.scaleFactor,cssUpscaleNeeded:i.cssUpscaleNeeded,upscaleMethodValue:i.upscaleMethodValue}}(e,i));break;case s.STRETCH:e.parts.push(function(e,t){var i=oe(e.src.width,e.src.height,t.width,t.height,h),r=Z({},t);return r.width=e.src.width*i,r.height=e.src.height*i,Le(e,r)}(e,i));break;case s.TILE_HORIZONTAL:case s.TILE_VERTICAL:case s.TILE:case s.LEGACY_ORIGINAL_SIZE:case s.ORIGINAL_SIZE:r=se(e.src,i,e.focalPoint,i.alignment),e.src.isCropped?(Object.assign(e.parts[0],r),e.src.width=r.width,e.src.height=r.height):e.parts.push(Ee(r));break;case s.LEGACY_STRIP_TILE_HORIZONTAL:case s.LEGACY_STRIP_TILE_VERTICAL:case s.LEGACY_STRIP_TILE:case s.LEGACY_STRIP_ORIGINAL_SIZE:e.parts.push(function(e){return{transformType:f,width:Math.round(e.width),height:Math.round(e.height),alignment:ue(e),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}(i));break;case s.LEGACY_STRIP_SCALE_TO_FIT:case s.LEGACY_STRIP_FIT_AND_TILE:e.parts.push(function(e){return{transformType:u,width:Math.round(e.width),height:Math.round(e.height),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(i));break;case s.LEGACY_STRIP_SCALE_TO_FILL:e.parts.push(function(e){return{transformType:g,width:Math.round(e.width),height:Math.round(e.height),alignment:ue(e),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(i))}}function Le(e,t){var i=ce(e.src.width,e.src.height,u,t,e.devicePixelRatio,e.upscaleMethod);return{transformType:h,width:Math.round(i.width),height:Math.round(i.height),alignment:m.center,upscale:i.scaleFactor>1,forceUSM:i.forceUSM,scaleFactor:i.scaleFactor,cssUpscaleNeeded:i.cssUpscaleNeeded,upscaleMethodValue:i.upscaleMethodValue}}function Ee(e){return{transformType:l,x:Math.round(e.x),y:Math.round(e.y),width:Math.round(e.width),height:Math.round(e.height),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}function we(e,t){var i;t=t||{},e.quality=function(e,t){var i=e.fileType===Y;if(e.fileType===N||i){var r=Q(e.parts),n=(o=r.width,c=r.height,y[de(o,c)].quality),a=t.quality&&t.quality>=5&&t.quality<=90?t.quality:n;return a=i?a+5:a}var o,c;return 0}(e,t),e.progressive=function(e){return!1!==e.progressive}(t),e.watermark=function(e){return e.watermark}(t),e.autoEncode=null===(i=t.autoEncode)||void 0===i||i,e.unsharpMask=function(e,t){var i,r,n;if(a=t.unsharpMask,o="number"==typeof(a=a||{}).radius&&!isNaN(a.radius)&&a.radius>=.1&&a.radius<=500,c="number"==typeof a.amount&&!isNaN(a.amount)&&a.amount>=0&&a.amount<=10,s="number"==typeof a.threshold&&!isNaN(a.threshold)&&a.threshold>=0&&a.threshold<=255,o&&c&&s)return{radius:le(null===(i=t.unsharpMask)||void 0===i?void 0:i.radius,2),amount:le(null===(r=t.unsharpMask)||void 0===r?void 0:r.amount,2),threshold:le(null===(n=t.unsharpMask)||void 0===n?void 0:n.threshold,2)};if(!function(e){return"number"==typeof(e=e||{}).radius&&!isNaN(e.radius)&&0===e.radius&&"number"==typeof e.amount&&!isNaN(e.amount)&&0===e.amount&&"number"==typeof e.threshold&&!isNaN(e.threshold)&&0===e.threshold}(t.unsharpMask)&&function(e){var t=Q(e.parts);return!(t.scaleFactor>=1)||t.forceUSM}(e))return L;var a,o,c,s;return}(e,t),e.filters=function(e){var t=e.filters||{},i={};Oe(t[S],-100,100)&&(i[S]=t[S]);Oe(t[C],-100,100)&&(i[C]=t[C]);Oe(t[G],-100,100)&&(i[G]=t[G]);Oe(t[P],-180,180)&&(i[P]=t[P]);Oe(t[F],0,100)&&(i[F]=t[F]);return i}(t)}function Oe(e,t,i){return"number"==typeof e&&!isNaN(e)&&0!==e&&e>=t&&e<=i}function ye(e,t,i,r){var n=function(e){var t;return null!==(t=null==e?void 0:e.isSEOBot)&&void 0!==t&&t}(r),a=ne(t.id),o=function(e,t){var i=/\.([^.]*)$/,r=new RegExp("("+ie.concat(re).join("|")+")","g");if(t&&t.length){var n=t,a=t.match(i);return a&&J.includes(a[1])&&(n=t.replace(i,"")),encodeURIComponent(n).replace(r,"_")}var o=e.match(/\/(.*?)$/);return(o?o[1]:e).replace(i,"")}(t.id,t.name),c=n?1:function(e){return Math.min(e.pixelAspectRatio||1,2)}(i),s=ae(t.id),u={fileName:o,fileExtension:s,fileType:a,fittingType:e,preferredExtension:s,src:{id:t.id,width:t.width,height:t.height,isCropped:!1},focalPoint:{x:t.focalPoint&&t.focalPoint.x,y:t.focalPoint&&t.focalPoint.y},parts:[],devicePixelRatio:c,quality:0,upscaleMethod:fe(r),progressive:!0,watermark:"",unsharpMask:{},filters:{}};return ee(t.id)&&(be(u,t,i),we(u,r)),u}function xe(e,t,i){var r=Z({},i),n=Ie();switch(e){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:var a=n?1e3:1920,o=n?1e3:1920;r.width=Math.min(a,t.width),r.height=Math.min(o,Math.round(r.width/(t.width/t.height))),r.pixelAspectRatio=1}return r}var Ae,Me,Re,Se,Ce,Ge,Pe,Fe,Ne,ke,He,Ye,je,Be,Ue,ze,De,qe,Ve=$(Ae||(Ae=W(["fit/w_",",h_",""],["fit/w_",",h_",""])),"width","height"),Ze=$(Me||(Me=W(["fill/w_",",h_",",al_",""],["fill/w_",",h_",",al_",""])),"width","height","alignment"),We=$(Re||(Re=W(["fill/w_",",h_",",fp_","_",""],["fill/w_",",h_",",fp_","_",""])),"width","height","focalPointX","focalPointY"),$e=$(Se||(Se=W(["crop/x_",",y_",",w_",",h_",""],["crop/x_",",y_",",w_",",h_",""])),"x","y","width","height"),Qe=$(Ce||(Ce=W(["crop/w_",",h_",",al_",""],["crop/w_",",h_",",al_",""])),"width","height","alignment"),Je=$(Ge||(Ge=W(["fill/w_",",h_",",al_",""],["fill/w_",",h_",",al_",""])),"width","height","alignment"),Xe=$(Pe||(Pe=W([",lg_",""],[",lg_",""])),"upscaleMethodValue"),Ke=$(Fe||(Fe=W([",q_",""],[",q_",""])),"quality"),et=$(Ne||(Ne=W([",usm_","_","_",""],[",usm_","_","_",""])),"radius","amount","threshold"),tt=$(ke||(ke=W([",bl"],[",bl"]))),it=$(He||(He=W([",wm_",""],[",wm_",""])),"watermark"),rt=((pe={})[S]=$(Ye||(Ye=W([",con_",""],[",con_",""])),"contrast"),pe[C]=$(je||(je=W([",br_",""],[",br_",""])),"brightness"),pe[G]=$(Be||(Be=W([",sat_",""],[",sat_",""])),"saturation"),pe[P]=$(Ue||(Ue=W([",hue_",""],[",hue_",""])),"hue"),pe[F]=$(ze||(ze=W([",blur_",""],[",blur_",""])),"blur"),pe),nt=$(De||(De=W([",enc_auto"],[",enc_auto"])));function at(e,t,i,r,n){return void 0===r&&(r={}),ee(t.id)?function(e){var t=[];e.parts.forEach((function(e){switch(e.transformType){case l:t.push($e(e));break;case f:t.push(Qe(e));break;case g:var i=Je(e);e.upscale&&(i+=Xe(e)),t.push(i);break;case u:var r=Ve(e);e.upscale&&(r+=Xe(e)),t.push(r);break;case h:var n=Ze(e);e.upscale&&(n+=Xe(e)),t.push(n);break;case d:var a=We(e);e.upscale&&(a+=Xe(e)),t.push(a)}}));var i=t.join("/");return e.quality&&(i+=Ke(e)),e.unsharpMask&&(i+=et(e.unsharpMask)),e.progressive||(i+=tt(e)),e.watermark&&(i+=it(e)),e.filters&&(i+=Object.keys(e.filters).map((function(t){return rt[t](e.filters)})).join("")),e.autoEncode&&e.fileType!==z&&(i+=nt(e)),e.src.id+"/v1/"+i+"/"+e.fileName+"."+e.preferredExtension}(n=n||ye(e,t,i,r)):t.id}var ot=((qe={})[p.CENTER]="50% 50%",qe[p.TOP_LEFT]="0% 0%",qe[p.TOP_RIGHT]="100% 0%",qe[p.TOP]="50% 0%",qe[p.BOTTOM_LEFT]="0% 100%",qe[p.BOTTOM_RIGHT]="100% 100%",qe[p.BOTTOM]="50% 100%",qe[p.RIGHT]="100% 50%",qe[p.LEFT]="0% 50%",qe),ct=Object.entries(ot).reduce((function(e,t){var i=t[0];return e[t[1]]=i,e}),{}),st=[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],ut=[s.LEGACY_ORIGINAL_SIZE,s.ORIGINAL_SIZE,s.LEGACY_BG_NORMAL];function ht(e,t,i){var r=i.width,n=i.height;return e===s.TILE&&t.width>r&&t.height>n}function dt(e,t,i,r){void 0===r&&(r="center");var n,a,o={img:{},container:{}};if(e===s.SCALE_TO_FILL){var c=t.focalPoint&&(n=t.focalPoint,a=n.x+"% "+n.y+"%",ct[a]||""),u=c||r;t.focalPoint&&!c?o.img={objectPosition:lt(t,i,t.focalPoint)}:o.img={objectPosition:ot[u]}}else[s.LEGACY_ORIGINAL_SIZE,s.ORIGINAL_SIZE].includes(e)?o.img={objectFit:"none",top:"auto",left:"auto",right:"auto",bottom:"auto"}:st.includes(e)&&(o.container={backgroundSize:t.width+"px "+t.height+"px"});return o}function lt(e,t,i){var r=e.width,n=e.height,a=t.width,o=t.height,c=i.x,s=i.y;if(!a||!o)return c+"% "+s+"%";var u=Math.max(a/r,o/n),h=r*u,d=n*u,l=Math.max(0,Math.min(h-a,h*(c/100)-a/2)),f=Math.max(0,Math.min(d-o,d*(s/100)-o/2));return(l&&Math.floor(l/(h-a)*100))+"% "+(f&&Math.floor(f/(d-o)*100))+"%"}function ft(e,t,i,r){if(void 0===r&&(r={}),!K(e,t,i))return E;var n=r.autoEncode,a=void 0===n||n,o=r.isSEOBot,c=r.shouldLoadHQImage,u=r.omitBlur;if(c)return gt(e,t,i,Z(Z({},r),{autoEncode:a,useSrcset:!0}));var h=Z(Z({},i),function(e,t){var i=t.width,r=t.height;if(!i||!r){var n=i||Math.min(980,e.width),a=n/e.width;return{width:n,height:r||e.height*a}}return{width:i,height:r}}(t,i)),d=i.alignment,l=i.htmlTag,f=ht(e,t,h),g=function(e,t,i,r){var n=i.width,a=i.height;if(void 0===r&&(r=!1),r)return{width:n,height:a};var o=!ut.includes(e),c=ht(e,t,{width:n,height:a}),s=!c&&st.includes(e),u=s?t.width:n,h=s?t.height:a,d=o?function(e){return e>900?.25:e>500?.3:e>200?.4:1}(u):1;return{width:c?1920:u*d,height:h*d}}(e,t,h,o),p=u?0:function(e,t,i){return i?0:st.includes(t)?1:e>200?2:3}(h.width,e,o),_=function(e,t){var i=st.includes(e)&&!t;return e===s.SCALE_TO_FILL||i?s.SCALE_TO_FIT:e}(e,f),m=dt(e,t,i,d),T=gt(_,t,Z(Z({},g),{alignment:d,htmlTag:l}),{autoEncode:a,filters:p?{blur:p}:{}}).uri,v=gt(e,t,Z(Z({},h),{alignment:d,htmlTag:l}),{}),I=v.attr,b=void 0===I?{}:I,L=v.css;return L.img=L.img||{},L.container=L.container||{},Object.assign(L.img,m.img),Object.assign(L.container,m.container),{uri:T,css:L,attr:b}}function gt(e,t,i,r){var n={};if(K(e,t,i)){var a=xe(e,t,i),o=ye(e,t,a,r);n.uri=at(e,t,a,r,o),(null==r?void 0:r.useSrcset)&&(n.srcset=function(e,t,i,r,n){var a=i.pixelAspectRatio||1;return{dpr:[(1===a?n.uri:at(e,t,Z(Z({},i),{pixelAspectRatio:1}),r))+" 1x",(2===a?n.uri:at(e,t,Z(Z({},i),{pixelAspectRatio:2}),r))+" 2x"]}}(e,t,a,r,n)),Object.assign(n,function(e,t){return(t.htmlTag===T.BG?ge:t.htmlTag===T.SVG?ve:Te)(e,t)}(o,a))}else n=E;return n}function pt(e,t,i,r){if(K(e,t,i)){var n=xe(e,t,i);return{uri:at(e,t,n,r||{},ye(e,t,n,r))}}return E}var _t="https://static.wixstatic.com/media/",mt=/^media\//i,Tt="undefined"!=typeof window?window.devicePixelRatio:1,vt=function(e,t){var i=t&&t.baseHostURL;return i?""+i+e:function(e){return mt.test(e)?"https://static.wixstatic.com/"+e:""+_t+e}(e)};V(),V();var It={getScaleToFitImageURL:function(e,t,i,r,n,a){var o=pt(s.SCALE_TO_FIT,{id:e,width:t,height:i,name:a&&a.name},{width:r,height:n,htmlTag:T.IMG,alignment:p.CENTER,pixelAspectRatio:Tt},a);return vt(o.uri,a)},getScaleToFillImageURL:function(e,t,i,r,n,a){var o=pt(s.SCALE_TO_FILL,{id:e,width:t,height:i,name:a&&a.name,focalPoint:{x:a&&a.focalPoint&&a.focalPoint.x,y:a&&a.focalPoint&&a.focalPoint.y}},{width:r,height:n,htmlTag:T.IMG,alignment:p.CENTER,pixelAspectRatio:Tt},a);return vt(o.uri,a)},getCropImageURL:function(e,t,i,r,n,a,o,c,u,h){var d=pt(s.SCALE_TO_FILL,{id:e,width:t,height:i,name:h&&h.name,crop:{x:r,y:n,width:a,height:o}},{width:c,height:u,htmlTag:T.IMG,alignment:p.CENTER,pixelAspectRatio:Tt},h);return vt(d.uri,h)}},bt=_t,Lt=bt,Et=function(e){var t=e.fittingType,i=e.src,r=e.target,n=e.options,o=ft(t,i,r,a()({},n,{autoEncode:!0}));return null!=o&&o.uri&&!o.uri.startsWith("http")&&(o.uri=""+Lt+o.uri),o},wt=/^[a-z]+:\/\//,Ot=function(e){var t,i=e.id,r=e.containerId,n=e.uri,s=e.alt,u=e.name,h=void 0===u?"":u,d=e.role,l=e.width,f=e.height,g=e.displayMode,p=e.devicePixelRatio,_=e.quality,m=e.alignType,T=e.bgEffectName,v=void 0===T?"":T,I=e.focalPoint,b=e.upscaleMethod,L=e.className,E=void 0===L?"":L,w=e.crop,O=e.imageStyles,y=void 0===O?{}:O,x=e.targetWidth,A=e.targetHeight,M=e.onLoad,R=void 0===M?function(){}:M,S=e.onError,C=void 0===S?function(){}:S,G=e.shouldUseLQIP,P=e.containerWidth,F=e.containerHeight,N=e.getPlaceholder,k=e.isInFirstFold,H=e.placeholderTransition,Y="",j="blur"===H,B=a()({containerId:r},m&&{alignType:m},{displayMode:g},x&&{targetWidth:x},A&&{targetHeight:A},{isLQIP:(N||G)&&!k,lqipTransition:H,imageData:a()({width:l,height:f,uri:n,name:h,displayMode:g},_&&{quality:_},p&&{devicePixelRatio:p},I&&{focalPoint:I},w&&{crop:w},b&&{upscaleMethod:b})}),U=o.useRef(null);if(!U.current)if(N||G){Y=k?"":"true";var z=a()({upscaleMethod:b},_||{},{shouldLoadHQImage:k,omitBlur:j});U.current=(N||Et)({fittingType:g,src:{id:n,width:l,height:f,crop:w,name:h,focalPoint:B.imageData.focalPoint},target:{width:P||200,height:F||200,alignment:m,htmlTag:"img"},options:z})}else U.current={uri:void 0,css:{img:{}},attr:{img:{},container:{}}};var D=U.current,q=null==D?void 0:D.uri,V=null==D?void 0:D.srcset,Z=null==(t=D.css)?void 0:t.img,W=c+" "+E;return k?o.createElement("div",{id:i,className:W},o.createElement("img",{src:q,alt:s,role:d,style:a()({},Z,y),onLoad:R,onError:C,srcSet:V.dpr.map((function(e){return wt.test(e)?e:""+Lt+e})).join(", ")})):o.createElement("wix-image",{id:i,class:W,"data-image-info":JSON.stringify(B),"data-bg-effect-name":v,"data-has-ssr-src":Y,"data-animate-blur":j?"":void 0},o.createElement("img",{src:q,alt:s,role:d,style:a()({},Z,y),onLoad:R,onError:C}))},yt=r(114),xt=r.n(yt),At=r(723),Mt=r.n(At),Rt=r(72),St=r.n(Rt),Ct=r(785),Gt=r.n(Ct),Pt=r(586),Ft=r.n(Pt),Nt=r(245),kt=r.n(Nt),Ht={columnCount:1,columns:1,fontWeight:1,lineHeight:1,opacity:1,zIndex:1,zoom:1},Yt=function(e,t){return(Array.isArray(t)?t:[t]).reduce((function(t,i){var r,n=e[i];return void 0!==n?Object.assign(t,((r={})[i]=n,r)):t}),{})},jt=function(e,t){return e&&t&&Object.keys(t).forEach((function(i){var r=t[i];void 0!==r?e.style[i]=function(e,t){return"number"!=typeof t||Ht[e]?t:t+"px"}(i,r):e.style.removeProperty(i)}))},Bt=function(e,t,i){if(/(^https?)|(^data)|(^blob)|(^\/\/)/.test(e))return e;var r,n=t+"/";e&&(/^micons\//.test(e)?n=i:"ico"===(null==(r=/[^.]+$/.exec(e))?void 0:r[0])&&(n=n.replace("media","ficons")));return n+e},Ut=function(e){var t=window.location.search.split("&").map((function(e){return e.split("=")})).find((function(e){return e[0].toLowerCase().includes("devicepixelratio")}));return(t?Number(t[1]):null)||e||1},zt=function(e){return e.getAttribute("src")},Dt=function(){return window&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype&&"isIntersecting"in window.IntersectionObserverEntry.prototype&&!/Edge\/18/.test(window.navigator.userAgent)},qt=function(){function e(e){kt()(this,"intersectionObserver",void 0),kt()(this,"scrollEffectsIntersectionObserver",void 0),kt()(this,"mutationService",void 0),this.mutationService=e,Dt()&&(this.intersectionObserver=new IntersectionObserver(this.getViewPortIntersectionHandler(),{rootMargin:"50% 0px"}))}var t=e.prototype;return t.isImageInViewPort=function(e,t){return e.top+e.height>=0&&e.bottom-e.height<=t},t.loadImage=function(e,t){var i=t.screenHeight,r=t.boundingRect;!this.intersectionObserver||this.isImageInViewPort(r,i)?this.setImageSource(e):(this.intersectionObserver.unobserve(e),this.intersectionObserver.observe(e))},t.onImageDisconnected=function(e){this.intersectionObserver&&this.intersectionObserver.unobserve(e)},t.setSrcAttribute=function(e,t){zt(e)!==t&&(e.src=t)},t.setImageSource=function(e){var t=e.querySelector("img");this.setSrcAttribute(t,e.dataset.src)},t.getViewPortIntersectionHandler=function(){var e=this;return function(t,i){t.filter((function(e){return e.isIntersecting})).forEach((function(t){var r=t.target;e.setImageSource(r),i.unobserve(r)}))}},e}();var Vt={measure:function(e,t,i,r,n){var a=r.containerElm,o=r.mediaHeightOverrideType,c=r.bgEffectName,s=void 0===c?"none":c,u=i.image,h=i[e],d=window?window.innerHeight||document.documentElement.clientHeight:0,l=a&&"none"!==s?a:h,f=(null==n.getMediaDimensionsByEffect?void 0:n.getMediaDimensionsByEffect(s,l.offsetWidth,l.offsetHeight,d))||{width:h.offsetWidth,height:h.offsetHeight},g=f.width,p=f.height;if(u){var _=zt(u);t.width=g,t.height=function(e,t){return"fixed"===t?document.documentElement.clientHeight+80:e}(p,o),t.screenHeight=d,t.imgSrc=_,t.boundingRect=h.getBoundingClientRect(),t.mediaHeightOverrideType=o}},patch:function(e,t,i,r,n,o,c,u){var h;if(Object.keys(t).length){var d=r.imageData,l=i[e],f=i.image;u&&(d.devicePixelRatio=1);var g=function(e,t,i){if(!e.targetWidth||!e.targetHeight||!e.imageData.uri)return{uri:"",css:{}};var r=e.imageData,n=e.displayMode||s.SCALE_TO_FILL,a=Object.assign(Yt(r,"upscaleMethod"),Yt(e,"filters"),e.quality||r.quality),o=e.imageData.devicePixelRatio||t.devicePixelRatio,c=Ut(o),u=gt(n,Object.assign(Yt(r,["width","height","crop","name","focalPoint"]),{id:r.uri}),{width:e.targetWidth,height:e.targetHeight,htmlTag:i||"img",pixelAspectRatio:c,alignment:e.alignType||p.CENTER},a);return u.uri=Bt(u.uri,t.staticMediaUrl,t.mediaRootUrl),u}(a()({targetWidth:t.width,targetHeight:t.height},r,{displayMode:d.displayMode}),o,"img"),_=(null==g||null==(h=g.css)?void 0:h.img)||{},m=function(e,t,i){if(!e)return t;var r=a()({},t);return"fill"===i?(r.position="absolute",r.top="0"):"fit"===i&&(r.height="100%"),"fixed"===e&&(r["will-change"]="transform"),r.objectPosition&&(r.objectPosition=t.objectPosition.replace(/(center|bottom)$/,"top")),r}(t.mediaHeightOverrideType,_,d.displayMode);jt(f,m);var T=null==g?void 0:g.uri;l.setAttribute("data-src",T||""),l.setAttribute("data-has-ssr-src",""),r.lqipTransition&&!("transitioned"in l.dataset)&&(l.dataset.transitioned="",r.isLQIP?f.complete?f.onload=function(){f.dataset.loadDone=""}:f.onload=function(){f.onload=function(){f.dataset.loadDone=""}}:f.dataset.loadDone=""),c&&n.imageLoader.loadImage(l,{screenHeight:t.screenHeight,boundingRect:t.boundingRect})}}};var Zt=function(e,t){return e.imageLoader||(e.imageLoader=new qt(e.mutationService)),function(i){function r(){var e;return e=i.call(this)||this,kt()(St()(e),"childListObserver",void 0),kt()(St()(e),"timeoutId",void 0),e.childListObserver=null,e.timeoutId=null,e}Gt()(r,i);var n=r.prototype;return n.attributeChangedCallback=function(e,t){t&&this.reLayout()},n.connectedCallback=function(){this.observeResize(),this.reLayout()},n.disconnectedCallback=function(){this.unobserveResize(),e.imageLoader.onImageDisconnected(this),this.unobserveChildren()},n.reLayout=function(){var i={},r={},n=this.getAttribute("id"),a=JSON.parse(this.dataset.imageInfo||""),o=this.dataset.bgEffectName;i[n]=this,a.containerId&&(i[a.containerId]=document.getElementById(""+a.containerId)),i.image=this.querySelector("img");var c=i[a.containerId],s=c.dataset.mediaHeightOverrideType;if(i.image){this.unobserveChildren(),this.observeChildren(this),e.mutationService.measure((function(){Vt.measure(n,r,i,{containerElm:c,mediaHeightOverrideType:s,bgEffectName:o},e)}));var u=function(c){e.mutationService.mutate((function(){Vt.patch(n,r,i,a,e,t,c,o)}))};!zt(i.image)||this.dataset.hasSsrSrc?u(!0):this.debounceImageLoad(u)}else{this.observeChildren(this)}},n.debounceImageLoad=function(e){clearTimeout(this.timeoutId),this.timeoutId=setTimeout((function(){e(!0)}),250),e(!1)},n.observeResize=function(){e.resizeService.observe(this)},n.unobserveResize=function(){e.resizeService.unobserve(this)},n.observeChildren=function(e){var t=this;this.childListObserver||(this.childListObserver=new MutationObserver((function(){return t.reLayout()}))),this.childListObserver.observe(e,{childList:!0})},n.unobserveChildren=function(){this.childListObserver&&(this.childListObserver.disconnect(),this.childListObserver=null)},Mt()(r,null,[{key:"observedAttributes",get:function(){return["data-image-info"]}}]),r}(Ft()(HTMLElement))};function Wt(){var e={staticMediaUrl:"https://static.wixstatic.com/media",mediaRootUrl:"https://static.wixstatic.com",experiments:{},isViewerMode:!0,devicePixelRatio:/iemobile/i.test(navigator.userAgent)?Math.round(window.screen.availWidth/(window.screen.width||window.document.documentElement.clientWidth)):window.devicePixelRatio},t=function(){var e="wix-image";if(void 0===customElements.get(e)){var t=new ResizeObserver((function(e){e.map((function(e){return e.target.reLayout()}))}));return function(i,r){var n=Zt(a()({resizeService:t},i),r);customElements.define(e,n)}}}();t&&t({mutationService:xt()},e)}}(),n}()}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React")):"function"==typeof define&&define.amd?define("image",["React"],t):"object"==typeof exports?exports.image=t(require("React")):e.image=t(e.React)}("undefined"!=typeof self?self:this,(function(e){return function(){var t={159:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},807:function(e,t,i){var r=i(690),n=i(463);function a(t,i,o){return n()?(e.exports=a=Reflect.construct,e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=a=function(e,t,i){var n=[null];n.push.apply(n,t);var a=new(Function.bind.apply(e,n));return i&&r(a,i.prototype),a},e.exports.default=e.exports,e.exports.__esModule=!0),a.apply(null,arguments)}e.exports=a,e.exports.default=e.exports,e.exports.__esModule=!0},385:function(e){function t(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e},e.exports.default=e.exports,e.exports.__esModule=!0},954:function(e){e.exports=function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e},e.exports.default=e.exports,e.exports.__esModule=!0},708:function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,t.apply(this,arguments)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},165:function(e){function t(i){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,t(i)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},382:function(e,t,i){var r=i(690);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},376:function(e){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")},e.exports.default=e.exports,e.exports.__esModule=!0},463:function(e){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.default=e.exports,e.exports.__esModule=!0},690:function(e){function t(i,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,t(i,r)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},861:function(e,t,i){var r=i(165),n=i(690),a=i(376),o=i(807);function c(t){var i="function"==typeof Map?new Map:void 0;return e.exports=c=function(e){if(null===e||!a(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==i){if(i.has(e))return i.get(e);i.set(e,t)}function t(){return o(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n(t,e)},e.exports.default=e.exports,e.exports.__esModule=!0,c(t)}e.exports=c,e.exports.default=e.exports,e.exports.__esModule=!0},114:function(e,t,i){var r;!function(t){"use strict";var n=function(){},a=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(e){return setTimeout(e,16)};function o(){var e=this;e.reads=[],e.writes=[],e.raf=a.bind(t),n("initialized",e)}function c(e){e.scheduled||(e.scheduled=!0,e.raf(s.bind(null,e)),n("flush scheduled"))}function s(e){n("flush");var t,i=e.writes,r=e.reads;try{n("flushing reads",r.length),e.runTasks(r),n("flushing writes",i.length),e.runTasks(i)}catch(e){t=e}if(e.scheduled=!1,(r.length||i.length)&&c(e),t){if(n("task errored",t.message),!e.catch)throw t;e.catch(t)}}function u(e,t){var i=e.indexOf(t);return!!~i&&!!e.splice(i,1)}o.prototype={constructor:o,runTasks:function(e){var t;for(n("run tasks");t=e.shift();)t()},measure:function(e,t){n("measure");var i=t?e.bind(t):e;return this.reads.push(i),c(this),i},mutate:function(e,t){n("mutate");var i=t?e.bind(t):e;return this.writes.push(i),c(this),i},clear:function(e){return n("clear",e),u(this.reads,e)||u(this.writes,e)},extend:function(e){if(n("extend",e),"object"!=typeof e)throw new Error("expected object");var t=Object.create(this);return function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])}(t,e),t.fastdom=this,t.initialize&&t.initialize(),t},catch:null};var h=t.fastdom=t.fastdom||new o;void 0===(r=function(){return h}.call(h,i,h,e))||(e.exports=r)}("undefined"!=typeof window?window:this)},24:function(t){"use strict";t.exports=e}},i={};function r(e){var n=i[e];if(void 0!==n)return n.exports;var a=i[e]={exports:{}};return t[e].call(a.exports,a,a.exports,r),a.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return function(){"use strict";r.r(n),r.d(n,{Image:function(){return Ot},imageKit:function(){return e},initCustomElement:function(){return Wt}});var e={};r.r(e),r.d(e,{STATIC_MEDIA_URL:function(){return bt},alignTypes:function(){return p},fittingTypes:function(){return s},getData:function(){return gt},getPlaceholder:function(){return ft},htmlTag:function(){return T},populateGlobalFeatureSupport:function(){return V},sdk:function(){return It},upscaleMethods:function(){return v}});var t,i=r(708),a=r.n(i),o=r(24),c="MTNJh",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"},u="fit",h="fill",d="fill_focal",l="crop",f="legacy_crop",g="legacy_fill",p={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"},_=((t={})[p.CENTER]={x:.5,y:.5},t[p.TOP_LEFT]={x:0,y:0},t[p.TOP_RIGHT]={x:1,y:.5},t[p.TOP]={x:.5,y:0},t[p.BOTTOM_LEFT]={x:0,y:1},t[p.BOTTOM_RIGHT]={x:1,y:1},t[p.BOTTOM]={x:.5,y:1},t[p.RIGHT]={x:1,y:.5},t[p.LEFT]={x:0,y:.5},t),m={center:"c",top:"t",top_left:"tl",top_right:"tr",bottom:"b",bottom_left:"bl",bottom_right:"br",left:"l",right:"r"},T={BG:"bg",IMG:"img",SVG:"svg"},v={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:{}}},w=25e6,O=[1.5,2,4],y={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}},x="HIGH",A="MEDIUM",M="LOW",R="TINY",S="contrast",C="brightness",G="saturation",P="hue",F="blur",N="jpg",k="jpeg",H="jpe",Y="png",j="webp",B="wix_ico_mp",U="wix_mp",z="gif",D="unrecognized",q={isMobile:!1};function V(){if("undefined"!=typeof window&&"undefined"!=typeof navigator){var e=window.matchMedia&&window.matchMedia("(max-width: 767px)").matches,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);i=e&&t,q["isMobile"]=i}var i}var Z=function(){return Z=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},Z.apply(this,arguments)};Object.create;function W(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}Object.create;function $(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var n=i[i.length-1]||{},a=[e[0]];return t.forEach((function(t,r){var o=Number.isInteger(t)?i[t]:n[t];a.push(o,e[r+1])})),a.join("")}}function Q(e){return e[e.length-1]}var J=[Y,k,N,H,B,U],X=[k,N,H];function K(e,t,i){return i&&t&&!(!(r=t.id)||!r.trim()||"none"===r.toLowerCase())&&Object.values(s).includes(e);var r}function ee(e){return function(e){return J.includes(ae(e))}(e)&&!/(^https?)|(^data)|(^\/\/)/.test(e)}var te,ie=["/","\\","?","<",">","|","\u201c",":",'"'].map(encodeURIComponent),re=["\\.","\\*"];function ne(e){return function(e){return X.includes(ae(e))}(e)?N:function(e){return ae(e)===Y}(e)?Y:function(e){return ae(e)===j}(e)?j:D}function ae(e){return(/[.]([^.]+)$/.exec(e)&&/[.]([^.]+)$/.exec(e)[1]||"").toLowerCase()}function oe(e,t,i,r,n){var a;return a=n===h?function(e,t,i,r){return Math.max(i/e,r/t)}(e,t,i,r):n===u?function(e,t,i,r){return Math.min(i/e,r/t)}(e,t,i,r):1,a}function ce(e,t,i,r,n,a){var o=function(e,t,i,r,n){var a,o=i,c=r;if(a=oe(e,t,i,r,n),n===u&&(o=e*a,c=t*a),o&&c&&o*c>w){var s=Math.sqrt(w/(o*c));a=oe(e,t,o*=s,c*=s,n)}return{scaleFactor:a,width:o,height:c}}(e=e||r.width,t=t||r.height,r.width*n,r.height*n,i),c=o.scaleFactor;return function(e,t,i,r,n,a,o){var c=function(e,t,i,r){if("auto"===r)return function(e,t){var i=de(e,t);return{optimizedScaleFactor:y[i].maxUpscale,upscaleMethodValue:I,forceUSM:!1}}(e,t);if("super"===r)return function(e){return{optimizedScaleFactor:Q(O),upscaleMethodValue:b,forceUSM:!(O.includes(e)||e>Q(O))}}(i);return function(e,t){var i=de(e,t);return{optimizedScaleFactor:y[i].maxUpscale,upscaleMethodValue:I,forceUSM:!1}}(e,t)}(e,t,a,n),s=c.optimizedScaleFactor,d=c.upscaleMethodValue,l=c.forceUSM,f=i,g=r;if(a<=s)return{width:f,height:g,scaleFactor:a,upscaleMethodValue:d,forceUSM:l,cssUpscaleNeeded:!1};switch(o){case h:f=i*(s/a),g=r*(s/a);break;case u:f=e*s,g=t*s}return{width:f,height:g,scaleFactor:s,upscaleMethodValue:d,forceUSM:l,cssUpscaleNeeded:!0}}(e,t,o.width,o.height,a,c,i)}function se(e,t,i,r){var n=he(i)||function(e){return void 0===e&&(e=p.CENTER),_[e]}(r);return{x:Math.max(0,Math.min(e.width-t.width,n.x*e.width-t.width/2)),y:Math.max(0,Math.min(e.height-t.height,n.y*e.height-t.height/2)),width:Math.min(e.width,t.width),height:Math.min(e.height,t.height)}}function ue(e){return e.alignment&&m[e.alignment]||m[p.CENTER]}function he(e){var t;return!e||"number"!=typeof e.x||isNaN(e.x)||"number"!=typeof e.y||isNaN(e.y)||(t={x:le(Math.max(0,Math.min(100,e.x))/100,2),y:le(Math.max(0,Math.min(100,e.y))/100,2)}),t}function de(e,t){var i=e*t;return i>y[x].size?x:i>y[A].size?A:i>y[M].size?M:R}function le(e,t){var i=Math.pow(10,t||0);return(e*i/i).toFixed(t)}function fe(e){return e&&e.upscaleMethod&&v[e.upscaleMethod.toUpperCase()]||v.AUTO}function ge(e,t){var i={css:{container:{}}},r=i.css;switch(e.fittingType){case s.ORIGINAL_SIZE:case s.LEGACY_ORIGINAL_SIZE:case s.LEGACY_STRIP_ORIGINAL_SIZE:r.container.backgroundSize="auto",r.container.backgroundRepeat="no-repeat";break;case s.SCALE_TO_FIT:case s.LEGACY_STRIP_SCALE_TO_FIT:r.container.backgroundSize="contain",r.container.backgroundRepeat="no-repeat";break;case s.STRETCH:r.container.backgroundSize="100% 100%",r.container.backgroundRepeat="no-repeat";break;case s.SCALE_TO_FILL:case s.LEGACY_STRIP_SCALE_TO_FILL:r.container.backgroundSize="cover",r.container.backgroundRepeat="no-repeat";break;case s.TILE_HORIZONTAL:case s.LEGACY_STRIP_TILE_HORIZONTAL:r.container.backgroundSize="auto",r.container.backgroundRepeat="repeat-x";break;case s.TILE_VERTICAL:case s.LEGACY_STRIP_TILE_VERTICAL:r.container.backgroundSize="auto",r.container.backgroundRepeat="repeat-y";break;case s.TILE:case s.LEGACY_STRIP_TILE:r.container.backgroundSize="auto",r.container.backgroundRepeat="repeat";break;case s.LEGACY_STRIP_FIT_AND_TILE:r.container.backgroundSize="contain",r.container.backgroundRepeat="repeat";break;case s.FIT_AND_TILE:case s.LEGACY_BG_FIT_AND_TILE:r.container.backgroundSize="auto",r.container.backgroundRepeat="repeat";break;case s.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:r.container.backgroundSize="auto",r.container.backgroundRepeat="repeat-x";break;case s.LEGACY_BG_FIT_AND_TILE_VERTICAL:r.container.backgroundSize="auto",r.container.backgroundRepeat="repeat-y";break;case s.LEGACY_BG_NORMAL:r.container.backgroundSize="auto",r.container.backgroundRepeat="no-repeat"}switch(t.alignment){case p.CENTER:r.container.backgroundPosition="center center";break;case p.LEFT:r.container.backgroundPosition="left center";break;case p.RIGHT:r.container.backgroundPosition="right center";break;case p.TOP:r.container.backgroundPosition="center top";break;case p.BOTTOM:r.container.backgroundPosition="center bottom";break;case p.TOP_RIGHT:r.container.backgroundPosition="right top";break;case p.TOP_LEFT:r.container.backgroundPosition="left top";break;case p.BOTTOM_RIGHT:r.container.backgroundPosition="right bottom";break;case p.BOTTOM_LEFT:r.container.backgroundPosition="left bottom"}return i}var pe,_e=((te={})[p.CENTER]="center",te[p.TOP]="top",te[p.TOP_LEFT]="top left",te[p.TOP_RIGHT]="top right",te[p.BOTTOM]="bottom",te[p.BOTTOM_LEFT]="bottom left",te[p.BOTTOM_RIGHT]="bottom right",te[p.LEFT]="left",te[p.RIGHT]="right",te),me={position:"absolute",top:"auto",right:"auto",bottom:"auto",left:"auto"};function Te(e,t){var i={css:{container:{},img:{}}},r=i.css,n=e.fittingType,a=t.alignment;switch(r.container.position="relative",n){case s.ORIGINAL_SIZE:case s.LEGACY_ORIGINAL_SIZE:e.parts&&e.parts.length?(r.img.width=e.parts[0].width,r.img.height=e.parts[0].height):(r.img.width=e.src.width,r.img.height=e.src.height);break;case s.SCALE_TO_FIT:case s.LEGACY_FIT_WIDTH:case s.LEGACY_FIT_HEIGHT:case s.LEGACY_FULL:r.img.width=t.width,r.img.height=t.height,r.img.objectFit="contain",r.img.objectPosition=_e[a]||"unset";break;case s.LEGACY_BG_NORMAL:r.img.width="100%",r.img.height="100%",r.img.objectFit="none",r.img.objectPosition=_e[a]||"unset";break;case s.STRETCH:r.img.width=t.width,r.img.height=t.height,r.img.objectFit="fill";break;case s.SCALE_TO_FILL:r.img.width=t.width,r.img.height=t.height,r.img.objectFit="cover"}if("number"==typeof r.img.width&&"number"==typeof r.img.height&&(r.img.width!==t.width||r.img.height!==t.height)){var o=Math.round((t.height-r.img.height)/2),c=Math.round((t.width-r.img.width)/2);Object.assign(r.img,me,function(e,t,i){var r;return(r={})[p.TOP_LEFT]={top:0,left:0},r[p.TOP_RIGHT]={top:0,right:0},r[p.TOP]={top:0,left:t},r[p.BOTTOM_LEFT]={top:0,left:0},r[p.BOTTOM_RIGHT]={bottom:0,right:0},r[p.BOTTOM]={bottom:0,left:t},r[p.RIGHT]={top:e,right:0},r[p.LEFT]={top:e,left:0},r[p.CENTER]={width:i.width,height:i.height,objectFit:"none"},r}(o,c,t)[a])}return i}function ve(e,t){var i,r,n,a,o,c,u={css:{container:{}},attr:{container:{},img:{}}},d=u.css,l=u.attr,f=e.fittingType,g=t.alignment,_=e.src,m=_.width,T=_.height;switch(d.container.position="relative",f){case s.ORIGINAL_SIZE:case s.LEGACY_ORIGINAL_SIZE:case s.TILE:e.parts&&e.parts.length?(l.img.width=e.parts[0].width,l.img.height=e.parts[0].height):(l.img.width=m,l.img.height=T),l.img.preserveAspectRatio="xMidYMid slice";break;case s.SCALE_TO_FIT:case s.LEGACY_FIT_WIDTH:case s.LEGACY_FIT_HEIGHT:case s.LEGACY_FULL:l.img.width="100%",l.img.height="100%",l.img.transform="",l.img.preserveAspectRatio="";break;case s.STRETCH:l.img.width=t.width,l.img.height=t.height,l.img.x=0,l.img.y=0,l.img.transform="",l.img.preserveAspectRatio="none";break;case s.SCALE_TO_FILL:ee(e.src.id)?(l.img.width=t.width,l.img.height=t.height):(r=m,n=T,a=t.width,o=t.height,c=oe(r,n,a,o,h),i={width:Math.round(r*c),height:Math.round(n*c)},l.img.width=i.width,l.img.height=i.height),l.img.x=0,l.img.y=0,l.img.transform="",l.img.preserveAspectRatio="xMidYMid slice"}if("number"==typeof l.img.width&&"number"==typeof l.img.height&&(l.img.width!==t.width||l.img.height!==t.height)){var v=0,I=0,b=void 0,L=void 0;f===s.TILE?(b=t.width%l.img.width,L=t.height%l.img.height):(b=t.width-l.img.width,L=t.height-l.img.height);var E=Math.round(b/2),w=Math.round(L/2);switch(g){case p.TOP_LEFT:v=0,I=0;break;case p.TOP:v=E,I=0;break;case p.TOP_RIGHT:v=b,I=0;break;case p.LEFT:v=0,I=w;break;case p.CENTER:v=E,I=w;break;case p.RIGHT:v=b,I=w;break;case p.BOTTOM_LEFT:v=0,I=L;break;case p.BOTTOM:v=E,I=L;break;case p.BOTTOM_RIGHT:v=b,I=L}l.img.x=v,l.img.y=I}return l.container.width=t.width,l.container.height=t.height,l.container.viewBox=[0,0,t.width,t.height].join(" "),u}function Ie(){return q["isMobile"]}function be(e,t,i){var r,n,a,o,c;switch(t.crop&&(n=t,a=t.crop,o=Math.max(0,Math.min(n.width,a.x+a.width)-Math.max(0,a.x)),c=Math.max(0,Math.min(n.height,a.y+a.height)-Math.max(0,a.y)),(r=o&&c&&(n.width!==o||n.height!==c)?{x:Math.max(0,a.x),y:Math.max(0,a.y),width:o,height:c}:null)&&(e.src.width=r.width,e.src.height=r.height,e.src.isCropped=!0,e.parts.push(Ee(r)))),e.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:e.parts.push(Le(e,i));break;case s.SCALE_TO_FILL:e.parts.push(function(e,t){var i=ce(e.src.width,e.src.height,h,t,e.devicePixelRatio,e.upscaleMethod),r=he(e.focalPoint);return{transformType:r?d:h,width:Math.round(i.width),height:Math.round(i.height),alignment:ue(t),focalPointX:r&&r.x,focalPointY:r&&r.y,upscale:i.scaleFactor>1,forceUSM:i.forceUSM,scaleFactor:i.scaleFactor,cssUpscaleNeeded:i.cssUpscaleNeeded,upscaleMethodValue:i.upscaleMethodValue}}(e,i));break;case s.STRETCH:e.parts.push(function(e,t){var i=oe(e.src.width,e.src.height,t.width,t.height,h),r=Z({},t);return r.width=e.src.width*i,r.height=e.src.height*i,Le(e,r)}(e,i));break;case s.TILE_HORIZONTAL:case s.TILE_VERTICAL:case s.TILE:case s.LEGACY_ORIGINAL_SIZE:case s.ORIGINAL_SIZE:r=se(e.src,i,e.focalPoint,i.alignment),e.src.isCropped?(Object.assign(e.parts[0],r),e.src.width=r.width,e.src.height=r.height):e.parts.push(Ee(r));break;case s.LEGACY_STRIP_TILE_HORIZONTAL:case s.LEGACY_STRIP_TILE_VERTICAL:case s.LEGACY_STRIP_TILE:case s.LEGACY_STRIP_ORIGINAL_SIZE:e.parts.push(function(e){return{transformType:f,width:Math.round(e.width),height:Math.round(e.height),alignment:ue(e),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}(i));break;case s.LEGACY_STRIP_SCALE_TO_FIT:case s.LEGACY_STRIP_FIT_AND_TILE:e.parts.push(function(e){return{transformType:u,width:Math.round(e.width),height:Math.round(e.height),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(i));break;case s.LEGACY_STRIP_SCALE_TO_FILL:e.parts.push(function(e){return{transformType:g,width:Math.round(e.width),height:Math.round(e.height),alignment:ue(e),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(i))}}function Le(e,t){var i=ce(e.src.width,e.src.height,u,t,e.devicePixelRatio,e.upscaleMethod);return{transformType:h,width:Math.round(i.width),height:Math.round(i.height),alignment:m.center,upscale:i.scaleFactor>1,forceUSM:i.forceUSM,scaleFactor:i.scaleFactor,cssUpscaleNeeded:i.cssUpscaleNeeded,upscaleMethodValue:i.upscaleMethodValue}}function Ee(e){return{transformType:l,x:Math.round(e.x),y:Math.round(e.y),width:Math.round(e.width),height:Math.round(e.height),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}function we(e,t){var i;t=t||{},e.quality=function(e,t){var i=e.fileType===Y;if(e.fileType===N||i){var r=Q(e.parts),n=(o=r.width,c=r.height,y[de(o,c)].quality),a=t.quality&&t.quality>=5&&t.quality<=90?t.quality:n;return a=i?a+5:a}var o,c;return 0}(e,t),e.progressive=function(e){return!1!==e.progressive}(t),e.watermark=function(e){return e.watermark}(t),e.autoEncode=null===(i=t.autoEncode)||void 0===i||i,e.unsharpMask=function(e,t){var i,r,n;if(a=t.unsharpMask,o="number"==typeof(a=a||{}).radius&&!isNaN(a.radius)&&a.radius>=.1&&a.radius<=500,c="number"==typeof a.amount&&!isNaN(a.amount)&&a.amount>=0&&a.amount<=10,s="number"==typeof a.threshold&&!isNaN(a.threshold)&&a.threshold>=0&&a.threshold<=255,o&&c&&s)return{radius:le(null===(i=t.unsharpMask)||void 0===i?void 0:i.radius,2),amount:le(null===(r=t.unsharpMask)||void 0===r?void 0:r.amount,2),threshold:le(null===(n=t.unsharpMask)||void 0===n?void 0:n.threshold,2)};if(!function(e){return"number"==typeof(e=e||{}).radius&&!isNaN(e.radius)&&0===e.radius&&"number"==typeof e.amount&&!isNaN(e.amount)&&0===e.amount&&"number"==typeof e.threshold&&!isNaN(e.threshold)&&0===e.threshold}(t.unsharpMask)&&function(e){var t=Q(e.parts);return!(t.scaleFactor>=1)||t.forceUSM}(e))return L;var a,o,c,s;return}(e,t),e.filters=function(e){var t=e.filters||{},i={};Oe(t[S],-100,100)&&(i[S]=t[S]);Oe(t[C],-100,100)&&(i[C]=t[C]);Oe(t[G],-100,100)&&(i[G]=t[G]);Oe(t[P],-180,180)&&(i[P]=t[P]);Oe(t[F],0,100)&&(i[F]=t[F]);return i}(t)}function Oe(e,t,i){return"number"==typeof e&&!isNaN(e)&&0!==e&&e>=t&&e<=i}function ye(e,t,i,r){var n=function(e){var t;return null!==(t=null==e?void 0:e.isSEOBot)&&void 0!==t&&t}(r),a=ne(t.id),o=function(e,t){var i=/\.([^.]*)$/,r=new RegExp("("+ie.concat(re).join("|")+")","g");if(t&&t.length){var n=t,a=t.match(i);return a&&J.includes(a[1])&&(n=t.replace(i,"")),encodeURIComponent(n).replace(r,"_")}var o=e.match(/\/(.*?)$/);return(o?o[1]:e).replace(i,"")}(t.id,t.name),c=n?1:function(e){return Math.min(e.pixelAspectRatio||1,2)}(i),s=ae(t.id),u={fileName:o,fileExtension:s,fileType:a,fittingType:e,preferredExtension:s,src:{id:t.id,width:t.width,height:t.height,isCropped:!1},focalPoint:{x:t.focalPoint&&t.focalPoint.x,y:t.focalPoint&&t.focalPoint.y},parts:[],devicePixelRatio:c,quality:0,upscaleMethod:fe(r),progressive:!0,watermark:"",unsharpMask:{},filters:{}};return ee(t.id)&&(be(u,t,i),we(u,r)),u}function xe(e,t,i){var r=Z({},i),n=Ie();switch(e){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:var a=n?1e3:1920,o=n?1e3:1920;r.width=Math.min(a,t.width),r.height=Math.min(o,Math.round(r.width/(t.width/t.height))),r.pixelAspectRatio=1}return r}var Ae,Me,Re,Se,Ce,Ge,Pe,Fe,Ne,ke,He,Ye,je,Be,Ue,ze,De,qe,Ve=$(Ae||(Ae=W(["fit/w_",",h_",""],["fit/w_",",h_",""])),"width","height"),Ze=$(Me||(Me=W(["fill/w_",",h_",",al_",""],["fill/w_",",h_",",al_",""])),"width","height","alignment"),We=$(Re||(Re=W(["fill/w_",",h_",",fp_","_",""],["fill/w_",",h_",",fp_","_",""])),"width","height","focalPointX","focalPointY"),$e=$(Se||(Se=W(["crop/x_",",y_",",w_",",h_",""],["crop/x_",",y_",",w_",",h_",""])),"x","y","width","height"),Qe=$(Ce||(Ce=W(["crop/w_",",h_",",al_",""],["crop/w_",",h_",",al_",""])),"width","height","alignment"),Je=$(Ge||(Ge=W(["fill/w_",",h_",",al_",""],["fill/w_",",h_",",al_",""])),"width","height","alignment"),Xe=$(Pe||(Pe=W([",lg_",""],[",lg_",""])),"upscaleMethodValue"),Ke=$(Fe||(Fe=W([",q_",""],[",q_",""])),"quality"),et=$(Ne||(Ne=W([",usm_","_","_",""],[",usm_","_","_",""])),"radius","amount","threshold"),tt=$(ke||(ke=W([",bl"],[",bl"]))),it=$(He||(He=W([",wm_",""],[",wm_",""])),"watermark"),rt=((pe={})[S]=$(Ye||(Ye=W([",con_",""],[",con_",""])),"contrast"),pe[C]=$(je||(je=W([",br_",""],[",br_",""])),"brightness"),pe[G]=$(Be||(Be=W([",sat_",""],[",sat_",""])),"saturation"),pe[P]=$(Ue||(Ue=W([",hue_",""],[",hue_",""])),"hue"),pe[F]=$(ze||(ze=W([",blur_",""],[",blur_",""])),"blur"),pe),nt=$(De||(De=W([",enc_auto"],[",enc_auto"])));function at(e,t,i,r,n){return void 0===r&&(r={}),ee(t.id)?function(e){var t=[];e.parts.forEach((function(e){switch(e.transformType){case l:t.push($e(e));break;case f:t.push(Qe(e));break;case g:var i=Je(e);e.upscale&&(i+=Xe(e)),t.push(i);break;case u:var r=Ve(e);e.upscale&&(r+=Xe(e)),t.push(r);break;case h:var n=Ze(e);e.upscale&&(n+=Xe(e)),t.push(n);break;case d:var a=We(e);e.upscale&&(a+=Xe(e)),t.push(a)}}));var i=t.join("/");return e.quality&&(i+=Ke(e)),e.unsharpMask&&(i+=et(e.unsharpMask)),e.progressive||(i+=tt(e)),e.watermark&&(i+=it(e)),e.filters&&(i+=Object.keys(e.filters).map((function(t){return rt[t](e.filters)})).join("")),e.autoEncode&&e.fileType!==z&&(i+=nt(e)),e.src.id+"/v1/"+i+"/"+e.fileName+"."+e.preferredExtension}(n=n||ye(e,t,i,r)):t.id}var ot=((qe={})[p.CENTER]="50% 50%",qe[p.TOP_LEFT]="0% 0%",qe[p.TOP_RIGHT]="100% 0%",qe[p.TOP]="50% 0%",qe[p.BOTTOM_LEFT]="0% 100%",qe[p.BOTTOM_RIGHT]="100% 100%",qe[p.BOTTOM]="50% 100%",qe[p.RIGHT]="100% 50%",qe[p.LEFT]="0% 50%",qe),ct=Object.entries(ot).reduce((function(e,t){var i=t[0];return e[t[1]]=i,e}),{}),st=[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],ut=[s.LEGACY_ORIGINAL_SIZE,s.ORIGINAL_SIZE,s.LEGACY_BG_NORMAL];function ht(e,t,i){var r=i.width,n=i.height;return e===s.TILE&&t.width>r&&t.height>n}function dt(e,t,i,r){void 0===r&&(r="center");var n,a,o={img:{},container:{}};if(e===s.SCALE_TO_FILL){var c=t.focalPoint&&(n=t.focalPoint,a=n.x+"% "+n.y+"%",ct[a]||""),u=c||r;t.focalPoint&&!c?o.img={objectPosition:lt(t,i,t.focalPoint)}:o.img={objectPosition:ot[u]}}else[s.LEGACY_ORIGINAL_SIZE,s.ORIGINAL_SIZE].includes(e)?o.img={objectFit:"none",top:"auto",left:"auto",right:"auto",bottom:"auto"}:st.includes(e)&&(o.container={backgroundSize:t.width+"px "+t.height+"px"});return o}function lt(e,t,i){var r=e.width,n=e.height,a=t.width,o=t.height,c=i.x,s=i.y;if(!a||!o)return c+"% "+s+"%";var u=Math.max(a/r,o/n),h=r*u,d=n*u,l=Math.max(0,Math.min(h-a,h*(c/100)-a/2)),f=Math.max(0,Math.min(d-o,d*(s/100)-o/2));return(l&&Math.floor(l/(h-a)*100))+"% "+(f&&Math.floor(f/(d-o)*100))+"%"}function ft(e,t,i,r){if(void 0===r&&(r={}),!K(e,t,i))return E;var n=r.autoEncode,a=void 0===n||n,o=r.isSEOBot,c=r.shouldLoadHQImage,u=r.omitBlur;if(c)return gt(e,t,i,Z(Z({},r),{autoEncode:a,useSrcset:!0}));var h=Z(Z({},i),function(e,t){var i=t.width,r=t.height;if(!i||!r){var n=i||Math.min(980,e.width),a=n/e.width;return{width:n,height:r||e.height*a}}return{width:i,height:r}}(t,i)),d=i.alignment,l=i.htmlTag,f=ht(e,t,h),g=function(e,t,i,r){var n=i.width,a=i.height;if(void 0===r&&(r=!1),r)return{width:n,height:a};var o=!ut.includes(e),c=ht(e,t,{width:n,height:a}),s=!c&&st.includes(e),u=s?t.width:n,h=s?t.height:a,d=o?function(e){return e>900?.25:e>500?.3:e>200?.4:1}(u):1;return{width:c?1920:u*d,height:h*d}}(e,t,h,o),p=u?0:function(e,t,i){return i?0:st.includes(t)?1:e>200?2:3}(h.width,e,o),_=function(e,t){var i=st.includes(e)&&!t;return e===s.SCALE_TO_FILL||i?s.SCALE_TO_FIT:e}(e,f),m=dt(e,t,i,d),T=gt(_,t,Z(Z({},g),{alignment:d,htmlTag:l}),{autoEncode:a,filters:p?{blur:p}:{}}).uri,v=gt(e,t,Z(Z({},h),{alignment:d,htmlTag:l}),{}),I=v.attr,b=void 0===I?{}:I,L=v.css;return L.img=L.img||{},L.container=L.container||{},Object.assign(L.img,m.img),Object.assign(L.container,m.container),{uri:T,css:L,attr:b}}function gt(e,t,i,r){var n={};if(K(e,t,i)){var a=xe(e,t,i),o=ye(e,t,a,r);n.uri=at(e,t,a,r,o),(null==r?void 0:r.useSrcset)&&(n.srcset=function(e,t,i,r,n){var a=i.pixelAspectRatio||1;return{dpr:[(1===a?n.uri:at(e,t,Z(Z({},i),{pixelAspectRatio:1}),r))+" 1x",(2===a?n.uri:at(e,t,Z(Z({},i),{pixelAspectRatio:2}),r))+" 2x"]}}(e,t,a,r,n)),Object.assign(n,function(e,t){return(t.htmlTag===T.BG?ge:t.htmlTag===T.SVG?ve:Te)(e,t)}(o,a))}else n=E;return n}function pt(e,t,i,r){if(K(e,t,i)){var n=xe(e,t,i);return{uri:at(e,t,n,r||{},ye(e,t,n,r))}}return E}var _t="https://static.wixstatic.com/media/",mt=/^media\//i,Tt="undefined"!=typeof window?window.devicePixelRatio:1,vt=function(e,t){var i=t&&t.baseHostURL;return i?""+i+e:function(e){return mt.test(e)?"https://static.wixstatic.com/"+e:""+_t+e}(e)};V(),V();var It={getScaleToFitImageURL:function(e,t,i,r,n,a){var o=pt(s.SCALE_TO_FIT,{id:e,width:t,height:i,name:a&&a.name},{width:r,height:n,htmlTag:T.IMG,alignment:p.CENTER,pixelAspectRatio:Tt},a);return vt(o.uri,a)},getScaleToFillImageURL:function(e,t,i,r,n,a){var o=pt(s.SCALE_TO_FILL,{id:e,width:t,height:i,name:a&&a.name,focalPoint:{x:a&&a.focalPoint&&a.focalPoint.x,y:a&&a.focalPoint&&a.focalPoint.y}},{width:r,height:n,htmlTag:T.IMG,alignment:p.CENTER,pixelAspectRatio:Tt},a);return vt(o.uri,a)},getCropImageURL:function(e,t,i,r,n,a,o,c,u,h){var d=pt(s.SCALE_TO_FILL,{id:e,width:t,height:i,name:h&&h.name,crop:{x:r,y:n,width:a,height:o}},{width:c,height:u,htmlTag:T.IMG,alignment:p.CENTER,pixelAspectRatio:Tt},h);return vt(d.uri,h)}},bt=_t,Lt=bt,Et=function(e){var t=e.fittingType,i=e.src,r=e.target,n=e.options,o=ft(t,i,r,a()({},n,{autoEncode:!0}));return null!=o&&o.uri&&!o.uri.startsWith("http")&&(o.uri=""+Lt+o.uri),o},wt=/^[a-z]+:\/\//,Ot=function(e){var t,i=e.id,r=e.containerId,n=e.uri,s=e.alt,u=e.name,h=void 0===u?"":u,d=e.role,l=e.width,f=e.height,g=e.displayMode,p=e.devicePixelRatio,_=e.quality,m=e.alignType,T=e.bgEffectName,v=void 0===T?"":T,I=e.focalPoint,b=e.upscaleMethod,L=e.className,E=void 0===L?"":L,w=e.crop,O=e.imageStyles,y=void 0===O?{}:O,x=e.targetWidth,A=e.targetHeight,M=e.onLoad,R=void 0===M?function(){}:M,S=e.onError,C=void 0===S?function(){}:S,G=e.shouldUseLQIP,P=e.containerWidth,F=e.containerHeight,N=e.getPlaceholder,k=e.isInFirstFold,H=e.placeholderTransition,Y="",j="blur"===H,B=a()({containerId:r},m&&{alignType:m},{displayMode:g},x&&{targetWidth:x},A&&{targetHeight:A},{isLQIP:(N||G)&&!k,lqipTransition:H,imageData:a()({width:l,height:f,uri:n,name:h,displayMode:g},_&&{quality:_},p&&{devicePixelRatio:p},I&&{focalPoint:I},w&&{crop:w},b&&{upscaleMethod:b})}),U=o.useRef(null);if(!U.current)if(N||G){Y=k?"":"true";var z=a()({upscaleMethod:b},_||{},{shouldLoadHQImage:k,omitBlur:j});U.current=(N||Et)({fittingType:g,src:{id:n,width:l,height:f,crop:w,name:h,focalPoint:B.imageData.focalPoint},target:{width:P||200,height:F||200,alignment:m,htmlTag:"img"},options:z})}else U.current={uri:void 0,css:{img:{}},attr:{img:{},container:{}}};var D=U.current,q=null==D?void 0:D.uri,V=null==D?void 0:D.srcset,Z=null==(t=D.css)?void 0:t.img,W=c+" "+E;return k?o.createElement("div",{id:i,className:W},o.createElement("img",{src:q,alt:s,role:d,style:a()({},Z,y),onLoad:R,onError:C,srcSet:V.dpr.map((function(e){return wt.test(e)?e:""+Lt+e})).join(", ")})):o.createElement("wix-image",{id:i,class:W,"data-image-info":JSON.stringify(B),"data-bg-effect-name":v,"data-has-ssr-src":Y,"data-animate-blur":j?"":void 0},o.createElement("img",{src:q,alt:s,role:d,style:a()({},Z,y),onLoad:R,onError:C}))},yt=r(114),xt=r.n(yt),At=r(385),Mt=r.n(At),Rt=r(159),St=r.n(Rt),Ct=r(382),Gt=r.n(Ct),Pt=r(861),Ft=r.n(Pt),Nt=r(954),kt=r.n(Nt),Ht={columnCount:1,columns:1,fontWeight:1,lineHeight:1,opacity:1,zIndex:1,zoom:1},Yt=function(e,t){return(Array.isArray(t)?t:[t]).reduce((function(t,i){var r,n=e[i];return void 0!==n?Object.assign(t,((r={})[i]=n,r)):t}),{})},jt=function(e,t){return e&&t&&Object.keys(t).forEach((function(i){var r=t[i];void 0!==r?e.style[i]=function(e,t){return"number"!=typeof t||Ht[e]?t:t+"px"}(i,r):e.style.removeProperty(i)}))},Bt=function(e,t,i){if(/(^https?)|(^data)|(^blob)|(^\/\/)/.test(e))return e;var r,n=t+"/";e&&(/^micons\//.test(e)?n=i:"ico"===(null==(r=/[^.]+$/.exec(e))?void 0:r[0])&&(n=n.replace("media","ficons")));return n+e},Ut=function(e){var t=window.location.search.split("&").map((function(e){return e.split("=")})).find((function(e){return e[0].toLowerCase().includes("devicepixelratio")}));return(t?Number(t[1]):null)||e||1},zt=function(e){return e.getAttribute("src")},Dt=function(){return window&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype&&"isIntersecting"in window.IntersectionObserverEntry.prototype&&!/Edge\/18/.test(window.navigator.userAgent)},qt=function(){function e(e){kt()(this,"intersectionObserver",void 0),kt()(this,"scrollEffectsIntersectionObserver",void 0),kt()(this,"mutationService",void 0),this.mutationService=e,Dt()&&(this.intersectionObserver=new IntersectionObserver(this.getViewPortIntersectionHandler(),{rootMargin:"50% 0px"}))}var t=e.prototype;return t.isImageInViewPort=function(e,t){return e.top+e.height>=0&&e.bottom-e.height<=t},t.loadImage=function(e,t){var i=t.screenHeight,r=t.boundingRect;!this.intersectionObserver||this.isImageInViewPort(r,i)?this.setImageSource(e):(this.intersectionObserver.unobserve(e),this.intersectionObserver.observe(e))},t.onImageDisconnected=function(e){this.intersectionObserver&&this.intersectionObserver.unobserve(e)},t.setSrcAttribute=function(e,t){zt(e)!==t&&(e.src=t)},t.setImageSource=function(e){var t=e.querySelector("img");this.setSrcAttribute(t,e.dataset.src)},t.getViewPortIntersectionHandler=function(){var e=this;return function(t,i){t.filter((function(e){return e.isIntersecting})).forEach((function(t){var r=t.target;e.setImageSource(r),i.unobserve(r)}))}},e}();var Vt={measure:function(e,t,i,r,n){var a=r.containerElm,o=r.mediaHeightOverrideType,c=r.bgEffectName,s=void 0===c?"none":c,u=i.image,h=i[e],d=window?window.innerHeight||document.documentElement.clientHeight:0,l=a&&"none"!==s?a:h,f=(null==n.getMediaDimensionsByEffect?void 0:n.getMediaDimensionsByEffect(s,l.offsetWidth,l.offsetHeight,d))||{width:h.offsetWidth,height:h.offsetHeight},g=f.width,p=f.height;if(u){var _=zt(u);t.width=g,t.height=function(e,t){return"fixed"===t?document.documentElement.clientHeight+80:e}(p,o),t.screenHeight=d,t.imgSrc=_,t.boundingRect=h.getBoundingClientRect(),t.mediaHeightOverrideType=o}},patch:function(e,t,i,r,n,o,c,u){var h;if(Object.keys(t).length){var d=r.imageData,l=i[e],f=i.image;u&&(d.devicePixelRatio=1);var g=function(e,t,i){if(!e.targetWidth||!e.targetHeight||!e.imageData.uri)return{uri:"",css:{}};var r=e.imageData,n=e.displayMode||s.SCALE_TO_FILL,a=Object.assign(Yt(r,"upscaleMethod"),Yt(e,"filters"),e.quality||r.quality),o=e.imageData.devicePixelRatio||t.devicePixelRatio,c=Ut(o),u=gt(n,Object.assign(Yt(r,["width","height","crop","name","focalPoint"]),{id:r.uri}),{width:e.targetWidth,height:e.targetHeight,htmlTag:i||"img",pixelAspectRatio:c,alignment:e.alignType||p.CENTER},a);return u.uri=Bt(u.uri,t.staticMediaUrl,t.mediaRootUrl),u}(a()({targetWidth:t.width,targetHeight:t.height},r,{displayMode:d.displayMode}),o,"img"),_=(null==g||null==(h=g.css)?void 0:h.img)||{},m=function(e,t,i){if(!e)return t;var r=a()({},t);return"fill"===i?(r.position="absolute",r.top="0"):"fit"===i&&(r.height="100%"),"fixed"===e&&(r["will-change"]="transform"),r.objectPosition&&(r.objectPosition=t.objectPosition.replace(/(center|bottom)$/,"top")),r}(t.mediaHeightOverrideType,_,d.displayMode);jt(f,m);var T=null==g?void 0:g.uri;l.setAttribute("data-src",T||""),l.setAttribute("data-has-ssr-src",""),r.lqipTransition&&!("transitioned"in l.dataset)&&(l.dataset.transitioned="",r.isLQIP?f.complete?f.onload=function(){f.dataset.loadDone=""}:f.onload=function(){f.onload=function(){f.dataset.loadDone=""}}:f.dataset.loadDone=""),c&&n.imageLoader.loadImage(l,{screenHeight:t.screenHeight,boundingRect:t.boundingRect})}}};var Zt=function(e,t){return e.imageLoader||(e.imageLoader=new qt(e.mutationService)),function(i){function r(){var e;return e=i.call(this)||this,kt()(St()(e),"childListObserver",void 0),kt()(St()(e),"timeoutId",void 0),e.childListObserver=null,e.timeoutId=null,e}Gt()(r,i);var n=r.prototype;return n.attributeChangedCallback=function(e,t){t&&this.reLayout()},n.connectedCallback=function(){this.observeResize(),this.reLayout()},n.disconnectedCallback=function(){this.unobserveResize(),e.imageLoader.onImageDisconnected(this),this.unobserveChildren()},n.reLayout=function(){var i={},r={},n=this.getAttribute("id"),a=JSON.parse(this.dataset.imageInfo||""),o=this.dataset.bgEffectName;i[n]=this,a.containerId&&(i[a.containerId]=document.getElementById(""+a.containerId)),i.image=this.querySelector("img");var c=i[a.containerId],s=c.dataset.mediaHeightOverrideType;if(i.image){this.unobserveChildren(),this.observeChildren(this),e.mutationService.measure((function(){Vt.measure(n,r,i,{containerElm:c,mediaHeightOverrideType:s,bgEffectName:o},e)}));var u=function(c){e.mutationService.mutate((function(){Vt.patch(n,r,i,a,e,t,c,o)}))};!zt(i.image)||this.dataset.hasSsrSrc?u(!0):this.debounceImageLoad(u)}else{this.observeChildren(this)}},n.debounceImageLoad=function(e){clearTimeout(this.timeoutId),this.timeoutId=setTimeout((function(){e(!0)}),250),e(!1)},n.observeResize=function(){e.resizeService.observe(this)},n.unobserveResize=function(){e.resizeService.unobserve(this)},n.observeChildren=function(e){var t=this;this.childListObserver||(this.childListObserver=new MutationObserver((function(){return t.reLayout()}))),this.childListObserver.observe(e,{childList:!0})},n.unobserveChildren=function(){this.childListObserver&&(this.childListObserver.disconnect(),this.childListObserver=null)},Mt()(r,null,[{key:"observedAttributes",get:function(){return["data-image-info"]}}]),r}(Ft()(HTMLElement))};function Wt(){var e={staticMediaUrl:"https://static.wixstatic.com/media",mediaRootUrl:"https://static.wixstatic.com",experiments:{},isViewerMode:!0,devicePixelRatio:/iemobile/i.test(navigator.userAgent)?Math.round(window.screen.availWidth/(window.screen.width||window.document.documentElement.clientWidth)):window.devicePixelRatio},t=function(){var e="wix-image";if(void 0===customElements.get(e)){var t=new ResizeObserver((function(e){e.map((function(e){return e.target.reLayout()}))}));return function(i,r){var n=Zt(a()({resizeService:t},i),r);customElements.define(e,n)}}}();t&&t({mutationService:xt()},e)}}(),n}()}));
//# sourceMappingURL=image.umd.min.js.map
{
"image.css": "https://static.parastorage.com/services/image/8d8c0e294c351d498c0a42e3c26259f79eac93e0644a4f3ae2a68d95/image.css",
"image.js": "https://static.parastorage.com/services/image/8d8c0e294c351d498c0a42e3c26259f79eac93e0644a4f3ae2a68d95/image.umd.js"
"image.css": "https://static.parastorage.com/services/image/68f813210ccba5bee5e8220611a6a251d554590fa08a182a597afdbe/image.css",
"image.js": "https://static.parastorage.com/services/image/68f813210ccba5bee5e8220611a6a251d554590fa08a182a597afdbe/image.umd.js"
}
{
"image.css": "https://static.parastorage.com/services/image/8d8c0e294c351d498c0a42e3c26259f79eac93e0644a4f3ae2a68d95/image.min.css",
"image.js": "https://static.parastorage.com/services/image/8d8c0e294c351d498c0a42e3c26259f79eac93e0644a4f3ae2a68d95/image.umd.min.js"
"image.css": "https://static.parastorage.com/services/image/68f813210ccba5bee5e8220611a6a251d554590fa08a182a597afdbe/image.min.css",
"image.js": "https://static.parastorage.com/services/image/68f813210ccba5bee5e8220611a6a251d554590fa08a182a597afdbe/image.umd.min.js"
}
{
"name": "@wix/image",
"description": "Wix base image component",
"version": "1.14.0",
"version": "1.15.0",
"license": "MIT",

@@ -25,3 +25,3 @@ "author": {

"start": "yoshi-library storybook start",
"test": "yoshi-library test",
"test": "yoshi-library test && yoshi-library lint && npx janet deploy --ci",
"test:e2e": "MATCH_ENV=e2e npx jest",

@@ -31,4 +31,3 @@ "test:spec": "MATCH_ENV=spec npx jest",

"format": "yoshi-library lint --fix",
"posttest": "npm run lint && npx janet deploy --ci",
"example": "npm start --prefix example",
"example": "yarn start --prefix example",
"janet:deploy": "janet deploy"

@@ -42,7 +41,7 @@ },

"lint-staged": {
"*.{js,ts}": "npm run lint"
"*.{js,ts}": "yarn lint"
},
"dependencies": {
"@babel/runtime": "^7.0.0",
"@wix/image-kit": "^1.15.0",
"@wix/image-kit": "^1.16.0",
"fastdom": "^1.0.10",

@@ -49,0 +48,0 @@ "tslib": "^2.0.0"

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc