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

@wix/image

Package Overview
Dependencies
Maintainers
0
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.309.0 to 1.310.0

dist/statics/janet/main.8f31c855.iframe.bundle.js

3

dist/cjs/custom-element/imageLayout.js

@@ -155,3 +155,2 @@ "use strict";

};
const allowAnimatedTransform = services.isExperimentOpen == null ? void 0 : services.isExperimentOpen('specs.thunderbolt.allowAnimatedImageTransform');
const imageComputedProperties = (0, _utils.getImageComputedProperties)(extendedImageInfo, envConsts, 'img');

@@ -197,3 +196,3 @@ const computedStyle = (imageComputedProperties == null || (_imageComputedPropert = imageComputedProperties.css) == null ? void 0 : _imageComputedPropert.img) || {};

if (loadImage) {
if ((0, _utils.imageIsAnimated)(imageData.uri, hasAnimation) && allowAnimatedTransform) {
if ((0, _utils.imageIsAnimated)(imageData.uri, hasAnimation)) {
image.setAttribute('fetchpriority', 'low');

@@ -200,0 +199,0 @@ image.setAttribute('loading', 'lazy');

@@ -68,4 +68,3 @@ "use strict";

skipMeasure,
hasAnimation,
allowAnimatedTransform
hasAnimation
} = props;

@@ -84,4 +83,3 @@ const imageRef = React.useRef(null);

isSEOBot,
hasAnimation,
allowAnimatedTransform
hasAnimation
};

@@ -208,3 +206,3 @@ ssrImageData.current = (getPlaceholder || fetchLQIP)({

fileName: _jsxFileName,
lineNumber: 206,
lineNumber: 204,
columnNumber: 5

@@ -237,3 +235,3 @@ }

fileName: _jsxFileName,
lineNumber: 218,
lineNumber: 216,
columnNumber: 7

@@ -240,0 +238,0 @@ }

@@ -136,3 +136,2 @@ import { getScreenHeight, setStyle, getImageComputedProperties, getImageSrc, imageIsAnimated, } from './utils';

};
const allowAnimatedTransform = services.isExperimentOpen?.('specs.thunderbolt.allowAnimatedImageTransform');
const imageComputedProperties = getImageComputedProperties(extendedImageInfo, envConsts, 'img');

@@ -183,4 +182,3 @@ const computedStyle = imageComputedProperties?.css?.img || {};

