@solomei-ai/intent 1.9.2 → 1.9.3

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/README.md CHANGED
@@ -43,7 +43,7 @@ initIntent({
43
43
  geo: false, // Optional: Enable/disable geolocation (default: false)
44
44
  baseUrl: 'https://...', // Optional: Custom API endpoint (default: 'https://intent.callimacus.ai')
45
45
  ip: '192.0.2.1', // Optional: Client IP address
46
- sidMaxAgeSeconds: 86400, // Optional: Session cookie max-age in seconds (default: 30 days)
46
+ sidMaxAgeSeconds: 2592000, // Optional: Session cookie max-age in seconds (default: 30 days = 2592000 seconds)
47
47
  debug: false, // Optional: Enable debug logging for timing information (default: false)
48
48
  });
49
49
  ```
@@ -214,6 +214,7 @@ When consent is granted, the Intent SDK automatically collects the following dat
214
214
  - Optional IP address (`ip`)
215
215
  - Consent status (`intent:consent`)
216
216
  - Geolocation preference (`intent:geo`)
217
+ - Debug logging preference (`intent:debug`)
217
218
  - Session max-age setting
218
219
 
219
220
  ### Built-in Redaction
@@ -252,7 +253,7 @@ Redacted fields are replaced with placeholder text like `<Password>`, `<Email>`,
252
253
 
253
254
  **Local Storage:**
254
255
  - The SDK stores configuration and preferences in browser `localStorage`
255
- - Keys used: `intent:consent`, `intent:geo`, `intent:data-client-id`, `intent:data-base-url`, `intent:data-ip`, `intent:data-sid-max-age`
256
+ - Keys used: `intent:consent`, `intent:geo`, `intent:debug`, `intent:data-client-id`, `intent:data-base-url`, `intent:data-ip`, `intent:data-sid-max-age`
256
257
  - localStorage data persists until explicitly cleared by the user or your application
257
258
 
258
259
  **Cookies:**
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";import e from"js-cookie";function n(){const t=["number","height","PWA: ","entryType","maxTouchPoints","round","padStart","fine","saveData","isSecureContext","reclined","(pointer: fine)","deviceorientation","encodedBodySize","Viewport: ","browser API","Local time: ","version"," Mbps","undefined","isFinite","toFixed","flat","(pointer: coarse)","downlink","colorDepth","downlinkMbps","x (avail ","yes","DeviceOrientationEvent","push","type","369596BEMXlt","(display-mode: standalone)","Pointer/Touch: ","join","Platform: ","Device geolocation: disabled","UA brands: ","setTimeout","getBattery","; DNT: ","getEntriesByType","Tilt: ","effectiveType","hardwareConcurrency","duration","CPU: ","intent:geo","TTFB","max","14210HYpWBT","charging","level","resolvedOptions","width","getItem","removeEventListener","filter","-bit)","5303493GwoFGk","floor","gamma"," (β ","toString","5320NNbLrh","Referrer: ","devicePixelRatio","mobile","find","brand","beta","SW-controlled","coarse","referrer","°, γ ","platform","7TOwiOp","DateTimeFormat","CookiesEnabled: ","responseStart","function","userAgentData","TTFB ~","serviceWorker","orientation"," cores"," (mobile)","Screen: ","length","connection","doNotTrack","upright","rtt","rttMs","isArray",", display-mode standalone: ","3582696pMLoIV","matches","1140630wEpJUM"," | ","911008RXiMcX","Languages: ","onLine","3397359Fpyrxn","availWidth"," (UTC","not charging","enabled"," ms","addEventListener","timeZone","transferSize","requestStart","abs","controller","navigation"];return(n=function(){return t})()}async function o(){const t=a,e=[];let n=t(208);if("connection"in(o=navigator)&&void 0!==o[a(283)]){const n=navigator.connection;n?.[t(237)]&&e.push(n.effectiveType),typeof n?.[t(217)]===t(193)&&e[t(223)]("~"+n[t(217)]+t(211)),typeof n?.rtt===t(193)&&e.push(n[t(286)]+t(185)),n?.[t(201)]&&e[t(223)](t(201))}else{const o=function(t=20){const e=a,n=performance[e(235)]("navigation")[e(262)](t=>"navigation"===t.entryType),o=n?Math.max(0,n.responseStart-n[e(189)]):void 0,i=performance[e(235)]("resource")[e(251)](t=>"resource"===t[e(196)]);let r=0,c=0;for(const n of i.slice(0,Math.max(0,t))){const t=n[e(206)]>0?n[e(206)]:n.transferSize>0?n[e(188)]:0,o=n[e(239)];t>0&&o>0&&Number.isFinite(o)&&(r+=t,c+=o)}const s=c>0?8*r/c:void 0;return{downlinkMbps:"number"==typeof s?s/1e3:void 0,rttMs:o}}();typeof o[t(219)]===t(193)&&e[t(223)]("~"+o[t(219)][t(214)](1)+t(211)),"number"==typeof o[t(287)]&&e[t(223)](t(276)+Math[t(198)](o[t(287)])+t(185)),n="inferred"}var o;const i=performance.getEntriesByType(t(192)).find(e=>e[t(196)]===t(192));if(i){const n=Math[t(243)](0,i[t(273)]-i[t(189)]);!e.some(e=>e.startsWith(t(242)))&&e.push(t(276)+Math[t(198)](n)+t(185))}return e[t(282)]?"Network: "+e[t(228)](", ")+" ("+n+")":void 0}function i(){const t=a;if(!function(t){const e=a;return"userAgentData"in t&&typeof t[e(275)]!==e(212)}(navigator))return;const e=navigator.userAgentData,n=Array[t(288)](e.brands)?e.brands.map(e=>e[t(263)]+" "+e[t(210)]).join(", "):void 0,o=e.platform?""+e[t(269)]+(e[t(261)]?t(280):""):void 0;return[n&&t(231)+n,o&&t(229)+o][t(251)](Boolean)[t(228)](t(293))||void 0}function a(t,e){t-=185;return n()[t]}async function r(t=400){const e=a;if(e(222)in window&&window[e(202)])return new Promise(n=>{const o=e;let i=!1;const r=t=>{const e=a,o=typeof t.beta===e(193)?t[e(264)]:void 0,c=typeof t[e(255)]===e(193)?t[e(255)]:void 0;if(void 0===o||void 0===c)return;if(i)return;i=!0,window[e(250)](e(205),r);const s=function(t,e){const n=a,o=Math[n(190)](t),i=Math.abs(e);return n(o<15&&i<15?215:o>=60?285:203)}(o,c);n(e(236)+s+e(256)+Math[e(198)](o)+e(268)+Math[e(198)](c)+"°)")};window[o(232)](()=>{i||(i=!0,window[o(250)]("deviceorientation",r),n(void 0))},t),window[o(186)](o(205),r,{passive:!0})})}async function c(){const t=a;if(function(t){const e=a;return e(233)in t&&typeof t[e(233)]===e(274)}(navigator))try{const e=await navigator[t(233)](),n=Math[t(198)](100*e[t(246)]);return"Battery: "+[(Number[t(213)](n)?n:0)+"%",e[t(245)]?"charging":t(300)][t(228)](", ")}catch{}}async function s(){const t=a,e=(new(Intl[t(271)]))[t(247)]()[t(187)],n=function(t){const e=a,n=t<=0?"+":"-",o=Math[e(190)](t);return""+n+String(Math[e(254)](o/60))[e(199)](2,"0")+":"+String(o%60).padStart(2,"0")}((new Date).getTimezoneOffset()),s=[];s[t(223)]("Language: "+navigator.language),navigator.languages?.length&&s[t(223)](t(295)+navigator.languages[t(228)](", ")),s[t(223)]("User agent: "+navigator.userAgent);const u=i();u&&s.push(u),s[t(223)]("Timezone: "+e+t(299)+n+")"),s[t(223)](t(209)+(new Date)[t(257)]());const l=window[t(260)]||1;s[t(223)](t(281)+screen[t(248)]+"x"+screen[t(194)]+" @"+l+t(220)+screen[t(298)]+"x"+screen.availHeight+", "+screen[t(218)]+t(252));const d=screen.orientation&&t(224)in screen[t(278)]?screen[t(278)][t(224)]:void 0;s[t(223)](t(207)+window.innerWidth+"x"+window.innerHeight+(d?", orientation "+d:"")),s[t(223)](t(240)+navigator[t(238)]+t(279));const f=await o();f&&s.push(f),s.push(function(){const t=a,e=typeof matchMedia===t(274)&&matchMedia(t(216))[t(291)],n="function"==typeof matchMedia&&matchMedia(t(204))[t(291)],o=e?t(266):n?t(200):"unknown",i=navigator[t(197)];return t(227)+o+", maxTouchPoints "+i}());const m=await c();m&&s.push(m),s[t(223)](t(272)+(navigator.cookieEnabled?t(221):"no")+t(234)+(navigator[t(284)]??"n/a")),s.push("Online: "+(navigator[t(296)]?t(221):"no")),document[t(267)]&&s[t(223)](t(259)+document[t(267)]),s[t(223)](function(){const t=a,e=typeof matchMedia===t(274)&&matchMedia(t(226)).matches,n=Boolean(navigator[t(277)]?.[t(191)]);return t(195)+(n?t(265):"no SW")+t(289)+(e?t(221):"no")}());const p=await r();p&&s.push(p);const g=localStorage[t(249)](t(241))===t(301);return s.push(g?"Device geolocation: enabled":t(230)),s[t(228)](t(293))}!function(){const t=a,e=n();for(;;)try{if(725100===parseInt(t(270))/1*(-parseInt(t(225))/2)+parseInt(t(297))/3+-parseInt(t(294))/4+-parseInt(t(292))/5+-parseInt(t(290))/6+parseInt(t(244))/7*(parseInt(t(258))/8)+parseInt(t(253))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const u=m;!function(){const t=m,e=J();for(;;)try{if(544477===parseInt(t(440))/1+parseInt(t(604))/2*(parseInt(t(594))/3)+-parseInt(t(485))/4+parseInt(t(513))/5*(parseInt(t(496))/6)+-parseInt(t(617))/7*(-parseInt(t(519))/8)+-parseInt(t(551))/9+-parseInt(t(562))/10*(parseInt(t(578))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let l,d="",f=0;function m(t,e){t-=424;return J()[t]}let p;const g=u(514),w=u(430),h=u(431);let y=!1,v=!1,b=!1,T=!1,S=!1,I=!1;const x=u(507),E=u(464),M=u(597),A=u(564),L=u(482),k="__intent__sdk__initialized__",N=[u(547),u(521),"a",u(591),'input[type="button"]',u(428),u(512),u(560)][u(425)](","),H=u(516),D=u(493),B=new Set([u(458),u(457),u(467),u(555),u(490),"username","email",u(477),u(506),u(584),u(573),u(433),u(534),u(561),u(626),u(559),"address-level3",u(426),u(480),u(613),u(497),u(439),u(556),u(443),u(470),u(582),u(631),u(632),u(524),"cc-csc",u(612),u(500),u(544),u(474),u(579),u(607),u(449)]);function P(...t){const e=u;try{typeof localStorage!==e(536)&&localStorage[e(435)](h)===e(505)&&console[e(459)](...t)}catch{}}function O(t){return"<"+function(t){const e=u,n=(t.getAttribute?.(D)??"")[e(605)]();if(n)return n;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t[e(471)]||"")[e(549)]()[e(605)]().split(/\s+/)[e(589)](Boolean):[];return t instanceof HTMLInputElement&&t[e(503)]===e(466)?e(484):o[e(528)](t=>t.startsWith(e(424)))?e(520):o.some(t=>["name","given-name","family-name",e(467),e(439),e(556),e(470)].includes(t))?e(478):o[e(481)]("email")?e(634):o[e(481)](e(477))?e(498):o.some(t=>t[e(615)](e(500)))?e(558):o[e(481)](e(607))?e(452):o[e(528)](t=>[e(573),e(433),e(534),e(561),e(626),e(559),e(554),e(426),"postal-code",e(480),e(613)][e(481)](t))?"Address":o.includes("organization")||o.includes("organization-title")?e(593):t[e(450)]?.(H)?.[e(549)]()===e(451)?"Redacted":e(580)}(t)+">"}function C(t){const e=u;return t.hasAttribute(e(509))||t[e(450)](H)?.[e(549)]()===e(629)}function z(t){return!C(t)&&(!!function(t){const e=u,n=t.getAttribute(H);return""===n||n?.[e(549)]()===e(451)}(t)||!!function(t){const e=u;if(t instanceof HTMLInputElement){if(t[e(503)]===e(466))return!0;if(t[e(503)]===e(501))return!1;const n=t.getAttribute(e(611));if(n&&"searchbox"===n[e(549)]())return!1;if((t[e(471)]||"")[e(549)]().trim()[e(476)](/\s+/).filter(Boolean)[e(528)](t=>B[e(596)](t)))return!0}if(t instanceof HTMLTextAreaElement&&(t[e(471)]||"").toLowerCase().trim()[e(476)](/\s+/)[e(589)](Boolean).some(t=>B[e(596)](t)))return!0;return!1}(t))}const F=()=>localStorage[u(435)](g)===u(483);function U(t){return e[u(475)](t)}function G(t,n){const o=u,i=localStorage.getItem(L),a=null===i?void 0:Number(i),r=Number[o(619)](n)?Number(n):"number"==typeof a&&Number[o(619)](a)?a:86400,c=window[o(599)].protocol===o(550);e[o(494)](o(465),t,{expires:r/86400,path:"/",sameSite:o(525),...c&&{secure:!0}})}function W(){const t=u;e.remove(t(465),{path:"/"})}function _(){const t=u,e=U(t(465));if(!F())return e&&W(),void(d="");e?d=e:(d=crypto[t(531)](),G(d))}function R(){return _(),F()&&Boolean(d)&&function(){const t=u;return Boolean(localStorage[t(435)](x)?.[t(605)]()[t(535)])}()}function j(){return!R()||b}async function q(e){return p&&await p,p=(async()=>{const n=m;try{const o=performance.now(),i=performance[n(585)](),a=function(t){const e=u,n=t[e(627)](!1);return n instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array[e(572)](t[e(460)]).forEach(({name:t,value:o})=>{n[e(574)](t,o)}),n[e(456)]=z(t)?O(t):t[e(456)],t.disabled&&n.setAttribute(e(566),""),n[e(577)]):n instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array[e(572)](t.attributes).forEach(({name:t,value:o})=>{n[e(574)](t,o)}),n[e(456)]=z(t)?O(t):t.value,t[e(566)]&&n.setAttribute(e(566),""),n.outerHTML):t[e(577)]}(e),r=performance[n(585)]();P("[Timing] serialize: "+(r-i)[n(606)](2)+"ms");const c=e[n(429)](),s=performance.now(),l={left:window[n(620)],top:window[n(542)],right:window[n(620)]+window[n(533)],bottom:window[n(542)]+window[n(592)]},d=await t(document[n(576)],{useCORS:!0,x:window[n(620)],y:window.scrollY,width:window[n(533)],height:window[n(592)],scale:.6,logging:!1,onclone(t,e){const o=n,i=t.querySelectorAll(o(434));for(const t of i)if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){if(t[o(445)](o(509))||t.getAttribute(H)?.[o(549)]()===o(629))continue;let e=!1;const n=t[o(450)](H);if((""===n||"mask"===n?.[o(549)]())&&(e=!0),t.type===o(466)&&(e=!0),!e){const n=(t.getAttribute(o(471))||"")[o(549)]().trim()[o(476)](/\s+/)[o(589)](Boolean);if(t[o(503)]===o(501)||t[o(450)](o(611))?.[o(549)]()===o(587))continue;n[o(528)](t=>B[o(596)](t))&&(e=!0)}e&&(t[o(456)]=O(t))}},ignoreElements(t){const e=n;if(!(t instanceof Element))return!1;if(C(t))return!0;const o=t[e(429)](),i={left:o[e(575)]+window.scrollX,top:o[e(427)]+window[e(542)],right:o[e(541)]+window.scrollX,bottom:o[e(623)]+window[e(542)]},a=100;if(i.right<l[e(575)]-a||i[e(575)]>l[e(541)]+a||i[e(623)]<l.top-a||i[e(427)]>l[e(623)]+a){const n=window[e(447)](t),{position:o}=n;if(o===e(538)||"absolute"===o){const t=500;return i.right<l[e(575)]-t||i[e(575)]>l[e(541)]+t||i.bottom<l[e(427)]-t||i[e(427)]>l[e(623)]+t}return!0}return!1}}),f=performance[n(585)]()-s;P(n(495)+f[n(606)](2)+"ms");const m=performance[n(585)](),p=d[n(432)](n(570),.8),g=performance.now()-m;P(n(438)+g[n(606)](2)+"ms");const w=performance.now()-o;return P(n(618)+w[n(606)](2)+"ms"),{html:a,bbox:{x:c.x,y:c.y,w:c[n(487)],h:c[n(437)]},img:p}}finally{p=void 0}})(),p}function X(){const t=u,e=localStorage[t(435)](x),n={"Content-Type":t(610)};return e&&(n["x-sl-access-token"]=e),d&&(n[t(510)]=d),n}async function Q(t){const e=u,n=(localStorage[e(435)](M)??A)+e(444),o=localStorage.getItem(x)??void 0,i=JSON[e(448)]({...t,clientId:o});try{if((await fetch(n,{method:e(546),headers:X(),body:i,keepalive:!0,credentials:e(502)})).ok)return}catch{}try{await async function(t){const e=u,n=(localStorage[e(435)](M)??A)+e(614);if(!(await fetch(n,{method:"POST",headers:X(),body:JSON[e(448)](t),keepalive:!0,credentials:e(502),cache:e(530)})).ok)throw new Error("pixel body fallback failed")}(t)}catch{}}function J(){const t=["innerWidth","address-line2","length","undefined","Enter","fixed","longitude","permissions","right","scrollY","visibilityState","bday-day","click","POST","button","href","toLowerCase","https:","5897502QvkxyQ","pointerdown","keydown","address-level3","family-name","cc-given-name","lon","Birthday","address-level2","[onclick]","address-line3","20rMOHHA","geolocation","https://intent.callimacus.ai","aria-label","disabled","code","max","timestamp","image/jpeg","hidden","from","street-address","setAttribute","left","body","outerHTML","7865506VyJQkp","bday-year","Sensitive","altitudeAccuracy","cc-number","localhost","organization-title","now","intent","searchbox","focus","filter","latitude",'input[type="submit"]',"innerHeight","Organization","57olfGzG","message","has","intent:data-base-url","onLine","location","push","toISOString","page-focus","query","70350bRmKeS","trim","toFixed","sex","textContent","pageview","application/json","role","cc-type","country-name","/p.gif","startsWith","lat","7KmBmGo","[Timing] capture-total: ","isFinite","scrollX","canSend","target","bottom","hasFocus","querySelectorAll","address-level1","cloneNode","scroll","ignore",'=""]',"cc-exp","cc-exp-month","geoEnabled","Email","cc-","join","address-level4","top",'[role="button"]',"getBoundingClientRect","intent:geo","intent:debug","toDataURL","address-line1","input, textarea","getItem","html","height","[Timing] jpeg-encoding: ","cc-name","1034647MPTfCO","page-blur","clearTimeout","cc-additional-name","/events","hasAttribute","visibilitychange","getComputedStyle","stringify","webauthn","getAttribute","mask","Sex","key","img","POSITION_UNAVAILABLE","value","given-name","name","log","attributes","storage","input-submit","referrer","intent:data-ip","intent_sid","password","additional-name","protocol","forEach","cc-family-name","autocomplete","TEXTAREA","UNKNOWN","bday-month","get","split","tel","Name","load","country","includes","intent:data-sid-max-age","granted","Password","3023904mvniya","isSecureContext","width","hostname","removeEventListener","nickname","setTimeout","closest","data-intent-redact-label","set","[Timing] html2canvas-pro: ","11694MxaECJ","postal-code","Phone","title","bday","search","omit","type","altitude","enabled","organization","intent:data-client-id","number","data-html2canvas-ignore","x-intent-sid","accuracy",'[role="link"]',"2675QqIhks","intent:consent","<no visible label>","data-intent-redact","entries","addEventListener","5121088quEPCl","Credit card","a[href]","heading","Redacted","cc-exp-year","Lax","speed","defineProperty","some","min","no-store","randomUUID","tagName"];return(J=function(){return t})()}async function K(t,e,n,o){const i=u;if(!R())return;const a={...e,localTime:(new Date)[i(601)]()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(a[i(456)]=z(n)?O(n):n[i(456)]);let r="",c={x:0,y:0,w:0,h:0},s="";const l=!(t===i(628)||t===i(441)||t===i(602)),d=Date[i(585)](),m=d-f>=0;let p=o;const g=t===i(545)||t===i(462)||t===i(609);l&&(g&&!p||!p&&m)&&(p=await q(n),f=d),p&&(r=p[i(436)],c=p.bbox,s=p[i(454)]);const w=t===i(441)||"page-focus"===t||t===i(609),h={ts:Date[i(585)](),event:t,props:a,html:w?"":r,bbox:c,img:s};await Q(h)}function V(){const t=u;return localStorage[t(435)](w)===t(505)}async function Y(t={}){const e=u;if(!R())return;const n=typeof t[e(616)]===e(508)&&"number"==typeof t[e(557)];if(n&&v)return;if(!n&&y)return;const o=localStorage[e(435)](E),i={context:await s()};o&&(i.ip=o);for(const[n,o]of Object[e(517)](t))i[n]=o;await K("context",i,document[e(576)],{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),n?v=!0:y=!0}async function Z(){const t=u,e={canSend:R(),geoEnabled:V(),deviceGeoSent:v};if(!e[t(621)]||!e[t(633)]||e.deviceGeoSent)return;if(location[t(468)],location[t(488)],!(t(563)in navigator))return;if(S)return;S=!0,b=!0;const n={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date.now();try{await(navigator[t(540)]?.[t(603)]({name:"geolocation"}))}catch(t){}await new Promise(e=>{let o=!1;const i=async(t,n,i)=>{o||(o=!0,Date[m(585)](),Number.isFinite(t)&&Number.isFinite(n)&&await Y({lat:t,lon:n,source:"device"}),S=!1,b=!1,I=!0,e())};navigator[t(563)].getCurrentPosition(t=>{const e=m,n=t.coords;i(n[e(590)],n[e(539)],(n[e(511)],typeof n[e(504)]===e(508)&&n[e(504)],typeof n[e(581)]===e(508)&&n[e(581)],typeof n[e(522)]===e(508)&&n[e(522)],typeof n[e(526)]===e(508)&&n[e(526)],t[e(569)],document[e(624)]()))},t=>{const e=m,n=t?.[e(567)];1===n||(2===n?e(455):3===n||e(473)),t?.[e(595)],navigator[e(598)],document[e(543)],document[e(624)](),window[e(486)],location[e(468)],location[e(488)],i(void 0,void 0)},n)})}function $(){const t=u;if(T||!V()||v)return;T=!0;const e=()=>{const t=m;window[t(489)]("pointerdown",e,!0),window[t(489)](t(553),e,!0),Z()};window.addEventListener(t(552),e,!0),window[t(518)](t(553),e,!0)}_();let tt=!document[u(571)]&&document[u(624)](),et=document[u(624)]();function nt(){const t=u;if(j())return;const e=!document[t(571)]&&document[t(624)]();e&&(et=!0),et||e?e!==tt&&(tt=e,K(t(e?602:441),{},document[t(576)])):tt=e}function ot(){const t=u;(function(){const t=u,e=globalThis;return!e[k]&&(Object[t(527)](e,k,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window.addEventListener(t(479),()=>{const e=t;R()&&(Y(),(window[e(486)]||location.hostname===e(583))&&(V()&&$(),window[e(518)](e(588),()=>{!v&&V()&&!S&&I&&Z()}),document[e(518)](e(446),()=>{!document[e(571)]&&!v&&V()&&!S&&I&&Z()})))}),window[t(518)](t(461),e=>{const n=t;e[n(453)]===g&&(function(){const t=u;return localStorage.getItem(g)===t(483)}()?(y=!1,Y(),V()&&$()):(y=!1,v=!1)),e[n(453)]===w&&(V()?$():v=!1)}),window[t(518)](t(479),()=>{const e=t;R()&&K(e(609),{url:window[e(599)][e(548)],title:document[e(499)],ref:document[e(463)]},document[e(576)])}),addEventListener("pointerdown",function(t,e){let n=0;return(...o)=>{const i=Date[m(585)]();i-n>=e&&(n=i,t(...o))}}(e=>{const n=t;if(j())return;const o=e[n(622)]instanceof Element?e[n(622)][n(492)](N):null;o instanceof HTMLElement&&(l=q(o))},50),{capture:!0,passive:!0}),addEventListener(t(545),async e=>{const n=t;if(j())return;if(!(e.target instanceof Element))return;const o=e[n(622)].closest(N);if(!(o instanceof HTMLElement))return;const i=function(t){const e=u;return t[e(450)](e(565))??t[e(499)]??t[e(608)]?.[e(605)]()??e(515)}(o);(async()=>{const t=n,e=l?await l:void 0;l=void 0,K("click",{tag:o[t(532)],label:i},o,e)})()},!0),addEventListener("keydown",e=>{const n=t;if(!j()&&e[n(453)]===n(537)){const t=e.target;if(t instanceof HTMLElement&&("INPUT"===t[n(532)]||t[n(532)]===n(472))){const e=t instanceof HTMLInputElement?t[n(458)]:void 0,o=t.id||void 0;K("input-submit",{tag:t.tagName,name:e??o},t)}}},{capture:!0}),[t(588),"blur"].forEach(e=>{window[t(518)](e,nt)}),document[t(518)](t(446),nt),window[t(518)](t(628),function(t,e){let n;return(...o)=>{const i=m;void 0!==n&&window[i(442)](n),n=window[i(491)](()=>{n=void 0,t(...o)},e)}}(()=>{const e=t;j()||K(e(628),{scrollX:window[e(620)],scrollY:window[e(542)]},document[e(576)])},250),{passive:!0}),window[t(586)]??={send(e,n){const o=t;R()&&K(e,n,document[o(576)])}})}function it(t,e){const n=st;try{if(void 0===e)return;localStorage[n(244)](t,e?n("intent:consent"===t?235:236):"disabled")}catch{}}function at(t={}){const e=st;if(localStorage.setItem(e(257),t[e(250)]??""),localStorage[e(244)](e(255),t.ip??""),localStorage[e(244)]("intent:data-base-url",t[e(231)]??e(254)),typeof t[e(247)]===e(233)&&localStorage[e(244)](e(239),String(t[e(247)])),it("intent:consent",t[e(246)]),it(e(256),t[e(243)]),it(e(249),t[e(232)]),t[e(246)]){if(!U("intent_sid")){G(typeof crypto!==e(252)&&"function"==typeof crypto[e(234)]?crypto[e(234)]():Date.now()+"-"+Math.random(),t[e(247)])}}ot()}function rt(){const t=["debug","number","randomUUID","granted","enabled","2575833kapIzp","25781373RdENQG","intent:data-sid-max-age","930ZvzGVt","933775cZTlkh","intent_sid","geo","setItem","8270GYGgqu","consent","sidMaxAgeSeconds","1651792DQKqye","intent:debug","clientId","3029048IKTGfN","undefined","223302mpDASl","https://intent.callimacus.ai","intent:data-ip","intent:geo","intent:data-client-id","35xvvvyP","baseUrl"];return(rt=function(){return t})()}function ct(){return U(st(242))}function st(t,e){t-=231;return rt()[t]}function ut(){_()}function lt(){W()}function dt(t){const e=st;Number.isFinite(t)&&localStorage[e(244)]("intent:data-sid-max-age",String(t));const n=U(e(242));n&&G(n,t)}!function(){const t=st,e=rt();for(;;)try{if(782108===parseInt(t(241))/1+-parseInt(t(253))/2+-parseInt(t(237))/3+-parseInt(t(251))/4+parseInt(t(245))/5*(-parseInt(t(240))/6)+-parseInt(t(258))/7*(parseInt(t(248))/8)+parseInt(t(238))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{lt as clearIntentSessionId,ut as ensureIntentSessionId,ct as getIntentSessionId,at as initIntent,it as setFlag,dt as setIntentSessionMaxAge};
4
+ import t from"html2canvas-pro";import e from"js-cookie";function n(t,e){t-=249;return s()[t]}async function o(){const t=n,e=[];let o=t(260);if(function(t){const e=n;return e(357)in t&&typeof t.connection!==e(333)}(navigator)){const n=navigator[t(357)];n?.effectiveType&&e[t(276)](n[t(330)]),typeof n?.downlink===t(343)&&e[t(276)]("~"+n.downlink+t(300)),typeof n?.[t(325)]===t(343)&&e[t(276)](n[t(325)]+t(307)),n?.[t(319)]&&e[t(276)](t(319))}else{const i=function(t=20){const e=n,o=performance[e(365)](e(270))[e(256)](t=>t[e(340)]===e(270)),i=o?Math.max(0,o[e(322)]-o.requestStart):void 0,a=performance[e(365)](e(358))[e(347)](t=>t[e(340)]===e(358));let r=0,c=0;for(const n of a[e(295)](0,Math[e(262)](0,t))){const t=n[e(352)]>0?n.encodedBodySize:n[e(293)]>0?n[e(293)]:0,o=n[e(309)];t>0&&o>0&&Number[e(249)](o)&&(r+=t,c+=o)}const s=c>0?8*r/c:void 0;return{downlinkMbps:typeof s===e(343)?s/1e3:void 0,rttMs:i}}();typeof i[t(321)]===t(343)&&e[t(276)]("~"+i.downlinkMbps[t(279)](1)+t(300)),typeof i.rttMs===t(343)&&e[t(276)]("TTFB ~"+Math[t(349)](i[t(269)])+t(307)),o=t(354)}const i=performance[t(365)](t(270))[t(256)](e=>"navigation"===e[t(340)]);if(i){const n=Math[t(262)](0,i.responseStart-i[t(356)]);!e[t(320)](e=>e[t(337)](t(344)))&&e[t(276)](t(334)+Math[t(349)](n)+t(307))}return e[t(265)]?t(292)+e[t(271)](", ")+" ("+o+")":void 0}function i(){const t=n;if(!function(t){const e=n;return e(355)in t&&typeof t[e(355)]!==e(333)}(navigator))return;const e=navigator[t(355)],o=Array[t(332)](e[t(255)])?e[t(255)].map(e=>e[t(336)]+" "+e[t(342)])[t(271)](", "):void 0,i=e[t(277)]?""+e[t(277)]+(e[t(282)]?t(363):""):void 0;return[o&&t(335)+o,i&&t(278)+i][t(347)](Boolean)[t(271)](t(308))||void 0}async function a(t=400){const e=n;if(e(304)in window&&window.isSecureContext)return new Promise(o=>{const i=e;let a=!1;const r=t=>{const e=n,i=typeof t.beta===e(343)?t[e(362)]:void 0,c=typeof t.gamma===e(343)?t[e(317)]:void 0;if(void 0===i||void 0===c)return;if(a)return;a=!0,window.removeEventListener(e(366),r);const s=function(t,e){const o=n,i=Math.abs(t),a=Math[o(311)](e);return i<15&&a<15?o(296):i>=60?"upright":o(274)}(i,c);o("Tilt: "+s+" (β "+Math.round(i)+e(350)+Math[e(349)](c)+"°)")};window[i(284)](()=>{const t=i;a||(a=!0,window[t(331)](t(366),r),o(void 0))},t),window[i(360)](i(366),r,{passive:!0})})}async function r(){const t=n;var e;if("getBattery"in(e=navigator)&&"function"==typeof e[n(327)])try{const e=await navigator[t(327)](),n=Math[t(349)](100*e.level),o=[(Number[t(249)](n)?n:0)+"%",e[t(254)]?"charging":t(346)];return t(290)+o[t(271)](", ")}catch{}}async function c(){const t=n,e=(new(Intl[t(316)]))[t(338)]()[t(302)],c=function(t){const e=n,o=t<=0?"+":"-",i=Math.abs(t);return""+o+String(Math[e(306)](i/60)).padStart(2,"0")+":"+String(i%60)[e(266)](2,"0")}((new Date).getTimezoneOffset()),s=[];s.push(t(289)+navigator[t(348)]),navigator[t(275)]?.[t(265)]&&s[t(276)](t(263)+navigator[t(275)].join(", ")),s[t(276)]("User agent: "+navigator[t(272)]);const d=i();d&&s[t(276)](d),s[t(276)](t(351)+e+t(315)+c+")"),s.push("Local time: "+(new Date)[t(261)]());const l=window[t(326)]||1;s[t(276)]("Screen: "+screen.width+"x"+screen[t(353)]+" @"+l+t(303)+screen.availWidth+"x"+screen[t(314)]+", "+screen[t(341)]+t(310));const u=screen[t(339)]&&t(286)in screen[t(339)]?screen[t(339)].type:void 0;s[t(276)](t(287)+window[t(329)]+"x"+window[t(281)]+(u?t(364)+u:"")),s[t(276)](t(318)+navigator[t(250)]+t(294));const f=await o();f&&s[t(276)](f),s[t(276)](function(){const t=n,e=typeof matchMedia===t(305)&&matchMedia("(pointer: coarse)")[t(298)],o=typeof matchMedia===t(305)&&matchMedia(t(359))[t(298)],i=t(e?291:o?324:323),a=navigator.maxTouchPoints;return t(268)+i+", maxTouchPoints "+a}());const m=await r();m&&s[t(276)](m),s[t(276)]("CookiesEnabled: "+(navigator[t(301)]?t(259):"no")+t(264)+(navigator.doNotTrack??"n/a")),s[t(276)]("Online: "+(navigator[t(283)]?"yes":"no")),document[t(257)]&&s.push(t(299)+document[t(257)]),s.push(function(){const t=n,e=typeof matchMedia===t(305)&&matchMedia("(display-mode: standalone)")[t(298)],o=Boolean(navigator[t(328)]?.controller);return t(297)+(o?"SW-controlled":t(273))+", display-mode standalone: "+(e?t(259):"no")}());const p=await a();p&&s[t(276)](p);const g=localStorage[t(251)](t(288))===t(313);return s[t(276)](g?"Device geolocation: enabled":t(280)),s[t(271)](t(308))}function s(){const t=["TTFB","3033225rOpEUX","not charging","filter","language","round","°, γ ","Timezone: ","encodedBodySize","height","inferred","userAgentData","requestStart","connection","resource","(pointer: fine)","addEventListener","12769552dUfEfa","beta"," (mobile)",", orientation ","getEntriesByType","deviceorientation","isFinite","hardwareConcurrency","getItem","18639PVkzfJ","759821hnOSOR","charging","brands","find","referrer","722894oLPwxC","yes","browser API","toString","max","Languages: ","; DNT: ","length","padStart","1506106gkeFYX","Pointer/Touch: ","rttMs","navigation","join","userAgent","no SW","reclined","languages","push","platform","Platform: ","toFixed","Device geolocation: disabled","innerHeight","mobile","onLine","setTimeout","80USNkSj","type","Viewport: ","intent:geo","Language: ","Battery: ","coarse","Network: ","transferSize"," cores","slice","flat","PWA: ","matches","Referrer: "," Mbps","cookieEnabled","timeZone","x (avail ","DeviceOrientationEvent","function","floor"," ms"," | ","duration","-bit)","abs","5696922gPaKkK","enabled","availHeight"," (UTC","DateTimeFormat","gamma","CPU: ","saveData","some","downlinkMbps","responseStart","unknown","fine","rtt","devicePixelRatio","getBattery","serviceWorker","innerWidth","effectiveType","removeEventListener","isArray","undefined","TTFB ~","UA brands: ","brand","startsWith","resolvedOptions","orientation","entryType","colorDepth","version","number"];return(s=function(){return t})()}!function(){const t=n,e=s();for(;;)try{if(478350===-parseInt(t(253))/1+-parseInt(t(258))/2+parseInt(t(252))/3*(-parseInt(t(285))/4)+-parseInt(t(345))/5+parseInt(t(312))/6+-parseInt(t(267))/7+parseInt(t(361))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const d=Z;!function(){const t=Z,e=G();for(;;)try{if(128767===parseInt(t(481))/1+-parseInt(t(636))/2+-parseInt(t(590))/3+-parseInt(t(531))/4+-parseInt(t(647))/5+parseInt(t(559))/6+parseInt(t(631))/7)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let l,u="",f=0;let m;const p="intent:consent",g="intent:geo",w=d(480);let h=!1,y=!1,v=!1,b=!1,S=!1,T=!1;const x=d(492),E=d(668),I=d(608),M=d(493),L=d(600),k=d(582),A=[d(598),d(521),"a",'input[type="submit"]',d(652),d(611),d(535),"[onclick]"][d(541)](","),N=d(508),D=d(536),H=new Set([d(614),d(563),d(602),d(501),d(482),d(483),d(594),"tel",d(655),d(625),d(653),d(534),d(539),"address-line3",d(499),"address-level2",d(565),d(567),d(605),d(497),d(588),d(542),d(660),d(522),d(523),d(537),d(658),d(616),"cc-exp-year","cc-csc",d(525),d(606),d(478),d(651),d(532),d(490),d(615)]);function B(...t){const e=d;try{typeof localStorage!==e(656)&&localStorage.getItem(w)===e(505)&&console[e(627)](...t)}catch{}}function O(t){return"<"+function(t){const e=d,n=(t[e(477)]?.(D)??"").trim();if(n)return n;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t.autocomplete||"").toLowerCase()[e(514)]().split(/\s+/).filter(Boolean):[];return t instanceof HTMLInputElement&&"password"===t[e(560)]?e(609):o.some(t=>t[e(640)](e(512)))?e(607):o[e(545)](t=>["name",e(563),e(501),e(602),e(542),e(660),e(523)][e(597)](t))?e(491):o.includes(e(594))?e(556):o[e(597)]("tel")?"Phone":o.some(t=>t[e(640)](e(606)))?e(496):o.includes(e(490))?e(489):o.some(t=>[e(653),e(534),e(539),"address-line3","address-level1",e(511),e(565),e(567),e(588),e(605),e(497)][e(597)](t))?e(573):o[e(597)](e(655))||o.includes(e(625))?e(543):t.getAttribute?.(N)?.[e(589)]()===e(546)?e(581):e(517)}(t)+">"}function P(t){const e=d;return t.hasAttribute(e(555))||t.getAttribute(N)?.[e(589)]()===e(576)}function C(t){return!P(t)&&(!!function(t){const e=d,n=t[e(477)](N);return""===n||n?.[e(589)]()===e(546)}(t)||!!function(t){const e=d;if(t instanceof HTMLInputElement){if(t.type===e(485))return!0;if(t[e(560)]===e(504))return!1;const n=t[e(477)]("role");if(n&&n[e(589)]()===e(635))return!1;if((t[e(626)]||"")[e(589)]()[e(514)]().split(/\s+/)[e(552)](Boolean)[e(545)](t=>H[e(621)](t)))return!0}if(t instanceof HTMLTextAreaElement&&(t[e(626)]||"")[e(589)]().trim().split(/\s+/)[e(552)](Boolean)[e(545)](t=>H[e(621)](t)))return!0;return!1}(t))}const U=()=>localStorage[d(515)](p)===d(618);function F(t){return e[d(476)](t)}function j(t,n){const o=d,i=localStorage.getItem(L),a=null===i?void 0:Number(i),r=Number.isFinite(n)?Number(n):"number"==typeof a&&Number[o(642)](a)?a:2592e3,c=window[o(666)][o(502)]===o(612);e[o(603)](o(659),t,{expires:r/86400,path:"/",sameSite:"Lax",...c&&{secure:!0}})}function z(){const t=d;e[t(637)](t(659),{path:"/"})}function R(){const t=d,e=F(t(659));if(!U())return e&&z(),void(u="");e?u=e:(u=crypto[t(644)](),j(u))}function _(){return R(),U()&&Boolean(u)&&function(){const t=d;return Boolean(localStorage[t(515)](x)?.[t(514)]()[t(620)])}()}function W(){return!_()||v}async function J(e){return m&&await m,m=(async()=>{const n=Z;try{const o=performance[n(584)](),i=performance[n(584)](),a=function(t){const e=d,n=t[e(553)](!1);return n instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array.from(t.attributes)[e(549)](({name:t,value:e})=>{n.setAttribute(t,e)}),n[e(487)]=C(t)?O(t):t.value,t[e(610)]&&n[e(569)](e(610),""),n[e(524)]):n instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array[e(638)](t.attributes)[e(549)](({name:t,value:o})=>{n[e(569)](t,o)}),n.value=C(t)?O(t):t.value,t[e(610)]&&n.setAttribute(e(610),""),n[e(524)]):t[e(524)]}(e),r=performance[n(584)]();B("[Timing] serialize: "+(r-i).toFixed(2)+"ms");const c=e[n(533)](),s=performance.now(),l={left:window[n(503)],top:window[n(564)],right:window.scrollX+window[n(506)],bottom:window[n(564)]+window.innerHeight},u=await t(document[n(528)],{useCORS:!0,x:window[n(503)],y:window.scrollY,width:window[n(506)],height:window.innerHeight,scale:.6,logging:!1,onclone(t,e){const o=n,i=t.querySelectorAll("input, textarea");for(const t of i)if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){if(t.hasAttribute("data-html2canvas-ignore")||t[o(477)](N)?.[o(589)]()===o(576))continue;let e=!1;const n=t[o(477)](N);if((""===n||n?.[o(589)]()===o(546))&&(e=!0),t[o(560)]===o(485)&&(e=!0),!e){const n=(t[o(477)](o(626))||"")[o(589)]().trim()[o(479)](/\s+/).filter(Boolean);if("search"===t[o(560)]||t.getAttribute("role")?.[o(589)]()===o(635))continue;n[o(545)](t=>H[o(621)](t))&&(e=!0)}e&&(t[o(487)]=O(t))}},ignoreElements(t){const e=n;if(!(t instanceof Element))return!1;if(P(t))return!0;const o=t[e(533)](),i={left:o.left+window[e(503)],top:o.top+window[e(564)],right:o[e(529)]+window[e(503)],bottom:o[e(587)]+window[e(564)]},a=100;if(i[e(529)]<l[e(574)]-a||i[e(574)]>l[e(529)]+a||i[e(587)]<l[e(577)]-a||i[e(577)]>l[e(587)]+a){const n=window.getComputedStyle(t),{position:o}=n;if(o===e(495)||o===e(527)){const t=500;return i.right<l[e(574)]-t||i[e(574)]>l.right+t||i[e(587)]<l.top-t||i[e(577)]>l.bottom+t}return!0}return!1}}),f=performance[n(584)]()-s;B(n(558)+f[n(519)](2)+"ms");const m=performance.now(),p=u[n(596)](n(622),.8),g=performance.now()-m;B(n(498)+g.toFixed(2)+"ms");const w=performance.now();return B("[Timing] capture-total: "+(w-o).toFixed(2)+"ms"),{html:a,bbox:{x:c.x,y:c.y,w:c[n(518)],h:c[n(520)]},img:p}}finally{m=void 0}})(),m}function q(){const t=d,e=localStorage[t(515)](x),n={"Content-Type":t(639)};return e&&(n[t(530)]=e),u&&(n["x-intent-sid"]=u),n}async function Y(t){const e=d,n=(localStorage[e(515)](I)??M)+e(591),o=localStorage[e(515)](x)??void 0,i=JSON[e(570)]({...t,clientId:o});try{if((await fetch(n,{method:"POST",headers:q(),body:i,keepalive:!0,credentials:e(526)})).ok)return}catch{}try{await async function(t){const e=d,n=(localStorage[e(515)](I)??M)+e(507);if(!(await fetch(n,{method:e(667),headers:q(),body:JSON[e(570)](t),keepalive:!0,credentials:e(526),cache:e(516)})).ok)throw new Error(e(650))}(t)}catch{}}async function X(t,e,n,o){const i=d;if(!_())return;const a={...e,localTime:(new Date)[i(630)]()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(a[i(487)]=C(n)?O(n):n.value);let r="",c={x:0,y:0,w:0,h:0},s="";const l=!(t===i(664)||t===i(657)||t===i(624)),u=Date[i(584)](),m=u-f>=0;let p=o;const g="click"===t||t===i(599)||t===i(509);l&&(g&&!p||!p&&m)&&(p=await J(n),f=u),p&&(r=p.html,c=p.bbox,s=p[i(645)]);const w=t===i(657)||t===i(624)||t===i(509),h={ts:Date.now(),event:t,props:a,html:w?"":r,bbox:c,img:s};await Y(h)}function Z(t,e){t-=475;return G()[t]}function G(){const t=["cc-exp-month","message","granted","lat","length","has","image/jpeg","focus","page-focus","organization-title","autocomplete","log","removeEventListener","hostname","toISOString","1069439oaNJMl","permissions","deviceGeoSent","min","searchbox","45370jsOqPh","remove","from","application/json","startsWith","title","isFinite","addEventListener","randomUUID","img","onLine","479955fUCJkz","altitude","hidden","pixel body fallback failed","bday-month",'input[type="button"]',"street-address","getCurrentPosition","organization","undefined","page-blur","cc-exp","intent_sid","cc-given-name","speed","code","referrer","scroll","entries","location","POST","intent:data-ip","pointerdown","heading","get","getAttribute","bday-day","split","intent:debug","207844nVfrBZ","nickname","username","INPUT","password","device","value","isSecureContext","Sex","sex","Name","intent:data-client-id","https://intent.callimacus.ai","push","fixed","Birthday","country-name","[Timing] jpeg-encoding: ","address-level1","closest","family-name","protocol","scrollX","search","enabled","innerWidth","/p.gif","data-intent-redact","pageview","hasFocus","address-level2","cc-","load","trim","getItem","no-store","Sensitive","width","toFixed","height","a[href]","cc-additional-name","cc-family-name","outerHTML","cc-type","omit","absolute","body","right","x-sl-access-token","687120qDRMsU","bday-year","getBoundingClientRect","address-line1",'[role="link"]',"data-intent-redact-label","cc-number","coords","address-line2","innerHeight","join","cc-name","Organization","keydown","some","mask","href","geolocation","forEach","tagName","blur","filter","cloneNode","UNKNOWN","data-html2canvas-ignore","Email","longitude","[Timing] html2canvas-pro: ","702636lxIjjD","type","intent","textContent","given-name","scrollY","address-level3","context","address-level4","querySelectorAll","setAttribute","stringify","lon","canSend","Address","left","PERMISSION_DENIED","ignore","top","max","visibilityState",'="mask"], [',"Redacted","__intent__sdk__initialized__","number","now","query","click","bottom","postal-code","toLowerCase","175512OiCRLe","/events","key","altitudeAccuracy","email","target","toDataURL","includes","button","input-submit","intent:data-sid-max-age","input, textarea","additional-name","set",'=""]',"country","bday","Credit card","intent:data-base-url","Password","disabled",'[role="button"]',"https:","latitude","name","webauthn"];return(G=function(){return t})()}function K(){const t=d;return localStorage[t(515)](g)===t(505)}async function V(t={}){const e=d;if(!_())return;const n=typeof t[e(619)]===e(583)&&"number"==typeof t[e(571)];if(n&&y)return;if(!n&&h)return;const o=localStorage[e(515)](E),i={context:await c()};o&&(i.ip=o);for(const[n,o]of Object[e(665)](t))i[n]=o;await X(e(566),i,document.body,{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),n?y=!0:h=!0}async function Q(){const t=d,e={canSend:_(),geoEnabled:K(),deviceGeoSent:y};if(!e[t(572)]||!e.geoEnabled||e[t(633)])return;if(!(t(548)in navigator))return;if(S)return;S=!0,v=!0;const n={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date[t(584)]();try{await(navigator[t(632)]?.[t(585)]({name:t(548)}))}catch(t){}await new Promise(e=>{const o=t;let i=!1;const a=async(t,n,o)=>{const a=Z;i||(i=!0,Date[a(584)](),Number[a(642)](t)&&Number[a(642)](n)&&await V({lat:t,lon:n,source:a(486)}),S=!1,v=!1,T=!0,e())};navigator[o(548)][o(654)](t=>{const e=Z,n=t[e(538)];a(n[e(613)],n[e(557)],(n.accuracy,typeof n[e(648)]===e(583)&&n[e(648)],typeof n[e(593)]===e(583)&&n.altitudeAccuracy,typeof n[e(475)]===e(583)&&n[e(475)],typeof n[e(661)]===e(583)&&n.speed,t.timestamp,document[e(579)],document[e(510)]()))},t=>{const e=Z,n=t?.[e(662)];1===n?e(575):2===n||(3===n||e(554)),t?.[e(617)],navigator[e(646)],document[e(579)],document.hasFocus(),window[e(488)],location[e(502)],location[e(629)],a(void 0,void 0)},n)})}function $(){const t=d;if(b||!K()||y)return;b=!0;const e=()=>{const t=Z;window[t(628)](t(669),e,!0),window[t(628)](t(544),e,!0),Q()};window[t(643)](t(669),e,!0),window[t(643)](t(544),e,!0)}R();let tt=!document[d(649)]&&document[d(510)](),et=document[d(510)]();function nt(){const t=d;if(W())return;const e=!document.hidden&&document[t(510)]();e&&(et=!0),et||e?e!==tt&&(tt=e,X(e?"page-focus":t(657),{},document[t(528)])):tt=e}function ot(){const t=d;(function(){const t=globalThis;return!t[k]&&(Object.defineProperty(t,k,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window[t(643)](t(513),()=>{const e=t;_()&&(V(),(window[e(488)]||"localhost"===location[e(629)])&&(K()&&$(),window.addEventListener(e(623),()=>{!y&&K()&&!S&&T&&Q()}),document[e(643)]("visibilitychange",()=>{!document.hidden&&!y&&K()&&!S&&T&&Q()})))}),window.addEventListener("storage",e=>{const n=t;e[n(592)]===p&&("granted"===localStorage[d(515)](p)?(h=!1,V(),K()&&$()):(h=!1,y=!1)),e[n(592)]===g&&(K()?$():y=!1)}),window[t(643)](t(513),()=>{const e=t;_()&&X(e(509),{url:window.location[e(547)],title:document[e(641)],ref:document[e(663)]},document[e(528)])}),addEventListener(t(669),function(t,e){let n=0;return(...o)=>{const i=Date[Z(584)]();i-n>=e&&(n=i,t(...o))}}(e=>{const n=t;if(W())return;const o=e[n(595)]instanceof Element?e[n(595)][n(500)](A):null;o instanceof HTMLElement&&(l=J(o))},50),{capture:!0,passive:!0}),addEventListener("click",async e=>{const n=t;if(W())return;if(!(e[n(595)]instanceof Element))return;const o=e[n(595)].closest(A);if(!(o instanceof HTMLElement))return;const i=function(t){const e=d;return t[e(477)]("aria-label")??t[e(641)]??t[e(562)]?.[e(514)]()??"<no visible label>"}(o);(async()=>{const t=n,e=l?await l:void 0;l=void 0,X(t(586),{tag:o[t(550)],label:i},o,e)})()},!0),addEventListener("keydown",e=>{const n=t;if(!W()&&"Enter"===e[n(592)]){const t=e[n(595)];if(t instanceof HTMLElement&&(t[n(550)]===n(484)||"TEXTAREA"===t[n(550)])){const e=t instanceof HTMLInputElement?t[n(614)]:void 0,o=t.id||void 0;X(n(599),{tag:t.tagName,name:e??o},t)}}},{capture:!0}),[t(623),t(551)].forEach(e=>{window[t(643)](e,nt)}),document[t(643)]("visibilitychange",nt),window[t(643)](t(664),function(t,e){let n;return(...o)=>{void 0!==n&&window.clearTimeout(n),n=window.setTimeout(()=>{n=void 0,t(...o)},e)}}(()=>{const e=t;W()||X("scroll",{scrollX:window[e(503)],scrollY:window[e(564)]},document.body)},250),{passive:!0}),window[t(561)]??={send(t,e){_()&&X(t,e,document.body)}})}function it(t,e){const n=at;try{if(void 0===e)return;localStorage.setItem(t,e?t===n(306)?"granted":n(304):"disabled")}catch{}}function at(t,e){t-=300;return dt()[t]}function rt(t={}){const e=at;if(localStorage[e(318)](e(307),t.clientId??""),localStorage.setItem("intent:data-ip",t.ip??""),localStorage[e(318)]("intent:data-base-url",t.baseUrl??e(316)),"number"==typeof t.sidMaxAgeSeconds&&localStorage[e(318)]("intent:data-sid-max-age",String(t[e(310)])),it("intent:consent",t[e(325)]),it(e(323),t[e(300)]),it("intent:debug",t[e(319)]),t.consent){if(!F(e(302))){j(typeof crypto!==e(315)&&typeof crypto[e(321)]===e(311)?crypto[e(321)]():Date[e(305)]()+"-"+Math[e(324)](),t.sidMaxAgeSeconds)}}ot()}function ct(){return F(at(302))}function st(){R()}function dt(){const t=["geo","3382YmHEJZ","intent_sid","66svYNRT","enabled","now","intent:consent","intent:data-client-id","775461tOrDLJ","2087764rtyAay","sidMaxAgeSeconds","function","493780EkdJGO","1757790FDaZZq","59YoeCky","undefined","https://intent.callimacus.ai","3527720sgeJLU","setItem","debug","isFinite","randomUUID","5656869oBNEHB","intent:geo","random","consent"];return(dt=function(){return t})()}function lt(){z()}function ut(t){const e=at;Number[e(320)](t)&&localStorage[e(318)]("intent:data-sid-max-age",String(t));const n=F(e(302));n&&j(n,t)}!function(){const t=at,e=dt();for(;;)try{if(421215===-parseInt(t(314))/1*(-parseInt(t(301))/2)+-parseInt(t(308))/3+parseInt(t(309))/4+parseInt(t(313))/5+-parseInt(t(303))/6*(-parseInt(t(312))/7)+-parseInt(t(317))/8+-parseInt(t(322))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{lt as clearIntentSessionId,st as ensureIntentSessionId,ct as getIntentSessionId,rt as initIntent,it as setFlag,ut as setIntentSessionMaxAge};