!function(){"use strict";const{jQuery:t,VPData:e}=window,{__:i}=e,o=t(window);function n(){if("function"==typeof window.Event)window.dispatchEvent(new window.Event("resize"));else{const t=window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}}const s={};let a=!1,r=!1;function l(){if(clearTimeout(r),!a)return;const e=t(".vp-portfolio__ready");if(e.length){let t=!1;e.each((function(){const{vpf:e}=this;if(!e)return;const i=s[e.uid]||"none";s[e.uid]=null===this.offsetParent?"hidden":"visible","hidden"===i&&"visible"===s[e.uid]&&(t=!0)})),t&&n()}else a=!1;r=setTimeout(l,500)}t(document).on("inited.vpf",(t=>{"vpf"===t.namespace&&(a=!0,l())}));class c{constructor(t,e){const o=this;o.$item=t;const n=t[0].className.split(/\s+/);for(let t=0;t{this.emitEvent("imagesLoaded")}))}destroy(){const e=this;e.$item.removeClass("vp-portfolio__ready"),e.id&&(t(".vp-single-filter.vp-id-".concat(e.id)).removeClass("vp-single-filter__ready"),t(".vp-single-sort.vp-id-".concat(e.id)).removeClass("vp-single-sort__ready")),e.destroyEvents(),e.removeStyle(),e.renderStyle(),e.emitEvent("destroy"),e.destroyed=!0}addStyle(e,i,o){o=o||"";const n=this,{uid:s}=n;n.stylesList||(n.stylesList={}),void 0===n.stylesList[s]&&(n.stylesList[s]={}),void 0===n.stylesList[s][o]&&(n.stylesList[s][o]={}),void 0===n.stylesList[s][o][e]&&(n.stylesList[s][o][e]={}),n.stylesList[s][o][e]=t.extend(n.stylesList[s][o][e],i),n.emitEvent("addStyle",[e,i,o,n.stylesList])}removeStyle(t,e,i){i=i||"";const o=this,{uid:n}=o;o.stylesList||(o.stylesList={}),void 0===o.stylesList[n]||t||(o.stylesList[n]={}),void 0!==o.stylesList[n]&&void 0!==o.stylesList[n][i]&&void 0!==o.stylesList[n][i][t]&&t&&delete o.stylesList[n][i][t],o.emitEvent("removeStyle",[t,e,o.stylesList])}renderStyle(){const e=this,{uid:i}=e;let o="";e.stylesList||(e.stylesList={}),void 0!==e.stylesList[i]&&Object.keys(e.stylesList[i]).forEach((t=>{t&&(o+="@media ".concat(t," {")),Object.keys(e.stylesList[i][t]).forEach((n=>{const s=".vp-uid-".concat(i);let a="".concat(s," ").concat(n);a=a.replace(/, |,/g,", ".concat(s," ")),o+="".concat(a," {"),Object.keys(e.stylesList[i][t][n]).forEach((s=>{o+="".concat(s,":").concat(e.stylesList[i][t][n][s],";")})),o+="}"})),t&&(o+="}")}));let n=t("#vp-style-".concat(i));n.length||(n=t("