repoburg 1.3.270 → 1.3.272

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/agent-pane/backend/dist/index.js +54904 -277
  2. package/agent-pane/backend/dist/server.js +54904 -277
  3. package/agent-pane/examples/pr-review/manifest.json +1 -1
  4. package/agent-pane/frontend/dist/assets/index-BuZ-_HXG.js +606 -0
  5. package/agent-pane/frontend/dist/assets/index-DlwZnsU3.css +1 -0
  6. package/agent-pane/frontend/dist/index.html +2 -2
  7. package/daemon/dist/tabtape/config.js +1 -1
  8. package/daemon/dist/tabtape/mcp/definitions.js +2 -2
  9. package/daemon/dist/tabtape/mcp/server.js +2 -2
  10. package/daemon/dist/tabtape/mcp/server.spec.js +18 -0
  11. package/daemon/dist/tabtape/mcp/tools.js +10 -0
  12. package/daemon/dist/tabtape/query/perf.js +53 -1
  13. package/daemon/dist/tabtape/query/query.spec.js +13 -1
  14. package/daemon/dist/tabtape/query/types.js +4 -0
  15. package/daemon/dist/tabtape/testing/querytest.js +8 -1
  16. package/package.json +5 -1
  17. package/tabtape/extension/dist/build-info.json +4 -4
  18. package/tabtape/extension/dist/manifest.json +2 -2
  19. package/tabtape/extension/dist/recorder.js +21 -21
  20. package/tabtape/extension/dist/recorder.js.map +1 -1
  21. package/tabtape/ui/dist/app/assets/{index-iWNSSrAE.js → index-B7yWGVQ_.js} +10 -9
  22. package/tabtape/ui/dist/app/assets/{index-Canv3Ljk.css → index-BE22UToa.css} +1 -1
  23. package/tabtape/ui/dist/app/index.html +2 -2
  24. package/tabtape/ui/dist/build-info.json +4 -4
  25. package/tabtape/ui/dist/export/viewer.css +1 -1
  26. package/tabtape/ui/dist/export/viewer.js +6 -5
  27. package/agent-pane/frontend/dist/assets/index-CcL4MDxZ.js +0 -572
  28. package/agent-pane/frontend/dist/assets/index-Cr-XES2b.css +0 -1
@@ -1,9 +1,9 @@
1
- "use strict";(()=>{var Jl=Object.defineProperty,Kl=(e,t,r)=>t in e?Jl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,O=(e,t,r)=>Kl(e,typeof t!="symbol"?t+"":t,r),Gi,Ql=Object.defineProperty,Zl=(e,t,r)=>t in e?Ql(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yi=(e,t,r)=>Zl(e,typeof t!="symbol"?t+"":t,r),ee=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(ee||{}),Xi={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument","firstChild","lastChild","nextSibling","previousSibling"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ji={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ot={},go={},eu=()=>!!globalThis.Zone;function ti(e){if(Ot[e])return Ot[e];let t=globalThis[e],r=t.prototype,i=e in Xi?Xi[e]:void 0,n=!!(i&&i.every(f=>{var l,p;return!!((p=(l=Object.getOwnPropertyDescriptor(r,f))==null?void 0:l.get)!=null&&p.toString().includes("[native code]"))})),a=e in Ji?Ji[e]:void 0,u=!!(a&&a.every(f=>{var l;return typeof r[f]=="function"&&((l=r[f])==null?void 0:l.toString().includes("[native code]"))}));if(n&&u&&!eu())return Ot[e]=t.prototype,t.prototype;try{let f=document.createElement("iframe");f.style.display="none",document.body.appendChild(f);let l=f.contentWindow;if(!l)return t.prototype;let p=l[e].prototype;if(!p)return f.remove(),r;let o=navigator.userAgent;return o.includes("Safari")&&!o.includes("Chrome")?(f.classList.add("rr-block"),f.setAttribute("__rrwebUntaintedMutationObserver",""),go[e]=()=>f.remove()):f.remove(),Ot[e]=p}catch{return r}}var Pr={};function ce(e,t,r){var i,n;let a=(i=Pr[e])==null?void 0:i[r];if(a)return a.call(t);let u=ti(e),f=(n=Object.getOwnPropertyDescriptor(u,r))==null?void 0:n.get;return f?((Pr[e]||(Pr[e]={}))[r]=f,f.call(t)):t[r]}var Fr={};function yo(e,t,r){let i=`${e}.${String(r)}`;if(Fr[i])return Fr[i].bind(t);let a=ti(e)[r];return typeof a!="function"?t[r]:(Fr[i]=a,a.bind(t))}function tu(e){return ce("Node",e,"ownerDocument")}function ru(e){return ce("Node",e,"childNodes")}function nu(e){return ce("Node",e,"parentNode")}function iu(e){return ce("Node",e,"parentElement")}function su(e){return ce("Node",e,"textContent")}function ou(e){return ce("Node",e,"firstChild")}function au(e){return ce("Node",e,"lastChild")}function lu(e){return ce("Node",e,"nextSibling")}function uu(e){return ce("Node",e,"previousSibling")}function cu(e,t){return yo("Node",e,"contains")(t)}function fu(e){return yo("Node",e,"getRootNode")()}function hu(e){return!e||!("host"in e)?null:ce("ShadowRoot",e,"host")}function du(e){return e.styleSheets}function pu(e){return!e||!("shadowRoot"in e)?null:ce("Element",e,"shadowRoot")}function mu(e,t){return ce("Element",e,"querySelector")(t)}function gu(e,t){return ce("Element",e,"querySelectorAll")(t)}function yu(){return[ti("MutationObserver").constructor,go.MutationObserver??(()=>{})]}var wo=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(wo=()=>new Date().getTime());function wu(e,t,r){try{if(!(t in e))return()=>{};let i=e[t],n=r(i);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=n,()=>{e[t]=i}}catch{return()=>{}}}var ne={ownerDocument:tu,childNodes:ru,parentNode:nu,parentElement:iu,textContent:su,firstChild:ou,lastChild:au,nextSibling:lu,previousSibling:uu,contains:cu,getRootNode:fu,host:hu,styleSheets:du,shadowRoot:pu,querySelector:mu,querySelectorAll:gu,nowTimestamp:wo,mutationObserverCtor:yu,patch:wu};function bo(e){return e.nodeType===e.ELEMENT_NODE}function ct(e){let t=e&&"host"in e&&"mode"in e&&ne.host(e)||null;return!!(t&&"shadowRoot"in t&&ne.shadowRoot(t)===e)}function ft(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function bu(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function vu(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function qn(e){try{let t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&(r=e.ownerNode.baseURI);let i=Array.from(t,n=>vo(n,r)).join("");return bu(i)}catch{return null}}function vo(e,t){if(Cu(e)){let r;try{r=qn(e.styleSheet)||vu(e)}catch{r=e.cssText}return e.styleSheet.href?qt(r,e.styleSheet.href):r}else{let r=e.cssText;return Eu(e)&&e.selectorText.includes(":")&&(r=Su(r)),t?qt(r,t):r}}function Su(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Cu(e){return"styleSheet"in e}function Eu(e){return"selectorText"in e}var $t=class{constructor(){Yi(this,"idNodeMap",new Map),Yi(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){let i=this.getNode(t);if(i){let n=this.nodeMetaMap.get(i);n&&this.nodeMetaMap.set(r,n)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function xu(){return new $t}function Wt({element:e,maskInputOptions:t,tagName:r,type:i,value:n,maskInputFn:a}){let u=n||"",f=i&&ke(i);return(t[r.toLowerCase()]||f&&t[f])&&(a?u=a(u,e):u="*".repeat(u.length)),u}function ke(e){return e.toLowerCase()}var Ki="__rrweb_original__";function Ru(e){let t=e.getContext("2d");if(!t)return!0;let r=50;for(let i=0;i<e.width;i+=r)for(let n=0;n<e.height;n+=r){let a=t.getImageData,u=Ki in a?a[Ki]:a;if(new Uint32Array(u.call(t,i,n,Math.min(r,e.width-i),Math.min(r,e.height-n)).data.buffer).some(l=>l!==0))return!1}return!0}function zt(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?ke(t):null}function So(e,t){let r;try{r=new URL(e,t??window.location.href)}catch{return null}let i=/\.([0-9a-z]+)(?:$)/i,n=r.pathname.match(i);return n?.[1]??null}function Tu(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var Mu=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Nu=/^(?:[a-z+]+:)?\/\//i,Ou=/^www\..*/i,Iu=/^(data:)([^,]*),(.*)/i;function qt(e,t){return(e||"").replace(Mu,(r,i,n,a,u,f)=>{let l=n||u||f,p=i||a||"";if(!l)return r;if(Nu.test(l)||Ou.test(l))return`url(${p}${l}${p})`;if(Iu.test(l))return`url(${p}${l}${p})`;if(l[0]==="/")return`url(${p}${Tu(t)+l}${p})`;let o=l.split("#")[0],d=l.substring(o.length),c=t.split("#")[0].split("/"),s=o.split("/");c.pop();for(let m of s)m!=="."&&(m===".."?c.pop():c.push(m));return`url(${p}${c.join("/")}${d}${p})`})}var Co="(?:/\\*[^*]*\\*/)|[\\s;]",ku=new RegExp(`${Co}|\\b(0)px?`,"g"),Au=new RegExp(Co,"g");function It(e,t=!1){return t?e.replace(Au,""):e.replace(ku,"$1")}function Du(e,t,r=!1){let i=Array.from(t.childNodes),n=[],a=0;if(i.length>1&&e&&typeof e=="string"){let u=It(e,r),f=u.length/e.length;for(let l=1;l<i.length;l++)if(i[l].textContent&&typeof i[l].textContent=="string"){let p=It(i[l].textContent,r),o=100,d=3;for(;d<p.length&&(p[d].match(/[a-zA-Z0-9]/)||p.indexOf(p.substring(0,d),1)!==-1);d++);for(;d<p.length;d++){let c=p.substring(0,d),s=u.split(c),m=-1;if(s.length===2)m=s[0].length;else if(s.length>2&&s[0]===""&&i[l-1].textContent!=="")m=u.indexOf(c,1);else if(s.length===1){if(c=c.substring(0,c.length-1),s=u.split(c),s.length<=1)return n.push(e),n;d=o+1}else d===p.length-1&&(m=u.indexOf(c));if(s.length>=2&&d>o){let h=i[l-1].textContent;if(h&&typeof h=="string"){let g=It(h).length;m=u.indexOf(c,g)}m===-1&&(m=s[0].length)}if(m!==-1){let h=Math.floor(m/f);for(;h>0&&h<e.length;){if(a+=1,a>50*i.length)return n.push(e),n;let g=It(e.substring(0,h),r);if(g.length===m){n.push(e.substring(0,h)),e=e.substring(h),u=u.substring(m);break}else g.length<m?h+=Math.max(1,Math.floor((m-g.length)/f)):h-=Math.max(1,Math.floor((g.length-m)*f))}break}}}}return n.push(e),n}function _u(e,t){return Du(e,t).join("/* rr_split */")}var Lu=1,Pu=new RegExp("[^a-z0-9-_:]"),Vt=-2;function Eo(){return Lu++}function Fu(e){if(e instanceof HTMLFormElement)return"form";let t=ke(e.tagName);return Pu.test(t)?"div":t}var Ge,Qi,Uu=/^[^ \t\n\r\u000c]+/,Bu=/^[, \t\n\r\u000c]+/;function $u(e,t){if(t.trim()==="")return t;let r=0;function i(a){let u,f=a.exec(t.substring(r));return f?(u=f[0],r+=u.length,u):""}let n=[];for(;i(Bu),!(r>=t.length);){let a=i(Uu);if(a.slice(-1)===",")a=Je(e,a.substring(0,a.length-1)),n.push(a);else{let u="";a=Je(e,a);let f=!1;for(;;){let l=t.charAt(r);if(l===""){n.push((a+u).trim());break}else if(f)l===")"&&(f=!1);else if(l===","){r+=1,n.push((a+u).trim());break}else l==="("&&(f=!0);u+=l,r+=1}}}return n.join(", ")}var Zi=new WeakMap;function Je(e,t){return!t||t.trim()===""?t:ri(e,t)}function Wu(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function ri(e,t){let r=Zi.get(e);if(r||(r=e.createElement("a"),Zi.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function xo(e,t,r,i){return i&&(r==="src"||r==="href"&&!(t==="use"&&i[0]==="#")||r==="xlink:href"&&i[0]!=="#"||r==="background"&&["table","td","th"].includes(t)?Je(e,i):r==="srcset"?$u(e,i):r==="style"?qt(i,ri(e)):t==="object"&&r==="data"?Je(e,i):i)}function Ro(e,t,r){return["video","audio"].includes(e)&&ke(t)==="autoplay"}function zu(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){let n=e.classList[i];if(t.test(n))return!0}if(r)return e.matches(r)}catch{}return!1}function jt(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?jt(ne.parentNode(e),t,r):!1;for(let i=e.classList.length;i--;){let n=e.classList[i];if(t.test(n))return!0}return r?jt(ne.parentNode(e),t,r):!1}function To(e,t,r,i){let n;if(bo(e)){if(n=e,!ne.childNodes(n).length)return!1}else{if(ne.parentElement(e)===null)return!1;n=ne.parentElement(e)}try{if(typeof t=="string"){if(i){if(n.closest(`.${t}`))return!0}else if(n.classList.contains(t))return!0}else if(jt(n,t,i))return!0;if(r){if(i){if(n.closest(r))return!0}else if(n.matches(r))return!0}}catch{}return!1}function qu(e,t,r){let i=e.contentWindow;if(!i)return;let n=!1,a;try{a=i.document.readyState}catch{return}if(a!=="complete"){let f=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(f),n=!0,t()});return}let u="about:blank";if(i.location.href!==u||e.src===u||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Vu(e,t,r){let i=!1,n;try{n=e.sheet}catch{return}if(n)return;let a=setTimeout(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{clearTimeout(a),i=!0,t()})}function ju(e,t){let{doc:r,mirror:i,blockClass:n,blockSelector:a,needsMask:u,inlineStylesheet:f,maskInputOptions:l={},maskTextFn:p,maskInputFn:o,dataURLOptions:d={},inlineImages:c,recordCanvas:s,keepIframeSrcFn:m,newlyAddedElement:h=!1,cssCaptured:g=!1}=t,C=Hu(r,i);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:ee.Document,childNodes:[],compatMode:e.compatMode}:{type:ee.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ee.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return Yu(e,{doc:r,blockClass:n,blockSelector:a,inlineStylesheet:f,maskInputOptions:l,maskInputFn:o,dataURLOptions:d,inlineImages:c,recordCanvas:s,keepIframeSrcFn:m,newlyAddedElement:h,rootId:C});case e.TEXT_NODE:return Gu(e,{doc:r,needsMask:u,maskTextFn:p,rootId:C,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:ee.CDATA,textContent:"",rootId:C};case e.COMMENT_NODE:return{type:ee.Comment,textContent:ne.textContent(e)||"",rootId:C};default:return!1}}function Hu(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return r===1?void 0:r}function Gu(e,t){let{needsMask:r,maskTextFn:i,rootId:n,cssCaptured:a}=t,u=ne.parentNode(e),f=u&&u.tagName,l="",p=f==="STYLE"?!0:void 0,o=f==="SCRIPT"?!0:void 0;return o?l="SCRIPT_PLACEHOLDER":a||(l=ne.textContent(e),p&&l&&(l=qt(l,ri(t.doc)))),!p&&!o&&l&&r&&(l=i?i(l,ne.parentElement(e)):l.replace(/[\S]/g,"*")),{type:ee.Text,textContent:l||"",rootId:n}}function Yu(e,t){let{doc:r,blockClass:i,blockSelector:n,inlineStylesheet:a,maskInputOptions:u={},maskInputFn:f,dataURLOptions:l={},inlineImages:p,recordCanvas:o,keepIframeSrcFn:d,newlyAddedElement:c=!1,rootId:s}=t,m=zu(e,i,n),h=Fu(e),g={},C=e.attributes.length;for(let v=0;v<C;v++){let E=e.attributes[v];Ro(h,E.name,E.value)||(g[E.name]=xo(r,h,ke(E.name),E.value))}if(h==="link"&&a){let v=Array.from(r.styleSheets).find(b=>b.href===e.href),E=null;v&&(E=qn(v)),E&&(delete g.rel,delete g.href,g._cssText=E)}if(h==="style"&&e.sheet){let v=qn(e.sheet);v&&(e.childNodes.length>1&&(v=_u(v,e)),g._cssText=v)}if(["input","textarea","select"].includes(h)){let v=e.value,E=e.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&v?g.value=Wt({element:e,type:zt(e),tagName:h,value:v,maskInputOptions:u,maskInputFn:f}):E&&(g.checked=E)}if(h==="option"&&(e.selected&&!u.select?g.selected=!0:delete g.selected),h==="dialog"&&e.open&&(g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),h==="canvas"&&o){if(e.__context==="2d")Ru(e)||(g.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){let v=e.toDataURL(l.type,l.quality),E=r.createElement("canvas");E.width=e.width,E.height=e.height;let b=E.toDataURL(l.type,l.quality);v!==b&&(g.rr_dataURL=v)}}if(h==="img"&&p){Ge||(Ge=r.createElement("canvas"),Qi=Ge.getContext("2d"));let v=e,E=v.currentSrc||v.getAttribute("src")||"<unknown-src>",b=v.crossOrigin,y=()=>{v.removeEventListener("load",y);try{Ge.width=v.naturalWidth,Ge.height=v.naturalHeight,Qi.drawImage(v,0,0),g.rr_dataURL=Ge.toDataURL(l.type,l.quality)}catch(S){if(v.crossOrigin!=="anonymous"){v.crossOrigin="anonymous",v.complete&&v.naturalWidth!==0?y():v.addEventListener("load",y);return}else console.warn(`Cannot inline img src=${E}! Error: ${S}`)}v.crossOrigin==="anonymous"&&(b?g.crossOrigin=b:v.removeAttribute("crossorigin"))};v.complete&&v.naturalWidth!==0?y():v.addEventListener("load",y)}if(["audio","video"].includes(h)){let v=g;v.rr_mediaState=e.paused?"paused":"played",v.rr_mediaCurrentTime=e.currentTime,v.rr_mediaPlaybackRate=e.playbackRate,v.rr_mediaMuted=e.muted,v.rr_mediaLoop=e.loop,v.rr_mediaVolume=e.volume}if(c||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),m){let{width:v,height:E}=e.getBoundingClientRect();g={class:g.class,rr_width:`${v}px`,rr_height:`${E}px`}}h==="iframe"&&!d(g.src)&&(e.contentDocument||(g.rr_src=g.src),delete g.src);let w;try{customElements.get(h)&&(w=!0)}catch{}return{type:ee.Element,tagName:h,attributes:g,childNodes:[],isSVG:Wu(e)||void 0,needBlock:m,rootId:s,isCustom:w}}function q(e){return e==null?"":e.toLowerCase()}function Mo(e){return e===!0||e==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:e==="all",headMetaDescKeywords:e==="all",headTitleMutations:e==="all"}:e||{}}function Xu(e,t){if(t.comment&&e.type===ee.Comment)return!0;if(e.type===ee.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&So(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(q(e.attributes.name).match(/^msapplication-tile(image|color)$/)||q(e.attributes.name)==="application-name"||q(e.attributes.rel)==="icon"||q(e.attributes.rel)==="apple-touch-icon"||q(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&q(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(q(e.attributes.property).match(/^(og|twitter|fb):/)||q(e.attributes.name).match(/^(og|twitter):/)||q(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(q(e.attributes.name)==="robots"||q(e.attributes.name)==="googlebot"||q(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(q(e.attributes.name)==="author"||q(e.attributes.name)==="generator"||q(e.attributes.name)==="framework"||q(e.attributes.name)==="publisher"||q(e.attributes.name)==="progid"||q(e.attributes.property).match(/^article:/)||q(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(q(e.attributes.name)==="google-site-verification"||q(e.attributes.name)==="yandex-verification"||q(e.attributes.name)==="csrf-token"||q(e.attributes.name)==="p:domain_verify"||q(e.attributes.name)==="verify-v1"||q(e.attributes.name)==="verification"||q(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ke(e,t){let{doc:r,mirror:i,blockClass:n,blockSelector:a,maskTextClass:u,maskTextSelector:f,skipChild:l=!1,inlineStylesheet:p=!0,maskInputOptions:o={},maskTextFn:d,maskInputFn:c,slimDOMOptions:s,dataURLOptions:m={},inlineImages:h=!1,recordCanvas:g=!1,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:v=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:b=5e3,keepIframeSrcFn:y=()=>!1,newlyAddedElement:S=!1,cssCaptured:x=!1}=t,{needsMask:M}=t,{preserveWhiteSpace:T=!0}=t;M||(M=To(e,u,f,M===void 0));let k=ju(e,{doc:r,mirror:i,blockClass:n,blockSelector:a,needsMask:M,inlineStylesheet:p,maskInputOptions:o,maskTextFn:d,maskInputFn:c,dataURLOptions:m,inlineImages:h,recordCanvas:g,keepIframeSrcFn:y,newlyAddedElement:S,cssCaptured:x});if(!k)return console.warn(e,"not serialized"),null;let I;i.hasNode(e)?I=i.getId(e):Xu(k,s)||!T&&k.type===ee.Text&&!k.textContent.replace(/^\s+|\s+$/gm,"").length?I=Vt:I=Eo();let R=Object.assign(k,{id:I});if(i.add(e,R),I===Vt)return null;C&&C(e);let te=!l;if(R.type===ee.Element){te=te&&!R.needBlock,delete R.needBlock;let U=ne.shadowRoot(e);U&&ft(U)&&(R.isShadowHost=!0)}if((R.type===ee.Document||R.type===ee.Element)&&te){s.headWhitespace&&R.type===ee.Element&&R.tagName==="head"&&(T=!1);let U={doc:r,mirror:i,blockClass:n,blockSelector:a,needsMask:M,maskTextClass:u,maskTextSelector:f,skipChild:l,inlineStylesheet:p,maskInputOptions:o,maskTextFn:d,maskInputFn:c,slimDOMOptions:s,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:T,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:v,onStylesheetLoad:E,stylesheetLoadTimeout:b,keepIframeSrcFn:y,cssCaptured:!1};if(!(R.type===ee.Element&&R.tagName==="textarea"&&R.attributes.value!==void 0)){R.type===ee.Element&&R.attributes._cssText!==void 0&&typeof R.attributes._cssText=="string"&&(U.cssCaptured=!0);for(let j of Array.from(ne.childNodes(e))){let K=Ke(j,U);K&&R.childNodes.push(K)}}let P=null;if(bo(e)&&(P=ne.shadowRoot(e)))for(let j of Array.from(ne.childNodes(P))){let K=Ke(j,U);K&&(ft(P)&&(K.isShadow=!0),R.childNodes.push(K))}}let re=ne.parentNode(e);return re&&ct(re)&&ft(re)&&(R.isShadow=!0),R.type===ee.Element&&R.tagName==="iframe"&&qu(e,()=>{let U=e.contentDocument;if(U&&w){let P=Ke(U,{doc:U,mirror:i,blockClass:n,blockSelector:a,needsMask:M,maskTextClass:u,maskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:o,maskTextFn:d,maskInputFn:c,slimDOMOptions:s,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:T,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:v,onStylesheetLoad:E,stylesheetLoadTimeout:b,keepIframeSrcFn:y});P&&w(e,P)}},v),R.type===ee.Element&&R.tagName==="link"&&typeof R.attributes.rel=="string"&&(R.attributes.rel==="stylesheet"||R.attributes.rel==="preload"&&typeof R.attributes.href=="string"&&So(R.attributes.href)==="css")&&Vu(e,()=>{if(E){let U=Ke(e,{doc:r,mirror:i,blockClass:n,blockSelector:a,needsMask:M,maskTextClass:u,maskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:o,maskTextFn:d,maskInputFn:c,slimDOMOptions:s,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:T,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:v,onStylesheetLoad:E,stylesheetLoadTimeout:b,keepIframeSrcFn:y});U&&E(e,U)}},b),R}function Ju(e,t){let{mirror:r=new $t,blockClass:i="rr-block",blockSelector:n=null,maskTextClass:a="rr-mask",maskTextSelector:u=null,inlineStylesheet:f=!0,inlineImages:l=!1,recordCanvas:p=!1,maskAllInputs:o=!1,maskTextFn:d,maskInputFn:c,slimDOM:s=!1,dataURLOptions:m,preserveWhiteSpace:h,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:v,stylesheetLoadTimeout:E,keepIframeSrcFn:b=()=>!1}=t,y=o===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:o===!1?{password:!0}:o,S=Mo(s);return Ke(e,{doc:e,mirror:r,blockClass:i,blockSelector:n,maskTextClass:a,maskTextSelector:u,skipChild:!1,inlineStylesheet:f,maskInputOptions:y,maskTextFn:d,maskInputFn:c,slimDOMOptions:S,dataURLOptions:m,inlineImages:l,recordCanvas:p,preserveWhiteSpace:h,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:v,stylesheetLoadTimeout:E,keepIframeSrcFn:b,newlyAddedElement:!1})}var Ku=/(max|min)-device-(width|height)/,wh=new RegExp(Ku.source,"g");function Qu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Zu(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),r}var kt={exports:{}},es;function ec(){if(es)return kt.exports;es=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 kt.exports=t(),kt.exports.createColors=t,kt.exports}var tc={},rc=Object.freeze(Object.defineProperty({__proto__:null,default:tc},Symbol.toStringTag,{value:"Module"})),ve=Zu(rc),Ur,ts;function ni(){if(ts)return Ur;ts=1;let e=ec(),t=ve;class r extends Error{constructor(n,a,u,f,l,p){super(n),this.name="CssSyntaxError",this.reason=n,l&&(this.file=l),f&&(this.source=f),p&&(this.plugin=p),typeof a<"u"&&typeof u<"u"&&(typeof a=="number"?(this.line=a,this.column=u):(this.line=a.line,this.column=a.column,this.endLine=u.line,this.endColumn=u.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let a=this.source;n==null&&(n=e.isColorSupported),t&&n&&(a=t(a));let u=a.split(/\r?\n/),f=Math.max(this.line-3,0),l=Math.min(this.line+2,u.length),p=String(l).length,o,d;if(n){let{bold:c,gray:s,red:m}=e.createColors(!0);o=h=>c(m(h)),d=h=>s(h)}else o=d=c=>c;return u.slice(f,l).map((c,s)=>{let m=f+1+s,h=" "+(" "+m).slice(-p)+" | ";if(m===this.line){let g=d(h.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+d(h)+c+`
1
+ "use strict";(()=>{var iu=Object.defineProperty,su=(e,t,r)=>t in e?iu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,O=(e,t,r)=>su(e,typeof t!="symbol"?t+"":t,r),Ji,ou=Object.defineProperty,au=(e,t,r)=>t in e?ou(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ki=(e,t,r)=>au(e,typeof t!="symbol"?t+"":t,r),ee=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(ee||{}),Qi={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument","firstChild","lastChild","nextSibling","previousSibling"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Zi={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},It={},wo={},lu=()=>!!globalThis.Zone;function ni(e){if(It[e])return It[e];let t=globalThis[e],r=t.prototype,i=e in Qi?Qi[e]:void 0,n=!!(i&&i.every(f=>{var l,p;return!!((p=(l=Object.getOwnPropertyDescriptor(r,f))==null?void 0:l.get)!=null&&p.toString().includes("[native code]"))})),a=e in Zi?Zi[e]:void 0,u=!!(a&&a.every(f=>{var l;return typeof r[f]=="function"&&((l=r[f])==null?void 0:l.toString().includes("[native code]"))}));if(n&&u&&!lu())return It[e]=t.prototype,t.prototype;try{let f=document.createElement("iframe");f.style.display="none",document.body.appendChild(f);let l=f.contentWindow;if(!l)return t.prototype;let p=l[e].prototype;if(!p)return f.remove(),r;let o=navigator.userAgent;return o.includes("Safari")&&!o.includes("Chrome")?(f.classList.add("rr-block"),f.setAttribute("__rrwebUntaintedMutationObserver",""),wo[e]=()=>f.remove()):f.remove(),It[e]=p}catch{return r}}var Ur={};function ce(e,t,r){var i,n;let a=(i=Ur[e])==null?void 0:i[r];if(a)return a.call(t);let u=ni(e),f=(n=Object.getOwnPropertyDescriptor(u,r))==null?void 0:n.get;return f?((Ur[e]||(Ur[e]={}))[r]=f,f.call(t)):t[r]}var Br={};function vo(e,t,r){let i=`${e}.${String(r)}`;if(Br[i])return Br[i].bind(t);let a=ni(e)[r];return typeof a!="function"?t[r]:(Br[i]=a,a.bind(t))}function uu(e){return ce("Node",e,"ownerDocument")}function cu(e){return ce("Node",e,"childNodes")}function fu(e){return ce("Node",e,"parentNode")}function hu(e){return ce("Node",e,"parentElement")}function du(e){return ce("Node",e,"textContent")}function pu(e){return ce("Node",e,"firstChild")}function mu(e){return ce("Node",e,"lastChild")}function gu(e){return ce("Node",e,"nextSibling")}function yu(e){return ce("Node",e,"previousSibling")}function bu(e,t){return vo("Node",e,"contains")(t)}function wu(e){return vo("Node",e,"getRootNode")()}function vu(e){return!e||!("host"in e)?null:ce("ShadowRoot",e,"host")}function Su(e){return e.styleSheets}function Cu(e){return!e||!("shadowRoot"in e)?null:ce("Element",e,"shadowRoot")}function Eu(e,t){return ce("Element",e,"querySelector")(t)}function xu(e,t){return ce("Element",e,"querySelectorAll")(t)}function Ru(){return[ni("MutationObserver").constructor,wo.MutationObserver??(()=>{})]}var So=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(So=()=>new Date().getTime());function Tu(e,t,r){try{if(!(t in e))return()=>{};let i=e[t],n=r(i);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=n,()=>{e[t]=i}}catch{return()=>{}}}var ne={ownerDocument:uu,childNodes:cu,parentNode:fu,parentElement:hu,textContent:du,firstChild:pu,lastChild:mu,nextSibling:gu,previousSibling:yu,contains:bu,getRootNode:wu,host:vu,styleSheets:Su,shadowRoot:Cu,querySelector:Eu,querySelectorAll:xu,nowTimestamp:So,mutationObserverCtor:Ru,patch:Tu};function Co(e){return e.nodeType===e.ELEMENT_NODE}function ft(e){let t=e&&"host"in e&&"mode"in e&&ne.host(e)||null;return!!(t&&"shadowRoot"in t&&ne.shadowRoot(t)===e)}function ht(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Mu(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Nu(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function jn(e){try{let t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&(r=e.ownerNode.baseURI);let i=Array.from(t,n=>Eo(n,r)).join("");return Mu(i)}catch{return null}}function Eo(e,t){if(Iu(e)){let r;try{r=jn(e.styleSheet)||Nu(e)}catch{r=e.cssText}return e.styleSheet.href?Vt(r,e.styleSheet.href):r}else{let r=e.cssText;return ku(e)&&e.selectorText.includes(":")&&(r=Ou(r)),t?Vt(r,t):r}}function Ou(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Iu(e){return"styleSheet"in e}function ku(e){return"selectorText"in e}var Wt=class{constructor(){Ki(this,"idNodeMap",new Map),Ki(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){let i=this.getNode(t);if(i){let n=this.nodeMetaMap.get(i);n&&this.nodeMetaMap.set(r,n)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Au(){return new Wt}function zt({element:e,maskInputOptions:t,tagName:r,type:i,value:n,maskInputFn:a}){let u=n||"",f=i&&ke(i);return(t[r.toLowerCase()]||f&&t[f])&&(a?u=a(u,e):u="*".repeat(u.length)),u}function ke(e){return e.toLowerCase()}var es="__rrweb_original__";function Du(e){let t=e.getContext("2d");if(!t)return!0;let r=50;for(let i=0;i<e.width;i+=r)for(let n=0;n<e.height;n+=r){let a=t.getImageData,u=es in a?a[es]:a;if(new Uint32Array(u.call(t,i,n,Math.min(r,e.width-i),Math.min(r,e.height-n)).data.buffer).some(l=>l!==0))return!1}return!0}function qt(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?ke(t):null}function xo(e,t){let r;try{r=new URL(e,t??window.location.href)}catch{return null}let i=/\.([0-9a-z]+)(?:$)/i,n=r.pathname.match(i);return n?.[1]??null}function _u(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var Lu=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Pu=/^(?:[a-z+]+:)?\/\//i,Fu=/^www\..*/i,Uu=/^(data:)([^,]*),(.*)/i;function Vt(e,t){return(e||"").replace(Lu,(r,i,n,a,u,f)=>{let l=n||u||f,p=i||a||"";if(!l)return r;if(Pu.test(l)||Fu.test(l))return`url(${p}${l}${p})`;if(Uu.test(l))return`url(${p}${l}${p})`;if(l[0]==="/")return`url(${p}${_u(t)+l}${p})`;let o=l.split("#")[0],d=l.substring(o.length),c=t.split("#")[0].split("/"),s=o.split("/");c.pop();for(let m of s)m!=="."&&(m===".."?c.pop():c.push(m));return`url(${p}${c.join("/")}${d}${p})`})}var Ro="(?:/\\*[^*]*\\*/)|[\\s;]",Bu=new RegExp(`${Ro}|\\b(0)px?`,"g"),$u=new RegExp(Ro,"g");function kt(e,t=!1){return t?e.replace($u,""):e.replace(Bu,"$1")}function Wu(e,t,r=!1){let i=Array.from(t.childNodes),n=[],a=0;if(i.length>1&&e&&typeof e=="string"){let u=kt(e,r),f=u.length/e.length;for(let l=1;l<i.length;l++)if(i[l].textContent&&typeof i[l].textContent=="string"){let p=kt(i[l].textContent,r),o=100,d=3;for(;d<p.length&&(p[d].match(/[a-zA-Z0-9]/)||p.indexOf(p.substring(0,d),1)!==-1);d++);for(;d<p.length;d++){let c=p.substring(0,d),s=u.split(c),m=-1;if(s.length===2)m=s[0].length;else if(s.length>2&&s[0]===""&&i[l-1].textContent!=="")m=u.indexOf(c,1);else if(s.length===1){if(c=c.substring(0,c.length-1),s=u.split(c),s.length<=1)return n.push(e),n;d=o+1}else d===p.length-1&&(m=u.indexOf(c));if(s.length>=2&&d>o){let h=i[l-1].textContent;if(h&&typeof h=="string"){let g=kt(h).length;m=u.indexOf(c,g)}m===-1&&(m=s[0].length)}if(m!==-1){let h=Math.floor(m/f);for(;h>0&&h<e.length;){if(a+=1,a>50*i.length)return n.push(e),n;let g=kt(e.substring(0,h),r);if(g.length===m){n.push(e.substring(0,h)),e=e.substring(h),u=u.substring(m);break}else g.length<m?h+=Math.max(1,Math.floor((m-g.length)/f)):h-=Math.max(1,Math.floor((g.length-m)*f))}break}}}}return n.push(e),n}function zu(e,t){return Wu(e,t).join("/* rr_split */")}var qu=1,Vu=new RegExp("[^a-z0-9-_:]"),jt=-2;function To(){return qu++}function ju(e){if(e instanceof HTMLFormElement)return"form";let t=ke(e.tagName);return Vu.test(t)?"div":t}var Ge,ts,Hu=/^[^ \t\n\r\u000c]+/,Gu=/^[, \t\n\r\u000c]+/;function Yu(e,t){if(t.trim()==="")return t;let r=0;function i(a){let u,f=a.exec(t.substring(r));return f?(u=f[0],r+=u.length,u):""}let n=[];for(;i(Gu),!(r>=t.length);){let a=i(Hu);if(a.slice(-1)===",")a=Je(e,a.substring(0,a.length-1)),n.push(a);else{let u="";a=Je(e,a);let f=!1;for(;;){let l=t.charAt(r);if(l===""){n.push((a+u).trim());break}else if(f)l===")"&&(f=!1);else if(l===","){r+=1,n.push((a+u).trim());break}else l==="("&&(f=!0);u+=l,r+=1}}}return n.join(", ")}var rs=new WeakMap;function Je(e,t){return!t||t.trim()===""?t:ii(e,t)}function Xu(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function ii(e,t){let r=rs.get(e);if(r||(r=e.createElement("a"),rs.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function Mo(e,t,r,i){return i&&(r==="src"||r==="href"&&!(t==="use"&&i[0]==="#")||r==="xlink:href"&&i[0]!=="#"||r==="background"&&["table","td","th"].includes(t)?Je(e,i):r==="srcset"?Yu(e,i):r==="style"?Vt(i,ii(e)):t==="object"&&r==="data"?Je(e,i):i)}function No(e,t,r){return["video","audio"].includes(e)&&ke(t)==="autoplay"}function Ju(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){let n=e.classList[i];if(t.test(n))return!0}if(r)return e.matches(r)}catch{}return!1}function Ht(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?Ht(ne.parentNode(e),t,r):!1;for(let i=e.classList.length;i--;){let n=e.classList[i];if(t.test(n))return!0}return r?Ht(ne.parentNode(e),t,r):!1}function Oo(e,t,r,i){let n;if(Co(e)){if(n=e,!ne.childNodes(n).length)return!1}else{if(ne.parentElement(e)===null)return!1;n=ne.parentElement(e)}try{if(typeof t=="string"){if(i){if(n.closest(`.${t}`))return!0}else if(n.classList.contains(t))return!0}else if(Ht(n,t,i))return!0;if(r){if(i){if(n.closest(r))return!0}else if(n.matches(r))return!0}}catch{}return!1}function Ku(e,t,r){let i=e.contentWindow;if(!i)return;let n=!1,a;try{a=i.document.readyState}catch{return}if(a!=="complete"){let f=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(f),n=!0,t()});return}let u="about:blank";if(i.location.href!==u||e.src===u||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Qu(e,t,r){let i=!1,n;try{n=e.sheet}catch{return}if(n)return;let a=setTimeout(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{clearTimeout(a),i=!0,t()})}function Zu(e,t){let{doc:r,mirror:i,blockClass:n,blockSelector:a,needsMask:u,inlineStylesheet:f,maskInputOptions:l={},maskTextFn:p,maskInputFn:o,dataURLOptions:d={},inlineImages:c,recordCanvas:s,keepIframeSrcFn:m,newlyAddedElement:h=!1,cssCaptured:g=!1}=t,C=ec(r,i);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:ee.Document,childNodes:[],compatMode:e.compatMode}:{type:ee.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ee.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return rc(e,{doc:r,blockClass:n,blockSelector:a,inlineStylesheet:f,maskInputOptions:l,maskInputFn:o,dataURLOptions:d,inlineImages:c,recordCanvas:s,keepIframeSrcFn:m,newlyAddedElement:h,rootId:C});case e.TEXT_NODE:return tc(e,{doc:r,needsMask:u,maskTextFn:p,rootId:C,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:ee.CDATA,textContent:"",rootId:C};case e.COMMENT_NODE:return{type:ee.Comment,textContent:ne.textContent(e)||"",rootId:C};default:return!1}}function ec(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return r===1?void 0:r}function tc(e,t){let{needsMask:r,maskTextFn:i,rootId:n,cssCaptured:a}=t,u=ne.parentNode(e),f=u&&u.tagName,l="",p=f==="STYLE"?!0:void 0,o=f==="SCRIPT"?!0:void 0;return o?l="SCRIPT_PLACEHOLDER":a||(l=ne.textContent(e),p&&l&&(l=Vt(l,ii(t.doc)))),!p&&!o&&l&&r&&(l=i?i(l,ne.parentElement(e)):l.replace(/[\S]/g,"*")),{type:ee.Text,textContent:l||"",rootId:n}}function rc(e,t){let{doc:r,blockClass:i,blockSelector:n,inlineStylesheet:a,maskInputOptions:u={},maskInputFn:f,dataURLOptions:l={},inlineImages:p,recordCanvas:o,keepIframeSrcFn:d,newlyAddedElement:c=!1,rootId:s}=t,m=Ju(e,i,n),h=ju(e),g={},C=e.attributes.length;for(let v=0;v<C;v++){let E=e.attributes[v];No(h,E.name,E.value)||(g[E.name]=Mo(r,h,ke(E.name),E.value))}if(h==="link"&&a){let v=Array.from(r.styleSheets).find(w=>w.href===e.href),E=null;v&&(E=jn(v)),E&&(delete g.rel,delete g.href,g._cssText=E)}if(h==="style"&&e.sheet){let v=jn(e.sheet);v&&(e.childNodes.length>1&&(v=zu(v,e)),g._cssText=v)}if(["input","textarea","select"].includes(h)){let v=e.value,E=e.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&v?g.value=zt({element:e,type:qt(e),tagName:h,value:v,maskInputOptions:u,maskInputFn:f}):E&&(g.checked=E)}if(h==="option"&&(e.selected&&!u.select?g.selected=!0:delete g.selected),h==="dialog"&&e.open&&(g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),h==="canvas"&&o){if(e.__context==="2d")Du(e)||(g.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){let v=e.toDataURL(l.type,l.quality),E=r.createElement("canvas");E.width=e.width,E.height=e.height;let w=E.toDataURL(l.type,l.quality);v!==w&&(g.rr_dataURL=v)}}if(h==="img"&&p){Ge||(Ge=r.createElement("canvas"),ts=Ge.getContext("2d"));let v=e,E=v.currentSrc||v.getAttribute("src")||"<unknown-src>",w=v.crossOrigin,y=()=>{v.removeEventListener("load",y);try{Ge.width=v.naturalWidth,Ge.height=v.naturalHeight,ts.drawImage(v,0,0),g.rr_dataURL=Ge.toDataURL(l.type,l.quality)}catch(S){if(v.crossOrigin!=="anonymous"){v.crossOrigin="anonymous",v.complete&&v.naturalWidth!==0?y():v.addEventListener("load",y);return}else console.warn(`Cannot inline img src=${E}! Error: ${S}`)}v.crossOrigin==="anonymous"&&(w?g.crossOrigin=w:v.removeAttribute("crossorigin"))};v.complete&&v.naturalWidth!==0?y():v.addEventListener("load",y)}if(["audio","video"].includes(h)){let v=g;v.rr_mediaState=e.paused?"paused":"played",v.rr_mediaCurrentTime=e.currentTime,v.rr_mediaPlaybackRate=e.playbackRate,v.rr_mediaMuted=e.muted,v.rr_mediaLoop=e.loop,v.rr_mediaVolume=e.volume}if(c||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),m){let{width:v,height:E}=e.getBoundingClientRect();g={class:g.class,rr_width:`${v}px`,rr_height:`${E}px`}}h==="iframe"&&!d(g.src)&&(e.contentDocument||(g.rr_src=g.src),delete g.src);let b;try{customElements.get(h)&&(b=!0)}catch{}return{type:ee.Element,tagName:h,attributes:g,childNodes:[],isSVG:Xu(e)||void 0,needBlock:m,rootId:s,isCustom:b}}function q(e){return e==null?"":e.toLowerCase()}function Io(e){return e===!0||e==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:e==="all",headMetaDescKeywords:e==="all",headTitleMutations:e==="all"}:e||{}}function nc(e,t){if(t.comment&&e.type===ee.Comment)return!0;if(e.type===ee.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&xo(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(q(e.attributes.name).match(/^msapplication-tile(image|color)$/)||q(e.attributes.name)==="application-name"||q(e.attributes.rel)==="icon"||q(e.attributes.rel)==="apple-touch-icon"||q(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&q(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(q(e.attributes.property).match(/^(og|twitter|fb):/)||q(e.attributes.name).match(/^(og|twitter):/)||q(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(q(e.attributes.name)==="robots"||q(e.attributes.name)==="googlebot"||q(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(q(e.attributes.name)==="author"||q(e.attributes.name)==="generator"||q(e.attributes.name)==="framework"||q(e.attributes.name)==="publisher"||q(e.attributes.name)==="progid"||q(e.attributes.property).match(/^article:/)||q(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(q(e.attributes.name)==="google-site-verification"||q(e.attributes.name)==="yandex-verification"||q(e.attributes.name)==="csrf-token"||q(e.attributes.name)==="p:domain_verify"||q(e.attributes.name)==="verify-v1"||q(e.attributes.name)==="verification"||q(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ke(e,t){let{doc:r,mirror:i,blockClass:n,blockSelector:a,maskTextClass:u,maskTextSelector:f,skipChild:l=!1,inlineStylesheet:p=!0,maskInputOptions:o={},maskTextFn:d,maskInputFn:c,slimDOMOptions:s,dataURLOptions:m={},inlineImages:h=!1,recordCanvas:g=!1,onSerialize:C,onIframeLoad:b,iframeLoadTimeout:v=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:w=5e3,keepIframeSrcFn:y=()=>!1,newlyAddedElement:S=!1,cssCaptured:x=!1}=t,{needsMask:M}=t,{preserveWhiteSpace:T=!0}=t;M||(M=Oo(e,u,f,M===void 0));let k=Zu(e,{doc:r,mirror:i,blockClass:n,blockSelector:a,needsMask:M,inlineStylesheet:p,maskInputOptions:o,maskTextFn:d,maskInputFn:c,dataURLOptions:m,inlineImages:h,recordCanvas:g,keepIframeSrcFn:y,newlyAddedElement:S,cssCaptured:x});if(!k)return console.warn(e,"not serialized"),null;let I;i.hasNode(e)?I=i.getId(e):nc(k,s)||!T&&k.type===ee.Text&&!k.textContent.replace(/^\s+|\s+$/gm,"").length?I=jt:I=To();let R=Object.assign(k,{id:I});if(i.add(e,R),I===jt)return null;C&&C(e);let te=!l;if(R.type===ee.Element){te=te&&!R.needBlock,delete R.needBlock;let U=ne.shadowRoot(e);U&&ht(U)&&(R.isShadowHost=!0)}if((R.type===ee.Document||R.type===ee.Element)&&te){s.headWhitespace&&R.type===ee.Element&&R.tagName==="head"&&(T=!1);let U={doc:r,mirror:i,blockClass:n,blockSelector:a,needsMask:M,maskTextClass:u,maskTextSelector:f,skipChild:l,inlineStylesheet:p,maskInputOptions:o,maskTextFn:d,maskInputFn:c,slimDOMOptions:s,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:T,onSerialize:C,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:E,stylesheetLoadTimeout:w,keepIframeSrcFn:y,cssCaptured:!1};if(!(R.type===ee.Element&&R.tagName==="textarea"&&R.attributes.value!==void 0)){R.type===ee.Element&&R.attributes._cssText!==void 0&&typeof R.attributes._cssText=="string"&&(U.cssCaptured=!0);for(let j of Array.from(ne.childNodes(e))){let Q=Ke(j,U);Q&&R.childNodes.push(Q)}}let P=null;if(Co(e)&&(P=ne.shadowRoot(e)))for(let j of Array.from(ne.childNodes(P))){let Q=Ke(j,U);Q&&(ht(P)&&(Q.isShadow=!0),R.childNodes.push(Q))}}let re=ne.parentNode(e);return re&&ft(re)&&ht(re)&&(R.isShadow=!0),R.type===ee.Element&&R.tagName==="iframe"&&Ku(e,()=>{let U=e.contentDocument;if(U&&b){let P=Ke(U,{doc:U,mirror:i,blockClass:n,blockSelector:a,needsMask:M,maskTextClass:u,maskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:o,maskTextFn:d,maskInputFn:c,slimDOMOptions:s,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:T,onSerialize:C,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:E,stylesheetLoadTimeout:w,keepIframeSrcFn:y});P&&b(e,P)}},v),R.type===ee.Element&&R.tagName==="link"&&typeof R.attributes.rel=="string"&&(R.attributes.rel==="stylesheet"||R.attributes.rel==="preload"&&typeof R.attributes.href=="string"&&xo(R.attributes.href)==="css")&&Qu(e,()=>{if(E){let U=Ke(e,{doc:r,mirror:i,blockClass:n,blockSelector:a,needsMask:M,maskTextClass:u,maskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:o,maskTextFn:d,maskInputFn:c,slimDOMOptions:s,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:T,onSerialize:C,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:E,stylesheetLoadTimeout:w,keepIframeSrcFn:y});U&&E(e,U)}},w),R}function ic(e,t){let{mirror:r=new Wt,blockClass:i="rr-block",blockSelector:n=null,maskTextClass:a="rr-mask",maskTextSelector:u=null,inlineStylesheet:f=!0,inlineImages:l=!1,recordCanvas:p=!1,maskAllInputs:o=!1,maskTextFn:d,maskInputFn:c,slimDOM:s=!1,dataURLOptions:m,preserveWhiteSpace:h,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:b,onStylesheetLoad:v,stylesheetLoadTimeout:E,keepIframeSrcFn:w=()=>!1}=t,y=o===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:o===!1?{password:!0}:o,S=Io(s);return Ke(e,{doc:e,mirror:r,blockClass:i,blockSelector:n,maskTextClass:a,maskTextSelector:u,skipChild:!1,inlineStylesheet:f,maskInputOptions:y,maskTextFn:d,maskInputFn:c,slimDOMOptions:S,dataURLOptions:m,inlineImages:l,recordCanvas:p,preserveWhiteSpace:h,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:b,onStylesheetLoad:v,stylesheetLoadTimeout:E,keepIframeSrcFn:w,newlyAddedElement:!1})}var sc=/(max|min)-device-(width|height)/,Ah=new RegExp(sc.source,"g");function oc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ac(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),r}var At={exports:{}},ns;function lc(){if(ns)return At.exports;ns=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 At.exports=t(),At.exports.createColors=t,At.exports}var uc={},cc=Object.freeze(Object.defineProperty({__proto__:null,default:uc},Symbol.toStringTag,{value:"Module"})),ve=ac(cc),$r,is;function si(){if(is)return $r;is=1;let e=lc(),t=ve;class r extends Error{constructor(n,a,u,f,l,p){super(n),this.name="CssSyntaxError",this.reason=n,l&&(this.file=l),f&&(this.source=f),p&&(this.plugin=p),typeof a<"u"&&typeof u<"u"&&(typeof a=="number"?(this.line=a,this.column=u):(this.line=a.line,this.column=a.column,this.endLine=u.line,this.endColumn=u.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let a=this.source;n==null&&(n=e.isColorSupported),t&&n&&(a=t(a));let u=a.split(/\r?\n/),f=Math.max(this.line-3,0),l=Math.min(this.line+2,u.length),p=String(l).length,o,d;if(n){let{bold:c,gray:s,red:m}=e.createColors(!0);o=h=>c(m(h)),d=h=>s(h)}else o=d=c=>c;return u.slice(f,l).map((c,s)=>{let m=f+1+s,h=" "+(" "+m).slice(-p)+" | ";if(m===this.line){let g=d(h.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+d(h)+c+`
2
2
  `+g+o("^")}return" "+d(h)+c}).join(`
3
3
  `)}toString(){let n=this.showSourceCode();return n&&(n=`
4
4
 
5
5
  `+n+`
6
- `),this.name+": "+this.message+n}}return Ur=r,r.default=r,Ur}var At={},rs;function ii(){return rs||(rs=1,At.isClean=Symbol("isClean"),At.my=Symbol("my")),At}var Br,ns;function No(){if(ns)return Br;ns=1;let e={after:`
6
+ `),this.name+": "+this.message+n}}return $r=r,r.default=r,$r}var Dt={},ss;function oi(){return ss||(ss=1,Dt.isClean=Symbol("isClean"),Dt.my=Symbol("my")),Dt}var Wr,os;function ko(){if(os)return Wr;os=1;let e={after:`
7
7
  `,beforeClose:`
8
8
  `,beforeComment:`
9
9
  `,beforeDecl:`
@@ -14,21 +14,21 @@
14
14
  `)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(a,null,"beforeDecl"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeDecl(n,a){let u;return n.walkDecls(f=>{if(typeof f.raws.before<"u")return u=f.raws.before,u.includes(`
15
15
  `)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(a,null,"beforeRule"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeOpen(n){let a;return n.walk(u=>{if(u.type!=="decl"&&(a=u.raws.between,typeof a<"u"))return!1}),a}rawBeforeRule(n){let a;return n.walk(u=>{if(u.nodes&&(u.parent!==n||n.first!==u)&&typeof u.raws.before<"u")return a=u.raws.before,a.includes(`
16
16
  `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawColon(n){let a;return n.walkDecls(u=>{if(typeof u.raws.between<"u")return a=u.raws.between.replace(/[^\s:]/g,""),!1}),a}rawEmptyBody(n){let a;return n.walk(u=>{if(u.nodes&&u.nodes.length===0&&(a=u.raws.after,typeof a<"u"))return!1}),a}rawIndent(n){if(n.raws.indent)return n.raws.indent;let a;return n.walk(u=>{let f=u.parent;if(f&&f!==n&&f.parent&&f.parent===n&&typeof u.raws.before<"u"){let l=u.raws.before.split(`
17
- `);return a=l[l.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(n){let a;return n.walk(u=>{if(u.nodes&&u.nodes.length&&u.last.type==="decl"&&(a=u.raws.semicolon,typeof a<"u"))return!1}),a}rawValue(n,a){let u=n[a],f=n.raws[a];return f&&f.value===u?f.raw:u}root(n){this.body(n),n.raws.after&&this.builder(n.raws.after)}rule(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end")}stringify(n,a){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,a)}}return Br=r,r.default=r,Br}var $r,is;function Xt(){if(is)return $r;is=1;let e=No();function t(r,i){new e(i).stringify(r)}return $r=t,t.default=t,$r}var Wr,ss;function Jt(){if(ss)return Wr;ss=1;let{isClean:e,my:t}=ii(),r=ni(),i=No(),n=Xt();function a(f,l){let p=new f.constructor;for(let o in f){if(!Object.prototype.hasOwnProperty.call(f,o)||o==="proxyCache")continue;let d=f[o],c=typeof d;o==="parent"&&c==="object"?l&&(p[o]=l):o==="source"?p[o]=d:Array.isArray(d)?p[o]=d.map(s=>a(s,p)):(c==="object"&&d!==null&&(d=a(d)),p[o]=d)}return p}class u{constructor(l={}){this.raws={},this[e]=!1,this[t]=!0;for(let p in l)if(p==="nodes"){this.nodes=[];for(let o of l[p])typeof o.clone=="function"?this.append(o.clone()):this.append(o)}else this[p]=l[p]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let p=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${p.input.from}:${p.start.line}:${p.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let p in l)this[p]=l[p];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let p=a(this);for(let o in l)p[o]=l[o];return p}cloneAfter(l={}){let p=this.clone(l);return this.parent.insertAfter(this,p),p}cloneBefore(l={}){let p=this.clone(l);return this.parent.insertBefore(this,p),p}error(l,p={}){if(this.source){let{end:o,start:d}=this.rangeBy(p);return this.source.input.error(l,{column:d.column,line:d.line},{column:o.column,line:o.line},p)}return new r(l)}getProxyProcessor(){return{get(l,p){return p==="proxyOf"?l:p==="root"?()=>l.root().toProxy():l[p]},set(l,p,o){return l[p]===o||(l[p]=o,(p==="prop"||p==="value"||p==="name"||p==="params"||p==="important"||p==="text")&&l.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let l=this;for(;l=l.parent;)l[e]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l,p){let o=this.source.start;if(l.index)o=this.positionInside(l.index,p);else if(l.word){p=this.toString();let d=p.indexOf(l.word);d!==-1&&(o=this.positionInside(d,p))}return o}positionInside(l,p){let o=p||this.toString(),d=this.source.start.column,c=this.source.start.line;for(let s=0;s<l;s++)o[s]===`
18
- `?(d=1,c+=1):d+=1;return{column:d,line:c}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l){let p={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:p.column+1,line:p.line};if(l.word){let d=this.toString(),c=d.indexOf(l.word);c!==-1&&(p=this.positionInside(c,d),o=this.positionInside(c+l.word.length,d))}else l.start?p={column:l.start.column,line:l.start.line}:l.index&&(p=this.positionInside(l.index)),l.end?o={column:l.end.column,line:l.end.line}:typeof l.endIndex=="number"?o=this.positionInside(l.endIndex):l.index&&(o=this.positionInside(l.index+1));return(o.line<p.line||o.line===p.line&&o.column<=p.column)&&(o={column:p.column+1,line:p.line}),{end:o,start:p}}raw(l,p){return new i().raw(this,l,p)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let p=this,o=!1;for(let d of l)d===this?o=!0:o?(this.parent.insertAfter(p,d),p=d):this.parent.insertBefore(p,d);o||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,p){let o={},d=p==null;p=p||new Map;let c=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let m=this[s];if(Array.isArray(m))o[s]=m.map(h=>typeof h=="object"&&h.toJSON?h.toJSON(null,p):h);else if(typeof m=="object"&&m.toJSON)o[s]=m.toJSON(null,p);else if(s==="source"){let h=p.get(m.input);h==null&&(h=c,p.set(m.input,c),c++),o[s]={end:m.end,inputId:h,start:m.start}}else o[s]=m}return d&&(o.inputs=[...p.keys()].map(s=>s.toJSON())),o}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=n){l.stringify&&(l=l.stringify);let p="";return l(this,o=>{p+=o}),p}warn(l,p,o){let d={node:this};for(let c in o)d[c]=o[c];return l.warn(p,d)}get proxyOf(){return this}}return Wr=u,u.default=u,Wr}var zr,os;function Kt(){if(os)return zr;os=1;let e=Jt();class t extends e{constructor(i){i&&typeof i.value<"u"&&typeof i.value!="string"&&(i={...i,value:String(i.value)}),super(i),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return zr=t,t.default=t,zr}var qr,as;function nc(){if(as)return qr;as=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return qr={nanoid:(i=21)=>{let n="",a=i;for(;a--;)n+=e[Math.random()*64|0];return n},customAlphabet:(i,n=21)=>(a=n)=>{let u="",f=a;for(;f--;)u+=i[Math.random()*i.length|0];return u}},qr}var Vr,ls;function Oo(){if(ls)return Vr;ls=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ve,{existsSync:r,readFileSync:i}=ve,{dirname:n,join:a}=ve;function u(l){return Buffer?Buffer.from(l,"base64").toString():window.atob(l)}class f{constructor(p,o){if(o.map===!1)return;this.loadAnnotation(p),this.inline=this.startWith(this.annotation,"data:");let d=o.map?o.map.prev:void 0,c=this.loadMap(o.from,d);!this.mapFile&&o.from&&(this.mapFile=o.from),this.mapFile&&(this.root=n(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(p){let o=/^data:application\/json;charset=utf-?8;base64,/,d=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(c.test(p)||s.test(p))return decodeURIComponent(p.substr(RegExp.lastMatch.length));if(o.test(p)||d.test(p))return u(p.substr(RegExp.lastMatch.length));let m=p.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(p){return p.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(p){return typeof p!="object"?!1:typeof p.mappings=="string"||typeof p._mappings=="string"||Array.isArray(p.sections)}loadAnnotation(p){let o=p.match(/\/\*\s*# sourceMappingURL=/gm);if(!o)return;let d=p.lastIndexOf(o.pop()),c=p.indexOf("*/",d);d>-1&&c>-1&&(this.annotation=this.getAnnotationURL(p.substring(d,c)))}loadFile(p){if(this.root=n(p),r(p))return this.mapFile=p,i(p,"utf-8").toString().trim()}loadMap(p,o){if(o===!1)return!1;if(o){if(typeof o=="string")return o;if(typeof o=="function"){let d=o(p);if(d){let c=this.loadFile(d);if(!c)throw new Error("Unable to load previous source map: "+d.toString());return c}}else{if(o instanceof e)return t.fromSourceMap(o).toString();if(o instanceof t)return o.toString();if(this.isMap(o))return JSON.stringify(o);throw new Error("Unsupported previous source map format: "+o.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let d=this.annotation;return p&&(d=a(n(p),d)),this.loadFile(d)}}}startWith(p,o){return p?p.substr(0,o.length)===o:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Vr=f,f.default=f,Vr}var jr,us;function Qt(){if(us)return jr;us=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ve,{fileURLToPath:r,pathToFileURL:i}=ve,{isAbsolute:n,resolve:a}=ve,{nanoid:u}=nc(),f=ve,l=ni(),p=Oo(),o=Symbol("fromOffsetCache"),d=!!(e&&t),c=!!(a&&n);class s{constructor(h,g={}){if(h===null||typeof h>"u"||typeof h=="object"&&!h.toString)throw new Error(`PostCSS received ${h} instead of CSS string`);if(this.css=h.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!c||/^\w+:\/\//.test(g.from)||n(g.from)?this.file=g.from:this.file=a(g.from)),c&&d){let C=new p(this.css,g);if(C.text){this.map=C;let w=C.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+u(6)+">"),this.map&&(this.map.file=this.from)}error(h,g,C,w={}){let v,E,b;if(g&&typeof g=="object"){let S=g,x=C;if(typeof S.offset=="number"){let M=this.fromOffset(S.offset);g=M.line,C=M.col}else g=S.line,C=S.column;if(typeof x.offset=="number"){let M=this.fromOffset(x.offset);E=M.line,b=M.col}else E=x.line,b=x.column}else if(!C){let S=this.fromOffset(g);g=S.line,C=S.col}let y=this.origin(g,C,E,b);return y?v=new l(h,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,w.plugin):v=new l(h,E===void 0?g:{column:C,line:g},E===void 0?C:{column:b,line:E},this.css,this.file,w.plugin),v.input={column:C,endColumn:b,endLine:E,line:g,source:this.css},this.file&&(i&&(v.input.url=i(this.file).toString()),v.input.file=this.file),v}fromOffset(h){let g,C;if(this[o])C=this[o];else{let v=this.css.split(`
19
- `);C=new Array(v.length);let E=0;for(let b=0,y=v.length;b<y;b++)C[b]=E,E+=v[b].length+1;this[o]=C}g=C[C.length-1];let w=0;if(h>=g)w=C.length-1;else{let v=C.length-2,E;for(;w<v;)if(E=w+(v-w>>1),h<C[E])v=E-1;else if(h>=C[E+1])w=E+1;else{w=E;break}}return{col:h-C[w]+1,line:w+1}}mapResolve(h){return/^\w+:\/\//.test(h)?h:a(this.map.consumer().sourceRoot||this.map.root||".",h)}origin(h,g,C,w){if(!this.map)return!1;let v=this.map.consumer(),E=v.originalPositionFor({column:g,line:h});if(!E.source)return!1;let b;typeof C=="number"&&(b=v.originalPositionFor({column:w,line:C}));let y;n(E.source)?y=i(E.source):y=new URL(E.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let S={column:E.column,endColumn:b&&b.column,endLine:b&&b.line,line:E.line,url:y.toString()};if(y.protocol==="file:")if(r)S.file=r(y);else throw new Error("file: protocol is not available in this PostCSS build");let x=v.sourceContentFor(E.source);return x&&(S.source=x),S}toJSON(){let h={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(h[g]=this[g]);return this.map&&(h.map={...this.map},h.map.consumerCache&&(h.map.consumerCache=void 0)),h}get from(){return this.file||this.id}}return jr=s,s.default=s,f&&f.registerInput&&f.registerInput(s),jr}var Hr,cs;function Io(){if(cs)return Hr;cs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ve,{dirname:r,relative:i,resolve:n,sep:a}=ve,{pathToFileURL:u}=ve,f=Qt(),l=!!(e&&t),p=!!(r&&n&&i&&a);class o{constructor(c,s,m,h){this.stringify=c,this.mapOpts=m.map||{},this.root=s,this.opts=m,this.css=h,this.originalCSS=h,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let s=`
17
+ `);return a=l[l.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(n){let a;return n.walk(u=>{if(u.nodes&&u.nodes.length&&u.last.type==="decl"&&(a=u.raws.semicolon,typeof a<"u"))return!1}),a}rawValue(n,a){let u=n[a],f=n.raws[a];return f&&f.value===u?f.raw:u}root(n){this.body(n),n.raws.after&&this.builder(n.raws.after)}rule(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end")}stringify(n,a){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,a)}}return Wr=r,r.default=r,Wr}var zr,as;function Jt(){if(as)return zr;as=1;let e=ko();function t(r,i){new e(i).stringify(r)}return zr=t,t.default=t,zr}var qr,ls;function Kt(){if(ls)return qr;ls=1;let{isClean:e,my:t}=oi(),r=si(),i=ko(),n=Jt();function a(f,l){let p=new f.constructor;for(let o in f){if(!Object.prototype.hasOwnProperty.call(f,o)||o==="proxyCache")continue;let d=f[o],c=typeof d;o==="parent"&&c==="object"?l&&(p[o]=l):o==="source"?p[o]=d:Array.isArray(d)?p[o]=d.map(s=>a(s,p)):(c==="object"&&d!==null&&(d=a(d)),p[o]=d)}return p}class u{constructor(l={}){this.raws={},this[e]=!1,this[t]=!0;for(let p in l)if(p==="nodes"){this.nodes=[];for(let o of l[p])typeof o.clone=="function"?this.append(o.clone()):this.append(o)}else this[p]=l[p]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let p=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${p.input.from}:${p.start.line}:${p.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let p in l)this[p]=l[p];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let p=a(this);for(let o in l)p[o]=l[o];return p}cloneAfter(l={}){let p=this.clone(l);return this.parent.insertAfter(this,p),p}cloneBefore(l={}){let p=this.clone(l);return this.parent.insertBefore(this,p),p}error(l,p={}){if(this.source){let{end:o,start:d}=this.rangeBy(p);return this.source.input.error(l,{column:d.column,line:d.line},{column:o.column,line:o.line},p)}return new r(l)}getProxyProcessor(){return{get(l,p){return p==="proxyOf"?l:p==="root"?()=>l.root().toProxy():l[p]},set(l,p,o){return l[p]===o||(l[p]=o,(p==="prop"||p==="value"||p==="name"||p==="params"||p==="important"||p==="text")&&l.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let l=this;for(;l=l.parent;)l[e]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l,p){let o=this.source.start;if(l.index)o=this.positionInside(l.index,p);else if(l.word){p=this.toString();let d=p.indexOf(l.word);d!==-1&&(o=this.positionInside(d,p))}return o}positionInside(l,p){let o=p||this.toString(),d=this.source.start.column,c=this.source.start.line;for(let s=0;s<l;s++)o[s]===`
18
+ `?(d=1,c+=1):d+=1;return{column:d,line:c}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l){let p={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:p.column+1,line:p.line};if(l.word){let d=this.toString(),c=d.indexOf(l.word);c!==-1&&(p=this.positionInside(c,d),o=this.positionInside(c+l.word.length,d))}else l.start?p={column:l.start.column,line:l.start.line}:l.index&&(p=this.positionInside(l.index)),l.end?o={column:l.end.column,line:l.end.line}:typeof l.endIndex=="number"?o=this.positionInside(l.endIndex):l.index&&(o=this.positionInside(l.index+1));return(o.line<p.line||o.line===p.line&&o.column<=p.column)&&(o={column:p.column+1,line:p.line}),{end:o,start:p}}raw(l,p){return new i().raw(this,l,p)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let p=this,o=!1;for(let d of l)d===this?o=!0:o?(this.parent.insertAfter(p,d),p=d):this.parent.insertBefore(p,d);o||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,p){let o={},d=p==null;p=p||new Map;let c=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let m=this[s];if(Array.isArray(m))o[s]=m.map(h=>typeof h=="object"&&h.toJSON?h.toJSON(null,p):h);else if(typeof m=="object"&&m.toJSON)o[s]=m.toJSON(null,p);else if(s==="source"){let h=p.get(m.input);h==null&&(h=c,p.set(m.input,c),c++),o[s]={end:m.end,inputId:h,start:m.start}}else o[s]=m}return d&&(o.inputs=[...p.keys()].map(s=>s.toJSON())),o}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=n){l.stringify&&(l=l.stringify);let p="";return l(this,o=>{p+=o}),p}warn(l,p,o){let d={node:this};for(let c in o)d[c]=o[c];return l.warn(p,d)}get proxyOf(){return this}}return qr=u,u.default=u,qr}var Vr,us;function Qt(){if(us)return Vr;us=1;let e=Kt();class t extends e{constructor(i){i&&typeof i.value<"u"&&typeof i.value!="string"&&(i={...i,value:String(i.value)}),super(i),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Vr=t,t.default=t,Vr}var jr,cs;function fc(){if(cs)return jr;cs=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return jr={nanoid:(i=21)=>{let n="",a=i;for(;a--;)n+=e[Math.random()*64|0];return n},customAlphabet:(i,n=21)=>(a=n)=>{let u="",f=a;for(;f--;)u+=i[Math.random()*i.length|0];return u}},jr}var Hr,fs;function Ao(){if(fs)return Hr;fs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ve,{existsSync:r,readFileSync:i}=ve,{dirname:n,join:a}=ve;function u(l){return Buffer?Buffer.from(l,"base64").toString():window.atob(l)}class f{constructor(p,o){if(o.map===!1)return;this.loadAnnotation(p),this.inline=this.startWith(this.annotation,"data:");let d=o.map?o.map.prev:void 0,c=this.loadMap(o.from,d);!this.mapFile&&o.from&&(this.mapFile=o.from),this.mapFile&&(this.root=n(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(p){let o=/^data:application\/json;charset=utf-?8;base64,/,d=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(c.test(p)||s.test(p))return decodeURIComponent(p.substr(RegExp.lastMatch.length));if(o.test(p)||d.test(p))return u(p.substr(RegExp.lastMatch.length));let m=p.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(p){return p.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(p){return typeof p!="object"?!1:typeof p.mappings=="string"||typeof p._mappings=="string"||Array.isArray(p.sections)}loadAnnotation(p){let o=p.match(/\/\*\s*# sourceMappingURL=/gm);if(!o)return;let d=p.lastIndexOf(o.pop()),c=p.indexOf("*/",d);d>-1&&c>-1&&(this.annotation=this.getAnnotationURL(p.substring(d,c)))}loadFile(p){if(this.root=n(p),r(p))return this.mapFile=p,i(p,"utf-8").toString().trim()}loadMap(p,o){if(o===!1)return!1;if(o){if(typeof o=="string")return o;if(typeof o=="function"){let d=o(p);if(d){let c=this.loadFile(d);if(!c)throw new Error("Unable to load previous source map: "+d.toString());return c}}else{if(o instanceof e)return t.fromSourceMap(o).toString();if(o instanceof t)return o.toString();if(this.isMap(o))return JSON.stringify(o);throw new Error("Unsupported previous source map format: "+o.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let d=this.annotation;return p&&(d=a(n(p),d)),this.loadFile(d)}}}startWith(p,o){return p?p.substr(0,o.length)===o:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Hr=f,f.default=f,Hr}var Gr,hs;function Zt(){if(hs)return Gr;hs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ve,{fileURLToPath:r,pathToFileURL:i}=ve,{isAbsolute:n,resolve:a}=ve,{nanoid:u}=fc(),f=ve,l=si(),p=Ao(),o=Symbol("fromOffsetCache"),d=!!(e&&t),c=!!(a&&n);class s{constructor(h,g={}){if(h===null||typeof h>"u"||typeof h=="object"&&!h.toString)throw new Error(`PostCSS received ${h} instead of CSS string`);if(this.css=h.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!c||/^\w+:\/\//.test(g.from)||n(g.from)?this.file=g.from:this.file=a(g.from)),c&&d){let C=new p(this.css,g);if(C.text){this.map=C;let b=C.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+u(6)+">"),this.map&&(this.map.file=this.from)}error(h,g,C,b={}){let v,E,w;if(g&&typeof g=="object"){let S=g,x=C;if(typeof S.offset=="number"){let M=this.fromOffset(S.offset);g=M.line,C=M.col}else g=S.line,C=S.column;if(typeof x.offset=="number"){let M=this.fromOffset(x.offset);E=M.line,w=M.col}else E=x.line,w=x.column}else if(!C){let S=this.fromOffset(g);g=S.line,C=S.col}let y=this.origin(g,C,E,w);return y?v=new l(h,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,b.plugin):v=new l(h,E===void 0?g:{column:C,line:g},E===void 0?C:{column:w,line:E},this.css,this.file,b.plugin),v.input={column:C,endColumn:w,endLine:E,line:g,source:this.css},this.file&&(i&&(v.input.url=i(this.file).toString()),v.input.file=this.file),v}fromOffset(h){let g,C;if(this[o])C=this[o];else{let v=this.css.split(`
19
+ `);C=new Array(v.length);let E=0;for(let w=0,y=v.length;w<y;w++)C[w]=E,E+=v[w].length+1;this[o]=C}g=C[C.length-1];let b=0;if(h>=g)b=C.length-1;else{let v=C.length-2,E;for(;b<v;)if(E=b+(v-b>>1),h<C[E])v=E-1;else if(h>=C[E+1])b=E+1;else{b=E;break}}return{col:h-C[b]+1,line:b+1}}mapResolve(h){return/^\w+:\/\//.test(h)?h:a(this.map.consumer().sourceRoot||this.map.root||".",h)}origin(h,g,C,b){if(!this.map)return!1;let v=this.map.consumer(),E=v.originalPositionFor({column:g,line:h});if(!E.source)return!1;let w;typeof C=="number"&&(w=v.originalPositionFor({column:b,line:C}));let y;n(E.source)?y=i(E.source):y=new URL(E.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let S={column:E.column,endColumn:w&&w.column,endLine:w&&w.line,line:E.line,url:y.toString()};if(y.protocol==="file:")if(r)S.file=r(y);else throw new Error("file: protocol is not available in this PostCSS build");let x=v.sourceContentFor(E.source);return x&&(S.source=x),S}toJSON(){let h={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(h[g]=this[g]);return this.map&&(h.map={...this.map},h.map.consumerCache&&(h.map.consumerCache=void 0)),h}get from(){return this.file||this.id}}return Gr=s,s.default=s,f&&f.registerInput&&f.registerInput(s),Gr}var Yr,ds;function Do(){if(ds)return Yr;ds=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ve,{dirname:r,relative:i,resolve:n,sep:a}=ve,{pathToFileURL:u}=ve,f=Zt(),l=!!(e&&t),p=!!(r&&n&&i&&a);class o{constructor(c,s,m,h){this.stringify=c,this.mapOpts=m.map||{},this.root=s,this.opts=m,this.css=h,this.originalCSS=h,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let s=`
20
20
  `;this.css.includes(`\r
21
21
  `)&&(s=`\r
22
- `),this.css+=s+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let s=this.toUrl(this.path(c.file)),m=c.root||r(c.file),h;this.mapOpts.sourcesContent===!1?(h=new e(c.text),h.sourcesContent&&(h.sourcesContent=null)):h=c.consumer(),this.map.applySourceMap(h,s,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let s=this.root.nodes.length-1;s>=0;s--)c=this.root.nodes[s],c.type==="comment"&&c.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(s)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),p&&l&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,s=>{c+=s}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=t.fromSourceMap(c,{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(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,s=1,m="<no source>",h={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,C;this.stringify(this.root,(w,v,E)=>{if(this.css+=w,v&&E!=="end"&&(h.generated.line=c,h.generated.column=s-1,v.source&&v.source.start?(h.source=this.sourcePath(v),h.original.line=v.source.start.line,h.original.column=v.source.start.column-1,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,this.map.addMapping(h))),g=w.match(/\n/g),g?(c+=g.length,C=w.lastIndexOf(`
23
- `),s=w.length-C):s+=w.length,v&&E!=="start"){let b=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==b.last||b.raws.semicolon)&&(v.source&&v.source.end?(h.source=this.sourcePath(v),h.original.line=v.source.end.line,h.original.column=v.source.end.column-1,h.generated.line=c,h.generated.column=s-2,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,h.generated.line=c,h.generated.column=s-1,this.map.addMapping(h)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(s=>s.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let s=this.memoizedPaths.get(c);if(s)return s;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(n(m,this.mapOpts.annotation)));let h=i(m,c);return this.memoizedPaths.set(c,h),h}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let s=c.source.input.map;this.previousMaps.includes(s)||this.previousMaps.push(s)}});else{let c=new f(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(s=>{if(s.source){let m=s.source.input.from;if(m&&!c[m]){c[m]=!0;let h=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(h,s.source.input.css)}}});else if(this.css){let s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let s=this.memoizedFileURLs.get(c);if(s)return s;if(u){let m=u(c).toString();return this.memoizedFileURLs.set(c,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let s=this.memoizedURLs.get(c);if(s)return s;a==="\\"&&(c=c.replace(/\\/g,"/"));let m=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,m),m}}return Hr=o,Hr}var Gr,fs;function Zt(){if(fs)return Gr;fs=1;let e=Jt();class t extends e{constructor(i){super(i),this.type="comment"}}return Gr=t,t.default=t,Gr}var Yr,hs;function Ue(){if(hs)return Yr;hs=1;let{isClean:e,my:t}=ii(),r=Kt(),i=Zt(),n=Jt(),a,u,f,l;function p(c){return c.map(s=>(s.nodes&&(s.nodes=p(s.nodes)),delete s.source,s))}function o(c){if(c[e]=!1,c.proxyOf.nodes)for(let s of c.proxyOf.nodes)o(s)}class d extends n{append(...s){for(let m of s){let h=this.normalize(m,this.last);for(let g of h)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(s){if(super.cleanRaws(s),this.nodes)for(let m of this.nodes)m.cleanRaws(s)}each(s){if(!this.proxyOf.nodes)return;let m=this.getIterator(),h,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(h=this.indexes[m],g=s(this.proxyOf.nodes[h],h),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(s){return this.nodes.every(s)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach;return this.indexes[s]=0,s}getProxyProcessor(){return{get(s,m){return m==="proxyOf"?s:s[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...h)=>s[m](...h.map(g=>typeof g=="function"?(C,w)=>g(C.toProxy(),w):g)):m==="every"||m==="some"?h=>s[m]((g,...C)=>h(g.toProxy(),...C)):m==="root"?()=>s.root().toProxy():m==="nodes"?s.nodes.map(h=>h.toProxy()):m==="first"||m==="last"?s[m].toProxy():s[m]:s[m]},set(s,m,h){return s[m]===h||(s[m]=h,(m==="name"||m==="params"||m==="selector")&&s.markDirty()),!0}}}index(s){return typeof s=="number"?s:(s.proxyOf&&(s=s.proxyOf),this.proxyOf.nodes.indexOf(s))}insertAfter(s,m){let h=this.index(s),g=this.normalize(m,this.proxyOf.nodes[h]).reverse();h=this.index(s);for(let w of g)this.proxyOf.nodes.splice(h+1,0,w);let C;for(let w in this.indexes)C=this.indexes[w],h<C&&(this.indexes[w]=C+g.length);return this.markDirty(),this}insertBefore(s,m){let h=this.index(s),g=h===0?"prepend":!1,C=this.normalize(m,this.proxyOf.nodes[h],g).reverse();h=this.index(s);for(let v of C)this.proxyOf.nodes.splice(h,0,v);let w;for(let v in this.indexes)w=this.indexes[v],h<=w&&(this.indexes[v]=w+C.length);return this.markDirty(),this}normalize(s,m){if(typeof s=="string")s=p(a(s).nodes);else if(typeof s>"u")s=[];else if(Array.isArray(s)){s=s.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type==="root"&&this.type!=="document"){s=s.nodes.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type)s=[s];else if(s.prop){if(typeof s.value>"u")throw new Error("Value field is missed in node creation");typeof s.value!="string"&&(s.value=String(s.value)),s=[new r(s)]}else if(s.selector)s=[new u(s)];else if(s.name)s=[new f(s)];else if(s.text)s=[new i(s)];else throw new Error("Unknown node type in node creation");return s.map(g=>(g[t]||d.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&o(g),typeof g.raws.before>"u"&&m&&typeof m.raws.before<"u"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...s){s=s.reverse();for(let m of s){let h=this.normalize(m,this.first,"prepend").reverse();for(let g of h)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+h.length}return this.markDirty(),this}push(s){return s.parent=this,this.proxyOf.nodes.push(s),this}removeAll(){for(let s of this.proxyOf.nodes)s.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(s){s=this.index(s),this.proxyOf.nodes[s].parent=void 0,this.proxyOf.nodes.splice(s,1);let m;for(let h in this.indexes)m=this.indexes[h],m>=s&&(this.indexes[h]=m-1);return this.markDirty(),this}replaceValues(s,m,h){return h||(h=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(s,h))}),this.markDirty(),this}some(s){return this.nodes.some(s)}walk(s){return this.each((m,h)=>{let g;try{g=s(m,h)}catch(C){throw m.addToError(C)}return g!==!1&&m.walk&&(g=m.walk(s)),g})}walkAtRules(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="atrule"&&s.test(h.name))return m(h,g)}):this.walk((h,g)=>{if(h.type==="atrule"&&h.name===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="atrule")return m(h,g)}))}walkComments(s){return this.walk((m,h)=>{if(m.type==="comment")return s(m,h)})}walkDecls(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="decl"&&s.test(h.prop))return m(h,g)}):this.walk((h,g)=>{if(h.type==="decl"&&h.prop===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="decl")return m(h,g)}))}walkRules(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="rule"&&s.test(h.selector))return m(h,g)}):this.walk((h,g)=>{if(h.type==="rule"&&h.selector===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="rule")return m(h,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return d.registerParse=c=>{a=c},d.registerRule=c=>{u=c},d.registerAtRule=c=>{f=c},d.registerRoot=c=>{l=c},Yr=d,d.default=d,d.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,f.prototype):c.type==="rule"?Object.setPrototypeOf(c,u.prototype):c.type==="decl"?Object.setPrototypeOf(c,r.prototype):c.type==="comment"?Object.setPrototypeOf(c,i.prototype):c.type==="root"&&Object.setPrototypeOf(c,l.prototype),c[t]=!0,c.nodes&&c.nodes.forEach(s=>{d.rebuild(s)})},Yr}var Xr,ds;function si(){if(ds)return Xr;ds=1;let e=Ue(),t,r;class i extends e{constructor(a){super({type:"document",...a}),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new r,this,a).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},Xr=i,i.default=i,Xr}var Jr,ps;function ko(){if(ps)return Jr;ps=1;let e={};return Jr=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},Jr}var Kr,ms;function Ao(){if(ms)return Kr;ms=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let n=i.node.rangeBy(i);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in i)this[n]=i[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Kr=e,e.default=e,Kr}var Qr,gs;function oi(){if(gs)return Qr;gs=1;let e=Ao();class t{constructor(i,n,a){this.processor=i,this.messages=[],this.root=n,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(i,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let a=new e(i,n);return this.messages.push(a),a}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}}return Qr=t,t.default=t,Qr}var Zr,ys;function ic(){if(ys)return Zr;ys=1;let e=39,t=34,r=92,i=47,n=10,a=32,u=12,f=9,l=13,p=91,o=93,d=40,c=41,s=123,m=125,h=59,g=42,C=58,w=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return Zr=function(x,M={}){let T=x.css.valueOf(),k=M.ignoreErrors,I,R,te,re,U,P,j,K,$,B,le=T.length,N=0,Ee=[],pe=[];function lt(){return N}function ie(A){throw x.error("Unclosed "+A,N)}function we(){return pe.length===0&&N>=le}function Pe(A){if(pe.length)return pe.pop();if(N>=le)return;let Z=A?A.ignoreUnclosed:!1;switch(I=T.charCodeAt(N),I){case n:case a:case f:case l:case u:{R=N;do R+=1,I=T.charCodeAt(R);while(I===a||I===n||I===f||I===l||I===u);B=["space",T.slice(N,R)],N=R-1;break}case p:case o:case s:case m:case C:case h:case c:{let W=String.fromCharCode(I);B=[W,W,N];break}case d:{if(K=Ee.length?Ee.pop()[1]:"",$=T.charCodeAt(N+1),K==="url"&&$!==e&&$!==t&&$!==a&&$!==n&&$!==f&&$!==u&&$!==l){R=N;do{if(P=!1,R=T.indexOf(")",R+1),R===-1)if(k||Z){R=N;break}else ie("bracket");for(j=R;T.charCodeAt(j-1)===r;)j-=1,P=!P}while(P);B=["brackets",T.slice(N,R+1),N,R],N=R}else R=T.indexOf(")",N+1),re=T.slice(N,R+1),R===-1||b.test(re)?B=["(","(",N]:(B=["brackets",re,N,R],N=R);break}case e:case t:{te=I===e?"'":'"',R=N;do{if(P=!1,R=T.indexOf(te,R+1),R===-1)if(k||Z){R=N+1;break}else ie("string");for(j=R;T.charCodeAt(j-1)===r;)j-=1,P=!P}while(P);B=["string",T.slice(N,R+1),N,R],N=R;break}case w:{v.lastIndex=N+1,v.test(T),v.lastIndex===0?R=T.length-1:R=v.lastIndex-2,B=["at-word",T.slice(N,R+1),N,R],N=R;break}case r:{for(R=N,U=!0;T.charCodeAt(R+1)===r;)R+=1,U=!U;if(I=T.charCodeAt(R+1),U&&I!==i&&I!==a&&I!==n&&I!==f&&I!==l&&I!==u&&(R+=1,y.test(T.charAt(R)))){for(;y.test(T.charAt(R+1));)R+=1;T.charCodeAt(R+1)===a&&(R+=1)}B=["word",T.slice(N,R+1),N,R],N=R;break}default:{I===i&&T.charCodeAt(N+1)===g?(R=T.indexOf("*/",N+2)+1,R===0&&(k||Z?R=T.length:ie("comment")),B=["comment",T.slice(N,R+1),N,R],N=R):(E.lastIndex=N+1,E.test(T),E.lastIndex===0?R=T.length-1:R=E.lastIndex-2,B=["word",T.slice(N,R+1),N,R],Ee.push(B),N=R);break}}return N++,B}function Oe(A){pe.push(A)}return{back:Oe,endOfFile:we,nextToken:Pe,position:lt}},Zr}var en,ws;function ai(){if(ws)return en;ws=1;let e=Ue();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return en=t,t.default=t,e.registerAtRule(t),en}var tn,bs;function mt(){if(bs)return tn;bs=1;let e=Ue(),t,r;class i extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,u,f){let l=super.normalize(a);if(u){if(f==="prepend")this.nodes.length>1?u.raws.before=this.nodes[1].raws.before:delete u.raws.before;else if(this.first!==u)for(let p of l)p.raws.before=u.raws.before}return l}removeChild(a,u){let f=this.index(a);return!u&&f===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[f].raws.before),super.removeChild(a)}toResult(a={}){return new t(new r,this,a).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},tn=i,i.default=i,e.registerRoot(i),tn}var rn,vs;function Do(){if(vs)return rn;vs=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
24
- `," "];return e.split(t,r)},split(t,r,i){let n=[],a="",u=!1,f=0,l=!1,p="",o=!1;for(let d of t)o?o=!1:d==="\\"?o=!0:l?d===p&&(l=!1):d==='"'||d==="'"?(l=!0,p=d):d==="("?f+=1:d===")"?f>0&&(f-=1):f===0&&r.includes(d)&&(u=!0),u?(a!==""&&n.push(a.trim()),a="",u=!1):a+=d;return(i||a!=="")&&n.push(a.trim()),n}};return rn=e,e.default=e,rn}var nn,Ss;function li(){if(Ss)return nn;Ss=1;let e=Ue(),t=Do();class r extends e{constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(n){let a=this.selector?this.selector.match(/,\s*/):null,u=a?a[0]:","+this.raw("between","beforeOpen");this.selector=n.join(u)}}return nn=r,r.default=r,e.registerRule(r),nn}var sn,Cs;function sc(){if(Cs)return sn;Cs=1;let e=Kt(),t=ic(),r=Zt(),i=ai(),n=mt(),a=li(),u={empty:!0,space:!0};function f(p){for(let o=p.length-1;o>=0;o--){let d=p[o],c=d[3]||d[2];if(c)return c}}class l{constructor(o){this.input=o,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}atrule(o){let d=new i;d.name=o[1].slice(1),d.name===""&&this.unnamedAtrule(d,o),this.init(d,o[2]);let c,s,m,h=!1,g=!1,C=[],w=[];for(;!this.tokenizer.endOfFile();){if(o=this.tokenizer.nextToken(),c=o[0],c==="("||c==="["?w.push(c==="("?")":"]"):c==="{"&&w.length>0?w.push("}"):c===w[w.length-1]&&w.pop(),w.length===0)if(c===";"){d.source.end=this.getPosition(o[2]),d.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){g=!0;break}else if(c==="}"){if(C.length>0){for(m=C.length-1,s=C[m];s&&s[0]==="space";)s=C[--m];s&&(d.source.end=this.getPosition(s[3]||s[2]),d.source.end.offset++)}this.end(o);break}else C.push(o);else C.push(o);if(this.tokenizer.endOfFile()){h=!0;break}}d.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(d.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(d,"params",C),h&&(o=C[C.length-1],d.source.end=this.getPosition(o[3]||o[2]),d.source.end.offset++,this.spaces=d.raws.between,d.raws.between="")):(d.raws.afterName="",d.params=""),g&&(d.nodes=[],this.current=d)}checkMissedSemicolon(o){let d=this.colon(o);if(d===!1)return;let c=0,s;for(let m=d-1;m>=0&&(s=o[m],!(s[0]!=="space"&&(c+=1,c===2)));m--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(o){let d=0,c,s,m;for(let[h,g]of o.entries()){if(c=g,s=c[0],s==="("&&(d+=1),s===")"&&(d-=1),d===0&&s===":")if(!m)this.doubleColon(c);else{if(m[0]==="word"&&m[1]==="progid")continue;return h}m=c}return!1}comment(o){let d=new r;this.init(d,o[2]),d.source.end=this.getPosition(o[3]||o[2]),d.source.end.offset++;let c=o[1].slice(2,-2);if(/^\s*$/.test(c))d.text="",d.raws.left=c,d.raws.right="";else{let s=c.match(/^(\s*)([^]*\S)(\s*)$/);d.text=s[2],d.raws.left=s[1],d.raws.right=s[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(o,d){let c=new e;this.init(c,o[0][2]);let s=o[o.length-1];for(s[0]===";"&&(this.semicolon=!0,o.pop()),c.source.end=this.getPosition(s[3]||s[2]||f(o)),c.source.end.offset++;o[0][0]!=="word";)o.length===1&&this.unknownWord(o),c.raws.before+=o.shift()[1];for(c.source.start=this.getPosition(o[0][2]),c.prop="";o.length;){let w=o[0][0];if(w===":"||w==="space"||w==="comment")break;c.prop+=o.shift()[1]}c.raws.between="";let m;for(;o.length;)if(m=o.shift(),m[0]===":"){c.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),c.raws.between+=m[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let h=[],g;for(;o.length&&(g=o[0][0],!(g!=="space"&&g!=="comment"));)h.push(o.shift());this.precheckMissedSemicolon(o);for(let w=o.length-1;w>=0;w--){if(m=o[w],m[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(o,w);v=this.spacesFromEnd(o)+v,v!==" !important"&&(c.raws.important=v);break}else if(m[1].toLowerCase()==="important"){let v=o.slice(0),E="";for(let b=w;b>0;b--){let y=v[b][0];if(E.trim().indexOf("!")===0&&y!=="space")break;E=v.pop()[1]+E}E.trim().indexOf("!")===0&&(c.important=!0,c.raws.important=E,o=v)}if(m[0]!=="space"&&m[0]!=="comment")break}o.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(c.raws.between+=h.map(w=>w[1]).join(""),h=[]),this.raw(c,"value",h.concat(o),d),c.value.includes(":")&&!d&&this.checkMissedSemicolon(o)}doubleColon(o){throw this.input.error("Double colon",{offset:o[2]},{offset:o[2]+o[1].length})}emptyRule(o){let d=new a;this.init(d,o[2]),d.selector="",d.raws.between="",this.current=d}end(o){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(o[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(o)}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(o){if(this.spaces+=o[1],this.current.nodes){let d=this.current.nodes[this.current.nodes.length-1];d&&d.type==="rule"&&!d.raws.ownSemicolon&&(d.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(o){let d=this.input.fromOffset(o);return{column:d.col,line:d.line,offset:o}}init(o,d){this.current.push(o),o.source={input:this.input,start:this.getPosition(d)},o.raws.before=this.spaces,this.spaces="",o.type!=="comment"&&(this.semicolon=!1)}other(o){let d=!1,c=null,s=!1,m=null,h=[],g=o[1].startsWith("--"),C=[],w=o;for(;w;){if(c=w[0],C.push(w),c==="("||c==="[")m||(m=w),h.push(c==="("?")":"]");else if(g&&s&&c==="{")m||(m=w),h.push("}");else if(h.length===0)if(c===";")if(s){this.decl(C,g);return}else break;else if(c==="{"){this.rule(C);return}else if(c==="}"){this.tokenizer.back(C.pop()),d=!0;break}else c===":"&&(s=!0);else c===h[h.length-1]&&(h.pop(),h.length===0&&(m=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(d=!0),h.length>0&&this.unclosedBracket(m),d&&s){if(!g)for(;C.length&&(w=C[C.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,g)}else this.unknownWord(C)}parse(){let o;for(;!this.tokenizer.endOfFile();)switch(o=this.tokenizer.nextToken(),o[0]){case"space":this.spaces+=o[1];break;case";":this.freeSemicolon(o);break;case"}":this.end(o);break;case"comment":this.comment(o);break;case"at-word":this.atrule(o);break;case"{":this.emptyRule(o);break;default:this.other(o);break}this.endFile()}precheckMissedSemicolon(){}raw(o,d,c,s){let m,h,g=c.length,C="",w=!0,v,E;for(let b=0;b<g;b+=1)m=c[b],h=m[0],h==="space"&&b===g-1&&!s?w=!1:h==="comment"?(E=c[b-1]?c[b-1][0]:"empty",v=c[b+1]?c[b+1][0]:"empty",!u[E]&&!u[v]?C.slice(-1)===","?w=!1:C+=m[1]:w=!1):C+=m[1];if(!w){let b=c.reduce((y,S)=>y+S[1],"");o.raws[d]={raw:b,value:C}}o[d]=C}rule(o){o.pop();let d=new a;this.init(d,o[0][2]),d.raws.between=this.spacesAndCommentsFromEnd(o),this.raw(d,"selector",o),this.current=d}spacesAndCommentsFromEnd(o){let d,c="";for(;o.length&&(d=o[o.length-1][0],!(d!=="space"&&d!=="comment"));)c=o.pop()[1]+c;return c}spacesAndCommentsFromStart(o){let d,c="";for(;o.length&&(d=o[0][0],!(d!=="space"&&d!=="comment"));)c+=o.shift()[1];return c}spacesFromEnd(o){let d,c="";for(;o.length&&(d=o[o.length-1][0],d==="space");)c=o.pop()[1]+c;return c}stringFrom(o,d){let c="";for(let s=d;s<o.length;s++)c+=o[s][1];return o.splice(d,o.length-d),c}unclosedBlock(){let o=this.current.source.start;throw this.input.error("Unclosed block",o.line,o.column)}unclosedBracket(o){throw this.input.error("Unclosed bracket",{offset:o[2]},{offset:o[2]+1})}unexpectedClose(o){throw this.input.error("Unexpected }",{offset:o[2]},{offset:o[2]+1})}unknownWord(o){throw this.input.error("Unknown word",{offset:o[0][2]},{offset:o[0][2]+o[0][1].length})}unnamedAtrule(o,d){throw this.input.error("At-rule without name",{offset:d[2]},{offset:d[2]+d[1].length})}}return sn=l,sn}var on,Es;function ui(){if(Es)return on;Es=1;let e=Ue(),t=sc(),r=Qt();function i(n,a){let u=new r(n,a),f=new t(u);try{f.parse()}catch(l){throw l}return f.root}return on=i,i.default=i,e.registerParse(i),on}var an,xs;function _o(){if(xs)return an;xs=1;let{isClean:e,my:t}=ii(),r=Io(),i=Xt(),n=Ue(),a=si(),u=ko(),f=oi(),l=ui(),p=mt(),o={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={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},c={Once:!0,postcssPlugin:!0,prepare:!0},s=0;function m(E){return typeof E=="object"&&typeof E.then=="function"}function h(E){let b=!1,y=o[E.type];return E.type==="decl"?b=E.prop.toLowerCase():E.type==="atrule"&&(b=E.name.toLowerCase()),b&&E.append?[y,y+"-"+b,s,y+"Exit",y+"Exit-"+b]:b?[y,y+"-"+b,y+"Exit",y+"Exit-"+b]:E.append?[y,s,y+"Exit"]:[y,y+"Exit"]}function g(E){let b;return E.type==="document"?b=["Document",s,"DocumentExit"]:E.type==="root"?b=["Root",s,"RootExit"]:b=h(E),{eventIndex:0,events:b,iterator:0,node:E,visitorIndex:0,visitors:[]}}function C(E){return E[e]=!1,E.nodes&&E.nodes.forEach(b=>C(b)),E}let w={};class v{constructor(b,y,S){this.stringified=!1,this.processed=!1;let x;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))x=C(y);else if(y instanceof v||y instanceof f)x=C(y.root),y.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=y.map);else{let M=l;S.syntax&&(M=S.syntax.parse),S.parser&&(M=S.parser),M.parse&&(M=M.parse);try{x=M(y,S)}catch(T){this.processed=!0,this.error=T}x&&!x[t]&&n.rebuild(x)}this.result=new f(b,x,S),this.helpers={...w,postcss:w,result:this.result},this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?{...M,...M.prepare(this.result)}:M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(b){return this.async().catch(b)}finally(b){return this.async().then(b,b)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(b,y){let S=this.result.lastPlugin;try{y&&y.addToError(b),this.error=b,b.name==="CssSyntaxError"&&!b.plugin?(b.plugin=S.postcssPlugin,b.setMessage()):S.postcssVersion}catch(x){console&&console.error&&console.error(x)}return b}prepareVisitors(){this.listeners={};let b=(y,S,x)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([y,x])};for(let y of this.plugins)if(typeof y=="object")for(let S in y){if(!d[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[S])if(typeof y[S]=="object")for(let x in y[S])x==="*"?b(y,S,y[S][x]):b(y,S+"-"+x.toLowerCase(),y[S][x]);else typeof y[S]=="function"&&b(y,S,y[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let b=0;b<this.plugins.length;b++){let y=this.plugins[b],S=this.runOnRoot(y);if(m(S))try{await S}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];){b[e]=!0;let y=[g(b)];for(;y.length>0;){let S=this.visitTick(y);if(m(S))try{await S}catch(x){let M=y[y.length-1].node;throw this.handleError(x,M)}}}if(this.listeners.OnceExit)for(let[y,S]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(b.type==="document"){let x=b.nodes.map(M=>S(M,this.helpers));await Promise.all(x)}else await S(b,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(b){this.result.lastPlugin=b;try{if(typeof b=="object"&&b.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(S=>b.Once(S,this.helpers));return m(y[0])?Promise.all(y):y}return b.Once(this.result.root,this.helpers)}else if(typeof b=="function")return b(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let b=this.result.opts,y=i;b.syntax&&(y=b.syntax.stringify),b.stringifier&&(y=b.stringifier),y.stringify&&(y=y.stringify);let x=new r(y,this.result.root,this.result.opts).generate();return this.result.css=x[0],this.result.map=x[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 b of this.plugins){let y=this.runOnRoot(b);if(m(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];)b[e]=!0,this.walkSync(b);if(this.listeners.OnceExit)if(b.type==="document")for(let y of b.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,b)}return this.result}then(b,y){return this.async().then(b,y)}toString(){return this.css}visitSync(b,y){for(let[S,x]of b){this.result.lastPlugin=S;let M;try{M=x(y,this.helpers)}catch(T){throw this.handleError(T,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(m(M))throw this.getAsyncError()}}visitTick(b){let y=b[b.length-1],{node:S,visitors:x}=y;if(S.type!=="root"&&S.type!=="document"&&!S.parent){b.pop();return}if(x.length>0&&y.visitorIndex<x.length){let[T,k]=x[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===x.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=T;try{return k(S.toProxy(),this.helpers)}catch(I){throw this.handleError(I,S)}}if(y.iterator!==0){let T=y.iterator,k;for(;k=S.nodes[S.indexes[T]];)if(S.indexes[T]+=1,!k[e]){k[e]=!0,b.push(g(k));return}y.iterator=0,delete S.indexes[T]}let M=y.events;for(;y.eventIndex<M.length;){let T=M[y.eventIndex];if(y.eventIndex+=1,T===s){S.nodes&&S.nodes.length&&(S[e]=!0,y.iterator=S.getIterator());return}else if(this.listeners[T]){y.visitors=this.listeners[T];return}}b.pop()}walkSync(b){b[e]=!0;let y=h(b);for(let S of y)if(S===s)b.nodes&&b.each(x=>{x[e]||this.walkSync(x)});else{let x=this.listeners[S];if(x&&this.visitSync(x,b.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 v.registerPostcss=E=>{w=E},an=v,v.default=v,p.registerLazyResult(v),a.registerLazyResult(v),an}var ln,Rs;function oc(){if(Rs)return ln;Rs=1;let e=Io(),t=Xt(),r=ko(),i=ui(),n=oi();class a{constructor(f,l,p){l=l.toString(),this.stringified=!1,this._processor=f,this._css=l,this._opts=p,this._map=void 0;let o,d=t;this.result=new n(this._processor,o,this._opts),this.result.css=l;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let s=new e(d,o,this._opts,l);if(s.isMap()){let[m,h]=s.generate();m&&(this.result.css=m),h&&(this.result.map=h)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(f){return this.async().catch(f)}finally(f){return this.async().then(f,f)}sync(){if(this.error)throw this.error;return this.result}then(f,l){return this.async().then(f,l)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let f,l=i;try{f=l(this._css,this._opts)}catch(p){this.error=p}if(this.error)throw this.error;return this._root=f,f}get[Symbol.toStringTag](){return"NoWorkResult"}}return ln=a,a.default=a,ln}var un,Ts;function ac(){if(Ts)return un;Ts=1;let e=oc(),t=_o(),r=si(),i=mt();class n{constructor(u=[]){this.version="8.4.38",this.plugins=this.normalize(u)}normalize(u){let f=[];for(let l of u)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))f=f.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)f.push(l);else if(typeof l=="function")f.push(l);else if(!(typeof l=="object"&&(l.parse||l.stringify)))throw new Error(l+" is not a PostCSS plugin");return f}process(u,f={}){return!this.plugins.length&&!f.parser&&!f.stringifier&&!f.syntax?new e(this,u,f):new t(this,u,f)}use(u){return this.plugins=this.plugins.concat(this.normalize([u])),this}}return un=n,n.default=n,i.registerProcessor(n),r.registerProcessor(n),un}var cn,Ms;function lc(){if(Ms)return cn;Ms=1;let e=Kt(),t=Oo(),r=Zt(),i=ai(),n=Qt(),a=mt(),u=li();function f(l,p){if(Array.isArray(l))return l.map(c=>f(c));let{inputs:o,...d}=l;if(o){p=[];for(let c of o){let s={...c,__proto__:n.prototype};s.map&&(s.map={...s.map,__proto__:t.prototype}),p.push(s)}}if(d.nodes&&(d.nodes=l.nodes.map(c=>f(c,p))),d.source){let{inputId:c,...s}=d.source;d.source=s,c!=null&&(d.source.input=p[c])}if(d.type==="root")return new a(d);if(d.type==="decl")return new e(d);if(d.type==="rule")return new u(d);if(d.type==="comment")return new r(d);if(d.type==="atrule")return new i(d);throw new Error("Unknown node type: "+l.type)}return cn=f,f.default=f,cn}var fn,Ns;function uc(){if(Ns)return fn;Ns=1;let e=ni(),t=Kt(),r=_o(),i=Ue(),n=ac(),a=Xt(),u=lc(),f=si(),l=Ao(),p=Zt(),o=ai(),d=oi(),c=Qt(),s=ui(),m=Do(),h=li(),g=mt(),C=Jt();function w(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new n(v)}return w.plugin=function(E,b){let y=!1;function S(...M){console&&console.warn&&!y&&(y=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
22
+ `),this.css+=s+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let s=this.toUrl(this.path(c.file)),m=c.root||r(c.file),h;this.mapOpts.sourcesContent===!1?(h=new e(c.text),h.sourcesContent&&(h.sourcesContent=null)):h=c.consumer(),this.map.applySourceMap(h,s,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let s=this.root.nodes.length-1;s>=0;s--)c=this.root.nodes[s],c.type==="comment"&&c.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(s)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),p&&l&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,s=>{c+=s}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=t.fromSourceMap(c,{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(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,s=1,m="<no source>",h={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,C;this.stringify(this.root,(b,v,E)=>{if(this.css+=b,v&&E!=="end"&&(h.generated.line=c,h.generated.column=s-1,v.source&&v.source.start?(h.source=this.sourcePath(v),h.original.line=v.source.start.line,h.original.column=v.source.start.column-1,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,this.map.addMapping(h))),g=b.match(/\n/g),g?(c+=g.length,C=b.lastIndexOf(`
23
+ `),s=b.length-C):s+=b.length,v&&E!=="start"){let w=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==w.last||w.raws.semicolon)&&(v.source&&v.source.end?(h.source=this.sourcePath(v),h.original.line=v.source.end.line,h.original.column=v.source.end.column-1,h.generated.line=c,h.generated.column=s-2,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,h.generated.line=c,h.generated.column=s-1,this.map.addMapping(h)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(s=>s.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let s=this.memoizedPaths.get(c);if(s)return s;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(n(m,this.mapOpts.annotation)));let h=i(m,c);return this.memoizedPaths.set(c,h),h}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let s=c.source.input.map;this.previousMaps.includes(s)||this.previousMaps.push(s)}});else{let c=new f(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(s=>{if(s.source){let m=s.source.input.from;if(m&&!c[m]){c[m]=!0;let h=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(h,s.source.input.css)}}});else if(this.css){let s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let s=this.memoizedFileURLs.get(c);if(s)return s;if(u){let m=u(c).toString();return this.memoizedFileURLs.set(c,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let s=this.memoizedURLs.get(c);if(s)return s;a==="\\"&&(c=c.replace(/\\/g,"/"));let m=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,m),m}}return Yr=o,Yr}var Xr,ps;function er(){if(ps)return Xr;ps=1;let e=Kt();class t extends e{constructor(i){super(i),this.type="comment"}}return Xr=t,t.default=t,Xr}var Jr,ms;function Ue(){if(ms)return Jr;ms=1;let{isClean:e,my:t}=oi(),r=Qt(),i=er(),n=Kt(),a,u,f,l;function p(c){return c.map(s=>(s.nodes&&(s.nodes=p(s.nodes)),delete s.source,s))}function o(c){if(c[e]=!1,c.proxyOf.nodes)for(let s of c.proxyOf.nodes)o(s)}class d extends n{append(...s){for(let m of s){let h=this.normalize(m,this.last);for(let g of h)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(s){if(super.cleanRaws(s),this.nodes)for(let m of this.nodes)m.cleanRaws(s)}each(s){if(!this.proxyOf.nodes)return;let m=this.getIterator(),h,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(h=this.indexes[m],g=s(this.proxyOf.nodes[h],h),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(s){return this.nodes.every(s)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach;return this.indexes[s]=0,s}getProxyProcessor(){return{get(s,m){return m==="proxyOf"?s:s[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...h)=>s[m](...h.map(g=>typeof g=="function"?(C,b)=>g(C.toProxy(),b):g)):m==="every"||m==="some"?h=>s[m]((g,...C)=>h(g.toProxy(),...C)):m==="root"?()=>s.root().toProxy():m==="nodes"?s.nodes.map(h=>h.toProxy()):m==="first"||m==="last"?s[m].toProxy():s[m]:s[m]},set(s,m,h){return s[m]===h||(s[m]=h,(m==="name"||m==="params"||m==="selector")&&s.markDirty()),!0}}}index(s){return typeof s=="number"?s:(s.proxyOf&&(s=s.proxyOf),this.proxyOf.nodes.indexOf(s))}insertAfter(s,m){let h=this.index(s),g=this.normalize(m,this.proxyOf.nodes[h]).reverse();h=this.index(s);for(let b of g)this.proxyOf.nodes.splice(h+1,0,b);let C;for(let b in this.indexes)C=this.indexes[b],h<C&&(this.indexes[b]=C+g.length);return this.markDirty(),this}insertBefore(s,m){let h=this.index(s),g=h===0?"prepend":!1,C=this.normalize(m,this.proxyOf.nodes[h],g).reverse();h=this.index(s);for(let v of C)this.proxyOf.nodes.splice(h,0,v);let b;for(let v in this.indexes)b=this.indexes[v],h<=b&&(this.indexes[v]=b+C.length);return this.markDirty(),this}normalize(s,m){if(typeof s=="string")s=p(a(s).nodes);else if(typeof s>"u")s=[];else if(Array.isArray(s)){s=s.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type==="root"&&this.type!=="document"){s=s.nodes.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type)s=[s];else if(s.prop){if(typeof s.value>"u")throw new Error("Value field is missed in node creation");typeof s.value!="string"&&(s.value=String(s.value)),s=[new r(s)]}else if(s.selector)s=[new u(s)];else if(s.name)s=[new f(s)];else if(s.text)s=[new i(s)];else throw new Error("Unknown node type in node creation");return s.map(g=>(g[t]||d.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&o(g),typeof g.raws.before>"u"&&m&&typeof m.raws.before<"u"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...s){s=s.reverse();for(let m of s){let h=this.normalize(m,this.first,"prepend").reverse();for(let g of h)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+h.length}return this.markDirty(),this}push(s){return s.parent=this,this.proxyOf.nodes.push(s),this}removeAll(){for(let s of this.proxyOf.nodes)s.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(s){s=this.index(s),this.proxyOf.nodes[s].parent=void 0,this.proxyOf.nodes.splice(s,1);let m;for(let h in this.indexes)m=this.indexes[h],m>=s&&(this.indexes[h]=m-1);return this.markDirty(),this}replaceValues(s,m,h){return h||(h=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(s,h))}),this.markDirty(),this}some(s){return this.nodes.some(s)}walk(s){return this.each((m,h)=>{let g;try{g=s(m,h)}catch(C){throw m.addToError(C)}return g!==!1&&m.walk&&(g=m.walk(s)),g})}walkAtRules(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="atrule"&&s.test(h.name))return m(h,g)}):this.walk((h,g)=>{if(h.type==="atrule"&&h.name===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="atrule")return m(h,g)}))}walkComments(s){return this.walk((m,h)=>{if(m.type==="comment")return s(m,h)})}walkDecls(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="decl"&&s.test(h.prop))return m(h,g)}):this.walk((h,g)=>{if(h.type==="decl"&&h.prop===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="decl")return m(h,g)}))}walkRules(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="rule"&&s.test(h.selector))return m(h,g)}):this.walk((h,g)=>{if(h.type==="rule"&&h.selector===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="rule")return m(h,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return d.registerParse=c=>{a=c},d.registerRule=c=>{u=c},d.registerAtRule=c=>{f=c},d.registerRoot=c=>{l=c},Jr=d,d.default=d,d.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,f.prototype):c.type==="rule"?Object.setPrototypeOf(c,u.prototype):c.type==="decl"?Object.setPrototypeOf(c,r.prototype):c.type==="comment"?Object.setPrototypeOf(c,i.prototype):c.type==="root"&&Object.setPrototypeOf(c,l.prototype),c[t]=!0,c.nodes&&c.nodes.forEach(s=>{d.rebuild(s)})},Jr}var Kr,gs;function ai(){if(gs)return Kr;gs=1;let e=Ue(),t,r;class i extends e{constructor(a){super({type:"document",...a}),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new r,this,a).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},Kr=i,i.default=i,Kr}var Qr,ys;function _o(){if(ys)return Qr;ys=1;let e={};return Qr=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},Qr}var Zr,bs;function Lo(){if(bs)return Zr;bs=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let n=i.node.rangeBy(i);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in i)this[n]=i[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Zr=e,e.default=e,Zr}var en,ws;function li(){if(ws)return en;ws=1;let e=Lo();class t{constructor(i,n,a){this.processor=i,this.messages=[],this.root=n,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(i,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let a=new e(i,n);return this.messages.push(a),a}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}}return en=t,t.default=t,en}var tn,vs;function hc(){if(vs)return tn;vs=1;let e=39,t=34,r=92,i=47,n=10,a=32,u=12,f=9,l=13,p=91,o=93,d=40,c=41,s=123,m=125,h=59,g=42,C=58,b=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return tn=function(x,M={}){let T=x.css.valueOf(),k=M.ignoreErrors,I,R,te,re,U,P,j,Q,$,B,le=T.length,N=0,Ee=[],pe=[];function ut(){return N}function ie(A){throw x.error("Unclosed "+A,N)}function be(){return pe.length===0&&N>=le}function Pe(A){if(pe.length)return pe.pop();if(N>=le)return;let Z=A?A.ignoreUnclosed:!1;switch(I=T.charCodeAt(N),I){case n:case a:case f:case l:case u:{R=N;do R+=1,I=T.charCodeAt(R);while(I===a||I===n||I===f||I===l||I===u);B=["space",T.slice(N,R)],N=R-1;break}case p:case o:case s:case m:case C:case h:case c:{let W=String.fromCharCode(I);B=[W,W,N];break}case d:{if(Q=Ee.length?Ee.pop()[1]:"",$=T.charCodeAt(N+1),Q==="url"&&$!==e&&$!==t&&$!==a&&$!==n&&$!==f&&$!==u&&$!==l){R=N;do{if(P=!1,R=T.indexOf(")",R+1),R===-1)if(k||Z){R=N;break}else ie("bracket");for(j=R;T.charCodeAt(j-1)===r;)j-=1,P=!P}while(P);B=["brackets",T.slice(N,R+1),N,R],N=R}else R=T.indexOf(")",N+1),re=T.slice(N,R+1),R===-1||w.test(re)?B=["(","(",N]:(B=["brackets",re,N,R],N=R);break}case e:case t:{te=I===e?"'":'"',R=N;do{if(P=!1,R=T.indexOf(te,R+1),R===-1)if(k||Z){R=N+1;break}else ie("string");for(j=R;T.charCodeAt(j-1)===r;)j-=1,P=!P}while(P);B=["string",T.slice(N,R+1),N,R],N=R;break}case b:{v.lastIndex=N+1,v.test(T),v.lastIndex===0?R=T.length-1:R=v.lastIndex-2,B=["at-word",T.slice(N,R+1),N,R],N=R;break}case r:{for(R=N,U=!0;T.charCodeAt(R+1)===r;)R+=1,U=!U;if(I=T.charCodeAt(R+1),U&&I!==i&&I!==a&&I!==n&&I!==f&&I!==l&&I!==u&&(R+=1,y.test(T.charAt(R)))){for(;y.test(T.charAt(R+1));)R+=1;T.charCodeAt(R+1)===a&&(R+=1)}B=["word",T.slice(N,R+1),N,R],N=R;break}default:{I===i&&T.charCodeAt(N+1)===g?(R=T.indexOf("*/",N+2)+1,R===0&&(k||Z?R=T.length:ie("comment")),B=["comment",T.slice(N,R+1),N,R],N=R):(E.lastIndex=N+1,E.test(T),E.lastIndex===0?R=T.length-1:R=E.lastIndex-2,B=["word",T.slice(N,R+1),N,R],Ee.push(B),N=R);break}}return N++,B}function Oe(A){pe.push(A)}return{back:Oe,endOfFile:be,nextToken:Pe,position:ut}},tn}var rn,Ss;function ui(){if(Ss)return rn;Ss=1;let e=Ue();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return rn=t,t.default=t,e.registerAtRule(t),rn}var nn,Cs;function gt(){if(Cs)return nn;Cs=1;let e=Ue(),t,r;class i extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,u,f){let l=super.normalize(a);if(u){if(f==="prepend")this.nodes.length>1?u.raws.before=this.nodes[1].raws.before:delete u.raws.before;else if(this.first!==u)for(let p of l)p.raws.before=u.raws.before}return l}removeChild(a,u){let f=this.index(a);return!u&&f===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[f].raws.before),super.removeChild(a)}toResult(a={}){return new t(new r,this,a).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},nn=i,i.default=i,e.registerRoot(i),nn}var sn,Es;function Po(){if(Es)return sn;Es=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
24
+ `," "];return e.split(t,r)},split(t,r,i){let n=[],a="",u=!1,f=0,l=!1,p="",o=!1;for(let d of t)o?o=!1:d==="\\"?o=!0:l?d===p&&(l=!1):d==='"'||d==="'"?(l=!0,p=d):d==="("?f+=1:d===")"?f>0&&(f-=1):f===0&&r.includes(d)&&(u=!0),u?(a!==""&&n.push(a.trim()),a="",u=!1):a+=d;return(i||a!=="")&&n.push(a.trim()),n}};return sn=e,e.default=e,sn}var on,xs;function ci(){if(xs)return on;xs=1;let e=Ue(),t=Po();class r extends e{constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(n){let a=this.selector?this.selector.match(/,\s*/):null,u=a?a[0]:","+this.raw("between","beforeOpen");this.selector=n.join(u)}}return on=r,r.default=r,e.registerRule(r),on}var an,Rs;function dc(){if(Rs)return an;Rs=1;let e=Qt(),t=hc(),r=er(),i=ui(),n=gt(),a=ci(),u={empty:!0,space:!0};function f(p){for(let o=p.length-1;o>=0;o--){let d=p[o],c=d[3]||d[2];if(c)return c}}class l{constructor(o){this.input=o,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}atrule(o){let d=new i;d.name=o[1].slice(1),d.name===""&&this.unnamedAtrule(d,o),this.init(d,o[2]);let c,s,m,h=!1,g=!1,C=[],b=[];for(;!this.tokenizer.endOfFile();){if(o=this.tokenizer.nextToken(),c=o[0],c==="("||c==="["?b.push(c==="("?")":"]"):c==="{"&&b.length>0?b.push("}"):c===b[b.length-1]&&b.pop(),b.length===0)if(c===";"){d.source.end=this.getPosition(o[2]),d.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){g=!0;break}else if(c==="}"){if(C.length>0){for(m=C.length-1,s=C[m];s&&s[0]==="space";)s=C[--m];s&&(d.source.end=this.getPosition(s[3]||s[2]),d.source.end.offset++)}this.end(o);break}else C.push(o);else C.push(o);if(this.tokenizer.endOfFile()){h=!0;break}}d.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(d.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(d,"params",C),h&&(o=C[C.length-1],d.source.end=this.getPosition(o[3]||o[2]),d.source.end.offset++,this.spaces=d.raws.between,d.raws.between="")):(d.raws.afterName="",d.params=""),g&&(d.nodes=[],this.current=d)}checkMissedSemicolon(o){let d=this.colon(o);if(d===!1)return;let c=0,s;for(let m=d-1;m>=0&&(s=o[m],!(s[0]!=="space"&&(c+=1,c===2)));m--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(o){let d=0,c,s,m;for(let[h,g]of o.entries()){if(c=g,s=c[0],s==="("&&(d+=1),s===")"&&(d-=1),d===0&&s===":")if(!m)this.doubleColon(c);else{if(m[0]==="word"&&m[1]==="progid")continue;return h}m=c}return!1}comment(o){let d=new r;this.init(d,o[2]),d.source.end=this.getPosition(o[3]||o[2]),d.source.end.offset++;let c=o[1].slice(2,-2);if(/^\s*$/.test(c))d.text="",d.raws.left=c,d.raws.right="";else{let s=c.match(/^(\s*)([^]*\S)(\s*)$/);d.text=s[2],d.raws.left=s[1],d.raws.right=s[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(o,d){let c=new e;this.init(c,o[0][2]);let s=o[o.length-1];for(s[0]===";"&&(this.semicolon=!0,o.pop()),c.source.end=this.getPosition(s[3]||s[2]||f(o)),c.source.end.offset++;o[0][0]!=="word";)o.length===1&&this.unknownWord(o),c.raws.before+=o.shift()[1];for(c.source.start=this.getPosition(o[0][2]),c.prop="";o.length;){let b=o[0][0];if(b===":"||b==="space"||b==="comment")break;c.prop+=o.shift()[1]}c.raws.between="";let m;for(;o.length;)if(m=o.shift(),m[0]===":"){c.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),c.raws.between+=m[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let h=[],g;for(;o.length&&(g=o[0][0],!(g!=="space"&&g!=="comment"));)h.push(o.shift());this.precheckMissedSemicolon(o);for(let b=o.length-1;b>=0;b--){if(m=o[b],m[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(o,b);v=this.spacesFromEnd(o)+v,v!==" !important"&&(c.raws.important=v);break}else if(m[1].toLowerCase()==="important"){let v=o.slice(0),E="";for(let w=b;w>0;w--){let y=v[w][0];if(E.trim().indexOf("!")===0&&y!=="space")break;E=v.pop()[1]+E}E.trim().indexOf("!")===0&&(c.important=!0,c.raws.important=E,o=v)}if(m[0]!=="space"&&m[0]!=="comment")break}o.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(c.raws.between+=h.map(b=>b[1]).join(""),h=[]),this.raw(c,"value",h.concat(o),d),c.value.includes(":")&&!d&&this.checkMissedSemicolon(o)}doubleColon(o){throw this.input.error("Double colon",{offset:o[2]},{offset:o[2]+o[1].length})}emptyRule(o){let d=new a;this.init(d,o[2]),d.selector="",d.raws.between="",this.current=d}end(o){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(o[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(o)}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(o){if(this.spaces+=o[1],this.current.nodes){let d=this.current.nodes[this.current.nodes.length-1];d&&d.type==="rule"&&!d.raws.ownSemicolon&&(d.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(o){let d=this.input.fromOffset(o);return{column:d.col,line:d.line,offset:o}}init(o,d){this.current.push(o),o.source={input:this.input,start:this.getPosition(d)},o.raws.before=this.spaces,this.spaces="",o.type!=="comment"&&(this.semicolon=!1)}other(o){let d=!1,c=null,s=!1,m=null,h=[],g=o[1].startsWith("--"),C=[],b=o;for(;b;){if(c=b[0],C.push(b),c==="("||c==="[")m||(m=b),h.push(c==="("?")":"]");else if(g&&s&&c==="{")m||(m=b),h.push("}");else if(h.length===0)if(c===";")if(s){this.decl(C,g);return}else break;else if(c==="{"){this.rule(C);return}else if(c==="}"){this.tokenizer.back(C.pop()),d=!0;break}else c===":"&&(s=!0);else c===h[h.length-1]&&(h.pop(),h.length===0&&(m=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(d=!0),h.length>0&&this.unclosedBracket(m),d&&s){if(!g)for(;C.length&&(b=C[C.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,g)}else this.unknownWord(C)}parse(){let o;for(;!this.tokenizer.endOfFile();)switch(o=this.tokenizer.nextToken(),o[0]){case"space":this.spaces+=o[1];break;case";":this.freeSemicolon(o);break;case"}":this.end(o);break;case"comment":this.comment(o);break;case"at-word":this.atrule(o);break;case"{":this.emptyRule(o);break;default:this.other(o);break}this.endFile()}precheckMissedSemicolon(){}raw(o,d,c,s){let m,h,g=c.length,C="",b=!0,v,E;for(let w=0;w<g;w+=1)m=c[w],h=m[0],h==="space"&&w===g-1&&!s?b=!1:h==="comment"?(E=c[w-1]?c[w-1][0]:"empty",v=c[w+1]?c[w+1][0]:"empty",!u[E]&&!u[v]?C.slice(-1)===","?b=!1:C+=m[1]:b=!1):C+=m[1];if(!b){let w=c.reduce((y,S)=>y+S[1],"");o.raws[d]={raw:w,value:C}}o[d]=C}rule(o){o.pop();let d=new a;this.init(d,o[0][2]),d.raws.between=this.spacesAndCommentsFromEnd(o),this.raw(d,"selector",o),this.current=d}spacesAndCommentsFromEnd(o){let d,c="";for(;o.length&&(d=o[o.length-1][0],!(d!=="space"&&d!=="comment"));)c=o.pop()[1]+c;return c}spacesAndCommentsFromStart(o){let d,c="";for(;o.length&&(d=o[0][0],!(d!=="space"&&d!=="comment"));)c+=o.shift()[1];return c}spacesFromEnd(o){let d,c="";for(;o.length&&(d=o[o.length-1][0],d==="space");)c=o.pop()[1]+c;return c}stringFrom(o,d){let c="";for(let s=d;s<o.length;s++)c+=o[s][1];return o.splice(d,o.length-d),c}unclosedBlock(){let o=this.current.source.start;throw this.input.error("Unclosed block",o.line,o.column)}unclosedBracket(o){throw this.input.error("Unclosed bracket",{offset:o[2]},{offset:o[2]+1})}unexpectedClose(o){throw this.input.error("Unexpected }",{offset:o[2]},{offset:o[2]+1})}unknownWord(o){throw this.input.error("Unknown word",{offset:o[0][2]},{offset:o[0][2]+o[0][1].length})}unnamedAtrule(o,d){throw this.input.error("At-rule without name",{offset:d[2]},{offset:d[2]+d[1].length})}}return an=l,an}var ln,Ts;function fi(){if(Ts)return ln;Ts=1;let e=Ue(),t=dc(),r=Zt();function i(n,a){let u=new r(n,a),f=new t(u);try{f.parse()}catch(l){throw l}return f.root}return ln=i,i.default=i,e.registerParse(i),ln}var un,Ms;function Fo(){if(Ms)return un;Ms=1;let{isClean:e,my:t}=oi(),r=Do(),i=Jt(),n=Ue(),a=ai(),u=_o(),f=li(),l=fi(),p=gt(),o={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={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},c={Once:!0,postcssPlugin:!0,prepare:!0},s=0;function m(E){return typeof E=="object"&&typeof E.then=="function"}function h(E){let w=!1,y=o[E.type];return E.type==="decl"?w=E.prop.toLowerCase():E.type==="atrule"&&(w=E.name.toLowerCase()),w&&E.append?[y,y+"-"+w,s,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:E.append?[y,s,y+"Exit"]:[y,y+"Exit"]}function g(E){let w;return E.type==="document"?w=["Document",s,"DocumentExit"]:E.type==="root"?w=["Root",s,"RootExit"]:w=h(E),{eventIndex:0,events:w,iterator:0,node:E,visitorIndex:0,visitors:[]}}function C(E){return E[e]=!1,E.nodes&&E.nodes.forEach(w=>C(w)),E}let b={};class v{constructor(w,y,S){this.stringified=!1,this.processed=!1;let x;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))x=C(y);else if(y instanceof v||y instanceof f)x=C(y.root),y.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=y.map);else{let M=l;S.syntax&&(M=S.syntax.parse),S.parser&&(M=S.parser),M.parse&&(M=M.parse);try{x=M(y,S)}catch(T){this.processed=!0,this.error=T}x&&!x[t]&&n.rebuild(x)}this.result=new f(w,x,S),this.helpers={...b,postcss:b,result:this.result},this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?{...M,...M.prepare(this.result)}:M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let S=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=S.postcssPlugin,w.setMessage()):S.postcssVersion}catch(x){console&&console.error&&console.error(x)}return w}prepareVisitors(){this.listeners={};let w=(y,S,x)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([y,x])};for(let y of this.plugins)if(typeof y=="object")for(let S in y){if(!d[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[S])if(typeof y[S]=="object")for(let x in y[S])x==="*"?w(y,S,y[S][x]):w(y,S+"-"+x.toLowerCase(),y[S][x]);else typeof y[S]=="function"&&w(y,S,y[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],S=this.runOnRoot(y);if(m(S))try{await S}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];){w[e]=!0;let y=[g(w)];for(;y.length>0;){let S=this.visitTick(y);if(m(S))try{await S}catch(x){let M=y[y.length-1].node;throw this.handleError(x,M)}}}if(this.listeners.OnceExit)for(let[y,S]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let x=w.nodes.map(M=>S(M,this.helpers));await Promise.all(x)}else await S(w,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(S=>w.Once(S,this.helpers));return m(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=i;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let x=new r(y,this.result.root,this.result.opts).generate();return this.result.css=x[0],this.result.map=x[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 w of this.plugins){let y=this.runOnRoot(w);if(m(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];)w[e]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[S,x]of w){this.result.lastPlugin=S;let M;try{M=x(y,this.helpers)}catch(T){throw this.handleError(T,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(m(M))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:S,visitors:x}=y;if(S.type!=="root"&&S.type!=="document"&&!S.parent){w.pop();return}if(x.length>0&&y.visitorIndex<x.length){let[T,k]=x[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===x.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=T;try{return k(S.toProxy(),this.helpers)}catch(I){throw this.handleError(I,S)}}if(y.iterator!==0){let T=y.iterator,k;for(;k=S.nodes[S.indexes[T]];)if(S.indexes[T]+=1,!k[e]){k[e]=!0,w.push(g(k));return}y.iterator=0,delete S.indexes[T]}let M=y.events;for(;y.eventIndex<M.length;){let T=M[y.eventIndex];if(y.eventIndex+=1,T===s){S.nodes&&S.nodes.length&&(S[e]=!0,y.iterator=S.getIterator());return}else if(this.listeners[T]){y.visitors=this.listeners[T];return}}w.pop()}walkSync(w){w[e]=!0;let y=h(w);for(let S of y)if(S===s)w.nodes&&w.each(x=>{x[e]||this.walkSync(x)});else{let x=this.listeners[S];if(x&&this.visitSync(x,w.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 v.registerPostcss=E=>{b=E},un=v,v.default=v,p.registerLazyResult(v),a.registerLazyResult(v),un}var cn,Ns;function pc(){if(Ns)return cn;Ns=1;let e=Do(),t=Jt(),r=_o(),i=fi(),n=li();class a{constructor(f,l,p){l=l.toString(),this.stringified=!1,this._processor=f,this._css=l,this._opts=p,this._map=void 0;let o,d=t;this.result=new n(this._processor,o,this._opts),this.result.css=l;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let s=new e(d,o,this._opts,l);if(s.isMap()){let[m,h]=s.generate();m&&(this.result.css=m),h&&(this.result.map=h)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(f){return this.async().catch(f)}finally(f){return this.async().then(f,f)}sync(){if(this.error)throw this.error;return this.result}then(f,l){return this.async().then(f,l)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let f,l=i;try{f=l(this._css,this._opts)}catch(p){this.error=p}if(this.error)throw this.error;return this._root=f,f}get[Symbol.toStringTag](){return"NoWorkResult"}}return cn=a,a.default=a,cn}var fn,Os;function mc(){if(Os)return fn;Os=1;let e=pc(),t=Fo(),r=ai(),i=gt();class n{constructor(u=[]){this.version="8.4.38",this.plugins=this.normalize(u)}normalize(u){let f=[];for(let l of u)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))f=f.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)f.push(l);else if(typeof l=="function")f.push(l);else if(!(typeof l=="object"&&(l.parse||l.stringify)))throw new Error(l+" is not a PostCSS plugin");return f}process(u,f={}){return!this.plugins.length&&!f.parser&&!f.stringifier&&!f.syntax?new e(this,u,f):new t(this,u,f)}use(u){return this.plugins=this.plugins.concat(this.normalize([u])),this}}return fn=n,n.default=n,i.registerProcessor(n),r.registerProcessor(n),fn}var hn,Is;function gc(){if(Is)return hn;Is=1;let e=Qt(),t=Ao(),r=er(),i=ui(),n=Zt(),a=gt(),u=ci();function f(l,p){if(Array.isArray(l))return l.map(c=>f(c));let{inputs:o,...d}=l;if(o){p=[];for(let c of o){let s={...c,__proto__:n.prototype};s.map&&(s.map={...s.map,__proto__:t.prototype}),p.push(s)}}if(d.nodes&&(d.nodes=l.nodes.map(c=>f(c,p))),d.source){let{inputId:c,...s}=d.source;d.source=s,c!=null&&(d.source.input=p[c])}if(d.type==="root")return new a(d);if(d.type==="decl")return new e(d);if(d.type==="rule")return new u(d);if(d.type==="comment")return new r(d);if(d.type==="atrule")return new i(d);throw new Error("Unknown node type: "+l.type)}return hn=f,f.default=f,hn}var dn,ks;function yc(){if(ks)return dn;ks=1;let e=si(),t=Qt(),r=Fo(),i=Ue(),n=mc(),a=Jt(),u=gc(),f=ai(),l=Lo(),p=er(),o=ui(),d=li(),c=Zt(),s=fi(),m=Po(),h=ci(),g=gt(),C=Kt();function b(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new n(v)}return b.plugin=function(E,w){let y=!1;function S(...M){console&&console.warn&&!y&&(y=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
25
25
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(E+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
26
- https://www.w3ctech.com/topic/2226`));let T=b(...M);return T.postcssPlugin=E,T.postcssVersion=new n().version,T}let x;return Object.defineProperty(S,"postcss",{get(){return x||(x=S()),x}}),S.process=function(M,T,k){return w([S(k)]).process(M,T)},S},w.stringify=a,w.parse=s,w.fromJSON=u,w.list=m,w.comment=v=>new p(v),w.atRule=v=>new o(v),w.decl=v=>new t(v),w.rule=v=>new h(v),w.root=v=>new g(v),w.document=v=>new f(v),w.CssSyntaxError=e,w.Declaration=t,w.Container=i,w.Processor=n,w.Document=f,w.Comment=p,w.Warning=l,w.AtRule=o,w.Result=d,w.Input=c,w.Rule=h,w.Root=g,w.Node=C,r.registerPostcss(w),fn=w,w.default=w,fn}var cc=uc(),H=Qu(cc);H.stringify;H.fromJSON;H.plugin;H.parse;H.list;H.document;H.comment;H.atRule;H.rule;H.decl;H.root;H.CssSyntaxError;H.Declaration;H.Container;H.Processor;H.Document;H.Comment;H.Warning;H.AtRule;H.Result;H.Input;H.Rule;H.Root;H.Node;var fc=Object.defineProperty,hc=(e,t,r)=>t in e?fc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,me=(e,t,r)=>hc(e,typeof t!="symbol"?t+"":t,r);Date.now().toString();function dc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function pc(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),r}var Dt={exports:{}},Os;function mc(){if(Os)return Dt.exports;Os=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 Dt.exports=t(),Dt.exports.createColors=t,Dt.exports}var gc={},yc=Object.freeze(Object.defineProperty({__proto__:null,default:gc},Symbol.toStringTag,{value:"Module"})),Se=pc(yc),hn,Is;function ci(){if(Is)return hn;Is=1;let e=mc(),t=Se;class r extends Error{constructor(n,a,u,f,l,p){super(n),this.name="CssSyntaxError",this.reason=n,l&&(this.file=l),f&&(this.source=f),p&&(this.plugin=p),typeof a<"u"&&typeof u<"u"&&(typeof a=="number"?(this.line=a,this.column=u):(this.line=a.line,this.column=a.column,this.endLine=u.line,this.endColumn=u.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let a=this.source;n==null&&(n=e.isColorSupported),t&&n&&(a=t(a));let u=a.split(/\r?\n/),f=Math.max(this.line-3,0),l=Math.min(this.line+2,u.length),p=String(l).length,o,d;if(n){let{bold:c,gray:s,red:m}=e.createColors(!0);o=h=>c(m(h)),d=h=>s(h)}else o=d=c=>c;return u.slice(f,l).map((c,s)=>{let m=f+1+s,h=" "+(" "+m).slice(-p)+" | ";if(m===this.line){let g=d(h.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+d(h)+c+`
26
+ https://www.w3ctech.com/topic/2226`));let T=w(...M);return T.postcssPlugin=E,T.postcssVersion=new n().version,T}let x;return Object.defineProperty(S,"postcss",{get(){return x||(x=S()),x}}),S.process=function(M,T,k){return b([S(k)]).process(M,T)},S},b.stringify=a,b.parse=s,b.fromJSON=u,b.list=m,b.comment=v=>new p(v),b.atRule=v=>new o(v),b.decl=v=>new t(v),b.rule=v=>new h(v),b.root=v=>new g(v),b.document=v=>new f(v),b.CssSyntaxError=e,b.Declaration=t,b.Container=i,b.Processor=n,b.Document=f,b.Comment=p,b.Warning=l,b.AtRule=o,b.Result=d,b.Input=c,b.Rule=h,b.Root=g,b.Node=C,r.registerPostcss(b),dn=b,b.default=b,dn}var bc=yc(),H=oc(bc);H.stringify;H.fromJSON;H.plugin;H.parse;H.list;H.document;H.comment;H.atRule;H.rule;H.decl;H.root;H.CssSyntaxError;H.Declaration;H.Container;H.Processor;H.Document;H.Comment;H.Warning;H.AtRule;H.Result;H.Input;H.Rule;H.Root;H.Node;var wc=Object.defineProperty,vc=(e,t,r)=>t in e?wc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,me=(e,t,r)=>vc(e,typeof t!="symbol"?t+"":t,r);Date.now().toString();function Sc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Cc(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),r}var _t={exports:{}},As;function Ec(){if(As)return _t.exports;As=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 _t.exports=t(),_t.exports.createColors=t,_t.exports}var xc={},Rc=Object.freeze(Object.defineProperty({__proto__:null,default:xc},Symbol.toStringTag,{value:"Module"})),Se=Cc(Rc),pn,Ds;function hi(){if(Ds)return pn;Ds=1;let e=Ec(),t=Se;class r extends Error{constructor(n,a,u,f,l,p){super(n),this.name="CssSyntaxError",this.reason=n,l&&(this.file=l),f&&(this.source=f),p&&(this.plugin=p),typeof a<"u"&&typeof u<"u"&&(typeof a=="number"?(this.line=a,this.column=u):(this.line=a.line,this.column=a.column,this.endLine=u.line,this.endColumn=u.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let a=this.source;n==null&&(n=e.isColorSupported),t&&n&&(a=t(a));let u=a.split(/\r?\n/),f=Math.max(this.line-3,0),l=Math.min(this.line+2,u.length),p=String(l).length,o,d;if(n){let{bold:c,gray:s,red:m}=e.createColors(!0);o=h=>c(m(h)),d=h=>s(h)}else o=d=c=>c;return u.slice(f,l).map((c,s)=>{let m=f+1+s,h=" "+(" "+m).slice(-p)+" | ";if(m===this.line){let g=d(h.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+d(h)+c+`
27
27
  `+g+o("^")}return" "+d(h)+c}).join(`
28
28
  `)}toString(){let n=this.showSourceCode();return n&&(n=`
29
29
 
30
30
  `+n+`
31
- `),this.name+": "+this.message+n}}return hn=r,r.default=r,hn}var _t={},ks;function fi(){return ks||(ks=1,_t.isClean=Symbol("isClean"),_t.my=Symbol("my")),_t}var dn,As;function Lo(){if(As)return dn;As=1;let e={after:`
31
+ `),this.name+": "+this.message+n}}return pn=r,r.default=r,pn}var Lt={},_s;function di(){return _s||(_s=1,Lt.isClean=Symbol("isClean"),Lt.my=Symbol("my")),Lt}var mn,Ls;function Uo(){if(Ls)return mn;Ls=1;let e={after:`
32
32
  `,beforeClose:`
33
33
  `,beforeComment:`
34
34
  `,beforeDecl:`
@@ -39,18 +39,18 @@ https://www.w3ctech.com/topic/2226`));let T=b(...M);return T.postcssPlugin=E,T.p
39
39
  `)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(a,null,"beforeDecl"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeDecl(n,a){let u;return n.walkDecls(f=>{if(typeof f.raws.before<"u")return u=f.raws.before,u.includes(`
40
40
  `)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(a,null,"beforeRule"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeOpen(n){let a;return n.walk(u=>{if(u.type!=="decl"&&(a=u.raws.between,typeof a<"u"))return!1}),a}rawBeforeRule(n){let a;return n.walk(u=>{if(u.nodes&&(u.parent!==n||n.first!==u)&&typeof u.raws.before<"u")return a=u.raws.before,a.includes(`
41
41
  `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawColon(n){let a;return n.walkDecls(u=>{if(typeof u.raws.between<"u")return a=u.raws.between.replace(/[^\s:]/g,""),!1}),a}rawEmptyBody(n){let a;return n.walk(u=>{if(u.nodes&&u.nodes.length===0&&(a=u.raws.after,typeof a<"u"))return!1}),a}rawIndent(n){if(n.raws.indent)return n.raws.indent;let a;return n.walk(u=>{let f=u.parent;if(f&&f!==n&&f.parent&&f.parent===n&&typeof u.raws.before<"u"){let l=u.raws.before.split(`
42
- `);return a=l[l.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(n){let a;return n.walk(u=>{if(u.nodes&&u.nodes.length&&u.last.type==="decl"&&(a=u.raws.semicolon,typeof a<"u"))return!1}),a}rawValue(n,a){let u=n[a],f=n.raws[a];return f&&f.value===u?f.raw:u}root(n){this.body(n),n.raws.after&&this.builder(n.raws.after)}rule(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end")}stringify(n,a){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,a)}}return dn=r,r.default=r,dn}var pn,Ds;function er(){if(Ds)return pn;Ds=1;let e=Lo();function t(r,i){new e(i).stringify(r)}return pn=t,t.default=t,pn}var mn,_s;function tr(){if(_s)return mn;_s=1;let{isClean:e,my:t}=fi(),r=ci(),i=Lo(),n=er();function a(f,l){let p=new f.constructor;for(let o in f){if(!Object.prototype.hasOwnProperty.call(f,o)||o==="proxyCache")continue;let d=f[o],c=typeof d;o==="parent"&&c==="object"?l&&(p[o]=l):o==="source"?p[o]=d:Array.isArray(d)?p[o]=d.map(s=>a(s,p)):(c==="object"&&d!==null&&(d=a(d)),p[o]=d)}return p}class u{constructor(l={}){this.raws={},this[e]=!1,this[t]=!0;for(let p in l)if(p==="nodes"){this.nodes=[];for(let o of l[p])typeof o.clone=="function"?this.append(o.clone()):this.append(o)}else this[p]=l[p]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let p=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${p.input.from}:${p.start.line}:${p.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let p in l)this[p]=l[p];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let p=a(this);for(let o in l)p[o]=l[o];return p}cloneAfter(l={}){let p=this.clone(l);return this.parent.insertAfter(this,p),p}cloneBefore(l={}){let p=this.clone(l);return this.parent.insertBefore(this,p),p}error(l,p={}){if(this.source){let{end:o,start:d}=this.rangeBy(p);return this.source.input.error(l,{column:d.column,line:d.line},{column:o.column,line:o.line},p)}return new r(l)}getProxyProcessor(){return{get(l,p){return p==="proxyOf"?l:p==="root"?()=>l.root().toProxy():l[p]},set(l,p,o){return l[p]===o||(l[p]=o,(p==="prop"||p==="value"||p==="name"||p==="params"||p==="important"||p==="text")&&l.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let l=this;for(;l=l.parent;)l[e]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l,p){let o=this.source.start;if(l.index)o=this.positionInside(l.index,p);else if(l.word){p=this.toString();let d=p.indexOf(l.word);d!==-1&&(o=this.positionInside(d,p))}return o}positionInside(l,p){let o=p||this.toString(),d=this.source.start.column,c=this.source.start.line;for(let s=0;s<l;s++)o[s]===`
43
- `?(d=1,c+=1):d+=1;return{column:d,line:c}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l){let p={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:p.column+1,line:p.line};if(l.word){let d=this.toString(),c=d.indexOf(l.word);c!==-1&&(p=this.positionInside(c,d),o=this.positionInside(c+l.word.length,d))}else l.start?p={column:l.start.column,line:l.start.line}:l.index&&(p=this.positionInside(l.index)),l.end?o={column:l.end.column,line:l.end.line}:typeof l.endIndex=="number"?o=this.positionInside(l.endIndex):l.index&&(o=this.positionInside(l.index+1));return(o.line<p.line||o.line===p.line&&o.column<=p.column)&&(o={column:p.column+1,line:p.line}),{end:o,start:p}}raw(l,p){return new i().raw(this,l,p)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let p=this,o=!1;for(let d of l)d===this?o=!0:o?(this.parent.insertAfter(p,d),p=d):this.parent.insertBefore(p,d);o||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,p){let o={},d=p==null;p=p||new Map;let c=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let m=this[s];if(Array.isArray(m))o[s]=m.map(h=>typeof h=="object"&&h.toJSON?h.toJSON(null,p):h);else if(typeof m=="object"&&m.toJSON)o[s]=m.toJSON(null,p);else if(s==="source"){let h=p.get(m.input);h==null&&(h=c,p.set(m.input,c),c++),o[s]={end:m.end,inputId:h,start:m.start}}else o[s]=m}return d&&(o.inputs=[...p.keys()].map(s=>s.toJSON())),o}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=n){l.stringify&&(l=l.stringify);let p="";return l(this,o=>{p+=o}),p}warn(l,p,o){let d={node:this};for(let c in o)d[c]=o[c];return l.warn(p,d)}get proxyOf(){return this}}return mn=u,u.default=u,mn}var gn,Ls;function rr(){if(Ls)return gn;Ls=1;let e=tr();class t extends e{constructor(i){i&&typeof i.value<"u"&&typeof i.value!="string"&&(i={...i,value:String(i.value)}),super(i),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return gn=t,t.default=t,gn}var yn,Ps;function wc(){if(Ps)return yn;Ps=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return yn={nanoid:(i=21)=>{let n="",a=i;for(;a--;)n+=e[Math.random()*64|0];return n},customAlphabet:(i,n=21)=>(a=n)=>{let u="",f=a;for(;f--;)u+=i[Math.random()*i.length|0];return u}},yn}var wn,Fs;function Po(){if(Fs)return wn;Fs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Se,{existsSync:r,readFileSync:i}=Se,{dirname:n,join:a}=Se;function u(l){return Buffer?Buffer.from(l,"base64").toString():window.atob(l)}class f{constructor(p,o){if(o.map===!1)return;this.loadAnnotation(p),this.inline=this.startWith(this.annotation,"data:");let d=o.map?o.map.prev:void 0,c=this.loadMap(o.from,d);!this.mapFile&&o.from&&(this.mapFile=o.from),this.mapFile&&(this.root=n(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(p){let o=/^data:application\/json;charset=utf-?8;base64,/,d=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(c.test(p)||s.test(p))return decodeURIComponent(p.substr(RegExp.lastMatch.length));if(o.test(p)||d.test(p))return u(p.substr(RegExp.lastMatch.length));let m=p.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(p){return p.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(p){return typeof p!="object"?!1:typeof p.mappings=="string"||typeof p._mappings=="string"||Array.isArray(p.sections)}loadAnnotation(p){let o=p.match(/\/\*\s*# sourceMappingURL=/gm);if(!o)return;let d=p.lastIndexOf(o.pop()),c=p.indexOf("*/",d);d>-1&&c>-1&&(this.annotation=this.getAnnotationURL(p.substring(d,c)))}loadFile(p){if(this.root=n(p),r(p))return this.mapFile=p,i(p,"utf-8").toString().trim()}loadMap(p,o){if(o===!1)return!1;if(o){if(typeof o=="string")return o;if(typeof o=="function"){let d=o(p);if(d){let c=this.loadFile(d);if(!c)throw new Error("Unable to load previous source map: "+d.toString());return c}}else{if(o instanceof e)return t.fromSourceMap(o).toString();if(o instanceof t)return o.toString();if(this.isMap(o))return JSON.stringify(o);throw new Error("Unsupported previous source map format: "+o.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let d=this.annotation;return p&&(d=a(n(p),d)),this.loadFile(d)}}}startWith(p,o){return p?p.substr(0,o.length)===o:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return wn=f,f.default=f,wn}var bn,Us;function nr(){if(Us)return bn;Us=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Se,{fileURLToPath:r,pathToFileURL:i}=Se,{isAbsolute:n,resolve:a}=Se,{nanoid:u}=wc(),f=Se,l=ci(),p=Po(),o=Symbol("fromOffsetCache"),d=!!(e&&t),c=!!(a&&n);class s{constructor(h,g={}){if(h===null||typeof h>"u"||typeof h=="object"&&!h.toString)throw new Error(`PostCSS received ${h} instead of CSS string`);if(this.css=h.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!c||/^\w+:\/\//.test(g.from)||n(g.from)?this.file=g.from:this.file=a(g.from)),c&&d){let C=new p(this.css,g);if(C.text){this.map=C;let w=C.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+u(6)+">"),this.map&&(this.map.file=this.from)}error(h,g,C,w={}){let v,E,b;if(g&&typeof g=="object"){let S=g,x=C;if(typeof S.offset=="number"){let M=this.fromOffset(S.offset);g=M.line,C=M.col}else g=S.line,C=S.column;if(typeof x.offset=="number"){let M=this.fromOffset(x.offset);E=M.line,b=M.col}else E=x.line,b=x.column}else if(!C){let S=this.fromOffset(g);g=S.line,C=S.col}let y=this.origin(g,C,E,b);return y?v=new l(h,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,w.plugin):v=new l(h,E===void 0?g:{column:C,line:g},E===void 0?C:{column:b,line:E},this.css,this.file,w.plugin),v.input={column:C,endColumn:b,endLine:E,line:g,source:this.css},this.file&&(i&&(v.input.url=i(this.file).toString()),v.input.file=this.file),v}fromOffset(h){let g,C;if(this[o])C=this[o];else{let v=this.css.split(`
44
- `);C=new Array(v.length);let E=0;for(let b=0,y=v.length;b<y;b++)C[b]=E,E+=v[b].length+1;this[o]=C}g=C[C.length-1];let w=0;if(h>=g)w=C.length-1;else{let v=C.length-2,E;for(;w<v;)if(E=w+(v-w>>1),h<C[E])v=E-1;else if(h>=C[E+1])w=E+1;else{w=E;break}}return{col:h-C[w]+1,line:w+1}}mapResolve(h){return/^\w+:\/\//.test(h)?h:a(this.map.consumer().sourceRoot||this.map.root||".",h)}origin(h,g,C,w){if(!this.map)return!1;let v=this.map.consumer(),E=v.originalPositionFor({column:g,line:h});if(!E.source)return!1;let b;typeof C=="number"&&(b=v.originalPositionFor({column:w,line:C}));let y;n(E.source)?y=i(E.source):y=new URL(E.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let S={column:E.column,endColumn:b&&b.column,endLine:b&&b.line,line:E.line,url:y.toString()};if(y.protocol==="file:")if(r)S.file=r(y);else throw new Error("file: protocol is not available in this PostCSS build");let x=v.sourceContentFor(E.source);return x&&(S.source=x),S}toJSON(){let h={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(h[g]=this[g]);return this.map&&(h.map={...this.map},h.map.consumerCache&&(h.map.consumerCache=void 0)),h}get from(){return this.file||this.id}}return bn=s,s.default=s,f&&f.registerInput&&f.registerInput(s),bn}var vn,Bs;function Fo(){if(Bs)return vn;Bs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Se,{dirname:r,relative:i,resolve:n,sep:a}=Se,{pathToFileURL:u}=Se,f=nr(),l=!!(e&&t),p=!!(r&&n&&i&&a);class o{constructor(c,s,m,h){this.stringify=c,this.mapOpts=m.map||{},this.root=s,this.opts=m,this.css=h,this.originalCSS=h,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let s=`
42
+ `);return a=l[l.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(n){let a;return n.walk(u=>{if(u.nodes&&u.nodes.length&&u.last.type==="decl"&&(a=u.raws.semicolon,typeof a<"u"))return!1}),a}rawValue(n,a){let u=n[a],f=n.raws[a];return f&&f.value===u?f.raw:u}root(n){this.body(n),n.raws.after&&this.builder(n.raws.after)}rule(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end")}stringify(n,a){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,a)}}return mn=r,r.default=r,mn}var gn,Ps;function tr(){if(Ps)return gn;Ps=1;let e=Uo();function t(r,i){new e(i).stringify(r)}return gn=t,t.default=t,gn}var yn,Fs;function rr(){if(Fs)return yn;Fs=1;let{isClean:e,my:t}=di(),r=hi(),i=Uo(),n=tr();function a(f,l){let p=new f.constructor;for(let o in f){if(!Object.prototype.hasOwnProperty.call(f,o)||o==="proxyCache")continue;let d=f[o],c=typeof d;o==="parent"&&c==="object"?l&&(p[o]=l):o==="source"?p[o]=d:Array.isArray(d)?p[o]=d.map(s=>a(s,p)):(c==="object"&&d!==null&&(d=a(d)),p[o]=d)}return p}class u{constructor(l={}){this.raws={},this[e]=!1,this[t]=!0;for(let p in l)if(p==="nodes"){this.nodes=[];for(let o of l[p])typeof o.clone=="function"?this.append(o.clone()):this.append(o)}else this[p]=l[p]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let p=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${p.input.from}:${p.start.line}:${p.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let p in l)this[p]=l[p];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let p=a(this);for(let o in l)p[o]=l[o];return p}cloneAfter(l={}){let p=this.clone(l);return this.parent.insertAfter(this,p),p}cloneBefore(l={}){let p=this.clone(l);return this.parent.insertBefore(this,p),p}error(l,p={}){if(this.source){let{end:o,start:d}=this.rangeBy(p);return this.source.input.error(l,{column:d.column,line:d.line},{column:o.column,line:o.line},p)}return new r(l)}getProxyProcessor(){return{get(l,p){return p==="proxyOf"?l:p==="root"?()=>l.root().toProxy():l[p]},set(l,p,o){return l[p]===o||(l[p]=o,(p==="prop"||p==="value"||p==="name"||p==="params"||p==="important"||p==="text")&&l.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let l=this;for(;l=l.parent;)l[e]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l,p){let o=this.source.start;if(l.index)o=this.positionInside(l.index,p);else if(l.word){p=this.toString();let d=p.indexOf(l.word);d!==-1&&(o=this.positionInside(d,p))}return o}positionInside(l,p){let o=p||this.toString(),d=this.source.start.column,c=this.source.start.line;for(let s=0;s<l;s++)o[s]===`
43
+ `?(d=1,c+=1):d+=1;return{column:d,line:c}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l){let p={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:p.column+1,line:p.line};if(l.word){let d=this.toString(),c=d.indexOf(l.word);c!==-1&&(p=this.positionInside(c,d),o=this.positionInside(c+l.word.length,d))}else l.start?p={column:l.start.column,line:l.start.line}:l.index&&(p=this.positionInside(l.index)),l.end?o={column:l.end.column,line:l.end.line}:typeof l.endIndex=="number"?o=this.positionInside(l.endIndex):l.index&&(o=this.positionInside(l.index+1));return(o.line<p.line||o.line===p.line&&o.column<=p.column)&&(o={column:p.column+1,line:p.line}),{end:o,start:p}}raw(l,p){return new i().raw(this,l,p)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let p=this,o=!1;for(let d of l)d===this?o=!0:o?(this.parent.insertAfter(p,d),p=d):this.parent.insertBefore(p,d);o||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,p){let o={},d=p==null;p=p||new Map;let c=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let m=this[s];if(Array.isArray(m))o[s]=m.map(h=>typeof h=="object"&&h.toJSON?h.toJSON(null,p):h);else if(typeof m=="object"&&m.toJSON)o[s]=m.toJSON(null,p);else if(s==="source"){let h=p.get(m.input);h==null&&(h=c,p.set(m.input,c),c++),o[s]={end:m.end,inputId:h,start:m.start}}else o[s]=m}return d&&(o.inputs=[...p.keys()].map(s=>s.toJSON())),o}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=n){l.stringify&&(l=l.stringify);let p="";return l(this,o=>{p+=o}),p}warn(l,p,o){let d={node:this};for(let c in o)d[c]=o[c];return l.warn(p,d)}get proxyOf(){return this}}return yn=u,u.default=u,yn}var bn,Us;function nr(){if(Us)return bn;Us=1;let e=rr();class t extends e{constructor(i){i&&typeof i.value<"u"&&typeof i.value!="string"&&(i={...i,value:String(i.value)}),super(i),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return bn=t,t.default=t,bn}var wn,Bs;function Tc(){if(Bs)return wn;Bs=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return wn={nanoid:(i=21)=>{let n="",a=i;for(;a--;)n+=e[Math.random()*64|0];return n},customAlphabet:(i,n=21)=>(a=n)=>{let u="",f=a;for(;f--;)u+=i[Math.random()*i.length|0];return u}},wn}var vn,$s;function Bo(){if($s)return vn;$s=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Se,{existsSync:r,readFileSync:i}=Se,{dirname:n,join:a}=Se;function u(l){return Buffer?Buffer.from(l,"base64").toString():window.atob(l)}class f{constructor(p,o){if(o.map===!1)return;this.loadAnnotation(p),this.inline=this.startWith(this.annotation,"data:");let d=o.map?o.map.prev:void 0,c=this.loadMap(o.from,d);!this.mapFile&&o.from&&(this.mapFile=o.from),this.mapFile&&(this.root=n(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(p){let o=/^data:application\/json;charset=utf-?8;base64,/,d=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(c.test(p)||s.test(p))return decodeURIComponent(p.substr(RegExp.lastMatch.length));if(o.test(p)||d.test(p))return u(p.substr(RegExp.lastMatch.length));let m=p.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(p){return p.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(p){return typeof p!="object"?!1:typeof p.mappings=="string"||typeof p._mappings=="string"||Array.isArray(p.sections)}loadAnnotation(p){let o=p.match(/\/\*\s*# sourceMappingURL=/gm);if(!o)return;let d=p.lastIndexOf(o.pop()),c=p.indexOf("*/",d);d>-1&&c>-1&&(this.annotation=this.getAnnotationURL(p.substring(d,c)))}loadFile(p){if(this.root=n(p),r(p))return this.mapFile=p,i(p,"utf-8").toString().trim()}loadMap(p,o){if(o===!1)return!1;if(o){if(typeof o=="string")return o;if(typeof o=="function"){let d=o(p);if(d){let c=this.loadFile(d);if(!c)throw new Error("Unable to load previous source map: "+d.toString());return c}}else{if(o instanceof e)return t.fromSourceMap(o).toString();if(o instanceof t)return o.toString();if(this.isMap(o))return JSON.stringify(o);throw new Error("Unsupported previous source map format: "+o.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let d=this.annotation;return p&&(d=a(n(p),d)),this.loadFile(d)}}}startWith(p,o){return p?p.substr(0,o.length)===o:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return vn=f,f.default=f,vn}var Sn,Ws;function ir(){if(Ws)return Sn;Ws=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Se,{fileURLToPath:r,pathToFileURL:i}=Se,{isAbsolute:n,resolve:a}=Se,{nanoid:u}=Tc(),f=Se,l=hi(),p=Bo(),o=Symbol("fromOffsetCache"),d=!!(e&&t),c=!!(a&&n);class s{constructor(h,g={}){if(h===null||typeof h>"u"||typeof h=="object"&&!h.toString)throw new Error(`PostCSS received ${h} instead of CSS string`);if(this.css=h.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!c||/^\w+:\/\//.test(g.from)||n(g.from)?this.file=g.from:this.file=a(g.from)),c&&d){let C=new p(this.css,g);if(C.text){this.map=C;let b=C.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+u(6)+">"),this.map&&(this.map.file=this.from)}error(h,g,C,b={}){let v,E,w;if(g&&typeof g=="object"){let S=g,x=C;if(typeof S.offset=="number"){let M=this.fromOffset(S.offset);g=M.line,C=M.col}else g=S.line,C=S.column;if(typeof x.offset=="number"){let M=this.fromOffset(x.offset);E=M.line,w=M.col}else E=x.line,w=x.column}else if(!C){let S=this.fromOffset(g);g=S.line,C=S.col}let y=this.origin(g,C,E,w);return y?v=new l(h,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,b.plugin):v=new l(h,E===void 0?g:{column:C,line:g},E===void 0?C:{column:w,line:E},this.css,this.file,b.plugin),v.input={column:C,endColumn:w,endLine:E,line:g,source:this.css},this.file&&(i&&(v.input.url=i(this.file).toString()),v.input.file=this.file),v}fromOffset(h){let g,C;if(this[o])C=this[o];else{let v=this.css.split(`
44
+ `);C=new Array(v.length);let E=0;for(let w=0,y=v.length;w<y;w++)C[w]=E,E+=v[w].length+1;this[o]=C}g=C[C.length-1];let b=0;if(h>=g)b=C.length-1;else{let v=C.length-2,E;for(;b<v;)if(E=b+(v-b>>1),h<C[E])v=E-1;else if(h>=C[E+1])b=E+1;else{b=E;break}}return{col:h-C[b]+1,line:b+1}}mapResolve(h){return/^\w+:\/\//.test(h)?h:a(this.map.consumer().sourceRoot||this.map.root||".",h)}origin(h,g,C,b){if(!this.map)return!1;let v=this.map.consumer(),E=v.originalPositionFor({column:g,line:h});if(!E.source)return!1;let w;typeof C=="number"&&(w=v.originalPositionFor({column:b,line:C}));let y;n(E.source)?y=i(E.source):y=new URL(E.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let S={column:E.column,endColumn:w&&w.column,endLine:w&&w.line,line:E.line,url:y.toString()};if(y.protocol==="file:")if(r)S.file=r(y);else throw new Error("file: protocol is not available in this PostCSS build");let x=v.sourceContentFor(E.source);return x&&(S.source=x),S}toJSON(){let h={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(h[g]=this[g]);return this.map&&(h.map={...this.map},h.map.consumerCache&&(h.map.consumerCache=void 0)),h}get from(){return this.file||this.id}}return Sn=s,s.default=s,f&&f.registerInput&&f.registerInput(s),Sn}var Cn,zs;function $o(){if(zs)return Cn;zs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Se,{dirname:r,relative:i,resolve:n,sep:a}=Se,{pathToFileURL:u}=Se,f=ir(),l=!!(e&&t),p=!!(r&&n&&i&&a);class o{constructor(c,s,m,h){this.stringify=c,this.mapOpts=m.map||{},this.root=s,this.opts=m,this.css=h,this.originalCSS=h,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let s=`
45
45
  `;this.css.includes(`\r
46
46
  `)&&(s=`\r
47
- `),this.css+=s+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let s=this.toUrl(this.path(c.file)),m=c.root||r(c.file),h;this.mapOpts.sourcesContent===!1?(h=new e(c.text),h.sourcesContent&&(h.sourcesContent=null)):h=c.consumer(),this.map.applySourceMap(h,s,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let s=this.root.nodes.length-1;s>=0;s--)c=this.root.nodes[s],c.type==="comment"&&c.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(s)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),p&&l&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,s=>{c+=s}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=t.fromSourceMap(c,{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(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,s=1,m="<no source>",h={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,C;this.stringify(this.root,(w,v,E)=>{if(this.css+=w,v&&E!=="end"&&(h.generated.line=c,h.generated.column=s-1,v.source&&v.source.start?(h.source=this.sourcePath(v),h.original.line=v.source.start.line,h.original.column=v.source.start.column-1,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,this.map.addMapping(h))),g=w.match(/\n/g),g?(c+=g.length,C=w.lastIndexOf(`
48
- `),s=w.length-C):s+=w.length,v&&E!=="start"){let b=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==b.last||b.raws.semicolon)&&(v.source&&v.source.end?(h.source=this.sourcePath(v),h.original.line=v.source.end.line,h.original.column=v.source.end.column-1,h.generated.line=c,h.generated.column=s-2,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,h.generated.line=c,h.generated.column=s-1,this.map.addMapping(h)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(s=>s.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let s=this.memoizedPaths.get(c);if(s)return s;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(n(m,this.mapOpts.annotation)));let h=i(m,c);return this.memoizedPaths.set(c,h),h}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let s=c.source.input.map;this.previousMaps.includes(s)||this.previousMaps.push(s)}});else{let c=new f(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(s=>{if(s.source){let m=s.source.input.from;if(m&&!c[m]){c[m]=!0;let h=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(h,s.source.input.css)}}});else if(this.css){let s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let s=this.memoizedFileURLs.get(c);if(s)return s;if(u){let m=u(c).toString();return this.memoizedFileURLs.set(c,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let s=this.memoizedURLs.get(c);if(s)return s;a==="\\"&&(c=c.replace(/\\/g,"/"));let m=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,m),m}}return vn=o,vn}var Sn,$s;function ir(){if($s)return Sn;$s=1;let e=tr();class t extends e{constructor(i){super(i),this.type="comment"}}return Sn=t,t.default=t,Sn}var Cn,Ws;function Be(){if(Ws)return Cn;Ws=1;let{isClean:e,my:t}=fi(),r=rr(),i=ir(),n=tr(),a,u,f,l;function p(c){return c.map(s=>(s.nodes&&(s.nodes=p(s.nodes)),delete s.source,s))}function o(c){if(c[e]=!1,c.proxyOf.nodes)for(let s of c.proxyOf.nodes)o(s)}class d extends n{append(...s){for(let m of s){let h=this.normalize(m,this.last);for(let g of h)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(s){if(super.cleanRaws(s),this.nodes)for(let m of this.nodes)m.cleanRaws(s)}each(s){if(!this.proxyOf.nodes)return;let m=this.getIterator(),h,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(h=this.indexes[m],g=s(this.proxyOf.nodes[h],h),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(s){return this.nodes.every(s)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach;return this.indexes[s]=0,s}getProxyProcessor(){return{get(s,m){return m==="proxyOf"?s:s[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...h)=>s[m](...h.map(g=>typeof g=="function"?(C,w)=>g(C.toProxy(),w):g)):m==="every"||m==="some"?h=>s[m]((g,...C)=>h(g.toProxy(),...C)):m==="root"?()=>s.root().toProxy():m==="nodes"?s.nodes.map(h=>h.toProxy()):m==="first"||m==="last"?s[m].toProxy():s[m]:s[m]},set(s,m,h){return s[m]===h||(s[m]=h,(m==="name"||m==="params"||m==="selector")&&s.markDirty()),!0}}}index(s){return typeof s=="number"?s:(s.proxyOf&&(s=s.proxyOf),this.proxyOf.nodes.indexOf(s))}insertAfter(s,m){let h=this.index(s),g=this.normalize(m,this.proxyOf.nodes[h]).reverse();h=this.index(s);for(let w of g)this.proxyOf.nodes.splice(h+1,0,w);let C;for(let w in this.indexes)C=this.indexes[w],h<C&&(this.indexes[w]=C+g.length);return this.markDirty(),this}insertBefore(s,m){let h=this.index(s),g=h===0?"prepend":!1,C=this.normalize(m,this.proxyOf.nodes[h],g).reverse();h=this.index(s);for(let v of C)this.proxyOf.nodes.splice(h,0,v);let w;for(let v in this.indexes)w=this.indexes[v],h<=w&&(this.indexes[v]=w+C.length);return this.markDirty(),this}normalize(s,m){if(typeof s=="string")s=p(a(s).nodes);else if(typeof s>"u")s=[];else if(Array.isArray(s)){s=s.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type==="root"&&this.type!=="document"){s=s.nodes.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type)s=[s];else if(s.prop){if(typeof s.value>"u")throw new Error("Value field is missed in node creation");typeof s.value!="string"&&(s.value=String(s.value)),s=[new r(s)]}else if(s.selector)s=[new u(s)];else if(s.name)s=[new f(s)];else if(s.text)s=[new i(s)];else throw new Error("Unknown node type in node creation");return s.map(g=>(g[t]||d.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&o(g),typeof g.raws.before>"u"&&m&&typeof m.raws.before<"u"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...s){s=s.reverse();for(let m of s){let h=this.normalize(m,this.first,"prepend").reverse();for(let g of h)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+h.length}return this.markDirty(),this}push(s){return s.parent=this,this.proxyOf.nodes.push(s),this}removeAll(){for(let s of this.proxyOf.nodes)s.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(s){s=this.index(s),this.proxyOf.nodes[s].parent=void 0,this.proxyOf.nodes.splice(s,1);let m;for(let h in this.indexes)m=this.indexes[h],m>=s&&(this.indexes[h]=m-1);return this.markDirty(),this}replaceValues(s,m,h){return h||(h=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(s,h))}),this.markDirty(),this}some(s){return this.nodes.some(s)}walk(s){return this.each((m,h)=>{let g;try{g=s(m,h)}catch(C){throw m.addToError(C)}return g!==!1&&m.walk&&(g=m.walk(s)),g})}walkAtRules(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="atrule"&&s.test(h.name))return m(h,g)}):this.walk((h,g)=>{if(h.type==="atrule"&&h.name===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="atrule")return m(h,g)}))}walkComments(s){return this.walk((m,h)=>{if(m.type==="comment")return s(m,h)})}walkDecls(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="decl"&&s.test(h.prop))return m(h,g)}):this.walk((h,g)=>{if(h.type==="decl"&&h.prop===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="decl")return m(h,g)}))}walkRules(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="rule"&&s.test(h.selector))return m(h,g)}):this.walk((h,g)=>{if(h.type==="rule"&&h.selector===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="rule")return m(h,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return d.registerParse=c=>{a=c},d.registerRule=c=>{u=c},d.registerAtRule=c=>{f=c},d.registerRoot=c=>{l=c},Cn=d,d.default=d,d.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,f.prototype):c.type==="rule"?Object.setPrototypeOf(c,u.prototype):c.type==="decl"?Object.setPrototypeOf(c,r.prototype):c.type==="comment"?Object.setPrototypeOf(c,i.prototype):c.type==="root"&&Object.setPrototypeOf(c,l.prototype),c[t]=!0,c.nodes&&c.nodes.forEach(s=>{d.rebuild(s)})},Cn}var En,zs;function hi(){if(zs)return En;zs=1;let e=Be(),t,r;class i extends e{constructor(a){super({type:"document",...a}),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new r,this,a).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},En=i,i.default=i,En}var xn,qs;function Uo(){if(qs)return xn;qs=1;let e={};return xn=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},xn}var Rn,Vs;function Bo(){if(Vs)return Rn;Vs=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let n=i.node.rangeBy(i);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in i)this[n]=i[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Rn=e,e.default=e,Rn}var Tn,js;function di(){if(js)return Tn;js=1;let e=Bo();class t{constructor(i,n,a){this.processor=i,this.messages=[],this.root=n,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(i,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let a=new e(i,n);return this.messages.push(a),a}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}}return Tn=t,t.default=t,Tn}var Mn,Hs;function bc(){if(Hs)return Mn;Hs=1;let e=39,t=34,r=92,i=47,n=10,a=32,u=12,f=9,l=13,p=91,o=93,d=40,c=41,s=123,m=125,h=59,g=42,C=58,w=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return Mn=function(x,M={}){let T=x.css.valueOf(),k=M.ignoreErrors,I,R,te,re,U,P,j,K,$,B,le=T.length,N=0,Ee=[],pe=[];function lt(){return N}function ie(A){throw x.error("Unclosed "+A,N)}function we(){return pe.length===0&&N>=le}function Pe(A){if(pe.length)return pe.pop();if(N>=le)return;let Z=A?A.ignoreUnclosed:!1;switch(I=T.charCodeAt(N),I){case n:case a:case f:case l:case u:{R=N;do R+=1,I=T.charCodeAt(R);while(I===a||I===n||I===f||I===l||I===u);B=["space",T.slice(N,R)],N=R-1;break}case p:case o:case s:case m:case C:case h:case c:{let W=String.fromCharCode(I);B=[W,W,N];break}case d:{if(K=Ee.length?Ee.pop()[1]:"",$=T.charCodeAt(N+1),K==="url"&&$!==e&&$!==t&&$!==a&&$!==n&&$!==f&&$!==u&&$!==l){R=N;do{if(P=!1,R=T.indexOf(")",R+1),R===-1)if(k||Z){R=N;break}else ie("bracket");for(j=R;T.charCodeAt(j-1)===r;)j-=1,P=!P}while(P);B=["brackets",T.slice(N,R+1),N,R],N=R}else R=T.indexOf(")",N+1),re=T.slice(N,R+1),R===-1||b.test(re)?B=["(","(",N]:(B=["brackets",re,N,R],N=R);break}case e:case t:{te=I===e?"'":'"',R=N;do{if(P=!1,R=T.indexOf(te,R+1),R===-1)if(k||Z){R=N+1;break}else ie("string");for(j=R;T.charCodeAt(j-1)===r;)j-=1,P=!P}while(P);B=["string",T.slice(N,R+1),N,R],N=R;break}case w:{v.lastIndex=N+1,v.test(T),v.lastIndex===0?R=T.length-1:R=v.lastIndex-2,B=["at-word",T.slice(N,R+1),N,R],N=R;break}case r:{for(R=N,U=!0;T.charCodeAt(R+1)===r;)R+=1,U=!U;if(I=T.charCodeAt(R+1),U&&I!==i&&I!==a&&I!==n&&I!==f&&I!==l&&I!==u&&(R+=1,y.test(T.charAt(R)))){for(;y.test(T.charAt(R+1));)R+=1;T.charCodeAt(R+1)===a&&(R+=1)}B=["word",T.slice(N,R+1),N,R],N=R;break}default:{I===i&&T.charCodeAt(N+1)===g?(R=T.indexOf("*/",N+2)+1,R===0&&(k||Z?R=T.length:ie("comment")),B=["comment",T.slice(N,R+1),N,R],N=R):(E.lastIndex=N+1,E.test(T),E.lastIndex===0?R=T.length-1:R=E.lastIndex-2,B=["word",T.slice(N,R+1),N,R],Ee.push(B),N=R);break}}return N++,B}function Oe(A){pe.push(A)}return{back:Oe,endOfFile:we,nextToken:Pe,position:lt}},Mn}var Nn,Gs;function pi(){if(Gs)return Nn;Gs=1;let e=Be();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return Nn=t,t.default=t,e.registerAtRule(t),Nn}var On,Ys;function gt(){if(Ys)return On;Ys=1;let e=Be(),t,r;class i extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,u,f){let l=super.normalize(a);if(u){if(f==="prepend")this.nodes.length>1?u.raws.before=this.nodes[1].raws.before:delete u.raws.before;else if(this.first!==u)for(let p of l)p.raws.before=u.raws.before}return l}removeChild(a,u){let f=this.index(a);return!u&&f===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[f].raws.before),super.removeChild(a)}toResult(a={}){return new t(new r,this,a).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},On=i,i.default=i,e.registerRoot(i),On}var In,Xs;function $o(){if(Xs)return In;Xs=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
49
- `," "];return e.split(t,r)},split(t,r,i){let n=[],a="",u=!1,f=0,l=!1,p="",o=!1;for(let d of t)o?o=!1:d==="\\"?o=!0:l?d===p&&(l=!1):d==='"'||d==="'"?(l=!0,p=d):d==="("?f+=1:d===")"?f>0&&(f-=1):f===0&&r.includes(d)&&(u=!0),u?(a!==""&&n.push(a.trim()),a="",u=!1):a+=d;return(i||a!=="")&&n.push(a.trim()),n}};return In=e,e.default=e,In}var kn,Js;function mi(){if(Js)return kn;Js=1;let e=Be(),t=$o();class r extends e{constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(n){let a=this.selector?this.selector.match(/,\s*/):null,u=a?a[0]:","+this.raw("between","beforeOpen");this.selector=n.join(u)}}return kn=r,r.default=r,e.registerRule(r),kn}var An,Ks;function vc(){if(Ks)return An;Ks=1;let e=rr(),t=bc(),r=ir(),i=pi(),n=gt(),a=mi(),u={empty:!0,space:!0};function f(p){for(let o=p.length-1;o>=0;o--){let d=p[o],c=d[3]||d[2];if(c)return c}}class l{constructor(o){this.input=o,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}atrule(o){let d=new i;d.name=o[1].slice(1),d.name===""&&this.unnamedAtrule(d,o),this.init(d,o[2]);let c,s,m,h=!1,g=!1,C=[],w=[];for(;!this.tokenizer.endOfFile();){if(o=this.tokenizer.nextToken(),c=o[0],c==="("||c==="["?w.push(c==="("?")":"]"):c==="{"&&w.length>0?w.push("}"):c===w[w.length-1]&&w.pop(),w.length===0)if(c===";"){d.source.end=this.getPosition(o[2]),d.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){g=!0;break}else if(c==="}"){if(C.length>0){for(m=C.length-1,s=C[m];s&&s[0]==="space";)s=C[--m];s&&(d.source.end=this.getPosition(s[3]||s[2]),d.source.end.offset++)}this.end(o);break}else C.push(o);else C.push(o);if(this.tokenizer.endOfFile()){h=!0;break}}d.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(d.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(d,"params",C),h&&(o=C[C.length-1],d.source.end=this.getPosition(o[3]||o[2]),d.source.end.offset++,this.spaces=d.raws.between,d.raws.between="")):(d.raws.afterName="",d.params=""),g&&(d.nodes=[],this.current=d)}checkMissedSemicolon(o){let d=this.colon(o);if(d===!1)return;let c=0,s;for(let m=d-1;m>=0&&(s=o[m],!(s[0]!=="space"&&(c+=1,c===2)));m--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(o){let d=0,c,s,m;for(let[h,g]of o.entries()){if(c=g,s=c[0],s==="("&&(d+=1),s===")"&&(d-=1),d===0&&s===":")if(!m)this.doubleColon(c);else{if(m[0]==="word"&&m[1]==="progid")continue;return h}m=c}return!1}comment(o){let d=new r;this.init(d,o[2]),d.source.end=this.getPosition(o[3]||o[2]),d.source.end.offset++;let c=o[1].slice(2,-2);if(/^\s*$/.test(c))d.text="",d.raws.left=c,d.raws.right="";else{let s=c.match(/^(\s*)([^]*\S)(\s*)$/);d.text=s[2],d.raws.left=s[1],d.raws.right=s[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(o,d){let c=new e;this.init(c,o[0][2]);let s=o[o.length-1];for(s[0]===";"&&(this.semicolon=!0,o.pop()),c.source.end=this.getPosition(s[3]||s[2]||f(o)),c.source.end.offset++;o[0][0]!=="word";)o.length===1&&this.unknownWord(o),c.raws.before+=o.shift()[1];for(c.source.start=this.getPosition(o[0][2]),c.prop="";o.length;){let w=o[0][0];if(w===":"||w==="space"||w==="comment")break;c.prop+=o.shift()[1]}c.raws.between="";let m;for(;o.length;)if(m=o.shift(),m[0]===":"){c.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),c.raws.between+=m[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let h=[],g;for(;o.length&&(g=o[0][0],!(g!=="space"&&g!=="comment"));)h.push(o.shift());this.precheckMissedSemicolon(o);for(let w=o.length-1;w>=0;w--){if(m=o[w],m[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(o,w);v=this.spacesFromEnd(o)+v,v!==" !important"&&(c.raws.important=v);break}else if(m[1].toLowerCase()==="important"){let v=o.slice(0),E="";for(let b=w;b>0;b--){let y=v[b][0];if(E.trim().indexOf("!")===0&&y!=="space")break;E=v.pop()[1]+E}E.trim().indexOf("!")===0&&(c.important=!0,c.raws.important=E,o=v)}if(m[0]!=="space"&&m[0]!=="comment")break}o.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(c.raws.between+=h.map(w=>w[1]).join(""),h=[]),this.raw(c,"value",h.concat(o),d),c.value.includes(":")&&!d&&this.checkMissedSemicolon(o)}doubleColon(o){throw this.input.error("Double colon",{offset:o[2]},{offset:o[2]+o[1].length})}emptyRule(o){let d=new a;this.init(d,o[2]),d.selector="",d.raws.between="",this.current=d}end(o){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(o[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(o)}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(o){if(this.spaces+=o[1],this.current.nodes){let d=this.current.nodes[this.current.nodes.length-1];d&&d.type==="rule"&&!d.raws.ownSemicolon&&(d.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(o){let d=this.input.fromOffset(o);return{column:d.col,line:d.line,offset:o}}init(o,d){this.current.push(o),o.source={input:this.input,start:this.getPosition(d)},o.raws.before=this.spaces,this.spaces="",o.type!=="comment"&&(this.semicolon=!1)}other(o){let d=!1,c=null,s=!1,m=null,h=[],g=o[1].startsWith("--"),C=[],w=o;for(;w;){if(c=w[0],C.push(w),c==="("||c==="[")m||(m=w),h.push(c==="("?")":"]");else if(g&&s&&c==="{")m||(m=w),h.push("}");else if(h.length===0)if(c===";")if(s){this.decl(C,g);return}else break;else if(c==="{"){this.rule(C);return}else if(c==="}"){this.tokenizer.back(C.pop()),d=!0;break}else c===":"&&(s=!0);else c===h[h.length-1]&&(h.pop(),h.length===0&&(m=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(d=!0),h.length>0&&this.unclosedBracket(m),d&&s){if(!g)for(;C.length&&(w=C[C.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,g)}else this.unknownWord(C)}parse(){let o;for(;!this.tokenizer.endOfFile();)switch(o=this.tokenizer.nextToken(),o[0]){case"space":this.spaces+=o[1];break;case";":this.freeSemicolon(o);break;case"}":this.end(o);break;case"comment":this.comment(o);break;case"at-word":this.atrule(o);break;case"{":this.emptyRule(o);break;default:this.other(o);break}this.endFile()}precheckMissedSemicolon(){}raw(o,d,c,s){let m,h,g=c.length,C="",w=!0,v,E;for(let b=0;b<g;b+=1)m=c[b],h=m[0],h==="space"&&b===g-1&&!s?w=!1:h==="comment"?(E=c[b-1]?c[b-1][0]:"empty",v=c[b+1]?c[b+1][0]:"empty",!u[E]&&!u[v]?C.slice(-1)===","?w=!1:C+=m[1]:w=!1):C+=m[1];if(!w){let b=c.reduce((y,S)=>y+S[1],"");o.raws[d]={raw:b,value:C}}o[d]=C}rule(o){o.pop();let d=new a;this.init(d,o[0][2]),d.raws.between=this.spacesAndCommentsFromEnd(o),this.raw(d,"selector",o),this.current=d}spacesAndCommentsFromEnd(o){let d,c="";for(;o.length&&(d=o[o.length-1][0],!(d!=="space"&&d!=="comment"));)c=o.pop()[1]+c;return c}spacesAndCommentsFromStart(o){let d,c="";for(;o.length&&(d=o[0][0],!(d!=="space"&&d!=="comment"));)c+=o.shift()[1];return c}spacesFromEnd(o){let d,c="";for(;o.length&&(d=o[o.length-1][0],d==="space");)c=o.pop()[1]+c;return c}stringFrom(o,d){let c="";for(let s=d;s<o.length;s++)c+=o[s][1];return o.splice(d,o.length-d),c}unclosedBlock(){let o=this.current.source.start;throw this.input.error("Unclosed block",o.line,o.column)}unclosedBracket(o){throw this.input.error("Unclosed bracket",{offset:o[2]},{offset:o[2]+1})}unexpectedClose(o){throw this.input.error("Unexpected }",{offset:o[2]},{offset:o[2]+1})}unknownWord(o){throw this.input.error("Unknown word",{offset:o[0][2]},{offset:o[0][2]+o[0][1].length})}unnamedAtrule(o,d){throw this.input.error("At-rule without name",{offset:d[2]},{offset:d[2]+d[1].length})}}return An=l,An}var Dn,Qs;function gi(){if(Qs)return Dn;Qs=1;let e=Be(),t=vc(),r=nr();function i(n,a){let u=new r(n,a),f=new t(u);try{f.parse()}catch(l){throw l}return f.root}return Dn=i,i.default=i,e.registerParse(i),Dn}var _n,Zs;function Wo(){if(Zs)return _n;Zs=1;let{isClean:e,my:t}=fi(),r=Fo(),i=er(),n=Be(),a=hi(),u=Uo(),f=di(),l=gi(),p=gt(),o={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={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},c={Once:!0,postcssPlugin:!0,prepare:!0},s=0;function m(E){return typeof E=="object"&&typeof E.then=="function"}function h(E){let b=!1,y=o[E.type];return E.type==="decl"?b=E.prop.toLowerCase():E.type==="atrule"&&(b=E.name.toLowerCase()),b&&E.append?[y,y+"-"+b,s,y+"Exit",y+"Exit-"+b]:b?[y,y+"-"+b,y+"Exit",y+"Exit-"+b]:E.append?[y,s,y+"Exit"]:[y,y+"Exit"]}function g(E){let b;return E.type==="document"?b=["Document",s,"DocumentExit"]:E.type==="root"?b=["Root",s,"RootExit"]:b=h(E),{eventIndex:0,events:b,iterator:0,node:E,visitorIndex:0,visitors:[]}}function C(E){return E[e]=!1,E.nodes&&E.nodes.forEach(b=>C(b)),E}let w={};class v{constructor(b,y,S){this.stringified=!1,this.processed=!1;let x;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))x=C(y);else if(y instanceof v||y instanceof f)x=C(y.root),y.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=y.map);else{let M=l;S.syntax&&(M=S.syntax.parse),S.parser&&(M=S.parser),M.parse&&(M=M.parse);try{x=M(y,S)}catch(T){this.processed=!0,this.error=T}x&&!x[t]&&n.rebuild(x)}this.result=new f(b,x,S),this.helpers={...w,postcss:w,result:this.result},this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?{...M,...M.prepare(this.result)}:M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(b){return this.async().catch(b)}finally(b){return this.async().then(b,b)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(b,y){let S=this.result.lastPlugin;try{y&&y.addToError(b),this.error=b,b.name==="CssSyntaxError"&&!b.plugin?(b.plugin=S.postcssPlugin,b.setMessage()):S.postcssVersion}catch(x){console&&console.error&&console.error(x)}return b}prepareVisitors(){this.listeners={};let b=(y,S,x)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([y,x])};for(let y of this.plugins)if(typeof y=="object")for(let S in y){if(!d[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[S])if(typeof y[S]=="object")for(let x in y[S])x==="*"?b(y,S,y[S][x]):b(y,S+"-"+x.toLowerCase(),y[S][x]);else typeof y[S]=="function"&&b(y,S,y[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let b=0;b<this.plugins.length;b++){let y=this.plugins[b],S=this.runOnRoot(y);if(m(S))try{await S}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];){b[e]=!0;let y=[g(b)];for(;y.length>0;){let S=this.visitTick(y);if(m(S))try{await S}catch(x){let M=y[y.length-1].node;throw this.handleError(x,M)}}}if(this.listeners.OnceExit)for(let[y,S]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(b.type==="document"){let x=b.nodes.map(M=>S(M,this.helpers));await Promise.all(x)}else await S(b,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(b){this.result.lastPlugin=b;try{if(typeof b=="object"&&b.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(S=>b.Once(S,this.helpers));return m(y[0])?Promise.all(y):y}return b.Once(this.result.root,this.helpers)}else if(typeof b=="function")return b(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let b=this.result.opts,y=i;b.syntax&&(y=b.syntax.stringify),b.stringifier&&(y=b.stringifier),y.stringify&&(y=y.stringify);let x=new r(y,this.result.root,this.result.opts).generate();return this.result.css=x[0],this.result.map=x[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 b of this.plugins){let y=this.runOnRoot(b);if(m(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];)b[e]=!0,this.walkSync(b);if(this.listeners.OnceExit)if(b.type==="document")for(let y of b.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,b)}return this.result}then(b,y){return this.async().then(b,y)}toString(){return this.css}visitSync(b,y){for(let[S,x]of b){this.result.lastPlugin=S;let M;try{M=x(y,this.helpers)}catch(T){throw this.handleError(T,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(m(M))throw this.getAsyncError()}}visitTick(b){let y=b[b.length-1],{node:S,visitors:x}=y;if(S.type!=="root"&&S.type!=="document"&&!S.parent){b.pop();return}if(x.length>0&&y.visitorIndex<x.length){let[T,k]=x[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===x.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=T;try{return k(S.toProxy(),this.helpers)}catch(I){throw this.handleError(I,S)}}if(y.iterator!==0){let T=y.iterator,k;for(;k=S.nodes[S.indexes[T]];)if(S.indexes[T]+=1,!k[e]){k[e]=!0,b.push(g(k));return}y.iterator=0,delete S.indexes[T]}let M=y.events;for(;y.eventIndex<M.length;){let T=M[y.eventIndex];if(y.eventIndex+=1,T===s){S.nodes&&S.nodes.length&&(S[e]=!0,y.iterator=S.getIterator());return}else if(this.listeners[T]){y.visitors=this.listeners[T];return}}b.pop()}walkSync(b){b[e]=!0;let y=h(b);for(let S of y)if(S===s)b.nodes&&b.each(x=>{x[e]||this.walkSync(x)});else{let x=this.listeners[S];if(x&&this.visitSync(x,b.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 v.registerPostcss=E=>{w=E},_n=v,v.default=v,p.registerLazyResult(v),a.registerLazyResult(v),_n}var Ln,eo;function Sc(){if(eo)return Ln;eo=1;let e=Fo(),t=er(),r=Uo(),i=gi(),n=di();class a{constructor(f,l,p){l=l.toString(),this.stringified=!1,this._processor=f,this._css=l,this._opts=p,this._map=void 0;let o,d=t;this.result=new n(this._processor,o,this._opts),this.result.css=l;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let s=new e(d,o,this._opts,l);if(s.isMap()){let[m,h]=s.generate();m&&(this.result.css=m),h&&(this.result.map=h)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(f){return this.async().catch(f)}finally(f){return this.async().then(f,f)}sync(){if(this.error)throw this.error;return this.result}then(f,l){return this.async().then(f,l)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let f,l=i;try{f=l(this._css,this._opts)}catch(p){this.error=p}if(this.error)throw this.error;return this._root=f,f}get[Symbol.toStringTag](){return"NoWorkResult"}}return Ln=a,a.default=a,Ln}var Pn,to;function Cc(){if(to)return Pn;to=1;let e=Sc(),t=Wo(),r=hi(),i=gt();class n{constructor(u=[]){this.version="8.4.38",this.plugins=this.normalize(u)}normalize(u){let f=[];for(let l of u)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))f=f.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)f.push(l);else if(typeof l=="function")f.push(l);else if(!(typeof l=="object"&&(l.parse||l.stringify)))throw new Error(l+" is not a PostCSS plugin");return f}process(u,f={}){return!this.plugins.length&&!f.parser&&!f.stringifier&&!f.syntax?new e(this,u,f):new t(this,u,f)}use(u){return this.plugins=this.plugins.concat(this.normalize([u])),this}}return Pn=n,n.default=n,i.registerProcessor(n),r.registerProcessor(n),Pn}var Fn,ro;function Ec(){if(ro)return Fn;ro=1;let e=rr(),t=Po(),r=ir(),i=pi(),n=nr(),a=gt(),u=mi();function f(l,p){if(Array.isArray(l))return l.map(c=>f(c));let{inputs:o,...d}=l;if(o){p=[];for(let c of o){let s={...c,__proto__:n.prototype};s.map&&(s.map={...s.map,__proto__:t.prototype}),p.push(s)}}if(d.nodes&&(d.nodes=l.nodes.map(c=>f(c,p))),d.source){let{inputId:c,...s}=d.source;d.source=s,c!=null&&(d.source.input=p[c])}if(d.type==="root")return new a(d);if(d.type==="decl")return new e(d);if(d.type==="rule")return new u(d);if(d.type==="comment")return new r(d);if(d.type==="atrule")return new i(d);throw new Error("Unknown node type: "+l.type)}return Fn=f,f.default=f,Fn}var Un,no;function xc(){if(no)return Un;no=1;let e=ci(),t=rr(),r=Wo(),i=Be(),n=Cc(),a=er(),u=Ec(),f=hi(),l=Bo(),p=ir(),o=pi(),d=di(),c=nr(),s=gi(),m=$o(),h=mi(),g=gt(),C=tr();function w(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new n(v)}return w.plugin=function(E,b){let y=!1;function S(...M){console&&console.warn&&!y&&(y=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
47
+ `),this.css+=s+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let s=this.toUrl(this.path(c.file)),m=c.root||r(c.file),h;this.mapOpts.sourcesContent===!1?(h=new e(c.text),h.sourcesContent&&(h.sourcesContent=null)):h=c.consumer(),this.map.applySourceMap(h,s,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let s=this.root.nodes.length-1;s>=0;s--)c=this.root.nodes[s],c.type==="comment"&&c.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(s)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),p&&l&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,s=>{c+=s}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=t.fromSourceMap(c,{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(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,s=1,m="<no source>",h={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,C;this.stringify(this.root,(b,v,E)=>{if(this.css+=b,v&&E!=="end"&&(h.generated.line=c,h.generated.column=s-1,v.source&&v.source.start?(h.source=this.sourcePath(v),h.original.line=v.source.start.line,h.original.column=v.source.start.column-1,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,this.map.addMapping(h))),g=b.match(/\n/g),g?(c+=g.length,C=b.lastIndexOf(`
48
+ `),s=b.length-C):s+=b.length,v&&E!=="start"){let w=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==w.last||w.raws.semicolon)&&(v.source&&v.source.end?(h.source=this.sourcePath(v),h.original.line=v.source.end.line,h.original.column=v.source.end.column-1,h.generated.line=c,h.generated.column=s-2,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,h.generated.line=c,h.generated.column=s-1,this.map.addMapping(h)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(s=>s.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let s=this.memoizedPaths.get(c);if(s)return s;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(n(m,this.mapOpts.annotation)));let h=i(m,c);return this.memoizedPaths.set(c,h),h}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let s=c.source.input.map;this.previousMaps.includes(s)||this.previousMaps.push(s)}});else{let c=new f(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(s=>{if(s.source){let m=s.source.input.from;if(m&&!c[m]){c[m]=!0;let h=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(h,s.source.input.css)}}});else if(this.css){let s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let s=this.memoizedFileURLs.get(c);if(s)return s;if(u){let m=u(c).toString();return this.memoizedFileURLs.set(c,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let s=this.memoizedURLs.get(c);if(s)return s;a==="\\"&&(c=c.replace(/\\/g,"/"));let m=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,m),m}}return Cn=o,Cn}var En,qs;function sr(){if(qs)return En;qs=1;let e=rr();class t extends e{constructor(i){super(i),this.type="comment"}}return En=t,t.default=t,En}var xn,Vs;function Be(){if(Vs)return xn;Vs=1;let{isClean:e,my:t}=di(),r=nr(),i=sr(),n=rr(),a,u,f,l;function p(c){return c.map(s=>(s.nodes&&(s.nodes=p(s.nodes)),delete s.source,s))}function o(c){if(c[e]=!1,c.proxyOf.nodes)for(let s of c.proxyOf.nodes)o(s)}class d extends n{append(...s){for(let m of s){let h=this.normalize(m,this.last);for(let g of h)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(s){if(super.cleanRaws(s),this.nodes)for(let m of this.nodes)m.cleanRaws(s)}each(s){if(!this.proxyOf.nodes)return;let m=this.getIterator(),h,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(h=this.indexes[m],g=s(this.proxyOf.nodes[h],h),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(s){return this.nodes.every(s)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach;return this.indexes[s]=0,s}getProxyProcessor(){return{get(s,m){return m==="proxyOf"?s:s[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...h)=>s[m](...h.map(g=>typeof g=="function"?(C,b)=>g(C.toProxy(),b):g)):m==="every"||m==="some"?h=>s[m]((g,...C)=>h(g.toProxy(),...C)):m==="root"?()=>s.root().toProxy():m==="nodes"?s.nodes.map(h=>h.toProxy()):m==="first"||m==="last"?s[m].toProxy():s[m]:s[m]},set(s,m,h){return s[m]===h||(s[m]=h,(m==="name"||m==="params"||m==="selector")&&s.markDirty()),!0}}}index(s){return typeof s=="number"?s:(s.proxyOf&&(s=s.proxyOf),this.proxyOf.nodes.indexOf(s))}insertAfter(s,m){let h=this.index(s),g=this.normalize(m,this.proxyOf.nodes[h]).reverse();h=this.index(s);for(let b of g)this.proxyOf.nodes.splice(h+1,0,b);let C;for(let b in this.indexes)C=this.indexes[b],h<C&&(this.indexes[b]=C+g.length);return this.markDirty(),this}insertBefore(s,m){let h=this.index(s),g=h===0?"prepend":!1,C=this.normalize(m,this.proxyOf.nodes[h],g).reverse();h=this.index(s);for(let v of C)this.proxyOf.nodes.splice(h,0,v);let b;for(let v in this.indexes)b=this.indexes[v],h<=b&&(this.indexes[v]=b+C.length);return this.markDirty(),this}normalize(s,m){if(typeof s=="string")s=p(a(s).nodes);else if(typeof s>"u")s=[];else if(Array.isArray(s)){s=s.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type==="root"&&this.type!=="document"){s=s.nodes.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type)s=[s];else if(s.prop){if(typeof s.value>"u")throw new Error("Value field is missed in node creation");typeof s.value!="string"&&(s.value=String(s.value)),s=[new r(s)]}else if(s.selector)s=[new u(s)];else if(s.name)s=[new f(s)];else if(s.text)s=[new i(s)];else throw new Error("Unknown node type in node creation");return s.map(g=>(g[t]||d.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&o(g),typeof g.raws.before>"u"&&m&&typeof m.raws.before<"u"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...s){s=s.reverse();for(let m of s){let h=this.normalize(m,this.first,"prepend").reverse();for(let g of h)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+h.length}return this.markDirty(),this}push(s){return s.parent=this,this.proxyOf.nodes.push(s),this}removeAll(){for(let s of this.proxyOf.nodes)s.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(s){s=this.index(s),this.proxyOf.nodes[s].parent=void 0,this.proxyOf.nodes.splice(s,1);let m;for(let h in this.indexes)m=this.indexes[h],m>=s&&(this.indexes[h]=m-1);return this.markDirty(),this}replaceValues(s,m,h){return h||(h=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(s,h))}),this.markDirty(),this}some(s){return this.nodes.some(s)}walk(s){return this.each((m,h)=>{let g;try{g=s(m,h)}catch(C){throw m.addToError(C)}return g!==!1&&m.walk&&(g=m.walk(s)),g})}walkAtRules(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="atrule"&&s.test(h.name))return m(h,g)}):this.walk((h,g)=>{if(h.type==="atrule"&&h.name===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="atrule")return m(h,g)}))}walkComments(s){return this.walk((m,h)=>{if(m.type==="comment")return s(m,h)})}walkDecls(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="decl"&&s.test(h.prop))return m(h,g)}):this.walk((h,g)=>{if(h.type==="decl"&&h.prop===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="decl")return m(h,g)}))}walkRules(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="rule"&&s.test(h.selector))return m(h,g)}):this.walk((h,g)=>{if(h.type==="rule"&&h.selector===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="rule")return m(h,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return d.registerParse=c=>{a=c},d.registerRule=c=>{u=c},d.registerAtRule=c=>{f=c},d.registerRoot=c=>{l=c},xn=d,d.default=d,d.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,f.prototype):c.type==="rule"?Object.setPrototypeOf(c,u.prototype):c.type==="decl"?Object.setPrototypeOf(c,r.prototype):c.type==="comment"?Object.setPrototypeOf(c,i.prototype):c.type==="root"&&Object.setPrototypeOf(c,l.prototype),c[t]=!0,c.nodes&&c.nodes.forEach(s=>{d.rebuild(s)})},xn}var Rn,js;function pi(){if(js)return Rn;js=1;let e=Be(),t,r;class i extends e{constructor(a){super({type:"document",...a}),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new r,this,a).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},Rn=i,i.default=i,Rn}var Tn,Hs;function Wo(){if(Hs)return Tn;Hs=1;let e={};return Tn=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},Tn}var Mn,Gs;function zo(){if(Gs)return Mn;Gs=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let n=i.node.rangeBy(i);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in i)this[n]=i[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Mn=e,e.default=e,Mn}var Nn,Ys;function mi(){if(Ys)return Nn;Ys=1;let e=zo();class t{constructor(i,n,a){this.processor=i,this.messages=[],this.root=n,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(i,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let a=new e(i,n);return this.messages.push(a),a}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}}return Nn=t,t.default=t,Nn}var On,Xs;function Mc(){if(Xs)return On;Xs=1;let e=39,t=34,r=92,i=47,n=10,a=32,u=12,f=9,l=13,p=91,o=93,d=40,c=41,s=123,m=125,h=59,g=42,C=58,b=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return On=function(x,M={}){let T=x.css.valueOf(),k=M.ignoreErrors,I,R,te,re,U,P,j,Q,$,B,le=T.length,N=0,Ee=[],pe=[];function ut(){return N}function ie(A){throw x.error("Unclosed "+A,N)}function be(){return pe.length===0&&N>=le}function Pe(A){if(pe.length)return pe.pop();if(N>=le)return;let Z=A?A.ignoreUnclosed:!1;switch(I=T.charCodeAt(N),I){case n:case a:case f:case l:case u:{R=N;do R+=1,I=T.charCodeAt(R);while(I===a||I===n||I===f||I===l||I===u);B=["space",T.slice(N,R)],N=R-1;break}case p:case o:case s:case m:case C:case h:case c:{let W=String.fromCharCode(I);B=[W,W,N];break}case d:{if(Q=Ee.length?Ee.pop()[1]:"",$=T.charCodeAt(N+1),Q==="url"&&$!==e&&$!==t&&$!==a&&$!==n&&$!==f&&$!==u&&$!==l){R=N;do{if(P=!1,R=T.indexOf(")",R+1),R===-1)if(k||Z){R=N;break}else ie("bracket");for(j=R;T.charCodeAt(j-1)===r;)j-=1,P=!P}while(P);B=["brackets",T.slice(N,R+1),N,R],N=R}else R=T.indexOf(")",N+1),re=T.slice(N,R+1),R===-1||w.test(re)?B=["(","(",N]:(B=["brackets",re,N,R],N=R);break}case e:case t:{te=I===e?"'":'"',R=N;do{if(P=!1,R=T.indexOf(te,R+1),R===-1)if(k||Z){R=N+1;break}else ie("string");for(j=R;T.charCodeAt(j-1)===r;)j-=1,P=!P}while(P);B=["string",T.slice(N,R+1),N,R],N=R;break}case b:{v.lastIndex=N+1,v.test(T),v.lastIndex===0?R=T.length-1:R=v.lastIndex-2,B=["at-word",T.slice(N,R+1),N,R],N=R;break}case r:{for(R=N,U=!0;T.charCodeAt(R+1)===r;)R+=1,U=!U;if(I=T.charCodeAt(R+1),U&&I!==i&&I!==a&&I!==n&&I!==f&&I!==l&&I!==u&&(R+=1,y.test(T.charAt(R)))){for(;y.test(T.charAt(R+1));)R+=1;T.charCodeAt(R+1)===a&&(R+=1)}B=["word",T.slice(N,R+1),N,R],N=R;break}default:{I===i&&T.charCodeAt(N+1)===g?(R=T.indexOf("*/",N+2)+1,R===0&&(k||Z?R=T.length:ie("comment")),B=["comment",T.slice(N,R+1),N,R],N=R):(E.lastIndex=N+1,E.test(T),E.lastIndex===0?R=T.length-1:R=E.lastIndex-2,B=["word",T.slice(N,R+1),N,R],Ee.push(B),N=R);break}}return N++,B}function Oe(A){pe.push(A)}return{back:Oe,endOfFile:be,nextToken:Pe,position:ut}},On}var In,Js;function gi(){if(Js)return In;Js=1;let e=Be();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return In=t,t.default=t,e.registerAtRule(t),In}var kn,Ks;function yt(){if(Ks)return kn;Ks=1;let e=Be(),t,r;class i extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,u,f){let l=super.normalize(a);if(u){if(f==="prepend")this.nodes.length>1?u.raws.before=this.nodes[1].raws.before:delete u.raws.before;else if(this.first!==u)for(let p of l)p.raws.before=u.raws.before}return l}removeChild(a,u){let f=this.index(a);return!u&&f===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[f].raws.before),super.removeChild(a)}toResult(a={}){return new t(new r,this,a).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},kn=i,i.default=i,e.registerRoot(i),kn}var An,Qs;function qo(){if(Qs)return An;Qs=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
49
+ `," "];return e.split(t,r)},split(t,r,i){let n=[],a="",u=!1,f=0,l=!1,p="",o=!1;for(let d of t)o?o=!1:d==="\\"?o=!0:l?d===p&&(l=!1):d==='"'||d==="'"?(l=!0,p=d):d==="("?f+=1:d===")"?f>0&&(f-=1):f===0&&r.includes(d)&&(u=!0),u?(a!==""&&n.push(a.trim()),a="",u=!1):a+=d;return(i||a!=="")&&n.push(a.trim()),n}};return An=e,e.default=e,An}var Dn,Zs;function yi(){if(Zs)return Dn;Zs=1;let e=Be(),t=qo();class r extends e{constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(n){let a=this.selector?this.selector.match(/,\s*/):null,u=a?a[0]:","+this.raw("between","beforeOpen");this.selector=n.join(u)}}return Dn=r,r.default=r,e.registerRule(r),Dn}var _n,eo;function Nc(){if(eo)return _n;eo=1;let e=nr(),t=Mc(),r=sr(),i=gi(),n=yt(),a=yi(),u={empty:!0,space:!0};function f(p){for(let o=p.length-1;o>=0;o--){let d=p[o],c=d[3]||d[2];if(c)return c}}class l{constructor(o){this.input=o,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}atrule(o){let d=new i;d.name=o[1].slice(1),d.name===""&&this.unnamedAtrule(d,o),this.init(d,o[2]);let c,s,m,h=!1,g=!1,C=[],b=[];for(;!this.tokenizer.endOfFile();){if(o=this.tokenizer.nextToken(),c=o[0],c==="("||c==="["?b.push(c==="("?")":"]"):c==="{"&&b.length>0?b.push("}"):c===b[b.length-1]&&b.pop(),b.length===0)if(c===";"){d.source.end=this.getPosition(o[2]),d.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){g=!0;break}else if(c==="}"){if(C.length>0){for(m=C.length-1,s=C[m];s&&s[0]==="space";)s=C[--m];s&&(d.source.end=this.getPosition(s[3]||s[2]),d.source.end.offset++)}this.end(o);break}else C.push(o);else C.push(o);if(this.tokenizer.endOfFile()){h=!0;break}}d.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(d.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(d,"params",C),h&&(o=C[C.length-1],d.source.end=this.getPosition(o[3]||o[2]),d.source.end.offset++,this.spaces=d.raws.between,d.raws.between="")):(d.raws.afterName="",d.params=""),g&&(d.nodes=[],this.current=d)}checkMissedSemicolon(o){let d=this.colon(o);if(d===!1)return;let c=0,s;for(let m=d-1;m>=0&&(s=o[m],!(s[0]!=="space"&&(c+=1,c===2)));m--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(o){let d=0,c,s,m;for(let[h,g]of o.entries()){if(c=g,s=c[0],s==="("&&(d+=1),s===")"&&(d-=1),d===0&&s===":")if(!m)this.doubleColon(c);else{if(m[0]==="word"&&m[1]==="progid")continue;return h}m=c}return!1}comment(o){let d=new r;this.init(d,o[2]),d.source.end=this.getPosition(o[3]||o[2]),d.source.end.offset++;let c=o[1].slice(2,-2);if(/^\s*$/.test(c))d.text="",d.raws.left=c,d.raws.right="";else{let s=c.match(/^(\s*)([^]*\S)(\s*)$/);d.text=s[2],d.raws.left=s[1],d.raws.right=s[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(o,d){let c=new e;this.init(c,o[0][2]);let s=o[o.length-1];for(s[0]===";"&&(this.semicolon=!0,o.pop()),c.source.end=this.getPosition(s[3]||s[2]||f(o)),c.source.end.offset++;o[0][0]!=="word";)o.length===1&&this.unknownWord(o),c.raws.before+=o.shift()[1];for(c.source.start=this.getPosition(o[0][2]),c.prop="";o.length;){let b=o[0][0];if(b===":"||b==="space"||b==="comment")break;c.prop+=o.shift()[1]}c.raws.between="";let m;for(;o.length;)if(m=o.shift(),m[0]===":"){c.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),c.raws.between+=m[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let h=[],g;for(;o.length&&(g=o[0][0],!(g!=="space"&&g!=="comment"));)h.push(o.shift());this.precheckMissedSemicolon(o);for(let b=o.length-1;b>=0;b--){if(m=o[b],m[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(o,b);v=this.spacesFromEnd(o)+v,v!==" !important"&&(c.raws.important=v);break}else if(m[1].toLowerCase()==="important"){let v=o.slice(0),E="";for(let w=b;w>0;w--){let y=v[w][0];if(E.trim().indexOf("!")===0&&y!=="space")break;E=v.pop()[1]+E}E.trim().indexOf("!")===0&&(c.important=!0,c.raws.important=E,o=v)}if(m[0]!=="space"&&m[0]!=="comment")break}o.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(c.raws.between+=h.map(b=>b[1]).join(""),h=[]),this.raw(c,"value",h.concat(o),d),c.value.includes(":")&&!d&&this.checkMissedSemicolon(o)}doubleColon(o){throw this.input.error("Double colon",{offset:o[2]},{offset:o[2]+o[1].length})}emptyRule(o){let d=new a;this.init(d,o[2]),d.selector="",d.raws.between="",this.current=d}end(o){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(o[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(o)}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(o){if(this.spaces+=o[1],this.current.nodes){let d=this.current.nodes[this.current.nodes.length-1];d&&d.type==="rule"&&!d.raws.ownSemicolon&&(d.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(o){let d=this.input.fromOffset(o);return{column:d.col,line:d.line,offset:o}}init(o,d){this.current.push(o),o.source={input:this.input,start:this.getPosition(d)},o.raws.before=this.spaces,this.spaces="",o.type!=="comment"&&(this.semicolon=!1)}other(o){let d=!1,c=null,s=!1,m=null,h=[],g=o[1].startsWith("--"),C=[],b=o;for(;b;){if(c=b[0],C.push(b),c==="("||c==="[")m||(m=b),h.push(c==="("?")":"]");else if(g&&s&&c==="{")m||(m=b),h.push("}");else if(h.length===0)if(c===";")if(s){this.decl(C,g);return}else break;else if(c==="{"){this.rule(C);return}else if(c==="}"){this.tokenizer.back(C.pop()),d=!0;break}else c===":"&&(s=!0);else c===h[h.length-1]&&(h.pop(),h.length===0&&(m=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(d=!0),h.length>0&&this.unclosedBracket(m),d&&s){if(!g)for(;C.length&&(b=C[C.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,g)}else this.unknownWord(C)}parse(){let o;for(;!this.tokenizer.endOfFile();)switch(o=this.tokenizer.nextToken(),o[0]){case"space":this.spaces+=o[1];break;case";":this.freeSemicolon(o);break;case"}":this.end(o);break;case"comment":this.comment(o);break;case"at-word":this.atrule(o);break;case"{":this.emptyRule(o);break;default:this.other(o);break}this.endFile()}precheckMissedSemicolon(){}raw(o,d,c,s){let m,h,g=c.length,C="",b=!0,v,E;for(let w=0;w<g;w+=1)m=c[w],h=m[0],h==="space"&&w===g-1&&!s?b=!1:h==="comment"?(E=c[w-1]?c[w-1][0]:"empty",v=c[w+1]?c[w+1][0]:"empty",!u[E]&&!u[v]?C.slice(-1)===","?b=!1:C+=m[1]:b=!1):C+=m[1];if(!b){let w=c.reduce((y,S)=>y+S[1],"");o.raws[d]={raw:w,value:C}}o[d]=C}rule(o){o.pop();let d=new a;this.init(d,o[0][2]),d.raws.between=this.spacesAndCommentsFromEnd(o),this.raw(d,"selector",o),this.current=d}spacesAndCommentsFromEnd(o){let d,c="";for(;o.length&&(d=o[o.length-1][0],!(d!=="space"&&d!=="comment"));)c=o.pop()[1]+c;return c}spacesAndCommentsFromStart(o){let d,c="";for(;o.length&&(d=o[0][0],!(d!=="space"&&d!=="comment"));)c+=o.shift()[1];return c}spacesFromEnd(o){let d,c="";for(;o.length&&(d=o[o.length-1][0],d==="space");)c=o.pop()[1]+c;return c}stringFrom(o,d){let c="";for(let s=d;s<o.length;s++)c+=o[s][1];return o.splice(d,o.length-d),c}unclosedBlock(){let o=this.current.source.start;throw this.input.error("Unclosed block",o.line,o.column)}unclosedBracket(o){throw this.input.error("Unclosed bracket",{offset:o[2]},{offset:o[2]+1})}unexpectedClose(o){throw this.input.error("Unexpected }",{offset:o[2]},{offset:o[2]+1})}unknownWord(o){throw this.input.error("Unknown word",{offset:o[0][2]},{offset:o[0][2]+o[0][1].length})}unnamedAtrule(o,d){throw this.input.error("At-rule without name",{offset:d[2]},{offset:d[2]+d[1].length})}}return _n=l,_n}var Ln,to;function bi(){if(to)return Ln;to=1;let e=Be(),t=Nc(),r=ir();function i(n,a){let u=new r(n,a),f=new t(u);try{f.parse()}catch(l){throw l}return f.root}return Ln=i,i.default=i,e.registerParse(i),Ln}var Pn,ro;function Vo(){if(ro)return Pn;ro=1;let{isClean:e,my:t}=di(),r=$o(),i=tr(),n=Be(),a=pi(),u=Wo(),f=mi(),l=bi(),p=yt(),o={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={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},c={Once:!0,postcssPlugin:!0,prepare:!0},s=0;function m(E){return typeof E=="object"&&typeof E.then=="function"}function h(E){let w=!1,y=o[E.type];return E.type==="decl"?w=E.prop.toLowerCase():E.type==="atrule"&&(w=E.name.toLowerCase()),w&&E.append?[y,y+"-"+w,s,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:E.append?[y,s,y+"Exit"]:[y,y+"Exit"]}function g(E){let w;return E.type==="document"?w=["Document",s,"DocumentExit"]:E.type==="root"?w=["Root",s,"RootExit"]:w=h(E),{eventIndex:0,events:w,iterator:0,node:E,visitorIndex:0,visitors:[]}}function C(E){return E[e]=!1,E.nodes&&E.nodes.forEach(w=>C(w)),E}let b={};class v{constructor(w,y,S){this.stringified=!1,this.processed=!1;let x;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))x=C(y);else if(y instanceof v||y instanceof f)x=C(y.root),y.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=y.map);else{let M=l;S.syntax&&(M=S.syntax.parse),S.parser&&(M=S.parser),M.parse&&(M=M.parse);try{x=M(y,S)}catch(T){this.processed=!0,this.error=T}x&&!x[t]&&n.rebuild(x)}this.result=new f(w,x,S),this.helpers={...b,postcss:b,result:this.result},this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?{...M,...M.prepare(this.result)}:M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let S=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=S.postcssPlugin,w.setMessage()):S.postcssVersion}catch(x){console&&console.error&&console.error(x)}return w}prepareVisitors(){this.listeners={};let w=(y,S,x)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([y,x])};for(let y of this.plugins)if(typeof y=="object")for(let S in y){if(!d[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[S])if(typeof y[S]=="object")for(let x in y[S])x==="*"?w(y,S,y[S][x]):w(y,S+"-"+x.toLowerCase(),y[S][x]);else typeof y[S]=="function"&&w(y,S,y[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],S=this.runOnRoot(y);if(m(S))try{await S}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];){w[e]=!0;let y=[g(w)];for(;y.length>0;){let S=this.visitTick(y);if(m(S))try{await S}catch(x){let M=y[y.length-1].node;throw this.handleError(x,M)}}}if(this.listeners.OnceExit)for(let[y,S]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let x=w.nodes.map(M=>S(M,this.helpers));await Promise.all(x)}else await S(w,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(S=>w.Once(S,this.helpers));return m(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=i;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let x=new r(y,this.result.root,this.result.opts).generate();return this.result.css=x[0],this.result.map=x[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 w of this.plugins){let y=this.runOnRoot(w);if(m(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];)w[e]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[S,x]of w){this.result.lastPlugin=S;let M;try{M=x(y,this.helpers)}catch(T){throw this.handleError(T,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(m(M))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:S,visitors:x}=y;if(S.type!=="root"&&S.type!=="document"&&!S.parent){w.pop();return}if(x.length>0&&y.visitorIndex<x.length){let[T,k]=x[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===x.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=T;try{return k(S.toProxy(),this.helpers)}catch(I){throw this.handleError(I,S)}}if(y.iterator!==0){let T=y.iterator,k;for(;k=S.nodes[S.indexes[T]];)if(S.indexes[T]+=1,!k[e]){k[e]=!0,w.push(g(k));return}y.iterator=0,delete S.indexes[T]}let M=y.events;for(;y.eventIndex<M.length;){let T=M[y.eventIndex];if(y.eventIndex+=1,T===s){S.nodes&&S.nodes.length&&(S[e]=!0,y.iterator=S.getIterator());return}else if(this.listeners[T]){y.visitors=this.listeners[T];return}}w.pop()}walkSync(w){w[e]=!0;let y=h(w);for(let S of y)if(S===s)w.nodes&&w.each(x=>{x[e]||this.walkSync(x)});else{let x=this.listeners[S];if(x&&this.visitSync(x,w.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 v.registerPostcss=E=>{b=E},Pn=v,v.default=v,p.registerLazyResult(v),a.registerLazyResult(v),Pn}var Fn,no;function Oc(){if(no)return Fn;no=1;let e=$o(),t=tr(),r=Wo(),i=bi(),n=mi();class a{constructor(f,l,p){l=l.toString(),this.stringified=!1,this._processor=f,this._css=l,this._opts=p,this._map=void 0;let o,d=t;this.result=new n(this._processor,o,this._opts),this.result.css=l;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let s=new e(d,o,this._opts,l);if(s.isMap()){let[m,h]=s.generate();m&&(this.result.css=m),h&&(this.result.map=h)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(f){return this.async().catch(f)}finally(f){return this.async().then(f,f)}sync(){if(this.error)throw this.error;return this.result}then(f,l){return this.async().then(f,l)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let f,l=i;try{f=l(this._css,this._opts)}catch(p){this.error=p}if(this.error)throw this.error;return this._root=f,f}get[Symbol.toStringTag](){return"NoWorkResult"}}return Fn=a,a.default=a,Fn}var Un,io;function Ic(){if(io)return Un;io=1;let e=Oc(),t=Vo(),r=pi(),i=yt();class n{constructor(u=[]){this.version="8.4.38",this.plugins=this.normalize(u)}normalize(u){let f=[];for(let l of u)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))f=f.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)f.push(l);else if(typeof l=="function")f.push(l);else if(!(typeof l=="object"&&(l.parse||l.stringify)))throw new Error(l+" is not a PostCSS plugin");return f}process(u,f={}){return!this.plugins.length&&!f.parser&&!f.stringifier&&!f.syntax?new e(this,u,f):new t(this,u,f)}use(u){return this.plugins=this.plugins.concat(this.normalize([u])),this}}return Un=n,n.default=n,i.registerProcessor(n),r.registerProcessor(n),Un}var Bn,so;function kc(){if(so)return Bn;so=1;let e=nr(),t=Bo(),r=sr(),i=gi(),n=ir(),a=yt(),u=yi();function f(l,p){if(Array.isArray(l))return l.map(c=>f(c));let{inputs:o,...d}=l;if(o){p=[];for(let c of o){let s={...c,__proto__:n.prototype};s.map&&(s.map={...s.map,__proto__:t.prototype}),p.push(s)}}if(d.nodes&&(d.nodes=l.nodes.map(c=>f(c,p))),d.source){let{inputId:c,...s}=d.source;d.source=s,c!=null&&(d.source.input=p[c])}if(d.type==="root")return new a(d);if(d.type==="decl")return new e(d);if(d.type==="rule")return new u(d);if(d.type==="comment")return new r(d);if(d.type==="atrule")return new i(d);throw new Error("Unknown node type: "+l.type)}return Bn=f,f.default=f,Bn}var $n,oo;function Ac(){if(oo)return $n;oo=1;let e=hi(),t=nr(),r=Vo(),i=Be(),n=Ic(),a=tr(),u=kc(),f=pi(),l=zo(),p=sr(),o=gi(),d=mi(),c=ir(),s=bi(),m=qo(),h=yi(),g=yt(),C=rr();function b(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new n(v)}return b.plugin=function(E,w){let y=!1;function S(...M){console&&console.warn&&!y&&(y=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
50
50
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(E+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
51
- https://www.w3ctech.com/topic/2226`));let T=b(...M);return T.postcssPlugin=E,T.postcssVersion=new n().version,T}let x;return Object.defineProperty(S,"postcss",{get(){return x||(x=S()),x}}),S.process=function(M,T,k){return w([S(k)]).process(M,T)},S},w.stringify=a,w.parse=s,w.fromJSON=u,w.list=m,w.comment=v=>new p(v),w.atRule=v=>new o(v),w.decl=v=>new t(v),w.rule=v=>new h(v),w.root=v=>new g(v),w.document=v=>new f(v),w.CssSyntaxError=e,w.Declaration=t,w.Container=i,w.Processor=n,w.Document=f,w.Comment=p,w.Warning=l,w.AtRule=o,w.Result=d,w.Input=c,w.Rule=h,w.Root=g,w.Node=C,r.registerPostcss(w),Un=w,w.default=w,Un}var Rc=xc(),G=dc(Rc);G.stringify;G.fromJSON;G.plugin;G.parse;G.list;G.document;G.comment;G.atRule;G.rule;G.decl;G.root;G.CssSyntaxError;G.Declaration;G.Container;G.Processor;G.Document;G.Comment;G.Warning;G.AtRule;G.Result;G.Input;G.Rule;G.Root;G.Node;var Vn=class e{constructor(...t){me(this,"parentElement",null),me(this,"parentNode",null),me(this,"ownerDocument"),me(this,"firstChild",null),me(this,"lastChild",null),me(this,"previousSibling",null),me(this,"nextSibling",null),me(this,"ELEMENT_NODE",1),me(this,"TEXT_NODE",3),me(this,"nodeType"),me(this,"nodeName"),me(this,"RRNodeType")}get childNodes(){let t=[],r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof e){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}};var io={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument","firstChild","lastChild","nextSibling","previousSibling"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},so={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Lt={},zo={},Tc=()=>!!globalThis.Zone;function yi(e){if(Lt[e])return Lt[e];let t=globalThis[e],r=t.prototype,i=e in io?io[e]:void 0,n=!!(i&&i.every(f=>{var l,p;return!!((p=(l=Object.getOwnPropertyDescriptor(r,f))==null?void 0:l.get)!=null&&p.toString().includes("[native code]"))})),a=e in so?so[e]:void 0,u=!!(a&&a.every(f=>{var l;return typeof r[f]=="function"&&((l=r[f])==null?void 0:l.toString().includes("[native code]"))}));if(n&&u&&!Tc())return Lt[e]=t.prototype,t.prototype;try{let f=document.createElement("iframe");f.style.display="none",document.body.appendChild(f);let l=f.contentWindow;if(!l)return t.prototype;let p=l[e].prototype;if(!p)return f.remove(),r;let o=navigator.userAgent;return o.includes("Safari")&&!o.includes("Chrome")?(f.classList.add("rr-block"),f.setAttribute("__rrwebUntaintedMutationObserver",""),zo[e]=()=>f.remove()):f.remove(),Lt[e]=p}catch{return r}}var Bn={};function fe(e,t,r){var i,n;let a=(i=Bn[e])==null?void 0:i[r];if(a)return a.call(t);let u=yi(e),f=(n=Object.getOwnPropertyDescriptor(u,r))==null?void 0:n.get;return f?((Bn[e]||(Bn[e]={}))[r]=f,f.call(t)):t[r]}var $n={};function qo(e,t,r){let i=`${e}.${String(r)}`;if($n[i])return $n[i].bind(t);let a=yi(e)[r];return typeof a!="function"?t[r]:($n[i]=a,a.bind(t))}function Mc(e){return fe("Node",e,"ownerDocument")}function Nc(e){return fe("Node",e,"childNodes")}function Oc(e){return fe("Node",e,"parentNode")}function Ic(e){return fe("Node",e,"parentElement")}function kc(e){return fe("Node",e,"textContent")}function Ac(e){return fe("Node",e,"firstChild")}function Dc(e){return fe("Node",e,"lastChild")}function _c(e){return fe("Node",e,"nextSibling")}function Lc(e){return fe("Node",e,"previousSibling")}function Pc(e,t){return qo("Node",e,"contains")(t)}function Fc(e){return qo("Node",e,"getRootNode")()}function Uc(e){return!e||!("host"in e)?null:fe("ShadowRoot",e,"host")}function Bc(e){return e.styleSheets}function $c(e){return!e||!("shadowRoot"in e)?null:fe("Element",e,"shadowRoot")}function Wc(e,t){return fe("Element",e,"querySelector")(t)}function zc(e,t){return fe("Element",e,"querySelectorAll")(t)}function Vo(){return[yi("MutationObserver").constructor,zo.MutationObserver??(()=>{})]}var dt=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(dt=()=>new Date().getTime());function $e(e,t,r){try{if(!(t in e))return()=>{};let i=e[t],n=r(i);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=n,()=>{e[t]=i}}catch{return()=>{}}}var D={ownerDocument:Mc,childNodes:Nc,parentNode:Oc,parentElement:Ic,textContent:kc,firstChild:Ac,lastChild:Dc,nextSibling:_c,previousSibling:Lc,contains:Pc,getRootNode:Fc,host:Uc,styleSheets:Bc,shadowRoot:$c,querySelector:Wc,querySelectorAll:zc,nowTimestamp:dt,mutationObserverCtor:Vo,patch:$e};function se(e,t,r=document){let i={capture:!0,passive:!0};return r.addEventListener(e,t,i),()=>r.removeEventListener(e,t,i)}var Ye=`Please stop import mirror directly. Instead of that,\r
51
+ https://www.w3ctech.com/topic/2226`));let T=w(...M);return T.postcssPlugin=E,T.postcssVersion=new n().version,T}let x;return Object.defineProperty(S,"postcss",{get(){return x||(x=S()),x}}),S.process=function(M,T,k){return b([S(k)]).process(M,T)},S},b.stringify=a,b.parse=s,b.fromJSON=u,b.list=m,b.comment=v=>new p(v),b.atRule=v=>new o(v),b.decl=v=>new t(v),b.rule=v=>new h(v),b.root=v=>new g(v),b.document=v=>new f(v),b.CssSyntaxError=e,b.Declaration=t,b.Container=i,b.Processor=n,b.Document=f,b.Comment=p,b.Warning=l,b.AtRule=o,b.Result=d,b.Input=c,b.Rule=h,b.Root=g,b.Node=C,r.registerPostcss(b),$n=b,b.default=b,$n}var Dc=Ac(),G=Sc(Dc);G.stringify;G.fromJSON;G.plugin;G.parse;G.list;G.document;G.comment;G.atRule;G.rule;G.decl;G.root;G.CssSyntaxError;G.Declaration;G.Container;G.Processor;G.Document;G.Comment;G.Warning;G.AtRule;G.Result;G.Input;G.Rule;G.Root;G.Node;var Hn=class e{constructor(...t){me(this,"parentElement",null),me(this,"parentNode",null),me(this,"ownerDocument"),me(this,"firstChild",null),me(this,"lastChild",null),me(this,"previousSibling",null),me(this,"nextSibling",null),me(this,"ELEMENT_NODE",1),me(this,"TEXT_NODE",3),me(this,"nodeType"),me(this,"nodeName"),me(this,"RRNodeType")}get childNodes(){let t=[],r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof e){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}};var ao={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument","firstChild","lastChild","nextSibling","previousSibling"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},lo={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Pt={},jo={},_c=()=>!!globalThis.Zone;function wi(e){if(Pt[e])return Pt[e];let t=globalThis[e],r=t.prototype,i=e in ao?ao[e]:void 0,n=!!(i&&i.every(f=>{var l,p;return!!((p=(l=Object.getOwnPropertyDescriptor(r,f))==null?void 0:l.get)!=null&&p.toString().includes("[native code]"))})),a=e in lo?lo[e]:void 0,u=!!(a&&a.every(f=>{var l;return typeof r[f]=="function"&&((l=r[f])==null?void 0:l.toString().includes("[native code]"))}));if(n&&u&&!_c())return Pt[e]=t.prototype,t.prototype;try{let f=document.createElement("iframe");f.style.display="none",document.body.appendChild(f);let l=f.contentWindow;if(!l)return t.prototype;let p=l[e].prototype;if(!p)return f.remove(),r;let o=navigator.userAgent;return o.includes("Safari")&&!o.includes("Chrome")?(f.classList.add("rr-block"),f.setAttribute("__rrwebUntaintedMutationObserver",""),jo[e]=()=>f.remove()):f.remove(),Pt[e]=p}catch{return r}}var Wn={};function fe(e,t,r){var i,n;let a=(i=Wn[e])==null?void 0:i[r];if(a)return a.call(t);let u=wi(e),f=(n=Object.getOwnPropertyDescriptor(u,r))==null?void 0:n.get;return f?((Wn[e]||(Wn[e]={}))[r]=f,f.call(t)):t[r]}var zn={};function Ho(e,t,r){let i=`${e}.${String(r)}`;if(zn[i])return zn[i].bind(t);let a=wi(e)[r];return typeof a!="function"?t[r]:(zn[i]=a,a.bind(t))}function Lc(e){return fe("Node",e,"ownerDocument")}function Pc(e){return fe("Node",e,"childNodes")}function Fc(e){return fe("Node",e,"parentNode")}function Uc(e){return fe("Node",e,"parentElement")}function Bc(e){return fe("Node",e,"textContent")}function $c(e){return fe("Node",e,"firstChild")}function Wc(e){return fe("Node",e,"lastChild")}function zc(e){return fe("Node",e,"nextSibling")}function qc(e){return fe("Node",e,"previousSibling")}function Vc(e,t){return Ho("Node",e,"contains")(t)}function jc(e){return Ho("Node",e,"getRootNode")()}function Hc(e){return!e||!("host"in e)?null:fe("ShadowRoot",e,"host")}function Gc(e){return e.styleSheets}function Yc(e){return!e||!("shadowRoot"in e)?null:fe("Element",e,"shadowRoot")}function Xc(e,t){return fe("Element",e,"querySelector")(t)}function Jc(e,t){return fe("Element",e,"querySelectorAll")(t)}function Go(){return[wi("MutationObserver").constructor,jo.MutationObserver??(()=>{})]}var pt=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(pt=()=>new Date().getTime());function $e(e,t,r){try{if(!(t in e))return()=>{};let i=e[t],n=r(i);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=n,()=>{e[t]=i}}catch{return()=>{}}}var D={ownerDocument:Lc,childNodes:Pc,parentNode:Fc,parentElement:Uc,textContent:Bc,firstChild:$c,lastChild:Wc,nextSibling:zc,previousSibling:qc,contains:Vc,getRootNode:jc,host:Hc,styleSheets:Gc,shadowRoot:Yc,querySelector:Xc,querySelectorAll:Jc,nowTimestamp:pt,mutationObserverCtor:Go,patch:$e};function se(e,t,r=document){let i={capture:!0,passive:!0};return r.addEventListener(e,t,i),()=>r.removeEventListener(e,t,i)}var Ye=`Please stop import mirror directly. Instead of that,\r
52
52
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
53
- or you can use record.mirror to access the mirror instance during recording.`,oo={map:{},getId(){return console.error(Ye),-1},getNode(){return console.error(Ye),null},removeNodeFromMap(){console.error(Ye)},has(){return console.error(Ye),!1},reset(){console.error(Ye)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(oo=new Proxy(oo,{get(e,t,r){return t==="map"&&console.error(Ye),Reflect.get(e,t,r)}}));function pt(e,t,r={}){let i=null,n=0;return function(...a){let u=Date.now();!n&&r.leading===!1&&(n=u);let f=t-(u-n),l=this;f<=0||f>t?(i&&(clearTimeout(i),i=null),n=u,e.apply(l,a)):!i&&r.trailing!==!1&&(i=setTimeout(()=>{n=r.leading===!1?0:Date.now(),i=null,e.apply(l,a)},f))}}function sr(e,t,r,i,n=window){let a=n.Object.getOwnPropertyDescriptor(e,t);return n.Object.defineProperty(e,t,i?r:{set(u){setTimeout(()=>{r.set.call(this,u)},0),a&&a.set&&a.set.call(this,u)}}),()=>sr(e,t,a||{},!0)}function jo(e){var t,r,i,n;let a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:a.documentElement.scrollLeft||a?.body&&((t=D.parentElement(a.body))==null?void 0:t.scrollLeft)||((r=a?.body)==null?void 0:r.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:a?.documentElement.scrollTop||a?.body&&((i=D.parentElement(a.body))==null?void 0:i.scrollTop)||((n=a?.body)==null?void 0:n.scrollTop)||0}}function Ho(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Go(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Yo(e){return e?e.nodeType===e.ELEMENT_NODE?e:D.parentElement(e):null}function oe(e,t,r,i){if(!e)return!1;let n=Yo(e);if(!n)return!1;try{if(typeof t=="string"){if(n.classList.contains(t)||i&&n.closest("."+t)!==null)return!0}else if(jt(n,t,i))return!0}catch{}return!!(r&&(n.matches(r)||i&&n.closest(r)!==null))}function qc(e,t){return t.getId(e)!==-1}function Wn(e,t,r){return e.tagName==="TITLE"&&r.headTitleMutations?!0:t.getId(e)===Vt}function Xo(e,t){if(ct(e))return!1;let r=t.getId(e);if(!t.has(r))return!0;let i=D.parentNode(e);return i&&i.nodeType===e.DOCUMENT_NODE?!1:i?Xo(i,t):!0}function jn(e){return!!e.changedTouches}function Vc(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Jo(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Ko(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Hn(e){return e?e instanceof Vn&&"shadowRoot"in e?!!e.shadowRoot:!!D.shadowRoot(e):!1}var Gn=class{constructor(){O(this,"id",1),O(this,"styleIDMap",new WeakMap),O(this,"idStyleMap",new Map)}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let i;return r===void 0?i=this.id++:i=r,this.styleIDMap.set(t,i),this.idStyleMap.set(i,t),i}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function Qo(e){var t;let r=null;return"getRootNode"in e&&((t=D.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&D.host(D.getRootNode(e))&&(r=D.host(D.getRootNode(e))),r}function jc(e){let t=e,r;for(;r=Qo(t);)t=r;return t}function Hc(e){let t=D.ownerDocument(e);if(!t)return!1;let r=jc(e);return D.contains(t,r)}function Zo(e){let t=D.ownerDocument(e);return t?D.contains(t,e)||Hc(e):!1}var _=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.Asset=7]="Asset",e))(_||{}),L=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(L||{}),ae=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ae||{}),Me=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Me||{}),Ze=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Ze||{}),Xe=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Xe||{});var ea=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(ea||{}),ao=(e,t)=>`${e}@${t}`,Yn=class{constructor(){O(this,"frozen",!1),O(this,"locked",!1),O(this,"texts",[]),O(this,"attributes",[]),O(this,"attributeMap",new WeakMap),O(this,"removes",[]),O(this,"mapRemoves",[]),O(this,"movedMap",{}),O(this,"addedSet",new Set),O(this,"movedSet",new Set),O(this,"droppedSet",new Set),O(this,"removesSubTreeCache",new Set),O(this,"mutationCb"),O(this,"blockClass"),O(this,"blockSelector"),O(this,"maskTextClass"),O(this,"maskTextSelector"),O(this,"inlineStylesheet"),O(this,"maskInputOptions"),O(this,"maskTextFn"),O(this,"maskInputFn"),O(this,"keepIframeSrcFn"),O(this,"recordCanvas"),O(this,"inlineImages"),O(this,"slimDOMOptions"),O(this,"dataURLOptions"),O(this,"doc"),O(this,"mirror"),O(this,"iframeManager"),O(this,"stylesheetManager"),O(this,"shadowDomManager"),O(this,"canvasManager"),O(this,"processedNodeManager"),O(this,"unattachedDoc"),O(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),O(this,"emit",()=>{if(this.frozen||this.locked)return;let t=[],r=new Set;for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let c of this.movedSet){let s=D.parentNode(c);this.removesSubTreeCache.has(s)&&!this.movedSet.has(s)||this.addedSet.add(c)}let i=null,n=null,a=-1,u=null,f=!1,l=new Set,p=this.addedSet.values(),o=p.next();for(;this.addedSet.size;){if(i!==null&&this.addedSet.has(D.previousSibling(i)))u=i,i=D.previousSibling(i);else{for(this.addedSet.has(o.value)||(o=p.next()),i=o.value;;){if(n=D.parentNode(i),this.addedSet.has(n)){i=n;continue}break}if(l.has(n))n=null;else if(n){if(Zo(n)?(f=lo(this.droppedSet,n)||this.removesSubTreeCache.has(n),f&&lo(this.movedSet,i)&&(f=!1)):f=!0,this.addedSet.has(D.lastChild(n)))i=D.lastChild(n),u=null;else for(;;){if(u=D.nextSibling(i),this.addedSet.has(u)){i=u;continue}break}if(a=ct(n)?this.mirror.getId(Qo(i)):this.mirror.getId(n),a===-1&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let h=D.host(n);a=this.mirror.getId(h)}}}if(this.addedSet.delete(i),!n||a===-1){l.add(i);continue}else if(f){this.droppedSet.add(i);continue}let c=!1;if(i.nodeType===Node.TEXT_NODE){let h=n.tagName;if(h==="TEXTAREA")continue;h==="STYLE"&&r.has(a)&&(c=!0)}let s=u?this.mirror.getId(u):null;for(;s===Vt;)u=u&&D.nextSibling(u),s=u&&this.mirror.getId(u);if(s===-1){console.warn("Couldn't record new node. Couldn't find mirror id for nextSibling:",u),i=null;continue}let m=Ke(i,{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:h=>{Jo(h,this.mirror)&&this.iframeManager.addIframe(h),Ko(h,this.mirror)&&this.stylesheetManager.trackLinkElement(h),Hn(i)&&this.shadowDomManager.addShadowRoot(D.shadowRoot(i),this.doc)},onIframeLoad:(h,g)=>{this.iframeManager.attachIframe(h,g),this.shadowDomManager.observeAttachShadow(h)},onStylesheetLoad:(h,g)=>{this.stylesheetManager.attachLinkElement(h,g)},cssCaptured:c});m&&(t.push({parentId:a,nextId:s,node:m}),r.add(m.id))}let d={texts:this.texts.map(c=>{let s=c.node,m=D.parentNode(s);return m&&m.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(m),{id:this.mirror.getId(s),value:c.value}}).filter(c=>!r.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{let{attributes:s}=c;if(typeof s.style=="string"){let m=JSON.stringify(c.styleDiff),h=JSON.stringify(c._unchangedStyles);m.length<s.style.length&&(m+h).split("var(").length===s.style.split("var(").length&&(s.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:s}}).filter(c=>!r.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!d.texts.length&&!d.attributes.length&&!d.removes.length&&!d.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(d))}),O(this,"genTextAreaValueMutation",t=>{let r=this.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(t,r));let i=Array.from(D.childNodes(t),n=>D.textContent(n)||"").join("");r.attributes.value=Wt({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:zt(t),value:i,maskInputFn:this.maskInputFn})}),O(this,"processMutation",t=>{if(!Wn(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{let r=D.textContent(t.target);!oe(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:To(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,Yo(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{let r=t.target,i=ke(r.tagName),n=t.attributeName,a=t.target.getAttribute(n);if(n==="value"){let f=zt(r);a=Wt({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:f,value:a,maskInputFn:this.maskInputFn})}if(oe(t.target,this.blockClass,this.blockSelector,!1)||a===t.oldValue)return;let u=this.attributeMap.get(t.target);if(i==="iframe"&&n==="src"&&!this.keepIframeSrcFn(a))if(!r.contentDocument)n="rr_src";else return;if(u||(u={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(u),this.attributeMap.set(t.target,u)),n==="type"&&i==="input"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Ro(i,n))if(u.attributes[n]=xo(this.doc,i,ke(n),a),n==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let f=this.unattachedDoc.createElement("span");t.oldValue&&f.setAttribute("style",t.oldValue);for(let l of Array.from(r.style)){let p=r.style.getPropertyValue(l),o=r.style.getPropertyPriority(l);p!==f.style.getPropertyValue(l)||o!==f.style.getPropertyPriority(l)?o===""?u.styleDiff[l]=p:u.styleDiff[l]=[p,o]:u._unchangedStyles[l]=[p,o]}for(let l of Array.from(f.style))r.style.getPropertyValue(l)===""&&(u.styleDiff[l]=!1)}else n==="open"&&r.tagName==="DIALOG"&&(r.matches("dialog:modal")?u.attributes.rr_open_mode="modal":u.attributes.rr_open_mode="non-modal");break}case"childList":{if(oe(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{let i=this.mirror.getId(r),n=ct(t.target)?this.mirror.getId(D.host(t.target)):this.mirror.getId(t.target);oe(t.target,this.blockClass,this.blockSelector,!1)||Wn(r,this.mirror,this.slimDOMOptions)||!qc(r,this.mirror)||(this.addedSet.has(r)?(Xn(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&i===-1||Xo(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[ao(i,n)]?Xn(this.movedSet,r):(this.removes.push({parentId:n,id:i,isShadow:ct(t.target)&&ft(t.target)?!0:void 0}),Gc(r,this.removesSubTreeCache))),this.mapRemoves.push(r))});break}}}),O(this,"genAdds",(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Wn(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let i=null;r&&this.mirror.hasNode(r)&&(i=this.mirror.getId(r)),i&&i!==-1&&(this.movedMap[ao(this.mirror.getId(t),i)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);oe(t,this.blockClass,this.blockSelector,!1)||(D.childNodes(t).forEach(i=>this.genAdds(i)),Hn(t)&&D.childNodes(D.shadowRoot(t)).forEach(i=>{this.processedNodeManager.add(i,this),this.genAdds(i,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(r=>{this[r]=t[r]})}freeze(){this.frozen=!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 Xn(e,t){e.delete(t),D.childNodes(t).forEach(r=>Xn(e,r))}function Gc(e,t){let r=[e];for(;r.length;){let i=r.pop();t.has(i)||(t.add(i),D.childNodes(i).forEach(n=>r.push(n)))}}function lo(e,t){return e.size===0?!1:ta(e,t)}function ta(e,t){if(e.has(t))return!0;let r=D.parentNode(t);return r?ta(e,r):!1}var ht;function Yc(e){ht=e}function Xc(){ht=void 0}var F=e=>ht?(...r)=>{try{return e(...r)}catch(i){if(ht&&ht(i)===!0)return;throw i}}:e,Fe=[];function yt(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 ra(e,t){let r=new Yn;Fe.push(r),r.init(e);let[i,n]=Vo(),a=new i(F(r.processMutations.bind(r)));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[a,n]}function Jc({mousemoveCb:e,sampling:t,doc:r,mirror:i}){if(t.mousemove===!1)return()=>{};let n=typeof t.mousemove=="number"?t.mousemove:50,a=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,u=[],f,l=pt(F(d=>{let c=Date.now()-f;e(u.map(s=>(s.timeOffset-=c,s)),d),u=[],f=null}),a),p=F(pt(F(d=>{let c=yt(d),{clientX:s,clientY:m}=jn(d)?d.changedTouches[0]:d;f||(f=dt()),u.push({x:s,y:m,id:i.getId(c),timeOffset:dt()-f}),l(typeof DragEvent<"u"&&d instanceof DragEvent?L.Drag:d instanceof MouseEvent?L.MouseMove:L.TouchMove)}),n,{trailing:!1})),o=[se("mousemove",p,r),se("touchmove",p,r),se("drag",p,r)];return F(()=>{o.forEach(d=>d())})}function Kc({mouseInteractionCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,sampling:a}){if(a.mouseInteraction===!1)return()=>{};let u=a.mouseInteraction===!0||a.mouseInteraction===void 0?{}:a.mouseInteraction,f=[],l=null,p=o=>d=>{let c=yt(d);if(oe(c,i,n,!0))return;let s=null,m=o;if("pointerType"in d){switch(d.pointerType){case"mouse":s=Me.Mouse;break;case"touch":s=Me.Touch;break;case"pen":s=Me.Pen;break}s===Me.Touch?ae[o]===ae.MouseDown?m="TouchStart":ae[o]===ae.MouseUp&&(m="TouchEnd"):Me.Pen}else jn(d)&&(s=Me.Touch);s!==null?(l=s,(m.startsWith("Touch")&&s===Me.Touch||m.startsWith("Mouse")&&s===Me.Mouse)&&(s=null)):ae[o]===ae.Click&&(s=l,l=null);let h=jn(d)?d.changedTouches[0]:d;if(!h)return;let g=r.getId(c),{clientX:C,clientY:w}=h;F(e)({type:ae[m],id:g,x:C,y:w,...s!==null&&{pointerType:s}})};return Object.keys(ae).filter(o=>Number.isNaN(Number(o))&&!o.endsWith("_Departed")&&u[o]!==!1).forEach(o=>{let d=ke(o),c=p(o);if(window.PointerEvent)switch(ae[o]){case ae.MouseDown:case ae.MouseUp:d=d.replace("mouse","pointer");break;case ae.TouchStart:case ae.TouchEnd:return}f.push(se(d,c,t))}),F(()=>{f.forEach(o=>o())})}function na({scrollCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,sampling:a}){let u=F(pt(F(f=>{let l=yt(f);if(!l||oe(l,i,n,!0))return;let p=r.getId(l);if(l===t&&t.defaultView){let o=jo(t.defaultView);e({id:p,x:o.left,y:o.top})}else e({id:p,x:l.scrollLeft,y:l.scrollTop})}),a.scroll||100));return se("scroll",u,t)}function Qc({viewportResizeCb:e},{win:t}){let r=-1,i=-1,n=F(pt(F(()=>{let a=Ho(),u=Go();(r!==a||i!==u)&&(e({width:Number(u),height:Number(a)}),r=a,i=u)}),200));return se("resize",n,t)}var Zc=["INPUT","TEXTAREA","SELECT"],uo=new WeakMap;function ef({inputCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,ignoreClass:a,ignoreSelector:u,maskInputOptions:f,maskInputFn:l,sampling:p,userTriggeredOnInput:o}){function d(w){let v=yt(w),E=w.isTrusted,b=v&&v.tagName;if(v&&b==="OPTION"&&(v=D.parentElement(v)),!v||!b||Zc.indexOf(b)<0||oe(v,i,n,!0)||v.classList.contains(a)||u&&v.matches(u))return;let y=v.value,S=!1,x=zt(v)||"";x==="radio"||x==="checkbox"?S=v.checked:(f[b.toLowerCase()]||f[x])&&(y=Wt({element:v,maskInputOptions:f,tagName:b,type:x,value:y,maskInputFn:l})),c(v,o?{text:y,isChecked:S,userTriggered:E}:{text:y,isChecked:S});let M=v.name;x==="radio"&&M&&S&&t.querySelectorAll(`input[type="radio"][name="${M}"]`).forEach(T=>{if(T!==v){let k=T.value;c(T,o?{text:k,isChecked:!S,userTriggered:!1}:{text:k,isChecked:!S})}})}function c(w,v){let E=uo.get(w);if(!E||E.text!==v.text||E.isChecked!==v.isChecked){uo.set(w,v);let b=r.getId(w);F(e)({...v,id:b})}}let m=(p.input==="last"?["change"]:["input","change"]).map(w=>se(w,F(d),t)),h=t.defaultView;if(!h)return()=>{m.forEach(w=>w())};let g=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),C=[[h.HTMLInputElement.prototype,"value"],[h.HTMLInputElement.prototype,"checked"],[h.HTMLSelectElement.prototype,"value"],[h.HTMLTextAreaElement.prototype,"value"],[h.HTMLSelectElement.prototype,"selectedIndex"],[h.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&m.push(...C.map(w=>sr(w[0],w[1],{set(){F(d)({target:this,isTrusted:!1})}},!1,h))),F(()=>{m.forEach(w=>w())})}function Ht(e){let t=[];function r(i,n){if(Pt("CSSGroupingRule")&&i.parentRule instanceof CSSGroupingRule||Pt("CSSMediaRule")&&i.parentRule instanceof CSSMediaRule||Pt("CSSSupportsRule")&&i.parentRule instanceof CSSSupportsRule||Pt("CSSConditionRule")&&i.parentRule instanceof CSSConditionRule){let u=Array.from(i.parentRule.cssRules).indexOf(i);return n.unshift(u),r(i.parentRule,n)}else if(i.parentStyleSheet){let u=Array.from(i.parentStyleSheet.cssRules).indexOf(i);n.unshift(u)}return n}return r(e,t)}function Ie(e,t,r){let i,n;return e?(e.ownerNode?i=t.getId(e.ownerNode):n=r.getId(e),{styleId:n,id:i}):{}}function tf({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};let n=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(n,{apply:F((o,d,c)=>{let[s,m]=c,{id:h,styleId:g}=Ie(d,t,r.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,adds:[{rule:s,index:m}]}),o.apply(d,c)})}),i.CSSStyleSheet.prototype.addRule=function(o,d,c=this.cssRules.length){let s=`${o} { ${d} }`;return i.CSSStyleSheet.prototype.insertRule.apply(this,[s,c])};let a=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:F((o,d,c)=>{let[s]=c,{id:m,styleId:h}=Ie(d,t,r.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,removes:[{index:s}]}),o.apply(d,c)})}),i.CSSStyleSheet.prototype.removeRule=function(o){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[o])};let u;i.CSSStyleSheet.prototype.replace&&(u=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:F((o,d,c)=>{let[s]=c,{id:m,styleId:h}=Ie(d,t,r.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,replace:s}),o.apply(d,c)})}));let f;i.CSSStyleSheet.prototype.replaceSync&&(f=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(f,{apply:F((o,d,c)=>{let[s]=c,{id:m,styleId:h}=Ie(d,t,r.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,replaceSync:s}),o.apply(d,c)})}));let l={};Ft("CSSGroupingRule")?l.CSSGroupingRule=i.CSSGroupingRule:(Ft("CSSMediaRule")&&(l.CSSMediaRule=i.CSSMediaRule),Ft("CSSConditionRule")&&(l.CSSConditionRule=i.CSSConditionRule),Ft("CSSSupportsRule")&&(l.CSSSupportsRule=i.CSSSupportsRule));let p={};return Object.entries(l).forEach(([o,d])=>{p[o]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(p[o].insertRule,{apply:F((c,s,m)=>{let[h,g]=m,{id:C,styleId:w}=Ie(s.parentStyleSheet,t,r.styleMirror);return(C&&C!==-1||w&&w!==-1)&&e({id:C,styleId:w,adds:[{rule:h,index:[...Ht(s),g||0]}]}),c.apply(s,m)})}),d.prototype.deleteRule=new Proxy(p[o].deleteRule,{apply:F((c,s,m)=>{let[h]=m,{id:g,styleId:C}=Ie(s.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||C&&C!==-1)&&e({id:g,styleId:C,removes:[{index:[...Ht(s),h]}]}),c.apply(s,m)})})}),F(()=>{i.CSSStyleSheet.prototype.insertRule=n,i.CSSStyleSheet.prototype.deleteRule=a,u&&(i.CSSStyleSheet.prototype.replace=u),f&&(i.CSSStyleSheet.prototype.replaceSync=f),Object.entries(l).forEach(([o,d])=>{d.prototype.insertRule=p[o].insertRule,d.prototype.deleteRule=p[o].deleteRule})})}function ia({mirror:e,stylesheetManager:t},r){var i,n,a;let u=null;r.nodeName==="#document"?u=e.getId(r):u=e.getId(D.host(r));let f=r.nodeName==="#document"?(i=r.defaultView)==null?void 0:i.Document:(a=(n=r.ownerDocument)==null?void 0:n.defaultView)==null?void 0:a.ShadowRoot,l=f?.prototype?Object.getOwnPropertyDescriptor(f?.prototype,"adoptedStyleSheets"):void 0;return u===null||u===-1||!f||!l?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var p;return(p=l.get)==null?void 0:p.call(this)},set(p){var o;let d=(o=l.set)==null?void 0:o.call(this,p);if(u!==null&&u!==-1)try{t.adoptStyleSheets(p,u)}catch{}return d}}),F(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))}function rf({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:i},{win:n}){let a=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:F((f,l,p)=>{var o;let[d,c,s]=p;if(r.has(d))return a.apply(l,[d,c,s]);let{id:m,styleId:h}=Ie((o=l.parentRule)==null?void 0:o.parentStyleSheet,t,i.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,set:{property:d,value:c,priority:s},index:Ht(l.parentRule)}),f.apply(l,p)})});let u=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:F((f,l,p)=>{var o;let[d]=p;if(r.has(d))return u.apply(l,[d]);let{id:c,styleId:s}=Ie((o=l.parentRule)==null?void 0:o.parentStyleSheet,t,i.styleMirror);return(c&&c!==-1||s&&s!==-1)&&e({id:c,styleId:s,remove:{property:d},index:Ht(l.parentRule)}),f.apply(l,p)})}),F(()=>{n.CSSStyleDeclaration.prototype.setProperty=a,n.CSSStyleDeclaration.prototype.removeProperty=u})}function nf({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:i,sampling:n,doc:a}){let u=F(l=>pt(F(p=>{let o=yt(p);if(!o||oe(o,t,r,!0))return;let{currentTime:d,volume:c,muted:s,playbackRate:m,loop:h}=o;e({type:l,id:i.getId(o),currentTime:d,volume:c,muted:s,playbackRate:m,loop:h})}),n.media||500)),f=[se("play",u(Xe.Play),a),se("pause",u(Xe.Pause),a),se("seeked",u(Xe.Seeked),a),se("volumechange",u(Xe.VolumeChange),a),se("ratechange",u(Xe.RateChange),a)];return F(()=>{f.forEach(l=>l())})}function sf({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let i=[],n=new WeakMap,a=r.FontFace;r.FontFace=function(l,p,o){let d=new a(l,p,o);return n.set(d,{family:l,buffer:typeof p!="string",descriptors:o,fontSource:typeof p=="string"?p:JSON.stringify(Array.from(new Uint8Array(p)))}),d};let u=$e(t.fonts,"add",function(f){return function(l){return setTimeout(F(()=>{let p=n.get(l);p&&(e(p),n.delete(l))}),0),f.apply(this,[l])}});return i.push(()=>{r.FontFace=a}),i.push(u),F(()=>{i.forEach(f=>f())})}function of(e){let{doc:t,mirror:r,blockClass:i,blockSelector:n,selectionCb:a}=e,u=!0,f=F(()=>{let l=t.getSelection();if(!l||u&&l?.isCollapsed)return;u=l.isCollapsed||!1;let p=[],o=l.rangeCount||0;for(let d=0;d<o;d++){let c=l.getRangeAt(d),{startContainer:s,startOffset:m,endContainer:h,endOffset:g}=c;oe(s,i,n,!0)||oe(h,i,n,!0)||p.push({start:r.getId(s),startOffset:m,end:r.getId(h),endOffset:g})}a({ranges:p})});return f(),se("selectionchange",f)}function af({doc:e,customElementCb:t}){let r=e.defaultView;return!r||!r.customElements?()=>{}:$e(r.customElements,"define",function(n){return function(a,u,f){try{t({define:{name:a}})}catch{console.warn(`Custom element callback failed for ${a}`)}return n.apply(this,[a,u,f])}})}function lf(e,t){let{mutationCb:r,mousemoveCb:i,mouseInteractionCb:n,scrollCb:a,viewportResizeCb:u,inputCb:f,mediaInteractionCb:l,styleSheetRuleCb:p,styleDeclarationCb:o,canvasMutationCb:d,fontCb:c,selectionCb:s,customElementCb:m}=e;e.mutationCb=(...h)=>{t.mutation&&t.mutation(...h),r(...h)},e.mousemoveCb=(...h)=>{t.mousemove&&t.mousemove(...h),i(...h)},e.mouseInteractionCb=(...h)=>{t.mouseInteraction&&t.mouseInteraction(...h),n(...h)},e.scrollCb=(...h)=>{t.scroll&&t.scroll(...h),a(...h)},e.viewportResizeCb=(...h)=>{t.viewportResize&&t.viewportResize(...h),u(...h)},e.inputCb=(...h)=>{t.input&&t.input(...h),f(...h)},e.mediaInteractionCb=(...h)=>{t.mediaInteaction&&t.mediaInteaction(...h),l(...h)},e.styleSheetRuleCb=(...h)=>{t.styleSheetRule&&t.styleSheetRule(...h),p(...h)},e.styleDeclarationCb=(...h)=>{t.styleDeclaration&&t.styleDeclaration(...h),o(...h)},e.canvasMutationCb=(...h)=>{t.canvasMutation&&t.canvasMutation(...h),d(...h)},e.fontCb=(...h)=>{t.font&&t.font(...h),c(...h)},e.selectionCb=(...h)=>{t.selection&&t.selection(...h),s(...h)},e.customElementCb=(...h)=>{t.customElement&&t.customElement(...h),m(...h)}}function uf(e,t={}){let r=e.doc.defaultView;if(!r)return()=>{};lf(e,t);let i,n=()=>{};e.recordDOM&&([i,n]=ra(e,e.doc));let a=Jc(e),u=Kc(e),f=na(e),l=Qc(e,{win:r}),p=ef(e),o=nf(e),d=()=>{},c=()=>{},s=()=>{},m=()=>{};e.recordDOM&&(d=tf(e,{win:r}),c=ia(e,e.doc),s=rf(e,{win:r}),e.collectFonts&&(m=sf(e)));let h=of(e),g=af(e),C=[];for(let w of e.plugins)C.push(w.observer(w.callback,r,w.options));return F(()=>{Fe.forEach(w=>w.reset()),i?.disconnect(),n(),a(),u(),f(),l(),p(),o(),d(),c(),s(),m(),h(),g(),C.forEach(w=>w())})}function Pt(e){return typeof window[e]<"u"}function Ft(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var Gt=class{constructor(t){O(this,"iframeIdToRemoteIdMap",new WeakMap),O(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,r,i,n){let a=i||this.getIdToRemoteIdMap(t),u=n||this.getRemoteIdToIdMap(t),f=a.get(r);return f||(f=this.generateIdFn(),a.set(r,f),u.set(f,r)),f}getIds(t,r){let i=this.getIdToRemoteIdMap(t),n=this.getRemoteIdToIdMap(t);return r.map(a=>this.getId(t,a,i,n))}getRemoteId(t,r,i){let n=i||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;let a=n.get(r);return a||-1}getRemoteIds(t,r){let i=this.getRemoteIdToIdMap(t);return r.map(n=>this.getRemoteId(t,n,i))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}},Jn=class{constructor(t){O(this,"iframes",new WeakMap),O(this,"crossOriginIframeMap",new WeakMap),O(this,"crossOriginIframeMirror",new Gt(Eo)),O(this,"crossOriginIframeStyleMirror"),O(this,"crossOriginIframeRootIdMap",new WeakMap),O(this,"mirror"),O(this,"mutationCb"),O(this,"wrappedEmit"),O(this,"loadListener"),O(this,"stylesheetManager"),O(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Gt(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,r){var i,n;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((i=t.contentWindow)==null||i.addEventListener("message",this.handleMessage.bind(this))),(n=this.loadListener)==null||n.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){let r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;let n=this.crossOriginIframeMap.get(t.source);if(!n)return;let a=this.transformCrossOriginEvent(n,r.data.event);a&&this.wrappedEmit(a,r.data.isCheckout)}transformCrossOriginEvent(t,r){var i;switch(r.type){case _.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);let n=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,n),this.patchRootIdOnNode(r.data.node,n),{timestamp:r.timestamp,type:_.IncrementalSnapshot,data:{source:L.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case _.Meta:case _.Load:case _.DomContentLoaded:return!1;case _.Plugin:return r;case _.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case _.IncrementalSnapshot:switch(r.data.source){case L.Mutation:return r.data.adds.forEach(n=>{this.replaceIds(n,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(n.node,t);let a=this.crossOriginIframeRootIdMap.get(t);a&&this.patchRootIdOnNode(n.node,a)}),r.data.removes.forEach(n=>{this.replaceIds(n,t,["parentId","id"])}),r.data.attributes.forEach(n=>{this.replaceIds(n,t,["id"])}),r.data.texts.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case L.Drag:case L.TouchMove:case L.MouseMove:return r.data.positions.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case L.ViewportResize:return!1;case L.MediaInteraction:case L.MouseInteraction:case L.Scroll:case L.CanvasMutation:case L.Input:return this.replaceIds(r.data,t,["id"]),r;case L.StyleSheetRule:case L.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case L.Font:return r;case L.Selection:return r.data.ranges.forEach(n=>{this.replaceIds(n,t,["start","end"])}),r;case L.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(i=r.data.styles)==null||i.forEach(n=>{this.replaceStyleIds(n,t,["styleId"])}),r}}return!1}replace(t,r,i,n){for(let a of n)!Array.isArray(r[a])&&typeof r[a]!="number"||(Array.isArray(r[a])?r[a]=t.getIds(i,r[a]):r[a]=t.getId(i,r[a]));return r}replaceIds(t,r,i){return this.replace(this.crossOriginIframeMirror,t,r,i)}replaceStyleIds(t,r,i){return this.replace(this.crossOriginIframeStyleMirror,t,r,i)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(i=>{this.replaceIdOnNode(i,r)})}patchRootIdOnNode(t,r){t.type!==ea.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(i=>{this.patchRootIdOnNode(i,r)})}},Kn=class{constructor(t){O(this,"shadowDoms",new WeakSet),O(this,"mutationCb"),O(this,"scrollCb"),O(this,"bypassOptions"),O(this,"mirror"),O(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,r){if(!ft(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);let[i]=ra({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>i.disconnect()),this.restoreHandlers.push(na({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(D.host(t))),this.restoreHandlers.push(ia({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,r){let i=this;this.restoreHandlers.push($e(t.prototype,"attachShadow",function(n){return function(a){let u=n.call(this,a),f=D.shadowRoot(this);return f&&Zo(this)&&i.addShadowRoot(f,r),u}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},Qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cf=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(ut=0;ut<Qe.length;ut++)cf[Qe.charCodeAt(ut)]=ut;var ut,ff=function(e){var t=new Uint8Array(e),r,i=t.length,n="";for(r=0;r<i;r+=3)n+=Qe[t[r]>>2],n+=Qe[(t[r]&3)<<4|t[r+1]>>4],n+=Qe[(t[r+1]&15)<<2|t[r+2]>>6],n+=Qe[t[r+2]&63];return i%3===2?n=n.substring(0,n.length-1)+"=":i%3===1&&(n=n.substring(0,n.length-2)+"=="),n};var co=new Map;function hf(e,t){let r=co.get(e);return r||(r=new Map,co.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var sa=(e,t,r)=>{if(!e||!(aa(e,t)||typeof e=="object"))return;let i=e.constructor.name,n=hf(r,i),a=n.indexOf(e);return a===-1&&(a=n.length,n.push(e)),a};function Ut(e,t,r){if(e instanceof Array)return e.map(i=>Ut(i,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){let i=e.constructor.name,n=ff(e);return{rr_type:i,base64:n}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Ut(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let i=e.constructor.name,{src:n}=e;return{rr_type:i,src:n}}else if(e instanceof HTMLCanvasElement){let i="HTMLImageElement",n=e.toDataURL();return{rr_type:i,src:n}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Ut(e.data,t,r),e.width,e.height]};if(aa(e,t)||typeof e=="object"){let i=e.constructor.name,n=sa(e,t,r);return{rr_type:i,index:n}}}}return e}var oa=(e,t,r)=>e.map(i=>Ut(i,t,r)),aa=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(n=>typeof t[n]=="function").find(n=>e instanceof t[n]);function df(e,t,r,i){let n=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let u of a)try{if(typeof t.CanvasRenderingContext2D.prototype[u]!="function")continue;let f=$e(t.CanvasRenderingContext2D.prototype,u,function(l){return function(...p){return oe(this.canvas,r,i,!0)||setTimeout(()=>{let o=oa(p,t,this);e(this.canvas,{type:Ze["2D"],property:u,args:o})},0),l.apply(this,p)}});n.push(f)}catch{let f=sr(t.CanvasRenderingContext2D.prototype,u,{set(l){e(this.canvas,{type:Ze["2D"],property:u,args:[l],setter:!0})}});n.push(f)}return()=>{n.forEach(u=>u())}}function pf(e){return e==="experimental-webgl"?"webgl":e}function fo(e,t,r,i){let n=[];try{let a=$e(e.HTMLCanvasElement.prototype,"getContext",function(u){return function(f,...l){if(!oe(this,t,r,!0)){let p=pf(f);if("__context"in this||(this.__context=p),i&&["webgl","webgl2"].includes(p))if(l[0]&&typeof l[0]=="object"){let o=l[0];o.preserveDrawingBuffer||(o.preserveDrawingBuffer=!0)}else l.splice(0,1,{preserveDrawingBuffer:!0})}return u.apply(this,[f,...l])}});n.push(a)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{n.forEach(a=>a())}}function ho(e,t,r,i,n,a){let u=[],f=Object.getOwnPropertyNames(e);for(let l of f)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if(typeof e[l]!="function")continue;let p=$e(e,l,function(o){return function(...d){let c=o.apply(this,d);if(sa(c,a,this),"tagName"in this.canvas&&!oe(this.canvas,i,n,!0)){let s=oa(d,a,this),m={type:t,property:l,args:s};r(this.canvas,m)}return c}});u.push(p)}catch{let p=sr(e,l,{set(o){r(this.canvas,{type:t,property:l,args:[o],setter:!0})}});u.push(p)}return u}function mf(e,t,r,i){let n=[];return typeof t.WebGLRenderingContext<"u"&&n.push(...ho(t.WebGLRenderingContext.prototype,Ze.WebGL,e,r,i,t)),typeof t.WebGL2RenderingContext<"u"&&n.push(...ho(t.WebGL2RenderingContext.prototype,Ze.WebGL2,e,r,i,t)),()=>{n.forEach(a=>a())}}var la=`(function() {
53
+ or you can use record.mirror to access the mirror instance during recording.`,uo={map:{},getId(){return console.error(Ye),-1},getNode(){return console.error(Ye),null},removeNodeFromMap(){console.error(Ye)},has(){return console.error(Ye),!1},reset(){console.error(Ye)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(uo=new Proxy(uo,{get(e,t,r){return t==="map"&&console.error(Ye),Reflect.get(e,t,r)}}));function mt(e,t,r={}){let i=null,n=0;return function(...a){let u=Date.now();!n&&r.leading===!1&&(n=u);let f=t-(u-n),l=this;f<=0||f>t?(i&&(clearTimeout(i),i=null),n=u,e.apply(l,a)):!i&&r.trailing!==!1&&(i=setTimeout(()=>{n=r.leading===!1?0:Date.now(),i=null,e.apply(l,a)},f))}}function or(e,t,r,i,n=window){let a=n.Object.getOwnPropertyDescriptor(e,t);return n.Object.defineProperty(e,t,i?r:{set(u){setTimeout(()=>{r.set.call(this,u)},0),a&&a.set&&a.set.call(this,u)}}),()=>or(e,t,a||{},!0)}function Yo(e){var t,r,i,n;let a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:a.documentElement.scrollLeft||a?.body&&((t=D.parentElement(a.body))==null?void 0:t.scrollLeft)||((r=a?.body)==null?void 0:r.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:a?.documentElement.scrollTop||a?.body&&((i=D.parentElement(a.body))==null?void 0:i.scrollTop)||((n=a?.body)==null?void 0:n.scrollTop)||0}}function Xo(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Jo(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ko(e){return e?e.nodeType===e.ELEMENT_NODE?e:D.parentElement(e):null}function oe(e,t,r,i){if(!e)return!1;let n=Ko(e);if(!n)return!1;try{if(typeof t=="string"){if(n.classList.contains(t)||i&&n.closest("."+t)!==null)return!0}else if(Ht(n,t,i))return!0}catch{}return!!(r&&(n.matches(r)||i&&n.closest(r)!==null))}function Kc(e,t){return t.getId(e)!==-1}function qn(e,t,r){return e.tagName==="TITLE"&&r.headTitleMutations?!0:t.getId(e)===jt}function Qo(e,t){if(ft(e))return!1;let r=t.getId(e);if(!t.has(r))return!0;let i=D.parentNode(e);return i&&i.nodeType===e.DOCUMENT_NODE?!1:i?Qo(i,t):!0}function Gn(e){return!!e.changedTouches}function Qc(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Zo(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function ea(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Yn(e){return e?e instanceof Hn&&"shadowRoot"in e?!!e.shadowRoot:!!D.shadowRoot(e):!1}var Xn=class{constructor(){O(this,"id",1),O(this,"styleIDMap",new WeakMap),O(this,"idStyleMap",new Map)}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let i;return r===void 0?i=this.id++:i=r,this.styleIDMap.set(t,i),this.idStyleMap.set(i,t),i}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function ta(e){var t;let r=null;return"getRootNode"in e&&((t=D.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&D.host(D.getRootNode(e))&&(r=D.host(D.getRootNode(e))),r}function Zc(e){let t=e,r;for(;r=ta(t);)t=r;return t}function ef(e){let t=D.ownerDocument(e);if(!t)return!1;let r=Zc(e);return D.contains(t,r)}function ra(e){let t=D.ownerDocument(e);return t?D.contains(t,e)||ef(e):!1}var _=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.Asset=7]="Asset",e))(_||{}),L=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(L||{}),ae=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ae||{}),Me=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Me||{}),Ze=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Ze||{}),Xe=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Xe||{});var na=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(na||{}),co=(e,t)=>`${e}@${t}`,Jn=class{constructor(){O(this,"frozen",!1),O(this,"locked",!1),O(this,"texts",[]),O(this,"attributes",[]),O(this,"attributeMap",new WeakMap),O(this,"removes",[]),O(this,"mapRemoves",[]),O(this,"movedMap",{}),O(this,"addedSet",new Set),O(this,"movedSet",new Set),O(this,"droppedSet",new Set),O(this,"removesSubTreeCache",new Set),O(this,"mutationCb"),O(this,"blockClass"),O(this,"blockSelector"),O(this,"maskTextClass"),O(this,"maskTextSelector"),O(this,"inlineStylesheet"),O(this,"maskInputOptions"),O(this,"maskTextFn"),O(this,"maskInputFn"),O(this,"keepIframeSrcFn"),O(this,"recordCanvas"),O(this,"inlineImages"),O(this,"slimDOMOptions"),O(this,"dataURLOptions"),O(this,"doc"),O(this,"mirror"),O(this,"iframeManager"),O(this,"stylesheetManager"),O(this,"shadowDomManager"),O(this,"canvasManager"),O(this,"processedNodeManager"),O(this,"unattachedDoc"),O(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),O(this,"emit",()=>{if(this.frozen||this.locked)return;let t=[],r=new Set;for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let c of this.movedSet){let s=D.parentNode(c);this.removesSubTreeCache.has(s)&&!this.movedSet.has(s)||this.addedSet.add(c)}let i=null,n=null,a=-1,u=null,f=!1,l=new Set,p=this.addedSet.values(),o=p.next();for(;this.addedSet.size;){if(i!==null&&this.addedSet.has(D.previousSibling(i)))u=i,i=D.previousSibling(i);else{for(this.addedSet.has(o.value)||(o=p.next()),i=o.value;;){if(n=D.parentNode(i),this.addedSet.has(n)){i=n;continue}break}if(l.has(n))n=null;else if(n){if(ra(n)?(f=fo(this.droppedSet,n)||this.removesSubTreeCache.has(n),f&&fo(this.movedSet,i)&&(f=!1)):f=!0,this.addedSet.has(D.lastChild(n)))i=D.lastChild(n),u=null;else for(;;){if(u=D.nextSibling(i),this.addedSet.has(u)){i=u;continue}break}if(a=ft(n)?this.mirror.getId(ta(i)):this.mirror.getId(n),a===-1&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let h=D.host(n);a=this.mirror.getId(h)}}}if(this.addedSet.delete(i),!n||a===-1){l.add(i);continue}else if(f){this.droppedSet.add(i);continue}let c=!1;if(i.nodeType===Node.TEXT_NODE){let h=n.tagName;if(h==="TEXTAREA")continue;h==="STYLE"&&r.has(a)&&(c=!0)}let s=u?this.mirror.getId(u):null;for(;s===jt;)u=u&&D.nextSibling(u),s=u&&this.mirror.getId(u);if(s===-1){console.warn("Couldn't record new node. Couldn't find mirror id for nextSibling:",u),i=null;continue}let m=Ke(i,{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:h=>{Zo(h,this.mirror)&&this.iframeManager.addIframe(h),ea(h,this.mirror)&&this.stylesheetManager.trackLinkElement(h),Yn(i)&&this.shadowDomManager.addShadowRoot(D.shadowRoot(i),this.doc)},onIframeLoad:(h,g)=>{this.iframeManager.attachIframe(h,g),this.shadowDomManager.observeAttachShadow(h)},onStylesheetLoad:(h,g)=>{this.stylesheetManager.attachLinkElement(h,g)},cssCaptured:c});m&&(t.push({parentId:a,nextId:s,node:m}),r.add(m.id))}let d={texts:this.texts.map(c=>{let s=c.node,m=D.parentNode(s);return m&&m.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(m),{id:this.mirror.getId(s),value:c.value}}).filter(c=>!r.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{let{attributes:s}=c;if(typeof s.style=="string"){let m=JSON.stringify(c.styleDiff),h=JSON.stringify(c._unchangedStyles);m.length<s.style.length&&(m+h).split("var(").length===s.style.split("var(").length&&(s.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:s}}).filter(c=>!r.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!d.texts.length&&!d.attributes.length&&!d.removes.length&&!d.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(d))}),O(this,"genTextAreaValueMutation",t=>{let r=this.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(t,r));let i=Array.from(D.childNodes(t),n=>D.textContent(n)||"").join("");r.attributes.value=zt({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:qt(t),value:i,maskInputFn:this.maskInputFn})}),O(this,"processMutation",t=>{if(!qn(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{let r=D.textContent(t.target);!oe(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:Oo(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,Ko(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{let r=t.target,i=ke(r.tagName),n=t.attributeName,a=t.target.getAttribute(n);if(n==="value"){let f=qt(r);a=zt({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:f,value:a,maskInputFn:this.maskInputFn})}if(oe(t.target,this.blockClass,this.blockSelector,!1)||a===t.oldValue)return;let u=this.attributeMap.get(t.target);if(i==="iframe"&&n==="src"&&!this.keepIframeSrcFn(a))if(!r.contentDocument)n="rr_src";else return;if(u||(u={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(u),this.attributeMap.set(t.target,u)),n==="type"&&i==="input"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!No(i,n))if(u.attributes[n]=Mo(this.doc,i,ke(n),a),n==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let f=this.unattachedDoc.createElement("span");t.oldValue&&f.setAttribute("style",t.oldValue);for(let l of Array.from(r.style)){let p=r.style.getPropertyValue(l),o=r.style.getPropertyPriority(l);p!==f.style.getPropertyValue(l)||o!==f.style.getPropertyPriority(l)?o===""?u.styleDiff[l]=p:u.styleDiff[l]=[p,o]:u._unchangedStyles[l]=[p,o]}for(let l of Array.from(f.style))r.style.getPropertyValue(l)===""&&(u.styleDiff[l]=!1)}else n==="open"&&r.tagName==="DIALOG"&&(r.matches("dialog:modal")?u.attributes.rr_open_mode="modal":u.attributes.rr_open_mode="non-modal");break}case"childList":{if(oe(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{let i=this.mirror.getId(r),n=ft(t.target)?this.mirror.getId(D.host(t.target)):this.mirror.getId(t.target);oe(t.target,this.blockClass,this.blockSelector,!1)||qn(r,this.mirror,this.slimDOMOptions)||!Kc(r,this.mirror)||(this.addedSet.has(r)?(Kn(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&i===-1||Qo(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[co(i,n)]?Kn(this.movedSet,r):(this.removes.push({parentId:n,id:i,isShadow:ft(t.target)&&ht(t.target)?!0:void 0}),tf(r,this.removesSubTreeCache))),this.mapRemoves.push(r))});break}}}),O(this,"genAdds",(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(qn(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let i=null;r&&this.mirror.hasNode(r)&&(i=this.mirror.getId(r)),i&&i!==-1&&(this.movedMap[co(this.mirror.getId(t),i)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);oe(t,this.blockClass,this.blockSelector,!1)||(D.childNodes(t).forEach(i=>this.genAdds(i)),Yn(t)&&D.childNodes(D.shadowRoot(t)).forEach(i=>{this.processedNodeManager.add(i,this),this.genAdds(i,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(r=>{this[r]=t[r]})}freeze(){this.frozen=!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 Kn(e,t){e.delete(t),D.childNodes(t).forEach(r=>Kn(e,r))}function tf(e,t){let r=[e];for(;r.length;){let i=r.pop();t.has(i)||(t.add(i),D.childNodes(i).forEach(n=>r.push(n)))}}function fo(e,t){return e.size===0?!1:ia(e,t)}function ia(e,t){if(e.has(t))return!0;let r=D.parentNode(t);return r?ia(e,r):!1}var dt;function rf(e){dt=e}function nf(){dt=void 0}var F=e=>dt?(...r)=>{try{return e(...r)}catch(i){if(dt&&dt(i)===!0)return;throw i}}:e,Fe=[];function bt(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 sa(e,t){let r=new Jn;Fe.push(r),r.init(e);let[i,n]=Go(),a=new i(F(r.processMutations.bind(r)));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[a,n]}function sf({mousemoveCb:e,sampling:t,doc:r,mirror:i}){if(t.mousemove===!1)return()=>{};let n=typeof t.mousemove=="number"?t.mousemove:50,a=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,u=[],f,l=mt(F(d=>{let c=Date.now()-f;e(u.map(s=>(s.timeOffset-=c,s)),d),u=[],f=null}),a),p=F(mt(F(d=>{let c=bt(d),{clientX:s,clientY:m}=Gn(d)?d.changedTouches[0]:d;f||(f=pt()),u.push({x:s,y:m,id:i.getId(c),timeOffset:pt()-f}),l(typeof DragEvent<"u"&&d instanceof DragEvent?L.Drag:d instanceof MouseEvent?L.MouseMove:L.TouchMove)}),n,{trailing:!1})),o=[se("mousemove",p,r),se("touchmove",p,r),se("drag",p,r)];return F(()=>{o.forEach(d=>d())})}function of({mouseInteractionCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,sampling:a}){if(a.mouseInteraction===!1)return()=>{};let u=a.mouseInteraction===!0||a.mouseInteraction===void 0?{}:a.mouseInteraction,f=[],l=null,p=o=>d=>{let c=bt(d);if(oe(c,i,n,!0))return;let s=null,m=o;if("pointerType"in d){switch(d.pointerType){case"mouse":s=Me.Mouse;break;case"touch":s=Me.Touch;break;case"pen":s=Me.Pen;break}s===Me.Touch?ae[o]===ae.MouseDown?m="TouchStart":ae[o]===ae.MouseUp&&(m="TouchEnd"):Me.Pen}else Gn(d)&&(s=Me.Touch);s!==null?(l=s,(m.startsWith("Touch")&&s===Me.Touch||m.startsWith("Mouse")&&s===Me.Mouse)&&(s=null)):ae[o]===ae.Click&&(s=l,l=null);let h=Gn(d)?d.changedTouches[0]:d;if(!h)return;let g=r.getId(c),{clientX:C,clientY:b}=h;F(e)({type:ae[m],id:g,x:C,y:b,...s!==null&&{pointerType:s}})};return Object.keys(ae).filter(o=>Number.isNaN(Number(o))&&!o.endsWith("_Departed")&&u[o]!==!1).forEach(o=>{let d=ke(o),c=p(o);if(window.PointerEvent)switch(ae[o]){case ae.MouseDown:case ae.MouseUp:d=d.replace("mouse","pointer");break;case ae.TouchStart:case ae.TouchEnd:return}f.push(se(d,c,t))}),F(()=>{f.forEach(o=>o())})}function oa({scrollCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,sampling:a}){let u=F(mt(F(f=>{let l=bt(f);if(!l||oe(l,i,n,!0))return;let p=r.getId(l);if(l===t&&t.defaultView){let o=Yo(t.defaultView);e({id:p,x:o.left,y:o.top})}else e({id:p,x:l.scrollLeft,y:l.scrollTop})}),a.scroll||100));return se("scroll",u,t)}function af({viewportResizeCb:e},{win:t}){let r=-1,i=-1,n=F(mt(F(()=>{let a=Xo(),u=Jo();(r!==a||i!==u)&&(e({width:Number(u),height:Number(a)}),r=a,i=u)}),200));return se("resize",n,t)}var lf=["INPUT","TEXTAREA","SELECT"],ho=new WeakMap;function uf({inputCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,ignoreClass:a,ignoreSelector:u,maskInputOptions:f,maskInputFn:l,sampling:p,userTriggeredOnInput:o}){function d(b){let v=bt(b),E=b.isTrusted,w=v&&v.tagName;if(v&&w==="OPTION"&&(v=D.parentElement(v)),!v||!w||lf.indexOf(w)<0||oe(v,i,n,!0)||v.classList.contains(a)||u&&v.matches(u))return;let y=v.value,S=!1,x=qt(v)||"";x==="radio"||x==="checkbox"?S=v.checked:(f[w.toLowerCase()]||f[x])&&(y=zt({element:v,maskInputOptions:f,tagName:w,type:x,value:y,maskInputFn:l})),c(v,o?{text:y,isChecked:S,userTriggered:E}:{text:y,isChecked:S});let M=v.name;x==="radio"&&M&&S&&t.querySelectorAll(`input[type="radio"][name="${M}"]`).forEach(T=>{if(T!==v){let k=T.value;c(T,o?{text:k,isChecked:!S,userTriggered:!1}:{text:k,isChecked:!S})}})}function c(b,v){let E=ho.get(b);if(!E||E.text!==v.text||E.isChecked!==v.isChecked){ho.set(b,v);let w=r.getId(b);F(e)({...v,id:w})}}let m=(p.input==="last"?["change"]:["input","change"]).map(b=>se(b,F(d),t)),h=t.defaultView;if(!h)return()=>{m.forEach(b=>b())};let g=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),C=[[h.HTMLInputElement.prototype,"value"],[h.HTMLInputElement.prototype,"checked"],[h.HTMLSelectElement.prototype,"value"],[h.HTMLTextAreaElement.prototype,"value"],[h.HTMLSelectElement.prototype,"selectedIndex"],[h.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&m.push(...C.map(b=>or(b[0],b[1],{set(){F(d)({target:this,isTrusted:!1})}},!1,h))),F(()=>{m.forEach(b=>b())})}function Gt(e){let t=[];function r(i,n){if(Ft("CSSGroupingRule")&&i.parentRule instanceof CSSGroupingRule||Ft("CSSMediaRule")&&i.parentRule instanceof CSSMediaRule||Ft("CSSSupportsRule")&&i.parentRule instanceof CSSSupportsRule||Ft("CSSConditionRule")&&i.parentRule instanceof CSSConditionRule){let u=Array.from(i.parentRule.cssRules).indexOf(i);return n.unshift(u),r(i.parentRule,n)}else if(i.parentStyleSheet){let u=Array.from(i.parentStyleSheet.cssRules).indexOf(i);n.unshift(u)}return n}return r(e,t)}function Ie(e,t,r){let i,n;return e?(e.ownerNode?i=t.getId(e.ownerNode):n=r.getId(e),{styleId:n,id:i}):{}}function cf({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};let n=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(n,{apply:F((o,d,c)=>{let[s,m]=c,{id:h,styleId:g}=Ie(d,t,r.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,adds:[{rule:s,index:m}]}),o.apply(d,c)})}),i.CSSStyleSheet.prototype.addRule=function(o,d,c=this.cssRules.length){let s=`${o} { ${d} }`;return i.CSSStyleSheet.prototype.insertRule.apply(this,[s,c])};let a=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:F((o,d,c)=>{let[s]=c,{id:m,styleId:h}=Ie(d,t,r.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,removes:[{index:s}]}),o.apply(d,c)})}),i.CSSStyleSheet.prototype.removeRule=function(o){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[o])};let u;i.CSSStyleSheet.prototype.replace&&(u=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:F((o,d,c)=>{let[s]=c,{id:m,styleId:h}=Ie(d,t,r.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,replace:s}),o.apply(d,c)})}));let f;i.CSSStyleSheet.prototype.replaceSync&&(f=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(f,{apply:F((o,d,c)=>{let[s]=c,{id:m,styleId:h}=Ie(d,t,r.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,replaceSync:s}),o.apply(d,c)})}));let l={};Ut("CSSGroupingRule")?l.CSSGroupingRule=i.CSSGroupingRule:(Ut("CSSMediaRule")&&(l.CSSMediaRule=i.CSSMediaRule),Ut("CSSConditionRule")&&(l.CSSConditionRule=i.CSSConditionRule),Ut("CSSSupportsRule")&&(l.CSSSupportsRule=i.CSSSupportsRule));let p={};return Object.entries(l).forEach(([o,d])=>{p[o]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(p[o].insertRule,{apply:F((c,s,m)=>{let[h,g]=m,{id:C,styleId:b}=Ie(s.parentStyleSheet,t,r.styleMirror);return(C&&C!==-1||b&&b!==-1)&&e({id:C,styleId:b,adds:[{rule:h,index:[...Gt(s),g||0]}]}),c.apply(s,m)})}),d.prototype.deleteRule=new Proxy(p[o].deleteRule,{apply:F((c,s,m)=>{let[h]=m,{id:g,styleId:C}=Ie(s.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||C&&C!==-1)&&e({id:g,styleId:C,removes:[{index:[...Gt(s),h]}]}),c.apply(s,m)})})}),F(()=>{i.CSSStyleSheet.prototype.insertRule=n,i.CSSStyleSheet.prototype.deleteRule=a,u&&(i.CSSStyleSheet.prototype.replace=u),f&&(i.CSSStyleSheet.prototype.replaceSync=f),Object.entries(l).forEach(([o,d])=>{d.prototype.insertRule=p[o].insertRule,d.prototype.deleteRule=p[o].deleteRule})})}function aa({mirror:e,stylesheetManager:t},r){var i,n,a;let u=null;r.nodeName==="#document"?u=e.getId(r):u=e.getId(D.host(r));let f=r.nodeName==="#document"?(i=r.defaultView)==null?void 0:i.Document:(a=(n=r.ownerDocument)==null?void 0:n.defaultView)==null?void 0:a.ShadowRoot,l=f?.prototype?Object.getOwnPropertyDescriptor(f?.prototype,"adoptedStyleSheets"):void 0;return u===null||u===-1||!f||!l?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var p;return(p=l.get)==null?void 0:p.call(this)},set(p){var o;let d=(o=l.set)==null?void 0:o.call(this,p);if(u!==null&&u!==-1)try{t.adoptStyleSheets(p,u)}catch{}return d}}),F(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))}function ff({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:i},{win:n}){let a=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:F((f,l,p)=>{var o;let[d,c,s]=p;if(r.has(d))return a.apply(l,[d,c,s]);let{id:m,styleId:h}=Ie((o=l.parentRule)==null?void 0:o.parentStyleSheet,t,i.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,set:{property:d,value:c,priority:s},index:Gt(l.parentRule)}),f.apply(l,p)})});let u=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:F((f,l,p)=>{var o;let[d]=p;if(r.has(d))return u.apply(l,[d]);let{id:c,styleId:s}=Ie((o=l.parentRule)==null?void 0:o.parentStyleSheet,t,i.styleMirror);return(c&&c!==-1||s&&s!==-1)&&e({id:c,styleId:s,remove:{property:d},index:Gt(l.parentRule)}),f.apply(l,p)})}),F(()=>{n.CSSStyleDeclaration.prototype.setProperty=a,n.CSSStyleDeclaration.prototype.removeProperty=u})}function hf({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:i,sampling:n,doc:a}){let u=F(l=>mt(F(p=>{let o=bt(p);if(!o||oe(o,t,r,!0))return;let{currentTime:d,volume:c,muted:s,playbackRate:m,loop:h}=o;e({type:l,id:i.getId(o),currentTime:d,volume:c,muted:s,playbackRate:m,loop:h})}),n.media||500)),f=[se("play",u(Xe.Play),a),se("pause",u(Xe.Pause),a),se("seeked",u(Xe.Seeked),a),se("volumechange",u(Xe.VolumeChange),a),se("ratechange",u(Xe.RateChange),a)];return F(()=>{f.forEach(l=>l())})}function df({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let i=[],n=new WeakMap,a=r.FontFace;r.FontFace=function(l,p,o){let d=new a(l,p,o);return n.set(d,{family:l,buffer:typeof p!="string",descriptors:o,fontSource:typeof p=="string"?p:JSON.stringify(Array.from(new Uint8Array(p)))}),d};let u=$e(t.fonts,"add",function(f){return function(l){return setTimeout(F(()=>{let p=n.get(l);p&&(e(p),n.delete(l))}),0),f.apply(this,[l])}});return i.push(()=>{r.FontFace=a}),i.push(u),F(()=>{i.forEach(f=>f())})}function pf(e){let{doc:t,mirror:r,blockClass:i,blockSelector:n,selectionCb:a}=e,u=!0,f=F(()=>{let l=t.getSelection();if(!l||u&&l?.isCollapsed)return;u=l.isCollapsed||!1;let p=[],o=l.rangeCount||0;for(let d=0;d<o;d++){let c=l.getRangeAt(d),{startContainer:s,startOffset:m,endContainer:h,endOffset:g}=c;oe(s,i,n,!0)||oe(h,i,n,!0)||p.push({start:r.getId(s),startOffset:m,end:r.getId(h),endOffset:g})}a({ranges:p})});return f(),se("selectionchange",f)}function mf({doc:e,customElementCb:t}){let r=e.defaultView;return!r||!r.customElements?()=>{}:$e(r.customElements,"define",function(n){return function(a,u,f){try{t({define:{name:a}})}catch{console.warn(`Custom element callback failed for ${a}`)}return n.apply(this,[a,u,f])}})}function gf(e,t){let{mutationCb:r,mousemoveCb:i,mouseInteractionCb:n,scrollCb:a,viewportResizeCb:u,inputCb:f,mediaInteractionCb:l,styleSheetRuleCb:p,styleDeclarationCb:o,canvasMutationCb:d,fontCb:c,selectionCb:s,customElementCb:m}=e;e.mutationCb=(...h)=>{t.mutation&&t.mutation(...h),r(...h)},e.mousemoveCb=(...h)=>{t.mousemove&&t.mousemove(...h),i(...h)},e.mouseInteractionCb=(...h)=>{t.mouseInteraction&&t.mouseInteraction(...h),n(...h)},e.scrollCb=(...h)=>{t.scroll&&t.scroll(...h),a(...h)},e.viewportResizeCb=(...h)=>{t.viewportResize&&t.viewportResize(...h),u(...h)},e.inputCb=(...h)=>{t.input&&t.input(...h),f(...h)},e.mediaInteractionCb=(...h)=>{t.mediaInteaction&&t.mediaInteaction(...h),l(...h)},e.styleSheetRuleCb=(...h)=>{t.styleSheetRule&&t.styleSheetRule(...h),p(...h)},e.styleDeclarationCb=(...h)=>{t.styleDeclaration&&t.styleDeclaration(...h),o(...h)},e.canvasMutationCb=(...h)=>{t.canvasMutation&&t.canvasMutation(...h),d(...h)},e.fontCb=(...h)=>{t.font&&t.font(...h),c(...h)},e.selectionCb=(...h)=>{t.selection&&t.selection(...h),s(...h)},e.customElementCb=(...h)=>{t.customElement&&t.customElement(...h),m(...h)}}function yf(e,t={}){let r=e.doc.defaultView;if(!r)return()=>{};gf(e,t);let i,n=()=>{};e.recordDOM&&([i,n]=sa(e,e.doc));let a=sf(e),u=of(e),f=oa(e),l=af(e,{win:r}),p=uf(e),o=hf(e),d=()=>{},c=()=>{},s=()=>{},m=()=>{};e.recordDOM&&(d=cf(e,{win:r}),c=aa(e,e.doc),s=ff(e,{win:r}),e.collectFonts&&(m=df(e)));let h=pf(e),g=mf(e),C=[];for(let b of e.plugins)C.push(b.observer(b.callback,r,b.options));return F(()=>{Fe.forEach(b=>b.reset()),i?.disconnect(),n(),a(),u(),f(),l(),p(),o(),d(),c(),s(),m(),h(),g(),C.forEach(b=>b())})}function Ft(e){return typeof window[e]<"u"}function Ut(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var Yt=class{constructor(t){O(this,"iframeIdToRemoteIdMap",new WeakMap),O(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,r,i,n){let a=i||this.getIdToRemoteIdMap(t),u=n||this.getRemoteIdToIdMap(t),f=a.get(r);return f||(f=this.generateIdFn(),a.set(r,f),u.set(f,r)),f}getIds(t,r){let i=this.getIdToRemoteIdMap(t),n=this.getRemoteIdToIdMap(t);return r.map(a=>this.getId(t,a,i,n))}getRemoteId(t,r,i){let n=i||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;let a=n.get(r);return a||-1}getRemoteIds(t,r){let i=this.getRemoteIdToIdMap(t);return r.map(n=>this.getRemoteId(t,n,i))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}},Qn=class{constructor(t){O(this,"iframes",new WeakMap),O(this,"crossOriginIframeMap",new WeakMap),O(this,"crossOriginIframeMirror",new Yt(To)),O(this,"crossOriginIframeStyleMirror"),O(this,"crossOriginIframeRootIdMap",new WeakMap),O(this,"mirror"),O(this,"mutationCb"),O(this,"wrappedEmit"),O(this,"loadListener"),O(this,"stylesheetManager"),O(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Yt(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,r){var i,n;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((i=t.contentWindow)==null||i.addEventListener("message",this.handleMessage.bind(this))),(n=this.loadListener)==null||n.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){let r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;let n=this.crossOriginIframeMap.get(t.source);if(!n)return;let a=this.transformCrossOriginEvent(n,r.data.event);a&&this.wrappedEmit(a,r.data.isCheckout)}transformCrossOriginEvent(t,r){var i;switch(r.type){case _.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);let n=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,n),this.patchRootIdOnNode(r.data.node,n),{timestamp:r.timestamp,type:_.IncrementalSnapshot,data:{source:L.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case _.Meta:case _.Load:case _.DomContentLoaded:return!1;case _.Plugin:return r;case _.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case _.IncrementalSnapshot:switch(r.data.source){case L.Mutation:return r.data.adds.forEach(n=>{this.replaceIds(n,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(n.node,t);let a=this.crossOriginIframeRootIdMap.get(t);a&&this.patchRootIdOnNode(n.node,a)}),r.data.removes.forEach(n=>{this.replaceIds(n,t,["parentId","id"])}),r.data.attributes.forEach(n=>{this.replaceIds(n,t,["id"])}),r.data.texts.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case L.Drag:case L.TouchMove:case L.MouseMove:return r.data.positions.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case L.ViewportResize:return!1;case L.MediaInteraction:case L.MouseInteraction:case L.Scroll:case L.CanvasMutation:case L.Input:return this.replaceIds(r.data,t,["id"]),r;case L.StyleSheetRule:case L.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case L.Font:return r;case L.Selection:return r.data.ranges.forEach(n=>{this.replaceIds(n,t,["start","end"])}),r;case L.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(i=r.data.styles)==null||i.forEach(n=>{this.replaceStyleIds(n,t,["styleId"])}),r}}return!1}replace(t,r,i,n){for(let a of n)!Array.isArray(r[a])&&typeof r[a]!="number"||(Array.isArray(r[a])?r[a]=t.getIds(i,r[a]):r[a]=t.getId(i,r[a]));return r}replaceIds(t,r,i){return this.replace(this.crossOriginIframeMirror,t,r,i)}replaceStyleIds(t,r,i){return this.replace(this.crossOriginIframeStyleMirror,t,r,i)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(i=>{this.replaceIdOnNode(i,r)})}patchRootIdOnNode(t,r){t.type!==na.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(i=>{this.patchRootIdOnNode(i,r)})}},Zn=class{constructor(t){O(this,"shadowDoms",new WeakSet),O(this,"mutationCb"),O(this,"scrollCb"),O(this,"bypassOptions"),O(this,"mirror"),O(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,r){if(!ht(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);let[i]=sa({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>i.disconnect()),this.restoreHandlers.push(oa({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(D.host(t))),this.restoreHandlers.push(aa({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,r){let i=this;this.restoreHandlers.push($e(t.prototype,"attachShadow",function(n){return function(a){let u=n.call(this,a),f=D.shadowRoot(this);return f&&ra(this)&&i.addShadowRoot(f,r),u}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},Qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bf=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(ct=0;ct<Qe.length;ct++)bf[Qe.charCodeAt(ct)]=ct;var ct,wf=function(e){var t=new Uint8Array(e),r,i=t.length,n="";for(r=0;r<i;r+=3)n+=Qe[t[r]>>2],n+=Qe[(t[r]&3)<<4|t[r+1]>>4],n+=Qe[(t[r+1]&15)<<2|t[r+2]>>6],n+=Qe[t[r+2]&63];return i%3===2?n=n.substring(0,n.length-1)+"=":i%3===1&&(n=n.substring(0,n.length-2)+"=="),n};var po=new Map;function vf(e,t){let r=po.get(e);return r||(r=new Map,po.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var la=(e,t,r)=>{if(!e||!(ca(e,t)||typeof e=="object"))return;let i=e.constructor.name,n=vf(r,i),a=n.indexOf(e);return a===-1&&(a=n.length,n.push(e)),a};function Bt(e,t,r){if(e instanceof Array)return e.map(i=>Bt(i,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){let i=e.constructor.name,n=wf(e);return{rr_type:i,base64:n}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Bt(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let i=e.constructor.name,{src:n}=e;return{rr_type:i,src:n}}else if(e instanceof HTMLCanvasElement){let i="HTMLImageElement",n=e.toDataURL();return{rr_type:i,src:n}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Bt(e.data,t,r),e.width,e.height]};if(ca(e,t)||typeof e=="object"){let i=e.constructor.name,n=la(e,t,r);return{rr_type:i,index:n}}}}return e}var ua=(e,t,r)=>e.map(i=>Bt(i,t,r)),ca=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(n=>typeof t[n]=="function").find(n=>e instanceof t[n]);function Sf(e,t,r,i){let n=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let u of a)try{if(typeof t.CanvasRenderingContext2D.prototype[u]!="function")continue;let f=$e(t.CanvasRenderingContext2D.prototype,u,function(l){return function(...p){return oe(this.canvas,r,i,!0)||setTimeout(()=>{let o=ua(p,t,this);e(this.canvas,{type:Ze["2D"],property:u,args:o})},0),l.apply(this,p)}});n.push(f)}catch{let f=or(t.CanvasRenderingContext2D.prototype,u,{set(l){e(this.canvas,{type:Ze["2D"],property:u,args:[l],setter:!0})}});n.push(f)}return()=>{n.forEach(u=>u())}}function Cf(e){return e==="experimental-webgl"?"webgl":e}function mo(e,t,r,i){let n=[];try{let a=$e(e.HTMLCanvasElement.prototype,"getContext",function(u){return function(f,...l){if(!oe(this,t,r,!0)){let p=Cf(f);if("__context"in this||(this.__context=p),i&&["webgl","webgl2"].includes(p))if(l[0]&&typeof l[0]=="object"){let o=l[0];o.preserveDrawingBuffer||(o.preserveDrawingBuffer=!0)}else l.splice(0,1,{preserveDrawingBuffer:!0})}return u.apply(this,[f,...l])}});n.push(a)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{n.forEach(a=>a())}}function go(e,t,r,i,n,a){let u=[],f=Object.getOwnPropertyNames(e);for(let l of f)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if(typeof e[l]!="function")continue;let p=$e(e,l,function(o){return function(...d){let c=o.apply(this,d);if(la(c,a,this),"tagName"in this.canvas&&!oe(this.canvas,i,n,!0)){let s=ua(d,a,this),m={type:t,property:l,args:s};r(this.canvas,m)}return c}});u.push(p)}catch{let p=or(e,l,{set(o){r(this.canvas,{type:t,property:l,args:[o],setter:!0})}});u.push(p)}return u}function Ef(e,t,r,i){let n=[];return typeof t.WebGLRenderingContext<"u"&&n.push(...go(t.WebGLRenderingContext.prototype,Ze.WebGL,e,r,i,t)),typeof t.WebGL2RenderingContext<"u"&&n.push(...go(t.WebGL2RenderingContext.prototype,Ze.WebGL2,e,r,i,t)),()=>{n.forEach(a=>a())}}var fa=`(function() {
54
54
  "use strict";
55
55
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
56
56
  var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
@@ -125,9 +125,9 @@ or you can use record.mirror to access the mirror instance during recording.`,oo
125
125
  };
126
126
  })();
127
127
  //# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
128
- `,po=typeof self<"u"&&self.Blob&&new Blob([la],{type:"text/javascript;charset=utf-8"});function gf(e){let t;try{if(t=po&&(self.URL||self.webkitURL).createObjectURL(po),!t)throw"";let r=new Worker(t,{name:e?.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(la),{name:e?.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var Qn=class{constructor(t){O(this,"pendingCanvasMutations",new Map),O(this,"rafStamps",{latestId:0,invokeId:null}),O(this,"mirror"),O(this,"mutationCb"),O(this,"resetObservers"),O(this,"frozen",!1),O(this,"locked",!1),O(this,"processMutation",(l,p)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(l)||this.pendingCanvasMutations.set(l,[]),this.pendingCanvasMutations.get(l).push(p)});let{sampling:r="all",win:i,blockClass:n,blockSelector:a,recordCanvas:u,dataURLOptions:f}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,u&&r==="all"&&this.initCanvasMutationObserver(i,n,a),u&&typeof r=="number"&&this.initCanvasFPSObserver(r,i,n,a,{dataURLOptions:f})}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(t,r,i,n,a){let u=fo(r,i,n,!0),f=new Map,l=new gf;l.onmessage=m=>{let{id:h}=m.data;if(f.set(h,!1),!("base64"in m.data))return;let{base64:g,type:C,width:w,height:v}=m.data;this.mutationCb({id:h,type:Ze["2D"],commands:[{property:"clearRect",args:[0,0,w,v]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:g}],type:C}]},0,0]}]})};let p=1e3/t,o=0,d,c=()=>{let m=[];return r.document.querySelectorAll("canvas").forEach(h=>{oe(h,i,n,!0)||m.push(h)}),m},s=m=>{if(o&&m-o<p){d=requestAnimationFrame(s);return}o=m,c().forEach(async h=>{var g;let C=this.mirror.getId(h);if(f.get(C)||h.width===0||h.height===0)return;if(f.set(C,!0),["webgl","webgl2"].includes(h.__context)){let v=h.getContext(h.__context);((g=v?.getContextAttributes())==null?void 0:g.preserveDrawingBuffer)===!1&&v.clear(v.COLOR_BUFFER_BIT)}let w=await createImageBitmap(h);l.postMessage({id:C,bitmap:w,width:h.width,height:h.height,dataURLOptions:a.dataURLOptions},[w])}),d=requestAnimationFrame(s)};d=requestAnimationFrame(s),this.resetObservers=()=>{u(),cancelAnimationFrame(d)}}initCanvasMutationObserver(t,r,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let n=fo(t,r,i,!1),a=df(this.processMutation.bind(this),t,r,i),u=mf(this.processMutation.bind(this),t,r,i);this.resetObservers=()=>{n(),a(),u()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{let i=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,i)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;let i=this.pendingCanvasMutations.get(t);if(!i||r===-1)return;let n=i.map(u=>{let{type:f,...l}=u;return l}),{type:a}=i[0];this.mutationCb({id:r,type:a,commands:n}),this.pendingCanvasMutations.delete(t)}},Zn=class{constructor(t){O(this,"trackedLinkElements",new WeakSet),O(this,"mutationCb"),O(this,"adoptedStyleSheetCb"),O(this,"styleMirror",new Gn),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;let i={id:r,styleIds:[]},n=[];for(let a of t){let u;this.styleMirror.has(a)?u=this.styleMirror.getId(a):(u=this.styleMirror.add(a),n.push({styleId:u,rules:Array.from(a.rules||CSSRule,(f,l)=>({rule:vo(f,a.href),index:l}))})),i.styleIds.push(u)}n.length>0&&(i.styles=n),this.adoptedStyleSheetCb(i)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},ei=class{constructor(){O(this,"nodeMap",new WeakMap),O(this,"active",!1)}inOtherBuffer(t,r){let i=this.nodeMap.get(t);return i&&Array.from(i).some(n=>n!==r)}add(t,r){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}destroy(){}},X,Bt,zn,Yt=!1;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=((Gi=e.contentWindow)==null?void 0:Gi.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var be=xu();function he(e={}){let{emit:t,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:n="rr-block",blockSelector:a=null,ignoreClass:u="rr-ignore",ignoreSelector:f=null,maskTextClass:l="rr-mask",maskTextSelector:p=null,inlineStylesheet:o=!0,maskAllInputs:d,maskInputOptions:c,slimDOMOptions:s,maskInputFn:m,maskTextFn:h,hooks:g,packFn:C,sampling:w={},dataURLOptions:v={},mousemoveWait:E,recordDOM:b=!0,recordCanvas:y=!1,recordCrossOriginIframes:S=!1,recordAfter:x=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:T=!1,inlineImages:k=!1,plugins:I,keepIframeSrcFn:R=()=>!1,ignoreCSSAttributes:te=new Set([]),errorHandler:re}=e;Yc(re);let U=S?window.parent===window:!0,P=!1;if(!U)try{window.parent.document&&(P=!1)}catch{P=!0}if(U&&!t)throw new Error("emit function is required");if(!U&&!P)return()=>{};E!==void 0&&w.mousemove===void 0&&(w.mousemove=E),be.reset();let j=d===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:c!==void 0?c:{password:!0},K=Mo(s);Vc();let $,B=0,le=A=>{for(let Z of I||[])Z.eventProcessor&&(A=Z.eventProcessor(A));return C&&!P&&(A=C(A)),A};X=(A,Z)=>{var W;let Y=A;if(Y.timestamp=dt(),(W=Fe[0])!=null&&W.isFrozen()&&Y.type!==_.FullSnapshot&&!(Y.type===_.IncrementalSnapshot&&Y.data.source===L.Mutation)&&Fe.forEach(ue=>ue.unfreeze()),U)t?.(le(Y),Z);else if(P){let ue={type:"rrweb",event:le(Y),origin:window.location.origin,isCheckout:Z};window.parent.postMessage(ue,"*")}if(Y.type===_.FullSnapshot)$=Y,B=0;else if(Y.type===_.IncrementalSnapshot){if(Y.data.source===L.Mutation&&Y.data.isAttachIframe)return;B++;let ue=i&&B>=i,z=r&&Y.timestamp-$.timestamp>r;(ue||z)&&Bt(!0)}};let N=A=>{X({type:_.IncrementalSnapshot,data:{source:L.Mutation,...A}})},Ee=A=>X({type:_.IncrementalSnapshot,data:{source:L.Scroll,...A}}),pe=A=>X({type:_.IncrementalSnapshot,data:{source:L.CanvasMutation,...A}}),lt=A=>X({type:_.IncrementalSnapshot,data:{source:L.AdoptedStyleSheet,...A}}),ie=new Zn({mutationCb:N,adoptedStyleSheetCb:lt}),we=new Jn({mirror:be,mutationCb:N,stylesheetManager:ie,recordCrossOriginIframes:S,wrappedEmit:X});for(let A of I||[])A.getMirror&&A.getMirror({nodeMirror:be,crossOriginIframeMirror:we.crossOriginIframeMirror,crossOriginIframeStyleMirror:we.crossOriginIframeStyleMirror});let Pe=new ei;zn=new Qn({recordCanvas:y,mutationCb:pe,win:window,blockClass:n,blockSelector:a,mirror:be,sampling:w.canvas,dataURLOptions:v});let Oe=new Kn({mutationCb:N,scrollCb:Ee,bypassOptions:{blockClass:n,blockSelector:a,maskTextClass:l,maskTextSelector:p,inlineStylesheet:o,maskInputOptions:j,dataURLOptions:v,maskTextFn:h,maskInputFn:m,recordCanvas:y,inlineImages:k,sampling:w,slimDOMOptions:K,iframeManager:we,stylesheetManager:ie,canvasManager:zn,keepIframeSrcFn:R,processedNodeManager:Pe},mirror:be});Bt=(A=!1)=>{if(!b)return;X({type:_.Meta,data:{href:window.location.href,width:Go(),height:Ho()}},A),ie.reset(),Oe.init(),Fe.forEach(W=>W.lock());let Z=Ju(document,{mirror:be,blockClass:n,blockSelector:a,maskTextClass:l,maskTextSelector:p,inlineStylesheet:o,maskAllInputs:j,maskTextFn:h,maskInputFn:m,slimDOM:K,dataURLOptions:v,recordCanvas:y,inlineImages:k,onSerialize:W=>{Jo(W,be)&&we.addIframe(W),Ko(W,be)&&ie.trackLinkElement(W),Hn(W)&&Oe.addShadowRoot(D.shadowRoot(W),document)},onIframeLoad:(W,Y)=>{we.attachIframe(W,Y),Oe.observeAttachShadow(W)},onStylesheetLoad:(W,Y)=>{ie.attachLinkElement(W,Y)},keepIframeSrcFn:R});if(!Z)return console.warn("Failed to snapshot the document");X({type:_.FullSnapshot,data:{node:Z,initialOffset:jo(window)}},A),Fe.forEach(W=>W.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ie.adoptStyleSheets(document.adoptedStyleSheets,be.getId(document))};try{let A=[],Z=Y=>{var ue;return F(uf)({mutationCb:N,mousemoveCb:(z,Lr)=>X({type:_.IncrementalSnapshot,data:{source:Lr,positions:z}}),mouseInteractionCb:z=>X({type:_.IncrementalSnapshot,data:{source:L.MouseInteraction,...z}}),scrollCb:Ee,viewportResizeCb:z=>X({type:_.IncrementalSnapshot,data:{source:L.ViewportResize,...z}}),inputCb:z=>X({type:_.IncrementalSnapshot,data:{source:L.Input,...z}}),mediaInteractionCb:z=>X({type:_.IncrementalSnapshot,data:{source:L.MediaInteraction,...z}}),styleSheetRuleCb:z=>X({type:_.IncrementalSnapshot,data:{source:L.StyleSheetRule,...z}}),styleDeclarationCb:z=>X({type:_.IncrementalSnapshot,data:{source:L.StyleDeclaration,...z}}),canvasMutationCb:pe,fontCb:z=>X({type:_.IncrementalSnapshot,data:{source:L.Font,...z}}),selectionCb:z=>{X({type:_.IncrementalSnapshot,data:{source:L.Selection,...z}})},customElementCb:z=>{X({type:_.IncrementalSnapshot,data:{source:L.CustomElement,...z}})},blockClass:n,ignoreClass:u,ignoreSelector:f,maskTextClass:l,maskTextSelector:p,maskInputOptions:j,inlineStylesheet:o,sampling:w,recordDOM:b,recordCanvas:y,inlineImages:k,userTriggeredOnInput:M,collectFonts:T,doc:Y,maskInputFn:m,maskTextFn:h,keepIframeSrcFn:R,blockSelector:a,slimDOMOptions:K,dataURLOptions:v,mirror:be,iframeManager:we,stylesheetManager:ie,shadowDomManager:Oe,processedNodeManager:Pe,canvasManager:zn,ignoreCSSAttributes:te,plugins:((ue=I?.filter(z=>z.observer))==null?void 0:ue.map(z=>({observer:z.observer,options:z.options,callback:Lr=>X({type:_.Plugin,data:{plugin:z.name,payload:Lr}})})))||[]},g)};we.addLoadListener(Y=>{try{A.push(Z(Y.contentDocument))}catch(ue){console.warn(ue)}});let W=()=>{Bt(),A.push(Z(document)),Yt=!0};return["interactive","complete"].includes(document.readyState)?W():(A.push(se("DOMContentLoaded",()=>{X({type:_.DomContentLoaded,data:{}}),x==="DOMContentLoaded"&&W()})),A.push(se("load",()=>{X({type:_.Load,data:{}}),x==="load"&&W()},window))),()=>{A.forEach(Y=>{try{Y()}catch(ue){String(ue).toLowerCase().includes("cross-origin")||console.warn(ue)}}),Pe.destroy(),Yt=!1,Xc()}}catch(A){console.warn(A)}}he.addCustomEvent=(e,t)=>{if(!Yt)throw new Error("please add custom event after start recording");X({type:_.Custom,data:{tag:e,payload:t}})};he.freezePage=()=>{Fe.forEach(e=>e.freeze())};he.takeFullSnapshot=e=>{if(!Yt)throw new Error("please take full snapshot after start recording");Bt(e)};he.mirror=be;var mo;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(mo||(mo={}));var bh=5*1e3;var{addCustomEvent:vh}=he,{freezePage:Sh}=he,{takeFullSnapshot:Ch}=he;var yf=/card.?(num|exp|cvc|cvv|code)|cc.?(num|exp|csc|cvc|cvv)|^(cvc|cvv|csc)\d?$|security.?code|^exp(iry|iration)?.?(date|month|year)?$/i;function ua(e){return(e.getAttribute("autocomplete")??"").toLowerCase().split(/\s+/).some(r=>r.startsWith("cc-"))?!0:[e.getAttribute("name"),e.getAttribute("id")].some(r=>!!r&&yf.test(r))}function ca(e=window){if(e.parent===e||e.location.href==="about:blank")return!1;try{return e.parent.document,!1}catch{return!0}}var de={data:"__tabtape:data",flush:"__tabtape:flush",hello:"__tabtape:hello",control:"__tabtape:control",info:"__tabtape:info",infoReply:"__tabtape:info-reply",snapshot:"__tabtape:snapshot"},fa="tabtape.state";function We(){try{return window[Symbol.for(fa)]}catch{return}}function da(e){let t="",r=!1,i=null,n=f=>{try{e.emit(f)}catch{}};function a(f,l,p){let o=e.title(),d,c=()=>{},s=!1,m=()=>{s||(s=!0,i===m&&(i=null),c(),e.clearTimer(d),e.clearTimer(h),n({kind:f,url:l,title:e.title(),ts:p}))};i=m;let h=e.setTimer(m,2e3);try{c=e.watchTitle(()=>{s||e.title()===o||(e.clearTimer(d),d=e.setTimer(m,100))})}catch{}}let u=()=>i?.();return{reset(f){u(),t="",r=f},view(f,l=e.now()){let p=f==="push"||f==="replace"||f==="pop"||f==="hash";if(p&&r)return;p||(r=!1);let o=e.url();if(!(p&&o===t)){if(f==="replace"&&ha(o)===ha(t)){t=o;return}t=o,u(),p?a(f,o,l):n({kind:f,url:o,title:e.title(),ts:l})}},flush:u}}function ha(e){let t=e.search(/[?#]/);return t<0?e:e.slice(0,t)}var Ce=JSON.stringify,bt=JSON.parse,wf=Object.prototype.toString,ze="********",bf=/passw(or)?d|^pwd$|^pass$/i,or=/json|text\/|xml|javascript|ecmascript|graphql|x-www-form-urlencoded|csv|yaml/i,V=(e,t)=>e.length>t?e.slice(0,t-1)+"\u2026":e,J=e=>Math.round(e*10)/10;function Ae(e){return bf.test(e)}function De(e){try{return new URL(e,location.href).href}catch{return e}}function ma(e){let t=e,r="";for(let i of["currentSrc","src","href"]){let n=t[i];if(typeof n=="string"&&n){r=n;break}}if(!r){let i=e.getAttribute("src")||e.getAttribute("href");i&&(r=De(i))}return r?V(Q(r),1e3):""}function ar(e){let t=new URLSearchParams(e),r=!1;for(let i of new Set(t.keys()))Ae(i)&&(t.set(i,ze),r=!0);return r?t.toString():e}function Q(e){let t=e.indexOf("?");if(t<0)return e;let r=e.indexOf("#",t),i=e.slice(t+1,r<0?void 0:r),n=ar(i);return n===i?e:e.slice(0,t+1)+n+(r<0?"":e.slice(r))}function wi(e){let t=!1;if(Array.isArray(e))for(let r of e)t=wi(r)||t;else if(e&&typeof e=="object"){let r=e;for(let i of Object.keys(r)){let n=r[i];Ae(i)&&(typeof n=="string"||typeof n=="number")?(r[i]=ze,t=!0):t=wi(n)||t}}return t}var vf=/^[\w.%[\]-]+=[^&]*(&[\w.%[\]-]+=[^&]*)*$/,Sf=/multipart\/form-data/i,Cf=/^--[^\r\n]{1,200}\r?\ncontent-disposition:\s*form-data/i;function lr(e,t=""){let r=e.trimStart();if(r.startsWith("{")||r.startsWith("["))try{let i=bt(e);return wi(i)?Ce(i):e}catch{return e}return Sf.test(t)||Cf.test(r)?Ef(e,t):/x-www-form-urlencoded/i.test(t)||r.length<1e5&&vf.test(r)?ar(e):e}function Ef(e,t=""){let r=/boundary=(?:"([^"]+)"|([^;,\s]+))/i.exec(t),i=r?.[1]??r?.[2]??/^--([^\r\n]+)/.exec(e.trimStart())?.[1];if(!i)return e;let n=`--${i}`,a=e.split(n),u=!1;for(let f=1;f<a.length;f++){let l=a[f],p=/\r?\n\r?\n/.exec(l);if(!p)continue;let o=l.slice(0,p.index);if(/;\s*filename\*?=/i.test(o))continue;let d=/;\s*name="([^"]*)"/i.exec(o)?.[1]??/;\s*name=([^;\s]+)/i.exec(o)?.[1];if(d===void 0||!Ae(d))continue;let c=p.index+p[0].length,s=l.endsWith(`\r
128
+ `,yo=typeof self<"u"&&self.Blob&&new Blob([fa],{type:"text/javascript;charset=utf-8"});function xf(e){let t;try{if(t=yo&&(self.URL||self.webkitURL).createObjectURL(yo),!t)throw"";let r=new Worker(t,{name:e?.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(fa),{name:e?.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var ei=class{constructor(t){O(this,"pendingCanvasMutations",new Map),O(this,"rafStamps",{latestId:0,invokeId:null}),O(this,"mirror"),O(this,"mutationCb"),O(this,"resetObservers"),O(this,"frozen",!1),O(this,"locked",!1),O(this,"processMutation",(l,p)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(l)||this.pendingCanvasMutations.set(l,[]),this.pendingCanvasMutations.get(l).push(p)});let{sampling:r="all",win:i,blockClass:n,blockSelector:a,recordCanvas:u,dataURLOptions:f}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,u&&r==="all"&&this.initCanvasMutationObserver(i,n,a),u&&typeof r=="number"&&this.initCanvasFPSObserver(r,i,n,a,{dataURLOptions:f})}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(t,r,i,n,a){let u=mo(r,i,n,!0),f=new Map,l=new xf;l.onmessage=m=>{let{id:h}=m.data;if(f.set(h,!1),!("base64"in m.data))return;let{base64:g,type:C,width:b,height:v}=m.data;this.mutationCb({id:h,type:Ze["2D"],commands:[{property:"clearRect",args:[0,0,b,v]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:g}],type:C}]},0,0]}]})};let p=1e3/t,o=0,d,c=()=>{let m=[];return r.document.querySelectorAll("canvas").forEach(h=>{oe(h,i,n,!0)||m.push(h)}),m},s=m=>{if(o&&m-o<p){d=requestAnimationFrame(s);return}o=m,c().forEach(async h=>{var g;let C=this.mirror.getId(h);if(f.get(C)||h.width===0||h.height===0)return;if(f.set(C,!0),["webgl","webgl2"].includes(h.__context)){let v=h.getContext(h.__context);((g=v?.getContextAttributes())==null?void 0:g.preserveDrawingBuffer)===!1&&v.clear(v.COLOR_BUFFER_BIT)}let b=await createImageBitmap(h);l.postMessage({id:C,bitmap:b,width:h.width,height:h.height,dataURLOptions:a.dataURLOptions},[b])}),d=requestAnimationFrame(s)};d=requestAnimationFrame(s),this.resetObservers=()=>{u(),cancelAnimationFrame(d)}}initCanvasMutationObserver(t,r,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let n=mo(t,r,i,!1),a=Sf(this.processMutation.bind(this),t,r,i),u=Ef(this.processMutation.bind(this),t,r,i);this.resetObservers=()=>{n(),a(),u()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{let i=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,i)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;let i=this.pendingCanvasMutations.get(t);if(!i||r===-1)return;let n=i.map(u=>{let{type:f,...l}=u;return l}),{type:a}=i[0];this.mutationCb({id:r,type:a,commands:n}),this.pendingCanvasMutations.delete(t)}},ti=class{constructor(t){O(this,"trackedLinkElements",new WeakSet),O(this,"mutationCb"),O(this,"adoptedStyleSheetCb"),O(this,"styleMirror",new Xn),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;let i={id:r,styleIds:[]},n=[];for(let a of t){let u;this.styleMirror.has(a)?u=this.styleMirror.getId(a):(u=this.styleMirror.add(a),n.push({styleId:u,rules:Array.from(a.rules||CSSRule,(f,l)=>({rule:Eo(f,a.href),index:l}))})),i.styleIds.push(u)}n.length>0&&(i.styles=n),this.adoptedStyleSheetCb(i)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},ri=class{constructor(){O(this,"nodeMap",new WeakMap),O(this,"active",!1)}inOtherBuffer(t,r){let i=this.nodeMap.get(t);return i&&Array.from(i).some(n=>n!==r)}add(t,r){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}destroy(){}},J,$t,Vn,Xt=!1;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=((Ji=e.contentWindow)==null?void 0:Ji.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var we=Au();function he(e={}){let{emit:t,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:n="rr-block",blockSelector:a=null,ignoreClass:u="rr-ignore",ignoreSelector:f=null,maskTextClass:l="rr-mask",maskTextSelector:p=null,inlineStylesheet:o=!0,maskAllInputs:d,maskInputOptions:c,slimDOMOptions:s,maskInputFn:m,maskTextFn:h,hooks:g,packFn:C,sampling:b={},dataURLOptions:v={},mousemoveWait:E,recordDOM:w=!0,recordCanvas:y=!1,recordCrossOriginIframes:S=!1,recordAfter:x=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:T=!1,inlineImages:k=!1,plugins:I,keepIframeSrcFn:R=()=>!1,ignoreCSSAttributes:te=new Set([]),errorHandler:re}=e;rf(re);let U=S?window.parent===window:!0,P=!1;if(!U)try{window.parent.document&&(P=!1)}catch{P=!0}if(U&&!t)throw new Error("emit function is required");if(!U&&!P)return()=>{};E!==void 0&&b.mousemove===void 0&&(b.mousemove=E),we.reset();let j=d===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:c!==void 0?c:{password:!0},Q=Io(s);Qc();let $,B=0,le=A=>{for(let Z of I||[])Z.eventProcessor&&(A=Z.eventProcessor(A));return C&&!P&&(A=C(A)),A};J=(A,Z)=>{var W;let X=A;if(X.timestamp=pt(),(W=Fe[0])!=null&&W.isFrozen()&&X.type!==_.FullSnapshot&&!(X.type===_.IncrementalSnapshot&&X.data.source===L.Mutation)&&Fe.forEach(ue=>ue.unfreeze()),U)t?.(le(X),Z);else if(P){let ue={type:"rrweb",event:le(X),origin:window.location.origin,isCheckout:Z};window.parent.postMessage(ue,"*")}if(X.type===_.FullSnapshot)$=X,B=0;else if(X.type===_.IncrementalSnapshot){if(X.data.source===L.Mutation&&X.data.isAttachIframe)return;B++;let ue=i&&B>=i,z=r&&X.timestamp-$.timestamp>r;(ue||z)&&$t(!0)}};let N=A=>{J({type:_.IncrementalSnapshot,data:{source:L.Mutation,...A}})},Ee=A=>J({type:_.IncrementalSnapshot,data:{source:L.Scroll,...A}}),pe=A=>J({type:_.IncrementalSnapshot,data:{source:L.CanvasMutation,...A}}),ut=A=>J({type:_.IncrementalSnapshot,data:{source:L.AdoptedStyleSheet,...A}}),ie=new ti({mutationCb:N,adoptedStyleSheetCb:ut}),be=new Qn({mirror:we,mutationCb:N,stylesheetManager:ie,recordCrossOriginIframes:S,wrappedEmit:J});for(let A of I||[])A.getMirror&&A.getMirror({nodeMirror:we,crossOriginIframeMirror:be.crossOriginIframeMirror,crossOriginIframeStyleMirror:be.crossOriginIframeStyleMirror});let Pe=new ri;Vn=new ei({recordCanvas:y,mutationCb:pe,win:window,blockClass:n,blockSelector:a,mirror:we,sampling:b.canvas,dataURLOptions:v});let Oe=new Zn({mutationCb:N,scrollCb:Ee,bypassOptions:{blockClass:n,blockSelector:a,maskTextClass:l,maskTextSelector:p,inlineStylesheet:o,maskInputOptions:j,dataURLOptions:v,maskTextFn:h,maskInputFn:m,recordCanvas:y,inlineImages:k,sampling:b,slimDOMOptions:Q,iframeManager:be,stylesheetManager:ie,canvasManager:Vn,keepIframeSrcFn:R,processedNodeManager:Pe},mirror:we});$t=(A=!1)=>{if(!w)return;J({type:_.Meta,data:{href:window.location.href,width:Jo(),height:Xo()}},A),ie.reset(),Oe.init(),Fe.forEach(W=>W.lock());let Z=ic(document,{mirror:we,blockClass:n,blockSelector:a,maskTextClass:l,maskTextSelector:p,inlineStylesheet:o,maskAllInputs:j,maskTextFn:h,maskInputFn:m,slimDOM:Q,dataURLOptions:v,recordCanvas:y,inlineImages:k,onSerialize:W=>{Zo(W,we)&&be.addIframe(W),ea(W,we)&&ie.trackLinkElement(W),Yn(W)&&Oe.addShadowRoot(D.shadowRoot(W),document)},onIframeLoad:(W,X)=>{be.attachIframe(W,X),Oe.observeAttachShadow(W)},onStylesheetLoad:(W,X)=>{ie.attachLinkElement(W,X)},keepIframeSrcFn:R});if(!Z)return console.warn("Failed to snapshot the document");J({type:_.FullSnapshot,data:{node:Z,initialOffset:Yo(window)}},A),Fe.forEach(W=>W.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ie.adoptStyleSheets(document.adoptedStyleSheets,we.getId(document))};try{let A=[],Z=X=>{var ue;return F(yf)({mutationCb:N,mousemoveCb:(z,Fr)=>J({type:_.IncrementalSnapshot,data:{source:Fr,positions:z}}),mouseInteractionCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.MouseInteraction,...z}}),scrollCb:Ee,viewportResizeCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.ViewportResize,...z}}),inputCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.Input,...z}}),mediaInteractionCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.MediaInteraction,...z}}),styleSheetRuleCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.StyleSheetRule,...z}}),styleDeclarationCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.StyleDeclaration,...z}}),canvasMutationCb:pe,fontCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.Font,...z}}),selectionCb:z=>{J({type:_.IncrementalSnapshot,data:{source:L.Selection,...z}})},customElementCb:z=>{J({type:_.IncrementalSnapshot,data:{source:L.CustomElement,...z}})},blockClass:n,ignoreClass:u,ignoreSelector:f,maskTextClass:l,maskTextSelector:p,maskInputOptions:j,inlineStylesheet:o,sampling:b,recordDOM:w,recordCanvas:y,inlineImages:k,userTriggeredOnInput:M,collectFonts:T,doc:X,maskInputFn:m,maskTextFn:h,keepIframeSrcFn:R,blockSelector:a,slimDOMOptions:Q,dataURLOptions:v,mirror:we,iframeManager:be,stylesheetManager:ie,shadowDomManager:Oe,processedNodeManager:Pe,canvasManager:Vn,ignoreCSSAttributes:te,plugins:((ue=I?.filter(z=>z.observer))==null?void 0:ue.map(z=>({observer:z.observer,options:z.options,callback:Fr=>J({type:_.Plugin,data:{plugin:z.name,payload:Fr}})})))||[]},g)};be.addLoadListener(X=>{try{A.push(Z(X.contentDocument))}catch(ue){console.warn(ue)}});let W=()=>{$t(),A.push(Z(document)),Xt=!0};return["interactive","complete"].includes(document.readyState)?W():(A.push(se("DOMContentLoaded",()=>{J({type:_.DomContentLoaded,data:{}}),x==="DOMContentLoaded"&&W()})),A.push(se("load",()=>{J({type:_.Load,data:{}}),x==="load"&&W()},window))),()=>{A.forEach(X=>{try{X()}catch(ue){String(ue).toLowerCase().includes("cross-origin")||console.warn(ue)}}),Pe.destroy(),Xt=!1,nf()}}catch(A){console.warn(A)}}he.addCustomEvent=(e,t)=>{if(!Xt)throw new Error("please add custom event after start recording");J({type:_.Custom,data:{tag:e,payload:t}})};he.freezePage=()=>{Fe.forEach(e=>e.freeze())};he.takeFullSnapshot=e=>{if(!Xt)throw new Error("please take full snapshot after start recording");$t(e)};he.mirror=we;var bo;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(bo||(bo={}));var Dh=5*1e3;var{addCustomEvent:_h}=he,{freezePage:Lh}=he,{takeFullSnapshot:Ph}=he;var Rf=/card.?(num|exp|cvc|cvv|code)|cc.?(num|exp|csc|cvc|cvv)|^(cvc|cvv|csc)\d?$|security.?code|^exp(iry|iration)?.?(date|month|year)?$/i;function ha(e){return(e.getAttribute("autocomplete")??"").toLowerCase().split(/\s+/).some(r=>r.startsWith("cc-"))?!0:[e.getAttribute("name"),e.getAttribute("id")].some(r=>!!r&&Rf.test(r))}function da(e=window){if(e.parent===e||e.location.href==="about:blank")return!1;try{return e.parent.document,!1}catch{return!0}}var de={data:"__tabtape:data",flush:"__tabtape:flush",hello:"__tabtape:hello",control:"__tabtape:control",info:"__tabtape:info",infoReply:"__tabtape:info-reply",snapshot:"__tabtape:snapshot"},pa="tabtape.state";function We(){try{return window[Symbol.for(pa)]}catch{return}}function ga(e){let t="",r=!1,i=null,n=f=>{try{e.emit(f)}catch{}};function a(f,l,p){let o=e.title(),d,c=()=>{},s=!1,m=()=>{s||(s=!0,i===m&&(i=null),c(),e.clearTimer(d),e.clearTimer(h),n({kind:f,url:l,title:e.title(),ts:p}))};i=m;let h=e.setTimer(m,2e3);try{c=e.watchTitle(()=>{s||e.title()===o||(e.clearTimer(d),d=e.setTimer(m,100))})}catch{}}let u=()=>i?.();return{reset(f){u(),t="",r=f},view(f,l=e.now()){let p=f==="push"||f==="replace"||f==="pop"||f==="hash";if(p&&r)return;p||(r=!1);let o=e.url();if(!(p&&o===t)){if(f==="replace"&&ma(o)===ma(t)){t=o;return}t=o,u(),p?a(f,o,l):n({kind:f,url:o,title:e.title(),ts:l})}},flush:u}}function ma(e){let t=e.search(/[?#]/);return t<0?e:e.slice(0,t)}var Ce=JSON.stringify,vt=JSON.parse,Tf=Object.prototype.toString,ze="********",Mf=/passw(or)?d|^pwd$|^pass$/i,ar=/json|text\/|xml|javascript|ecmascript|graphql|x-www-form-urlencoded|csv|yaml/i,V=(e,t)=>e.length>t?e.slice(0,t-1)+"\u2026":e,K=e=>Math.round(e*10)/10;function Ae(e){return Mf.test(e)}function De(e){try{return new URL(e,location.href).href}catch{return e}}function ba(e){let t=e,r="";for(let i of["currentSrc","src","href"]){let n=t[i];if(typeof n=="string"&&n){r=n;break}}if(!r){let i=e.getAttribute("src")||e.getAttribute("href");i&&(r=De(i))}return r?V(Y(r),1e3):""}function lr(e){let t=new URLSearchParams(e),r=!1;for(let i of new Set(t.keys()))Ae(i)&&(t.set(i,ze),r=!0);return r?t.toString():e}function Y(e){let t=e.indexOf("?");if(t<0)return e;let r=e.indexOf("#",t),i=e.slice(t+1,r<0?void 0:r),n=lr(i);return n===i?e:e.slice(0,t+1)+n+(r<0?"":e.slice(r))}function vi(e){let t=!1;if(Array.isArray(e))for(let r of e)t=vi(r)||t;else if(e&&typeof e=="object"){let r=e;for(let i of Object.keys(r)){let n=r[i];Ae(i)&&(typeof n=="string"||typeof n=="number")?(r[i]=ze,t=!0):t=vi(n)||t}}return t}var Nf=/^[\w.%[\]-]+=[^&]*(&[\w.%[\]-]+=[^&]*)*$/,Of=/multipart\/form-data/i,If=/^--[^\r\n]{1,200}\r?\ncontent-disposition:\s*form-data/i;function ur(e,t=""){let r=e.trimStart();if(r.startsWith("{")||r.startsWith("["))try{let i=vt(e);return vi(i)?Ce(i):e}catch{return e}return Of.test(t)||If.test(r)?kf(e,t):/x-www-form-urlencoded/i.test(t)||r.length<1e5&&Nf.test(r)?lr(e):e}function kf(e,t=""){let r=/boundary=(?:"([^"]+)"|([^;,\s]+))/i.exec(t),i=r?.[1]??r?.[2]??/^--([^\r\n]+)/.exec(e.trimStart())?.[1];if(!i)return e;let n=`--${i}`,a=e.split(n),u=!1;for(let f=1;f<a.length;f++){let l=a[f],p=/\r?\n\r?\n/.exec(l);if(!p)continue;let o=l.slice(0,p.index);if(/;\s*filename\*?=/i.test(o))continue;let d=/;\s*name="([^"]*)"/i.exec(o)?.[1]??/;\s*name=([^;\s]+)/i.exec(o)?.[1];if(d===void 0||!Ae(d))continue;let c=p.index+p[0].length,s=l.endsWith(`\r
129
129
  `)?l.length-2:l.endsWith(`
130
- `)?l.length-1:l.length;a[f]=l.slice(0,c)+ze+l.slice(Math.max(c,s)),u=!0}return u?a.join(n):e}var bi={depth:4,items:50,string:2e3};function et(e){if(!e||typeof e!="object")return!1;if(e instanceof Error)return!0;let t=e;return typeof t.message=="string"&&typeof t.name=="string"&&"stack"in t}function xf(e){if(e.nodeType===1){let t=e,r="<"+t.tagName.toLowerCase();t.id&&(r+="#"+t.id);let i=t.getAttribute("class")?.trim();return i&&(r+="."+i.split(/\s+/).slice(0,3).join(".")),r+">"}return e.nodeType===3?`#text "${V(e.textContent??"",60)}"`:e.nodeName}function vt(e,t=bi){return wt(e,0,new WeakSet,t)}function wt(e,t,r,i){switch(typeof e){case"string":return V(e,i.string);case"number":return Number.isFinite(e)?e:String(e);case"boolean":return e;case"undefined":return"undefined";case"bigint":return`${e}n`;case"symbol":return e.toString();case"function":return`\u0192 ${e.name||"anonymous"}()`}if(e===null)return null;let n=e;if(r.has(n))return"[Circular]";try{if(et(n))return{name:n.name,message:V(String(n.message),i.string),stack:V(String(n.stack??""),Math.min(4e3,i.string*2))};let a=n;if(typeof a.nodeType=="number"&&typeof a.nodeName=="string")return xf(a);if(n.window===n)return"[Window]";let u=wf.call(n).slice(8,-1);if(u==="Date"){let p=n;return Number.isNaN(p.getTime())?"Invalid Date":p.toISOString()}if(u==="RegExp")return String(n);if(u==="Promise")return"[Promise]";if(n instanceof ArrayBuffer||ArrayBuffer.isView(n))return`[${u} ${n.byteLength} bytes]`;if(t>=i.depth)return Array.isArray(n)?`[Array(${n.length})]`:`[${u}]`;if(r.add(n),Array.isArray(n)){let p=n.slice(0,i.items).map(o=>wt(o,t+1,r,i));return n.length>i.items&&p.push(`\u2026 ${n.length-i.items} more`),p}if(u==="Map")return{"[[Map]]":wt([...n].slice(0,i.items),t+1,r,i)};if(u==="Set")return{"[[Set]]":wt([...n].slice(0,i.items),t+1,r,i)};let f={},l=Object.keys(n);for(let p of l.slice(0,i.items))try{f[p]=wt(n[p],t+1,r,i)}catch{f[p]="[unreadable]"}return l.length>i.items&&(f["\u2026"]=`${l.length-i.items} more keys`),f}catch{return"[unserializable]"}}function pa(e,t){if(typeof e=="string")return e;if(et(e))return`${e.name}: ${e.message}`;if(typeof t=="string")return t;try{return V(Ce(t)??String(t),1e3)}catch{return String(t)}}function vi(e,t){let r=[],i=0;for(typeof e[0]=="string"&&e[0].includes("%")&&(i=1,r.push(e[0].replace(/%([sdifoOc%])/g,(n,a)=>{if(a==="%")return"%";if(i>=e.length)return n;let u=i++,f=e[u];switch(a){case"c":return"";case"d":case"i":return String(Number.parseInt(String(f),10));case"f":return String(Number(f));default:return pa(f,t[u])}})));i<e.length;i++)r.push(pa(e[i],t[i]));return V(r.join(" "),5e3)}function ga(e){if(!e)return;let t=e.split(`
130
+ `)?l.length-1:l.length;a[f]=l.slice(0,c)+ze+l.slice(Math.max(c,s)),u=!0}return u?a.join(n):e}var Si={depth:4,items:50,string:2e3};function et(e){if(!e||typeof e!="object")return!1;if(e instanceof Error)return!0;let t=e;return typeof t.message=="string"&&typeof t.name=="string"&&"stack"in t}function Af(e){if(e.nodeType===1){let t=e,r="<"+t.tagName.toLowerCase();t.id&&(r+="#"+t.id);let i=t.getAttribute("class")?.trim();return i&&(r+="."+i.split(/\s+/).slice(0,3).join(".")),r+">"}return e.nodeType===3?`#text "${V(e.textContent??"",60)}"`:e.nodeName}function St(e,t=Si){return wt(e,0,new WeakSet,t)}function wt(e,t,r,i){switch(typeof e){case"string":return V(e,i.string);case"number":return Number.isFinite(e)?e:String(e);case"boolean":return e;case"undefined":return"undefined";case"bigint":return`${e}n`;case"symbol":return e.toString();case"function":return`\u0192 ${e.name||"anonymous"}()`}if(e===null)return null;let n=e;if(r.has(n))return"[Circular]";try{if(et(n))return{name:n.name,message:V(String(n.message),i.string),stack:V(String(n.stack??""),Math.min(4e3,i.string*2))};let a=n;if(typeof a.nodeType=="number"&&typeof a.nodeName=="string")return Af(a);if(n.window===n)return"[Window]";let u=Tf.call(n).slice(8,-1);if(u==="Date"){let p=n;return Number.isNaN(p.getTime())?"Invalid Date":p.toISOString()}if(u==="RegExp")return String(n);if(u==="Promise")return"[Promise]";if(n instanceof ArrayBuffer||ArrayBuffer.isView(n))return`[${u} ${n.byteLength} bytes]`;if(t>=i.depth)return Array.isArray(n)?`[Array(${n.length})]`:`[${u}]`;if(r.add(n),Array.isArray(n)){let p=n.slice(0,i.items).map(o=>wt(o,t+1,r,i));return n.length>i.items&&p.push(`\u2026 ${n.length-i.items} more`),p}if(u==="Map")return{"[[Map]]":wt([...n].slice(0,i.items),t+1,r,i)};if(u==="Set")return{"[[Set]]":wt([...n].slice(0,i.items),t+1,r,i)};let f={},l=Object.keys(n);for(let p of l.slice(0,i.items))try{f[p]=wt(n[p],t+1,r,i)}catch{f[p]="[unreadable]"}return l.length>i.items&&(f["\u2026"]=`${l.length-i.items} more keys`),f}catch{return"[unserializable]"}}function ya(e,t){if(typeof e=="string")return e;if(et(e))return`${e.name}: ${e.message}`;if(typeof t=="string")return t;try{return V(Ce(t)??String(t),1e3)}catch{return String(t)}}function Ci(e,t){let r=[],i=0;for(typeof e[0]=="string"&&e[0].includes("%")&&(i=1,r.push(e[0].replace(/%([sdifoOc%])/g,(n,a)=>{if(a==="%")return"%";if(i>=e.length)return n;let u=i++,f=e[u];switch(a){case"c":return"";case"d":case"i":return String(Number.parseInt(String(f),10));case"f":return String(Number(f));default:return ya(f,t[u])}})));i<e.length;i++)r.push(ya(e[i],t[i]));return V(r.join(" "),5e3)}function wa(e){if(!e)return;let t=e.split(`
131
131
  `).filter((r,i)=>i>0&&!r.includes("chrome-extension://"));return t.length?V(t.join(`
132
- `),4e3):void 0}var Rf=["a","button","input","select","textarea","label","summary","option",'[role="button"]','[role="link"]','[role="menuitem"]','[role="tab"]','[role="checkbox"]','[role="radio"]','[role="switch"]','[role="option"]',"[onclick]","[data-testid]"].join(","),Tf=[["name","name"],["type","type"],["role","role"],["aria-label","ariaLabel"],["data-testid","testId"],["placeholder","placeholder"],["title","title"],["alt","alt"]],Mf=4,ya=1e3,Nf=30,ba=history.pushState,va=history.replaceState,rt=()=>{},qe=!1,tt=[],wa=0,ur=da({emit:({kind:e,url:t,title:r,ts:i})=>{qe&&rt({name:"page_view",kind:e,url:t,title:r,referrer:e==="load"&&document.referrer?Q(document.referrer):void 0,viewport:{w:innerWidth,h:innerHeight}},i)},url:()=>Q(location.href),title:()=>document.title,now:()=>Date.now(),watchTitle:e=>{let t=new MutationObserver(e);return t.observe(document.head??document.documentElement,{subtree:!0,childList:!0,characterData:!0}),()=>t.disconnect()},setTimer:(e,t)=>setTimeout(e,t),clearTimer:e=>clearTimeout(e)});function Sa(e,t){if(rt=e,qe)return;qe=!0,document.addEventListener("click",Na,!0),document.addEventListener("change",Oa,!0),document.addEventListener("submit",Ia,!0),addEventListener("popstate",Ta),addEventListener("hashchange",Ma),history.pushState=xa,history.replaceState=Ra;let r=document.readyState==="loading";ur.reset(r),r?document.addEventListener("DOMContentLoaded",()=>_e(t),{once:!0}):_e(t)}function Ca(){qe&&(ur.flush(),qe=!1,document.removeEventListener("click",Na,!0),document.removeEventListener("change",Oa,!0),document.removeEventListener("submit",Ia,!0),removeEventListener("popstate",Ta),removeEventListener("hashchange",Ma),history.pushState===xa&&(history.pushState=ba),history.replaceState===Ra&&(history.replaceState=va))}function _e(e,t=Date.now()){qe&&ur.view(e,t)}function Ea(){qe&&ur.flush()}function xa(...e){ba.apply(this,e),Ve(()=>_e("push"))}function Ra(...e){va.apply(this,e),Ve(()=>_e("replace"))}var Ta=()=>Ve(()=>_e("pop")),Ma=()=>Ve(()=>_e("hash"));function Na(e){e.isTrusted&&Ve(()=>{let t=e.composedPath()[0];if(!t||t.nodeType!==1)return;let r=t.closest(Rf)??t,i=Si(r),n=Date.now(),a=Q(location.href),u=Math.round(e.clientX),f=Math.round(e.clientY);rt({name:"click",url:a,target:i,x:u,y:f},n),tt=tt.filter(l=>n-l.ts<ya&&Math.hypot(l.x-u,l.y-f)<Nf),tt.push({ts:n,x:u,y:f}),tt.length>=Mf&&n>=wa&&(rt({name:"rage_click",url:a,target:i,x:u,y:f,count:tt.length},n),wa=n+ya,tt=[])})}function Oa(e){Ve(()=>{let t=e.composedPath()[0];if(!t||t.nodeType!==1)return;let r=t.tagName;if(r!=="INPUT"&&r!=="SELECT"&&r!=="TEXTAREA")return;let i=(t.getAttribute("type")??"").toLowerCase(),n={name:"change",url:Q(location.href),target:Si(t)};Of(t)?n.masked=!0:i==="checkbox"||i==="radio"?n.value=t.checked?"checked":"unchecked":i==="file"?n.value=Array.from(t.files??[],a=>a.name).join(", "):n.value=V(String(t.value??""),500),rt(n,Date.now())})}function Ia(e){Ve(()=>{let t=e.target;if(!t||t.nodeType!==1)return;let r=t.getAttribute("action");rt({name:"submit",url:Q(location.href),target:Si(t),action:r?Q(De(r)):void 0,method:(t.getAttribute("method")??"get").toUpperCase()},Date.now())})}function Of(e){return(e.getAttribute("type")??"").toLowerCase()==="password"||e.hasAttribute("data-rr-is-password")||/password/i.test(e.getAttribute("autocomplete")??"")}function Si(e){let t={tag:e.tagName.toLowerCase(),selector:Af(e)};e.id&&(t.id=V(e.id,100));let r=e.getAttribute("class")?.trim();r&&(t.classes=V(r.split(/\s+/).slice(0,6).join(" "),200));let i=If(e);i&&(t.text=i);for(let[n,a]of Tf){let u=e.getAttribute(n);u&&(t[a]=V(u,200))}if(t.tag==="a"){let n=e.getAttribute("href");n&&(t.href=Q(De(n)))}return t}function If(e){let t=e.tagName;if(t==="INPUT"){let n=(e.getAttribute("type")??"").toLowerCase();return n==="button"||n==="submit"||n==="reset"?V(e.value,120):""}if(t==="SELECT"||t==="TEXTAREA")return"";let r="",i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);for(let n=i.nextNode();n&&r.length<200;n=i.nextNode()){let a=n.parentElement?.tagName;a==="SCRIPT"||a==="STYLE"||(r+=" "+(n.nodeValue??""))}return V(r.replace(/\s+/g," ").trim(),120)}var kf=/^(css|sc|jsx|emotion)-|[0-9a-f]{5,}|__/i;function Af(e){let t=[];for(let r=e;r&&r.nodeType===1&&t.length<5;r=r.parentElement){let i=r.tagName.toLowerCase();if(r.id&&/^[A-Za-z][\w-]*$/.test(r.id)){t.unshift(`${i}#${r.id}`);break}let n=r.getAttribute("data-testid");if(n){t.unshift(`${i}[data-testid="${n.replace(/"/g,'\\"')}"]`);break}let a=i,u=(r.getAttribute("class")??"").trim().split(/\s+/).filter(l=>l&&!kf.test(l)).slice(0,2);u.length&&(a+="."+u.map(l=>CSS.escape(l)).join("."));let f=r.parentElement;if(f){let l=Array.from(f.children).filter(p=>p.tagName===r.tagName);l.length>1&&(a+=`:nth-of-type(${l.indexOf(r)+1})`)}t.unshift(a)}return t.join(" > ")}function Ve(e){try{e()}catch{}}var _f=["log","info","warn","error","debug","trace"],St=()=>{},dr=!1,cr=!1,Ci=!1,fr=new Map,hr=new Map;function Aa(e){St=e}function Ei(e){dr=e}function Da(){if(cr)return;cr=!0;let e=console;for(let r of _f){let i=e[r];if(typeof i!="function")continue;let n=function(...a){return ka(r,a),i.apply(this,a)};fr.set(r,i),hr.set(r,n),e[r]=n}let t=e.assert;if(typeof t=="function"){let r=function(...i){return i[0]||ka("error",["Assertion failed:",...i.slice(1)]),t.apply(this,i)};fr.set("assert",t),hr.set("assert",r),e.assert=r}addEventListener("error",La,!0),addEventListener("unhandledrejection",Pa)}function _a(){if(!cr)return;cr=!1;let e=console;for(let[t,r]of hr)e[t]===r&&(e[t]=fr.get(t));hr.clear(),fr.clear(),removeEventListener("error",La,!0),removeEventListener("unhandledrejection",Pa)}function ka(e,t){if(!(!dr||Ci)){Ci=!0;try{let r=t.map(a=>vt(a)),i={level:e,source:"console",text:vi(t,r),args:r},n=t.find(et);n?.stack?i.stack=V(String(n.stack),4e3):e==="trace"&&(i.stack=ga(new Error().stack)),St(i,Date.now())}catch{}finally{Ci=!1}}}function La(e){if(dr)try{if(e instanceof ErrorEvent){let r={level:"error",source:"uncaught",text:e.message||String(e.error),url:e.filename||void 0,line:e.lineno||void 0,col:e.colno||void 0};et(e.error)&&e.error.stack&&(r.stack=V(String(e.error.stack),4e3)),St(r,Date.now());return}let t=e.target;if(t&&t.nodeType===1){let r=ma(t);St({level:"error",source:"resource",text:`Failed to load <${t.tagName.toLowerCase()}>${r?` ${r}`:""}`,url:r||void 0},Date.now())}}catch{}}function Pa(e){if(dr)try{let t=e.reason,r=vt(t),i={level:"error",source:"unhandledrejection",text:`Uncaught (in promise) ${vi([t],[r])}`,args:[r]};et(t)&&t.stack&&(i.stack=V(String(t.stack),4e3)),St(i,Date.now())}catch{}}var Pf="data-tabtape-sandbox";function Fa(e){return!!e&&("srcdoc"in e||"sandbox"in e)}function Ua(e){let{srcdoc:t,sandbox:r,...i}=e;return r!==void 0&&(i[Pf]=r),i}function xi(e){let t=e.attributes,r=e.childNodes,i=!1;if(Fa(t)&&(t=Ua(t),i=!0),r){let n=r.map(xi);n.some((a,u)=>a!==r[u])&&(r=n,i=!0)}return i?{...e,attributes:t,childNodes:r}:e}var Ff=2,Uf=3,Bf=0;function $f(e){let t=e,r=t.data;if(!r)return e;if(t.type===Ff&&r.node){let i=xi(r.node);return i===r.node?e:{...t,data:{...r,node:i}}}if(t.type===Uf&&r.source===Bf){let i=!1,n=r.adds?.map(u=>{let f=xi(u.node);return f===u.node?u:(i=!0,{...u,node:f})}),a=r.attributes?.map(u=>Fa(u.attributes)?(i=!0,{...u,attributes:Ua(u.attributes)}):u);return i?{...t,data:{...r,adds:n,attributes:a}}:e}return e}var Ba={name:"tabtape/iframe-attrs",eventProcessor:$f,options:{}};function Ri(e){return{recordAfter:"DOMContentLoaded",maskAllInputs:!1,maskInputOptions:{password:!0},inlineStylesheet:!0,collectFonts:!1,recordCanvas:!1,recordCrossOriginIframes:!0,sampling:{mousemove:50,scroll:150,media:800,input:"last"},slimDOMOptions:{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:!0,headMetaDescKeywords:!0},checkoutEveryNms:e.checkoutEveryNms>0?e.checkoutEveryNms:void 0,errorHandler:()=>!0,plugins:[Ba]}}function $a(e){return{...Ri(e),checkoutEveryNms:void 0,maskInputOptions:{password:!0,text:!0,tel:!0,number:!0},maskInputFn:(t,r)=>r?.type==="password"||r&&ua(r)?"*".repeat(t.length):t}}function Wa(e){let t,r=EventTarget.prototype.dispatchEvent,i=()=>r.call(document,new CustomEvent(de.hello));function n(){try{he.takeFullSnapshot(!0)}catch{}}function a(){try{t?.()}catch{}t=void 0}document.addEventListener(de.control,u=>{let f;try{f=bt(String(u.detail))}catch{return}f.cmd==="start"?t||(t=he($a(f.options))??(()=>{})):f.cmd==="checkout"?t&&n():a()}),addEventListener("pageshow",u=>{u.persisted&&t&&n()}),Object.defineProperty(window,e,{value:{hello:i,get active(){return t!==void 0}},configurable:!0}),i()}var Va=15e3,ja=new Set([101,204,205,304]),Mi=window.fetch,ge=XMLHttpRequest.prototype,Ha=ge.open,Ga=ge.send,Ya=ge.setRequestHeader,pr=Navigator.prototype,Oi=pr.sendBeacon,wr=()=>{},ye={captureBodies:!0,maxBodyChars:1e6},Ne=!1,mr=!1,Xa=0,Et=!1,Wf=0,je,xt=new Map,gr=new WeakMap,br=()=>`${Date.now().toString(36)}-${(++Wf).toString(36)}`;function Ii(e,t){ye=e,wr=t}function vr(e){Ne=e}function Ja(e=!1){mr||(mr=!0,Xa=performance.now(),Et=e,window.fetch=Qa,ge.open=el,ge.send=rl,ge.setRequestHeader=tl,typeof Oi=="function"&&(pr.sendBeacon=nl),Hf())}function ki(){mr&&(mr=!1,window.fetch===Qa&&(window.fetch=Mi),ge.open===el&&(ge.open=Ha),ge.send===rl&&(ge.send=Ga),ge.setRequestHeader===tl&&(ge.setRequestHeader=Ya),pr.sendBeacon===nl&&(pr.sendBeacon=Oi),je?.disconnect(),je=void 0,xt.clear())}function Ka(){let e=Ne;Ne=!0;try{let t=performance.getEntriesByType("navigation")[0];t&&(Et=!1,yr(t,!0))}catch{}finally{Ne=e}}function Ai(){try{for(let t of je?.takeRecords()??[])yr(t);let e=performance.getEntriesByType("navigation")[0];e&&!Et&&yr(e,!0)}catch{}for(let e of[...xt.values()])e.data.pending=!0,Sr(e)}function Sr(e){e.done||(e.done=!0,xt.delete(e.data.id),e.data.duration=J(performance.now()-e.t0),wr(e.data,e.ts))}function zf(e){let t={data:e,ts:Date.now(),t0:performance.now(),done:!1};return xt.set(e.id,t),t}function Qa(e,t){let r=arguments;if(!Ne)return Mi.apply(this,r);let i;try{i=qf(e,t)}catch{}let n=Mi.apply(this,r);if(i){let a=i;n.then(u=>Vf(a,u),u=>{a.data.error=il(u),Sr(a)})}return n}function qf(e,t){let r=e instanceof Request?e:void 0,i=r?r.url:e instanceof URL?e.href:String(e),n={id:br(),kind:"fetch",method:String(t?.method??r?.method??"GET").toUpperCase(),url:Q(De(i))},a=Gf(r?.headers,t?.headers);a&&(n.reqHeaders=a);let u=zf(n);if(ye.captureBodies){let f=a?.["content-type"];t?.body!=null?Ct(n,Di(t.body,f)):r?.body&&!r.bodyUsed&&(u.reqBody=Za(r.clone().body,ye.maxBodyChars).then(l=>Ct(n,{text:lr(l.text,f),truncated:l.truncated}),()=>Ct(n,{note:"unreadable"})))}return u}async function Vf(e,t){let r=e.data;try{r.ttfb=J(performance.now()-e.t0),r.status=t.status,t.statusText&&(r.statusText=t.statusText),r.resHeaders=Ni(t.headers);let i=t.headers.get("content-type")??"";if(i&&(r.mime=i),t.type==="opaque"||t.type==="opaqueredirect")r.resBodyNote="opaque response (no-cors)";else if(ye.captureBodies&&r.method!=="HEAD"&&!ja.has(t.status))if(/event-stream/i.test(i))r.resBodyNote="event stream, not captured";else if(!i||or.test(i)){let n=await Za(t.clone().body,ye.maxBodyChars);r.resBody=n.text,r.resSize=n.bytes,n.truncated&&(r.resBodyTruncated=!0),n.timedOut&&(r.resBodyNote=`body still streaming after ${Va/1e3}s, captured partially`)}else{let n=t.headers.get("content-length");r.resBodyNote=`binary (${i}${n?`, ${n} bytes`:""})`}await e.reqBody}catch(i){r.resBodyNote=`unreadable: ${il(i)}`}Sr(e)}var za=Symbol("timeout");async function Za(e,t){let r={text:"",bytes:0,truncated:!1,timedOut:!1};if(!e)return r;let i=e.getReader(),n=new TextDecoder,a=performance.now()+Va;try{for(;;){let u=a-performance.now(),f,l=await Promise.race([i.read(),new Promise(p=>{f=setTimeout(()=>p(za),Math.max(0,u))})]);if(clearTimeout(f),l===za){r.timedOut=!0;break}if(l.done){r.text+=n.decode();break}if(r.bytes+=l.value.byteLength,r.text+=n.decode(l.value,{stream:!0}),r.text.length>t){r.text=r.text.slice(0,t),r.truncated=!0;break}}}finally{i.cancel().catch(()=>{})}return r}function el(e,t){if(Ne)try{gr.set(this,{data:{id:br(),kind:"xhr",method:String(e).toUpperCase(),url:Q(De(String(t)))},ts:0,t0:0,done:!1})}catch{}else gr.delete(this);return Ha.apply(this,arguments)}function tl(e,t){let r=gr.get(this);return r&&((r.data.reqHeaders??={})[String(e).toLowerCase()]=String(t)),Ya.call(this,e,t)}function rl(e){let t=gr.get(this);if(t&&Ne&&t.t0===0)try{t.ts=Date.now(),t.t0=performance.now(),xt.set(t.data.id,t),ye.captureBodies&&e!=null&&Ct(t.data,Di(e,t.data.reqHeaders?.["content-type"]));let r=this;r.addEventListener("readystatechange",()=>{r.readyState===2&&t.data.ttfb===void 0&&(t.data.ttfb=J(performance.now()-t.t0))}),r.addEventListener("error",()=>t.data.error??="network error"),r.addEventListener("abort",()=>t.data.error??="aborted"),r.addEventListener("timeout",()=>t.data.error??="timeout"),r.addEventListener("loadend",()=>{try{jf(r,t.data)}catch{}Sr(t)})}catch{}return Ga.apply(this,arguments)}function jf(e,t){t.status=e.status,e.statusText&&(t.statusText=e.statusText),t.resHeaders=Yf(e.getAllResponseHeaders());let r=e.getResponseHeader("content-type")??"";if(r&&(t.mime=r),!(!ye.captureBodies||t.error||ja.has(e.status)))switch(e.responseType){case"":case"text":{if(r&&!or.test(r)){t.resBodyNote=`binary (${r})`;return}qa(t,e.responseText);return}case"json":qa(t,Ce(e.response)??"null");return;case"arraybuffer":t.resBodyNote=`ArrayBuffer, ${e.response?.byteLength??0} bytes`;return;case"blob":t.resBodyNote=`Blob, ${e.response?.size??0} bytes`;return;default:t.resBodyNote=e.responseType}}function qa(e,t){e.resSize=t.length,t.length>ye.maxBodyChars?(e.resBody=t.slice(0,ye.maxBodyChars),e.resBodyTruncated=!0):e.resBody=t}function nl(e,t){let r=Oi.apply(this,arguments);if(Ne)try{let i={id:br(),kind:"beacon",method:"POST",url:Q(De(String(e)))};r?i.statusText="queued":i.error="rejected by the browser",ye.captureBodies&&t!=null&&Ct(i,Di(t)),wr(i,Date.now())}catch{}return r}function Hf(){try{je=new PerformanceObserver(e=>{for(let t of e.getEntries())yr(t)}),je.observe({type:"resource",buffered:!0}),je.observe({type:"navigation",buffered:!0})}catch{je=void 0}}function yr(e,t=!1){if(!Ne)return;let r=e;if(r.entryType==="resource"){if(r.initiatorType==="fetch"||r.initiatorType==="xmlhttprequest"||r.initiatorType==="beacon"||r.startTime<Xa-50||r.name.startsWith("chrome-extension:")||r.initiatorType==="other"&&/\/favicon\.ico($|\?)/.test(r.name))return}else if(r.entryType==="navigation"){if(Et||r.duration===0&&!t)return;Et=!0}else return;let i={id:br(),kind:r.entryType==="navigation"?"navigation":"resource",method:"GET",url:Q(r.name),duration:J(r.duration)};r.entryType==="navigation"?(i.navType=r.type,r.duration===0&&(i.pending=!0)):i.initiator=r.initiatorType,r.responseStatus&&(i.status=r.responseStatus),r.responseStart>0&&(i.ttfb=J(r.responseStart-r.startTime)),r.transferSize&&(i.transferSize=r.transferSize),r.decodedBodySize&&(i.resSize=r.decodedBodySize),r.contentType&&(i.mime=r.contentType),wr(i,Math.round(performance.timeOrigin+r.startTime))}function Ct(e,t){t.text!==void 0&&(e.reqBody=t.text),t.note&&(e.reqBodyNote=t.note),t.truncated&&(e.reqBodyTruncated=!0)}function Ti(e){return e.length>ye.maxBodyChars?{text:e.slice(0,ye.maxBodyChars),truncated:!0}:{text:e}}function Di(e,t=""){try{if(typeof e=="string")return Ti(lr(e,t));if(e instanceof URLSearchParams)return Ti(ar(e.toString()));if(e instanceof FormData){let r={};return e.forEach((i,n)=>{let a=typeof i=="string"?Ae(n)?ze:V(i,1e4):`[File ${i.name}, ${i.size} bytes${i.type?`, ${i.type}`:""}]`,u=r[n];r[n]=u===void 0?a:Array.isArray(u)?[...u,a]:[u,a]}),{text:Ce(r),note:"FormData"}}if(e instanceof Blob)return{note:`Blob, ${e.size} bytes${e.type?`, ${e.type}`:""}`};if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)){let r=e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return or.test(t)?Ti(lr(new TextDecoder().decode(r),t)):{note:`binary, ${r.byteLength} bytes`}}return e instanceof ReadableStream?{note:"stream"}:e instanceof Document?{note:"Document"}:{note:typeof e}}catch{return{note:"unreadable"}}}function Ni(e){if(!e)return;let t={};try{if(e instanceof Headers)e.forEach((r,i)=>t[i]=r);else if(Array.isArray(e))for(let[r,i]of e)t[String(r).toLowerCase()]=String(i);else for(let[r,i]of Object.entries(e))t[r.toLowerCase()]=String(i)}catch{}return Object.keys(t).length?t:void 0}function Gf(e,t){let r=Ni(e),i=Ni(t);return r||i?{...r,...i}:void 0}function Yf(e){let t={};for(let r of e.trim().split(/[\r\n]+/)){let i=r.indexOf(":");i>0&&(t[r.slice(0,i).trim().toLowerCase()]=r.slice(i+1).trim())}return Object.keys(t).length?t:void 0}function il(e){return e instanceof Error?`${e.name}: ${e.message}`:String(e)}var Er=class{t;o=0;i=[];u(t){if(t.hadRecentInput)return;let r=this.i[0],i=this.i.at(-1);this.o&&r&&i&&t.startTime-i.startTime<1e3&&t.startTime-r.startTime<5e3?(this.o+=t.value,this.i.push(t)):(this.o=t.value,this.i=[t]),this.t?.(t)}},ot=()=>{let e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},xr=e=>{if(document.readyState==="loading")return"loading";let t=ot();if(t){if(e<t.domInteractive)return"loading";if(t.domContentLoadedEventStart===0||e<t.domContentLoadedEventStart)return"dom-interactive";if(t.domComplete===0||e<t.domComplete)return"dom-content-loaded"}return"complete"},Jf=e=>{let t=e.nodeName;return e.nodeType===1?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},Bi=e=>{let t="";try{for(;e?.nodeType!==9;){let r=e,i=r.id?"#"+r.id:[Jf(r),...Array.from(r.classList).sort()].join(".");if(t.length+i.length>99)return t||i;if(t=t?i+">"+t:i,r.id)break;e=r.parentNode}}catch{}return t},sl=new WeakMap;function it(e,t){let r=sl.get(t);return r||(r=new WeakMap,sl.set(t,r)),r.get(e)||r.set(e,new t),r.get(e)}var ml=-1,gl=()=>ml,at=e=>{addEventListener("pageshow",t=>{t.persisted&&(ml=t.timeStamp,e(t))},!0)},xe=(e,t,r,i)=>{let n,a;return u=>{t.value>=0&&(u||i)&&(a=t.value-(n??0),(a||n===void 0)&&(n=t.value,t.delta=a,t.rating=((f,l)=>f>l[1]?"poor":f>l[0]?"needs-improvement":"good")(t.value,r),e(t)))}},$i=e=>{requestAnimationFrame(()=>requestAnimationFrame(e))},Rt=()=>ot()?.activationStart??0,Re=(e,t=-1)=>{let r=ot(),i="navigate";return gl()>=0?i="back-forward-cache":r&&(document.prerendering||Rt()>0?i="prerender":document.wasDiscarded?i="restore":r.type&&(i=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:i}},st=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let i=new PerformanceObserver(n=>{queueMicrotask(()=>{t(n.getEntries())})});return i.observe({type:e,buffered:!0,...r}),i}}catch{}},Wi=e=>{let t=!1;return()=>{t||(e(),t=!0)}},nt=-1,yl=new Set,ol=()=>document.visibilityState!=="hidden"||document.prerendering?1/0:0,Li=e=>{if(document.visibilityState==="hidden"){if(e.type==="visibilitychange")for(let t of yl)t();isFinite(nt)||(nt=e.type==="visibilitychange"?e.timeStamp:0,removeEventListener("prerenderingchange",Li,!0))}},Mr=()=>{if(nt<0){let e=Rt();nt=(document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").find(r=>r.name==="hidden"&&r.startTime>=e)?.startTime)??ol(),addEventListener("visibilitychange",Li,!0),addEventListener("prerenderingchange",Li,!0),at(()=>{setTimeout(()=>{nt=ol()})})}return{get firstHiddenTime(){return nt},onHidden(e){yl.add(e)}}},Nr=e=>{document.prerendering?addEventListener("prerenderingchange",e,!0):e()},al=[1800,3e3],wl=(e,t={})=>{Nr(()=>{let r=Mr(),i,n=Re("FCP"),a=st("paint",u=>{for(let f of u)f.name==="first-contentful-paint"&&(a.disconnect(),f.startTime<r.firstHiddenTime&&(n.value=Math.max(f.startTime-Rt(),0),n.entries.push(f),i(!0)))});a&&(i=xe(e,n,al,t.reportAllChanges),at(u=>{n=Re("FCP"),i=xe(e,n,al,t.reportAllChanges),$i(()=>{n.value=performance.now()-u.timeStamp,i(!0)})}))})},ll=[.1,.25],ul=e=>e.find(t=>t.node?.nodeType===1)||e[0],bl=(e,t={})=>{let r=it(t=Object.assign({},t),Er),i=new WeakMap;r.t=n=>{if(n?.sources?.length){let a=ul(n.sources),u=a?.node;if(u){let f=t.generateTarget?.(u)??Bi(u);i.set(a,f)}}},((n,a={})=>{let u=Mr();wl(Wi(()=>{let f,l=Re("CLS",0),p=it(a,Er),o=c=>{for(let s of c)p.u(s);p.o>l.value&&(l.value=p.o,l.entries=p.i,f())},d=st("layout-shift",o);d&&(f=xe(n,l,ll,a.reportAllChanges),u.onHidden(()=>{o(d.takeRecords()),f(!0)}),at(()=>{p.o=0,l=Re("CLS",0),f=xe(n,l,ll,a.reportAllChanges),$i(f)}),setTimeout(f))}))})(n=>{e((a=>{let u={};if(a.entries.length){let f=a.entries.reduce((l,p)=>l.value>p.value?l:p);if(f?.sources?.length){let l=ul(f.sources);l&&(u={largestShiftTarget:i.get(l),largestShiftTime:f.startTime,largestShiftValue:f.value,largestShiftSource:l,largestShiftEntry:f,loadState:xr(f.startTime)})}}return Object.assign(a,{attribution:u})})(n))},t)},vl=(e,t={})=>{wl(r=>{e((i=>{let n={timeToFirstByte:0,firstByteToFCP:i.value,loadState:xr(gl())};if(i.entries.length){let a=ot(),u=i.entries.at(-1);if(a){let f=a.activationStart||0,l=Math.max(0,a.responseStart-f);n={timeToFirstByte:l,firstByteToFCP:i.value-l,loadState:xr(i.entries[0].startTime),navigationEntry:a,fcpEntry:u}}}return Object.assign(i,{attribution:n})})(r))},t)},Sl=0,_i=1/0,Cr=0,Kf=e=>{for(let t of e)t.interactionId&&(_i=Math.min(_i,t.interactionId),Cr=Math.max(Cr,t.interactionId),Sl=Cr?(Cr-_i)/7+1:0)},Pi,cl=()=>Pi?Sl:performance.interactionCount??0,Qf=()=>{"interactionCount"in performance||Pi||(Pi=st("event",Kf,{durationThreshold:0}))},fl=0,Rr=class{l=[];h=new Map;m;p;v(){fl=cl(),this.l.length=0,this.h.clear()}M(){let t=Math.min(this.l.length-1,Math.floor((cl()-fl)/50));return this.l[t]}u(t){if(this.m?.(t),!t.interactionId&&t.entryType!=="first-input")return;let r=this.l.at(-1),i=this.h.get(t.interactionId);if(i||this.l.length<10||t.duration>r.T){if(i?t.duration>i.T?(i.entries=[t],i.T=t.duration):t.duration===i.T&&t.startTime===i.entries[0].startTime&&i.entries.push(t):(i={id:t.interactionId,entries:[t],T:t.duration},this.h.set(i.id,i),this.l.push(i)),this.l.sort((n,a)=>a.T-n.T),this.l.length>10){let n=this.l.splice(10);for(let a of n)this.h.delete(a.id)}this.p?.(i)}}},Fi=e=>{let t=globalThis.requestIdleCallback||setTimeout,r=globalThis.cancelIdleCallback||clearTimeout;if(document.visibilityState==="hidden")e();else{let i=Wi(e),n=-1,a=()=>{r(n),i()};addEventListener("visibilitychange",a,{once:!0,capture:!0}),n=t(()=>{removeEventListener("visibilitychange",a,{capture:!0}),i()})}},hl=[200,500],Cl=(e,t={})=>{let r=it(t=Object.assign({},t),Rr),i=[],n=[],a=0,u=new WeakMap,f=new WeakMap,l=!1,p=()=>{l||(Fi(o),l=!0)},o=()=>{let s=new Set(r.l.map(g=>u.get(g.entries[0]))),m=n.length-10;n=n.filter((g,C)=>C>=m||s.has(g));let h=new Set;for(let g of n){let C=d(g.startTime,g.processingEnd);for(let w of C)h.add(w)}i=i.filter(g=>g.startTime>a||h.has(g)),l=!1};r.m=s=>{let m=s.startTime+s.duration,h;a=Math.max(a,s.processingEnd);for(let g=n.length-1;g>=0;g--){let C=n[g];if(Math.abs(m-C.renderTime)<=8){h=C,h.startTime=Math.min(s.startTime,h.startTime),h.processingStart=Math.min(s.processingStart,h.processingStart),h.processingEnd=Math.max(s.processingEnd,h.processingEnd),t.includeProcessedEventEntries!==!1&&h.entries.push(s);break}}h||(h={startTime:s.startTime,processingStart:s.processingStart,processingEnd:s.processingEnd,renderTime:m,entries:t.includeProcessedEventEntries!==!1?[s]:[]},n.push(h)),(s.interactionId||s.entryType==="first-input")&&u.set(s,h),p()},r.p=s=>{if(!f.get(s)){let m=s.entries.find(h=>h.target)?.target;if(m){let h=t.generateTarget?.(m)??Bi(m);f.set(s,h)}else{let h=s.entries.find(g=>g.targetSelector)?.targetSelector;h&&f.set(s,h)}}};let d=(s,m)=>{let h=[];for(let g of i)if(!(g.startTime+g.duration<s)){if(g.startTime>m)break;h.push(g)}return h},c=s=>{let m=s.entries[0],h=u.get(m),g=m.processingStart,C=Math.max(m.startTime+m.duration,g),w=Math.min(h.processingEnd,C),v=h.entries.sort((S,x)=>S.processingStart-x.processingStart),E=d(m.startTime,w),b=r.h.get(m.interactionId),y={interactionTarget:f.get(b),interactionType:m.name.startsWith("key")?"keyboard":"pointer",interactionTime:m.startTime,nextPaintTime:C,processedEventEntries:v,longAnimationFrameEntries:E,inputDelay:g-m.startTime,processingDuration:w-g,presentationDelay:C-w,loadState:xr(m.startTime),longestScript:void 0,totalScriptDuration:void 0,totalStyleAndLayoutDuration:void 0,totalPaintDuration:void 0,totalUnattributedDuration:void 0};return(S=>{if(!S.longAnimationFrameEntries?.length)return;let x=S.interactionTime,M=S.inputDelay,T=S.processingDuration,k,I,R=0,te=0,re=0,U=0;for(let K of S.longAnimationFrameEntries){te=te+K.startTime+K.duration-K.styleAndLayoutStart;for(let $ of K.scripts){let B=$.startTime+$.duration;if(B<x)continue;let le=B-Math.max(x,$.startTime),N=$.duration?le/$.duration*$.forcedStyleAndLayoutDuration:0;R+=le-N,te+=N,le>U&&(I=$.startTime<x+M?"input-delay":$.startTime>=x+M+T?"presentation-delay":"processing-duration",k=$,U=le)}}let P=S.longAnimationFrameEntries.at(-1),j=P?P.startTime+P.duration:0;j>=x+M+T&&(re=S.nextPaintTime-j),k&&I&&(S.longestScript={entry:k,subpart:I,intersectingDuration:U}),S.totalScriptDuration=R,S.totalStyleAndLayoutDuration=te,S.totalPaintDuration=re,S.totalUnattributedDuration=S.nextPaintTime-x-R-te-re})(y),Object.assign(s,{attribution:y})};st("long-animation-frame",s=>{i=i.concat(s),p()}),((s,m={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;let h=Mr();Nr(()=>{Qf();let g,C=Re("INP"),w=it(m,Rr),v=b=>{Fi(()=>{for(let S of b)w.u(S);let y=w.M();y&&y.T!==C.value&&(C.value=y.T,C.entries=y.entries,g())})},E=st("event",v,{durationThreshold:m.durationThreshold??40});g=xe(s,C,hl,m.reportAllChanges),E&&(E.observe({type:"first-input",buffered:!0}),h.onHidden(()=>{v(E.takeRecords()),g(!0)}),at(()=>{w.v(),C=Re("INP"),g=xe(s,C,hl,m.reportAllChanges)}))})})(s=>{e(c(s))},t)},Tr=class{m;u(t){this.m?.(t)}},dl=[2500,4e3],El=(e,t={})=>{let r=it(t=Object.assign({},t),Tr),i=new WeakMap;r.m=n=>{let a=n.element;if(a){let u=t.generateTarget?.(a)??Bi(a);i.set(n,u)}else n.id&&i.set(n,`#${n.id}`)},((n,a={})=>{Nr(()=>{let u=Mr(),f,l=Re("LCP"),p=it(a,Tr),o=c=>{a.reportAllChanges||(c=c.slice(-1));for(let s of c)p.u(s),s.startTime<u.firstHiddenTime&&(l.value=Math.max(s.startTime-Rt(),0),l.entries=[s],f())},d=st("largest-contentful-paint",o);if(d){f=xe(n,l,dl,a.reportAllChanges);let c=Wi(()=>{o(d.takeRecords()),d.disconnect(),f(!0)}),s=m=>{m.isTrusted&&(Fi(c),removeEventListener(m.type,s,{capture:!0}))};for(let m of["keydown","click","visibilitychange"])addEventListener(m,s,{capture:!0});at(m=>{l=Re("LCP"),f=xe(n,l,dl,a.reportAllChanges),$i(()=>{l.value=performance.now()-m.timeStamp,f(!0)})})}})})(n=>{e((a=>{let u={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:a.value};if(a.entries.length){let f=a.entries.at(-1),l=f.url&&performance.getEntriesByType("resource").find(o=>o.name===f.url);u.target=i.get(f),u.lcpEntry=f,f.url&&(u.url=f.url),l&&(u.lcpResourceEntry=l);let p=ot();if(p){let o=p.activationStart||0,d=Math.max(0,p.responseStart-o),c=Math.max(d,l?(l.requestStart||l.startTime)-o:0),s=Math.min(a.value,Math.max(c,l?l.responseEnd-o:0));u={...u,timeToFirstByte:d,resourceLoadDelay:c-d,resourceLoadDuration:s-c,elementRenderDelay:a.value-s,navigationEntry:p}}}return Object.assign(a,{attribution:u})})(n))},t)},pl=[800,1800],Ui=e=>{document.prerendering?Nr(()=>Ui(e)):document.readyState!=="complete"?addEventListener("load",()=>Ui(e),!0):setTimeout(e)},xl=(e,t={})=>{((r,i={})=>{let n=Re("TTFB"),a=xe(r,n,pl,i.reportAllChanges);Ui(()=>{let u=ot();u&&(n.value=Math.max(u.responseStart-Rt(),0),n.entries=[u],a(!0),at(()=>{n=Re("TTFB",0),a=xe(r,n,pl,i.reportAllChanges),a(!0)}))})})(r=>{e((i=>{let n={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(i.entries.length){let a=i.entries[0],u=a.activationStart||0,f=Math.max((a.workerStart||a.fetchStart)-u,0),l=Math.max(a.domainLookupStart-u,0),p=Math.max(a.connectStart-u,0),o=Math.max(a.connectEnd-u,0);n={waitingDuration:f,cacheDuration:l-f,dnsDuration:p-l,connectionDuration:o-p,requestDuration:i.value-o,navigationEntry:a}}return Object.assign(i,{attribution:n})})(r))},t)};var Rl="long-animation-frame",Zf=5,Or=()=>{},He=!1,Tl=!1,Mt,Nl=0,zi=new Map;function Ol(e,t){if(Or=e,He)return;He=!0;let r=Date.now();for(let i of zi.values())Te(()=>Or(i,r));Tl||(Tl=!0,eh()),th(t?0:performance.now())}function qi(){let e=Mt;He&&e&&Te(()=>kl(e.takeRecords()))}function Il(){He&&(qi(),He=!1,Mt?.disconnect(),Mt=void 0)}function eh(){addEventListener("pageshow",t=>t.persisted&&zi.clear(),!0);let e={reportAllChanges:!0};Te(()=>El(Tt,e)),Te(()=>bl(Tt,e)),Te(()=>Cl(Tt,e)),Te(()=>vl(Tt,e)),Te(()=>xl(Tt,e))}function Tt(e){Te(()=>{let t=rh(e,{timeOrigin:performance.timeOrigin,now:performance.now(),url:Q(location.href)});zi.set(t.name,t),He&&Or(t,Date.now())})}function th(e){Nl=e,!Mt&&Te(()=>{if(!PerformanceObserver.supportedEntryTypes?.includes(Rl))return;let t=new PerformanceObserver(r=>Te(()=>kl(r.getEntries())));t.observe({type:Rl,buffered:!0}),Mt=t})}function kl(e){if(!He)return;let t=Q(location.href);for(let r of e){let i=r;i.startTime+i.duration<Nl||Or(nh(i,t),Math.round(performance.timeOrigin+i.startTime))}}function rh(e,t){let r=f=>Math.round(t.timeOrigin+f),i=()=>r(e.entries.at(-1)?.startTime??t.now),n={};switch(e.name){case"LCP":{let f=e.attribution;n.target=f.target,f.url&&(n.url=Q(f.url)),n.timeToFirstByte=J(f.timeToFirstByte),n.resourceLoadDelay=J(f.resourceLoadDelay),n.resourceLoadDuration=J(f.resourceLoadDuration),n.elementRenderDelay=J(f.elementRenderDelay),n.time=i();break}case"CLS":{let f=e.attribution;n.target=f.largestShiftTarget,f.largestShiftValue!==void 0&&(n.largestShiftValue=Ml(f.largestShiftValue)),f.largestShiftTime!==void 0&&(n.time=r(f.largestShiftTime)),n.loadState=f.loadState;break}case"INP":{let f=e.attribution;n.target=f.interactionTarget||void 0,n.interactionType=f.interactionType,n.inputDelay=J(f.inputDelay),n.processingDuration=J(f.processingDuration),n.presentationDelay=J(f.presentationDelay),n.loadState=f.loadState,n.time=r(f.interactionTime);break}case"FCP":{let f=e.attribution;n.timeToFirstByte=J(f.timeToFirstByte),n.firstByteToFCP=J(f.firstByteToFCP),n.loadState=f.loadState,n.time=i();break}case"TTFB":{let f=e.attribution;n.waitingDuration=J(f.waitingDuration),n.cacheDuration=J(f.cacheDuration),n.dnsDuration=J(f.dnsDuration),n.connectionDuration=J(f.connectionDuration),n.requestDuration=J(f.requestDuration);break}}let a={kind:"vital",name:e.name,value:e.name==="CLS"?Ml(e.value):J(e.value),rating:e.rating,id:e.id,navigationType:e.navigationType,url:t.url},u=ih(n);return Object.keys(u).length&&(a.attribution=u),a}function nh(e,t){let r=[...e.scripts??[]].sort((i,n)=>n.duration-i.duration).slice(0,Zf).map(i=>{let n={duration:Math.round(i.duration)};return i.sourceURL&&(n.url=V(Q(i.sourceURL),2e3)),i.sourceFunctionName&&(n.fn=V(i.sourceFunctionName,200)),i.invoker&&(n.invoker=V(i.invoker,500)),i.invokerType&&(n.invokerType=i.invokerType),n});return{kind:"loaf",duration:Math.round(e.duration),blockingDuration:Math.round(e.blockingDuration),scripts:r,url:t}}var Ml=e=>Math.round(e*1e4)/1e4;function ih(e){let t={};for(let[r,i]of Object.entries(e))i!==void 0&&(t[r]=i);return t}function Te(e){try{e()}catch{}}var Ul="tabtape:track",Bl="tabtape:identify",$l="tabtape:state",Vi=100,Ir=200,Wl=8*1024,Al={calls:100,perMs:1e3},oh=[bi,{depth:4,items:50,string:500},{depth:4,items:20,string:200},{depth:3,items:10,string:100},{depth:2,items:10,string:50}],kr="\u2026";function ah(e){if(typeof e!="string")return;let t=e.trim();return t&&t.length<=Vi*2&&[...t].length<=Vi?t:void 0}function lh(e){let t;if(typeof e=="string")t=e.trim();else if(typeof e=="number"&&Number.isFinite(e)||typeof e=="bigint")t=String(e);else return;if(!t)return;if(t.length<=Ir)return t;let r=/[\uD800-\uDBFF]/.test(t[Ir-1])?Ir-1:Ir;return t.slice(0,r)}function uh(e){let t=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t+=1:i<2048?t+=2:i>=55296&&i<=56319&&(e.charCodeAt(r+1)&64512)===56320?(t+=4,r++):t+=3}return t}function Nt(e,t=!1){if(Array.isArray(e)){for(let r=0;r<e.length;r++)e[r]=Nt(e[r],t);return e}if(e&&typeof e=="object"){let r=e;for(let i of Object.keys(r)){let n=r[i];i==="[[Map]]"&&Array.isArray(n)?r[i]=n.map(a=>Array.isArray(a)&&a.length===2&&typeof a[0]=="string"?[a[0],Nt(a[1],t||Ae(a[0]))]:Nt(a,t)):r[i]=Nt(n,t||Ae(i))}return r}return t&&(typeof e=="string"||typeof e=="number")?ze:e}function Dl(e){if(e==null)return{};let t={};for(let[r,i]of oh.entries())if(t=ch(Nt(vt(e,i))),zl(t)<=Wl)return _l(t,r>0);return _l(fh(t),!0)}function ch(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{value:e}}function _l(e,t){let r={};return Object.keys(e).length&&(r.props=e),t&&(r.truncated=!0),r}function zl(e){return uh(Ce(e)??"")}function fh(e){let t=e[kr],r=typeof t=="string"&&Number.parseInt(t,10)||0,i=Object.keys(e).filter(f=>f!==kr),n={},a=0;for(let f of i){n[f]=e[f];let l=i.length-a-1+r;if(zl(l?{...n,[kr]:`${l} more keys`}:n)>Wl){delete n[f];break}a++}let u=i.length-a+r;return u&&(n[kr]=`${u} more keys`),n}var ji=class{calls;perMs;clock;times=[];oldest=0;constructor(t,r,i){this.calls=t,this.perMs=r,this.clock=i}take(){let t=this.clock();return this.times.length<this.calls?(this.times.push(t),!0):t-this.times[this.oldest]<this.perMs?!1:(this.times[this.oldest]=t,this.oldest=(this.oldest+1)%this.calls,!0)}};function hh(e){let t=e.now??Date.now,r=e.url??(()=>Q(location.href)),i=e.warn??(s=>console.warn(s)),n=new ji(Al.calls,Al.perMs,e.clock??(()=>performance.now())),a=new Set,u=!1,f=0,l=!1;function p(s){if(!(!u||l)){l=!0;try{s()}catch{}finally{l=!1}}}function o(s,m){if(!a.has(s)){a.add(s);try{i(m())}catch{}}}function d(){return n.take()?!0:(f++,!1)}function c(s){f&&(s.dropped=f,f=0),e.emit(s,t())}return{get active(){return u},setActive(s){s&&!u&&(f=0),u=s},track(s,m){p(()=>{let h=ah(s);if(h===void 0){o("track",()=>`tabtape.track: the event name must be a string of 1\u2013${Vi} characters, got ${Ll(s)}. The event was not recorded.`);return}if(!d())return;let g=Dl(m),C={name:"custom",event:h,url:r()};g.props&&(C.props=g.props),g.truncated&&(C.propsTruncated=!0),c(C)})},identify(s,m){p(()=>{let h=lh(s);if(h===void 0){o("identify",()=>`tabtape.identify: the user id must be a non-empty string or a number, got ${Ll(s)}. The call was ignored.`);return}if(!d())return;let g=Dl(m),C={name:"identify",userId:h,url:r()};g.props&&(C.traits=g.props),g.truncated&&(C.propsTruncated=!0),c(C)})}}}function Ll(e){return typeof e=="string"?e.trim()?`${[...e.trim()].length} characters`:"an empty string":e===null?"null":typeof e}var Pl=()=>{},Le,Ar,Dr=!1,Fl=!1;function ql(e){Pl=e,Le??=hh({emit:(t,r)=>Pl(t,r)}),Le.setActive(!0),dh(Le),Dr||(Dr=!0,addEventListener(Ul,jl),addEventListener(Bl,Hl),addEventListener($l,Gl))}function Vl(){Le?.setActive(!1),Dr&&(Dr=!1,removeEventListener(Ul,jl),removeEventListener(Bl,Hl),removeEventListener($l,Gl))}function dh(e){try{if(Ar&&window.tabtape===Ar||"tabtape"in window)return;Ar??=Object.freeze({track(t,r){e.track(t,r)},identify(t,r){e.identify(t,r)},state(t,r,i){Yl(e,t,r,i)},get isRecording(){return e.active}}),Object.defineProperty(window,"tabtape",{value:Ar,configurable:!0,writable:!0,enumerable:!1})}catch{}}function Hi(e){let t=e.detail;return t!==null&&typeof t=="object"?t:{}}function jl(e){try{let t=Hi(e);Le?.track(t.name,t.props)}catch{}}function Hl(e){try{let t=Hi(e);Le?.identify(t.userId,t.traits)}catch{}}function Gl(e){try{let t=Hi(e);Le&&Yl(Le,t.store,t.action,t.state)}catch{}}function Yl(e,t,r,i){if(e.active)try{let n=We();n?n.manual(t,r,i):Fl||(Fl=!0,console.warn("tabtape.state: state recording is off in the tabtape extension settings; the call was ignored."))}catch{}}var _r=Symbol.for("tabtape.recorder"),mh=5e3,gh=15e3,Xl=window;Xl[_r]?Xl[_r].hello():window.top!==window?ca()&&Wa(_r):yh();function yh(){let e=EventTarget.prototype.dispatchEvent,t=document.readyState==="loading",r="pending",i="",n=!1,a,u,f=!1,l=[],p=(y,S)=>e.call(document,new CustomEvent(y,{detail:S}));function o(y,S,x){if(r==="off")return;let M;try{M=Ce({ts:Math.round(S),type:y,data:x})}catch{return}c(y,M)}function d(y,S,x){r!=="off"&&c(y,`{"ts":${Math.round(S)},"type":${Ce(y)},"data":${x}}`)}function c(y,S){r==="active"?p(de.data,S):l.length<mh&&l.push({type:y,line:S})}let s={captureBodies:!0,maxBodyChars:1e6,checkoutEveryNms:0,inPageNetwork:!0,recordState:!0};function m(y){Aa((S,x)=>o("console",x,S)),Da(),Ei(!0),y.inPageNetwork?(Ii(y,(S,x)=>o("network",x,S)),Ja(u?.inPageNetwork===!1),vr(!0)):(vr(!1),ki())}function h(y){if(y===f)return;f=y;let S=We();if(S)try{y?S.start((x,M)=>d("state",M,x)):S.stop()}catch{}}function g(){vr(!1),Ei(!1),ki(),_a()}m(s);let C=setTimeout(()=>r==="pending"&&E(),gh);function w(y,S){if(clearTimeout(C),r==="active"&&y===i){m(S),u=S,h(S.recordState);return}r==="active"&&v(),i=y,m(S),u=S,r="active";for(let{type:x,line:M}of l.splice(0))x==="network"&&!S.inPageNetwork||p(de.data,M);!S.inPageNetwork&&!t&&(Ii(S,(x,M)=>o("network",M,x)),Ka()),a=he({...Ri(S),emit:(x,M)=>{o("rrweb",x.timestamp,x),M&&f&&We()?.checkout(),x.type===_.FullSnapshot&&p(de.snapshot)}})??void 0,Sa((x,M)=>o("event",M,x),t&&!n?"load":"start"),ql((x,M)=>o("event",M,x)),Ol((x,M)=>o("perf",M,x),t&&!n),h(S.recordState),n=!0}function v(){Ai(),h(!1),Il(),Vl(),Ca();try{a?.()}catch{}a=void 0,p(de.flush)}function E(){clearTimeout(C),r==="active"&&v(),r="off",l.length=0,g();try{We()?.disable()}catch{}}document.addEventListener(de.control,y=>{let S;try{S=bt(String(y.detail))}catch{return}S.cmd==="start"?w(S.sessionId,S.options):E()}),document.addEventListener(de.info,()=>{let y={stateHook:"off",stores:[]};try{let S=We()?.info();S&&(y={stateHook:S.hook,stores:S.stores})}catch{}p(de.infoReply,Ce(y))}),addEventListener("pagehide",()=>{r==="active"&&(Ea(),u?.inPageNetwork!==!1&&Ai(),qi(),p(de.flush))}),addEventListener("pageshow",y=>{if(!(!y.persisted||r!=="active")){try{he.takeFullSnapshot(!0)}catch{}_e("bfcache")}});let b=()=>p(de.hello);Object.defineProperty(window,_r,{value:{hello:b,get active(){return r==="active"}},configurable:!0}),b()}})();
132
+ `),4e3):void 0}var Df=["a","button","input","select","textarea","label","summary","option",'[role="button"]','[role="link"]','[role="menuitem"]','[role="tab"]','[role="checkbox"]','[role="radio"]','[role="switch"]','[role="option"]',"[onclick]","[data-testid]"].join(","),_f=[["name","name"],["type","type"],["role","role"],["aria-label","ariaLabel"],["data-testid","testId"],["placeholder","placeholder"],["title","title"],["alt","alt"]],Lf=4,va=1e3,Pf=30,Ca=history.pushState,Ea=history.replaceState,rt=()=>{},qe=!1,tt=[],Sa=0,cr=ga({emit:({kind:e,url:t,title:r,ts:i})=>{qe&&rt({name:"page_view",kind:e,url:t,title:r,referrer:e==="load"&&document.referrer?Y(document.referrer):void 0,viewport:{w:innerWidth,h:innerHeight}},i)},url:()=>Y(location.href),title:()=>document.title,now:()=>Date.now(),watchTitle:e=>{let t=new MutationObserver(e);return t.observe(document.head??document.documentElement,{subtree:!0,childList:!0,characterData:!0}),()=>t.disconnect()},setTimer:(e,t)=>setTimeout(e,t),clearTimer:e=>clearTimeout(e)});function xa(e,t){if(rt=e,qe)return;qe=!0,document.addEventListener("click",ka,!0),document.addEventListener("change",Aa,!0),document.addEventListener("submit",Da,!0),addEventListener("popstate",Oa),addEventListener("hashchange",Ia),history.pushState=Ma,history.replaceState=Na;let r=document.readyState==="loading";cr.reset(r),r?document.addEventListener("DOMContentLoaded",()=>_e(t),{once:!0}):_e(t)}function Ra(){qe&&(cr.flush(),qe=!1,document.removeEventListener("click",ka,!0),document.removeEventListener("change",Aa,!0),document.removeEventListener("submit",Da,!0),removeEventListener("popstate",Oa),removeEventListener("hashchange",Ia),history.pushState===Ma&&(history.pushState=Ca),history.replaceState===Na&&(history.replaceState=Ea))}function _e(e,t=Date.now()){qe&&cr.view(e,t)}function Ta(){qe&&cr.flush()}function Ma(...e){Ca.apply(this,e),Ve(()=>_e("push"))}function Na(...e){Ea.apply(this,e),Ve(()=>_e("replace"))}var Oa=()=>Ve(()=>_e("pop")),Ia=()=>Ve(()=>_e("hash"));function ka(e){e.isTrusted&&Ve(()=>{let t=e.composedPath()[0];if(!t||t.nodeType!==1)return;let r=t.closest(Df)??t,i=Ei(r),n=Date.now(),a=Y(location.href),u=Math.round(e.clientX),f=Math.round(e.clientY);rt({name:"click",url:a,target:i,x:u,y:f},n),tt=tt.filter(l=>n-l.ts<va&&Math.hypot(l.x-u,l.y-f)<Pf),tt.push({ts:n,x:u,y:f}),tt.length>=Lf&&n>=Sa&&(rt({name:"rage_click",url:a,target:i,x:u,y:f,count:tt.length},n),Sa=n+va,tt=[])})}function Aa(e){Ve(()=>{let t=e.composedPath()[0];if(!t||t.nodeType!==1)return;let r=t.tagName;if(r!=="INPUT"&&r!=="SELECT"&&r!=="TEXTAREA")return;let i=(t.getAttribute("type")??"").toLowerCase(),n={name:"change",url:Y(location.href),target:Ei(t)};Ff(t)?n.masked=!0:i==="checkbox"||i==="radio"?n.value=t.checked?"checked":"unchecked":i==="file"?n.value=Array.from(t.files??[],a=>a.name).join(", "):n.value=V(String(t.value??""),500),rt(n,Date.now())})}function Da(e){Ve(()=>{let t=e.target;if(!t||t.nodeType!==1)return;let r=t.getAttribute("action");rt({name:"submit",url:Y(location.href),target:Ei(t),action:r?Y(De(r)):void 0,method:(t.getAttribute("method")??"get").toUpperCase()},Date.now())})}function Ff(e){return(e.getAttribute("type")??"").toLowerCase()==="password"||e.hasAttribute("data-rr-is-password")||/password/i.test(e.getAttribute("autocomplete")??"")}function Ei(e){let t={tag:e.tagName.toLowerCase(),selector:$f(e)};e.id&&(t.id=V(e.id,100));let r=e.getAttribute("class")?.trim();r&&(t.classes=V(r.split(/\s+/).slice(0,6).join(" "),200));let i=Uf(e);i&&(t.text=i);for(let[n,a]of _f){let u=e.getAttribute(n);u&&(t[a]=V(u,200))}if(t.tag==="a"){let n=e.getAttribute("href");n&&(t.href=Y(De(n)))}return t}function Uf(e){let t=e.tagName;if(t==="INPUT"){let n=(e.getAttribute("type")??"").toLowerCase();return n==="button"||n==="submit"||n==="reset"?V(e.value,120):""}if(t==="SELECT"||t==="TEXTAREA")return"";let r="",i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);for(let n=i.nextNode();n&&r.length<200;n=i.nextNode()){let a=n.parentElement?.tagName;a==="SCRIPT"||a==="STYLE"||(r+=" "+(n.nodeValue??""))}return V(r.replace(/\s+/g," ").trim(),120)}var Bf=/^(css|sc|jsx|emotion)-|[0-9a-f]{5,}|__/i;function $f(e){let t=[];for(let r=e;r&&r.nodeType===1&&t.length<5;r=r.parentElement){let i=r.tagName.toLowerCase();if(r.id&&/^[A-Za-z][\w-]*$/.test(r.id)){t.unshift(`${i}#${r.id}`);break}let n=r.getAttribute("data-testid");if(n){t.unshift(`${i}[data-testid="${n.replace(/"/g,'\\"')}"]`);break}let a=i,u=(r.getAttribute("class")??"").trim().split(/\s+/).filter(l=>l&&!Bf.test(l)).slice(0,2);u.length&&(a+="."+u.map(l=>CSS.escape(l)).join("."));let f=r.parentElement;if(f){let l=Array.from(f.children).filter(p=>p.tagName===r.tagName);l.length>1&&(a+=`:nth-of-type(${l.indexOf(r)+1})`)}t.unshift(a)}return t.join(" > ")}function Ve(e){try{e()}catch{}}var zf=["log","info","warn","error","debug","trace"],Ct=()=>{},pr=!1,fr=!1,xi=!1,hr=new Map,dr=new Map;function La(e){Ct=e}function Ri(e){pr=e}function Pa(){if(fr)return;fr=!0;let e=console;for(let r of zf){let i=e[r];if(typeof i!="function")continue;let n=function(...a){return _a(r,a),i.apply(this,a)};hr.set(r,i),dr.set(r,n),e[r]=n}let t=e.assert;if(typeof t=="function"){let r=function(...i){return i[0]||_a("error",["Assertion failed:",...i.slice(1)]),t.apply(this,i)};hr.set("assert",t),dr.set("assert",r),e.assert=r}addEventListener("error",Ua,!0),addEventListener("unhandledrejection",Ba)}function Fa(){if(!fr)return;fr=!1;let e=console;for(let[t,r]of dr)e[t]===r&&(e[t]=hr.get(t));dr.clear(),hr.clear(),removeEventListener("error",Ua,!0),removeEventListener("unhandledrejection",Ba)}function _a(e,t){if(!(!pr||xi)){xi=!0;try{let r=t.map(a=>St(a)),i={level:e,source:"console",text:Ci(t,r),args:r},n=t.find(et);n?.stack?i.stack=V(String(n.stack),4e3):e==="trace"&&(i.stack=wa(new Error().stack)),Ct(i,Date.now())}catch{}finally{xi=!1}}}function Ua(e){if(pr)try{if(e instanceof ErrorEvent){let r={level:"error",source:"uncaught",text:e.message||String(e.error),url:e.filename||void 0,line:e.lineno||void 0,col:e.colno||void 0};et(e.error)&&e.error.stack&&(r.stack=V(String(e.error.stack),4e3)),Ct(r,Date.now());return}let t=e.target;if(t&&t.nodeType===1){let r=ba(t);Ct({level:"error",source:"resource",text:`Failed to load <${t.tagName.toLowerCase()}>${r?` ${r}`:""}`,url:r||void 0},Date.now())}}catch{}}function Ba(e){if(pr)try{let t=e.reason,r=St(t),i={level:"error",source:"unhandledrejection",text:`Uncaught (in promise) ${Ci([t],[r])}`,args:[r]};et(t)&&t.stack&&(i.stack=V(String(t.stack),4e3)),Ct(i,Date.now())}catch{}}var Vf="data-tabtape-sandbox";function $a(e){return!!e&&("srcdoc"in e||"sandbox"in e)}function Wa(e){let{srcdoc:t,sandbox:r,...i}=e;return r!==void 0&&(i[Vf]=r),i}function Ti(e){let t=e.attributes,r=e.childNodes,i=!1;if($a(t)&&(t=Wa(t),i=!0),r){let n=r.map(Ti);n.some((a,u)=>a!==r[u])&&(r=n,i=!0)}return i?{...e,attributes:t,childNodes:r}:e}var jf=2,Hf=3,Gf=0;function Yf(e){let t=e,r=t.data;if(!r)return e;if(t.type===jf&&r.node){let i=Ti(r.node);return i===r.node?e:{...t,data:{...r,node:i}}}if(t.type===Hf&&r.source===Gf){let i=!1,n=r.adds?.map(u=>{let f=Ti(u.node);return f===u.node?u:(i=!0,{...u,node:f})}),a=r.attributes?.map(u=>$a(u.attributes)?(i=!0,{...u,attributes:Wa(u.attributes)}):u);return i?{...t,data:{...r,adds:n,attributes:a}}:e}return e}var za={name:"tabtape/iframe-attrs",eventProcessor:Yf,options:{}};function Mi(e){return{recordAfter:"DOMContentLoaded",maskAllInputs:!1,maskInputOptions:{password:!0},inlineStylesheet:!0,collectFonts:!1,recordCanvas:!1,recordCrossOriginIframes:!0,sampling:{mousemove:50,scroll:150,media:800,input:"last"},slimDOMOptions:{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:!0,headMetaDescKeywords:!0},checkoutEveryNms:e.checkoutEveryNms>0?e.checkoutEveryNms:void 0,errorHandler:()=>!0,plugins:[za]}}function qa(e){return{...Mi(e),checkoutEveryNms:void 0,maskInputOptions:{password:!0,text:!0,tel:!0,number:!0},maskInputFn:(t,r)=>r?.type==="password"||r&&ha(r)?"*".repeat(t.length):t}}function Va(e){let t,r=EventTarget.prototype.dispatchEvent,i=()=>r.call(document,new CustomEvent(de.hello));function n(){try{he.takeFullSnapshot(!0)}catch{}}function a(){try{t?.()}catch{}t=void 0}document.addEventListener(de.control,u=>{let f;try{f=vt(String(u.detail))}catch{return}f.cmd==="start"?t||(t=he(qa(f.options))??(()=>{})):f.cmd==="checkout"?t&&n():a()}),addEventListener("pageshow",u=>{u.persisted&&t&&n()}),Object.defineProperty(window,e,{value:{hello:i,get active(){return t!==void 0}},configurable:!0}),i()}var Xf=5e3,Jf=setInterval.bind(globalThis),Kf=clearInterval.bind(globalThis),ja=()=>{},nt;function Ha(e){ja=e,nt===void 0&&Xa()&&(mr(),nt=Jf(mr,Xf))}function Ga(){nt!==void 0&&mr()}function Ya(){nt!==void 0&&(mr(),Kf(nt),nt=void 0)}function mr(){try{let e=Xa();if(!e)return;ja(Zf(e,Qf(),Y(location.href)),Date.now())}catch{}}function Xa(){try{let e=performance.memory;return e&&typeof e.usedJSHeapSize=="number"?e:void 0}catch{return}}function Qf(){try{return document.getElementsByTagName("*").length}catch{return}}function Zf(e,t,r){let i={kind:"memory",used:Ni(e.usedJSHeapSize),total:Ni(e.totalJSHeapSize),limit:Ni(e.jsHeapSizeLimit),url:r};return t!==void 0&&(i.nodes=t),i}var Ni=e=>Number.isFinite(e)&&e>0?Math.round(e):0;var Qa=15e3,Za=new Set([101,204,205,304]),Ii=window.fetch,ge=XMLHttpRequest.prototype,el=ge.open,tl=ge.send,rl=ge.setRequestHeader,gr=Navigator.prototype,Ai=gr.sendBeacon,vr=()=>{},ye={captureBodies:!0,maxBodyChars:1e6},Ne=!1,yr=!1,nl=0,xt=!1,th=0,je,Rt=new Map,br=new WeakMap,Sr=()=>`${Date.now().toString(36)}-${(++th).toString(36)}`;function Di(e,t){ye=e,vr=t}function Cr(e){Ne=e}function il(e=!1){yr||(yr=!0,nl=performance.now(),xt=e,window.fetch=ol,ge.open=ll,ge.send=cl,ge.setRequestHeader=ul,typeof Ai=="function"&&(gr.sendBeacon=fl),oh())}function _i(){yr&&(yr=!1,window.fetch===ol&&(window.fetch=Ii),ge.open===ll&&(ge.open=el),ge.send===cl&&(ge.send=tl),ge.setRequestHeader===ul&&(ge.setRequestHeader=rl),gr.sendBeacon===fl&&(gr.sendBeacon=Ai),je?.disconnect(),je=void 0,Rt.clear())}function sl(){let e=Ne;Ne=!0;try{let t=performance.getEntriesByType("navigation")[0];t&&(xt=!1,wr(t,!0))}catch{}finally{Ne=e}}function Li(){try{for(let t of je?.takeRecords()??[])wr(t);let e=performance.getEntriesByType("navigation")[0];e&&!xt&&wr(e,!0)}catch{}for(let e of[...Rt.values()])e.data.pending=!0,Er(e)}function Er(e){e.done||(e.done=!0,Rt.delete(e.data.id),e.data.duration=K(performance.now()-e.t0),vr(e.data,e.ts))}function rh(e){let t={data:e,ts:Date.now(),t0:performance.now(),done:!1};return Rt.set(e.id,t),t}function ol(e,t){let r=arguments;if(!Ne)return Ii.apply(this,r);let i;try{i=nh(e,t)}catch{}let n=Ii.apply(this,r);if(i){let a=i;n.then(u=>ih(a,u),u=>{a.data.error=hl(u),Er(a)})}return n}function nh(e,t){let r=e instanceof Request?e:void 0,i=r?r.url:e instanceof URL?e.href:String(e),n={id:Sr(),kind:"fetch",method:String(t?.method??r?.method??"GET").toUpperCase(),url:Y(De(i))},a=ah(r?.headers,t?.headers);a&&(n.reqHeaders=a);let u=rh(n);if(ye.captureBodies){let f=a?.["content-type"];t?.body!=null?Et(n,Pi(t.body,f)):r?.body&&!r.bodyUsed&&(u.reqBody=al(r.clone().body,ye.maxBodyChars).then(l=>Et(n,{text:ur(l.text,f),truncated:l.truncated}),()=>Et(n,{note:"unreadable"})))}return u}async function ih(e,t){let r=e.data;try{r.ttfb=K(performance.now()-e.t0),r.status=t.status,t.statusText&&(r.statusText=t.statusText),r.resHeaders=ki(t.headers);let i=t.headers.get("content-type")??"";if(i&&(r.mime=i),t.type==="opaque"||t.type==="opaqueredirect")r.resBodyNote="opaque response (no-cors)";else if(ye.captureBodies&&r.method!=="HEAD"&&!Za.has(t.status))if(/event-stream/i.test(i))r.resBodyNote="event stream, not captured";else if(!i||ar.test(i)){let n=await al(t.clone().body,ye.maxBodyChars);r.resBody=n.text,r.resSize=n.bytes,n.truncated&&(r.resBodyTruncated=!0),n.timedOut&&(r.resBodyNote=`body still streaming after ${Qa/1e3}s, captured partially`)}else{let n=t.headers.get("content-length");r.resBodyNote=`binary (${i}${n?`, ${n} bytes`:""})`}await e.reqBody}catch(i){r.resBodyNote=`unreadable: ${hl(i)}`}Er(e)}var Ja=Symbol("timeout");async function al(e,t){let r={text:"",bytes:0,truncated:!1,timedOut:!1};if(!e)return r;let i=e.getReader(),n=new TextDecoder,a=performance.now()+Qa;try{for(;;){let u=a-performance.now(),f,l=await Promise.race([i.read(),new Promise(p=>{f=setTimeout(()=>p(Ja),Math.max(0,u))})]);if(clearTimeout(f),l===Ja){r.timedOut=!0;break}if(l.done){r.text+=n.decode();break}if(r.bytes+=l.value.byteLength,r.text+=n.decode(l.value,{stream:!0}),r.text.length>t){r.text=r.text.slice(0,t),r.truncated=!0;break}}}finally{i.cancel().catch(()=>{})}return r}function ll(e,t){if(Ne)try{br.set(this,{data:{id:Sr(),kind:"xhr",method:String(e).toUpperCase(),url:Y(De(String(t)))},ts:0,t0:0,done:!1})}catch{}else br.delete(this);return el.apply(this,arguments)}function ul(e,t){let r=br.get(this);return r&&((r.data.reqHeaders??={})[String(e).toLowerCase()]=String(t)),rl.call(this,e,t)}function cl(e){let t=br.get(this);if(t&&Ne&&t.t0===0)try{t.ts=Date.now(),t.t0=performance.now(),Rt.set(t.data.id,t),ye.captureBodies&&e!=null&&Et(t.data,Pi(e,t.data.reqHeaders?.["content-type"]));let r=this;r.addEventListener("readystatechange",()=>{r.readyState===2&&t.data.ttfb===void 0&&(t.data.ttfb=K(performance.now()-t.t0))}),r.addEventListener("error",()=>t.data.error??="network error"),r.addEventListener("abort",()=>t.data.error??="aborted"),r.addEventListener("timeout",()=>t.data.error??="timeout"),r.addEventListener("loadend",()=>{try{sh(r,t.data)}catch{}Er(t)})}catch{}return tl.apply(this,arguments)}function sh(e,t){t.status=e.status,e.statusText&&(t.statusText=e.statusText),t.resHeaders=lh(e.getAllResponseHeaders());let r=e.getResponseHeader("content-type")??"";if(r&&(t.mime=r),!(!ye.captureBodies||t.error||Za.has(e.status)))switch(e.responseType){case"":case"text":{if(r&&!ar.test(r)){t.resBodyNote=`binary (${r})`;return}Ka(t,e.responseText);return}case"json":Ka(t,Ce(e.response)??"null");return;case"arraybuffer":t.resBodyNote=`ArrayBuffer, ${e.response?.byteLength??0} bytes`;return;case"blob":t.resBodyNote=`Blob, ${e.response?.size??0} bytes`;return;default:t.resBodyNote=e.responseType}}function Ka(e,t){e.resSize=t.length,t.length>ye.maxBodyChars?(e.resBody=t.slice(0,ye.maxBodyChars),e.resBodyTruncated=!0):e.resBody=t}function fl(e,t){let r=Ai.apply(this,arguments);if(Ne)try{let i={id:Sr(),kind:"beacon",method:"POST",url:Y(De(String(e)))};r?i.statusText="queued":i.error="rejected by the browser",ye.captureBodies&&t!=null&&Et(i,Pi(t)),vr(i,Date.now())}catch{}return r}function oh(){try{je=new PerformanceObserver(e=>{for(let t of e.getEntries())wr(t)}),je.observe({type:"resource",buffered:!0}),je.observe({type:"navigation",buffered:!0})}catch{je=void 0}}function wr(e,t=!1){if(!Ne)return;let r=e;if(r.entryType==="resource"){if(r.initiatorType==="fetch"||r.initiatorType==="xmlhttprequest"||r.initiatorType==="beacon"||r.startTime<nl-50||r.name.startsWith("chrome-extension:")||r.initiatorType==="other"&&/\/favicon\.ico($|\?)/.test(r.name))return}else if(r.entryType==="navigation"){if(xt||r.duration===0&&!t)return;xt=!0}else return;let i={id:Sr(),kind:r.entryType==="navigation"?"navigation":"resource",method:"GET",url:Y(r.name),duration:K(r.duration)};r.entryType==="navigation"?(i.navType=r.type,r.duration===0&&(i.pending=!0)):i.initiator=r.initiatorType,r.responseStatus&&(i.status=r.responseStatus),r.responseStart>0&&(i.ttfb=K(r.responseStart-r.startTime)),r.transferSize&&(i.transferSize=r.transferSize),r.decodedBodySize&&(i.resSize=r.decodedBodySize),r.contentType&&(i.mime=r.contentType),vr(i,Math.round(performance.timeOrigin+r.startTime))}function Et(e,t){t.text!==void 0&&(e.reqBody=t.text),t.note&&(e.reqBodyNote=t.note),t.truncated&&(e.reqBodyTruncated=!0)}function Oi(e){return e.length>ye.maxBodyChars?{text:e.slice(0,ye.maxBodyChars),truncated:!0}:{text:e}}function Pi(e,t=""){try{if(typeof e=="string")return Oi(ur(e,t));if(e instanceof URLSearchParams)return Oi(lr(e.toString()));if(e instanceof FormData){let r={};return e.forEach((i,n)=>{let a=typeof i=="string"?Ae(n)?ze:V(i,1e4):`[File ${i.name}, ${i.size} bytes${i.type?`, ${i.type}`:""}]`,u=r[n];r[n]=u===void 0?a:Array.isArray(u)?[...u,a]:[u,a]}),{text:Ce(r),note:"FormData"}}if(e instanceof Blob)return{note:`Blob, ${e.size} bytes${e.type?`, ${e.type}`:""}`};if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)){let r=e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return ar.test(t)?Oi(ur(new TextDecoder().decode(r),t)):{note:`binary, ${r.byteLength} bytes`}}return e instanceof ReadableStream?{note:"stream"}:e instanceof Document?{note:"Document"}:{note:typeof e}}catch{return{note:"unreadable"}}}function ki(e){if(!e)return;let t={};try{if(e instanceof Headers)e.forEach((r,i)=>t[i]=r);else if(Array.isArray(e))for(let[r,i]of e)t[String(r).toLowerCase()]=String(i);else for(let[r,i]of Object.entries(e))t[r.toLowerCase()]=String(i)}catch{}return Object.keys(t).length?t:void 0}function ah(e,t){let r=ki(e),i=ki(t);return r||i?{...r,...i}:void 0}function lh(e){let t={};for(let r of e.trim().split(/[\r\n]+/)){let i=r.indexOf(":");i>0&&(t[r.slice(0,i).trim().toLowerCase()]=r.slice(i+1).trim())}return Object.keys(t).length?t:void 0}function hl(e){return e instanceof Error?`${e.name}: ${e.message}`:String(e)}var Rr=class{t;o=0;i=[];u(t){if(t.hadRecentInput)return;let r=this.i[0],i=this.i.at(-1);this.o&&r&&i&&t.startTime-i.startTime<1e3&&t.startTime-r.startTime<5e3?(this.o+=t.value,this.i.push(t)):(this.o=t.value,this.i=[t]),this.t?.(t)}},at=()=>{let e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Tr=e=>{if(document.readyState==="loading")return"loading";let t=at();if(t){if(e<t.domInteractive)return"loading";if(t.domContentLoadedEventStart===0||e<t.domContentLoadedEventStart)return"dom-interactive";if(t.domComplete===0||e<t.domComplete)return"dom-content-loaded"}return"complete"},ch=e=>{let t=e.nodeName;return e.nodeType===1?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},zi=e=>{let t="";try{for(;e?.nodeType!==9;){let r=e,i=r.id?"#"+r.id:[ch(r),...Array.from(r.classList).sort()].join(".");if(t.length+i.length>99)return t||i;if(t=t?i+">"+t:i,r.id)break;e=r.parentNode}}catch{}return t},dl=new WeakMap;function st(e,t){let r=dl.get(t);return r||(r=new WeakMap,dl.set(t,r)),r.get(e)||r.set(e,new t),r.get(e)}var El=-1,xl=()=>El,lt=e=>{addEventListener("pageshow",t=>{t.persisted&&(El=t.timeStamp,e(t))},!0)},xe=(e,t,r,i)=>{let n,a;return u=>{t.value>=0&&(u||i)&&(a=t.value-(n??0),(a||n===void 0)&&(n=t.value,t.delta=a,t.rating=((f,l)=>f>l[1]?"poor":f>l[0]?"needs-improvement":"good")(t.value,r),e(t)))}},qi=e=>{requestAnimationFrame(()=>requestAnimationFrame(e))},Tt=()=>at()?.activationStart??0,Re=(e,t=-1)=>{let r=at(),i="navigate";return xl()>=0?i="back-forward-cache":r&&(document.prerendering||Tt()>0?i="prerender":document.wasDiscarded?i="restore":r.type&&(i=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:i}},ot=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let i=new PerformanceObserver(n=>{queueMicrotask(()=>{t(n.getEntries())})});return i.observe({type:e,buffered:!0,...r}),i}}catch{}},Vi=e=>{let t=!1;return()=>{t||(e(),t=!0)}},it=-1,Rl=new Set,pl=()=>document.visibilityState!=="hidden"||document.prerendering?1/0:0,Ui=e=>{if(document.visibilityState==="hidden"){if(e.type==="visibilitychange")for(let t of Rl)t();isFinite(it)||(it=e.type==="visibilitychange"?e.timeStamp:0,removeEventListener("prerenderingchange",Ui,!0))}},Or=()=>{if(it<0){let e=Tt();it=(document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").find(r=>r.name==="hidden"&&r.startTime>=e)?.startTime)??pl(),addEventListener("visibilitychange",Ui,!0),addEventListener("prerenderingchange",Ui,!0),lt(()=>{setTimeout(()=>{it=pl()})})}return{get firstHiddenTime(){return it},onHidden(e){Rl.add(e)}}},Ir=e=>{document.prerendering?addEventListener("prerenderingchange",e,!0):e()},ml=[1800,3e3],Tl=(e,t={})=>{Ir(()=>{let r=Or(),i,n=Re("FCP"),a=ot("paint",u=>{for(let f of u)f.name==="first-contentful-paint"&&(a.disconnect(),f.startTime<r.firstHiddenTime&&(n.value=Math.max(f.startTime-Tt(),0),n.entries.push(f),i(!0)))});a&&(i=xe(e,n,ml,t.reportAllChanges),lt(u=>{n=Re("FCP"),i=xe(e,n,ml,t.reportAllChanges),qi(()=>{n.value=performance.now()-u.timeStamp,i(!0)})}))})},gl=[.1,.25],yl=e=>e.find(t=>t.node?.nodeType===1)||e[0],Ml=(e,t={})=>{let r=st(t=Object.assign({},t),Rr),i=new WeakMap;r.t=n=>{if(n?.sources?.length){let a=yl(n.sources),u=a?.node;if(u){let f=t.generateTarget?.(u)??zi(u);i.set(a,f)}}},((n,a={})=>{let u=Or();Tl(Vi(()=>{let f,l=Re("CLS",0),p=st(a,Rr),o=c=>{for(let s of c)p.u(s);p.o>l.value&&(l.value=p.o,l.entries=p.i,f())},d=ot("layout-shift",o);d&&(f=xe(n,l,gl,a.reportAllChanges),u.onHidden(()=>{o(d.takeRecords()),f(!0)}),lt(()=>{p.o=0,l=Re("CLS",0),f=xe(n,l,gl,a.reportAllChanges),qi(f)}),setTimeout(f))}))})(n=>{e((a=>{let u={};if(a.entries.length){let f=a.entries.reduce((l,p)=>l.value>p.value?l:p);if(f?.sources?.length){let l=yl(f.sources);l&&(u={largestShiftTarget:i.get(l),largestShiftTime:f.startTime,largestShiftValue:f.value,largestShiftSource:l,largestShiftEntry:f,loadState:Tr(f.startTime)})}}return Object.assign(a,{attribution:u})})(n))},t)},Nl=(e,t={})=>{Tl(r=>{e((i=>{let n={timeToFirstByte:0,firstByteToFCP:i.value,loadState:Tr(xl())};if(i.entries.length){let a=at(),u=i.entries.at(-1);if(a){let f=a.activationStart||0,l=Math.max(0,a.responseStart-f);n={timeToFirstByte:l,firstByteToFCP:i.value-l,loadState:Tr(i.entries[0].startTime),navigationEntry:a,fcpEntry:u}}}return Object.assign(i,{attribution:n})})(r))},t)},Ol=0,Fi=1/0,xr=0,fh=e=>{for(let t of e)t.interactionId&&(Fi=Math.min(Fi,t.interactionId),xr=Math.max(xr,t.interactionId),Ol=xr?(xr-Fi)/7+1:0)},Bi,bl=()=>Bi?Ol:performance.interactionCount??0,hh=()=>{"interactionCount"in performance||Bi||(Bi=ot("event",fh,{durationThreshold:0}))},wl=0,Mr=class{l=[];h=new Map;m;p;v(){wl=bl(),this.l.length=0,this.h.clear()}M(){let t=Math.min(this.l.length-1,Math.floor((bl()-wl)/50));return this.l[t]}u(t){if(this.m?.(t),!t.interactionId&&t.entryType!=="first-input")return;let r=this.l.at(-1),i=this.h.get(t.interactionId);if(i||this.l.length<10||t.duration>r.T){if(i?t.duration>i.T?(i.entries=[t],i.T=t.duration):t.duration===i.T&&t.startTime===i.entries[0].startTime&&i.entries.push(t):(i={id:t.interactionId,entries:[t],T:t.duration},this.h.set(i.id,i),this.l.push(i)),this.l.sort((n,a)=>a.T-n.T),this.l.length>10){let n=this.l.splice(10);for(let a of n)this.h.delete(a.id)}this.p?.(i)}}},$i=e=>{let t=globalThis.requestIdleCallback||setTimeout,r=globalThis.cancelIdleCallback||clearTimeout;if(document.visibilityState==="hidden")e();else{let i=Vi(e),n=-1,a=()=>{r(n),i()};addEventListener("visibilitychange",a,{once:!0,capture:!0}),n=t(()=>{removeEventListener("visibilitychange",a,{capture:!0}),i()})}},vl=[200,500],Il=(e,t={})=>{let r=st(t=Object.assign({},t),Mr),i=[],n=[],a=0,u=new WeakMap,f=new WeakMap,l=!1,p=()=>{l||($i(o),l=!0)},o=()=>{let s=new Set(r.l.map(g=>u.get(g.entries[0]))),m=n.length-10;n=n.filter((g,C)=>C>=m||s.has(g));let h=new Set;for(let g of n){let C=d(g.startTime,g.processingEnd);for(let b of C)h.add(b)}i=i.filter(g=>g.startTime>a||h.has(g)),l=!1};r.m=s=>{let m=s.startTime+s.duration,h;a=Math.max(a,s.processingEnd);for(let g=n.length-1;g>=0;g--){let C=n[g];if(Math.abs(m-C.renderTime)<=8){h=C,h.startTime=Math.min(s.startTime,h.startTime),h.processingStart=Math.min(s.processingStart,h.processingStart),h.processingEnd=Math.max(s.processingEnd,h.processingEnd),t.includeProcessedEventEntries!==!1&&h.entries.push(s);break}}h||(h={startTime:s.startTime,processingStart:s.processingStart,processingEnd:s.processingEnd,renderTime:m,entries:t.includeProcessedEventEntries!==!1?[s]:[]},n.push(h)),(s.interactionId||s.entryType==="first-input")&&u.set(s,h),p()},r.p=s=>{if(!f.get(s)){let m=s.entries.find(h=>h.target)?.target;if(m){let h=t.generateTarget?.(m)??zi(m);f.set(s,h)}else{let h=s.entries.find(g=>g.targetSelector)?.targetSelector;h&&f.set(s,h)}}};let d=(s,m)=>{let h=[];for(let g of i)if(!(g.startTime+g.duration<s)){if(g.startTime>m)break;h.push(g)}return h},c=s=>{let m=s.entries[0],h=u.get(m),g=m.processingStart,C=Math.max(m.startTime+m.duration,g),b=Math.min(h.processingEnd,C),v=h.entries.sort((S,x)=>S.processingStart-x.processingStart),E=d(m.startTime,b),w=r.h.get(m.interactionId),y={interactionTarget:f.get(w),interactionType:m.name.startsWith("key")?"keyboard":"pointer",interactionTime:m.startTime,nextPaintTime:C,processedEventEntries:v,longAnimationFrameEntries:E,inputDelay:g-m.startTime,processingDuration:b-g,presentationDelay:C-b,loadState:Tr(m.startTime),longestScript:void 0,totalScriptDuration:void 0,totalStyleAndLayoutDuration:void 0,totalPaintDuration:void 0,totalUnattributedDuration:void 0};return(S=>{if(!S.longAnimationFrameEntries?.length)return;let x=S.interactionTime,M=S.inputDelay,T=S.processingDuration,k,I,R=0,te=0,re=0,U=0;for(let Q of S.longAnimationFrameEntries){te=te+Q.startTime+Q.duration-Q.styleAndLayoutStart;for(let $ of Q.scripts){let B=$.startTime+$.duration;if(B<x)continue;let le=B-Math.max(x,$.startTime),N=$.duration?le/$.duration*$.forcedStyleAndLayoutDuration:0;R+=le-N,te+=N,le>U&&(I=$.startTime<x+M?"input-delay":$.startTime>=x+M+T?"presentation-delay":"processing-duration",k=$,U=le)}}let P=S.longAnimationFrameEntries.at(-1),j=P?P.startTime+P.duration:0;j>=x+M+T&&(re=S.nextPaintTime-j),k&&I&&(S.longestScript={entry:k,subpart:I,intersectingDuration:U}),S.totalScriptDuration=R,S.totalStyleAndLayoutDuration=te,S.totalPaintDuration=re,S.totalUnattributedDuration=S.nextPaintTime-x-R-te-re})(y),Object.assign(s,{attribution:y})};ot("long-animation-frame",s=>{i=i.concat(s),p()}),((s,m={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;let h=Or();Ir(()=>{hh();let g,C=Re("INP"),b=st(m,Mr),v=w=>{$i(()=>{for(let S of w)b.u(S);let y=b.M();y&&y.T!==C.value&&(C.value=y.T,C.entries=y.entries,g())})},E=ot("event",v,{durationThreshold:m.durationThreshold??40});g=xe(s,C,vl,m.reportAllChanges),E&&(E.observe({type:"first-input",buffered:!0}),h.onHidden(()=>{v(E.takeRecords()),g(!0)}),lt(()=>{b.v(),C=Re("INP"),g=xe(s,C,vl,m.reportAllChanges)}))})})(s=>{e(c(s))},t)},Nr=class{m;u(t){this.m?.(t)}},Sl=[2500,4e3],kl=(e,t={})=>{let r=st(t=Object.assign({},t),Nr),i=new WeakMap;r.m=n=>{let a=n.element;if(a){let u=t.generateTarget?.(a)??zi(a);i.set(n,u)}else n.id&&i.set(n,`#${n.id}`)},((n,a={})=>{Ir(()=>{let u=Or(),f,l=Re("LCP"),p=st(a,Nr),o=c=>{a.reportAllChanges||(c=c.slice(-1));for(let s of c)p.u(s),s.startTime<u.firstHiddenTime&&(l.value=Math.max(s.startTime-Tt(),0),l.entries=[s],f())},d=ot("largest-contentful-paint",o);if(d){f=xe(n,l,Sl,a.reportAllChanges);let c=Vi(()=>{o(d.takeRecords()),d.disconnect(),f(!0)}),s=m=>{m.isTrusted&&($i(c),removeEventListener(m.type,s,{capture:!0}))};for(let m of["keydown","click","visibilitychange"])addEventListener(m,s,{capture:!0});lt(m=>{l=Re("LCP"),f=xe(n,l,Sl,a.reportAllChanges),qi(()=>{l.value=performance.now()-m.timeStamp,f(!0)})})}})})(n=>{e((a=>{let u={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:a.value};if(a.entries.length){let f=a.entries.at(-1),l=f.url&&performance.getEntriesByType("resource").find(o=>o.name===f.url);u.target=i.get(f),u.lcpEntry=f,f.url&&(u.url=f.url),l&&(u.lcpResourceEntry=l);let p=at();if(p){let o=p.activationStart||0,d=Math.max(0,p.responseStart-o),c=Math.max(d,l?(l.requestStart||l.startTime)-o:0),s=Math.min(a.value,Math.max(c,l?l.responseEnd-o:0));u={...u,timeToFirstByte:d,resourceLoadDelay:c-d,resourceLoadDuration:s-c,elementRenderDelay:a.value-s,navigationEntry:p}}}return Object.assign(a,{attribution:u})})(n))},t)},Cl=[800,1800],Wi=e=>{document.prerendering?Ir(()=>Wi(e)):document.readyState!=="complete"?addEventListener("load",()=>Wi(e),!0):setTimeout(e)},Al=(e,t={})=>{((r,i={})=>{let n=Re("TTFB"),a=xe(r,n,Cl,i.reportAllChanges);Wi(()=>{let u=at();u&&(n.value=Math.max(u.responseStart-Tt(),0),n.entries=[u],a(!0),lt(()=>{n=Re("TTFB",0),a=xe(r,n,Cl,i.reportAllChanges),a(!0)}))})})(r=>{e((i=>{let n={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(i.entries.length){let a=i.entries[0],u=a.activationStart||0,f=Math.max((a.workerStart||a.fetchStart)-u,0),l=Math.max(a.domainLookupStart-u,0),p=Math.max(a.connectStart-u,0),o=Math.max(a.connectEnd-u,0);n={waitingDuration:f,cacheDuration:l-f,dnsDuration:p-l,connectionDuration:o-p,requestDuration:i.value-o,navigationEntry:a}}return Object.assign(i,{attribution:n})})(r))},t)};var Dl="long-animation-frame",dh=5,kr=()=>{},He=!1,_l=!1,Nt,Pl=0,ji=new Map;function Fl(e,t){if(kr=e,He)return;He=!0;let r=Date.now();for(let i of ji.values())Te(()=>kr(i,r));_l||(_l=!0,ph()),mh(t?0:performance.now())}function Hi(){let e=Nt;He&&e&&Te(()=>Bl(e.takeRecords()))}function Ul(){He&&(Hi(),He=!1,Nt?.disconnect(),Nt=void 0)}function ph(){addEventListener("pageshow",t=>t.persisted&&ji.clear(),!0);let e={reportAllChanges:!0};Te(()=>kl(Mt,e)),Te(()=>Ml(Mt,e)),Te(()=>Il(Mt,e)),Te(()=>Nl(Mt,e)),Te(()=>Al(Mt,e))}function Mt(e){Te(()=>{let t=gh(e,{timeOrigin:performance.timeOrigin,now:performance.now(),url:Y(location.href)});ji.set(t.name,t),He&&kr(t,Date.now())})}function mh(e){Pl=e,!Nt&&Te(()=>{if(!PerformanceObserver.supportedEntryTypes?.includes(Dl))return;let t=new PerformanceObserver(r=>Te(()=>Bl(r.getEntries())));t.observe({type:Dl,buffered:!0}),Nt=t})}function Bl(e){if(!He)return;let t=Y(location.href);for(let r of e){let i=r;i.startTime+i.duration<Pl||kr(yh(i,t),Math.round(performance.timeOrigin+i.startTime))}}function gh(e,t){let r=f=>Math.round(t.timeOrigin+f),i=()=>r(e.entries.at(-1)?.startTime??t.now),n={};switch(e.name){case"LCP":{let f=e.attribution;n.target=f.target,f.url&&(n.url=Y(f.url)),n.timeToFirstByte=K(f.timeToFirstByte),n.resourceLoadDelay=K(f.resourceLoadDelay),n.resourceLoadDuration=K(f.resourceLoadDuration),n.elementRenderDelay=K(f.elementRenderDelay),n.time=i();break}case"CLS":{let f=e.attribution;n.target=f.largestShiftTarget,f.largestShiftValue!==void 0&&(n.largestShiftValue=Ll(f.largestShiftValue)),f.largestShiftTime!==void 0&&(n.time=r(f.largestShiftTime)),n.loadState=f.loadState;break}case"INP":{let f=e.attribution;n.target=f.interactionTarget||void 0,n.interactionType=f.interactionType,n.inputDelay=K(f.inputDelay),n.processingDuration=K(f.processingDuration),n.presentationDelay=K(f.presentationDelay),n.loadState=f.loadState,n.time=r(f.interactionTime);break}case"FCP":{let f=e.attribution;n.timeToFirstByte=K(f.timeToFirstByte),n.firstByteToFCP=K(f.firstByteToFCP),n.loadState=f.loadState,n.time=i();break}case"TTFB":{let f=e.attribution;n.waitingDuration=K(f.waitingDuration),n.cacheDuration=K(f.cacheDuration),n.dnsDuration=K(f.dnsDuration),n.connectionDuration=K(f.connectionDuration),n.requestDuration=K(f.requestDuration);break}}let a={kind:"vital",name:e.name,value:e.name==="CLS"?Ll(e.value):K(e.value),rating:e.rating,id:e.id,navigationType:e.navigationType,url:t.url},u=bh(n);return Object.keys(u).length&&(a.attribution=u),a}function yh(e,t){let r=[...e.scripts??[]].sort((i,n)=>n.duration-i.duration).slice(0,dh).map(i=>{let n={duration:Math.round(i.duration)};return i.sourceURL&&(n.url=V(Y(i.sourceURL),2e3)),i.sourceFunctionName&&(n.fn=V(i.sourceFunctionName,200)),i.invoker&&(n.invoker=V(i.invoker,500)),i.invokerType&&(n.invokerType=i.invokerType),n});return{kind:"loaf",duration:Math.round(e.duration),blockingDuration:Math.round(e.blockingDuration),scripts:r,url:t}}var Ll=e=>Math.round(e*1e4)/1e4;function bh(e){let t={};for(let[r,i]of Object.entries(e))i!==void 0&&(t[r]=i);return t}function Te(e){try{e()}catch{}}var Hl="tabtape:track",Gl="tabtape:identify",Yl="tabtape:state",Gi=100,Ar=200,Xl=8*1024,$l={calls:100,perMs:1e3},vh=[Si,{depth:4,items:50,string:500},{depth:4,items:20,string:200},{depth:3,items:10,string:100},{depth:2,items:10,string:50}],Dr="\u2026";function Sh(e){if(typeof e!="string")return;let t=e.trim();return t&&t.length<=Gi*2&&[...t].length<=Gi?t:void 0}function Ch(e){let t;if(typeof e=="string")t=e.trim();else if(typeof e=="number"&&Number.isFinite(e)||typeof e=="bigint")t=String(e);else return;if(!t)return;if(t.length<=Ar)return t;let r=/[\uD800-\uDBFF]/.test(t[Ar-1])?Ar-1:Ar;return t.slice(0,r)}function Eh(e){let t=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t+=1:i<2048?t+=2:i>=55296&&i<=56319&&(e.charCodeAt(r+1)&64512)===56320?(t+=4,r++):t+=3}return t}function Ot(e,t=!1){if(Array.isArray(e)){for(let r=0;r<e.length;r++)e[r]=Ot(e[r],t);return e}if(e&&typeof e=="object"){let r=e;for(let i of Object.keys(r)){let n=r[i];i==="[[Map]]"&&Array.isArray(n)?r[i]=n.map(a=>Array.isArray(a)&&a.length===2&&typeof a[0]=="string"?[a[0],Ot(a[1],t||Ae(a[0]))]:Ot(a,t)):r[i]=Ot(n,t||Ae(i))}return r}return t&&(typeof e=="string"||typeof e=="number")?ze:e}function Wl(e){if(e==null)return{};let t={};for(let[r,i]of vh.entries())if(t=xh(Ot(St(e,i))),Jl(t)<=Xl)return zl(t,r>0);return zl(Rh(t),!0)}function xh(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{value:e}}function zl(e,t){let r={};return Object.keys(e).length&&(r.props=e),t&&(r.truncated=!0),r}function Jl(e){return Eh(Ce(e)??"")}function Rh(e){let t=e[Dr],r=typeof t=="string"&&Number.parseInt(t,10)||0,i=Object.keys(e).filter(f=>f!==Dr),n={},a=0;for(let f of i){n[f]=e[f];let l=i.length-a-1+r;if(Jl(l?{...n,[Dr]:`${l} more keys`}:n)>Xl){delete n[f];break}a++}let u=i.length-a+r;return u&&(n[Dr]=`${u} more keys`),n}var Yi=class{calls;perMs;clock;times=[];oldest=0;constructor(t,r,i){this.calls=t,this.perMs=r,this.clock=i}take(){let t=this.clock();return this.times.length<this.calls?(this.times.push(t),!0):t-this.times[this.oldest]<this.perMs?!1:(this.times[this.oldest]=t,this.oldest=(this.oldest+1)%this.calls,!0)}};function Th(e){let t=e.now??Date.now,r=e.url??(()=>Y(location.href)),i=e.warn??(s=>console.warn(s)),n=new Yi($l.calls,$l.perMs,e.clock??(()=>performance.now())),a=new Set,u=!1,f=0,l=!1;function p(s){if(!(!u||l)){l=!0;try{s()}catch{}finally{l=!1}}}function o(s,m){if(!a.has(s)){a.add(s);try{i(m())}catch{}}}function d(){return n.take()?!0:(f++,!1)}function c(s){f&&(s.dropped=f,f=0),e.emit(s,t())}return{get active(){return u},setActive(s){s&&!u&&(f=0),u=s},track(s,m){p(()=>{let h=Sh(s);if(h===void 0){o("track",()=>`tabtape.track: the event name must be a string of 1\u2013${Gi} characters, got ${ql(s)}. The event was not recorded.`);return}if(!d())return;let g=Wl(m),C={name:"custom",event:h,url:r()};g.props&&(C.props=g.props),g.truncated&&(C.propsTruncated=!0),c(C)})},identify(s,m){p(()=>{let h=Ch(s);if(h===void 0){o("identify",()=>`tabtape.identify: the user id must be a non-empty string or a number, got ${ql(s)}. The call was ignored.`);return}if(!d())return;let g=Wl(m),C={name:"identify",userId:h,url:r()};g.props&&(C.traits=g.props),g.truncated&&(C.propsTruncated=!0),c(C)})}}}function ql(e){return typeof e=="string"?e.trim()?`${[...e.trim()].length} characters`:"an empty string":e===null?"null":typeof e}var Vl=()=>{},Le,_r,Lr=!1,jl=!1;function Kl(e){Vl=e,Le??=Th({emit:(t,r)=>Vl(t,r)}),Le.setActive(!0),Mh(Le),Lr||(Lr=!0,addEventListener(Hl,Zl),addEventListener(Gl,eu),addEventListener(Yl,tu))}function Ql(){Le?.setActive(!1),Lr&&(Lr=!1,removeEventListener(Hl,Zl),removeEventListener(Gl,eu),removeEventListener(Yl,tu))}function Mh(e){try{if(_r&&window.tabtape===_r||"tabtape"in window)return;_r??=Object.freeze({track(t,r){e.track(t,r)},identify(t,r){e.identify(t,r)},state(t,r,i){ru(e,t,r,i)},get isRecording(){return e.active}}),Object.defineProperty(window,"tabtape",{value:_r,configurable:!0,writable:!0,enumerable:!1})}catch{}}function Xi(e){let t=e.detail;return t!==null&&typeof t=="object"?t:{}}function Zl(e){try{let t=Xi(e);Le?.track(t.name,t.props)}catch{}}function eu(e){try{let t=Xi(e);Le?.identify(t.userId,t.traits)}catch{}}function tu(e){try{let t=Xi(e);Le&&ru(Le,t.store,t.action,t.state)}catch{}}function ru(e,t,r,i){if(e.active)try{let n=We();n?n.manual(t,r,i):jl||(jl=!0,console.warn("tabtape.state: state recording is off in the tabtape extension settings; the call was ignored."))}catch{}}var Pr=Symbol.for("tabtape.recorder"),Oh=5e3,Ih=15e3,nu=window;nu[Pr]?nu[Pr].hello():window.top!==window?da()&&Va(Pr):kh();function kh(){let e=EventTarget.prototype.dispatchEvent,t=document.readyState==="loading",r="pending",i="",n=!1,a,u,f=!1,l=[],p=(y,S)=>e.call(document,new CustomEvent(y,{detail:S}));function o(y,S,x){if(r==="off")return;let M;try{M=Ce({ts:Math.round(S),type:y,data:x})}catch{return}c(y,M)}function d(y,S,x){r!=="off"&&c(y,`{"ts":${Math.round(S)},"type":${Ce(y)},"data":${x}}`)}function c(y,S){r==="active"?p(de.data,S):l.length<Oh&&l.push({type:y,line:S})}let s={captureBodies:!0,maxBodyChars:1e6,checkoutEveryNms:0,inPageNetwork:!0,recordState:!0};function m(y){La((S,x)=>o("console",x,S)),Pa(),Ri(!0),y.inPageNetwork?(Di(y,(S,x)=>o("network",x,S)),il(u?.inPageNetwork===!1),Cr(!0)):(Cr(!1),_i())}function h(y){if(y===f)return;f=y;let S=We();if(S)try{y?S.start((x,M)=>d("state",M,x)):S.stop()}catch{}}function g(){Cr(!1),Ri(!1),_i(),Fa()}m(s);let C=setTimeout(()=>r==="pending"&&E(),Ih);function b(y,S){if(clearTimeout(C),r==="active"&&y===i){m(S),u=S,h(S.recordState);return}r==="active"&&v(),i=y,m(S),u=S,r="active";for(let{type:x,line:M}of l.splice(0))x==="network"&&!S.inPageNetwork||p(de.data,M);!S.inPageNetwork&&!t&&(Di(S,(x,M)=>o("network",M,x)),sl()),a=he({...Mi(S),emit:(x,M)=>{o("rrweb",x.timestamp,x),M&&f&&We()?.checkout(),x.type===_.FullSnapshot&&p(de.snapshot)}})??void 0,xa((x,M)=>o("event",M,x),t&&!n?"load":"start"),Kl((x,M)=>o("event",M,x)),Fl((x,M)=>o("perf",M,x),t&&!n),Ha((x,M)=>o("perf",M,x)),h(S.recordState),n=!0}function v(){Li(),h(!1),Ul(),Ya(),Ql(),Ra();try{a?.()}catch{}a=void 0,p(de.flush)}function E(){clearTimeout(C),r==="active"&&v(),r="off",l.length=0,g();try{We()?.disable()}catch{}}document.addEventListener(de.control,y=>{let S;try{S=vt(String(y.detail))}catch{return}S.cmd==="start"?b(S.sessionId,S.options):E()}),document.addEventListener(de.info,()=>{let y={stateHook:"off",stores:[]};try{let S=We()?.info();S&&(y={stateHook:S.hook,stores:S.stores})}catch{}p(de.infoReply,Ce(y))}),addEventListener("pagehide",()=>{r==="active"&&(Ta(),u?.inPageNetwork!==!1&&Li(),Hi(),Ga(),p(de.flush))}),addEventListener("pageshow",y=>{if(!(!y.persisted||r!=="active")){try{he.takeFullSnapshot(!0)}catch{}_e("bfcache")}});let w=()=>p(de.hello);Object.defineProperty(window,Pr,{value:{hello:w,get active(){return r==="active"}},configurable:!0}),w()}})();
133
133
  //# sourceMappingURL=recorder.js.map