@solomei-ai/intent 1.7.0 → 1.8.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";import e from"js-cookie";function n(){const t=["CookiesEnabled: ","rttMs","PWA: ","charging","length","beta","platform","abs","deviceorientation","undefined","controller","UA brands: ","encodedBodySize","resolvedOptions","height","6328888fVPnfw","TTFB ~","orientation","entryType"," (UTC","intent:geo","maxTouchPoints"," (β ",", maxTouchPoints ","function","getTimezoneOffset","doNotTrack","level"," Mbps","join","downlinkMbps","number","yes","devicePixelRatio","36CIXYzj","push","Tilt: ","referrer","availHeight","(pointer: fine)","8292sJDXUI","type","timeZone","DateTimeFormat","connection","userAgent","requestStart","(display-mode: standalone)",", display-mode standalone: ","downlink","getItem","isSecureContext","Languages: ","Device geolocation: enabled","filter","isFinite","725988arEBEC","version","matches","getBattery","Platform: ","10uOFNtL","gamma"," | ","getEntriesByType","brand","colorDepth","max","languages","Referrer: ","67994DAsprs","x (avail ","resource","browser API","User agent: ","hardwareConcurrency","saveData","rtt","Online: ","°, γ ","248360kJoqFC","addEventListener","responseStart","navigation","DeviceOrientationEvent","mobile","enabled","round","onLine","removeEventListener","SW-controlled","Viewport: "," ms","serviceWorker","Timezone: ","cookieEnabled","flat","fine","Screen: ","28501lzzDqK","352878tgjfIB","7YkmGnA","Battery: ","130239avZPTf","upright","n/a","29bGyOve","Device geolocation: disabled"," cores","find","padStart","transferSize","isArray","slice","startsWith","userAgentData","; DNT: "];return(n=function(){return t})()}function o(t,e){const a=n();return(o=function(t,e){return a[t-=433]})(t,e)}async function a(){const t=o,e=[];let n=t(448);if(a=navigator,o(536)in a&&void 0!==a.connection){const n=navigator.connection;n?.effectiveType&&e[t(527)](n.effectiveType),"number"==typeof n?.[t(541)]&&e[t(527)]("~"+n.downlink+t(520)),typeof n?.[t(452)]===t(523)&&e.push(n.rtt+t(467)),n?.[t(451)]&&e.push(t(451))}else{const a=function(t=20){const e=o,n=performance[e(439)](e(458))[e(484)](t=>t[e(510)]===e(458)),a=n?Math[e(442)](0,n[e(457)]-n[e(538)]):void 0,i=performance[e(439)]("resource").filter(t=>t[e(510)]===e(447));let r=0,c=0;for(const n of i[e(488)](0,Math.max(0,t))){const t=n[e(504)]>0?n[e(504)]:n.transferSize>0?n[e(486)]:0,o=n.duration;t>0&&o>0&&Number[e(547)](o)&&(r+=t,c+=o)}const s=c>0?8*r/c:void 0;return{downlinkMbps:typeof s===e(523)?s/1e3:void 0,rttMs:a}}();typeof a[t(522)]===t(523)&&e.push("~"+a[t(522)].toFixed(1)+" Mbps"),typeof a[t(493)]===t(523)&&e.push(t(508)+Math[t(462)](a[t(493)])+t(467)),n="inferred"}var a;const i=performance.getEntriesByType(t(458))[t(484)](e=>e[t(510)]===t(458));if(i){const n=Math[t(442)](0,i[t(457)]-i[t(538)]);!e.some(e=>e[t(489)]("TTFB"))&&e.push(t(508)+Math[t(462)](n)+t(467))}return e[t(496)]?"Network: "+e[t(521)](", ")+" ("+n+")":void 0}function i(){const t=o;if(!function(t){const e=o;return"userAgentData"in t&&typeof t[e(490)]!==e(501)}(navigator))return;const e=navigator[t(490)],n=Array[t(487)](e.brands)?e.brands.map(e=>e[t(440)]+" "+e[t(549)]).join(", "):void 0,a=e[t(498)]?e[t(498)]+(e[t(460)]?" (mobile)":""):void 0;return[n&&t(503)+n,a&&t(435)+a][t(546)](Boolean)[t(521)](t(438))||void 0}async function r(t=400){const e=o;if(e(459)in window&&window[e(543)])return new Promise(n=>{const a=e;let i=!1;const r=t=>{const e=o,a="number"==typeof t[e(497)]?t[e(497)]:void 0,c=typeof t[e(437)]===e(523)?t[e(437)]:void 0;if(void 0===a||void 0===c)return;if(i)return;i=!0,window.removeEventListener(e(500),r);const s=function(t,e){const n=o,a=Math[n(499)](t),i=Math[n(499)](e);return a<15&&i<15?n(471):a>=60?n(479):"reclined"}(a,c);n(e(528)+s+e(514)+Math[e(462)](a)+e(454)+Math[e(462)](c)+"°)")};window.setTimeout(()=>{const t=o;i||(i=!0,window[t(464)](t(500),r),n(void 0))},t),window[a(456)](a(500),r,{passive:!0})})}async function c(){const t=o;if(function(t){const e=o;return e(434)in t&&"function"==typeof t[e(434)]}(navigator))try{const e=await navigator[t(434)](),n=Math[t(462)](100*e[t(519)]),o=[(Number[t(547)](n)?n:0)+"%",e[t(495)]?t(495):"not charging"];return t(477)+o[t(521)](", ")}catch{return}}async function s(){const t=o,e=(new(Intl[t(535)]))[t(505)]()[t(534)],n=function(t){const e=o,n=t<=0?"+":"-",a=Math[e(499)](t);return""+n+String(Math.floor(a/60))[e(485)](2,"0")+":"+String(a%60)[e(485)](2,"0")}((new Date)[t(517)]()),s=[];s.push("Language: "+navigator.language),navigator[t(443)]?.[t(496)]&&s.push(t(544)+navigator[t(443)][t(521)](", ")),s[t(527)](t(449)+navigator[t(537)]);const u=i();u&&s[t(527)](u),s[t(527)](t(469)+e+t(511)+n+")"),s[t(527)]("Local time: "+(new Date).toString());const l=window[t(525)]||1;s[t(527)](t(473)+screen.width+"x"+screen[t(506)]+" @"+l+t(446)+screen.availWidth+"x"+screen[t(530)]+", "+screen[t(441)]+"-bit)");const d=screen[t(509)]&&t(533)in screen[t(509)]?screen[t(509)][t(533)]:void 0;s[t(527)](t(466)+window.innerWidth+"x"+window.innerHeight+(d?", orientation "+d:"")),s[t(527)]("CPU: "+navigator[t(450)]+t(483));const f=await a();f&&s[t(527)](f),s.push(function(){const t=o,e=typeof matchMedia===t(516)&&matchMedia("(pointer: coarse)")[t(433)],n=typeof matchMedia===t(516)&&matchMedia(t(531)).matches,a=e?"coarse":n?t(472):"unknown",i="number"==typeof navigator[t(513)]?navigator.maxTouchPoints:0;return"Pointer/Touch: "+a+t(515)+i}());const m=await c();m&&s.push(m),s[t(527)](t(492)+(navigator[t(470)]?t(524):"no")+t(491)+(navigator[t(518)]??t(480))),s[t(527)](t(453)+(navigator[t(463)]?t(524):"no")),document[t(529)]&&s[t(527)](t(444)+document[t(529)]),s[t(527)](function(){const t=o,e=typeof matchMedia===t(516)&&matchMedia(t(539))[t(433)],n=Boolean(navigator[t(468)]?.[t(502)]);return t(494)+(n?t(465):"no SW")+t(540)+(e?t(524):"no")}());const p=await r();p&&s[t(527)](p);const h="undefined"!=typeof localStorage&&localStorage[t(542)](t(512))===t(461);return s[t(527)](t(h?545:482)),s[t(521)](" | ")}!function(){const t=o,e=n();for(;;)try{if(551207===parseInt(t(481))/1*(parseInt(t(445))/2)+parseInt(t(478))/3+-parseInt(t(548))/4*(-parseInt(t(436))/5)+parseInt(t(475))/6+-parseInt(t(476))/7*(-parseInt(t(507))/8)+parseInt(t(526))/9*(parseInt(t(455))/10)+parseInt(t(474))/11*(-parseInt(t(532))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const u=m;!function(){const t=m,e=O();for(;;)try{if(825391===-parseInt(t(356))/1+parseInt(t(382))/2*(-parseInt(t(403))/3)+-parseInt(t(349))/4+-parseInt(t(485))/5+-parseInt(t(499))/6*(-parseInt(t(432))/7)+-parseInt(t(449))/8*(-parseInt(t(360))/9)+parseInt(t(496))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let l,d="",f=0;function m(t,e){const n=O();return(m=function(t,e){return n[t-=303]})(t,e)}const p=u(341),h=u(406);let g=!1,w=!1,y=!1,v=!1,b=!1,I=!1;const M=u(464),S=u(339),x=u(462),T=u(482),E=u(351),A="__intent__sdk__initialized__",L=[u(486),u(518),"a",u(303),u(488),'[role="button"]',u(391),"[onclick]"][u(333)](","),k=u(512),D=new Set(["name","given-name",u(445),u(416),"nickname",u(313),u(306),u(469),u(451),u(474),u(368),u(494),u(419),"address-line3",u(497),"address-level2",u(381),u(447),"country","country-name","postal-code","cc-name",u(329),u(378),u(424),u(331),"cc-exp","cc-exp-month",u(326),u(481),u(386),"bday","bday-day",u(415),u(374),u(340),u(511)]);function N(t){return"<"+H(t)+">"}function H(t){const e=u,n=(t.getAttribute?.("data-intent-redact-label")??"").trim();if(n)return n;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t.autocomplete||"")[e(456)]()[e(453)]()[e(431)](/\s+/)[e(441)](Boolean):[];return t instanceof HTMLInputElement&&t[e(423)]===e(448)?e(463):o[e(361)](t=>t[e(490)](e(505)))?e(409):o.some(t=>[e(371),e(312),"family-name",e(445),e(506),e(329),e(424)].includes(t))?e(444):o[e(468)](e(306))?e(434):o.includes(e(469))?e(338):o[e(361)](t=>t[e(490)](e(353)))?e(350):o.includes(e(340))?e(389):o[e(361)](t=>[e(368),e(494),e(419),e(483),e(497),"address-level2","address-level3",e(447),e(519),e(388),"country-name"][e(468)](t))?e(446):o[e(468)]("organization")||o[e(468)]("organization-title")?e(402):t.getAttribute?.(k)?.[e(456)]()===e(357)?e(380):e(323)}function P(t){const e=u;return t.hasAttribute(e(516))||t[e(373)](k)?.[e(456)]()===e(471)}function O(){const t=["random","timestamp","geoEnabled","Organization","30eeNueU","length","scrollX","intent:geo","omit","top","Credit card","location","string","query","title","max","bday-month","family-name","slice","addEventListener","address-line2","min","error","href","type","cc-family-name","coords","pointerdown","x-intent-sid","closest","function","Enter","split","7tslFlS","fillStyle","Email","restore","fillRect","context","protocol","target","FileReader error","filter",'="mask"], [',"from","Name","additional-name","Address","address-level4","password","8zhFSxv","visibilitychange","organization","onerror","trim","forEach","hostname","toLowerCase","blur","createElement","pageview","entries","altitudeAccuracy","intent:data-base-url","Password","intent:data-client-id","isFinite","lat","<no visible label>","includes","tel","onload","ignore","visibilityState","/events","organization-title","page-blur","role","right","attributes","granted","clearTimeout","cc-csc","https://intent.callimacus.ai","address-line3","secure","435290tOyPch","button","/p.gif",'input[type="button"]',"label","startsWith","has","scrollY","code","address-line1","getCurrentPosition","31251720tORnpK","address-level1","innerWidth","5170434yZhrgK","Lax","focus","keydown","getItem","intent_sid","cc-","cc-name","speed","tagName","geolocation","getContext","webauthn","data-intent-redact","left","remove","html","data-html2canvas-ignore","randomUUID","a[href]","postal-code","fillText","floor","body",'input[type="submit"]',"x-sl-access-token","image/jpeg","email","stringify","click","searchbox","accuracy","round","given-name","username","height","autocomplete","altitude","key","removeEventListener","undefined","strokeStyle","INPUT","host","Sensitive","value","now","cc-exp-year","push","defineProperty","cc-given-name","aria-label","cc-number","getBoundingClientRect","join","UNKNOWN","outerHTML","drawImage","application/json","Phone","intent:data-ip","sex","intent:consent","result","POSITION_UNAVAILABLE","lon","https:","setTimeout","font","PERMISSION_DENIED","6236344ZGNgeG","Birthday","intent:data-sid-max-age","no-store","bday","width","pixel body fallback failed","934166IqqcvH","mask","strokeRect","device","9226440LfEVgk","some","isSecureContext","TEXTAREA","innerHeight","load","localhost","intent","street-address","disabled","permissions","name","scroll","getAttribute","bday-year","longitude","deviceGeoSent","indexOf","cc-additional-name","POST","Redacted","address-level3","321274DUDygh","hidden","referrer","readAsDataURL","cc-type","px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif","country","Sex","setAttribute",'[role="link"]',"input-submit","img","hasFocus","page-focus","cloneNode",'=""]',"number"];return(O=function(){return t})()}function U(t){const e=u,n=t[e(373)](k);return""===n||"mask"===n?.[e(456)]()}function B(t){const e=u;if(t instanceof HTMLInputElement){if(t[e(423)]===e(448))return!0;if("search"===t[e(423)])return!1;const n=t[e(373)](e(476));if(n&&n[e(456)]()===e(309))return!1;if((t[e(315)]||"")[e(456)]()[e(453)]()[e(431)](/\s+/)[e(441)](Boolean)[e(361)](t=>D[e(491)](t)))return!0}if(t instanceof HTMLTextAreaElement){if((t[e(315)]||"")[e(456)]().trim()[e(431)](/\s+/)[e(441)](Boolean)[e(361)](t=>D[e(491)](t)))return!0}return!1}function C(t){return!P(t)&&(!!U(t)||!!B(t))}function F(){const t=u,e=[],n=t=>{const e=m,n=t[e(332)]();if(n[e(354)]<=0||n[e(314)]<=0)return;const o=Math[e(414)](0,n[e(513)]),a=Math[e(414)](0,n[e(408)]),i=Math[e(414)](0,Math.min(n[e(477)],window[e(498)])-o),r=Math[e(414)](0,Math[e(420)](n.bottom,window.innerHeight)-a);return i<=0||r<=0?void 0:{x:o,y:a,w:i,h:r}};document.querySelectorAll("["+k+t(442)+k+t(397))[t(454)](o=>{const a=t,i=n(o);if(!i)return;const r=H(o)||"Redacted";e[a(327)]({...i,label:r})});return document.querySelectorAll("input, textarea")[t(454)](o=>{const a=t;if(P(i=o)||!U(i)&&!B(i))return;var i;const r=n(o);if(!r)return;const c=H(o);e[a(327)]({...r,label:c})}),e}const R=()=>"granted"===localStorage.getItem(p);function z(t){return e.get(t)}function j(t,n){const o=u,a=localStorage[o(503)](E),i=null===a?void 0:Number(a),r=Number.isFinite(n)?Number(n):typeof i===o(398)&&Number[o(465)](i)?i:86400,c=window[o(410)][o(438)]===o(345);e.set(o(504),t,{expires:r/86400,path:"/",sameSite:o(500),...c&&{secure:!0}})}function W(){e[u(514)]("intent_sid",{path:"/"})}function _(){const t=u,e=z(t(504));if(!R())return e&&W(),void(d="");if(e)return void(d=e);const n=typeof crypto!==t(319)&&typeof crypto[t(517)]===t(429)?crypto[t(517)]():Date.now()+"-"+Math[t(399)]();d=n,j(d)}function q(){return _(),R()&&Boolean(d)&&(()=>{const t=u,e=localStorage[t(503)](M);return"string"==typeof e&&e[t(453)]().length>0})()}function V(){return!q()||y}async function G(e){const n=u,o=function(t){const e=u,n=t[e(396)](!1);return n instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array.from(t[e(478)])[e(454)](({name:t,value:e})=>{n.setAttribute(t,e)}),n[e(324)]=C(t)?N(t):t[e(324)],t[e(369)]&&n.setAttribute(e(369),""),n.outerHTML):n instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array[e(443)](t[e(478)])[e(454)](({name:t,value:o})=>{n[e(390)](t,o)}),n[e(324)]=C(t)?N(t):t[e(324)],t.disabled&&n[e(390)](e(369),""),n[e(335)]):t[e(335)]}(e),a=e[n(332)](),i={useCORS:!0,...{x:window[n(405)],y:window.scrollY,width:window.innerWidth,height:window[n(364)],scale:1,logging:!1},ignoreElements:t=>t instanceof Element&&P(t)},r=await t(document[n(522)],i),c=r[n(354)],s=r[n(314)],l=Math[n(414)](c,s),d=.8*Math[n(414)](window[n(498)],window[n(364)]),f=Math[n(420)](1,d/l),m=12/(a[n(314)]||1),p=Math[n(420)](1,Math[n(414)](f,m)),h=Math[n(311)](c*p),g=Math[n(311)](s*p),w=document[n(458)]("canvas");w[n(354)]=h,w[n(314)]=g;const y=w[n(510)]("2d");y[n(336)](r,0,0,c,s,0,0,h,g);const v=F();if(v.length){y.save(),y.globalAlpha=1;for(const t of v){const e=Math[n(311)](t.x*p),o=Math.round(t.y*p),a=Math[n(311)](t.w*p),i=Math.round(t.h*p);y.fillStyle="#e5e7eb",y[n(436)](e,o,a,i),y[n(320)]="#9ca3af",y.lineWidth=Math[n(414)](1,Math[n(521)](.02*Math[n(420)](a,i))),y[n(358)](e,o,a,i);const r=Math.max(10,Math.min(22,Math[n(521)](.35*i)));y[n(347)]=r+n(387),y[n(433)]="#374151",y.textAlign="center",y.textBaseline="middle";const c="<"+(t.label?.[n(453)]()[n(404)]?t[n(489)]:n(323))+">";y[n(520)](c,e+a/2,o+i/2,a-6)}y[n(435)]()}const b=w.toDataURL(n(305),.8);return{html:o,bbox:{x:a.x,y:a.y,w:a[n(354)],h:a[n(314)]},img:b}}function J(){const t=u,e=localStorage[t(503)](M),n={"Content-Type":"application/json"};return e&&(n[t(304)]=e),d&&(n[t(427)]=d),n}async function X(t,e){const n=u,o=(localStorage[n(503)](x)??T)+n(473),a=localStorage[n(503)](M)??void 0,i=JSON[n(307)]({...t,clientId:a});try{if((await fetch(o,{method:"POST",headers:J(),body:i,keepalive:e,credentials:n(407)})).ok)return}catch{}try{await async function(t,e=!1){const n=u,o=(localStorage[n(503)](x)??T)+n(487);if(!(await fetch(o,{method:n(379),headers:J(),body:JSON.stringify(t),keepalive:e,credentials:n(407),cache:n(352)})).ok)throw new Error(n(355))}(t,e)}catch{}}async function Y(t,e,n,o){const a=u;if(!q())return;const i={...e,localTime:(new Date).toISOString()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(i[a(324)]=C(n)?N(n):n[a(324)]);let r="",c={x:0,y:0,w:0,h:0},s="";const l=!(t===a(372)||t===a(475)||"page-focus"===t),d=Date.now(),m=d-f>=5e3;let p=o;const h=t===a(308)||t===a(392)||t===a(459);l&&!p&&(h||m)&&(p=await G(n),f=d),p&&(r=p[a(515)],c=p.bbox,s=p[a(393)]);const g=t===a(475)||"page-focus"===t||"pageview"===t,w={ts:Date[a(325)](),event:t,props:i,html:g?"":r,bbox:c,img:s},y=document[a(472)]===a(383)||t===a(475);await X(w,y)}function K(){return"enabled"===localStorage.getItem(h)}async function Z(t={}){const e=u;if(!q())return;const n=typeof t[e(466)]===e(398)&&typeof t[e(344)]===e(398);if(n&&w)return;if(!n&&g)return;const o=localStorage[e(503)](S),a={context:await s()};o&&(a.ip=o);for(const[n,o]of Object[e(460)](t))a[n]=o;await Y(e(437),a,document[e(522)],{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),n?w=!0:g=!0}async function Q(){const t=u,e={canSend:q(),geoEnabled:K(),deviceGeoSent:w};if(!e.canSend||!e[t(401)]||e[t(376)])return;const n={secure:window[t(362)],proto:location[t(438)],host:location[t(455)]};if(n[t(484)]||(t(322),t(366)),!(t(509)in navigator))return;if(b)return;b=!0,y=!0;const o={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date[t(325)]();try{await(navigator[t(370)]?.[t(412)]({name:t(509)}))}catch(t){}await new Promise(e=>{const n=t;let a=!1;const i=async(t,n,o)=>{const i=m;a||(a=!0,Date[i(325)](),Number.isFinite(t)&&Number.isFinite(n)&&await Z({lat:t,lon:n,source:i(359)}),b=!1,y=!1,I=!0,e())};navigator[n(509)][n(495)](t=>{const e=m,n=t[e(425)];i(n.latitude,n[e(375)],(n[e(310)],typeof n[e(316)]===e(398)&&n[e(316)],typeof n[e(461)]===e(398)&&n[e(461)],"number"==typeof n.heading&&n.heading,"number"==typeof n.speed&&n[e(507)],t[e(400)],document[e(472)],document[e(394)]()))},t=>{const e=m,n=t?.[e(493)];1===n?e(348):2===n?e(343):3===n||e(334),document[e(472)],document[e(394)](),window[e(362)],location[e(455)],i(void 0,void 0)},o)})}function $(){const t=u;if(v||!K()||w)return;v=!0;const e=()=>{window[m(318)]("pointerdown",e,!0),window.removeEventListener("keydown",e,!0),Q()};window[t(418)](t(426),e,!0),window[t(418)](t(502),e,!0)}_();let tt=!document[u(383)]&&document.hasFocus(),et=document[u(394)]();const nt=()=>{const t=u;if(V())return;const e=!document[t(383)]&&document[t(394)]();e&&(et=!0),et||e?e!==tt&&(tt=e,Y(t(e?395:475),{},document[t(522)])):tt=e};function ot(){const t=u;(function(){const t=u,e=globalThis;return!e[A]&&(Object[t(328)](e,A,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window[t(418)](t(365),()=>{const e=t;q()&&(Z(),(window[e(362)]||location[e(455)]===e(366))&&(K()&&$(),window[e(418)](e(501),()=>{!w&&K()&&!b&&I&&Q()}),document[e(418)](e(450),()=>{!document[e(383)]&&!w&&K()&&!b&&I&&Q()})))}),window.addEventListener("storage",e=>{const n=t;e[n(317)]===p&&(function(){const t=u;return localStorage[t(503)](p)===t(479)}()?(g=!1,Z(),K()&&$()):(g=!1,w=!1)),e[n(317)]===h&&(K()?$():w=!1)}),window[t(418)]("load",()=>{const e=t;q()&&Y(e(459),{url:window[e(410)][e(422)],title:document[e(413)],ref:document[e(384)]},document.body)}),addEventListener(t(426),function(t,e){let n=0;return(...o)=>{const a=Date[m(325)]();a-n>=e&&(n=a,t(...o))}}(e=>{const n=t;if(V())return;const o=e.target instanceof Element?e[n(439)][n(428)](L):null;o instanceof HTMLElement&&(l=G(o))},50),{capture:!0,passive:!0}),addEventListener(t(308),async e=>{const n=t;if(V())return;const o=e[n(439)]instanceof Element?e[n(439)][n(428)](L):null;if(!(o instanceof HTMLElement))return;const a=function(t){const e=u;return t[e(373)](e(330))??t.title??t.textContent?.[e(453)]()??e(467)}(o),i=l?await l:void 0;l=void 0,await Y("click",{tag:o[n(508)],label:a},o,i)},!0),addEventListener(t(502),e=>{const n=t;if(!V()&&e[n(317)]===n(430)){const t=e.target;if(t instanceof HTMLElement&&(t[n(508)]===n(321)||t[n(508)]===n(363))){const e=t instanceof HTMLInputElement?t[n(371)]:void 0,o=t.id||void 0;Y(n(392),{tag:t.tagName,name:e??o},t)}}},{capture:!0}),[t(501),t(457)].forEach(e=>{window[t(418)](e,nt)}),document[t(418)](t(450),nt),window[t(418)](t(372),function(t,e){let n;return(...o)=>{const a=m;void 0!==n&&window[a(480)](n),n=window[a(346)](()=>{n=void 0,t(...o)},e)}}(()=>{const e=t;V()||Y(e(372),{scrollX:window[e(405)],scrollY:window[e(492)]},document[e(522)])},250),{passive:!0}),window[t(367)]??={send(e,n){const o=t;q()&&Y(e,n,document[o(522)])}})}function at(t,e){const n=ct();return(at=function(t,e){return n[t-=369]})(t,e)}function it(t,e){const n=at;try{if(void 0===e)return;localStorage[n(397)](t,e?t===n(374)?n(395):n(380):n(378))}catch{}}function rt(t={}){const e=at;if(localStorage[e(397)](e(388),t[e(371)]??""),localStorage[e(397)](e(399),t.ip??""),localStorage[e(397)](e(398),t[e(370)]??e(377)),typeof t[e(382)]===e(385)&&localStorage[e(397)](e(372),String(t.sidMaxAgeSeconds)),it(e(374),t[e(384)]),it(e(376),t[e(387)]),t[e(384)]){if(!z(e(383))){j(typeof crypto!==e(375)&&"function"==typeof crypto.randomUUID?crypto.randomUUID():Date.now()+"-"+Math[e(392)](),t[e(382)])}}ot()}function ct(){const t=["sidMaxAgeSeconds","intent_sid","consent","number","274338WwuMlj","geo","intent:data-client-id","10sKtUPd","112AnIZtR","72osIQFB","random","3rNxHTV","1760381CkidjE","granted","6pVnJRE","setItem","intent:data-base-url","intent:data-ip","2616588iFdabH","302843IwxPwX","891960jiIltJ","baseUrl","clientId","intent:data-sid-max-age","4952330rYhuCM","intent:consent","undefined","intent:geo","https://intent.callimacus.ai","disabled","77604OrSxVM","enabled","11RzpRHh"];return(ct=function(){return t})()}function st(){return z(at(383))}function ut(){_()}function lt(){W()}function dt(t){const e=at;Number.isFinite(t)&&localStorage[e(397)](e(372),String(t));const n=z(e(383));n&&j(n,t)}!function(){const t=at,e=ct();for(;;)try{if(432823===parseInt(t(401))/1+parseInt(t(369))/2*(-parseInt(t(393))/3)+parseInt(t(379))/4*(parseInt(t(389))/5)+parseInt(t(396))/6*(parseInt(t(394))/7)+-parseInt(t(390))/8*(parseInt(t(386))/9)+parseInt(t(373))/10*(-parseInt(t(381))/11)+parseInt(t(391))/12*(parseInt(t(400))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{lt as clearIntentSessionId,ut as ensureIntentSessionId,st as getIntentSessionId,rt as initIntent,it as setFlag,dt as setIntentSessionMaxAge};
4
+ import t from"html2canvas-pro";import n from"js-cookie";function e(t,n){const i=o();return(e=function(t,n){return i[t-=104]})(t,n)}function o(){const t=["gamma","isArray","°, γ ","TTFB ~","push","resource","(display-mode: standalone)","toString","not charging","886158iXRfvV","unknown","find","CPU: ","rttMs","intent:geo"," cores","startsWith","userAgentData","max","charging","length","Timezone: ",", display-mode standalone: ","type","User agent: "," (UTC","encodedBodySize","devicePixelRatio","matches","flat","availWidth","mobile","hardwareConcurrency","getItem","deviceorientation","browser API","saveData","Local time: ","brands","483924ESXDYb","Screen: ","requestStart","getEntriesByType","2935836GSTqDq","downlinkMbps","innerWidth","transferSize","number","onLine","beta","colorDepth","Network: ","availHeight","connection","toFixed","Referrer: ","maxTouchPoints","filter","entryType","CookiesEnabled: ","Language: ","undefined"," ms",", maxTouchPoints ","upright","236560HmFKbn","level","downlink","(pointer: coarse)","2820IbvQiZ","7YFPDNp","-bit)","some","getTimezoneOffset","version","1405UEIDYw","reclined","resolvedOptions","referrer","isSecureContext","Device geolocation: disabled","Platform: ","enabled","innerHeight","platform","UA brands: ","no SW","map","orientation"," (mobile)","x (avail ","timeZone"," | ","SW-controlled","languages","isFinite","removeEventListener","duration","n/a","addEventListener","effectiveType","fine","padStart","function","userAgent","serviceWorker","abs","yes","PWA: ","Languages: ","971592jzMNHu","join","round"," Mbps","getBattery","TTFB","40355aJtDQX","navigation"];return(o=function(){return t})()}async function i(){const t=e,n=[];let o=t(200);if(function(t){const n=e;return n(218)in t&&typeof t.connection!==n(108)}(navigator)){const e=navigator[t(218)];e?.[t(147)]&&n[t(169)](e[t(147)]),typeof e?.downlink===t(212)&&n.push("~"+e[t(114)]+" Mbps"),typeof e?.rtt===t(212)&&n.push(e.rtt+" ms"),e?.[t(201)]&&n[t(169)](t(201))}else{const i=function(t=20){const n=e,o=performance[n(207)]("navigation")[n(176)](t=>t[n(105)]===n(164)),i=o?Math[n(183)](0,o.responseStart-o[n(206)]):void 0,a=performance[n(207)]("resource")[n(104)](t=>t[n(105)]===n(170));let r=0,c=0;for(const e of a.slice(0,Math.max(0,t))){const t=e[n(191)]>0?e[n(191)]:e[n(211)]>0?e[n(211)]:0,o=e[n(144)];t>0&&o>0&&Number.isFinite(o)&&(r+=t,c+=o)}const s=c>0?8*r/c:void 0;return{downlinkMbps:typeof s===n(212)?s/1e3:void 0,rttMs:i}}();typeof i[t(209)]===t(212)&&n[t(169)]("~"+i.downlinkMbps[t(219)](1)+t(160)),typeof i[t(178)]===t(212)&&n[t(169)](t(168)+Math[t(159)](i.rttMs)+t(109)),o="inferred"}const i=performance[t(207)](t(164))[t(176)](n=>"navigation"===n[t(105)]);if(i){const e=Math[t(183)](0,i.responseStart-i[t(206)]);!n[t(119)](n=>n[t(181)](t(162)))&&n[t(169)]("TTFB ~"+Math[t(159)](e)+t(109))}return n.length?t(216)+n.join(", ")+" ("+o+")":void 0}function a(){const t=e;if(n=navigator,!(e(182)in n)||void 0===n.userAgentData)return;var n;const o=navigator[t(182)],i=Array[t(166)](o[t(203)])?o[t(203)][t(134)](n=>n.brand+" "+n[t(121)])[t(158)](", "):void 0,a=o[t(131)]?""+o[t(131)]+(o[t(196)]?t(136):""):void 0;return[i&&t(132)+i,a&&t(128)+a][t(104)](Boolean)[t(158)](t(139))||void 0}async function r(t=400){const n=e;if("DeviceOrientationEvent"in window&&window[n(126)])return new Promise(o=>{const i=n;let a=!1;const r=t=>{const n=e,i=typeof t[n(214)]===n(212)?t[n(214)]:void 0,c=typeof t[n(165)]===n(212)?t[n(165)]:void 0;if(void 0===i||void 0===c)return;if(a)return;a=!0,window[n(143)](n(199),r);const s=function(t,n){const o=e,i=Math[o(153)](t),a=Math.abs(n);return o(i<15&&a<15?194:i>=60?111:123)}(i,c);o("Tilt: "+s+" (β "+Math.round(i)+n(167)+Math[n(159)](c)+"°)")};window.setTimeout(()=>{const t=e;a||(a=!0,window[t(143)](t(199),r),o(void 0))},t),window[i(146)]("deviceorientation",r,{passive:!0})})}async function c(){const t=e;if(function(t){const n=e;return n(161)in t&&typeof t.getBattery===n(150)}(navigator))try{const n=await navigator[t(161)](),e=Math[t(159)](100*n[t(113)]);return"Battery: "+[(Number[t(142)](e)?e:0)+"%",n.charging?t(184):t(173)][t(158)](", ")}catch{}}async function s(){const t=e,n=(new Intl.DateTimeFormat)[t(124)]()[t(138)],o=function(t){const n=e,o=t<=0?"+":"-",i=Math[n(153)](t);return""+o+String(Math.floor(i/60)).padStart(2,"0")+":"+String(i%60)[n(149)](2,"0")}((new Date)[t(120)]()),s=[];s[t(169)](t(107)+navigator.language),navigator[t(141)]?.[t(185)]&&s[t(169)](t(156)+navigator.languages[t(158)](", ")),s.push(t(189)+navigator[t(151)]);const l=a();l&&s[t(169)](l),s[t(169)](t(186)+n+t(190)+o+")"),s[t(169)](t(202)+(new Date)[t(172)]());const u=window[t(192)]||1;s[t(169)](t(205)+screen.width+"x"+screen.height+" @"+u+t(137)+screen[t(195)]+"x"+screen[t(217)]+", "+screen[t(215)]+t(118));const d=screen[t(135)]&&t(188)in screen.orientation?screen.orientation[t(188)]:void 0;s[t(169)]("Viewport: "+window[t(210)]+"x"+window[t(130)]+(d?", orientation "+d:"")),s[t(169)](t(177)+navigator[t(197)]+t(180));const f=await i();f&&s[t(169)](f),s[t(169)](function(){const t=e,n=typeof matchMedia===t(150)&&matchMedia(t(115)).matches,o=typeof matchMedia===t(150)&&matchMedia("(pointer: fine)")[t(193)],i=n?"coarse":t(o?148:175),a=navigator[t(221)];return"Pointer/Touch: "+i+t(110)+a}());const m=await c();m&&s[t(169)](m),s[t(169)](t(106)+(navigator.cookieEnabled?t(154):"no")+"; DNT: "+(navigator.doNotTrack??t(145))),s.push("Online: "+(navigator[t(213)]?t(154):"no")),document[t(125)]&&s.push(t(220)+document[t(125)]),s[t(169)](function(){const t=e,n="function"==typeof matchMedia&&matchMedia(t(171))[t(193)],o=Boolean(navigator[t(152)]?.controller);return t(155)+t(o?140:133)+t(187)+(n?t(154):"no")}());const p=await r();p&&s[t(169)](p);const g=localStorage[t(198)](t(179))===t(129);return s[t(169)](g?"Device geolocation: enabled":t(127)),s[t(158)](t(139))}!function(){const t=e,n=o();for(;;)try{if(104528===-parseInt(t(163))/1+-parseInt(t(112))/2+parseInt(t(204))/3+parseInt(t(116))/4*(-parseInt(t(122))/5)+-parseInt(t(174))/6+parseInt(t(117))/7*(parseInt(t(157))/8)+parseInt(t(208))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();const l=P;!function(){const t=P,n=K();for(;;)try{if(264830===-parseInt(t(395))/1+-parseInt(t(511))/2+-parseInt(t(543))/3*(-parseInt(t(378))/4)+-parseInt(t(454))/5+-parseInt(t(552))/6*(-parseInt(t(545))/7)+parseInt(t(371))/8*(-parseInt(t(537))/9)+parseInt(t(502))/10*(parseInt(t(506))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();let u,d="",f=0;let m;const p=l(391),g="intent:geo";let w=!1,h=!1,y=!1,v=!1,b=!1,I=!1;const T="intent:data-client-id",S=l(547),x=l(527),M=l(410),E=l(474),A="__intent__sdk__initialized__",L=[l(483),"a[href]","a",'input[type="submit"]','input[type="button"]',l(389),l(538),l(488)].join(","),k="data-intent-redact",D=l(377),H=new Set([l(374),l(400),l(532),l(458),l(448),l(449),"email",l(509),l(396),l(492),l(479),l(445),"address-line2",l(413),"address-level1",l(536),l(460),l(439),l(480),l(476),l(421),l(544),l(504),l(427),"cc-family-name","cc-number","cc-exp",l(518),l(495),l(463),l(517),"bday","bday-day",l(407),"bday-year",l(402),l(467)]);function N(t){return"<"+function(t){const n=l,e=(t[n(526)]?.(D)??"")[n(382)]();if(e)return e;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t[n(372)]||"")[n(461)]()[n(382)]()[n(516)](/\s+/)[n(471)](Boolean):[];return t instanceof HTMLInputElement&&"password"===t.type?"Password":o[n(388)](t=>t[n(540)]("cc-"))?n(491):o[n(388)](t=>[n(374),n(400),n(458),"additional-name","cc-name",n(504),n(529)][n(451)](t))?n(490):o[n(451)](n(539))?n(432):o[n(451)](n(509))?"Phone":o[n(388)](t=>t[n(540)](n(366)))?n(455):o[n(451)](n(402))?"Sex":o[n(388)](t=>["street-address",n(445),"address-line2",n(413),n(419),n(536),"address-level3",n(439),n(421),n(480),n(476)][n(451)](t))?"Address":o[n(451)](n(396))||o[n(451)]("organization-title")?n(367):t[n(526)]?.(k)?.[n(461)]()===n(507)?"Redacted":n(370)}(t)+">"}function B(t){const n=l;return t[n(500)](n(428))||t.getAttribute(k)?.[n(461)]()===n(470)}function P(t,n){const e=K();return(P=function(t,n){return e[t-=366]})(t,n)}function F(t){return!B(t)&&(!!function(t){const n=l,e=t.getAttribute(k);return""===e||e?.[n(461)]()===n(507)}(t)||!!function(t){const n=l;if(t instanceof HTMLInputElement){if(t[n(420)]===n(426))return!0;if(t.type===n(528))return!1;const e=t[n(526)](n(494));if(e&&e[n(461)]()===n(531))return!1;if((t[n(372)]||"")[n(461)]().trim()[n(516)](/\s+/)[n(471)](Boolean)[n(388)](t=>H[n(519)](t)))return!0}if(t instanceof HTMLTextAreaElement&&(t.autocomplete||"")[n(461)]()[n(382)]()[n(516)](/\s+/)[n(471)](Boolean)[n(388)](t=>H[n(519)](t)))return!0;return!1}(t))}const O=()=>localStorage[l(553)](p)===l(503);function C(t){return n[l(447)](t)}function z(t,e){const o=l,i=localStorage.getItem(E),a=null===i?void 0:Number(i),r=Number.isFinite(e)?Number(e):typeof a===o(489)&&Number.isFinite(a)?a:86400,c=window[o(442)][o(435)]===o(384);n[o(525)](o(422),t,{expires:r/86400,path:"/",sameSite:o(475),...c&&{secure:!0}})}function U(){const t=l;n.remove(t(422),{path:"/"})}function R(){const t=l,n=C(t(422));if(!O())return n&&U(),void(d="");n?d=n:(d=crypto[t(510)](),z(d))}function W(){return R(),O()&&Boolean(d)&&function(){const t=l;return Boolean(localStorage[t(553)](T)?.[t(382)]()[t(416)])}()}function _(){return!W()||y}async function j(n){return m&&await m,m=(async()=>{const e=P;try{const o=performance[e(381)](),i=performance[e(381)](),a=function(t){const n=l,e=t.cloneNode(!1);return e instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array[n(497)](t.attributes)[n(425)](({name:t,value:o})=>{e[n(515)](t,o)}),e.value=F(t)?N(t):t[n(379)],t[n(398)]&&e[n(515)](n(398),""),e[n(546)]):e instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array[n(497)](t[n(405)])[n(425)](({name:t,value:o})=>{e[n(515)](t,o)}),e[n(379)]=F(t)?N(t):t[n(379)],t[n(398)]&&e.setAttribute(n(398),""),e[n(546)]):t[n(546)]}(n),r=performance[e(381)]()-i;console[e(385)](e(542)+r.toFixed(2)+"ms");const c=n[e(473)](),s=performance[e(381)](),u={left:window[e(535)],top:window[e(550)],right:window[e(535)]+window[e(369)],bottom:window[e(550)]+window[e(415)]},d=await t(document[e(481)],{useCORS:!0,x:window[e(535)],y:window.scrollY,width:window.innerWidth,height:window[e(415)],scale:.6,logging:!1,onclone(t,n){const o=e,i=t.querySelectorAll(o(392));for(let t=0;t<i[o(416)];t++){const n=i[t];if(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement){if(n.hasAttribute(o(428))||n[o(526)](k)?.[o(461)]()===o(470))continue;let t=!1;const e=n[o(526)](k);if((""===e||e?.[o(461)]()===o(507))&&(t=!0),n[o(420)]===o(426)&&(t=!0),!t){const e=(n[o(526)](o(372))||"")[o(461)]()[o(382)]()[o(516)](/\s+/).filter(Boolean);if("search"===n[o(420)]||n[o(526)](o(494))?.[o(461)]()===o(531))continue;e.some(t=>H[o(519)](t))&&(t=!0)}t&&(n.value=N(n))}}},ignoreElements(t){const n=e;if(!(t instanceof Element))return!1;if(B(t))return!0;const o=t.getBoundingClientRect(),i={left:o[n(394)]+window.scrollX,top:o.top+window[n(550)],right:o[n(554)]+window[n(535)],bottom:o[n(368)]+window.scrollY},a=100;if(i[n(554)]<u[n(394)]-a||i[n(394)]>u[n(554)]+a||i[n(368)]<u.top-a||i[n(505)]>u.bottom+a){const e=window.getComputedStyle(t)[n(521)];if(e===n(386)||e===n(523)){const t=500;return i.right<u[n(394)]-t||i[n(394)]>u[n(554)]+t||i[n(368)]<u[n(505)]-t||i[n(505)]>u[n(368)]+t}return!0}return!1}}),f=performance[e(381)]()-s;console.log(e(485)+f.toFixed(2)+"ms");const m=performance[e(381)](),p=d[e(393)](e(412),.8),g=performance.now()-m;console[e(385)](e(452)+g[e(464)](2)+"ms");const w=performance[e(381)]()-o;return console[e(385)]("[Timing] capture-total: "+w[e(464)](2)+"ms"),{html:a,bbox:{x:c.x,y:c.y,w:c[e(501)],h:c[e(493)]},img:p}}finally{m=void 0}})(),m}function X(){const t=l,n=localStorage.getItem(T),e={"Content-Type":"application/json"};return n&&(e[t(433)]=n),d&&(e[t(446)]=d),e}async function V(t){const n=l,e=(localStorage[n(553)](x)??M)+"/events",o=localStorage[n(553)](T)??void 0,i=JSON.stringify({...t,clientId:o});try{if((await fetch(e,{method:"POST",headers:X(),body:i,keepalive:!0,credentials:n(487)})).ok)return}catch{}try{await async function(t){const n=l,e=(localStorage[n(553)](x)??M)+n(514);if(!(await fetch(e,{method:n(508),headers:X(),body:JSON[n(482)](t),keepalive:!0,credentials:n(487),cache:n(530)})).ok)throw new Error(n(444))}(t)}catch{}}async function Y(t,n,e,o){const i=l;if(!W())return;const a={...n,localTime:(new Date)[i(549)]()};(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(a.value=F(e)?N(e):e.value);let r="",c={x:0,y:0,w:0,h:0},s="";const u=!(t===i(404)||t===i(401)||t===i(436)),d=Date.now(),m=d-f>=0;let p=o;const g=t===i(462)||t===i(423)||t===i(417);u&&(g&&!p||!p&&m)&&(p=await j(e),f=d),p&&(r=p.html,c=p.bbox,s=p.img);const w=t===i(401)||t===i(436)||t===i(417),h={ts:Date[i(381)](),event:t,props:a,html:w?"":r,bbox:c,img:s};await V(h)}function q(){const t=l;return localStorage[t(553)](g)===t(409)}async function Z(t={}){const n=l;if(!W())return;const e=typeof t.lat===n(489)&&typeof t[n(524)]===n(489);if(e&&h)return;if(!e&&w)return;const o=localStorage[n(553)](S),i={context:await s()};o&&(i.ip=o);for(const[e,o]of Object[n(450)](t))i[e]=o;await Y(n(457),i,document[n(481)],{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),e?h=!0:w=!0}async function G(){const t=l,n={canSend:W(),geoEnabled:q(),deviceGeoSent:h};if(!n.canSend||!n.geoEnabled||n[t(390)])return;if(window[t(465)],!(t(430)in navigator))return;if(b)return;b=!0,y=!0;const e={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date[t(381)]();try{await(navigator[t(498)]?.query({name:t(430)}))}catch(t){}await new Promise(n=>{let o=!1;const i=async(t,e,i)=>{const a=P;o||(o=!0,Date[a(381)](),Number[a(411)](t)&&Number.isFinite(e)&&await Z({lat:t,lon:e,source:a(438)}),b=!1,y=!1,I=!0,n())};navigator[t(430)].getCurrentPosition(t=>{const n=P,e=t[n(512)];i(e[n(376)],e[n(408)],(e[n(453)],typeof e[n(380)]===n(489)&&e.altitude,typeof e[n(397)]===n(489)&&e[n(397)],"number"==typeof e[n(375)]&&e[n(375)],typeof e.speed===n(489)&&e[n(387)],t[n(418)],document.hasFocus()))},t=>{const n=P,e=t?.[n(533)];1===e?n(441):2===e&&n(534),navigator[n(486)],document[n(429)],document[n(414)](),window[n(465)],location[n(435)],location[n(468)],i(void 0,void 0)},e)})}function K(){const t=["Email","x-sl-access-token","TEXTAREA","protocol","page-focus","defineProperty","device","address-level4","referrer","PERMISSION_DENIED","location","pointerdown","pixel body fallback failed","address-line1","x-intent-sid","get","nickname","username","entries","includes","[Timing] jpeg-encoding: ","accuracy","228460vzHXQA","Birthday","INPUT","context","family-name","closest","address-level3","toLowerCase","click","cc-csc","toFixed","isSecureContext","<no visible label>","webauthn","hostname","target","ignore","filter","push","getBoundingClientRect","intent:data-sid-max-age","Lax","country-name","min","max","street-address","country","body","stringify","button","tagName","[Timing] html2canvas-pro: ","onLine","omit","[onclick]","number","Name","Credit card","organization-title","height","role","cc-exp-year","addEventListener","from","permissions","querySelectorAll","hasAttribute","width","3963530DfPQOZ","granted","cc-given-name","top","11KiMkVH","mask","POST","tel","randomUUID","103760lfqPdV","coords","intent","/p.gif","setAttribute","split","cc-type","cc-exp-month","has","blur","position","keydown","absolute","lon","set","getAttribute","intent:data-base-url","search","cc-family-name","no-store","searchbox","additional-name","code","POSITION_UNAVAILABLE","scrollX","address-level2","5319eKIZhK",'[role="link"]',"email","startsWith","hidden","[Timing] serialize: ","118794jobtug","cc-name","679455XEEOaK","outerHTML","intent:data-ip","removeEventListener","toISOString","scrollY","load","24MxbKNR","getItem","right","bday","Organization","bottom","innerWidth","Sensitive","4568bBzdVb","autocomplete","storage","name","heading","latitude","data-intent-redact-label","8ZyzFus","value","altitude","now","trim","title","https:","log","fixed","speed","some",'[role="button"]',"deviceGeoSent","intent:consent","input, textarea","toDataURL","left","163946UwYMtI","organization","altitudeAccuracy","disabled",'="mask"], [',"given-name","page-blur","sex","clearTimeout","scroll","attributes","href","bday-month","longitude","enabled","https://intent.callimacus.ai","isFinite","image/jpeg","address-line3","hasFocus","innerHeight","length","pageview","timestamp","address-level1","type","postal-code","intent_sid","input-submit",'=""]',"forEach","password","cc-additional-name","data-html2canvas-ignore","visibilityState","geolocation","localhost"];return(K=function(){return t})()}function Q(){const t=l;if(v||!q()||h)return;v=!0;const n=()=>{const t=P;window.removeEventListener("pointerdown",n,!0),window[t(548)](t(522),n,!0),G()};window[t(496)](t(443),n,!0),window[t(496)](t(522),n,!0)}R();let J=!document[l(541)]&&document[l(414)](),$=document[l(414)]();function tt(){const t=l;if(_())return;const n=!document[t(541)]&&document[t(414)]();n&&($=!0),$||n?n!==J&&(J=n,Y(t(n?436:401),{},document[t(481)])):J=n}function nt(){const t=l;(function(){const t=l,n=globalThis;return!n[A]&&(Object[t(437)](n,A,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window[t(496)](t(551),()=>{const n=t;W()&&(Z(),(window.isSecureContext||location[n(468)]===n(431))&&(q()&&Q(),window[n(496)]("focus",()=>{!h&&q()&&!b&&I&&G()}),document[n(496)]("visibilitychange",()=>{!document[n(541)]&&!h&&q()&&!b&&I&&G()})))}),window[t(496)](t(373),t=>{t.key===p&&(function(){const t=l;return localStorage[t(553)](p)===t(503)}()?(w=!1,Z(),q()&&Q()):(w=!1,h=!1)),t.key===g&&(q()?Q():h=!1)}),window[t(496)]("load",()=>{const n=t;W()&&Y(n(417),{url:window[n(442)][n(406)],title:document[n(383)],ref:document[n(440)]},document[n(481)])}),addEventListener("pointerdown",function(t,n){let e=0;return(...o)=>{const i=Date[P(381)]();i-e>=n&&(e=i,t(...o))}}(n=>{const e=t;if(_())return;const o=n[e(469)]instanceof Element?n[e(469)][e(459)](L):null;o instanceof HTMLElement&&(u=j(o))},50),{capture:!0,passive:!0}),addEventListener(t(462),async n=>{const e=t;if(_())return;if(!(n.target instanceof Element))return;const o=n[e(469)][e(459)](L);if(!(o instanceof HTMLElement))return;const i=function(t){const n=l;return t[n(526)]("aria-label")??t[n(383)]??t.textContent?.[n(382)]()??n(466)}(o);(async()=>{const t=e,n=u?await u:void 0;u=void 0,Y(t(462),{tag:o[t(484)],label:i},o,n)})()},!0),addEventListener(t(522),n=>{const e=t;if(!_()&&"Enter"===n.key){const t=n[e(469)];if(t instanceof HTMLElement&&(t[e(484)]===e(456)||t[e(484)]===e(434))){const n=t instanceof HTMLInputElement?t[e(374)]:void 0,o=t.id||void 0;Y(e(423),{tag:t[e(484)],name:n??o},t)}}},{capture:!0}),["focus",t(520)][t(425)](n=>{window[t(496)](n,tt)}),document[t(496)]("visibilitychange",tt),window[t(496)](t(404),function(t,n){let e;return(...o)=>{void 0!==e&&window[P(403)](e),e=window.setTimeout(()=>{e=void 0,t(...o)},n)}}(()=>{const n=t;_()||Y("scroll",{scrollX:window[n(535)],scrollY:window[n(550)]},document[n(481)])},250),{passive:!0}),window[t(513)]??={send(n,e){const o=t;W()&&Y(n,e,document[o(481)])}})}function et(t,n){const e=ot;try{if(void 0===n)return;localStorage[e(435)](t,n?t===e(419)?"granted":e(443):e(416))}catch{}}function ot(t,n){const e=lt();return(ot=function(t,n){return e[t-=414]})(t,n)}function it(t={}){const n=ot;if(localStorage[n(435)](n(431),t[n(418)]??""),localStorage[n(435)](n(439),t.ip??""),localStorage[n(435)](n(434),t.baseUrl??n(433)),"number"==typeof t.sidMaxAgeSeconds&&localStorage[n(435)]("intent:data-sid-max-age",String(t[n(442)])),et(n(419),t[n(432)]),et("intent:geo",t.geo),t.consent){if(!C(n(422))){z(typeof crypto!==n(423)&&typeof crypto[n(420)]===n(417)?crypto[n(420)]():Date[n(429)]()+"-"+Math[n(414)](),t[n(442)])}}nt()}function at(){return C(ot(422))}function rt(){R()}function ct(){U()}function st(t){const n=ot;Number[n(437)](t)&&localStorage.setItem(n(436),String(t));const e=C("intent_sid");e&&z(e,t)}function lt(){const t=["725915tWeECM","disabled","function","clientId","intent:consent","randomUUID","53867aVVuhf","intent_sid","undefined","1624122HBDTRV","594oyGWGP","1295903ypjAtN","386608gxfXnw","858846hTGZRX","now","480BtvyCC","intent:data-client-id","consent","https://intent.callimacus.ai","intent:data-base-url","setItem","intent:data-sid-max-age","isFinite","1680IrcbIO","intent:data-ip","80gHNZAQ","10gOyWwY","sidMaxAgeSeconds","enabled","random"];return(lt=function(){return t})()}!function(){const t=ot,n=lt();for(;;)try{if(912581===-parseInt(t(415))/1+parseInt(t(425))/2*(-parseInt(t(438))/3)+parseInt(t(427))/4*(parseInt(t(441))/5)+-parseInt(t(428))/6+parseInt(t(426))/7+-parseInt(t(440))/8*(-parseInt(t(424))/9)+parseInt(t(430))/10*(-parseInt(t(421))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();export{ct as clearIntentSessionId,rt as ensureIntentSessionId,at as getIntentSessionId,it as initIntent,et as setFlag,st as setIntentSessionMaxAge};