import{Ed as h,Sa as m,ea as f,hd as l,ja as d}from"./chunk-7RF4FE4V.js";var I={production:!1,apiUrl:x(),pointingServer:"https://pbengg-redirect.parablu.com/cmtestsan/"};function x(){return window.location.hostname}var A=(()=>{class i{constructor(e,t){this.document=e,this.platformId=t,this.documentIsAccessible=h(this.platformId)}static getCookieRegExp(e){let t=e.replace(/([\[\]{}()|=;+?,.*^$])/gi,"\\$1");return new RegExp("(?:^"+t+"|;\\s*"+t+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(e){try{return decodeURIComponent(e)}catch{return e}}check(e){return this.documentIsAccessible?(e=encodeURIComponent(e),i.getCookieRegExp(e).test(this.document.cookie)):!1}get(e){if(this.documentIsAccessible&&this.check(e)){e=encodeURIComponent(e);let s=i.getCookieRegExp(e).exec(this.document.cookie);return s[1]?i.safeDecodeURIComponent(s[1]):""}else return""}getAll(){if(!this.documentIsAccessible)return{};let e={},t=this.document;return t.cookie&&t.cookie!==""&&t.cookie.split(";").forEach(s=>{let[c,n]=s.split("=");e[i.safeDecodeURIComponent(c.replace(/^ /,""))]=i.safeDecodeURIComponent(n)}),e}set(e,t,s,c,n,a,p,g){if(!this.documentIsAccessible)return;if(typeof s=="number"||s instanceof Date||c||n||a||p){let u={expires:s,path:c,domain:n,secure:a,sameSite:p||"Lax",partitioned:g};this.set(e,t,u);return}let r=encodeURIComponent(e)+"="+encodeURIComponent(t)+";",o=s||{};if(o.expires)if(typeof o.expires=="number"){let u=new Date(new Date().getTime()+o.expires*1e3*60*60*24);r+="expires="+u.toUTCString()+";"}else r+="expires="+o.expires.toUTCString()+";";o.path&&(r+="path="+o.path+";"),o.domain&&(r+="domain="+o.domain+";"),o.secure===!1&&o.sameSite==="None"&&(o.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${e} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),o.secure&&(r+="secure;"),o.sameSite||(o.sameSite="Lax"),r+="sameSite="+o.sameSite+";",o.partitioned&&(r+="Partitioned;"),this.document.cookie=r}delete(e,t,s,c,n="Lax"){if(!this.documentIsAccessible)return;let a=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(e,"",{expires:a,path:t,domain:s,secure:c,sameSite:n})}deleteAll(e,t,s,c="Lax"){if(!this.documentIsAccessible)return;let n=this.getAll();for(let a in n)n.hasOwnProperty(a)&&this.delete(a,e,t,s,c)}static{this.\u0275fac=function(t){return new(t||i)(d(l),d(m))}}static{this.\u0275prov=f({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();export{I as a,A as b};
