(()=>{"use strict";var t={1929(t){t.exports=function(t){return"number"==typeof t?t-t===0:"string"==typeof t&&""!==t.trim()&&(Number.isFinite?Number.isFinite(+t):isFinite(+t))}}},o={};function i(e){var r=o[e];if(void 0!==r)return r.exports;var n=o[e]={exports:{}};return t[e](n,n.exports,i),n.exports}i.n=t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return i.d(o,{a:o}),o},i.d=(t,o)=>{for(var e in o)i.o(o,e)&&!i.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:o[e]})},i.o=(t,o)=>Object.prototype.hasOwnProperty.call(t,o);var e=i(1929),r=i.n(e);const n=window.jQuery;var a=i.n(n);var p=new(0,window.ResizeObserver)(function(t,o,i){var e,r=i||{},n=r.noTrailing,a=void 0!==n&&n,p=r.noLeading,s=void 0!==p&&p,l=r.debounceMode,d=void 0===l?void 0:l,c=!1,u=0;function v(){e&&clearTimeout(e)}function f(){for(var i=arguments.length,r=new Array(i),n=0;n<i;n++)r[n]=arguments[n];var p=this,l=Date.now()-u;function f(){u=Date.now(),o.apply(p,r)}function m(){e=void 0}c||(s||!d||e||f(),v(),void 0===d&&l>t?s?(u=Date.now(),a||(e=setTimeout(d?m:f,t))):f():!0!==a&&(e=setTimeout(d?m:f,void 0===d?t-l:t)))}return f.cancel=function(t){var o=(t||{}).upcomingOnly,i=void 0!==o&&o;v(),c=!i},f}(100,function(t){t.forEach(function(t){var o=t.target;if(o&&o.vpf){var i=o.vpf,e=i.$item.width()*parseFloat(i.options.sliderItemsHeight)/100;o.querySelector(".vp-portfolio__items-wrap").style.setProperty("--vp-layout-slider--auto-items__height","".concat(e,"px"))}})}));a()(document).on("initLayout.vpf",function(t,o){"vpf"===t.namespace&&"slider"===o.options.layout&&(["items","thumbnails"].forEach(function(t){var i="items"===t?o.options.sliderItemsHeight:o.options.sliderThumbnailsHeight;if("auto"!==i){var e=t.replace(/s$/g,""),n="items"===t?o.options.sliderItemsMinHeight:0;if(i=r()(i)?"".concat(i,"px"):i,n&&o.isPreview()&&/vh/.test(n)&&(n=0),"auto"===("items"===t?o.options.sliderSlidesPerView:o.options.sliderThumbnailsPerView)){var a="auto";"items"===t&&"fade"===o.options.sliderEffect&&(a="100%"),i.indexOf("%")===i.length-1?p.observe(o.$item[0]):o.addStyle(".vp-portfolio__".concat(t,"-wrap"),{"--vp-layout-slider--auto-items__height":i}),o.addStyle(".vp-portfolio__".concat(e,"-wrap"),{width:"auto"}),o.addStyle(".vp-portfolio__".concat(e," .vp-portfolio__").concat(e,"-img img"),{width:a,height:"var(--vp-layout-slider--auto-items__height)"}),n&&o.addStyle(".vp-portfolio__".concat(e," .vp-portfolio__").concat(e,"-img img"),{"min-height":n})}else o.addStyle(".vp-portfolio__".concat(e,"-img-wrap::before"),{"padding-top":i}),o.addStyle(".vp-portfolio__".concat(e,"-img img"),{position:"absolute",top:0,right:0,bottom:0,left:0}),o.addStyle(".vp-portfolio__".concat(e,"-img"),{position:"absolute",top:0,right:0,bottom:0,left:0}),o.addStyle(".vp-portfolio__".concat(e," .vp-portfolio__").concat(e,"-img img"),{width:"100%",height:"100%"}),n&&o.addStyle(".vp-portfolio__".concat(e,"-img-wrap::before"),{"min-height":n})}}),o.options.sliderThumbnailsGap&&o.addStyle(".vp-portfolio__thumbnails-wrap",{"margin-top":"".concat(o.options.sliderThumbnailsGap,"px")}))})})();