PageSourceSearch

https://www.armani.com/_nuxt/datadogRecorder-DrOvHUvQ.js

js armani.com collected 2026-09-24 08:45:51 UTC 33,008 bytes, 3 lines download raw bytes

1import{T as D,k as Ge,aM as We,aN as W,aO as P,D as I,t as Ye,X as M,aP as H,aQ as V,aH as $e,r as Xe,u as je,m as pe,s as he,aR as ge,ac as qe,aS as Se,aT as me,aU as Je,aV as Ke,g as Qe,q as Ze,c as Z,a as ee,b as et,E as tt,d as nt}from"./configuration-BIB4Y30h.js";import{s as z,C as Ce,i as Ie,N,b as st,c as te,d as ot,g as rt,f as Ee,e as ye,h as it,j as Te,k as Ne,r as at,P as ut,l as ct,m as be,n as _,o as Me,L as O,p as dt,q as lt,t as ft,u as pt,v as ht,w as gt,x as St,y as mt,z as Ct}from"./main-DI4e36E2.js";import"./vendors-BEoIbp2n.js";function It(){return Et()===1}let ne;function Et(){return ne??(ne=yt())}function yt(e=window){var n;const t=e.navigator.userAgent;return e.chrome||/HeadlessChrome/.test(t)?0:((n=e.navigator.vendor)==null?void 0:n.indexOf("Apple"))===0||/safari/i.test(t)&&!/chrome|android/i.test(t)?1:2}function Tt(){const e=new Set,t=new WeakSet;let n=[],s=new WeakMap;function o(u){let f=s.get(u);return f||(f={capturePending:!1},s.set(u,f)),f}function r(u){const f=o(u);f.capturePending=!0;const d=()=>s.get(u)===f;return{lastChangeHash:f.lastChangeHash,isCurrent:d,setLastChangeHash:l=>{d()&&(f.lastChangeHash=l)}}}function i(u){!u.isConnected||t.has(u)||e.add(u)}function a(u){e.delete(u)}function c(u){t.add(u),e.delete(u)}return{markCanvas:(u,f)=>{switch(f){case 1:i(u);return;case 0:a(u);return;case 2:c(u);return;default:return}},forgetCanvas:u=>{e.delete(u),s.delete(u)},resetCanvasBitmap:u=>{s.delete(u),i(u)},takeCapturableCanvases:()=>{const u=[];return e.forEach(f=>{f.isConnected?!t.has(f)&&!o(f).capturePending&&(e.delete(f),u.push(f)):e.delete(f)}),u},startCaptureAttempt:r,discardCaptureAttempt:(u,f)=>{f.isCurrent()&&(o(u).capturePending=!1)},retryCanvas:u=>{s.delete(u),i(u)},addCanvasContentMutation:u=>{n.push(u)},takeCanvasContentMutations:()=>{const u=n;n=[];for(const f of u)f.captureAttempt.isCurrent()&&(o(f.canvas).capturePending=!1);return u},reset:()=>{e.clear(),n=[],s=new WeakMap}}}const v={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,Change:12},S={AddNode:1,RemoveNode:2,Attribute:3,Text:4,Size:5,ScrollPosition:6,AddStyleSheet:7,AttachedStyleSheets:8,MediaPlaybackState:9,VisualViewport:10,AddRoleAnnotatedStrings:11,InputValue:12,InputSelection:13,ClearStrings:14,ImageContent:15},g={Default:0,NodeName:1,AttributeName:2,AttributeValue:3,TextContent:4,FormInput:5,Css:6,Url:7,ResourceId:8},U={Selected:0,Deselected:1},R={MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},w={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},G={Play:0,Pause:1},Nt={Change:1};function bt(e){return we(void 0,void 0,e)}function Mt(e,t,n){return we(e,t,n)}function we(e,t,n){let s={container:void 0,parentId:e,previousSiblingId:void 0,nextSiblingId:t};const o=r=>s.previousSiblingId===r-1?0:s.nextSiblingId!==void 0?s.nextSiblingId-r:s.parentId!==void 0?r-s.parentId:null;return{advance(r){const i=n.getOrInsert(r),a=o(i);return s.previousSiblingId=i,{nodeId:i,insertionPoint:a}},ascend(){s.container&&(s=s.container)},descend(){s.previousSiblingId!==void 0&&(s={container:s,parentId:s.previousSiblingId,previousSiblingId:void 0,nextSiblingId:void 0})}}}function C(e,t){return{role:e,string:t}}function L(e,t,n){return[C(g.AttributeName,t),C(ve(e,t),n)]}function wt(e,t,n){const s=C(g.AttributeName,t);return n===null?[s]:[s,C(ve(e,t),n)]}const vt=new Set(["input","option","select","textarea"]),Rt=new Set(["action","background","cite","data","formaction","href","longdesc","manifest","ping","poster","src","srcset","xlink:href"]);function ve(e,t){switch(t){case"value":return vt.has(e)?g.FormInput:g.AttributeValue;case"style":return g.Css;default:return Rt.has(t)?g.Url:g.AttributeValue}}function At(e){let t=[],n=se(e);const s=()=>{n.flushInto(t),n=se(e)},o=()=>{s(),t.push([S.ClearStrings]),e.clear()};return{add:(a,c)=>{n.add(a,c),e.size+n.pendingStringCount>=1e6&&o()},flush:()=>{s();const a=t;return t=[],a}}}function se(e){const t={},n=new Map,s=[];let o=0,r=!1;const i=d=>{const l=e.get(d);if(l!==void 0)return l;r=!0;let p=n.get(d.role);p||(p={role:d.role,strings:new Map,references:0},n.set(d.role,p)),p.references++;
1const h=p.strings.get(d.string);if(h)return h;const m={literal:d,id:void 0};return p.strings.set(d.string,m),o++,m},a=d=>{for(let l=0,p=d.length;l<p;l++){const h=d[l];typeof h=="string"?d[l]=i(C(g.Default,h)):Array.isArray(h)?a(h):Dt(h)&&(d[l]=i(h))}},c=()=>{if(n.size===0)return;const d=[S.AddRoleAnnotatedStrings];for(const l of Array.from(n.values()).sort(xt)){const p=[l.role];for(const h of l.strings.values())h.id=e.getOrInsert(h.literal),p.push(h.literal.string);d.push(p)}return d};return{add:(d,l)=>{d in t||(t[d]=[d]),Array.isArray(l)&&(r=!1,a(l),r&&s.push(l)),t[d].push(l)},flushInto:d=>{const l=c();l&&d.push(l);for(const p of s)Re(p);[S.AddNode,S.RemoveNode,S.Attribute,S.Text,S.InputValue,S.InputSelection,S.Size,S.ScrollPosition,S.AddStyleSheet,S.AttachedStyleSheets,S.MediaPlaybackState,S.VisualViewport,S.ImageContent].forEach(p=>{const h=t[p];h&&d.push(h)})},get pendingStringCount(){return o}}}function Re(e){for(let t=0,n=e.length;t<n;t++){const s=e[t];Array.isArray(s)?Re(s):_t(s)&&(e[t]=s.id)}}function xt(e,t){return t.references-e.references}function Dt(e){return typeof e=="object"&&e!==null&&"string"in e}function _t(e){return typeof e=="object"&&e!==null&&"literal"in e}function Ae(){return{cssText:{count:0,max:0,sum:0},serializationDuration:{count:0,max:0,sum:0}}}function oe(e,t,n){e[t].count+=1,e[t].max=Math.max(e[t].max,n),e[t].sum+=n}function kt(e,t){for(const n of["cssText","serializationDuration"])e[n].count+=t[n].count,e[n].max=Math.max(e[n].max,t[n].max),e[n].sum+=t[n].sum}function j(e,t,n,s,o,r){const i=At(s.stringIds),a=Ae(),c={addMetric(d,l){oe(a,d,l)},addNode(...d){i.add(S.AddNode,d)},addStyleSheet(d,l,p){p?i.add(S.AddStyleSheet,[d,l||[],p]):l?i.add(S.AddStyleSheet,[d,l]):i.add(S.AddStyleSheet,[d])},attachStyleSheets(d,l){const p=[d];for(const h of l)p.push(h);i.add(S.AttachedStyleSheets,p)},removeNode(d){i.add(S.RemoveNode,d)},setAttributes(d){i.add(S.Attribute,d)},setInputSelection(d,l){const p=[d];for(const h of l)p.push(h);i.add(S.InputSelection,p)},setInputValue(d,l){i.add(S.InputValue,[d,l])},setMediaPlaybackState(d,l){i.add(S.MediaPlaybackState,[d,l])},setScrollPosition(d,l,p){i.add(S.ScrollPosition,[d,l,p])},setSize(d,l,p){i.add(S.Size,[d,l,p])},setText(d,l){i.add(S.Text,[d,l])},setImageContent(d,l){i.add(S.ImageContent,[d,l])},kind:e,scope:s},u=D();r(c),oe(a,"serializationDuration",Ge(u,D()));const f=i.flush();f.length>0&&t(e===0||e===1?{data:f,format:Nt.Change,type:v.FullSnapshot,timestamp:o}:{data:f,type:v.Change,timestamp:o}),n(a)}function q(e,t){const n=e.tagName,s=e.value;if(z(e,t)){const o=e.type;return n==="INPUT"&&(o==="button"||o==="submit"||o==="reset")?s:!s||n==="OPTION"?void 0:Ce}if(n==="OPTION"||n==="SELECT")return e.value;if(!(n!=="INPUT"&&n!=="TEXTAREA"))return s}const Ot=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,Lt=/^[A-Za-z]+:|^\/\//,Pt=/^["']?data:.*,/i;function Vt(e,t){return e.replace(Ot,(n,s,o,r,i,a)=>{const c=o||i||a;if(!t||!c||Lt.test(c)||Pt.test(c))return n;const u=s||r||"";return`url(${u}${Ht(c,t)}${u})`})}function Ht(e,t){try{return We(e,t).href}catch{return e}}function Y(e){return e.tagName.toLowerCase()}function re(e,t){return`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${e}' height='${t}' style='background-color:silver'%3E%3C/svg%3E`}const zt=["width","height"];function J(e){return Ie(e)&&e.tagName==="CANVAS"}function Ut(e){return zt.includes(e.toLowerCase())}const Ft=1e6;function xe(e,t,n,s){if(t===N.HIDDEN)return null;const o=e.getAttribute(n),r=e.tagName;if(st(r,n,o,t,s)){if(r==="IMG"){const i=e;if(i.naturalWidth>0)return re(i.naturalWidth,i.naturalHeight);const{width:a,height:c}=e.getBoundingClientRect();return a>0||c>0?re(a,c):te}return r==="SOURCE"?te:Ce}return o&&ot(o,Ft)}function Bt(e,t,n){if(t===N.HIDDEN)return[];const s=[],o=Y(e);for(let i=0;i<e.attributes.length;i+=1){const a=e.attributes.item(i).name;a==="value"||a==="selected"||a==="checked"||B(s,e,o,a,t,n)}if(e.value&&(o==="textarea"||o==="select"||o==="option"||o==="input")){const i=q(e,t);i!==void 0&&s.push(L(o,"value",i))}else e.hasAttribute("value")&&B(s,e,o,"value",t,n);
1o==="option"?e.selected&&!z(e,t)&&s.push(L(o,"selected","")):e.hasAttribute("selected")&&B(s,e,o,"selected",t,n);const r=e;return o==="input"&&(r.type==="radio"||r.type==="checkbox")?r.checked&&!z(e,t)&&s.push(L(o,"checked","")):e.hasAttribute("checked")&&B(s,e,o,"checked",t,n),s}function B(e,t,n,s,o,r){const i=xe(t,o,s,r.scope.configuration);i!==null&&e.push(L(n,s,i))}function Gt(e,t,n){if(t===N.HIDDEN)return{};const s={},o=Y(e);if(o==="link"){const a=X(e.sheet);a&&(n.addMetric("cssText",a.length),s._cssText=a)}if(o==="style"&&e.sheet){const a=X(e.sheet);a&&(n.addMetric("cssText",a.length),s._cssText=a)}(o==="audio"||o==="video")&&(s.rr_mediaState=e.paused?"paused":"played");let r,i;switch(n.kind){case 0:r=Math.round(e.scrollTop),i=Math.round(e.scrollLeft),(r||i)&&n.scope.elementsScrollPositions.set(e,{scrollTop:r,scrollLeft:i});break;case 1:n.scope.elementsScrollPositions.has(e)&&({scrollTop:r,scrollLeft:i}=n.scope.elementsScrollPositions.get(e))}return i&&(s.rr_scrollLeft=i),r&&(s.rr_scrollTop=r),s}function X(e){if(!e)return null;let t;try{t=e.rules||e.cssRules}catch{}if(!t)return null;const n=Array.from(t,It()?Wt:De).join("");return Vt(n,e.href)}function Wt(e){return $t(e)&&e.selectorText.includes(":")?e.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2"):De(e)}function De(e){return Yt(e)&&X(e.styleSheet)||e.cssText}function Yt(e){return"styleSheet"in e}function $t(e){return"selectorText"in e}function K(e,t,n,s){var i;if(((i=t.parentNode)==null?void 0:i.nodeName)==="STYLE"||n===N.HIDDEN||n===N.IGNORE)return;let o;const r=rt(t);if(r?o=at(r,n):o=n,o===N.HIDDEN){Zt(e,t,s);return}if(o!==N.IGNORE){switch(t.nodeType){case t.CDATA_SECTION_NODE:Qt(e,t,s);break;case t.DOCUMENT_NODE:Xt(e,t,s);break;case t.DOCUMENT_FRAGMENT_NODE:jt(e,t,s);break;case t.DOCUMENT_TYPE_NODE:qt(e,t,s);break;case t.ELEMENT_NODE:Jt(e,t,o,s);break;case t.TEXT_NODE:Kt(e,t,o,s);break;default:return}switch(t.nodeType){case t.CDATA_SECTION_NODE:case t.DOCUMENT_TYPE_NODE:case t.TEXT_NODE:return}e.descend(),Ee(t,a=>{K(e,a,o,s)}),e.ascend()}}function Xt(e,t,n){const{nodeId:s,insertionPoint:o}=e.advance(t);n.addNode(o,C(g.NodeName,"#document")),n.setScrollPosition(s,Te(),Ne()),_e(t.adoptedStyleSheets,s,n)}function jt(e,t,n){const{nodeId:s,insertionPoint:o}=e.advance(t);if(!it(t)){n.addNode(o,C(g.NodeName,"#document-fragment"));return}n.addNode(o,C(g.NodeName,"#shadow-root")),n.scope.shadowRootsController.addShadowRoot(t,n.scope),_e(t.adoptedStyleSheets,s,n)}function qt(e,t,n){const{insertionPoint:s}=e.advance(t);n.addNode(s,C(g.NodeName,"#doctype"),C(g.AttributeValue,t.name),C(g.AttributeValue,t.publicId),C(g.Url,t.systemId))}function Jt(e,t,n,s){const{nodeId:o,insertionPoint:r}=e.advance(t),i=Bt(t,n,s);s.addNode(r,ke(t),...i),J(t)&&s.scope.canvasManager.markCanvas(t,1);const{_cssText:a,rr_mediaState:c,rr_scrollLeft:u,rr_scrollTop:f}=Gt(t,n,s),d=t;if(a!==void 0&&d.sheet){const l=s.scope.styleSheetIds.getOrInsert(d.sheet);s.addStyleSheet(C(g.Css,a)),s.attachStyleSheets(o,[l])}c==="played"?s.setMediaPlaybackState(o,G.Play):c==="paused"&&s.setMediaPlaybackState(o,G.Pause),(u!==void 0||f!==void 0)&&s.setScrollPosition(o,u||0,f||0)}function Kt(e,t,n,s){const{insertionPoint:o}=e.advance(t),r=ye(t,n);s.addNode(o,C(g.NodeName,"#text"),C(g.TextContent,r))}function Qt(e,t,n){const{insertionPoint:s}=e.advance(t);n.addNode(s,C(g.NodeName,"#cdata-section"))}function Zt(e,t,n){if(!Ie(t))return;const{nodeId:s,insertionPoint:o}=e.advance(t);n.addNode(o,ke(t),L(Y(t),ct,ut));const{width:r,height:i}=t.getBoundingClientRect();n.setSize(s,r,i)}function _e(e,t,n){!e||e.length===0||n.attachStyleSheets(t,e.map(s=>en(s,n)))}function en(e,t){const n=Array.from(e.cssRules||e.rules,o=>C(g.Css,o.cssText)),s=e.media.length>0?Array.from(e.media).map(o=>C(g.Css,o)):void 0;return t.addMetric("cssText",n.reduce((o,r)=>o+r.string.length,0)),t.addStyleSheet(n,s,e.disabled),t.scope.styleSheetIds.getOrInsert(e)}function ke(e){const t=e.nodeName;return tn(e)?C(g.NodeName,`svg>${t}`):C(g.NodeName,t)}function tn(e){return e.namespaceURI==="http://www.w3.org/2000/svg"}function nn(e,t,n,s,o,r){r.resetIds(),j(t,s,o,r,e,i=>{K(bt(r.nodeIds),n,r.configuration.defaultPrivacyLevel,i)})}
1function sn(e,t,n,s,o,r){j(2,n,o,r,e,i=>on(t,s,i))}function on(e,t,n){const s=new Set,o=new Map,r=new Map,i=new Set;for(const u of e)switch(u.type){case"attributes":{const f=u.target;let d=o.get(f);d||(d=new Map,o.set(f,d));const l=u.attributeName;d.has(l)||d.set(l,u.oldValue);break}case"characterData":r.has(u.target)||r.set(u.target,u.oldValue);break;case"childList":for(let f=0;f<u.addedNodes.length;f++)s.add(u.addedNodes[f]);for(let f=0;f<u.removedNodes.length;f++)i.add(u.removedNodes[f])}const a=n.scope.nodeIds.nextId,c=new Map;rn(i,n),an(s,c,n),un(r,a,c,n),cn(o,a,c,n),dn(c,t,n)}function rn(e,t){const n=t.scope.nodeIds;for(const s of e){const o=n.get(s);o!==void 0&&(Oe(s,r=>{J(r)&&t.scope.canvasManager.forgetCanvas(r),Me(r)&&t.scope.shadowRootsController.removeShadowRoot(r.shadowRoot),n.delete(r)}),t.removeNode(o))}}function an(e,t,n){const s=n.scope.nodeIds;for(const o of e){if(!o.isConnected||s.get(o)!==void 0)continue;const r=be(o);if(!r)continue;const i=s.get(r);if(i===void 0)continue;const a=_(r,n.scope.configuration.defaultPrivacyLevel,t),c=ln(o,s);K(Mt(i,c,s),o,a,n)}}function un(e,t,n,s){const o=s.scope.nodeIds;for(const[r,i]of e){if(r.textContent===i||!r.isConnected)continue;const a=o.get(r);if(a===void 0||a>=t)continue;const c=be(r);if(!c)continue;const u=_(c,s.scope.configuration.defaultPrivacyLevel,n);if(u===N.HIDDEN||u===N.IGNORE)continue;const f=ye(r,u);s.setText(a,C(g.TextContent,f))}}function cn(e,t,n,s){const o=s.scope.nodeIds;for(const[r,i]of e){if(!r.isConnected)continue;const a=o.get(r);if(a===void 0||a>=t)continue;const c=_(r,s.scope.configuration.defaultPrivacyLevel,n);if(c===N.HIDDEN||c===N.IGNORE)continue;const u=Y(r),f=[a];for(const[d,l]of i){if(J(r)&&Ut(d)&&s.scope.canvasManager.resetCanvasBitmap(r),r.getAttribute(d)===l)continue;if(d==="value"){const h=q(r,c);h!==void 0&&f.push(L(u,d,h));continue}const p=xe(r,c,d,s.scope.configuration);f.push(wt(u,d,p))}f.length>1&&s.setAttributes(f)}}function dn(e,t,n){for(const{canvas:s,captureAttempt:o,hash:r,image:i}of n.scope.canvasManager.takeCanvasContentMutations()){if(!o.isCurrent()||!s.isConnected)continue;const a=n.scope.nodeIds.get(s);if(a===void 0){n.scope.canvasManager.forgetCanvas(s);continue}if(_(s,n.scope.configuration.defaultPrivacyLevel,e)!==N.ALLOW){n.scope.canvasManager.markCanvas(s,1);continue}try{t(r,i,()=>{o.isCurrent()&&n.scope.canvasManager.retryCanvas(s)}),n.setImageContent(a,C(g.ResourceId,r)),o.setLastChangeHash(r)}catch{n.scope.canvasManager.markCanvas(s,1)}}}function ln(e,t){let n=e.nextSibling;for(;n;){const s=t.get(n);if(s!==void 0)return s;n=n.nextSibling}}function Oe(e,t){t(e),Ee(e,n=>Oe(n,t))}const ie=25;function fn(e){return Math.abs(e.pageTop-e.offsetTop-window.scrollY)>ie||Math.abs(e.pageLeft-e.offsetLeft-window.scrollX)>ie}const pn=(e,t)=>{const n=window.visualViewport,s={layoutViewportX:e,layoutViewportY:t,visualViewportX:e,visualViewportY:t};if(n)fn(n)?(s.layoutViewportX=Math.round(e+n.offsetLeft),s.layoutViewportY=Math.round(t+n.offsetTop)):(s.visualViewportX=Math.round(e-n.offsetLeft),s.visualViewportY=Math.round(t-n.offsetTop));else return s;return s},Le=e=>({scale:e.scale,offsetLeft:e.offsetLeft,offsetTop:e.offsetTop,pageLeft:e.pageLeft,pageTop:e.pageTop,height:e.height,width:e.width});function hn(e,t,n,s,o){ae(D(),0,t,n,o);const{unsubscribe:r}=e.subscribe(O.VIEW_CREATED,i=>{s(),ae(i.startClocks.timeStamp,1,t,n,o)});return{stop:r}}function ae(e,t,n,s,o){const{width:r,height:i}=dt();n({data:{height:i,href:window.location.href,width:r},type:v.Meta,timestamp:e}),n({data:{has_focus:document.hasFocus()},type:v.Focus,timestamp:e}),nn(e,t,document,n,s,o),window.visualViewport&&n({data:Le(window.visualViewport),type:v.VisualViewport,timestamp:e})}function gn(){let t=0,n=ue();const s=o=>n[o.role][o.string];return{clear(){t!==0&&(n=ue(),t=0)},get:s,getOrInsert(o){let r=s(o);return r===void 0&&(r=t++,n[o.role][o.string]=r),r},get size(){return t-0}}}function ue(){return{[g.Default]:A(),[g.NodeName]:A(),[g.AttributeName]:A(),[g.AttributeValue]:A(),[g.TextContent]:A(),[g.FormInput]:A(),[g.Css]:A(),[g.Url]:A(),[g.ResourceId]:A()}}function A(){return Object.create(null)}function Sn(){return Q(1)}function mn(){return Q(0)}function Cn(){return Q(0)}function Q(e){return In(()=>new WeakMap,e)}function In(e,t){let n=e(),s=t;const o=r=>n.get(r);return{clear(){s!==t&&(n=e(),s=t)},delete(r){n.delete(r)},get:o,getOrInsert(r){let i=o(r);return i===void 0&&(i=s++,n.set(r,i)),i},get nextId(){return s},get size(){return s-t}}}function En(e,t,n,s){const o={resetIds(){o.eventIds.clear(),o.nodeIds.clear(),o.stringIds.clear(),o.styleSheetIds.clear(),o.canvasManager.reset()},canvasManager:e,configuration:t,elementsScrollPositions:n,eventIds:Sn(),nodeIds:mn(),shadowRootsController:s,stringIds:gn(),styleSheetIds:Cn()};return o}function yn(){const e=new WeakMap;return{set(t,n){t===document&&!document.scrollingElement||e.set(t===document?document.scrollingElement:t,n)},get(t){return e.get(t)},has(t){return e.has(t)}}}function Pe(e){return!!e.changedTouches}function F(e){return e.composed===!0&&Me(e.target)?e.composedPath()[0]:e.target}function x(e,t,n=D()){return{data:{source:e,...t},type:v.IncrementalSnapshot,timestamp:n}}const Tn=50;function Nn(e,t){const{throttled:n,cancel:s}=W(r=>{const i=F(r),a=t.nodeIds.get(i);if(a===void 0)return;const c=Ve(r);
1if(!c)return;const u={id:a,timeOffset:0,x:c.x,y:c.y};e(x(Pe(r)?R.TouchMove:R.MouseMove,{positions:[u]}))},Tn,{trailing:!1}),{stop:o}=P(document,[I.MOUSE_MOVE,I.TOUCH_MOVE],n,{capture:!0,passive:!0});return{stop:()=>{o(),s()}}}function Ve(e){let{clientX:t,clientY:n}=Pe(e)?e.changedTouches[0]:e;if(window.visualViewport){const{visualViewportX:s,visualViewportY:o}=pn(t,n);t=s,n=o}if(!(!Number.isFinite(t)||!Number.isFinite(n)))return{x:t,y:n}}const ce={[I.POINTER_UP]:w.MouseUp,[I.MOUSE_DOWN]:w.MouseDown,[I.CLICK]:w.Click,[I.CONTEXT_MENU]:w.ContextMenu,[I.DBL_CLICK]:w.DblClick,[I.FOCUS]:w.Focus,[I.BLUR]:w.Blur,[I.TOUCH_START]:w.TouchStart,[I.TOUCH_END]:w.TouchEnd};function bn(e,t){const n=s=>{const o=F(s),r=t.nodeIds.get(o);if(r===void 0||_(o,t.configuration.defaultPrivacyLevel)===N.HIDDEN)return;const i=ce[s.type];let a;if(i!==w.Blur&&i!==w.Focus){const c=Ve(s);if(!c)return;a={id:r,type:i,x:c.x,y:c.y}}else a={id:r,type:i};e({id:t.eventIds.getOrInsert(s),...x(R.MouseInteraction,a)})};return P(document,Object.keys(ce),n,{capture:!0,passive:!0})}const Mn=100;function He(e,t,n){const{throttled:s,cancel:o}=W(i=>{const a=F(i);if(!a)return;const c=n.nodeIds.get(a);if(c===void 0||_(a,n.configuration.defaultPrivacyLevel)===N.HIDDEN)return;const u=a===document?{scrollTop:Ne(),scrollLeft:Te()}:{scrollTop:Math.round(a.scrollTop),scrollLeft:Math.round(a.scrollLeft)};n.elementsScrollPositions.set(a,u),t(x(R.Scroll,{id:c,x:u.scrollLeft,y:u.scrollTop}))},Mn),{stop:r}=Ye(e,I.SCROLL,s,{capture:!0,passive:!0});return{stop:()=>{r(),o()}}}const wn=200;function vn(e){const t=lt().subscribe(n=>{e(x(R.ViewportResize,n))});return{stop:()=>{t.unsubscribe()}}}function Rn(e){const t=window.visualViewport;if(!t)return{stop:M};const{throttled:n,cancel:s}=W(()=>{e({data:Le(t),type:v.VisualViewport,timestamp:D()})},wn,{trailing:!1}),{stop:o}=P(t,[I.RESIZE,I.SCROLL],n,{capture:!0,passive:!0});return{stop:()=>{o(),s()}}}function An(e,t){return P(document,[I.PLAY,I.PAUSE],n=>{const s=F(n);if(!s)return;const o=t.nodeIds.get(s);o===void 0||_(s,t.configuration.defaultPrivacyLevel)===N.HIDDEN||e(x(R.MediaInteraction,{id:o,type:n.type===I.PLAY?G.Play:G.Pause}))},{capture:!0,passive:!0})}function xn(e,t){function n(r,i){if(!(r!=null&&r.ownerNode))return;const a=t.nodeIds.get(r.ownerNode);a!==void 0&&i(a)}const s=[H(CSSStyleSheet.prototype,"insertRule",({target:r,parameters:[i,a]})=>{n(r,c=>e(x(R.StyleSheetRule,{id:c,adds:[{rule:i,index:a}]})))}),H(CSSStyleSheet.prototype,"deleteRule",({target:r,parameters:[i]})=>{n(r,a=>e(x(R.StyleSheetRule,{id:a,removes:[{index:i}]})))})];typeof CSSGroupingRule<"u"?o(CSSGroupingRule):(o(CSSMediaRule),o(CSSSupportsRule));function o(r){s.push(H(r.prototype,"insertRule",({target:i,parameters:[a,c]})=>{n(i.parentStyleSheet,u=>{const f=de(i);f&&(f.push(c||0),e(x(R.StyleSheetRule,{id:u,adds:[{rule:a,index:f}]})))})}),H(r.prototype,"deleteRule",({target:i,parameters:[a]})=>{n(i.parentStyleSheet,c=>{const u=de(i);u&&(u.push(a),e(x(R.StyleSheetRule,{id:c,removes:[{index:u}]})))})}))}return{stop:()=>{s.forEach(r=>r.stop())}}}function de(e){const t=[];let n=e;for(;n.parentRule;){const o=Array.from(n.parentRule.cssRules).indexOf(n);t.unshift(o),n=n.parentRule}if(!n.parentStyleSheet)return;const s=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return t.unshift(s),t}function Dn(e){return P(window,[I.FOCUS,I.BLUR],()=>{e({data:{has_focus:document.hasFocus()},type:v.Focus,timestamp:D()})})}function _n(e,t,n){const s=e.subscribe(O.VIEW_ENDED,()=>{n(),t({timestamp:D(),type:v.ViewEnd})});return{stop:()=>{s.unsubscribe()}}}const kn={type:1,selection:U.Deselected};function ze(e,t,n,s){const o=s.configuration.defaultPrivacyLevel,r=new WeakMap,i=e.nodeType!==e.DOCUMENT_NODE,a=(i?e.ownerDocument:e).defaultView;if(!a)return{stop:M};const{stop:c}=P(e,i?[I.CHANGE]:[I.INPUT,I.CHANGE],l=>{const p=F(l);(p instanceof a.HTMLInputElement||p instanceof a.HTMLTextAreaElement||p instanceof a.HTMLSelectElement)&&f(p)},{capture:!0,passive:!0});let u;if(i)u=M;else{const l=[V(a.HTMLInputElement.prototype,"value",f),V(a.HTMLInputElement.prototype,"checked",f),V(a.HTMLSelectElement.prototype,"value",f),V(a.HTMLTextAreaElement.prototype,"value",f),V(a.HTMLSelectElement.prototype,"selectedIndex",f)];u=()=>{l.forEach(p=>p.stop())}}return{stop:()=>{u(),c()}};function f(l){const p=_(l,o);if(p===N.HIDDEN)return;const h=l.type;let m=l,E;if(h==="radio"||h==="checkbox"){if(z(l,p))return;E={type:1,selection:On(l)}}else if(le(l)){if(z(l,p))return;const T=l.options[l.selectedIndex];if(!T)return;m=T,E={type:1,selection:U.Selected}}else{const T=q(l,p);if(T===void 0)return;E={type:0,value:T}}const b=d(m,E),y=[];if(h==="radio"&&l.checked&&Ln(l,T=>{const k=d(T,kn);k!==void 0&&y.push(k)}),le(l))for(let T=0;T<l.options.length;T++){const k=l.options[T];k!==m&&r.delete(k)}b===void 0&&y.length===0||j(2,t,n,s,D(),T=>{b!==void 0&&(E.type===0?T.setInputValue(b,C(g.FormInput,E.value)):T.setInputSelection(E.selection,[b])),y.length>0&&T.setInputSelection(U.Deselected,y)})}function d(l,p){const h=s.nodeIds.get(l);if(h===void 0)return;const m=r.get(l);if(!(m&&Pn(m,p)))return r.set(l,p),h}}function le(e){return e.tagName==="SELECT"}function On(e){return e.checked?U.Selected:U.Deselected}function Ln(e,t){e.name&&e.ownerDocument.querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}
1"]`).forEach(n=>{const s=n;s!==e&&t(s)})}function Pn(e,t){return e.type===0?t.type===0&&e.value===t.value:t.type===1&&e.selection===t.selection}const Vn=100;function Hn(e){let t=M,n=[],s=!1;function o(){s||(s=!0,t=ft(i,{timeout:Vn}))}function r(){t(),s=!1,e(n),n=[]}const{throttled:i,cancel:a}=W(r,16,{leading:!1});return{addMutations:c=>{o();for(const u of c)n.push(u)},notifyContentMutated:o,flush:r,stop:()=>{t(),a()}}}function Ue(e,t,n,s,o){const r=pt();if(!r)return{stop:M,flush:M,notifyContentMutated:M};const i=Hn(c=>{sn(D(),c.concat(a.takeRecords()),t,n,s,o)}),a=new r($e(i.addMutations));return a.observe(e,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:()=>{a.disconnect(),i.stop()},flush:()=>{i.flush()},notifyContentMutated:i.notifyContentMutated}}const zn=["clearRect","fillRect","strokeRect","fill","stroke","fillText","strokeText","drawImage","putImageData","drawFocusIfNeeded","reset"];function Un(e){var n;if(!((n=e.configuration.sessionReplayCanvasRecording)!=null&&n.enable)||e.configuration.sessionReplayCanvasRecording.maxFramesPerSecond===0||typeof CanvasRenderingContext2D>"u")return{stop:M};const t=[];return zn.forEach(s=>{t.push(H(CanvasRenderingContext2D.prototype,s,({target:o,onPostCall:r})=>{r(()=>{e.nodeIds.get(o.canvas)!==void 0&&e.canvasManager.markCanvas(o.canvas,1)})}))}),{stop:()=>t.forEach(s=>s.stop())}}function Fn(e,t){const n=e.width,s=e.height,o=Fe(e,n,s,t);if(o)return{canvasHeight:s,canvasWidth:n,source:o}}function Fe(e,t,n,s){const o=Math.min(1,s/Math.max(t,n)),r=Math.max(1,Math.round(t*o)),i=Math.max(1,Math.round(n*o)),a=document.createElement("canvas");a.width=r,a.height=i;const c=a.getContext("2d");if(c)return c.imageSmoothingQuality="low",c.drawImage(e,0,0,r,i),a}function Bn(e,t){return new Promise(n=>{try{e.source.toBlob(s=>n(s??void 0),"image/webp",t)}catch{n(void 0)}})}function Gn(e,t){var c;const{height:n,width:s}=e.source,o=Math.max(s,n)<=t?e.source:Fe(e.source,s,n,t);if(!o)return Promise.resolve(void 0);const r=o.getContext("2d");if(!r)return Promise.resolve(void 0);const i=r.getImageData(0,0,o.width,o.height).data,a=Xe((c=je.crypto)==null?void 0:c.subtle);return a?a.digest("SHA-256",i).then(u=>
1$(e.canvasWidth,e.canvasHeight,Wn(u)),()=>$(e.canvasWidth,e.canvasHeight,fe(i))):Promise.resolve($(e.canvasWidth,e.canvasHeight,fe(i)))}function Wn(e){return Array.from(new Uint8Array(e),t=>t.toString(16).padStart(2,"0")).join("")}function $(e,t,n){return`${e}x${t}-${n}`}function fe(e){let t=2166136261;for(let n=0;n<e.length;n+=1)t^=e[n],t=Math.imul(t,16777619);return(t>>>0).toString(16).padStart(8,"0")}const Yn=(e,t)=>{const n=e.canvasManager,s=e.configuration.sessionReplayCanvasRecording,o=(s==null?void 0:s.maxFramesPerSecond)??0;if(!(s!=null&&s.enable)||o===0)return{stop:M};let r=!1,i;const a=ge/o;function c(p){r||(i=he(()=>{u()},p))}async function u(){const p=performance.now();try{await f()}finally{const h=performance.now()-p;c(Math.max(a-h,a*.5))}}async function f(){const p=n.takeCapturableCanvases();if(!r)for(const h of p){if(e.nodeIds.get(h)===void 0){n.forgetCanvas(h);continue}if(_(h,e.configuration.defaultPrivacyLevel)!==N.ALLOW){n.markCanvas(h,1);continue}await l(h)}}function d(p,h){p.isCurrent()&&n.markCanvas(h,1)}async function l(p){const h=n.startCaptureAttempt(p),m=()=>r||!h.isCurrent();if(!m())try{const E=Fn(p,(s==null?void 0:s.maxImageDimension)??1e3);if(!E){d(h,p),n.discardCaptureAttempt(p,h);return}const b=await Gn(E,(s==null?void 0:s.hashingMaxDimension)??100);if(m())return;if(b===void 0){d(h,p),n.discardCaptureAttempt(p,h);return}if(b===h.lastChangeHash){n.discardCaptureAttempt(p,h);return}const y=await Bn(E,(s==null?void 0:s.encodeQuality)??.5);if(m())return;if(!y){d(h,p),n.discardCaptureAttempt(p,h);return}n.addCanvasContentMutation({canvas:p,captureAttempt:h,hash:b,image:y}),t()}catch(E){m()||(n.markCanvas(p,$n(E)?2:1),n.discardCaptureAttempt(p,h))}}return c(a),{stop:()=>{r=!0,pe(i)}}};function $n(e){return e instanceof DOMException&&e.name==="SecurityError"}const Xn=(e,t,n)=>{const s=new Map;return{addShadowRoot:(o,r)=>{if(s.has(o))return;const i=Ue(o,e,t,n,r),a=ze(o,e,n,r),c=He(o,e,r);s.set(o,{flush:()=>i.flush(),stop:()=>{i.stop(),a.stop(),c.stop()}})},removeShadowRoot:o=>{const r=s.get(o);r&&(r.stop(),s.delete(o))},stop:()=>{s.forEach(({stop:o})=>o())},flush:()=>{s.forEach(({flush:o})=>o())}}};function jn(e){const{emitRecord:t,emitResource:n,emitStats:s,configuration:o,lifeCycle:r}=e;if(!t||!n||!s)throw new Error("emit functions are required");const i=m=>{t(m),qe("record",{record:m});const E=e.viewHistory.findView();ht(E.id)},a=(m,E,b)=>{n(m,E,b);const y=e.viewHistory.findView();gt(y.id)},c=Tt(),u=Xn(i,a,s),f=En(c,o,yn(),u),{stop:d}=hn(r,i,s,l,f);function l(){u.flush(),p.flush()}const p=Ue(document,i,a,s,f),h=[p,Nn(i,f),bn(i,f),He(document,i,f),vn(i),ze(document,i,s,f),An(i,f),xn(i,f),Dn(i),Rn(i),_n(r,i,l),Un(f),Yn(f,p.notifyContentMutated)];return{stop:()=>{u.stop(),h.forEach(m=>m.stop()),d()},flushMutations:l,shadowRootsController:u}}function qn(e,t,n,s){const o=new FormData;o.append("segment",new Blob([e],{type:"application/octet-stream"}),`${t.session.id}-${t.start}`);const r={raw_segment_size:s,compressed_segment_size:e.byteLength,...t},i=JSON.stringify(r);return o.append("event",new Blob([i],{type:"application/json"})),{data:o,bytesCount:e.byteLength,cssText:n.cssText,isFullSnapshot:t.index_in_view===0,rawSize:s,recordCount:t.records_count,serializationDuration:n.serializationDuration}}function Jn({context:e,creationReason:t,encoder:n}){let s=0;const o=e.view.id,r={start:1/0,end:-1/0,creation_reason:t,records_count:0,has_full_snapshot:!1,index_in_view:St(o),source:"browser",...e},i=Ae();mt(o);function a(f,d){r.start=Math.min(r.start,f.timestamp),r.end=Math.max(r.end,f.timestamp),r.records_count+=1,r.has_full_snapshot||(r.has_full_snapshot=f.type===v.FullSnapshot||f.type===v.Change&&r.index_in_view===0);const l=n.isEmpty?'{"records":[':",";n.write(l+JSON.stringify(f),p=>{s+=p,d(s)})}function c(f){kt(i,f)}function u(f){if(n.isEmpty)throw new Error("Empty segment flushed");n.write(`],${JSON.stringify(r).slice(1)}
2`),n.finish(d=>{Ct(r.view.id,d.rawBytesCount),f(r,i,d)})}return{addRecord:a,addStats:c,flush:u}}const Kn=5*ge;let Be=6e4;function Qn(e,t,n,s,o,r){return Zn(e,()=>es(t.applicationId,n,s),o,r)}function Zn(e,t,n,s){let o={status:0,nextSegmentCreationReason:"init"};const{unsubscribe:r}
2=e.subscribe(O.VIEW_CREATED,()=>{a("view_change")}),{unsubscribe:i}=e.subscribe(O.PREPARE_URGENT_FLUSH,c=>{a(c)});function a(c){o.status===1&&(o.segment.flush((u,f,d)=>{const l=qn(d.output,u,f,d.rawBytesCount);Se(c)&&c!==me.HIDDEN?n.sendOnExit(l):n.send(l)}),pe(o.expirationTimeoutId)),c!=="stop"?o={status:0,nextSegmentCreationReason:c}:o={status:2}}return{addRecord:c=>{if(o.status!==2){if(o.status===0){const u=t();if(!u)return;o={status:1,segment:Jn({encoder:s,context:u,creationReason:o.nextSegmentCreationReason}),expirationTimeoutId:he(()=>{a("segment_duration_limit")},Kn)}}o.segment.addRecord(c,u=>{u>Be&&a("segment_bytes_limit")})}},addStats:c=>{o.status===1&&o.segment.addStats(c)},stop:()=>{a("stop"),r(),i()}}}function es(e,t,n){const s=t.findTrackedSession(),o=n.findView();if(!(!s||!o))return{application:{id:e},session:{id:s.id},view:{id:o.id}}}function ts(e,t){if(!e.metricsEnabled)return{stop:M};const{unsubscribe:n}=t.subscribe(s=>{if(s.type==="failure"||s.type==="queue-full"||s.type==="success"&&s.payload.isFullSnapshot){const o=ns(s.type,s.bandwidth,s.payload);Je(Ke.SEGMENT_METRICS_TELEMETRY_NAME,{metrics:o})}});return{stop:n}}function ns(e,t,n){return{cssText:{count:n.cssText.count,max:n.cssText.max,sum:n.cssText.sum},encoding:{fullSnapshot:"change",incrementalSnapshot:"change"},isFullSnapshot:n.isFullSnapshot,ongoingRequests:{count:t.ongoingRequestCount,totalSize:t.ongoingByteCount},recordCount:n.recordCount,result:e,serializationDuration:{count:n.serializationDuration.count,max:n.serializationDuration.max,sum:n.serializationDuration.sum},size:{compressed:n.bytesCount,raw:n.rawSize}}}function ss(e,t,n){const s=new FormData;s.append("image",t,e);const o={application:{id:n},type:"resource"};return s.append("event",new Blob([JSON.stringify(o)],{type:"application/json"})),{data:s,bytesCount:t.size,hash:e}}function os(e,t,n){const s=new Set,o=new Map,{unsubscribe:r}=n.observable.subscribe(a=>{if(a.type==="success"){const c=o.get(a.payload.hash);o.delete(a.payload.hash),c&&c.onDiscards.clear()}else if(a.type==="queue-full"){const c=o.get(a.payload.hash);o.delete(a.payload.hash),c&&(s.delete(a.payload.hash),c.onDiscards.forEach(u=>u()))}}),{unsubscribe:i}=t.subscribe(O.PREPARE_URGENT_FLUSH,a=>{Se(a)&&a!==me.HIDDEN&&o.forEach(({payload:c})=>n.sendOnExit(c))});return{emitResource:(a,c,u)=>{var l;if(s.has(a)){u&&((l=o.get(a))==null||l.onDiscards.add(u));return}s.add(a);const f=ss(a,c,e),d={payload:f,onDiscards:new Set};u&&d.onDiscards.add(u),o.set(a,d),n.send(f)},stop:()=>{r(),i(),o.clear(),s.clear()}}}function rs(e){const t=Qe();return{addRecord:n=>{const s=e.findView();t.send("record",n,s.id)}}}function cs(e,t,n,s,o,r,i,a){const c=[],u=y=>{e.notify(O.RAW_ERROR_COLLECTED,{error:{message:y,source:tt.AGENT,startClocks:et()}}),nt("Error reported to customer",{"error.message":y})},f=i||Z([ee(t,"replay")],u,Be),d=a||Z([ee(t,"replay")],u,0);let l,p,h=M,m=M;const{unsubscribe:E}=e.subscribe(O.PREPARE_URGENT_FLUSH,()=>m());if(c.push(E),Ze())({addRecord:l}=rs(s)),p=M;else{const y=Qn(e,t,n,s,f,o);l=y.addRecord,p=y.addStats,c.push(y.stop);const T=ts(r,f.observable);c.push(T.stop);const k=os(t.applicationId,e,d);h=k.emitResource,c.push(k.stop)}const b=jn({emitRecord:l,emitResource:h,emitStats:p,configuration:t,lifeCycle:e,viewHistory:s});return m=b.flushMutations,{stop:()=>{b.flushMutations(),b.stop(),c.forEach(y=>y())}}}export{cs as startRecording};
3//# sourceMappingURL=datadogRecorder-DrOvHUvQ.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.