1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0e780f8f-35a2-419e-a814-64c24c3207da",e._sentryDebugIdIdentifier="sentry-dbid-0e780f8f-35a2-419e-a814-64c24c3207da")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1620],{90838:(e,t,r)=>{let s,n,i,o,a,l;r.r(t),r.d(t,{initSessionRecorder:()=>nz});var u,h,c,p,d,f,m,g,y,w,b,v,S,x,C,k,O,M,E,R,I,A,N,L,P,T,D,_,F,U,j,z,B,W,$,V,H,q,G,X,J,K,Y,Z,Q,ee,et,er,es,en,ei,eo,ea,el,eu,eh,ec,ep,ed,ef,em,eg,ey,ew,eb,ev,eS,ex,eC,ek,eO,eM,eE,eR,eI,eA,eN,eL,eP,eT,eD,e_,eF,eU,ej,ez,eB,eW,e$,eV,eH,eq,eG,eX,eJ,eK,eY,eZ,eQ,e0,e1,e2,e3,e4,e6,e9,e8,e5,e7,te,tt,tr,ts,tn,ti,to,ta,tl,tu,th,tc,tp,td,tf,tm,tg=r(17283),ty=r(58863).hp,tw=r(40459);let tb=/^[a-zA-Z0-9_.-]+$/;function tv(e){return"string"!=typeof e||0===e.length?"key is empty":e.length>128?"key exceeds 128 characters":tb.test(e)?null:"key contains invalid characters (allowed: a-z A-Z 0-9 _ . -)"}let tS=["[data-csr-mask]"],tx=["[data-csr-block]"],tC=[{pattern:/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,replacement:":uuid"},{pattern:/^\d+$/,replacement:":id"},{pattern:/^[a-z][a-z0-9]{19}$/,replacement:":id"},{pattern:/[0-9a-f]{20}/i,replacement:":id"}];function tk(e){return e.split("/").map(e=>{if(!e)return e;for(let{pattern:t,replacement:r}of tC)if(t.test(e))return r;return e}).join("/")}function tO(e){return e.match(/\b(?:query|mutation|subscription)\s+([_A-Za-z][_0-9A-Za-z]*)/)?.[1]}function tM(e,t){if(!function(e){try{return new URL(e,globalThis.location?.href).pathname.endsWith("/graphql")}catch(t){return e.split(/[?#]/,1)[0].endsWith("/graphql")}}(e))return;let r=function(e){if("string"==typeof e)try{let t=JSON.parse(e);if("string"==typeof t.operationName&&t.operationName)return t.operationName;return"string"==typeof t.query?tO(t.query):void 0}catch(t){return tO(e)}}(t);return r?{operationName:r}:void 0}var tE=class e{engine;onEvent;state="idle";visibilityHandler=null;pageShowHandler=null;originalFetch=null;originalXhrOpen=null;originalXhrSend=null;originalPushState=null;originalReplaceState=null;popstateHandler=null;parameterizeRoute;constructor(e){this.engine=e.engine,this.onEvent=e.onEvent}get currentState(){return this.state}start(e){"recording"!==this.state&&(this.state="recording",this.parameterizeRoute=e?.parameterizeRoute??tk,this.engine.start(e??{},e=>{if(4===e.type){let t=e.data;"string"==typeof t?.href&&(e={...e,data:{...t,href:this.parameterizeHref(t.href)}})}this.onEvent(e)}),"u">typeof document&&(this.visibilityHandler=()=>{let e={plugin:"csr:tabVisibility",payload:{hidden:document.hidden}};this.onEvent({type:6,timestamp:Date.now(),data:e})},document.addEventListener("visibilitychange",this.visibilityHandler)),"u">typeof window&&(this.pageShowHandler=e=>{e.persisted&&this.engine.takeFullSnapshot()},window.addEventListener("pageshow",this.pageShowHandler)),e?.captureNetworkRequests&&this.patchNetwork(),e?.captureRouteChanges!==!1&&this.patchRouting())}emitNetworkRequest(e){this.onEvent({type:6,timestamp:Date.now(),data:{plugin:"csr:networkRequest",payload:e}})}patchNetwork(){this.patchFetch(),this.patchXhr()}patchFetch(){if("function"!=typeof globalThis.fetch)return;let e=globalThis.fetch;this.originalFetch=e;let t=this.emitNetworkRequest.bind(this);globalThis.fetch=(r,s)=>{let n,i=r instanceof Request?r.method:s?.method??"GET";n=r instanceof Request?r.url:r instanceof URL?r.href:String(r);let o=s?.body?new Blob([s.body]).size:void 0,a=tM(n,s?.body),l=Date.now();return e.call(globalThis,r,s).then(e=>{let r=e.headers.get("content-length");return t({initiator:"fetch",method:i.toUpperCase(),url:n,status:e.status,durationMs:Date.now()-l,...null!=o?{requestSize:o}:{},...r?{responseSize:Number(r)}:{},...a?{graphql:a}:{}}),e},e=>{throw t({initiator:"fetch",method:i.toUpperCase(),url:n,status:0,durationMs:Date.now()-l,...null!=o?{requestSize:o}:{},...a?{graphql:a}:{}}),e})}}patchXhr(){if("u"<typeof XMLHttpRequest)return;let e=XMLHttpRequest.prototype.open,t=XMLHttpRequest.prototype.send;this.originalXhrOpen=e,this.originalXhrSend=t;let r=this.emitNetworkRequest.bind(this);XMLHttpRequest.prototype.open=function(t,r,...s){return this.__csr_method=t,this.__csr_url=String(r),e.apply(this,[t,r,...s])},XMLHttpRequest.prototype.send=function(e){let s=this.__csr_method??"GET",n=this.__csr_url??"",i=null!=e?new Blob([e]).size:void 0,o=tM(n,e),a=Date.now();return this.addEventListener("loadend",function(){let e=this.getResponseHeader("content-length");r({initiator:"xhr",method:s.toUpperCase(),url:n,status:this.status,durationMs:Date.now()-a,...null!=i?{requestSize:i}:{},...e?{responseSize:Number(e)}:{},...o?{graphql:o}:{}})}),t.call(this,e)}}parameterizeHref(e){try{let t=new URL(e);return t.pathname=this.parameterizeRoute(t.pathname),t.toString()}catch(t){return this.parameterizeRoute(e)}}emitRouteChange(e,t,r){if(e===t)return;let s=this.parameterizeRoute(e),n=this.parameterizeRoute(t);s===n||this.onEvent({type:6,timestamp:Date.now(),data:{plugin:"csr:routeChange",payload:{from:s,to:n,trigger:r}}})}static currentPathname(){return window.location.pathname}patchRouting(){if("u"<typeof window)return;let t=e.currentPathname(),r=r=>{let s=t;t=e.currentPathname(),this.emitRouteChange(s,t,r)},s=history.pushState.bind(history);this.originalPushState=history.pushState,history.pushState=(...e)=>
1{s(...e),r("pushState")};let n=history.replaceState.bind(history);this.originalReplaceState=history.replaceState,history.replaceState=(...e)=>{n(...e),r("replaceState")},this.popstateHandler=()=>r("popstate"),window.addEventListener("popstate",this.popstateHandler)}restoreRouting(){this.originalPushState&&(history.pushState=this.originalPushState,this.originalPushState=null),this.originalReplaceState&&(history.replaceState=this.originalReplaceState,this.originalReplaceState=null),this.popstateHandler&&(window.removeEventListener("popstate",this.popstateHandler),this.popstateHandler=null)}restoreNetwork(){this.originalFetch&&(globalThis.fetch=this.originalFetch,this.originalFetch=null),this.originalXhrOpen&&(XMLHttpRequest.prototype.open=this.originalXhrOpen,this.originalXhrOpen=null),this.originalXhrSend&&(XMLHttpRequest.prototype.send=this.originalXhrSend,this.originalXhrSend=null)}stop(){"recording"===this.state&&(this.visibilityHandler&&(document.removeEventListener("visibilitychange",this.visibilityHandler),this.visibilityHandler=null),this.pageShowHandler&&(window.removeEventListener("pageshow",this.pageShowHandler),this.pageShowHandler=null),this.restoreNetwork(),this.restoreRouting(),this.engine.stop(),this.state="stopped")}},tR=Object.defineProperty,tI=(e,t,r)=>{let s;return(s="symbol"!=typeof t?t+"":t)in e?tR(e,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[s]=r},tA=Object.defineProperty,tN=(e,t,r)=>{let s;return(s="symbol"!=typeof t?t+"":t)in e?tA(e,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[s]=r},tL=((u=tL||{})[u.Document=0]="Document",u[u.DocumentType=1]="DocumentType",u[u.Element=2]="Element",u[u.Text=3]="Text",u[u.CDATA=4]="CDATA",u[u.Comment=5]="Comment",u);let tP={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},tT={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},tD={},t_={};function tF(e){if(tD[e])return tD[e];let t=globalThis[e],r=t.prototype,s=e in tP?tP[e]:void 0,n=!!(s&&s.every(e=>{var t,s;return!!(null==(s=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:s.toString().includes("[native code]"))})),i=e in tT?tT[e]:void 0,o=!!(i&&i.every(e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(n&&o&&!globalThis.Zone)return tD[e]=t.prototype,t.prototype;try{let s=document.createElement("iframe");s.style.display="none",document.body.appendChild(s);let n=s.contentWindow;if(!n)return t.prototype;let i=n[e].prototype;if(!i)return s.remove(),r;let o=navigator.userAgent;return o.includes("Safari")&&!o.includes("Chrome")?(s.classList.add("rr-block"),s.setAttribute("__rrwebUntaintedMutationObserver",""),t_[e]=()=>s.remove()):s.remove(),tD[e]=i}catch{return r}}let tU={};function tj(e,t,r){var s;let n=`${e}.${String(r)}`;if(tU[n])return tU[n].call(t);let i=null==(s=Object.getOwnPropertyDescriptor(tF(e),r))?void 0:s.get;return i?(tU[n]=i,i.call(t)):t[r]}Date.now().toString();let tz=function(e){return tj("Node",e,"childNodes")},tB=function(e){return tj("Node",e,"parentNode")},tW=function(e){return tj("Node",e,"parentElement")},t$=function(e){return tj("Node",e,"textContent")},tV=function(e){return e&&"shadowRoot"in e?tj("Element",e,"shadowRoot"):null};function tH(e){return e.nodeType===e.ELEMENT_NODE}function tq(e){var t;let r=e&&"host"in e&&"mode"in e&&((t=e)&&"host"in t?tj("ShadowRoot",t,"host"):null)||null;return!!(r&&"shadowRoot"in r&&tV(r)===e)}function tG(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function tX(e){try{var t;let r=e.rules||e.cssRules;if(!r)return null;let s=e.href;return!s&&e.ownerNode&&(s=e.ownerNode.baseURI),(t=Array.from(r,e=>tJ(e,s)).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}catch(e){return null}}function tJ(e,t){if("styleSheet"in e){let t;try{t=tX(e.styleSheet)||function(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(" ")+";"}(e)}catch(r){t=e.cssText}return e.styleSheet.href?t9(t,e.styleSheet.href):t}{let r=e.cssText;return("selectorText"in e&&e.selectorText.includes(":")&&(r=r.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),t)?t9(r,t):r}}var tK=class{constructor(){tN(this,"idNodeMap",new Map),tN(this,"nodeMetaMap",new WeakMap)}getId(e){var t;return e?(null==(t=this.getMeta(e))?void 0:t.id)??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);
1this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function tY({element:e,maskInputOptions:t,tagName:r,type:s,value:n,maskInputFn:i}){let o=n||"",a=s&&tZ(s);return(t[r.toLowerCase()]||a&&t[a])&&(o=i?i(o,e):"*".repeat(o.length)),o}function tZ(e){return e.toLowerCase()}let tQ="__rrweb_original__";function t0(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?tZ(t):null}function t1(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(e){return null}let s=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==s?void 0:s[1])??null}let t2=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,t3=/^(?:[a-z+]+:)?\/\//i,t4=/^www\..*/i,t6=/^(data:)([^,]*),(.*)/i;function t9(e,t){return(e||"").replace(t2,(e,r,s,n,i,o)=>{let a=s||i||o,l=r||n||"";if(!a)return e;if(t3.test(a)||t4.test(a)||t6.test(a))return`url(${l}${a}${l})`;if("/"===a[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+a}${l})`;let u=t.split("/"),h=a.split("/");for(let e of(u.pop(),h))if("."===e)continue;else".."===e?u.pop():u.push(e);return`url(${l}${u.join("/")}${l})`})}function t8(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}let t5=1,t7=RegExp("[^a-z0-9-_:]");function re(){return t5++}let rt=/^[^ \t\n\r\u000c]+/,rr=/^[, \t\n\r\u000c]+/,rs=new WeakMap;function rn(e,t){return t&&""!==t.trim()?ri(e,t):t}function ri(e,t){let r=rs.get(e);if(r||(r=e.createElement("a"),rs.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function ro(e,t,r,s){if(!s)return s;if("src"===r||"href"===r&&("use"!==t||"#"!==s[0])||"xlink:href"===r&&"#"!==s[0])return rn(e,s);if("background"===r&&["table","td","th"].includes(t))return rn(e,s);if("srcset"===r)return function(e,t){if(""===t.trim())return t;let r=0;function s(e){let s,n=e.exec(t.substring(r));return n?(s=n[0],r+=s.length,s):""}let n=[];for(;s(rr),!(r>=t.length);){let i=s(rt);if(","===i.slice(-1))i=rn(e,i.substring(0,i.length-1)),n.push(i);else{let s="";i=rn(e,i);let o=!1;for(;;){let e=t.charAt(r);if(""===e){n.push((i+s).trim());break}if(o)")"===e&&(o=!1);else if(","===e){r+=1,n.push((i+s).trim());break}else"("===e&&(o=!0);s+=e,r+=1}}}return n.join(", ")}(e,s);if("style"===r)return t9(s,ri(e));else if("object"===t&&"data"===r)return rn(e,s);return s}function ra(e,t,r){return["video","audio"].includes(e)&&"autoplay"===t}function rl(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&rl(tB(e),t,r);for(let r=e.classList.length;r--;){let s=e.classList[r];if(t.test(s))return!0}return!!r&&rl(tB(e),t,r)}function ru(e,t,r,s){let n;if(tH(e)){if(!tz(n=e).length)return!1}else{if(null===tW(e))return!1;n=tW(e)}try{if("string"==typeof t){if(s){if(n.closest(`.${t}`))return!0}else if(n.classList.contains(t))return!0}else if(rl(n,t,s))return!0;if(r){if(s){if(n.closest(r))return!0}else if(n.matches(r))return!0}}catch(e){}return!1}function rh(e){return null==e?"":e.toLowerCase()}function rc(e){return!0===e||"all"===e?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===e,headMetaDescKeywords:"all"===e,headTitleMutations:"all"===e}:e||{}}function rp(e,t){let r,{doc:i,mirror:o,blockClass:a,blockSelector:l,maskTextClass:u,maskTextSelector:h,skipChild:c=!1,inlineStylesheet:p=!0,maskInputOptions:d={},maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y={},inlineImages:w=!1,recordCanvas:b=!1,onSerialize:v,onIframeLoad:S,iframeLoadTimeout:x=5e3,onStylesheetLoad:C,stylesheetLoadTimeout:k=5e3,keepIframeSrcFn:O=()=>!1,newlyAddedElement:M=!1,cssCaptured:E=!1}=t,{needsMask:R}=t,{preserveWhiteSpace:I=!0}=t;R||(R=ru(e,u,h,void 0===R));let A=function(e,t){let{doc:r,mirror:i,blockClass:o,blockSelector:a,needsMask:l,inlineStylesheet:u,maskInputOptions:h={},maskTextFn:c,maskInputFn:p,dataURLOptions:d={},inlineImages:f,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:y=!1,cssCaptured:w=!1}
1=t,b=function(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return 1===r?void 0:r}(r,i);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:tL.Document,childNodes:[],compatMode:e.compatMode};return{type:tL.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:tL.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:b};case e.ELEMENT_NODE:return function(e,t){let r,{doc:i,blockClass:o,blockSelector:a,inlineStylesheet:l,maskInputOptions:u={},maskInputFn:h,dataURLOptions:c={},inlineImages:p,recordCanvas:d,keepIframeSrcFn:f,newlyAddedElement:m=!1,rootId:g}=t,y=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){let s=e.classList[r];if(t.test(s))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,o,a),w=function(e){if(e instanceof HTMLFormElement)return"form";let t=tZ(e.tagName);return t7.test(t)?"div":t}(e),b={},v=e.attributes.length;for(let t=0;t<v;t++){let r=e.attributes[t];ra(w,r.name,r.value)||(b[r.n
1ame]=ro(i,w,tZ(r.name),r.value))}if("link"===w&&l){let t=Array.from(i.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=tX(t)),r&&(delete b.rel,delete b.href,b._cssText=r)}if("style"===w&&e.sheet){let t=tX(e.sheet);t&&(e.childNodes.length>1&&(t=(function(e,t,r=!1){let s=Array.from(t.childNodes),n=[],i=0;if(s.length>1&&e&&"string"==typeof e){let t=t8(e,r),o=t.length/e.length;for(let a=1;a<s.length;a++)if(s[a].textContent&&"string"==typeof s[a].textContent){let l=t8(s[a].textContent,r),u=3;for(;u<l.length&&(l[u].match(/[a-zA-Z0-9]/)||-1!==l.indexOf(l.substring(0,u),1));u++);for(;u<l.length;u++){let h=l.substring(0,u),c=t.split(h),p=-1;if(2===c.length)p=c[0].length;else if(c.length>2&&""===c[0]&&""!==s[a-1].textContent)p=t.indexOf(h,1);else if(1===c.length){if(h=h.substring(0,h.length-1),(c=t.split(h)).length<=1)return n.push(e),n;u=101}else u===l.length-1&&(p=t.indexOf(h));if(c.length>=2&&u>100){let e=s[a-1].textContent;if(e&&"string"==typeof e){let r=t8(e).length;p=t.indexOf(h,r)}-1===p&&(p=c[0].length)}if(-1!==p){let a=Math.floor(p/o);for(;a>0&&a<e.length;){if((i+=1)>50*s.length)return n.push(e),n;let l=t8(e.substring(0,a),r);if(l.length===p){n.push(e.substring(0,a)),e=e.substring(a),t=t.substring(p);break}l.length<p?a+=Math.max(1,Math.floor((p-l.length)/o)):a-=Math.max(1,Math.floor((l.length-p)*o))}break}}}}return n.push(e),n})(t,e).join("/* rr_split */")),b._cssText=t)}if(["input","textarea","select"].includes(w)){let t=e.value,r=e.checked;"radio"!==b.type&&"checkbox"!==b.type&&"submit"!==b.type&&"button"!==b.type&&t?b.value=tY({element:e,type:t0(e),tagName:w,value:t,maskInputOptions:u,maskInputFn:h}):r&&(b.checked=r)}if("option"===w&&(e.selected&&!u.select?b.selected=!0:delete b.selected),"dialog"===w&&e.open&&(b.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===w&&d){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let s=0;s<e.height;s+=50){let n=t.getImageData;if(new Uint32Array((tQ in n?n[tQ]:n).call(t,r,s,Math.min(50,e.width-r),Math.min(50,e.height-s)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(b.rr_dataURL=e.toDataURL(c.type,c.quality));else if(!("__context"in e)){let t=e.toDataURL(c.type,c.quality),r=i.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(c.type,c.quality)&&(b.rr_dataURL=t)}}if("img"===w&&p){s||(n=(s=i.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",r=e.crossOrigin,o=()=>{e.removeEventListener("load",o);try{s.width=e.naturalWidth,s.height=e.naturalHeight,n.drawImage(e,0,0),b.rr_dataURL=s.toDataURL(c.type,c.quality)}catch(r){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?o():e.addEventListener("load",o);return}console.warn(`Cannot inline img src=${t}! Error: ${r}`)}"anonymous"===e.crossOrigin&&(r?b.crossOrigin=r:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?o():e.addEventListener("load",o)}if(["audio","video"].includes(w)){let t=b;t.rr_mediaState=e.paused?"paused":"played",t.rr_mediaCurrentTime=e.currentTime,t.rr_mediaPlaybackRate=e.playbackRate,t.rr_mediaMuted=e.muted,t.rr_mediaLoop=e.loop,t.rr_mediaVolume=e.volume}if(!m&&(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),y){let{width:t,height:r}=e.getBoundingClientRect();b={class:b.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==w||f(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(w)&&(r=!0)}catch(e){}return{type:tL.Element,tagName:w,attributes:b,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:y,rootId:g,isCustom:r}}(e,{doc:r,blockClass:o,blockSelector:a,inlineStylesheet:u,maskInputOptions:h,maskInputFn:p,dataURLOptions:d,inlineImages:f,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:y,rootId:b});case e.TEXT_NODE:return function(e,t){let{needsMask:r,maskTextFn:s,rootId:n,cssCaptured:i}=t,o=tB(e),a=o&&o.tagName,l="",u="STYLE"===a||void 0,h="SCRIPT"===a||void 0;return h?l="SCRIPT_PLACEHOLDER":!i&&(l=t$(e),u&&l&&(l=t9(l,ri(t.doc)))),!u&&!h&&l&&r&&(l=s?s(l,tW(e)):l.replace(/[\S]/g,"*")),{type:tL.Text,textContent:l||"",rootId:n}}(e,{doc:r,needsMask:l,maskTextFn:c,rootId:b,cssCaptured:w});case e.CDATA_SECTION_NODE:return{type:tL.CDATA,textContent:"",rootId:b};case e.COMMENT_NODE:return{type:tL.Comment,textContent:t$(e)||"",rootId:b};default:return!1}}(e,{doc:i,mirror:o,blockClass:a,blockSelector:l,needsMask:R,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:m,dataURLOptions:y,inlineImages:w,recordCanvas:b,keepIframeSrcFn:O,newlyAddedElement:M,cssCaptured:E});if(!A)return console.warn(e,"not serialized"),null;r=o.hasNode(e)?o.getId(e):!function(e,t){if(t.comment&&e.type===tL.Comment)return!0;
1if(e.type===tL.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===t1(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(rh(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===rh(e.attributes.name)||"icon"===rh(e.attributes.rel)||"apple-touch-icon"===rh(e.attributes.rel)||"shortcut icon"===rh(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&rh(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(rh(e.attributes.property).match(/^(og|twitter|fb):/)||rh(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===rh(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===rh(e.attributes.name)||"googlebot"===rh(e.attributes.name)||"bingbot"===rh(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===rh(e.attributes.name)||"generator"===rh(e.attributes.name)||"framework"===rh(e.attributes.name)||"publisher"===rh(e.attributes.name)||"progid"===rh(e.attributes.name)||rh(e.attributes.property).match(/^article:/)||rh(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===rh(e.attributes.name)||"yandex-verification"===rh(e.attributes.name)||"csrf-token"===rh(e.attributes.name)||"p:domain_verify"===rh(e.attributes.name)||"verify-v1"===rh(e.attributes.name)||"verification"===rh(e.attributes.name)||"shopify-checkout-api-token"===rh(e.attributes.name)))return!0}}return!1}(A,g)&&(I||A.type!==tL.Text||A.textContent.replace(/^\s+|\s+$/gm,"").length)?re():-2;let N=Object.assign(A,{id:r});if(o.add(e,N),-2===r)return null;v&&v(e);let L=!c;if(N.type===tL.Element){L=L&&!N.needBlock,delete N.needBlock;let t=tV(e);t&&tG(t)&&(N.isShadowHost=!0)}if((N.type===tL.Document||N.type===tL.Element)&&L){g.headWhitespace&&N.type===tL.Element&&"head"===N.tagName&&(I=!1);let t={doc:i,mirror:o,blockClass:a,blockSelector:l,needsMask:R,maskTextClass:u,maskTextSelector:h,skipChild:c,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:w,recordCanvas:b,preserveWhiteSpace:I,onSerialize:v,onIframeLoad:S,iframeLoadTimeout:x,onStylesheetLoad:C,stylesheetLoadTimeout:k,keepIframeSrcFn:O,cssCaptured:!1};if(N.type===tL.Element&&"textarea"===N.tagName&&void 0!==N.attributes.value);else for(let r of(N.type===tL.Element&&void 0!==N.attributes._cssText&&"string"==typeof N.attributes._cssText&&(t.cssCaptured=!0),Array.from(tz(e)))){let e=rp(r,t);e&&N.childNodes.push(e)}let r=null;if(tH(e)&&(r=tV(e)))for(let e of Array.from(tz(r))){let s=rp(e,t);s&&(tG(r)&&(s.isShadow=!0),N.childNodes.push(s))}}let P=tB(e);return P&&tq(P)&&tG(P)&&(N.isShadow=!0),N.type===tL.Element&&"iframe"===N.tagName&&function(e,t,r){let s,n=e.contentWindow;if(!n)return;let i=!1;try{s=n.document.readyState}catch(e){return}if("complete"!==s){let s=setTimeout(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{clearTimeout(s),i=!0,t()});return}let o="about:blank";if(n.location.href!==o||e.src===o||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=e.contentDocument;if(t&&S){let r=rp(t,{doc:t,mirror:o,blockClass:a,blockSelector:l,needsMask:R,maskTextClass:u,maskTextSelector:h,skipChild:!1,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:w,recordCanvas:b,preserveWhiteSpace:I,onSerialize:v,onIframeLoad:S,iframeLoadTimeout:x,onStylesheetLoad:C,stylesheetLoadTimeout:k,keepIframeSrcFn:O});r&&S(e,r)}},x),N.type===tL.Element&&"link"===N.tagName&&"string"==typeof N.attributes.rel&&("stylesheet"===N.attributes.rel||"preload"===N.attributes.rel&&"string"==typeof N.attributes.href&&"css"===t1(N.attributes.href))&&function(e,t,r){let s,n=!1;
1try{s=e.sheet}catch(e){return}if(s)return;let i=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(i),n=!0,t()})}(e,()=>{if(C){let t=rp(e,{doc:i,mirror:o,blockClass:a,blockSelector:l,needsMask:R,maskTextClass:u,maskTextSelector:h,skipChild:!1,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:w,recordCanvas:b,preserveWhiteSpace:I,onSerialize:v,onIframeLoad:S,iframeLoadTimeout:x,onStylesheetLoad:C,stylesheetLoadTimeout:k,keepIframeSrcFn:O});t&&C(e,t)}},k),N}RegExp(/(max|min)-device-(width|height)/.source,"g");var rd={exports:{}};let rf=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));function rm(){if(C)return x;C=1;let e=function(){if(S)return rd.exports;S=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return rd.exports=t(),rd.exports.createColors=t,rd.exports}();class t extends Error{constructor(e,r,s,n,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),n&&(this.source=n),o&&(this.plugin=o),void 0!==r&&void 0!==s&&("number"==typeof r?(this.line=r,this.column=s):(this.line=r.line,this.column=r.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){let r,s;if(!this.source)return"";let n=this.source;null==t&&(t=e.isColorSupported),rf&&t&&(n=rf(n));let i=n.split(/\r?\n/),o=Math.max(this.line-3,0),a=Math.min(this.line+2,i.length),l=String(a).length;if(t){let{bold:t,gray:n,red:i}=e.createColors(!0);r=e=>t(i(e)),s=e=>n(e)}else r=s=e=>e;return i.slice(o,a).map((e,t)=>{let n=o+1+t,i=" "+(" "+n).slice(-l)+" | ";if(n===this.line){let t=s(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+s(i)+e+"\n "+t+r("^")}return" "+s(i)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}return x=t,t.default=t,x}var rg={};function ry(){return k||(k=1,rg.isClean=Symbol("isClean"),rg.my=Symbol("my")),rg}function rw(){if(M)return O;M=1;let e={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class t{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:s&&(r+=" "),e.nodes)this.block(e,r+s);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+s+n,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let s=e.parent,n=0;for(;s&&"root"!==s.type;)n+=1,s=s.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<n;e++)r+=t}return r}block(e,t){let r,s=this.raw(e,"between","beforeOpen");this.builder(t+s+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let n=e.nodes[s],i=this.raw(n,"before");i&&this.builder(i),this.stringify(n,t!==s||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),s=e.prop+r+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)}document(e){this.body(e)}raw(t,r,s){let n;if(s||(s=r),r&&void 0!==(n=t.raws[r]))return n;let i=t.parent;if("before"===s&&(!i||"root"===i.type&&i.first===t||i&&"document"===i.type))return"";if(!i)return e[s];let o=t.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[s])return o.rawCache[s];if("before"===s||"after"===s)return this.beforeAfter(t,s);{var a;let e="raw"+((a=s)[0].toUpperCase()+a.slice(1));this[e]?n=this[e](o,t):o.walk(e=>{if(void 0!==(n=e.raws[r]))return!1})}return void 0===n&&(n=e[s]),o.rawCache[s]=n,n}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t}rawIndent(e){let t;return e.raws.indent?e.raws.indent:(e.walk(r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=(t=e[e.length-1]).replace(/\S/g,""),!1}}),t)}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t}rawValue(e,t){let r=e[t],s=e.raws[t];return s&&s.value===r?s.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}return O=t,t.default=t,O}function rb(){if(R)return E;R=1;let e=rw();function t(t,r){new e(r).stringify(t)}return E=t,t.default=t,E}function rv(){if(A)return I;A=1;let{isClean:e,my:t}=ry(),r=rm(),s=rw(),n=rb();class i{constructor(r={}){for(let s in this.raws={},this[e]=!1,this[t]=!0,r)if("nodes"===s)for(let e of(this.nodes=[],r[s]))"function"==typeof e.clone?this.append(e.clone()):this.append(e);else this[s]=r[s]}
1addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=function e(t,r){let s=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||"proxyCache"===n)continue;let i=t[n],o=typeof i;"parent"===n&&"object"===o?r&&(s[n]=r):"source"===n?s[n]=i:Array.isArray(i)?s[n]=i.map(t=>e(t,s)):("object"===o&&null!==i&&(i=e(i)),s[n]=i)}return s}(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:r.column,line:r.line},t)}return new r(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}
1markDirty(){if(this[e]){this[e]=!1;let t=this;for(;t=t.parent;)t[e]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let s=(t=this.toString()).indexOf(e.word);-1!==s&&(r=this.positionInside(s,t))}return r}positionInside(e,t){let r=t||this.toString(),s=this.source.start.column,n=this.source.start.line;for(let t=0;t<e;t++)"\n"===r[t]?(s=1,n+=1):s+=1;return{column:s,line:n}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let s=this.toString(),n=s.indexOf(e.word);-1!==n&&(t=this.positionInside(n,s),r=this.positionInside(n+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new s().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let s of e)s===this?r=!0:r?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);r||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let r={},s=null==t;t=t||new Map;let n=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||"parent"===e||"proxyCache"===e)continue;let s=this[e];if(Array.isArray(s))r[e]=s.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof s&&s.toJSON)r[e]=s.toJSON(null,t);else if("source"===e){let i=t.get(s.input);null==i&&(i=n,t.set(s.input,n),n++),r[e]={end:s.end,inputId:i,start:s.start}}else r[e]=s}return s&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=n){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let s={node:this};for(let e in r)s[e]=r[e];return e.warn(t,s)}get proxyOf(){return this}}return I=i,i.default=i,I}function rS(){if(L)return N;L=1;let e=rv();class t extends e{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}return N=t,t.default=t,N}function rx(){if(_)return D;_=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=rf,{existsSync:r,readFileSync:s}=rf,{dirname:n,join:i}=rf;class o{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,s=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=n(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),ty?ty.from(t,"base64").toString():window.atob(t)}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),s=e.indexOf("*/",r);r>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,s)))}loadFile(e){if(this.root=n(e),r(e))return this.mapFile=e,s(e,"utf-8").toString().trim()}loadMap(r,s){if(!1===s)return!1;if(s)if("string"==typeof s)return s;else if("function"==typeof s){let e=s(r);if(e){let t=this.loadFile(e);
1if(!t)throw Error("Unable to load previous source map: "+e.toString());return t}}else if(s instanceof e)return t.fromSourceMap(s).toString();else if(s instanceof t)return s.toString();else if(this.isMap(s))return JSON.stringify(s);else throw Error("Unsupported previous source map format: "+s.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let e=this.annotation;return r&&(e=i(n(r),e)),this.loadFile(e)}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return D=o,o.default=o,D}function rC(){if(U)return F;U=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=rf,{fileURLToPath:r,pathToFileURL:s}=rf,{isAbsolute:n,resolve:i}=rf,{nanoid:o}=T?P:(T=1,P={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let s="",n=r;for(;n--;)s+=e[Math.random()*e.length|0];return s}}
1),a=rm(),l=rx(),u=Symbol("fromOffsetCache"),h=!!(e&&t),c=!!(i&&n);class p{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!c||/^\w+:\/\//.test(t.from)||n(t.from)?this.file=t.from:this.file=i(t.from)),c&&h){let e=new l(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+o(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let i,o,l;if(t&&"object"==typeof t){let e=t,s=r;if("number"==typeof e.offset){let s=this.fromOffset(e.offset);t=s.line,r=s.col}else t=e.line,r=e.column;if("number"==typeof s.offset){let e=this.fromOffset(s.offset);o=e.line,l=e.col}else o=s.line,l=s.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let u=this.origin(t,r,o,l);return(i=u?new a(e,void 0===u.endLine?u.line:{column:u.column,line:u.line},void 0===u.endLine?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,n.plugin):new a(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:l,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:l,endLine:o,line:t,source:this.css},this.file&&(s&&(i.input.url=s(this.file).toString()),i.input.file=this.file),i}fromOffset(e){let t,r;if(this[u])r=this[u];else{let e=this.css.split("\n");r=Array(e.length);let t=0;for(let s=0,n=e.length;s<n;s++)r[s]=t,t+=e[s].length+1;this[u]=r}t=r[r.length-1];let s=0;if(e>=t)s=r.length-1;else{let t,n=r.length-2;for(;s<n;)if(e<r[t=s+(n-s>>1)])n=t-1;else if(e>=r[t+1])s=t+1;else{s=t;break}}return{col:e-r[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:i(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,i,o){let a,l;if(!this.map)return!1;let u=this.map.consumer(),h=u.originalPositionFor({column:t,line:e});if(!h.source)return!1;"number"==typeof i&&(a=u.originalPositionFor({column:o,line:i})),l=n(h.source)?s(h.source):new URL(h.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let c={column:h.column,endColumn:a&&a.column,endLine:a&&a.line,line:h.line,url:l.toString()};if("file:"===l.protocol)if(r)c.file=r(l);else throw Error("file: protocol is not available in this PostCSS build");let p=u.sourceContentFor(h.source);return p&&(c.source=p),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}return F=p,p.default=p,rf&&rf.registerInput&&rf.registerInput(p),F}function rk(){if(z)return j;z=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=rf,{dirname:r,relative:s,resolve:n,sep:i}=rf,{pathToFileURL:o}=rf,a=rC(),l=!!(e&&t),u=!!(r&&n&&s&&i);class h{constructor(e,t,r,s){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let t of this.previous()){let s,n=this.toUrl(this.path(t.file)),i=t.root||r(t.file);!1===this.mapOpts.sourcesContent?(s=new e(t.text)).sourcesContent&&(s.sourcesContent=null):s=t.consumer(),this.map.applySourceMap(s,n,this.toUrl(this.path(i)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),u&&l&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=t.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]}generateString(){let e,r;this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let s=1,n=1,i="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(t,a,l)=>{if(this.css+=t,a&&"end"!==l&&(o.generated.line=s,o.generated.column=n-1,a.source&&a.source.start?(o.source=this.sourcePath(a),o.original.line=a.source.start.line,o.original.column=a.source.start.column-1):(o.source=i,o.original.line=1,o.original.column=0),this.map.addMapping(o)),(e=t.match(/\n/g))?(s+=e.length,r=t.lastIndexOf("\n"),n=t.length-r):n+=t.length,a&&"start"!==l){let e=a.parent||{raws:{}};(!("decl"===a.type||"atrule"===a.type&&!a.nodes)||a!==e.last||e.raws.semicolon)&&(a.source&&a.source.end?(o.source=this.sourcePath(a),o.original.line=a.source.end.line,o.original.column=a.source.end.column-1,o.generated.line=s,o.generated.column=n-2):(o.source=i,o.original.line=1,o.original.column=0,o.generated.line=s,o.generated.column=n-1),this.map.addMapping(o))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let i=this.opts.to?r(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(i=r(n(i,this.mapOpts.annotation)));let o=s(i,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new a(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let s=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return ty?ty.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;
1if(o){let t=o(e).toString();return this.memoizedFileURLs.set(e,t),t}throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===i&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}}return j=h}function rO(){if(W)return B;W=1;let e=rv();class t extends e{constructor(e){super(e),this.type="comment"}}return B=t,t.default=t,B}function rM(){let e,t,r,s;if(V)return $;V=1;let{isClean:n,my:i}=ry(),o=rS(),a=rO(),l=rv();class u extends l{append(...e){for(let t of e)for(let e of this.normalize(t,this.last))this.proxyOf.nodes.push(e);return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){let t,r;if(!this.proxyOf.nodes)return;let s=this.getIterator();for(;this.indexes[s]<this.proxyOf.nodes.length&&(t=this.indexes[s],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[s]+=1;return delete this.indexes[s],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e));if("every"===t||"some"===t)return r=>e[t]((e,...t)=>r(e.toProxy(),...t));if("root"===t)return()=>e.root().toProxy();else if("nodes"===t)return e.nodes.map(e=>e.toProxy());else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:(e,t,r)=>e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,s=this.index(e),n=this.normalize(t,this.proxyOf.nodes[s]).reverse();for(let t of(s=this.index(e),n))this.proxyOf.nodes.splice(s+1,0,t);for(let e in this.indexes)s<(r=this.indexes[e])&&(this.indexes[e]=r+n.length);return this.markDirty(),this}insertBefore(e,t){let r,s=this.index(e),n=0===s&&"prepend",i=this.normalize(t,this.proxyOf.nodes[s],n).reverse();for(let t of(s=this.index(e),i))this.proxyOf.nodes.splice(s,0,t);for(let e in this.indexes)s<=(r=this.indexes[e])&&(this.indexes[e]=r+i.length);return this.markDirty(),this}normalize(s,l){if("string"==typeof s)s=function e(t){return t.map(t=>(t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t))}(e(s).nodes);else if(void 0===s)s=[];else if(Array.isArray(s))for(let e of s=s.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if("root"===s.type&&"document"!==this.type)for(let e of s=s.nodes.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if(s.type)s=[s];else if(s.prop){if(void 0===s.value)throw Error("Value field is missed in node creation");"string"!=typeof s.value&&(s.value=String(s.value)),s=[new o(s)]}else if(s.selector)s=[new t(s)];else if(s.name)s=[new r(s)];else if(s.text)s=[new a(s)];else throw Error("Unknown node type in node creation");return s.map(e=>(e[i]||u.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[n]&&function e(t){if(t[n]=!1,t.proxyOf.nodes)for(let r of t.proxyOf.nodes)e(r)}(e),void 0===e.raws.before&&l&&void 0!==l.raws.before&&(e.raws.before=l.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e))}prepend(...e){for(let t of e=e.reverse()){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;for(let r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||(!t.fast||s.value.includes(t.fast))&&(s.value=s.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let s;try{s=e(t,r)}catch(e){throw t.addToError(e)}return!1!==s&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if("atrule"===r.type&&e.test(r.name))return t(r,s)}):this.walk((r,s)=>{if("atrule"===r.type&&r.name===e)return t(r,s)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if("decl"===r.type&&e.test(r.prop))return t(r,s)}):this.walk((r,s)=>{if("decl"===r.type&&r.prop===e)return t(r,s)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if("rule"===r.type&&e.test(r.selector))return t(r,s)}):this.walk((r,s)=>{if("rule"===r.type&&r.selector===e)return t(r,s)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}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 u.registerParse=t=>{e=t},u.registerRule=e=>{t=e},u.registerAtRule=e=>{r=e},u.registerRoot=e=>{s=e},$=u,u.default=u,u.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,r.prototype):"rule"===e.type?Object.setPrototypeOf(e,t.prototype):"decl"===e.type?Object.setPrototypeOf(e,o.prototype):"comment"===e.type?Object.setPrototypeOf(e,a.prototype):"root"===e.type&&Object.setPrototypeOf(e,s.prototype),e[i]=!0,e.nodes&&e.nodes.forEac
1h(e=>{u.rebuild(e)})},$}function rE(){let e,t;if(q)return H;q=1;let r=rM();class s extends r{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(r={}){return new e(new t,this,r).stringify()}}return s.registerLazyResult=t=>{e=t},s.registerProcessor=e=>{t=e},H=s,s.default=s,H}function rR(){if(X)return G;X=1;let e={};return G=function(t){!e[t]&&(e[t]=!0,"u">typeof console&&console.warn&&console.warn(t))}}function rI(){if(K)return J;K=1;class e{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}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 J=e,e.default=e,J}function rA(){if(Z)return Y;Z=1;let e=rI();class t{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,r={}){!r.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let s=new e(t,r);return this.messages.push(s),s}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}}return Y=t,t.default=t,Y}function rN(){if(er)return et;er=1;let e=rM();class t extends e{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}return et=t,t.default=t,e.registerAtRule(t),et}function rL(){let e,t;if(en)return es;en=1;let r=rM();class s extends r{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let s=super.normalize(e);if(t){if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of s)e.raws.before=t.raws.before}return s}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(r={}){return new e(new t,this,r).stringify()}}return s.registerLazyResult=t=>{e=t},s.registerProcessor=e=>{t=e},es=s,s.default=s,r.registerRoot(s),es}function rP(){if(eo)return ei;eo=1;let e={comma:t=>e.split(t,[","],!0),space:t=>e.split(t,[" ","\n"," "]),split(e,t,r){let s=[],n="",i=!1,o=0,a=!1,l="",u=!1;for(let r of e)u?u=!1:"\\"===r?u=!0:a?r===l&&(a=!1):'"'===r||"'"===r?(a=!0,l=r):"("===r?o+=1:")"===r?o>0&&(o-=1):0===o&&t.includes(r)&&(i=!0),i?(""!==n&&s.push(n.trim()),n="",i=!1):n+=r;return(r||""!==n)&&s.push(n.trim()),s}};return ei=e,e.default=e,ei}function rT(){if(el)return ea;el=1;let e=rM(),t=rP();class r extends e{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}return ea=r,r.default=r,e.registerRule(r),ea}function rD(){if(ep)return ec;ep=1;let e=rM(),t=function(){if(eh)return eu;eh=1;let e=rS(),t=function(){if(ee)return Q;ee=1;let e=/[\t\n\f\r "#'()/;[\\\]{}]/g,t=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,r=/.[\r\n"'(/\\]/,s=/[\da-f]/i;return Q=function(n,i={}){let o,a,l,u,h,c,p,d,f,m,g=n.css.valueOf(),y=i.ignoreErrors,w=g.length,b=0,v=[],S=[];function x(e){throw n.error("Unclosed "+e,b)}return{back:function(e){S.push(e)},endOfFile:function(){return 0===S.length&&b>=w},nextToken:function(n){if(S.length)return S.pop();if(b>=w)return;let i=!!n&&n.ignoreUnclosed;switch(o=g.charCodeAt(b)){case 10:case 32:case 9:case 13:case 12:a=b;do a+=1,o=g.charCodeAt(a);while(32===o||10===o||9===o||13===o||12===o);m=["space",g.slice(b,a)],b=a-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(o);m=[e,e,b];break}case 40:if(d=v.length?v.pop()[1]:"",f=g.charCodeAt(b+1),"url"===d&&39!==f&&34!==f&&32!==f&&10!==f&&9!==f&&12!==f&&13!==f){a=b;do{if(c=!1,-1===(a=g.indexOf(")",a+1)))if(y||i){a=b;break}else x("bracket");for(p=a;92===g.charCodeAt(p-1);)p-=1,c=!c}while(c);m=["brackets",g.slice(b,a+1),b,a],b=a}else a=g.indexOf(")",b+1),u=g.slice(b,a+1),-1===a||r.test(u)?m=["(","(",b]:(m=["brackets",u,b,a],b=a);break;case 39:case 34:l=39===o?"'":'"',a=b;do{if(c=!1,-1===(a=g.indexOf(l,a+1)))if(y||i){a=b+1;break}else x("string");for(p=a;92===g.charCodeAt(p-1);)p-=1,c=!c}while(c);m=["string",g.slice(b,a+1),b,a],b=a;break;case 64:e.lastIndex=b+1,e.test(g),a=0===e.lastIndex?g.length-1:e.lastIndex-2,m=["at-word",g.slice(b,a+1),b,a],b=a;break;case 92:for(a=b,h=!0;92===g.charCodeAt(a+1);)a+=1,h=!h;if(o=g.charCodeAt(a+1),h&&47!==o&&32!==o&&10!==o&&9!==o&&13!==o&&12!==o&&(a+=1,s.test(g.charAt(a)))){for(;s.test(g.charAt(a+1));)a+=1;32===g.charCodeAt(a+1)&&(a+=1)}m=["word",g.slice(b,a+1),b,a],b=a;break;default:47===o&&42===g.charCodeAt(b+1)?(0===(a=g.indexOf("*/",b+2)+1)&&(y||i?a=g.length:x("comment")),m=["comment",g.slice(b,a+1),b,a]):(t.lastIndex=b+1,t.test(g),a=0===t.lastIndex?g.length-1:t.lastIndex-2,m=["word",g.slice(b,a+1),b,a],v.push(m)),b=a}return b++,m},position:function(){return b}}}}(),r=rO(),s=rN(),n=rL(),i=rT(),o={empty:!0,space:!0};class a{constructor(e){this.input=e,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,n,i=new s;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let o=!1,a=!1,l=[],u=[];for(;!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&u.length>0?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length)if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if("{"===t){a=!0;break}else if("}"===t){if(l.length>0){for(n=l.length-1,r=l[n];r&&"space"===r[0];)r=l[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(i.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(i,"params",l),o&&(e=l[l.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),a&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let t,r=this.colon(e);if(!1===r)return;let s=0;for(let n=r-1;n>
1=0&&("space"===(t=e[n])[0]||2!==(s+=1));n--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}colon(e){let t,r,s=0;for(let[n,i]of e.entries()){if("("===(t=i[0])&&(s+=1),")"===t&&(s-=1),0===s&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return n;else this.doubleColon(i);r=i}return!1}comment(e){let t=new r;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let s=e[1].slice(2,-2);if(/^\s*$/.test(s))t.text="",t.raws.left=s,t.raws.right="";else{let e=s.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(t,r){let s,n,i=new e;this.init(i,t[0][2]);let o=t[t.length-1];for(";"===o[0]&&(this.semicolon=!0,t.pop()),i.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],s=r[3]||r[2];if(s)return s}}(t)),i.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),i.raws.before+=t.shift()[1];for(i.source.start=this.getPosition(t[0][2]),i.prop="";t.length;){let e=t[0][0];if(":"===e||"space"===e||"comment"===e)break;i.prop+=t.shift()[1]}for(i.raws.between="";t.length;){if(":"===(s=t.shift())[0]){i.raws.between+=s[1];break}"word"===s[0]&&/\w/.test(s[1])&&this.unknownWord([s]),i.raws.between+=s[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let a=[];for(;t.length&&("space"===(n=t[0][0])||"comment"===n);)a.push(t.shift());this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if("!important"===(s=t[e])[1].toLowerCase()){i.important=!0;let r=this.stringFrom(t,e);" !important"!==(r=this.spacesFromEnd(t)+r)&&(i.raws.important=r);break}if("important"===s[1].toLowerCase()){let r=t.slice(0),s="";for(let t=e;t>0;t--){let e=r[t][0];if(0===s.trim().indexOf("!")&&"space"!==e)break;s=r.pop()[1]+s}0===s.trim().indexOf("!")&&(i.important=!0,i.raws.important=s,t=r)}if("space"!==s[0]&&"comment"!==s[0])break}t.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(i.raws.between+=a.map(e=>e[1]).join(""),a=[]),this.raw(i,"value",a.concat(t),r),i.value.includes(":")&&!r&&this.checkMissedSemicolon(t)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new i;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,s=!1,n=null,i=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)n||(n=l),i.push("("===r?")":"]");else if(o&&s&&"{"===r)n||(n=l),i.push("}");else if(0===i.length)if(";"===r)if(s)return void this.decl(a,o);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(s=!0);else r===i[i.length-1]&&(i.pop(),0===i.length&&(n=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(n),t&&s){if(!o)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,s){let n,i,a,l,u=r.length,h="",c=!0;for(let e=0;e<u;e+=1)"space"!==(i=(n=r[e])[0])||e!==u-1||s?"comment"===i?(l=r[e-1]?r[e-1][0]:"empty",a=r[e+1]?r[e+1][
10]:"empty",o[l]||o[a]||","===h.slice(-1)?c=!1:h+=n[1]):h+=n[1]:c=!1;if(!c){let s=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:s,value:h}}e[t]=h}rule(e){e.pop();let t=new i;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t="";for(;e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}stringFrom(e,t){let r="";for(let s=t;s<e.length;s++)r+=e[s][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}return eu=a}(),r=rC();function s(e,s){let n=new t(new r(e,s));try{n.parse()}catch(e){throw"CssSyntaxError"===e.name&&s&&s.from&&(/\.scss$/i.test(s.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(s.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(s.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return n.root}return ec=s,s.default=s,e.registerParse(s),ec}function r_(){if(ef)return ed;ef=1;let{isClean:e,my:t}=ry(),r=rk(),s=rb(),n=rM(),i=rE(),o=rR(),a=rA(),l=rD(),u=rL(),h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},c={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},p={Once:!0,postcssPlugin:!0,prepare:!0};function d(e){return"object"==typeof e&&"function"==typeof e.then}function f(e){let t=!1,r=h[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function m(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:f(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function g(t){return t[e]=!1,t.nodes&&t.nodes.forEach(e=>g(e)),t}let y={};class w{constructor(e,r,s){let i;if(this.stringified=!1,this.processed=!1,"object"==typeof r&&null!==r&&("root"===r.type||"document"===r.type))i=g(r);else if(r instanceof w||r instanceof a)i=g(r.root),r.map&&(void 0===s.map&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=r.map);else{let e=l;s.syntax&&(e=s.syntax.parse),s.parser&&(e=s.parser),e.parse&&(e=e.parse);try{i=e(r,s)}catch(e){this.processed=!0,this.error=e}i&&!i[t]&&n.rebuild(i)}this.result=new a(e,i,s),this.helpers={...y,postcss:y,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion){let e=r.postcssPlugin,t=r.postcssVersion,s=this.result.processor.version,n=t.split("."),i=s.split(".");(n[0]!==i[0]||parseInt(n[1])>parseInt(i[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+s+", but "+e+" uses "+t+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!c[r]&&/^[A-Z]/.test(r))throw Error(`Unknown event ${r} in ${t.postcssPlugin}
1. Try to update PostCSS (${this.processor.version} now).`);if(!p[r])if("object"==typeof t[r])for(let s in t[r])e(t,"*"===s?r:r+"-"+s.toLowerCase(),t[r][s]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(d(r))try{await r}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[e];){t[e]=!0;let r=[m(t)];for(;r.length>0;){let e=this.visitTick(r);if(d(e))try{await e}catch(t){let e=r[r.length-1].node;throw this.handleError(t,e)}}}if(this.listeners.OnceExit)for(let[e,r]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if("document"===t.type){let e=t.nodes.map(e=>r(e,this.helpers));await Promise.all(e)}else await r(t,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));if(d(t[0]))return Promise.all(t);return t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=s;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new r(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(d(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[e];)t[e]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(e,t){return"from"in this.opts||o("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,s]of e){let e;this.result.lastPlugin=r;try{e=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(d(e))throw this.getAsyncError()}}visitTick(t){let r=t[t.length-1],{node:s,visitors:n}=r;if("root"!==s.type&&"document"!==s.type&&!s.parent)return void t.pop();if(n.length>0&&r.visitorIndex<n.length){let[e,t]=n[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===n.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=e;try{return t(s.toProxy(),this.helpers)}catch(e){throw this.handleError(e,s)}}if(0!==r.iterator){let n,i=r.iterator;for(;n=s.nodes[s.indexes[i]];)if(s.indexes[i]+=1,!n[e]){n[e]=!0,t.push(m(n));return}r.iterator=0,delete s.indexes[i]}let i=r.events;for(;r.eventIndex<i.length;){let t=i[r.eventIndex];if(r.eventIndex+=1,0===t){s.nodes&&s.nodes.length&&(s[e]=!0,r.iterator=s.getIterator());return}if(this.listeners[t]){r.visitors=this.listeners[t];return}}t.pop()}walkSync(t){for(let r of(t[e]=!0,f(t)))if(0===r)t.nodes&&t.each(t=>{t[e]||this.walkSync(t)});else{let e=this.listeners[r];if(e&&this.visitSync(e,t.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 w.registerPostcss=e=>{y=e},ed=w,w.default=w,u.registerLazyResult(w),i.registerLazyResult(w),ed}let rF=(h=function(){if(ex)return eS;ex=1;let e=rm(),t=rS(),r=r_(),s=rM(),n=function(){if(ew)return ey;ew=1;let e=function(){if(eg)return em;eg=1;
1let e=rk(),t=rb(),r=rR(),s=rD(),n=rA();class i{constructor(r,s,i){let o;s=s.toString(),this.stringified=!1,this._processor=r,this._css=s,this._opts=i,this._map=void 0,this.result=new n(this._processor,o,this._opts),this.result.css=s;let a=this;Object.defineProperty(this.result,"root",{get:()=>a.root});let l=new e(t,o,this._opts,s);if(l.isMap()){let[e,t]=l.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return"from"in this._opts||r("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this.async().then(e,t)}toString(){return this._css}warnings(){return[]}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(){let e;if(this._root)return this._root;try{e=s(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}get[Symbol.toStringTag](){return"NoWorkResult"}}return em=i,i.default=i,em}(),t=r_(),r=rE(),s=rL();class n{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else if("object"==typeof r&&(r.parse||r.stringify))throw Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.");else throw Error(r+" is not a PostCSS plugin");return t}process(r,s={}){return this.plugins.length||s.parser||s.stringifier||s.syntax?new t(this,r,s):new e(this,r,s)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}return ey=n,n.default=n,s.registerProcessor(n),r.registerProcessor(n),ey}(),i=rb(),o=function(){if(ev)return eb;ev=1;let e=rS(),t=rx(),r=rO(),s=rN(),n=rC(),i=rL(),o=rT();function a(l,u){if(Array.isArray(l))return l.map(e=>a(e));let{inputs:h,...c}=l;if(h)for(let e of(u=[],h)){let r={...e,__proto__:n.prototype};r.map&&(r.map={...r.map,__proto__:t.prototype}),u.push(r)}if(c.nodes&&(c.nodes=l.nodes.map(e=>a(e,u))),c.source){let{inputId:e,...t}=c.source;c.source=t,null!=e&&(c.source.input=u[e])}if("root"===c.type)return new i(c);if("decl"===c.type)return new e(c);if("rule"===c.type)return new o(c);if("comment"===c.type)return new r(c);if("atrule"===c.type)return new s(c);else throw Error("Unknown node type: "+l.type)}return eb=a,a.default=a,eb}(),a=rE(),l=rI(),u=rO(),h=rN(),c=rA(),p=rC(),d=rD(),f=rP(),m=rT(),g=rL(),y=rv();function w(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new n(e)}return w.plugin=function(e,t){let r,s=!1;function i(...r){console&&console.warn&&!s&&(s=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),tw.env.LANG&&tw.env.LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));let o=t(...r);return o.postcssPlugin=e,o.postcssVersion=new n().version,o}return Object.defineProperty(i,"postcss",{get:()=>(r||(r=i()),r)}),i.process=function(e,t,r){return w([i(r)]).process(e,t)},i},w.stringify=i,w.parse=d,w.fromJSON=o,w.list=f,w.comment=e=>new u(e),w.atRule=e=>new h(e),w.decl=e=>new t(e),w.rule=e=>new m(e),w.root=e=>new g(e),w.document=e=>new a(e),w.CssSyntaxError=e,w.Declaration=t,w.Container=s,w.Processor=n,w.Document=a,w.Comment=u,w.Warning=l,w.AtRule=h,w.Result=c,w.Input=p,w.Rule=m,w.Root=g,w.Node=y,r.registerPostcss(w),eS=w,w.default=w,eS}())&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h;rF.stringify,rF.fromJSON,rF.plugin,rF.parse,rF.list,rF.document,rF.comment,rF.atRule,rF.rule,rF.decl,rF.root,rF.CssSyntaxError,rF.Declaration,rF.Container,rF.Processor,rF.Document,rF.Comment,rF.Warning,rF.AtRule,rF.Result,rF.Input,rF.Rule,rF.Root,rF.Node;var rU=Object.defineProperty,rj=(e,t,r)=>{let s;return(s="symbol"!=typeof t?t+"":t)in e?rU(e,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[s]=r};Date.now().toString();var rz={exports:{}};let rB=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};
1return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));function rW(){if(eO)return ek;eO=1;let e=function(){if(eC)return rz.exports;eC=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return rz.exports=t(),rz.exports.createColors=t,rz.exports}();class t extends Error{constructor(e,r,s,n,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),n&&(this.source=n),o&&(this.plugin=o),void 0!==r&&void 0!==s&&("number"==typeof r?(this.line=r,this.column=s):(this.line=r.line,this.column=r.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){let r,s;if(!this.source)return"";let n=this.source;null==t&&(t=e.isColorSupported),rB&&t&&(n=rB(n));let i=n.split(/\r?\n/),o=Math.max(this.line-3,0),a=Math.min(this.line+2,i.length),l=String(a).length;if(t){let{bold:t,gray:n,red:i}=e.createColors(!0);r=e=>t(i(e)),s=e=>n(e)}else r=s=e=>e;return i.slice(o,a).map((e,t)=>{let n=o+1+t,i=" "+(" "+n).slice(-l)+" | ";if(n===this.line){let t=s(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+s(i)+e+"\n "+t+r("^")}return" "+s(i)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}return ek=t,t.default=t,ek}var r$={};function rV(){return eM||(eM=1,r$.isClean=Symbol("isClean"),r$.my=Symbol("my")),r$}function rH(){if(eR)return eE;eR=1;let e={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class t{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:s&&(r+=" "),e.nodes)this.block(e,r+s);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+s+n,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let s=e.parent,n=0;for(;s&&"root"!==s.type;)n+=1,s=s.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<n;e++)r+=t}return r}block(e,t){let r,s=this.raw(e,"between","beforeOpen");this.builder(t+s+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let n=e.nodes[s],i=this.raw(n,"before");i&&this.builder(i),this.stringify(n,t!==s||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),s=e.prop+r+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)}document(e){this.body(e)}raw(t,r,s){let n;if(s||(s=r),r&&void 0!==(n=t.raws[r]))return n;let i=t.parent;if("before"===s&&(!i||"root"===i.type&&i.first===t||i&&"document"===i.type))return"";if(!i)return e[s];let o=t.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[s])return o.rawCache[s];if("before"===s||"after"===s)return this.beforeAfter(t,s);{var a;let e="raw"+((a=s)[0].toUpperCase()+a.slice(1));this[e]?n=this[e](o,t):o.walk(e=>{if(void 0!==(n=e.raws[r]))return!1})}return void 0===n&&(n=e[s]),o.rawCache[s]=n,n}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t}rawIndent(e){let t;return e.raws.indent?e.raws.indent:(e.walk(r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=(t=e[e.length-1]).replace(/\S/g,""),!1}}),t)}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t}rawValue(e,t){let r=e[t],s=e.raws[t];return s&&s.value===r?s.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}return eE=t,t.default=t,eE}function rq(){if(eA)return eI;eA=1;let e=rH();function t(t,r){new e(r).stringify(t)}return eI=t,t.default=t,eI}function rG(){if(eL)return eN;eL=1;let{isClean:e,my:t}=rV(),r=rW(),s=rH(),n=rq();class i{constructor(r={}){for(let s in this.raws={},this[e]=!1,this[t]=!0,r)if("nodes"===s)for(let e of(this.nodes=[],r[s]))"function"==typeof e.clone?this.append(e.clone()):this.append(e);else this[s]=r[s]}
1addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=function e(t,r){let s=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||"proxyCache"===n)continue;let i=t[n],o=typeof i;"parent"===n&&"object"===o?r&&(s[n]=r):"source"===n?s[n]=i:Array.isArray(i)?s[n]=i.map(t=>e(t,s)):("object"===o&&null!==i&&(i=e(i)),s[n]=i)}return s}(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:r.column,line:r.line},t)}return new r(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}
1markDirty(){if(this[e]){this[e]=!1;let t=this;for(;t=t.parent;)t[e]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let s=(t=this.toString()).indexOf(e.word);-1!==s&&(r=this.positionInside(s,t))}return r}positionInside(e,t){let r=t||this.toString(),s=this.source.start.column,n=this.source.start.line;for(let t=0;t<e;t++)"\n"===r[t]?(s=1,n+=1):s+=1;return{column:s,line:n}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let s=this.toString(),n=s.indexOf(e.word);-1!==n&&(t=this.positionInside(n,s),r=this.positionInside(n+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new s().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let s of e)s===this?r=!0:r?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);r||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let r={},s=null==t;t=t||new Map;let n=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||"parent"===e||"proxyCache"===e)continue;let s=this[e];if(Array.isArray(s))r[e]=s.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof s&&s.toJSON)r[e]=s.toJSON(null,t);else if("source"===e){let i=t.get(s.input);null==i&&(i=n,t.set(s.input,n),n++),r[e]={end:s.end,inputId:i,start:s.start}}else r[e]=s}return s&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=n){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let s={node:this};for(let e in r)s[e]=r[e];return e.warn(t,s)}get proxyOf(){return this}}return eN=i,i.default=i,eN}function rX(){if(eT)return eP;eT=1;let e=rG();class t extends e{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}return eP=t,t.default=t,eP}function rJ(){if(eU)return eF;eU=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=rB,{existsSync:r,readFileSync:s}=rB,{dirname:n,join:i}=rB;class o{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,s=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=n(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),ty?ty.from(t,"base64").toString():window.atob(t)}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),s=e.indexOf("*/",r);r>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,s)))}loadFile(e){if(this.root=n(e),r(e))return this.mapFile=e,s(e,"utf-8").toString().trim()}loadMap(r,s){if(!1===s)return!1;if(s)if("string"==typeof s)return s;else if("function"==typeof s){let e=s(r);if(e){let t=this.loadFile(e);
1if(!t)throw Error("Unable to load previous source map: "+e.toString());return t}}else if(s instanceof e)return t.fromSourceMap(s).toString();else if(s instanceof t)return s.toString();else if(this.isMap(s))return JSON.stringify(s);else throw Error("Unsupported previous source map format: "+s.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let e=this.annotation;return r&&(e=i(n(r),e)),this.loadFile(e)}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return eF=o,o.default=o,eF}function rK(){if(ez)return ej;ez=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=rB,{fileURLToPath:r,pathToFileURL:s}=rB,{isAbsolute:n,resolve:i}=rB,{nanoid:o}=e_?eD:(e_=1,eD={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let s="",n=r;for(;n--;)s+=e[Math.random()*e.length|0];return s}}
1),a=rW(),l=rJ(),u=Symbol("fromOffsetCache"),h=!!(e&&t),c=!!(i&&n);class p{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!c||/^\w+:\/\//.test(t.from)||n(t.from)?this.file=t.from:this.file=i(t.from)),c&&h){let e=new l(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+o(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let i,o,l;if(t&&"object"==typeof t){let e=t,s=r;if("number"==typeof e.offset){let s=this.fromOffset(e.offset);t=s.line,r=s.col}else t=e.line,r=e.column;if("number"==typeof s.offset){let e=this.fromOffset(s.offset);o=e.line,l=e.col}else o=s.line,l=s.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let u=this.origin(t,r,o,l);return(i=u?new a(e,void 0===u.endLine?u.line:{column:u.column,line:u.line},void 0===u.endLine?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,n.plugin):new a(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:l,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:l,endLine:o,line:t,source:this.css},this.file&&(s&&(i.input.url=s(this.file).toString()),i.input.file=this.file),i}fromOffset(e){let t,r;if(this[u])r=this[u];else{let e=this.css.split("\n");r=Array(e.length);let t=0;for(let s=0,n=e.length;s<n;s++)r[s]=t,t+=e[s].length+1;this[u]=r}t=r[r.length-1];let s=0;if(e>=t)s=r.length-1;else{let t,n=r.length-2;for(;s<n;)if(e<r[t=s+(n-s>>1)])n=t-1;else if(e>=r[t+1])s=t+1;else{s=t;break}}return{col:e-r[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:i(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,i,o){let a,l;if(!this.map)return!1;let u=this.map.consumer(),h=u.originalPositionFor({column:t,line:e});if(!h.source)return!1;"number"==typeof i&&(a=u.originalPositionFor({column:o,line:i})),l=n(h.source)?s(h.source):new URL(h.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let c={column:h.column,endColumn:a&&a.column,endLine:a&&a.line,line:h.line,url:l.toString()};if("file:"===l.protocol)if(r)c.file=r(l);else throw Error("file: protocol is not available in this PostCSS build");let p=u.sourceContentFor(h.source);return p&&(c.source=p),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}return ej=p,p.default=p,rB&&rB.registerInput&&rB.registerInput(p),ej}function rY(){if(eW)return eB;eW=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=rB,{dirname:r,relative:s,resolve:n,sep:i}=rB,{pathToFileURL:o}=rB,a=rK(),l=!!(e&&t),u=!!(r&&n&&s&&i);class h{constructor(e,t,r,s){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let t of this.previous()){let s,n=this.toUrl(this.path(t.file)),i=t.root||r(t.file);!1===this.mapOpts.sourcesContent?(s=new e(t.text)).sourcesContent&&(s.sourcesContent=null):s=t.consumer(),this.map.applySourceMap(s,n,this.toUrl(this.path(i)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),u&&l&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=t.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]}generateString(){let e,r;this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let s=1,n=1,i="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(t,a,l)=>{if(this.css+=t,a&&"end"!==l&&(o.generated.line=s,o.generated.column=n-1,a.source&&a.source.start?(o.source=this.sourcePath(a),o.original.line=a.source.start.line,o.original.column=a.source.start.column-1):(o.source=i,o.original.line=1,o.original.column=0),this.map.addMapping(o)),(e=t.match(/\n/g))?(s+=e.length,r=t.lastIndexOf("\n"),n=t.length-r):n+=t.length,a&&"start"!==l){let e=a.parent||{raws:{}};(!("decl"===a.type||"atrule"===a.type&&!a.nodes)||a!==e.last||e.raws.semicolon)&&(a.source&&a.source.end?(o.source=this.sourcePath(a),o.original.line=a.source.end.line,o.original.column=a.source.end.column-1,o.generated.line=s,o.generated.column=n-2):(o.source=i,o.original.line=1,o.original.column=0,o.generated.line=s,o.generated.column=n-1),this.map.addMapping(o))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let i=this.opts.to?r(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(i=r(n(i,this.mapOpts.annotation)));let o=s(i,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new a(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let s=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return ty?ty.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;
1if(o){let t=o(e).toString();return this.memoizedFileURLs.set(e,t),t}throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===i&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}}return eB=h}function rZ(){if(eV)return e$;eV=1;let e=rG();class t extends e{constructor(e){super(e),this.type="comment"}}return e$=t,t.default=t,e$}function rQ(){let e,t,r,s;if(eq)return eH;eq=1;let{isClean:n,my:i}=rV(),o=rX(),a=rZ(),l=rG();class u extends l{append(...e){for(let t of e)for(let e of this.normalize(t,this.last))this.proxyOf.nodes.push(e);return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){let t,r;if(!this.proxyOf.nodes)return;let s=this.getIterator();for(;this.indexes[s]<this.proxyOf.nodes.length&&(t=this.indexes[s],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[s]+=1;return delete this.indexes[s],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e));if("every"===t||"some"===t)return r=>e[t]((e,...t)=>r(e.toProxy(),...t));if("root"===t)return()=>e.root().toProxy();else if("nodes"===t)return e.nodes.map(e=>e.toProxy());else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:(e,t,r)=>e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,s=this.index(e),n=this.normalize(t,this.proxyOf.nodes[s]).reverse();for(let t of(s=this.index(e),n))this.proxyOf.nodes.splice(s+1,0,t);for(let e in this.indexes)s<(r=this.indexes[e])&&(this.indexes[e]=r+n.length);return this.markDirty(),this}insertBefore(e,t){let r,s=this.index(e),n=0===s&&"prepend",i=this.normalize(t,this.proxyOf.nodes[s],n).reverse();for(let t of(s=this.index(e),i))this.proxyOf.nodes.splice(s,0,t);for(let e in this.indexes)s<=(r=this.indexes[e])&&(this.indexes[e]=r+i.length);return this.markDirty(),this}normalize(s,l){if("string"==typeof s)s=function e(t){return t.map(t=>(t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t))}(e(s).nodes);else if(void 0===s)s=[];else if(Array.isArray(s))for(let e of s=s.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if("root"===s.type&&"document"!==this.type)for(let e of s=s.nodes.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if(s.type)s=[s];else if(s.prop){if(void 0===s.value)throw Error("Value field is missed in node creation");"string"!=typeof s.value&&(s.value=String(s.value)),s=[new o(s)]}else if(s.selector)s=[new t(s)];else if(s.name)s=[new r(s)];else if(s.text)s=[new a(s)];else throw Error("Unknown node type in node creation");return s.map(e=>(e[i]||u.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[n]&&function e(t){if(t[n]=!1,t.proxyOf.nodes)for(let r of t.proxyOf.nodes)e(r)}(e),void 0===e.raws.before&&l&&void 0!==l.raws.before&&(e.raws.before=l.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e))}prepend(...e){for(let t of e=e.reverse()){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;for(let r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||(!t.fast||s.value.includes(t.fast))&&(s.value=s.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let s;try{s=e(t,r)}catch(e){throw t.addToError(e)}return!1!==s&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if("atrule"===r.type&&e.test(r.name))return t(r,s)}):this.walk((r,s)=>{if("atrule"===r.type&&r.name===e)return t(r,s)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if("decl"===r.type&&e.test(r.prop))return t(r,s)}):this.walk((r,s)=>{if("decl"===r.type&&r.prop===e)return t(r,s)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if("rule"===r.type&&e.test(r.selector))return t(r,s)}):this.walk((r,s)=>{if("rule"===r.type&&r.selector===e)return t(r,s)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}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 u.registerParse=t=>{e=t},u.registerRule=e=>{t=e},u.registerAtRule=e=>{r=e},u.registerRoot=e=>{s=e},eH=u,u.default=u,u.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,r.prototype):"rule"===e.type?Object.setPrototypeOf(e,t.prototype):"decl"===e.type?Object.setPrototypeOf(e,o.prototype):"comment"===e.type?Object.setPrototypeOf(e,a.prototype):"root"===e.type&&Object.setPrototypeOf(e,s.prototype),e[i]=!0,e.nodes&&e.nodes.forEac
1h(e=>{u.rebuild(e)})},eH}function r0(){let e,t;if(eX)return eG;eX=1;let r=rQ();class s extends r{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(r={}){return new e(new t,this,r).stringify()}}return s.registerLazyResult=t=>{e=t},s.registerProcessor=e=>{t=e},eG=s,s.default=s,eG}function r1(){if(eK)return eJ;eK=1;let e={};return eJ=function(t){!e[t]&&(e[t]=!0,"u">typeof console&&console.warn&&console.warn(t))}}function r2(){if(eZ)return eY;eZ=1;class e{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}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 eY=e,e.default=e,eY}function r3(){if(e0)return eQ;e0=1;let e=r2();class t{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,r={}){!r.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let s=new e(t,r);return this.messages.push(s),s}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}}return eQ=t,t.default=t,eQ}function r4(){if(e4)return e3;e4=1;let e=rQ();class t extends e{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}return e3=t,t.default=t,e.registerAtRule(t),e3}function r6(){let e,t;if(e9)return e6;e9=1;let r=rQ();class s extends r{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let s=super.normalize(e);if(t){if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of s)e.raws.before=t.raws.before}return s}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(r={}){return new e(new t,this,r).stringify()}}return s.registerLazyResult=t=>{e=t},s.registerProcessor=e=>{t=e},e6=s,s.default=s,r.registerRoot(s),e6}function r9(){if(e5)return e8;e5=1;let e={comma:t=>e.split(t,[","],!0),space:t=>e.split(t,[" ","\n"," "]),split(e,t,r){let s=[],n="",i=!1,o=0,a=!1,l="",u=!1;for(let r of e)u?u=!1:"\\"===r?u=!0:a?r===l&&(a=!1):'"'===r||"'"===r?(a=!0,l=r):"("===r?o+=1:")"===r?o>0&&(o-=1):0===o&&t.includes(r)&&(i=!0),i?(""!==n&&s.push(n.trim()),n="",i=!1):n+=r;return(r||""!==n)&&s.push(n.trim()),s}};return e8=e,e.default=e,e8}function r8(){if(te)return e7;te=1;let e=rQ(),t=r9();class r extends e{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}return e7=r,r.default=r,e.registerRule(r),e7}function r5(){if(tn)return ts;tn=1;let e=rQ(),t=function(){if(tr)return tt;tr=1;let e=rX(),t=function(){if(e2)return e1;e2=1;let e=/[\t\n\f\r "#'()/;[\\\]{}]/g,t=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,r=/.[\r\n"'(/\\]/,s=/[\da-f]/i;return e1=function(n,i={}){let o,a,l,u,h,c,p,d,f,m,g=n.css.valueOf(),y=i.ignoreErrors,w=g.length,b=0,v=[],S=[];function x(e){throw n.error("Unclosed "+e,b)}return{back:function(e){S.push(e)},endOfFile:function(){return 0===S.length&&b>=w},nextToken:function(n){if(S.length)return S.pop();if(b>=w)return;let i=!!n&&n.ignoreUnclosed;switch(o=g.charCodeAt(b)){case 10:case 32:case 9:case 13:case 12:a=b;do a+=1,o=g.charCodeAt(a);while(32===o||10===o||9===o||13===o||12===o);m=["space",g.slice(b,a)],b=a-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(o);m=[e,e,b];break}case 40:if(d=v.length?v.pop()[1]:"",f=g.charCodeAt(b+1),"url"===d&&39!==f&&34!==f&&32!==f&&10!==f&&9!==f&&12!==f&&13!==f){a=b;do{if(c=!1,-1===(a=g.indexOf(")",a+1)))if(y||i){a=b;break}else x("bracket");for(p=a;92===g.charCodeAt(p-1);)p-=1,c=!c}while(c);m=["brackets",g.slice(b,a+1),b,a],b=a}else a=g.indexOf(")",b+1),u=g.slice(b,a+1),-1===a||r.test(u)?m=["(","(",b]:(m=["brackets",u,b,a],b=a);break;case 39:case 34:l=39===o?"'":'"',a=b;do{if(c=!1,-1===(a=g.indexOf(l,a+1)))if(y||i){a=b+1;break}else x("string");for(p=a;92===g.charCodeAt(p-1);)p-=1,c=!c}while(c);m=["string",g.slice(b,a+1),b,a],b=a;break;case 64:e.lastIndex=b+1,e.test(g),a=0===e.lastIndex?g.length-1:e.lastIndex-2,m=["at-word",g.slice(b,a+1),b,a],b=a;break;case 92:for(a=b,h=!0;92===g.charCodeAt(a+1);)a+=1,h=!h;if(o=g.charCodeAt(a+1),h&&47!==o&&32!==o&&10!==o&&9!==o&&13!==o&&12!==o&&(a+=1,s.test(g.charAt(a)))){for(;s.test(g.charAt(a+1));)a+=1;32===g.charCodeAt(a+1)&&(a+=1)}m=["word",g.slice(b,a+1),b,a],b=a;break;default:47===o&&42===g.charCodeAt(b+1)?(0===(a=g.indexOf("*/",b+2)+1)&&(y||i?a=g.length:x("comment")),m=["comment",g.slice(b,a+1),b,a]):(t.lastIndex=b+1,t.test(g),a=0===t.lastIndex?g.length-1:t.lastIndex-2,m=["word",g.slice(b,a+1),b,a],v.push(m)),b=a}return b++,m},position:function(){return b}}}}(),r=rZ(),s=r4(),n=r6(),i=r8(),o={empty:!0,space:!0};class a{constructor(e){this.input=e,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,n,i=new s;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let o=!1,a=!1,l=[],u=[];for(;!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&u.length>0?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length)if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if("{"===t){a=!0;break}else if("}"===t){if(l.length>0){for(n=l.length-1,r=l[n];r&&"space"===r[0];)r=l[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(i.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(i,"params",l),o&&(e=l[l.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),a&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let t,r=this.colon(e);if(!1===r)return;let s=0;for(let n=r-1;n>
1=0&&("space"===(t=e[n])[0]||2!==(s+=1));n--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}colon(e){let t,r,s=0;for(let[n,i]of e.entries()){if("("===(t=i[0])&&(s+=1),")"===t&&(s-=1),0===s&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return n;else this.doubleColon(i);r=i}return!1}comment(e){let t=new r;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let s=e[1].slice(2,-2);if(/^\s*$/.test(s))t.text="",t.raws.left=s,t.raws.right="";else{let e=s.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(t,r){let s,n,i=new e;this.init(i,t[0][2]);let o=t[t.length-1];for(";"===o[0]&&(this.semicolon=!0,t.pop()),i.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],s=r[3]||r[2];if(s)return s}}(t)),i.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),i.raws.before+=t.shift()[1];for(i.source.start=this.getPosition(t[0][2]),i.prop="";t.length;){let e=t[0][0];if(":"===e||"space"===e||"comment"===e)break;i.prop+=t.shift()[1]}for(i.raws.between="";t.length;){if(":"===(s=t.shift())[0]){i.raws.between+=s[1];break}"word"===s[0]&&/\w/.test(s[1])&&this.unknownWord([s]),i.raws.between+=s[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let a=[];for(;t.length&&("space"===(n=t[0][0])||"comment"===n);)a.push(t.shift());this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if("!important"===(s=t[e])[1].toLowerCase()){i.important=!0;let r=this.stringFrom(t,e);" !important"!==(r=this.spacesFromEnd(t)+r)&&(i.raws.important=r);break}if("important"===s[1].toLowerCase()){let r=t.slice(0),s="";for(let t=e;t>0;t--){let e=r[t][0];if(0===s.trim().indexOf("!")&&"space"!==e)break;s=r.pop()[1]+s}0===s.trim().indexOf("!")&&(i.important=!0,i.raws.important=s,t=r)}if("space"!==s[0]&&"comment"!==s[0])break}t.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(i.raws.between+=a.map(e=>e[1]).join(""),a=[]),this.raw(i,"value",a.concat(t),r),i.value.includes(":")&&!r&&this.checkMissedSemicolon(t)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new i;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,s=!1,n=null,i=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)n||(n=l),i.push("("===r?")":"]");else if(o&&s&&"{"===r)n||(n=l),i.push("}");else if(0===i.length)if(";"===r)if(s)return void this.decl(a,o);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(s=!0);else r===i[i.length-1]&&(i.pop(),0===i.length&&(n=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(n),t&&s){if(!o)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,s){let n,i,a,l,u=r.length,h="",c=!0;for(let e=0;e<u;e+=1)"space"!==(i=(n=r[e])[0])||e!==u-1||s?"comment"===i?(l=r[e-1]?r[e-1][0]:"empty",a=r[e+1]?r[e+1][
10]:"empty",o[l]||o[a]||","===h.slice(-1)?c=!1:h+=n[1]):h+=n[1]:c=!1;if(!c){let s=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:s,value:h}}e[t]=h}rule(e){e.pop();let t=new i;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t="";for(;e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}stringFrom(e,t){let r="";for(let s=t;s<e.length;s++)r+=e[s][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}return tt=a}(),r=rK();function s(e,s){let n=new t(new r(e,s));try{n.parse()}catch(e){throw"CssSyntaxError"===e.name&&s&&s.from&&(/\.scss$/i.test(s.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(s.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(s.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return n.root}return ts=s,s.default=s,e.registerParse(s),ts}function r7(){if(to)return ti;to=1;let{isClean:e,my:t}=rV(),r=rY(),s=rq(),n=rQ(),i=r0(),o=r1(),a=r3(),l=r5(),u=r6(),h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},c={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},p={Once:!0,postcssPlugin:!0,prepare:!0};function d(e){return"object"==typeof e&&"function"==typeof e.then}function f(e){let t=!1,r=h[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function m(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:f(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function g(t){return t[e]=!1,t.nodes&&t.nodes.forEach(e=>g(e)),t}let y={};class w{constructor(e,r,s){let i;if(this.stringified=!1,this.processed=!1,"object"==typeof r&&null!==r&&("root"===r.type||"document"===r.type))i=g(r);else if(r instanceof w||r instanceof a)i=g(r.root),r.map&&(void 0===s.map&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=r.map);else{let e=l;s.syntax&&(e=s.syntax.parse),s.parser&&(e=s.parser),e.parse&&(e=e.parse);try{i=e(r,s)}catch(e){this.processed=!0,this.error=e}i&&!i[t]&&n.rebuild(i)}this.result=new a(e,i,s),this.helpers={...y,postcss:y,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion){let e=r.postcssPlugin,t=r.postcssVersion,s=this.result.processor.version,n=t.split("."),i=s.split(".");(n[0]!==i[0]||parseInt(n[1])>parseInt(i[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+s+", but "+e+" uses "+t+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!c[r]&&/^[A-Z]/.test(r))throw Error(`Unknown event ${r} in ${t.postcssPlugin}
1. Try to update PostCSS (${this.processor.version} now).`);if(!p[r])if("object"==typeof t[r])for(let s in t[r])e(t,"*"===s?r:r+"-"+s.toLowerCase(),t[r][s]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(d(r))try{await r}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[e];){t[e]=!0;let r=[m(t)];for(;r.length>0;){let e=this.visitTick(r);if(d(e))try{await e}catch(t){let e=r[r.length-1].node;throw this.handleError(t,e)}}}if(this.listeners.OnceExit)for(let[e,r]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if("document"===t.type){let e=t.nodes.map(e=>r(e,this.helpers));await Promise.all(e)}else await r(t,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));if(d(t[0]))return Promise.all(t);return t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=s;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new r(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(d(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[e];)t[e]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(e,t){return"from"in this.opts||o("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,s]of e){let e;this.result.lastPlugin=r;try{e=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(d(e))throw this.getAsyncError()}}visitTick(t){let r=t[t.length-1],{node:s,visitors:n}=r;if("root"!==s.type&&"document"!==s.type&&!s.parent)return void t.pop();if(n.length>0&&r.visitorIndex<n.length){let[e,t]=n[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===n.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=e;try{return t(s.toProxy(),this.helpers)}catch(e){throw this.handleError(e,s)}}if(0!==r.iterator){let n,i=r.iterator;for(;n=s.nodes[s.indexes[i]];)if(s.indexes[i]+=1,!n[e]){n[e]=!0,t.push(m(n));return}r.iterator=0,delete s.indexes[i]}let i=r.events;for(;r.eventIndex<i.length;){let t=i[r.eventIndex];if(r.eventIndex+=1,0===t){s.nodes&&s.nodes.length&&(s[e]=!0,r.iterator=s.getIterator());return}if(this.listeners[t]){r.visitors=this.listeners[t];return}}t.pop()}walkSync(t){for(let r of(t[e]=!0,f(t)))if(0===r)t.nodes&&t.each(t=>{t[e]||this.walkSync(t)});else{let e=this.listeners[r];if(e&&this.visitSync(e,t.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 w.registerPostcss=e=>{y=e},ti=w,w.default=w,u.registerLazyResult(w),i.registerLazyResult(w),ti}let se=(c=function(){if(tf)return td;tf=1;let e=rW(),t=rX(),r=r7(),s=rQ(),n=function(){if(th)return tu;th=1;let e=function(){if(tl)return ta;tl=1;let e=rY(),t=rq(),r=r1(),s=r5(),n=r3();class i{constructor(r,s,i){let o;s=s.toString(),this.stringified=!1,this._processor=r,this._css=s,this._opts=i,this._map=void 0,this.result=new n(this._processor,o,this._opts),this.result.css=s;let a=this;Object.defineProperty(this.result,"root",{get:()=>a.root});let l=new e(t,o,this._opts,s);if(l.isMap()){let[e,t]=l.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else l.clearAnnotation(),this.result.css=l.css}
1async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return"from"in this._opts||r("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this.async().then(e,t)}toString(){return this._css}warnings(){return[]}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(){let e;if(this._root)return this._root;try{e=s(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}get[Symbol.toStringTag](){return"NoWorkResult"}}return ta=i,i.default=i,ta}(),t=r7(),r=r0(),s=r6();class n{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else if("object"==typeof r&&(r.parse||r.stringify))throw Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.");else throw Error(r+" is not a PostCSS plugin");return t}process(r,s={}){return this.plugins.length||s.parser||s.stringifier||s.syntax?new t(this,r,s):new e(this,r,s)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}return tu=n,n.default=n,s.registerProcessor(n),r.registerProcessor(n),tu}(),i=rq(),o=function(){if(tp)return tc;tp=1;let e=rX(),t=rJ(),r=rZ(),s=r4(),n=rK(),i=r6(),o=r8();function a(l,u){if(Array.isArray(l))return l.map(e=>a(e));let{inputs:h,...c}=l;if(h)for(let e of(u=[],h)){let r={...e,__proto__:n.prototype};r.map&&(r.map={...r.map,__proto__:t.prototype}),u.push(r)}if(c.nodes&&(c.nodes=l.nodes.map(e=>a(e,u))),c.source){let{inputId:e,...t}=c.source;c.source=t,null!=e&&(c.source.input=u[e])}if("root"===c.type)return new i(c);if("decl"===c.type)return new e(c);if("rule"===c.type)return new o(c);if("comment"===c.type)return new r(c);if("atrule"===c.type)return new s(c);else throw Error("Unknown node type: "+l.type)}return tc=a,a.default=a,tc}(),a=r0(),l=r2(),u=rZ(),h=r4(),c=r3(),p=rK(),d=r5(),f=r9(),m=r8(),g=r6(),y=rG();function w(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new n(e)}return w.plugin=function(e,t){let r,s=!1;function i(...r){console&&console.warn&&!s&&(s=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),tw.env.LANG&&tw.env.LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));let o=t(...r);return o.postcssPlugin=e,o.postcssVersion=new n().version,o}return Object.defineProperty(i,"postcss",{get:()=>(r||(r=i()),r)}),i.process=function(e,t,r){return w([i(r)]).process(e,t)},i},w.stringify=i,w.parse=d,w.fromJSON=o,w.list=f,w.comment=e=>new u(e),w.atRule=e=>new h(e),w.decl=e=>new t(e),w.rule=e=>new m(e),w.root=e=>new g(e),w.document=e=>new a(e),w.CssSyntaxError=e,w.Declaration=t,w.Container=s,w.Processor=n,w.Document=a,w.Comment=u,w.Warning=l,w.AtRule=h,w.Result=c,w.Input=p,w.Rule=m,w.Root=g,w.Node=y,r.registerPostcss(w),td=w,w.default=w,td}())&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c;se.stringify,se.fromJSON,se.plugin,se.parse,se.list,se.document,se.comment,se.atRule,se.rule,se.decl,se.root,se.CssSyntaxError,se.Declaration,se.Container,se.Processor,se.Document,se.Comment,se.Warning,se.AtRule,se.Result,se.Input,se.Rule,se.Root,se.Node;var st=class e{constructor(...e){rj(this,"parentElement",null),rj(this,"parentNode",null),rj(this,"ownerDocument"),rj(this,"firstChild",null),rj(this,"lastChild",null),rj(this,"previousSibling",null),rj(this,"nextSibling",null),rj(this,"ELEMENT_NODE",1),rj(this,"TEXT_NODE",3),rj(this,"nodeType"),rj(this,"nodeName"),rj(this,"RRNodeType")}get childNodes(){let e=[],t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(t){if(!(t instanceof e)||t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(e){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}};let sr={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ss={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},sn={},si={};function so(e){if(sn[e])return sn[e];let t=globalThis[e],r=t.prototype,s=e in sr?sr[e]:void 0,n=!!(s&&s.every(e=>{var t,s;return!!(null==(s=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:s.toString().includes("[native code]"))})),i=e in ss?ss[e]:void 0,o=!!(i&&i.every(e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(n&&o&&!globalThis.Zone)return sn[e]=t.prototype,t.prototype;try{let s=document.createElement("iframe");s.style.display="none",document.body.appendChild(s);let n=s.contentWindow;if(!n)return t.prototype;let i=n[e].prototype;if(!i)return s.remove(),r;let o=navigator.userAgent;return o.includes("Safari")&&!o.includes("Chrome")?(s.classList.add("rr-block"),s.setAttribute("__rrwebUntaintedMutationObserver",""),si[e]=()=>s.remove()):s.remove(),sn[e]=i}catch{return r}}let sa={};function sl(e,t,r){var s;let n=`${e}.${String(r)}`;if(sa[n])return sa[n].call(t);let i=null==(s=Object.getOwnPropertyDescriptor(so(e),r))?void 0:s.get;return i?(sa[n]=i,i.call(t)):t[r]}let su={};function sh(e,t,r){let s=`${e}.${String(r)}`;if(su[s])return su[s].bind(t);let n=so(e)[r];return"function"!=typeof n?t[r]:(su[s]=n,n.bind(t))}let sc=Date.now;function sp(e,t,r){try{if(!(t in e))return()=>{};let s=e[t],n=r(s);return"function"==typeof n&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:s}})),e[t]=n,()=>{e[t]=s}}catch{return()=>{}}}/[1-9][0-9]{12}/.test(Date.now().toString())||(sc=()=>new Date().getTime());let sd=function(e){return sl("Node",e,"ownerDocument")},sf=function(e){return sl("Node",e,"childNodes")},sm=function(e){return sl("Node",e,"parentNode")},sg=function(e){return sl("Node",e,"parentElement")},sy=function(e){return sl("Node",e,"textContent")},sw=function(e,t){return sh("Node",e,"contains")(t)},sb=function(e){return sh("Node",e,"getRootNode")()},sv=function(e){return e&&"host"in e?sl("ShadowRoot",e,"host"):null},sS=function(e){return e&&"shadowRoot"in e?sl("Element",e,"shadowRoot"):null};function sx(e,t,r=document){let s={capture:!0,passive:!0};return r.addEventListener(e,t,s),()=>r.removeEventListener(e,t,s)}let sC="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",sk={map:{},getId:()=>(console.error(sC),-1),getNode:()=>(console.error(sC),null),removeNodeFromMap(){console.error(sC)},has:()=>(console.error(sC),!1),reset(){console.error(sC)}};function sO(e,t,r={}){let s=null,n=0;return function(...i){let o=Date.now();n||!1!==r.leading||(n=o);let a=t-(o-n),l=this;a<=0||a>t?(s&&(clearTimeout(s),s=null),n=o,e.apply(l,i)):s||!1===r.trailing||(s=setTimeout(()=>{n=!1===r.leading?0:Date.now(),s=null,e.apply(l,i)},a))}}function sM(e,t,r,s,n=window){let i=n.Object.getOwnPropertyDescriptor(e,t);return n.Object.defineProperty(e,t,s?r:{set(e){setTimeout(()=>{r.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>sM(e,t,i||{},!0)}function sE(e){var t,r,s,n;let i=e.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:i.documentElement.scrollLeft||(null==i?void 0:i.body)&&(null==(t=sg(i.body))?void 0:t.scrollLeft)||(null==(r=null==i?void 0:i.body)?void 0:r.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==i?void 0:i.documentElement.scrollTop)||(null==i?void 0:i.body)&&(null==(s=sg(i.body))?void 0:s.scrollTop)||(null==(n=null==i?void 0:i.body)?void 0:n.scrollTop)||0}}function sR(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function sI(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function sA(e){return e?e.nodeType===e.ELEMENT_NODE?e:sg(e):null}function sN(e,t,r,s){if(!e)return!1;let n=sA(e);if(!n)return!1;try{if("string"==typeof t){if(n.classList.contains(t)||s&&null!==n.closest("."+t))return!0}else if(rl(n,t,s))return!0}catch(e){}return!!(r&&(n.matches(r)||s&&null!==n.closest(r)))||!1}function sL(e,t,r){return"TITLE"===e.tagName&&!!r.headTitleMutations||-2===t.getId(e)}function sP(e){return!!e.changedTouches}
1function sT(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function sD(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function s_(e){return!!e&&(e instanceof st&&"shadowRoot"in e?!!e.shadowRoot:!!sS(e))}"u">typeof window&&window.Proxy&&window.Reflect&&(sk=new Proxy(sk,{get:(e,t,r)=>("map"===t&&console.error(sC),Reflect.get(e,t,r))}));var sF=class{constructor(){tI(this,"id",1),tI(this,"styleIDMap",new WeakMap),tI(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){let r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function sU(e){var t;let r=null;return"getRootNode"in e&&(null==(t=sb(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&sv(sb(e))&&(r=sv(sb(e))),r}function sj(e){var t;let r,s=sd(e);return!!s&&(sw(s,e)||!!(r=sd(t=e))&&sw(r,function(e){let t,r=e;for(;t=sU(r);)r=t;return r}(t)))}var sz=((p=sz||{})[p.DomContentLoaded=0]="DomContentLoaded",p[p.Load=1]="Load",p[p.FullSnapshot=2]="FullSnapshot",p[p.IncrementalSnapshot=3]="IncrementalSnapshot",p[p.Meta=4]="Meta",p[p.Custom=5]="Custom",p[p.Plugin=6]="Plugin",p[p.Asset=7]="Asset",p),sB=((d=sB||{})[d.Mutation=0]="Mutation",d[d.MouseMove=1]="MouseMove",d[d.MouseInteraction=2]="MouseInteraction",d[d.Scroll=3]="Scroll",d[d.ViewportResize=4]="ViewportResize",d[d.Input=5]="Input",d[d.TouchMove=6]="TouchMove",d[d.MediaInteraction=7]="MediaInteraction",d[d.StyleSheetRule=8]="StyleSheetRule",d[d.CanvasMutation=9]="CanvasMutation",d[d.Font=10]="Font",d[d.Log=11]="Log",d[d.Drag=12]="Drag",d[d.StyleDeclaration=13]="StyleDeclaration",d[d.Selection=14]="Selection",d[d.AdoptedStyleSheet=15]="AdoptedStyleSheet",d[d.CustomElement=16]="CustomElement",d),sW=((f=sW||{})[f.MouseUp=0]="MouseUp",f[f.MouseDown=1]="MouseDown",f[f.Click=2]="Click",f[f.ContextMenu=3]="ContextMenu",f[f.DblClick=4]="DblClick",f[f.Focus=5]="Focus",f[f.Blur=6]="Blur",f[f.TouchStart=7]="TouchStart",f[f.TouchMove_Departed=8]="TouchMove_Departed",f[f.TouchEnd=9]="TouchEnd",f[f.TouchCancel=10]="TouchCancel",f),s$=((m=s$||{})[m.Mouse=0]="Mouse",m[m.Pen=1]="Pen",m[m.Touch=2]="Touch",m),sV=((g=sV||{})[g["2D"]=0]="2D",g[g.WebGL=1]="WebGL",g[g.WebGL2=2]="WebGL2",g),sH=((y=sH||{})[y.Play=0]="Play",y[y.Pause=1]="Pause",y[y.Seeked=2]="Seeked",y[y.VolumeChange=3]="VolumeChange",y[y.RateChange=4]="RateChange",y),sq=((w=sq||{})[w.Document=0]="Document",w[w.DocumentType=1]="DocumentType",w[w.Element=2]="Element",w[w.Text=3]="Text",w[w.CDATA=4]="CDATA",w[w.Comment=5]="Comment",w),sG=class{constructor(){tI(this,"length",0),tI(this,"head",null),tI(this,"tail",null)}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}};let sX=(e,t)=>`${e}@${t}`;var sJ=class{constructor(){tI(this,"frozen",!1),tI(this,"locked",!1),tI(this,"texts",[]),tI(this,"attributes",[]),tI(this,"attributeMap",new WeakMap),tI(this,"removes",[]),tI(this,"mapRemoves",[]),tI(this,"movedMap",{}),tI(this,"addedSet",new Set),tI(this,"movedSet",new Set),tI(this,"droppedSet",new Set),tI(this,"removesSubTreeCache",new Set),tI(this,"mutationCb"),tI(this,"blockClass"),tI(this,"blockSelector"),tI(this,"maskTextClass"),tI(this,"maskTextSelector"),tI(this,"inlineStylesheet"),tI(this,"maskInputOptions"),tI(this,"maskTextFn"),tI(this,"maskInputFn"),tI(this,"keepIframeSrcFn"),tI(this,"recordCanvas"),tI(this,"inlineImages"),tI(this,"slimDOMOptions"),tI(this,"dataURLOptions"),tI(this,"doc"),tI(this,"mirror"),tI(this,"iframeManager"),tI(this,"stylesheetManager"),tI(this,"shadowDomManager"),tI(this,"canvasManager"),tI(this,"processedNodeManager"),tI(this,"unattachedDoc"),tI(this,"processMutations",e=>
1{e.forEach(this.processMutation),this.emit()}),tI(this,"emit",()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,r=new sG,s=e=>{let t=e,r=-2;for(;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},n=n=>{let i=sm(n);if(!i||!sj(n))return;let o=!1;if(n.nodeType===Node.TEXT_NODE){let e=i.tagName;if("TEXTAREA"===e)return;"STYLE"===e&&this.addedSet.has(i)&&(o=!0)}let a=tq(i)?this.mirror.getId(sU(n)):this.mirror.getId(i),l=s(n);if(-1===a||-1===l)return r.addNode(n);let u=rp(n,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{sT(e,this.mirror)&&this.iframeManager.addIframe(e),sD(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),s_(n)&&this.shadowDomManager.addShadowRoot(sS(n),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},cssCaptured:o});u&&(e.push({parentId:a,nextId:l,node:u}),t.add(u.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!sY(this.removesSubTreeCache,e,this.mirror)||this.movedSet.has(sm(e)))&&n(e);for(let e of this.addedSet)sZ(this.droppedSet,e)||sY(this.removesSubTreeCache,e,this.mirror)?sZ(this.movedSet,e)?n(e):this.droppedSet.add(e):n(e);let i=null;for(;r.length;){let e=null;if(i){let t=this.mirror.getId(sm(i.value)),r=s(i.value);-1!==t&&-1!==r&&(e=i)}if(!e){let t=r.tail;for(;t;){let r=t;if(t=t.previous,r){let t=this.mirror.getId(sm(r.value));if(-1===s(r.value))continue;if(-1!==t){e=r;break}{let t=sm(r.value);if(t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let s=sv(t);if(-1!==this.mirror.getId(s)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}i=e.previous,r.removeNode(e.value),n(e.value)}let o={texts:this.texts.map(e=>{let t=e.node,r=sm(t);return r&&"TEXTAREA"===r.tagName&&this.genTextAreaValueMutation(r),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let r=JSON.stringify(e.styleDiff),s=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+s).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.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(o))}),tI(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t));let r=Array.from(sf(e),e=>sy(e)||"").join("");t.attributes.value=tY({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:t0(e),value:r,maskInputFn:this.maskInputFn})}),tI(this,"processMutation",e=>{if(!sL(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{let t=sy(e.target);sN(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:ru(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,sA(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,r=e.attributeName,s=e.target.getAttribute(r);if("value"===r){let e=t0(t);s=tY({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:e,value:s,maskInputFn:this.maskInputFn})}if(sN(e.target,this.blockClass,this.blockSelector,!1)||s===e.oldValue)return;let n=this.attributeMap.get(e.target);
1if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(s))if(t.contentDocument)return;else r="rr_src";if(n||(n={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(e.target,n)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!ra(t.tagName,r))if(n.attributes[r]=ro(this.doc,tZ(t.tagName),tZ(r),s),"style"===r){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let r=this.unattachedDoc.createElement("span");for(let s of(e.oldValue&&r.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(s),i=t.style.getPropertyPriority(s);e!==r.style.getPropertyValue(s)||i!==r.style.getPropertyPriority(s)?""===i?n.styleDiff[s]=e:n.styleDiff[s]=[e,i]:n._unchangedStyles[s]=[e,i]}for(let e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(n.styleDiff[e]=!1)}else"open"===r&&"DIALOG"===t.tagName&&(t.matches("dialog:modal")?n.attributes.rr_open_mode="modal":n.attributes.rr_open_mode="non-modal");break}case"childList":if(sN(e.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===e.target.tagName)return void this.genTextAreaValueMutation(e.target);e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),s=tq(e.target)?this.mirror.getId(sv(e.target)):this.mirror.getId(e.target);sN(e.target,this.blockClass,this.blockSelector,!1)||sL(t,this.mirror,this.slimDOMOptions)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(sK(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(tq(t))return!1;let s=r.getId(t);if(!r.has(s))return!0;let n=sm(t);return(!n||n.nodeType!==t.DOCUMENT_NODE)&&(!n||e(n,r))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[sX(r,s)]?sK(this.movedSet,t):(this.removes.push({parentId:s,id:r,isShadow:!!(tq(e.target)&&tG(e.target))||void 0}),function(e,t){let r=[e];for(;r.length;){let e=r.pop();t.has(e)||(t.add(e),sf(e).forEach(e=>r.push(e)))}}(t,this.removesSubTreeCache))),this.mapRemoves.push(t))})}}),tI(this,"genAdds",(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(sL(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[sX(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!sN(e,this.blockClass,this.blockSelector,!1)&&(sf(e).forEach(e=>this.genAdds(e)),s_(e)&&sf(sS(e)).forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}})}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function sK(e,t){e.delete(t),sf(t).forEach(t=>sK(e,t))}function sY(e,t,r){var s;let n;return 0!==e.size&&(s=e,!!(n=sm(t))&&s.has(n))}function sZ(e,t){return 0!==e.size&&function e(t,r){let s=sm(r);return!!s&&(!!t.has(s)||e(t,s))}(e,t)}let sQ=e=>i?(...t)=>{try{return e(...t)}catch(e){if(i&&!0===i(e))return;throw e}}:e,s0=[];function s1(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 s2(e,t){let r=new sJ;s0.push(r),r.init(e);let[s,n]=[so("MutationObserver").constructor,si.MutationObserver??(()=>{})],i=new s(sQ(r.processMutations.bind(r)));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[i,n]}function s3({scrollCb:e,doc:t,mirror:r,blockClass:s,blockSelector:n,sampling:i}){return sx("scroll",sQ(sO(sQ(i=>{let o=s1(i);if(!o||sN(o,s,n,!0))return;let a=r.getId(o);if(o===t&&t.defaultView){let r=sE(t.defaultView);e({id:a,x:r.left,y:r.top})}else e({id:a,x:o.scrollLeft,y:o.scrollTop})}),i.scroll||100)),t)}let s4=["INPUT","TEXTAREA","SELECT"],s6=new WeakMap;function s9(e){return function e(t,r){if(ne("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||ne("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||ne("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||ne("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){let s=Array.from(t.parentRule.cssRules).indexOf(t);return r.unshift(s),e(t.parentRule,r)}if(t.parentStyleSheet){let e=Array.from(t.parentStyleSheet.cssRules).indexOf(t);r.unshift(e)}return r}(e,[])}function s8(e,t,r){let s,n;return e?(e.ownerNode?s=t.getId(e.ownerNode):n=r.getId(e),{styleId:n,id:s}):{}}function s5({mirror:e,stylesheetManager:t},r){var s,n,i;let o=null;o="#document"===r.nodeName?e.getId(r):e.getId(sv(r));let a="#document"===r.nodeName?null==(s=r.defaultView)?void 0:s.Document:null==(i=null==(n=r.ownerDocument)?void 0:n.defaultView)?void 0:i.ShadowRoot,l=(null==a?void 0:a.prototype)?Object.getOwnPropertyDescriptor(null==a?void 0:a.prototype,"adoptedStyleSheets"):void 0;return null!==o&&-1!==o&&a&&l?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var e;return null==(e=l.get)?void 0:e.call(this)},set(e){var r;let s=null==(r=l.set)?void 0:r.call(this,e);if(null!==o&&-1!==o)try{t.adoptStyleSheets(e,o)}catch(e){}return s}}),sQ(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})})):()=>{}}function s7(e,t={}){let r,s=e.doc.defaultView;if(!s)return()=>{};
1!function(e,t){let{mutationCb:r,mousemoveCb:s,mouseInteractionCb:n,scrollCb:i,viewportResizeCb:o,inputCb:a,mediaInteractionCb:l,styleSheetRuleCb:u,styleDeclarationCb:h,canvasMutationCb:c,fontCb:p,selectionCb:d,customElementCb:f}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),r(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),s(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),n(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),i(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),o(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),a(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),l(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),u(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),h(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),c(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),p(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),d(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),f(...e)}}(e,t);let n=()=>{};e.recordDOM&&([r,n]=s2(e,e.doc));let i=function({mousemoveCb:e,sampling:t,doc:r,mirror:s}){let n;if(!1===t.mousemove)return()=>{};let i="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,a=[],l=sO(sQ(t=>{let r=Date.now()-n;e(a.map(e=>(e.timeOffset-=r,e)),t),a=[],n=null}),o),u=sQ(sO(sQ(e=>{let t=s1(e),{clientX:r,clientY:i}=sP(e)?e.changedTouches[0]:e;n||(n=sc()),a.push({x:r,y:i,id:s.getId(t),timeOffset:sc()-n}),l("u">typeof DragEvent&&e instanceof DragEvent?sB.Drag:e instanceof MouseEvent?sB.MouseMove:sB.TouchMove)}),i,{trailing:!1})),h=[sx("mousemove",u,r),sx("touchmove",u,r),sx("drag",u,r)];return sQ(()=>{h.forEach(e=>e())})}(e),o=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:s,blockSelector:n,sampling:i}){if(!1===i.mouseInteraction)return()=>{};let o=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,a=[],l=null;return Object.keys(sW).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e]).forEach(i=>{let o=tZ(i),u=t=>{let o=s1(t);if(sN(o,s,n,!0))return;let a=null,u=i;if("pointerType"in t){switch(t.pointerType){case"mouse":a=s$.Mouse;break;case"touch":a=s$.Touch;break;case"pen":a=s$.Pen}a===s$.Touch?sW[i]===sW.MouseDown?u="TouchStart":sW[i]===sW.MouseUp&&(u="TouchEnd"):s$.Pen}else sP(t)&&(a=s$.Touch);null!==a?(l=a,(u.startsWith("Touch")&&a===s$.Touch||u.startsWith("Mouse")&&a===s$.Mouse)&&(a=null)):sW[i]===sW.Click&&(a=l,l=null);let h=sP(t)?t.changedTouches[0]:t;if(!h)return;let c=r.getId(o),{clientX:p,clientY:d}=h;sQ(e)({type:sW[u],id:c,x:p,y:d,...null!==a&&{pointerType:a}})};if(window.PointerEvent)switch(sW[i]){case sW.MouseDown:case sW.MouseUp:o=o.replace("mouse","pointer");break;case sW.TouchStart:case sW.TouchEnd:return}a.push(sx(o,u,t))}),sQ(()=>{a.forEach(e=>e())})}(e),a=s3(e),l=function({viewportResizeCb:e},{win:t}){let r=-1,s=-1;return sx("resize",sQ(sO(sQ(()=>{let t=sR(),n=sI();(r!==t||s!==n)&&(e({width:Number(n),height:Number(t)}),r=t,s=n)}),200)),t)}(e,{win:s}),u=function({inputCb:e,doc:t,mirror:r,blockClass:s,blockSelector:n,ignoreClass:i,ignoreSelector:o,maskInputOptions:a,maskInputFn:l,sampling:u,userTriggeredOnInput:h}){function c(e){let r=s1(e),u=e.isTrusted,c=r&&r.tagName;if(r&&"OPTION"===c&&(r=sg(r)),!r||!c||0>s4.indexOf(c)||sN(r,s,n,!0)||r.classList.contains(i)||o&&r.matches(o))return;let d=r.value,f=!1,m=t0(r)||"";"radio"===m||"checkbox"===m?f=r.checked:(a[c.toLowerCase()]||a[m])&&(d=tY({element:r,maskInputOptions:a,tagName:c,type:m,value:d,maskInputFn:l})),p(r,h?{text:d,isChecked:f,userTriggered:u}:{text:d,isChecked:f});let g=r.name;"radio"===m&&g&&f&&t.querySelectorAll(`input[type="radio"][name="${g}"]`).forEach(e=>{if(e!==r){let t=e.value;p(e,h?{text:t,isChecked:!f,userTriggered:!1}:{text:t,isChecked:!f})}})}function p(t,s){let n=s6.get(t);if(!n||n.text!==s.text||n.isChecked!==s.isChecked){s6.set(t,s);let n=r.getId(t);sQ(e)({...s,id:n})}}let d=("last"===u.input?["change"]:["input","change"]).map(e=>sx(e,sQ(c),t)),f=t.defaultView;if(!f)return()=>
1{d.forEach(e=>e())};let m=f.Object.getOwnPropertyDescriptor(f.HTMLInputElement.prototype,"value"),g=[[f.HTMLInputElement.prototype,"value"],[f.HTMLInputElement.prototype,"checked"],[f.HTMLSelectElement.prototype,"value"],[f.HTMLTextAreaElement.prototype,"value"],[f.HTMLSelectElement.prototype,"selectedIndex"],[f.HTMLOptionElement.prototype,"selected"]];return m&&m.set&&d.push(...g.map(e=>sM(e[0],e[1],{set(){sQ(c)({target:this,isTrusted:!1})}},!1,f))),sQ(()=>{d.forEach(e=>e())})}(e),h=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:s,sampling:n,doc:i}){let o=sQ(i=>sO(sQ(n=>{let o=s1(n);if(!o||sN(o,t,r,!0))return;let{currentTime:a,volume:l,muted:u,playbackRate:h,loop:c}=o;e({type:i,id:s.getId(o),currentTime:a,volume:l,muted:u,playbackRate:h,loop:c})}),n.media||500)),a=[sx("play",o(sH.Play),i),sx("pause",o(sH.Pause),i),sx("seeked",o(sH.Seeked),i),sx("volumechange",o(sH.VolumeChange),i),sx("ratechange",o(sH.RateChange),i)];return sQ(()=>{a.forEach(e=>e())})}(e),c=()=>{},p=()=>{},d=()=>{},f=()=>{};e.recordDOM&&(c=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:s}){let n,i;if(!s.CSSStyleSheet||!s.CSSStyleSheet.prototype)return()=>{};let o=s.CSSStyleSheet.prototype.insertRule;s.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:sQ((s,n,i)=>{let[o,a]=i,{id:l,styleId:u}=s8(n,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:o,index:a}]}),s.apply(n,i)})}),s.CSSStyleSheet.prototype.addRule=function(e,t,r=this.cssRules.length){let n=`${e} { ${t} }`;return s.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};let a=s.CSSStyleSheet.prototype.deleteRule;s.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:sQ((s,n,i)=>{let[o]=i,{id:a,styleId:l}=s8(n,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:o}]}),s.apply(n,i)})}),s.CSSStyleSheet.prototype.removeRule=function(e){return s.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},s.CSSStyleSheet.prototype.replace&&(n=s.CSSStyleSheet.prototype.replace,s.CSSStyleSheet.prototype.replace=new Proxy(n,{apply:sQ((s,n,i)=>{let[o]=i,{id:a,styleId:l}=s8(n,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replace:o}),s.apply(n,i)})})),s.CSSStyleSheet.prototype.replaceSync&&(i=s.CSSStyleSheet.prototype.replaceSync,s.CSSStyleSheet.prototype.replaceSync=new Proxy(i,{apply:sQ((s,n,i)=>{let[o]=i,{id:a,styleId:l}=s8(n,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replaceSync:o}),s.apply(n,i)})}));let l={};nt("CSSGroupingRule")?l.CSSGroupingRule=s.CSSGroupingRule:(nt("CSSMediaRule")&&(l.CSSMediaRule=s.CSSMediaRule),nt("CSSConditionRule")&&(l.CSSConditionRule=s.CSSConditionRule),nt("CSSSupportsRule")&&(l.CSSSupportsRule=s.CSSSupportsRule));let u={};return Object.entries(l).forEach(([s,n])=>{u[s]={insertRule:n.prototype.insertRule,deleteRule:n.prototype.deleteRule},n.prototype.insertRule=new Proxy(u[s].insertRule,{apply:sQ((s,n,i)=>{let[o,a]=i,{id:l,styleId:u}=s8(n.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:o,index:[...s9(n),a||0]}]}),s.apply(n,i)})}),n.prototype.deleteRule=new Proxy(u[s].deleteRule,{apply:sQ((s,n,i)=>{let[o]=i,{id:a,styleId:l}=s8(n.parentStyleSheet,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:[...s9(n),o]}]}),s.apply(n,i)})})}),sQ(()=>{s.CSSStyleSheet.prototype.insertRule=o,s.CSSStyleSheet.prototype.deleteRule=a,n&&(s.CSSStyleSheet.prototype.replace=n),i&&(s.CSSStyleSheet.prototype.replaceSync=i),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:s}),p=s5(e,e.doc),d=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:s},{win:n}){let i=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:sQ((n,o,a)=>{var l;let[u,h,c]=a;if(r.has(u))return i.apply(o,[u,h,c]);let{id:p,styleId:d}=s8(null==(l=o.parentRule)?void 0:l.parentStyleSheet,t,s.styleMirror);return(p&&-1!==p||d&&-1!==d)&&e({id:p,styleId:d,set:{property:u,value:h,priority:c},index:s9(o.parentRule)}),n.apply(o,a)})});let o=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:sQ((n,i,a)=>{var l;let[u]=a;if(r.has(u))return o.apply(i,[u]);let{id:h,styleId:c}=s8(null==(l=i.parentRule)?void 0:l.parentStyleSheet,t,s.styleMirror);
1return(h&&-1!==h||c&&-1!==c)&&e({id:h,styleId:c,remove:{property:u},index:s9(i.parentRule)}),n.apply(i,a)})}),sQ(()=>{n.CSSStyleDeclaration.prototype.setProperty=i,n.CSSStyleDeclaration.prototype.removeProperty=o})}(e,{win:s}),e.collectFonts&&(f=function({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let s=[],n=new WeakMap,i=r.FontFace;r.FontFace=function(e,t,r){let s=new i(e,t,r);return n.set(s,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),s};let o=sp(t.fonts,"add",function(t){return function(r){return setTimeout(sQ(()=>{let t=n.get(r);t&&(e(t),n.delete(r))}),0),t.apply(this,[r])}});return s.push(()=>{r.FontFace=i}),s.push(o),sQ(()=>{s.forEach(e=>e())})}(e)));let m=function(e){let{doc:t,mirror:r,blockClass:s,blockSelector:n,selectionCb:i}=e,o=!0,a=sQ(()=>{let e=t.getSelection();if(!e||o&&(null==e?void 0:e.isCollapsed))return;o=e.isCollapsed||!1;let a=[],l=e.rangeCount||0;for(let t=0;t<l;t++){let{startContainer:i,startOffset:o,endContainer:l,endOffset:u}=e.getRangeAt(t);sN(i,s,n,!0)||sN(l,s,n,!0)||a.push({start:r.getId(i),startOffset:o,end:r.getId(l),endOffset:u})}i({ranges:a})});return a(),sx("selectionchange",a)}(e),g=function({doc:e,customElementCb:t}){let r=e.defaultView;return r&&r.customElements?sp(r.customElements,"define",function(e){return function(r,s,n){try{t({define:{name:r}})}catch(e){console.warn(`Custom element callback failed for ${r}`)}return e.apply(this,[r,s,n])}}):()=>{}}(e),y=[];for(let t of e.plugins)y.push(t.observer(t.callback,s,t.options));return sQ(()=>{s0.forEach(e=>e.reset()),r?.disconnect(),n(),i(),o(),a(),l(),u(),h(),c(),p(),d(),f(),m(),g(),y.forEach(e=>e())})}function ne(e){return void 0!==window[e]}function nt(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var nr=class{constructor(e){tI(this,"iframeIdToRemoteIdMap",new WeakMap),tI(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,r,s){let n=r||this.getIdToRemoteIdMap(e),i=s||this.getRemoteIdToIdMap(e),o=n.get(t);return o||(o=this.generateIdFn(),n.set(t,o),i.set(o,t)),o}getIds(e,t){let r=this.getIdToRemoteIdMap(e),s=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,s))}getRemoteId(e,t,r){let s=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let n=s.get(t);return n||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}},ns=class{constructor(e){tI(this,"iframes",new WeakMap),tI(this,"crossOriginIframeMap",new WeakMap),tI(this,"crossOriginIframeMirror",new nr(re)),tI(this,"crossOriginIframeStyleMirror"),tI(this,"crossOriginIframeRootIdMap",new WeakMap),tI(this,"mirror"),tI(this,"mutationCb"),tI(this,"wrappedEmit"),tI(this,"loadListener"),tI(this,"stylesheetManager"),tI(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new nr(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var r,s;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(s=this.loadListener)||s.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(e,t){var r;switch(t.type){case sz.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:sz.IncrementalSnapshot,data:{source:sB.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case sz.Meta:case sz.Load:case sz.DomContentLoaded:break;case sz.Plugin:return t;case sz.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case sz.IncrementalSnapshot:switch(t.data.source){case sB.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}
1),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case sB.Drag:case sB.TouchMove:case sB.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case sB.ViewportResize:return!1;case sB.MediaInteraction:case sB.MouseInteraction:case sB.Scroll:case sB.CanvasMutation:case sB.Input:return this.replaceIds(t.data,e,["id"]),t;case sB.StyleSheetRule:case sB.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case sB.Font:return t;case sB.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case sB.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,s){for(let n of s)(Array.isArray(t[n])||"number"==typeof t[n])&&(Array.isArray(t[n])?t[n]=e.getIds(r,t[n]):t[n]=e.getId(r,t[n]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===sq.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}},nn=class{constructor(e){tI(this,"shadowDoms",new WeakSet),tI(this,"mutationCb"),tI(this,"scrollCb"),tI(this,"bypassOptions"),tI(this,"mirror"),tI(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!tG(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);let[r]=s2({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(s3({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(sv(e))),this.restoreHandlers.push(s5({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(sp(e.prototype,"attachShadow",function(e){return function(s){let n=e.call(this,s),i=sS(this);return i&&sj(this)&&r.addShadowRoot(i,t),n}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},ni="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",no="u"<typeof Uint8Array?[]:new Uint8Array(256),na=0;na<ni.length;na++)no[ni.charCodeAt(na)]=na;var nl=function(e){var t,r=new Uint8Array(e),s=r.length,n="";for(t=0;t<s;t+=3)n+=ni[r[t]>>2],n+=ni[(3&r[t])<<4|r[t+1]>>4],n+=ni[(15&r[t+1])<<2|r[t+2]>>6],n+=ni[63&r[t+2]];return s%3==2?n=n.substring(0,n.length-1)+"=":s%3==1&&(n=n.substring(0,n.length-2)+"=="),n};let nu=new Map,nh=(e,t,r)=>{let s;if(!e||!(np(e,t)||"object"==typeof e))return;let n=e.constructor.name,i=((s=nu.get(r))||(s=new Map,nu.set(r,s)),s.has(n)||s.set(n,[]),s.get(n)),o=i.indexOf(e);return -1===o&&(o=i.length,i.push(e)),o},nc=(e,t,r)=>e.map(e=>(function e(t,r,s){if(t instanceof Array)return t.map(t=>e(t,r,s));if(null===t);else if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(t instanceof ArrayBuffer)return{rr_type:t.constructor.name,base64:nl(t)};else if(t instanceof DataView)return{rr_type:t.constructor.name,args:[e(t.buffer,r,s),t.byteOffset,t.byteLength]};else if(t instanceof HTMLImageElement){let e=t.constructor.name,{src:r}=t;return{rr_type:e,src:r}}else if(t instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[e(t.data,r,s),t.width,t.height]};else if(np(t,r)||"object"==typeof t)return{rr_type:t.constructor.name,index:nh(t,r,s)};return t})(e,t,r)),np=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]).find(r=>e instanceof t[r]);
1function nd(e,t,r,s){let n=[];try{let i=sp(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(n,...i){if(!sN(this,t,r,!0)){let e="experimental-webgl"===n?"webgl":n;if("__context"in this||(this.__context=e),s&&["webgl","webgl2"].includes(e))if(i[0]&&"object"==typeof i[0]){let e=i[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else i.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[n,...i])}});n.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{n.forEach(e=>e())}}function nf(e,t,r,s,n,i){let o=[];for(let a of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if("function"!=typeof e[a])continue;let l=sp(e,a,function(e){return function(...o){let l=e.apply(this,o);if(nh(l,i,this),"tagName"in this.canvas&&!sN(this.canvas,s,n,!0)){let e={type:t,property:a,args:nc(o,i,this)};r(this.canvas,e)}return l}});o.push(l)}catch{let s=sM(e,a,{set(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});o.push(s)}return o}let nm='(function() {\n "use strict";\n var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";\n var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);\n for (var i = 0; i < chars.length; i++) {\n lookup[chars.charCodeAt(i)] = i;\n }\n var encode = function(arraybuffer) {\n var bytes = new Uint8Array(arraybuffer), i2, len = bytes.length, base64 = "";\n for (i2 = 0; i2 < len; i2 += 3) {\n base64 += chars[bytes[i2] >> 2];\n base64 += chars[(bytes[i2] & 3) << 4 | bytes[i2 + 1] >> 4];\n base64 += chars[(bytes[i2 + 1] & 15) << 2 | bytes[i2 + 2] >> 6];\n base64 += chars[bytes[i2 + 2] & 63];\n }\n if (len % 3 === 2) {\n base64 = base64.substring(0, base64.length - 1) + "=";\n } else if (len % 3 === 1) {\n base64 = base64.substring(0, base64.length - 2) + "==";\n }\n return base64;\n };\n const lastBlobMap = /* @__PURE__ */ new Map();\n const transparentBlobMap = /* @__PURE__ */ new Map();\n async function getTransparentBlobFor(width, height, dataURLOptions) {\n const id = `${width}-${height}`;\n if ("OffscreenCanvas" in globalThis) {\n if (transparentBlobMap.has(id)) return transparentBlobMap.get(id);\n const offscreen = new OffscreenCanvas(width, height);\n offscreen.getContext("2d");\n const blob = await offscreen.convertToBlob(dataURLOptions);\n const arrayBuffer = await blob.arrayBuffer();\n const base64 = encode(arrayBuffer);\n transparentBlobMap.set(id, base64);\n return base64;\n } else {\n return "";\n }\n }\n const worker = self;\n worker.onmessage = async function(e) {\n if ("OffscreenCanvas" in globalThis) {\n const { id, bitmap, width, height, dataURLOptions } = e.data;\n const transparentBase64 = getTransparentBlobFor(\n width,\n height,\n dataURLOptions\n );\n const offscreen = new OffscreenCanvas(width, height);\n const ctx = offscreen.getContext("2d");\n ctx.drawImage(bitmap, 0, 0);\n bitmap.close();\n const blob = await offscreen.convertToBlob(dataURLOptions);\n const type = blob.type;\n const arrayBuffer = await blob.arrayBuffer();\n const base64 = encode(arrayBuffer);\n if (!lastBlobMap.has(id) && await transparentBase64 === base64) {\n lastBlobMap.set(id, base64);\n return worker.postMessage({ id });\n }\n if (lastBlobMap.get(id) === base64) return worker.postMessage({ id });\n worker.postMessage({\n id,\n type,\n base64,\n width,\n height\n });\n lastBlobMap.set(id, base64);\n } else {\n return worker.postMessage({ id: e.data.id });\n }\n };\n})();\n//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map\n',ng="u">typeof self&&self.Blob&&new Blob([nm],{type:"text/javascript;charset=utf-8"});function ny(e){let t;try{if(!(t=ng&&(self.URL||self.webkitURL).createObjectURL(ng)))throw"";let r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch(t){return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(nm),{name:null==e?void 0:e.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var nw=class{constructor(e){tI(this,"pendingCanvasMutations",new Map),tI(this,"rafStamps",{latestId:0,invokeId:null}),tI(this,"mirror"),tI(this,"mutationCb"),tI(this,"resetObservers"),tI(this,"frozen",!1),tI(this,"locked",!1),tI(this,"processMutation",(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)});const{sampling:t="all",win:r,blockClass:s,blockSelector:n,recordCanvas:i,dataURLOptions:o}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,i&&"all"===t&&this.initCanvasMutationObserver(r,s,n),i&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,s,n,{dataURLOptions:o})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,t,r,s,n){let i,o=nd(t,r,s,!0),a=new Map,l=new ny;l.onmessage=e=>{let{id:t}=e.data;if(a.set(t,!1),!("base64"in e.data))return;let{base64:r,type:s,width:n,height:i}=e.data;this.mutationCb({id:t,type:sV["2D"],commands:[{property:"clearRect",args:[0,0,n,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:s}]},0,0]}]})};let u=1e3/e,h=0,c=e=>{let o;if(h&&e-h<u){i=requestAnimationFrame(c);return}
1h=e,(o=[],t.document.querySelectorAll("canvas").forEach(e=>{sN(e,r,s,!0)||o.push(e)}),o).forEach(async e=>{var t;let r=this.mirror.getId(e);if(a.get(r)||0===e.width||0===e.height)return;if(a.set(r,!0),["webgl","webgl2"].includes(e.__context)){let r=e.getContext(e.__context);(null==(t=null==r?void 0:r.getContextAttributes())?void 0:t.preserveDrawingBuffer)===!1&&r.clear(r.COLOR_BUFFER_BIT)}let s=await createImageBitmap(e);l.postMessage({id:r,bitmap:s,width:e.width,height:e.height,dataURLOptions:n.dataURLOptions},[s])}),i=requestAnimationFrame(c)};i=requestAnimationFrame(c),this.resetObservers=()=>{o(),cancelAnimationFrame(i)}}initCanvasMutationObserver(e,t,r){var s;let n;this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let i=nd(e,t,r,!1),o=function(e,t,r,s){let n=[];for(let i of Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype))try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[i])continue;let o=sp(t.CanvasRenderingContext2D.prototype,i,function(n){return function(...o){return sN(this.canvas,r,s,!0)||setTimeout(()=>{let r=nc(o,t,this);e(this.canvas,{type:sV["2D"],property:i,args:r})},0),n.apply(this,o)}});n.push(o)}catch{let r=sM(t.CanvasRenderingContext2D.prototype,i,{set(t){e(this.canvas,{type:sV["2D"],property:i,args:[t],setter:!0})}});n.push(r)}return()=>{n.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r),a=(s=this.processMutation.bind(this),n=[],void 0!==e.WebGLRenderingContext&&n.push(...nf(e.WebGLRenderingContext.prototype,sV.WebGL,s,t,r,e)),void 0!==e.WebGL2RenderingContext&&n.push(...nf(e.WebGL2RenderingContext.prototype,sV.WebGL2,s,t,r,e)),()=>{n.forEach(e=>e())});this.resetObservers=()=>{i(),o(),a()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;let s=r.map(e=>{let{type:t,...r}=e;return r}),{type:n}=r[0];this.mutationCb({id:t,type:n,commands:s}),this.pendingCanvasMutations.delete(e)}},nb=class{constructor(e){tI(this,"trackedLinkElements",new WeakSet),tI(this,"mutationCb"),tI(this,"adoptedStyleSheetCb"),tI(this,"styleMirror",new sF),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let r={id:t,styleIds:[]},s=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),s.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,r)=>({rule:tJ(e,t.href),index:r}))})),r.styleIds.push(e)}s.length>0&&(r.styles=s),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}},nv=class{constructor(){tI(this,"nodeMap",new WeakMap),tI(this,"active",!1)}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}};let nS=!1;try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==(v=e.contentWindow)?void 0:v.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let nx=new tK;function nC(e={}){let t,{emit:r,checkoutEveryNms:s,checkoutEveryNth:n,blockClass:u="rr-block",blockSelector:h=null,ignoreClass:c="rr-ignore",ignoreSelector:p=null,maskTextClass:d="rr-mask",maskTextSelector:f=null,inlineStylesheet:m=!0,maskAllInputs:g,maskInputOptions:y,slimDOMOptions:w,maskInputFn:b,maskTextFn:v,hooks:S,packFn:x,sampling:C={},dataURLOptions:k={},mousemoveWait:O,recordDOM:M=!0,recordCanvas:E=!1,recordCrossOriginIframes:R=!1,recordAfter:I="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:A=!1,collectFonts:N=!1,inlineImages:L=!1,plugins:P,keepIframeSrcFn:T=()=>!1,ignoreCSSAttributes:D=new Set([]),errorHandler:_}=e;i=_;let F=!R||window.parent===window,U=!1;if(!F)try{window.parent.document&&(U=!1)}catch(e){U=!0}if(F&&!r)throw Error("emit function is required");if(!F&&!U)return()=>{};void 0!==O&&void 0===C.mousemove&&(C.mousemove=O),nx.reset();let j=!0===g?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==y?y:{password:!0},z=rc(w);!function(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)}();let B=0,W=e=>{for(let t of P||[])t.eventProcessor&&(e=t.eventProcessor(e));return x&&!U&&(e=x(e)),e};o=(e,i)=>{var o;if(e.timestamp=sc(),(null==(o=s0[0])?void 0:o.isFrozen())&&e.type!==sz.FullSnapshot&&(e.type!==sz.IncrementalSnapshot||e.data.source!==sB.Mutation)&&s0.forEach(e
1=>e.unfreeze()),F)r?.(W(e),i);else if(U){let t={type:"rrweb",event:W(e),origin:window.location.origin,isCheckout:i};window.parent.postMessage(t,"*")}if(e.type===sz.FullSnapshot)t=e,B=0;else if(e.type===sz.IncrementalSnapshot){if(e.data.source===sB.Mutation&&e.data.isAttachIframe)return;B++;let r=n&&B>=n,i=s&&e.timestamp-t.timestamp>s;(r||i)&&a(!0)}};let $=e=>{o({type:sz.IncrementalSnapshot,data:{source:sB.Mutation,...e}})},V=e=>o({type:sz.IncrementalSnapshot,data:{source:sB.Scroll,...e}}),H=e=>o({type:sz.IncrementalSnapshot,data:{source:sB.CanvasMutation,...e}}),q=new nb({mutationCb:$,adoptedStyleSheetCb:e=>o({type:sz.IncrementalSnapshot,data:{source:sB.AdoptedStyleSheet,...e}})}),G=new ns({mirror:nx,mutationCb:$,stylesheetManager:q,recordCrossOriginIframes:R,wrappedEmit:o});for(let e of P||[])e.getMirror&&e.getMirror({nodeMirror:nx,crossOriginIframeMirror:G.crossOriginIframeMirror,crossOriginIframeStyleMirror:G.crossOriginIframeStyleMirror});let X=new nv;l=new nw({recordCanvas:E,mutationCb:H,win:window,blockClass:u,blockSelector:h,mirror:nx,sampling:C.canvas,dataURLOptions:k});let J=new nn({mutationCb:$,scrollCb:V,bypassOptions:{blockClass:u,blockSelector:h,maskTextClass:d,maskTextSelector:f,inlineStylesheet:m,maskInputOptions:j,dataURLOptions:k,maskTextFn:v,maskInputFn:b,recordCanvas:E,inlineImages:L,sampling:C,slimDOMOptions:z,iframeManager:G,stylesheetManager:q,canvasManager:l,keepIframeSrcFn:T,processedNodeManager:X},mirror:nx});a=(e=!1)=>{if(!M)return;o({type:sz.Meta,data:{href:window.location.href,width:sI(),height:sR()}},e),q.reset(),J.init(),s0.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new tK,blockClass:s="rr-block",blockSelector:n=null,maskTextClass:i="rr-mask",maskTextSelector:o=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:u=!1,maskAllInputs:h=!1,maskTextFn:c,maskInputFn:p,slimDOM:d=!1,dataURLOptions:f,preserveWhiteSpace:m,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:w,onStylesheetLoad:b,stylesheetLoadTimeout:v,keepIframeSrcFn:S=()=>!1}=t;return rp(e,{doc:e,mirror:r,blockClass:s,blockSelector:n,maskTextClass:i,maskTextSelector:o,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===h?{password:!0}:h,maskTextFn:c,maskInputFn:p,slimDOMOptions:rc(d),dataURLOptions:f,inlineImages:l,recordCanvas:u,preserveWhiteSpace:m,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:w,onStylesheetLoad:b,stylesheetLoadTimeout:v,keepIframeSrcFn:S,newlyAddedElement:!1})}(document,{mirror:nx,blockClass:u,blockSelector:h,maskTextClass:d,maskTextSelector:f,inlineStylesheet:m,maskAllInputs:j,maskTextFn:v,maskInputFn:b,slimDOM:z,dataURLOptions:k,recordCanvas:E,inlineImages:L,onSerialize:e=>{sT(e,nx)&&G.addIframe(e),sD(e,nx)&&q.trackLinkElement(e),s_(e)&&J.addShadowRoot(sS(e),document)},onIframeLoad:(e,t)=>{G.attachIframe(e,t),J.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{q.attachLinkElement(e,t)},keepIframeSrcFn:T});if(!t)return console.warn("Failed to snapshot the document");o({type:sz.FullSnapshot,data:{node:t,initialOffset:sE(window)}},e),s0.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&q.adoptStyleSheets(document.adoptedStyleSheets,nx.getId(document))};try{let e=[],t=e=>{var t;return sQ(s7)({mutationCb:$,mousemoveCb:(e,t)=>o({type:sz.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>o({type:sz.IncrementalSnapshot,data:{source:sB.MouseInteraction,...e}}),scrollCb:V,viewportResizeCb:e=>o({type:sz.IncrementalSnapshot,data:{source:sB.ViewportResize,...e}}),inputCb:e=>o({type:sz.IncrementalSnapshot,data:{source:sB.Input,...e}}),mediaInteractionCb:e=>o({type:sz.IncrementalSnapshot,data:{source:sB.MediaInteraction,...e}}),styleSheetRuleCb:e=>o({type:sz.IncrementalSnapshot,data:{source:sB.StyleSheetRule,...e}}),styleDeclarationCb:e=>o({type:sz.IncrementalSnapshot,data:{source:sB.StyleDeclaration,...e}}),canvasMutationCb:H,fontCb:e=>o({type:sz.IncrementalSnapshot,data:{source:sB.Font,...e}}),selectionCb:e=>{o({type:sz.IncrementalSnapshot,data:{source:sB.Selection,...e}})},customElementCb:e=>{o({type:sz.IncrementalSnapshot,data:{source:sB.CustomElement,...e}})},blockClass:u,ignoreClass:c,ignoreSelector:p,maskTextClass:d,maskTextSelector:f,maskInputOptions:j,inlineStylesheet:m,sampling:C,recordDOM:M,recordCanvas:E,inlineImages:L,userTriggeredOnInput:A,collectFonts:N,doc:e,maskInputFn:b,maskTextFn:v,keepIframeSrcFn:T,blockSelector:h,slimDOMOptions:z,dataURLOptions:k,mirror:nx,iframeManager:G,stylesheetManager:q,shadowDomManager:J,processedNodeManager:X,canvasManager:l,ignoreCSSAttributes:D,plugins:(null==(t=null==P?void 0:P.filter(e=>e.observer))?void 0:t.map(e=>({observer:e.observer,options:e.options,callback:t=>o({type:sz.Plugin,data:{plugin:e.name,payload:t}}
1)})))||[]},S)};G.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});let r=()=>{a(),e.push(t(document)),nS=!0};return["interactive","complete"].includes(document.readyState)?r():(e.push(sx("DOMContentLoaded",()=>{o({type:sz.DomContentLoaded,data:{}}),"DOMContentLoaded"===I&&r()})),e.push(sx("load",()=>{o({type:sz.Load,data:{}}),"load"===I&&r()},window))),()=>{e.forEach(e=>{try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}}),X.destroy(),nS=!1,i=void 0}}catch(e){console.warn(e)}}nC.addCustomEvent=(e,t)=>{if(!nS)throw Error("please add custom event after start recording");o({type:sz.Custom,data:{tag:e,payload:t}})},nC.freezePage=()=>{s0.forEach(e=>e.freeze())},nC.takeFullSnapshot=e=>{if(!nS)throw Error("please take full snapshot after start recording");a(e)},nC.mirror=nx,(b=tm||(tm={}))[b.NotStarted=0]="NotStarted",b[b.Running=1]="Running",b[b.Stopped=2]="Stopped";let{addCustomEvent:nk}=nC,{freezePage:nO}=nC,{takeFullSnapshot:nM}=nC;var nE=Object.defineProperty,nR=(e,t,r)=>{let s;return(s="symbol"!=typeof t?t+"":t)in e?nE(e,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[s]=r};Date.now().toString();var nI=class{constructor(e){nR(this,"fileName"),nR(this,"functionName"),nR(this,"lineNumber"),nR(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}toString(){let e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?`${this.functionName} (${this.fileName}:${e}:${t})`:`${this.fileName}:${e}:${t}`}};let nA=/(^|@)\S+:\d+/,nN=/^\s*at .*(\S+:\d+|\(native\))/m,nL=/^(eval@)?(\[native code])?$/,nP={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(nN)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];let t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw Error(`Cannot parse given url: ${e}`);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(nN)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));let t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),s=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),n=this.extractLocation(r?r[1]:s.pop());return new nI({functionName:s.join(" ")||void 0,fileName:["eval","<anonymous>"].indexOf(n[0])>-1?void 0:n[0],lineNumber:n[1],columnNumber:n[2]})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(nL)},this).map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new nI({functionName:e});{let t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),s=r&&r[1]?r[1]:void 0,n=this.extractLocation(e.replace(t,""));return new nI({functionName:s,fileName:n[0],lineNumber:n[1],columnNumber:n[2]})}},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){let t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),s=[];for(let e=2,n=r.length;e<n;e+=2){let n=t.exec(r[e]);n&&s.push(new nI({fileName:n[2],lineNumber:parseFloat(n[1])}))}return s},parseOpera10:function(e){let t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),s=[];for(let e=0,n=r.length;e<n;e+=2){let n=t.exec(r[e]);n&&s.push(new nI({functionName:n[3]||void 0,fileName:n[2],lineNumber:parseFloat(n[1])}))}return s},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(nA)&&!e.match(/^Error created at/)},this).map(function(e){let t=e.split("@"),r=this.extractLocation(t.pop());return new nI({functionName:(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function nT(e){return"[object Object]"===Object.prototype.toString.call(e)}function nD(e,t){let r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);let s=[],n=[];return JSON.stringify(e,function(e,t){var i;if(s.length>0){let r=s.indexOf(this);~r?s.splice(r+1):s.push(this),~r?n.splice(r,1/0,e):n.push(e),~s.indexOf(t)&&(t=s[0]===t?"[Cir
1cular ~]":"[Circular ~."+n.slice(0,s.indexOf(t)).join(".")+"]")}else s.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(nT(i=t)&&Object.keys(i).length>r.numOfKeysLimit||"function"==typeof i||nT(i)&&function e(t,r){if(0===r)return!0;for(let s of Object.keys(t))if(nT(t[s])&&e(t[s],r-1))return!0;return!1}(i,r.depthOfLimit)){let e;return e=t.toString(),r.stringLengthLimit&&e.length>r.stringLengthLimit&&(e=`${e.slice(0,r.stringLengthLimit)}...`),e}if("bigint"==typeof t)return t.toString()+"n";if(t instanceof Event){let e={};for(let r in t){let s=t[r];Array.isArray(s)?e[r]=function(e){if(!e||!e.outerHTML)return"";let t="";for(;e.parentElement;){let r=e.localName;if(!r)break;r=r.toLowerCase();let s=e.parentElement,n=[];if(s.children&&s.children.length>0)for(let e=0;e<s.children.length;e++){let t=s.children[e];t.localName&&t.localName.toLowerCase&&t.localName.toLowerCase()===r&&n.push(t)}n.length>1&&(r+=`:eq(${n.indexOf(e)})`),t=r+(t?">"+t:""),e=s}return t}(s.length?s[0]:null):e[r]=s}return e}return t instanceof Node?t instanceof HTMLElement?t?t.outerHTML:"":t.nodeName:t instanceof Error?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t})}let n_={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function nF(e,t,r){let s,n=r?Object.assign({},n_,r):n_,i=n.logger;if(!i)return()=>{};s="string"==typeof i?t[i]:i;let o=0,a=!1,l=[];
1if(n.level.includes("error")){let r=t=>{let r=t.message,s=t.error;e({level:"error",trace:nP.parse(s).map(e=>e.toString()),payload:[nD(r,n.stringifyOptions)]})};t.addEventListener("error",r),l.push(()=>{t.removeEventListener("error",r)});let s=t=>{let r,s;t.reason instanceof Error?(r=t.reason,s=[nD(`Uncaught (in promise) ${r.name}: ${r.message}`,n.stringifyOptions)]):(r=Error(),s=[nD("Uncaught (in promise)",n.stringifyOptions),nD(t.reason,n.stringifyOptions)]),e({level:"error",trace:nP.parse(r).map(e=>e.toString()),payload:s})};t.addEventListener("unhandledrejection",s),l.push(()=>{t.removeEventListener("unhandledrejection",s)})}for(let t of n.level)l.push(function(t,r){if(!t[r])return()=>{};try{let s;if(!(r in t))return()=>{};let i=t[r],l=(s=i,(...t)=>{if((s.apply(this,t),"assert"!==r||!t[0])&&!a){a=!0;try{let s=nP.parse(Error()).map(e=>e.toString()).splice(1),i=("assert"===r?t.slice(1):t).map(e=>nD(e,n.stringifyOptions));++o<n.lengthThreshold?e({level:r,trace:s,payload:i}):o===n.lengthThreshold&&e({level:"warn",trace:[],payload:[nD("The number of log records reached the threshold.")]})}catch(e){s("rrweb logger error:",e,...t)}finally{a=!1}
1}});return"function"==typeof l&&(l.prototype=l.prototype||{},Object.defineProperties(l,{__rrweb_original__:{enumerable:!1,value:i}})),t[r]=l,()=>{t[r]=i}}catch{return()=>{}}}(s,t));return()=>{l.forEach(e=>e())}}let nU=["log","warn","error","debug","info"];var nj=class{stopFn=null;start(e,t){let r,s=e.maskSelectors??tS,n=e.blockSelectors??tx,i=[(r=null,{name:"csr/click-modifiers@1",options:{},observer:(e,t)=>{let s=e=>{let s={button:e.button,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey};r=s,t.setTimeout(()=>{r===s&&(r=null)},0)};return t.addEventListener("click",s,!0),()=>t.removeEventListener("click",s,!0)},eventProcessor:e=>{if(r&&e.type===sz.IncrementalSnapshot&&e.data.source===sB.MouseInteraction&&e.data.type===sW.Click){let t=r;return r=null,{...e,data:{...e.data,...t}}}return e}})],{captureConsoleLogs:o}=e;if(o){let e=!0===o?nU:o.levels;e.length>0&&i.push({name:"rrweb/console@1",observer:nF,options:{level:e}})}this.stopFn=nC({emit:e=>{t(e)},maskAllInputs:e.maskInputs??!0,...s.length?{maskTextSelector:s.join(",")}:{},...n.length?{blockSelector:n.join(",")}:{},...i.length?{plugins:i}:{},...e.userTriggeredOnInput?{userTriggeredOnInput:!0}:{},sampling:{mousemove:100,input:"last"},slimDOMOptions:"all"})??null}takeFullSnapshot(){nM(!0)}stop(){this.stopFn?.(),this.stopFn=null}};function nz(e){let t=e.debugLogger??function(){try{if(sessionStorage.getItem("CSR_DEBUG"))return e=>console.log(e)}catch(e){}}(),r=t?e=>t(`[CSR] ${e}`):void 0,s=null,n=null,i=null,o=null,a=!1,l=!1,u={maskSelectors:e.maskSelectors,blockSelectors:e.blockSelectors,maskInputs:e.maskInputs,captureConsoleLogs:e.captureConsoleLogs,captureNetworkRequests:e.captureNetworkRequests,captureRouteChanges:e.captureRouteChanges,parameterizeRoute:e.parameterizeRoute,userTriggeredOnInput:e.userTriggeredOnInput};async function h(t){try{var a;let h,c=await (0,tg.t)({apiUrl:e.apiUrl??"https://recording.confidence.dev",websocketUrl:e.websocketUrl??"wss://recording-ws.confidence.dev/sessions/stream",clientSecret:e.clientSecret,context:{...e.context,_csr_sdk_version:"0.18.10",...e.appVersion?{_app_version:e.appVersion}:{}},workerUrl:e.workerUrl,forceRecord:t,debugLogger:r,onTerminate:({reason:e})=>{r?.(`Recording terminated: ${e}`),i?.(),i=null,s?.(),s=null,l=!0}});if(l)return void c?.close();if(null===c)return void r?.("Recording skipped by backend");n=()=>c.close(),a=o=e=>{try{c(e)}catch(e){r?.(`Event dropped: ${e instanceof Error?e.message:String(e)}`)}},(h=new tE({engine:new nj,onEvent:a})).start(u),s=()=>h.stop(),i=function(e){if("u"<typeof window)return()=>{};let t=window.__confidence??={},r=t.flags??{},s={...r};for(let[n,i]of(t.flags=new Proxy(s,{set:(t,r,s)=>("string"==typeof r&&s&&"string"==typeof s.variant&&(t[r]=s,e({flagKey:r,variant:s.variant,assignmentOrigin:s.assignmentOrigin??""})),!0)}),Object.entries(r)))i&&"string"==typeof i.variant&&e({flagKey:n,variant:i.variant,assignmentOrigin:i.assignmentOrigin??""});return()=>{t.flags={...s}}}(({flagKey:e,variant:t,assignmentOrigin:r})=>{o?.({type:6,timestamp:Date.now(),data:{plugin:"csr:flagEvaluation",payload:{flagKey:e,variant:t,assignmentOrigin:r}}})})}catch(e){r?.(`Recording disabled: ${e instanceof Error?e.message:String(e)}`)}}return(e.mode??"automatic")==="automatic"&&(a=!0,h(!1)),{start(){a||l||(a=!0,h(!0))},stop(){l||(l=!0,i?.(),i=null,s?.(),s=null,o=null,n?.(),n=null)},tag(e,t){let s=tv(e);if(s)return void r?.(`tag() dropped: ${s}`);let n=void 0===t?null:"string"!=typeof t?"tag value is not a string":t.length>256?"tag value exceeds 256 characters":null;n?r?.(`tag() dropped: ${n}`):o?.({type:6,timestamp:Date.now(),data:{plugin:"csr:tag",payload:void 0!==t?{key:e,value:t}:{key:e}}})},measure(e,t){let s=tv(e);if(s)return void r?.(`measure() dropped: ${s}`);let n=void 0===t||"number"==typeof t&&Number.isFinite(t)?null:"measure value must be a finite number";n?r?.(`measure() dropped: ${n}`):o?.({type:6,timestamp:Date.now(),data:{plugin:"csr:measure",payload:void 0!==t?{key:e,value:t}:{key:e}}})},get isRecording(){return null!==s}}}}}]); 2//# sourceMappingURL=e61884b3.bb3c223c630ea1d1.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.