"use strict";var DefaultPixel=(()=>{var bt=Object.defineProperty,is=Object.defineProperties,ss=Object.getOwnPropertyDescriptor,as=Object.getOwnPropertyDescriptors,ls=Object.getOwnPropertyNames,St=Object.getOwnPropertySymbols;var tn=Object.prototype.hasOwnProperty,Eo=Object.prototype.propertyIsEnumerable;var vo=(e,t,n)=>t in e?bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t)=>{for(var n in t||(t={}))tn.call(t,n)&&vo(e,n,t[n]);if(St)for(var n of St(t))Eo.call(t,n)&&vo(e,n,t[n]);return e},k=(e,t)=>is(e,as(t));var nn=(e,t)=>{var n={};for(var o in e)tn.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&St)for(var o of St(e))t.indexOf(o)<0&&Eo.call(e,o)&&(n[o]=e[o]);return n};var cs=(e,t)=>{for(var n in t)bt(e,n,{get:t[n],enumerable:!0})},ds=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ls(t))!tn.call(e,r)&&r!==n&&bt(e,r,{get:()=>t[r],enumerable:!(o=ss(t,r))||o.enumerable});return e};var us=e=>ds(bt({},"__esModule",{value:!0}),e);var E=(e,t,n)=>new Promise((o,r)=>{var i=l=>{try{a(n.next(l))}catch(u){r(u)}},s=l=>{try{a(n.throw(l))}catch(u){r(u)}},a=l=>l.done?o(l.value):Promise.resolve(l.value).then(i,s);a((n=n.apply(e,t)).next())});var gd={};cs(gd,{on:()=>Ae,scheduler:()=>Fi,submitForm:()=>ki});var S=class{static isVerbose(){return window.__defaultPixel__logging__verbose===!0}static formatMessage(t,n){return t?`${this.PREFIX} [${t}] ${n}`:`${this.PREFIX} ${n}`}static log(t,n,o,...r){let i=this.formatMessage(n,o);switch(t){case"debug":this.isVerbose()&&console.debug(i,...r);break;case"info":console.info(i,...r);break;case"warn":console.warn(i,...r);break;case"error":console.error(i,...r);break}}static debug(t,...n){this.log("debug",null,t,...n)}static info(t,...n){this.log("info",null,t,...n)}static warn(t,...n){this.log("warn",null,t,...n)}static error(t,...n){this.log("error",null,t,...n)}static module(t){return{debug:(n,...o)=>this.log("debug",t,n,...o),info:(n,...o)=>this.log("info",t,n,...o),warn:(n,...o)=>this.log("warn",t,n,...o),error:(n,...o)=>this.log("error",t,n,...o),success:(n,...o)=>this.log("debug",t,`\u2713 ${n}`,...o),found:(n,o)=>{let r=o!==void 0?`Found ${o} ${n}`:`Found ${n}`;this.log("debug",t,r)},sent:(n,...o)=>this.log("debug",t,`\u2192 Sent ${n}`,...o),received:(n,...o)=>this.log("debug",t,`\u2190 Received ${n}`,...o)}}};S.PREFIX="[Default.com]";var ms=S.module("Config"),on=class e{constructor(){this.config=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}initialize(t){this.config=t,ms.success(`Config initialized with endpoint ${t.endpoint}`)}get(){return this.config}getPublicKey(){var t;return((t=this.config)==null?void 0:t.publicKey)||null}getEndpoint(){var t;return((t=this.config)==null?void 0:t.endpoint)||null}isInitialized(){return this.config!==null}reset(){this.config=null}},C=on.getInstance();var re={SESSION_START:"/api/session/start",SESSION_END:"/api/session/end",PAGEVIEW:"/api/events/pageview",FORM_SUBMISSION:"/api/form-submission",FORM_INTERACTION:"/api/form-interaction",FORM_CATALOG:"/api/form-catalog",SCHEDULER_STYLE:"/api/pixel/scheduler-style"};var R=S.module("API"),Xe=()=>Date.now(),vt=!0;function Lo(e){vt=e,R.debug(`Capture ${e?"enabled":"disabled"}`)}function _o(){return vt}function fs(e){if(e===null||typeof e!="object")return null;try{let t=JSON.stringify(e);return typeof t=="string"&&t.length>0?t:null}catch(t){return null}}function Et(e,t){if(!vt){R.debug("Capture disabled, skipping beacon");return}let n=C.getEndpoint();if(!n){R.debug("No endpoint configured, skipping beacon");return}let o=fs(t);if(o===null){R.debug("Beacon payload is not serializable JSON, skipping");return}let r=`${n}${e}`;try{let i=new Blob([o],{type:"text/plain"});navigator.sendBeacon(r,i)||(R.debug("sendBeacon failed, falling back to fetch"),fetch(r,{method:"POST",headers:{"Content-Type":"text/plain"},body:o,keepalive:!0}).catch(()=>{R.debug("Fetch fallback also failed")}))}catch(i){R.debug("Failed to send beacon")}}function rn(e,t){return E(this,null,function*(){if(!vt)return R.debug("Capture disabled, skipping request"),null;let n=C.getEndpoint();if(!n)return R.debug("No endpoint configured, skipping request"),null;let o=C.getPublicKey();if(!o)return R.warn("No public key configured, skipping request"),null;let r=`${n}${e}`;try{let i=yield fetch(r,{method:"POST",headers:{"Content-Type":"text/plain"},body:JSON.stringify(k(y({},t),{publicKey:o}))});return i.ok?(R.success(`Request to ${e} succeeded`),i):(R.warn(`Request to ${e} failed with status ${i.status}`),null)}catch(i){return R.warn(`Request to ${e} threw error`,i),null}})}var ps=r=>E(null,[r],function*({url:e,data:t,publicKey:n,mode:o}){return fetch(e,{method:"POST",headers:o==="json_auth"?{"Content-Type":"application/json",Authorization:`Bearer ${n}`}:{"Content-Type":"text/plain;charset=UTF-8"},body:JSON.stringify(t)})}),gs=e=>e===401||e===415,hs=e=>{var t,n,o,r;return{server_timing:(t=e.headers.get("server-timing"))!=null?t:void 0,x_vercel_id:(n=e.headers.get("x-vercel-id"))!=null?n:void 0,x_vercel_cache:(o=e.headers.get("x-vercel-cache"))!=null?o:void 0,x_matched_path:(r=e.headers.get("x-matched-path"))!=null?r:void 0}};function wo(o,r){return E(this,arguments,function*(e,t,n={}){let i=C.getEndpoint();if(!i)return{success:!1,status:0,error:"No endpoint configured"};let s=C.getPublicKey();if(!s)return{success:!1,status:0,error:"No public key configured"};let a=`${i}${e}`,l=n.preferSimpleRequest?["simple_text","json_auth"]:["json_auth"];for(let[u,c]of l.entries()){let d=u===l.length-1,f=Xe();try{let m=yield ps({url:a,data:t,publicKey:s,mode:c}),g=Xe(),p=hs(m),h=yield m.json().catch(()=>{}),b=Xe(),v={request_mode:c,request_start_ms:f,headers_received_ms:g,body_parsed_ms:b,headers_wait_ms:Math.max(0,g-f),body_parse_ms:Math.max(0,b-g),total_duration_ms:Math.max(0,b-f)};if(!m.ok){let I={success:!1,status:m.status,body:h,headers:p,timing:v,error:`Request to ${e} failed with status ${m.status}`},F=c==="simple_text"&&gs(m.status);if(!d&&F)continue;return I}return{success:!0,status:m.status,body:h,headers:p,timing:v}}catch(m){let g={success:!1,status:0,timing:{request_mode:c,request_start_ms:f,headers_received_ms:f,body_parsed_ms:Xe(),headers_wait_ms:0,body_parse_ms:0,total_duration_ms:Math.max(0,Xe()-f)},error:m instanceof Error?m.message:"Unknown error"};if(!d&&c==="simple_text")continue;return g}}return{success:!1,status:0,error:"No request mode available"}})}function Io(e){Et(re.SESSION_START,e)}function sn(e){Et(re.SESSION_END,e)}function Ao(e){Et(re.PAGEVIEW,e)}var H={Redirect:"redirect",DisplayScheduler:"display_scheduler"};function xo(e){return E(this,null,function*(){let t=yield rn(re.FORM_SUBMISSION,e);if(!t)return null;try{return yield t.json()}catch(n){return R.warn("Failed to parse form submission response",n),null}})}function Mo(e){return E(this,null,function*(){let t=yield rn(re.FORM_INTERACTION,e);if(!t)return null;try{return yield t.json()}catch(n){return R.warn("Failed to parse form interaction response",n),null}})}function To(e){Et(re.FORM_CATALOG,e)}function ko(){return E(this,null,function*(){var t,n;let e=yield rn(re.SCHEDULER_STYLE,{});if(!e)return{schedulerStyle:null,logoUrl:null,schedulerFormIds:[]};try{let o=yield e.json();return{schedulerStyle:(t=o.schedulerStyle)!=null?t:null,logoUrl:(n=o.logoUrl)!=null?n:null,schedulerFormIds:Array.isArray(o.schedulerFormIds)?o.schedulerFormIds:[]}}catch(o){return R.warn("Failed to parse scheduler style response",o),{schedulerStyle:null,logoUrl:null,schedulerFormIds:[]}}})}var zo="5.0.1";function It(e,t){return new Promise(n=>setTimeout(n,e,t))}function ys(){return new Promise(e=>{let t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(null)})}function Ss(e,t=1/0){let{requestIdleCallback:n}=window;return n?new Promise(o=>n.call(window,()=>o(),{timeout:t})):It(Math.min(e,t))}function Wo(e){return!!e&&typeof e.then=="function"}function Fo(e,t){try{let n=e();Wo(n)?n.then(o=>t(!0,o),o=>t(!1,o)):t(!0,n)}catch(n){t(!1,n)}}function Co(e,t,n=16){return E(this,null,function*(){let o=Array(e.length),r=Date.now();for(let i=0;i<e.length;++i){o[i]=t(e[i],i);let s=Date.now();s>=r+n&&(r=s,yield ys())}return o})}function Ze(e){return e.then(void 0,()=>{}),e}function bs(e,t){for(let n=0,o=e.length;n<o;++n)if(e[n]===t)return!0;return!1}function vs(e,t){return!bs(e,t)}function mn(e){return parseInt(e)}function ee(e){return parseFloat(e)}function ae(e,t){return typeof e=="number"&&isNaN(e)?t:e}function O(e){return e.reduce((t,n)=>t+(n?1:0),0)}function Yo(e,t=1){if(Math.abs(t)>=1)return Math.round(e/t)*t;{let n=1/t;return Math.round(e*n)/n}}function Es(e){var t,n;let o=`Unexpected syntax '${e}'`,r=/^\s*([a-z-]*)(.*)$/i.exec(e),i=r[1]||void 0,s={},a=/([.:#][\w-]+|\[.+?\])/gi,l=(u,c)=>{s[u]=s[u]||[],s[u].push(c)};for(;;){let u=a.exec(r[2]);if(!u)break;let c=u[0];switch(c[0]){case".":l("class",c.slice(1));break;case"#":l("id",c.slice(1));break;case"[":{let d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)l(d[1],(n=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&n!==void 0?n:"");else throw new Error(o);break}default:throw new Error(o)}}return[i,s]}function Ls(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++){let o=e.charCodeAt(n);if(o>127)return new TextEncoder().encode(e);t[n]=o}return t}function fe(e,t){let n=e[0]>>>16,o=e[0]&65535,r=e[1]>>>16,i=e[1]&65535,s=t[0]>>>16,a=t[0]&65535,l=t[1]>>>16,u=t[1]&65535,c=0,d=0,f=0,m=0;m+=i+u,f+=m>>>16,m&=65535,f+=r+l,d+=f>>>16,f&=65535,d+=o+a,c+=d>>>16,d&=65535,c+=n+s,c&=65535,e[0]=c<<16|d,e[1]=f<<16|m}function K(e,t){let n=e[0]>>>16,o=e[0]&65535,r=e[1]>>>16,i=e[1]&65535,s=t[0]>>>16,a=t[0]&65535,l=t[1]>>>16,u=t[1]&65535,c=0,d=0,f=0,m=0;m+=i*u,f+=m>>>16,m&=65535,f+=r*u,d+=f>>>16,f&=65535,f+=i*l,d+=f>>>16,f&=65535,d+=o*u,c+=d>>>16,d&=65535,d+=r*l,c+=d>>>16,d&=65535,d+=i*a,c+=d>>>16,d&=65535,c+=n*u+o*l+r*a+i*s,c&=65535,e[0]=c<<16|d,e[1]=f<<16|m}function ke(e,t){let n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<<t|e[1]>>>32-t,e[1]=e[1]<<t|n>>>32-t):(t-=32,e[0]=e[1]<<t|n>>>32-t,e[1]=n<<t|e[1]>>>32-t)}function $(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<<t):(e[0]=e[1]<<t-32,e[1]=0))}function x(e,t){e[0]^=t[0],e[1]^=t[1]}var _s=[4283543511,3981806797],ws=[3301882366,444984403];function Ro(e){let t=[0,e[0]>>>1];x(e,t),K(e,_s),t[1]=e[0]>>>1,x(e,t),K(e,ws),t[1]=e[0]>>>1,x(e,t)}var Lt=[2277735313,289559509],_t=[1291169091,658871167],Do=[0,5],Is=[0,1390208809],As=[0,944331445];function xs(e,t){let n=Ls(e);t=t||0;let o=[0,n.length],r=o[1]%16,i=o[1]-r,s=[0,t],a=[0,t],l=[0,0],u=[0,0],c;for(c=0;c<i;c=c+16)l[0]=n[c+4]|n[c+5]<<8|n[c+6]<<16|n[c+7]<<24,l[1]=n[c]|n[c+1]<<8|n[c+2]<<16|n[c+3]<<24,u[0]=n[c+12]|n[c+13]<<8|n[c+14]<<16|n[c+15]<<24,u[1]=n[c+8]|n[c+9]<<8|n[c+10]<<16|n[c+11]<<24,K(l,Lt),ke(l,31),K(l,_t),x(s,l),ke(s,27),fe(s,a),K(s,Do),fe(s,Is),K(u,_t),ke(u,33),K(u,Lt),x(a,u),ke(a,31),fe(a,s),K(a,Do),fe(a,As);l[0]=0,l[1]=0,u[0]=0,u[1]=0;let d=[0,0];switch(r){case 15:d[1]=n[c+14],$(d,48),x(u,d);case 14:d[1]=n[c+13],$(d,40),x(u,d);case 13:d[1]=n[c+12],$(d,32),x(u,d);case 12:d[1]=n[c+11],$(d,24),x(u,d);case 11:d[1]=n[c+10],$(d,16),x(u,d);case 10:d[1]=n[c+9],$(d,8),x(u,d);case 9:d[1]=n[c+8],x(u,d),K(u,_t),ke(u,33),K(u,Lt),x(a,u);case 8:d[1]=n[c+7],$(d,56),x(l,d);case 7:d[1]=n[c+6],$(d,48),x(l,d);case 6:d[1]=n[c+5],$(d,40),x(l,d);case 5:d[1]=n[c+4],$(d,32),x(l,d);case 4:d[1]=n[c+3],$(d,24),x(l,d);case 3:d[1]=n[c+2],$(d,16),x(l,d);case 2:d[1]=n[c+1],$(d,8),x(l,d);case 1:d[1]=n[c],x(l,d),K(l,Lt),ke(l,31),K(l,_t),x(s,l)}return x(s,o),x(a,o),fe(s,a),fe(a,s),Ro(s),Ro(a),fe(s,a),fe(a,s),("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)+("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)}function Ms(e){var t;return y({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(`
`)},e)}function Ts(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function ks(e){return typeof e!="function"}function Fs(e,t){let n=Ze(new Promise(o=>{let r=Date.now();Fo(e.bind(null,t),(...i)=>{let s=Date.now()-r;if(!i[0])return o(()=>({error:i[1],duration:s}));let a=i[1];if(ks(a))return o(()=>({value:a,duration:s}));o(()=>new Promise(l=>{let u=Date.now();Fo(a,(...c)=>{let d=s+Date.now()-u;if(!c[0])return l({error:c[1],duration:d});l({value:c[1],duration:d})})}))})}));return function(){return n.then(r=>r())}}function Cs(e,t,n,o){let r=Object.keys(e).filter(s=>vs(n,s)),i=Ze(Co(r,s=>Fs(e[s],t),o));return function(){return E(this,null,function*(){let a=yield i,l=yield Co(a,d=>Ze(d()),o),u=yield Promise.all(l),c={};for(let d=0;d<r.length;++d)c[r[d]]=u[d];return c})}}function Ko(){let e=window,t=navigator;return O(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function Rs(){let e=window,t=navigator;return O(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Ko()}function Je(){let e=window,t=navigator;return O(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,(t.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function te(){let e=window,t=navigator;return O(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function fn(){let e=window,{HTMLElement:t,Document:n}=e;return O(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function qe(){let e=window;return Ts(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function jo(){var e,t;let n=window;return O(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function Ds(){let e=window;return O([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function Ps(){let e=window,{URLPattern:t}=e;return O(["union"in Set.prototype,"Iterator"in e,t&&"hasRegExpGroups"in t.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}function Os(){let e=window;return O(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Qe(){let e=window,t=navigator,{CSS:n,HTMLButtonElement:o}=e;return O([!("getStorageUpdates"in t),o&&"popover"in o.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function Ns(){if(navigator.platform==="iPad")return!0;let e=screen,t=e.width/e.height;return O(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function Hs(){let e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function Us(){let e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function pn(){let e=Je(),t=jo(),n=window,o=navigator,r="connection";return e?O([!("SharedWorker"in n),o[r]&&"ontypechange"in o[r],!("sinkId"in new Audio)])>=2:t?O(["onorientationchange"in n,"orientation"in n,/android/i.test(o.appVersion)])>=2:!1}function Vs(){let e=navigator,t=window,n=Audio.prototype,{visualViewport:o}=t;return O(["srLatency"in n,"srChannelCount"in n,"devicePosture"in e,o&&"segments"in o,"getTextInformation"in Image.prototype])>=3}function Gs(){return zs()?-4:Bs()}function Bs(){let e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if($s())return-1;let n=4500,o=5e3,r=new t(1,o,44100),i=r.createOscillator();i.type="triangle",i.frequency.value=1e4;let s=r.createDynamicsCompressor();s.threshold.value=-50,s.knee.value=40,s.ratio.value=12,s.attack.value=0,s.release.value=.25,i.connect(s),s.connect(r.destination),i.start(0);let[a,l]=Ws(r),u=Ze(a.then(c=>Ys(c.getChannelData(0).subarray(n)),c=>{if(c.name==="timeout"||c.name==="suspended")return-3;throw c}));return()=>(l(),u)}function $s(){return te()&&!fn()&&!Os()}function zs(){return te()&&Qe()&&qe()||Je()&&Vs()&&Ps()}function Ws(e){let i=()=>{};return[new Promise((a,l)=>{let u=!1,c=0,d=0;e.oncomplete=g=>a(g.renderedBuffer);let f=()=>{setTimeout(()=>l(Po("timeout")),Math.min(500,d+5e3-Date.now()))},m=()=>{try{let g=e.startRendering();switch(Wo(g)&&Ze(g),e.state){case"running":d=Date.now(),u&&f();break;case"suspended":document.hidden||c++,u&&c>=3?l(Po("suspended")):setTimeout(m,500);break}}catch(g){l(g)}};m(),i=()=>{u||(u=!0,d>0&&f())}}),i]}function Ys(e){let t=0;for(let n=0;n<e.length;++n)t+=Math.abs(e[n]);return t}function Po(e){let t=new Error(e);return t.name=e,t}function Xo(e,t,n=50){return E(this,null,function*(){var o,r,i;let s=document;for(;!s.body;)yield It(n);let a=s.createElement("iframe");try{for(yield new Promise((l,u)=>{let c=!1,d=()=>{c=!0,l()},f=p=>{c=!0,u(p)};a.onload=d,a.onerror=f;let{style:m}=a;m.setProperty("display","block","important"),m.position="absolute",m.top="0",m.left="0",m.visibility="hidden",t&&"srcdoc"in a?a.srcdoc=t:a.src="about:blank",s.body.appendChild(a);let g=()=>{var p,h;c||(((h=(p=a.contentWindow)===null||p===void 0?void 0:p.document)===null||h===void 0?void 0:h.readyState)==="complete"?d():setTimeout(g,10))};g()});!(!((r=(o=a.contentWindow)===null||o===void 0?void 0:o.document)===null||r===void 0)&&r.body);)yield It(n);return yield e(a,a.contentWindow)}finally{(i=a.parentNode)===null||i===void 0||i.removeChild(a)}})}function Ks(e){let[t,n]=Es(e),o=document.createElement(t!=null?t:"div");for(let r of Object.keys(n)){let i=n[r].join(" ");r==="style"?js(o.style,i):o.setAttribute(r,i)}return o}function js(e,t){for(let n of t.split(";")){let o=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(n);if(o){let[,r,i,,s]=o;e.setProperty(r,i,s||"")}}}function Xs(){let e=window;for(;;){let t=e.parent;if(!t||t===e)return!1;try{if(t.location.origin!==e.location.origin)return!0}catch(n){if(n instanceof Error&&n.name==="SecurityError")return!0;throw n}e=t}}var Zs="mmMwWLliI0O&1",Js="48px",Fe=["monospace","sans-serif","serif"],Oo=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function qs(){return Xo((n,o)=>E(null,[n,o],function*(e,{document:t}){let r=t.body;r.style.fontSize=Js;let i=t.createElement("div");i.style.setProperty("visibility","hidden","important");let s={},a={},l=p=>{let h=t.createElement("span"),{style:b}=h;return b.position="absolute",b.top="0",b.left="0",b.fontFamily=p,h.textContent=Zs,i.appendChild(h),h},u=(p,h)=>l(`'${p}',${h}`),c=()=>Fe.map(l),d=()=>{let p={};for(let h of Oo)p[h]=Fe.map(b=>u(h,b));return p},f=p=>Fe.some((h,b)=>p[b].offsetWidth!==s[h]||p[b].offsetHeight!==a[h]),m=c(),g=d();r.appendChild(i);for(let p=0;p<Fe.length;p++)s[Fe[p]]=m[p].offsetWidth,a[Fe[p]]=m[p].offsetHeight;return Oo.filter(p=>f(g[p]))}))}function Qs(){let e=navigator.plugins;if(!e)return;let t=[];for(let n=0;n<e.length;++n){let o=e[n];if(!o)continue;let r=[];for(let i=0;i<o.length;++i){let s=o[i];r.push({type:s.type,suffixes:s.suffixes})}t.push({name:o.name,description:o.description,mimeTypes:r})}return t}function ea(){return ta(la())}function ta(e){let t=!1,n,o,[r,i]=na();return oa(r,i)?(t=ra(i),e?n=o="skipped":[n,o]=ia(r,i)):n=o="unsupported",{winding:t,geometry:n,text:o}}function na(){let e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}function oa(e,t){return!!(t&&e.toDataURL)}function ra(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}function ia(e,t){sa(e,t);let n=an(e),o=an(e);return n!==o?["unstable","unstable"]:(aa(e,t),[an(e),n])}function sa(e,t){e.width=240,e.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';let n="Cwm fjordbank gly \u{1F603}";t.fillText(n,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(n,4,45)}function aa(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(let[n,o,r]of[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]])t.fillStyle=n,t.beginPath(),t.arc(o,r,40,0,Math.PI*2,!0),t.closePath(),t.fill();t.fillStyle="#f9c",t.arc(60,60,60,0,Math.PI*2,!0),t.arc(60,60,20,0,Math.PI*2,!0),t.fill("evenodd")}function an(e){return e.toDataURL()}function la(){return te()&&Qe()&&qe()}function ca(){let e=navigator,t=0,n;e.maxTouchPoints!==void 0?t=mn(e.maxTouchPoints):e.msMaxTouchPoints!==void 0&&(t=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),n=!0}catch(r){n=!1}let o="ontouchstart"in window;return{maxTouchPoints:t,touchEvent:n,touchStart:o}}function da(){return navigator.oscpu}function ua(){let e=navigator,t=[],n=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(n!==void 0&&t.push([n]),Array.isArray(e.languages))Je()&&Ds()||t.push(e.languages);else if(typeof e.languages=="string"){let o=e.languages;o&&t.push(o.split(","))}return t}function ma(){return window.screen.colorDepth}function fa(){return ae(ee(navigator.deviceMemory),void 0)}function pa(){if(!(te()&&Qe()&&qe()))return ga()}function ga(){let e=screen,t=o=>ae(mn(o),null),n=[t(e.width),t(e.height)];return n.sort().reverse(),n}var ha=2500,ya=10,wt,ln;function Sa(){if(ln!==void 0)return;let e=()=>{let t=dn();un(t)?ln=setTimeout(e,ha):(wt=t,ln=void 0)};e()}function ba(){return Sa(),()=>E(null,null,function*(){let e=dn();if(un(e)){if(wt)return[...wt];Hs()&&(yield Us(),e=dn())}return un(e)||(wt=e),e})}function va(){if(te()&&Qe()&&qe())return()=>Promise.resolve(void 0);let e=ba();return()=>E(null,null,function*(){let t=yield e(),n=o=>o===null?null:Yo(o,ya);return[n(t[0]),n(t[1]),n(t[2]),n(t[3])]})}function dn(){let e=screen;return[ae(ee(e.availTop),null),ae(ee(e.width)-ee(e.availWidth)-ae(ee(e.availLeft),0),null),ae(ee(e.height)-ee(e.availHeight)-ae(ee(e.availTop),0),null),ae(ee(e.availLeft),null)]}function un(e){for(let t=0;t<4;++t)if(e[t])return!1;return!0}function Ea(){return ae(mn(navigator.hardwareConcurrency),void 0)}function La(){var e;let t=(e=window.Intl)===null||e===void 0?void 0:e.DateTimeFormat;if(t){let o=new t().resolvedOptions().timeZone;if(o)return o}let n=-_a();return`UTC${n>=0?"+":""}${n}`}function _a(){let e=new Date().getFullYear();return Math.max(ee(new Date(e,0,1).getTimezoneOffset()),ee(new Date(e,6,1).getTimezoneOffset()))}function wa(){try{return!!window.sessionStorage}catch(e){return!0}}function Ia(){try{return!!window.localStorage}catch(e){return!0}}function Aa(){if(!(Ko()||Rs()))try{return!!window.indexedDB}catch(e){return!0}}function xa(){return!!window.openDatabase}function Ma(){return navigator.cpuClass}function Ta(){let{platform:e}=navigator;return e==="MacIntel"&&te()&&!fn()?Ns()?"iPad":"iPhone":e}function ka(){return navigator.vendor||""}function Fa(){let e=[];for(let t of["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"]){let n=window[t];n&&typeof n=="object"&&e.push(t)}return e.sort()}function Ca(){let e=document;try{e.cookie="cookietest=1; SameSite=Strict;";let t=e.cookie.indexOf("cookietest=")!==-1;return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch(t){return!1}}function Ra(){let e=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',e("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",e("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",e("LnNwb25zb3JpdA=="),".ylamainos",e("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",e("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",e("LmhlYWRlci1ibG9ja2VkLWFk"),e("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",e("I2FkXzMwMFgyNTA="),e("I2Jhbm5lcmZsb2F0MjI="),e("I2NhbXBhaWduLWJhbm5lcg=="),e("I0FkLUNvbnRlbnQ=")],adGuardChinese:[e("LlppX2FkX2FfSA=="),e("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",e("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),e("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",e("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",e("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",e("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),e("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),e("LmFkZ29vZ2xl"),e("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[e("YW1wLWF1dG8tYWRz"),e("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",e("I2FkX2ludmlld19hcmVh")],adGuardRussian:[e("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),e("LnJlY2xhbWE="),'div[id^="smi2adblock"]',e("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[e("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),e("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",e("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),e("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),e("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",e("I3Jla2xhbWk="),e("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),e("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),e("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[e("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",e("LndpZGdldF9wb19hZHNfd2lkZ2V0"),e("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",e("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[e("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),e("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",e("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",e("I3Jla2xhbW5pLWJveA=="),e("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",e("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[e("I2FkdmVydGVudGll"),e("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",e("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",e("LnNwb25zb3JsaW5rZ3J1ZW4="),e("I3dlcmJ1bmdza3k="),e("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),e("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[e("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",e("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[e("LnJla2xhbW9zX3RhcnBhcw=="),e("LnJla2xhbW9zX251b3JvZG9z"),e("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),e("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),e("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[e("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[e("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),e("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",e("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[e("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),e("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),e("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",e("LmFkX19tYWlu"),e("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[e("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[e("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),e("I2xpdmVyZUFkV3JhcHBlcg=="),e("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),e("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[e("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",e("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),e("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),e("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[e("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),e("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),e("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",e("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),e("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),e("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),e("ZGl2I3NrYXBpZWNfYWQ=")],ro:[e("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),e("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[e("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),e("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),e("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",e("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),e("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",e("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}function Da(){return E(this,arguments,function*({debug:e}={}){if(!Pa())return;let t=Ra(),n=Object.keys(t),o=[].concat(...n.map(s=>t[s])),r=yield Oa(o);e&&Na(t,r);let i=n.filter(s=>{let a=t[s];return O(a.map(u=>r[u]))>a.length*.6});return i.sort(),i})}function Pa(){return te()||pn()}function Oa(e){return E(this,null,function*(){var t;let n=document,o=n.createElement("div"),r=new Array(e.length),i={};No(o);for(let s=0;s<e.length;++s){let a=Ks(e[s]);a.tagName==="DIALOG"&&a.show();let l=n.createElement("div");No(l),l.appendChild(a),o.appendChild(l),r[s]=a}for(;!n.body;)yield It(50);n.body.appendChild(o);try{for(let s=0;s<e.length;++s)r[s].offsetParent||(i[e[s]]=!0)}finally{(t=o.parentNode)===null||t===void 0||t.removeChild(o)}return i})}function No(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function Na(e,t){let n="DOM blockers debug:\n```";for(let o of Object.keys(e)){n+=`
${o}:`;for(let r of e[o])n+=`
  ${t[r]?"\u{1F6AB}":"\u27A1\uFE0F"} ${r}`}console.log(`${n}
\`\`\``)}function Ha(){for(let e of["rec2020","p3","srgb"])if(matchMedia(`(color-gamut: ${e})`).matches)return e}function Ua(){if(Ho("inverted"))return!0;if(Ho("none"))return!1}function Ho(e){return matchMedia(`(inverted-colors: ${e})`).matches}function Va(){if(Uo("active"))return!0;if(Uo("none"))return!1}function Uo(e){return matchMedia(`(forced-colors: ${e})`).matches}var Ga=100;function Ba(){if(matchMedia("(min-monochrome: 0)").matches){for(let e=0;e<=Ga;++e)if(matchMedia(`(max-monochrome: ${e})`).matches)return e;throw new Error("Too high value")}}function $a(){if(Ce("no-preference"))return 0;if(Ce("high")||Ce("more"))return 1;if(Ce("low")||Ce("less"))return-1;if(Ce("forced"))return 10}function Ce(e){return matchMedia(`(prefers-contrast: ${e})`).matches}function za(){if(Vo("reduce"))return!0;if(Vo("no-preference"))return!1}function Vo(e){return matchMedia(`(prefers-reduced-motion: ${e})`).matches}function Wa(){if(Go("reduce"))return!0;if(Go("no-preference"))return!1}function Go(e){return matchMedia(`(prefers-reduced-transparency: ${e})`).matches}function Ya(){if(Bo("high"))return!0;if(Bo("standard"))return!1}function Bo(e){return matchMedia(`(dynamic-range: ${e})`).matches}var L=Math,P=()=>0;function Ka(){let e=L.acos||P,t=L.acosh||P,n=L.asin||P,o=L.asinh||P,r=L.atanh||P,i=L.atan||P,s=L.sin||P,a=L.sinh||P,l=L.cos||P,u=L.cosh||P,c=L.tan||P,d=L.tanh||P,f=L.exp||P,m=L.expm1||P,g=L.log1p||P,p=_=>L.pow(L.PI,_),h=_=>L.log(_+L.sqrt(_*_-1)),b=_=>L.log(_+L.sqrt(_*_+1)),v=_=>L.log((1+_)/(1-_))/2,I=_=>L.exp(_)-1/L.exp(_)/2,F=_=>(L.exp(_)+1/L.exp(_))/2,q=_=>L.exp(_)-1,Q=_=>(L.exp(2*_)-1)/(L.exp(2*_)+1),B=_=>L.log(1+_);return{acos:e(.12312423423423424),acosh:t(1e308),acoshPf:h(1e154),asin:n(.12312423423423424),asinh:o(1),asinhPf:b(1),atanh:r(.5),atanhPf:v(.5),atan:i(.5),sin:s(-1e300),sinh:a(1),sinhPf:I(1),cos:l(10.000000000123),cosh:u(1),coshPf:F(1),tan:c(-1e300),tanh:d(1),tanhPf:Q(1),exp:f(1),expm1:m(1),expm1Pf:q(1),log1p:g(10),log1pPf:B(10),powPI:p(-100)}}var ja="mmMwWLliI0fiflO&1",cn={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function Xa(){return Za((e,t)=>{let n={},o={};for(let r of Object.keys(cn)){let[i={},s=ja]=cn[r],a=e.createElement("span");a.textContent=s,a.style.whiteSpace="nowrap";for(let l of Object.keys(i)){let u=i[l];u!==void 0&&(a.style[l]=u)}n[r]=a,t.append(e.createElement("br"),a)}for(let r of Object.keys(cn))o[r]=n[r].getBoundingClientRect().width;return o})}function Za(e,t=4e3){return Xo((n,o)=>{let r=o.document,i=r.body,s=i.style;s.width=`${t}px`,s.webkitTextSizeAdjust=s.textSizeAdjust="none",Je()?i.style.zoom=`${1/o.devicePixelRatio}`:te()&&(i.style.zoom="reset");let a=r.createElement("div");return a.textContent=[...Array(t/20<<0)].map(()=>"word").join(" "),i.appendChild(a),e(r,i)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function Ja(){return navigator.pdfViewerEnabled}function qa(){let e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function Qa(){let{ApplePaySession:e}=window;if(typeof(e==null?void 0:e.canMakePayments)!="function")return-1;if(el())return-3;try{return e.canMakePayments()?1:0}catch(t){return tl(t)}}var el=Xs;function tl(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function nl(){var e;let t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var Zo=-1,Jo=-2,ol=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),rl=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),il=["FRAGMENT_SHADER","VERTEX_SHADER"],sl=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],qo="WEBGL_debug_renderer_info",al="WEBGL_polygon_mode";function ll({cache:e}){var t,n,o,r,i,s;let a=Qo(e);if(!a)return Zo;if(!tr(a))return Jo;let l=er()?null:a.getExtension(qo);return{version:((t=a.getParameter(a.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=a.getParameter(a.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(o=a.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||o===void 0?void 0:o.toString():"",renderer:((r=a.getParameter(a.RENDERER))===null||r===void 0?void 0:r.toString())||"",rendererUnmasked:l?(i=a.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((s=a.getParameter(a.SHADING_LANGUAGE_VERSION))===null||s===void 0?void 0:s.toString())||""}}function cl({cache:e}){let t=Qo(e);if(!t)return Zo;if(!tr(t))return Jo;let n=t.getSupportedExtensions(),o=t.getContextAttributes(),r=[],i=[],s=[],a=[],l=[];if(o)for(let c of Object.keys(o))i.push(`${c}=${o[c]}`);let u=$o(t);for(let c of u){let d=t[c];s.push(`${c}=${d}${ol.has(d)?`=${t.getParameter(d)}`:""}`)}if(n)for(let c of n){if(c===qo&&er()||c===al&&ml())continue;let d=t.getExtension(c);if(!d){r.push(c);continue}for(let f of $o(d)){let m=d[f];a.push(`${f}=${m}${rl.has(m)?`=${t.getParameter(m)}`:""}`)}}for(let c of il)for(let d of sl){let f=dl(t,c,d);l.push(`${c}.${d}=${f.join(",")}`)}return a.sort(),s.sort(),{contextAttributes:i,parameters:s,shaderPrecisions:l,extensions:n,extensionParameters:a,unsupportedExtensions:r}}function Qo(e){if(e.webgl)return e.webgl.context;let t=document.createElement("canvas"),n;t.addEventListener("webglCreateContextError",()=>n=void 0);for(let o of["webgl","experimental-webgl"]){try{n=t.getContext(o)}catch(r){}if(n)break}return e.webgl={context:n},n}function dl(e,t,n){let o=e.getShaderPrecisionFormat(e[t],e[n]);return o?[o.rangeMin,o.rangeMax,o.precision]:[]}function $o(e){return Object.keys(e.__proto__).filter(ul)}function ul(e){return typeof e=="string"&&!e.match(/[^A-Z0-9_x]/)}function er(){return jo()}function ml(){return Je()||te()}function tr(e){return typeof e.getParameter=="function"}function fl(){if(!(pn()||te()))return-2;if(!window.AudioContext)return-1;let t=new AudioContext().baseLatency;return t==null?-1:isFinite(t)?t:-3}function pl(){if(!window.Intl)return-1;let e=window.Intl.DateTimeFormat;if(!e)return-2;let t=e().resolvedOptions().locale;return!t&&t!==""?-3:t}var gl={fonts:qs,domBlockers:Da,fontPreferences:Xa,audio:Gs,screenFrame:va,canvas:ea,osCpu:da,languages:ua,colorDepth:ma,deviceMemory:fa,screenResolution:pa,hardwareConcurrency:Ea,timezone:La,sessionStorage:wa,localStorage:Ia,indexedDB:Aa,openDatabase:xa,cpuClass:Ma,platform:Ta,plugins:Qs,touchSupport:ca,vendor:ka,vendorFlavors:Fa,cookiesEnabled:Ca,colorGamut:Ha,invertedColors:Ua,forcedColors:Va,monochrome:Ba,contrast:$a,reducedMotion:za,reducedTransparency:Wa,hdr:Ya,math:Ka,pdfViewerEnabled:Ja,architecture:qa,applePay:Qa,privateClickMeasurement:nl,audioBaseLatency:fl,dateTimeLocale:pl,webGlBasics:ll,webGlExtensions:cl};function hl(e){return Cs(gl,e,[])}var yl="$ if upgrade to Pro: https://fpjs.dev/pro";function Sl(e){let t=bl(e),n=vl(t);return{score:t,comment:yl.replace(/\$/g,`${n}`)}}function bl(e){if(pn())return .4;if(te())return fn()&&!(Qe()&&qe())?.5:.3;let t="value"in e.platform?e.platform.value:"";return/^Win/.test(t)?.6:/^Mac/.test(t)?.5:.7}function vl(e){return Yo(.99+.01*e,1e-4)}function El(e){let t="";for(let n of Object.keys(e).sort()){let o=e[n],r="error"in o?"error":JSON.stringify(o.value);t+=`${t?"|":""}${n.replace(/([:|\\])/g,"\\$1")}:${r}`}return t}function nr(e){return JSON.stringify(e,(t,n)=>n instanceof Error?Ms(n):n,2)}function or(e){return xs(El(e))}function Ll(e){let t,n=Sl(e);return{get visitorId(){return t===void 0&&(t=or(this.components)),t},set visitorId(o){t=o},confidence:n,components:e,version:zo}}function _l(e=50){return Ss(e,e*2)}function wl(e,t){let n=Date.now();return{get(r){return E(this,null,function*(){let i=Date.now(),s=yield e(),a=Ll(s);return(t||r!=null&&r.debug)&&console.log(`Copy the text below to get the debug data:

\`\`\`
version: ${a.version}
userAgent: ${navigator.userAgent}
timeBetweenLoadAndGet: ${i-n}
visitorId: ${a.visitorId}
components: ${nr(s)}
\`\`\``),a})}}}function Il(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{let e=new XMLHttpRequest;e.open("get",`https://m1.openfpcdn.io/fingerprintjs/v${zo}/npm-monitoring`,!0),e.send()}catch(e){console.error(e)}}function Al(){return E(this,arguments,function*(e={}){var t;(!((t=e.monitoring)!==null&&t!==void 0)||t)&&Il();let{delayFallback:n,debug:o}=e;yield _l(n);let r=hl({cache:{},debug:o});return wl(r,o)})}var rr={load:Al,hashComponents:or,componentsToDebugString:nr};var ir=()=>!0;function sr(e){ir=e}function j(){return ir()}var xl="_dflt_",tt=365*24*60*60*1e3,ar=S.module("Session");function lr(e){sr(e)}function cr(){let e=window.location.hostname;if(e==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(e))return e;let t=e.split(".");return t.length<=2?e:t.slice(-2).join(".")}function Re(e){return`${xl}${e}`}function Ml(){return window.location.protocol==="https:"}function dr(e){return e!=="localhost"&&!/^\d+\.\d+\.\d+\.\d+$/.test(e)}function et(e,t,n=tt){let o=Re(e),r=cr(),i=Math.floor(n/1e3),s=Ml()?"; Secure":"",a=dr(r)?`; Domain=.${r}`:"";document.cookie=`${o}=${encodeURIComponent(t)}; Max-Age=${i}; Path=/${a}; SameSite=Lax${s}`}function hn(e){let t=Re(e),n=document.cookie.split(";");for(let o of n){let[r,...i]=o.trim().split("=");if(r===t)return decodeURIComponent(i.join("="))}return null}function Tl(e){let t=Re(e),n=cr(),o=dr(n)?`; Domain=.${n}`:"";document.cookie=`${t}=; Max-Age=0; Path=/${o}; SameSite=Lax`}function gn(e,t){try{let n=Re(e);sessionStorage.setItem(n,t)}catch(n){ar.debug("Failed to set session storage")}}function ur(e){try{let t=Re(e);return sessionStorage.getItem(t)}catch(t){return null}}function mr(e){try{let t=Re(e);sessionStorage.removeItem(t)}catch(t){ar.debug("Failed to remove session storage")}}function De(e){let t=ur(e);return t||hn(e)}function At(e,t,n){if(e==="consent"){et(e,t,n),gn(e,t);return}j()&&(et(e,t,n),gn(e,t))}function nt(e){return ur(e)}function Pe(e,t){j()&&(gn(e,t),et(e,t))}function ot(e){Tl(e),mr(e)}function yn(e){mr(e)}var D=class{constructor(){this.isInitialized=!1}ensureNotInitialized(){return!this.isInitialized}markInitialized(){this.isInitialized=!0}get initialized(){return this.isInitialized}reset(){this.isInitialized=!1}};function fr(){if(typeof crypto!="undefined"&&crypto.randomUUID)try{return crypto.randomUUID.call(crypto)}catch(e){}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function pr(){if(typeof crypto!="undefined"&&crypto.randomUUID)try{return`fb_${crypto.randomUUID.call(crypto)}`}catch(n){}let e=Date.now().toString(36),t=Math.random().toString(36).substring(2,15);return`fb_${e}_${t}`}var N=S.module("Identity"),Sn=class e extends D{constructor(){super(...arguments);this.agent=null;this.anonymousId=null;this.initPromise=null;this.generation=0}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){return E(this,null,function*(){return this.initPromise?(N.debug("Init already in progress, returning existing promise"),this.initPromise):(N.debug("Initializing fingerprint manager"),this.initPromise=this.doInit(),this.initPromise)})}doInit(){return E(this,null,function*(){let n=this.generation;if(!j())return N.debug("Analytics consent withheld, skipping FingerprintJS and using an ephemeral id"),this.adoptEphemeralId();let o=De("aid");if(o)return this.anonymousId=o,this.markInitialized(),N.success(`Restored anonymousId ${o.slice(0,8)}... from cache`),o;N.debug("No cached anonymousId, generating new one");try{N.debug("Loading FingerprintJS...");let r=yield rr.load(),i=yield r.get();return n!==this.generation?(N.debug("Consent was revoked mid-init, discarding FingerprintJS result"),i.visitorId):(this.agent=r,this.anonymousId=i.visitorId,At("aid",this.anonymousId,tt),this.markInitialized(),N.success(`Generated anonymousId ${this.anonymousId.slice(0,8)}... via FingerprintJS`),this.anonymousId)}catch(r){N.warn("FingerprintJS failed, using fallback",r);let i=this.generateFallbackId();return n!==this.generation?(N.debug("Consent was revoked mid-init, discarding fallback result"),i):(this.anonymousId=i,At("aid",this.anonymousId,tt),this.markInitialized(),N.success(`Generated fallback anonymousId ${this.anonymousId.slice(0,8)}...`),this.anonymousId)}})}adoptEphemeralId(){return this.anonymousId=this.generateFallbackId(),this.markInitialized(),N.success(`Generated ephemeral anonymousId ${this.anonymousId.slice(0,8)}...`),this.anonymousId}generateFallbackId(){return pr()}getAnonymousId(){if(this.anonymousId)return this.anonymousId;if(!j())return this.adoptEphemeralId();let n=De("aid");return n?(this.anonymousId=n,this.initialized||this.markInitialized(),N.debug(`Lazy-loaded anonymousId ${n.slice(0,8)}... from cache`),this.anonymousId):(this.initPromise?N.warn("getAnonymousId called while init in progress - generating emergency fallback"):N.error("getAnonymousId called before init started - generating emergency fallback"),this.anonymousId=this.generateFallbackId(),At("aid",this.anonymousId,tt),this.markInitialized(),this.anonymousId)}isReady(){return this.initialized&&this.anonymousId!==null}waitForReady(){return E(this,null,function*(){return this.anonymousId?this.anonymousId:this.init()})}reset(){super.reset(),this.generation++,this.anonymousId=null,this.agent=null,this.initPromise=null,ot("aid")}},X=Sn.getInstance();function Oe(){var t;return((t=new URLSearchParams(window.location.search).get("gclid"))==null?void 0:t.trim())||void 0}var bn=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"];var zd=[...bn,"gclid","submission_url","referrer"];function Ne(){let e=new URLSearchParams(window.location.search),t={};for(let n of bn){let o=e.get(n);o&&(t[n]=o)}return t}var gr=1800*1e3,hr=60*1e3,A=S.module("Session"),vn=class e extends D{constructor(){super(...arguments);this.sessionId=null;this.lastActivity=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){if(!this.ensureNotInitialized()){A.debug("Already initialized, skipping");return}A.debug("Initializing session manager");let n=this.tryRestoreFromSessionStorage();if(n==="expired"){this.startNewSession(),this.postInitialization();return}if(n){this.restoreSession(n.from,n.sessionId,n.lastActivity),this.postInitialization();return}let o=this.tryRestoreFromCookie();if(o==="expired"){this.startNewSession(),this.postInitialization();return}o?this.restoreSession(o.from,o.sessionId,o.lastActivity):(A.debug("No existing session found - starting new session"),this.startNewSession()),this.postInitialization()}tryRestoreFromSessionStorage(){let n=nt("sid"),o=nt("la");if(!n||!o)return null;let r=parseInt(o,10);return A.found("existing session in sessionStorage",1),this.isSessionValid(r)?{sessionId:n,lastActivity:r,from:"sessionStorage"}:(this.handleExpiredSession(n,r,"sessionStorage"),"expired")}tryRestoreFromCookie(){let n=De("sid"),o=De("la");if(!n||!o)return null;let r=parseInt(o,10);return A.found("existing session in cookie (from another tab)",1),this.isSessionValid(r)?{sessionId:n,lastActivity:r,from:"cookie"}:(this.handleExpiredSession(n,r,"cookie"),"expired")}restoreSession(n,o,r){this.sessionId=o,this.lastActivity=r,n==="cookie"&&(Pe("sid",this.sessionId),Pe("la",this.lastActivity.toString())),this.updateActivity();let i=n==="sessionStorage"?"sessionStorage":"cookie (shared across tabs)";A.success(`Restored session ${this.formatSessionId(o)}... from ${i}`)}handleExpiredSession(n,o,r){let i=Math.round((Date.now()-o)/hr),s=r==="sessionStorage"?"Session":"Cookie session";A.debug(`${s} expired ${i} minutes ago`),this.endExpiredSession(n,o)}postInitialization(){this.markInitialized(),A.success("Session manager initialized")}formatSessionId(n){return n.slice(0,8)}isSessionValid(n){let o=Date.now()-n,r=o<gr;if(r){let i=Math.round((gr-o)/hr);A.debug(`Session valid, ${i} minutes until timeout`)}return r}generateSessionId(){return fr()}startNewSession(){this.sessionId=this.generateSessionId(),this.lastActivity=Date.now(),Pe("sid",this.sessionId),Pe("la",this.lastActivity.toString()),A.success(`Started new session ${this.formatSessionId(this.sessionId)}...`),this.sendSessionStart()}updateActivity(){this.sessionId&&(this.lastActivity=Date.now(),Pe("la",this.lastActivity.toString()))}touch(){return!this.sessionId||!this.lastActivity?(A.debug("No active session, starting new one"),this.startNewSession(),{isNewSession:!0,sessionId:this.sessionId}):this.isSessionValid(this.lastActivity)?(this.updateActivity(),{isNewSession:!1,sessionId:this.sessionId}):(A.debug("Session timed out, rotating to new session"),this.endExpiredSession(this.sessionId,this.lastActivity),this.startNewSession(),{isNewSession:!0,sessionId:this.sessionId})}endExpiredSession(n,o){A.debug(`Ending expired session ${this.formatSessionId(n)}...`);let r=this.buildSessionEndPayload(n,o,"timeout");r&&j()&&(sn(r),A.sent("session end (expired)",{sessionId:this.formatSessionId(n),endedAt:new Date(o).toISOString()})),this.clearSessionStorage()}endSession(n){this.sessionId&&(A.debug(`Ending session (reason: ${n})`),this.sendSessionEnd(n),this.clearSessionState(),A.success("Session ended and cleared from sessionStorage"))}clearSessionStorage(){yn("sid"),yn("la")}clearSessionState(){this.clearSessionStorage(),this.sessionId=null,this.lastActivity=null}reset(){super.reset(),this.sessionId=null,this.lastActivity=null,ot("sid"),ot("la")}sendSessionStart(){if(!j()){A.debug("Analytics consent withheld, skipping session start");return}if(!this.sessionId){A.warn("Cannot send session start: missing sessionId");return}let n=C.get();if(!n){A.warn("Cannot send session start: missing config");return}let o=Oe(),r=k(y({publicKey:n.publicKey,anonymousId:X.getAnonymousId(),sessionId:this.sessionId,startedAt:this.lastActivity||Date.now(),pageUrl:window.location.href,referrer:document.referrer,utmParams:Ne()},o&&{gclid:o}),{userAgent:navigator.userAgent});Io(r),A.sent("session start",{sessionId:this.formatSessionId(this.sessionId)})}sendSessionEnd(n){if(!j()){A.debug("Analytics consent withheld, skipping session end");return}if(!this.sessionId)return;this.updateActivity();let o=this.buildSessionEndPayload(this.sessionId,this.lastActivity||Date.now(),n);o&&(sn(o),A.sent("session end",{reason:n}))}buildSessionEndPayload(n,o,r){let i=C.get();return i?{publicKey:i.publicKey,anonymousId:X.getAnonymousId(),sessionId:n,endedAt:o,reason:r}:null}sendSessionEndWithoutClearing(n){this.sessionId&&(A.debug(`Sending session end beacon (reason: ${n}) without clearing state for potential reconciliation`),this.sendSessionEnd(n))}getSessionId(){if(!this.sessionId){let n=nt("sid"),o=nt("la");if(n&&o){let r=parseInt(o,10);if(this.isSessionValid(r))return this.sessionId=n,this.lastActivity=r,this.markInitialized(),A.debug(`Lazy-loaded sessionId ${this.formatSessionId(n)}... from cache`),this.sessionId}A.warn("getSessionId called before init completed - generating session"),this.startNewSession(),this.markInitialized()}return this.sessionId}getLastActivity(){return this.lastActivity}isReady(){return this.initialized&&this.sessionId!==null}},Z=vn.getInstance();var kl=S.module("Consent"),yr="consent",Sr=1;function xt(){let e=hn(yr);if(!e)return null;try{let t=JSON.parse(e);return t.v!==Sr?null:t}catch(t){return kl.warn("Failed to parse stored consent, ignoring"),null}}function br(e){var i,s,a,l,u,c;let t=xt(),n=(s=(i=e.analytics)!=null?i:t==null?void 0:t.analytics)!=null?s:!0,o=(a=t==null?void 0:t.analytics)!=null?a:!0,r={analytics:n,marketing:(u=(l=e.marketing)!=null?l:t==null?void 0:t.marketing)!=null?u:!0,v:Sr,r:((c=t==null?void 0:t.r)!=null?c:0)+(o&&!n?1:0)};et(yr,JSON.stringify(r))}var rt=S.module("Consent"),vr={analytics:!0,marketing:!0},En=class e{constructor(){this.state=y({},vr);this.listeners=[]}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){let t=xt();t&&(this.state={analytics:t.analytics,marketing:t.marketing},rt.debug(`Restored consent state: ${JSON.stringify(this.state)}`),t.analytics||(rt.info("Restored analytics consent is withheld \u2014 purging any leftover persisted identity"),this.clearPersistedIdentity()))}getConsent(){return this.sharedState()}setConsent(t){let n=this.state,o=this.sharedState(),r=y(y({},o),t);this.state=r,this.persistConsent(r),n.analytics&&!r.analytics&&(rt.info("Analytics consent revoked \u2014 clearing persisted identity"),this.clearPersistedIdentity()),o.marketing&&!r.marketing&&rt.info("Marketing consent revoked \u2014 future Vector loads/identify calls will be skipped (an already-injected Vector script cannot be retracted)"),rt.success(`Consent updated: ${JSON.stringify(r)}`),this.listeners.forEach(i=>i(this.getConsent()))}onChange(t){return this.listeners.push(t),()=>{this.listeners=this.listeners.filter(n=>n!==t)}}sharedState(){let t=xt();return t?{analytics:t.analytics,marketing:t.marketing}:y({},this.state)}clearPersistedIdentity(){X.reset(),Z.reset()}persistConsent(t){br(t)}reset(){this.state=y({},vr),this.listeners=[]}},ne=En.getInstance();var le=S.module("Vector"),Er="https://cdn.vector.co/pixel.js",Lr="89c23b71-2ba2-4fb3-90b6-e77270348967",Ln=class e extends D{constructor(){super(...arguments);this.initPromise=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){return E(this,null,function*(){return this.initPromise||(this.initPromise=this.performInit().finally(()=>{this.initialized||(this.initPromise=null)})),this.initPromise})}performInit(){return E(this,null,function*(){if(!this.ensureNotInitialized())return;if(!ne.getConsent().marketing){le.debug("Marketing consent not granted, skipping Vector initialization");return}if(!Lr){le.warn("No VECTOR_PIXEL_ID configured, skipping Vector initialization");return}let n=C.getPublicKey();if(!n){le.warn("No public key available, skipping Vector initialization");return}try{if(yield this.loadScript(),!ne.getConsent().marketing){le.debug("Marketing consent revoked while the script was loading, skipping identify");return}this.identify(n),this.markInitialized(),le.success("Vector initialized")}catch(o){le.warn("Failed to initialize Vector",o)}})}loadScript(){return new Promise((n,o)=>{if(document.querySelector(`script[src="${Er}"]`)){le.debug("Vector script already loaded"),n();return}let r=document.createElement("script");r.src=Er,r.async=!0,r.onload=()=>{le.debug("Vector script loaded"),n()},r.onerror=()=>{o(new Error("Failed to load Vector script"))},document.head.appendChild(r)})}identify(n){let o=window.vector;if(!o)throw new Error("Vector SDK not available after script load");let r=X.getAnonymousId();o.partnerId=JSON.stringify({publicKey:n,anonymousId:r}),o.load(Lr),le.debug(`Identified with publicKey=${n.slice(0,8)}...`)}},Mt=Ln.getInstance();var _n=null;function _r(e){_n=e}function wr(){return _n?_n():null}function _e(){let e=C.get();if(!e)return null;let t=wr();if(!t)return null;let n=Oe();return k(y({publicKey:e.publicKey,anonymousId:t.anonymousId,sessionId:t.sessionId,utmParams:Ne()},n&&{gclid:n}),{userAgent:navigator.userAgent,pageUrl:window.location.href,referrer:document.referrer,ts:Date.now()})}function pe(){if(document.querySelector('meta[name="default:pixel"][content="noform"]'))return!1;let t=[/\/login/i,/\/signin/i,/\/account/i,/\/checkout/i,/\/oauth/i,/\/admin\//i],n=window.location.pathname;return!t.some(o=>o.test(n))}var Ir=null,Ar=null;function xr(e,t){return E(this,null,function*(){return(yield fetch(e,{method:t,cache:"no-store",credentials:"same-origin"})).status})}function Fl(e){return E(this,null,function*(){try{let t=yield xr(e,"HEAD");if(t!==404&&t!==410)return!1;let n=yield xr(e,"GET");return n===404||n===410}catch(t){return!1}})}function Mr(e){return Ir!==e&&(Ir=e,Ar=Fl(e)),Ar}function w(e,t){var i,s,a,l,u;let n=e[t];if(typeof n=="string")return n;let o=(a=(s=(i=e.ownerDocument)==null?void 0:i.defaultView)==null?void 0:s.HTMLFormElement)==null?void 0:a.prototype,r=(u=(l=Object.getOwnPropertyDescriptor(o!=null?o:HTMLFormElement.prototype,t))==null?void 0:l.get)==null?void 0:u.call(e);return typeof r=="string"?r:e.getAttribute(t)||""}var U={PARDOT_DOMAIN:"pardot.com",PARDOT_PI:"pi.pardot.com",PARDOT:"pardot",HS_DOMAIN:"hsforms.com",HS:"hubspot",HS_CLASS:/\bhs-form\b/i,HS_ID:/^hsForm_/,MKTO:"marketo",MKTO_CLASS:/\bmktoForm\b/i,MKTO_ID:/^mktoForm_/,META_PIXEL_HOSTS:["facebook.com","www.facebook.com"],META_PIXEL_PATH:"/tr"},Cl={PASSWORD:/password/i,SECRET:/secret/i,TOKEN:/token/i,KEY:/key/i,AUTH:/auth/i,CREDENTIAL:/credential/i,SSN:/ssn/i,CREDIT_CARD:/credit.?card/i,CVV:/cvv/i,CVC:/cvc/i},Tt=Object.values(Cl);function kt(e){let t=w(e,"action"),n=e.getAttribute("name")||"",o=w(e,"id");return t.includes(U.PARDOT_DOMAIN)||t.includes(U.PARDOT_PI)||n.includes(U.PARDOT)||o.includes(U.PARDOT)||e.querySelector('[name*="pardot"]')!==null}function Ft(e){let t=w(e,"id"),n=e.className||"",o=w(e,"action");return!!(U.HS_ID.test(t)||U.HS_CLASS.test(n)||o.includes(U.HS_DOMAIN)||o.includes(U.HS)||e.querySelector('[name="hs_context"]'))}function Ct(e){let t=w(e,"id"),n=e.className||"",o=w(e,"action");return!!(U.MKTO_ID.test(t)||U.MKTO_CLASS.test(n)||o.includes(U.MKTO)||e.querySelector('[name="munchkinId"], [id^="Mkto"]'))}function Rt(e){var i,s;let t=w(e,"action");if(!t)return!1;let n;try{n=new URL(t)}catch(a){let l=(s=(i=e.ownerDocument.defaultView)==null?void 0:i.location)==null?void 0:s.href;if(!l)return!1;try{n=new URL(t,l)}catch(u){return!1}}let o=n.hostname.toLowerCase();return U.META_PIXEL_HOSTS.includes(o)?(n.pathname.endsWith("/")?n.pathname.slice(0,-1):n.pathname)===U.META_PIXEL_PATH:!1}function it(e){var n;let t=e;for(;t;){if(t.hasAttribute("data-default-ignore"))return!0;t=(n=t.parentElement)!=null?n:Rl(t)}return!1}function Rl(e){var t,n;try{return(n=(t=e.ownerDocument.defaultView)==null?void 0:t.frameElement)!=null?n:null}catch(o){return null}}var Dl=S.module("Frames"),Pl=3;function wn(e){try{return e.contentDocument}catch(t){return null}}function In(e,t){let n=new Set([e]),o=(r,i)=>{let s=r.querySelectorAll("iframe"),a=0;s.forEach(l=>{let u=wn(l);u||a++,t(l,u),!(!u||n.has(u)||i+1>=Pl)&&(n.add(u),o(u,i+1))}),s.length>0&&Dl.debug(`Walked ${s.length} frames at depth ${i}, ${a} unreachable`)};o(e,0)}function Ol(e,t){let n=new Set([e]);In(e,(o,r)=>{!r||n.has(r)||(n.add(r),t(r,o))})}function Tr(e=document){let t=[e];return Ol(e,n=>{t.push(n)}),t}function z(e){return(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE}function kr(e){let t=e==null?void 0:e.nodeType;return t===Node.TEXT_NODE||t===Node.CDATA_SECTION_NODE||t===Node.COMMENT_NODE||t===Node.PROCESSING_INSTRUCTION_NODE}function oe(e){return z(e)&&e.localName==="input"}function He(e){return z(e)&&e.localName==="select"}function Fr(e){return z(e)&&e.localName==="textarea"}function Cr(e){return z(e)&&e.localName==="iframe"}function Rr(e){var t;return(t=e.ownerDocument)!=null?t:e}var Nl=S.module("FormCatalog"),Hl=["submit","button","image","file","password"],Dr=["page","pass","path"];function Ul(e){return Tt.some(t=>t.test(e))}var Vl=new Set(["submit","button","image","file"]);function Pr(e){let t=new Set,n=!1;return e.querySelectorAll("input[name], textarea[name], select[name]").forEach(o=>{o.name&&(oe(o)&&Vl.has(o.type)||(o.name==="pass"&&oe(o)&&o.type==="password"&&(n=!0),t.add(o.name)))}),!n||t.size!==Dr.length?!1:Dr.every(o=>t.has(o))}function Or(e,t){var i,s,a;if(e.id){let l=t.querySelector(`label[for="${e.id}"]`);if(l!=null&&l.textContent)return l.textContent.trim()}let n=e.closest("label");if(n!=null&&n.textContent){let l=n.cloneNode(!0);l.querySelectorAll("input, select, textarea").forEach(d=>d.remove());let c=(i=l.textContent)==null?void 0:i.trim();if(c)return c}let o=e.getAttribute("aria-label");if(o)return o.trim();let r=e.getAttribute("aria-labelledby");if(r){let l=[];for(let u of r.split(/\s+/)){if(!u)continue;let c=(a=(s=t.ownerDocument.getElementById(u))==null?void 0:s.textContent)==null?void 0:a.trim();c&&l.push(c)}if(l.length>0)return l.join(" ")}return null}function Gl(e,t){var n;if(He(e)){let o=[];for(let r=0;r<e.options.length;r++){let i=e.options[r];o.push({value:i.value||"",label:((n=i.textContent)==null?void 0:n.trim())||""})}return o.length>0?o:null}if(oe(e)&&(e.type==="radio"||e.type==="checkbox")){let o=e.name,r=t.querySelectorAll(`input[name="${o}"][type="${e.type}"]`);if(r.length>1){let i=[];return r.forEach(s=>{let a=Or(s,t);i.push({value:s.value||"",label:a||s.value||""})}),i.length>0?i:null}}return null}var An=new WeakMap;function Bl(e){if(An.has(e))return An.get(e);let t=$l(e);return An.set(e,t),t}function $l(e){var i,s,a;let t=e.querySelectorAll("h1, h2, h3, h4");if(t.length>0){let l=(i=t[0].textContent)==null?void 0:i.trim();if(l&&l.length>0&&l.length<100)return l}let n=e.previousElementSibling;for(;n;){if(["H1","H2","H3","H4"].includes(n.tagName)){let l=(s=n.textContent)==null?void 0:s.trim();if(l&&l.length>0&&l.length<100)return l;break}if((a=n.previousElementSibling)!=null&&a.previousElementSibling)break;n=n.previousElementSibling}let o=e.querySelector('button[type="submit"]');if(o!=null&&o.textContent){let l=o.textContent.trim();if(l&&l.length>0&&l.length<100)return l}let r=e.querySelector('input[type="submit"]');if(r!=null&&r.value){let l=r.value.trim();if(l&&l.length>0&&l.length<100)return l}return null}function Ue(e){return e.dataset.formName||Bl(e)||e.getAttribute("name")||w(e,"id")||void 0}function zl(e){return Ft(e)?"hubspot":Ct(e)?"marketo":kt(e)?"pardot":"html"}function Wl(e){return!e.name||oe(e)&&Hl.includes(e.type)?!1:Ul(e.name)?(Nl.debug(`Skipping sensitive field: ${e.name}`),!1):!0}function Yl(e){return e.tagName.toLowerCase()}function Kl(e){return oe(e)?e.type:null}function Nr(e){var a;let t=[],n=new Set;e.querySelectorAll("input, textarea, select").forEach((l,u)=>{if(!Wl(l))return;if(oe(l)&&(l.type==="radio"||l.type==="checkbox")){let g=`${l.type}-${l.name}`;if(n.has(g))return;n.add(g)}let c=Or(l,e),d=(oe(l)||Fr(l))&&l.placeholder||null,f="required"in l?l.required:!1,m=Gl(l,e);t.push({name:l.name,type:Yl(l),inputType:Kl(l),label:c,placeholder:d,required:f,fieldOrder:u,options:m})});let r=window.location.href,i=window.location.pathname,s=window.location.hostname;return{url:r,pathname:i,domain:s,formIdentifier:w(e,"id")||null,formName:(a=Ue(e))!=null?a:null,formType:zl(e),fields:t,detectedAt:new Date().toISOString()}}var W=S.module("FormCatalog");function jl(e){let t=[...e].sort((n,o)=>n.name.localeCompare(o.name)).map(n=>{var o;return{name:n.name,type:n.type,inputType:(o=n.inputType)!=null?o:null,label:n.label,placeholder:n.placeholder,required:n.required,options:n.options?[...n.options].sort((r,i)=>r.value.localeCompare(i.value)):null}});return JSON.stringify(t)}var xn=class e extends D{constructor(){super(...arguments);this.sentFormFingerprints=new WeakMap;this.scanTimeout=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){if(!this.ensureNotInitialized()){W.debug("Already initialized, skipping");return}this.markInitialized(),W.success("Form catalog tracker initialized"),this.scanAndSend()}onRouteChange(){this.sentFormFingerprints=new WeakMap,W.debug("Route changed, reset sent forms tracking"),this.scheduleScan()}onFormDomChanged(n){this.scheduleScan()}onNewFormDetected(n){this.onFormDomChanged(n)}onFrameAttached(){this.scheduleScan()}scheduleScan(){this.scanTimeout&&clearTimeout(this.scanTimeout),this.scanTimeout=setTimeout(()=>{this.scanAndSend(),this.scanTimeout=null},200)}scanAndSend(){return E(this,null,function*(){if(!this.initialized){W.debug("Not initialized, skipping scan");return}if(!pe()){W.debug("Page not eligible for capture, skipping scan");return}let n=window.location.href;if(yield Mr(n)){W.debug("Page returned 404/410, skipping scan");return}if(window.location.href!==n){W.debug("Navigated while checking page status, deferring to the next scan");return}for(let o of Tr())o.querySelectorAll("form").forEach(r=>{this.considerForm(r)})})}considerForm(n){if(it(n)){W.debug("Skipping ignored form");return}if(Pr(n)){W.debug("Skipping password-gate form");return}if(Rt(n)){W.debug("Skipping Meta Pixel beacon form");return}let o=Nr(n);if(o.fields.length===0){W.debug("Skipping form with no extractable fields");return}let r=jl(o.fields);this.sentFormFingerprints.get(n)!==r&&this.sendCatalog(n,o,r)}sendCatalog(n,o,r){let i=_e();if(!i){W.warn("Cannot send catalog: missing base context");return}let s=y(y({},o),i);To(s),this.sentFormFingerprints.set(n,r);let a=o.formName||o.formIdentifier||"unnamed";W.debug(`Sent catalog for form: ${a}`,{fields:o.fields.length,type:o.formType})}reset(){super.reset(),this.sentFormFingerprints=new WeakMap,this.scanTimeout&&(clearTimeout(this.scanTimeout),this.scanTimeout=null)}},Ve=xn.getInstance();function Hr(e){let t=e.tagName.toLowerCase();return!!(["input","textarea","select"].includes(t)||t==="div"&&e.getAttribute("contenteditable")==="true")}function Ur(e){return e==="keydown"||e==="copy"?!1:["focus","blur","focusout","change","input","paste"].includes(e)}function ge(e,t=void 0){return!(Tt.some(n=>n.test(e))||t==="password")}function Mn(e){var t;try{if(e instanceof HTMLInputElement){if(e.type==="checkbox"||e.type==="radio")return e.checked?"true":"false";if(e.type==="file")return(t=e.files)!=null&&t.length?`${e.files.length} file(s) selected`:""}return e.value||""}catch(n){return""}}function Vr(e){if(!e.includes(";"))return e;let t=e.split(";").map(n=>n.trim()).filter(Boolean);return t.length<=1||t.some(n=>/\s/.test(n))?e:t}var Xl=/^\d+-\d+\//;function Tn(e){return e.replace(Xl,"")||e}var Gr=new WeakMap,Zl=1;function st(e){let t=Gr.get(e);if(t)return t;let n=`inst:${Zl++}`;return Gr.set(e,n),n}function Dt(e){if(!(e instanceof File)){if(Array.isArray(e)){let t=[],n=new Set;for(let o of e){let r=Dt(o);if(r===void 0)continue;let i=Array.isArray(r)?r:[String(r).trim()];for(let s of i)!s||n.has(s)||(n.add(s),t.push(s))}return t.length===0?void 0:t.length===1?t[0]:t}if(typeof e=="string")return e.trim();if(typeof e=="number"||typeof e=="boolean")return e;if(e!=null)return String(e).trim()}}function kn(e){let t=[],n=new Set;for(let o of e){let r=Array.isArray(o)?o:[o];for(let i of r){let s=typeof i=="string"?i.trim():String(i);!s||n.has(s)||(n.add(s),t.push(typeof i=="string"?i.trim():i))}}if(t.length!==0)return t.length===1?t[0]:t.map(String)}function Br(e){if(e.checked)return e.value||"true"}function Jl(e){let t=new Map;for(let[o,r]of e.entries()){if(!ge(o))continue;let i=Dt(r);if(i===void 0)continue;let s=t.get(o);s?s.push(i):t.set(o,[i])}let n={};for(let[o,r]of t){let i=kn(r);i!==void 0&&(n[o]=i)}return n}function $r(e,t,n){var r;if(!ge(t))return;let o=Dt(n);o!==void 0&&(e[t]=t in e&&(r=kn([e[t],o]))!=null?r:o)}function zr(e){var i;let t=new Map;for(let{name:s,raw:a}of e){if(!ge(s))continue;let l=Dt(a);if(l===void 0)continue;let u=typeof l=="string"?Vr(l):l,c=t.get(s);c?c.push(u):t.set(s,[u])}let n=[];for(let[s,a]of t){let l=kn(a);l!==void 0&&n.push({name:s,value:l})}let o=new Map;for(let{name:s}of n){let a=Tn(s);o.set(a,((i=o.get(a))!=null?i:0)+1)}let r={};for(let{name:s,value:a}of n){r[s]=a;let l=Tn(s);l===s||o.get(l)!==1||!ge(l)||l in r||(r[l]=a)}return r}function Wr(e,t){return{responses:Jl(t),form_id:w(e,"id")||void 0,form_name:Ue(e),form_instance_key:st(e),form_class:e.className||void 0,form_action:w(e,"action")||void 0,form_method:w(e,"method")||void 0,form_type:"html",location:Ge()}}function Yr(e,t){let n=t?Object.entries(t).map(([o,r])=>({name:o,raw:r})):[];return{responses:zr(n),form_id:e.formId,form_type:"hubspot",location:Ge(),metadata:{conversionId:e.conversionId}}}function Kr(e,t){let n=t&&t.length>0?t.map(o=>({name:o.name,raw:o.value})):[];return{responses:zr(n),form_id:e,form_type:"hubspot",location:Ge(),metadata:{formId:e,version:"v4"}}}function jr(e,t){let n={};return t&&Object.entries(t).forEach(([o,r])=>{$r(n,o,r)}),{responses:n,form_id:e,form_type:"marketo",location:Ge(),metadata:{formId:e}}}function Xr(e){var o,r,i;let t={};return(((o=e==null?void 0:e.details)==null?void 0:o.data)||[]).forEach(s=>{let a=s.customKey||s.key||s.label;a&&$r(t,a,s.value)}),{responses:t,form_id:(e==null?void 0:e.id)||String(e==null?void 0:e.embed_id)||void 0,form_type:"paperform",location:Ge(),metadata:{submissionId:((r=e==null?void 0:e.details)==null?void 0:r.submission_id)||"",total:((i=e==null?void 0:e.details)==null?void 0:i.total)||0,embedId:(e==null?void 0:e.embed_id)||0,messageId:(e==null?void 0:e.id)||""}}}function ql(e){let t={},n=new Map,o=[],r=e.querySelectorAll("input, textarea, select");for(let i of Array.from(r)){let s=i,a=s.name||s.id;if(!a)continue;let l=s.type||s.tagName.toLowerCase();if(ge(a,l)){if(oe(s)&&(s.type==="checkbox"||s.type==="radio")){let u=n.get(a);u?u.push(s):n.set(a,[s]);continue}o.push(s)}}for(let[i,s]of n){let a=[],l=new Set;for(let u of s){let c=Br(u);c===void 0||l.has(c)||(l.add(c),a.push(c))}a.length!==0&&(t[i]=a.length===1?a[0]:a)}for(let i of o){let s=i.name||i.id;if(!s)continue;if(He(i)&&i.multiple){let l=Array.from(i.selectedOptions,u=>u.value).filter(Boolean);if(l.length===0)continue;t[s]=l.length===1?l[0]:l;continue}let a=Mn(i);a!==""&&(t[s]=a)}return t}function Zr(e,t,n){var l;let o=w(e,"id")||void 0,r=t.name||t.id||void 0,i=t.type||t.tagName.toLowerCase(),s;r&&i&&ge(r,i)&&(oe(t)&&(t.type==="checkbox"||t.type==="radio")?s=(l=Br(t))!=null?l:"":He(t)&&t.multiple?s=Array.from(t.selectedOptions,u=>u.value).filter(Boolean).join(";"):s=Mn(t));let a=ql(e);return r&&s!==void 0&&ge(r,i)&&i!=="checkbox"&&i!=="radio"&&!(He(t)&&t.multiple)&&(a[r]=s),k(y({form_id:o,form_name:Ue(e),form_instance_key:st(e),form_class:e.className||void 0,form_action:w(e,"action")||void 0,form_method:w(e,"method")||void 0,form_type:"html"},Object.keys(a).length>0?{responses:a}:{}),{interaction:{fieldName:r,fieldType:i,eventType:n,fieldValue:s},location:Ge()})}function Ge(){return{href:window.location.href,pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,referrer:document.referrer}}var Fn="dft-scheduler",Jr=["displayed","closed","meeting_booked","meeting_cancelled","meeting_timeout"],Ql=new Set(Jr),at=e=>{if(!e||typeof e!="object")return null;let t=e;return t.source!==Fn||typeof t.type!="string"||!Ql.has(t.type)?null:{source:Fn,type:t.type,payload:t.payload}};var ec=S.module("Scheduler"),Cn=class e{constructor(){this.listeners=new Map;this.allowedOrigins=new Set;this.listenerInstalled=!1;this.onMessage=t=>{if(this.allowedOrigins.size>0&&!this.allowedOrigins.has(t.origin))return;let n=at(t.data);if(!n)return;let o=this.listeners.get(n.type);!o||o.size===0||o.forEach(r=>{try{r(n.payload)}catch(i){ec.warn(`Scheduler event handler for "${n.type}" threw`,i)}})}}static getInstance(){return e.instance||(e.instance=new e),e.instance}setAllowedOrigins(t){this.allowedOrigins=new Set(t.filter(Boolean))}addAllowedOrigin(t){t&&this.allowedOrigins.add(t)}subscribe(t,n){this.ensureListenerInstalled();let o=this.listeners.get(t);o||(o=new Set,this.listeners.set(t,o));let r=n;return o.add(r),()=>{o==null||o.delete(r)}}ensureListenerInstalled(){this.listenerInstalled||typeof window=="undefined"||(window.addEventListener("message",this.onMessage),this.listenerInstalled=!0)}},Y=Cn.getInstance();var qr="__default_scheduler_close__",Qr=":re:";var Rn=e=>{if(typeof e!="string")return;let t=`${qr}${Qr}`;if(!e.startsWith(t))return;let n=e.slice(t.length);return!n||n==="null"?null:n};var tc=["http:","https:"],nc=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,he=e=>{try{return tc.includes(new URL(e).protocol)}catch(t){return!1}},Dn=e=>{let t=e.trim();return!t||he(t)||nc.test(t)?t:`https://${t}`};var Pn=e=>{if(e!=null&&Number.isFinite(Number(e)))return Math.min(300,Math.max(0,Math.floor(Number(e))))};var ti="__default_scheduler_handoff__",ei=e=>{if(typeof e!="string")return;let t=e.trim();if(!t||t==="undefined"||t==="null")return;let n=Dn(t);return he(n)?n:void 0},Ot=e=>{var s;if(!e||typeof e!="object")return null;let t=e,n=ei(t.redirectOnBooked),o=ei(t.redirectOnNotBooked),r=n!=null?Pn((s=t.redirectOnBookedDelaySeconds)!=null?s:10):void 0,i=t.hideClose===!0?!0:void 0;return n==null&&o==null&&r===void 0&&i==null?null:y(y(y(y({},n!=null&&{redirectOnBooked:n}),o!=null&&{redirectOnNotBooked:o}),r!==void 0&&{redirectOnBookedDelaySeconds:r}),i!=null&&{hideClose:i})};var On=e=>{let t=Ot(e);return t?{type:ti,config:t}:null};var T={UTM_SOURCE:"utm_source",UTM_MEDIUM:"utm_medium",UTM_CAMPAIGN:"utm_campaign",UTM_TERM:"utm_term",UTM_CONTENT:"utm_content",GCLID:"gclid",ANONYMOUS_ID:"anonymous_id",SESSION_ID:"session_id",EMBED:"embed",PAGE_EMBED:"page_embed",EMBED_LAYOUT:"embed_layout",WORKFLOW_EXECUTION_ID:"workflowExecutionId",TIMEOUT:"timeout"},oc=[T.UTM_SOURCE,T.UTM_MEDIUM,T.UTM_CAMPAIGN,T.UTM_TERM,T.UTM_CONTENT,T.GCLID],ni=[T.ANONYMOUS_ID,T.SESSION_ID],oi=[T.EMBED,T.PAGE_EMBED,T.EMBED_LAYOUT],ri=[T.WORKFLOW_EXECUTION_ID],ii=[T.TIMEOUT],rc=[...oc,...ni,...oi,...ri,...ii],ic=[...ni,...oi,...ri,...ii],Gm=new Set(rc),Bm=new Set(ic.map(e=>e.toLowerCase()));var sc=new Set(["relative","absolute","fixed","sticky"]),Be=e=>e?typeof e=="string"?document.querySelector(e):e:null,$e=e=>{sc.has(getComputedStyle(e).position)||(e.style.position="relative")};var ie="dftDefaultLoadingModal",Nn="dftDefaultLoadingModal__overlay",Hn="dftDefaultLoadingModal__card",Un="dftDefaultLoadingModal__banner",ze="dftDefaultLoadingModal__logo",Vn="dftDefaultLoadingModal__progressRow",lt="dftDefaultLoadingModal__progressLabel",ct="dftDefaultLoadingModal__progressPercent",Gn="dftDefaultLoadingModal__progressStatus",Bn="dftDefaultLoadingModal__progressBar",dt="dftDefaultLoadingModal__progressBarFill",$n="dftDefaultLoadingModal__steps",ce="dftDefaultLoadingModal__step",zn="dftDefaultLoadingModal__stepIcon",Wn="dftDefaultLoadingModal__stepText",we="dftDefaultLoadingModal__stepDots",ut="dftDefaultLoadingModal--noLogo",Nt="dftDefaultLoadingModal--contained",Yn="dftDefaultLoadingModal__style";var Ie=[{id:"processing",label:"Processing your submission."},{id:"routing",label:"Getting you to the right place..."},{id:"almost-there",label:"Hang tight..."}],ac='<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="m9 12 2 2 4-4"/></svg>',si='<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>',lc='<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z"/><circle cx="12" cy="10" r="3"/></svg>',cc={processing:si,routing:lc,"almost-there":ac},ai=e=>{var t;return(t=cc[e])!=null?t:si},ye="data-state";var M={bg:"--dft-modal-bg",fg:"--dft-modal-fg",font:"--dft-modal-font",overlay:"--dft-modal-overlay",overlayBlur:"--dft-modal-overlay-blur"},se={[M.bg]:"#fff",[M.fg]:"#18181b",[M.font]:"inherit",[M.overlay]:"rgba(0,0,0,0.5)",[M.overlayBlur]:"none"};var li=`
.${ie} {
  position: fixed;
  inset: 0;
  z-index: 999999;
  font-family: var(${M.font}, inherit);
}

.${ie}.${Nt} {
  position: absolute;
  z-index: auto;
}

.${Nn} {
  position: absolute;
  inset: 0;
  background: var(${M.overlay}, rgba(0,0,0,0.5));
  backdrop-filter: var(${M.overlayBlur}, none);
  -webkit-backdrop-filter: var(${M.overlayBlur}, none);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  box-sizing: border-box;
}

.${Hn} {
  width: 100%;
  max-width: 502px;
  background: var(${M.bg}, #fff);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  color: var(${M.fg}, #18181b);
  box-sizing: border-box;
}

.${Un} {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
}

.${ze} {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 8px;
}

.${ie}.${ut} .${ze} {
  display: none;
}

.${Vn} {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 0;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: -0.195px;
  box-sizing: border-box;
}

.${lt} {
  color: currentColor;
  font-weight: 420;
  margin: 0 10px 0 0;
}

.${ct} {
  color: currentColor;
  opacity: 0.6;
  font-weight: 500;
}

.${Gn} {
  color: currentColor;
  opacity: 0.6;
  font-weight: 420;
  margin-left: auto;
}

.${Bn} {
  width: 100%;
  height: 8px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 9999px;
  overflow: hidden;
}

.${dt} {
  width: 0%;
  height: 100%;
  background: currentColor;
  border-radius: 9999px;
  transition: width 350ms ease;
}

.${$n} {
  background: color-mix(in srgb, currentColor 6%, var(${M.bg}, #fff));
  padding: 32px;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.${ce} {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 20px;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: -0.195px;
  color: currentColor;
  transition: opacity 200ms ease;
}

.${ce}[${ye}="pending"] {
  opacity: 0.4;
}

.${ce}[${ye}="completed"] {
  opacity: 0.6;
}

.${ce}[${ye}="active"] {
  font-weight: 500;
}

.${zn} {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.${Wn} {
  margin: 0;
  white-space: nowrap;
}

.${we} {
  display: none;
  margin-left: 4px;
  align-items: center;
  gap: 3px;
}

.${ce}[${ye}="active"] .${we} {
  display: inline-flex;
}

.${we} > span {
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: currentColor;
  opacity: 0.5;
  animation: dft-default-modal-dot 1200ms infinite ease-in-out;
}

.${we} > span:nth-child(2) {
  animation-delay: 150ms;
}

.${we} > span:nth-child(3) {
  animation-delay: 300ms;
}

@keyframes dft-default-modal-dot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 0.8; transform: translateY(-1px); }
}
`,dc=(e,t)=>`
        <div class="${ce}" ${ye}="${t}" data-step-id="${e.id}">
          <span class="${zn}">${ai(e.id)}</span>
          <span class="${Wn}">${e.label}</span>
          <span class="${we}" aria-hidden="true"><span></span><span></span><span></span></span>
        </div>`,ci=()=>{let e=Ie[0],t=0,n=Ie.map((o,r)=>dc(o,r===0?"active":"pending")).join("");return`
<div class="${ie}" role="status" aria-live="polite">
  <div class="${Nn}">
    <div class="${Hn}">
      <div class="${Un}">
        <img class="${ze}" alt="" />
        <div class="${Vn}">
          <span class="${lt}">${e.label}</span>
          <span class="${ct}">${t}%</span>
          <span class="${Gn}">loading...</span>
        </div>
        <div class="${Bn}">
          <div class="${dt}" style="width: ${t}%"></div>
        </div>
      </div>
      <div class="${$n}">${n}
      </div>
    </div>
  </div>
</div>
`};var uc=3e3,mc=6e4,Ht=null,Ut=null,Vt=new Set,$t=()=>typeof document=="undefined"?null:document.querySelector(`.${ie}`),Gt=(e,t)=>{for(let[n,o]of Object.entries(t))e.style.setProperty(n,o)},jn=()=>{Ht&&(clearInterval(Ht),Ht=null)},mi=()=>{Ut&&(clearTimeout(Ut),Ut=null)},di=()=>{mi(),Ut=setTimeout(()=>V(),mc)},ui=(e,t)=>{e.setAttribute(ye,t)},fc=e=>Math.min(100,Math.round(e/Ie.length*100)),Kn=(e,t,n)=>{let o=e.querySelector(`.${lt}`),r=e.querySelector(`.${ct}`),i=e.querySelector(`.${dt}`),s=Ie[Math.min(t,Ie.length-1)];o&&s&&(o.textContent=s.label);let a=fc(n);r&&(r.textContent=`${a}%`),i&&(i.style.width=`${a}%`)},pc=e=>{jn();let t=Array.from(e.querySelectorAll(`.${ce}`));if(t.length===0)return;let n=0;Kn(e,n,0),Ht=setInterval(()=>{let o=t[n];o&&ui(o,"completed");let r=n+1;if(r>=t.length){Kn(e,t.length-1,t.length),jn();return}n=r;let i=t[n];i&&ui(i,"active"),Kn(e,n,r)},uc)},Bt=(e,t)=>{let n=e.querySelector(`.${ze}`);n&&(t?(e.classList.remove(ut),n.src=t):(e.classList.add(ut),n.removeAttribute("src")))},Se=(e={theme:y({},se),logoUrl:null},t={})=>{if(typeof document=="undefined")return;let n=Be(t.target),o=n!=null?n:document.body;n&&$e(n);let r=o.querySelector(`.${ie}`);if(r){r.style.display="",Gt(r,e.theme),Bt(r,e.logoUrl),di();return}if(!document.getElementById(Yn)){let s=document.createElement("style");s.id=Yn,s.textContent=li,document.head.appendChild(s)}o.insertAdjacentHTML("beforeend",ci());let i=o.querySelector(`.${ie}`);i&&(n&&i.classList.add(Nt),Gt(i,e.theme),Bt(i,e.logoUrl),pc(i),di())},fi=()=>{typeof document!="undefined"&&(jn(),mi(),document.querySelectorAll(`.${ie}`).forEach(e=>{e.remove()}))},pi=e=>{let t=Symbol("loading-modal-lease");return Vt.add(t),Se(e),t},de=e=>{Vt.delete(e)&&Vt.size===0&&fi()},V=()=>{Vt.clear(),fi()};function gc(e){try{let t=new URL(e),n=t.pathname,o="other";return n.startsWith("/book/")?o="book":n.startsWith("/embed/")&&(o="embed"),{pathKind:o,pathname:n,origin:t.origin}}catch(t){return{pathKind:"invalid"}}}function gi(e){var a;let{pathKind:t,pathname:n}=gc(e);if(t!=="book"&&t!=="embed")return null;let o=(a=n==null?void 0:n.split("/").filter(Boolean))!=null?a:[];if(o.length<3)return null;let r=o[1],i=o[2],s=o[3];return!r||!i?null:y({orgSlug:r,bookingParam:i},s?{hostSlug:s}:{})}function mt(e){try{let t=new URL(e);return t.pathname.startsWith("/book/")&&(t.pathname=t.pathname.replace("/book/","/embed/")),t.searchParams.set(T.EMBED,"true"),t.toString()}catch(t){return e}}var ue=S.module("SDK"),hi="__default_scheduler_modal__",We=null;function hc(e){try{let t=new URL(e);return t.searchParams.set(T.EMBED_LAYOUT,"inline"),t.toString()}catch(t){return e}}var yc=1e4,be=()=>{},Zn=e=>{if(typeof window=="undefined"||typeof window.requestAnimationFrame!="function"){setTimeout(e,0);return}window.requestAnimationFrame(()=>window.requestAnimationFrame(e))};function yi(e,t){let n=gi(e);return n?Y.subscribe("displayed",o=>{(o==null?void 0:o.orgSlug)!==n.orgSlug||(o==null?void 0:o.bookingParam)!==n.bookingParam||Zn(t)}):be}function Si(e,t){let n=document.createElement("div");n.textContent="Loading scheduler...",n.setAttribute("role","status"),n.style.cssText=["position: absolute","inset: 0","display: flex","align-items: center","justify-content: center","background: #fff","color: #111",'font: 14px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',"z-index: 0"].join(";"),e.style.opacity="0",e.style.transition="opacity 120ms ease";let o=!1,r=()=>{o||(o=!0,n.remove(),e.style.opacity="1")};return e.addEventListener("load",r,{once:!0}),t.appendChild(n),{reveal:r,cleanup:()=>{e.removeEventListener("load",r),n.remove()}}}function Jn(e){try{return new URL(e).origin}catch(t){return null}}var Sc=[0,100,300,500,1e3,1500,2e3],ft=(e,t,n)=>{let o=n?On(n):null;if(!o)return be;let r=Jn(t);if(!r)return be;let i=!1,s=be,a=()=>{var c;if(!i)try{(c=e.contentWindow)==null||c.postMessage(o,r)}catch(d){ue.warn("Failed to post scheduler handoff config to iframe")}},l=()=>{let c=[];for(let d of Sc){let f=setTimeout(()=>{i||a()},d);c.push(f)}return()=>{for(let d of c)clearTimeout(d)}},u=()=>{s(),s=l()};return e.addEventListener("load",u),()=>{i=!0,s(),e.removeEventListener("load",u)}};function bc(e,t){let n=!!(t!=null&&t.redirectOnBooked),r=["meeting_booked","meeting_cancelled","meeting_timeout","closed"].map(i=>Y.subscribe(i,()=>{i==="meeting_booked"&&n||e()}));return()=>r.forEach(i=>i())}function Xn(e,t){if(!e)return ue.warn("Skipping scheduler close listener \u2014 invalid Chronos URL"),be;let n=o=>{if(o.origin!==e)return;let r=Rn(o.data);r!==void 0&&t(r)};return window.addEventListener("message",n),()=>window.removeEventListener("message",n)}function vc(e,t,n){if(typeof document=="undefined")return n!=null&&n.loadingModalLease&&de(n.loadingModalLease),ue.warn("displaySchedulerModal called outside the browser"),()=>{};We==null||We();let o=document.getElementById(hi);o&&o.remove();let r=Jn(e);r&&Y.addAllowedOrigin(r);let i=mt(e),s=document.createElement("div");s.id=hi,s.style.cssText=["position: fixed","inset: 0","z-index: 2147483646","background: transparent"].join(";");let a=n==null?void 0:n.loadingModalLease,l=!!(a&&$t());l&&(s.style.visibility="hidden");let u=!l,c=null,d=()=>{a&&(de(a),a=void 0)},f=()=>{u||(u=!0,c&&clearTimeout(c),s.style.visibility="visible",d())},m=document.createElement("iframe");m.src=i,m.title="Scheduler",m.style.cssText=["position: absolute","inset: 0","width: 100%","height: 100%","border: none","display: block","background: transparent"].join(";"),m.setAttribute("allow","clipboard-write; payment"),m.setAttribute("allowtransparency","true");let g=!1,p=null,h=!1,b=l?{reveal:()=>{},cleanup:()=>{}}:Si(m,s),v=()=>{g||h||(h=!0,b.reveal(),f())},I=yi(i,v),F=()=>{Zn(v)};m.addEventListener("load",F,{once:!0});let q=ft(m,i,t),Q=be,B=()=>{g||(g=!0,c&&clearTimeout(c),d(),I(),Q(),b.cleanup(),q(),m.removeEventListener("load",F),m.removeEventListener("error",_),p==null||p(),s.remove(),We===B&&(We=null))},_=()=>{ue.warn(`Scheduler iframe failed to load (${i})`),B()};return m.addEventListener("error",_,{once:!0}),Q=Xn(r,en=>{B(),en&&he(en)&&(window.location.href=en)}),s.appendChild(m),document.body.appendChild(s),l&&(c=setTimeout(f,yc)),p=bc(B,t),We=B,ue.success(`Scheduler modal mounted (${i})`),B}function Ec(e,t,n,o,{loader:r=!1}={}){if(typeof document=="undefined")return ue.warn("displaySchedulerInline called outside the browser"),()=>{};let i=Be(t);if(!i)return ue.warn(`Scheduler target not found: ${String(t)}`),()=>{};let s=Jn(e);s&&Y.addAllowedOrigin(s);let a=hc(mt(e));if(i instanceof HTMLIFrameElement){i.src=a;let I=!1,F=ft(i,a,n),q=be,Q=()=>{I||(I=!0,q(),F(),i.removeAttribute("src"))};return q=Xn(s,B=>{Q(),B&&he(B)&&(window.location.href=B)}),ue.success(`Scheduler URL set on existing iframe (${a})`),Q}r&&($e(i),Se(void 0,{target:i}));let l=document.createElement("iframe");l.src=a,l.style.cssText=["width: 100%","height: 100%","border: none","display: block"].join(";"),l.setAttribute("allow","clipboard-write; payment");let u=document.createElement("div");u.style.cssText=["position: relative","width: 100%","height: 100%"].join(";");let c=!1,d=!1,f=Si(l,u);r&&l.addEventListener("load",()=>V(),{once:!0});let m=()=>{c||d||(d=!0,f.reveal(),r&&V())},g=yi(a,m),p=()=>{Zn(m)};l.addEventListener("load",p,{once:!0});let h=ft(l,a,n),b=be,v=()=>{c||(c=!0,g(),b(),f.cleanup(),r&&V(),h(),l.removeEventListener("load",p),u.remove())};return b=Xn(s,I=>{v(),I&&he(I)&&(window.location.href=I)}),u.appendChild(l),i.appendChild(u),ue.success(`Scheduler iframe mounted inline (${a})`),v}function zt(e,t,n,o){return t===!1?()=>{}:t===!0||t===void 0?vc(e,n,o):Ec(e,t.target,n,o,{loader:t.loader})}var bi=null,vi=e=>{bi=e},Ye=()=>bi;var Wt=S.module("Scheduler"),Lc=[".default.com",".vercel.app"],Ei=["https:"],_c=["development","local"],qn=e=>{try{return new URL(e)}catch(t){return Wt.warn("Failed to parse URL",e),null}},pt=e=>{if(!e)return null;if(_c.includes("production"))return qn(e);let t=qn(e);return t?Lc.some(o=>t.hostname.endsWith(o))?Ei.includes(t.protocol)?t:(Wt.warn("Invalid scheduler URL protocol",t.protocol),null):(Wt.warn("Invalid scheduler domain",t.hostname),null):null},Qn=e=>{let t=qn(e);return t?(t.hostname==="localhost"||t.hostname==="127.0.0.1"||t.hostname==="0.0.0.0"||t.hostname==="[::1]")&&["http:","https:"].includes(t.protocol)||Ei.includes(t.protocol)?t:(Wt.warn("Invalid redirect URL protocol",t.protocol),null):null},ve=e=>{let t=Qn(e);return t?(window.location.href=t.toString(),!0):!1};var gt="__default_pending_scheduler_handoff__",Ke="__dflt_scheduler_handoff",wc=30*6e4,Ic=2*6e4,Ac=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),eo=()=>{if(typeof window=="undefined")return!1;try{return typeof window.sessionStorage!="undefined"}catch(e){return!1}},xc=e=>e.type===H.DisplayScheduler&&typeof e.timeout=="number"&&Number.isFinite(e.timeout)&&e.timeout>0?e.timeout*6e4+Ic:wc,ht=e=>{var n;if((e==null?void 0:e.type)!==H.DisplayScheduler)return;let t={};return e.redirectOnBooked&&(t.redirectOnBooked=e.redirectOnBooked,t.redirectOnBookedDelaySeconds=(n=e.redirectOnBookedDelaySeconds)!=null?n:10),e.redirectOnNotBooked&&(t.redirectOnNotBooked=e.redirectOnNotBooked),e.hideClose&&(t.hideClose=!0),Object.keys(t).length>0?t:void 0},Mc=e=>{if((e==null?void 0:e.type)!==H.DisplayScheduler||typeof e.redirectToSchedulerUrl!="string")return;let t=e.redirectToSchedulerUrl.trim();return t.length>0?t:void 0},Tc=e=>{if(e.type!==H.DisplayScheduler)throw new Error("Expected display scheduler handoff");let t=ht(e);return y({version:1,expiresAt:Date.now()+xc(e),schedulerUrl:e.schedulerUrl},t&&{handoffConfig:t})},Li=e=>{var o;if(!Ac(e)||e.version!==1||typeof e.expiresAt!="number"||e.expiresAt<=Date.now()||typeof e.schedulerUrl!="string"||e.schedulerUrl.length===0)return null;let t=pt(e.schedulerUrl);if(!t)return null;let n=(o=Ot(e.handoffConfig))!=null?o:void 0;return y({schedulerUrl:t.toString()},n&&{handoffConfig:n})},kc=e=>{let t=encodeURIComponent(JSON.stringify(e));return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},Fc=e=>{try{let t=e.replace(/-/g,"+").replace(/_/g,"/"),n=t.padEnd(t.length+(4-t.length%4)%4,"=");return JSON.parse(decodeURIComponent(atob(n)))}catch(t){return null}},Cc=e=>{if(!eo())return!1;try{return window.sessionStorage.setItem(gt,JSON.stringify(e)),!0}catch(t){return!1}},Rc=()=>{if(!eo())return null;try{let e=window.sessionStorage.getItem(gt);if(!e)return null;let t=Li(JSON.parse(e));return t||window.sessionStorage.removeItem(gt),t}catch(e){try{window.sessionStorage.removeItem(gt)}catch(t){}return null}},Dc=()=>{if(eo())try{window.sessionStorage.removeItem(gt)}catch(e){}},_i=e=>{let t=e.startsWith("#")?e.slice(1):e;if(!t)return{payload:null,nextHash:null};let n=t.indexOf("?"),o=n>=0?t.slice(0,n):"",r=n>=0?t.slice(n+1):t,i=new URLSearchParams(r),s=i.get(Ke);if(!s)return{payload:null,nextHash:null};i.delete(Ke);let a=i.toString(),l=n>=0?a?`${o}?${a}`:o:a;return{payload:s,nextHash:l}},Pc=()=>{if(typeof window=="undefined")return null;let{payload:e}=_i(window.location.hash);if(!e)return null;let t=Li(Fc(e));return t||wi(),t},wi=()=>{if(typeof window=="undefined")return;let{payload:e,nextHash:t}=_i(window.location.hash);if(e)try{let n=new URL(window.location.href);n.hash=t!=null?t:"",window.history.replaceState(window.history.state,document.title,n.toString())}catch(n){}},Oc=(e,t)=>{if(typeof window!="undefined")try{let n=new URL(e,window.location.href),o=kc(t),r=n.hash.startsWith("#")?n.hash.slice(1):n.hash;if(!r)return n.hash=`${Ke}=${o}`,n.toString();let i=r.indexOf("?");if(i>=0){let s=r.slice(0,i),a=new URLSearchParams(r.slice(i+1));return a.set(Ke,o),n.hash=`${s}?${a.toString()}`,n.toString()}if(r.includes("=")||r.includes("&")){let s=new URLSearchParams(r);return s.set(Ke,o),n.hash=s.toString(),n.toString()}return n.hash=`${r}?${Ke}=${o}`,n.toString()}catch(n){return}},Nc=e=>{if(typeof window=="undefined")return!1;try{return new URL(e,window.location.href).origin===window.location.origin}catch(t){return!1}},Yt=e=>{let t=Mc(e);if(!t||(e==null?void 0:e.type)!==H.DisplayScheduler||!pt(e.schedulerUrl))return;let n=Qn(t);if(!n)return;let o=n.toString(),r=Tc(e);return Nc(o)&&Cc(r)?o:Oc(o,r)},Ii=()=>{var e;return(e=Rc())!=null?e:Pc()},je=()=>{Dc(),wi()};var Hc=S.module("SDK");function Uc(e,t){var a,l;let n=e?document.getElementById(e):null,o=n!=null?n:document.activeElement instanceof HTMLElement?document.activeElement.closest("form"):null;if(!o&&t){let u=Array.from(document.querySelectorAll("form"));if(u.length===1)o=(a=u[0])!=null?a:null;else if(u.length>1){let c=u.filter(d=>d.dataset.pixelFormId===t||d.getAttribute("data-pixel-form-id")===t||d.getAttribute("data-form-id")===t);c.length===1&&(o=(l=c[0])!=null?l:null)}}if(!o)return{};let r=Ue(o),i=w(o,"action"),s=w(o,"method");return k(y(y(y(y({},r?{form_name:r}:{}),i?{form_action:i}:{}),o.className?{form_class:o.className}:{}),s?{form_method:s}:{}),{form_instance_key:st(o)})}function Vc(e){var o;let t=(o=e==null?void 0:e.workflow)==null?void 0:o.handoff;if(!t||typeof t!="object")return;let n=t;if(n.type===H.DisplayScheduler&&typeof n.schedulerUrl=="string"&&n.schedulerUrl.length>0||n.type===H.Redirect&&typeof n.url=="string"&&n.url.length>0)return t}function Ai(e,t=!0){return E(this,null,function*(){var u,c,d;let{pixelFormId:n,formId:o,responses:r}=e;if(!n&&!o)return{success:!1,status:0,error:"pixelFormId or formId is required"};if(!r||Object.keys(r).length===0)return{success:!1,status:0,error:"responses must include at least one field"};let i=_e();if(!i)return{success:!1,status:0,error:"SDK not initialized \u2014 call DefaultPixelSDK.init() first"};let s=(c=(u=e.autoDisplayScheduler)!=null?u:t)!=null?c:!0,l=s===!0?pi((d=Ye())!=null?d:void 0):void 0;try{return yield Gc(e,i,s,l)}catch(f){throw l&&de(l),f}})}function Gc(e,t,n,o){return E(this,null,function*(){let{pixelFormId:r,formId:i,responses:s,metadata:a}=e,l={href:window.location.href,pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,referrer:document.referrer},u=Uc(i,r),c=k(y(y({responses:s,form_type:"html"},i?{form_id:i}:{}),u),{location:l,pixel_form_id:r}),[d,f]=yield Promise.all([to(c),no(c)]),m=k(y(y(k(y({},t),{responses:s}),r?{pixel_form_id:r}:{}),i?{form_id:i}:{}),{submission_source:"sdk",form_type:"html",location:l,metadata:y(y(y({},a!=null?a:{}),d?{preEnrichment:d}:{}),f?{crmPrematch:f}:{})}),g=yield wo(re.FORM_SUBMISSION,m,{preferSimpleRequest:!0});if(!g.success){let I=r!=null?r:i;return Hc.warn(`submitForm failed for ${I}: ${g.error}`),o&&de(o),{success:!1,status:g.status,error:g.error}}let p=g.body,h=Vc(p),b,v;if((h==null?void 0:h.type)===H.DisplayScheduler){let I=y({},o?{loadingModalLease:o}:{}),F=mt(h.schedulerUrl);b={url:F};let q=ht(h),Q=Yt(h);Q&&(ve(Q)?v={url:Q}:je()),!v&&n!==!1?zt(F,n,q,I):o&&de(o)}else(h==null?void 0:h.type)===H.Redirect?(ve(h.url)&&(v={url:h.url}),o&&de(o)):o&&de(o);return y(y({success:!0,status:g.status,workflow:p==null?void 0:p.workflow},b?{scheduler:b}:{}),v?{redirect:v}:{})})}var oo=!0;function xi(e){oo=e}function Mi(){return oo}function Ti(e){try{let t=new URL(e),n=new Set([t.origin]),o=t.hostname.toLowerCase();return o.startsWith("api.")&&n.add(`${t.protocol}//book.${o.slice(4)}`),[...n]}catch(t){return[]}}function Ae(e,t){return Y.subscribe(e,t)}function ki(e){return Ai(e,oo)}var Fi={onDisplayed:e=>Ae("displayed",e),onClosed:e=>Ae("closed",e),onMeetingBooked:e=>Ae("meeting_booked",e),onMeetingCancelled:e=>Ae("meeting_cancelled",e),onMeetingTimeout:e=>Ae("meeting_timeout",e),display:zt};var ro=S.module("Scheduler"),Ci="__DEFAULT_IFRAME__",Bc="__default_scheduler_close__",$c=":re:",zc="999998",Kt=(e,t,n={})=>{if(typeof document=="undefined")return!1;if(document.getElementById(Ci))return ro.debug("Scheduler iframe already present, skipping"),!0;let o=pt(e);if(!o)return ro.warn("Invalid scheduler URL, dismissing modal",e),V(),!1;let r=Be(n.target),i=document.createElement("iframe");o.pathname.startsWith("/book/")&&(o.pathname=o.pathname.replace("/book/","/embed/")),o.searchParams.set(T.EMBED,"true"),r&&o.searchParams.set(T.EMBED_LAYOUT,"inline"),i.src=o.toString(),i.id=Ci,i.height="100%",i.width="100%",i.style.border="none",i.style.top="0px",i.style.left="0px",r?($e(r),i.style.position="absolute"):(i.style.position="fixed",i.style.zIndex=zc),i.style.background="transparent",i.style.visibility="hidden",i.setAttribute("allow","clipboard-write; payment"),Y.addAllowedOrigin(o.origin);let s=!1,a=!1,l=null,u=()=>{s||a||(a=!0,i.style.visibility="visible",V())},c=ft(i,o.toString(),t),d=()=>{requestAnimationFrame(()=>requestAnimationFrame(u))};function f(){s||(s=!0,c(),i.removeEventListener("load",d),i.removeEventListener("error",m),l==null||l(),window.removeEventListener("message",g),document.removeEventListener("keydown",p),i.remove(),V())}function m(){ro.warn("Scheduler iframe failed to load"),f()}let g=h=>{if(h.origin!==o.origin)return;let b=at(h.data);if((b==null?void 0:b.type)==="displayed"){requestAnimationFrame(()=>requestAnimationFrame(u));return}if(typeof h.data!="string")return;let[v,I]=h.data.split($c);if(v!==Bc)return;f();let F=I&&I!=="null"?I:null;F&&ve(F)},p=h=>{h.key==="Escape"&&f()};return i.addEventListener("load",d),i.addEventListener("error",m),l=Y.subscribe("closed",()=>f()),window.addEventListener("message",g),document.addEventListener("keydown",p),(r!=null?r:document.body).appendChild(i),!0};var Ee=S.module("Form"),Di=!0,Xt=new Map,Zt=new Map,jt=new Map,Wc=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function io(e){var n,o,r,i,s,a;let t=e.form_id||e.form_name||null;return t?`form:${t}`:e.pixel_form_id?`pixel:${e.pixel_form_id}`:["path",(n=e.location.pathname)!=null?n:"",(o=e.form_type)!=null?o:"",(r=e.form_action)!=null?r:"",(i=e.form_class)!=null?i:"",(s=e.form_method)!=null?s:"",(a=e.form_instance_key)!=null?a:""].join("|")}function Yc(e){var n;let t=(n=Xt.get(e))!=null?n:null;return Xt.delete(e),t}function Kc(e){var n;let t=(n=Zt.get(e))!=null?n:null;return Zt.delete(e),t}function jc(e,t){let n=Xt.get(e);n!=null&&n.triggered&&!t.triggered||Xt.set(e,t)}function Xc(e,t){let n=Zt.get(e);n!=null&&n.triggered&&!t.triggered||Zt.set(e,t)}function so(e){return e.trim().toLowerCase()}var Zc=["email","Email","work_email","Work_email","workEmail","WorkEmail"];function Ri(e){if(typeof e!="string")return null;let t=so(e);return Wc.test(t)?t:null}function Pi(e){for(let t of Zc){let n=Ri(e[t]);if(n)return n}for(let[t,n]of Object.entries(e)){if(!t.toLowerCase().includes("email"))continue;let o=Ri(n);if(o)return o}return null}var Oi=e=>E(null,null,function*(){let t=jt.get(e);if(t)try{yield t}catch(n){}});function to(e){return E(this,null,function*(){let t=io(e);return yield Oi(t),Jc(Yc(t),e)})}function no(e){return E(this,null,function*(){let t=io(e);return yield Oi(t),qc(Kc(t),e)})}function Jc(e,t){if(!e)return null;if(!e.email)return e;let n=Pi(t.responses);return!n||so(e.email)!==n?null:e}function qc(e,t){if(!e)return null;if(!e.email)return e;let n=Pi(t.responses);return!n||so(e.email)!==n?null:e}function Ni(){return Di}function G(){return _o()}function me(n){return E(this,arguments,function*(e,{schedulerEnabled:t=!0}={}){var p,h;if(!G()){Ee.debug("Capture disabled, skipping form submission");return}let o=_e();if(!o){Ee.warn("Cannot send form submission: missing context");return}let r=Mi(),i=r&&typeof r=="object"?r.target:void 0,s=t&&!(r&&typeof r=="object"&&r.loader===!1),a=Ye();s&&(i?Se(a!=null?a:void 0,{target:i}):Se(a!=null?a:void 0));let l=yield to(e),u=yield no(e),g=e,{form_instance_key:c}=g,d=nn(g,["form_instance_key"]),f=k(y(y({},d),o),{metadata:y(y(y({},(p=d.metadata)!=null?p:{}),l?{preEnrichment:l}:{}),u?{crmPrematch:u}:{})}),m=e.form_id||e.form_name||"unknown";Ee.debug(`Sending form submission: ${m}`);try{let b=yield xo(f),v=(h=b==null?void 0:b.workflow)==null?void 0:h.handoff;if((v==null?void 0:v.type)===H.DisplayScheduler&&v.schedulerUrl){Ee.sent("form submission",{formId:m,type:e.form_type,schedulerUrl:v.schedulerUrl});let I=Yt(v);if(I){if(ve(I)){V();return}je()}Kt(v.schedulerUrl,ht(v),i?{target:i}:{});return}if((v==null?void 0:v.type)===H.Redirect&&v.url&&(Ee.sent("form submission",{formId:m,type:e.form_type,redirect:v.url}),ve(v.url))){V();return}b!=null&&b.success&&Ee.sent("form submission",{formId:m,type:e.form_type}),V()}catch(b){Ee.warn("Form submission threw",b),V()}})}function Hi(e){return E(this,null,function*(){if(!G()||!Di)return;let t=_e();if(!t){Ee.warn("Cannot send form interaction: missing context");return}let a=e,{form_instance_key:n}=a,o=nn(a,["form_instance_key"]),r=y(y({},o),t),i=io(e),s=E(null,null,function*(){let l=yield Mo(r);l!=null&&l.preEnrichment&&jc(i,l.preEnrichment),l!=null&&l.crmPrematch&&Xc(i,l.crmPrematch)});jt.set(i,s);try{yield s}finally{jt.get(i)===s&&jt.delete(i)}})}var Ui=new Set,Vi=e=>{Ui=new Set(e)},Jt=e=>{let t=w(e,"id");return t!==""&&Ui.has(t)};var Qc=S.module("Listener"),J=class extends D{constructor(){super(...arguments);this.log=Qc}ensureNotInitialized(){return this.isInitialized?(this.log.debug(`${this.getName()} already initialized, skipping`),!1):!0}markInitialized(){super.markInitialized(),this.log.success(`${this.getName()} listeners attached`)}cleanup(){}reset(){this.isInitialized&&this.cleanup(),super.reset()}};var ao=class e extends J{constructor(){super(...arguments);this.initializedDocuments=new WeakSet;this.documentHandlers=new Map}static getInstance(){return e.instance||(e.instance=new e),e.instance}getName(){return"HTML"}cleanup(){this.documentHandlers.forEach((n,o)=>{o.removeEventListener("submit",n.submitHandler,{capture:!0}),n.interactionHandlers.forEach((r,i)=>{o.removeEventListener(i,r)})}),this.documentHandlers.clear(),this.initializedDocuments=new WeakSet}init(n=document){if(this.initializedDocuments.has(n)){this.log.debug(`${this.getName()} already initialized for this document, skipping`);return}let o=this.onSubmit.bind(this);n.addEventListener("submit",o,{capture:!0});let r=this.setupFormInteractionListeners(n);this.documentHandlers.set(n,{submitHandler:o,interactionHandlers:r}),this.initializedDocuments.add(n),this.isInitialized||this.markInitialized()}onSubmit(n){if(!G())return;let o=n.target;if(Ft(o)){this.log.debug("Skipping HubSpot form (handled by HubSpot listener)");return}if(Ct(o)){this.log.debug("Skipping Marketo form (handled by Marketo listener)");return}if(kt(o)){this.log.debug("Skipping Pardot form (handled by Pardot listener)");return}if(Rt(o)){this.log.debug("Skipping Meta Pixel beacon form");return}if(it(o)){this.log.debug("Skipping form (ignored by configuration)");return}let r=Jt(o);r&&(n.preventDefault(),this.log.debug(`Intercepted scheduler-enabled form: ${w(o,"id")}`));let i=w(o,"id")||o.getAttribute("name")||"unnamed";this.log.found(`HTML form submission: ${i}`);let s=new FormData(o),a=Array.from(s.keys()).length;this.log.debug(`Form has ${a} fields`);let l=Wr(o,s);me(l,{schedulerEnabled:r}),this.log.sent("HTML form submission",{formId:i,fieldCount:a})}setupFormInteractionListeners(n){let o=["focus","focusout","change","paste","copy"],r=new Map;return o.forEach(i=>{let s=a=>{this.onInteraction(a,i)};r.set(i,s),n.addEventListener(i,s,{passive:!0})}),this.log.debug("Form interaction listeners attached"),r}onInteraction(n,o){if(!G()||!Ni())return;let r=n.target;if(!Hr(r))return;let i=r.closest("form");if(!(!i||it(i))&&Ur(o)){let s=r,a=(s.name||s.id||"").toLowerCase(),l=s instanceof HTMLInputElement&&(s.type||"").toLowerCase()==="email"||a.includes("email");if(o==="change"&&l)return;let u=s.name||s.id||"unnamed",c=w(i,"id")||i.getAttribute("name")||"unnamed";this.log.debug(`Form interaction: ${o} on ${u} in ${c}`);let d=Zr(i,s,o);Hi(d)}}},qt=ao.getInstance();var lo=class e extends J{constructor(){super(...arguments);this.isPlatformAvailable=!1;this.isV4PlatformAvailable=!1;this.readyV4Handler=null;this.readyMessageHandler=null;this.submissionMessageHandler=null;this.v4SubmissionHandler=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}getName(){return"HubSpot"}init(){this.ensureNotInitialized()&&(this.setupReadyListeners(),this.setupSubmissionListeners(),this.setupV4Listeners(),this.markInitialized())}cleanup(){this.readyV4Handler&&(window.removeEventListener("hs-form-event:on-ready",this.readyV4Handler),this.readyV4Handler=null),this.readyMessageHandler&&(window.removeEventListener("message",this.readyMessageHandler),this.readyMessageHandler=null),this.submissionMessageHandler&&(window.removeEventListener("message",this.submissionMessageHandler),this.submissionMessageHandler=null),this.v4SubmissionHandler&&(window.removeEventListener("hs-form-event:on-submission:success",this.v4SubmissionHandler),this.v4SubmissionHandler=null),this.isPlatformAvailable=!1,this.isV4PlatformAvailable=!1}setupReadyListeners(){this.readyV4Handler=()=>{try{this.isV4PlatformAvailable=!0,this.log.found("HubSpot V4 platform")}catch(n){this.log.error("Error in HubSpot V4 ready listener",n)}},window.addEventListener("hs-form-event:on-ready",this.readyV4Handler),this.readyMessageHandler=n=>{try{n.data.type==="hsFormCallback"&&n.data.eventName==="onFormReady"&&(this.isPlatformAvailable=!0,this.log.found("HubSpot platform"))}catch(o){this.log.error("Error in HubSpot ready listener",o)}},window.addEventListener("message",this.readyMessageHandler),this.log.debug("HubSpot ready listeners attached")}setupSubmissionListeners(){this.submissionMessageHandler=n=>{var o,r,i;try{if(!G())return;if(n.data.type==="hsFormCallback"&&n.data.eventName==="onFormSubmitted"&&(o=n==null?void 0:n.data)!=null&&o.id&&(i=(r=n==null?void 0:n.data)==null?void 0:r.data)!=null&&i.submissionValues){let s=n.data.id;this.log.found(`HubSpot form submission: ${s}`);let a=Yr({conversionId:n.data.data.conversionId,formId:s},n.data.data.submissionValues);me(a).catch(l=>{this.log.warn("Error sending HubSpot form submission",l)}),this.log.sent("HubSpot form submission",{formId:s})}}catch(s){this.log.warn("Error processing HubSpot form submission",s)}},window.addEventListener("message",this.submissionMessageHandler)}setupV4Listeners(){this.v4SubmissionHandler=n=>E(this,null,function*(){var o;try{if(!G())return;let r=n,i=(o=window.HubSpotFormsV4)==null?void 0:o.getFormFromEvent(r);if(!i){this.log.warn("Could not get form from HubSpot V4 event");return}let s=i.getFormId();this.log.found(`HubSpot V4 form submission: ${s}`);let a=yield i.getFormFieldValues();if(!a||(a==null?void 0:a.length)===0){this.log.warn("Could not get form field values from HubSpot V4");return}let l=a.length;this.log.debug(`Form has ${l} fields`);let u=Kr(s,a);me(u).catch(c=>{this.log.warn("Error sending HubSpot V4 form submission",c)}),this.log.sent("HubSpot V4 form submission",{formId:s,fieldCount:l})}catch(r){this.log.warn("Error processing HubSpot V4 form submission",r)}}),window.addEventListener("hs-form-event:on-submission:success",this.v4SubmissionHandler)}isReady(){return this.isInitialized&&(this.isPlatformAvailable||this.isV4PlatformAvailable)}},Gi=lo.getInstance();var co=class e extends J{constructor(){super(...arguments);this.isPlatformAvailable=!1}static getInstance(){return e.instance||(e.instance=new e),e.instance}getName(){return"Marketo"}init(){this.ensureNotInitialized()&&(window.MktoForms2?(this.isPlatformAvailable=!0,this.log.found("Marketo platform"),window.MktoForms2.whenReady(n=>{if(G())try{let o=n.getFormElem()[0],r=o.id||"unnamed";this.log.debug(`Marketo form ready: ${r}`),n.onSuccess(i=>{this.log.found(`Marketo form submission: ${r}`);let s=Object.keys(i).length;this.log.debug(`Form has ${s} fields`);let a=jr(r,i);if(me(a),this.log.sent("Marketo form submission",{formId:r,fieldCount:s}),Jt(o))return this.log.debug(`Blocked Marketo follow-up URL for scheduler form: ${r}`),!1})}catch(o){this.log.error("Error setting up Marketo form",o)}}),this.markInitialized()):this.log.debug("Marketo not detected on page"))}cleanup(){this.isPlatformAvailable=!1}isReady(){return this.isInitialized&&this.isPlatformAvailable}},yt=co.getInstance();var ed="input, textarea, select",td=["type","name","placeholder","required","aria-label","aria-labelledby","for","id","value"],uo={childList:!0,subtree:!0,attributes:!0,attributeFilter:[...td],attributeOldValue:!0,characterData:!0};function zi(e){let t=e.tagName;return t==="INPUT"||t==="TEXTAREA"||t==="SELECT"}function Bi(e){if(!z(e))return!1;let t=e,n=t.tagName;return zi(t)||n==="OPTION"||n==="LABEL"||n==="LEGEND"?!0:t.querySelector(`${ed}, option, label, legend`)!==null}function nd(e,t){if(t==="value")return e.tagName==="OPTION";let n=e.tagName;return zi(e)||n==="LABEL"||n==="OPTION"}function $i(e){return e.closest("label, option, legend")!==null}var Wi=new Set(["root","__next","__nuxt","app","application"]);function od(e){return typeof CSS!="undefined"&&typeof CSS.escape=="function"?CSS.escape(e):e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function rd(e){let t=n=>{if(!n)return!1;for(let o=0;o<n.length;o++){let r=n[o];if(r.nodeType===Node.TEXT_NODE||r.nodeType===Node.ELEMENT_NODE)return!0}return!1};return t(e.addedNodes)||t(e.removedNodes)}function id(e){let t=e.ownerDocument;if(e===t.documentElement||e===t.body)return!1;let n=e.id;return!(!n||Wi.has(n)||e.querySelector("form"))}function sd(e){if(!z(e))return[];let t=e,n=[];return t.id&&n.push(t.id),t.querySelectorAll("[id]").forEach(o=>{o.id&&n.push(o.id)}),n}var mo=class e extends J{constructor(){super(...arguments);this.observer=null;this.domContentLoadedHandler=null;this.observedFrameDocuments=new WeakSet;this.navigationWatchedFrames=new WeakSet}static getInstance(){return e.instance||(e.instance=new e),e.instance}getName(){return"Mutation"}init(){this.ensureNotInitialized()&&(this.observer=new MutationObserver(n=>{var u;if(!G())return;let o=new Set,r=!1,i=c=>{if(!c)return;if(c.tagName==="FORM"){o.add(c);return}let d=c.closest("form");d&&o.add(d)},s=(c,d)=>{!d||Wi.has(d)||c.querySelectorAll(`[aria-labelledby~="${od(d)}"]`).forEach(f=>{i(f)})},a=c=>{if(!c)return;let d=c.id?c:c.closest("[id]");!d||!id(d)||s(d.ownerDocument,d.id)},l=c=>{let d=Rr(c);for(let f of sd(c))s(d,f)};for(let c of n){if(c.type==="attributes"){if(!z(c.target))continue;if(nd(c.target,c.attributeName)&&i(c.target),c.attributeName==="id"){let d=c.target.ownerDocument;s(d,c.oldValue),s(d,c.target.id||null)}continue}if(c.type==="characterData"){let d=kr(c.target)?c.target.parentElement:null;d!=null&&d.closest("label, option, legend")&&i(d),a(d);continue}c.type==="childList"&&(z(c.target)&&$i(c.target)&&i(c.target),z(c.target)&&($i(c.target)||rd(c))&&a(c.target),c.addedNodes.forEach(d=>{if(!z(d))return;let f=d;(Cr(f)||f.querySelector("iframe"))&&(r=!0),f.tagName==="FORM"&&o.add(f),f.querySelectorAll("form").forEach(m=>{o.add(m)}),Bi(d)&&z(c.target)&&i(c.target),l(d)}),(u=c.removedNodes)==null||u.forEach(d=>{Bi(d)&&z(c.target)&&i(c.target),l(d)}))}r&&this.attachToFrames(),o.forEach(c=>{Ve.onFormDomChanged(c)}),window.MktoForms2&&!yt.initialized&&(this.log.debug("Marketo detected via mutation, setting up listeners"),yt.init())}),this.observe(),this.attachToFrames(),this.markInitialized())}attachToFrames(n=document){In(n,o=>{this.attachToFrameElement(o)})}attachToFrameElement(n){let o=wn(n);if(o){this.attachToFrame(n,o);return}this.watchFrameNavigation(n)}attachToFrame(n,o){qt.init(o),this.watchFrameNavigation(n),this.observeFrameDocument(o)&&(this.log.debug("Observing frame document for form catalog changes"),Ve.onFrameAttached())}observeFrameDocument(n){return!this.observer||this.observedFrameDocuments.has(n)?!1:(this.observedFrameDocuments.add(n),this.observer.observe(n,uo),!0)}watchFrameNavigation(n){this.navigationWatchedFrames.has(n)||(this.navigationWatchedFrames.add(n),n.addEventListener("load",()=>{this.attachToFrames()}))}observe(){if(!this.observer)return;let n=document.documentElement;n&&(document.readyState==="loading"?this.domContentLoadedHandler||(this.domContentLoadedHandler=()=>{var o;(o=this.observer)==null||o.observe(n,uo),this.domContentLoadedHandler&&(document.removeEventListener("DOMContentLoaded",this.domContentLoadedHandler),this.domContentLoadedHandler=null)},document.addEventListener("DOMContentLoaded",this.domContentLoadedHandler)):this.observer.observe(n,uo))}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.domContentLoadedHandler&&(document.removeEventListener("DOMContentLoaded",this.domContentLoadedHandler),this.domContentLoadedHandler=null)}cleanup(){this.disconnect(),this.observedFrameDocuments=new WeakSet,this.navigationWatchedFrames=new WeakSet}},fo=mo.getInstance();var po=class e extends J{constructor(){super(...arguments);this.messageHandler=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}getName(){return"Paperform"}init(){this.ensureNotInitialized()&&(this.messageHandler=n=>{var o,r,i;if(G()&&typeof n.data=="string"&&(o=n==null?void 0:n.data)!=null&&o.includes("paperform:")&&(r=n==null?void 0:n.data)!=null&&r.includes("submission_id")&&(i=n==null?void 0:n.data)!=null&&i.includes('"action":"submission"')){try{let s=JSON.parse(n.data.slice(10)),a=(s==null?void 0:s.id)||(s==null?void 0:s.embed_id)||"unnamed";this.log.found(`Paperform submission: ${a}`);let l=Xr(s);me(l),this.log.sent("Paperform submission",{formId:a})}catch(s){this.log.warn("Error processing Paperform submission",s)}return}},window.addEventListener("message",this.messageHandler),this.markInitialized())}cleanup(){this.messageHandler&&(window.removeEventListener("message",this.messageHandler),this.messageHandler=null)}},Yi=po.getInstance();var go=S.module("Lifecycle"),ho=class e{constructor(){this.isInitialized=!1;this.isSetupInProgress=!1;this.readystatechangeHandler=null;this.domContentLoadedHandler=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}setup(t){if(this.isInitialized){go.debug("Already initialized, skipping");return}if(this.isSetupInProgress){go.debug("Setup already in progress, skipping");return}this.isSetupInProgress=!0;let n=()=>{if(this.isInitialized)return;this.isInitialized=!0;let o=t();o instanceof Promise&&o.catch(r=>{go.error("Initialization failed",r)}),this.cleanup()};document.readyState==="complete"?n():(this.readystatechangeHandler=()=>{document.readyState==="complete"&&n()},document.addEventListener("readystatechange",this.readystatechangeHandler),this.domContentLoadedHandler=()=>{n()},document.addEventListener("DOMContentLoaded",this.domContentLoadedHandler))}cleanup(){this.readystatechangeHandler&&(document.removeEventListener("readystatechange",this.readystatechangeHandler),this.readystatechangeHandler=null),this.domContentLoadedHandler&&(document.removeEventListener("DOMContentLoaded",this.domContentLoadedHandler),this.domContentLoadedHandler=null)}reset(){this.cleanup(),this.isInitialized=!1,this.isSetupInProgress=!1}},Ki=ho.getInstance();function ji(e,t=50){let n;return()=>{n&&clearTimeout(n),n=window.setTimeout(()=>e(),t)}}var yo=class e extends D{constructor(){super(...arguments);this.originalPushState=null;this.originalReplaceState=null;this.debouncedCallback=null;this.popstateHandler=null;this.hashchangeHandler=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}setup(n){this.ensureNotInitialized()&&(this.markInitialized(),this.originalPushState=window.history.pushState,this.originalReplaceState=window.history.replaceState,this.debouncedCallback=ji(n,50),window.history.pushState=((...o)=>{var i;let r=this.originalPushState.apply(window.history,o);return(i=this.debouncedCallback)==null||i.call(this),r}),window.history.replaceState=((...o)=>{var i;let r=this.originalReplaceState.apply(window.history,o);return(i=this.debouncedCallback)==null||i.call(this),r}),this.popstateHandler=()=>{var o;(o=this.debouncedCallback)==null||o.call(this)},this.hashchangeHandler=()=>{var o;(o=this.debouncedCallback)==null||o.call(this)},window.addEventListener("popstate",this.popstateHandler),window.addEventListener("hashchange",this.hashchangeHandler))}reset(){this.initialized&&(this.originalPushState&&(window.history.pushState=this.originalPushState),this.originalReplaceState&&(window.history.replaceState=this.originalReplaceState),this.popstateHandler&&window.removeEventListener("popstate",this.popstateHandler),this.hashchangeHandler&&window.removeEventListener("hashchange",this.hashchangeHandler)),super.reset(),this.originalPushState=null,this.originalReplaceState=null,this.debouncedCallback=null,this.popstateHandler=null,this.hashchangeHandler=null}},ad=yo.getInstance();function Xi(e){ad.setup(e)}var Le=S.module("Session"),Zi="__dflt_lc";function Ji(){return window[Zi]===!0}function qi(e){window[Zi]=e}var xe=null,Me=null;function Qi(){if(Ji()){Le.debug("Lifecycle listeners already attached, skipping");return}(xe||Me)&&(Le.debug("Removing existing lifecycle listeners before re-attaching"),dd()),xe=ld,Me=cd,window.addEventListener("pagehide",xe),document.addEventListener("visibilitychange",Me),qi(!0),Le.debug("Lifecycle listeners attached")}function ld(e){e.persisted?(Le.debug("Page going to bfcache (back/forward) - updating activity"),Z.updateActivity()):(Le.debug("Page unload detected - sending session end beacon (session continues if refreshed)"),Z.sendSessionEndWithoutClearing("page_unload"))}function cd(){document.visibilityState==="hidden"?(Z.updateActivity(),Le.debug("Visibility hidden - activity updated")):document.visibilityState==="visible"&&(Z.touch(),Le.debug("Visibility visible - session touched"))}function dd(){!Ji()&&!xe&&!Me||(xe&&(window.removeEventListener("pagehide",xe),xe=null),Me&&(document.removeEventListener("visibilitychange",Me),Me=null),qi(!1),Le.debug("Lifecycle listeners removed"))}var Te=S.module("Pageview"),So=class e extends D{constructor(){super(...arguments);this.lastTrackedUrl=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){if(!this.ensureNotInitialized()){Te.debug("Already initialized, skipping");return}this.markInitialized(),Te.success("Pageview tracker initialized")}trackPageview(){let n=C.get();if(!this.initialized||!n){Te.warn("Cannot track pageview: not initialized or missing config");return}if(!j()){Te.debug("Analytics consent withheld, skipping pageview");return}let o=window.location.href;if(this.lastTrackedUrl===o){Te.debug("Skipping duplicate pageview for same URL");return}this.lastTrackedUrl=o;let{isNewSession:r,sessionId:i}=Z.touch(),s=new URL(o).pathname;Te.debug(`Tracking pageview: ${s}`,{isNewSession:r,hasReferrer:!!document.referrer});let a=Oe(),l=k(y({publicKey:n.publicKey,anonymousId:X.getAnonymousId(),sessionId:i,pageUrl:o,referrer:document.referrer,utmParams:Ne()},a&&{gclid:a}),{userAgent:navigator.userAgent,ts:Date.now(),isNewSession:r});Ao(l),Te.sent("pageview",{path:s,isNewSession:r})}resetLastTrackedUrl(){this.lastTrackedUrl=null}reset(){super.reset(),this.lastTrackedUrl=null}onRouteChange(){this.resetLastTrackedUrl(),this.trackPageview()}},Qt=So.getInstance();var bo={color:"rgba(0, 0, 0, 0.15)",blur:"blur(8px)"};var ud=e=>{var i;let t=(i=e.match(/^#([\da-f]{6})$/i))==null?void 0:i[1];if(!t)return!1;let n=Number.parseInt(t.slice(0,2),16),o=Number.parseInt(t.slice(2,4),16),r=Number.parseInt(t.slice(4,6),16);return(n*299+o*587+r*114)/1e3<128},md=e=>e.loadingModalTextColor||(ud(e.backgroundColor)?"#fafafa":se[M.fg]),fd=e=>{var t;switch(e.loadingModalBackground){case"page":return{overlay:(t=e.backgroundColor)!=null?t:se[M.overlay],overlayBlur:"none"};case"none":return{overlay:"transparent",overlayBlur:"none"};case"blurred":return{overlay:bo.color,overlayBlur:bo.blur};case void 0:return{overlay:se[M.overlay],overlayBlur:se[M.overlayBlur]}}},es=(e,t)=>{var r;if(!e)return{theme:y({},se),logoUrl:t};let{overlay:n,overlayBlur:o}=fd(e);return{theme:k(y({},se),{[M.bg]:(r=e.backgroundColor)!=null?r:se[M.bg],[M.fg]:md(e),[M.overlay]:n,[M.overlayBlur]:o}),logoUrl:e.loadingModalUseBrandLogo===!1?null:t}};var os="data-default-preconnect",pd=e=>{try{return new URL(e).origin}catch(t){return null}},ts=(e,t)=>!!document.head.querySelector(`link[${os}="1"][rel="${t}"][href="${e}"]`),ns=(e,t)=>{let n=document.createElement("link");n.rel=t,n.href=e,n.setAttribute(os,"1"),t==="preconnect"&&(n.crossOrigin="anonymous"),document.head.appendChild(n)},rs=e=>{if(typeof document=="undefined")return;let t=new Set;for(let n of e){if(!n)continue;let o=pd(n);!o||t.has(o)||(t.add(o),ts(o,"dns-prefetch")||ns(o,"dns-prefetch"),ts(o,"preconnect")||ns(o,"preconnect"))}};(function(e){if(e.__dft_loaded){S.debug("Already loaded on this page, skipping duplicate script execution");return}e.__dft_loaded=!0;let t,n=!1,o=!1,r=null;function i(g){try{let p=new URL(g);return p.hostname.toLowerCase().startsWith("api.")?`${p.protocol}//book.${p.hostname.slice(4)}`:null}catch(p){return null}}function s(){if(!pe()){S.debug("Capture disabled, skipping form listener setup");return}n||(qt.init(),Gi.init(),yt.init(),Yi.init(),fo.init(),n=!0),fo.attachToFrames()}function a(g){return E(this,null,function*(){var F,q;if(o){S.debug("Already initialized, skipping");return}o=!0;let h=g||"https://api.default.com",b=(F=e.__defaultPixel__)==null?void 0:F.key;if(!b){S.warn("No public key found. Please ensure the script is properly installed with a key.");return}t={publicKey:b,endpoint:h},C.initialize(t),lr(()=>ne.getConsent().analytics),ne.init(),_r(()=>({anonymousId:X.getAnonymousId(),sessionId:Z.getSessionId()})),f(),d(),rs([h,"https://book.default.com",i(h)]);let v=e.__defaultPixel__,I=(q=v==null?void 0:v.schedulerOrigins)!=null?q:Ti(h);Y.setAllowedOrigins(I),(v==null?void 0:v.autoDisplayScheduler)!==void 0&&xi(v.autoDisplayScheduler),c(),m(),Xi(()=>{if(c(),!!pe()){if(!r){l();return}r.then(()=>{s(),Qt.onRouteChange(),Ve.onRouteChange(),Mt.init()})}}),pe()&&(yield l())})}function l(){return r||(r=u()),r}function u(){return E(this,null,function*(){yield X.init(),Z.init(),Qt.init(),Qt.trackPageview(),Mt.init(),ko().then(({schedulerStyle:g,logoUrl:p,schedulerFormIds:h})=>{Vi(h);let b=es(g,p);vi(b);let v=$t();v&&(Gt(v,b.theme),Bt(v,b.logoUrl))}).catch(g=>{S.warn("Failed to apply scheduler theme, modal will use default theme",g)}),Qi(),s(),Ve.init()})}function c(){Lo(pe())}function d(){let g=ne.getConsent().marketing;ne.onChange(p=>{let h=!g&&p.marketing;g=p.marketing,!(!h||!r||!pe())&&r.then(()=>{ne.getConsent().marketing&&Mt.init()})})}function f(){var h;let g=e.__defaultPixel__;if(!g)return;let p=(h=g.q)!=null?h:[];for(let[b,v]of p)b==="setConsent"&&ne.setConsent(v);g.q=[],g.setConsent=b=>ne.setConsent(b)}function m(){var p;let g=Ii();g&&(Se((p=Ye())!=null?p:void 0),Kt(g.schedulerUrl,g.handoffConfig)&&je())}Ki.setup(a)})(window);return us(gd);})();
