1import{t as r}from"./chunk-DbBkvicD.js";import{Gt as T,q as J,tt as Ke}from"./chunk-_fV1tyTy.js";import{t as $n}from"./chunk-BcT1cO3W.js";import{a as r$1,i as o,t as a}from"./chunk-BzLLFsus.js";var h=`aq_consent_v1`;var O=`.akkoniq.com`;var y=365*24*60*60;var E=(()=>{class s{state=Ke(r({},o));timestamps=Ke(p());responded=Ke(!1);isDialogOpen=Ke(!1);isSettingsOpen=Ke(!1);#t=T($n);constructor(){this.#o(),this.#n()}getState(){return this.state()}hasResponded(){return this.responded()}openDialog(){this.isDialogOpen.set(!0)}closeDialog(){this.isDialogOpen.set(!1)}openSettings(){this.isSettingsOpen.set(!0)}closeSettings(){this.isSettingsOpen.set(!1)}allowAll(){let t=Date.now(),e={necessary:!0,analytics:!0,marketing:!0,functionality:!0},i=p(t);this.#e(e,i)}denyAll(){let t=Date.now(),e=r({},o),i=p(t);this.#e(e,i)}accept(t){let e=Date.now(),i=r({},o),r$2=r({},this.timestamps());for(let o of t)i[o]=!0,r$2[o]=e;for(let o of a)r$2[o]||(r$2[o]=e);this.#e(i,r$2)}withdraw(){this.state.set(r({},o)),this.timestamps.set(p()),this.responded.set(!1),this.isDialogOpen.set(!1),this.isSettingsOpen.set(!1),this.#r(),this.#i(r({},o))}#e(t,e){this.state.set(t),this.timestamps.set(e),this.responded.set(!0),this.isDialogOpen.set(!1),this.isSettingsOpen.set(!1),this.#a(t,e),this.#i(t)}#o(){let t=this.#c(h);if(t)try{let e=JSON.parse(t);D(e.state)&&e.timestamps&&(this.state.set(e.state),this.timestamps.set(e.timestamps),this.responded.set(!0))}catch{}}#n(){if(!(!(`globalPrivacyControl`in this.#t.navigator)||!this.#t.navigator.globalPrivacyControl)&&!this.responded()){let t=r({},o),e=Date.now();this.#e(t,p(e))}}#a(t,e){let r=JSON.stringify({state:t,timestamps:e});try{let o=[`${h}=${encodeURIComponent(r)}`,...this.#s(),`max-age=${y}`,`path=/`,`SameSite=Lax`];this.#t.location.protocol===`https:`&&o.push(`Secure`),this.#t.document.cookie=o.join(`; `)}catch{}}#r(){try{let t=[`${h}=`,...this.#s(),`max-age=0`,`path=/`];this.#t.document.cookie=t.join(`; `)}catch{}}#s(){let t=this.#t.location.hostname;return t===`localhost`||t===`127.0.0.1`?[]:[`domain=${O}`]}#c(t){try{let e=this.#t.document.cookie.split(`; `).find(i=>i.startsWith(`${t}=`));return e?decodeURIComponent(e.split(`=`).slice(1).join(`=`)):null}catch{return null}}#i(t){typeof this.#t.gtag==`function`&&this.#t.gtag(`consent`,`update`,r$1(t))}static ɵfac=function(e){return new(e||s)};static ɵprov=J({token:s,factory:s.ɵfac,providedIn:`root`})}return s})();function p(s=0){return{necessary:s,analytics:s,marketing:s,functionality:s}}function D(s){return typeof s!=`object`||s===null?!1:a.every(d=>d in s&&typeof s[d]==`boolean`)}export{E as t};
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.