(()=>{"use strict";window.addEventListener("DOMContentLoaded",(()=>{const t=document.querySelectorAll(".wpco-wrapper");[].slice.call(t).forEach((t=>(t=>{const e=t.getAttribute("data-wpco-post-class"),o=document.querySelector(e);if(!o)return;const r=t.getAttribute("data-wpco-selector").split(",").map((t=>t.trim())).filter(Boolean),a=t.getAttribute("data-wpco-headings").split(",").map((t=>t.trim())).filter(Boolean),c="true"===t.getAttribute("data-wpco-move"),l=c?t.getAttribute("data-wpco-move-to").split(",").map((t=>t.trim())).filter(Boolean):[],n=[];if(r.forEach((t=>{a.forEach((e=>{const r=`${t} > ${e}`,a=o.querySelectorAll(r);1>a.length||[].slice.call(a).forEach((t=>{n.push(t)}))}))})),1>n.length)return;const i=[];0{const e=o.querySelector(t);e&&i.push(e)})),new ContentsOutline(t,{headings:n,moveToBefore1stHeading:c,moveTo:i})})(t)))}),!1)})();