@solomei-ai/intent 1.8.1 → 1.9.2
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 +46 -0
- package/dist/esm/index.js +1 -1
- package/dist/intent.umd.min.js +2 -2
- package/dist/types/index.d.ts +1 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -44,6 +44,7 @@ initIntent({
|
|
|
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
46
|
sidMaxAgeSeconds: 86400, // Optional: Session cookie max-age in seconds (default: 30 days)
|
|
47
|
+
debug: false, // Optional: Enable debug logging for timing information (default: false)
|
|
47
48
|
});
|
|
48
49
|
```
|
|
49
50
|
|
|
@@ -103,11 +104,56 @@ setFlag('intent:consent', false); // disabled
|
|
|
103
104
|
// Enable or disable device geolocation capture
|
|
104
105
|
setFlag('intent:geo', true); // enabled
|
|
105
106
|
setFlag('intent:geo', false); // disabled
|
|
107
|
+
|
|
108
|
+
// Enable or disable debug logging
|
|
109
|
+
setFlag('intent:debug', true); // enabled
|
|
110
|
+
setFlag('intent:debug', false); // disabled
|
|
106
111
|
```
|
|
107
112
|
- When consent is granted, the tracker maintains a first-party cookie `intent_sid`.
|
|
108
113
|
- If consent is revoked, the tracker clears `intent_sid` and stops sending events.
|
|
109
114
|
---
|
|
110
115
|
|
|
116
|
+
## Debug Logging
|
|
117
|
+
|
|
118
|
+
By default, the SDK does not output any console logs to avoid spamming the browser console. However, you can enable debug logging to see timing information for performance analysis:
|
|
119
|
+
|
|
120
|
+
```ts
|
|
121
|
+
import {initIntent} from '@solomei-ai/intent';
|
|
122
|
+
|
|
123
|
+
// Enable debug logging during initialization
|
|
124
|
+
initIntent({
|
|
125
|
+
clientId: 'cal-pk-...',
|
|
126
|
+
debug: true, // Enable debug logs
|
|
127
|
+
});
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Or toggle debug logging at runtime:
|
|
131
|
+
|
|
132
|
+
```ts
|
|
133
|
+
import {setFlag} from '@solomei-ai/intent';
|
|
134
|
+
|
|
135
|
+
// Enable debug logging
|
|
136
|
+
setFlag('intent:debug', true);
|
|
137
|
+
|
|
138
|
+
// Disable debug logging
|
|
139
|
+
setFlag('intent:debug', false);
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
When debug logging is enabled, the SDK will output timing information to the console, including:
|
|
143
|
+
- **HTML serialization time**: Time taken to serialize the DOM into HTML
|
|
144
|
+
- **Screenshot capture time**: Time taken by html2canvas-pro to render the page
|
|
145
|
+
- **JPEG encoding time**: Time taken to encode the canvas to JPEG format
|
|
146
|
+
- **Total capture time**: Total time for the entire capture process
|
|
147
|
+
|
|
148
|
+
This is useful for:
|
|
149
|
+
- **Performance tuning**: Identify bottlenecks in the capture process
|
|
150
|
+
- **Development debugging**: Understand SDK behavior during development
|
|
151
|
+
- **Production troubleshooting**: Temporarily enable logs to diagnose issues
|
|
152
|
+
|
|
153
|
+
**Note:** Debug logging is disabled by default to prevent console spam in production. Only enable it when needed for debugging or performance analysis.
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
111
157
|
## Using `intent_sid`
|
|
112
158
|
|
|
113
159
|
Use these utilities to read or manage the session cookie from your app:
|
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 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};
|
|
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};
|