@elu-labs/analytics-browser 1.410.0

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.
@@ -0,0 +1,2 @@
1
+ /*! ELU-modified distribution. Notices and license terms: https://elu.dev/sdk/licenses */
2
+ !function(){var e=function(e){"use strict";function t(e,t,r,n,s,i,o){try{var a=e[i](o),l=a.value}catch(e){return void r(e)}a.done?t(l):Promise.resolve(l).then(n,s)}function r(e){return function(){var r=this,n=arguments;return new Promise((function(s,i){var o=e.apply(r,n);function a(e){t(o,s,i,a,l,"next",e)}function l(e){t(o,s,i,a,l,"throw",e)}a(void 0)}))}}function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(null,arguments)}function s(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}class i extends Error{constructor(){super("Recorder cleanup incomplete"),this.name="RecorderCleanupError"}}var o=e=>e instanceof i||!!e&&"object"==typeof e&&"RecorderCleanupError"===e.name;function a(){var e=[],t=!1,r=!1,n=e=>{try{e()}catch(e){r=!0}},s=()=>{if(r)throw new i};return{close:()=>{for(t=!0;e.length;)n(e.pop());s()},poison(){r=!0},add(r){t?(n(r),s()):e.push(r)},replace(e,r,n){if(t)throw new i;var s=Object.getOwnPropertyDescriptor(e,r);this.add((()=>{if(s)Object.defineProperty(e,r,s);else if(!Reflect.deleteProperty(e,r))throw new Error("Recorder patch restoration failed")})),e[r]=n}}}function l(e){var t=a();try{return e(t),t.close}catch(e){throw o(e)&&t.poison(),t.close(),e}}var u=function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e}({}),c=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}({}),d=function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e}({}),h=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}({}),p=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}({}),f=function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e}({}),m=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}({});function v(e,t){return-1!==e.indexOf(t)}var g={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot"],MutationObserver:[]},y={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:["querySelector","querySelectorAll"],MutationObserver:["constructor"]},w={};function b(e){if(w[e])return w[e];var t=function(e){var t,r=null==globalThis||null==(t=globalThis.Zone)||null==t.__symbol__?void 0:t.__symbol__(e);return r&&globalThis[r]?globalThis[r]:void 0}(e)||globalThis[e],r=t.prototype,n=e in g?g[e]:void 0,s=Boolean(n&&n.every((e=>{var t;return Boolean(null==(t=Object.getOwnPropertyDescriptor(r,e))||null==(t=t.get)?void 0:t.toString().includes("[native code]"))}))),i=e in y?y[e]:void 0,o=Boolean(i&&i.every((e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))})));if(s&&o)return w[e]=t.prototype,t.prototype;var a=document.createElement("iframe");a.style.display="none";var l,u=!1;try{document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var d=c[e].prototype;return d?(v(l=navigator.userAgent,"AppleWebKit")&&!v(l,"Chrome")&&(a.classList.add("rr-block","ph-no-capture"),a.setAttribute("__rrwebUntaintedPrototype",e),u=!0),w[e]=d):r}catch(e){return r}finally{!u&&a.parentNode&&document.body.removeChild(a)}}var S={};function C(e,t,r){var n,s=e+"."+String(r);if(S[s])return S[s].call(t);var i=b(e),o=null==(n=Object.getOwnPropertyDescriptor(i,r))?void 0:n.get;return o?(S[s]=o,o.call(t)):t[r]}var I={};function M(e,t,r){var n=e+"."+String(r);if(I[n])return I[n].bind(t);var s=b(e)[r];return"function"!=typeof s?t[r]:(I[n]=s,s.bind(t))}function k(){return b("MutationObserver").constructor}function O(e,t,r){try{if(!(t in e))return()=>{};var n=e[t],s={next:n},i=r((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.next.apply(this,t)}));return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n},__rrweb_layer__:{enumerable:!1,value:s}})),e[t]=i,()=>{if(e[t]!==i)for(var r=e[t];"function"==typeof r&&r.__rrweb_layer__;){var n=r.__rrweb_layer__;if(n.next===i)return void(n.next=s.next);r=n.next}else e[t]=s.next}}catch(e){return()=>{}}}var x={childNodes:function(e){return C("Node",e,"childNodes")},parentNode:function(e){return C("Node",e,"parentNode")},parentElement:function(e){return C("Node",e,"parentElement")},textContent:function(e){return C("Node",e,"textContent")},contains:function(e,t){return M("Node",e,"contains")(t)},getRootNode:function(e){return M("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?C("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?C("Element",e,"shadowRoot"):null},querySelector:function(e,t){return M("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return M("Element",e,"querySelectorAll")(t)},mutationObserver:k,patch:O};function E(e){return e.nodeType===e.ELEMENT_NODE}function R(e){var t=e&&"host"in e&&"mode"in e&&x.host(e)||null;return Boolean(t&&"shadowRoot"in t&&x.shadowRoot(t)===e)}function N(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function A(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;!r&&e.ownerNode&&(r=e.ownerNode.baseURI);var n=Array.from(t,(e=>D(e,r))).join("");return(s=n).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}catch(e){return null}var s}function D(e,t){if(function(e){return"styleSheet"in e}(e)){var r;try{r=A(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(t){r=e.cssText}try{var n;if(r&&null!=(n=e.styleSheet)&&n.href)return U(r,e.styleSheet.href)}catch(e){}return r}var s,i=e.cssText;return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")&&(s=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,i=i.replace(s,"$1\\$2")),t?U(i,t):i}class T{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?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){var t=this.getId(e);if(this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e))),E(e)){var r=x.shadowRoot(e);r&&this.removeNodeFromMap(r),"IFRAME"===e.nodeName&&e.contentDocument&&this.removeNodeFromMap(e.contentDocument)}}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function L(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,s=e.type,i=e.value,o=e.maskInputFn,a=i||"",l=s&&F(s);return(r[n.toLowerCase()]||l&&r[l])&&(a=o?o(a,t):"*".repeat(a.length)),a}function F(e){return e.toLowerCase()}var P="__rrweb_original__";function B(e){try{var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?F(t):null}catch(e){return null}}var j=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,H=/^(?:[a-z+]+:)?\/\//i,W=/^www\..*/i,z=/^(data:)([^,]*),(.*)/i;function U(e,t){return(e||"").replace(j,((e,r,n,s,i,o)=>{var a,l=n||i||o,u=r||s||"";if(!l)return e;if(H.test(l)||W.test(l))return"url("+u+l+u+")";if(z.test(l))return"url("+u+l+u+")";if("/"===l[0])return"url("+u+(((a=t).indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+l)+u+")";var c=t.split("/"),d=l.split("/");for(var h of(c.pop(),d))"."!==h&&(".."===h?c.pop():c.push(h));return"url("+u+c.join("/")+u+")"}))}var G,J,V="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzPgogICAgPHBhdHRlcm4gaWQ9InN0cmlwZXMiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+CiAgICAgIDxyZWN0IHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iYmxhY2siLz4KICAgICAgPHBhdGggZD0iTTggMEgxNkwwIDE2VjhMOCAwWiIgZmlsbD0iIzJEMkQyRCIvPgogICAgICA8cGF0aCBkPSJNMTYgOFYxNkg4TDE2IDhaIiBmaWxsPSIjMkQyRDJEIi8+CiAgICA8L3BhdHRlcm4+CiAgPC9kZWZzPgogIDxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjc3RyaXBlcykiLz4KPC9zdmc+Cg==",K=4096,Y=1,q=new RegExp("[^a-z0-9-_:]"),Z=-2;function Q(){return Y++}var X=/^[^ \t\n\r\u000c]+/,_=/^[, \t\n\r\u000c]+/,$=new WeakMap;function ee(e,t){return t&&""!==t.trim()?te(e,t):t}function te(e,t){var r=$.get(e);if(r||(r=e.createElement("a"),$.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function re(e,t){return null!=t&&t.maxBase64ImageLength?function(e,t){return!t||e.length<=t?e:V}(e,t.maxBase64ImageLength):e}function ne(e,t,r,n,s,i){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])){if("link"===t&&s){var o,a=null==(o=s.sheet)?void 0:o.href;if(a)return a}var l=ee(e,n);if(l.startsWith("data:")){if("img"===t&&s){var u=l;return(null!=i&&i.type||void 0!==(null==i?void 0:i.quality))&&(u=function(e,t,r,n){if(!e.complete||0===e.naturalWidth)return t;if(e.naturalWidth>K||e.naturalHeight>K)return t;try{var s=document.createElement("canvas");s.width=e.naturalWidth,s.height=e.naturalHeight;var i=s.getContext("2d");return i?(i.drawImage(e,0,0),s.toDataURL(r||"image/webp",null!=n?n:.4)):t}catch(e){return t}}(s,l,i.type,i.quality)),re(u,i)}if("image"===t)return re(l,i)}return l}if("xlink:href"===r&&"#"!==n[0]){var c=ee(e,n);return"image"===t&&c.startsWith("data:")?re(c,i):c}return"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,s=e.exec(t.substring(r));return s?(n=s[0],r+=n.length,n):""}for(var s=[];n(_),!(r>=t.length);){var i=n(X);if(","===i.slice(-1))i=ee(e,i.substring(0,i.length-1)),s.push(i);else{var o="";i=ee(e,i);for(var a=!1;;){var l=t.charAt(r);if(""===l){s.push((i+o).trim());break}if(a)")"===l&&(a=!1);else{if(","===l){r+=1,s.push((i+o).trim());break}"("===l&&(a=!0)}o+=l,r+=1}}}return s.join(", ")}(e,n):"style"===r?U(n,te(e)):"object"===t&&"data"===r?ee(e,n):n:ee(e,n)}function se(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function ie(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&ie(x.parentNode(e),t,r);for(var n=e.classList.length;n--;){var s=e.classList[n];if(t.test(s))return!0}return!!r&&ie(x.parentNode(e),t,r)}function oe(e,t,r,n){var s;if(E(e)){if(s=e,!x.childNodes(s).length&&!x.shadowRoot(s))return!1}else if(!(s=x.parentElement(e))){var i=x.parentNode(e);i&&R(i)&&(s=x.host(i))}try{for(;s;){if("string"==typeof t){if(n?s.closest("."+t):s.classList.contains(t))return!0}else if(ie(s,t,n))return!0;if(r&&(n?s.closest(r):s.matches(r)))return!0;if(!n)return!1;var o=x.getRootNode(s);s=R(o)?x.host(o):null}}catch(e){}return!1}function ae(e,t,r){var n=e.removeEventListener;"function"==typeof n&&n.call(e,t,r)}var le=new Map;function ue(){var e=!1;for(var t of[...le.values()].reverse())try{t.abort()}catch(t){e=!0}if(e){var r=new Error("Recorder stylesheet cleanup incomplete");throw r.name="RecorderCleanupError",r}}function ce(e,t){return Array.from(e.styleSheets).find((e=>e.href===t))}function de(e){return null==e?"":e.toLowerCase()}var he=50,pe=!1;function fe(e,t){var r=t.doc,n=t.mirror,s=t.blockClass,i=t.blockSelector,o=t.maskTextClass,a=t.maskTextSelector,l=t.skipChild,u=void 0!==l&&l,c=t.inlineStylesheet,d=void 0===c||c,h=t.maskInputOptions,p=void 0===h?{}:h,f=t.maskTextFn,v=t.maskInputFn,g=t.slimDOMOptions,y=t.dataURLOptions,w=void 0===y?{}:y,b=t.inlineImages,S=void 0!==b&&b,C=t.recordCanvas,I=void 0!==C&&C,M=t.canvasMaskingConfigured,k=t.onSerialize,O=t.onIframeLoad,D=t.iframeLoadTimeout,T=void 0===D?5e3:D,j=t.onIframeListenerRegistered,H=t.onStylesheetLoad,W=t.stylesheetLoadTimeout,z=void 0===W?5e3:W,V=t.keepIframeSrcFn,K=void 0===V?()=>!1:V,Y=t.newlyAddedElement,X=void 0!==Y&&Y,_=t.depth,$=void 0===_?0:_,ee=t.maxDepth,re=void 0===ee?he:ee,ie=t.needsMask,ue=t.preserveWhiteSpace,me=void 0===ue||ue;if($>=re)return pe||(pe=!0,console.warn("[rrweb-snapshot] DOM tree depth exceeded max depth of "+re+". Children beyond this depth will not be recorded. This may indicate deeply nested DOM structures.")),null;ie||(ie=oe(e,o,a,void 0===ie));var ve,ge=function(e,t){var r=t.doc,n=t.mirror,s=t.blockClass,i=t.blockSelector,o=t.needsMask,a=t.inlineStylesheet,l=t.maskInputOptions,u=void 0===l?{}:l,c=t.maskTextFn,d=t.maskInputFn,h=t.dataURLOptions,p=void 0===h?{}:h,f=t.inlineImages,v=t.recordCanvas,g=t.canvasMaskingConfigured,y=t.keepIframeSrcFn,w=t.newlyAddedElement,b=void 0!==w&&w,S=function(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:m.Document,childNodes:[],compatMode:e.compatMode}:{type:m.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:m.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,s=t.inlineStylesheet,i=t.maskInputOptions,o=void 0===i?{}:i,a=t.maskInputFn,l=t.dataURLOptions,u=void 0===l?{}:l,c=t.inlineImages,d=t.recordCanvas,h=t.canvasMaskingConfigured,p=t.keepIframeSrcFn,f=t.newlyAddedElement,v=void 0!==f&&f,g=t.rootId,y=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var s=e.classList[n];if(t.test(s))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,t.blockClass,t.blockSelector),w=function(e){if(e instanceof HTMLFormElement)return"form";var t=F(e.tagName);return q.test(t)?"div":t}(e),b={},S=e.attributes.length,C=0;C<S;C++){var I=e.attributes[C];se(w,I.name,I.value)||(b[I.name]=ne(n,w,F(I.name),I.value,e,u))}if("link"===w&&s){var M=e.sheet;if(!M){var k=function(e){return e.href}(e);k&&!(M=ce(n,k))&&k.includes(".css")&&(M=ce(n,window.location.origin+"/"+k.replace(window.location.href,"")))}var O=null;M&&(O=A(M)),O&&(delete b.rel,delete b.href,b._cssText=O)}if("style"===w&&e.sheet&&!(e.innerText||x.textContent(e)||"").trim().length){var E=A(e.sheet);E&&(b._cssText=E)}if("input"===w||"textarea"===w||"select"===w){var R=e.value,N=e.checked;"radio"!==b.type&&"checkbox"!==b.type&&"submit"!==b.type&&"button"!==b.type&&R?b.value=L({element:e,type:B(e),tagName:w,value:R,maskInputOptions:o,maskInputFn:a}):N&&(b.checked=N)}if("option"===w&&(e.selected&&!o.select?b.selected=!0:delete b.selected),"dialog"===w&&e.open)try{b.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"}catch(e){b.rr_open_mode="modal",b.ph_rr_could_not_detect_modal=!0}if("canvas"===w&&d&&(null==h||!h()))if("2d"===e.__context)(function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var s=t.getImageData,i=P in s?s[P]:s;if(new Uint32Array(i.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(b.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){var D=e.toDataURL(u.type,u.quality),T=n.createElement("canvas");T.width=e.width,T.height=e.height,D!==T.toDataURL(u.type,u.quality)&&(b.rr_dataURL=D)}if("img"===w&&c){G||(G=n.createElement("canvas"),J=G.getContext("2d"));var j=e,H=j.currentSrc||j.getAttribute("src")||"<unknown-src>",W=j.crossOrigin,z=()=>{ae(j,"load",z);try{G.width=j.naturalWidth,G.height=j.naturalHeight,J.drawImage(j,0,0),b.rr_dataURL=G.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==j.crossOrigin)return j.crossOrigin="anonymous",void(j.complete&&0!==j.naturalWidth?z():j.addEventListener("load",z));console.warn("Cannot inline img src="+H+"! Error: "+e)}"anonymous"===j.crossOrigin&&(W?b.crossOrigin=W:j.removeAttribute("crossorigin"))};j.complete&&0!==j.naturalWidth?z():j.addEventListener("load",z)}if("audio"===w||"video"===w){var U=b;U.rr_mediaState=e.paused?"paused":"played",U.rr_mediaCurrentTime=e.currentTime,U.rr_mediaPlaybackRate=e.playbackRate,U.rr_mediaMuted=e.muted,U.rr_mediaLoop=e.loop,U.rr_mediaVolume=e.volume}if(v||(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),y){var V,K,Y,Z=e.getBoundingClientRect(),Q=Z.width,X=Z.height,_=Z.left,$=Z.top,ee=null==(V=n.defaultView)?void 0:V.getComputedStyle(e);b={class:b.class,rr_width:Q+"px",rr_height:X+"px",rr_left:Math.floor(_+((null==(K=n.defaultView)?void 0:K.scrollX)||0))+"px",rr_top:Math.floor($+((null==(Y=n.defaultView)?void 0:Y.scrollY)||0))+"px"},ee&&(b.rr_position=ee.position||"static",ee.transform&&"none"!==ee.transform&&(b.rr_transform=ee.transform),ee.display&&ee.display.startsWith("inline")&&(b.rr_display=ee.display))}"iframe"!==w||p(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(w)&&(r=!0)}catch(e){}return{type:m.Element,tagName:w,attributes:b,childNodes:[],isSVG:(te=e,Boolean("svg"===te.tagName||te.ownerSVGElement)||void 0),needBlock:y,rootId:g,isCustom:r};var te}(e,{doc:r,blockClass:s,blockSelector:i,inlineStylesheet:a,maskInputOptions:u,maskInputFn:d,dataURLOptions:p,inlineImages:f,recordCanvas:v,canvasMaskingConfigured:g,keepIframeSrcFn:y,newlyAddedElement:b,rootId:S});case e.TEXT_NODE:return function(e,t){var r=t.needsMask,n=t.maskTextFn,s=t.rootId,i=x.parentNode(e),o=i&&i.tagName,a=x.textContent(e),l="STYLE"===o||void 0,u="SCRIPT"===o||void 0;if(l&&a){try{var c;if(e.nextSibling||e.previousSibling);else if(null!=(c=i.sheet)&&c.cssRules){var d=A(i.sheet);d&&!/(?:^|[\s;{}])-?[a-zA-Z][\w-]*\s*:\s*;/.test(d)&&(a=d)}}catch(t){console.warn("Cannot get CSS styles from text's parentNode. Error: "+t,e)}a=U(a,te(t.doc))}return u&&(a="SCRIPT_PLACEHOLDER"),!l&&!u&&a&&r&&(a=n?n(a,x.parentElement(e)):a.replace(/[\S]/g,"*")),{type:m.Text,textContent:a||"",isStyle:l,rootId:s}}(e,{doc:r,needsMask:o,maskTextFn:c,rootId:S});case e.CDATA_SECTION_NODE:return{type:m.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return{type:m.Comment,textContent:x.textContent(e)||"",rootId:S};default:return!1}}(e,{doc:r,mirror:n,blockClass:s,blockSelector:i,needsMask:ie,inlineStylesheet:d,maskInputOptions:p,maskTextFn:f,maskInputFn:v,dataURLOptions:w,inlineImages:S,recordCanvas:I,canvasMaskingConfigured:M,keepIframeSrcFn:K,newlyAddedElement:X});if(!ge)return console.warn(e,"not serialized"),null;ve=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===m.Comment)return!0;if(e.type===m.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===function(e,t){var r,n;try{n=new URL(e,window.location.href)}catch(e){return null}var s=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(r=null==s?void 0:s[1])?r:null}(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(de(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===de(e.attributes.name)||["icon","apple-touch-icon","shortcut icon"].includes(de(e.attributes.rel)))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&de(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(de(e.attributes.property).match(/^(og|twitter|fb):/)||de(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===de(e.attributes.name)))return!0;if(t.headMetaRobots&&["robots","googlebot","bingbot"].includes(de(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&(["author","generator","framework","publisher","progid"].includes(de(e.attributes.name))||de(e.attributes.property).match(/^article:/)||de(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&["google-site-verification","yandex-verification","csrf-token","p:domain_verify","verify-v1","verification","shopify-checkout-api-token"].includes(de(e.attributes.name)))return!0}}return!1}(ge,g)||!me&&ge.type===m.Text&&!ge.isStyle&&!ge.textContent.replace(/^\s+|\s+$/gm,"").length?Z:Q();var ye=Object.assign(ge,{id:ve});if(n.add(e,ye),ve===Z)return null;k&&k(e);var we=!u;if(ye.type===m.Element){we=we&&!ye.needBlock,delete ye.needBlock;var be=x.shadowRoot(e);be&&N(be)&&(ye.isShadowHost=!0)}if((ye.type===m.Document||ye.type===m.Element)&&we){g.headWhitespace&&ye.type===m.Element&&"head"===ye.tagName&&(me=!1);var Se={doc:r,mirror:n,blockClass:s,blockSelector:i,needsMask:ie,maskTextClass:o,maskTextSelector:a,skipChild:u,inlineStylesheet:d,maskInputOptions:p,maskTextFn:f,maskInputFn:v,slimDOMOptions:g,dataURLOptions:w,inlineImages:S,recordCanvas:I,canvasMaskingConfigured:M,preserveWhiteSpace:me,onSerialize:k,onIframeLoad:O,iframeLoadTimeout:T,onIframeListenerRegistered:j,onStylesheetLoad:H,stylesheetLoadTimeout:z,keepIframeSrcFn:K,depth:$+1,maxDepth:re};if(ye.type===m.Element&&"textarea"===ye.tagName&&void 0!==ye.attributes.value);else for(var Ce of Array.from(x.childNodes(e))){var Ie=fe(Ce,Se);Ie&&ye.childNodes.push(Ie)}var Me=null;if(E(e)&&(Me=x.shadowRoot(e)))for(var ke of Array.from(x.childNodes(Me))){var Oe=fe(ke,Se);Oe&&(N(Me)&&(Oe.isShadow=!0),ye.childNodes.push(Oe))}}var xe=x.parentNode(e);if(xe&&R(xe)&&N(xe)&&(ye.isShadow=!0),ye.type===m.Element&&"iframe"===ye.tagName){var Ee=function(e,t,r){var n,s=()=>{},i=e.contentWindow;if(!i)return s;try{n=i.document.readyState}catch(e){return s}var o=()=>t();if("complete"!==n){var a=!1,l=null,u=()=>{a||(a=!0,null!==l&&(clearTimeout(l),l=null),ae(e,"load",c),e.addEventListener("load",o),t())},c=()=>u();return l=setTimeout(u,r),e.addEventListener("load",c),()=>{null!==l&&(clearTimeout(l),l=null),a?ae(e,"load",o):(a=!0,ae(e,"load",c))}}var d,h="about:blank";try{d=i.location.href}catch(e){return s}if(d!==h||e.src===h||""===e.src){var p=setTimeout(t,0);return e.addEventListener("load",o),()=>{clearTimeout(p),ae(e,"load",o)}}return e.addEventListener("load",o),()=>{ae(e,"load",o)}}(e,(()=>{var t=e.contentDocument;if(t&&O){var r=fe(t,{doc:t,mirror:n,blockClass:s,blockSelector:i,needsMask:ie,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:d,maskInputOptions:p,maskTextFn:f,maskInputFn:v,slimDOMOptions:g,dataURLOptions:w,inlineImages:S,recordCanvas:I,canvasMaskingConfigured:M,preserveWhiteSpace:me,onSerialize:k,onIframeLoad:O,iframeLoadTimeout:T,onIframeListenerRegistered:j,onStylesheetLoad:H,stylesheetLoadTimeout:z,keepIframeSrcFn:K,depth:$+1,maxDepth:re});r&&O(e,r)}}),T);null==j||j(e,Ee)}return ye.type===m.Element&&"link"===ye.tagName&&"stylesheet"===ye.attributes.rel&&function(t,l,u){if(!le.has(t)){var c;try{c=t.sheet}catch(e){return}if(!c){var h,m=!1,y=!1,b=!1,C=!1,x={abort(){if(m=!0,void 0!==h){var e=h;h=void 0;try{clearTimeout(e)}catch(e){b=!0}}if(C){C=!1;try{t.removeEventListener("load",E)}catch(e){b=!0}}if(b||le.get(t)!==x||le.delete(t),b){var r=new Error("Recorder stylesheet cleanup incomplete");throw r.name="RecorderCleanupError",r}}},E=()=>{if(!m&&!y){y=!0;try{(()=>{if(H){var t=fe(e,{doc:r,mirror:n,blockClass:s,blockSelector:i,needsMask:ie,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:d,maskInputOptions:p,maskTextFn:f,maskInputFn:v,slimDOMOptions:g,dataURLOptions:w,inlineImages:S,recordCanvas:I,canvasMaskingConfigured:M,preserveWhiteSpace:me,onSerialize:k,onIframeLoad:O,iframeLoadTimeout:T,onStylesheetLoad:H,stylesheetLoadTimeout:z,keepIframeSrcFn:K,depth:$,maxDepth:re});t&&H(e,t)}})()}finally{x.abort()}}};le.set(t,x);try{h=setTimeout(E,u),C=!0,t.addEventListener("load",E,{once:!0})}catch(e){throw x.abort(),e}}}}(e,0,z),ye}function me(e){return!0===e||"all"===e?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===e,headMetaDescKeywords:"all"===e,headTitleMutations:"all"===e}:!1===e?{}:e}function ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ge(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var ye,we={exports:{}};function be(){if(ye)return we.exports;ye=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return we.exports=t(),we.exports.createColors=t,we.exports}var Se,Ce,Ie,Me,ke,Oe,xe=ge(Object.freeze({__proto__:null,default:{}}));function Ee(){if(Ce)return Se;Ce=1;var e=be(),t=xe;class r extends Error{constructor(e,t,n,s,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),s&&(this.source=s),o&&(this.plugin=o),void 0!==t&&void 0!==n&&("number"==typeof t?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(r){if(!this.source)return"";var n=this.source;null==r&&(r=e.isColorSupported);var s=e=>e,i=e=>e,o=e=>e;if(r){var a=e.createColors(!0),l=a.bold,u=a.gray,c=a.red;i=e=>l(c(e)),s=e=>u(e),t&&(o=e=>t(e))}var d=n.split(/\r?\n/),h=Math.max(this.line-3,0),p=Math.min(this.line+2,d.length),f=String(p).length;return d.slice(h,p).map(((e,t)=>{var r=h+1+t,n=" "+(" "+r).slice(-f)+" | ";if(r===this.line){if(e.length>160){var a=Math.max(0,this.column-20),l=Math.max(this.column+20,this.endColumn+20),u=e.slice(a,l),c=s(n.replace(/\d/g," "))+e.slice(0,Math.min(this.column-1,19)).replace(/[^\t]/g," ");return i(">")+s(n)+o(u)+"\n "+c+i("^")}var d=s(n.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+s(n)+o(e)+"\n "+d+i("^")}return" "+s(n)+o(e)})).join("\n")}toString(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}return Se=r,r.default=r,Se}function Re(){if(Me)return Ie;Me=1;var e=/(<)(\/?style\b)/gi,t=/(<)(!--)/g;function r(r){return"string"!=typeof r?r:r.includes("<")?r.replace(e,"\\3c $2").replace(t,"\\3c $2"):r}var n={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class s{constructor(e){this.builder=e}atrule(e,t){var n=e.raws,s="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(void 0!==n.afterName?s+=n.afterName:i&&(s+=" "),e.nodes)this.block(e,s+i);else{var o=(n.between||"")+(t?";":"");this.builder(r(s+i+o),e)}}beforeAfter(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,s=0;n&&"root"!==n.type;)s+=1,n=n.parent;if(r.includes("\n")){var i=this.raw(e,null,"indent");if(i.length)for(var o=0;o<s;o++)r+=i}return r}block(e,t){var n,s=this.raw(e,"between","beforeOpen");this.builder(r(t+s)+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(r(n)),this.builder("}",e,"end")}body(e){for(var t=e.nodes,n=t.length-1;n>0&&"comment"===t[n].type;)n-=1;for(var s=this.raw(e,"semicolon"),i="document"===e.type,o=0;o<t.length;o++){var a=t[o],l=this.raw(a,"before");l&&this.builder(i?l:r(l)),this.stringify(a,n!==o||s)}}comment(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder(r("/*"+t+e.text+n+"*/"),e)}decl(e,t){var n=e.raws,s=this.raw(e,"between","colon"),i=e.prop+s+this.rawValue(e,"value");e.important&&(i+=n.important||" !important"),t&&(i+=";"),this.builder(r(i),e)}document(e){this.body(e)}raw(e,t,r){var s;if(r||(r=t),t&&void 0!==(s=e.raws[t]))return s;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return n[r];var o=e.root(),a=o.rawCache||(o.rawCache={});if(void 0!==a[r])return a[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var l,u="raw"+((l=r)[0].toUpperCase()+l.slice(1));return this[u]?s=this[u](o,e):o.walk((e=>{if(void 0!==(s=e.raws[t]))return!1})),void 0===s&&(s=n[r]),a[r]=s,s}rawBeforeClose(e){var t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){var r;return e.walkComments((e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){var r;return e.walkDecls((e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){var t;return e.walk((e=>{if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1})),t}rawBeforeRule(e){var t;return e.walk((r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){var t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}rawEmptyBody(e){var t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t}rawIndent(e){return e.raws.indent?e.raws.indent:(e.walk((r=>{var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var s=r.raws.before.split("\n");return t=(t=s[s.length-1]).replace(/\S/g,""),!1}})),t);var t}rawSemicolon(e){var t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t}rawValue(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}root(e){if(this.body(e),e.raws.after){var t=e.raws.after,n=e.parent&&"document"===e.parent.type;this.builder(n?t:r(t))}}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(r(e.raws.ownSemicolon),e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}return Ie=s,s.default=s,Ie}function Ne(){if(Oe)return ke;Oe=1;var e=Re();function t(t,r){new e(r).stringify(t)}return ke=t,t.default=t,ke}var Ae,De,Te,Le,Fe,Pe,Be,je,He,We,ze,Ue,Ge,Je,Ve,Ke,Ye,qe,Ze,Qe,Xe,_e,$e,et,tt,rt={};function nt(){return Ae||(Ae=1,rt.isClean=Symbol("isClean"),rt.my=Symbol("my")),rt}function st(){if(Te)return De;Te=1;var e=Ee(),t=Re(),r=Ne(),n=nt(),s=n.isClean,i=n.my;function o(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var s=e[n],i=typeof s;"parent"===n&&"object"===i?t&&(r[n]=t):"source"===n?r[n]=s:Array.isArray(s)?r[n]=s.map((e=>o(e,r))):("object"===i&&null!==s&&(s=o(s)),r[n]=s)}return r}function a(e,t){if(t&&void 0!==t.offset)return t.offset;for(var r=1,n=1,s=0,i=0;i<e.length;i++){if(n===t.line&&r===t.column){s=i;break}"\n"===e[i]?(r=1,n+=1):r+=1}return s}class l{get proxyOf(){return this}constructor(e){for(var t in void 0===e&&(e={}),this.raws={},this[s]=!1,this[i]=!0,e)if("nodes"===t)for(var r of(this.nodes=[],e[t]))"function"==typeof r.clone&&r.parent?this.append(r.clone()):this.append(r);else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e){void 0===e&&(e={});var t=o(this);for(var r in e)t[r]=e[r];return t}cloneAfter(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t}error(t,r){if(void 0===r&&(r={}),this.source){var n=this.rangeBy(r),s=n.end,i=n.start;return this.source.input.error(t,{column:i.column,line:i.line},{column:s.column,line:s.line},r)}return new e(t)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markClean(){this[s]=!0}markDirty(){if(this[s]){this[s]=!1;for(var e=this;e=e.parent;)e[s]=!1}}next(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}}positionBy(e){void 0===e&&(e={});var t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:a(t,this.source.start)};if(e.index)r=this.positionInside(e.index);else if(e.word){var n=t.slice(a(t,this.source.start),a(t,this.source.end)).indexOf(e.word);-1!==n&&(r=this.positionInside(n))}return r}positionInside(e){for(var t=this.source.start.column,r=this.source.start.line,n=("document"in this.source.input?this.source.input.document:this.source.input.css),s=a(n,this.source.start),i=s+e,o=s;o<i;o++)"\n"===n[o]?(t=1,r+=1):t+=1;return{column:t,line:r,offset:i}}prev(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}}rangeBy(e){void 0===e&&(e={});var t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:a(t,this.source.start)},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:"number"==typeof this.source.end.offset?this.source.end.offset:a(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){var s=t.slice(a(t,this.source.start),a(t,this.source.end)).indexOf(e.word);-1!==s&&(r=this.positionInside(s),n=this.positionInside(s+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:a(t,e.start)}:"number"==typeof e.index&&(r=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line,offset:a(t,e.end)}:"number"==typeof e.endIndex?n=this.positionInside(e.endIndex):"number"==typeof e.index&&(n=this.positionInside(e.index+1));return(n.line<r.line||n.line===r.line&&n.column<=r.column)&&(n={column:r.column+1,line:r.line,offset:r.offset+1}),{end:n,start:r}}raw(e,r){return(new t).raw(this,e,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(){if(this.parent){for(var e=this,t=!1,r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];for(var i of n)i===this?t=!0:t?(this.parent.insertAfter(e,i),e=i):this.parent.insertBefore(e,i);t||this.remove()}return this}root(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){var r={},n=null==t;t=t||new Map;var s=0;for(var i in this)if(Object.prototype.hasOwnProperty.call(this,i)&&"parent"!==i&&"proxyCache"!==i){var o=this[i];if(Array.isArray(o))r[i]=o.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof o&&o.toJSON)r[i]=o.toJSON(null,t);else if("source"===i){if(null==o)continue;var a=t.get(o.input);null==a&&(a=s,t.set(o.input,s),s++),r[i]={end:o.end,inputId:a,start:o.start}}else r[i]=o}return n&&(r.inputs=[...t.keys()].map((e=>e.toJSON()))),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e){void 0===e&&(e=r),e.stringify&&(e=e.stringify);var t="";return e(this,(e=>{t+=e})),t}warn(e,t,r){void 0===r&&(r={});var n={node:this};for(var s in r)n[s]=r[s];return e.warn(t,n)}}return De=l,l.default=l,De}function it(){if(Fe)return Le;Fe=1;var e=st();class t extends e{constructor(e){super(e),this.type="comment"}}return Le=t,t.default=t,Le}function ot(){if(Be)return Pe;Be=1;var e=st();class t extends e{get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e=n({},e,{value:String(e.value)})),super(e),this.type="decl"}}return Pe=t,t.default=t,Pe}function at(){if(He)return je;He=1;var e,t,r,n,s=it(),i=ot(),o=st(),a=nt(),l=a.isClean,u=a.my;function c(e){return e.map((e=>(e.nodes&&(e.nodes=c(e.nodes)),delete e.source,e)))}function d(e){if(e[l]=!1,e.proxyOf.nodes)for(var t of e.proxyOf.nodes)d(t)}class h extends o{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n of t){var s=this.normalize(n,this.last);for(var i of s)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(var t of this.nodes)t.cleanRaws(e)}each(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return e[t](...n.map((e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e)))}:"every"===t||"some"===t?r=>e[t]((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];return r(e.toProxy(),...n)})):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){var r,n=this.index(e),s=this.normalize(t,this.proxyOf.nodes[n]).reverse();for(var i of(n=this.index(e),s))this.proxyOf.nodes.splice(n+1,0,i);for(var o in this.indexes)n<(r=this.indexes[o])&&(this.indexes[o]=r+s.length);return this.markDirty(),this}insertBefore(e,t){var r,n=this.index(e),s=0===n&&"prepend",i=this.normalize(t,this.proxyOf.nodes[n],s).reverse();for(var o of(n=this.index(e),i))this.proxyOf.nodes.splice(n,0,o);for(var a in this.indexes)n<=(r=this.indexes[a])&&(this.indexes[a]=r+i.length);return this.markDirty(),this}normalize(r,o){if("string"==typeof r)r=c(t(r).nodes);else if(void 0===r)r=[];else if(Array.isArray(r))for(var a of r=r.slice(0))a.parent&&a.parent.removeChild(a,"ignore");else if("root"===r.type&&"document"!==this.type)for(var p of r=r.nodes.slice(0))p.parent&&p.parent.removeChild(p,"ignore");else if(r.type)r=[r];else if(r.prop){if(void 0===r.value)throw new Error("Value field is missed in node creation");"string"!=typeof r.value&&(r.value=String(r.value)),r=[new i(r)]}else if(r.selector||r.selectors)r=[new n(r)];else if(r.name)r=[new e(r)];else{if(!r.text)throw new Error("Unknown node type in node creation");r=[new s(r)]}var f=r.map((e=>(e[u]||h.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[l]&&d(e),e.raws||(e.raws={}),void 0===e.raws.before&&o&&void 0!==o.raws.before&&(e.raws.before=o.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)));return f}prepend(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n of t=t.reverse()){var s=this.normalize(n,this.first,"prepend").reverse();for(var i of s)this.proxyOf.nodes.unshift(i);for(var o in this.indexes)this.indexes[o]=this.indexes[o]+s.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(var e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls((n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,r)=>{var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk(((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("atrule"===e.type)return t(e,r)})))}walkComments(e){return this.walk(((t,r)=>{if("comment"===t.type)return e(t,r)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk(((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("decl"===e.type)return t(e,r)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk(((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("rule"===e.type)return t(e,r)})))}}return h.registerParse=e=>{t=e},h.registerRule=e=>{n=e},h.registerAtRule=t=>{e=t},h.registerRoot=e=>{r=e},je=h,h.default=h,h.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,e.prototype):"rule"===t.type?Object.setPrototypeOf(t,n.prototype):"decl"===t.type?Object.setPrototypeOf(t,i.prototype):"comment"===t.type?Object.setPrototypeOf(t,s.prototype):"root"===t.type&&Object.setPrototypeOf(t,r.prototype),t[u]=!0,t.nodes&&t.nodes.forEach((e=>{h.rebuild(e)}))},je}function lt(){if(ze)return We;ze=1;var e=at();class t extends e{constructor(e){super(e),this.type="atrule"}append(){return this.proxyOf.nodes||(this.nodes=[]),super.append(...arguments)}prepend(){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...arguments)}}return We=t,t.default=t,e.registerAtRule(t),We}function ut(){if(Ge)return Ue;Ge=1;var e,t,r=at();class s extends r{constructor(e){super(n({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(r){return void 0===r&&(r={}),new e(new t,this,r).stringify()}}return s.registerLazyResult=t=>{e=t},s.registerProcessor=e=>{t=e},Ue=s,s.default=s,Ue}function ct(){return Ve||(Ve=1,Je={nanoid:function(e){void 0===e&&(e=21);for(var t="",r=0|e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:function(e,t){return void 0===t&&(t=21),function(r){void 0===r&&(r=t);for(var n="",s=0|r;s--;)n+=e[Math.random()*e.length|0];return n}}}),Je}function dt(){if(Ye)return Ke;Ye=1;var e=xe.existsSync,t=xe.readFileSync,r=xe.dirname,n=xe.join,s=xe.SourceMapConsumer,i=xe.SourceMapGenerator;class o{constructor(e,t){if(!1!==t.map){t.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var n=t.map?t.map.prev:void 0,s=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=r(this.mapFile)),s&&(this.text=s)}}consumer(){return this.consumerCache||(this.consumerCache=new s(this.json||this.text)),this.consumerCache}decodeInline(e){var t=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(t)return decodeURIComponent(e.substr(t[0].length));var r,n=e.match(/^data:application\/json;charset=utf-?8;base64,/)||e.match(/^data:application\/json;base64,/);if(n)return r=e.substr(n[0].length),Buffer?Buffer.from(r,"base64").toString():window.atob(r);var s=e.slice(22);throw s=s.slice(0,s.indexOf(",")),new Error("Unsupported source map encoding "+s)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){var t=e.match(/\/\*\s*# sourceMappingURL=/g);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}}loadFile(n,s,i){if(i||this.unsafeMap||/\.map$/i.test(n))return this.root=r(n),e(n)?(this.mapFile=n,t(n,"utf-8").toString().trim()):void 0}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof s)return i.fromSourceMap(t).toString();if(t instanceof i)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var o=t(e);if(o){var a=this.loadFile(o,e,!0);if(!a)throw new Error("Unable to load previous source map: "+o.toString());return a}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var l=this.annotation;e&&(l=n(r(e),l));var u=this.loadFile(l,e,!1);if(u)try{this.json=JSON.parse(u.replace(/^\)]}'[^\n]*\n/,""))}catch(e){return}return u}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Ke=o,o.default=o,Ke}function ht(){if(Ze)return qe;Ze=1;var e=ct().nanoid,t=xe.isAbsolute,r=xe.resolve,s=xe.SourceMapConsumer,i=xe.SourceMapGenerator,o=xe.fileURLToPath,a=xe.pathToFileURL,l=Ee(),u=dt(),c=xe,d=Symbol("lineToIndexCache"),h=Boolean(s&&i),p=Boolean(r&&t);function f(e){if(e[d])return e[d];for(var t=e.css.split("\n"),r=new Array(t.length),n=0,s=0,i=t.length;s<i;s++)r[s]=n,n+=t[s].length+1;return e[d]=r,r}class m{get from(){return this.file||this.id}constructor(n,s){if(void 0===s&&(s={}),null==n||"object"==typeof n&&!n.toString)throw new Error("PostCSS received "+n+" instead of CSS string");if(this.css=n.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,s.document&&(this.document=s.document.toString()),s.from&&(!p||/^\w+:\/\//.test(s.from)||t(s.from)?this.file=s.from:this.file=r(s.from)),p&&h){var i=new u(this.css,s);if(i.text){this.map=i;var o=i.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n){var s,i,o,u,c;if(void 0===n&&(n={}),t&&"object"==typeof t){var d=t,h=r;if("number"==typeof d.offset){u=d.offset;var p=this.fromOffset(u);t=p.line,r=p.col}else t=d.line,r=d.column,u=this.fromLineAndColumn(t,r);if("number"==typeof h.offset){o=h.offset;var f=this.fromOffset(o);i=f.line,s=f.col}else i=h.line,s=h.column,o=this.fromLineAndColumn(h.line,h.column)}else if(r)u=this.fromLineAndColumn(t,r);else{u=t;var m=this.fromOffset(u);t=m.line,r=m.col}var v=this.origin(t,r,i,s);return(c=v?new l(e,void 0===v.endLine?v.line:{column:v.column,line:v.line},void 0===v.endLine?v.column:{column:v.endColumn,line:v.endLine},v.source,v.file,n.plugin):new l(e,void 0===i?t:{column:r,line:t},void 0===i?r:{column:s,line:i},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:i,endOffset:o,line:t,offset:u,source:this.css},this.file&&(a&&(c.input.url=a(this.file).toString()),c.input.file=this.file),c}fromLineAndColumn(e,t){return f(this)[e-1]+t-1}fromOffset(e){var t=f(this),r=0;if(e>=t[t.length-1])r=t.length-1;else for(var n,s=t.length-2;r<s;)if(e<t[n=r+(s-r>>1)])s=n-1;else{if(!(e>=t[n+1])){r=n;break}r=n+1}return{col:e-t[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:r(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,n,s){if(!this.map)return!1;var i,l,u=this.map.consumer(),c=u.originalPositionFor({column:r-1,line:e});if(!c.source)return!1;"number"==typeof n&&(i=u.originalPositionFor({column:s-1,line:n})),l=t(c.source)?a(c.source):new URL(c.source,this.map.consumer().sourceRoot||a(this.map.mapFile));var d={column:c.column+1,endColumn:i&&i.column+1,endLine:i&&i.line,line:c.line,url:l.toString()};if("file:"===l.protocol){if(!o)throw new Error("file: protocol is not available in this PostCSS build");d.file=o(l)}var h=u.sourceContentFor(c.source);return h&&(d.source=h),d}toJSON(){var e={};for(var t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map=n({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}return qe=m,m.default=m,c&&c.registerInput&&c.registerInput(m),qe}function pt(){if(Xe)return Qe;Xe=1;var e,t,r=at();class n extends r{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){var n=super.normalize(e);if(t)if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(var s of n)s.raws.before=t.raws.before;return n}removeChild(e,t){var r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(r){return void 0===r&&(r={}),new e(new t,this,r).stringify()}}return n.registerLazyResult=t=>{e=t},n.registerProcessor=e=>{t=e},Qe=n,n.default=n,r.registerRoot(n),Qe}function ft(){if($e)return _e;$e=1;var e={comma:t=>e.split(t,[","],!0),space:t=>e.split(t,[" ","\n","\t"]),split(e,t,r){var n=[],s="",i=!1,o=0,a=!1,l="",u=!1;for(var c of e)u?u=!1:"\\"===c?u=!0:a?c===l&&(a=!1):'"'===c||"'"===c?(a=!0,l=c):"("===c?o+=1:")"===c?o>0&&(o-=1):0===o&&t.includes(c)&&(i=!0),i?(""!==s&&n.push(s.trim()),s="",i=!1):s+=c;return(r||""!==s)&&n.push(s.trim()),n}};return _e=e,e.default=e,_e}function mt(){if(tt)return et;tt=1;var e=at(),t=ft();class r extends e{get selectors(){return t.comma(this.selector)}set selectors(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}}return et=r,r.default=r,e.registerRule(r),et}var vt,gt,yt,wt,bt,St,Ct,It,Mt,kt,Ot,xt,Et,Rt,Nt,At,Dt,Tt,Lt,Ft,Pt,Bt,jt,Ht,Wt,zt,Ut,Gt,Jt=["inputs"],Vt=["inputId"];function Kt(){if(wt)return yt;wt=1;var e=xe.dirname,t=xe.relative,r=xe.resolve,n=xe.sep,s=xe.SourceMapConsumer,i=xe.SourceMapGenerator,o=xe.pathToFileURL,a=ht(),l=Boolean(s&&i),u=Boolean(e&&r&&t&&n);return yt=class{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(var t of this.previous()){var r=this.toUrl(this.path(t.file)),n=t.root||e(t.file),i=void 0;!1===this.mapOpts.sourcesContent?(i=new s(t.text)).sourcesContent&&(i.sourcesContent=null):i=t.consumer(),this.map.applySourceMap(i,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t);else if(this.css)for(var r;-1!==(r=this.css.lastIndexOf("/*#"));){var n=this.css.indexOf("*/",r+3);if(-1===n)break;for(;r>0&&"\n"===this.css[r-1];)r--;this.css=this.css.slice(0,r)+this.css.slice(n+2)}}generate(){if(this.clearAnnotation(),u&&l&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(t=>{e+=t})),[e]}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=i.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new i({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new i({file:this.outputFile(),ignoreInvalidMapping:!0});var e,t,r=1,n=1,s="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((i,a,l)=>{if(this.css+=i,a&&"end"!==l&&(o.generated.line=r,o.generated.column=n-1,a.source&&a.source.start?(o.source=this.sourcePath(a),o.original.line=a.source.start.line,o.original.column=a.source.start.column-1,this.map.addMapping(o)):(o.source=s,o.original.line=1,o.original.column=0,this.map.addMapping(o))),(t=i.match(/\n/g))?(r+=t.length,e=i.lastIndexOf("\n"),n=i.length-e):n+=i.length,a&&"start"!==l){var u=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===u.last&&!u.raws.semicolon||(a.source&&a.source.end?(o.source=this.sourcePath(a),o.original.line=a.source.end.line,o.original.column=a.source.end.column-1,o.generated.line=r,o.generated.column=n-2,this.map.addMapping(o)):(o.source=s,o.original.line=1,o.original.column=0,o.generated.line=r,o.generated.column=n-1,this.map.addMapping(o)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(n){if(this.mapOpts.absolute)return n;if(60===n.charCodeAt(0))return n;if(/^\w+:\/\//.test(n))return n;var s=this.memoizedPaths.get(n);if(s)return s;var i=this.opts.to?e(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(i=e(r(i,this.mapOpts.annotation)));var o=t(i,n);return this.memoizedPaths.set(n,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){var t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{var e=new a(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){var e={};if(this.root)this.root.walk((t=>{if(t.source){var r=t.source.input.from;if(r&&!e[r]){e[r]=!0;var n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,t.source.input.css)}}}));else if(this.css){var t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(o){var r=o(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===n&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}},yt}function Yt(){if(St)return bt;St=1;var e="'".charCodeAt(0),t='"'.charCodeAt(0),r="\\".charCodeAt(0),n="/".charCodeAt(0),s="\n".charCodeAt(0),i=" ".charCodeAt(0),o="\f".charCodeAt(0),a="\t".charCodeAt(0),l="\r".charCodeAt(0),u="[".charCodeAt(0),c="]".charCodeAt(0),d="(".charCodeAt(0),h=")".charCodeAt(0),p="{".charCodeAt(0),f="}".charCodeAt(0),m=";".charCodeAt(0),v="*".charCodeAt(0),g=":".charCodeAt(0),y="@".charCodeAt(0),w=/[\t\n\f\r "#'()/;[\\\]{}]/g,b=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,S=/.[\r\n"'(/\\]/,C=/[\da-f]/i;return bt=function(I,M){void 0===M&&(M={});var k,O,x,E,R,N,A,D,T,L,F=I.css.valueOf(),P=M.ignoreErrors,B=F.length,j=0,H=[],W=[],z=-1;function U(e){throw I.error("Unclosed "+e,j)}return{back:function(e){W.push(e)},endOfFile:function(){return 0===W.length&&j>=B},nextToken:function(I){if(W.length)return W.pop();if(!(j>=B)){var M=!!I&&I.ignoreUnclosed;switch(k=F.charCodeAt(j)){case s:case i:case a:case l:case o:E=j;do{E+=1,k=F.charCodeAt(E)}while(k===i||k===s||k===a||k===l||k===o);N=["space",F.slice(j,E)],j=E-1;break;case u:case c:case p:case f:case g:case m:case h:var G=String.fromCharCode(k);N=[G,G,j];break;case d:if(L=H.length?H.pop()[1]:"",T=F.charCodeAt(j+1),"url"===L&&T!==e&&T!==t&&T!==i&&T!==s&&T!==a&&T!==o&&T!==l){E=j;do{if(A=!1,-1===(E=F.indexOf(")",E+1))){if(P||M){E=j;break}U("bracket")}for(D=E;F.charCodeAt(D-1)===r;)D-=1,A=!A}while(A);N=["brackets",F.slice(j,E+1),j,E],j=E}else j<=z?N=["(","(",j]:(E=F.indexOf(")",j+1),O=F.slice(j,E+1),-1===E||S.test(O)?(z=-1===E?B:E,N=["(","(",j]):(N=["brackets",O,j,E],j=E));break;case e:case t:R=k===e?"'":'"',E=j;do{if(A=!1,-1===(E=F.indexOf(R,E+1))){if(P||M){E=j+1;break}U("string")}for(D=E;F.charCodeAt(D-1)===r;)D-=1,A=!A}while(A);N=["string",F.slice(j,E+1),j,E],j=E;break;case y:w.lastIndex=j+1,w.test(F),E=0===w.lastIndex?F.length-1:w.lastIndex-2,N=["at-word",F.slice(j,E+1),j,E],j=E;break;case r:for(E=j,x=!0;F.charCodeAt(E+1)===r;)E+=1,x=!x;if(k=F.charCodeAt(E+1),x&&k!==n&&k!==i&&k!==s&&k!==a&&k!==l&&k!==o&&(E+=1,C.test(F.charAt(E)))){for(;C.test(F.charAt(E+1));)E+=1;F.charCodeAt(E+1)===i&&(E+=1)}N=["word",F.slice(j,E+1),j,E],j=E;break;default:k===n&&F.charCodeAt(j+1)===v?(0===(E=F.indexOf("*/",j+2)+1)&&(P||M?E=F.length:U("comment")),N=["comment",F.slice(j,E+1),j,E],j=E):(b.lastIndex=j+1,b.test(F),E=0===b.lastIndex?F.length-1:b.lastIndex-2,N=["word",F.slice(j,E+1),j,E],H.push(N),j=E)}return j++,N}},position:function(){return j}}},bt}function qt(){if(It)return Ct;It=1;var e=lt(),t=it(),r=ot(),n=pt(),s=mt(),i=Yt(),o={empty:!0,space:!0};function a(e,t,r){for(var n="",s=t;s<r;s++)n+=e[s][1];return n}return Ct=class{constructor(e){this.input=e,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(t){var r,n,s,i=new e;i.name=t[1].slice(1),""===i.name&&this.unnamedAtrule(i,t),this.init(i,t[2]);for(var o=!1,a=!1,l=[],u=[];!this.tokenizer.endOfFile();){if("("===(r=(t=this.tokenizer.nextToken())[0])||"["===r?u.push("("===r?")":"]"):"{"===r&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),0===u.length){if(";"===r){i.source.end=this.getPosition(t[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===r){a=!0;break}if("}"===r){if(l.length>0){for(n=l[s=l.length-1];n&&"space"===n[0];)n=l[--s];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(t);break}l.push(t)}else l.push(t);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(i.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(i,"params",l),o&&(t=l[l.length-1],i.source.end=this.getPosition(t[3]||t[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),a&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,s=t-1;s>=0&&("space"===(r=e[s])[0]||2!==(n+=1));s--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}}colon(e){var t,r,n,s=0;for(var i of e.entries()){var o=i[0];if("("===(n=(r=i[1])[0])&&(s+=1),")"===n&&(s-=1),0===s&&":"===n){if(t){if("word"===t[0]&&"progid"===t[1])continue;return o}this.doubleColon(r)}t=r}return!1}comment(e){var r=new t;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var n=e[1].slice(2,-2);if(n.trim()){var s=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}else r.text="",r.raws.left=n,r.raws.right=""}createTokenizer(){this.tokenizer=i(this.input)}decl(e,t){var n=new r;this.init(n,e[0][2]);var s=e[e.length-1];";"===s[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),n.source.end.offset++;for(var i=0;"word"!==e[i][0];)i===e.length-1&&this.unknownWord([e[i]]),i++;n.raws.before+=a(e,0,i),n.source.start=this.getPosition(e[i][2]);for(var o=i;i<e.length;){var l=e[i][0];if(":"===l||"space"===l||"comment"===l)break;i++}n.prop=a(e,o,i);for(var u,c=i;i<e.length&&(u=e[i],i++,":"!==u[0]);)"word"===u[0]&&/\w/.test(u[1])&&this.unknownWord([u]);n.raws.between=a(e,c,i),"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var d=i;i<e.length;){var h=e[i][0];if("space"!==h&&"comment"!==h)break;i++}var p=e.slice(d,i);e=e.slice(i),this.precheckMissedSemicolon(e);for(var f=e.length-1;f>=0;f--){if("!important"===(u=e[f])[1].toLowerCase()){n.important=!0;var m=this.stringFrom(e,f);" !important"!==(m=this.spacesFromEnd(e)+m)&&(n.raws.important=m);break}if("important"===u[1].toLowerCase()){for(var v=e.slice(0),g="",y=f;y>0;y--){var w=v[y][0];if(g.trim().startsWith("!")&&"space"!==w)break;g=v.pop()[1]+g}g.trim().startsWith("!")&&(n.important=!0,n.raws.important=g,e=v)}if("space"!==u[0]&&"comment"!==u[0])break}var b=e.some((e=>"space"!==e[0]&&"comment"!==e[0]));b&&(n.raws.between+=p.map((e=>e[1])).join(""),p=[]),this.raw(n,"value",p.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){var t=new s;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){for(var t=!1,r=null,n=!1,s=null,i=[],o=e[1].startsWith("--"),a=[],l=e;l;){if(r=l[0],a.push(l),"("===r||"["===r)s||(s=l),i.push("("===r?")":"]");else if(o&&n&&"{"===r)s||(s=l),i.push("}");else if(0===i.length){if(";"===r){if(n)return void this.decl(a,o);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===i[i.length-1]&&(i.pop(),0===i.length&&(s=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(s),t&&n){if(!o)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){for(var s,i,a,l,u=r.length,c="",d=!0,h=0;h<u;h+=1)"space"!==(i=(s=r[h])[0])||h!==u-1||n?"comment"===i?(l=r[h-1]?r[h-1][0]:"empty",a=r[h+1]?r[h+1][0]:"empty",o[l]||o[a]||","===c.slice(-1)?d=!1:c+=s[1]):c+=s[1]:d=!1;if(!d){var p=r.reduce(((e,t)=>e+t[1]),"");e.raws[t]={raw:p,value:c}}e[t]=c}rule(e){e.pop();var t=new s;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}stringFrom(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}unclosedBlock(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}},Ct}function Zt(){if(kt)return Mt;kt=1;var e=at(),t=ht(),r=qt();function n(e,n){var s=new t(e,n),i=new r(s);try{i.parse()}catch(e){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===e.name&&n&&n.from&&(/\.scss$/i.test(n.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(n.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(n.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return i.root}return Mt=n,n.default=n,e.registerParse(n),Mt}function Qt(){if(xt)return Ot;xt=1;class e{constructor(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Ot=e,e.default=e,Ot}function Xt(){if(Rt)return Et;Rt=1;var e=Qt();class t{get content(){return this.css}constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(t,r){void 0===r&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var n=new e(t,r);return this.messages.push(n),n}warnings(){return this.messages.filter((e=>"warning"===e.type))}}return Et=t,t.default=t,Et}function _t(){if(At)return Nt;At=1;var e={};return Nt=function(t){e[t]||(e[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))}}function $t(){if(Tt)return Dt;Tt=1;var e=at(),t=ut(),s=Kt(),i=Zt(),o=Xt(),a=pt(),l=Ne(),u=nt(),c=u.isClean,d=u.my,h=_t(),p={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},m={Once:!0,postcssPlugin:!0,prepare:!0},v=0;function g(e){return"object"==typeof e&&"function"==typeof e.then}function y(e){var t=!1,r=p[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,v,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,v,r+"Exit"]:[r,r+"Exit"]}function w(e){return{eventIndex:0,events:"document"===e.type?["Document",v,"DocumentExit"]:"root"===e.type?["Root",v,"RootExit"]:y(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function b(e){return e[c]=!1,e.nodes&&e.nodes.forEach((e=>b(e))),e}var S={};class C{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(t,r,s){var a;if(this.stringified=!1,this.processed=!1,"object"!=typeof r||null===r||"root"!==r.type&&"document"!==r.type)if(r instanceof C||r instanceof o)a=b(r.root),r.map&&(void 0===s.map&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=r.map);else{var l=i;s.syntax&&(l=s.syntax.parse),s.parser&&(l=s.parser),l.parse&&(l=l.parse);try{a=l(r,s)}catch(e){this.processed=!0,this.error=e}a&&!a[d]&&e.rebuild(a)}else a=b(r);this.result=new o(t,a,s),this.helpers=n({},S,{postcss:S,result:this.result}),this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?n({},e,e.prepare(this.result)):e))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){var n=r.postcssPlugin,s=r.postcssVersion,i=this.result.processor.version,o=s.split("."),a=i.split(".");(o[0]!==a[0]||parseInt(o[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+i+", but "+n+" uses "+s+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};var e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(var t of this.plugins)if("object"==typeof t)for(var r in t){if(!f[r]&&/^[A-Z]/.test(r))throw new Error("Unknown event "+r+" in "+t.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!m[r])if("object"==typeof t[r])for(var n in t[r])e(t,"*"===n?r:r+"-"+n.toLowerCase(),t[r][n]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}runAsync(){var e=this;return r((function*(){e.plugin=0;for(var t=0;t<e.plugins.length;t++){var r=e.plugins[t],n=e.runOnRoot(r);if(g(n))try{yield n}catch(t){throw e.handleError(t)}}if(e.prepareVisitors(),e.hasListener){for(var s=e.result.root;!s[c];){s[c]=!0;for(var i=[w(s)];i.length>0;){var o=e.visitTick(i);if(g(o))try{yield o}catch(t){var a=i[i.length-1].node;throw e.handleError(t,a)}}}if(e.listeners.OnceExit){var l=function*(){var t=u[0],r=u[1];e.result.lastPlugin=t;try{if("document"===s.type){var n=s.nodes.map((t=>r(t,e.helpers)));yield Promise.all(n)}else yield r(s,e.helpers)}catch(t){throw e.handleError(t)}};for(var u of e.listeners.OnceExit)yield*l()}}return e.processed=!0,e.stringify()}))()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){var t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return g(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=l;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=this.result.root.source;if(void 0===e.map&&!(r&&r.input&&r.input.map)){var n="";return t(this.result.root,(e=>{n+=e})),this.result.css=n,this.result}var i=new s(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e of this.plugins)if(g(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){for(var t=this.result.root;!t[c];)t[c]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(var r of t.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(e,t){return"production"!==process.env.NODE_ENV&&("from"in this.opts||h("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(var r of e){var n=r[0],s=r[1];this.result.lastPlugin=n;var i=void 0;try{i=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(g(i))throw this.getAsyncError()}}visitTick(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var s=n[t.visitorIndex],i=s[0],o=s[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=i;try{return o(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,l=t.iterator;a=r.nodes[r.indexes[l]];)if(r.indexes[l]+=1,!a[c])return a[c]=!0,void e.push(w(a));t.iterator=0,delete r.indexes[l]}for(var u=t.events;t.eventIndex<u.length;){var d=u[t.eventIndex];if(t.eventIndex+=1,d===v)return void(r.nodes&&r.nodes.length&&(r[c]=!0,t.iterator=r.getIterator()));if(this.listeners[d])return void(t.visitors=this.listeners[d])}e.pop()}else e.pop()}walkSync(e){e[c]=!0;var t=y(e);for(var r of t)if(r===v)e.nodes&&e.each((e=>{e[c]||this.walkSync(e)}));else{var n=this.listeners[r];if(n&&this.visitSync(n,e.toProxy()))return}}warnings(){return this.sync().warnings()}}return C.registerPostcss=e=>{S=e},Dt=C,C.default=C,a.registerLazyResult(C),t.registerLazyResult(C),Dt}function er(){if(Ht)return jt;Ht=1;var e=lt(),t=it(),r=at(),i=Ee(),o=ot(),a=ut(),l=function(){if(gt)return vt;gt=1;var e=lt(),t=it(),r=ot(),i=ht(),o=dt(),a=pt(),l=mt();function u(c,d){if(Array.isArray(c))return c.map((e=>u(e)));var h,p,f=c.inputs,m=s(c,Jt);if(f)for(var v of(d=[],f)){var g=n({},v,{__proto__:i.prototype});g.map&&(g.map=n({},g.map,{__proto__:o.prototype})),d.push(g)}if(m.nodes&&(h=c.nodes.map((e=>u(e,d))),delete m.nodes),m.source){var y=m.source,w=y.inputId,b=s(y,Vt);m.source=b,null!=w&&(m.source.input=d[w])}if("root"===m.type)p=new a(m);else if("decl"===m.type)p=new r(m);else if("rule"===m.type)p=new l(m);else if("comment"===m.type)p=new t(m);else{if("atrule"!==m.type)throw new Error("Unknown node type: "+c.type);p=new e(m)}if(h)for(var S of(p.nodes=h,h))S.parent=p;return p}return vt=u,u.default=u,vt}(),u=ht(),c=$t(),d=ft(),h=st(),p=Zt(),f=function(){if(Bt)return Pt;Bt=1;var e=ut(),t=$t(),r=function(){if(Ft)return Lt;Ft=1;var e=Kt(),t=Zt(),r=Xt(),n=Ne(),s=_t();class i{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;var e,r=t;try{e=r(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(t,s,i){s=s.toString(),this.stringified=!1,this._processor=t,this._css=s,this._opts=i,this._map=void 0;var o=n;this.result=new r(this._processor,void 0,this._opts),this.result.css=s;var a=this;Object.defineProperty(this.result,"root",{get:()=>a.root});var l=new e(o,void 0,this._opts,s);if(l.isMap()){var u=l.generate(),c=u[0],d=u[1];c&&(this.result.css=c),d&&(this.result.map=d)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return"production"!==process.env.NODE_ENV&&("from"in this._opts||s("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this._css}warnings(){return[]}}return Lt=i,i.default=i,Lt}(),n=pt();class s{constructor(e){void 0===e&&(e=[]),this.version="8.5.16",this.plugins=this.normalize(e)}normalize(e){var t=[];for(var r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return t}process(e,n){return void 0===n&&(n={}),this.plugins.length||n.parser||n.stringifier||n.syntax?new t(this,e,n):new r(this,e,n)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}return Pt=s,s.default=s,n.registerProcessor(s),e.registerProcessor(s),Pt}(),m=Xt(),v=pt(),g=mt(),y=Ne(),w=Qt();function b(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new f(t)}return b.plugin=function(e,t){var r,n=!1;function s(){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var r=t(...arguments);return r.postcssPlugin=e,r.postcssVersion=(new f).version,r}return Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(e,t,r){return b([s(r)]).process(e,t)},s},b.stringify=y,b.parse=p,b.fromJSON=l,b.list=d,b.comment=e=>new t(e),b.atRule=t=>new e(t),b.decl=e=>new o(e),b.rule=e=>new g(e),b.root=e=>new v(e),b.document=e=>new a(e),b.CssSyntaxError=i,b.Declaration=o,b.Container=r,b.Processor=f,b.Document=a,b.Comment=t,b.Warning=w,b.AtRule=e,b.Result=m,b.Input=u,b.Rule=g,b.Root=v,b.Node=h,c.registerPostcss(b),jt=b,b.default=b,jt}!function(){if(Gt)return Ut;Gt=1;var e=er().Input,t=function(){if(zt)return Wt;zt=1;var e=it(),t=qt(),r=Yt();return Wt=class extends t{checkMissedSemicolon(){}comment(t){var r=new e;this.init(r,t[2]);var n=this.input.fromOffset(t[3])||this.input.fromOffset(this.input.css.length-1);r.source.end={column:n.col,line:n.line,offset:t[3]+1};var s=t[1].slice(2);if("*/"===s.slice(-2)&&(s=s.slice(0,-2)),/^\s*$/.test(s))r.text="",r.raws.left=s,r.raws.right="";else{var i=s.match(/^(\s*)([^]*\S)(\s*)$/);r.text=i[2],r.raws.left=i[1],r.raws.right=i[3]}}createTokenizer(){this.tokenizer=r(this.input,{ignoreErrors:!0})}decl(e){e.length>1&&e.some((e=>"word"===e[0]))&&super.decl(e)}doubleColon(){}endFile(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after="";this.root.source.end=this.getPosition(this.tokenizer.position())}precheckMissedSemicolon(e){var t=this.colon(e);if(!1!==t){var r,n;for(r=t-1;r>=0&&"word"!==e[r][0];r--);if(!(0===r||r<0)){for(n=r-1;n>=0;n--)if("space"!==e[n][0]){n+=1;break}var s=e.slice(r),i=e.slice(n,r);e.splice(n,e.length-n),this.spaces=i.map((e=>e[1])).join(""),this.decl(s)}}}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(e){this.spaces+=e.map((e=>e[1])).join("")}unnamedAtrule(e){e.name=""}},Wt}();Ut=function(r,n){var s=new e(r,n),i=new t(s);return i.parse(),i.root}}();var tr=ve(er());tr.stringify,tr.fromJSON,tr.plugin,tr.parse,tr.list,tr.document,tr.comment,tr.atRule,tr.rule,tr.decl,tr.root,tr.CssSyntaxError,tr.Declaration,tr.Container,tr.Processor,tr.Document,tr.Comment,tr.Warning,tr.AtRule,tr.Result,tr.Input,tr.Rule,tr.Root,tr.Node;class rr{constructor(){this.parentElement=null,this.parentNode=null,this.ownerDocument=void 0,this.firstChild=null,this.lastChild=null,this.previousSibling=null,this.nextSibling=null,this.ELEMENT_NODE=nr.ELEMENT_NODE,this.TEXT_NODE=nr.TEXT_NODE,this.nodeType=void 0,this.nodeName=void 0,this.RRNodeType=void 0}get childNodes(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(!(e instanceof rr))return!1;if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}var nr=function(e){return e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",e}({});function sr(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>ir(r,e,t,n)}function ir(e,t,r,n){or((()=>{var s=e.removeEventListener;"function"==typeof s&&(void 0!==n?s.call(e,t,r,n):s.call(e,t,r))}))}function or(e){try{e()}catch(e){if(!(e instanceof DOMException&&"SecurityError"===e.name))throw e}}var ar="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",lr={map:{},getId:()=>(console.error(ar),-1),getNode:()=>(console.error(ar),null),removeNodeFromMap(){console.error(ar)},has:()=>(console.error(ar),!1),reset(){console.error(ar)}};function ur(e,t,r){void 0===r&&(r={});var n=null,s=0;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var l=Date.now();s||!1!==r.leading||(s=l);var u=t-(l-s),c=this;u<=0||u>t?(n&&(clearTimeout(n),n=null),s=l,e.apply(c,o)):n||!1===r.trailing||(n=setTimeout((()=>{s=!1===r.leading?0:Date.now(),n=null,e.apply(c,o)}),u))}}function cr(e,t,r,n,s){void 0===s&&(s=window);var i=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,n?r:{set(e){if(setTimeout((()=>{try{r.set.call(this,e)}catch(e){}}),0),i&&i.set){if(i.get)try{i.get.call(this)}catch(e){return}i.set.call(this,e)}}}),()=>cr(e,t,i||{},!0)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(lr=new Proxy(lr,{get:(e,t,r)=>("map"===t&&console.error(ar),Reflect.get(e,t,r))}));var dr=Date.now;function hr(e){var t,r,n,s,i=e.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:i.documentElement.scrollLeft||(null==i?void 0:i.body)&&(null==(t=x.parentElement(i.body))?void 0:t.scrollLeft)||(null==i||null==(r=i.body)?void 0:r.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==i?void 0:i.documentElement.scrollTop)||(null==i?void 0:i.body)&&(null==(n=x.parentElement(i.body))?void 0:n.scrollTop)||(null==i||null==(s=i.body)?void 0:s.scrollTop)||0}}function pr(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function fr(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function mr(e){return e?e.nodeType===e.ELEMENT_NODE?e:x.parentElement(e):null}function vr(e,t,r,n){if(!e)return!1;var s=mr(e),i=n;if(!s){var o=x.getRootNode(e);if(!R(o))return!1;s=x.host(o),i=!0}for(;s;){try{if("string"==typeof t){if(s.classList.contains(t))return!0;if(i&&null!==s.closest("."+t))return!0}else if(ie(s,t,i))return!0}catch(e){}if(r){if(s.matches(r))return!0;if(i&&null!==s.closest(r))return!0}var a=x.getRootNode(s);if(!R(a))return!1;s=x.host(a),i=!0}return!1}function gr(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||t.getId(e)===Z}function yr(e,t){if(R(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=x.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||yr(n,t))}function wr(e){return Boolean(e.changedTouches)}function br(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Sr(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Cr(e){return!!e&&(e instanceof rr&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(x.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(dr=()=>(new Date).getTime());class Ir{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Mr(e){var t,r=null;return"getRootNode"in e&&(null==(t=x.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&x.host(x.getRootNode(e))&&(r=x.host(x.getRootNode(e))),r}function kr(e){var t=e.ownerDocument;return!!t&&(x.contains(t,e)||function(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=Mr(r);)r=t;return r}(e);return x.contains(t,r)}(e))}function Or(e){return"__ln"in e}class xr{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++){var n;t=(null==(n=t)?void 0:n.next)||null}return t}addNode(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Or(e.previousSibling)){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&Or(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}var Er,Rr=(e,t)=>e+"@"+t;class Nr{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.mutationCb=void 0,this.blockClass=void 0,this.blockSelector=void 0,this.maskTextClass=void 0,this.maskTextSelector=void 0,this.inlineStylesheet=void 0,this.maskInputOptions=void 0,this.maskTextFn=void 0,this.maskInputFn=void 0,this.keepIframeSrcFn=void 0,this.recordCanvas=void 0,this.canvasMaskingConfigured=void 0,this.inlineImages=void 0,this.slimDOMOptions=void 0,this.dataURLOptions=void 0,this.doc=void 0,this.mirror=void 0,this.iframeManager=void 0,this.stylesheetManager=void 0,this.shadowDomManager=void 0,this.canvasManager=void 0,this.processedNodeManager=void 0,this.unattachedDoc=void 0,this.canvasManagerReleased=!1,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(!this.frozen&&!this.locked){for(var e=[],t=new Set,r=new xr,n=e=>{for(var t=e,r=Z;r===Z;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},s=s=>{var i=x.parentNode(s);if(i&&kr(s)&&"TEXTAREA"!==i.tagName){var o=R(i)?this.mirror.getId(Mr(s)):this.mirror.getId(i),a=n(s);if(-1===o||-1===a)return r.addNode(s);var l=fe(s,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,canvasMaskingConfigured:this.canvasMaskingConfigured,inlineImages:this.inlineImages,onSerialize:e=>{br(e,this.mirror)&&this.iframeManager.addIframe(e),Sr(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Cr(s)&&this.shadowDomManager.addShadowRoot(x.shadowRoot(s),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onIframeListenerRegistered:(e,t)=>{this.iframeManager.registerLoadListenerDisposer(e,t)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});l&&(e.push({parentId:o,nextId:a,node:l}),t.add(l.id))}};this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(var i of this.movedSet)Dr(this.removesSubTreeCache,i,this.mirror)&&!this.movedSet.has(x.parentNode(i))||s(i);for(var o of this.addedSet)Tr(this.droppedSet,o)||Dr(this.removesSubTreeCache,o,this.mirror)?Tr(this.movedSet,o)?s(o):this.droppedSet.add(o):s(o);for(var a=null;r.length;){var l=null;if(a){var u=this.mirror.getId(x.parentNode(a.value)),c=n(a.value);-1!==u&&-1!==c&&(l=a)}if(!l)for(var d=r.tail;d;){var h=d;if(d=d.previous,h){var p=this.mirror.getId(x.parentNode(h.value));if(-1===n(h.value))continue;if(-1!==p){l=h;break}var f=h.value,m=x.parentNode(f);if(m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var v=x.host(m);if(-1!==this.mirror.getId(v)){l=h;break}}}}if(!l){for(;r.head;)r.removeNode(r.head.value);break}a=l.previous,r.removeNode(l.value),s(l.value)}var g={texts:this.texts.map((e=>{var t=e.node,r=x.parentNode(t);return r&&"TEXTAREA"===r.tagName&&this.genTextAreaValueMutation(r),{id:this.mirror.getId(t),value:e.value}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{var t=e.attributes;if("string"==typeof t.style){var r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(g.texts.length||g.attributes.length||g.removes.length||g.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(g))}},this.bufferBelongsToIframe=e=>this.doc===e.contentDocument,this.genTextAreaValueMutation=e=>{var t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t));var r=Array.from(x.childNodes(e),(e=>x.textContent(e)||"")).join("");t.attributes.value=L({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:B(e),value:r,maskInputFn:this.maskInputFn})},this.processMutation=e=>{if(!gr(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":var t=x.textContent(e.target);vr(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:oe(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,mr(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break;case"attributes":var r=e.target,n=e.attributeName,s=e.target.getAttribute(n);if("value"===n){var i=B(r);s=L({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:i,value:s,maskInputFn:this.maskInputFn})}if(vr(e.target,this.blockClass,this.blockSelector,!1)||s===e.oldValue)return;var o=this.attributeMap.get(e.target);if("IFRAME"===r.tagName&&"src"===n&&!this.keepIframeSrcFn(s)){if(r.contentDocument)return;n="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===n&&"INPUT"===r.tagName&&"password"===(e.oldValue||"").toLowerCase()&&r.setAttribute("data-rr-is-password","true"),!se(r.tagName,n))if(o.attributes[n]=ne(this.doc,F(r.tagName),F(n),s,r,this.dataURLOptions),"style"===n){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}var a=this.unattachedDoc.createElement("span");for(var l of(e.oldValue&&(a.style.cssText=e.oldValue),Array.from(r.style))){var u=r.style.getPropertyValue(l),c=r.style.getPropertyPriority(l);u!==a.style.getPropertyValue(l)||c!==a.style.getPropertyPriority(l)?o.styleDiff[l]=""===c?u:[u,c]:o._unchangedStyles[l]=[u,c]}for(var d of Array.from(a.style))""===r.style.getPropertyValue(d)&&(o.styleDiff[d]=!1)}else"open"===n&&"DIALOG"===r.tagName&&(r.matches("dialog:modal")?o.attributes.rr_open_mode="modal":o.attributes.rr_open_mode="non-modal");break;case"childList":if(vr(e.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===e.target.tagName)return void this.genTextAreaValueMutation(e.target);e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{var r=this.mirror.getId(t),n=R(e.target)?this.mirror.getId(x.host(e.target)):this.mirror.getId(e.target);vr(e.target,this.blockClass,this.blockSelector,!1)||gr(t,this.mirror,this.slimDOMOptions)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(Ar(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||yr(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Rr(r,n)]?Ar(this.movedSet,t):(this.removes.push({parentId:n,id:r,isShadow:!(!R(e.target)||!N(e.target))||void 0}),function(e,t){for(var r=[e];r.length;){var n=r.pop();t.has(n)||(t.add(n),x.childNodes(n).forEach((e=>r.push(e))))}}(t,this.removesSubTreeCache))),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)){if(this.addedSet.has(e))return this.addedSet.delete(e),void this.addedSet.add(e);if(!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(gr(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);var r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[Rr(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);vr(e,this.blockClass,this.blockSelector,!1)||(x.childNodes(e).forEach((e=>this.genAdds(e))),Cr(e)&&x.childNodes(x.shadowRoot(e)).forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","canvasMaskingConfigured","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]})),this.canvasManager.acquire()}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.releaseCanvasManager()}releaseCanvasManager(){this.canvasManagerReleased||(this.canvasManagerReleased=!0,this.canvasManager.reset())}bufferDoc(){return this.doc}destroy(){for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift())}}function Ar(e,t){e.delete(t),x.childNodes(t).forEach((t=>Ar(e,t)))}function Dr(e,t,r){return 0!==e.size&&function(e,t,r){var n=x.parentNode(t);return!!n&&e.has(n)}(e,t)}function Tr(e,t){return 0!==e.size&&Lr(e,t)}function Lr(e,t){var r=x.parentNode(t);return!!r&&(!!e.has(r)||Lr(e,r))}function Fr(e){Er=e}function Pr(){Er=void 0}var Br=e=>Er?function(){try{return e(...arguments)}catch(e){if(Er&&!0===Er(e))return;throw e}}:e,jr=[];function Hr(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function Wr(e,t){var r=a(),n=new Nr;jr.push(n),r.add((()=>{var e=jr.indexOf(n);-1!==e&&jr.splice(e,1)})),r.add((()=>n.destroy())),r.add((()=>n.reset()));try{n.init(e);var s=new(k())(Br(n.processMutations.bind(n)));r.add((()=>s.disconnect()));var i={attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};return e.attributeFilter&&e.attributeFilter.length>0&&(i.attributeFilter=e.attributeFilter),s.observe(t,i),{observer:s,buffer:n}}catch(e){throw r.close(),e}}function zr(e){var t=e.scrollCb,r=e.doc,n=e.mirror,s=e.blockClass,i=e.blockSelector,o=e.sampling,a=!0,u=new Map,c=e=>{if(a){var o=Hr(e);if(o&&!vr(o,s,i,!0)){var l,c,d=n.getId(o);if(o===r&&r.defaultView){var h=hr(r.defaultView);l=h.left,c=h.top}else l=o.scrollLeft,c=o.scrollTop;var p=l+","+c;u.get(d)!==p&&(u.set(d,p),t({id:d,x:l,y:c}))}}},d=Br(ur(Br((e=>c(e))),o.scroll||100));return l((e=>{e.add((()=>{a=!1})),e.add(sr("scroll",d,r)),"onscrollend"in r&&e.add(sr("scrollend",Br(c),r))}))}function Ur(e,t){for(var r=jr.length-1;r>=0;r--){var n=jr[r];if(n){var s=n.bufferBelongsToIframe(e);!s&&t&&t.has(n.bufferDoc())&&(s=!0),s&&(n.reset(),jr.splice(r,1))}}}var Gr=["INPUT","TEXTAREA","SELECT"],Jr=new WeakMap;function Vr(e){return function e(t,r){if(Zr("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||Zr("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||Zr("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||Zr("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){var n=Array.from(t.parentRule.cssRules).indexOf(t);return r.unshift(n),e(t.parentRule,r)}if(t.parentStyleSheet){var s=Array.from(t.parentStyleSheet.cssRules).indexOf(t);r.unshift(s)}return r}(e,[])}function Kr(e,t,r){var n,s;return e?(e.ownerNode?n=t.getId(e.ownerNode):s=r.getId(e),{styleId:s,id:n}):{}}function Yr(e,t){var r,n,s,i=e.mirror,o=e.stylesheetManager;s="#document"===t.nodeName?i.getId(t):i.getId(x.host(t));var a="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(n=t.ownerDocument)||null==(n=n.defaultView)?void 0:n.ShadowRoot,l=null!=a&&a.prototype?Object.getOwnPropertyDescriptor(null==a?void 0:a.prototype,"adoptedStyleSheets"):void 0;return null!==s&&-1!==s&&a&&l?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var e;return null==(e=l.get)?void 0:e.call(this)},set(e){var t;try{var r;t=null==(r=l.set)?void 0:r.call(this,e)}catch(e){if(e&&"object"==typeof e&&"NotAllowedError"===e.name)return;throw e}if(null!==s&&-1!==s)try{o.adoptStyleSheets(e,s)}catch(e){}return t}}),Br((()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))):()=>{}}function qr(e,t){void 0===t&&(t={});var r=e.doc.defaultView;return r?(function(e,t){var r=e.mutationCb,n=e.mousemoveCb,s=e.mouseInteractionCb,i=e.scrollCb,o=e.viewportResizeCb,a=e.inputCb,l=e.mediaInteractionCb,u=e.styleSheetRuleCb,c=e.styleDeclarationCb,d=e.canvasMutationCb,h=e.fontCb,p=e.selectionCb,f=e.customElementCb;e.mutationCb=function(){t.mutation&&t.mutation(...arguments),r(...arguments)},e.mousemoveCb=function(){t.mousemove&&t.mousemove(...arguments),n(...arguments)},e.mouseInteractionCb=function(){t.mouseInteraction&&t.mouseInteraction(...arguments),s(...arguments)},e.scrollCb=function(){t.scroll&&t.scroll(...arguments),i(...arguments)},e.viewportResizeCb=function(){t.viewportResize&&t.viewportResize(...arguments),o(...arguments)},e.inputCb=function(){t.input&&t.input(...arguments),a(...arguments)},e.mediaInteractionCb=function(){t.mediaInteaction&&t.mediaInteaction(...arguments),l(...arguments)},e.styleSheetRuleCb=function(){t.styleSheetRule&&t.styleSheetRule(...arguments),u(...arguments)},e.styleDeclarationCb=function(){t.styleDeclaration&&t.styleDeclaration(...arguments),c(...arguments)},e.canvasMutationCb=function(){t.canvasMutation&&t.canvasMutation(...arguments),d(...arguments)},e.fontCb=function(){t.font&&t.font(...arguments),h(...arguments)},e.selectionCb=function(){t.selection&&t.selection(...arguments),p(...arguments)},e.customElementCb=function(){t.customElement&&t.customElement(...arguments),f(...arguments)}}(e,t),l((t=>{if(t.add((()=>e.shadowDomManager.resetForDoc(e.doc))),e.recordDOM){var s=Wr(e,e.doc),i=s.observer,o=s.buffer;t.add((()=>{var e=jr.indexOf(o);-1!==e&&jr.splice(e,1)})),t.add((()=>o.destroy())),t.add((()=>o.reset())),t.add((()=>i.disconnect()))}var a,u,p,m,v;for(var g of(t.add(function(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,s=e.mirror,i=!0;if(!1===r.mousemove)return()=>{};var o,a="number"==typeof r.mousemove?r.mousemove:50,u="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,d=[],h=ur(Br((e=>{if(i){var r=Date.now()-o;t(d.map((e=>(e.timeOffset-=r,e))),e),d=[],o=null}})),u),p=Br(ur(Br((e=>{if(i){var t=Hr(e),r=wr(e)?e.changedTouches[0]:e,n=r.clientX,a=r.clientY;o||(o=dr()),d.push({x:n,y:a,id:s.getId(t),timeOffset:dr()-o}),h("undefined"!=typeof DragEvent&&e instanceof DragEvent?c.Drag:e instanceof MouseEvent?c.MouseMove:c.TouchMove)}})),a,{trailing:!1}));return l((e=>{e.add((()=>{i=!1})),e.add(sr("mousemove",p,n)),e.add(sr("touchmove",p,n)),e.add(sr("drag",p,n))}))}(e)),t.add(function(e){var t=e.mouseInteractionCb,r=e.doc,s=e.mirror,i=e.blockClass,o=e.blockSelector,a=e.sampling,u=!0;if(!1===a.mouseInteraction)return()=>{};var c=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,p=null;return l((e=>{e.add((()=>{u=!1})),Object.keys(d).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==c[e])).forEach((a=>{var l=F(a),c=(e=>r=>{if(u){var a=Hr(r);if(!vr(a,i,o,!0)){var l=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":l=h.Mouse;break;case"touch":l=h.Touch;break;case"pen":l=h.Pen}l===h.Touch?d[e]===d.MouseDown?c="TouchStart":d[e]===d.MouseUp&&(c="TouchEnd"):h.Pen}else wr(r)&&(l=h.Touch);null!==l?(p=l,(c.startsWith("Touch")&&l===h.Touch||c.startsWith("Mouse")&&l===h.Mouse)&&(l=null)):d[e]===d.Click&&(l=p,p=null);var f=wr(r)?r.changedTouches[0]:r;if(f){var m=s.getId(a),v=f.clientX,g=f.clientY;Br(t)(n({type:d[c],id:m,x:v,y:g},null!==l&&{pointerType:l}))}}}})(a);if(window.PointerEvent)switch(d[a]){case d.MouseDown:case d.MouseUp:l=l.replace("mouse","pointer");break;case d.TouchStart:case d.TouchEnd:return}e.add(sr(l,c,r))}))}))}(e)),t.add(zr(e)),t.add((a={win:r},u=e.viewportResizeCb,p=a.win,m=-1,v=-1,sr("resize",Br(ur(Br((()=>{var e=pr(),t=fr();m===e&&v===t||(u({width:Number(t),height:Number(e)}),m=e,v=t)})),200)),p))),t.add(function(e){var t=e.inputCb,r=e.doc,s=e.mirror,i=e.blockClass,o=e.blockSelector,a=e.ignoreClass,u=e.ignoreSelector,c=e.maskInputOptions,d=e.maskInputFn,h=e.sampling,p=e.userTriggeredOnInput,f=!0;function m(e){if(f){var t=Hr(e),n=e.isTrusted,s=r.defaultView;if(!t||!s||t instanceof s.HTMLElement){var l=t&&t.tagName;if(t&&"OPTION"===l&&(t=x.parentElement(t)),t&&l&&!(Gr.indexOf(l)<0)&&!vr(t,i,o,!0)&&!(t.classList.contains(a)||u&&t.matches(u))){var h=t.value,m=!1,g=B(t)||"";"radio"===g||"checkbox"===g?m=t.checked:(c[l.toLowerCase()]||c[g])&&(h=L({element:t,maskInputOptions:c,tagName:l,type:g,value:h,maskInputFn:d})),v(t,p?{text:h,isChecked:m,userTriggered:n}:{text:h,isChecked:m});var y=t.name;"radio"===g&&y&&m&&r.querySelectorAll('input[type="radio"][name="'+y+'"]').forEach((e=>{if(e!==t){var r=e.value;v(e,p?{text:r,isChecked:!m,userTriggered:!1}:{text:r,isChecked:!m})}}))}}}}function v(e,r){var i=Jr.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){Jr.set(e,r);var o=s.getId(e);Br(t)(n({},r,{id:o}))}}return l((e=>{e.add((()=>{f=!1}));var t="last"===h.input?["change"]:["input","change"];for(var n of t)e.add(sr(n,Br(m),r));var s=r.defaultView;if(s){var i=s.Object.getOwnPropertyDescriptor(s.HTMLInputElement.prototype,"value"),o=[[s.HTMLInputElement.prototype,"value"],[s.HTMLInputElement.prototype,"checked"],[s.HTMLSelectElement.prototype,"value"],[s.HTMLTextAreaElement.prototype,"value"],[s.HTMLSelectElement.prototype,"selectedIndex"],[s.HTMLOptionElement.prototype,"selected"]];if(i&&i.set){var a=function(t){var r=s.Object.getOwnPropertyDescriptor(t[0],t[1]);e.add((()=>{r?s.Object.defineProperty(t[0],t[1],r):Reflect.deleteProperty(t[0],t[1])})),cr(t[0],t[1],{set(){Br(m)({target:this,isTrusted:!1})}},!1,s)};for(var l of o)a(l)}}}))}(e)),t.add(function(e){var t=e.mediaInteractionCb,r=e.blockClass,n=e.blockSelector,s=e.mirror,i=e.sampling,o=e.doc,a=!0,u=Br((e=>ur(Br((i=>{if(a){var o=Hr(i);if(o&&!vr(o,r,n,!0)){var l=o,u=l.currentTime,c=l.volume,d=l.muted,h=l.playbackRate,p=l.loop;t({type:e,id:s.getId(o),currentTime:u,volume:c,muted:d,playbackRate:h,loop:p})}}})),i.media||500)));return l((e=>{e.add((()=>{a=!1})),e.add(sr("play",u(f.Play),o)),e.add(sr("pause",u(f.Pause),o)),e.add(sr("seeked",u(f.Seeked),o)),e.add(sr("volumechange",u(f.VolumeChange),o)),e.add(sr("ratechange",u(f.RateChange),o))}))}(e)),e.recordDOM&&(t.add(function(e,t){var r=e.styleSheetRuleCb,n=e.mirror,s=e.stylesheetManager,i=t.win;return i.CSSStyleSheet&&i.CSSStyleSheet.prototype?l((e=>{var t=i.CSSStyleSheet.prototype.insertRule;e.replace(i.CSSStyleSheet.prototype,"insertRule",new Proxy(t,{apply:Br(((e,t,i)=>{var o=i[0],a=i[1],l=Kr(t,n,s.styleMirror),u=l.id,c=l.styleId;return(u&&-1!==u||c&&-1!==c)&&r({id:u,styleId:c,adds:[{rule:o,index:a}]}),e.apply(t,i)}))})),e.replace(i.CSSStyleSheet.prototype,"addRule",(function(e,t,r){void 0===r&&(r=this.cssRules.length);var n=e+" { "+t+" }";return i.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])}));var o,a,l=i.CSSStyleSheet.prototype.deleteRule;e.replace(i.CSSStyleSheet.prototype,"deleteRule",new Proxy(l,{apply:Br(((e,t,i)=>{var o=i[0],a=Kr(t,n,s.styleMirror),l=a.id,u=a.styleId;return(l&&-1!==l||u&&-1!==u)&&r({id:l,styleId:u,removes:[{index:o}]}),e.apply(t,i)}))})),e.replace(i.CSSStyleSheet.prototype,"removeRule",(function(e){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[e])})),i.CSSStyleSheet.prototype.replace&&(o=i.CSSStyleSheet.prototype.replace,e.replace(i.CSSStyleSheet.prototype,"replace",new Proxy(o,{apply:Br(((e,t,i)=>{var o=i[0],a=Kr(t,n,s.styleMirror),l=a.id,u=a.styleId;return(l&&-1!==l||u&&-1!==u)&&r({id:l,styleId:u,replace:o}),e.apply(t,i)}))}))),i.CSSStyleSheet.prototype.replaceSync&&(a=i.CSSStyleSheet.prototype.replaceSync,e.replace(i.CSSStyleSheet.prototype,"replaceSync",new Proxy(a,{apply:Br(((e,t,i)=>{var o=i[0],a=Kr(t,n,s.styleMirror),l=a.id,u=a.styleId;return(l&&-1!==l||u&&-1!==u)&&r({id:l,styleId:u,replaceSync:o}),e.apply(t,i)}))})));var u={};Qr("CSSGroupingRule")?u.CSSGroupingRule=i.CSSGroupingRule:(Qr("CSSMediaRule")&&(u.CSSMediaRule=i.CSSMediaRule),Qr("CSSConditionRule")&&(u.CSSConditionRule=i.CSSConditionRule),Qr("CSSSupportsRule")&&(u.CSSSupportsRule=i.CSSSupportsRule));var c={};Object.entries(u).forEach((t=>{var i=t[0],o=t[1];c[i]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},e.replace(o.prototype,"insertRule",new Proxy(c[i].insertRule,{apply:Br(((e,t,i)=>{var o=i[0],a=i[1],l=Kr(t.parentStyleSheet,n,s.styleMirror),u=l.id,c=l.styleId;return(u&&-1!==u||c&&-1!==c)&&r({id:u,styleId:c,adds:[{rule:o,index:[...Vr(t),a||0]}]}),e.apply(t,i)}))})),e.replace(o.prototype,"deleteRule",new Proxy(c[i].deleteRule,{apply:Br(((e,t,i)=>{var o=i[0],a=Kr(t.parentStyleSheet,n,s.styleMirror),l=a.id,u=a.styleId;return(l&&-1!==l||u&&-1!==u)&&r({id:l,styleId:u,removes:[{index:[...Vr(t),o]}]}),e.apply(t,i)}))}))}))})):()=>{}}(e,{win:r})),t.add(Yr(e,e.doc)),t.add(function(e,t){var r=e.styleDeclarationCb,n=e.mirror,s=e.ignoreCSSAttributes,i=e.stylesheetManager,o=t.win;return l((e=>{var t=o.CSSStyleDeclaration.prototype.setProperty;e.replace(o.CSSStyleDeclaration.prototype,"setProperty",new Proxy(t,{apply:Br(((e,o,a)=>{var l,u=a[0],c=a[1],d=a[2];if(s.has(u))return t.apply(o,[u,c,d]);var h=Kr(null==(l=o.parentRule)?void 0:l.parentStyleSheet,n,i.styleMirror),p=h.id,f=h.styleId;return(p&&-1!==p||f&&-1!==f)&&r({id:p,styleId:f,set:{property:u,value:c,priority:d},index:Vr(o.parentRule)}),e.apply(o,a)}))}));var a=o.CSSStyleDeclaration.prototype.removeProperty;e.replace(o.CSSStyleDeclaration.prototype,"removeProperty",new Proxy(a,{apply:Br(((e,t,o)=>{var l,u=o[0];if(s.has(u))return a.apply(t,[u]);var c=Kr(null==(l=t.parentRule)?void 0:l.parentStyleSheet,n,i.styleMirror),d=c.id,h=c.styleId;return(d&&-1!==d||h&&-1!==h)&&r({id:d,styleId:h,remove:{property:u},index:Vr(t.parentRule)}),e.apply(t,o)}))}))}))}(e,{win:r})),e.collectFonts&&t.add(function(e){var t=e.fontCb,r=e.doc,n=!0,s=r.defaultView;return s?l((e=>{e.add((()=>{n=!1}));var i=new WeakMap,o=s.FontFace;e.replace(s,"FontFace",(function(e,t,r){var n=new o(e,t,r);return i.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n}));var a=O(r.fonts,"add",(function(e){return function(r){return setTimeout(Br((()=>{if(n){var e=i.get(r);e&&(t(e),i.delete(r))}})),0),e.apply(this,[r])}}));e.add(a)})):()=>{}}(e))),t.add(function(e){var t=e.doc,r=e.mirror,n=e.blockClass,s=e.blockSelector,i=e.selectionCb,o=!0,a=Br((()=>{var e=t.getSelection();if(!(!e||o&&null!=e&&e.isCollapsed)){o=e.isCollapsed||!1;for(var a=[],l=e.rangeCount||0,u=0;u<l;u++){var c=e.getRangeAt(u),d=c.startContainer,h=c.startOffset,p=c.endContainer,f=c.endOffset;vr(d,n,s,!0)||vr(p,n,s,!0)||a.push({start:r.getId(d),startOffset:h,end:r.getId(p),endOffset:f})}i({ranges:a})}}));return a(),sr("selectionchange",a)}(e)),t.add(function(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;return n&&n.customElements?O(n.customElements,"define",(function(e){return function(t,n,s){try{r({define:{name:t}})}catch(e){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,n,s])}})):()=>{}}(e)),e.plugins))t.add(g.observer(g.callback,r,g.options))}))):()=>{}}function Zr(e){return void 0!==window[e]}function Qr(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Xr{constructor(e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap,this.generateIdFn=e}getId(e,t,r,n){var s=r||this.getIdToRemoteIdMap(e),i=n||this.getRemoteIdToIdMap(e),o=s.get(t);return o||(o=this.generateIdFn(),s.set(t,o),i.set(o,t)),o}getIds(e,t){var r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,r,n)))}getRemoteId(e,t,r){var n=r||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1}getRemoteIds(e,t){var r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,r)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class _r{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Xr(Q),this.crossOriginIframeStyleMirror=void 0,this.crossOriginIframeRootIdMap=new WeakMap,this.mirror=void 0,this.mutationCb=void 0,this.wrappedEmit=void 0,this.loadListener=void 0,this.pageHideListener=void 0,this.stylesheetManager=void 0,this.recordCrossOriginIframes=void 0,this.messageHandler=void 0,this.nestedIframeListeners=new Map,this.attachedWindows=new WeakMap,this.attachedDocuments=new WeakMap,this.attachedIframes=new Map,this.loadListenerDisposers=new WeakMap,this.iframeElementsById=new Map,this.pageHideHandlers=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Xr(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.messageHandler=this.handleMessage.bind(this),this.recordCrossOriginIframes&&window.addEventListener("message",this.messageHandler)}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}registerLoadListenerDisposer(e,t){var r=this.loadListenerDisposers.get(e);r||(r=new Set,this.loadListenerDisposers.set(e,r)),r.add(t);var n=this.mirror.getId(e);-1!==n&&this.iframeElementsById.set(n,e)}getIframeElementById(e){var t,r,n;return null!=(t=null!=(r=null==(n=this.attachedIframes.get(e))?void 0:n.element)?r:this.iframeElementsById.get(e))?t:null}forgetIframeId(e){this.attachedIframes.delete(e),this.iframeElementsById.delete(e)}disposeLoadListeners(e){var t=this.loadListenerDisposers.get(e);t&&(t.forEach((e=>or(e))),this.loadListenerDisposers.delete(e))}removePageHideListener(e){var t=this.pageHideHandlers.get(e);t&&(t.forEach((e=>{ir(e.win,"pagehide",e.handler)})),this.pageHideHandlers.delete(e))}addLoadListener(e){this.loadListener=e}addPageHideListener(e){this.pageHideListener=e}removeLoadListener(){this.loadListener=void 0}trackIframeContent(e,t){var r=this.mirror.getId(e);return this.attachedIframes.set(r,{element:e,content:t}),r}attachIframe(e,t){var r,n=this.trackIframeContent(e,t);if(e.contentDocument){var s=this.attachedDocuments.get(e);s||(s=new Set,this.attachedDocuments.set(e,s)),s.add(e.contentDocument)}this.mutationCb({adds:[{parentId:n,nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0});var i=e.contentWindow;if(this.recordCrossOriginIframes&&i&&!this.nestedIframeListeners.has(i)){var o=this.handleMessage.bind(this);or((()=>{i.addEventListener("message",o),this.nestedIframeListeners.set(i,o);var t=this.attachedWindows.get(e);t||(t=new Set,this.attachedWindows.set(e,t)),t.add(i)}))}or((()=>{var t=e.contentWindow;if(t){var r=this.pageHideHandlers.get(e);if(r)for(var n of r)if(n.win===t)return;var s=()=>{var t;null==(t=this.pageHideListener)||t.call(this,e),e.contentDocument&&this.mirror.removeNodeFromMap(e.contentDocument),e.contentWindow&&this.crossOriginIframeMap.delete(e.contentWindow)};t.addEventListener("pagehide",s),r||(r=new Set,this.pageHideHandlers.set(e,r)),r.add({win:t,handler:s})}})),null==(r=this.loadListener)||r.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin&&e.source){var r=this.crossOriginIframeMap.get(e.source);if(r){var n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}}}transformCrossOriginEvent(e,t){switch(t.type){case u.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),this.trackIframeContent(e,t.data.node),{timestamp:t.timestamp,type:u.IncrementalSnapshot,data:{source:c.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case u.Meta:case u.Load:case u.DomContentLoaded:return!1;case u.Plugin:return t;case u.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case u.IncrementalSnapshot:switch(t.data.source){case c.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);var r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case c.Drag:case c.TouchMove:case c.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case c.ViewportResize:return!1;case c.MediaInteraction:case c.MouseInteraction:case c.Scroll:case c.CanvasMutation:case c.Input:return this.replaceIds(t.data,e,["id"]),t;case c.StyleSheetRule:case c.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case c.Font:return t;case c.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case c.AdoptedStyleSheet:var n;return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(n=t.data.styles)||n.forEach((t=>{this.replaceStyleIds(t,e,["styleId"])})),t}}return!1}replace(e,t,r,n){for(var s of n)(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===m.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}removeIframeById(e){var t=this.attachedIframes.get(e),r=(null==t?void 0:t.element)||this.iframeElementsById.get(e)||this.mirror.getNode(e);if(this.iframeElementsById.delete(e),r){var n=r.contentWindow,s=this.attachedWindows.get(r);s&&(s.forEach((e=>{var t=this.nestedIframeListeners.get(e);t&&(ir(e,"message",t),this.nestedIframeListeners.delete(e)),this.crossOriginIframeMap.delete(e)})),this.attachedWindows.delete(r)),n&&this.nestedIframeListeners.has(n)&&(ir(n,"message",this.nestedIframeListeners.get(n)),this.nestedIframeListeners.delete(n)),n&&this.crossOriginIframeMap.delete(n),this.iframes.delete(r),this.disposeLoadListeners(r),this.removePageHideListener(r);var i=this.attachedDocuments.get(r);i&&(i.forEach((e=>{or((()=>this.mirror.removeNodeFromMap(e)))})),or((()=>Ur(r,i))),this.attachedDocuments.delete(r))}t&&this.attachedIframes.delete(e)}cleanupDetachedIframes(){if(0!==this.attachedIframes.size){var e=[];this.attachedIframes.forEach(((t,r)=>{this.mirror.has(r)||e.push(r)})),e.forEach((e=>this.removeIframeById(e)))}}reattachIframes(){this.attachedIframes.forEach(((e,t)=>{var r=e.content;this.mirror.has(t)?this.mutationCb({adds:[{parentId:t,nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}):this.attachedIframes.delete(t)}))}destroy(){this.recordCrossOriginIframes&&ir(window,"message",this.messageHandler),this.nestedIframeListeners.forEach(((e,t)=>{ir(t,"message",e)})),this.nestedIframeListeners.clear();var e=new Set;this.iframeElementsById.forEach((t=>e.add(t))),this.attachedIframes.forEach((t=>{var r=t.element;return e.add(r)})),e.forEach((e=>{this.disposeLoadListeners(e),this.removePageHideListener(e)})),this.crossOriginIframeMirror.reset(),this.crossOriginIframeStyleMirror.reset(),this.attachedIframes.clear(),this.crossOriginIframeMap=new WeakMap,this.iframes=new WeakMap,this.crossOriginIframeRootIdMap=new WeakMap,this.loadListenerDisposers=new WeakMap,this.pageHideHandlers=new WeakMap,this.attachedDocuments=new WeakMap,this.attachedWindows=new WeakMap,this.iframeElementsById=new Map}}class $r{constructor(e){this.shadowDoms=new WeakSet,this.mutationCb=void 0,this.scrollCb=void 0,this.bypassOptions=void 0,this.mirror=void 0,this.generation={},this.documentGenerations=new WeakMap,this.cleanupFailed=!1,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){var r,s;if(N(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var i=null!=(r=null==(s=x.host(e))?void 0:s.ownerDocument)?r:t,o=Wr(n({},this.bypassOptions,{doc:i,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),l=o.observer,u=o.buffer;this.restoreHandlers.push({doc:i,handler:()=>{var e=a();e.add((()=>{var e=jr.indexOf(u);-1!==e&&jr.splice(e,1)})),e.add((()=>u.destroy())),e.add((()=>u.releaseCanvasManager())),e.add((()=>l.disconnect())),e.close()}}),this.restoreHandlers.push({doc:i,handler:zr(n({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))});var c=this.generation,d=this.documentGenerations.get(i);d||(d={},this.documentGenerations.set(i,d));var h=setTimeout((()=>{c===this.generation&&d===this.documentGenerations.get(i)&&(e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(x.host(e))),this.restoreHandlers.push({doc:i,handler:Yr({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e)}))}),0);this.restoreHandlers.push({doc:i,handler:()=>clearTimeout(h)})}}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){var r=this;this.restoreHandlers.push({doc:t,handler:O(e.prototype,"attachShadow",(function(e){return function(n){var s=e.call(this,n),i=x.shadowRoot(this);return i&&kr(this)&&r.addShadowRoot(i,t),s}}))})}disposeHandlers(e){var t=a();for(var r of e){var n=r.handler;t.add(n)}try{t.close()}catch(e){this.cleanupFailed=!0}if(this.cleanupFailed)throw new i}reset(){this.generation={},this.documentGenerations=new WeakMap;var e=this.restoreHandlers;this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.disposeHandlers(e)}resetForDoc(e){this.documentGenerations.set(e,{});var t=this.restoreHandlers.filter((t=>t.doc===e));this.restoreHandlers=this.restoreHandlers.filter((t=>t.doc!==e)),this.disposeHandlers(t)}}var en="skip-frame";function tn(e){if("object"!=typeof e||null===e)return!1;var t=e,r=t.x,n=t.y,s=t.width,i=t.height;return Number.isFinite(r)&&Number.isFinite(n)&&Number.isFinite(s)&&Number.isFinite(i)&&s>=0&&i>=0}for(var rn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nn="undefined"==typeof Uint8Array?[]:new Uint8Array(256),sn=0;sn<64;sn++)nn[rn.charCodeAt(sn)]=sn;var on=new Map,an=(e,t,r)=>{if(e&&(cn(e,t)||"object"==typeof e)){var n=function(e,t){var r=on.get(e);return r||(r=new Map,on.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),s=n.indexOf(e);return-1===s&&(s=n.length,n.push(e)),s}};function ln(e,t,r,n){if(e instanceof Array)return e.map((e=>ln(e,t,r,n)));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){var s=e.constructor.name,i=function(e){var t,r=new Uint8Array(e),n=r.length,s="";for(t=0;t<n;t+=3)s+=rn[r[t]>>2],s+=rn[(3&r[t])<<4|r[t+1]>>4],s+=rn[(15&r[t+1])<<2|r[t+2]>>6],s+=rn[63&r[t+2]];return n%3==2?s=s.substring(0,s.length-1)+"=":n%3==1&&(s=s.substring(0,s.length-2)+"=="),s}(e);return{rr_type:s,base64:i}}return e instanceof DataView?{rr_type:e.constructor.name,args:[ln(e.buffer,t,r,n),e.byteOffset,e.byteLength]}:e instanceof HTMLImageElement?{rr_type:e.constructor.name,src:e.src}:e instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:e.toDataURL(n.type,n.quality)}:e instanceof ImageData?{rr_type:e.constructor.name,args:[ln(e.data,t,r,n),e.width,e.height]}:cn(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:an(e,t,r)}:e}var un=(e,t,r,n)=>e.map((e=>ln(e,t,r,n))),cn=(e,t)=>{var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((e=>"function"==typeof t[e]));return Boolean(r.find((r=>e instanceof t[r])))},dn=["webgl","webgl2"];function hn(e){return"nodeType"in e}function pn(e,t,r,s){var i=[];try{if(s){var o=function(e,t,r){var s=e.GPUCanvasContext;if(null!=s&&s.prototype&&"function"==typeof s.prototype.configure)return O(s.prototype,"configure",(function(s){return function(i){var o=function(e){var t=e.canvas;return t&&"object"==typeof t?t:null}(this);if(!o||hn(o)&&vr(o,t,r,!0))return s.call(this,i);hn(o)&&!("__context"in o)&&(o.__context="webgpu");var a=function(e){var t=e.GPUTextureUsage;return t?t.COPY_SRC|t.RENDER_ATTACHMENT:null}(e);return null!==a&&i?s.call(this,n({},i,{usage:"number"==typeof i.usage?i.usage|a:a})):s.call(this,i)}}))}(e,t,r);o&&i.push(o)}var a=O(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(n){for(var i=function(e){return"experimental-webgl"===e?"webgl":e}(n),o=arguments.length,a=new Array(o>1?o-1:0),l=1;l<o;l++)a[l-1]=arguments[l];if(!vr(this,t,r,!0)&&("__context"in this||(this.__context=i),s&&dn.includes(i)))if(a[0]&&"object"==typeof a[0]){var u=a[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0});return e.apply(this,[n,...a])}}));i.push(a)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach((e=>e()))}}function fn(e,t,r,n,s,i,o){var a=[],l=Object.getOwnPropertyNames(e),u=function(l){if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))return 0;try{if("function"!=typeof e[l])return 0;var u=O(e,l,(function(e){return function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var d=e.apply(this,u);if(an(d,i,this),"tagName"in this.canvas&&!vr(this.canvas,n,s,!0)){var h=un(u,i,this,o),p={type:t,property:l,args:h};r(this.canvas,p)}return d}}));a.push(u)}catch(n){var c=cr(e,l,{set(e){r(this.canvas,{type:t,property:l,args:[e],setter:!0})}});a.push(c)}};for(var c of l)u(c);return a}class mn{constructor(){throw new Error("Canvas recording is unavailable")}}var vn,gn,yn,wn=["type"];class bn{onFullSnapshot(){var e;null==(e=this.resetFrameDedup)||e.call(this)}acquire(){this.refCount+=1}reset(){this.refCount>0&&(this.refCount-=1),this.refCount>0||this.teardown()}teardown(){this.torndown||(this.torndown=!0,this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers(),null!==this.rafIdTimestamp&&(cancelAnimationFrame(this.rafIdTimestamp),this.rafIdTimestamp=null),null!==this.rafIdFlush&&(cancelAnimationFrame(this.rafIdFlush),this.rafIdFlush=null))}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.mirror=void 0,this.mutationCb=void 0,this.resetObservers=void 0,this.frozen=!1,this.locked=!1,this.rafIdTimestamp=null,this.rafIdFlush=null,this.refCount=0,this.torndown=!1,this.resetFrameDedup=null,this.processMutation=(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};var t=e.sampling,r=void 0===t?"all":t,n=e.win,s=e.blockClass,i=e.blockSelector,o=e.recordCanvas,a=e.dataURLOptions,l=e.resolutionScale,u=e.canvasMasking;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&"all"===r&&this.initCanvasMutationObserver(n,s,i,a),o&&"number"==typeof r&&this.initCanvasFPSObserver(r,n,s,i,{dataURLOptions:a,resolutionScale:l,canvasMasking:u})}initCanvasFPSObserver(e,t,n,s,i){var o=this;if("OffscreenCanvas"in t){var a,l="number"==typeof i.resolutionScale&&Number.isFinite(i.resolutionScale)?Math.min(1,Math.max(.1,i.resolutionScale)):1,u=pn(t,n,s,!0),c=new Map;try{a=new mn}catch(e){return}var d=!1;a.onerror=()=>{d=!0,cancelAnimationFrame(h),null==a.terminate||a.terminate(),this.resetFrameDedup=null},this.resetFrameDedup=()=>{a.postMessage({resetFrameDedup:!0})},a.onmessage=e=>{var t=e.data.id;if(c.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,s=r.type,i=r.displayWidth,o=r.displayHeight;this.mutationCb({id:t,type:p["2D"],commands:[{property:"clearRect",args:[0,0,i,o]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:s}]},0,0,i,o]}],displayWidth:i,displayHeight:o})}};var h,f=1e3/e,m=0,v=e=>{var u,p;d||(m&&e-m<f||(m=e,(u=[],p=e=>{try{e.querySelectorAll("canvas").forEach((e=>{vr(e,n,s,!0)||u.push(e)})),e.querySelectorAll("*").forEach((e=>{e.shadowRoot&&p(e.shadowRoot)}))}catch(e){}},p(t.document),u).forEach(function(){var e=r((function*(e){var t=o.mirror.getId(e);if(!c.get(t)&&0!==e.width&&0!==e.height){c.set(t,!0);try{if(["webgl","webgl2"].includes(e.__context)){var r,n=e.getContext(e.__context);if(null!=n&&null!=n.isContextLost&&n.isContextLost())return void c.set(t,!1);!1===(null==n||null==(r=n.getContextAttributes())?void 0:r.preserveDrawingBuffer)&&n.clear(n.COLOR_BUFFER_BIT)}var s=e.clientWidth||e.width,u=e.clientHeight||e.height,d=Math.max(1,Math.round(s*l)),h=Math.max(1,Math.round(u*l)),p=function(e,t,r,n,s,i){if(e&&"function"==typeof e.regionsFn){var o;try{o=e.regionsFn(t)}catch(e){return en}if(void 0!==o){if(!Array.isArray(o)||!o.every(tn))return en;var a=r/s,l=n/i;return o.filter((e=>e.width>0&&e.height>0)).map((e=>{var t=Math.floor(e.x*a),r=Math.floor(e.y*l);return{x:t,y:r,width:Math.ceil((e.x+e.width)*a)-t,height:Math.ceil((e.y+e.height)*l)-r}}))}}}(i.canvasMasking,e,d,h,s,u);if(p===en)return void c.set(t,!1);var f=yield createImageBitmap(e,l<1?{resizeWidth:d,resizeHeight:h,resizeQuality:"medium"}:{resizeWidth:d,resizeHeight:h});a.postMessage({id:t,bitmap:f,width:d,height:h,displayWidth:s,displayHeight:u,dataURLOptions:i.dataURLOptions,maskRegions:p},[f])}catch(e){c.set(t,!1)}}}));return function(t){return e.apply(this,arguments)}}())),h=requestAnimationFrame(v))};h=requestAnimationFrame(v),this.resetObservers=()=>{u(),cancelAnimationFrame(h),null==a.terminate||a.terminate(),this.resetFrameDedup=null}}}initCanvasMutationObserver(e,t,r,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var s=pn(e,t,r,!1),i=function(e,t,r,n,s){var i=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),a=function(o){try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])return 1;var a=O(t.CanvasRenderingContext2D.prototype,o,(function(i){return function(){for(var a=arguments.length,l=new Array(a),u=0;u<a;u++)l[u]=arguments[u];return vr(this.canvas,r,n,!0)||setTimeout((()=>{var r=un(l,t,this,s);e(this.canvas,{type:p["2D"],property:o,args:r})}),0),i.apply(this,l)}}));i.push(a)}catch(r){var l=cr(t.CanvasRenderingContext2D.prototype,o,{set(t){e(this.canvas,{type:p["2D"],property:o,args:[t],setter:!0})}});i.push(l)}};for(var l of o)a(l);return()=>{i.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r,n),o=function(e,t,r,n,s){var i=[];return void 0!==t.WebGLRenderingContext&&i.push(...fn(t.WebGLRenderingContext.prototype,p.WebGL,e,r,n,t,s)),void 0!==t.WebGL2RenderingContext&&i.push(...fn(t.WebGL2RenderingContext.prototype,p.WebGL2,e,r,n,t,s)),()=>{i.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r,n);this.resetObservers=()=>{s(),i(),o()}}startPendingCanvasMutationFlusher(){this.rafIdFlush=requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){var e=t=>{this.rafStamps.latestId=t,this.rafIdTimestamp=requestAnimationFrame(e)};this.rafIdTimestamp=requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{var r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)})),this.rafIdFlush=requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map((e=>(e.type,s(e,wn)))),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}}}class Sn{constructor(e){this.trackedLinkElements=new WeakSet,this.mutationCb=void 0,this.adoptedStyleSheetCb=void 0,this.styleMirror=new Ir,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){var r=this;if(0!==e.length){var n={id:t,styleIds:[]},s=[],i=function(e){var t;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),s.push({styleId:t,rules:Array.from(e.rules||CSSRule,((t,r)=>({rule:D(t,e.href),index:r})))})),n.styleIds.push(t)};for(var o of e)i(o);s.length>0&&(n.styles=s),this.adoptedStyleSheetCb(n)}}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet,ue()}trackStylesheetInLinkElement(e){}}class Cn{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some((e=>e!==t))}add(e,t){this.active||(this.active=!0,requestAnimationFrame((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}var In=!1;try{if(2!==Array.from([1],(e=>2*e))[0]){var Mn,kn=document.createElement("iframe");document.body.appendChild(kn),Array.from=(null==(Mn=kn.contentWindow)?void 0:Mn.Array.from)||Array.from,document.body.removeChild(kn)}}catch(e){console.debug("Unable to override Array.from",e)}var On=new T,xn=new Set([c.Mutation,c.MediaInteraction,c.StyleSheetRule,c.CanvasMutation,c.Font,c.Log,c.StyleDeclaration,c.AdoptedStyleSheet]);function En(e){void 0===e&&(e={});var t=e,r=t.emit,s=t.checkoutEveryNms,i=t.checkoutEveryNth,l=t.blockClass,d=void 0===l?"rr-block":l,h=t.blockSelector,p=void 0===h?null:h,f=t.ignoreClass,m=void 0===f?"rr-ignore":f,v=t.ignoreSelector,g=void 0===v?null:v,y=t.maskTextClass,w=void 0===y?"rr-mask":y,b=t.maskTextSelector,S=void 0===b?null:b,C=t.inlineStylesheet,I=void 0===C||C,M=t.maskAllInputs,k=t.maskInputOptions,O=t.slimDOMOptions,E=t.maskInputFn,R=t.maskTextFn,N=t.hooks,A=t.packFn,D=t.sampling,L=void 0===D?{}:D,F=t.dataURLOptions,P=void 0===F?{}:F,B=t.canvasResolutionScale,j=t.canvasMasking,H=t.mousemoveWait,W=t.recordDOM,z=void 0===W||W,U=t.recordCanvas,G=void 0!==U&&U,J=t.recordCrossOriginIframes,V=void 0!==J&&J,K=t.recordAfter,Y=void 0===K?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":K,q=t.userTriggeredOnInput,Z=void 0!==q&&q,Q=t.collectFonts,X=void 0!==Q&&Q,_=t.inlineImages,$=void 0!==_&&_,ee=t.plugins,te=t.keepIframeSrcFn,re=void 0===te?()=>!1:te,ne=t.ignoreCSSAttributes,se=void 0===ne?new Set([]):ne,ie=t.attributeFilter,oe=t.errorHandler,ae=n({type:"image/webp",quality:.4,maxBase64ImageLength:1048576},P),le=!V||window.parent===window,ce=!1;if(!le)try{window.parent.document&&(ce=!1)}catch(e){ce=!0}if(le&&!r)throw new Error("emit function is required");if(!le&&!ce)return()=>{};void 0!==H&&void 0===L.mousemove&&(L.mousemove=H);var de,he=a(),pe=!1,ve=[],ge=()=>{pe=!0,In=!1,he.close()},ye=e=>{pe?he.add(e):ve.push(e)},we=e=>{o(e)&&he.poison(),ge(),oe?oe(e):console.warn(e)};try{Fr(oe),he.add(Pr),he.add((()=>On.reset())),he.add(ue),On.reset();var be,Se=!0===M?{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}:void 0!==k?k:{password:!0},Ce=me(void 0!==O&&O);void 0===de&&(de=window),"NodeList"in de&&!de.NodeList.prototype.forEach&&(de.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in de&&!de.DOMTokenList.prototype.forEach&&(de.DOMTokenList.prototype.forEach=Array.prototype.forEach);var Ie,Me,ke=0,Oe=new Map,xe=e=>{for(var t of ee||[])t.eventProcessor&&(e=t.eventProcessor(e));return A&&!ce&&(e=A(e)),e},Ee=(e,t)=>{var n;if(!pe){var o=e;if(o.timestamp=dr(),null==(n=jr[0])||!n.isFrozen()||o.type===u.FullSnapshot||o.type===u.IncrementalSnapshot&&xn.has(o.data.source)||jr.forEach((e=>e.unfreeze())),le)null==r||r(xe(o),t);else if(ce){var a={type:"rrweb",event:xe(o),origin:window.location.origin,isCheckout:t};window.parent.postMessage(a,"*")}if(o.type===u.FullSnapshot)be=o,ke=0;else if(o.type===u.IncrementalSnapshot){if(o.data.source===c.Mutation&&o.data.isAttachIframe)return;ke++;var l=i&&ke>=i,d=s&&o.timestamp-be.timestamp>s;(l||d)&&je(!0)}}};vn=Ee;var Re=e=>{if(e.removes&&e.removes.length>0){var t=e.adds.length>0?new Set(e.adds.map((e=>e.node.id))):null,r=new Set;if(e.adds.length>0)for(var s of e.adds){var i=On.getNode(s.node.id);i&&"IFRAME"===i.nodeName&&r.add(i)}e.removes.forEach((e=>{var n=e.id;if(!t||!t.has(n)){var s=Te.getIframeElementById(n);s&&r.has(s)?Te.forgetIframeId(n):(null==Ie||Ie(n),Te.removeIframeById(n))}})),null==Me||Me(),Te.cleanupDetachedIframes()}Ee({type:u.IncrementalSnapshot,data:n({source:c.Mutation},e)})},Ne=e=>Ee({type:u.IncrementalSnapshot,data:n({source:c.Scroll},e)}),Ae=e=>Ee({type:u.IncrementalSnapshot,data:n({source:c.CanvasMutation},e)}),De=new Sn({mutationCb:Re,adoptedStyleSheetCb:e=>Ee({type:u.IncrementalSnapshot,data:n({source:c.AdoptedStyleSheet},e)})});he.add((()=>De.reset()));var Te=new _r({mirror:On,mutationCb:Re,stylesheetManager:De,recordCrossOriginIframes:V,wrappedEmit:Ee});for(var Le of(he.add((()=>Te.destroy())),ee||[]))Le.getMirror&&Le.getMirror({nodeMirror:On,crossOriginIframeMirror:Te.crossOriginIframeMirror,crossOriginIframeStyleMirror:Te.crossOriginIframeStyleMirror});var Fe=new Cn;he.add((()=>Fe.destroy()));var Pe=null==j?void 0:j.configured;yn=new bn({recordCanvas:G,mutationCb:Ae,win:window,blockClass:d,blockSelector:p,mirror:On,sampling:L.canvas,dataURLOptions:ae,resolutionScale:B,canvasMasking:j}),he.add((()=>yn.reset()));var Be=new $r({mutationCb:Re,scrollCb:Ne,bypassOptions:{blockClass:d,blockSelector:p,maskTextClass:w,maskTextSelector:S,inlineStylesheet:I,maskInputOptions:Se,dataURLOptions:ae,maskTextFn:R,maskInputFn:E,recordCanvas:G,canvasMaskingConfigured:Pe,inlineImages:$,sampling:L,slimDOMOptions:Ce,iframeManager:Te,stylesheetManager:De,canvasManager:yn,keepIframeSrcFn:re,processedNodeManager:Fe,attributeFilter:ie},mirror:On});he.add((()=>Be.reset()));var je=function(e){if(void 0===e&&(e=!1),!pe&&z){Ee({type:u.Meta,data:{href:window.location.href,width:fr(),height:pr()}},e),De.reset(),Be.init(),jr.forEach((e=>e.lock()));var t=function(e,t){var r=t||{},n=r.mirror,s=void 0===n?new T:n,i=r.blockClass,o=r.blockSelector,a=r.maskTextClass,l=r.maskTextSelector,u=r.inlineStylesheet,c=r.inlineImages,d=void 0!==c&&c,h=r.recordCanvas,p=void 0!==h&&h,f=r.canvasMaskingConfigured,m=r.maskAllInputs,v=void 0!==m&&m,g=r.slimDOM,y=r.dataURLOptions,w=r.preserveWhiteSpace,b=r.onSerialize,S=r.onIframeLoad,C=r.iframeLoadTimeout,I=r.onIframeListenerRegistered,M=r.onStylesheetLoad,k=r.stylesheetLoadTimeout,O=r.keepIframeSrcFn,x=void 0===O?()=>!1:O,E=r.maxDepth;return fe(e,{doc:e,mirror:s,blockClass:void 0===i?"rr-block":i,blockSelector:void 0===o?null:o,maskTextClass:void 0===a?"rr-mask":a,maskTextSelector:void 0===l?null:l,skipChild:!1,inlineStylesheet:void 0===u||u,maskInputOptions:!0===v?{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}:!1===v?{password:!0}:v,maskTextFn:r.maskTextFn,maskInputFn:r.maskInputFn,slimDOMOptions:me(void 0!==g&&g),dataURLOptions:y,inlineImages:d,recordCanvas:p,canvasMaskingConfigured:f,preserveWhiteSpace:w,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:C,onIframeListenerRegistered:I,onStylesheetLoad:M,stylesheetLoadTimeout:k,keepIframeSrcFn:x,newlyAddedElement:!1,maxDepth:E})}(document,{mirror:On,blockClass:d,blockSelector:p,maskTextClass:w,maskTextSelector:S,inlineStylesheet:I,maskAllInputs:Se,maskTextFn:R,maskInputFn:E,slimDOM:Ce,dataURLOptions:ae,recordCanvas:G,canvasMaskingConfigured:Pe,inlineImages:$,onSerialize:e=>{br(e,On)&&Te.addIframe(e),Sr(e,On)&&De.trackLinkElement(e),Cr(e)&&Be.addShadowRoot(x.shadowRoot(e),document)},onIframeLoad:(e,t)=>{Te.attachIframe(e,t),Be.observeAttachShadow(e)},onIframeListenerRegistered:(e,t)=>{Te.registerLoadListenerDisposer(e,t)},onStylesheetLoad:(e,t)=>{De.attachLinkElement(e,t)},keepIframeSrcFn:re});if(!t)return console.warn("Failed to snapshot the document");Ee({type:u.FullSnapshot,data:{node:t,initialOffset:hr(window)}},e),jr.forEach((e=>e.unlock())),yn.onFullSnapshot(),V&&Te.reattachIframes(),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&De.adoptStyleSheets(document.adoptedStyleSheets,On.getId(document))}};gn=je,he.add((()=>Oe.clear())),he.add((()=>{var e=a();for(var t of ve)e.add(t);ve.length=0,e.close()})),Ie=e=>{var t=Oe.get(e);if(t){var r=a();t.forEach((e=>{r.add(e);var t=ve.indexOf(e);-1!==t&&ve.splice(t,1)})),Oe.delete(e),r.close()}},Me=()=>{for(var e of Oe){var t=e[0],r=On.getNode(t);if(r)try{r.contentDocument&&r.contentDocument.defaultView||null==Ie||Ie(t)}catch(e){null==Ie||Ie(t)}else null==Ie||Ie(t)}};var He=e=>{var t;return qr({mutationCb:Re,mousemoveCb:(e,t)=>Ee({type:u.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Ee({type:u.IncrementalSnapshot,data:n({source:c.MouseInteraction},e)}),scrollCb:Ne,viewportResizeCb:e=>Ee({type:u.IncrementalSnapshot,data:n({source:c.ViewportResize},e)}),inputCb:e=>Ee({type:u.IncrementalSnapshot,data:n({source:c.Input},e)}),mediaInteractionCb:e=>Ee({type:u.IncrementalSnapshot,data:n({source:c.MediaInteraction},e)}),styleSheetRuleCb:e=>Ee({type:u.IncrementalSnapshot,data:n({source:c.StyleSheetRule},e)}),styleDeclarationCb:e=>Ee({type:u.IncrementalSnapshot,data:n({source:c.StyleDeclaration},e)}),canvasMutationCb:Ae,fontCb:e=>Ee({type:u.IncrementalSnapshot,data:n({source:c.Font},e)}),selectionCb:e=>{Ee({type:u.IncrementalSnapshot,data:n({source:c.Selection},e)})},customElementCb:e=>{Ee({type:u.IncrementalSnapshot,data:n({source:c.CustomElement},e)})},blockClass:d,ignoreClass:m,ignoreSelector:g,maskTextClass:w,maskTextSelector:S,maskInputOptions:Se,inlineStylesheet:I,sampling:L,recordDOM:z,recordCanvas:G,canvasMaskingConfigured:Pe,inlineImages:$,userTriggeredOnInput:Z,collectFonts:X,doc:e,maskInputFn:E,maskTextFn:R,keepIframeSrcFn:re,blockSelector:p,slimDOMOptions:Ce,dataURLOptions:ae,mirror:On,iframeManager:Te,stylesheetManager:De,shadowDomManager:Be,processedNodeManager:Fe,canvasManager:yn,ignoreCSSAttributes:se,attributeFilter:ie,plugins:(null==ee||null==(t=ee.filter((e=>e.observer)))?void 0:t.map((e=>({observer:e.observer,options:e.options,callback:t=>Ee({type:u.Plugin,data:{plugin:e.name,payload:t}})}))))||[]},N)};Te.addLoadListener((e=>{if(!pe)try{var t=On.getId(e),r=He(e.contentDocument);if(ye(r),-1!==t){var n=Oe.get(t);n||(n=new Set,Oe.set(t,n)),n.add(r)}}catch(e){we(e)}})),Te.addPageHideListener((e=>{var t=On.getId(e);null==Ie||Ie(t),Ur(e)}));var We=-1,ze=e=>Ee({type:u.Custom,data:{tag:"rrweb/fullscreen",payload:e}}),Ue=()=>{var e,t,r,n,s=document,i=null!=(e=null!=(t=null!=(r=null!=(n=s.fullscreenElement)?n:s.webkitFullscreenElement)?r:s.mozFullScreenElement)?t:s.msFullscreenElement)?e:null,o=i?On.getId(i):-1;o!==We&&(-1!==We&&ze({id:We,enter:!1}),We=o,-1!==o&&ze({id:o,enter:!0}))},Ge=!1,Je=()=>{pe||Ge||(Ge=!0,je(),pe||(ye(He(document)),ye(sr("fullscreenchange",Ue)),ye(sr("webkitfullscreenchange",Ue)),ye(sr("mozfullscreenchange",Ue)),ye(sr("MSFullscreenChange",Ue)),In=!0))};return["interactive","complete"].includes(document.readyState)?Je():(ye(sr("DOMContentLoaded",(()=>{if(!pe)try{Ee({type:u.DomContentLoaded,data:{}}),"DOMContentLoaded"===Y&&Je()}catch(e){we(e)}}))),ye(sr("load",(()=>{if(!pe)try{Ee({type:u.Load,data:{}}),"load"===Y&&Je()}catch(e){we(e)}}),window))),ge}catch(e){we(e)}}En.addCustomEvent=(e,t)=>{if(!In)throw new Error("please add custom event after start recording");vn({type:u.Custom,data:{tag:e,payload:t}})},En.freezePage=()=>{jr.forEach((e=>e.freeze()))},En.takeFullSnapshot=e=>{if(!In)throw new Error("please take full snapshot after start recording");gn(e)},En.mirror=On;var Rn,Nn=(e,t,r)=>{var n=()=>{throw new Error("Invalid internal text data")};(!Number.isSafeInteger(t)||t<1||t>1e6||!Number.isSafeInteger(r)||r<1||r>1e4||e.length>2e6||e.length%4!=0)&&n();for(var s=e.endsWith("==")?2:e.endsWith("=")?1:0,i=new Uint8Array(e.length/4*3-s),o=0,a=0,l=0,u=0;u<e.length-s;u++){var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(e.charAt(u));c<0&&n(),l=l<<6|c,(a+=6)>=8&&(a-=8,i[o++]=l>>>a&255)}a&&l&(1<<a)-1&&n();for(var d,h,p=new Uint8Array(t),f=0,m=0,v=e=>{m+e>8*i.length&&n();var t=m>>>3,r=(i[t]|i[t+1]<<8|i[t+2]<<16)>>>(7&m)&(1<<e)-1;return m+=e,r},g=(e,t,r)=>{for(var s=new Uint16Array(16),i=0,o=0;o<e.length;o++){var a=e[o];a>15&&n(),a&&(s[a]++,i=Math.max(i,a))}for(var l=1,u=1;u<=15;u++)(l=2*l-s[u])<0&&n();(i?!l||t&&1===i&&1===s[1]:r)||n();for(var c=new Uint16Array(16),d=1;d<15;d++)c[d+1]=c[d]+s[d];for(var h=new Uint16Array(e.length),p=0;p<e.length;p++){var f=e[p];f&&(h[c[f]++]=p)}return{counts:s,symbols:h,maximum:i}},y=e=>{for(var t=0,r=0,s=0,i=1;i<=e.maximum;i++){t=t<<1|v(1);var o=e.counts[i];if(t>=r&&t-r<o)return e.symbols[s+t-r];s+=o,r=r+o<<1}return n()},w=0,b=0;!w;){++b>1024&&n(),w=v(1);var S=v(2);if(0===S){m=m+7&-8;var C=v(16);(65535!=(C^v(16))||f+C>t||m+8*C>8*i.length)&&n(),p.set(i.subarray(m>>>3,(m>>>3)+C),f),f+=C,m+=8*C}else{var I=void 0,M=void 0;if(1===S){if(!d||!h){for(var k=new Uint8Array(288),O=0;O<k.length;O++)k[O]=O<144?8:O<256?9:O<280?7:8;d=g(k,!1,!1);for(var x=new Uint8Array(32),E=0;E<x.length;E++)x[E]=5;h=g(x,!1,!1)}I=d,M=h}else{if(2!==S)return n();var R=v(5)+257,N=v(5)+1,A=v(4)+4;R>286&&n();for(var D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],T=new Uint8Array(19),L=0;L<A;L++)T[D[L]]=v(3);for(var F=g(T,!1,!1),P=new Uint8Array(R+N),B=0;B<P.length;){var j=y(F);if(j<16)P[B++]=j;else{16!==j||B||n();var H=16===j?P[B-1]:0,W=16===j?v(2)+3:17===j?v(3)+3:v(7)+11;B+W>P.length&&n();for(var z=B+W;B<z;B++)P[B]=H}}P[256]||n(),I=g(P.subarray(0,R),!0,!1),M=g(P.subarray(R),!0,!0)}for(;;){var U=y(I);if(256===U)break;if(U<256)f===t&&n(),p[f++]=U;else{U>285&&n();var G=U-257,J=(G>>>2)-1,V=G<8?G+3:28===G?258:3+(4+(3&G)<<J)+v(J),K=y(M);K>29&&n();var Y=(K>>>1)-1,q=K<4?K+1:1+(2+(1&K)<<Y)+v(Y);(q>f||f+V>t)&&n();for(var Z=0;Z<V;Z++)p[f]=p[f-q],f++}}}}f===t&&Math.ceil(m/8)===i.length||n();for(var Q="",X=0;X<f;X+=4096)Q+=String.fromCharCode.apply(null,p.subarray(X,Math.min(X+4096,f)));var _=JSON.parse(Q);return Array.isArray(_)&&_.length===r&&!_.some((e=>"string"!=typeof e))||n(),Object.freeze(_)},An=e=>(Rn||(Rn=Nn("rX3bktw2suCvIDrOw25ss92SJVuaiX3QxT6jM7al6JY9EbuxoUCRqCpOswgaAKu75utPZCbuAFnVE/vgshqZCZK4JPKO/3vFes1GaRhn2qh+3F1dX7HDrA3bCMZHJjf/FK25ur76j63gZlbi23bgu28tHwbRFc1CKamK1omfBslLbCX0JEctAKCNVKL7tlNynr5NSk5CmV7oFdBNBJuE0nJM6V7dvmXuCfRF8Jn92A5zJ9idMOrUvNsaAe/76mWEG4FgcPrxyIe+y7Gwx3pvr7sXmzcv+fbHH77nr1/dvn7zo3i53bx6+4b/IN6+vn395sXr7e33P37ffv/m1W33+oftm83rH95ub18JLt62/Afo4unpghd6e3v744u3b1++fvXjq9u3b19cXV+9G9lPv/zO2kHwcZ7YlveD6P7KlD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JkipynNi0K+Rdw03/so/8BGNPJ2WCsaGtOMRXEMWWWue5r9B9cYRWgUo3ILNHimItxD94qRlBtsVyxerI3B6F+feQ/phmtkyq1UflDr5AQGearaiMOB1eXXtu6Tif63rPbD11VNODwGj6UD3ja1Ug8JvbVG92V0qK7fBykOpUO06f8Cn96UkVxMdWP5938B",6362,353),Tn=Dn[0];Dn[1];var Ln=Dn[2],Fn=Dn[3];Dn[4],Dn[5],Dn[6];var Pn=Dn[7],Bn=Dn[8];Dn[9],Dn[10],Dn[11],Dn[12],Dn[13],Dn[14],Dn[15],Dn[16],Dn[17],Dn[18],Dn[19],Dn[20],Dn[21];var jn=Dn[22],Hn=Dn[23];Dn[24],Dn[25],Dn[26],Dn[27],Dn[28],Dn[29],Dn[30],Dn[31],Dn[32],Dn[33];var Wn=Dn[34];Dn[35],Dn[36];var zn=Dn[37],Un=Dn[38];Dn[39],Dn[40],Dn[41],Dn[42],Dn[43],Dn[44];var Gn=Dn[45];Dn[46],Dn[47];var Jn=Dn[48];Dn[49],Dn[50],Dn[51];var Vn=Dn[52],Kn=Dn[53];Dn[54],Dn[55],Dn[56],Dn[57],Dn[58],Dn[59];var Yn=Dn[60];Dn[61],Dn[62],Dn[63],Dn[64];var qn=Dn[65];Dn[66];var Zn=Dn[67];Dn[68],Dn[69],Dn[70],Dn[71],Dn[72],Dn[73],Dn[74],Dn[75],Dn[76],Dn[77],Dn[78],Dn[79],Dn[80];var Qn=Dn[81];Dn[82];var Xn=Dn[83];Dn[84];var _n=Dn[85],$n=Dn[86];Dn[87],Dn[88],Dn[89],Dn[90];var es=Dn[91];Dn[92],Dn[93],Dn[94];var ts=Dn[95];Dn[96],Dn[97],Dn[98],Dn[99],Dn[100],Dn[101],Dn[102],Dn[103],Dn[104],Dn[105],Dn[106],Dn[107],Dn[108],Dn[109],Dn[110];var rs=Dn[111];Dn[112];var ns=Dn[113];Dn[114],Dn[115],Dn[116],Dn[117];var ss=Dn[118];Dn[119],Dn[120],Dn[121],Dn[122],Dn[123],Dn[124],Dn[125],Dn[126],Dn[127],Dn[128],Dn[129],Dn[130],Dn[131];var is=Dn[132],os=Dn[133],as=Dn[134],ls=Dn[135],us=Dn[136];Dn[137],Dn[138];var cs=Dn[139];Dn[140],Dn[141],Dn[142],Dn[143],Dn[144],Dn[145],Dn[146];var ds=Dn[147];Dn[148],Dn[149],Dn[150];var hs=Dn[151];Dn[152],Dn[153],Dn[154],Dn[155],Dn[156],Dn[157],Dn[158],Dn[159],Dn[160],Dn[161],Dn[162],Dn[163],Dn[164],Dn[165],Dn[166],Dn[167],Dn[168],Dn[169];var ps=Dn[170],fs=Dn[171];Dn[172],Dn[173],Dn[174],Dn[175],Dn[176],Dn[177],Dn[178],Dn[179];var ms=Dn[180];Dn[181],Dn[182];var vs=Dn[183];Dn[184],Dn[185],Dn[186],Dn[187],Dn[188],Dn[189],Dn[190],Dn[191],Dn[192],Dn[193],Dn[194];var gs=Dn[195],ys=Dn[196];Dn[197],Dn[198],Dn[199],Dn[200],Dn[201],Dn[202];var ws=Dn[203];Dn[204],Dn[205],Dn[206],Dn[207],Dn[208],Dn[209],Dn[210],Dn[211];var bs=Dn[212];Dn[213],Dn[214];var Ss=Dn[215],Cs=Dn[216],Is=Dn[217];Dn[218],Dn[219];var Ms=Dn[220],ks=Dn[221];Dn[222],Dn[223],Dn[224];var Os=Dn[225];Dn[226],Dn[227];var xs=Dn[228];Dn[229];var Es=Dn[230];Dn[231];var Rs=Dn[232],Ns=Dn[233];Dn[234],Dn[235];var As=Dn[236];Dn[237];var Ds=Dn[238];Dn[239];var Ts=Dn[240];Dn[241],Dn[242],Dn[243];var Ls=Dn[244];Dn[245],Dn[246],Dn[247],Dn[248],Dn[249],Dn[250],Dn[251];var Fs=Dn[252],Ps=Dn[253];Dn[254],Dn[255],Dn[256],Dn[257],Dn[258],Dn[259],Dn[260],Dn[261];var Bs=Dn[262];Dn[263],Dn[264],Dn[265],Dn[266],Dn[267],Dn[268];var js=Dn[269];Dn[270],Dn[271];var Hs=Dn[272];Dn[273],Dn[274];var Ws=Dn[275];Dn[276],Dn[277],Dn[278],Dn[279],Dn[280],Dn[281],Dn[282],Dn[283];var zs=Dn[284];Dn[285],Dn[286],Dn[287],Dn[288];var Us=Dn[289];Dn[290],Dn[291],Dn[292],Dn[293],Dn[294],Dn[295],Dn[296],Dn[297],Dn[298],Dn[299],Dn[300],Dn[301],Dn[302],Dn[303],Dn[304];var Gs=Dn[305];Dn[306],Dn[307];var Js=Dn[308];Dn[309],Dn[310],Dn[311],Dn[312],Dn[313],Dn[314],Dn[315],Dn[316];var Vs=Dn[317];Dn[318],Dn[319],Dn[320],Dn[321],Dn[322];var Ks=Dn[323],Ys=Dn[324];Dn[325],Dn[326],Dn[327],Dn[328],Dn[329],Dn[330],Dn[331],Dn[332],Dn[333];var qs=Dn[334];Dn[335],Dn[336],Dn[337],Dn[338],Dn[339],Dn[340],Dn[341],Dn[342],Dn[343],Dn[344],Dn[345],Dn[346],Dn[347];var Zs=Dn[348];Dn[349],Dn[350];var Qs=Dn[351];Dn[352];var Xs=Array.isArray,_s=e=>Xs(e),$s=e=>"object"==typeof e&&null!=e&&!_s(e),ei=e=>"string"==typeof e,ti=e=>!0===e||!1===e,ri=e=>"function"==typeof e,ni=e=>{for(var t=0,r=0;r<e[Rs];r+=1){var n=e[_n](r);if(n>=55296&&n<=56319){var s=e[_n](r+1);if(r+1>=e[Rs]||s<56320||s>57343)return null;r+=1}else if(n>=56320&&n<=57343)return null;t+=1}return t},si=e=>"number"==typeof e&&Number[Ks](e),ii=e=>si(e)&&Number[Pn](e)&&e>=0,oi=e=>Object.is(e,null),ai=(e,t)=>Object.prototype[os].call(e,t),li=(e,t)=>Object.prototype[os].call(e,t),ui=(e,t)=>{var r=new Set(t);return Object.keys(e).every((e=>r.has(e)))},ci=e=>Object.freeze(e),di=Nn("lVZNk9xEDP0rqj3H1IaCXDhtskAlB0hlFjhQHDTdst1MW2rU8nzw66luj+2Z2U2A44xtfbz39KTf79rRR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4MSXfYwRNZ93VxX3vCfOs7YMpSfOBLItE1c+eKKjPVKJov9tdayNuFGz6GUfWeKe/FOvMnb9ppTCjup65pfX2VQHDFSYXIvMlFCxuOH2BAjlXMAFqM20Mt+KWDbFIgqb/asZGf2+eO20XmlPbMuIVkdy1c2W4wHytPuW8N+zTxLYPpHp6eGz+yP3qOThLJLzGgccfXjBWSYbLDcE/WuTVyvrQkBVwZM9rQfWrVNl4uXd0qLw1e75P1pG5yiVE0GGpBNG+caiRqbsMJGvElWpZ4Oiszo/FfsZXhiTn5xqreF8Re6nq+f5NXmdKmEBYpX8qCrdFLK2OyvfZEc12HqYTZyvctvRaWGhlRjlsJIQK7uXR9BXXziWrks00iFwpfTataltqdbQDJh3gbvmQLgjbaxHbpLE4JaLYT1hP3dlz56+vlm7NaAjudEuTgRIxL7cGEpR0Ff3z2MRBvkbV5rJKF6I1yb/zAhnta+H7B//AA==",3110,85);di[0],di[1],di[2],di[3],di[4],di[5],di[6],di[7],di[8],di[9],di[10],di[11],di[12],di[13],di[14],di[15],di[16],di[17],di[18];var hi=di[19];di[20],di[21],di[22];var pi=di[23];di[24],di[25],di[26],di[27],di[28],di[29],di[30],di[31],di[32],di[33],di[34],di[35],di[36],di[37],di[38],di[39],di[40],di[41],di[42],di[43],di[44],di[45],di[46],di[47],di[48],di[49],di[50],di[51],di[52],di[53],di[54],di[55],di[56],di[57],di[58],di[59],di[60],di[61],di[62],di[63],di[64],di[65],di[66],di[67],di[68],di[69],di[70],di[71],di[72],di[73],di[74],di[75],di[76],di[77],di[78],di[79],di[80],di[81],di[82],di[83],di[84];var fi="https://ingest.elu.dev";ci({[Zs]:ci([fi]),[Ls]:ci([fi]),[Hs]:ci([fi]),assets:ci(["https://assets.elu.dev"])});var mi,vi=ci({[Zs]:"/v1/events",[Ls]:"/v1/replay",[Hs]:"/v1/flags",assets:"/sdk/"}),gi=ci({[Zs]:"/v1/events",[Ls]:"/v2/replay",[Hs]:"/v1/flags",assets:"/sdk/"});ci({1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Ue5VQxMgZTxVQTSRiwHEHpt2G2leuWnK3kt9gA1UwjShVqi78YqOY6OskXC0l8iGHhC4VmVQyZf7c7jqDIF18JZEUq4mbKGwnZHoQrGCbkiOUzvJ0VgzPpR5gUxHB7unSalBetkss8V3Eh6WtOaRJzHelExg2PACpNtC5cFYkz+Rs9CilKFhhfIT0MHavx1jCFtIgc4p4jSJAUtPLrVbmUoTbE2ubadNylCG0SW3jP3P8Bnf3sweQx2HULcATE6FJSPtBVts7pXwH40EP6uVWI/H/3+M7DgOUyRIcdMLNKM4+slXdGUZFiNKT/uG3Gn+rwgYSxpIvvETdWeW2/kMCZNJz1vpbPN8mv0t0qkVub7q8KB8bTsfhRz2k5HlO0/GEDO2KJRfQ3rHY9t6ZKNMeM1z2fUL2esuOx0d2RX5+yyM41b3DGZTzKiBncr3qwjYNkTY90gZoTsZ1tPWd45unPVWWP1+XC1H//PQgDeR5683bVjd8riZxf3tn38B",2953,79)),mi[e]),wi=/^(\d{4})-(\d{2})-(\d{2})[Tt](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(?:[Zz]|([+-])(\d{2}):(\d{2}))$/,bi=(e,t)=>{throw new Error(e+" "+t)},Si=function(e,t,r){var s;if(!ei(e))return bi(t,yi(52));var i=ni(e);if(oi(i)||i<1||i>r)return bi(t,"must contain between 1 and "+r+" Unicode scalars");var o=wi.exec(e);if(!o)return bi(t,yi(51));var a=Number(o[1]),l=Number(o[2]),u=Number(o[3]),c=Number(o[4]),d=Number(o[5]),h=Number(o[6]),p=(null!=(s=o[7])?s:"").replace(/0+$/,""),f=o[9]?Number(o[9]):0,m=o[10]?Number(o[10]):0;(l<1||l>12||u<1||u>((e,t)=>{var r=new Date(0);return r[as](e,t,0),r.getUTCDate()})(a,l)||c>23||d>59||h>60||f>23||m>59)&&bi(t,yi(49));var v=new Date(0);v[as](a,l-1,u),v.setUTCHours(c,d,Math.min(h,59),0);var g=v.getTime()/1e3-("-"===o[8]?-1:1)*(60*f+m)*60;si(g)&&Number[Pn](g)||bi(t,yi(33));var y=60===h;if(y){var w=new Date(1e3*(g+1));0===w.getUTCHours()&&0===w.getUTCMinutes()&&0===w.getUTCSeconds()&&1===w.getUTCDate()&&(0===w.getUTCMonth()||6===w.getUTCMonth())||bi(t,yi(54))}var b=(e=>{var t=Math.floor(e/86400);return ci({epochDay:t,[ss]:e-86400*t})})(g);return ci(n({source:e},b,{[$n]:y,[Bn]:p}))};ci(["Asia/Nicosia","Asia/Famagusta","Atlantic/Canary","Atlantic/Madeira","Atlantic/Azores","Atlantic/Reykjavik","Atlantic/Faroe","Africa/Ceuta","America/Cayenne","America/Guadeloupe","America/Martinique","Indian/Reunion","Indian/Mayotte"]);var Ci=ci({sampled:!1,[Zn]:!1,[ps]:!1,[Qn]:0,[Ts]:null}),Ii=new Set(["password","email","tel","hidden"]),Mi=["src","srcset"],ki=new Set(["img","picture","source"]),Oi=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),xi=(e,t,r)=>{var s=n({},t),i="string"==typeof s.type?s.type[us]():"";if(("all"===r.inputRule||Ii.has(i)||"textarea"===e)&&"value"in s&&delete s.value,"block"===r.imageRule&&ki.has(e))for(var o of Mi)o in s&&delete s[o];return s},Ei=(e,t)=>{if(!Oi(e))return e;var r=n({},e),s=r.type;if(5===s)r.textContent="";else if(3===s&&"all"===t.textRule)!0!==r.isStyle&&(r.textContent="");else if(2===s){var i="string"==typeof r.tagName?r.tagName[us]():"";Oi(r[ms])&&(r[ms]=xi(i,r[ms],t))}return Array.isArray(r.childNodes)&&(r.childNodes=r.childNodes.map((e=>Ei(e,t)))),r},Ri=(e,t)=>{var r=n({},e);return"all"===t.textRule&&Array.isArray(r.texts)&&(r.texts=r.texts.map((e=>Oi(e)?n({},e,{value:""}):e))),Array.isArray(r[ms])&&(r[ms]=r[ms].map((e=>Oi(e)&&Oi(e[ms])?n({},e,{[ms]:xi("",e[ms],t)}):e))),Array.isArray(r.adds)&&(r.adds=r.adds.map((e=>Oi(e)?n({},e,{node:Ei(e.node,t)}):e))),r},Ni=(e,t)=>{if(!Oi(e))return e;var r=e.data;if(!Oi(r))return e;if(2===e.type)return n({},e,{data:n({},r,{node:Ei(r.node,t)})});if(3!==e.type)return e;if(0===r.source)return n({},e,{data:Ri(r,t)});if(5===r.source){var s=n({},r);return"all"===t.inputRule&&"string"==typeof s.text&&(s.text=""),n({},e,{data:s})}return e},Ai=/^[a-f0-9]{64}$/,Di=function(){var e=r((function*(e){var t="undefined"==typeof globalThis?void 0:globalThis.crypto;if(null==t||!t.subtle)return null;try{var r=yield t.subtle.digest("SHA-256",e),n="";for(var s of new Uint8Array(r))n+=s.toString(16).padStart(2,"0");return n}catch(e){return null}}));return function(t){return e.apply(this,arguments)}}(),Ti=function(){var e=r((function*(e,t){void 0===t&&(t=Di);var r=yield t(e);if(!ei(r)||!Ai.test(r[us]()))throw new Error(yi(5));return r[us]()}));return function(t,r){return e.apply(this,arguments)}}(),Li=e=>ei(e)&&/^sha256:[a-f0-9]{64}$/.test(e),Fi=e=>(new TextEncoder).encode(e);class Pi extends Error{constructor(e,t){super(t),this.code=void 0,this.name=yi(10),this.code=e}}class Bi extends Error{constructor(e){super(e),this.name=yi(7)}}class ji extends Error{constructor(e){super(e),this.name=yi(8)}}class Hi extends Error{constructor(e){super(e),this.name=yi(11)}}var Wi=ci({maximumReplayDecodedBytes:16777216,[bs]:1e4,maximumJsonNestingDepth:256});function zi(e,t){throw new Pi(e,t)}var Ui=(e,t)=>{oi(ni(e))&&zi("invalid-unicode",t+" contains an unpaired Unicode surrogate")},Gi=e=>void 0===e||ri(e)||"symbol"==typeof e,Ji=(e,t,r,n,s)=>{if(oi(e))return"null";switch(typeof e){case"string":return Ui(e,r),JSON[Ds](e);case"number":return Number[Ks](e)||zi(Vs,r+" must be a finite number"),JSON[Ds](e);case"boolean":return e?"true":"false";case"object":break;default:return zi(Vs,r+" has an unsupported "+typeof e+" value")}var i=t+1;if(i>n&&zi(yi(34),r+" exceeds the maximum JSON nesting depth of "+n),i>s.depth&&(s.depth=i),_s(e)){for(var o=[],a=0;a<e[Rs];a+=1){li(e,a)||zi(Vs,r+"["+a+"] is a sparse array hole");var l=e[a];o.push(Gi(l)?"null":Ji(l,i,r+"["+a+"]",n,s))}return"["+o.join(",")+"]"}if(!(e=>{var t=Object[Yn](e);return oi(t)||t===Object.prototype})(e))return zi(Vs,r+" must be a plain JSON object or array");var u=e,c=Object.keys(u).sort(),d=[];for(var h of c){var p=u[h];Gi(p)||(Ui(h,r+"."+h),d.push(JSON[Ds](h)+":"+Ji(p,i,r+"."+h,n,s)))}return"{"+d.join(",")+"}"},Vi=function(e,t,r){return void 0===r&&(r=256),Gi(e)&&zi(Vs,t+" must be a JSON value"),Ji(e,0,t,r,{depth:0})},Ki="elu-css-selector-v1",Yi=[Ln,ds,"textRule","inputRule","imageRule",rs,pi,hs,cs],qi=["all","sensitive"],Zi=["all","sensitive"],Qi=["block","allow"];function Xi(e){throw new Bi(e)}var _i=(e,t,r)=>(ei(e)&&t.includes(e)||Xi(r+" must be one of "+t.join(", ")),e),$i=(e,t)=>{var r=ei(e)?ni(e):null;return oi(r)||r<1||r>512?Xi(t+" must be a selector of 1 to 512 Unicode scalars"):e},eo=(e,t)=>{_s(e)||Xi(t+" must be an array of selectors");for(var r=new Set,n=0;n<e[Rs];n+=1)li(e,n)||Xi(t+" must not be sparse"),r.add($i(e[n],t+"["+n+"]"));return r.size>128&&Xi(t+" may carry at most 128 selectors"),ci([...r].sort())},to=e=>{for(var t of($s(e)&&ui(e,Yi)||Xi(yi(39)),Yi))ai(e,t)||Xi("masking profile "+t+" is required");return 1!==e[Ln]&&Xi("masking profile schemaVersion must be 1"),e[ds]!==Ki&&Xi("masking profile targetDialect must be "+Ki),!0!==e[rs]&&Xi(yi(43)),ti(e[Hn])||Xi(yi(40)),ci({[Ln]:1,[ds]:Ki,textRule:_i(e.textRule,qi,yi(44)),inputRule:_i(e.inputRule,Zi,yi(38)),imageRule:_i(e.imageRule,Qi,yi(37)),[rs]:!0,[Hn]:e[Hn],[hs]:eo(e[hs],yi(42)),[cs]:eo(e[cs],yi(41))})},ro=Object.freeze(["img","picture","svg","canvas"]),no=e=>e[Rs]>0?e.join(", "):void 0,so=e=>"object"==typeof e&&null!==e&&!_s(e),io=e=>{if(_s(e))return e.map(io);if(!so(e))return e;var t={};for(var r of Object.keys(e))t[r]=io(e[r]);return so(t[ms])&&delete t[ms].value,3===t.type&&so(t.data)&&5===t.data.source&&(t.data.text=""),t},oo=(e,t)=>Number[Pn](e)&&e>0&&e<=t,ao=(e,t,r,n)=>ci({[ns]:e[ns],[is]:t,chunkStartedAtMs:t,chunkBytes:r,chunkEvents:1,[Ms]:n}),lo=Ms,uo=Ws;ci({base:1,[Hs]:2,[Ls]:3}),ci([{name:"installations",keyPath:Ss,[Bs]:1,indexes:[]},{name:uo,keyPath:["siteKey","sequence"],[Bs]:1,indexes:[]},{name:"flagCache",keyPath:[Un,"recordKind"],[Bs]:2,indexes:[]},{name:"replayChunks",keyPath:["siteKey",jn],[Bs]:3,indexes:[{name:"chunk",keyPath:["siteKey","replayId","chunkId"],unique:!0},{name:lo,keyPath:["siteKey","replayId","sequence"],unique:!0}]},{name:"replayStreams",keyPath:["siteKey","replayId"],[Bs]:3,indexes:[]},{name:"replayResolutions",keyPath:["siteKey","replayId","chunkId"],[Bs]:3,indexes:[{name:lo,keyPath:["siteKey","replayId","sequence"],unique:!0}]}]),ci({wallNow:()=>(new Date)[ls](),monotonicNowMs:()=>{var e="undefined"==typeof globalThis?void 0:globalThis.performance;return e?e.now():Number.NaN}});var co=Uint8Array,ho=Uint16Array,po=Uint32Array,fo=new co([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),mo=new co([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),vo=new co([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),go=function(e,t){for(var r=new ho(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];var s=new po(r[30]);for(n=1;n<30;++n)for(var i=r[n];i<r[n+1];++i)s[i]=i-r[n]<<5|n;return[r,s]},yo=go(fo,2),wo=yo[0],bo=yo[1];wo[28]=258,bo[258]=28;for(var So=go(mo,0)[1],Co=new ho(32768),Io=0;Io<32768;++Io){var Mo=(43690&Io)>>>1|(21845&Io)<<1;Mo=(61680&(Mo=(52428&Mo)>>>2|(13107&Mo)<<2))>>>4|(3855&Mo)<<4,Co[Io]=((65280&Mo)>>>8|(255&Mo)<<8)>>>1}var ko=function(e,t,r){for(var n=e.length,s=0,i=new ho(t);s<n;++s)++i[e[s]-1];var o,a=new ho(t);for(s=0;s<t;++s)a[s]=a[s-1]+i[s-1]<<1;if(r){o=new ho(1<<t);var l=15-t;for(s=0;s<n;++s)if(e[s])for(var u=s<<4|e[s],c=t-e[s],d=a[e[s]-1]++<<c,h=d|(1<<c)-1;d<=h;++d)o[Co[d]>>>l]=u}else for(o=new ho(n),s=0;s<n;++s)o[s]=Co[a[e[s]-1]++]>>>15-e[s];return o},Oo=new co(288);for(Io=0;Io<144;++Io)Oo[Io]=8;for(Io=144;Io<256;++Io)Oo[Io]=9;for(Io=256;Io<280;++Io)Oo[Io]=7;for(Io=280;Io<288;++Io)Oo[Io]=8;var xo=new co(32);for(Io=0;Io<32;++Io)xo[Io]=5;var Eo=ko(Oo,9,0),Ro=ko(xo,5,0),No=function(e){return(e/8>>0)+(7&e&&1)},Ao=function(e,t,r){r<<=7&t;var n=t/8>>0;e[n]|=r,e[n+1]|=r>>>8},Do=function(e,t,r){r<<=7&t;var n=t/8>>0;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},To=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var s=r.length,i=r.slice();if(!s)return[new co(0),0];if(1==s){var o=new co(r[0].s+1);return o[r[0].s]=1,[o,1]}r.sort((function(e,t){return e.f-t.f})),r.push({s:-1,f:25001});var a=r[0],l=r[1],u=0,c=1,d=2;for(r[0]={s:-1,f:a.f+l.f,l:a,r:l};c!=s-1;)a=r[r[u].f<r[d].f?u++:d++],l=r[u!=c&&r[u].f<r[d].f?u++:d++],r[c++]={s:-1,f:a.f+l.f,l:a,r:l};var h=i[0].s;for(n=1;n<s;++n)i[n].s>h&&(h=i[n].s);var p=new ho(h+1),f=Lo(r[c-1],p,0);if(f>t){n=0;var m=0,v=f-t,g=1<<v;for(i.sort((function(e,t){return p[t.s]-p[e.s]||e.f-t.f}));n<s;++n){var y=i[n].s;if(!(p[y]>t))break;m+=g-(1<<f-p[y]),p[y]=t}for(m>>>=v;m>0;){var w=i[n].s;p[w]<t?m-=1<<t-p[w]++-1:++n}for(;n>=0&&m;--n){var b=i[n].s;p[b]==t&&(--p[b],++m)}f=t}return[new co(p),f]},Lo=function(e,t,r){return-1==e.s?Math.max(Lo(e.l,t,r+1),Lo(e.r,t,r+1)):t[e.s]=r},Fo=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new ho(++t),n=0,s=e[0],i=1,o=function(e){r[n++]=e},a=1;a<=t;++a)if(e[a]==s&&a!=t)++i;else{if(!s&&i>2){for(;i>138;i-=138)o(32754);i>2&&(o(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(o(s),--i;i>6;i-=6)o(8304);i>2&&(o(i-3<<5|8208),i=0)}for(;i--;)o(s);i=1,s=e[a]}return[r.subarray(0,n),t]},Po=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},Bo=function(e,t,r){var n=r.length,s=No(t+2);e[s]=255&n,e[s+1]=n>>>8,e[s+2]=255^e[s],e[s+3]=255^e[s+1];for(var i=0;i<n;++i)e[s+i+4]=r[i];return 8*(s+4+n)},jo=function(e,t,r,n,s,i,o,a,l,u,c){Ao(t,c++,r),++s[256];for(var d=To(s,15),h=d[0],p=d[1],f=To(i,15),m=f[0],v=f[1],g=Fo(h),y=g[0],w=g[1],b=Fo(m),S=b[0],C=b[1],I=new ho(19),M=0;M<y.length;++M)I[31&y[M]]++;for(M=0;M<S.length;++M)I[31&S[M]]++;for(var k=To(I,7),O=k[0],x=k[1],E=19;E>4&&!O[vo[E-1]];--E);var R,N,A,D,T=u+5<<3,L=Po(s,Oo)+Po(i,xo)+o,F=Po(s,h)+Po(i,m)+o+14+3*E+Po(I,O)+(2*I[16]+3*I[17]+7*I[18]);if(T<=L&&T<=F)return Bo(t,c,e.subarray(l,l+u));if(Ao(t,c,1+(F<L)),c+=2,F<L){R=ko(h,p,0),N=h,A=ko(m,v,0),D=m;var P=ko(O,x,0);for(Ao(t,c,w-257),Ao(t,c+5,C-1),Ao(t,c+10,E-4),c+=14,M=0;M<E;++M)Ao(t,c+3*M,O[vo[M]]);c+=3*E;for(var B=[y,S],j=0;j<2;++j){var H=B[j];for(M=0;M<H.length;++M){var W=31&H[M];Ao(t,c,P[W]),c+=O[W],W>15&&(Ao(t,c,H[M]>>>5&127),c+=H[M]>>>12)}}}else R=Eo,N=Oo,A=Ro,D=xo;for(M=0;M<a;++M)if(n[M]>255){W=n[M]>>>18&31,Do(t,c,R[W+257]),c+=N[W+257],W>7&&(Ao(t,c,n[M]>>>23&31),c+=fo[W]);var z=31&n[M];Do(t,c,A[z]),c+=D[z],z>3&&(Do(t,c,n[M]>>>5&8191),c+=mo[z])}else Do(t,c,R[n[M]]),c+=N[n[M]];return Do(t,c,R[256]),c+N[256]},Ho=new po([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Wo=function(){for(var e=new po(256),t=0;t<256;++t){for(var r=t,n=9;--n;)r=(1&r&&3988292384)^r>>>1;e[t]=r}return e}(),zo=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8};function Uo(e,t){void 0===t&&(t={});var r=function(){var e=4294967295;return{p:function(t){for(var r=e,n=0;n<t.length;++n)r=Wo[255&r^t[n]]^r>>>8;e=r},d:function(){return 4294967295^e}}}(),n=e.length;r.p(e);var s,i,o,a,l=(s=e,i=t,o=10+((a=t).filename&&a.filename.length+1||0),8,function(e,t,r,n,s,i){var o=e.length,a=new co(n+o+5*(1+Math.floor(o/7e3))+s),l=a.subarray(n,a.length-s),u=0;if(!t||o<8)for(var c=0;c<=o;c+=65535){var d=c+65535;d<o?u=Bo(l,u,e.subarray(c,d)):(l[c]=i,u=Bo(l,u,e.subarray(c,o)))}else{for(var h=Ho[t-1],p=h>>>13,f=8191&h,m=(1<<r)-1,v=new ho(32768),g=new ho(m+1),y=Math.ceil(r/3),w=2*y,b=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<w)&m},S=new po(25e3),C=new ho(288),I=new ho(32),M=0,k=0,O=(c=0,0),x=0,E=0;c<o;++c){var R=b(c),N=32767&c,A=g[R];if(v[N]=A,g[R]=N,x<=c){var D=o-c;if((M>7e3||O>24576)&&D>423){u=jo(e,l,0,S,C,I,k,O,E,c-E,u),O=M=k=0,E=c;for(var T=0;T<286;++T)C[T]=0;for(T=0;T<30;++T)I[T]=0}var L=2,F=0,P=f,B=N-A&32767;if(D>2&&R==b(c-B))for(var j=Math.min(p,D)-1,H=Math.min(32767,c),W=Math.min(258,D);B<=H&&--P&&N!=A;){if(e[c+L]==e[c+L-B]){for(var z=0;z<W&&e[c+z]==e[c+z-B];++z);if(z>L){if(L=z,F=B,z>j)break;var U=Math.min(B,z-2),G=0;for(T=0;T<U;++T){var J=c-B+T+32768&32767,V=J-v[J]+32768&32767;V>G&&(G=V,A=J)}}}B+=(N=A)-(A=v[N])+32768&32767}if(F){S[O++]=268435456|bo[L]<<18|So[F];var K=31&bo[L],Y=31&So[F];k+=fo[K]+mo[Y],++C[257+K],++I[Y],x=c+L,++M}else S[O++]=e[c],++C[e[c]]}}u=jo(e,l,i,S,C,I,k,O,E,c-E,u)}return function(e,t,r){(null==r||r>e.length)&&(r=e.length);var n=new(e instanceof ho?ho:e instanceof po?po:co)(r-0);return n.set(e.subarray(0,r)),n}(a,0,n+No(u)+s)}(s,null==i.level?6:i.level,null==i.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):12+i.mem,o,8,!0)),u=l.length;return function(e,t){var r=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&zo(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){e[3]=8;for(var n=0;n<=r.length;++n)e[n+10]=r.charCodeAt(n)}}(l,t),zo(l,u-8,r.d()),zo(l,u-4,n),l}for(var Go="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Jo=new Int16Array(128).fill(-1),Vo=0;Vo<Go[Rs];Vo+=1)Jo[Go[_n](Vo)]=Vo;var Ko=e=>{for(var t="",r=0;r+2<e[Rs];r+=3){var n=e[r]<<16|e[r+1]<<8|e[r+2];t+=Go[n>>18]+Go[n>>12&63]+Go[n>>6&63]+Go[63&n]}var s=e[Rs]-r;if(1===s){var i=e[r]<<16;t+=Go[i>>18]+Go[i>>12&63]+"=="}else if(2===s){var o=e[r]<<16|e[r+1]<<8;t+=Go[o>>18]+Go[o>>12&63]+Go[o>>6&63]+"="}return t},Yo=Symbol("elu-replay-masking-seal");class qo{constructor(e,t,r,n,s,i,o){if(this.profile=void 0,this.profileHash=void 0,this.canonicalPayload=void 0,this.payloadByteLength=void 0,this.logicalRecords=void 0,this.nestingDepth=void 0,e!==Yo)throw new ji(yi(45));this.profile=t,this[gs]=r,this.canonicalPayload=n,this.payloadByteLength=s,this[ws]=i,this.nestingDepth=o,Object.freeze(this)}static seal(e,t){var r;if(!ri(e))throw new ji(yi(46));if(!_s(t[Zs]))throw new ji(yi(47));var n=to(t.profile);if(!Li(t[gs]))throw new ji(yi(48));var s=function(e,t,r){void 0===r&&(r=Wi),_s(e)||zi(yi(32),t+" must be an array of replay records"),e[Rs]>r[bs]&&zi(yi(35),t+" carries "+e[Rs]+" records; the maximum is "+r[bs]);var n={depth:0},s=Ji(e,0,t,r.maximumJsonNestingDepth,n),i=(e=>{for(var t=0,r=0;r<e[Rs];r+=1){var n=e[_n](r);if(n<=127)t+=1;else if(n<=2047)t+=2;else if(n>=55296&&n<=56319&&r+1<e[Rs]){var s=e[_n](r+1);s>=56320&&s<=57343?(t+=4,r+=1):t+=3}else t+=3}return t})(s);return i>r.maximumReplayDecodedBytes&&zi(yi(16),t+" serializes to "+i+" bytes; the maximum is "+r.maximumReplayDecodedBytes),ci({[Os]:s,bytes:Fi(s),[ws]:e[Rs],nestingDepth:n.depth})}(t[Zs].map((t=>e(t,n))),yi(36),null!=(r=t[Qs])?r:Wi);return new qo(Yo,n,t[gs],s[Os],s.bytes[Rs],s[ws],s.nestingDepth)}}var Zo=e=>e instanceof qo;(()=>{for(var e=new Int32Array(256),t=0;t<256;t+=1){for(var r=t,n=0;n<8;n+=1)r=1&r?r>>>1^3988292384:r>>>1;e[t]=r}})();var Qo="2.0.0",Xo=5242880,_o=/^elu-[a-z0-9][a-z0-9.-]{0,63}$/,$o=/^elu-[a-z0-9-]+$/,ea=/^[A-Za-z][A-Za-z0-9._-]+$/,ta=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,ra=[Ln,Es,xs,Js,Ms,As,"endedAt",Cs,Tn,"codec",Wn,"contentEncoding","payload",js,Ns],na=[Kn,Us,ks],sa=[Xn,zn,fs,"appliedBeforeSerialization",rs,pi],ia=[Ln,es,Ps,qs,"facade","build"],oa=["name",Bs];function aa(e){throw new Hi(e)}var la=function(e,t,r,n){void 0===n&&(n=1);var s=ei(e)?ni(e):null;return oi(s)||s<n||s>r?aa(t+" must be a string of "+n+" to "+r+" Unicode scalars"):e},ua=(e,t)=>(ii(e)||aa(t+" must be a safe non-negative integer"),e),ca=(e,t)=>(Li(e)||aa(t+" must be a lowercase sha256 hash"),e),da=function(e,t,r,n){for(var s of(void 0===n&&(n=[]),$s(e)&&ui(e,t)||aa(r+" must contain only schema-defined fields"),t))n.includes(s)||ai(e,s)||aa(r+" "+s+" is required");return e},ha=(e,t)=>{var r=da(e,na,t);return ci({[Kn]:la(r[Kn],t+" anonymousId",256),[Us]:oi(r[Us])?null:la(r[Us],t+" userId",512),[ks]:ua(r[ks],t+" revision")})},pa=(e,t)=>{var r=da(e,sa,t);return!0!==r.appliedBeforeSerialization&&aa(t+" appliedBeforeSerialization must be true"),!0!==r[rs]&&aa(t+" secureInputsMasked must be true"),ti(r[Hn])||aa(t+" platformFallbackApplied must be a boolean"),ci({[Xn]:la(r[Xn],t+" policyRevision",128),[zn]:ca(r[zn],t+" effectivePolicyHash"),[fs]:ca(r[fs],t+" maskingProfileHash"),appliedBeforeSerialization:!0,[rs]:!0,[Hn]:r[Hn]})},fa=(e,t,r)=>{var n=da(e,oa,t),s=la(n.name,t+" name",256);return r.test(s)||aa(t+" name is invalid"),ci({name:s,[Bs]:la(n[Bs],t+" version",64)})},ma=function(e,t){void 0===t&&(t="replay versions");var r=da(e,ia,t,["build"]);2!==r[Ln]&&aa(t+" schemaVersion must be 2"),r[es]!==Qo&&aa(t+" contractVersion must be "+Qo),"browser"!==r[Ps]&&"android"!==r[Ps]&&"ios"!==r[Ps]&&aa(t+" platform is unsupported");var s=fa(r[qs],t+" runtime",$o),i=fa(r.facade,t+" facade",ea);return ci(n({[Ln]:2,[es]:Qo,[Ps]:r[Ps],[qs]:s,facade:i},ai(r,"build")?{build:la(r.build,t+" build",128)}:{}))},va=function(e,t){void 0===t&&(t="replay chunk");var r=da(e,ra,t);2!==r[Ln]&&aa(t+" schemaVersion must be 2");var n=la(r[As],t+" startedAt",64),s=la(r.endedAt,t+" endedAt",64);((e,t)=>{if(e.epochDay!==t.epochDay)return e.epochDay<t.epochDay?-1:1;if(e[ss]!==t[ss])return e[ss]<t[ss]?-1:1;if(e[$n]!==t[$n])return e[$n]?1:-1;for(var r=Math.max(e[Bn][Rs],t[Bn][Rs]),n=0;n<r;n+=1){var s=e[Bn][_n](n)||48,i=t[Bn][_n](n)||48;if(s!==i)return s<i?-1:1}return 0})(Si(n,t+" startedAt",64),Si(s,t+" endedAt",64))>0&&aa(t+" endedAt must not precede startedAt");var i=la(r.codec,t+" codec",68);return _o.test(i)||aa(t+" codec is invalid"),"none"!==r[Wn]&&"gzip"!==r[Wn]&&aa(t+" compression is unsupported"),"base64"!==r.contentEncoding&&aa(t+" contentEncoding must be base64"),ei(r.payload)&&0!==r.payload[Rs]&&ta.test(r.payload)||aa(t+" payload must be non-empty canonical base64"),ci({[Ln]:2,[Es]:la(r[Es],t+" replayId",256),[xs]:la(r[xs],t+" sessionId",256),[Js]:la(r[Js],t+" chunkId",256),[Ms]:ua(r[Ms],t+" sequence"),[As]:n,endedAt:s,[Cs]:ha(r[Cs],t+" identity"),[Tn]:ua(r[Tn],t+" contextRevision"),codec:i,[Wn]:r[Wn],contentEncoding:"base64",payload:r.payload,[js]:pa(r[js],t+" privacy"),[Ns]:ma(r[Ns],t+" versions")})},ga=function(){var e=r((function*(e,t){var r=(e=>Fi(Vi(va(e),"replay chunk")))(e),n=yield Ti((e=>{var t=Fi("elu-sdk-replay-request-v2"),r=new Uint8Array(t[Rs]+1+4+e[Rs]);r.set(t,0),r[t[Rs]]=0;var n=e[Rs];return r[t[Rs]+1]=n>>>24&255,r[t[Rs]+2]=n>>>16&255,r[t[Rs]+3]=n>>>8&255,r[t[Rs]+4]=255&n,r.set(e,t[Rs]+5),r})(r),t);return ci({[Is]:"request_"+n,canonicalChunk:r})}));return function(t,r){return e.apply(this,arguments)}}(),ya=function(){var e=r((function*(e,t){$s(t)||aa(yi(76));var r,n=la(t[Gn],hi,128),s=void 0===(r=t[ts])?Xo:!ii(r)||r<1?aa(yi(77)):Math.min(r,Xo),i=va(e),o=yield ga(i,t[Ys]),a=ci({[Ln]:2,[Is]:o[Is],chunk:i}),l=Fi(Vi(a,"replay request"));l[Rs]>s&&aa("replay request is "+l[Rs]+" bytes; the effective limit is "+s);var u=yield Ti(l,t[Ys]);return ci({[Gn]:n,[Gs]:a,[vs]:l,canonicalRequestSha256:"sha256:"+u,[Vn]:l[Rs]})}));return function(t,r){return e.apply(this,arguments)}}(),wa=function(){var e=r((function*(e){var t=(e=>{if(!Zo(e))throw new Pi(yi(32),yi(65));var t,r=Fi(e.canonicalPayload);try{t=Uo(r,{mtime:0})}catch(e){return function(e,t){throw new Pi("invalid-gzip",t)}(0,yi(62))}return Object.freeze({codec:"elu-browser-dom-v1",[Wn]:"gzip",contentEncoding:"base64",payload:Ko(t),compressedByteLength:t[Rs],decodedByteLength:r[Rs],[ws]:e[ws],proof:e})})(qo.seal(Ni,{profile:e.profile,[gs]:e[gs],[Zs]:e[Zs]})),r=(e=>{$s(e)&&$s(e.payload)&&Zo(e.payload.proof)||aa(yi(69));var t=e.payload;return va({[Ln]:2,[Es]:e[Es],[xs]:e[xs],[Js]:e[Js],[Ms]:e[Ms],[As]:e[As],endedAt:e.endedAt,[Cs]:e[Cs],[Tn]:e[Tn],codec:t.codec,[Wn]:t[Wn],contentEncoding:t.contentEncoding,payload:t.payload,[js]:{[Xn]:e[Xn],[zn]:e[zn],[fs]:t.proof[gs],appliedBeforeSerialization:!0,[rs]:!0,[Hn]:t.proof.profile[Hn]},[Ns]:e[Ns]})})({[Es]:e[Es],[xs]:e[xs],[Js]:e[Js],[Ms]:e[Ms],[As]:e[As],endedAt:e.endedAt,[Cs]:e[Cs],[Tn]:e[Tn],payload:t,[Xn]:e[Xn],[zn]:e[zn],[Ns]:e[Ns]});return ya(r,n({[Gn]:e[Gn]},void 0===e[ts]?{}:{[ts]:e[ts]},void 0===e[Ys]?{}:{[Ys]:e[Ys]}))}));return function(t){return e.apply(this,arguments)}}(),ba=e=>{if(!Number[Pn](e[ys])||e[ys]<1)throw new Error(yi(68));var t=Math.min(e[ys],268435456),s=ci({[ns]:null,[is]:null,chunkStartedAtMs:null,chunkBytes:0,chunkEvents:0,[Ms]:0}),i=null,o=!1,a=e[Cs][Es](),l=null,u=null,c=()=>{if(!l){var t=a;l=Promise.resolve().then((()=>null==e.onReplayClosed?void 0:e.onReplayClosed(t)))}return l},d=0===e.policy[qn],h=!1,p=[],f=0,m=0,v=0,g=Promise[Fs](),y=function(t,r){void 0===r&&(r=!1);try{null==e.onSealFailure||e.onSealFailure(null!=t?t:new Error(yi(70)),r)}catch(e){}},w=()=>{p=[],f=0},b=()=>{o=!0,i=null,w(),m=0,v=0},S=e=>{b(),y(e,!0)},C=function(){var t=r((function*(){for(;!o&&d&&p[Rs]>0;){var t=p.shift();f-=t.prepared[Vn];try{yield e.sink(t.prepared,{discarded:!1,[Ms]:t[Ms]}),h=!0}catch(e){S(e)}}}));return function(){return t.apply(this,arguments)}}(),I=function(){var s=r((function*(r,s){var l=i;if(i=null,!o&&l&&0!==l[Zs][Rs]){if(r)return m-=l.estimatedBytes,void(v-=l[Zs][Rs]);try{var u=yield wa(n({},e.seal,{[ts]:e.policy[ts],[Zs]:l[Zs],[Es]:a,[xs]:e[xs],[Js]:e[Cs][Js](),[Ms]:s,[As]:e[Cs].instant(l.startedAtMs),endedAt:e[Cs].instant(l.endedAtMs)}));o||r||(d?(yield e.sink(u,{discarded:!1,[Ms]:s}),h=!0):u[Vn]>t-f||p[Rs]>=1e4?S(new Error(yi(72))):(p.push({prepared:u,[Ms]:s}),f+=u[Vn]))}catch(t){o||(!d||e.policy[qn]>0&&!h?S(t):y(t))}finally{m=Math.max(0,m-l.estimatedBytes),v=Math.max(0,v-l[Zs][Rs])}}}));return function(e,t){return s.apply(this,arguments)}}();return{record(u,p,f){if(o)return Promise[Fs]();if(!Number[Ks](p)||p<0||!oi(s[is])&&p<s[is]||!Number[Pn](f)||f<1)return S(new Error(yi(31))),g;if(f>t-m||v>=1e4)return S(new Error(yi(71))),g;m+=f,v+=1;var y=((e,t,r)=>{var s,i=t.atMs,o=t.byteLength;if(null===e[ns]||null===e[is])return ci({action:"buffer",discardSealedChunk:!1,state:ci(n({},ao(e,i,o,0),{[ns]:i}))});var a=i-e[is],l=i-e[ns];if(a>=1e3*r[Jn]||l>=1e3*r[Fn]){var u,c=e[is]-(null!=(u=e[ns])?u:e[is]);return ci({action:"cut-session",discardSealedChunk:c<1e3*r[qn],state:ci(n({},ao(e,i,o,0),{[ns]:i}))})}return e.chunkEvents>0&&e.chunkBytes+o>r[ts]?ci({action:"cut-chunk",discardSealedChunk:!1,state:ao(e,i,o,e[Ms]+1)}):ci({action:"buffer",discardSealedChunk:!1,state:ci(n({},e,{[is]:i,chunkStartedAtMs:null!=(s=e.chunkStartedAtMs)?s:i,chunkBytes:e.chunkBytes+o,chunkEvents:e.chunkEvents+1}))})})(s,{atMs:p,[Vn]:f},e.policy),b=s[Ms];return s=y.state,g=g.then(r((function*(){if(!o){if("buffer"!==y.action){if(yield I(y.discardSealedChunk,b),o)return;if("cut-session"===y.action){try{yield c()}catch(e){throw S(e),e}if(o)return;w(),d=0===e.policy[qn],h=!1,a=e[Cs][Es](),l=null}}((e,t,r)=>{if(i)return i[Zs].push(e),i.endedAtMs=t,void(i.estimatedBytes+=r);i={[Zs]:[e],startedAtMs:t,endedAtMs:t,estimatedBytes:r}})(u,p,f),!d&&!oi(y.state[ns])&&p-y.state[ns]>=1e3*e.policy[qn]&&(d=!0,yield C())}}))),g},flush(){if(o)return Promise[Fs]();var e=s[Ms];return s.chunkEvents>0&&(s=Object.freeze(n({},s,{chunkStartedAtMs:null,chunkBytes:0,chunkEvents:0,[Ms]:s[Ms]+1}))),g=g.then((()=>I(!1,e)))},hasBufferedWork:()=>!o&&(v>0||p[Rs]>0||!oi(i)),close:()=>(b(),u||(u=g.then(c,function(){var e=r((function*(e){throw yield c(),e}));return function(t){return e.apply(this,arguments)}}())),u)}},Sa="__eluOwnedRecorderLeaseV1",Ca=e=>{var t=document;if(Sa in t)throw new Error("Recorder is already owned");var r={};Object.defineProperty(t,Sa,{value:r,configurable:!0});var s=!1,i=()=>{if(!s){if(t[Sa]!==r)throw new Error("Recorder ownership changed");delete t[Sa],s=!0}},o=En(n({},e,{plugins:[]}));if("function"==typeof o)return()=>{o(),i()};i()};return e.createEluOwnedRecorder=e=>{var t=(e=>{var t=to(e.profile);if(!oo(e.maximumEventBytes,8388608)||!oo(e.maximumPendingBytes,16777216)||e.maximumPendingBytes<e.maximumEventBytes||!oo(e.maximumPendingEvents,1e3))throw new Error(An(566));for(var s of[...t[hs],...t[cs]])e.document.querySelector(s);var i=(e=>{if(!0!==e[rs])throw new Bi(An(93));var t="all"===e.inputRule,r="all"===e.textRule?"*":no(e[hs]),s=no([...e[cs],..."block"===e.imageRule?ro:[]]);return Object.freeze(n({maskAllInputs:t},t?{}:{maskInputOptions:Object.freeze({password:!0})},void 0===r?{}:{maskTextSelector:r},void 0===s?{}:{blockSelector:s}))})(t),o=[i.blockSelector,'input[type="hidden"]',"iframe","object","embed"].filter((e=>void 0!==e)).join(", ");e.document.querySelector(o);var a=!1,l=!1,u=!1,c=!1,d=!0,h={},p=null,f=null,m=0,v=0,g=null,y=Promise[Fs](),w=t=>{try{null==e.onFailure||e.onFailure(t)}catch(e){}},b=()=>{if(a)return Ci;try{var t=e.eligibility();return!Number[Pn](t[Qn])||t[Qn]<0||t[Qn]>86400?Ci:Object.freeze({sampled:!0===t.sampled,[ps]:!0===t[ps],[Qn]:t[Qn],[Ts]:t[Ts],[Zn]:!0})}catch(e){return Ci}},S=()=>{var t=b();return t.sampled&&t[ps]&&t[Qn]>0&&null!==t[Ts]&&e[zs]()},C=e=>{try{null==e||e()}catch(e){d=!1,a=!0,h={},w("engine-stop")}},I=()=>{var e=p;p=null,C(e)},M=()=>{var e=f;f=null,C(e)},k=()=>(h={},l=!1,u=!1,M(),I(),y),O=e=>{a=!0,k(),w(e)},x=function(e,t){void 0===t&&(t=!1);try{return(l||t&&u)&&!a&&h===e&&S()}catch(e){return!1}};return Object.freeze({profile:t,capability:b,start:()=>{if(a||l||u||c||!d||m>0)return!1;try{if(!S())return!1}catch(e){return!1}var s={};h=s,g=null,l=!0;try{c=!0;var w=e.subscribeToRestrictions((()=>{h===s&&k()}));if(c=!1,!x(s))return C(w),!1;f=w,c=!0;var b=e.engine(n({},i,{maskAllInputs:!0,maskInputOptions:{password:!0,email:!0,tel:!0,textarea:!0},maskInputFn:(e,r)=>{var n,s=null==(n=r.getAttribute("type"))?void 0:n[us]();if("all"===t.inputRule||["password","email","tel","hidden"].includes(null!=s?s:"")||"TEXTAREA"===r.tagName)return"";for(var i of t[hs])if(r.closest(i))return"";return e},maskTextFn:()=>"",blockSelector:o,recordCanvas:!1,recordCrossOriginIframes:!1,inlineImages:!1,collectFonts:!1,recordDOM:!0,plugins:[],keepIframeSrcFn:()=>!1,recordAfter:An(16),errorHandler:()=>(h===s&&O("engine-start"),!0),emit:n=>((n,s)=>{if(l)if(x(n))if(m>=e.maximumPendingEvents||v>=e.maximumPendingBytes)O("capacity");else{var i,o,a;try{if(!so(s)||!Number[Pn](s.timestamp)||s.timestamp<0)throw new Error(An(567));if(o=s.timestamp,null!==g&&o<g)throw new Error(An(765));var u=io(Ni(s,t)),c=JSON[Ds](u);if(void 0===c||c[Rs]>e.maximumEventBytes)return void O("capacity");if((a=(new TextEncoder).encode(c)[Vn])>e.maximumEventBytes||v+a>e.maximumPendingBytes)return void O("capacity");i=JSON.parse(c)}catch(e){return void O("invalid-event")}if(x(n)){g=o,m+=1,v+=a;var d=y.then(r((function*(){x(n,!0)?yield e.record(i,o,a):h===n&&k()}))).catch((()=>{h===n&&O("sink")})).then((()=>{m-=1,v-=a}));y=d}else k()}else h===n&&k()})(s,n)}));return c=!1,"function"!=typeof b?(d=!1,O("engine-start"),!1):x(s)?(p=b,!0):(C(b),!1)}catch(e){return c&&(d=!1),c=!1,O("engine-start"),!1}},quiesce:()=>{if(a)return k();var e=h;return l=!1,u=!0,I(),d?y.then((()=>{h===e&&(u=!1,M())})):k()},stop:k,cleanupIsProven:()=>d&&!c&&!l&&!u&&null===p&&null===f&&0===m,settled:()=>y,close:()=>(a=!0,k())})})(n({},e,{engine:Ca,document:document}));if(e.installSessionDriver){var s=!1;try{s=e.isCurrent()&&e.installSessionDriver(ba)&&e.isCurrent()}finally{s||t.close()}}return t},e}({}),t=document.currentScript;if(!t||"function"!=typeof t.__eluRecorderRegister)throw new Error("Recorder registration unavailable");t.__eluRecorderRegister(e)}();