window.__attn_loaded_via_cloudflare = true;
!function(){'use strict';function t(){const t=`${e}?t=e&message=${encodeURI('failed to load')}&v=${n}`,a=new Image(1,1);return a.src=t,a}const e='https://events.attentivemobile.com/e',n='4-latest_7cb75d0213',a='eyJjb21wYW55Ijoic3RhcGxlcyIsImNlaWQiOiJrQkIiLCJ0YyI6ZmFsc2UsInVhIjp0cnVlLCJhcCI6eyJ0cmciOltdLCJlbnIiOnt9LCJ0cm4iOnsiZHMiOnsicHQiOiJkcyIsInB0IjoiZHMiLCJtcCI6e319fX0sImNjIjp7ImNvb2siOlsiQVRUTkFCVEVTVCJdLCJpdCI6dHJ1ZX0sInN3cCI6eyJzd2V0IjpmYWxzZSwic3dwbCI6dHJ1ZX0sImlkYyI6eyJlZmoiOmZhbHNlLCJlbWMiOmZhbHNlLCJlc2MiOmZhbHNlLCJlc3giOnRydWUsIm1waWQiOiIifSwibHRjIjp7fSwiZWF0IjoiaHR0cHM6Ly9ybGZ0ZC5zdGFwbGVzLmNvbSJ9',o='staples-us.attn.tv',_='https://cdn.attn.tv/tag';const i='4-latest';let r={};try{r=JSON.parse(atob(a))}catch{t()}function d(t,e,n){const a=document.createElement('script');return a.setAttribute('async','true'),a.type='text/javascript',e&&(a.onload=e),n&&(a.onerror=n),a.src=t,((document.getElementsByTagName('head')||[null])[0]||document.getElementsByTagName('script')[0].parentNode).appendChild(a),a}const c='eat';var s=(t=>(t.Click='click',t.DataLayer='datalayer',t.OrderConfirmedPage='order confirmed page',t))(s||{}),A=(t=>(t.OrderConfirmedIdentifiers='order confirmed identifiers',t))(A||{}),l=(t=>(t.ADD_TO_CART_TRIGGER='AddToCartTrigger',t.DATA_LAYER_FOR_ADD_TO_CART='DataLayerForAddToCart',t.DATA_LAYER_FOR_ALL_EVENTS='DataLayerForAllEvents',t.DATA_LAYER_FOR_PRODUCT_VIEW='DataLayerForProductView',t.DATA_LAYER_FOR_PURCHASE='DataLayerForPurchase',t.SORT_ACTION_TRIGGER='SortActionTrigger',t))(l||{});function u(t){let e=`${_}/${i}/${t}?v=${n}`;return function(t){const e=t[c]&&''!==t[c];return window.__attn_loaded_via_cloudflare&&e}(r)&&(e=`${r[c]}/eat/core`),e}s.Click,l.ADD_TO_CART_TRIGGER,l.SORT_ACTION_TRIGGER,s.DataLayer,l.DATA_LAYER_FOR_ADD_TO_CART,l.DATA_LAYER_FOR_ALL_EVENTS,l.DATA_LAYER_FOR_PRODUCT_VIEW,l.DATA_LAYER_FOR_PURCHASE,s.OrderConfirmedPage,A.OrderConfirmedIdentifiers,function(e,n){var _;function c(t){return function(){e.attn_d0x0b_evt.push({func:t,args:arguments}),e.dispatchEvent(new Event('attn_queued_sdk_event'))}}function s(){!function(){try{const[t]=window.location.hash.split(/\?/);if(t.indexOf('attn')>-1){const t=window.location.hash.slice(5);sessionStorage.setItem('_d0x0b_',t)}const e=sessionStorage.getItem('_d0x0b_');return!!e&&(window.attn_d0x0b_cfg=e,!0)}catch(t){return!1}}()?function(e=(()=>{})){d(u('unified-tag.js'),e,t)}():function(e=(()=>{})){d(u('tag-debug.js'),e,t)}(),n.removeEventListener('DOMContentLoaded',s)}e.attn_d0x0b_cfg=a,e.__attentive_cfg=JSON.parse('{\"ceid\":\"kBB\",\"os\":\"META\",\"mov\":\"3.08.14\",\"ze\":\"9995\",\"zi\":\"9995\"}'),window.__attentive_domain=o,window.__attentive||(window.__attentive={invoked:!1,show:function(){window.__attentive.invoked=!0}}),(null==(_=null==r?void 0:r.cc)?void 0:_.dap)||function(){if(window.__poll_for_path_change)return;let t=window.location.pathname;const e=()=>{window.__attentive&&window.__attentive.show&&window.__attentive.show()};window.__poll_for_path_change=!0,setInterval((function(){if(t!==window.location.pathname){const n=document.querySelector('#attentive_overlay');null!=n&&n.parentNode&&n.parentNode.removeChild(n),t=window.location.pathname,e()}}),500),e()}(),e.__attnLoaded||(e.__attnLoaded=!0,e.attn_d0x0b_evt=e.attn_d0x0b_evt||[],e.attentive={version:i,analytics:{enable:c('enable'),disable:c('disable'),track:c('track'),pageView:c('pageView'),addToCart:c('addToCart'),productView:c('productView'),purchase:c('purchase')}},'loading'===n.readyState?n.addEventListener('DOMContentLoaded',s):s())}(window,document)}();