1import{mi as r_}from"./chunk-BfOezuIK.js";function l(o){return o.normalize(`NFD`).replaceAll(new RegExp(`\\p{Diacritic}`,`gu`),``).replaceAll(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase().replaceAll(/[^a-z0-9]+/g,`-`).replaceAll(/^-+|-+$/g,``)}(class o{transform(t){return l(t)}static{this.ɵfac=function(e){return new(e||o)}}static{this.ɵpipe=r_({name:`slugify`,type:o,pure:!0})}});var m=class o{static getTimeStamp(){return new Date().getTime().toString()}static scrollToElementWithClass(t,e,r){setTimeout(()=>{let i=document.getElementsByClassName(t);if(i.length){let n=i[0];if(n&&e){let s=n.closest(e);s&&(n=s)}n.scrollIntoView({behavior:`smooth`,block:`start`}),r&&n.querySelector(r)?.focus()}})}static scrollToElementWithId(t,e=0,r=!0){let i=document.body.getBoundingClientRect().top,n=document.getElementById(t),s=i;n?.offsetWidth&&n.offsetWidth>0&&n.offsetHeight>0&&(s=n.getBoundingClientRect().top);let g=s-i-e;window.scrollTo({behavior:r?`smooth`:`auto`,top:g})}static fromHtmlToString(t){return t.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,``).replace(/<style\b[^<]*(?:(?!<\/style>)<[^<]*)*<\/style>/gi,``).replace(/<[^>]+>/g,``).replace(/ /g,` `).replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/\s+/g,` `).trim()}static generateRandomId(){let t=this.generateRandomString();for(let e=0;e<7;e++)t+=this.generateRandomString(),e<4&&(t+=`-`);return t}static generateRandomString(){return((1+Math.random())*65536|0).toString(16).substring(1)}static capitalizeFirstLetter(t){return t.charAt(0).toUpperCase()+t.slice(1)}static{this.convertOccupancyToString=t=>t?`adults=${t.adults}&children=${t.children}&infants=${t.infants}`:``}static bodyLock(t,e){let r=document.body;t?(r.classList.add(`overflow-hidden`,`fixed`,`w-full`),r.style.top=`-${e}px`):(r.classList.remove(`overflow-hidden`,`fixed`,`w-full`),r.style.removeProperty(`top`),window.scrollTo(0,e))}static mobileBodyLock(t,e,r=!1){let i=document.body;t?(i.classList.add(`overflow-hidden`,`fixed`,`w-full`,`sm:overflow-auto`,`sm:relative`,`sm:w-auto`),r&&(i.style.top=`-${e}px`)):(i.classList.remove(`overflow-hidden`,`fixed`,`w-full`,`sm:overflow-auto`,`sm:relative`,`sm:w-auto`),r&&(i.style.removeProperty(`top`),window.scrollTo(0,e)))}static isIdElementInsideViewport(t,e=0){let r=document.getElementById(t);if(!r)return!1;let i=r.getBoundingClientRect();return i.top>=0&&i.left>=0&&i.right<=window.innerWidth&&i.bottom+e<=window.innerHeight}static addSuffixToKeys(t,e){return Object.keys(t).forEach(function(r){t[r]&&typeof t[r]==`object`&&o.addSuffixToKeys(t[r],e),t[r+`__`+e]=t[r],delete t[r]}),t}static getNormalizedName(t){return t.normalize(`NFD`).replace(new RegExp(`\\p{Diacritic}`,`gu`),``).toLowerCase()}static getSlugifiedName(t){return l(t)}static parseJsonObject(t){try{return JSON.parse(t)}catch(e){return}}static stripWhitespace(t){return t.replace(/\s+/g,` `).trim()}};export{m as t}; 2//# debugId=fe23f5f3-14fe-5002-b775-0325822e96ac 3//# sourceMappingURL=chunk-CWMnFx7T.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.