@appsurify-testmap/rrweb-record 2.0.0-alpha.21 → 2.0.0-alpha.22
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/rrweb-record.cjs +5 -3
- package/dist/rrweb-record.cjs.map +1 -1
- package/dist/rrweb-record.js +5 -3
- package/dist/rrweb-record.js.map +1 -1
- package/dist/rrweb-record.umd.cjs +5 -3
- package/dist/rrweb-record.umd.cjs.map +2 -2
- package/dist/rrweb-record.umd.min.cjs +1 -1
- package/dist/rrweb-record.umd.min.cjs.map +2 -2
- package/package.json +3 -3
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
}(this, () => {
|
|
12
12
|
var exports = {};
|
|
13
13
|
var module = { exports };
|
|
14
|
-
"use strict";var Bo=Object.defineProperty,Wo=Object.defineProperties;var zo=Object.getOwnPropertyDescriptors;var ft=Object.getOwnPropertySymbols;var Ws=Object.prototype.hasOwnProperty,zs=Object.prototype.propertyIsEnumerable;var Bs=(s,e,t)=>e in s?Bo(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,O=(s,e)=>{for(var t in e||(e={}))Ws.call(e,t)&&Bs(s,t,e[t]);if(ft)for(var t of ft(e))zs.call(e,t)&&Bs(s,t,e[t]);return s},ee=(s,e)=>Wo(s,zo(e));var xe=(s,e)=>{var t={};for(var r in s)Ws.call(s,r)&&e.indexOf(r)<0&&(t[r]=s[r]);if(s!=null&&ft)for(var r of ft(s))e.indexOf(r)<0&&zs.call(s,r)&&(t[r]=s[r]);return t};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Vo=Object.defineProperty,Go=(s,e,t)=>e in s?Vo(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,w=(s,e,t)=>Go(s,typeof e!="symbol"?e+"":e,t),Vs,jo=Object.defineProperty,Ho=(s,e,t)=>e in s?jo(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Gs=(s,e,t)=>Ho(s,typeof e!="symbol"?e+"":e,t),H=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(H||{});const js={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Hs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},pt={},Yo=()=>!!globalThis.Zone;function cs(s){if(pt[s])return pt[s];const e=globalThis[s],t=e.prototype,r=s in js?js[s]:void 0,i=!!(r&&r.every(l=>{var a,u;return!!((u=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)!=null&&u.toString().includes("[native code]"))})),n=s in Hs?Hs[s]:void 0,o=!!(n&&n.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(i&&o&&!Yo())return pt[s]=e.prototype,e.prototype;try{const l=document.createElement("iframe");document.body.appendChild(l);const a=l.contentWindow;if(!a)return e.prototype;const u=a[s].prototype;return document.body.removeChild(l),u?pt[s]=u:t}catch(l){return t}}const mr={};function me(s,e,t){var r;const i=`${s}.${String(t)}`;if(mr[i])return mr[i].call(e);const n=cs(s),o=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return o?(mr[i]=o,o.call(e)):e[t]}const gr={};function zi(s,e,t){const r=`${s}.${String(t)}`;if(gr[r])return gr[r].bind(e);const n=cs(s)[t];return typeof n!="function"?e[t]:(gr[r]=n,n.bind(e))}function Zo(s){return me("Node",s,"childNodes")}function Jo(s){return me("Node",s,"parentNode")}function Xo(s){return me("Node",s,"parentElement")}function Ko(s){return me("Node",s,"textContent")}function Qo(s,e){return zi("Node",s,"contains")(e)}function qo(s){return zi("Node",s,"getRootNode")()}function ea(s){return!s||!("host"in s)?null:me("ShadowRoot",s,"host")}function ta(s){return s.styleSheets}function ra(s){return!s||!("shadowRoot"in s)?null:me("Element",s,"shadowRoot")}function sa(s,e){return me("Element",s,"querySelector")(e)}function ia(s,e){return me("Element",s,"querySelectorAll")(e)}function na(){return cs("MutationObserver").constructor}const Y={childNodes:Zo,parentNode:Jo,parentElement:Xo,textContent:Ko,contains:Qo,getRootNode:qo,host:ea,styleSheets:ta,shadowRoot:ra,querySelector:sa,querySelectorAll:ia,mutationObserver:na};function Vi(s){if(s.id)return`//*[@id="${s.id}"]`;if(s===document.body)return"/html/body";const e=Y.parentNode(s);if(!e||!(e instanceof Element))return"";const t=Array.from(e.children).filter(n=>n.tagName===s.tagName),r=t.length>1?`[${t.indexOf(s)+1}]`:"";return Vi(e)+"/"+s.tagName.toLowerCase()+r}function Gi(s){return s.nodeType===s.ELEMENT_NODE}function oa(s){var e;const t=Y.parentNode(s),r=t&&t;return!r||!ji(r)?!1:((e=s.textContent)==null?void 0:e.trim())!==""}function ji(s){return aa(s)&&la(s.getBoundingClientRect())}function aa(s){const e=window.getComputedStyle(s);return e.display!=="none"&&e.visibility!=="hidden"&&parseFloat(e.opacity)!==0}function la(s){return s.width>0&&s.height>0&&s.top>=0&&s.left>=0&&s.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&s.right<=(window.innerWidth||document.documentElement.clientWidth)}function je(s){const e=s&&"host"in s&&"mode"in s&&Y.host(s)||null;return!!(e&&"shadowRoot"in e&&Y.shadowRoot(e)===s)}function He(s){return Object.prototype.toString.call(s)==="[object ShadowRoot]"}function ua(s){return s.includes(" background-clip: text;")&&!s.includes(" -webkit-background-clip: text;")&&(s=s.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),s}function ca(s){const{cssText:e}=s;if(e.split('"').length<3)return e;const t=["@import",`url(${JSON.stringify(s.href)})`];return s.layerName===""?t.push("layer"):s.layerName&&t.push(`layer(${s.layerName})`),s.supportsText&&t.push(`supports(${s.supportsText})`),s.media.length&&t.push(s.media.mediaText),t.join(" ")+";"}function $r(s){try{const e=s.rules||s.cssRules;if(!e)return null;let t=s.href;!t&&s.ownerNode&&s.ownerNode.ownerDocument&&(t=s.ownerNode.ownerDocument.location.href);const r=Array.from(e,i=>Hi(i,t)).join("");return ua(r)}catch(e){return null}}function Hi(s,e){if(fa(s)){let t;try{t=$r(s.styleSheet)||ca(s)}catch(r){t=s.cssText}return s.styleSheet.href?zt(t,s.styleSheet.href):t}else{let t=s.cssText;return pa(s)&&s.selectorText.includes(":")&&(t=ha(t)),e?zt(t,e):t}}function ha(s){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function fa(s){return"styleSheet"in s}function pa(s){return"selectorText"in s}class Yi{constructor(){Gs(this,"idNodeMap",new Map),Gs(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const r=(t=this.getMeta(e))==null?void 0:t.id;return r!=null?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(t,i)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function da(){return new Yi}function hs({element:s,maskInputOptions:e,tagName:t,type:r,value:i,maskInputFn:n}){let o=i||"";const l=r&&Ce(r);return(e[t.toLowerCase()]||l&&e[l])&&(n?o=n(o,s):o="*".repeat(o.length)),o}function Ce(s){return s.toLowerCase()}const Ys="__rrweb_original__";function ma(s){const e=s.getContext("2d");if(!e)return!0;const t=50;for(let r=0;r<s.width;r+=t)for(let i=0;i<s.height;i+=t){const n=e.getImageData,o=Ys in n?n[Ys]:n;if(new Uint32Array(o.call(e,r,i,Math.min(t,s.width-r),Math.min(t,s.height-i)).data.buffer).some(a=>a!==0))return!1}return!0}function fs(s){const e=s.type;return s.hasAttribute("data-rr-is-password")?"password":e?Ce(e):null}function Zi(s,e){var n;let t;try{t=new URL(s,e!=null?e:window.location.href)}catch(o){return null}const r=/\.([0-9a-z]+)(?:$)/i,i=t.pathname.match(r);return(n=i==null?void 0:i[1])!=null?n:null}function ga(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}const ya=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,wa=/^(?:[a-z+]+:)?\/\//i,ba=/^www\..*/i,Sa=/^(data:)([^,]*),(.*)/i;function zt(s,e){return(s||"").replace(ya,(t,r,i,n,o,l)=>{const a=i||o||l,u=r||n||"";if(!a)return t;if(wa.test(a)||ba.test(a))return`url(${u}${a}${u})`;if(Sa.test(a))return`url(${u}${a}${u})`;if(a[0]==="/")return`url(${u}${ga(e)+a}${u})`;const c=e.split("/"),h=a.split("/");c.pop();for(const p of h)p!=="."&&(p===".."?c.pop():c.push(p));return`url(${u}${c.join("/")}${u})`})}function yr(s){return s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}function Ca(s,e){const t=Array.from(e.childNodes),r=[];let i=0;if(t.length>1&&s&&typeof s=="string"){let n=yr(s);const o=n.length/s.length;for(let l=1;l<t.length;l++)if(t[l].textContent&&typeof t[l].textContent=="string"){const a=yr(t[l].textContent);let u=3;for(;u<a.length&&(a[u].match(/[a-zA-Z0-9]/)||a.indexOf(a.substring(0,u),1)!==-1);u++);for(;u<a.length;u++){const c=a.substring(0,u),h=n.split(c);let p=-1;if(h.length===2?p=n.indexOf(c):h.length>2&&h[0]===""&&t[l-1].textContent!==""&&(p=n.indexOf(c,1)),p!==-1){let d=Math.floor(p/o);for(;d>0&&d<s.length;){if(i+=1,i>50*t.length)return r.push(s),r;const g=yr(s.substring(0,d));if(g.length===p){r.push(s.substring(0,d)),s=s.substring(d),n=n.substring(p);break}else g.length<p?d+=Math.max(1,Math.floor((p-g.length)/o)):d-=Math.max(1,Math.floor((g.length-p)*o))}break}}}}return r.push(s),r}function va(s,e){return Ca(s,e).join("/* rr_split */")}let Ia=1;const xa=new RegExp("[^a-z0-9-_:]"),Ze=-2;function Ji(){return Ia++}function Oa(s){if(s instanceof HTMLFormElement)return"form";const e=Ce(s.tagName);return xa.test(e)?"div":e}let Oe,Zs;const Ra=/^[^ \t\n\r\u000c]+/,Aa=/^[, \t\n\r\u000c]+/;function Ma(s,e){if(e.trim()==="")return e;let t=0;function r(n){let o;const l=n.exec(e.substring(t));return l?(o=l[0],t+=o.length,o):""}const i=[];for(;r(Aa),!(t>=e.length);){let n=r(Ra);if(n.slice(-1)===",")n=Me(s,n.substring(0,n.length-1)),i.push(n);else{let o="";n=Me(s,n);let l=!1;for(;;){const a=e.charAt(t);if(a===""){i.push((n+o).trim());break}else if(l)a===")"&&(l=!1);else if(a===","){t+=1,i.push((n+o).trim());break}else a==="("&&(l=!0);o+=a,t+=1}}}return i.join(", ")}const Js=new WeakMap;function Me(s,e){return!e||e.trim()===""?e:ps(s,e)}function Ea(s){return!!(s.tagName==="svg"||s.ownerSVGElement)}function ps(s,e){let t=Js.get(s);if(t||(t=s.createElement("a"),Js.set(s,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function Xi(s,e,t,r){return r&&(t==="src"||t==="href"&&!(e==="use"&&r[0]==="#")||t==="xlink:href"&&r[0]!=="#"||t==="background"&&(e==="table"||e==="td"||e==="th")?Me(s,r):t==="srcset"?Ma(s,r):t==="style"?zt(r,ps(s)):e==="object"&&t==="data"?Me(s,r):r)}function Ki(s,e,t){return(s==="video"||s==="audio")&&e==="autoplay"}function $a(s,e,t){try{if(typeof e=="string"){if(s.classList.contains(e))return!0}else for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}if(t)return s.matches(t)}catch(r){}return!1}function Vt(s,e,t){if(!s)return!1;if(s.nodeType!==s.ELEMENT_NODE)return t?Vt(Y.parentNode(s),e,t):!1;for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}return t?Vt(Y.parentNode(s),e,t):!1}function Qi(s,e,t,r){let i;if(Gi(s)){if(i=s,!Y.childNodes(i).length)return!1}else{if(Y.parentElement(s)===null)return!1;i=Y.parentElement(s)}try{if(typeof e=="string"){if(r){if(i.closest(`.${e}`))return!0}else if(i.classList.contains(e))return!0}else if(Vt(i,e,r))return!0;if(t){if(r){if(i.closest(t))return!0}else if(i.matches(t))return!0}}catch(n){}return!1}function Na(s,e,t){const r=s.contentWindow;if(!r)return;let i=!1,n;try{n=r.document.readyState}catch(l){return}if(n!=="complete"){const l=setTimeout(()=>{i||(e(),i=!0)},t);s.addEventListener("load",()=>{clearTimeout(l),i=!0,e()});return}const o="about:blank";if(r.location.href!==o||s.src===o||s.src==="")return setTimeout(e,0),s.addEventListener("load",e);s.addEventListener("load",e)}function Pa(s,e,t){let r=!1,i;try{i=s.sheet}catch(o){return}if(i)return;const n=setTimeout(()=>{r||(e(),r=!0)},t);s.addEventListener("load",()=>{clearTimeout(n),r=!0,e()})}function ka(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:o,inlineStylesheet:l,maskInputOptions:a={},maskTextFn:u,maskInputFn:c,dataURLOptions:h={},inlineImages:p,recordCanvas:d,keepIframeSrcFn:g,newlyAddedElement:m=!1,cssCaptured:f=!1}=e,y=Da(t,r),S=Vi(s);switch(s.nodeType){case s.DOCUMENT_NODE:return s.compatMode!=="CSS1Compat"?{type:H.Document,childNodes:[],xPath:S,compatMode:s.compatMode}:{type:H.Document,childNodes:[],xPath:S};case s.DOCUMENT_TYPE_NODE:return{type:H.DocumentType,name:s.name,publicId:s.publicId,systemId:s.systemId,rootId:y,xPath:S};case s.ELEMENT_NODE:return Ta(s,{doc:t,blockClass:i,blockSelector:n,inlineStylesheet:l,maskInputOptions:a,maskInputFn:c,dataURLOptions:h,inlineImages:p,recordCanvas:d,keepIframeSrcFn:g,newlyAddedElement:m,rootId:y,xPath:S});case s.TEXT_NODE:return La(s,{doc:t,needsMask:o,maskTextFn:u,rootId:y,cssCaptured:f,xPath:S});case s.CDATA_SECTION_NODE:return{type:H.CDATA,textContent:"",rootId:y,xPath:S};case s.COMMENT_NODE:return{type:H.Comment,textContent:Y.textContent(s)||"",rootId:y,xPath:S};default:return!1}}function Da(s,e){if(!e.hasNode(s))return;const t=e.getId(s);return t===1?void 0:t}function La(s,e){const{needsMask:t,maskTextFn:r,rootId:i,cssCaptured:n,xPath:o}=e,l=Y.parentNode(s),a=l&&l.tagName;let u="";const c=a==="STYLE"?!0:void 0,h=a==="SCRIPT"?!0:void 0;h?u="SCRIPT_PLACEHOLDER":n||(u=Y.textContent(s),c&&u&&(u=zt(u,ps(e.doc)))),!c&&!h&&u&&t&&(u=r?r(u,Y.parentElement(s)):u.replace(/[\S]/g,"*"));const p=oa(s);return{type:H.Text,textContent:u||"",rootId:i,isVisible:p,xPath:o}}function Ta(s,e){const{doc:t,blockClass:r,blockSelector:i,inlineStylesheet:n,maskInputOptions:o={},maskInputFn:l,dataURLOptions:a={},inlineImages:u,recordCanvas:c,keepIframeSrcFn:h,newlyAddedElement:p=!1,rootId:d,xPath:g}=e,m=$a(s,r,i),f=Oa(s);let y={};const S=s.attributes.length;for(let b=0;b<S;b++){const v=s.attributes[b];Ki(f,v.name,v.value)||(y[v.name]=Xi(t,f,Ce(v.name),v.value))}if(f==="link"&&n){const b=Array.from(t.styleSheets).find(B=>B.href===s.href);let v=null;b&&(v=$r(b)),v&&(delete y.rel,delete y.href,y._cssText=v)}if(f==="style"&&s.sheet){let b=$r(s.sheet);b&&(s.childNodes.length>1&&(b=va(b,s)),y._cssText=b)}if(f==="input"||f==="textarea"||f==="select"){const b=s.value,v=s.checked;y.type!=="radio"&&y.type!=="checkbox"&&y.type!=="submit"&&y.type!=="button"&&b?y.value=hs({element:s,type:fs(s),tagName:f,value:b,maskInputOptions:o,maskInputFn:l}):v&&(y.checked=v)}if(f==="option"&&(s.selected&&!o.select?y.selected=!0:delete y.selected),f==="dialog"&&s.open&&(y.rr_open_mode=s.matches("dialog:modal")?"modal":"non-modal"),f==="canvas"&&c){if(s.__context==="2d")ma(s)||(y.rr_dataURL=s.toDataURL(a.type,a.quality));else if(!("__context"in s)){const b=s.toDataURL(a.type,a.quality),v=t.createElement("canvas");v.width=s.width,v.height=s.height;const B=v.toDataURL(a.type,a.quality);b!==B&&(y.rr_dataURL=b)}}if(f==="img"&&u){Oe||(Oe=t.createElement("canvas"),Zs=Oe.getContext("2d"));const b=s,v=b.currentSrc||b.getAttribute("src")||"<unknown-src>",B=b.crossOrigin,E=()=>{b.removeEventListener("load",E);try{Oe.width=b.naturalWidth,Oe.height=b.naturalHeight,Zs.drawImage(b,0,0),y.rr_dataURL=Oe.toDataURL(a.type,a.quality)}catch(W){if(b.crossOrigin!=="anonymous"){b.crossOrigin="anonymous",b.complete&&b.naturalWidth!==0?E():b.addEventListener("load",E);return}else console.warn(`Cannot inline img src=${v}! Error: ${W}`)}b.crossOrigin==="anonymous"&&(B?y.crossOrigin=B:b.removeAttribute("crossorigin"))};b.complete&&b.naturalWidth!==0?E():b.addEventListener("load",E)}if(f==="audio"||f==="video"){const b=y;b.rr_mediaState=s.paused?"paused":"played",b.rr_mediaCurrentTime=s.currentTime,b.rr_mediaPlaybackRate=s.playbackRate,b.rr_mediaMuted=s.muted,b.rr_mediaLoop=s.loop,b.rr_mediaVolume=s.volume}if(p||(s.scrollLeft&&(y.rr_scrollLeft=s.scrollLeft),s.scrollTop&&(y.rr_scrollTop=s.scrollTop)),m){const{width:b,height:v}=s.getBoundingClientRect();y={class:y.class,rr_width:`${b}px`,rr_height:`${v}px`}}f==="iframe"&&!h(y.src)&&(s.contentDocument||(y.rr_src=y.src),delete y.src);let C;try{customElements.get(f)&&(C=!0)}catch(b){}const D=ji(s);return{type:H.Element,tagName:f,attributes:y,childNodes:[],isSVG:Ea(s)||void 0,needBlock:m,rootId:d,isCustom:C,isVisible:D,xPath:g}}function L(s){return s==null?"":s.toLowerCase()}function _a(s,e){if(e.comment&&s.type===H.Comment)return!0;if(s.type===H.Element){if(e.script&&(s.tagName==="script"||s.tagName==="link"&&(s.attributes.rel==="preload"||s.attributes.rel==="modulepreload")&&s.attributes.as==="script"||s.tagName==="link"&&s.attributes.rel==="prefetch"&&typeof s.attributes.href=="string"&&Zi(s.attributes.href)==="js"))return!0;if(e.headFavicon&&(s.tagName==="link"&&s.attributes.rel==="shortcut icon"||s.tagName==="meta"&&(L(s.attributes.name).match(/^msapplication-tile(image|color)$/)||L(s.attributes.name)==="application-name"||L(s.attributes.rel)==="icon"||L(s.attributes.rel)==="apple-touch-icon"||L(s.attributes.rel)==="shortcut icon")))return!0;if(s.tagName==="meta"){if(e.headMetaDescKeywords&&L(s.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(L(s.attributes.property).match(/^(og|twitter|fb):/)||L(s.attributes.name).match(/^(og|twitter):/)||L(s.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(L(s.attributes.name)==="robots"||L(s.attributes.name)==="googlebot"||L(s.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&s.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(L(s.attributes.name)==="author"||L(s.attributes.name)==="generator"||L(s.attributes.name)==="framework"||L(s.attributes.name)==="publisher"||L(s.attributes.name)==="progid"||L(s.attributes.property).match(/^article:/)||L(s.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(L(s.attributes.name)==="google-site-verification"||L(s.attributes.name)==="yandex-verification"||L(s.attributes.name)==="csrf-token"||L(s.attributes.name)==="p:domain_verify"||L(s.attributes.name)==="verify-v1"||L(s.attributes.name)==="verification"||L(s.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ee(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:n,maskTextClass:o,maskTextSelector:l,skipChild:a=!1,inlineStylesheet:u=!0,maskInputOptions:c={},maskTextFn:h,maskInputFn:p,slimDOMOptions:d,dataURLOptions:g={},inlineImages:m=!1,recordCanvas:f=!1,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:C=5e3,onStylesheetLoad:D,stylesheetLoadTimeout:b=5e3,keepIframeSrcFn:v=()=>!1,newlyAddedElement:B=!1,cssCaptured:E=!1}=e;let{needsMask:W}=e,{preserveWhiteSpace:Z=!0}=e;W||(W=Qi(s,o,l,W===void 0));const Q=ka(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:W,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:p,dataURLOptions:g,inlineImages:m,recordCanvas:f,keepIframeSrcFn:v,newlyAddedElement:B,cssCaptured:E});if(!Q)return console.warn(s,"not serialized"),null;let oe;r.hasNode(s)?oe=r.getId(s):_a(Q,d)||!Z&&Q.type===H.Text&&!Q.textContent.replace(/^\s+|\s+$/gm,"").length?oe=Ze:oe=Ji();const M=Object.assign(Q,{id:oe});if(r.add(s,M),oe===Ze)return null;y&&y(s);let Ue=!a;if(M.type===H.Element){Ue=Ue&&!M.needBlock,delete M.needBlock;const j=Y.shadowRoot(s);j&&He(j)&&(M.isShadowHost=!0)}if((M.type===H.Document||M.type===H.Element)&&Ue){d.headWhitespace&&M.type===H.Element&&M.tagName==="head"&&(Z=!1);const j={doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:W,maskTextClass:o,maskTextSelector:l,skipChild:a,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:p,slimDOMOptions:d,dataURLOptions:g,inlineImages:m,recordCanvas:f,preserveWhiteSpace:Z,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:D,stylesheetLoadTimeout:b,keepIframeSrcFn:v,cssCaptured:!1};if(!(M.type===H.Element&&M.tagName==="textarea"&&M.attributes.value!==void 0)){M.type===H.Element&&M.attributes._cssText!==void 0&&typeof M.attributes._cssText=="string"&&(j.cssCaptured=!0);for(const ye of Array.from(Y.childNodes(s))){const ae=Ee(ye,j);ae&&M.childNodes.push(ae)}}let q=null;if(Gi(s)&&(q=Y.shadowRoot(s)))for(const ye of Array.from(Y.childNodes(q))){const ae=Ee(ye,j);ae&&(He(q)&&(ae.isShadow=!0),M.childNodes.push(ae))}}const Be=Y.parentNode(s);return Be&&je(Be)&&He(Be)&&(M.isShadow=!0),M.type===H.Element&&M.tagName==="iframe"&&Na(s,()=>{const j=s.contentDocument;if(j&&S){const q=Ee(j,{doc:j,mirror:r,blockClass:i,blockSelector:n,needsMask:W,maskTextClass:o,maskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:p,slimDOMOptions:d,dataURLOptions:g,inlineImages:m,recordCanvas:f,preserveWhiteSpace:Z,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:D,stylesheetLoadTimeout:b,keepIframeSrcFn:v});q&&S(s,q)}},C),M.type===H.Element&&M.tagName==="link"&&typeof M.attributes.rel=="string"&&(M.attributes.rel==="stylesheet"||M.attributes.rel==="preload"&&typeof M.attributes.href=="string"&&Zi(M.attributes.href)==="css")&&Pa(s,()=>{if(D){const j=Ee(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:W,maskTextClass:o,maskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:p,slimDOMOptions:d,dataURLOptions:g,inlineImages:m,recordCanvas:f,preserveWhiteSpace:Z,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:D,stylesheetLoadTimeout:b,keepIframeSrcFn:v});j&&D(s,j)}},b),M}function Fa(s,e){const{mirror:t=new Yi,blockClass:r="rr-block",blockSelector:i=null,maskTextClass:n="rr-mask",maskTextSelector:o=null,inlineStylesheet:l=!0,inlineImages:a=!1,recordCanvas:u=!1,maskAllInputs:c=!1,maskTextFn:h,maskInputFn:p,slimDOM:d=!1,dataURLOptions:g,preserveWhiteSpace:m,onSerialize:f,onIframeLoad:y,iframeLoadTimeout:S,onStylesheetLoad:C,stylesheetLoadTimeout:D,keepIframeSrcFn:b=()=>!1}=e||{};return Ee(s,{doc:s,mirror:t,blockClass:r,blockSelector:i,maskTextClass:n,maskTextSelector:o,skipChild:!1,inlineStylesheet:l,maskInputOptions:c===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:c===!1?{password:!0}:c,maskTextFn:h,maskInputFn:p,slimDOMOptions:d===!0||d==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:d==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:d===!1?{}:d,dataURLOptions:g,inlineImages:a,recordCanvas:u,preserveWhiteSpace:m,onSerialize:f,onIframeLoad:y,iframeLoadTimeout:S,onStylesheetLoad:C,stylesheetLoadTimeout:D,keepIframeSrcFn:b,newlyAddedElement:!1})}function Ua(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Ba(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}var ds={exports:{}},T=String,qi=function(){return{isColorSupported:!1,reset:T,bold:T,dim:T,italic:T,underline:T,inverse:T,hidden:T,strikethrough:T,black:T,red:T,green:T,yellow:T,blue:T,magenta:T,cyan:T,white:T,gray:T,bgBlack:T,bgRed:T,bgGreen:T,bgYellow:T,bgBlue:T,bgMagenta:T,bgCyan:T,bgWhite:T}};ds.exports=qi();ds.exports.createColors=qi;var Wa=ds.exports;const za={},Va=Object.freeze(Object.defineProperty({__proto__:null,default:za},Symbol.toStringTag,{value:"Module"})),ie=Ba(Va);let Xs=Wa,Ks=ie,Nr=class en extends Error{constructor(e,t,r,i,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),i&&(this.source=i),o&&(this.plugin=o),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,en)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Xs.isColorSupported),Ks&&e&&(t=Ks(t));let r=t.split(/\r?\n/),i=Math.max(this.line-3,0),n=Math.min(this.line+2,r.length),o=String(n).length,l,a;if(e){let{bold:u,gray:c,red:h}=Xs.createColors(!0);l=p=>u(h(p)),a=p=>c(p)}else l=a=u=>u;return r.slice(i,n).map((u,c)=>{let h=i+1+c,p=" "+(" "+h).slice(-o)+" | ";if(h===this.line){let d=a(p.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(p)+u+`
|
|
14
|
+
"use strict";var Bo=Object.defineProperty,Wo=Object.defineProperties;var zo=Object.getOwnPropertyDescriptors;var ft=Object.getOwnPropertySymbols;var Ws=Object.prototype.hasOwnProperty,zs=Object.prototype.propertyIsEnumerable;var Bs=(s,e,t)=>e in s?Bo(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,O=(s,e)=>{for(var t in e||(e={}))Ws.call(e,t)&&Bs(s,t,e[t]);if(ft)for(var t of ft(e))zs.call(e,t)&&Bs(s,t,e[t]);return s},ee=(s,e)=>Wo(s,zo(e));var xe=(s,e)=>{var t={};for(var r in s)Ws.call(s,r)&&e.indexOf(r)<0&&(t[r]=s[r]);if(s!=null&&ft)for(var r of ft(s))e.indexOf(r)<0&&zs.call(s,r)&&(t[r]=s[r]);return t};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Vo=Object.defineProperty,Go=(s,e,t)=>e in s?Vo(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,w=(s,e,t)=>Go(s,typeof e!="symbol"?e+"":e,t),Vs,jo=Object.defineProperty,Ho=(s,e,t)=>e in s?jo(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Gs=(s,e,t)=>Ho(s,typeof e!="symbol"?e+"":e,t),H=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(H||{});const js={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Hs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},pt={},Yo=()=>!!globalThis.Zone;function cs(s){if(pt[s])return pt[s];const e=globalThis[s],t=e.prototype,r=s in js?js[s]:void 0,i=!!(r&&r.every(l=>{var a,u;return!!((u=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)!=null&&u.toString().includes("[native code]"))})),n=s in Hs?Hs[s]:void 0,o=!!(n&&n.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(i&&o&&!Yo())return pt[s]=e.prototype,e.prototype;try{const l=document.createElement("iframe");document.body.appendChild(l);const a=l.contentWindow;if(!a)return e.prototype;const u=a[s].prototype;return document.body.removeChild(l),u?pt[s]=u:t}catch(l){return t}}const mr={};function me(s,e,t){var r;const i=`${s}.${String(t)}`;if(mr[i])return mr[i].call(e);const n=cs(s),o=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return o?(mr[i]=o,o.call(e)):e[t]}const gr={};function zi(s,e,t){const r=`${s}.${String(t)}`;if(gr[r])return gr[r].bind(e);const n=cs(s)[t];return typeof n!="function"?e[t]:(gr[r]=n,n.bind(e))}function Zo(s){return me("Node",s,"childNodes")}function Jo(s){return me("Node",s,"parentNode")}function Xo(s){return me("Node",s,"parentElement")}function Ko(s){return me("Node",s,"textContent")}function Qo(s,e){return zi("Node",s,"contains")(e)}function qo(s){return zi("Node",s,"getRootNode")()}function ea(s){return!s||!("host"in s)?null:me("ShadowRoot",s,"host")}function ta(s){return s.styleSheets}function ra(s){return!s||!("shadowRoot"in s)?null:me("Element",s,"shadowRoot")}function sa(s,e){return me("Element",s,"querySelector")(e)}function ia(s,e){return me("Element",s,"querySelectorAll")(e)}function na(){return cs("MutationObserver").constructor}const Y={childNodes:Zo,parentNode:Jo,parentElement:Xo,textContent:Ko,contains:Qo,getRootNode:qo,host:ea,styleSheets:ta,shadowRoot:ra,querySelector:sa,querySelectorAll:ia,mutationObserver:na};function Vi(s){if(s.id)return`//*[@id="${s.id}"]`;if(s===document.body)return"/html/body";if(!s.tagName)return"";const e=Y.parentNode(s);if(!e||!(e instanceof Element))return"";const t=Array.from(e.children).filter(i=>i.tagName&&i.tagName===s.tagName),r=t.length>1?`[${t.indexOf(s)+1}]`:"";return Vi(e)+"/"+s.tagName.toLowerCase()+r}function Gi(s){return s.nodeType===s.ELEMENT_NODE}function oa(s){var e;const t=Y.parentNode(s),r=t&&t;return!r||!ji(r)?!1:((e=s.textContent)==null?void 0:e.trim())!==""}function ji(s){return aa(s)&&la(s.getBoundingClientRect())}function aa(s){const e=window.getComputedStyle(s);return e.display!=="none"&&e.visibility!=="hidden"&&parseFloat(e.opacity)!==0}function la(s){return s.width>0&&s.height>0&&s.top>=0&&s.left>=0&&s.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&s.right<=(window.innerWidth||document.documentElement.clientWidth)}function je(s){const e=s&&"host"in s&&"mode"in s&&Y.host(s)||null;return!!(e&&"shadowRoot"in e&&Y.shadowRoot(e)===s)}function He(s){return Object.prototype.toString.call(s)==="[object ShadowRoot]"}function ua(s){return s.includes(" background-clip: text;")&&!s.includes(" -webkit-background-clip: text;")&&(s=s.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),s}function ca(s){const{cssText:e}=s;if(e.split('"').length<3)return e;const t=["@import",`url(${JSON.stringify(s.href)})`];return s.layerName===""?t.push("layer"):s.layerName&&t.push(`layer(${s.layerName})`),s.supportsText&&t.push(`supports(${s.supportsText})`),s.media.length&&t.push(s.media.mediaText),t.join(" ")+";"}function $r(s){try{const e=s.rules||s.cssRules;if(!e)return null;let t=s.href;!t&&s.ownerNode&&s.ownerNode.ownerDocument&&(t=s.ownerNode.ownerDocument.location.href);const r=Array.from(e,i=>Hi(i,t)).join("");return ua(r)}catch(e){return null}}function Hi(s,e){if(fa(s)){let t;try{t=$r(s.styleSheet)||ca(s)}catch(r){t=s.cssText}return s.styleSheet.href?zt(t,s.styleSheet.href):t}else{let t=s.cssText;return pa(s)&&s.selectorText.includes(":")&&(t=ha(t)),e?zt(t,e):t}}function ha(s){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function fa(s){return"styleSheet"in s}function pa(s){return"selectorText"in s}class Yi{constructor(){Gs(this,"idNodeMap",new Map),Gs(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const r=(t=this.getMeta(e))==null?void 0:t.id;return r!=null?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(t,i)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function da(){return new Yi}function hs({element:s,maskInputOptions:e,tagName:t,type:r,value:i,maskInputFn:n}){let o=i||"";const l=r&&Ce(r);return(e[t.toLowerCase()]||l&&e[l])&&(n?o=n(o,s):o="*".repeat(o.length)),o}function Ce(s){return s.toLowerCase()}const Ys="__rrweb_original__";function ma(s){const e=s.getContext("2d");if(!e)return!0;const t=50;for(let r=0;r<s.width;r+=t)for(let i=0;i<s.height;i+=t){const n=e.getImageData,o=Ys in n?n[Ys]:n;if(new Uint32Array(o.call(e,r,i,Math.min(t,s.width-r),Math.min(t,s.height-i)).data.buffer).some(a=>a!==0))return!1}return!0}function fs(s){const e=s.type;return s.hasAttribute("data-rr-is-password")?"password":e?Ce(e):null}function Zi(s,e){var n;let t;try{t=new URL(s,e!=null?e:window.location.href)}catch(o){return null}const r=/\.([0-9a-z]+)(?:$)/i,i=t.pathname.match(r);return(n=i==null?void 0:i[1])!=null?n:null}function ga(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}const ya=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,wa=/^(?:[a-z+]+:)?\/\//i,ba=/^www\..*/i,Sa=/^(data:)([^,]*),(.*)/i;function zt(s,e){return(s||"").replace(ya,(t,r,i,n,o,l)=>{const a=i||o||l,u=r||n||"";if(!a)return t;if(wa.test(a)||ba.test(a))return`url(${u}${a}${u})`;if(Sa.test(a))return`url(${u}${a}${u})`;if(a[0]==="/")return`url(${u}${ga(e)+a}${u})`;const c=e.split("/"),h=a.split("/");c.pop();for(const p of h)p!=="."&&(p===".."?c.pop():c.push(p));return`url(${u}${c.join("/")}${u})`})}function yr(s){return s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}function Ca(s,e){const t=Array.from(e.childNodes),r=[];let i=0;if(t.length>1&&s&&typeof s=="string"){let n=yr(s);const o=n.length/s.length;for(let l=1;l<t.length;l++)if(t[l].textContent&&typeof t[l].textContent=="string"){const a=yr(t[l].textContent);let u=3;for(;u<a.length&&(a[u].match(/[a-zA-Z0-9]/)||a.indexOf(a.substring(0,u),1)!==-1);u++);for(;u<a.length;u++){const c=a.substring(0,u),h=n.split(c);let p=-1;if(h.length===2?p=n.indexOf(c):h.length>2&&h[0]===""&&t[l-1].textContent!==""&&(p=n.indexOf(c,1)),p!==-1){let d=Math.floor(p/o);for(;d>0&&d<s.length;){if(i+=1,i>50*t.length)return r.push(s),r;const g=yr(s.substring(0,d));if(g.length===p){r.push(s.substring(0,d)),s=s.substring(d),n=n.substring(p);break}else g.length<p?d+=Math.max(1,Math.floor((p-g.length)/o)):d-=Math.max(1,Math.floor((g.length-p)*o))}break}}}}return r.push(s),r}function va(s,e){return Ca(s,e).join("/* rr_split */")}let Ia=1;const xa=new RegExp("[^a-z0-9-_:]"),Ze=-2;function Ji(){return Ia++}function Oa(s){if(s instanceof HTMLFormElement)return"form";const e=Ce(s.tagName);return xa.test(e)?"div":e}let Oe,Zs;const Ra=/^[^ \t\n\r\u000c]+/,Aa=/^[, \t\n\r\u000c]+/;function Ma(s,e){if(e.trim()==="")return e;let t=0;function r(n){let o;const l=n.exec(e.substring(t));return l?(o=l[0],t+=o.length,o):""}const i=[];for(;r(Aa),!(t>=e.length);){let n=r(Ra);if(n.slice(-1)===",")n=Me(s,n.substring(0,n.length-1)),i.push(n);else{let o="";n=Me(s,n);let l=!1;for(;;){const a=e.charAt(t);if(a===""){i.push((n+o).trim());break}else if(l)a===")"&&(l=!1);else if(a===","){t+=1,i.push((n+o).trim());break}else a==="("&&(l=!0);o+=a,t+=1}}}return i.join(", ")}const Js=new WeakMap;function Me(s,e){return!e||e.trim()===""?e:ps(s,e)}function Ea(s){return!!(s.tagName==="svg"||s.ownerSVGElement)}function ps(s,e){let t=Js.get(s);if(t||(t=s.createElement("a"),Js.set(s,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function Xi(s,e,t,r){return r&&(t==="src"||t==="href"&&!(e==="use"&&r[0]==="#")||t==="xlink:href"&&r[0]!=="#"||t==="background"&&(e==="table"||e==="td"||e==="th")?Me(s,r):t==="srcset"?Ma(s,r):t==="style"?zt(r,ps(s)):e==="object"&&t==="data"?Me(s,r):r)}function Ki(s,e,t){return(s==="video"||s==="audio")&&e==="autoplay"}function $a(s,e,t){try{if(typeof e=="string"){if(s.classList.contains(e))return!0}else for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}if(t)return s.matches(t)}catch(r){}return!1}function Vt(s,e,t){if(!s)return!1;if(s.nodeType!==s.ELEMENT_NODE)return t?Vt(Y.parentNode(s),e,t):!1;for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}return t?Vt(Y.parentNode(s),e,t):!1}function Qi(s,e,t,r){let i;if(Gi(s)){if(i=s,!Y.childNodes(i).length)return!1}else{if(Y.parentElement(s)===null)return!1;i=Y.parentElement(s)}try{if(typeof e=="string"){if(r){if(i.closest(`.${e}`))return!0}else if(i.classList.contains(e))return!0}else if(Vt(i,e,r))return!0;if(t){if(r){if(i.closest(t))return!0}else if(i.matches(t))return!0}}catch(n){}return!1}function Na(s,e,t){const r=s.contentWindow;if(!r)return;let i=!1,n;try{n=r.document.readyState}catch(l){return}if(n!=="complete"){const l=setTimeout(()=>{i||(e(),i=!0)},t);s.addEventListener("load",()=>{clearTimeout(l),i=!0,e()});return}const o="about:blank";if(r.location.href!==o||s.src===o||s.src==="")return setTimeout(e,0),s.addEventListener("load",e);s.addEventListener("load",e)}function Pa(s,e,t){let r=!1,i;try{i=s.sheet}catch(o){return}if(i)return;const n=setTimeout(()=>{r||(e(),r=!0)},t);s.addEventListener("load",()=>{clearTimeout(n),r=!0,e()})}function ka(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:o,inlineStylesheet:l,maskInputOptions:a={},maskTextFn:u,maskInputFn:c,dataURLOptions:h={},inlineImages:p,recordCanvas:d,keepIframeSrcFn:g,newlyAddedElement:m=!1,cssCaptured:f=!1}=e,y=Da(t,r),S=Vi(s);switch(s.nodeType){case s.DOCUMENT_NODE:return s.compatMode!=="CSS1Compat"?{type:H.Document,childNodes:[],xPath:S,compatMode:s.compatMode}:{type:H.Document,childNodes:[],xPath:S};case s.DOCUMENT_TYPE_NODE:return{type:H.DocumentType,name:s.name,publicId:s.publicId,systemId:s.systemId,rootId:y,xPath:S};case s.ELEMENT_NODE:return Ta(s,{doc:t,blockClass:i,blockSelector:n,inlineStylesheet:l,maskInputOptions:a,maskInputFn:c,dataURLOptions:h,inlineImages:p,recordCanvas:d,keepIframeSrcFn:g,newlyAddedElement:m,rootId:y,xPath:S});case s.TEXT_NODE:return La(s,{doc:t,needsMask:o,maskTextFn:u,rootId:y,cssCaptured:f,xPath:S});case s.CDATA_SECTION_NODE:return{type:H.CDATA,textContent:"",rootId:y,xPath:S};case s.COMMENT_NODE:return{type:H.Comment,textContent:Y.textContent(s)||"",rootId:y,xPath:S};default:return!1}}function Da(s,e){if(!e.hasNode(s))return;const t=e.getId(s);return t===1?void 0:t}function La(s,e){const{needsMask:t,maskTextFn:r,rootId:i,cssCaptured:n,xPath:o}=e,l=Y.parentNode(s),a=l&&l.tagName;let u="";const c=a==="STYLE"?!0:void 0,h=a==="SCRIPT"?!0:void 0;h?u="SCRIPT_PLACEHOLDER":n||(u=Y.textContent(s),c&&u&&(u=zt(u,ps(e.doc)))),!c&&!h&&u&&t&&(u=r?r(u,Y.parentElement(s)):u.replace(/[\S]/g,"*"));const p=oa(s);return{type:H.Text,textContent:u||"",rootId:i,isVisible:p,xPath:o}}function Ta(s,e){const{doc:t,blockClass:r,blockSelector:i,inlineStylesheet:n,maskInputOptions:o={},maskInputFn:l,dataURLOptions:a={},inlineImages:u,recordCanvas:c,keepIframeSrcFn:h,newlyAddedElement:p=!1,rootId:d,xPath:g}=e,m=$a(s,r,i),f=Oa(s);let y={};const S=s.attributes.length;for(let b=0;b<S;b++){const v=s.attributes[b];Ki(f,v.name,v.value)||(y[v.name]=Xi(t,f,Ce(v.name),v.value))}if(f==="link"&&n){const b=Array.from(t.styleSheets).find(B=>B.href===s.href);let v=null;b&&(v=$r(b)),v&&(delete y.rel,delete y.href,y._cssText=v)}if(f==="style"&&s.sheet){let b=$r(s.sheet);b&&(s.childNodes.length>1&&(b=va(b,s)),y._cssText=b)}if(f==="input"||f==="textarea"||f==="select"){const b=s.value,v=s.checked;y.type!=="radio"&&y.type!=="checkbox"&&y.type!=="submit"&&y.type!=="button"&&b?y.value=hs({element:s,type:fs(s),tagName:f,value:b,maskInputOptions:o,maskInputFn:l}):v&&(y.checked=v)}if(f==="option"&&(s.selected&&!o.select?y.selected=!0:delete y.selected),f==="dialog"&&s.open&&(y.rr_open_mode=s.matches("dialog:modal")?"modal":"non-modal"),f==="canvas"&&c){if(s.__context==="2d")ma(s)||(y.rr_dataURL=s.toDataURL(a.type,a.quality));else if(!("__context"in s)){const b=s.toDataURL(a.type,a.quality),v=t.createElement("canvas");v.width=s.width,v.height=s.height;const B=v.toDataURL(a.type,a.quality);b!==B&&(y.rr_dataURL=b)}}if(f==="img"&&u){Oe||(Oe=t.createElement("canvas"),Zs=Oe.getContext("2d"));const b=s,v=b.currentSrc||b.getAttribute("src")||"<unknown-src>",B=b.crossOrigin,E=()=>{b.removeEventListener("load",E);try{Oe.width=b.naturalWidth,Oe.height=b.naturalHeight,Zs.drawImage(b,0,0),y.rr_dataURL=Oe.toDataURL(a.type,a.quality)}catch(W){if(b.crossOrigin!=="anonymous"){b.crossOrigin="anonymous",b.complete&&b.naturalWidth!==0?E():b.addEventListener("load",E);return}else console.warn(`Cannot inline img src=${v}! Error: ${W}`)}b.crossOrigin==="anonymous"&&(B?y.crossOrigin=B:b.removeAttribute("crossorigin"))};b.complete&&b.naturalWidth!==0?E():b.addEventListener("load",E)}if(f==="audio"||f==="video"){const b=y;b.rr_mediaState=s.paused?"paused":"played",b.rr_mediaCurrentTime=s.currentTime,b.rr_mediaPlaybackRate=s.playbackRate,b.rr_mediaMuted=s.muted,b.rr_mediaLoop=s.loop,b.rr_mediaVolume=s.volume}if(p||(s.scrollLeft&&(y.rr_scrollLeft=s.scrollLeft),s.scrollTop&&(y.rr_scrollTop=s.scrollTop)),m){const{width:b,height:v}=s.getBoundingClientRect();y={class:y.class,rr_width:`${b}px`,rr_height:`${v}px`}}f==="iframe"&&!h(y.src)&&(s.contentDocument||(y.rr_src=y.src),delete y.src);let C;try{customElements.get(f)&&(C=!0)}catch(b){}const D=ji(s);return{type:H.Element,tagName:f,attributes:y,childNodes:[],isSVG:Ea(s)||void 0,needBlock:m,rootId:d,isCustom:C,isVisible:D,xPath:g}}function L(s){return s==null?"":s.toLowerCase()}function _a(s,e){if(e.comment&&s.type===H.Comment)return!0;if(s.type===H.Element){if(e.script&&(s.tagName==="script"||s.tagName==="link"&&(s.attributes.rel==="preload"||s.attributes.rel==="modulepreload")&&s.attributes.as==="script"||s.tagName==="link"&&s.attributes.rel==="prefetch"&&typeof s.attributes.href=="string"&&Zi(s.attributes.href)==="js"))return!0;if(e.headFavicon&&(s.tagName==="link"&&s.attributes.rel==="shortcut icon"||s.tagName==="meta"&&(L(s.attributes.name).match(/^msapplication-tile(image|color)$/)||L(s.attributes.name)==="application-name"||L(s.attributes.rel)==="icon"||L(s.attributes.rel)==="apple-touch-icon"||L(s.attributes.rel)==="shortcut icon")))return!0;if(s.tagName==="meta"){if(e.headMetaDescKeywords&&L(s.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(L(s.attributes.property).match(/^(og|twitter|fb):/)||L(s.attributes.name).match(/^(og|twitter):/)||L(s.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(L(s.attributes.name)==="robots"||L(s.attributes.name)==="googlebot"||L(s.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&s.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(L(s.attributes.name)==="author"||L(s.attributes.name)==="generator"||L(s.attributes.name)==="framework"||L(s.attributes.name)==="publisher"||L(s.attributes.name)==="progid"||L(s.attributes.property).match(/^article:/)||L(s.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(L(s.attributes.name)==="google-site-verification"||L(s.attributes.name)==="yandex-verification"||L(s.attributes.name)==="csrf-token"||L(s.attributes.name)==="p:domain_verify"||L(s.attributes.name)==="verify-v1"||L(s.attributes.name)==="verification"||L(s.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ee(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:n,maskTextClass:o,maskTextSelector:l,skipChild:a=!1,inlineStylesheet:u=!0,maskInputOptions:c={},maskTextFn:h,maskInputFn:p,slimDOMOptions:d,dataURLOptions:g={},inlineImages:m=!1,recordCanvas:f=!1,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:C=5e3,onStylesheetLoad:D,stylesheetLoadTimeout:b=5e3,keepIframeSrcFn:v=()=>!1,newlyAddedElement:B=!1,cssCaptured:E=!1}=e;let{needsMask:W}=e,{preserveWhiteSpace:Z=!0}=e;W||(W=Qi(s,o,l,W===void 0));const Q=ka(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:W,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:p,dataURLOptions:g,inlineImages:m,recordCanvas:f,keepIframeSrcFn:v,newlyAddedElement:B,cssCaptured:E});if(!Q)return console.warn(s,"not serialized"),null;let oe;r.hasNode(s)?oe=r.getId(s):_a(Q,d)||!Z&&Q.type===H.Text&&!Q.textContent.replace(/^\s+|\s+$/gm,"").length?oe=Ze:oe=Ji();const M=Object.assign(Q,{id:oe});if(r.add(s,M),oe===Ze)return null;y&&y(s);let Ue=!a;if(M.type===H.Element){Ue=Ue&&!M.needBlock,delete M.needBlock;const j=Y.shadowRoot(s);j&&He(j)&&(M.isShadowHost=!0)}if((M.type===H.Document||M.type===H.Element)&&Ue){d.headWhitespace&&M.type===H.Element&&M.tagName==="head"&&(Z=!1);const j={doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:W,maskTextClass:o,maskTextSelector:l,skipChild:a,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:p,slimDOMOptions:d,dataURLOptions:g,inlineImages:m,recordCanvas:f,preserveWhiteSpace:Z,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:D,stylesheetLoadTimeout:b,keepIframeSrcFn:v,cssCaptured:!1};if(!(M.type===H.Element&&M.tagName==="textarea"&&M.attributes.value!==void 0)){M.type===H.Element&&M.attributes._cssText!==void 0&&typeof M.attributes._cssText=="string"&&(j.cssCaptured=!0);for(const ye of Array.from(Y.childNodes(s))){const ae=Ee(ye,j);ae&&M.childNodes.push(ae)}}let q=null;if(Gi(s)&&(q=Y.shadowRoot(s)))for(const ye of Array.from(Y.childNodes(q))){const ae=Ee(ye,j);ae&&(He(q)&&(ae.isShadow=!0),M.childNodes.push(ae))}}const Be=Y.parentNode(s);return Be&&je(Be)&&He(Be)&&(M.isShadow=!0),M.type===H.Element&&M.tagName==="iframe"&&Na(s,()=>{const j=s.contentDocument;if(j&&S){const q=Ee(j,{doc:j,mirror:r,blockClass:i,blockSelector:n,needsMask:W,maskTextClass:o,maskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:p,slimDOMOptions:d,dataURLOptions:g,inlineImages:m,recordCanvas:f,preserveWhiteSpace:Z,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:D,stylesheetLoadTimeout:b,keepIframeSrcFn:v});q&&S(s,q)}},C),M.type===H.Element&&M.tagName==="link"&&typeof M.attributes.rel=="string"&&(M.attributes.rel==="stylesheet"||M.attributes.rel==="preload"&&typeof M.attributes.href=="string"&&Zi(M.attributes.href)==="css")&&Pa(s,()=>{if(D){const j=Ee(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:W,maskTextClass:o,maskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:p,slimDOMOptions:d,dataURLOptions:g,inlineImages:m,recordCanvas:f,preserveWhiteSpace:Z,onSerialize:y,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:D,stylesheetLoadTimeout:b,keepIframeSrcFn:v});j&&D(s,j)}},b),M}function Fa(s,e){const{mirror:t=new Yi,blockClass:r="rr-block",blockSelector:i=null,maskTextClass:n="rr-mask",maskTextSelector:o=null,inlineStylesheet:l=!0,inlineImages:a=!1,recordCanvas:u=!1,maskAllInputs:c=!1,maskTextFn:h,maskInputFn:p,slimDOM:d=!1,dataURLOptions:g,preserveWhiteSpace:m,onSerialize:f,onIframeLoad:y,iframeLoadTimeout:S,onStylesheetLoad:C,stylesheetLoadTimeout:D,keepIframeSrcFn:b=()=>!1}=e||{};return Ee(s,{doc:s,mirror:t,blockClass:r,blockSelector:i,maskTextClass:n,maskTextSelector:o,skipChild:!1,inlineStylesheet:l,maskInputOptions:c===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:c===!1?{password:!0}:c,maskTextFn:h,maskInputFn:p,slimDOMOptions:d===!0||d==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:d==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:d===!1?{}:d,dataURLOptions:g,inlineImages:a,recordCanvas:u,preserveWhiteSpace:m,onSerialize:f,onIframeLoad:y,iframeLoadTimeout:S,onStylesheetLoad:C,stylesheetLoadTimeout:D,keepIframeSrcFn:b,newlyAddedElement:!1})}function Ua(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Ba(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}var ds={exports:{}},T=String,qi=function(){return{isColorSupported:!1,reset:T,bold:T,dim:T,italic:T,underline:T,inverse:T,hidden:T,strikethrough:T,black:T,red:T,green:T,yellow:T,blue:T,magenta:T,cyan:T,white:T,gray:T,bgBlack:T,bgRed:T,bgGreen:T,bgYellow:T,bgBlue:T,bgMagenta:T,bgCyan:T,bgWhite:T}};ds.exports=qi();ds.exports.createColors=qi;var Wa=ds.exports;const za={},Va=Object.freeze(Object.defineProperty({__proto__:null,default:za},Symbol.toStringTag,{value:"Module"})),ie=Ba(Va);let Xs=Wa,Ks=ie,Nr=class en extends Error{constructor(e,t,r,i,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),i&&(this.source=i),o&&(this.plugin=o),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,en)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Xs.isColorSupported),Ks&&e&&(t=Ks(t));let r=t.split(/\r?\n/),i=Math.max(this.line-3,0),n=Math.min(this.line+2,r.length),o=String(n).length,l,a;if(e){let{bold:u,gray:c,red:h}=Xs.createColors(!0);l=p=>u(h(p)),a=p=>c(p)}else l=a=u=>u;return r.slice(i,n).map((u,c)=>{let h=i+1+c,p=" "+(" "+h).slice(-o)+" | ";if(h===this.line){let d=a(p.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(p)+u+`
|
|
15
15
|
`+d+l("^")}return" "+a(p)+u}).join(`
|
|
16
16
|
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
17
17
|
|