@temps-sdk/analytics-browser 0.0.5 → 0.0.7

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",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
- `)}toString(){let Z=this.showSourceCode();if(Z)Z=`
1
+ (()=>{var He="/api/_temps",Jr="session-replay",js="X-Temps-Analytics-Key",Ys="temps_key",Zs=["/login","/log-in","/signin","/sign-in","/logout","/log-out","/signup","/sign-up","/register","/checkout*","/payment*","/billing*","/reset-password*","/forgot-password*","/mfa*","/2fa*","/verify*"];function Xs(r){if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();return`${r}_${Date.now()}_${Math.random().toString(36).substring(2,11)}`}function zt(){try{if(typeof localStorage>"u")return;let r=localStorage.getItem("temps_visitor_id");if(!r)r=Xs("visitor"),localStorage.setItem("temps_visitor_id",r);return r}catch{return}}function Ks(){try{if(typeof localStorage>"u")return;let r=Date.now(),e=Number(localStorage.getItem("temps_session_last_seen")),t=localStorage.getItem("temps_session_id");if(!t||!Number.isFinite(e)||r-e>1800000)t=Xs("session"),localStorage.setItem("temps_session_id",t);return localStorage.setItem("temps_session_last_seen",String(r)),t}catch{return}}function Ll(){if(typeof document>"u")return;let r=document.querySelector('meta[name="temps-metadata"]');if(r)try{let e=r.getAttribute("content")||"{}";return JSON.parse(e).request_id}catch(e){console.error("Failed to parse metadata:",e)}return}function Js(){try{let r=window.location.hostname,e=window.location.protocol==="file:",t=/^localhost$|^127(\.[0-9]+){0,2}\.[0-9]+$|^\[::1?\]$/.test(r);return e||t}catch{return!1}}function qs(){if(typeof window>"u")return!1;let r=window,e=Boolean(r._phantom),t=Boolean(r.__nightmare),i=Boolean(window.navigator?.webdriver),s=Boolean(r.Cypress),n=Boolean(r.__temps);return(e||t||i||s)&&!n}function Qs(r){return{...r,request_id:Ll(),visitorId:zt(),sessionId:Ks()}}function Vt(r){return r?{[js]:r}:{}}function qr(r,e){if(!e)return r;let t=r.includes("?")?"&":"?";return`${r}${t}${Ys}=${encodeURIComponent(e)}`}function Qr(r,e){return new Blob([r],{type:e?"text/plain":"application/json"})}async function $e(r,e,t="POST",i,s){try{await fetch(`${i}/${r}`,{method:t,headers:{"Content-Type":"application/json",...Vt(s)},body:JSON.stringify(Qs(e))})}catch(n){console.error("Failed to send analytics:",n)}}function je(r,e,t,i){try{let s=qr(`${t}/${r}`,i),n=JSON.stringify(Qs(e));if(typeof navigator<"u"&&navigator.sendBeacon&&typeof navigator.sendBeacon==="function")try{if(navigator.sendBeacon(s,Qr(n,i)))return!0}catch{}return fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:n,keepalive:!0}).catch((o)=>{console.error("Failed to send analytics (reliable):",o)}),!0}catch(s){return console.error("Failed to send analytics (reliable):",s),!1}}class ei{constructor(r={}){this.engagementTime=0,this.lastEngagementStart=null,this.heartbeatCount=0,this.isActive=!0,this.heartbeatTimer=null,this.inactivityTimer=null,this.hasTrackedLeave=!1,this.handleVisibilityChange=()=>{let e=this.isVisible;if(this.isVisible=document.visibilityState==="visible",!e&&this.isVisible)this.startHeartbeat();else if(e&&!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 e=Date.now();if(!this.isActive)this.isActive=!0,this.lastEngagementStart=e,this.startHeartbeat();this.lastActivityTime=e,this.resetInactivityTimer()},this.handlePageLeave=()=>{if(this.hasTrackedLeave)return;this.hasTrackedLeave=!0,this.updateEngagementTime();let e=this.getEngagementData();if(this.onPageLeave)this.onPageLeave(e);je("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:e.engagement_time_seconds,total_time_seconds:e.total_time_seconds,heartbeat_count:this.heartbeatCount,was_engaged:e.is_engaged,url:window.location.href,referrer:document.referrer}},this.basePath,this.ingestKey)},this.handleNavigation=()=>{this.handlePageLeave(),this.reset()},this.basePath=r.basePath||He,this.ingestKey=r.ingestKey,this.domain=r.domain||window.location.hostname,this.heartbeatInterval=r.heartbeatInterval||30000,this.inactivityTimeout=r.inactivityTimeout||30000,this.engagementThreshold=r.engagementThreshold||1e4,this.onHeartbeat=r.onHeartbeat,this.onPageLeave=r.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((t)=>{document.addEventListener(t,this.handleUserActivity,{passive:!0})}),window.addEventListener("pagehide",this.handlePageLeave),window.addEventListener("beforeunload",this.handlePageLeave);let e=this.originalPushState;window.history.pushState=(...t)=>{this.handlePageLeave(),e(...t),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 r=Date.now()-this.lastEngagementStart;this.engagementTime+=r}}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 r=this.getEngagementData();if(this.onHeartbeat)this.onHeartbeat(r);if(await $e("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:r.is_engaged,is_visible:this.isVisible,time_since_last_activity:r.time_since_last_activity,heartbeat_count:this.heartbeatCount}},"POST",this.basePath,this.ingestKey),this.isActive&&this.isVisible)this.lastEngagementStart=Date.now()}getEngagementData(){let r=Date.now()-this.startTime,e=Date.now()-this.lastActivityTime;return{engagement_time_seconds:Math.round(this.engagementTime/1000),total_time_seconds:Math.round(r/1000),heartbeat_count:this.heartbeatCount,is_engaged:this.engagementTime>=this.engagementThreshold,is_visible:this.isVisible,time_since_last_activity:Math.round(e/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((e)=>{document.removeEventListener(e,this.handleUserActivity)})}}var ii,De,ft,cn,jt,hn=-1,Fe=function(r){addEventListener("pageshow",function(e){e.persisted&&(hn=e.timeStamp,r(e))},!0)},si=function(){var r=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(r&&r.responseStart>0&&r.responseStart<performance.now())return r},Zt=function(){var r=si();return r&&r.activationStart||0},he=function(r,e){var t=si(),i="navigate";return hn>=0?i="back-forward-cache":t&&(document.prerendering||Zt()>0?i="prerender":document.wasDiscarded?i="restore":t.type&&(i=t.type.replace(/_/g,"-"))),{name:r,value:e===void 0?-1:e,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1000000000000),navigationType:i}},Ze=function(r,e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(r)){var i=new PerformanceObserver(function(s){Promise.resolve().then(function(){e(s.getEntries())})});return i.observe(Object.assign({type:r,buffered:!0},t||{})),i}}catch(s){}},fe=function(r,e,t,i){var s,n;return function(o){e.value>=0&&(o||i)&&((n=e.value-(s||0))||s===void 0)&&(s=e.value,e.delta=n,e.rating=function(l,a){return l>a[1]?"poor":l>a[0]?"needs-improvement":"good"}(e.value,t),r(e))}},ni=function(r){requestAnimationFrame(function(){return requestAnimationFrame(function(){return r()})})},dt=function(r){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&r()})},Xt=function(r){var e=!1;return function(){e||(r(),e=!0)}},Ye=-1,en=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Yt=function(r){document.visibilityState==="hidden"&&Ye>-1&&(Ye=r.type==="visibilitychange"?r.timeStamp:0,Pl())},tn=function(){addEventListener("visibilitychange",Yt,!0),addEventListener("prerenderingchange",Yt,!0)},Pl=function(){removeEventListener("visibilitychange",Yt,!0),removeEventListener("prerenderingchange",Yt,!0)},oi=function(){return Ye<0&&(Ye=en(),tn(),Fe(function(){setTimeout(function(){Ye=en(),tn()},0)})),{get firstHiddenTime(){return Ye}}},pt=function(r){document.prerendering?addEventListener("prerenderingchange",function(){return r()},!0):r()},rn=[1800,3000],ai=function(r,e){e=e||{},pt(function(){var t,i=oi(),s=he("FCP"),n=Ze("paint",function(o){o.forEach(function(l){l.name==="first-contentful-paint"&&(n.disconnect(),l.startTime<i.firstHiddenTime&&(s.value=Math.max(l.startTime-Zt(),0),s.entries.push(l),t(!0)))})});n&&(t=fe(r,s,rn,e.reportAllChanges),Fe(function(o){s=he("FCP"),t=fe(r,s,rn,e.reportAllChanges),ni(function(){s.value=performance.now()-o.timeStamp,t(!0)})}))})},sn=[0.1,0.25],fn=function(r,e){e=e||{},ai(Xt(function(){var t,i=he("CLS",0),s=0,n=[],o=function(a){a.forEach(function(u){if(!u.hadRecentInput){var c=n[0],f=n[n.length-1];s&&u.startTime-f.startTime<1000&&u.startTime-c.startTime<5000?(s+=u.value,n.push(u)):(s=u.value,n=[u])}}),s>i.value&&(i.value=s,i.entries=n,t())},l=Ze("layout-shift",o);l&&(t=fe(r,i,sn,e.reportAllChanges),dt(function(){o(l.takeRecords()),t(!0)}),Fe(function(){s=0,i=he("CLS",0),t=fe(r,i,sn,e.reportAllChanges),ni(function(){return t()})}),setTimeout(t,0))}))},dn=0,ti=1/0,Gt=0,$l=function(r){r.forEach(function(e){e.interactionId&&(ti=Math.min(ti,e.interactionId),Gt=Math.max(Gt,e.interactionId),dn=Gt?(Gt-ti)/7+1:0)})},pn=function(){return ii?dn:performance.interactionCount||0},Fl=function(){"interactionCount"in performance||ii||(ii=Ze("event",$l,{type:"event",buffered:!0,durationThreshold:0}))},Ce=[],Ht=new Map,mn=0,Ul=function(){var r=Math.min(Ce.length-1,Math.floor((pn()-mn)/50));return Ce[r]},Bl=[],Wl=function(r){if(Bl.forEach(function(s){return s(r)}),r.interactionId||r.entryType==="first-input"){var e=Ce[Ce.length-1],t=Ht.get(r.interactionId);if(t||Ce.length<10||r.duration>e.latency){if(t)r.duration>t.latency?(t.entries=[r],t.latency=r.duration):r.duration===t.latency&&r.startTime===t.entries[0].startTime&&t.entries.push(r);else{var i={id:r.interactionId,latency:r.duration,entries:[r]};Ht.set(i.id,i),Ce.push(i)}Ce.sort(function(s,n){return n.latency-s.latency}),Ce.length>10&&Ce.splice(10).forEach(function(s){return Ht.delete(s.id)})}}},gn=function(r){var e=self.requestIdleCallback||self.setTimeout,t=-1;return r=Xt(r),document.visibilityState==="hidden"?r():(t=e(r),dt(r)),t},nn=[200,500],yn=function(r,e){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(e=e||{},pt(function(){var t;Fl();var i,s=he("INP"),n=function(l){gn(function(){l.forEach(Wl);var a=Ul();a&&a.latency!==s.value&&(s.value=a.latency,s.entries=a.entries,i())})},o=Ze("event",n,{durationThreshold:(t=e.durationThreshold)!==null&&t!==void 0?t:40});i=fe(r,s,nn,e.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),dt(function(){n(o.takeRecords()),i(!0)}),Fe(function(){mn=pn(),Ce.length=0,Ht.clear(),s=he("INP"),i=fe(r,s,nn,e.reportAllChanges)}))}))},on=[2500,4000],ri={},vn=function(r,e){e=e||{},pt(function(){var t,i=oi(),s=he("LCP"),n=function(a){e.reportAllChanges||(a=a.slice(-1)),a.forEach(function(u){u.startTime<i.firstHiddenTime&&(s.value=Math.max(u.startTime-Zt(),0),s.entries=[u],t())})},o=Ze("largest-contentful-paint",n);if(o){t=fe(r,s,on,e.reportAllChanges);var l=Xt(function(){ri[s.id]||(n(o.takeRecords()),o.disconnect(),ri[s.id]=!0,t(!0))});["keydown","click"].forEach(function(a){addEventListener(a,function(){return gn(l)},{once:!0,capture:!0})}),dt(l),Fe(function(a){s=he("LCP"),t=fe(r,s,on,e.reportAllChanges),ni(function(){s.value=performance.now()-a.timeStamp,ri[s.id]=!0,t(!0)})})}})},an=[800,1800],zl=function r(e){document.prerendering?pt(function(){return r(e)}):document.readyState!=="complete"?addEventListener("load",function(){return r(e)},!0):setTimeout(e,0)},wn=function(r,e){e=e||{};var t=he("TTFB"),i=fe(r,t,an,e.reportAllChanges);zl(function(){var s=si();s&&(t.value=Math.max(s.responseStart-Zt(),0),t.entries=[s],i(!0),Fe(function(){t=he("TTFB",0),(i=fe(r,t,an,e.reportAllChanges))(!0)}))})},ht={passive:!0,capture:!0},Vl=new Date,ln=function(r,e){De||(De=e,ft=r,cn=new Date,Sn(removeEventListener),bn())},bn=function(){if(ft>=0&&ft<cn-Vl){var r={entryType:"first-input",name:De.type,target:De.target,cancelable:De.cancelable,startTime:De.timeStamp,processingStart:De.timeStamp+ft};jt.forEach(function(e){e(r)}),jt=[]}},Gl=function(r){if(r.cancelable){var e=(r.timeStamp>1000000000000?new Date:performance.now())-r.timeStamp;r.type=="pointerdown"?function(t,i){var s=function(){ln(t,i),o()},n=function(){o()},o=function(){removeEventListener("pointerup",s,ht),removeEventListener("pointercancel",n,ht)};addEventListener("pointerup",s,ht),addEventListener("pointercancel",n,ht)}(e,r):ln(e,r)}},Sn=function(r){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return r(e,Gl,ht)})},un=[100,300],Cn=function(r,e){e=e||{},pt(function(){var t,i=oi(),s=he("FID"),n=function(a){a.startTime<i.firstHiddenTime&&(s.value=a.processingStart-a.startTime,s.entries.push(a),t(!0))},o=function(a){a.forEach(n)},l=Ze("first-input",o);t=fe(r,s,un,e.reportAllChanges),l&&(dt(Xt(function(){o(l.takeRecords()),l.disconnect()})),Fe(function(){var a;s=he("FID"),t=fe(r,s,un,e.reportAllChanges),jt=[],ft=-1,De=null,Sn(addEventListener),a=n,jt.push(a),bn()}))})};class li{constructor(r){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=r.basePath,this.ingestKey=r.ingestKey,typeof window>"u")return;this.pathname=window.location.pathname,this.query=window.location.search,this.start()}start(){wn((r)=>this.recordLoad("ttfb",r.value)),ai((r)=>this.recordLoad("fcp",r.value)),vn((r)=>this.recordLoad("lcp",r.value)),Cn((r)=>this.recordFid(r.value)),fn((r)=>this.sendLate("cls",r.value)),yn((r)=>this.sendLate("inp",r.value)),document.addEventListener("visibilitychange",this.handleVisibilityChange,!0),window.addEventListener("pagehide",this.handlePageHide,!0)}recordLoad(r,e){if(this.stopped||this.sentLoadMetrics.has(r))return;if(this.loadSent){this.sentLoadMetrics.add(r),this.send({[r]:e});return}this.loadMetrics[r]=e;let{ttfb:t,fcp:i,lcp:s}=this.loadMetrics;if(t!==void 0&&i!==void 0&&s!==void 0)this.flushLoad()}recordFid(r){if(this.stopped||this.sentLoadMetrics.has("fid"))return;if(this.loadSent){this.sentLoadMetrics.add("fid"),this.send({fid:r});return}this.loadMetrics.fid=r}flushLoad(){if(this.stopped||this.loadSent)return;let{ttfb:r,fcp:e,lcp:t,fid:i}=this.loadMetrics;if(r===void 0&&e===void 0&&t===void 0&&i===void 0)return;this.loadSent=!0;for(let[s,n]of Object.entries(this.loadMetrics))if(n!==void 0)this.sentLoadMetrics.add(s);this.send({ttfb:r??null,lcp:t??null,fid:i??null,fcp:e??null})}sendLate(r,e){if(this.stopped)return;this.send({[r]:e})}send(r){let e={...r,pathname:this.pathname,query:this.query};if(typeof document<"u"&&document.visibilityState==="hidden"){je("speed",e,this.basePath,this.ingestKey);return}$e("speed",e,"POST",this.basePath,this.ingestKey)}destroy(){if(this.stopped=!0,this.loadMetrics={},typeof window>"u")return;document.removeEventListener("visibilitychange",this.handleVisibilityChange,!0),window.removeEventListener("pagehide",this.handlePageHide,!0)}}var Hl=Object.defineProperty,jl=(r,e,t)=>(e in r)?Hl(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,v=(r,e,t)=>jl(r,typeof e!=="symbol"?e+"":e,t),En,Yl=Object.defineProperty,Zl=(r,e,t)=>(e in r)?Yl(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,In=(r,e,t)=>Zl(r,typeof e!=="symbol"?e+"":e,t),q=((r)=>(r[r.Document=0]="Document",r[r.DocumentType=1]="DocumentType",r[r.Element=2]="Element",r[r.Text=3]="Text",r[r.CDATA=4]="CDATA",r[r.Comment=5]="Comment",r))(q||{}),xn={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},An={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Kt={},Xl=()=>!!globalThis.Zone;function ns(r){if(Kt[r])return Kt[r];let e=globalThis[r],t=e.prototype,i=r in xn?xn[r]:void 0,s=Boolean(i&&i.every((l)=>{var a,u;return Boolean((u=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)==null?void 0:u.toString().includes("[native code]"))})),n=r in An?An[r]:void 0,o=Boolean(n&&n.every((l)=>{var a;return typeof t[l]==="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(s&&o&&!Xl())return Kt[r]=e.prototype,e.prototype;try{let l=document.createElement("iframe");document.body.appendChild(l);let a=l.contentWindow;if(!a)return e.prototype;let u=a[r].prototype;if(document.body.removeChild(l),!u)return t;return Kt[r]=u}catch{return t}}var ui={};function ke(r,e,t){var i;let s=`${r}.${String(t)}`;if(ui[s])return ui[s].call(e);let n=ns(r),o=(i=Object.getOwnPropertyDescriptor(n,t))==null?void 0:i.get;if(!o)return e[t];return ui[s]=o,o.call(e)}var ci={};function Io(r,e,t){let i=`${r}.${String(t)}`;if(ci[i])return ci[i].bind(e);let n=ns(r)[t];if(typeof n!=="function")return e[t];return ci[i]=n,n.bind(e)}function Kl(r){return ke("Node",r,"childNodes")}function Jl(r){return ke("Node",r,"parentNode")}function ql(r){return ke("Node",r,"parentElement")}function Ql(r){return ke("Node",r,"textContent")}function eu(r,e){return Io("Node",r,"contains")(e)}function tu(r){return Io("Node",r,"getRootNode")()}function ru(r){if(!r||!("host"in r))return null;return ke("ShadowRoot",r,"host")}function iu(r){return r.styleSheets}function su(r){if(!r||!("shadowRoot"in r))return null;return ke("Element",r,"shadowRoot")}function nu(r,e){return ke("Element",r,"querySelector")(e)}function ou(r,e){return ke("Element",r,"querySelectorAll")(e)}function au(){return ns("MutationObserver").constructor}var ie={childNodes:Kl,parentNode:Jl,parentElement:ql,textContent:Ql,contains:eu,getRootNode:tu,host:ru,styleSheets:iu,shadowRoot:su,querySelector:nu,querySelectorAll:ou,mutationObserver:au};function xo(r){return r.nodeType===r.ELEMENT_NODE}function wt(r){let e=r&&"host"in r&&"mode"in r&&ie.host(r)||null;return Boolean(e&&"shadowRoot"in e&&ie.shadowRoot(e)===r)}function bt(r){return Object.prototype.toString.call(r)==="[object ShadowRoot]"}function lu(r){if(r.includes(" background-clip: text;")&&!r.includes(" -webkit-background-clip: text;"))r=r.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;");return r}function uu(r){let{cssText:e}=r;if(e.split('"').length<3)return e;let t=["@import",`url(${JSON.stringify(r.href)})`];if(r.layerName==="")t.push("layer");else if(r.layerName)t.push(`layer(${r.layerName})`);if(r.supportsText)t.push(`supports(${r.supportsText})`);if(r.media.length)t.push(r.media.mediaText);return t.join(" ")+";"}function Ii(r){try{let e=r.rules||r.cssRules;if(!e)return null;let t=r.href;if(!t&&r.ownerNode&&r.ownerNode.ownerDocument)t=r.ownerNode.ownerDocument.location.href;let i=Array.from(e,(s)=>Ao(s,t)).join("");return lu(i)}catch(e){return null}}function Ao(r,e){if(hu(r)){let t;try{t=Ii(r.styleSheet)||uu(r)}catch(i){t=r.cssText}if(r.styleSheet.href)return Ir(t,r.styleSheet.href);return t}else{let t=r.cssText;if(fu(r)&&r.selectorText.includes(":"))t=cu(t);if(e)return Ir(t,e);return t}}function cu(r){let e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return r.replace(e,"$1\\$2")}function hu(r){return"styleSheet"in r}function fu(r){return"selectorText"in r}class os{constructor(){In(this,"idNodeMap",new Map),In(this,"nodeMetaMap",new WeakMap)}getId(r){var e;if(!r)return-1;return((e=this.getMeta(r))==null?void 0:e.id)??-1}getNode(r){return this.idNodeMap.get(r)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(r){return this.nodeMetaMap.get(r)||null}removeNodeFromMap(r){let e=this.getId(r);if(this.idNodeMap.delete(e),r.childNodes)r.childNodes.forEach((t)=>this.removeNodeFromMap(t))}has(r){return this.idNodeMap.has(r)}hasNode(r){return this.nodeMetaMap.has(r)}add(r,e){let t=e.id;this.idNodeMap.set(t,r),this.nodeMetaMap.set(r,e)}replace(r,e){let t=this.getNode(r);if(t){let i=this.nodeMetaMap.get(t);if(i)this.nodeMetaMap.set(e,i)}this.idNodeMap.set(r,e)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function du(){return new os}function as({element:r,maskInputOptions:e,tagName:t,type:i,value:s,maskInputFn:n}){let o=s||"",l=i&&Be(i);if(e[t.toLowerCase()]||l&&e[l])if(n)o=n(o,r);else o="*".repeat(o.length);return o}function Be(r){return r.toLowerCase()}var Mn="__rrweb_original__";function pu(r){let e=r.getContext("2d");if(!e)return!0;let t=50;for(let i=0;i<r.width;i+=t)for(let s=0;s<r.height;s+=t){let n=e.getImageData,o=Mn in n?n[Mn]:n;if(new Uint32Array(o.call(e,i,s,Math.min(t,r.width-i),Math.min(t,r.height-s)).data.buffer).some((a)=>a!==0))return!1}return!0}function ls(r){let e=r.type;return r.hasAttribute("data-rr-is-password")?"password":e?Be(e):null}function Mo(r,e){let t;try{t=new URL(r,e??window.location.href)}catch(n){return null}let i=/\.([0-9a-z]+)(?:$)/i,s=t.pathname.match(i);return(s==null?void 0:s[1])??null}function mu(r){let e="";if(r.indexOf("//")>-1)e=r.split("/").slice(0,3).join("/");else e=r.split("/")[0];return e=e.split("?")[0],e}var gu=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,yu=/^(?:[a-z+]+:)?\/\//i,vu=/^www\..*/i,wu=/^(data:)([^,]*),(.*)/i;function Ir(r,e){return(r||"").replace(gu,(t,i,s,n,o,l)=>{let a=s||o||l,u=i||n||"";if(!a)return t;if(yu.test(a)||vu.test(a))return`url(${u}${a}${u})`;if(wu.test(a))return`url(${u}${a}${u})`;if(a[0]==="/")return`url(${u}${mu(e)+a}${u})`;let c=e.split("/"),f=a.split("/");c.pop();for(let p of f)if(p===".")continue;else if(p==="..")c.pop();else c.push(p);return`url(${u}${c.join("/")}${u})`})}function hi(r){return r.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}function bu(r,e){let t=Array.from(e.childNodes),i=[];if(t.length>1&&r&&typeof r==="string"){let s=hi(r);for(let n=1;n<t.length;n++)if(t[n].textContent&&typeof t[n].textContent==="string"){let o=hi(t[n].textContent);for(let l=3;l<o.length;l++){let a=o.substring(0,l);if(s.split(a).length===2){let u=s.indexOf(a);for(let c=u;c<r.length;c++)if(hi(r.substring(0,c)).length===u){i.push(r.substring(0,c)),r=r.substring(c);break}break}}}}return i.push(r),i}function Su(r,e){return bu(r,e).join("/* rr_split */")}var Cu=1,Eu=new RegExp("[^a-z0-9-_:]"),Ct=-2;function To(){return Cu++}function Iu(r){if(r instanceof HTMLFormElement)return"form";let e=Be(r.tagName);if(Eu.test(e))return"div";return e}var Xe,Tn,xu=/^[^ \t\n\r\u000c]+/,Au=/^[, \t\n\r\u000c]+/;function Mu(r,e){if(e.trim()==="")return e;let t=0;function i(n){let o,l=n.exec(e.substring(t));if(l)return o=l[0],t+=o.length,o;return""}let s=[];while(!0){if(i(Au),t>=e.length)break;let n=i(xu);if(n.slice(-1)===",")n=Qe(r,n.substring(0,n.length-1)),s.push(n);else{let o="";n=Qe(r,n);let l=!1;while(!0){let a=e.charAt(t);if(a===""){s.push((n+o).trim());break}else if(!l){if(a===","){t+=1,s.push((n+o).trim());break}else if(a==="(")l=!0}else if(a===")")l=!1;o+=a,t+=1}}}return s.join(", ")}var Nn=new WeakMap;function Qe(r,e){if(!e||e.trim()==="")return e;return us(r,e)}function Tu(r){return Boolean(r.tagName==="svg"||r.ownerSVGElement)}function us(r,e){let t=Nn.get(r);if(!t)t=r.createElement("a"),Nn.set(r,t);if(!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function No(r,e,t,i){if(!i)return i;if(t==="src"||t==="href"&&!(e==="use"&&i[0]==="#"))return Qe(r,i);else if(t==="xlink:href"&&i[0]!=="#")return Qe(r,i);else if(t==="background"&&(e==="table"||e==="td"||e==="th"))return Qe(r,i);else if(t==="srcset")return Mu(r,i);else if(t==="style")return Ir(i,us(r));else if(e==="object"&&t==="data")return Qe(r,i);return i}function Ro(r,e,t){return(r==="video"||r==="audio")&&e==="autoplay"}function Nu(r,e,t){try{if(typeof e==="string"){if(r.classList.contains(e))return!0}else for(let i=r.classList.length;i--;){let s=r.classList[i];if(e.test(s))return!0}if(t)return r.matches(t)}catch(i){}return!1}function xr(r,e,t){if(!r)return!1;if(r.nodeType!==r.ELEMENT_NODE){if(!t)return!1;return xr(ie.parentNode(r),e,t)}for(let i=r.classList.length;i--;){let s=r.classList[i];if(e.test(s))return!0}if(!t)return!1;return xr(ie.parentNode(r),e,t)}function Oo(r,e,t,i){let s;if(xo(r)){if(s=r,!ie.childNodes(s).length)return!1}else if(ie.parentElement(r)===null)return!1;else s=ie.parentElement(r);try{if(typeof e==="string"){if(i){if(s.closest(`.${e}`))return!0}else if(s.classList.contains(e))return!0}else if(xr(s,e,i))return!0;if(t){if(i){if(s.closest(t))return!0}else if(s.matches(t))return!0}}catch(n){}return!1}function Ru(r,e,t){let i=r.contentWindow;if(!i)return;let s=!1,n;try{n=i.document.readyState}catch(l){return}if(n!=="complete"){let l=setTimeout(()=>{if(!s)e(),s=!0},t);r.addEventListener("load",()=>{clearTimeout(l),s=!0,e()});return}let o="about:blank";if(i.location.href!==o||r.src===o||r.src==="")return setTimeout(e,0),r.addEventListener("load",e);r.addEventListener("load",e)}function Ou(r,e,t){let i=!1,s;try{s=r.sheet}catch(o){return}if(s)return;let n=setTimeout(()=>{if(!i)e(),i=!0},t);r.addEventListener("load",()=>{clearTimeout(n),i=!0,e()})}function Du(r,e){let{doc:t,mirror:i,blockClass:s,blockSelector:n,needsMask:o,inlineStylesheet:l,maskInputOptions:a={},maskTextFn:u,maskInputFn:c,dataURLOptions:f={},inlineImages:p,recordCanvas:d,keepIframeSrcFn:g,newlyAddedElement:m=!1,cssCaptured:h=!1}=e,b=_u(t,i);switch(r.nodeType){case r.DOCUMENT_NODE:if(r.compatMode!=="CSS1Compat")return{type:q.Document,childNodes:[],compatMode:r.compatMode};else return{type:q.Document,childNodes:[]};case r.DOCUMENT_TYPE_NODE:return{type:q.DocumentType,name:r.name,publicId:r.publicId,systemId:r.systemId,rootId:b};case r.ELEMENT_NODE:return Lu(r,{doc:t,blockClass:s,blockSelector:n,inlineStylesheet:l,maskInputOptions:a,maskInputFn:c,dataURLOptions:f,inlineImages:p,recordCanvas:d,keepIframeSrcFn:g,newlyAddedElement:m,rootId:b});case r.TEXT_NODE:return ku(r,{doc:t,needsMask:o,maskTextFn:u,rootId:b,cssCaptured:h});case r.CDATA_SECTION_NODE:return{type:q.CDATA,textContent:"",rootId:b};case r.COMMENT_NODE:return{type:q.Comment,textContent:ie.textContent(r)||"",rootId:b};default:return!1}}function _u(r,e){if(!e.hasNode(r))return;let t=e.getId(r);return t===1?void 0:t}function ku(r,e){let{needsMask:t,maskTextFn:i,rootId:s,cssCaptured:n}=e,o=ie.parentNode(r),l=o&&o.tagName,a="",u=l==="STYLE"?!0:void 0,c=l==="SCRIPT"?!0:void 0;if(c)a="SCRIPT_PLACEHOLDER";else if(!n){if(a=ie.textContent(r),u&&a)a=Ir(a,us(e.doc))}if(!u&&!c&&a&&t)a=i?i(a,ie.parentElement(r)):a.replace(/[\S]/g,"*");return{type:q.Text,textContent:a||"",rootId:s}}function Lu(r,e){let{doc:t,blockClass:i,blockSelector:s,inlineStylesheet:n,maskInputOptions:o={},maskInputFn:l,dataURLOptions:a={},inlineImages:u,recordCanvas:c,keepIframeSrcFn:f,newlyAddedElement:p=!1,rootId:d}=e,g=Nu(r,i,s),m=Iu(r),h={},b=r.attributes.length;for(let y=0;y<b;y++){let C=r.attributes[y];if(!Ro(m,C.name,C.value))h[C.name]=No(t,m,Be(C.name),C.value)}if(m==="link"&&n){let y=Array.from(t.styleSheets).find((I)=>I.href===r.href),C=null;if(y)C=Ii(y);if(C)delete h.rel,delete h.href,h._cssText=C}if(m==="style"&&r.sheet){let y=Ii(r.sheet);if(y){if(r.childNodes.length>1)y=Su(y,r);h._cssText=y}}if(m==="input"||m==="textarea"||m==="select"){let{value:y,checked:C}=r;if(h.type!=="radio"&&h.type!=="checkbox"&&h.type!=="submit"&&h.type!=="button"&&y)h.value=as({element:r,type:ls(r),tagName:m,value:y,maskInputOptions:o,maskInputFn:l});else if(C)h.checked=C}if(m==="option")if(r.selected&&!o.select)h.selected=!0;else delete h.selected;if(m==="dialog"&&r.open)h.rr_open_mode=r.matches("dialog:modal")?"modal":"non-modal";if(m==="canvas"&&c){if(r.__context==="2d"){if(!pu(r))h.rr_dataURL=r.toDataURL(a.type,a.quality)}else if(!("__context"in r)){let y=r.toDataURL(a.type,a.quality),C=t.createElement("canvas");C.width=r.width,C.height=r.height;let I=C.toDataURL(a.type,a.quality);if(y!==I)h.rr_dataURL=y}}if(m==="img"&&u){if(!Xe)Xe=t.createElement("canvas"),Tn=Xe.getContext("2d");let y=r,C=y.currentSrc||y.getAttribute("src")||"<unknown-src>",I=y.crossOrigin,E=()=>{y.removeEventListener("load",E);try{Xe.width=y.naturalWidth,Xe.height=y.naturalHeight,Tn.drawImage(y,0,0),h.rr_dataURL=Xe.toDataURL(a.type,a.quality)}catch(x){if(y.crossOrigin!=="anonymous"){if(y.crossOrigin="anonymous",y.complete&&y.naturalWidth!==0)E();else y.addEventListener("load",E);return}else console.warn(`Cannot inline img src=${C}! Error: ${x}`)}if(y.crossOrigin==="anonymous")I?h.crossOrigin=I:y.removeAttribute("crossorigin")};if(y.complete&&y.naturalWidth!==0)E();else y.addEventListener("load",E)}if(m==="audio"||m==="video"){let y=h;y.rr_mediaState=r.paused?"paused":"played",y.rr_mediaCurrentTime=r.currentTime,y.rr_mediaPlaybackRate=r.playbackRate,y.rr_mediaMuted=r.muted,y.rr_mediaLoop=r.loop,y.rr_mediaVolume=r.volume}if(!p){if(r.scrollLeft)h.rr_scrollLeft=r.scrollLeft;if(r.scrollTop)h.rr_scrollTop=r.scrollTop}if(g){let{width:y,height:C}=r.getBoundingClientRect();h={class:h.class,rr_width:`${y}px`,rr_height:`${C}px`}}if(m==="iframe"&&!f(h.src)){if(!r.contentDocument)h.rr_src=h.src;delete h.src}let w;try{if(customElements.get(m))w=!0}catch(y){}return{type:q.Element,tagName:m,attributes:h,childNodes:[],isSVG:Tu(r)||void 0,needBlock:g,rootId:d,isCustom:w}}function z(r){if(r===void 0||r===null)return"";else return r.toLowerCase()}function Pu(r,e){if(e.comment&&r.type===q.Comment)return!0;else if(r.type===q.Element){if(e.script&&(r.tagName==="script"||r.tagName==="link"&&(r.attributes.rel==="preload"||r.attributes.rel==="modulepreload")&&r.attributes.as==="script"||r.tagName==="link"&&r.attributes.rel==="prefetch"&&typeof r.attributes.href==="string"&&Mo(r.attributes.href)==="js"))return!0;else if(e.headFavicon&&(r.tagName==="link"&&r.attributes.rel==="shortcut icon"||r.tagName==="meta"&&(z(r.attributes.name).match(/^msapplication-tile(image|color)$/)||z(r.attributes.name)==="application-name"||z(r.attributes.rel)==="icon"||z(r.attributes.rel)==="apple-touch-icon"||z(r.attributes.rel)==="shortcut icon")))return!0;else if(r.tagName==="meta"){if(e.headMetaDescKeywords&&z(r.attributes.name).match(/^description|keywords$/))return!0;else if(e.headMetaSocial&&(z(r.attributes.property).match(/^(og|twitter|fb):/)||z(r.attributes.name).match(/^(og|twitter):/)||z(r.attributes.name)==="pinterest"))return!0;else if(e.headMetaRobots&&(z(r.attributes.name)==="robots"||z(r.attributes.name)==="googlebot"||z(r.attributes.name)==="bingbot"))return!0;else if(e.headMetaHttpEquiv&&r.attributes["http-equiv"]!==void 0)return!0;else if(e.headMetaAuthorship&&(z(r.attributes.name)==="author"||z(r.attributes.name)==="generator"||z(r.attributes.name)==="framework"||z(r.attributes.name)==="publisher"||z(r.attributes.name)==="progid"||z(r.attributes.property).match(/^article:/)||z(r.attributes.property).match(/^product:/)))return!0;else if(e.headMetaVerification&&(z(r.attributes.name)==="google-site-verification"||z(r.attributes.name)==="yandex-verification"||z(r.attributes.name)==="csrf-token"||z(r.attributes.name)==="p:domain_verify"||z(r.attributes.name)==="verify-v1"||z(r.attributes.name)==="verification"||z(r.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function et(r,e){let{doc:t,mirror:i,blockClass:s,blockSelector:n,maskTextClass:o,maskTextSelector:l,skipChild:a=!1,inlineStylesheet:u=!0,maskInputOptions:c={},maskTextFn:f,maskInputFn:p,slimDOMOptions:d,dataURLOptions:g={},inlineImages:m=!1,recordCanvas:h=!1,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:y=5000,onStylesheetLoad:C,stylesheetLoadTimeout:I=5000,keepIframeSrcFn:E=()=>!1,newlyAddedElement:x=!1,cssCaptured:S=!1}=e,{needsMask:_}=e,{preserveWhiteSpace:k=!0}=e;if(!_)_=Oo(r,o,l,_===void 0);let Q=Du(r,{doc:t,mirror:i,blockClass:s,blockSelector:n,needsMask:_,inlineStylesheet:u,maskInputOptions:c,maskTextFn:f,maskInputFn:p,dataURLOptions:g,inlineImages:m,recordCanvas:h,keepIframeSrcFn:E,newlyAddedElement:x,cssCaptured:S});if(!Q)return console.warn(r,"not serialized"),null;let H;if(i.hasNode(r))H=i.getId(r);else if(Pu(Q,d)||!k&&Q.type===q.Text&&!Q.textContent.replace(/^\s+|\s+$/gm,"").length)H=Ct;else H=To();let A=Object.assign(Q,{id:H});if(i.add(r,A),H===Ct)return null;if(b)b(r);let ee=!a;if(A.type===q.Element){ee=ee&&!A.needBlock,delete A.needBlock;let L=ie.shadowRoot(r);if(L&&bt(L))A.isShadowHost=!0}if((A.type===q.Document||A.type===q.Element)&&ee){if(d.headWhitespace&&A.type===q.Element&&A.tagName==="head")k=!1;let L={doc:t,mirror:i,blockClass:s,blockSelector:n,needsMask:_,maskTextClass:o,maskTextSelector:l,skipChild:a,inlineStylesheet:u,maskInputOptions:c,maskTextFn:f,maskInputFn:p,slimDOMOptions:d,dataURLOptions:g,inlineImages:m,recordCanvas:h,preserveWhiteSpace:k,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:y,onStylesheetLoad:C,stylesheetLoadTimeout:I,keepIframeSrcFn:E,cssCaptured:!1};if(A.type===q.Element&&A.tagName==="textarea"&&A.attributes.value!==void 0);else{if(A.type===q.Element&&A.attributes._cssText!==void 0&&typeof A.attributes._cssText==="string")L.cssCaptured=!0;for(let K of Array.from(ie.childNodes(r))){let J=et(K,L);if(J)A.childNodes.push(J)}}let P=null;if(xo(r)&&(P=ie.shadowRoot(r)))for(let K of Array.from(ie.childNodes(P))){let J=et(K,L);if(J)bt(P)&&(J.isShadow=!0),A.childNodes.push(J)}}let te=ie.parentNode(r);if(te&&wt(te)&&bt(te))A.isShadow=!0;if(A.type===q.Element&&A.tagName==="iframe")Ru(r,()=>{let L=r.contentDocument;if(L&&w){let P=et(L,{doc:L,mirror:i,blockClass:s,blockSelector:n,needsMask:_,maskTextClass:o,maskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:f,maskInputFn:p,slimDOMOptions:d,dataURLOptions:g,inlineImages:m,recordCanvas:h,preserveWhiteSpace:k,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:y,onStylesheetLoad:C,stylesheetLoadTimeout:I,keepIframeSrcFn:E});if(P)w(r,P)}},y);if(A.type===q.Element&&A.tagName==="link"&&typeof A.attributes.rel==="string"&&(A.attributes.rel==="stylesheet"||A.attributes.rel==="preload"&&typeof A.attributes.href==="string"&&Mo(A.attributes.href)==="css"))Ou(r,()=>{if(C){let L=et(r,{doc:t,mirror:i,blockClass:s,blockSelector:n,needsMask:_,maskTextClass:o,maskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:f,maskInputFn:p,slimDOMOptions:d,dataURLOptions:g,inlineImages:m,recordCanvas:h,preserveWhiteSpace:k,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:y,onStylesheetLoad:C,stylesheetLoadTimeout:I,keepIframeSrcFn:E});if(L)C(r,L)}},I);return A}function $u(r,e){let{mirror:t=new os,blockClass:i="rr-block",blockSelector:s=null,maskTextClass:n="rr-mask",maskTextSelector:o=null,inlineStylesheet:l=!0,inlineImages:a=!1,recordCanvas:u=!1,maskAllInputs:c=!1,maskTextFn:f,maskInputFn:p,slimDOM:d=!1,dataURLOptions:g,preserveWhiteSpace:m,onSerialize:h,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:y,stylesheetLoadTimeout:C,keepIframeSrcFn:I=()=>!1}=e||{};return et(r,{doc:r,mirror:t,blockClass:i,blockSelector:s,maskTextClass:n,maskTextSelector:o,skipChild:!1,inlineStylesheet:l,maskInputOptions:c===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:c===!1?{password:!0}:c,maskTextFn:f,maskInputFn:p,slimDOMOptions:d===!0||d==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:d==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:d===!1?{}:d,dataURLOptions:g,inlineImages:a,recordCanvas:u,preserveWhiteSpace:m,onSerialize:h,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:y,stylesheetLoadTimeout:C,keepIframeSrcFn:I,newlyAddedElement:!1})}var Fu=/(max|min)-device-(width|height)/,Wp=new RegExp(Fu.source,"g");function Uu(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Bu(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function i(){if(this instanceof i)return Reflect.construct(e,arguments,this.constructor);return e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(i){var s=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:function(){return r[i]}})}),t}var cs={exports:{}},V=String,Do=function(){return{isColorSupported:!1,reset:V,bold:V,dim:V,italic:V,underline:V,inverse:V,hidden:V,strikethrough:V,black:V,red:V,green:V,yellow:V,blue:V,magenta:V,cyan:V,white:V,gray:V,bgBlack:V,bgRed:V,bgGreen:V,bgYellow:V,bgBlue:V,bgMagenta:V,bgCyan:V,bgWhite:V}};cs.exports=Do();cs.exports.createColors=Do;var Wu=cs.exports,zu={},Vu=Object.freeze(Object.defineProperty({__proto__:null,default:zu},Symbol.toStringTag,{value:"Module"})),ve=Bu(Vu),Rn=Wu,On=ve,xi=class r extends Error{constructor(e,t,i,s,n,o){super(e);if(this.name="CssSyntaxError",this.reason=e,n)this.file=n;if(s)this.source=s;if(o)this.plugin=o;if(typeof t<"u"&&typeof i<"u")if(typeof t==="number")this.line=t,this.column=i;else this.line=t.line,this.column=t.column,this.endLine=i.line,this.endColumn=i.column;if(this.setMessage(),Error.captureStackTrace)Error.captureStackTrace(this,r)}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(e){if(!this.source)return"";let t=this.source;if(e==null)e=Rn.isColorSupported;if(On){if(e)t=On(t)}let i=t.split(/\r?\n/),s=Math.max(this.line-3,0),n=Math.min(this.line+2,i.length),o=String(n).length,l,a;if(e){let{bold:u,gray:c,red:f}=Rn.createColors(!0);l=(p)=>u(f(p)),a=(p)=>c(p)}else l=a=(u)=>u;return i.slice(s,n).map((u,c)=>{let f=s+1+c,p=" "+(" "+f).slice(-o)+" | ";if(f===this.line){let d=a(p.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(p)+u+`
2
+ `+d+l("^")}return" "+a(p)+u}).join(`
3
+ `)}toString(){let e=this.showSourceCode();if(e)e=`
4
4
 
5
- `+Z+`
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:`
5
+ `+e+`
6
+ `;return this.name+": "+this.message+e}},hs=xi;xi.default=xi;var Dt={};Dt.isClean=Symbol("isClean");Dt.my=Symbol("my");var Dn={after:`
7
7
  `,beforeClose:`
8
8
  `,beforeComment:`
9
9
  `,beforeDecl:`
10
10
  `,beforeOpen:" ",beforeRule:`
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=`
11
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Gu(r){return r[0].toUpperCase()+r.slice(1)}var Ai=class{constructor(e){this.builder=e}atrule(e,t){let i="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u")i+=e.raws.afterName;else if(s)i+=" ";if(e.nodes)this.block(e,i+s);else{let n=(e.raws.between||"")+(t?";":"");this.builder(i+s+n,e)}}beforeAfter(e,t){let i;if(e.type==="decl")i=this.raw(e,null,"beforeDecl");else if(e.type==="comment")i=this.raw(e,null,"beforeComment");else if(t==="before")i=this.raw(e,null,"beforeRule");else i=this.raw(e,null,"beforeClose");let s=e.parent,n=0;while(s&&s.type!=="root")n+=1,s=s.parent;if(i.includes(`
12
+ `)){let o=this.raw(e,null,"indent");if(o.length)for(let l=0;l<n;l++)i+=o}return i}block(e,t){let i=this.raw(e,"between","beforeOpen");this.builder(t+i+"{",e,"start");let s;if(e.nodes&&e.nodes.length)this.body(e),s=this.raw(e,"after");else s=this.raw(e,"after","emptyBody");if(s)this.builder(s);this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;while(t>0){if(e.nodes[t].type!=="comment")break;t-=1}let i=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let n=e.nodes[s],o=this.raw(n,"before");if(o)this.builder(o);this.stringify(n,t!==s||i)}}comment(e){let t=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+i+"*/",e)}decl(e,t){let i=this.raw(e,"between","colon"),s=e.prop+i+this.rawValue(e,"value");if(e.important)s+=e.raws.important||" !important";if(t)s+=";";this.builder(s,e)}document(e){this.body(e)}raw(e,t,i){let s;if(!i)i=t;if(t){if(s=e.raws[t],typeof s<"u")return s}let n=e.parent;if(i==="before"){if(!n||n.type==="root"&&n.first===e)return"";if(n&&n.type==="document")return""}if(!n)return Dn[i];let o=e.root();if(!o.rawCache)o.rawCache={};if(typeof o.rawCache[i]<"u")return o.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);else{let l="raw"+Gu(i);if(this[l])s=this[l](o,e);else o.walk((a)=>{if(s=a.raws[t],typeof s<"u")return!1})}if(typeof s>"u")s=Dn[i];return o.rawCache[i]=s,s}rawBeforeClose(e){let t;if(e.walk((i)=>{if(i.nodes&&i.nodes.length>0){if(typeof i.raws.after<"u"){if(t=i.raws.after,t.includes(`
13
+ `))t=t.replace(/[^\n]+$/,"");return!1}}}),t)t=t.replace(/\S/g,"");return t}rawBeforeComment(e,t){let i;if(e.walkComments((s)=>{if(typeof s.raws.before<"u"){if(i=s.raws.before,i.includes(`
14
+ `))i=i.replace(/[^\n]+$/,"");return!1}}),typeof i>"u")i=this.raw(t,null,"beforeDecl");else if(i)i=i.replace(/\S/g,"");return i}rawBeforeDecl(e,t){let i;if(e.walkDecls((s)=>{if(typeof s.raws.before<"u"){if(i=s.raws.before,i.includes(`
15
+ `))i=i.replace(/[^\n]+$/,"");return!1}}),typeof i>"u")i=this.raw(t,null,"beforeRule");else if(i)i=i.replace(/\S/g,"");return i}rawBeforeOpen(e){let t;return e.walk((i)=>{if(i.type!=="decl"){if(t=i.raws.between,typeof t<"u")return!1}}),t}rawBeforeRule(e){let t;if(e.walk((i)=>{if(i.nodes&&(i.parent!==e||e.first!==i)){if(typeof i.raws.before<"u"){if(t=i.raws.before,t.includes(`
16
+ `))t=t.replace(/[^\n]+$/,"");return!1}}}),t)t=t.replace(/\S/g,"");return t}rawColon(e){let t;return e.walkDecls((i)=>{if(typeof i.raws.between<"u")return t=i.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk((i)=>{if(i.nodes&&i.nodes.length===0){if(t=i.raws.after,typeof t<"u")return!1}}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((i)=>{let s=i.parent;if(s&&s!==e&&s.parent&&s.parent===e){if(typeof i.raws.before<"u"){let n=i.raws.before.split(`
17
+ `);return t=n[n.length-1],t=t.replace(/\S/g,""),!1}}}),t}rawSemicolon(e){let t;return e.walk((i)=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"){if(t=i.raws.semicolon,typeof t<"u")return!1}}),t}rawValue(e,t){let i=e[t],s=e.raws[t];if(s&&s.value===i)return s.raw;return i}root(e){if(this.body(e),e.raws.after)this.builder(e.raws.after)}rule(e){if(this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon)this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}},_o=Ai;Ai.default=Ai;var Hu=_o;function Mi(r,e){new Hu(e).stringify(r)}var $r=Mi;Mi.default=Mi;var{isClean:Jt,my:ju}=Dt,Yu=hs,Zu=_o,Xu=$r;function Ti(r,e){let t=new r.constructor;for(let i in r){if(!Object.prototype.hasOwnProperty.call(r,i))continue;if(i==="proxyCache")continue;let s=r[i],n=typeof s;if(i==="parent"&&n==="object"){if(e)t[i]=e}else if(i==="source")t[i]=s;else if(Array.isArray(s))t[i]=s.map((o)=>Ti(o,t));else{if(n==="object"&&s!==null)s=Ti(s);t[i]=s}}return t}var Ni=class{constructor(e={}){this.raws={},this[Jt]=!1,this[ju]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let i of e[t])if(typeof i.clone==="function")this.append(i.clone());else this.append(i)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){if(delete this.raws.before,delete this.raws.after,!e)delete this.raws.between}clone(e={}){let t=Ti(this);for(let i in e)t[i]=e[i];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:i,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:i.column,line:i.line},t)}return new Yu(e)}getProxyProcessor(){return{get(e,t){if(t==="proxyOf")return e;else if(t==="root")return()=>e.root().toProxy();else return e[t]},set(e,t,i){if(e[t]===i)return!0;if(e[t]=i,t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")e.markDirty();return!0}}}markDirty(){if(this[Jt]){this[Jt]=!1;let e=this;while(e=e.parent)e[Jt]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let i=this.source.start;if(e.index)i=this.positionInside(e.index,t);else if(e.word){t=this.toString();let s=t.indexOf(e.word);if(s!==-1)i=this.positionInside(s,t)}return i}positionInside(e,t){let i=t||this.toString(),s=this.source.start.column,n=this.source.start.line;for(let o=0;o<e;o++)if(i[o]===`
18
+ `)s=1,n+=1;else s+=1;return{column:s,line:n}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let s=this.toString(),n=s.indexOf(e.word);if(n!==-1)t=this.positionInside(n,s),i=this.positionInside(n+e.word.length,s)}else{if(e.start)t={column:e.start.column,line:e.start.line};else if(e.index)t=this.positionInside(e.index);if(e.end)i={column:e.end.column,line:e.end.line};else if(typeof e.endIndex==="number")i=this.positionInside(e.endIndex);else if(e.index)i=this.positionInside(e.index+1)}if(i.line<t.line||i.line===t.line&&i.column<=t.column)i={column:t.column+1,line:t.line};return{end:i,start:t}}raw(e,t){return new Zu().raw(this,e,t)}remove(){if(this.parent)this.parent.removeChild(this);return this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,i=!1;for(let s of e)if(s===this)i=!0;else if(i)this.parent.insertAfter(t,s),t=s;else this.parent.insertBefore(t,s);if(!i)this.remove()}return this}root(){let e=this;while(e.parent&&e.parent.type!=="document")e=e.parent;return e}toJSON(e,t){let i={},s=t==null;t=t||new Map;let n=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o))continue;if(o==="parent"||o==="proxyCache")continue;let l=this[o];if(Array.isArray(l))i[o]=l.map((a)=>{if(typeof a==="object"&&a.toJSON)return a.toJSON(null,t);else return a});else if(typeof l==="object"&&l.toJSON)i[o]=l.toJSON(null,t);else if(o==="source"){let a=t.get(l.input);if(a==null)a=n,t.set(l.input,n),n++;i[o]={end:l.end,inputId:a,start:l.start}}else i[o]=l}if(s)i.inputs=[...t.keys()].map((o)=>o.toJSON());return i}toProxy(){if(!this.proxyCache)this.proxyCache=new Proxy(this,this.getProxyProcessor());return this.proxyCache}toString(e=Xu){if(e.stringify)e=e.stringify;let t="";return e(this,(i)=>{t+=i}),t}warn(e,t,i){let s={node:this};for(let n in i)s[n]=i[n];return e.warn(t,s)}get proxyOf(){return this}},Fr=Ni;Ni.default=Ni;var Ku=Fr,Ri=class extends Ku{constructor(e){if(e&&typeof e.value<"u"&&typeof e.value!=="string")e={...e,value:String(e.value)};super(e);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},Ur=Ri;Ri.default=Ri;var Ju="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",qu=(r,e=21)=>(t=e)=>{let i="",s=t;while(s--)i+=r[Math.random()*r.length|0];return i},Qu=(r=21)=>{let e="",t=r;while(t--)e+=Ju[Math.random()*64|0];return e},ec={nanoid:Qu,customAlphabet:qu},{SourceMapConsumer:_n,SourceMapGenerator:kn}=ve,{existsSync:tc,readFileSync:rc}=ve,{dirname:fi,join:ic}=ve;function sc(r){if(Buffer)return Buffer.from(r,"base64").toString();else return window.atob(r)}var Oi=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let i=t.map?t.map.prev:void 0,s=this.loadMap(t.from,i);if(!this.mapFile&&t.from)this.mapFile=t.from;if(this.mapFile)this.root=fi(this.mapFile);if(s)this.text=s}consumer(){if(!this.consumerCache)this.consumerCache=new _n(this.text);return this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/;if(s.test(e)||n.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||i.test(e))return sc(e.substr(RegExp.lastMatch.length));let o=e.match(/data:application\/json;([^,]+),/)[1];throw Error("Unsupported source map encoding "+o)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){if(typeof e!=="object")return!1;return typeof e.mappings==="string"||typeof e._mappings==="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let i=e.lastIndexOf(t.pop()),s=e.indexOf("*/",i);if(i>-1&&s>-1)this.annotation=this.getAnnotationURL(e.substring(i,s))}loadFile(e){if(this.root=fi(e),tc(e))return this.mapFile=e,rc(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t)if(typeof t==="string")return t;else if(typeof t==="function"){let i=t(e);if(i){let s=this.loadFile(i);if(!s)throw Error("Unable to load previous source map: "+i.toString());return s}}else if(t instanceof _n)return kn.fromSourceMap(t).toString();else if(t instanceof kn)return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let i=this.annotation;if(e)i=ic(fi(e),i);return this.loadFile(i)}}startWith(e,t){if(!e)return!1;return e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},ko=Oi;Oi.default=Oi;var{SourceMapConsumer:nc,SourceMapGenerator:oc}=ve,{fileURLToPath:Ln,pathToFileURL:qt}=ve,{isAbsolute:Di,resolve:_i}=ve,{nanoid:ac}=ec,di=ve,Pn=hs,lc=ko,pi=Symbol("fromOffsetCache"),uc=Boolean(nc&&oc),$n=Boolean(_i&&Di),Ar=class{constructor(e,t={}){if(e===null||typeof e>"u"||typeof e==="object"&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾")this.hasBOM=!0,this.css=this.css.slice(1);else this.hasBOM=!1;if(t.from)if(!$n||/^\w+:\/\//.test(t.from)||Di(t.from))this.file=t.from;else this.file=_i(t.from);if($n&&uc){let i=new lc(this.css,t);if(i.text){this.map=i;let s=i.consumer().file;if(!this.file&&s)this.file=this.mapResolve(s)}}if(!this.file)this.id="<input css "+ac(6)+">";if(this.map)this.map.file=this.from}error(e,t,i,s={}){let n,o,l;if(t&&typeof t==="object"){let u=t,c=i;if(typeof u.offset==="number"){let f=this.fromOffset(u.offset);t=f.line,i=f.col}else t=u.line,i=u.column;if(typeof c.offset==="number"){let f=this.fromOffset(c.offset);o=f.line,l=f.col}else o=c.line,l=c.column}else if(!i){let u=this.fromOffset(t);t=u.line,i=u.col}let a=this.origin(t,i,o,l);if(a)n=new Pn(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,s.plugin);else n=new Pn(e,o===void 0?t:{column:i,line:t},o===void 0?i:{column:l,line:o},this.css,this.file,s.plugin);if(n.input={column:i,endColumn:l,endLine:o,line:t,source:this.css},this.file){if(qt)n.input.url=qt(this.file).toString();n.input.file=this.file}return n}fromOffset(e){let t,i;if(!this[pi]){let n=this.css.split(`
19
+ `);i=Array(n.length);let o=0;for(let l=0,a=n.length;l<a;l++)i[l]=o,o+=n[l].length+1;this[pi]=i}else i=this[pi];t=i[i.length-1];let s=0;if(e>=t)s=i.length-1;else{let n=i.length-2,o;while(s<n)if(o=s+(n-s>>1),e<i[o])n=o-1;else if(e>=i[o+1])s=o+1;else{s=o;break}}return{col:e-i[s]+1,line:s+1}}mapResolve(e){if(/^\w+:\/\//.test(e))return e;return _i(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,i,s){if(!this.map)return!1;let n=this.map.consumer(),o=n.originalPositionFor({column:t,line:e});if(!o.source)return!1;let l;if(typeof i==="number")l=n.originalPositionFor({column:s,line:i});let a;if(Di(o.source))a=qt(o.source);else a=new URL(o.source,this.map.consumer().sourceRoot||qt(this.map.mapFile));let u={column:o.column,endColumn:l&&l.column,endLine:l&&l.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(Ln)u.file=Ln(a);else throw Error("file: protocol is not available in this PostCSS build");let c=n.sourceContentFor(o.source);if(c)u.source=c;return u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])if(this[t]!=null)e[t]=this[t];if(this.map){if(e.map={...this.map},e.map.consumerCache)e.map.consumerCache=void 0}return e}get from(){return this.file||this.id}},Br=Ar;Ar.default=Ar;if(di&&di.registerInput)di.registerInput(Ar);var{SourceMapConsumer:Lo,SourceMapGenerator:vr}=ve,{dirname:wr,relative:Po,resolve:$o,sep:Fo}=ve,{pathToFileURL:Fn}=ve,cc=Br,hc=Boolean(Lo&&vr),fc=Boolean(wr&&$o&&Po&&Fo),dc=class{constructor(e,t,i,s){this.stringify=e,this.mapOpts=i.map||{},this.root=t,this.opts=i,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;if(this.isInline())e="data:application/json;base64,"+this.toBase64(this.map.toString());else if(typeof this.mapOpts.annotation==="string")e=this.mapOpts.annotation;else if(typeof this.mapOpts.annotation==="function")e=this.mapOpts.annotation(this.opts.to,this.root);else e=this.outputFile()+".map";let t=`
20
20
  `;if(this.css.includes(`\r
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||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
- 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
- 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 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
- 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 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
- `)}toString(){let Z=this.showSourceCode();if(Z)Z=`
21
+ `))t=`\r
22
+ `;this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),i=e.root||wr(e.file),s;if(this.mapOpts.sourcesContent===!1){if(s=new Lo(e.text),s.sourcesContent)s.sourcesContent=null}else s=e.consumer();this.map.applySourceMap(s,t,this.toUrl(this.path(i)))}}clearAnnotation(){if(this.mapOpts.annotation===!1)return;if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--){if(e=this.root.nodes[t],e.type!=="comment")continue;if(e.text.indexOf("# sourceMappingURL=")===0)this.root.removeChild(t)}}else if(this.css)this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,"")}generate(){if(this.clearAnnotation(),fc&&hc&&this.isMap())return this.generateMap();else{let e="";return this.stringify(this.root,(t)=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=vr.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new vr({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 vr({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,i="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""},n,o;this.stringify(this.root,(l,a,u)=>{if(this.css+=l,a&&u!=="end")if(s.generated.line=e,s.generated.column=t-1,a.source&&a.source.start)s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1,this.map.addMapping(s);else s.source=i,s.original.line=1,s.original.column=0,this.map.addMapping(s);if(n=l.match(/\n/g),n)e+=n.length,o=l.lastIndexOf(`
23
+ `),t=l.length-o;else t+=l.length;if(a&&u!=="start"){let c=a.parent||{raws:{}};if(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==c.last||c.raws.semicolon)if(a.source&&a.source.end)s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=e,s.generated.column=t-2,this.map.addMapping(s);else s.source=i,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=t-1,this.map.addMapping(s)}})}isAnnotation(){if(this.isInline())return!0;if(typeof this.mapOpts.annotation<"u")return this.mapOpts.annotation;if(this.previous().length)return this.previous().some((e)=>e.annotation);return!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;if(typeof e<"u"&&e!==!0)return!1;if(this.previous().length)return this.previous().some((t)=>t.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((e)=>e.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(e){if(this.mapOpts.absolute)return e;if(e.charCodeAt(0)===60)return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let i=this.opts.to?wr(this.opts.to):".";if(typeof this.mapOpts.annotation==="string")i=wr($o(i,this.mapOpts.annotation));let s=Po(i,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e)=>{if(e.source&&e.source.input.map){let t=e.source.input.map;if(!this.previousMaps.includes(t))this.previousMaps.push(t)}});else{let e=new cc(this.originalCSS,this.opts);if(e.map)this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk((t)=>{if(t.source){let i=t.source.input.from;if(i&&!e[i]){e[i]=!0;let s=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);else if(this.usesFileUrls)return this.toFileUrl(e.source.input.from);else return this.toUrl(this.path(e.source.input.from))}toBase64(e){if(Buffer)return Buffer.from(e).toString("base64");else return window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Fn){let i=Fn(e).toString();return this.memoizedFileURLs.set(e,i),i}else throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;if(Fo==="\\")e=e.replace(/\\/g,"/");let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}},Uo=dc,pc=Fr,ki=class extends pc{constructor(e){super(e);this.type="comment"}},Wr=ki;ki.default=ki;var{isClean:Bo,my:Wo}=Dt,zo=Ur,Vo=Wr,mc=Fr,Go,fs,ds,Ho;function jo(r){return r.map((e)=>{if(e.nodes)e.nodes=jo(e.nodes);return delete e.source,e})}function Yo(r){if(r[Bo]=!1,r.proxyOf.nodes)for(let e of r.proxyOf.nodes)Yo(e)}var Me=class r extends mc{append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let s of i)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),i,s;while(this.indexes[t]<this.proxyOf.nodes.length){if(i=this.indexes[t],s=e(this.proxyOf.nodes[i],i),s===!1)break;this.indexes[t]+=1}return delete this.indexes[t],s}every(e){return this.nodes.every(e)}getIterator(){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){if(t==="proxyOf")return e;else if(!e[t])return e[t];else if(t==="each"||typeof t==="string"&&t.startsWith("walk"))return(...i)=>e[t](...i.map((s)=>{if(typeof s==="function")return(n,o)=>s(n.toProxy(),o);else return s}));else if(t==="every"||t==="some")return(i)=>e[t]((s,...n)=>i(s.toProxy(),...n));else if(t==="root")return()=>e.root().toProxy();else if(t==="nodes")return e.nodes.map((i)=>i.toProxy());else if(t==="first"||t==="last")return e[t].toProxy();else return e[t]},set(e,t,i){if(e[t]===i)return!0;if(e[t]=i,t==="name"||t==="params"||t==="selector")e.markDirty();return!0}}}index(e){if(typeof e==="number")return e;if(e.proxyOf)e=e.proxyOf;return this.proxyOf.nodes.indexOf(e)}insertAfter(e,t){let i=this.index(e),s=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let o of s)this.proxyOf.nodes.splice(i+1,0,o);let n;for(let o in this.indexes)if(n=this.indexes[o],i<n)this.indexes[o]=n+s.length;return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),s=i===0?"prepend":!1,n=this.normalize(t,this.proxyOf.nodes[i],s).reverse();i=this.index(e);for(let l of n)this.proxyOf.nodes.splice(i,0,l);let o;for(let l in this.indexes)if(o=this.indexes[l],i<=o)this.indexes[l]=o+n.length;return this.markDirty(),this}normalize(e,t){if(typeof e==="string")e=jo(Go(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let s of e)if(s.parent)s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)if(s.parent)s.parent.removeChild(s,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw Error("Value field is missed in node creation");else if(typeof e.value!=="string")e.value=String(e.value);e=[new zo(e)]}else if(e.selector)e=[new fs(e)];else if(e.name)e=[new ds(e)];else if(e.text)e=[new Vo(e)];else throw Error("Unknown node type in node creation");return e.map((s)=>{if(!s[Wo])r.rebuild(s);if(s=s.proxyOf,s.parent)s.parent.removeChild(s);if(s[Bo])Yo(s);if(typeof s.raws.before>"u"){if(t&&typeof t.raws.before<"u")s.raws.before=t.raws.before.replace(/\S/g,"")}return s.parent=this.proxyOf,s})}prepend(...e){e=e.reverse();for(let t of e){let i=this.normalize(t,this.first,"prepend").reverse();for(let s of i)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+i.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let i in this.indexes)if(t=this.indexes[i],t>=e)this.indexes[i]=t-1;return this.markDirty(),this}replaceValues(e,t,i){if(!i)i=t,t={};return this.walkDecls((s)=>{if(t.props&&!t.props.includes(s.prop))return;if(t.fast&&!s.value.includes(t.fast))return;s.value=s.value.replace(e,i)}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let s;try{s=e(t,i)}catch(n){throw t.addToError(n)}if(s!==!1&&t.walk)s=t.walk(e);return s})}walkAtRules(e,t){if(!t)return t=e,this.walk((i,s)=>{if(i.type==="atrule")return t(i,s)});if(e instanceof RegExp)return this.walk((i,s)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,s)});return this.walk((i,s)=>{if(i.type==="atrule"&&i.name===e)return t(i,s)})}walkComments(e){return this.walk((t,i)=>{if(t.type==="comment")return e(t,i)})}walkDecls(e,t){if(!t)return t=e,this.walk((i,s)=>{if(i.type==="decl")return t(i,s)});if(e instanceof RegExp)return this.walk((i,s)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,s)});return this.walk((i,s)=>{if(i.type==="decl"&&i.prop===e)return t(i,s)})}walkRules(e,t){if(!t)return t=e,this.walk((i,s)=>{if(i.type==="rule")return t(i,s)});if(e instanceof RegExp)return this.walk((i,s)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,s)});return this.walk((i,s)=>{if(i.type==="rule"&&i.selector===e)return t(i,s)})}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]}};Me.registerParse=(r)=>{Go=r};Me.registerRule=(r)=>{fs=r};Me.registerAtRule=(r)=>{ds=r};Me.registerRoot=(r)=>{Ho=r};var We=Me;Me.default=Me;Me.rebuild=(r)=>{if(r.type==="atrule")Object.setPrototypeOf(r,ds.prototype);else if(r.type==="rule")Object.setPrototypeOf(r,fs.prototype);else if(r.type==="decl")Object.setPrototypeOf(r,zo.prototype);else if(r.type==="comment")Object.setPrototypeOf(r,Vo.prototype);else if(r.type==="root")Object.setPrototypeOf(r,Ho.prototype);if(r[Wo]=!0,r.nodes)r.nodes.forEach((e)=>{Me.rebuild(e)})};var gc=We,Zo,Xo,Et=class extends gc{constructor(e){super({type:"document",...e});if(!this.nodes)this.nodes=[]}toResult(e={}){return new Zo(new Xo,this,e).stringify()}};Et.registerLazyResult=(r)=>{Zo=r};Et.registerProcessor=(r)=>{Xo=r};var ps=Et;Et.default=Et;var Un={},Ko=function(e){if(Un[e])return;if(Un[e]=!0,typeof console<"u"&&console.warn)console.warn(e)},Li=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let i=t.node.rangeBy(t);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in t)this[i]=t[i]}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}},Jo=Li;Li.default=Li;var yc=Jo,Pi=class{constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){if(!t.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin)t.plugin=this.lastPlugin.postcssPlugin}let i=new yc(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter((e)=>e.type==="warning")}get content(){return this.css}},ms=Pi;Pi.default=Pi;var mi=39,Bn=34,Qt=92,Wn=47,er=10,mt=32,tr=12,rr=9,ir=13,vc=91,wc=93,bc=40,Sc=41,Cc=123,Ec=125,Ic=59,xc=42,Ac=58,Mc=64,sr=/[\t\n\f\r "#'()/;[\\\]{}]/g,nr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Tc=/.[\r\n"'(/\\]/,zn=/[\da-f]/i,Nc=function(e,t={}){let i=e.css.valueOf(),s=t.ignoreErrors,n,o,l,a,u,c,f,p,d,g,m=i.length,h=0,b=[],w=[];function y(){return h}function C(S){throw e.error("Unclosed "+S,h)}function I(){return w.length===0&&h>=m}function E(S){if(w.length)return w.pop();if(h>=m)return;let _=S?S.ignoreUnclosed:!1;switch(n=i.charCodeAt(h),n){case er:case mt:case rr:case ir:case tr:{o=h;do o+=1,n=i.charCodeAt(o);while(n===mt||n===er||n===rr||n===ir||n===tr);g=["space",i.slice(h,o)],h=o-1;break}case vc:case wc:case Cc:case Ec:case Ac:case Ic:case Sc:{let k=String.fromCharCode(n);g=[k,k,h];break}case bc:{if(p=b.length?b.pop()[1]:"",d=i.charCodeAt(h+1),p==="url"&&d!==mi&&d!==Bn&&d!==mt&&d!==er&&d!==rr&&d!==tr&&d!==ir){o=h;do{if(c=!1,o=i.indexOf(")",o+1),o===-1)if(s||_){o=h;break}else C("bracket");f=o;while(i.charCodeAt(f-1)===Qt)f-=1,c=!c}while(c);g=["brackets",i.slice(h,o+1),h,o],h=o}else if(o=i.indexOf(")",h+1),a=i.slice(h,o+1),o===-1||Tc.test(a))g=["(","(",h];else g=["brackets",a,h,o],h=o;break}case mi:case Bn:{l=n===mi?"'":'"',o=h;do{if(c=!1,o=i.indexOf(l,o+1),o===-1)if(s||_){o=h+1;break}else C("string");f=o;while(i.charCodeAt(f-1)===Qt)f-=1,c=!c}while(c);g=["string",i.slice(h,o+1),h,o],h=o;break}case Mc:{if(sr.lastIndex=h+1,sr.test(i),sr.lastIndex===0)o=i.length-1;else o=sr.lastIndex-2;g=["at-word",i.slice(h,o+1),h,o],h=o;break}case Qt:{o=h,u=!0;while(i.charCodeAt(o+1)===Qt)o+=1,u=!u;if(n=i.charCodeAt(o+1),u&&n!==Wn&&n!==mt&&n!==er&&n!==rr&&n!==ir&&n!==tr){if(o+=1,zn.test(i.charAt(o))){while(zn.test(i.charAt(o+1)))o+=1;if(i.charCodeAt(o+1)===mt)o+=1}}g=["word",i.slice(h,o+1),h,o],h=o;break}default:{if(n===Wn&&i.charCodeAt(h+1)===xc){if(o=i.indexOf("*/",h+2)+1,o===0)if(s||_)o=i.length;else C("comment");g=["comment",i.slice(h,o+1),h,o],h=o}else{if(nr.lastIndex=h+1,nr.test(i),nr.lastIndex===0)o=i.length-1;else o=nr.lastIndex-2;g=["word",i.slice(h,o+1),h,o],b.push(g),h=o}break}}return h++,g}function x(S){w.push(S)}return{back:x,endOfFile:I,nextToken:E,position:y}},qo=We,Mr=class extends qo{constructor(e){super(e);this.type="atrule"}append(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...e)}prepend(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...e)}},gs=Mr;Mr.default=Mr;qo.registerAtRule(Mr);var Qo=We,ea,ta,rt=class extends Qo{constructor(e){super(e);if(this.type="root",!this.nodes)this.nodes=[]}normalize(e,t,i){let s=super.normalize(e);if(t){if(i==="prepend")if(this.nodes.length>1)t.raws.before=this.nodes[1].raws.before;else delete t.raws.before;else if(this.first!==t)for(let n of s)n.raws.before=t.raws.before}return s}removeChild(e,t){let i=this.index(e);if(!t&&i===0&&this.nodes.length>1)this.nodes[1].raws.before=this.nodes[i].raws.before;return super.removeChild(e)}toResult(e={}){return new ea(new ta,this,e).stringify()}};rt.registerLazyResult=(r)=>{ea=r};rt.registerProcessor=(r)=>{ta=r};var _t=rt;rt.default=rt;Qo.registerRoot(rt);var It={comma(r){return It.split(r,[","],!0)},space(r){let e=[" ",`
24
+ `,"\t"];return It.split(r,e)},split(r,e,t){let i=[],s="",n=!1,o=0,l=!1,a="",u=!1;for(let c of r){if(u)u=!1;else if(c==="\\")u=!0;else if(l){if(c===a)l=!1}else if(c==='"'||c==="'")l=!0,a=c;else if(c==="(")o+=1;else if(c===")"){if(o>0)o-=1}else if(o===0){if(e.includes(c))n=!0}if(n){if(s!=="")i.push(s.trim());s="",n=!1}else s+=c}if(t||s!=="")i.push(s.trim());return i}},ra=It;It.default=It;var ia=We,Rc=ra,Tr=class extends ia{constructor(e){super(e);if(this.type="rule",!this.nodes)this.nodes=[]}get selectors(){return Rc.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,i=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}},ys=Tr;Tr.default=Tr;ia.registerRule(Tr);var Oc=Ur,Dc=Nc,_c=Wr,kc=gs,Lc=_t,Vn=ys,Gn={empty:!0,space:!0};function Pc(r){for(let e=r.length-1;e>=0;e--){let t=r[e],i=t[3]||t[2];if(i)return i}}var $c=class{constructor(e){this.input=e,this.root=new Lc,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new kc;if(t.name=e[1].slice(1),t.name==="")this.unnamedAtrule(t,e);this.init(t,e[2]);let i,s,n,o=!1,l=!1,a=[],u=[];while(!this.tokenizer.endOfFile()){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="[")u.push(i==="("?")":"]");else if(i==="{"&&u.length>0)u.push("}");else if(i===u[u.length-1])u.pop();if(u.length===0)if(i===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){l=!0;break}else if(i==="}"){if(a.length>0){n=a.length-1,s=a[n];while(s&&s[0]==="space")s=a[--n];if(s)t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}if(t.raws.between=this.spacesAndCommentsFromEnd(a),a.length){if(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o)e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between=""}else t.raws.afterName="",t.params="";if(l)t.nodes=[],this.current=t}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let i=0,s;for(let n=t-1;n>=0;n--)if(s=e[n],s[0]!=="space"){if(i+=1,i===2)break}throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0,i,s,n;for(let[o,l]of e.entries()){if(i=l,s=i[0],s==="(")t+=1;if(s===")")t-=1;if(t===0&&s===":")if(!n)this.doubleColon(i);else if(n[0]==="word"&&n[1]==="progid")continue;else return o;n=i}return!1}comment(e){let t=new _c;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))t.text="",t.raws.left=i,t.raws.right="";else{let s=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}}createTokenizer(){this.tokenizer=Dc(this.input)}decl(e,t){let i=new Oc;this.init(i,e[0][2]);let s=e[e.length-1];if(s[0]===";")this.semicolon=!0,e.pop();i.source.end=this.getPosition(s[3]||s[2]||Pc(e)),i.source.end.offset++;while(e[0][0]!=="word"){if(e.length===1)this.unknownWord(e);i.raws.before+=e.shift()[1]}i.source.start=this.getPosition(e[0][2]),i.prop="";while(e.length){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let n;while(e.length)if(n=e.shift(),n[0]===":"){i.raws.between+=n[1];break}else{if(n[0]==="word"&&/\w/.test(n[1]))this.unknownWord([n]);i.raws.between+=n[1]}if(i.prop[0]==="_"||i.prop[0]==="*")i.raws.before+=i.prop[0],i.prop=i.prop.slice(1);let o=[],l;while(e.length){if(l=e[0][0],l!=="space"&&l!=="comment")break;o.push(e.shift())}this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(n=e[u],n[1].toLowerCase()==="!important"){i.important=!0;let c=this.stringFrom(e,u);if(c=this.spacesFromEnd(e)+c,c!==" !important")i.raws.important=c;break}else if(n[1].toLowerCase()==="important"){let c=e.slice(0),f="";for(let p=u;p>0;p--){let d=c[p][0];if(f.trim().indexOf("!")===0&&d!=="space")break;f=c.pop()[1]+f}if(f.trim().indexOf("!")===0)i.important=!0,i.raws.important=f,e=c}if(n[0]!=="space"&&n[0]!=="comment")break}if(e.some((u)=>u[0]!=="space"&&u[0]!=="comment"))i.raws.between+=o.map((u)=>u[1]).join(""),o=[];if(this.raw(i,"value",o.concat(e),t),i.value.includes(":")&&!t)this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Vn;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){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(e[2]),this.current.source.end.offset++,this.current=this.current.parent;else this.unexpectedClose(e)}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(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];if(t&&t.type==="rule"&&!t.raws.ownSemicolon)t.raws.ownSemicolon=this.spaces,this.spaces=""}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){if(this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment")this.semicolon=!1}other(e){let t=!1,i=null,s=!1,n=null,o=[],l=e[1].startsWith("--"),a=[],u=e;while(u){if(i=u[0],a.push(u),i==="("||i==="["){if(!n)n=u;o.push(i==="("?")":"]")}else if(l&&s&&i==="{"){if(!n)n=u;o.push("}")}else if(o.length===0){if(i===";")if(s){this.decl(a,l);return}else break;else if(i==="{"){this.rule(a);return}else if(i==="}"){this.tokenizer.back(a.pop()),t=!0;break}else if(i===":")s=!0}else if(i===o[o.length-1]){if(o.pop(),o.length===0)n=null}u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())t=!0;if(o.length>0)this.unclosedBracket(n);if(t&&s){if(!l)while(a.length){if(u=a[a.length-1][0],u!=="space"&&u!=="comment")break;this.tokenizer.back(a.pop())}this.decl(a,l)}else this.unknownWord(a)}parse(){let e;while(!this.tokenizer.endOfFile())switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,i,s){let n,o,l=i.length,a="",u=!0,c,f;for(let p=0;p<l;p+=1)if(n=i[p],o=n[0],o==="space"&&p===l-1&&!s)u=!1;else if(o==="comment")if(f=i[p-1]?i[p-1][0]:"empty",c=i[p+1]?i[p+1][0]:"empty",!Gn[f]&&!Gn[c])if(a.slice(-1)===",")u=!1;else a+=n[1];else u=!1;else a+=n[1];if(!u){let p=i.reduce((d,g)=>d+g[1],"");e.raws[t]={raw:p,value:a}}e[t]=a}rule(e){e.pop();let t=new Vn;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,i="";while(e.length){if(t=e[e.length-1][0],t!=="space"&&t!=="comment")break;i=e.pop()[1]+i}return i}spacesAndCommentsFromStart(e){let t,i="";while(e.length){if(t=e[0][0],t!=="space"&&t!=="comment")break;i+=e.shift()[1]}return i}spacesFromEnd(e){let t,i="";while(e.length){if(t=e[e.length-1][0],t!=="space")break;i=e.pop()[1]+i}return i}stringFrom(e,t){let i="";for(let s=t;s<e.length;s++)i+=e[s][1];return e.splice(t,e.length-t),i}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}},Fc=$c,Uc=We,Bc=Fc,Wc=Br;function Nr(r,e){let t=new Wc(r,e),i=new Bc(t);try{i.parse()}catch(s){if(s.name==="CssSyntaxError"&&e&&e.from){if(/\.scss$/i.test(e.from))s.message+=`
25
+ You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`;else if(/\.sass/i.test(e.from))s.message+=`
26
+ You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`;else if(/\.less$/i.test(e.from))s.message+=`
27
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`}throw s}return i.root}var vs=Nr;Nr.default=Nr;Uc.registerParse(Nr);var{isClean:Ee,my:zc}=Dt,Vc=Uo,Gc=$r,Hc=We,jc=ps,Yc=Ko,Hn=ms,Zc=vs,Xc=_t,Kc={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Jc={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},qc={Once:!0,postcssPlugin:!0,prepare:!0},it=0;function gt(r){return typeof r==="object"&&typeof r.then==="function"}function sa(r){let e=!1,t=Kc[r.type];if(r.type==="decl")e=r.prop.toLowerCase();else if(r.type==="atrule")e=r.name.toLowerCase();if(e&&r.append)return[t,t+"-"+e,it,t+"Exit",t+"Exit-"+e];else if(e)return[t,t+"-"+e,t+"Exit",t+"Exit-"+e];else if(r.append)return[t,it,t+"Exit"];else return[t,t+"Exit"]}function jn(r){let e;if(r.type==="document")e=["Document",it,"DocumentExit"];else if(r.type==="root")e=["Root",it,"RootExit"];else e=sa(r);return{eventIndex:0,events:e,iterator:0,node:r,visitorIndex:0,visitors:[]}}function $i(r){if(r[Ee]=!1,r.nodes)r.nodes.forEach((e)=>$i(e));return r}var Fi={},st=class r{constructor(e,t,i){this.stringified=!1,this.processed=!1;let s;if(typeof t==="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=$i(t);else if(t instanceof r||t instanceof Hn){if(s=$i(t.root),t.map){if(typeof i.map>"u")i.map={};if(!i.map.inline)i.map.inline=!1;i.map.prev=t.map}}else{let n=Zc;if(i.syntax)n=i.syntax.parse;if(i.parser)n=i.parser;if(n.parse)n=n.parse;try{s=n(t,i)}catch(o){this.processed=!0,this.error=o}if(s&&!s[zc])Hc.rebuild(s)}this.result=new Hn(e,s,i),this.helpers={...Fi,postcss:Fi,result:this.result},this.plugins=this.processor.plugins.map((n)=>{if(typeof n==="object"&&n.prepare)return{...n,...n.prepare(this.result)};else return n})}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(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let i=this.result.lastPlugin;try{if(t)t.addToError(e);if(this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=i.postcssPlugin,e.setMessage();else if(i.postcssVersion){let{postcssPlugin:s,postcssVersion:n}=i,o=this.result.processor.version,l=n.split("."),a=o.split(".");if(l[0]!==a[0]||parseInt(l[1])>parseInt(a[1]))console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+s+" uses "+n+". Perhaps this is the source of the error below.")}}catch(s){if(console&&console.error)console.error(s)}return e}prepareVisitors(){this.listeners={};let e=(t,i,s)=>{if(!this.listeners[i])this.listeners[i]=[];this.listeners[i].push([t,s])};for(let t of this.plugins)if(typeof t==="object")for(let i in t){if(!Jc[i]&&/^[A-Z]/.test(i))throw Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!qc[i]){if(typeof t[i]==="object")for(let s in t[i])if(s==="*")e(t,i,t[i][s]);else e(t,i+"-"+s.toLowerCase(),t[i][s]);else if(typeof t[i]==="function")e(t,i,t[i])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],i=this.runOnRoot(t);if(gt(i))try{await i}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;while(!e[Ee]){e[Ee]=!0;let t=[jn(e)];while(t.length>0){let i=this.visitTick(t);if(gt(i))try{await i}catch(s){let n=t[t.length-1].node;throw this.handleError(s,n)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let s=e.nodes.map((n)=>i(n,this.helpers));await Promise.all(s)}else await i(e,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e==="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map((i)=>e.Once(i,this.helpers));if(gt(t[0]))return Promise.all(t);return t}return e.Once(this.result.root,this.helpers)}else if(typeof e==="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Gc;if(e.syntax)t=e.syntax.stringify;if(e.stringifier)t=e.stringifier;if(t.stringify)t=t.stringify;let s=new Vc(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[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 e of this.plugins){let t=this.runOnRoot(e);if(gt(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;while(!e[Ee])e[Ee]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){if(!("from"in this.opts))Yc("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(e,t)}toString(){return this.css}visitSync(e,t){for(let[i,s]of e){this.result.lastPlugin=i;let n;try{n=s(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(gt(n))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:s}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[o,l]=s[t.visitorIndex];if(t.visitorIndex+=1,t.visitorIndex===s.length)t.visitors=[],t.visitorIndex=0;this.result.lastPlugin=o;try{return l(i.toProxy(),this.helpers)}catch(a){throw this.handleError(a,i)}}if(t.iterator!==0){let o=t.iterator,l;while(l=i.nodes[i.indexes[o]])if(i.indexes[o]+=1,!l[Ee]){l[Ee]=!0,e.push(jn(l));return}t.iterator=0,delete i.indexes[o]}let n=t.events;while(t.eventIndex<n.length){let o=n[t.eventIndex];if(t.eventIndex+=1,o===it){if(i.nodes&&i.nodes.length)i[Ee]=!0,t.iterator=i.getIterator();return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[Ee]=!0;let t=sa(e);for(let i of t)if(i===it){if(e.nodes)e.each((s)=>{if(!s[Ee])this.walkSync(s)})}else{let s=this.listeners[i];if(s){if(this.visitSync(s,e.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"}};st.registerPostcss=(r)=>{Fi=r};var na=st;st.default=st;Xc.registerLazyResult(st);jc.registerLazyResult(st);var Qc=Uo,eh=$r,th=Ko,rh=vs,ih=ms,Ui=class{constructor(e,t,i){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=i,this._map=void 0;let s,n=eh;this.result=new ih(this._processor,s,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new Qc(n,s,this._opts,t);if(l.isMap()){let[a,u]=l.generate();if(a)this.result.css=a;if(u)this.result.map=u}else l.clearAnnotation(),this.result.css=l.css}async(){if(this.error)return Promise.reject(this.error);return Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){if(!("from"in this._opts))th("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(e,t)}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 e,t=rh;try{e=t(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;else return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}},sh=Ui;Ui.default=Ui;var nh=sh,oh=na,ah=ps,lh=_t,xt=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let i of e){if(i.postcss===!0)i=i();else if(i.postcss)i=i.postcss;if(typeof i==="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if(typeof i==="object"&&i.postcssPlugin)t.push(i);else if(typeof i==="function")t.push(i);else if(typeof i==="object"&&(i.parse||i.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(i+" is not a PostCSS plugin")}return t}process(e,t={}){if(!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax)return new nh(this,e,t);else return new oh(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}},uh=xt;xt.default=xt;lh.registerProcessor(xt);ah.registerProcessor(xt);var ch=Ur,hh=ko,fh=Wr,dh=gs,ph=Br,mh=_t,gh=ys;function At(r,e){if(Array.isArray(r))return r.map((s)=>At(s));let{inputs:t,...i}=r;if(t){e=[];for(let s of t){let n={...s,__proto__:ph.prototype};if(n.map)n.map={...n.map,__proto__:hh.prototype};e.push(n)}}if(i.nodes)i.nodes=r.nodes.map((s)=>At(s,e));if(i.source){let{inputId:s,...n}=i.source;if(i.source=n,s!=null)i.source.input=e[s]}if(i.type==="root")return new mh(i);else if(i.type==="decl")return new ch(i);else if(i.type==="rule")return new gh(i);else if(i.type==="comment")return new fh(i);else if(i.type==="atrule")return new dh(i);else throw Error("Unknown node type: "+r.type)}var yh=At;At.default=At;var vh=hs,oa=Ur,wh=na,bh=We,ws=uh,Sh=$r,Ch=yh,aa=ps,Eh=Jo,la=Wr,ua=gs,Ih=ms,xh=Br,Ah=vs,Mh=ra,ca=ys,ha=_t,Th=Fr;function F(...r){if(r.length===1&&Array.isArray(r[0]))r=r[0];return new ws(r)}F.plugin=function(e,t){let i=!1;function s(...o){if(console&&console.warn&&!i){if(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
28
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn"))console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
29
+ https://www.w3ctech.com/topic/2226`)}let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new ws().version,l}let n;return Object.defineProperty(s,"postcss",{get(){if(!n)n=s();return n}}),s.process=function(o,l,a){return F([s(a)]).process(o,l)},s};F.stringify=Sh;F.parse=Ah;F.fromJSON=Ch;F.list=Mh;F.comment=(r)=>new la(r);F.atRule=(r)=>new ua(r);F.decl=(r)=>new oa(r);F.rule=(r)=>new ca(r);F.root=(r)=>new ha(r);F.document=(r)=>new aa(r);F.CssSyntaxError=vh;F.Declaration=oa;F.Container=bh;F.Processor=ws;F.Document=aa;F.Comment=la;F.Warning=Eh;F.AtRule=ua;F.Result=Ih;F.Input=xh;F.Rule=ca;F.Root=ha;F.Node=Th;wh.registerPostcss(F);var Nh=F;F.default=F;var j=Uu(Nh);j.stringify;j.fromJSON;j.plugin;j.parse;j.list;j.document;j.comment;j.atRule;j.rule;j.decl;j.root;j.CssSyntaxError;j.Declaration;j.Container;j.Processor;j.Document;j.Comment;j.Warning;j.AtRule;j.Result;j.Input;j.Rule;j.Root;j.Node;var Rh=Object.defineProperty,Oh=(r,e,t)=>(e in r)?Rh(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,de=(r,e,t)=>Oh(r,typeof e!=="symbol"?e+"":e,t);function Dh(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function _h(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function i(){if(this instanceof i)return Reflect.construct(e,arguments,this.constructor);return e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(i){var s=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:function(){return r[i]}})}),t}var bs={exports:{}},G=String,fa=function(){return{isColorSupported:!1,reset:G,bold:G,dim:G,italic:G,underline:G,inverse:G,hidden:G,strikethrough:G,black:G,red:G,green:G,yellow:G,blue:G,magenta:G,cyan:G,white:G,gray:G,bgBlack:G,bgRed:G,bgGreen:G,bgYellow:G,bgBlue:G,bgMagenta:G,bgCyan:G,bgWhite:G}};bs.exports=fa();bs.exports.createColors=fa;var kh=bs.exports,Lh={},Ph=Object.freeze(Object.defineProperty({__proto__:null,default:Lh},Symbol.toStringTag,{value:"Module"})),we=_h(Ph),Yn=kh,Zn=we,Bi=class r extends Error{constructor(e,t,i,s,n,o){super(e);if(this.name="CssSyntaxError",this.reason=e,n)this.file=n;if(s)this.source=s;if(o)this.plugin=o;if(typeof t<"u"&&typeof i<"u")if(typeof t==="number")this.line=t,this.column=i;else this.line=t.line,this.column=t.column,this.endLine=i.line,this.endColumn=i.column;if(this.setMessage(),Error.captureStackTrace)Error.captureStackTrace(this,r)}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(e){if(!this.source)return"";let t=this.source;if(e==null)e=Yn.isColorSupported;if(Zn){if(e)t=Zn(t)}let i=t.split(/\r?\n/),s=Math.max(this.line-3,0),n=Math.min(this.line+2,i.length),o=String(n).length,l,a;if(e){let{bold:u,gray:c,red:f}=Yn.createColors(!0);l=(p)=>u(f(p)),a=(p)=>c(p)}else l=a=(u)=>u;return i.slice(s,n).map((u,c)=>{let f=s+1+c,p=" "+(" "+f).slice(-o)+" | ";if(f===this.line){let d=a(p.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(p)+u+`
30
+ `+d+l("^")}return" "+a(p)+u}).join(`
31
+ `)}toString(){let e=this.showSourceCode();if(e)e=`
32
32
 
33
- `+Z+`
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:`
33
+ `+e+`
34
+ `;return this.name+": "+this.message+e}},Ss=Bi;Bi.default=Bi;var kt={};kt.isClean=Symbol("isClean");kt.my=Symbol("my");var Xn={after:`
35
35
  `,beforeClose:`
36
36
  `,beforeComment:`
37
37
  `,beforeDecl:`
38
38
  `,beforeOpen:" ",beforeRule:`
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=`
39
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function $h(r){return r[0].toUpperCase()+r.slice(1)}var Wi=class{constructor(e){this.builder=e}atrule(e,t){let i="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u")i+=e.raws.afterName;else if(s)i+=" ";if(e.nodes)this.block(e,i+s);else{let n=(e.raws.between||"")+(t?";":"");this.builder(i+s+n,e)}}beforeAfter(e,t){let i;if(e.type==="decl")i=this.raw(e,null,"beforeDecl");else if(e.type==="comment")i=this.raw(e,null,"beforeComment");else if(t==="before")i=this.raw(e,null,"beforeRule");else i=this.raw(e,null,"beforeClose");let s=e.parent,n=0;while(s&&s.type!=="root")n+=1,s=s.parent;if(i.includes(`
40
+ `)){let o=this.raw(e,null,"indent");if(o.length)for(let l=0;l<n;l++)i+=o}return i}block(e,t){let i=this.raw(e,"between","beforeOpen");this.builder(t+i+"{",e,"start");let s;if(e.nodes&&e.nodes.length)this.body(e),s=this.raw(e,"after");else s=this.raw(e,"after","emptyBody");if(s)this.builder(s);this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;while(t>0){if(e.nodes[t].type!=="comment")break;t-=1}let i=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let n=e.nodes[s],o=this.raw(n,"before");if(o)this.builder(o);this.stringify(n,t!==s||i)}}comment(e){let t=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+i+"*/",e)}decl(e,t){let i=this.raw(e,"between","colon"),s=e.prop+i+this.rawValue(e,"value");if(e.important)s+=e.raws.important||" !important";if(t)s+=";";this.builder(s,e)}document(e){this.body(e)}raw(e,t,i){let s;if(!i)i=t;if(t){if(s=e.raws[t],typeof s<"u")return s}let n=e.parent;if(i==="before"){if(!n||n.type==="root"&&n.first===e)return"";if(n&&n.type==="document")return""}if(!n)return Xn[i];let o=e.root();if(!o.rawCache)o.rawCache={};if(typeof o.rawCache[i]<"u")return o.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);else{let l="raw"+$h(i);if(this[l])s=this[l](o,e);else o.walk((a)=>{if(s=a.raws[t],typeof s<"u")return!1})}if(typeof s>"u")s=Xn[i];return o.rawCache[i]=s,s}rawBeforeClose(e){let t;if(e.walk((i)=>{if(i.nodes&&i.nodes.length>0){if(typeof i.raws.after<"u"){if(t=i.raws.after,t.includes(`
41
+ `))t=t.replace(/[^\n]+$/,"");return!1}}}),t)t=t.replace(/\S/g,"");return t}rawBeforeComment(e,t){let i;if(e.walkComments((s)=>{if(typeof s.raws.before<"u"){if(i=s.raws.before,i.includes(`
42
+ `))i=i.replace(/[^\n]+$/,"");return!1}}),typeof i>"u")i=this.raw(t,null,"beforeDecl");else if(i)i=i.replace(/\S/g,"");return i}rawBeforeDecl(e,t){let i;if(e.walkDecls((s)=>{if(typeof s.raws.before<"u"){if(i=s.raws.before,i.includes(`
43
+ `))i=i.replace(/[^\n]+$/,"");return!1}}),typeof i>"u")i=this.raw(t,null,"beforeRule");else if(i)i=i.replace(/\S/g,"");return i}rawBeforeOpen(e){let t;return e.walk((i)=>{if(i.type!=="decl"){if(t=i.raws.between,typeof t<"u")return!1}}),t}rawBeforeRule(e){let t;if(e.walk((i)=>{if(i.nodes&&(i.parent!==e||e.first!==i)){if(typeof i.raws.before<"u"){if(t=i.raws.before,t.includes(`
44
+ `))t=t.replace(/[^\n]+$/,"");return!1}}}),t)t=t.replace(/\S/g,"");return t}rawColon(e){let t;return e.walkDecls((i)=>{if(typeof i.raws.between<"u")return t=i.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk((i)=>{if(i.nodes&&i.nodes.length===0){if(t=i.raws.after,typeof t<"u")return!1}}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((i)=>{let s=i.parent;if(s&&s!==e&&s.parent&&s.parent===e){if(typeof i.raws.before<"u"){let n=i.raws.before.split(`
45
+ `);return t=n[n.length-1],t=t.replace(/\S/g,""),!1}}}),t}rawSemicolon(e){let t;return e.walk((i)=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"){if(t=i.raws.semicolon,typeof t<"u")return!1}}),t}rawValue(e,t){let i=e[t],s=e.raws[t];if(s&&s.value===i)return s.raw;return i}root(e){if(this.body(e),e.raws.after)this.builder(e.raws.after)}rule(e){if(this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon)this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}},da=Wi;Wi.default=Wi;var Fh=da;function zi(r,e){new Fh(e).stringify(r)}var zr=zi;zi.default=zi;var{isClean:or,my:Uh}=kt,Bh=Ss,Wh=da,zh=zr;function Vi(r,e){let t=new r.constructor;for(let i in r){if(!Object.prototype.hasOwnProperty.call(r,i))continue;if(i==="proxyCache")continue;let s=r[i],n=typeof s;if(i==="parent"&&n==="object"){if(e)t[i]=e}else if(i==="source")t[i]=s;else if(Array.isArray(s))t[i]=s.map((o)=>Vi(o,t));else{if(n==="object"&&s!==null)s=Vi(s);t[i]=s}}return t}var Gi=class{constructor(e={}){this.raws={},this[or]=!1,this[Uh]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let i of e[t])if(typeof i.clone==="function")this.append(i.clone());else this.append(i)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){if(delete this.raws.before,delete this.raws.after,!e)delete this.raws.between}clone(e={}){let t=Vi(this);for(let i in e)t[i]=e[i];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:i,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:i.column,line:i.line},t)}return new Bh(e)}getProxyProcessor(){return{get(e,t){if(t==="proxyOf")return e;else if(t==="root")return()=>e.root().toProxy();else return e[t]},set(e,t,i){if(e[t]===i)return!0;if(e[t]=i,t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")e.markDirty();return!0}}}markDirty(){if(this[or]){this[or]=!1;let e=this;while(e=e.parent)e[or]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let i=this.source.start;if(e.index)i=this.positionInside(e.index,t);else if(e.word){t=this.toString();let s=t.indexOf(e.word);if(s!==-1)i=this.positionInside(s,t)}return i}positionInside(e,t){let i=t||this.toString(),s=this.source.start.column,n=this.source.start.line;for(let o=0;o<e;o++)if(i[o]===`
46
+ `)s=1,n+=1;else s+=1;return{column:s,line:n}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let s=this.toString(),n=s.indexOf(e.word);if(n!==-1)t=this.positionInside(n,s),i=this.positionInside(n+e.word.length,s)}else{if(e.start)t={column:e.start.column,line:e.start.line};else if(e.index)t=this.positionInside(e.index);if(e.end)i={column:e.end.column,line:e.end.line};else if(typeof e.endIndex==="number")i=this.positionInside(e.endIndex);else if(e.index)i=this.positionInside(e.index+1)}if(i.line<t.line||i.line===t.line&&i.column<=t.column)i={column:t.column+1,line:t.line};return{end:i,start:t}}raw(e,t){return new Wh().raw(this,e,t)}remove(){if(this.parent)this.parent.removeChild(this);return this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,i=!1;for(let s of e)if(s===this)i=!0;else if(i)this.parent.insertAfter(t,s),t=s;else this.parent.insertBefore(t,s);if(!i)this.remove()}return this}root(){let e=this;while(e.parent&&e.parent.type!=="document")e=e.parent;return e}toJSON(e,t){let i={},s=t==null;t=t||new Map;let n=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o))continue;if(o==="parent"||o==="proxyCache")continue;let l=this[o];if(Array.isArray(l))i[o]=l.map((a)=>{if(typeof a==="object"&&a.toJSON)return a.toJSON(null,t);else return a});else if(typeof l==="object"&&l.toJSON)i[o]=l.toJSON(null,t);else if(o==="source"){let a=t.get(l.input);if(a==null)a=n,t.set(l.input,n),n++;i[o]={end:l.end,inputId:a,start:l.start}}else i[o]=l}if(s)i.inputs=[...t.keys()].map((o)=>o.toJSON());return i}toProxy(){if(!this.proxyCache)this.proxyCache=new Proxy(this,this.getProxyProcessor());return this.proxyCache}toString(e=zh){if(e.stringify)e=e.stringify;let t="";return e(this,(i)=>{t+=i}),t}warn(e,t,i){let s={node:this};for(let n in i)s[n]=i[n];return e.warn(t,s)}get proxyOf(){return this}},Vr=Gi;Gi.default=Gi;var Vh=Vr,Hi=class extends Vh{constructor(e){if(e&&typeof e.value<"u"&&typeof e.value!=="string")e={...e,value:String(e.value)};super(e);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},Gr=Hi;Hi.default=Hi;var Gh="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Hh=(r,e=21)=>(t=e)=>{let i="",s=t;while(s--)i+=r[Math.random()*r.length|0];return i},jh=(r=21)=>{let e="",t=r;while(t--)e+=Gh[Math.random()*64|0];return e},Yh={nanoid:jh,customAlphabet:Hh},{SourceMapConsumer:Kn,SourceMapGenerator:Jn}=we,{existsSync:Zh,readFileSync:Xh}=we,{dirname:gi,join:Kh}=we;function Jh(r){if(Buffer)return Buffer.from(r,"base64").toString();else return window.atob(r)}var ji=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let i=t.map?t.map.prev:void 0,s=this.loadMap(t.from,i);if(!this.mapFile&&t.from)this.mapFile=t.from;if(this.mapFile)this.root=gi(this.mapFile);if(s)this.text=s}consumer(){if(!this.consumerCache)this.consumerCache=new Kn(this.text);return this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/;if(s.test(e)||n.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||i.test(e))return Jh(e.substr(RegExp.lastMatch.length));let o=e.match(/data:application\/json;([^,]+),/)[1];throw Error("Unsupported source map encoding "+o)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){if(typeof e!=="object")return!1;return typeof e.mappings==="string"||typeof e._mappings==="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let i=e.lastIndexOf(t.pop()),s=e.indexOf("*/",i);if(i>-1&&s>-1)this.annotation=this.getAnnotationURL(e.substring(i,s))}loadFile(e){if(this.root=gi(e),Zh(e))return this.mapFile=e,Xh(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t)if(typeof t==="string")return t;else if(typeof t==="function"){let i=t(e);if(i){let s=this.loadFile(i);if(!s)throw Error("Unable to load previous source map: "+i.toString());return s}}else if(t instanceof Kn)return Jn.fromSourceMap(t).toString();else if(t instanceof Jn)return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let i=this.annotation;if(e)i=Kh(gi(e),i);return this.loadFile(i)}}startWith(e,t){if(!e)return!1;return e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},pa=ji;ji.default=ji;var{SourceMapConsumer:qh,SourceMapGenerator:Qh}=we,{fileURLToPath:qn,pathToFileURL:ar}=we,{isAbsolute:Yi,resolve:Zi}=we,{nanoid:ef}=Yh,yi=we,Qn=Ss,tf=pa,vi=Symbol("fromOffsetCache"),rf=Boolean(qh&&Qh),eo=Boolean(Zi&&Yi),Rr=class{constructor(e,t={}){if(e===null||typeof e>"u"||typeof e==="object"&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾")this.hasBOM=!0,this.css=this.css.slice(1);else this.hasBOM=!1;if(t.from)if(!eo||/^\w+:\/\//.test(t.from)||Yi(t.from))this.file=t.from;else this.file=Zi(t.from);if(eo&&rf){let i=new tf(this.css,t);if(i.text){this.map=i;let s=i.consumer().file;if(!this.file&&s)this.file=this.mapResolve(s)}}if(!this.file)this.id="<input css "+ef(6)+">";if(this.map)this.map.file=this.from}error(e,t,i,s={}){let n,o,l;if(t&&typeof t==="object"){let u=t,c=i;if(typeof u.offset==="number"){let f=this.fromOffset(u.offset);t=f.line,i=f.col}else t=u.line,i=u.column;if(typeof c.offset==="number"){let f=this.fromOffset(c.offset);o=f.line,l=f.col}else o=c.line,l=c.column}else if(!i){let u=this.fromOffset(t);t=u.line,i=u.col}let a=this.origin(t,i,o,l);if(a)n=new Qn(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,s.plugin);else n=new Qn(e,o===void 0?t:{column:i,line:t},o===void 0?i:{column:l,line:o},this.css,this.file,s.plugin);if(n.input={column:i,endColumn:l,endLine:o,line:t,source:this.css},this.file){if(ar)n.input.url=ar(this.file).toString();n.input.file=this.file}return n}fromOffset(e){let t,i;if(!this[vi]){let n=this.css.split(`
47
+ `);i=Array(n.length);let o=0;for(let l=0,a=n.length;l<a;l++)i[l]=o,o+=n[l].length+1;this[vi]=i}else i=this[vi];t=i[i.length-1];let s=0;if(e>=t)s=i.length-1;else{let n=i.length-2,o;while(s<n)if(o=s+(n-s>>1),e<i[o])n=o-1;else if(e>=i[o+1])s=o+1;else{s=o;break}}return{col:e-i[s]+1,line:s+1}}mapResolve(e){if(/^\w+:\/\//.test(e))return e;return Zi(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,i,s){if(!this.map)return!1;let n=this.map.consumer(),o=n.originalPositionFor({column:t,line:e});if(!o.source)return!1;let l;if(typeof i==="number")l=n.originalPositionFor({column:s,line:i});let a;if(Yi(o.source))a=ar(o.source);else a=new URL(o.source,this.map.consumer().sourceRoot||ar(this.map.mapFile));let u={column:o.column,endColumn:l&&l.column,endLine:l&&l.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(qn)u.file=qn(a);else throw Error("file: protocol is not available in this PostCSS build");let c=n.sourceContentFor(o.source);if(c)u.source=c;return u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])if(this[t]!=null)e[t]=this[t];if(this.map){if(e.map={...this.map},e.map.consumerCache)e.map.consumerCache=void 0}return e}get from(){return this.file||this.id}},Hr=Rr;Rr.default=Rr;if(yi&&yi.registerInput)yi.registerInput(Rr);var{SourceMapConsumer:ma,SourceMapGenerator:br}=we,{dirname:Sr,relative:ga,resolve:ya,sep:va}=we,{pathToFileURL:to}=we,sf=Hr,nf=Boolean(ma&&br),of=Boolean(Sr&&ya&&ga&&va),af=class{constructor(e,t,i,s){this.stringify=e,this.mapOpts=i.map||{},this.root=t,this.opts=i,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;if(this.isInline())e="data:application/json;base64,"+this.toBase64(this.map.toString());else if(typeof this.mapOpts.annotation==="string")e=this.mapOpts.annotation;else if(typeof this.mapOpts.annotation==="function")e=this.mapOpts.annotation(this.opts.to,this.root);else e=this.outputFile()+".map";let t=`
48
48
  `;if(this.css.includes(`\r
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||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
- 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
- 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 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
- 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 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
49
+ `))t=`\r
50
+ `;this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),i=e.root||Sr(e.file),s;if(this.mapOpts.sourcesContent===!1){if(s=new ma(e.text),s.sourcesContent)s.sourcesContent=null}else s=e.consumer();this.map.applySourceMap(s,t,this.toUrl(this.path(i)))}}clearAnnotation(){if(this.mapOpts.annotation===!1)return;if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--){if(e=this.root.nodes[t],e.type!=="comment")continue;if(e.text.indexOf("# sourceMappingURL=")===0)this.root.removeChild(t)}}else if(this.css)this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,"")}generate(){if(this.clearAnnotation(),of&&nf&&this.isMap())return this.generateMap();else{let e="";return this.stringify(this.root,(t)=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=br.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new br({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 br({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,i="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""},n,o;this.stringify(this.root,(l,a,u)=>{if(this.css+=l,a&&u!=="end")if(s.generated.line=e,s.generated.column=t-1,a.source&&a.source.start)s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1,this.map.addMapping(s);else s.source=i,s.original.line=1,s.original.column=0,this.map.addMapping(s);if(n=l.match(/\n/g),n)e+=n.length,o=l.lastIndexOf(`
51
+ `),t=l.length-o;else t+=l.length;if(a&&u!=="start"){let c=a.parent||{raws:{}};if(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==c.last||c.raws.semicolon)if(a.source&&a.source.end)s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=e,s.generated.column=t-2,this.map.addMapping(s);else s.source=i,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=t-1,this.map.addMapping(s)}})}isAnnotation(){if(this.isInline())return!0;if(typeof this.mapOpts.annotation<"u")return this.mapOpts.annotation;if(this.previous().length)return this.previous().some((e)=>e.annotation);return!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;if(typeof e<"u"&&e!==!0)return!1;if(this.previous().length)return this.previous().some((t)=>t.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((e)=>e.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(e){if(this.mapOpts.absolute)return e;if(e.charCodeAt(0)===60)return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let i=this.opts.to?Sr(this.opts.to):".";if(typeof this.mapOpts.annotation==="string")i=Sr(ya(i,this.mapOpts.annotation));let s=ga(i,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e)=>{if(e.source&&e.source.input.map){let t=e.source.input.map;if(!this.previousMaps.includes(t))this.previousMaps.push(t)}});else{let e=new sf(this.originalCSS,this.opts);if(e.map)this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk((t)=>{if(t.source){let i=t.source.input.from;if(i&&!e[i]){e[i]=!0;let s=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);else if(this.usesFileUrls)return this.toFileUrl(e.source.input.from);else return this.toUrl(this.path(e.source.input.from))}toBase64(e){if(Buffer)return Buffer.from(e).toString("base64");else return window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(to){let i=to(e).toString();return this.memoizedFileURLs.set(e,i),i}else throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;if(va==="\\")e=e.replace(/\\/g,"/");let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}},wa=af,lf=Vr,Xi=class extends lf{constructor(e){super(e);this.type="comment"}},jr=Xi;Xi.default=Xi;var{isClean:ba,my:Sa}=kt,Ca=Gr,Ea=jr,uf=Vr,Ia,Cs,Es,xa;function Aa(r){return r.map((e)=>{if(e.nodes)e.nodes=Aa(e.nodes);return delete e.source,e})}function Ma(r){if(r[ba]=!1,r.proxyOf.nodes)for(let e of r.proxyOf.nodes)Ma(e)}var Te=class r extends uf{append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let s of i)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),i,s;while(this.indexes[t]<this.proxyOf.nodes.length){if(i=this.indexes[t],s=e(this.proxyOf.nodes[i],i),s===!1)break;this.indexes[t]+=1}return delete this.indexes[t],s}every(e){return this.nodes.every(e)}getIterator(){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){if(t==="proxyOf")return e;else if(!e[t])return e[t];else if(t==="each"||typeof t==="string"&&t.startsWith("walk"))return(...i)=>e[t](...i.map((s)=>{if(typeof s==="function")return(n,o)=>s(n.toProxy(),o);else return s}));else if(t==="every"||t==="some")return(i)=>e[t]((s,...n)=>i(s.toProxy(),...n));else if(t==="root")return()=>e.root().toProxy();else if(t==="nodes")return e.nodes.map((i)=>i.toProxy());else if(t==="first"||t==="last")return e[t].toProxy();else return e[t]},set(e,t,i){if(e[t]===i)return!0;if(e[t]=i,t==="name"||t==="params"||t==="selector")e.markDirty();return!0}}}index(e){if(typeof e==="number")return e;if(e.proxyOf)e=e.proxyOf;return this.proxyOf.nodes.indexOf(e)}insertAfter(e,t){let i=this.index(e),s=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let o of s)this.proxyOf.nodes.splice(i+1,0,o);let n;for(let o in this.indexes)if(n=this.indexes[o],i<n)this.indexes[o]=n+s.length;return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),s=i===0?"prepend":!1,n=this.normalize(t,this.proxyOf.nodes[i],s).reverse();i=this.index(e);for(let l of n)this.proxyOf.nodes.splice(i,0,l);let o;for(let l in this.indexes)if(o=this.indexes[l],i<=o)this.indexes[l]=o+n.length;return this.markDirty(),this}normalize(e,t){if(typeof e==="string")e=Aa(Ia(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let s of e)if(s.parent)s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)if(s.parent)s.parent.removeChild(s,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw Error("Value field is missed in node creation");else if(typeof e.value!=="string")e.value=String(e.value);e=[new Ca(e)]}else if(e.selector)e=[new Cs(e)];else if(e.name)e=[new Es(e)];else if(e.text)e=[new Ea(e)];else throw Error("Unknown node type in node creation");return e.map((s)=>{if(!s[Sa])r.rebuild(s);if(s=s.proxyOf,s.parent)s.parent.removeChild(s);if(s[ba])Ma(s);if(typeof s.raws.before>"u"){if(t&&typeof t.raws.before<"u")s.raws.before=t.raws.before.replace(/\S/g,"")}return s.parent=this.proxyOf,s})}prepend(...e){e=e.reverse();for(let t of e){let i=this.normalize(t,this.first,"prepend").reverse();for(let s of i)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+i.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let i in this.indexes)if(t=this.indexes[i],t>=e)this.indexes[i]=t-1;return this.markDirty(),this}replaceValues(e,t,i){if(!i)i=t,t={};return this.walkDecls((s)=>{if(t.props&&!t.props.includes(s.prop))return;if(t.fast&&!s.value.includes(t.fast))return;s.value=s.value.replace(e,i)}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let s;try{s=e(t,i)}catch(n){throw t.addToError(n)}if(s!==!1&&t.walk)s=t.walk(e);return s})}walkAtRules(e,t){if(!t)return t=e,this.walk((i,s)=>{if(i.type==="atrule")return t(i,s)});if(e instanceof RegExp)return this.walk((i,s)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,s)});return this.walk((i,s)=>{if(i.type==="atrule"&&i.name===e)return t(i,s)})}walkComments(e){return this.walk((t,i)=>{if(t.type==="comment")return e(t,i)})}walkDecls(e,t){if(!t)return t=e,this.walk((i,s)=>{if(i.type==="decl")return t(i,s)});if(e instanceof RegExp)return this.walk((i,s)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,s)});return this.walk((i,s)=>{if(i.type==="decl"&&i.prop===e)return t(i,s)})}walkRules(e,t){if(!t)return t=e,this.walk((i,s)=>{if(i.type==="rule")return t(i,s)});if(e instanceof RegExp)return this.walk((i,s)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,s)});return this.walk((i,s)=>{if(i.type==="rule"&&i.selector===e)return t(i,s)})}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]}};Te.registerParse=(r)=>{Ia=r};Te.registerRule=(r)=>{Cs=r};Te.registerAtRule=(r)=>{Es=r};Te.registerRoot=(r)=>{xa=r};var ze=Te;Te.default=Te;Te.rebuild=(r)=>{if(r.type==="atrule")Object.setPrototypeOf(r,Es.prototype);else if(r.type==="rule")Object.setPrototypeOf(r,Cs.prototype);else if(r.type==="decl")Object.setPrototypeOf(r,Ca.prototype);else if(r.type==="comment")Object.setPrototypeOf(r,Ea.prototype);else if(r.type==="root")Object.setPrototypeOf(r,xa.prototype);if(r[Sa]=!0,r.nodes)r.nodes.forEach((e)=>{Te.rebuild(e)})};var cf=ze,Ta,Na,Mt=class extends cf{constructor(e){super({type:"document",...e});if(!this.nodes)this.nodes=[]}toResult(e={}){return new Ta(new Na,this,e).stringify()}};Mt.registerLazyResult=(r)=>{Ta=r};Mt.registerProcessor=(r)=>{Na=r};var Is=Mt;Mt.default=Mt;var ro={},Ra=function(e){if(ro[e])return;if(ro[e]=!0,typeof console<"u"&&console.warn)console.warn(e)},Ki=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let i=t.node.rangeBy(t);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in t)this[i]=t[i]}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}},Oa=Ki;Ki.default=Ki;var hf=Oa,Ji=class{constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){if(!t.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin)t.plugin=this.lastPlugin.postcssPlugin}let i=new hf(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter((e)=>e.type==="warning")}get content(){return this.css}},xs=Ji;Ji.default=Ji;var wi=39,io=34,lr=92,so=47,ur=10,yt=32,cr=12,hr=9,fr=13,ff=91,df=93,pf=40,mf=41,gf=123,yf=125,vf=59,wf=42,bf=58,Sf=64,dr=/[\t\n\f\r "#'()/;[\\\]{}]/g,pr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Cf=/.[\r\n"'(/\\]/,no=/[\da-f]/i,Ef=function(e,t={}){let i=e.css.valueOf(),s=t.ignoreErrors,n,o,l,a,u,c,f,p,d,g,m=i.length,h=0,b=[],w=[];function y(){return h}function C(S){throw e.error("Unclosed "+S,h)}function I(){return w.length===0&&h>=m}function E(S){if(w.length)return w.pop();if(h>=m)return;let _=S?S.ignoreUnclosed:!1;switch(n=i.charCodeAt(h),n){case ur:case yt:case hr:case fr:case cr:{o=h;do o+=1,n=i.charCodeAt(o);while(n===yt||n===ur||n===hr||n===fr||n===cr);g=["space",i.slice(h,o)],h=o-1;break}case ff:case df:case gf:case yf:case bf:case vf:case mf:{let k=String.fromCharCode(n);g=[k,k,h];break}case pf:{if(p=b.length?b.pop()[1]:"",d=i.charCodeAt(h+1),p==="url"&&d!==wi&&d!==io&&d!==yt&&d!==ur&&d!==hr&&d!==cr&&d!==fr){o=h;do{if(c=!1,o=i.indexOf(")",o+1),o===-1)if(s||_){o=h;break}else C("bracket");f=o;while(i.charCodeAt(f-1)===lr)f-=1,c=!c}while(c);g=["brackets",i.slice(h,o+1),h,o],h=o}else if(o=i.indexOf(")",h+1),a=i.slice(h,o+1),o===-1||Cf.test(a))g=["(","(",h];else g=["brackets",a,h,o],h=o;break}case wi:case io:{l=n===wi?"'":'"',o=h;do{if(c=!1,o=i.indexOf(l,o+1),o===-1)if(s||_){o=h+1;break}else C("string");f=o;while(i.charCodeAt(f-1)===lr)f-=1,c=!c}while(c);g=["string",i.slice(h,o+1),h,o],h=o;break}case Sf:{if(dr.lastIndex=h+1,dr.test(i),dr.lastIndex===0)o=i.length-1;else o=dr.lastIndex-2;g=["at-word",i.slice(h,o+1),h,o],h=o;break}case lr:{o=h,u=!0;while(i.charCodeAt(o+1)===lr)o+=1,u=!u;if(n=i.charCodeAt(o+1),u&&n!==so&&n!==yt&&n!==ur&&n!==hr&&n!==fr&&n!==cr){if(o+=1,no.test(i.charAt(o))){while(no.test(i.charAt(o+1)))o+=1;if(i.charCodeAt(o+1)===yt)o+=1}}g=["word",i.slice(h,o+1),h,o],h=o;break}default:{if(n===so&&i.charCodeAt(h+1)===wf){if(o=i.indexOf("*/",h+2)+1,o===0)if(s||_)o=i.length;else C("comment");g=["comment",i.slice(h,o+1),h,o],h=o}else{if(pr.lastIndex=h+1,pr.test(i),pr.lastIndex===0)o=i.length-1;else o=pr.lastIndex-2;g=["word",i.slice(h,o+1),h,o],b.push(g),h=o}break}}return h++,g}function x(S){w.push(S)}return{back:x,endOfFile:I,nextToken:E,position:y}},Da=ze,Or=class extends Da{constructor(e){super(e);this.type="atrule"}append(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...e)}prepend(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...e)}},As=Or;Or.default=Or;Da.registerAtRule(Or);var _a=ze,ka,La,nt=class extends _a{constructor(e){super(e);if(this.type="root",!this.nodes)this.nodes=[]}normalize(e,t,i){let s=super.normalize(e);if(t){if(i==="prepend")if(this.nodes.length>1)t.raws.before=this.nodes[1].raws.before;else delete t.raws.before;else if(this.first!==t)for(let n of s)n.raws.before=t.raws.before}return s}removeChild(e,t){let i=this.index(e);if(!t&&i===0&&this.nodes.length>1)this.nodes[1].raws.before=this.nodes[i].raws.before;return super.removeChild(e)}toResult(e={}){return new ka(new La,this,e).stringify()}};nt.registerLazyResult=(r)=>{ka=r};nt.registerProcessor=(r)=>{La=r};var Lt=nt;nt.default=nt;_a.registerRoot(nt);var Tt={comma(r){return Tt.split(r,[","],!0)},space(r){let e=[" ",`
52
+ `,"\t"];return Tt.split(r,e)},split(r,e,t){let i=[],s="",n=!1,o=0,l=!1,a="",u=!1;for(let c of r){if(u)u=!1;else if(c==="\\")u=!0;else if(l){if(c===a)l=!1}else if(c==='"'||c==="'")l=!0,a=c;else if(c==="(")o+=1;else if(c===")"){if(o>0)o-=1}else if(o===0){if(e.includes(c))n=!0}if(n){if(s!=="")i.push(s.trim());s="",n=!1}else s+=c}if(t||s!=="")i.push(s.trim());return i}},Pa=Tt;Tt.default=Tt;var $a=ze,If=Pa,Dr=class extends $a{constructor(e){super(e);if(this.type="rule",!this.nodes)this.nodes=[]}get selectors(){return If.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,i=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}},Ms=Dr;Dr.default=Dr;$a.registerRule(Dr);var xf=Gr,Af=Ef,Mf=jr,Tf=As,Nf=Lt,oo=Ms,ao={empty:!0,space:!0};function Rf(r){for(let e=r.length-1;e>=0;e--){let t=r[e],i=t[3]||t[2];if(i)return i}}var Of=class{constructor(e){this.input=e,this.root=new Nf,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Tf;if(t.name=e[1].slice(1),t.name==="")this.unnamedAtrule(t,e);this.init(t,e[2]);let i,s,n,o=!1,l=!1,a=[],u=[];while(!this.tokenizer.endOfFile()){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="[")u.push(i==="("?")":"]");else if(i==="{"&&u.length>0)u.push("}");else if(i===u[u.length-1])u.pop();if(u.length===0)if(i===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){l=!0;break}else if(i==="}"){if(a.length>0){n=a.length-1,s=a[n];while(s&&s[0]==="space")s=a[--n];if(s)t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}if(t.raws.between=this.spacesAndCommentsFromEnd(a),a.length){if(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o)e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between=""}else t.raws.afterName="",t.params="";if(l)t.nodes=[],this.current=t}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let i=0,s;for(let n=t-1;n>=0;n--)if(s=e[n],s[0]!=="space"){if(i+=1,i===2)break}throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0,i,s,n;for(let[o,l]of e.entries()){if(i=l,s=i[0],s==="(")t+=1;if(s===")")t-=1;if(t===0&&s===":")if(!n)this.doubleColon(i);else if(n[0]==="word"&&n[1]==="progid")continue;else return o;n=i}return!1}comment(e){let t=new Mf;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))t.text="",t.raws.left=i,t.raws.right="";else{let s=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}}createTokenizer(){this.tokenizer=Af(this.input)}decl(e,t){let i=new xf;this.init(i,e[0][2]);let s=e[e.length-1];if(s[0]===";")this.semicolon=!0,e.pop();i.source.end=this.getPosition(s[3]||s[2]||Rf(e)),i.source.end.offset++;while(e[0][0]!=="word"){if(e.length===1)this.unknownWord(e);i.raws.before+=e.shift()[1]}i.source.start=this.getPosition(e[0][2]),i.prop="";while(e.length){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let n;while(e.length)if(n=e.shift(),n[0]===":"){i.raws.between+=n[1];break}else{if(n[0]==="word"&&/\w/.test(n[1]))this.unknownWord([n]);i.raws.between+=n[1]}if(i.prop[0]==="_"||i.prop[0]==="*")i.raws.before+=i.prop[0],i.prop=i.prop.slice(1);let o=[],l;while(e.length){if(l=e[0][0],l!=="space"&&l!=="comment")break;o.push(e.shift())}this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(n=e[u],n[1].toLowerCase()==="!important"){i.important=!0;let c=this.stringFrom(e,u);if(c=this.spacesFromEnd(e)+c,c!==" !important")i.raws.important=c;break}else if(n[1].toLowerCase()==="important"){let c=e.slice(0),f="";for(let p=u;p>0;p--){let d=c[p][0];if(f.trim().indexOf("!")===0&&d!=="space")break;f=c.pop()[1]+f}if(f.trim().indexOf("!")===0)i.important=!0,i.raws.important=f,e=c}if(n[0]!=="space"&&n[0]!=="comment")break}if(e.some((u)=>u[0]!=="space"&&u[0]!=="comment"))i.raws.between+=o.map((u)=>u[1]).join(""),o=[];if(this.raw(i,"value",o.concat(e),t),i.value.includes(":")&&!t)this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new oo;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){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(e[2]),this.current.source.end.offset++,this.current=this.current.parent;else this.unexpectedClose(e)}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(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];if(t&&t.type==="rule"&&!t.raws.ownSemicolon)t.raws.ownSemicolon=this.spaces,this.spaces=""}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){if(this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment")this.semicolon=!1}other(e){let t=!1,i=null,s=!1,n=null,o=[],l=e[1].startsWith("--"),a=[],u=e;while(u){if(i=u[0],a.push(u),i==="("||i==="["){if(!n)n=u;o.push(i==="("?")":"]")}else if(l&&s&&i==="{"){if(!n)n=u;o.push("}")}else if(o.length===0){if(i===";")if(s){this.decl(a,l);return}else break;else if(i==="{"){this.rule(a);return}else if(i==="}"){this.tokenizer.back(a.pop()),t=!0;break}else if(i===":")s=!0}else if(i===o[o.length-1]){if(o.pop(),o.length===0)n=null}u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())t=!0;if(o.length>0)this.unclosedBracket(n);if(t&&s){if(!l)while(a.length){if(u=a[a.length-1][0],u!=="space"&&u!=="comment")break;this.tokenizer.back(a.pop())}this.decl(a,l)}else this.unknownWord(a)}parse(){let e;while(!this.tokenizer.endOfFile())switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,i,s){let n,o,l=i.length,a="",u=!0,c,f;for(let p=0;p<l;p+=1)if(n=i[p],o=n[0],o==="space"&&p===l-1&&!s)u=!1;else if(o==="comment")if(f=i[p-1]?i[p-1][0]:"empty",c=i[p+1]?i[p+1][0]:"empty",!ao[f]&&!ao[c])if(a.slice(-1)===",")u=!1;else a+=n[1];else u=!1;else a+=n[1];if(!u){let p=i.reduce((d,g)=>d+g[1],"");e.raws[t]={raw:p,value:a}}e[t]=a}rule(e){e.pop();let t=new oo;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,i="";while(e.length){if(t=e[e.length-1][0],t!=="space"&&t!=="comment")break;i=e.pop()[1]+i}return i}spacesAndCommentsFromStart(e){let t,i="";while(e.length){if(t=e[0][0],t!=="space"&&t!=="comment")break;i+=e.shift()[1]}return i}spacesFromEnd(e){let t,i="";while(e.length){if(t=e[e.length-1][0],t!=="space")break;i=e.pop()[1]+i}return i}stringFrom(e,t){let i="";for(let s=t;s<e.length;s++)i+=e[s][1];return e.splice(t,e.length-t),i}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}},Df=Of,_f=ze,kf=Df,Lf=Hr;function _r(r,e){let t=new Lf(r,e),i=new kf(t);try{i.parse()}catch(s){if(s.name==="CssSyntaxError"&&e&&e.from){if(/\.scss$/i.test(e.from))s.message+=`
53
+ You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`;else if(/\.sass/i.test(e.from))s.message+=`
54
+ You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`;else if(/\.less$/i.test(e.from))s.message+=`
55
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`}throw s}return i.root}var Ts=_r;_r.default=_r;_f.registerParse(_r);var{isClean:Ie,my:Pf}=kt,$f=wa,Ff=zr,Uf=ze,Bf=Is,Wf=Ra,lo=xs,zf=Ts,Vf=Lt,Gf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Hf={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},jf={Once:!0,postcssPlugin:!0,prepare:!0},ot=0;function vt(r){return typeof r==="object"&&typeof r.then==="function"}function Fa(r){let e=!1,t=Gf[r.type];if(r.type==="decl")e=r.prop.toLowerCase();else if(r.type==="atrule")e=r.name.toLowerCase();if(e&&r.append)return[t,t+"-"+e,ot,t+"Exit",t+"Exit-"+e];else if(e)return[t,t+"-"+e,t+"Exit",t+"Exit-"+e];else if(r.append)return[t,ot,t+"Exit"];else return[t,t+"Exit"]}function uo(r){let e;if(r.type==="document")e=["Document",ot,"DocumentExit"];else if(r.type==="root")e=["Root",ot,"RootExit"];else e=Fa(r);return{eventIndex:0,events:e,iterator:0,node:r,visitorIndex:0,visitors:[]}}function qi(r){if(r[Ie]=!1,r.nodes)r.nodes.forEach((e)=>qi(e));return r}var Qi={},at=class r{constructor(e,t,i){this.stringified=!1,this.processed=!1;let s;if(typeof t==="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=qi(t);else if(t instanceof r||t instanceof lo){if(s=qi(t.root),t.map){if(typeof i.map>"u")i.map={};if(!i.map.inline)i.map.inline=!1;i.map.prev=t.map}}else{let n=zf;if(i.syntax)n=i.syntax.parse;if(i.parser)n=i.parser;if(n.parse)n=n.parse;try{s=n(t,i)}catch(o){this.processed=!0,this.error=o}if(s&&!s[Pf])Uf.rebuild(s)}this.result=new lo(e,s,i),this.helpers={...Qi,postcss:Qi,result:this.result},this.plugins=this.processor.plugins.map((n)=>{if(typeof n==="object"&&n.prepare)return{...n,...n.prepare(this.result)};else return n})}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(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let i=this.result.lastPlugin;try{if(t)t.addToError(e);if(this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=i.postcssPlugin,e.setMessage();else if(i.postcssVersion){let{postcssPlugin:s,postcssVersion:n}=i,o=this.result.processor.version,l=n.split("."),a=o.split(".");if(l[0]!==a[0]||parseInt(l[1])>parseInt(a[1]))console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+s+" uses "+n+". Perhaps this is the source of the error below.")}}catch(s){if(console&&console.error)console.error(s)}return e}prepareVisitors(){this.listeners={};let e=(t,i,s)=>{if(!this.listeners[i])this.listeners[i]=[];this.listeners[i].push([t,s])};for(let t of this.plugins)if(typeof t==="object")for(let i in t){if(!Hf[i]&&/^[A-Z]/.test(i))throw Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!jf[i]){if(typeof t[i]==="object")for(let s in t[i])if(s==="*")e(t,i,t[i][s]);else e(t,i+"-"+s.toLowerCase(),t[i][s]);else if(typeof t[i]==="function")e(t,i,t[i])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],i=this.runOnRoot(t);if(vt(i))try{await i}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;while(!e[Ie]){e[Ie]=!0;let t=[uo(e)];while(t.length>0){let i=this.visitTick(t);if(vt(i))try{await i}catch(s){let n=t[t.length-1].node;throw this.handleError(s,n)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let s=e.nodes.map((n)=>i(n,this.helpers));await Promise.all(s)}else await i(e,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e==="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map((i)=>e.Once(i,this.helpers));if(vt(t[0]))return Promise.all(t);return t}return e.Once(this.result.root,this.helpers)}else if(typeof e==="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Ff;if(e.syntax)t=e.syntax.stringify;if(e.stringifier)t=e.stringifier;if(t.stringify)t=t.stringify;let s=new $f(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[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 e of this.plugins){let t=this.runOnRoot(e);if(vt(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;while(!e[Ie])e[Ie]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){if(!("from"in this.opts))Wf("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(e,t)}toString(){return this.css}visitSync(e,t){for(let[i,s]of e){this.result.lastPlugin=i;let n;try{n=s(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(vt(n))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:s}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[o,l]=s[t.visitorIndex];if(t.visitorIndex+=1,t.visitorIndex===s.length)t.visitors=[],t.visitorIndex=0;this.result.lastPlugin=o;try{return l(i.toProxy(),this.helpers)}catch(a){throw this.handleError(a,i)}}if(t.iterator!==0){let o=t.iterator,l;while(l=i.nodes[i.indexes[o]])if(i.indexes[o]+=1,!l[Ie]){l[Ie]=!0,e.push(uo(l));return}t.iterator=0,delete i.indexes[o]}let n=t.events;while(t.eventIndex<n.length){let o=n[t.eventIndex];if(t.eventIndex+=1,o===ot){if(i.nodes&&i.nodes.length)i[Ie]=!0,t.iterator=i.getIterator();return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[Ie]=!0;let t=Fa(e);for(let i of t)if(i===ot){if(e.nodes)e.each((s)=>{if(!s[Ie])this.walkSync(s)})}else{let s=this.listeners[i];if(s){if(this.visitSync(s,e.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"}};at.registerPostcss=(r)=>{Qi=r};var Ua=at;at.default=at;Vf.registerLazyResult(at);Bf.registerLazyResult(at);var Yf=wa,Zf=zr,Xf=Ra,Kf=Ts,Jf=xs,es=class{constructor(e,t,i){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=i,this._map=void 0;let s,n=Zf;this.result=new Jf(this._processor,s,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new Yf(n,s,this._opts,t);if(l.isMap()){let[a,u]=l.generate();if(a)this.result.css=a;if(u)this.result.map=u}else l.clearAnnotation(),this.result.css=l.css}async(){if(this.error)return Promise.reject(this.error);return Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){if(!("from"in this._opts))Xf("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(e,t)}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 e,t=Kf;try{e=t(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;else return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}},qf=es;es.default=es;var Qf=qf,ed=Ua,td=Is,rd=Lt,Nt=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let i of e){if(i.postcss===!0)i=i();else if(i.postcss)i=i.postcss;if(typeof i==="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if(typeof i==="object"&&i.postcssPlugin)t.push(i);else if(typeof i==="function")t.push(i);else if(typeof i==="object"&&(i.parse||i.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(i+" is not a PostCSS plugin")}return t}process(e,t={}){if(!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax)return new Qf(this,e,t);else return new ed(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}},id=Nt;Nt.default=Nt;rd.registerProcessor(Nt);td.registerProcessor(Nt);var sd=Gr,nd=pa,od=jr,ad=As,ld=Hr,ud=Lt,cd=Ms;function Rt(r,e){if(Array.isArray(r))return r.map((s)=>Rt(s));let{inputs:t,...i}=r;if(t){e=[];for(let s of t){let n={...s,__proto__:ld.prototype};if(n.map)n.map={...n.map,__proto__:nd.prototype};e.push(n)}}if(i.nodes)i.nodes=r.nodes.map((s)=>Rt(s,e));if(i.source){let{inputId:s,...n}=i.source;if(i.source=n,s!=null)i.source.input=e[s]}if(i.type==="root")return new ud(i);else if(i.type==="decl")return new sd(i);else if(i.type==="rule")return new cd(i);else if(i.type==="comment")return new od(i);else if(i.type==="atrule")return new ad(i);else throw Error("Unknown node type: "+r.type)}var hd=Rt;Rt.default=Rt;var fd=Ss,Ba=Gr,dd=Ua,pd=ze,Ns=id,md=zr,gd=hd,Wa=Is,yd=Oa,za=jr,Va=As,vd=xs,wd=Hr,bd=Ts,Sd=Pa,Ga=Ms,Ha=Lt,Cd=Vr;function U(...r){if(r.length===1&&Array.isArray(r[0]))r=r[0];return new Ns(r)}U.plugin=function(e,t){let i=!1;function s(...o){if(console&&console.warn&&!i){if(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
56
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn"))console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
57
+ https://www.w3ctech.com/topic/2226`)}let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new Ns().version,l}let n;return Object.defineProperty(s,"postcss",{get(){if(!n)n=s();return n}}),s.process=function(o,l,a){return U([s(a)]).process(o,l)},s};U.stringify=md;U.parse=bd;U.fromJSON=gd;U.list=Sd;U.comment=(r)=>new za(r);U.atRule=(r)=>new Va(r);U.decl=(r)=>new Ba(r);U.rule=(r)=>new Ga(r);U.root=(r)=>new Ha(r);U.document=(r)=>new Wa(r);U.CssSyntaxError=fd;U.Declaration=Ba;U.Container=pd;U.Processor=Ns;U.Document=Wa;U.Comment=za;U.Warning=yd;U.AtRule=Va;U.Result=vd;U.Input=wd;U.Rule=Ga;U.Root=Ha;U.Node=Cd;dd.registerPostcss(U);var Ed=U;U.default=U;var Y=Dh(Ed);Y.stringify;Y.fromJSON;Y.plugin;Y.parse;Y.list;Y.document;Y.comment;Y.atRule;Y.rule;Y.decl;Y.root;Y.CssSyntaxError;Y.Declaration;Y.Container;Y.Processor;Y.Document;Y.Comment;Y.Warning;Y.AtRule;Y.Result;Y.Input;Y.Rule;Y.Root;Y.Node;class Rs{constructor(...r){de(this,"parentElement",null),de(this,"parentNode",null),de(this,"ownerDocument"),de(this,"firstChild",null),de(this,"lastChild",null),de(this,"previousSibling",null),de(this,"nextSibling",null),de(this,"ELEMENT_NODE",1),de(this,"TEXT_NODE",3),de(this,"nodeType"),de(this,"nodeName"),de(this,"RRNodeType")}get childNodes(){let r=[],e=this.firstChild;while(e)r.push(e),e=e.nextSibling;return r}contains(r){if(!(r instanceof Rs))return!1;else if(r.ownerDocument!==this.ownerDocument)return!1;else if(r===this)return!0;while(r.parentNode){if(r.parentNode===this)return!0;r=r.parentNode}return!1}appendChild(r){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(r,e){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(r){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}var co={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ho={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},mr={},Id=()=>!!globalThis.Zone;function Os(r){if(mr[r])return mr[r];let e=globalThis[r],t=e.prototype,i=r in co?co[r]:void 0,s=Boolean(i&&i.every((l)=>{var a,u;return Boolean((u=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)==null?void 0:u.toString().includes("[native code]"))})),n=r in ho?ho[r]:void 0,o=Boolean(n&&n.every((l)=>{var a;return typeof t[l]==="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(s&&o&&!Id())return mr[r]=e.prototype,e.prototype;try{let l=document.createElement("iframe");document.body.appendChild(l);let a=l.contentWindow;if(!a)return e.prototype;let u=a[r].prototype;if(document.body.removeChild(l),!u)return t;return mr[r]=u}catch{return t}}var bi={};function Le(r,e,t){var i;let s=`${r}.${String(t)}`;if(bi[s])return bi[s].call(e);let n=Os(r),o=(i=Object.getOwnPropertyDescriptor(n,t))==null?void 0:i.get;if(!o)return e[t];return bi[s]=o,o.call(e)}var Si={};function ja(r,e,t){let i=`${r}.${String(t)}`;if(Si[i])return Si[i].bind(e);let n=Os(r)[t];if(typeof n!=="function")return e[t];return Si[i]=n,n.bind(e)}function xd(r){return Le("Node",r,"childNodes")}function Ad(r){return Le("Node",r,"parentNode")}function Md(r){return Le("Node",r,"parentElement")}function Td(r){return Le("Node",r,"textContent")}function Nd(r,e){return ja("Node",r,"contains")(e)}function Rd(r){return ja("Node",r,"getRootNode")()}function Od(r){if(!r||!("host"in r))return null;return Le("ShadowRoot",r,"host")}function Dd(r){return r.styleSheets}function _d(r){if(!r||!("shadowRoot"in r))return null;return Le("Element",r,"shadowRoot")}function kd(r,e){return Le("Element",r,"querySelector")(e)}function Ld(r,e){return Le("Element",r,"querySelectorAll")(e)}function Ya(){return Os("MutationObserver").constructor}var T={childNodes:xd,parentNode:Ad,parentElement:Md,textContent:Td,contains:Nd,getRootNode:Rd,host:Od,styleSheets:Dd,shadowRoot:_d,querySelector:kd,querySelectorAll:Ld,mutationObserver:Ya};function se(r,e,t=document){let i={capture:!0,passive:!0};return t.addEventListener(r,e,i),()=>t.removeEventListener(r,e,i)}var Ke=`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.`,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;/*! *****************************************************************************
59
+ or you can use record.mirror to access the mirror instance during recording.`,fo={map:{},getId(){return console.error(Ke),-1},getNode(){return console.error(Ke),null},removeNodeFromMap(){console.error(Ke)},has(){return console.error(Ke),!1},reset(){console.error(Ke)}};if(typeof window<"u"&&window.Proxy&&window.Reflect)fo=new Proxy(fo,{get(r,e,t){if(e==="map")console.error(Ke);return Reflect.get(r,e,t)}});function Ot(r,e,t={}){let i=null,s=0;return function(...n){let o=Date.now();if(!s&&t.leading===!1)s=o;let l=e-(o-s),a=this;if(l<=0||l>e){if(i)clearTimeout(i),i=null;s=o,r.apply(a,n)}else if(!i&&t.trailing!==!1)i=setTimeout(()=>{s=t.leading===!1?0:Date.now(),i=null,r.apply(a,n)},l)}}function Yr(r,e,t,i,s=window){let n=s.Object.getOwnPropertyDescriptor(r,e);return s.Object.defineProperty(r,e,i?t:{set(o){if(setTimeout(()=>{t.set.call(this,o)},0),n&&n.set)n.set.call(this,o)}}),()=>Yr(r,e,n||{},!0)}function ut(r,e,t){try{if(!(e in r))return()=>{};let i=r[e],s=t(i);if(typeof s==="function")s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:i}});return r[e]=s,()=>{r[e]=i}}catch{return()=>{}}}var kr=Date.now;if(!/[1-9][0-9]{12}/.test(Date.now().toString()))kr=()=>new Date().getTime();function Za(r){var e,t,i,s;let n=r.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:r.pageXOffset!==void 0?r.pageXOffset:n.documentElement.scrollLeft||(n==null?void 0:n.body)&&((e=T.parentElement(n.body))==null?void 0:e.scrollLeft)||((t=n==null?void 0:n.body)==null?void 0:t.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:r.pageYOffset!==void 0?r.pageYOffset:(n==null?void 0:n.documentElement.scrollTop)||(n==null?void 0:n.body)&&((i=T.parentElement(n.body))==null?void 0:i.scrollTop)||((s=n==null?void 0:n.body)==null?void 0:s.scrollTop)||0}}function Xa(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ka(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ja(r){if(!r)return null;return r.nodeType===r.ELEMENT_NODE?r:T.parentElement(r)}function ne(r,e,t,i){if(!r)return!1;let s=Ja(r);if(!s)return!1;try{if(typeof e==="string"){if(s.classList.contains(e))return!0;if(i&&s.closest("."+e)!==null)return!0}else if(xr(s,e,i))return!0}catch(n){}if(t){if(s.matches(t))return!0;if(i&&s.closest(t)!==null)return!0}return!1}function Pd(r,e){return e.getId(r)!==-1}function Ci(r,e,t){if(r.tagName==="TITLE"&&t.headTitleMutations)return!0;return e.getId(r)===Ct}function qa(r,e){if(wt(r))return!1;let t=e.getId(r);if(!e.has(t))return!0;let i=T.parentNode(r);if(i&&i.nodeType===r.DOCUMENT_NODE)return!1;if(!i)return!0;return qa(i,e)}function ts(r){return Boolean(r.changedTouches)}function $d(r=window){if("NodeList"in r&&!r.NodeList.prototype.forEach)r.NodeList.prototype.forEach=Array.prototype.forEach;if("DOMTokenList"in r&&!r.DOMTokenList.prototype.forEach)r.DOMTokenList.prototype.forEach=Array.prototype.forEach}function Qa(r,e){return Boolean(r.nodeName==="IFRAME"&&e.getMeta(r))}function el(r,e){return Boolean(r.nodeName==="LINK"&&r.nodeType===r.ELEMENT_NODE&&r.getAttribute&&r.getAttribute("rel")==="stylesheet"&&e.getMeta(r))}function rs(r){if(!r)return!1;if(r instanceof Rs&&"shadowRoot"in r)return Boolean(r.shadowRoot);return Boolean(T.shadowRoot(r))}class tl{constructor(){v(this,"id",1),v(this,"styleIDMap",new WeakMap),v(this,"idStyleMap",new Map)}getId(r){return this.styleIDMap.get(r)??-1}has(r){return this.styleIDMap.has(r)}add(r,e){if(this.has(r))return this.getId(r);let t;if(e===void 0)t=this.id++;else t=e;return this.styleIDMap.set(r,t),this.idStyleMap.set(t,r),t}getStyle(r){return this.idStyleMap.get(r)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function rl(r){var e;let t=null;if("getRootNode"in r&&((e=T.getRootNode(r))==null?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&T.host(T.getRootNode(r)))t=T.host(T.getRootNode(r));return t}function Fd(r){let e=r,t;while(t=rl(e))e=t;return e}function Ud(r){let e=r.ownerDocument;if(!e)return!1;let t=Fd(r);return T.contains(e,t)}function il(r){let e=r.ownerDocument;if(!e)return!1;return T.contains(e,r)||Ud(r)}var D=((r)=>(r[r.DomContentLoaded=0]="DomContentLoaded",r[r.Load=1]="Load",r[r.FullSnapshot=2]="FullSnapshot",r[r.IncrementalSnapshot=3]="IncrementalSnapshot",r[r.Meta=4]="Meta",r[r.Custom=5]="Custom",r[r.Plugin=6]="Plugin",r))(D||{}),N=((r)=>(r[r.Mutation=0]="Mutation",r[r.MouseMove=1]="MouseMove",r[r.MouseInteraction=2]="MouseInteraction",r[r.Scroll=3]="Scroll",r[r.ViewportResize=4]="ViewportResize",r[r.Input=5]="Input",r[r.TouchMove=6]="TouchMove",r[r.MediaInteraction=7]="MediaInteraction",r[r.StyleSheetRule=8]="StyleSheetRule",r[r.CanvasMutation=9]="CanvasMutation",r[r.Font=10]="Font",r[r.Log=11]="Log",r[r.Drag=12]="Drag",r[r.StyleDeclaration=13]="StyleDeclaration",r[r.Selection=14]="Selection",r[r.AdoptedStyleSheet=15]="AdoptedStyleSheet",r[r.CustomElement=16]="CustomElement",r))(N||{}),ue=((r)=>(r[r.MouseUp=0]="MouseUp",r[r.MouseDown=1]="MouseDown",r[r.Click=2]="Click",r[r.ContextMenu=3]="ContextMenu",r[r.DblClick=4]="DblClick",r[r.Focus=5]="Focus",r[r.Blur=6]="Blur",r[r.TouchStart=7]="TouchStart",r[r.TouchMove_Departed=8]="TouchMove_Departed",r[r.TouchEnd=9]="TouchEnd",r[r.TouchCancel=10]="TouchCancel",r))(ue||{}),Ae=((r)=>(r[r.Mouse=0]="Mouse",r[r.Pen=1]="Pen",r[r.Touch=2]="Touch",r))(Ae||{}),lt=((r)=>(r[r["2D"]=0]="2D",r[r.WebGL=1]="WebGL",r[r.WebGL2=2]="WebGL2",r))(lt||{}),Je=((r)=>(r[r.Play=0]="Play",r[r.Pause=1]="Pause",r[r.Seeked=2]="Seeked",r[r.VolumeChange=3]="VolumeChange",r[r.RateChange=4]="RateChange",r))(Je||{});var sl=((r)=>(r[r.Document=0]="Document",r[r.DocumentType=1]="DocumentType",r[r.Element=2]="Element",r[r.Text=3]="Text",r[r.CDATA=4]="CDATA",r[r.Comment=5]="Comment",r))(sl||{});function po(r){return"__ln"in r}class nl{constructor(){v(this,"length",0),v(this,"head",null),v(this,"tail",null)}get(r){if(r>=this.length)throw Error("Position outside of list range");let e=this.head;for(let t=0;t<r;t++)e=(e==null?void 0:e.next)||null;return e}addNode(r){let e={value:r,previous:null,next:null};if(r.__ln=e,r.previousSibling&&po(r.previousSibling)){let t=r.previousSibling.__ln.next;if(e.next=t,e.previous=r.previousSibling.__ln,r.previousSibling.__ln.next=e,t)t.previous=e}else if(r.nextSibling&&po(r.nextSibling)&&r.nextSibling.__ln.previous){let t=r.nextSibling.__ln.previous;if(e.previous=t,e.next=r.nextSibling.__ln,r.nextSibling.__ln.previous=e,t)t.next=e}else{if(this.head)this.head.previous=e;e.next=this.head,this.head=e}if(e.next===null)this.tail=e;this.length++}removeNode(r){let e=r.__ln;if(!this.head)return;if(!e.previous)if(this.head=e.next,this.head)this.head.previous=null;else this.tail=null;else if(e.previous.next=e.next,e.next)e.next.previous=e.previous;else this.tail=e.previous;if(r.__ln)delete r.__ln;this.length--}}var mo=(r,e)=>`${r}@${e}`;class ol{constructor(){v(this,"frozen",!1),v(this,"locked",!1),v(this,"texts",[]),v(this,"attributes",[]),v(this,"attributeMap",new WeakMap),v(this,"removes",[]),v(this,"mapRemoves",[]),v(this,"movedMap",{}),v(this,"addedSet",new Set),v(this,"movedSet",new Set),v(this,"droppedSet",new Set),v(this,"removesSubTreeCache",new Set),v(this,"mutationCb"),v(this,"blockClass"),v(this,"blockSelector"),v(this,"maskTextClass"),v(this,"maskTextSelector"),v(this,"inlineStylesheet"),v(this,"maskInputOptions"),v(this,"maskTextFn"),v(this,"maskInputFn"),v(this,"keepIframeSrcFn"),v(this,"recordCanvas"),v(this,"inlineImages"),v(this,"slimDOMOptions"),v(this,"dataURLOptions"),v(this,"doc"),v(this,"mirror"),v(this,"iframeManager"),v(this,"stylesheetManager"),v(this,"shadowDomManager"),v(this,"canvasManager"),v(this,"processedNodeManager"),v(this,"unattachedDoc"),v(this,"processMutations",(r)=>{r.forEach(this.processMutation),this.emit()}),v(this,"emit",()=>{if(this.frozen||this.locked)return;let r=[],e=new Set,t=new nl,i=(l)=>{let a=l,u=Ct;while(u===Ct)a=a&&a.nextSibling,u=a&&this.mirror.getId(a);return u},s=(l)=>{let a=T.parentNode(l);if(!a||!il(l))return;let u=!1;if(l.nodeType===Node.TEXT_NODE){let d=a.tagName;if(d==="TEXTAREA")return;else if(d==="STYLE"&&this.addedSet.has(a))u=!0}let c=wt(a)?this.mirror.getId(rl(l)):this.mirror.getId(a),f=i(l);if(c===-1||f===-1)return t.addNode(l);let p=et(l,{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:(d)=>{if(Qa(d,this.mirror))this.iframeManager.addIframe(d);if(el(d,this.mirror))this.stylesheetManager.trackLinkElement(d);if(rs(l))this.shadowDomManager.addShadowRoot(T.shadowRoot(l),this.doc)},onIframeLoad:(d,g)=>{this.iframeManager.attachIframe(d,g),this.shadowDomManager.observeAttachShadow(d)},onStylesheetLoad:(d,g)=>{this.stylesheetManager.attachLinkElement(d,g)},cssCaptured:u});if(p)r.push({parentId:c,nextId:f,node:p}),e.add(p.id)};while(this.mapRemoves.length)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let l of this.movedSet){if(go(this.removesSubTreeCache,l,this.mirror)&&!this.movedSet.has(T.parentNode(l)))continue;s(l)}for(let l of this.addedSet)if(!yo(this.droppedSet,l)&&!go(this.removesSubTreeCache,l,this.mirror))s(l);else if(yo(this.movedSet,l))s(l);else this.droppedSet.add(l);let n=null;while(t.length){let l=null;if(n){let a=this.mirror.getId(T.parentNode(n.value)),u=i(n.value);if(a!==-1&&u!==-1)l=n}if(!l){let a=t.tail;while(a){let u=a;if(a=a.previous,u){let c=this.mirror.getId(T.parentNode(u.value));if(i(u.value)===-1)continue;else if(c!==-1){l=u;break}else{let p=u.value,d=T.parentNode(p);if(d&&d.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let g=T.host(d);if(this.mirror.getId(g)!==-1){l=u;break}}}}}}if(!l){while(t.head)t.removeNode(t.head.value);break}n=l.previous,t.removeNode(l.value),s(l.value)}let o={texts:this.texts.map((l)=>{let a=l.node,u=T.parentNode(a);if(u&&u.tagName==="TEXTAREA")this.genTextAreaValueMutation(u);return{id:this.mirror.getId(a),value:l.value}}).filter((l)=>!e.has(l.id)).filter((l)=>this.mirror.has(l.id)),attributes:this.attributes.map((l)=>{let{attributes:a}=l;if(typeof a.style==="string"){let u=JSON.stringify(l.styleDiff),c=JSON.stringify(l._unchangedStyles);if(u.length<a.style.length){if((u+c).split("var(").length===a.style.split("var(").length)a.style=l.styleDiff}}return{id:this.mirror.getId(l.node),attributes:a}}).filter((l)=>!e.has(l.id)).filter((l)=>this.mirror.has(l.id)),removes:this.removes,adds:r};if(!o.texts.length&&!o.attributes.length&&!o.removes.length&&!o.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(o)}),v(this,"genTextAreaValueMutation",(r)=>{let e=this.attributeMap.get(r);if(!e)e={node:r,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(e),this.attributeMap.set(r,e);e.attributes.value=Array.from(T.childNodes(r),(t)=>T.textContent(t)||"").join("")}),v(this,"processMutation",(r)=>{if(Ci(r.target,this.mirror,this.slimDOMOptions))return;switch(r.type){case"characterData":{let e=T.textContent(r.target);if(!ne(r.target,this.blockClass,this.blockSelector,!1)&&e!==r.oldValue)this.texts.push({value:Oo(r.target,this.maskTextClass,this.maskTextSelector,!0)&&e?this.maskTextFn?this.maskTextFn(e,Ja(r.target)):e.replace(/[\S]/g,"*"):e,node:r.target});break}case"attributes":{let{target:e,attributeName:t}=r,i=r.target.getAttribute(t);if(t==="value"){let n=ls(e);i=as({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:n,value:i,maskInputFn:this.maskInputFn})}if(ne(r.target,this.blockClass,this.blockSelector,!1)||i===r.oldValue)return;let s=this.attributeMap.get(r.target);if(e.tagName==="IFRAME"&&t==="src"&&!this.keepIframeSrcFn(i))if(!e.contentDocument)t="rr_src";else return;if(!s)s={node:r.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(r.target,s);if(t==="type"&&e.tagName==="INPUT"&&(r.oldValue||"").toLowerCase()==="password")e.setAttribute("data-rr-is-password","true");if(!Ro(e.tagName,t)){if(s.attributes[t]=No(this.doc,Be(e.tagName),Be(t),i),t==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(o){this.unattachedDoc=this.doc}let n=this.unattachedDoc.createElement("span");if(r.oldValue)n.setAttribute("style",r.oldValue);for(let o of Array.from(e.style)){let l=e.style.getPropertyValue(o),a=e.style.getPropertyPriority(o);if(l!==n.style.getPropertyValue(o)||a!==n.style.getPropertyPriority(o))if(a==="")s.styleDiff[o]=l;else s.styleDiff[o]=[l,a];else s._unchangedStyles[o]=[l,a]}for(let o of Array.from(n.style))if(e.style.getPropertyValue(o)==="")s.styleDiff[o]=!1}else if(t==="open"&&e.tagName==="DIALOG")if(e.matches("dialog:modal"))s.attributes.rr_open_mode="modal";else s.attributes.rr_open_mode="non-modal"}break}case"childList":{if(ne(r.target,this.blockClass,this.blockSelector,!0))return;if(r.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(r.target);return}r.addedNodes.forEach((e)=>this.genAdds(e,r.target)),r.removedNodes.forEach((e)=>{let t=this.mirror.getId(e),i=wt(r.target)?this.mirror.getId(T.host(r.target)):this.mirror.getId(r.target);if(ne(r.target,this.blockClass,this.blockSelector,!1)||Ci(e,this.mirror,this.slimDOMOptions)||!Pd(e,this.mirror))return;if(this.addedSet.has(e))is(this.addedSet,e),this.droppedSet.add(e);else if(this.addedSet.has(r.target)&&t===-1);else if(qa(r.target,this.mirror));else if(this.movedSet.has(e)&&this.movedMap[mo(t,i)])is(this.movedSet,e);else this.removes.push({parentId:i,id:t,isShadow:wt(r.target)&&bt(r.target)?!0:void 0}),Bd(e,this.removesSubTreeCache);this.mapRemoves.push(e)});break}}}),v(this,"genAdds",(r,e)=>{if(this.processedNodeManager.inOtherBuffer(r,this))return;if(this.addedSet.has(r)||this.movedSet.has(r))return;if(this.mirror.hasNode(r)){if(Ci(r,this.mirror,this.slimDOMOptions))return;this.movedSet.add(r);let t=null;if(e&&this.mirror.hasNode(e))t=this.mirror.getId(e);if(t&&t!==-1)this.movedMap[mo(this.mirror.getId(r),t)]=!0}else this.addedSet.add(r),this.droppedSet.delete(r);if(!ne(r,this.blockClass,this.blockSelector,!1)){if(T.childNodes(r).forEach((t)=>this.genAdds(t)),rs(r))T.childNodes(T.shadowRoot(r)).forEach((t)=>{this.processedNodeManager.add(t,this),this.genAdds(t,r)})}})}init(r){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((e)=>{this[e]=r[e]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function is(r,e){r.delete(e),T.childNodes(e).forEach((t)=>is(r,t))}function Bd(r,e){let t=[r];while(t.length){let i=t.pop();if(e.has(i))continue;e.add(i),T.childNodes(i).forEach((s)=>t.push(s))}return}function go(r,e,t){if(r.size===0)return!1;return Wd(r,e)}function Wd(r,e,t){let i=T.parentNode(e);if(!i)return!1;return r.has(i)}function yo(r,e){if(r.size===0)return!1;return al(r,e)}function al(r,e){let t=T.parentNode(e);if(!t)return!1;if(r.has(t))return!0;return al(r,t)}var St;function zd(r){St=r}function Vd(){St=void 0}var R=(r)=>{if(!St)return r;return(...t)=>{try{return r(...t)}catch(i){if(St&&St(i)===!0)return;throw i}}},Ue=[];function Pt(r){try{if("composedPath"in r){let e=r.composedPath();if(e.length)return e[0]}else if("path"in r&&r.path.length)return r.path[0]}catch{}return r&&r.target}function ll(r,e){let t=new ol;Ue.push(t),t.init(r);let i=new(Ya())(R(t.processMutations.bind(t)));return i.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function Gd({mousemoveCb:r,sampling:e,doc:t,mirror:i}){if(e.mousemove===!1)return()=>{};let s=typeof e.mousemove==="number"?e.mousemove:50,n=typeof e.mousemoveCallback==="number"?e.mousemoveCallback:500,o=[],l,a=Ot(R((f)=>{let p=Date.now()-l;r(o.map((d)=>(d.timeOffset-=p,d)),f),o=[],l=null}),n),u=R(Ot(R((f)=>{let p=Pt(f),{clientX:d,clientY:g}=ts(f)?f.changedTouches[0]:f;if(!l)l=kr();o.push({x:d,y:g,id:i.getId(p),timeOffset:kr()-l}),a(typeof DragEvent<"u"&&f instanceof DragEvent?N.Drag:f instanceof MouseEvent?N.MouseMove:N.TouchMove)}),s,{trailing:!1})),c=[se("mousemove",u,t),se("touchmove",u,t),se("drag",u,t)];return R(()=>{c.forEach((f)=>f())})}function Hd({mouseInteractionCb:r,doc:e,mirror:t,blockClass:i,blockSelector:s,sampling:n}){if(n.mouseInteraction===!1)return()=>{};let o=n.mouseInteraction===!0||n.mouseInteraction===void 0?{}:n.mouseInteraction,l=[],a=null,u=(c)=>(f)=>{let p=Pt(f);if(ne(p,i,s,!0))return;let d=null,g=c;if("pointerType"in f){switch(f.pointerType){case"mouse":d=Ae.Mouse;break;case"touch":d=Ae.Touch;break;case"pen":d=Ae.Pen;break}if(d===Ae.Touch){if(ue[c]===ue.MouseDown)g="TouchStart";else if(ue[c]===ue.MouseUp)g="TouchEnd"}else if(d===Ae.Pen);}else if(ts(f))d=Ae.Touch;if(d!==null){if(a=d,g.startsWith("Touch")&&d===Ae.Touch||g.startsWith("Mouse")&&d===Ae.Mouse)d=null}else if(ue[c]===ue.Click)d=a,a=null;let m=ts(f)?f.changedTouches[0]:f;if(!m)return;let h=t.getId(p),{clientX:b,clientY:w}=m;R(r)({type:ue[g],id:h,x:b,y:w,...d!==null&&{pointerType:d}})};return Object.keys(ue).filter((c)=>Number.isNaN(Number(c))&&!c.endsWith("_Departed")&&o[c]!==!1).forEach((c)=>{let f=Be(c),p=u(c);if(window.PointerEvent)switch(ue[c]){case ue.MouseDown:case ue.MouseUp:f=f.replace("mouse","pointer");break;case ue.TouchStart:case ue.TouchEnd:return}l.push(se(f,p,e))}),R(()=>{l.forEach((c)=>c())})}function ul({scrollCb:r,doc:e,mirror:t,blockClass:i,blockSelector:s,sampling:n}){let o=R(Ot(R((l)=>{let a=Pt(l);if(!a||ne(a,i,s,!0))return;let u=t.getId(a);if(a===e&&e.defaultView){let c=Za(e.defaultView);r({id:u,x:c.left,y:c.top})}else r({id:u,x:a.scrollLeft,y:a.scrollTop})}),n.scroll||100));return se("scroll",o,e)}function jd({viewportResizeCb:r},{win:e}){let t=-1,i=-1,s=R(Ot(R(()=>{let n=Xa(),o=Ka();if(t!==n||i!==o)r({width:Number(o),height:Number(n)}),t=n,i=o}),200));return se("resize",s,e)}var Yd=["INPUT","TEXTAREA","SELECT"],vo=new WeakMap;function Zd({inputCb:r,doc:e,mirror:t,blockClass:i,blockSelector:s,ignoreClass:n,ignoreSelector:o,maskInputOptions:l,maskInputFn:a,sampling:u,userTriggeredOnInput:c}){function f(w){let y=Pt(w),C=w.isTrusted,I=y&&y.tagName;if(y&&I==="OPTION")y=T.parentElement(y);if(!y||!I||Yd.indexOf(I)<0||ne(y,i,s,!0))return;if(y.classList.contains(n)||o&&y.matches(o))return;let E=y.value,x=!1,S=ls(y)||"";if(S==="radio"||S==="checkbox")x=y.checked;else if(l[I.toLowerCase()]||l[S])E=as({element:y,maskInputOptions:l,tagName:I,type:S,value:E,maskInputFn:a});p(y,c?{text:E,isChecked:x,userTriggered:C}:{text:E,isChecked:x});let _=y.name;if(S==="radio"&&_&&x)e.querySelectorAll(`input[type="radio"][name="${_}"]`).forEach((k)=>{if(k!==y){let Q=k.value;p(k,c?{text:Q,isChecked:!x,userTriggered:!1}:{text:Q,isChecked:!x})}})}function p(w,y){let C=vo.get(w);if(!C||C.text!==y.text||C.isChecked!==y.isChecked){vo.set(w,y);let I=t.getId(w);R(r)({...y,id:I})}}let g=(u.input==="last"?["change"]:["input","change"]).map((w)=>se(w,R(f),e)),m=e.defaultView;if(!m)return()=>{g.forEach((w)=>w())};let h=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),b=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];if(h&&h.set)g.push(...b.map((w)=>Yr(w[0],w[1],{set(){R(f)({target:this,isTrusted:!1})}},!1,m)));return R(()=>{g.forEach((w)=>w())})}function Lr(r){let e=[];function t(i,s){if(gr("CSSGroupingRule")&&i.parentRule instanceof CSSGroupingRule||gr("CSSMediaRule")&&i.parentRule instanceof CSSMediaRule||gr("CSSSupportsRule")&&i.parentRule instanceof CSSSupportsRule||gr("CSSConditionRule")&&i.parentRule instanceof CSSConditionRule){let o=Array.from(i.parentRule.cssRules).indexOf(i);s.unshift(o)}else if(i.parentStyleSheet){let o=Array.from(i.parentStyleSheet.cssRules).indexOf(i);s.unshift(o)}return s}return t(r,e)}function _e(r,e,t){let i,s;if(!r)return{};if(r.ownerNode)i=e.getId(r.ownerNode);else s=t.getId(r);return{styleId:s,id:i}}function Xd({styleSheetRuleCb:r,mirror:e,stylesheetManager:t},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};let s=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:R((c,f,p)=>{let[d,g]=p,{id:m,styleId:h}=_e(f,e,t.styleMirror);if(m&&m!==-1||h&&h!==-1)r({id:m,styleId:h,adds:[{rule:d,index:g}]});return c.apply(f,p)})}),i.CSSStyleSheet.prototype.addRule=function(c,f,p=this.cssRules.length){let d=`${c} { ${f} }`;return i.CSSStyleSheet.prototype.insertRule.apply(this,[d,p])};let n=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(n,{apply:R((c,f,p)=>{let[d]=p,{id:g,styleId:m}=_e(f,e,t.styleMirror);if(g&&g!==-1||m&&m!==-1)r({id:g,styleId:m,removes:[{index:d}]});return c.apply(f,p)})}),i.CSSStyleSheet.prototype.removeRule=function(c){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[c])};let o;if(i.CSSStyleSheet.prototype.replace)o=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:R((c,f,p)=>{let[d]=p,{id:g,styleId:m}=_e(f,e,t.styleMirror);if(g&&g!==-1||m&&m!==-1)r({id:g,styleId:m,replace:d});return c.apply(f,p)})});let l;if(i.CSSStyleSheet.prototype.replaceSync)l=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:R((c,f,p)=>{let[d]=p,{id:g,styleId:m}=_e(f,e,t.styleMirror);if(g&&g!==-1||m&&m!==-1)r({id:g,styleId:m,replaceSync:d});return c.apply(f,p)})});let a={};if(yr("CSSGroupingRule"))a.CSSGroupingRule=i.CSSGroupingRule;else{if(yr("CSSMediaRule"))a.CSSMediaRule=i.CSSMediaRule;if(yr("CSSConditionRule"))a.CSSConditionRule=i.CSSConditionRule;if(yr("CSSSupportsRule"))a.CSSSupportsRule=i.CSSSupportsRule}let u={};return Object.entries(a).forEach(([c,f])=>{u[c]={insertRule:f.prototype.insertRule,deleteRule:f.prototype.deleteRule},f.prototype.insertRule=new Proxy(u[c].insertRule,{apply:R((p,d,g)=>{let[m,h]=g,{id:b,styleId:w}=_e(d.parentStyleSheet,e,t.styleMirror);if(b&&b!==-1||w&&w!==-1)r({id:b,styleId:w,adds:[{rule:m,index:[...Lr(d),h||0]}]});return p.apply(d,g)})}),f.prototype.deleteRule=new Proxy(u[c].deleteRule,{apply:R((p,d,g)=>{let[m]=g,{id:h,styleId:b}=_e(d.parentStyleSheet,e,t.styleMirror);if(h&&h!==-1||b&&b!==-1)r({id:h,styleId:b,removes:[{index:[...Lr(d),m]}]});return p.apply(d,g)})})}),R(()=>{i.CSSStyleSheet.prototype.insertRule=s,i.CSSStyleSheet.prototype.deleteRule=n,o&&(i.CSSStyleSheet.prototype.replace=o),l&&(i.CSSStyleSheet.prototype.replaceSync=l),Object.entries(a).forEach(([c,f])=>{f.prototype.insertRule=u[c].insertRule,f.prototype.deleteRule=u[c].deleteRule})})}function cl({mirror:r,stylesheetManager:e},t){var i,s,n;let o=null;if(t.nodeName==="#document")o=r.getId(t);else o=r.getId(T.host(t));let l=t.nodeName==="#document"?(i=t.defaultView)==null?void 0:i.Document:(n=(s=t.ownerDocument)==null?void 0:s.defaultView)==null?void 0:n.ShadowRoot,a=(l==null?void 0:l.prototype)?Object.getOwnPropertyDescriptor(l==null?void 0:l.prototype,"adoptedStyleSheets"):void 0;if(o===null||o===-1||!l||!a)return()=>{};return Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){var u;return(u=a.get)==null?void 0:u.call(this)},set(u){var c;let f=(c=a.set)==null?void 0:c.call(this,u);if(o!==null&&o!==-1)try{e.adoptStyleSheets(u,o)}catch(p){}return f}}),R(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})})}function Kd({styleDeclarationCb:r,mirror:e,ignoreCSSAttributes:t,stylesheetManager:i},{win:s}){let n=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(n,{apply:R((l,a,u)=>{var c;let[f,p,d]=u;if(t.has(f))return n.apply(a,[f,p,d]);let{id:g,styleId:m}=_e((c=a.parentRule)==null?void 0:c.parentStyleSheet,e,i.styleMirror);if(g&&g!==-1||m&&m!==-1)r({id:g,styleId:m,set:{property:f,value:p,priority:d},index:Lr(a.parentRule)});return l.apply(a,u)})});let o=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:R((l,a,u)=>{var c;let[f]=u;if(t.has(f))return o.apply(a,[f]);let{id:p,styleId:d}=_e((c=a.parentRule)==null?void 0:c.parentStyleSheet,e,i.styleMirror);if(p&&p!==-1||d&&d!==-1)r({id:p,styleId:d,remove:{property:f},index:Lr(a.parentRule)});return l.apply(a,u)})}),R(()=>{s.CSSStyleDeclaration.prototype.setProperty=n,s.CSSStyleDeclaration.prototype.removeProperty=o})}function Jd({mediaInteractionCb:r,blockClass:e,blockSelector:t,mirror:i,sampling:s,doc:n}){let o=R((a)=>Ot(R((u)=>{let c=Pt(u);if(!c||ne(c,e,t,!0))return;let{currentTime:f,volume:p,muted:d,playbackRate:g,loop:m}=c;r({type:a,id:i.getId(c),currentTime:f,volume:p,muted:d,playbackRate:g,loop:m})}),s.media||500)),l=[se("play",o(Je.Play),n),se("pause",o(Je.Pause),n),se("seeked",o(Je.Seeked),n),se("volumechange",o(Je.VolumeChange),n),se("ratechange",o(Je.RateChange),n)];return R(()=>{l.forEach((a)=>a())})}function qd({fontCb:r,doc:e}){let t=e.defaultView;if(!t)return()=>{};let i=[],s=new WeakMap,n=t.FontFace;t.FontFace=function(a,u,c){let f=new n(a,u,c);return s.set(f,{family:a,buffer:typeof u!=="string",descriptors:c,fontSource:typeof u==="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),f};let o=ut(e.fonts,"add",function(l){return function(a){return setTimeout(R(()=>{let u=s.get(a);if(u)r(u),s.delete(a)}),0),l.apply(this,[a])}});return i.push(()=>{t.FontFace=n}),i.push(o),R(()=>{i.forEach((l)=>l())})}function Qd(r){let{doc:e,mirror:t,blockClass:i,blockSelector:s,selectionCb:n}=r,o=!0,l=R(()=>{let a=e.getSelection();if(!a||o&&(a==null?void 0:a.isCollapsed))return;o=a.isCollapsed||!1;let u=[],c=a.rangeCount||0;for(let f=0;f<c;f++){let p=a.getRangeAt(f),{startContainer:d,startOffset:g,endContainer:m,endOffset:h}=p;if(ne(d,i,s,!0)||ne(m,i,s,!0))continue;u.push({start:t.getId(d),startOffset:g,end:t.getId(m),endOffset:h})}n({ranges:u})});return l(),se("selectionchange",l)}function ep({doc:r,customElementCb:e}){let t=r.defaultView;if(!t||!t.customElements)return()=>{};return ut(t.customElements,"define",function(s){return function(n,o,l){try{e({define:{name:n}})}catch(a){console.warn(`Custom element callback failed for ${n}`)}return s.apply(this,[n,o,l])}})}function tp(r,e){let{mutationCb:t,mousemoveCb:i,mouseInteractionCb:s,scrollCb:n,viewportResizeCb:o,inputCb:l,mediaInteractionCb:a,styleSheetRuleCb:u,styleDeclarationCb:c,canvasMutationCb:f,fontCb:p,selectionCb:d,customElementCb:g}=r;r.mutationCb=(...m)=>{if(e.mutation)e.mutation(...m);t(...m)},r.mousemoveCb=(...m)=>{if(e.mousemove)e.mousemove(...m);i(...m)},r.mouseInteractionCb=(...m)=>{if(e.mouseInteraction)e.mouseInteraction(...m);s(...m)},r.scrollCb=(...m)=>{if(e.scroll)e.scroll(...m);n(...m)},r.viewportResizeCb=(...m)=>{if(e.viewportResize)e.viewportResize(...m);o(...m)},r.inputCb=(...m)=>{if(e.input)e.input(...m);l(...m)},r.mediaInteractionCb=(...m)=>{if(e.mediaInteaction)e.mediaInteaction(...m);a(...m)},r.styleSheetRuleCb=(...m)=>{if(e.styleSheetRule)e.styleSheetRule(...m);u(...m)},r.styleDeclarationCb=(...m)=>{if(e.styleDeclaration)e.styleDeclaration(...m);c(...m)},r.canvasMutationCb=(...m)=>{if(e.canvasMutation)e.canvasMutation(...m);f(...m)},r.fontCb=(...m)=>{if(e.font)e.font(...m);p(...m)},r.selectionCb=(...m)=>{if(e.selection)e.selection(...m);d(...m)},r.customElementCb=(...m)=>{if(e.customElement)e.customElement(...m);g(...m)}}function rp(r,e={}){let t=r.doc.defaultView;if(!t)return()=>{};tp(r,e);let i;if(r.recordDOM)i=ll(r,r.doc);let s=Gd(r),n=Hd(r),o=ul(r),l=jd(r,{win:t}),a=Zd(r),u=Jd(r),c=()=>{},f=()=>{},p=()=>{},d=()=>{};if(r.recordDOM){if(c=Xd(r,{win:t}),f=cl(r,r.doc),p=Kd(r,{win:t}),r.collectFonts)d=qd(r)}let g=Qd(r),m=ep(r),h=[];for(let b of r.plugins)h.push(b.observer(b.callback,t,b.options));return R(()=>{Ue.forEach((b)=>b.reset()),i==null||i.disconnect(),s(),n(),o(),l(),a(),u(),c(),f(),p(),d(),g(),m(),h.forEach((b)=>b())})}function gr(r){return typeof window[r]<"u"}function yr(r){return Boolean(typeof window[r]<"u"&&window[r].prototype&&"insertRule"in window[r].prototype&&"deleteRule"in window[r].prototype)}class ss{constructor(r){v(this,"iframeIdToRemoteIdMap",new WeakMap),v(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=r}getId(r,e,t,i){let s=t||this.getIdToRemoteIdMap(r),n=i||this.getRemoteIdToIdMap(r),o=s.get(e);if(!o)o=this.generateIdFn(),s.set(e,o),n.set(o,e);return o}getIds(r,e){let t=this.getIdToRemoteIdMap(r),i=this.getRemoteIdToIdMap(r);return e.map((s)=>this.getId(r,s,t,i))}getRemoteId(r,e,t){let i=t||this.getRemoteIdToIdMap(r);if(typeof e!=="number")return e;let s=i.get(e);if(!s)return-1;return s}getRemoteIds(r,e){let t=this.getRemoteIdToIdMap(r);return e.map((i)=>this.getRemoteId(r,i,t))}reset(r){if(!r){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(r),this.iframeRemoteIdToIdMap.delete(r)}getIdToRemoteIdMap(r){let e=this.iframeIdToRemoteIdMap.get(r);if(!e)e=new Map,this.iframeIdToRemoteIdMap.set(r,e);return e}getRemoteIdToIdMap(r){let e=this.iframeRemoteIdToIdMap.get(r);if(!e)e=new Map,this.iframeRemoteIdToIdMap.set(r,e);return e}}class hl{constructor(r){if(v(this,"iframes",new WeakMap),v(this,"crossOriginIframeMap",new WeakMap),v(this,"crossOriginIframeMirror",new ss(To)),v(this,"crossOriginIframeStyleMirror"),v(this,"crossOriginIframeRootIdMap",new WeakMap),v(this,"mirror"),v(this,"mutationCb"),v(this,"wrappedEmit"),v(this,"loadListener"),v(this,"stylesheetManager"),v(this,"recordCrossOriginIframes"),this.mutationCb=r.mutationCb,this.wrappedEmit=r.wrappedEmit,this.stylesheetManager=r.stylesheetManager,this.recordCrossOriginIframes=r.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ss(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=r.mirror,this.recordCrossOriginIframes)window.addEventListener("message",this.handleMessage.bind(this))}addIframe(r){if(this.iframes.set(r,!0),r.contentWindow)this.crossOriginIframeMap.set(r.contentWindow,r)}addLoadListener(r){this.loadListener=r}attachIframe(r,e){var t,i;if(this.mutationCb({adds:[{parentId:this.mirror.getId(r),nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes)(t=r.contentWindow)==null||t.addEventListener("message",this.handleMessage.bind(this));if((i=this.loadListener)==null||i.call(this,r),r.contentDocument&&r.contentDocument.adoptedStyleSheets&&r.contentDocument.adoptedStyleSheets.length>0)this.stylesheetManager.adoptStyleSheets(r.contentDocument.adoptedStyleSheets,this.mirror.getId(r.contentDocument))}handleMessage(r){let e=r;if(e.data.type!=="rrweb"||e.origin!==e.data.origin)return;if(!r.source)return;let i=this.crossOriginIframeMap.get(r.source);if(!i)return;let s=this.transformCrossOriginEvent(i,e.data.event);if(s)this.wrappedEmit(s,e.data.isCheckout)}transformCrossOriginEvent(r,e){var t;switch(e.type){case D.FullSnapshot:{this.crossOriginIframeMirror.reset(r),this.crossOriginIframeStyleMirror.reset(r),this.replaceIdOnNode(e.data.node,r);let i=e.data.node.id;return this.crossOriginIframeRootIdMap.set(r,i),this.patchRootIdOnNode(e.data.node,i),{timestamp:e.timestamp,type:D.IncrementalSnapshot,data:{source:N.Mutation,adds:[{parentId:this.mirror.getId(r),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case D.Meta:case D.Load:case D.DomContentLoaded:return!1;case D.Plugin:return e;case D.Custom:return this.replaceIds(e.data.payload,r,["id","parentId","previousId","nextId"]),e;case D.IncrementalSnapshot:switch(e.data.source){case N.Mutation:return e.data.adds.forEach((i)=>{this.replaceIds(i,r,["parentId","nextId","previousId"]),this.replaceIdOnNode(i.node,r);let s=this.crossOriginIframeRootIdMap.get(r);s&&this.patchRootIdOnNode(i.node,s)}),e.data.removes.forEach((i)=>{this.replaceIds(i,r,["parentId","id"])}),e.data.attributes.forEach((i)=>{this.replaceIds(i,r,["id"])}),e.data.texts.forEach((i)=>{this.replaceIds(i,r,["id"])}),e;case N.Drag:case N.TouchMove:case N.MouseMove:return e.data.positions.forEach((i)=>{this.replaceIds(i,r,["id"])}),e;case N.ViewportResize:return!1;case N.MediaInteraction:case N.MouseInteraction:case N.Scroll:case N.CanvasMutation:case N.Input:return this.replaceIds(e.data,r,["id"]),e;case N.StyleSheetRule:case N.StyleDeclaration:return this.replaceIds(e.data,r,["id"]),this.replaceStyleIds(e.data,r,["styleId"]),e;case N.Font:return e;case N.Selection:return e.data.ranges.forEach((i)=>{this.replaceIds(i,r,["start","end"])}),e;case N.AdoptedStyleSheet:return this.replaceIds(e.data,r,["id"]),this.replaceStyleIds(e.data,r,["styleIds"]),(t=e.data.styles)==null||t.forEach((i)=>{this.replaceStyleIds(i,r,["styleId"])}),e}}return!1}replace(r,e,t,i){for(let s of i){if(!Array.isArray(e[s])&&typeof e[s]!=="number")continue;if(Array.isArray(e[s]))e[s]=r.getIds(t,e[s]);else e[s]=r.getId(t,e[s])}return e}replaceIds(r,e,t){return this.replace(this.crossOriginIframeMirror,r,e,t)}replaceStyleIds(r,e,t){return this.replace(this.crossOriginIframeStyleMirror,r,e,t)}replaceIdOnNode(r,e){if(this.replaceIds(r,e,["id","rootId"]),"childNodes"in r)r.childNodes.forEach((t)=>{this.replaceIdOnNode(t,e)})}patchRootIdOnNode(r,e){if(r.type!==sl.Document&&!r.rootId)r.rootId=e;if("childNodes"in r)r.childNodes.forEach((t)=>{this.patchRootIdOnNode(t,e)})}}class fl{constructor(r){v(this,"shadowDoms",new WeakSet),v(this,"mutationCb"),v(this,"scrollCb"),v(this,"bypassOptions"),v(this,"mirror"),v(this,"restoreHandlers",[]),this.mutationCb=r.mutationCb,this.scrollCb=r.scrollCb,this.bypassOptions=r.bypassOptions,this.mirror=r.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(r,e){if(!bt(r))return;if(this.shadowDoms.has(r))return;this.shadowDoms.add(r);let t=ll({...this.bypassOptions,doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},r);this.restoreHandlers.push(()=>t.disconnect()),this.restoreHandlers.push(ul({...this.bypassOptions,scrollCb:this.scrollCb,doc:r,mirror:this.mirror})),setTimeout(()=>{if(r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0)this.bypassOptions.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(T.host(r)));this.restoreHandlers.push(cl({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},r))},0)}observeAttachShadow(r){if(!r.contentWindow||!r.contentDocument)return;this.patchAttachShadow(r.contentWindow.Element,r.contentDocument)}patchAttachShadow(r,e){let t=this;this.restoreHandlers.push(ut(r.prototype,"attachShadow",function(i){return function(s){let n=i.call(this,s),o=T.shadowRoot(this);if(o&&il(this))t.addShadowRoot(o,e);return n}}))}reset(){this.restoreHandlers.forEach((r)=>{try{r()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}var tt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ip=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(qe=0;qe<tt.length;qe++)ip[tt.charCodeAt(qe)]=qe;var qe,sp=function(r){var e=new Uint8Array(r),t,i=e.length,s="";for(t=0;t<i;t+=3)s+=tt[e[t]>>2],s+=tt[(e[t]&3)<<4|e[t+1]>>4],s+=tt[(e[t+1]&15)<<2|e[t+2]>>6],s+=tt[e[t+2]&63];if(i%3===2)s=s.substring(0,s.length-1)+"=";else if(i%3===1)s=s.substring(0,s.length-2)+"==";return s};var wo=new Map;function np(r,e){let t=wo.get(r);if(!t)t=new Map,wo.set(r,t);if(!t.has(e))t.set(e,[]);return t.get(e)}var dl=(r,e,t)=>{if(!r||!(ml(r,e)||typeof r==="object"))return;let i=r.constructor.name,s=np(t,i),n=s.indexOf(r);if(n===-1)n=s.length,s.push(r);return n};function Cr(r,e,t){if(r instanceof Array)return r.map((i)=>Cr(i,e,t));else if(r===null)return r;else if(r instanceof Float32Array||r instanceof Float64Array||r instanceof Int32Array||r instanceof Uint32Array||r instanceof Uint8Array||r instanceof Uint16Array||r instanceof Int16Array||r instanceof Int8Array||r instanceof Uint8ClampedArray)return{rr_type:r.constructor.name,args:[Object.values(r)]};else if(r instanceof ArrayBuffer){let i=r.constructor.name,s=sp(r);return{rr_type:i,base64:s}}else if(r instanceof DataView)return{rr_type:r.constructor.name,args:[Cr(r.buffer,e,t),r.byteOffset,r.byteLength]};else if(r instanceof HTMLImageElement){let i=r.constructor.name,{src:s}=r;return{rr_type:i,src:s}}else if(r instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:r.toDataURL()};else if(r instanceof ImageData)return{rr_type:r.constructor.name,args:[Cr(r.data,e,t),r.width,r.height]};else if(ml(r,e)||typeof r==="object"){let i=r.constructor.name,s=dl(r,e,t);return{rr_type:i,index:s}}return r}var pl=(r,e,t)=>r.map((i)=>Cr(i,e,t)),ml=(r,e)=>{let i=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((s)=>typeof e[s]==="function");return Boolean(i.find((s)=>r instanceof e[s]))};function op(r,e,t,i){let s=[],n=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(let o of n)try{if(typeof e.CanvasRenderingContext2D.prototype[o]!=="function")continue;let l=ut(e.CanvasRenderingContext2D.prototype,o,function(a){return function(...u){if(!ne(this.canvas,t,i,!0))setTimeout(()=>{let c=pl(u,e,this);r(this.canvas,{type:lt["2D"],property:o,args:c})},0);return a.apply(this,u)}});s.push(l)}catch{let l=Yr(e.CanvasRenderingContext2D.prototype,o,{set(a){r(this.canvas,{type:lt["2D"],property:o,args:[a],setter:!0})}});s.push(l)}return()=>{s.forEach((o)=>o())}}function ap(r){return r==="experimental-webgl"?"webgl":r}function bo(r,e,t,i){let s=[];try{let n=ut(r.HTMLCanvasElement.prototype,"getContext",function(o){return function(l,...a){if(!ne(this,e,t,!0)){let u=ap(l);if(!("__context"in this))this.__context=u;if(i&&["webgl","webgl2"].includes(u))if(a[0]&&typeof a[0]==="object"){let c=a[0];if(!c.preserveDrawingBuffer)c.preserveDrawingBuffer=!0}else a.splice(0,1,{preserveDrawingBuffer:!0})}return o.apply(this,[l,...a])}});s.push(n)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach((n)=>n())}}function So(r,e,t,i,s,n){let o=[],l=Object.getOwnPropertyNames(r);for(let a of l){if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))continue;try{if(typeof r[a]!=="function")continue;let u=ut(r,a,function(c){return function(...f){let p=c.apply(this,f);if(dl(p,n,this),"tagName"in this.canvas&&!ne(this.canvas,i,s,!0)){let d=pl(f,n,this),g={type:e,property:a,args:d};t(this.canvas,g)}return p}});o.push(u)}catch{let u=Yr(r,a,{set(c){t(this.canvas,{type:e,property:a,args:[c],setter:!0})}});o.push(u)}}return o}function lp(r,e,t,i){let s=[];if(s.push(...So(e.WebGLRenderingContext.prototype,lt.WebGL,r,t,i,e)),typeof e.WebGL2RenderingContext<"u")s.push(...So(e.WebGL2RenderingContext.prototype,lt.WebGL2,r,t,i,e));return()=>{s.forEach((n)=>n())}}var gl="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",up=(r)=>Uint8Array.from(atob(r),(e)=>e.charCodeAt(0)),Co=typeof window<"u"&&window.Blob&&new Blob([up(gl)],{type:"text/javascript;charset=utf-8"});function cp(r){let e;try{if(e=Co&&(window.URL||window.webkitURL).createObjectURL(Co),!e)throw"";let t=new Worker(e,{name:r==null?void 0:r.name});return t.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(e)}),t}catch(t){return new Worker("data:text/javascript;base64,"+gl,{name:r==null?void 0:r.name})}finally{e&&(window.URL||window.webkitURL).revokeObjectURL(e)}}class yl{constructor(r){v(this,"pendingCanvasMutations",new Map),v(this,"rafStamps",{latestId:0,invokeId:null}),v(this,"mirror"),v(this,"mutationCb"),v(this,"resetObservers"),v(this,"frozen",!1),v(this,"locked",!1),v(this,"processMutation",(l,a)=>{if(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)this.rafStamps.invokeId=this.rafStamps.latestId;if(!this.pendingCanvasMutations.has(l))this.pendingCanvasMutations.set(l,[]);this.pendingCanvasMutations.get(l).push(a)});let{sampling:e="all",win:t,blockClass:i,blockSelector:s,recordCanvas:n,dataURLOptions:o}=r;if(this.mutationCb=r.mutationCb,this.mirror=r.mirror,n&&e==="all")this.initCanvasMutationObserver(t,i,s);if(n&&typeof e==="number")this.initCanvasFPSObserver(e,t,i,s,{dataURLOptions:o})}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(r,e,t,i,s){let n=bo(e,t,i,!0),o=new Map,l=new cp;l.onmessage=(d)=>{let{id:g}=d.data;if(o.set(g,!1),!("base64"in d.data))return;let{base64:m,type:h,width:b,height:w}=d.data;this.mutationCb({id:g,type:lt["2D"],commands:[{property:"clearRect",args:[0,0,b,w]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:m}],type:h}]},0,0]}]})};let a=1000/r,u=0,c,f=()=>{let d=[];return e.document.querySelectorAll("canvas").forEach((g)=>{if(!ne(g,t,i,!0))d.push(g)}),d},p=(d)=>{if(u&&d-u<a){c=requestAnimationFrame(p);return}u=d,f().forEach(async(g)=>{var m;let h=this.mirror.getId(g);if(o.get(h))return;if(g.width===0||g.height===0)return;if(o.set(h,!0),["webgl","webgl2"].includes(g.__context)){let w=g.getContext(g.__context);if(((m=w==null?void 0:w.getContextAttributes())==null?void 0:m.preserveDrawingBuffer)===!1)w.clear(w.COLOR_BUFFER_BIT)}let b=await createImageBitmap(g);l.postMessage({id:h,bitmap:b,width:g.width,height:g.height,dataURLOptions:s.dataURLOptions},[b])}),c=requestAnimationFrame(p)};c=requestAnimationFrame(p),this.resetObservers=()=>{n(),cancelAnimationFrame(c)}}initCanvasMutationObserver(r,e,t){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let i=bo(r,e,t,!1),s=op(this.processMutation.bind(this),r,e,t),n=lp(this.processMutation.bind(this),r,e,t);this.resetObservers=()=>{i(),s(),n()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let r=(e)=>{this.rafStamps.latestId=e,requestAnimationFrame(r)};requestAnimationFrame(r)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((r,e)=>{let t=this.mirror.getId(e);this.flushPendingCanvasMutationFor(e,t)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(r,e){if(this.frozen||this.locked)return;let t=this.pendingCanvasMutations.get(r);if(!t||e===-1)return;let i=t.map((n)=>{let{type:o,...l}=n;return l}),{type:s}=t[0];this.mutationCb({id:e,type:s,commands:i}),this.pendingCanvasMutations.delete(r)}}class vl{constructor(r){v(this,"trackedLinkElements",new WeakSet),v(this,"mutationCb"),v(this,"adoptedStyleSheetCb"),v(this,"styleMirror",new tl),this.mutationCb=r.mutationCb,this.adoptedStyleSheetCb=r.adoptedStyleSheetCb}attachLinkElement(r,e){if("_cssText"in e.attributes)this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:e.id,attributes:e.attributes}]});this.trackLinkElement(r)}trackLinkElement(r){if(this.trackedLinkElements.has(r))return;this.trackedLinkElements.add(r),this.trackStylesheetInLinkElement(r)}adoptStyleSheets(r,e){if(r.length===0)return;let t={id:e,styleIds:[]},i=[];for(let s of r){let n;if(!this.styleMirror.has(s))n=this.styleMirror.add(s),i.push({styleId:n,rules:Array.from(s.rules||CSSRule,(o,l)=>({rule:Ao(o,s.href),index:l}))});else n=this.styleMirror.getId(s);t.styleIds.push(n)}if(i.length>0)t.styles=i;this.adoptedStyleSheetCb(t)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(r){}}class wl{constructor(){v(this,"nodeMap",new WeakMap),v(this,"active",!1)}inOtherBuffer(r,e){let t=this.nodeMap.get(r);return t&&Array.from(t).some((i)=>i!==e)}add(r,e){if(!this.active)this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1});this.nodeMap.set(r,(this.nodeMap.get(r)||new Set).add(e))}destroy(){}}var X,Er,Ei,Pr=!1;try{if(Array.from([1],(r)=>r*2)[0]!==2){let r=document.createElement("iframe");document.body.appendChild(r),Array.from=((En=r.contentWindow)==null?void 0:En.Array.from)||Array.from,document.body.removeChild(r)}}catch(r){console.debug("Unable to override Array.from",r)}var ye=du();function Ne(r={}){let{emit:e,checkoutEveryNms:t,checkoutEveryNth:i,blockClass:s="rr-block",blockSelector:n=null,ignoreClass:o="rr-ignore",ignoreSelector:l=null,maskTextClass:a="rr-mask",maskTextSelector:u=null,inlineStylesheet:c=!0,maskAllInputs:f,maskInputOptions:p,slimDOMOptions:d,maskInputFn:g,maskTextFn:m,hooks:h,packFn:b,sampling:w={},dataURLOptions:y={},mousemoveWait:C,recordDOM:I=!0,recordCanvas:E=!1,recordCrossOriginIframes:x=!1,recordAfter:S=r.recordAfter==="DOMContentLoaded"?r.recordAfter:"load",userTriggeredOnInput:_=!1,collectFonts:k=!1,inlineImages:Q=!1,plugins:H,keepIframeSrcFn:A=()=>!1,ignoreCSSAttributes:ee=new Set([]),errorHandler:te}=r;zd(te);let L=x?window.parent===window:!0,P=!1;if(!L)try{if(window.parent.document)P=!1}catch(O){P=!0}if(L&&!e)throw Error("emit function is required");if(!L&&!P)return()=>{};if(C!==void 0&&w.mousemove===void 0)w.mousemove=C;ye.reset();let K=f===!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}:p!==void 0?p:{password:!0},J=d===!0||d==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:d==="all",headMetaDescKeywords:d==="all",headTitleMutations:d==="all"}:d?d:{};$d();let Ge,ae=0,Oe=(O)=>{for(let le of H||[])if(le.eventProcessor)O=le.eventProcessor(O);if(b&&!P)O=b(O);return O};X=(O,le)=>{var Z;let W=O;if(W.timestamp=kr(),((Z=Ue[0])==null?void 0:Z.isFrozen())&&W.type!==D.FullSnapshot&&!(W.type===D.IncrementalSnapshot&&W.data.source===N.Mutation))Ue.forEach((Se)=>Se.unfreeze());if(L)e==null||e(Oe(W),le);else if(P){let Se={type:"rrweb",event:Oe(W),origin:window.location.origin,isCheckout:le};window.parent.postMessage(Se,"*")}if(W.type===D.FullSnapshot)Ge=W,ae=0;else if(W.type===D.IncrementalSnapshot){if(W.data.source===N.Mutation&&W.data.isAttachIframe)return;ae++;let Se=i&&ae>=i,B=t&&W.timestamp-Ge.timestamp>t;if(Se||B)Er(!0)}};let me=(O)=>{X({type:D.IncrementalSnapshot,data:{source:N.Mutation,...O}})},ce=(O)=>X({type:D.IncrementalSnapshot,data:{source:N.Scroll,...O}}),re=(O)=>X({type:D.IncrementalSnapshot,data:{source:N.CanvasMutation,...O}}),be=new vl({mutationCb:me,adoptedStyleSheetCb:(O)=>X({type:D.IncrementalSnapshot,data:{source:N.AdoptedStyleSheet,...O}})}),ge=new hl({mirror:ye,mutationCb:me,stylesheetManager:be,recordCrossOriginIframes:x,wrappedEmit:X});for(let O of H||[])if(O.getMirror)O.getMirror({nodeMirror:ye,crossOriginIframeMirror:ge.crossOriginIframeMirror,crossOriginIframeStyleMirror:ge.crossOriginIframeStyleMirror});let ct=new wl;Ei=new yl({recordCanvas:E,mutationCb:re,win:window,blockClass:s,blockSelector:n,mirror:ye,sampling:w.canvas,dataURLOptions:y});let Pe=new fl({mutationCb:me,scrollCb:ce,bypassOptions:{blockClass:s,blockSelector:n,maskTextClass:a,maskTextSelector:u,inlineStylesheet:c,maskInputOptions:K,dataURLOptions:y,maskTextFn:m,maskInputFn:g,recordCanvas:E,inlineImages:Q,sampling:w,slimDOMOptions:J,iframeManager:ge,stylesheetManager:be,canvasManager:Ei,keepIframeSrcFn:A,processedNodeManager:ct},mirror:ye});Er=(O=!1)=>{if(!I)return;X({type:D.Meta,data:{href:window.location.href,width:Ka(),height:Xa()}},O),be.reset(),Pe.init(),Ue.forEach((Z)=>Z.lock());let le=$u(document,{mirror:ye,blockClass:s,blockSelector:n,maskTextClass:a,maskTextSelector:u,inlineStylesheet:c,maskAllInputs:K,maskTextFn:m,maskInputFn:g,slimDOM:J,dataURLOptions:y,recordCanvas:E,inlineImages:Q,onSerialize:(Z)=>{if(Qa(Z,ye))ge.addIframe(Z);if(el(Z,ye))be.trackLinkElement(Z);if(rs(Z))Pe.addShadowRoot(T.shadowRoot(Z),document)},onIframeLoad:(Z,W)=>{ge.attachIframe(Z,W),Pe.observeAttachShadow(Z)},onStylesheetLoad:(Z,W)=>{be.attachLinkElement(Z,W)},keepIframeSrcFn:A});if(!le)return console.warn("Failed to snapshot the document");if(X({type:D.FullSnapshot,data:{node:le,initialOffset:Za(window)}},O),Ue.forEach((Z)=>Z.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0)be.adoptStyleSheets(document.adoptedStyleSheets,ye.getId(document))};try{let O=[],le=(W)=>{var Se;return R(rp)({mutationCb:me,mousemoveCb:(B,Kr)=>X({type:D.IncrementalSnapshot,data:{source:Kr,positions:B}}),mouseInteractionCb:(B)=>X({type:D.IncrementalSnapshot,data:{source:N.MouseInteraction,...B}}),scrollCb:ce,viewportResizeCb:(B)=>X({type:D.IncrementalSnapshot,data:{source:N.ViewportResize,...B}}),inputCb:(B)=>X({type:D.IncrementalSnapshot,data:{source:N.Input,...B}}),mediaInteractionCb:(B)=>X({type:D.IncrementalSnapshot,data:{source:N.MediaInteraction,...B}}),styleSheetRuleCb:(B)=>X({type:D.IncrementalSnapshot,data:{source:N.StyleSheetRule,...B}}),styleDeclarationCb:(B)=>X({type:D.IncrementalSnapshot,data:{source:N.StyleDeclaration,...B}}),canvasMutationCb:re,fontCb:(B)=>X({type:D.IncrementalSnapshot,data:{source:N.Font,...B}}),selectionCb:(B)=>{X({type:D.IncrementalSnapshot,data:{source:N.Selection,...B}})},customElementCb:(B)=>{X({type:D.IncrementalSnapshot,data:{source:N.CustomElement,...B}})},blockClass:s,ignoreClass:o,ignoreSelector:l,maskTextClass:a,maskTextSelector:u,maskInputOptions:K,inlineStylesheet:c,sampling:w,recordDOM:I,recordCanvas:E,inlineImages:Q,userTriggeredOnInput:_,collectFonts:k,doc:W,maskInputFn:g,maskTextFn:m,keepIframeSrcFn:A,blockSelector:n,slimDOMOptions:J,dataURLOptions:y,mirror:ye,iframeManager:ge,stylesheetManager:be,shadowDomManager:Pe,processedNodeManager:ct,canvasManager:Ei,ignoreCSSAttributes:ee,plugins:((Se=H==null?void 0:H.filter((B)=>B.observer))==null?void 0:Se.map((B)=>({observer:B.observer,options:B.options,callback:(Kr)=>X({type:D.Plugin,data:{plugin:B.name,payload:Kr}})})))||[]},h)};ge.addLoadListener((W)=>{try{O.push(le(W.contentDocument))}catch(Se){console.warn(Se)}});let Z=()=>{Er(),O.push(le(document)),Pr=!0};if(document.readyState==="interactive"||document.readyState==="complete")Z();else O.push(se("DOMContentLoaded",()=>{if(X({type:D.DomContentLoaded,data:{}}),S==="DOMContentLoaded")Z()})),O.push(se("load",()=>{if(X({type:D.Load,data:{}}),S==="load")Z()},window));return()=>{O.forEach((W)=>W()),ct.destroy(),Pr=!1,Vd()}}catch(O){console.warn(O)}}Ne.addCustomEvent=(r,e)=>{if(!Pr)throw Error("please add custom event after start recording");X({type:D.Custom,data:{tag:r,payload:e}})};Ne.freezePage=()=>{Ue.forEach((r)=>r.freeze())};Ne.takeFullSnapshot=(r)=>{if(!Pr)throw Error("please take full snapshot after start recording");Er(r)};Ne.mirror=ye;/*! *****************************************************************************
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 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();})();
72
+ ***************************************************************************** */var Eo;(function(r){r[r.NotStarted=0]="NotStarted",r[r.Running=1]="Running",r[r.Stopped=2]="Stopped"})(Eo||(Eo={}));var{addCustomEvent:zp}=Ne,{freezePage:Vp}=Ne,{takeFullSnapshot:Gp}=Ne;var pe=Uint8Array,oe=Uint16Array,Bt=Uint32Array,$s=new pe([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]),Fs=new pe([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]),bl=new pe([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Il=function(r,e){var t=new oe(31);for(var i=0;i<31;++i)t[i]=e+=1<<r[i-1];var s=new Bt(t[30]);for(var i=1;i<30;++i)for(var n=t[i];n<t[i+1];++n)s[n]=n-t[i]<<5|i;return[t,s]},xl=Il($s,2),hp=xl[0],_s=xl[1];hp[28]=258,_s[258]=28;var Al=Il(Fs,0),jp=Al[0],Sl=Al[1],ks=new oe(32768);for(M=0;M<32768;++M)xe=(M&43690)>>>1|(M&21845)<<1,xe=(xe&52428)>>>2|(xe&13107)<<2,xe=(xe&61680)>>>4|(xe&3855)<<4,ks[M]=((xe&65280)>>>8|(xe&255)<<8)>>>1;var xe,M,Ut=function(r,e,t){var i=r.length,s=0,n=new oe(e);for(;s<i;++s)++n[r[s]-1];var o=new oe(e);for(s=0;s<e;++s)o[s]=o[s-1]+n[s-1]<<1;var l;if(t){l=new oe(1<<e);var a=15-e;for(s=0;s<i;++s)if(r[s]){var u=s<<4|r[s],c=e-r[s],f=o[r[s]-1]++<<c;for(var p=f|(1<<c)-1;f<=p;++f)l[ks[f]>>>a]=u}}else{l=new oe(i);for(s=0;s<i;++s)l[s]=ks[o[r[s]-1]++]>>>15-r[s]}return l},Ve=new pe(288);for(M=0;M<144;++M)Ve[M]=8;var M;for(M=144;M<256;++M)Ve[M]=9;var M;for(M=256;M<280;++M)Ve[M]=7;var M;for(M=280;M<288;++M)Ve[M]=8;var M,Zr=new pe(32);for(M=0;M<32;++M)Zr[M]=5;var M,fp=Ut(Ve,9,0);var dp=Ut(Zr,5,0);var Ml=function(r){return(r/8>>0)+(r&7&&1)},Tl=function(r,e,t){if(t==null||t>r.length)t=r.length;var i=new(r instanceof oe?oe:r instanceof Bt?Bt:pe)(t-e);return i.set(r.subarray(e,t)),i};var Re=function(r,e,t){t<<=e&7;var i=e/8>>0;r[i]|=t,r[i+1]|=t>>>8},$t=function(r,e,t){t<<=e&7;var i=e/8>>0;r[i]|=t,r[i+1]|=t>>>8,r[i+2]|=t>>>16},Ds=function(r,e){var t=[];for(var i=0;i<r.length;++i)if(r[i])t.push({s:i,f:r[i]});var s=t.length,n=t.slice();if(!s)return[new pe(0),0];if(s==1){var o=new pe(t[0].s+1);return o[t[0].s]=1,[o,1]}t.sort(function(I,E){return I.f-E.f}),t.push({s:-1,f:25001});var l=t[0],a=t[1],u=0,c=1,f=2;t[0]={s:-1,f:l.f+a.f,l,r:a};while(c!=s-1)l=t[t[u].f<t[f].f?u++:f++],a=t[u!=c&&t[u].f<t[f].f?u++:f++],t[c++]={s:-1,f:l.f+a.f,l,r:a};var p=n[0].s;for(var i=1;i<s;++i)if(n[i].s>p)p=n[i].s;var d=new oe(p+1),g=Ls(t[c-1],d,0);if(g>e){var i=0,m=0,h=g-e,b=1<<h;n.sort(function(E,x){return d[x.s]-d[E.s]||E.f-x.f});for(;i<s;++i){var w=n[i].s;if(d[w]>e)m+=b-(1<<g-d[w]),d[w]=e;else break}m>>>=h;while(m>0){var y=n[i].s;if(d[y]<e)m-=1<<e-d[y]++-1;else++i}for(;i>=0&&m;--i){var C=n[i].s;if(d[C]==e)--d[C],++m}g=e}return[new pe(d),g]},Ls=function(r,e,t){return r.s==-1?Math.max(Ls(r.l,e,t+1),Ls(r.r,e,t+1)):e[r.s]=t},Cl=function(r){var e=r.length;while(e&&!r[--e]);var t=new oe(++e),i=0,s=r[0],n=1,o=function(a){t[i++]=a};for(var l=1;l<=e;++l)if(r[l]==s&&l!=e)++n;else{if(!s&&n>2){for(;n>138;n-=138)o(32754);if(n>2)o(n>10?n-11<<5|28690:n-3<<5|12305),n=0}else if(n>3){o(s),--n;for(;n>6;n-=6)o(8304);if(n>2)o(n-3<<5|8208),n=0}while(n--)o(s);n=1,s=r[l]}return[t.subarray(0,i),e]},Ft=function(r,e){var t=0;for(var i=0;i<e.length;++i)t+=r[i]*e[i];return t},Ps=function(r,e,t){var i=t.length,s=Ml(e+2);r[s]=i&255,r[s+1]=i>>>8,r[s+2]=r[s]^255,r[s+3]=r[s+1]^255;for(var n=0;n<i;++n)r[s+n+4]=t[n];return(s+4+i)*8},El=function(r,e,t,i,s,n,o,l,a,u,c){Re(e,c++,t),++s[256];var f=Ds(s,15),p=f[0],d=f[1],g=Ds(n,15),m=g[0],h=g[1],b=Cl(p),w=b[0],y=b[1],C=Cl(m),I=C[0],E=C[1],x=new oe(19);for(var S=0;S<w.length;++S)x[w[S]&31]++;for(var S=0;S<I.length;++S)x[I[S]&31]++;var _=Ds(x,7),k=_[0],Q=_[1],H=19;for(;H>4&&!k[bl[H-1]];--H);var A=u+5<<3,ee=Ft(s,Ve)+Ft(n,Zr)+o,te=Ft(s,p)+Ft(n,m)+o+14+3*H+Ft(x,k)+(2*x[16]+3*x[17]+7*x[18]);if(A<=ee&&A<=te)return Ps(e,c,r.subarray(a,a+u));var L,P,K,J;if(Re(e,c,1+(te<ee)),c+=2,te<ee){L=Ut(p,d,0),P=p,K=Ut(m,h,0),J=m;var Ge=Ut(k,Q,0);Re(e,c,y-257),Re(e,c+5,E-1),Re(e,c+10,H-4),c+=14;for(var S=0;S<H;++S)Re(e,c+3*S,k[bl[S]]);c+=3*H;var ae=[w,I];for(var Oe=0;Oe<2;++Oe){var me=ae[Oe];for(var S=0;S<me.length;++S){var ce=me[S]&31;if(Re(e,c,Ge[ce]),c+=k[ce],ce>15)Re(e,c,me[S]>>>5&127),c+=me[S]>>>12}}}else L=fp,P=Ve,K=dp,J=Zr;for(var S=0;S<l;++S)if(i[S]>255){var ce=i[S]>>>18&31;if($t(e,c,L[ce+257]),c+=P[ce+257],ce>7)Re(e,c,i[S]>>>23&31),c+=$s[ce];var re=i[S]&31;if($t(e,c,K[re]),c+=J[re],re>3)$t(e,c,i[S]>>>5&8191),c+=Fs[re]}else $t(e,c,L[i[S]]),c+=P[i[S]];return $t(e,c,L[256]),c+P[256]},pp=new Bt([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),mp=function(r,e,t,i,s,n){var o=r.length,l=new pe(i+o+5*(1+Math.floor(o/7000))+s),a=l.subarray(i,l.length-s),u=0;if(!e||o<8)for(var c=0;c<=o;c+=65535){var f=c+65535;if(f<o)u=Ps(a,u,r.subarray(c,f));else a[c]=n,u=Ps(a,u,r.subarray(c,o))}else{var p=pp[e-1],d=p>>>13,g=p&8191,m=(1<<t)-1,h=new oe(32768),b=new oe(m+1),w=Math.ceil(t/3),y=2*w,C=function(W){return(r[W]^r[W+1]<<w^r[W+2]<<y)&m},I=new Bt(25000),E=new oe(288),x=new oe(32),S=0,_=0,c=0,k=0,Q=0,H=0;for(;c<o;++c){var A=C(c),ee=c&32767,te=b[A];if(h[ee]=te,b[A]=ee,Q<=c){var L=o-c;if((S>7000||k>24576)&&L>423){u=El(r,a,0,I,E,x,_,k,H,c-H,u),k=S=_=0,H=c;for(var P=0;P<286;++P)E[P]=0;for(var P=0;P<30;++P)x[P]=0}var K=2,J=0,Ge=g,ae=ee-te&32767;if(L>2&&A==C(c-ae)){var Oe=Math.min(d,L)-1,me=Math.min(32767,c),ce=Math.min(258,L);while(ae<=me&&--Ge&&ee!=te){if(r[c+K]==r[c+K-ae]){var re=0;for(;re<ce&&r[c+re]==r[c+re-ae];++re);if(re>K){if(K=re,J=ae,re>Oe)break;var Hs=Math.min(ae,re-2),be=0;for(var P=0;P<Hs;++P){var ge=c-ae+P+32768&32767,ct=h[ge],Pe=ge-ct+32768&32767;if(Pe>be)be=Pe,te=ge}}}ee=te,te=h[ee],ae+=ee-te+32768&32767}}if(J){I[k++]=268435456|_s[K]<<18|Sl[J];var O=_s[K]&31,le=Sl[J]&31;_+=$s[O]+Fs[le],++E[257+O],++x[le],Q=c+K,++S}else I[k++]=r[c],++E[r[c]]}}u=El(r,a,n,I,E,x,_,k,H,c-H,u)}return Tl(l,0,i+Ml(u)+s)},gp=function(){var r=1,e=0;return{p:function(t){var i=r,s=e,n=t.length;for(var o=0;o!=n;){var l=Math.min(o+5552,n);for(;o<l;++o)i+=t[o],s+=i;i%=65521,s%=65521}r=i,e=s},d:function(){return(r>>>8<<16|(e&255)<<8|e>>>8)+((r&255)<<23)*2}}},yp=function(r,e,t,i,s){return mp(r,e.level==null?6:e.level,e.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):12+e.mem,t,i,!s)},vp=function(r,e,t){for(;t;++e)r[e]=t,t>>>=8},wp=function(r,e){var t=e.level,i=t==0?0:t<6?1:t==9?3:2;r[0]=120,r[1]=i<<6|(i?32-2*i:1)};function Nl(r,e){if(e===void 0)e={};var t=gp();t.p(r);var i=yp(r,e,2,4);return wp(i,e),vp(i,i.length-4,t.d()),i}function Us(r,e){var t=r.length;if(!e&&typeof TextEncoder<"u")return new TextEncoder().encode(r);var i=new pe(r.length+(r.length>>>1)),s=0,n=function(u){i[s++]=u};for(var o=0;o<t;++o){if(s+5>i.length){var l=new pe(s+8+(t-o<<1));l.set(i),i=l}var a=r.charCodeAt(o);if(a<128||e)n(a);else if(a<2048)n(192|a>>>6),n(128|a&63);else if(a>55295&&a<57344)a=65536+(a&1047552)|r.charCodeAt(++o)&1023,n(240|a>>>18),n(128|a>>>12&63),n(128|a>>>6&63),n(128|a&63);else n(224|a>>>12),n(128|a>>>6&63),n(128|a&63)}return Tl(i,0,s)}function Bs(r,e){var t="";if(!e&&typeof TextDecoder<"u")return new TextDecoder().decode(r);for(var i=0;i<r.length;){var s=r[i++];if(s<128||e)t+=String.fromCharCode(s);else if(s<224)t+=String.fromCharCode((s&31)<<6|r[i++]&63);else if(s<240)t+=String.fromCharCode((s&15)<<12|(r[i++]&63)<<6|r[i++]&63);else s=((s&15)<<18|(r[i++]&63)<<12|(r[i++]&63)<<6|r[i++]&63)-65536,t+=String.fromCharCode(55296|s>>10,56320|s&1023)}return t}var Ws="v1";var zs=(r)=>{let e={...r,v:Ws};return Bs(Nl(Us(JSON.stringify(e))),!0)};var Rl=["pointerdown","keydown","scroll","touchstart","wheel","mousemove"],bp=15000;function Vs(r){if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();return`${r}_${Date.now()}_${Math.random().toString(36).substring(2,11)}`}function Sp(){return Vs("session")}function Cp(){return Vs("batch")}function Ol(r,e){return e.some((t)=>new RegExp(`^${t.replace(/\*/g,".*")}$`).test(r))}function Dl(r){try{if(typeof localStorage>"u")return;if(r===null)localStorage.removeItem("currentRecordingSessionId");else localStorage.setItem("currentRecordingSessionId",r)}catch{}}function Ep(){if(typeof window>"u")return{};let r=window.screen||{},e=window.navigator||{};return{visitorId:zt()??Vs("visitor"),userAgent:e.userAgent,language:e.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,screenWidth:r.width,screenHeight:r.height,colorDepth:r.colorDepth||24,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight,url:window.location.href,timestamp:new Date().toISOString()}}class Xr{constructor(r={}){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=r.basePath||He,this.ingestKey=r.ingestKey,this.excludedPaths=r.useDefaultExcludedPaths===!1?r.excludedPaths||[]:[...Zs,...r.excludedPaths||[]],this.sessionSampleRate=r.sessionSampleRate??1,this.maskAllInputs=r.maskAllInputs??!0,this.maskTextSelector=r.maskTextSelector||"[data-mask]",this.blockClass=r.blockClass||"rr-block",this.ignoreClass=r.ignoreClass||"rr-ignore",this.maskTextClass=r.maskTextClass||"rr-mask",this.ignoreSelector=r.ignoreSelector||"[data-ignore]",this.blockSelector=r.blockSelector||"[data-private]",this.recordCanvas=r.recordCanvas??!1,this.collectFonts=r.collectFonts??!0,this.batchSize=r.batchSize??100,this.flushInterval=r.flushInterval??1e4,this.idleTimeout=r.idleTimeout??60000,this.pauseOnHidden=r.pauseOnHidden??!0,this.checkoutEveryNms=r.checkoutEveryNms??30000,this.checkoutEveryNth=r.checkoutEveryNth??200,this.maxBufferedEvents=r.maxBufferedEvents??5000,this.slimDOMOptions=r.slimDOMOptions||{script:!1,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0},this.maskInputOptions=r.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",...r.sampling||{}},this.debug=r.debug??!1,this.enabled=r.enabled??!1,this.enabled&&typeof window<"u")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>"u")return!1;if(Ol(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(r,e){if(!this.debug){if(this.reportedFailures.has(r))return;this.reportedFailures.add(r)}console.warn(`[SessionRecorder] session replay ${r} failed:`,e,...this.debug?[]:["(reported once; set sessionRecordingConfig.debug to log every failure)"])}debugLog(r,...e){if(!this.debug)return;console.debug(`[SessionRecorder] ${r}`,...e)}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 r=Sp();this.sessionId=r;try{let e={sessionId:r,...Ep()},t=`${this.basePath}/${Jr}/init`,i=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json",...Vt(this.ingestKey)},body:JSON.stringify(e)});if(i.ok)return this.sessionInitialized=!0,this.initRetryCount=0,this.initFailed=!1,Dl(r),this.debugLog("session started",r),!0;if(this.reportFailure("init",`HTTP ${i.status} from ${t}`),this.sessionId="",this.initRetryCount>=this.maxInitRetries)this.initFailed=!0;return!1}catch(e){if(this.reportFailure("init",e),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:Cp(),events:this.pending.splice(0,this.pending.length)},this.inflight}async sendEvents(r=!1){if(!this.sessionInitialized)return;if(this.isSending&&!r)return;let e=Date.now();if(this.sendRetryCount>0&&!r){let i=Math.min(1000*Math.pow(2,this.sendRetryCount),30000);if(e-this.lastSendAttempt<i)return}let t=this.claimBatch();if(!t)return;this.isSending=!0,this.lastSendAttempt=e;try{let i=zs(t.events),s=btoa(i),n={sessionId:this.sessionId,batchId:t.batchId,events:s},o=`${this.basePath}/${Jr}/events`,l=qr(o,this.ingestKey);if(r){if(navigator.sendBeacon){let a=Qr(JSON.stringify(n),this.ingestKey);if(!navigator.sendBeacon(l,a))await fetch(l,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n),keepalive:!0})}else await fetch(l,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n),keepalive:!0});this.inflight=null,this.sendRetryCount=0}else{let a=await fetch(o,{method:"POST",headers:{"Content-Type":"application/json",...Vt(this.ingestKey)},body:JSON.stringify(n)});if(a.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(!a.ok){if(this.reportFailure("upload",`HTTP ${a.status} from ${o}`),this.sendRetryCount++,this.sendRetryCount>=this.maxSendRetries)this.inflight=null,this.sendRetryCount=0}else this.inflight=null,this.sendRetryCount=0}}catch(i){if(this.reportFailure("upload",i),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 r=Math.min(this.idleTimeout,bp);this.idleTimer=setInterval(()=>{if(this.paused||!this.stopFn)return;if(Date.now()-this.lastActivityAt>=this.idleTimeout)this.pauseRecording()},r)}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 r=this.stopGeneration;try{if(!await this.initializeSession())return;if(this.stopGeneration!==r||this.stopFn||!this.enabled){this.clearSession();return}let t=Ne({emit:(i)=>{if(this.pending.push(i),this.pending.length>this.maxBufferedEvents){let s=this.pending.length-this.maxBufferedEvents;this.pending.splice(0,s),this.droppedEvents+=s}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(t){this.stopFn=t;let i=t;this.takeSnapshot=i.takeFullSnapshot||null}this.paused=!1,this.lastActivityAt=Date.now(),this.startFlushTimer(),this.startIdleTimer()}finally{this.starting=!1}}clearSession(){this.sessionInitialized=!1,this.sessionId="",Dl(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 r=()=>{if(this.stopFn&&this.hasBufferedEvents())this.sendEvents(!1);setTimeout(()=>{if(this.checkPath(),this.takeSnapshot)this.takeSnapshot()},100)};window.history.pushState=(...e)=>{this.originalPushState?.apply(window.history,e),r()},window.history.replaceState=(...e)=>{this.originalReplaceState?.apply(window.history,e),r()},window.addEventListener("popstate",this.handlePopState),window.addEventListener("beforeunload",this.handleUnload),window.addEventListener("pagehide",this.handleUnload),document.addEventListener("visibilitychange",this.handleVisibilityChange);for(let e of Rl)window.addEventListener(e,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 r of Rl)window.removeEventListener(r,this.handleActivity,{capture:!0})}checkPath(){if(!this.enabled||this.initFailed){if(!this.enabled)this.stopRecording();return}let r=Ol(window.location.pathname,this.excludedPaths),e=this.stopFn!==null;if(r)this.debugLog(`not recording ${window.location.pathname}: excluded path`);if(r&&e)this.stopRecording();else if(!r&&!e&&!this.paused)this.startRecording()}start(){if(this.enabled&&this.stopFn)return;if(this.enabled=!0,typeof window>"u")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 Gs(r={}){let{basePath:e=He,disabled:t=!1,ignoreLocalhost:i=!0,domain:s,ingestKey:n,autoTrackPageviews:o=!0,autoTrackPageLeave:l=!0,pageLeaveEventName:a="page_leave",autoTrackSpeedAnalytics:u=!0,autoTrackEngagement:c=!0,heartbeatInterval:f=30000,inactivityTimeout:p=30000,engagementThreshold:d=1e4,enableSessionRecording:g=!1,sessionRecordingConfig:m={}}=r,h=[],b=Ip(t,i),w=()=>s||(typeof window<"u"?window.location.hostname:""),y=async(S,_={})=>{if(!b)return;await $e("event",{event_name:S,request_query:window.location.search,request_path:window.location.pathname,domain:w(),language:navigator.language,event_data:_},"POST",e,n)},C=()=>{if(!b)return;$e("event",{event_name:"page_view",request_query:window.location.search,request_path:window.location.pathname,domain:w(),language:navigator.language,event_data:{referrer:document.referrer,userAgent:navigator.userAgent,timestamp:new Date().toISOString()}},"POST",e,n)},I=async()=>{};if(b){if(o)h.push(xp(C));if(c){let S=new ei({basePath:e,ingestKey:n,domain:w(),heartbeatInterval:f,inactivityTimeout:p,engagementThreshold:d});h.push(()=>S.destroy())}else if(l)h.push(Mp(a,w,e,n));if(u){let S=new li({basePath:e,ingestKey:n});h.push(()=>S.destroy())}h.push(Ap(y))}let E=b&&g?new Xr({basePath:e,ingestKey:n,domain:w(),enabled:!0,...m}):null;if(E)h.push(()=>E.destroy());let x=E;return{get enabled(){return b},ingestKey:n,trackEvent:y,trackPageview:C,identify:I,enableSessionRecording(){if(!b)return;if(x){x.start();return}x=new Xr({basePath:e,ingestKey:n,domain:w(),enabled:!0,...m}),h.push(()=>x?.destroy())},disableSessionRecording(){x?.stop()},destroy(){while(h.length>0){let S=h.pop();try{S?.()}catch(_){console.error("Analytics cleanup error:",_)}}}}}function Ip(r,e){if(r)return!1;if(typeof window>"u")return!1;if(e&&(Js()||qs()))return!1;try{if(window.localStorage?.getItem("temps_ignore")==="true")return!1;if(window.localStorage?.temps_ignore==="true")return!1}catch{}return!0}function xp(r){let e=window.location.pathname,t=!0,i=window.history.pushState.bind(window.history),s=()=>{let l=window.location.pathname;if(e!==l)e=l,r()};window.history.pushState=(l,a,u)=>{i(l,a,u),s()};let n=()=>s();window.addEventListener("popstate",n);let o=()=>{if(document.visibilityState==="visible"&&t)t=!1,r(),document.removeEventListener("visibilitychange",o)};if(document.visibilityState==="prerender")document.addEventListener("visibilitychange",o);else if(t)t=!1,r();return()=>{window.removeEventListener("popstate",n),document.removeEventListener("visibilitychange",o),window.history.pushState=i}}function Ap(r){let e=(t)=>{let s=t.target?.closest?.("[temps-event-name]");if(!(s instanceof HTMLElement))return;let n=s.getAttribute("temps-event-name");if(!n)return;let o={};for(let l of s.getAttributeNames())if(l.startsWith("temps-data-")){let a=l.replace("temps-data-","");o[a]=s.getAttribute(l)}r(n,o)};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)}function Mp(r,e,t,i){let s=!1,n=Date.now(),o=()=>{if(s)return;s=!0;let l=Date.now()-n;je("event",{event_name:r,request_query:window.location.search,request_path:window.location.pathname,domain:e(),language:navigator.language,event_data:{time_on_page_ms:l,timestamp:new Date().toISOString(),url:window.location.href,referrer:document.referrer}},t,i)};return window.addEventListener("pagehide",o),window.addEventListener("beforeunload",o),()=>{window.removeEventListener("pagehide",o),window.removeEventListener("beforeunload",o)}}var Wt=null;function _l(r={}){if(Wt)Wt.destroy();if(Wt=Gs(r),typeof window<"u")window.temps=Wt;return Wt}function Tp(){if(typeof document>"u")return{};let r=document.currentScript??document.querySelector("script[data-temps]")??Array.from(document.scripts).reverse().find((s)=>!!s.dataset?.domain||!!s.dataset?.basePath||!!s.dataset?.ingestKey)??null;if(!r)return{};let e=r.dataset,t={},i={};if(e.basePath)t.basePath=e.basePath;if(e.ingestKey)t.ingestKey=e.ingestKey;if(e.domain)t.domain=e.domain;if(e.disabled)t.disabled=e.disabled==="true";if(e.ignoreLocalhost)t.ignoreLocalhost=e.ignoreLocalhost==="true";if(e.autoTrackPageviews)t.autoTrackPageviews=e.autoTrackPageviews==="true";if(e.autoTrackPageLeave)t.autoTrackPageLeave=e.autoTrackPageLeave==="true";if(e.pageLeaveEventName)t.pageLeaveEventName=e.pageLeaveEventName;if(e.autoTrackSpeedAnalytics)t.autoTrackSpeedAnalytics=e.autoTrackSpeedAnalytics==="true";if(e.autoTrackEngagement)t.autoTrackEngagement=e.autoTrackEngagement==="true";if(e.heartbeatInterval)t.heartbeatInterval=Number(e.heartbeatInterval);if(e.inactivityTimeout)t.inactivityTimeout=Number(e.inactivityTimeout);if(e.engagementThreshold)t.engagementThreshold=Number(e.engagementThreshold);if(e.sessionRecording)t.enableSessionRecording=e.sessionRecording==="true";if(e.sessionSampleRate)i.sessionSampleRate=Number(e.sessionSampleRate);if(e.maskAllInputs)i.maskAllInputs=e.maskAllInputs==="true";if(e.excludedPaths)i.excludedPaths=e.excludedPaths.split(",").map((s)=>s.trim());if(Object.keys(i).length>0)t.sessionRecordingConfig=i;return t}function kl(){if(typeof window>"u")return;_l(Tp())}if(typeof document<"u"&&document.readyState==="loading")document.addEventListener("DOMContentLoaded",kl,{once:!0});else kl();})();