(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var a in n)e.o(n,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:n[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.jQuery;var n=e.n(t),a=n()("body"),o=n()(document),s=n()("#vp_preview");document.addEventListener("click",function(e){e.stopPropagation(),e.preventDefault(),window.parentIFrame&&window.parentIFrame.sendMessage("clicked")},!0),document.addEventListener("mousedown",function(e){e.stopPropagation(),e.preventDefault(),e.target.blur(),window.focus()},!0),o.on("startLoadingNewItems.vpf",function(e,t,n,a){"vpf"===e.namespace&&(a.data=Object.assign(a.data||{},window.vp_preview_post_data))});var r={};window.iFrameResizer={log:!1,heightCalculationMethod:function(){return s.outerHeight(!0)},onMessage:function(e){if(e&&e.name)switch(e.name){case"resize":a.css("max-width",e.width+Math.random());break;case"dynamic-css":var t="vp-dynamic-styles-".concat(e.blockId,"-inline-css");if(r[t]&&e.styles===r[t])break;var o=n()("#".concat(t));o.length||(o=n()('<style id="'.concat(t,'"></style>')).appendTo("head")),r[t]=e.styles,o.text(e.styles)}}}})();