recce-nightly 1.15.0.20250806__py3-none-any.whl → 1.26.0.20251124__py3-none-any.whl

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.

Potentially problematic release.


This version of recce-nightly might be problematic. Click here for more details.

Files changed (167) hide show
  1. recce/VERSION +1 -1
  2. recce/__init__.py +5 -0
  3. recce/adapter/dbt_adapter/__init__.py +12 -3
  4. recce/artifact.py +74 -1
  5. recce/cli.py +642 -101
  6. recce/config.py +2 -2
  7. recce/connect_to_cloud.py +1 -1
  8. recce/core.py +2 -2
  9. recce/data/404.html +1 -1
  10. recce/data/__next.__PAGE__.txt +10 -0
  11. recce/data/__next._full.txt +23 -0
  12. recce/data/__next._head.txt +8 -0
  13. recce/data/__next._index.txt +8 -0
  14. recce/data/__next._tree.txt +5 -0
  15. recce/data/_next/static/52aV_JrNUZU6dMFgvTQEO/_buildManifest.js +11 -0
  16. recce/data/_next/static/52aV_JrNUZU6dMFgvTQEO/_clientMiddlewareManifest.json +1 -0
  17. recce/data/_next/static/chunks/02b996c7f6a29a06.js +4 -0
  18. recce/data/_next/static/chunks/19c10d219a6a21ff.js +1 -0
  19. recce/data/_next/static/chunks/2df9ec28a061971d.js +11 -0
  20. recce/data/_next/static/chunks/3098c987393bda15.js +1 -0
  21. recce/data/_next/static/chunks/393dc43e483f717a.css +2 -0
  22. recce/data/_next/static/chunks/399e8d91a7e45073.js +2 -0
  23. recce/data/_next/static/chunks/4d0186f631230245.js +1 -0
  24. recce/data/_next/static/chunks/5794ba9e10a9c060.js +11 -0
  25. recce/data/_next/static/chunks/715761c929a3f28b.js +110 -0
  26. recce/data/_next/static/chunks/71f88fcc615bf282.js +1 -0
  27. recce/data/_next/static/chunks/80d2a95eaf1201ea.js +1 -0
  28. recce/data/_next/static/chunks/9979c6109bbbee35.js +1 -0
  29. recce/data/_next/static/chunks/99d638224186c118.js +1 -0
  30. recce/data/_next/static/chunks/d003eb36240e92f3.js +1 -0
  31. recce/data/_next/static/chunks/d3167cdfec4fc351.js +1 -0
  32. recce/data/_next/static/chunks/e124bccf574a3361.css +1 -0
  33. recce/data/_next/static/chunks/f40141db1bdb46f0.css +6 -0
  34. recce/data/_next/static/chunks/fcc53a88741a52f9.js +1 -0
  35. recce/data/_next/static/chunks/turbopack-b1920d28cfb1f28d.js +3 -0
  36. recce/data/_next/static/media/favicon.a8d38d84.ico +0 -0
  37. recce/data/_next/static/media/montserrat-cyrillic-800-normal.d80d830d.woff2 +0 -0
  38. recce/data/_next/static/media/{montserrat-cyrillic-800-normal.bd5c9f50.woff → montserrat-cyrillic-800-normal.f9d58125.woff} +0 -0
  39. recce/data/_next/static/media/montserrat-cyrillic-ext-800-normal.076c2a93.woff2 +0 -0
  40. recce/data/_next/static/media/montserrat-latin-800-normal.cde454cc.woff2 +0 -0
  41. recce/data/_next/static/media/{montserrat-latin-800-normal.fc315020.woff → montserrat-latin-800-normal.d5761935.woff} +0 -0
  42. recce/data/_next/static/media/montserrat-latin-ext-800-normal.40ec0659.woff2 +0 -0
  43. recce/data/_next/static/media/{montserrat-latin-ext-800-normal.2e5381b2.woff → montserrat-latin-ext-800-normal.b671449b.woff} +0 -0
  44. recce/data/_next/static/media/{montserrat-vietnamese-800-normal.20c545e6.woff → montserrat-vietnamese-800-normal.9f7b8541.woff} +0 -0
  45. recce/data/_next/static/media/montserrat-vietnamese-800-normal.f9eb854e.woff2 +0 -0
  46. recce/data/_not-found/__next._full.txt +17 -0
  47. recce/data/_not-found/__next._head.txt +8 -0
  48. recce/data/_not-found/__next._index.txt +8 -0
  49. recce/data/_not-found/__next._not-found.__PAGE__.txt +5 -0
  50. recce/data/_not-found/__next._not-found.txt +4 -0
  51. recce/data/_not-found/__next._tree.txt +3 -0
  52. recce/data/_not-found.html +1 -0
  53. recce/data/_not-found.txt +17 -0
  54. recce/data/index.html +1 -1
  55. recce/data/index.txt +21 -23
  56. recce/event/__init__.py +9 -8
  57. recce/event/collector.py +3 -1
  58. recce/event/track.py +10 -0
  59. recce/github.py +1 -1
  60. recce/mcp_server.py +716 -0
  61. recce/models/types.py +35 -2
  62. recce/pull_request.py +1 -1
  63. recce/run.py +2 -2
  64. recce/server.py +105 -3
  65. recce/state/__init__.py +31 -0
  66. recce/state/cloud.py +632 -0
  67. recce/state/const.py +26 -0
  68. recce/state/local.py +56 -0
  69. recce/state/state.py +119 -0
  70. recce/state/state_loader.py +174 -0
  71. recce/summary.py +21 -1
  72. recce/tasks/dataframe.py +63 -1
  73. recce/tasks/rowcount.py +4 -1
  74. recce/tasks/schema.py +4 -1
  75. recce/util/api_token.py +9 -2
  76. recce/util/breaking.py +1 -1
  77. recce/util/io.py +2 -2
  78. recce/util/lineage.py +14 -18
  79. recce/util/recce_cloud.py +187 -7
  80. recce/yaml/__init__.py +2 -2
  81. recce_cloud/__init__.py +24 -0
  82. recce_cloud/api/__init__.py +17 -0
  83. recce_cloud/api/base.py +111 -0
  84. recce_cloud/api/client.py +150 -0
  85. recce_cloud/api/exceptions.py +26 -0
  86. recce_cloud/api/factory.py +63 -0
  87. recce_cloud/api/github.py +76 -0
  88. recce_cloud/api/gitlab.py +82 -0
  89. recce_cloud/artifact.py +57 -0
  90. recce_cloud/ci_providers/__init__.py +9 -0
  91. recce_cloud/ci_providers/base.py +82 -0
  92. recce_cloud/ci_providers/detector.py +147 -0
  93. recce_cloud/ci_providers/github_actions.py +136 -0
  94. recce_cloud/ci_providers/gitlab_ci.py +130 -0
  95. recce_cloud/cli.py +245 -0
  96. recce_cloud/upload.py +214 -0
  97. {recce_nightly-1.15.0.20250806.dist-info → recce_nightly-1.26.0.20251124.dist-info}/METADATA +54 -28
  98. recce_nightly-1.26.0.20251124.dist-info/RECORD +180 -0
  99. {recce_nightly-1.15.0.20250806.dist-info → recce_nightly-1.26.0.20251124.dist-info}/top_level.txt +1 -0
  100. tests/adapter/dbt_adapter/test_dbt_cll.py +4 -2
  101. tests/recce_cloud/__init__.py +0 -0
  102. tests/recce_cloud/test_ci_providers.py +351 -0
  103. tests/recce_cloud/test_cli.py +372 -0
  104. tests/recce_cloud/test_client.py +273 -0
  105. tests/recce_cloud/test_platform_clients.py +333 -0
  106. tests/test_cli.py +106 -3
  107. tests/test_cli_mcp_optional.py +45 -0
  108. tests/test_cloud_listing_cli.py +324 -0
  109. tests/test_core.py +147 -0
  110. tests/test_mcp_server.py +332 -0
  111. tests/test_server.py +6 -6
  112. tests/test_summary.py +14 -6
  113. recce/data/_next/static/Q_5ThPsmamd4VAGXuqwgi/_buildManifest.js +0 -1
  114. recce/data/_next/static/chunks/0376eeba-3db2196398d62270.js +0 -1
  115. recce/data/_next/static/chunks/068b80ea-833a129468ee1622.js +0 -1
  116. recce/data/_next/static/chunks/0ddaf06c-c7961285f66460f6.js +0 -1
  117. recce/data/_next/static/chunks/1268aea1-6dc1251c01bd724b.js +0 -54
  118. recce/data/_next/static/chunks/12f8fac4-16838e42d28d45c3.js +0 -1
  119. recce/data/_next/static/chunks/235b8375-8c84c51d7bd4f6aa.js +0 -1
  120. recce/data/_next/static/chunks/2541941f-2cd3a7c2d629bd33.js +0 -1
  121. recce/data/_next/static/chunks/273-f3fa401bd2b6fc91.js +0 -10
  122. recce/data/_next/static/chunks/2fc37c1e-910deebeb3d77c90.js +0 -1
  123. recce/data/_next/static/chunks/338-2e7eed5135c64550.js +0 -30
  124. recce/data/_next/static/chunks/367-ab8b16dd5f8586ca.js +0 -1
  125. recce/data/_next/static/chunks/3a92ee20-0400ffe460c7c803.js +0 -1
  126. recce/data/_next/static/chunks/62446465-423c03bb8c1f59b6.js +0 -1
  127. recce/data/_next/static/chunks/6af7f9e9-60aa8706f49dae45.js +0 -1
  128. recce/data/_next/static/chunks/6cf54382-49d52ae6e564e2ac.js +0 -1
  129. recce/data/_next/static/chunks/6dc81886-78e2efe4538794ae.js +0 -1
  130. recce/data/_next/static/chunks/715e4acc-9e2e6df4eb3809d1.js +0 -1
  131. recce/data/_next/static/chunks/72-181b430654230f0e.js +0 -1
  132. recce/data/_next/static/chunks/786-774e3e3ed70a41b3.js +0 -1
  133. recce/data/_next/static/chunks/8d700b6a.7fe2c8c3f4e333a6.js +0 -1
  134. recce/data/_next/static/chunks/a69d64b4-d6890125a87b0aba.js +0 -1
  135. recce/data/_next/static/chunks/ae307f12-01100009689ace61.js +0 -1
  136. recce/data/_next/static/chunks/app/_not-found/page-c7ef8ed6dc07aaeb.js +0 -1
  137. recce/data/_next/static/chunks/app/layout-744f0a78e9e50e60.js +0 -1
  138. recce/data/_next/static/chunks/app/page-e8f798c2ae3f59c2.js +0 -1
  139. recce/data/_next/static/chunks/c0015c5c-82c219792582c104.js +0 -1
  140. recce/data/_next/static/chunks/d90cfbaa-e7d779b3912afeec.js +0 -1
  141. recce/data/_next/static/chunks/e07c302e-cd170429646873e1.js +0 -1
  142. recce/data/_next/static/chunks/fa5fb511-15fb438349ad5b97.js +0 -1
  143. recce/data/_next/static/chunks/framework-7950757d31580329.js +0 -1
  144. recce/data/_next/static/chunks/main-app-4df79eb11c34d43c.js +0 -1
  145. recce/data/_next/static/chunks/main-cd6c104af638214a.js +0 -1
  146. recce/data/_next/static/chunks/pages/_app-73008661edbd5e05.js +0 -1
  147. recce/data/_next/static/chunks/pages/_error-cf8bbdc3cf76c83f.js +0 -1
  148. recce/data/_next/static/chunks/webpack-84df6dd5ae3cf908.js +0 -1
  149. recce/data/_next/static/css/188a3a1687e2a064.css +0 -1
  150. recce/data/_next/static/css/8edca58d4abcf908.css +0 -14
  151. recce/data/_next/static/css/abdb9814a3dd18bb.css +0 -1
  152. recce/data/_next/static/css/c21263c1520b615b.css +0 -1
  153. recce/data/_next/static/media/montserrat-cyrillic-800-normal.22628180.woff2 +0 -0
  154. recce/data/_next/static/media/montserrat-cyrillic-ext-800-normal.94a63aea.woff2 +0 -0
  155. recce/data/_next/static/media/montserrat-latin-800-normal.6f8fa298.woff2 +0 -0
  156. recce/data/_next/static/media/montserrat-latin-ext-800-normal.013b84f9.woff2 +0 -0
  157. recce/data/_next/static/media/montserrat-vietnamese-800-normal.c0035377.woff2 +0 -0
  158. recce/state.py +0 -865
  159. recce_nightly-1.15.0.20250806.dist-info/RECORD +0 -156
  160. tests/test_state.py +0 -134
  161. /recce/data/_next/static/{Q_5ThPsmamd4VAGXuqwgi → 52aV_JrNUZU6dMFgvTQEO}/_ssgManifest.js +0 -0
  162. /recce/data/_next/static/chunks/{polyfills-42372ed130431b0a.js → a6dad97d9634a72d.js} +0 -0
  163. /recce/data/_next/static/media/{montserrat-cyrillic-ext-800-normal.e6e0d8d0.woff → montserrat-cyrillic-ext-800-normal.a4fa76b5.woff} +0 -0
  164. /recce/data/_next/static/media/{reload-image.79aabb7d.svg → reload-image.7aa931c7.svg} +0 -0
  165. {recce_nightly-1.15.0.20250806.dist-info → recce_nightly-1.26.0.20251124.dist-info}/WHEEL +0 -0
  166. {recce_nightly-1.15.0.20250806.dist-info → recce_nightly-1.26.0.20251124.dist-info}/entry_points.txt +0 -0
  167. {recce_nightly-1.15.0.20250806.dist-info → recce_nightly-1.26.0.20251124.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95773,e=>{"use strict";let t,r,s,i,n,o,a,l,h,u,c,p,d,f,m,g,y,w,b,S,v,C;var I,x,k,M,O,A,R,E,N,T,P,D=e.i(85838),L=e.i(18740),F=Object.defineProperty,_=(e,t,r)=>{let s;return(s="symbol"!=typeof t?t+"":t)in e?F(e,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[s]=r},B=Object.defineProperty,U=(e,t,r)=>{let s;return(s="symbol"!=typeof t?t+"":t)in e?B(e,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[s]=r},z=((I=z||{})[I.Document=0]="Document",I[I.DocumentType=1]="DocumentType",I[I.Element=2]="Element",I[I.Text=3]="Text",I[I.CDATA=4]="CDATA",I[I.Comment=5]="Comment",I);let j={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},W={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},V={};function G(e){var t,r;let s;if(V[e])return V[e];let i=((s=null==(r=null==(t=null==globalThis?void 0:globalThis.Zone)?void 0:t.__symbol__)?void 0:r.call(t,e))&&globalThis[s]?globalThis[s]:void 0)||globalThis[e],n=i.prototype,o=e in j?j[e]:void 0,a=!!(o&&o.every(e=>{var t,r;return!!(null==(r=null==(t=Object.getOwnPropertyDescriptor(n,e))?void 0:t.get)?void 0:r.toString().includes("[native code]"))})),l=e in W?W[e]:void 0,h=!!(l&&l.every(e=>{var t;return"function"==typeof n[e]&&(null==(t=n[e])?void 0:t.toString().includes("[native code]"))}));if(a&&h)return V[e]=i.prototype,i.prototype;try{let t=document.createElement("iframe");document.body.appendChild(t);let r=t.contentWindow;if(!r)return i.prototype;let s=r[e].prototype;if(document.body.removeChild(t),!s)return n;return V[e]=s}catch{return n}}let Z={};function Y(e,t,r){var s;let i=`${e}.${String(r)}`;if(Z[i])return Z[i].call(t);let n=null==(s=Object.getOwnPropertyDescriptor(G(e),r))?void 0:s.get;return n?(Z[i]=n,n.call(t)):t[r]}let J=function(e){return Y("Node",e,"childNodes")},X=function(e){return Y("Node",e,"parentNode")},H=function(e){return Y("Node",e,"parentElement")},K=function(e){return Y("Node",e,"textContent")},$=function(e){return e&&"shadowRoot"in e?Y("Element",e,"shadowRoot"):null};function Q(e){return e.nodeType===e.ELEMENT_NODE}function q(e){var t;let r=e&&"host"in e&&"mode"in e&&((t=e)&&"host"in t?Y("ShadowRoot",t,"host"):null)||null;return!!(r&&"shadowRoot"in r&&$(r)===e)}function ee(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function et(e){try{var t;let r=e.rules||e.cssRules;if(!r)return null;let s=e.href;return!s&&e.ownerNode&&e.ownerNode.ownerDocument&&(s=e.ownerNode.ownerDocument.location.href),(t=Array.from(r,e=>er(e,s)).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}catch(e){return null}}function er(e,t){if("styleSheet"in e){let t;try{t=et(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(r){t=e.cssText}return e.styleSheet.href?ed(t,e.styleSheet.href):t}{let r=e.cssText;return("selectorText"in e&&e.selectorText.includes(":")&&(r=r.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),t)?ed(r,t):r}}class es{constructor(){U(this,"idNodeMap",new Map),U(this,"nodeMetaMap",new WeakMap)}getId(e){var t;return e?(null==(t=this.getMeta(e))?void 0:t.id)??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function ei({element:e,maskInputOptions:t,tagName:r,type:s,value:i,maskInputFn:n}){let o=i||"",a=s&&en(s);return(t[r.toLowerCase()]||a&&t[a])&&(o=n?n(o,e):"*".repeat(o.length)),o}function en(e){return e.toLowerCase()}let eo="__rrweb_original__";function ea(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?en(t):null}function el(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(e){return null}let s=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==s?void 0:s[1])??null}let eh=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,eu=/^(?:[a-z+]+:)?\/\//i,ec=/^www\..*/i,ep=/^(data:)([^,]*),(.*)/i;function ed(e,t){return(e||"").replace(eh,(e,r,s,i,n,o)=>{let a=s||n||o,l=r||i||"";if(!a)return e;if(eu.test(a)||ec.test(a)||ep.test(a))return`url(${l}${a}${l})`;if("/"===a[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+a}${l})`;let h=t.split("/"),u=a.split("/");for(let e of(h.pop(),u))if("."===e)continue;else".."===e?h.pop():h.push(e);return`url(${l}${h.join("/")}${l})`})}function ef(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}let em=1,eg=RegExp("[^a-z0-9-_:]");function ey(){return em++}let ew=/^[^ \t\n\r\u000c]+/,eb=/^[, \t\n\r\u000c]+/,eS=new WeakMap;function ev(e,t){return t&&""!==t.trim()?eC(e,t):t}function eC(e,t){let r=eS.get(e);if(r||(r=e.createElement("a"),eS.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function eI(e,t,r,s){if(!s)return s;if("src"===r||"href"===r&&("use"!==t||"#"!==s[0])||"xlink:href"===r&&"#"!==s[0])return ev(e,s);if("background"===r&&("table"===t||"td"===t||"th"===t))return ev(e,s);if("srcset"===r)return function(e,t){if(""===t.trim())return t;let r=0;function s(e){let s,i=e.exec(t.substring(r));return i?(s=i[0],r+=s.length,s):""}let i=[];for(;s(eb),!(r>=t.length);){let n=s(ew);if(","===n.slice(-1))n=ev(e,n.substring(0,n.length-1)),i.push(n);else{let s="";n=ev(e,n);let o=!1;for(;;){let e=t.charAt(r);if(""===e){i.push((n+s).trim());break}if(o)")"===e&&(o=!1);else if(","===e){r+=1,i.push((n+s).trim());break}else"("===e&&(o=!0);s+=e,r+=1}}}return i.join(", ")}(e,s);if("style"===r)return ed(s,eC(e));else if("object"===t&&"data"===r)return ev(e,s);return s}function ex(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function ek(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&ek(X(e),t,r);for(let r=e.classList.length;r--;){let s=e.classList[r];if(t.test(s))return!0}return!!r&&ek(X(e),t,r)}function eM(e,t,r,s){let i;if(Q(e)){if(!J(i=e).length)return!1}else{if(null===H(e))return!1;i=H(e)}try{if("string"==typeof t){if(s){if(i.closest(`.${t}`))return!0}else if(i.classList.contains(t))return!0}else if(ek(i,t,s))return!0;if(r){if(s){if(i.closest(r))return!0}else if(i.matches(r))return!0}}catch(e){}return!1}function eO(e){return null==e?"":e.toLowerCase()}function eA(e,s){let i,{doc:n,mirror:o,blockClass:a,blockSelector:l,maskTextClass:h,maskTextSelector:u,skipChild:c=!1,inlineStylesheet:p=!0,maskInputOptions:d={},maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y={},inlineImages:w=!1,recordCanvas:b=!1,onSerialize:S,onIframeLoad:v,iframeLoadTimeout:C=5e3,onStylesheetLoad:I,stylesheetLoadTimeout:x=5e3,keepIframeSrcFn:k=()=>!1,newlyAddedElement:M=!1,cssCaptured:O=!1,applyBackgroundColorToBlockedElements:A=!1}=s,{needsMask:R}=s,{preserveWhiteSpace:E=!0}=s;R||(R=eM(e,h,u,void 0===R));let N=function(e,s){let{doc:i,mirror:n,blockClass:o,blockSelector:a,needsMask:l,inlineStylesheet:h,maskInputOptions:u={},maskTextFn:c,maskInputFn:p,dataURLOptions:d={},inlineImages:f,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:y=!1,cssCaptured:w=!1,applyBackgroundColorToBlockedElements:b=!1}=s,S=function(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return 1===r?void 0:r}(i,n);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:z.Document,childNodes:[],compatMode:e.compatMode};return{type:z.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:z.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return function(e,s){let i,{doc:n,blockClass:o,blockSelector:a,inlineStylesheet:l,maskInputOptions:h={},maskInputFn:u,dataURLOptions:c={},inlineImages:p,recordCanvas:d,keepIframeSrcFn:f,newlyAddedElement:m=!1,rootId:g,applyBackgroundColorToBlockedElements:y=!1}=s,w=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){let s=e.classList[r];if(t.test(s))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,o,a),b=function(e){if(e instanceof HTMLFormElement)return"form";let t=en(e.tagName);return eg.test(t)?"div":t}(e),S={},v=e.attributes.length;for(let t=0;t<v;t++){let r=e.attributes[t];ex(b,r.name,r.value)||(S[r.name]=eI(n,b,en(r.name),r.value))}if("link"===b&&l){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=et(t)),r&&(delete S.rel,delete S.href,S._cssText=r)}if("style"===b&&e.sheet){let t=et(e.sheet);t&&(e.childNodes.length>1&&(t=(function(e,t,r=!1){let s=Array.from(t.childNodes),i=[],n=0;if(s.length>1&&e&&"string"==typeof e){let t=ef(e,r),o=t.length/e.length;for(let a=1;a<s.length;a++)if(s[a].textContent&&"string"==typeof s[a].textContent){let l=ef(s[a].textContent,r),h=3;for(;h<l.length&&(l[h].match(/[a-zA-Z0-9]/)||-1!==l.indexOf(l.substring(0,h),1));h++);for(;h<l.length;h++){let u=l.substring(0,h),c=t.split(u),p=-1;if(2===c.length)p=c[0].length;else if(c.length>2&&""===c[0]&&""!==s[a-1].textContent)p=t.indexOf(u,1);else if(1===c.length){if(u=u.substring(0,u.length-1),(c=t.split(u)).length<=1)return i.push(e),i;h=101}else h===l.length-1&&(p=t.indexOf(u));if(c.length>=2&&h>100){let e=s[a-1].textContent;if(e&&"string"==typeof e){let r=ef(e).length;p=t.indexOf(u,r)}-1===p&&(p=c[0].length)}if(-1!==p){let a=Math.floor(p/o);for(;a>0&&a<e.length;){if((n+=1)>50*s.length)return i.push(e),i;let l=ef(e.substring(0,a),r);if(l.length===p){i.push(e.substring(0,a)),e=e.substring(a),t=t.substring(p);break}l.length<p?a+=Math.max(1,Math.floor((p-l.length)/o)):a-=Math.max(1,Math.floor((l.length-p)*o))}break}}}}return i.push(e),i})(t,e).join("/* rr_split */")),S._cssText=t)}if("input"===b||"textarea"===b||"select"===b){let t=e.value,r=e.checked;"radio"!==S.type&&"checkbox"!==S.type&&"submit"!==S.type&&"button"!==S.type&&t?S.value=ei({element:e,type:ea(e),tagName:b,value:t,maskInputOptions:h,maskInputFn:u}):r&&(S.checked=r)}if("option"===b&&(e.selected&&!h.select?S.selected=!0:delete S.selected),"dialog"===b&&e.open&&(S.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===b&&d){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let s=0;s<e.height;s+=50){let i=t.getImageData;if(new Uint32Array((eo in i?i[eo]:i).call(t,r,s,Math.min(50,e.width-r),Math.min(50,e.height-s)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(S.rr_dataURL=e.toDataURL(c.type,c.quality));else if(!("__context"in e)){let t=e.toDataURL(c.type,c.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(c.type,c.quality)&&(S.rr_dataURL=t)}}if("img"===b&&p){t||(r=(t=n.createElement("canvas")).getContext("2d"));let s=e.currentSrc||e.getAttribute("src")||"<unknown-src>",i=e.crossOrigin,o=()=>{e.removeEventListener("load",o);try{t.width=e.naturalWidth,t.height=e.naturalHeight,r.drawImage(e,0,0),S.rr_dataURL=t.toDataURL(c.type,c.quality)}catch(t){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?o():e.addEventListener("load",o);return}console.warn(`Cannot inline img src=${s}! Error: ${t}`)}"anonymous"===e.crossOrigin&&(i?S.crossOrigin=i:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?o():e.addEventListener("load",o)}if("audio"===b||"video"===b){let t=S;t.rr_mediaState=e.paused?"paused":"played",t.rr_mediaCurrentTime=e.currentTime,t.rr_mediaPlaybackRate=e.playbackRate,t.rr_mediaMuted=e.muted,t.rr_mediaLoop=e.loop,t.rr_mediaVolume=e.volume}if(!m&&(e.scrollLeft&&(S.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(S.rr_scrollTop=e.scrollTop)),w){let{width:t,height:r}=e.getBoundingClientRect();S={class:S.class,rr_width:`${t}px`,rr_height:`${r}px`,...y?{rr_background_color:"lightgrey"}:{}}}"iframe"!==b||f(S.src)||(e.contentDocument||(S.rr_src=S.src),delete S.src);try{customElements.get(b)&&(i=!0)}catch(e){}return{type:z.Element,tagName:b,attributes:S,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:w,rootId:g,isCustom:i}}(e,{doc:i,blockClass:o,blockSelector:a,inlineStylesheet:h,maskInputOptions:u,maskInputFn:p,dataURLOptions:d,inlineImages:f,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:y,rootId:S,applyBackgroundColorToBlockedElements:b});case e.TEXT_NODE:return function(e,t){let{needsMask:r,maskTextFn:s,rootId:i,cssCaptured:n}=t,o=X(e),a=o&&o.tagName,l="",h="STYLE"===a||void 0,u="SCRIPT"===a||void 0;return u?l="SCRIPT_PLACEHOLDER":!n&&(l=K(e),h&&l&&(l=ed(l,eC(t.doc)))),!h&&!u&&l&&r&&(l=s?s(l,H(e)):l.replace(/[\S]/g,"*")),{type:z.Text,textContent:l||"",rootId:i}}(e,{doc:i,needsMask:l,maskTextFn:c,rootId:S,cssCaptured:w});case e.CDATA_SECTION_NODE:return{type:z.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return{type:z.Comment,textContent:K(e)||"",rootId:S};default:return!1}}(e,{doc:n,mirror:o,blockClass:a,blockSelector:l,needsMask:R,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:m,dataURLOptions:y,inlineImages:w,recordCanvas:b,keepIframeSrcFn:k,newlyAddedElement:M,cssCaptured:O,applyBackgroundColorToBlockedElements:A});if(!N)return console.warn(e,"not serialized"),null;i=o.hasNode(e)?o.getId(e):!function(e,t){if(t.comment&&e.type===z.Comment)return!0;if(e.type===z.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===el(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(eO(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===eO(e.attributes.name)||"icon"===eO(e.attributes.rel)||"apple-touch-icon"===eO(e.attributes.rel)||"shortcut icon"===eO(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&eO(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(eO(e.attributes.property).match(/^(og|twitter|fb):/)||eO(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===eO(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===eO(e.attributes.name)||"googlebot"===eO(e.attributes.name)||"bingbot"===eO(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===eO(e.attributes.name)||"generator"===eO(e.attributes.name)||"framework"===eO(e.attributes.name)||"publisher"===eO(e.attributes.name)||"progid"===eO(e.attributes.name)||eO(e.attributes.property).match(/^article:/)||eO(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===eO(e.attributes.name)||"yandex-verification"===eO(e.attributes.name)||"csrf-token"===eO(e.attributes.name)||"p:domain_verify"===eO(e.attributes.name)||"verify-v1"===eO(e.attributes.name)||"verification"===eO(e.attributes.name)||"shopify-checkout-api-token"===eO(e.attributes.name)))return!0}}return!1}(N,g)&&(E||N.type!==z.Text||N.textContent.replace(/^\s+|\s+$/gm,"").length)?ey():-2;let T=Object.assign(N,{id:i});if(o.add(e,T),-2===i)return null;S&&S(e);let P=!c;if(T.type===z.Element){P=P&&!T.needBlock,delete T.needBlock;let t=$(e);t&&ee(t)&&(T.isShadowHost=!0)}if((T.type===z.Document||T.type===z.Element)&&P){g.headWhitespace&&T.type===z.Element&&"head"===T.tagName&&(E=!1);let t={doc:n,mirror:o,blockClass:a,blockSelector:l,needsMask:R,maskTextClass:h,maskTextSelector:u,skipChild:c,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:w,recordCanvas:b,preserveWhiteSpace:E,onSerialize:S,onIframeLoad:v,iframeLoadTimeout:C,onStylesheetLoad:I,stylesheetLoadTimeout:x,keepIframeSrcFn:k,cssCaptured:!1,applyBackgroundColorToBlockedElements:A};if(T.type===z.Element&&"textarea"===T.tagName&&void 0!==T.attributes.value);else for(let r of(T.type===z.Element&&void 0!==T.attributes._cssText&&"string"==typeof T.attributes._cssText&&(t.cssCaptured=!0),Array.from(J(e)))){let e=eA(r,t);e&&T.childNodes.push(e)}let r=null;if(Q(e)&&(r=$(e)))for(let e of Array.from(J(r))){let s=eA(e,t);s&&(ee(r)&&(s.isShadow=!0),T.childNodes.push(s))}}let D=X(e);return D&&q(D)&&ee(D)&&(T.isShadow=!0),T.type===z.Element&&"iframe"===T.tagName&&function(e,t,r){let s,i=e.contentWindow;if(!i)return;let n=!1;try{s=i.document.readyState}catch(e){return}if("complete"!==s){let s=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(s),n=!0,t()});return}let o="about:blank";if(i.location.href!==o||e.src===o||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=e.contentDocument;if(t&&v){let r=eA(t,{doc:t,mirror:o,blockClass:a,blockSelector:l,needsMask:R,maskTextClass:h,maskTextSelector:u,skipChild:!1,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:w,recordCanvas:b,preserveWhiteSpace:E,onSerialize:S,onIframeLoad:v,iframeLoadTimeout:C,onStylesheetLoad:I,stylesheetLoadTimeout:x,keepIframeSrcFn:k});r&&v(e,r)}},C),T.type===z.Element&&"link"===T.tagName&&"string"==typeof T.attributes.rel&&("stylesheet"===T.attributes.rel||"preload"===T.attributes.rel&&"string"==typeof T.attributes.href&&"css"===el(T.attributes.href))&&function(e,t,r){let s,i=!1;try{s=e.sheet}catch(e){return}if(s)return;let n=setTimeout(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{clearTimeout(n),i=!0,t()})}(e,()=>{if(I){let t=eA(e,{doc:n,mirror:o,blockClass:a,blockSelector:l,needsMask:R,maskTextClass:h,maskTextSelector:u,skipChild:!1,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:w,recordCanvas:b,preserveWhiteSpace:E,onSerialize:S,onIframeLoad:v,iframeLoadTimeout:C,onStylesheetLoad:I,stylesheetLoadTimeout:x,keepIframeSrcFn:k});t&&I(e,t)}},x),T}var eR={exports:{}},eE=String,eN=function(){return{isColorSupported:!1,reset:eE,bold:eE,dim:eE,italic:eE,underline:eE,inverse:eE,hidden:eE,strikethrough:eE,black:eE,red:eE,green:eE,yellow:eE,blue:eE,magenta:eE,cyan:eE,white:eE,gray:eE,bgBlack:eE,bgRed:eE,bgGreen:eE,bgYellow:eE,bgBlue:eE,bgMagenta:eE,bgCyan:eE,bgWhite:eE}};eR.exports=eN(),eR.exports.createColors=eN;var eT=eR.exports;let eP=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),eD=class e extends Error{constructor(t,r,s,i,n,o){super(t),this.name="CssSyntaxError",this.reason=t,n&&(this.file=n),i&&(this.source=i),o&&(this.plugin=o),void 0!==r&&void 0!==s&&("number"==typeof r?(this.line=r,this.column=s):(this.line=r.line,this.column=r.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){let t,r;if(!this.source)return"";let s=this.source;null==e&&(e=eT.isColorSupported),eP&&e&&(s=eP(s));let i=s.split(/\r?\n/),n=Math.max(this.line-3,0),o=Math.min(this.line+2,i.length),a=String(o).length;if(e){let{bold:e,gray:s,red:i}=eT.createColors(!0);t=t=>e(i(t)),r=e=>s(e)}else t=r=e=>e;return i.slice(n,o).map((e,s)=>{let i=n+1+s,o=" "+(" "+i).slice(-a)+" | ";if(i===this.line){let s=r(o.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return t(">")+r(o)+e+"\n "+s+t("^")}return" "+r(o)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};eD.default=eD;var eL={};eL.isClean=Symbol("isClean"),eL.my=Symbol("my");let eF={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},e_=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:s&&(r+=" "),e.nodes)this.block(e,r+s);else{let i=(e.raws.between||"")+(t?";":"");this.builder(r+s+i,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let s=e.parent,i=0;for(;s&&"root"!==s.type;)i+=1,s=s.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<i;e++)r+=t}return r}block(e,t){let r,s=this.raw(e,"between","beforeOpen");this.builder(t+s+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let i=e.nodes[s],n=this.raw(i,"before");n&&this.builder(n),this.stringify(i,t!==s||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),s=e.prop+r+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)}document(e){this.body(e)}raw(e,t,r){let s;if(r||(r=t),t&&void 0!==(s=e.raws[t]))return s;let i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return eF[r];let n=e.root();if(n.rawCache||(n.rawCache={}),void 0!==n.rawCache[r])return n.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{var o;let i="raw"+((o=r)[0].toUpperCase()+o.slice(1));this[i]?s=this[i](n,e):n.walk(e=>{if(void 0!==(s=e.raws[t]))return!1})}return void 0===s&&(s=eF[r]),n.rawCache[r]=s,s}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t}rawIndent(e){let t;return e.raws.indent?e.raws.indent:(e.walk(r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=(t=e[e.length-1]).replace(/\S/g,""),!1}}),t)}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t}rawValue(e,t){let r=e[t],s=e.raws[t];return s&&s.value===r?s.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};function eB(e,t){new e_(t).stringify(e)}e_.default=e_,eB.default=eB;let{isClean:eU,my:ez}=eL,ej=class{constructor(e={}){for(let t in this.raws={},this[eU]=!1,this[ez]=!0,e)if("nodes"===t)for(let r of(this.nodes=[],e[t]))"function"==typeof r.clone?this.append(r.clone()):this.append(r);else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=function e(t,r){let s=new t.constructor;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i)||"proxyCache"===i)continue;let n=t[i],o=typeof n;"parent"===i&&"object"===o?r&&(s[i]=r):"source"===i?s[i]=n:Array.isArray(n)?s[i]=n.map(t=>e(t,s)):("object"===o&&null!==n&&(n=e(n)),s[i]=n)}return s}(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:r.column,line:r.line},t)}return new eD(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}markDirty(){if(this[eU]){this[eU]=!1;let e=this;for(;e=e.parent;)e[eU]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let s=(t=this.toString()).indexOf(e.word);-1!==s&&(r=this.positionInside(s,t))}return r}positionInside(e,t){let r=t||this.toString(),s=this.source.start.column,i=this.source.start.line;for(let t=0;t<e;t++)"\n"===r[t]?(s=1,i+=1):s+=1;return{column:s,line:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let s=this.toString(),i=s.indexOf(e.word);-1!==i&&(t=this.positionInside(i,s),r=this.positionInside(i+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new e_().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let s of e)s===this?r=!0:r?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);r||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let r={},s=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||"parent"===e||"proxyCache"===e)continue;let s=this[e];if(Array.isArray(s))r[e]=s.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof s&&s.toJSON)r[e]=s.toJSON(null,t);else if("source"===e){let n=t.get(s.input);null==n&&(n=i,t.set(s.input,i),i++),r[e]={end:s.end,inputId:n,start:s.start}}else r[e]=s}return s&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=eB){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let s={node:this};for(let e in r)s[e]=r[e];return e.warn(t,s)}get proxyOf(){return this}};ej.default=ej;let eW=ej,eV=class extends eW{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}};eV.default=eV;let{SourceMapConsumer:eG,SourceMapGenerator:eZ}=eP,{existsSync:eY,readFileSync:eJ}=eP,{dirname:eX,join:eH}=eP,eK=class{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,s=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=eX(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new eG(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),D.Buffer.from(t,"base64").toString()}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),s=e.indexOf("*/",r);r>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,s)))}loadFile(e){if(this.root=eX(e),eY(e))return this.mapFile=e,eJ(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw Error("Unable to load previous source map: "+r.toString());return e}}else if(t instanceof eG)return eZ.fromSourceMap(t).toString();else if(t instanceof eZ)return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let t=this.annotation;return e&&(t=eH(eX(e),t)),this.loadFile(t)}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};eK.default=eK;let{SourceMapConsumer:e$,SourceMapGenerator:eQ}=eP,{fileURLToPath:eq,pathToFileURL:e0}=eP,{isAbsolute:e1,resolve:e2}=eP,{nanoid:e3}={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let s="",i=r;for(;i--;)s+=e[Math.random()*e.length|0];return s}},e9=Symbol("fromOffsetCache"),e4=!!(e$&&eQ),e5=!!(e2&&e1),e6=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!e5||/^\w+:\/\//.test(t.from)||e1(t.from)?this.file=t.from:this.file=e2(t.from)),e5&&e4){let e=new eK(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+e3(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,s={}){let i,n,o;if(t&&"object"==typeof t){let e=t,s=r;if("number"==typeof e.offset){let s=this.fromOffset(e.offset);t=s.line,r=s.col}else t=e.line,r=e.column;if("number"==typeof s.offset){let e=this.fromOffset(s.offset);n=e.line,o=e.col}else n=s.line,o=s.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let a=this.origin(t,r,n,o);return(i=a?new eD(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,s.plugin):new eD(e,void 0===n?t:{column:r,line:t},void 0===n?r:{column:o,line:n},this.css,this.file,s.plugin)).input={column:r,endColumn:o,endLine:n,line:t,source:this.css},this.file&&(e0&&(i.input.url=e0(this.file).toString()),i.input.file=this.file),i}fromOffset(e){let t,r;if(this[e9])r=this[e9];else{let e=this.css.split("\n");r=Array(e.length);let t=0;for(let s=0,i=e.length;s<i;s++)r[s]=t,t+=e[s].length+1;this[e9]=r}t=r[r.length-1];let s=0;if(e>=t)s=r.length-1;else{let t,i=r.length-2;for(;s<i;)if(e<r[t=s+(i-s>>1)])i=t-1;else if(e>=r[t+1])s=t+1;else{s=t;break}}return{col:e-r[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:e2(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,s){let i,n;if(!this.map)return!1;let o=this.map.consumer(),a=o.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=o.originalPositionFor({column:s,line:r})),n=e1(a.source)?e0(a.source):new URL(a.source,this.map.consumer().sourceRoot||e0(this.map.mapFile));let l={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:n.toString()};if("file:"===n.protocol)if(eq)l.file=eq(n);else throw Error("file: protocol is not available in this PostCSS build");let h=o.sourceContentFor(a.source);return h&&(l.source=h),l}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};e6.default=e6,eP&&eP.registerInput&&eP.registerInput(e6);let{SourceMapConsumer:e8,SourceMapGenerator:e7}=eP,{dirname:te,relative:tt,resolve:tr,sep:ts}=eP,{pathToFileURL:ti}=eP,tn=!!(e8&&e7),to=!!(te&&tr&&tt&&ts),ta=class{constructor(e,t,r,s){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),s=e.root||te(e.file);!1===this.mapOpts.sourcesContent?(t=new e8(e.text)).sourcesContent&&(t.sourcesContent=null):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(s)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),to&&tn&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=e7.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new e7({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]}generateString(){let e,t;this.css="",this.map=new e7({file:this.outputFile(),ignoreInvalidMapping:!0});let r=1,s=1,i="<no source>",n={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,l)=>{if(this.css+=o,a&&"end"!==l&&(n.generated.line=r,n.generated.column=s-1,a.source&&a.source.start?(n.source=this.sourcePath(a),n.original.line=a.source.start.line,n.original.column=a.source.start.column-1):(n.source=i,n.original.line=1,n.original.column=0),this.map.addMapping(n)),(e=o.match(/\n/g))?(r+=e.length,t=o.lastIndexOf("\n"),s=o.length-t):s+=o.length,a&&"start"!==l){let e=a.parent||{raws:{}};(!("decl"===a.type||"atrule"===a.type&&!a.nodes)||a!==e.last||e.raws.semicolon)&&(a.source&&a.source.end?(n.source=this.sourcePath(a),n.original.line=a.source.end.line,n.original.column=a.source.end.column-1,n.generated.line=r,n.generated.column=s-2):(n.source=i,n.original.line=1,n.original.column=0,n.generated.line=r,n.generated.column=s-1),this.map.addMapping(n))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?te(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=te(tr(r,this.mapOpts.annotation)));let s=tt(r,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new e6(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let s=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return D.Buffer.from(e).toString("base64")}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(ti){let t=ti(e).toString();return this.memoizedFileURLs.set(e,t),t}throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===ts&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}},tl=ej,th=class extends tl{constructor(e){super(e),this.type="comment"}};th.default=th;let{isClean:tu,my:tc}=eL,tp=ej,td=class e extends tp{append(...e){for(let t of e)for(let e of this.normalize(t,this.last))this.proxyOf.nodes.push(e);return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){let t,r;if(!this.proxyOf.nodes)return;let s=this.getIterator();for(;this.indexes[s]<this.proxyOf.nodes.length&&(t=this.indexes[s],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[s]+=1;return delete this.indexes[s],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e));if("every"===t||"some"===t)return r=>e[t]((e,...t)=>r(e.toProxy(),...t));if("root"===t)return()=>e.root().toProxy();else if("nodes"===t)return e.nodes.map(e=>e.toProxy());else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:(e,t,r)=>e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,s=this.index(e),i=this.normalize(t,this.proxyOf.nodes[s]).reverse();for(let t of(s=this.index(e),i))this.proxyOf.nodes.splice(s+1,0,t);for(let e in this.indexes)s<(r=this.indexes[e])&&(this.indexes[e]=r+i.length);return this.markDirty(),this}insertBefore(e,t){let r,s=this.index(e),i=0===s&&"prepend",n=this.normalize(t,this.proxyOf.nodes[s],i).reverse();for(let t of(s=this.index(e),n))this.proxyOf.nodes.splice(s,0,t);for(let e in this.indexes)s<=(r=this.indexes[e])&&(this.indexes[e]=r+n.length);return this.markDirty(),this}normalize(t,r){if("string"==typeof t)t=function e(t){return t.map(t=>(t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t))}(s(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t))for(let e of t=t.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if("root"===t.type&&"document"!==this.type)for(let e of t=t.nodes.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new eV(t)]}else if(t.selector)t=[new i(t)];else if(t.name)t=[new n(t)];else if(t.text)t=[new th(t)];else throw Error("Unknown node type in node creation");return t.map(t=>(t[tc]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[tu]&&function e(t){if(t[tu]=!1,t.proxyOf.nodes)for(let r of t.proxyOf.nodes)e(r)}(t),void 0===t.raws.before&&r&&void 0!==r.raws.before&&(t.raws.before=r.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...e){for(let t of e=e.reverse()){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;for(let r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||(!t.fast||s.value.includes(t.fast))&&(s.value=s.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let s;try{s=e(t,r)}catch(e){throw t.addToError(e)}return!1!==s&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if("atrule"===r.type&&e.test(r.name))return t(r,s)}):this.walk((r,s)=>{if("atrule"===r.type&&r.name===e)return t(r,s)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if("decl"===r.type&&e.test(r.prop))return t(r,s)}):this.walk((r,s)=>{if("decl"===r.type&&r.prop===e)return t(r,s)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if("rule"===r.type&&e.test(r.selector))return t(r,s)}):this.walk((r,s)=>{if("rule"===r.type&&r.selector===e)return t(r,s)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};td.registerParse=e=>{s=e},td.registerRule=e=>{i=e},td.registerAtRule=e=>{n=e},td.registerRoot=e=>{o=e},td.default=td,td.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,n.prototype):"rule"===e.type?Object.setPrototypeOf(e,i.prototype):"decl"===e.type?Object.setPrototypeOf(e,eV.prototype):"comment"===e.type?Object.setPrototypeOf(e,th.prototype):"root"===e.type&&Object.setPrototypeOf(e,o.prototype),e[tc]=!0,e.nodes&&e.nodes.forEach(e=>{td.rebuild(e)})};let tf=td,tm=class extends tf{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new a(new l,this,e).stringify()}};tm.registerLazyResult=e=>{a=e},tm.registerProcessor=e=>{l=e},tm.default=tm;let tg=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};tg.default=tg;let ty=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new tg(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}};ty.default=ty;let tw=/[\t\n\f\r "#'()/;[\\\]{}]/g,tb=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,tS=/.[\r\n"'(/\\]/,tv=/[\da-f]/i,tC=td,tI=class extends tC{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};tI.default=tI,tC.registerAtRule(tI);let tx=td,tk=class extends tx{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let s=super.normalize(e);if(t){if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of s)e.raws.before=t.raws.before}return s}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new h(new u,this,e).stringify()}};tk.registerLazyResult=e=>{h=e},tk.registerProcessor=e=>{u=e},tk.default=tk,tx.registerRoot(tk);let tM={comma:e=>tM.split(e,[","],!0),space:e=>tM.split(e,[" ","\n"," "]),split(e,t,r){let s=[],i="",n=!1,o=0,a=!1,l="",h=!1;for(let r of e)h?h=!1:"\\"===r?h=!0:a?r===l&&(a=!1):'"'===r||"'"===r?(a=!0,l=r):"("===r?o+=1:")"===r?o>0&&(o-=1):0===o&&t.includes(r)&&(n=!0),n?(""!==i&&s.push(i.trim()),i="",n=!1):i+=r;return(r||""!==i)&&s.push(i.trim()),s}};tM.default=tM;let tO=td,tA=class extends tO{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return tM.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};tA.default=tA,tO.registerRule(tA);let tR=function(e,t={}){let r,s,i,n,o,a,l,h,u,c,p=e.css.valueOf(),d=t.ignoreErrors,f=p.length,m=0,g=[],y=[];function w(t){throw e.error("Unclosed "+t,m)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&m>=f},nextToken:function(e){if(y.length)return y.pop();if(m>=f)return;let t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(m)){case 10:case 32:case 9:case 13:case 12:s=m;do s+=1,r=p.charCodeAt(s);while(32===r||10===r||9===r||13===r||12===r)c=["space",p.slice(m,s)],m=s-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(r);c=[e,e,m];break}case 40:if(h=g.length?g.pop()[1]:"",u=p.charCodeAt(m+1),"url"===h&&39!==u&&34!==u&&32!==u&&10!==u&&9!==u&&12!==u&&13!==u){s=m;do{if(a=!1,-1===(s=p.indexOf(")",s+1)))if(d||t){s=m;break}else w("bracket");for(l=s;92===p.charCodeAt(l-1);)l-=1,a=!a}while(a)c=["brackets",p.slice(m,s+1),m,s],m=s}else s=p.indexOf(")",m+1),n=p.slice(m,s+1),-1===s||tS.test(n)?c=["(","(",m]:(c=["brackets",n,m,s],m=s);break;case 39:case 34:i=39===r?"'":'"',s=m;do{if(a=!1,-1===(s=p.indexOf(i,s+1)))if(d||t){s=m+1;break}else w("string");for(l=s;92===p.charCodeAt(l-1);)l-=1,a=!a}while(a)c=["string",p.slice(m,s+1),m,s],m=s;break;case 64:tw.lastIndex=m+1,tw.test(p),s=0===tw.lastIndex?p.length-1:tw.lastIndex-2,c=["at-word",p.slice(m,s+1),m,s],m=s;break;case 92:for(s=m,o=!0;92===p.charCodeAt(s+1);)s+=1,o=!o;if(r=p.charCodeAt(s+1),o&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(s+=1,tv.test(p.charAt(s)))){for(;tv.test(p.charAt(s+1));)s+=1;32===p.charCodeAt(s+1)&&(s+=1)}c=["word",p.slice(m,s+1),m,s],m=s;break;default:47===r&&42===p.charCodeAt(m+1)?(0===(s=p.indexOf("*/",m+2)+1)&&(d||t?s=p.length:w("comment")),c=["comment",p.slice(m,s+1),m,s]):(tb.lastIndex=m+1,tb.test(p),s=0===tb.lastIndex?p.length-1:tb.lastIndex-2,c=["word",p.slice(m,s+1),m,s],g.push(c)),m=s}return m++,c},position:function(){return m}}},tE={empty:!0,space:!0},tN=class{constructor(e){this.input=e,this.root=new tk,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,s,i=new tI;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let n=!1,o=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length)if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if("{"===t){o=!0;break}else if("}"===t){if(a.length>0){for(s=a.length-1,r=a[s];r&&"space"===r[0];)r=a[--s];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){n=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),n&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),o&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let t,r=this.colon(e);if(!1===r)return;let s=0;for(let i=r-1;i>=0&&("space"===(t=e[i])[0]||2!==(s+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}colon(e){let t,r,s=0;for(let[i,n]of e.entries()){if("("===(t=n[0])&&(s+=1),")"===t&&(s-=1),0===s&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return i;else this.doubleColon(n);r=n}return!1}comment(e){let t=new th;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=tR(this.input)}decl(e,t){let r,s,i=new eV;this.init(i,e[0][2]);let n=e[e.length-1];for(";"===n[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(n[3]||n[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],s=r[3]||r[2];if(s)return s}}(e)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(r=e.shift())[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let o=[];for(;e.length&&("space"===(s=e[0][0])||"comment"===s);)o.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if("!important"===(r=e[t])[1].toLowerCase()){i.important=!0;let r=this.stringFrom(e,t);" !important"!==(r=this.spacesFromEnd(e)+r)&&(i.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=e.slice(0),s="";for(let e=t;e>0;e--){let t=r[e][0];if(0===s.trim().indexOf("!")&&"space"!==t)break;s=r.pop()[1]+s}0===s.trim().indexOf("!")&&(i.important=!0,i.raws.important=s,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(i.raws.between+=o.map(e=>e[1]).join(""),o=[]),this.raw(i,"value",o.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new tA;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,s=!1,i=null,n=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)i||(i=l),n.push("("===r?")":"]");else if(o&&s&&"{"===r)i||(i=l),n.push("}");else if(0===n.length)if(";"===r)if(s)return void this.decl(a,o);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(s=!0);else r===n[n.length-1]&&(n.pop(),0===n.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),n.length>0&&this.unclosedBracket(i),t&&s){if(!o)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,s){let i,n,o,a,l=r.length,h="",u=!0;for(let e=0;e<l;e+=1)"space"!==(n=(i=r[e])[0])||e!==l-1||s?"comment"===n?(a=r[e-1]?r[e-1][0]:"empty",o=r[e+1]?r[e+1][0]:"empty",tE[a]||tE[o]||","===h.slice(-1)?u=!1:h+=i[1]):h+=i[1]:u=!1;if(!u){let s=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:s,value:h}}e[t]=h}rule(e){e.pop();let t=new tA;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t="";for(;e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}stringFrom(e,t){let r="";for(let s=t;s<e.length;s++)r+=e[s][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};function tT(e,t){let r=new tN(new e6(e,t));try{r.parse()}catch(e){throw e}return r.root}tT.default=tT,td.registerParse(tT);let{isClean:tP,my:tD}=eL,tL={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},tF={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},t_={Once:!0,postcssPlugin:!0,prepare:!0};function tB(e){return"object"==typeof e&&"function"==typeof e.then}function tU(e){let t=!1,r=tL[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function tz(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:tU(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function tj(e){return e[tP]=!1,e.nodes&&e.nodes.forEach(e=>tj(e)),e}let tW={},tV=class e{constructor(t,r,s){let i;if(this.stringified=!1,this.processed=!1,"object"==typeof r&&null!==r&&("root"===r.type||"document"===r.type))i=tj(r);else if(r instanceof e||r instanceof ty)i=tj(r.root),r.map&&(void 0===s.map&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=r.map);else{let e=tT;s.syntax&&(e=s.syntax.parse),s.parser&&(e=s.parser),e.parse&&(e=e.parse);try{i=e(r,s)}catch(e){this.processed=!0,this.error=e}i&&!i[tD]&&td.rebuild(i)}this.result=new ty(t,i,s),this.helpers={...tW,postcss:tW,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!tF[r]&&/^[A-Z]/.test(r))throw Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!t_[r])if("object"==typeof t[r])for(let s in t[r])e(t,"*"===s?r:r+"-"+s.toLowerCase(),t[r][s]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(tB(r))try{await r}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[tP];){e[tP]=!0;let t=[tz(e)];for(;t.length>0;){let e=this.visitTick(t);if(tB(e))try{await e}catch(r){let e=t[t.length-1].node;throw this.handleError(r,e)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map(e=>r(e,this.helpers));await Promise.all(t)}else await r(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));if(tB(t[0]))return Promise.all(t);return t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=eB;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new ta(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(tB(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[tP];)e[tP]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,s]of e){let e;this.result.lastPlugin=r;try{e=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(tB(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:s}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(s.length>0&&t.visitorIndex<s.length){let[e,i]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){let s,i=t.iterator;for(;s=r.nodes[r.indexes[i]];)if(r.indexes[i]+=1,!s[tP]){s[tP]=!0,e.push(tz(s));return}t.iterator=0,delete r.indexes[i]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,0===e){r.nodes&&r.nodes.length&&(r[tP]=!0,t.iterator=r.getIterator());return}if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){for(let t of(e[tP]=!0,tU(e)))if(0===t)e.nodes&&e.each(e=>{e[tP]||this.walkSync(e)});else{let r=this.listeners[t];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};tV.registerPostcss=e=>{tW=e},tV.default=tV,tk.registerLazyResult(tV),tm.registerLazyResult(tV);let tG=class{constructor(e,t,r){let s;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new ty(this._processor,s,this._opts),this.result.css=t;let i=this;Object.defineProperty(this.result,"root",{get:()=>i.root});let n=new ta(eB,s,this._opts,t);if(n.isMap()){let[e,t]=n.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else n.clearAnnotation(),this.result.css=n.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){let e;if(this._root)return this._root;try{e=tT(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}get[Symbol.toStringTag](){return"NoWorkResult"}};tG.default=tG;let tZ=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else if("object"==typeof r&&(r.parse||r.stringify));else throw Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new tV(this,e,t):new tG(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};function tY(e,t){if(Array.isArray(e))return e.map(e=>tY(e));let{inputs:r,...s}=e;if(r)for(let e of(t=[],r)){let r={...e,__proto__:e6.prototype};r.map&&(r.map={...r.map,__proto__:eK.prototype}),t.push(r)}if(s.nodes&&(s.nodes=e.nodes.map(e=>tY(e,t))),s.source){let{inputId:e,...r}=s.source;s.source=r,null!=e&&(s.source.input=t[e])}if("root"===s.type)return new tk(s);if("decl"===s.type)return new eV(s);if("rule"===s.type)return new tA(s);if("comment"===s.type)return new th(s);if("atrule"===s.type)return new tI(s);else throw Error("Unknown node type: "+e.type)}function tJ(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new tZ(e)}tZ.default=tZ,tk.registerProcessor(tZ),tm.registerProcessor(tZ),tY.default=tY,tJ.plugin=function(e,t){let r,s=!1;function i(...r){console&&console.warn&&!s&&(s=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),L.default.env.LANG&&L.default.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let n=t(...r);return n.postcssPlugin=e,n.postcssVersion=new tZ().version,n}return Object.defineProperty(i,"postcss",{get:()=>(r||(r=i()),r)}),i.process=function(e,t,r){return tJ([i(r)]).process(e,t)},i},tJ.stringify=eB,tJ.parse=tT,tJ.fromJSON=tY,tJ.list=tM,tJ.comment=e=>new th(e),tJ.atRule=e=>new tI(e),tJ.decl=e=>new eV(e),tJ.rule=e=>new tA(e),tJ.root=e=>new tk(e),tJ.document=e=>new tm(e),tJ.CssSyntaxError=eD,tJ.Declaration=eV,tJ.Container=td,tJ.Processor=tZ,tJ.Document=tm,tJ.Comment=th,tJ.Warning=tg,tJ.AtRule=tI,tJ.Result=ty,tJ.Input=e6,tJ.Rule=tA,tJ.Root=tk,tJ.Node=ej,tV.registerPostcss(tJ),tJ.default=tJ;let tX=tJ&&tJ.__esModule&&Object.prototype.hasOwnProperty.call(tJ,"default")?tJ.default:tJ;tX.stringify,tX.fromJSON,tX.plugin,tX.parse,tX.list,tX.document,tX.comment,tX.atRule,tX.rule,tX.decl,tX.root,tX.CssSyntaxError,tX.Declaration,tX.Container,tX.Processor,tX.Document,tX.Comment,tX.Warning,tX.AtRule,tX.Result,tX.Input,tX.Rule,tX.Root,tX.Node;var tH=Object.defineProperty,tK=(e,t,r)=>{let s;return(s="symbol"!=typeof t?t+"":t)in e?tH(e,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[s]=r},t$={exports:{}},tQ=String,tq=function(){return{isColorSupported:!1,reset:tQ,bold:tQ,dim:tQ,italic:tQ,underline:tQ,inverse:tQ,hidden:tQ,strikethrough:tQ,black:tQ,red:tQ,green:tQ,yellow:tQ,blue:tQ,magenta:tQ,cyan:tQ,white:tQ,gray:tQ,bgBlack:tQ,bgRed:tQ,bgGreen:tQ,bgYellow:tQ,bgBlue:tQ,bgMagenta:tQ,bgCyan:tQ,bgWhite:tQ}};t$.exports=tq(),t$.exports.createColors=tq;var t0=t$.exports;let t1=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),t2=class e extends Error{constructor(t,r,s,i,n,o){super(t),this.name="CssSyntaxError",this.reason=t,n&&(this.file=n),i&&(this.source=i),o&&(this.plugin=o),void 0!==r&&void 0!==s&&("number"==typeof r?(this.line=r,this.column=s):(this.line=r.line,this.column=r.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){let t,r;if(!this.source)return"";let s=this.source;null==e&&(e=t0.isColorSupported),t1&&e&&(s=t1(s));let i=s.split(/\r?\n/),n=Math.max(this.line-3,0),o=Math.min(this.line+2,i.length),a=String(o).length;if(e){let{bold:e,gray:s,red:i}=t0.createColors(!0);t=t=>e(i(t)),r=e=>s(e)}else t=r=e=>e;return i.slice(n,o).map((e,s)=>{let i=n+1+s,o=" "+(" "+i).slice(-a)+" | ";if(i===this.line){let s=r(o.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return t(">")+r(o)+e+"\n "+s+t("^")}return" "+r(o)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};t2.default=t2;var t3={};t3.isClean=Symbol("isClean"),t3.my=Symbol("my");let t9={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},t4=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:s&&(r+=" "),e.nodes)this.block(e,r+s);else{let i=(e.raws.between||"")+(t?";":"");this.builder(r+s+i,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let s=e.parent,i=0;for(;s&&"root"!==s.type;)i+=1,s=s.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<i;e++)r+=t}return r}block(e,t){let r,s=this.raw(e,"between","beforeOpen");this.builder(t+s+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let i=e.nodes[s],n=this.raw(i,"before");n&&this.builder(n),this.stringify(i,t!==s||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),s=e.prop+r+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)}document(e){this.body(e)}raw(e,t,r){let s;if(r||(r=t),t&&void 0!==(s=e.raws[t]))return s;let i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return t9[r];let n=e.root();if(n.rawCache||(n.rawCache={}),void 0!==n.rawCache[r])return n.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{var o;let i="raw"+((o=r)[0].toUpperCase()+o.slice(1));this[i]?s=this[i](n,e):n.walk(e=>{if(void 0!==(s=e.raws[t]))return!1})}return void 0===s&&(s=t9[r]),n.rawCache[r]=s,s}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t}rawIndent(e){let t;return e.raws.indent?e.raws.indent:(e.walk(r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=(t=e[e.length-1]).replace(/\S/g,""),!1}}),t)}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t}rawValue(e,t){let r=e[t],s=e.raws[t];return s&&s.value===r?s.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};function t5(e,t){new t4(t).stringify(e)}t4.default=t4,t5.default=t5;let{isClean:t6,my:t8}=t3,t7=class{constructor(e={}){for(let t in this.raws={},this[t6]=!1,this[t8]=!0,e)if("nodes"===t)for(let r of(this.nodes=[],e[t]))"function"==typeof r.clone?this.append(r.clone()):this.append(r);else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=function e(t,r){let s=new t.constructor;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i)||"proxyCache"===i)continue;let n=t[i],o=typeof n;"parent"===i&&"object"===o?r&&(s[i]=r):"source"===i?s[i]=n:Array.isArray(n)?s[i]=n.map(t=>e(t,s)):("object"===o&&null!==n&&(n=e(n)),s[i]=n)}return s}(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:r.column,line:r.line},t)}return new t2(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}markDirty(){if(this[t6]){this[t6]=!1;let e=this;for(;e=e.parent;)e[t6]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let s=(t=this.toString()).indexOf(e.word);-1!==s&&(r=this.positionInside(s,t))}return r}positionInside(e,t){let r=t||this.toString(),s=this.source.start.column,i=this.source.start.line;for(let t=0;t<e;t++)"\n"===r[t]?(s=1,i+=1):s+=1;return{column:s,line:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let s=this.toString(),i=s.indexOf(e.word);-1!==i&&(t=this.positionInside(i,s),r=this.positionInside(i+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new t4().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let s of e)s===this?r=!0:r?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);r||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let r={},s=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||"parent"===e||"proxyCache"===e)continue;let s=this[e];if(Array.isArray(s))r[e]=s.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof s&&s.toJSON)r[e]=s.toJSON(null,t);else if("source"===e){let n=t.get(s.input);null==n&&(n=i,t.set(s.input,i),i++),r[e]={end:s.end,inputId:n,start:s.start}}else r[e]=s}return s&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=t5){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let s={node:this};for(let e in r)s[e]=r[e];return e.warn(t,s)}get proxyOf(){return this}};t7.default=t7;let re=t7,rt=class extends re{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}};rt.default=rt;let{SourceMapConsumer:rr,SourceMapGenerator:rs}=t1,{existsSync:ri,readFileSync:rn}=t1,{dirname:ro,join:ra}=t1,rl=class{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,s=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ro(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new rr(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),D.Buffer.from(t,"base64").toString()}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),s=e.indexOf("*/",r);r>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,s)))}loadFile(e){if(this.root=ro(e),ri(e))return this.mapFile=e,rn(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw Error("Unable to load previous source map: "+r.toString());return e}}else if(t instanceof rr)return rs.fromSourceMap(t).toString();else if(t instanceof rs)return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let t=this.annotation;return e&&(t=ra(ro(e),t)),this.loadFile(t)}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};rl.default=rl;let{SourceMapConsumer:rh,SourceMapGenerator:ru}=t1,{fileURLToPath:rc,pathToFileURL:rp}=t1,{isAbsolute:rd,resolve:rf}=t1,{nanoid:rm}={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let s="",i=r;for(;i--;)s+=e[Math.random()*e.length|0];return s}},rg=Symbol("fromOffsetCache"),ry=!!(rh&&ru),rw=!!(rf&&rd),rb=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!rw||/^\w+:\/\//.test(t.from)||rd(t.from)?this.file=t.from:this.file=rf(t.from)),rw&&ry){let e=new rl(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+rm(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,s={}){let i,n,o;if(t&&"object"==typeof t){let e=t,s=r;if("number"==typeof e.offset){let s=this.fromOffset(e.offset);t=s.line,r=s.col}else t=e.line,r=e.column;if("number"==typeof s.offset){let e=this.fromOffset(s.offset);n=e.line,o=e.col}else n=s.line,o=s.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let a=this.origin(t,r,n,o);return(i=a?new t2(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,s.plugin):new t2(e,void 0===n?t:{column:r,line:t},void 0===n?r:{column:o,line:n},this.css,this.file,s.plugin)).input={column:r,endColumn:o,endLine:n,line:t,source:this.css},this.file&&(rp&&(i.input.url=rp(this.file).toString()),i.input.file=this.file),i}fromOffset(e){let t,r;if(this[rg])r=this[rg];else{let e=this.css.split("\n");r=Array(e.length);let t=0;for(let s=0,i=e.length;s<i;s++)r[s]=t,t+=e[s].length+1;this[rg]=r}t=r[r.length-1];let s=0;if(e>=t)s=r.length-1;else{let t,i=r.length-2;for(;s<i;)if(e<r[t=s+(i-s>>1)])i=t-1;else if(e>=r[t+1])s=t+1;else{s=t;break}}return{col:e-r[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:rf(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,s){let i,n;if(!this.map)return!1;let o=this.map.consumer(),a=o.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=o.originalPositionFor({column:s,line:r})),n=rd(a.source)?rp(a.source):new URL(a.source,this.map.consumer().sourceRoot||rp(this.map.mapFile));let l={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:n.toString()};if("file:"===n.protocol)if(rc)l.file=rc(n);else throw Error("file: protocol is not available in this PostCSS build");let h=o.sourceContentFor(a.source);return h&&(l.source=h),l}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};rb.default=rb,t1&&t1.registerInput&&t1.registerInput(rb);let{SourceMapConsumer:rS,SourceMapGenerator:rv}=t1,{dirname:rC,relative:rI,resolve:rx,sep:rk}=t1,{pathToFileURL:rM}=t1,rO=!!(rS&&rv),rA=!!(rC&&rx&&rI&&rk),rR=class{constructor(e,t,r,s){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),s=e.root||rC(e.file);!1===this.mapOpts.sourcesContent?(t=new rS(e.text)).sourcesContent&&(t.sourcesContent=null):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(s)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),rA&&rO&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=rv.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new rv({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]}generateString(){let e,t;this.css="",this.map=new rv({file:this.outputFile(),ignoreInvalidMapping:!0});let r=1,s=1,i="<no source>",n={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,l)=>{if(this.css+=o,a&&"end"!==l&&(n.generated.line=r,n.generated.column=s-1,a.source&&a.source.start?(n.source=this.sourcePath(a),n.original.line=a.source.start.line,n.original.column=a.source.start.column-1):(n.source=i,n.original.line=1,n.original.column=0),this.map.addMapping(n)),(e=o.match(/\n/g))?(r+=e.length,t=o.lastIndexOf("\n"),s=o.length-t):s+=o.length,a&&"start"!==l){let e=a.parent||{raws:{}};(!("decl"===a.type||"atrule"===a.type&&!a.nodes)||a!==e.last||e.raws.semicolon)&&(a.source&&a.source.end?(n.source=this.sourcePath(a),n.original.line=a.source.end.line,n.original.column=a.source.end.column-1,n.generated.line=r,n.generated.column=s-2):(n.source=i,n.original.line=1,n.original.column=0,n.generated.line=r,n.generated.column=s-1),this.map.addMapping(n))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?rC(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=rC(rx(r,this.mapOpts.annotation)));let s=rI(r,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new rb(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let s=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return D.Buffer.from(e).toString("base64")}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(rM){let t=rM(e).toString();return this.memoizedFileURLs.set(e,t),t}throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===rk&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}},rE=t7,rN=class extends rE{constructor(e){super(e),this.type="comment"}};rN.default=rN;let{isClean:rT,my:rP}=t3,rD=t7,rL=class e extends rD{append(...e){for(let t of e)for(let e of this.normalize(t,this.last))this.proxyOf.nodes.push(e);return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){let t,r;if(!this.proxyOf.nodes)return;let s=this.getIterator();for(;this.indexes[s]<this.proxyOf.nodes.length&&(t=this.indexes[s],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[s]+=1;return delete this.indexes[s],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e));if("every"===t||"some"===t)return r=>e[t]((e,...t)=>r(e.toProxy(),...t));if("root"===t)return()=>e.root().toProxy();else if("nodes"===t)return e.nodes.map(e=>e.toProxy());else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:(e,t,r)=>e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,s=this.index(e),i=this.normalize(t,this.proxyOf.nodes[s]).reverse();for(let t of(s=this.index(e),i))this.proxyOf.nodes.splice(s+1,0,t);for(let e in this.indexes)s<(r=this.indexes[e])&&(this.indexes[e]=r+i.length);return this.markDirty(),this}insertBefore(e,t){let r,s=this.index(e),i=0===s&&"prepend",n=this.normalize(t,this.proxyOf.nodes[s],i).reverse();for(let t of(s=this.index(e),n))this.proxyOf.nodes.splice(s,0,t);for(let e in this.indexes)s<=(r=this.indexes[e])&&(this.indexes[e]=r+n.length);return this.markDirty(),this}normalize(t,r){if("string"==typeof t)t=function e(t){return t.map(t=>(t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t))}(c(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t))for(let e of t=t.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if("root"===t.type&&"document"!==this.type)for(let e of t=t.nodes.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new rt(t)]}else if(t.selector)t=[new p(t)];else if(t.name)t=[new d(t)];else if(t.text)t=[new rN(t)];else throw Error("Unknown node type in node creation");return t.map(t=>(t[rP]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[rT]&&function e(t){if(t[rT]=!1,t.proxyOf.nodes)for(let r of t.proxyOf.nodes)e(r)}(t),void 0===t.raws.before&&r&&void 0!==r.raws.before&&(t.raws.before=r.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...e){for(let t of e=e.reverse()){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;for(let r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||(!t.fast||s.value.includes(t.fast))&&(s.value=s.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let s;try{s=e(t,r)}catch(e){throw t.addToError(e)}return!1!==s&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if("atrule"===r.type&&e.test(r.name))return t(r,s)}):this.walk((r,s)=>{if("atrule"===r.type&&r.name===e)return t(r,s)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if("decl"===r.type&&e.test(r.prop))return t(r,s)}):this.walk((r,s)=>{if("decl"===r.type&&r.prop===e)return t(r,s)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if("rule"===r.type&&e.test(r.selector))return t(r,s)}):this.walk((r,s)=>{if("rule"===r.type&&r.selector===e)return t(r,s)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};rL.registerParse=e=>{c=e},rL.registerRule=e=>{p=e},rL.registerAtRule=e=>{d=e},rL.registerRoot=e=>{f=e},rL.default=rL,rL.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,d.prototype):"rule"===e.type?Object.setPrototypeOf(e,p.prototype):"decl"===e.type?Object.setPrototypeOf(e,rt.prototype):"comment"===e.type?Object.setPrototypeOf(e,rN.prototype):"root"===e.type&&Object.setPrototypeOf(e,f.prototype),e[rP]=!0,e.nodes&&e.nodes.forEach(e=>{rL.rebuild(e)})};let rF=rL,r_=class extends rF{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new m(new g,this,e).stringify()}};r_.registerLazyResult=e=>{m=e},r_.registerProcessor=e=>{g=e},r_.default=r_;let rB=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};rB.default=rB;let rU=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new rB(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}};rU.default=rU;let rz=/[\t\n\f\r "#'()/;[\\\]{}]/g,rj=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,rW=/.[\r\n"'(/\\]/,rV=/[\da-f]/i,rG=rL,rZ=class extends rG{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};rZ.default=rZ,rG.registerAtRule(rZ);let rY=rL,rJ=class extends rY{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let s=super.normalize(e);if(t){if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of s)e.raws.before=t.raws.before}return s}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new y(new w,this,e).stringify()}};rJ.registerLazyResult=e=>{y=e},rJ.registerProcessor=e=>{w=e},rJ.default=rJ,rY.registerRoot(rJ);let rX={comma:e=>rX.split(e,[","],!0),space:e=>rX.split(e,[" ","\n"," "]),split(e,t,r){let s=[],i="",n=!1,o=0,a=!1,l="",h=!1;for(let r of e)h?h=!1:"\\"===r?h=!0:a?r===l&&(a=!1):'"'===r||"'"===r?(a=!0,l=r):"("===r?o+=1:")"===r?o>0&&(o-=1):0===o&&t.includes(r)&&(n=!0),n?(""!==i&&s.push(i.trim()),i="",n=!1):i+=r;return(r||""!==i)&&s.push(i.trim()),s}};rX.default=rX;let rH=rL,rK=class extends rH{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return rX.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};rK.default=rK,rH.registerRule(rK);let r$=function(e,t={}){let r,s,i,n,o,a,l,h,u,c,p=e.css.valueOf(),d=t.ignoreErrors,f=p.length,m=0,g=[],y=[];function w(t){throw e.error("Unclosed "+t,m)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&m>=f},nextToken:function(e){if(y.length)return y.pop();if(m>=f)return;let t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(m)){case 10:case 32:case 9:case 13:case 12:s=m;do s+=1,r=p.charCodeAt(s);while(32===r||10===r||9===r||13===r||12===r)c=["space",p.slice(m,s)],m=s-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(r);c=[e,e,m];break}case 40:if(h=g.length?g.pop()[1]:"",u=p.charCodeAt(m+1),"url"===h&&39!==u&&34!==u&&32!==u&&10!==u&&9!==u&&12!==u&&13!==u){s=m;do{if(a=!1,-1===(s=p.indexOf(")",s+1)))if(d||t){s=m;break}else w("bracket");for(l=s;92===p.charCodeAt(l-1);)l-=1,a=!a}while(a)c=["brackets",p.slice(m,s+1),m,s],m=s}else s=p.indexOf(")",m+1),n=p.slice(m,s+1),-1===s||rW.test(n)?c=["(","(",m]:(c=["brackets",n,m,s],m=s);break;case 39:case 34:i=39===r?"'":'"',s=m;do{if(a=!1,-1===(s=p.indexOf(i,s+1)))if(d||t){s=m+1;break}else w("string");for(l=s;92===p.charCodeAt(l-1);)l-=1,a=!a}while(a)c=["string",p.slice(m,s+1),m,s],m=s;break;case 64:rz.lastIndex=m+1,rz.test(p),s=0===rz.lastIndex?p.length-1:rz.lastIndex-2,c=["at-word",p.slice(m,s+1),m,s],m=s;break;case 92:for(s=m,o=!0;92===p.charCodeAt(s+1);)s+=1,o=!o;if(r=p.charCodeAt(s+1),o&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(s+=1,rV.test(p.charAt(s)))){for(;rV.test(p.charAt(s+1));)s+=1;32===p.charCodeAt(s+1)&&(s+=1)}c=["word",p.slice(m,s+1),m,s],m=s;break;default:47===r&&42===p.charCodeAt(m+1)?(0===(s=p.indexOf("*/",m+2)+1)&&(d||t?s=p.length:w("comment")),c=["comment",p.slice(m,s+1),m,s]):(rj.lastIndex=m+1,rj.test(p),s=0===rj.lastIndex?p.length-1:rj.lastIndex-2,c=["word",p.slice(m,s+1),m,s],g.push(c)),m=s}return m++,c},position:function(){return m}}},rQ={empty:!0,space:!0},rq=class{constructor(e){this.input=e,this.root=new rJ,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,s,i=new rZ;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let n=!1,o=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length)if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if("{"===t){o=!0;break}else if("}"===t){if(a.length>0){for(s=a.length-1,r=a[s];r&&"space"===r[0];)r=a[--s];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){n=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),n&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),o&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let t,r=this.colon(e);if(!1===r)return;let s=0;for(let i=r-1;i>=0&&("space"===(t=e[i])[0]||2!==(s+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}colon(e){let t,r,s=0;for(let[i,n]of e.entries()){if("("===(t=n[0])&&(s+=1),")"===t&&(s-=1),0===s&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return i;else this.doubleColon(n);r=n}return!1}comment(e){let t=new rN;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=r$(this.input)}decl(e,t){let r,s,i=new rt;this.init(i,e[0][2]);let n=e[e.length-1];for(";"===n[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(n[3]||n[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],s=r[3]||r[2];if(s)return s}}(e)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(r=e.shift())[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let o=[];for(;e.length&&("space"===(s=e[0][0])||"comment"===s);)o.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if("!important"===(r=e[t])[1].toLowerCase()){i.important=!0;let r=this.stringFrom(e,t);" !important"!==(r=this.spacesFromEnd(e)+r)&&(i.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=e.slice(0),s="";for(let e=t;e>0;e--){let t=r[e][0];if(0===s.trim().indexOf("!")&&"space"!==t)break;s=r.pop()[1]+s}0===s.trim().indexOf("!")&&(i.important=!0,i.raws.important=s,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(i.raws.between+=o.map(e=>e[1]).join(""),o=[]),this.raw(i,"value",o.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new rK;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,s=!1,i=null,n=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)i||(i=l),n.push("("===r?")":"]");else if(o&&s&&"{"===r)i||(i=l),n.push("}");else if(0===n.length)if(";"===r)if(s)return void this.decl(a,o);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(s=!0);else r===n[n.length-1]&&(n.pop(),0===n.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),n.length>0&&this.unclosedBracket(i),t&&s){if(!o)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,s){let i,n,o,a,l=r.length,h="",u=!0;for(let e=0;e<l;e+=1)"space"!==(n=(i=r[e])[0])||e!==l-1||s?"comment"===n?(a=r[e-1]?r[e-1][0]:"empty",o=r[e+1]?r[e+1][0]:"empty",rQ[a]||rQ[o]||","===h.slice(-1)?u=!1:h+=i[1]):h+=i[1]:u=!1;if(!u){let s=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:s,value:h}}e[t]=h}rule(e){e.pop();let t=new rK;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t="";for(;e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}stringFrom(e,t){let r="";for(let s=t;s<e.length;s++)r+=e[s][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};function r0(e,t){let r=new rq(new rb(e,t));try{r.parse()}catch(e){throw e}return r.root}r0.default=r0,rL.registerParse(r0);let{isClean:r1,my:r2}=t3,r3={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},r9={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},r4={Once:!0,postcssPlugin:!0,prepare:!0};function r5(e){return"object"==typeof e&&"function"==typeof e.then}function r6(e){let t=!1,r=r3[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function r8(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:r6(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function r7(e){return e[r1]=!1,e.nodes&&e.nodes.forEach(e=>r7(e)),e}let se={},st=class e{constructor(t,r,s){let i;if(this.stringified=!1,this.processed=!1,"object"==typeof r&&null!==r&&("root"===r.type||"document"===r.type))i=r7(r);else if(r instanceof e||r instanceof rU)i=r7(r.root),r.map&&(void 0===s.map&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=r.map);else{let e=r0;s.syntax&&(e=s.syntax.parse),s.parser&&(e=s.parser),e.parse&&(e=e.parse);try{i=e(r,s)}catch(e){this.processed=!0,this.error=e}i&&!i[r2]&&rL.rebuild(i)}this.result=new rU(t,i,s),this.helpers={...se,postcss:se,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!r9[r]&&/^[A-Z]/.test(r))throw Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!r4[r])if("object"==typeof t[r])for(let s in t[r])e(t,"*"===s?r:r+"-"+s.toLowerCase(),t[r][s]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(r5(r))try{await r}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[r1];){e[r1]=!0;let t=[r8(e)];for(;t.length>0;){let e=this.visitTick(t);if(r5(e))try{await e}catch(r){let e=t[t.length-1].node;throw this.handleError(r,e)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map(e=>r(e,this.helpers));await Promise.all(t)}else await r(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));if(r5(t[0]))return Promise.all(t);return t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=t5;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new rR(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(r5(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[r1];)e[r1]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,s]of e){let e;this.result.lastPlugin=r;try{e=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(r5(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:s}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(s.length>0&&t.visitorIndex<s.length){let[e,i]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){let s,i=t.iterator;for(;s=r.nodes[r.indexes[i]];)if(r.indexes[i]+=1,!s[r1]){s[r1]=!0,e.push(r8(s));return}t.iterator=0,delete r.indexes[i]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,0===e){r.nodes&&r.nodes.length&&(r[r1]=!0,t.iterator=r.getIterator());return}if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){for(let t of(e[r1]=!0,r6(e)))if(0===t)e.nodes&&e.each(e=>{e[r1]||this.walkSync(e)});else{let r=this.listeners[t];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};st.registerPostcss=e=>{se=e},st.default=st,rJ.registerLazyResult(st),r_.registerLazyResult(st);let sr=class{constructor(e,t,r){let s;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new rU(this._processor,s,this._opts),this.result.css=t;let i=this;Object.defineProperty(this.result,"root",{get:()=>i.root});let n=new rR(t5,s,this._opts,t);if(n.isMap()){let[e,t]=n.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else n.clearAnnotation(),this.result.css=n.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){let e;if(this._root)return this._root;try{e=r0(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}get[Symbol.toStringTag](){return"NoWorkResult"}};sr.default=sr;let ss=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else if("object"==typeof r&&(r.parse||r.stringify));else throw Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new st(this,e,t):new sr(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};function si(e,t){if(Array.isArray(e))return e.map(e=>si(e));let{inputs:r,...s}=e;if(r)for(let e of(t=[],r)){let r={...e,__proto__:rb.prototype};r.map&&(r.map={...r.map,__proto__:rl.prototype}),t.push(r)}if(s.nodes&&(s.nodes=e.nodes.map(e=>si(e,t))),s.source){let{inputId:e,...r}=s.source;s.source=r,null!=e&&(s.source.input=t[e])}if("root"===s.type)return new rJ(s);if("decl"===s.type)return new rt(s);if("rule"===s.type)return new rK(s);if("comment"===s.type)return new rN(s);if("atrule"===s.type)return new rZ(s);else throw Error("Unknown node type: "+e.type)}function sn(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new ss(e)}ss.default=ss,rJ.registerProcessor(ss),r_.registerProcessor(ss),si.default=si,sn.plugin=function(e,t){let r,s=!1;function i(...r){console&&console.warn&&!s&&(s=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),L.default.env.LANG&&L.default.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let n=t(...r);return n.postcssPlugin=e,n.postcssVersion=new ss().version,n}return Object.defineProperty(i,"postcss",{get:()=>(r||(r=i()),r)}),i.process=function(e,t,r){return sn([i(r)]).process(e,t)},i},sn.stringify=t5,sn.parse=r0,sn.fromJSON=si,sn.list=rX,sn.comment=e=>new rN(e),sn.atRule=e=>new rZ(e),sn.decl=e=>new rt(e),sn.rule=e=>new rK(e),sn.root=e=>new rJ(e),sn.document=e=>new r_(e),sn.CssSyntaxError=t2,sn.Declaration=rt,sn.Container=rL,sn.Processor=ss,sn.Document=r_,sn.Comment=rN,sn.Warning=rB,sn.AtRule=rZ,sn.Result=rU,sn.Input=rb,sn.Rule=rK,sn.Root=rJ,sn.Node=t7,st.registerPostcss(sn),sn.default=sn;let so=sn&&sn.__esModule&&Object.prototype.hasOwnProperty.call(sn,"default")?sn.default:sn;so.stringify,so.fromJSON,so.plugin,so.parse,so.list,so.document,so.comment,so.atRule,so.rule,so.decl,so.root,so.CssSyntaxError,so.Declaration,so.Container,so.Processor,so.Document,so.Comment,so.Warning,so.AtRule,so.Result,so.Input,so.Rule,so.Root,so.Node;class sa{constructor(...e){tK(this,"parentElement",null),tK(this,"parentNode",null),tK(this,"ownerDocument"),tK(this,"firstChild",null),tK(this,"lastChild",null),tK(this,"previousSibling",null),tK(this,"nextSibling",null),tK(this,"ELEMENT_NODE",1),tK(this,"TEXT_NODE",3),tK(this,"nodeType"),tK(this,"nodeName"),tK(this,"RRNodeType")}get childNodes(){let e=[],t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(!(e instanceof sa)||e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}let sl={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},sh={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},su={};function sc(e){var t,r;let s;if(su[e])return su[e];let i=((s=null==(r=null==(t=null==globalThis?void 0:globalThis.Zone)?void 0:t.__symbol__)?void 0:r.call(t,e))&&globalThis[s]?globalThis[s]:void 0)||globalThis[e],n=i.prototype,o=e in sl?sl[e]:void 0,a=!!(o&&o.every(e=>{var t,r;return!!(null==(r=null==(t=Object.getOwnPropertyDescriptor(n,e))?void 0:t.get)?void 0:r.toString().includes("[native code]"))})),l=e in sh?sh[e]:void 0,h=!!(l&&l.every(e=>{var t;return"function"==typeof n[e]&&(null==(t=n[e])?void 0:t.toString().includes("[native code]"))}));if(a&&h)return su[e]=i.prototype,i.prototype;try{let t=document.createElement("iframe");document.body.appendChild(t);let r=t.contentWindow;if(!r)return i.prototype;let s=r[e].prototype;if(document.body.removeChild(t),!s)return n;return su[e]=s}catch{return n}}let sp={};function sd(e,t,r){var s;let i=`${e}.${String(r)}`;if(sp[i])return sp[i].call(t);let n=null==(s=Object.getOwnPropertyDescriptor(sc(e),r))?void 0:s.get;return n?(sp[i]=n,n.call(t)):t[r]}let sf={};function sm(e,t,r){let s=`${e}.${String(r)}`;if(sf[s])return sf[s].bind(t);let i=sc(e)[r];return"function"!=typeof i?t[r]:(sf[s]=i,i.bind(t))}let sg=function(e){return sd("Node",e,"childNodes")},sy=function(e){return sd("Node",e,"parentNode")},sw=function(e){return sd("Node",e,"parentElement")},sb=function(e){return sd("Node",e,"textContent")},sS=function(e,t){return sm("Node",e,"contains")(t)},sv=function(e){return sm("Node",e,"getRootNode")()},sC=function(e){return e&&"host"in e?sd("ShadowRoot",e,"host"):null},sI=function(e){return e&&"shadowRoot"in e?sd("Element",e,"shadowRoot"):null};function sx(e,t,r=document){let s={capture:!0,passive:!0};return r.addEventListener(e,t,s),()=>r.removeEventListener(e,t,s)}let sk="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",sM={map:{},getId:()=>(console.error(sk),-1),getNode:()=>(console.error(sk),null),removeNodeFromMap(){console.error(sk)},has:()=>(console.error(sk),!1),reset(){console.error(sk)}};function sO(e,t,r={}){let s=null,i=0;return function(...n){let o=Date.now();i||!1!==r.leading||(i=o);let a=t-(o-i),l=this;a<=0||a>t?(s&&(clearTimeout(s),s=null),i=o,e.apply(l,n)):s||!1===r.trailing||(s=setTimeout(()=>{i=!1===r.leading?0:Date.now(),s=null,e.apply(l,n)},a))}}function sA(e,t,r,s,i=window){let n=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,s?r:{set(e){setTimeout(()=>{r.set.call(this,e)},0),n&&n.set&&n.set.call(this,e)}}),()=>sA(e,t,n||{},!0)}function sR(e,t,r){try{if(!(t in e))return()=>{};let s=e[t],i=r(s);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:s}})),e[t]=i,()=>{e[t]=s}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(sM=new Proxy(sM,{get:(e,t,r)=>("map"===t&&console.error(sk),Reflect.get(e,t,r))}));let sE=Date.now;function sN(e){var t,r,s,i;let n=e.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:n.documentElement.scrollLeft||(null==n?void 0:n.body)&&(null==(t=sw(n.body))?void 0:t.scrollLeft)||(null==(r=null==n?void 0:n.body)?void 0:r.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==n?void 0:n.documentElement.scrollTop)||(null==n?void 0:n.body)&&(null==(s=sw(n.body))?void 0:s.scrollTop)||(null==(i=null==n?void 0:n.body)?void 0:i.scrollTop)||0}}function sT(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function sP(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function sD(e){return e?e.nodeType===e.ELEMENT_NODE?e:sw(e):null}function sL(e,t,r,s){if(!e)return!1;let i=sD(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t)||s&&null!==i.closest("."+t))return!0}else if(ek(i,t,s))return!0}catch(e){}return!!(r&&(i.matches(r)||s&&null!==i.closest(r)))||!1}function sF(e,t,r){return"TITLE"===e.tagName&&!!r.headTitleMutations||-2===t.getId(e)}function s_(e){return!!e.changedTouches}function sB(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function sU(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function sz(e){return!!e&&(e instanceof sa&&"shadowRoot"in e?!!e.shadowRoot:!!sI(e))}/[1-9][0-9]{12}/.test(Date.now().toString())||(sE=()=>new Date().getTime());class sj{constructor(){_(this,"id",1),_(this,"styleIDMap",new WeakMap),_(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){let r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function sW(e){var t;let r=null;return"getRootNode"in e&&(null==(t=sv(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&sC(sv(e))&&(r=sC(sv(e))),r}function sV(e){var t;let r,s=e.ownerDocument;return!!s&&(sS(s,e)||!!(r=(t=e).ownerDocument)&&sS(r,function(e){let t,r=e;for(;t=sW(r);)r=t;return r}(t)))}var sG=((x=sG||{})[x.DomContentLoaded=0]="DomContentLoaded",x[x.Load=1]="Load",x[x.FullSnapshot=2]="FullSnapshot",x[x.IncrementalSnapshot=3]="IncrementalSnapshot",x[x.Meta=4]="Meta",x[x.Custom=5]="Custom",x[x.Plugin=6]="Plugin",x),sZ=((k=sZ||{})[k.Mutation=0]="Mutation",k[k.MouseMove=1]="MouseMove",k[k.MouseInteraction=2]="MouseInteraction",k[k.Scroll=3]="Scroll",k[k.ViewportResize=4]="ViewportResize",k[k.Input=5]="Input",k[k.TouchMove=6]="TouchMove",k[k.MediaInteraction=7]="MediaInteraction",k[k.StyleSheetRule=8]="StyleSheetRule",k[k.CanvasMutation=9]="CanvasMutation",k[k.Font=10]="Font",k[k.Log=11]="Log",k[k.Drag=12]="Drag",k[k.StyleDeclaration=13]="StyleDeclaration",k[k.Selection=14]="Selection",k[k.AdoptedStyleSheet=15]="AdoptedStyleSheet",k[k.CustomElement=16]="CustomElement",k),sY=((M=sY||{})[M.MouseUp=0]="MouseUp",M[M.MouseDown=1]="MouseDown",M[M.Click=2]="Click",M[M.ContextMenu=3]="ContextMenu",M[M.DblClick=4]="DblClick",M[M.Focus=5]="Focus",M[M.Blur=6]="Blur",M[M.TouchStart=7]="TouchStart",M[M.TouchMove_Departed=8]="TouchMove_Departed",M[M.TouchEnd=9]="TouchEnd",M[M.TouchCancel=10]="TouchCancel",M),sJ=((O=sJ||{})[O.Mouse=0]="Mouse",O[O.Pen=1]="Pen",O[O.Touch=2]="Touch",O),sX=((A=sX||{})[A["2D"]=0]="2D",A[A.WebGL=1]="WebGL",A[A.WebGL2=2]="WebGL2",A),sH=((R=sH||{})[R.Play=0]="Play",R[R.Pause=1]="Pause",R[R.Seeked=2]="Seeked",R[R.VolumeChange=3]="VolumeChange",R[R.RateChange=4]="RateChange",R),sK=((E=sK||{})[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);class s${constructor(){_(this,"length",0),_(this,"head",null),_(this,"tail",null)}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}let sQ=(e,t)=>`${e}@${t}`;class sq{constructor(){_(this,"frozen",!1),_(this,"locked",!1),_(this,"texts",[]),_(this,"attributes",[]),_(this,"attributeMap",new WeakMap),_(this,"removes",[]),_(this,"mapRemoves",[]),_(this,"movedMap",{}),_(this,"addedSet",new Set),_(this,"movedSet",new Set),_(this,"droppedSet",new Set),_(this,"removesSubTreeCache",new Set),_(this,"mutationCb"),_(this,"blockClass"),_(this,"blockSelector"),_(this,"maskTextClass"),_(this,"maskTextSelector"),_(this,"inlineStylesheet"),_(this,"maskInputOptions"),_(this,"maskTextFn"),_(this,"maskInputFn"),_(this,"keepIframeSrcFn"),_(this,"recordCanvas"),_(this,"inlineImages"),_(this,"slimDOMOptions"),_(this,"dataURLOptions"),_(this,"doc"),_(this,"mirror"),_(this,"iframeManager"),_(this,"stylesheetManager"),_(this,"shadowDomManager"),_(this,"canvasManager"),_(this,"processedNodeManager"),_(this,"unattachedDoc"),_(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),_(this,"emit",()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,r=new s$,s=e=>{let t=e,r=-2;for(;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},i=i=>{let n=sy(i);if(!n||!sV(i))return;let o=!1;if(i.nodeType===Node.TEXT_NODE){let e=n.tagName;if("TEXTAREA"===e)return;"STYLE"===e&&this.addedSet.has(n)&&(o=!0)}let a=q(n)?this.mirror.getId(sW(i)):this.mirror.getId(n),l=s(i);if(-1===a||-1===l)return r.addNode(i);let h=eA(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:e=>{sB(e,this.mirror)&&this.iframeManager.addIframe(e),sU(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),sz(i)&&this.shadowDomManager.addShadowRoot(sI(i),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},cssCaptured:o});h&&(e.push({parentId:a,nextId:l,node:h}),t.add(h.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!s1(this.removesSubTreeCache,e,this.mirror)||this.movedSet.has(sy(e)))&&i(e);for(let e of this.addedSet)s2(this.droppedSet,e)||s1(this.removesSubTreeCache,e,this.mirror)?s2(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let n=null;for(;r.length;){let e=null;if(n){let t=this.mirror.getId(sy(n.value)),r=s(n.value);-1!==t&&-1!==r&&(e=n)}if(!e){let t=r.tail;for(;t;){let r=t;if(t=t.previous,r){let t=this.mirror.getId(sy(r.value));if(-1===s(r.value))continue;if(-1!==t){e=r;break}{let t=sy(r.value);if(t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let s=sC(t);if(-1!==this.mirror.getId(s)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}n=e.previous,r.removeNode(e.value),i(e.value)}let o={texts:this.texts.map(e=>{let t=e.node,r=sy(t);return r&&"TEXTAREA"===r.tagName&&this.genTextAreaValueMutation(r),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let r=JSON.stringify(e.styleDiff),s=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+s).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(o))}),_(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t));let r=Array.from(sg(e),e=>sb(e)||"").join("");t.attributes.value=ei({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:ea(e),value:r,maskInputFn:this.maskInputFn})}),_(this,"processMutation",e=>{if(!sF(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{let t=sb(e.target);sL(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:eM(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,sD(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,r=e.attributeName,s=e.target.getAttribute(r);if("value"===r){let e=ea(t);s=ei({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:e,value:s,maskInputFn:this.maskInputFn})}if(sL(e.target,this.blockClass,this.blockSelector,!1)||s===e.oldValue)return;let i=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(s))if(t.contentDocument)return;else r="rr_src";if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!ex(t.tagName,r))if(i.attributes[r]=eI(this.doc,en(t.tagName),en(r),s),"style"===r){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let r=this.unattachedDoc.createElement("span");for(let s of(e.oldValue&&r.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(s),n=t.style.getPropertyPriority(s);e!==r.style.getPropertyValue(s)||n!==r.style.getPropertyPriority(s)?""===n?i.styleDiff[s]=e:i.styleDiff[s]=[e,n]:i._unchangedStyles[s]=[e,n]}for(let e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}else"open"===r&&"DIALOG"===t.tagName&&(t.matches("dialog:modal")?i.attributes.rr_open_mode="modal":i.attributes.rr_open_mode="non-modal");break}case"childList":if(sL(e.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===e.target.tagName)return void this.genTextAreaValueMutation(e.target);e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),s=q(e.target)?this.mirror.getId(sC(e.target)):this.mirror.getId(e.target);sL(e.target,this.blockClass,this.blockSelector,!1)||sF(t,this.mirror,this.slimDOMOptions)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(s0(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(q(t))return!1;let s=r.getId(t);if(!r.has(s))return!0;let i=sy(t);return(!i||i.nodeType!==t.DOCUMENT_NODE)&&(!i||e(i,r))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[sQ(r,s)]?s0(this.movedSet,t):(this.removes.push({parentId:s,id:r,isShadow:!!(q(e.target)&&ee(e.target))||void 0}),function(e,t){let r=[e];for(;r.length;){let e=r.pop();t.has(e)||(t.add(e),sg(e).forEach(e=>r.push(e)))}}(t,this.removesSubTreeCache))),this.mapRemoves.push(t))})}}),_(this,"genAdds",(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(sF(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[sQ(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!sL(e,this.blockClass,this.blockSelector,!1)&&(sg(e).forEach(e=>this.genAdds(e)),sz(e)&&sg(sI(e)).forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}})}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function s0(e,t){e.delete(t),sg(t).forEach(t=>s0(e,t))}function s1(e,t,r){var s;let i;return 0!==e.size&&(s=e,!!(i=sy(t))&&s.has(i))}function s2(e,t){return 0!==e.size&&function e(t,r){let s=sy(r);return!!s&&(!!t.has(s)||e(t,s))}(e,t)}let s3=e=>b?(...t)=>{try{return e(...t)}catch(e){if(b&&!0===b(e))return;throw e}}:e;function s9(e){return(...t)=>{try{return e(...t)}catch(e){try{e._external_=!0}catch{}throw e}}}let s4=[];function s5(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 s6(e,t){let r=new sq;s4.push(r),r.init(e);let s=new(sc("MutationObserver")).constructor(s3(r.processMutations.bind(r)));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function s8({scrollCb:e,doc:t,mirror:r,blockClass:s,blockSelector:i,sampling:n}){return sx("scroll",s3(sO(s3(n=>{let o=s5(n);if(!o||sL(o,s,i,!0))return;let a=r.getId(o);if(o===t&&t.defaultView){let r=sN(t.defaultView);e({id:a,x:r.left,y:r.top})}else e({id:a,x:o.scrollLeft,y:o.scrollTop})}),n.scroll||100)),t)}let s7=["INPUT","TEXTAREA","SELECT"],ie=new WeakMap;function it(e){var t=[];if(io("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||io("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||io("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||io("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){let r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}function ir(e,t,r){let s,i;return e?(e.ownerNode?s=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:s}):{}}function is({mirror:e,stylesheetManager:t},r){var s,i,n;let o=null;o="#document"===r.nodeName?e.getId(r):e.getId(sC(r));let a="#document"===r.nodeName?null==(s=r.defaultView)?void 0:s.Document:null==(n=null==(i=r.ownerDocument)?void 0:i.defaultView)?void 0:n.ShadowRoot,l=(null==a?void 0:a.prototype)?Object.getOwnPropertyDescriptor(null==a?void 0:a.prototype,"adoptedStyleSheets"):void 0;return null!==o&&-1!==o&&a&&l?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var e;return null==(e=l.get)?void 0:e.call(this)},set(e){var r;let s=null==(r=l.set)?void 0:r.call(this,e);if(null!==o&&-1!==o)try{t.adoptStyleSheets(e,o)}catch(e){}return s}}),s3(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})})):()=>{}}function ii(e,t={}){let r,s=e.doc.defaultView;if(!s)return()=>{};!function(e,t){let{mutationCb:r,mousemoveCb:s,mouseInteractionCb:i,scrollCb:n,viewportResizeCb:o,inputCb:a,mediaInteractionCb:l,styleSheetRuleCb:h,styleDeclarationCb:u,canvasMutationCb:c,fontCb:p,selectionCb:d,customElementCb:f}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),r(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),s(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),i(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),n(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),o(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),a(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),l(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),h(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),u(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),c(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),p(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),d(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),f(...e)}}(e,t),e.recordDOM&&(r=s6(e,e.doc));let i=function({mousemoveCb:e,sampling:t,doc:r,mirror:s}){let i;if(!1===t.mousemove)return()=>{};let n="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,a=[],l=sO(s3(t=>{let r=Date.now()-i;e(a.map(e=>(e.timeOffset-=r,e)),t),a=[],i=null}),o),h=s3(sO(s3(e=>{let t=s5(e),{clientX:r,clientY:n}=s_(e)?e.changedTouches[0]:e;i||(i=sE()),a.push({x:r,y:n,id:s.getId(t),timeOffset:sE()-i}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?sZ.Drag:e instanceof MouseEvent?sZ.MouseMove:sZ.TouchMove)}),n,{trailing:!1})),u=[sx("mousemove",h,r),sx("touchmove",h,r),sx("drag",h,r)];return s3(()=>{u.forEach(e=>e())})}(e),n=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:s,blockSelector:i,sampling:n}){if(!1===n.mouseInteraction)return()=>{};let o=!0===n.mouseInteraction||void 0===n.mouseInteraction?{}:n.mouseInteraction,a=[],l=null;return Object.keys(sY).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e]).forEach(n=>{let o=en(n),h=t=>{let o=s5(t);if(sL(o,s,i,!0))return;let a=null,h=n;if("pointerType"in t){switch(t.pointerType){case"mouse":a=sJ.Mouse;break;case"touch":a=sJ.Touch;break;case"pen":a=sJ.Pen}a===sJ.Touch?sY[n]===sY.MouseDown?h="TouchStart":sY[n]===sY.MouseUp&&(h="TouchEnd"):sJ.Pen}else s_(t)&&(a=sJ.Touch);null!==a?(l=a,(h.startsWith("Touch")&&a===sJ.Touch||h.startsWith("Mouse")&&a===sJ.Mouse)&&(a=null)):sY[n]===sY.Click&&(a=l,l=null);let u=s_(t)?t.changedTouches[0]:t;if(!u)return;let c=r.getId(o),{clientX:p,clientY:d}=u;s3(e)({type:sY[h],id:c,x:p,y:d,...null!==a&&{pointerType:a}})};if(window.PointerEvent)switch(sY[n]){case sY.MouseDown:case sY.MouseUp:o=o.replace("mouse","pointer");break;case sY.TouchStart:case sY.TouchEnd:return}a.push(sx(o,h,t))}),s3(()=>{a.forEach(e=>e())})}(e),o=s8(e),a=function({viewportResizeCb:e},{win:t}){let r=-1,s=-1;return sx("resize",s3(sO(s3(()=>{let t=sT(),i=sP();(r!==t||s!==i)&&(e({width:Number(i),height:Number(t)}),r=t,s=i)}),200)),t)}(e,{win:s}),l=function({inputCb:e,doc:t,mirror:r,blockClass:s,blockSelector:i,ignoreClass:n,ignoreSelector:o,maskInputOptions:a,maskInputFn:l,sampling:h,userTriggeredOnInput:u}){function c(e){let r=s5(e),h=e.isTrusted,c=r&&r.tagName;if(r&&"OPTION"===c&&(r=sw(r)),!r||!c||0>s7.indexOf(c)||sL(r,s,i,!0)||r.classList.contains(n)||o&&r.matches(o))return;let d=r.value,f=!1,m=ea(r)||"";"radio"===m||"checkbox"===m?f=r.checked:(a[c.toLowerCase()]||a[m])&&(d=ei({element:r,maskInputOptions:a,tagName:c,type:m,value:d,maskInputFn:l})),p(r,u?{text:d,isChecked:f,userTriggered:h}:{text:d,isChecked:f});let g=r.name;"radio"===m&&g&&f&&t.querySelectorAll(`input[type="radio"][name="${g}"]`).forEach(e=>{if(e!==r){let t=e.value;p(e,u?{text:t,isChecked:!f,userTriggered:!1}:{text:t,isChecked:!f})}})}function p(t,s){let i=ie.get(t);if(!i||i.text!==s.text||i.isChecked!==s.isChecked){ie.set(t,s);let i=r.getId(t);s3(e)({...s,id:i})}}let d=("last"===h.input?["change"]:["input","change"]).map(e=>sx(e,s3(c),t)),f=t.defaultView;if(!f)return()=>{d.forEach(e=>e())};let m=f.Object.getOwnPropertyDescriptor(f.HTMLInputElement.prototype,"value"),g=[[f.HTMLInputElement.prototype,"value"],[f.HTMLInputElement.prototype,"checked"],[f.HTMLSelectElement.prototype,"value"],[f.HTMLTextAreaElement.prototype,"value"],[f.HTMLSelectElement.prototype,"selectedIndex"],[f.HTMLOptionElement.prototype,"selected"]];return m&&m.set&&d.push(...g.map(e=>sA(e[0],e[1],{set(){s3(c)({target:this,isTrusted:!1})}},!1,f))),s3(()=>{d.forEach(e=>e())})}(e),h=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:s,sampling:i,doc:n}){let o=s3(n=>sO(s3(i=>{let o=s5(i);if(!o||sL(o,t,r,!0))return;let{currentTime:a,volume:l,muted:h,playbackRate:u,loop:c}=o;e({type:n,id:s.getId(o),currentTime:a,volume:l,muted:h,playbackRate:u,loop:c})}),i.media||500)),a=[sx("play",o(sH.Play),n),sx("pause",o(sH.Pause),n),sx("seeked",o(sH.Seeked),n),sx("volumechange",o(sH.VolumeChange),n),sx("ratechange",o(sH.RateChange),n)];return s3(()=>{a.forEach(e=>e())})}(e),u=()=>{},c=()=>{},p=()=>{},d=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:s}){let i,n;if(!s.CSSStyleSheet||!s.CSSStyleSheet.prototype)return()=>{};let o=s.CSSStyleSheet.prototype.insertRule;s.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:s3((s,i,n)=>{let[o,a]=n,{id:l,styleId:h}=ir(i,t,r.styleMirror);return(l&&-1!==l||h&&-1!==h)&&e({id:l,styleId:h,adds:[{rule:o,index:a}]}),s9(()=>s.apply(i,n))()})}),s.CSSStyleSheet.prototype.addRule=function(e,t,r=this.cssRules.length){let i=`${e} { ${t} }`;return s.CSSStyleSheet.prototype.insertRule.apply(this,[i,r])};let a=s.CSSStyleSheet.prototype.deleteRule;s.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:s3((s,i,n)=>{let[o]=n,{id:a,styleId:l}=ir(i,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:o}]}),s9(()=>s.apply(i,n))()})}),s.CSSStyleSheet.prototype.removeRule=function(e){return s.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},s.CSSStyleSheet.prototype.replace&&(i=s.CSSStyleSheet.prototype.replace,s.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:s3((s,i,n)=>{let[o]=n,{id:a,styleId:l}=ir(i,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replace:o}),s.apply(i,n)})})),s.CSSStyleSheet.prototype.replaceSync&&(n=s.CSSStyleSheet.prototype.replaceSync,s.CSSStyleSheet.prototype.replaceSync=new Proxy(n,{apply:s3((s,i,n)=>{let[o]=n,{id:a,styleId:l}=ir(i,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replaceSync:o}),s.apply(i,n)})}));let l={};ia("CSSGroupingRule")?l.CSSGroupingRule=s.CSSGroupingRule:(ia("CSSMediaRule")&&(l.CSSMediaRule=s.CSSMediaRule),ia("CSSConditionRule")&&(l.CSSConditionRule=s.CSSConditionRule),ia("CSSSupportsRule")&&(l.CSSSupportsRule=s.CSSSupportsRule));let h={};return Object.entries(l).forEach(([s,i])=>{h[s]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(h[s].insertRule,{apply:s3((s,i,n)=>{let[o,a]=n,{id:l,styleId:h}=ir(i.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||h&&-1!==h)&&e({id:l,styleId:h,adds:[{rule:o,index:[...it(i),a||0]}]}),s.apply(i,n)})}),i.prototype.deleteRule=new Proxy(h[s].deleteRule,{apply:s3((s,i,n)=>{let[o]=n,{id:a,styleId:l}=ir(i.parentStyleSheet,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:[...it(i),o]}]}),s.apply(i,n)})})}),s3(()=>{s.CSSStyleSheet.prototype.insertRule=o,s.CSSStyleSheet.prototype.deleteRule=a,i&&(s.CSSStyleSheet.prototype.replace=i),n&&(s.CSSStyleSheet.prototype.replaceSync=n),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=h[e].insertRule,t.prototype.deleteRule=h[e].deleteRule})})}(e,{win:s}),c=is(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:s},{win:i}){let n=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(n,{apply:s3((i,o,a)=>{var l;let[h,u,c]=a;if(r.has(h))return n.apply(o,[h,u,c]);let{id:p,styleId:d}=ir(null==(l=o.parentRule)?void 0:l.parentStyleSheet,t,s.styleMirror);return(p&&-1!==p||d&&-1!==d)&&e({id:p,styleId:d,set:{property:h,value:u,priority:c},index:it(o.parentRule)}),i.apply(o,a)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:s3((i,n,a)=>{var l;let[h]=a;if(r.has(h))return o.apply(n,[h]);let{id:u,styleId:c}=ir(null==(l=n.parentRule)?void 0:l.parentStyleSheet,t,s.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,remove:{property:h},index:it(n.parentRule)}),i.apply(n,a)})}),s3(()=>{i.CSSStyleDeclaration.prototype.setProperty=n,i.CSSStyleDeclaration.prototype.removeProperty=o})}(e,{win:s}),e.collectFonts&&(d=function({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let s=[],i=new WeakMap,n=r.FontFace;r.FontFace=function(e,t,r){let s=new n(e,t,r);return i.set(s,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),s};let o=sR(t.fonts,"add",function(t){return function(r){return setTimeout(s3(()=>{let t=i.get(r);t&&(e(t),i.delete(r))}),0),t.apply(this,[r])}});return s.push(()=>{r.FontFace=n}),s.push(o),s3(()=>{s.forEach(e=>e())})}(e)));let f=function(e){let{doc:t,mirror:r,blockClass:s,blockSelector:i,selectionCb:n}=e,o=!0,a=s3(()=>{let e=t.getSelection();if(!e||o&&(null==e?void 0:e.isCollapsed))return;o=e.isCollapsed||!1;let a=[],l=e.rangeCount||0;for(let t=0;t<l;t++){let{startContainer:n,startOffset:o,endContainer:l,endOffset:h}=e.getRangeAt(t);sL(n,s,i,!0)||sL(l,s,i,!0)||a.push({start:r.getId(n),startOffset:o,end:r.getId(l),endOffset:h})}n({ranges:a})});return a(),sx("selectionchange",a)}(e),m=function({doc:e,customElementCb:t}){let r=e.defaultView;return r&&r.customElements?sR(r.customElements,"define",function(e){return function(r,s,i){try{t({define:{name:r}})}catch(e){console.warn(`Custom element callback failed for ${r}`)}return e.apply(this,[r,s,i])}}):()=>{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,s,t.options));return s3(()=>{s4.forEach(e=>e.reset()),null==r||r.disconnect(),i(),n(),o(),a(),l(),h(),u(),c(),p(),d(),f(),m(),g.forEach(e=>e())})}function io(e){return void 0!==window[e]}function ia(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class il{constructor(e){_(this,"iframeIdToRemoteIdMap",new WeakMap),_(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,r,s){let i=r||this.getIdToRemoteIdMap(e),n=s||this.getRemoteIdToIdMap(e),o=i.get(t);return o||(o=this.generateIdFn(),i.set(t,o),n.set(o,t)),o}getIds(e,t){let r=this.getIdToRemoteIdMap(e),s=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,s))}getRemoteId(e,t,r){let s=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let i=s.get(t);return i||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class ih{constructor(e){_(this,"iframes",new WeakMap),_(this,"crossOriginIframeMap",new WeakMap),_(this,"crossOriginIframeMirror",new il(ey)),_(this,"crossOriginIframeStyleMirror"),_(this,"crossOriginIframeRootIdMap",new WeakMap),_(this,"mirror"),_(this,"mutationCb"),_(this,"wrappedEmit"),_(this,"loadListener"),_(this,"stylesheetManager"),_(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new il(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var r,s;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(s=this.loadListener)||s.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(e,t){var r;switch(t.type){case sG.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:sG.IncrementalSnapshot,data:{source:sZ.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case sG.Meta:case sG.Load:case sG.DomContentLoaded:break;case sG.Plugin:return t;case sG.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case sG.IncrementalSnapshot:switch(t.data.source){case sZ.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case sZ.Drag:case sZ.TouchMove:case sZ.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case sZ.ViewportResize:return!1;case sZ.MediaInteraction:case sZ.MouseInteraction:case sZ.Scroll:case sZ.CanvasMutation:case sZ.Input:return this.replaceIds(t.data,e,["id"]),t;case sZ.StyleSheetRule:case sZ.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case sZ.Font:return t;case sZ.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case sZ.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,s){for(let i of s)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(r,t[i]):t[i]=e.getId(r,t[i]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===sK.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class iu{constructor(e){_(this,"shadowDoms",new WeakSet),_(this,"mutationCb"),_(this,"scrollCb"),_(this,"bypassOptions"),_(this,"mirror"),_(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!ee(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);let r=s6({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(s8({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(sC(e))),this.restoreHandlers.push(is({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(sR(e.prototype,"attachShadow",function(e){return function(s){let i=e.call(this,s),n=sI(this);return n&&sV(this)&&r.addShadowRoot(n,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var ic="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ip="undefined"==typeof Uint8Array?[]:new Uint8Array(256),id=0;id<ic.length;id++)ip[ic.charCodeAt(id)]=id;var im=function(e){var t,r=new Uint8Array(e),s=r.length,i="";for(t=0;t<s;t+=3)i+=ic[r[t]>>2],i+=ic[(3&r[t])<<4|r[t+1]>>4],i+=ic[(15&r[t+1])<<2|r[t+2]>>6],i+=ic[63&r[t+2]];return s%3==2?i=i.substring(0,i.length-1)+"=":s%3==1&&(i=i.substring(0,i.length-2)+"=="),i};let ig=new Map,iy=(e,t,r)=>{let s;if(!e||!(ib(e,t)||"object"==typeof e))return;let i=e.constructor.name,n=((s=ig.get(r))||(s=new Map,ig.set(r,s)),s.has(i)||s.set(i,[]),s.get(i)),o=n.indexOf(e);return -1===o&&(o=n.length,n.push(e)),o},iw=(e,t,r)=>e.map(e=>(function e(t,r,s){if(t instanceof Array)return t.map(t=>e(t,r,s));if(null===t);else if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(t instanceof ArrayBuffer)return{rr_type:t.constructor.name,base64:im(t)};else if(t instanceof DataView)return{rr_type:t.constructor.name,args:[e(t.buffer,r,s),t.byteOffset,t.byteLength]};else if(t instanceof HTMLImageElement){let e=t.constructor.name,{src:r}=t;return{rr_type:e,src:r}}else if(t instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[e(t.data,r,s),t.width,t.height]};else if(ib(t,r)||"object"==typeof t)return{rr_type:t.constructor.name,index:iy(t,r,s)};return t})(e,t,r)),ib=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]).find(r=>e instanceof t[r]);function iS(e,t,r,s){let i=[];try{let n=sR(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i,...n){if(!sL(this,t,r,!0)){let e="experimental-webgl"===i?"webgl":i;if("__context"in this||(this.__context=e),s&&["webgl","webgl2"].includes(e))if(n[0]&&"object"==typeof n[0]){let e=n[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else n.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[i,...n])}});i.push(n)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(e=>e())}}function iv(e,t,r,s,i,n){let o=[];for(let a of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if("function"!=typeof e[a])continue;let l=sR(e,a,function(e){return function(...o){let l=e.apply(this,o);if(iy(l,n,this),"tagName"in this.canvas&&!sL(this.canvas,s,i,!0)){let e=iw(o,n,this),s={type:t,property:a,args:e};r(this.canvas,s)}return l}});o.push(l)}catch{let s=sA(e,a,{set(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});o.push(s)}return o}let iC="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",iI="undefined"!=typeof window&&window.Blob&&new Blob([Uint8Array.from(atob(iC),e=>e.charCodeAt(0))],{type:"text/javascript;charset=utf-8"});function ix(e){let t;try{if(!(t=iI&&(window.URL||window.webkitURL).createObjectURL(iI)))throw"";let r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(t){return new Worker("data:text/javascript;base64,"+iC,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}class ik{constructor(e){_(this,"pendingCanvasMutations",new Map),_(this,"rafStamps",{latestId:0,invokeId:null}),_(this,"mirror"),_(this,"mutationCb"),_(this,"resetObservers"),_(this,"frozen",!1),_(this,"locked",!1),_(this,"processMutation",(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)});const{sampling:t="all",win:r,blockClass:s,blockSelector:i,recordCanvas:n,dataURLOptions:o}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,n&&"all"===t&&this.initCanvasMutationObserver(r,s,i),n&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,s,i,{dataURLOptions:o})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,t,r,s,i){let n,o=iS(t,r,s,!0),a=new Map,l=new ix;l.onmessage=e=>{let{id:t}=e.data;if(a.set(t,!1),!("base64"in e.data))return;let{base64:r,type:s,width:i,height:n}=e.data;this.mutationCb({id:t,type:sX["2D"],commands:[{property:"clearRect",args:[0,0,i,n]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:s}]},0,0]}]})};let h=1e3/e,u=0,c=e=>{let o;if(u&&e-u<h){n=requestAnimationFrame(c);return}u=e,(o=[],t.document.querySelectorAll("canvas").forEach(e=>{sL(e,r,s,!0)||o.push(e)}),o).forEach(async e=>{var t;let r=this.mirror.getId(e);if(a.get(r)||0===e.width||0===e.height)return;if(a.set(r,!0),["webgl","webgl2"].includes(e.__context)){let r=e.getContext(e.__context);(null==(t=null==r?void 0:r.getContextAttributes())?void 0:t.preserveDrawingBuffer)===!1&&r.clear(r.COLOR_BUFFER_BIT)}let s=await createImageBitmap(e);l.postMessage({id:r,bitmap:s,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[s])}),n=requestAnimationFrame(c)};n=requestAnimationFrame(c),this.resetObservers=()=>{o(),cancelAnimationFrame(n)}}initCanvasMutationObserver(e,t,r){var s;let i;this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let n=iS(e,t,r,!1),o=function(e,t,r,s){let i=[];for(let n of Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype))try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[n])continue;let o=sR(t.CanvasRenderingContext2D.prototype,n,function(i){return function(...o){return sL(this.canvas,r,s,!0)||setTimeout(()=>{let r=iw(o,t,this);e(this.canvas,{type:sX["2D"],property:n,args:r})},0),i.apply(this,o)}});i.push(o)}catch{let r=sA(t.CanvasRenderingContext2D.prototype,n,{set(t){e(this.canvas,{type:sX["2D"],property:n,args:[t],setter:!0})}});i.push(r)}return()=>{i.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r),a=(s=this.processMutation.bind(this),(i=[]).push(...iv(e.WebGLRenderingContext.prototype,sX.WebGL,s,t,r,e)),void 0!==e.WebGL2RenderingContext&&i.push(...iv(e.WebGL2RenderingContext.prototype,sX.WebGL2,s,t,r,e)),()=>{i.forEach(e=>e())});this.resetObservers=()=>{n(),o(),a()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;let s=r.map(e=>{let{type:t,...r}=e;return r}),{type:i}=r[0];this.mutationCb({id:t,type:i,commands:s}),this.pendingCanvasMutations.delete(e)}}class iM{constructor(e){_(this,"trackedLinkElements",new WeakSet),_(this,"mutationCb"),_(this,"adoptedStyleSheetCb"),_(this,"styleMirror",new sj),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let r={id:t,styleIds:[]},s=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),s.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,r)=>({rule:er(e,t.href),index:r}))})),r.styleIds.push(e)}s.length>0&&(r.styles=s),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class iO{constructor(){_(this,"nodeMap",new WeakMap),_(this,"active",!1)}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let iA=!1;try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==(T=e.contentWindow)?void 0:T.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let iR=new es;function iE(e={}){let t,{emit:r,checkoutEveryNms:s,checkoutEveryNth:i,blockClass:n="rr-block",blockSelector:o=null,ignoreClass:a="rr-ignore",ignoreSelector:l=null,maskTextClass:h="rr-mask",maskTextSelector:u=null,inlineStylesheet:c=!0,maskAllInputs:p,maskInputOptions:d,slimDOMOptions:f,maskInputFn:m,maskTextFn:g,hooks:y,packFn:w,sampling:I={},dataURLOptions:x={},mousemoveWait:k,recordDOM:M=!0,recordCanvas:O=!1,recordCrossOriginIframes:A=!1,recordAfter:R="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:E=!1,collectFonts:N=!1,inlineImages:T=!1,plugins:P,keepIframeSrcFn:D=()=>!1,ignoreCSSAttributes:L=new Set([]),errorHandler:F,applyBackgroundColorToBlockedElements:_=!1}=e;b=F;let B=!A||window.parent===window,U=!1;if(!B)try{window.parent.document&&(U=!1)}catch(e){U=!0}if(B&&!r)throw Error("emit function is required");if(!B&&!U)return()=>{};void 0!==k&&void 0===I.mousemove&&(I.mousemove=k),iR.reset();let z=!0===p?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==d?d:{password:!0},j=!0===f||"all"===f?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===f,headMetaDescKeywords:"all"===f,headTitleMutations:"all"===f}:f||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}();let W=0,V=e=>{for(let t of P||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!U&&(e=w(e)),e};S=(e,n)=>{var o;if(e.timestamp=sE(),(null==(o=s4[0])?void 0:o.isFrozen())&&e.type!==sG.FullSnapshot&&(e.type!==sG.IncrementalSnapshot||e.data.source!==sZ.Mutation)&&s4.forEach(e=>e.unfreeze()),B)null==r||r(V(e),n);else if(U){let t={type:"rrweb",event:V(e),origin:window.location.origin,isCheckout:n};window.parent.postMessage(t,"*")}if(e.type===sG.FullSnapshot)t=e,W=0;else if(e.type===sG.IncrementalSnapshot){if(e.data.source===sZ.Mutation&&e.data.isAttachIframe)return;W++;let r=i&&W>=i,n=s&&e.timestamp-t.timestamp>s;(r||n)&&v(!0)}};let G=e=>{S({type:sG.IncrementalSnapshot,data:{source:sZ.Mutation,...e}})},Z=e=>S({type:sG.IncrementalSnapshot,data:{source:sZ.Scroll,...e}}),Y=e=>S({type:sG.IncrementalSnapshot,data:{source:sZ.CanvasMutation,...e}}),J=new iM({mutationCb:G,adoptedStyleSheetCb:e=>S({type:sG.IncrementalSnapshot,data:{source:sZ.AdoptedStyleSheet,...e}})}),X=new ih({mirror:iR,mutationCb:G,stylesheetManager:J,recordCrossOriginIframes:A,wrappedEmit:S});for(let e of P||[])e.getMirror&&e.getMirror({nodeMirror:iR,crossOriginIframeMirror:X.crossOriginIframeMirror,crossOriginIframeStyleMirror:X.crossOriginIframeStyleMirror});let H=new iO;C=new ik({recordCanvas:O,mutationCb:Y,win:window,blockClass:n,blockSelector:o,mirror:iR,sampling:I.canvas,dataURLOptions:x});let K=new iu({mutationCb:G,scrollCb:Z,bypassOptions:{blockClass:n,blockSelector:o,maskTextClass:h,maskTextSelector:u,inlineStylesheet:c,maskInputOptions:z,dataURLOptions:x,maskTextFn:g,maskInputFn:m,recordCanvas:O,inlineImages:T,sampling:I,slimDOMOptions:j,iframeManager:X,stylesheetManager:J,canvasManager:C,keepIframeSrcFn:D,processedNodeManager:H},mirror:iR});v=(e=!1)=>{if(!M)return;S({type:sG.Meta,data:{href:window.location.href,width:sP(),height:sT()}},e),J.reset(),K.init(),s4.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new es,blockClass:s="rr-block",blockSelector:i=null,maskTextClass:n="rr-mask",maskTextSelector:o=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:h=!1,maskAllInputs:u=!1,maskTextFn:c,maskInputFn:p,slimDOM:d=!1,dataURLOptions:f,preserveWhiteSpace:m,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:w,onStylesheetLoad:b,stylesheetLoadTimeout:S,keepIframeSrcFn:v=()=>!1,applyBackgroundColorToBlockedElements:C=!1}=t||{};return eA(e,{doc:e,mirror:r,blockClass:s,blockSelector:i,maskTextClass:n,maskTextSelector:o,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===u?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===u?{password:!0}:u,maskTextFn:c,maskInputFn:p,slimDOMOptions:!0===d||"all"===d?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===d,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===d?{}:d,dataURLOptions:f,inlineImages:l,recordCanvas:h,preserveWhiteSpace:m,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:w,onStylesheetLoad:b,stylesheetLoadTimeout:S,keepIframeSrcFn:v,newlyAddedElement:!1,applyBackgroundColorToBlockedElements:C})}(document,{mirror:iR,blockClass:n,blockSelector:o,maskTextClass:h,maskTextSelector:u,inlineStylesheet:c,maskAllInputs:z,maskTextFn:g,maskInputFn:m,slimDOM:j,dataURLOptions:x,recordCanvas:O,inlineImages:T,applyBackgroundColorToBlockedElements:_,onSerialize:e=>{sB(e,iR)&&X.addIframe(e),sU(e,iR)&&J.trackLinkElement(e),sz(e)&&K.addShadowRoot(sI(e),document)},onIframeLoad:(e,t)=>{X.attachIframe(e,t),K.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{J.attachLinkElement(e,t)},keepIframeSrcFn:D});if(!t)return console.warn("Failed to snapshot the document");S({type:sG.FullSnapshot,data:{node:t,initialOffset:sN(window)}},e),s4.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&J.adoptStyleSheets(document.adoptedStyleSheets,iR.getId(document))};try{let e=[],t=e=>{var t;return s3(ii)({mutationCb:G,mousemoveCb:(e,t)=>S({type:sG.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>S({type:sG.IncrementalSnapshot,data:{source:sZ.MouseInteraction,...e}}),scrollCb:Z,viewportResizeCb:e=>S({type:sG.IncrementalSnapshot,data:{source:sZ.ViewportResize,...e}}),inputCb:e=>S({type:sG.IncrementalSnapshot,data:{source:sZ.Input,...e}}),mediaInteractionCb:e=>S({type:sG.IncrementalSnapshot,data:{source:sZ.MediaInteraction,...e}}),styleSheetRuleCb:e=>S({type:sG.IncrementalSnapshot,data:{source:sZ.StyleSheetRule,...e}}),styleDeclarationCb:e=>S({type:sG.IncrementalSnapshot,data:{source:sZ.StyleDeclaration,...e}}),canvasMutationCb:Y,fontCb:e=>S({type:sG.IncrementalSnapshot,data:{source:sZ.Font,...e}}),selectionCb:e=>{S({type:sG.IncrementalSnapshot,data:{source:sZ.Selection,...e}})},customElementCb:e=>{S({type:sG.IncrementalSnapshot,data:{source:sZ.CustomElement,...e}})},blockClass:n,ignoreClass:a,ignoreSelector:l,maskTextClass:h,maskTextSelector:u,maskInputOptions:z,inlineStylesheet:c,sampling:I,recordDOM:M,recordCanvas:O,inlineImages:T,userTriggeredOnInput:E,collectFonts:N,doc:e,maskInputFn:m,maskTextFn:g,keepIframeSrcFn:D,blockSelector:o,slimDOMOptions:j,dataURLOptions:x,mirror:iR,iframeManager:X,stylesheetManager:J,shadowDomManager:K,processedNodeManager:H,canvasManager:C,ignoreCSSAttributes:L,plugins:(null==(t=null==P?void 0:P.filter(e=>e.observer))?void 0:t.map(e=>({observer:e.observer,options:e.options,callback:t=>S({type:sG.Plugin,data:{plugin:e.name,payload:t}})})))||[]},y)};X.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});let r=()=>{v(),e.push(t(document)),iA=!0};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(sx("DOMContentLoaded",()=>{S({type:sG.DomContentLoaded,data:{}}),"DOMContentLoaded"===R&&r()})),e.push(sx("load",()=>{S({type:sG.Load,data:{}}),"load"===R&&r()},window))),()=>{e.forEach(e=>e()),H.destroy(),iA=!1,b=void 0}}catch(e){console.warn(e)}}iE.addCustomEvent=(e,t)=>{if(!iA)throw Error("please add custom event after start recording");S({type:sG.Custom,data:{tag:e,payload:t}})},iE.freezePage=()=>{s4.forEach(e=>e.freeze())},iE.takeFullSnapshot=e=>{if(!iA)throw Error("please take full snapshot after start recording");v(e)},iE.mirror=iR,(N=P||(P={}))[N.NotStarted=0]="NotStarted",N[N.Running=1]="Running",N[N.Stopped=2]="Stopped",e.s(["record",()=>iE])}]);
@@ -0,0 +1,2 @@
1
+ @layer rdg{@layer Defaults,FocusSink,CheckboxInput,CheckboxIcon,CheckboxLabel,Cell,HeaderCell,SummaryCell,EditCell,Row,HeaderRow,SummaryRow,GroupedRow,Root;}@layer rdg.MeasuringCell{.mlln6zg7-0-0-beta-58{contain:strict;visibility:hidden;grid-row:1}}@layer rdg.Cell{.cj343x07-0-0-beta-58{border-inline-end:var(--rdg-border-width)solid var(--rdg-border-color);border-block-end:var(--rdg-border-width)solid var(--rdg-border-color);grid-row-start:var(--rdg-grid-row-start);background-color:inherit;white-space:nowrap;text-overflow:ellipsis;outline:none;align-content:center;padding-block:0;padding-inline:8px;position:relative;overflow:clip}.cj343x07-0-0-beta-58[aria-selected=true]{outline:var(--rdg-selection-width)solid var(--rdg-selection-color);outline-offset:calc(var(--rdg-selection-width)*-1)}}@layer rdg.Cell{.csofj7r7-0-0-beta-58{z-index:1;position:sticky}.csofj7r7-0-0-beta-58:nth-last-child(1 of .csofj7r7-0-0-beta-58){box-shadow:var(--rdg-cell-frozen-box-shadow)}}@layer rdg.DragHandle{.ch2wcw87-0-0-beta-58{--rdg-drag-handle-size:8px;z-index:0;cursor:move;inline-size:var(--rdg-drag-handle-size);block-size:var(--rdg-drag-handle-size);background-color:var(--rdg-selection-color);place-self:end}.ch2wcw87-0-0-beta-58:hover{--rdg-drag-handle-size:16px;border:2px solid var(--rdg-selection-color);background-color:var(--rdg-background-color)}}@layer rdg.DragHandle{.c1wvphzh7-0-0-beta-58{z-index:1;position:sticky}}@layer rdg.CheckboxInput{.c1bn88vv7-0-0-beta-58{block-size:20px;inline-size:20px;margin:auto;display:block}.c1bn88vv7-0-0-beta-58:focus-visible{outline:2px solid var(--rdg-checkbox-focus-color);outline-offset:-3px}.c1bn88vv7-0-0-beta-58:enabled{cursor:pointer}}@layer rdg.GroupCellContent{.g1s9ylgp7-0-0-beta-58{outline:none}}@layer rdg.GroupCellCaret{.cz54e4y7-0-0-beta-58{stroke:currentColor;stroke-width:1.5px;fill:#0000;vertical-align:middle;margin-inline-start:4px}.cz54e4y7-0-0-beta-58>path{transition:d .1s}}@layer rdg.SortableHeaderCell{.h44jtk67-0-0-beta-58{display:flex}}@layer rdg.SortableHeaderCellName{.hcgkhxz7-0-0-beta-58{text-overflow:ellipsis;flex-grow:1;overflow:clip}}@layer rdg.Cell{.c6ra8a37-0-0-beta-58{background-color:#ccf}}@layer rdg.EditCell{.cis5rrm7-0-0-beta-58{padding:0}}@layer rdg.HeaderCell{.c6l2wv17-0-0-beta-58{cursor:pointer}}@layer rdg.HeaderCell{.c1kqdw7y7-0-0-beta-58{touch-action:none}}@layer rdg.HeaderCell{.r1y6ywlx7-0-0-beta-58{cursor:col-resize;inline-size:10px;position:absolute;inset-block:0;inset-inline-end:0}}@layer rdg.HeaderCell{.c1bezg5o7-0-0-beta-58{background-color:var(--rdg-header-draggable-background-color)}}@layer rdg.HeaderCell{.c1vc96037-0-0-beta-58{background-color:var(--rdg-header-draggable-background-color)}}@layer rdg.HeaderCell{.d8rwc9w7-0-0-beta-58{outline-offset:-2px;border-radius:4px;outline:2px solid #008cff;width:fit-content}}@layer rdg.Row{.r1upfr807-0-0-beta-58{background-color:var(--rdg-background-color);display:contents}.r1upfr807-0-0-beta-58:hover{background-color:var(--rdg-row-hover-background-color)}.r1upfr807-0-0-beta-58[aria-selected=true]{background-color:var(--rdg-row-selected-background-color)}.r1upfr807-0-0-beta-58[aria-selected=true]:hover{background-color:var(--rdg-row-selected-hover-background-color)}}@layer rdg.FocusSink{.r190mhd37-0-0-beta-58{outline:2px solid var(--rdg-selection-color);outline-offset:-2px}}@layer rdg.FocusSink{.r139qu9m7-0-0-beta-58:before{content:"";border-inline-start:2px solid var(--rdg-selection-color);block-size:100%;display:inline-block;position:sticky;inset-inline-start:0}}@layer rdg.HeaderRow{.h10tskcx7-0-0-beta-58{background-color:var(--rdg-header-background-color);font-weight:700;display:contents}.h10tskcx7-0-0-beta-58>.cj343x07-0-0-beta-58{z-index:2;position:sticky}.h10tskcx7-0-0-beta-58>.csofj7r7-0-0-beta-58{z-index:3}}@layer rdg.SortIcon{.a3ejtar7-0-0-beta-58{fill:currentColor}.a3ejtar7-0-0-beta-58>path{transition:d .1s}}@layer rdg.Defaults{.rnvodz57-0-0-beta-58 *,.rnvodz57-0-0-beta-58 :before,.rnvodz57-0-0-beta-58 :after{box-sizing:inherit}}@layer rdg.Root{.rnvodz57-0-0-beta-58{--rdg-selection-width:2px;--rdg-selection-color:#67afe9;--rdg-font-size:14px;--rdg-cell-frozen-box-shadow:2px 0 5px -2px #8888884d;--rdg-border-width:1px;--rdg-summary-border-width:calc(var(--rdg-border-width)*2);--rdg-color:var(--lightningcss-light,#000)var(--lightningcss-dark,#ddd);--rdg-border-color:var(--lightningcss-light,#ddd)var(--lightningcss-dark,#444);--rdg-summary-border-color:var(--lightningcss-light,#aaa)var(--lightningcss-dark,#555);--rdg-background-color:var(--lightningcss-light,#fff)var(--lightningcss-dark,#212121);--rdg-header-background-color:var(--lightningcss-light,#f9f9f9)var(--lightningcss-dark,#1b1b1b);--rdg-header-draggable-background-color:var(--lightningcss-light,#e7e7e7)var(--lightningcss-dark,#2d2d2d);--rdg-row-hover-background-color:var(--lightningcss-light,#f5f5f5)var(--lightningcss-dark,#171717);--rdg-row-selected-background-color:var(--lightningcss-light,#dbecfa)var(--lightningcss-dark,#1a73bc);--rdg-row-selected-hover-background-color:var(--lightningcss-light,#c9e3f8)var(--lightningcss-dark,#1768ab);--rdg-checkbox-focus-color:#61b8ff}.rnvodz57-0-0-beta-58.rdg-dark{--rdg-color-scheme:dark}.rnvodz57-0-0-beta-58.rdg-light{--rdg-color-scheme:light}.rnvodz57-0-0-beta-58{color-scheme:var(--rdg-color-scheme,light dark)}.rnvodz57-0-0-beta-58:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){--rdg-cell-frozen-box-shadow:-2px 0 5px -2px #8888884d}.rnvodz57-0-0-beta-58{accent-color:var(--lightningcss-light,#005194)var(--lightningcss-dark,#94cfff);contain:content;content-visibility:auto;border:1px solid var(--rdg-border-color);box-sizing:border-box;background-color:var(--rdg-background-color);block-size:350px;color:var(--rdg-color);font-size:var(--rdg-font-size);display:grid;overflow:auto}.rnvodz57-0-0-beta-58:before{content:"";grid-area:1/1/-1/-1}.rnvodz57-0-0-beta-58>:nth-last-child(1 of .rdg-top-summary-row)>.cj343x07-0-0-beta-58{border-block-end:var(--rdg-summary-border-width)solid var(--rdg-summary-border-color)}.rnvodz57-0-0-beta-58>:nth-child(1 of .rdg-bottom-summary-row)>.cj343x07-0-0-beta-58{border-block-start:var(--rdg-summary-border-width)solid var(--rdg-summary-border-color)}}@layer rdg.Root{.vlqv91k7-0-0-beta-58{-webkit-user-select:none;user-select:none}.vlqv91k7-0-0-beta-58 .r1upfr807-0-0-beta-58{cursor:move}}@layer rdg.FocusSink{.f1lsfrzw7-0-0-beta-58{pointer-events:none;z-index:1;grid-column:1/-1}}@layer rdg.FocusSink{.f1cte0lg7-0-0-beta-58{z-index:3}}@layer rdg.SummaryCell{.s8wc6fl7-0-0-beta-58{inset-block-start:var(--rdg-summary-row-top);inset-block-end:var(--rdg-summary-row-bottom)}}@layer rdg.SummaryRow{.skuhp557-0-0-beta-58>.cj343x07-0-0-beta-58{position:sticky}}@layer rdg.SummaryRow{.tf8l5ub7-0-0-beta-58>.cj343x07-0-0-beta-58{z-index:2}.tf8l5ub7-0-0-beta-58>.csofj7r7-0-0-beta-58{z-index:3}}@layer rdg.GroupedRow{.g1yxluv37-0-0-beta-58:not([aria-selected=true]){background-color:var(--rdg-header-background-color)}:is(.g1yxluv37-0-0-beta-58>.cj343x07-0-0-beta-58:not(:last-child,.csofj7r7-0-0-beta-58),.g1yxluv37-0-0-beta-58>:nth-last-child(n+2 of .csofj7r7-0-0-beta-58)){border-inline-end:none}}@layer rdg.TextEditor{.t7vyx3i7-0-0-beta-58{appearance:none;box-sizing:border-box;vertical-align:top;block-size:100%;inline-size:100%;color:var(--rdg-color);background-color:var(--rdg-background-color);font-family:inherit;font-size:var(--rdg-font-size);border:2px solid #ccc;padding-block:0;padding-inline:6px}.t7vyx3i7-0-0-beta-58:focus{border-color:var(--rdg-selection-color);outline:none}.t7vyx3i7-0-0-beta-58::placeholder{color:#999;opacity:1}}
2
+ .index-column{color:gray;text-align:right}.diff-header-added{color:#fff;background-color:#15803d}.diff-cell-added{color:#000;background-color:#cefece}.diff-header-removed{color:#fff;background-color:#f43f5e}.diff-cell-removed,.diff-cell-modified{color:#000;background-color:#ffc5c5}.cell-show-context-menu{overflow:visible}.grid-header:hover .pin-icon,.grid-header:hover .key-icon{display:block}.rdg-cell{border-style:solid;border-width:0 1px 1px 0;border-color:var(--rdg-border-color)}.rdg-cell[role=columnheader]{background-color:#f5f5f5}.rdg-row:hover .row-context-menu{visibility:visible;width:auto}