(()=>{"use strict";var n={n:o=>{var t=o&&o.__esModule?()=>o.default:()=>o;return n.d(t,{a:t}),t},d:(o,t)=>{for(var e in t)n.o(t,e)&&!n.o(o,e)&&Object.defineProperty(o,e,{enumerable:!0,get:t[e]})},o:(n,o)=>Object.prototype.hasOwnProperty.call(n,o)};const o=window.jQuery;var t=n.n(o);var e=t()(window);t()(document).on("initEvents.vpf",function(n,o){if("vpf"===n.namespace&&"infinite"===o.options.pagination){var t=".vpf-uid-".concat(o.uid),i=!1;l(),e.on("load".concat(t," scroll").concat(t," resize").concat(t," orientationchange").concat(t),function(n,o,t){var e,i=t||{},a=i.noTrailing,c=void 0!==a&&a,r=i.noLeading,u=void 0!==r&&r,l=i.debounceMode,d=void 0===l?void 0:l,v=!1,f=0;function s(){e&&clearTimeout(e)}function p(){for(var t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];var r=this,l=Date.now()-f;function p(){f=Date.now(),o.apply(r,i)}function m(){e=void 0}v||(u||!d||e||p(),s(),void 0===d&&l>n?u?(f=Date.now(),c||(e=setTimeout(d?m:p,n))):p():!0!==c&&(e=setTimeout(d?m:p,void 0===d?n-l:n)))}return p.cancel=function(n){var o=(n||{}).upcomingOnly,t=void 0!==o&&o;s(),v=!t},p}(150,(a=function(){l()},c=[],r=null,u=function(){for(var n=arguments.length,o=new Array(n),t=0;t<n;t++)o[t]=arguments[t];c=o,r||(r=requestAnimationFrame(function(){r=null,a.apply(void 0,c)}))},u.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},u)))}var a,c,r,u;function l(){if(!i&&o.options.nextPageUrl){i=!0;var n=o.$item[0].getBoundingClientRect();n.bottom>0&&n.bottom-400<=window.innerHeight?o.loadNewItems(o.options.nextPageUrl,!1,function(){setTimeout(function(){i=!1,l()},300)}):i=!1}}})})();