if (loadImage) {
if (imageIsAnimated(imageData.uri, hasAnimation) &&
allowAnimatedTransform) {
if (imageIsAnimated(imageData.uri, hasAnimation)) {
image.setAttribute('fetchpriority', 'low');

@@ -187,0 +185,0 @@ image.setAttribute('loading', 'lazy');

@@ -17,3 +17,3 @@ import * as React from 'react';

const Image = (props) => {
const { id, containerId, uri, alt, name = '', role, width, height, displayMode, devicePixelRatio, quality, alignType, bgEffectName = '', focalPoint, upscaleMethod, className = '', crop, imageStyles = {}, targetWidth, targetHeight, targetScale, onLoad = () => { }, onError = () => { }, shouldUseLQIP, containerWidth, containerHeight, getPlaceholder, isInFirstFold, placeholderTransition, socialAttrs, isSEOBot, skipMeasure, hasAnimation, allowAnimatedTransform, } = props;
const { id, containerId, uri, alt, name = '', role, width, height, displayMode, devicePixelRatio, quality, alignType, bgEffectName = '', focalPoint, upscaleMethod, className = '', crop, imageStyles = {}, targetWidth, targetHeight, targetScale, onLoad = () => { }, onError = () => { }, shouldUseLQIP, containerWidth, containerHeight, getPlaceholder, isInFirstFold, placeholderTransition, socialAttrs, isSEOBot, skipMeasure, hasAnimation, } = props;
const imageRef = React.useRef(null);

@@ -32,3 +32,2 @@ // fix containerId and id to support hoverBox component

hasAnimation,
allowAnimatedTransform,
};

@@ -35,0 +34,0 @@ ssrImageData.current = (getPlaceholder || fetchLQIP)({

@@ -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,(t=>(()=>{var e={709: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:void 0!==this?this:globalThis)},883:e=>{"use strict";e.exports=t},99:(t,e,i)=>{var n=i(602);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},448: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)({}).hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},t.exports.__esModule=!0,t.exports.default=t.exports,e.apply(null,arguments)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},751:(t,e,i)=>{var n=i(284).default;t.exports=function(t,e){if("object"!=n(t)||!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},602:(t,e,i)=>{var n=i(284).default,r=i(751);t.exports=function(t){var e=r(t,"string");return"symbol"==n(e)?e:e+""},t.exports.__esModule=!0,t.exports.default=t.exports},284: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=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(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=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{Image:()=>Zt,imageKit:()=>t,initCustomElement:()=>de});var t={};n.r(t),n.d(t,{STATIC_MEDIA_URL:()=>Dt,alignTypes:()=>m,fileType:()=>y,fittingTypes:()=>g,getData:()=>Nt,getFileExtension:()=>U,getPlaceholder:()=>Ft,htmlTag:()=>_,isWEBP:()=>N,populateGlobalFeatureSupport:()=>K,sdk:()=>$t,upscaleMethods:()=>I});var e=n(448),i=n.n(e),o=n(883);const a="DpEFnE",s="v1",c=2,u=1920,h=1920,l=1e3,d=1e3,g={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"},f={FIT:"fit",FILL:"fill",FILL_FOCAL:"fill_focal",CROP:"crop",LEGACY_CROP:"legacy_crop",LEGACY_FILL:"legacy_fill"},m={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"},p={[m.CENTER]:{x:.5,y:.5},[m.TOP_LEFT]:{x:0,y:0},[m.TOP_RIGHT]:{x:1,y:0},[m.TOP]:{x:.5,y:0},[m.BOTTOM_LEFT]:{x:0,y:1},[m.BOTTOM_RIGHT]:{x:1,y:1},[m.BOTTOM]:{x:.5,y:1},[m.RIGHT]:{x:1,y:.5},[m.LEFT]:{x:0,y:.5}},T={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"},I={AUTO:"auto",CLASSIC:"classic",SUPER:"super"},E={classic:1,super:2},L={radius:"0.66",amount:"1.00",threshold:"0.01"},b={uri:"",css:{img:{},container:{}},attr:{img:{},container:{}},transformed:!1},w=25e6,A=[1.5,2,4],O={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}},R={HIGH:"HIGH",MEDIUM:"MEDIUM",LOW:"LOW",TINY:"TINY"},v={CONTRAST:"contrast",BRIGHTNESS:"brightness",SATURATION:"saturation",HUE:"hue",BLUR:"blur"},y={JPG:"jpg",JPEG:"jpeg",JPE:"jpe",PNG:"png",WEBP:"webp",WIX_ICO_MP:"wix_ico_mp",WIX_MP:"wix_mp",GIF:"gif",SVG:"svg",UNRECOGNIZED:"unrecognized"};y.JPG,y.JPEG,y.JPE,y.PNG,y.GIF,y.WEBP;function S(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 M(t){return t[t.length-1]}const G=[y.PNG,y.JPEG,y.JPG,y.JPE,y.WIX_ICO_MP,y.WIX_MP,y.WEBP],x=[y.JPEG,y.JPG,y.JPE];function C(t,e,i){return i&&e&&!(!(n=e.id)||!n.trim()||"none"===n.toLowerCase())&&Object.values(g).includes(t);var n}function P(t,e,i){return function(t,e,i){return void 0===i&&(i=!1),!(N(t)&&e&&!i)}(t,e,i)&&function(t){return G.includes(U(t))}(t)&&!/(^https?)|(^data)|(^\/\/)/.test(t)}function F(t){return U(t)===y.PNG}function N(t){return U(t)===y.WEBP}const k=["/","\\","?","<",">","|","\u201c",":",'"'].map(encodeURIComponent),H=["\\.","\\*"],B="_";function Y(t){return function(t){return x.includes(U(t))}(t)?y.JPG:F(t)?y.PNG:N(t)?y.WEBP:y.UNRECOGNIZED}function U(t){return(/[.]([^.]+)$/.exec(t)&&/[.]([^.]+)$/.exec(t)[1]||"").toLowerCase()}function $(t,e,i,n,r){let o;return o=r===f.FILL?function(t,e,i,n){return Math.max(i/t,n/e)}(t,e,i,n):r===f.FIT?function(t,e,i,n){return Math.min(i/t,n/e)}(t,e,i,n):1,o}function D(t,e,i,n,r,o){t=t||n.width,e=e||n.height;const{scaleFactor:a,width:s,height:c}=function(t,e,i,n,r){let o,a=i,s=n;if(o=$(t,e,i,n,r),r===f.FIT&&(a=t*o,s=e*o),a&&s&&a*s>w){const i=Math.sqrt(w/(a*s));a*=i,s*=i,o=$(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:c,forceUSM:u}=function(t,e,i,n){if("auto"===n)return function(t,e){const i=Z(t,e);return{optimizedScaleFactor:O[i].maxUpscale,upscaleMethodValue:E.classic,forceUSM:!1}}(t,e);if("super"===n)return function(t){return{optimizedScaleFactor:M(A),upscaleMethodValue:E.super,forceUSM:!(A.includes(t)||t>M(A))}}(i);return function(t,e){const i=Z(t,e);return{optimizedScaleFactor:O[i].maxUpscale,upscaleMethodValue:E.classic,forceUSM:!1}}(t,e)}(t,e,o,r);let h=i,l=n;if(o<=s)return{width:h,height:l,scaleFactor:o,upscaleMethodValue:c,forceUSM:u,cssUpscaleNeeded:!1};switch(a){case f.FILL:h=i*(s/o),l=n*(s/o);break;case f.FIT:h=t*s,l=e*s}return{width:h,height:l,scaleFactor:s,upscaleMethodValue:c,forceUSM:u,cssUpscaleNeeded:!0}}(t,e,s,c,o,a,i)}function z(t,e,i,n){const r=W(i)||function(t){return void 0===t&&(t=m.CENTER),p[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 j(t){return t.alignment&&T[t.alignment]||T[m.CENTER]}function W(t){let e;return!t||"number"!=typeof t.x||isNaN(t.x)||"number"!=typeof t.y||isNaN(t.y)||(e={x:q(Math.max(0,Math.min(100,t.x))/100,2),y:q(Math.max(0,Math.min(100,t.y))/100,2)}),e}function Z(t,e){const i=t*e;return i>O[R.HIGH].size?R.HIGH:i>O[R.MEDIUM].size?R.MEDIUM:i>O[R.LOW].size?R.LOW:R.TINY}function q(t,e){const i=Math.pow(10,e||0);return(t*i/i).toFixed(e)}function V(t){return t&&t.upscaleMethod&&I[t.upscaleMethod.toUpperCase()]||I.AUTO}const J={isMobile:!1},Q=function(t){return J[t]},X=function(t,e){J[t]=e};function K(){if("undefined"!=typeof window&&"undefined"!=typeof navigator){const t=window.matchMedia&&window.matchMedia("(max-width: 767px)").matches,e=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);X("isMobile",t&&e)}}function tt(t,e){const i={css:{container:{}}},{css:n}=i,{fittingType:r}=t;switch(r){case g.ORIGINAL_SIZE:case g.LEGACY_ORIGINAL_SIZE:case g.LEGACY_STRIP_ORIGINAL_SIZE:n.container.backgroundSize="auto",n.container.backgroundRepeat="no-repeat";break;case g.SCALE_TO_FIT:case g.LEGACY_STRIP_SCALE_TO_FIT:n.container.backgroundSize="contain",n.container.backgroundRepeat="no-repeat";break;case g.STRETCH:n.container.backgroundSize="100% 100%",n.container.backgroundRepeat="no-repeat";break;case g.SCALE_TO_FILL:case g.LEGACY_STRIP_SCALE_TO_FILL:n.container.backgroundSize="cover",n.container.backgroundRepeat="no-repeat";break;case g.TILE_HORIZONTAL:case g.LEGACY_STRIP_TILE_HORIZONTAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat-x";break;case g.TILE_VERTICAL:case g.LEGACY_STRIP_TILE_VERTICAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat-y";break;case g.TILE:case g.LEGACY_STRIP_TILE:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat";break;case g.LEGACY_STRIP_FIT_AND_TILE:n.container.backgroundSize="contain",n.container.backgroundRepeat="repeat";break;case g.FIT_AND_TILE:case g.LEGACY_BG_FIT_AND_TILE:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat";break;case g.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat-x";break;case g.LEGACY_BG_FIT_AND_TILE_VERTICAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat-y";break;case g.LEGACY_BG_NORMAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="no-repeat"}switch(e.alignment){case m.CENTER:n.container.backgroundPosition="center center";break;case m.LEFT:n.container.backgroundPosition="left center";break;case m.RIGHT:n.container.backgroundPosition="right center";break;case m.TOP:n.container.backgroundPosition="center top";break;case m.BOTTOM:n.container.backgroundPosition="center bottom";break;case m.TOP_RIGHT:n.container.backgroundPosition="right top";break;case m.TOP_LEFT:n.container.backgroundPosition="left top";break;case m.BOTTOM_RIGHT:n.container.backgroundPosition="right bottom";break;case m.BOTTOM_LEFT:n.container.backgroundPosition="left bottom"}return i}const et={[m.CENTER]:"center",[m.TOP]:"top",[m.TOP_LEFT]:"top left",[m.TOP_RIGHT]:"top right",[m.BOTTOM]:"bottom",[m.BOTTOM_LEFT]:"bottom left",[m.BOTTOM_RIGHT]:"bottom right",[m.LEFT]:"left",[m.RIGHT]:"right"},it={position:"absolute",top:"auto",right:"auto",bottom:"auto",left:"auto"};function nt(t,e){const i={css:{container:{},img:{}}},{css:n}=i,{fittingType:r}=t,o=e.alignment;switch(n.container.position="relative",r){case g.ORIGINAL_SIZE:case g.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 g.SCALE_TO_FIT:case g.LEGACY_FIT_WIDTH:case g.LEGACY_FIT_HEIGHT:case g.LEGACY_FULL:n.img.width=e.width,n.img.height=e.height,n.img.objectFit="contain",n.img.objectPosition=et[o]||"unset";break;case g.LEGACY_BG_NORMAL:n.img.width="100%",n.img.height="100%",n.img.objectFit="none",n.img.objectPosition=et[o]||"unset";break;case g.STRETCH:n.img.width=e.width,n.img.height=e.height,n.img.objectFit="fill";break;case g.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,it,function(t,e,i){return{[m.TOP_LEFT]:{top:0,left:0},[m.TOP_RIGHT]:{top:0,right:0},[m.TOP]:{top:0,left:e},[m.BOTTOM_LEFT]:{bottom:0,left:0},[m.BOTTOM_RIGHT]:{bottom:0,right:0},[m.BOTTOM]:{bottom:0,left:e},[m.RIGHT]:{top:t,right:0},[m.LEFT]:{top:t,left:0},[m.CENTER]:{width:i.width,height:i.height,objectFit:"none"}}}(t,i,e)[o])}return i}function rt(t,e){const i={css:{container:{}},attr:{container:{},img:{}}},{css:n,attr:r}=i,{fittingType:o}=t,a=e.alignment,{width:s,height:c}=t.src;let u;switch(n.container.position="relative",o){case g.ORIGINAL_SIZE:case g.LEGACY_ORIGINAL_SIZE:case g.TILE:t.parts&&t.parts.length?(r.img.width=t.parts[0].width,r.img.height=t.parts[0].height):(r.img.width=s,r.img.height=c),r.img.preserveAspectRatio="xMidYMid slice";break;case g.SCALE_TO_FIT:case g.LEGACY_FIT_WIDTH:case g.LEGACY_FIT_HEIGHT:case g.LEGACY_FULL:r.img.width="100%",r.img.height="100%",r.img.transform="",r.img.preserveAspectRatio="";break;case g.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 g.SCALE_TO_FILL:P(t.src.id)?(r.img.width=e.width,r.img.height=e.height):(u=function(t,e,i,n,r){const o=$(t,e,i,n,r);return{width:Math.round(t*o),height:Math.round(e*o)}}(s,c,e.width,e.height,f.FILL),r.img.width=u.width,r.img.height=u.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,s=0;o===g.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 c=Math.round(t/2),u=Math.round(i/2);switch(a){case m.TOP_LEFT:n=0,s=0;break;case m.TOP:n=c,s=0;break;case m.TOP_RIGHT:n=t,s=0;break;case m.LEFT:n=0,s=u;break;case m.CENTER:n=c,s=u;break;case m.RIGHT:n=t,s=u;break;case m.BOTTOM_LEFT:n=0,s=i;break;case m.BOTTOM:n=c,s=i;break;case m.BOTTOM_RIGHT:n=t,s=i}r.img.x=n,r.img.y=s}return r.container.width=e.width,r.container.height=e.height,r.container.viewBox=[0,0,e.width,e.height].join(" "),i}function ot(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(st(n)))),t.fittingType){case g.SCALE_TO_FIT:case g.LEGACY_FIT_WIDTH:case g.LEGACY_FIT_HEIGHT:case g.LEGACY_FULL:case g.FIT_AND_TILE:case g.LEGACY_BG_FIT_AND_TILE:case g.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:case g.LEGACY_BG_FIT_AND_TILE_VERTICAL:case g.LEGACY_BG_NORMAL:t.parts.push(at(t,i));break;case g.SCALE_TO_FILL:t.parts.push(function(t,e){const i=D(t.src.width,t.src.height,f.FILL,e,t.devicePixelRatio,t.upscaleMethod),n=W(t.focalPoint);return{transformType:n?f.FILL_FOCAL:f.FILL,width:Math.round(i.width),height:Math.round(i.height),alignment:j(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 g.STRETCH:t.parts.push(function(t,e){const i=$(t.src.width,t.src.height,e.width,e.height,f.FILL),n={...e};return n.width=t.src.width*i,n.height=t.src.height*i,at(t,n)}(t,i));break;case g.TILE_HORIZONTAL:case g.TILE_VERTICAL:case g.TILE:case g.LEGACY_ORIGINAL_SIZE:case g.ORIGINAL_SIZE:n=z(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(st(n));break;case g.LEGACY_STRIP_TILE_HORIZONTAL:case g.LEGACY_STRIP_TILE_VERTICAL:case g.LEGACY_STRIP_TILE:case g.LEGACY_STRIP_ORIGINAL_SIZE:t.parts.push(function(t){return{transformType:f.LEGACY_CROP,width:Math.round(t.width),height:Math.round(t.height),alignment:j(t),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}(i));break;case g.LEGACY_STRIP_SCALE_TO_FIT:case g.LEGACY_STRIP_FIT_AND_TILE:t.parts.push(function(t){return{transformType:f.FIT,width:Math.round(t.width),height:Math.round(t.height),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(i));break;case g.LEGACY_STRIP_SCALE_TO_FILL:t.parts.push(function(t){return{transformType:f.LEGACY_FILL,width:Math.round(t.width),height:Math.round(t.height),alignment:j(t),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(i))}}function at(t,e){const i=D(t.src.width,t.src.height,f.FIT,e,t.devicePixelRatio,t.upscaleMethod);return{transformType:!t.src.width||!t.src.height?f.FIT:f.FILL,width:Math.round(i.width),height:Math.round(i.height),alignment:T.center,upscale:i.scaleFactor>1,forceUSM:i.forceUSM,scaleFactor:i.scaleFactor,cssUpscaleNeeded:i.cssUpscaleNeeded,upscaleMethodValue:i.upscaleMethodValue}}function st(t){return{transformType:f.CROP,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 ct(t,e){e=e||{},t.quality=function(t,e){const i=t.fileType===y.PNG,n=t.fileType===y.JPG,r=t.fileType===y.WEBP,o=n||i||r;if(o){const n=M(t.parts),r=(a=n.width,s=n.height,O[Z(a,s)].quality);let o=e.quality&&e.quality>=5&&e.quality<=90?e.quality:r;return o=i?o+5:o,o}var a,s;return 0}(t,e),t.progressive=function(t){return!1!==t.progressive}(e),t.watermark=function(t){return t.watermark}(e),t.autoEncode=e.autoEncode??!0,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:q(null==(i=e.unsharpMask)?void 0:i.radius,2),amount:q(null==(n=e.unsharpMask)?void 0:n.amount,2),threshold:q(null==(r=e.unsharpMask)?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=M(t.parts);return!(e.scaleFactor>=1)||e.forceUSM||e.transformType===f.FIT}(t))return L;var o;return}(t,e),t.filters=function(t){const e=t.filters||{},i={};ut(e[v.CONTRAST],-100,100)&&(i[v.CONTRAST]=e[v.CONTRAST]);ut(e[v.BRIGHTNESS],-100,100)&&(i[v.BRIGHTNESS]=e[v.BRIGHTNESS]);ut(e[v.SATURATION],-100,100)&&(i[v.SATURATION]=e[v.SATURATION]);ut(e[v.HUE],-180,180)&&(i[v.HUE]=e[v.HUE]);ut(e[v.BLUR],0,100)&&(i[v.BLUR]=e[v.BLUR]);return i}(e)}function ut(t,e,i){return"number"==typeof t&&!isNaN(t)&&0!==t&&t>=e&&t<=i}function ht(t,e,i,n){const r=function(t){return(null==t?void 0:t.isSEOBot)??!1}(n),o=Y(e.id),a=function(t,e){const i=/\.([^.]*)$/,n=new RegExp(`(${k.concat(H).join("|")})`,"g");if(e&&e.length){let t=e;const r=e.match(i);return r&&G.includes(r[1])&&(t=e.replace(i,"")),encodeURIComponent(t).replace(n,B)}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,c)}(i),u=U(e.id),h=u,l=P(e.id,null==n?void 0:n.hasAnimation,null==n?void 0:n.allowAnimatedTransform),d={fileName:a,fileExtension:u,fileType:o,fittingType:t,preferredExtension:h,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:V(n),progressive:!0,watermark:"",unsharpMask:{},filters:{},transformed:l};return l&&(ot(d,e,i),ct(d,n)),d}function lt(t,e,i){const n={...i},r=Q("isMobile");switch(t){case g.LEGACY_BG_FIT_AND_TILE:case g.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:case g.LEGACY_BG_FIT_AND_TILE_VERTICAL:case g.LEGACY_BG_NORMAL:const t=r?l:u,i=r?d:h;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}const dt=S`fit/w_${"width"},h_${"height"}`,gt=S`fill/w_${"width"},h_${"height"},al_${"alignment"}`,ft=S`fill/w_${"width"},h_${"height"},fp_${"focalPointX"}_${"focalPointY"}`,mt=S`crop/x_${"x"},y_${"y"},w_${"width"},h_${"height"}`,pt=S`crop/w_${"width"},h_${"height"},al_${"alignment"}`,Tt=S`fill/w_${"width"},h_${"height"},al_${"alignment"}`,_t=S`,lg_${"upscaleMethodValue"}`,It=S`,q_${"quality"}`,Et=S`,usm_${"radius"}_${"amount"}_${"threshold"}`,Lt=S`,bl`,bt=S`,wm_${"watermark"}`,wt={[v.CONTRAST]:S`,con_${"contrast"}`,[v.BRIGHTNESS]:S`,br_${"brightness"}`,[v.SATURATION]:S`,sat_${"saturation"}`,[v.HUE]:S`,hue_${"hue"}`,[v.BLUR]:S`,blur_${"blur"}`},At=S`,enc_auto`;function Ot(t,e,i,n,r){var o,a;if(void 0===n&&(n={}),P(e.id,null==(o=n)?void 0:o.hasAnimation,null==(a=n)?void 0:a.allowAnimatedTransform)){if(N(e.id)){const{alignment:o,...a}=i;e.focalPoint={x:void 0,y:void 0},null==e||delete e.crop,r=ht(t,e,a,n)}else r=r||ht(t,e,i,n);return function(t){const e=[];t.parts.forEach((t=>{switch(t.transformType){case f.CROP:e.push(mt(t));break;case f.LEGACY_CROP:e.push(pt(t));break;case f.LEGACY_FILL:let i=Tt(t);t.upscale&&(i+=_t(t)),e.push(i);break;case f.FIT:let n=dt(t);t.upscale&&(n+=_t(t)),e.push(n);break;case f.FILL:let r=gt(t);t.upscale&&(r+=_t(t)),e.push(r);break;case f.FILL_FOCAL:let o=ft(t);t.upscale&&(o+=_t(t)),e.push(o)}}));let i=e.join("/");return t.quality&&(i+=It(t)),t.unsharpMask&&(i+=Et(t.unsharpMask)),t.progressive||(i+=Lt(t)),t.watermark&&(i+=bt(t)),t.filters&&(i+=Object.keys(t.filters).map((e=>wt[e](t.filters))).join("")),t.autoEncode&&t.fileType!==y.GIF&&(i+=At(t)),`${t.src.id}/${s}/${i}/${t.fileName}.${t.preferredExtension}`}(r)}return e.id}const Rt={[m.CENTER]:"50% 50%",[m.TOP_LEFT]:"0% 0%",[m.TOP_RIGHT]:"100% 0%",[m.TOP]:"50% 0%",[m.BOTTOM_LEFT]:"0% 100%",[m.BOTTOM_RIGHT]:"100% 100%",[m.BOTTOM]:"50% 100%",[m.RIGHT]:"100% 50%",[m.LEFT]:"0% 50%"},vt=Object.entries(Rt).reduce(((t,e)=>{let[i,n]=e;return t[n]=i,t}),{}),yt=[g.TILE,g.TILE_HORIZONTAL,g.TILE_VERTICAL,g.LEGACY_BG_FIT_AND_TILE,g.LEGACY_BG_FIT_AND_TILE_HORIZONTAL,g.LEGACY_BG_FIT_AND_TILE_VERTICAL],St=[g.LEGACY_ORIGINAL_SIZE,g.ORIGINAL_SIZE,g.LEGACY_BG_NORMAL];function Mt(t,e,i){let{width:n,height:r}=i;return t===g.TILE&&e.width>n&&e.height>r}function Gt(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}}function xt(t,e,i,n){void 0===n&&(n="center");const r={img:{},container:{}};if(t===g.SCALE_TO_FILL){const t=e.focalPoint&&function(t){const e=`${t.x}% ${t.y}%`;return vt[e]||""}(e.focalPoint),o=t||n;e.focalPoint&&!t?r.img={objectPosition:Ct(e,i,e.focalPoint)}:r.img={objectPosition:Rt[o]}}else[g.LEGACY_ORIGINAL_SIZE,g.ORIGINAL_SIZE].includes(t)?r.img={objectFit:"none",top:"auto",left:"auto",right:"auto",bottom:"auto"}:yt.includes(t)&&(r.container={backgroundSize:`${e.width}px ${e.height}px`});return r}function Ct(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,l=r*u,d=Math.max(0,Math.min(h-o,h*(s/100)-o/2)),g=Math.max(0,Math.min(l-a,l*(c/100)-a/2));return`${d&&Math.floor(d/(h-o)*100)}% ${g&&Math.floor(g/(l-a)*100)}%`}const Pt={width:"100%",height:"100%"};function Ft(t,e,i,n){void 0===n&&(n={});const{autoEncode:r=!0,isSEOBot:o,shouldLoadHQImage:a,hasAnimation:s,allowAnimatedTransform:c}=n;if(!C(t,e,i)||function(t){return U(t)===y.GIF}(e.id)&&c)return b;const u=P(e.id,s,c);if(!u||a)return Nt(t,e,i,{...n,autoEncode:r,useSrcset:u});const h={...i,...Gt(e,i)},{alignment:l,htmlTag:d}=h,f=Mt(t,e,h),m=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=!St.includes(t),s=Mt(t,e,{width:r,height:o}),c=!s&&yt.includes(t),u=c?e.width:r,h=c?e.height:o,l=a?function(t,e){return t>900?e?.05:.15:t>500?e?.1:.18:t>200?.25:1}(u,F(e.id)):1;return{width:s?1920:u*l,height:h*l}}(t,e,h,o),p=function(t,e,i){return i?0:yt.includes(e)?1:t>200?2:3}(h.width,t,o),T=function(t,e){const i=yt.includes(t)&&!e;return t===g.SCALE_TO_FILL||i?g.SCALE_TO_FIT:t}(t,f),_=xt(t,e,i,l),{uri:I}=Nt(T,e,{...m,alignment:l,htmlTag:d},{autoEncode:r,filters:p?{blur:p}:{},hasAnimation:s,allowAnimatedTransform:c}),{attr:E={},css:L}=Nt(t,e,{...h,alignment:l,htmlTag:d},{});return L.img=L.img||{},L.container=L.container||{},Object.assign(L.img,_.img,Pt),Object.assign(L.container,_.container),{uri:I,css:L,attr:E,transformed:!0}}function Nt(t,e,i,n){let r={};if(C(t,e,i)){const o=lt(t,e,i),a=ht(t,e,o,n);r.uri=Ot(t,e,o,n,a),null!=n&&n.useSrcset&&(r.srcset=function(t,e,i,n,r){const o=i.pixelAspectRatio||1;return{dpr:[`${1===o?r.uri:Ot(t,e,{...i,pixelAspectRatio:1},n)} 1x`,`${2===o?r.uri:Ot(t,e,{...i,pixelAspectRatio:2},n)} 2x`]}}(t,e,o,n,r)),Object.assign(r,function(t,e){let i;return i=e.htmlTag===_.BG?tt:e.htmlTag===_.SVG?rt:nt,i(t,e)}(a,o),{transformed:a.transformed})}else r=b;return r}function kt(t,e,i,n){if(C(t,e,i)){const r=lt(t,e,i);return{uri:Ot(t,e,r,n||{},ht(t,e,r,n))}}return{uri:""}}const Ht="https://static.wixstatic.com/media/",Bt=/^media\//i,Yt="undefined"!=typeof window?window.devicePixelRatio:1,Ut=(t,e)=>{const i=e&&e.baseHostURL;return i?`${i}${t}`:(t=>Bt.test(t)?`https://static.wixstatic.com/${t}`:`${Ht}${t}`)(t)};K(),K();const $t={getScaleToFitImageURL:function(t,e,i,n,r,o){const a=kt(g.SCALE_TO_FIT,{id:t,width:e,height:i,name:o&&o.name},{width:n,height:r,htmlTag:_.IMG,alignment:m.CENTER,pixelAspectRatio:(null==o?void 0:o.devicePixelRatio)??Yt},o);return Ut(a.uri,o)},getScaleToFillImageURL:function(t,e,i,n,r,o){const a=kt(g.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:m.CENTER,pixelAspectRatio:(null==o?void 0:o.devicePixelRatio)??Yt},o);return Ut(a.uri,o)},getCropImageURL:function(t,e,i,n,r,o,a,s,c,u){const h=kt(g.SCALE_TO_FILL,{id:t,width:e,height:i,name:u&&u.name,crop:{x:n,y:r,width:o,height:a}},{width:s,height:c,htmlTag:_.IMG,alignment:m.CENTER,pixelAspectRatio:(null==u?void 0:u.devicePixelRatio)??Yt},u);return Ut(h.uri,u)}},Dt=Ht,{STATIC_MEDIA_URL:zt}=t,jt=t=>{let{fittingType:e,src:i,target:n,options:r}=t;const o=Ft(e,i,n,{...r,autoEncode:!0});return null!=o&&o.uri&&!/^[a-z]+:/.test(o.uri)&&(o.uri=`${zt}${o.uri}`),o},Wt=/^[a-z]+:/,Zt=t=>{var e,n;const{id:r,containerId:s,uri:c,alt:u,name:h="",role:l,width:d,height:g,displayMode:f,devicePixelRatio:m,quality:p,alignType:T,bgEffectName:_="",focalPoint:I,upscaleMethod:E,className:L="",crop:b,imageStyles:w={},targetWidth:A,targetHeight:O,targetScale:R,onLoad:v=()=>{},onError:y=()=>{},shouldUseLQIP:S,containerWidth:M,containerHeight:G,getPlaceholder:x,isInFirstFold:C,placeholderTransition:P,socialAttrs:F,isSEOBot:N,skipMeasure:k,hasAnimation:H,allowAnimatedTransform:B}=t,Y=o.useRef(null);let U="";const $="blur"===P,D=o.useRef(null);if(!D.current)if(x||S||C||N){const t={upscaleMethod:E,...p||{},shouldLoadHQImage:C,isSEOBot:N,hasAnimation:H,allowAnimatedTransform:B};D.current=(x||jt)({fittingType:f,src:{id:c,width:d,height:g,crop:b,name:h,focalPoint:I},target:{width:M,height:G,alignment:T,htmlTag:"img"},options:t}),U=!D.current.transformed||C||N?"":"true"}else D.current={uri:void 0,css:{img:{}},attr:{img:{},container:{}},transformed:!1};const z=!N&&(x||S)&&!C&&D.current.transformed,j=o.useMemo((()=>JSON.stringify({containerId:s,...s&&{containerId:s},...T&&{alignType:T},...k&&{skipMeasure:!0},displayMode:f,...M&&{targetWidth:M},...G&&{targetHeight:G},...A&&{targetWidth:A},...O&&{targetHeight:O},...R&&{targetScale:R},isLQIP:z,isSEOBot:N,lqipTransition:P,imageData:{width:d,height:g,uri:c,name:h,displayMode:f,hasAnimation:H,...p&&{quality:p},...m&&{devicePixelRatio:m},...I&&{focalPoint:I},...b&&{crop:b},...E&&{upscaleMethod:E}}})),[s,T,k,f,G,M,A,O,R,z,N,P,d,g,c,h,p,m,I,b,E,H]),W=D.current,Z=null==W?void 0:W.uri,q=null==W?void 0:W.srcset,V=null==(e=W.css)?void 0:e.img,J=`${a} ${L}`;o.useEffect((()=>{const t=Y.current;v&&null!=t&&t.currentSrc&&null!=t&&t.complete&&v({target:t})}),[]);const Q=!W||null!=W&&W.transformed?A?`${A}px`:null:`max(${d}px, 100%)`;return o.createElement("wow-image",{id:r,class:J,"data-image-info":j,"data-motion-part":"BG_IMG","data-bg-effect-name":_,"data-has-ssr-src":U,"data-animate-blur":!N&&z&&$?"":void 0,style:Q?{"--wix-img-max-width":Q}:{}},o.createElement("img",i()({src:Z,ref:Y,alt:u||"",role:l,style:{...V,...w},onLoad:v,onError:y,width:M||void 0,height:G||void 0},F,{srcSet:C?null==q||null==(n=q.dpr)?void 0:n.map((t=>Wt.test(t)?t:`${zt}${t}`)).join(", "):void 0,fetchpriority:C?"high":void 0,loading:!1===C?"lazy":void 0,suppressHydrationWarning:!0})))};var qt=n(99),Vt=n.n(qt);const Jt={columnCount:1,columns:1,fontWeight:1,lineHeight:1,opacity:1,zIndex:1,zoom:1},Qt=(t,e)=>(Array.isArray(e)?e:[e]).reduce(((e,i)=>{const n=t[i];return void 0!==n?Object.assign(e,{[i]:n}):e}),{}),Xt=(t,e)=>t&&e&&Object.keys(e).forEach((i=>{const n=i,r=e[n];void 0!==r?t.style[n]=((t,e)=>"number"!=typeof e||Jt[t]?e.toString():`${e}px`)(n,r):t.style.removeProperty(n)})),Kt=(t,e,i)=>{if(!t.targetWidth||!t.targetHeight||!t.imageData.uri)return{uri:"",css:{},transformed:!1};const{imageData:n}=t,r=t.displayMode||g.SCALE_TO_FILL,o=Object.assign(Qt(n,["upscaleMethod"]),Qt(t,"filters"),t.quality||n.quality,{hasAnimation:(null==t?void 0:t.hasAnimation)||(null==n?void 0:n.hasAnimation)}),a=t.imageData.devicePixelRatio||e.devicePixelRatio,s=ee(a),c=Nt(r,Object.assign(Qt(n,["width","height","crop","name","focalPoint"]),{id:n.uri}),{width:t.targetWidth,height:t.targetHeight,htmlTag:i||"img",pixelAspectRatio:s,alignment:t.alignType||m.CENTER},o);return c.uri=te(c.uri,e.staticMediaUrl,e.mediaRootUrl),c},te=(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},ee=t=>{const e=window.location.search.split("&").map((t=>t.split("="))).find((t=>{var e;return null==(e=t[0])?void 0:e.toLowerCase().includes("devicepixelratio")}));return(null!=e&&e[1]?Number(e[1]):null)||t||1},ie=t=>t.getAttribute("src"),ne=80;const re={measure:function(t,e,i,n,r){let{containerElm:o,bgEffect:a="none",sourceSets:s}=n;const c=i.image,u=i[t],h=(null==r.getScreenHeightOverride?void 0:r.getScreenHeightOverride())||document.documentElement.clientHeight||window.innerHeight||0,l=null==o?void 0:o.dataset.mediaHeightOverrideType,d=a&&"none"!==a||s&&s.some((t=>t.scrollEffect)),g=o&&d?o:u,f=window.getComputedStyle(u).getPropertyValue("--bg-scrub-effect"),{width:m,height:p}=(null==r.getMediaDimensionsByEffect?void 0:r.getMediaDimensionsByEffect(f||a,g.offsetWidth,g.offsetHeight,h))||{width:u.offsetWidth,height:u.offsetHeight};if(s&&(e.sourceSetsTargetHeights=function(t,e,i,n,r){const o={};return t.forEach((t=>{let{mediaQuery:a,scrollEffect:s}=t;o[a]=r.getMediaDimensionsByEffect(s,e,i,n).height})),o}(s,g.offsetWidth,g.offsetHeight,h,r)),!c)return;const T=ie(c);f&&(e.top=.5*(u.offsetHeight-p),e.left=.5*(u.offsetWidth-m)),e.width=m,e.height=function(t,e){return"fixed"===e||"viewport"===e?document.documentElement.clientHeight+ne:t}(p,l),e.screenHeight=h,e.imgSrc=T,e.boundingRect=u.getBoundingClientRect(),e.mediaHeightOverrideType=l,e.srcset=c.srcset},patch:function(t,e,i,n,r,o,a,s,c,u){var h;if(!Object.keys(e).length)return;const{imageData:l}=n,d=i[t],g=i.image;c&&(l.devicePixelRatio=1);const f=n.targetScale||1,m={...n,...!n.skipMeasure&&{targetWidth:(e.width||0)*f,targetHeight:(e.height||0)*f},displayMode:l.displayMode},p=null==r.isExperimentOpen?void 0:r.isExperimentOpen("specs.thunderbolt.allowAnimatedImageTransform"),T=Kt(m,o,"img"),_=(null==T||null==(h=T.css)?void 0:h.img)||{},I=function(t,e,i,n,r){const o=function(t,e){return void 0===e&&(e=1),1!==e?{...t,width:"100%",height:"100%"}:t}(e,n);if(r&&(delete o.height,o.width="100%"),!t)return o;const a={...o};return"fill"===i?(a.position="absolute",a.top="0"):"fit"===i&&(a.height="100%"),"fixed"===t&&(a["will-change"]="transform"),a.objectPosition&&(a.objectPosition=e.objectPosition.replace(/(center|bottom)$/,"top")),a}(e.mediaHeightOverrideType,_,l.displayMode,f,s);Xt(g,I),(e.top||e.left)&&Xt(d,{top:`${e.top}px`,left:`${e.left}px`});const E=(null==T?void 0:T.uri)||"",L=(null==l?void 0:l.hasAnimation)||(null==n?void 0:n.hasAnimation),b=function(t,e,i){const{sourceSets:n}=e;if(!n||!n.length)return;const r={};return n.forEach((n=>{let{mediaQuery:o,crop:a,focalPoint:s}=n;const c={...e,targetHeight:(t.sourceSetsTargetHeights||{})[o]||0,imageData:{...e.imageData,crop:a,focalPoint:s}},u=Kt(c,i,"img");r[o]=u.uri||""})),r}(e,m,o);if((null==r.isExperimentOpen?void 0:r.isExperimentOpen("specs.thunderbolt.wowImageSsrHydrationFix"))?u&&(g.dataset.ssrSrcDone="true"):d.setAttribute("data-has-ssr-src",""),n.isLQIP&&n.lqipTransition&&!("transitioned"in d.dataset)&&(d.dataset.transitioned="",g.complete?g.onload=function(){g.dataset.loadDone=""}:g.onload=function(){g.complete?g.dataset.loadDone="":g.onload=function(){g.dataset.loadDone=""}}),a){((t,e)=>U(t)===y.GIF||U(t)===y.WEBP&&e)(l.uri,L)&&p?(g.setAttribute("fetchpriority","low"),g.setAttribute("loading","lazy"),g.setAttribute("decoding","async")):g.setAttribute("fetchpriority","high"),g.currentSrc!==E&&g.setAttribute("src",E);e.srcset&&!e.srcset.split(", ").some((t=>t.split(" ")[0]===E))&&g.setAttribute("srcset",E),i.picture&&m.sourceSets&&Array.from(i.picture.querySelectorAll("source")).forEach((t=>{const e=t.media||"",i=null==b?void 0:b[e];t.srcset!==i&&t.setAttribute("srcset",i||"")}))}}},oe={parallax:"ImageParallax",fixed:"ImageReveal"};const ae=function(t,e,i){return class extends i.HTMLElement{constructor(){super(),Vt()(this,"childListObserver",void 0),Vt()(this,"timeoutId",void 0),this.childListObserver=null,this.timeoutId=null}attributeChangedCallback(t,e){e&&this.reLayout()}connectedCallback(){e.disableImagesLazyLoading?this.reLayout():this.observeIntersect()}disconnectedCallback(){this.unobserveResize(),this.unobserveIntersect(),this.unobserveChildren()}static get observedAttributes(){return["data-image-info"]}reLayout(){const n={},r={},o=this.getAttribute("id"),a=JSON.parse(this.dataset.imageInfo||""),s="true"===this.dataset.isResponsive,{bgEffectName:c}=this.dataset,{scrollEffect:u}=a.imageData,{sourceSets:h}=a,l=c||u&&oe[u];h&&h.length&&h.forEach((t=>{t.scrollEffect&&(t.scrollEffect=oe[t.scrollEffect])})),n[o]=this,a.containerId&&(n[a.containerId]=i.document.getElementById(`${a.containerId}`));const d=a.containerId?n[a.containerId]:void 0;if(n.image=this.querySelector("img"),n.picture=this.querySelector("picture"),!n.image){const t=this;return void this.observeChildren(t)}this.unobserveChildren(),this.observeChildren(this),t.mutationService.measure((()=>{re.measure(o,r,n,{containerElm:d,bgEffect:l,sourceSets:h},t)}));const g=(i,c)=>{t.mutationService.mutate((()=>{re.patch(o,r,n,a,t,e,i,s,l,c)}))},f=n.image,m=(null==t.isExperimentOpen?void 0:t.isExperimentOpen("specs.thunderbolt.wowImageSsrHydrationFix"))?this.dataset.hasSsrSrc&&!f.dataset.ssrSrcDone:this.dataset.hasSsrSrc;!ie(f)||m?g(!0,!0):this.debounceImageLoad(g)}debounceImageLoad(t){clearTimeout(this.timeoutId),this.timeoutId=i.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)}observeIntersect(){var e;null==(e=t.intersectionService)||e.observe(this)}unobserveIntersect(){var e;null==(e=t.intersectionService)||e.unobserve(this)}observeChildren(t){this.childListObserver||(this.childListObserver=new i.MutationObserver((()=>{this.reLayout()}))),this.childListObserver.observe(t,{childList:!0})}unobserveChildren(){this.childListObserver&&(this.childListObserver.disconnect(),this.childListObserver=null)}}};var se=n(709),ce=n.n(se);const ue=()=>/iemobile/i.test(navigator.userAgent)?Math.round(window.screen.availWidth/(window.screen.width||window.document.documentElement.clientWidth)):window.devicePixelRatio,he="https://static.wixstatic.com/media",le="https://static.wixstatic.com";function de(t,e,i){if(void 0===t&&(t={}),void 0===e&&(e=null),void 0===i&&(i={}),"undefined"==typeof window)return;const n={staticMediaUrl:he,mediaRootUrl:le,experiments:{},devicePixelRatio:ue(),...i},r=function(t,e){const i="wow-image";if(void 0===(t=t||window).customElements.get(i)){let n,r;return t.ResizeObserver&&(n=new t.ResizeObserver((t=>t.map((t=>t.target.reLayout()))))),t.IntersectionObserver&&(r=new IntersectionObserver((t=>t.map((t=>{if(t.isIntersecting){const e=t.target;e.unobserveIntersect(),e.observeResize()}return t}))),{rootMargin:"150% 100%"})),function(o){const a=ae({resizeService:n,intersectionService:r,mutationService:ce(),...e},o,t);t.customElements.define(i,a)}}}(e,t);r&&r(n)}})(),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,(t=>(()=>{var e={709: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:void 0!==this?this:globalThis)},883:e=>{"use strict";e.exports=t},99:(t,e,i)=>{var n=i(602);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},448: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)({}).hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},t.exports.__esModule=!0,t.exports.default=t.exports,e.apply(null,arguments)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},751:(t,e,i)=>{var n=i(284).default;t.exports=function(t,e){if("object"!=n(t)||!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},602:(t,e,i)=>{var n=i(284).default,r=i(751);t.exports=function(t){var e=r(t,"string");return"symbol"==n(e)?e:e+""},t.exports.__esModule=!0,t.exports.default=t.exports},284: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=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(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=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{Image:()=>Zt,imageKit:()=>t,initCustomElement:()=>de});var t={};n.r(t),n.d(t,{STATIC_MEDIA_URL:()=>Dt,alignTypes:()=>m,fileType:()=>y,fittingTypes:()=>g,getData:()=>Nt,getFileExtension:()=>U,getPlaceholder:()=>Ft,htmlTag:()=>_,isWEBP:()=>N,populateGlobalFeatureSupport:()=>K,sdk:()=>$t,upscaleMethods:()=>I});var e=n(448),i=n.n(e),o=n(883);const a="DpEFnE",s="v1",c=2,u=1920,h=1920,l=1e3,d=1e3,g={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"},f={FIT:"fit",FILL:"fill",FILL_FOCAL:"fill_focal",CROP:"crop",LEGACY_CROP:"legacy_crop",LEGACY_FILL:"legacy_fill"},m={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"},p={[m.CENTER]:{x:.5,y:.5},[m.TOP_LEFT]:{x:0,y:0},[m.TOP_RIGHT]:{x:1,y:0},[m.TOP]:{x:.5,y:0},[m.BOTTOM_LEFT]:{x:0,y:1},[m.BOTTOM_RIGHT]:{x:1,y:1},[m.BOTTOM]:{x:.5,y:1},[m.RIGHT]:{x:1,y:.5},[m.LEFT]:{x:0,y:.5}},T={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"},I={AUTO:"auto",CLASSIC:"classic",SUPER:"super"},E={classic:1,super:2},L={radius:"0.66",amount:"1.00",threshold:"0.01"},b={uri:"",css:{img:{},container:{}},attr:{img:{},container:{}},transformed:!1},w=25e6,A=[1.5,2,4],O={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}},R={HIGH:"HIGH",MEDIUM:"MEDIUM",LOW:"LOW",TINY:"TINY"},v={CONTRAST:"contrast",BRIGHTNESS:"brightness",SATURATION:"saturation",HUE:"hue",BLUR:"blur"},y={JPG:"jpg",JPEG:"jpeg",JPE:"jpe",PNG:"png",WEBP:"webp",WIX_ICO_MP:"wix_ico_mp",WIX_MP:"wix_mp",GIF:"gif",SVG:"svg",UNRECOGNIZED:"unrecognized"};y.JPG,y.JPEG,y.JPE,y.PNG,y.GIF,y.WEBP;function S(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 M(t){return t[t.length-1]}const G=[y.PNG,y.JPEG,y.JPG,y.JPE,y.WIX_ICO_MP,y.WIX_MP,y.WEBP],x=[y.JPEG,y.JPG,y.JPE];function C(t,e,i){return i&&e&&!(!(n=e.id)||!n.trim()||"none"===n.toLowerCase())&&Object.values(g).includes(t);var n}function P(t,e,i){return function(t,e,i){return void 0===i&&(i=!1),!(N(t)&&e&&!i)}(t,e,i)&&function(t){return G.includes(U(t))}(t)&&!/(^https?)|(^data)|(^\/\/)/.test(t)}function F(t){return U(t)===y.PNG}function N(t){return U(t)===y.WEBP}const k=["/","\\","?","<",">","|","\u201c",":",'"'].map(encodeURIComponent),H=["\\.","\\*"],B="_";function Y(t){return function(t){return x.includes(U(t))}(t)?y.JPG:F(t)?y.PNG:N(t)?y.WEBP:y.UNRECOGNIZED}function U(t){return(/[.]([^.]+)$/.exec(t)&&/[.]([^.]+)$/.exec(t)[1]||"").toLowerCase()}function $(t,e,i,n,r){let o;return o=r===f.FILL?function(t,e,i,n){return Math.max(i/t,n/e)}(t,e,i,n):r===f.FIT?function(t,e,i,n){return Math.min(i/t,n/e)}(t,e,i,n):1,o}function D(t,e,i,n,r,o){t=t||n.width,e=e||n.height;const{scaleFactor:a,width:s,height:c}=function(t,e,i,n,r){let o,a=i,s=n;if(o=$(t,e,i,n,r),r===f.FIT&&(a=t*o,s=e*o),a&&s&&a*s>w){const i=Math.sqrt(w/(a*s));a*=i,s*=i,o=$(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:c,forceUSM:u}=function(t,e,i,n){if("auto"===n)return function(t,e){const i=Z(t,e);return{optimizedScaleFactor:O[i].maxUpscale,upscaleMethodValue:E.classic,forceUSM:!1}}(t,e);if("super"===n)return function(t){return{optimizedScaleFactor:M(A),upscaleMethodValue:E.super,forceUSM:!(A.includes(t)||t>M(A))}}(i);return function(t,e){const i=Z(t,e);return{optimizedScaleFactor:O[i].maxUpscale,upscaleMethodValue:E.classic,forceUSM:!1}}(t,e)}(t,e,o,r);let h=i,l=n;if(o<=s)return{width:h,height:l,scaleFactor:o,upscaleMethodValue:c,forceUSM:u,cssUpscaleNeeded:!1};switch(a){case f.FILL:h=i*(s/o),l=n*(s/o);break;case f.FIT:h=t*s,l=e*s}return{width:h,height:l,scaleFactor:s,upscaleMethodValue:c,forceUSM:u,cssUpscaleNeeded:!0}}(t,e,s,c,o,a,i)}function z(t,e,i,n){const r=W(i)||function(t){return void 0===t&&(t=m.CENTER),p[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 j(t){return t.alignment&&T[t.alignment]||T[m.CENTER]}function W(t){let e;return!t||"number"!=typeof t.x||isNaN(t.x)||"number"!=typeof t.y||isNaN(t.y)||(e={x:q(Math.max(0,Math.min(100,t.x))/100,2),y:q(Math.max(0,Math.min(100,t.y))/100,2)}),e}function Z(t,e){const i=t*e;return i>O[R.HIGH].size?R.HIGH:i>O[R.MEDIUM].size?R.MEDIUM:i>O[R.LOW].size?R.LOW:R.TINY}function q(t,e){const i=Math.pow(10,e||0);return(t*i/i).toFixed(e)}function V(t){return t&&t.upscaleMethod&&I[t.upscaleMethod.toUpperCase()]||I.AUTO}const J={isMobile:!1},Q=function(t){return J[t]},X=function(t,e){J[t]=e};function K(){if("undefined"!=typeof window&&"undefined"!=typeof navigator){const t=window.matchMedia&&window.matchMedia("(max-width: 767px)").matches,e=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);X("isMobile",t&&e)}}function tt(t,e){const i={css:{container:{}}},{css:n}=i,{fittingType:r}=t;switch(r){case g.ORIGINAL_SIZE:case g.LEGACY_ORIGINAL_SIZE:case g.LEGACY_STRIP_ORIGINAL_SIZE:n.container.backgroundSize="auto",n.container.backgroundRepeat="no-repeat";break;case g.SCALE_TO_FIT:case g.LEGACY_STRIP_SCALE_TO_FIT:n.container.backgroundSize="contain",n.container.backgroundRepeat="no-repeat";break;case g.STRETCH:n.container.backgroundSize="100% 100%",n.container.backgroundRepeat="no-repeat";break;case g.SCALE_TO_FILL:case g.LEGACY_STRIP_SCALE_TO_FILL:n.container.backgroundSize="cover",n.container.backgroundRepeat="no-repeat";break;case g.TILE_HORIZONTAL:case g.LEGACY_STRIP_TILE_HORIZONTAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat-x";break;case g.TILE_VERTICAL:case g.LEGACY_STRIP_TILE_VERTICAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat-y";break;case g.TILE:case g.LEGACY_STRIP_TILE:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat";break;case g.LEGACY_STRIP_FIT_AND_TILE:n.container.backgroundSize="contain",n.container.backgroundRepeat="repeat";break;case g.FIT_AND_TILE:case g.LEGACY_BG_FIT_AND_TILE:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat";break;case g.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat-x";break;case g.LEGACY_BG_FIT_AND_TILE_VERTICAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat-y";break;case g.LEGACY_BG_NORMAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="no-repeat"}switch(e.alignment){case m.CENTER:n.container.backgroundPosition="center center";break;case m.LEFT:n.container.backgroundPosition="left center";break;case m.RIGHT:n.container.backgroundPosition="right center";break;case m.TOP:n.container.backgroundPosition="center top";break;case m.BOTTOM:n.container.backgroundPosition="center bottom";break;case m.TOP_RIGHT:n.container.backgroundPosition="right top";break;case m.TOP_LEFT:n.container.backgroundPosition="left top";break;case m.BOTTOM_RIGHT:n.container.backgroundPosition="right bottom";break;case m.BOTTOM_LEFT:n.container.backgroundPosition="left bottom"}return i}const et={[m.CENTER]:"center",[m.TOP]:"top",[m.TOP_LEFT]:"top left",[m.TOP_RIGHT]:"top right",[m.BOTTOM]:"bottom",[m.BOTTOM_LEFT]:"bottom left",[m.BOTTOM_RIGHT]:"bottom right",[m.LEFT]:"left",[m.RIGHT]:"right"},it={position:"absolute",top:"auto",right:"auto",bottom:"auto",left:"auto"};function nt(t,e){const i={css:{container:{},img:{}}},{css:n}=i,{fittingType:r}=t,o=e.alignment;switch(n.container.position="relative",r){case g.ORIGINAL_SIZE:case g.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 g.SCALE_TO_FIT:case g.LEGACY_FIT_WIDTH:case g.LEGACY_FIT_HEIGHT:case g.LEGACY_FULL:n.img.width=e.width,n.img.height=e.height,n.img.objectFit="contain",n.img.objectPosition=et[o]||"unset";break;case g.LEGACY_BG_NORMAL:n.img.width="100%",n.img.height="100%",n.img.objectFit="none",n.img.objectPosition=et[o]||"unset";break;case g.STRETCH:n.img.width=e.width,n.img.height=e.height,n.img.objectFit="fill";break;case g.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,it,function(t,e,i){return{[m.TOP_LEFT]:{top:0,left:0},[m.TOP_RIGHT]:{top:0,right:0},[m.TOP]:{top:0,left:e},[m.BOTTOM_LEFT]:{bottom:0,left:0},[m.BOTTOM_RIGHT]:{bottom:0,right:0},[m.BOTTOM]:{bottom:0,left:e},[m.RIGHT]:{top:t,right:0},[m.LEFT]:{top:t,left:0},[m.CENTER]:{width:i.width,height:i.height,objectFit:"none"}}}(t,i,e)[o])}return i}function rt(t,e){const i={css:{container:{}},attr:{container:{},img:{}}},{css:n,attr:r}=i,{fittingType:o}=t,a=e.alignment,{width:s,height:c}=t.src;let u;switch(n.container.position="relative",o){case g.ORIGINAL_SIZE:case g.LEGACY_ORIGINAL_SIZE:case g.TILE:t.parts&&t.parts.length?(r.img.width=t.parts[0].width,r.img.height=t.parts[0].height):(r.img.width=s,r.img.height=c),r.img.preserveAspectRatio="xMidYMid slice";break;case g.SCALE_TO_FIT:case g.LEGACY_FIT_WIDTH:case g.LEGACY_FIT_HEIGHT:case g.LEGACY_FULL:r.img.width="100%",r.img.height="100%",r.img.transform="",r.img.preserveAspectRatio="";break;case g.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 g.SCALE_TO_FILL:P(t.src.id)?(r.img.width=e.width,r.img.height=e.height):(u=function(t,e,i,n,r){const o=$(t,e,i,n,r);return{width:Math.round(t*o),height:Math.round(e*o)}}(s,c,e.width,e.height,f.FILL),r.img.width=u.width,r.img.height=u.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,s=0;o===g.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 c=Math.round(t/2),u=Math.round(i/2);switch(a){case m.TOP_LEFT:n=0,s=0;break;case m.TOP:n=c,s=0;break;case m.TOP_RIGHT:n=t,s=0;break;case m.LEFT:n=0,s=u;break;case m.CENTER:n=c,s=u;break;case m.RIGHT:n=t,s=u;break;case m.BOTTOM_LEFT:n=0,s=i;break;case m.BOTTOM:n=c,s=i;break;case m.BOTTOM_RIGHT:n=t,s=i}r.img.x=n,r.img.y=s}return r.container.width=e.width,r.container.height=e.height,r.container.viewBox=[0,0,e.width,e.height].join(" "),i}function ot(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(st(n)))),t.fittingType){case g.SCALE_TO_FIT:case g.LEGACY_FIT_WIDTH:case g.LEGACY_FIT_HEIGHT:case g.LEGACY_FULL:case g.FIT_AND_TILE:case g.LEGACY_BG_FIT_AND_TILE:case g.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:case g.LEGACY_BG_FIT_AND_TILE_VERTICAL:case g.LEGACY_BG_NORMAL:t.parts.push(at(t,i));break;case g.SCALE_TO_FILL:t.parts.push(function(t,e){const i=D(t.src.width,t.src.height,f.FILL,e,t.devicePixelRatio,t.upscaleMethod),n=W(t.focalPoint);return{transformType:n?f.FILL_FOCAL:f.FILL,width:Math.round(i.width),height:Math.round(i.height),alignment:j(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 g.STRETCH:t.parts.push(function(t,e){const i=$(t.src.width,t.src.height,e.width,e.height,f.FILL),n={...e};return n.width=t.src.width*i,n.height=t.src.height*i,at(t,n)}(t,i));break;case g.TILE_HORIZONTAL:case g.TILE_VERTICAL:case g.TILE:case g.LEGACY_ORIGINAL_SIZE:case g.ORIGINAL_SIZE:n=z(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(st(n));break;case g.LEGACY_STRIP_TILE_HORIZONTAL:case g.LEGACY_STRIP_TILE_VERTICAL:case g.LEGACY_STRIP_TILE:case g.LEGACY_STRIP_ORIGINAL_SIZE:t.parts.push(function(t){return{transformType:f.LEGACY_CROP,width:Math.round(t.width),height:Math.round(t.height),alignment:j(t),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}(i));break;case g.LEGACY_STRIP_SCALE_TO_FIT:case g.LEGACY_STRIP_FIT_AND_TILE:t.parts.push(function(t){return{transformType:f.FIT,width:Math.round(t.width),height:Math.round(t.height),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(i));break;case g.LEGACY_STRIP_SCALE_TO_FILL:t.parts.push(function(t){return{transformType:f.LEGACY_FILL,width:Math.round(t.width),height:Math.round(t.height),alignment:j(t),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(i))}}function at(t,e){const i=D(t.src.width,t.src.height,f.FIT,e,t.devicePixelRatio,t.upscaleMethod);return{transformType:!t.src.width||!t.src.height?f.FIT:f.FILL,width:Math.round(i.width),height:Math.round(i.height),alignment:T.center,upscale:i.scaleFactor>1,forceUSM:i.forceUSM,scaleFactor:i.scaleFactor,cssUpscaleNeeded:i.cssUpscaleNeeded,upscaleMethodValue:i.upscaleMethodValue}}function st(t){return{transformType:f.CROP,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 ct(t,e){e=e||{},t.quality=function(t,e){const i=t.fileType===y.PNG,n=t.fileType===y.JPG,r=t.fileType===y.WEBP,o=n||i||r;if(o){const n=M(t.parts),r=(a=n.width,s=n.height,O[Z(a,s)].quality);let o=e.quality&&e.quality>=5&&e.quality<=90?e.quality:r;return o=i?o+5:o,o}var a,s;return 0}(t,e),t.progressive=function(t){return!1!==t.progressive}(e),t.watermark=function(t){return t.watermark}(e),t.autoEncode=e.autoEncode??!0,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:q(null==(i=e.unsharpMask)?void 0:i.radius,2),amount:q(null==(n=e.unsharpMask)?void 0:n.amount,2),threshold:q(null==(r=e.unsharpMask)?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=M(t.parts);return!(e.scaleFactor>=1)||e.forceUSM||e.transformType===f.FIT}(t))return L;var o;return}(t,e),t.filters=function(t){const e=t.filters||{},i={};ut(e[v.CONTRAST],-100,100)&&(i[v.CONTRAST]=e[v.CONTRAST]);ut(e[v.BRIGHTNESS],-100,100)&&(i[v.BRIGHTNESS]=e[v.BRIGHTNESS]);ut(e[v.SATURATION],-100,100)&&(i[v.SATURATION]=e[v.SATURATION]);ut(e[v.HUE],-180,180)&&(i[v.HUE]=e[v.HUE]);ut(e[v.BLUR],0,100)&&(i[v.BLUR]=e[v.BLUR]);return i}(e)}function ut(t,e,i){return"number"==typeof t&&!isNaN(t)&&0!==t&&t>=e&&t<=i}function ht(t,e,i,n){const r=function(t){return(null==t?void 0:t.isSEOBot)??!1}(n),o=Y(e.id),a=function(t,e){const i=/\.([^.]*)$/,n=new RegExp(`(${k.concat(H).join("|")})`,"g");if(e&&e.length){let t=e;const r=e.match(i);return r&&G.includes(r[1])&&(t=e.replace(i,"")),encodeURIComponent(t).replace(n,B)}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,c)}(i),u=U(e.id),h=u,l=P(e.id,null==n?void 0:n.hasAnimation,null==n?void 0:n.allowAnimatedTransform),d={fileName:a,fileExtension:u,fileType:o,fittingType:t,preferredExtension:h,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:V(n),progressive:!0,watermark:"",unsharpMask:{},filters:{},transformed:l};return l&&(ot(d,e,i),ct(d,n)),d}function lt(t,e,i){const n={...i},r=Q("isMobile");switch(t){case g.LEGACY_BG_FIT_AND_TILE:case g.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:case g.LEGACY_BG_FIT_AND_TILE_VERTICAL:case g.LEGACY_BG_NORMAL:const t=r?l:u,i=r?d:h;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}const dt=S`fit/w_${"width"},h_${"height"}`,gt=S`fill/w_${"width"},h_${"height"},al_${"alignment"}`,ft=S`fill/w_${"width"},h_${"height"},fp_${"focalPointX"}_${"focalPointY"}`,mt=S`crop/x_${"x"},y_${"y"},w_${"width"},h_${"height"}`,pt=S`crop/w_${"width"},h_${"height"},al_${"alignment"}`,Tt=S`fill/w_${"width"},h_${"height"},al_${"alignment"}`,_t=S`,lg_${"upscaleMethodValue"}`,It=S`,q_${"quality"}`,Et=S`,usm_${"radius"}_${"amount"}_${"threshold"}`,Lt=S`,bl`,bt=S`,wm_${"watermark"}`,wt={[v.CONTRAST]:S`,con_${"contrast"}`,[v.BRIGHTNESS]:S`,br_${"brightness"}`,[v.SATURATION]:S`,sat_${"saturation"}`,[v.HUE]:S`,hue_${"hue"}`,[v.BLUR]:S`,blur_${"blur"}`},At=S`,enc_auto`;function Ot(t,e,i,n,r){var o,a;if(void 0===n&&(n={}),P(e.id,null==(o=n)?void 0:o.hasAnimation,null==(a=n)?void 0:a.allowAnimatedTransform)){if(N(e.id)){const{alignment:o,...a}=i;e.focalPoint={x:void 0,y:void 0},null==e||delete e.crop,r=ht(t,e,a,n)}else r=r||ht(t,e,i,n);return function(t){const e=[];t.parts.forEach((t=>{switch(t.transformType){case f.CROP:e.push(mt(t));break;case f.LEGACY_CROP:e.push(pt(t));break;case f.LEGACY_FILL:let i=Tt(t);t.upscale&&(i+=_t(t)),e.push(i);break;case f.FIT:let n=dt(t);t.upscale&&(n+=_t(t)),e.push(n);break;case f.FILL:let r=gt(t);t.upscale&&(r+=_t(t)),e.push(r);break;case f.FILL_FOCAL:let o=ft(t);t.upscale&&(o+=_t(t)),e.push(o)}}));let i=e.join("/");return t.quality&&(i+=It(t)),t.unsharpMask&&(i+=Et(t.unsharpMask)),t.progressive||(i+=Lt(t)),t.watermark&&(i+=bt(t)),t.filters&&(i+=Object.keys(t.filters).map((e=>wt[e](t.filters))).join("")),t.autoEncode&&t.fileType!==y.GIF&&(i+=At(t)),`${t.src.id}/${s}/${i}/${t.fileName}.${t.preferredExtension}`}(r)}return e.id}const Rt={[m.CENTER]:"50% 50%",[m.TOP_LEFT]:"0% 0%",[m.TOP_RIGHT]:"100% 0%",[m.TOP]:"50% 0%",[m.BOTTOM_LEFT]:"0% 100%",[m.BOTTOM_RIGHT]:"100% 100%",[m.BOTTOM]:"50% 100%",[m.RIGHT]:"100% 50%",[m.LEFT]:"0% 50%"},vt=Object.entries(Rt).reduce(((t,e)=>{let[i,n]=e;return t[n]=i,t}),{}),yt=[g.TILE,g.TILE_HORIZONTAL,g.TILE_VERTICAL,g.LEGACY_BG_FIT_AND_TILE,g.LEGACY_BG_FIT_AND_TILE_HORIZONTAL,g.LEGACY_BG_FIT_AND_TILE_VERTICAL],St=[g.LEGACY_ORIGINAL_SIZE,g.ORIGINAL_SIZE,g.LEGACY_BG_NORMAL];function Mt(t,e,i){let{width:n,height:r}=i;return t===g.TILE&&e.width>n&&e.height>r}function Gt(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}}function xt(t,e,i,n){void 0===n&&(n="center");const r={img:{},container:{}};if(t===g.SCALE_TO_FILL){const t=e.focalPoint&&function(t){const e=`${t.x}% ${t.y}%`;return vt[e]||""}(e.focalPoint),o=t||n;e.focalPoint&&!t?r.img={objectPosition:Ct(e,i,e.focalPoint)}:r.img={objectPosition:Rt[o]}}else[g.LEGACY_ORIGINAL_SIZE,g.ORIGINAL_SIZE].includes(t)?r.img={objectFit:"none",top:"auto",left:"auto",right:"auto",bottom:"auto"}:yt.includes(t)&&(r.container={backgroundSize:`${e.width}px ${e.height}px`});return r}function Ct(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,l=r*u,d=Math.max(0,Math.min(h-o,h*(s/100)-o/2)),g=Math.max(0,Math.min(l-a,l*(c/100)-a/2));return`${d&&Math.floor(d/(h-o)*100)}% ${g&&Math.floor(g/(l-a)*100)}%`}const Pt={width:"100%",height:"100%"};function Ft(t,e,i,n){void 0===n&&(n={});const{autoEncode:r=!0,isSEOBot:o,shouldLoadHQImage:a,hasAnimation:s}=n;if(!C(t,e,i)||function(t){return U(t)===y.GIF}(e.id))return b;const c=!0,u=P(e.id,s,c);if(!u||a)return Nt(t,e,i,{...n,autoEncode:r,useSrcset:u});const h={...i,...Gt(e,i)},{alignment:l,htmlTag:d}=h,f=Mt(t,e,h),m=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=!St.includes(t),s=Mt(t,e,{width:r,height:o}),c=!s&&yt.includes(t),u=c?e.width:r,h=c?e.height:o,l=a?function(t,e){return t>900?e?.05:.15:t>500?e?.1:.18:t>200?.25:1}(u,F(e.id)):1;return{width:s?1920:u*l,height:h*l}}(t,e,h,o),p=function(t,e,i){return i?0:yt.includes(e)?1:t>200?2:3}(h.width,t,o),T=function(t,e){const i=yt.includes(t)&&!e;return t===g.SCALE_TO_FILL||i?g.SCALE_TO_FIT:t}(t,f),_=xt(t,e,i,l),{uri:I}=Nt(T,e,{...m,alignment:l,htmlTag:d},{autoEncode:r,filters:p?{blur:p}:{},hasAnimation:s,allowAnimatedTransform:c}),{attr:E={},css:L}=Nt(t,e,{...h,alignment:l,htmlTag:d},{});return L.img=L.img||{},L.container=L.container||{},Object.assign(L.img,_.img,Pt),Object.assign(L.container,_.container),{uri:I,css:L,attr:E,transformed:!0}}function Nt(t,e,i,n){let r={};if(C(t,e,i)){const o=lt(t,e,i),a=ht(t,e,o,n);r.uri=Ot(t,e,o,n,a),null!=n&&n.useSrcset&&(r.srcset=function(t,e,i,n,r){const o=i.pixelAspectRatio||1;return{dpr:[`${1===o?r.uri:Ot(t,e,{...i,pixelAspectRatio:1},n)} 1x`,`${2===o?r.uri:Ot(t,e,{...i,pixelAspectRatio:2},n)} 2x`]}}(t,e,o,n,r)),Object.assign(r,function(t,e){let i;return i=e.htmlTag===_.BG?tt:e.htmlTag===_.SVG?rt:nt,i(t,e)}(a,o),{transformed:a.transformed})}else r=b;return r}function kt(t,e,i,n){if(C(t,e,i)){const r=lt(t,e,i);return{uri:Ot(t,e,r,n||{},ht(t,e,r,n))}}return{uri:""}}const Ht="https://static.wixstatic.com/media/",Bt=/^media\//i,Yt="undefined"!=typeof window?window.devicePixelRatio:1,Ut=(t,e)=>{const i=e&&e.baseHostURL;return i?`${i}${t}`:(t=>Bt.test(t)?`https://static.wixstatic.com/${t}`:`${Ht}${t}`)(t)};K(),K();const $t={getScaleToFitImageURL:function(t,e,i,n,r,o){const a=kt(g.SCALE_TO_FIT,{id:t,width:e,height:i,name:o&&o.name},{width:n,height:r,htmlTag:_.IMG,alignment:m.CENTER,pixelAspectRatio:(null==o?void 0:o.devicePixelRatio)??Yt},o);return Ut(a.uri,o)},getScaleToFillImageURL:function(t,e,i,n,r,o){const a=kt(g.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:m.CENTER,pixelAspectRatio:(null==o?void 0:o.devicePixelRatio)??Yt},o);return Ut(a.uri,o)},getCropImageURL:function(t,e,i,n,r,o,a,s,c,u){const h=kt(g.SCALE_TO_FILL,{id:t,width:e,height:i,name:u&&u.name,crop:{x:n,y:r,width:o,height:a}},{width:s,height:c,htmlTag:_.IMG,alignment:m.CENTER,pixelAspectRatio:(null==u?void 0:u.devicePixelRatio)??Yt},u);return Ut(h.uri,u)}},Dt=Ht,{STATIC_MEDIA_URL:zt}=t,jt=t=>{let{fittingType:e,src:i,target:n,options:r}=t;const o=Ft(e,i,n,{...r,autoEncode:!0});return null!=o&&o.uri&&!/^[a-z]+:/.test(o.uri)&&(o.uri=`${zt}${o.uri}`),o},Wt=/^[a-z]+:/,Zt=t=>{var e,n;const{id:r,containerId:s,uri:c,alt:u,name:h="",role:l,width:d,height:g,displayMode:f,devicePixelRatio:m,quality:p,alignType:T,bgEffectName:_="",focalPoint:I,upscaleMethod:E,className:L="",crop:b,imageStyles:w={},targetWidth:A,targetHeight:O,targetScale:R,onLoad:v=()=>{},onError:y=()=>{},shouldUseLQIP:S,containerWidth:M,containerHeight:G,getPlaceholder:x,isInFirstFold:C,placeholderTransition:P,socialAttrs:F,isSEOBot:N,skipMeasure:k,hasAnimation:H}=t,B=o.useRef(null);let Y="";const U="blur"===P,$=o.useRef(null);if(!$.current)if(x||S||C||N){const t={upscaleMethod:E,...p||{},shouldLoadHQImage:C,isSEOBot:N,hasAnimation:H};$.current=(x||jt)({fittingType:f,src:{id:c,width:d,height:g,crop:b,name:h,focalPoint:I},target:{width:M,height:G,alignment:T,htmlTag:"img"},options:t}),Y=!$.current.transformed||C||N?"":"true"}else $.current={uri:void 0,css:{img:{}},attr:{img:{},container:{}},transformed:!1};const D=!N&&(x||S)&&!C&&$.current.transformed,z=o.useMemo((()=>JSON.stringify({containerId:s,...s&&{containerId:s},...T&&{alignType:T},...k&&{skipMeasure:!0},displayMode:f,...M&&{targetWidth:M},...G&&{targetHeight:G},...A&&{targetWidth:A},...O&&{targetHeight:O},...R&&{targetScale:R},isLQIP:D,isSEOBot:N,lqipTransition:P,imageData:{width:d,height:g,uri:c,name:h,displayMode:f,hasAnimation:H,...p&&{quality:p},...m&&{devicePixelRatio:m},...I&&{focalPoint:I},...b&&{crop:b},...E&&{upscaleMethod:E}}})),[s,T,k,f,G,M,A,O,R,D,N,P,d,g,c,h,p,m,I,b,E,H]),j=$.current,W=null==j?void 0:j.uri,Z=null==j?void 0:j.srcset,q=null==(e=j.css)?void 0:e.img,V=`${a} ${L}`;o.useEffect((()=>{const t=B.current;v&&null!=t&&t.currentSrc&&null!=t&&t.complete&&v({target:t})}),[]);const J=!j||null!=j&&j.transformed?A?`${A}px`:null:`max(${d}px, 100%)`;return o.createElement("wow-image",{id:r,class:V,"data-image-info":z,"data-motion-part":"BG_IMG","data-bg-effect-name":_,"data-has-ssr-src":Y,"data-animate-blur":!N&&D&&U?"":void 0,style:J?{"--wix-img-max-width":J}:{}},o.createElement("img",i()({src:W,ref:B,alt:u||"",role:l,style:{...q,...w},onLoad:v,onError:y,width:M||void 0,height:G||void 0},F,{srcSet:C?null==Z||null==(n=Z.dpr)?void 0:n.map((t=>Wt.test(t)?t:`${zt}${t}`)).join(", "):void 0,fetchpriority:C?"high":void 0,loading:!1===C?"lazy":void 0,suppressHydrationWarning:!0})))};var qt=n(99),Vt=n.n(qt);const Jt={columnCount:1,columns:1,fontWeight:1,lineHeight:1,opacity:1,zIndex:1,zoom:1},Qt=(t,e)=>(Array.isArray(e)?e:[e]).reduce(((e,i)=>{const n=t[i];return void 0!==n?Object.assign(e,{[i]:n}):e}),{}),Xt=(t,e)=>t&&e&&Object.keys(e).forEach((i=>{const n=i,r=e[n];void 0!==r?t.style[n]=((t,e)=>"number"!=typeof e||Jt[t]?e.toString():`${e}px`)(n,r):t.style.removeProperty(n)})),Kt=(t,e,i)=>{if(!t.targetWidth||!t.targetHeight||!t.imageData.uri)return{uri:"",css:{},transformed:!1};const{imageData:n}=t,r=t.displayMode||g.SCALE_TO_FILL,o=Object.assign(Qt(n,["upscaleMethod"]),Qt(t,"filters"),t.quality||n.quality,{hasAnimation:(null==t?void 0:t.hasAnimation)||(null==n?void 0:n.hasAnimation)}),a=t.imageData.devicePixelRatio||e.devicePixelRatio,s=ee(a),c=Nt(r,Object.assign(Qt(n,["width","height","crop","name","focalPoint"]),{id:n.uri}),{width:t.targetWidth,height:t.targetHeight,htmlTag:i||"img",pixelAspectRatio:s,alignment:t.alignType||m.CENTER},o);return c.uri=te(c.uri,e.staticMediaUrl,e.mediaRootUrl),c},te=(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},ee=t=>{const e=window.location.search.split("&").map((t=>t.split("="))).find((t=>{var e;return null==(e=t[0])?void 0:e.toLowerCase().includes("devicepixelratio")}));return(null!=e&&e[1]?Number(e[1]):null)||t||1},ie=t=>t.getAttribute("src"),ne=80;const re={measure:function(t,e,i,n,r){let{containerElm:o,bgEffect:a="none",sourceSets:s}=n;const c=i.image,u=i[t],h=(null==r.getScreenHeightOverride?void 0:r.getScreenHeightOverride())||document.documentElement.clientHeight||window.innerHeight||0,l=null==o?void 0:o.dataset.mediaHeightOverrideType,d=a&&"none"!==a||s&&s.some((t=>t.scrollEffect)),g=o&&d?o:u,f=window.getComputedStyle(u).getPropertyValue("--bg-scrub-effect"),{width:m,height:p}=(null==r.getMediaDimensionsByEffect?void 0:r.getMediaDimensionsByEffect(f||a,g.offsetWidth,g.offsetHeight,h))||{width:u.offsetWidth,height:u.offsetHeight};if(s&&(e.sourceSetsTargetHeights=function(t,e,i,n,r){const o={};return t.forEach((t=>{let{mediaQuery:a,scrollEffect:s}=t;o[a]=r.getMediaDimensionsByEffect(s,e,i,n).height})),o}(s,g.offsetWidth,g.offsetHeight,h,r)),!c)return;const T=ie(c);f&&(e.top=.5*(u.offsetHeight-p),e.left=.5*(u.offsetWidth-m)),e.width=m,e.height=function(t,e){return"fixed"===e||"viewport"===e?document.documentElement.clientHeight+ne:t}(p,l),e.screenHeight=h,e.imgSrc=T,e.boundingRect=u.getBoundingClientRect(),e.mediaHeightOverrideType=l,e.srcset=c.srcset},patch:function(t,e,i,n,r,o,a,s,c,u){var h;if(!Object.keys(e).length)return;const{imageData:l}=n,d=i[t],g=i.image;c&&(l.devicePixelRatio=1);const f=n.targetScale||1,m={...n,...!n.skipMeasure&&{targetWidth:(e.width||0)*f,targetHeight:(e.height||0)*f},displayMode:l.displayMode},p=Kt(m,o,"img"),T=(null==p||null==(h=p.css)?void 0:h.img)||{},_=function(t,e,i,n,r){const o=function(t,e){return void 0===e&&(e=1),1!==e?{...t,width:"100%",height:"100%"}:t}(e,n);if(r&&(delete o.height,o.width="100%"),!t)return o;const a={...o};return"fill"===i?(a.position="absolute",a.top="0"):"fit"===i&&(a.height="100%"),"fixed"===t&&(a["will-change"]="transform"),a.objectPosition&&(a.objectPosition=e.objectPosition.replace(/(center|bottom)$/,"top")),a}(e.mediaHeightOverrideType,T,l.displayMode,f,s);Xt(g,_),(e.top||e.left)&&Xt(d,{top:`${e.top}px`,left:`${e.left}px`});const I=(null==p?void 0:p.uri)||"",E=(null==l?void 0:l.hasAnimation)||(null==n?void 0:n.hasAnimation),L=function(t,e,i){const{sourceSets:n}=e;if(!n||!n.length)return;const r={};return n.forEach((n=>{let{mediaQuery:o,crop:a,focalPoint:s}=n;const c={...e,targetHeight:(t.sourceSetsTargetHeights||{})[o]||0,imageData:{...e.imageData,crop:a,focalPoint:s}},u=Kt(c,i,"img");r[o]=u.uri||""})),r}(e,m,o);if((null==r.isExperimentOpen?void 0:r.isExperimentOpen("specs.thunderbolt.wowImageSsrHydrationFix"))?u&&(g.dataset.ssrSrcDone="true"):d.setAttribute("data-has-ssr-src",""),n.isLQIP&&n.lqipTransition&&!("transitioned"in d.dataset)&&(d.dataset.transitioned="",g.complete?g.onload=function(){g.dataset.loadDone=""}:g.onload=function(){g.complete?g.dataset.loadDone="":g.onload=function(){g.dataset.loadDone=""}}),a){((t,e)=>U(t)===y.GIF||U(t)===y.WEBP&&e)(l.uri,E)?(g.setAttribute("fetchpriority","low"),g.setAttribute("loading","lazy"),g.setAttribute("decoding","async")):g.setAttribute("fetchpriority","high"),g.currentSrc!==I&&g.setAttribute("src",I);e.srcset&&!e.srcset.split(", ").some((t=>t.split(" ")[0]===I))&&g.setAttribute("srcset",I),i.picture&&m.sourceSets&&Array.from(i.picture.querySelectorAll("source")).forEach((t=>{const e=t.media||"",i=null==L?void 0:L[e];t.srcset!==i&&t.setAttribute("srcset",i||"")}))}}},oe={parallax:"ImageParallax",fixed:"ImageReveal"};const ae=function(t,e,i){return class extends i.HTMLElement{constructor(){super(),Vt()(this,"childListObserver",void 0),Vt()(this,"timeoutId",void 0),this.childListObserver=null,this.timeoutId=null}attributeChangedCallback(t,e){e&&this.reLayout()}connectedCallback(){e.disableImagesLazyLoading?this.reLayout():this.observeIntersect()}disconnectedCallback(){this.unobserveResize(),this.unobserveIntersect(),this.unobserveChildren()}static get observedAttributes(){return["data-image-info"]}reLayout(){const n={},r={},o=this.getAttribute("id"),a=JSON.parse(this.dataset.imageInfo||""),s="true"===this.dataset.isResponsive,{bgEffectName:c}=this.dataset,{scrollEffect:u}=a.imageData,{sourceSets:h}=a,l=c||u&&oe[u];h&&h.length&&h.forEach((t=>{t.scrollEffect&&(t.scrollEffect=oe[t.scrollEffect])})),n[o]=this,a.containerId&&(n[a.containerId]=i.document.getElementById(`${a.containerId}`));const d=a.containerId?n[a.containerId]:void 0;if(n.image=this.querySelector("img"),n.picture=this.querySelector("picture"),!n.image){const t=this;return void this.observeChildren(t)}this.unobserveChildren(),this.observeChildren(this),t.mutationService.measure((()=>{re.measure(o,r,n,{containerElm:d,bgEffect:l,sourceSets:h},t)}));const g=(i,c)=>{t.mutationService.mutate((()=>{re.patch(o,r,n,a,t,e,i,s,l,c)}))},f=n.image,m=(null==t.isExperimentOpen?void 0:t.isExperimentOpen("specs.thunderbolt.wowImageSsrHydrationFix"))?this.dataset.hasSsrSrc&&!f.dataset.ssrSrcDone:this.dataset.hasSsrSrc;!ie(f)||m?g(!0,!0):this.debounceImageLoad(g)}debounceImageLoad(t){clearTimeout(this.timeoutId),this.timeoutId=i.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)}observeIntersect(){var e;null==(e=t.intersectionService)||e.observe(this)}unobserveIntersect(){var e;null==(e=t.intersectionService)||e.unobserve(this)}observeChildren(t){this.childListObserver||(this.childListObserver=new i.MutationObserver((()=>{this.reLayout()}))),this.childListObserver.observe(t,{childList:!0})}unobserveChildren(){this.childListObserver&&(this.childListObserver.disconnect(),this.childListObserver=null)}}};var se=n(709),ce=n.n(se);const ue=()=>/iemobile/i.test(navigator.userAgent)?Math.round(window.screen.availWidth/(window.screen.width||window.document.documentElement.clientWidth)):window.devicePixelRatio,he="https://static.wixstatic.com/media",le="https://static.wixstatic.com";function de(t,e,i){if(void 0===t&&(t={}),void 0===e&&(e=null),void 0===i&&(i={}),"undefined"==typeof window)return;const n={staticMediaUrl:he,mediaRootUrl:le,experiments:{},devicePixelRatio:ue(),...i},r=function(t,e){const i="wow-image";if(void 0===(t=t||window).customElements.get(i)){let n,r;return t.ResizeObserver&&(n=new t.ResizeObserver((t=>t.map((t=>t.target.reLayout()))))),t.IntersectionObserver&&(r=new IntersectionObserver((t=>t.map((t=>{if(t.isIntersecting){const e=t.target;e.unobserveIntersect(),e.observeResize()}return t}))),{rootMargin:"150% 100%"})),function(o){const a=ae({resizeService:n,intersectionService:r,mutationService:ce(),...e},o,t);t.customElements.define(i,a)}}}(e,t);r&&r(n)}})(),r})()));
//# sourceMappingURL=image.umd.min.js.map

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

{"generatedAt":1725700845360,"builder":{"name":"webpack5"},"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"monorepo":"Workspaces","packageManager":{"type":"yarn","version":"3.2.0"},"typescriptOptions":{"check":false,"reactDocgen":false},"language":"typescript","storybookPackages":{"@wix/yoshi-storybook-dependencies":{"version":"6.102.2"}},"framework":{},"addons":{"@storybook/addon-controls":{"version":"6.5.16"},"@storybook/addon-docs":{"version":"6.5.16"}}}
{"generatedAt":1725974488696,"builder":{"name":"webpack5"},"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"monorepo":"Workspaces","packageManager":{"type":"yarn","version":"3.2.0"},"typescriptOptions":{"check":false,"reactDocgen":false},"language":"typescript","storybookPackages":{"@wix/yoshi-storybook-dependencies":{"version":"6.102.2"}},"framework":{},"addons":{"@storybook/addon-controls":{"version":"6.5.16"},"@storybook/addon-docs":{"version":"6.5.16"}}}
{
"image.css": "https://static.parastorage.com/services/image/c0787f748d93d2d76f93e731f206f19944b0abdd8965e24bf1f91edd/image.css",
"image.js": "https://static.parastorage.com/services/image/c0787f748d93d2d76f93e731f206f19944b0abdd8965e24bf1f91edd/image.umd.js"
"image.css": "https://static.parastorage.com/services/image/a63266902e25401237877130dba24321a4a9362a1eb702fdb5cc1708/image.css",
"image.js": "https://static.parastorage.com/services/image/a63266902e25401237877130dba24321a4a9362a1eb702fdb5cc1708/image.umd.js"
}
{
"image.css": "https://static.parastorage.com/services/image/c0787f748d93d2d76f93e731f206f19944b0abdd8965e24bf1f91edd/image.min.css",
"image.js": "https://static.parastorage.com/services/image/c0787f748d93d2d76f93e731f206f19944b0abdd8965e24bf1f91edd/image.umd.min.js"
"image.css": "https://static.parastorage.com/services/image/a63266902e25401237877130dba24321a4a9362a1eb702fdb5cc1708/image.min.css",
"image.js": "https://static.parastorage.com/services/image/a63266902e25401237877130dba24321a4a9362a1eb702fdb5cc1708/image.umd.min.js"
}

@@ -203,3 +203,2 @@ import * as React from 'react';

hasAnimation?: boolean;
allowAnimatedTransform?: boolean;
};

@@ -206,0 +205,0 @@ export type WixImageExternalServices = {

{
"name": "@wix/image",
"description": "Wix base image component",
"version": "1.309.0",
"version": "1.310.0",
"license": "MIT",

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

"@babel/runtime": "^7.25.6",
"@wix/image-kit": "^1.83.0",
"@wix/image-kit": "^1.84.0",
"fastdom": "^1.0.12",

@@ -99,3 +99,3 @@ "tslib": "^2.7.0"

},
"falconPackageHash": "aea16e127f7465b02ab32c1ab98db8152add23f6f979408335d6ebc8"
"falconPackageHash": "79160ac24b82926028a083862267a64420afee3ae8dd6893d8a7ee6c"
}

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

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

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