@solomei-ai/intent 1.4.4 → 1.4.5

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(){const t=["level","1644822kEKmSh","intent:geo","enabled","fine","timeZone","reclined","platform","15591771KRmhkA","userAgentData","getEntriesByType","join","removeEventListener","no SW","abs","setTimeout","padStart","5687658Jsmjcl","responseStart","flat","rtt","hardwareConcurrency","coarse","°, γ "," (mobile)","Pointer/Touch: ","Language: ","Online: ",", maxTouchPoints ","deviceorientation","effectiveType","serviceWorker","colorDepth","find","CookiesEnabled: ","undefined",", display-mode standalone: ","DeviceOrientationEvent","PWA: ","isArray","Platform: ","n/a","transferSize","brands","max","TTFB ~","encodedBodySize","Device geolocation: enabled"," ms","10060yXadrK","matches","yes","navigation","toString","function","UA brands: ","upright","Battery: ","Screen: ","Referrer: ","(display-mode: standalone)","toFixed","isSecureContext","Local time: ","Tilt: ","orientation","push","version","duration","Device geolocation: disabled","addEventListener","4103464uMQsVm","(pointer: coarse)","beta","inferred","-bit)","some","unknown","(pointer: fine)","Timezone: ","connection","devicePixelRatio","Languages: ","length","mobile","languages","x (avail ","type","14uZXNAD","User agent: ","floor","innerWidth","referrer","resource","filter","map","entryType","slice","requestStart","maxTouchPoints","getTimezoneOffset","downlink","doNotTrack","round","3176IVQwZd","909290SBRNWe","number","isFinite","downlinkMbps","528tyEHdC","charging"," | ","saveData","775004voXOmn","getBattery","resolvedOptions","language","rttMs","innerHeight","1PEZrUu","TTFB","availWidth"];return(e=function(){return t})()}function n(t,o){const a=e();return(n=function(t,e){return a[t-=151]})(t,o)}async function o(){const t=n,e=[];let o="browser API";if(function(t){const e=n;return e(268)in t&&typeof t.connection!==e(223)}(navigator)){const n=navigator[t(268)];n?.[t(218)]&&e[t(254)](n[t(218)]),typeof n?.[t(167)]===t(172)&&e[t(254)]("~"+n[t(167)]+" Mbps"),"number"==typeof n?.[t(208)]&&e[t(254)](n[t(208)]+t(236)),n?.[t(178)]&&e[t(254)]("saveData")}else{const a=function(t=20){const e=n,o=performance[e(198)](e(240))[e(221)](t=>t[e(162)]===e(240)),a=o?Math[e(232)](0,o[e(206)]-o[e(164)]):void 0,i=performance[e(198)](e(159))[e(160)](t=>t.entryType===e(159));let r=0,c=0;for(const n of i[e(163)](0,Math[e(232)](0,t))){const t=n[e(234)]>0?n[e(234)]:n[e(230)]>0?n[e(230)]:0,o=n[e(256)];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:a}}();typeof a[t(174)]===t(172)&&e[t(254)]("~"+a[t(174)][t(249)](1)+" Mbps"),typeof a[t(183)]===t(172)&&e[t(254)]("TTFB ~"+Math[t(169)](a[t(183)])+" ms"),o=t(262)}const a=performance[t(198)](t(240)).find(e=>e[t(162)]===t(240));if(a){const n=Math[t(232)](0,a[t(206)]-a[t(164)]);!e[t(264)](e=>e.startsWith(t(186)))&&e[t(254)](t(233)+Math[t(169)](n)+t(236))}return e[t(271)]?"Network: "+e[t(199)](", ")+" ("+o+")":void 0}function a(){const t=n;if(!function(t){const e=n;return"userAgentData"in t&&typeof t[e(197)]!==e(223)}(navigator))return;const e=navigator[t(197)],o=Array[t(227)](e[t(231)])?e[t(231)][t(161)](e=>e.brand+" "+e[t(255)])[t(199)](", "):void 0,a=e[t(195)]?""+e.platform+(e[t(272)]?t(212):""):void 0;return[o&&t(243)+o,a&&t(228)+a][t(160)](Boolean)[t(199)](" | ")||void 0}async function i(t=400){const e=n;if(e(225)in window&&window[e(250)])return new Promise(o=>{const a=e;let i=!1;const r=t=>{const e=n,a=typeof t[e(261)]===e(172)?t.beta:void 0,c=typeof t.gamma===e(172)?t.gamma:void 0;if(void 0===a||void 0===c)return;if(i)return;i=!0,window[e(200)]("deviceorientation",r);const s=function(t,e){const o=n,a=Math.abs(t),i=Math[o(202)](e);return o(a<15&&i<15?207:a>=60?244:194)}(a,c);o(e(252)+s+" (β "+Math[e(169)](a)+e(211)+Math[e(169)](c)+"°)")};window[a(203)](()=>{const t=a;i||(i=!0,window[t(200)](t(217),r),o(void 0))},t),window[a(258)](a(217),r,{passive:!0})})}async function r(){const t=n;if(function(t){const e=n;return e(180)in t&&"function"==typeof t[e(180)]}(navigator))try{const e=await navigator.getBattery(),n=Math[t(169)](100*e[t(188)]),o=[(Number[t(173)](n)?n:0)+"%",e[t(176)]?t(176):"not charging"];return t(245)+o[t(199)](", ")}catch{return}}async function c(){const t=n,e=(new Intl.DateTimeFormat)[t(181)]()[t(193)],c=function(t){const e=n,o=t<=0?"+":"-",a=Math[e(202)](t);return""+o+String(Math[e(156)](a/60)).padStart(2,"0")+":"+String(a%60)[e(204)](2,"0")}((new Date)[t(166)]()),s=[];s[t(254)](t(214)+navigator[t(182)]),navigator.languages?.[t(271)]&&s[t(254)](t(270)+navigator[t(151)][t(199)](", ")),s.push(t(155)+navigator.userAgent);const d=a();d&&s[t(254)](d),s[t(254)](t(267)+e+" (UTC"+c+")"),s[t(254)](t(251)+(new Date)[t(241)]());const u=window[t(269)]||1;s[t(254)](t(246)+screen.width+"x"+screen.height+" @"+u+t(152)+screen[t(187)]+"x"+screen.availHeight+", "+screen[t(220)]+t(263));const l=screen[t(253)]&&"type"in screen[t(253)]?screen[t(253)][t(153)]:void 0;s[t(254)]("Viewport: "+window[t(157)]+"x"+window[t(184)]+(l?", orientation "+l:"")),s.push("CPU: "+navigator[t(209)]+" cores");const f=await o();f&&s.push(f),s[t(254)](function(){const t=n,e=typeof matchMedia===t(242)&&matchMedia(t(260))[t(238)],o=typeof matchMedia===t(242)&&matchMedia(t(266))[t(238)],a=t(e?210:o?192:265),i="number"==typeof navigator[t(165)]?navigator[t(165)]:0;return t(213)+a+t(216)+i}());const m=await r();m&&s[t(254)](m),s[t(254)](t(222)+(navigator.cookieEnabled?t(239):"no")+"; DNT: "+(navigator[t(168)]??t(229))),s[t(254)](t(215)+(navigator.onLine?t(239):"no")),document[t(158)]&&s[t(254)](t(247)+document.referrer),s.push(function(){const t=n,e=typeof matchMedia===t(242)&&matchMedia(t(248)).matches,o=Boolean(navigator[t(219)]?.controller);return t(226)+(o?"SW-controlled":t(201))+t(224)+(e?"yes":"no")}());const p=await i();p&&s.push(p);const h=typeof localStorage!==t(223)&&localStorage.getItem(t(190))===t(191);return s[t(254)](t(h?235:257)),s[t(199)](t(177))}!function(){const t=n,o=e();for(;;)try{if(951796===parseInt(t(185))/1*(parseInt(t(179))/2)+-parseInt(t(189))/3+parseInt(t(170))/4*(-parseInt(t(237))/5)+-parseInt(t(205))/6+parseInt(t(154))/7*(parseInt(t(259))/8)+-parseInt(t(196))/9+-parseInt(t(171))/10*(-parseInt(t(175))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}();const s=et;!function(){const t=et,e=J();for(;;)try{if(239444===parseInt(t(443))/1+-parseInt(t(278))/2*(parseInt(t(436))/3)+-parseInt(t(438))/4*(parseInt(t(497))/5)+-parseInt(t(430))/6*(-parseInt(t(282))/7)+-parseInt(t(291))/8*(parseInt(t(488))/9)+parseInt(t(283))/10+-parseInt(t(340))/11*(-parseInt(t(475))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let d,u="",l=0;const f="intent:consent",m="intent:geo";let p=!1,h=!1,g=!1,w=!1,y=!1,v=!1;const b="intent:data-client-id",M=s(442),I=s(415),x=s(298),S=s(444),T=s(478),E=[s(349),s(268),"a",s(273),s(294),'[role="button"]','[role="link"]',s(296)].join(","),A=s(476),L=s(357),k=new Set([s(463),s(308),"additional-name",s(482),s(323),s(412),s(470),"tel",s(285),s(292),s(434),s(402),s(450),s(293),s(483),"address-level2",s(461),s(336),"country",s(466),s(369),s(395),s(416),s(364),s(451),s(290),s(457),s(454),s(448),s(359),s(447),s(424),"bday-day",s(307),s(284),"sex","webauthn"]);function N(t){return"<"+D(t)+">"}function D(t){const e=s,n=(t[e(486)]?.(L)??"")[e(493)]();if(n)return n;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t.autocomplete||"")[e(391)]()[e(493)]()[e(337)](/\s+/)[e(387)](Boolean):[];return t instanceof HTMLInputElement&&t[e(351)]===e(343)?e(354):o[e(403)](t=>t[e(462)](e(487)))?e(467):o.some(t=>["name",e(308),e(482),e(397),e(395),e(416),e(451)][e(267)](t))?"Name":o.includes(e(470))?e(471):o[e(267)]("tel")?e(413):o.some(t=>t.startsWith(e(424)))?"Birthday":o[e(267)](e(352))?e(425):o[e(403)](t=>[e(434),e(402),"address-line2",e(293),e(483),e(265),e(461),"address-level4","postal-code","country",e(466)].includes(t))?e(271):o[e(267)](e(285))||o[e(267)](e(292))?e(446):t[e(486)]?.(A)?.[e(391)]()===e(431)?e(366):e(344)}function H(t){const e=s;return t[e(315)](e(422))||t[e(486)](A)?.[e(391)]()===e(441)}function U(t){const e=s,n=t[e(486)](A);return""===n||n?.[e(391)]()===e(431)}function C(t){const e=s;if(t instanceof HTMLInputElement){if(t[e(351)]===e(343))return!0;if(t[e(351)]===e(309))return!1;const n=t.getAttribute(e(263));if(n&&n[e(391)]()===e(314))return!1;if((t[e(456)]||"")[e(391)]()[e(493)]()[e(337)](/\s+/)[e(387)](Boolean)[e(403)](t=>k[e(288)](t)))return!0}if(t instanceof HTMLTextAreaElement){if((t[e(456)]||"")[e(391)]().trim().split(/\s+/)[e(387)](Boolean)[e(403)](t=>k[e(288)](t)))return!0}return!1}function P(t){return!!U(t)||!!C(t)}function R(){const t=s,e=[],n=t=>{const e=et,n=t[e(279)]();if(n[e(406)]<=0||n[e(468)]<=0)return;const o=Math[e(286)](0,n[e(347)]),a=Math[e(286)](0,n[e(420)]),i=Math[e(286)](0,Math[e(472)](n[e(398)],window.innerWidth)-o),r=Math.max(0,Math[e(472)](n[e(310)],window.innerHeight)-a);return i<=0||r<=0?void 0:{x:o,y:a,w:i,h:r}};document[t(426)]("["+A+t(481)+A+t(427))[t(355)](o=>{const a=t,i=n(o);if(!i)return;const r=D(o)||a(366);e[a(356)]({...i,label:r})});return document[t(426)]("input, textarea")[t(355)](t=>{if(!U(o=t)&&!C(o))return;var o;if(H(t))return;const a=n(t);if(!a)return;const i=D(t);e.push({...a,label:i})}),e}const B=()=>localStorage.getItem(f)===s(464);function O(t){const e=s,n=encodeURIComponent(t)+"=",o=document[e(365)][e(337)]("; ");for(const t of o)if(t.startsWith(n))return decodeURIComponent(t.slice(n.length))}function W(t,e){const n=s,o=localStorage.getItem(S),a=null==o?void 0:Number(o),i=Number[n(322)](e)?Number(e):typeof a===n(407)&&Number[n(322)](a)?a:86400,r="https:"===window[n(469)].protocol,c=[n(386)+encodeURIComponent(t),n(327)+i,n(419),n(381)];r&&c[n(356)]("Secure"),document.cookie=c[n(334)]("; ")}function F(){const t=s,e="https:"===window[t(469)][t(326)];document[t(365)]=t(458)+(e?t(346):"")}function _(){const t=s,e=O(t(394));if(!B())return e&&F(),void(u="");if(e)return void(u=e);const n=typeof crypto!==t(303)&&typeof crypto[t(477)]===t(275)?crypto[t(477)]():Date[t(325)]()+"-"+Math[t(485)]();u=n,W(u)}function z(){return _(),B()&&Boolean(u)&&(()=>{const t=s,e=localStorage.getItem(b);return"string"==typeof e&&e[t(493)]()[t(374)]>0})()}function j(){return!z()||g}async function Q(e){const n=s,o=function(t){const e=s,n=t[e(371)](!1);return n instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array[e(306)](t[e(350)]).forEach(({name:t,value:o})=>{n[e(388)](t,o)}),n[e(272)]=P(t)?N(t):t[e(272)],t[e(372)]&&n[e(388)](e(372),""),n[e(345)]):n instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array[e(306)](t[e(350)]).forEach(({name:t,value:o})=>{n[e(388)](t,o)}),n.value=P(t)?N(t):t[e(272)],t.disabled&&n[e(388)]("disabled",""),n[e(345)]):t.outerHTML}(e),a=e[n(279)](),i={useCORS:!0,...{x:window[n(270)],y:window[n(400)],width:window.innerWidth,height:window[n(432)],scale:1},ignoreElements:t=>t instanceof Element&&H(t)},r=await t(document[n(367)],i),c=r[n(406)],d=r[n(468)],u=Math.max(c,d),l=.8*Math[n(286)](window[n(360)],window[n(432)]),f=Math.min(1,l/u),m=12/(a[n(468)]||1),p=Math[n(472)](1,Math.max(f,m)),h=Math.round(c*p),g=Math.round(d*p),w=document[n(324)](n(396));w.width=h,w.height=g;const y=w[n(440)]("2d");y.drawImage(r,0,0,c,d,0,0,h,g);const v=R();if(v.length){y[n(332)](),y.globalAlpha=1;for(const t of v){const e=Math[n(411)](t.x*p),o=Math[n(411)](t.y*p),a=Math[n(411)](t.w*p),i=Math.round(t.h*p);y[n(274)]="#e5e7eb",y[n(460)](e,o,a,i),y[n(399)]=n(317),y[n(316)]=Math[n(286)](1,Math[n(330)](.02*Math[n(472)](a,i))),y[n(368)](e,o,a,i);const r=Math[n(286)](10,Math[n(472)](22,Math[n(330)](.35*i)));y[n(341)]=r+n(301),y[n(274)]=n(295),y[n(370)]=n(384),y[n(484)]=n(421);const c="<"+(t[n(380)]?.[n(493)]()[n(374)]?t[n(380)]:"Sensitive")+">";y[n(423)](c,e+a/2,o+i/2,a-6)}y[n(378)]()}const b=w[n(409)](n(393),.8);return{html:o,bbox:{x:a.x,y:a.y,w:a.width,h:a[n(468)]},img:b}}function q(){const t=s,e=localStorage[t(318)](b),n={"Content-Type":"application/json"};return e&&(n[t(280)]=e),u&&(n[t(305)]=u),n}async function X(t,e){const n=s,o=(localStorage[n(318)](I)??x)+"/events",a=localStorage[n(318)](b)??void 0,i=JSON[n(333)]({...t,clientId:a});try{if((await fetch(o,{method:n(287),headers:q(),body:i,keepalive:e,credentials:"omit"})).ok)return}catch{}try{await async function(t,e=!1){const n=s,o=(localStorage[n(318)](I)??x)+"/p.gif";if(!(await fetch(o,{method:n(287),headers:q(),body:JSON.stringify(t),keepalive:e,credentials:"omit",cache:"no-store"})).ok)throw new Error(n(266))}(t,e)}catch{}}async function V(t,e,n,o){const a=s;if(!z())return;const i={...e,localTime:(new Date)[a(392)]()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(i.value=P(n)?N(n):n[a(272)]);let r="",c={x:0,y:0,w:0,h:0},d="";const u=!(t===a(329)||t===a(437)||t===a(453)),f=Date.now(),m=f-l>=5e3;let p=o;const h="click"===t||t===a(389)||t===a(311);u&&!p&&(h||m)&&(p=await Q(n),l=f),p&&(r=p[a(492)],c=p[a(459)],d=p.img);const g=t===a(437)||t===a(453)||t===a(311),w={ts:Date[a(325)](),event:t,props:i,html:g?"":r,bbox:c,img:d},y="hidden"===document[a(358)]||t===a(437);await X(w,y)}function J(){const t=["; Secure","left","INPUT","button","attributes","type","sex","intent","Password","forEach","push","data-intent-redact-label","visibilityState","cc-csc","innerWidth","closest","slice","heading","cc-additional-name","cookie","Redacted","body","strokeRect","postal-code","textAlign","cloneNode","disabled","isSecureContext","length","onload","context","secure","restore","latitude","label","SameSite=Lax","addEventListener","blur","center","keydown","intent_sid=","filter","setAttribute","input-submit","key","toLowerCase","toISOString","image/jpeg","intent_sid","cc-name","canvas","additional-name","right","strokeStyle","scrollY","<no visible label>","address-line1","some","pointerdown","string","width","number","application/json","toDataURL","aria-label","round","username","Phone","geolocation","intent:data-base-url","cc-given-name","target","hostname","Path=/","top","middle","data-html2canvas-ignore","fillText","bday","Sex","querySelectorAll",'=""]',"POSITION_UNAVAILABLE","altitude","6ubTOOt","mask","innerHeight","focus","street-address","click","6CsLJom","page-blur","2196MRhQon","UNKNOWN","getContext","ignore","intent:data-ip","218279NdZqWV","intent:data-sid-max-age","getCurrentPosition","Organization","cc-type","cc-exp-year","visibilitychange","address-line2","cc-family-name","referrer","page-focus","cc-exp-month","defineProperty","autocomplete","cc-exp","intent_sid=; Max-Age=0; Path=/; SameSite=Lax","bbox","fillRect","address-level3","startsWith","name","granted","lon","country-name","Credit card","height","location","email","Email","min","timestamp","tagName","1740EwtLGh","data-intent-redact","randomUUID","__intent__sdk__initialized__","clearTimeout","textContent",'="mask"], [',"family-name","address-level1","textBaseline","random","getAttribute","cc-","39753tYbXnh","load","permissions","hidden","html","trim","title","speed","removeEventListener","15dLdfAI","onerror","TIMEOUT","role","error","address-level2","pixel body fallback failed","includes","a[href]","onLine","scrollX","Address","value",'input[type="submit"]',"fillStyle","function","Unexpected FileReader result type","message","455122miqaoq","getBoundingClientRect","x-sl-access-token","altitudeAccuracy","2642507yUzTTH","2266080RCFqIU","bday-year","organization","max","POST","has","FileReader error","cc-number","280LCPeph","organization-title","address-line3",'input[type="button"]',"#374151","[onclick]","lat","https://intent.callimacus.ai","Enter","coords","px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif","hasFocus","undefined","geoEnabled","x-intent-sid","from","bday-month","given-name","search","bottom","pageview","entries","deviceGeoSent","searchbox","hasAttribute","lineWidth","#9ca3af","getItem","host","href","readAsDataURL","isFinite","nickname","createElement","now","protocol","Max-Age=","longitude","scroll","floor","device","save","stringify","join","localhost","address-level4","split","canSend","setTimeout","2156aGulqv","font","storage","password","Sensitive","outerHTML"];return(J=function(){return t})()}function K(){return"enabled"===localStorage.getItem(m)}async function Z(t={}){const e=s;if(!z())return;const n=typeof t[e(297)]===e(407)&&"number"==typeof t[e(465)];if(n&&h)return;if(!n&&p)return;const o=localStorage[e(318)](M),a={context:await c()};o&&(a.ip=o);for(const[n,o]of Object[e(312)](t))a[n]=o;await V(e(376),a,document.body,{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),n?h=!0:p=!0}async function G(){const t=s,e={canSend:z(),geoEnabled:K(),deviceGeoSent:h};if(!e[t(338)]||!e[t(304)]||e[t(313)])return;const n={secure:window[t(373)],proto:location[t(326)],host:location.hostname};if(n[t(377)]||(t(319),t(335)),!(t(414)in navigator))return;if(y)return;y=!0,g=!0;const o={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date[t(325)]();try{await(navigator[t(490)]?.query({name:t(414)}))}catch(t){}await new Promise(e=>{const n=t;let a=!1;const i=async(t,n,o)=>{const i=et;a||(a=!0,Date[i(325)](),Number[i(322)](t)&&Number.isFinite(n)&&await Z({lat:t,lon:n,source:i(331)}),y=!1,g=!1,v=!0,e())};navigator[n(414)][n(445)](t=>{const e=et,n=t[e(300)];i(n[e(379)],n[e(328)],(n.accuracy,typeof n[e(429)]===e(407)&&n.altitude,typeof n[e(281)]===e(407)&&n.altitudeAccuracy,typeof n[e(363)]===e(407)&&n[e(363)],typeof n[e(495)]===e(407)&&n.speed,t[e(473)],document[e(302)]()))},t=>{const e=et,n=t?.code;1===n||e(2===n?428:3===n?499:439),t?.[e(277)],navigator[e(269)],document.hasFocus(),window[e(373)],location[e(326)],location[e(418)],i(void 0,void 0)},o)})}function Y(){const t=s;if(w||!K()||h)return;w=!0;const e=()=>{const t=et;window[t(496)]("pointerdown",e,!0),window.removeEventListener(t(385),e,!0),G()};window[t(382)]("pointerdown",e,!0),window[t(382)]("keydown",e,!0)}_();let $=!document[s(491)]&&document.hasFocus(),tt=document[s(302)]();function et(t,e){const n=J();return(et=function(t,e){return n[t-=263]})(t,e)}const nt=()=>{const t=s;if(j())return;const e=!document[t(491)]&&document[t(302)]();e&&(tt=!0),tt||e?e!==$&&($=e,V(t(e?453:437),{},document[t(367)])):$=e};function ot(){const t=s;(function(){const t=s,e=globalThis;return!e[T]&&(Object[t(455)](e,T,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window[t(382)](t(489),()=>{const e=t;z()&&(Z(),(window[e(373)]||"localhost"===location[e(418)])&&(K()&&Y(),window[e(382)]("focus",()=>{!h&&K()&&!y&&v&&G()}),document[e(382)](e(449),()=>{!document.hidden&&!h&&K()&&!y&&v&&G()})))}),window[t(382)](t(342),e=>{e[t(390)]===f&&(function(){const t=s;return localStorage.getItem(f)===t(464)}()?(p=!1,Z(),K()&&Y()):(p=!1,h=!1)),e.key===m&&(K()?Y():h=!1)}),window[t(382)](t(489),()=>{const e=t;z()&&V(e(311),{url:window[e(469)][e(320)],title:document[e(494)],ref:document[e(452)]},document[e(367)])}),addEventListener(t(404),function(t,e){let n=0;return(...o)=>{const a=Date.now();a-n>=e&&(n=a,t(...o))}}(e=>{const n=t;if(j())return;const o=e[n(417)]instanceof Element?e[n(417)][n(361)](E):null;o instanceof HTMLElement&&(d=Q(o))},50),{capture:!0,passive:!0}),addEventListener(t(435),async e=>{const n=t;if(j())return;const o=e.target instanceof Element?e.target[n(361)](E):null;if(!(o instanceof HTMLElement))return;const a=function(t){const e=s;return t[e(486)](e(410))??t[e(494)]??t[e(480)]?.[e(493)]()??e(401)}(o),i=d?await d:void 0;d=void 0,await V("click",{tag:o[n(474)],label:a},o,i)},!0),addEventListener(t(385),e=>{const n=t;if(!j()&&e.key===n(299)){const t=e[n(417)];if(t instanceof HTMLElement&&(t.tagName===n(348)||"TEXTAREA"===t[n(474)])){const e=t instanceof HTMLInputElement?t[n(463)]:void 0,o=t.id||void 0;V(n(389),{tag:t.tagName,name:e??o},t)}}},{capture:!0}),[t(433),t(383)].forEach(e=>{window[t(382)](e,nt)}),document[t(382)](t(449),nt),window[t(382)]("scroll",function(t,e){let n;return(...o)=>{const a=et;void 0!==n&&window[a(479)](n),n=window[a(339)](()=>{n=void 0,t(...o)},e)}}(()=>{const e=t;j()||V(e(329),{scrollX:window[e(270)],scrollY:window[e(400)]},document[e(367)])},250),{passive:!0}),window[t(353)]??={send(e,n){const o=t;z()&&V(e,n,document[o(367)])}})}function at(t,e){const n=ut;try{if(void 0===e)return;localStorage[n(441)](t,e?t===n(430)?"granted":n(427):n(437))}catch{}}function it(t={}){const e=ut;if(localStorage[e(441)](e(431),t[e(443)]??""),localStorage[e(441)]("intent:data-ip",t.ip??""),localStorage[e(441)](e(439),t.baseUrl??e(417)),typeof t[e(436)]===e(418)&&localStorage[e(441)](e(414),String(t[e(436)])),at("intent:consent",t[e(433)]),at("intent:geo",t[e(423)]),t[e(433)]){if(!O(e(424))){W(typeof crypto!==e(435)&&typeof crypto[e(419)]===e(420)?crypto[e(419)]():Date[e(438)]()+"-"+Math[e(442)](),t.sidMaxAgeSeconds)}}ot()}function rt(){return O("intent_sid")}function ct(){const t=["geo","intent_sid","5674610lNxYzA","496053Wgngyn","enabled","508710rNmzSh","2598965IjVgxQ","intent:consent","intent:data-client-id","176UmQiQw","consent","419772xkgQsQ","undefined","sidMaxAgeSeconds","disabled","now","intent:data-base-url","22UrcNCx","setItem","random","clientId","intent:data-sid-max-age","4aThyik","1119804NSohbu","https://intent.callimacus.ai","number","randomUUID","function","1101170JEiIgp","7TsQKCM"];return(ct=function(){return t})()}function st(){_()}function dt(){F()}function ut(t,e){const n=ct();return(ut=function(t,e){return n[t-=414]})(t,e)}function lt(t){const e=ut;Number.isFinite(t)&&localStorage[e(441)]("intent:data-sid-max-age",String(t));const n=O(e(424));n&&W(n,t)}!function(){const t=ut,e=ct();for(;;)try{if(711370===parseInt(t(421))/1+parseInt(t(428))/2+parseInt(t(434))/3*(parseInt(t(415))/4)+-parseInt(t(429))/5+-parseInt(t(416))/6*(parseInt(t(422))/7)+-parseInt(t(432))/8*(parseInt(t(426))/9)+parseInt(t(425))/10*(parseInt(t(440))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{dt as clearIntentSessionId,st as ensureIntentSessionId,rt as getIntentSessionId,it as initIntent,at as setFlag,lt as setIntentSessionMaxAge};
4
+ import t from"html2canvas-pro";async function e(){const t=n,e=[];let o="browser API";if(function(t){const e=n;return e(190)in t&&typeof t[e(190)]!==e(278)}(navigator)){const n=navigator[t(190)];n?.[t(154)]&&e[t(180)](n.effectiveType),typeof n?.downlink===t(182)&&e[t(180)]("~"+n[t(199)]+t(181)),typeof n?.[t(207)]===t(182)&&e[t(180)](n[t(207)]+" ms"),n?.[t(196)]&&e[t(180)](t(196))}else{const i=function(t=20){const e=n,o=performance[e(246)]("navigation").find(t=>t[e(275)]===e(272)),i=o?Math[e(238)](0,o[e(214)]-o[e(201)]):void 0,a=performance[e(246)](e(262))[e(167)](t=>t[e(275)]===e(262));let r=0,c=0;for(const n of a[e(212)](0,Math[e(238)](0,t))){const t=n[e(253)]>0?n[e(253)]:n.transferSize>0?n.transferSize:0,o=n[e(226)];t>0&&o>0&&Number[e(163)](o)&&(r+=t,c+=o)}const s=c>0?8*r/c:void 0;return{downlinkMbps:typeof s===e(182)?s/1e3:void 0,rttMs:i}}();typeof i[t(204)]===t(182)&&e[t(180)]("~"+i.downlinkMbps.toFixed(1)+t(181)),"number"==typeof i.rttMs&&e[t(180)](t(230)+Math.round(i[t(162)])+t(228)),o=t(235)}const i=performance[t(246)](t(272))[t(251)](e=>e[t(275)]===t(272));if(i){const n=Math[t(238)](0,i[t(214)]-i[t(201)]);!e[t(240)](e=>e[t(256)]("TTFB"))&&e.push(t(230)+Math[t(168)](n)+t(228))}return e[t(216)]?t(192)+e[t(157)](", ")+" ("+o+")":void 0}function n(t,e){const o=i();return(n=function(t,e){return o[t-=152]})(t,e)}async function o(t=400){const e=n;if(e(175)in window&&window[e(225)])return new Promise(o=>{const i=e;let a=!1;const r=t=>{const e=n,i=typeof t[e(191)]===e(182)?t.beta:void 0,c=typeof t[e(202)]===e(182)?t[e(202)]:void 0;if(void 0===i||void 0===c)return;if(a)return;a=!0,window[e(249)](e(229),r);const s=function(t,e){const o=n,i=Math.abs(t),a=Math[o(222)](e);return o(i<15&&a<15?265:i>=60?221:264)}(i,c);o("Tilt: "+s+e(165)+Math[e(168)](i)+e(170)+Math[e(168)](c)+"°)")};window[i(189)](()=>{const t=i;a||(a=!0,window[t(249)](t(229),r),o(void 0))},t),window[i(197)]("deviceorientation",r,{passive:!0})})}function i(){const t=["duration","User agent: "," ms","deviceorientation","TTFB ~","28699670yQlRas","x (avail ","function"," cores","inferred","CPU: ","languages","max","availWidth","some","referrer","not charging","innerWidth","brands",", maxTouchPoints ","getEntriesByType","maxTouchPoints","14BXdtqE","removeEventListener","DateTimeFormat","find","(pointer: fine)","encodedBodySize","doNotTrack","1250888hpDsXQ","startsWith","1618cNWCrk"," (mobile)","serviceWorker","level","51036xDPRcq","resource","padStart","reclined","flat","Device geolocation: disabled","Language: ","SW-controlled","Device geolocation: enabled"," | ","Platform: ","navigation","coarse","resolvedOptions","entryType","cookieEnabled","devicePixelRatio","undefined","(pointer: coarse)","height","availHeight","effectiveType","-bit)","type","join","Languages: ","getItem","width","userAgentData","rttMs","isFinite","getBattery"," (β ","map","filter","round","innerHeight","°, γ ","Timezone: ","171xroiWX","orientation","96NzRZpp","DeviceOrientationEvent","intent:geo","7753905QHwfPg"," (UTC","timeZone","push"," Mbps","number","UA brands: ","floor","yes","brand","4364523dJSWjV","onLine","setTimeout","connection","beta","Network: ","platform","; DNT: ","Battery: ","saveData","addEventListener","version","downlink","getTimezoneOffset","requestStart","gamma","toString","downlinkMbps","Online: ","PWA: ","rtt",", display-mode standalone: ","enabled","n/a","Referrer: ","slice","87912UGsVxf","responseStart","userAgent","length","CookiesEnabled: ","controller","unknown","matches","upright","abs","no SW","charging","isSecureContext"];return(i=function(){return t})()}async function a(){const t=n,i=(new(Intl[t(250)]))[t(274)]()[t(179)],a=function(t){const e=n,o=t<=0?"+":"-",i=Math[e(222)](t);return""+o+String(Math[e(184)](i/60))[e(263)](2,"0")+":"+String(i%60)[e(263)](2,"0")}((new Date)[t(200)]()),r=[];r[t(180)](t(267)+navigator.language),navigator[t(237)]?.[t(216)]&&r.push(t(158)+navigator[t(237)].join(", ")),r[t(180)](t(227)+navigator[t(215)]);const c=function(){const t=n;if(!("userAgentData"in(e=navigator))||void 0===e.userAgentData)return;var e;const o=navigator[t(161)],i=Array.isArray(o[t(244)])?o[t(244)][t(166)](e=>e[t(186)]+" "+e[t(198)])[t(157)](", "):void 0,a=o[t(193)]?""+o[t(193)]+(o.mobile?t(258):""):void 0;return[i&&t(183)+i,a&&t(271)+a][t(167)](Boolean)[t(157)](t(270))||void 0}();c&&r.push(c),r[t(180)](t(171)+i+t(178)+a+")"),r.push("Local time: "+(new Date)[t(203)]());const s=window[t(277)]||1;r[t(180)]("Screen: "+screen[t(160)]+"x"+screen[t(152)]+" @"+s+t(232)+screen[t(239)]+"x"+screen[t(153)]+", "+screen.colorDepth+t(155));const d=screen[t(173)]&&"type"in screen.orientation?screen[t(173)][t(156)]:void 0;r.push("Viewport: "+window[t(243)]+"x"+window[t(169)]+(d?", orientation "+d:"")),r[t(180)](t(236)+navigator.hardwareConcurrency+t(234));const u=await e();u&&r[t(180)](u),r[t(180)](function(){const t=n,e="function"==typeof matchMedia&&matchMedia(t(279))[t(220)],o=typeof matchMedia===t(233)&&matchMedia(t(252))[t(220)],i=e?t(273):o?"fine":t(219),a=typeof navigator[t(247)]===t(182)?navigator[t(247)]:0;return"Pointer/Touch: "+i+t(245)+a}());const l=await async function(){const t=n;var e;if("getBattery"in(e=navigator)&&"function"==typeof e.getBattery)try{const e=await navigator[t(164)](),n=Math.round(100*e[t(260)]),o=[(Number[t(163)](n)?n:0)+"%",e[t(224)]?t(224):t(242)];return t(195)+o[t(157)](", ")}catch{return}}();l&&r[t(180)](l),r[t(180)](t(217)+(navigator[t(276)]?"yes":"no")+t(194)+(navigator[t(254)]??t(210))),r[t(180)](t(205)+(navigator[t(188)]?"yes":"no")),document[t(241)]&&r[t(180)](t(211)+document[t(241)]),r[t(180)](function(){const t=n,e="function"==typeof matchMedia&&matchMedia("(display-mode: standalone)")[t(220)],o=Boolean(navigator[t(259)]?.[t(218)]);return t(206)+t(o?268:223)+t(208)+(e?t(185):"no")}());const f=await o();f&&r[t(180)](f);const m=typeof localStorage!==t(278)&&localStorage[t(159)](t(176))===t(209);return r.push(t(m?269:266)),r[t(157)](t(270))}!function(){const t=n,e=i();for(;;)try{if(856464===-parseInt(t(257))/1*(-parseInt(t(174))/2)+-parseInt(t(172))/3*(parseInt(t(261))/4)+-parseInt(t(177))/5+parseInt(t(213))/6+-parseInt(t(248))/7*(parseInt(t(255))/8)+parseInt(t(187))/9+parseInt(t(231))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const r=F;!function(){const t=F,e=u();for(;;)try{if(585938===-parseInt(t(443))/1+parseInt(t(512))/2+parseInt(t(431))/3+parseInt(t(534))/4*(-parseInt(t(396))/5)+parseInt(t(527))/6+-parseInt(t(550))/7+-parseInt(t(498))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let c,s="",d=0;function u(){const t=["stringify","Secure","scrollX","forEach","filter","heading","body","/events","push","UNKNOWN","createElement","addEventListener","3003108MxlrHT","blur","address-line2","result","trim","getItem","cc-given-name","1776844EuwJOS","setTimeout","page-blur","SameSite=Lax","bday-year","isFinite","onload","cc-type","focus","textBaseline","nickname","organization-title","drawImage","Path=/","Sensitive","load","3784249LnpMBl","data-html2canvas-ignore","save","startsWith","left","localhost","width","longitude","country-name","querySelectorAll","indexOf","ignore","target","Redacted","page-focus","Email","PERMISSION_DENIED","no-store","permissions","address-level4","function","coords","intent:data-client-id","error","timestamp","cc-","__intent__sdk__initialized__","accuracy","device","#9ca3af","granted","strokeStyle","x-intent-sid","includes","strokeRect","speed","height","cc-name","hidden","data-intent-redact","fillText","intent:geo","label","cc-number","username","visibilitychange","randomUUID","setAttribute","closest","[onclick]","floor","country","right","toDataURL","address-level3","lineWidth","scroll","email","password","address-level1","number","key","referrer","min","5qGbUKA","https://intent.callimacus.ai","geolocation","POST","webauthn","a[href]","bbox","round",'=""]',"cloneNode","isSecureContext","lat","Address","removeEventListener",'="mask"], [',"storage","location","value","aria-label","input-submit","family-name","html","tel","cookie","mask","random","query","pointerdown","outerHTML","TIMEOUT","latitude","innerWidth","now","organization","onerror","2553873gEfNxR","application/json","sex",'input[type="button"]',"from","intent:consent","INPUT","secure","Max-Age=","altitudeAccuracy","textContent","hostname","255947GEgVfr","getBoundingClientRect","type","keydown","top","bday","attributes","disabled","visibilityState","Name","pixel body fallback failed","length","cc-additional-name","canvas","protocol","intent_sid","role","autocomplete","split","max","street-address","fillStyle","click","cc-exp-year","#374151","TEXTAREA","intent_sid=","has","join","Birthday","Password","Phone","intent:data-sid-max-age","search","toLowerCase","bday-day","onLine","innerHeight","Organization","pageview","font","geoEnabled","toISOString","Enter","some","scrollY","enabled","POSITION_UNAVAILABLE","altitude","px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif","Sex","getAttribute","img","FileReader error","tagName","4130160wBEuah","hasFocus","title",'[role="link"]',"slice","Unexpected FileReader result type","code","address-level2","globalAlpha","image/jpeg","center","additional-name","name","omit","1982328EqHFvM","https:","postal-code"];return(u=function(){return t})()}const l=r(436),f=r(591);let m=!1,p=!1,g=!1,h=!1,w=!1,y=!1;const v=r(572),b="intent:data-base-url",M=r(397),S=r(475),x=r(576),I=["button",r(401),"a",'input[type="submit"]',r(434),'[role="button"]',r(501),r(381)][r(471)](","),T=r(589),E=new Set([r(510),"given-name",r(509),r(416),r(544),r(376),"email",r(418),r(429),"organization-title","street-address","address-line1","address-line2","address-line3",r(391),r(505),r(386),r(569),"country","country-name",r(514),r(587),r(533),r(455),"cc-family-name",r(375),"cc-exp","cc-exp-month",r(466),"cc-csc",r(541),r(448),r(478),"bday-month",r(538),r(433),r(400)]);function A(t){return"<"+L(t)+">"}function L(t){const e=r,n=(t[e(494)]?.("data-intent-redact-label")??"").trim();if(n)return n;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t[e(460)]||"")[e(477)]()[e(531)]()[e(461)](/\s+/)[e(519)](Boolean):[];return t instanceof HTMLInputElement&&t.type===e(390)?e(473):o[e(487)](t=>t[e(553)](e(575)))?"Credit card":o[e(487)](t=>["name","given-name","family-name","additional-name",e(587),e(533),"cc-family-name"][e(583)](t))?e(452):o[e(583)](e(389))?e(565):o.includes(e(418))?e(474):o[e(487)](t=>t.startsWith(e(448)))?e(472):o[e(583)](e(433))?e(493):o[e(487)](t=>[e(463),"address-line1",e(529),"address-line3",e(391),e(505),"address-level3",e(569),e(514),e(383),e(558)][e(583)](t))?e(408):o[e(583)](e(429))||o[e(583)](e(545))?e(481):t[e(494)]?.(T)?.[e(477)]()===e(420)?e(563):e(548)}function k(t){const e=r;return t.hasAttribute(e(551))||t.getAttribute(T)?.[e(477)]()===e(561)}function N(t){const e=r,n=t[e(494)](T);return""===n||n?.[e(477)]()===e(420)}function D(t){const e=r;if(t instanceof HTMLInputElement){if(t[e(445)]===e(390))return!0;if(t[e(445)]===e(476))return!1;const n=t.getAttribute(e(459));if(n&&"searchbox"===n[e(477)]())return!1;if((t[e(460)]||"")[e(477)]()[e(531)]()[e(461)](/\s+/)[e(519)](Boolean)[e(487)](t=>E[e(470)](t)))return!0}if(t instanceof HTMLTextAreaElement){if((t[e(460)]||"")[e(477)]().trim()[e(461)](/\s+/)[e(519)](Boolean).some(t=>E.has(t)))return!0}return!1}function H(t){return!!N(t)||!!D(t)}function P(){const t=r,e=[],n=t=>{const e=F,n=t[e(444)]();if(n[e(556)]<=0||n[e(586)]<=0)return;const o=Math[e(462)](0,n[e(554)]),i=Math[e(462)](0,n[e(447)]),a=Math[e(462)](0,Math.min(n[e(384)],window[e(427)])-o),r=Math.max(0,Math.min(n.bottom,window.innerHeight)-i);return a<=0||r<=0?void 0:{x:o,y:i,w:a,h:r}};document.querySelectorAll("["+T+t(410)+T+t(404))[t(518)](o=>{const i=t,a=n(o);if(!a)return;const r=L(o)||"Redacted";e[i(523)]({...a,label:r})});return document[t(559)]("input, textarea")[t(518)](o=>{const i=t;if(!N(a=o)&&!D(a))return;var a;if(k(o))return;const r=n(o);if(!r)return;const c=L(o);e[i(523)]({...r,label:c})}),e}const R=()=>localStorage.getItem(l)===r(580);function U(t){const e=r,n=encodeURIComponent(t)+"=",o=document.cookie[e(461)]("; ");for(const t of o)if(t[e(553)](n))return decodeURIComponent(t[e(502)](n.length))}function B(t,e){const n=r,o=localStorage.getItem(S),i=null==o?void 0:Number(o),a=Number[n(539)](e)?Number(e):typeof i===n(392)&&Number[n(539)](i)?i:86400,c="https:"===window[n(412)][n(457)],s=[n(469)+encodeURIComponent(t),n(439)+a,n(547),n(537)];c&&s.push(n(516)),document[n(419)]=s[n(471)]("; ")}function O(){const t=r,e=window[t(412)].protocol===t(513);document[t(419)]="intent_sid=; Max-Age=0; Path=/; SameSite=Lax"+(e?"; Secure":"")}function C(){const t=r,e=U(t(458));if(!R())return e&&O(),void(s="");if(e)return void(s=e);const n="undefined"!=typeof crypto&&typeof crypto[t(378)]===t(570)?crypto[t(378)]():Date[t(428)]()+"-"+Math[t(421)]();s=n,B(s)}function W(){return C(),R()&&Boolean(s)&&(()=>{const t=localStorage[r(532)](v);return"string"==typeof t&&t.trim().length>0})()}function F(t,e){const n=u();return(F=function(t,e){return n[t-=375]})(t,e)}function _(){return!W()||g}async function z(e){const n=r,o=function(t){const e=r,n=t[e(405)](!1);return n instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array[e(435)](t[e(449)])[e(518)](({name:t,value:o})=>{n[e(379)](t,o)}),n[e(413)]=H(t)?A(t):t[e(413)],t[e(450)]&&n[e(379)]("disabled",""),n[e(424)]):n instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array.from(t[e(449)]).forEach(({name:t,value:e})=>{n.setAttribute(t,e)}),n[e(413)]=H(t)?A(t):t.value,t[e(450)]&&n.setAttribute(e(450),""),n[e(424)]):t[e(424)]}(e),i=e[n(444)](),a={useCORS:!0,...{x:window[n(517)],y:window.scrollY,width:window[n(427)],height:window[n(480)],scale:1},ignoreElements:t=>t instanceof Element&&k(t)},c=await t(document[n(521)],a),s=c.width,d=c[n(586)],u=Math[n(462)](s,d),l=.8*Math.max(window[n(427)],window.innerHeight),f=Math[n(395)](1,l/u),m=12/(i[n(586)]||1),p=Math[n(395)](1,Math[n(462)](f,m)),g=Math.round(s*p),h=Math[n(403)](d*p),w=document[n(525)](n(456));w[n(556)]=g,w[n(586)]=h;const y=w.getContext("2d");y[n(546)](c,0,0,s,d,0,0,g,h);const v=P();if(v[n(454)]){y[n(552)](),y[n(506)]=1;for(const t of v){const e=Math[n(403)](t.x*p),o=Math[n(403)](t.y*p),i=Math[n(403)](t.w*p),a=Math[n(403)](t.h*p);y.fillStyle="#e5e7eb",y.fillRect(e,o,i,a),y[n(581)]=n(579),y[n(387)]=Math[n(462)](1,Math[n(382)](.02*Math.min(i,a))),y[n(584)](e,o,i,a);const r=Math[n(462)](10,Math.min(22,Math[n(382)](.35*a)));y[n(483)]=r+n(492),y[n(464)]=n(467),y.textAlign=n(508),y[n(543)]="middle";const c="<"+(t.label?.[n(531)]()[n(454)]?t[n(592)]:"Sensitive")+">";y[n(590)](c,e+i/2,o+a/2,i-6)}y.restore()}const b=w[n(385)](n(507),.8);return{html:o,bbox:{x:i.x,y:i.y,w:i[n(556)],h:i[n(586)]},img:b}}function j(){const t=r,e=localStorage[t(532)](v),n={"Content-Type":t(432)};return e&&(n["x-sl-access-token"]=e),s&&(n[t(582)]=s),n}async function q(t,e){const n=r,o=(localStorage.getItem(b)??M)+n(522),i=localStorage[n(532)](v)??void 0,a=JSON[n(515)]({...t,clientId:i});try{if((await fetch(o,{method:n(399),headers:j(),body:a,keepalive:e,credentials:"omit"})).ok)return}catch{}try{await async function(t,e=!1){const n=r,o=(localStorage.getItem(b)??M)+"/p.gif";if(!(await fetch(o,{method:"POST",headers:j(),body:JSON[n(515)](t),keepalive:e,credentials:n(511),cache:n(567)})).ok)throw new Error(n(453))}(t,e)}catch{}}async function G(t,e,n,o){const i=r;if(!W())return;const a={...e,localTime:(new Date)[i(485)]()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(a[i(413)]=H(n)?A(n):n[i(413)]);let c="",s={x:0,y:0,w:0,h:0},u="";const l=!(t===i(388)||t===i(536)||t===i(564)),f=Date.now(),m=f-d>=5e3;let p=o;const g=t===i(465)||t===i(415)||t===i(482);l&&!p&&(g||m)&&(p=await z(n),d=f),p&&(c=p[i(417)],s=p[i(402)],u=p[i(495)]);const h=t===i(536)||t===i(564)||t===i(482),w={ts:Date[i(428)](),event:t,props:a,html:h?"":c,bbox:s,img:u},y=document.visibilityState===i(588)||t===i(536);await q(w,y)}function X(){const t=r;return localStorage.getItem(f)===t(489)}async function V(t={}){const e=r;if(!W())return;const n="number"==typeof t[e(407)]&&typeof t.lon===e(392);if(n&&p)return;if(!n&&m)return;const o=localStorage[e(532)]("intent:data-ip"),i={context:await a()};o&&(i.ip=o);for(const[e,n]of Object.entries(t))i[e]=n;await G("context",i,document.body,{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),n?p=!0:m=!0}async function J(){const t=r,e={canSend:W(),geoEnabled:X(),deviceGeoSent:p};if(!e.canSend||!e[t(484)]||e.deviceGeoSent)return;window[t(406)],location[t(457)],location[t(442)];if(t(438),!("geolocation"in navigator))return;if(w)return;w=!0,g=!0;const n={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date[t(428)]();try{await(navigator[t(568)]?.[t(422)]({name:t(398)}))}catch(t){}await new Promise(e=>{let o=!1;const i=async(t,n,i)=>{const a=F;o||(o=!0,Date[a(428)](),Number.isFinite(t)&&Number[a(539)](n)&&await V({lat:t,lon:n,source:a(578)}),w=!1,g=!1,y=!0,e())};navigator[t(398)].getCurrentPosition(t=>{const e=F,n=t[e(571)];i(n[e(426)],n[e(557)],(n[e(577)],typeof n.altitude===e(392)&&n[e(491)],"number"==typeof n[e(440)]&&n[e(440)],"number"==typeof n.heading&&n[e(520)],"number"==typeof n[e(585)]&&n.speed,t[e(574)],document[e(451)],document.hasFocus()))},t=>{const e=F,n=t?.[e(504)];e(1===n?566:2===n?490:3===n?425:524),navigator[e(479)],document[e(451)],document[e(499)](),location[e(457)],location[e(442)],i(void 0,void 0)},n)})}function Q(){const t=r;if(h||!X()||p)return;h=!0;const e=()=>{const t=F;window.removeEventListener(t(423),e,!0),window[t(409)]("keydown",e,!0),J()};window[t(526)](t(423),e,!0),window[t(526)](t(446),e,!0)}C();let Y=!document[r(588)]&&document.hasFocus(),Z=document[r(499)]();const K=()=>{const t=r;if(_())return;const e=!document[t(588)]&&document[t(499)]();e&&(Z=!0),Z||e?e!==Y&&(Y=e,G(t(e?564:536),{},document[t(521)])):Y=e};function $(){const t=r;(function(){const t=globalThis;return!t[x]&&(Object.defineProperty(t,x,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window[t(526)](t(549),()=>{const e=t;W()&&(V(),(window[e(406)]||location[e(442)]===e(555))&&(X()&&Q(),window[e(526)]("focus",()=>{!p&&X()&&!w&&y&&J()}),document[e(526)](e(377),()=>{!document.hidden&&!p&&X()&&!w&&y&&J()})))}),window[t(526)](t(411),e=>{const n=t;e[n(393)]===l&&(function(){const t=r;return localStorage.getItem(l)===t(580)}()?(m=!1,V(),X()&&Q()):(m=!1,p=!1)),e[n(393)]===f&&(X()?Q():p=!1)}),window.addEventListener("load",()=>{const e=t;W()&&G(e(482),{url:window[e(412)].href,title:document[e(500)],ref:document[e(394)]},document[e(521)])}),addEventListener(t(423),function(t,e){let n=0;return(...o)=>{const i=Date[F(428)]();i-n>=e&&(n=i,t(...o))}}(e=>{const n=t;if(_())return;const o=e.target instanceof Element?e.target[n(380)](I):null;o instanceof HTMLElement&&(c=z(o))},50),{capture:!0,passive:!0}),addEventListener(t(465),async e=>{const n=t;if(_())return;const o=e[n(562)]instanceof Element?e.target[n(380)](I):null;if(!(o instanceof HTMLElement))return;const i=function(t){const e=r;return t[e(494)](e(414))??t[e(500)]??t[e(441)]?.[e(531)]()??"<no visible label>"}(o),a=c?await c:void 0;c=void 0,await G("click",{tag:o.tagName,label:i},o,a)},!0),addEventListener(t(446),e=>{const n=t;if(!_()&&e[n(393)]===n(486)){const t=e[n(562)];if(t instanceof HTMLElement&&(t.tagName===n(437)||t.tagName===n(468))){const e=t instanceof HTMLInputElement?t[n(510)]:void 0,o=t.id||void 0;G("input-submit",{tag:t[n(497)],name:e??o},t)}}},{capture:!0}),[t(542),t(528)][t(518)](t=>{window.addEventListener(t,K)}),document[t(526)](t(377),K),window[t(526)]("scroll",function(t,e){let n;return(...o)=>{const i=F;void 0!==n&&window.clearTimeout(n),n=window[i(535)](()=>{n=void 0,t(...o)},e)}}(()=>{const e=t;_()||G(e(388),{scrollX:window[e(517)],scrollY:window[e(488)]},document[e(521)])},250),{passive:!0}),window.intent??={send(t,e){W()&&G(t,e,document.body)}})}function tt(t,e){const n=nt;try{if(void 0===e)return;localStorage.setItem(t,e?"intent:consent"===t?"granted":n(396):n(399))}catch{}}function et(t={}){const e=nt;if(localStorage[e(385)](e(375),t[e(389)]??""),localStorage[e(385)]("intent:data-ip",t.ip??""),localStorage.setItem(e(394),t[e(384)]??e(398)),typeof t[e(395)]===e(380)&&localStorage[e(385)](e(392),String(t[e(395)])),tt(e(390),t[e(383)]),tt(e(388),t.geo),t[e(383)]){if(!U(e(372))){B("undefined"!=typeof crypto&&"function"==typeof crypto[e(400)]?crypto[e(400)]():Date[e(382)]()+"-"+Math[e(387)](),t.sidMaxAgeSeconds)}}$()}function nt(t,e){const n=ot();return(nt=function(t,e){return n[t-=372]})(t,e)}function ot(){const t=["disabled","randomUUID","intent_sid","6686748tUtBRX","9504754rfsArv","intent:data-client-id","3649404lXViuN","32945gLiLQp","8ujFUjx","72SGyxry","number","isFinite","now","consent","baseUrl","setItem","6780880LSaHCd","random","intent:geo","clientId","intent:consent","42uaZeoG","intent:data-sid-max-age","250398ZVGNWR","intent:data-base-url","sidMaxAgeSeconds","enabled","1732388YMPxoI","https://intent.callimacus.ai"];return(ot=function(){return t})()}function it(){return U(nt(372))}function at(){C()}function rt(){O()}function ct(t){const e=nt;Number[e(381)](t)&&localStorage.setItem(e(392),String(t));const n=U(e(372));n&&B(n,t)}!function(){const t=nt,e=ot();for(;;)try{if(916919===-parseInt(t(397))/1+parseInt(t(391))/2*(parseInt(t(393))/3)+parseInt(t(376))/4+parseInt(t(377))/5*(-parseInt(t(379))/6)+-parseInt(t(374))/7*(parseInt(t(378))/8)+parseInt(t(373))/9+parseInt(t(386))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{rt as clearIntentSessionId,at as ensureIntentSessionId,it as getIntentSessionId,et as initIntent,tt as setFlag,ct as setIntentSessionMaxAge};