@solomei-ai/intent 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * © 2025 Solomei AI SRL. Proprietary and confidential.
3
3
  */
4
- import t from"html2canvas-pro";function e(t,n){const o=a();return(e=function(t,e){return o[t-=157]})(t,n)}async function n(){const t=e,n=[];if(function(t){const n=e;return n(251)in t&&void 0!==t[n(251)]}(navigator)){const e=navigator[t(251)];e?.[t(267)]&&n[t(218)](e[t(267)]),typeof e?.downlink===t(232)&&n.push(e.downlink+t(226)),typeof e?.[t(259)]===t(232)&&n[t(218)](e[t(259)]+t(240)),e?.saveData&&n.push("saveData")}const o=await async function(t,n=3e3,o=8,a=150){const i=e;if(!("fetch"in window)||!(i(185)in window))return;const r=performance[i(260)]();let c,s=0;await Promise.all(Array[i(188)]({length:o},async()=>{const e=i;for(;performance.now()-r<n+a;){const o=new AbortController,i=(t[e(248)]("?")?"&":"?")+e(241)+Math[e(279)]()[e(158)](36)[e(203)](2);try{const d=await fetch(t+i,{cache:e(184),signal:o.signal,mode:e(275)}),l=d[e(229)]?.getReader();if(!l)break;for(;;){const t=performance[e(260)]();if(t-r>=n+a){o.abort();break}const{done:i,value:d}=await l[e(196)]();if(i)break;c??=t,t-(c??t)>=a&&(s+=d[e(262)])}}catch{}}}));const d=(c??r)+a,l=Math[i(268)](1,performance.now()-d),u=8*s/(l/1e3)/1e6;return Number[i(228)](u)&&u>0?u:void 0}(t(238),3e3,8,150),a=performance.getEntriesByType("navigation")[t(269)](e=>e[t(250)]===t(208));let i;if(a){const e=Math.max(0,a[t(169)]-a.requestStart);i=t(195)+Math[t(231)](e)+t(240)}const r=[];if(typeof o===t(232)&&r[t(218)]("~"+o[t(217)](1)+" Mbps"),i&&r[t(218)](i),n[t(164)]&&r.push("hint: "+n[t(180)](", ")),r[t(164)])return t(162)+r[t(180)](", ")+t(187)}function o(){const t=e;if(!function(t){const n=e;return n(212)in t&&typeof t[n(212)]!==n(234)}(navigator))return;const n=navigator[t(212)],o=Array[t(200)](n[t(214)])?n[t(214)][t(176)](e=>e[t(249)]+" "+e[t(237)]).join(", "):void 0,a=n[t(166)]?""+n[t(166)]+(n[t(182)]?t(242):""):void 0;return[o&&t(199)+o,a&&t(245)+a][t(274)](Boolean)[t(180)](t(198))||void 0}function a(){const t=["128691lURcMQ","5LXbyso","version","/speedtest.bin","userAgent"," ms","cb="," (mobile)","2EuIUCD","x (avail ","Platform: ","Language: ","(pointer: fine)","includes","brand","entryType","connection","coarse","deviceorientation","Referrer: ","Pointer/Touch: ","availHeight","abs","yes","rtt","now","22770924IAdpdc","byteLength"," (β ","CPU: ","CookiesEnabled: ","DateTimeFormat","effectiveType","max","find","235252oOqtvv","removeEventListener","charging","593262moJMBE","filter","cors","cookieEnabled","n/a","getTimezoneOffset","random","intent:geo","toString","onLine","controller","devicePixelRatio","Network: ","790MRSgaq","length","-bit)","platform","(display-mode: standalone)","not charging","responseStart",", maxTouchPoints ","11539418unFCCH","Screen: ","colorDepth","4EGGnMy","Tilt: ","map","Online: ","User agent: "," cores","join","getBattery","mobile","maxTouchPoints","no-store","ReadableStream","orientation"," (active test)","from","language","Battery: ","°, γ ","enabled","hardwareConcurrency","8777058mohxyK","TTFB ~","read","languages"," | ","UA brands: ","isArray",", orientation ","serviceWorker","slice","upright","Viewport: ","Languages: ","Device geolocation: disabled","navigation","32wlTCdI","gamma","Timezone: ","userAgentData","1590477BUCPNJ","brands","floor","availWidth","toFixed","push","function","beta","matches","height","padStart","DeviceOrientationEvent","type"," Mbps","SW-controlled","isFinite","body","getItem","round","number","reclined","undefined"];return(a=function(){return t})()}async function i(t=400){if(e(224)in window&&window.isSecureContext)return new Promise(n=>{let o=!1;const a=t=>{const i=e,r=typeof t[i(220)]===i(232)?t[i(220)]:void 0,c=typeof t[i(210)]===i(232)?t[i(210)]:void 0;if(void 0===r||void 0===c)return;if(o)return;o=!0,window[i(271)]("deviceorientation",a);const s=function(t,n){const o=e,a=Math[o(257)](t),i=Math[o(257)](n);return a<15&&i<15?"flat":o(a>=60?204:233)}(r,c);n(i(175)+s+i(263)+Math[i(231)](r)+i(191)+Math[i(231)](c)+"°)")};window.setTimeout(()=>{const t=e;o||(o=!0,window[t(271)](t(253),a),n(void 0))},t),window.addEventListener("deviceorientation",a,{passive:!0})})}async function r(){const t=e;if(function(t){const n=e;return n(181)in t&&typeof t[n(181)]===n(219)}(navigator))try{const e=await navigator.getBattery(),n=Math[t(231)](100*e.level),o=[(Number.isFinite(n)?n:0)+"%",e[t(272)]?"charging":t(168)];return t(190)+o.join(", ")}catch{return}}async function c(){const t=e,a=(new(Intl[t(266)])).resolvedOptions().timeZone,c=function(t){const n=e,o=t<=0?"+":"-",a=Math[n(257)](t);return""+o+String(Math[n(215)](a/60))[n(223)](2,"0")+":"+String(a%60).padStart(2,"0")}((new Date)[t(278)]()),s=[];s[t(218)](t(246)+navigator[t(189)]),navigator[t(197)]?.[t(164)]&&s[t(218)](t(206)+navigator[t(197)].join(", ")),s[t(218)](t(178)+navigator[t(239)]);const d=o();d&&s[t(218)](d),s[t(218)](t(211)+a+" (UTC"+c+")"),s[t(218)]("Local time: "+(new Date).toString());const l=window[t(161)]||1;s[t(218)](t(172)+screen.width+"x"+screen[t(222)]+" @"+l+t(244)+screen[t(216)]+"x"+screen[t(256)]+", "+screen[t(173)]+t(165));const u=screen.orientation&&"type"in screen.orientation?screen[t(186)][t(225)]:void 0;s[t(218)](t(205)+window.innerWidth+"x"+window.innerHeight+(u?t(201)+u:"")),s[t(218)](t(264)+navigator[t(193)]+t(179));const f=await n();f&&s.push(f),s.push(function(){const t=e,n=typeof matchMedia===t(219)&&matchMedia("(pointer: coarse)")[t(221)],o="function"==typeof matchMedia&&matchMedia(t(247)).matches,a=n?t(252):o?"fine":"unknown",i=typeof navigator[t(183)]===t(232)?navigator.maxTouchPoints:0;return t(255)+a+t(170)+i}());const m=await r();m&&s[t(218)](m),s[t(218)](t(265)+(navigator[t(276)]?t(258):"no")+"; DNT: "+(navigator.doNotTrack??t(277))),s[t(218)](t(177)+(navigator[t(159)]?t(258):"no")),document.referrer&&s.push(t(254)+document.referrer),s[t(218)](function(){const t=e,n=typeof matchMedia===t(219)&&matchMedia(t(167))[t(221)];return"PWA: "+(Boolean(navigator[t(202)]?.[t(160)])?t(227):"no SW")+", display-mode standalone: "+(n?t(258):"no")}());const p=await i();p&&s[t(218)](p);const h="undefined"!=typeof localStorage&&localStorage[t(230)](t(157))===t(192);return s[t(218)](h?"Device geolocation: enabled":t(207)),s[t(180)](t(198))}!function(){const t=e,n=a();for(;;)try{if(829989===-parseInt(t(243))/1*(parseInt(t(270))/2)+-parseInt(t(273))/3*(parseInt(t(174))/4)+parseInt(t(236))/5*(-parseInt(t(194))/6)+parseInt(t(213))/7*(parseInt(t(209))/8)+parseInt(t(235))/9*(-parseInt(t(163))/10)+parseInt(t(171))/11+parseInt(t(261))/12)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();const s=U;!function(){const t=U,e=f();for(;;)try{if(568338===parseInt(t(203))/1+-parseInt(t(373))/2+-parseInt(t(297))/3+parseInt(t(311))/4+-parseInt(t(371))/5+-parseInt(t(365))/6*(parseInt(t(192))/7)+parseInt(t(335))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let d,l="",u=0;function f(){const t=["aria-label","#9ca3af","secure","removeEventListener","min","Organization","getAttribute","focus","Sensitive","3709096cSXgNg","pointerdown","fillText","Name","result","has","postal-code","body","setTimeout","join","host","getItem","street-address","address-line1","error","data-intent-redact","load","hostname","image/jpeg","trim","intent:data-ip","omit","device","getBoundingClientRect","3301712cwxVXT","heading","additional-name","given-name","SameSite=Lax","keydown","Secure","Max-Age=","intent:data-base-url","height","Phone","onLine","pageview","hasAttribute","filter","Path=/","closest","textContent","pixel body fallback failed","country-name","a[href]","number","data-intent-redact-label","string","function","address-line3","role","; Secure","defineProperty","title","47820cxMSMA","location","POSITION_UNAVAILABLE","Unexpected FileReader result type","attributes",'=""]',"1920070FKMdnq","protocol","1524260HxyWOF","address-level4","intent_sid=",'input[type="button"]','input[type="submit"]',"hasFocus","Redacted","accuracy","floor","textAlign","cc-exp-month","ignore","readAsDataURL","strokeStyle","email","granted","target","cookie","TIMEOUT","visibilityState","PERMISSION_DENIED","Password","type","randomUUID","innerHeight","textBaseline","altitude","html","page-blur","px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif","onload","address-level2","clearTimeout","addEventListener","tagName","bday-day","mask",'[role="button"]',"fillStyle","entries","tel","301MTrQkP","__intent__sdk__initialized__","toDataURL","font","key","speed","name","country","family-name","<no visible label>","lon","868822oOjdmu","context","cc-type","coords","data-html2canvas-ignore","bday","cc-given-name","visibilitychange","Address","no-store","UNKNOWN","intent:geo","address-level1","intent:consent","hidden","autocomplete","scrollY","INPUT","Sex","setAttribute","input-submit","undefined","round","page-focus","bottom","https://intent.callimacus.ai","POST","click","href","onerror","indexOf","left",'[role="link"]',"querySelectorAll","disabled","fillRect","value","cloneNode","FileReader error","width","drawImage","isSecureContext","toISOString","bday-month","lat","geoEnabled","stringify","scrollX","/p.gif","isFinite","length","cc-name","toLowerCase","outerHTML","password","query","#e5e7eb","cc-additional-name","organization-title","push","input, textarea","max","center","localhost","intent:data-client-id","address-level3","deviceGeoSent","/events","middle","scroll","timestamp","referrer","intent","[onclick]","TEXTAREA","startsWith","altitudeAccuracy","canvas","intent_sid","#374151","slice","some","split","forEach","address-line2","cc-family-name","innerWidth","longitude","now","message","right","getCurrentPosition","label","createElement","454854jJNegI","lineWidth","geolocation","cc-number","includes"];return(f=function(){return t})()}const m=s(216),p=s(214);let h=!1,g=!1,w=!1,y=!1,v=!1,b=!1;const M=s(267),x=s(331),S=s(343),I=s(228),T=s(193),E=["button",s(355),"a",s(377),s(376),s(410),s(235),s(276)].join(","),L=s(326),A=s(357),k=new Set(["name",s(338),s(337),"family-name","nickname","username",s(387),s(191),"organization","organization-title",s(323),s(324),s(287),"address-line3",s(215),s(404),"address-level3",s(374),s(199),s(354),"postal-code",s(254),"cc-given-name",s(260),s(288),s(300),"cc-exp",s(383),"cc-exp-year","cc-csc",s(205),s(208),s(408),s(246),"bday-year","sex","webauthn"]);function C(t){return"<"+N(t)+">"}function N(t){const e=s,n=(t[e(308)]?.(A)??"")[e(330)]();if(n)return n;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t[e(218)]||"").toLowerCase()[e(330)]()[e(285)](/\s+/)[e(349)](Boolean):[];return t instanceof HTMLInputElement&&t.type===e(257)?e(394):o[e(284)](t=>t[e(278)]("cc-"))?"Credit card":o[e(284)](t=>["name","given-name",e(200),e(337),e(254),e(209),"cc-family-name"].includes(t))?e(314):o[e(301)]("email")?"Email":o[e(301)](e(191))?e(345):o.some(t=>t[e(278)]("bday"))?"Birthday":o.includes("sex")?e(221):o[e(284)](t=>["street-address",e(324),e(287),e(360),e(215),"address-level2",e(268),e(374),e(317),"country",e(354)][e(301)](t))?e(211):o[e(301)]("organization")||o[e(301)](e(261))?e(307):"mask"===t[e(308)]?.(L)?.[e(255)]()?"Redacted":"Sensitive"}function D(t){const e=s;return t[e(348)](e(207))||t[e(308)](L)?.toLowerCase()===e(384)}function U(t,e){const n=f();return(U=function(t,e){return n[t-=189]})(t,e)}function H(t){const e=s,n=t[e(308)](L);return""===n||n?.[e(255)]()===e(409)}function R(t){const e=s;if(t instanceof HTMLInputElement){if(t[e(395)]===e(257))return!0;if("search"===t[e(395)])return!1;const n=t[e(308)](e(361));if(n&&"searchbox"===n.toLowerCase())return!1;if((t[e(218)]||"")[e(255)]()[e(330)]().split(/\s+/)[e(349)](Boolean).some(t=>k[e(316)](t)))return!0}if(t instanceof HTMLTextAreaElement){if((t[e(218)]||"")[e(255)]()[e(330)]()[e(285)](/\s+/).filter(Boolean)[e(284)](t=>k[e(316)](t)))return!0}return!1}function P(t){return!!H(t)||!!R(t)}function O(){const t=s,e=[],n=t=>{const e=U,n=t[e(334)]();if(n[e(242)]<=0||n[e(344)]<=0)return;const o=Math[e(264)](0,n[e(234)]),a=Math.max(0,n.top),i=Math.max(0,Math[e(306)](n[e(293)],window[e(289)])-o),r=Math[e(264)](0,Math[e(306)](n[e(227)],window[e(397)])-a);return i<=0||r<=0?void 0:{x:o,y:a,w:i,h:r}};document.querySelectorAll("["+L+'="mask"], ['+L+t(370))[t(286)](o=>{const a=t,i=n(o);if(!i)return;const r=N(o)||a(379);e[a(262)]({...i,label:r})});return document[t(236)](t(263))[t(286)](o=>{const a=t;if(!H(i=o)&&!R(i))return;var i;if(D(o))return;const r=n(o);if(!r)return;const c=N(o);e[a(262)]({...r,label:c})}),e}const B=()=>"granted"===localStorage[s(322)](m);function _(t){const e=s,n=encodeURIComponent(t)+"=",o=document[e(390)][e(285)]("; ");for(const t of o)if(t[e(278)](n))return decodeURIComponent(t[e(283)](n[e(253)]))}function F(t,e){const n=s,o=localStorage.getItem("intent:data-sid-max-age"),a=null==o?void 0:Number(o),i=Number[n(252)](e)?Number(e):"number"==typeof a&&Number[n(252)](a)?a:86400,r="https:"===window[n(366)].protocol,c=[n(375)+encodeURIComponent(t),n(342)+i,n(350),n(339)];r&&c.push(n(341)),document[n(390)]=c[n(320)]("; ")}function W(){const t=s,e="https:"===window[t(366)][t(372)];document[t(390)]="intent_sid=; Max-Age=0; Path=/; SameSite=Lax"+(e?t(362):"")}function j(){const t=s,e=_(t(281));if(!B())return e&&W(),void(l="");if(e)return void(l=e);const n=typeof crypto!==t(224)&&typeof crypto[t(396)]===t(359)?crypto[t(396)]():Date.now()+"-"+Math.random();l=n,F(l)}function z(){return j(),B()&&Boolean(l)&&(()=>{const t=s,e=localStorage[t(322)](M);return typeof e===t(358)&&e.trim()[t(253)]>0})()}function X(){return!z()||w}async function q(e){const n=s,o=function(t){const e=s,n=t[e(240)](!1);return n instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array.from(t[e(369)]).forEach(({name:t,value:e})=>{n.setAttribute(t,e)}),n[e(239)]=P(t)?C(t):t[e(239)],t[e(237)]&&n[e(222)](e(237),""),n.outerHTML):n instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array.from(t[e(369)])[e(286)](({name:t,value:o})=>{n[e(222)](t,o)}),n.value=P(t)?C(t):t[e(239)],t[e(237)]&&n[e(222)](e(237),""),n[e(256)]):t[e(256)]}(e),a=e.getBoundingClientRect(),i={useCORS:!0,...{x:window[n(250)],y:window[n(219)],width:window.innerWidth,height:window[n(397)],scale:1},ignoreElements:t=>t instanceof Element&&D(t)},r=await t(document[n(318)],i),c=r.width,d=r.height,l=Math[n(264)](c,d),u=.8*Math.max(window.innerWidth,window[n(397)]),f=Math[n(306)](1,u/l),m=12/(a[n(344)]||1),p=Math[n(306)](1,Math[n(264)](f,m)),h=Math.round(c*p),g=Math[n(225)](d*p),w=document[n(296)](n(280));w.width=h,w[n(344)]=g;const y=w.getContext("2d");y[n(243)](r,0,0,c,d,0,0,h,g);const v=O();if(v.length){y.save(),y.globalAlpha=1;for(const t of v){const e=Math[n(225)](t.x*p),o=Math[n(225)](t.y*p),a=Math[n(225)](t.w*p),i=Math[n(225)](t.h*p);y[n(189)]=n(259),y[n(238)](e,o,a,i),y[n(386)]=n(303),y[n(298)]=Math.max(1,Math[n(381)](.02*Math[n(306)](a,i))),y.strokeRect(e,o,a,i);const r=Math[n(264)](10,Math.min(22,Math[n(381)](.35*i)));y[n(195)]=r+n(402),y[n(189)]=n(282),y[n(382)]=n(265),y[n(398)]=n(271);const c="<"+(t[n(295)]?.[n(330)]()[n(253)]?t.label:n(310))+">";y[n(313)](c,e+a/2,o+i/2,a-6)}y.restore()}const b=w[n(194)](n(329),.8);return{html:o,bbox:{x:a.x,y:a.y,w:a[n(242)],h:a[n(344)]},img:b}}function Q(){const t=localStorage[s(322)](M),e={"Content-Type":"application/json"};return t&&(e["x-sl-access-token"]=t),l&&(e["x-intent-sid"]=l),e}async function J(t,e){const n=s,o=(localStorage[n(322)](S)??I)+n(270),a=localStorage[n(322)](M)??void 0,i=JSON[n(249)]({...t,clientId:a});try{if((await fetch(o,{method:n(229),headers:Q(),body:i,keepalive:e,credentials:n(332)})).ok)return}catch{}try{await async function(t,e=!1){const n=s,o=(localStorage.getItem(S)??I)+n(251);if(!(await fetch(o,{method:n(229),headers:Q(),body:JSON[n(249)](t),keepalive:e,credentials:n(332),cache:n(212)})).ok)throw new Error(n(353))}(t,e)}catch{}}async function G(t,e,n,o){const a=s;if(!z())return;const i={...e,localTime:(new Date)[a(245)]()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(i[a(239)]=P(n)?C(n):n[a(239)]);let r="",c={x:0,y:0,w:0,h:0},d="";const l=!(t===a(272)||"page-blur"===t||t===a(226)),f=Date[a(291)](),m=f-u>=5e3;let p=o;const h=t===a(230)||t===a(223)||"pageview"===t;l&&!p&&(h||m)&&(p=await q(n),u=f),p&&(r=p[a(400)],c=p.bbox,d=p.img);const g={ts:Date[a(291)](),event:t,props:i,html:t===a(401)||t===a(226)?"":r,bbox:c,img:d},w="hidden"===document[a(392)]||t===a(401);await J(g,w)}function Y(){return"enabled"===localStorage[s(322)](p)}async function K(t={}){const e=s;if(!z())return;const n=typeof t[e(247)]===e(356)&&typeof t[e(202)]===e(356);if(n&&g)return;if(!n&&h)return;const o=localStorage.getItem(x),a={context:await c()};o&&(a.ip=o);for(const[n,o]of Object[e(190)](t))a[n]=o;await G(e(204),a,document[e(318)],{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),n?g=!0:h=!0}async function V(){const t=s,e={canSend:z(),geoEnabled:Y(),deviceGeoSent:g};if(!e.canSend||!e[t(248)]||e[t(269)])return;const n={secure:window.isSecureContext,proto:location.protocol,host:location[t(328)]};if(n[t(304)]||(t(321),t(266)),!(t(299)in navigator))return;if(v)return;v=!0,w=!0;const o={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date[t(291)]();try{await(navigator.permissions?.[t(258)]({name:t(299)}))}catch(t){}await new Promise(e=>{const n=t;let a=!1;const i=async(t,n,o)=>{const i=U;a||(a=!0,Date[i(291)](),Number[i(252)](t)&&Number[i(252)](n)&&await K({lat:t,lon:n,source:i(333)}),v=!1,w=!1,b=!0,e())};navigator.geolocation[n(294)](t=>{const e=U,n=t[e(206)];i(n.latitude,n[e(290)],(n[e(380)],typeof n[e(399)]===e(356)&&n[e(399)],"number"==typeof n.altitudeAccuracy&&n[e(279)],typeof n[e(336)]===e(356)&&n[e(336)],typeof n[e(197)]===e(356)&&n[e(197)],t[e(273)],document[e(392)],document[e(378)]()))},t=>{const e=U,n=t?.code;e(1===n?393:2===n?367:3===n?391:213),t?.[e(292)],navigator[e(346)],document[e(392)],document[e(378)](),window[e(244)],location[e(328)],i(void 0,void 0)},o)})}function Z(){const t=s;if(y||!Y()||g)return;y=!0;const e=()=>{const t=U;window[t(305)](t(312),e,!0),window.removeEventListener(t(340),e,!0),V()};window[t(406)]("pointerdown",e,!0),window.addEventListener(t(340),e,!0)}j();let $=!document.hidden&&document[s(378)](),tt=document[s(378)]();const et=()=>{const t=s;if(X())return;const e=!document[t(217)]&&document[t(378)]();e&&(tt=!0),tt||e?e!==$&&($=e,G(e?"page-focus":t(401),{},document[t(318)])):$=e};function nt(){const t=s;(function(){const t=s,e=globalThis;return!e[T]&&(Object[t(363)](e,T,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window.addEventListener(t(327),()=>{const e=t;z()&&(K(),(window.isSecureContext||location[e(328)]===e(266))&&(Y()&&Z(),window[e(406)](e(309),()=>{!g&&Y()&&!v&&b&&V()}),document[e(406)]("visibilitychange",()=>{!document.hidden&&!g&&Y()&&!v&&b&&V()})))}),window[t(406)]("storage",e=>{const n=t;e[n(196)]===m&&(function(){const t=s;return localStorage[t(322)](m)===t(388)}()?(h=!1,K(),Y()&&Z()):(h=!1,g=!1)),e[n(196)]===p&&(Y()?Z():g=!1)}),window[t(406)](t(327),()=>{const e=t;z()&&G(e(347),{url:window[e(366)][e(231)],title:document[e(364)],ref:document[e(274)]},document[e(318)])}),addEventListener("pointerdown",function(t,e){let n=0;return(...o)=>{const a=Date.now();a-n>=e&&(n=a,t(...o))}}(e=>{const n=t;if(X())return;const o=e[n(389)]instanceof Element?e.target[n(351)](E):null;o instanceof HTMLElement&&(d=q(o))},50),{capture:!0,passive:!0}),addEventListener(t(230),async e=>{const n=t;if(X())return;const o=e[n(389)]instanceof Element?e[n(389)].closest(E):null;if(!(o instanceof HTMLElement))return;const a=function(t){const e=s;return t[e(308)](e(302))??t[e(364)]??t[e(352)]?.[e(330)]()??e(201)}(o),i=d?await d:void 0;d=void 0,await G(n(230),{tag:o[n(407)],label:a},o,i)},!0),addEventListener(t(340),e=>{const n=t;if(!X()&&"Enter"===e[n(196)]){const t=e[n(389)];if(t instanceof HTMLElement&&(t[n(407)]===n(220)||t[n(407)]===n(277))){const e=t instanceof HTMLInputElement?t[n(198)]:void 0,o=t.id||void 0;G(n(223),{tag:t[n(407)],name:e??o},t)}}},{capture:!0}),["focus","blur"][t(286)](e=>{window[t(406)](e,et)}),document[t(406)](t(210),et),window[t(406)](t(272),function(t,e){let n;return(...o)=>{const a=U;void 0!==n&&window[a(405)](n),n=window[a(319)](()=>{n=void 0,t(...o)},e)}}(()=>{const e=t;X()||G("scroll",{scrollX:window.scrollX,scrollY:window[e(219)]},document[e(318)])},250),{passive:!0}),window[t(275)]??={send(e,n){const o=t;z()&&G(e,n,document[o(318)])}})}function ot(t,e){const n=ct;try{if(void 0===e)return;localStorage.setItem(t,e?t===n(293)?"granted":n(291):"disabled")}catch{}}function at(t={}){const e=ct;if(localStorage[e(294)]("intent:data-client-id",t.clientId??""),localStorage.setItem(e(287),t.ip??""),localStorage[e(294)](e(274),t[e(295)]??e(280)),"number"==typeof t[e(275)]&&localStorage[e(294)](e(288),String(t[e(275)])),ot(e(293),t[e(285)]),ot(e(283),t[e(297)]),t.consent){if(!_(e(301))){F(typeof crypto!==e(279)&&typeof crypto.randomUUID===e(277)?crypto[e(296)]():Date[e(289)]()+"-"+Math[e(276)](),t[e(275)])}}nt()}function it(){return _("intent_sid")}function rt(){j()}function ct(t,e){const n=st();return(ct=function(t,e){return n[t-=274]})(t,e)}function st(){const t=["8imwYzt","intent:data-ip","intent:data-sid-max-age","now","9RQCdHU","enabled","206395LZucEF","intent:consent","setItem","baseUrl","randomUUID","geo","443363QEkmjB","isFinite","3857686ZRXQYC","intent_sid","intent:data-base-url","sidMaxAgeSeconds","random","function","916180atLQCr","undefined","https://intent.callimacus.ai","1365138NPJkUp","850596ocFeWG","intent:geo","10686504bOAeBQ","consent"];return(st=function(){return t})()}function dt(){W()}function lt(t){const e=ct;Number[e(299)](t)&&localStorage[e(294)](e(288),String(t));const n=_("intent_sid");n&&F(n,t)}!function(){const t=ct,e=st();for(;;)try{if(279100===-parseInt(t(298))/1+-parseInt(t(278))/2+parseInt(t(281))/3+parseInt(t(286))/4*(parseInt(t(292))/5)+-parseInt(t(282))/6+-parseInt(t(300))/7+parseInt(t(284))/8*(parseInt(t(290))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{dt as clearIntentSessionId,rt as ensureIntentSessionId,it as getIntentSessionId,at as initIntent,ot as setFlag,lt as setIntentSessionMaxAge};
4
+ import t from"html2canvas-pro";function e(){const t=["map","toString","hardwareConcurrency","769072HxNKiQ","number","upright","coarse","User agent: ","length","PWA: ","innerWidth","CookiesEnabled: ","gamma","find","onLine","Local time: ","Tilt: ","1767830JiiwOt"," (β ","intent:geo","languages","setTimeout","3816456CpfuNQ"," | ","Screen: ","flat"," (UTC","navigation","cors","now","Timezone: ","beta","5xblqHr","brands","getBattery","all"," (active test)","isFinite","(display-mode: standalone)","padStart","from","userAgentData","cookieEnabled","floor","SW-controlled","TTFB ~","saveData","responseStart","orientation","Referrer: ","getItem","2101221PDwbzx","connection","UA brands: ","Network: ","unknown","downlink","join","doNotTrack","DateTimeFormat","addEventListener","(pointer: coarse)","1821032uFBVZi","read","availHeight","effectiveType","Viewport: ","version","getEntriesByType","colorDepth","DeviceOrientationEvent","6084490SFDBiC","resolvedOptions","3178bdFgbE","type","toFixed","Pointer/Touch: ","Language: ","yes","signal"," Mbps","; DNT: ","Languages: ","abs","24yTNhun","Device geolocation: enabled","push","byteLength","userAgent","matches","no-store","reclined","10692VGCdbN","round","charging","maxTouchPoints","rtt","-bit)",", maxTouchPoints ","abort","includes","fetch"," ms","platform","function","referrer","CPU: ","devicePixelRatio","deviceorientation"," (mobile)","controller","body","undefined","not charging","height","mobile","Online: ","enabled"," cores","getReader"];return(e=function(){return t})()}async function n(){const t=a,e=[];if(function(t){const e=a;return e(490)in t&&typeof t.connection!==e(550)}(navigator)){const n=navigator[t(490)];n?.[t(503)]&&e[t(524)](n[t(503)]),typeof n?.[t(494)]===t(562)&&e[t(524)](n[t(494)]+t(518)),typeof n?.[t(534)]===t(562)&&e[t(524)](n[t(534)]+t(540)),n?.[t(484)]&&e[t(524)](t(484))}const n=await async function(t,e=3e3,n=8,o=150){const i=a;if(!(i(539)in window)||!("ReadableStream"in window))return;const r=performance[i(467)]();let c,s=0;await Promise[i(473)](Array[i(478)]({length:n},async()=>{const n=i;for(;performance.now()-r<e+o;){const a=new AbortController,i=(t[n(538)]("?")?"&":"?")+"cb="+Math.random()[n(559)](36).slice(2);try{const d=await fetch(t+i,{cache:n(528),signal:a[n(517)],mode:n(466)}),l=d[n(549)]?.[n(557)]();if(!l)break;for(;;){const t=performance[n(467)]();if(t-r>=e+o){a[n(537)]();break}const{done:i,value:d}=await l[n(501)]();if(i)break;c??=t,t-(c??t)>=o&&(s+=d[n(525)])}}catch{}}}));const d=(c??r)+o,l=Math.max(1,performance[i(467)]()-d),u=8*s/(l/1e3)/1e6;return Number[i(475)](u)&&u>0?u:void 0}("/speedtest.bin",3e3,8,150),o=performance[t(506)](t(465))[t(571)](e=>e.entryType===t(465));let i;if(o){const e=Math.max(0,o[t(485)]-o.requestStart);i=t(483)+Math.round(e)+t(540)}const r=[];if(typeof n===t(562)&&r[t(524)]("~"+n[t(513)](1)+t(518)),i&&r[t(524)](i),e.length&&r[t(524)]("hint: "+e[t(495)](", ")),r[t(566)])return t(492)+r[t(495)](", ")+t(474)}function o(){const t=a;if(!function(t){const e=a;return e(479)in t&&typeof t[e(479)]!==e(550)}(navigator))return;const e=navigator[t(479)],n=Array.isArray(e[t(471)])?e[t(471)][t(558)](e=>e.brand+" "+e[t(505)]).join(", "):void 0,o=e[t(541)]?""+e[t(541)]+(e[t(553)]?t(547):""):void 0;return[n&&t(491)+n,o&&"Platform: "+o].filter(Boolean)[t(495)](t(461))||void 0}function a(t,n){const o=e();return(a=function(t,e){return o[t-=459]})(t,n)}async function i(t=400){const e=a;if(e(508)in window&&window.isSecureContext)return new Promise(n=>{const o=e;let i=!1;const r=t=>{const e=a,o="number"==typeof t.beta?t[e(469)]:void 0,c=typeof t[e(570)]===e(562)?t[e(570)]:void 0;if(void 0===o||void 0===c)return;if(i)return;i=!0,window.removeEventListener("deviceorientation",r);const s=function(t,e){const n=a,o=Math[n(521)](t),i=Math[n(521)](e);return n(o<15&&i<15?463:o>=60?563:529)}(o,c);n(e(574)+s+e(576)+Math[e(531)](o)+"°, γ "+Math[e(531)](c)+"°)")};window[o(459)](()=>{const t=o;i||(i=!0,window.removeEventListener(t(546),r),n(void 0))},t),window[o(498)](o(546),r,{passive:!0})})}async function r(){const t=a;if(function(t){const e=a;return"getBattery"in t&&typeof t[e(472)]===e(542)}(navigator))try{const e=await navigator[t(472)](),n=Math[t(531)](100*e.level);return"Battery: "+[(Number.isFinite(n)?n:0)+"%",e[t(532)]?"charging":t(551)][t(495)](", ")}catch{return}}async function c(){const t=a,e=(new(Intl[t(497)]))[t(510)]().timeZone,c=function(t){const e=a,n=t<=0?"+":"-",o=Math[e(521)](t);return""+n+String(Math[e(481)](o/60))[e(477)](2,"0")+":"+String(o%60)[e(477)](2,"0")}((new Date).getTimezoneOffset()),s=[];s.push(t(515)+navigator.language),navigator[t(578)]?.[t(566)]&&s.push(t(520)+navigator[t(578)][t(495)](", ")),s.push(t(565)+navigator[t(526)]);const d=o();d&&s.push(d),s[t(524)](t(468)+e+t(464)+c+")"),s.push(t(573)+(new Date)[t(559)]());const l=window[t(545)]||1;s[t(524)](t(462)+screen.width+"x"+screen[t(552)]+" @"+l+"x (avail "+screen.availWidth+"x"+screen[t(502)]+", "+screen[t(507)]+t(535));const u=screen.orientation&&t(512)in screen[t(486)]?screen[t(486)].type:void 0;s.push(t(504)+window[t(568)]+"x"+window.innerHeight+(u?", orientation "+u:"")),s.push(t(544)+navigator[t(560)]+t(556));const f=await n();f&&s[t(524)](f),s[t(524)](function(){const t=a,e="function"==typeof matchMedia&&matchMedia(t(499))[t(527)],n="function"==typeof matchMedia&&matchMedia("(pointer: fine)").matches,o=e?t(564):n?"fine":t(493),i=typeof navigator.maxTouchPoints===t(562)?navigator[t(533)]:0;return t(514)+o+t(536)+i}());const m=await r();m&&s[t(524)](m),s[t(524)](t(569)+(navigator[t(480)]?t(516):"no")+t(519)+(navigator[t(496)]??"n/a")),s[t(524)](t(554)+(navigator[t(572)]?t(516):"no")),document[t(543)]&&s.push(t(487)+document[t(543)]),s[t(524)](function(){const t=a,e="function"==typeof matchMedia&&matchMedia(t(476))[t(527)],n=Boolean(navigator.serviceWorker?.[t(548)]);return t(567)+(n?t(482):"no SW")+", display-mode standalone: "+(e?t(516):"no")}());const p=await i();p&&s[t(524)](p);const h="undefined"!=typeof localStorage&&localStorage[t(488)](t(577))===t(555);return s.push(h?t(523):"Device geolocation: disabled"),s.join(" | ")}!function(){const t=a,n=e();for(;;)try{if(711581===parseInt(t(561))/1+-parseInt(t(575))/2+parseInt(t(460))/3+-parseInt(t(500))/4*(-parseInt(t(470))/5)+-parseInt(t(530))/6*(parseInt(t(511))/7)+parseInt(t(522))/8*(-parseInt(t(489))/9)+parseInt(t(509))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();const s=K;!function(){const t=K,e=j();for(;;)try{if(764092===-parseInt(t(640))/1*(-parseInt(t(441))/2)+-parseInt(t(454))/3*(parseInt(t(584))/4)+-parseInt(t(479))/5+parseInt(t(639))/6*(parseInt(t(455))/7)+-parseInt(t(478))/8+-parseInt(t(503))/9*(-parseInt(t(566))/10)+-parseInt(t(470))/11*(-parseInt(t(565))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let d,l="",u=0;const f=s(468),m=s(434);let p=!1,h=!1,g=!1,w=!1,y=!1,b=!1;const v=s(474),x=s(537),S=s(481),I=s(526),M=s(573),E=["button",s(632),"a",s(560),s(541),s(633),'[role="link"]',"[onclick]"][s(589)](","),T=s(512),L=s(568),k=new Set(["name",s(586),"additional-name",s(486),"nickname",s(574),"email",s(453),"organization",s(587),"street-address","address-line1",s(563),s(491),s(636),"address-level2",s(464),s(619),s(626),s(610),s(492),s(448),s(521),s(628),s(605),"cc-number",s(629),s(516),s(579),s(483),s(608),"bday",s(469),s(653),"bday-year",s(500),"webauthn"]);function A(t){return"<"+N(t)+">"}function N(t){const e=s,n=(t.getAttribute?.(L)??"")[e(535)]();if(n)return n;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t.autocomplete||"")[e(530)]()[e(535)]()[e(505)](/\s+/)[e(594)](Boolean):[];return t instanceof HTMLInputElement&&"password"===t[e(644)]?e(627):o[e(564)](t=>t[e(593)](e(612)))?"Credit card":o[e(564)](t=>["name","given-name",e(486),"additional-name","cc-name",e(521),e(605)][e(550)](t))?"Name":o[e(550)](e(545))?e(511):o[e(550)]("tel")?"Phone":o[e(564)](t=>t[e(593)]("bday"))?e(489):o[e(550)](e(500))?e(595):o.some(t=>[e(547),e(549),"address-line2","address-line3",e(636),"address-level2",e(464),e(619),e(492),e(626),"country-name"][e(550)](t))?e(651):o[e(550)](e(634))||o[e(550)](e(587))?"Organization":t[e(604)]?.(T)?.[e(530)]()===e(493)?e(442):e(601)}function H(t){const e=s;return t[e(435)]("data-html2canvas-ignore")||t[e(604)](T)?.toLowerCase()===e(577)}function D(t){const e=s,n=t[e(604)](T);return""===n||"mask"===n?.[e(530)]()}function P(t){const e=s;if(t instanceof HTMLInputElement){if(t[e(644)]===e(527))return!0;if("search"===t.type)return!1;const n=t[e(604)]("role");if(n&&n[e(530)]()===e(583))return!1;if((t[e(544)]||"")[e(530)]().trim()[e(505)](/\s+/)[e(594)](Boolean)[e(564)](t=>k[e(513)](t)))return!0}if(t instanceof HTMLTextAreaElement){if((t[e(544)]||"")[e(530)]()[e(535)]().split(/\s+/).filter(Boolean)[e(564)](t=>k[e(513)](t)))return!0}return!1}function C(t){return!!D(t)||!!P(t)}function B(){const t=s,e=[],n=t=>{const e=K,n=t[e(504)]();if(n[e(443)]<=0||n.height<=0)return;const o=Math.max(0,n[e(561)]),a=Math[e(648)](0,n.top),i=Math.max(0,Math[e(508)](n[e(625)],window[e(446)])-o),r=Math.max(0,Math[e(508)](n.bottom,window[e(557)])-a);return i<=0||r<=0?void 0:{x:o,y:a,w:i,h:r}};document[t(445)]("["+T+t(463)+T+t(431))[t(611)](o=>{const a=t,i=n(o);if(!i)return;const r=N(o)||"Redacted";e[a(576)]({...i,label:r})});return document.querySelectorAll(t(646))[t(611)](o=>{const a=t;if(!D(i=o)&&!P(i))return;var i;if(H(o))return;const r=n(o);if(!r)return;const c=N(o);e[a(576)]({...r,label:c})}),e}const R=()=>localStorage.getItem(f)===s(618);function U(t){const e=s,n=encodeURIComponent(t)+"=",o=document.cookie[e(505)]("; ");for(const t of o)if(t[e(593)](n))return decodeURIComponent(t[e(654)](n.length))}function O(t,e){const n=s,o=localStorage[n(476)]("intent:data-sid-max-age"),a=null==o?void 0:Number(o),i=Number[n(569)](e)?Number(e):typeof a===n(473)&&Number[n(569)](a)?a:86400,r=window[n(643)][n(623)]===n(436),c=[n(599)+encodeURIComponent(t),n(621)+i,n(494),n(558)];r&&c[n(576)](n(465)),document[n(645)]=c.join("; ")}function F(){const t=s,e=window[t(643)][t(623)]===t(436);document.cookie=t(482)+(e?t(460):"")}function _(){const t=s,e=U(t(642));if(!R())return e&&F(),void(l="");if(e)return void(l=e);const n=typeof crypto!==t(528)&&"function"==typeof crypto.randomUUID?crypto[t(518)]():Date.now()+"-"+Math.random();l=n,O(l)}function j(){const t=["intent:data-client-id","addEventListener","getItem","restore","4063584cuELmp","4303115QqbJBN","now","intent:data-base-url","intent_sid=; Max-Age=0; Path=/; SameSite=Lax","cc-csc","lat","string","family-name","html","no-store","Birthday","speed","address-line3","postal-code","mask","Path=/","context","title","#374151","removeEventListener","outerHTML","sex","image/jpeg","/p.gif","89919StZudC","getBoundingClientRect","split","timestamp","coords","min","key","page-blur","Email","data-intent-redact","has","value","hostname","cc-exp-month","visibilitychange","randomUUID","pageview","closest","cc-given-name","strokeRect","Unexpected FileReader result type","setAttribute","onLine","https://intent.callimacus.ai","password","undefined","omit","toLowerCase","target","PERMISSION_DENIED","tagName","getContext","trim","focus","intent:data-ip","error","font","disabled",'input[type="button"]',"hasFocus","visibilityState","autocomplete","email","indexOf","street-address","toDataURL","address-line1","includes","canSend","defineProperty","attributes","canvas","#9ca3af","aria-label","innerHeight","SameSite=Lax","px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif",'input[type="submit"]',"left","cloneNode","address-line2","some","192zJScqH","590svsonv","geolocation","data-intent-redact-label","isFinite","bbox","<no visible label>","fillRect","__intent__sdk__initialized__","username","clearTimeout","push","ignore","Enter","cc-exp-year","img","result","onerror","searchbox","24lmwTrV","POSITION_UNAVAILABLE","given-name","organization-title","page-view","join","keydown","code","x-sl-access-token","startsWith","filter","Sex","localhost","fillStyle","altitudeAccuracy","intent_sid=","click","Sensitive","geoEnabled","page-focus","getAttribute","cc-family-name","hidden","body","cc-type","FileReader error","country-name","forEach","cc-","save","pointerdown","height","floor","storage","granted","address-level4","scrollY","Max-Age=","onload","protocol","host","right","country","Password","cc-additional-name","cc-exp","globalAlpha","getCurrentPosition","a[href]",'[role="button"]',"organization","INPUT","address-level1","strokeStyle","referrer","18WxQdDK","81013VLyspb","x-intent-sid","intent_sid","location","type","cookie","input, textarea","permissions","max","setTimeout","lineWidth","Address","message","bday-month","slice","href",'=""]',"textContent","accuracy","intent:geo","hasAttribute","https:","scrollX","round","stringify","intent","2urqIPD","Redacted","width","toISOString","querySelectorAll","innerWidth","input-submit","cc-name","altitude","fillText","blur","textAlign","tel","169542lJNoPB","414029jEFUqs","length","isSecureContext","/events","#e5e7eb","; Secure","textBaseline","scroll",'="mask"], [',"address-level3","Secure","application/json","load","intent:consent","bday-day","1116379LkpWuy","query","enabled","number"];return(j=function(){return t})()}function W(){return _(),R()&&Boolean(l)&&(()=>{const t=s,e=localStorage.getItem(v);return typeof e===t(485)&&e[t(535)]()[t(456)]>0})()}function q(){return!W()||g}async function z(e){const n=s,o=function(t){const e=s,n=t[e(562)](!1);return n instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array.from(t[e(553)])[e(611)](({name:t,value:o})=>{n[e(524)](t,o)}),n[e(514)]=C(t)?A(t):t[e(514)],t.disabled&&n[e(524)]("disabled",""),n[e(499)]):n instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array.from(t[e(553)]).forEach(({name:t,value:o})=>{n[e(524)](t,o)}),n[e(514)]=C(t)?A(t):t.value,t[e(540)]&&n[e(524)]("disabled",""),n[e(499)]):t.outerHTML}(e),a=e[n(504)](),i={useCORS:!0,...{x:window.scrollX,y:window[n(620)],width:window[n(446)],height:window[n(557)],scale:1},ignoreElements:t=>t instanceof Element&&H(t)},r=await t(document[n(607)],i),c=r[n(443)],d=r[n(615)],l=Math[n(648)](c,d),u=.8*Math[n(648)](window.innerWidth,window[n(557)]),f=Math[n(508)](1,u/l),m=12/(a[n(615)]||1),p=Math[n(508)](1,Math.max(f,m)),h=Math.round(c*p),g=Math.round(d*p),w=document.createElement(n(554));w[n(443)]=h,w[n(615)]=g;const y=w[n(534)]("2d");y.drawImage(r,0,0,c,d,0,0,h,g);const b=B();if(b[n(456)]){y[n(613)](),y[n(630)]=1;for(const t of b){const e=Math.round(t.x*p),o=Math[n(438)](t.y*p),a=Math.round(t.w*p),i=Math.round(t.h*p);y.fillStyle=n(459),y[n(572)](e,o,a,i),y[n(637)]=n(555),y[n(650)]=Math.max(1,Math[n(616)](.02*Math.min(a,i))),y[n(522)](e,o,a,i);const r=Math[n(648)](10,Math[n(508)](22,Math.floor(.35*i)));y[n(539)]=r+n(559),y[n(597)]=n(497),y[n(452)]="center",y[n(461)]="middle";const c="<"+(t.label?.trim()[n(456)]?t.label:n(601))+">";y[n(450)](c,e+a/2,o+i/2,a-6)}y[n(477)]()}const v=w[n(548)](n(501),.8);return{html:o,bbox:{x:a.x,y:a.y,w:a.width,h:a[n(615)]},img:v}}function J(){const t=s,e=localStorage[t(476)](v),n={"Content-Type":t(466)};return e&&(n[t(592)]=e),l&&(n[t(641)]=l),n}async function V(t,e){const n=s,o=(localStorage[n(476)](S)??I)+n(458),a=localStorage[n(476)](v)??void 0,i=JSON.stringify({...t,clientId:a});try{if((await fetch(o,{method:"POST",headers:J(),body:i,keepalive:e,credentials:n(529)})).ok)return}catch{}try{await async function(t,e=!1){const n=s,o=(localStorage[n(476)](S)??I)+n(502);if(!(await fetch(o,{method:"POST",headers:J(),body:JSON[n(439)](t),keepalive:e,credentials:n(529),cache:n(488)})).ok)throw new Error("pixel body fallback failed")}(t,e)}catch{}}async function X(t,e,n,o){const a=s;if(!W())return;const i={...e,localTime:(new Date)[a(444)]()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(i.value=C(n)?A(n):n[a(514)]);let r="",c={x:0,y:0,w:0,h:0},d="";const l=!(t===a(462)||t===a(510)||t===a(603)),f=Date[a(480)](),m=f-u>=5e3;let p=o;const h=t===a(600)||t===a(447)||t===a(519);l&&!p&&(h||m)&&(p=await z(n),u=f),p&&(r=p[a(487)],c=p[a(570)],d=p[a(580)]);const g=t===a(510)||t===a(603)||t===a(588),w={ts:Date.now(),event:t,props:i,html:g?"":r,bbox:c,img:d},y=document[a(543)]===a(606)||"page-blur"===t;await V(w,y)}function Q(){const t=s;return localStorage[t(476)](m)===t(472)}async function G(t={}){const e=s;if(!W())return;const n=typeof t[e(484)]===e(473)&&typeof t.lon===e(473);if(n&&h)return;if(!n&&p)return;const o=localStorage[e(476)](x),a={context:await c()};o&&(a.ip=o);for(const[e,n]of Object.entries(t))a[e]=n;await X(e(495),a,document.body,{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),n?h=!0:p=!0}async function Y(){const t=s,e={canSend:W(),geoEnabled:Q(),deviceGeoSent:h};if(!e[t(551)]||!e[t(602)]||e.deviceGeoSent)return;const n={secure:window.isSecureContext,proto:location[t(623)],host:location.hostname};if(n.secure||(t(624),t(596)),!(t(567)in navigator))return;if(y)return;y=!0,g=!0;const o={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};try{await(navigator[t(647)]?.[t(471)]({name:t(567)}))}catch(t){}await new Promise(e=>{const n=t;let a=!1;const i=async(t,n,o)=>{const i=K;a||(a=!0,Number[i(569)](t)&&Number[i(569)](n)&&await G({lat:t,lon:n,source:"device"}),y=!1,g=!1,b=!0,e())};navigator[n(567)][n(631)](t=>{const e=K,n=t[e(507)];i(n.latitude,n.longitude,(n[e(433)],typeof n[e(449)]===e(473)&&n.altitude,typeof n[e(598)]===e(473)&&n[e(598)],typeof n.heading===e(473)&&n.heading,typeof n[e(490)]===e(473)&&n[e(490)],t[e(506)],document.hasFocus()))},t=>{const e=K,n=t?.[e(591)];1===n?e(532):2===n&&e(585),t?.[e(652)],navigator[e(525)],document[e(543)],document[e(542)](),window[e(457)],location[e(623)],location[e(515)],i(void 0,void 0)},o)})}function Z(){const t=s;if(w||!Q()||h)return;w=!0;const e=()=>{const t=K;window[t(498)](t(614),e,!0),window[t(498)](t(590),e,!0),Y()};window[t(475)]("pointerdown",e,!0),window.addEventListener("keydown",e,!0)}function K(t,e){const n=j();return(K=function(t,e){return n[t-=430]})(t,e)}_();let $=!document[s(606)]&&document[s(542)](),tt=document[s(542)]();const et=()=>{const t=s;if(q())return;const e=!document.hidden&&document[t(542)]();e&&(tt=!0),tt||e?e!==$&&($=e,X(e?"page-focus":t(510),{},document.body)):$=e};function nt(){const t=s;(function(){const t=s,e=globalThis;return!e[M]&&(Object[t(552)](e,M,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window.addEventListener(t(467),()=>{const e=t;W()&&(G(),(window[e(457)]||location[e(515)]===e(596))&&(Q()&&Z(),window[e(475)](e(536),()=>{!h&&Q()&&!y&&b&&Y()}),document.addEventListener(e(517),()=>{!document[e(606)]&&!h&&Q()&&!y&&b&&Y()})))}),window[t(475)](t(617),e=>{const n=t;e[n(509)]===f&&(function(){const t=s;return localStorage[t(476)](f)===t(618)}()?(p=!1,G(),Q()&&Z()):(p=!1,h=!1)),e[n(509)]===m&&(Q()?Z():h=!1)}),window[t(475)]("load",()=>{const e=t;W()&&X(e(519),{url:window[e(643)][e(430)],title:document[e(496)],ref:document[e(638)]},document[e(607)])}),addEventListener("pointerdown",function(t,e){let n=0;return(...o)=>{const a=Date.now();a-n>=e&&(n=a,t(...o))}}(e=>{const n=t;if(q())return;const o=e[n(531)]instanceof Element?e[n(531)][n(520)](E):null;o instanceof HTMLElement&&(d=z(o))},50),{capture:!0,passive:!0}),addEventListener("click",async e=>{const n=t;if(q())return;const o=e[n(531)]instanceof Element?e[n(531)][n(520)](E):null;if(!(o instanceof HTMLElement))return;const a=function(t){const e=s;return t[e(604)](e(556))??t[e(496)]??t[e(432)]?.[e(535)]()??e(571)}(o),i=d?await d:void 0;d=void 0,await X("click",{tag:o.tagName,label:a},o,i)},!0),addEventListener("keydown",e=>{const n=t;if(!q()&&e[n(509)]===n(578)){const t=e.target;if(t instanceof HTMLElement&&(t.tagName===n(635)||"TEXTAREA"===t.tagName)){const e=t instanceof HTMLInputElement?t.name:void 0,o=t.id||void 0;X(n(447),{tag:t[n(533)],name:e??o},t)}}},{capture:!0}),[t(536),t(451)][t(611)](t=>{window.addEventListener(t,et)}),document.addEventListener("visibilitychange",et),window[t(475)]("scroll",function(t,e){let n;return(...o)=>{const a=K;void 0!==n&&window[a(575)](n),n=window[a(649)](()=>{n=void 0,t(...o)},e)}}(()=>{const e=t;q()||X(e(462),{scrollX:window[e(437)],scrollY:window.scrollY},document[e(607)])},250),{passive:!0}),window[t(440)]??={send(t,e){W()&&X(t,e,document.body)}})}function ot(t,e){const n=lt();return(ot=function(t,e){return n[t-=496]})(t,e)}function at(t,e){const n=ot;try{if(void 0===e)return;localStorage[n(518)](t,e?t===n(504)?n(511):n(502):n(500))}catch{}}function it(t={}){const e=ot;if(localStorage[e(518)]("intent:data-client-id",t[e(523)]??""),localStorage.setItem(e(516),t.ip??""),localStorage.setItem(e(498),t[e(517)]??e(505)),typeof t[e(501)]===e(510)&&localStorage.setItem("intent:data-sid-max-age",String(t.sidMaxAgeSeconds)),at(e(504),t[e(512)]),at(e(509),t[e(497)]),t[e(512)]){if(!U(e(513))){O("undefined"!=typeof crypto&&"function"==typeof crypto[e(496)]?crypto[e(496)]():Date[e(524)]()+"-"+Math[e(521)](),t[e(501)])}}nt()}function rt(){return U("intent_sid")}function ct(){_()}function st(){F()}function dt(t){const e=ot;Number.isFinite(t)&&localStorage.setItem(e(507),String(t));const n=U(e(513));n&&O(n,t)}function lt(){const t=["165862jJBhEH","random","3576105xuQGJi","clientId","now","randomUUID","geo","intent:data-base-url","2429415ByHVjY","disabled","sidMaxAgeSeconds","enabled","4sAJniu","intent:consent","https://intent.callimacus.ai","2908832ccRTxX","intent:data-sid-max-age","19lojSll","intent:geo","number","granted","consent","intent_sid","784435uUqnmg","9732506iyZIOX","intent:data-ip","baseUrl","setItem","2751246WLMRSM"];return(lt=function(){return t})()}!function(){const t=ot,e=lt();for(;;)try{if(855607===parseInt(t(508))/1*(parseInt(t(520))/2)+parseInt(t(522))/3+parseInt(t(503))/4*(-parseInt(t(514))/5)+-parseInt(t(519))/6+-parseInt(t(515))/7+parseInt(t(506))/8+-parseInt(t(499))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{st as clearIntentSessionId,ct as ensureIntentSessionId,rt as getIntentSessionId,it as initIntent,at as setFlag,dt as setIntentSessionMaxAge};