1(()=>{"use strict";const e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.hasOwn(e,t),r:e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}};let t={};function o(e,t,o=!1){let n,a,l;if("function"==typeof e)n=document,a=()=>e.call(document,document),l=t??!1;else{if(null!==e)if(e instanceof Document)n=e;else if("#document"===e.nodeName)n=e;else{if(null===e.ownerDocument)throw new Error(`Unable to resolve the document containing for ${e}.`);n=e.ownerDocument}else n=document;if("function"!=typeof t)throw new Error("The second argument to onDocumentLoaded must be a function when passing anything other than a function as its first argument");a=()=>t.call(e,e),l=o}"complete"===n.readyState||!l&&"interactive"===n.readyState?a():l?n.defaultView.addEventListener("load",a):n.addEventListener("DOMContentLoaded",a)}function n(e,t=1e4){let o=null;const n=()=>{o="requestIdleCallback"in window?window.requestIdleCallback(e,{timeout:t}):requestAnimationFrame(e)};return"complete"===document.readyState?n():document.addEventListener("DOMContentLoaded",n,{once:!0}),()=>{null!==o&&("requestIdleCallback"in window?window.cancelIdleCallback(o):cancelAnimationFrame(o))}}function a(e){return e.replaceAll(/([a-z])([A-Z])/g,"$1-$2").replaceAll(/(\d)([a-zA-Z])/g,"$1-$2").replaceAll(/([a-zA-Z])(\d)/g,"$1-$2").replaceAll(/[^a-zA-Z0-9]+/g,"-").toLowerCase()}async function l(e,t,n){if("string"==typeof e)return l({blockOrClassName:e,onAdd:t,onRemove:n,updateJsReady:!0});const{onAdd:a,onRemove:r,updateJsReady:d=!1,invocationMarker:s}=e;"number"!=typeof window.plauditBlockHelpersOnBlockLoadedCallCount&&(window.plauditBlockHelpersOnBlockLoadedCallCount=0);const u="data-on-block-loaded-"+window.plauditBlockHelpersOnBlockLoadedCallCount++,f=[];s&&f.push(s),d&&f.push("js-ready");const m=new Map,w=async e=>{e.setAttribute(u,"js-ready");for(const t of f)e.classList.toggle(t,!0);const t=await a(e);t&&m.set(e,t)};o(()=>{let t,o;"blockOrClassName"in e?(t=i(e.blockOrClassName),o="."+t):(t=!1,o=e.targetSelector);for(const e of document.querySelectorAll(`${o}
1:not([${u}="js-ready"])`))w(e);new MutationObserver(e=>{for(const n of e){for(const e of n.addedNodes)if(e instanceof HTMLElement){t&&e.classList.contains(t)&&"js-ready"!==e.getAttribute(u)&&w(e);for(const t of e.querySelectorAll(`${o}:not([${u}="js-ready"])`))w(t)}if(r||m.size)for(const e of n.removedNodes)if(e instanceof HTMLElement){t&&e.classList.contains(t)&&"js-ready"===e.getAttribute(u)&&c(e,r,m,f);for(const t of e.querySelectorAll(`${o}[${u}="js-ready"]`))c(t,r,m,f)}}}).observe(document.querySelector(".wp-site-blocks")??document.body,{subtree:!0,childList:!0})})}function c(e,t,o,n){t&&t(e);const a=o.get(e);a&&(o.delete(e),a()),e.classList.remove(...n)}function i(e){return e.includes("/")?`wp-block-${a(e.startsWith("core/")?e.substring(5):e)}`:e}function r(e,t=0,o=!1,n=!1){let a,l,c,i=!1;const r=()=>{void 0!==a&&((i?window.cancelAnimationFrame:window.clearTimeout)(a),a=void 0)},d=()=>{r(),e.apply(c,l)},s=function(...r){if(c=this,l=Object.assign([],r),!a||!o&&!n){const n="function"!=typeof t?t:t.apply(c,l);o?(i=void 0===n,a=void 0===n?window.requestAnimationFrame(()=>s.clear()):window.setTimeout(s.clear,n),e.apply(c,l)):(s.clear(),i=void 0===n,a=void 0===n?window.requestAnimationFrame(d):window.setTimeout(d,n))}};return s.runNow=function(...t){r(),e.apply(this,t)},s.clear=function(e){r(),e&&e()},s}e.r(t),e.d(t,{debounce:()=>r,executeOnceWhenIdle:()=>n,kebabCase:()=>a,onBlockLoaded:()=>l,onDocumentLoaded:()=>o,toBlockClassName:()=>i}),(window.plaudit=window.plaudit||{}).frontendApis=t})(); 2//# sourceMappingURL=plaudit-frontend-apis.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.