1(()=>{function p(t){for(var e=1;e<arguments.length;e++){var c=arguments[e];for(var o in c)o!=="__proto__"&&(t[o]=c[o])}return t}var L={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function w(t,e){function c(n,i,r){if(!(typeof document>"u")){r=p({},e,r),typeof r.expires=="number"&&(r.expires=new Date(Date.now()+r.expires*864e5)),r.expires&&(r.expires=r.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in r)r[s]&&(a+="; "+s,r[s]!==!0&&(a+="="+r[s].split(";")[0]));return document.cookie=n+"="+t.write(i,n)+a}}function o(n){if(!(typeof document>"u"||arguments.length&&!n)){for(var i=document.cookie?document.cookie.split("; "):[],r={},a=0;a<i.length;a++){var s=i[a].split("="),l=s.slice(1).join("=");try{var m=decodeURIComponent(s[0]);if(m in r||(r[m]=t.read(l,m)),n===m)break}catch{}}return n?r[n]:r}}return Object.create({set:c,get:o,remove:function(n,i){c(n,"",p({},i,{expires:-1}))},withAttributes:function(n){return w(this.converter,p({},this.attributes,n))},withConverter:function(n){return w(p({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var f=w(L,{path:"/"});var u=window.zucItemHunt||{};function d(){return u.isAuthed??!!document.querySelector(".header-user-nav")}function x(){let t=new Date;t.setTime(t.getTime()+600*1e3),document.cookie="zuc_auth_success_ga_position=item-hunt; path=/; expires="+t.toUTCString()}var _=new BroadcastChannel("item-hunt"),g=class{get(){return f.get("zuc_item_hunt")||0}set(e){f.set("zuc_item_hunt",e,{expires:1})}inc(){if(Number(this.get())>=10)return;let e=this.get(),c=e?Number(e)+1:1;this.set(c),document.dispatchEvent(new CustomEvent("item-hunt-count",{detail:c})),_.postMessage(c)}};function I(t,e){return Math.floor(Math.random()*(e-t)+t)}function b(t,e,c){let o=I(0,window.innerWidth-200),n=Math.max(document.body.offsetHeight,window.innerHeight),i=c+e,r=n/10,s=i===0?85:i*r,l=Math.min((i+1)*r,n-t.offsetHeight),m=l<s?n-t.offsetHeight:l,k=I(s,m);return{x:o,y:k}}function B(t){return t/window.innerWidth*100}function z(t,e,c){let{x:o,y:n}=b(t,e,c);t.style.left=`${B(o)}%`,t.style.top=`${n}px`,setTimeout(()=>t.classList.add("is-visible"),500)}function y(t,e){let c=document.getElementById("item-hunt-chip");if(!c)throw new Error("Item hunt chip not found");if(t===9&&!d())return[];let o=Array(t).fill(1).map(()=>document.createElement("img"));return o.forEach((n,i)=>{n.src=c.src,n.classList.add("item-hunt-chip"),document.body.appendChild(n),z(n,i,e)}),o}function H(){let t=new g;if(u.status)return t.set(10),null;let e=Number(t.get());if(e>=10||!d()&&e>0)return null;let c=document.body.classList.contains("home"),o=[];c?o=d()?y(10-e,e):y(1,e):e===0&&(o=y(1,e));let n=document.createElement("div");n.classList.add("item-hunt-plus-one"),o.forEach(i=>i.addEventListener("click",()=>{let r=n.cloneNode(!0);r.innerText=String(Number(t.get())+1),r.style.left=`${parseInt(i.style.left)+i.getBoundingClientRect().width/2}px`,r.style.top=i.style.top,document.body.appendChild(r),t.inc(),i.remove(),setTimeout(()=>{r.remove()},1e3)}))}H();_.onmessage=t=>{let e=document.querySelectorAll(".item-hunt-chip"),o=10-t.data;e.forEach((n,i)=>{i>=o&&n.remove()})};function h(t){let e=document.getElementById(t);e&&e.classList.add("is-active")}function C(t){t&&(t.id==="itm-hunt-popup-all"&&document.getElementById("item-hunt-counter")?.remove(),t.classList.remove("is-active"))}document.addEventListener("click",t=>{t.target.classList.contains("itm-hunt-popup")&&C(t.target)});document.addEventListener("click",t=>{(t.target.classList.contains("itm-hunt-popup-close")||t.target.closest(".itm-hunt-popup-close"))&&C(t.target.closest(".itm-hunt-popup"))});function E(){if(u.status)return;let t=new g,e=Number(t.get())||0;if(e<1)return;let c=document.body.classList.contains("home");if(d()&&!c){document.getElementById("item-hunt-counter")?.remove();return}let o=document.getElementById("item-hunt-counter");if(o||(o=document.createElement("div"),o.id="item-hunt-counter",o.classList.add("item-hunt-counter"),document.body.appendChild(o),typeof v=="function"&&v()),o.innerText=`${e} / 10`,e===1&&!d()&&(h("itm-hunt-popup-first"),x(),window.zuc_ga_track&&window.zuc_ga_track({event:"cta_click",position:"item-hunt",action:"start"})),e>=10&&(h("itm-hunt-popup-all"),x(),window.zuc_ga_track&&window.zuc_ga_track({event:"cta_click",position:"item-hunt",action:"finish"}),d()&&!u._sent)){u._sent=!0;let n=new FormData;n.append("action",u.action||"zuc_item_hunt_completed"),n.append("_wpnonce",u.nonce||""),fetch(u.ajaxUrl||"/wp-admin/admin-ajax.php",{method:"POST",body:n,credentials:"same-origin"}).then(i=>i.json()).then(i=>{i.status&&f.remove("zuc_item_hunt")}).catch(i=>{u._sent=!1,console.error(i)})}o.dataset.bound||(o.dataset.bound="1",o.addEventListener("click",()=>{Number(t.get())===1&&!d()&&h("itm-hunt-popup-first"),Number(t.get())>=10&&h("itm-hunt-popup-all")}
1))}E();document.addEventListener("item-hunt-count",()=>E());_.addEventListener("message",()=>E());function v(){let t=document.getElementById("item-hunt-counter");if(!t)return;let e=[document.querySelector(".header"),document.querySelector(".toc")],c=[0];e.forEach(n=>{if(n){let i=n.offsetHeight;i&&c.push(i+n.getBoundingClientRect().top)}});let o=Math.max(...c);t.style.top=`${o}px`}v();window.addEventListener("scroll",()=>requestAnimationFrame(v),{passive:!0});document.querySelectorAll("[data-close-ih]").forEach(t=>{t.addEventListener("click",()=>C(t.closest(".itm-hunt-popup")));let e=t.dataset.closeIh;if(e.startsWith("sign-")){let c=document.querySelector(".header .user-login button");if(c&&c.click(),e==="sign-up"){let o=document.querySelector('#user-sign [data-login-tab="sign-up"]');o&&o.click()}}});})(); 2/*! Bundled license information: 3 4js-cookie/dist/js.cookie.mjs: 5 (*! js-cookie v3.0.7 | MIT *) 6*/
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.