@obsrviq/tracker 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,189 @@
1
+ var ObsrviqSDK=(function(exports){'use strict';var ve=Uint8Array,de=Uint16Array,Xt=Int32Array,Jt=new ve([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]),Qt=new ve([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]),$n=new ve([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Vn=function(e,t){for(var r=new de(31),i=0;i<31;++i)r[i]=t+=1<<e[i-1];for(var n=new Xt(r[30]),i=1;i<30;++i)for(var o=r[i];o<r[i+1];++o)n[o]=o-r[i]<<5|i;return {b:r,r:n}},Gn=Vn(Jt,2),Zo=Gn.b,jt=Gn.r;Zo[28]=258,jt[258]=28;var Yn=Vn(Qt,0),Wn=Yn.r,Vt=new de(32768);for($=0;$<32768;++$)Ee=($&43690)>>1|($&21845)<<1,Ee=(Ee&52428)>>2|(Ee&13107)<<2,Ee=(Ee&61680)>>4|(Ee&3855)<<4,Vt[$]=((Ee&65280)>>8|(Ee&255)<<8)>>1;var Ee,$,Ye=(function(e,t,r){for(var i=e.length,n=0,o=new de(t);n<i;++n)e[n]&&++o[e[n]-1];var c=new de(t);for(n=1;n<t;++n)c[n]=c[n-1]+o[n-1]<<1;var p;for(p=new de(i),n=0;n<i;++n)e[n]&&(p[n]=Vt[c[e[n]-1]++]>>15-e[n]);return p}),Te=new ve(288);for($=0;$<144;++$)Te[$]=8;var $;for($=144;$<256;++$)Te[$]=9;var $;for($=256;$<280;++$)Te[$]=7;var $;for($=280;$<288;++$)Te[$]=8;var $,at=new ve(32);for($=0;$<32;++$)at[$]=5;var $,Ko=Ye(Te,9);var ea=Ye(at,5);var Xn=function(e){return (e+7)/8|0},ta=function(e,t,r){return (r==null||r>e.length)&&(r=e.length),new ve(e.subarray(t,r))};var Me=function(e,t,r){r<<=t&7;var i=t/8|0;e[i]|=r,e[i+1]|=r>>8;},Ve=function(e,t,r){r<<=t&7;var i=t/8|0;e[i]|=r,e[i+1]|=r>>8,e[i+2]|=r>>16;},Ht=function(e,t){for(var r=[],i=0;i<e.length;++i)e[i]&&r.push({s:i,f:e[i]});var n=r.length,o=r.slice();if(!n)return {t:Qn,l:0};if(n==1){var c=new ve(r[0].s+1);return c[r[0].s]=1,{t:c,l:1}}r.sort(function(v,y){return v.f-y.f}),r.push({s:-1,f:25001});var p=r[0],a=r[1],h=0,s=1,f=2;for(r[0]={s:-1,f:p.f+a.f,l:p,r:a};s!=n-1;)p=r[r[h].f<r[f].f?h++:f++],a=r[h!=s&&r[h].f<r[f].f?h++:f++],r[s++]={s:-1,f:p.f+a.f,l:p,r:a};for(var u=o[0].s,i=1;i<n;++i)o[i].s>u&&(u=o[i].s);var l=new de(u+1),m=Gt(r[s-1],l,0);if(m>t){var i=0,d=0,g=m-t,S=1<<g;for(o.sort(function(y,C){return l[C.s]-l[y.s]||y.f-C.f});i<n;++i){var w=o[i].s;if(l[w]>t)d+=S-(1<<m-l[w]),l[w]=t;else break}for(d>>=g;d>0;){var b=o[i].s;l[b]<t?d-=1<<t-l[b]++-1:++i;}for(;i>=0&&d;--i){var x=o[i].s;l[x]==t&&(--l[x],++d);}m=t;}return {t:new ve(l),l:m}},Gt=function(e,t,r){return e.s==-1?Math.max(Gt(e.l,t,r+1),Gt(e.r,t,r+1)):t[e.s]=r},Hn=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new de(++t),i=0,n=e[0],o=1,c=function(a){r[i++]=a;},p=1;p<=t;++p)if(e[p]==n&&p!=t)++o;else {if(!n&&o>2){for(;o>138;o-=138)c(32754);o>2&&(c(o>10?o-11<<5|28690:o-3<<5|12305),o=0);}else if(o>3){for(c(n),--o;o>6;o-=6)c(8304);o>2&&(c(o-3<<5|8208),o=0);}for(;o--;)c(n);o=1,n=e[p];}return {c:r.subarray(0,i),n:t}},Ge=function(e,t){for(var r=0,i=0;i<t.length;++i)r+=e[i]*t[i];return r},Jn=function(e,t,r){var i=r.length,n=Xn(t+2);e[n]=i&255,e[n+1]=i>>8,e[n+2]=e[n]^255,e[n+3]=e[n+1]^255;for(var o=0;o<i;++o)e[n+o+4]=r[o];return (n+4+i)*8},jn=function(e,t,r,i,n,o,c,p,a,h,s){Me(t,s++,r),++n[256];for(var f=Ht(n,15),u=f.t,l=f.l,m=Ht(o,15),d=m.t,g=m.l,S=Hn(u),w=S.c,b=S.n,x=Hn(d),v=x.c,y=x.n,C=new de(19),M=0;M<w.length;++M)++C[w[M]&31];for(var M=0;M<v.length;++M)++C[v[M]&31];for(var I=Ht(C,7),R=I.t,k=I.l,A=19;A>4&&!R[$n[A-1]];--A);var E=h+5<<3,K=Ge(n,Te)+Ge(o,at)+c,Y=Ge(n,u)+Ge(o,d)+c+14+3*A+Ge(C,R)+2*C[16]+3*C[17]+7*C[18];if(a>=0&&E<=K&&E<=Y)return Jn(t,s,e.subarray(a,a+h));var L,T,z,X;if(Me(t,s,1+(Y<K)),s+=2,Y<K){L=Ye(u,l),T=u,z=Ye(d,g),X=d;var J=Ye(R,k);Me(t,s,b-257),Me(t,s+5,y-1),Me(t,s+10,A-4),s+=14;for(var M=0;M<A;++M)Me(t,s+3*M,R[$n[M]]);s+=3*A;for(var P=[w,v],ce=0;ce<2;++ce)for(var N=P[ce],M=0;M<N.length;++M){var re=N[M]&31;Me(t,s,J[re]),s+=R[re],re>15&&(Me(t,s,N[M]>>5&127),s+=N[M]>>12);}}else L=Ko,T=Te,z=ea,X=at;for(var M=0;M<p;++M){var W=i[M];if(W>255){var re=W>>18&31;Ve(t,s,L[re+257]),s+=T[re+257],re>7&&(Me(t,s,W>>23&31),s+=Jt[re]);var pe=W&31;Ve(t,s,z[pe]),s+=X[pe],pe>3&&(Ve(t,s,W>>5&8191),s+=Qt[pe]);}else Ve(t,s,L[W]),s+=T[W];}return Ve(t,s,L[256]),s+T[256]},ra=new Xt([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Qn=new ve(0),na=function(e,t,r,i,n,o){var c=o.z||e.length,p=new ve(i+c+5*(1+Math.ceil(c/7e3))+n),a=p.subarray(i,p.length-n),h=o.l,s=(o.r||0)&7;if(t){s&&(a[0]=o.r>>3);for(var f=ra[t-1],u=f>>13,l=f&8191,m=(1<<r)-1,d=o.p||new de(32768),g=o.h||new de(m+1),S=Math.ceil(r/3),w=2*S,b=function(V){return (e[V]^e[V+1]<<S^e[V+2]<<w)&m},x=new Xt(25e3),v=new de(288),y=new de(32),C=0,M=0,I=o.i||0,R=0,k=o.w||0,A=0;I+2<c;++I){var E=b(I),K=I&32767,Y=g[E];if(d[K]=Y,g[E]=K,k<=I){var L=c-I;if((C>7e3||R>24576)&&(L>423||!h)){s=jn(e,a,0,x,v,y,M,R,A,I-A,s),R=C=M=0,A=I;for(var T=0;T<286;++T)v[T]=0;for(var T=0;T<30;++T)y[T]=0;}var z=2,X=0,J=l,P=K-Y&32767;if(L>2&&E==b(I-P))for(var ce=Math.min(u,L)-1,N=Math.min(32767,I),re=Math.min(258,L);P<=N&&--J&&K!=Y;){if(e[I+z]==e[I+z-P]){for(var W=0;W<re&&e[I+W]==e[I+W-P];++W);if(W>z){if(z=W,X=P,W>ce)break;for(var pe=Math.min(P,W-2),ie=0,T=0;T<pe;++T){var oe=I-P+T&32767,xe=d[oe],ye=oe-xe&32767;ye>ie&&(ie=ye,Y=oe);}}}K=Y,Y=d[K],P+=K-Y&32767;}if(X){x[R++]=268435456|jt[z]<<18|Wn[X];var D=jt[z]&31,ee=Wn[X]&31;M+=Jt[D]+Qt[ee],++v[257+D],++y[ee],k=I+z,++C;}else x[R++]=e[I],++v[e[I]];}}for(I=Math.max(I,k);I<c;++I)x[R++]=e[I],++v[e[I]];s=jn(e,a,h,x,v,y,M,R,A,I-A,s),h||(o.r=s&7|a[s/8|0]<<3,s-=7,o.h=g,o.p=d,o.i=I,o.w=k);}else {for(var I=o.w||0;I<c+h;I+=65535){var q=I+65535;q>=c&&(a[s/8|0]=h,q=c),s=Jn(a,s+1,e.subarray(I,q));}o.i=c;}return ta(p,0,i+Xn(s)+n)},ia=(function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var r=t,i=9;--i;)r=(r&1&&-306674912)^r>>>1;e[t]=r;}return e})(),sa=function(){var e=-1;return {p:function(t){for(var r=e,i=0;i<t.length;++i)r=ia[r&255^t[i]]^r>>>8;e=r;},d:function(){return ~e}}};var oa=function(e,t,r,i,n){if(!n&&(n={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),c=new ve(o.length+e.length);c.set(o),c.set(e,o.length),e=c,n.w=o.length;}return na(e,t.level==null?6:t.level,t.mem==null?n.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,r,i,n)};var Yt=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8;},aa=function(e,t){var r=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&Yt(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){e[3]=8;for(var i=0;i<=r.length;++i)e[i+10]=r.charCodeAt(i);}};var la=function(e){return 10+(e.filename?e.filename.length+1:0)};function Zn(e,t){t||(t={});var r=sa(),i=e.length;r.p(e);var n=oa(e,t,la(t),8),o=n.length;return aa(n,t),Yt(n,o-8,r.d()),Yt(n,o-4,i),n}var ua=typeof TextDecoder<"u"&&new TextDecoder,ca=0;try{ua.decode(Qn,{stream:!0}),ca=1;}catch{}var Zt=5e3,lt=class{constructor(t){this.opts=t;this.buffer=[];this.sending=false;this.retryDelay=1e3;this.stopped=false;this.onVisibility=()=>{document.visibilityState==="hidden"&&this.flush("hidden");};this.onPageHide=()=>{this.flush("pagehide");};this.seq=t.startSeq??0;}start(){this.timer=setInterval(()=>{this.flush("timer");},this.opts.flushIntervalMs),document.addEventListener("visibilitychange",this.onVisibility,{capture:true}),window.addEventListener("pagehide",this.onPageHide,{capture:true});}enqueue(t){this.stopped||(this.buffer.push(t),this.buffer.length>=Zt&&(this.flush("backpressure"),this.buffer.length>=Zt&&(this.buffer=this.buffer.filter((r,i)=>r.type!=="dom"||i%2===0))));}async flush(t){if(this.sending||this.buffer.length===0)return true;this.sending=true;let r=this.buffer;this.buffer=[];let i={siteKey:this.opts.siteKey,sessionId:this.opts.sessionId,seq:this.seq,meta:this.opts.getMeta(),events:r};if(this.opts.beforeSend)try{i=this.opts.beforeSend(i);}catch{i=null;}if(!i)return this.sending=false,true;this.opts.onSeqDispatch?.(this.seq+1);let n=JSON.stringify(i),o=Zn(new TextEncoder().encode(n)),c=await this.send(o,t==="pagehide"||t==="hidden");if(this.opts.onFlush?.({bytes:o.byteLength,events:r.length,ok:c}),c)return this.seq++,this.retryDelay=1e3,this.sending=false,true;if(this.buffer=r.slice(-Zt).concat(this.buffer),this.sending=false,!this.stopped){let p=this.retryDelay*(.5+Math.random());this.retryDelay=Math.min(this.retryDelay*2,3e4),setTimeout(()=>{this.flush("timer");},p);}return false}async send(t,r){let i=`${this.opts.endpoint.replace(/\/$/,"")}/v1/batch`,n={"content-type":"application/octet-stream","x-obsrviq-key":this.opts.siteKey},o=t;if(r){let a=new Blob([t],{type:"application/octet-stream"});if(typeof navigator.sendBeacon=="function")try{if(navigator.sendBeacon(i,a))return !0}catch{}try{return fetch(i,{method:"POST",body:o,headers:n,keepalive:!0,credentials:"omit",mode:"cors"}).catch(()=>{}),!0}catch{return false}}let c=new AbortController,p=setTimeout(()=>c.abort(),15e3);try{return (await fetch(i,{method:"POST",body:o,headers:n,credentials:"omit",mode:"cors",signal:c.signal})).ok}catch{return false}finally{clearTimeout(p);}}stop(){this.stopped=true,this.timer&&clearInterval(this.timer),document.removeEventListener("visibilitychange",this.onVisibility,{capture:true}),window.removeEventListener("pagehide",this.onPageHide,{capture:true}),this.flush("manual");}};var fa=Object.defineProperty,ha=(e,t,r)=>t in e?fa(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r,O=(e,t,r)=>ha(e,typeof t!="symbol"?t+"":t,r),Kn,da=Object.defineProperty,pa=(e,t,r)=>t in e?da(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r,ei=(e,t,r)=>pa(e,typeof t!="symbol"?t+"":t,r),ne=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(ne||{}),ti={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ri={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ut={},xs={},ma=()=>!!globalThis.Zone;function wn(e){if(ut[e])return ut[e];let t=globalThis[e],r=t.prototype,i=e in ti?ti[e]:void 0,n=!!(i&&i.every(p=>{var a,h;return !!((h=(a=Object.getOwnPropertyDescriptor(r,p))==null?void 0:a.get)!=null&&h.toString().includes("[native code]"))})),o=e in ri?ri[e]:void 0,c=!!(o&&o.every(p=>{var a;return typeof r[p]=="function"&&((a=r[p])==null?void 0:a.toString().includes("[native code]"))}));if(n&&c&&!ma())return ut[e]=t.prototype,t.prototype;try{let p=document.createElement("iframe");p.style.display="none",document.body.appendChild(p);let a=p.contentWindow;if(!a)return t.prototype;let h=a[e].prototype;if(!h)return p.remove(),r;let s=navigator.userAgent;return s.includes("Safari")&&!s.includes("Chrome")?(p.classList.add("rr-block"),p.setAttribute("__rrwebUntaintedMutationObserver",""),xs[e]=()=>p.remove()):p.remove(),ut[e]=h}catch{return r}}var Kt={};function Ie(e,t,r){var i;let n=`${e}.${String(r)}`;if(Kt[n])return Kt[n].call(t);let o=wn(e),c=(i=Object.getOwnPropertyDescriptor(o,r))==null?void 0:i.get;return c?(Kt[n]=c,c.call(t)):t[r]}var er={};function Es(e,t,r){let i=`${e}.${String(r)}`;if(er[i])return er[i].bind(t);let o=wn(e)[r];return typeof o!="function"?t[r]:(er[i]=o,o.bind(t))}function ga(e){return Ie("Node",e,"ownerDocument")}function ya(e){return Ie("Node",e,"childNodes")}function va(e){return Ie("Node",e,"parentNode")}function wa(e){return Ie("Node",e,"parentElement")}function ba(e){return Ie("Node",e,"textContent")}function Sa(e,t){return Es("Node",e,"contains")(t)}function Ca(e){return Es("Node",e,"getRootNode")()}function xa(e){return !e||!("host"in e)?null:Ie("ShadowRoot",e,"host")}function Ea(e){return e.styleSheets}function Ma(e){return !e||!("shadowRoot"in e)?null:Ie("Element",e,"shadowRoot")}function Ra(e,t){return Ie("Element",e,"querySelector")(t)}function Ia(e,t){return Ie("Element",e,"querySelectorAll")(t)}function Na(){return [wn("MutationObserver").constructor,xs.MutationObserver??(()=>{})]}var Ms=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Ms=()=>new Date().getTime());function Oa(e,t,r){try{if(!(t in e))return ()=>{};let i=e[t],n=r(i);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=n,()=>{e[t]=i;}}catch{return ()=>{}}}var se={ownerDocument:ga,childNodes:ya,parentNode:va,parentElement:wa,textContent:ba,contains:Sa,getRootNode:Ca,host:xa,styleSheets:Ea,shadowRoot:Ma,querySelector:Ra,querySelectorAll:Ia,nowTimestamp:Ms,mutationObserverCtor:Na,patch:Oa};function Rs(e){return e.nodeType===e.ELEMENT_NODE}function Je(e){let t=e&&"host"in e&&"mode"in e&&se.host(e)||null;return !!(t&&"shadowRoot"in t&&se.shadowRoot(t)===e)}function Qe(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Aa(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Ta(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function on(e){try{let t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&(r=e.ownerNode.baseURI);let i=Array.from(t,n=>Is(n,r)).join("");return Aa(i)}catch{return null}}function Is(e,t){if(Da(e)){let r;try{r=on(e.styleSheet)||Ta(e);}catch{r=e.cssText;}return e.styleSheet.href?xt(r,e.styleSheet.href):r}else {let r=e.cssText;return La(e)&&e.selectorText.includes(":")&&(r=ka(r)),t?xt(r,t):r}}function ka(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Da(e){return "styleSheet"in e}function La(e){return "selectorText"in e}var bt=class{constructor(){ei(this,"idNodeMap",new Map),ei(this,"nodeMetaMap",new WeakMap);}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(i=>this.removeNodeFromMap(i));}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r);}replace(t,r){let i=this.getNode(t);if(i){let n=this.nodeMetaMap.get(i);n&&this.nodeMetaMap.set(r,n);}this.idNodeMap.set(t,r);}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap;}};function Pa(){return new bt}function St({element:e,maskInputOptions:t,tagName:r,type:i,value:n,maskInputFn:o}){let c=n||"",p=i&&De(i);return (t[r.toLowerCase()]||p&&t[p])&&(o?c=o(c,e):c="*".repeat(c.length)),c}function De(e){return e.toLowerCase()}var ni="__rrweb_original__";function _a(e){let t=e.getContext("2d");if(!t)return true;let r=50;for(let i=0;i<e.width;i+=r)for(let n=0;n<e.height;n+=r){let o=t.getImageData,c=ni in o?o[ni]:o;if(new Uint32Array(c.call(t,i,n,Math.min(r,e.width-i),Math.min(r,e.height-n)).data.buffer).some(a=>a!==0))return false}return true}function Ct(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?De(t):null}function Ns(e,t){let r;try{r=new URL(e,t??window.location.href);}catch{return null}let i=/\.([0-9a-z]+)(?:$)/i,n=r.pathname.match(i);return n?.[1]??null}function Fa(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var Ua=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,za=/^(?:[a-z+]+:)?\/\//i,Ba=/^www\..*/i,qa=/^(data:)([^,]*),(.*)/i;function xt(e,t){return (e||"").replace(Ua,(r,i,n,o,c,p)=>{let a=n||c||p,h=i||o||"";if(!a)return r;if(za.test(a)||Ba.test(a))return `url(${h}${a}${h})`;if(qa.test(a))return `url(${h}${a}${h})`;if(a[0]==="/")return `url(${h}${Fa(t)+a}${h})`;let s=t.split("/"),f=a.split("/");s.pop();for(let u of f)u!=="."&&(u===".."?s.pop():s.push(u));return `url(${h}${s.join("/")}${h})`})}function ct(e,t=false){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function $a(e,t,r=false){let i=Array.from(t.childNodes),n=[],o=0;if(i.length>1&&e&&typeof e=="string"){let c=ct(e,r),p=c.length/e.length;for(let a=1;a<i.length;a++)if(i[a].textContent&&typeof i[a].textContent=="string"){let h=ct(i[a].textContent,r),s=100,f=3;for(;f<h.length&&(h[f].match(/[a-zA-Z0-9]/)||h.indexOf(h.substring(0,f),1)!==-1);f++);for(;f<h.length;f++){let u=h.substring(0,f),l=c.split(u),m=-1;if(l.length===2)m=l[0].length;else if(l.length>2&&l[0]===""&&i[a-1].textContent!=="")m=c.indexOf(u,1);else if(l.length===1){if(u=u.substring(0,u.length-1),l=c.split(u),l.length<=1)return n.push(e),n;f=s+1;}else f===h.length-1&&(m=c.indexOf(u));if(l.length>=2&&f>s){let d=i[a-1].textContent;if(d&&typeof d=="string"){let g=ct(d).length;m=c.indexOf(u,g);}m===-1&&(m=l[0].length);}if(m!==-1){let d=Math.floor(m/p);for(;d>0&&d<e.length;){if(o+=1,o>50*i.length)return n.push(e),n;let g=ct(e.substring(0,d),r);if(g.length===m){n.push(e.substring(0,d)),e=e.substring(d),c=c.substring(m);break}else g.length<m?d+=Math.max(1,Math.floor((m-g.length)/p)):d-=Math.max(1,Math.floor((g.length-m)*p));}break}}}}return n.push(e),n}function Wa(e,t){return $a(e,t).join("/* rr_split */")}var Ha=1,ja=new RegExp("[^a-z0-9-_:]"),Ke=-2;function Os(){return Ha++}function Va(e){if(e instanceof HTMLFormElement)return "form";let t=De(e.tagName);return ja.test(t)?"div":t}var Ue,ii,Ga=/^[^ \t\n\r\u000c]+/,Ya=/^[, \t\n\r\u000c]+/;function Xa(e,t){if(t.trim()==="")return t;let r=0;function i(o){let c,p=o.exec(t.substring(r));return p?(c=p[0],r+=c.length,c):""}let n=[];for(;i(Ya),!(r>=t.length);){let o=i(Ga);if(o.slice(-1)===",")o=qe(e,o.substring(0,o.length-1)),n.push(o);else {let c="";o=qe(e,o);let p=false;for(;;){let a=t.charAt(r);if(a===""){n.push((o+c).trim());break}else if(p)a===")"&&(p=false);else if(a===","){r+=1,n.push((o+c).trim());break}else a==="("&&(p=true);c+=a,r+=1;}}}return n.join(", ")}var si=new WeakMap;function qe(e,t){return !t||t.trim()===""?t:bn(e,t)}function Ja(e){return !!(e.tagName==="svg"||e.ownerSVGElement)}function bn(e,t){let r=si.get(e);if(r||(r=e.createElement("a"),si.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function As(e,t,r,i){return i&&(r==="src"||r==="href"&&!(t==="use"&&i[0]==="#")||r==="xlink:href"&&i[0]!=="#"||r==="background"&&["table","td","th"].includes(t)?qe(e,i):r==="srcset"?Xa(e,i):r==="style"?xt(i,bn(e)):t==="object"&&r==="data"?qe(e,i):i)}function Ts(e,t,r){return ["video","audio"].includes(e)&&t==="autoplay"}function Qa(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return !0}else for(let i=e.classList.length;i--;){let n=e.classList[i];if(t.test(n))return !0}if(r)return e.matches(r)}catch{}return false}function Et(e,t,r){if(!e)return false;if(e.nodeType!==e.ELEMENT_NODE)return r?Et(se.parentNode(e),t,r):false;for(let i=e.classList.length;i--;){let n=e.classList[i];if(t.test(n))return true}return r?Et(se.parentNode(e),t,r):false}function ks(e,t,r,i){let n;if(Rs(e)){if(n=e,!se.childNodes(n).length)return false}else {if(se.parentElement(e)===null)return false;n=se.parentElement(e);}try{if(typeof t=="string"){if(i){if(n.closest(`.${t}`))return !0}else if(n.classList.contains(t))return !0}else if(Et(n,t,i))return !0;if(r){if(i){if(n.closest(r))return !0}else if(n.matches(r))return !0}}catch{}return false}function Za(e,t,r){let i=e.contentWindow;if(!i)return;let n=false,o;try{o=i.document.readyState;}catch{return}if(o!=="complete"){let p=setTimeout(()=>{n||(t(),n=true);},r);e.addEventListener("load",()=>{clearTimeout(p),n=true,t();});return}let c="about:blank";if(i.location.href!==c||e.src===c||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t);}function Ka(e,t,r){let i=false,n;try{n=e.sheet;}catch{return}if(n)return;let o=setTimeout(()=>{i||(t(),i=true);},r);e.addEventListener("load",()=>{clearTimeout(o),i=true,t();});}function el(e,t){let{doc:r,mirror:i,blockClass:n,blockSelector:o,needsMask:c,inlineStylesheet:p,maskInputOptions:a={},maskTextFn:h,maskInputFn:s,dataURLOptions:f={},inlineImages:u,recordCanvas:l,keepIframeSrcFn:m,newlyAddedElement:d=false,cssCaptured:g=false}=t,S=tl(r,i);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:ne.Document,childNodes:[],compatMode:e.compatMode}:{type:ne.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return {type:ne.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return nl(e,{doc:r,blockClass:n,blockSelector:o,inlineStylesheet:p,maskInputOptions:a,maskInputFn:s,dataURLOptions:f,inlineImages:u,recordCanvas:l,keepIframeSrcFn:m,newlyAddedElement:d,rootId:S});case e.TEXT_NODE:return rl(e,{doc:r,needsMask:c,maskTextFn:h,rootId:S,cssCaptured:g});case e.CDATA_SECTION_NODE:return {type:ne.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return {type:ne.Comment,textContent:se.textContent(e)||"",rootId:S};default:return false}}function tl(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return r===1?void 0:r}function rl(e,t){let{needsMask:r,maskTextFn:i,rootId:n,cssCaptured:o}=t,c=se.parentNode(e),p=c&&c.tagName,a="",h=p==="STYLE"?true:void 0,s=p==="SCRIPT"?true:void 0;return s?a="SCRIPT_PLACEHOLDER":o||(a=se.textContent(e),h&&a&&(a=xt(a,bn(t.doc)))),!h&&!s&&a&&r&&(a=i?i(a,se.parentElement(e)):a.replace(/[\S]/g,"*")),{type:ne.Text,textContent:a||"",rootId:n}}function nl(e,t){let{doc:r,blockClass:i,blockSelector:n,inlineStylesheet:o,maskInputOptions:c={},maskInputFn:p,dataURLOptions:a={},inlineImages:h,recordCanvas:s,keepIframeSrcFn:f,newlyAddedElement:u=false,rootId:l}=t,m=Qa(e,i,n),d=Va(e),g={},S=e.attributes.length;for(let b=0;b<S;b++){let x=e.attributes[b];Ts(d,x.name,x.value)||(g[x.name]=As(r,d,De(x.name),x.value));}if(d==="link"&&o){let b=Array.from(r.styleSheets).find(v=>v.href===e.href),x=null;b&&(x=on(b)),x&&(delete g.rel,delete g.href,g._cssText=x);}if(d==="style"&&e.sheet){let b=on(e.sheet);b&&(e.childNodes.length>1&&(b=Wa(b,e)),g._cssText=b);}if(["input","textarea","select"].includes(d)){let b=e.value,x=e.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&b?g.value=St({element:e,type:Ct(e),tagName:d,value:b,maskInputOptions:c,maskInputFn:p}):x&&(g.checked=x);}if(d==="option"&&(e.selected&&!c.select?g.selected=true:delete g.selected),d==="dialog"&&e.open&&(g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),d==="canvas"&&s){if(e.__context==="2d")_a(e)||(g.rr_dataURL=e.toDataURL(a.type,a.quality));else if(!("__context"in e)){let b=e.toDataURL(a.type,a.quality),x=r.createElement("canvas");x.width=e.width,x.height=e.height;let v=x.toDataURL(a.type,a.quality);b!==v&&(g.rr_dataURL=b);}}if(d==="img"&&h){Ue||(Ue=r.createElement("canvas"),ii=Ue.getContext("2d"));let b=e,x=b.currentSrc||b.getAttribute("src")||"<unknown-src>",v=b.crossOrigin,y=()=>{b.removeEventListener("load",y);try{Ue.width=b.naturalWidth,Ue.height=b.naturalHeight,ii.drawImage(b,0,0),g.rr_dataURL=Ue.toDataURL(a.type,a.quality);}catch(C){if(b.crossOrigin!=="anonymous"){b.crossOrigin="anonymous",b.complete&&b.naturalWidth!==0?y():b.addEventListener("load",y);return}else console.warn(`Cannot inline img src=${x}! Error: ${C}`);}b.crossOrigin==="anonymous"&&(v?g.crossOrigin=v:b.removeAttribute("crossorigin"));};b.complete&&b.naturalWidth!==0?y():b.addEventListener("load",y);}if(["audio","video"].includes(d)){let b=g;b.rr_mediaState=e.paused?"paused":"played",b.rr_mediaCurrentTime=e.currentTime,b.rr_mediaPlaybackRate=e.playbackRate,b.rr_mediaMuted=e.muted,b.rr_mediaLoop=e.loop,b.rr_mediaVolume=e.volume;}if(u||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),m){let{width:b,height:x}=e.getBoundingClientRect();g={class:g.class,rr_width:`${b}px`,rr_height:`${x}px`};}d==="iframe"&&!f(g.src)&&(e.contentDocument||(g.rr_src=g.src),delete g.src);let w;try{customElements.get(d)&&(w=!0);}catch{}return {type:ne.Element,tagName:d,attributes:g,childNodes:[],isSVG:Ja(e)||void 0,needBlock:m,rootId:l,isCustom:w}}function G(e){return e==null?"":e.toLowerCase()}function Ds(e){return e===true||e==="all"?{script:true,comment:true,headFavicon:true,headWhitespace:true,headMetaSocial:true,headMetaRobots:true,headMetaHttpEquiv:true,headMetaVerification:true,headMetaAuthorship:e==="all",headMetaDescKeywords:e==="all",headTitleMutations:e==="all"}:e||{}}function il(e,t){if(t.comment&&e.type===ne.Comment)return true;if(e.type===ne.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Ns(e.attributes.href)==="js"))return true;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(G(e.attributes.name).match(/^msapplication-tile(image|color)$/)||G(e.attributes.name)==="application-name"||G(e.attributes.rel)==="icon"||G(e.attributes.rel)==="apple-touch-icon"||G(e.attributes.rel)==="shortcut icon")))return true;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&G(e.attributes.name).match(/^description|keywords$/))return true;if(t.headMetaSocial&&(G(e.attributes.property).match(/^(og|twitter|fb):/)||G(e.attributes.name).match(/^(og|twitter):/)||G(e.attributes.name)==="pinterest"))return true;if(t.headMetaRobots&&(G(e.attributes.name)==="robots"||G(e.attributes.name)==="googlebot"||G(e.attributes.name)==="bingbot"))return true;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return true;if(t.headMetaAuthorship&&(G(e.attributes.name)==="author"||G(e.attributes.name)==="generator"||G(e.attributes.name)==="framework"||G(e.attributes.name)==="publisher"||G(e.attributes.name)==="progid"||G(e.attributes.property).match(/^article:/)||G(e.attributes.property).match(/^product:/)))return true;if(t.headMetaVerification&&(G(e.attributes.name)==="google-site-verification"||G(e.attributes.name)==="yandex-verification"||G(e.attributes.name)==="csrf-token"||G(e.attributes.name)==="p:domain_verify"||G(e.attributes.name)==="verify-v1"||G(e.attributes.name)==="verification"||G(e.attributes.name)==="shopify-checkout-api-token"))return true}}return false}function $e(e,t){let{doc:r,mirror:i,blockClass:n,blockSelector:o,maskTextClass:c,maskTextSelector:p,skipChild:a=false,inlineStylesheet:h=true,maskInputOptions:s={},maskTextFn:f,maskInputFn:u,slimDOMOptions:l,dataURLOptions:m={},inlineImages:d=false,recordCanvas:g=false,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:b=5e3,onStylesheetLoad:x,stylesheetLoadTimeout:v=5e3,keepIframeSrcFn:y=()=>false,newlyAddedElement:C=false,cssCaptured:M=false}=t,{needsMask:I}=t,{preserveWhiteSpace:R=true}=t;I||(I=ks(e,c,p,I===void 0));let k=el(e,{doc:r,mirror:i,blockClass:n,blockSelector:o,needsMask:I,inlineStylesheet:h,maskInputOptions:s,maskTextFn:f,maskInputFn:u,dataURLOptions:m,inlineImages:d,recordCanvas:g,keepIframeSrcFn:y,newlyAddedElement:C,cssCaptured:M});if(!k)return console.warn(e,"not serialized"),null;let A;i.hasNode(e)?A=i.getId(e):il(k,l)||!R&&k.type===ne.Text&&!k.textContent.replace(/^\s+|\s+$/gm,"").length?A=Ke:A=Os();let E=Object.assign(k,{id:A});if(i.add(e,E),A===Ke)return null;S&&S(e);let K=!a;if(E.type===ne.Element){K=K&&!E.needBlock,delete E.needBlock;let L=se.shadowRoot(e);L&&Qe(L)&&(E.isShadowHost=true);}if((E.type===ne.Document||E.type===ne.Element)&&K){l.headWhitespace&&E.type===ne.Element&&E.tagName==="head"&&(R=false);let L={doc:r,mirror:i,blockClass:n,blockSelector:o,needsMask:I,maskTextClass:c,maskTextSelector:p,skipChild:a,inlineStylesheet:h,maskInputOptions:s,maskTextFn:f,maskInputFn:u,slimDOMOptions:l,dataURLOptions:m,inlineImages:d,recordCanvas:g,preserveWhiteSpace:R,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:x,stylesheetLoadTimeout:v,keepIframeSrcFn:y,cssCaptured:false};if(!(E.type===ne.Element&&E.tagName==="textarea"&&E.attributes.value!==void 0)){E.type===ne.Element&&E.attributes._cssText!==void 0&&typeof E.attributes._cssText=="string"&&(L.cssCaptured=true);for(let z of Array.from(se.childNodes(e))){let X=$e(z,L);X&&E.childNodes.push(X);}}let T=null;if(Rs(e)&&(T=se.shadowRoot(e)))for(let z of Array.from(se.childNodes(T))){let X=$e(z,L);X&&(Qe(T)&&(X.isShadow=true),E.childNodes.push(X));}}let Y=se.parentNode(e);return Y&&Je(Y)&&Qe(Y)&&(E.isShadow=true),E.type===ne.Element&&E.tagName==="iframe"&&Za(e,()=>{let L=e.contentDocument;if(L&&w){let T=$e(L,{doc:L,mirror:i,blockClass:n,blockSelector:o,needsMask:I,maskTextClass:c,maskTextSelector:p,skipChild:false,inlineStylesheet:h,maskInputOptions:s,maskTextFn:f,maskInputFn:u,slimDOMOptions:l,dataURLOptions:m,inlineImages:d,recordCanvas:g,preserveWhiteSpace:R,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:x,stylesheetLoadTimeout:v,keepIframeSrcFn:y});T&&w(e,T);}},b),E.type===ne.Element&&E.tagName==="link"&&typeof E.attributes.rel=="string"&&(E.attributes.rel==="stylesheet"||E.attributes.rel==="preload"&&typeof E.attributes.href=="string"&&Ns(E.attributes.href)==="css")&&Ka(e,()=>{if(x){let L=$e(e,{doc:r,mirror:i,blockClass:n,blockSelector:o,needsMask:I,maskTextClass:c,maskTextSelector:p,skipChild:false,inlineStylesheet:h,maskInputOptions:s,maskTextFn:f,maskInputFn:u,slimDOMOptions:l,dataURLOptions:m,inlineImages:d,recordCanvas:g,preserveWhiteSpace:R,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:x,stylesheetLoadTimeout:v,keepIframeSrcFn:y});L&&x(e,L);}},v),E}function sl(e,t){let{mirror:r=new bt,blockClass:i="rr-block",blockSelector:n=null,maskTextClass:o="rr-mask",maskTextSelector:c=null,inlineStylesheet:p=true,inlineImages:a=false,recordCanvas:h=false,maskAllInputs:s=false,maskTextFn:f,maskInputFn:u,slimDOM:l=false,dataURLOptions:m,preserveWhiteSpace:d,onSerialize:g,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:b,stylesheetLoadTimeout:x,keepIframeSrcFn:v=()=>false}=t,y=s===true?{color:true,date:true,"datetime-local":true,email:true,month:true,number:true,range:true,search:true,tel:true,text:true,time:true,url:true,week:true,textarea:true,select:true,password:true}:s===false?{password:true}:s,C=Ds(l);return $e(e,{doc:e,mirror:r,blockClass:i,blockSelector:n,maskTextClass:o,maskTextSelector:c,skipChild:false,inlineStylesheet:p,maskInputOptions:y,maskTextFn:f,maskInputFn:u,slimDOMOptions:C,dataURLOptions:m,inlineImages:a,recordCanvas:h,preserveWhiteSpace:d,onSerialize:g,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:b,stylesheetLoadTimeout:x,keepIframeSrcFn:v,newlyAddedElement:false})}function al(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ll(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype;}else r={};return Object.defineProperty(r,"__esModule",{value:true}),Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,n.get?n:{enumerable:true,get:function(){return e[i]}});}),r}var ft={exports:{}},oi;function ul(){if(oi)return ft.exports;oi=1;var e=String,t=function(){return {isColorSupported:false,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return ft.exports=t(),ft.exports.createColors=t,ft.exports}var cl={},fl=Object.freeze(Object.defineProperty({__proto__:null,default:cl},Symbol.toStringTag,{value:"Module"})),be=ll(fl),tr,ai;function Sn(){if(ai)return tr;ai=1;let e=ul(),t=be;class r extends Error{constructor(n,o,c,p,a,h){super(n),this.name="CssSyntaxError",this.reason=n,a&&(this.file=a),p&&(this.source=p),h&&(this.plugin=h),typeof o<"u"&&typeof c<"u"&&(typeof o=="number"?(this.line=o,this.column=c):(this.line=o.line,this.column=o.column,this.endLine=c.line,this.endColumn=c.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r);}setMessage(){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(n){if(!this.source)return "";let o=this.source;n==null&&(n=e.isColorSupported),t&&n&&(o=t(o));let c=o.split(/\r?\n/),p=Math.max(this.line-3,0),a=Math.min(this.line+2,c.length),h=String(a).length,s,f;if(n){let{bold:u,gray:l,red:m}=e.createColors(true);s=d=>u(m(d)),f=d=>l(d);}else s=f=u=>u;return c.slice(p,a).map((u,l)=>{let m=p+1+l,d=" "+(" "+m).slice(-h)+" | ";if(m===this.line){let g=f(d.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return s(">")+f(d)+u+`
2
+ `+g+s("^")}return " "+f(d)+u}).join(`
3
+ `)}toString(){let n=this.showSourceCode();return n&&(n=`
4
+
5
+ `+n+`
6
+ `),this.name+": "+this.message+n}}return tr=r,r.default=r,tr}var ht={},li;function Cn(){return li||(li=1,ht.isClean=Symbol("isClean"),ht.my=Symbol("my")),ht}var rr,ui;function Ls(){if(ui)return rr;ui=1;let e={after:`
7
+ `,beforeClose:`
8
+ `,beforeComment:`
9
+ `,beforeDecl:`
10
+ `,beforeOpen:" ",beforeRule:`
11
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:false};function t(i){return i[0].toUpperCase()+i.slice(1)}class r{constructor(n){this.builder=n;}atrule(n,o){let c="@"+n.name,p=n.params?this.rawValue(n,"params"):"";if(typeof n.raws.afterName<"u"?c+=n.raws.afterName:p&&(c+=" "),n.nodes)this.block(n,c+p);else {let a=(n.raws.between||"")+(o?";":"");this.builder(c+p+a,n);}}beforeAfter(n,o){let c;n.type==="decl"?c=this.raw(n,null,"beforeDecl"):n.type==="comment"?c=this.raw(n,null,"beforeComment"):o==="before"?c=this.raw(n,null,"beforeRule"):c=this.raw(n,null,"beforeClose");let p=n.parent,a=0;for(;p&&p.type!=="root";)a+=1,p=p.parent;if(c.includes(`
12
+ `)){let h=this.raw(n,null,"indent");if(h.length)for(let s=0;s<a;s++)c+=h;}return c}block(n,o){let c=this.raw(n,"between","beforeOpen");this.builder(o+c+"{",n,"start");let p;n.nodes&&n.nodes.length?(this.body(n),p=this.raw(n,"after")):p=this.raw(n,"after","emptyBody"),p&&this.builder(p),this.builder("}",n,"end");}body(n){let o=n.nodes.length-1;for(;o>0&&n.nodes[o].type==="comment";)o-=1;let c=this.raw(n,"semicolon");for(let p=0;p<n.nodes.length;p++){let a=n.nodes[p],h=this.raw(a,"before");h&&this.builder(h),this.stringify(a,o!==p||c);}}comment(n){let o=this.raw(n,"left","commentLeft"),c=this.raw(n,"right","commentRight");this.builder("/*"+o+n.text+c+"*/",n);}decl(n,o){let c=this.raw(n,"between","colon"),p=n.prop+c+this.rawValue(n,"value");n.important&&(p+=n.raws.important||" !important"),o&&(p+=";"),this.builder(p,n);}document(n){this.body(n);}raw(n,o,c){let p;if(c||(c=o),o&&(p=n.raws[o],typeof p<"u"))return p;let a=n.parent;if(c==="before"&&(!a||a.type==="root"&&a.first===n||a&&a.type==="document"))return "";if(!a)return e[c];let h=n.root();if(h.rawCache||(h.rawCache={}),typeof h.rawCache[c]<"u")return h.rawCache[c];if(c==="before"||c==="after")return this.beforeAfter(n,c);{let s="raw"+t(c);this[s]?p=this[s](h,n):h.walk(f=>{if(p=f.raws[o],typeof p<"u")return false});}return typeof p>"u"&&(p=e[c]),h.rawCache[c]=p,p}rawBeforeClose(n){let o;return n.walk(c=>{if(c.nodes&&c.nodes.length>0&&typeof c.raws.after<"u")return o=c.raws.after,o.includes(`
13
+ `)&&(o=o.replace(/[^\n]+$/,"")),false}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(n,o){let c;return n.walkComments(p=>{if(typeof p.raws.before<"u")return c=p.raws.before,c.includes(`
14
+ `)&&(c=c.replace(/[^\n]+$/,"")),false}),typeof c>"u"?c=this.raw(o,null,"beforeDecl"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeDecl(n,o){let c;return n.walkDecls(p=>{if(typeof p.raws.before<"u")return c=p.raws.before,c.includes(`
15
+ `)&&(c=c.replace(/[^\n]+$/,"")),false}),typeof c>"u"?c=this.raw(o,null,"beforeRule"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeOpen(n){let o;return n.walk(c=>{if(c.type!=="decl"&&(o=c.raws.between,typeof o<"u"))return false}),o}rawBeforeRule(n){let o;return n.walk(c=>{if(c.nodes&&(c.parent!==n||n.first!==c)&&typeof c.raws.before<"u")return o=c.raws.before,o.includes(`
16
+ `)&&(o=o.replace(/[^\n]+$/,"")),false}),o&&(o=o.replace(/\S/g,"")),o}rawColon(n){let o;return n.walkDecls(c=>{if(typeof c.raws.between<"u")return o=c.raws.between.replace(/[^\s:]/g,""),false}),o}rawEmptyBody(n){let o;return n.walk(c=>{if(c.nodes&&c.nodes.length===0&&(o=c.raws.after,typeof o<"u"))return false}),o}rawIndent(n){if(n.raws.indent)return n.raws.indent;let o;return n.walk(c=>{let p=c.parent;if(p&&p!==n&&p.parent&&p.parent===n&&typeof c.raws.before<"u"){let a=c.raws.before.split(`
17
+ `);return o=a[a.length-1],o=o.replace(/\S/g,""),false}}),o}rawSemicolon(n){let o;return n.walk(c=>{if(c.nodes&&c.nodes.length&&c.last.type==="decl"&&(o=c.raws.semicolon,typeof o<"u"))return false}),o}rawValue(n,o){let c=n[o],p=n.raws[o];return p&&p.value===c?p.raw:c}root(n){this.body(n),n.raws.after&&this.builder(n.raws.after);}rule(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end");}stringify(n,o){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,o);}}return rr=r,r.default=r,rr}var nr,ci;function Nt(){if(ci)return nr;ci=1;let e=Ls();function t(r,i){new e(i).stringify(r);}return nr=t,t.default=t,nr}var ir,fi;function Ot(){if(fi)return ir;fi=1;let{isClean:e,my:t}=Cn(),r=Sn(),i=Ls(),n=Nt();function o(p,a){let h=new p.constructor;for(let s in p){if(!Object.prototype.hasOwnProperty.call(p,s)||s==="proxyCache")continue;let f=p[s],u=typeof f;s==="parent"&&u==="object"?a&&(h[s]=a):s==="source"?h[s]=f:Array.isArray(f)?h[s]=f.map(l=>o(l,h)):(u==="object"&&f!==null&&(f=o(f)),h[s]=f);}return h}class c{constructor(a={}){this.raws={},this[e]=false,this[t]=true;for(let h in a)if(h==="nodes"){this.nodes=[];for(let s of a[h])typeof s.clone=="function"?this.append(s.clone()):this.append(s);}else this[h]=a[h];}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let h=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${h.input.from}:${h.start.line}:${h.start.column}$&`);}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let h in a)this[h]=a[h];return this}before(a){return this.parent.insertBefore(this,a),this}cleanRaws(a){delete this.raws.before,delete this.raws.after,a||delete this.raws.between;}clone(a={}){let h=o(this);for(let s in a)h[s]=a[s];return h}cloneAfter(a={}){let h=this.clone(a);return this.parent.insertAfter(this,h),h}cloneBefore(a={}){let h=this.clone(a);return this.parent.insertBefore(this,h),h}error(a,h={}){if(this.source){let{end:s,start:f}=this.rangeBy(h);return this.source.input.error(a,{column:f.column,line:f.line},{column:s.column,line:s.line},h)}return new r(a)}getProxyProcessor(){return {get(a,h){return h==="proxyOf"?a:h==="root"?()=>a.root().toProxy():a[h]},set(a,h,s){return a[h]===s||(a[h]=s,(h==="prop"||h==="value"||h==="name"||h==="params"||h==="important"||h==="text")&&a.markDirty()),true}}}markDirty(){if(this[e]){this[e]=false;let a=this;for(;a=a.parent;)a[e]=false;}}next(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a+1]}positionBy(a,h){let s=this.source.start;if(a.index)s=this.positionInside(a.index,h);else if(a.word){h=this.toString();let f=h.indexOf(a.word);f!==-1&&(s=this.positionInside(f,h));}return s}positionInside(a,h){let s=h||this.toString(),f=this.source.start.column,u=this.source.start.line;for(let l=0;l<a;l++)s[l]===`
18
+ `?(f=1,u+=1):f+=1;return {column:f,line:u}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let h={column:this.source.start.column,line:this.source.start.line},s=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:h.column+1,line:h.line};if(a.word){let f=this.toString(),u=f.indexOf(a.word);u!==-1&&(h=this.positionInside(u,f),s=this.positionInside(u+a.word.length,f));}else a.start?h={column:a.start.column,line:a.start.line}:a.index&&(h=this.positionInside(a.index)),a.end?s={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?s=this.positionInside(a.endIndex):a.index&&(s=this.positionInside(a.index+1));return (s.line<h.line||s.line===h.line&&s.column<=h.column)&&(s={column:h.column+1,line:h.line}),{end:s,start:h}}raw(a,h){return new i().raw(this,a,h)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let h=this,s=false;for(let f of a)f===this?s=true:s?(this.parent.insertAfter(h,f),h=f):this.parent.insertBefore(h,f);s||this.remove();}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,h){let s={},f=h==null;h=h||new Map;let u=0;for(let l in this){if(!Object.prototype.hasOwnProperty.call(this,l)||l==="parent"||l==="proxyCache")continue;let m=this[l];if(Array.isArray(m))s[l]=m.map(d=>typeof d=="object"&&d.toJSON?d.toJSON(null,h):d);else if(typeof m=="object"&&m.toJSON)s[l]=m.toJSON(null,h);else if(l==="source"){let d=h.get(m.input);d==null&&(d=u,h.set(m.input,u),u++),s[l]={end:m.end,inputId:d,start:m.start};}else s[l]=m;}return f&&(s.inputs=[...h.keys()].map(l=>l.toJSON())),s}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=n){a.stringify&&(a=a.stringify);let h="";return a(this,s=>{h+=s;}),h}warn(a,h,s){let f={node:this};for(let u in s)f[u]=s[u];return a.warn(h,f)}get proxyOf(){return this}}return ir=c,c.default=c,ir}var sr,hi;function At(){if(hi)return sr;hi=1;let e=Ot();class t extends e{constructor(i){i&&typeof i.value<"u"&&typeof i.value!="string"&&(i={...i,value:String(i.value)}),super(i),this.type="decl";}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return sr=t,t.default=t,sr}var or,di;function hl(){if(di)return or;di=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return or={nanoid:(i=21)=>{let n="",o=i;for(;o--;)n+=e[Math.random()*64|0];return n},customAlphabet:(i,n=21)=>(o=n)=>{let c="",p=o;for(;p--;)c+=i[Math.random()*i.length|0];return c}},or}var ar,pi;function Ps(){if(pi)return ar;pi=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=be,{existsSync:r,readFileSync:i}=be,{dirname:n,join:o}=be;function c(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class p{constructor(h,s){if(s.map===false)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let f=s.map?s.map.prev:void 0,u=this.loadMap(s.from,f);!this.mapFile&&s.from&&(this.mapFile=s.from),this.mapFile&&(this.root=n(this.mapFile)),u&&(this.text=u);}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(h){let s=/^data:application\/json;charset=utf-?8;base64,/,f=/^data:application\/json;base64,/,u=/^data:application\/json;charset=utf-?8,/,l=/^data:application\/json,/;if(u.test(h)||l.test(h))return decodeURIComponent(h.substr(RegExp.lastMatch.length));if(s.test(h)||f.test(h))return c(h.substr(RegExp.lastMatch.length));let m=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?false:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let s=h.match(/\/\*\s*# sourceMappingURL=/gm);if(!s)return;let f=h.lastIndexOf(s.pop()),u=h.indexOf("*/",f);f>-1&&u>-1&&(this.annotation=this.getAnnotationURL(h.substring(f,u)));}loadFile(h){if(this.root=n(h),r(h))return this.mapFile=h,i(h,"utf-8").toString().trim()}loadMap(h,s){if(s===false)return false;if(s){if(typeof s=="string")return s;if(typeof s=="function"){let f=s(h);if(f){let u=this.loadFile(f);if(!u)throw new Error("Unable to load previous source map: "+f.toString());return u}}else {if(s instanceof e)return t.fromSourceMap(s).toString();if(s instanceof t)return s.toString();if(this.isMap(s))return JSON.stringify(s);throw new Error("Unsupported previous source map format: "+s.toString())}}else {if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let f=this.annotation;return h&&(f=o(n(h),f)),this.loadFile(f)}}}startWith(h,s){return h?h.substr(0,s.length)===s:false}withContent(){return !!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return ar=p,p.default=p,ar}var lr,mi;function Tt(){if(mi)return lr;mi=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=be,{fileURLToPath:r,pathToFileURL:i}=be,{isAbsolute:n,resolve:o}=be,{nanoid:c}=hl(),p=be,a=Sn(),h=Ps(),s=Symbol("fromOffsetCache"),f=!!(e&&t),u=!!(o&&n);class l{constructor(d,g={}){if(d===null||typeof d>"u"||typeof d=="object"&&!d.toString)throw new Error(`PostCSS received ${d} instead of CSS string`);if(this.css=d.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=true,this.css=this.css.slice(1)):this.hasBOM=false,g.from&&(!u||/^\w+:\/\//.test(g.from)||n(g.from)?this.file=g.from:this.file=o(g.from)),u&&f){let S=new h(this.css,g);if(S.text){this.map=S;let w=S.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w));}}this.file||(this.id="<input css "+c(6)+">"),this.map&&(this.map.file=this.from);}error(d,g,S,w={}){let b,x,v;if(g&&typeof g=="object"){let C=g,M=S;if(typeof C.offset=="number"){let I=this.fromOffset(C.offset);g=I.line,S=I.col;}else g=C.line,S=C.column;if(typeof M.offset=="number"){let I=this.fromOffset(M.offset);x=I.line,v=I.col;}else x=M.line,v=M.column;}else if(!S){let C=this.fromOffset(g);g=C.line,S=C.col;}let y=this.origin(g,S,x,v);return y?b=new a(d,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,w.plugin):b=new a(d,x===void 0?g:{column:S,line:g},x===void 0?S:{column:v,line:x},this.css,this.file,w.plugin),b.input={column:S,endColumn:v,endLine:x,line:g,source:this.css},this.file&&(i&&(b.input.url=i(this.file).toString()),b.input.file=this.file),b}fromOffset(d){let g,S;if(this[s])S=this[s];else {let b=this.css.split(`
19
+ `);S=new Array(b.length);let x=0;for(let v=0,y=b.length;v<y;v++)S[v]=x,x+=b[v].length+1;this[s]=S;}g=S[S.length-1];let w=0;if(d>=g)w=S.length-1;else {let b=S.length-2,x;for(;w<b;)if(x=w+(b-w>>1),d<S[x])b=x-1;else if(d>=S[x+1])w=x+1;else {w=x;break}}return {col:d-S[w]+1,line:w+1}}mapResolve(d){return /^\w+:\/\//.test(d)?d:o(this.map.consumer().sourceRoot||this.map.root||".",d)}origin(d,g,S,w){if(!this.map)return false;let b=this.map.consumer(),x=b.originalPositionFor({column:g,line:d});if(!x.source)return false;let v;typeof S=="number"&&(v=b.originalPositionFor({column:w,line:S}));let y;n(x.source)?y=i(x.source):y=new URL(x.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let C={column:x.column,endColumn:v&&v.column,endLine:v&&v.line,line:x.line,url:y.toString()};if(y.protocol==="file:")if(r)C.file=r(y);else throw new Error("file: protocol is not available in this PostCSS build");let M=b.sourceContentFor(x.source);return M&&(C.source=M),C}toJSON(){let d={};for(let g of ["hasBOM","css","file","id"])this[g]!=null&&(d[g]=this[g]);return this.map&&(d.map={...this.map},d.map.consumerCache&&(d.map.consumerCache=void 0)),d}get from(){return this.file||this.id}}return lr=l,l.default=l,p&&p.registerInput&&p.registerInput(l),lr}var ur,gi;function _s(){if(gi)return ur;gi=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=be,{dirname:r,relative:i,resolve:n,sep:o}=be,{pathToFileURL:c}=be,p=Tt(),a=!!(e&&t),h=!!(r&&n&&i&&o);class s{constructor(u,l,m,d){this.stringify=u,this.mapOpts=m.map||{},this.root=l,this.opts=m,this.css=d,this.originalCSS=d,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map;}addAnnotation(){let u;this.isInline()?u="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?u=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?u=this.mapOpts.annotation(this.opts.to,this.root):u=this.outputFile()+".map";let l=`
20
+ `;this.css.includes(`\r
21
+ `)&&(l=`\r
22
+ `),this.css+=l+"/*# sourceMappingURL="+u+" */";}applyPrevMaps(){for(let u of this.previous()){let l=this.toUrl(this.path(u.file)),m=u.root||r(u.file),d;this.mapOpts.sourcesContent===false?(d=new e(u.text),d.sourcesContent&&(d.sourcesContent=null)):d=u.consumer(),this.map.applySourceMap(d,l,this.toUrl(this.path(m)));}}clearAnnotation(){if(this.mapOpts.annotation!==false)if(this.root){let u;for(let l=this.root.nodes.length-1;l>=0;l--)u=this.root.nodes[l],u.type==="comment"&&u.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(l);}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""));}generate(){if(this.clearAnnotation(),h&&a&&this.isMap())return this.generateMap();{let u="";return this.stringify(this.root,l=>{u+=l;}),[u]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let u=this.previous()[0].consumer();u.file=this.outputFile(),this.map=t.fromSourceMap(u,{ignoreInvalidMapping:true});}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:true}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:true});let u=1,l=1,m="<no source>",d={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,S;this.stringify(this.root,(w,b,x)=>{if(this.css+=w,b&&x!=="end"&&(d.generated.line=u,d.generated.column=l-1,b.source&&b.source.start?(d.source=this.sourcePath(b),d.original.line=b.source.start.line,d.original.column=b.source.start.column-1,this.map.addMapping(d)):(d.source=m,d.original.line=1,d.original.column=0,this.map.addMapping(d))),g=w.match(/\n/g),g?(u+=g.length,S=w.lastIndexOf(`
23
+ `),l=w.length-S):l+=w.length,b&&x!=="start"){let v=b.parent||{raws:{}};(!(b.type==="decl"||b.type==="atrule"&&!b.nodes)||b!==v.last||v.raws.semicolon)&&(b.source&&b.source.end?(d.source=this.sourcePath(b),d.original.line=b.source.end.line,d.original.column=b.source.end.column-1,d.generated.line=u,d.generated.column=l-2,this.map.addMapping(d)):(d.source=m,d.original.line=1,d.original.column=0,d.generated.line=u,d.generated.column=l-1,this.map.addMapping(d)));}});}isAnnotation(){return this.isInline()?true:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(u=>u.annotation):true}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let u=this.mapOpts.annotation;return typeof u<"u"&&u!==true?false:this.previous().length?this.previous().some(l=>l.inline):true}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(u=>u.withContent()):true}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(u){if(this.mapOpts.absolute||u.charCodeAt(0)===60||/^\w+:\/\//.test(u))return u;let l=this.memoizedPaths.get(u);if(l)return l;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(n(m,this.mapOpts.annotation)));let d=i(m,u);return this.memoizedPaths.set(u,d),d}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(u=>{if(u.source&&u.source.input.map){let l=u.source.input.map;this.previousMaps.includes(l)||this.previousMaps.push(l);}});else {let u=new p(this.originalCSS,this.opts);u.map&&this.previousMaps.push(u.map);}return this.previousMaps}setSourcesContent(){let u={};if(this.root)this.root.walk(l=>{if(l.source){let m=l.source.input.from;if(m&&!u[m]){u[m]=true;let d=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(d,l.source.input.css);}}});else if(this.css){let l=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(l,this.css);}}sourcePath(u){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(u.source.input.from):this.toUrl(this.path(u.source.input.from))}toBase64(u){return Buffer?Buffer.from(u).toString("base64"):window.btoa(unescape(encodeURIComponent(u)))}toFileUrl(u){let l=this.memoizedFileURLs.get(u);if(l)return l;if(c){let m=c(u).toString();return this.memoizedFileURLs.set(u,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(u){let l=this.memoizedURLs.get(u);if(l)return l;o==="\\"&&(u=u.replace(/\\/g,"/"));let m=encodeURI(u).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(u,m),m}}return ur=s,ur}var cr,yi;function kt(){if(yi)return cr;yi=1;let e=Ot();class t extends e{constructor(i){super(i),this.type="comment";}}return cr=t,t.default=t,cr}var fr,vi;function Le(){if(vi)return fr;vi=1;let{isClean:e,my:t}=Cn(),r=At(),i=kt(),n=Ot(),o,c,p,a;function h(u){return u.map(l=>(l.nodes&&(l.nodes=h(l.nodes)),delete l.source,l))}function s(u){if(u[e]=false,u.proxyOf.nodes)for(let l of u.proxyOf.nodes)s(l);}class f extends n{append(...l){for(let m of l){let d=this.normalize(m,this.last);for(let g of d)this.proxyOf.nodes.push(g);}return this.markDirty(),this}cleanRaws(l){if(super.cleanRaws(l),this.nodes)for(let m of this.nodes)m.cleanRaws(l);}each(l){if(!this.proxyOf.nodes)return;let m=this.getIterator(),d,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(d=this.indexes[m],g=l(this.proxyOf.nodes[d],d),g!==false);)this.indexes[m]+=1;return delete this.indexes[m],g}every(l){return this.nodes.every(l)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let l=this.lastEach;return this.indexes[l]=0,l}getProxyProcessor(){return {get(l,m){return m==="proxyOf"?l:l[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...d)=>l[m](...d.map(g=>typeof g=="function"?(S,w)=>g(S.toProxy(),w):g)):m==="every"||m==="some"?d=>l[m]((g,...S)=>d(g.toProxy(),...S)):m==="root"?()=>l.root().toProxy():m==="nodes"?l.nodes.map(d=>d.toProxy()):m==="first"||m==="last"?l[m].toProxy():l[m]:l[m]},set(l,m,d){return l[m]===d||(l[m]=d,(m==="name"||m==="params"||m==="selector")&&l.markDirty()),true}}}index(l){return typeof l=="number"?l:(l.proxyOf&&(l=l.proxyOf),this.proxyOf.nodes.indexOf(l))}insertAfter(l,m){let d=this.index(l),g=this.normalize(m,this.proxyOf.nodes[d]).reverse();d=this.index(l);for(let w of g)this.proxyOf.nodes.splice(d+1,0,w);let S;for(let w in this.indexes)S=this.indexes[w],d<S&&(this.indexes[w]=S+g.length);return this.markDirty(),this}insertBefore(l,m){let d=this.index(l),g=d===0?"prepend":false,S=this.normalize(m,this.proxyOf.nodes[d],g).reverse();d=this.index(l);for(let b of S)this.proxyOf.nodes.splice(d,0,b);let w;for(let b in this.indexes)w=this.indexes[b],d<=w&&(this.indexes[b]=w+S.length);return this.markDirty(),this}normalize(l,m){if(typeof l=="string")l=h(o(l).nodes);else if(typeof l>"u")l=[];else if(Array.isArray(l)){l=l.slice(0);for(let g of l)g.parent&&g.parent.removeChild(g,"ignore");}else if(l.type==="root"&&this.type!=="document"){l=l.nodes.slice(0);for(let g of l)g.parent&&g.parent.removeChild(g,"ignore");}else if(l.type)l=[l];else if(l.prop){if(typeof l.value>"u")throw new Error("Value field is missed in node creation");typeof l.value!="string"&&(l.value=String(l.value)),l=[new r(l)];}else if(l.selector)l=[new c(l)];else if(l.name)l=[new p(l)];else if(l.text)l=[new i(l)];else throw new Error("Unknown node type in node creation");return l.map(g=>(g[t]||f.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&s(g),typeof g.raws.before>"u"&&m&&typeof m.raws.before<"u"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...l){l=l.reverse();for(let m of l){let d=this.normalize(m,this.first,"prepend").reverse();for(let g of d)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+d.length;}return this.markDirty(),this}push(l){return l.parent=this,this.proxyOf.nodes.push(l),this}removeAll(){for(let l of this.proxyOf.nodes)l.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(l){l=this.index(l),this.proxyOf.nodes[l].parent=void 0,this.proxyOf.nodes.splice(l,1);let m;for(let d in this.indexes)m=this.indexes[d],m>=l&&(this.indexes[d]=m-1);return this.markDirty(),this}replaceValues(l,m,d){return d||(d=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(l,d));}),this.markDirty(),this}some(l){return this.nodes.some(l)}walk(l){return this.each((m,d)=>{let g;try{g=l(m,d);}catch(S){throw m.addToError(S)}return g!==false&&m.walk&&(g=m.walk(l)),g})}walkAtRules(l,m){return m?l instanceof RegExp?this.walk((d,g)=>{if(d.type==="atrule"&&l.test(d.name))return m(d,g)}):this.walk((d,g)=>{if(d.type==="atrule"&&d.name===l)return m(d,g)}):(m=l,this.walk((d,g)=>{if(d.type==="atrule")return m(d,g)}))}walkComments(l){return this.walk((m,d)=>{if(m.type==="comment")return l(m,d)})}walkDecls(l,m){return m?l instanceof RegExp?this.walk((d,g)=>{if(d.type==="decl"&&l.test(d.prop))return m(d,g)}):this.walk((d,g)=>{if(d.type==="decl"&&d.prop===l)return m(d,g)}):(m=l,this.walk((d,g)=>{if(d.type==="decl")return m(d,g)}))}walkRules(l,m){return m?l instanceof RegExp?this.walk((d,g)=>{if(d.type==="rule"&&l.test(d.selector))return m(d,g)}):this.walk((d,g)=>{if(d.type==="rule"&&d.selector===l)return m(d,g)}):(m=l,this.walk((d,g)=>{if(d.type==="rule")return m(d,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return f.registerParse=u=>{o=u;},f.registerRule=u=>{c=u;},f.registerAtRule=u=>{p=u;},f.registerRoot=u=>{a=u;},fr=f,f.default=f,f.rebuild=u=>{u.type==="atrule"?Object.setPrototypeOf(u,p.prototype):u.type==="rule"?Object.setPrototypeOf(u,c.prototype):u.type==="decl"?Object.setPrototypeOf(u,r.prototype):u.type==="comment"?Object.setPrototypeOf(u,i.prototype):u.type==="root"&&Object.setPrototypeOf(u,a.prototype),u[t]=true,u.nodes&&u.nodes.forEach(l=>{f.rebuild(l);});},fr}var hr,wi;function xn(){if(wi)return hr;wi=1;let e=Le(),t,r;class i extends e{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[]);}toResult(o={}){return new t(new r,this,o).stringify()}}return i.registerLazyResult=n=>{t=n;},i.registerProcessor=n=>{r=n;},hr=i,i.default=i,hr}var pr,Si;function Us(){if(Si)return pr;Si=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let n=i.node.rangeBy(i);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column;}for(let n in i)this[n]=i[n];}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return pr=e,e.default=e,pr}var mr,Ci;function En(){if(Ci)return mr;Ci=1;let e=Us();class t{constructor(i,n,o){this.processor=i,this.messages=[],this.root=n,this.opts=o,this.css=void 0,this.map=void 0;}toString(){return this.css}warn(i,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let o=new e(i,n);return this.messages.push(o),o}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}}return mr=t,t.default=t,mr}var gr,xi;function dl(){if(xi)return gr;xi=1;let e=39,t=34,r=92,i=47,n=10,o=32,c=12,p=9,a=13,h=91,s=93,f=40,u=41,l=123,m=125,d=59,g=42,S=58,w=64,b=/[\t\n\f\r "#'()/;[\\\]{}]/g,x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,v=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return gr=function(M,I={}){let R=M.css.valueOf(),k=I.ignoreErrors,A,E,K,Y,L,T,z,X,J,P,ce=R.length,N=0,re=[],W=[];function pe(){return N}function ie(D){throw M.error("Unclosed "+D,N)}function oe(){return W.length===0&&N>=ce}function xe(D){if(W.length)return W.pop();if(N>=ce)return;let ee=D?D.ignoreUnclosed:false;switch(A=R.charCodeAt(N),A){case n:case o:case p:case a:case c:{E=N;do E+=1,A=R.charCodeAt(E);while(A===o||A===n||A===p||A===a||A===c);P=["space",R.slice(N,E)],N=E-1;break}case h:case s:case l:case m:case S:case d:case u:{let q=String.fromCharCode(A);P=[q,q,N];break}case f:{if(X=re.length?re.pop()[1]:"",J=R.charCodeAt(N+1),X==="url"&&J!==e&&J!==t&&J!==o&&J!==n&&J!==p&&J!==c&&J!==a){E=N;do{if(T=false,E=R.indexOf(")",E+1),E===-1)if(k||ee){E=N;break}else ie("bracket");for(z=E;R.charCodeAt(z-1)===r;)z-=1,T=!T;}while(T);P=["brackets",R.slice(N,E+1),N,E],N=E;}else E=R.indexOf(")",N+1),Y=R.slice(N,E+1),E===-1||v.test(Y)?P=["(","(",N]:(P=["brackets",Y,N,E],N=E);break}case e:case t:{K=A===e?"'":'"',E=N;do{if(T=false,E=R.indexOf(K,E+1),E===-1)if(k||ee){E=N+1;break}else ie("string");for(z=E;R.charCodeAt(z-1)===r;)z-=1,T=!T;}while(T);P=["string",R.slice(N,E+1),N,E],N=E;break}case w:{b.lastIndex=N+1,b.test(R),b.lastIndex===0?E=R.length-1:E=b.lastIndex-2,P=["at-word",R.slice(N,E+1),N,E],N=E;break}case r:{for(E=N,L=true;R.charCodeAt(E+1)===r;)E+=1,L=!L;if(A=R.charCodeAt(E+1),L&&A!==i&&A!==o&&A!==n&&A!==p&&A!==a&&A!==c&&(E+=1,y.test(R.charAt(E)))){for(;y.test(R.charAt(E+1));)E+=1;R.charCodeAt(E+1)===o&&(E+=1);}P=["word",R.slice(N,E+1),N,E],N=E;break}default:{A===i&&R.charCodeAt(N+1)===g?(E=R.indexOf("*/",N+2)+1,E===0&&(k||ee?E=R.length:ie("comment")),P=["comment",R.slice(N,E+1),N,E],N=E):(x.lastIndex=N+1,x.test(R),x.lastIndex===0?E=R.length-1:E=x.lastIndex-2,P=["word",R.slice(N,E+1),N,E],re.push(P),N=E);break}}return N++,P}function ye(D){W.push(D);}return {back:ye,endOfFile:oe,nextToken:xe,position:pe}},gr}var yr,Ei;function Mn(){if(Ei)return yr;Ei=1;let e=Le();class t extends e{constructor(i){super(i),this.type="atrule";}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return yr=t,t.default=t,e.registerAtRule(t),yr}var vr,Mi;function rt(){if(Mi)return vr;Mi=1;let e=Le(),t,r;class i extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[]);}normalize(o,c,p){let a=super.normalize(o);if(c){if(p==="prepend")this.nodes.length>1?c.raws.before=this.nodes[1].raws.before:delete c.raws.before;else if(this.first!==c)for(let h of a)h.raws.before=c.raws.before;}return a}removeChild(o,c){let p=this.index(o);return !c&&p===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[p].raws.before),super.removeChild(o)}toResult(o={}){return new t(new r,this,o).stringify()}}return i.registerLazyResult=n=>{t=n;},i.registerProcessor=n=>{r=n;},vr=i,i.default=i,e.registerRoot(i),vr}var wr,Ri;function zs(){if(Ri)return wr;Ri=1;let e={comma(t){return e.split(t,[","],true)},space(t){let r=[" ",`
24
+ `," "];return e.split(t,r)},split(t,r,i){let n=[],o="",c=false,p=0,a=false,h="",s=false;for(let f of t)s?s=false:f==="\\"?s=true:a?f===h&&(a=false):f==='"'||f==="'"?(a=true,h=f):f==="("?p+=1:f===")"?p>0&&(p-=1):p===0&&r.includes(f)&&(c=true),c?(o!==""&&n.push(o.trim()),o="",c=false):o+=f;return (i||o!=="")&&n.push(o.trim()),n}};return wr=e,e.default=e,wr}var br,Ii;function Rn(){if(Ii)return br;Ii=1;let e=Le(),t=zs();class r extends e{constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[]);}get selectors(){return t.comma(this.selector)}set selectors(n){let o=this.selector?this.selector.match(/,\s*/):null,c=o?o[0]:","+this.raw("between","beforeOpen");this.selector=n.join(c);}}return br=r,r.default=r,e.registerRule(r),br}var Sr,Ni;function pl(){if(Ni)return Sr;Ni=1;let e=At(),t=dl(),r=kt(),i=Mn(),n=rt(),o=Rn(),c={empty:true,space:true};function p(h){for(let s=h.length-1;s>=0;s--){let f=h[s],u=f[3]||f[2];if(u)return u}}class a{constructor(s){this.input=s,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=false,this.createTokenizer(),this.root.source={input:s,start:{column:1,line:1,offset:0}};}atrule(s){let f=new i;f.name=s[1].slice(1),f.name===""&&this.unnamedAtrule(f,s),this.init(f,s[2]);let u,l,m,d=false,g=false,S=[],w=[];for(;!this.tokenizer.endOfFile();){if(s=this.tokenizer.nextToken(),u=s[0],u==="("||u==="["?w.push(u==="("?")":"]"):u==="{"&&w.length>0?w.push("}"):u===w[w.length-1]&&w.pop(),w.length===0)if(u===";"){f.source.end=this.getPosition(s[2]),f.source.end.offset++,this.semicolon=true;break}else if(u==="{"){g=true;break}else if(u==="}"){if(S.length>0){for(m=S.length-1,l=S[m];l&&l[0]==="space";)l=S[--m];l&&(f.source.end=this.getPosition(l[3]||l[2]),f.source.end.offset++);}this.end(s);break}else S.push(s);else S.push(s);if(this.tokenizer.endOfFile()){d=true;break}}f.raws.between=this.spacesAndCommentsFromEnd(S),S.length?(f.raws.afterName=this.spacesAndCommentsFromStart(S),this.raw(f,"params",S),d&&(s=S[S.length-1],f.source.end=this.getPosition(s[3]||s[2]),f.source.end.offset++,this.spaces=f.raws.between,f.raws.between="")):(f.raws.afterName="",f.params=""),g&&(f.nodes=[],this.current=f);}checkMissedSemicolon(s){let f=this.colon(s);if(f===false)return;let u=0,l;for(let m=f-1;m>=0&&(l=s[m],!(l[0]!=="space"&&(u+=1,u===2)));m--);throw this.input.error("Missed semicolon",l[0]==="word"?l[3]+1:l[2])}colon(s){let f=0,u,l,m;for(let[d,g]of s.entries()){if(u=g,l=u[0],l==="("&&(f+=1),l===")"&&(f-=1),f===0&&l===":")if(!m)this.doubleColon(u);else {if(m[0]==="word"&&m[1]==="progid")continue;return d}m=u;}return false}comment(s){let f=new r;this.init(f,s[2]),f.source.end=this.getPosition(s[3]||s[2]),f.source.end.offset++;let u=s[1].slice(2,-2);if(/^\s*$/.test(u))f.text="",f.raws.left=u,f.raws.right="";else {let l=u.match(/^(\s*)([^]*\S)(\s*)$/);f.text=l[2],f.raws.left=l[1],f.raws.right=l[3];}}createTokenizer(){this.tokenizer=t(this.input);}decl(s,f){let u=new e;this.init(u,s[0][2]);let l=s[s.length-1];for(l[0]===";"&&(this.semicolon=true,s.pop()),u.source.end=this.getPosition(l[3]||l[2]||p(s)),u.source.end.offset++;s[0][0]!=="word";)s.length===1&&this.unknownWord(s),u.raws.before+=s.shift()[1];for(u.source.start=this.getPosition(s[0][2]),u.prop="";s.length;){let w=s[0][0];if(w===":"||w==="space"||w==="comment")break;u.prop+=s.shift()[1];}u.raws.between="";let m;for(;s.length;)if(m=s.shift(),m[0]===":"){u.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),u.raws.between+=m[1];(u.prop[0]==="_"||u.prop[0]==="*")&&(u.raws.before+=u.prop[0],u.prop=u.prop.slice(1));let d=[],g;for(;s.length&&(g=s[0][0],!(g!=="space"&&g!=="comment"));)d.push(s.shift());this.precheckMissedSemicolon(s);for(let w=s.length-1;w>=0;w--){if(m=s[w],m[1].toLowerCase()==="!important"){u.important=true;let b=this.stringFrom(s,w);b=this.spacesFromEnd(s)+b,b!==" !important"&&(u.raws.important=b);break}else if(m[1].toLowerCase()==="important"){let b=s.slice(0),x="";for(let v=w;v>0;v--){let y=b[v][0];if(x.trim().indexOf("!")===0&&y!=="space")break;x=b.pop()[1]+x;}x.trim().indexOf("!")===0&&(u.important=true,u.raws.important=x,s=b);}if(m[0]!=="space"&&m[0]!=="comment")break}s.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(u.raws.between+=d.map(w=>w[1]).join(""),d=[]),this.raw(u,"value",d.concat(s),f),u.value.includes(":")&&!f&&this.checkMissedSemicolon(s);}doubleColon(s){throw this.input.error("Double colon",{offset:s[2]},{offset:s[2]+s[1].length})}emptyRule(s){let f=new o;this.init(f,s[2]),f.selector="",f.raws.between="",this.current=f;}end(s){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=false,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(s[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(s);}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position());}freeSemicolon(s){if(this.spaces+=s[1],this.current.nodes){let f=this.current.nodes[this.current.nodes.length-1];f&&f.type==="rule"&&!f.raws.ownSemicolon&&(f.raws.ownSemicolon=this.spaces,this.spaces="");}}getPosition(s){let f=this.input.fromOffset(s);return {column:f.col,line:f.line,offset:s}}init(s,f){this.current.push(s),s.source={input:this.input,start:this.getPosition(f)},s.raws.before=this.spaces,this.spaces="",s.type!=="comment"&&(this.semicolon=false);}other(s){let f=false,u=null,l=false,m=null,d=[],g=s[1].startsWith("--"),S=[],w=s;for(;w;){if(u=w[0],S.push(w),u==="("||u==="[")m||(m=w),d.push(u==="("?")":"]");else if(g&&l&&u==="{")m||(m=w),d.push("}");else if(d.length===0)if(u===";")if(l){this.decl(S,g);return}else break;else if(u==="{"){this.rule(S);return}else if(u==="}"){this.tokenizer.back(S.pop()),f=true;break}else u===":"&&(l=true);else u===d[d.length-1]&&(d.pop(),d.length===0&&(m=null));w=this.tokenizer.nextToken();}if(this.tokenizer.endOfFile()&&(f=true),d.length>0&&this.unclosedBracket(m),f&&l){if(!g)for(;S.length&&(w=S[S.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(S.pop());this.decl(S,g);}else this.unknownWord(S);}parse(){let s;for(;!this.tokenizer.endOfFile();)switch(s=this.tokenizer.nextToken(),s[0]){case "space":this.spaces+=s[1];break;case ";":this.freeSemicolon(s);break;case "}":this.end(s);break;case "comment":this.comment(s);break;case "at-word":this.atrule(s);break;case "{":this.emptyRule(s);break;default:this.other(s);break}this.endFile();}precheckMissedSemicolon(){}raw(s,f,u,l){let m,d,g=u.length,S="",w=true,b,x;for(let v=0;v<g;v+=1)m=u[v],d=m[0],d==="space"&&v===g-1&&!l?w=false:d==="comment"?(x=u[v-1]?u[v-1][0]:"empty",b=u[v+1]?u[v+1][0]:"empty",!c[x]&&!c[b]?S.slice(-1)===","?w=false:S+=m[1]:w=false):S+=m[1];if(!w){let v=u.reduce((y,C)=>y+C[1],"");s.raws[f]={raw:v,value:S};}s[f]=S;}rule(s){s.pop();let f=new o;this.init(f,s[0][2]),f.raws.between=this.spacesAndCommentsFromEnd(s),this.raw(f,"selector",s),this.current=f;}spacesAndCommentsFromEnd(s){let f,u="";for(;s.length&&(f=s[s.length-1][0],!(f!=="space"&&f!=="comment"));)u=s.pop()[1]+u;return u}spacesAndCommentsFromStart(s){let f,u="";for(;s.length&&(f=s[0][0],!(f!=="space"&&f!=="comment"));)u+=s.shift()[1];return u}spacesFromEnd(s){let f,u="";for(;s.length&&(f=s[s.length-1][0],f==="space");)u=s.pop()[1]+u;return u}stringFrom(s,f){let u="";for(let l=f;l<s.length;l++)u+=s[l][1];return s.splice(f,s.length-f),u}unclosedBlock(){let s=this.current.source.start;throw this.input.error("Unclosed block",s.line,s.column)}unclosedBracket(s){throw this.input.error("Unclosed bracket",{offset:s[2]},{offset:s[2]+1})}unexpectedClose(s){throw this.input.error("Unexpected }",{offset:s[2]},{offset:s[2]+1})}unknownWord(s){throw this.input.error("Unknown word",{offset:s[0][2]},{offset:s[0][2]+s[0][1].length})}unnamedAtrule(s,f){throw this.input.error("At-rule without name",{offset:f[2]},{offset:f[2]+f[1].length})}}return Sr=a,Sr}var Cr,Oi;function In(){if(Oi)return Cr;Oi=1;let e=Le(),t=pl(),r=Tt();function i(n,o){let c=new r(n,o),p=new t(c);try{p.parse();}catch(a){throw a}return p.root}return Cr=i,i.default=i,e.registerParse(i),Cr}var xr,Ai;function Bs(){if(Ai)return xr;Ai=1;let {isClean:e,my:t}=Cn(),r=_s(),i=Nt(),n=Le(),o=xn(),p=En(),a=In(),h=rt(),s={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={AtRule:true,AtRuleExit:true,Comment:true,CommentExit:true,Declaration:true,DeclarationExit:true,Document:true,DocumentExit:true,Once:true,OnceExit:true,postcssPlugin:true,prepare:true,Root:true,RootExit:true,Rule:true,RuleExit:true},u={Once:true,postcssPlugin:true,prepare:true},l=0;function m(x){return typeof x=="object"&&typeof x.then=="function"}function d(x){let v=false,y=s[x.type];return x.type==="decl"?v=x.prop.toLowerCase():x.type==="atrule"&&(v=x.name.toLowerCase()),v&&x.append?[y,y+"-"+v,l,y+"Exit",y+"Exit-"+v]:v?[y,y+"-"+v,y+"Exit",y+"Exit-"+v]:x.append?[y,l,y+"Exit"]:[y,y+"Exit"]}function g(x){let v;return x.type==="document"?v=["Document",l,"DocumentExit"]:x.type==="root"?v=["Root",l,"RootExit"]:v=d(x),{eventIndex:0,events:v,iterator:0,node:x,visitorIndex:0,visitors:[]}}function S(x){return x[e]=false,x.nodes&&x.nodes.forEach(v=>S(v)),x}let w={};class b{constructor(v,y,C){this.stringified=false,this.processed=false;let M;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))M=S(y);else if(y instanceof b||y instanceof p)M=S(y.root),y.map&&(typeof C.map>"u"&&(C.map={}),C.map.inline||(C.map.inline=false),C.map.prev=y.map);else {let I=a;C.syntax&&(I=C.syntax.parse),C.parser&&(I=C.parser),I.parse&&(I=I.parse);try{M=I(y,C);}catch(R){this.processed=true,this.error=R;}M&&!M[t]&&n.rebuild(M);}this.result=new p(v,M,C),this.helpers={...w,postcss:w,result:this.result},this.plugins=this.processor.plugins.map(I=>typeof I=="object"&&I.prepare?{...I,...I.prepare(this.result)}:I);}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(v){return this.async().catch(v)}finally(v){return this.async().then(v,v)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(v,y){let C=this.result.lastPlugin;try{y&&y.addToError(v),this.error=v,v.name==="CssSyntaxError"&&!v.plugin?(v.plugin=C.postcssPlugin,v.setMessage()):C.postcssVersion;}catch(M){console&&console.error&&console.error(M);}return v}prepareVisitors(){this.listeners={};let v=(y,C,M)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([y,M]);};for(let y of this.plugins)if(typeof y=="object")for(let C in y){if(!f[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!u[C])if(typeof y[C]=="object")for(let M in y[C])M==="*"?v(y,C,y[C][M]):v(y,C+"-"+M.toLowerCase(),y[C][M]);else typeof y[C]=="function"&&v(y,C,y[C]);}this.hasListener=Object.keys(this.listeners).length>0;}async runAsync(){this.plugin=0;for(let v=0;v<this.plugins.length;v++){let y=this.plugins[v],C=this.runOnRoot(y);if(m(C))try{await C;}catch(M){throw this.handleError(M)}}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];){v[e]=true;let y=[g(v)];for(;y.length>0;){let C=this.visitTick(y);if(m(C))try{await C;}catch(M){let I=y[y.length-1].node;throw this.handleError(M,I)}}}if(this.listeners.OnceExit)for(let[y,C]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(v.type==="document"){let M=v.nodes.map(I=>C(I,this.helpers));await Promise.all(M);}else await C(v,this.helpers);}catch(M){throw this.handleError(M)}}}return this.processed=true,this.stringify()}runOnRoot(v){this.result.lastPlugin=v;try{if(typeof v=="object"&&v.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(C=>v.Once(C,this.helpers));return m(y[0])?Promise.all(y):y}return v.Once(this.result.root,this.helpers)}else if(typeof v=="function")return v(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=true,this.sync();let v=this.result.opts,y=i;v.syntax&&(y=v.syntax.stringify),v.stringifier&&(y=v.stringifier),y.stringify&&(y=y.stringify);let M=new r(y,this.result.root,this.result.opts).generate();return this.result.css=M[0],this.result.map=M[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=true,this.processing)throw this.getAsyncError();for(let v of this.plugins){let y=this.runOnRoot(v);if(m(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];)v[e]=true,this.walkSync(v);if(this.listeners.OnceExit)if(v.type==="document")for(let y of v.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,v);}return this.result}then(v,y){return this.async().then(v,y)}toString(){return this.css}visitSync(v,y){for(let[C,M]of v){this.result.lastPlugin=C;let I;try{I=M(y,this.helpers);}catch(R){throw this.handleError(R,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return true;if(m(I))throw this.getAsyncError()}}visitTick(v){let y=v[v.length-1],{node:C,visitors:M}=y;if(C.type!=="root"&&C.type!=="document"&&!C.parent){v.pop();return}if(M.length>0&&y.visitorIndex<M.length){let[R,k]=M[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===M.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=R;try{return k(C.toProxy(),this.helpers)}catch(A){throw this.handleError(A,C)}}if(y.iterator!==0){let R=y.iterator,k;for(;k=C.nodes[C.indexes[R]];)if(C.indexes[R]+=1,!k[e]){k[e]=true,v.push(g(k));return}y.iterator=0,delete C.indexes[R];}let I=y.events;for(;y.eventIndex<I.length;){let R=I[y.eventIndex];if(y.eventIndex+=1,R===l){C.nodes&&C.nodes.length&&(C[e]=true,y.iterator=C.getIterator());return}else if(this.listeners[R]){y.visitors=this.listeners[R];return}}v.pop();}walkSync(v){v[e]=true;let y=d(v);for(let C of y)if(C===l)v.nodes&&v.each(M=>{M[e]||this.walkSync(M);});else {let M=this.listeners[C];if(M&&this.visitSync(M,v.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"}}return b.registerPostcss=x=>{w=x;},xr=b,b.default=b,h.registerLazyResult(b),o.registerLazyResult(b),xr}var Er,Ti;function ml(){if(Ti)return Er;Ti=1;let e=_s(),t=Nt(),i=In(),n=En();class o{constructor(p,a,h){a=a.toString(),this.stringified=false,this._processor=p,this._css=a,this._opts=h,this._map=void 0;let s,f=t;this.result=new n(this._processor,s,this._opts),this.result.css=a;let u=this;Object.defineProperty(this.result,"root",{get(){return u.root}});let l=new e(f,s,this._opts,a);if(l.isMap()){let[m,d]=l.generate();m&&(this.result.css=m),d&&(this.result.map=d);}else l.clearAnnotation(),this.result.css=l.css;}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(p){return this.async().catch(p)}finally(p){return this.async().then(p,p)}sync(){if(this.error)throw this.error;return this.result}then(p,a){return this.async().then(p,a)}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 p,a=i;try{p=a(this._css,this._opts);}catch(h){this.error=h;}if(this.error)throw this.error;return this._root=p,p}get[Symbol.toStringTag](){return "NoWorkResult"}}return Er=o,o.default=o,Er}var Mr,ki;function gl(){if(ki)return Mr;ki=1;let e=ml(),t=Bs(),r=xn(),i=rt();class n{constructor(c=[]){this.version="8.4.38",this.plugins=this.normalize(c);}normalize(c){let p=[];for(let a of c)if(a.postcss===true?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))p=p.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)p.push(a);else if(typeof a=="function")p.push(a);else if(!(typeof a=="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin");return p}process(c,p={}){return !this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new e(this,c,p):new t(this,c,p)}use(c){return this.plugins=this.plugins.concat(this.normalize([c])),this}}return Mr=n,n.default=n,i.registerProcessor(n),r.registerProcessor(n),Mr}var Rr,Di;function yl(){if(Di)return Rr;Di=1;let e=At(),t=Ps(),r=kt(),i=Mn(),n=Tt(),o=rt(),c=Rn();function p(a,h){if(Array.isArray(a))return a.map(u=>p(u));let{inputs:s,...f}=a;if(s){h=[];for(let u of s){let l={...u,__proto__:n.prototype};l.map&&(l.map={...l.map,__proto__:t.prototype}),h.push(l);}}if(f.nodes&&(f.nodes=a.nodes.map(u=>p(u,h))),f.source){let{inputId:u,...l}=f.source;f.source=l,u!=null&&(f.source.input=h[u]);}if(f.type==="root")return new o(f);if(f.type==="decl")return new e(f);if(f.type==="rule")return new c(f);if(f.type==="comment")return new r(f);if(f.type==="atrule")return new i(f);throw new Error("Unknown node type: "+a.type)}return Rr=p,p.default=p,Rr}var Ir,Li;function vl(){if(Li)return Ir;Li=1;let e=Sn(),t=At(),r=Bs(),i=Le(),n=gl(),o=Nt(),c=yl(),p=xn(),a=Us(),h=kt(),s=Mn(),f=En(),u=Tt(),l=In(),m=zs(),d=Rn(),g=rt(),S=Ot();function w(...b){return b.length===1&&Array.isArray(b[0])&&(b=b[0]),new n(b)}return w.plugin=function(x,v){let y=false;function C(...I){console&&console.warn&&!y&&(y=true,console.warn(x+`: postcss.plugin was deprecated. Migration guide:
25
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(x+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
26
+ https://www.w3ctech.com/topic/2226`));let R=v(...I);return R.postcssPlugin=x,R.postcssVersion=new n().version,R}let M;return Object.defineProperty(C,"postcss",{get(){return M||(M=C()),M}}),C.process=function(I,R,k){return w([C(k)]).process(I,R)},C},w.stringify=o,w.parse=l,w.fromJSON=c,w.list=m,w.comment=b=>new h(b),w.atRule=b=>new s(b),w.decl=b=>new t(b),w.rule=b=>new d(b),w.root=b=>new g(b),w.document=b=>new p(b),w.CssSyntaxError=e,w.Declaration=t,w.Container=i,w.Processor=n,w.Document=p,w.Comment=h,w.Warning=a,w.AtRule=s,w.Result=f,w.Input=u,w.Rule=d,w.Root=g,w.Node=S,r.registerPostcss(w),Ir=w,w.default=w,Ir}var wl=vl(),Q=al(wl);Q.stringify;Q.fromJSON;Q.plugin;Q.parse;Q.list;Q.document;Q.comment;Q.atRule;Q.rule;Q.decl;Q.root;Q.CssSyntaxError;Q.Declaration;Q.Container;Q.Processor;Q.Document;Q.Comment;Q.Warning;Q.AtRule;Q.Result;Q.Input;Q.Rule;Q.Root;Q.Node;var bl=Object.defineProperty,Sl=(e,t,r)=>t in e?bl(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r,me=(e,t,r)=>Sl(e,typeof t!="symbol"?t+"":t,r);Date.now().toString();function Cl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function xl(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype;}else r={};return Object.defineProperty(r,"__esModule",{value:true}),Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,n.get?n:{enumerable:true,get:function(){return e[i]}});}),r}var dt={exports:{}},Pi;function El(){if(Pi)return dt.exports;Pi=1;var e=String,t=function(){return {isColorSupported:false,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return dt.exports=t(),dt.exports.createColors=t,dt.exports}var Ml={},Rl=Object.freeze(Object.defineProperty({__proto__:null,default:Ml},Symbol.toStringTag,{value:"Module"})),Se=xl(Rl),Nr,_i;function Nn(){if(_i)return Nr;_i=1;let e=El(),t=Se;class r extends Error{constructor(n,o,c,p,a,h){super(n),this.name="CssSyntaxError",this.reason=n,a&&(this.file=a),p&&(this.source=p),h&&(this.plugin=h),typeof o<"u"&&typeof c<"u"&&(typeof o=="number"?(this.line=o,this.column=c):(this.line=o.line,this.column=o.column,this.endLine=c.line,this.endColumn=c.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r);}setMessage(){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(n){if(!this.source)return "";let o=this.source;n==null&&(n=e.isColorSupported),t&&n&&(o=t(o));let c=o.split(/\r?\n/),p=Math.max(this.line-3,0),a=Math.min(this.line+2,c.length),h=String(a).length,s,f;if(n){let{bold:u,gray:l,red:m}=e.createColors(true);s=d=>u(m(d)),f=d=>l(d);}else s=f=u=>u;return c.slice(p,a).map((u,l)=>{let m=p+1+l,d=" "+(" "+m).slice(-h)+" | ";if(m===this.line){let g=f(d.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return s(">")+f(d)+u+`
27
+ `+g+s("^")}return " "+f(d)+u}).join(`
28
+ `)}toString(){let n=this.showSourceCode();return n&&(n=`
29
+
30
+ `+n+`
31
+ `),this.name+": "+this.message+n}}return Nr=r,r.default=r,Nr}var pt={},Fi;function On(){return Fi||(Fi=1,pt.isClean=Symbol("isClean"),pt.my=Symbol("my")),pt}var Or,Ui;function qs(){if(Ui)return Or;Ui=1;let e={after:`
32
+ `,beforeClose:`
33
+ `,beforeComment:`
34
+ `,beforeDecl:`
35
+ `,beforeOpen:" ",beforeRule:`
36
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:false};function t(i){return i[0].toUpperCase()+i.slice(1)}class r{constructor(n){this.builder=n;}atrule(n,o){let c="@"+n.name,p=n.params?this.rawValue(n,"params"):"";if(typeof n.raws.afterName<"u"?c+=n.raws.afterName:p&&(c+=" "),n.nodes)this.block(n,c+p);else {let a=(n.raws.between||"")+(o?";":"");this.builder(c+p+a,n);}}beforeAfter(n,o){let c;n.type==="decl"?c=this.raw(n,null,"beforeDecl"):n.type==="comment"?c=this.raw(n,null,"beforeComment"):o==="before"?c=this.raw(n,null,"beforeRule"):c=this.raw(n,null,"beforeClose");let p=n.parent,a=0;for(;p&&p.type!=="root";)a+=1,p=p.parent;if(c.includes(`
37
+ `)){let h=this.raw(n,null,"indent");if(h.length)for(let s=0;s<a;s++)c+=h;}return c}block(n,o){let c=this.raw(n,"between","beforeOpen");this.builder(o+c+"{",n,"start");let p;n.nodes&&n.nodes.length?(this.body(n),p=this.raw(n,"after")):p=this.raw(n,"after","emptyBody"),p&&this.builder(p),this.builder("}",n,"end");}body(n){let o=n.nodes.length-1;for(;o>0&&n.nodes[o].type==="comment";)o-=1;let c=this.raw(n,"semicolon");for(let p=0;p<n.nodes.length;p++){let a=n.nodes[p],h=this.raw(a,"before");h&&this.builder(h),this.stringify(a,o!==p||c);}}comment(n){let o=this.raw(n,"left","commentLeft"),c=this.raw(n,"right","commentRight");this.builder("/*"+o+n.text+c+"*/",n);}decl(n,o){let c=this.raw(n,"between","colon"),p=n.prop+c+this.rawValue(n,"value");n.important&&(p+=n.raws.important||" !important"),o&&(p+=";"),this.builder(p,n);}document(n){this.body(n);}raw(n,o,c){let p;if(c||(c=o),o&&(p=n.raws[o],typeof p<"u"))return p;let a=n.parent;if(c==="before"&&(!a||a.type==="root"&&a.first===n||a&&a.type==="document"))return "";if(!a)return e[c];let h=n.root();if(h.rawCache||(h.rawCache={}),typeof h.rawCache[c]<"u")return h.rawCache[c];if(c==="before"||c==="after")return this.beforeAfter(n,c);{let s="raw"+t(c);this[s]?p=this[s](h,n):h.walk(f=>{if(p=f.raws[o],typeof p<"u")return false});}return typeof p>"u"&&(p=e[c]),h.rawCache[c]=p,p}rawBeforeClose(n){let o;return n.walk(c=>{if(c.nodes&&c.nodes.length>0&&typeof c.raws.after<"u")return o=c.raws.after,o.includes(`
38
+ `)&&(o=o.replace(/[^\n]+$/,"")),false}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(n,o){let c;return n.walkComments(p=>{if(typeof p.raws.before<"u")return c=p.raws.before,c.includes(`
39
+ `)&&(c=c.replace(/[^\n]+$/,"")),false}),typeof c>"u"?c=this.raw(o,null,"beforeDecl"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeDecl(n,o){let c;return n.walkDecls(p=>{if(typeof p.raws.before<"u")return c=p.raws.before,c.includes(`
40
+ `)&&(c=c.replace(/[^\n]+$/,"")),false}),typeof c>"u"?c=this.raw(o,null,"beforeRule"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeOpen(n){let o;return n.walk(c=>{if(c.type!=="decl"&&(o=c.raws.between,typeof o<"u"))return false}),o}rawBeforeRule(n){let o;return n.walk(c=>{if(c.nodes&&(c.parent!==n||n.first!==c)&&typeof c.raws.before<"u")return o=c.raws.before,o.includes(`
41
+ `)&&(o=o.replace(/[^\n]+$/,"")),false}),o&&(o=o.replace(/\S/g,"")),o}rawColon(n){let o;return n.walkDecls(c=>{if(typeof c.raws.between<"u")return o=c.raws.between.replace(/[^\s:]/g,""),false}),o}rawEmptyBody(n){let o;return n.walk(c=>{if(c.nodes&&c.nodes.length===0&&(o=c.raws.after,typeof o<"u"))return false}),o}rawIndent(n){if(n.raws.indent)return n.raws.indent;let o;return n.walk(c=>{let p=c.parent;if(p&&p!==n&&p.parent&&p.parent===n&&typeof c.raws.before<"u"){let a=c.raws.before.split(`
42
+ `);return o=a[a.length-1],o=o.replace(/\S/g,""),false}}),o}rawSemicolon(n){let o;return n.walk(c=>{if(c.nodes&&c.nodes.length&&c.last.type==="decl"&&(o=c.raws.semicolon,typeof o<"u"))return false}),o}rawValue(n,o){let c=n[o],p=n.raws[o];return p&&p.value===c?p.raw:c}root(n){this.body(n),n.raws.after&&this.builder(n.raws.after);}rule(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end");}stringify(n,o){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,o);}}return Or=r,r.default=r,Or}var Ar,zi;function Dt(){if(zi)return Ar;zi=1;let e=qs();function t(r,i){new e(i).stringify(r);}return Ar=t,t.default=t,Ar}var Tr,Bi;function Lt(){if(Bi)return Tr;Bi=1;let{isClean:e,my:t}=On(),r=Nn(),i=qs(),n=Dt();function o(p,a){let h=new p.constructor;for(let s in p){if(!Object.prototype.hasOwnProperty.call(p,s)||s==="proxyCache")continue;let f=p[s],u=typeof f;s==="parent"&&u==="object"?a&&(h[s]=a):s==="source"?h[s]=f:Array.isArray(f)?h[s]=f.map(l=>o(l,h)):(u==="object"&&f!==null&&(f=o(f)),h[s]=f);}return h}class c{constructor(a={}){this.raws={},this[e]=false,this[t]=true;for(let h in a)if(h==="nodes"){this.nodes=[];for(let s of a[h])typeof s.clone=="function"?this.append(s.clone()):this.append(s);}else this[h]=a[h];}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let h=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${h.input.from}:${h.start.line}:${h.start.column}$&`);}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let h in a)this[h]=a[h];return this}before(a){return this.parent.insertBefore(this,a),this}cleanRaws(a){delete this.raws.before,delete this.raws.after,a||delete this.raws.between;}clone(a={}){let h=o(this);for(let s in a)h[s]=a[s];return h}cloneAfter(a={}){let h=this.clone(a);return this.parent.insertAfter(this,h),h}cloneBefore(a={}){let h=this.clone(a);return this.parent.insertBefore(this,h),h}error(a,h={}){if(this.source){let{end:s,start:f}=this.rangeBy(h);return this.source.input.error(a,{column:f.column,line:f.line},{column:s.column,line:s.line},h)}return new r(a)}getProxyProcessor(){return {get(a,h){return h==="proxyOf"?a:h==="root"?()=>a.root().toProxy():a[h]},set(a,h,s){return a[h]===s||(a[h]=s,(h==="prop"||h==="value"||h==="name"||h==="params"||h==="important"||h==="text")&&a.markDirty()),true}}}markDirty(){if(this[e]){this[e]=false;let a=this;for(;a=a.parent;)a[e]=false;}}next(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a+1]}positionBy(a,h){let s=this.source.start;if(a.index)s=this.positionInside(a.index,h);else if(a.word){h=this.toString();let f=h.indexOf(a.word);f!==-1&&(s=this.positionInside(f,h));}return s}positionInside(a,h){let s=h||this.toString(),f=this.source.start.column,u=this.source.start.line;for(let l=0;l<a;l++)s[l]===`
43
+ `?(f=1,u+=1):f+=1;return {column:f,line:u}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let h={column:this.source.start.column,line:this.source.start.line},s=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:h.column+1,line:h.line};if(a.word){let f=this.toString(),u=f.indexOf(a.word);u!==-1&&(h=this.positionInside(u,f),s=this.positionInside(u+a.word.length,f));}else a.start?h={column:a.start.column,line:a.start.line}:a.index&&(h=this.positionInside(a.index)),a.end?s={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?s=this.positionInside(a.endIndex):a.index&&(s=this.positionInside(a.index+1));return (s.line<h.line||s.line===h.line&&s.column<=h.column)&&(s={column:h.column+1,line:h.line}),{end:s,start:h}}raw(a,h){return new i().raw(this,a,h)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let h=this,s=false;for(let f of a)f===this?s=true:s?(this.parent.insertAfter(h,f),h=f):this.parent.insertBefore(h,f);s||this.remove();}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,h){let s={},f=h==null;h=h||new Map;let u=0;for(let l in this){if(!Object.prototype.hasOwnProperty.call(this,l)||l==="parent"||l==="proxyCache")continue;let m=this[l];if(Array.isArray(m))s[l]=m.map(d=>typeof d=="object"&&d.toJSON?d.toJSON(null,h):d);else if(typeof m=="object"&&m.toJSON)s[l]=m.toJSON(null,h);else if(l==="source"){let d=h.get(m.input);d==null&&(d=u,h.set(m.input,u),u++),s[l]={end:m.end,inputId:d,start:m.start};}else s[l]=m;}return f&&(s.inputs=[...h.keys()].map(l=>l.toJSON())),s}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=n){a.stringify&&(a=a.stringify);let h="";return a(this,s=>{h+=s;}),h}warn(a,h,s){let f={node:this};for(let u in s)f[u]=s[u];return a.warn(h,f)}get proxyOf(){return this}}return Tr=c,c.default=c,Tr}var kr,qi;function Pt(){if(qi)return kr;qi=1;let e=Lt();class t extends e{constructor(i){i&&typeof i.value<"u"&&typeof i.value!="string"&&(i={...i,value:String(i.value)}),super(i),this.type="decl";}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return kr=t,t.default=t,kr}var Dr,$i;function Il(){if($i)return Dr;$i=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Dr={nanoid:(i=21)=>{let n="",o=i;for(;o--;)n+=e[Math.random()*64|0];return n},customAlphabet:(i,n=21)=>(o=n)=>{let c="",p=o;for(;p--;)c+=i[Math.random()*i.length|0];return c}},Dr}var Lr,Wi;function $s(){if(Wi)return Lr;Wi=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Se,{existsSync:r,readFileSync:i}=Se,{dirname:n,join:o}=Se;function c(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class p{constructor(h,s){if(s.map===false)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let f=s.map?s.map.prev:void 0,u=this.loadMap(s.from,f);!this.mapFile&&s.from&&(this.mapFile=s.from),this.mapFile&&(this.root=n(this.mapFile)),u&&(this.text=u);}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(h){let s=/^data:application\/json;charset=utf-?8;base64,/,f=/^data:application\/json;base64,/,u=/^data:application\/json;charset=utf-?8,/,l=/^data:application\/json,/;if(u.test(h)||l.test(h))return decodeURIComponent(h.substr(RegExp.lastMatch.length));if(s.test(h)||f.test(h))return c(h.substr(RegExp.lastMatch.length));let m=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?false:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let s=h.match(/\/\*\s*# sourceMappingURL=/gm);if(!s)return;let f=h.lastIndexOf(s.pop()),u=h.indexOf("*/",f);f>-1&&u>-1&&(this.annotation=this.getAnnotationURL(h.substring(f,u)));}loadFile(h){if(this.root=n(h),r(h))return this.mapFile=h,i(h,"utf-8").toString().trim()}loadMap(h,s){if(s===false)return false;if(s){if(typeof s=="string")return s;if(typeof s=="function"){let f=s(h);if(f){let u=this.loadFile(f);if(!u)throw new Error("Unable to load previous source map: "+f.toString());return u}}else {if(s instanceof e)return t.fromSourceMap(s).toString();if(s instanceof t)return s.toString();if(this.isMap(s))return JSON.stringify(s);throw new Error("Unsupported previous source map format: "+s.toString())}}else {if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let f=this.annotation;return h&&(f=o(n(h),f)),this.loadFile(f)}}}startWith(h,s){return h?h.substr(0,s.length)===s:false}withContent(){return !!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Lr=p,p.default=p,Lr}var Pr,Hi;function _t(){if(Hi)return Pr;Hi=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Se,{fileURLToPath:r,pathToFileURL:i}=Se,{isAbsolute:n,resolve:o}=Se,{nanoid:c}=Il(),p=Se,a=Nn(),h=$s(),s=Symbol("fromOffsetCache"),f=!!(e&&t),u=!!(o&&n);class l{constructor(d,g={}){if(d===null||typeof d>"u"||typeof d=="object"&&!d.toString)throw new Error(`PostCSS received ${d} instead of CSS string`);if(this.css=d.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=true,this.css=this.css.slice(1)):this.hasBOM=false,g.from&&(!u||/^\w+:\/\//.test(g.from)||n(g.from)?this.file=g.from:this.file=o(g.from)),u&&f){let S=new h(this.css,g);if(S.text){this.map=S;let w=S.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w));}}this.file||(this.id="<input css "+c(6)+">"),this.map&&(this.map.file=this.from);}error(d,g,S,w={}){let b,x,v;if(g&&typeof g=="object"){let C=g,M=S;if(typeof C.offset=="number"){let I=this.fromOffset(C.offset);g=I.line,S=I.col;}else g=C.line,S=C.column;if(typeof M.offset=="number"){let I=this.fromOffset(M.offset);x=I.line,v=I.col;}else x=M.line,v=M.column;}else if(!S){let C=this.fromOffset(g);g=C.line,S=C.col;}let y=this.origin(g,S,x,v);return y?b=new a(d,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,w.plugin):b=new a(d,x===void 0?g:{column:S,line:g},x===void 0?S:{column:v,line:x},this.css,this.file,w.plugin),b.input={column:S,endColumn:v,endLine:x,line:g,source:this.css},this.file&&(i&&(b.input.url=i(this.file).toString()),b.input.file=this.file),b}fromOffset(d){let g,S;if(this[s])S=this[s];else {let b=this.css.split(`
44
+ `);S=new Array(b.length);let x=0;for(let v=0,y=b.length;v<y;v++)S[v]=x,x+=b[v].length+1;this[s]=S;}g=S[S.length-1];let w=0;if(d>=g)w=S.length-1;else {let b=S.length-2,x;for(;w<b;)if(x=w+(b-w>>1),d<S[x])b=x-1;else if(d>=S[x+1])w=x+1;else {w=x;break}}return {col:d-S[w]+1,line:w+1}}mapResolve(d){return /^\w+:\/\//.test(d)?d:o(this.map.consumer().sourceRoot||this.map.root||".",d)}origin(d,g,S,w){if(!this.map)return false;let b=this.map.consumer(),x=b.originalPositionFor({column:g,line:d});if(!x.source)return false;let v;typeof S=="number"&&(v=b.originalPositionFor({column:w,line:S}));let y;n(x.source)?y=i(x.source):y=new URL(x.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let C={column:x.column,endColumn:v&&v.column,endLine:v&&v.line,line:x.line,url:y.toString()};if(y.protocol==="file:")if(r)C.file=r(y);else throw new Error("file: protocol is not available in this PostCSS build");let M=b.sourceContentFor(x.source);return M&&(C.source=M),C}toJSON(){let d={};for(let g of ["hasBOM","css","file","id"])this[g]!=null&&(d[g]=this[g]);return this.map&&(d.map={...this.map},d.map.consumerCache&&(d.map.consumerCache=void 0)),d}get from(){return this.file||this.id}}return Pr=l,l.default=l,p&&p.registerInput&&p.registerInput(l),Pr}var _r,ji;function Ws(){if(ji)return _r;ji=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Se,{dirname:r,relative:i,resolve:n,sep:o}=Se,{pathToFileURL:c}=Se,p=_t(),a=!!(e&&t),h=!!(r&&n&&i&&o);class s{constructor(u,l,m,d){this.stringify=u,this.mapOpts=m.map||{},this.root=l,this.opts=m,this.css=d,this.originalCSS=d,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map;}addAnnotation(){let u;this.isInline()?u="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?u=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?u=this.mapOpts.annotation(this.opts.to,this.root):u=this.outputFile()+".map";let l=`
45
+ `;this.css.includes(`\r
46
+ `)&&(l=`\r
47
+ `),this.css+=l+"/*# sourceMappingURL="+u+" */";}applyPrevMaps(){for(let u of this.previous()){let l=this.toUrl(this.path(u.file)),m=u.root||r(u.file),d;this.mapOpts.sourcesContent===false?(d=new e(u.text),d.sourcesContent&&(d.sourcesContent=null)):d=u.consumer(),this.map.applySourceMap(d,l,this.toUrl(this.path(m)));}}clearAnnotation(){if(this.mapOpts.annotation!==false)if(this.root){let u;for(let l=this.root.nodes.length-1;l>=0;l--)u=this.root.nodes[l],u.type==="comment"&&u.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(l);}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""));}generate(){if(this.clearAnnotation(),h&&a&&this.isMap())return this.generateMap();{let u="";return this.stringify(this.root,l=>{u+=l;}),[u]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let u=this.previous()[0].consumer();u.file=this.outputFile(),this.map=t.fromSourceMap(u,{ignoreInvalidMapping:true});}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:true}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:true});let u=1,l=1,m="<no source>",d={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,S;this.stringify(this.root,(w,b,x)=>{if(this.css+=w,b&&x!=="end"&&(d.generated.line=u,d.generated.column=l-1,b.source&&b.source.start?(d.source=this.sourcePath(b),d.original.line=b.source.start.line,d.original.column=b.source.start.column-1,this.map.addMapping(d)):(d.source=m,d.original.line=1,d.original.column=0,this.map.addMapping(d))),g=w.match(/\n/g),g?(u+=g.length,S=w.lastIndexOf(`
48
+ `),l=w.length-S):l+=w.length,b&&x!=="start"){let v=b.parent||{raws:{}};(!(b.type==="decl"||b.type==="atrule"&&!b.nodes)||b!==v.last||v.raws.semicolon)&&(b.source&&b.source.end?(d.source=this.sourcePath(b),d.original.line=b.source.end.line,d.original.column=b.source.end.column-1,d.generated.line=u,d.generated.column=l-2,this.map.addMapping(d)):(d.source=m,d.original.line=1,d.original.column=0,d.generated.line=u,d.generated.column=l-1,this.map.addMapping(d)));}});}isAnnotation(){return this.isInline()?true:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(u=>u.annotation):true}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let u=this.mapOpts.annotation;return typeof u<"u"&&u!==true?false:this.previous().length?this.previous().some(l=>l.inline):true}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(u=>u.withContent()):true}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(u){if(this.mapOpts.absolute||u.charCodeAt(0)===60||/^\w+:\/\//.test(u))return u;let l=this.memoizedPaths.get(u);if(l)return l;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(n(m,this.mapOpts.annotation)));let d=i(m,u);return this.memoizedPaths.set(u,d),d}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(u=>{if(u.source&&u.source.input.map){let l=u.source.input.map;this.previousMaps.includes(l)||this.previousMaps.push(l);}});else {let u=new p(this.originalCSS,this.opts);u.map&&this.previousMaps.push(u.map);}return this.previousMaps}setSourcesContent(){let u={};if(this.root)this.root.walk(l=>{if(l.source){let m=l.source.input.from;if(m&&!u[m]){u[m]=true;let d=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(d,l.source.input.css);}}});else if(this.css){let l=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(l,this.css);}}sourcePath(u){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(u.source.input.from):this.toUrl(this.path(u.source.input.from))}toBase64(u){return Buffer?Buffer.from(u).toString("base64"):window.btoa(unescape(encodeURIComponent(u)))}toFileUrl(u){let l=this.memoizedFileURLs.get(u);if(l)return l;if(c){let m=c(u).toString();return this.memoizedFileURLs.set(u,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(u){let l=this.memoizedURLs.get(u);if(l)return l;o==="\\"&&(u=u.replace(/\\/g,"/"));let m=encodeURI(u).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(u,m),m}}return _r=s,_r}var Fr,Vi;function Ft(){if(Vi)return Fr;Vi=1;let e=Lt();class t extends e{constructor(i){super(i),this.type="comment";}}return Fr=t,t.default=t,Fr}var Ur,Gi;function Pe(){if(Gi)return Ur;Gi=1;let{isClean:e,my:t}=On(),r=Pt(),i=Ft(),n=Lt(),o,c,p,a;function h(u){return u.map(l=>(l.nodes&&(l.nodes=h(l.nodes)),delete l.source,l))}function s(u){if(u[e]=false,u.proxyOf.nodes)for(let l of u.proxyOf.nodes)s(l);}class f extends n{append(...l){for(let m of l){let d=this.normalize(m,this.last);for(let g of d)this.proxyOf.nodes.push(g);}return this.markDirty(),this}cleanRaws(l){if(super.cleanRaws(l),this.nodes)for(let m of this.nodes)m.cleanRaws(l);}each(l){if(!this.proxyOf.nodes)return;let m=this.getIterator(),d,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(d=this.indexes[m],g=l(this.proxyOf.nodes[d],d),g!==false);)this.indexes[m]+=1;return delete this.indexes[m],g}every(l){return this.nodes.every(l)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let l=this.lastEach;return this.indexes[l]=0,l}getProxyProcessor(){return {get(l,m){return m==="proxyOf"?l:l[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...d)=>l[m](...d.map(g=>typeof g=="function"?(S,w)=>g(S.toProxy(),w):g)):m==="every"||m==="some"?d=>l[m]((g,...S)=>d(g.toProxy(),...S)):m==="root"?()=>l.root().toProxy():m==="nodes"?l.nodes.map(d=>d.toProxy()):m==="first"||m==="last"?l[m].toProxy():l[m]:l[m]},set(l,m,d){return l[m]===d||(l[m]=d,(m==="name"||m==="params"||m==="selector")&&l.markDirty()),true}}}index(l){return typeof l=="number"?l:(l.proxyOf&&(l=l.proxyOf),this.proxyOf.nodes.indexOf(l))}insertAfter(l,m){let d=this.index(l),g=this.normalize(m,this.proxyOf.nodes[d]).reverse();d=this.index(l);for(let w of g)this.proxyOf.nodes.splice(d+1,0,w);let S;for(let w in this.indexes)S=this.indexes[w],d<S&&(this.indexes[w]=S+g.length);return this.markDirty(),this}insertBefore(l,m){let d=this.index(l),g=d===0?"prepend":false,S=this.normalize(m,this.proxyOf.nodes[d],g).reverse();d=this.index(l);for(let b of S)this.proxyOf.nodes.splice(d,0,b);let w;for(let b in this.indexes)w=this.indexes[b],d<=w&&(this.indexes[b]=w+S.length);return this.markDirty(),this}normalize(l,m){if(typeof l=="string")l=h(o(l).nodes);else if(typeof l>"u")l=[];else if(Array.isArray(l)){l=l.slice(0);for(let g of l)g.parent&&g.parent.removeChild(g,"ignore");}else if(l.type==="root"&&this.type!=="document"){l=l.nodes.slice(0);for(let g of l)g.parent&&g.parent.removeChild(g,"ignore");}else if(l.type)l=[l];else if(l.prop){if(typeof l.value>"u")throw new Error("Value field is missed in node creation");typeof l.value!="string"&&(l.value=String(l.value)),l=[new r(l)];}else if(l.selector)l=[new c(l)];else if(l.name)l=[new p(l)];else if(l.text)l=[new i(l)];else throw new Error("Unknown node type in node creation");return l.map(g=>(g[t]||f.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&s(g),typeof g.raws.before>"u"&&m&&typeof m.raws.before<"u"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...l){l=l.reverse();for(let m of l){let d=this.normalize(m,this.first,"prepend").reverse();for(let g of d)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+d.length;}return this.markDirty(),this}push(l){return l.parent=this,this.proxyOf.nodes.push(l),this}removeAll(){for(let l of this.proxyOf.nodes)l.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(l){l=this.index(l),this.proxyOf.nodes[l].parent=void 0,this.proxyOf.nodes.splice(l,1);let m;for(let d in this.indexes)m=this.indexes[d],m>=l&&(this.indexes[d]=m-1);return this.markDirty(),this}replaceValues(l,m,d){return d||(d=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(l,d));}),this.markDirty(),this}some(l){return this.nodes.some(l)}walk(l){return this.each((m,d)=>{let g;try{g=l(m,d);}catch(S){throw m.addToError(S)}return g!==false&&m.walk&&(g=m.walk(l)),g})}walkAtRules(l,m){return m?l instanceof RegExp?this.walk((d,g)=>{if(d.type==="atrule"&&l.test(d.name))return m(d,g)}):this.walk((d,g)=>{if(d.type==="atrule"&&d.name===l)return m(d,g)}):(m=l,this.walk((d,g)=>{if(d.type==="atrule")return m(d,g)}))}walkComments(l){return this.walk((m,d)=>{if(m.type==="comment")return l(m,d)})}walkDecls(l,m){return m?l instanceof RegExp?this.walk((d,g)=>{if(d.type==="decl"&&l.test(d.prop))return m(d,g)}):this.walk((d,g)=>{if(d.type==="decl"&&d.prop===l)return m(d,g)}):(m=l,this.walk((d,g)=>{if(d.type==="decl")return m(d,g)}))}walkRules(l,m){return m?l instanceof RegExp?this.walk((d,g)=>{if(d.type==="rule"&&l.test(d.selector))return m(d,g)}):this.walk((d,g)=>{if(d.type==="rule"&&d.selector===l)return m(d,g)}):(m=l,this.walk((d,g)=>{if(d.type==="rule")return m(d,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return f.registerParse=u=>{o=u;},f.registerRule=u=>{c=u;},f.registerAtRule=u=>{p=u;},f.registerRoot=u=>{a=u;},Ur=f,f.default=f,f.rebuild=u=>{u.type==="atrule"?Object.setPrototypeOf(u,p.prototype):u.type==="rule"?Object.setPrototypeOf(u,c.prototype):u.type==="decl"?Object.setPrototypeOf(u,r.prototype):u.type==="comment"?Object.setPrototypeOf(u,i.prototype):u.type==="root"&&Object.setPrototypeOf(u,a.prototype),u[t]=true,u.nodes&&u.nodes.forEach(l=>{f.rebuild(l);});},Ur}var zr,Yi;function An(){if(Yi)return zr;Yi=1;let e=Pe(),t,r;class i extends e{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[]);}toResult(o={}){return new t(new r,this,o).stringify()}}return i.registerLazyResult=n=>{t=n;},i.registerProcessor=n=>{r=n;},zr=i,i.default=i,zr}var qr,Ji;function js(){if(Ji)return qr;Ji=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let n=i.node.rangeBy(i);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column;}for(let n in i)this[n]=i[n];}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return qr=e,e.default=e,qr}var $r,Qi;function Tn(){if(Qi)return $r;Qi=1;let e=js();class t{constructor(i,n,o){this.processor=i,this.messages=[],this.root=n,this.opts=o,this.css=void 0,this.map=void 0;}toString(){return this.css}warn(i,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let o=new e(i,n);return this.messages.push(o),o}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}}return $r=t,t.default=t,$r}var Wr,Zi;function Nl(){if(Zi)return Wr;Zi=1;let e=39,t=34,r=92,i=47,n=10,o=32,c=12,p=9,a=13,h=91,s=93,f=40,u=41,l=123,m=125,d=59,g=42,S=58,w=64,b=/[\t\n\f\r "#'()/;[\\\]{}]/g,x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,v=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return Wr=function(M,I={}){let R=M.css.valueOf(),k=I.ignoreErrors,A,E,K,Y,L,T,z,X,J,P,ce=R.length,N=0,re=[],W=[];function pe(){return N}function ie(D){throw M.error("Unclosed "+D,N)}function oe(){return W.length===0&&N>=ce}function xe(D){if(W.length)return W.pop();if(N>=ce)return;let ee=D?D.ignoreUnclosed:false;switch(A=R.charCodeAt(N),A){case n:case o:case p:case a:case c:{E=N;do E+=1,A=R.charCodeAt(E);while(A===o||A===n||A===p||A===a||A===c);P=["space",R.slice(N,E)],N=E-1;break}case h:case s:case l:case m:case S:case d:case u:{let q=String.fromCharCode(A);P=[q,q,N];break}case f:{if(X=re.length?re.pop()[1]:"",J=R.charCodeAt(N+1),X==="url"&&J!==e&&J!==t&&J!==o&&J!==n&&J!==p&&J!==c&&J!==a){E=N;do{if(T=false,E=R.indexOf(")",E+1),E===-1)if(k||ee){E=N;break}else ie("bracket");for(z=E;R.charCodeAt(z-1)===r;)z-=1,T=!T;}while(T);P=["brackets",R.slice(N,E+1),N,E],N=E;}else E=R.indexOf(")",N+1),Y=R.slice(N,E+1),E===-1||v.test(Y)?P=["(","(",N]:(P=["brackets",Y,N,E],N=E);break}case e:case t:{K=A===e?"'":'"',E=N;do{if(T=false,E=R.indexOf(K,E+1),E===-1)if(k||ee){E=N+1;break}else ie("string");for(z=E;R.charCodeAt(z-1)===r;)z-=1,T=!T;}while(T);P=["string",R.slice(N,E+1),N,E],N=E;break}case w:{b.lastIndex=N+1,b.test(R),b.lastIndex===0?E=R.length-1:E=b.lastIndex-2,P=["at-word",R.slice(N,E+1),N,E],N=E;break}case r:{for(E=N,L=true;R.charCodeAt(E+1)===r;)E+=1,L=!L;if(A=R.charCodeAt(E+1),L&&A!==i&&A!==o&&A!==n&&A!==p&&A!==a&&A!==c&&(E+=1,y.test(R.charAt(E)))){for(;y.test(R.charAt(E+1));)E+=1;R.charCodeAt(E+1)===o&&(E+=1);}P=["word",R.slice(N,E+1),N,E],N=E;break}default:{A===i&&R.charCodeAt(N+1)===g?(E=R.indexOf("*/",N+2)+1,E===0&&(k||ee?E=R.length:ie("comment")),P=["comment",R.slice(N,E+1),N,E],N=E):(x.lastIndex=N+1,x.test(R),x.lastIndex===0?E=R.length-1:E=x.lastIndex-2,P=["word",R.slice(N,E+1),N,E],re.push(P),N=E);break}}return N++,P}function ye(D){W.push(D);}return {back:ye,endOfFile:oe,nextToken:xe,position:pe}},Wr}var Hr,Ki;function kn(){if(Ki)return Hr;Ki=1;let e=Pe();class t extends e{constructor(i){super(i),this.type="atrule";}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return Hr=t,t.default=t,e.registerAtRule(t),Hr}var jr,es;function nt(){if(es)return jr;es=1;let e=Pe(),t,r;class i extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[]);}normalize(o,c,p){let a=super.normalize(o);if(c){if(p==="prepend")this.nodes.length>1?c.raws.before=this.nodes[1].raws.before:delete c.raws.before;else if(this.first!==c)for(let h of a)h.raws.before=c.raws.before;}return a}removeChild(o,c){let p=this.index(o);return !c&&p===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[p].raws.before),super.removeChild(o)}toResult(o={}){return new t(new r,this,o).stringify()}}return i.registerLazyResult=n=>{t=n;},i.registerProcessor=n=>{r=n;},jr=i,i.default=i,e.registerRoot(i),jr}var Vr,ts;function Vs(){if(ts)return Vr;ts=1;let e={comma(t){return e.split(t,[","],true)},space(t){let r=[" ",`
49
+ `," "];return e.split(t,r)},split(t,r,i){let n=[],o="",c=false,p=0,a=false,h="",s=false;for(let f of t)s?s=false:f==="\\"?s=true:a?f===h&&(a=false):f==='"'||f==="'"?(a=true,h=f):f==="("?p+=1:f===")"?p>0&&(p-=1):p===0&&r.includes(f)&&(c=true),c?(o!==""&&n.push(o.trim()),o="",c=false):o+=f;return (i||o!=="")&&n.push(o.trim()),n}};return Vr=e,e.default=e,Vr}var Gr,rs;function Dn(){if(rs)return Gr;rs=1;let e=Pe(),t=Vs();class r extends e{constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[]);}get selectors(){return t.comma(this.selector)}set selectors(n){let o=this.selector?this.selector.match(/,\s*/):null,c=o?o[0]:","+this.raw("between","beforeOpen");this.selector=n.join(c);}}return Gr=r,r.default=r,e.registerRule(r),Gr}var Yr,ns;function Ol(){if(ns)return Yr;ns=1;let e=Pt(),t=Nl(),r=Ft(),i=kn(),n=nt(),o=Dn(),c={empty:true,space:true};function p(h){for(let s=h.length-1;s>=0;s--){let f=h[s],u=f[3]||f[2];if(u)return u}}class a{constructor(s){this.input=s,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=false,this.createTokenizer(),this.root.source={input:s,start:{column:1,line:1,offset:0}};}atrule(s){let f=new i;f.name=s[1].slice(1),f.name===""&&this.unnamedAtrule(f,s),this.init(f,s[2]);let u,l,m,d=false,g=false,S=[],w=[];for(;!this.tokenizer.endOfFile();){if(s=this.tokenizer.nextToken(),u=s[0],u==="("||u==="["?w.push(u==="("?")":"]"):u==="{"&&w.length>0?w.push("}"):u===w[w.length-1]&&w.pop(),w.length===0)if(u===";"){f.source.end=this.getPosition(s[2]),f.source.end.offset++,this.semicolon=true;break}else if(u==="{"){g=true;break}else if(u==="}"){if(S.length>0){for(m=S.length-1,l=S[m];l&&l[0]==="space";)l=S[--m];l&&(f.source.end=this.getPosition(l[3]||l[2]),f.source.end.offset++);}this.end(s);break}else S.push(s);else S.push(s);if(this.tokenizer.endOfFile()){d=true;break}}f.raws.between=this.spacesAndCommentsFromEnd(S),S.length?(f.raws.afterName=this.spacesAndCommentsFromStart(S),this.raw(f,"params",S),d&&(s=S[S.length-1],f.source.end=this.getPosition(s[3]||s[2]),f.source.end.offset++,this.spaces=f.raws.between,f.raws.between="")):(f.raws.afterName="",f.params=""),g&&(f.nodes=[],this.current=f);}checkMissedSemicolon(s){let f=this.colon(s);if(f===false)return;let u=0,l;for(let m=f-1;m>=0&&(l=s[m],!(l[0]!=="space"&&(u+=1,u===2)));m--);throw this.input.error("Missed semicolon",l[0]==="word"?l[3]+1:l[2])}colon(s){let f=0,u,l,m;for(let[d,g]of s.entries()){if(u=g,l=u[0],l==="("&&(f+=1),l===")"&&(f-=1),f===0&&l===":")if(!m)this.doubleColon(u);else {if(m[0]==="word"&&m[1]==="progid")continue;return d}m=u;}return false}comment(s){let f=new r;this.init(f,s[2]),f.source.end=this.getPosition(s[3]||s[2]),f.source.end.offset++;let u=s[1].slice(2,-2);if(/^\s*$/.test(u))f.text="",f.raws.left=u,f.raws.right="";else {let l=u.match(/^(\s*)([^]*\S)(\s*)$/);f.text=l[2],f.raws.left=l[1],f.raws.right=l[3];}}createTokenizer(){this.tokenizer=t(this.input);}decl(s,f){let u=new e;this.init(u,s[0][2]);let l=s[s.length-1];for(l[0]===";"&&(this.semicolon=true,s.pop()),u.source.end=this.getPosition(l[3]||l[2]||p(s)),u.source.end.offset++;s[0][0]!=="word";)s.length===1&&this.unknownWord(s),u.raws.before+=s.shift()[1];for(u.source.start=this.getPosition(s[0][2]),u.prop="";s.length;){let w=s[0][0];if(w===":"||w==="space"||w==="comment")break;u.prop+=s.shift()[1];}u.raws.between="";let m;for(;s.length;)if(m=s.shift(),m[0]===":"){u.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),u.raws.between+=m[1];(u.prop[0]==="_"||u.prop[0]==="*")&&(u.raws.before+=u.prop[0],u.prop=u.prop.slice(1));let d=[],g;for(;s.length&&(g=s[0][0],!(g!=="space"&&g!=="comment"));)d.push(s.shift());this.precheckMissedSemicolon(s);for(let w=s.length-1;w>=0;w--){if(m=s[w],m[1].toLowerCase()==="!important"){u.important=true;let b=this.stringFrom(s,w);b=this.spacesFromEnd(s)+b,b!==" !important"&&(u.raws.important=b);break}else if(m[1].toLowerCase()==="important"){let b=s.slice(0),x="";for(let v=w;v>0;v--){let y=b[v][0];if(x.trim().indexOf("!")===0&&y!=="space")break;x=b.pop()[1]+x;}x.trim().indexOf("!")===0&&(u.important=true,u.raws.important=x,s=b);}if(m[0]!=="space"&&m[0]!=="comment")break}s.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(u.raws.between+=d.map(w=>w[1]).join(""),d=[]),this.raw(u,"value",d.concat(s),f),u.value.includes(":")&&!f&&this.checkMissedSemicolon(s);}doubleColon(s){throw this.input.error("Double colon",{offset:s[2]},{offset:s[2]+s[1].length})}emptyRule(s){let f=new o;this.init(f,s[2]),f.selector="",f.raws.between="",this.current=f;}end(s){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=false,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(s[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(s);}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position());}freeSemicolon(s){if(this.spaces+=s[1],this.current.nodes){let f=this.current.nodes[this.current.nodes.length-1];f&&f.type==="rule"&&!f.raws.ownSemicolon&&(f.raws.ownSemicolon=this.spaces,this.spaces="");}}getPosition(s){let f=this.input.fromOffset(s);return {column:f.col,line:f.line,offset:s}}init(s,f){this.current.push(s),s.source={input:this.input,start:this.getPosition(f)},s.raws.before=this.spaces,this.spaces="",s.type!=="comment"&&(this.semicolon=false);}other(s){let f=false,u=null,l=false,m=null,d=[],g=s[1].startsWith("--"),S=[],w=s;for(;w;){if(u=w[0],S.push(w),u==="("||u==="[")m||(m=w),d.push(u==="("?")":"]");else if(g&&l&&u==="{")m||(m=w),d.push("}");else if(d.length===0)if(u===";")if(l){this.decl(S,g);return}else break;else if(u==="{"){this.rule(S);return}else if(u==="}"){this.tokenizer.back(S.pop()),f=true;break}else u===":"&&(l=true);else u===d[d.length-1]&&(d.pop(),d.length===0&&(m=null));w=this.tokenizer.nextToken();}if(this.tokenizer.endOfFile()&&(f=true),d.length>0&&this.unclosedBracket(m),f&&l){if(!g)for(;S.length&&(w=S[S.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(S.pop());this.decl(S,g);}else this.unknownWord(S);}parse(){let s;for(;!this.tokenizer.endOfFile();)switch(s=this.tokenizer.nextToken(),s[0]){case "space":this.spaces+=s[1];break;case ";":this.freeSemicolon(s);break;case "}":this.end(s);break;case "comment":this.comment(s);break;case "at-word":this.atrule(s);break;case "{":this.emptyRule(s);break;default:this.other(s);break}this.endFile();}precheckMissedSemicolon(){}raw(s,f,u,l){let m,d,g=u.length,S="",w=true,b,x;for(let v=0;v<g;v+=1)m=u[v],d=m[0],d==="space"&&v===g-1&&!l?w=false:d==="comment"?(x=u[v-1]?u[v-1][0]:"empty",b=u[v+1]?u[v+1][0]:"empty",!c[x]&&!c[b]?S.slice(-1)===","?w=false:S+=m[1]:w=false):S+=m[1];if(!w){let v=u.reduce((y,C)=>y+C[1],"");s.raws[f]={raw:v,value:S};}s[f]=S;}rule(s){s.pop();let f=new o;this.init(f,s[0][2]),f.raws.between=this.spacesAndCommentsFromEnd(s),this.raw(f,"selector",s),this.current=f;}spacesAndCommentsFromEnd(s){let f,u="";for(;s.length&&(f=s[s.length-1][0],!(f!=="space"&&f!=="comment"));)u=s.pop()[1]+u;return u}spacesAndCommentsFromStart(s){let f,u="";for(;s.length&&(f=s[0][0],!(f!=="space"&&f!=="comment"));)u+=s.shift()[1];return u}spacesFromEnd(s){let f,u="";for(;s.length&&(f=s[s.length-1][0],f==="space");)u=s.pop()[1]+u;return u}stringFrom(s,f){let u="";for(let l=f;l<s.length;l++)u+=s[l][1];return s.splice(f,s.length-f),u}unclosedBlock(){let s=this.current.source.start;throw this.input.error("Unclosed block",s.line,s.column)}unclosedBracket(s){throw this.input.error("Unclosed bracket",{offset:s[2]},{offset:s[2]+1})}unexpectedClose(s){throw this.input.error("Unexpected }",{offset:s[2]},{offset:s[2]+1})}unknownWord(s){throw this.input.error("Unknown word",{offset:s[0][2]},{offset:s[0][2]+s[0][1].length})}unnamedAtrule(s,f){throw this.input.error("At-rule without name",{offset:f[2]},{offset:f[2]+f[1].length})}}return Yr=a,Yr}var Xr,is;function Ln(){if(is)return Xr;is=1;let e=Pe(),t=Ol(),r=_t();function i(n,o){let c=new r(n,o),p=new t(c);try{p.parse();}catch(a){throw a}return p.root}return Xr=i,i.default=i,e.registerParse(i),Xr}var Jr,ss;function Gs(){if(ss)return Jr;ss=1;let {isClean:e,my:t}=On(),r=Ws(),i=Dt(),n=Pe(),o=An(),p=Tn(),a=Ln(),h=nt(),s={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={AtRule:true,AtRuleExit:true,Comment:true,CommentExit:true,Declaration:true,DeclarationExit:true,Document:true,DocumentExit:true,Once:true,OnceExit:true,postcssPlugin:true,prepare:true,Root:true,RootExit:true,Rule:true,RuleExit:true},u={Once:true,postcssPlugin:true,prepare:true},l=0;function m(x){return typeof x=="object"&&typeof x.then=="function"}function d(x){let v=false,y=s[x.type];return x.type==="decl"?v=x.prop.toLowerCase():x.type==="atrule"&&(v=x.name.toLowerCase()),v&&x.append?[y,y+"-"+v,l,y+"Exit",y+"Exit-"+v]:v?[y,y+"-"+v,y+"Exit",y+"Exit-"+v]:x.append?[y,l,y+"Exit"]:[y,y+"Exit"]}function g(x){let v;return x.type==="document"?v=["Document",l,"DocumentExit"]:x.type==="root"?v=["Root",l,"RootExit"]:v=d(x),{eventIndex:0,events:v,iterator:0,node:x,visitorIndex:0,visitors:[]}}function S(x){return x[e]=false,x.nodes&&x.nodes.forEach(v=>S(v)),x}let w={};class b{constructor(v,y,C){this.stringified=false,this.processed=false;let M;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))M=S(y);else if(y instanceof b||y instanceof p)M=S(y.root),y.map&&(typeof C.map>"u"&&(C.map={}),C.map.inline||(C.map.inline=false),C.map.prev=y.map);else {let I=a;C.syntax&&(I=C.syntax.parse),C.parser&&(I=C.parser),I.parse&&(I=I.parse);try{M=I(y,C);}catch(R){this.processed=true,this.error=R;}M&&!M[t]&&n.rebuild(M);}this.result=new p(v,M,C),this.helpers={...w,postcss:w,result:this.result},this.plugins=this.processor.plugins.map(I=>typeof I=="object"&&I.prepare?{...I,...I.prepare(this.result)}:I);}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(v){return this.async().catch(v)}finally(v){return this.async().then(v,v)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(v,y){let C=this.result.lastPlugin;try{y&&y.addToError(v),this.error=v,v.name==="CssSyntaxError"&&!v.plugin?(v.plugin=C.postcssPlugin,v.setMessage()):C.postcssVersion;}catch(M){console&&console.error&&console.error(M);}return v}prepareVisitors(){this.listeners={};let v=(y,C,M)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([y,M]);};for(let y of this.plugins)if(typeof y=="object")for(let C in y){if(!f[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!u[C])if(typeof y[C]=="object")for(let M in y[C])M==="*"?v(y,C,y[C][M]):v(y,C+"-"+M.toLowerCase(),y[C][M]);else typeof y[C]=="function"&&v(y,C,y[C]);}this.hasListener=Object.keys(this.listeners).length>0;}async runAsync(){this.plugin=0;for(let v=0;v<this.plugins.length;v++){let y=this.plugins[v],C=this.runOnRoot(y);if(m(C))try{await C;}catch(M){throw this.handleError(M)}}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];){v[e]=true;let y=[g(v)];for(;y.length>0;){let C=this.visitTick(y);if(m(C))try{await C;}catch(M){let I=y[y.length-1].node;throw this.handleError(M,I)}}}if(this.listeners.OnceExit)for(let[y,C]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(v.type==="document"){let M=v.nodes.map(I=>C(I,this.helpers));await Promise.all(M);}else await C(v,this.helpers);}catch(M){throw this.handleError(M)}}}return this.processed=true,this.stringify()}runOnRoot(v){this.result.lastPlugin=v;try{if(typeof v=="object"&&v.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(C=>v.Once(C,this.helpers));return m(y[0])?Promise.all(y):y}return v.Once(this.result.root,this.helpers)}else if(typeof v=="function")return v(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=true,this.sync();let v=this.result.opts,y=i;v.syntax&&(y=v.syntax.stringify),v.stringifier&&(y=v.stringifier),y.stringify&&(y=y.stringify);let M=new r(y,this.result.root,this.result.opts).generate();return this.result.css=M[0],this.result.map=M[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=true,this.processing)throw this.getAsyncError();for(let v of this.plugins){let y=this.runOnRoot(v);if(m(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];)v[e]=true,this.walkSync(v);if(this.listeners.OnceExit)if(v.type==="document")for(let y of v.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,v);}return this.result}then(v,y){return this.async().then(v,y)}toString(){return this.css}visitSync(v,y){for(let[C,M]of v){this.result.lastPlugin=C;let I;try{I=M(y,this.helpers);}catch(R){throw this.handleError(R,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return true;if(m(I))throw this.getAsyncError()}}visitTick(v){let y=v[v.length-1],{node:C,visitors:M}=y;if(C.type!=="root"&&C.type!=="document"&&!C.parent){v.pop();return}if(M.length>0&&y.visitorIndex<M.length){let[R,k]=M[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===M.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=R;try{return k(C.toProxy(),this.helpers)}catch(A){throw this.handleError(A,C)}}if(y.iterator!==0){let R=y.iterator,k;for(;k=C.nodes[C.indexes[R]];)if(C.indexes[R]+=1,!k[e]){k[e]=true,v.push(g(k));return}y.iterator=0,delete C.indexes[R];}let I=y.events;for(;y.eventIndex<I.length;){let R=I[y.eventIndex];if(y.eventIndex+=1,R===l){C.nodes&&C.nodes.length&&(C[e]=true,y.iterator=C.getIterator());return}else if(this.listeners[R]){y.visitors=this.listeners[R];return}}v.pop();}walkSync(v){v[e]=true;let y=d(v);for(let C of y)if(C===l)v.nodes&&v.each(M=>{M[e]||this.walkSync(M);});else {let M=this.listeners[C];if(M&&this.visitSync(M,v.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"}}return b.registerPostcss=x=>{w=x;},Jr=b,b.default=b,h.registerLazyResult(b),o.registerLazyResult(b),Jr}var Qr,os;function Al(){if(os)return Qr;os=1;let e=Ws(),t=Dt(),i=Ln(),n=Tn();class o{constructor(p,a,h){a=a.toString(),this.stringified=false,this._processor=p,this._css=a,this._opts=h,this._map=void 0;let s,f=t;this.result=new n(this._processor,s,this._opts),this.result.css=a;let u=this;Object.defineProperty(this.result,"root",{get(){return u.root}});let l=new e(f,s,this._opts,a);if(l.isMap()){let[m,d]=l.generate();m&&(this.result.css=m),d&&(this.result.map=d);}else l.clearAnnotation(),this.result.css=l.css;}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(p){return this.async().catch(p)}finally(p){return this.async().then(p,p)}sync(){if(this.error)throw this.error;return this.result}then(p,a){return this.async().then(p,a)}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 p,a=i;try{p=a(this._css,this._opts);}catch(h){this.error=h;}if(this.error)throw this.error;return this._root=p,p}get[Symbol.toStringTag](){return "NoWorkResult"}}return Qr=o,o.default=o,Qr}var Zr,as;function Tl(){if(as)return Zr;as=1;let e=Al(),t=Gs(),r=An(),i=nt();class n{constructor(c=[]){this.version="8.4.38",this.plugins=this.normalize(c);}normalize(c){let p=[];for(let a of c)if(a.postcss===true?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))p=p.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)p.push(a);else if(typeof a=="function")p.push(a);else if(!(typeof a=="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin");return p}process(c,p={}){return !this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new e(this,c,p):new t(this,c,p)}use(c){return this.plugins=this.plugins.concat(this.normalize([c])),this}}return Zr=n,n.default=n,i.registerProcessor(n),r.registerProcessor(n),Zr}var Kr,ls;function kl(){if(ls)return Kr;ls=1;let e=Pt(),t=$s(),r=Ft(),i=kn(),n=_t(),o=nt(),c=Dn();function p(a,h){if(Array.isArray(a))return a.map(u=>p(u));let{inputs:s,...f}=a;if(s){h=[];for(let u of s){let l={...u,__proto__:n.prototype};l.map&&(l.map={...l.map,__proto__:t.prototype}),h.push(l);}}if(f.nodes&&(f.nodes=a.nodes.map(u=>p(u,h))),f.source){let{inputId:u,...l}=f.source;f.source=l,u!=null&&(f.source.input=h[u]);}if(f.type==="root")return new o(f);if(f.type==="decl")return new e(f);if(f.type==="rule")return new c(f);if(f.type==="comment")return new r(f);if(f.type==="atrule")return new i(f);throw new Error("Unknown node type: "+a.type)}return Kr=p,p.default=p,Kr}var en,us;function Dl(){if(us)return en;us=1;let e=Nn(),t=Pt(),r=Gs(),i=Pe(),n=Tl(),o=Dt(),c=kl(),p=An(),a=js(),h=Ft(),s=kn(),f=Tn(),u=_t(),l=Ln(),m=Vs(),d=Dn(),g=nt(),S=Lt();function w(...b){return b.length===1&&Array.isArray(b[0])&&(b=b[0]),new n(b)}return w.plugin=function(x,v){let y=false;function C(...I){console&&console.warn&&!y&&(y=true,console.warn(x+`: postcss.plugin was deprecated. Migration guide:
50
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(x+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
51
+ https://www.w3ctech.com/topic/2226`));let R=v(...I);return R.postcssPlugin=x,R.postcssVersion=new n().version,R}let M;return Object.defineProperty(C,"postcss",{get(){return M||(M=C()),M}}),C.process=function(I,R,k){return w([C(k)]).process(I,R)},C},w.stringify=o,w.parse=l,w.fromJSON=c,w.list=m,w.comment=b=>new h(b),w.atRule=b=>new s(b),w.decl=b=>new t(b),w.rule=b=>new d(b),w.root=b=>new g(b),w.document=b=>new p(b),w.CssSyntaxError=e,w.Declaration=t,w.Container=i,w.Processor=n,w.Document=p,w.Comment=h,w.Warning=a,w.AtRule=s,w.Result=f,w.Input=u,w.Rule=d,w.Root=g,w.Node=S,r.registerPostcss(w),en=w,w.default=w,en}var Ll=Dl(),Z=Cl(Ll);Z.stringify;Z.fromJSON;Z.plugin;Z.parse;Z.list;Z.document;Z.comment;Z.atRule;Z.rule;Z.decl;Z.root;Z.CssSyntaxError;Z.Declaration;Z.Container;Z.Processor;Z.Document;Z.Comment;Z.Warning;Z.AtRule;Z.Result;Z.Input;Z.Rule;Z.Root;Z.Node;var an=class e{constructor(...t){me(this,"parentElement",null),me(this,"parentNode",null),me(this,"ownerDocument"),me(this,"firstChild",null),me(this,"lastChild",null),me(this,"previousSibling",null),me(this,"nextSibling",null),me(this,"ELEMENT_NODE",1),me(this,"TEXT_NODE",3),me(this,"nodeType"),me(this,"nodeName"),me(this,"RRNodeType");}get childNodes(){let t=[],r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof e){if(t.ownerDocument!==this.ownerDocument)return false;if(t===this)return true}else return false;for(;t.parentNode;){if(t.parentNode===this)return true;t=t.parentNode;}return false}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return "RRNode"}};var cs={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},fs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},mt={},Ys={},Pl=()=>!!globalThis.Zone;function Pn(e){if(mt[e])return mt[e];let t=globalThis[e],r=t.prototype,i=e in cs?cs[e]:void 0,n=!!(i&&i.every(p=>{var a,h;return !!((h=(a=Object.getOwnPropertyDescriptor(r,p))==null?void 0:a.get)!=null&&h.toString().includes("[native code]"))})),o=e in fs?fs[e]:void 0,c=!!(o&&o.every(p=>{var a;return typeof r[p]=="function"&&((a=r[p])==null?void 0:a.toString().includes("[native code]"))}));if(n&&c&&!Pl())return mt[e]=t.prototype,t.prototype;try{let p=document.createElement("iframe");p.style.display="none",document.body.appendChild(p);let a=p.contentWindow;if(!a)return t.prototype;let h=a[e].prototype;if(!h)return p.remove(),r;let s=navigator.userAgent;return s.includes("Safari")&&!s.includes("Chrome")?(p.classList.add("rr-block"),p.setAttribute("__rrwebUntaintedMutationObserver",""),Ys[e]=()=>p.remove()):p.remove(),mt[e]=h}catch{return r}}var tn={};function Ne(e,t,r){var i;let n=`${e}.${String(r)}`;if(tn[n])return tn[n].call(t);let o=Pn(e),c=(i=Object.getOwnPropertyDescriptor(o,r))==null?void 0:i.get;return c?(tn[n]=c,c.call(t)):t[r]}var rn={};function Xs(e,t,r){let i=`${e}.${String(r)}`;if(rn[i])return rn[i].bind(t);let o=Pn(e)[r];return typeof o!="function"?t[r]:(rn[i]=o,o.bind(t))}function _l(e){return Ne("Node",e,"ownerDocument")}function Fl(e){return Ne("Node",e,"childNodes")}function Ul(e){return Ne("Node",e,"parentNode")}function zl(e){return Ne("Node",e,"parentElement")}function Bl(e){return Ne("Node",e,"textContent")}function ql(e,t){return Xs("Node",e,"contains")(t)}function $l(e){return Xs("Node",e,"getRootNode")()}function Wl(e){return !e||!("host"in e)?null:Ne("ShadowRoot",e,"host")}function Hl(e){return e.styleSheets}function jl(e){return !e||!("shadowRoot"in e)?null:Ne("Element",e,"shadowRoot")}function Vl(e,t){return Ne("Element",e,"querySelector")(t)}function Gl(e,t){return Ne("Element",e,"querySelectorAll")(t)}function Js(){return [Pn("MutationObserver").constructor,Ys.MutationObserver??(()=>{})]}var et=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(et=()=>new Date().getTime());function _e(e,t,r){try{if(!(t in e))return ()=>{};let i=e[t],n=r(i);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=n,()=>{e[t]=i;}}catch{return ()=>{}}}var _={ownerDocument:_l,childNodes:Fl,parentNode:Ul,parentElement:zl,textContent:Bl,contains:ql,getRootNode:$l,host:Wl,styleSheets:Hl,shadowRoot:jl,querySelector:Vl,querySelectorAll:Gl,nowTimestamp:et,mutationObserverCtor:Js,patch:_e};function ae(e,t,r=document){let i={capture:true,passive:true};return r.addEventListener(e,t,i),()=>r.removeEventListener(e,t,i)}var ze=`Please stop import mirror directly. Instead of that,\r
52
+ now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
53
+ or you can use record.mirror to access the mirror instance during recording.`,hs={map:{},getId(){return console.error(ze),-1},getNode(){return console.error(ze),null},removeNodeFromMap(){console.error(ze);},has(){return console.error(ze),false},reset(){console.error(ze);}};typeof window<"u"&&window.Proxy&&window.Reflect&&(hs=new Proxy(hs,{get(e,t,r){return t==="map"&&console.error(ze),Reflect.get(e,t,r)}}));function tt(e,t,r={}){let i=null,n=0;return function(...o){let c=Date.now();!n&&r.leading===false&&(n=c);let p=t-(c-n),a=this;p<=0||p>t?(i&&(clearTimeout(i),i=null),n=c,e.apply(a,o)):!i&&r.trailing!==false&&(i=setTimeout(()=>{n=r.leading===false?0:Date.now(),i=null,e.apply(a,o);},p));}}function Ut(e,t,r,i,n=window){let o=n.Object.getOwnPropertyDescriptor(e,t);return n.Object.defineProperty(e,t,i?r:{set(c){setTimeout(()=>{r.set.call(this,c);},0),o&&o.set&&o.set.call(this,c);}}),()=>Ut(e,t,o||{},true)}function Qs(e){var t,r,i,n;let o=e.document;return {left:o.scrollingElement?o.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:o.documentElement.scrollLeft||o?.body&&((t=_.parentElement(o.body))==null?void 0:t.scrollLeft)||((r=o?.body)==null?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:o?.documentElement.scrollTop||o?.body&&((i=_.parentElement(o.body))==null?void 0:i.scrollTop)||((n=o?.body)==null?void 0:n.scrollTop)||0}}function Zs(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ks(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function eo(e){return e?e.nodeType===e.ELEMENT_NODE?e:_.parentElement(e):null}function le(e,t,r,i){if(!e)return false;let n=eo(e);if(!n)return false;try{if(typeof t=="string"){if(n.classList.contains(t)||i&&n.closest("."+t)!==null)return !0}else if(Et(n,t,i))return !0}catch{}return !!(r&&(n.matches(r)||i&&n.closest(r)!==null))}function Yl(e,t){return t.getId(e)!==-1}function nn(e,t,r){return e.tagName==="TITLE"&&r.headTitleMutations?true:t.getId(e)===Ke}function to(e,t){if(Je(e))return false;let r=t.getId(e);if(!t.has(r))return true;let i=_.parentNode(e);return i&&i.nodeType===e.DOCUMENT_NODE?false:i?to(i,t):true}function ln(e){return !!e.changedTouches}function Xl(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach);}function ro(e,t){return !!(e.nodeName==="IFRAME"&&t.getMeta(e))}function no(e,t){return !!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function un(e){return e?e instanceof an&&"shadowRoot"in e?!!e.shadowRoot:!!_.shadowRoot(e):false}var cn=class{constructor(){O(this,"id",1),O(this,"styleIDMap",new WeakMap),O(this,"idStyleMap",new Map);}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let i;return r===void 0?i=this.id++:i=r,this.styleIDMap.set(t,i),this.idStyleMap.set(i,t),i}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1;}generateId(){return this.id++}};function io(e){var t;let r=null;return "getRootNode"in e&&((t=_.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&_.host(_.getRootNode(e))&&(r=_.host(_.getRootNode(e))),r}function Jl(e){let t=e,r;for(;r=io(t);)t=r;return t}function Ql(e){let t=_.ownerDocument(e);if(!t)return false;let r=Jl(e);return _.contains(t,r)}function so(e){let t=_.ownerDocument(e);return t?_.contains(t,e)||Ql(e):false}var B=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.Asset=7]="Asset",e))(B||{}),F=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(F||{}),fe=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(fe||{}),Re=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Re||{}),He=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(He||{}),Be=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Be||{});var oo=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(oo||{});function ds(e){return "__ln"in e}var fn=class{constructor(){O(this,"length",0),O(this,"head",null),O(this,"tail",null);}get(t){if(t>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let i=0;i<t;i++)r=r?.next||null;return r}addNode(t){let r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&ds(t.previousSibling)){let i=t.previousSibling.__ln.next;r.next=i,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,i&&(i.previous=r);}else if(t.nextSibling&&ds(t.nextSibling)&&t.nextSibling.__ln.previous){let i=t.nextSibling.__ln.previous;r.previous=i,r.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=r,i&&(i.next=r);}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++;}removeNode(t){let r=t.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--);}},ps=(e,t)=>`${e}@${t}`,hn=class{constructor(){O(this,"frozen",false),O(this,"locked",false),O(this,"texts",[]),O(this,"attributes",[]),O(this,"attributeMap",new WeakMap),O(this,"removes",[]),O(this,"mapRemoves",[]),O(this,"movedMap",{}),O(this,"addedSet",new Set),O(this,"movedSet",new Set),O(this,"droppedSet",new Set),O(this,"removesSubTreeCache",new Set),O(this,"mutationCb"),O(this,"blockClass"),O(this,"blockSelector"),O(this,"maskTextClass"),O(this,"maskTextSelector"),O(this,"inlineStylesheet"),O(this,"maskInputOptions"),O(this,"maskTextFn"),O(this,"maskInputFn"),O(this,"keepIframeSrcFn"),O(this,"recordCanvas"),O(this,"inlineImages"),O(this,"slimDOMOptions"),O(this,"dataURLOptions"),O(this,"doc"),O(this,"mirror"),O(this,"iframeManager"),O(this,"stylesheetManager"),O(this,"shadowDomManager"),O(this,"canvasManager"),O(this,"processedNodeManager"),O(this,"unattachedDoc"),O(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit();}),O(this,"emit",()=>{if(this.frozen||this.locked)return;let t=[],r=new Set,i=new fn,n=a=>{let h=a,s=Ke;for(;s===Ke;)h=h&&h.nextSibling,s=h&&this.mirror.getId(h);return s},o=a=>{let h=_.parentNode(a);if(!h||!so(a))return;let s=false;if(a.nodeType===Node.TEXT_NODE){let m=h.tagName;if(m==="TEXTAREA")return;m==="STYLE"&&this.addedSet.has(h)&&(s=true);}let f=Je(h)?this.mirror.getId(io(a)):this.mirror.getId(h),u=n(a);if(f===-1||u===-1)return i.addNode(a);let l=$e(a,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:true,newlyAddedElement:true,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:m=>{ro(m,this.mirror)&&this.iframeManager.addIframe(m),no(m,this.mirror)&&this.stylesheetManager.trackLinkElement(m),un(a)&&this.shadowDomManager.addShadowRoot(_.shadowRoot(a),this.doc);},onIframeLoad:(m,d)=>{this.iframeManager.attachIframe(m,d),this.shadowDomManager.observeAttachShadow(m);},onStylesheetLoad:(m,d)=>{this.stylesheetManager.attachLinkElement(m,d);},cssCaptured:s});l&&(t.push({parentId:f,nextId:u,node:l}),r.add(l.id));};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let a of this.movedSet)ms(this.removesSubTreeCache,a,this.mirror)&&!this.movedSet.has(_.parentNode(a))||o(a);for(let a of this.addedSet)!gs(this.droppedSet,a)&&!ms(this.removesSubTreeCache,a,this.mirror)||gs(this.movedSet,a)?o(a):this.droppedSet.add(a);let c=null;for(;i.length;){let a=null;if(c){let h=this.mirror.getId(_.parentNode(c.value)),s=n(c.value);h!==-1&&s!==-1&&(a=c);}if(!a){let h=i.tail;for(;h;){let s=h;if(h=h.previous,s){let f=this.mirror.getId(_.parentNode(s.value));if(n(s.value)===-1)continue;if(f!==-1){a=s;break}else {let l=s.value,m=_.parentNode(l);if(m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let d=_.host(m);if(this.mirror.getId(d)!==-1){a=s;break}}}}}}if(!a){for(;i.head;)i.removeNode(i.head.value);break}c=a.previous,i.removeNode(a.value),o(a.value);}let p={texts:this.texts.map(a=>{let h=a.node,s=_.parentNode(h);return s&&s.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(s),{id:this.mirror.getId(h),value:a.value}}).filter(a=>!r.has(a.id)).filter(a=>this.mirror.has(a.id)),attributes:this.attributes.map(a=>{let{attributes:h}=a;if(typeof h.style=="string"){let s=JSON.stringify(a.styleDiff),f=JSON.stringify(a._unchangedStyles);s.length<h.style.length&&(s+f).split("var(").length===h.style.split("var(").length&&(h.style=a.styleDiff);}return {id:this.mirror.getId(a.node),attributes:h}}).filter(a=>!r.has(a.id)).filter(a=>this.mirror.has(a.id)),removes:this.removes,adds:t};!p.texts.length&&!p.attributes.length&&!p.removes.length&&!p.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(p));}),O(this,"genTextAreaValueMutation",t=>{let r=this.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(t,r));let i=Array.from(_.childNodes(t),n=>_.textContent(n)||"").join("");r.attributes.value=St({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:Ct(t),value:i,maskInputFn:this.maskInputFn});}),O(this,"processMutation",t=>{if(!nn(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case "characterData":{let r=_.textContent(t.target);!le(t.target,this.blockClass,this.blockSelector,false)&&r!==t.oldValue&&this.texts.push({value:ks(t.target,this.maskTextClass,this.maskTextSelector,true)&&r?this.maskTextFn?this.maskTextFn(r,eo(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case "attributes":{let r=t.target,i=t.attributeName,n=t.target.getAttribute(i);if(i==="value"){let c=Ct(r);n=St({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:c,value:n,maskInputFn:this.maskInputFn});}if(le(t.target,this.blockClass,this.blockSelector,false)||n===t.oldValue)return;let o=this.attributeMap.get(t.target);if(r.tagName==="IFRAME"&&i==="src"&&!this.keepIframeSrcFn(n))if(!r.contentDocument)i="rr_src";else return;if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),i==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Ts(r.tagName,i))if(o.attributes[i]=As(this.doc,De(r.tagName),De(i),n),i==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument();}catch{this.unattachedDoc=this.doc;}let c=this.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(let p of Array.from(r.style)){let a=r.style.getPropertyValue(p),h=r.style.getPropertyPriority(p);a!==c.style.getPropertyValue(p)||h!==c.style.getPropertyPriority(p)?h===""?o.styleDiff[p]=a:o.styleDiff[p]=[a,h]:o._unchangedStyles[p]=[a,h];}for(let p of Array.from(c.style))r.style.getPropertyValue(p)===""&&(o.styleDiff[p]=false);}else i==="open"&&r.tagName==="DIALOG"&&(r.matches("dialog:modal")?o.attributes.rr_open_mode="modal":o.attributes.rr_open_mode="non-modal");break}case "childList":{if(le(t.target,this.blockClass,this.blockSelector,true))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{let i=this.mirror.getId(r),n=Je(t.target)?this.mirror.getId(_.host(t.target)):this.mirror.getId(t.target);le(t.target,this.blockClass,this.blockSelector,false)||nn(r,this.mirror,this.slimDOMOptions)||!Yl(r,this.mirror)||(this.addedSet.has(r)?(dn(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&i===-1||to(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[ps(i,n)]?dn(this.movedSet,r):(this.removes.push({parentId:n,id:i,isShadow:Je(t.target)&&Qe(t.target)?true:void 0}),Zl(r,this.removesSubTreeCache))),this.mapRemoves.push(r));});break}}}),O(this,"genAdds",(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(nn(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let i=null;r&&this.mirror.hasNode(r)&&(i=this.mirror.getId(r)),i&&i!==-1&&(this.movedMap[ps(this.mirror.getId(t),i)]=true);}else this.addedSet.add(t),this.droppedSet.delete(t);le(t,this.blockClass,this.blockSelector,false)||(_.childNodes(t).forEach(i=>this.genAdds(i)),un(t)&&_.childNodes(_.shadowRoot(t)).forEach(i=>{this.processedNodeManager.add(i,this),this.genAdds(i,t);}));}});}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(r=>{this[r]=t[r];});}freeze(){this.frozen=true,this.canvasManager.freeze();}unfreeze(){this.frozen=false,this.canvasManager.unfreeze(),this.emit();}isFrozen(){return this.frozen}lock(){this.locked=true,this.canvasManager.lock();}unlock(){this.locked=false,this.canvasManager.unlock(),this.emit();}reset(){this.shadowDomManager.reset(),this.canvasManager.reset();}};function dn(e,t){e.delete(t),_.childNodes(t).forEach(r=>dn(e,r));}function Zl(e,t){let r=[e];for(;r.length;){let i=r.pop();t.has(i)||(t.add(i),_.childNodes(i).forEach(n=>r.push(n)));}}function ms(e,t,r){return e.size===0?false:Kl(e,t)}function Kl(e,t,r){let i=_.parentNode(t);return i?e.has(i):false}function gs(e,t){return e.size===0?false:ao(e,t)}function ao(e,t){let r=_.parentNode(t);return r?e.has(r)?true:ao(e,r):false}var Ze;function eu(e){Ze=e;}function tu(){Ze=void 0;}var U=e=>Ze?(...r)=>{try{return e(...r)}catch(i){if(Ze&&Ze(i)===true)return;throw i}}:e,ke=[];function it(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function lo(e,t){let r=new hn;ke.push(r),r.init(e);let[i,n]=Js(),o=new i(U(r.processMutations.bind(r)));return o.observe(t,{attributes:true,attributeOldValue:true,characterData:true,characterDataOldValue:true,childList:true,subtree:true}),[o,n]}function ru({mousemoveCb:e,sampling:t,doc:r,mirror:i}){if(t.mousemove===false)return ()=>{};let n=typeof t.mousemove=="number"?t.mousemove:50,o=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,c=[],p,a=tt(U(f=>{let u=Date.now()-p;e(c.map(l=>(l.timeOffset-=u,l)),f),c=[],p=null;}),o),h=U(tt(U(f=>{let u=it(f),{clientX:l,clientY:m}=ln(f)?f.changedTouches[0]:f;p||(p=et()),c.push({x:l,y:m,id:i.getId(u),timeOffset:et()-p}),a(typeof DragEvent<"u"&&f instanceof DragEvent?F.Drag:f instanceof MouseEvent?F.MouseMove:F.TouchMove);}),n,{trailing:!1})),s=[ae("mousemove",h,r),ae("touchmove",h,r),ae("drag",h,r)];return U(()=>{s.forEach(f=>f());})}function nu({mouseInteractionCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,sampling:o}){if(o.mouseInteraction===false)return ()=>{};let c=o.mouseInteraction===true||o.mouseInteraction===void 0?{}:o.mouseInteraction,p=[],a=null,h=s=>f=>{let u=it(f);if(le(u,i,n,true))return;let l=null,m=s;if("pointerType"in f){switch(f.pointerType){case "mouse":l=Re.Mouse;break;case "touch":l=Re.Touch;break;case "pen":l=Re.Pen;break}l===Re.Touch?fe[s]===fe.MouseDown?m="TouchStart":fe[s]===fe.MouseUp&&(m="TouchEnd"):Re.Pen;}else ln(f)&&(l=Re.Touch);l!==null?(a=l,(m.startsWith("Touch")&&l===Re.Touch||m.startsWith("Mouse")&&l===Re.Mouse)&&(l=null)):fe[s]===fe.Click&&(l=a,a=null);let d=ln(f)?f.changedTouches[0]:f;if(!d)return;let g=r.getId(u),{clientX:S,clientY:w}=d;U(e)({type:fe[m],id:g,x:S,y:w,...l!==null&&{pointerType:l}});};return Object.keys(fe).filter(s=>Number.isNaN(Number(s))&&!s.endsWith("_Departed")&&c[s]!==false).forEach(s=>{let f=De(s),u=h(s);if(window.PointerEvent)switch(fe[s]){case fe.MouseDown:case fe.MouseUp:f=f.replace("mouse","pointer");break;case fe.TouchStart:case fe.TouchEnd:return}p.push(ae(f,u,t));}),U(()=>{p.forEach(s=>s());})}function uo({scrollCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,sampling:o}){let c=U(tt(U(p=>{let a=it(p);if(!a||le(a,i,n,!0))return;let h=r.getId(a);if(a===t&&t.defaultView){let s=Qs(t.defaultView);e({id:h,x:s.left,y:s.top});}else e({id:h,x:a.scrollLeft,y:a.scrollTop});}),o.scroll||100));return ae("scroll",c,t)}function iu({viewportResizeCb:e},{win:t}){let r=-1,i=-1,n=U(tt(U(()=>{let o=Zs(),c=Ks();(r!==o||i!==c)&&(e({width:Number(c),height:Number(o)}),r=o,i=c);}),200));return ae("resize",n,t)}var su=["INPUT","TEXTAREA","SELECT"],ys=new WeakMap;function ou({inputCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,ignoreClass:o,ignoreSelector:c,maskInputOptions:p,maskInputFn:a,sampling:h,userTriggeredOnInput:s}){function f(w){let b=it(w),x=w.isTrusted,v=b&&b.tagName;if(b&&v==="OPTION"&&(b=_.parentElement(b)),!b||!v||su.indexOf(v)<0||le(b,i,n,true)||b.classList.contains(o)||c&&b.matches(c))return;let y=b.value,C=false,M=Ct(b)||"";M==="radio"||M==="checkbox"?C=b.checked:(p[v.toLowerCase()]||p[M])&&(y=St({element:b,maskInputOptions:p,tagName:v,type:M,value:y,maskInputFn:a})),u(b,s?{text:y,isChecked:C,userTriggered:x}:{text:y,isChecked:C});let I=b.name;M==="radio"&&I&&C&&t.querySelectorAll(`input[type="radio"][name="${I}"]`).forEach(R=>{if(R!==b){let k=R.value;u(R,s?{text:k,isChecked:!C,userTriggered:false}:{text:k,isChecked:!C});}});}function u(w,b){let x=ys.get(w);if(!x||x.text!==b.text||x.isChecked!==b.isChecked){ys.set(w,b);let v=r.getId(w);U(e)({...b,id:v});}}let m=(h.input==="last"?["change"]:["input","change"]).map(w=>ae(w,U(f),t)),d=t.defaultView;if(!d)return ()=>{m.forEach(w=>w());};let g=d.Object.getOwnPropertyDescriptor(d.HTMLInputElement.prototype,"value"),S=[[d.HTMLInputElement.prototype,"value"],[d.HTMLInputElement.prototype,"checked"],[d.HTMLSelectElement.prototype,"value"],[d.HTMLTextAreaElement.prototype,"value"],[d.HTMLSelectElement.prototype,"selectedIndex"],[d.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&m.push(...S.map(w=>Ut(w[0],w[1],{set(){U(f)({target:this,isTrusted:false});}},false,d))),U(()=>{m.forEach(w=>w());})}function Mt(e){let t=[];function r(i,n){if(gt("CSSGroupingRule")&&i.parentRule instanceof CSSGroupingRule||gt("CSSMediaRule")&&i.parentRule instanceof CSSMediaRule||gt("CSSSupportsRule")&&i.parentRule instanceof CSSSupportsRule||gt("CSSConditionRule")&&i.parentRule instanceof CSSConditionRule){let c=Array.from(i.parentRule.cssRules).indexOf(i);return n.unshift(c),r(i.parentRule,n)}else if(i.parentStyleSheet){let c=Array.from(i.parentStyleSheet.cssRules).indexOf(i);n.unshift(c);}return n}return r(e,t)}function Ae(e,t,r){let i,n;return e?(e.ownerNode?i=t.getId(e.ownerNode):n=r.getId(e),{styleId:n,id:i}):{}}function au({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return ()=>{};let n=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(n,{apply:U((s,f,u)=>{let[l,m]=u,{id:d,styleId:g}=Ae(f,t,r.styleMirror);return (d&&d!==-1||g&&g!==-1)&&e({id:d,styleId:g,adds:[{rule:l,index:m}]}),s.apply(f,u)})}),i.CSSStyleSheet.prototype.addRule=function(s,f,u=this.cssRules.length){let l=`${s} { ${f} }`;return i.CSSStyleSheet.prototype.insertRule.apply(this,[l,u])};let o=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:U((s,f,u)=>{let[l]=u,{id:m,styleId:d}=Ae(f,t,r.styleMirror);return (m&&m!==-1||d&&d!==-1)&&e({id:m,styleId:d,removes:[{index:l}]}),s.apply(f,u)})}),i.CSSStyleSheet.prototype.removeRule=function(s){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[s])};let c;i.CSSStyleSheet.prototype.replace&&(c=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(c,{apply:U((s,f,u)=>{let[l]=u,{id:m,styleId:d}=Ae(f,t,r.styleMirror);return (m&&m!==-1||d&&d!==-1)&&e({id:m,styleId:d,replace:l}),s.apply(f,u)})}));let p;i.CSSStyleSheet.prototype.replaceSync&&(p=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(p,{apply:U((s,f,u)=>{let[l]=u,{id:m,styleId:d}=Ae(f,t,r.styleMirror);return (m&&m!==-1||d&&d!==-1)&&e({id:m,styleId:d,replaceSync:l}),s.apply(f,u)})}));let a={};yt("CSSGroupingRule")?a.CSSGroupingRule=i.CSSGroupingRule:(yt("CSSMediaRule")&&(a.CSSMediaRule=i.CSSMediaRule),yt("CSSConditionRule")&&(a.CSSConditionRule=i.CSSConditionRule),yt("CSSSupportsRule")&&(a.CSSSupportsRule=i.CSSSupportsRule));let h={};return Object.entries(a).forEach(([s,f])=>{h[s]={insertRule:f.prototype.insertRule,deleteRule:f.prototype.deleteRule},f.prototype.insertRule=new Proxy(h[s].insertRule,{apply:U((u,l,m)=>{let[d,g]=m,{id:S,styleId:w}=Ae(l.parentStyleSheet,t,r.styleMirror);return (S&&S!==-1||w&&w!==-1)&&e({id:S,styleId:w,adds:[{rule:d,index:[...Mt(l),g||0]}]}),u.apply(l,m)})}),f.prototype.deleteRule=new Proxy(h[s].deleteRule,{apply:U((u,l,m)=>{let[d]=m,{id:g,styleId:S}=Ae(l.parentStyleSheet,t,r.styleMirror);return (g&&g!==-1||S&&S!==-1)&&e({id:g,styleId:S,removes:[{index:[...Mt(l),d]}]}),u.apply(l,m)})});}),U(()=>{i.CSSStyleSheet.prototype.insertRule=n,i.CSSStyleSheet.prototype.deleteRule=o,c&&(i.CSSStyleSheet.prototype.replace=c),p&&(i.CSSStyleSheet.prototype.replaceSync=p),Object.entries(a).forEach(([s,f])=>{f.prototype.insertRule=h[s].insertRule,f.prototype.deleteRule=h[s].deleteRule;});})}function co({mirror:e,stylesheetManager:t},r){var i,n,o;let c=null;r.nodeName==="#document"?c=e.getId(r):c=e.getId(_.host(r));let p=r.nodeName==="#document"?(i=r.defaultView)==null?void 0:i.Document:(o=(n=r.ownerDocument)==null?void 0:n.defaultView)==null?void 0:o.ShadowRoot,a=p?.prototype?Object.getOwnPropertyDescriptor(p?.prototype,"adoptedStyleSheets"):void 0;return c===null||c===-1||!p||!a?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){var h;return (h=a.get)==null?void 0:h.call(this)},set(h){var s;let f=(s=a.set)==null?void 0:s.call(this,h);if(c!==null&&c!==-1)try{t.adoptStyleSheets(h,c);}catch{}return f}}),U(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set});}))}function lu({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:i},{win:n}){let o=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:U((p,a,h)=>{var s;let[f,u,l]=h;if(r.has(f))return o.apply(a,[f,u,l]);let{id:m,styleId:d}=Ae((s=a.parentRule)==null?void 0:s.parentStyleSheet,t,i.styleMirror);return (m&&m!==-1||d&&d!==-1)&&e({id:m,styleId:d,set:{property:f,value:u,priority:l},index:Mt(a.parentRule)}),p.apply(a,h)})});let c=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:U((p,a,h)=>{var s;let[f]=h;if(r.has(f))return c.apply(a,[f]);let{id:u,styleId:l}=Ae((s=a.parentRule)==null?void 0:s.parentStyleSheet,t,i.styleMirror);return (u&&u!==-1||l&&l!==-1)&&e({id:u,styleId:l,remove:{property:f},index:Mt(a.parentRule)}),p.apply(a,h)})}),U(()=>{n.CSSStyleDeclaration.prototype.setProperty=o,n.CSSStyleDeclaration.prototype.removeProperty=c;})}function uu({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:i,sampling:n,doc:o}){let c=U(a=>tt(U(h=>{let s=it(h);if(!s||le(s,t,r,!0))return;let{currentTime:f,volume:u,muted:l,playbackRate:m,loop:d}=s;e({type:a,id:i.getId(s),currentTime:f,volume:u,muted:l,playbackRate:m,loop:d});}),n.media||500)),p=[ae("play",c(Be.Play),o),ae("pause",c(Be.Pause),o),ae("seeked",c(Be.Seeked),o),ae("volumechange",c(Be.VolumeChange),o),ae("ratechange",c(Be.RateChange),o)];return U(()=>{p.forEach(a=>a());})}function cu({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return ()=>{};let i=[],n=new WeakMap,o=r.FontFace;r.FontFace=function(a,h,s){let f=new o(a,h,s);return n.set(f,{family:a,buffer:typeof h!="string",descriptors:s,fontSource:typeof h=="string"?h:JSON.stringify(Array.from(new Uint8Array(h)))}),f};let c=_e(t.fonts,"add",function(p){return function(a){return setTimeout(U(()=>{let h=n.get(a);h&&(e(h),n.delete(a));}),0),p.apply(this,[a])}});return i.push(()=>{r.FontFace=o;}),i.push(c),U(()=>{i.forEach(p=>p());})}function fu(e){let{doc:t,mirror:r,blockClass:i,blockSelector:n,selectionCb:o}=e,c=true,p=U(()=>{let a=t.getSelection();if(!a||c&&a?.isCollapsed)return;c=a.isCollapsed||!1;let h=[],s=a.rangeCount||0;for(let f=0;f<s;f++){let u=a.getRangeAt(f),{startContainer:l,startOffset:m,endContainer:d,endOffset:g}=u;le(l,i,n,!0)||le(d,i,n,!0)||h.push({start:r.getId(l),startOffset:m,end:r.getId(d),endOffset:g});}o({ranges:h});});return p(),ae("selectionchange",p)}function hu({doc:e,customElementCb:t}){let r=e.defaultView;return !r||!r.customElements?()=>{}:_e(r.customElements,"define",function(n){return function(o,c,p){try{t({define:{name:o}});}catch{console.warn(`Custom element callback failed for ${o}`);}return n.apply(this,[o,c,p])}})}function du(e,t){let{mutationCb:r,mousemoveCb:i,mouseInteractionCb:n,scrollCb:o,viewportResizeCb:c,inputCb:p,mediaInteractionCb:a,styleSheetRuleCb:h,styleDeclarationCb:s,canvasMutationCb:f,fontCb:u,selectionCb:l,customElementCb:m}=e;e.mutationCb=(...d)=>{t.mutation&&t.mutation(...d),r(...d);},e.mousemoveCb=(...d)=>{t.mousemove&&t.mousemove(...d),i(...d);},e.mouseInteractionCb=(...d)=>{t.mouseInteraction&&t.mouseInteraction(...d),n(...d);},e.scrollCb=(...d)=>{t.scroll&&t.scroll(...d),o(...d);},e.viewportResizeCb=(...d)=>{t.viewportResize&&t.viewportResize(...d),c(...d);},e.inputCb=(...d)=>{t.input&&t.input(...d),p(...d);},e.mediaInteractionCb=(...d)=>{t.mediaInteaction&&t.mediaInteaction(...d),a(...d);},e.styleSheetRuleCb=(...d)=>{t.styleSheetRule&&t.styleSheetRule(...d),h(...d);},e.styleDeclarationCb=(...d)=>{t.styleDeclaration&&t.styleDeclaration(...d),s(...d);},e.canvasMutationCb=(...d)=>{t.canvasMutation&&t.canvasMutation(...d),f(...d);},e.fontCb=(...d)=>{t.font&&t.font(...d),u(...d);},e.selectionCb=(...d)=>{t.selection&&t.selection(...d),l(...d);},e.customElementCb=(...d)=>{t.customElement&&t.customElement(...d),m(...d);};}function pu(e,t={}){let r=e.doc.defaultView;if(!r)return ()=>{};du(e,t);let i,n=()=>{};e.recordDOM&&([i,n]=lo(e,e.doc));let o=ru(e),c=nu(e),p=uo(e),a=iu(e,{win:r}),h=ou(e),s=uu(e),f=()=>{},u=()=>{},l=()=>{},m=()=>{};e.recordDOM&&(f=au(e,{win:r}),u=co(e,e.doc),l=lu(e,{win:r}),e.collectFonts&&(m=cu(e)));let d=fu(e),g=hu(e),S=[];for(let w of e.plugins)S.push(w.observer(w.callback,r,w.options));return U(()=>{ke.forEach(w=>w.reset()),i?.disconnect(),n(),o(),c(),p(),a(),h(),s(),f(),u(),l(),m(),d(),g(),S.forEach(w=>w());})}function gt(e){return typeof window[e]<"u"}function yt(e){return !!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var Rt=class{constructor(t){O(this,"iframeIdToRemoteIdMap",new WeakMap),O(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t;}getId(t,r,i,n){let o=i||this.getIdToRemoteIdMap(t),c=n||this.getRemoteIdToIdMap(t),p=o.get(r);return p||(p=this.generateIdFn(),o.set(r,p),c.set(p,r)),p}getIds(t,r){let i=this.getIdToRemoteIdMap(t),n=this.getRemoteIdToIdMap(t);return r.map(o=>this.getId(t,o,i,n))}getRemoteId(t,r,i){let n=i||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;let o=n.get(r);return o||-1}getRemoteIds(t,r){let i=this.getRemoteIdToIdMap(t);return r.map(n=>this.getRemoteId(t,n,i))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t);}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}},pn=class{constructor(t){O(this,"iframes",new WeakMap),O(this,"crossOriginIframeMap",new WeakMap),O(this,"crossOriginIframeMirror",new Rt(Os)),O(this,"crossOriginIframeStyleMirror"),O(this,"crossOriginIframeRootIdMap",new WeakMap),O(this,"mirror"),O(this,"mutationCb"),O(this,"wrappedEmit"),O(this,"loadListener"),O(this,"stylesheetManager"),O(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Rt(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this));}addIframe(t){this.iframes.set(t,true),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t);}addLoadListener(t){this.loadListener=t;}attachIframe(t,r){var i,n;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:true}),this.recordCrossOriginIframes&&((i=t.contentWindow)==null||i.addEventListener("message",this.handleMessage.bind(this))),(n=this.loadListener)==null||n.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument));}handleMessage(t){let r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;let n=this.crossOriginIframeMap.get(t.source);if(!n)return;let o=this.transformCrossOriginEvent(n,r.data.event);o&&this.wrappedEmit(o,r.data.isCheckout);}transformCrossOriginEvent(t,r){var i;switch(r.type){case B.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);let n=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,n),this.patchRootIdOnNode(r.data.node,n),{timestamp:r.timestamp,type:B.IncrementalSnapshot,data:{source:F.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:true}}}case B.Meta:case B.Load:case B.DomContentLoaded:return false;case B.Plugin:return r;case B.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case B.IncrementalSnapshot:switch(r.data.source){case F.Mutation:return r.data.adds.forEach(n=>{this.replaceIds(n,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(n.node,t);let o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(n.node,o);}),r.data.removes.forEach(n=>{this.replaceIds(n,t,["parentId","id"]);}),r.data.attributes.forEach(n=>{this.replaceIds(n,t,["id"]);}),r.data.texts.forEach(n=>{this.replaceIds(n,t,["id"]);}),r;case F.Drag:case F.TouchMove:case F.MouseMove:return r.data.positions.forEach(n=>{this.replaceIds(n,t,["id"]);}),r;case F.ViewportResize:return false;case F.MediaInteraction:case F.MouseInteraction:case F.Scroll:case F.CanvasMutation:case F.Input:return this.replaceIds(r.data,t,["id"]),r;case F.StyleSheetRule:case F.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case F.Font:return r;case F.Selection:return r.data.ranges.forEach(n=>{this.replaceIds(n,t,["start","end"]);}),r;case F.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(i=r.data.styles)==null||i.forEach(n=>{this.replaceStyleIds(n,t,["styleId"]);}),r}}return false}replace(t,r,i,n){for(let o of n)!Array.isArray(r[o])&&typeof r[o]!="number"||(Array.isArray(r[o])?r[o]=t.getIds(i,r[o]):r[o]=t.getId(i,r[o]));return r}replaceIds(t,r,i){return this.replace(this.crossOriginIframeMirror,t,r,i)}replaceStyleIds(t,r,i){return this.replace(this.crossOriginIframeStyleMirror,t,r,i)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(i=>{this.replaceIdOnNode(i,r);});}patchRootIdOnNode(t,r){t.type!==oo.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(i=>{this.patchRootIdOnNode(i,r);});}},mn=class{constructor(t){O(this,"shadowDoms",new WeakSet),O(this,"mutationCb"),O(this,"scrollCb"),O(this,"bypassOptions"),O(this,"mirror"),O(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init();}init(){this.reset(),this.patchAttachShadow(Element,document);}addShadowRoot(t,r){if(!Qe(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);let[i]=lo({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>i.disconnect()),this.restoreHandlers.push(uo({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(_.host(t))),this.restoreHandlers.push(co({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t));},0);}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument);}patchAttachShadow(t,r){let i=this;this.restoreHandlers.push(_e(t.prototype,"attachShadow",function(n){return function(o){let c=n.call(this,o),p=_.shadowRoot(this);return p&&so(this)&&i.addShadowRoot(p,r),c}}));}reset(){this.restoreHandlers.forEach(t=>{try{t();}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet;}},We="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",mu=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(Xe=0;Xe<We.length;Xe++)mu[We.charCodeAt(Xe)]=Xe;var Xe,gu=function(e){var t=new Uint8Array(e),r,i=t.length,n="";for(r=0;r<i;r+=3)n+=We[t[r]>>2],n+=We[(t[r]&3)<<4|t[r+1]>>4],n+=We[(t[r+1]&15)<<2|t[r+2]>>6],n+=We[t[r+2]&63];return i%3===2?n=n.substring(0,n.length-1)+"=":i%3===1&&(n=n.substring(0,n.length-2)+"=="),n};var vs=new Map;function yu(e,t){let r=vs.get(e);return r||(r=new Map,vs.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var fo=(e,t,r)=>{if(!e||!(po(e,t)||typeof e=="object"))return;let i=e.constructor.name,n=yu(r,i),o=n.indexOf(e);return o===-1&&(o=n.length,n.push(e)),o};function vt(e,t,r){if(e instanceof Array)return e.map(i=>vt(i,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return {rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){let i=e.constructor.name,n=gu(e);return {rr_type:i,base64:n}}else {if(e instanceof DataView)return {rr_type:e.constructor.name,args:[vt(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let i=e.constructor.name,{src:n}=e;return {rr_type:i,src:n}}else if(e instanceof HTMLCanvasElement){let i="HTMLImageElement",n=e.toDataURL();return {rr_type:i,src:n}}else {if(e instanceof ImageData)return {rr_type:e.constructor.name,args:[vt(e.data,t,r),e.width,e.height]};if(po(e,t)||typeof e=="object"){let i=e.constructor.name,n=fo(e,t,r);return {rr_type:i,index:n}}}}return e}var ho=(e,t,r)=>e.map(i=>vt(i,t,r)),po=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(n=>typeof t[n]=="function").find(n=>e instanceof t[n]);function vu(e,t,r,i){let n=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let c of o)try{if(typeof t.CanvasRenderingContext2D.prototype[c]!="function")continue;let p=_e(t.CanvasRenderingContext2D.prototype,c,function(a){return function(...h){return le(this.canvas,r,i,!0)||setTimeout(()=>{let s=ho(h,t,this);e(this.canvas,{type:He["2D"],property:c,args:s});},0),a.apply(this,h)}});n.push(p);}catch{let p=Ut(t.CanvasRenderingContext2D.prototype,c,{set(a){e(this.canvas,{type:He["2D"],property:c,args:[a],setter:true});}});n.push(p);}return ()=>{n.forEach(c=>c());}}function wu(e){return e==="experimental-webgl"?"webgl":e}function ws(e,t,r,i){let n=[];try{let o=_e(e.HTMLCanvasElement.prototype,"getContext",function(c){return function(p,...a){if(!le(this,t,r,!0)){let h=wu(p);if("__context"in this||(this.__context=h),i&&["webgl","webgl2"].includes(h))if(a[0]&&typeof a[0]=="object"){let s=a[0];s.preserveDrawingBuffer||(s.preserveDrawingBuffer=!0);}else a.splice(0,1,{preserveDrawingBuffer:!0});}return c.apply(this,[p,...a])}});n.push(o);}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext");}return ()=>{n.forEach(o=>o());}}function bs(e,t,r,i,n,o){let c=[],p=Object.getOwnPropertyNames(e);for(let a of p)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if(typeof e[a]!="function")continue;let h=_e(e,a,function(s){return function(...f){let u=s.apply(this,f);if(fo(u,o,this),"tagName"in this.canvas&&!le(this.canvas,i,n,!0)){let l=ho(f,o,this),m={type:t,property:a,args:l};r(this.canvas,m);}return u}});c.push(h);}catch{let h=Ut(e,a,{set(s){r(this.canvas,{type:t,property:a,args:[s],setter:true});}});c.push(h);}return c}function bu(e,t,r,i){let n=[];return typeof t.WebGLRenderingContext<"u"&&n.push(...bs(t.WebGLRenderingContext.prototype,He.WebGL,e,r,i,t)),typeof t.WebGL2RenderingContext<"u"&&n.push(...bs(t.WebGL2RenderingContext.prototype,He.WebGL2,e,r,i,t)),()=>{n.forEach(o=>o());}}var mo=`(function() {
54
+ "use strict";
55
+ var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
56
+ var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
57
+ for (var i = 0; i < chars.length; i++) {
58
+ lookup[chars.charCodeAt(i)] = i;
59
+ }
60
+ var encode = function(arraybuffer) {
61
+ var bytes = new Uint8Array(arraybuffer), i2, len = bytes.length, base64 = "";
62
+ for (i2 = 0; i2 < len; i2 += 3) {
63
+ base64 += chars[bytes[i2] >> 2];
64
+ base64 += chars[(bytes[i2] & 3) << 4 | bytes[i2 + 1] >> 4];
65
+ base64 += chars[(bytes[i2 + 1] & 15) << 2 | bytes[i2 + 2] >> 6];
66
+ base64 += chars[bytes[i2 + 2] & 63];
67
+ }
68
+ if (len % 3 === 2) {
69
+ base64 = base64.substring(0, base64.length - 1) + "=";
70
+ } else if (len % 3 === 1) {
71
+ base64 = base64.substring(0, base64.length - 2) + "==";
72
+ }
73
+ return base64;
74
+ };
75
+ const lastBlobMap = /* @__PURE__ */ new Map();
76
+ const transparentBlobMap = /* @__PURE__ */ new Map();
77
+ async function getTransparentBlobFor(width, height, dataURLOptions) {
78
+ const id = \`\${width}-\${height}\`;
79
+ if ("OffscreenCanvas" in globalThis) {
80
+ if (transparentBlobMap.has(id)) return transparentBlobMap.get(id);
81
+ const offscreen = new OffscreenCanvas(width, height);
82
+ offscreen.getContext("2d");
83
+ const blob = await offscreen.convertToBlob(dataURLOptions);
84
+ const arrayBuffer = await blob.arrayBuffer();
85
+ const base64 = encode(arrayBuffer);
86
+ transparentBlobMap.set(id, base64);
87
+ return base64;
88
+ } else {
89
+ return "";
90
+ }
91
+ }
92
+ const worker = self;
93
+ worker.onmessage = async function(e) {
94
+ if ("OffscreenCanvas" in globalThis) {
95
+ const { id, bitmap, width, height, dataURLOptions } = e.data;
96
+ const transparentBase64 = getTransparentBlobFor(
97
+ width,
98
+ height,
99
+ dataURLOptions
100
+ );
101
+ const offscreen = new OffscreenCanvas(width, height);
102
+ const ctx = offscreen.getContext("2d");
103
+ ctx.drawImage(bitmap, 0, 0);
104
+ bitmap.close();
105
+ const blob = await offscreen.convertToBlob(dataURLOptions);
106
+ const type = blob.type;
107
+ const arrayBuffer = await blob.arrayBuffer();
108
+ const base64 = encode(arrayBuffer);
109
+ if (!lastBlobMap.has(id) && await transparentBase64 === base64) {
110
+ lastBlobMap.set(id, base64);
111
+ return worker.postMessage({ id });
112
+ }
113
+ if (lastBlobMap.get(id) === base64) return worker.postMessage({ id });
114
+ worker.postMessage({
115
+ id,
116
+ type,
117
+ base64,
118
+ width,
119
+ height
120
+ });
121
+ lastBlobMap.set(id, base64);
122
+ } else {
123
+ return worker.postMessage({ id: e.data.id });
124
+ }
125
+ };
126
+ })();
127
+ //# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
128
+ `,Ss=typeof self<"u"&&self.Blob&&new Blob([mo],{type:"text/javascript;charset=utf-8"});function Su(e){let t;try{if(t=Ss&&(self.URL||self.webkitURL).createObjectURL(Ss),!t)throw "";let r=new Worker(t,{name:e?.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t);}),r}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(mo),{name:e?.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t);}}var gn=class{constructor(t){O(this,"pendingCanvasMutations",new Map),O(this,"rafStamps",{latestId:0,invokeId:null}),O(this,"mirror"),O(this,"mutationCb"),O(this,"resetObservers"),O(this,"frozen",false),O(this,"locked",false),O(this,"processMutation",(a,h)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(a)||this.pendingCanvasMutations.set(a,[]),this.pendingCanvasMutations.get(a).push(h);});let{sampling:r="all",win:i,blockClass:n,blockSelector:o,recordCanvas:c,dataURLOptions:p}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,c&&r==="all"&&this.initCanvasMutationObserver(i,n,o),c&&typeof r=="number"&&this.initCanvasFPSObserver(r,i,n,o,{dataURLOptions:p});}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers();}freeze(){this.frozen=true;}unfreeze(){this.frozen=false;}lock(){this.locked=true;}unlock(){this.locked=false;}initCanvasFPSObserver(t,r,i,n,o){let c=ws(r,i,n,true),p=new Map,a=new Su;a.onmessage=m=>{let{id:d}=m.data;if(p.set(d,false),!("base64"in m.data))return;let{base64:g,type:S,width:w,height:b}=m.data;this.mutationCb({id:d,type:He["2D"],commands:[{property:"clearRect",args:[0,0,w,b]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:g}],type:S}]},0,0]}]});};let h=1e3/t,s=0,f,u=()=>{let m=[];return r.document.querySelectorAll("canvas").forEach(d=>{le(d,i,n,true)||m.push(d);}),m},l=m=>{if(s&&m-s<h){f=requestAnimationFrame(l);return}s=m,u().forEach(async d=>{var g;let S=this.mirror.getId(d);if(p.get(S)||d.width===0||d.height===0)return;if(p.set(S,true),["webgl","webgl2"].includes(d.__context)){let b=d.getContext(d.__context);((g=b?.getContextAttributes())==null?void 0:g.preserveDrawingBuffer)===false&&b.clear(b.COLOR_BUFFER_BIT);}let w=await createImageBitmap(d);a.postMessage({id:S,bitmap:w,width:d.width,height:d.height,dataURLOptions:o.dataURLOptions},[w]);}),f=requestAnimationFrame(l);};f=requestAnimationFrame(l),this.resetObservers=()=>{c(),cancelAnimationFrame(f);};}initCanvasMutationObserver(t,r,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let n=ws(t,r,i,false),o=vu(this.processMutation.bind(this),t,r,i),c=bu(this.processMutation.bind(this),t,r,i);this.resetObservers=()=>{n(),o(),c();};}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations());}startRAFTimestamping(){let t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t);};requestAnimationFrame(t);}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{let i=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,i);}),requestAnimationFrame(()=>this.flushPendingCanvasMutations());}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;let i=this.pendingCanvasMutations.get(t);if(!i||r===-1)return;let n=i.map(c=>{let{type:p,...a}=c;return a}),{type:o}=i[0];this.mutationCb({id:r,type:o,commands:n}),this.pendingCanvasMutations.delete(t);}},yn=class{constructor(t){O(this,"trackedLinkElements",new WeakSet),O(this,"mutationCb"),O(this,"adoptedStyleSheetCb"),O(this,"styleMirror",new cn),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb;}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t);}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t));}adoptStyleSheets(t,r){if(t.length===0)return;let i={id:r,styleIds:[]},n=[];for(let o of t){let c;this.styleMirror.has(o)?c=this.styleMirror.getId(o):(c=this.styleMirror.add(o),n.push({styleId:c,rules:Array.from(o.rules||CSSRule,(p,a)=>({rule:Is(p,o.href),index:a}))})),i.styleIds.push(c);}n.length>0&&(i.styles=n),this.adoptedStyleSheetCb(i);}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet;}trackStylesheetInLinkElement(t){}},vn=class{constructor(){O(this,"nodeMap",new WeakMap),O(this,"active",false);}inOtherBuffer(t,r){let i=this.nodeMap.get(t);return i&&Array.from(i).some(n=>n!==r)}add(t,r){this.active||(this.active=true,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=false;})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r));}destroy(){}},te,wt,sn,It=false;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=((Kn=e.contentWindow)==null?void 0:Kn.Array.from)||Array.from,document.body.removeChild(e);}}catch(e){console.debug("Unable to override Array.from",e);}var we=Pa();function Oe(e={}){let{emit:t,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:n="rr-block",blockSelector:o=null,ignoreClass:c="rr-ignore",ignoreSelector:p=null,maskTextClass:a="rr-mask",maskTextSelector:h=null,inlineStylesheet:s=true,maskAllInputs:f,maskInputOptions:u,slimDOMOptions:l,maskInputFn:m,maskTextFn:d,hooks:g,packFn:S,sampling:w={},dataURLOptions:b={},mousemoveWait:x,recordDOM:v=true,recordCanvas:y=false,recordCrossOriginIframes:C=false,recordAfter:M=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:I=false,collectFonts:R=false,inlineImages:k=false,plugins:A,keepIframeSrcFn:E=()=>false,ignoreCSSAttributes:K=new Set([]),errorHandler:Y}=e;eu(Y);let L=C?window.parent===window:true,T=false;if(!L)try{window.parent.document&&(T=!1);}catch{T=true;}if(L&&!t)throw new Error("emit function is required");if(!L&&!T)return ()=>{};x!==void 0&&w.mousemove===void 0&&(w.mousemove=x),we.reset();let z=f===true?{color:true,date:true,"datetime-local":true,email:true,month:true,number:true,range:true,search:true,tel:true,text:true,time:true,url:true,week:true,textarea:true,select:true,password:true}:u!==void 0?u:{password:true},X=Ds(l);Xl();let J,P=0,ce=D=>{for(let ee of A||[])ee.eventProcessor&&(D=ee.eventProcessor(D));return S&&!T&&(D=S(D)),D};te=(D,ee)=>{var q;let V=D;if(V.timestamp=et(),(q=ke[0])!=null&&q.isFrozen()&&V.type!==B.FullSnapshot&&!(V.type===B.IncrementalSnapshot&&V.data.source===F.Mutation)&&ke.forEach(he=>he.unfreeze()),L)t?.(ce(V),ee);else if(T){let he={type:"rrweb",event:ce(V),origin:window.location.origin,isCheckout:ee};window.parent.postMessage(he,"*");}if(V.type===B.FullSnapshot)J=V,P=0;else if(V.type===B.IncrementalSnapshot){if(V.data.source===F.Mutation&&V.data.isAttachIframe)return;P++;let he=i&&P>=i,j=r&&V.timestamp-J.timestamp>r;(he||j)&&wt(true);}};let N=D=>{te({type:B.IncrementalSnapshot,data:{source:F.Mutation,...D}});},re=D=>te({type:B.IncrementalSnapshot,data:{source:F.Scroll,...D}}),W=D=>te({type:B.IncrementalSnapshot,data:{source:F.CanvasMutation,...D}}),pe=D=>te({type:B.IncrementalSnapshot,data:{source:F.AdoptedStyleSheet,...D}}),ie=new yn({mutationCb:N,adoptedStyleSheetCb:pe}),oe=new pn({mirror:we,mutationCb:N,stylesheetManager:ie,recordCrossOriginIframes:C,wrappedEmit:te});for(let D of A||[])D.getMirror&&D.getMirror({nodeMirror:we,crossOriginIframeMirror:oe.crossOriginIframeMirror,crossOriginIframeStyleMirror:oe.crossOriginIframeStyleMirror});let xe=new vn;sn=new gn({recordCanvas:y,mutationCb:W,win:window,blockClass:n,blockSelector:o,mirror:we,sampling:w.canvas,dataURLOptions:b});let ye=new mn({mutationCb:N,scrollCb:re,bypassOptions:{blockClass:n,blockSelector:o,maskTextClass:a,maskTextSelector:h,inlineStylesheet:s,maskInputOptions:z,dataURLOptions:b,maskTextFn:d,maskInputFn:m,recordCanvas:y,inlineImages:k,sampling:w,slimDOMOptions:X,iframeManager:oe,stylesheetManager:ie,canvasManager:sn,keepIframeSrcFn:E,processedNodeManager:xe},mirror:we});wt=(D=false)=>{if(!v)return;te({type:B.Meta,data:{href:window.location.href,width:Ks(),height:Zs()}},D),ie.reset(),ye.init(),ke.forEach(q=>q.lock());let ee=sl(document,{mirror:we,blockClass:n,blockSelector:o,maskTextClass:a,maskTextSelector:h,inlineStylesheet:s,maskAllInputs:z,maskTextFn:d,maskInputFn:m,slimDOM:X,dataURLOptions:b,recordCanvas:y,inlineImages:k,onSerialize:q=>{ro(q,we)&&oe.addIframe(q),no(q,we)&&ie.trackLinkElement(q),un(q)&&ye.addShadowRoot(_.shadowRoot(q),document);},onIframeLoad:(q,V)=>{oe.attachIframe(q,V),ye.observeAttachShadow(q);},onStylesheetLoad:(q,V)=>{ie.attachLinkElement(q,V);},keepIframeSrcFn:E});if(!ee)return console.warn("Failed to snapshot the document");te({type:B.FullSnapshot,data:{node:ee,initialOffset:Qs(window)}},D),ke.forEach(q=>q.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ie.adoptStyleSheets(document.adoptedStyleSheets,we.getId(document));};try{let D=[],ee=V=>{var he;return U(pu)({mutationCb:N,mousemoveCb:(j,Wt)=>te({type:B.IncrementalSnapshot,data:{source:Wt,positions:j}}),mouseInteractionCb:j=>te({type:B.IncrementalSnapshot,data:{source:F.MouseInteraction,...j}}),scrollCb:re,viewportResizeCb:j=>te({type:B.IncrementalSnapshot,data:{source:F.ViewportResize,...j}}),inputCb:j=>te({type:B.IncrementalSnapshot,data:{source:F.Input,...j}}),mediaInteractionCb:j=>te({type:B.IncrementalSnapshot,data:{source:F.MediaInteraction,...j}}),styleSheetRuleCb:j=>te({type:B.IncrementalSnapshot,data:{source:F.StyleSheetRule,...j}}),styleDeclarationCb:j=>te({type:B.IncrementalSnapshot,data:{source:F.StyleDeclaration,...j}}),canvasMutationCb:W,fontCb:j=>te({type:B.IncrementalSnapshot,data:{source:F.Font,...j}}),selectionCb:j=>{te({type:B.IncrementalSnapshot,data:{source:F.Selection,...j}});},customElementCb:j=>{te({type:B.IncrementalSnapshot,data:{source:F.CustomElement,...j}});},blockClass:n,ignoreClass:c,ignoreSelector:p,maskTextClass:a,maskTextSelector:h,maskInputOptions:z,inlineStylesheet:s,sampling:w,recordDOM:v,recordCanvas:y,inlineImages:k,userTriggeredOnInput:I,collectFonts:R,doc:V,maskInputFn:m,maskTextFn:d,keepIframeSrcFn:E,blockSelector:o,slimDOMOptions:X,dataURLOptions:b,mirror:we,iframeManager:oe,stylesheetManager:ie,shadowDomManager:ye,processedNodeManager:xe,canvasManager:sn,ignoreCSSAttributes:K,plugins:((he=A?.filter(j=>j.observer))==null?void 0:he.map(j=>({observer:j.observer,options:j.options,callback:Wt=>te({type:B.Plugin,data:{plugin:j.name,payload:Wt}})})))||[]},g)};oe.addLoadListener(V=>{try{D.push(ee(V.contentDocument));}catch(he){console.warn(he);}});let q=()=>{wt(),D.push(ee(document)),It=!0;};return ["interactive","complete"].includes(document.readyState)?q():(D.push(ae("DOMContentLoaded",()=>{te({type:B.DomContentLoaded,data:{}}),M==="DOMContentLoaded"&&q();})),D.push(ae("load",()=>{te({type:B.Load,data:{}}),M==="load"&&q();},window))),()=>{D.forEach(V=>{try{V();}catch(he){String(he).toLowerCase().includes("cross-origin")||console.warn(he);}}),xe.destroy(),It=!1,tu();}}catch(D){console.warn(D);}}Oe.addCustomEvent=(e,t)=>{if(!It)throw new Error("please add custom event after start recording");te({type:B.Custom,data:{tag:e,payload:t}});};Oe.freezePage=()=>{ke.forEach(e=>e.freeze());};Oe.takeFullSnapshot=e=>{if(!It)throw new Error("please take full snapshot after start recording");wt(e);};Oe.mirror=we;var Cs;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped";})(Cs||(Cs={}));function H(){return typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return (e==="x"?t:t&3|8).toString(16)})}var st=class{constructor(t,r){let i=Date.now();this.startedAt=t??i,this.perfStart=typeof performance<"u"?performance.now():0,this.baseT=Math.max(0,i-this.startedAt,r??0);}now(){let t=typeof performance<"u"?performance.now():Date.now()-this.startedAt;return Math.max(0,this.baseT+Math.round(t-this.perfStart))}wall(){return Date.now()}fromPerf(t){return Math.max(0,this.baseT+Math.round(t-this.perfStart))}};async function go(e){if(typeof crypto<"u"&&crypto.subtle){let r=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(e));return Array.from(new Uint8Array(r)).map(i=>i.toString(16).padStart(2,"0")).join("")}let t=0;for(let r=0;r<e.length;r++)t=Math.imul(31,t)+e.charCodeAt(r)|0;return (t>>>0).toString(16)}function yo(){let e=navigator.userAgent,t={w:window.innerWidth,h:window.innerHeight},r="desktop";/iPad|Tablet/i.test(e)?r="tablet":/Mobi|Android|iPhone/i.test(e)&&(r="mobile");let i;/Windows/i.test(e)?i="Windows":/Mac OS X|Macintosh/i.test(e)?i="macOS":/Android/i.test(e)?i="Android":/iPhone|iPad|iOS/i.test(e)?i="iOS":/Linux/i.test(e)&&(i="Linux");let n;return /Edg\//.test(e)?n="Edge":/Chrome\//.test(e)?n="Chrome":/Firefox\//.test(e)?n="Firefox":/Safari\//.test(e)&&(n="Safari"),{type:r,os:i,browser:n,viewport:t}}function _n(){let e=navigator;return e.globalPrivacyControl===true||e.doNotTrack==="1"||window.doNotTrack==="1"}var Cu=3;function vo(e){let t=Oe({emit(r){let i={id:H(),sessionId:e.sessionId,type:"dom",t:e.clock.fromPerf(xu()),ts:e.clock.wall(),data:r};e.emit(i),r.type===Cu&&e.markActivity();},maskAllInputs:e.config.maskAllInputs,maskInputOptions:{password:true},maskTextSelector:e.config.maskTextSelector,blockSelector:e.config.blockSelector,recordCanvas:e.config.recordCanvas,checkoutEveryNms:3e4,sampling:{mousemove:50,scroll:150,input:"last"}});return ()=>{try{t?.();}catch{}}}function xu(){return typeof performance<"u"?performance.now():Date.now()}var Eu=/[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}/gi,Mu=/\b(?:\d[ -]*?){13,19}\b/g,Ru=/\b\d{3}-\d{2}-\d{4}\b/g,Iu=/\b\d{9,}\b/g,Nu=/(pass(word)?|secret|token|api[-_]?key|authorization|cookie|ssn|card|cvv|pin|otp)/i;function Ce(e){return e.replace(Eu,"\xABemail\xBB").replace(Mu,t=>Ou(t)?"\xABcard\xBB":t).replace(Ru,"\xABssn\xBB").replace(Iu,"\xABnumber\xBB")}function Ou(e){let t=e.replace(/\D/g,"");return t.length>=13&&t.length<=19}function Au(e){return Nu.test(e)}function zt(e,t=0){if(t>6)return "\xABdepth\xBB";if(typeof e=="string")return Ce(e);if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(i=>zt(i,t+1));let r={};for(let[i,n]of Object.entries(e))r[i]=Au(i)?"\xABredacted\xBB":zt(n,t+1);return r}var Tu=8*1024;function ku(e){return new Blob([e]).size}function wo(e,t){if(ku(e)<=t)return {value:e,truncated:false};let r=Math.max(16,Math.floor(t*.95));return {value:e.slice(0,r),truncated:true}}function bo(e,t=Tu){if(e===null)return {kind:"primitive",value:null};let r=typeof e;if(r==="number"||r==="boolean")return {kind:"primitive",value:e};if(r==="string"){let i=Ce(e),{value:n,truncated:o}=wo(i,t);return {kind:"string",value:n,truncated:o}}if(e instanceof Error)return {kind:"error",name:e.name,message:Ce(e.message),stack:e.stack?Ce(e.stack):void 0};if(e instanceof Element)return {kind:"dom",selector:Fe(e)};if(r==="object"||r==="function"||r==="symbol"||r==="bigint"){let i=zt(e),n,o=false;try{let c=JSON.stringify(i,Du()),p=wo(c??"undefined",t);n=p.value,o=p.truncated;}catch{n=void 0;}return {kind:"object",preview:Lu(i),json:n,truncated:o}}return {kind:"primitive",value:String(e)}}function Du(){let e=new WeakSet;return (t,r)=>{if(typeof r=="bigint")return `${r.toString()}n`;if(typeof r=="function")return `\u0192 ${r.name||"anonymous"}`;if(typeof r=="object"&&r!==null){if(e.has(r))return "\xABcircular\xBB";e.add(r);}return r}}function Lu(e){if(Array.isArray(e))return `Array(${e.length})`;if(e&&typeof e=="object"){let t=Object.keys(e);return `{ ${t.slice(0,4).join(", ")}${t.length>4?", \u2026":""} }`}return String(e)}function Fe(e){let t=[],r=e,i=0;for(;r&&r.nodeType===1&&i<5;){let n=r.tagName.toLowerCase();if(r.id){n+=`#${r.id}`,t.unshift(n);break}let o=(r.getAttribute("class")||"").trim().split(/\s+/).filter(Boolean)[0];o&&(n+=`.${o}`),t.unshift(n),r=r.parentElement,i++;}return t.join(" > ")}function Bt(e){if(!e)return;let t=e.split(`
129
+ `).map(r=>r.trim());for(let r of t){let i=r.match(/\((https?:\/\/[^)]+):(\d+):(\d+)\)/)||r.match(/at (https?:\/\/\S+):(\d+):(\d+)/)||r.match(/(https?:\/\/\S+):(\d+):(\d+)/);if(i)return {url:i[1],line:Number(i[2]),col:Number(i[3])}}}var So=["log","info","warn","error","debug"],Pu=100;function Co(e){let t={},r=e.clock.now(),i=0,n=0;function o(){let p=e.clock.now();return p-r>=1e3&&(n>0&&(c("warn",[{kind:"string",value:`Obsrviq: suppressed ${n} console messages (flood cap)`}]),n=0),r=p,i=0),i>=Pu?(n++,true):(i++,false)}function c(p,a,h){let s=Bt(h),f={id:H(),sessionId:e.sessionId,type:"console",t:e.clock.now(),ts:e.clock.wall(),level:p,args:a,stack:p==="error"?h:void 0,source:s};e.emit(f);}for(let p of So){let a=console[p];t[p]=a,console[p]=(...h)=>{try{a.apply(console,h);}catch{}try{if(o())return;let s=h.map(u=>bo(u,e.config.maxArgBytes)),f;p==="error"&&(f=h.find(l=>l instanceof Error)?.stack??new Error().stack),c(p,s,f);}catch{}};}return ()=>{for(let p of So)t[p]&&(console[p]=t[p]);}}function xo(e,t){return {id:H(),sessionId:e.sessionId,type:"console",t:t.t,ts:t.ts,level:"error",args:[{kind:"error",name:t.name,message:t.message,stack:t.stack}],stack:t.stack,source:t.source}}var Eo=4*1024,Mo=new Set(["content-type","content-length","accept","accept-encoding","cache-control","etag","last-modified","content-encoding","x-request-id","x-correlation-id","server","vary"]);function $t(e){try{let t=new URL(e,location.href);return t.search&&(t.search="?\u2026"),t.toString()}catch{return e.split("?")[0]??e}}function Ro(e){if(e===0)return "network";if(e>=500)return "http_5xx";if(e>=400)return "http_4xx"}function Fn(e,t){let r={},i=new Set(e.map(n=>n.toLowerCase()));for(let[n,o]of t){let c=n.toLowerCase();i.has(c)?r[c]="redacted":Mo.has(c)&&(r[c]=o);}return r}function qt(e,t){if(e==null)return;let r=Ce(e),i=r.length>Eo;return {contentType:t,preview:i?r.slice(0,Eo):r,truncated:i,redacted:r!==e}}function Io(e,t,r){try{let n=performance.getEntriesByType("resource").filter(c=>c.name===t).pop();if(!n)return r;let o={...r};return n.domainLookupEnd&&n.domainLookupStart&&(o.dns=Math.max(0,n.domainLookupEnd-n.domainLookupStart)),n.connectEnd&&n.connectStart&&(o.tcp=Math.max(0,n.connectEnd-n.connectStart)),n.secureConnectionStart&&(o.tls=Math.max(0,n.connectEnd-n.secureConnectionStart)),n.responseStart&&n.requestStart&&(o.ttfb=Math.max(0,n.responseStart-n.requestStart)),n.responseEnd&&n.responseStart&&(o.download=Math.max(0,n.responseEnd-n.responseStart)),o}catch{return r}}function No(e){let t=[];return t.push(_u(e)),t.push(Uu(e)),t.push(qu(e)),t.push(Wu(e)),()=>t.forEach(r=>r())}function _u(e){let t=window.fetch;return t?(window.fetch=async function(r,i){let n=r instanceof Request?r.url:String(r);if(n.includes("/v1/batch"))return t.call(window,r,i);let o=e.clock.now(),c=(i?.method||(r instanceof Request?r.method:"GET")).toUpperCase(),p=$t(n),a=Fn(e.config.redactHeaders,Hu(i?.headers??(r instanceof Request?r.headers:void 0))),h=s=>{let f=e.clock.now(),u=Io(e,n,{startT:o,endT:f,duration:f-o}),l={id:H(),sessionId:e.sessionId,type:"network",t:o,ts:e.clock.wall(),initiator:"fetch",method:c,url:p,status:0,ok:false,resourceType:"fetch",requestHeaders:a,timing:u,...s};e.emit(l),e.markActivity();};try{let s=await t.call(window,r,i),f=s.status,u=Fn(e.config.redactHeaders,s.headers.entries()),l=s.headers.get("content-length"),m;if(e.config.captureNetworkBodies&&Oo(s.headers.get("content-type")))try{let d=await s.clone().text();m=qt(d,s.headers.get("content-type")||void 0);}catch{}return h({status:f,ok:s.ok,responseSize:l?Number(l):void 0,responseHeaders:u,requestBody:e.config.captureNetworkBodies?qt(Ao(i?.body),void 0):void 0,responseBody:m,error:Ro(f)}),s}catch(s){throw h({status:0,ok:false,error:Fu(s)}),s}},()=>{window.fetch=t;}):()=>{}}function Fu(e){if(e?.name==="AbortError")return "aborted";let r=String(e?.message||"").toLowerCase();return r.includes("cors")?"cors":r.includes("timeout")?"timeout":"network"}function Uu(e){let t=XMLHttpRequest.prototype,r=t.open,i=t.send,n=t.setRequestHeader,o=new WeakMap;return t.open=function(c,p,...a){let h=String(p);return o.set(this,{method:String(c).toUpperCase(),rawUrl:h,url:$t(h),startT:0,reqHeaders:{}}),r.apply(this,[c,p,...a])},t.setRequestHeader=function(c,p){let a=o.get(this);if(a){let h=c.toLowerCase();e.config.redactHeaders.map(s=>s.toLowerCase()).includes(h)?a.reqHeaders[h]="redacted":Mo.has(h)&&(a.reqHeaders[h]=p);}return n.apply(this,[c,p])},t.send=function(c){let p=o.get(this);if(p){p.startT=e.clock.now(),e.config.captureNetworkBodies&&(p.body=Ao(c));let a=h=>{let s=e.clock.now(),f=Io(e,p.rawUrl,{startT:p.startT,endT:s,duration:s-p.startT}),u=this.status,l=Bu(e,this.getAllResponseHeaders()),m;if(e.config.captureNetworkBodies&&Oo(this.getResponseHeader("content-type")))try{(this.responseType===""||this.responseType==="text")&&(m=qt(this.responseText,this.getResponseHeader("content-type")||void 0));}catch{}let d={id:H(),sessionId:e.sessionId,type:"network",t:p.startT,ts:e.clock.wall(),initiator:"xhr",method:p.method,url:p.url,status:u,ok:u>=200&&u<400,resourceType:"xhr",requestHeaders:p.reqHeaders,responseHeaders:l,responseSize:zu(this),requestBody:e.config.captureNetworkBodies?qt(p.body,void 0):void 0,responseBody:m,timing:f,error:h||Ro(u)};e.emit(d),e.markActivity();};this.addEventListener("loadend",()=>a()),this.addEventListener("error",()=>a("network")),this.addEventListener("timeout",()=>a("timeout")),this.addEventListener("abort",()=>a("aborted"));}return i.apply(this,[c])},()=>{t.open=r,t.send=i,t.setRequestHeader=n;}}function zu(e){try{if(e.responseType===""||e.responseType==="text")return new Blob([e.responseText]).size}catch{}let t=e.getResponseHeader("content-length");return t?Number(t):void 0}function Bu(e,t){let r=[];for(let i of t.trim().split(/[\r\n]+/)){let n=i.indexOf(":");n>0&&r.push([i.slice(0,n).trim(),i.slice(n+1).trim()]);}return Fn(e.config.redactHeaders,r)}function qu(e){let t=navigator.sendBeacon;return t?(navigator.sendBeacon=function(r,i){let n=e.clock.now(),o=false;try{o=t.call(navigator,r,i);}finally{let c=String(r);if(!c.includes("/v1/batch")){let p={id:H(),sessionId:e.sessionId,type:"network",t:n,ts:e.clock.wall(),initiator:"beacon",method:"POST",url:$t(c),status:o?202:0,ok:o,resourceType:"other",timing:{startT:n,endT:e.clock.now(),duration:0},error:o?void 0:"network"};e.emit(p);}}return o},()=>{navigator.sendBeacon=t;}):()=>{}}var $u={script:"script",link:"stylesheet",css:"stylesheet",img:"image",image:"image",font:"font",audio:"media",video:"media",track:"media"};function Wu(e){if(typeof PerformanceObserver>"u")return ()=>{};let t;try{t=new PerformanceObserver(r=>{for(let i of r.getEntries()){let n=i.initiatorType;if(n==="fetch"||n==="xmlhttprequest"||n==="beacon")continue;let o=$u[n]||"other",c=e.clock.fromPerf(i.startTime),p=e.clock.fromPerf(i.responseEnd||i.startTime),a={startT:c,endT:p,duration:Math.max(0,p-c),dns:ot(i.domainLookupEnd-i.domainLookupStart),tcp:ot(i.connectEnd-i.connectStart),tls:i.secureConnectionStart?ot(i.connectEnd-i.secureConnectionStart):void 0,ttfb:ot(i.responseStart-i.requestStart),download:ot(i.responseEnd-i.responseStart)},h={id:H(),sessionId:e.sessionId,type:"network",t:c,ts:e.clock.wall(),initiator:"resource",method:"GET",url:$t(i.name),status:i.responseStatus||200,ok:!i.responseStatus||i.responseStatus<400,resourceType:o,responseSize:i.transferSize||i.encodedBodySize||void 0,timing:a};e.emit(h);}}),t.observe({type:"resource",buffered:!0});}catch{return ()=>{}}return ()=>t?.disconnect()}function ot(e){return Number.isFinite(e)&&e>0?Math.round(e):void 0}function Oo(e){return e?/json|text|xml|x-www-form-urlencoded/i.test(e):false}function Ao(e){if(e!=null){if(typeof e=="string")return e;if(e instanceof URLSearchParams)return e.toString();if(e instanceof FormData){let t={};return e.forEach((r,i)=>t[i]=typeof r=="string"?r:"\xABfile\xBB"),JSON.stringify(t)}try{return JSON.stringify(e)}catch{return}}}function Hu(e){return e?e instanceof Headers?e.entries():Array.isArray(e)?e:Object.entries(e):[]}function To(e){function t(n){let o={id:H(),sessionId:e.sessionId,type:"error",t:e.clock.now(),ts:e.clock.wall(),name:n.name,message:Ce(n.message),stack:n.stack?Ce(n.stack):void 0,source:n.source,handled:n.handled};e.emit(o),e.emit(xo(e,o));}let r=n=>{let o=n.error;t({name:o?.name||"Error",message:o?.message||n.message||"Unknown error",stack:o?.stack,source:{url:n.filename,line:n.lineno,col:n.colno},handled:false});},i=n=>{let o=n.reason;o instanceof Error?t({name:o.name,message:o.message,stack:o.stack,source:Bt(o.stack),handled:false}):t({name:"UnhandledRejection",message:typeof o=="string"?o:ju(o),handled:false});};return window.addEventListener("error",r,true),window.addEventListener("unhandledrejection",i,true),()=>{window.removeEventListener("error",r,true),window.removeEventListener("unhandledrejection",i,true);}}function ju(e){try{return JSON.stringify(e)??String(e)}catch{return String(e)}}function Vu(e,t){let i={LCP:[2500,4e3],INP:[200,500],CLS:[.1,.25],FCP:[1800,3e3],TTFB:[800,1800]}[e];if(i)return t<=i[0]?"good":t<=i[1]?"needs-improvement":"poor"}function ko(e){if(typeof PerformanceObserver>"u")return ()=>{};let t=[],r=(h,s,f)=>{let u={id:H(),sessionId:e.sessionId,type:"perf",t:e.clock.now(),ts:e.clock.wall(),metric:h,value:Math.round(s*1e3)/1e3,rating:Vu(h,s),detail:f};e.emit(u);},i=(h,s,f)=>{try{let u=new PerformanceObserver(l=>s(l.getEntries()));u.observe({type:h,buffered:!0,...f}),t.push(u);}catch{}};i("paint",h=>{for(let s of h)s.name==="first-contentful-paint"&&r("FCP",s.startTime);});let n=0;i("largest-contentful-paint",h=>{let s=h[h.length-1];s&&(n=s.startTime);});let o=0;i("layout-shift",h=>{for(let s of h)s.hadRecentInput||(o+=s.value);});let c=0;i("event",h=>{for(let s of h)s.duration>c&&(c=s.duration);},{durationThreshold:40}),i("navigation",h=>{let s=h[0];s&&(r("TTFB",s.responseStart),r("navigation",s.duration,{domInteractive:Math.round(s.domInteractive),domComplete:Math.round(s.domComplete),loadEvent:Math.round(s.loadEventEnd)}));});let p=()=>{n&&r("LCP",n),r("CLS",o),c&&r("INP",c);},a=()=>{document.visibilityState==="hidden"&&p();};return document.addEventListener("visibilitychange",a,true),()=>{t.forEach(h=>h.disconnect()),document.removeEventListener("visibilitychange",a,true);}}var Do=1e3,Gu=3,Yu=3e3;function Xu(e){if(!e)return false;let t=e;for(let r=0;r<4&&t;r++){let i=t.tagName.toLowerCase();if(["a","button","input","select","textarea","label","summary"].includes(i)||t.getAttribute("role")==="button"||t.hasAttribute("onclick")||t.getAttribute("contenteditable")==="true")return true;t=t.parentElement;}return false}function Lo(e){let t=[],r=-1/0,i=(o,c,p)=>{let a={id:H(),sessionId:e.sessionId,type:"custom",t:p,ts:e.clock.wall(),name:o,props:c};e.emit(a);},n=o=>{let c=o.target;if(!c||!(c instanceof Element))return;let p=e.clock.now(),a=Fe(c);t=t.filter(s=>p-s.t<=Do),t.push({el:c,t:p});let h=t.filter(s=>s.el===c);if(h.length>=Gu&&p-r>Do&&(r=p,i("rage_click",{selector:a,count:h.length},p)),!Xu(c)){let s=e.lastActivityT();window.setTimeout(()=>{e.lastActivityT()<=Math.max(s,p)&&i("dead_click",{selector:a},p);},Yu);}};return window.addEventListener("click",n,true),()=>window.removeEventListener("click",n,true)}var Ju=new Set(["INPUT","TEXTAREA","SELECT"]),Qu=new Set(["hidden","submit","button","reset","image","file"]),Po=80,Zu=3e5,Ku=100;function ec(e){return !(!(e instanceof HTMLElement)||!Ju.has(e.tagName)||e instanceof HTMLInputElement&&Qu.has(e.type))}function tc(e){return e instanceof HTMLTextAreaElement?"textarea":e instanceof HTMLSelectElement?"select":e.type||"text"}function rc(e){return e instanceof HTMLInputElement?e.type==="checkbox"||e.type==="radio"?e.checked:e.value.trim().length>0:e instanceof HTMLSelectElement?e.value!=="":e.value.trim().length>0}function ue(e){let t=e.trim().replace(/\s+/g," ");return t.length>Po?t.slice(0,Po):t}function nc(e){let t=e.getAttribute("name");if(t)return ue(t);if(e.id)return ue(e.id);let r=e.getAttribute("aria-label");if(r)return ue(r);let i=e.getAttribute("aria-labelledby");if(i){let o=i.split(/\s+/).map(c=>e.ownerDocument.getElementById(c)?.textContent||"").join(" ").trim();if(o)return ue(o)}if(e.labels&&e.labels.length){let o=e.labels[0].textContent?.trim();if(o)return ue(o)}let n=e.getAttribute("placeholder");return ue(n||Fe(e))}function _o(e){let t=e.form;if(t){if(t.getAttribute("name"))return ue(t.getAttribute("name"));if(t.id)return ue(t.id);let r=t.getAttribute("aria-label");if(r)return ue(r);let i=t.getAttribute("action");if(i)try{return ue(new URL(i,location.href).pathname)}catch{return ue(i)}return ue(Fe(t))}return ue(`page:${location.pathname}`)}function Fo(e){let t=e.config.blockSelector,r=null,i=(s,f)=>{let u={id:H(),sessionId:e.sessionId,type:"custom",t:e.clock.now(),ts:e.clock.wall(),name:s,props:f};e.emit(u);},n=s=>{try{return !!t&&!!s.closest(t)}catch{return false}},o=()=>{if(!r)return;let{el:s,start:f,changed:u}=r;r=null;let l=Math.min(Zu,Math.max(0,e.clock.now()-f));l<Ku&&!u||i("form_field",{form:_o(s),field:nc(s),type:tc(s),ms:l,changed:u,filled:rc(s)});},c=s=>{let f=s.target;!ec(f)||n(f)||(r&&r.el!==f&&o(),r={el:f,start:e.clock.now(),changed:false});},p=s=>{r&&s.target===r.el&&(r.changed=true);},a=s=>{r&&s.target===r.el&&o();},h=s=>{let f=s.target;if(!(f instanceof HTMLFormElement)||n(f))return;o();let u=f.querySelector("input,textarea,select"),l=u&&!n(u)?_o(u):ue(f.getAttribute("name")||f.id||Fe(f));i("form_submit",{form:l});};return document.addEventListener("focusin",c,true),document.addEventListener("focusout",a,true),document.addEventListener("input",p,true),document.addEventListener("submit",h,true),window.addEventListener("pagehide",o,true),()=>{o(),document.removeEventListener("focusin",c,true),document.removeEventListener("focusout",a,true),document.removeEventListener("input",p,true),document.removeEventListener("submit",h,true),window.removeEventListener("pagehide",o,true);}}function Uo(e){let t=location.pathname,r=0,i=false,n=a=>{let h={id:H(),sessionId:e.sessionId,type:"custom",t:e.clock.now(),ts:e.clock.wall(),name:"_scroll",props:{path:t,depth:a}};e.emit(h);},o=()=>{let a=document.documentElement,h=document.body;return Math.max(a.scrollHeight,h?h.scrollHeight:0,a.clientHeight)||1},c=()=>{i=false,location.pathname!==t&&(t=location.pathname,r=0);let a=window.innerHeight||document.documentElement.clientHeight||1,h=Math.min(1,(window.scrollY+a)/o()),s=Math.min(100,Math.round(h*10)*10);s>r&&(r=s,n(s));},p=()=>{i||(i=true,requestAnimationFrame(c));};return window.addEventListener("scroll",p,{passive:true,capture:true}),c(),()=>{window.removeEventListener("scroll",p,true);}}function zo(e){let t=null,r=()=>{let p=location.hash;return location.pathname+(p.startsWith("#/")?p:"")},i=()=>{let p=r();if(p===t)return;let a=t??"";t=p;let h={id:H(),sessionId:e.sessionId,type:"pageview",t:e.clock.now(),ts:e.clock.wall(),url:location.href,path:p,title:document.title||void 0,referrer:a||void 0};e.emit(h),e.markActivity();},n=history.pushState,o=history.replaceState,c=p=>function(h,s,f){let u=p.call(this,h,s,f);return queueMicrotask(i),u};return history.pushState=c(n),history.replaceState=c(o),window.addEventListener("popstate",i),window.addEventListener("hashchange",i),i(),()=>{history.pushState=n,history.replaceState=o,window.removeEventListener("popstate",i),window.removeEventListener("hashchange",i);}}function ic(e){let t=/\.([A-Za-z0-9_-]+)/.exec(e||"");return ["obsrviq-block",t&&t[1]?t[1]:""].filter(Boolean).join(" ")}function Bo(e){let t=document.createElement("div");t.className=ic(e),t.setAttribute("data-obsrviq-ui",""),t.style.cssText="all:initial";let r=t.attachShadow({mode:"open"});return {host:t,root:r}}function qo(e,t){try{let r=new CSSStyleSheet;r.replaceSync(t),e.adoptedStyleSheets=[r];}catch{let r=document.createElement("style");r.textContent=t,e.appendChild(r);}}function $o(e){(document.body||document.documentElement).appendChild(e);}var Un="#6e76f1",sc=`
130
+ :host { all: initial; }
131
+ .card {
132
+ position: fixed; bottom: 20px; right: 20px; z-index: 2147483647;
133
+ max-width: 340px; box-sizing: border-box;
134
+ display: grid; grid-template-columns: auto 1fr;
135
+ grid-template-areas: 'dot txt' 'actions actions'; gap: 9px 12px; padding: 16px 18px;
136
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
137
+ color: #f4f5fb; background: #14151b; border: 1px solid rgba(255,255,255,.08);
138
+ border-radius: 14px; box-shadow: 0 16px 48px rgba(0,0,0,.5);
139
+ opacity: 0; transform: translateY(10px); transition: opacity .22s ease, transform .22s ease;
140
+ }
141
+ .card.in { opacity: 1; transform: none; }
142
+ .dot { grid-area: dot; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%;
143
+ background: ${Un}; box-shadow: 0 0 0 4px rgba(110,118,241,.18); }
144
+ .txt { grid-area: txt; min-width: 0; }
145
+ .title { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
146
+ .body { margin-top: 3px; font-size: 12px; line-height: 1.45; color: #a9adbe; }
147
+ .actions { grid-area: actions; display: flex; gap: 8px; justify-content: flex-end; margin-top: 2px; }
148
+ button { font: inherit; font-size: 12.5px; font-weight: 600; padding: 7px 15px; border-radius: 9px;
149
+ cursor: pointer; border: 1px solid transparent; transition: background .15s ease, color .15s ease; }
150
+ .deny { background: transparent; color: #a9adbe; border-color: rgba(255,255,255,.14); }
151
+ .deny:hover { color: #f4f5fb; background: rgba(255,255,255,.05); }
152
+ .allow { background: ${Un}; color: #fff; }
153
+ .allow:hover { background: #5a62e0; }
154
+ button:focus-visible { outline: 2px solid ${Un}; outline-offset: 2px; }
155
+ @media (prefers-reduced-motion: reduce) { .card { transition: none; } }
156
+ @media (max-width: 480px) { .card { left: 16px; right: 16px; bottom: 16px; max-width: none; } }
157
+ `,oc=`
158
+ :host { all: initial; }
159
+ .recdot {
160
+ position: fixed; bottom: 16px; right: 16px; z-index: 2147483647;
161
+ width: 12px; height: 12px; border-radius: 50%;
162
+ background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,.5);
163
+ animation: lum-pulse 2s ease-out infinite;
164
+ }
165
+ @keyframes lum-pulse {
166
+ 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.5); }
167
+ 70% { box-shadow: 0 0 0 9px rgba(239,68,68,0); }
168
+ 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
169
+ }
170
+ @media (prefers-reduced-motion: reduce) { .recdot { animation: none; } }
171
+ `;function Wo(e,t,r,i){let{host:n,root:o}=Bo(e);qo(o,sc);let c=t??{},p=document.createElement("div");p.className="card",p.setAttribute("role","dialog"),p.setAttribute("aria-label",c.title||"Session recording consent");let a=document.createElement("div");a.className="dot",a.setAttribute("aria-hidden","true");let h=document.createElement("div");h.className="txt";let s=document.createElement("div");s.className="title",s.textContent=c.title||"We record this session to improve the experience.";let f=document.createElement("div");f.className="body",f.textContent=c.body||"No passwords or typed input are captured.",h.append(s,f);let u=document.createElement("div");u.className="actions";let l=document.createElement("button");l.type="button",l.className="deny",l.textContent=c.deny||"Decline";let m=document.createElement("button");m.type="button",m.className="allow",m.textContent=c.allow||"Allow",u.append(l,m),p.append(a,h,u),o.appendChild(p),$o(n),requestAnimationFrame(()=>p.classList.add("in"));let d=false,g=()=>{n.parentNode&&n.parentNode.removeChild(n);},S=w=>()=>{d||(d=true,g(),w());};return m.addEventListener("click",S(r)),l.addEventListener("click",S(i)),g}function Ho(e){let{host:t,root:r}=Bo(e);qo(r,oc);let i=document.createElement("div");return i.className="recdot",i.setAttribute("role","status"),i.setAttribute("aria-label","Session recording in progress"),r.appendChild(i),$o(t),()=>{t.parentNode&&t.parentNode.removeChild(t);}}var jo="obsrviq.visitor",zn="obsrviq.session";function Vo(){let e=Xo(zn);if(!e)return null;try{let t=JSON.parse(e);if(t&&typeof t.id=="string"&&t.id&&typeof t.startedAt=="number")return {id:t.id,startedAt:t.startedAt,lastActivity:typeof t.lastActivity=="number"?t.lastActivity:t.startedAt,seq:typeof t.seq=="number"&&t.seq>=0?t.seq:0,lastT:typeof t.lastT=="number"&&t.lastT>=0?t.lastT:void 0,userId:typeof t.userId=="string"?t.userId:void 0}}catch{}return null}function Go(e){Jo(zn,JSON.stringify(e));}function Yo(){if(!(typeof window>"u"))try{window.localStorage.removeItem(zn);}catch{}}function Xo(e){if(typeof window>"u")return null;try{return window.localStorage.getItem(e)}catch{return null}}function Jo(e,t){if(!(typeof window>"u"))try{window.localStorage.setItem(e,t);}catch{}}function Qo(e){let t=null,r=Xo(jo);if(r)try{let n=JSON.parse(r);n&&typeof n.id=="string"&&n.id&&(t={id:n.id,firstSeenAt:typeof n.firstSeenAt=="number"?n.firstSeenAt:e,lastSeenAt:typeof n.lastSeenAt=="number"?n.lastSeenAt:e,visits:typeof n.visits=="number"&&n.visits>0?n.visits:1});}catch{}let i=t?{...t,visits:t.visits+1,lastSeenAt:e}:{id:H(),firstSeenAt:e,lastSeenAt:e,visits:1};return Jo(jo,JSON.stringify(i)),i}var ac={maskAllInputs:true,blockSelector:".obsrviq-block",noPrivacy:false,captureNetworkBodies:false,redactHeaders:["authorization","cookie","set-cookie"],sampleRate:1,recordCanvas:false,endpoint:"https://in.lumera.app",flushIntervalMs:5e3,continueSession:false,sessionTimeoutMs:1800*1e3,requireConsent:false,askPermission:false,showRecording:false,maxArgBytes:8*1024},Bn=class{constructor(){this.config=null;this.clock=null;this.transport=null;this.teardowns=[];this.meta=null;this.recording=false;this.consent=null;this.sampledIn=true;this.lastActivity=0;this.nextSeq=0;this.openTasks=new Map;this.consentUnmount=null;this.recDotUnmount=null;this.diag={recording:false,sessionId:null,flushes:0,bytesSent:0,eventsSent:0,eventsQueued:0};}get sessionId(){return this.diag.sessionId}init(t){if(!this.config){if(!t.siteKey){console.warn("[obsrviq] init() called without siteKey \u2014 recording disabled.");return}if(this.config={...ac,...lc(t)},this.config.noPrivacy&&t.maskAllInputs===void 0&&(this.config.maskAllInputs=false),this.config.askPermission&&(this.config.requireConsent=true),this.startSession(),t.userId!=null&&this.applyUserId(t.userId),t.metadata&&this.meta&&(this.meta.metadata={...t.metadata}),_n()){this.consent=false;return}this.config.requireConsent?this.config.askPermission&&(this.consentUnmount=Wo(this.config.blockSelector,this.config.consentText,()=>this.setConsent(true),()=>this.setConsent(false))):this.maybeStart();}}startSession(t=true){let r=this.config,i=Date.now(),n=null;if(r.continueSession){let c=Vo();c&&i-c.lastActivity<r.sessionTimeoutMs&&!(r.userId!=null&&c.userId!=null&&c.userId!==String(r.userId))&&(n=c);}let o=n?n.id:H();this.clock=n?new st(n.startedAt,n.lastT):new st,this.currentUserId=n?.userId??(t&&r.userId!=null?String(r.userId):void 0),this.nextSeq=n?n.seq:0,this.diag.sessionId=o,this.meta={startedAt:this.clock.startedAt,entryUrl:location.href,device:yo()},this.sampledIn=n?true:Math.random()<(r.sampleRate??1),this.transport=new lt({endpoint:r.endpoint,siteKey:r.siteKey,sessionId:o,getMeta:()=>this.meta??void 0,beforeSend:r.beforeSend,flushIntervalMs:r.flushIntervalMs,startSeq:this.nextSeq,onSeqDispatch:c=>{this.nextSeq=c,this.persistSession();},onFlush:({bytes:c,events:p,ok:a})=>{a&&(this.diag.flushes++,this.diag.bytesSent+=c,this.diag.eventsSent+=p);}}),this.recording=false,this.diag.recording=false;}persistSession(){!this.config?.continueSession||!this.recording||!this.clock||!this.diag.sessionId||Go({id:this.diag.sessionId,startedAt:this.clock.startedAt,lastActivity:Date.now(),seq:this.nextSeq,lastT:this.clock.now(),userId:this.currentUserId});}maybeStart(){if(this.recording||!this.config||!this.clock||!this.transport||this.config.requireConsent&&this.consent!==true||this.consent===false||!this.sampledIn)return;if(this.meta&&this.meta.visitorId==null){let r=Qo(Date.now());this.meta.visitorId=r.id,this.meta.visitCount=r.visits,this.meta.firstSeenAt=r.firstSeenAt;}let t={clock:this.clock,sessionId:this.diag.sessionId,config:this.config,emit:r=>{this.transport.enqueue(r),this.diag.eventsQueued++;},markActivity:()=>{this.lastActivity=this.clock.now();},lastActivityT:()=>this.lastActivity};this.transport.start(),this.teardowns.push(Co(t)),this.teardowns.push(No(t)),this.teardowns.push(To(t)),this.teardowns.push(ko(t)),this.teardowns.push(Lo(t)),this.teardowns.push(Fo(t)),this.teardowns.push(Uo(t)),this.teardowns.push(zo(t)),this.teardowns.push(vo(t)),this.recording=true,this.diag.recording=true,this.persistSession(),this.config.showRecording&&!this.recDotUnmount&&(this.recDotUnmount=Ho(this.config.blockSelector));}identify(t,r){if(!this.meta)return;let i=String(t);this.config?.continueSession&&this.currentUserId!=null&&this.currentUserId!==i&&this.reset(),this.currentUserId=i,this.applyUserId(i),r&&this.mergeMetadata(r),this.track("identify",{hasTraits:!!r}),this.flush(),this.persistSession();}setMetadata(t){this.meta&&(this.mergeMetadata(t),this.track("metadata",{keys:Object.keys(t)}),this.flush());}reset(){if(!this.config)return;let t=this.recording;this.recording&&this.teardown(),Yo(),this.currentUserId=void 0,this.startSession(false),t&&this.consent!==false&&!_n()&&this.maybeStart();}applyUserId(t){let r=String(t);this.meta&&(this.meta.userId=r),go(r).then(i=>{this.meta&&this.meta.userId===r&&(this.meta.identityHash=i);});}mergeMetadata(t){this.meta&&(this.meta.metadata={...this.meta.metadata??{},...t});}track(t,r){!this.recording||!this.clock||!this.transport||(this.transport.enqueue({id:H(),sessionId:this.diag.sessionId,type:"custom",t:this.clock.now(),ts:this.clock.wall(),name:t,props:r}),this.diag.eventsQueued++);}conversion(t,r){let i=String(t).trim();i&&this.track(i,{...r,conversion:true});}tag(...t){let r=t.map(i=>String(i).trim()).filter(Boolean);r.length&&(this.track("_tag",{tags:r}),this.flush());}startTask(t,r){let i=String(t).trim(),n=H(),o=this.clock?this.clock.now():0;return i&&(this.openTasks.set(i,{spanId:n,startT:o}),this.track(`${i}:started`,{...r,spanId:n,task:i})),{end:c=>this.endTask(i,c)}}endTask(t,r){let i=String(t).trim();if(!i)return;let n=this.openTasks.get(i);this.openTasks.delete(i);let o=n?.spanId??H();this.track(`${i}:ended`,{...r,spanId:o,task:i,...n?{startT:n.startT}:{}});}setConsent(t){this.consent=t,this.consentUnmount?.(),this.consentUnmount=null,t?this.maybeStart():this.recording&&this.teardown();}stop(){this.teardown();}flush(){return this.transport?this.transport.flush("manual"):Promise.resolve(true)}getDiagnostics(){return {...this.diag}}teardown(){for(let t of this.teardowns.splice(0))try{t();}catch{}this.recDotUnmount?.(),this.recDotUnmount=null,this.transport?.stop(),this.recording=false,this.diag.recording=false;}};function lc(e){let t={};for(let[r,i]of Object.entries(e))i!==void 0&&(t[r]=i);return t}var qn=new Bn;var ge=document.currentScript;function je(e,t){return e==null?t:e==="true"||e==="1"}if(ge){let e=ge.getAttribute("data-obsrviq-key");if(e){let t={siteKey:e,endpoint:ge.getAttribute("data-obsrviq-endpoint")||void 0,maskAllInputs:je(ge.getAttribute("data-obsrviq-mask-inputs"),true),captureNetworkBodies:je(ge.getAttribute("data-obsrviq-capture-bodies"),false),requireConsent:je(ge.getAttribute("data-obsrviq-require-consent"),false),askPermission:je(ge.getAttribute("data-obsrviq-ask-permission"),false),showRecording:je(ge.getAttribute("data-obsrviq-show-recording"),false),recordCanvas:je(ge.getAttribute("data-obsrviq-record-canvas"),false)},r=ge.getAttribute("data-obsrviq-sample-rate");r&&(t.sampleRate=Number(r));let i=ge.getAttribute("data-obsrviq-user-id");i&&(t.userId=i);let n=ge.getAttribute("data-obsrviq-metadata");if(n)try{t.metadata=JSON.parse(n);}catch{console.warn("[obsrviq] data-obsrviq-metadata is not valid JSON \u2014 ignored.");}qn.init(t);}}window.Obsrviq=qn;/*! Bundled license information:
172
+
173
+ rrweb/dist/rrweb.js:
174
+ (*! *****************************************************************************
175
+ Copyright (c) Microsoft Corporation.
176
+
177
+ Permission to use, copy, modify, and/or distribute this software for any
178
+ purpose with or without fee is hereby granted.
179
+
180
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
181
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
182
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
183
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
184
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
185
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
186
+ PERFORMANCE OF THIS SOFTWARE.
187
+ ***************************************************************************** *)
188
+ */exports.Obsrviq=qn;return exports;})({});//# sourceMappingURL=obsrviq.global.js.map
189
+ //# sourceMappingURL=obsrviq.global.js.map