1const t={mob:480,phab:560,tab:768,desk:980},e=(t,e)=>{let n=0;return(...i)=>{clearTimeout(n),n=setTimeout((()=>t(...i)),e)}},n=(t,e)=>{let n=t,i="";const a=/\{\{\s*(\w+)\s*\}\}/,r=e;function s(t,e=2,n=",",i="."){if(Number.isNaN(t)||null===t)return 0;const a=(t/100).toFixed(e).split(".");return a[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,`$1${n}`)+(a[1]?i+a[1]:"")}switch("string"==typeof n&&(n=n.replace(".","")),r.match(a)[1]){case"amount":i=s(n,2);break;case"amount_no_decimals":i=s(n,0);break;case"amount_with_comma_separator":i=s(n,2,".",",");break;case"amount_no_decimals_with_comma_separator":i=s(n,0,".",",")}return r.replace(a,i)},i=t=>t.toString().normalize("NFKD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/_/g,"-").replace(/--+/g,"-").replace(/-$/g,""),a=t=>!(t.offsetWidth||t.offsetHeight||t.getClientRects().length),r=()=>{let t=!1;if("maxTouchPoints"in navigator)t=navigator.maxTouchPoints>0;else if("msMaxTouchPoints"in navigator)t=navigator.msMaxTouchPoints>0;else{const e=window.matchMedia&&matchMedia("(pointer:coarse)");if(e&&"(pointer:coarse)"===e.media)t=!!e.matches;else if("orientation"in window)t=!0;else{const e=navigator.userAgent;t=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(e)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(e)}}return t},s=(t,e,n,i,a)=>{const r=i/a,s=e/n;let o=0,c=0;return(t?r>s:r<s)?(o=e,c=o/r):(c=n,o=c*r),{width:o,height:c,x:(e-o)/2,y:(n-c)/2}},o=t=>Array.from(t.querySelectorAll("summary, a[href], button:enabled, [tabindex]:not([tabindex^='-']), [draggable], area, input:not([type=hidden]):enabled, select:enabled, textarea:enabled, object, iframe")),c=()=>{document.querySelectorAll(".js-youtube").forEach((t=>{t.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")})),document.querySelectorAll(".js-vimeo").forEach((t=>{t.contentWindow.postMessage('{"method":"pause"}',"*")})),document.querySelectorAll("video").forEach((t=>t.pause())),document.querySelectorAll("product-model").forEach((t=>{t.modelViewerUI&&t.modelViewerUI.pause()}))},u={},l=(t=null)=>{document.removeEventListener("focusin",u.focusin),document.removeEventListener("focusout",u.focusout),document.removeEventListener("keydown",u.keydown),t&&t.focus()},d=(t,e=t)=>{const n=o(t),i=n[0],a=n[n.length-1];l(),u.focusin=e=>{e.target!==t&&e.target!==a&&e.target!==i||document.addEventListener("keydown",u.keydown)},u.focusout=()=>{document.removeEventListener("keydown",u.keydown)},u.keydown=e=>{"TAB"===e.code.toUpperCase()&&(e.target!==a||e.shiftKey||(e.preventDefault(),i.focus()),e.target!==t&&e.target!==i||!e.shiftKey||(e.preventDefault(),a.focus()))},document.addEventListener("focusout",u.focusout),document.addEventListener("focusin",u.focusin),e.focus()};class m{#t;#e;constructor({interval:t,callback:e}){this.interval=t,this.timeRemaining=t,this.callback=e,this.#t=null,this.#e=null,this.status="ready"}start(){"running"!==this.status&&"stopped"!==this.status&&(this.status="running",this.#e=Date.now(),this.#t=setInterval(this.callback,this.interval))}stop(){if("stopped"===this.status||"ready"===this.status||!this.#e)return;this.status="stopped",clearInterval(this.#t);const t=Date.now()-this.#e;this.timeRemaining-=t}resume(){"running"!==this.status&&"ready"!==this.status&&this.#e&&(this.status="running",this.#e=Date.now(),this.#t=setInterval(this.callback,this.timeRemaining))}reset(){this.status="ready",this.timeRemaining=this.interval,this.#e=null,clearInterval(this.#t),this.#t=null}}class h{#n=null;constructor(e={}){const{min:n,max:i}={min:0,max:0,...e};if(!n&&!i)throw new Error("At least one breakpoint is required");const a="string"==typeof n?Object.keys(t).includes(n)?t[n]:0:"number"==typeof n?n:0,r="string"==typeof i?Object.keys(t).includes(i)?t[i]:0:"number"==typeof i?i:0;if(!n&&!i)throw new Error("Incorrect breakpoint(s) provided");const s=`(${[a,r].map(((t,e)=>t>0?`${0===e?"min":"max"}-width: ${t}px`:null)).filter((t=>t)).join(" and ")})`;this.#n=window.matchMedia(s)}active(){return this.#n.matches}on(t,e){return this.#n.addEventListener("change",t,e),this}off(t,e){return this.#n.addEventListener("change",t,e),this}}
1export{t as BREAKPOINTS,m as ResumableInterval,h as StateSwitch,e as debounce,n as formatMoney,o as getFocusableElements,s as getObjectFitSize,i as handle,a as isHidden,r as isTouchScreen,c as pauseAllMedia,l as removeTrapFocus,d as trapFocus};
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.