1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2294],{87323:(t,e,n)=>{let a,i,r,s;n.d(e,{e:()=>ej});var o,l,d,h,u,c,p,f,_,m=n(66596),g=n(70440),y=n(11291),w=n(39901),b=n(33184),v=n(98653),k=n(82777),S=n(66983),E=n(85459),x=n(33195),R=n(78066),T=n(27432),C=n(19612),A=n(39073),I=n(39149),N=n(23727);let D=b.OW,z="sentryReplaySession",O="Unable to send Replay";function M(t){let e=null==t?void 0:t.host;return!!(e&&e.shadowRoot&&e.shadowRoot===t)}function L({maskInputOptions:t,tagName:e,type:n}){"option"===e.toLowerCase()&&(e="select");let a="string"==typeof n?n.toLowerCase():void 0;return t[e.toLowerCase()]||a&&t[a]||"password"===a||"input"===e&&!n&&t.text}function U({input:t,maskInputSelector:e,unmaskInputSelector:n,maskInputOptions:a,tagName:i,type:r,value:s,maskInputFn:o}){let l=s||"";return n&&t.matches(n)||(t.hasAttribute("data-rr-is-password")&&(r="password"),(L({maskInputOptions:a,tagName:i,type:r})||e&&t.matches(e))&&(l=o?o(l):"*".repeat(l.length))),l}!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(o||(o={}));let F="__rrweb_original__";function B(t){let e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?e.toLowerCase():null}function P(t,e,n){return("string"==typeof n&&n.toLowerCase(),"INPUT"===e&&("radio"===n||"checkbox"===n))?t.getAttribute("value")||"":t.value}let Z=1,G=RegExp("[^a-z0-9-_:]");function j(t){return t?t.replace(/[\S]/g,"*"):""}function H(t){try{let e=t.rules||t.cssRules;return e?Array.from(e).map(Y).join(""):null}catch(t){return null}}function Y(t){let e=t.cssText;if("styleSheet"in t)try{e=H(t.styleSheet)||e}catch(t){}return $(e)}function $(t){return t.indexOf(":")>-1?t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"):t}let W=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,q=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,V=/^(data:)([^,]*),(.*)/i;function X(t,e){return(t||"").replace(W,(t,n,a,i,r,s)=>{let o=a||r||s,l=n||i||"";if(!o)return t;if(!q.test(o)||V.test(o))return`url(${l}${o}${l})`;if("/"===o[0])return`url(${l}${(e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]+o}${l})`;let d=e.split("/"),h=o.split("/");for(let t of(d.pop(),h))if("."===t)continue;else".."===t?d.pop():d.push(t);return`url(${l}${d.join("/")}${l})`})}let K=/^[^ \t\n\r\u000c]+/,J=/^[, \t\n\r\u000c]+/;function Q(t,e){if(!e||""===e.trim())return e;let n=t.createElement("a");return n.href=e,n.href}function tt(){let t=document.createElement("a");return t.href="",t.href}function te(t,e,n,a,i,r,s,o){if(!i)return i;let l=a.toLowerCase(),d=n.toLowerCase();if("src"===l||"href"===l||"xlink:href"===l&&"#"!==i[0])return Q(t,i);if("background"===l&&("table"===d||"td"===d||"th"===d))return Q(t,i);if("srcset"===l)return function(t,e){if(""===e.trim())return e;let n=0;function a(t){let a,i=t.exec(e.substring(n));return i?(a=i[0],n+=a.length,a):""}let i=[];for(;a(J),!(n>=e.length);){let r=a(K);if(","===r.slice(-1))r=Q(t,r.substring(0,r.length-1)),i.push(r);else{let a="";r=Q(t,r);let s=!1;for(;;){let t=e.charAt(n);if(""===t){i.push((r+a).trim());break}if(s)")"===t&&(s=!1);else if(","===t){n+=1,i.push((r+a).trim());break}else"("===t&&(s=!0);a+=t,n+=1}}}return i.join(", ")}(t,i);if("style"===l)return X(i,tt());else{if("object"===d&&"data"===l)return Q(t,i);var h,u,c,p;if(r&&(h=e,u=l,c=d,!((p=s)&&h.matches(p))&&(["placeholder","title","aria-label"].indexOf(u)>-1||"input"===c&&"value"===u&&h.hasAttribute("type")&&["submit","button"].indexOf(h.getAttribute("type").toLowerCase())>-1)))return o?o(i):j(i)}return i}function tn(t,e,n,a,i){if(!t)return!1;
1if(t.nodeType!==t.ELEMENT_NODE)return tn(t.parentNode,e,n,a,i);if(a&&(t.matches(a)||t.closest(a)))return!1;if(i)return!0;if("string"==typeof e){if(t.classList.contains(e))return!0}else for(let n=0;n<t.classList.length;n++){let a=t.classList[n];if(e.test(a))return!0}return!!(n&&t.matches(n))||tn(t.parentNode,e,n,a,i)}function ta(t){return null==t?"":t.toLowerCase()}function ti(t,e){let n,{doc:r,map:s,blockClass:l,blockSelector:d,unblockSelector:h,maskTextClass:u,maskTextSelector:c,unmaskTextSelector:p,skipChild:f=!1,inlineStylesheet:_=!0,maskInputSelector:m,unmaskInputSelector:g,maskAllText:y,maskInputOptions:w={},maskTextFn:b,maskInputFn:v,slimDOMOptions:k,dataURLOptions:S={},inlineImages:E=!1,recordCanvas:x=!1,onSerialize:R,onIframeLoad:T,iframeLoadTimeout:C=5e3,keepIframeSrcFn:A=()=>!1}=e,{preserveWhiteSpace:I=!0}=e,N=function(t,e){var n,r,s,l;let d,{doc:h,blockClass:u,blockSelector:c,unblockSelector:p,maskTextClass:f,maskTextSelector:_,unmaskTextSelector:m,inlineStylesheet:g,maskInputSelector:y,unmaskInputSelector:w,maskAllText:b,maskInputOptions:v={},maskTextFn:k,maskInputFn:S,dataURLOptions:E={},inlineImages:x,recordCanvas:R,keepIframeSrcFn:T}=e;if(h.__sn){let t=h.__sn.id;d=1===t?void 0:t}switch(t.nodeType){case t.DOCUMENT_NODE:if("CSS1Compat"!==t.compatMode)return{type:o.Document,childNodes:[],compatMode:t.compatMode,rootId:d};return{type:o.Document,childNodes:[],rootId:d};case t.DOCUMENT_TYPE_NODE:return{type:o.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:d};case t.ELEMENT_NODE:let C=function(t,e,n,a){if(a&&t.matches(a))return!1;if("string"==typeof e){if(t.classList.contains(e))return!0}else for(let n=0;n<t.classList.length;n++){let a=t.classList[n];if(e.test(a))return!0}return!!n&&t.matches(n)}(t,u,c,p),A=function(t){if(t instanceof HTMLFormElement)return"form";let e=t.tagName.toLowerCase().trim();return G.test(e)?"div":e}(t),I={};for(let{name:e,value:n}of Array.from(t.attributes)){s=A,l=e,("video"!==s&&"audio"!==s||"autoplay"!==l)&&(I[e]=te(h,t,A,e,n,b,m,k))}if("link"===A&&g){let e=Array.from(h.styleSheets).find(e=>e.href===t.href),n=null;e&&(n=H(e)),n&&(delete I.rel,delete I.href,I._cssText=X(n,e.href))}if("style"===A&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){let e=H(t.sheet);e&&(I._cssText=X(e,tt()))}if("input"===A||"textarea"===A||"select"===A||"option"===A){let e=B(t),n=P(t,A.toUpperCase(),e),a=t.checked;"submit"!==e&&"button"!==e&&n&&(I.value=U({input:t,type:e,tagName:A,value:n,maskInputSelector:y,unmaskInputSelector:w,maskInputOptions:v,maskInputFn:S})),a&&(I.checked=a)}if("option"===A&&(t.selected&&!v.select?I.selected=!0:delete I.selected),"canvas"===A&&R){if("2d"===t.__context)!function(t){let e=t.getContext("2d");if(!e)return!0;for(let n=0;n<t.width;n+=50)for(let a=0;a<t.height;a+=50){let i=e.getImageData;if(new Uint32Array((F in i?i[F]:i).call(e,n,a,Math.min(50,t.width-n),Math.min(50,t.height-a)).data.buffer).some(t=>0!==t))return!1}return!0}(t)&&(I.rr_dataURL=t.toDataURL(E.type,E.quality));else if(!("__context"in t)){let e=t.toDataURL(E.type,E.quality),n=document.createElement("canvas");n.width=t.width,n.height=t.height,e!==n.toDataURL(E.type,E.quality)&&(I.rr_dataURL=e)}}if("img"===A&&x){a||(i=(a=h.createElement("canvas")).getContext("2d"));let e=t.crossOrigin;t.crossOrigin="anonymous";let n=()=>{try{a.width=t.naturalWidth,a.height=t.naturalHeight,i.drawImage(t,0,0),I.rr_dataURL=a.toDataURL(E.type,E.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}e?I.crossOrigin=e:delete I.crossOrigin};t.complete&&0!==t.naturalWidth?n():t.onload=n}if(("audio"===A||"video"===A)&&(I.rr_mediaState=t.paused?"paused":"played",I.rr_mediaCurrentTime=t.currentTime),t.scrollLeft&&(I.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(I.rr_scrollTop=t.scrollTop),C){let{width:e,height:n}=t.getBoundingClientRect();I={class:I.class,rr_width:`${e}px`,rr_height:`${n}px`}}return"iframe"!==A||T(I.src)||(t.contentDocument||(I.rr_src=I.src),delete I.src),{type:o.Element,tagName:A,attributes:I,childNodes:[],isSVG:!!("svg"===t.tagName||t.ownerSVGElement)||void 0,needBlock:C,rootId:d};case t.TEXT_NODE:let N=t.parentNode&&t.parentNode.tagName,D=t.textContent,z="STYLE"===N||void 0,O="SCRIPT"===N||void 0;if(z&&D){try{t.nextSibling||t.previousSibling||(null==(n=t.parentNode.sheet)?void 0:n.cssRules)&&(D=(r=t.parentNode.sheet).cssRules?Array.from(r.cssRules).map(t=>t.cssText?$(t.cssText):"").join(""):"")}catch(e){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${e}`,t)}D=X(D,tt())}return O&&(D="SCRIPT_PLACEHOLDER"),"TEXTAREA"===N&&D?D="":"OPTION"===N&&D?D=U({input:t.parentNode,type:null,tagName:N,value:D,maskInputSelector:y,unmaskInputSelector:w,maskInputOptions:v,maskInputFn:S}):!z&&!O&&tn(t,f,_,m,b)&&D&&(D=k?k(D):j(D)),{type:o.Text,textContent:D||"",isStyle:z,rootId:d};case t.CDATA_SECTION_NODE:return{type:o.CDATA,textContent:"",rootId:d};case t.COMMENT_NODE:return{type:o.Comment,textContent:t.textContent||"",rootId:d};default:return!1}}(t,{doc:r,blockClass:l,blockSelector:d,unblockSelector:h,maskTextClass:u,maskTextSelector:c,unmaskTextSelector:p,inlineStylesheet:_,maskInputSelector:m,unmaskInputSelector:g,maskAllText:y,maskInputOptions:w,maskTextFn:b,maskInputFn:v,dataURLOptions:S,inlineImages:E,recordCanvas:x,keepIframeSrcFn:A});if(!N)return console.warn(t,"not serialized"),null;n="__sn"in t?t.__sn.id:!function(t,e){if(e.comment&&t.type===o.Comment)return!0;
1if(t.type===o.Element){if(e.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)&&"script"===t.attributes.as||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&t.attributes.href.endsWith(".js")))return!0;else if(e.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(ta(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ta(t.attributes.name)||"icon"===ta(t.attributes.rel)||"apple-touch-icon"===ta(t.attributes.rel)||"shortcut icon"===ta(t.attributes.rel))))return!0;else if("meta"===t.tagName){if(e.headMetaDescKeywords&&ta(t.attributes.name).match(/^description|keywords$/))return!0;else if(e.headMetaSocial&&(ta(t.attributes.property).match(/^(og|twitter|fb):/)||ta(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===ta(t.attributes.name)))return!0;else if(e.headMetaRobots&&("robots"===ta(t.attributes.name)||"googlebot"===ta(t.attributes.name)||"bingbot"===ta(t.attributes.name)))return!0;else if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;else if(e.headMetaAuthorship&&("author"===ta(t.attributes.name)||"generator"===ta(t.attributes.name)||"framework"===ta(t.attributes.name)||"publisher"===ta(t.attributes.name)||"progid"===ta(t.attributes.name)||ta(t.attributes.property).match(/^article:/)||ta(t.attributes.property).match(/^product:/)))return!0;else if(e.headMetaVerification&&("google-site-verification"===ta(t.attributes.name)||"yandex-verification"===ta(t.attributes.name)||"csrf-token"===ta(t.attributes.name)||"p:domain_verify"===ta(t.attributes.name)||"verify-v1"===ta(t.attributes.name)||"verification"===ta(t.attributes.name)||"shopify-checkout-api-token"===ta(t.attributes.name)))return!0}}return!1}(N,k)&&(I||N.type!==o.Text||N.isStyle||N.textContent.replace(/^\s+|\s+$/gm,"").length)?Z++:-2;let D=Object.assign(N,{id:n});if(t.__sn=D,-2===n)return null;s[n]=t,R&&R(t);let z=!f;if(D.type===o.Element&&(z=z&&!D.needBlock,delete D.needBlock,t.shadowRoot&&(D.isShadowHost=!0)),(D.type===o.Document||D.type===o.Element)&&z){k.headWhitespace&&N.type===o.Element&&"head"===N.tagName&&(I=!1);let e={doc:r,map:s,blockClass:l,blockSelector:d,unblockSelector:h,maskTextClass:u,maskTextSelector:c,unmaskTextSelector:p,skipChild:f,inlineStylesheet:_,maskInputSelector:m,unmaskInputSelector:g,maskAllText:y,maskInputOptions:w,maskTextFn:b,maskInputFn:v,slimDOMOptions:k,dataURLOptions:S,inlineImages:E,recordCanvas:x,preserveWhiteSpace:I,onSerialize:R,onIframeLoad:T,iframeLoadTimeout:C,keepIframeSrcFn:A};for(let n of Array.from(t.childNodes)){let t=ti(n,e);t&&D.childNodes.push(t)}if(t.nodeType===t.ELEMENT_NODE&&t.shadowRoot)for(let n of Array.from(t.shadowRoot.childNodes)){let t=ti(n,e);t&&(t.isShadow=!0,D.childNodes.push(t))}}return t.parentNode&&M(t.parentNode)&&(D.isShadow=!0),D.type===o.Element&&"iframe"===D.tagName&&function(t,e,n){let a,i=t.contentWindow;if(!i)return;let r=!1;try{a=i.document.readyState}catch(t){return}if("complete"!==a){let a=setTimeout(()=>{r||(e(),r=!0)},n);t.addEventListener("load",()=>{clearTimeout(a),r=!0,e()});return}let s="about:blank";if(i.location.href!==s||t.src===s||""===t.src)return setTimeout(e,0);t.addEventListener("load",e)}(t,()=>{let e=t.contentDocument;if(e&&T){let n=ti(e,{doc:e,map:s,blockClass:l,blockSelector:d,unblockSelector:h,maskTextClass:u,maskTextSelector:c,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:_,maskInputSelector:m,unmaskInputSelector:g,maskAllText:y,maskInputOptions:w,maskTextFn:b,maskInputFn:v,slimDOMOptions:k,dataURLOptions:S,inlineImages:E,recordCanvas:x,preserveWhiteSpace:I,onSerialize:R,onIframeLoad:T,iframeLoadTimeout:C,keepIframeSrcFn:A});n&&T(t,n)}},C),D}function tr(t,e,n=document){let a={capture:!0,passive:!0};return n.addEventListener(t,e,a),()=>n.removeEventListener(t,e,a)}!function(t){t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin"}(l||(l={})),function(t){t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.In
1put=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration"}(d||(d={})),function(t){t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel"}(h||(h={})),function(t){t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2"}(u||(u={})),function(t){t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange"}(c||(c={})),function(t){t.Start="start",t.Pause="pause",t.Resume="resume",t.Resize="resize",t.Finish="finish",t.FullsnapshotRebuilded="fullsnapshot-rebuilded",t.LoadStylesheetStart="load-stylesheet-start",t.LoadStylesheetEnd="load-stylesheet-end",t.SkipStart="skip-start",t.SkipEnd="skip-end",t.MouseInteraction="mouse-interaction",t.EventCast="event-cast",t.CustomEvent="custom-event",t.Flush="flush",t.StateChange="state-change",t.PlayBack="play-back"}(p||(p={}));let ts="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.",to={map:{},getId:()=>(console.error(ts),-1),getNode:()=>(console.error(ts),null),removeNodeFromMap(){console.error(ts)},has:()=>(console.error(ts),!1),reset(){console.error(ts)}};function tl(t,e,n={}){let a=null,i=0;return function(r){let s=Date.now();i||!1!==n.leading||(i=s);let o=e-(s-i),l=this,d=arguments;o<=0||o>e?(a&&(clearTimeout(a),a=null),i=s,t.apply(l,d)):a||!1===n.trailing||(a=setTimeout(()=>{i=!1===n.leading?0:Date.now(),a=null,t.apply(l,d)},o))}}function td(t,e,n,a,i=window){let r=i.Object.getOwnPropertyDescriptor(t,e);return i.Object.defineProperty(t,e,a?n:{set(t){setTimeout(()=>{n.set.call(this,t)},0),r&&r.set&&r.set.call(this,t)}}),()=>td(t,e,r||{},!0)}function th(t,e,n){try{if(!(e in t))return()=>{};let a=t[e],i=n(a);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:a}})),t[e]=i,()=>{t[e]=a}}catch(t){return()=>{}}}function tu(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function tc(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function tp(t,e,n,a){if(!t)return!1;
1if(t.nodeType===t.ELEMENT_NODE){let i=!1,r=a&&t.matches(a);return"string"==typeof e?i=void 0!==t.closest?!r&&null!==t.closest("."+e):!r&&t.classList.contains(e):r||t.classList.forEach(t=>{e.test(t)&&(i=!0)}),!i&&n&&(i=t.matches(n)),!r&&i||tp(t.parentNode,e,n,a)}return t.nodeType===t.TEXT_NODE,tp(t.parentNode,e,n,a)}function tf(t){return"__sn"in t&&-2===t.__sn.id}function t_(t){return!!t.changedTouches}function tm(t){return"__sn"in t&&t.__sn.type===o.Element&&"iframe"===t.__sn.tagName}function tg(t){return!!(null==t?void 0:t.shadowRoot)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(to=new Proxy(to,{get:(t,e,n)=>("map"===e&&console.error(ts),Reflect.get(t,e,n))}));class ty{constructor(){this.length=0,this.head=null}get(t){if(t>=this.length)throw Error("Position outside of list range");let e=this.head;for(let n=0;n<t;n++)e=(null==e?void 0:e.next)||null;return e}addNode(t){let e={value:t,previous:null,next:null};if(t.__ln=e,t.previousSibling&&"__ln"in t.previousSibling){let n=t.previousSibling.__ln.next;e.next=n,e.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=e,n&&(n.previous=e)}else if(t.nextSibling&&"__ln"in t.nextSibling&&t.nextSibling.__ln.previous){let n=t.nextSibling.__ln.previous;e.previous=n,e.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=e,n&&(n.next=e)}else this.head&&(this.head.previous=e),e.next=this.head,this.head=e;this.length++}removeNode(t){let e=t.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next&&(e.next.previous=e.previous)):(this.head=e.next,this.head&&(this.head.previous=null)),t.__ln&&delete t.__ln,this.length--)}}let tw=(t,e)=>`${t}@${e}`;class tb{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let t=[],e=new ty,n=t=>{let e=t,n=-2;for(;-2===n;)n=(e=e&&e.nextSibling)&&this.mirror.getId(e);return n},a=a=>{var i,r,s,o,l;let d=a.getRootNode?null==(i=a.getRootNode())?void 0:i.host:null,h=d;for(;null==(s=null==(r=null==h?void 0:h.getRootNode)?void 0:r.call(h))?void 0:s.host;)h=(null==(l=null==(o=null==h?void 0:h.getRootNode)?void 0:o.call(h))?void 0:l.host)||null;let u=!this.doc.contains(a)&&(!h||!this.doc.contains(h));if(!a.parentNode||u)return;let c=M(a.parentNode)?this.mirror.getId(d):this.mirror.getId(a.parentNode),p=n(a);if(-1===c||-1===p)return e.addNode(a);let f=ti(a,{doc:this.doc,map:this.mirror.map,blockClass:this.blockClass,blockSelector:this.blockSelector,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,skipChild:!0,inlineStylesheet:this.inlineStylesheet,maskAllText:this.maskAllText,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:t=>{tm(t)&&this.iframeManager.addIframe(t),tg(a)&&this.shadowDomManager.addShadowRoot(a.shadowRoot,document)},onIframeLoad:(t,e)=>{this.iframeManager.attachIframe(t,e),this.shadowDomManager.observeAttachShadow(t)}});f&&t.push({parentId:c,nextId:p,node:f})};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let t of this.movedSet)(!tk(this.removes,t,this.mirror)||this.movedSet.has(t.parentNode))&&a(t);for(let t of this.addedSet)tS(this.droppedSet,t)||tk(this.removes,t,this.mirror)?tS(this.movedSet,t)?a(t):this.droppedSet.add(t):a(t);let i=null;for(;e.length;){let t=null;if(i){let e=this.mirror.getId(i.value.parentNode),a=n(i.value);-1!==e&&-1!==a&&(t=i)}if(!t)for(let a=e.length-1;a>=0;a--){let i=e.get(a);if(i){let e=this.mirror.getId(i.value.parentNode),a=n(i.value);if(-1!==e&&-1!==a){t=i;break}}}if(!t){for(;e.head;)e.removeNode(e.head.value);break}i=t.previous,e.removeNode(t.value),a(t.value)}let r={texts:this.texts.map(t=>({id:this.mirror.getId(t.node),value:t.value})).filter(t=>this.mirror.has(t.id)),attributes:this.attributes.map(t=>({id:this.mirror.getId(t.node),attributes:t.attributes})).filter(t=>this.mirror.has(t.id)),removes:this.removes,adds:t};(r.texts.length||r.attributes.length||r.removes.length||r.adds.length)&&(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(r))},this.processMutation=t=>{if(!tf(t.target))switch(t.type){case"characterData":{let e=t.target.textContent;tp(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||e===t.oldValue||this.texts.push({value:tn(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextSelector,this.maskAllText)&&e?this.maskTextFn?this.maskTextFn(e):e.replace(/[\S]/g,"*"):e,node:t.target});break}case"attributes":{let e=t.target,n=e.getAttribute(t.attributeName);if("value"===t.attributeName&&(n=U({input:e,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:e.getAttribute("type"),value:n,maskInputFn:this.maskInputFn})),tp(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||n===t.oldValue)return;let a=this.attributes.find(e=>e.node===t.target);if(a||(a={node:t.target,attributes:{}},this.attributes.push(a)),"type"===t.attributeName&&"INPUT"===e.tagName&&"password"===(t.oldValue||"").toLowerCase()&&e.setAttribute("data-rr-is-password","true"),"style"===t.attributeName){let n=this.doc.createElement("span");t.oldValue&&n.setAttribute("style",t.oldValue),(void 0===a.attributes.style||null===a.attributes.style)&&(a.attributes.style={});try{let t=a.attributes.style;for(let a of Array.from(e.style)){let i=e.style.getPropertyValue(a),r=e.style.getPropertyPriority(a);(i!==n.style.getPropertyValue(a)||r!==n.style.getPropertyPriority(a)
1)&&(""===r?t[a]=i:t[a]=[i,r])}for(let a of Array.from(n.style))""===e.style.getPropertyValue(a)&&(t[a]=!1)}catch(t){console.warn("[rrweb] Error when parsing update to style attribute:",t)}}else{let e=t.target;a.attributes[t.attributeName]=te(this.doc,e,e.tagName,t.attributeName,n,this.maskAllText,this.unmaskTextSelector,this.maskTextFn)}break}case"childList":t.addedNodes.forEach(e=>this.genAdds(e,t.target)),t.removedNodes.forEach(e=>{let n=this.mirror.getId(e),a=M(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);tp(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||tf(e)||(this.addedSet.has(e)?(tv(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(t.target)&&-1===n||function t(e,n){if(M(e))return!1;let a=n.getId(e);return!n.has(a)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||t(e.parentNode,n))}(t.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[tw(n,a)]?tv(this.movedSet,e):this.removes.push({parentId:a,id:n,isShadow:!!M(t.target)||void 0})),this.mapRemoves.push(e))})}},this.genAdds=(t,e)=>{if(!(e&&tp(e,this.blockClass,this.blockSelector,this.unblockSelector))){if("__sn"in t){if(tf(t))return;this.movedSet.add(t);let n=null;e&&"__sn"in e&&(n=e.__sn.id),n&&(this.movedMap[tw(t.__sn.id,n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);tp(t,this.blockClass,this.blockSelector,this.unblockSelector)||t.childNodes.forEach(t=>this.genAdds(t))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskTextClass","maskTextSelector","unmaskTextSelector","maskInputSelector","unmaskInputSelector","inlineStylesheet","maskAllText","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].forEach(e=>{this[e]=t[e]})}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.shadowDomManager.reset(),this.canvasManager.reset()}}function tv(t,e){t.delete(e),e.childNodes.forEach(e=>tv(t,e))}function tk(t,e,n){let{parentNode:a}=e;if(!a)return!1;let i=n.getId(a);return!!t.some(t=>t.id===i)||tk(t,a,n)}function tS(t,e){let{parentNode:n}=e;return!!n&&(!!t.has(n)||tS(t,n))}let tE=t=>(...e)=>{try{return t(...e)}catch(t){try{t.__rrweb__=!0}catch(t){}throw t}},tx=[];function tR(t){try{if("composedPath"in t){let e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(t){}return t&&t.target}function tT(t,e){var n,a;let i=new tb;tx.push(i),i.init(t);let r=window.MutationObserver||window.__rrMutationObserver,s=null==(a=null==(n=null==window?void 0:window.Zone)?void 0:n.__symbol__)?void 0:a.call(n,"MutationObserver");s&&window[s]&&(r=window[s]);let o=new r(tE(e=>{t.onMutation&&!1===t.onMutation(e)||i.processMutations(e)}));return o.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function tC({scrollCb:t,doc:e,mirror:n,blockClass:a,blockSelector:i,unblockSelector:r,sampling:s}){let o=tl(s=>{let o=tR(s);if(!o||tp(o,a,i,r))return;let l=n.getId(o);if(o===e){let n=e.scrollingElement||e.documentElement;tE(t)({id:l,x:n.scrollLeft,y:n.scrollTop})}else tE(t)({id:l,x:o.scrollLeft,y:o.scrollTop})},s.scroll||100);return tr("scroll",tE(o),e)}function tA(t,e){let n=Object.assign({},t);return e||delete n.userTriggered,n}let tI=["INPUT","TEXTAREA","SELECT"],tN=new WeakMap;function tD(t){var e=[];if(tO("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||tO("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||tO("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||tO("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){let n=Array.from(t.parentRule.cssRules).indexOf(t);e.unshift(n)}else{let n=Array.from(t.parentStyleSheet.cssRules).indexOf(t);e.unshift(n)}return e}function tz(t,e={}){let n=t.doc.defaultView;if(!n)return()=>{};let{mutationCb:a,mousemoveCb:i,mouseInteractionCb:r,scrollCb:s,viewportResizeCb:o,inputCb:l,mediaInteractionCb:u,styleSheetRuleCb:c,styleDeclarationCb:p,canvasMutationCb:f,fontCb:_}=t;t.mutationCb=(...t)=>{e.mutation&&e.mutation(...t),a(...t)},t.mousemoveCb=(...t)=>{e.mousemove&&e.mousemove(...t),i(...t)},t.mouseInteractionCb=(...t)=>{e.mouseInteraction&&e.mouseInteraction(...t),r(...t)},t.scrollCb=(...t)=>{e.scroll&&e.scroll(...t),s(...t)},t.viewportResizeCb=(...t)=>{e.viewportResize&&e.viewportResize(...t),o(...t)},t.inputCb=(...t)=>{e.input&&e.input(...t),l(...t)},t.mediaInteractionCb=(...t)=>{e.mediaInteaction&&e.mediaInteaction(...t),u(...t)},t.styleSheetRuleCb=(...t)=>{e.styleSheetRule&&e.styleSheetRule(...t),c(...t)},t.styleDeclarationCb=(...t)=>{e.styleDeclaration&&e.styleDeclaration(...t),p(...t)},t.canvasMutationCb=(...t)=>{e.canvasMutation&&e.canvasMutation(...t),f(...t)},t.fontCb=(...t)=>{e.font&&e.font(...t),_(...t)};let m=tT(t,t.doc),g=function({mousemoveCb:t,sampling:e,doc:n,mirror:a}){let i;if(!1===e.mousemove)return()=>{};let r="number"==typeof e.mousemove?e.mousemove:50,s="number"==typeof e.mousemoveCallback?e.mousemoveCallback:500,o=[],l=tl(e=>{let n=Date.now()-i;tE(t)(o.map(t=>(t.timeOffset-=n,t)),e),o=[],i=null},s),h=tl(t=>{let e=tR(t),{clientX:n,clientY:r}=t_(t)?t.changedTouches[0]:t;i||(i=Date.now()),o.push({x:n,y:r,id:a.getId(e),timeOffset:Date.now()-i}),l("undefined"!=typeof DragEvent&&t instanceof DragEvent?d.Drag:t instanceof MouseEvent?d.MouseMove:d.TouchMove)},r,{trailing:!1}),u=[tr("mousemove",tE(h),n),tr("touchmove",tE(h),n),tr("drag",tE(
1h),n)];return tE(()=>{u.forEach(t=>t())})}(t),y=function({mouseInteractionCb:t,doc:e,mirror:n,blockClass:a,blockSelector:i,unblockSelector:r,sampling:s}){if(!1===s.mouseInteraction)return()=>{};let o=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,l=[];return Object.keys(h).filter(t=>Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&!1!==o[t]).forEach(s=>{let o=s.toLowerCase(),d=tE(e=>{let o=tR(e);if(tp(o,a,i,r))return;let l=t_(e)?e.changedTouches[0]:e;if(!l)return;let d=n.getId(o),{clientX:u,clientY:c}=l;tE(t)({type:h[s],id:d,x:u,y:c})});l.push(tr(o,d,e))}),tE(()=>{l.forEach(t=>t())})}(t),w=tC(t),b=function({viewportResizeCb:t}){let e=-1,n=-1,a=tl(()=>{let a=tu(),i=tc();(e!==a||n!==i)&&(tE(t)({width:Number(i),height:Number(a)}),e=a,n=i)},200);return tr("resize",tE(a),window)}(t),v=function({inputCb:t,doc:e,mirror:n,blockClass:a,blockSelector:i,unblockSelector:r,ignoreClass:s,ignoreSelector:o,maskInputSelector:l,unmaskInputSelector:d,maskInputOptions:h,maskInputFn:u,sampling:c,userTriggeredOnInput:p}){function f(t){let n=tR(t),c=n&&n.tagName,f=t.isTrusted;if("OPTION"===c&&(n=n.parentElement),!n||!c||0>tI.indexOf(c)||tp(n,a,i,r))return;let m=n,g=B(m);if(m.classList.contains(s)||o&&m.matches(o))return;let y=P(m,c,g),w=!1;("radio"===g||"checkbox"===g)&&(w=n.checked),function({tagName:t,type:e,maskInputOptions:n,maskInputSelector:a}){return a||L({maskInputOptions:n,tagName:t,type:e})}({maskInputOptions:h,maskInputSelector:l,tagName:c,type:g})&&(y=U({input:m,maskInputOptions:h,maskInputSelector:l,unmaskInputSelector:d,tagName:c,type:g,value:y,maskInputFn:u})),_(n,tE(tA)({text:y,isChecked:w,userTriggered:f},p));let b=n.name;"radio"===g&&b&&w&&e.querySelectorAll(`input[type="radio"][name="${b}"]`).forEach(t=>{if(t!==n){let e=U({input:t,maskInputOptions:h,maskInputSelector:l,unmaskInputSelector:d,tagName:c,type:g,value:P(t,c,g),maskInputFn:u});_(t,tE(tA)({text:e,isChecked:!w,userTriggered:!1},p))}})}function _(e,a){let i=tN.get(e);if(!i||i.text!==a.text||i.isChecked!==a.isChecked){tN.set(e,a);let i=n.getId(e);t(Object.assign(Object.assign({},a),{id:i}))}}let m=("last"===c.input?["change"]:["input","change"]).map(t=>tr(t,tE(f),e)),g=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),y=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return g&&g.set&&m.push(...y.map(t=>td(t[0],t[1],{set(){tE(f)({target:this})}}))),tE(()=>{m.forEach(t=>t())})}(t),k=function({mediaInteractionCb:t,blockClass:e,blockSelector:n,unblockSelector:a,mirror:i,sampling:r}){let s=s=>tl(tE(r=>{let o=tR(r);if(!o||tp(o,e,n,a))return;let{currentTime:l,volume:d,muted:h}=o;t({type:s,id:i.getId(o),currentTime:l,volume:d,muted:h})}),r.media||500),o=[tr("play",s(0)),tr("pause",s(1)),tr("seeked",s(2)),tr("volumechange",s(3))];return tE(()=>{o.forEach(t=>t())})}(t),S=function({styleSheetRuleCb:t,mirror:e},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let a=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:tE((n,a,i)=>{let[r,s]=i,o=e.getId(a.ownerNode);return -1!==o&&t({id:o,adds:[{rule:r,index:s}]}),n.apply(a,i)})});let i=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:tE((n,a,i)=>{let[r]=i,s=e.getId(a.ownerNode);return -1!==s&&t({id:s,removes:[{index:r}]}),n.apply(a,i)})});let r={};tM("CSSGroupingRule")?r.CSSGroupingRule=n.CSSGroupingRule:(tM("CSSMediaRule")&&(r.CSSMediaRule=n.CSSMediaRule),tM("CSSConditionRule")&&(r.CSSConditionRule=n.CSSConditionRule),tM("CSSSupportsRule")&&(r.CSSSupportsRule=n.CSSSupportsRule));let s={};return Object.entries(r).forEach(([n,a])=>{s[n]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=new Proxy(s[n].insertRule,{apply:tE((n,a,i)=>{let[r,s]=i,o=e.getId(a.parentStyleSheet.ownerNode);return -1!==o&&t({id:o,adds:[{rule:r,index:[...tD(a),s||0]}]}),n.apply(a,i)})}),a.prototype.deleteRule=new Proxy(s[n].deleteRule,{apply:tE((n,a,i)=>{let[r]=i,s=e.getId(a.parentStyleSheet.ownerNode);return -1!==s&&t({id:s,removes:[{index:[...tD(a),r]}]}),n.apply(a,i)})})}),tE(()=>{n.CSSStyleSheet.prototype.insertRule=a,n.CSSStyleSheet.prototype.deleteRule=i,Object.entries(r).forEach(([t,e])=>{e.prototype.insertRule=s[t].insertRule,e.prototype.deleteRule=s[t].deleteRule})})}(t,{win:n}),E=function({styleDeclarationCb:t,mirror:e},{win:n}){let a=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:tE((n,a,i)=>{var r,s;let[o,l,d]=i,h=e.getId(null==(s=null==(r=a.parentRule)?void 0:r.parentStyleSheet)?void 0:s.ownerNode);
1return -1!==h&&t({id:h,set:{property:o,value:l,priority:d},index:tD(a.parentRule)}),n.apply(a,i)})});let i=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:tE((n,a,i)=>{var r,s;let[o]=i,l=e.getId(null==(s=null==(r=a.parentRule)?void 0:r.parentStyleSheet)?void 0:s.ownerNode);return -1!==l&&t({id:l,remove:{property:o},index:tD(a.parentRule)}),n.apply(a,i)})}),tE(()=>{n.CSSStyleDeclaration.prototype.setProperty=a,n.CSSStyleDeclaration.prototype.removeProperty=i})}(t,{win:n}),x=t.collectFonts?function({fontCb:t,doc:e}){let n=e.defaultView;if(!n)return()=>{};let a=[],i=new WeakMap,r=n.FontFace;n.FontFace=function(t,e,n){let a=new r(t,e,n);return i.set(a,{family:t,buffer:"string"!=typeof e,descriptors:n,fontSource:"string"==typeof e?e:JSON.stringify(Array.from(new Uint8Array(e)))}),a};let s=th(e.fonts,"add",function(e){return function(n){return setTimeout(()=>{let e=i.get(n);e&&(t(e),i.delete(n))},0),e.apply(this,[n])}});return a.push(()=>{n.FontFace=r}),a.push(s),tE(()=>{a.forEach(t=>t())})}(t):()=>{},R=[];for(let e of t.plugins)R.push(e.observer(e.callback,n,e.options));return tE(()=>{tx.forEach(t=>t.reset()),m.disconnect(),g(),y(),w(),b(),v(),k();try{S(),E()}catch(t){}x(),R.forEach(t=>t())})}function tO(t){return void 0!==window[t]}function tM(t){return!!(void 0!==window[t]&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class tL{constructor(t){this.iframes=new WeakMap,this.mutationCb=t.mutationCb}addIframe(t){this.iframes.set(t,!0)}addLoadListener(t){this.loadListener=t}attachIframe(t,e){var n;this.mutationCb({adds:[{parentId:t.__sn.id,nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null==(n=this.loadListener)||n.call(this,t)}}class tU{constructor(t){this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;let e=this;this.restorePatches.push(th(HTMLElement.prototype,"attachShadow",function(t){return function(){let n=t.apply(this,arguments);return this.shadowRoot&&e.addShadowRoot(this.shadowRoot,this.ownerDocument),n}}))}addShadowRoot(t,e){tT(Object.assign(Object.assign({},this.bypassOptions),{doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t),tC(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))}observeAttachShadow(t){if(t.contentWindow){let e=this;this.restorePatches.push(th(t.contentWindow.HTMLElement.prototype,"attachShadow",function(n){return function(){let a=n.apply(this,arguments);return this.shadowRoot&&e.addShadowRoot(this.shadowRoot,t.contentDocument),a}}))}}reset(){this.restorePatches.forEach(t=>t())}}for(var tF="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tB="undefined"==typeof Uint8Array?[]:new Uint8Array(256),tP=0;tP<tF.length;tP++)tB[tF.charCodeAt(tP)]=tP;var tZ=function(t){var e,n=new Uint8Array(t),a=n.length,i="";for(e=0;e<a;e+=3)i+=tF[n[e]>>2],i+=tF[(3&n[e])<<4|n[e+1]>>4],i+=tF[(15&n[e+1])<<2|n[e+2]>>6],i+=tF[63&n[e+2]];return a%3==2?i=i.substring(0,i.length-1)+"=":a%3==1&&(i=i.substring(0,i.length-2)+"=="),i};let tG=new Map,tj=(t,e,n)=>{if(!t||!(tY(t,e)||"object"==typeof t))return;let a=function(t,e){let n=tG.get(t);return n||(n=new Map,tG.set(t,n)),n.has(e)||n.set(e,[]),n.get(e)}(n,t.constructor.name),i=a.indexOf(t);return -1===i&&(i=a.length,a.push(t)),i},tH=(t,e,n)=>[...t].map(t=>(function t(e,n,a){if(e instanceof Array)return e.map(e=>t(e,n,a));if(null===e);else 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)]};else if(e instanceof ArrayBuffer)return{rr_type:e.constructor.name,base64:tZ(e)};else if(e instanceof DataView)return{rr_type:e.constructor.name,args:[t(e.buffer,n,a),e.byteOffset,e.byteLength]};else if(e instanceof HTMLImageElement){let t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}else if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[t(e.data,n,a),e.width,e.height]};else if(tY(e,n)||"object"==typeof e)return{rr_type:e.constructor.name,index:tj(e,n,a)};return e})(t,e,n)),tY=(t,e)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(t=>"function"==typeof e[t]).find(n=>t instanceof e[n]);function t$(t,e,n,a,i,r,s,o){let l=[];for(let d of Object.getOwnPropertyNames(t))try{if("function"!=typeof t[d])continue;let h=th(t,d,function(l){return function(...h){let u=l.apply(this,h);if(tj(u,o,t),!tp(this.canvas,a,r,i)){s.getId(this.canvas);let a=tH([...h],o,t),i={type:e,property:d,args:a};n(this.canvas,i)}return u}});l.push(h)}catch(i){let a=td(t,d,{set(t){n(this.canvas,{type:e,property:d,args:[t],setter:!0})}});l.push(a)}return l}class tW{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(t,e){(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(t)||this.pendingCanvasMutations.set(t,[]),this.pendingCanvasMutations.get(t).push(e)},this.mutationCb=t.mutationCb,this.mirror=t.mirror,!0===t.recordCanvas&&this.initCanvasMutationObserver(t.win,t.blockClass,t.blockSelector,t.unblockSelector)}initCanvasMutationObserver(t,e,n,a){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let i=function(t,e,n,a){let i=[];try{let r=th(t.HTMLCanvasElement.prototype,"getContext",function(t){return function(i,...r){return tp(this,e,n,a)||"__context"in this||(this.__context=i),t.apply(this,[i,...r])}});i.push(r)}catch(t){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>
1{i.forEach(t=>t())}}(t,e,a,n),r=function(t,e,n,a,i,r){let s=[];for(let r of Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype))try{if("function"!=typeof e.CanvasRenderingContext2D.prototype[r])continue;let o=th(e.CanvasRenderingContext2D.prototype,r,function(e){return function(...s){return tp(this.canvas,n,i,a)||setTimeout(()=>{let e=[...s];if("drawImage"===r&&e[0]&&e[0]instanceof HTMLCanvasElement){let t=e[0],n=t.getContext("2d"),a=null==n?void 0:n.getImageData(0,0,t.width,t.height),i=null==a?void 0:a.data;e[0]=JSON.stringify(i)}t(this.canvas,{type:u["2D"],property:r,args:e})},0),e.apply(this,s)}});s.push(o)}catch(a){let n=td(e.CanvasRenderingContext2D.prototype,r,{set(e){t(this.canvas,{type:u["2D"],property:r,args:[e],setter:!0})}});s.push(n)}return()=>{s.forEach(t=>t())}}(this.processMutation.bind(this),t,e,a,n,this.mirror),s=function(t,e,n,a,i,r){let s=[];return s.push(...t$(e.WebGLRenderingContext.prototype,u.WebGL,t,n,a,i,r,e)),void 0!==e.WebGL2RenderingContext&&s.push(...t$(e.WebGL2RenderingContext.prototype,u.WebGL2,t,n,a,i,r,e)),()=>{s.forEach(t=>t())}}(this.processMutation.bind(this),t,e,a,n,this.mirror);this.resetObservers=()=>{i(),r(),s()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let t=e=>{this.rafStamps.latestId=e,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,e)=>{let n=this.mirror.getId(e);this.flushPendingCanvasMutationFor(e,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,e){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(t);if(!n||-1===e)return;let a=n.map(t=>(function(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&0>e.indexOf(a)&&(n[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,a=Object.getOwnPropertySymbols(t);i<a.length;i++)0>e.indexOf(a[i])&&Object.prototype.propertyIsEnumerable.call(t,a[i])&&(n[a[i]]=t[a[i]]);return n})(t,["type"])),{type:i}=n[0];this.mutationCb({id:e,type:i,commands:a}),this.pendingCanvasMutations.delete(t)}}function tq(t){return Object.assign(Object.assign({},t),{timestamp:Date.now()})}let tV={map:{},getId:t=>t&&t.__sn?t.__sn.id:-1,getNode(t){return this.map[t]||null},removeNodeFromMap(t){let e=t.__sn&&t.__sn.id;delete this.map[e],t.childNodes&&t.childNodes.forEach(t=>this.removeNodeFromMap(t))},has(t){return this.map.hasOwnProperty(t)},reset(){this.map={}}};function tX(t={}){let e,{emit:n,checkoutEveryNms:a,checkoutEveryNth:i,blockClass:o="rr-block",blockSelector:h=null,unblockSelector:u=null,ignoreClass:c="rr-ignore",ignoreSelector:p=null,maskTextClass:f="rr-mask",maskTextSelector:_=null,maskInputSelector:m=null,unmaskTextSelector:g=null,unmaskInputSelector:y=null,inlineStylesheet:w=!0,maskAllText:b=!1,maskAllInputs:v,maskInputOptions:k,slimDOMOptions:S,maskInputFn:E,maskTextFn:x,hooks:R,packFn:T,sampling:C={},mousemoveWait:A,recordCanvas:I=!1,userTriggeredOnInput:N=!1,collectFonts:D=!1,inlineImages:z=!1,plugins:O,keepIframeSrcFn:M=()=>!1,onMutation:L}=t;if(!n)throw Error("emit function is required");void 0!==A&&void 0===C.mousemove&&(C.mousemove=A);let U=!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,radio:!0,checkbox:!0}:void 0!==k?k:{},F=!0===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===S,headMetaDescKeywords:"all"===S}:S||{};!function(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(t){if(!(0 in arguments))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}();let B=0;r=(t,r)=>{var o;if((null==(o=tx[0])?void 0:o.isFrozen())&&t.type!==l.FullSnapshot&&(t.type!==l.IncrementalSnapshot||t.data.source!==d.Mutation)&&tx.forEach(t=>t.unfreeze()),n((t=>{for(let e of O||[])e.eventProcessor&&(t=e.eventProcessor(t));return T&&(t=T(t)),t})(t),r),t.type===l.FullSnapshot)e=t,B=0;else if(t.type===l.IncrementalSnapshot){if(t.data.source===d.Mutation&&t.data.isAttachIframe)return;B++;let n=i&&B>=i,r=a&&t.timestamp-e.timestamp>a;(n||r)&&s(!0)}};let P=t=>{r(tq({type:l.IncrementalSnapshot,data:Object.assign({source:d.Mutation},t)}))},Z=t=>r(tq({type:l.IncrementalSnapshot,data:Object.assign({source:d.Scroll},t)})),G=t=>r(tq({type:l.IncrementalSnapshot,data:Object.assign({source:d.CanvasMutation},t)})),j=new tL({mutationCb:P}),H=new tW({recordCanvas:I,mutationCb:G,win:window,blockClass:o,blockSelector:h,unblockSelector:u,mirror:tV}
1),Y=new tU({mutationCb:P,scrollCb:Z,bypassOptions:{onMutation:L,blockClass:o,blockSelector:h,unblockSelector:u,maskTextClass:f,maskTextSelector:_,unmaskTextSelector:g,maskInputSelector:m,unmaskInputSelector:y,inlineStylesheet:w,maskAllText:b,maskInputOptions:U,maskTextFn:x,maskInputFn:E,recordCanvas:I,inlineImages:z,sampling:C,slimDOMOptions:F,iframeManager:j,canvasManager:H},mirror:tV});s=(t=!1)=>{var e,n,a,i;r(tq({type:l.Meta,data:{href:window.location.href,width:tc(),height:tu()}}),t),tx.forEach(t=>t.lock());let[s,d]=function(t,e){let{blockClass:n="rr-block",blockSelector:a=null,unblockSelector:i=null,maskTextClass:r="rr-mask",maskTextSelector:s=null,unmaskTextSelector:o=null,inlineStylesheet:l=!0,inlineImages:d=!1,recordCanvas:h=!1,maskInputSelector:u=null,unmaskInputSelector:c=null,maskAllText:p=!1,maskAllInputs:f=!1,maskTextFn:_,maskInputFn:m,slimDOM:g=!1,dataURLOptions:y,preserveWhiteSpace:w,onSerialize:b,onIframeLoad:v,iframeLoadTimeout:k,keepIframeSrcFn:S=()=>!1}=e||{},E={};return[ti(t,{doc:t,map:E,blockClass:n,blockSelector:a,unblockSelector:i,maskTextClass:r,maskTextSelector:s,unmaskTextSelector:o,skipChild:!1,inlineStylesheet:l,maskInputSelector:u,unmaskInputSelector:c,maskAllText:p,maskInputOptions:!0===f?{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}:!1===f?{}:f,maskTextFn:_,maskInputFn:m,slimDOMOptions:!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===g,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===g?{}:g,dataURLOptions:y,inlineImages:d,recordCanvas:h,preserveWhiteSpace:w,onSerialize:b,onIframeLoad:v,iframeLoadTimeout:k,keepIframeSrcFn:S}),E]}(document,{blockClass:o,blockSelector:h,unblockSelector:u,maskTextClass:f,maskTextSelector:_,unmaskTextSelector:g,maskInputSelector:m,unmaskInputSelector:y,inlineStylesheet:w,maskAllText:b,maskAllInputs:U,maskTextFn:x,slimDOM:F,recordCanvas:I,inlineImages:z,onSerialize:t=>{tm(t)&&j.addIframe(t),tg(t)&&Y.addShadowRoot(t.shadowRoot,document)},onIframeLoad:(t,e)=>{j.attachIframe(t,e),Y.observeAttachShadow(t)},keepIframeSrcFn:M});if(!s)return console.warn("Failed to snapshot the document");tV.map=d,r(tq({type:l.FullSnapshot,data:{node:s,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null==document?void 0:document.documentElement.scrollLeft)||(null==(n=null==(e=null==document?void 0:document.body)?void 0:e.parentElement)?void 0:n.scrollLeft)||(null==document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null==document?void 0:document.documentElement.scrollTop)||(null==(i=null==(a=null==document?void 0:document.body)?void 0:a.parentElement)?void 0:i.scrollTop)||(null==document?void 0:document.body.scrollTop)||0}}})),tx.forEach(t=>t.unlock())};try{let t=[];t.push(tr("DOMContentLoaded",()=>{r(tq({type:l.DomContentLoaded,data:{}}))}));let e=t=>{var e;return tE(tz)({onMutation:L,mutationCb:P,mousemoveCb:(t,e)=>r(tq({type:l.IncrementalSnapshot,data:{source:e,positions:t}})),mouseInteractionCb:t=>r(tq({type:l.IncrementalSnapshot,data:Object.assign({source:d.MouseInteraction},t)})),scrollCb:Z,viewportResizeCb:t=>r(tq({type:l.IncrementalSnapshot,data:Object.assign({source:d.ViewportResize},t)})),inputCb:t=>r(tq({type:l.IncrementalSnapshot,data:Object.assign({source:d.Input},t)})),mediaInteractionCb:t=>r(tq({type:l.IncrementalSnapshot,data:Object.assign({source:d.MediaInteraction},t)})),styleSheetRuleCb:t=>r(tq({type:l.IncrementalSnapshot,data:Object.assign({source:d.StyleSheetRule},t)})),styleDeclarationCb:t=>r(tq({type:l.IncrementalSnapshot,data:Object.assign({source:d.StyleDeclaration},t)})),canvasMutationCb:G,fontCb:t=>r(tq({type:l.IncrementalSnapshot,data:Object.assign({source:d.Font},t)})),blockClass:o,ignoreClass:c,ignoreSelector:p,maskTextClass:f,maskTextSelector:_,unmaskTextSelector:g,maskInputSelector:m,unmaskInputSelector:y,maskInputOptions:U,inlineStylesheet:w,sampling:C,recordCanvas:I,inlineImages:z,userTriggeredOnInput:N,collectFonts:D,doc:t,maskAllText:b,maskInputFn:E,maskTextFn:x,blockSelector:h,unblockSelector:u,slimDOMOptions:F,mirror:tV,iframeManager:j,shadowDomManager:Y,canvasManager:H,plugins:(null==(e=null==O?void 0:O.filter(t=>t.observer))?void 0:e.map(t=>({observer:t.observer,options:t.options,callback:e=>r(tq({type:l.Plugin,data:{plugin:t.name,payload:e}}))})))||[]},R)};j.addLoadListener(n=>{try{t.push(e(n.contentDocument))}catch(t){console.warn(t)}});let n=()=>{s(),t.push(e(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():t.push(tr("load",()=>{r(tq({type:l.Load,data:{}})),n()},window)),()=>{t.forEach(t=>t())}}catch(t){console.warn(t)}}tX.addCustomEvent=(t,e)=>{if(!r)throw Error("please add custom event after start recording");r(tq({type:l.Custom,data:{tag:t,payload:e}}))},tX.freezePage=()=>{tx.forEach(t=>t.freeze())},tX.takeFullSnapshot=t=>{if(!s)throw Error("please take full snapshot after start recording");s(t)},tX.mirror=tV;let tK=["name","type","startTime","transferSize","duration"];function tJ(t){return function(e){return tK.every(n=>t[n]===e[n])}}let tQ=`/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */ 2function t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=new Uint8Array([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]),a=new Uint8Array([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]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),n=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);t(s);const r=new Array(60);t(r);const o=new Array(512);t(o);const l=new Array(256);t(l);const h=new Array(29);t(h);const d=new Array(30);function _(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}let f,c,u;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(d);const m=t=>t<256?o[t]:o[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,b(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},p=(t,e,a)=>{g(t,a[2*e],a[2*e+1])},k=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},v=(t,e,a)=>{const i=new Array(16);let n,s,r=0;for(n=1;n<=15;n++)r=r+a[n-1]<<1,i[n]=r;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=k(i[e]++,e))}},y=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},x=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},z=(t,e,a,i)=>{const n=2*e,s=2*a;return t[n]<t[s]||t[n]===t[s]&&i[e]<=i[a]},A=(t,e,a)=>{const i=t.heap[a];let n=a<<1;for(;n<=t.heap_len&&(n<t.heap_len&&z(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!z(e,i,t.heap[n],t.depth));)t.heap[a]=t.heap[n],a=n,n<<=1;t.heap[a]=i},E=(t,i,n)=>{let s,r,o,_,f=0;if(0!==t.sym_next)do{s=255&t.pending_buf[t.sym_buf+f++],s+=(255&t.pending_buf[t.sym_buf+f++])<<8,r=t.pen
vendor: 4,281 bytes, line 2
2ding_buf[t.sym_buf+f++],0===s?p(t,r,i):(o=l[r],p(t,o+256+1,i),_=e[o],0!==_&&(r-=h[o],g(t,r,_)),s--,o=m(s),p(t,o,n),_=a[o],0!==_&&(s-=d[o],g(t,s,_)))}while(f<t.sym_next);p(t,256,i)},R=(t,e)=>{const a=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,s=e.stat_desc.elems;let r,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<s;r++)0!==a[2*r]?(t.heap[++t.heap_len]=h=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=h<2?++h:0,a[2*l]=1,t.depth[l]=0,t.opt_len--,n&&(t.static_len-=i[2*l+1]);for(e.max_code=h,r=t.heap_len>>1;r>=1;r--)A(t,a,r);l=s;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,a[2*l]=a[2*r]+a[2*o],t.depth[l]=(t.depth[r]>=t.depth[o]?t.depth[r]:t.depth[o])+1,a[2*r+1]=a[2*o+1]=l,t.heap[1]=l++,A(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,s=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>i||(t.bl_count[f]++,c=0,d>=o&&(c=r[d-o]),u=a[2*d],t.opt_len+=u*(f+c),s&&(t.static_len+=u*(n[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>i||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}})(t,e),v(a,h,t.bl_count)},Z=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=r,r=e[2*(i+1)+1],++o<l&&n===r||(o<h?t.bl_tree[2*n]+=o:0!==n?(n!==s&&t.bl_tree[2*n]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4))},U=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=a;i++)if(n=r,r=e[2*(i+1)+1],!(++o<l&&n===r)){if(o<h)do{p(t,n,t.bl_tree)}while(0!=--o);else 0!==n?(n!==s&&(p(t,n,t.bl_tree),o--),p(t,16,t.bl_tree),g(t,o-3,2)):o<=10?(p(t,17,t.bl_tree),g(t,o-3,3)):(p(t,18,t.bl_tree),g(t,o-11,7));o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4)}};let S=!1;const D=(t,e,a,i)=>{g(t,0+(i?1:0),3),x(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var T=(t,e,a,i)=>{let o,l,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),h=(t=>{let e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*n[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=o&&(o=l)):o=l=a+5,a+4<=o&&-1!==e?D(t,e,a,i):4===t.strategy||l===o?(g(t,2+(i?1:0),3),E(t,s,r)):(g(t,4+(i?1:0),3),((t,e,a,i)=>{let s;for(g(t,e-257,5),g(t,a-1,5),g(t,i-4,4),s=0;s<i;s++)g(t,t.bl_tree[2*n[s]+1],3);U(t,t.dyn_ltree,e-1),U(t,t.dyn_dtree,a-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),E(t,t.dyn_ltree,t.dyn_dtree)),y(t),i&&x(t)},O={_tr_init:t=>{S||((()=>{let t,n,w,m,b;const g=new Array(16);for(w=0,m=0;m<28;m++)for(h[m]=w,t=0;t<1<<e[m];t++)l[w++]=m;for(l[w-1]=m,b=0,m=0;m<16;m++)for(d[m]=b,t=0;t<1<<a[m];t++)o[b++]=m;for(b>>=7;m<30;m++)for(d[m]=b<<7,t=0;t<1<<a[m]-7;t++)o[256+b++]=m;for(n=0;n<=15;n++)g[n]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,g[8]++;for(;t<=255;)s[2*t+1]=9,t++,g[9]++;for(;t<=279;)s[2*t+1]=7,t++,g[7]++;for(;t<=287;)s[2*t+1]=8,t++,g[8]++;for(v(s,287,g),t=0;t<30;t++)r[2*t+1]=5,r[2*t]=k(t,5);f=new _(s,e,257,286,15),c=new _(r,a,0,30,15),u=new _(new Array(0),i,0,19,7)})(),S=!0),t.l_desc=new w(t.dyn_ltree,f),t.d_desc=new w(t.dyn_dtree,c),t.bl_desc=new w(t.bl_tree,u),t.bi_buf=0,t.bi_valid=0,y(t)},_tr_stored_block:D,_tr_flush_block:T,_tr_tally:(t,e,a)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(l[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{g(t,2,3),p(t,256,s),(t=>
2{16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var F=(t,e,a,i)=>{let n=65535&t|0,s=t>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+e[i++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const L=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var N=(t,e,a,i)=>{const n=L,s=i+a;t^=-1;for(let a=i;a<s;a++)t=t>>>8^n[255&(t^e[a])];return-1^t},I={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},B={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:C,_tr_stored_block:H,_tr_flush_block:M,_tr_tally:j,_tr_align:K}=O,{Z_NO_FLUSH:P,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:G,Z_FINISH:X,Z_BLOCK:W,Z_OK:q,Z_STREAM_END:J,Z_STREAM_ERROR:Q,Z_DATA_ERROR:V,Z_BUF_ER
vendor: 10,438 bytes, line 2
2ROR:$,Z_DEFAULT_COMPRESSION:tt,Z_FILTERED:et,Z_HUFFMAN_ONLY:at,Z_RLE:it,Z_FIXED:nt,Z_DEFAULT_STRATEGY:st,Z_UNKNOWN:rt,Z_DEFLATED:ot}=B,lt=(t,e)=>(t.msg=I[e],e),ht=t=>2*t-(t>4?9:0),dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},_t=t=>{let e,a,i,n=t.w_size;e=t.hash_size,i=e;do{a=t.head[--i],t.head[i]=a>=n?a-n:0}while(--e);e=n,i=e;do{a=t.prev[--i],t.prev[i]=a>=n?a-n:0}while(--e)};let ft=(t,e,a)=>(e<<t.hash_shift^a)&t.hash_mask;const ct=t=>{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},ut=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ct(t.strm)},wt=(t,e)=>{t.pending_buf[t.pending++]=e},mt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},bt=(t,e,a,i)=>{let n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),a),1===t.state.wrap?t.adler=F(t.adler,e,n,a):2===t.state.wrap&&(t.adler=N(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)},gt=(t,e)=>{let a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+258;let c=h[s+r-1],u=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+r]===u&&h[a+r-1]===c&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do{}while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&s<f);if(i=258-(f-s),s=f-258,i>r){if(t.match_start=e,r=i,i>=o)break;c=h[s+r-1],u=h[s+r]}}}while((e=_[e&d])>l&&0!=--n);return r<=t.lookahead?r:t.lookahead},pt=t=>{const e=t.w_size;let a,i,n;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),i+=e),0===t.strm.avail_in)break;if(a=bt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=a,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ft(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ft(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,i,n,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r=0,o=t.strm.avail_in;do{if(a=65535,n=t.bi_valid+42>>3,t.strm.avail_out<n)break;if(n=t.strm.avail_out-n,i=t.strstart-t.block_start,a>i+t.strm.avail_in&&(a=i+t.strm.avail_in),a>n&&(a=n),a<s&&(0===a&&e!==X||e===P||a!==i+t.strm.avail_in))break;r=e===X&&a===i+t.strm.avail_in?1:0,H(t,0,0,r),t.pending_buf[t.pending-4]=a,t.pending_buf[t.pending-3]=a>>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,ct(t.strm),i&&(i>a&&(i=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,a-=i),a&&(bt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===r);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),r?4:e!==P&&e!==X&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(n=t.window_size-t.strstart,t.strm.avail_in>n&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,n+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),n>t.strm.avail_in&&(n=t.strm.avail_in),n&&(bt(t.strm,t.window,t.strstart,n),t.strstart+=n,t.insert+=n>t.w_size-t.insert?t.w_size-t.insert:n),t.high_water<t.strstart&&(t.high_water=t.strstart),n=t.bi_valid+42>>3,n=t.pending_buf_size-n>65535?65535:t.pending_buf_size-n,s=n>t.w_size?t.w_size:n,i=t.strstart-t.block_start,(i>=s||(i||e===X)&&e!==P&&0===t.strm.avail_in&&i<=n)&&(a=i>n?n:i,r=e===X&&0===t.strm.avail_in&&a===i?1:0,H(t,t.block_start,a,r),t.block_start+=a,ct(t.strm)),r?3:1)},vt=(t,e)=>{let a,i;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a)),t.match_length>=3)if(i=j(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ft(t,t.ins_h,t.window[t.strstart+1]);else i=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2},yt=(t,e)=>{let a,i,n;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a),t.match_length<=5&&(t.strategy===et||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=j(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(ut(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=j(t,0,t.window[t.strstart-1]),i&&ut(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=j(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2};function xt(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}const zt=[new xt(0,0,0,0,kt),new xt(4,4,8,4,vt),new xt(4,5,16,8,vt),new xt(4,6,32,32,vt),new xt(4,4,16,16,yt),new xt(8,16,32,32,yt),new xt(8,16,128,128,yt),new xt(8,32,128,256,yt),new xt(32,128,258,1024,yt),new xt(32,258,258,4096,yt)];function At(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ot,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),dt(this.dyn_ltree),dt(this.dyn_dtree),dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Et=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Et(t))return lt(t,Q);t.total_in=t.total_out=0,t.data_type=rt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,C(e),q},Zt=t=>{const e=Rt(t);var a;return e===q&&((a=t.state).window_size=2*a.w_size,dt(a.head),a.max_lazy_match=zt[a.level].max_lazy,a.good_match=zt[a.level].good_length,a.nice_match=zt[a.level].nice_length,a.max_chain_length=zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},Ut=(t,e,a,i,n,s)=>{if(!t)return Q;let r=1;if(e===tt&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),n<1||n>9||a!==ot||i<8||i>15||e<0||e>9||s<0||s>nt||8===i&&1!==r)return lt(t,Q);8===i&&(i=9);const o=new At;return t.state=o,o.strm=t,o.status=42,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=n+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+3-1)/3),o.window=new Uint8Array(2*o.w_size),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=3*(o.lit_bufsize-1),o.level=e,o.strategy=s,o.method=a,Zt(t)};var St={deflateInit:(t,e)=>Ut(t,e,ot,15,8,st),deflateInit2:Ut,deflateReset:Zt,deflateResetKeep:Rt,deflateSetHeader:(t,e)=>Et(t)||2!==t.state.wrap?Q:(t.state.gzhead=e,q),deflate:(t,e)=>{if(Et(t)||e>W||e<0)return t?lt(t,Q):Q;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==X)return lt(t,0===t.avail_out?$:Q);const i=a.last_flush;
vendor: 4,728 bytes, line 2
2if(a.last_flush=e,0!==a.pending){if(ct(t),0===t.avail_out)return a.last_flush=-1,q}else if(0===t.avail_in&&ht(e)<=ht(i)&&e!==X)return lt(t,$);if(666===a.status&&0!==t.avail_in)return lt(t,$);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,i=-1;if(i=a.strategy>=at||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=i<<6,0!==a.strstart&&(e|=32),e+=31-e%31,mt(a,e),0!==a.strstart&&(mt(a,t.adler>>>16),mt(a,65535&t.adler)),t.adler=1,a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(57===a.status)if(t.adler=0,wt(a,31),wt(a,139),wt(a,8),a.gzhead)wt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),wt(a,255&a.gzhead.time),wt(a,a.gzhead.time>>8&255),wt(a,a.gzhead.time>>16&255),wt(a,a.gzhead.time>>24&255),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(wt(a,255&a.gzhead.extra.length),wt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=N(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,3),a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q;if(69===a.status){if(a.gzhead.extra){let e=a.pending,i=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+i>a.pending_buf_size;){let n=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=n,ct(t),0!==a.pending)return a.last_flush=-1,q;e=0,i-=n}let n=new Uint8Array(a.gzhead.extra);a.pending_buf.set(n.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending+=i,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(ct(t),0!==a.pending))return a.last_flush=-1,q;wt(a,255&t.adler),wt(a,t.adler>>8&255),t.adler=0}if(a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(0!==t.avail_in||0!==a.lookahead||e!==P&&666!==a.status){let i=0===a.level?kt(a,e):a.strategy===at?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(pt(t),0===t.lookahead)){if(e===P)return 1;break}if(t.match_length=0,a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,i,n,s;const r=t.window;for(;;){if(t.lookahead<=258){if(pt(t),t.lookahead<=258&&e===P)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+258;do{}while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&n<s);t.match_length=258-(s-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=j(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):zt[a.level].func(a,e);if(3!==i&&4!==i||(a.status=666),1===i||3===i)return 0===t.avail_out&&(a.last_flush=-1),q;if(2===i&&(e===Y?K(a):e!==W&&(H(a,0,0,!1),e===G&&(dt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),ct(t),0===t.avail_out))return a.last_flush=-1,q}return e!==X?q:a.wrap<=0?J:(2===a.wrap?(wt(a,255&t.adler),wt(a,t.adler>>8&255),wt(a,t.adler>>16&255),wt(a,t.adler>>24&255),wt(a,255&t.total_in),wt(a,t.total_in>>8&255),wt(a,t.total_in>>16&255),wt(a,t.total_in>>24&255)):(mt(a,t.adler>>>16),mt(a,65535&t.adler)),ct(t),a.wrap>
vendor: 10,448 bytes, line 2
20&&(a.wrap=-a.wrap),0!==a.pending?q:J)},deflateEnd:t=>{if(Et(t))return Q;const e=t.state.status;return t.state=null,113===e?lt(t,V):q},deflateSetDictionary:(t,e)=>{let a=e.length;if(Et(t))return Q;const i=t.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return Q;if(1===n&&(t.adler=F(t.adler,e,a,0)),i.wrap=0,a>=i.w_size){0===n&&(dt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(a-i.w_size,a),0),e=t,a=i.w_size}const s=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,pt(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=ft(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,pt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=s,i.wrap=n,q},deflateInfo:"pako deflate (from Nodeca project)"};const Dt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Tt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Dt(a,e)&&(t[e]=a[e])}}return t},Ot=t=>{let e=0;for(let a=0,i=t.length;a<i;a++)e+=t[a].length;const a=new Uint8Array(e);for(let e=0,i=0,n=t.length;e<n;e++){let n=t[e];a.set(n,i),i+=n.length}return a};let Ft=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Ft=!1}const Lt=new Uint8Array(256);for(let t=0;t<256;t++)Lt[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Lt[254]=Lt[254]=1;var Nt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,i,n,s,r=t.length,o=0;for(n=0;n<r;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),o+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(o),s=0,n=0;s<o;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),a<128?e[s++]=a:a<2048?(e[s++]=192|a>>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},It=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const s=new Array(2*a);for(n=0,i=0;i<a;){let e=t[i++];if(e<128){s[n++]=e;continue}let r=Lt[e];if(r>4)s[n++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i<a;)e=e<<6|63&t[i++],r--;r>1?s[n++]=65533:e<65536?s[n++]=e:(e-=65536,s[n++]=55296|e>>10&1023,s[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Ft)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let i=0;i<e;i++)a+=String.fromCharCode(t[i]);return a})(s,n)},Bt=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Lt[t[a]]>e?a:e};var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Kt,Z_FINISH:Pt,Z_OK:Yt,Z_STREAM_END:Gt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_STRATEGY:Wt,Z_DEFLATED:qt}=B;function Jt(t){this.options=Tt({level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=St.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Yt)throw new Error(I[a]);if(e.header&&St.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Nt(e.dictionary):"[object ArrayBuffer]"===Ht.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=St.deflateSetDictionary(this.strm,t),a!==Yt)throw new Error(I[a]);this._dict_set=!0}}function Qt(t,e){const a=new Jt(e);if(a.push(t,!0),a.err)throw a.msg||I[a.err];return a.result}Jt.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Pt:Mt,"string"==typeof t?a.input=Nt(t):"[object ArrayBuffer]"===Ht.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(s===jt||s===Kt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=St.deflate(a,s),n===Gt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=St.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yt;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===Yt&&(this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Vt={Deflate:Jt,deflate:Qt,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Qt(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Qt(t,e)},constants:B};var $t=function(t,e){let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,i=a+(t.avail_in-5),n=t.next_out,A=t.output,s=n-(e-t.avail_out),r=n+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,m=(1<<E.lenbits)-1,b=(1<<E.distbits)-1;t:do{c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=u[f&m];e:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[n++]=65535&g;else{if(!(16&p)){if(0==(64&p)){g=u[(65535&g)+(f&(1<<p)-1)];continue e}if(32&p){E.mode=16191;break t}t.msg="invalid literal/length code",E.mode=16209;break t}k=65535&g,p&=15,p&&(c<p&&(f+=z[a++]<<c,c+=8),k+=f&(1<<p)-1,f>>>=p,c-=p),c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=w[f&b];a:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,!(16&p)){if(0==(64&p)){g=w[(65535&g)+(f&(1<<p)-1)];continue a}t.msg="invalid distance code",E.mode=16209;break t}if(v=65535&g,p&=15,c<p&&(f+=z[a++]<<c,c+=8,c<p&&(f+=z[a++]<<c,c+=8)),v+=f&(1<<p)-1,v>o){t.msg="invalid distance too far back",E.mode=16209;break t}if(f>>>=p,c-=p,p=n-s,v>p){if(p=v-p,p>h&&E.sane){t.msg="invalid distance too far back",E.mode=16209;break t}if(y=0,x=_,0===d){if(y+=l-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}else if(d<p){if(y+=l+d-p,p-=d,p<k){k-=p;do{A[n++]=_[y++]}while(--p);if(y=0,d<k){p=d,k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}}else if(y+=d-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}for(;k>2;)A[n++]=x[y++],A[n++]=x[y++],A[n++]=x[y++],k-=3;k&&(A[n++]=x[y++],k>1&&(A[n++]=x[y++]))}else{y=n-v;do{A[n++]=A[y++],A[n++]=A[y++],A[n++]=A[y++],k-=3}while(k>2);k&&(A[n++]=A[y++],k>1&&(A[n++]=A[y++]))}break}}break}}while(a<i&&n<r);k=c>>3,a-=k,c-=k<<3,f&=(1<<c)-1,t.next_in=a,t.next_out=n,t.avail_in=a<i?i-a+5:5-(a-i),t.avail_out=n<r?r-n+257:257-(n-r),E.hold=f,E.bits=c};const te=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ee=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ae=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ie=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var ne=(t,e,a,i,n,s,r,o)=>{const l=o.bits;let h,d,_,f,c,u,w=0,m=0,b=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,U,S,D=null;for(w=0;w<=15;w++)E[w]=0;for(m=0;m<i;m++)E[e[a+m]]++;for(p=l,g=15;g>=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(b=1;b<g&&0===E[b];b++);for(p<b&&(p=b),y=1,w=1;w<=15;w++)if(y<<=1,y-=E[w],y<0)return-1;if(y>0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(m=0;m<i;m++)0!==e[a+m]&&(r[R[e[a+m]]++]=m);if(0===t?(A=D=r,u=20):1===t?(A=te,D=ee,u=257):(A=ae,D=ie,u=0),z=0,m=0,w=b,c=s,k=p,v=0,_=-1,x=1<<p,f=x-1,1===t&&x>852||2===t&&x>592)return 1;for(;;){Z=w-v,r[m]+1<u?(U=0,S=r[m]):r[m]>=u?(U=D[r[m]-u],S=A[r[m]-u]):(U=96,S=0),h=1<<w-v,d=1<<k,b=d;do{d-=h,n[c+(z>>v)+d]=Z<<24|U<<16|S|0}while(0!==d);for(h=1<<w-1;z&h;)h>>=1;if(0!==h?(z&=h-1,z+=h):z=0,m++,0==--E[w]){if(w===g)break;w=e[a+r[m]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=b,k=w-v,y=1<<k;k+v<g&&(y-=E[k+v],!(y<=0));)k++,y<<=1;if(x+=1<<k,1===t&&x>852||2===t&&x>592)return 1;_=z&f,n[_]=p<<24|k<<16|c-s|0}}return 0!==z&&(n[c+z]=w-v<<24|64<<16|0),o.bits=p,0};const{Z_FINISH:se,Z_BLOCK:re,Z_TREES:oe,Z_OK:le,Z_STREAM_END:he,Z_NEED_DICT:de,Z_STREAM_ERROR:_e,Z_DATA_ERROR:fe,Z_MEM_ERROR:ce,Z_BUF_ERROR:ue,Z_DEFLATED:we}=B,me=16209,be=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const pe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},ke=t=>{if(pe(t))return _e;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,le},ve=t=>{if(pe(t))return _e;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,ke(t)},ye=(t,e)=>{let a;if(pe(t))return _e;const i=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_e:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,ve(t))},xe=(t,e)=>{if(!t)return _e;const a=new ge;t.state=a,a.strm=t,a.window=null,a.mode=16180;const i=ye(t,e);return i!==le&&(t.state=null),i};let ze,Ae,Ee=!0;const Re=t=>
vendor: 11,506 bytes, line 2
2{if(Ee){ze=new Int32Array(512),Ae=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ne(1,t.lens,0,288,ze,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ne(2,t.lens,0,32,Ae,0,t.work,{bits:5}),Ee=!1}t.lencode=ze,t.lenbits=9,t.distcode=Ae,t.distbits=5},Ze=(t,e,a,i)=>{let n;const s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),i>=s.wsize?(s.window.set(e.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),s.window.set(e.subarray(a-i,a-i+n),s.wnext),(i-=n)?(s.window.set(e.subarray(a-i,a),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=n))),0};var Ue={inflateReset:ve,inflateReset2:ye,inflateResetKeep:ke,inflateInit:t=>xe(t,15),inflateInit2:xe,inflate:(t,e)=>{let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pe(t)||!t.output||!t.input&&0!==t.avail_in)return _e;a=t.state,16191===a.mode&&(a.mode=16192),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=le;t:for(;;)switch(a.mode){case 16180:if(0===a.wrap){a.mode=16192;break}for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(2&a.wrap&&35615===h){0===a.wbits&&(a.wbits=15),a.check=0,A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",a.mode=me;break}if((15&h)!==we){t.msg="unknown compression method",a.mode=me;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg="invalid window size",a.mode=me;break}a.dmax=1<<a.wbits,a.flags=0,t.adler=a.check=1,a.mode=512&h?16189:16191,h=0,d=0;break;case 16181:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.flags=h,(255&a.flags)!==we){t.msg="unknown compression method",a.mode=me;break}if(57344&a.flags){t.msg="unknown header flags set",a.mode=me;break}a.head&&(a.head.text=h>>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.time=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=N(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.xflags=255&h,a.head.os=h>>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length=h,a.head&&(a.head.extra_len=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(i.subarray(s,s+c),y)),512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.name=null);a.length=0,a.mode=16187;case 16187:if(4096&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.comment+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.comment=null);a.mode=16188;case 16188:if(512&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(65535&a.check)){t.msg="header crc mismatch",a.mode=me;break}h=0,d=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=16191;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}t.adler=a.check=be(h),h=0,d=0,a.mode=16190;case 16190:if(0===a.havedict)return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,de;t.adler=a.check=1,a.mode=16191;case 16191:if(e===re||e===oe)break t;case 16192:if(a.last){h>>>=7&d,d-=7&d,a.mode=16206;break}for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}switch(a.last=1&h,h>>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(Re(a),a.mode=16199,e===oe){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg="invalid block type",a.mode=me}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if((65535&h)!=(h>>>16^65535)){t.msg="invalid stored block lengths",a.mode=me;break}if(a.length=65535&h,h=0,d=0,a.mode=16194,e===oe)break t;case 16194:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;n.set(i.subarray(s,s+c),r),o-=c,s+=c,l-=c,r+=c,a.length-=c;break}a.mode=16191;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.nlen=257+(31&h),h>>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=me;break}a.have=0,a.mode=16197;case 16197:for(;a.have<a.ncode;){for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.lens[Z[a.have++]]=7&h,h>>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=ne(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid code lengths set",a.mode=me;break}a.have=0,a.mode=16198;case 16198:for(;a.have<a.nlen+a.ndist;){for(;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(g<16)h>>>=m,d-=m,a.lens[a.have++]=g;else{if(16===g){for(R=m+2;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(h>>>=m,d-=m,0===a.have){t.msg="invalid bit length repeat",a.mode=me;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=m+3;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=m+7;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=me;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===me)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=me;break}if(a.lenbits=9,E={bits:a.lenbits},x=ne(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid literal/lengths set",a.mode=me;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=ne(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg="invalid distances set",a.mode=me;break}if(a.mode=16199,e===oe)break t;case 16199:a.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,$t(t,f),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,16191===a.mode&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(b&&0==(240&b)){for(p=m,k=b,v=g;z=a.lencode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,a.length=g,0===b){a.mode=16205;break}if(32&b){a.back=-1,a.mode=16191;break}if(64&b){t.msg="invalid literal/length code",a.mode=me;break}a.extra=15&b,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<<a.distbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(0==(240&b)){for(p=m,k=b,v=g;z=a.distcode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,64&b){t.msg="invalid distance code",a.mode=me;break}a.offset=g,a.extra=15&b,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.offset+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=me;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=me;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=n,u=r-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{n[r++]=w[u++]}while(--c);0===a.length&&(a.mode=16200);break;case 16205:if(0===l)break t;n[r++]=a.length,l--,a.mode=16200;break;case 16206:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[s++]<<d,d+=8}if(f-=l,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,r-f):F(a.check,n,f,r-f)),f=l,4&a.wrap&&(a.flags?h:be(h))!==a.check){t.msg="incorrect data check",a.mode=me;break}h=0,d=0}a.mode=16207;case 16207:if(a.wrap&&a.flags){for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(4294967295&a.total)){t.msg="incorrect length check",a.mode=me;break}h=0,d=0}a.mode=16208;case 16208:x=he;break t;case me:x=fe;break t;case 16210:return ce;default:return _e}return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,(a.wsize||f!==t.avail_out&&a.mode<me&&(a.mode<16206||e!==se))&&Ze(t,t.output,t.next_out,f-t.avail_out),_-=t.avail_in,f-=t.avail_out,t.total_in+=_,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,t.next_out-f):F(a.check,n,f,t.next_out-f)),t.data_type=a.bits+(a.last?64:0)+(16191===a.mode?128:0)+(16199===a.mode||16194===a.mode?256:0),(0===_&&0===f||e===se)&&x===le&&(x=ue),x},inflateEnd:t=>{if(pe(t))return _e;let e=t.state;return e.window&&(e.window=null),t.state=null,le},inflateGetHeader:(t,e)=>{if(pe(t))return _e;const a=t.state;return 0==(2&a.wrap)?_e:(a.head=e,e.done=!1,le)},inflateSetDictionary:(t,e)=>{const a=e.length;let i,n,s;return pe(t)?_e:(i=t.state,0!==i.wrap&&16190!==i.mode?_e:16190===i.mode&&(n=1,n=F(n,e,a,0),n!==i.check)?fe:(s=Ze(t,e,a,a),s?(i.mode=16210,ce):(i.havedict=1,le)))},inflateInfo:"pako inflate (from Nodeca project)"};var Se=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const De=Object.prototype.toString,{Z_NO_FLUSH:Te,Z_FINISH:Oe,Z_OK:Fe,Z_STREAM_END:Le,Z_NEED_DICT:Ne,Z_STREAM_ERROR:Ie,Z_DATA_ERROR:Be,Z_MEM_ERROR:Ce}=B;function He(t){this.options=Tt({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Ue.inflateInit2(this.strm,e.windowBits);if(a!==Fe)throw new Error(I[a]);if(this.header=new Se,Ue.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Nt(e.dictionary):"[object ArrayBuffer]"===De.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=Ue.inflateSetDictionary(this.strm,e.dictionary),a!==Fe)))throw new Error(I[a])}He.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let s,r,o;
2if(this.ended)return!1;for(r=e===~~e?e:!0===e?Oe:Te,"[object ArrayBuffer]"===De.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),s=Ue.inflate(a,r),s===Ne&&n&&(s=Ue.inflateSetDictionary(a,n),s===Fe?s=Ue.inflate(a,r):s===Be&&(s=Ne));a.avail_in>0&&s===Le&&a.state.wrap>0&&0!==t[a.next_in];)Ue.inflateReset(a),s=Ue.inflate(a,r);switch(s){case Ie:case Be:case Ne:case Ce:return this.onEnd(s),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||s===Le))if("string"===this.options.to){let t=Bt(a.output,a.next_out),e=a.next_out-t,n=It(a.output,t);a.next_out=e,a.avail_out=i-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==Fe||0!==o){if(s===Le)return s=Ue.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},He.prototype.onData=function(t){this.chunks.push(t)},He.prototype.onEnd=function(t){t===Fe&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:Me,deflate:je,deflateRaw:Ke,gzip:Pe}=Vt;var Ye=Me,Ge=je,Xe=B;const We=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const e=this._hasEvents?",":"";this.deflate.push(e+t,Xe.Z_SYNC_FLUSH),this._hasEvents=!0}finish(){if(this.deflate.push("]",Xe.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this._init(),t}_init(){this._hasEvents=!1,this.deflate=new Ye,this.deflate.push("[",Xe.Z_NO_FLUSH)}},qe={clear:()=>{We.clear()},addEvent:t=>We.addEvent(t),finish:()=>We.finish(),compress:t=>function(t){return Ge(t)}(t)};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,i=t.data.arg;if(e in qe&&"function"==typeof qe[e])try{const t=qe[e](i);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});`;function t0(t){return t>0x2540be3ff?t:1e3*t}class t1{constructor(){this.events=[]}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){this.events.push(t)}finish(){return new Promise(t=>{let e=this.events;this.events=[],t(JSON.stringify(e))})}clear(){this.events=[]}getEarliestTimestamp(){let t=this.events.map(t=>t.timestamp).sort()[0];return t?t0(t):null}}class t2{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((t,e)=>{this._worker.addEventListener("message",({data:n})=>{n.success?t():e()},{once:!0}),this._worker.addEventListener("error",t=>{e(t)},{once:!0})})),this._ensureReadyPromise}destroy(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&v.vF.log("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(t,e){let n=this._getAndIncrementId();return new Promise((a,i)=>{let r=({data:e})=>{if(e.method===t&&e.id===n){if(this._worker.removeEventListener("message",r),!e.success){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&v.vF.error("[Replay]",e.response),i(Error("Error in compression worker"));return}a(e.response)}};this._worker.addEventListener("message",r),this._worker.postMessage({id:n,method:t,arg:e})})}_getAndIncrementId(){return this._id++}}class t5{constructor(t){this._worker=new t2(t),this._earliestTimestamp=null}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){let e=t0(t.timestamp);return(!this._earliestTimestamp||e<this._earliestTimestamp)&&(this._earliestTimestamp=e),this._sendEventToWorker(t)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._worker.postMessage("clear")}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",JSON.stringify(t))}async _finishRequest(){let t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,t}}class t6{constructor(t){this._fallback=new t1,this._compression=new t5(t),this._used=this._fallback,this._ensureWorkerIsLoadedProm
2ise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&v.vF.log("[Replay] Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:t}=this._fallback,e=[];for(let n of t)e.push(this._compression.addEvent(n));this._used=this._compression;try{await Promise.all(e)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&v.vF.warn("[Replay] Failed to add events when switching buffers.",t)}}}function t3(t,e,n=+new Date){return null===t||void 0===e||e<0||0!==e&&t+e<=n}function t8(t,e,n=+new Date){return t3(t.started,e.maxSessionLife,n)||t3(t.lastActivity,e.sessionIdleExpire,n)}function t4(t){return void 0!==t&&Math.random()<t}function t9(t){if("sessionStorage"in D)try{D.sessionStorage.setItem(z,JSON.stringify(t))}catch(t){}}function t7(t){let e=Date.now(),n=t.id||(0,k.eJ)(),a=t.started||e,i=t.lastActivity||e;return{id:n,started:a,lastActivity:i,segmentId:t.segmentId||0,sampled:t.sampled,shouldRefresh:!0}}function et({timeouts:t,currentSession:e,stickySession:n,sessionSampleRate:a,allowBuffering:i}){let r=e||n&&function(){if(!("sessionStorage"in D))return null;try{let t=D.sessionStorage.getItem(z);if(!t)return null;let e=JSON.parse(t);return t7(e)}catch(t){return null}}();if(r){if(!t8(r,t))return{type:"saved",session:r};if(!r.shouldRefresh)return{type:"new",session:t7({sampled:!1})};("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&v.vF.log("[Replay] Session has expired")}return{type:"new",session:function({sessionSampleRate:t,allowBuffering:e,stickySession:n=!1}){let a=t7({sampled:t4(t)?"session":!!e&&"buffer"});return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&v.vF.log(`[Replay] Creating new session: ${a.id}`),n&&t9(a),a}({stickySession:n,sessionSampleRate:a,allowBuffering:i})}}async function ee(t,e,n){if(!t.eventBuffer||t.isPaused()||t0(e.timestamp)+t.timeouts.sessionIdlePause<Date.now())return null;try{return n&&t.eventBuffer.clear(),await t.eventBuffer.addEvent(e)}catch(n){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&v.vF.error(n),await t.stop("addEvent");let e=(0,m.BF)().getClient();e&&e.recordDroppedEvent("internal_sdk_error","replay")}}function en(t){return"transaction"===t.type}function ea(t){let e=function(){let t=(0,m.BF)().getClient();if(!t)return!1;let e=t.getTransport();return!!e&&(e.send.__sentry__baseTransport__||!1)}();return(n,a)=>{if(n.type&&!en(n))return;let i=a&&a.statusCode;if(!e||i&&!(i<200)&&!(i>=300)){if(en(n)&&n.contexts&&n.contexts.trace&&n.contexts.trace.trace_id)return void t.getContext().traceIds.add(n.contexts.trace.trace_id);!n.type&&(n.event_id&&t.getContext().errorIds.add(n.event_id),"buffer"===t.recordingMode&&n.tags&&n.tags.replayId&&setTimeout(()=>{t.sendBufferedReplayOrFlush()}))}}}function ei(t){return{timestamp:Date.now()/1e3,type:"default",...t}}function er(t,e){"sentry.transaction"!==e.category&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate(()=>(ee(t,{type:l.Custom,timestamp:1e3*(e.timestamp||0),data:{tag:"breadcrumb",payload:(0,S.S8)(e,10,1e3)}}),"console"===e.category)))}!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(f||(f={}));let es=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid"]);function eo(t){return t.target?t.target:t}function el(t,e){return e.map(({type:e,start:n,end:a,name:i,data:r})=>ee(t,{type:l.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:e,description:i,startTimestamp:n,endTimestamp:a,data:r}}}))}function ed(t,e){var n;t.isEnabled()&&null!==e&&(n=e.name,(!("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)||!t.getOptions()._experiments.traceInternals)&&function(t){let e=(0,m.BF)().getClient(),n=e&&e.getDsn();return!!n&&t.includes(n.host)}(n)||t.addUpdate(()=>(el(t,[e]),!0)))}let eh=["true","false","null"];function eu(t){let e=function(t){let e=[];for(let n=0;n<t.length;n++)!function(t,e,n){let a=t[t.length-1],i=e[n];
2if(!/\s/.test(i)){if('"'===i&&!function t(e,n){return"\\"===e[n-1]&&!t(e,n-1)}(e,n)){var r,s,o,l,d,h,u,c=t,p=a;if(14===p){c.pop(),c.push(15);return}if(22===p){c.pop(),c.push(23);return}return 13===p?c.push(14):21===p?c.push(22):10===p?c.push(12):12===p&&(c.pop(),c.push(11))}switch(i){case"{":r=t,(s=a)&&13!==s?(21===s&&r.push(10),20===s&&r.push(10)):r.push(10);break;case"[":!function(t,e){if(!e||13===e){t.push(20),t.push(21);return}21===e&&(t.push(20),t.push(21)),20===e&&(t.push(20),t.push(21))}(t,a);break;case":":o=t,11===a&&(o.pop(),o.push(13));break;case",":!function(t,e){if(13===e)return t.pop();if(15===e){t.pop(),t.pop();return}21!==e&&23===e&&t.pop()}(t,a);break;case"}":l=t,10===(d=a)&&l.pop(),13===d&&(l.pop(),l.pop()),15===d&&(l.pop(),l.pop(),l.pop()),13===l[l.length-1]&&l.push(15),21===l[l.length-1]&&l.push(23);break;case"]":h=t,20===(u=a)&&h.pop(),21===u&&(h.pop(),h.pop()),23===u&&(h.pop(),h.pop(),h.pop()),13===h[h.length-1]&&h.push(15),21===h[h.length-1]&&h.push(23)}}}(e,t,n);return e}(t);if(!e.length)return t;let n=t,a=e.length-1;n=function(t,e){switch(e){case 10:return`${t}"~~":"~~"`;case 11:return`${t}:"~~"`;case 12:return`${t}~~":"~~"`;case 13:var n=t;let a=n.lastIndexOf(":"),i=n.slice(a+1);return eh.includes(i.trim())?`${n},"~~":"~~"`:`${n.slice(0,a+1)}"~~"`;case 14:case 22:return`${t}~~"`;case 15:return`${t},"~~":"~~"`;case 20:return`${t}"~~"`;case 21:var r=t;let s=function(t){for(let e=t.length-1;e>=0;e--){let n=t[e];if(","===n||"["===n)return e}return -1}(r);if(s>-1){let t=r.slice(s+1);return eh.includes(t.trim())?`${r},"~~"`:`${r.slice(0,s+1)}"~~"`}return r;case 23:return`${t},"~~"`}return t}(n,e[a]);for(let t=a;t>=0;t--)switch(e[t]){case 10:n=`${n}}`;break;case 20:n=`${n}]`}return n}function ec(t,e){if(t)try{if("string"==typeof t)return e.encode(t).length;if(t instanceof URLSearchParams)return e.encode(t.toString()).length;if(t instanceof FormData){let n=ew(t);return e.encode(n).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch(t){}}function ep(t){if(!t)return;let e=parseInt(t,10);return isNaN(e)?void 0:e}function ef(t){return"string"==typeof t?t:t instanceof URLSearchParams?t.toString():t instanceof FormData?ew(t):void 0}function e_(t,e){if(!e)return null;let{startTimestamp:n,endTimestamp:a,url:i,method:r,statusCode:s,request:o,response:l}=e;return{type:t,start:n/1e3,end:a/1e3,name:i,data:(0,R.Ce)({method:r,statusCode:s,request:o,response:l})}}function em(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function eg(t,e,n){if(!e&&0===Object.keys(t).length)return;if(!e)return{headers:t};if(!n)return{headers:t,size:e};let a={headers:t,size:e},{body:i,warnings:r}=function(t){if(!t||"string"!=typeof t)return{body:t,warnings:[]};let e=t.length>15e4;if(function(t){let e=t[0],n=t[t.length-1];return"["===e&&"]"===n||"{"===e&&"}"===n}(t))try{let n=e?eu(t.slice(0,15e4)):t;return{body:JSON.parse(n),warnings:e?["JSON_TRUNCATED"]:[]}}catch(n){return{body:e?`${t.slice(0,15e4)}â¦`:t,warnings:e?["INVALID_JSON","TEXT_TRUNCATED"]:["INVALID_JSON"]}}return{body:e?`${t.slice(0,15e4)}â¦`:t,warnings:e?["TEXT_TRUNCATED"]:[]}}(n);return a.body=i,r.length>0&&(a._meta={warnings:r}),a}function ey(t,e){return Object.keys(t).reduce((n,a)=>{let i=a.toLowerCase();return e.includes(i)&&t[a]&&(n[i]=t[a]),n},{})}function ew(t){return new URLSearchParams(t).toString()}async function eb(t,e,n){try{let a=await ev(t,e,n),i=e_("resource.fetch",a);ed(n.replay,i)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&v.vF.error("[Replay] Failed to capture fetch breadcrumb",t)}}async function ev(t,e,n){var a;let{startTimestamp:i,endTimestamp:r}=e,{url:s,method:o,status_code:l=0,request_body_size:d,response_body_size:h}=t.data,u=(a=n.networkDetailAllowUrls,(0,T.Xr)(s,a));return{startTimestamp:i,endTimestamp:r,url:s,method:o,statusCode:l,request:u?function({networkCaptureBodies:t,networkRequestHeaders:e},n,a){var i,r;let s=(i=n,r=e,1===i.length&&"string"!=typeof i[0]?eR(i[0],r):2===i.length?eR(i[1],r):{});return t?eg(s,a,ef(eE(n))):eg(s,a,void 0)}(n,e.input,d):em(d),response:await ek(u,n,e.response,h)}}async function ek(t,{networkCaptureBodies:e,textEncoder:n,networkResponseHeaders:a},i,r){if(!t&&void 0!==r)return em(r);let s=ex(i.headers,a);if(!e&&void 0!==r)return eg(s,r,void 0);try{let a=i.clone(),o=await eS(a),l=o&&o.length&&void 0===r?ec(o,n):r;if(!t)return em(l);if(e)return eg(s,l,o);return eg(s,l,void 0)}catch(t){return eg(s,r,void 0)}}async function eS(t){try{return await t.text()}catch(t){return}}function eE(t=[]){if(2===t.length&&"object"==typeof t[1])return t[1].body}function ex(t,e){let n={};
2return e.forEach(e=>{t.get(e)&&(n[e]=t.get(e))}),n}function eR(t,e){if(!t)return{};let n=t.headers;return n?n instanceof Headers?ex(n,e):Array.isArray(n)?{}:ey(n,e):{}}async function eT(t,e,n){try{let a=function(t,e,n){var a;let{startTimestamp:i,endTimestamp:r,input:s,xhr:o}=e,{url:l,method:d,status_code:h=0,request_body_size:u,response_body_size:c}=t.data;if(!l)return null;if(a=n.networkDetailAllowUrls,!(0,T.Xr)(l,a)){let t=em(u);return{startTimestamp:i,endTimestamp:r,url:l,method:d,statusCode:h,request:t,response:em(c)}}let p=o[x.Er],f=p?ey(p.request_headers,n.networkRequestHeaders):{},_=ey(function(t){let e=t.getAllResponseHeaders();return e?e.split("\r\n").reduce((t,e)=>{let[n,a]=e.split(": ");return t[n.toLowerCase()]=a,t},{}):{}}(o),n.networkResponseHeaders),m=eg(f,u,n.networkCaptureBodies?ef(s):void 0);return{startTimestamp:i,endTimestamp:r,url:l,method:d,statusCode:h,request:m,response:eg(_,c,n.networkCaptureBodies?e.xhr.responseText:void 0)}}(t,e,n),i=e_("resource.xhr",a);ed(n.replay,i)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&v.vF.error("[Replay] Failed to capture fetch breadcrumb",t)}}let eC=null;async function eA(t){try{return Promise.all(el(t,[function(t){let{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:a}=t,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:a}}}}(D.performance.memory)]))}catch(t){return[]}}let eI={resource:function(t){let{entryType:e,initiatorType:n,name:a,responseEnd:i,startTime:r,decodedBodySize:s,encodedBodySize:o,responseStatus:l,transferSize:d}=t;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${e}.${n}`,start:eD(r),end:eD(i),name:a,data:{size:d,statusCode:l,decodedBodySize:s,encodedBodySize:o}}},paint:function(t){let{duration:e,entryType:n,name:a,startTime:i}=t,r=eD(i);return{type:n,name:a,start:r,end:r+e,data:void 0}},navigation:function(t){let{entryType:e,name:n,decodedBodySize:a,duration:i,domComplete:r,encodedBodySize:s,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,domInteractive:d,loadEventStart:h,loadEventEnd:u,redirectCount:c,startTime:p,transferSize:f,type:_}=t;return 0===i?null:{type:`${e}.${_}`,start:eD(p),end:eD(r),name:n,data:{size:f,decodedBodySize:a,encodedBodySize:s,duration:i,domInteractive:d,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,loadEventStart:h,loadEventEnd:u,domComplete:r,redirectCount:c}}},"largest-contentful-paint":function(t){let{entryType:e,startTime:n,size:a}=t,i=0;if(D.performance){let t=D.performance.getEntriesByType("navigation")[0];i=t&&t.activationStart||0}let r=Math.max(n-i,0),s=eD(i)+r/1e3;return{type:e,name:e,start:s,end:s,data:{value:r,size:a,nodeId:tX.mirror.getId(t.element)}}}};function eN(t){return void 0===eI[t.entryType]?null:eI[t.entryType](t)}function eD(t){return((C.k3||D.performance.timeOrigin)+t)/1e3}async function ez({client:t,scope:e,replayId:n,event:a}){let i="object"!=typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations),r=await (0,w.m)(t.getOptions(),a,{event_id:n,integrations:i},e);if(!r)return null;r.platform=r.platform||"javascript";let s=t.getSdkMetadata&&t.getSdkMetadata(),{name:o,version:l}=s&&s.sdk||{};return r.sdk={...r.sdk,name:o||"sentry.javascript.unknown",version:l||"0.0.0"},r}async function eO({recordingData:t,replayId:e,segmentId:n,eventContext:a,timestamp:i,session:r}){var s;let o,l=function({recordingData:t,headers:e}){let n,a=`${JSON.stringify(e)} 3`;if("string"==typeof t)n=`${a}${t}`;else{let e=new TextEncoder().encode(a);(n=new Uint8Array(e.length+t.length)).set(e),n.set(t,e.length)}return n}({recordingData:t,headers:{segment_id:n}}),{urls:d,errorIds:h,traceIds:u,initialTimestamp:c}
3=a,p=(0,m.BF)(),f=p.getClient(),_=p.getScope(),g=f&&f.getTransport(),y=f&&f.getDsn();if(!f||!_||!g||!y||!r.sampled)return;let w={type:"replay_event",replay_start_timestamp:c/1e3,timestamp:i/1e3,error_ids:h,trace_ids:u,urls:d,replay_id:e,segment_id:n,replay_type:r.sampled},b=await ez({scope:_,client:f,replayId:e,event:w});if(!b){f.recordDroppedEvent("event_processor","replay",w),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&v.vF.log("An event processor returned `null`, will not send event.");return}let k=(s=f.getOptions().tunnel,(0,A.h4)((0,A.n2)(b,(0,A.Cj)(b),s,y),[[{type:"replay_event"},b],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{o=await g.send(k)}catch(e){let t=Error(O);try{t.cause=e}catch(t){}throw t}if(!o)return o;if("number"==typeof o.statusCode&&(o.statusCode<200||o.statusCode>=300))throw new eM(o.statusCode);return o}!function(t){t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin"}(_||(_={}));class eM extends Error{constructor(t){super(`Transport returned status code ${t}`)}}async function eL(t,e={count:0,interval:5e3}){let{recordingData:n,options:a}=t;if(n.length)try{return await eO(t),!0}catch(n){if(n instanceof eM)throw n;if((0,g.o)("Replays",{_retryCount:e.count}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a._experiments&&a._experiments.captureExceptions&&(0,g.Cp)(n),e.count>=3){let t=Error(`${O} - max retries exceeded`);try{t.cause=n}catch(t){}throw t}return e.interval*=++e.count,await new Promise((n,a)=>{setTimeout(async()=>{try{await eL(t,e),n(!0)}catch(t){a(t)}},e.interval)})}}class eU{__init(){this.eventBuffer=null}__init2(){this.performanceEvents=[]}__init3(){this.recordingMode="session"}__init4(){this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5,maxSessionLife:36e5}}__init5(){this._performanceObserver=null}__init6(){this._flushLock=null}__init7(){this._lastActivity=Date.now()}__init8(){this._isEnabled=!1}__init9(){this._isPaused=!1}__init10(){this._hasInitializedCoreListeners=!1}__init11(){this._stopRecording=null}__init12(){this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""}}constructor({options:t,recordingOptions:e}){eU.prototype.__init.call(this),eU.prototype.__init2.call(this),eU.prototype.__init3.call(this),eU.prototype.__init4.call(this),eU.prototype.__init5.call(this),eU.prototype.__init6.call(this),eU.prototype.__init7.call(this),eU.prototype.__init8.call(this),eU.prototype.__init9.call(this),eU.prototype.__init10.call(this),eU.prototype.__init11.call(this),eU.prototype.__init12.call(this),eU.prototype.__init13.call(this),eU.prototype.__init14.call(this),eU.prototype.__init15.call(this),eU.prototype.__init16.call(this),eU.prototype.__init17.call(this),eU.prototype.__init18.call(this),this._recordingOptions=e,this._options=t,this._debouncedFlush=function(t,e,n){let a,i,r,s=n&&n.maxWait?Math.max(n.maxWait,e):0;function o(){return l(),a=t()}function l(){void 0!==i&&clearTimeout(i),void 0!==r&&clearTimeout(r),i=r=void 0}function d(){return i&&clearTimeout(i),i=setTimeout(o,e),s&&void 0===r&&(r=setTimeout(o,s)),a}return d.cancel=l,d.flush=function(){return void 0!==i||void 0!==r?o():a},d}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay})}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}initializeSampling(){let{errorSampleRate:t,sessionSampleRate:e}=this._options;if((!(t<=0)||!(e<=0))&&this._loadAndCheckSession()){if(!this.session)return void this._handleException(Error("Unable to initialize and create session"));this.session.sampled&&"session"!==this.session.sampled&&(this.recordingMode="buffer"),this._initializeRecording()}}start(){if(this._isEnabled&&"session"===this.recordingMode)throw Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw Error("Replay buffering is in progress, call `flush()` to save the replay");let t=this.session&&this.session.id,{session:e}=et({timeouts:this.timeouts,stickySession:!!this._options.stickySession,currentSession:this.session,sessionSampleRate:1,allowBuffering:!1});e.previousSessionId=t,this.session=e,this._initializeRecording()}
3startBuffering(){if(this._isEnabled)throw Error("Replay recording is already in progress");let t=this.session&&this.session.id,{session:e}=et({timeouts:this.timeouts,stickySession:!!this._options.stickySession,currentSession:this.session,sessionSampleRate:0,allowBuffering:!0});e.previousSessionId=t,this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var t;let e;this._stopRecording=tX({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:(t=this,e=!1,(n,a)=>{if(!t.checkAndHandleExpiredSession()){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&v.vF.warn("[Replay] Received replay event after session expired.");return}let i=a||!e;e=!0,t.addUpdate(()=>{var e;if("buffer"===t.recordingMode&&i&&t.setInitialState(),ee(t,n,i),!i)return!1;if(e=t,i&&e.session&&0===e.session.segmentId?ee(e,function(t){let e=t.getOptions();return{type:_.Custom,timestamp:Date.now(),data:{tag:"options",payload:{sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate,useCompressionOption:e.useCompression,blockAllMedia:e.blockAllMedia,maskAllText:e.maskAllText,maskAllInputs:e.maskAllInputs,useCompression:!!t.eventBuffer&&"worker"===t.eventBuffer.type,networkDetailHasUrls:e.networkDetailAllowUrls.length>0,networkCaptureBodies:e.networkCaptureBodies,networkRequestHasHeaders:e.networkRequestHeaders.length>0,networkResponseHasHeaders:e.networkResponseHeaders.length>0}}}}(e),!1):Promise.resolve(null),t.session&&t.session.previousSessionId)return!0;if("buffer"===t.recordingMode&&t.session&&t.eventBuffer){let e=t.eventBuffer.getEarliestTimestamp();e&&(t.session.started=e,t.getOptions().stickySession&&t9(t.session))}return"session"===t.recordingMode&&t.flushImmediate(),!0})}),onMutation:this._onMutationHandler})}catch(t){this._handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this._handleException(t),!1}}async stop(t){if(this._isEnabled)try{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){let e=`[Replay] Stopping Replay${t?` triggered by ${t}`:""}`;(this.getOptions()._experiments.traceInternals?console.warn:v.vF.log)(e)}this._isEnabled=!1,this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,function(){if("sessionStorage"in D)try{D.sessionStorage.removeItem(z)}catch(t){}}(),this.session=void 0}catch(t){this._handleException(t)}}pause(){this._isPaused=!0,this.stopRecording()}resume(){this._loadAndCheckSession()&&(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();await this.flushImmediate();let e=this.stopRecording();t&&e&&(this.recordingMode="session",this.session&&(this.session.shouldRefresh=!1,this._maybeSaveSession()),this.startRecording())}addUpdate(t){let e=t();"buffer"!==this.recordingMode&&!0!==e&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._loadAndCheckSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){let t=this.getSessionId();return this._lastActivity&&t3(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled?void this.pause():this._loadAndCheckSession()?t===this.getSessionId()||(this._triggerFullSnapshot(),!1):void 0}setInitialState(){let t=`${D.location.pathname}${D.location.hash}${D.location.search}`,e=`${D.location.origin}${t}`;this.performanceEvents=[],this._clearContext(),this._context.initialUrl=e,this._context.initialTimestamp=Date.now(),this._context.urls.push(e)}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:t}){if(t&&window.Worker)try{let t=function(){let t=new Blob([tQ]);return URL.createObjectURL(t)}();("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&v.vF.log("[Replay] Using compression worker");let e=new Worker(t);return new t6(e)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&v.vF.log("[Replay] Failed to create compression worker")}return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&v.vF.log("[Replay] Using simple buffer"),new t1}({useCompression:this._options.useCompression}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this.startRecording()}_handleException(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&v.vF.error("[Replay]",t),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._options._experiments&&this._options._experiments.captureExceptions&&(0,g.Cp)(t)}_loadAndCheckSession(){let{type:t,session:e}=et({timeouts:this.timeouts,stickySession:!!this._options.stickySession,currentSession:this.session,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:this._options.errorSampleRate>0});"new"===t&&this.setInitialState();let n=this.getSessionId();return e.id!==n&&(e.previousSessionId=n),this.session=e,!!this.session.sampled||(this.stop("session unsampled"),!1)}_addListeners(){try{D.document.addEventListener("visibilitychange",this._handleVisibilityChange),D.addEventListener("blur",this._handleWindowBlur),D.addEventListener("focus",this._handleWindowFocus),D.addEventListener("keydown",this._handleKeyboardEvent),this._hasInitializedCoreListeners||(!function(t){var e,n;
3let a=(0,m.BF)().getScope(),i=(0,m.BF)().getClient();a&&a.addScopeListener(e=>{if(!t.isEnabled())return;let n=function(t){let e=t.getLastBreadcrumb&&t.getLastBreadcrumb();return eC===e||!e||(eC=e,e.category&&(["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")))?null:"console"===e.category?function(t){let e=t.data&&t.data.arguments;if(!Array.isArray(e)||0===e.length)return ei(t);let n=!1,a=e.map(t=>{if(!t)return t;if("string"==typeof t)return t.length>5e3?(n=!0,`${t.slice(0,5e3)}â¦`):t;if("object"==typeof t)try{let e=(0,S.S8)(t,7),a=JSON.stringify(e);if(a.length>5e3){let t=eu(a.slice(0,5e3)),e=JSON.parse(t);return n=!0,e}return e}catch(t){}return t});return ei({...t,data:{...t.data,arguments:a,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e):ei(e)}(e);n&&er(t,n)}),(0,x.ON)("dom",e=>{if(!t.isEnabled())return;let n=function(t){let e,n,a="click"===t.name;try{n=a?function(t){let e=eo(t);return e&&e instanceof Element&&e.closest("button,a")||e}(t.event):eo(t.event),e=(0,E.Hd)(n,{maxStringLength:200})}catch(t){e="<unknown>"}let i=n&&"__sn"in n&&n.__sn.type===f.Element?n.__sn:null;return ei({category:`ui.${t.name}`,message:e,data:i?{nodeId:i.id,node:{id:i.id,tagName:i.tagName,textContent:n?Array.from(n.childNodes).map(t=>"__sn"in t&&t.__sn.type===f.Text&&t.__sn.textContent).filter(Boolean).map(t=>t.trim()).join(""):"",attributes:function(t){let e={};for(let n in t)if(es.has(n)){let a=n;("data-testid"===n||"data-test-id"===n)&&(a="testId"),e[a]=t[n]}return e}(i.attributes)}}:{}})}(e);n&&er(t,n)}),(0,x.ON)("history",e=>{if(!t.isEnabled())return;let n=function(t){let{from:e,to:n}=t,a=Date.now()/1e3;return{type:"navigation.push",start:a,end:a,name:n,data:{previous:e}}}(e);null!==n&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate(()=>(el(t,[n]),!1)))}),function(t){let e=(0,m.BF)().getClient();try{let n=new TextEncoder,{networkDetailAllowUrls:a,networkCaptureBodies:i,networkRequestHeaders:r,networkResponseHeaders:s}=t.getOptions(),o={replay:t,textEncoder:n,networkDetailAllowUrls:a,networkCaptureBodies:i,networkRequestHeaders:r,networkResponseHeaders:s};if(e&&e.on)e.on("beforeAddBreadcrumb",(t,e)=>(function(t,e,n){if(e.data)try{var a,i,r,s;if(a=e,"xhr"===a.category&&(i=n)&&i.xhr){let{xhr:a,input:i}=n,r=ec(i,t.textEncoder),s=a.getResponseHeader("content-length")?ep(a.getResponseHeader("content-length")):ec(a.response,t.textEncoder);void 0!==r&&(e.data.request_body_size=r),void 0!==s&&(e.data.response_body_size=s),eT(e,n,t)}if(r=e,"fetch"===r.category&&(s=n)&&s.response){let{input:a,response:i}=n,r=ec(eE(a),t.textEncoder),s=i?ep(i.headers.get("content-length")):void 0;void 0!==r&&(e.data.request_body_size=r),void 0!==s&&(e.data.response_body_size=s),eb(e,n,t)}}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&v.vF.warn("Error when enriching network breadcrumb")}})(o,t,e));else(0,x.ON)("fetch",e=>{t.isEnabled()&&ed(t,function(t){let{startTimestamp:e,endTimestamp:n,fetchData:a,response:i}=t;if(!n)return null;let{method:r,url:s}=a;return{type:"resource.fetch",start:e/1e3,end:n/1e3,name:s,data:{method:r,statusCode:i&&i.status}}}(e))}),(0,x.ON)("xhr",e=>{t.isEnabled()&&ed(t,function(t){let{startTimestamp:e,endTimestamp:n,xhr:a}=t,i=a[x.Er];if(!e||!n||!i)return null;let{method:r,url:s,status_code:o}=i;return void 0===s?null:{type:"resource.xhr",name:s,start:e/1e3,end:n/1e3,data:{method:r,statusCode:o}}}(e))})}catch(t){}}(t),(0,y.l)(function(t,e=!1){let n=e?ea(t):void 0;return(e,a)=>{if("replay_event"===e.type)return delete e.breadcrumbs,e;if(e.type&&!en(e))return e;if(!e.type&&e.exception&&e.exception.values&&e.exception.values.length&&(a.originalException&&a.originalException.__rrweb__||e.exception.values.some(t=>!!t.stacktrace&&!!t.stacktrace.frames&&!!t.stacktrace.frames.length&&t.stacktrace.frames.some(t=>t.filename&&t.filename.includes("/rrweb/src/"))))&&!t.getOptions()._experiments.captureExceptions)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&v.vF.log("[Replay] Ignoring error from rrweb internals",e),null;if(("buffer"===t.recordingMode&&e.message!==O&&e.exception&&!e.type&&t4(t.getOptions().errorSampleRate)||"session"===t.recordingMode)&&(e.tags={...e.tags,replayId:t.getSessionId()}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&t.getOptions()._experiments.traceInternals&&!e.type){let t=(i=e,{type:"Unknown",value:"n/a",...i.exception&&i.exception.values&&i.exception.values[0]});var i,r={message:`Tagging event (${e.event_id}) - ${e.message} - ${t.type}: ${t.value}`};let{category:n,level:a,message:s,...o}=r;(0,g.ZQ)({category:n||"console",level:a||"debug",message:`[debug]: ${s}`,...o})}return n&&n(e,{statusCode:200}),e}}(t,!((e=i)&&e.on))),(n=i)&&n.on&&(i.on("afterSendEvent",ea(t)),i.on("createDsc",e=>{let n=t.getSessionId();n&&t.isEnabled()&&"session"===t.recordingMode&&(e.replay_id=n)}))}(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}"PerformanceObserver"in D&&(this._performanceObserver=function(t){let e=new PerformanceObserver(e=>{let n=function(t,e){let[n,a,i]=t.reduce((t,e)=>("navigation"===e.entryType?t[0].push(e):"largest-contentful-paint"===e.entryType?t[1].push(e):t[2].push(e),t),[[],[],[]]),r=[],s=[],o=a.length?a[a.length-1]:void 0;return e.forEach(t=>{if("largest-contentful-paint"===t.entryType){(!o||o.startTime<t.startTime)&&(o=t);return}if("navigation"===t.entryType){!(t.duration>0)||n.find(tJ(t))||s.find(tJ(t))||s.push(t);return}r.push(t)}),[...o?[o]:[],...n,...i,...r,...s].sort((t,e)=>t.startTime-e.startTime)}(t.performanceEvents,e.getEntries());t.performanceEvents=n});return["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach(t=>{try{e.observe({type:t,buffered:!0})}catch(t){}}),e}(this))}_removeListeners(){try{D.document.removeEventListener("visibilitychange",this._handleVisibilityChange),D.removeEventListener("blur",this._handleWindowBlur),D.removeEventListener("focus",this._handleWindowFocus),D.removeEventListener("keydown",this._handleKeyboardEvent),this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=null)}catch(t){this._handleException(t)}}__init13(){this._handleVisibilityChange=()=>{"visible"===D.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroun
3dTasks()}}__init14(){this._handleWindowBlur=()=>{let t=ei({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init15(){this._handleWindowFocus=()=>{let t=ei({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init16(){this._handleKeyboardEvent=()=>{this.triggerUserActivity()}}_doChangeToBackgroundTasks(t){if(!this.session)return;let e=t8(this.session,this.timeouts);t&&!e&&this._createCustomBreadcrumb(t),this._conditionalFlush()}_doChangeToForegroundTasks(t){if(this.session){if(!this.checkAndHandleExpiredSession()){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&v.vF.log("[Replay] Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}}_triggerFullSnapshot(t=!0){try{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&v.vF.log("[Replay] Taking full rrweb snapshot"),tX.takeFullSnapshot(t)}catch(t){this._handleException(t)}}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{ee(this,{type:l.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=[...this.performanceEvents];return this.performanceEvents=[],Promise.all(el(this,t.map(eN).filter(Boolean)))}_conditionalFlush(){"buffer"!==this.recordingMode&&this.flushImmediate()}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:t,eventBuffer:e}=this;if(!t||!e||t.segmentId)return;let n=e.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){let t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){if(!this.session||!this.eventBuffer){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&v.vF.error("[Replay] No session or eventBuffer found to flush.");return}if((await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents)&&(await eA(this),this.eventBuffer))try{this._updateInitialTimestampFromEventBuffer();let t=await this.eventBuffer.finish(),e=this.session.id,n=this._popEventContext(),a=this.session.segmentId++;this._maybeSaveSession(),await eL({replayId:e,recordingData:t,segmentId:a,eventContext:n,session:this.session,options:this.getOptions(),timestamp:Date.now()})}catch(e){this._handleException(e),this.stop("sendReplay");let t=(0,m.BF)().getClient();t&&t.recordDroppedEvent("send_error","replay")}}__init17(){this._flush=async({force:t=!1}={})=>{if(this._isEnabled||t){if(!this.checkAndHandleExpiredSession()){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&v.vF.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&v.vF.error("[Replay] No session found to flush.");return}if(this._debouncedFlush.cancel(),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=null;return}try{await this._flushLock}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&v.vF.error(t)}finally{this._debouncedFlush()}}}}_maybeSaveSession(){this.session&&this._options.stickySession&&t9(this.session)}__init18(){this._onMutationHandler=t=>{let e=t.length,n=this._options._experiments.mutationLimit||0,a=this._options._experiments.mutationBreadcrumbLimit||1e3,i=n&&e>n;if(e>a||i){let t=ei({category:"replay.mutations",data:{count:e}});this._createCustomBreadcrumb(t)}return!i||(this._triggerFullSnapshot(!1),!1)}}}function eF(t,e,n,a){let i=[...t,..."string"==typeof a?a.split(","):[],...e];return void 0!==n&&("string"==typeof n&&i.push(`.${n}`),console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")),i.join(",")}function eB(){return"undefined"!=typeof window&&(!(0,I.wD)()||void 0!==N&&"renderer"===N.type)}let eP='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',eZ=["content-length","content-type","accept"],eG=!1;class ej{static __initStatic(){this.id="Replay"}__init(){this.name=ej.id}constructor({flushMinDelay:t=5e3,flushMaxDelay:e=5500,stickySession:n=!0,useCompression:a=!0,_experiments:i={},sessionSampleRate:r,errorSampleRate:s,maskAllText:o=!0,maskAllInputs:l=!0,blockAllMedia:d=!0,networkDetailAllowUrls:h=[],networkCaptureBodies:u=!0,networkRequestHeaders:c=[],networkResponseHeaders:p=[],mask:f=[],unmask:_=[],block:m=[],unblock:g=[],ignore:y=[],maskFn:w,blockClass:b,blockSelector:v,maskInputOptions:k,maskTextClass:S,maskTextSelector:E,ignoreClass:x}={}){if(ej.prototype.__init.call(this),this._recordingOptions={maskAllInputs:l,maskAllText:o,maskInputOptions:{...k||{},password:!0},maskTextFn:w,maskInputFn:w,...function({mask:t,unmask:e,block:n,unblock:a,ignore:i,blockClass:r,blockSelector:s,maskTextClass:o,maskTextSelector:l,ignoreClass:d}){let h=eF(t,[".sentry-mask","[data-sentry-mask]"],o,l),u=eF(e,[".sentry-unmask","[data-sentry-unmask]"]),c={maskTextSelector:h,unmaskTextSelector:u,maskInputSelector:h,unmaskInputSelector:u,blockSelector:eF(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],r,s),unblockSelector:eF(a,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:eF(i,[".sentry-ignore","[data-sentry-ignore]",'
3input[type="file"]'],d)};return r instanceof RegExp&&(c.blockClass=r),o instanceof RegExp&&(c.maskTextClass=o),c}({mask:f,unmask:_,block:m,unblock:g,ignore:y,blockClass:b,blockSelector:v,maskTextClass:S,maskTextSelector:E,ignoreClass:x}),slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0},this._initialOptions={flushMinDelay:t,flushMaxDelay:e,stickySession:n,sessionSampleRate:r,errorSampleRate:s,useCompression:a,blockAllMedia:d,maskAllInputs:l,maskAllText:o,networkDetailAllowUrls:h,networkCaptureBodies:u,networkRequestHeaders:eH(c),networkResponseHeaders:eH(p),_experiments:i},"number"==typeof r&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration. 4This option is deprecated and will be removed soon. 5Instead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.: 6Sentry.init({ replaysSessionSampleRate: ${r} })`),this._initialOptions.sessionSampleRate=r),"number"==typeof s&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration. 7This option is deprecated and will be removed soon. 8Instead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.: 9Sentry.init({ replaysOnErrorSampleRate: ${s} })`),this._initialOptions.errorSampleRate=s),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${eP}`:eP),this._isInitialized&&eB())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return eG}set _isInitialized(t){eG=t}setupOnce(){eB()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop():Promise.resolve()}flush(t){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&this._replay.initializeSampling()}_setup(){let t=function(t){let e=(0,m.BF)().getClient(),n=e&&e.getOptions(),a={sessionSampleRate:0,errorSampleRate:0,...(0,R.Ce)(t)};return n?(null==t.sessionSampleRate&&null==t.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set."),"number"==typeof n.replaysSessionSampleRate&&(a.sessionSampleRate=n.replaysSessionSampleRate),"number"==typeof n.replaysOnErrorSampleRate&&(a.errorSampleRate=n.replaysOnErrorSampleRate)):console.warn("SDK client is not available."),a}(this._initialOptions);this._replay=new eU({options:t,recordingOptions:this._recordingOptions})}}function eH(t){return[...eZ,...t.map(t=>t.toLowerCase())]}ej.__initStatic()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.