@temps-sdk/analytics-browser 0.0.2 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/temps.min.js CHANGED
@@ -1,62 +1,62 @@
1
- (()=>{var p0="/api/_temps",rZ="session-replay",m9=["/login","/log-in","/signin","/sign-in","/logout","/log-out","/signup","/sign-up","/register","/checkout*","/payment*","/billing*","/reset-password*","/forgot-password*","/mfa*","/2fa*","/verify*"];function M6(){if(typeof document>"u")return;let X=document.querySelector('meta[name="temps-metadata"]');if(X)try{let Z=X.getAttribute("content")||"{}";return JSON.parse(Z).request_id}catch(Z){console.error("Failed to parse metadata:",Z)}return}function u9(){try{let X=window.location.hostname,Z=window.location.protocol==="file:",J=/^localhost$|^127(\.[0-9]+){0,2}\.[0-9]+$|^\[::1?\]$/.test(X);return Z||J}catch{return!1}}function c9(){if(typeof window>"u")return!1;let X=window,Z=Boolean(X._phantom),J=Boolean(X.__nightmare),Y=Boolean(window.navigator?.webdriver),Q=Boolean(X.Cypress),V=Boolean(X.__temps);return(Z||J||Y||Q)&&!V}function p9(X){return{...X,request_id:M6(),session_id:typeof localStorage<"u"?localStorage.getItem("session_id")||void 0:void 0}}async function $0(X,Z,J="POST",Y){try{await fetch(`${Y}/${X}`,{method:J,headers:{"Content-Type":"application/json"},body:JSON.stringify(p9(Z))})}catch(Q){console.error("Failed to send analytics:",Q)}}function m1(X,Z,J){try{let Y=`${J}/${X}`,Q=JSON.stringify(p9(Z));if(typeof navigator<"u"&&navigator.sendBeacon&&typeof navigator.sendBeacon==="function"){let V=new Blob([Q],{type:"application/json"});return navigator.sendBeacon(Y,V)}return fetch(Y,{method:"POST",headers:{"Content-Type":"application/json"},body:Q,keepalive:!0}).catch((V)=>{console.error("Failed to send analytics (reliable):",V)}),!0}catch(Y){return console.error("Failed to send analytics (reliable):",Y),!1}}class aZ{constructor(X={}){this.engagementTime=0,this.lastEngagementStart=null,this.heartbeatCount=0,this.isActive=!0,this.heartbeatTimer=null,this.inactivityTimer=null,this.hasTrackedLeave=!1,this.handleVisibilityChange=()=>{let Z=this.isVisible;if(this.isVisible=document.visibilityState==="visible",!Z&&this.isVisible)this.startHeartbeat();else if(Z&&!this.isVisible)this.pauseEngagement()},this.handleFocus=()=>{this.isFocused=!0},this.handleBlur=()=>{this.isFocused=!1,this.pauseEngagement()},this.handleUserActivity=()=>{if(!this.isVisible||!this.isFocused)return;let Z=Date.now();if(!this.isActive)this.isActive=!0,this.lastEngagementStart=Z,this.startHeartbeat();this.lastActivityTime=Z,this.resetInactivityTimer()},this.handlePageLeave=()=>{if(this.hasTrackedLeave)return;this.hasTrackedLeave=!0,this.updateEngagementTime();let Z=this.getEngagementData();if(this.onPageLeave)this.onPageLeave(Z);m1("event",{event_name:"page_leave",request_path:window.location.pathname,request_query:window.location.search,domain:this.domain,event_data:{engagement_time_seconds:Z.engagement_time_seconds,total_time_seconds:Z.total_time_seconds,heartbeat_count:this.heartbeatCount,was_engaged:Z.is_engaged,url:window.location.href,referrer:document.referrer}},this.basePath)},this.handleNavigation=()=>{this.handlePageLeave(),this.reset()},this.basePath=X.basePath||p0,this.domain=X.domain||window.location.hostname,this.heartbeatInterval=X.heartbeatInterval||30000,this.inactivityTimeout=X.inactivityTimeout||30000,this.engagementThreshold=X.engagementThreshold||1e4,this.onHeartbeat=X.onHeartbeat,this.onPageLeave=X.onPageLeave,this.startTime=Date.now(),this.lastActivityTime=Date.now(),this.isVisible=document.visibilityState==="visible",this.isFocused=document.hasFocus(),this.lastEngagementStart=null,this.isActive=!1,this.originalPushState=window.history.pushState.bind(window.history),this.setupEventListeners(),this.startHeartbeat()}setupEventListeners(){document.addEventListener("visibilitychange",this.handleVisibilityChange),window.addEventListener("focus",this.handleFocus),window.addEventListener("blur",this.handleBlur),["mousedown","keypress","scroll","touchstart","click"].forEach((J)=>{document.addEventListener(J,this.handleUserActivity,{passive:!0})}),window.addEventListener("pagehide",this.handlePageLeave),window.addEventListener("beforeunload",this.handlePageLeave);let Z=this.originalPushState;window.history.pushState=(...J)=>{this.handlePageLeave(),Z(...J),this.reset()},window.addEventListener("popstate",this.handleNavigation)}pauseEngagement(){if(this.updateEngagementTime(),this.lastEngagementStart=null,!this.isVisible)this.stopHeartbeat()}resetInactivityTimer(){if(this.inactivityTimer)clearTimeout(this.inactivityTimer);this.inactivityTimer=setTimeout(()=>{if(this.isVisible)this.updateEngagementTime(),this.isActive=!1,this.lastEngagementStart=null},this.inactivityTimeout)}updateEngagementTime(){if(this.lastEngagementStart!==null){let X=Date.now()-this.lastEngagementStart;this.engagementTime+=X}}startHeartbeat(){if(this.heartbeatTimer)return;this.heartbeatTimer=setInterval(()=>{if(this.isVisible&&this.isActive)this.sendHeartbeat()},this.heartbeatInterval)}stopHeartbeat(){if(this.heartbeatTimer)clearInterval(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){this.updateEngagementTime(),this.heartbeatCount++;let X=this.getEngagementData();if(this.onHeartbeat)this.onHeartbeat(X);if(await $0("event",{event_name:"heartbeat",request_path:window.location.pathname,request_query:window.location.search,domain:this.domain,event_data:{engagement_time:Math.round(this.engagementTime),total_time:Math.round(Date.now()-this.startTime),is_engaged:X.is_engaged,is_visible:this.isVisible,time_since_last_activity:X.time_since_last_activity,heartbeat_count:this.heartbeatCount}},"POST",this.basePath),this.isActive&&this.isVisible)this.lastEngagementStart=Date.now()}getEngagementData(){let X=Date.now()-this.startTime,Z=Date.now()-this.lastActivityTime;return{engagement_time_seconds:Math.round(this.engagementTime/1000),total_time_seconds:Math.round(X/1000),heartbeat_count:this.heartbeatCount,is_engaged:this.engagementTime>=this.engagementThreshold,is_visible:this.isVisible,time_since_last_activity:Math.round(Z/1000)}}reset(){if(this.startTime=Date.now(),this.engagementTime=0,this.lastActivityTime=Date.now(),this.heartbeatCount=0,this.hasTrackedLeave=!1,this.isActive=!1,this.lastEngagementStart=null,this.isVisible)this.startHeartbeat()}destroy(){if(this.handlePageLeave(),this.stopHeartbeat(),this.inactivityTimer)clearTimeout(this.inactivityTimer);document.removeEventListener("visibilitychange",this.handleVisibilityChange),window.removeEventListener("focus",this.handleFocus),window.removeEventListener("blur",this.handleBlur),window.removeEventListener("pagehide",this.handlePageLeave),window.removeEventListener("beforeunload",this.handlePageLeave),window.removeEventListener("popstate",this.handleNavigation),window.history.pushState=this.originalPushState,["mousedown","keypress","scroll","touchstart","click"].forEach((Z)=>{document.removeEventListener(Z,this.handleUserActivity)})}}var tZ,S0,W1,e9,p1,Z8=-1,v0=function(X){addEventListener("pageshow",function(Z){Z.persisted&&(Z8=Z.timeStamp,X(Z))},!0)},eZ=function(){var X=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(X&&X.responseStart>0&&X.responseStart<performance.now())return X},d1=function(){var X=eZ();return X&&X.activationStart||0},W0=function(X,Z){var J=eZ(),Y="navigate";return Z8>=0?Y="back-forward-cache":J&&(document.prerendering||d1()>0?Y="prerender":document.wasDiscarded?Y="restore":J.type&&(Y=J.type.replace(/_/g,"-"))),{name:X,value:Z===void 0?-1:Z,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1000000000000),navigationType:Y}},d0=function(X,Z,J){try{if(PerformanceObserver.supportedEntryTypes.includes(X)){var Y=new PerformanceObserver(function(Q){Promise.resolve().then(function(){Z(Q.getEntries())})});return Y.observe(Object.assign({type:X,buffered:!0},J||{})),Y}}catch(Q){}},U0=function(X,Z,J,Y){var Q,V;return function(K){Z.value>=0&&(K||Y)&&((V=Z.value-(Q||0))||Q===void 0)&&(Q=Z.value,Z.delta=V,Z.rating=function(q,G){return q>G[1]?"poor":q>G[0]?"needs-improvement":"good"}(Z.value,J),X(Z))}},ZJ=function(X){requestAnimationFrame(function(){return requestAnimationFrame(function(){return X()})})},U1=function(X){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&X()})},i1=function(X){var Z=!1;return function(){Z||(X(),Z=!0)}},l0=-1,l9=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},l1=function(X){document.visibilityState==="hidden"&&l0>-1&&(l0=X.type==="visibilitychange"?X.timeStamp:0,C6())},d9=function(){addEventListener("visibilitychange",l1,!0),addEventListener("prerenderingchange",l1,!0)},C6=function(){removeEventListener("visibilitychange",l1,!0),removeEventListener("prerenderingchange",l1,!0)},JJ=function(){return l0<0&&(l0=l9(),d9(),v0(function(){setTimeout(function(){l0=l9(),d9()},0)})),{get firstHiddenTime(){return l0}}},z1=function(X){document.prerendering?addEventListener("prerenderingchange",function(){return X()},!0):X()},i9=[1800,3000],XJ=function(X,Z){Z=Z||{},z1(function(){var J,Y=JJ(),Q=W0("FCP"),V=d0("paint",function(K){K.forEach(function(q){q.name==="first-contentful-paint"&&(V.disconnect(),q.startTime<Y.firstHiddenTime&&(Q.value=Math.max(q.startTime-d1(),0),Q.entries.push(q),J(!0)))})});V&&(J=U0(X,Q,i9,Z.reportAllChanges),v0(function(K){Q=W0("FCP"),J=U0(X,Q,i9,Z.reportAllChanges),ZJ(function(){Q.value=performance.now()-K.timeStamp,J(!0)})}))})},s9=[0.1,0.25],J8=function(X,Z){Z=Z||{},XJ(i1(function(){var J,Y=W0("CLS",0),Q=0,V=[],K=function(G){G.forEach(function(H){if(!H.hadRecentInput){var W=V[0],U=V[V.length-1];Q&&H.startTime-U.startTime<1000&&H.startTime-W.startTime<5000?(Q+=H.value,V.push(H)):(Q=H.value,V=[H])}}),Q>Y.value&&(Y.value=Q,Y.entries=V,J())},q=d0("layout-shift",K);q&&(J=U0(X,Y,s9,Z.reportAllChanges),U1(function(){K(q.takeRecords()),J(!0)}),v0(function(){Q=0,Y=W0("CLS",0),J=U0(X,Y,s9,Z.reportAllChanges),ZJ(function(){return J()})}),setTimeout(J,0))}))},X8=0,oZ=1/0,u1=0,_6=function(X){X.forEach(function(Z){Z.interactionId&&(oZ=Math.min(oZ,Z.interactionId),u1=Math.max(u1,Z.interactionId),X8=u1?(u1-oZ)/7+1:0)})},Y8=function(){return tZ?X8:performance.interactionCount||0},E6=function(){"interactionCount"in performance||tZ||(tZ=d0("event",_6,{type:"event",buffered:!0,durationThreshold:0}))},M0=[],c1=new Map,Q8=0,w6=function(){var X=Math.min(M0.length-1,Math.floor((Y8()-Q8)/50));return M0[X]},I6=[],R6=function(X){if(I6.forEach(function(Q){return Q(X)}),X.interactionId||X.entryType==="first-input"){var Z=M0[M0.length-1],J=c1.get(X.interactionId);if(J||M0.length<10||X.duration>Z.latency){if(J)X.duration>J.latency?(J.entries=[X],J.latency=X.duration):X.duration===J.latency&&X.startTime===J.entries[0].startTime&&J.entries.push(X);else{var Y={id:X.interactionId,latency:X.duration,entries:[X]};c1.set(Y.id,Y),M0.push(Y)}M0.sort(function(Q,V){return V.latency-Q.latency}),M0.length>10&&M0.splice(10).forEach(function(Q){return c1.delete(Q.id)})}}},V8=function(X){var Z=self.requestIdleCallback||self.setTimeout,J=-1;return X=i1(X),document.visibilityState==="hidden"?X():(J=Z(X),U1(X)),J},r9=[200,500],K8=function(X,Z){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(Z=Z||{},z1(function(){var J;E6();var Y,Q=W0("INP"),V=function(q){V8(function(){q.forEach(R6);var G=w6();G&&G.latency!==Q.value&&(Q.value=G.latency,Q.entries=G.entries,Y())})},K=d0("event",V,{durationThreshold:(J=Z.durationThreshold)!==null&&J!==void 0?J:40});Y=U0(X,Q,r9,Z.reportAllChanges),K&&(K.observe({type:"first-input",buffered:!0}),U1(function(){V(K.takeRecords()),Y(!0)}),v0(function(){Q8=Y8(),M0.length=0,c1.clear(),Q=W0("INP"),Y=U0(X,Q,r9,Z.reportAllChanges)}))}))},a9=[2500,4000],nZ={},G8=function(X,Z){Z=Z||{},z1(function(){var J,Y=JJ(),Q=W0("LCP"),V=function(G){Z.reportAllChanges||(G=G.slice(-1)),G.forEach(function(H){H.startTime<Y.firstHiddenTime&&(Q.value=Math.max(H.startTime-d1(),0),Q.entries=[H],J())})},K=d0("largest-contentful-paint",V);if(K){J=U0(X,Q,a9,Z.reportAllChanges);var q=i1(function(){nZ[Q.id]||(V(K.takeRecords()),K.disconnect(),nZ[Q.id]=!0,J(!0))});["keydown","click"].forEach(function(G){addEventListener(G,function(){return V8(q)},{once:!0,capture:!0})}),U1(q),v0(function(G){Q=W0("LCP"),J=U0(X,Q,a9,Z.reportAllChanges),ZJ(function(){Q.value=performance.now()-G.timeStamp,nZ[Q.id]=!0,J(!0)})})}})},o9=[800,1800],N6=function X(Z){document.prerendering?z1(function(){return X(Z)}):document.readyState!=="complete"?addEventListener("load",function(){return X(Z)},!0):setTimeout(Z,0)},q8=function(X,Z){Z=Z||{};var J=W0("TTFB"),Y=U0(X,J,o9,Z.reportAllChanges);N6(function(){var Q=eZ();Q&&(J.value=Math.max(Q.responseStart-d1(),0),J.entries=[Q],Y(!0),v0(function(){J=W0("TTFB",0),(Y=U0(X,J,o9,Z.reportAllChanges))(!0)}))})},H1={passive:!0,capture:!0},T6=new Date,n9=function(X,Z){S0||(S0=Z,W1=X,e9=new Date,W8(removeEventListener),H8())},H8=function(){if(W1>=0&&W1<e9-T6){var X={entryType:"first-input",name:S0.type,target:S0.target,cancelable:S0.cancelable,startTime:S0.timeStamp,processingStart:S0.timeStamp+W1};p1.forEach(function(Z){Z(X)}),p1=[]}},$6=function(X){if(X.cancelable){var Z=(X.timeStamp>1000000000000?new Date:performance.now())-X.timeStamp;X.type=="pointerdown"?function(J,Y){var Q=function(){n9(J,Y),K()},V=function(){K()},K=function(){removeEventListener("pointerup",Q,H1),removeEventListener("pointercancel",V,H1)};addEventListener("pointerup",Q,H1),addEventListener("pointercancel",V,H1)}(Z,X):n9(Z,X)}},W8=function(X){["mousedown","keydown","touchstart","pointerdown"].forEach(function(Z){return X(Z,$6,H1)})},t9=[100,300],U8=function(X,Z){Z=Z||{},z1(function(){var J,Y=JJ(),Q=W0("FID"),V=function(G){G.startTime<Y.firstHiddenTime&&(Q.value=G.processingStart-G.startTime,Q.entries.push(G),J(!0))},K=function(G){G.forEach(V)},q=d0("first-input",K);J=U0(X,Q,t9,Z.reportAllChanges),q&&(U1(i1(function(){K(q.takeRecords()),q.disconnect()})),v0(function(){var G;Q=W0("FID"),J=U0(X,Q,t9,Z.reportAllChanges),p1=[],W1=-1,S0=null,W8(addEventListener),G=V,p1.push(G),H8()}))})};class YJ{constructor(X){if(this.initialMetrics={},this.basePath=X.basePath,typeof window>"u")return;this.start()}start(){q8((X)=>{this.initialMetrics.TTFB={value:X.value,rating:X.rating},this.sendInitial()}),G8((X)=>{this.initialMetrics.LCP={value:X.value,rating:X.rating},this.sendInitial()}),U8((X)=>{this.initialMetrics.FID={value:X.value,rating:X.rating},this.sendInitial()}),XJ((X)=>{this.initialMetrics.FCP={value:X.value,rating:X.rating},this.sendInitial()}),J8((X)=>this.sendLate("cls",X.value)),K8((X)=>this.sendLate("inp",X.value))}sendInitial(){if(Object.keys(this.initialMetrics).length!==4)return;let X={ttfb:this.initialMetrics.TTFB?.value??null,lcp:this.initialMetrics.LCP?.value??null,fid:this.initialMetrics.FID?.value??null,fcp:this.initialMetrics.FCP?.value??null,path:window.location.pathname,query:window.location.search};$0("speed",X,"POST",this.basePath)}sendLate(X,Z){let J={[X]:Z,path:window.location.pathname,query:window.location.search};$0("speed",J,"POST",this.basePath)}destroy(){this.initialMetrics={}}}var S6=Object.defineProperty,x6=(X,Z,J)=>(Z in X)?S6(X,Z,{enumerable:!0,configurable:!0,writable:!0,value:J}):X[Z]=J,F=(X,Z,J)=>x6(X,typeof Z!=="symbol"?Z+"":Z,J),z8,f6=Object.defineProperty,h6=(X,Z,J)=>(Z in X)?f6(X,Z,{enumerable:!0,configurable:!0,writable:!0,value:J}):X[Z]=J,B8=(X,Z,J)=>h6(X,typeof Z!=="symbol"?Z+"":Z,J),n=((X)=>{return X[X.Document=0]="Document",X[X.DocumentType=1]="DocumentType",X[X.Element=2]="Element",X[X.Text=3]="Text",X[X.CDATA=4]="CDATA",X[X.Comment=5]="Comment",X})(n||{}),j8={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},D8={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},s1={},k6=()=>{return!!globalThis.Zone};function Z9(X){if(s1[X])return s1[X];let Z=globalThis[X],J=Z.prototype,Y=X in j8?j8[X]:void 0,Q=Boolean(Y&&Y.every((q)=>{var G,H;return Boolean((H=(G=Object.getOwnPropertyDescriptor(J,q))==null?void 0:G.get)==null?void 0:H.toString().includes("[native code]"))})),V=X in D8?D8[X]:void 0,K=Boolean(V&&V.every((q)=>{var G;return typeof J[q]==="function"&&((G=J[q])==null?void 0:G.toString().includes("[native code]"))}));if(Q&&K&&!k6())return s1[X]=Z.prototype,Z.prototype;try{let q=document.createElement("iframe");document.body.appendChild(q);let G=q.contentWindow;if(!G)return Z.prototype;let H=G[X].prototype;if(document.body.removeChild(q),!H)return J;return s1[X]=H}catch{return J}}var QJ={};function f0(X,Z,J){var Y;let Q=`${X}.${String(J)}`;if(QJ[Q])return QJ[Q].call(Z);let V=Z9(X),K=(Y=Object.getOwnPropertyDescriptor(V,J))==null?void 0:Y.get;if(!K)return Z[J];return QJ[Q]=K,K.call(Z)}var VJ={};function zX(X,Z,J){let Y=`${X}.${String(J)}`;if(VJ[Y])return VJ[Y].bind(Z);let V=Z9(X)[J];if(typeof V!=="function")return Z[J];return VJ[Y]=V,V.bind(Z)}function v6(X){return f0("Node",X,"childNodes")}function b6(X){return f0("Node",X,"parentNode")}function g6(X){return f0("Node",X,"parentElement")}function y6(X){return f0("Node",X,"textContent")}function m6(X,Z){return zX("Node",X,"contains")(Z)}function u6(X){return zX("Node",X,"getRootNode")()}function c6(X){if(!X||!("host"in X))return null;return f0("ShadowRoot",X,"host")}function p6(X){return X.styleSheets}function l6(X){if(!X||!("shadowRoot"in X))return null;return f0("Element",X,"shadowRoot")}function d6(X,Z){return f0("Element",X,"querySelector")(Z)}function i6(X,Z){return f0("Element",X,"querySelectorAll")(Z)}function s6(){return Z9("MutationObserver").constructor}var X0={childNodes:v6,parentNode:b6,parentElement:g6,textContent:y6,contains:m6,getRootNode:u6,host:c6,styleSheets:p6,shadowRoot:l6,querySelector:d6,querySelectorAll:i6,mutationObserver:s6};function BX(X){return X.nodeType===X.ELEMENT_NODE}function P1(X){let Z=X&&"host"in X&&"mode"in X&&X0.host(X)||null;return Boolean(Z&&"shadowRoot"in Z&&X0.shadowRoot(Z)===X)}function F1(X){return Object.prototype.toString.call(X)==="[object ShadowRoot]"}function r6(X){if(X.includes(" background-clip: text;")&&!X.includes(" -webkit-background-clip: text;"))X=X.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;");return X}function a6(X){let{cssText:Z}=X;if(Z.split('"').length<3)return Z;let J=["@import",`url(${JSON.stringify(X.href)})`];if(X.layerName==="")J.push("layer");else if(X.layerName)J.push(`layer(${X.layerName})`);if(X.supportsText)J.push(`supports(${X.supportsText})`);if(X.media.length)J.push(X.media.mediaText);return J.join(" ")+";"}function OJ(X){try{let Z=X.rules||X.cssRules;if(!Z)return null;let J=X.href;if(!J&&X.ownerNode&&X.ownerNode.ownerDocument)J=X.ownerNode.ownerDocument.location.href;let Y=Array.from(Z,(Q)=>jX(Q,J)).join("");return r6(Y)}catch(Z){return null}}function jX(X,Z){if(n6(X)){let J;try{J=OJ(X.styleSheet)||a6(X)}catch(Y){J=X.cssText}if(X.styleSheet.href)return MZ(J,X.styleSheet.href);return J}else{let J=X.cssText;if(t6(X)&&X.selectorText.includes(":"))J=o6(J);if(Z)return MZ(J,Z);return J}}function o6(X){let Z=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return X.replace(Z,"$1\\$2")}function n6(X){return"styleSheet"in X}function t6(X){return"selectorText"in X}class J9{constructor(){B8(this,"idNodeMap",new Map),B8(this,"nodeMetaMap",new WeakMap)}getId(X){var Z;if(!X)return-1;return((Z=this.getMeta(X))==null?void 0:Z.id)??-1}getNode(X){return this.idNodeMap.get(X)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(X){return this.nodeMetaMap.get(X)||null}removeNodeFromMap(X){let Z=this.getId(X);if(this.idNodeMap.delete(Z),X.childNodes)X.childNodes.forEach((J)=>this.removeNodeFromMap(J))}has(X){return this.idNodeMap.has(X)}hasNode(X){return this.nodeMetaMap.has(X)}add(X,Z){let J=Z.id;this.idNodeMap.set(J,X),this.nodeMetaMap.set(X,Z)}replace(X,Z){let J=this.getNode(X);if(J){let Y=this.nodeMetaMap.get(J);if(Y)this.nodeMetaMap.set(Z,Y)}this.idNodeMap.set(X,Z)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function e6(){return new J9}function X9({element:X,maskInputOptions:Z,tagName:J,type:Y,value:Q,maskInputFn:V}){let K=Q||"",q=Y&&g0(Y);if(Z[J.toLowerCase()]||q&&Z[q])if(V)K=V(K,X);else K="*".repeat(K.length);return K}function g0(X){return X.toLowerCase()}var L8="__rrweb_original__";function ZQ(X){let Z=X.getContext("2d");if(!Z)return!0;let J=50;for(let Y=0;Y<X.width;Y+=J)for(let Q=0;Q<X.height;Q+=J){let V=Z.getImageData,K=L8 in V?V[L8]:V;if(new Uint32Array(K.call(Z,Y,Q,Math.min(J,X.width-Y),Math.min(J,X.height-Q)).data.buffer).some((G)=>G!==0))return!1}return!0}function Y9(X){let Z=X.type;return X.hasAttribute("data-rr-is-password")?"password":Z?g0(Z):null}function DX(X,Z){let J;try{J=new URL(X,Z??window.location.href)}catch(V){return null}let Y=/\.([0-9a-z]+)(?:$)/i,Q=J.pathname.match(Y);return(Q==null?void 0:Q[1])??null}function JQ(X){let Z="";if(X.indexOf("//")>-1)Z=X.split("/").slice(0,3).join("/");else Z=X.split("/")[0];return Z=Z.split("?")[0],Z}var XQ=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,YQ=/^(?:[a-z+]+:)?\/\//i,QQ=/^www\..*/i,VQ=/^(data:)([^,]*),(.*)/i;function MZ(X,Z){return(X||"").replace(XQ,(J,Y,Q,V,K,q)=>{let G=Q||K||q,H=Y||V||"";if(!G)return J;if(YQ.test(G)||QQ.test(G))return`url(${H}${G}${H})`;if(VQ.test(G))return`url(${H}${G}${H})`;if(G[0]==="/")return`url(${H}${JQ(Z)+G}${H})`;let W=Z.split("/"),U=G.split("/");W.pop();for(let D of U)if(D===".")continue;else if(D==="..")W.pop();else W.push(D);return`url(${H}${W.join("/")}${H})`})}function KJ(X){return X.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}function KQ(X,Z){let J=Array.from(Z.childNodes),Y=[];if(J.length>1&&X&&typeof X==="string"){let Q=KJ(X);for(let V=1;V<J.length;V++)if(J[V].textContent&&typeof J[V].textContent==="string"){let K=KJ(J[V].textContent);for(let q=3;q<K.length;q++){let G=K.substring(0,q);if(Q.split(G).length===2){let H=Q.indexOf(G);for(let W=H;W<X.length;W++)if(KJ(X.substring(0,W)).length===H){Y.push(X.substring(0,W)),X=X.substring(W);break}break}}}}return Y.push(X),Y}function GQ(X,Z){return KQ(X,Z).join("/* rr_split */")}var qQ=1,HQ=new RegExp("[^a-z0-9-_:]"),A1=-2;function LX(){return qQ++}function WQ(X){if(X instanceof HTMLFormElement)return"form";let Z=g0(X.tagName);if(HQ.test(Z))return"div";return Z}var i0,P8,UQ=/^[^ \t\n\r\u000c]+/,zQ=/^[, \t\n\r\u000c]+/;function BQ(X,Z){if(Z.trim()==="")return Z;let J=0;function Y(V){let K,q=V.exec(Z.substring(J));if(q)return K=q[0],J+=K.length,K;return""}let Q=[];while(!0){if(Y(zQ),J>=Z.length)break;let V=Y(UQ);if(V.slice(-1)===",")V=o0(X,V.substring(0,V.length-1)),Q.push(V);else{let K="";V=o0(X,V);let q=!1;while(!0){let G=Z.charAt(J);if(G===""){Q.push((V+K).trim());break}else if(!q){if(G===","){J+=1,Q.push((V+K).trim());break}else if(G==="(")q=!0}else if(G===")")q=!1;K+=G,J+=1}}}return Q.join(", ")}var F8=new WeakMap;function o0(X,Z){if(!Z||Z.trim()==="")return Z;return Q9(X,Z)}function jQ(X){return Boolean(X.tagName==="svg"||X.ownerSVGElement)}function Q9(X,Z){let J=F8.get(X);if(!J)J=X.createElement("a"),F8.set(X,J);if(!Z)Z="";else if(Z.startsWith("blob:")||Z.startsWith("data:"))return Z;return J.setAttribute("href",Z),J.href}function PX(X,Z,J,Y){if(!Y)return Y;if(J==="src"||J==="href"&&!(Z==="use"&&Y[0]==="#"))return o0(X,Y);else if(J==="xlink:href"&&Y[0]!=="#")return o0(X,Y);else if(J==="background"&&(Z==="table"||Z==="td"||Z==="th"))return o0(X,Y);else if(J==="srcset")return BQ(X,Y);else if(J==="style")return MZ(Y,Q9(X));else if(Z==="object"&&J==="data")return o0(X,Y);return Y}function FX(X,Z,J){return(X==="video"||X==="audio")&&Z==="autoplay"}function DQ(X,Z,J){try{if(typeof Z==="string"){if(X.classList.contains(Z))return!0}else for(let Y=X.classList.length;Y--;){let Q=X.classList[Y];if(Z.test(Q))return!0}if(J)return X.matches(J)}catch(Y){}return!1}function CZ(X,Z,J){if(!X)return!1;if(X.nodeType!==X.ELEMENT_NODE){if(!J)return!1;return CZ(X0.parentNode(X),Z,J)}for(let Y=X.classList.length;Y--;){let Q=X.classList[Y];if(Z.test(Q))return!0}if(!J)return!1;return CZ(X0.parentNode(X),Z,J)}function OX(X,Z,J,Y){let Q;if(BX(X)){if(Q=X,!X0.childNodes(Q).length)return!1}else if(X0.parentElement(X)===null)return!1;else Q=X0.parentElement(X);try{if(typeof Z==="string"){if(Y){if(Q.closest(`.${Z}`))return!0}else if(Q.classList.contains(Z))return!0}else if(CZ(Q,Z,Y))return!0;if(J){if(Y){if(Q.closest(J))return!0}else if(Q.matches(J))return!0}}catch(V){}return!1}function LQ(X,Z,J){let Y=X.contentWindow;if(!Y)return;let Q=!1,V;try{V=Y.document.readyState}catch(q){return}if(V!=="complete"){let q=setTimeout(()=>{if(!Q)Z(),Q=!0},J);X.addEventListener("load",()=>{clearTimeout(q),Q=!0,Z()});return}let K="about:blank";if(Y.location.href!==K||X.src===K||X.src==="")return setTimeout(Z,0),X.addEventListener("load",Z);X.addEventListener("load",Z)}function PQ(X,Z,J){let Y=!1,Q;try{Q=X.sheet}catch(K){return}if(Q)return;let V=setTimeout(()=>{if(!Y)Z(),Y=!0},J);X.addEventListener("load",()=>{clearTimeout(V),Y=!0,Z()})}function FQ(X,Z){let{doc:J,mirror:Y,blockClass:Q,blockSelector:V,needsMask:K,inlineStylesheet:q,maskInputOptions:G={},maskTextFn:H,maskInputFn:W,dataURLOptions:U={},inlineImages:D,recordCanvas:B,keepIframeSrcFn:L,newlyAddedElement:j=!1,cssCaptured:z=!1}=Z,A=OQ(J,Y);switch(X.nodeType){case X.DOCUMENT_NODE:if(X.compatMode!=="CSS1Compat")return{type:n.Document,childNodes:[],compatMode:X.compatMode};else return{type:n.Document,childNodes:[]};case X.DOCUMENT_TYPE_NODE:return{type:n.DocumentType,name:X.name,publicId:X.publicId,systemId:X.systemId,rootId:A};case X.ELEMENT_NODE:return MQ(X,{doc:J,blockClass:Q,blockSelector:V,inlineStylesheet:q,maskInputOptions:G,maskInputFn:W,dataURLOptions:U,inlineImages:D,recordCanvas:B,keepIframeSrcFn:L,newlyAddedElement:j,rootId:A});case X.TEXT_NODE:return AQ(X,{doc:J,needsMask:K,maskTextFn:H,rootId:A,cssCaptured:z});case X.CDATA_SECTION_NODE:return{type:n.CDATA,textContent:"",rootId:A};case X.COMMENT_NODE:return{type:n.Comment,textContent:X0.textContent(X)||"",rootId:A};default:return!1}}function OQ(X,Z){if(!Z.hasNode(X))return;let J=Z.getId(X);return J===1?void 0:J}function AQ(X,Z){let{needsMask:J,maskTextFn:Y,rootId:Q,cssCaptured:V}=Z,K=X0.parentNode(X),q=K&&K.tagName,G="",H=q==="STYLE"?!0:void 0,W=q==="SCRIPT"?!0:void 0;if(W)G="SCRIPT_PLACEHOLDER";else if(!V){if(G=X0.textContent(X),H&&G)G=MZ(G,Q9(Z.doc))}if(!H&&!W&&G&&J)G=Y?Y(G,X0.parentElement(X)):G.replace(/[\S]/g,"*");return{type:n.Text,textContent:G||"",rootId:Q}}function MQ(X,Z){let{doc:J,blockClass:Y,blockSelector:Q,inlineStylesheet:V,maskInputOptions:K={},maskInputFn:q,dataURLOptions:G={},inlineImages:H,recordCanvas:W,keepIframeSrcFn:U,newlyAddedElement:D=!1,rootId:B}=Z,L=DQ(X,Y,Q),j=WQ(X),z={},A=X.attributes.length;for(let P=0;P<A;P++){let C=X.attributes[P];if(!FX(j,C.name,C.value))z[C.name]=PX(J,j,g0(C.name),C.value)}if(j==="link"&&V){let P=Array.from(J.styleSheets).find((E)=>{return E.href===X.href}),C=null;if(P)C=OJ(P);if(C)delete z.rel,delete z.href,z._cssText=C}if(j==="style"&&X.sheet){let P=OJ(X.sheet);if(P){if(X.childNodes.length>1)P=GQ(P,X);z._cssText=P}}if(j==="input"||j==="textarea"||j==="select"){let{value:P,checked:C}=X;if(z.type!=="radio"&&z.type!=="checkbox"&&z.type!=="submit"&&z.type!=="button"&&P)z.value=X9({element:X,type:Y9(X),tagName:j,value:P,maskInputOptions:K,maskInputFn:q});else if(C)z.checked=C}if(j==="option")if(X.selected&&!K.select)z.selected=!0;else delete z.selected;if(j==="dialog"&&X.open)z.rr_open_mode=X.matches("dialog:modal")?"modal":"non-modal";if(j==="canvas"&&W){if(X.__context==="2d"){if(!ZQ(X))z.rr_dataURL=X.toDataURL(G.type,G.quality)}else if(!("__context"in X)){let P=X.toDataURL(G.type,G.quality),C=J.createElement("canvas");C.width=X.width,C.height=X.height;let E=C.toDataURL(G.type,G.quality);if(P!==E)z.rr_dataURL=P}}if(j==="img"&&H){if(!i0)i0=J.createElement("canvas"),P8=i0.getContext("2d");let P=X,C=P.currentSrc||P.getAttribute("src")||"<unknown-src>",E=P.crossOrigin,_=()=>{P.removeEventListener("load",_);try{i0.width=P.naturalWidth,i0.height=P.naturalHeight,P8.drawImage(P,0,0),z.rr_dataURL=i0.toDataURL(G.type,G.quality)}catch(w){if(P.crossOrigin!=="anonymous"){if(P.crossOrigin="anonymous",P.complete&&P.naturalWidth!==0)_();else P.addEventListener("load",_);return}else console.warn(`Cannot inline img src=${C}! Error: ${w}`)}if(P.crossOrigin==="anonymous")E?z.crossOrigin=E:P.removeAttribute("crossorigin")};if(P.complete&&P.naturalWidth!==0)_();else P.addEventListener("load",_)}if(j==="audio"||j==="video"){let P=z;P.rr_mediaState=X.paused?"paused":"played",P.rr_mediaCurrentTime=X.currentTime,P.rr_mediaPlaybackRate=X.playbackRate,P.rr_mediaMuted=X.muted,P.rr_mediaLoop=X.loop,P.rr_mediaVolume=X.volume}if(!D){if(X.scrollLeft)z.rr_scrollLeft=X.scrollLeft;if(X.scrollTop)z.rr_scrollTop=X.scrollTop}if(L){let{width:P,height:C}=X.getBoundingClientRect();z={class:z.class,rr_width:`${P}px`,rr_height:`${C}px`}}if(j==="iframe"&&!U(z.src)){if(!X.contentDocument)z.rr_src=z.src;delete z.src}let O;try{if(customElements.get(j))O=!0}catch(P){}return{type:n.Element,tagName:j,attributes:z,childNodes:[],isSVG:jQ(X)||void 0,needBlock:L,rootId:B,isCustom:O}}function u(X){if(X===void 0||X===null)return"";else return X.toLowerCase()}function CQ(X,Z){if(Z.comment&&X.type===n.Comment)return!0;else if(X.type===n.Element){if(Z.script&&(X.tagName==="script"||X.tagName==="link"&&(X.attributes.rel==="preload"||X.attributes.rel==="modulepreload")&&X.attributes.as==="script"||X.tagName==="link"&&X.attributes.rel==="prefetch"&&typeof X.attributes.href==="string"&&DX(X.attributes.href)==="js"))return!0;else if(Z.headFavicon&&(X.tagName==="link"&&X.attributes.rel==="shortcut icon"||X.tagName==="meta"&&(u(X.attributes.name).match(/^msapplication-tile(image|color)$/)||u(X.attributes.name)==="application-name"||u(X.attributes.rel)==="icon"||u(X.attributes.rel)==="apple-touch-icon"||u(X.attributes.rel)==="shortcut icon")))return!0;else if(X.tagName==="meta"){if(Z.headMetaDescKeywords&&u(X.attributes.name).match(/^description|keywords$/))return!0;else if(Z.headMetaSocial&&(u(X.attributes.property).match(/^(og|twitter|fb):/)||u(X.attributes.name).match(/^(og|twitter):/)||u(X.attributes.name)==="pinterest"))return!0;else if(Z.headMetaRobots&&(u(X.attributes.name)==="robots"||u(X.attributes.name)==="googlebot"||u(X.attributes.name)==="bingbot"))return!0;else if(Z.headMetaHttpEquiv&&X.attributes["http-equiv"]!==void 0)return!0;else if(Z.headMetaAuthorship&&(u(X.attributes.name)==="author"||u(X.attributes.name)==="generator"||u(X.attributes.name)==="framework"||u(X.attributes.name)==="publisher"||u(X.attributes.name)==="progid"||u(X.attributes.property).match(/^article:/)||u(X.attributes.property).match(/^product:/)))return!0;else if(Z.headMetaVerification&&(u(X.attributes.name)==="google-site-verification"||u(X.attributes.name)==="yandex-verification"||u(X.attributes.name)==="csrf-token"||u(X.attributes.name)==="p:domain_verify"||u(X.attributes.name)==="verify-v1"||u(X.attributes.name)==="verification"||u(X.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function n0(X,Z){let{doc:J,mirror:Y,blockClass:Q,blockSelector:V,maskTextClass:K,maskTextSelector:q,skipChild:G=!1,inlineStylesheet:H=!0,maskInputOptions:W={},maskTextFn:U,maskInputFn:D,slimDOMOptions:B,dataURLOptions:L={},inlineImages:j=!1,recordCanvas:z=!1,onSerialize:A,onIframeLoad:O,iframeLoadTimeout:P=5000,onStylesheetLoad:C,stylesheetLoadTimeout:E=5000,keepIframeSrcFn:_=()=>!1,newlyAddedElement:w=!1,cssCaptured:M=!1}=Z,{needsMask:g}=Z,{preserveWhiteSpace:f=!0}=Z;if(!g)g=OX(X,K,q,g===void 0);let t=FQ(X,{doc:J,mirror:Y,blockClass:Q,blockSelector:V,needsMask:g,inlineStylesheet:H,maskInputOptions:W,maskTextFn:U,maskInputFn:D,dataURLOptions:L,inlineImages:j,recordCanvas:z,keepIframeSrcFn:_,newlyAddedElement:w,cssCaptured:M});if(!t)return console.warn(X,"not serialized"),null;let l;if(Y.hasNode(X))l=Y.getId(X);else if(CQ(t,B)||!f&&t.type===n.Text&&!t.textContent.replace(/^\s+|\s+$/gm,"").length)l=A1;else l=LX();let I=Object.assign(t,{id:l});if(Y.add(X,I),l===A1)return null;if(A)A(X);let e=!G;if(I.type===n.Element){e=e&&!I.needBlock,delete I.needBlock;let h=X0.shadowRoot(X);if(h&&F1(h))I.isShadowHost=!0}if((I.type===n.Document||I.type===n.Element)&&e){if(B.headWhitespace&&I.type===n.Element&&I.tagName==="head")f=!1;let h={doc:J,mirror:Y,blockClass:Q,blockSelector:V,needsMask:g,maskTextClass:K,maskTextSelector:q,skipChild:G,inlineStylesheet:H,maskInputOptions:W,maskTextFn:U,maskInputFn:D,slimDOMOptions:B,dataURLOptions:L,inlineImages:j,recordCanvas:z,preserveWhiteSpace:f,onSerialize:A,onIframeLoad:O,iframeLoadTimeout:P,onStylesheetLoad:C,stylesheetLoadTimeout:E,keepIframeSrcFn:_,cssCaptured:!1};if(I.type===n.Element&&I.tagName==="textarea"&&I.attributes.value!==void 0);else{if(I.type===n.Element&&I.attributes._cssText!==void 0&&typeof I.attributes._cssText==="string")h.cssCaptured=!0;for(let a of Array.from(X0.childNodes(X))){let o=n0(a,h);if(o)I.childNodes.push(o)}}let k=null;if(BX(X)&&(k=X0.shadowRoot(X)))for(let a of Array.from(X0.childNodes(k))){let o=n0(a,h);if(o)F1(k)&&(o.isShadow=!0),I.childNodes.push(o)}}let Z0=X0.parentNode(X);if(Z0&&P1(Z0)&&F1(Z0))I.isShadow=!0;if(I.type===n.Element&&I.tagName==="iframe")LQ(X,()=>{let h=X.contentDocument;if(h&&O){let k=n0(h,{doc:h,mirror:Y,blockClass:Q,blockSelector:V,needsMask:g,maskTextClass:K,maskTextSelector:q,skipChild:!1,inlineStylesheet:H,maskInputOptions:W,maskTextFn:U,maskInputFn:D,slimDOMOptions:B,dataURLOptions:L,inlineImages:j,recordCanvas:z,preserveWhiteSpace:f,onSerialize:A,onIframeLoad:O,iframeLoadTimeout:P,onStylesheetLoad:C,stylesheetLoadTimeout:E,keepIframeSrcFn:_});if(k)O(X,k)}},P);if(I.type===n.Element&&I.tagName==="link"&&typeof I.attributes.rel==="string"&&(I.attributes.rel==="stylesheet"||I.attributes.rel==="preload"&&typeof I.attributes.href==="string"&&DX(I.attributes.href)==="css"))PQ(X,()=>{if(C){let h=n0(X,{doc:J,mirror:Y,blockClass:Q,blockSelector:V,needsMask:g,maskTextClass:K,maskTextSelector:q,skipChild:!1,inlineStylesheet:H,maskInputOptions:W,maskTextFn:U,maskInputFn:D,slimDOMOptions:B,dataURLOptions:L,inlineImages:j,recordCanvas:z,preserveWhiteSpace:f,onSerialize:A,onIframeLoad:O,iframeLoadTimeout:P,onStylesheetLoad:C,stylesheetLoadTimeout:E,keepIframeSrcFn:_});if(h)C(X,h)}},E);return I}function _Q(X,Z){let{mirror:J=new J9,blockClass:Y="rr-block",blockSelector:Q=null,maskTextClass:V="rr-mask",maskTextSelector:K=null,inlineStylesheet:q=!0,inlineImages:G=!1,recordCanvas:H=!1,maskAllInputs:W=!1,maskTextFn:U,maskInputFn:D,slimDOM:B=!1,dataURLOptions:L,preserveWhiteSpace:j,onSerialize:z,onIframeLoad:A,iframeLoadTimeout:O,onStylesheetLoad:P,stylesheetLoadTimeout:C,keepIframeSrcFn:E=()=>!1}=Z||{};return n0(X,{doc:X,mirror:J,blockClass:Y,blockSelector:Q,maskTextClass:V,maskTextSelector:K,skipChild:!1,inlineStylesheet:q,maskInputOptions:W===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:W===!1?{password:!0}:W,maskTextFn:U,maskInputFn:D,slimDOMOptions:B===!0||B==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:B==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:B===!1?{}:B,dataURLOptions:L,inlineImages:G,recordCanvas:H,preserveWhiteSpace:j,onSerialize:z,onIframeLoad:A,iframeLoadTimeout:O,onStylesheetLoad:P,stylesheetLoadTimeout:C,keepIframeSrcFn:E,newlyAddedElement:!1})}var EQ=/(max|min)-device-(width|height)/,Cq=new RegExp(EQ.source,"g");function wQ(X){return X&&X.__esModule&&Object.prototype.hasOwnProperty.call(X,"default")?X.default:X}function IQ(X){if(X.__esModule)return X;var Z=X.default;if(typeof Z=="function"){var J=function Y(){if(this instanceof Y)return Reflect.construct(Z,arguments,this.constructor);return Z.apply(this,arguments)};J.prototype=Z.prototype}else J={};return Object.defineProperty(J,"__esModule",{value:!0}),Object.keys(X).forEach(function(Y){var Q=Object.getOwnPropertyDescriptor(X,Y);Object.defineProperty(J,Y,Q.get?Q:{enumerable:!0,get:function(){return X[Y]}})}),J}var V9={exports:{}},c=String,AX=function(){return{isColorSupported:!1,reset:c,bold:c,dim:c,italic:c,underline:c,inverse:c,hidden:c,strikethrough:c,black:c,red:c,green:c,yellow:c,blue:c,magenta:c,cyan:c,white:c,gray:c,bgBlack:c,bgRed:c,bgGreen:c,bgYellow:c,bgBlue:c,bgMagenta:c,bgCyan:c,bgWhite:c}};V9.exports=AX();V9.exports.createColors=AX;var RQ=V9.exports,NQ={},TQ=Object.freeze(Object.defineProperty({__proto__:null,default:NQ},Symbol.toStringTag,{value:"Module"})),P0=IQ(TQ),O8=RQ,A8=P0,AJ=class X extends Error{constructor(Z,J,Y,Q,V,K){super(Z);if(this.name="CssSyntaxError",this.reason=Z,V)this.file=V;if(Q)this.source=Q;if(K)this.plugin=K;if(typeof J<"u"&&typeof Y<"u")if(typeof J==="number")this.line=J,this.column=Y;else this.line=J.line,this.column=J.column,this.endLine=Y.line,this.endColumn=Y.column;if(this.setMessage(),Error.captureStackTrace)Error.captureStackTrace(this,X)}setMessage(){if(this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u")this.message+=":"+this.line+":"+this.column;this.message+=": "+this.reason}showSourceCode(Z){if(!this.source)return"";let J=this.source;if(Z==null)Z=O8.isColorSupported;if(A8){if(Z)J=A8(J)}let Y=J.split(/\r?\n/),Q=Math.max(this.line-3,0),V=Math.min(this.line+2,Y.length),K=String(V).length,q,G;if(Z){let{bold:H,gray:W,red:U}=O8.createColors(!0);q=(D)=>H(U(D)),G=(D)=>W(D)}else q=G=(H)=>H;return Y.slice(Q,V).map((H,W)=>{let U=Q+1+W,D=" "+(" "+U).slice(-K)+" | ";if(U===this.line){let B=G(D.replace(/\d/g," "))+H.slice(0,this.column-1).replace(/[^\t]/g," ");return q(">")+G(D)+H+`
2
- `+B+q("^")}return" "+G(D)+H}).join(`
1
+ (()=>{var p0="/api/_temps",oZ="session-replay",l9="X-Temps-Analytics-Key",d9="temps_key",i9=["/login","/log-in","/signin","/sign-in","/logout","/log-out","/signup","/sign-up","/register","/checkout*","/payment*","/billing*","/reset-password*","/forgot-password*","/mfa*","/2fa*","/verify*"];function r9(X){if(typeof crypto!=="undefined"&&crypto.randomUUID)return crypto.randomUUID();return`${X}_${Date.now()}_${Math.random().toString(36).substring(2,11)}`}function u1(){try{if(typeof localStorage==="undefined")return;let X=localStorage.getItem("temps_visitor_id");if(!X)X=r9("visitor"),localStorage.setItem("temps_visitor_id",X);return X}catch{return}}function a9(){try{if(typeof localStorage==="undefined")return;let X=Date.now(),Z=Number(localStorage.getItem("temps_session_last_seen")),J=localStorage.getItem("temps_session_id");if(!J||!Number.isFinite(Z)||X-Z>1800000)J=r9("session"),localStorage.setItem("temps_session_id",J);return localStorage.setItem("temps_session_last_seen",String(X)),J}catch{return}}function SY(){if(typeof document==="undefined")return;let X=document.querySelector('meta[name="temps-metadata"]');if(X)try{let Z=X.getAttribute("content")||"{}";return JSON.parse(Z).request_id}catch(Z){console.error("Failed to parse metadata:",Z)}return}function s9(){try{let X=window.location.hostname,Z=window.location.protocol==="file:",J=/^localhost$|^127(\.[0-9]+){0,2}\.[0-9]+$|^\[::1?\]$/.test(X);return Z||J}catch{return!1}}function o9(){if(typeof window==="undefined")return!1;let X=window,Z=Boolean(X._phantom),J=Boolean(X.__nightmare),Y=Boolean(window.navigator?.webdriver),Q=Boolean(X.Cypress),V=Boolean(X.__temps);return(Z||J||Y||Q)&&!V}function n9(X){return{...X,request_id:SY(),visitorId:u1(),sessionId:a9()}}function c1(X){return X?{[l9]:X}:{}}function nZ(X,Z){if(!Z)return X;let J=X.includes("?")?"&":"?";return`${X}${J}${d9}=${encodeURIComponent(Z)}`}async function k0(X,Z,J="POST",Y,Q){try{await fetch(`${Y}/${X}`,{method:J,headers:{"Content-Type":"application/json",...c1(Q)},body:JSON.stringify(n9(Z))})}catch(V){console.error("Failed to send analytics:",V)}}function l0(X,Z,J,Y){try{let Q=nZ(`${J}/${X}`,Y),V=JSON.stringify(n9(Z));if(typeof navigator!=="undefined"&&navigator.sendBeacon&&typeof navigator.sendBeacon==="function")try{let G=new Blob([V],{type:"application/json"});if(navigator.sendBeacon(Q,G))return!0}catch{}return fetch(Q,{method:"POST",headers:{"Content-Type":"application/json"},body:V,keepalive:!0}).catch((G)=>{console.error("Failed to send analytics (reliable):",G)}),!0}catch(Q){return console.error("Failed to send analytics (reliable):",Q),!1}}class tZ{constructor(X={}){this.engagementTime=0,this.lastEngagementStart=null,this.heartbeatCount=0,this.isActive=!0,this.heartbeatTimer=null,this.inactivityTimer=null,this.hasTrackedLeave=!1,this.handleVisibilityChange=()=>{let Z=this.isVisible;if(this.isVisible=document.visibilityState==="visible",!Z&&this.isVisible)this.startHeartbeat();else if(Z&&!this.isVisible)this.pauseEngagement()},this.handleFocus=()=>{this.isFocused=!0},this.handleBlur=()=>{this.isFocused=!1,this.pauseEngagement()},this.handleUserActivity=()=>{if(!this.isVisible||!this.isFocused)return;let Z=Date.now();if(!this.isActive)this.isActive=!0,this.lastEngagementStart=Z,this.startHeartbeat();this.lastActivityTime=Z,this.resetInactivityTimer()},this.handlePageLeave=()=>{if(this.hasTrackedLeave)return;this.hasTrackedLeave=!0,this.updateEngagementTime();let Z=this.getEngagementData();if(this.onPageLeave)this.onPageLeave(Z);l0("event",{event_name:"page_leave",request_path:window.location.pathname,request_query:window.location.search,domain:this.domain,language:navigator.language,event_data:{engagement_time_seconds:Z.engagement_time_seconds,total_time_seconds:Z.total_time_seconds,heartbeat_count:this.heartbeatCount,was_engaged:Z.is_engaged,url:window.location.href,referrer:document.referrer}},this.basePath,this.ingestKey)},this.handleNavigation=()=>{this.handlePageLeave(),this.reset()},this.basePath=X.basePath||p0,this.ingestKey=X.ingestKey,this.domain=X.domain||window.location.hostname,this.heartbeatInterval=X.heartbeatInterval||30000,this.inactivityTimeout=X.inactivityTimeout||30000,this.engagementThreshold=X.engagementThreshold||1e4,this.onHeartbeat=X.onHeartbeat,this.onPageLeave=X.onPageLeave,this.startTime=Date.now(),this.lastActivityTime=Date.now(),this.isVisible=document.visibilityState==="visible",this.isFocused=document.hasFocus(),this.lastEngagementStart=null,this.isActive=!1,this.originalPushState=window.history.pushState.bind(window.history),this.setupEventListeners(),this.startHeartbeat()}setupEventListeners(){document.addEventListener("visibilitychange",this.handleVisibilityChange),window.addEventListener("focus",this.handleFocus),window.addEventListener("blur",this.handleBlur),["mousedown","keypress","scroll","touchstart","click"].forEach((J)=>{document.addEventListener(J,this.handleUserActivity,{passive:!0})}),window.addEventListener("pagehide",this.handlePageLeave),window.addEventListener("beforeunload",this.handlePageLeave);let Z=this.originalPushState;window.history.pushState=(...J)=>{this.handlePageLeave(),Z(...J),this.reset()},window.addEventListener("popstate",this.handleNavigation)}pauseEngagement(){if(this.updateEngagementTime(),this.lastEngagementStart=null,!this.isVisible)this.stopHeartbeat()}resetInactivityTimer(){if(this.inactivityTimer)clearTimeout(this.inactivityTimer);this.inactivityTimer=setTimeout(()=>{if(this.isVisible)this.updateEngagementTime(),this.isActive=!1,this.lastEngagementStart=null},this.inactivityTimeout)}updateEngagementTime(){if(this.lastEngagementStart!==null){let X=Date.now()-this.lastEngagementStart;this.engagementTime+=X}}startHeartbeat(){if(this.heartbeatTimer)return;this.heartbeatTimer=setInterval(()=>{if(this.isVisible&&this.isActive)this.sendHeartbeat()},this.heartbeatInterval)}stopHeartbeat(){if(this.heartbeatTimer)clearInterval(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){this.updateEngagementTime(),this.heartbeatCount++;let X=this.getEngagementData();if(this.onHeartbeat)this.onHeartbeat(X);if(await k0("event",{event_name:"heartbeat",request_path:window.location.pathname,request_query:window.location.search,domain:this.domain,language:navigator.language,event_data:{engagement_time:Math.round(this.engagementTime),total_time:Math.round(Date.now()-this.startTime),is_engaged:X.is_engaged,is_visible:this.isVisible,time_since_last_activity:X.time_since_last_activity,heartbeat_count:this.heartbeatCount}},"POST",this.basePath,this.ingestKey),this.isActive&&this.isVisible)this.lastEngagementStart=Date.now()}getEngagementData(){let X=Date.now()-this.startTime,Z=Date.now()-this.lastActivityTime;return{engagement_time_seconds:Math.round(this.engagementTime/1000),total_time_seconds:Math.round(X/1000),heartbeat_count:this.heartbeatCount,is_engaged:this.engagementTime>=this.engagementThreshold,is_visible:this.isVisible,time_since_last_activity:Math.round(Z/1000)}}reset(){if(this.startTime=Date.now(),this.engagementTime=0,this.lastActivityTime=Date.now(),this.heartbeatCount=0,this.hasTrackedLeave=!1,this.isActive=!1,this.lastEngagementStart=null,this.isVisible)this.startHeartbeat()}destroy(){if(this.handlePageLeave(),this.stopHeartbeat(),this.inactivityTimer)clearTimeout(this.inactivityTimer);document.removeEventListener("visibilitychange",this.handleVisibilityChange),window.removeEventListener("focus",this.handleFocus),window.removeEventListener("blur",this.handleBlur),window.removeEventListener("pagehide",this.handlePageLeave),window.removeEventListener("beforeunload",this.handlePageLeave),window.removeEventListener("popstate",this.handleNavigation),window.history.pushState=this.originalPushState,["mousedown","keypress","scroll","touchstart","click"].forEach((Z)=>{document.removeEventListener(Z,this.handleUserActivity)})}}var JJ,$0,H1,qX,d1,KX=-1,v0=function(X){addEventListener("pageshow",function(Z){Z.persisted&&(KX=Z.timeStamp,X(Z))},!0)},XJ=function(){var X=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(X&&X.responseStart>0&&X.responseStart<performance.now())return X},r1=function(){var X=XJ();return X&&X.activationStart||0},H0=function(X,Z){var J=XJ(),Y="navigate";return KX>=0?Y="back-forward-cache":J&&(document.prerendering||r1()>0?Y="prerender":document.wasDiscarded?Y="restore":J.type&&(Y=J.type.replace(/_/g,"-"))),{name:X,value:Z===void 0?-1:Z,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1000000000000),navigationType:Y}},i0=function(X,Z,J){try{if(PerformanceObserver.supportedEntryTypes.includes(X)){var Y=new PerformanceObserver(function(Q){Promise.resolve().then(function(){Z(Q.getEntries())})});return Y.observe(Object.assign({type:X,buffered:!0},J||{})),Y}}catch(Q){}},U0=function(X,Z,J,Y){var Q,V;return function(G){Z.value>=0&&(G||Y)&&((V=Z.value-(Q||0))||Q===void 0)&&(Q=Z.value,Z.delta=V,Z.rating=function(K,q){return K>q[1]?"poor":K>q[0]?"needs-improvement":"good"}(Z.value,J),X(Z))}},YJ=function(X){requestAnimationFrame(function(){return requestAnimationFrame(function(){return X()})})},U1=function(X){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&X()})},a1=function(X){var Z=!1;return function(){Z||(X(),Z=!0)}},d0=-1,t9=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},i1=function(X){document.visibilityState==="hidden"&&d0>-1&&(d0=X.type==="visibilitychange"?X.timeStamp:0,xY())},e9=function(){addEventListener("visibilitychange",i1,!0),addEventListener("prerenderingchange",i1,!0)},xY=function(){removeEventListener("visibilitychange",i1,!0),removeEventListener("prerenderingchange",i1,!0)},QJ=function(){return d0<0&&(d0=t9(),e9(),v0(function(){setTimeout(function(){d0=t9(),e9()},0)})),{get firstHiddenTime(){return d0}}},z1=function(X){document.prerendering?addEventListener("prerenderingchange",function(){return X()},!0):X()},ZX=[1800,3000],VJ=function(X,Z){Z=Z||{},z1(function(){var J,Y=QJ(),Q=H0("FCP"),V=i0("paint",function(G){G.forEach(function(K){K.name==="first-contentful-paint"&&(V.disconnect(),K.startTime<Y.firstHiddenTime&&(Q.value=Math.max(K.startTime-r1(),0),Q.entries.push(K),J(!0)))})});V&&(J=U0(X,Q,ZX,Z.reportAllChanges),v0(function(G){Q=H0("FCP"),J=U0(X,Q,ZX,Z.reportAllChanges),YJ(function(){Q.value=performance.now()-G.timeStamp,J(!0)})}))})},JX=[0.1,0.25],WX=function(X,Z){Z=Z||{},VJ(a1(function(){var J,Y=H0("CLS",0),Q=0,V=[],G=function(q){q.forEach(function(W){if(!W.hadRecentInput){var H=V[0],z=V[V.length-1];Q&&W.startTime-z.startTime<1000&&W.startTime-H.startTime<5000?(Q+=W.value,V.push(W)):(Q=W.value,V=[W])}}),Q>Y.value&&(Y.value=Q,Y.entries=V,J())},K=i0("layout-shift",G);K&&(J=U0(X,Y,JX,Z.reportAllChanges),U1(function(){G(K.takeRecords()),J(!0)}),v0(function(){Q=0,Y=H0("CLS",0),J=U0(X,Y,JX,Z.reportAllChanges),YJ(function(){return J()})}),setTimeout(J,0))}))},HX=0,eZ=1/0,p1=0,fY=function(X){X.forEach(function(Z){Z.interactionId&&(eZ=Math.min(eZ,Z.interactionId),p1=Math.max(p1,Z.interactionId),HX=p1?(p1-eZ)/7+1:0)})},UX=function(){return JJ?HX:performance.interactionCount||0},hY=function(){"interactionCount"in performance||JJ||(JJ=i0("event",fY,{type:"event",buffered:!0,durationThreshold:0}))},M0=[],l1=new Map,zX=0,kY=function(){var X=Math.min(M0.length-1,Math.floor((UX()-zX)/50));return M0[X]},vY=[],bY=function(X){if(vY.forEach(function(Q){return Q(X)}),X.interactionId||X.entryType==="first-input"){var Z=M0[M0.length-1],J=l1.get(X.interactionId);if(J||M0.length<10||X.duration>Z.latency){if(J)X.duration>J.latency?(J.entries=[X],J.latency=X.duration):X.duration===J.latency&&X.startTime===J.entries[0].startTime&&J.entries.push(X);else{var Y={id:X.interactionId,latency:X.duration,entries:[X]};l1.set(Y.id,Y),M0.push(Y)}M0.sort(function(Q,V){return V.latency-Q.latency}),M0.length>10&&M0.splice(10).forEach(function(Q){return l1.delete(Q.id)})}}},BX=function(X){var Z=self.requestIdleCallback||self.setTimeout,J=-1;return X=a1(X),document.visibilityState==="hidden"?X():(J=Z(X),U1(X)),J},XX=[200,500],jX=function(X,Z){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(Z=Z||{},z1(function(){var J;hY();var Y,Q=H0("INP"),V=function(K){BX(function(){K.forEach(bY);var q=kY();q&&q.latency!==Q.value&&(Q.value=q.latency,Q.entries=q.entries,Y())})},G=i0("event",V,{durationThreshold:(J=Z.durationThreshold)!==null&&J!==void 0?J:40});Y=U0(X,Q,XX,Z.reportAllChanges),G&&(G.observe({type:"first-input",buffered:!0}),U1(function(){V(G.takeRecords()),Y(!0)}),v0(function(){zX=UX(),M0.length=0,l1.clear(),Q=H0("INP"),Y=U0(X,Q,XX,Z.reportAllChanges)}))}))},YX=[2500,4000],ZJ={},DX=function(X,Z){Z=Z||{},z1(function(){var J,Y=QJ(),Q=H0("LCP"),V=function(q){Z.reportAllChanges||(q=q.slice(-1)),q.forEach(function(W){W.startTime<Y.firstHiddenTime&&(Q.value=Math.max(W.startTime-r1(),0),Q.entries=[W],J())})},G=i0("largest-contentful-paint",V);if(G){J=U0(X,Q,YX,Z.reportAllChanges);var K=a1(function(){ZJ[Q.id]||(V(G.takeRecords()),G.disconnect(),ZJ[Q.id]=!0,J(!0))});["keydown","click"].forEach(function(q){addEventListener(q,function(){return BX(K)},{once:!0,capture:!0})}),U1(K),v0(function(q){Q=H0("LCP"),J=U0(X,Q,YX,Z.reportAllChanges),YJ(function(){Q.value=performance.now()-q.timeStamp,ZJ[Q.id]=!0,J(!0)})})}})},QX=[800,1800],gY=function X(Z){document.prerendering?z1(function(){return X(Z)}):document.readyState!=="complete"?addEventListener("load",function(){return X(Z)},!0):setTimeout(Z,0)},LX=function(X,Z){Z=Z||{};var J=H0("TTFB"),Y=U0(X,J,QX,Z.reportAllChanges);gY(function(){var Q=XJ();Q&&(J.value=Math.max(Q.responseStart-r1(),0),J.entries=[Q],Y(!0),v0(function(){J=H0("TTFB",0),(Y=U0(X,J,QX,Z.reportAllChanges))(!0)}))})},W1={passive:!0,capture:!0},yY=new Date,VX=function(X,Z){$0||($0=Z,H1=X,qX=new Date,FX(removeEventListener),PX())},PX=function(){if(H1>=0&&H1<qX-yY){var X={entryType:"first-input",name:$0.type,target:$0.target,cancelable:$0.cancelable,startTime:$0.timeStamp,processingStart:$0.timeStamp+H1};d1.forEach(function(Z){Z(X)}),d1=[]}},mY=function(X){if(X.cancelable){var Z=(X.timeStamp>1000000000000?new Date:performance.now())-X.timeStamp;X.type=="pointerdown"?function(J,Y){var Q=function(){VX(J,Y),G()},V=function(){G()},G=function(){removeEventListener("pointerup",Q,W1),removeEventListener("pointercancel",V,W1)};addEventListener("pointerup",Q,W1),addEventListener("pointercancel",V,W1)}(Z,X):VX(Z,X)}},FX=function(X){["mousedown","keydown","touchstart","pointerdown"].forEach(function(Z){return X(Z,mY,W1)})},GX=[100,300],OX=function(X,Z){Z=Z||{},z1(function(){var J,Y=QJ(),Q=H0("FID"),V=function(q){q.startTime<Y.firstHiddenTime&&(Q.value=q.processingStart-q.startTime,Q.entries.push(q),J(!0))},G=function(q){q.forEach(V)},K=i0("first-input",G);J=U0(X,Q,GX,Z.reportAllChanges),K&&(U1(a1(function(){G(K.takeRecords()),K.disconnect()})),v0(function(){var q;Q=H0("FID"),J=U0(X,Q,GX,Z.reportAllChanges),d1=[],H1=-1,$0=null,FX(addEventListener),q=V,d1.push(q),PX()}))})};class GJ{constructor(X){if(this.pathname="",this.query="",this.loadMetrics={},this.loadSent=!1,this.sentLoadMetrics=new Set,this.stopped=!1,this.handleVisibilityChange=()=>{if(document.visibilityState==="hidden")this.flushLoad()},this.handlePageHide=()=>{this.flushLoad()},this.basePath=X.basePath,this.ingestKey=X.ingestKey,typeof window==="undefined")return;this.pathname=window.location.pathname,this.query=window.location.search,this.start()}start(){LX((X)=>this.recordLoad("ttfb",X.value)),VJ((X)=>this.recordLoad("fcp",X.value)),DX((X)=>this.recordLoad("lcp",X.value)),OX((X)=>this.recordFid(X.value)),WX((X)=>this.sendLate("cls",X.value)),jX((X)=>this.sendLate("inp",X.value)),document.addEventListener("visibilitychange",this.handleVisibilityChange,!0),window.addEventListener("pagehide",this.handlePageHide,!0)}recordLoad(X,Z){if(this.stopped||this.sentLoadMetrics.has(X))return;if(this.loadSent){this.sentLoadMetrics.add(X),this.send({[X]:Z});return}this.loadMetrics[X]=Z;let{ttfb:J,fcp:Y,lcp:Q}=this.loadMetrics;if(J!==void 0&&Y!==void 0&&Q!==void 0)this.flushLoad()}recordFid(X){if(this.stopped||this.sentLoadMetrics.has("fid"))return;if(this.loadSent){this.sentLoadMetrics.add("fid"),this.send({fid:X});return}this.loadMetrics.fid=X}flushLoad(){if(this.stopped||this.loadSent)return;let{ttfb:X,fcp:Z,lcp:J,fid:Y}=this.loadMetrics;if(X===void 0&&Z===void 0&&J===void 0&&Y===void 0)return;this.loadSent=!0;for(let[Q,V]of Object.entries(this.loadMetrics))if(V!==void 0)this.sentLoadMetrics.add(Q);this.send({ttfb:X??null,lcp:J??null,fid:Y??null,fcp:Z??null})}sendLate(X,Z){if(this.stopped)return;this.send({[X]:Z})}send(X){let Z={...X,pathname:this.pathname,query:this.query};if(typeof document!=="undefined"&&document.visibilityState==="hidden"){l0("speed",Z,this.basePath,this.ingestKey);return}k0("speed",Z,"POST",this.basePath,this.ingestKey)}destroy(){if(this.stopped=!0,this.loadMetrics={},typeof window==="undefined")return;document.removeEventListener("visibilitychange",this.handleVisibilityChange,!0),window.removeEventListener("pagehide",this.handlePageHide,!0)}}var uY=Object.defineProperty,cY=(X,Z,J)=>(Z in X)?uY(X,Z,{enumerable:!0,configurable:!0,writable:!0,value:J}):X[Z]=J,F=(X,Z,J)=>cY(X,typeof Z!=="symbol"?Z+"":Z,J),AX,pY=Object.defineProperty,lY=(X,Z,J)=>(Z in X)?pY(X,Z,{enumerable:!0,configurable:!0,writable:!0,value:J}):X[Z]=J,MX=(X,Z,J)=>lY(X,typeof Z!=="symbol"?Z+"":Z,J),n=((X)=>{return X[X.Document=0]="Document",X[X.DocumentType=1]="DocumentType",X[X.Element=2]="Element",X[X.Text=3]="Text",X[X.CDATA=4]="CDATA",X[X.Comment=5]="Comment",X})(n||{}),CX={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},_X={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},s1={},dY=()=>{return!!globalThis.Zone};function Y9(X){if(s1[X])return s1[X];let Z=globalThis[X],J=Z.prototype,Y=X in CX?CX[X]:void 0,Q=Boolean(Y&&Y.every((K)=>{var q,W;return Boolean((W=(q=Object.getOwnPropertyDescriptor(J,K))==null?void 0:q.get)==null?void 0:W.toString().includes("[native code]"))})),V=X in _X?_X[X]:void 0,G=Boolean(V&&V.every((K)=>{var q;return typeof J[K]==="function"&&((q=J[K])==null?void 0:q.toString().includes("[native code]"))}));if(Q&&G&&!dY())return s1[X]=Z.prototype,Z.prototype;try{let K=document.createElement("iframe");document.body.appendChild(K);let q=K.contentWindow;if(!q)return Z.prototype;let W=q[X].prototype;if(document.body.removeChild(K),!W)return J;return s1[X]=W}catch{return J}}var qJ={};function x0(X,Z,J){var Y;let Q=`${X}.${String(J)}`;if(qJ[Q])return qJ[Q].call(Z);let V=Y9(X),G=(Y=Object.getOwnPropertyDescriptor(V,J))==null?void 0:Y.get;if(!G)return Z[J];return qJ[Q]=G,G.call(Z)}var KJ={};function A8(X,Z,J){let Y=`${X}.${String(J)}`;if(KJ[Y])return KJ[Y].bind(Z);let V=Y9(X)[J];if(typeof V!=="function")return Z[J];return KJ[Y]=V,V.bind(Z)}function iY(X){return x0("Node",X,"childNodes")}function rY(X){return x0("Node",X,"parentNode")}function aY(X){return x0("Node",X,"parentElement")}function sY(X){return x0("Node",X,"textContent")}function oY(X,Z){return A8("Node",X,"contains")(Z)}function nY(X){return A8("Node",X,"getRootNode")()}function tY(X){if(!X||!("host"in X))return null;return x0("ShadowRoot",X,"host")}function eY(X){return X.styleSheets}function ZQ(X){if(!X||!("shadowRoot"in X))return null;return x0("Element",X,"shadowRoot")}function JQ(X,Z){return x0("Element",X,"querySelector")(Z)}function XQ(X,Z){return x0("Element",X,"querySelectorAll")(Z)}function YQ(){return Y9("MutationObserver").constructor}var X0={childNodes:iY,parentNode:rY,parentElement:aY,textContent:sY,contains:oY,getRootNode:nY,host:tY,styleSheets:eY,shadowRoot:ZQ,querySelector:JQ,querySelectorAll:XQ,mutationObserver:YQ};function M8(X){return X.nodeType===X.ELEMENT_NODE}function F1(X){let Z=X&&"host"in X&&"mode"in X&&X0.host(X)||null;return Boolean(Z&&"shadowRoot"in Z&&X0.shadowRoot(Z)===X)}function O1(X){return Object.prototype.toString.call(X)==="[object ShadowRoot]"}function QQ(X){if(X.includes(" background-clip: text;")&&!X.includes(" -webkit-background-clip: text;"))X=X.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;");return X}function VQ(X){let{cssText:Z}=X;if(Z.split('"').length<3)return Z;let J=["@import",`url(${JSON.stringify(X.href)})`];if(X.layerName==="")J.push("layer");else if(X.layerName)J.push(`layer(${X.layerName})`);if(X.supportsText)J.push(`supports(${X.supportsText})`);if(X.media.length)J.push(X.media.mediaText);return J.join(" ")+";"}function CJ(X){try{let Z=X.rules||X.cssRules;if(!Z)return null;let J=X.href;if(!J&&X.ownerNode&&X.ownerNode.ownerDocument)J=X.ownerNode.ownerDocument.location.href;let Y=Array.from(Z,(Q)=>C8(Q,J)).join("");return QQ(Y)}catch(Z){return null}}function C8(X,Z){if(qQ(X)){let J;try{J=CJ(X.styleSheet)||VQ(X)}catch(Y){J=X.cssText}if(X.styleSheet.href)return _Z(J,X.styleSheet.href);return J}else{let J=X.cssText;if(KQ(X)&&X.selectorText.includes(":"))J=GQ(J);if(Z)return _Z(J,Z);return J}}function GQ(X){let Z=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return X.replace(Z,"$1\\$2")}function qQ(X){return"styleSheet"in X}function KQ(X){return"selectorText"in X}class Q9{constructor(){MX(this,"idNodeMap",new Map),MX(this,"nodeMetaMap",new WeakMap)}getId(X){var Z;if(!X)return-1;return((Z=this.getMeta(X))==null?void 0:Z.id)??-1}getNode(X){return this.idNodeMap.get(X)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(X){return this.nodeMetaMap.get(X)||null}removeNodeFromMap(X){let Z=this.getId(X);if(this.idNodeMap.delete(Z),X.childNodes)X.childNodes.forEach((J)=>this.removeNodeFromMap(J))}has(X){return this.idNodeMap.has(X)}hasNode(X){return this.nodeMetaMap.has(X)}add(X,Z){let J=Z.id;this.idNodeMap.set(J,X),this.nodeMetaMap.set(X,Z)}replace(X,Z){let J=this.getNode(X);if(J){let Y=this.nodeMetaMap.get(J);if(Y)this.nodeMetaMap.set(Z,Y)}this.idNodeMap.set(X,Z)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function WQ(){return new Q9}function V9({element:X,maskInputOptions:Z,tagName:J,type:Y,value:Q,maskInputFn:V}){let G=Q||"",K=Y&&g0(Y);if(Z[J.toLowerCase()]||K&&Z[K])if(V)G=V(G,X);else G="*".repeat(G.length);return G}function g0(X){return X.toLowerCase()}var wX="__rrweb_original__";function HQ(X){let Z=X.getContext("2d");if(!Z)return!0;let J=50;for(let Y=0;Y<X.width;Y+=J)for(let Q=0;Q<X.height;Q+=J){let V=Z.getImageData,G=wX in V?V[wX]:V;if(new Uint32Array(G.call(Z,Y,Q,Math.min(J,X.width-Y),Math.min(J,X.height-Q)).data.buffer).some((q)=>q!==0))return!1}return!0}function G9(X){let Z=X.type;return X.hasAttribute("data-rr-is-password")?"password":Z?g0(Z):null}function _8(X,Z){let J;try{J=new URL(X,Z??window.location.href)}catch(V){return null}let Y=/\.([0-9a-z]+)(?:$)/i,Q=J.pathname.match(Y);return(Q==null?void 0:Q[1])??null}function UQ(X){let Z="";if(X.indexOf("//")>-1)Z=X.split("/").slice(0,3).join("/");else Z=X.split("/")[0];return Z=Z.split("?")[0],Z}var zQ=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,BQ=/^(?:[a-z+]+:)?\/\//i,jQ=/^www\..*/i,DQ=/^(data:)([^,]*),(.*)/i;function _Z(X,Z){return(X||"").replace(zQ,(J,Y,Q,V,G,K)=>{let q=Q||G||K,W=Y||V||"";if(!q)return J;if(BQ.test(q)||jQ.test(q))return`url(${W}${q}${W})`;if(DQ.test(q))return`url(${W}${q}${W})`;if(q[0]==="/")return`url(${W}${UQ(Z)+q}${W})`;let H=Z.split("/"),z=q.split("/");H.pop();for(let j of z)if(j===".")continue;else if(j==="..")H.pop();else H.push(j);return`url(${W}${H.join("/")}${W})`})}function WJ(X){return X.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}function LQ(X,Z){let J=Array.from(Z.childNodes),Y=[];if(J.length>1&&X&&typeof X==="string"){let Q=WJ(X);for(let V=1;V<J.length;V++)if(J[V].textContent&&typeof J[V].textContent==="string"){let G=WJ(J[V].textContent);for(let K=3;K<G.length;K++){let q=G.substring(0,K);if(Q.split(q).length===2){let W=Q.indexOf(q);for(let H=W;H<X.length;H++)if(WJ(X.substring(0,H)).length===W){Y.push(X.substring(0,H)),X=X.substring(H);break}break}}}}return Y.push(X),Y}function PQ(X,Z){return LQ(X,Z).join("/* rr_split */")}var FQ=1,OQ=new RegExp("[^a-z0-9-_:]"),M1=-2;function w8(){return FQ++}function AQ(X){if(X instanceof HTMLFormElement)return"form";let Z=g0(X.tagName);if(OQ.test(Z))return"div";return Z}var r0,EX,MQ=/^[^ \t\n\r\u000c]+/,CQ=/^[, \t\n\r\u000c]+/;function _Q(X,Z){if(Z.trim()==="")return Z;let J=0;function Y(V){let G,K=V.exec(Z.substring(J));if(K)return G=K[0],J+=G.length,G;return""}let Q=[];while(!0){if(Y(CQ),J>=Z.length)break;let V=Y(MQ);if(V.slice(-1)===",")V=o0(X,V.substring(0,V.length-1)),Q.push(V);else{let G="";V=o0(X,V);let K=!1;while(!0){let q=Z.charAt(J);if(q===""){Q.push((V+G).trim());break}else if(!K){if(q===","){J+=1,Q.push((V+G).trim());break}else if(q==="(")K=!0}else if(q===")")K=!1;G+=q,J+=1}}}return Q.join(", ")}var RX=new WeakMap;function o0(X,Z){if(!Z||Z.trim()==="")return Z;return q9(X,Z)}function wQ(X){return Boolean(X.tagName==="svg"||X.ownerSVGElement)}function q9(X,Z){let J=RX.get(X);if(!J)J=X.createElement("a"),RX.set(X,J);if(!Z)Z="";else if(Z.startsWith("blob:")||Z.startsWith("data:"))return Z;return J.setAttribute("href",Z),J.href}function E8(X,Z,J,Y){if(!Y)return Y;if(J==="src"||J==="href"&&!(Z==="use"&&Y[0]==="#"))return o0(X,Y);else if(J==="xlink:href"&&Y[0]!=="#")return o0(X,Y);else if(J==="background"&&(Z==="table"||Z==="td"||Z==="th"))return o0(X,Y);else if(J==="srcset")return _Q(X,Y);else if(J==="style")return _Z(Y,q9(X));else if(Z==="object"&&J==="data")return o0(X,Y);return Y}function R8(X,Z,J){return(X==="video"||X==="audio")&&Z==="autoplay"}function EQ(X,Z,J){try{if(typeof Z==="string"){if(X.classList.contains(Z))return!0}else for(let Y=X.classList.length;Y--;){let Q=X.classList[Y];if(Z.test(Q))return!0}if(J)return X.matches(J)}catch(Y){}return!1}function wZ(X,Z,J){if(!X)return!1;if(X.nodeType!==X.ELEMENT_NODE){if(!J)return!1;return wZ(X0.parentNode(X),Z,J)}for(let Y=X.classList.length;Y--;){let Q=X.classList[Y];if(Z.test(Q))return!0}if(!J)return!1;return wZ(X0.parentNode(X),Z,J)}function I8(X,Z,J,Y){let Q;if(M8(X)){if(Q=X,!X0.childNodes(Q).length)return!1}else if(X0.parentElement(X)===null)return!1;else Q=X0.parentElement(X);try{if(typeof Z==="string"){if(Y){if(Q.closest(`.${Z}`))return!0}else if(Q.classList.contains(Z))return!0}else if(wZ(Q,Z,Y))return!0;if(J){if(Y){if(Q.closest(J))return!0}else if(Q.matches(J))return!0}}catch(V){}return!1}function RQ(X,Z,J){let Y=X.contentWindow;if(!Y)return;let Q=!1,V;try{V=Y.document.readyState}catch(K){return}if(V!=="complete"){let K=setTimeout(()=>{if(!Q)Z(),Q=!0},J);X.addEventListener("load",()=>{clearTimeout(K),Q=!0,Z()});return}let G="about:blank";if(Y.location.href!==G||X.src===G||X.src==="")return setTimeout(Z,0),X.addEventListener("load",Z);X.addEventListener("load",Z)}function IQ(X,Z,J){let Y=!1,Q;try{Q=X.sheet}catch(G){return}if(Q)return;let V=setTimeout(()=>{if(!Y)Z(),Y=!0},J);X.addEventListener("load",()=>{clearTimeout(V),Y=!0,Z()})}function NQ(X,Z){let{doc:J,mirror:Y,blockClass:Q,blockSelector:V,needsMask:G,inlineStylesheet:K,maskInputOptions:q={},maskTextFn:W,maskInputFn:H,dataURLOptions:z={},inlineImages:j,recordCanvas:B,keepIframeSrcFn:L,newlyAddedElement:D=!1,cssCaptured:U=!1}=Z,A=TQ(J,Y);switch(X.nodeType){case X.DOCUMENT_NODE:if(X.compatMode!=="CSS1Compat")return{type:n.Document,childNodes:[],compatMode:X.compatMode};else return{type:n.Document,childNodes:[]};case X.DOCUMENT_TYPE_NODE:return{type:n.DocumentType,name:X.name,publicId:X.publicId,systemId:X.systemId,rootId:A};case X.ELEMENT_NODE:return SQ(X,{doc:J,blockClass:Q,blockSelector:V,inlineStylesheet:K,maskInputOptions:q,maskInputFn:H,dataURLOptions:z,inlineImages:j,recordCanvas:B,keepIframeSrcFn:L,newlyAddedElement:D,rootId:A});case X.TEXT_NODE:return $Q(X,{doc:J,needsMask:G,maskTextFn:W,rootId:A,cssCaptured:U});case X.CDATA_SECTION_NODE:return{type:n.CDATA,textContent:"",rootId:A};case X.COMMENT_NODE:return{type:n.Comment,textContent:X0.textContent(X)||"",rootId:A};default:return!1}}function TQ(X,Z){if(!Z.hasNode(X))return;let J=Z.getId(X);return J===1?void 0:J}function $Q(X,Z){let{needsMask:J,maskTextFn:Y,rootId:Q,cssCaptured:V}=Z,G=X0.parentNode(X),K=G&&G.tagName,q="",W=K==="STYLE"?!0:void 0,H=K==="SCRIPT"?!0:void 0;if(H)q="SCRIPT_PLACEHOLDER";else if(!V){if(q=X0.textContent(X),W&&q)q=_Z(q,q9(Z.doc))}if(!W&&!H&&q&&J)q=Y?Y(q,X0.parentElement(X)):q.replace(/[\S]/g,"*");return{type:n.Text,textContent:q||"",rootId:Q}}function SQ(X,Z){let{doc:J,blockClass:Y,blockSelector:Q,inlineStylesheet:V,maskInputOptions:G={},maskInputFn:K,dataURLOptions:q={},inlineImages:W,recordCanvas:H,keepIframeSrcFn:z,newlyAddedElement:j=!1,rootId:B}=Z,L=EQ(X,Y,Q),D=AQ(X),U={},A=X.attributes.length;for(let P=0;P<A;P++){let C=X.attributes[P];if(!R8(D,C.name,C.value))U[C.name]=E8(J,D,g0(C.name),C.value)}if(D==="link"&&V){let P=Array.from(J.styleSheets).find((w)=>{return w.href===X.href}),C=null;if(P)C=CJ(P);if(C)delete U.rel,delete U.href,U._cssText=C}if(D==="style"&&X.sheet){let P=CJ(X.sheet);if(P){if(X.childNodes.length>1)P=PQ(P,X);U._cssText=P}}if(D==="input"||D==="textarea"||D==="select"){let{value:P,checked:C}=X;if(U.type!=="radio"&&U.type!=="checkbox"&&U.type!=="submit"&&U.type!=="button"&&P)U.value=V9({element:X,type:G9(X),tagName:D,value:P,maskInputOptions:G,maskInputFn:K});else if(C)U.checked=C}if(D==="option")if(X.selected&&!G.select)U.selected=!0;else delete U.selected;if(D==="dialog"&&X.open)U.rr_open_mode=X.matches("dialog:modal")?"modal":"non-modal";if(D==="canvas"&&H){if(X.__context==="2d"){if(!HQ(X))U.rr_dataURL=X.toDataURL(q.type,q.quality)}else if(!("__context"in X)){let P=X.toDataURL(q.type,q.quality),C=J.createElement("canvas");C.width=X.width,C.height=X.height;let w=C.toDataURL(q.type,q.quality);if(P!==w)U.rr_dataURL=P}}if(D==="img"&&W){if(!r0)r0=J.createElement("canvas"),EX=r0.getContext("2d");let P=X,C=P.currentSrc||P.getAttribute("src")||"<unknown-src>",w=P.crossOrigin,_=()=>{P.removeEventListener("load",_);try{r0.width=P.naturalWidth,r0.height=P.naturalHeight,EX.drawImage(P,0,0),U.rr_dataURL=r0.toDataURL(q.type,q.quality)}catch(E){if(P.crossOrigin!=="anonymous"){if(P.crossOrigin="anonymous",P.complete&&P.naturalWidth!==0)_();else P.addEventListener("load",_);return}else console.warn(`Cannot inline img src=${C}! Error: ${E}`)}if(P.crossOrigin==="anonymous")w?U.crossOrigin=w:P.removeAttribute("crossorigin")};if(P.complete&&P.naturalWidth!==0)_();else P.addEventListener("load",_)}if(D==="audio"||D==="video"){let P=U;P.rr_mediaState=X.paused?"paused":"played",P.rr_mediaCurrentTime=X.currentTime,P.rr_mediaPlaybackRate=X.playbackRate,P.rr_mediaMuted=X.muted,P.rr_mediaLoop=X.loop,P.rr_mediaVolume=X.volume}if(!j){if(X.scrollLeft)U.rr_scrollLeft=X.scrollLeft;if(X.scrollTop)U.rr_scrollTop=X.scrollTop}if(L){let{width:P,height:C}=X.getBoundingClientRect();U={class:U.class,rr_width:`${P}px`,rr_height:`${C}px`}}if(D==="iframe"&&!z(U.src)){if(!X.contentDocument)U.rr_src=U.src;delete U.src}let O;try{if(customElements.get(D))O=!0}catch(P){}return{type:n.Element,tagName:D,attributes:U,childNodes:[],isSVG:wQ(X)||void 0,needBlock:L,rootId:B,isCustom:O}}function u(X){if(X===void 0||X===null)return"";else return X.toLowerCase()}function xQ(X,Z){if(Z.comment&&X.type===n.Comment)return!0;else if(X.type===n.Element){if(Z.script&&(X.tagName==="script"||X.tagName==="link"&&(X.attributes.rel==="preload"||X.attributes.rel==="modulepreload")&&X.attributes.as==="script"||X.tagName==="link"&&X.attributes.rel==="prefetch"&&typeof X.attributes.href==="string"&&_8(X.attributes.href)==="js"))return!0;else if(Z.headFavicon&&(X.tagName==="link"&&X.attributes.rel==="shortcut icon"||X.tagName==="meta"&&(u(X.attributes.name).match(/^msapplication-tile(image|color)$/)||u(X.attributes.name)==="application-name"||u(X.attributes.rel)==="icon"||u(X.attributes.rel)==="apple-touch-icon"||u(X.attributes.rel)==="shortcut icon")))return!0;else if(X.tagName==="meta"){if(Z.headMetaDescKeywords&&u(X.attributes.name).match(/^description|keywords$/))return!0;else if(Z.headMetaSocial&&(u(X.attributes.property).match(/^(og|twitter|fb):/)||u(X.attributes.name).match(/^(og|twitter):/)||u(X.attributes.name)==="pinterest"))return!0;else if(Z.headMetaRobots&&(u(X.attributes.name)==="robots"||u(X.attributes.name)==="googlebot"||u(X.attributes.name)==="bingbot"))return!0;else if(Z.headMetaHttpEquiv&&X.attributes["http-equiv"]!==void 0)return!0;else if(Z.headMetaAuthorship&&(u(X.attributes.name)==="author"||u(X.attributes.name)==="generator"||u(X.attributes.name)==="framework"||u(X.attributes.name)==="publisher"||u(X.attributes.name)==="progid"||u(X.attributes.property).match(/^article:/)||u(X.attributes.property).match(/^product:/)))return!0;else if(Z.headMetaVerification&&(u(X.attributes.name)==="google-site-verification"||u(X.attributes.name)==="yandex-verification"||u(X.attributes.name)==="csrf-token"||u(X.attributes.name)==="p:domain_verify"||u(X.attributes.name)==="verify-v1"||u(X.attributes.name)==="verification"||u(X.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function n0(X,Z){let{doc:J,mirror:Y,blockClass:Q,blockSelector:V,maskTextClass:G,maskTextSelector:K,skipChild:q=!1,inlineStylesheet:W=!0,maskInputOptions:H={},maskTextFn:z,maskInputFn:j,slimDOMOptions:B,dataURLOptions:L={},inlineImages:D=!1,recordCanvas:U=!1,onSerialize:A,onIframeLoad:O,iframeLoadTimeout:P=5000,onStylesheetLoad:C,stylesheetLoadTimeout:w=5000,keepIframeSrcFn:_=()=>!1,newlyAddedElement:E=!1,cssCaptured:M=!1}=Z,{needsMask:x}=Z,{preserveWhiteSpace:h=!0}=Z;if(!x)x=I8(X,G,K,x===void 0);let t=NQ(X,{doc:J,mirror:Y,blockClass:Q,blockSelector:V,needsMask:x,inlineStylesheet:W,maskInputOptions:H,maskTextFn:z,maskInputFn:j,dataURLOptions:L,inlineImages:D,recordCanvas:U,keepIframeSrcFn:_,newlyAddedElement:E,cssCaptured:M});if(!t)return console.warn(X,"not serialized"),null;let l;if(Y.hasNode(X))l=Y.getId(X);else if(xQ(t,B)||!h&&t.type===n.Text&&!t.textContent.replace(/^\s+|\s+$/gm,"").length)l=M1;else l=w8();let R=Object.assign(t,{id:l});if(Y.add(X,R),l===M1)return null;if(A)A(X);let e=!q;if(R.type===n.Element){e=e&&!R.needBlock,delete R.needBlock;let k=X0.shadowRoot(X);if(k&&O1(k))R.isShadowHost=!0}if((R.type===n.Document||R.type===n.Element)&&e){if(B.headWhitespace&&R.type===n.Element&&R.tagName==="head")h=!1;let k={doc:J,mirror:Y,blockClass:Q,blockSelector:V,needsMask:x,maskTextClass:G,maskTextSelector:K,skipChild:q,inlineStylesheet:W,maskInputOptions:H,maskTextFn:z,maskInputFn:j,slimDOMOptions:B,dataURLOptions:L,inlineImages:D,recordCanvas:U,preserveWhiteSpace:h,onSerialize:A,onIframeLoad:O,iframeLoadTimeout:P,onStylesheetLoad:C,stylesheetLoadTimeout:w,keepIframeSrcFn:_,cssCaptured:!1};if(R.type===n.Element&&R.tagName==="textarea"&&R.attributes.value!==void 0);else{if(R.type===n.Element&&R.attributes._cssText!==void 0&&typeof R.attributes._cssText==="string")k.cssCaptured=!0;for(let s of Array.from(X0.childNodes(X))){let o=n0(s,k);if(o)R.childNodes.push(o)}}let v=null;if(M8(X)&&(v=X0.shadowRoot(X)))for(let s of Array.from(X0.childNodes(v))){let o=n0(s,k);if(o)O1(v)&&(o.isShadow=!0),R.childNodes.push(o)}}let Z0=X0.parentNode(X);if(Z0&&F1(Z0)&&O1(Z0))R.isShadow=!0;if(R.type===n.Element&&R.tagName==="iframe")RQ(X,()=>{let k=X.contentDocument;if(k&&O){let v=n0(k,{doc:k,mirror:Y,blockClass:Q,blockSelector:V,needsMask:x,maskTextClass:G,maskTextSelector:K,skipChild:!1,inlineStylesheet:W,maskInputOptions:H,maskTextFn:z,maskInputFn:j,slimDOMOptions:B,dataURLOptions:L,inlineImages:D,recordCanvas:U,preserveWhiteSpace:h,onSerialize:A,onIframeLoad:O,iframeLoadTimeout:P,onStylesheetLoad:C,stylesheetLoadTimeout:w,keepIframeSrcFn:_});if(v)O(X,v)}},P);if(R.type===n.Element&&R.tagName==="link"&&typeof R.attributes.rel==="string"&&(R.attributes.rel==="stylesheet"||R.attributes.rel==="preload"&&typeof R.attributes.href==="string"&&_8(R.attributes.href)==="css"))IQ(X,()=>{if(C){let k=n0(X,{doc:J,mirror:Y,blockClass:Q,blockSelector:V,needsMask:x,maskTextClass:G,maskTextSelector:K,skipChild:!1,inlineStylesheet:W,maskInputOptions:H,maskTextFn:z,maskInputFn:j,slimDOMOptions:B,dataURLOptions:L,inlineImages:D,recordCanvas:U,preserveWhiteSpace:h,onSerialize:A,onIframeLoad:O,iframeLoadTimeout:P,onStylesheetLoad:C,stylesheetLoadTimeout:w,keepIframeSrcFn:_});if(k)C(X,k)}},w);return R}function fQ(X,Z){let{mirror:J=new Q9,blockClass:Y="rr-block",blockSelector:Q=null,maskTextClass:V="rr-mask",maskTextSelector:G=null,inlineStylesheet:K=!0,inlineImages:q=!1,recordCanvas:W=!1,maskAllInputs:H=!1,maskTextFn:z,maskInputFn:j,slimDOM:B=!1,dataURLOptions:L,preserveWhiteSpace:D,onSerialize:U,onIframeLoad:A,iframeLoadTimeout:O,onStylesheetLoad:P,stylesheetLoadTimeout:C,keepIframeSrcFn:w=()=>!1}=Z||{};return n0(X,{doc:X,mirror:J,blockClass:Y,blockSelector:Q,maskTextClass:V,maskTextSelector:G,skipChild:!1,inlineStylesheet:K,maskInputOptions:H===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:H===!1?{password:!0}:H,maskTextFn:z,maskInputFn:j,slimDOMOptions:B===!0||B==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:B==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:B===!1?{}:B,dataURLOptions:L,inlineImages:q,recordCanvas:W,preserveWhiteSpace:D,onSerialize:U,onIframeLoad:A,iframeLoadTimeout:O,onStylesheetLoad:P,stylesheetLoadTimeout:C,keepIframeSrcFn:w,newlyAddedElement:!1})}var hQ=/(max|min)-device-(width|height)/,vK=new RegExp(hQ.source,"g");function kQ(X){return X&&X.__esModule&&Object.prototype.hasOwnProperty.call(X,"default")?X.default:X}function vQ(X){if(X.__esModule)return X;var Z=X.default;if(typeof Z=="function"){var J=function Y(){if(this instanceof Y)return Reflect.construct(Z,arguments,this.constructor);return Z.apply(this,arguments)};J.prototype=Z.prototype}else J={};return Object.defineProperty(J,"__esModule",{value:!0}),Object.keys(X).forEach(function(Y){var Q=Object.getOwnPropertyDescriptor(X,Y);Object.defineProperty(J,Y,Q.get?Q:{enumerable:!0,get:function(){return X[Y]}})}),J}var K9={exports:{}},c=String,N8=function(){return{isColorSupported:!1,reset:c,bold:c,dim:c,italic:c,underline:c,inverse:c,hidden:c,strikethrough:c,black:c,red:c,green:c,yellow:c,blue:c,magenta:c,cyan:c,white:c,gray:c,bgBlack:c,bgRed:c,bgGreen:c,bgYellow:c,bgBlue:c,bgMagenta:c,bgCyan:c,bgWhite:c}};K9.exports=N8();K9.exports.createColors=N8;var bQ=K9.exports,gQ={},yQ=Object.freeze(Object.defineProperty({__proto__:null,default:gQ},Symbol.toStringTag,{value:"Module"})),P0=vQ(yQ),IX=bQ,NX=P0,_J=class X extends Error{constructor(Z,J,Y,Q,V,G){super(Z);if(this.name="CssSyntaxError",this.reason=Z,V)this.file=V;if(Q)this.source=Q;if(G)this.plugin=G;if(typeof J!=="undefined"&&typeof Y!=="undefined")if(typeof J==="number")this.line=J,this.column=Y;else this.line=J.line,this.column=J.column,this.endLine=Y.line,this.endColumn=Y.column;if(this.setMessage(),Error.captureStackTrace)Error.captureStackTrace(this,X)}setMessage(){if(this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!=="undefined")this.message+=":"+this.line+":"+this.column;this.message+=": "+this.reason}showSourceCode(Z){if(!this.source)return"";let J=this.source;if(Z==null)Z=IX.isColorSupported;if(NX){if(Z)J=NX(J)}let Y=J.split(/\r?\n/),Q=Math.max(this.line-3,0),V=Math.min(this.line+2,Y.length),G=String(V).length,K,q;if(Z){let{bold:W,gray:H,red:z}=IX.createColors(!0);K=(j)=>W(z(j)),q=(j)=>H(j)}else K=q=(W)=>W;return Y.slice(Q,V).map((W,H)=>{let z=Q+1+H,j=" "+(" "+z).slice(-G)+" | ";if(z===this.line){let B=q(j.replace(/\d/g," "))+W.slice(0,this.column-1).replace(/[^\t]/g," ");return K(">")+q(j)+W+`
2
+ `+B+K("^")}return" "+q(j)+W}).join(`
3
3
  `)}toString(){let Z=this.showSourceCode();if(Z)Z=`
4
4
 
5
5
  `+Z+`
6
- `;return this.name+": "+this.message+Z}},K9=AJ;AJ.default=AJ;var $1={};$1.isClean=Symbol("isClean");$1.my=Symbol("my");var M8={after:`
6
+ `;return this.name+": "+this.message+Z}},W9=_J;_J.default=_J;var S1={};S1.isClean=Symbol("isClean");S1.my=Symbol("my");var TX={after:`
7
7
  `,beforeClose:`
8
8
  `,beforeComment:`
9
9
  `,beforeDecl:`
10
10
  `,beforeOpen:" ",beforeRule:`
11
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function $Q(X){return X[0].toUpperCase()+X.slice(1)}var MJ=class{constructor(Z){this.builder=Z}atrule(Z,J){let Y="@"+Z.name,Q=Z.params?this.rawValue(Z,"params"):"";if(typeof Z.raws.afterName<"u")Y+=Z.raws.afterName;else if(Q)Y+=" ";if(Z.nodes)this.block(Z,Y+Q);else{let V=(Z.raws.between||"")+(J?";":"");this.builder(Y+Q+V,Z)}}beforeAfter(Z,J){let Y;if(Z.type==="decl")Y=this.raw(Z,null,"beforeDecl");else if(Z.type==="comment")Y=this.raw(Z,null,"beforeComment");else if(J==="before")Y=this.raw(Z,null,"beforeRule");else Y=this.raw(Z,null,"beforeClose");let Q=Z.parent,V=0;while(Q&&Q.type!=="root")V+=1,Q=Q.parent;if(Y.includes(`
12
- `)){let K=this.raw(Z,null,"indent");if(K.length)for(let q=0;q<V;q++)Y+=K}return Y}block(Z,J){let Y=this.raw(Z,"between","beforeOpen");this.builder(J+Y+"{",Z,"start");let Q;if(Z.nodes&&Z.nodes.length)this.body(Z),Q=this.raw(Z,"after");else Q=this.raw(Z,"after","emptyBody");if(Q)this.builder(Q);this.builder("}",Z,"end")}body(Z){let J=Z.nodes.length-1;while(J>0){if(Z.nodes[J].type!=="comment")break;J-=1}let Y=this.raw(Z,"semicolon");for(let Q=0;Q<Z.nodes.length;Q++){let V=Z.nodes[Q],K=this.raw(V,"before");if(K)this.builder(K);this.stringify(V,J!==Q||Y)}}comment(Z){let J=this.raw(Z,"left","commentLeft"),Y=this.raw(Z,"right","commentRight");this.builder("/*"+J+Z.text+Y+"*/",Z)}decl(Z,J){let Y=this.raw(Z,"between","colon"),Q=Z.prop+Y+this.rawValue(Z,"value");if(Z.important)Q+=Z.raws.important||" !important";if(J)Q+=";";this.builder(Q,Z)}document(Z){this.body(Z)}raw(Z,J,Y){let Q;if(!Y)Y=J;if(J){if(Q=Z.raws[J],typeof Q<"u")return Q}let V=Z.parent;if(Y==="before"){if(!V||V.type==="root"&&V.first===Z)return"";if(V&&V.type==="document")return""}if(!V)return M8[Y];let K=Z.root();if(!K.rawCache)K.rawCache={};if(typeof K.rawCache[Y]<"u")return K.rawCache[Y];if(Y==="before"||Y==="after")return this.beforeAfter(Z,Y);else{let q="raw"+$Q(Y);if(this[q])Q=this[q](K,Z);else K.walk((G)=>{if(Q=G.raws[J],typeof Q<"u")return!1})}if(typeof Q>"u")Q=M8[Y];return K.rawCache[Y]=Q,Q}rawBeforeClose(Z){let J;if(Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length>0){if(typeof Y.raws.after<"u"){if(J=Y.raws.after,J.includes(`
13
- `))J=J.replace(/[^\n]+$/,"");return!1}}}),J)J=J.replace(/\S/g,"");return J}rawBeforeComment(Z,J){let Y;if(Z.walkComments((Q)=>{if(typeof Q.raws.before<"u"){if(Y=Q.raws.before,Y.includes(`
14
- `))Y=Y.replace(/[^\n]+$/,"");return!1}}),typeof Y>"u")Y=this.raw(J,null,"beforeDecl");else if(Y)Y=Y.replace(/\S/g,"");return Y}rawBeforeDecl(Z,J){let Y;if(Z.walkDecls((Q)=>{if(typeof Q.raws.before<"u"){if(Y=Q.raws.before,Y.includes(`
15
- `))Y=Y.replace(/[^\n]+$/,"");return!1}}),typeof Y>"u")Y=this.raw(J,null,"beforeRule");else if(Y)Y=Y.replace(/\S/g,"");return Y}rawBeforeOpen(Z){let J;return Z.walk((Y)=>{if(Y.type!=="decl"){if(J=Y.raws.between,typeof J<"u")return!1}}),J}rawBeforeRule(Z){let J;if(Z.walk((Y)=>{if(Y.nodes&&(Y.parent!==Z||Z.first!==Y)){if(typeof Y.raws.before<"u"){if(J=Y.raws.before,J.includes(`
16
- `))J=J.replace(/[^\n]+$/,"");return!1}}}),J)J=J.replace(/\S/g,"");return J}rawColon(Z){let J;return Z.walkDecls((Y)=>{if(typeof Y.raws.between<"u")return J=Y.raws.between.replace(/[^\s:]/g,""),!1}),J}rawEmptyBody(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length===0){if(J=Y.raws.after,typeof J<"u")return!1}}),J}rawIndent(Z){if(Z.raws.indent)return Z.raws.indent;let J;return Z.walk((Y)=>{let Q=Y.parent;if(Q&&Q!==Z&&Q.parent&&Q.parent===Z){if(typeof Y.raws.before<"u"){let V=Y.raws.before.split(`
17
- `);return J=V[V.length-1],J=J.replace(/\S/g,""),!1}}}),J}rawSemicolon(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length&&Y.last.type==="decl"){if(J=Y.raws.semicolon,typeof J<"u")return!1}}),J}rawValue(Z,J){let Y=Z[J],Q=Z.raws[J];if(Q&&Q.value===Y)return Q.raw;return Y}root(Z){if(this.body(Z),Z.raws.after)this.builder(Z.raws.after)}rule(Z){if(this.block(Z,this.rawValue(Z,"selector")),Z.raws.ownSemicolon)this.builder(Z.raws.ownSemicolon,Z,"end")}stringify(Z,J){if(!this[Z.type])throw Error("Unknown AST node type "+Z.type+". Maybe you need to change PostCSS stringifier.");this[Z.type](Z,J)}},MX=MJ;MJ.default=MJ;var SQ=MX;function CJ(X,Z){new SQ(Z).stringify(X)}var hZ=CJ;CJ.default=CJ;var{isClean:r1,my:xQ}=$1,fQ=K9,hQ=MX,kQ=hZ;function _J(X,Z){let J=new X.constructor;for(let Y in X){if(!Object.prototype.hasOwnProperty.call(X,Y))continue;if(Y==="proxyCache")continue;let Q=X[Y],V=typeof Q;if(Y==="parent"&&V==="object"){if(Z)J[Y]=Z}else if(Y==="source")J[Y]=Q;else if(Array.isArray(Q))J[Y]=Q.map((K)=>_J(K,J));else{if(V==="object"&&Q!==null)Q=_J(Q);J[Y]=Q}}return J}var EJ=class{constructor(Z={}){this.raws={},this[r1]=!1,this[xQ]=!0;for(let J in Z)if(J==="nodes"){this.nodes=[];for(let Y of Z[J])if(typeof Y.clone==="function")this.append(Y.clone());else this.append(Y)}else this[J]=Z[J]}addToError(Z){if(Z.postcssNode=this,Z.stack&&this.source&&/\n\s{4}at /.test(Z.stack)){let J=this.source;Z.stack=Z.stack.replace(/\n\s{4}at /,`$&${J.input.from}:${J.start.line}:${J.start.column}$&`)}return Z}after(Z){return this.parent.insertAfter(this,Z),this}assign(Z={}){for(let J in Z)this[J]=Z[J];return this}before(Z){return this.parent.insertBefore(this,Z),this}cleanRaws(Z){if(delete this.raws.before,delete this.raws.after,!Z)delete this.raws.between}clone(Z={}){let J=_J(this);for(let Y in Z)J[Y]=Z[Y];return J}cloneAfter(Z={}){let J=this.clone(Z);return this.parent.insertAfter(this,J),J}cloneBefore(Z={}){let J=this.clone(Z);return this.parent.insertBefore(this,J),J}error(Z,J={}){if(this.source){let{end:Y,start:Q}=this.rangeBy(J);return this.source.input.error(Z,{column:Q.column,line:Q.line},{column:Y.column,line:Y.line},J)}return new fQ(Z)}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(J==="root")return()=>Z.root().toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="prop"||J==="value"||J==="name"||J==="params"||J==="important"||J==="text")Z.markDirty();return!0}}}markDirty(){if(this[r1]){this[r1]=!1;let Z=this;while(Z=Z.parent)Z[r1]=!1}}next(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z+1]}positionBy(Z,J){let Y=this.source.start;if(Z.index)Y=this.positionInside(Z.index,J);else if(Z.word){J=this.toString();let Q=J.indexOf(Z.word);if(Q!==-1)Y=this.positionInside(Q,J)}return Y}positionInside(Z,J){let Y=J||this.toString(),Q=this.source.start.column,V=this.source.start.line;for(let K=0;K<Z;K++)if(Y[K]===`
18
- `)Q=1,V+=1;else Q+=1;return{column:Q,line:V}}prev(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z-1]}rangeBy(Z){let J={column:this.source.start.column,line:this.source.start.line},Y=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:J.column+1,line:J.line};if(Z.word){let Q=this.toString(),V=Q.indexOf(Z.word);if(V!==-1)J=this.positionInside(V,Q),Y=this.positionInside(V+Z.word.length,Q)}else{if(Z.start)J={column:Z.start.column,line:Z.start.line};else if(Z.index)J=this.positionInside(Z.index);if(Z.end)Y={column:Z.end.column,line:Z.end.line};else if(typeof Z.endIndex==="number")Y=this.positionInside(Z.endIndex);else if(Z.index)Y=this.positionInside(Z.index+1)}if(Y.line<J.line||Y.line===J.line&&Y.column<=J.column)Y={column:J.column+1,line:J.line};return{end:Y,start:J}}raw(Z,J){return new hQ().raw(this,Z,J)}remove(){if(this.parent)this.parent.removeChild(this);return this.parent=void 0,this}replaceWith(...Z){if(this.parent){let J=this,Y=!1;for(let Q of Z)if(Q===this)Y=!0;else if(Y)this.parent.insertAfter(J,Q),J=Q;else this.parent.insertBefore(J,Q);if(!Y)this.remove()}return this}root(){let Z=this;while(Z.parent&&Z.parent.type!=="document")Z=Z.parent;return Z}toJSON(Z,J){let Y={},Q=J==null;J=J||new Map;let V=0;for(let K in this){if(!Object.prototype.hasOwnProperty.call(this,K))continue;if(K==="parent"||K==="proxyCache")continue;let q=this[K];if(Array.isArray(q))Y[K]=q.map((G)=>{if(typeof G==="object"&&G.toJSON)return G.toJSON(null,J);else return G});else if(typeof q==="object"&&q.toJSON)Y[K]=q.toJSON(null,J);else if(K==="source"){let G=J.get(q.input);if(G==null)G=V,J.set(q.input,V),V++;Y[K]={end:q.end,inputId:G,start:q.start}}else Y[K]=q}if(Q)Y.inputs=[...J.keys()].map((K)=>K.toJSON());return Y}toProxy(){if(!this.proxyCache)this.proxyCache=new Proxy(this,this.getProxyProcessor());return this.proxyCache}toString(Z=kQ){if(Z.stringify)Z=Z.stringify;let J="";return Z(this,(Y)=>{J+=Y}),J}warn(Z,J,Y){let Q={node:this};for(let V in Y)Q[V]=Y[V];return Z.warn(J,Q)}get proxyOf(){return this}},kZ=EJ;EJ.default=EJ;var vQ=kZ,wJ=class extends vQ{constructor(Z){if(Z&&typeof Z.value<"u"&&typeof Z.value!=="string")Z={...Z,value:String(Z.value)};super(Z);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},vZ=wJ;wJ.default=wJ;var bQ="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",gQ=(X,Z=21)=>{return(J=Z)=>{let Y="",Q=J;while(Q--)Y+=X[Math.random()*X.length|0];return Y}},yQ=(X=21)=>{let Z="",J=X;while(J--)Z+=bQ[Math.random()*64|0];return Z},mQ={nanoid:yQ,customAlphabet:gQ},{SourceMapConsumer:C8,SourceMapGenerator:_8}=P0,{existsSync:uQ,readFileSync:cQ}=P0,{dirname:GJ,join:pQ}=P0;function lQ(X){if(Buffer)return Buffer.from(X,"base64").toString();else return window.atob(X)}var IJ=class{constructor(Z,J){if(J.map===!1)return;this.loadAnnotation(Z),this.inline=this.startWith(this.annotation,"data:");let Y=J.map?J.map.prev:void 0,Q=this.loadMap(J.from,Y);if(!this.mapFile&&J.from)this.mapFile=J.from;if(this.mapFile)this.root=GJ(this.mapFile);if(Q)this.text=Q}consumer(){if(!this.consumerCache)this.consumerCache=new C8(this.text);return this.consumerCache}decodeInline(Z){let J=/^data:application\/json;charset=utf-?8;base64,/,Y=/^data:application\/json;base64,/,Q=/^data:application\/json;charset=utf-?8,/,V=/^data:application\/json,/;if(Q.test(Z)||V.test(Z))return decodeURIComponent(Z.substr(RegExp.lastMatch.length));if(J.test(Z)||Y.test(Z))return lQ(Z.substr(RegExp.lastMatch.length));let K=Z.match(/data:application\/json;([^,]+),/)[1];throw Error("Unsupported source map encoding "+K)}getAnnotationURL(Z){return Z.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(Z){if(typeof Z!=="object")return!1;return typeof Z.mappings==="string"||typeof Z._mappings==="string"||Array.isArray(Z.sections)}loadAnnotation(Z){let J=Z.match(/\/\*\s*# sourceMappingURL=/gm);if(!J)return;let Y=Z.lastIndexOf(J.pop()),Q=Z.indexOf("*/",Y);if(Y>-1&&Q>-1)this.annotation=this.getAnnotationURL(Z.substring(Y,Q))}loadFile(Z){if(this.root=GJ(Z),uQ(Z))return this.mapFile=Z,cQ(Z,"utf-8").toString().trim()}loadMap(Z,J){if(J===!1)return!1;if(J)if(typeof J==="string")return J;else if(typeof J==="function"){let Y=J(Z);if(Y){let Q=this.loadFile(Y);if(!Q)throw Error("Unable to load previous source map: "+Y.toString());return Q}}else if(J instanceof C8)return _8.fromSourceMap(J).toString();else if(J instanceof _8)return J.toString();else if(this.isMap(J))return JSON.stringify(J);else throw Error("Unsupported previous source map format: "+J.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let Y=this.annotation;if(Z)Y=pQ(GJ(Z),Y);return this.loadFile(Y)}}startWith(Z,J){if(!Z)return!1;return Z.substr(0,J.length)===J}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},CX=IJ;IJ.default=IJ;var{SourceMapConsumer:dQ,SourceMapGenerator:iQ}=P0,{fileURLToPath:E8,pathToFileURL:a1}=P0,{isAbsolute:RJ,resolve:NJ}=P0,{nanoid:sQ}=mQ,qJ=P0,w8=K9,rQ=CX,HJ=Symbol("fromOffsetCache"),aQ=Boolean(dQ&&iQ),I8=Boolean(NJ&&RJ),_Z=class{constructor(Z,J={}){if(Z===null||typeof Z>"u"||typeof Z==="object"&&!Z.toString)throw Error(`PostCSS received ${Z} instead of CSS string`);if(this.css=Z.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾")this.hasBOM=!0,this.css=this.css.slice(1);else this.hasBOM=!1;if(J.from)if(!I8||/^\w+:\/\//.test(J.from)||RJ(J.from))this.file=J.from;else this.file=NJ(J.from);if(I8&&aQ){let Y=new rQ(this.css,J);if(Y.text){this.map=Y;let Q=Y.consumer().file;if(!this.file&&Q)this.file=this.mapResolve(Q)}}if(!this.file)this.id="<input css "+sQ(6)+">";if(this.map)this.map.file=this.from}error(Z,J,Y,Q={}){let V,K,q;if(J&&typeof J==="object"){let H=J,W=Y;if(typeof H.offset==="number"){let U=this.fromOffset(H.offset);J=U.line,Y=U.col}else J=H.line,Y=H.column;if(typeof W.offset==="number"){let U=this.fromOffset(W.offset);K=U.line,q=U.col}else K=W.line,q=W.column}else if(!Y){let H=this.fromOffset(J);J=H.line,Y=H.col}let G=this.origin(J,Y,K,q);if(G)V=new w8(Z,G.endLine===void 0?G.line:{column:G.column,line:G.line},G.endLine===void 0?G.column:{column:G.endColumn,line:G.endLine},G.source,G.file,Q.plugin);else V=new w8(Z,K===void 0?J:{column:Y,line:J},K===void 0?Y:{column:q,line:K},this.css,this.file,Q.plugin);if(V.input={column:Y,endColumn:q,endLine:K,line:J,source:this.css},this.file){if(a1)V.input.url=a1(this.file).toString();V.input.file=this.file}return V}fromOffset(Z){let J,Y;if(!this[HJ]){let V=this.css.split(`
19
- `);Y=Array(V.length);let K=0;for(let q=0,G=V.length;q<G;q++)Y[q]=K,K+=V[q].length+1;this[HJ]=Y}else Y=this[HJ];J=Y[Y.length-1];let Q=0;if(Z>=J)Q=Y.length-1;else{let V=Y.length-2,K;while(Q<V)if(K=Q+(V-Q>>1),Z<Y[K])V=K-1;else if(Z>=Y[K+1])Q=K+1;else{Q=K;break}}return{col:Z-Y[Q]+1,line:Q+1}}mapResolve(Z){if(/^\w+:\/\//.test(Z))return Z;return NJ(this.map.consumer().sourceRoot||this.map.root||".",Z)}origin(Z,J,Y,Q){if(!this.map)return!1;let V=this.map.consumer(),K=V.originalPositionFor({column:J,line:Z});if(!K.source)return!1;let q;if(typeof Y==="number")q=V.originalPositionFor({column:Q,line:Y});let G;if(RJ(K.source))G=a1(K.source);else G=new URL(K.source,this.map.consumer().sourceRoot||a1(this.map.mapFile));let H={column:K.column,endColumn:q&&q.column,endLine:q&&q.line,line:K.line,url:G.toString()};if(G.protocol==="file:")if(E8)H.file=E8(G);else throw Error("file: protocol is not available in this PostCSS build");let W=V.sourceContentFor(K.source);if(W)H.source=W;return H}toJSON(){let Z={};for(let J of["hasBOM","css","file","id"])if(this[J]!=null)Z[J]=this[J];if(this.map){if(Z.map={...this.map},Z.map.consumerCache)Z.map.consumerCache=void 0}return Z}get from(){return this.file||this.id}},bZ=_Z;_Z.default=_Z;if(qJ&&qJ.registerInput)qJ.registerInput(_Z);var{SourceMapConsumer:_X,SourceMapGenerator:DZ}=P0,{dirname:LZ,relative:EX,resolve:wX,sep:IX}=P0,{pathToFileURL:R8}=P0,oQ=bZ,nQ=Boolean(_X&&DZ),tQ=Boolean(LZ&&wX&&EX&&IX),eQ=class{constructor(Z,J,Y,Q){this.stringify=Z,this.mapOpts=Y.map||{},this.root=J,this.opts=Y,this.css=Q,this.originalCSS=Q,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let Z;if(this.isInline())Z="data:application/json;base64,"+this.toBase64(this.map.toString());else if(typeof this.mapOpts.annotation==="string")Z=this.mapOpts.annotation;else if(typeof this.mapOpts.annotation==="function")Z=this.mapOpts.annotation(this.opts.to,this.root);else Z=this.outputFile()+".map";let J=`
11
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function mQ(X){return X[0].toUpperCase()+X.slice(1)}var wJ=class X{constructor(Z){this.builder=Z}atrule(Z,J){let Y="@"+Z.name,Q=Z.params?this.rawValue(Z,"params"):"";if(typeof Z.raws.afterName!=="undefined")Y+=Z.raws.afterName;else if(Q)Y+=" ";if(Z.nodes)this.block(Z,Y+Q);else{let V=(Z.raws.between||"")+(J?";":"");this.builder(Y+Q+V,Z)}}beforeAfter(Z,J){let Y;if(Z.type==="decl")Y=this.raw(Z,null,"beforeDecl");else if(Z.type==="comment")Y=this.raw(Z,null,"beforeComment");else if(J==="before")Y=this.raw(Z,null,"beforeRule");else Y=this.raw(Z,null,"beforeClose");let Q=Z.parent,V=0;while(Q&&Q.type!=="root")V+=1,Q=Q.parent;if(Y.includes(`
12
+ `)){let G=this.raw(Z,null,"indent");if(G.length)for(let K=0;K<V;K++)Y+=G}return Y}block(Z,J){let Y=this.raw(Z,"between","beforeOpen");this.builder(J+Y+"{",Z,"start");let Q;if(Z.nodes&&Z.nodes.length)this.body(Z),Q=this.raw(Z,"after");else Q=this.raw(Z,"after","emptyBody");if(Q)this.builder(Q);this.builder("}",Z,"end")}body(Z){let J=Z.nodes.length-1;while(J>0){if(Z.nodes[J].type!=="comment")break;J-=1}let Y=this.raw(Z,"semicolon");for(let Q=0;Q<Z.nodes.length;Q++){let V=Z.nodes[Q],G=this.raw(V,"before");if(G)this.builder(G);this.stringify(V,J!==Q||Y)}}comment(Z){let J=this.raw(Z,"left","commentLeft"),Y=this.raw(Z,"right","commentRight");this.builder("/*"+J+Z.text+Y+"*/",Z)}decl(Z,J){let Y=this.raw(Z,"between","colon"),Q=Z.prop+Y+this.rawValue(Z,"value");if(Z.important)Q+=Z.raws.important||" !important";if(J)Q+=";";this.builder(Q,Z)}document(Z){this.body(Z)}raw(Z,J,Y){let Q;if(!Y)Y=J;if(J){if(Q=Z.raws[J],typeof Q!=="undefined")return Q}let V=Z.parent;if(Y==="before"){if(!V||V.type==="root"&&V.first===Z)return"";if(V&&V.type==="document")return""}if(!V)return TX[Y];let G=Z.root();if(!G.rawCache)G.rawCache={};if(typeof G.rawCache[Y]!=="undefined")return G.rawCache[Y];if(Y==="before"||Y==="after")return this.beforeAfter(Z,Y);else{let K="raw"+mQ(Y);if(this[K])Q=this[K](G,Z);else G.walk((q)=>{if(Q=q.raws[J],typeof Q!=="undefined")return!1})}if(typeof Q==="undefined")Q=TX[Y];return G.rawCache[Y]=Q,Q}rawBeforeClose(Z){let J;if(Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length>0){if(typeof Y.raws.after!=="undefined"){if(J=Y.raws.after,J.includes(`
13
+ `))J=J.replace(/[^\n]+$/,"");return!1}}}),J)J=J.replace(/\S/g,"");return J}rawBeforeComment(Z,J){let Y;if(Z.walkComments((Q)=>{if(typeof Q.raws.before!=="undefined"){if(Y=Q.raws.before,Y.includes(`
14
+ `))Y=Y.replace(/[^\n]+$/,"");return!1}}),typeof Y==="undefined")Y=this.raw(J,null,"beforeDecl");else if(Y)Y=Y.replace(/\S/g,"");return Y}rawBeforeDecl(Z,J){let Y;if(Z.walkDecls((Q)=>{if(typeof Q.raws.before!=="undefined"){if(Y=Q.raws.before,Y.includes(`
15
+ `))Y=Y.replace(/[^\n]+$/,"");return!1}}),typeof Y==="undefined")Y=this.raw(J,null,"beforeRule");else if(Y)Y=Y.replace(/\S/g,"");return Y}rawBeforeOpen(Z){let J;return Z.walk((Y)=>{if(Y.type!=="decl"){if(J=Y.raws.between,typeof J!=="undefined")return!1}}),J}rawBeforeRule(Z){let J;if(Z.walk((Y)=>{if(Y.nodes&&(Y.parent!==Z||Z.first!==Y)){if(typeof Y.raws.before!=="undefined"){if(J=Y.raws.before,J.includes(`
16
+ `))J=J.replace(/[^\n]+$/,"");return!1}}}),J)J=J.replace(/\S/g,"");return J}rawColon(Z){let J;return Z.walkDecls((Y)=>{if(typeof Y.raws.between!=="undefined")return J=Y.raws.between.replace(/[^\s:]/g,""),!1}),J}rawEmptyBody(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length===0){if(J=Y.raws.after,typeof J!=="undefined")return!1}}),J}rawIndent(Z){if(Z.raws.indent)return Z.raws.indent;let J;return Z.walk((Y)=>{let Q=Y.parent;if(Q&&Q!==Z&&Q.parent&&Q.parent===Z){if(typeof Y.raws.before!=="undefined"){let V=Y.raws.before.split(`
17
+ `);return J=V[V.length-1],J=J.replace(/\S/g,""),!1}}}),J}rawSemicolon(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length&&Y.last.type==="decl"){if(J=Y.raws.semicolon,typeof J!=="undefined")return!1}}),J}rawValue(Z,J){let Y=Z[J],Q=Z.raws[J];if(Q&&Q.value===Y)return Q.raw;return Y}root(Z){if(this.body(Z),Z.raws.after)this.builder(Z.raws.after)}rule(Z){if(this.block(Z,this.rawValue(Z,"selector")),Z.raws.ownSemicolon)this.builder(Z.raws.ownSemicolon,Z,"end")}stringify(Z,J){if(!this[Z.type])throw new Error("Unknown AST node type "+Z.type+". Maybe you need to change PostCSS stringifier.");this[Z.type](Z,J)}},T8=wJ;wJ.default=wJ;var uQ=T8;function EJ(X,Z){new uQ(Z).stringify(X)}var vZ=EJ;EJ.default=EJ;var{isClean:o1,my:cQ}=S1,pQ=W9,lQ=T8,dQ=vZ;function RJ(X,Z){let J=new X.constructor;for(let Y in X){if(!Object.prototype.hasOwnProperty.call(X,Y))continue;if(Y==="proxyCache")continue;let Q=X[Y],V=typeof Q;if(Y==="parent"&&V==="object"){if(Z)J[Y]=Z}else if(Y==="source")J[Y]=Q;else if(Array.isArray(Q))J[Y]=Q.map((G)=>RJ(G,J));else{if(V==="object"&&Q!==null)Q=RJ(Q);J[Y]=Q}}return J}var IJ=class X{constructor(Z={}){this.raws={},this[o1]=!1,this[cQ]=!0;for(let J in Z)if(J==="nodes"){this.nodes=[];for(let Y of Z[J])if(typeof Y.clone==="function")this.append(Y.clone());else this.append(Y)}else this[J]=Z[J]}addToError(Z){if(Z.postcssNode=this,Z.stack&&this.source&&/\n\s{4}at /.test(Z.stack)){let J=this.source;Z.stack=Z.stack.replace(/\n\s{4}at /,`$&${J.input.from}:${J.start.line}:${J.start.column}$&`)}return Z}after(Z){return this.parent.insertAfter(this,Z),this}assign(Z={}){for(let J in Z)this[J]=Z[J];return this}before(Z){return this.parent.insertBefore(this,Z),this}cleanRaws(Z){if(delete this.raws.before,delete this.raws.after,!Z)delete this.raws.between}clone(Z={}){let J=RJ(this);for(let Y in Z)J[Y]=Z[Y];return J}cloneAfter(Z={}){let J=this.clone(Z);return this.parent.insertAfter(this,J),J}cloneBefore(Z={}){let J=this.clone(Z);return this.parent.insertBefore(this,J),J}error(Z,J={}){if(this.source){let{end:Y,start:Q}=this.rangeBy(J);return this.source.input.error(Z,{column:Q.column,line:Q.line},{column:Y.column,line:Y.line},J)}return new pQ(Z)}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(J==="root")return()=>Z.root().toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="prop"||J==="value"||J==="name"||J==="params"||J==="important"||J==="text")Z.markDirty();return!0}}}markDirty(){if(this[o1]){this[o1]=!1;let Z=this;while(Z=Z.parent)Z[o1]=!1}}next(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z+1]}positionBy(Z,J){let Y=this.source.start;if(Z.index)Y=this.positionInside(Z.index,J);else if(Z.word){J=this.toString();let Q=J.indexOf(Z.word);if(Q!==-1)Y=this.positionInside(Q,J)}return Y}positionInside(Z,J){let Y=J||this.toString(),Q=this.source.start.column,V=this.source.start.line;for(let G=0;G<Z;G++)if(Y[G]===`
18
+ `)Q=1,V+=1;else Q+=1;return{column:Q,line:V}}prev(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z-1]}rangeBy(Z){let J={column:this.source.start.column,line:this.source.start.line},Y=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:J.column+1,line:J.line};if(Z.word){let Q=this.toString(),V=Q.indexOf(Z.word);if(V!==-1)J=this.positionInside(V,Q),Y=this.positionInside(V+Z.word.length,Q)}else{if(Z.start)J={column:Z.start.column,line:Z.start.line};else if(Z.index)J=this.positionInside(Z.index);if(Z.end)Y={column:Z.end.column,line:Z.end.line};else if(typeof Z.endIndex==="number")Y=this.positionInside(Z.endIndex);else if(Z.index)Y=this.positionInside(Z.index+1)}if(Y.line<J.line||Y.line===J.line&&Y.column<=J.column)Y={column:J.column+1,line:J.line};return{end:Y,start:J}}raw(Z,J){return new lQ().raw(this,Z,J)}remove(){if(this.parent)this.parent.removeChild(this);return this.parent=void 0,this}replaceWith(...Z){if(this.parent){let J=this,Y=!1;for(let Q of Z)if(Q===this)Y=!0;else if(Y)this.parent.insertAfter(J,Q),J=Q;else this.parent.insertBefore(J,Q);if(!Y)this.remove()}return this}root(){let Z=this;while(Z.parent&&Z.parent.type!=="document")Z=Z.parent;return Z}toJSON(Z,J){let Y={},Q=J==null;J=J||new Map;let V=0;for(let G in this){if(!Object.prototype.hasOwnProperty.call(this,G))continue;if(G==="parent"||G==="proxyCache")continue;let K=this[G];if(Array.isArray(K))Y[G]=K.map((q)=>{if(typeof q==="object"&&q.toJSON)return q.toJSON(null,J);else return q});else if(typeof K==="object"&&K.toJSON)Y[G]=K.toJSON(null,J);else if(G==="source"){let q=J.get(K.input);if(q==null)q=V,J.set(K.input,V),V++;Y[G]={end:K.end,inputId:q,start:K.start}}else Y[G]=K}if(Q)Y.inputs=[...J.keys()].map((G)=>G.toJSON());return Y}toProxy(){if(!this.proxyCache)this.proxyCache=new Proxy(this,this.getProxyProcessor());return this.proxyCache}toString(Z=dQ){if(Z.stringify)Z=Z.stringify;let J="";return Z(this,(Y)=>{J+=Y}),J}warn(Z,J,Y){let Q={node:this};for(let V in Y)Q[V]=Y[V];return Z.warn(J,Q)}get proxyOf(){return this}},bZ=IJ;IJ.default=IJ;var iQ=bZ,NJ=class X extends iQ{constructor(Z){if(Z&&typeof Z.value!=="undefined"&&typeof Z.value!=="string")Z={...Z,value:String(Z.value)};super(Z);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},gZ=NJ;NJ.default=NJ;var rQ="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",aQ=(X,Z=21)=>{return(J=Z)=>{let Y="",Q=J;while(Q--)Y+=X[Math.random()*X.length|0];return Y}},sQ=(X=21)=>{let Z="",J=X;while(J--)Z+=rQ[Math.random()*64|0];return Z},oQ={nanoid:sQ,customAlphabet:aQ},{SourceMapConsumer:$X,SourceMapGenerator:SX}=P0,{existsSync:nQ,readFileSync:tQ}=P0,{dirname:HJ,join:eQ}=P0;function ZV(X){if(Buffer)return Buffer.from(X,"base64").toString();else return window.atob(X)}var TJ=class X{constructor(Z,J){if(J.map===!1)return;this.loadAnnotation(Z),this.inline=this.startWith(this.annotation,"data:");let Y=J.map?J.map.prev:void 0,Q=this.loadMap(J.from,Y);if(!this.mapFile&&J.from)this.mapFile=J.from;if(this.mapFile)this.root=HJ(this.mapFile);if(Q)this.text=Q}consumer(){if(!this.consumerCache)this.consumerCache=new $X(this.text);return this.consumerCache}decodeInline(Z){let J=/^data:application\/json;charset=utf-?8;base64,/,Y=/^data:application\/json;base64,/,Q=/^data:application\/json;charset=utf-?8,/,V=/^data:application\/json,/;if(Q.test(Z)||V.test(Z))return decodeURIComponent(Z.substr(RegExp.lastMatch.length));if(J.test(Z)||Y.test(Z))return ZV(Z.substr(RegExp.lastMatch.length));let G=Z.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+G)}getAnnotationURL(Z){return Z.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(Z){if(typeof Z!=="object")return!1;return typeof Z.mappings==="string"||typeof Z._mappings==="string"||Array.isArray(Z.sections)}loadAnnotation(Z){let J=Z.match(/\/\*\s*# sourceMappingURL=/gm);if(!J)return;let Y=Z.lastIndexOf(J.pop()),Q=Z.indexOf("*/",Y);if(Y>-1&&Q>-1)this.annotation=this.getAnnotationURL(Z.substring(Y,Q))}loadFile(Z){if(this.root=HJ(Z),nQ(Z))return this.mapFile=Z,tQ(Z,"utf-8").toString().trim()}loadMap(Z,J){if(J===!1)return!1;if(J)if(typeof J==="string")return J;else if(typeof J==="function"){let Y=J(Z);if(Y){let Q=this.loadFile(Y);if(!Q)throw new Error("Unable to load previous source map: "+Y.toString());return Q}}else if(J instanceof $X)return SX.fromSourceMap(J).toString();else if(J instanceof SX)return J.toString();else if(this.isMap(J))return JSON.stringify(J);else throw new Error("Unsupported previous source map format: "+J.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let Y=this.annotation;if(Z)Y=eQ(HJ(Z),Y);return this.loadFile(Y)}}startWith(Z,J){if(!Z)return!1;return Z.substr(0,J.length)===J}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},$8=TJ;TJ.default=TJ;var{SourceMapConsumer:JV,SourceMapGenerator:XV}=P0,{fileURLToPath:xX,pathToFileURL:n1}=P0,{isAbsolute:$J,resolve:SJ}=P0,{nanoid:YV}=oQ,UJ=P0,fX=W9,QV=$8,zJ=Symbol("fromOffsetCache"),VV=Boolean(JV&&XV),hX=Boolean(SJ&&$J),EZ=class X{constructor(Z,J={}){if(Z===null||typeof Z==="undefined"||typeof Z==="object"&&!Z.toString)throw new Error(`PostCSS received ${Z} instead of CSS string`);if(this.css=Z.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾")this.hasBOM=!0,this.css=this.css.slice(1);else this.hasBOM=!1;if(J.from)if(!hX||/^\w+:\/\//.test(J.from)||$J(J.from))this.file=J.from;else this.file=SJ(J.from);if(hX&&VV){let Y=new QV(this.css,J);if(Y.text){this.map=Y;let Q=Y.consumer().file;if(!this.file&&Q)this.file=this.mapResolve(Q)}}if(!this.file)this.id="<input css "+YV(6)+">";if(this.map)this.map.file=this.from}error(Z,J,Y,Q={}){let V,G,K;if(J&&typeof J==="object"){let W=J,H=Y;if(typeof W.offset==="number"){let z=this.fromOffset(W.offset);J=z.line,Y=z.col}else J=W.line,Y=W.column;if(typeof H.offset==="number"){let z=this.fromOffset(H.offset);G=z.line,K=z.col}else G=H.line,K=H.column}else if(!Y){let W=this.fromOffset(J);J=W.line,Y=W.col}let q=this.origin(J,Y,G,K);if(q)V=new fX(Z,q.endLine===void 0?q.line:{column:q.column,line:q.line},q.endLine===void 0?q.column:{column:q.endColumn,line:q.endLine},q.source,q.file,Q.plugin);else V=new fX(Z,G===void 0?J:{column:Y,line:J},G===void 0?Y:{column:K,line:G},this.css,this.file,Q.plugin);if(V.input={column:Y,endColumn:K,endLine:G,line:J,source:this.css},this.file){if(n1)V.input.url=n1(this.file).toString();V.input.file=this.file}return V}fromOffset(Z){let J,Y;if(!this[zJ]){let V=this.css.split(`
19
+ `);Y=new Array(V.length);let G=0;for(let K=0,q=V.length;K<q;K++)Y[K]=G,G+=V[K].length+1;this[zJ]=Y}else Y=this[zJ];J=Y[Y.length-1];let Q=0;if(Z>=J)Q=Y.length-1;else{let V=Y.length-2,G;while(Q<V)if(G=Q+(V-Q>>1),Z<Y[G])V=G-1;else if(Z>=Y[G+1])Q=G+1;else{Q=G;break}}return{col:Z-Y[Q]+1,line:Q+1}}mapResolve(Z){if(/^\w+:\/\//.test(Z))return Z;return SJ(this.map.consumer().sourceRoot||this.map.root||".",Z)}origin(Z,J,Y,Q){if(!this.map)return!1;let V=this.map.consumer(),G=V.originalPositionFor({column:J,line:Z});if(!G.source)return!1;let K;if(typeof Y==="number")K=V.originalPositionFor({column:Q,line:Y});let q;if($J(G.source))q=n1(G.source);else q=new URL(G.source,this.map.consumer().sourceRoot||n1(this.map.mapFile));let W={column:G.column,endColumn:K&&K.column,endLine:K&&K.line,line:G.line,url:q.toString()};if(q.protocol==="file:")if(xX)W.file=xX(q);else throw new Error("file: protocol is not available in this PostCSS build");let H=V.sourceContentFor(G.source);if(H)W.source=H;return W}toJSON(){let Z={};for(let J of["hasBOM","css","file","id"])if(this[J]!=null)Z[J]=this[J];if(this.map){if(Z.map={...this.map},Z.map.consumerCache)Z.map.consumerCache=void 0}return Z}get from(){return this.file||this.id}},yZ=EZ;EZ.default=EZ;if(UJ&&UJ.registerInput)UJ.registerInput(EZ);var{SourceMapConsumer:S8,SourceMapGenerator:PZ}=P0,{dirname:FZ,relative:x8,resolve:f8,sep:h8}=P0,{pathToFileURL:kX}=P0,GV=yZ,qV=Boolean(S8&&PZ),KV=Boolean(FZ&&f8&&x8&&h8),WV=class X{constructor(Z,J,Y,Q){this.stringify=Z,this.mapOpts=Y.map||{},this.root=J,this.opts=Y,this.css=Q,this.originalCSS=Q,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let Z;if(this.isInline())Z="data:application/json;base64,"+this.toBase64(this.map.toString());else if(typeof this.mapOpts.annotation==="string")Z=this.mapOpts.annotation;else if(typeof this.mapOpts.annotation==="function")Z=this.mapOpts.annotation(this.opts.to,this.root);else Z=this.outputFile()+".map";let J=`
20
20
  `;if(this.css.includes(`\r
21
21
  `))J=`\r
22
- `;this.css+=J+"/*# sourceMappingURL="+Z+" */"}applyPrevMaps(){for(let Z of this.previous()){let J=this.toUrl(this.path(Z.file)),Y=Z.root||LZ(Z.file),Q;if(this.mapOpts.sourcesContent===!1){if(Q=new _X(Z.text),Q.sourcesContent)Q.sourcesContent=null}else Q=Z.consumer();this.map.applySourceMap(Q,J,this.toUrl(this.path(Y)))}}clearAnnotation(){if(this.mapOpts.annotation===!1)return;if(this.root){let Z;for(let J=this.root.nodes.length-1;J>=0;J--){if(Z=this.root.nodes[J],Z.type!=="comment")continue;if(Z.text.indexOf("# sourceMappingURL=")===0)this.root.removeChild(J)}}else if(this.css)this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,"")}generate(){if(this.clearAnnotation(),tQ&&nQ&&this.isMap())return this.generateMap();else{let Z="";return this.stringify(this.root,(J)=>{Z+=J}),[Z]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let Z=this.previous()[0].consumer();Z.file=this.outputFile(),this.map=DZ.fromSourceMap(Z,{ignoreInvalidMapping:!0})}else this.map=new DZ({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});if(this.isSourcesContent())this.setSourcesContent();if(this.root&&this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline())return[this.css];else return[this.css,this.map]}generateString(){this.css="",this.map=new DZ({file:this.outputFile(),ignoreInvalidMapping:!0});let Z=1,J=1,Y="<no source>",Q={generated:{column:0,line:0},original:{column:0,line:0},source:""},V,K;this.stringify(this.root,(q,G,H)=>{if(this.css+=q,G&&H!=="end")if(Q.generated.line=Z,Q.generated.column=J-1,G.source&&G.source.start)Q.source=this.sourcePath(G),Q.original.line=G.source.start.line,Q.original.column=G.source.start.column-1,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,this.map.addMapping(Q);if(V=q.match(/\n/g),V)Z+=V.length,K=q.lastIndexOf(`
23
- `),J=q.length-K;else J+=q.length;if(G&&H!=="start"){let W=G.parent||{raws:{}};if(!(G.type==="decl"||G.type==="atrule"&&!G.nodes)||G!==W.last||W.raws.semicolon)if(G.source&&G.source.end)Q.source=this.sourcePath(G),Q.original.line=G.source.end.line,Q.original.column=G.source.end.column-1,Q.generated.line=Z,Q.generated.column=J-2,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,Q.generated.line=Z,Q.generated.column=J-1,this.map.addMapping(Q)}})}isAnnotation(){if(this.isInline())return!0;if(typeof this.mapOpts.annotation<"u")return this.mapOpts.annotation;if(this.previous().length)return this.previous().some((Z)=>Z.annotation);return!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let Z=this.mapOpts.annotation;if(typeof Z<"u"&&Z!==!0)return!1;if(this.previous().length)return this.previous().some((J)=>J.inline);return!0}isMap(){if(typeof this.opts.map<"u")return!!this.opts.map;return this.previous().length>0}isSourcesContent(){if(typeof this.mapOpts.sourcesContent<"u")return this.mapOpts.sourcesContent;if(this.previous().length)return this.previous().some((Z)=>Z.withContent());return!0}outputFile(){if(this.opts.to)return this.path(this.opts.to);else if(this.opts.from)return this.path(this.opts.from);else return"to.css"}path(Z){if(this.mapOpts.absolute)return Z;if(Z.charCodeAt(0)===60)return Z;if(/^\w+:\/\//.test(Z))return Z;let J=this.memoizedPaths.get(Z);if(J)return J;let Y=this.opts.to?LZ(this.opts.to):".";if(typeof this.mapOpts.annotation==="string")Y=LZ(wX(Y,this.mapOpts.annotation));let Q=EX(Y,Z);return this.memoizedPaths.set(Z,Q),Q}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((Z)=>{if(Z.source&&Z.source.input.map){let J=Z.source.input.map;if(!this.previousMaps.includes(J))this.previousMaps.push(J)}});else{let Z=new oQ(this.originalCSS,this.opts);if(Z.map)this.previousMaps.push(Z.map)}return this.previousMaps}setSourcesContent(){let Z={};if(this.root)this.root.walk((J)=>{if(J.source){let Y=J.source.input.from;if(Y&&!Z[Y]){Z[Y]=!0;let Q=this.usesFileUrls?this.toFileUrl(Y):this.toUrl(this.path(Y));this.map.setSourceContent(Q,J.source.input.css)}}});else if(this.css){let J=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(J,this.css)}}sourcePath(Z){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);else if(this.usesFileUrls)return this.toFileUrl(Z.source.input.from);else return this.toUrl(this.path(Z.source.input.from))}toBase64(Z){if(Buffer)return Buffer.from(Z).toString("base64");else return window.btoa(unescape(encodeURIComponent(Z)))}toFileUrl(Z){let J=this.memoizedFileURLs.get(Z);if(J)return J;if(R8){let Y=R8(Z).toString();return this.memoizedFileURLs.set(Z,Y),Y}else throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(Z){let J=this.memoizedURLs.get(Z);if(J)return J;if(IX==="\\")Z=Z.replace(/\\/g,"/");let Y=encodeURI(Z).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(Z,Y),Y}},RX=eQ,ZV=kZ,TJ=class extends ZV{constructor(Z){super(Z);this.type="comment"}},gZ=TJ;TJ.default=TJ;var{isClean:NX,my:TX}=$1,$X=vZ,SX=gZ,JV=kZ,xX,G9,q9,fX;function hX(X){return X.map((Z)=>{if(Z.nodes)Z.nodes=hX(Z.nodes);return delete Z.source,Z})}function kX(X){if(X[NX]=!1,X.proxyOf.nodes)for(let Z of X.proxyOf.nodes)kX(Z)}var I0=class X extends JV{append(...Z){for(let J of Z){let Y=this.normalize(J,this.last);for(let Q of Y)this.proxyOf.nodes.push(Q)}return this.markDirty(),this}cleanRaws(Z){if(super.cleanRaws(Z),this.nodes)for(let J of this.nodes)J.cleanRaws(Z)}each(Z){if(!this.proxyOf.nodes)return;let J=this.getIterator(),Y,Q;while(this.indexes[J]<this.proxyOf.nodes.length){if(Y=this.indexes[J],Q=Z(this.proxyOf.nodes[Y],Y),Q===!1)break;this.indexes[J]+=1}return delete this.indexes[J],Q}every(Z){return this.nodes.every(Z)}getIterator(){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;let Z=this.lastEach;return this.indexes[Z]=0,Z}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(!Z[J])return Z[J];else if(J==="each"||typeof J==="string"&&J.startsWith("walk"))return(...Y)=>{return Z[J](...Y.map((Q)=>{if(typeof Q==="function")return(V,K)=>Q(V.toProxy(),K);else return Q}))};else if(J==="every"||J==="some")return(Y)=>{return Z[J]((Q,...V)=>Y(Q.toProxy(),...V))};else if(J==="root")return()=>Z.root().toProxy();else if(J==="nodes")return Z.nodes.map((Y)=>Y.toProxy());else if(J==="first"||J==="last")return Z[J].toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="name"||J==="params"||J==="selector")Z.markDirty();return!0}}}index(Z){if(typeof Z==="number")return Z;if(Z.proxyOf)Z=Z.proxyOf;return this.proxyOf.nodes.indexOf(Z)}insertAfter(Z,J){let Y=this.index(Z),Q=this.normalize(J,this.proxyOf.nodes[Y]).reverse();Y=this.index(Z);for(let K of Q)this.proxyOf.nodes.splice(Y+1,0,K);let V;for(let K in this.indexes)if(V=this.indexes[K],Y<V)this.indexes[K]=V+Q.length;return this.markDirty(),this}insertBefore(Z,J){let Y=this.index(Z),Q=Y===0?"prepend":!1,V=this.normalize(J,this.proxyOf.nodes[Y],Q).reverse();Y=this.index(Z);for(let q of V)this.proxyOf.nodes.splice(Y,0,q);let K;for(let q in this.indexes)if(K=this.indexes[q],Y<=K)this.indexes[q]=K+V.length;return this.markDirty(),this}normalize(Z,J){if(typeof Z==="string")Z=hX(xX(Z).nodes);else if(typeof Z>"u")Z=[];else if(Array.isArray(Z)){Z=Z.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type==="root"&&this.type!=="document"){Z=Z.nodes.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type)Z=[Z];else if(Z.prop){if(typeof Z.value>"u")throw Error("Value field is missed in node creation");else if(typeof Z.value!=="string")Z.value=String(Z.value);Z=[new $X(Z)]}else if(Z.selector)Z=[new G9(Z)];else if(Z.name)Z=[new q9(Z)];else if(Z.text)Z=[new SX(Z)];else throw Error("Unknown node type in node creation");return Z.map((Q)=>{if(!Q[TX])X.rebuild(Q);if(Q=Q.proxyOf,Q.parent)Q.parent.removeChild(Q);if(Q[NX])kX(Q);if(typeof Q.raws.before>"u"){if(J&&typeof J.raws.before<"u")Q.raws.before=J.raws.before.replace(/\S/g,"")}return Q.parent=this.proxyOf,Q})}prepend(...Z){Z=Z.reverse();for(let J of Z){let Y=this.normalize(J,this.first,"prepend").reverse();for(let Q of Y)this.proxyOf.nodes.unshift(Q);for(let Q in this.indexes)this.indexes[Q]=this.indexes[Q]+Y.length}return this.markDirty(),this}push(Z){return Z.parent=this,this.proxyOf.nodes.push(Z),this}removeAll(){for(let Z of this.proxyOf.nodes)Z.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(Z){Z=this.index(Z),this.proxyOf.nodes[Z].parent=void 0,this.proxyOf.nodes.splice(Z,1);let J;for(let Y in this.indexes)if(J=this.indexes[Y],J>=Z)this.indexes[Y]=J-1;return this.markDirty(),this}replaceValues(Z,J,Y){if(!Y)Y=J,J={};return this.walkDecls((Q)=>{if(J.props&&!J.props.includes(Q.prop))return;if(J.fast&&!Q.value.includes(J.fast))return;Q.value=Q.value.replace(Z,Y)}),this.markDirty(),this}some(Z){return this.nodes.some(Z)}walk(Z){return this.each((J,Y)=>{let Q;try{Q=Z(J,Y)}catch(V){throw J.addToError(V)}if(Q!==!1&&J.walk)Q=J.walk(Z);return Q})}walkAtRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="atrule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Z.test(Y.name))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Y.name===Z)return J(Y,Q)})}walkComments(Z){return this.walk((J,Y)=>{if(J.type==="comment")return Z(J,Y)})}walkDecls(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="decl")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="decl"&&Z.test(Y.prop))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="decl"&&Y.prop===Z)return J(Y,Q)})}walkRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="rule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="rule"&&Z.test(Y.selector))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="rule"&&Y.selector===Z)return J(Y,Q)})}get first(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};I0.registerParse=(X)=>{xX=X};I0.registerRule=(X)=>{G9=X};I0.registerAtRule=(X)=>{q9=X};I0.registerRoot=(X)=>{fX=X};var y0=I0;I0.default=I0;I0.rebuild=(X)=>{if(X.type==="atrule")Object.setPrototypeOf(X,q9.prototype);else if(X.type==="rule")Object.setPrototypeOf(X,G9.prototype);else if(X.type==="decl")Object.setPrototypeOf(X,$X.prototype);else if(X.type==="comment")Object.setPrototypeOf(X,SX.prototype);else if(X.type==="root")Object.setPrototypeOf(X,fX.prototype);if(X[TX]=!0,X.nodes)X.nodes.forEach((Z)=>{I0.rebuild(Z)})};var XV=y0,vX,bX,M1=class extends XV{constructor(Z){super({type:"document",...Z});if(!this.nodes)this.nodes=[]}toResult(Z={}){return new vX(new bX,this,Z).stringify()}};M1.registerLazyResult=(X)=>{vX=X};M1.registerProcessor=(X)=>{bX=X};var H9=M1;M1.default=M1;var N8={},gX=function(Z){if(N8[Z])return;if(N8[Z]=!0,typeof console<"u"&&console.warn)console.warn(Z)},$J=class{constructor(Z,J={}){if(this.type="warning",this.text=Z,J.node&&J.node.source){let Y=J.node.rangeBy(J);this.line=Y.start.line,this.column=Y.start.column,this.endLine=Y.end.line,this.endColumn=Y.end.column}for(let Y in J)this[Y]=J[Y]}toString(){if(this.node)return this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message;if(this.plugin)return this.plugin+": "+this.text;return this.text}},yX=$J;$J.default=$J;var YV=yX,SJ=class{constructor(Z,J,Y){this.processor=Z,this.messages=[],this.root=J,this.opts=Y,this.css=void 0,this.map=void 0}toString(){return this.css}warn(Z,J={}){if(!J.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin)J.plugin=this.lastPlugin.postcssPlugin}let Y=new YV(Z,J);return this.messages.push(Y),Y}warnings(){return this.messages.filter((Z)=>Z.type==="warning")}get content(){return this.css}},W9=SJ;SJ.default=SJ;var WJ=39,T8=34,o1=92,$8=47,n1=10,B1=32,t1=12,e1=9,ZZ=13,QV=91,VV=93,KV=40,GV=41,qV=123,HV=125,WV=59,UV=42,zV=58,BV=64,JZ=/[\t\n\f\r "#'()/;[\\\]{}]/g,XZ=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,jV=/.[\r\n"'(/\\]/,S8=/[\da-f]/i,DV=function(Z,J={}){let Y=Z.css.valueOf(),Q=J.ignoreErrors,V,K,q,G,H,W,U,D,B,L,j=Y.length,z=0,A=[],O=[];function P(){return z}function C(M){throw Z.error("Unclosed "+M,z)}function E(){return O.length===0&&z>=j}function _(M){if(O.length)return O.pop();if(z>=j)return;let g=M?M.ignoreUnclosed:!1;switch(V=Y.charCodeAt(z),V){case n1:case B1:case e1:case ZZ:case t1:{K=z;do K+=1,V=Y.charCodeAt(K);while(V===B1||V===n1||V===e1||V===ZZ||V===t1);L=["space",Y.slice(z,K)],z=K-1;break}case QV:case VV:case qV:case HV:case zV:case WV:case GV:{let f=String.fromCharCode(V);L=[f,f,z];break}case KV:{if(D=A.length?A.pop()[1]:"",B=Y.charCodeAt(z+1),D==="url"&&B!==WJ&&B!==T8&&B!==B1&&B!==n1&&B!==e1&&B!==t1&&B!==ZZ){K=z;do{if(W=!1,K=Y.indexOf(")",K+1),K===-1)if(Q||g){K=z;break}else C("bracket");U=K;while(Y.charCodeAt(U-1)===o1)U-=1,W=!W}while(W);L=["brackets",Y.slice(z,K+1),z,K],z=K}else if(K=Y.indexOf(")",z+1),G=Y.slice(z,K+1),K===-1||jV.test(G))L=["(","(",z];else L=["brackets",G,z,K],z=K;break}case WJ:case T8:{q=V===WJ?"'":'"',K=z;do{if(W=!1,K=Y.indexOf(q,K+1),K===-1)if(Q||g){K=z+1;break}else C("string");U=K;while(Y.charCodeAt(U-1)===o1)U-=1,W=!W}while(W);L=["string",Y.slice(z,K+1),z,K],z=K;break}case BV:{if(JZ.lastIndex=z+1,JZ.test(Y),JZ.lastIndex===0)K=Y.length-1;else K=JZ.lastIndex-2;L=["at-word",Y.slice(z,K+1),z,K],z=K;break}case o1:{K=z,H=!0;while(Y.charCodeAt(K+1)===o1)K+=1,H=!H;if(V=Y.charCodeAt(K+1),H&&V!==$8&&V!==B1&&V!==n1&&V!==e1&&V!==ZZ&&V!==t1){if(K+=1,S8.test(Y.charAt(K))){while(S8.test(Y.charAt(K+1)))K+=1;if(Y.charCodeAt(K+1)===B1)K+=1}}L=["word",Y.slice(z,K+1),z,K],z=K;break}default:{if(V===$8&&Y.charCodeAt(z+1)===UV){if(K=Y.indexOf("*/",z+2)+1,K===0)if(Q||g)K=Y.length;else C("comment");L=["comment",Y.slice(z,K+1),z,K],z=K}else{if(XZ.lastIndex=z+1,XZ.test(Y),XZ.lastIndex===0)K=Y.length-1;else K=XZ.lastIndex-2;L=["word",Y.slice(z,K+1),z,K],A.push(L),z=K}break}}return z++,L}function w(M){O.push(M)}return{back:w,endOfFile:E,nextToken:_,position:P}},mX=y0,EZ=class extends mX{constructor(Z){super(Z);this.type="atrule"}append(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...Z)}prepend(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...Z)}},U9=EZ;EZ.default=EZ;mX.registerAtRule(EZ);var uX=y0,cX,pX,e0=class extends uX{constructor(Z){super(Z);if(this.type="root",!this.nodes)this.nodes=[]}normalize(Z,J,Y){let Q=super.normalize(Z);if(J){if(Y==="prepend")if(this.nodes.length>1)J.raws.before=this.nodes[1].raws.before;else delete J.raws.before;else if(this.first!==J)for(let V of Q)V.raws.before=J.raws.before}return Q}removeChild(Z,J){let Y=this.index(Z);if(!J&&Y===0&&this.nodes.length>1)this.nodes[1].raws.before=this.nodes[Y].raws.before;return super.removeChild(Z)}toResult(Z={}){return new cX(new pX,this,Z).stringify()}};e0.registerLazyResult=(X)=>{cX=X};e0.registerProcessor=(X)=>{pX=X};var S1=e0;e0.default=e0;uX.registerRoot(e0);var C1={comma(X){return C1.split(X,[","],!0)},space(X){let Z=[" ",`
24
- `,"\t"];return C1.split(X,Z)},split(X,Z,J){let Y=[],Q="",V=!1,K=0,q=!1,G="",H=!1;for(let W of X){if(H)H=!1;else if(W==="\\")H=!0;else if(q){if(W===G)q=!1}else if(W==='"'||W==="'")q=!0,G=W;else if(W==="(")K+=1;else if(W===")"){if(K>0)K-=1}else if(K===0){if(Z.includes(W))V=!0}if(V){if(Q!=="")Y.push(Q.trim());Q="",V=!1}else Q+=W}if(J||Q!=="")Y.push(Q.trim());return Y}},lX=C1;C1.default=C1;var dX=y0,LV=lX,wZ=class extends dX{constructor(Z){super(Z);if(this.type="rule",!this.nodes)this.nodes=[]}get selectors(){return LV.comma(this.selector)}set selectors(Z){let J=this.selector?this.selector.match(/,\s*/):null,Y=J?J[0]:","+this.raw("between","beforeOpen");this.selector=Z.join(Y)}},z9=wZ;wZ.default=wZ;dX.registerRule(wZ);var PV=vZ,FV=DV,OV=gZ,AV=U9,MV=S1,x8=z9,f8={empty:!0,space:!0};function CV(X){for(let Z=X.length-1;Z>=0;Z--){let J=X[Z],Y=J[3]||J[2];if(Y)return Y}}var _V=class{constructor(Z){this.input=Z,this.root=new MV,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:Z,start:{column:1,line:1,offset:0}}}atrule(Z){let J=new AV;if(J.name=Z[1].slice(1),J.name==="")this.unnamedAtrule(J,Z);this.init(J,Z[2]);let Y,Q,V,K=!1,q=!1,G=[],H=[];while(!this.tokenizer.endOfFile()){if(Z=this.tokenizer.nextToken(),Y=Z[0],Y==="("||Y==="[")H.push(Y==="("?")":"]");else if(Y==="{"&&H.length>0)H.push("}");else if(Y===H[H.length-1])H.pop();if(H.length===0)if(Y===";"){J.source.end=this.getPosition(Z[2]),J.source.end.offset++,this.semicolon=!0;break}else if(Y==="{"){q=!0;break}else if(Y==="}"){if(G.length>0){V=G.length-1,Q=G[V];while(Q&&Q[0]==="space")Q=G[--V];if(Q)J.source.end=this.getPosition(Q[3]||Q[2]),J.source.end.offset++}this.end(Z);break}else G.push(Z);else G.push(Z);if(this.tokenizer.endOfFile()){K=!0;break}}if(J.raws.between=this.spacesAndCommentsFromEnd(G),G.length){if(J.raws.afterName=this.spacesAndCommentsFromStart(G),this.raw(J,"params",G),K)Z=G[G.length-1],J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++,this.spaces=J.raws.between,J.raws.between=""}else J.raws.afterName="",J.params="";if(q)J.nodes=[],this.current=J}checkMissedSemicolon(Z){let J=this.colon(Z);if(J===!1)return;let Y=0,Q;for(let V=J-1;V>=0;V--)if(Q=Z[V],Q[0]!=="space"){if(Y+=1,Y===2)break}throw this.input.error("Missed semicolon",Q[0]==="word"?Q[3]+1:Q[2])}colon(Z){let J=0,Y,Q,V;for(let[K,q]of Z.entries()){if(Y=q,Q=Y[0],Q==="(")J+=1;if(Q===")")J-=1;if(J===0&&Q===":")if(!V)this.doubleColon(Y);else if(V[0]==="word"&&V[1]==="progid")continue;else return K;V=Y}return!1}comment(Z){let J=new OV;this.init(J,Z[2]),J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++;let Y=Z[1].slice(2,-2);if(/^\s*$/.test(Y))J.text="",J.raws.left=Y,J.raws.right="";else{let Q=Y.match(/^(\s*)([^]*\S)(\s*)$/);J.text=Q[2],J.raws.left=Q[1],J.raws.right=Q[3]}}createTokenizer(){this.tokenizer=FV(this.input)}decl(Z,J){let Y=new PV;this.init(Y,Z[0][2]);let Q=Z[Z.length-1];if(Q[0]===";")this.semicolon=!0,Z.pop();Y.source.end=this.getPosition(Q[3]||Q[2]||CV(Z)),Y.source.end.offset++;while(Z[0][0]!=="word"){if(Z.length===1)this.unknownWord(Z);Y.raws.before+=Z.shift()[1]}Y.source.start=this.getPosition(Z[0][2]),Y.prop="";while(Z.length){let H=Z[0][0];if(H===":"||H==="space"||H==="comment")break;Y.prop+=Z.shift()[1]}Y.raws.between="";let V;while(Z.length)if(V=Z.shift(),V[0]===":"){Y.raws.between+=V[1];break}else{if(V[0]==="word"&&/\w/.test(V[1]))this.unknownWord([V]);Y.raws.between+=V[1]}if(Y.prop[0]==="_"||Y.prop[0]==="*")Y.raws.before+=Y.prop[0],Y.prop=Y.prop.slice(1);let K=[],q;while(Z.length){if(q=Z[0][0],q!=="space"&&q!=="comment")break;K.push(Z.shift())}this.precheckMissedSemicolon(Z);for(let H=Z.length-1;H>=0;H--){if(V=Z[H],V[1].toLowerCase()==="!important"){Y.important=!0;let W=this.stringFrom(Z,H);if(W=this.spacesFromEnd(Z)+W,W!==" !important")Y.raws.important=W;break}else if(V[1].toLowerCase()==="important"){let W=Z.slice(0),U="";for(let D=H;D>0;D--){let B=W[D][0];if(U.trim().indexOf("!")===0&&B!=="space")break;U=W.pop()[1]+U}if(U.trim().indexOf("!")===0)Y.important=!0,Y.raws.important=U,Z=W}if(V[0]!=="space"&&V[0]!=="comment")break}if(Z.some((H)=>H[0]!=="space"&&H[0]!=="comment"))Y.raws.between+=K.map((H)=>H[1]).join(""),K=[];if(this.raw(Y,"value",K.concat(Z),J),Y.value.includes(":")&&!J)this.checkMissedSemicolon(Z)}doubleColon(Z){throw this.input.error("Double colon",{offset:Z[2]},{offset:Z[2]+Z[1].length})}emptyRule(Z){let J=new x8;this.init(J,Z[2]),J.selector="",J.raws.between="",this.current=J}end(Z){if(this.current.nodes&&this.current.nodes.length)this.current.raws.semicolon=this.semicolon;if(this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent)this.current.source.end=this.getPosition(Z[2]),this.current.source.end.offset++,this.current=this.current.parent;else this.unexpectedClose(Z)}endFile(){if(this.current.parent)this.unclosedBlock();if(this.current.nodes&&this.current.nodes.length)this.current.raws.semicolon=this.semicolon;this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(Z){if(this.spaces+=Z[1],this.current.nodes){let J=this.current.nodes[this.current.nodes.length-1];if(J&&J.type==="rule"&&!J.raws.ownSemicolon)J.raws.ownSemicolon=this.spaces,this.spaces=""}}getPosition(Z){let J=this.input.fromOffset(Z);return{column:J.col,line:J.line,offset:Z}}init(Z,J){if(this.current.push(Z),Z.source={input:this.input,start:this.getPosition(J)},Z.raws.before=this.spaces,this.spaces="",Z.type!=="comment")this.semicolon=!1}other(Z){let J=!1,Y=null,Q=!1,V=null,K=[],q=Z[1].startsWith("--"),G=[],H=Z;while(H){if(Y=H[0],G.push(H),Y==="("||Y==="["){if(!V)V=H;K.push(Y==="("?")":"]")}else if(q&&Q&&Y==="{"){if(!V)V=H;K.push("}")}else if(K.length===0){if(Y===";")if(Q){this.decl(G,q);return}else break;else if(Y==="{"){this.rule(G);return}else if(Y==="}"){this.tokenizer.back(G.pop()),J=!0;break}else if(Y===":")Q=!0}else if(Y===K[K.length-1]){if(K.pop(),K.length===0)V=null}H=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())J=!0;if(K.length>0)this.unclosedBracket(V);if(J&&Q){if(!q)while(G.length){if(H=G[G.length-1][0],H!=="space"&&H!=="comment")break;this.tokenizer.back(G.pop())}this.decl(G,q)}else this.unknownWord(G)}parse(){let Z;while(!this.tokenizer.endOfFile())switch(Z=this.tokenizer.nextToken(),Z[0]){case"space":this.spaces+=Z[1];break;case";":this.freeSemicolon(Z);break;case"}":this.end(Z);break;case"comment":this.comment(Z);break;case"at-word":this.atrule(Z);break;case"{":this.emptyRule(Z);break;default:this.other(Z);break}this.endFile()}precheckMissedSemicolon(){}raw(Z,J,Y,Q){let V,K,q=Y.length,G="",H=!0,W,U;for(let D=0;D<q;D+=1)if(V=Y[D],K=V[0],K==="space"&&D===q-1&&!Q)H=!1;else if(K==="comment")if(U=Y[D-1]?Y[D-1][0]:"empty",W=Y[D+1]?Y[D+1][0]:"empty",!f8[U]&&!f8[W])if(G.slice(-1)===",")H=!1;else G+=V[1];else H=!1;else G+=V[1];if(!H){let D=Y.reduce((B,L)=>B+L[1],"");Z.raws[J]={raw:D,value:G}}Z[J]=G}rule(Z){Z.pop();let J=new x8;this.init(J,Z[0][2]),J.raws.between=this.spacesAndCommentsFromEnd(Z),this.raw(J,"selector",Z),this.current=J}spacesAndCommentsFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space"&&J!=="comment")break;Y=Z.pop()[1]+Y}return Y}spacesAndCommentsFromStart(Z){let J,Y="";while(Z.length){if(J=Z[0][0],J!=="space"&&J!=="comment")break;Y+=Z.shift()[1]}return Y}spacesFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space")break;Y=Z.pop()[1]+Y}return Y}stringFrom(Z,J){let Y="";for(let Q=J;Q<Z.length;Q++)Y+=Z[Q][1];return Z.splice(J,Z.length-J),Y}unclosedBlock(){let Z=this.current.source.start;throw this.input.error("Unclosed block",Z.line,Z.column)}unclosedBracket(Z){throw this.input.error("Unclosed bracket",{offset:Z[2]},{offset:Z[2]+1})}unexpectedClose(Z){throw this.input.error("Unexpected }",{offset:Z[2]},{offset:Z[2]+1})}unknownWord(Z){throw this.input.error("Unknown word",{offset:Z[0][2]},{offset:Z[0][2]+Z[0][1].length})}unnamedAtrule(Z,J){throw this.input.error("At-rule without name",{offset:J[2]},{offset:J[2]+J[1].length})}},EV=_V,wV=y0,IV=EV,RV=bZ;function IZ(X,Z){let J=new RV(X,Z),Y=new IV(J);try{Y.parse()}catch(Q){if(Q.name==="CssSyntaxError"&&Z&&Z.from){if(/\.scss$/i.test(Z.from))Q.message+=`
22
+ `;this.css+=J+"/*# sourceMappingURL="+Z+" */"}applyPrevMaps(){for(let Z of this.previous()){let J=this.toUrl(this.path(Z.file)),Y=Z.root||FZ(Z.file),Q;if(this.mapOpts.sourcesContent===!1){if(Q=new S8(Z.text),Q.sourcesContent)Q.sourcesContent=null}else Q=Z.consumer();this.map.applySourceMap(Q,J,this.toUrl(this.path(Y)))}}clearAnnotation(){if(this.mapOpts.annotation===!1)return;if(this.root){let Z;for(let J=this.root.nodes.length-1;J>=0;J--){if(Z=this.root.nodes[J],Z.type!=="comment")continue;if(Z.text.indexOf("# sourceMappingURL=")===0)this.root.removeChild(J)}}else if(this.css)this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,"")}generate(){if(this.clearAnnotation(),KV&&qV&&this.isMap())return this.generateMap();else{let Z="";return this.stringify(this.root,(J)=>{Z+=J}),[Z]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let Z=this.previous()[0].consumer();Z.file=this.outputFile(),this.map=PZ.fromSourceMap(Z,{ignoreInvalidMapping:!0})}else this.map=new PZ({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});if(this.isSourcesContent())this.setSourcesContent();if(this.root&&this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline())return[this.css];else return[this.css,this.map]}generateString(){this.css="",this.map=new PZ({file:this.outputFile(),ignoreInvalidMapping:!0});let Z=1,J=1,Y="<no source>",Q={generated:{column:0,line:0},original:{column:0,line:0},source:""},V,G;this.stringify(this.root,(K,q,W)=>{if(this.css+=K,q&&W!=="end")if(Q.generated.line=Z,Q.generated.column=J-1,q.source&&q.source.start)Q.source=this.sourcePath(q),Q.original.line=q.source.start.line,Q.original.column=q.source.start.column-1,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,this.map.addMapping(Q);if(V=K.match(/\n/g),V)Z+=V.length,G=K.lastIndexOf(`
23
+ `),J=K.length-G;else J+=K.length;if(q&&W!=="start"){let H=q.parent||{raws:{}};if(!(q.type==="decl"||q.type==="atrule"&&!q.nodes)||q!==H.last||H.raws.semicolon)if(q.source&&q.source.end)Q.source=this.sourcePath(q),Q.original.line=q.source.end.line,Q.original.column=q.source.end.column-1,Q.generated.line=Z,Q.generated.column=J-2,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,Q.generated.line=Z,Q.generated.column=J-1,this.map.addMapping(Q)}})}isAnnotation(){if(this.isInline())return!0;if(typeof this.mapOpts.annotation!=="undefined")return this.mapOpts.annotation;if(this.previous().length)return this.previous().some((Z)=>Z.annotation);return!0}isInline(){if(typeof this.mapOpts.inline!=="undefined")return this.mapOpts.inline;let Z=this.mapOpts.annotation;if(typeof Z!=="undefined"&&Z!==!0)return!1;if(this.previous().length)return this.previous().some((J)=>J.inline);return!0}isMap(){if(typeof this.opts.map!=="undefined")return!!this.opts.map;return this.previous().length>0}isSourcesContent(){if(typeof this.mapOpts.sourcesContent!=="undefined")return this.mapOpts.sourcesContent;if(this.previous().length)return this.previous().some((Z)=>Z.withContent());return!0}outputFile(){if(this.opts.to)return this.path(this.opts.to);else if(this.opts.from)return this.path(this.opts.from);else return"to.css"}path(Z){if(this.mapOpts.absolute)return Z;if(Z.charCodeAt(0)===60)return Z;if(/^\w+:\/\//.test(Z))return Z;let J=this.memoizedPaths.get(Z);if(J)return J;let Y=this.opts.to?FZ(this.opts.to):".";if(typeof this.mapOpts.annotation==="string")Y=FZ(f8(Y,this.mapOpts.annotation));let Q=x8(Y,Z);return this.memoizedPaths.set(Z,Q),Q}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((Z)=>{if(Z.source&&Z.source.input.map){let J=Z.source.input.map;if(!this.previousMaps.includes(J))this.previousMaps.push(J)}});else{let Z=new GV(this.originalCSS,this.opts);if(Z.map)this.previousMaps.push(Z.map)}return this.previousMaps}setSourcesContent(){let Z={};if(this.root)this.root.walk((J)=>{if(J.source){let Y=J.source.input.from;if(Y&&!Z[Y]){Z[Y]=!0;let Q=this.usesFileUrls?this.toFileUrl(Y):this.toUrl(this.path(Y));this.map.setSourceContent(Q,J.source.input.css)}}});else if(this.css){let J=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(J,this.css)}}sourcePath(Z){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);else if(this.usesFileUrls)return this.toFileUrl(Z.source.input.from);else return this.toUrl(this.path(Z.source.input.from))}toBase64(Z){if(Buffer)return Buffer.from(Z).toString("base64");else return window.btoa(unescape(encodeURIComponent(Z)))}toFileUrl(Z){let J=this.memoizedFileURLs.get(Z);if(J)return J;if(kX){let Y=kX(Z).toString();return this.memoizedFileURLs.set(Z,Y),Y}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(Z){let J=this.memoizedURLs.get(Z);if(J)return J;if(h8==="\\")Z=Z.replace(/\\/g,"/");let Y=encodeURI(Z).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(Z,Y),Y}},k8=WV,HV=bZ,xJ=class X extends HV{constructor(Z){super(Z);this.type="comment"}},mZ=xJ;xJ.default=xJ;var{isClean:v8,my:b8}=S1,g8=gZ,y8=mZ,UV=bZ,m8,H9,U9,u8;function c8(X){return X.map((Z)=>{if(Z.nodes)Z.nodes=c8(Z.nodes);return delete Z.source,Z})}function p8(X){if(X[v8]=!1,X.proxyOf.nodes)for(let Z of X.proxyOf.nodes)p8(Z)}var E0=class X extends UV{append(...Z){for(let J of Z){let Y=this.normalize(J,this.last);for(let Q of Y)this.proxyOf.nodes.push(Q)}return this.markDirty(),this}cleanRaws(Z){if(super.cleanRaws(Z),this.nodes)for(let J of this.nodes)J.cleanRaws(Z)}each(Z){if(!this.proxyOf.nodes)return;let J=this.getIterator(),Y,Q;while(this.indexes[J]<this.proxyOf.nodes.length){if(Y=this.indexes[J],Q=Z(this.proxyOf.nodes[Y],Y),Q===!1)break;this.indexes[J]+=1}return delete this.indexes[J],Q}every(Z){return this.nodes.every(Z)}getIterator(){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;let Z=this.lastEach;return this.indexes[Z]=0,Z}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(!Z[J])return Z[J];else if(J==="each"||typeof J==="string"&&J.startsWith("walk"))return(...Y)=>{return Z[J](...Y.map((Q)=>{if(typeof Q==="function")return(V,G)=>Q(V.toProxy(),G);else return Q}))};else if(J==="every"||J==="some")return(Y)=>{return Z[J]((Q,...V)=>Y(Q.toProxy(),...V))};else if(J==="root")return()=>Z.root().toProxy();else if(J==="nodes")return Z.nodes.map((Y)=>Y.toProxy());else if(J==="first"||J==="last")return Z[J].toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="name"||J==="params"||J==="selector")Z.markDirty();return!0}}}index(Z){if(typeof Z==="number")return Z;if(Z.proxyOf)Z=Z.proxyOf;return this.proxyOf.nodes.indexOf(Z)}insertAfter(Z,J){let Y=this.index(Z),Q=this.normalize(J,this.proxyOf.nodes[Y]).reverse();Y=this.index(Z);for(let G of Q)this.proxyOf.nodes.splice(Y+1,0,G);let V;for(let G in this.indexes)if(V=this.indexes[G],Y<V)this.indexes[G]=V+Q.length;return this.markDirty(),this}insertBefore(Z,J){let Y=this.index(Z),Q=Y===0?"prepend":!1,V=this.normalize(J,this.proxyOf.nodes[Y],Q).reverse();Y=this.index(Z);for(let K of V)this.proxyOf.nodes.splice(Y,0,K);let G;for(let K in this.indexes)if(G=this.indexes[K],Y<=G)this.indexes[K]=G+V.length;return this.markDirty(),this}normalize(Z,J){if(typeof Z==="string")Z=c8(m8(Z).nodes);else if(typeof Z==="undefined")Z=[];else if(Array.isArray(Z)){Z=Z.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type==="root"&&this.type!=="document"){Z=Z.nodes.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type)Z=[Z];else if(Z.prop){if(typeof Z.value==="undefined")throw new Error("Value field is missed in node creation");else if(typeof Z.value!=="string")Z.value=String(Z.value);Z=[new g8(Z)]}else if(Z.selector)Z=[new H9(Z)];else if(Z.name)Z=[new U9(Z)];else if(Z.text)Z=[new y8(Z)];else throw new Error("Unknown node type in node creation");return Z.map((Q)=>{if(!Q[b8])X.rebuild(Q);if(Q=Q.proxyOf,Q.parent)Q.parent.removeChild(Q);if(Q[v8])p8(Q);if(typeof Q.raws.before==="undefined"){if(J&&typeof J.raws.before!=="undefined")Q.raws.before=J.raws.before.replace(/\S/g,"")}return Q.parent=this.proxyOf,Q})}prepend(...Z){Z=Z.reverse();for(let J of Z){let Y=this.normalize(J,this.first,"prepend").reverse();for(let Q of Y)this.proxyOf.nodes.unshift(Q);for(let Q in this.indexes)this.indexes[Q]=this.indexes[Q]+Y.length}return this.markDirty(),this}push(Z){return Z.parent=this,this.proxyOf.nodes.push(Z),this}removeAll(){for(let Z of this.proxyOf.nodes)Z.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(Z){Z=this.index(Z),this.proxyOf.nodes[Z].parent=void 0,this.proxyOf.nodes.splice(Z,1);let J;for(let Y in this.indexes)if(J=this.indexes[Y],J>=Z)this.indexes[Y]=J-1;return this.markDirty(),this}replaceValues(Z,J,Y){if(!Y)Y=J,J={};return this.walkDecls((Q)=>{if(J.props&&!J.props.includes(Q.prop))return;if(J.fast&&!Q.value.includes(J.fast))return;Q.value=Q.value.replace(Z,Y)}),this.markDirty(),this}some(Z){return this.nodes.some(Z)}walk(Z){return this.each((J,Y)=>{let Q;try{Q=Z(J,Y)}catch(V){throw J.addToError(V)}if(Q!==!1&&J.walk)Q=J.walk(Z);return Q})}walkAtRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="atrule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Z.test(Y.name))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Y.name===Z)return J(Y,Q)})}walkComments(Z){return this.walk((J,Y)=>{if(J.type==="comment")return Z(J,Y)})}walkDecls(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="decl")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="decl"&&Z.test(Y.prop))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="decl"&&Y.prop===Z)return J(Y,Q)})}walkRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="rule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="rule"&&Z.test(Y.selector))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="rule"&&Y.selector===Z)return J(Y,Q)})}get first(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};E0.registerParse=(X)=>{m8=X};E0.registerRule=(X)=>{H9=X};E0.registerAtRule=(X)=>{U9=X};E0.registerRoot=(X)=>{u8=X};var y0=E0;E0.default=E0;E0.rebuild=(X)=>{if(X.type==="atrule")Object.setPrototypeOf(X,U9.prototype);else if(X.type==="rule")Object.setPrototypeOf(X,H9.prototype);else if(X.type==="decl")Object.setPrototypeOf(X,g8.prototype);else if(X.type==="comment")Object.setPrototypeOf(X,y8.prototype);else if(X.type==="root")Object.setPrototypeOf(X,u8.prototype);if(X[b8]=!0,X.nodes)X.nodes.forEach((Z)=>{E0.rebuild(Z)})};var zV=y0,l8,d8,C1=class X extends zV{constructor(Z){super({type:"document",...Z});if(!this.nodes)this.nodes=[]}toResult(Z={}){return new l8(new d8,this,Z).stringify()}};C1.registerLazyResult=(X)=>{l8=X};C1.registerProcessor=(X)=>{d8=X};var z9=C1;C1.default=C1;var vX={},i8=function X(Z){if(vX[Z])return;if(vX[Z]=!0,typeof console!=="undefined"&&console.warn)console.warn(Z)},fJ=class X{constructor(Z,J={}){if(this.type="warning",this.text=Z,J.node&&J.node.source){let Y=J.node.rangeBy(J);this.line=Y.start.line,this.column=Y.start.column,this.endLine=Y.end.line,this.endColumn=Y.end.column}for(let Y in J)this[Y]=J[Y]}toString(){if(this.node)return this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message;if(this.plugin)return this.plugin+": "+this.text;return this.text}},r8=fJ;fJ.default=fJ;var BV=r8,hJ=class X{constructor(Z,J,Y){this.processor=Z,this.messages=[],this.root=J,this.opts=Y,this.css=void 0,this.map=void 0}toString(){return this.css}warn(Z,J={}){if(!J.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin)J.plugin=this.lastPlugin.postcssPlugin}let Y=new BV(Z,J);return this.messages.push(Y),Y}warnings(){return this.messages.filter((Z)=>Z.type==="warning")}get content(){return this.css}},B9=hJ;hJ.default=hJ;var BJ=39,bX=34,t1=92,gX=47,e1=10,B1=32,ZZ=12,JZ=9,XZ=13,jV=91,DV=93,LV=40,PV=41,FV=123,OV=125,AV=59,MV=42,CV=58,_V=64,YZ=/[\t\n\f\r "#'()/;[\\\]{}]/g,QZ=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,wV=/.[\r\n"'(/\\]/,yX=/[\da-f]/i,EV=function X(Z,J={}){let Y=Z.css.valueOf(),Q=J.ignoreErrors,V,G,K,q,W,H,z,j,B,L,D=Y.length,U=0,A=[],O=[];function P(){return U}function C(M){throw Z.error("Unclosed "+M,U)}function w(){return O.length===0&&U>=D}function _(M){if(O.length)return O.pop();if(U>=D)return;let x=M?M.ignoreUnclosed:!1;switch(V=Y.charCodeAt(U),V){case e1:case B1:case JZ:case XZ:case ZZ:{G=U;do G+=1,V=Y.charCodeAt(G);while(V===B1||V===e1||V===JZ||V===XZ||V===ZZ);L=["space",Y.slice(U,G)],U=G-1;break}case jV:case DV:case FV:case OV:case CV:case AV:case PV:{let h=String.fromCharCode(V);L=[h,h,U];break}case LV:{if(j=A.length?A.pop()[1]:"",B=Y.charCodeAt(U+1),j==="url"&&B!==BJ&&B!==bX&&B!==B1&&B!==e1&&B!==JZ&&B!==ZZ&&B!==XZ){G=U;do{if(H=!1,G=Y.indexOf(")",G+1),G===-1)if(Q||x){G=U;break}else C("bracket");z=G;while(Y.charCodeAt(z-1)===t1)z-=1,H=!H}while(H);L=["brackets",Y.slice(U,G+1),U,G],U=G}else if(G=Y.indexOf(")",U+1),q=Y.slice(U,G+1),G===-1||wV.test(q))L=["(","(",U];else L=["brackets",q,U,G],U=G;break}case BJ:case bX:{K=V===BJ?"'":'"',G=U;do{if(H=!1,G=Y.indexOf(K,G+1),G===-1)if(Q||x){G=U+1;break}else C("string");z=G;while(Y.charCodeAt(z-1)===t1)z-=1,H=!H}while(H);L=["string",Y.slice(U,G+1),U,G],U=G;break}case _V:{if(YZ.lastIndex=U+1,YZ.test(Y),YZ.lastIndex===0)G=Y.length-1;else G=YZ.lastIndex-2;L=["at-word",Y.slice(U,G+1),U,G],U=G;break}case t1:{G=U,W=!0;while(Y.charCodeAt(G+1)===t1)G+=1,W=!W;if(V=Y.charCodeAt(G+1),W&&V!==gX&&V!==B1&&V!==e1&&V!==JZ&&V!==XZ&&V!==ZZ){if(G+=1,yX.test(Y.charAt(G))){while(yX.test(Y.charAt(G+1)))G+=1;if(Y.charCodeAt(G+1)===B1)G+=1}}L=["word",Y.slice(U,G+1),U,G],U=G;break}default:{if(V===gX&&Y.charCodeAt(U+1)===MV){if(G=Y.indexOf("*/",U+2)+1,G===0)if(Q||x)G=Y.length;else C("comment");L=["comment",Y.slice(U,G+1),U,G],U=G}else{if(QZ.lastIndex=U+1,QZ.test(Y),QZ.lastIndex===0)G=Y.length-1;else G=QZ.lastIndex-2;L=["word",Y.slice(U,G+1),U,G],A.push(L),U=G}break}}return U++,L}function E(M){O.push(M)}return{back:E,endOfFile:w,nextToken:_,position:P}},a8=y0,RZ=class X extends a8{constructor(Z){super(Z);this.type="atrule"}append(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...Z)}prepend(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...Z)}},j9=RZ;RZ.default=RZ;a8.registerAtRule(RZ);var s8=y0,o8,n8,e0=class X extends s8{constructor(Z){super(Z);if(this.type="root",!this.nodes)this.nodes=[]}normalize(Z,J,Y){let Q=super.normalize(Z);if(J){if(Y==="prepend")if(this.nodes.length>1)J.raws.before=this.nodes[1].raws.before;else delete J.raws.before;else if(this.first!==J)for(let V of Q)V.raws.before=J.raws.before}return Q}removeChild(Z,J){let Y=this.index(Z);if(!J&&Y===0&&this.nodes.length>1)this.nodes[1].raws.before=this.nodes[Y].raws.before;return super.removeChild(Z)}toResult(Z={}){return new o8(new n8,this,Z).stringify()}};e0.registerLazyResult=(X)=>{o8=X};e0.registerProcessor=(X)=>{n8=X};var x1=e0;e0.default=e0;s8.registerRoot(e0);var _1={comma(X){return _1.split(X,[","],!0)},space(X){let Z=[" ",`
24
+ `,"\t"];return _1.split(X,Z)},split(X,Z,J){let Y=[],Q="",V=!1,G=0,K=!1,q="",W=!1;for(let H of X){if(W)W=!1;else if(H==="\\")W=!0;else if(K){if(H===q)K=!1}else if(H==='"'||H==="'")K=!0,q=H;else if(H==="(")G+=1;else if(H===")"){if(G>0)G-=1}else if(G===0){if(Z.includes(H))V=!0}if(V){if(Q!=="")Y.push(Q.trim());Q="",V=!1}else Q+=H}if(J||Q!=="")Y.push(Q.trim());return Y}},t8=_1;_1.default=_1;var e8=y0,RV=t8,IZ=class X extends e8{constructor(Z){super(Z);if(this.type="rule",!this.nodes)this.nodes=[]}get selectors(){return RV.comma(this.selector)}set selectors(Z){let J=this.selector?this.selector.match(/,\s*/):null,Y=J?J[0]:","+this.raw("between","beforeOpen");this.selector=Z.join(Y)}},D9=IZ;IZ.default=IZ;e8.registerRule(IZ);var IV=gZ,NV=EV,TV=mZ,$V=j9,SV=x1,mX=D9,uX={empty:!0,space:!0};function xV(X){for(let Z=X.length-1;Z>=0;Z--){let J=X[Z],Y=J[3]||J[2];if(Y)return Y}}var fV=class X{constructor(Z){this.input=Z,this.root=new SV,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:Z,start:{column:1,line:1,offset:0}}}atrule(Z){let J=new $V;if(J.name=Z[1].slice(1),J.name==="")this.unnamedAtrule(J,Z);this.init(J,Z[2]);let Y,Q,V,G=!1,K=!1,q=[],W=[];while(!this.tokenizer.endOfFile()){if(Z=this.tokenizer.nextToken(),Y=Z[0],Y==="("||Y==="[")W.push(Y==="("?")":"]");else if(Y==="{"&&W.length>0)W.push("}");else if(Y===W[W.length-1])W.pop();if(W.length===0)if(Y===";"){J.source.end=this.getPosition(Z[2]),J.source.end.offset++,this.semicolon=!0;break}else if(Y==="{"){K=!0;break}else if(Y==="}"){if(q.length>0){V=q.length-1,Q=q[V];while(Q&&Q[0]==="space")Q=q[--V];if(Q)J.source.end=this.getPosition(Q[3]||Q[2]),J.source.end.offset++}this.end(Z);break}else q.push(Z);else q.push(Z);if(this.tokenizer.endOfFile()){G=!0;break}}if(J.raws.between=this.spacesAndCommentsFromEnd(q),q.length){if(J.raws.afterName=this.spacesAndCommentsFromStart(q),this.raw(J,"params",q),G)Z=q[q.length-1],J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++,this.spaces=J.raws.between,J.raws.between=""}else J.raws.afterName="",J.params="";if(K)J.nodes=[],this.current=J}checkMissedSemicolon(Z){let J=this.colon(Z);if(J===!1)return;let Y=0,Q;for(let V=J-1;V>=0;V--)if(Q=Z[V],Q[0]!=="space"){if(Y+=1,Y===2)break}throw this.input.error("Missed semicolon",Q[0]==="word"?Q[3]+1:Q[2])}colon(Z){let J=0,Y,Q,V;for(let[G,K]of Z.entries()){if(Y=K,Q=Y[0],Q==="(")J+=1;if(Q===")")J-=1;if(J===0&&Q===":")if(!V)this.doubleColon(Y);else if(V[0]==="word"&&V[1]==="progid")continue;else return G;V=Y}return!1}comment(Z){let J=new TV;this.init(J,Z[2]),J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++;let Y=Z[1].slice(2,-2);if(/^\s*$/.test(Y))J.text="",J.raws.left=Y,J.raws.right="";else{let Q=Y.match(/^(\s*)([^]*\S)(\s*)$/);J.text=Q[2],J.raws.left=Q[1],J.raws.right=Q[3]}}createTokenizer(){this.tokenizer=NV(this.input)}decl(Z,J){let Y=new IV;this.init(Y,Z[0][2]);let Q=Z[Z.length-1];if(Q[0]===";")this.semicolon=!0,Z.pop();Y.source.end=this.getPosition(Q[3]||Q[2]||xV(Z)),Y.source.end.offset++;while(Z[0][0]!=="word"){if(Z.length===1)this.unknownWord(Z);Y.raws.before+=Z.shift()[1]}Y.source.start=this.getPosition(Z[0][2]),Y.prop="";while(Z.length){let W=Z[0][0];if(W===":"||W==="space"||W==="comment")break;Y.prop+=Z.shift()[1]}Y.raws.between="";let V;while(Z.length)if(V=Z.shift(),V[0]===":"){Y.raws.between+=V[1];break}else{if(V[0]==="word"&&/\w/.test(V[1]))this.unknownWord([V]);Y.raws.between+=V[1]}if(Y.prop[0]==="_"||Y.prop[0]==="*")Y.raws.before+=Y.prop[0],Y.prop=Y.prop.slice(1);let G=[],K;while(Z.length){if(K=Z[0][0],K!=="space"&&K!=="comment")break;G.push(Z.shift())}this.precheckMissedSemicolon(Z);for(let W=Z.length-1;W>=0;W--){if(V=Z[W],V[1].toLowerCase()==="!important"){Y.important=!0;let H=this.stringFrom(Z,W);if(H=this.spacesFromEnd(Z)+H,H!==" !important")Y.raws.important=H;break}else if(V[1].toLowerCase()==="important"){let H=Z.slice(0),z="";for(let j=W;j>0;j--){let B=H[j][0];if(z.trim().indexOf("!")===0&&B!=="space")break;z=H.pop()[1]+z}if(z.trim().indexOf("!")===0)Y.important=!0,Y.raws.important=z,Z=H}if(V[0]!=="space"&&V[0]!=="comment")break}if(Z.some((W)=>W[0]!=="space"&&W[0]!=="comment"))Y.raws.between+=G.map((W)=>W[1]).join(""),G=[];if(this.raw(Y,"value",G.concat(Z),J),Y.value.includes(":")&&!J)this.checkMissedSemicolon(Z)}doubleColon(Z){throw this.input.error("Double colon",{offset:Z[2]},{offset:Z[2]+Z[1].length})}emptyRule(Z){let J=new mX;this.init(J,Z[2]),J.selector="",J.raws.between="",this.current=J}end(Z){if(this.current.nodes&&this.current.nodes.length)this.current.raws.semicolon=this.semicolon;if(this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent)this.current.source.end=this.getPosition(Z[2]),this.current.source.end.offset++,this.current=this.current.parent;else this.unexpectedClose(Z)}endFile(){if(this.current.parent)this.unclosedBlock();if(this.current.nodes&&this.current.nodes.length)this.current.raws.semicolon=this.semicolon;this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(Z){if(this.spaces+=Z[1],this.current.nodes){let J=this.current.nodes[this.current.nodes.length-1];if(J&&J.type==="rule"&&!J.raws.ownSemicolon)J.raws.ownSemicolon=this.spaces,this.spaces=""}}getPosition(Z){let J=this.input.fromOffset(Z);return{column:J.col,line:J.line,offset:Z}}init(Z,J){if(this.current.push(Z),Z.source={input:this.input,start:this.getPosition(J)},Z.raws.before=this.spaces,this.spaces="",Z.type!=="comment")this.semicolon=!1}other(Z){let J=!1,Y=null,Q=!1,V=null,G=[],K=Z[1].startsWith("--"),q=[],W=Z;while(W){if(Y=W[0],q.push(W),Y==="("||Y==="["){if(!V)V=W;G.push(Y==="("?")":"]")}else if(K&&Q&&Y==="{"){if(!V)V=W;G.push("}")}else if(G.length===0){if(Y===";")if(Q){this.decl(q,K);return}else break;else if(Y==="{"){this.rule(q);return}else if(Y==="}"){this.tokenizer.back(q.pop()),J=!0;break}else if(Y===":")Q=!0}else if(Y===G[G.length-1]){if(G.pop(),G.length===0)V=null}W=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())J=!0;if(G.length>0)this.unclosedBracket(V);if(J&&Q){if(!K)while(q.length){if(W=q[q.length-1][0],W!=="space"&&W!=="comment")break;this.tokenizer.back(q.pop())}this.decl(q,K)}else this.unknownWord(q)}parse(){let Z;while(!this.tokenizer.endOfFile())switch(Z=this.tokenizer.nextToken(),Z[0]){case"space":this.spaces+=Z[1];break;case";":this.freeSemicolon(Z);break;case"}":this.end(Z);break;case"comment":this.comment(Z);break;case"at-word":this.atrule(Z);break;case"{":this.emptyRule(Z);break;default:this.other(Z);break}this.endFile()}precheckMissedSemicolon(){}raw(Z,J,Y,Q){let V,G,K=Y.length,q="",W=!0,H,z;for(let j=0;j<K;j+=1)if(V=Y[j],G=V[0],G==="space"&&j===K-1&&!Q)W=!1;else if(G==="comment")if(z=Y[j-1]?Y[j-1][0]:"empty",H=Y[j+1]?Y[j+1][0]:"empty",!uX[z]&&!uX[H])if(q.slice(-1)===",")W=!1;else q+=V[1];else W=!1;else q+=V[1];if(!W){let j=Y.reduce((B,L)=>B+L[1],"");Z.raws[J]={raw:j,value:q}}Z[J]=q}rule(Z){Z.pop();let J=new mX;this.init(J,Z[0][2]),J.raws.between=this.spacesAndCommentsFromEnd(Z),this.raw(J,"selector",Z),this.current=J}spacesAndCommentsFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space"&&J!=="comment")break;Y=Z.pop()[1]+Y}return Y}spacesAndCommentsFromStart(Z){let J,Y="";while(Z.length){if(J=Z[0][0],J!=="space"&&J!=="comment")break;Y+=Z.shift()[1]}return Y}spacesFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space")break;Y=Z.pop()[1]+Y}return Y}stringFrom(Z,J){let Y="";for(let Q=J;Q<Z.length;Q++)Y+=Z[Q][1];return Z.splice(J,Z.length-J),Y}unclosedBlock(){let Z=this.current.source.start;throw this.input.error("Unclosed block",Z.line,Z.column)}unclosedBracket(Z){throw this.input.error("Unclosed bracket",{offset:Z[2]},{offset:Z[2]+1})}unexpectedClose(Z){throw this.input.error("Unexpected }",{offset:Z[2]},{offset:Z[2]+1})}unknownWord(Z){throw this.input.error("Unknown word",{offset:Z[0][2]},{offset:Z[0][2]+Z[0][1].length})}unnamedAtrule(Z,J){throw this.input.error("At-rule without name",{offset:J[2]},{offset:J[2]+J[1].length})}},hV=fV,kV=y0,vV=hV,bV=yZ;function NZ(X,Z){let J=new bV(X,Z),Y=new vV(J);try{Y.parse()}catch(Q){if(Q.name==="CssSyntaxError"&&Z&&Z.from){if(/\.scss$/i.test(Z.from))Q.message+=`
25
25
  You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`;else if(/\.sass/i.test(Z.from))Q.message+=`
26
26
  You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`;else if(/\.less$/i.test(Z.from))Q.message+=`
27
- You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`}throw Q}return Y.root}var B9=IZ;IZ.default=IZ;wV.registerParse(IZ);var{isClean:C0,my:NV}=$1,TV=RX,$V=hZ,SV=y0,xV=H9,fV=gX,h8=W9,hV=B9,kV=S1,vV={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},bV={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},gV={Once:!0,postcssPlugin:!0,prepare:!0},Z1=0;function j1(X){return typeof X==="object"&&typeof X.then==="function"}function iX(X){let Z=!1,J=vV[X.type];if(X.type==="decl")Z=X.prop.toLowerCase();else if(X.type==="atrule")Z=X.name.toLowerCase();if(Z&&X.append)return[J,J+"-"+Z,Z1,J+"Exit",J+"Exit-"+Z];else if(Z)return[J,J+"-"+Z,J+"Exit",J+"Exit-"+Z];else if(X.append)return[J,Z1,J+"Exit"];else return[J,J+"Exit"]}function k8(X){let Z;if(X.type==="document")Z=["Document",Z1,"DocumentExit"];else if(X.type==="root")Z=["Root",Z1,"RootExit"];else Z=iX(X);return{eventIndex:0,events:Z,iterator:0,node:X,visitorIndex:0,visitors:[]}}function xJ(X){if(X[C0]=!1,X.nodes)X.nodes.forEach((Z)=>xJ(Z));return X}var fJ={},J1=class X{constructor(Z,J,Y){this.stringified=!1,this.processed=!1;let Q;if(typeof J==="object"&&J!==null&&(J.type==="root"||J.type==="document"))Q=xJ(J);else if(J instanceof X||J instanceof h8){if(Q=xJ(J.root),J.map){if(typeof Y.map>"u")Y.map={};if(!Y.map.inline)Y.map.inline=!1;Y.map.prev=J.map}}else{let V=hV;if(Y.syntax)V=Y.syntax.parse;if(Y.parser)V=Y.parser;if(V.parse)V=V.parse;try{Q=V(J,Y)}catch(K){this.processed=!0,this.error=K}if(Q&&!Q[NV])SV.rebuild(Q)}this.result=new h8(Z,Q,Y),this.helpers={...fJ,postcss:fJ,result:this.result},this.plugins=this.processor.plugins.map((V)=>{if(typeof V==="object"&&V.prepare)return{...V,...V.prepare(this.result)};else return V})}async(){if(this.error)return Promise.reject(this.error);if(this.processed)return Promise.resolve(this.result);if(!this.processing)this.processing=this.runAsync();return this.processing}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(Z,J){let Y=this.result.lastPlugin;try{if(J)J.addToError(Z);if(this.error=Z,Z.name==="CssSyntaxError"&&!Z.plugin)Z.plugin=Y.postcssPlugin,Z.setMessage();else if(Y.postcssVersion){let{postcssPlugin:Q,postcssVersion:V}=Y,K=this.result.processor.version,q=V.split("."),G=K.split(".");if(q[0]!==G[0]||parseInt(q[1])>parseInt(G[1]))console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+K+", but "+Q+" uses "+V+". Perhaps this is the source of the error below.")}}catch(Q){if(console&&console.error)console.error(Q)}return Z}prepareVisitors(){this.listeners={};let Z=(J,Y,Q)=>{if(!this.listeners[Y])this.listeners[Y]=[];this.listeners[Y].push([J,Q])};for(let J of this.plugins)if(typeof J==="object")for(let Y in J){if(!bV[Y]&&/^[A-Z]/.test(Y))throw Error(`Unknown event ${Y} in ${J.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!gV[Y]){if(typeof J[Y]==="object")for(let Q in J[Y])if(Q==="*")Z(J,Y,J[Y][Q]);else Z(J,Y+"-"+Q.toLowerCase(),J[Y][Q]);else if(typeof J[Y]==="function")Z(J,Y,J[Y])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let Z=0;Z<this.plugins.length;Z++){let J=this.plugins[Z],Y=this.runOnRoot(J);if(j1(Y))try{await Y}catch(Q){throw this.handleError(Q)}}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[C0]){Z[C0]=!0;let J=[k8(Z)];while(J.length>0){let Y=this.visitTick(J);if(j1(Y))try{await Y}catch(Q){let V=J[J.length-1].node;throw this.handleError(Q,V)}}}if(this.listeners.OnceExit)for(let[J,Y]of this.listeners.OnceExit){this.result.lastPlugin=J;try{if(Z.type==="document"){let Q=Z.nodes.map((V)=>Y(V,this.helpers));await Promise.all(Q)}else await Y(Z,this.helpers)}catch(Q){throw this.handleError(Q)}}}return this.processed=!0,this.stringify()}runOnRoot(Z){this.result.lastPlugin=Z;try{if(typeof Z==="object"&&Z.Once){if(this.result.root.type==="document"){let J=this.result.root.nodes.map((Y)=>Z.Once(Y,this.helpers));if(j1(J[0]))return Promise.all(J);return J}return Z.Once(this.result.root,this.helpers)}else if(typeof Z==="function")return Z(this.result.root,this.result)}catch(J){throw this.handleError(J)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let Z=this.result.opts,J=$V;if(Z.syntax)J=Z.syntax.stringify;if(Z.stringifier)J=Z.stringifier;if(J.stringify)J=J.stringify;let Q=new TV(J,this.result.root,this.result.opts).generate();return this.result.css=Q[0],this.result.map=Q[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let Z of this.plugins){let J=this.runOnRoot(Z);if(j1(J))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[C0])Z[C0]=!0,this.walkSync(Z);if(this.listeners.OnceExit)if(Z.type==="document")for(let J of Z.nodes)this.visitSync(this.listeners.OnceExit,J);else this.visitSync(this.listeners.OnceExit,Z)}return this.result}then(Z,J){if(!("from"in this.opts))fV("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");return this.async().then(Z,J)}toString(){return this.css}visitSync(Z,J){for(let[Y,Q]of Z){this.result.lastPlugin=Y;let V;try{V=Q(J,this.helpers)}catch(K){throw this.handleError(K,J.proxyOf)}if(J.type!=="root"&&J.type!=="document"&&!J.parent)return!0;if(j1(V))throw this.getAsyncError()}}visitTick(Z){let J=Z[Z.length-1],{node:Y,visitors:Q}=J;if(Y.type!=="root"&&Y.type!=="document"&&!Y.parent){Z.pop();return}if(Q.length>0&&J.visitorIndex<Q.length){let[K,q]=Q[J.visitorIndex];if(J.visitorIndex+=1,J.visitorIndex===Q.length)J.visitors=[],J.visitorIndex=0;this.result.lastPlugin=K;try{return q(Y.toProxy(),this.helpers)}catch(G){throw this.handleError(G,Y)}}if(J.iterator!==0){let K=J.iterator,q;while(q=Y.nodes[Y.indexes[K]])if(Y.indexes[K]+=1,!q[C0]){q[C0]=!0,Z.push(k8(q));return}J.iterator=0,delete Y.indexes[K]}let V=J.events;while(J.eventIndex<V.length){let K=V[J.eventIndex];if(J.eventIndex+=1,K===Z1){if(Y.nodes&&Y.nodes.length)Y[C0]=!0,J.iterator=Y.getIterator();return}else if(this.listeners[K]){J.visitors=this.listeners[K];return}}Z.pop()}walkSync(Z){Z[C0]=!0;let J=iX(Z);for(let Y of J)if(Y===Z1){if(Z.nodes)Z.each((Q)=>{if(!Q[C0])this.walkSync(Q)})}else{let Q=this.listeners[Y];if(Q){if(this.visitSync(Q,Z.toProxy()))return}}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};J1.registerPostcss=(X)=>{fJ=X};var sX=J1;J1.default=J1;kV.registerLazyResult(J1);xV.registerLazyResult(J1);var yV=RX,mV=hZ,uV=gX,cV=B9,pV=W9,hJ=class{constructor(Z,J,Y){J=J.toString(),this.stringified=!1,this._processor=Z,this._css=J,this._opts=Y,this._map=void 0;let Q,V=mV;this.result=new pV(this._processor,Q,this._opts),this.result.css=J;let K=this;Object.defineProperty(this.result,"root",{get(){return K.root}});let q=new yV(V,Q,this._opts,J);if(q.isMap()){let[G,H]=q.generate();if(G)this.result.css=G;if(H)this.result.map=H}else q.clearAnnotation(),this.result.css=q.css}async(){if(this.error)return Promise.reject(this.error);return Promise.resolve(this.result)}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}sync(){if(this.error)throw this.error;return this.result}then(Z,J){if(!("from"in this._opts))uV("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");return this.async().then(Z,J)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let Z,J=cV;try{Z=J(this._css,this._opts)}catch(Y){this.error=Y}if(this.error)throw this.error;else return this._root=Z,Z}get[Symbol.toStringTag](){return"NoWorkResult"}},lV=hJ;hJ.default=hJ;var dV=lV,iV=sX,sV=H9,rV=S1,_1=class{constructor(Z=[]){this.version="8.4.38",this.plugins=this.normalize(Z)}normalize(Z){let J=[];for(let Y of Z){if(Y.postcss===!0)Y=Y();else if(Y.postcss)Y=Y.postcss;if(typeof Y==="object"&&Array.isArray(Y.plugins))J=J.concat(Y.plugins);else if(typeof Y==="object"&&Y.postcssPlugin)J.push(Y);else if(typeof Y==="function")J.push(Y);else if(typeof Y==="object"&&(Y.parse||Y.stringify))throw Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.");else throw Error(Y+" is not a PostCSS plugin")}return J}process(Z,J={}){if(!this.plugins.length&&!J.parser&&!J.stringifier&&!J.syntax)return new dV(this,Z,J);else return new iV(this,Z,J)}use(Z){return this.plugins=this.plugins.concat(this.normalize([Z])),this}},aV=_1;_1.default=_1;rV.registerProcessor(_1);sV.registerProcessor(_1);var oV=vZ,nV=CX,tV=gZ,eV=U9,ZK=bZ,JK=S1,XK=z9;function E1(X,Z){if(Array.isArray(X))return X.map((Q)=>E1(Q));let{inputs:J,...Y}=X;if(J){Z=[];for(let Q of J){let V={...Q,__proto__:ZK.prototype};if(V.map)V.map={...V.map,__proto__:nV.prototype};Z.push(V)}}if(Y.nodes)Y.nodes=X.nodes.map((Q)=>E1(Q,Z));if(Y.source){let{inputId:Q,...V}=Y.source;if(Y.source=V,Q!=null)Y.source.input=Z[Q]}if(Y.type==="root")return new JK(Y);else if(Y.type==="decl")return new oV(Y);else if(Y.type==="rule")return new XK(Y);else if(Y.type==="comment")return new tV(Y);else if(Y.type==="atrule")return new eV(Y);else throw Error("Unknown node type: "+X.type)}var YK=E1;E1.default=E1;var QK=K9,rX=vZ,VK=sX,KK=y0,j9=aV,GK=hZ,qK=YK,aX=H9,HK=yX,oX=gZ,nX=U9,WK=W9,UK=bZ,zK=B9,BK=lX,tX=z9,eX=S1,jK=kZ;function v(...X){if(X.length===1&&Array.isArray(X[0]))X=X[0];return new j9(X)}v.plugin=function(Z,J){let Y=!1;function Q(...K){if(console&&console.warn&&!Y){if(Y=!0,console.warn(Z+`: postcss.plugin was deprecated. Migration guide:
27
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`}throw Q}return Y.root}var L9=NZ;NZ.default=NZ;kV.registerParse(NZ);var{isClean:C0,my:gV}=S1,yV=k8,mV=vZ,uV=y0,cV=z9,pV=i8,cX=B9,lV=L9,dV=x1,iV={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},rV={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},aV={Once:!0,postcssPlugin:!0,prepare:!0},Z1=0;function j1(X){return typeof X==="object"&&typeof X.then==="function"}function Z6(X){let Z=!1,J=iV[X.type];if(X.type==="decl")Z=X.prop.toLowerCase();else if(X.type==="atrule")Z=X.name.toLowerCase();if(Z&&X.append)return[J,J+"-"+Z,Z1,J+"Exit",J+"Exit-"+Z];else if(Z)return[J,J+"-"+Z,J+"Exit",J+"Exit-"+Z];else if(X.append)return[J,Z1,J+"Exit"];else return[J,J+"Exit"]}function pX(X){let Z;if(X.type==="document")Z=["Document",Z1,"DocumentExit"];else if(X.type==="root")Z=["Root",Z1,"RootExit"];else Z=Z6(X);return{eventIndex:0,events:Z,iterator:0,node:X,visitorIndex:0,visitors:[]}}function kJ(X){if(X[C0]=!1,X.nodes)X.nodes.forEach((Z)=>kJ(Z));return X}var vJ={},J1=class X{constructor(Z,J,Y){this.stringified=!1,this.processed=!1;let Q;if(typeof J==="object"&&J!==null&&(J.type==="root"||J.type==="document"))Q=kJ(J);else if(J instanceof X||J instanceof cX){if(Q=kJ(J.root),J.map){if(typeof Y.map==="undefined")Y.map={};if(!Y.map.inline)Y.map.inline=!1;Y.map.prev=J.map}}else{let V=lV;if(Y.syntax)V=Y.syntax.parse;if(Y.parser)V=Y.parser;if(V.parse)V=V.parse;try{Q=V(J,Y)}catch(G){this.processed=!0,this.error=G}if(Q&&!Q[gV])uV.rebuild(Q)}this.result=new cX(Z,Q,Y),this.helpers={...vJ,postcss:vJ,result:this.result},this.plugins=this.processor.plugins.map((V)=>{if(typeof V==="object"&&V.prepare)return{...V,...V.prepare(this.result)};else return V})}async(){if(this.error)return Promise.reject(this.error);if(this.processed)return Promise.resolve(this.result);if(!this.processing)this.processing=this.runAsync();return this.processing}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(Z,J){let Y=this.result.lastPlugin;try{if(J)J.addToError(Z);if(this.error=Z,Z.name==="CssSyntaxError"&&!Z.plugin)Z.plugin=Y.postcssPlugin,Z.setMessage();else if(Y.postcssVersion){let{postcssPlugin:Q,postcssVersion:V}=Y,G=this.result.processor.version,K=V.split("."),q=G.split(".");if(K[0]!==q[0]||parseInt(K[1])>parseInt(q[1]))console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+G+", but "+Q+" uses "+V+". Perhaps this is the source of the error below.")}}catch(Q){if(console&&console.error)console.error(Q)}return Z}prepareVisitors(){this.listeners={};let Z=(J,Y,Q)=>{if(!this.listeners[Y])this.listeners[Y]=[];this.listeners[Y].push([J,Q])};for(let J of this.plugins)if(typeof J==="object")for(let Y in J){if(!rV[Y]&&/^[A-Z]/.test(Y))throw new Error(`Unknown event ${Y} in ${J.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!aV[Y]){if(typeof J[Y]==="object")for(let Q in J[Y])if(Q==="*")Z(J,Y,J[Y][Q]);else Z(J,Y+"-"+Q.toLowerCase(),J[Y][Q]);else if(typeof J[Y]==="function")Z(J,Y,J[Y])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let Z=0;Z<this.plugins.length;Z++){let J=this.plugins[Z],Y=this.runOnRoot(J);if(j1(Y))try{await Y}catch(Q){throw this.handleError(Q)}}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[C0]){Z[C0]=!0;let J=[pX(Z)];while(J.length>0){let Y=this.visitTick(J);if(j1(Y))try{await Y}catch(Q){let V=J[J.length-1].node;throw this.handleError(Q,V)}}}if(this.listeners.OnceExit)for(let[J,Y]of this.listeners.OnceExit){this.result.lastPlugin=J;try{if(Z.type==="document"){let Q=Z.nodes.map((V)=>Y(V,this.helpers));await Promise.all(Q)}else await Y(Z,this.helpers)}catch(Q){throw this.handleError(Q)}}}return this.processed=!0,this.stringify()}runOnRoot(Z){this.result.lastPlugin=Z;try{if(typeof Z==="object"&&Z.Once){if(this.result.root.type==="document"){let J=this.result.root.nodes.map((Y)=>Z.Once(Y,this.helpers));if(j1(J[0]))return Promise.all(J);return J}return Z.Once(this.result.root,this.helpers)}else if(typeof Z==="function")return Z(this.result.root,this.result)}catch(J){throw this.handleError(J)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let Z=this.result.opts,J=mV;if(Z.syntax)J=Z.syntax.stringify;if(Z.stringifier)J=Z.stringifier;if(J.stringify)J=J.stringify;let Q=new yV(J,this.result.root,this.result.opts).generate();return this.result.css=Q[0],this.result.map=Q[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let Z of this.plugins){let J=this.runOnRoot(Z);if(j1(J))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[C0])Z[C0]=!0,this.walkSync(Z);if(this.listeners.OnceExit)if(Z.type==="document")for(let J of Z.nodes)this.visitSync(this.listeners.OnceExit,J);else this.visitSync(this.listeners.OnceExit,Z)}return this.result}then(Z,J){if(!("from"in this.opts))pV("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");return this.async().then(Z,J)}toString(){return this.css}visitSync(Z,J){for(let[Y,Q]of Z){this.result.lastPlugin=Y;let V;try{V=Q(J,this.helpers)}catch(G){throw this.handleError(G,J.proxyOf)}if(J.type!=="root"&&J.type!=="document"&&!J.parent)return!0;if(j1(V))throw this.getAsyncError()}}visitTick(Z){let J=Z[Z.length-1],{node:Y,visitors:Q}=J;if(Y.type!=="root"&&Y.type!=="document"&&!Y.parent){Z.pop();return}if(Q.length>0&&J.visitorIndex<Q.length){let[G,K]=Q[J.visitorIndex];if(J.visitorIndex+=1,J.visitorIndex===Q.length)J.visitors=[],J.visitorIndex=0;this.result.lastPlugin=G;try{return K(Y.toProxy(),this.helpers)}catch(q){throw this.handleError(q,Y)}}if(J.iterator!==0){let G=J.iterator,K;while(K=Y.nodes[Y.indexes[G]])if(Y.indexes[G]+=1,!K[C0]){K[C0]=!0,Z.push(pX(K));return}J.iterator=0,delete Y.indexes[G]}let V=J.events;while(J.eventIndex<V.length){let G=V[J.eventIndex];if(J.eventIndex+=1,G===Z1){if(Y.nodes&&Y.nodes.length)Y[C0]=!0,J.iterator=Y.getIterator();return}else if(this.listeners[G]){J.visitors=this.listeners[G];return}}Z.pop()}walkSync(Z){Z[C0]=!0;let J=Z6(Z);for(let Y of J)if(Y===Z1){if(Z.nodes)Z.each((Q)=>{if(!Q[C0])this.walkSync(Q)})}else{let Q=this.listeners[Y];if(Q){if(this.visitSync(Q,Z.toProxy()))return}}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};J1.registerPostcss=(X)=>{vJ=X};var J6=J1;J1.default=J1;dV.registerLazyResult(J1);cV.registerLazyResult(J1);var sV=k8,oV=vZ,nV=i8,tV=L9,eV=B9,bJ=class X{constructor(Z,J,Y){J=J.toString(),this.stringified=!1,this._processor=Z,this._css=J,this._opts=Y,this._map=void 0;let Q,V=oV;this.result=new eV(this._processor,Q,this._opts),this.result.css=J;let G=this;Object.defineProperty(this.result,"root",{get(){return G.root}});let K=new sV(V,Q,this._opts,J);if(K.isMap()){let[q,W]=K.generate();if(q)this.result.css=q;if(W)this.result.map=W}else K.clearAnnotation(),this.result.css=K.css}async(){if(this.error)return Promise.reject(this.error);return Promise.resolve(this.result)}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}sync(){if(this.error)throw this.error;return this.result}then(Z,J){if(!("from"in this._opts))nV("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");return this.async().then(Z,J)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let Z,J=tV;try{Z=J(this._css,this._opts)}catch(Y){this.error=Y}if(this.error)throw this.error;else return this._root=Z,Z}get[Symbol.toStringTag](){return"NoWorkResult"}},Z7=bJ;bJ.default=bJ;var J7=Z7,X7=J6,Y7=z9,Q7=x1,w1=class X{constructor(Z=[]){this.version="8.4.38",this.plugins=this.normalize(Z)}normalize(Z){let J=[];for(let Y of Z){if(Y.postcss===!0)Y=Y();else if(Y.postcss)Y=Y.postcss;if(typeof Y==="object"&&Array.isArray(Y.plugins))J=J.concat(Y.plugins);else if(typeof Y==="object"&&Y.postcssPlugin)J.push(Y);else if(typeof Y==="function")J.push(Y);else if(typeof Y==="object"&&(Y.parse||Y.stringify))throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.");else throw new Error(Y+" is not a PostCSS plugin")}return J}process(Z,J={}){if(!this.plugins.length&&!J.parser&&!J.stringifier&&!J.syntax)return new J7(this,Z,J);else return new X7(this,Z,J)}use(Z){return this.plugins=this.plugins.concat(this.normalize([Z])),this}},V7=w1;w1.default=w1;Q7.registerProcessor(w1);Y7.registerProcessor(w1);var G7=gZ,q7=$8,K7=mZ,W7=j9,H7=yZ,U7=x1,z7=D9;function E1(X,Z){if(Array.isArray(X))return X.map((Q)=>E1(Q));let{inputs:J,...Y}=X;if(J){Z=[];for(let Q of J){let V={...Q,__proto__:H7.prototype};if(V.map)V.map={...V.map,__proto__:q7.prototype};Z.push(V)}}if(Y.nodes)Y.nodes=X.nodes.map((Q)=>E1(Q,Z));if(Y.source){let{inputId:Q,...V}=Y.source;if(Y.source=V,Q!=null)Y.source.input=Z[Q]}if(Y.type==="root")return new U7(Y);else if(Y.type==="decl")return new G7(Y);else if(Y.type==="rule")return new z7(Y);else if(Y.type==="comment")return new K7(Y);else if(Y.type==="atrule")return new W7(Y);else throw new Error("Unknown node type: "+X.type)}var B7=E1;E1.default=E1;var j7=W9,X6=gZ,D7=J6,L7=y0,P9=V7,P7=vZ,F7=B7,Y6=z9,O7=r8,Q6=mZ,V6=j9,A7=B9,M7=yZ,C7=L9,_7=t8,G6=D9,q6=x1,w7=bZ;function b(...X){if(X.length===1&&Array.isArray(X[0]))X=X[0];return new P9(X)}b.plugin=function X(Z,J){let Y=!1;function Q(...G){if(console&&console.warn&&!Y){if(Y=!0,console.warn(Z+`: postcss.plugin was deprecated. Migration guide:
28
28
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn"))console.warn(Z+`: 里面 postcss.plugin 被弃用. 迁移指南:
29
- https://www.w3ctech.com/topic/2226`)}let q=J(...K);return q.postcssPlugin=Z,q.postcssVersion=new j9().version,q}let V;return Object.defineProperty(Q,"postcss",{get(){if(!V)V=Q();return V}}),Q.process=function(K,q,G){return v([Q(G)]).process(K,q)},Q};v.stringify=GK;v.parse=zK;v.fromJSON=qK;v.list=BK;v.comment=(X)=>new oX(X);v.atRule=(X)=>new nX(X);v.decl=(X)=>new rX(X);v.rule=(X)=>new tX(X);v.root=(X)=>new eX(X);v.document=(X)=>new aX(X);v.CssSyntaxError=QK;v.Declaration=rX;v.Container=KK;v.Processor=j9;v.Document=aX;v.Comment=oX;v.Warning=HK;v.AtRule=nX;v.Result=WK;v.Input=UK;v.Rule=tX;v.Root=eX;v.Node=jK;VK.registerPostcss(v);var DK=v;v.default=v;var d=wQ(DK);d.stringify;d.fromJSON;d.plugin;d.parse;d.list;d.document;d.comment;d.atRule;d.rule;d.decl;d.root;d.CssSyntaxError;d.Declaration;d.Container;d.Processor;d.Document;d.Comment;d.Warning;d.AtRule;d.Result;d.Input;d.Rule;d.Root;d.Node;var LK=Object.defineProperty,PK=(X,Z,J)=>(Z in X)?LK(X,Z,{enumerable:!0,configurable:!0,writable:!0,value:J}):X[Z]=J,z0=(X,Z,J)=>PK(X,typeof Z!=="symbol"?Z+"":Z,J);function FK(X){return X&&X.__esModule&&Object.prototype.hasOwnProperty.call(X,"default")?X.default:X}function OK(X){if(X.__esModule)return X;var Z=X.default;if(typeof Z=="function"){var J=function Y(){if(this instanceof Y)return Reflect.construct(Z,arguments,this.constructor);return Z.apply(this,arguments)};J.prototype=Z.prototype}else J={};return Object.defineProperty(J,"__esModule",{value:!0}),Object.keys(X).forEach(function(Y){var Q=Object.getOwnPropertyDescriptor(X,Y);Object.defineProperty(J,Y,Q.get?Q:{enumerable:!0,get:function(){return X[Y]}})}),J}var D9={exports:{}},p=String,ZY=function(){return{isColorSupported:!1,reset:p,bold:p,dim:p,italic:p,underline:p,inverse:p,hidden:p,strikethrough:p,black:p,red:p,green:p,yellow:p,blue:p,magenta:p,cyan:p,white:p,gray:p,bgBlack:p,bgRed:p,bgGreen:p,bgYellow:p,bgBlue:p,bgMagenta:p,bgCyan:p,bgWhite:p}};D9.exports=ZY();D9.exports.createColors=ZY;var AK=D9.exports,MK={},CK=Object.freeze(Object.defineProperty({__proto__:null,default:MK},Symbol.toStringTag,{value:"Module"})),F0=OK(CK),v8=AK,b8=F0,kJ=class X extends Error{constructor(Z,J,Y,Q,V,K){super(Z);if(this.name="CssSyntaxError",this.reason=Z,V)this.file=V;if(Q)this.source=Q;if(K)this.plugin=K;if(typeof J<"u"&&typeof Y<"u")if(typeof J==="number")this.line=J,this.column=Y;else this.line=J.line,this.column=J.column,this.endLine=Y.line,this.endColumn=Y.column;if(this.setMessage(),Error.captureStackTrace)Error.captureStackTrace(this,X)}setMessage(){if(this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u")this.message+=":"+this.line+":"+this.column;this.message+=": "+this.reason}showSourceCode(Z){if(!this.source)return"";let J=this.source;if(Z==null)Z=v8.isColorSupported;if(b8){if(Z)J=b8(J)}let Y=J.split(/\r?\n/),Q=Math.max(this.line-3,0),V=Math.min(this.line+2,Y.length),K=String(V).length,q,G;if(Z){let{bold:H,gray:W,red:U}=v8.createColors(!0);q=(D)=>H(U(D)),G=(D)=>W(D)}else q=G=(H)=>H;return Y.slice(Q,V).map((H,W)=>{let U=Q+1+W,D=" "+(" "+U).slice(-K)+" | ";if(U===this.line){let B=G(D.replace(/\d/g," "))+H.slice(0,this.column-1).replace(/[^\t]/g," ");return q(">")+G(D)+H+`
30
- `+B+q("^")}return" "+G(D)+H}).join(`
29
+ https://www.w3ctech.com/topic/2226`)}let K=J(...G);return K.postcssPlugin=Z,K.postcssVersion=new P9().version,K}let V;return Object.defineProperty(Q,"postcss",{get(){if(!V)V=Q();return V}}),Q.process=function(G,K,q){return b([Q(q)]).process(G,K)},Q};b.stringify=P7;b.parse=C7;b.fromJSON=F7;b.list=_7;b.comment=(X)=>new Q6(X);b.atRule=(X)=>new V6(X);b.decl=(X)=>new X6(X);b.rule=(X)=>new G6(X);b.root=(X)=>new q6(X);b.document=(X)=>new Y6(X);b.CssSyntaxError=j7;b.Declaration=X6;b.Container=L7;b.Processor=P9;b.Document=Y6;b.Comment=Q6;b.Warning=O7;b.AtRule=V6;b.Result=A7;b.Input=M7;b.Rule=G6;b.Root=q6;b.Node=w7;D7.registerPostcss(b);var E7=b;b.default=b;var d=kQ(E7);d.stringify;d.fromJSON;d.plugin;d.parse;d.list;d.document;d.comment;d.atRule;d.rule;d.decl;d.root;d.CssSyntaxError;d.Declaration;d.Container;d.Processor;d.Document;d.Comment;d.Warning;d.AtRule;d.Result;d.Input;d.Rule;d.Root;d.Node;var R7=Object.defineProperty,I7=(X,Z,J)=>(Z in X)?R7(X,Z,{enumerable:!0,configurable:!0,writable:!0,value:J}):X[Z]=J,z0=(X,Z,J)=>I7(X,typeof Z!=="symbol"?Z+"":Z,J);function N7(X){return X&&X.__esModule&&Object.prototype.hasOwnProperty.call(X,"default")?X.default:X}function T7(X){if(X.__esModule)return X;var Z=X.default;if(typeof Z=="function"){var J=function Y(){if(this instanceof Y)return Reflect.construct(Z,arguments,this.constructor);return Z.apply(this,arguments)};J.prototype=Z.prototype}else J={};return Object.defineProperty(J,"__esModule",{value:!0}),Object.keys(X).forEach(function(Y){var Q=Object.getOwnPropertyDescriptor(X,Y);Object.defineProperty(J,Y,Q.get?Q:{enumerable:!0,get:function(){return X[Y]}})}),J}var F9={exports:{}},p=String,K6=function(){return{isColorSupported:!1,reset:p,bold:p,dim:p,italic:p,underline:p,inverse:p,hidden:p,strikethrough:p,black:p,red:p,green:p,yellow:p,blue:p,magenta:p,cyan:p,white:p,gray:p,bgBlack:p,bgRed:p,bgGreen:p,bgYellow:p,bgBlue:p,bgMagenta:p,bgCyan:p,bgWhite:p}};F9.exports=K6();F9.exports.createColors=K6;var $7=F9.exports,S7={},x7=Object.freeze(Object.defineProperty({__proto__:null,default:S7},Symbol.toStringTag,{value:"Module"})),F0=T7(x7),lX=$7,dX=F0,gJ=class X extends Error{constructor(Z,J,Y,Q,V,G){super(Z);if(this.name="CssSyntaxError",this.reason=Z,V)this.file=V;if(Q)this.source=Q;if(G)this.plugin=G;if(typeof J!=="undefined"&&typeof Y!=="undefined")if(typeof J==="number")this.line=J,this.column=Y;else this.line=J.line,this.column=J.column,this.endLine=Y.line,this.endColumn=Y.column;if(this.setMessage(),Error.captureStackTrace)Error.captureStackTrace(this,X)}setMessage(){if(this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!=="undefined")this.message+=":"+this.line+":"+this.column;this.message+=": "+this.reason}showSourceCode(Z){if(!this.source)return"";let J=this.source;if(Z==null)Z=lX.isColorSupported;if(dX){if(Z)J=dX(J)}let Y=J.split(/\r?\n/),Q=Math.max(this.line-3,0),V=Math.min(this.line+2,Y.length),G=String(V).length,K,q;if(Z){let{bold:W,gray:H,red:z}=lX.createColors(!0);K=(j)=>W(z(j)),q=(j)=>H(j)}else K=q=(W)=>W;return Y.slice(Q,V).map((W,H)=>{let z=Q+1+H,j=" "+(" "+z).slice(-G)+" | ";if(z===this.line){let B=q(j.replace(/\d/g," "))+W.slice(0,this.column-1).replace(/[^\t]/g," ");return K(">")+q(j)+W+`
30
+ `+B+K("^")}return" "+q(j)+W}).join(`
31
31
  `)}toString(){let Z=this.showSourceCode();if(Z)Z=`
32
32
 
33
33
  `+Z+`
34
- `;return this.name+": "+this.message+Z}},L9=kJ;kJ.default=kJ;var x1={};x1.isClean=Symbol("isClean");x1.my=Symbol("my");var g8={after:`
34
+ `;return this.name+": "+this.message+Z}},O9=gJ;gJ.default=gJ;var f1={};f1.isClean=Symbol("isClean");f1.my=Symbol("my");var iX={after:`
35
35
  `,beforeClose:`
36
36
  `,beforeComment:`
37
37
  `,beforeDecl:`
38
38
  `,beforeOpen:" ",beforeRule:`
39
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function _K(X){return X[0].toUpperCase()+X.slice(1)}var vJ=class{constructor(Z){this.builder=Z}atrule(Z,J){let Y="@"+Z.name,Q=Z.params?this.rawValue(Z,"params"):"";if(typeof Z.raws.afterName<"u")Y+=Z.raws.afterName;else if(Q)Y+=" ";if(Z.nodes)this.block(Z,Y+Q);else{let V=(Z.raws.between||"")+(J?";":"");this.builder(Y+Q+V,Z)}}beforeAfter(Z,J){let Y;if(Z.type==="decl")Y=this.raw(Z,null,"beforeDecl");else if(Z.type==="comment")Y=this.raw(Z,null,"beforeComment");else if(J==="before")Y=this.raw(Z,null,"beforeRule");else Y=this.raw(Z,null,"beforeClose");let Q=Z.parent,V=0;while(Q&&Q.type!=="root")V+=1,Q=Q.parent;if(Y.includes(`
40
- `)){let K=this.raw(Z,null,"indent");if(K.length)for(let q=0;q<V;q++)Y+=K}return Y}block(Z,J){let Y=this.raw(Z,"between","beforeOpen");this.builder(J+Y+"{",Z,"start");let Q;if(Z.nodes&&Z.nodes.length)this.body(Z),Q=this.raw(Z,"after");else Q=this.raw(Z,"after","emptyBody");if(Q)this.builder(Q);this.builder("}",Z,"end")}body(Z){let J=Z.nodes.length-1;while(J>0){if(Z.nodes[J].type!=="comment")break;J-=1}let Y=this.raw(Z,"semicolon");for(let Q=0;Q<Z.nodes.length;Q++){let V=Z.nodes[Q],K=this.raw(V,"before");if(K)this.builder(K);this.stringify(V,J!==Q||Y)}}comment(Z){let J=this.raw(Z,"left","commentLeft"),Y=this.raw(Z,"right","commentRight");this.builder("/*"+J+Z.text+Y+"*/",Z)}decl(Z,J){let Y=this.raw(Z,"between","colon"),Q=Z.prop+Y+this.rawValue(Z,"value");if(Z.important)Q+=Z.raws.important||" !important";if(J)Q+=";";this.builder(Q,Z)}document(Z){this.body(Z)}raw(Z,J,Y){let Q;if(!Y)Y=J;if(J){if(Q=Z.raws[J],typeof Q<"u")return Q}let V=Z.parent;if(Y==="before"){if(!V||V.type==="root"&&V.first===Z)return"";if(V&&V.type==="document")return""}if(!V)return g8[Y];let K=Z.root();if(!K.rawCache)K.rawCache={};if(typeof K.rawCache[Y]<"u")return K.rawCache[Y];if(Y==="before"||Y==="after")return this.beforeAfter(Z,Y);else{let q="raw"+_K(Y);if(this[q])Q=this[q](K,Z);else K.walk((G)=>{if(Q=G.raws[J],typeof Q<"u")return!1})}if(typeof Q>"u")Q=g8[Y];return K.rawCache[Y]=Q,Q}rawBeforeClose(Z){let J;if(Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length>0){if(typeof Y.raws.after<"u"){if(J=Y.raws.after,J.includes(`
41
- `))J=J.replace(/[^\n]+$/,"");return!1}}}),J)J=J.replace(/\S/g,"");return J}rawBeforeComment(Z,J){let Y;if(Z.walkComments((Q)=>{if(typeof Q.raws.before<"u"){if(Y=Q.raws.before,Y.includes(`
42
- `))Y=Y.replace(/[^\n]+$/,"");return!1}}),typeof Y>"u")Y=this.raw(J,null,"beforeDecl");else if(Y)Y=Y.replace(/\S/g,"");return Y}rawBeforeDecl(Z,J){let Y;if(Z.walkDecls((Q)=>{if(typeof Q.raws.before<"u"){if(Y=Q.raws.before,Y.includes(`
43
- `))Y=Y.replace(/[^\n]+$/,"");return!1}}),typeof Y>"u")Y=this.raw(J,null,"beforeRule");else if(Y)Y=Y.replace(/\S/g,"");return Y}rawBeforeOpen(Z){let J;return Z.walk((Y)=>{if(Y.type!=="decl"){if(J=Y.raws.between,typeof J<"u")return!1}}),J}rawBeforeRule(Z){let J;if(Z.walk((Y)=>{if(Y.nodes&&(Y.parent!==Z||Z.first!==Y)){if(typeof Y.raws.before<"u"){if(J=Y.raws.before,J.includes(`
44
- `))J=J.replace(/[^\n]+$/,"");return!1}}}),J)J=J.replace(/\S/g,"");return J}rawColon(Z){let J;return Z.walkDecls((Y)=>{if(typeof Y.raws.between<"u")return J=Y.raws.between.replace(/[^\s:]/g,""),!1}),J}rawEmptyBody(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length===0){if(J=Y.raws.after,typeof J<"u")return!1}}),J}rawIndent(Z){if(Z.raws.indent)return Z.raws.indent;let J;return Z.walk((Y)=>{let Q=Y.parent;if(Q&&Q!==Z&&Q.parent&&Q.parent===Z){if(typeof Y.raws.before<"u"){let V=Y.raws.before.split(`
45
- `);return J=V[V.length-1],J=J.replace(/\S/g,""),!1}}}),J}rawSemicolon(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length&&Y.last.type==="decl"){if(J=Y.raws.semicolon,typeof J<"u")return!1}}),J}rawValue(Z,J){let Y=Z[J],Q=Z.raws[J];if(Q&&Q.value===Y)return Q.raw;return Y}root(Z){if(this.body(Z),Z.raws.after)this.builder(Z.raws.after)}rule(Z){if(this.block(Z,this.rawValue(Z,"selector")),Z.raws.ownSemicolon)this.builder(Z.raws.ownSemicolon,Z,"end")}stringify(Z,J){if(!this[Z.type])throw Error("Unknown AST node type "+Z.type+". Maybe you need to change PostCSS stringifier.");this[Z.type](Z,J)}},JY=vJ;vJ.default=vJ;var EK=JY;function bJ(X,Z){new EK(Z).stringify(X)}var yZ=bJ;bJ.default=bJ;var{isClean:YZ,my:wK}=x1,IK=L9,RK=JY,NK=yZ;function gJ(X,Z){let J=new X.constructor;for(let Y in X){if(!Object.prototype.hasOwnProperty.call(X,Y))continue;if(Y==="proxyCache")continue;let Q=X[Y],V=typeof Q;if(Y==="parent"&&V==="object"){if(Z)J[Y]=Z}else if(Y==="source")J[Y]=Q;else if(Array.isArray(Q))J[Y]=Q.map((K)=>gJ(K,J));else{if(V==="object"&&Q!==null)Q=gJ(Q);J[Y]=Q}}return J}var yJ=class{constructor(Z={}){this.raws={},this[YZ]=!1,this[wK]=!0;for(let J in Z)if(J==="nodes"){this.nodes=[];for(let Y of Z[J])if(typeof Y.clone==="function")this.append(Y.clone());else this.append(Y)}else this[J]=Z[J]}addToError(Z){if(Z.postcssNode=this,Z.stack&&this.source&&/\n\s{4}at /.test(Z.stack)){let J=this.source;Z.stack=Z.stack.replace(/\n\s{4}at /,`$&${J.input.from}:${J.start.line}:${J.start.column}$&`)}return Z}after(Z){return this.parent.insertAfter(this,Z),this}assign(Z={}){for(let J in Z)this[J]=Z[J];return this}before(Z){return this.parent.insertBefore(this,Z),this}cleanRaws(Z){if(delete this.raws.before,delete this.raws.after,!Z)delete this.raws.between}clone(Z={}){let J=gJ(this);for(let Y in Z)J[Y]=Z[Y];return J}cloneAfter(Z={}){let J=this.clone(Z);return this.parent.insertAfter(this,J),J}cloneBefore(Z={}){let J=this.clone(Z);return this.parent.insertBefore(this,J),J}error(Z,J={}){if(this.source){let{end:Y,start:Q}=this.rangeBy(J);return this.source.input.error(Z,{column:Q.column,line:Q.line},{column:Y.column,line:Y.line},J)}return new IK(Z)}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(J==="root")return()=>Z.root().toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="prop"||J==="value"||J==="name"||J==="params"||J==="important"||J==="text")Z.markDirty();return!0}}}markDirty(){if(this[YZ]){this[YZ]=!1;let Z=this;while(Z=Z.parent)Z[YZ]=!1}}next(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z+1]}positionBy(Z,J){let Y=this.source.start;if(Z.index)Y=this.positionInside(Z.index,J);else if(Z.word){J=this.toString();let Q=J.indexOf(Z.word);if(Q!==-1)Y=this.positionInside(Q,J)}return Y}positionInside(Z,J){let Y=J||this.toString(),Q=this.source.start.column,V=this.source.start.line;for(let K=0;K<Z;K++)if(Y[K]===`
46
- `)Q=1,V+=1;else Q+=1;return{column:Q,line:V}}prev(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z-1]}rangeBy(Z){let J={column:this.source.start.column,line:this.source.start.line},Y=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:J.column+1,line:J.line};if(Z.word){let Q=this.toString(),V=Q.indexOf(Z.word);if(V!==-1)J=this.positionInside(V,Q),Y=this.positionInside(V+Z.word.length,Q)}else{if(Z.start)J={column:Z.start.column,line:Z.start.line};else if(Z.index)J=this.positionInside(Z.index);if(Z.end)Y={column:Z.end.column,line:Z.end.line};else if(typeof Z.endIndex==="number")Y=this.positionInside(Z.endIndex);else if(Z.index)Y=this.positionInside(Z.index+1)}if(Y.line<J.line||Y.line===J.line&&Y.column<=J.column)Y={column:J.column+1,line:J.line};return{end:Y,start:J}}raw(Z,J){return new RK().raw(this,Z,J)}remove(){if(this.parent)this.parent.removeChild(this);return this.parent=void 0,this}replaceWith(...Z){if(this.parent){let J=this,Y=!1;for(let Q of Z)if(Q===this)Y=!0;else if(Y)this.parent.insertAfter(J,Q),J=Q;else this.parent.insertBefore(J,Q);if(!Y)this.remove()}return this}root(){let Z=this;while(Z.parent&&Z.parent.type!=="document")Z=Z.parent;return Z}toJSON(Z,J){let Y={},Q=J==null;J=J||new Map;let V=0;for(let K in this){if(!Object.prototype.hasOwnProperty.call(this,K))continue;if(K==="parent"||K==="proxyCache")continue;let q=this[K];if(Array.isArray(q))Y[K]=q.map((G)=>{if(typeof G==="object"&&G.toJSON)return G.toJSON(null,J);else return G});else if(typeof q==="object"&&q.toJSON)Y[K]=q.toJSON(null,J);else if(K==="source"){let G=J.get(q.input);if(G==null)G=V,J.set(q.input,V),V++;Y[K]={end:q.end,inputId:G,start:q.start}}else Y[K]=q}if(Q)Y.inputs=[...J.keys()].map((K)=>K.toJSON());return Y}toProxy(){if(!this.proxyCache)this.proxyCache=new Proxy(this,this.getProxyProcessor());return this.proxyCache}toString(Z=NK){if(Z.stringify)Z=Z.stringify;let J="";return Z(this,(Y)=>{J+=Y}),J}warn(Z,J,Y){let Q={node:this};for(let V in Y)Q[V]=Y[V];return Z.warn(J,Q)}get proxyOf(){return this}},mZ=yJ;yJ.default=yJ;var TK=mZ,mJ=class extends TK{constructor(Z){if(Z&&typeof Z.value<"u"&&typeof Z.value!=="string")Z={...Z,value:String(Z.value)};super(Z);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},uZ=mJ;mJ.default=mJ;var $K="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",SK=(X,Z=21)=>{return(J=Z)=>{let Y="",Q=J;while(Q--)Y+=X[Math.random()*X.length|0];return Y}},xK=(X=21)=>{let Z="",J=X;while(J--)Z+=$K[Math.random()*64|0];return Z},fK={nanoid:xK,customAlphabet:SK},{SourceMapConsumer:y8,SourceMapGenerator:m8}=F0,{existsSync:hK,readFileSync:kK}=F0,{dirname:UJ,join:vK}=F0;function bK(X){if(Buffer)return Buffer.from(X,"base64").toString();else return window.atob(X)}var uJ=class{constructor(Z,J){if(J.map===!1)return;this.loadAnnotation(Z),this.inline=this.startWith(this.annotation,"data:");let Y=J.map?J.map.prev:void 0,Q=this.loadMap(J.from,Y);if(!this.mapFile&&J.from)this.mapFile=J.from;if(this.mapFile)this.root=UJ(this.mapFile);if(Q)this.text=Q}consumer(){if(!this.consumerCache)this.consumerCache=new y8(this.text);return this.consumerCache}decodeInline(Z){let J=/^data:application\/json;charset=utf-?8;base64,/,Y=/^data:application\/json;base64,/,Q=/^data:application\/json;charset=utf-?8,/,V=/^data:application\/json,/;if(Q.test(Z)||V.test(Z))return decodeURIComponent(Z.substr(RegExp.lastMatch.length));if(J.test(Z)||Y.test(Z))return bK(Z.substr(RegExp.lastMatch.length));let K=Z.match(/data:application\/json;([^,]+),/)[1];throw Error("Unsupported source map encoding "+K)}getAnnotationURL(Z){return Z.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(Z){if(typeof Z!=="object")return!1;return typeof Z.mappings==="string"||typeof Z._mappings==="string"||Array.isArray(Z.sections)}loadAnnotation(Z){let J=Z.match(/\/\*\s*# sourceMappingURL=/gm);if(!J)return;let Y=Z.lastIndexOf(J.pop()),Q=Z.indexOf("*/",Y);if(Y>-1&&Q>-1)this.annotation=this.getAnnotationURL(Z.substring(Y,Q))}loadFile(Z){if(this.root=UJ(Z),hK(Z))return this.mapFile=Z,kK(Z,"utf-8").toString().trim()}loadMap(Z,J){if(J===!1)return!1;if(J)if(typeof J==="string")return J;else if(typeof J==="function"){let Y=J(Z);if(Y){let Q=this.loadFile(Y);if(!Q)throw Error("Unable to load previous source map: "+Y.toString());return Q}}else if(J instanceof y8)return m8.fromSourceMap(J).toString();else if(J instanceof m8)return J.toString();else if(this.isMap(J))return JSON.stringify(J);else throw Error("Unsupported previous source map format: "+J.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let Y=this.annotation;if(Z)Y=vK(UJ(Z),Y);return this.loadFile(Y)}}startWith(Z,J){if(!Z)return!1;return Z.substr(0,J.length)===J}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},XY=uJ;uJ.default=uJ;var{SourceMapConsumer:gK,SourceMapGenerator:yK}=F0,{fileURLToPath:u8,pathToFileURL:QZ}=F0,{isAbsolute:cJ,resolve:pJ}=F0,{nanoid:mK}=fK,zJ=F0,c8=L9,uK=XY,BJ=Symbol("fromOffsetCache"),cK=Boolean(gK&&yK),p8=Boolean(pJ&&cJ),RZ=class{constructor(Z,J={}){if(Z===null||typeof Z>"u"||typeof Z==="object"&&!Z.toString)throw Error(`PostCSS received ${Z} instead of CSS string`);if(this.css=Z.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾")this.hasBOM=!0,this.css=this.css.slice(1);else this.hasBOM=!1;if(J.from)if(!p8||/^\w+:\/\//.test(J.from)||cJ(J.from))this.file=J.from;else this.file=pJ(J.from);if(p8&&cK){let Y=new uK(this.css,J);if(Y.text){this.map=Y;let Q=Y.consumer().file;if(!this.file&&Q)this.file=this.mapResolve(Q)}}if(!this.file)this.id="<input css "+mK(6)+">";if(this.map)this.map.file=this.from}error(Z,J,Y,Q={}){let V,K,q;if(J&&typeof J==="object"){let H=J,W=Y;if(typeof H.offset==="number"){let U=this.fromOffset(H.offset);J=U.line,Y=U.col}else J=H.line,Y=H.column;if(typeof W.offset==="number"){let U=this.fromOffset(W.offset);K=U.line,q=U.col}else K=W.line,q=W.column}else if(!Y){let H=this.fromOffset(J);J=H.line,Y=H.col}let G=this.origin(J,Y,K,q);if(G)V=new c8(Z,G.endLine===void 0?G.line:{column:G.column,line:G.line},G.endLine===void 0?G.column:{column:G.endColumn,line:G.endLine},G.source,G.file,Q.plugin);else V=new c8(Z,K===void 0?J:{column:Y,line:J},K===void 0?Y:{column:q,line:K},this.css,this.file,Q.plugin);if(V.input={column:Y,endColumn:q,endLine:K,line:J,source:this.css},this.file){if(QZ)V.input.url=QZ(this.file).toString();V.input.file=this.file}return V}fromOffset(Z){let J,Y;if(!this[BJ]){let V=this.css.split(`
47
- `);Y=Array(V.length);let K=0;for(let q=0,G=V.length;q<G;q++)Y[q]=K,K+=V[q].length+1;this[BJ]=Y}else Y=this[BJ];J=Y[Y.length-1];let Q=0;if(Z>=J)Q=Y.length-1;else{let V=Y.length-2,K;while(Q<V)if(K=Q+(V-Q>>1),Z<Y[K])V=K-1;else if(Z>=Y[K+1])Q=K+1;else{Q=K;break}}return{col:Z-Y[Q]+1,line:Q+1}}mapResolve(Z){if(/^\w+:\/\//.test(Z))return Z;return pJ(this.map.consumer().sourceRoot||this.map.root||".",Z)}origin(Z,J,Y,Q){if(!this.map)return!1;let V=this.map.consumer(),K=V.originalPositionFor({column:J,line:Z});if(!K.source)return!1;let q;if(typeof Y==="number")q=V.originalPositionFor({column:Q,line:Y});let G;if(cJ(K.source))G=QZ(K.source);else G=new URL(K.source,this.map.consumer().sourceRoot||QZ(this.map.mapFile));let H={column:K.column,endColumn:q&&q.column,endLine:q&&q.line,line:K.line,url:G.toString()};if(G.protocol==="file:")if(u8)H.file=u8(G);else throw Error("file: protocol is not available in this PostCSS build");let W=V.sourceContentFor(K.source);if(W)H.source=W;return H}toJSON(){let Z={};for(let J of["hasBOM","css","file","id"])if(this[J]!=null)Z[J]=this[J];if(this.map){if(Z.map={...this.map},Z.map.consumerCache)Z.map.consumerCache=void 0}return Z}get from(){return this.file||this.id}},cZ=RZ;RZ.default=RZ;if(zJ&&zJ.registerInput)zJ.registerInput(RZ);var{SourceMapConsumer:YY,SourceMapGenerator:PZ}=F0,{dirname:FZ,relative:QY,resolve:VY,sep:KY}=F0,{pathToFileURL:l8}=F0,pK=cZ,lK=Boolean(YY&&PZ),dK=Boolean(FZ&&VY&&QY&&KY),iK=class{constructor(Z,J,Y,Q){this.stringify=Z,this.mapOpts=Y.map||{},this.root=J,this.opts=Y,this.css=Q,this.originalCSS=Q,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let Z;if(this.isInline())Z="data:application/json;base64,"+this.toBase64(this.map.toString());else if(typeof this.mapOpts.annotation==="string")Z=this.mapOpts.annotation;else if(typeof this.mapOpts.annotation==="function")Z=this.mapOpts.annotation(this.opts.to,this.root);else Z=this.outputFile()+".map";let J=`
39
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function f7(X){return X[0].toUpperCase()+X.slice(1)}var yJ=class X{constructor(Z){this.builder=Z}atrule(Z,J){let Y="@"+Z.name,Q=Z.params?this.rawValue(Z,"params"):"";if(typeof Z.raws.afterName!=="undefined")Y+=Z.raws.afterName;else if(Q)Y+=" ";if(Z.nodes)this.block(Z,Y+Q);else{let V=(Z.raws.between||"")+(J?";":"");this.builder(Y+Q+V,Z)}}beforeAfter(Z,J){let Y;if(Z.type==="decl")Y=this.raw(Z,null,"beforeDecl");else if(Z.type==="comment")Y=this.raw(Z,null,"beforeComment");else if(J==="before")Y=this.raw(Z,null,"beforeRule");else Y=this.raw(Z,null,"beforeClose");let Q=Z.parent,V=0;while(Q&&Q.type!=="root")V+=1,Q=Q.parent;if(Y.includes(`
40
+ `)){let G=this.raw(Z,null,"indent");if(G.length)for(let K=0;K<V;K++)Y+=G}return Y}block(Z,J){let Y=this.raw(Z,"between","beforeOpen");this.builder(J+Y+"{",Z,"start");let Q;if(Z.nodes&&Z.nodes.length)this.body(Z),Q=this.raw(Z,"after");else Q=this.raw(Z,"after","emptyBody");if(Q)this.builder(Q);this.builder("}",Z,"end")}body(Z){let J=Z.nodes.length-1;while(J>0){if(Z.nodes[J].type!=="comment")break;J-=1}let Y=this.raw(Z,"semicolon");for(let Q=0;Q<Z.nodes.length;Q++){let V=Z.nodes[Q],G=this.raw(V,"before");if(G)this.builder(G);this.stringify(V,J!==Q||Y)}}comment(Z){let J=this.raw(Z,"left","commentLeft"),Y=this.raw(Z,"right","commentRight");this.builder("/*"+J+Z.text+Y+"*/",Z)}decl(Z,J){let Y=this.raw(Z,"between","colon"),Q=Z.prop+Y+this.rawValue(Z,"value");if(Z.important)Q+=Z.raws.important||" !important";if(J)Q+=";";this.builder(Q,Z)}document(Z){this.body(Z)}raw(Z,J,Y){let Q;if(!Y)Y=J;if(J){if(Q=Z.raws[J],typeof Q!=="undefined")return Q}let V=Z.parent;if(Y==="before"){if(!V||V.type==="root"&&V.first===Z)return"";if(V&&V.type==="document")return""}if(!V)return iX[Y];let G=Z.root();if(!G.rawCache)G.rawCache={};if(typeof G.rawCache[Y]!=="undefined")return G.rawCache[Y];if(Y==="before"||Y==="after")return this.beforeAfter(Z,Y);else{let K="raw"+f7(Y);if(this[K])Q=this[K](G,Z);else G.walk((q)=>{if(Q=q.raws[J],typeof Q!=="undefined")return!1})}if(typeof Q==="undefined")Q=iX[Y];return G.rawCache[Y]=Q,Q}rawBeforeClose(Z){let J;if(Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length>0){if(typeof Y.raws.after!=="undefined"){if(J=Y.raws.after,J.includes(`
41
+ `))J=J.replace(/[^\n]+$/,"");return!1}}}),J)J=J.replace(/\S/g,"");return J}rawBeforeComment(Z,J){let Y;if(Z.walkComments((Q)=>{if(typeof Q.raws.before!=="undefined"){if(Y=Q.raws.before,Y.includes(`
42
+ `))Y=Y.replace(/[^\n]+$/,"");return!1}}),typeof Y==="undefined")Y=this.raw(J,null,"beforeDecl");else if(Y)Y=Y.replace(/\S/g,"");return Y}rawBeforeDecl(Z,J){let Y;if(Z.walkDecls((Q)=>{if(typeof Q.raws.before!=="undefined"){if(Y=Q.raws.before,Y.includes(`
43
+ `))Y=Y.replace(/[^\n]+$/,"");return!1}}),typeof Y==="undefined")Y=this.raw(J,null,"beforeRule");else if(Y)Y=Y.replace(/\S/g,"");return Y}rawBeforeOpen(Z){let J;return Z.walk((Y)=>{if(Y.type!=="decl"){if(J=Y.raws.between,typeof J!=="undefined")return!1}}),J}rawBeforeRule(Z){let J;if(Z.walk((Y)=>{if(Y.nodes&&(Y.parent!==Z||Z.first!==Y)){if(typeof Y.raws.before!=="undefined"){if(J=Y.raws.before,J.includes(`
44
+ `))J=J.replace(/[^\n]+$/,"");return!1}}}),J)J=J.replace(/\S/g,"");return J}rawColon(Z){let J;return Z.walkDecls((Y)=>{if(typeof Y.raws.between!=="undefined")return J=Y.raws.between.replace(/[^\s:]/g,""),!1}),J}rawEmptyBody(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length===0){if(J=Y.raws.after,typeof J!=="undefined")return!1}}),J}rawIndent(Z){if(Z.raws.indent)return Z.raws.indent;let J;return Z.walk((Y)=>{let Q=Y.parent;if(Q&&Q!==Z&&Q.parent&&Q.parent===Z){if(typeof Y.raws.before!=="undefined"){let V=Y.raws.before.split(`
45
+ `);return J=V[V.length-1],J=J.replace(/\S/g,""),!1}}}),J}rawSemicolon(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length&&Y.last.type==="decl"){if(J=Y.raws.semicolon,typeof J!=="undefined")return!1}}),J}rawValue(Z,J){let Y=Z[J],Q=Z.raws[J];if(Q&&Q.value===Y)return Q.raw;return Y}root(Z){if(this.body(Z),Z.raws.after)this.builder(Z.raws.after)}rule(Z){if(this.block(Z,this.rawValue(Z,"selector")),Z.raws.ownSemicolon)this.builder(Z.raws.ownSemicolon,Z,"end")}stringify(Z,J){if(!this[Z.type])throw new Error("Unknown AST node type "+Z.type+". Maybe you need to change PostCSS stringifier.");this[Z.type](Z,J)}},W6=yJ;yJ.default=yJ;var h7=W6;function mJ(X,Z){new h7(Z).stringify(X)}var uZ=mJ;mJ.default=mJ;var{isClean:VZ,my:k7}=f1,v7=O9,b7=W6,g7=uZ;function uJ(X,Z){let J=new X.constructor;for(let Y in X){if(!Object.prototype.hasOwnProperty.call(X,Y))continue;if(Y==="proxyCache")continue;let Q=X[Y],V=typeof Q;if(Y==="parent"&&V==="object"){if(Z)J[Y]=Z}else if(Y==="source")J[Y]=Q;else if(Array.isArray(Q))J[Y]=Q.map((G)=>uJ(G,J));else{if(V==="object"&&Q!==null)Q=uJ(Q);J[Y]=Q}}return J}var cJ=class X{constructor(Z={}){this.raws={},this[VZ]=!1,this[k7]=!0;for(let J in Z)if(J==="nodes"){this.nodes=[];for(let Y of Z[J])if(typeof Y.clone==="function")this.append(Y.clone());else this.append(Y)}else this[J]=Z[J]}addToError(Z){if(Z.postcssNode=this,Z.stack&&this.source&&/\n\s{4}at /.test(Z.stack)){let J=this.source;Z.stack=Z.stack.replace(/\n\s{4}at /,`$&${J.input.from}:${J.start.line}:${J.start.column}$&`)}return Z}after(Z){return this.parent.insertAfter(this,Z),this}assign(Z={}){for(let J in Z)this[J]=Z[J];return this}before(Z){return this.parent.insertBefore(this,Z),this}cleanRaws(Z){if(delete this.raws.before,delete this.raws.after,!Z)delete this.raws.between}clone(Z={}){let J=uJ(this);for(let Y in Z)J[Y]=Z[Y];return J}cloneAfter(Z={}){let J=this.clone(Z);return this.parent.insertAfter(this,J),J}cloneBefore(Z={}){let J=this.clone(Z);return this.parent.insertBefore(this,J),J}error(Z,J={}){if(this.source){let{end:Y,start:Q}=this.rangeBy(J);return this.source.input.error(Z,{column:Q.column,line:Q.line},{column:Y.column,line:Y.line},J)}return new v7(Z)}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(J==="root")return()=>Z.root().toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="prop"||J==="value"||J==="name"||J==="params"||J==="important"||J==="text")Z.markDirty();return!0}}}markDirty(){if(this[VZ]){this[VZ]=!1;let Z=this;while(Z=Z.parent)Z[VZ]=!1}}next(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z+1]}positionBy(Z,J){let Y=this.source.start;if(Z.index)Y=this.positionInside(Z.index,J);else if(Z.word){J=this.toString();let Q=J.indexOf(Z.word);if(Q!==-1)Y=this.positionInside(Q,J)}return Y}positionInside(Z,J){let Y=J||this.toString(),Q=this.source.start.column,V=this.source.start.line;for(let G=0;G<Z;G++)if(Y[G]===`
46
+ `)Q=1,V+=1;else Q+=1;return{column:Q,line:V}}prev(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z-1]}rangeBy(Z){let J={column:this.source.start.column,line:this.source.start.line},Y=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:J.column+1,line:J.line};if(Z.word){let Q=this.toString(),V=Q.indexOf(Z.word);if(V!==-1)J=this.positionInside(V,Q),Y=this.positionInside(V+Z.word.length,Q)}else{if(Z.start)J={column:Z.start.column,line:Z.start.line};else if(Z.index)J=this.positionInside(Z.index);if(Z.end)Y={column:Z.end.column,line:Z.end.line};else if(typeof Z.endIndex==="number")Y=this.positionInside(Z.endIndex);else if(Z.index)Y=this.positionInside(Z.index+1)}if(Y.line<J.line||Y.line===J.line&&Y.column<=J.column)Y={column:J.column+1,line:J.line};return{end:Y,start:J}}raw(Z,J){return new b7().raw(this,Z,J)}remove(){if(this.parent)this.parent.removeChild(this);return this.parent=void 0,this}replaceWith(...Z){if(this.parent){let J=this,Y=!1;for(let Q of Z)if(Q===this)Y=!0;else if(Y)this.parent.insertAfter(J,Q),J=Q;else this.parent.insertBefore(J,Q);if(!Y)this.remove()}return this}root(){let Z=this;while(Z.parent&&Z.parent.type!=="document")Z=Z.parent;return Z}toJSON(Z,J){let Y={},Q=J==null;J=J||new Map;let V=0;for(let G in this){if(!Object.prototype.hasOwnProperty.call(this,G))continue;if(G==="parent"||G==="proxyCache")continue;let K=this[G];if(Array.isArray(K))Y[G]=K.map((q)=>{if(typeof q==="object"&&q.toJSON)return q.toJSON(null,J);else return q});else if(typeof K==="object"&&K.toJSON)Y[G]=K.toJSON(null,J);else if(G==="source"){let q=J.get(K.input);if(q==null)q=V,J.set(K.input,V),V++;Y[G]={end:K.end,inputId:q,start:K.start}}else Y[G]=K}if(Q)Y.inputs=[...J.keys()].map((G)=>G.toJSON());return Y}toProxy(){if(!this.proxyCache)this.proxyCache=new Proxy(this,this.getProxyProcessor());return this.proxyCache}toString(Z=g7){if(Z.stringify)Z=Z.stringify;let J="";return Z(this,(Y)=>{J+=Y}),J}warn(Z,J,Y){let Q={node:this};for(let V in Y)Q[V]=Y[V];return Z.warn(J,Q)}get proxyOf(){return this}},cZ=cJ;cJ.default=cJ;var y7=cZ,pJ=class X extends y7{constructor(Z){if(Z&&typeof Z.value!=="undefined"&&typeof Z.value!=="string")Z={...Z,value:String(Z.value)};super(Z);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},pZ=pJ;pJ.default=pJ;var m7="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",u7=(X,Z=21)=>{return(J=Z)=>{let Y="",Q=J;while(Q--)Y+=X[Math.random()*X.length|0];return Y}},c7=(X=21)=>{let Z="",J=X;while(J--)Z+=m7[Math.random()*64|0];return Z},p7={nanoid:c7,customAlphabet:u7},{SourceMapConsumer:rX,SourceMapGenerator:aX}=F0,{existsSync:l7,readFileSync:d7}=F0,{dirname:jJ,join:i7}=F0;function r7(X){if(Buffer)return Buffer.from(X,"base64").toString();else return window.atob(X)}var lJ=class X{constructor(Z,J){if(J.map===!1)return;this.loadAnnotation(Z),this.inline=this.startWith(this.annotation,"data:");let Y=J.map?J.map.prev:void 0,Q=this.loadMap(J.from,Y);if(!this.mapFile&&J.from)this.mapFile=J.from;if(this.mapFile)this.root=jJ(this.mapFile);if(Q)this.text=Q}consumer(){if(!this.consumerCache)this.consumerCache=new rX(this.text);return this.consumerCache}decodeInline(Z){let J=/^data:application\/json;charset=utf-?8;base64,/,Y=/^data:application\/json;base64,/,Q=/^data:application\/json;charset=utf-?8,/,V=/^data:application\/json,/;if(Q.test(Z)||V.test(Z))return decodeURIComponent(Z.substr(RegExp.lastMatch.length));if(J.test(Z)||Y.test(Z))return r7(Z.substr(RegExp.lastMatch.length));let G=Z.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+G)}getAnnotationURL(Z){return Z.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(Z){if(typeof Z!=="object")return!1;return typeof Z.mappings==="string"||typeof Z._mappings==="string"||Array.isArray(Z.sections)}loadAnnotation(Z){let J=Z.match(/\/\*\s*# sourceMappingURL=/gm);if(!J)return;let Y=Z.lastIndexOf(J.pop()),Q=Z.indexOf("*/",Y);if(Y>-1&&Q>-1)this.annotation=this.getAnnotationURL(Z.substring(Y,Q))}loadFile(Z){if(this.root=jJ(Z),l7(Z))return this.mapFile=Z,d7(Z,"utf-8").toString().trim()}loadMap(Z,J){if(J===!1)return!1;if(J)if(typeof J==="string")return J;else if(typeof J==="function"){let Y=J(Z);if(Y){let Q=this.loadFile(Y);if(!Q)throw new Error("Unable to load previous source map: "+Y.toString());return Q}}else if(J instanceof rX)return aX.fromSourceMap(J).toString();else if(J instanceof aX)return J.toString();else if(this.isMap(J))return JSON.stringify(J);else throw new Error("Unsupported previous source map format: "+J.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let Y=this.annotation;if(Z)Y=i7(jJ(Z),Y);return this.loadFile(Y)}}startWith(Z,J){if(!Z)return!1;return Z.substr(0,J.length)===J}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},H6=lJ;lJ.default=lJ;var{SourceMapConsumer:a7,SourceMapGenerator:s7}=F0,{fileURLToPath:sX,pathToFileURL:GZ}=F0,{isAbsolute:dJ,resolve:iJ}=F0,{nanoid:o7}=p7,DJ=F0,oX=O9,n7=H6,LJ=Symbol("fromOffsetCache"),t7=Boolean(a7&&s7),nX=Boolean(iJ&&dJ),TZ=class X{constructor(Z,J={}){if(Z===null||typeof Z==="undefined"||typeof Z==="object"&&!Z.toString)throw new Error(`PostCSS received ${Z} instead of CSS string`);if(this.css=Z.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾")this.hasBOM=!0,this.css=this.css.slice(1);else this.hasBOM=!1;if(J.from)if(!nX||/^\w+:\/\//.test(J.from)||dJ(J.from))this.file=J.from;else this.file=iJ(J.from);if(nX&&t7){let Y=new n7(this.css,J);if(Y.text){this.map=Y;let Q=Y.consumer().file;if(!this.file&&Q)this.file=this.mapResolve(Q)}}if(!this.file)this.id="<input css "+o7(6)+">";if(this.map)this.map.file=this.from}error(Z,J,Y,Q={}){let V,G,K;if(J&&typeof J==="object"){let W=J,H=Y;if(typeof W.offset==="number"){let z=this.fromOffset(W.offset);J=z.line,Y=z.col}else J=W.line,Y=W.column;if(typeof H.offset==="number"){let z=this.fromOffset(H.offset);G=z.line,K=z.col}else G=H.line,K=H.column}else if(!Y){let W=this.fromOffset(J);J=W.line,Y=W.col}let q=this.origin(J,Y,G,K);if(q)V=new oX(Z,q.endLine===void 0?q.line:{column:q.column,line:q.line},q.endLine===void 0?q.column:{column:q.endColumn,line:q.endLine},q.source,q.file,Q.plugin);else V=new oX(Z,G===void 0?J:{column:Y,line:J},G===void 0?Y:{column:K,line:G},this.css,this.file,Q.plugin);if(V.input={column:Y,endColumn:K,endLine:G,line:J,source:this.css},this.file){if(GZ)V.input.url=GZ(this.file).toString();V.input.file=this.file}return V}fromOffset(Z){let J,Y;if(!this[LJ]){let V=this.css.split(`
47
+ `);Y=new Array(V.length);let G=0;for(let K=0,q=V.length;K<q;K++)Y[K]=G,G+=V[K].length+1;this[LJ]=Y}else Y=this[LJ];J=Y[Y.length-1];let Q=0;if(Z>=J)Q=Y.length-1;else{let V=Y.length-2,G;while(Q<V)if(G=Q+(V-Q>>1),Z<Y[G])V=G-1;else if(Z>=Y[G+1])Q=G+1;else{Q=G;break}}return{col:Z-Y[Q]+1,line:Q+1}}mapResolve(Z){if(/^\w+:\/\//.test(Z))return Z;return iJ(this.map.consumer().sourceRoot||this.map.root||".",Z)}origin(Z,J,Y,Q){if(!this.map)return!1;let V=this.map.consumer(),G=V.originalPositionFor({column:J,line:Z});if(!G.source)return!1;let K;if(typeof Y==="number")K=V.originalPositionFor({column:Q,line:Y});let q;if(dJ(G.source))q=GZ(G.source);else q=new URL(G.source,this.map.consumer().sourceRoot||GZ(this.map.mapFile));let W={column:G.column,endColumn:K&&K.column,endLine:K&&K.line,line:G.line,url:q.toString()};if(q.protocol==="file:")if(sX)W.file=sX(q);else throw new Error("file: protocol is not available in this PostCSS build");let H=V.sourceContentFor(G.source);if(H)W.source=H;return W}toJSON(){let Z={};for(let J of["hasBOM","css","file","id"])if(this[J]!=null)Z[J]=this[J];if(this.map){if(Z.map={...this.map},Z.map.consumerCache)Z.map.consumerCache=void 0}return Z}get from(){return this.file||this.id}},lZ=TZ;TZ.default=TZ;if(DJ&&DJ.registerInput)DJ.registerInput(TZ);var{SourceMapConsumer:U6,SourceMapGenerator:OZ}=F0,{dirname:AZ,relative:z6,resolve:B6,sep:j6}=F0,{pathToFileURL:tX}=F0,e7=lZ,ZG=Boolean(U6&&OZ),JG=Boolean(AZ&&B6&&z6&&j6),XG=class X{constructor(Z,J,Y,Q){this.stringify=Z,this.mapOpts=Y.map||{},this.root=J,this.opts=Y,this.css=Q,this.originalCSS=Q,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let Z;if(this.isInline())Z="data:application/json;base64,"+this.toBase64(this.map.toString());else if(typeof this.mapOpts.annotation==="string")Z=this.mapOpts.annotation;else if(typeof this.mapOpts.annotation==="function")Z=this.mapOpts.annotation(this.opts.to,this.root);else Z=this.outputFile()+".map";let J=`
48
48
  `;if(this.css.includes(`\r
49
49
  `))J=`\r
50
- `;this.css+=J+"/*# sourceMappingURL="+Z+" */"}applyPrevMaps(){for(let Z of this.previous()){let J=this.toUrl(this.path(Z.file)),Y=Z.root||FZ(Z.file),Q;if(this.mapOpts.sourcesContent===!1){if(Q=new YY(Z.text),Q.sourcesContent)Q.sourcesContent=null}else Q=Z.consumer();this.map.applySourceMap(Q,J,this.toUrl(this.path(Y)))}}clearAnnotation(){if(this.mapOpts.annotation===!1)return;if(this.root){let Z;for(let J=this.root.nodes.length-1;J>=0;J--){if(Z=this.root.nodes[J],Z.type!=="comment")continue;if(Z.text.indexOf("# sourceMappingURL=")===0)this.root.removeChild(J)}}else if(this.css)this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,"")}generate(){if(this.clearAnnotation(),dK&&lK&&this.isMap())return this.generateMap();else{let Z="";return this.stringify(this.root,(J)=>{Z+=J}),[Z]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let Z=this.previous()[0].consumer();Z.file=this.outputFile(),this.map=PZ.fromSourceMap(Z,{ignoreInvalidMapping:!0})}else this.map=new PZ({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});if(this.isSourcesContent())this.setSourcesContent();if(this.root&&this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline())return[this.css];else return[this.css,this.map]}generateString(){this.css="",this.map=new PZ({file:this.outputFile(),ignoreInvalidMapping:!0});let Z=1,J=1,Y="<no source>",Q={generated:{column:0,line:0},original:{column:0,line:0},source:""},V,K;this.stringify(this.root,(q,G,H)=>{if(this.css+=q,G&&H!=="end")if(Q.generated.line=Z,Q.generated.column=J-1,G.source&&G.source.start)Q.source=this.sourcePath(G),Q.original.line=G.source.start.line,Q.original.column=G.source.start.column-1,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,this.map.addMapping(Q);if(V=q.match(/\n/g),V)Z+=V.length,K=q.lastIndexOf(`
51
- `),J=q.length-K;else J+=q.length;if(G&&H!=="start"){let W=G.parent||{raws:{}};if(!(G.type==="decl"||G.type==="atrule"&&!G.nodes)||G!==W.last||W.raws.semicolon)if(G.source&&G.source.end)Q.source=this.sourcePath(G),Q.original.line=G.source.end.line,Q.original.column=G.source.end.column-1,Q.generated.line=Z,Q.generated.column=J-2,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,Q.generated.line=Z,Q.generated.column=J-1,this.map.addMapping(Q)}})}isAnnotation(){if(this.isInline())return!0;if(typeof this.mapOpts.annotation<"u")return this.mapOpts.annotation;if(this.previous().length)return this.previous().some((Z)=>Z.annotation);return!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let Z=this.mapOpts.annotation;if(typeof Z<"u"&&Z!==!0)return!1;if(this.previous().length)return this.previous().some((J)=>J.inline);return!0}isMap(){if(typeof this.opts.map<"u")return!!this.opts.map;return this.previous().length>0}isSourcesContent(){if(typeof this.mapOpts.sourcesContent<"u")return this.mapOpts.sourcesContent;if(this.previous().length)return this.previous().some((Z)=>Z.withContent());return!0}outputFile(){if(this.opts.to)return this.path(this.opts.to);else if(this.opts.from)return this.path(this.opts.from);else return"to.css"}path(Z){if(this.mapOpts.absolute)return Z;if(Z.charCodeAt(0)===60)return Z;if(/^\w+:\/\//.test(Z))return Z;let J=this.memoizedPaths.get(Z);if(J)return J;let Y=this.opts.to?FZ(this.opts.to):".";if(typeof this.mapOpts.annotation==="string")Y=FZ(VY(Y,this.mapOpts.annotation));let Q=QY(Y,Z);return this.memoizedPaths.set(Z,Q),Q}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((Z)=>{if(Z.source&&Z.source.input.map){let J=Z.source.input.map;if(!this.previousMaps.includes(J))this.previousMaps.push(J)}});else{let Z=new pK(this.originalCSS,this.opts);if(Z.map)this.previousMaps.push(Z.map)}return this.previousMaps}setSourcesContent(){let Z={};if(this.root)this.root.walk((J)=>{if(J.source){let Y=J.source.input.from;if(Y&&!Z[Y]){Z[Y]=!0;let Q=this.usesFileUrls?this.toFileUrl(Y):this.toUrl(this.path(Y));this.map.setSourceContent(Q,J.source.input.css)}}});else if(this.css){let J=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(J,this.css)}}sourcePath(Z){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);else if(this.usesFileUrls)return this.toFileUrl(Z.source.input.from);else return this.toUrl(this.path(Z.source.input.from))}toBase64(Z){if(Buffer)return Buffer.from(Z).toString("base64");else return window.btoa(unescape(encodeURIComponent(Z)))}toFileUrl(Z){let J=this.memoizedFileURLs.get(Z);if(J)return J;if(l8){let Y=l8(Z).toString();return this.memoizedFileURLs.set(Z,Y),Y}else throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(Z){let J=this.memoizedURLs.get(Z);if(J)return J;if(KY==="\\")Z=Z.replace(/\\/g,"/");let Y=encodeURI(Z).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(Z,Y),Y}},GY=iK,sK=mZ,lJ=class extends sK{constructor(Z){super(Z);this.type="comment"}},pZ=lJ;lJ.default=lJ;var{isClean:qY,my:HY}=x1,WY=uZ,UY=pZ,rK=mZ,zY,P9,F9,BY;function jY(X){return X.map((Z)=>{if(Z.nodes)Z.nodes=jY(Z.nodes);return delete Z.source,Z})}function DY(X){if(X[qY]=!1,X.proxyOf.nodes)for(let Z of X.proxyOf.nodes)DY(Z)}var R0=class X extends rK{append(...Z){for(let J of Z){let Y=this.normalize(J,this.last);for(let Q of Y)this.proxyOf.nodes.push(Q)}return this.markDirty(),this}cleanRaws(Z){if(super.cleanRaws(Z),this.nodes)for(let J of this.nodes)J.cleanRaws(Z)}each(Z){if(!this.proxyOf.nodes)return;let J=this.getIterator(),Y,Q;while(this.indexes[J]<this.proxyOf.nodes.length){if(Y=this.indexes[J],Q=Z(this.proxyOf.nodes[Y],Y),Q===!1)break;this.indexes[J]+=1}return delete this.indexes[J],Q}every(Z){return this.nodes.every(Z)}getIterator(){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;let Z=this.lastEach;return this.indexes[Z]=0,Z}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(!Z[J])return Z[J];else if(J==="each"||typeof J==="string"&&J.startsWith("walk"))return(...Y)=>{return Z[J](...Y.map((Q)=>{if(typeof Q==="function")return(V,K)=>Q(V.toProxy(),K);else return Q}))};else if(J==="every"||J==="some")return(Y)=>{return Z[J]((Q,...V)=>Y(Q.toProxy(),...V))};else if(J==="root")return()=>Z.root().toProxy();else if(J==="nodes")return Z.nodes.map((Y)=>Y.toProxy());else if(J==="first"||J==="last")return Z[J].toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="name"||J==="params"||J==="selector")Z.markDirty();return!0}}}index(Z){if(typeof Z==="number")return Z;if(Z.proxyOf)Z=Z.proxyOf;return this.proxyOf.nodes.indexOf(Z)}insertAfter(Z,J){let Y=this.index(Z),Q=this.normalize(J,this.proxyOf.nodes[Y]).reverse();Y=this.index(Z);for(let K of Q)this.proxyOf.nodes.splice(Y+1,0,K);let V;for(let K in this.indexes)if(V=this.indexes[K],Y<V)this.indexes[K]=V+Q.length;return this.markDirty(),this}insertBefore(Z,J){let Y=this.index(Z),Q=Y===0?"prepend":!1,V=this.normalize(J,this.proxyOf.nodes[Y],Q).reverse();Y=this.index(Z);for(let q of V)this.proxyOf.nodes.splice(Y,0,q);let K;for(let q in this.indexes)if(K=this.indexes[q],Y<=K)this.indexes[q]=K+V.length;return this.markDirty(),this}normalize(Z,J){if(typeof Z==="string")Z=jY(zY(Z).nodes);else if(typeof Z>"u")Z=[];else if(Array.isArray(Z)){Z=Z.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type==="root"&&this.type!=="document"){Z=Z.nodes.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type)Z=[Z];else if(Z.prop){if(typeof Z.value>"u")throw Error("Value field is missed in node creation");else if(typeof Z.value!=="string")Z.value=String(Z.value);Z=[new WY(Z)]}else if(Z.selector)Z=[new P9(Z)];else if(Z.name)Z=[new F9(Z)];else if(Z.text)Z=[new UY(Z)];else throw Error("Unknown node type in node creation");return Z.map((Q)=>{if(!Q[HY])X.rebuild(Q);if(Q=Q.proxyOf,Q.parent)Q.parent.removeChild(Q);if(Q[qY])DY(Q);if(typeof Q.raws.before>"u"){if(J&&typeof J.raws.before<"u")Q.raws.before=J.raws.before.replace(/\S/g,"")}return Q.parent=this.proxyOf,Q})}prepend(...Z){Z=Z.reverse();for(let J of Z){let Y=this.normalize(J,this.first,"prepend").reverse();for(let Q of Y)this.proxyOf.nodes.unshift(Q);for(let Q in this.indexes)this.indexes[Q]=this.indexes[Q]+Y.length}return this.markDirty(),this}push(Z){return Z.parent=this,this.proxyOf.nodes.push(Z),this}removeAll(){for(let Z of this.proxyOf.nodes)Z.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(Z){Z=this.index(Z),this.proxyOf.nodes[Z].parent=void 0,this.proxyOf.nodes.splice(Z,1);let J;for(let Y in this.indexes)if(J=this.indexes[Y],J>=Z)this.indexes[Y]=J-1;return this.markDirty(),this}replaceValues(Z,J,Y){if(!Y)Y=J,J={};return this.walkDecls((Q)=>{if(J.props&&!J.props.includes(Q.prop))return;if(J.fast&&!Q.value.includes(J.fast))return;Q.value=Q.value.replace(Z,Y)}),this.markDirty(),this}some(Z){return this.nodes.some(Z)}walk(Z){return this.each((J,Y)=>{let Q;try{Q=Z(J,Y)}catch(V){throw J.addToError(V)}if(Q!==!1&&J.walk)Q=J.walk(Z);return Q})}walkAtRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="atrule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Z.test(Y.name))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Y.name===Z)return J(Y,Q)})}walkComments(Z){return this.walk((J,Y)=>{if(J.type==="comment")return Z(J,Y)})}walkDecls(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="decl")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="decl"&&Z.test(Y.prop))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="decl"&&Y.prop===Z)return J(Y,Q)})}walkRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="rule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="rule"&&Z.test(Y.selector))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="rule"&&Y.selector===Z)return J(Y,Q)})}get first(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};R0.registerParse=(X)=>{zY=X};R0.registerRule=(X)=>{P9=X};R0.registerAtRule=(X)=>{F9=X};R0.registerRoot=(X)=>{BY=X};var m0=R0;R0.default=R0;R0.rebuild=(X)=>{if(X.type==="atrule")Object.setPrototypeOf(X,F9.prototype);else if(X.type==="rule")Object.setPrototypeOf(X,P9.prototype);else if(X.type==="decl")Object.setPrototypeOf(X,WY.prototype);else if(X.type==="comment")Object.setPrototypeOf(X,UY.prototype);else if(X.type==="root")Object.setPrototypeOf(X,BY.prototype);if(X[HY]=!0,X.nodes)X.nodes.forEach((Z)=>{R0.rebuild(Z)})};var aK=m0,LY,PY,w1=class extends aK{constructor(Z){super({type:"document",...Z});if(!this.nodes)this.nodes=[]}toResult(Z={}){return new LY(new PY,this,Z).stringify()}};w1.registerLazyResult=(X)=>{LY=X};w1.registerProcessor=(X)=>{PY=X};var O9=w1;w1.default=w1;var d8={},FY=function(Z){if(d8[Z])return;if(d8[Z]=!0,typeof console<"u"&&console.warn)console.warn(Z)},dJ=class{constructor(Z,J={}){if(this.type="warning",this.text=Z,J.node&&J.node.source){let Y=J.node.rangeBy(J);this.line=Y.start.line,this.column=Y.start.column,this.endLine=Y.end.line,this.endColumn=Y.end.column}for(let Y in J)this[Y]=J[Y]}toString(){if(this.node)return this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message;if(this.plugin)return this.plugin+": "+this.text;return this.text}},OY=dJ;dJ.default=dJ;var oK=OY,iJ=class{constructor(Z,J,Y){this.processor=Z,this.messages=[],this.root=J,this.opts=Y,this.css=void 0,this.map=void 0}toString(){return this.css}warn(Z,J={}){if(!J.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin)J.plugin=this.lastPlugin.postcssPlugin}let Y=new oK(Z,J);return this.messages.push(Y),Y}warnings(){return this.messages.filter((Z)=>Z.type==="warning")}get content(){return this.css}},A9=iJ;iJ.default=iJ;var jJ=39,i8=34,VZ=92,s8=47,KZ=10,D1=32,GZ=12,qZ=9,HZ=13,nK=91,tK=93,eK=40,Z7=41,J7=123,X7=125,Y7=59,Q7=42,V7=58,K7=64,WZ=/[\t\n\f\r "#'()/;[\\\]{}]/g,UZ=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,G7=/.[\r\n"'(/\\]/,r8=/[\da-f]/i,q7=function(Z,J={}){let Y=Z.css.valueOf(),Q=J.ignoreErrors,V,K,q,G,H,W,U,D,B,L,j=Y.length,z=0,A=[],O=[];function P(){return z}function C(M){throw Z.error("Unclosed "+M,z)}function E(){return O.length===0&&z>=j}function _(M){if(O.length)return O.pop();if(z>=j)return;let g=M?M.ignoreUnclosed:!1;switch(V=Y.charCodeAt(z),V){case KZ:case D1:case qZ:case HZ:case GZ:{K=z;do K+=1,V=Y.charCodeAt(K);while(V===D1||V===KZ||V===qZ||V===HZ||V===GZ);L=["space",Y.slice(z,K)],z=K-1;break}case nK:case tK:case J7:case X7:case V7:case Y7:case Z7:{let f=String.fromCharCode(V);L=[f,f,z];break}case eK:{if(D=A.length?A.pop()[1]:"",B=Y.charCodeAt(z+1),D==="url"&&B!==jJ&&B!==i8&&B!==D1&&B!==KZ&&B!==qZ&&B!==GZ&&B!==HZ){K=z;do{if(W=!1,K=Y.indexOf(")",K+1),K===-1)if(Q||g){K=z;break}else C("bracket");U=K;while(Y.charCodeAt(U-1)===VZ)U-=1,W=!W}while(W);L=["brackets",Y.slice(z,K+1),z,K],z=K}else if(K=Y.indexOf(")",z+1),G=Y.slice(z,K+1),K===-1||G7.test(G))L=["(","(",z];else L=["brackets",G,z,K],z=K;break}case jJ:case i8:{q=V===jJ?"'":'"',K=z;do{if(W=!1,K=Y.indexOf(q,K+1),K===-1)if(Q||g){K=z+1;break}else C("string");U=K;while(Y.charCodeAt(U-1)===VZ)U-=1,W=!W}while(W);L=["string",Y.slice(z,K+1),z,K],z=K;break}case K7:{if(WZ.lastIndex=z+1,WZ.test(Y),WZ.lastIndex===0)K=Y.length-1;else K=WZ.lastIndex-2;L=["at-word",Y.slice(z,K+1),z,K],z=K;break}case VZ:{K=z,H=!0;while(Y.charCodeAt(K+1)===VZ)K+=1,H=!H;if(V=Y.charCodeAt(K+1),H&&V!==s8&&V!==D1&&V!==KZ&&V!==qZ&&V!==HZ&&V!==GZ){if(K+=1,r8.test(Y.charAt(K))){while(r8.test(Y.charAt(K+1)))K+=1;if(Y.charCodeAt(K+1)===D1)K+=1}}L=["word",Y.slice(z,K+1),z,K],z=K;break}default:{if(V===s8&&Y.charCodeAt(z+1)===Q7){if(K=Y.indexOf("*/",z+2)+1,K===0)if(Q||g)K=Y.length;else C("comment");L=["comment",Y.slice(z,K+1),z,K],z=K}else{if(UZ.lastIndex=z+1,UZ.test(Y),UZ.lastIndex===0)K=Y.length-1;else K=UZ.lastIndex-2;L=["word",Y.slice(z,K+1),z,K],A.push(L),z=K}break}}return z++,L}function w(M){O.push(M)}return{back:w,endOfFile:E,nextToken:_,position:P}},AY=m0,NZ=class extends AY{constructor(Z){super(Z);this.type="atrule"}append(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...Z)}prepend(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...Z)}},M9=NZ;NZ.default=NZ;AY.registerAtRule(NZ);var MY=m0,CY,_Y,X1=class extends MY{constructor(Z){super(Z);if(this.type="root",!this.nodes)this.nodes=[]}normalize(Z,J,Y){let Q=super.normalize(Z);if(J){if(Y==="prepend")if(this.nodes.length>1)J.raws.before=this.nodes[1].raws.before;else delete J.raws.before;else if(this.first!==J)for(let V of Q)V.raws.before=J.raws.before}return Q}removeChild(Z,J){let Y=this.index(Z);if(!J&&Y===0&&this.nodes.length>1)this.nodes[1].raws.before=this.nodes[Y].raws.before;return super.removeChild(Z)}toResult(Z={}){return new CY(new _Y,this,Z).stringify()}};X1.registerLazyResult=(X)=>{CY=X};X1.registerProcessor=(X)=>{_Y=X};var f1=X1;X1.default=X1;MY.registerRoot(X1);var I1={comma(X){return I1.split(X,[","],!0)},space(X){let Z=[" ",`
52
- `,"\t"];return I1.split(X,Z)},split(X,Z,J){let Y=[],Q="",V=!1,K=0,q=!1,G="",H=!1;for(let W of X){if(H)H=!1;else if(W==="\\")H=!0;else if(q){if(W===G)q=!1}else if(W==='"'||W==="'")q=!0,G=W;else if(W==="(")K+=1;else if(W===")"){if(K>0)K-=1}else if(K===0){if(Z.includes(W))V=!0}if(V){if(Q!=="")Y.push(Q.trim());Q="",V=!1}else Q+=W}if(J||Q!=="")Y.push(Q.trim());return Y}},EY=I1;I1.default=I1;var wY=m0,H7=EY,TZ=class extends wY{constructor(Z){super(Z);if(this.type="rule",!this.nodes)this.nodes=[]}get selectors(){return H7.comma(this.selector)}set selectors(Z){let J=this.selector?this.selector.match(/,\s*/):null,Y=J?J[0]:","+this.raw("between","beforeOpen");this.selector=Z.join(Y)}},C9=TZ;TZ.default=TZ;wY.registerRule(TZ);var W7=uZ,U7=q7,z7=pZ,B7=M9,j7=f1,a8=C9,o8={empty:!0,space:!0};function D7(X){for(let Z=X.length-1;Z>=0;Z--){let J=X[Z],Y=J[3]||J[2];if(Y)return Y}}var L7=class{constructor(Z){this.input=Z,this.root=new j7,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:Z,start:{column:1,line:1,offset:0}}}atrule(Z){let J=new B7;if(J.name=Z[1].slice(1),J.name==="")this.unnamedAtrule(J,Z);this.init(J,Z[2]);let Y,Q,V,K=!1,q=!1,G=[],H=[];while(!this.tokenizer.endOfFile()){if(Z=this.tokenizer.nextToken(),Y=Z[0],Y==="("||Y==="[")H.push(Y==="("?")":"]");else if(Y==="{"&&H.length>0)H.push("}");else if(Y===H[H.length-1])H.pop();if(H.length===0)if(Y===";"){J.source.end=this.getPosition(Z[2]),J.source.end.offset++,this.semicolon=!0;break}else if(Y==="{"){q=!0;break}else if(Y==="}"){if(G.length>0){V=G.length-1,Q=G[V];while(Q&&Q[0]==="space")Q=G[--V];if(Q)J.source.end=this.getPosition(Q[3]||Q[2]),J.source.end.offset++}this.end(Z);break}else G.push(Z);else G.push(Z);if(this.tokenizer.endOfFile()){K=!0;break}}if(J.raws.between=this.spacesAndCommentsFromEnd(G),G.length){if(J.raws.afterName=this.spacesAndCommentsFromStart(G),this.raw(J,"params",G),K)Z=G[G.length-1],J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++,this.spaces=J.raws.between,J.raws.between=""}else J.raws.afterName="",J.params="";if(q)J.nodes=[],this.current=J}checkMissedSemicolon(Z){let J=this.colon(Z);if(J===!1)return;let Y=0,Q;for(let V=J-1;V>=0;V--)if(Q=Z[V],Q[0]!=="space"){if(Y+=1,Y===2)break}throw this.input.error("Missed semicolon",Q[0]==="word"?Q[3]+1:Q[2])}colon(Z){let J=0,Y,Q,V;for(let[K,q]of Z.entries()){if(Y=q,Q=Y[0],Q==="(")J+=1;if(Q===")")J-=1;if(J===0&&Q===":")if(!V)this.doubleColon(Y);else if(V[0]==="word"&&V[1]==="progid")continue;else return K;V=Y}return!1}comment(Z){let J=new z7;this.init(J,Z[2]),J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++;let Y=Z[1].slice(2,-2);if(/^\s*$/.test(Y))J.text="",J.raws.left=Y,J.raws.right="";else{let Q=Y.match(/^(\s*)([^]*\S)(\s*)$/);J.text=Q[2],J.raws.left=Q[1],J.raws.right=Q[3]}}createTokenizer(){this.tokenizer=U7(this.input)}decl(Z,J){let Y=new W7;this.init(Y,Z[0][2]);let Q=Z[Z.length-1];if(Q[0]===";")this.semicolon=!0,Z.pop();Y.source.end=this.getPosition(Q[3]||Q[2]||D7(Z)),Y.source.end.offset++;while(Z[0][0]!=="word"){if(Z.length===1)this.unknownWord(Z);Y.raws.before+=Z.shift()[1]}Y.source.start=this.getPosition(Z[0][2]),Y.prop="";while(Z.length){let H=Z[0][0];if(H===":"||H==="space"||H==="comment")break;Y.prop+=Z.shift()[1]}Y.raws.between="";let V;while(Z.length)if(V=Z.shift(),V[0]===":"){Y.raws.between+=V[1];break}else{if(V[0]==="word"&&/\w/.test(V[1]))this.unknownWord([V]);Y.raws.between+=V[1]}if(Y.prop[0]==="_"||Y.prop[0]==="*")Y.raws.before+=Y.prop[0],Y.prop=Y.prop.slice(1);let K=[],q;while(Z.length){if(q=Z[0][0],q!=="space"&&q!=="comment")break;K.push(Z.shift())}this.precheckMissedSemicolon(Z);for(let H=Z.length-1;H>=0;H--){if(V=Z[H],V[1].toLowerCase()==="!important"){Y.important=!0;let W=this.stringFrom(Z,H);if(W=this.spacesFromEnd(Z)+W,W!==" !important")Y.raws.important=W;break}else if(V[1].toLowerCase()==="important"){let W=Z.slice(0),U="";for(let D=H;D>0;D--){let B=W[D][0];if(U.trim().indexOf("!")===0&&B!=="space")break;U=W.pop()[1]+U}if(U.trim().indexOf("!")===0)Y.important=!0,Y.raws.important=U,Z=W}if(V[0]!=="space"&&V[0]!=="comment")break}if(Z.some((H)=>H[0]!=="space"&&H[0]!=="comment"))Y.raws.between+=K.map((H)=>H[1]).join(""),K=[];if(this.raw(Y,"value",K.concat(Z),J),Y.value.includes(":")&&!J)this.checkMissedSemicolon(Z)}doubleColon(Z){throw this.input.error("Double colon",{offset:Z[2]},{offset:Z[2]+Z[1].length})}emptyRule(Z){let J=new a8;this.init(J,Z[2]),J.selector="",J.raws.between="",this.current=J}end(Z){if(this.current.nodes&&this.current.nodes.length)this.current.raws.semicolon=this.semicolon;if(this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent)this.current.source.end=this.getPosition(Z[2]),this.current.source.end.offset++,this.current=this.current.parent;else this.unexpectedClose(Z)}endFile(){if(this.current.parent)this.unclosedBlock();if(this.current.nodes&&this.current.nodes.length)this.current.raws.semicolon=this.semicolon;this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(Z){if(this.spaces+=Z[1],this.current.nodes){let J=this.current.nodes[this.current.nodes.length-1];if(J&&J.type==="rule"&&!J.raws.ownSemicolon)J.raws.ownSemicolon=this.spaces,this.spaces=""}}getPosition(Z){let J=this.input.fromOffset(Z);return{column:J.col,line:J.line,offset:Z}}init(Z,J){if(this.current.push(Z),Z.source={input:this.input,start:this.getPosition(J)},Z.raws.before=this.spaces,this.spaces="",Z.type!=="comment")this.semicolon=!1}other(Z){let J=!1,Y=null,Q=!1,V=null,K=[],q=Z[1].startsWith("--"),G=[],H=Z;while(H){if(Y=H[0],G.push(H),Y==="("||Y==="["){if(!V)V=H;K.push(Y==="("?")":"]")}else if(q&&Q&&Y==="{"){if(!V)V=H;K.push("}")}else if(K.length===0){if(Y===";")if(Q){this.decl(G,q);return}else break;else if(Y==="{"){this.rule(G);return}else if(Y==="}"){this.tokenizer.back(G.pop()),J=!0;break}else if(Y===":")Q=!0}else if(Y===K[K.length-1]){if(K.pop(),K.length===0)V=null}H=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())J=!0;if(K.length>0)this.unclosedBracket(V);if(J&&Q){if(!q)while(G.length){if(H=G[G.length-1][0],H!=="space"&&H!=="comment")break;this.tokenizer.back(G.pop())}this.decl(G,q)}else this.unknownWord(G)}parse(){let Z;while(!this.tokenizer.endOfFile())switch(Z=this.tokenizer.nextToken(),Z[0]){case"space":this.spaces+=Z[1];break;case";":this.freeSemicolon(Z);break;case"}":this.end(Z);break;case"comment":this.comment(Z);break;case"at-word":this.atrule(Z);break;case"{":this.emptyRule(Z);break;default:this.other(Z);break}this.endFile()}precheckMissedSemicolon(){}raw(Z,J,Y,Q){let V,K,q=Y.length,G="",H=!0,W,U;for(let D=0;D<q;D+=1)if(V=Y[D],K=V[0],K==="space"&&D===q-1&&!Q)H=!1;else if(K==="comment")if(U=Y[D-1]?Y[D-1][0]:"empty",W=Y[D+1]?Y[D+1][0]:"empty",!o8[U]&&!o8[W])if(G.slice(-1)===",")H=!1;else G+=V[1];else H=!1;else G+=V[1];if(!H){let D=Y.reduce((B,L)=>B+L[1],"");Z.raws[J]={raw:D,value:G}}Z[J]=G}rule(Z){Z.pop();let J=new a8;this.init(J,Z[0][2]),J.raws.between=this.spacesAndCommentsFromEnd(Z),this.raw(J,"selector",Z),this.current=J}spacesAndCommentsFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space"&&J!=="comment")break;Y=Z.pop()[1]+Y}return Y}spacesAndCommentsFromStart(Z){let J,Y="";while(Z.length){if(J=Z[0][0],J!=="space"&&J!=="comment")break;Y+=Z.shift()[1]}return Y}spacesFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space")break;Y=Z.pop()[1]+Y}return Y}stringFrom(Z,J){let Y="";for(let Q=J;Q<Z.length;Q++)Y+=Z[Q][1];return Z.splice(J,Z.length-J),Y}unclosedBlock(){let Z=this.current.source.start;throw this.input.error("Unclosed block",Z.line,Z.column)}unclosedBracket(Z){throw this.input.error("Unclosed bracket",{offset:Z[2]},{offset:Z[2]+1})}unexpectedClose(Z){throw this.input.error("Unexpected }",{offset:Z[2]},{offset:Z[2]+1})}unknownWord(Z){throw this.input.error("Unknown word",{offset:Z[0][2]},{offset:Z[0][2]+Z[0][1].length})}unnamedAtrule(Z,J){throw this.input.error("At-rule without name",{offset:J[2]},{offset:J[2]+J[1].length})}},P7=L7,F7=m0,O7=P7,A7=cZ;function $Z(X,Z){let J=new A7(X,Z),Y=new O7(J);try{Y.parse()}catch(Q){if(Q.name==="CssSyntaxError"&&Z&&Z.from){if(/\.scss$/i.test(Z.from))Q.message+=`
50
+ `;this.css+=J+"/*# sourceMappingURL="+Z+" */"}applyPrevMaps(){for(let Z of this.previous()){let J=this.toUrl(this.path(Z.file)),Y=Z.root||AZ(Z.file),Q;if(this.mapOpts.sourcesContent===!1){if(Q=new U6(Z.text),Q.sourcesContent)Q.sourcesContent=null}else Q=Z.consumer();this.map.applySourceMap(Q,J,this.toUrl(this.path(Y)))}}clearAnnotation(){if(this.mapOpts.annotation===!1)return;if(this.root){let Z;for(let J=this.root.nodes.length-1;J>=0;J--){if(Z=this.root.nodes[J],Z.type!=="comment")continue;if(Z.text.indexOf("# sourceMappingURL=")===0)this.root.removeChild(J)}}else if(this.css)this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,"")}generate(){if(this.clearAnnotation(),JG&&ZG&&this.isMap())return this.generateMap();else{let Z="";return this.stringify(this.root,(J)=>{Z+=J}),[Z]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let Z=this.previous()[0].consumer();Z.file=this.outputFile(),this.map=OZ.fromSourceMap(Z,{ignoreInvalidMapping:!0})}else this.map=new OZ({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});if(this.isSourcesContent())this.setSourcesContent();if(this.root&&this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline())return[this.css];else return[this.css,this.map]}generateString(){this.css="",this.map=new OZ({file:this.outputFile(),ignoreInvalidMapping:!0});let Z=1,J=1,Y="<no source>",Q={generated:{column:0,line:0},original:{column:0,line:0},source:""},V,G;this.stringify(this.root,(K,q,W)=>{if(this.css+=K,q&&W!=="end")if(Q.generated.line=Z,Q.generated.column=J-1,q.source&&q.source.start)Q.source=this.sourcePath(q),Q.original.line=q.source.start.line,Q.original.column=q.source.start.column-1,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,this.map.addMapping(Q);if(V=K.match(/\n/g),V)Z+=V.length,G=K.lastIndexOf(`
51
+ `),J=K.length-G;else J+=K.length;if(q&&W!=="start"){let H=q.parent||{raws:{}};if(!(q.type==="decl"||q.type==="atrule"&&!q.nodes)||q!==H.last||H.raws.semicolon)if(q.source&&q.source.end)Q.source=this.sourcePath(q),Q.original.line=q.source.end.line,Q.original.column=q.source.end.column-1,Q.generated.line=Z,Q.generated.column=J-2,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,Q.generated.line=Z,Q.generated.column=J-1,this.map.addMapping(Q)}})}isAnnotation(){if(this.isInline())return!0;if(typeof this.mapOpts.annotation!=="undefined")return this.mapOpts.annotation;if(this.previous().length)return this.previous().some((Z)=>Z.annotation);return!0}isInline(){if(typeof this.mapOpts.inline!=="undefined")return this.mapOpts.inline;let Z=this.mapOpts.annotation;if(typeof Z!=="undefined"&&Z!==!0)return!1;if(this.previous().length)return this.previous().some((J)=>J.inline);return!0}isMap(){if(typeof this.opts.map!=="undefined")return!!this.opts.map;return this.previous().length>0}isSourcesContent(){if(typeof this.mapOpts.sourcesContent!=="undefined")return this.mapOpts.sourcesContent;if(this.previous().length)return this.previous().some((Z)=>Z.withContent());return!0}outputFile(){if(this.opts.to)return this.path(this.opts.to);else if(this.opts.from)return this.path(this.opts.from);else return"to.css"}path(Z){if(this.mapOpts.absolute)return Z;if(Z.charCodeAt(0)===60)return Z;if(/^\w+:\/\//.test(Z))return Z;let J=this.memoizedPaths.get(Z);if(J)return J;let Y=this.opts.to?AZ(this.opts.to):".";if(typeof this.mapOpts.annotation==="string")Y=AZ(B6(Y,this.mapOpts.annotation));let Q=z6(Y,Z);return this.memoizedPaths.set(Z,Q),Q}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((Z)=>{if(Z.source&&Z.source.input.map){let J=Z.source.input.map;if(!this.previousMaps.includes(J))this.previousMaps.push(J)}});else{let Z=new e7(this.originalCSS,this.opts);if(Z.map)this.previousMaps.push(Z.map)}return this.previousMaps}setSourcesContent(){let Z={};if(this.root)this.root.walk((J)=>{if(J.source){let Y=J.source.input.from;if(Y&&!Z[Y]){Z[Y]=!0;let Q=this.usesFileUrls?this.toFileUrl(Y):this.toUrl(this.path(Y));this.map.setSourceContent(Q,J.source.input.css)}}});else if(this.css){let J=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(J,this.css)}}sourcePath(Z){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);else if(this.usesFileUrls)return this.toFileUrl(Z.source.input.from);else return this.toUrl(this.path(Z.source.input.from))}toBase64(Z){if(Buffer)return Buffer.from(Z).toString("base64");else return window.btoa(unescape(encodeURIComponent(Z)))}toFileUrl(Z){let J=this.memoizedFileURLs.get(Z);if(J)return J;if(tX){let Y=tX(Z).toString();return this.memoizedFileURLs.set(Z,Y),Y}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(Z){let J=this.memoizedURLs.get(Z);if(J)return J;if(j6==="\\")Z=Z.replace(/\\/g,"/");let Y=encodeURI(Z).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(Z,Y),Y}},D6=XG,YG=cZ,rJ=class X extends YG{constructor(Z){super(Z);this.type="comment"}},dZ=rJ;rJ.default=rJ;var{isClean:L6,my:P6}=f1,F6=pZ,O6=dZ,QG=cZ,A6,A9,M9,M6;function C6(X){return X.map((Z)=>{if(Z.nodes)Z.nodes=C6(Z.nodes);return delete Z.source,Z})}function _6(X){if(X[L6]=!1,X.proxyOf.nodes)for(let Z of X.proxyOf.nodes)_6(Z)}var R0=class X extends QG{append(...Z){for(let J of Z){let Y=this.normalize(J,this.last);for(let Q of Y)this.proxyOf.nodes.push(Q)}return this.markDirty(),this}cleanRaws(Z){if(super.cleanRaws(Z),this.nodes)for(let J of this.nodes)J.cleanRaws(Z)}each(Z){if(!this.proxyOf.nodes)return;let J=this.getIterator(),Y,Q;while(this.indexes[J]<this.proxyOf.nodes.length){if(Y=this.indexes[J],Q=Z(this.proxyOf.nodes[Y],Y),Q===!1)break;this.indexes[J]+=1}return delete this.indexes[J],Q}every(Z){return this.nodes.every(Z)}getIterator(){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;let Z=this.lastEach;return this.indexes[Z]=0,Z}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(!Z[J])return Z[J];else if(J==="each"||typeof J==="string"&&J.startsWith("walk"))return(...Y)=>{return Z[J](...Y.map((Q)=>{if(typeof Q==="function")return(V,G)=>Q(V.toProxy(),G);else return Q}))};else if(J==="every"||J==="some")return(Y)=>{return Z[J]((Q,...V)=>Y(Q.toProxy(),...V))};else if(J==="root")return()=>Z.root().toProxy();else if(J==="nodes")return Z.nodes.map((Y)=>Y.toProxy());else if(J==="first"||J==="last")return Z[J].toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="name"||J==="params"||J==="selector")Z.markDirty();return!0}}}index(Z){if(typeof Z==="number")return Z;if(Z.proxyOf)Z=Z.proxyOf;return this.proxyOf.nodes.indexOf(Z)}insertAfter(Z,J){let Y=this.index(Z),Q=this.normalize(J,this.proxyOf.nodes[Y]).reverse();Y=this.index(Z);for(let G of Q)this.proxyOf.nodes.splice(Y+1,0,G);let V;for(let G in this.indexes)if(V=this.indexes[G],Y<V)this.indexes[G]=V+Q.length;return this.markDirty(),this}insertBefore(Z,J){let Y=this.index(Z),Q=Y===0?"prepend":!1,V=this.normalize(J,this.proxyOf.nodes[Y],Q).reverse();Y=this.index(Z);for(let K of V)this.proxyOf.nodes.splice(Y,0,K);let G;for(let K in this.indexes)if(G=this.indexes[K],Y<=G)this.indexes[K]=G+V.length;return this.markDirty(),this}normalize(Z,J){if(typeof Z==="string")Z=C6(A6(Z).nodes);else if(typeof Z==="undefined")Z=[];else if(Array.isArray(Z)){Z=Z.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type==="root"&&this.type!=="document"){Z=Z.nodes.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type)Z=[Z];else if(Z.prop){if(typeof Z.value==="undefined")throw new Error("Value field is missed in node creation");else if(typeof Z.value!=="string")Z.value=String(Z.value);Z=[new F6(Z)]}else if(Z.selector)Z=[new A9(Z)];else if(Z.name)Z=[new M9(Z)];else if(Z.text)Z=[new O6(Z)];else throw new Error("Unknown node type in node creation");return Z.map((Q)=>{if(!Q[P6])X.rebuild(Q);if(Q=Q.proxyOf,Q.parent)Q.parent.removeChild(Q);if(Q[L6])_6(Q);if(typeof Q.raws.before==="undefined"){if(J&&typeof J.raws.before!=="undefined")Q.raws.before=J.raws.before.replace(/\S/g,"")}return Q.parent=this.proxyOf,Q})}prepend(...Z){Z=Z.reverse();for(let J of Z){let Y=this.normalize(J,this.first,"prepend").reverse();for(let Q of Y)this.proxyOf.nodes.unshift(Q);for(let Q in this.indexes)this.indexes[Q]=this.indexes[Q]+Y.length}return this.markDirty(),this}push(Z){return Z.parent=this,this.proxyOf.nodes.push(Z),this}removeAll(){for(let Z of this.proxyOf.nodes)Z.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(Z){Z=this.index(Z),this.proxyOf.nodes[Z].parent=void 0,this.proxyOf.nodes.splice(Z,1);let J;for(let Y in this.indexes)if(J=this.indexes[Y],J>=Z)this.indexes[Y]=J-1;return this.markDirty(),this}replaceValues(Z,J,Y){if(!Y)Y=J,J={};return this.walkDecls((Q)=>{if(J.props&&!J.props.includes(Q.prop))return;if(J.fast&&!Q.value.includes(J.fast))return;Q.value=Q.value.replace(Z,Y)}),this.markDirty(),this}some(Z){return this.nodes.some(Z)}walk(Z){return this.each((J,Y)=>{let Q;try{Q=Z(J,Y)}catch(V){throw J.addToError(V)}if(Q!==!1&&J.walk)Q=J.walk(Z);return Q})}walkAtRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="atrule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Z.test(Y.name))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Y.name===Z)return J(Y,Q)})}walkComments(Z){return this.walk((J,Y)=>{if(J.type==="comment")return Z(J,Y)})}walkDecls(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="decl")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="decl"&&Z.test(Y.prop))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="decl"&&Y.prop===Z)return J(Y,Q)})}walkRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="rule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="rule"&&Z.test(Y.selector))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="rule"&&Y.selector===Z)return J(Y,Q)})}get first(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};R0.registerParse=(X)=>{A6=X};R0.registerRule=(X)=>{A9=X};R0.registerAtRule=(X)=>{M9=X};R0.registerRoot=(X)=>{M6=X};var m0=R0;R0.default=R0;R0.rebuild=(X)=>{if(X.type==="atrule")Object.setPrototypeOf(X,M9.prototype);else if(X.type==="rule")Object.setPrototypeOf(X,A9.prototype);else if(X.type==="decl")Object.setPrototypeOf(X,F6.prototype);else if(X.type==="comment")Object.setPrototypeOf(X,O6.prototype);else if(X.type==="root")Object.setPrototypeOf(X,M6.prototype);if(X[P6]=!0,X.nodes)X.nodes.forEach((Z)=>{R0.rebuild(Z)})};var VG=m0,w6,E6,R1=class X extends VG{constructor(Z){super({type:"document",...Z});if(!this.nodes)this.nodes=[]}toResult(Z={}){return new w6(new E6,this,Z).stringify()}};R1.registerLazyResult=(X)=>{w6=X};R1.registerProcessor=(X)=>{E6=X};var C9=R1;R1.default=R1;var eX={},R6=function X(Z){if(eX[Z])return;if(eX[Z]=!0,typeof console!=="undefined"&&console.warn)console.warn(Z)},aJ=class X{constructor(Z,J={}){if(this.type="warning",this.text=Z,J.node&&J.node.source){let Y=J.node.rangeBy(J);this.line=Y.start.line,this.column=Y.start.column,this.endLine=Y.end.line,this.endColumn=Y.end.column}for(let Y in J)this[Y]=J[Y]}toString(){if(this.node)return this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message;if(this.plugin)return this.plugin+": "+this.text;return this.text}},I6=aJ;aJ.default=aJ;var GG=I6,sJ=class X{constructor(Z,J,Y){this.processor=Z,this.messages=[],this.root=J,this.opts=Y,this.css=void 0,this.map=void 0}toString(){return this.css}warn(Z,J={}){if(!J.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin)J.plugin=this.lastPlugin.postcssPlugin}let Y=new GG(Z,J);return this.messages.push(Y),Y}warnings(){return this.messages.filter((Z)=>Z.type==="warning")}get content(){return this.css}},_9=sJ;sJ.default=sJ;var PJ=39,Z8=34,qZ=92,J8=47,KZ=10,D1=32,WZ=12,HZ=9,UZ=13,qG=91,KG=93,WG=40,HG=41,UG=123,zG=125,BG=59,jG=42,DG=58,LG=64,zZ=/[\t\n\f\r "#'()/;[\\\]{}]/g,BZ=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,PG=/.[\r\n"'(/\\]/,X8=/[\da-f]/i,FG=function X(Z,J={}){let Y=Z.css.valueOf(),Q=J.ignoreErrors,V,G,K,q,W,H,z,j,B,L,D=Y.length,U=0,A=[],O=[];function P(){return U}function C(M){throw Z.error("Unclosed "+M,U)}function w(){return O.length===0&&U>=D}function _(M){if(O.length)return O.pop();if(U>=D)return;let x=M?M.ignoreUnclosed:!1;switch(V=Y.charCodeAt(U),V){case KZ:case D1:case HZ:case UZ:case WZ:{G=U;do G+=1,V=Y.charCodeAt(G);while(V===D1||V===KZ||V===HZ||V===UZ||V===WZ);L=["space",Y.slice(U,G)],U=G-1;break}case qG:case KG:case UG:case zG:case DG:case BG:case HG:{let h=String.fromCharCode(V);L=[h,h,U];break}case WG:{if(j=A.length?A.pop()[1]:"",B=Y.charCodeAt(U+1),j==="url"&&B!==PJ&&B!==Z8&&B!==D1&&B!==KZ&&B!==HZ&&B!==WZ&&B!==UZ){G=U;do{if(H=!1,G=Y.indexOf(")",G+1),G===-1)if(Q||x){G=U;break}else C("bracket");z=G;while(Y.charCodeAt(z-1)===qZ)z-=1,H=!H}while(H);L=["brackets",Y.slice(U,G+1),U,G],U=G}else if(G=Y.indexOf(")",U+1),q=Y.slice(U,G+1),G===-1||PG.test(q))L=["(","(",U];else L=["brackets",q,U,G],U=G;break}case PJ:case Z8:{K=V===PJ?"'":'"',G=U;do{if(H=!1,G=Y.indexOf(K,G+1),G===-1)if(Q||x){G=U+1;break}else C("string");z=G;while(Y.charCodeAt(z-1)===qZ)z-=1,H=!H}while(H);L=["string",Y.slice(U,G+1),U,G],U=G;break}case LG:{if(zZ.lastIndex=U+1,zZ.test(Y),zZ.lastIndex===0)G=Y.length-1;else G=zZ.lastIndex-2;L=["at-word",Y.slice(U,G+1),U,G],U=G;break}case qZ:{G=U,W=!0;while(Y.charCodeAt(G+1)===qZ)G+=1,W=!W;if(V=Y.charCodeAt(G+1),W&&V!==J8&&V!==D1&&V!==KZ&&V!==HZ&&V!==UZ&&V!==WZ){if(G+=1,X8.test(Y.charAt(G))){while(X8.test(Y.charAt(G+1)))G+=1;if(Y.charCodeAt(G+1)===D1)G+=1}}L=["word",Y.slice(U,G+1),U,G],U=G;break}default:{if(V===J8&&Y.charCodeAt(U+1)===jG){if(G=Y.indexOf("*/",U+2)+1,G===0)if(Q||x)G=Y.length;else C("comment");L=["comment",Y.slice(U,G+1),U,G],U=G}else{if(BZ.lastIndex=U+1,BZ.test(Y),BZ.lastIndex===0)G=Y.length-1;else G=BZ.lastIndex-2;L=["word",Y.slice(U,G+1),U,G],A.push(L),U=G}break}}return U++,L}function E(M){O.push(M)}return{back:E,endOfFile:w,nextToken:_,position:P}},N6=m0,$Z=class X extends N6{constructor(Z){super(Z);this.type="atrule"}append(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...Z)}prepend(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...Z)}},w9=$Z;$Z.default=$Z;N6.registerAtRule($Z);var T6=m0,$6,S6,X1=class X extends T6{constructor(Z){super(Z);if(this.type="root",!this.nodes)this.nodes=[]}normalize(Z,J,Y){let Q=super.normalize(Z);if(J){if(Y==="prepend")if(this.nodes.length>1)J.raws.before=this.nodes[1].raws.before;else delete J.raws.before;else if(this.first!==J)for(let V of Q)V.raws.before=J.raws.before}return Q}removeChild(Z,J){let Y=this.index(Z);if(!J&&Y===0&&this.nodes.length>1)this.nodes[1].raws.before=this.nodes[Y].raws.before;return super.removeChild(Z)}toResult(Z={}){return new $6(new S6,this,Z).stringify()}};X1.registerLazyResult=(X)=>{$6=X};X1.registerProcessor=(X)=>{S6=X};var h1=X1;X1.default=X1;T6.registerRoot(X1);var I1={comma(X){return I1.split(X,[","],!0)},space(X){let Z=[" ",`
52
+ `,"\t"];return I1.split(X,Z)},split(X,Z,J){let Y=[],Q="",V=!1,G=0,K=!1,q="",W=!1;for(let H of X){if(W)W=!1;else if(H==="\\")W=!0;else if(K){if(H===q)K=!1}else if(H==='"'||H==="'")K=!0,q=H;else if(H==="(")G+=1;else if(H===")"){if(G>0)G-=1}else if(G===0){if(Z.includes(H))V=!0}if(V){if(Q!=="")Y.push(Q.trim());Q="",V=!1}else Q+=H}if(J||Q!=="")Y.push(Q.trim());return Y}},x6=I1;I1.default=I1;var f6=m0,OG=x6,SZ=class X extends f6{constructor(Z){super(Z);if(this.type="rule",!this.nodes)this.nodes=[]}get selectors(){return OG.comma(this.selector)}set selectors(Z){let J=this.selector?this.selector.match(/,\s*/):null,Y=J?J[0]:","+this.raw("between","beforeOpen");this.selector=Z.join(Y)}},E9=SZ;SZ.default=SZ;f6.registerRule(SZ);var AG=pZ,MG=FG,CG=dZ,_G=w9,wG=h1,Y8=E9,Q8={empty:!0,space:!0};function EG(X){for(let Z=X.length-1;Z>=0;Z--){let J=X[Z],Y=J[3]||J[2];if(Y)return Y}}var RG=class X{constructor(Z){this.input=Z,this.root=new wG,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:Z,start:{column:1,line:1,offset:0}}}atrule(Z){let J=new _G;if(J.name=Z[1].slice(1),J.name==="")this.unnamedAtrule(J,Z);this.init(J,Z[2]);let Y,Q,V,G=!1,K=!1,q=[],W=[];while(!this.tokenizer.endOfFile()){if(Z=this.tokenizer.nextToken(),Y=Z[0],Y==="("||Y==="[")W.push(Y==="("?")":"]");else if(Y==="{"&&W.length>0)W.push("}");else if(Y===W[W.length-1])W.pop();if(W.length===0)if(Y===";"){J.source.end=this.getPosition(Z[2]),J.source.end.offset++,this.semicolon=!0;break}else if(Y==="{"){K=!0;break}else if(Y==="}"){if(q.length>0){V=q.length-1,Q=q[V];while(Q&&Q[0]==="space")Q=q[--V];if(Q)J.source.end=this.getPosition(Q[3]||Q[2]),J.source.end.offset++}this.end(Z);break}else q.push(Z);else q.push(Z);if(this.tokenizer.endOfFile()){G=!0;break}}if(J.raws.between=this.spacesAndCommentsFromEnd(q),q.length){if(J.raws.afterName=this.spacesAndCommentsFromStart(q),this.raw(J,"params",q),G)Z=q[q.length-1],J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++,this.spaces=J.raws.between,J.raws.between=""}else J.raws.afterName="",J.params="";if(K)J.nodes=[],this.current=J}checkMissedSemicolon(Z){let J=this.colon(Z);if(J===!1)return;let Y=0,Q;for(let V=J-1;V>=0;V--)if(Q=Z[V],Q[0]!=="space"){if(Y+=1,Y===2)break}throw this.input.error("Missed semicolon",Q[0]==="word"?Q[3]+1:Q[2])}colon(Z){let J=0,Y,Q,V;for(let[G,K]of Z.entries()){if(Y=K,Q=Y[0],Q==="(")J+=1;if(Q===")")J-=1;if(J===0&&Q===":")if(!V)this.doubleColon(Y);else if(V[0]==="word"&&V[1]==="progid")continue;else return G;V=Y}return!1}comment(Z){let J=new CG;this.init(J,Z[2]),J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++;let Y=Z[1].slice(2,-2);if(/^\s*$/.test(Y))J.text="",J.raws.left=Y,J.raws.right="";else{let Q=Y.match(/^(\s*)([^]*\S)(\s*)$/);J.text=Q[2],J.raws.left=Q[1],J.raws.right=Q[3]}}createTokenizer(){this.tokenizer=MG(this.input)}decl(Z,J){let Y=new AG;this.init(Y,Z[0][2]);let Q=Z[Z.length-1];if(Q[0]===";")this.semicolon=!0,Z.pop();Y.source.end=this.getPosition(Q[3]||Q[2]||EG(Z)),Y.source.end.offset++;while(Z[0][0]!=="word"){if(Z.length===1)this.unknownWord(Z);Y.raws.before+=Z.shift()[1]}Y.source.start=this.getPosition(Z[0][2]),Y.prop="";while(Z.length){let W=Z[0][0];if(W===":"||W==="space"||W==="comment")break;Y.prop+=Z.shift()[1]}Y.raws.between="";let V;while(Z.length)if(V=Z.shift(),V[0]===":"){Y.raws.between+=V[1];break}else{if(V[0]==="word"&&/\w/.test(V[1]))this.unknownWord([V]);Y.raws.between+=V[1]}if(Y.prop[0]==="_"||Y.prop[0]==="*")Y.raws.before+=Y.prop[0],Y.prop=Y.prop.slice(1);let G=[],K;while(Z.length){if(K=Z[0][0],K!=="space"&&K!=="comment")break;G.push(Z.shift())}this.precheckMissedSemicolon(Z);for(let W=Z.length-1;W>=0;W--){if(V=Z[W],V[1].toLowerCase()==="!important"){Y.important=!0;let H=this.stringFrom(Z,W);if(H=this.spacesFromEnd(Z)+H,H!==" !important")Y.raws.important=H;break}else if(V[1].toLowerCase()==="important"){let H=Z.slice(0),z="";for(let j=W;j>0;j--){let B=H[j][0];if(z.trim().indexOf("!")===0&&B!=="space")break;z=H.pop()[1]+z}if(z.trim().indexOf("!")===0)Y.important=!0,Y.raws.important=z,Z=H}if(V[0]!=="space"&&V[0]!=="comment")break}if(Z.some((W)=>W[0]!=="space"&&W[0]!=="comment"))Y.raws.between+=G.map((W)=>W[1]).join(""),G=[];if(this.raw(Y,"value",G.concat(Z),J),Y.value.includes(":")&&!J)this.checkMissedSemicolon(Z)}doubleColon(Z){throw this.input.error("Double colon",{offset:Z[2]},{offset:Z[2]+Z[1].length})}emptyRule(Z){let J=new Y8;this.init(J,Z[2]),J.selector="",J.raws.between="",this.current=J}end(Z){if(this.current.nodes&&this.current.nodes.length)this.current.raws.semicolon=this.semicolon;if(this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent)this.current.source.end=this.getPosition(Z[2]),this.current.source.end.offset++,this.current=this.current.parent;else this.unexpectedClose(Z)}endFile(){if(this.current.parent)this.unclosedBlock();if(this.current.nodes&&this.current.nodes.length)this.current.raws.semicolon=this.semicolon;this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(Z){if(this.spaces+=Z[1],this.current.nodes){let J=this.current.nodes[this.current.nodes.length-1];if(J&&J.type==="rule"&&!J.raws.ownSemicolon)J.raws.ownSemicolon=this.spaces,this.spaces=""}}getPosition(Z){let J=this.input.fromOffset(Z);return{column:J.col,line:J.line,offset:Z}}init(Z,J){if(this.current.push(Z),Z.source={input:this.input,start:this.getPosition(J)},Z.raws.before=this.spaces,this.spaces="",Z.type!=="comment")this.semicolon=!1}other(Z){let J=!1,Y=null,Q=!1,V=null,G=[],K=Z[1].startsWith("--"),q=[],W=Z;while(W){if(Y=W[0],q.push(W),Y==="("||Y==="["){if(!V)V=W;G.push(Y==="("?")":"]")}else if(K&&Q&&Y==="{"){if(!V)V=W;G.push("}")}else if(G.length===0){if(Y===";")if(Q){this.decl(q,K);return}else break;else if(Y==="{"){this.rule(q);return}else if(Y==="}"){this.tokenizer.back(q.pop()),J=!0;break}else if(Y===":")Q=!0}else if(Y===G[G.length-1]){if(G.pop(),G.length===0)V=null}W=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())J=!0;if(G.length>0)this.unclosedBracket(V);if(J&&Q){if(!K)while(q.length){if(W=q[q.length-1][0],W!=="space"&&W!=="comment")break;this.tokenizer.back(q.pop())}this.decl(q,K)}else this.unknownWord(q)}parse(){let Z;while(!this.tokenizer.endOfFile())switch(Z=this.tokenizer.nextToken(),Z[0]){case"space":this.spaces+=Z[1];break;case";":this.freeSemicolon(Z);break;case"}":this.end(Z);break;case"comment":this.comment(Z);break;case"at-word":this.atrule(Z);break;case"{":this.emptyRule(Z);break;default:this.other(Z);break}this.endFile()}precheckMissedSemicolon(){}raw(Z,J,Y,Q){let V,G,K=Y.length,q="",W=!0,H,z;for(let j=0;j<K;j+=1)if(V=Y[j],G=V[0],G==="space"&&j===K-1&&!Q)W=!1;else if(G==="comment")if(z=Y[j-1]?Y[j-1][0]:"empty",H=Y[j+1]?Y[j+1][0]:"empty",!Q8[z]&&!Q8[H])if(q.slice(-1)===",")W=!1;else q+=V[1];else W=!1;else q+=V[1];if(!W){let j=Y.reduce((B,L)=>B+L[1],"");Z.raws[J]={raw:j,value:q}}Z[J]=q}rule(Z){Z.pop();let J=new Y8;this.init(J,Z[0][2]),J.raws.between=this.spacesAndCommentsFromEnd(Z),this.raw(J,"selector",Z),this.current=J}spacesAndCommentsFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space"&&J!=="comment")break;Y=Z.pop()[1]+Y}return Y}spacesAndCommentsFromStart(Z){let J,Y="";while(Z.length){if(J=Z[0][0],J!=="space"&&J!=="comment")break;Y+=Z.shift()[1]}return Y}spacesFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space")break;Y=Z.pop()[1]+Y}return Y}stringFrom(Z,J){let Y="";for(let Q=J;Q<Z.length;Q++)Y+=Z[Q][1];return Z.splice(J,Z.length-J),Y}unclosedBlock(){let Z=this.current.source.start;throw this.input.error("Unclosed block",Z.line,Z.column)}unclosedBracket(Z){throw this.input.error("Unclosed bracket",{offset:Z[2]},{offset:Z[2]+1})}unexpectedClose(Z){throw this.input.error("Unexpected }",{offset:Z[2]},{offset:Z[2]+1})}unknownWord(Z){throw this.input.error("Unknown word",{offset:Z[0][2]},{offset:Z[0][2]+Z[0][1].length})}unnamedAtrule(Z,J){throw this.input.error("At-rule without name",{offset:J[2]},{offset:J[2]+J[1].length})}},IG=RG,NG=m0,TG=IG,$G=lZ;function xZ(X,Z){let J=new $G(X,Z),Y=new TG(J);try{Y.parse()}catch(Q){if(Q.name==="CssSyntaxError"&&Z&&Z.from){if(/\.scss$/i.test(Z.from))Q.message+=`
53
53
  You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`;else if(/\.sass/i.test(Z.from))Q.message+=`
54
54
  You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`;else if(/\.less$/i.test(Z.from))Q.message+=`
55
- You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`}throw Q}return Y.root}var _9=$Z;$Z.default=$Z;F7.registerParse($Z);var{isClean:_0,my:M7}=x1,C7=GY,_7=yZ,E7=m0,w7=O9,I7=FY,n8=A9,R7=_9,N7=f1,T7={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},$7={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},S7={Once:!0,postcssPlugin:!0,prepare:!0},Y1=0;function L1(X){return typeof X==="object"&&typeof X.then==="function"}function IY(X){let Z=!1,J=T7[X.type];if(X.type==="decl")Z=X.prop.toLowerCase();else if(X.type==="atrule")Z=X.name.toLowerCase();if(Z&&X.append)return[J,J+"-"+Z,Y1,J+"Exit",J+"Exit-"+Z];else if(Z)return[J,J+"-"+Z,J+"Exit",J+"Exit-"+Z];else if(X.append)return[J,Y1,J+"Exit"];else return[J,J+"Exit"]}function t8(X){let Z;if(X.type==="document")Z=["Document",Y1,"DocumentExit"];else if(X.type==="root")Z=["Root",Y1,"RootExit"];else Z=IY(X);return{eventIndex:0,events:Z,iterator:0,node:X,visitorIndex:0,visitors:[]}}function sJ(X){if(X[_0]=!1,X.nodes)X.nodes.forEach((Z)=>sJ(Z));return X}var rJ={},Q1=class X{constructor(Z,J,Y){this.stringified=!1,this.processed=!1;let Q;if(typeof J==="object"&&J!==null&&(J.type==="root"||J.type==="document"))Q=sJ(J);else if(J instanceof X||J instanceof n8){if(Q=sJ(J.root),J.map){if(typeof Y.map>"u")Y.map={};if(!Y.map.inline)Y.map.inline=!1;Y.map.prev=J.map}}else{let V=R7;if(Y.syntax)V=Y.syntax.parse;if(Y.parser)V=Y.parser;if(V.parse)V=V.parse;try{Q=V(J,Y)}catch(K){this.processed=!0,this.error=K}if(Q&&!Q[M7])E7.rebuild(Q)}this.result=new n8(Z,Q,Y),this.helpers={...rJ,postcss:rJ,result:this.result},this.plugins=this.processor.plugins.map((V)=>{if(typeof V==="object"&&V.prepare)return{...V,...V.prepare(this.result)};else return V})}async(){if(this.error)return Promise.reject(this.error);if(this.processed)return Promise.resolve(this.result);if(!this.processing)this.processing=this.runAsync();return this.processing}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(Z,J){let Y=this.result.lastPlugin;try{if(J)J.addToError(Z);if(this.error=Z,Z.name==="CssSyntaxError"&&!Z.plugin)Z.plugin=Y.postcssPlugin,Z.setMessage();else if(Y.postcssVersion){let{postcssPlugin:Q,postcssVersion:V}=Y,K=this.result.processor.version,q=V.split("."),G=K.split(".");if(q[0]!==G[0]||parseInt(q[1])>parseInt(G[1]))console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+K+", but "+Q+" uses "+V+". Perhaps this is the source of the error below.")}}catch(Q){if(console&&console.error)console.error(Q)}return Z}prepareVisitors(){this.listeners={};let Z=(J,Y,Q)=>{if(!this.listeners[Y])this.listeners[Y]=[];this.listeners[Y].push([J,Q])};for(let J of this.plugins)if(typeof J==="object")for(let Y in J){if(!$7[Y]&&/^[A-Z]/.test(Y))throw Error(`Unknown event ${Y} in ${J.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!S7[Y]){if(typeof J[Y]==="object")for(let Q in J[Y])if(Q==="*")Z(J,Y,J[Y][Q]);else Z(J,Y+"-"+Q.toLowerCase(),J[Y][Q]);else if(typeof J[Y]==="function")Z(J,Y,J[Y])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let Z=0;Z<this.plugins.length;Z++){let J=this.plugins[Z],Y=this.runOnRoot(J);if(L1(Y))try{await Y}catch(Q){throw this.handleError(Q)}}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[_0]){Z[_0]=!0;let J=[t8(Z)];while(J.length>0){let Y=this.visitTick(J);if(L1(Y))try{await Y}catch(Q){let V=J[J.length-1].node;throw this.handleError(Q,V)}}}if(this.listeners.OnceExit)for(let[J,Y]of this.listeners.OnceExit){this.result.lastPlugin=J;try{if(Z.type==="document"){let Q=Z.nodes.map((V)=>Y(V,this.helpers));await Promise.all(Q)}else await Y(Z,this.helpers)}catch(Q){throw this.handleError(Q)}}}return this.processed=!0,this.stringify()}runOnRoot(Z){this.result.lastPlugin=Z;try{if(typeof Z==="object"&&Z.Once){if(this.result.root.type==="document"){let J=this.result.root.nodes.map((Y)=>Z.Once(Y,this.helpers));if(L1(J[0]))return Promise.all(J);return J}return Z.Once(this.result.root,this.helpers)}else if(typeof Z==="function")return Z(this.result.root,this.result)}catch(J){throw this.handleError(J)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let Z=this.result.opts,J=_7;if(Z.syntax)J=Z.syntax.stringify;if(Z.stringifier)J=Z.stringifier;if(J.stringify)J=J.stringify;let Q=new C7(J,this.result.root,this.result.opts).generate();return this.result.css=Q[0],this.result.map=Q[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let Z of this.plugins){let J=this.runOnRoot(Z);if(L1(J))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[_0])Z[_0]=!0,this.walkSync(Z);if(this.listeners.OnceExit)if(Z.type==="document")for(let J of Z.nodes)this.visitSync(this.listeners.OnceExit,J);else this.visitSync(this.listeners.OnceExit,Z)}return this.result}then(Z,J){if(!("from"in this.opts))I7("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");return this.async().then(Z,J)}toString(){return this.css}visitSync(Z,J){for(let[Y,Q]of Z){this.result.lastPlugin=Y;let V;try{V=Q(J,this.helpers)}catch(K){throw this.handleError(K,J.proxyOf)}if(J.type!=="root"&&J.type!=="document"&&!J.parent)return!0;if(L1(V))throw this.getAsyncError()}}visitTick(Z){let J=Z[Z.length-1],{node:Y,visitors:Q}=J;if(Y.type!=="root"&&Y.type!=="document"&&!Y.parent){Z.pop();return}if(Q.length>0&&J.visitorIndex<Q.length){let[K,q]=Q[J.visitorIndex];if(J.visitorIndex+=1,J.visitorIndex===Q.length)J.visitors=[],J.visitorIndex=0;this.result.lastPlugin=K;try{return q(Y.toProxy(),this.helpers)}catch(G){throw this.handleError(G,Y)}}if(J.iterator!==0){let K=J.iterator,q;while(q=Y.nodes[Y.indexes[K]])if(Y.indexes[K]+=1,!q[_0]){q[_0]=!0,Z.push(t8(q));return}J.iterator=0,delete Y.indexes[K]}let V=J.events;while(J.eventIndex<V.length){let K=V[J.eventIndex];if(J.eventIndex+=1,K===Y1){if(Y.nodes&&Y.nodes.length)Y[_0]=!0,J.iterator=Y.getIterator();return}else if(this.listeners[K]){J.visitors=this.listeners[K];return}}Z.pop()}walkSync(Z){Z[_0]=!0;let J=IY(Z);for(let Y of J)if(Y===Y1){if(Z.nodes)Z.each((Q)=>{if(!Q[_0])this.walkSync(Q)})}else{let Q=this.listeners[Y];if(Q){if(this.visitSync(Q,Z.toProxy()))return}}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};Q1.registerPostcss=(X)=>{rJ=X};var RY=Q1;Q1.default=Q1;N7.registerLazyResult(Q1);w7.registerLazyResult(Q1);var x7=GY,f7=yZ,h7=FY,k7=_9,v7=A9,aJ=class{constructor(Z,J,Y){J=J.toString(),this.stringified=!1,this._processor=Z,this._css=J,this._opts=Y,this._map=void 0;let Q,V=f7;this.result=new v7(this._processor,Q,this._opts),this.result.css=J;let K=this;Object.defineProperty(this.result,"root",{get(){return K.root}});let q=new x7(V,Q,this._opts,J);if(q.isMap()){let[G,H]=q.generate();if(G)this.result.css=G;if(H)this.result.map=H}else q.clearAnnotation(),this.result.css=q.css}async(){if(this.error)return Promise.reject(this.error);return Promise.resolve(this.result)}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}sync(){if(this.error)throw this.error;return this.result}then(Z,J){if(!("from"in this._opts))h7("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");return this.async().then(Z,J)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let Z,J=k7;try{Z=J(this._css,this._opts)}catch(Y){this.error=Y}if(this.error)throw this.error;else return this._root=Z,Z}get[Symbol.toStringTag](){return"NoWorkResult"}},b7=aJ;aJ.default=aJ;var g7=b7,y7=RY,m7=O9,u7=f1,R1=class{constructor(Z=[]){this.version="8.4.38",this.plugins=this.normalize(Z)}normalize(Z){let J=[];for(let Y of Z){if(Y.postcss===!0)Y=Y();else if(Y.postcss)Y=Y.postcss;if(typeof Y==="object"&&Array.isArray(Y.plugins))J=J.concat(Y.plugins);else if(typeof Y==="object"&&Y.postcssPlugin)J.push(Y);else if(typeof Y==="function")J.push(Y);else if(typeof Y==="object"&&(Y.parse||Y.stringify))throw Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.");else throw Error(Y+" is not a PostCSS plugin")}return J}process(Z,J={}){if(!this.plugins.length&&!J.parser&&!J.stringifier&&!J.syntax)return new g7(this,Z,J);else return new y7(this,Z,J)}use(Z){return this.plugins=this.plugins.concat(this.normalize([Z])),this}},c7=R1;R1.default=R1;u7.registerProcessor(R1);m7.registerProcessor(R1);var p7=uZ,l7=XY,d7=pZ,i7=M9,s7=cZ,r7=f1,a7=C9;function N1(X,Z){if(Array.isArray(X))return X.map((Q)=>N1(Q));let{inputs:J,...Y}=X;if(J){Z=[];for(let Q of J){let V={...Q,__proto__:s7.prototype};if(V.map)V.map={...V.map,__proto__:l7.prototype};Z.push(V)}}if(Y.nodes)Y.nodes=X.nodes.map((Q)=>N1(Q,Z));if(Y.source){let{inputId:Q,...V}=Y.source;if(Y.source=V,Q!=null)Y.source.input=Z[Q]}if(Y.type==="root")return new r7(Y);else if(Y.type==="decl")return new p7(Y);else if(Y.type==="rule")return new a7(Y);else if(Y.type==="comment")return new d7(Y);else if(Y.type==="atrule")return new i7(Y);else throw Error("Unknown node type: "+X.type)}var o7=N1;N1.default=N1;var n7=L9,NY=uZ,t7=RY,e7=m0,E9=c7,ZG=yZ,JG=o7,TY=O9,XG=OY,$Y=pZ,SY=M9,YG=A9,QG=cZ,VG=_9,KG=EY,xY=C9,fY=f1,GG=mZ;function b(...X){if(X.length===1&&Array.isArray(X[0]))X=X[0];return new E9(X)}b.plugin=function(Z,J){let Y=!1;function Q(...K){if(console&&console.warn&&!Y){if(Y=!0,console.warn(Z+`: postcss.plugin was deprecated. Migration guide:
55
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`}throw Q}return Y.root}var R9=xZ;xZ.default=xZ;NG.registerParse(xZ);var{isClean:_0,my:SG}=f1,xG=D6,fG=uZ,hG=m0,kG=C9,vG=R6,V8=_9,bG=R9,gG=h1,yG={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},mG={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},uG={Once:!0,postcssPlugin:!0,prepare:!0},Y1=0;function L1(X){return typeof X==="object"&&typeof X.then==="function"}function h6(X){let Z=!1,J=yG[X.type];if(X.type==="decl")Z=X.prop.toLowerCase();else if(X.type==="atrule")Z=X.name.toLowerCase();if(Z&&X.append)return[J,J+"-"+Z,Y1,J+"Exit",J+"Exit-"+Z];else if(Z)return[J,J+"-"+Z,J+"Exit",J+"Exit-"+Z];else if(X.append)return[J,Y1,J+"Exit"];else return[J,J+"Exit"]}function G8(X){let Z;if(X.type==="document")Z=["Document",Y1,"DocumentExit"];else if(X.type==="root")Z=["Root",Y1,"RootExit"];else Z=h6(X);return{eventIndex:0,events:Z,iterator:0,node:X,visitorIndex:0,visitors:[]}}function oJ(X){if(X[_0]=!1,X.nodes)X.nodes.forEach((Z)=>oJ(Z));return X}var nJ={},Q1=class X{constructor(Z,J,Y){this.stringified=!1,this.processed=!1;let Q;if(typeof J==="object"&&J!==null&&(J.type==="root"||J.type==="document"))Q=oJ(J);else if(J instanceof X||J instanceof V8){if(Q=oJ(J.root),J.map){if(typeof Y.map==="undefined")Y.map={};if(!Y.map.inline)Y.map.inline=!1;Y.map.prev=J.map}}else{let V=bG;if(Y.syntax)V=Y.syntax.parse;if(Y.parser)V=Y.parser;if(V.parse)V=V.parse;try{Q=V(J,Y)}catch(G){this.processed=!0,this.error=G}if(Q&&!Q[SG])hG.rebuild(Q)}this.result=new V8(Z,Q,Y),this.helpers={...nJ,postcss:nJ,result:this.result},this.plugins=this.processor.plugins.map((V)=>{if(typeof V==="object"&&V.prepare)return{...V,...V.prepare(this.result)};else return V})}async(){if(this.error)return Promise.reject(this.error);if(this.processed)return Promise.resolve(this.result);if(!this.processing)this.processing=this.runAsync();return this.processing}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(Z,J){let Y=this.result.lastPlugin;try{if(J)J.addToError(Z);if(this.error=Z,Z.name==="CssSyntaxError"&&!Z.plugin)Z.plugin=Y.postcssPlugin,Z.setMessage();else if(Y.postcssVersion){let{postcssPlugin:Q,postcssVersion:V}=Y,G=this.result.processor.version,K=V.split("."),q=G.split(".");if(K[0]!==q[0]||parseInt(K[1])>parseInt(q[1]))console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+G+", but "+Q+" uses "+V+". Perhaps this is the source of the error below.")}}catch(Q){if(console&&console.error)console.error(Q)}return Z}prepareVisitors(){this.listeners={};let Z=(J,Y,Q)=>{if(!this.listeners[Y])this.listeners[Y]=[];this.listeners[Y].push([J,Q])};for(let J of this.plugins)if(typeof J==="object")for(let Y in J){if(!mG[Y]&&/^[A-Z]/.test(Y))throw new Error(`Unknown event ${Y} in ${J.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!uG[Y]){if(typeof J[Y]==="object")for(let Q in J[Y])if(Q==="*")Z(J,Y,J[Y][Q]);else Z(J,Y+"-"+Q.toLowerCase(),J[Y][Q]);else if(typeof J[Y]==="function")Z(J,Y,J[Y])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let Z=0;Z<this.plugins.length;Z++){let J=this.plugins[Z],Y=this.runOnRoot(J);if(L1(Y))try{await Y}catch(Q){throw this.handleError(Q)}}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[_0]){Z[_0]=!0;let J=[G8(Z)];while(J.length>0){let Y=this.visitTick(J);if(L1(Y))try{await Y}catch(Q){let V=J[J.length-1].node;throw this.handleError(Q,V)}}}if(this.listeners.OnceExit)for(let[J,Y]of this.listeners.OnceExit){this.result.lastPlugin=J;try{if(Z.type==="document"){let Q=Z.nodes.map((V)=>Y(V,this.helpers));await Promise.all(Q)}else await Y(Z,this.helpers)}catch(Q){throw this.handleError(Q)}}}return this.processed=!0,this.stringify()}runOnRoot(Z){this.result.lastPlugin=Z;try{if(typeof Z==="object"&&Z.Once){if(this.result.root.type==="document"){let J=this.result.root.nodes.map((Y)=>Z.Once(Y,this.helpers));if(L1(J[0]))return Promise.all(J);return J}return Z.Once(this.result.root,this.helpers)}else if(typeof Z==="function")return Z(this.result.root,this.result)}catch(J){throw this.handleError(J)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let Z=this.result.opts,J=fG;if(Z.syntax)J=Z.syntax.stringify;if(Z.stringifier)J=Z.stringifier;if(J.stringify)J=J.stringify;let Q=new xG(J,this.result.root,this.result.opts).generate();return this.result.css=Q[0],this.result.map=Q[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let Z of this.plugins){let J=this.runOnRoot(Z);if(L1(J))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[_0])Z[_0]=!0,this.walkSync(Z);if(this.listeners.OnceExit)if(Z.type==="document")for(let J of Z.nodes)this.visitSync(this.listeners.OnceExit,J);else this.visitSync(this.listeners.OnceExit,Z)}return this.result}then(Z,J){if(!("from"in this.opts))vG("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");return this.async().then(Z,J)}toString(){return this.css}visitSync(Z,J){for(let[Y,Q]of Z){this.result.lastPlugin=Y;let V;try{V=Q(J,this.helpers)}catch(G){throw this.handleError(G,J.proxyOf)}if(J.type!=="root"&&J.type!=="document"&&!J.parent)return!0;if(L1(V))throw this.getAsyncError()}}visitTick(Z){let J=Z[Z.length-1],{node:Y,visitors:Q}=J;if(Y.type!=="root"&&Y.type!=="document"&&!Y.parent){Z.pop();return}if(Q.length>0&&J.visitorIndex<Q.length){let[G,K]=Q[J.visitorIndex];if(J.visitorIndex+=1,J.visitorIndex===Q.length)J.visitors=[],J.visitorIndex=0;this.result.lastPlugin=G;try{return K(Y.toProxy(),this.helpers)}catch(q){throw this.handleError(q,Y)}}if(J.iterator!==0){let G=J.iterator,K;while(K=Y.nodes[Y.indexes[G]])if(Y.indexes[G]+=1,!K[_0]){K[_0]=!0,Z.push(G8(K));return}J.iterator=0,delete Y.indexes[G]}let V=J.events;while(J.eventIndex<V.length){let G=V[J.eventIndex];if(J.eventIndex+=1,G===Y1){if(Y.nodes&&Y.nodes.length)Y[_0]=!0,J.iterator=Y.getIterator();return}else if(this.listeners[G]){J.visitors=this.listeners[G];return}}Z.pop()}walkSync(Z){Z[_0]=!0;let J=h6(Z);for(let Y of J)if(Y===Y1){if(Z.nodes)Z.each((Q)=>{if(!Q[_0])this.walkSync(Q)})}else{let Q=this.listeners[Y];if(Q){if(this.visitSync(Q,Z.toProxy()))return}}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};Q1.registerPostcss=(X)=>{nJ=X};var k6=Q1;Q1.default=Q1;gG.registerLazyResult(Q1);kG.registerLazyResult(Q1);var cG=D6,pG=uZ,lG=R6,dG=R9,iG=_9,tJ=class X{constructor(Z,J,Y){J=J.toString(),this.stringified=!1,this._processor=Z,this._css=J,this._opts=Y,this._map=void 0;let Q,V=pG;this.result=new iG(this._processor,Q,this._opts),this.result.css=J;let G=this;Object.defineProperty(this.result,"root",{get(){return G.root}});let K=new cG(V,Q,this._opts,J);if(K.isMap()){let[q,W]=K.generate();if(q)this.result.css=q;if(W)this.result.map=W}else K.clearAnnotation(),this.result.css=K.css}async(){if(this.error)return Promise.reject(this.error);return Promise.resolve(this.result)}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}sync(){if(this.error)throw this.error;return this.result}then(Z,J){if(!("from"in this._opts))lG("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");return this.async().then(Z,J)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let Z,J=dG;try{Z=J(this._css,this._opts)}catch(Y){this.error=Y}if(this.error)throw this.error;else return this._root=Z,Z}get[Symbol.toStringTag](){return"NoWorkResult"}},rG=tJ;tJ.default=tJ;var aG=rG,sG=k6,oG=C9,nG=h1,N1=class X{constructor(Z=[]){this.version="8.4.38",this.plugins=this.normalize(Z)}normalize(Z){let J=[];for(let Y of Z){if(Y.postcss===!0)Y=Y();else if(Y.postcss)Y=Y.postcss;if(typeof Y==="object"&&Array.isArray(Y.plugins))J=J.concat(Y.plugins);else if(typeof Y==="object"&&Y.postcssPlugin)J.push(Y);else if(typeof Y==="function")J.push(Y);else if(typeof Y==="object"&&(Y.parse||Y.stringify))throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.");else throw new Error(Y+" is not a PostCSS plugin")}return J}process(Z,J={}){if(!this.plugins.length&&!J.parser&&!J.stringifier&&!J.syntax)return new aG(this,Z,J);else return new sG(this,Z,J)}use(Z){return this.plugins=this.plugins.concat(this.normalize([Z])),this}},tG=N1;N1.default=N1;nG.registerProcessor(N1);oG.registerProcessor(N1);var eG=pZ,Zq=H6,Jq=dZ,Xq=w9,Yq=lZ,Qq=h1,Vq=E9;function T1(X,Z){if(Array.isArray(X))return X.map((Q)=>T1(Q));let{inputs:J,...Y}=X;if(J){Z=[];for(let Q of J){let V={...Q,__proto__:Yq.prototype};if(V.map)V.map={...V.map,__proto__:Zq.prototype};Z.push(V)}}if(Y.nodes)Y.nodes=X.nodes.map((Q)=>T1(Q,Z));if(Y.source){let{inputId:Q,...V}=Y.source;if(Y.source=V,Q!=null)Y.source.input=Z[Q]}if(Y.type==="root")return new Qq(Y);else if(Y.type==="decl")return new eG(Y);else if(Y.type==="rule")return new Vq(Y);else if(Y.type==="comment")return new Jq(Y);else if(Y.type==="atrule")return new Xq(Y);else throw new Error("Unknown node type: "+X.type)}var Gq=T1;T1.default=T1;var qq=O9,v6=pZ,Kq=k6,Wq=m0,I9=tG,Hq=uZ,Uq=Gq,b6=C9,zq=I6,g6=dZ,y6=w9,Bq=_9,jq=lZ,Dq=R9,Lq=x6,m6=E9,u6=h1,Pq=cZ;function g(...X){if(X.length===1&&Array.isArray(X[0]))X=X[0];return new I9(X)}g.plugin=function X(Z,J){let Y=!1;function Q(...G){if(console&&console.warn&&!Y){if(Y=!0,console.warn(Z+`: postcss.plugin was deprecated. Migration guide:
56
56
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn"))console.warn(Z+`: 里面 postcss.plugin 被弃用. 迁移指南:
57
- https://www.w3ctech.com/topic/2226`)}let q=J(...K);return q.postcssPlugin=Z,q.postcssVersion=new E9().version,q}let V;return Object.defineProperty(Q,"postcss",{get(){if(!V)V=Q();return V}}),Q.process=function(K,q,G){return b([Q(G)]).process(K,q)},Q};b.stringify=ZG;b.parse=VG;b.fromJSON=JG;b.list=KG;b.comment=(X)=>new $Y(X);b.atRule=(X)=>new SY(X);b.decl=(X)=>new NY(X);b.rule=(X)=>new xY(X);b.root=(X)=>new fY(X);b.document=(X)=>new TY(X);b.CssSyntaxError=n7;b.Declaration=NY;b.Container=e7;b.Processor=E9;b.Document=TY;b.Comment=$Y;b.Warning=XG;b.AtRule=SY;b.Result=YG;b.Input=QG;b.Rule=xY;b.Root=fY;b.Node=GG;t7.registerPostcss(b);var qG=b;b.default=b;var i=FK(qG);i.stringify;i.fromJSON;i.plugin;i.parse;i.list;i.document;i.comment;i.atRule;i.rule;i.decl;i.root;i.CssSyntaxError;i.Declaration;i.Container;i.Processor;i.Document;i.Comment;i.Warning;i.AtRule;i.Result;i.Input;i.Rule;i.Root;i.Node;class w9{constructor(...X){z0(this,"parentElement",null),z0(this,"parentNode",null),z0(this,"ownerDocument"),z0(this,"firstChild",null),z0(this,"lastChild",null),z0(this,"previousSibling",null),z0(this,"nextSibling",null),z0(this,"ELEMENT_NODE",1),z0(this,"TEXT_NODE",3),z0(this,"nodeType"),z0(this,"nodeName"),z0(this,"RRNodeType")}get childNodes(){let X=[],Z=this.firstChild;while(Z)X.push(Z),Z=Z.nextSibling;return X}contains(X){if(!(X instanceof w9))return!1;else if(X.ownerDocument!==this.ownerDocument)return!1;else if(X===this)return!0;while(X.parentNode){if(X.parentNode===this)return!0;X=X.parentNode}return!1}appendChild(X){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(X,Z){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(X){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}var e8={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ZX={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},zZ={},HG=()=>{return!!globalThis.Zone};function I9(X){if(zZ[X])return zZ[X];let Z=globalThis[X],J=Z.prototype,Y=X in e8?e8[X]:void 0,Q=Boolean(Y&&Y.every((q)=>{var G,H;return Boolean((H=(G=Object.getOwnPropertyDescriptor(J,q))==null?void 0:G.get)==null?void 0:H.toString().includes("[native code]"))})),V=X in ZX?ZX[X]:void 0,K=Boolean(V&&V.every((q)=>{var G;return typeof J[q]==="function"&&((G=J[q])==null?void 0:G.toString().includes("[native code]"))}));if(Q&&K&&!HG())return zZ[X]=Z.prototype,Z.prototype;try{let q=document.createElement("iframe");document.body.appendChild(q);let G=q.contentWindow;if(!G)return Z.prototype;let H=G[X].prototype;if(document.body.removeChild(q),!H)return J;return zZ[X]=H}catch{return J}}var DJ={};function h0(X,Z,J){var Y;let Q=`${X}.${String(J)}`;if(DJ[Q])return DJ[Q].call(Z);let V=I9(X),K=(Y=Object.getOwnPropertyDescriptor(V,J))==null?void 0:Y.get;if(!K)return Z[J];return DJ[Q]=K,K.call(Z)}var LJ={};function hY(X,Z,J){let Y=`${X}.${String(J)}`;if(LJ[Y])return LJ[Y].bind(Z);let V=I9(X)[J];if(typeof V!=="function")return Z[J];return LJ[Y]=V,V.bind(Z)}function WG(X){return h0("Node",X,"childNodes")}function UG(X){return h0("Node",X,"parentNode")}function zG(X){return h0("Node",X,"parentElement")}function BG(X){return h0("Node",X,"textContent")}function jG(X,Z){return hY("Node",X,"contains")(Z)}function DG(X){return hY("Node",X,"getRootNode")()}function LG(X){if(!X||!("host"in X))return null;return h0("ShadowRoot",X,"host")}function PG(X){return X.styleSheets}function FG(X){if(!X||!("shadowRoot"in X))return null;return h0("Element",X,"shadowRoot")}function OG(X,Z){return h0("Element",X,"querySelector")(Z)}function AG(X,Z){return h0("Element",X,"querySelectorAll")(Z)}function kY(){return I9("MutationObserver").constructor}var N={childNodes:WG,parentNode:UG,parentElement:zG,textContent:BG,contains:jG,getRootNode:DG,host:LG,styleSheets:PG,shadowRoot:FG,querySelector:OG,querySelectorAll:AG,mutationObserver:kY};function Y0(X,Z,J=document){let Y={capture:!0,passive:!0};return J.addEventListener(X,Z,Y),()=>J.removeEventListener(X,Z,Y)}var s0=`Please stop import mirror directly. Instead of that,\r
57
+ https://www.w3ctech.com/topic/2226`)}let K=J(...G);return K.postcssPlugin=Z,K.postcssVersion=new I9().version,K}let V;return Object.defineProperty(Q,"postcss",{get(){if(!V)V=Q();return V}}),Q.process=function(G,K,q){return g([Q(q)]).process(G,K)},Q};g.stringify=Hq;g.parse=Dq;g.fromJSON=Uq;g.list=Lq;g.comment=(X)=>new g6(X);g.atRule=(X)=>new y6(X);g.decl=(X)=>new v6(X);g.rule=(X)=>new m6(X);g.root=(X)=>new u6(X);g.document=(X)=>new b6(X);g.CssSyntaxError=qq;g.Declaration=v6;g.Container=Wq;g.Processor=I9;g.Document=b6;g.Comment=g6;g.Warning=zq;g.AtRule=y6;g.Result=Bq;g.Input=jq;g.Rule=m6;g.Root=u6;g.Node=Pq;Kq.registerPostcss(g);var Fq=g;g.default=g;var i=N7(Fq);i.stringify;i.fromJSON;i.plugin;i.parse;i.list;i.document;i.comment;i.atRule;i.rule;i.decl;i.root;i.CssSyntaxError;i.Declaration;i.Container;i.Processor;i.Document;i.Comment;i.Warning;i.AtRule;i.Result;i.Input;i.Rule;i.Root;i.Node;class N9{constructor(...X){z0(this,"parentElement",null),z0(this,"parentNode",null),z0(this,"ownerDocument"),z0(this,"firstChild",null),z0(this,"lastChild",null),z0(this,"previousSibling",null),z0(this,"nextSibling",null),z0(this,"ELEMENT_NODE",1),z0(this,"TEXT_NODE",3),z0(this,"nodeType"),z0(this,"nodeName"),z0(this,"RRNodeType")}get childNodes(){let X=[],Z=this.firstChild;while(Z)X.push(Z),Z=Z.nextSibling;return X}contains(X){if(!(X instanceof N9))return!1;else if(X.ownerDocument!==this.ownerDocument)return!1;else if(X===this)return!0;while(X.parentNode){if(X.parentNode===this)return!0;X=X.parentNode}return!1}appendChild(X){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(X,Z){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(X){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}var q8={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},K8={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},jZ={},Oq=()=>{return!!globalThis.Zone};function T9(X){if(jZ[X])return jZ[X];let Z=globalThis[X],J=Z.prototype,Y=X in q8?q8[X]:void 0,Q=Boolean(Y&&Y.every((K)=>{var q,W;return Boolean((W=(q=Object.getOwnPropertyDescriptor(J,K))==null?void 0:q.get)==null?void 0:W.toString().includes("[native code]"))})),V=X in K8?K8[X]:void 0,G=Boolean(V&&V.every((K)=>{var q;return typeof J[K]==="function"&&((q=J[K])==null?void 0:q.toString().includes("[native code]"))}));if(Q&&G&&!Oq())return jZ[X]=Z.prototype,Z.prototype;try{let K=document.createElement("iframe");document.body.appendChild(K);let q=K.contentWindow;if(!q)return Z.prototype;let W=q[X].prototype;if(document.body.removeChild(K),!W)return J;return jZ[X]=W}catch{return J}}var FJ={};function f0(X,Z,J){var Y;let Q=`${X}.${String(J)}`;if(FJ[Q])return FJ[Q].call(Z);let V=T9(X),G=(Y=Object.getOwnPropertyDescriptor(V,J))==null?void 0:Y.get;if(!G)return Z[J];return FJ[Q]=G,G.call(Z)}var OJ={};function c6(X,Z,J){let Y=`${X}.${String(J)}`;if(OJ[Y])return OJ[Y].bind(Z);let V=T9(X)[J];if(typeof V!=="function")return Z[J];return OJ[Y]=V,V.bind(Z)}function Aq(X){return f0("Node",X,"childNodes")}function Mq(X){return f0("Node",X,"parentNode")}function Cq(X){return f0("Node",X,"parentElement")}function _q(X){return f0("Node",X,"textContent")}function wq(X,Z){return c6("Node",X,"contains")(Z)}function Eq(X){return c6("Node",X,"getRootNode")()}function Rq(X){if(!X||!("host"in X))return null;return f0("ShadowRoot",X,"host")}function Iq(X){return X.styleSheets}function Nq(X){if(!X||!("shadowRoot"in X))return null;return f0("Element",X,"shadowRoot")}function Tq(X,Z){return f0("Element",X,"querySelector")(Z)}function $q(X,Z){return f0("Element",X,"querySelectorAll")(Z)}function p6(){return T9("MutationObserver").constructor}var I={childNodes:Aq,parentNode:Mq,parentElement:Cq,textContent:_q,contains:wq,getRootNode:Eq,host:Rq,styleSheets:Iq,shadowRoot:Nq,querySelector:Tq,querySelectorAll:$q,mutationObserver:p6};function Y0(X,Z,J=document){let Y={capture:!0,passive:!0};return J.addEventListener(X,Z,Y),()=>J.removeEventListener(X,Z,Y)}var a0=`Please stop import mirror directly. Instead of that,\r
58
58
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
59
- or you can use record.mirror to access the mirror instance during recording.`,JX={map:{},getId(){return console.error(s0),-1},getNode(){return console.error(s0),null},removeNodeFromMap(){console.error(s0)},has(){return console.error(s0),!1},reset(){console.error(s0)}};if(typeof window<"u"&&window.Proxy&&window.Reflect)JX=new Proxy(JX,{get(X,Z,J){if(Z==="map")console.error(s0);return Reflect.get(X,Z,J)}});function T1(X,Z,J={}){let Y=null,Q=0;return function(...V){let K=Date.now();if(!Q&&J.leading===!1)Q=K;let q=Z-(K-Q),G=this;if(q<=0||q>Z){if(Y)clearTimeout(Y),Y=null;Q=K,X.apply(G,V)}else if(!Y&&J.trailing!==!1)Y=setTimeout(()=>{Q=J.leading===!1?0:Date.now(),Y=null,X.apply(G,V)},q)}}function lZ(X,Z,J,Y,Q=window){let V=Q.Object.getOwnPropertyDescriptor(X,Z);return Q.Object.defineProperty(X,Z,Y?J:{set(K){if(setTimeout(()=>{J.set.call(this,K)},0),V&&V.set)V.set.call(this,K)}}),()=>lZ(X,Z,V||{},!0)}function K1(X,Z,J){try{if(!(Z in X))return()=>{};let Y=X[Z],Q=J(Y);if(typeof Q==="function")Q.prototype=Q.prototype||{},Object.defineProperties(Q,{__rrweb_original__:{enumerable:!1,value:Y}});return X[Z]=Q,()=>{X[Z]=Y}}catch{return()=>{}}}var SZ=Date.now;if(!/[1-9][0-9]{12}/.test(Date.now().toString()))SZ=()=>new Date().getTime();function vY(X){var Z,J,Y,Q;let V=X.document;return{left:V.scrollingElement?V.scrollingElement.scrollLeft:X.pageXOffset!==void 0?X.pageXOffset:V.documentElement.scrollLeft||(V==null?void 0:V.body)&&((Z=N.parentElement(V.body))==null?void 0:Z.scrollLeft)||((J=V==null?void 0:V.body)==null?void 0:J.scrollLeft)||0,top:V.scrollingElement?V.scrollingElement.scrollTop:X.pageYOffset!==void 0?X.pageYOffset:(V==null?void 0:V.documentElement.scrollTop)||(V==null?void 0:V.body)&&((Y=N.parentElement(V.body))==null?void 0:Y.scrollTop)||((Q=V==null?void 0:V.body)==null?void 0:Q.scrollTop)||0}}function bY(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function gY(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function yY(X){if(!X)return null;return X.nodeType===X.ELEMENT_NODE?X:N.parentElement(X)}function Q0(X,Z,J,Y){if(!X)return!1;let Q=yY(X);if(!Q)return!1;try{if(typeof Z==="string"){if(Q.classList.contains(Z))return!0;if(Y&&Q.closest("."+Z)!==null)return!0}else if(CZ(Q,Z,Y))return!0}catch(V){}if(J){if(Q.matches(J))return!0;if(Y&&Q.closest(J)!==null)return!0}return!1}function MG(X,Z){return Z.getId(X)!==-1}function PJ(X,Z,J){if(X.tagName==="TITLE"&&J.headTitleMutations)return!0;return Z.getId(X)===A1}function mY(X,Z){if(P1(X))return!1;let J=Z.getId(X);if(!Z.has(J))return!0;let Y=N.parentNode(X);if(Y&&Y.nodeType===X.DOCUMENT_NODE)return!1;if(!Y)return!0;return mY(Y,Z)}function oJ(X){return Boolean(X.changedTouches)}function CG(X=window){if("NodeList"in X&&!X.NodeList.prototype.forEach)X.NodeList.prototype.forEach=Array.prototype.forEach;if("DOMTokenList"in X&&!X.DOMTokenList.prototype.forEach)X.DOMTokenList.prototype.forEach=Array.prototype.forEach}function uY(X,Z){return Boolean(X.nodeName==="IFRAME"&&Z.getMeta(X))}function cY(X,Z){return Boolean(X.nodeName==="LINK"&&X.nodeType===X.ELEMENT_NODE&&X.getAttribute&&X.getAttribute("rel")==="stylesheet"&&Z.getMeta(X))}function nJ(X){if(!X)return!1;if(X instanceof w9&&"shadowRoot"in X)return Boolean(X.shadowRoot);return Boolean(N.shadowRoot(X))}class pY{constructor(){F(this,"id",1),F(this,"styleIDMap",new WeakMap),F(this,"idStyleMap",new Map)}getId(X){return this.styleIDMap.get(X)??-1}has(X){return this.styleIDMap.has(X)}add(X,Z){if(this.has(X))return this.getId(X);let J;if(Z===void 0)J=this.id++;else J=Z;return this.styleIDMap.set(X,J),this.idStyleMap.set(J,X),J}getStyle(X){return this.idStyleMap.get(X)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function lY(X){var Z;let J=null;if("getRootNode"in X&&((Z=N.getRootNode(X))==null?void 0:Z.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&N.host(N.getRootNode(X)))J=N.host(N.getRootNode(X));return J}function _G(X){let Z=X,J;while(J=lY(Z))Z=J;return Z}function EG(X){let Z=X.ownerDocument;if(!Z)return!1;let J=_G(X);return N.contains(Z,J)}function dY(X){let Z=X.ownerDocument;if(!Z)return!1;return N.contains(Z,X)||EG(X)}var x=((X)=>{return X[X.DomContentLoaded=0]="DomContentLoaded",X[X.Load=1]="Load",X[X.FullSnapshot=2]="FullSnapshot",X[X.IncrementalSnapshot=3]="IncrementalSnapshot",X[X.Meta=4]="Meta",X[X.Custom=5]="Custom",X[X.Plugin=6]="Plugin",X})(x||{}),T=((X)=>{return X[X.Mutation=0]="Mutation",X[X.MouseMove=1]="MouseMove",X[X.MouseInteraction=2]="MouseInteraction",X[X.Scroll=3]="Scroll",X[X.ViewportResize=4]="ViewportResize",X[X.Input=5]="Input",X[X.TouchMove=6]="TouchMove",X[X.MediaInteraction=7]="MediaInteraction",X[X.StyleSheetRule=8]="StyleSheetRule",X[X.CanvasMutation=9]="CanvasMutation",X[X.Font=10]="Font",X[X.Log=11]="Log",X[X.Drag=12]="Drag",X[X.StyleDeclaration=13]="StyleDeclaration",X[X.Selection=14]="Selection",X[X.AdoptedStyleSheet=15]="AdoptedStyleSheet",X[X.CustomElement=16]="CustomElement",X})(T||{}),q0=((X)=>{return X[X.MouseUp=0]="MouseUp",X[X.MouseDown=1]="MouseDown",X[X.Click=2]="Click",X[X.ContextMenu=3]="ContextMenu",X[X.DblClick=4]="DblClick",X[X.Focus=5]="Focus",X[X.Blur=6]="Blur",X[X.TouchStart=7]="TouchStart",X[X.TouchMove_Departed=8]="TouchMove_Departed",X[X.TouchEnd=9]="TouchEnd",X[X.TouchCancel=10]="TouchCancel",X})(q0||{}),w0=((X)=>{return X[X.Mouse=0]="Mouse",X[X.Pen=1]="Pen",X[X.Touch=2]="Touch",X})(w0||{}),V1=((X)=>{return X[X["2D"]=0]="2D",X[X.WebGL=1]="WebGL",X[X.WebGL2=2]="WebGL2",X})(V1||{}),r0=((X)=>{return X[X.Play=0]="Play",X[X.Pause=1]="Pause",X[X.Seeked=2]="Seeked",X[X.VolumeChange=3]="VolumeChange",X[X.RateChange=4]="RateChange",X})(r0||{});var iY=((X)=>{return X[X.Document=0]="Document",X[X.DocumentType=1]="DocumentType",X[X.Element=2]="Element",X[X.Text=3]="Text",X[X.CDATA=4]="CDATA",X[X.Comment=5]="Comment",X})(iY||{});function XX(X){return"__ln"in X}class sY{constructor(){F(this,"length",0),F(this,"head",null),F(this,"tail",null)}get(X){if(X>=this.length)throw Error("Position outside of list range");let Z=this.head;for(let J=0;J<X;J++)Z=(Z==null?void 0:Z.next)||null;return Z}addNode(X){let Z={value:X,previous:null,next:null};if(X.__ln=Z,X.previousSibling&&XX(X.previousSibling)){let J=X.previousSibling.__ln.next;if(Z.next=J,Z.previous=X.previousSibling.__ln,X.previousSibling.__ln.next=Z,J)J.previous=Z}else if(X.nextSibling&&XX(X.nextSibling)&&X.nextSibling.__ln.previous){let J=X.nextSibling.__ln.previous;if(Z.previous=J,Z.next=X.nextSibling.__ln,X.nextSibling.__ln.previous=Z,J)J.next=Z}else{if(this.head)this.head.previous=Z;Z.next=this.head,this.head=Z}if(Z.next===null)this.tail=Z;this.length++}removeNode(X){let Z=X.__ln;if(!this.head)return;if(!Z.previous)if(this.head=Z.next,this.head)this.head.previous=null;else this.tail=null;else if(Z.previous.next=Z.next,Z.next)Z.next.previous=Z.previous;else this.tail=Z.previous;if(X.__ln)delete X.__ln;this.length--}}var YX=(X,Z)=>`${X}@${Z}`;class rY{constructor(){F(this,"frozen",!1),F(this,"locked",!1),F(this,"texts",[]),F(this,"attributes",[]),F(this,"attributeMap",new WeakMap),F(this,"removes",[]),F(this,"mapRemoves",[]),F(this,"movedMap",{}),F(this,"addedSet",new Set),F(this,"movedSet",new Set),F(this,"droppedSet",new Set),F(this,"removesSubTreeCache",new Set),F(this,"mutationCb"),F(this,"blockClass"),F(this,"blockSelector"),F(this,"maskTextClass"),F(this,"maskTextSelector"),F(this,"inlineStylesheet"),F(this,"maskInputOptions"),F(this,"maskTextFn"),F(this,"maskInputFn"),F(this,"keepIframeSrcFn"),F(this,"recordCanvas"),F(this,"inlineImages"),F(this,"slimDOMOptions"),F(this,"dataURLOptions"),F(this,"doc"),F(this,"mirror"),F(this,"iframeManager"),F(this,"stylesheetManager"),F(this,"shadowDomManager"),F(this,"canvasManager"),F(this,"processedNodeManager"),F(this,"unattachedDoc"),F(this,"processMutations",(X)=>{X.forEach(this.processMutation),this.emit()}),F(this,"emit",()=>{if(this.frozen||this.locked)return;let X=[],Z=new Set,J=new sY,Y=(q)=>{let G=q,H=A1;while(H===A1)G=G&&G.nextSibling,H=G&&this.mirror.getId(G);return H},Q=(q)=>{let G=N.parentNode(q);if(!G||!dY(q))return;let H=!1;if(q.nodeType===Node.TEXT_NODE){let B=G.tagName;if(B==="TEXTAREA")return;else if(B==="STYLE"&&this.addedSet.has(G))H=!0}let W=P1(G)?this.mirror.getId(lY(q)):this.mirror.getId(G),U=Y(q);if(W===-1||U===-1)return J.addNode(q);let D=n0(q,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:(B)=>{if(uY(B,this.mirror))this.iframeManager.addIframe(B);if(cY(B,this.mirror))this.stylesheetManager.trackLinkElement(B);if(nJ(q))this.shadowDomManager.addShadowRoot(N.shadowRoot(q),this.doc)},onIframeLoad:(B,L)=>{this.iframeManager.attachIframe(B,L),this.shadowDomManager.observeAttachShadow(B)},onStylesheetLoad:(B,L)=>{this.stylesheetManager.attachLinkElement(B,L)},cssCaptured:H});if(D)X.push({parentId:W,nextId:U,node:D}),Z.add(D.id)};while(this.mapRemoves.length)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let q of this.movedSet){if(QX(this.removesSubTreeCache,q,this.mirror)&&!this.movedSet.has(N.parentNode(q)))continue;Q(q)}for(let q of this.addedSet)if(!VX(this.droppedSet,q)&&!QX(this.removesSubTreeCache,q,this.mirror))Q(q);else if(VX(this.movedSet,q))Q(q);else this.droppedSet.add(q);let V=null;while(J.length){let q=null;if(V){let G=this.mirror.getId(N.parentNode(V.value)),H=Y(V.value);if(G!==-1&&H!==-1)q=V}if(!q){let G=J.tail;while(G){let H=G;if(G=G.previous,H){let W=this.mirror.getId(N.parentNode(H.value));if(Y(H.value)===-1)continue;else if(W!==-1){q=H;break}else{let D=H.value,B=N.parentNode(D);if(B&&B.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let L=N.host(B);if(this.mirror.getId(L)!==-1){q=H;break}}}}}}if(!q){while(J.head)J.removeNode(J.head.value);break}V=q.previous,J.removeNode(q.value),Q(q.value)}let K={texts:this.texts.map((q)=>{let G=q.node,H=N.parentNode(G);if(H&&H.tagName==="TEXTAREA")this.genTextAreaValueMutation(H);return{id:this.mirror.getId(G),value:q.value}}).filter((q)=>!Z.has(q.id)).filter((q)=>this.mirror.has(q.id)),attributes:this.attributes.map((q)=>{let{attributes:G}=q;if(typeof G.style==="string"){let H=JSON.stringify(q.styleDiff),W=JSON.stringify(q._unchangedStyles);if(H.length<G.style.length){if((H+W).split("var(").length===G.style.split("var(").length)G.style=q.styleDiff}}return{id:this.mirror.getId(q.node),attributes:G}}).filter((q)=>!Z.has(q.id)).filter((q)=>this.mirror.has(q.id)),removes:this.removes,adds:X};if(!K.texts.length&&!K.attributes.length&&!K.removes.length&&!K.adds.length)return;this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(K)}),F(this,"genTextAreaValueMutation",(X)=>{let Z=this.attributeMap.get(X);if(!Z)Z={node:X,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(Z),this.attributeMap.set(X,Z);Z.attributes.value=Array.from(N.childNodes(X),(J)=>N.textContent(J)||"").join("")}),F(this,"processMutation",(X)=>{if(PJ(X.target,this.mirror,this.slimDOMOptions))return;switch(X.type){case"characterData":{let Z=N.textContent(X.target);if(!Q0(X.target,this.blockClass,this.blockSelector,!1)&&Z!==X.oldValue)this.texts.push({value:OX(X.target,this.maskTextClass,this.maskTextSelector,!0)&&Z?this.maskTextFn?this.maskTextFn(Z,yY(X.target)):Z.replace(/[\S]/g,"*"):Z,node:X.target});break}case"attributes":{let{target:Z,attributeName:J}=X,Y=X.target.getAttribute(J);if(J==="value"){let V=Y9(Z);Y=X9({element:Z,maskInputOptions:this.maskInputOptions,tagName:Z.tagName,type:V,value:Y,maskInputFn:this.maskInputFn})}if(Q0(X.target,this.blockClass,this.blockSelector,!1)||Y===X.oldValue)return;let Q=this.attributeMap.get(X.target);if(Z.tagName==="IFRAME"&&J==="src"&&!this.keepIframeSrcFn(Y))if(!Z.contentDocument)J="rr_src";else return;if(!Q)Q={node:X.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(Q),this.attributeMap.set(X.target,Q);if(J==="type"&&Z.tagName==="INPUT"&&(X.oldValue||"").toLowerCase()==="password")Z.setAttribute("data-rr-is-password","true");if(!FX(Z.tagName,J)){if(Q.attributes[J]=PX(this.doc,g0(Z.tagName),g0(J),Y),J==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(K){this.unattachedDoc=this.doc}let V=this.unattachedDoc.createElement("span");if(X.oldValue)V.setAttribute("style",X.oldValue);for(let K of Array.from(Z.style)){let q=Z.style.getPropertyValue(K),G=Z.style.getPropertyPriority(K);if(q!==V.style.getPropertyValue(K)||G!==V.style.getPropertyPriority(K))if(G==="")Q.styleDiff[K]=q;else Q.styleDiff[K]=[q,G];else Q._unchangedStyles[K]=[q,G]}for(let K of Array.from(V.style))if(Z.style.getPropertyValue(K)==="")Q.styleDiff[K]=!1}else if(J==="open"&&Z.tagName==="DIALOG")if(Z.matches("dialog:modal"))Q.attributes.rr_open_mode="modal";else Q.attributes.rr_open_mode="non-modal"}break}case"childList":{if(Q0(X.target,this.blockClass,this.blockSelector,!0))return;if(X.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(X.target);return}X.addedNodes.forEach((Z)=>this.genAdds(Z,X.target)),X.removedNodes.forEach((Z)=>{let J=this.mirror.getId(Z),Y=P1(X.target)?this.mirror.getId(N.host(X.target)):this.mirror.getId(X.target);if(Q0(X.target,this.blockClass,this.blockSelector,!1)||PJ(Z,this.mirror,this.slimDOMOptions)||!MG(Z,this.mirror))return;if(this.addedSet.has(Z))tJ(this.addedSet,Z),this.droppedSet.add(Z);else if(this.addedSet.has(X.target)&&J===-1);else if(mY(X.target,this.mirror));else if(this.movedSet.has(Z)&&this.movedMap[YX(J,Y)])tJ(this.movedSet,Z);else this.removes.push({parentId:Y,id:J,isShadow:P1(X.target)&&F1(X.target)?!0:void 0}),wG(Z,this.removesSubTreeCache);this.mapRemoves.push(Z)});break}}}),F(this,"genAdds",(X,Z)=>{if(this.processedNodeManager.inOtherBuffer(X,this))return;if(this.addedSet.has(X)||this.movedSet.has(X))return;if(this.mirror.hasNode(X)){if(PJ(X,this.mirror,this.slimDOMOptions))return;this.movedSet.add(X);let J=null;if(Z&&this.mirror.hasNode(Z))J=this.mirror.getId(Z);if(J&&J!==-1)this.movedMap[YX(this.mirror.getId(X),J)]=!0}else this.addedSet.add(X),this.droppedSet.delete(X);if(!Q0(X,this.blockClass,this.blockSelector,!1)){if(N.childNodes(X).forEach((J)=>this.genAdds(J)),nJ(X))N.childNodes(N.shadowRoot(X)).forEach((J)=>{this.processedNodeManager.add(J,this),this.genAdds(J,X)})}})}init(X){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((Z)=>{this[Z]=X[Z]})}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 tJ(X,Z){X.delete(Z),N.childNodes(Z).forEach((J)=>tJ(X,J))}function wG(X,Z){let J=[X];while(J.length){let Y=J.pop();if(Z.has(Y))continue;Z.add(Y),N.childNodes(Y).forEach((Q)=>J.push(Q))}return}function QX(X,Z,J){if(X.size===0)return!1;return IG(X,Z)}function IG(X,Z,J){let Y=N.parentNode(Z);if(!Y)return!1;return X.has(Y)}function VX(X,Z){if(X.size===0)return!1;return aY(X,Z)}function aY(X,Z){let J=N.parentNode(Z);if(!J)return!1;if(X.has(J))return!0;return aY(X,J)}var O1;function RG(X){O1=X}function NG(){O1=void 0}var $=(X)=>{if(!O1)return X;return(...J)=>{try{return X(...J)}catch(Y){if(O1&&O1(Y)===!0)return;throw Y}}},b0=[];function h1(X){try{if("composedPath"in X){let Z=X.composedPath();if(Z.length)return Z[0]}else if("path"in X&&X.path.length)return X.path[0]}catch{}return X&&X.target}function oY(X,Z){let J=new rY;b0.push(J),J.init(X);let Y=new(kY())($(J.processMutations.bind(J)));return Y.observe(Z,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),Y}function TG({mousemoveCb:X,sampling:Z,doc:J,mirror:Y}){if(Z.mousemove===!1)return()=>{};let Q=typeof Z.mousemove==="number"?Z.mousemove:50,V=typeof Z.mousemoveCallback==="number"?Z.mousemoveCallback:500,K=[],q,G=T1($((U)=>{let D=Date.now()-q;X(K.map((B)=>{return B.timeOffset-=D,B}),U),K=[],q=null}),V),H=$(T1($((U)=>{let D=h1(U),{clientX:B,clientY:L}=oJ(U)?U.changedTouches[0]:U;if(!q)q=SZ();K.push({x:B,y:L,id:Y.getId(D),timeOffset:SZ()-q}),G(typeof DragEvent<"u"&&U instanceof DragEvent?T.Drag:U instanceof MouseEvent?T.MouseMove:T.TouchMove)}),Q,{trailing:!1})),W=[Y0("mousemove",H,J),Y0("touchmove",H,J),Y0("drag",H,J)];return $(()=>{W.forEach((U)=>U())})}function $G({mouseInteractionCb:X,doc:Z,mirror:J,blockClass:Y,blockSelector:Q,sampling:V}){if(V.mouseInteraction===!1)return()=>{};let K=V.mouseInteraction===!0||V.mouseInteraction===void 0?{}:V.mouseInteraction,q=[],G=null,H=(W)=>{return(U)=>{let D=h1(U);if(Q0(D,Y,Q,!0))return;let B=null,L=W;if("pointerType"in U){switch(U.pointerType){case"mouse":B=w0.Mouse;break;case"touch":B=w0.Touch;break;case"pen":B=w0.Pen;break}if(B===w0.Touch){if(q0[W]===q0.MouseDown)L="TouchStart";else if(q0[W]===q0.MouseUp)L="TouchEnd"}else if(B===w0.Pen);}else if(oJ(U))B=w0.Touch;if(B!==null){if(G=B,L.startsWith("Touch")&&B===w0.Touch||L.startsWith("Mouse")&&B===w0.Mouse)B=null}else if(q0[W]===q0.Click)B=G,G=null;let j=oJ(U)?U.changedTouches[0]:U;if(!j)return;let z=J.getId(D),{clientX:A,clientY:O}=j;$(X)({type:q0[L],id:z,x:A,y:O,...B!==null&&{pointerType:B}})}};return Object.keys(q0).filter((W)=>Number.isNaN(Number(W))&&!W.endsWith("_Departed")&&K[W]!==!1).forEach((W)=>{let U=g0(W),D=H(W);if(window.PointerEvent)switch(q0[W]){case q0.MouseDown:case q0.MouseUp:U=U.replace("mouse","pointer");break;case q0.TouchStart:case q0.TouchEnd:return}q.push(Y0(U,D,Z))}),$(()=>{q.forEach((W)=>W())})}function nY({scrollCb:X,doc:Z,mirror:J,blockClass:Y,blockSelector:Q,sampling:V}){let K=$(T1($((q)=>{let G=h1(q);if(!G||Q0(G,Y,Q,!0))return;let H=J.getId(G);if(G===Z&&Z.defaultView){let W=vY(Z.defaultView);X({id:H,x:W.left,y:W.top})}else X({id:H,x:G.scrollLeft,y:G.scrollTop})}),V.scroll||100));return Y0("scroll",K,Z)}function SG({viewportResizeCb:X},{win:Z}){let J=-1,Y=-1,Q=$(T1($(()=>{let V=bY(),K=gY();if(J!==V||Y!==K)X({width:Number(K),height:Number(V)}),J=V,Y=K}),200));return Y0("resize",Q,Z)}var xG=["INPUT","TEXTAREA","SELECT"],KX=new WeakMap;function fG({inputCb:X,doc:Z,mirror:J,blockClass:Y,blockSelector:Q,ignoreClass:V,ignoreSelector:K,maskInputOptions:q,maskInputFn:G,sampling:H,userTriggeredOnInput:W}){function U(O){let P=h1(O),C=O.isTrusted,E=P&&P.tagName;if(P&&E==="OPTION")P=N.parentElement(P);if(!P||!E||xG.indexOf(E)<0||Q0(P,Y,Q,!0))return;if(P.classList.contains(V)||K&&P.matches(K))return;let _=P.value,w=!1,M=Y9(P)||"";if(M==="radio"||M==="checkbox")w=P.checked;else if(q[E.toLowerCase()]||q[M])_=X9({element:P,maskInputOptions:q,tagName:E,type:M,value:_,maskInputFn:G});D(P,W?{text:_,isChecked:w,userTriggered:C}:{text:_,isChecked:w});let g=P.name;if(M==="radio"&&g&&w)Z.querySelectorAll(`input[type="radio"][name="${g}"]`).forEach((f)=>{if(f!==P){let t=f.value;D(f,W?{text:t,isChecked:!w,userTriggered:!1}:{text:t,isChecked:!w})}})}function D(O,P){let C=KX.get(O);if(!C||C.text!==P.text||C.isChecked!==P.isChecked){KX.set(O,P);let E=J.getId(O);$(X)({...P,id:E})}}let L=(H.input==="last"?["change"]:["input","change"]).map((O)=>Y0(O,$(U),Z)),j=Z.defaultView;if(!j)return()=>{L.forEach((O)=>O())};let z=j.Object.getOwnPropertyDescriptor(j.HTMLInputElement.prototype,"value"),A=[[j.HTMLInputElement.prototype,"value"],[j.HTMLInputElement.prototype,"checked"],[j.HTMLSelectElement.prototype,"value"],[j.HTMLTextAreaElement.prototype,"value"],[j.HTMLSelectElement.prototype,"selectedIndex"],[j.HTMLOptionElement.prototype,"selected"]];if(z&&z.set)L.push(...A.map((O)=>lZ(O[0],O[1],{set(){$(U)({target:this,isTrusted:!1})}},!1,j)));return $(()=>{L.forEach((O)=>O())})}function xZ(X){let Z=[];function J(Y,Q){if(BZ("CSSGroupingRule")&&Y.parentRule instanceof CSSGroupingRule||BZ("CSSMediaRule")&&Y.parentRule instanceof CSSMediaRule||BZ("CSSSupportsRule")&&Y.parentRule instanceof CSSSupportsRule||BZ("CSSConditionRule")&&Y.parentRule instanceof CSSConditionRule){let K=Array.from(Y.parentRule.cssRules).indexOf(Y);Q.unshift(K)}else if(Y.parentStyleSheet){let K=Array.from(Y.parentStyleSheet.cssRules).indexOf(Y);Q.unshift(K)}return Q}return J(X,Z)}function x0(X,Z,J){let Y,Q;if(!X)return{};if(X.ownerNode)Y=Z.getId(X.ownerNode);else Q=J.getId(X);return{styleId:Q,id:Y}}function hG({styleSheetRuleCb:X,mirror:Z,stylesheetManager:J},{win:Y}){if(!Y.CSSStyleSheet||!Y.CSSStyleSheet.prototype)return()=>{};let Q=Y.CSSStyleSheet.prototype.insertRule;Y.CSSStyleSheet.prototype.insertRule=new Proxy(Q,{apply:$((W,U,D)=>{let[B,L]=D,{id:j,styleId:z}=x0(U,Z,J.styleMirror);if(j&&j!==-1||z&&z!==-1)X({id:j,styleId:z,adds:[{rule:B,index:L}]});return W.apply(U,D)})}),Y.CSSStyleSheet.prototype.addRule=function(W,U,D=this.cssRules.length){let B=`${W} { ${U} }`;return Y.CSSStyleSheet.prototype.insertRule.apply(this,[B,D])};let V=Y.CSSStyleSheet.prototype.deleteRule;Y.CSSStyleSheet.prototype.deleteRule=new Proxy(V,{apply:$((W,U,D)=>{let[B]=D,{id:L,styleId:j}=x0(U,Z,J.styleMirror);if(L&&L!==-1||j&&j!==-1)X({id:L,styleId:j,removes:[{index:B}]});return W.apply(U,D)})}),Y.CSSStyleSheet.prototype.removeRule=function(W){return Y.CSSStyleSheet.prototype.deleteRule.apply(this,[W])};let K;if(Y.CSSStyleSheet.prototype.replace)K=Y.CSSStyleSheet.prototype.replace,Y.CSSStyleSheet.prototype.replace=new Proxy(K,{apply:$((W,U,D)=>{let[B]=D,{id:L,styleId:j}=x0(U,Z,J.styleMirror);if(L&&L!==-1||j&&j!==-1)X({id:L,styleId:j,replace:B});return W.apply(U,D)})});let q;if(Y.CSSStyleSheet.prototype.replaceSync)q=Y.CSSStyleSheet.prototype.replaceSync,Y.CSSStyleSheet.prototype.replaceSync=new Proxy(q,{apply:$((W,U,D)=>{let[B]=D,{id:L,styleId:j}=x0(U,Z,J.styleMirror);if(L&&L!==-1||j&&j!==-1)X({id:L,styleId:j,replaceSync:B});return W.apply(U,D)})});let G={};if(jZ("CSSGroupingRule"))G.CSSGroupingRule=Y.CSSGroupingRule;else{if(jZ("CSSMediaRule"))G.CSSMediaRule=Y.CSSMediaRule;if(jZ("CSSConditionRule"))G.CSSConditionRule=Y.CSSConditionRule;if(jZ("CSSSupportsRule"))G.CSSSupportsRule=Y.CSSSupportsRule}let H={};return Object.entries(G).forEach(([W,U])=>{H[W]={insertRule:U.prototype.insertRule,deleteRule:U.prototype.deleteRule},U.prototype.insertRule=new Proxy(H[W].insertRule,{apply:$((D,B,L)=>{let[j,z]=L,{id:A,styleId:O}=x0(B.parentStyleSheet,Z,J.styleMirror);if(A&&A!==-1||O&&O!==-1)X({id:A,styleId:O,adds:[{rule:j,index:[...xZ(B),z||0]}]});return D.apply(B,L)})}),U.prototype.deleteRule=new Proxy(H[W].deleteRule,{apply:$((D,B,L)=>{let[j]=L,{id:z,styleId:A}=x0(B.parentStyleSheet,Z,J.styleMirror);if(z&&z!==-1||A&&A!==-1)X({id:z,styleId:A,removes:[{index:[...xZ(B),j]}]});return D.apply(B,L)})})}),$(()=>{Y.CSSStyleSheet.prototype.insertRule=Q,Y.CSSStyleSheet.prototype.deleteRule=V,K&&(Y.CSSStyleSheet.prototype.replace=K),q&&(Y.CSSStyleSheet.prototype.replaceSync=q),Object.entries(G).forEach(([W,U])=>{U.prototype.insertRule=H[W].insertRule,U.prototype.deleteRule=H[W].deleteRule})})}function tY({mirror:X,stylesheetManager:Z},J){var Y,Q,V;let K=null;if(J.nodeName==="#document")K=X.getId(J);else K=X.getId(N.host(J));let q=J.nodeName==="#document"?(Y=J.defaultView)==null?void 0:Y.Document:(V=(Q=J.ownerDocument)==null?void 0:Q.defaultView)==null?void 0:V.ShadowRoot,G=(q==null?void 0:q.prototype)?Object.getOwnPropertyDescriptor(q==null?void 0:q.prototype,"adoptedStyleSheets"):void 0;if(K===null||K===-1||!q||!G)return()=>{};return Object.defineProperty(J,"adoptedStyleSheets",{configurable:G.configurable,enumerable:G.enumerable,get(){var H;return(H=G.get)==null?void 0:H.call(this)},set(H){var W;let U=(W=G.set)==null?void 0:W.call(this,H);if(K!==null&&K!==-1)try{Z.adoptStyleSheets(H,K)}catch(D){}return U}}),$(()=>{Object.defineProperty(J,"adoptedStyleSheets",{configurable:G.configurable,enumerable:G.enumerable,get:G.get,set:G.set})})}function kG({styleDeclarationCb:X,mirror:Z,ignoreCSSAttributes:J,stylesheetManager:Y},{win:Q}){let V=Q.CSSStyleDeclaration.prototype.setProperty;Q.CSSStyleDeclaration.prototype.setProperty=new Proxy(V,{apply:$((q,G,H)=>{var W;let[U,D,B]=H;if(J.has(U))return V.apply(G,[U,D,B]);let{id:L,styleId:j}=x0((W=G.parentRule)==null?void 0:W.parentStyleSheet,Z,Y.styleMirror);if(L&&L!==-1||j&&j!==-1)X({id:L,styleId:j,set:{property:U,value:D,priority:B},index:xZ(G.parentRule)});return q.apply(G,H)})});let K=Q.CSSStyleDeclaration.prototype.removeProperty;return Q.CSSStyleDeclaration.prototype.removeProperty=new Proxy(K,{apply:$((q,G,H)=>{var W;let[U]=H;if(J.has(U))return K.apply(G,[U]);let{id:D,styleId:B}=x0((W=G.parentRule)==null?void 0:W.parentStyleSheet,Z,Y.styleMirror);if(D&&D!==-1||B&&B!==-1)X({id:D,styleId:B,remove:{property:U},index:xZ(G.parentRule)});return q.apply(G,H)})}),$(()=>{Q.CSSStyleDeclaration.prototype.setProperty=V,Q.CSSStyleDeclaration.prototype.removeProperty=K})}function vG({mediaInteractionCb:X,blockClass:Z,blockSelector:J,mirror:Y,sampling:Q,doc:V}){let K=$((G)=>T1($((H)=>{let W=h1(H);if(!W||Q0(W,Z,J,!0))return;let{currentTime:U,volume:D,muted:B,playbackRate:L,loop:j}=W;X({type:G,id:Y.getId(W),currentTime:U,volume:D,muted:B,playbackRate:L,loop:j})}),Q.media||500)),q=[Y0("play",K(r0.Play),V),Y0("pause",K(r0.Pause),V),Y0("seeked",K(r0.Seeked),V),Y0("volumechange",K(r0.VolumeChange),V),Y0("ratechange",K(r0.RateChange),V)];return $(()=>{q.forEach((G)=>G())})}function bG({fontCb:X,doc:Z}){let J=Z.defaultView;if(!J)return()=>{};let Y=[],Q=new WeakMap,V=J.FontFace;J.FontFace=function(G,H,W){let U=new V(G,H,W);return Q.set(U,{family:G,buffer:typeof H!=="string",descriptors:W,fontSource:typeof H==="string"?H:JSON.stringify(Array.from(new Uint8Array(H)))}),U};let K=K1(Z.fonts,"add",function(q){return function(G){return setTimeout($(()=>{let H=Q.get(G);if(H)X(H),Q.delete(G)}),0),q.apply(this,[G])}});return Y.push(()=>{J.FontFace=V}),Y.push(K),$(()=>{Y.forEach((q)=>q())})}function gG(X){let{doc:Z,mirror:J,blockClass:Y,blockSelector:Q,selectionCb:V}=X,K=!0,q=$(()=>{let G=Z.getSelection();if(!G||K&&(G==null?void 0:G.isCollapsed))return;K=G.isCollapsed||!1;let H=[],W=G.rangeCount||0;for(let U=0;U<W;U++){let D=G.getRangeAt(U),{startContainer:B,startOffset:L,endContainer:j,endOffset:z}=D;if(Q0(B,Y,Q,!0)||Q0(j,Y,Q,!0))continue;H.push({start:J.getId(B),startOffset:L,end:J.getId(j),endOffset:z})}V({ranges:H})});return q(),Y0("selectionchange",q)}function yG({doc:X,customElementCb:Z}){let J=X.defaultView;if(!J||!J.customElements)return()=>{};return K1(J.customElements,"define",function(Q){return function(V,K,q){try{Z({define:{name:V}})}catch(G){console.warn(`Custom element callback failed for ${V}`)}return Q.apply(this,[V,K,q])}})}function mG(X,Z){let{mutationCb:J,mousemoveCb:Y,mouseInteractionCb:Q,scrollCb:V,viewportResizeCb:K,inputCb:q,mediaInteractionCb:G,styleSheetRuleCb:H,styleDeclarationCb:W,canvasMutationCb:U,fontCb:D,selectionCb:B,customElementCb:L}=X;X.mutationCb=(...j)=>{if(Z.mutation)Z.mutation(...j);J(...j)},X.mousemoveCb=(...j)=>{if(Z.mousemove)Z.mousemove(...j);Y(...j)},X.mouseInteractionCb=(...j)=>{if(Z.mouseInteraction)Z.mouseInteraction(...j);Q(...j)},X.scrollCb=(...j)=>{if(Z.scroll)Z.scroll(...j);V(...j)},X.viewportResizeCb=(...j)=>{if(Z.viewportResize)Z.viewportResize(...j);K(...j)},X.inputCb=(...j)=>{if(Z.input)Z.input(...j);q(...j)},X.mediaInteractionCb=(...j)=>{if(Z.mediaInteaction)Z.mediaInteaction(...j);G(...j)},X.styleSheetRuleCb=(...j)=>{if(Z.styleSheetRule)Z.styleSheetRule(...j);H(...j)},X.styleDeclarationCb=(...j)=>{if(Z.styleDeclaration)Z.styleDeclaration(...j);W(...j)},X.canvasMutationCb=(...j)=>{if(Z.canvasMutation)Z.canvasMutation(...j);U(...j)},X.fontCb=(...j)=>{if(Z.font)Z.font(...j);D(...j)},X.selectionCb=(...j)=>{if(Z.selection)Z.selection(...j);B(...j)},X.customElementCb=(...j)=>{if(Z.customElement)Z.customElement(...j);L(...j)}}function uG(X,Z={}){let J=X.doc.defaultView;if(!J)return()=>{};mG(X,Z);let Y;if(X.recordDOM)Y=oY(X,X.doc);let Q=TG(X),V=$G(X),K=nY(X),q=SG(X,{win:J}),G=fG(X),H=vG(X),W=()=>{},U=()=>{},D=()=>{},B=()=>{};if(X.recordDOM){if(W=hG(X,{win:J}),U=tY(X,X.doc),D=kG(X,{win:J}),X.collectFonts)B=bG(X)}let L=gG(X),j=yG(X),z=[];for(let A of X.plugins)z.push(A.observer(A.callback,J,A.options));return $(()=>{b0.forEach((A)=>A.reset()),Y==null||Y.disconnect(),Q(),V(),K(),q(),G(),H(),W(),U(),D(),B(),L(),j(),z.forEach((A)=>A())})}function BZ(X){return typeof window[X]<"u"}function jZ(X){return Boolean(typeof window[X]<"u"&&window[X].prototype&&"insertRule"in window[X].prototype&&"deleteRule"in window[X].prototype)}class eJ{constructor(X){F(this,"iframeIdToRemoteIdMap",new WeakMap),F(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=X}getId(X,Z,J,Y){let Q=J||this.getIdToRemoteIdMap(X),V=Y||this.getRemoteIdToIdMap(X),K=Q.get(Z);if(!K)K=this.generateIdFn(),Q.set(Z,K),V.set(K,Z);return K}getIds(X,Z){let J=this.getIdToRemoteIdMap(X),Y=this.getRemoteIdToIdMap(X);return Z.map((Q)=>this.getId(X,Q,J,Y))}getRemoteId(X,Z,J){let Y=J||this.getRemoteIdToIdMap(X);if(typeof Z!=="number")return Z;let Q=Y.get(Z);if(!Q)return-1;return Q}getRemoteIds(X,Z){let J=this.getRemoteIdToIdMap(X);return Z.map((Y)=>this.getRemoteId(X,Y,J))}reset(X){if(!X){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(X),this.iframeRemoteIdToIdMap.delete(X)}getIdToRemoteIdMap(X){let Z=this.iframeIdToRemoteIdMap.get(X);if(!Z)Z=new Map,this.iframeIdToRemoteIdMap.set(X,Z);return Z}getRemoteIdToIdMap(X){let Z=this.iframeRemoteIdToIdMap.get(X);if(!Z)Z=new Map,this.iframeRemoteIdToIdMap.set(X,Z);return Z}}class eY{constructor(X){if(F(this,"iframes",new WeakMap),F(this,"crossOriginIframeMap",new WeakMap),F(this,"crossOriginIframeMirror",new eJ(LX)),F(this,"crossOriginIframeStyleMirror"),F(this,"crossOriginIframeRootIdMap",new WeakMap),F(this,"mirror"),F(this,"mutationCb"),F(this,"wrappedEmit"),F(this,"loadListener"),F(this,"stylesheetManager"),F(this,"recordCrossOriginIframes"),this.mutationCb=X.mutationCb,this.wrappedEmit=X.wrappedEmit,this.stylesheetManager=X.stylesheetManager,this.recordCrossOriginIframes=X.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new eJ(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=X.mirror,this.recordCrossOriginIframes)window.addEventListener("message",this.handleMessage.bind(this))}addIframe(X){if(this.iframes.set(X,!0),X.contentWindow)this.crossOriginIframeMap.set(X.contentWindow,X)}addLoadListener(X){this.loadListener=X}attachIframe(X,Z){var J,Y;if(this.mutationCb({adds:[{parentId:this.mirror.getId(X),nextId:null,node:Z}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes)(J=X.contentWindow)==null||J.addEventListener("message",this.handleMessage.bind(this));if((Y=this.loadListener)==null||Y.call(this,X),X.contentDocument&&X.contentDocument.adoptedStyleSheets&&X.contentDocument.adoptedStyleSheets.length>0)this.stylesheetManager.adoptStyleSheets(X.contentDocument.adoptedStyleSheets,this.mirror.getId(X.contentDocument))}handleMessage(X){let Z=X;if(Z.data.type!=="rrweb"||Z.origin!==Z.data.origin)return;if(!X.source)return;let Y=this.crossOriginIframeMap.get(X.source);if(!Y)return;let Q=this.transformCrossOriginEvent(Y,Z.data.event);if(Q)this.wrappedEmit(Q,Z.data.isCheckout)}transformCrossOriginEvent(X,Z){var J;switch(Z.type){case x.FullSnapshot:{this.crossOriginIframeMirror.reset(X),this.crossOriginIframeStyleMirror.reset(X),this.replaceIdOnNode(Z.data.node,X);let Y=Z.data.node.id;return this.crossOriginIframeRootIdMap.set(X,Y),this.patchRootIdOnNode(Z.data.node,Y),{timestamp:Z.timestamp,type:x.IncrementalSnapshot,data:{source:T.Mutation,adds:[{parentId:this.mirror.getId(X),nextId:null,node:Z.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case x.Meta:case x.Load:case x.DomContentLoaded:return!1;case x.Plugin:return Z;case x.Custom:return this.replaceIds(Z.data.payload,X,["id","parentId","previousId","nextId"]),Z;case x.IncrementalSnapshot:switch(Z.data.source){case T.Mutation:return Z.data.adds.forEach((Y)=>{this.replaceIds(Y,X,["parentId","nextId","previousId"]),this.replaceIdOnNode(Y.node,X);let Q=this.crossOriginIframeRootIdMap.get(X);Q&&this.patchRootIdOnNode(Y.node,Q)}),Z.data.removes.forEach((Y)=>{this.replaceIds(Y,X,["parentId","id"])}),Z.data.attributes.forEach((Y)=>{this.replaceIds(Y,X,["id"])}),Z.data.texts.forEach((Y)=>{this.replaceIds(Y,X,["id"])}),Z;case T.Drag:case T.TouchMove:case T.MouseMove:return Z.data.positions.forEach((Y)=>{this.replaceIds(Y,X,["id"])}),Z;case T.ViewportResize:return!1;case T.MediaInteraction:case T.MouseInteraction:case T.Scroll:case T.CanvasMutation:case T.Input:return this.replaceIds(Z.data,X,["id"]),Z;case T.StyleSheetRule:case T.StyleDeclaration:return this.replaceIds(Z.data,X,["id"]),this.replaceStyleIds(Z.data,X,["styleId"]),Z;case T.Font:return Z;case T.Selection:return Z.data.ranges.forEach((Y)=>{this.replaceIds(Y,X,["start","end"])}),Z;case T.AdoptedStyleSheet:return this.replaceIds(Z.data,X,["id"]),this.replaceStyleIds(Z.data,X,["styleIds"]),(J=Z.data.styles)==null||J.forEach((Y)=>{this.replaceStyleIds(Y,X,["styleId"])}),Z}}return!1}replace(X,Z,J,Y){for(let Q of Y){if(!Array.isArray(Z[Q])&&typeof Z[Q]!=="number")continue;if(Array.isArray(Z[Q]))Z[Q]=X.getIds(J,Z[Q]);else Z[Q]=X.getId(J,Z[Q])}return Z}replaceIds(X,Z,J){return this.replace(this.crossOriginIframeMirror,X,Z,J)}replaceStyleIds(X,Z,J){return this.replace(this.crossOriginIframeStyleMirror,X,Z,J)}replaceIdOnNode(X,Z){if(this.replaceIds(X,Z,["id","rootId"]),"childNodes"in X)X.childNodes.forEach((J)=>{this.replaceIdOnNode(J,Z)})}patchRootIdOnNode(X,Z){if(X.type!==iY.Document&&!X.rootId)X.rootId=Z;if("childNodes"in X)X.childNodes.forEach((J)=>{this.patchRootIdOnNode(J,Z)})}}class Z6{constructor(X){F(this,"shadowDoms",new WeakSet),F(this,"mutationCb"),F(this,"scrollCb"),F(this,"bypassOptions"),F(this,"mirror"),F(this,"restoreHandlers",[]),this.mutationCb=X.mutationCb,this.scrollCb=X.scrollCb,this.bypassOptions=X.bypassOptions,this.mirror=X.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(X,Z){if(!F1(X))return;if(this.shadowDoms.has(X))return;this.shadowDoms.add(X);let J=oY({...this.bypassOptions,doc:Z,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},X);this.restoreHandlers.push(()=>J.disconnect()),this.restoreHandlers.push(nY({...this.bypassOptions,scrollCb:this.scrollCb,doc:X,mirror:this.mirror})),setTimeout(()=>{if(X.adoptedStyleSheets&&X.adoptedStyleSheets.length>0)this.bypassOptions.stylesheetManager.adoptStyleSheets(X.adoptedStyleSheets,this.mirror.getId(N.host(X)));this.restoreHandlers.push(tY({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},X))},0)}observeAttachShadow(X){if(!X.contentWindow||!X.contentDocument)return;this.patchAttachShadow(X.contentWindow.Element,X.contentDocument)}patchAttachShadow(X,Z){let J=this;this.restoreHandlers.push(K1(X.prototype,"attachShadow",function(Y){return function(Q){let V=Y.call(this,Q),K=N.shadowRoot(this);if(K&&dY(this))J.addShadowRoot(K,Z);return V}}))}reset(){this.restoreHandlers.forEach((X)=>{try{X()}catch(Z){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}var t0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cG=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(a0=0;a0<t0.length;a0++)cG[t0.charCodeAt(a0)]=a0;var a0,pG=function(X){var Z=new Uint8Array(X),J,Y=Z.length,Q="";for(J=0;J<Y;J+=3)Q+=t0[Z[J]>>2],Q+=t0[(Z[J]&3)<<4|Z[J+1]>>4],Q+=t0[(Z[J+1]&15)<<2|Z[J+2]>>6],Q+=t0[Z[J+2]&63];if(Y%3===2)Q=Q.substring(0,Q.length-1)+"=";else if(Y%3===1)Q=Q.substring(0,Q.length-2)+"==";return Q};var GX=new Map;function lG(X,Z){let J=GX.get(X);if(!J)J=new Map,GX.set(X,J);if(!J.has(Z))J.set(Z,[]);return J.get(Z)}var J6=(X,Z,J)=>{if(!X||!(Y6(X,Z)||typeof X==="object"))return;let Y=X.constructor.name,Q=lG(J,Y),V=Q.indexOf(X);if(V===-1)V=Q.length,Q.push(X);return V};function OZ(X,Z,J){if(X instanceof Array)return X.map((Y)=>OZ(Y,Z,J));else if(X===null)return X;else if(X instanceof Float32Array||X instanceof Float64Array||X instanceof Int32Array||X instanceof Uint32Array||X instanceof Uint8Array||X instanceof Uint16Array||X instanceof Int16Array||X instanceof Int8Array||X instanceof Uint8ClampedArray)return{rr_type:X.constructor.name,args:[Object.values(X)]};else if(X instanceof ArrayBuffer){let Y=X.constructor.name,Q=pG(X);return{rr_type:Y,base64:Q}}else if(X instanceof DataView)return{rr_type:X.constructor.name,args:[OZ(X.buffer,Z,J),X.byteOffset,X.byteLength]};else if(X instanceof HTMLImageElement){let Y=X.constructor.name,{src:Q}=X;return{rr_type:Y,src:Q}}else if(X instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:X.toDataURL()};else if(X instanceof ImageData)return{rr_type:X.constructor.name,args:[OZ(X.data,Z,J),X.width,X.height]};else if(Y6(X,Z)||typeof X==="object"){let Y=X.constructor.name,Q=J6(X,Z,J);return{rr_type:Y,index:Q}}return X}var X6=(X,Z,J)=>{return X.map((Y)=>OZ(Y,Z,J))},Y6=(X,Z)=>{let Y=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((Q)=>typeof Z[Q]==="function");return Boolean(Y.find((Q)=>X instanceof Z[Q]))};function dG(X,Z,J,Y){let Q=[],V=Object.getOwnPropertyNames(Z.CanvasRenderingContext2D.prototype);for(let K of V)try{if(typeof Z.CanvasRenderingContext2D.prototype[K]!=="function")continue;let q=K1(Z.CanvasRenderingContext2D.prototype,K,function(G){return function(...H){if(!Q0(this.canvas,J,Y,!0))setTimeout(()=>{let W=X6(H,Z,this);X(this.canvas,{type:V1["2D"],property:K,args:W})},0);return G.apply(this,H)}});Q.push(q)}catch{let q=lZ(Z.CanvasRenderingContext2D.prototype,K,{set(G){X(this.canvas,{type:V1["2D"],property:K,args:[G],setter:!0})}});Q.push(q)}return()=>{Q.forEach((K)=>K())}}function iG(X){return X==="experimental-webgl"?"webgl":X}function qX(X,Z,J,Y){let Q=[];try{let V=K1(X.HTMLCanvasElement.prototype,"getContext",function(K){return function(q,...G){if(!Q0(this,Z,J,!0)){let H=iG(q);if(!("__context"in this))this.__context=H;if(Y&&["webgl","webgl2"].includes(H))if(G[0]&&typeof G[0]==="object"){let W=G[0];if(!W.preserveDrawingBuffer)W.preserveDrawingBuffer=!0}else G.splice(0,1,{preserveDrawingBuffer:!0})}return K.apply(this,[q,...G])}});Q.push(V)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{Q.forEach((V)=>V())}}function HX(X,Z,J,Y,Q,V){let K=[],q=Object.getOwnPropertyNames(X);for(let G of q){if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(G))continue;try{if(typeof X[G]!=="function")continue;let H=K1(X,G,function(W){return function(...U){let D=W.apply(this,U);if(J6(D,V,this),"tagName"in this.canvas&&!Q0(this.canvas,Y,Q,!0)){let B=X6(U,V,this),L={type:Z,property:G,args:B};J(this.canvas,L)}return D}});K.push(H)}catch{let H=lZ(X,G,{set(W){J(this.canvas,{type:Z,property:G,args:[W],setter:!0})}});K.push(H)}}return K}function sG(X,Z,J,Y){let Q=[];if(Q.push(...HX(Z.WebGLRenderingContext.prototype,V1.WebGL,X,J,Y,Z)),typeof Z.WebGL2RenderingContext<"u")Q.push(...HX(Z.WebGL2RenderingContext.prototype,V1.WebGL2,X,J,Y,Z));return()=>{Q.forEach((V)=>V())}}var Q6="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",rG=(X)=>Uint8Array.from(atob(X),(Z)=>Z.charCodeAt(0)),WX=typeof window<"u"&&window.Blob&&new Blob([rG(Q6)],{type:"text/javascript;charset=utf-8"});function aG(X){let Z;try{if(Z=WX&&(window.URL||window.webkitURL).createObjectURL(WX),!Z)throw"";let J=new Worker(Z,{name:X==null?void 0:X.name});return J.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(Z)}),J}catch(J){return new Worker("data:text/javascript;base64,"+Q6,{name:X==null?void 0:X.name})}finally{Z&&(window.URL||window.webkitURL).revokeObjectURL(Z)}}class V6{constructor(X){F(this,"pendingCanvasMutations",new Map),F(this,"rafStamps",{latestId:0,invokeId:null}),F(this,"mirror"),F(this,"mutationCb"),F(this,"resetObservers"),F(this,"frozen",!1),F(this,"locked",!1),F(this,"processMutation",(q,G)=>{if(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)this.rafStamps.invokeId=this.rafStamps.latestId;if(!this.pendingCanvasMutations.has(q))this.pendingCanvasMutations.set(q,[]);this.pendingCanvasMutations.get(q).push(G)});let{sampling:Z="all",win:J,blockClass:Y,blockSelector:Q,recordCanvas:V,dataURLOptions:K}=X;if(this.mutationCb=X.mutationCb,this.mirror=X.mirror,V&&Z==="all")this.initCanvasMutationObserver(J,Y,Q);if(V&&typeof Z==="number")this.initCanvasFPSObserver(Z,J,Y,Q,{dataURLOptions:K})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(X,Z,J,Y,Q){let V=qX(Z,J,Y,!0),K=new Map,q=new aG;q.onmessage=(B)=>{let{id:L}=B.data;if(K.set(L,!1),!("base64"in B.data))return;let{base64:j,type:z,width:A,height:O}=B.data;this.mutationCb({id:L,type:V1["2D"],commands:[{property:"clearRect",args:[0,0,A,O]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:j}],type:z}]},0,0]}]})};let G=1000/X,H=0,W,U=()=>{let B=[];return Z.document.querySelectorAll("canvas").forEach((L)=>{if(!Q0(L,J,Y,!0))B.push(L)}),B},D=(B)=>{if(H&&B-H<G){W=requestAnimationFrame(D);return}H=B,U().forEach(async(L)=>{var j;let z=this.mirror.getId(L);if(K.get(z))return;if(L.width===0||L.height===0)return;if(K.set(z,!0),["webgl","webgl2"].includes(L.__context)){let O=L.getContext(L.__context);if(((j=O==null?void 0:O.getContextAttributes())==null?void 0:j.preserveDrawingBuffer)===!1)O.clear(O.COLOR_BUFFER_BIT)}let A=await createImageBitmap(L);q.postMessage({id:z,bitmap:A,width:L.width,height:L.height,dataURLOptions:Q.dataURLOptions},[A])}),W=requestAnimationFrame(D)};W=requestAnimationFrame(D),this.resetObservers=()=>{V(),cancelAnimationFrame(W)}}initCanvasMutationObserver(X,Z,J){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let Y=qX(X,Z,J,!1),Q=dG(this.processMutation.bind(this),X,Z,J),V=sG(this.processMutation.bind(this),X,Z,J);this.resetObservers=()=>{Y(),Q(),V()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let X=(Z)=>{this.rafStamps.latestId=Z,requestAnimationFrame(X)};requestAnimationFrame(X)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((X,Z)=>{let J=this.mirror.getId(Z);this.flushPendingCanvasMutationFor(Z,J)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(X,Z){if(this.frozen||this.locked)return;let J=this.pendingCanvasMutations.get(X);if(!J||Z===-1)return;let Y=J.map((V)=>{let{type:K,...q}=V;return q}),{type:Q}=J[0];this.mutationCb({id:Z,type:Q,commands:Y}),this.pendingCanvasMutations.delete(X)}}class K6{constructor(X){F(this,"trackedLinkElements",new WeakSet),F(this,"mutationCb"),F(this,"adoptedStyleSheetCb"),F(this,"styleMirror",new pY),this.mutationCb=X.mutationCb,this.adoptedStyleSheetCb=X.adoptedStyleSheetCb}attachLinkElement(X,Z){if("_cssText"in Z.attributes)this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:Z.id,attributes:Z.attributes}]});this.trackLinkElement(X)}trackLinkElement(X){if(this.trackedLinkElements.has(X))return;this.trackedLinkElements.add(X),this.trackStylesheetInLinkElement(X)}adoptStyleSheets(X,Z){if(X.length===0)return;let J={id:Z,styleIds:[]},Y=[];for(let Q of X){let V;if(!this.styleMirror.has(Q))V=this.styleMirror.add(Q),Y.push({styleId:V,rules:Array.from(Q.rules||CSSRule,(K,q)=>({rule:jX(K,Q.href),index:q}))});else V=this.styleMirror.getId(Q);J.styleIds.push(V)}if(Y.length>0)J.styles=Y;this.adoptedStyleSheetCb(J)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(X){}}class G6{constructor(){F(this,"nodeMap",new WeakMap),F(this,"active",!1)}inOtherBuffer(X,Z){let J=this.nodeMap.get(X);return J&&Array.from(J).some((Y)=>Y!==Z)}add(X,Z){if(!this.active)this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1});this.nodeMap.set(X,(this.nodeMap.get(X)||new Set).add(Z))}destroy(){}}var r,AZ,FJ,fZ=!1;try{if(Array.from([1],(X)=>X*2)[0]!==2){let X=document.createElement("iframe");document.body.appendChild(X),Array.from=((z8=X.contentWindow)==null?void 0:z8.Array.from)||Array.from,document.body.removeChild(X)}}catch(X){console.debug("Unable to override Array.from",X)}var L0=e6();function G1(X={}){let{emit:Z,checkoutEveryNms:J,checkoutEveryNth:Y,blockClass:Q="rr-block",blockSelector:V=null,ignoreClass:K="rr-ignore",ignoreSelector:q=null,maskTextClass:G="rr-mask",maskTextSelector:H=null,inlineStylesheet:W=!0,maskAllInputs:U,maskInputOptions:D,slimDOMOptions:B,maskInputFn:L,maskTextFn:j,hooks:z,packFn:A,sampling:O={},dataURLOptions:P={},mousemoveWait:C,recordDOM:E=!0,recordCanvas:_=!1,recordCrossOriginIframes:w=!1,recordAfter:M=X.recordAfter==="DOMContentLoaded"?X.recordAfter:"load",userTriggeredOnInput:g=!1,collectFonts:f=!1,inlineImages:t=!1,plugins:l,keepIframeSrcFn:I=()=>!1,ignoreCSSAttributes:e=new Set([]),errorHandler:Z0}=X;RG(Z0);let h=w?window.parent===window:!0,k=!1;if(!h)try{if(window.parent.document)k=!1}catch(S){k=!0}if(h&&!Z)throw Error("emit function is required");if(!h&&!k)return()=>{};if(C!==void 0&&O.mousemove===void 0)O.mousemove=C;L0.reset();let a=U===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:D!==void 0?D:{password:!0},o=B===!0||B==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:B==="all",headMetaDescKeywords:B==="all",headTitleMutations:B==="all"}:B?B:{};CG();let c0,K0=0,T0=(S)=>{for(let G0 of l||[])if(G0.eventProcessor)S=G0.eventProcessor(S);if(A&&!k)S=A(S);return S};r=(S,G0)=>{var s;let m=S;if(m.timestamp=SZ(),((s=b0[0])==null?void 0:s.isFrozen())&&m.type!==x.FullSnapshot&&!(m.type===x.IncrementalSnapshot&&m.data.source===T.Mutation))b0.forEach((A0)=>A0.unfreeze());if(h)Z==null||Z(T0(m),G0);else if(k){let A0={type:"rrweb",event:T0(m),origin:window.location.origin,isCheckout:G0};window.parent.postMessage(A0,"*")}if(m.type===x.FullSnapshot)c0=m,K0=0;else if(m.type===x.IncrementalSnapshot){if(m.data.source===T.Mutation&&m.data.isAttachIframe)return;K0++;let A0=Y&&K0>=Y,y=J&&m.timestamp-c0.timestamp>J;if(A0||y)AZ(!0)}};let j0=(S)=>{r({type:x.IncrementalSnapshot,data:{source:T.Mutation,...S}})},H0=(S)=>r({type:x.IncrementalSnapshot,data:{source:T.Scroll,...S}}),J0=(S)=>r({type:x.IncrementalSnapshot,data:{source:T.CanvasMutation,...S}}),O0=new K6({mutationCb:j0,adoptedStyleSheetCb:(S)=>r({type:x.IncrementalSnapshot,data:{source:T.AdoptedStyleSheet,...S}})}),D0=new eY({mirror:L0,mutationCb:j0,stylesheetManager:O0,recordCrossOriginIframes:w,wrappedEmit:r});for(let S of l||[])if(S.getMirror)S.getMirror({nodeMirror:L0,crossOriginIframeMirror:D0.crossOriginIframeMirror,crossOriginIframeStyleMirror:D0.crossOriginIframeStyleMirror});let q1=new G6;FJ=new V6({recordCanvas:_,mutationCb:J0,win:window,blockClass:Q,blockSelector:V,mirror:L0,sampling:O.canvas,dataURLOptions:P});let k0=new Z6({mutationCb:j0,scrollCb:H0,bypassOptions:{blockClass:Q,blockSelector:V,maskTextClass:G,maskTextSelector:H,inlineStylesheet:W,maskInputOptions:a,dataURLOptions:P,maskTextFn:j,maskInputFn:L,recordCanvas:_,inlineImages:t,sampling:O,slimDOMOptions:o,iframeManager:D0,stylesheetManager:O0,canvasManager:FJ,keepIframeSrcFn:I,processedNodeManager:q1},mirror:L0});AZ=(S=!1)=>{if(!E)return;r({type:x.Meta,data:{href:window.location.href,width:gY(),height:bY()}},S),O0.reset(),k0.init(),b0.forEach((s)=>s.lock());let G0=_Q(document,{mirror:L0,blockClass:Q,blockSelector:V,maskTextClass:G,maskTextSelector:H,inlineStylesheet:W,maskAllInputs:a,maskTextFn:j,maskInputFn:L,slimDOM:o,dataURLOptions:P,recordCanvas:_,inlineImages:t,onSerialize:(s)=>{if(uY(s,L0))D0.addIframe(s);if(cY(s,L0))O0.trackLinkElement(s);if(nJ(s))k0.addShadowRoot(N.shadowRoot(s),document)},onIframeLoad:(s,m)=>{D0.attachIframe(s,m),k0.observeAttachShadow(s)},onStylesheetLoad:(s,m)=>{O0.attachLinkElement(s,m)},keepIframeSrcFn:I});if(!G0)return console.warn("Failed to snapshot the document");if(r({type:x.FullSnapshot,data:{node:G0,initialOffset:vY(window)}},S),b0.forEach((s)=>s.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0)O0.adoptStyleSheets(document.adoptedStyleSheets,L0.getId(document))};try{let S=[],G0=(m)=>{var A0;return $(uG)({mutationCb:j0,mousemoveCb:(y,sZ)=>r({type:x.IncrementalSnapshot,data:{source:sZ,positions:y}}),mouseInteractionCb:(y)=>r({type:x.IncrementalSnapshot,data:{source:T.MouseInteraction,...y}}),scrollCb:H0,viewportResizeCb:(y)=>r({type:x.IncrementalSnapshot,data:{source:T.ViewportResize,...y}}),inputCb:(y)=>r({type:x.IncrementalSnapshot,data:{source:T.Input,...y}}),mediaInteractionCb:(y)=>r({type:x.IncrementalSnapshot,data:{source:T.MediaInteraction,...y}}),styleSheetRuleCb:(y)=>r({type:x.IncrementalSnapshot,data:{source:T.StyleSheetRule,...y}}),styleDeclarationCb:(y)=>r({type:x.IncrementalSnapshot,data:{source:T.StyleDeclaration,...y}}),canvasMutationCb:J0,fontCb:(y)=>r({type:x.IncrementalSnapshot,data:{source:T.Font,...y}}),selectionCb:(y)=>{r({type:x.IncrementalSnapshot,data:{source:T.Selection,...y}})},customElementCb:(y)=>{r({type:x.IncrementalSnapshot,data:{source:T.CustomElement,...y}})},blockClass:Q,ignoreClass:K,ignoreSelector:q,maskTextClass:G,maskTextSelector:H,maskInputOptions:a,inlineStylesheet:W,sampling:O,recordDOM:E,recordCanvas:_,inlineImages:t,userTriggeredOnInput:g,collectFonts:f,doc:m,maskInputFn:L,maskTextFn:j,keepIframeSrcFn:I,blockSelector:V,slimDOMOptions:o,dataURLOptions:P,mirror:L0,iframeManager:D0,stylesheetManager:O0,shadowDomManager:k0,processedNodeManager:q1,canvasManager:FJ,ignoreCSSAttributes:e,plugins:((A0=l==null?void 0:l.filter((y)=>y.observer))==null?void 0:A0.map((y)=>({observer:y.observer,options:y.options,callback:(sZ)=>r({type:x.Plugin,data:{plugin:y.name,payload:sZ}})})))||[]},z)};D0.addLoadListener((m)=>{try{S.push(G0(m.contentDocument))}catch(A0){console.warn(A0)}});let s=()=>{AZ(),S.push(G0(document)),fZ=!0};if(document.readyState==="interactive"||document.readyState==="complete")s();else S.push(Y0("DOMContentLoaded",()=>{if(r({type:x.DomContentLoaded,data:{}}),M==="DOMContentLoaded")s()})),S.push(Y0("load",()=>{if(r({type:x.Load,data:{}}),M==="load")s()},window));return()=>{S.forEach((m)=>m()),q1.destroy(),fZ=!1,NG()}}catch(S){console.warn(S)}}G1.addCustomEvent=(X,Z)=>{if(!fZ)throw Error("please add custom event after start recording");r({type:x.Custom,data:{tag:X,payload:Z}})};G1.freezePage=()=>{b0.forEach((X)=>X.freeze())};G1.takeFullSnapshot=(X)=>{if(!fZ)throw Error("please take full snapshot after start recording");AZ(X)};G1.mirror=L0;/*! *****************************************************************************
59
+ or you can use record.mirror to access the mirror instance during recording.`,W8={map:{},getId(){return console.error(a0),-1},getNode(){return console.error(a0),null},removeNodeFromMap(){console.error(a0)},has(){return console.error(a0),!1},reset(){console.error(a0)}};if(typeof window!=="undefined"&&window.Proxy&&window.Reflect)W8=new Proxy(W8,{get(X,Z,J){if(Z==="map")console.error(a0);return Reflect.get(X,Z,J)}});function $1(X,Z,J={}){let Y=null,Q=0;return function(...V){let G=Date.now();if(!Q&&J.leading===!1)Q=G;let K=Z-(G-Q),q=this;if(K<=0||K>Z){if(Y)clearTimeout(Y),Y=null;Q=G,X.apply(q,V)}else if(!Y&&J.trailing!==!1)Y=setTimeout(()=>{Q=J.leading===!1?0:Date.now(),Y=null,X.apply(q,V)},K)}}function iZ(X,Z,J,Y,Q=window){let V=Q.Object.getOwnPropertyDescriptor(X,Z);return Q.Object.defineProperty(X,Z,Y?J:{set(G){if(setTimeout(()=>{J.set.call(this,G)},0),V&&V.set)V.set.call(this,G)}}),()=>iZ(X,Z,V||{},!0)}function G1(X,Z,J){try{if(!(Z in X))return()=>{};let Y=X[Z],Q=J(Y);if(typeof Q==="function")Q.prototype=Q.prototype||{},Object.defineProperties(Q,{__rrweb_original__:{enumerable:!1,value:Y}});return X[Z]=Q,()=>{X[Z]=Y}}catch{return()=>{}}}var fZ=Date.now;if(!/[1-9][0-9]{12}/.test(Date.now().toString()))fZ=()=>new Date().getTime();function l6(X){var Z,J,Y,Q;let V=X.document;return{left:V.scrollingElement?V.scrollingElement.scrollLeft:X.pageXOffset!==void 0?X.pageXOffset:V.documentElement.scrollLeft||(V==null?void 0:V.body)&&((Z=I.parentElement(V.body))==null?void 0:Z.scrollLeft)||((J=V==null?void 0:V.body)==null?void 0:J.scrollLeft)||0,top:V.scrollingElement?V.scrollingElement.scrollTop:X.pageYOffset!==void 0?X.pageYOffset:(V==null?void 0:V.documentElement.scrollTop)||(V==null?void 0:V.body)&&((Y=I.parentElement(V.body))==null?void 0:Y.scrollTop)||((Q=V==null?void 0:V.body)==null?void 0:Q.scrollTop)||0}}function d6(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function i6(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function r6(X){if(!X)return null;return X.nodeType===X.ELEMENT_NODE?X:I.parentElement(X)}function Q0(X,Z,J,Y){if(!X)return!1;let Q=r6(X);if(!Q)return!1;try{if(typeof Z==="string"){if(Q.classList.contains(Z))return!0;if(Y&&Q.closest("."+Z)!==null)return!0}else if(wZ(Q,Z,Y))return!0}catch(V){}if(J){if(Q.matches(J))return!0;if(Y&&Q.closest(J)!==null)return!0}return!1}function Sq(X,Z){return Z.getId(X)!==-1}function AJ(X,Z,J){if(X.tagName==="TITLE"&&J.headTitleMutations)return!0;return Z.getId(X)===M1}function a6(X,Z){if(F1(X))return!1;let J=Z.getId(X);if(!Z.has(J))return!0;let Y=I.parentNode(X);if(Y&&Y.nodeType===X.DOCUMENT_NODE)return!1;if(!Y)return!0;return a6(Y,Z)}function eJ(X){return Boolean(X.changedTouches)}function xq(X=window){if("NodeList"in X&&!X.NodeList.prototype.forEach)X.NodeList.prototype.forEach=Array.prototype.forEach;if("DOMTokenList"in X&&!X.DOMTokenList.prototype.forEach)X.DOMTokenList.prototype.forEach=Array.prototype.forEach}function s6(X,Z){return Boolean(X.nodeName==="IFRAME"&&Z.getMeta(X))}function o6(X,Z){return Boolean(X.nodeName==="LINK"&&X.nodeType===X.ELEMENT_NODE&&X.getAttribute&&X.getAttribute("rel")==="stylesheet"&&Z.getMeta(X))}function Z9(X){if(!X)return!1;if(X instanceof N9&&"shadowRoot"in X)return Boolean(X.shadowRoot);return Boolean(I.shadowRoot(X))}class n6{constructor(){F(this,"id",1),F(this,"styleIDMap",new WeakMap),F(this,"idStyleMap",new Map)}getId(X){return this.styleIDMap.get(X)??-1}has(X){return this.styleIDMap.has(X)}add(X,Z){if(this.has(X))return this.getId(X);let J;if(Z===void 0)J=this.id++;else J=Z;return this.styleIDMap.set(X,J),this.idStyleMap.set(J,X),J}getStyle(X){return this.idStyleMap.get(X)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function t6(X){var Z;let J=null;if("getRootNode"in X&&((Z=I.getRootNode(X))==null?void 0:Z.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&I.host(I.getRootNode(X)))J=I.host(I.getRootNode(X));return J}function fq(X){let Z=X,J;while(J=t6(Z))Z=J;return Z}function hq(X){let Z=X.ownerDocument;if(!Z)return!1;let J=fq(X);return I.contains(Z,J)}function e6(X){let Z=X.ownerDocument;if(!Z)return!1;return I.contains(Z,X)||hq(X)}var S=((X)=>{return X[X.DomContentLoaded=0]="DomContentLoaded",X[X.Load=1]="Load",X[X.FullSnapshot=2]="FullSnapshot",X[X.IncrementalSnapshot=3]="IncrementalSnapshot",X[X.Meta=4]="Meta",X[X.Custom=5]="Custom",X[X.Plugin=6]="Plugin",X})(S||{}),N=((X)=>{return X[X.Mutation=0]="Mutation",X[X.MouseMove=1]="MouseMove",X[X.MouseInteraction=2]="MouseInteraction",X[X.Scroll=3]="Scroll",X[X.ViewportResize=4]="ViewportResize",X[X.Input=5]="Input",X[X.TouchMove=6]="TouchMove",X[X.MediaInteraction=7]="MediaInteraction",X[X.StyleSheetRule=8]="StyleSheetRule",X[X.CanvasMutation=9]="CanvasMutation",X[X.Font=10]="Font",X[X.Log=11]="Log",X[X.Drag=12]="Drag",X[X.StyleDeclaration=13]="StyleDeclaration",X[X.Selection=14]="Selection",X[X.AdoptedStyleSheet=15]="AdoptedStyleSheet",X[X.CustomElement=16]="CustomElement",X})(N||{}),K0=((X)=>{return X[X.MouseUp=0]="MouseUp",X[X.MouseDown=1]="MouseDown",X[X.Click=2]="Click",X[X.ContextMenu=3]="ContextMenu",X[X.DblClick=4]="DblClick",X[X.Focus=5]="Focus",X[X.Blur=6]="Blur",X[X.TouchStart=7]="TouchStart",X[X.TouchMove_Departed=8]="TouchMove_Departed",X[X.TouchEnd=9]="TouchEnd",X[X.TouchCancel=10]="TouchCancel",X})(K0||{}),w0=((X)=>{return X[X.Mouse=0]="Mouse",X[X.Pen=1]="Pen",X[X.Touch=2]="Touch",X})(w0||{}),V1=((X)=>{return X[X["2D"]=0]="2D",X[X.WebGL=1]="WebGL",X[X.WebGL2=2]="WebGL2",X})(V1||{}),s0=((X)=>{return X[X.Play=0]="Play",X[X.Pause=1]="Pause",X[X.Seeked=2]="Seeked",X[X.VolumeChange=3]="VolumeChange",X[X.RateChange=4]="RateChange",X})(s0||{});var ZY=((X)=>{return X[X.Document=0]="Document",X[X.DocumentType=1]="DocumentType",X[X.Element=2]="Element",X[X.Text=3]="Text",X[X.CDATA=4]="CDATA",X[X.Comment=5]="Comment",X})(ZY||{});function H8(X){return"__ln"in X}class JY{constructor(){F(this,"length",0),F(this,"head",null),F(this,"tail",null)}get(X){if(X>=this.length)throw new Error("Position outside of list range");let Z=this.head;for(let J=0;J<X;J++)Z=(Z==null?void 0:Z.next)||null;return Z}addNode(X){let Z={value:X,previous:null,next:null};if(X.__ln=Z,X.previousSibling&&H8(X.previousSibling)){let J=X.previousSibling.__ln.next;if(Z.next=J,Z.previous=X.previousSibling.__ln,X.previousSibling.__ln.next=Z,J)J.previous=Z}else if(X.nextSibling&&H8(X.nextSibling)&&X.nextSibling.__ln.previous){let J=X.nextSibling.__ln.previous;if(Z.previous=J,Z.next=X.nextSibling.__ln,X.nextSibling.__ln.previous=Z,J)J.next=Z}else{if(this.head)this.head.previous=Z;Z.next=this.head,this.head=Z}if(Z.next===null)this.tail=Z;this.length++}removeNode(X){let Z=X.__ln;if(!this.head)return;if(!Z.previous)if(this.head=Z.next,this.head)this.head.previous=null;else this.tail=null;else if(Z.previous.next=Z.next,Z.next)Z.next.previous=Z.previous;else this.tail=Z.previous;if(X.__ln)delete X.__ln;this.length--}}var U8=(X,Z)=>`${X}@${Z}`;class XY{constructor(){F(this,"frozen",!1),F(this,"locked",!1),F(this,"texts",[]),F(this,"attributes",[]),F(this,"attributeMap",new WeakMap),F(this,"removes",[]),F(this,"mapRemoves",[]),F(this,"movedMap",{}),F(this,"addedSet",new Set),F(this,"movedSet",new Set),F(this,"droppedSet",new Set),F(this,"removesSubTreeCache",new Set),F(this,"mutationCb"),F(this,"blockClass"),F(this,"blockSelector"),F(this,"maskTextClass"),F(this,"maskTextSelector"),F(this,"inlineStylesheet"),F(this,"maskInputOptions"),F(this,"maskTextFn"),F(this,"maskInputFn"),F(this,"keepIframeSrcFn"),F(this,"recordCanvas"),F(this,"inlineImages"),F(this,"slimDOMOptions"),F(this,"dataURLOptions"),F(this,"doc"),F(this,"mirror"),F(this,"iframeManager"),F(this,"stylesheetManager"),F(this,"shadowDomManager"),F(this,"canvasManager"),F(this,"processedNodeManager"),F(this,"unattachedDoc"),F(this,"processMutations",(X)=>{X.forEach(this.processMutation),this.emit()}),F(this,"emit",()=>{if(this.frozen||this.locked)return;let X=[],Z=new Set,J=new JY,Y=(K)=>{let q=K,W=M1;while(W===M1)q=q&&q.nextSibling,W=q&&this.mirror.getId(q);return W},Q=(K)=>{let q=I.parentNode(K);if(!q||!e6(K))return;let W=!1;if(K.nodeType===Node.TEXT_NODE){let B=q.tagName;if(B==="TEXTAREA")return;else if(B==="STYLE"&&this.addedSet.has(q))W=!0}let H=F1(q)?this.mirror.getId(t6(K)):this.mirror.getId(q),z=Y(K);if(H===-1||z===-1)return J.addNode(K);let j=n0(K,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:(B)=>{if(s6(B,this.mirror))this.iframeManager.addIframe(B);if(o6(B,this.mirror))this.stylesheetManager.trackLinkElement(B);if(Z9(K))this.shadowDomManager.addShadowRoot(I.shadowRoot(K),this.doc)},onIframeLoad:(B,L)=>{this.iframeManager.attachIframe(B,L),this.shadowDomManager.observeAttachShadow(B)},onStylesheetLoad:(B,L)=>{this.stylesheetManager.attachLinkElement(B,L)},cssCaptured:W});if(j)X.push({parentId:H,nextId:z,node:j}),Z.add(j.id)};while(this.mapRemoves.length)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let K of this.movedSet){if(z8(this.removesSubTreeCache,K,this.mirror)&&!this.movedSet.has(I.parentNode(K)))continue;Q(K)}for(let K of this.addedSet)if(!B8(this.droppedSet,K)&&!z8(this.removesSubTreeCache,K,this.mirror))Q(K);else if(B8(this.movedSet,K))Q(K);else this.droppedSet.add(K);let V=null;while(J.length){let K=null;if(V){let q=this.mirror.getId(I.parentNode(V.value)),W=Y(V.value);if(q!==-1&&W!==-1)K=V}if(!K){let q=J.tail;while(q){let W=q;if(q=q.previous,W){let H=this.mirror.getId(I.parentNode(W.value));if(Y(W.value)===-1)continue;else if(H!==-1){K=W;break}else{let j=W.value,B=I.parentNode(j);if(B&&B.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let L=I.host(B);if(this.mirror.getId(L)!==-1){K=W;break}}}}}}if(!K){while(J.head)J.removeNode(J.head.value);break}V=K.previous,J.removeNode(K.value),Q(K.value)}let G={texts:this.texts.map((K)=>{let q=K.node,W=I.parentNode(q);if(W&&W.tagName==="TEXTAREA")this.genTextAreaValueMutation(W);return{id:this.mirror.getId(q),value:K.value}}).filter((K)=>!Z.has(K.id)).filter((K)=>this.mirror.has(K.id)),attributes:this.attributes.map((K)=>{let{attributes:q}=K;if(typeof q.style==="string"){let W=JSON.stringify(K.styleDiff),H=JSON.stringify(K._unchangedStyles);if(W.length<q.style.length){if((W+H).split("var(").length===q.style.split("var(").length)q.style=K.styleDiff}}return{id:this.mirror.getId(K.node),attributes:q}}).filter((K)=>!Z.has(K.id)).filter((K)=>this.mirror.has(K.id)),removes:this.removes,adds:X};if(!G.texts.length&&!G.attributes.length&&!G.removes.length&&!G.adds.length)return;this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(G)}),F(this,"genTextAreaValueMutation",(X)=>{let Z=this.attributeMap.get(X);if(!Z)Z={node:X,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(Z),this.attributeMap.set(X,Z);Z.attributes.value=Array.from(I.childNodes(X),(J)=>I.textContent(J)||"").join("")}),F(this,"processMutation",(X)=>{if(AJ(X.target,this.mirror,this.slimDOMOptions))return;switch(X.type){case"characterData":{let Z=I.textContent(X.target);if(!Q0(X.target,this.blockClass,this.blockSelector,!1)&&Z!==X.oldValue)this.texts.push({value:I8(X.target,this.maskTextClass,this.maskTextSelector,!0)&&Z?this.maskTextFn?this.maskTextFn(Z,r6(X.target)):Z.replace(/[\S]/g,"*"):Z,node:X.target});break}case"attributes":{let{target:Z,attributeName:J}=X,Y=X.target.getAttribute(J);if(J==="value"){let V=G9(Z);Y=V9({element:Z,maskInputOptions:this.maskInputOptions,tagName:Z.tagName,type:V,value:Y,maskInputFn:this.maskInputFn})}if(Q0(X.target,this.blockClass,this.blockSelector,!1)||Y===X.oldValue)return;let Q=this.attributeMap.get(X.target);if(Z.tagName==="IFRAME"&&J==="src"&&!this.keepIframeSrcFn(Y))if(!Z.contentDocument)J="rr_src";else return;if(!Q)Q={node:X.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(Q),this.attributeMap.set(X.target,Q);if(J==="type"&&Z.tagName==="INPUT"&&(X.oldValue||"").toLowerCase()==="password")Z.setAttribute("data-rr-is-password","true");if(!R8(Z.tagName,J)){if(Q.attributes[J]=E8(this.doc,g0(Z.tagName),g0(J),Y),J==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(G){this.unattachedDoc=this.doc}let V=this.unattachedDoc.createElement("span");if(X.oldValue)V.setAttribute("style",X.oldValue);for(let G of Array.from(Z.style)){let K=Z.style.getPropertyValue(G),q=Z.style.getPropertyPriority(G);if(K!==V.style.getPropertyValue(G)||q!==V.style.getPropertyPriority(G))if(q==="")Q.styleDiff[G]=K;else Q.styleDiff[G]=[K,q];else Q._unchangedStyles[G]=[K,q]}for(let G of Array.from(V.style))if(Z.style.getPropertyValue(G)==="")Q.styleDiff[G]=!1}else if(J==="open"&&Z.tagName==="DIALOG")if(Z.matches("dialog:modal"))Q.attributes.rr_open_mode="modal";else Q.attributes.rr_open_mode="non-modal"}break}case"childList":{if(Q0(X.target,this.blockClass,this.blockSelector,!0))return;if(X.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(X.target);return}X.addedNodes.forEach((Z)=>this.genAdds(Z,X.target)),X.removedNodes.forEach((Z)=>{let J=this.mirror.getId(Z),Y=F1(X.target)?this.mirror.getId(I.host(X.target)):this.mirror.getId(X.target);if(Q0(X.target,this.blockClass,this.blockSelector,!1)||AJ(Z,this.mirror,this.slimDOMOptions)||!Sq(Z,this.mirror))return;if(this.addedSet.has(Z))J9(this.addedSet,Z),this.droppedSet.add(Z);else if(this.addedSet.has(X.target)&&J===-1);else if(a6(X.target,this.mirror));else if(this.movedSet.has(Z)&&this.movedMap[U8(J,Y)])J9(this.movedSet,Z);else this.removes.push({parentId:Y,id:J,isShadow:F1(X.target)&&O1(X.target)?!0:void 0}),kq(Z,this.removesSubTreeCache);this.mapRemoves.push(Z)});break}}}),F(this,"genAdds",(X,Z)=>{if(this.processedNodeManager.inOtherBuffer(X,this))return;if(this.addedSet.has(X)||this.movedSet.has(X))return;if(this.mirror.hasNode(X)){if(AJ(X,this.mirror,this.slimDOMOptions))return;this.movedSet.add(X);let J=null;if(Z&&this.mirror.hasNode(Z))J=this.mirror.getId(Z);if(J&&J!==-1)this.movedMap[U8(this.mirror.getId(X),J)]=!0}else this.addedSet.add(X),this.droppedSet.delete(X);if(!Q0(X,this.blockClass,this.blockSelector,!1)){if(I.childNodes(X).forEach((J)=>this.genAdds(J)),Z9(X))I.childNodes(I.shadowRoot(X)).forEach((J)=>{this.processedNodeManager.add(J,this),this.genAdds(J,X)})}})}init(X){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((Z)=>{this[Z]=X[Z]})}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 J9(X,Z){X.delete(Z),I.childNodes(Z).forEach((J)=>J9(X,J))}function kq(X,Z){let J=[X];while(J.length){let Y=J.pop();if(Z.has(Y))continue;Z.add(Y),I.childNodes(Y).forEach((Q)=>J.push(Q))}return}function z8(X,Z,J){if(X.size===0)return!1;return vq(X,Z)}function vq(X,Z,J){let Y=I.parentNode(Z);if(!Y)return!1;return X.has(Y)}function B8(X,Z){if(X.size===0)return!1;return YY(X,Z)}function YY(X,Z){let J=I.parentNode(Z);if(!J)return!1;if(X.has(J))return!0;return YY(X,J)}var A1;function bq(X){A1=X}function gq(){A1=void 0}var T=(X)=>{if(!A1)return X;return(...J)=>{try{return X(...J)}catch(Y){if(A1&&A1(Y)===!0)return;throw Y}}},b0=[];function k1(X){try{if("composedPath"in X){let Z=X.composedPath();if(Z.length)return Z[0]}else if("path"in X&&X.path.length)return X.path[0]}catch{}return X&&X.target}function QY(X,Z){let J=new XY;b0.push(J),J.init(X);let Y=new(p6())(T(J.processMutations.bind(J)));return Y.observe(Z,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),Y}function yq({mousemoveCb:X,sampling:Z,doc:J,mirror:Y}){if(Z.mousemove===!1)return()=>{};let Q=typeof Z.mousemove==="number"?Z.mousemove:50,V=typeof Z.mousemoveCallback==="number"?Z.mousemoveCallback:500,G=[],K,q=$1(T((z)=>{let j=Date.now()-K;X(G.map((B)=>{return B.timeOffset-=j,B}),z),G=[],K=null}),V),W=T($1(T((z)=>{let j=k1(z),{clientX:B,clientY:L}=eJ(z)?z.changedTouches[0]:z;if(!K)K=fZ();G.push({x:B,y:L,id:Y.getId(j),timeOffset:fZ()-K}),q(typeof DragEvent!=="undefined"&&z instanceof DragEvent?N.Drag:z instanceof MouseEvent?N.MouseMove:N.TouchMove)}),Q,{trailing:!1})),H=[Y0("mousemove",W,J),Y0("touchmove",W,J),Y0("drag",W,J)];return T(()=>{H.forEach((z)=>z())})}function mq({mouseInteractionCb:X,doc:Z,mirror:J,blockClass:Y,blockSelector:Q,sampling:V}){if(V.mouseInteraction===!1)return()=>{};let G=V.mouseInteraction===!0||V.mouseInteraction===void 0?{}:V.mouseInteraction,K=[],q=null,W=(H)=>{return(z)=>{let j=k1(z);if(Q0(j,Y,Q,!0))return;let B=null,L=H;if("pointerType"in z){switch(z.pointerType){case"mouse":B=w0.Mouse;break;case"touch":B=w0.Touch;break;case"pen":B=w0.Pen;break}if(B===w0.Touch){if(K0[H]===K0.MouseDown)L="TouchStart";else if(K0[H]===K0.MouseUp)L="TouchEnd"}else if(B===w0.Pen);}else if(eJ(z))B=w0.Touch;if(B!==null){if(q=B,L.startsWith("Touch")&&B===w0.Touch||L.startsWith("Mouse")&&B===w0.Mouse)B=null}else if(K0[H]===K0.Click)B=q,q=null;let D=eJ(z)?z.changedTouches[0]:z;if(!D)return;let U=J.getId(j),{clientX:A,clientY:O}=D;T(X)({type:K0[L],id:U,x:A,y:O,...B!==null&&{pointerType:B}})}};return Object.keys(K0).filter((H)=>Number.isNaN(Number(H))&&!H.endsWith("_Departed")&&G[H]!==!1).forEach((H)=>{let z=g0(H),j=W(H);if(window.PointerEvent)switch(K0[H]){case K0.MouseDown:case K0.MouseUp:z=z.replace("mouse","pointer");break;case K0.TouchStart:case K0.TouchEnd:return}K.push(Y0(z,j,Z))}),T(()=>{K.forEach((H)=>H())})}function VY({scrollCb:X,doc:Z,mirror:J,blockClass:Y,blockSelector:Q,sampling:V}){let G=T($1(T((K)=>{let q=k1(K);if(!q||Q0(q,Y,Q,!0))return;let W=J.getId(q);if(q===Z&&Z.defaultView){let H=l6(Z.defaultView);X({id:W,x:H.left,y:H.top})}else X({id:W,x:q.scrollLeft,y:q.scrollTop})}),V.scroll||100));return Y0("scroll",G,Z)}function uq({viewportResizeCb:X},{win:Z}){let J=-1,Y=-1,Q=T($1(T(()=>{let V=d6(),G=i6();if(J!==V||Y!==G)X({width:Number(G),height:Number(V)}),J=V,Y=G}),200));return Y0("resize",Q,Z)}var cq=["INPUT","TEXTAREA","SELECT"],j8=new WeakMap;function pq({inputCb:X,doc:Z,mirror:J,blockClass:Y,blockSelector:Q,ignoreClass:V,ignoreSelector:G,maskInputOptions:K,maskInputFn:q,sampling:W,userTriggeredOnInput:H}){function z(O){let P=k1(O),C=O.isTrusted,w=P&&P.tagName;if(P&&w==="OPTION")P=I.parentElement(P);if(!P||!w||cq.indexOf(w)<0||Q0(P,Y,Q,!0))return;if(P.classList.contains(V)||G&&P.matches(G))return;let _=P.value,E=!1,M=G9(P)||"";if(M==="radio"||M==="checkbox")E=P.checked;else if(K[w.toLowerCase()]||K[M])_=V9({element:P,maskInputOptions:K,tagName:w,type:M,value:_,maskInputFn:q});j(P,H?{text:_,isChecked:E,userTriggered:C}:{text:_,isChecked:E});let x=P.name;if(M==="radio"&&x&&E)Z.querySelectorAll(`input[type="radio"][name="${x}"]`).forEach((h)=>{if(h!==P){let t=h.value;j(h,H?{text:t,isChecked:!E,userTriggered:!1}:{text:t,isChecked:!E})}})}function j(O,P){let C=j8.get(O);if(!C||C.text!==P.text||C.isChecked!==P.isChecked){j8.set(O,P);let w=J.getId(O);T(X)({...P,id:w})}}let L=(W.input==="last"?["change"]:["input","change"]).map((O)=>Y0(O,T(z),Z)),D=Z.defaultView;if(!D)return()=>{L.forEach((O)=>O())};let U=D.Object.getOwnPropertyDescriptor(D.HTMLInputElement.prototype,"value"),A=[[D.HTMLInputElement.prototype,"value"],[D.HTMLInputElement.prototype,"checked"],[D.HTMLSelectElement.prototype,"value"],[D.HTMLTextAreaElement.prototype,"value"],[D.HTMLSelectElement.prototype,"selectedIndex"],[D.HTMLOptionElement.prototype,"selected"]];if(U&&U.set)L.push(...A.map((O)=>iZ(O[0],O[1],{set(){T(z)({target:this,isTrusted:!1})}},!1,D)));return T(()=>{L.forEach((O)=>O())})}function hZ(X){let Z=[];function J(Y,Q){if(DZ("CSSGroupingRule")&&Y.parentRule instanceof CSSGroupingRule||DZ("CSSMediaRule")&&Y.parentRule instanceof CSSMediaRule||DZ("CSSSupportsRule")&&Y.parentRule instanceof CSSSupportsRule||DZ("CSSConditionRule")&&Y.parentRule instanceof CSSConditionRule){let G=Array.from(Y.parentRule.cssRules).indexOf(Y);Q.unshift(G)}else if(Y.parentStyleSheet){let G=Array.from(Y.parentStyleSheet.cssRules).indexOf(Y);Q.unshift(G)}return Q}return J(X,Z)}function S0(X,Z,J){let Y,Q;if(!X)return{};if(X.ownerNode)Y=Z.getId(X.ownerNode);else Q=J.getId(X);return{styleId:Q,id:Y}}function lq({styleSheetRuleCb:X,mirror:Z,stylesheetManager:J},{win:Y}){if(!Y.CSSStyleSheet||!Y.CSSStyleSheet.prototype)return()=>{};let Q=Y.CSSStyleSheet.prototype.insertRule;Y.CSSStyleSheet.prototype.insertRule=new Proxy(Q,{apply:T((H,z,j)=>{let[B,L]=j,{id:D,styleId:U}=S0(z,Z,J.styleMirror);if(D&&D!==-1||U&&U!==-1)X({id:D,styleId:U,adds:[{rule:B,index:L}]});return H.apply(z,j)})}),Y.CSSStyleSheet.prototype.addRule=function(H,z,j=this.cssRules.length){let B=`${H} { ${z} }`;return Y.CSSStyleSheet.prototype.insertRule.apply(this,[B,j])};let V=Y.CSSStyleSheet.prototype.deleteRule;Y.CSSStyleSheet.prototype.deleteRule=new Proxy(V,{apply:T((H,z,j)=>{let[B]=j,{id:L,styleId:D}=S0(z,Z,J.styleMirror);if(L&&L!==-1||D&&D!==-1)X({id:L,styleId:D,removes:[{index:B}]});return H.apply(z,j)})}),Y.CSSStyleSheet.prototype.removeRule=function(H){return Y.CSSStyleSheet.prototype.deleteRule.apply(this,[H])};let G;if(Y.CSSStyleSheet.prototype.replace)G=Y.CSSStyleSheet.prototype.replace,Y.CSSStyleSheet.prototype.replace=new Proxy(G,{apply:T((H,z,j)=>{let[B]=j,{id:L,styleId:D}=S0(z,Z,J.styleMirror);if(L&&L!==-1||D&&D!==-1)X({id:L,styleId:D,replace:B});return H.apply(z,j)})});let K;if(Y.CSSStyleSheet.prototype.replaceSync)K=Y.CSSStyleSheet.prototype.replaceSync,Y.CSSStyleSheet.prototype.replaceSync=new Proxy(K,{apply:T((H,z,j)=>{let[B]=j,{id:L,styleId:D}=S0(z,Z,J.styleMirror);if(L&&L!==-1||D&&D!==-1)X({id:L,styleId:D,replaceSync:B});return H.apply(z,j)})});let q={};if(LZ("CSSGroupingRule"))q.CSSGroupingRule=Y.CSSGroupingRule;else{if(LZ("CSSMediaRule"))q.CSSMediaRule=Y.CSSMediaRule;if(LZ("CSSConditionRule"))q.CSSConditionRule=Y.CSSConditionRule;if(LZ("CSSSupportsRule"))q.CSSSupportsRule=Y.CSSSupportsRule}let W={};return Object.entries(q).forEach(([H,z])=>{W[H]={insertRule:z.prototype.insertRule,deleteRule:z.prototype.deleteRule},z.prototype.insertRule=new Proxy(W[H].insertRule,{apply:T((j,B,L)=>{let[D,U]=L,{id:A,styleId:O}=S0(B.parentStyleSheet,Z,J.styleMirror);if(A&&A!==-1||O&&O!==-1)X({id:A,styleId:O,adds:[{rule:D,index:[...hZ(B),U||0]}]});return j.apply(B,L)})}),z.prototype.deleteRule=new Proxy(W[H].deleteRule,{apply:T((j,B,L)=>{let[D]=L,{id:U,styleId:A}=S0(B.parentStyleSheet,Z,J.styleMirror);if(U&&U!==-1||A&&A!==-1)X({id:U,styleId:A,removes:[{index:[...hZ(B),D]}]});return j.apply(B,L)})})}),T(()=>{Y.CSSStyleSheet.prototype.insertRule=Q,Y.CSSStyleSheet.prototype.deleteRule=V,G&&(Y.CSSStyleSheet.prototype.replace=G),K&&(Y.CSSStyleSheet.prototype.replaceSync=K),Object.entries(q).forEach(([H,z])=>{z.prototype.insertRule=W[H].insertRule,z.prototype.deleteRule=W[H].deleteRule})})}function GY({mirror:X,stylesheetManager:Z},J){var Y,Q,V;let G=null;if(J.nodeName==="#document")G=X.getId(J);else G=X.getId(I.host(J));let K=J.nodeName==="#document"?(Y=J.defaultView)==null?void 0:Y.Document:(V=(Q=J.ownerDocument)==null?void 0:Q.defaultView)==null?void 0:V.ShadowRoot,q=(K==null?void 0:K.prototype)?Object.getOwnPropertyDescriptor(K==null?void 0:K.prototype,"adoptedStyleSheets"):void 0;if(G===null||G===-1||!K||!q)return()=>{};return Object.defineProperty(J,"adoptedStyleSheets",{configurable:q.configurable,enumerable:q.enumerable,get(){var W;return(W=q.get)==null?void 0:W.call(this)},set(W){var H;let z=(H=q.set)==null?void 0:H.call(this,W);if(G!==null&&G!==-1)try{Z.adoptStyleSheets(W,G)}catch(j){}return z}}),T(()=>{Object.defineProperty(J,"adoptedStyleSheets",{configurable:q.configurable,enumerable:q.enumerable,get:q.get,set:q.set})})}function dq({styleDeclarationCb:X,mirror:Z,ignoreCSSAttributes:J,stylesheetManager:Y},{win:Q}){let V=Q.CSSStyleDeclaration.prototype.setProperty;Q.CSSStyleDeclaration.prototype.setProperty=new Proxy(V,{apply:T((K,q,W)=>{var H;let[z,j,B]=W;if(J.has(z))return V.apply(q,[z,j,B]);let{id:L,styleId:D}=S0((H=q.parentRule)==null?void 0:H.parentStyleSheet,Z,Y.styleMirror);if(L&&L!==-1||D&&D!==-1)X({id:L,styleId:D,set:{property:z,value:j,priority:B},index:hZ(q.parentRule)});return K.apply(q,W)})});let G=Q.CSSStyleDeclaration.prototype.removeProperty;return Q.CSSStyleDeclaration.prototype.removeProperty=new Proxy(G,{apply:T((K,q,W)=>{var H;let[z]=W;if(J.has(z))return G.apply(q,[z]);let{id:j,styleId:B}=S0((H=q.parentRule)==null?void 0:H.parentStyleSheet,Z,Y.styleMirror);if(j&&j!==-1||B&&B!==-1)X({id:j,styleId:B,remove:{property:z},index:hZ(q.parentRule)});return K.apply(q,W)})}),T(()=>{Q.CSSStyleDeclaration.prototype.setProperty=V,Q.CSSStyleDeclaration.prototype.removeProperty=G})}function iq({mediaInteractionCb:X,blockClass:Z,blockSelector:J,mirror:Y,sampling:Q,doc:V}){let G=T((q)=>$1(T((W)=>{let H=k1(W);if(!H||Q0(H,Z,J,!0))return;let{currentTime:z,volume:j,muted:B,playbackRate:L,loop:D}=H;X({type:q,id:Y.getId(H),currentTime:z,volume:j,muted:B,playbackRate:L,loop:D})}),Q.media||500)),K=[Y0("play",G(s0.Play),V),Y0("pause",G(s0.Pause),V),Y0("seeked",G(s0.Seeked),V),Y0("volumechange",G(s0.VolumeChange),V),Y0("ratechange",G(s0.RateChange),V)];return T(()=>{K.forEach((q)=>q())})}function rq({fontCb:X,doc:Z}){let J=Z.defaultView;if(!J)return()=>{};let Y=[],Q=new WeakMap,V=J.FontFace;J.FontFace=function K(q,W,H){let z=new V(q,W,H);return Q.set(z,{family:q,buffer:typeof W!=="string",descriptors:H,fontSource:typeof W==="string"?W:JSON.stringify(Array.from(new Uint8Array(W)))}),z};let G=G1(Z.fonts,"add",function(K){return function(q){return setTimeout(T(()=>{let W=Q.get(q);if(W)X(W),Q.delete(q)}),0),K.apply(this,[q])}});return Y.push(()=>{J.FontFace=V}),Y.push(G),T(()=>{Y.forEach((K)=>K())})}function aq(X){let{doc:Z,mirror:J,blockClass:Y,blockSelector:Q,selectionCb:V}=X,G=!0,K=T(()=>{let q=Z.getSelection();if(!q||G&&(q==null?void 0:q.isCollapsed))return;G=q.isCollapsed||!1;let W=[],H=q.rangeCount||0;for(let z=0;z<H;z++){let j=q.getRangeAt(z),{startContainer:B,startOffset:L,endContainer:D,endOffset:U}=j;if(Q0(B,Y,Q,!0)||Q0(D,Y,Q,!0))continue;W.push({start:J.getId(B),startOffset:L,end:J.getId(D),endOffset:U})}V({ranges:W})});return K(),Y0("selectionchange",K)}function sq({doc:X,customElementCb:Z}){let J=X.defaultView;if(!J||!J.customElements)return()=>{};return G1(J.customElements,"define",function(Q){return function(V,G,K){try{Z({define:{name:V}})}catch(q){console.warn(`Custom element callback failed for ${V}`)}return Q.apply(this,[V,G,K])}})}function oq(X,Z){let{mutationCb:J,mousemoveCb:Y,mouseInteractionCb:Q,scrollCb:V,viewportResizeCb:G,inputCb:K,mediaInteractionCb:q,styleSheetRuleCb:W,styleDeclarationCb:H,canvasMutationCb:z,fontCb:j,selectionCb:B,customElementCb:L}=X;X.mutationCb=(...D)=>{if(Z.mutation)Z.mutation(...D);J(...D)},X.mousemoveCb=(...D)=>{if(Z.mousemove)Z.mousemove(...D);Y(...D)},X.mouseInteractionCb=(...D)=>{if(Z.mouseInteraction)Z.mouseInteraction(...D);Q(...D)},X.scrollCb=(...D)=>{if(Z.scroll)Z.scroll(...D);V(...D)},X.viewportResizeCb=(...D)=>{if(Z.viewportResize)Z.viewportResize(...D);G(...D)},X.inputCb=(...D)=>{if(Z.input)Z.input(...D);K(...D)},X.mediaInteractionCb=(...D)=>{if(Z.mediaInteaction)Z.mediaInteaction(...D);q(...D)},X.styleSheetRuleCb=(...D)=>{if(Z.styleSheetRule)Z.styleSheetRule(...D);W(...D)},X.styleDeclarationCb=(...D)=>{if(Z.styleDeclaration)Z.styleDeclaration(...D);H(...D)},X.canvasMutationCb=(...D)=>{if(Z.canvasMutation)Z.canvasMutation(...D);z(...D)},X.fontCb=(...D)=>{if(Z.font)Z.font(...D);j(...D)},X.selectionCb=(...D)=>{if(Z.selection)Z.selection(...D);B(...D)},X.customElementCb=(...D)=>{if(Z.customElement)Z.customElement(...D);L(...D)}}function nq(X,Z={}){let J=X.doc.defaultView;if(!J)return()=>{};oq(X,Z);let Y;if(X.recordDOM)Y=QY(X,X.doc);let Q=yq(X),V=mq(X),G=VY(X),K=uq(X,{win:J}),q=pq(X),W=iq(X),H=()=>{},z=()=>{},j=()=>{},B=()=>{};if(X.recordDOM){if(H=lq(X,{win:J}),z=GY(X,X.doc),j=dq(X,{win:J}),X.collectFonts)B=rq(X)}let L=aq(X),D=sq(X),U=[];for(let A of X.plugins)U.push(A.observer(A.callback,J,A.options));return T(()=>{b0.forEach((A)=>A.reset()),Y==null||Y.disconnect(),Q(),V(),G(),K(),q(),W(),H(),z(),j(),B(),L(),D(),U.forEach((A)=>A())})}function DZ(X){return typeof window[X]!=="undefined"}function LZ(X){return Boolean(typeof window[X]!=="undefined"&&window[X].prototype&&"insertRule"in window[X].prototype&&"deleteRule"in window[X].prototype)}class X9{constructor(X){F(this,"iframeIdToRemoteIdMap",new WeakMap),F(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=X}getId(X,Z,J,Y){let Q=J||this.getIdToRemoteIdMap(X),V=Y||this.getRemoteIdToIdMap(X),G=Q.get(Z);if(!G)G=this.generateIdFn(),Q.set(Z,G),V.set(G,Z);return G}getIds(X,Z){let J=this.getIdToRemoteIdMap(X),Y=this.getRemoteIdToIdMap(X);return Z.map((Q)=>this.getId(X,Q,J,Y))}getRemoteId(X,Z,J){let Y=J||this.getRemoteIdToIdMap(X);if(typeof Z!=="number")return Z;let Q=Y.get(Z);if(!Q)return-1;return Q}getRemoteIds(X,Z){let J=this.getRemoteIdToIdMap(X);return Z.map((Y)=>this.getRemoteId(X,Y,J))}reset(X){if(!X){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(X),this.iframeRemoteIdToIdMap.delete(X)}getIdToRemoteIdMap(X){let Z=this.iframeIdToRemoteIdMap.get(X);if(!Z)Z=new Map,this.iframeIdToRemoteIdMap.set(X,Z);return Z}getRemoteIdToIdMap(X){let Z=this.iframeRemoteIdToIdMap.get(X);if(!Z)Z=new Map,this.iframeRemoteIdToIdMap.set(X,Z);return Z}}class qY{constructor(X){if(F(this,"iframes",new WeakMap),F(this,"crossOriginIframeMap",new WeakMap),F(this,"crossOriginIframeMirror",new X9(w8)),F(this,"crossOriginIframeStyleMirror"),F(this,"crossOriginIframeRootIdMap",new WeakMap),F(this,"mirror"),F(this,"mutationCb"),F(this,"wrappedEmit"),F(this,"loadListener"),F(this,"stylesheetManager"),F(this,"recordCrossOriginIframes"),this.mutationCb=X.mutationCb,this.wrappedEmit=X.wrappedEmit,this.stylesheetManager=X.stylesheetManager,this.recordCrossOriginIframes=X.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new X9(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=X.mirror,this.recordCrossOriginIframes)window.addEventListener("message",this.handleMessage.bind(this))}addIframe(X){if(this.iframes.set(X,!0),X.contentWindow)this.crossOriginIframeMap.set(X.contentWindow,X)}addLoadListener(X){this.loadListener=X}attachIframe(X,Z){var J,Y;if(this.mutationCb({adds:[{parentId:this.mirror.getId(X),nextId:null,node:Z}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes)(J=X.contentWindow)==null||J.addEventListener("message",this.handleMessage.bind(this));if((Y=this.loadListener)==null||Y.call(this,X),X.contentDocument&&X.contentDocument.adoptedStyleSheets&&X.contentDocument.adoptedStyleSheets.length>0)this.stylesheetManager.adoptStyleSheets(X.contentDocument.adoptedStyleSheets,this.mirror.getId(X.contentDocument))}handleMessage(X){let Z=X;if(Z.data.type!=="rrweb"||Z.origin!==Z.data.origin)return;if(!X.source)return;let Y=this.crossOriginIframeMap.get(X.source);if(!Y)return;let Q=this.transformCrossOriginEvent(Y,Z.data.event);if(Q)this.wrappedEmit(Q,Z.data.isCheckout)}transformCrossOriginEvent(X,Z){var J;switch(Z.type){case S.FullSnapshot:{this.crossOriginIframeMirror.reset(X),this.crossOriginIframeStyleMirror.reset(X),this.replaceIdOnNode(Z.data.node,X);let Y=Z.data.node.id;return this.crossOriginIframeRootIdMap.set(X,Y),this.patchRootIdOnNode(Z.data.node,Y),{timestamp:Z.timestamp,type:S.IncrementalSnapshot,data:{source:N.Mutation,adds:[{parentId:this.mirror.getId(X),nextId:null,node:Z.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case S.Meta:case S.Load:case S.DomContentLoaded:return!1;case S.Plugin:return Z;case S.Custom:return this.replaceIds(Z.data.payload,X,["id","parentId","previousId","nextId"]),Z;case S.IncrementalSnapshot:switch(Z.data.source){case N.Mutation:return Z.data.adds.forEach((Y)=>{this.replaceIds(Y,X,["parentId","nextId","previousId"]),this.replaceIdOnNode(Y.node,X);let Q=this.crossOriginIframeRootIdMap.get(X);Q&&this.patchRootIdOnNode(Y.node,Q)}),Z.data.removes.forEach((Y)=>{this.replaceIds(Y,X,["parentId","id"])}),Z.data.attributes.forEach((Y)=>{this.replaceIds(Y,X,["id"])}),Z.data.texts.forEach((Y)=>{this.replaceIds(Y,X,["id"])}),Z;case N.Drag:case N.TouchMove:case N.MouseMove:return Z.data.positions.forEach((Y)=>{this.replaceIds(Y,X,["id"])}),Z;case N.ViewportResize:return!1;case N.MediaInteraction:case N.MouseInteraction:case N.Scroll:case N.CanvasMutation:case N.Input:return this.replaceIds(Z.data,X,["id"]),Z;case N.StyleSheetRule:case N.StyleDeclaration:return this.replaceIds(Z.data,X,["id"]),this.replaceStyleIds(Z.data,X,["styleId"]),Z;case N.Font:return Z;case N.Selection:return Z.data.ranges.forEach((Y)=>{this.replaceIds(Y,X,["start","end"])}),Z;case N.AdoptedStyleSheet:return this.replaceIds(Z.data,X,["id"]),this.replaceStyleIds(Z.data,X,["styleIds"]),(J=Z.data.styles)==null||J.forEach((Y)=>{this.replaceStyleIds(Y,X,["styleId"])}),Z}}return!1}replace(X,Z,J,Y){for(let Q of Y){if(!Array.isArray(Z[Q])&&typeof Z[Q]!=="number")continue;if(Array.isArray(Z[Q]))Z[Q]=X.getIds(J,Z[Q]);else Z[Q]=X.getId(J,Z[Q])}return Z}replaceIds(X,Z,J){return this.replace(this.crossOriginIframeMirror,X,Z,J)}replaceStyleIds(X,Z,J){return this.replace(this.crossOriginIframeStyleMirror,X,Z,J)}replaceIdOnNode(X,Z){if(this.replaceIds(X,Z,["id","rootId"]),"childNodes"in X)X.childNodes.forEach((J)=>{this.replaceIdOnNode(J,Z)})}patchRootIdOnNode(X,Z){if(X.type!==ZY.Document&&!X.rootId)X.rootId=Z;if("childNodes"in X)X.childNodes.forEach((J)=>{this.patchRootIdOnNode(J,Z)})}}class KY{constructor(X){F(this,"shadowDoms",new WeakSet),F(this,"mutationCb"),F(this,"scrollCb"),F(this,"bypassOptions"),F(this,"mirror"),F(this,"restoreHandlers",[]),this.mutationCb=X.mutationCb,this.scrollCb=X.scrollCb,this.bypassOptions=X.bypassOptions,this.mirror=X.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(X,Z){if(!O1(X))return;if(this.shadowDoms.has(X))return;this.shadowDoms.add(X);let J=QY({...this.bypassOptions,doc:Z,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},X);this.restoreHandlers.push(()=>J.disconnect()),this.restoreHandlers.push(VY({...this.bypassOptions,scrollCb:this.scrollCb,doc:X,mirror:this.mirror})),setTimeout(()=>{if(X.adoptedStyleSheets&&X.adoptedStyleSheets.length>0)this.bypassOptions.stylesheetManager.adoptStyleSheets(X.adoptedStyleSheets,this.mirror.getId(I.host(X)));this.restoreHandlers.push(GY({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},X))},0)}observeAttachShadow(X){if(!X.contentWindow||!X.contentDocument)return;this.patchAttachShadow(X.contentWindow.Element,X.contentDocument)}patchAttachShadow(X,Z){let J=this;this.restoreHandlers.push(G1(X.prototype,"attachShadow",function(Y){return function(Q){let V=Y.call(this,Q),G=I.shadowRoot(this);if(G&&e6(this))J.addShadowRoot(G,Z);return V}}))}reset(){this.restoreHandlers.forEach((X)=>{try{X()}catch(Z){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}var t0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tq=typeof Uint8Array==="undefined"?[]:new Uint8Array(256);for(P1=0;P1<t0.length;P1++)tq[t0.charCodeAt(P1)]=P1;var P1,eq=function(X){var Z=new Uint8Array(X),J,Y=Z.length,Q="";for(J=0;J<Y;J+=3)Q+=t0[Z[J]>>2],Q+=t0[(Z[J]&3)<<4|Z[J+1]>>4],Q+=t0[(Z[J+1]&15)<<2|Z[J+2]>>6],Q+=t0[Z[J+2]&63];if(Y%3===2)Q=Q.substring(0,Q.length-1)+"=";else if(Y%3===1)Q=Q.substring(0,Q.length-2)+"==";return Q};var D8=new Map;function ZK(X,Z){let J=D8.get(X);if(!J)J=new Map,D8.set(X,J);if(!J.has(Z))J.set(Z,[]);return J.get(Z)}var WY=(X,Z,J)=>{if(!X||!(UY(X,Z)||typeof X==="object"))return;let Y=X.constructor.name,Q=ZK(J,Y),V=Q.indexOf(X);if(V===-1)V=Q.length,Q.push(X);return V};function MZ(X,Z,J){if(X instanceof Array)return X.map((Y)=>MZ(Y,Z,J));else if(X===null)return X;else if(X instanceof Float32Array||X instanceof Float64Array||X instanceof Int32Array||X instanceof Uint32Array||X instanceof Uint8Array||X instanceof Uint16Array||X instanceof Int16Array||X instanceof Int8Array||X instanceof Uint8ClampedArray)return{rr_type:X.constructor.name,args:[Object.values(X)]};else if(X instanceof ArrayBuffer){let Y=X.constructor.name,Q=eq(X);return{rr_type:Y,base64:Q}}else if(X instanceof DataView)return{rr_type:X.constructor.name,args:[MZ(X.buffer,Z,J),X.byteOffset,X.byteLength]};else if(X instanceof HTMLImageElement){let Y=X.constructor.name,{src:Q}=X;return{rr_type:Y,src:Q}}else if(X instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:X.toDataURL()};else if(X instanceof ImageData)return{rr_type:X.constructor.name,args:[MZ(X.data,Z,J),X.width,X.height]};else if(UY(X,Z)||typeof X==="object"){let Y=X.constructor.name,Q=WY(X,Z,J);return{rr_type:Y,index:Q}}return X}var HY=(X,Z,J)=>{return X.map((Y)=>MZ(Y,Z,J))},UY=(X,Z)=>{let Y=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((Q)=>typeof Z[Q]==="function");return Boolean(Y.find((Q)=>X instanceof Z[Q]))};function JK(X,Z,J,Y){let Q=[],V=Object.getOwnPropertyNames(Z.CanvasRenderingContext2D.prototype);for(let G of V)try{if(typeof Z.CanvasRenderingContext2D.prototype[G]!=="function")continue;let K=G1(Z.CanvasRenderingContext2D.prototype,G,function(q){return function(...W){if(!Q0(this.canvas,J,Y,!0))setTimeout(()=>{let H=HY(W,Z,this);X(this.canvas,{type:V1["2D"],property:G,args:H})},0);return q.apply(this,W)}});Q.push(K)}catch{let K=iZ(Z.CanvasRenderingContext2D.prototype,G,{set(q){X(this.canvas,{type:V1["2D"],property:G,args:[q],setter:!0})}});Q.push(K)}return()=>{Q.forEach((G)=>G())}}function XK(X){return X==="experimental-webgl"?"webgl":X}function L8(X,Z,J,Y){let Q=[];try{let V=G1(X.HTMLCanvasElement.prototype,"getContext",function(G){return function(K,...q){if(!Q0(this,Z,J,!0)){let W=XK(K);if(!("__context"in this))this.__context=W;if(Y&&["webgl","webgl2"].includes(W))if(q[0]&&typeof q[0]==="object"){let H=q[0];if(!H.preserveDrawingBuffer)H.preserveDrawingBuffer=!0}else q.splice(0,1,{preserveDrawingBuffer:!0})}return G.apply(this,[K,...q])}});Q.push(V)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{Q.forEach((V)=>V())}}function P8(X,Z,J,Y,Q,V){let G=[],K=Object.getOwnPropertyNames(X);for(let q of K){if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(q))continue;try{if(typeof X[q]!=="function")continue;let W=G1(X,q,function(H){return function(...z){let j=H.apply(this,z);if(WY(j,V,this),"tagName"in this.canvas&&!Q0(this.canvas,Y,Q,!0)){let B=HY(z,V,this),L={type:Z,property:q,args:B};J(this.canvas,L)}return j}});G.push(W)}catch{let W=iZ(X,q,{set(H){J(this.canvas,{type:Z,property:q,args:[H],setter:!0})}});G.push(W)}}return G}function YK(X,Z,J,Y){let Q=[];if(Q.push(...P8(Z.WebGLRenderingContext.prototype,V1.WebGL,X,J,Y,Z)),typeof Z.WebGL2RenderingContext!=="undefined")Q.push(...P8(Z.WebGL2RenderingContext.prototype,V1.WebGL2,X,J,Y,Z));return()=>{Q.forEach((V)=>V())}}var zY="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",QK=(X)=>Uint8Array.from(atob(X),(Z)=>Z.charCodeAt(0)),F8=typeof window!=="undefined"&&window.Blob&&new Blob([QK(zY)],{type:"text/javascript;charset=utf-8"});function VK(X){let Z;try{if(Z=F8&&(window.URL||window.webkitURL).createObjectURL(F8),!Z)throw"";let J=new Worker(Z,{name:X==null?void 0:X.name});return J.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(Z)}),J}catch(J){return new Worker("data:text/javascript;base64,"+zY,{name:X==null?void 0:X.name})}finally{Z&&(window.URL||window.webkitURL).revokeObjectURL(Z)}}class BY{constructor(X){F(this,"pendingCanvasMutations",new Map),F(this,"rafStamps",{latestId:0,invokeId:null}),F(this,"mirror"),F(this,"mutationCb"),F(this,"resetObservers"),F(this,"frozen",!1),F(this,"locked",!1),F(this,"processMutation",(K,q)=>{if(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)this.rafStamps.invokeId=this.rafStamps.latestId;if(!this.pendingCanvasMutations.has(K))this.pendingCanvasMutations.set(K,[]);this.pendingCanvasMutations.get(K).push(q)});let{sampling:Z="all",win:J,blockClass:Y,blockSelector:Q,recordCanvas:V,dataURLOptions:G}=X;if(this.mutationCb=X.mutationCb,this.mirror=X.mirror,V&&Z==="all")this.initCanvasMutationObserver(J,Y,Q);if(V&&typeof Z==="number")this.initCanvasFPSObserver(Z,J,Y,Q,{dataURLOptions:G})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(X,Z,J,Y,Q){let V=L8(Z,J,Y,!0),G=new Map,K=new VK;K.onmessage=(B)=>{let{id:L}=B.data;if(G.set(L,!1),!("base64"in B.data))return;let{base64:D,type:U,width:A,height:O}=B.data;this.mutationCb({id:L,type:V1["2D"],commands:[{property:"clearRect",args:[0,0,A,O]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:D}],type:U}]},0,0]}]})};let q=1000/X,W=0,H,z=()=>{let B=[];return Z.document.querySelectorAll("canvas").forEach((L)=>{if(!Q0(L,J,Y,!0))B.push(L)}),B},j=(B)=>{if(W&&B-W<q){H=requestAnimationFrame(j);return}W=B,z().forEach(async(L)=>{var D;let U=this.mirror.getId(L);if(G.get(U))return;if(L.width===0||L.height===0)return;if(G.set(U,!0),["webgl","webgl2"].includes(L.__context)){let O=L.getContext(L.__context);if(((D=O==null?void 0:O.getContextAttributes())==null?void 0:D.preserveDrawingBuffer)===!1)O.clear(O.COLOR_BUFFER_BIT)}let A=await createImageBitmap(L);K.postMessage({id:U,bitmap:A,width:L.width,height:L.height,dataURLOptions:Q.dataURLOptions},[A])}),H=requestAnimationFrame(j)};H=requestAnimationFrame(j),this.resetObservers=()=>{V(),cancelAnimationFrame(H)}}initCanvasMutationObserver(X,Z,J){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let Y=L8(X,Z,J,!1),Q=JK(this.processMutation.bind(this),X,Z,J),V=YK(this.processMutation.bind(this),X,Z,J);this.resetObservers=()=>{Y(),Q(),V()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let X=(Z)=>{this.rafStamps.latestId=Z,requestAnimationFrame(X)};requestAnimationFrame(X)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((X,Z)=>{let J=this.mirror.getId(Z);this.flushPendingCanvasMutationFor(Z,J)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(X,Z){if(this.frozen||this.locked)return;let J=this.pendingCanvasMutations.get(X);if(!J||Z===-1)return;let Y=J.map((V)=>{let{type:G,...K}=V;return K}),{type:Q}=J[0];this.mutationCb({id:Z,type:Q,commands:Y}),this.pendingCanvasMutations.delete(X)}}class jY{constructor(X){F(this,"trackedLinkElements",new WeakSet),F(this,"mutationCb"),F(this,"adoptedStyleSheetCb"),F(this,"styleMirror",new n6),this.mutationCb=X.mutationCb,this.adoptedStyleSheetCb=X.adoptedStyleSheetCb}attachLinkElement(X,Z){if("_cssText"in Z.attributes)this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:Z.id,attributes:Z.attributes}]});this.trackLinkElement(X)}trackLinkElement(X){if(this.trackedLinkElements.has(X))return;this.trackedLinkElements.add(X),this.trackStylesheetInLinkElement(X)}adoptStyleSheets(X,Z){if(X.length===0)return;let J={id:Z,styleIds:[]},Y=[];for(let Q of X){let V;if(!this.styleMirror.has(Q))V=this.styleMirror.add(Q),Y.push({styleId:V,rules:Array.from(Q.rules||CSSRule,(G,K)=>({rule:C8(G,Q.href),index:K}))});else V=this.styleMirror.getId(Q);J.styleIds.push(V)}if(Y.length>0)J.styles=Y;this.adoptedStyleSheetCb(J)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(X){}}class DY{constructor(){F(this,"nodeMap",new WeakMap),F(this,"active",!1)}inOtherBuffer(X,Z){let J=this.nodeMap.get(X);return J&&Array.from(J).some((Y)=>Y!==Z)}add(X,Z){if(!this.active)this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1});this.nodeMap.set(X,(this.nodeMap.get(X)||new Set).add(Z))}destroy(){}}var a,CZ,MJ,kZ=!1;try{if(Array.from([1],(X)=>X*2)[0]!==2){let X=document.createElement("iframe");document.body.appendChild(X),Array.from=((AX=X.contentWindow)==null?void 0:AX.Array.from)||Array.from,document.body.removeChild(X)}}catch(X){console.debug("Unable to override Array.from",X)}var L0=WQ();function q1(X={}){let{emit:Z,checkoutEveryNms:J,checkoutEveryNth:Y,blockClass:Q="rr-block",blockSelector:V=null,ignoreClass:G="rr-ignore",ignoreSelector:K=null,maskTextClass:q="rr-mask",maskTextSelector:W=null,inlineStylesheet:H=!0,maskAllInputs:z,maskInputOptions:j,slimDOMOptions:B,maskInputFn:L,maskTextFn:D,hooks:U,packFn:A,sampling:O={},dataURLOptions:P={},mousemoveWait:C,recordDOM:w=!0,recordCanvas:_=!1,recordCrossOriginIframes:E=!1,recordAfter:M=X.recordAfter==="DOMContentLoaded"?X.recordAfter:"load",userTriggeredOnInput:x=!1,collectFonts:h=!1,inlineImages:t=!1,plugins:l,keepIframeSrcFn:R=()=>!1,ignoreCSSAttributes:e=new Set([]),errorHandler:Z0}=X;bq(Z0);let k=E?window.parent===window:!0,v=!1;if(!k)try{if(window.parent.document)v=!1}catch($){v=!0}if(k&&!Z)throw new Error("emit function is required");if(!k&&!v)return()=>{};if(C!==void 0&&O.mousemove===void 0)O.mousemove=C;L0.reset();let s=z===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:j!==void 0?j:{password:!0},o=B===!0||B==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:B==="all",headMetaDescKeywords:B==="all",headTitleMutations:B==="all"}:B?B:{};xq();let c0,G0=0,T0=($)=>{for(let q0 of l||[])if(q0.eventProcessor)$=q0.eventProcessor($);if(A&&!v)$=A($);return $};a=($,q0)=>{var r;let m=$;if(m.timestamp=fZ(),((r=b0[0])==null?void 0:r.isFrozen())&&m.type!==S.FullSnapshot&&!(m.type===S.IncrementalSnapshot&&m.data.source===N.Mutation))b0.forEach((A0)=>A0.unfreeze());if(k)Z==null||Z(T0(m),q0);else if(v){let A0={type:"rrweb",event:T0(m),origin:window.location.origin,isCheckout:q0};window.parent.postMessage(A0,"*")}if(m.type===S.FullSnapshot)c0=m,G0=0;else if(m.type===S.IncrementalSnapshot){if(m.data.source===N.Mutation&&m.data.isAttachIframe)return;G0++;let A0=Y&&G0>=Y,y=J&&m.timestamp-c0.timestamp>J;if(A0||y)CZ(!0)}};let j0=($)=>{a({type:S.IncrementalSnapshot,data:{source:N.Mutation,...$}})},W0=($)=>a({type:S.IncrementalSnapshot,data:{source:N.Scroll,...$}}),J0=($)=>a({type:S.IncrementalSnapshot,data:{source:N.CanvasMutation,...$}}),O0=new jY({mutationCb:j0,adoptedStyleSheetCb:($)=>a({type:S.IncrementalSnapshot,data:{source:N.AdoptedStyleSheet,...$}})}),D0=new qY({mirror:L0,mutationCb:j0,stylesheetManager:O0,recordCrossOriginIframes:E,wrappedEmit:a});for(let $ of l||[])if($.getMirror)$.getMirror({nodeMirror:L0,crossOriginIframeMirror:D0.crossOriginIframeMirror,crossOriginIframeStyleMirror:D0.crossOriginIframeStyleMirror});let K1=new DY;MJ=new BY({recordCanvas:_,mutationCb:J0,win:window,blockClass:Q,blockSelector:V,mirror:L0,sampling:O.canvas,dataURLOptions:P});let h0=new KY({mutationCb:j0,scrollCb:W0,bypassOptions:{blockClass:Q,blockSelector:V,maskTextClass:q,maskTextSelector:W,inlineStylesheet:H,maskInputOptions:s,dataURLOptions:P,maskTextFn:D,maskInputFn:L,recordCanvas:_,inlineImages:t,sampling:O,slimDOMOptions:o,iframeManager:D0,stylesheetManager:O0,canvasManager:MJ,keepIframeSrcFn:R,processedNodeManager:K1},mirror:L0});CZ=($=!1)=>{if(!w)return;a({type:S.Meta,data:{href:window.location.href,width:i6(),height:d6()}},$),O0.reset(),h0.init(),b0.forEach((r)=>r.lock());let q0=fQ(document,{mirror:L0,blockClass:Q,blockSelector:V,maskTextClass:q,maskTextSelector:W,inlineStylesheet:H,maskAllInputs:s,maskTextFn:D,maskInputFn:L,slimDOM:o,dataURLOptions:P,recordCanvas:_,inlineImages:t,onSerialize:(r)=>{if(s6(r,L0))D0.addIframe(r);if(o6(r,L0))O0.trackLinkElement(r);if(Z9(r))h0.addShadowRoot(I.shadowRoot(r),document)},onIframeLoad:(r,m)=>{D0.attachIframe(r,m),h0.observeAttachShadow(r)},onStylesheetLoad:(r,m)=>{O0.attachLinkElement(r,m)},keepIframeSrcFn:R});if(!q0)return console.warn("Failed to snapshot the document");if(a({type:S.FullSnapshot,data:{node:q0,initialOffset:l6(window)}},$),b0.forEach((r)=>r.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0)O0.adoptStyleSheets(document.adoptedStyleSheets,L0.getId(document))};try{let $=[],q0=(m)=>{var A0;return T(nq)({mutationCb:j0,mousemoveCb:(y,sZ)=>a({type:S.IncrementalSnapshot,data:{source:sZ,positions:y}}),mouseInteractionCb:(y)=>a({type:S.IncrementalSnapshot,data:{source:N.MouseInteraction,...y}}),scrollCb:W0,viewportResizeCb:(y)=>a({type:S.IncrementalSnapshot,data:{source:N.ViewportResize,...y}}),inputCb:(y)=>a({type:S.IncrementalSnapshot,data:{source:N.Input,...y}}),mediaInteractionCb:(y)=>a({type:S.IncrementalSnapshot,data:{source:N.MediaInteraction,...y}}),styleSheetRuleCb:(y)=>a({type:S.IncrementalSnapshot,data:{source:N.StyleSheetRule,...y}}),styleDeclarationCb:(y)=>a({type:S.IncrementalSnapshot,data:{source:N.StyleDeclaration,...y}}),canvasMutationCb:J0,fontCb:(y)=>a({type:S.IncrementalSnapshot,data:{source:N.Font,...y}}),selectionCb:(y)=>{a({type:S.IncrementalSnapshot,data:{source:N.Selection,...y}})},customElementCb:(y)=>{a({type:S.IncrementalSnapshot,data:{source:N.CustomElement,...y}})},blockClass:Q,ignoreClass:G,ignoreSelector:K,maskTextClass:q,maskTextSelector:W,maskInputOptions:s,inlineStylesheet:H,sampling:O,recordDOM:w,recordCanvas:_,inlineImages:t,userTriggeredOnInput:x,collectFonts:h,doc:m,maskInputFn:L,maskTextFn:D,keepIframeSrcFn:R,blockSelector:V,slimDOMOptions:o,dataURLOptions:P,mirror:L0,iframeManager:D0,stylesheetManager:O0,shadowDomManager:h0,processedNodeManager:K1,canvasManager:MJ,ignoreCSSAttributes:e,plugins:((A0=l==null?void 0:l.filter((y)=>y.observer))==null?void 0:A0.map((y)=>({observer:y.observer,options:y.options,callback:(sZ)=>a({type:S.Plugin,data:{plugin:y.name,payload:sZ}})})))||[]},U)};D0.addLoadListener((m)=>{try{$.push(q0(m.contentDocument))}catch(A0){console.warn(A0)}});let r=()=>{CZ(),$.push(q0(document)),kZ=!0};if(document.readyState==="interactive"||document.readyState==="complete")r();else $.push(Y0("DOMContentLoaded",()=>{if(a({type:S.DomContentLoaded,data:{}}),M==="DOMContentLoaded")r()})),$.push(Y0("load",()=>{if(a({type:S.Load,data:{}}),M==="load")r()},window));return()=>{$.forEach((m)=>m()),K1.destroy(),kZ=!1,gq()}}catch($){console.warn($)}}q1.addCustomEvent=(X,Z)=>{if(!kZ)throw new Error("please add custom event after start recording");a({type:S.Custom,data:{tag:X,payload:Z}})};q1.freezePage=()=>{b0.forEach((X)=>X.freeze())};q1.takeFullSnapshot=(X)=>{if(!kZ)throw new Error("please take full snapshot after start recording");CZ(X)};q1.mirror=L0;/*! *****************************************************************************
60
60
  Copyright (c) Microsoft Corporation.
61
61
 
62
62
  Permission to use, copy, modify, and/or distribute this software for any
@@ -69,4 +69,4 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
69
69
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
70
70
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
71
71
  PERFORMANCE OF THIS SOFTWARE.
72
- ***************************************************************************** */var UX;(function(X){X[X.NotStarted=0]="NotStarted",X[X.Running=1]="Running",X[X.Stopped=2]="Stopped"})(UX||(UX={}));var B0=Uint8Array,V0=Uint16Array,g1=Uint32Array,x9=new B0([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),f9=new B0([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),q6=new B0([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),z6=function(X,Z){var J=new V0(31);for(var Y=0;Y<31;++Y)J[Y]=Z+=1<<X[Y-1];var Q=new g1(J[30]);for(var Y=1;Y<30;++Y)for(var V=J[Y];V<J[Y+1];++V)Q[V]=V-J[Y]<<5|Y;return[J,Q]},B6=z6(x9,2),oG=B6[0],N9=B6[1];oG[28]=258,N9[258]=28;var j6=z6(f9,0),Eq=j6[0],H6=j6[1],T9=new V0(32768);for(R=0;R<32768;++R)E0=(R&43690)>>>1|(R&21845)<<1,E0=(E0&52428)>>>2|(E0&13107)<<2,E0=(E0&61680)>>>4|(E0&3855)<<4,T9[R]=((E0&65280)>>>8|(E0&255)<<8)>>>1;var E0,R,b1=function(X,Z,J){var Y=X.length,Q=0,V=new V0(Z);for(;Q<Y;++Q)++V[X[Q]-1];var K=new V0(Z);for(Q=0;Q<Z;++Q)K[Q]=K[Q-1]+V[Q-1]<<1;var q;if(J){q=new V0(1<<Z);var G=15-Z;for(Q=0;Q<Y;++Q)if(X[Q]){var H=Q<<4|X[Q],W=Z-X[Q],U=K[X[Q]-1]++<<W;for(var D=U|(1<<W)-1;U<=D;++U)q[T9[U]>>>G]=H}}else{q=new V0(Y);for(Q=0;Q<Y;++Q)q[Q]=T9[K[X[Q]-1]++]>>>15-X[Q]}return q},u0=new B0(288);for(R=0;R<144;++R)u0[R]=8;var R;for(R=144;R<256;++R)u0[R]=9;var R;for(R=256;R<280;++R)u0[R]=7;var R;for(R=280;R<288;++R)u0[R]=8;var R,dZ=new B0(32);for(R=0;R<32;++R)dZ[R]=5;var R,nG=b1(u0,9,0);var tG=b1(dZ,5,0);var D6=function(X){return(X/8>>0)+(X&7&&1)},L6=function(X,Z,J){if(J==null||J>X.length)J=X.length;var Y=new(X instanceof V0?V0:X instanceof g1?g1:B0)(J-Z);return Y.set(X.subarray(Z,J)),Y};var N0=function(X,Z,J){J<<=Z&7;var Y=Z/8>>0;X[Y]|=J,X[Y+1]|=J>>>8},k1=function(X,Z,J){J<<=Z&7;var Y=Z/8>>0;X[Y]|=J,X[Y+1]|=J>>>8,X[Y+2]|=J>>>16},R9=function(X,Z){var J=[];for(var Y=0;Y<X.length;++Y)if(X[Y])J.push({s:Y,f:X[Y]});var Q=J.length,V=J.slice();if(!Q)return[new B0(0),0];if(Q==1){var K=new B0(J[0].s+1);return K[J[0].s]=1,[K,1]}J.sort(function(E,_){return E.f-_.f}),J.push({s:-1,f:25001});var q=J[0],G=J[1],H=0,W=1,U=2;J[0]={s:-1,f:q.f+G.f,l:q,r:G};while(W!=Q-1)q=J[J[H].f<J[U].f?H++:U++],G=J[H!=W&&J[H].f<J[U].f?H++:U++],J[W++]={s:-1,f:q.f+G.f,l:q,r:G};var D=V[0].s;for(var Y=1;Y<Q;++Y)if(V[Y].s>D)D=V[Y].s;var B=new V0(D+1),L=$9(J[W-1],B,0);if(L>Z){var Y=0,j=0,z=L-Z,A=1<<z;V.sort(function(_,w){return B[w.s]-B[_.s]||_.f-w.f});for(;Y<Q;++Y){var O=V[Y].s;if(B[O]>Z)j+=A-(1<<L-B[O]),B[O]=Z;else break}j>>>=z;while(j>0){var P=V[Y].s;if(B[P]<Z)j-=1<<Z-B[P]++-1;else++Y}for(;Y>=0&&j;--Y){var C=V[Y].s;if(B[C]==Z)--B[C],++j}L=Z}return[new B0(B),L]},$9=function(X,Z,J){return X.s==-1?Math.max($9(X.l,Z,J+1),$9(X.r,Z,J+1)):Z[X.s]=J},W6=function(X){var Z=X.length;while(Z&&!X[--Z]);var J=new V0(++Z),Y=0,Q=X[0],V=1,K=function(G){J[Y++]=G};for(var q=1;q<=Z;++q)if(X[q]==Q&&q!=Z)++V;else{if(!Q&&V>2){for(;V>138;V-=138)K(32754);if(V>2)K(V>10?V-11<<5|28690:V-3<<5|12305),V=0}else if(V>3){K(Q),--V;for(;V>6;V-=6)K(8304);if(V>2)K(V-3<<5|8208),V=0}while(V--)K(Q);V=1,Q=X[q]}return[J.subarray(0,Y),Z]},v1=function(X,Z){var J=0;for(var Y=0;Y<Z.length;++Y)J+=X[Y]*Z[Y];return J},S9=function(X,Z,J){var Y=J.length,Q=D6(Z+2);X[Q]=Y&255,X[Q+1]=Y>>>8,X[Q+2]=X[Q]^255,X[Q+3]=X[Q+1]^255;for(var V=0;V<Y;++V)X[Q+V+4]=J[V];return(Q+4+Y)*8},U6=function(X,Z,J,Y,Q,V,K,q,G,H,W){N0(Z,W++,J),++Q[256];var U=R9(Q,15),D=U[0],B=U[1],L=R9(V,15),j=L[0],z=L[1],A=W6(D),O=A[0],P=A[1],C=W6(j),E=C[0],_=C[1],w=new V0(19);for(var M=0;M<O.length;++M)w[O[M]&31]++;for(var M=0;M<E.length;++M)w[E[M]&31]++;var g=R9(w,7),f=g[0],t=g[1],l=19;for(;l>4&&!f[q6[l-1]];--l);var I=H+5<<3,e=v1(Q,u0)+v1(V,dZ)+K,Z0=v1(Q,D)+v1(V,j)+K+14+3*l+v1(w,f)+(2*w[16]+3*w[17]+7*w[18]);if(I<=e&&I<=Z0)return S9(Z,W,X.subarray(G,G+H));var h,k,a,o;if(N0(Z,W,1+(Z0<e)),W+=2,Z0<e){h=b1(D,B,0),k=D,a=b1(j,z,0),o=j;var c0=b1(f,t,0);N0(Z,W,P-257),N0(Z,W+5,_-1),N0(Z,W+10,l-4),W+=14;for(var M=0;M<l;++M)N0(Z,W+3*M,f[q6[M]]);W+=3*l;var K0=[O,E];for(var T0=0;T0<2;++T0){var j0=K0[T0];for(var M=0;M<j0.length;++M){var H0=j0[M]&31;if(N0(Z,W,c0[H0]),W+=f[H0],H0>15)N0(Z,W,j0[M]>>>5&127),W+=j0[M]>>>12}}}else h=nG,k=u0,a=tG,o=dZ;for(var M=0;M<q;++M)if(Y[M]>255){var H0=Y[M]>>>18&31;if(k1(Z,W,h[H0+257]),W+=k[H0+257],H0>7)N0(Z,W,Y[M]>>>23&31),W+=x9[H0];var J0=Y[M]&31;if(k1(Z,W,a[J0]),W+=o[J0],J0>3)k1(Z,W,Y[M]>>>5&8191),W+=f9[J0]}else k1(Z,W,h[Y[M]]),W+=k[Y[M]];return k1(Z,W,h[256]),W+k[256]},eG=new g1([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Zq=function(X,Z,J,Y,Q,V){var K=X.length,q=new B0(Y+K+5*(1+Math.floor(K/7000))+Q),G=q.subarray(Y,q.length-Q),H=0;if(!Z||K<8)for(var W=0;W<=K;W+=65535){var U=W+65535;if(U<K)H=S9(G,H,X.subarray(W,U));else G[W]=V,H=S9(G,H,X.subarray(W,K))}else{var D=eG[Z-1],B=D>>>13,L=D&8191,j=(1<<J)-1,z=new V0(32768),A=new V0(j+1),O=Math.ceil(J/3),P=2*O,C=function(m){return(X[m]^X[m+1]<<O^X[m+2]<<P)&j},E=new g1(25000),_=new V0(288),w=new V0(32),M=0,g=0,W=0,f=0,t=0,l=0;for(;W<K;++W){var I=C(W),e=W&32767,Z0=A[I];if(z[e]=Z0,A[I]=e,t<=W){var h=K-W;if((M>7000||f>24576)&&h>423){H=U6(X,G,0,E,_,w,g,f,l,W-l,H),f=M=g=0,l=W;for(var k=0;k<286;++k)_[k]=0;for(var k=0;k<30;++k)w[k]=0}var a=2,o=0,c0=L,K0=e-Z0&32767;if(h>2&&I==C(W-K0)){var T0=Math.min(B,h)-1,j0=Math.min(32767,W),H0=Math.min(258,h);while(K0<=j0&&--c0&&e!=Z0){if(X[W+a]==X[W+a-K0]){var J0=0;for(;J0<H0&&X[W+J0]==X[W+J0-K0];++J0);if(J0>a){if(a=J0,o=K0,J0>T0)break;var y9=Math.min(K0,J0-2),O0=0;for(var k=0;k<y9;++k){var D0=W-K0+k+32768&32767,q1=z[D0],k0=D0-q1+32768&32767;if(k0>O0)O0=k0,Z0=D0}}}e=Z0,Z0=z[e],K0+=e-Z0+32768&32767}}if(o){E[f++]=268435456|N9[a]<<18|H6[o];var S=N9[a]&31,G0=H6[o]&31;g+=x9[S]+f9[G0],++_[257+S],++w[G0],t=W+a,++M}else E[f++]=X[W],++_[X[W]]}}H=U6(X,G,V,E,_,w,g,f,l,W-l,H)}return L6(q,0,Y+D6(H)+Q)},Jq=function(){var X=1,Z=0;return{p:function(J){var Y=X,Q=Z,V=J.length;for(var K=0;K!=V;){var q=Math.min(K+5552,V);for(;K<q;++K)Y+=J[K],Q+=Y;Y%=65521,Q%=65521}X=Y,Z=Q},d:function(){return(X>>>8<<16|(Z&255)<<8|Z>>>8)+((X&255)<<23)*2}}},Xq=function(X,Z,J,Y,Q){return Zq(X,Z.level==null?6:Z.level,Z.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(X.length)))*1.5):12+Z.mem,J,Y,!Q)},Yq=function(X,Z,J){for(;J;++Z)X[Z]=J,J>>>=8},Qq=function(X,Z){var J=Z.level,Y=J==0?0:J<6?1:J==9?3:2;X[0]=120,X[1]=Y<<6|(Y?32-2*Y:1)};function P6(X,Z){if(Z===void 0)Z={};var J=Jq();J.p(X);var Y=Xq(X,Z,2,4);return Qq(Y,Z),Yq(Y,Y.length-4,J.d()),Y}function h9(X,Z){var J=X.length;if(!Z&&typeof TextEncoder<"u")return new TextEncoder().encode(X);var Y=new B0(X.length+(X.length>>>1)),Q=0,V=function(H){Y[Q++]=H};for(var K=0;K<J;++K){if(Q+5>Y.length){var q=new B0(Q+8+(J-K<<1));q.set(Y),Y=q}var G=X.charCodeAt(K);if(G<128||Z)V(G);else if(G<2048)V(192|G>>>6),V(128|G&63);else if(G>55295&&G<57344)G=65536+(G&1047552)|X.charCodeAt(++K)&1023,V(240|G>>>18),V(128|G>>>12&63),V(128|G>>>6&63),V(128|G&63);else V(224|G>>>12),V(128|G>>>6&63),V(128|G&63)}return L6(Y,0,Q)}function k9(X,Z){var J="";if(!Z&&typeof TextDecoder<"u")return new TextDecoder().decode(X);for(var Y=0;Y<X.length;){var Q=X[Y++];if(Q<128||Z)J+=String.fromCharCode(Q);else if(Q<224)J+=String.fromCharCode((Q&31)<<6|X[Y++]&63);else if(Q<240)J+=String.fromCharCode((Q&15)<<12|(X[Y++]&63)<<6|X[Y++]&63);else Q=((Q&15)<<18|(X[Y++]&63)<<12|(X[Y++]&63)<<6|X[Y++]&63)-65536,J+=String.fromCharCode(55296|Q>>10,56320|Q&1023)}return J}var v9="v1";var b9=(X)=>{let Z={...X,v:v9};return k9(P6(h9(JSON.stringify(Z))),!0)};function Vq(){if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();return`session_${Date.now()}_${Math.random().toString(36).substring(2,11)}`}function Kq(){if(typeof localStorage<"u"){let X=localStorage.getItem("temps_visitor_id");if(!X)X=`visitor_${Date.now()}_${Math.random().toString(36).substring(2,11)}`,localStorage.setItem("temps_visitor_id",X);return X}return`visitor_${Date.now()}_${Math.random().toString(36).substring(2,11)}`}function F6(X,Z){return Z.some((J)=>{return new RegExp(`^${J.replace(/\*/g,".*")}$`).test(X)})}function Gq(){if(typeof window>"u")return{};let X=window.screen||{},Z=window.navigator||{};return{visitorId:Kq(),userAgent:Z.userAgent,language:Z.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,screenWidth:X.width,screenHeight:X.height,colorDepth:X.colorDepth||24,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight,url:window.location.href,timestamp:new Date().toISOString()}}class iZ{constructor(X={}){if(this.stopFn=null,this.takeSnapshot=null,this.events=[],this.sessionId="",this.sessionInitialized=!1,this.flushTimer=null,this.initRetryCount=0,this.initFailed=!1,this.maxInitRetries=3,this.sendRetryCount=0,this.maxSendRetries=5,this.lastSendAttempt=0,this.isSending=!1,this.originalPushState=null,this.originalReplaceState=null,this.handleUnload=()=>{if(this.sessionInitialized&&this.events.length>0)this.sendEvents(!0)},this.handlePopState=()=>{if(this.stopFn&&this.events.length>0)this.sendEvents(!1);setTimeout(()=>{if(this.checkPath(),this.takeSnapshot)this.takeSnapshot()},100)},this.basePath=X.basePath||p0,this.excludedPaths=X.useDefaultExcludedPaths===!1?X.excludedPaths||[]:[...m9,...X.excludedPaths||[]],this.sessionSampleRate=X.sessionSampleRate??1,this.maskAllInputs=X.maskAllInputs??!0,this.maskTextSelector=X.maskTextSelector||"[data-mask]",this.blockClass=X.blockClass||"rr-block",this.ignoreClass=X.ignoreClass||"rr-ignore",this.maskTextClass=X.maskTextClass||"rr-mask",this.ignoreSelector=X.ignoreSelector||"[data-ignore]",this.blockSelector=X.blockSelector||"[data-private]",this.recordCanvas=X.recordCanvas??!1,this.collectFonts=X.collectFonts??!0,this.batchSize=X.batchSize??100,this.flushInterval=X.flushInterval??1e4,this.slimDOMOptions=X.slimDOMOptions||{script:!1,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0},this.maskInputOptions=X.maskInputOptions||{password:!0,email:!0},this.samplingConfig={scroll:500,media:800,mouseInteraction:{MouseUp:!1,MouseDown:!1,Click:!0,ContextMenu:!1,DblClick:!0,Focus:!0,Blur:!0,TouchStart:!1,TouchEnd:!1},mousemove:!1,input:"last",...X.sampling||{}},this.enabled=X.enabled??!1,this.enabled&&typeof window<"u")this.start()}shouldRecord(){if(!this.enabled||typeof window>"u")return!1;let X=window.location.pathname;if(F6(X,this.excludedPaths))return!1;if(this.sessionSampleRate<1&&Math.random()>this.sessionSampleRate)return!1;return!0}async initializeSession(){if(this.sessionInitialized)return!0;if(this.initFailed)return!1;if(this.initRetryCount>=this.maxInitRetries)return this.initFailed=!0,!1;this.initRetryCount++;let X=Vq();this.sessionId=X;try{let Z={sessionId:X,...Gq()};if((await fetch(`${this.basePath}/${rZ}/init`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Z)})).status===201){if(this.sessionInitialized=!0,this.initRetryCount=0,this.initFailed=!1,typeof localStorage<"u")localStorage.setItem("currentRecordingSessionId",X);return!0}if(this.sessionId="",this.initRetryCount>=this.maxInitRetries)this.initFailed=!0;return!1}catch(Z){if(console.error("[SessionRecorder] init failed:",Z),this.sessionId="",this.initRetryCount>=this.maxInitRetries)this.initFailed=!0;return!1}}async sendEvents(X=!1){if(!this.sessionInitialized||this.events.length===0)return;if(this.isSending&&!X)return;let Z=Date.now();if(this.sendRetryCount>0&&!X){let Y=Math.min(1000*Math.pow(2,this.sendRetryCount),30000);if(Z-this.lastSendAttempt<Y)return}this.isSending=!0,this.lastSendAttempt=Z;let J=[...this.events];try{let Y=b9(J),Q=btoa(Y),V={sessionId:this.sessionId,events:Q},K=`${this.basePath}/${rZ}/events`;if(X){if(navigator.sendBeacon){let q=new Blob([JSON.stringify(V)],{type:"application/json"});if(!navigator.sendBeacon(K,q))await fetch(K,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(V),keepalive:!0})}else await fetch(K,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(V),keepalive:!0});this.events=[],this.sendRetryCount=0}else{let q=await fetch(K,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(V)});if(q.status===404){if(this.sessionInitialized=!1,this.sessionId="",typeof localStorage<"u")localStorage.removeItem("currentRecordingSessionId");this.stopRecording(),this.events=[],this.sendRetryCount=0}else if(!q.ok){if(this.sendRetryCount++,this.sendRetryCount>=this.maxSendRetries)this.events=[],this.sendRetryCount=0}else this.events=[],this.sendRetryCount=0}}catch(Y){if(console.error("[SessionRecorder] send failed:",Y),this.sendRetryCount++,this.sendRetryCount>=this.maxSendRetries)this.events=[],this.sendRetryCount=0}finally{this.isSending=!1}}scheduleFlush(){if(this.flushTimer)clearTimeout(this.flushTimer);this.flushTimer=setTimeout(()=>{if(this.events.length>0)this.sendEvents(!1);this.scheduleFlush()},this.flushInterval)}async startRecording(){if(this.stopFn||this.initFailed)return;if(!this.shouldRecord())return;if(!await this.initializeSession())return;let Z=G1({emit:(J)=>{if(this.events.push(J),this.events.length>=this.batchSize)this.sendEvents(!1),this.scheduleFlush()},sampling:this.samplingConfig,blockSelector:this.blockSelector,ignoreSelector:this.ignoreSelector,recordCanvas:this.recordCanvas,collectFonts:this.collectFonts,maskAllInputs:this.maskAllInputs,maskInputOptions:this.maskInputOptions,maskTextSelector:this.maskTextSelector,blockClass:this.blockClass,ignoreClass:this.ignoreClass,maskTextClass:this.maskTextClass,slimDOMOptions:this.slimDOMOptions,checkoutEveryNms:30000,checkoutEveryNth:200});if(Z){this.stopFn=Z;let J=Z;this.takeSnapshot=J.takeFullSnapshot||null}this.scheduleFlush()}stopRecording(){if(!this.stopFn)return;if(this.stopFn(),this.stopFn=null,this.flushTimer)clearTimeout(this.flushTimer),this.flushTimer=null;if(this.sendEvents(!0),this.sessionInitialized=!1,this.sessionId="",typeof localStorage<"u")localStorage.removeItem("currentRecordingSessionId");this.initRetryCount=0,this.initFailed=!1}wrapHistory(){this.originalPushState=window.history.pushState,this.originalReplaceState=window.history.replaceState;let X=()=>{if(this.stopFn&&this.events.length>0)this.sendEvents(!1);setTimeout(()=>{if(this.checkPath(),this.takeSnapshot)this.takeSnapshot()},100)};window.history.pushState=(...Z)=>{this.originalPushState?.apply(window.history,Z),X()},window.history.replaceState=(...Z)=>{this.originalReplaceState?.apply(window.history,Z),X()},window.addEventListener("popstate",this.handlePopState),window.addEventListener("beforeunload",this.handleUnload),window.addEventListener("pagehide",this.handleUnload)}checkPath(){if(!this.enabled||this.initFailed){if(!this.enabled)this.stopRecording();return}let X=window.location.pathname,Z=F6(X,this.excludedPaths),J=this.stopFn!==null;if(Z&&J)this.stopRecording();else if(!Z&&!J&&!this.initFailed)this.startRecording()}start(){if(this.enabled&&this.stopFn)return;if(this.enabled=!0,typeof window>"u")return;if(!this.originalPushState)this.wrapHistory();this.startRecording()}stop(){this.enabled=!1,this.stopRecording()}destroy(){if(this.stop(),this.originalPushState)window.history.pushState=this.originalPushState,this.originalPushState=null;if(this.originalReplaceState)window.history.replaceState=this.originalReplaceState,this.originalReplaceState=null;window.removeEventListener("popstate",this.handlePopState),window.removeEventListener("beforeunload",this.handleUnload),window.removeEventListener("pagehide",this.handleUnload)}getSessionId(){return this.sessionId||null}}function g9(X={}){let{basePath:Z=p0,disabled:J=!1,ignoreLocalhost:Y=!0,domain:Q,autoTrackPageviews:V=!0,autoTrackPageLeave:K=!0,pageLeaveEventName:q="page_leave",autoTrackSpeedAnalytics:G=!0,autoTrackEngagement:H=!0,heartbeatInterval:W=30000,inactivityTimeout:U=30000,engagementThreshold:D=1e4,enableSessionRecording:B=!1,sessionRecordingConfig:L={}}=X,j=[],z=qq(J,Y),A=()=>Q||(typeof window<"u"?window.location.hostname:""),O=async(w,M={})=>{if(!z)return;await $0("event",{event_name:w,request_query:window.location.search,request_path:window.location.pathname,domain:A(),event_data:M},"POST",Z)},P=()=>{if(!z)return;$0("event",{event_name:"page_view",request_query:window.location.search,request_path:window.location.pathname,domain:A(),event_data:{referrer:document.referrer,userAgent:navigator.userAgent,timestamp:new Date().toISOString()}},"POST",Z)},C=async()=>{};if(z){if(V)j.push(Hq(P));if(H){let w=new aZ({basePath:Z,domain:A(),heartbeatInterval:W,inactivityTimeout:U,engagementThreshold:D});j.push(()=>w.destroy())}else if(K)j.push(Uq(q,A,Z));if(G){let w=new YJ({basePath:Z});j.push(()=>w.destroy())}j.push(Wq(O))}let E=z&&B?new iZ({basePath:Z,domain:A(),enabled:!0,...L}):null;if(E)j.push(()=>E.destroy());let _=E;return{get enabled(){return z},trackEvent:O,trackPageview:P,identify:C,enableSessionRecording(){if(!z)return;if(_){_.start();return}_=new iZ({basePath:Z,domain:A(),enabled:!0,...L}),j.push(()=>_?.destroy())},disableSessionRecording(){_?.stop()},destroy(){while(j.length>0){let w=j.pop();try{w?.()}catch(M){console.error("Analytics cleanup error:",M)}}}}}function qq(X,Z){if(X)return!1;if(typeof window>"u")return!1;if(Z&&(u9()||c9()))return!1;try{if(window.localStorage?.getItem("temps_ignore")==="true")return!1;if(window.localStorage?.temps_ignore==="true")return!1}catch{}return!0}function Hq(X){let Z=window.location.pathname,J=!0,Y=window.history.pushState.bind(window.history),Q=()=>{let q=window.location.pathname;if(Z!==q)Z=q,X()};window.history.pushState=(q,G,H)=>{Y(q,G,H),Q()};let V=()=>Q();window.addEventListener("popstate",V);let K=()=>{if(document.visibilityState==="visible"&&J)J=!1,X(),document.removeEventListener("visibilitychange",K)};if(document.visibilityState==="prerender")document.addEventListener("visibilitychange",K);else if(J)J=!1,X();return()=>{window.removeEventListener("popstate",V),document.removeEventListener("visibilitychange",K),window.history.pushState=Y}}function Wq(X){let Z=(J)=>{let Q=J.target?.closest?.("[temps-event-name]");if(!(Q instanceof HTMLElement))return;let V=Q.getAttribute("temps-event-name");if(!V)return;let K={};for(let q of Q.getAttributeNames())if(q.startsWith("temps-data-")){let G=q.replace("temps-data-","");K[G]=Q.getAttribute(q)}X(V,K)};return document.addEventListener("click",Z),()=>document.removeEventListener("click",Z)}function Uq(X,Z,J){let Y=!1,Q=Date.now(),V=()=>{if(Y)return;Y=!0;let K=Date.now()-Q;m1("event",{event_name:X,request_query:window.location.search,request_path:window.location.pathname,domain:Z(),event_data:{time_on_page_ms:K,timestamp:new Date().toISOString(),url:window.location.href,referrer:document.referrer}},J)};return window.addEventListener("pagehide",V),window.addEventListener("beforeunload",V),()=>{window.removeEventListener("pagehide",V),window.removeEventListener("beforeunload",V)}}var y1=null;function O6(X={}){if(y1)y1.destroy();if(y1=g9(X),typeof window<"u")window.temps=y1;return y1}function zq(){if(typeof document>"u")return{};let X=document.currentScript??document.querySelector("script[data-temps]")??Array.from(document.scripts).reverse().find((Q)=>!!Q.dataset?.domain||!!Q.dataset?.basePath)??null;if(!X)return{};let Z=X.dataset,J={},Y={};if(Z.basePath)J.basePath=Z.basePath;if(Z.domain)J.domain=Z.domain;if(Z.disabled)J.disabled=Z.disabled==="true";if(Z.ignoreLocalhost)J.ignoreLocalhost=Z.ignoreLocalhost==="true";if(Z.autoTrackPageviews)J.autoTrackPageviews=Z.autoTrackPageviews==="true";if(Z.autoTrackPageLeave)J.autoTrackPageLeave=Z.autoTrackPageLeave==="true";if(Z.pageLeaveEventName)J.pageLeaveEventName=Z.pageLeaveEventName;if(Z.autoTrackSpeedAnalytics)J.autoTrackSpeedAnalytics=Z.autoTrackSpeedAnalytics==="true";if(Z.autoTrackEngagement)J.autoTrackEngagement=Z.autoTrackEngagement==="true";if(Z.heartbeatInterval)J.heartbeatInterval=Number(Z.heartbeatInterval);if(Z.inactivityTimeout)J.inactivityTimeout=Number(Z.inactivityTimeout);if(Z.engagementThreshold)J.engagementThreshold=Number(Z.engagementThreshold);if(Z.sessionRecording)J.enableSessionRecording=Z.sessionRecording==="true";if(Z.sessionSampleRate)Y.sessionSampleRate=Number(Z.sessionSampleRate);if(Z.maskAllInputs)Y.maskAllInputs=Z.maskAllInputs==="true";if(Z.excludedPaths)Y.excludedPaths=Z.excludedPaths.split(",").map((Q)=>Q.trim());if(Object.keys(Y).length>0)J.sessionRecordingConfig=Y;return J}function A6(){if(typeof window>"u")return;O6(zq())}if(typeof document<"u"&&document.readyState==="loading")document.addEventListener("DOMContentLoaded",A6,{once:!0});else A6();})();
72
+ ***************************************************************************** */var O8;(function(X){X[X.NotStarted=0]="NotStarted",X[X.Running=1]="Running",X[X.Stopped=2]="Stopped"})(O8||(O8={}));var B0=Uint8Array,V0=Uint16Array,y1=Uint32Array,k9=new B0([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),v9=new B0([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),LY=new B0([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),AY=function(X,Z){var J=new V0(31);for(var Y=0;Y<31;++Y)J[Y]=Z+=1<<X[Y-1];var Q=new y1(J[30]);for(var Y=1;Y<30;++Y)for(var V=J[Y];V<J[Y+1];++V)Q[V]=V-J[Y]<<5|Y;return[J,Q]},MY=AY(k9,2),GK=MY[0],S9=MY[1];GK[28]=258,S9[258]=28;var CY=AY(v9,0),gK=CY[0],PY=CY[1],x9=new V0(32768);for(f=0;f<32768;++f)I0=(f&43690)>>>1|(f&21845)<<1,I0=(I0&52428)>>>2|(I0&13107)<<2,I0=(I0&61680)>>>4|(I0&3855)<<4,x9[f]=((I0&65280)>>>8|(I0&255)<<8)>>>1;var I0,f,g1=function(X,Z,J){var Y=X.length,Q=0,V=new V0(Z);for(;Q<Y;++Q)++V[X[Q]-1];var G=new V0(Z);for(Q=0;Q<Z;++Q)G[Q]=G[Q-1]+V[Q-1]<<1;var K;if(J){K=new V0(1<<Z);var q=15-Z;for(Q=0;Q<Y;++Q)if(X[Q]){var W=Q<<4|X[Q],H=Z-X[Q],z=G[X[Q]-1]++<<H;for(var j=z|(1<<H)-1;z<=j;++z)K[x9[z]>>>q]=W}}else{K=new V0(Y);for(Q=0;Q<Y;++Q)K[Q]=x9[G[X[Q]-1]++]>>>15-X[Q]}return K},u0=new B0(288);for(f=0;f<144;++f)u0[f]=8;var f;for(f=144;f<256;++f)u0[f]=9;var f;for(f=256;f<280;++f)u0[f]=7;var f;for(f=280;f<288;++f)u0[f]=8;var f,rZ=new B0(32);for(f=0;f<32;++f)rZ[f]=5;var f,qK=g1(u0,9,0);var KK=g1(rZ,5,0);var _Y=function(X){return(X/8>>0)+(X&7&&1)},wY=function(X,Z,J){if(J==null||J>X.length)J=X.length;var Y=new(X instanceof V0?V0:X instanceof y1?y1:B0)(J-Z);return Y.set(X.subarray(Z,J)),Y};var N0=function(X,Z,J){J<<=Z&7;var Y=Z/8>>0;X[Y]|=J,X[Y+1]|=J>>>8},v1=function(X,Z,J){J<<=Z&7;var Y=Z/8>>0;X[Y]|=J,X[Y+1]|=J>>>8,X[Y+2]|=J>>>16},$9=function(X,Z){var J=[];for(var Y=0;Y<X.length;++Y)if(X[Y])J.push({s:Y,f:X[Y]});var Q=J.length,V=J.slice();if(!Q)return[new B0(0),0];if(Q==1){var G=new B0(J[0].s+1);return G[J[0].s]=1,[G,1]}J.sort(function(w,_){return w.f-_.f}),J.push({s:-1,f:25001});var K=J[0],q=J[1],W=0,H=1,z=2;J[0]={s:-1,f:K.f+q.f,l:K,r:q};while(H!=Q-1)K=J[J[W].f<J[z].f?W++:z++],q=J[W!=H&&J[W].f<J[z].f?W++:z++],J[H++]={s:-1,f:K.f+q.f,l:K,r:q};var j=V[0].s;for(var Y=1;Y<Q;++Y)if(V[Y].s>j)j=V[Y].s;var B=new V0(j+1),L=f9(J[H-1],B,0);if(L>Z){var Y=0,D=0,U=L-Z,A=1<<U;V.sort(function(_,E){return B[E.s]-B[_.s]||_.f-E.f});for(;Y<Q;++Y){var O=V[Y].s;if(B[O]>Z)D+=A-(1<<L-B[O]),B[O]=Z;else break}D>>>=U;while(D>0){var P=V[Y].s;if(B[P]<Z)D-=1<<Z-B[P]++-1;else++Y}for(;Y>=0&&D;--Y){var C=V[Y].s;if(B[C]==Z)--B[C],++D}L=Z}return[new B0(B),L]},f9=function(X,Z,J){return X.s==-1?Math.max(f9(X.l,Z,J+1),f9(X.r,Z,J+1)):Z[X.s]=J},FY=function(X){var Z=X.length;while(Z&&!X[--Z]);var J=new V0(++Z),Y=0,Q=X[0],V=1,G=function(q){J[Y++]=q};for(var K=1;K<=Z;++K)if(X[K]==Q&&K!=Z)++V;else{if(!Q&&V>2){for(;V>138;V-=138)G(32754);if(V>2)G(V>10?V-11<<5|28690:V-3<<5|12305),V=0}else if(V>3){G(Q),--V;for(;V>6;V-=6)G(8304);if(V>2)G(V-3<<5|8208),V=0}while(V--)G(Q);V=1,Q=X[K]}return[J.subarray(0,Y),Z]},b1=function(X,Z){var J=0;for(var Y=0;Y<Z.length;++Y)J+=X[Y]*Z[Y];return J},h9=function(X,Z,J){var Y=J.length,Q=_Y(Z+2);X[Q]=Y&255,X[Q+1]=Y>>>8,X[Q+2]=X[Q]^255,X[Q+3]=X[Q+1]^255;for(var V=0;V<Y;++V)X[Q+V+4]=J[V];return(Q+4+Y)*8},OY=function(X,Z,J,Y,Q,V,G,K,q,W,H){N0(Z,H++,J),++Q[256];var z=$9(Q,15),j=z[0],B=z[1],L=$9(V,15),D=L[0],U=L[1],A=FY(j),O=A[0],P=A[1],C=FY(D),w=C[0],_=C[1],E=new V0(19);for(var M=0;M<O.length;++M)E[O[M]&31]++;for(var M=0;M<w.length;++M)E[w[M]&31]++;var x=$9(E,7),h=x[0],t=x[1],l=19;for(;l>4&&!h[LY[l-1]];--l);var R=W+5<<3,e=b1(Q,u0)+b1(V,rZ)+G,Z0=b1(Q,j)+b1(V,D)+G+14+3*l+b1(E,h)+(2*E[16]+3*E[17]+7*E[18]);if(R<=e&&R<=Z0)return h9(Z,H,X.subarray(q,q+W));var k,v,s,o;if(N0(Z,H,1+(Z0<e)),H+=2,Z0<e){k=g1(j,B,0),v=j,s=g1(D,U,0),o=D;var c0=g1(h,t,0);N0(Z,H,P-257),N0(Z,H+5,_-1),N0(Z,H+10,l-4),H+=14;for(var M=0;M<l;++M)N0(Z,H+3*M,h[LY[M]]);H+=3*l;var G0=[O,w];for(var T0=0;T0<2;++T0){var j0=G0[T0];for(var M=0;M<j0.length;++M){var W0=j0[M]&31;if(N0(Z,H,c0[W0]),H+=h[W0],W0>15)N0(Z,H,j0[M]>>>5&127),H+=j0[M]>>>12}}}else k=qK,v=u0,s=KK,o=rZ;for(var M=0;M<K;++M)if(Y[M]>255){var W0=Y[M]>>>18&31;if(v1(Z,H,k[W0+257]),H+=v[W0+257],W0>7)N0(Z,H,Y[M]>>>23&31),H+=k9[W0];var J0=Y[M]&31;if(v1(Z,H,s[J0]),H+=o[J0],J0>3)v1(Z,H,Y[M]>>>5&8191),H+=v9[J0]}else v1(Z,H,k[Y[M]]),H+=v[Y[M]];return v1(Z,H,k[256]),H+v[256]},WK=new y1([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),HK=function(X,Z,J,Y,Q,V){var G=X.length,K=new B0(Y+G+5*(1+Math.floor(G/7000))+Q),q=K.subarray(Y,K.length-Q),W=0;if(!Z||G<8)for(var H=0;H<=G;H+=65535){var z=H+65535;if(z<G)W=h9(q,W,X.subarray(H,z));else q[H]=V,W=h9(q,W,X.subarray(H,G))}else{var j=WK[Z-1],B=j>>>13,L=j&8191,D=(1<<J)-1,U=new V0(32768),A=new V0(D+1),O=Math.ceil(J/3),P=2*O,C=function(m){return(X[m]^X[m+1]<<O^X[m+2]<<P)&D},w=new y1(25000),_=new V0(288),E=new V0(32),M=0,x=0,H=0,h=0,t=0,l=0;for(;H<G;++H){var R=C(H),e=H&32767,Z0=A[R];if(U[e]=Z0,A[R]=e,t<=H){var k=G-H;if((M>7000||h>24576)&&k>423){W=OY(X,q,0,w,_,E,x,h,l,H-l,W),h=M=x=0,l=H;for(var v=0;v<286;++v)_[v]=0;for(var v=0;v<30;++v)E[v]=0}var s=2,o=0,c0=L,G0=e-Z0&32767;if(k>2&&R==C(H-G0)){var T0=Math.min(B,k)-1,j0=Math.min(32767,H),W0=Math.min(258,k);while(G0<=j0&&--c0&&e!=Z0){if(X[H+s]==X[H+s-G0]){var J0=0;for(;J0<W0&&X[H+J0]==X[H+J0-G0];++J0);if(J0>s){if(s=J0,o=G0,J0>T0)break;var p9=Math.min(G0,J0-2),O0=0;for(var v=0;v<p9;++v){var D0=H-G0+v+32768&32767,K1=U[D0],h0=D0-K1+32768&32767;if(h0>O0)O0=h0,Z0=D0}}}e=Z0,Z0=U[e],G0+=e-Z0+32768&32767}}if(o){w[h++]=268435456|S9[s]<<18|PY[o];var $=S9[s]&31,q0=PY[o]&31;x+=k9[$]+v9[q0],++_[257+$],++E[q0],t=H+s,++M}else w[h++]=X[H],++_[X[H]]}}W=OY(X,q,V,w,_,E,x,h,l,H-l,W)}return wY(K,0,Y+_Y(W)+Q)},UK=function(){var X=1,Z=0;return{p:function(J){var Y=X,Q=Z,V=J.length;for(var G=0;G!=V;){var K=Math.min(G+5552,V);for(;G<K;++G)Y+=J[G],Q+=Y;Y%=65521,Q%=65521}X=Y,Z=Q},d:function(){return(X>>>8<<16|(Z&255)<<8|Z>>>8)+((X&255)<<23)*2}}},zK=function(X,Z,J,Y,Q){return HK(X,Z.level==null?6:Z.level,Z.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(X.length)))*1.5):12+Z.mem,J,Y,!Q)},BK=function(X,Z,J){for(;J;++Z)X[Z]=J,J>>>=8},jK=function(X,Z){var J=Z.level,Y=J==0?0:J<6?1:J==9?3:2;X[0]=120,X[1]=Y<<6|(Y?32-2*Y:1)};function EY(X,Z){if(Z===void 0)Z={};var J=UK();J.p(X);var Y=zK(X,Z,2,4);return jK(Y,Z),BK(Y,Y.length-4,J.d()),Y}function b9(X,Z){var J=X.length;if(!Z&&typeof TextEncoder!="undefined")return new TextEncoder().encode(X);var Y=new B0(X.length+(X.length>>>1)),Q=0,V=function(W){Y[Q++]=W};for(var G=0;G<J;++G){if(Q+5>Y.length){var K=new B0(Q+8+(J-G<<1));K.set(Y),Y=K}var q=X.charCodeAt(G);if(q<128||Z)V(q);else if(q<2048)V(192|q>>>6),V(128|q&63);else if(q>55295&&q<57344)q=65536+(q&1047552)|X.charCodeAt(++G)&1023,V(240|q>>>18),V(128|q>>>12&63),V(128|q>>>6&63),V(128|q&63);else V(224|q>>>12),V(128|q>>>6&63),V(128|q&63)}return wY(Y,0,Q)}function g9(X,Z){var J="";if(!Z&&typeof TextDecoder!="undefined")return new TextDecoder().decode(X);for(var Y=0;Y<X.length;){var Q=X[Y++];if(Q<128||Z)J+=String.fromCharCode(Q);else if(Q<224)J+=String.fromCharCode((Q&31)<<6|X[Y++]&63);else if(Q<240)J+=String.fromCharCode((Q&15)<<12|(X[Y++]&63)<<6|X[Y++]&63);else Q=((Q&15)<<18|(X[Y++]&63)<<12|(X[Y++]&63)<<6|X[Y++]&63)-65536,J+=String.fromCharCode(55296|Q>>10,56320|Q&1023)}return J}var y9="v1";var m9=(X)=>{let Z={...X,v:y9};return g9(EY(b9(JSON.stringify(Z))),!0)};var RY=["pointerdown","keydown","scroll","touchstart","wheel","mousemove"],DK=15000;function u9(X){if(typeof crypto!=="undefined"&&crypto.randomUUID)return crypto.randomUUID();return`${X}_${Date.now()}_${Math.random().toString(36).substring(2,11)}`}function LK(){return u9("session")}function PK(){return u9("batch")}function IY(X,Z){return Z.some((J)=>{return new RegExp(`^${J.replace(/\*/g,".*")}$`).test(X)})}function NY(X){try{if(typeof localStorage==="undefined")return;if(X===null)localStorage.removeItem("currentRecordingSessionId");else localStorage.setItem("currentRecordingSessionId",X)}catch{}}function FK(){if(typeof window==="undefined")return{};let X=window.screen||{},Z=window.navigator||{};return{visitorId:u1()??u9("visitor"),userAgent:Z.userAgent,language:Z.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,screenWidth:X.width,screenHeight:X.height,colorDepth:X.colorDepth||24,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight,url:window.location.href,timestamp:new Date().toISOString()}}class aZ{constructor(X={}){if(this.reportedFailures=new Set,this.stopFn=null,this.takeSnapshot=null,this.pending=[],this.inflight=null,this.sessionId="",this.sessionInitialized=!1,this.flushTimer=null,this.idleTimer=null,this.initRetryCount=0,this.initFailed=!1,this.maxInitRetries=3,this.sendRetryCount=0,this.maxSendRetries=5,this.lastSendAttempt=0,this.isSending=!1,this.starting=!1,this.stopGeneration=0,this.paused=!1,this.lastActivityAt=Date.now(),this.droppedEvents=0,this.sampleDecision=null,this.originalPushState=null,this.originalReplaceState=null,this.globalListenersAttached=!1,this.handleActivity=()=>{if(this.lastActivityAt=Date.now(),this.paused)this.resumeRecording()},this.handleVisibilityChange=()=>{if(!this.pauseOnHidden)return;if(document.visibilityState==="hidden")this.pauseRecording();else this.handleActivity()},this.handleUnload=()=>{if(this.sessionInitialized&&this.hasBufferedEvents())this.sendEvents(!0)},this.handlePopState=()=>{if(this.stopFn&&this.hasBufferedEvents())this.sendEvents(!1);setTimeout(()=>{if(this.checkPath(),this.takeSnapshot)this.takeSnapshot()},100)},this.basePath=X.basePath||p0,this.ingestKey=X.ingestKey,this.excludedPaths=X.useDefaultExcludedPaths===!1?X.excludedPaths||[]:[...i9,...X.excludedPaths||[]],this.sessionSampleRate=X.sessionSampleRate??1,this.maskAllInputs=X.maskAllInputs??!0,this.maskTextSelector=X.maskTextSelector||"[data-mask]",this.blockClass=X.blockClass||"rr-block",this.ignoreClass=X.ignoreClass||"rr-ignore",this.maskTextClass=X.maskTextClass||"rr-mask",this.ignoreSelector=X.ignoreSelector||"[data-ignore]",this.blockSelector=X.blockSelector||"[data-private]",this.recordCanvas=X.recordCanvas??!1,this.collectFonts=X.collectFonts??!0,this.batchSize=X.batchSize??100,this.flushInterval=X.flushInterval??1e4,this.idleTimeout=X.idleTimeout??60000,this.pauseOnHidden=X.pauseOnHidden??!0,this.checkoutEveryNms=X.checkoutEveryNms??30000,this.checkoutEveryNth=X.checkoutEveryNth??200,this.maxBufferedEvents=X.maxBufferedEvents??5000,this.slimDOMOptions=X.slimDOMOptions||{script:!1,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0},this.maskInputOptions=X.maskInputOptions||{password:!0,email:!0},this.samplingConfig={scroll:500,media:800,mouseInteraction:{MouseUp:!1,MouseDown:!1,Click:!0,ContextMenu:!1,DblClick:!0,Focus:!0,Blur:!0,TouchStart:!1,TouchEnd:!1},mousemove:!1,input:"last",...X.sampling||{}},this.debug=X.debug??!1,this.enabled=X.enabled??!1,this.enabled&&typeof window!=="undefined")this.start()}passesSampling(){if(this.sampleDecision===null)this.sampleDecision=this.sessionSampleRate>=1||Math.random()<=this.sessionSampleRate;return this.sampleDecision}shouldRecord(){if(!this.enabled||typeof window==="undefined")return!1;if(IY(window.location.pathname,this.excludedPaths))return this.debugLog(`not recording ${window.location.pathname}: excluded path`),!1;if(!this.passesSampling())return this.debugLog(`not recording: sampled out (sessionSampleRate ${this.sessionSampleRate})`),!1;return!0}reportFailure(X,Z){if(!this.debug){if(this.reportedFailures.has(X))return;this.reportedFailures.add(X)}console.warn(`[SessionRecorder] session replay ${X} failed:`,Z,...this.debug?[]:["(reported once; set sessionRecordingConfig.debug to log every failure)"])}debugLog(X,...Z){if(!this.debug)return;console.debug(`[SessionRecorder] ${X}`,...Z)}async initializeSession(){if(this.sessionInitialized)return!0;if(this.initFailed)return!1;if(this.initRetryCount>=this.maxInitRetries)return this.initFailed=!0,!1;this.initRetryCount++;let X=LK();this.sessionId=X;try{let Z={sessionId:X,...FK()},J=`${this.basePath}/${oZ}/init`,Y=await fetch(J,{method:"POST",headers:{"Content-Type":"application/json",...c1(this.ingestKey)},body:JSON.stringify(Z)});if(Y.ok)return this.sessionInitialized=!0,this.initRetryCount=0,this.initFailed=!1,NY(X),this.debugLog("session started",X),!0;if(this.reportFailure("init",`HTTP ${Y.status} from ${J}`),this.sessionId="",this.initRetryCount>=this.maxInitRetries)this.initFailed=!0;return!1}catch(Z){if(this.reportFailure("init",Z),this.sessionId="",this.initRetryCount>=this.maxInitRetries)this.initFailed=!0;return!1}}claimBatch(){if(this.inflight)return this.inflight;if(this.pending.length===0)return null;return this.inflight={batchId:PK(),events:this.pending.splice(0,this.pending.length)},this.inflight}async sendEvents(X=!1){if(!this.sessionInitialized)return;if(this.isSending&&!X)return;let Z=Date.now();if(this.sendRetryCount>0&&!X){let Y=Math.min(1000*Math.pow(2,this.sendRetryCount),30000);if(Z-this.lastSendAttempt<Y)return}let J=this.claimBatch();if(!J)return;this.isSending=!0,this.lastSendAttempt=Z;try{let Y=m9(J.events),Q=btoa(Y),V={sessionId:this.sessionId,batchId:J.batchId,events:Q},G=`${this.basePath}/${oZ}/events`,K=nZ(G,this.ingestKey);if(X){if(navigator.sendBeacon){let q=new Blob([JSON.stringify(V)],{type:"application/json"});if(!navigator.sendBeacon(K,q))await fetch(K,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(V),keepalive:!0})}else await fetch(K,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(V),keepalive:!0});this.inflight=null,this.sendRetryCount=0}else{let q=await fetch(G,{method:"POST",headers:{"Content-Type":"application/json",...c1(this.ingestKey)},body:JSON.stringify(V)});if(q.status===404)this.debugLog("the server no longer knows this session; recording stopped"),this.clearSession(),this.stopRecording(),this.inflight=null,this.pending=[],this.sendRetryCount=0;else if(!q.ok){if(this.reportFailure("upload",`HTTP ${q.status} from ${G}`),this.sendRetryCount++,this.sendRetryCount>=this.maxSendRetries)this.inflight=null,this.sendRetryCount=0}else this.inflight=null,this.sendRetryCount=0}}catch(Y){if(this.reportFailure("upload",Y),this.sendRetryCount++,this.sendRetryCount>=this.maxSendRetries)this.inflight=null,this.sendRetryCount=0}finally{this.isSending=!1}}hasBufferedEvents(){return this.pending.length>0||this.inflight!==null}startFlushTimer(){if(this.flushTimer)return;this.flushTimer=setInterval(()=>{if(this.hasBufferedEvents())this.sendEvents(!1)},this.flushInterval)}stopFlushTimer(){if(!this.flushTimer)return;clearInterval(this.flushTimer),this.flushTimer=null}startIdleTimer(){if(this.idleTimer||this.idleTimeout<=0)return;let X=Math.min(this.idleTimeout,DK);this.idleTimer=setInterval(()=>{if(this.paused||!this.stopFn)return;if(Date.now()-this.lastActivityAt>=this.idleTimeout)this.pauseRecording()},X)}stopIdleTimer(){if(!this.idleTimer)return;clearInterval(this.idleTimer),this.idleTimer=null}async startRecording(){if(this.stopFn||this.initFailed||this.starting)return;if(!this.shouldRecord())return;this.starting=!0;let X=this.stopGeneration;try{if(!await this.initializeSession())return;if(this.stopGeneration!==X||this.stopFn||!this.enabled){this.clearSession();return}let J=q1({emit:(Y)=>{if(this.pending.push(Y),this.pending.length>this.maxBufferedEvents){let Q=this.pending.length-this.maxBufferedEvents;this.pending.splice(0,Q),this.droppedEvents+=Q}if(this.pending.length>=this.batchSize)this.sendEvents(!1)},sampling:this.samplingConfig,blockSelector:this.blockSelector,ignoreSelector:this.ignoreSelector,recordCanvas:this.recordCanvas,collectFonts:this.collectFonts,maskAllInputs:this.maskAllInputs,maskInputOptions:this.maskInputOptions,maskTextSelector:this.maskTextSelector,blockClass:this.blockClass,ignoreClass:this.ignoreClass,maskTextClass:this.maskTextClass,slimDOMOptions:this.slimDOMOptions,checkoutEveryNms:this.checkoutEveryNms,checkoutEveryNth:this.checkoutEveryNth});if(J){this.stopFn=J;let Y=J;this.takeSnapshot=Y.takeFullSnapshot||null}this.paused=!1,this.lastActivityAt=Date.now(),this.startFlushTimer(),this.startIdleTimer()}finally{this.starting=!1}}clearSession(){this.sessionInitialized=!1,this.sessionId="",NY(null)}detachRecorder(){if(!this.stopFn)return;this.stopFn(),this.stopFn=null,this.takeSnapshot=null}pauseRecording(){if(this.paused||!this.stopFn)return;if(this.debugLog("paused (idle or hidden tab)"),this.detachRecorder(),this.paused=!0,this.stopFlushTimer(),this.hasBufferedEvents())this.sendEvents(!1)}resumeRecording(){if(!this.paused||!this.enabled||this.initFailed)return;this.debugLog("resumed"),this.paused=!1,this.startRecording()}stopRecording(){if(!this.stopFn&&!this.paused&&!this.starting&&!this.sessionInitialized)return;this.stopGeneration++,this.detachRecorder(),this.stopFlushTimer(),this.stopIdleTimer(),this.paused=!1,this.sendEvents(!0),this.clearSession(),this.initRetryCount=0,this.initFailed=!1}attachGlobalListeners(){if(this.globalListenersAttached)return;this.globalListenersAttached=!0,this.originalPushState=window.history.pushState,this.originalReplaceState=window.history.replaceState;let X=()=>{if(this.stopFn&&this.hasBufferedEvents())this.sendEvents(!1);setTimeout(()=>{if(this.checkPath(),this.takeSnapshot)this.takeSnapshot()},100)};window.history.pushState=(...Z)=>{this.originalPushState?.apply(window.history,Z),X()},window.history.replaceState=(...Z)=>{this.originalReplaceState?.apply(window.history,Z),X()},window.addEventListener("popstate",this.handlePopState),window.addEventListener("beforeunload",this.handleUnload),window.addEventListener("pagehide",this.handleUnload),document.addEventListener("visibilitychange",this.handleVisibilityChange);for(let Z of RY)window.addEventListener(Z,this.handleActivity,{passive:!0,capture:!0})}detachGlobalListeners(){if(!this.globalListenersAttached)return;if(this.globalListenersAttached=!1,this.originalPushState)window.history.pushState=this.originalPushState,this.originalPushState=null;if(this.originalReplaceState)window.history.replaceState=this.originalReplaceState,this.originalReplaceState=null;window.removeEventListener("popstate",this.handlePopState),window.removeEventListener("beforeunload",this.handleUnload),window.removeEventListener("pagehide",this.handleUnload),document.removeEventListener("visibilitychange",this.handleVisibilityChange);for(let X of RY)window.removeEventListener(X,this.handleActivity,{capture:!0})}checkPath(){if(!this.enabled||this.initFailed){if(!this.enabled)this.stopRecording();return}let X=IY(window.location.pathname,this.excludedPaths),Z=this.stopFn!==null;if(X)this.debugLog(`not recording ${window.location.pathname}: excluded path`);if(X&&Z)this.stopRecording();else if(!X&&!Z&&!this.paused)this.startRecording()}start(){if(this.enabled&&this.stopFn)return;if(this.enabled=!0,typeof window==="undefined")return;this.attachGlobalListeners(),this.startRecording()}stop(){this.enabled=!1,this.stopRecording()}destroy(){this.stop(),this.stopIdleTimer(),this.detachGlobalListeners()}getSessionId(){return this.sessionId||null}getDroppedEventCount(){return this.droppedEvents}isPaused(){return this.paused}}function c9(X={}){let{basePath:Z=p0,disabled:J=!1,ignoreLocalhost:Y=!0,domain:Q,ingestKey:V,autoTrackPageviews:G=!0,autoTrackPageLeave:K=!0,pageLeaveEventName:q="page_leave",autoTrackSpeedAnalytics:W=!0,autoTrackEngagement:H=!0,heartbeatInterval:z=30000,inactivityTimeout:j=30000,engagementThreshold:B=1e4,enableSessionRecording:L=!1,sessionRecordingConfig:D={}}=X,U=[],A=OK(J,Y),O=()=>Q||(typeof window!=="undefined"?window.location.hostname:""),P=async(M,x={})=>{if(!A)return;await k0("event",{event_name:M,request_query:window.location.search,request_path:window.location.pathname,domain:O(),language:navigator.language,event_data:x},"POST",Z,V)},C=()=>{if(!A)return;k0("event",{event_name:"page_view",request_query:window.location.search,request_path:window.location.pathname,domain:O(),language:navigator.language,event_data:{referrer:document.referrer,userAgent:navigator.userAgent,timestamp:new Date().toISOString()}},"POST",Z,V)},w=async()=>{};if(A){if(G)U.push(AK(C));if(H){let M=new tZ({basePath:Z,ingestKey:V,domain:O(),heartbeatInterval:z,inactivityTimeout:j,engagementThreshold:B});U.push(()=>M.destroy())}else if(K)U.push(CK(q,O,Z,V));if(W){let M=new GJ({basePath:Z,ingestKey:V});U.push(()=>M.destroy())}U.push(MK(P))}let _=A&&L?new aZ({basePath:Z,ingestKey:V,domain:O(),enabled:!0,...D}):null;if(_)U.push(()=>_.destroy());let E=_;return{get enabled(){return A},ingestKey:V,trackEvent:P,trackPageview:C,identify:w,enableSessionRecording(){if(!A)return;if(E){E.start();return}E=new aZ({basePath:Z,ingestKey:V,domain:O(),enabled:!0,...D}),U.push(()=>E?.destroy())},disableSessionRecording(){E?.stop()},destroy(){while(U.length>0){let M=U.pop();try{M?.()}catch(x){console.error("Analytics cleanup error:",x)}}}}}function OK(X,Z){if(X)return!1;if(typeof window==="undefined")return!1;if(Z&&(s9()||o9()))return!1;try{if(window.localStorage?.getItem("temps_ignore")==="true")return!1;if(window.localStorage?.temps_ignore==="true")return!1}catch{}return!0}function AK(X){let Z=window.location.pathname,J=!0,Y=window.history.pushState.bind(window.history),Q=()=>{let K=window.location.pathname;if(Z!==K)Z=K,X()};window.history.pushState=(K,q,W)=>{Y(K,q,W),Q()};let V=()=>Q();window.addEventListener("popstate",V);let G=()=>{if(document.visibilityState==="visible"&&J)J=!1,X(),document.removeEventListener("visibilitychange",G)};if(document.visibilityState==="prerender")document.addEventListener("visibilitychange",G);else if(J)J=!1,X();return()=>{window.removeEventListener("popstate",V),document.removeEventListener("visibilitychange",G),window.history.pushState=Y}}function MK(X){let Z=(J)=>{let Q=J.target?.closest?.("[temps-event-name]");if(!(Q instanceof HTMLElement))return;let V=Q.getAttribute("temps-event-name");if(!V)return;let G={};for(let K of Q.getAttributeNames())if(K.startsWith("temps-data-")){let q=K.replace("temps-data-","");G[q]=Q.getAttribute(K)}X(V,G)};return document.addEventListener("click",Z),()=>document.removeEventListener("click",Z)}function CK(X,Z,J,Y){let Q=!1,V=Date.now(),G=()=>{if(Q)return;Q=!0;let K=Date.now()-V;l0("event",{event_name:X,request_query:window.location.search,request_path:window.location.pathname,domain:Z(),language:navigator.language,event_data:{time_on_page_ms:K,timestamp:new Date().toISOString(),url:window.location.href,referrer:document.referrer}},J,Y)};return window.addEventListener("pagehide",G),window.addEventListener("beforeunload",G),()=>{window.removeEventListener("pagehide",G),window.removeEventListener("beforeunload",G)}}var m1=null;function TY(X={}){if(m1)m1.destroy();if(m1=c9(X),typeof window!=="undefined")window.temps=m1;return m1}function _K(){if(typeof document==="undefined")return{};let X=document.currentScript??document.querySelector("script[data-temps]")??Array.from(document.scripts).reverse().find((Q)=>!!Q.dataset?.domain||!!Q.dataset?.basePath||!!Q.dataset?.ingestKey)??null;if(!X)return{};let Z=X.dataset,J={},Y={};if(Z.basePath)J.basePath=Z.basePath;if(Z.ingestKey)J.ingestKey=Z.ingestKey;if(Z.domain)J.domain=Z.domain;if(Z.disabled)J.disabled=Z.disabled==="true";if(Z.ignoreLocalhost)J.ignoreLocalhost=Z.ignoreLocalhost==="true";if(Z.autoTrackPageviews)J.autoTrackPageviews=Z.autoTrackPageviews==="true";if(Z.autoTrackPageLeave)J.autoTrackPageLeave=Z.autoTrackPageLeave==="true";if(Z.pageLeaveEventName)J.pageLeaveEventName=Z.pageLeaveEventName;if(Z.autoTrackSpeedAnalytics)J.autoTrackSpeedAnalytics=Z.autoTrackSpeedAnalytics==="true";if(Z.autoTrackEngagement)J.autoTrackEngagement=Z.autoTrackEngagement==="true";if(Z.heartbeatInterval)J.heartbeatInterval=Number(Z.heartbeatInterval);if(Z.inactivityTimeout)J.inactivityTimeout=Number(Z.inactivityTimeout);if(Z.engagementThreshold)J.engagementThreshold=Number(Z.engagementThreshold);if(Z.sessionRecording)J.enableSessionRecording=Z.sessionRecording==="true";if(Z.sessionSampleRate)Y.sessionSampleRate=Number(Z.sessionSampleRate);if(Z.maskAllInputs)Y.maskAllInputs=Z.maskAllInputs==="true";if(Z.excludedPaths)Y.excludedPaths=Z.excludedPaths.split(",").map((Q)=>Q.trim());if(Object.keys(Y).length>0)J.sessionRecordingConfig=Y;return J}function $Y(){if(typeof window==="undefined")return;TY(_K())}if(typeof document!=="undefined"&&document.readyState==="loading")document.addEventListener("DOMContentLoaded",$Y,{once:!0});else $Y();})();