libre-webui 0.44.0 → 0.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/backend/dist/index.d.ts.map +1 -1
  2. package/backend/dist/index.js +2 -0
  3. package/backend/dist/index.js.map +1 -1
  4. package/backend/dist/routes/chat.d.ts.map +1 -1
  5. package/backend/dist/routes/chat.js +10 -2
  6. package/backend/dist/routes/chat.js.map +1 -1
  7. package/backend/dist/routes/decisions.d.ts +3 -0
  8. package/backend/dist/routes/decisions.d.ts.map +1 -0
  9. package/backend/dist/routes/decisions.js +148 -0
  10. package/backend/dist/routes/decisions.js.map +1 -0
  11. package/backend/dist/services/agentCliService.d.ts.map +1 -1
  12. package/backend/dist/services/agentCliService.js +2 -0
  13. package/backend/dist/services/agentCliService.js.map +1 -1
  14. package/backend/dist/services/apiTokenService.d.ts.map +1 -1
  15. package/backend/dist/services/apiTokenService.js +2 -0
  16. package/backend/dist/services/apiTokenService.js.map +1 -1
  17. package/backend/dist/services/authorizationService.d.ts +1 -1
  18. package/backend/dist/services/authorizationService.d.ts.map +1 -1
  19. package/backend/dist/services/authorizationService.js +8 -1
  20. package/backend/dist/services/authorizationService.js.map +1 -1
  21. package/backend/dist/services/chatGenerationService.d.ts +24 -2
  22. package/backend/dist/services/chatGenerationService.d.ts.map +1 -1
  23. package/backend/dist/services/chatGenerationService.js +72 -4
  24. package/backend/dist/services/chatGenerationService.js.map +1 -1
  25. package/backend/dist/services/chatRequestService.d.ts +11 -3
  26. package/backend/dist/services/chatRequestService.d.ts.map +1 -1
  27. package/backend/dist/services/chatRequestService.js +19 -3
  28. package/backend/dist/services/chatRequestService.js.map +1 -1
  29. package/backend/dist/services/contextCompactionService.d.ts.map +1 -1
  30. package/backend/dist/services/contextCompactionService.js +8 -0
  31. package/backend/dist/services/contextCompactionService.js.map +1 -1
  32. package/backend/dist/services/decisionAccessService.d.ts +16 -0
  33. package/backend/dist/services/decisionAccessService.d.ts.map +1 -0
  34. package/backend/dist/services/decisionAccessService.js +71 -0
  35. package/backend/dist/services/decisionAccessService.js.map +1 -0
  36. package/backend/dist/services/decisionService.d.ts +128 -0
  37. package/backend/dist/services/decisionService.d.ts.map +1 -0
  38. package/backend/dist/services/decisionService.js +515 -0
  39. package/backend/dist/services/decisionService.js.map +1 -0
  40. package/backend/dist/services/durableChatGenerationService.d.ts.map +1 -1
  41. package/backend/dist/services/durableChatGenerationService.js +13 -2
  42. package/backend/dist/services/durableChatGenerationService.js.map +1 -1
  43. package/backend/dist/services/ollamaService.d.ts +6 -0
  44. package/backend/dist/services/ollamaService.d.ts.map +1 -1
  45. package/backend/dist/services/ollamaService.js +13 -0
  46. package/backend/dist/services/ollamaService.js.map +1 -1
  47. package/backend/dist/types/index.d.ts +38 -1
  48. package/backend/dist/types/index.d.ts.map +1 -1
  49. package/backend/dist/types/index.js.map +1 -1
  50. package/backend/dist/utils/decisionProtocol.d.ts +164 -0
  51. package/backend/dist/utils/decisionProtocol.d.ts.map +1 -0
  52. package/backend/dist/utils/decisionProtocol.js +755 -0
  53. package/backend/dist/utils/decisionProtocol.js.map +1 -0
  54. package/backend/dist/utils/ollamaLibrary.d.ts.map +1 -1
  55. package/backend/dist/utils/ollamaLibrary.js +26 -7
  56. package/backend/dist/utils/ollamaLibrary.js.map +1 -1
  57. package/backend/dist/utils/pluginChatAdapter.d.ts.map +1 -1
  58. package/backend/dist/utils/pluginChatAdapter.js +31 -9
  59. package/backend/dist/utils/pluginChatAdapter.js.map +1 -1
  60. package/backend/dist/utils/pluginDefinitionTrust.d.ts.map +1 -1
  61. package/backend/dist/utils/pluginDefinitionTrust.js +53 -9
  62. package/backend/dist/utils/pluginDefinitionTrust.js.map +1 -1
  63. package/backend/dist/utils/pluginModelCatalog.d.ts +4 -2
  64. package/backend/dist/utils/pluginModelCatalog.d.ts.map +1 -1
  65. package/backend/dist/utils/pluginModelCatalog.js +12 -2
  66. package/backend/dist/utils/pluginModelCatalog.js.map +1 -1
  67. package/backend/dist/websocketServer.d.ts.map +1 -1
  68. package/backend/dist/websocketServer.js +23 -6
  69. package/backend/dist/websocketServer.js.map +1 -1
  70. package/backend/package.json +2 -2
  71. package/frontend/dist/artifact-runtime/.build-fingerprint +1 -1
  72. package/frontend/dist/artifact-runtime/babel.js +172 -172
  73. package/frontend/dist/artifact-runtime/framer-motion.js +2 -2
  74. package/frontend/dist/artifact-runtime/lucide-react.js +1 -1
  75. package/frontend/dist/artifact-runtime/papaparse.js +2 -2
  76. package/frontend/dist/artifact-runtime/plotly.js +5 -5
  77. package/frontend/dist/artifact-runtime/tailwind.js +16 -16
  78. package/frontend/dist/assets/index-C2A5Ko4-.js +59 -0
  79. package/frontend/dist/assets/index-FrFgrp5E.css +2 -0
  80. package/frontend/dist/index.html +28 -28
  81. package/frontend/dist/js/{ArtifactContainer-C7EEweSP.js → ArtifactContainer-DCCcjK16.js} +1 -1
  82. package/frontend/dist/js/{ArtifactDemoPage-B3yjn6Dw.js → ArtifactDemoPage-C-1acgxJ.js} +1 -1
  83. package/frontend/dist/js/{ArtifactSandboxFrame-DGC1hgTq.js → ArtifactSandboxFrame-BXWNhmtI.js} +1 -1
  84. package/frontend/dist/js/{ArtifactSlideOutPanel-xamxqotB.js → ArtifactSlideOutPanel-CvfdP_o2.js} +1 -1
  85. package/frontend/dist/js/{AutomationModal-Dj0E2mSl.js → AutomationModal-D7qiRMhj.js} +1 -1
  86. package/frontend/dist/js/{AutomationsPage-MTqU8Ap9.js → AutomationsPage-v98Ucl9p.js} +1 -1
  87. package/frontend/dist/js/{AvatarUpload-CrNLFoIi.js → AvatarUpload-W41SCHKE.js} +1 -1
  88. package/frontend/dist/js/{Button-BGE6ZJv5.js → Button-D6d7HYoa.js} +1 -1
  89. package/frontend/dist/js/{CalendarPage-BciFDr0S.js → CalendarPage-DkAa61Pa.js} +1 -1
  90. package/frontend/dist/js/ChannelsPage-0Vnfpgdr.js +1 -0
  91. package/frontend/dist/js/ChatPage-iyMY-uoE.js +14 -0
  92. package/frontend/dist/js/{ConnectModels-BPwpeVsJ.js → ConnectModels-CpWO6ALS.js} +1 -1
  93. package/frontend/dist/js/{EvaluationsPage-CT7EAYaj.js → EvaluationsPage-C7WHA1MJ.js} +1 -1
  94. package/frontend/dist/js/{FirstTimeSetup-BXkaFkvk.js → FirstTimeSetup-B8wcelBc.js} +1 -1
  95. package/frontend/dist/js/{GalleryPage-BPUY12kj.js → GalleryPage-u7dYKl3q.js} +1 -1
  96. package/frontend/dist/js/{HomePage-16KFuUir.js → HomePage-Cjlt3b9n.js} +1 -1
  97. package/frontend/dist/js/{LanguageSwitcher-MlITAZf6.js → LanguageSwitcher-gbTZY15P.js} +1 -1
  98. package/frontend/dist/js/{Logo-GlNrhpKp.js → Logo-DhV6D_3q.js} +1 -1
  99. package/frontend/dist/js/{LogoMark-rgOHhWo-.js → LogoMark-CmF1lHXT.js} +1 -1
  100. package/frontend/dist/js/{ModelManagerModals-inYMmqa4.js → ModelManagerModals-12hL-b-U.js} +1 -1
  101. package/frontend/dist/js/{NotesPage-kYFIBBCu.js → NotesPage-BQWBA5li.js} +2 -2
  102. package/frontend/dist/js/{PasswordStrengthMeter-ppDWQU9P.js → PasswordStrengthMeter-DdqX0FXA.js} +1 -1
  103. package/frontend/dist/js/PersonasPage-B8mFdWcX.js +13 -0
  104. package/frontend/dist/js/{PluginUsagePage-DQvsXxpI.js → PluginUsagePage-Uz6aHPIp.js} +1 -1
  105. package/frontend/dist/js/{RichMessageContent-BW9UvzYw.js → RichMessageContent-CVk-fp0N.js} +1 -1
  106. package/frontend/dist/js/{RichMessageContent-BraVuu1Q.js → RichMessageContent-DwMoWuR_.js} +1 -1
  107. package/frontend/dist/js/SettingsModal-CfjxNSmJ.js +19 -0
  108. package/frontend/dist/js/{SettingsToggle-BT6cbOnw.js → SettingsToggle-CNUeo6DO.js} +1 -1
  109. package/frontend/dist/js/{ShareDialog-CmgHPnKg.js → ShareDialog-NwirTDLR.js} +1 -1
  110. package/frontend/dist/js/{StrandsPage-Dg55juWQ.js → StrandsPage-ddHNdb6J.js} +1 -1
  111. package/frontend/dist/js/{SystemPage-PZhbWJCh.js → SystemPage-C_1exwI7.js} +1 -1
  112. package/frontend/dist/js/UserManagementPanel-hg7ztEtL.js +1 -0
  113. package/frontend/dist/js/{WhatsNewModal-DunfwUe9.js → WhatsNewModal-yYk7N4KY.js} +1 -1
  114. package/frontend/dist/js/WorkPage-i7yYRAuj.js +7 -0
  115. package/frontend/dist/js/api-BU13N8gU.js +1 -0
  116. package/frontend/dist/js/{api-DG2AKSTU.js → api-Dasm8tVY.js} +1 -1
  117. package/frontend/dist/js/{appNavigation-DXonlffV.js → appNavigation-DqP7fTWU.js} +1 -1
  118. package/frontend/dist/js/{appStore-DMmgXb-0.js → appStore-DCIUnT8X.js} +2 -2
  119. package/frontend/dist/js/appVersion-PJGaVilS.js +1 -0
  120. package/frontend/dist/js/ar-CsCftCVF.js +2 -0
  121. package/frontend/dist/js/authStore-Bp17zKvS.js +1 -0
  122. package/frontend/dist/js/{authStore-C89vePrB.js → authStore-ac5-hjOH.js} +3 -3
  123. package/frontend/dist/js/babel-C4LPTjCL.js +16 -0
  124. package/frontend/dist/js/bn-CvxUTZ9a.js +2 -0
  125. package/frontend/dist/js/chatStore-GhucyjJu.js +3 -0
  126. package/frontend/dist/js/{client-D05vqJPO.js → client-DxPoTB_C.js} +2 -2
  127. package/frontend/dist/js/{config-DCQ2-rvE.js → config-CQJEcQtz.js} +1 -1
  128. package/frontend/dist/js/cs-BovmMwcD.js +2 -0
  129. package/frontend/dist/js/da-Dof1gmsv.js +2 -0
  130. package/frontend/dist/js/de-CF9CXojW.js +2 -0
  131. package/frontend/dist/js/decisionsApi-BWB64EGn.js +1 -0
  132. package/frontend/dist/js/decisionsApi-CoJtg4PZ.js +1 -0
  133. package/frontend/dist/js/es-BXCt50HZ.js +2 -0
  134. package/frontend/dist/js/estree-DCoUd_wj.js +44 -0
  135. package/frontend/dist/js/{evaluationsApi-oCNxDBZ4.js → evaluationsApi-CBqKkjmI.js} +1 -1
  136. package/frontend/dist/js/fr-B5QcCDIw.js +2 -0
  137. package/frontend/dist/js/hi-BXYwSyKl.js +2 -0
  138. package/frontend/dist/js/html-DMnBrAcs.js +25 -0
  139. package/frontend/dist/js/id-BV3mY5L7.js +2 -0
  140. package/frontend/dist/js/is-BDK4LrQC.js +2 -0
  141. package/frontend/dist/js/it-DAeWl1Fm.js +2 -0
  142. package/frontend/dist/js/ja-DIJV01rA.js +2 -0
  143. package/frontend/dist/js/ko-Btr9-64X.js +2 -0
  144. package/frontend/dist/js/markdown-CQ4enQcD.js +70 -0
  145. package/frontend/dist/js/{messageCodeStyles-tSFFCV6k.js → messageCodeStyles-BugWE4s5.js} +2 -2
  146. package/frontend/dist/js/ms-DgVmv5zF.js +2 -0
  147. package/frontend/dist/js/nl-Dz5HpdLi.js +2 -0
  148. package/frontend/dist/js/pl-CIATY2b0.js +2 -0
  149. package/frontend/dist/js/postcss-CZstCllf.js +62 -0
  150. package/frontend/dist/js/pt-lrDXX76Y.js +2 -0
  151. package/frontend/dist/js/ru-_zovUYcg.js +2 -0
  152. package/frontend/dist/js/standalone-CttwqOis.js +29 -0
  153. package/frontend/dist/js/{strandsApi-Fs6zV4CA.js → strandsApi-Ck7FrcHH.js} +1 -1
  154. package/frontend/dist/js/sv-TkRDWCb8.js +2 -0
  155. package/frontend/dist/js/{teamEventStream-DD_ASSs5.js → teamEventStream-O3qGbUZz.js} +1 -1
  156. package/frontend/dist/js/th-CQyavDiP.js +2 -0
  157. package/frontend/dist/js/tr-CBcFl4_Z.js +2 -0
  158. package/frontend/dist/js/typescript-h2bi7nrV.js +22 -0
  159. package/frontend/dist/js/{ui-DATtlADq.js → ui-DxaHE9GD.js} +2 -2
  160. package/frontend/dist/js/{ui-vendor-WdvBNwsu.js → ui-vendor-DsURZnZt.js} +1 -1
  161. package/frontend/dist/js/uk-BNn1cUt8.js +2 -0
  162. package/frontend/dist/js/{useChat-RXTiCFz0.js → useChat-1HyAPpCk.js} +1 -1
  163. package/frontend/dist/js/useDictation-B3vNgs5D.js +1 -0
  164. package/frontend/dist/js/{useQuery-DCqz3UJt.js → useQuery-Cs76KYuP.js} +1 -1
  165. package/frontend/dist/js/useTranslation-CKqEdZ8j.js +1 -0
  166. package/frontend/dist/js/utils-BXRzbHJC.js +1 -0
  167. package/frontend/dist/js/{utils-vendor-CsC5rH1J.js → utils-vendor-B4bGLP5p.js} +1 -1
  168. package/frontend/dist/js/vi-Be8GO7e_.js +2 -0
  169. package/frontend/dist/js/{workApi-CbFQfwRZ.js → workApi-BNGRSv7q.js} +1 -1
  170. package/frontend/dist/js/workApi-C5jw1ra6.js +1 -0
  171. package/frontend/dist/js/yaml-CBt8G4BX.js +150 -0
  172. package/frontend/dist/js/zh-9CUKyYw5.js +2 -0
  173. package/package.json +4 -4
  174. package/plugins/anthropic.json +1 -0
  175. package/plugins/baseten.json +17 -0
  176. package/plugins/gemini.json +9 -0
  177. package/plugins/llama-cpp.json +13 -0
  178. package/plugins/meta.json +1 -0
  179. package/plugins/openai.json +13 -0
  180. package/plugins/openrouter.json +26 -0
  181. package/frontend/dist/assets/index-BM0txgxR.css +0 -2
  182. package/frontend/dist/assets/index-CekTqSoE.js +0 -67
  183. package/frontend/dist/js/ChannelsPage-De96Q63V.js +0 -1
  184. package/frontend/dist/js/ChatPage-CTRKLQly.js +0 -14
  185. package/frontend/dist/js/PersonasPage-mzAft_NC.js +0 -13
  186. package/frontend/dist/js/SettingsModal-B-5JP50i.js +0 -19
  187. package/frontend/dist/js/UserManagementPanel-DBwIOSOw.js +0 -1
  188. package/frontend/dist/js/WorkPage-DQlsa18h.js +0 -7
  189. package/frontend/dist/js/api-DdDgFM-F.js +0 -1
  190. package/frontend/dist/js/appVersion-Bl_QXi35.js +0 -1
  191. package/frontend/dist/js/ar-yKmq_nxn.js +0 -2
  192. package/frontend/dist/js/authStore-ByVF8A2u.js +0 -1
  193. package/frontend/dist/js/babel-BaOs8qJH.js +0 -16
  194. package/frontend/dist/js/bn-DAJjz2xA.js +0 -2
  195. package/frontend/dist/js/chatStore-BooPA4cg.js +0 -3
  196. package/frontend/dist/js/cs-BcctV9SN.js +0 -2
  197. package/frontend/dist/js/da-YtnjzG18.js +0 -2
  198. package/frontend/dist/js/de-BMQofu0d.js +0 -2
  199. package/frontend/dist/js/es-8oFYsnHw.js +0 -2
  200. package/frontend/dist/js/estree-Cw-tQG5d.js +0 -44
  201. package/frontend/dist/js/fr-CnGTnuJK.js +0 -2
  202. package/frontend/dist/js/hi-Ct5Inbp9.js +0 -2
  203. package/frontend/dist/js/html-Drt7kOJE.js +0 -25
  204. package/frontend/dist/js/id-CSqCL3hQ.js +0 -2
  205. package/frontend/dist/js/is-Bg68TmSt.js +0 -2
  206. package/frontend/dist/js/it-ZngXlxOR.js +0 -2
  207. package/frontend/dist/js/ja-DfQEoeFi.js +0 -2
  208. package/frontend/dist/js/ko-IifYVGBy.js +0 -2
  209. package/frontend/dist/js/markdown-C7cnJl_Q.js +0 -70
  210. package/frontend/dist/js/ms-C8jQLzkg.js +0 -2
  211. package/frontend/dist/js/nl-BFEa3rgC.js +0 -2
  212. package/frontend/dist/js/pl-BiPrQGU-.js +0 -2
  213. package/frontend/dist/js/postcss-DB_e0nkW.js +0 -62
  214. package/frontend/dist/js/pt-BziWZm5q.js +0 -2
  215. package/frontend/dist/js/ru-oTAEePGS.js +0 -2
  216. package/frontend/dist/js/standalone-YobQElH8.js +0 -29
  217. package/frontend/dist/js/sv-1_et6OWH.js +0 -2
  218. package/frontend/dist/js/th-DjyLzIKs.js +0 -2
  219. package/frontend/dist/js/tr-CCga9CbK.js +0 -2
  220. package/frontend/dist/js/typescript-2anSzo_N.js +0 -22
  221. package/frontend/dist/js/uk-h80KE68A.js +0 -2
  222. package/frontend/dist/js/useDictation-YyALwnw6.js +0 -1
  223. package/frontend/dist/js/useTranslation-D-_KTORQ.js +0 -1
  224. package/frontend/dist/js/utils-DsCVr_wG.js +0 -1
  225. package/frontend/dist/js/vi-CQxzmgwi.js +0 -2
  226. package/frontend/dist/js/workApi-CmH9c1xh.js +0 -1
  227. package/frontend/dist/js/yaml-Breo7DWT.js +0 -154
  228. package/frontend/dist/js/zh-CS3_ndbP.js +0 -2
@@ -0,0 +1,62 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}},s=(e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(let c of r(i))!a.call(e,c)&&c!==o&&t(e,c,{get:()=>i[c],enumerable:!(s=n(i,c))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),u=o((e,t)=>{var n=String,r=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n,blackBright:n,redBright:n,greenBright:n,yellowBright:n,blueBright:n,magentaBright:n,cyanBright:n,whiteBright:n,bgBlackBright:n,bgRedBright:n,bgGreenBright:n,bgYellowBright:n,bgBlueBright:n,bgMagentaBright:n,bgCyanBright:n,bgWhiteBright:n}};t.exports=r(),t.exports.createColors=r}),d=o(()=>{}),f=o((e,t)=>{var n=u(),r=d(),i=class e extends Error{constructor(t,n,r,i,a,o){super(t),this.name=`CssSyntaxError`,this.reason=t,a&&(this.file=a),i&&(this.source=i),o&&(this.plugin=o),typeof n<`u`&&typeof r<`u`&&(typeof n==`number`?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+`: `:``,this.message+=this.file?this.file:`<css input>`,typeof this.line<`u`&&(this.message+=`:`+this.line+`:`+this.column),this.message+=`: `+this.reason}showSourceCode(e){if(!this.source)return``;let t=this.source;e??=n.isColorSupported;let i=e=>e,a=e=>e,o=e=>e;if(e){let{bold:e,gray:t,red:s}=n.createColors(!0);a=t=>e(s(t)),i=e=>t(e),r&&(o=e=>r(e))}let s=t.split(/\r?\n/),c=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),u=String(l).length;return s.slice(c,l).map((e,t)=>{let n=c+1+t,r=` `+(` `+n).slice(-u)+` | `;if(n===this.line){if(e.length>160){let t=Math.max(0,this.column-20),n=Math.max(this.column+20,this.endColumn+20),s=e.slice(t,n),c=i(r.replace(/\d/g,` `))+e.slice(0,Math.min(this.column-1,19)).replace(/[^\t]/g,` `);return a(`>`)+i(r)+o(s)+`
2
+ `+c+a(`^`)}let t=i(r.replace(/\d/g,` `))+e.slice(0,this.column-1).replace(/[^\t]/g,` `);return a(`>`)+i(r)+o(e)+`
3
+ `+t+a(`^`)}return` `+i(r)+o(e)}).join(`
4
+ `)}toString(){let e=this.showSourceCode();return e&&=`
5
+
6
+ `+e+`
7
+ `,this.name+`: `+this.message+e}};t.exports=i,i.default=i}),p=o((e,t)=>{var n=/[\t\n\f\r "#'()/;[\\\]{}]/,r={after:`
8
+ `,beforeClose:`
9
+ `,beforeComment:`
10
+ `,beforeDecl:`
11
+ `,beforeOpen:` `,beforeRule:`
12
+ `,colon:`: `,commentLeft:` `,commentRight:` `,emptyBody:``,indent:` `,semicolon:!1};function i(e){return e[0].toUpperCase()+e.slice(1)}function a(e,t){let r=`@`+t.name,i=t.params?e.rawValue(t,`params`):``,a=t.raws.afterName;return typeof a>`u`?a=i?` `:``:a===``&&i&&!n.test(i[0])&&(a=` `),r+a+i}function o(e){if(!e.prop.startsWith(`--`))return!1;let t=e.raws.before;return typeof t>`u`||!/[^\s;]$/.test(t)}function s(e,t,n){let r=n.nodes,i=r.length-1;for(;i>0&&r[i].type===`comment`;)--i;let a=e.raw(n,`semicolon`),s=n.type===`document`;for(let e=r.length-1;e>=0;e--){let n=r[e],c=i!==e||a;!c&&e<r.length-1&&(n.type===`atrule`&&!n.nodes||n.type===`decl`&&o(n))&&(c=!0),t.push({document:s,node:n,semicolon:c})}}function c(e,t,n,r){let i=e.raw(n,`between`,`beforeOpen`);e.builder(r+i+`{`,n,`start`);let a=n.nodes&&n.nodes.length,o=()=>{let t=a?e.raw(n,`after`):e.raw(n,`after`,`emptyBody`);t&&e.builder(t),e.builder(`}`,n,`end`),n.type===`rule`&&n.raws.ownSemicolon&&e.builder(n.raws.ownSemicolon,n,`end`)};a?(t.push(o),s(e,t,n)):o()}var l=class e{constructor(e){this.builder=e}atrule(e,t){let n=a(this,e);if(e.nodes)this.block(e,n);else{let r=(e.raws.between||``)+(t?`;`:``);this.builder(n+r,e)}}beforeAfter(e,t){let n;n=e.type===`decl`?this.raw(e,null,`beforeDecl`):e.type===`comment`?this.raw(e,null,`beforeComment`):t===`before`?this.raw(e,null,`beforeRule`):this.raw(e,null,`beforeClose`);let r=e.parent,i=0;for(;r&&r.type!==`root`;)i+=1,r=r.parent;if(n.includes(`
13
+ `)){let t=this.raw(e,null,`indent`);if(t.length)for(let e=0;e<i;e++)n+=t}return n}block(e,t){let n=this.raw(e,`between`,`beforeOpen`);this.builder(t+n+`{`,e,`start`);let r;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(t){let n=e.prototype,r=[`atrule`,`block`,`body`,`rule`,`stringify`].every(e=>this[e]===n[e]),i=[];for(s(this,i,t);i.length>0;){let e=i.pop();if(typeof e==`function`){e();continue}let t=e.node,n=this.raw(t,`before`);n&&this.builder(n),r&&t.type===`rule`?c(this,i,t,this.rawValue(t,`selector`)):r&&t.type===`atrule`&&t.nodes?c(this,i,t,a(this,t)):this.stringify(t,e.semicolon)}}comment(e){let t=this.raw(e,`left`,`commentLeft`),n=this.raw(e,`right`,`commentRight`);this.builder(`/*`+t+e.text+n+`*/`,e)}decl(e,t){let n=e.raws,r=this.raw(e,`between`,`colon`),i=e.prop+r+this.rawValue(e,`value`);e.important&&(i+=n.important||` !important`),t&&(i+=`;`),this.builder(i,e)}document(e){this.body(e)}raw(e,t,n){let a;if(n||=t,t&&(a=e.raws[t],typeof a<`u`))return a;let o=e.parent;if(n===`before`&&(!o||o.type===`root`&&o.first===e||o&&o.type===`document`))return``;if(!o)return r[n];let s=e.root(),c=s.rawCache||={};if(typeof c[n]<`u`)return c[n];if(n===`before`||n===`after`)return this.beforeAfter(e,n);{let r=`raw`+i(n);this[r]?a=this[r](s,e):s.walk(e=>{if(a=e.raws[t],typeof a<`u`)return!1})}return typeof a>`u`&&(a=r[n]),c[n]=a,a}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&typeof e.raws.after<`u`)return t=e.raws.after,t.includes(`
14
+ `)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t}rawBeforeComment(e,t){let n;return e.walkComments(e=>{if(typeof e.raws.before<`u`)return n=e.raws.before,n.includes(`
15
+ `)&&(n=n.replace(/[^\n]+$/,``)),!1}),typeof n>`u`?n=this.raw(t,null,`beforeDecl`):n&&=n.replace(/\S/g,``),n}rawBeforeDecl(e,t){let n;return e.walkDecls(e=>{if(typeof e.raws.before<`u`)return n=e.raws.before,n.includes(`
16
+ `)&&(n=n.replace(/[^\n]+$/,``)),!1}),typeof n>`u`?n=this.raw(t,null,`beforeRule`):n&&=n.replace(/\S/g,``),n}rawBeforeOpen(e){let t;return e.walk(e=>{if(e.type!==`decl`&&(t=e.raws.between,typeof t<`u`))return!1}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<`u`)return t=n.raws.before,t.includes(`
17
+ `)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t}rawColon(e){let t;return e.walkDecls(e=>{if(typeof e.raws.between<`u`)return t=e.raws.between.replace(/[^\s:]/g,``),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length===0&&(t=e.raws.after,typeof t<`u`))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&typeof n.raws.before<`u`){let e=n.raws.before.split(`
18
+ `);return t=e[e.length-1],t=t.replace(/\S/g,``),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&e.last.type===`decl`&&(t=e.raws.semicolon,typeof t<`u`))return!1}),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){!(e.parent&&e.parent.type===`document`)&&e.source&&e.source.input.hasBOM&&this.builder(``,e,`start`),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)}};t.exports=l,l.default=l}),m=o((e,t)=>{var n=p(),r=/(<)(\/?style\b)/gi,i=/(<)(!--)/g;function a(e){return e.includes(`<`)?e.replace(r,`\\3c $2`).replace(i,`\\3c $2`):e}function o(e,t,n){let r=[],i=0,a=0;for(let o=0;o<e.length;o+=3){let s=a,c=i+e[o].length;for(;i<c;)t[i]===n[a]?(i+=1,a+=1):(i+=1,a+=4);r.push(n.slice(s,a))}return r}var s=class extends n{escapeHTML(e){let t=this.builder,n,r;if(this.builder=(e,i,a)=>{n?(r+=e,n.push(e,i,a)):e.includes(`<`)?(r=e,n=[e,i,a]):t(e,i,a)},e(),this.builder=t,!n)return;let i=a(r);if(i===r)for(let e=0;e<n.length;e+=3)t(n[e],n[e+1],n[e+2]);else{let e=o(n,r,i);for(let r=0;r<n.length;r+=3)t(e[r/3],n[r+1],n[r+2])}}root(e){e.parent&&e.parent.type===`document`?(this.escapeHTML(()=>this.body(e)),e.raws.after&&this.builder(e.raws.after)):this.escapeHTML(()=>super.root(e))}};function c(e,t){let n=new s(t);e.type===`root`||e.type===`document`?n.stringify(e):n.escapeHTML(()=>n.stringify(e))}t.exports=c,c.default=c}),h=o((e,t)=>{t.exports.isClean=Symbol(`isClean`),t.exports.my=Symbol(`my`)}),g=o((e,t)=>{var n=f(),r=p(),i=m(),{isClean:a,my:o}=h();function s(e,t){let n=new e.constructor,r=[[e,n,t]];for(;r.length>0;){let[e,t,n]=r.pop();for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i)||i===`proxyCache`)continue;let a=e[i],o=typeof a;if(i===`parent`&&o===`object`)n&&(t[i]=n);else if(i===`source`)t[i]=a;else if(Array.isArray(a)){let e=[];t[i]=e;for(let n of a){let i=new n.constructor;e.push(i),r.push([n,i,t])}}else{if(o===`object`&&a!==null){let e=new a.constructor;r.push([a,e,void 0]),a=e}t[i]=a}}}return n}function c(e,t){if(t&&typeof t.offset<`u`)return t.offset;let n=1,r=1,i=0;for(let a=0;a<e.length;a++){if(r===t.line&&n===t.column){i=a;break}e[a]===`
19
+ `?(n=1,r+=1):n+=1}return i}var l=class e{get proxyOf(){return this}constructor(e={}){this.raws={},this[a]=!1,this[o]=!0;for(let t of Object.keys(e))if(t!==`__proto__`){if(t===`nodes`){this.nodes=[];for(let n of e[t])typeof n.clone==`function`&&n.parent?this.append(n.clone()):this.append(n)}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=s(this);for(let n in e)t[n]=e[n];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:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new n(e)}getProxyProcessor(){return{get(e,t){return t===`proxyOf`?e:t===`root`?()=>e.root().toProxy():e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t===`prop`||t===`value`||t===`name`||t===`params`||t===`important`||t===`text`)&&e.markDirty()),!0}}}markClean(){this[a]=!0}markDirty(){if(this[a]){this[a]=!1;let e=this;for(;e=e.parent;)e[a]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=`document`in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:c(t,this.source.start)};if(e.index)n=this.positionInside(e.index);else if(e.word){let r=t.slice(c(t,this.source.start),this.rangeBy().end.offset).indexOf(e.word);r!==-1&&(n=this.positionInside(r))}return n}positionInside(e){let t=this.source.start.column,n=this.source.start.line,r=`document`in this.source.input?this.source.input.document:this.source.input.css,i=c(r,this.source.start),a=i+e;for(let e=i;e<a;e++)r[e]===`
20
+ `?(t=1,n+=1):t+=1;return{column:t,line:n,offset:a}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t=`document`in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:c(t,this.source.start)},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset==`number`?this.source.end.offset:c(t,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let i=t.slice(c(t,this.source.start),r.offset).indexOf(e.word);i!==-1&&(n=this.positionInside(i),r=this.positionInside(i+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:c(t,e.start)}:typeof e.index==`number`&&(n=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line,offset:c(t,e.end)}:typeof e.endIndex==`number`?r=this.positionInside(e.endIndex):typeof e.index==`number`&&(r=this.positionInside(e.index+1));return(r.line<n.line||r.line===n.line&&r.column<=n.column)&&(r={column:n.column+1,line:n.line,offset:n.offset+1}),{end:r,start:n}}raw(e,t){return new r().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,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!==`document`;)e=e.parent;return e}toJSON(t,n){let r=n==null;n||=new Map;let i=[],a=[[this,i,0]];for(let t=0;t<a.length;t++){let[r,i,o]=a[t],s={};i[o]=s;for(let t in r){if(!Object.prototype.hasOwnProperty.call(r,t)||t===`parent`||t===`proxyCache`)continue;let i=r[t];if(Array.isArray(i)){let r=[];s[t]=r;for(let t=0;t<i.length;t++){let o=i[t];typeof o==`object`&&o.toJSON?o.toJSON===e.prototype.toJSON?a.push([o,r,t]):r[t]=o.toJSON(null,n):r[t]=o}}else if(typeof i==`object`&&i.toJSON)i.toJSON===e.prototype.toJSON?a.push([i,s,t]):s[t]=i.toJSON(null,n);else if(t===`source`){if(i==null)continue;let e=n.get(i.input);e??(e=n.size,n.set(i.input,e)),s[t]={end:i.end,inputId:e,start:i.start}}else s[t]=i}}let o=i[0];return r&&(o.inputs=[...n.keys()].map(e=>e.toJSON())),o}toProxy(){return this.proxyCache||=new Proxy(this,this.getProxyProcessor()),this.proxyCache}toString(e=i){e.stringify&&(e=e.stringify);let t=``;return e(this,e=>{t+=e}),t}warn(e,t,n={}){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}};t.exports=l,l.default=l}),_=o((e,t)=>{var n=g(),r=class extends n{constructor(e){super(e),this.type=`comment`}};t.exports=r,r.default=r}),v=o((e,t)=>{var n=g(),r=class extends n{get variable(){return this.prop.startsWith(`--`)||this.prop[0]===`$`}constructor(e){e&&typeof e.value<`u`&&typeof e.value!=`string`&&(e={...e,value:String(e.value)}),super(e),this.type=`decl`}};t.exports=r,r.default=r}),y=o((e,t)=>{var n=_(),r=v(),i=g(),{isClean:a,my:o}=h(),s,c,l,u;function d(e){let t=e.slice();for(;t.length>0;){let e=t.pop();if(delete e.source,e.nodes){e.nodes=e.nodes.slice();for(let n of e.nodes)t.push(n)}}return e.slice()}function f(e){let t=[e];for(;t.length>0;){let e=t.pop();if(e[a]=!1,e.proxyOf.nodes)for(let n of e.proxyOf.nodes)t.push(n)}}var p=class e extends i{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]}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(t){let n=[this];for(;n.length>0;){let r=n.pop();if(r!==this&&r.cleanRaws!==e.prototype.cleanRaws)r.cleanRaws(t);else if(i.prototype.cleanRaws.call(r,t),r.nodes)for(let e of r.nodes)n.push(e)}}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],r=e(this.proxyOf.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||=0,this.indexes||={},this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t===`proxyOf`?e:e[t]?t===`each`||typeof t==`string`&&t.startsWith(`walk`)?(...n)=>e[t](...n.map(e=>typeof e==`function`?(t,n)=>e(t.toProxy(),n):e)):t===`every`||t===`some`?n=>e[t]((e,...t)=>n(e.toProxy(),...t)):t===`root`?()=>e.root().toProxy():t===`nodes`?e.nodes.map(e=>e.toProxy()):t===`first`||t===`last`?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t===`name`||t===`params`||t===`selector`)&&e.markDirty()),!0}}}index(e){return typeof e==`number`?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),r=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let e of r)this.proxyOf.nodes.splice(n+1,0,e);let i;for(let e in this.indexes)i=this.indexes[e],n<i&&(this.indexes[e]=i+r.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),r=n===0&&`prepend`,i=this.normalize(t,this.proxyOf.nodes[n],r).reverse();n=this.index(e);for(let e of i)this.proxyOf.nodes.splice(n,0,e);let a;for(let e in this.indexes)a=this.indexes[e],n<=a&&(this.indexes[e]=a+i.length);return this.markDirty(),this}normalize(t,i){if(typeof t==`string`)t=d(c(t).nodes);else if(typeof t>`u`)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,`ignore`)}else if(t.type===`root`&&this.type!==`document`){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,`ignore`)}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>`u`)throw Error(`Value field is missed in node creation`);typeof t.value!=`string`&&(t.value=String(t.value)),t=[new r(t)]}else if(t.selector||t.selectors)t=[new u(t)];else if(t.name)t=[new s(t)];else if(t.text)t=[new n(t)];else throw Error(`Unknown node type in node creation`);return t.map(t=>(t[o]||e.rebuild(t),t=t.proxyOf,t.parent&&t.parent.removeChild(t),t[a]&&f(t),t.raws||(t.raws={}),typeof t.raws.before>`u`&&i&&typeof i.raws.before<`u`&&(t.raws.before=i.raws.before.replace(/\S/g,``)),t.parent=this.proxyOf,t))}prepend(...e){e=e.reverse();for(let t of e){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){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){if(!this.proxyOf.nodes)return;let t=[{iterator:this.getIterator(),node:this.proxyOf}];for(;t.length>0;){let{iterator:n,node:r}=t[t.length-1],i=r.indexes[n];if(i>=r.proxyOf.nodes.length){delete r.indexes[n],t.pop();let e=t[t.length-1];e&&(e.node.indexes[e.iterator]+=1);continue}let a=r.proxyOf.nodes[i],o;try{o=e(a,i)}catch(e){throw a.addToError(e)}if(o===!1){for(let e of t)delete e.node.indexes[e.iterator];return!1}a.walk&&a.proxyOf.nodes?t.push({iterator:a.getIterator(),node:a}):r.indexes[n]+=1}}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`atrule`&&e.test(n.name))return t(n,r)}):this.walk((n,r)=>{if(n.type===`atrule`&&n.name===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`atrule`)return t(e,n)}))}walkComments(e){return this.walk((t,n)=>{if(t.type===`comment`)return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`decl`&&e.test(n.prop))return t(n,r)}):this.walk((n,r)=>{if(n.type===`decl`&&n.prop===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`decl`)return t(e,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`rule`&&e.test(n.selector))return t(n,r)}):this.walk((n,r)=>{if(n.type===`rule`&&n.selector===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`rule`)return t(e,n)}))}};p.registerParse=e=>{c=e},p.registerRule=e=>{u=e},p.registerAtRule=e=>{s=e},p.registerRoot=e=>{l=e},t.exports=p,p.default=p,p.rebuild=e=>{let t=[e];for(;t.length>0;){let e=t.pop();if(e.type===`atrule`?Object.setPrototypeOf(e,s.prototype):e.type===`rule`?Object.setPrototypeOf(e,u.prototype):e.type===`decl`?Object.setPrototypeOf(e,r.prototype):e.type===`comment`?Object.setPrototypeOf(e,n.prototype):e.type===`root`&&Object.setPrototypeOf(e,l.prototype),e[o]=!0,e.nodes)for(let n of e.nodes)t.push(n)}}}),b=o((e,t)=>{t.exports={nanoid:(e=21)=>{let t=``,n=e|0;for(;n-->0;)t+=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`[Math.random()*64|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r=``,i=n|0;for(;i-->0;)r+=e[Math.random()*e.length|0];return r}}}),x=o(()=>{}),S=o((e,t)=>{t.exports=class{}}),C=o((e,t)=>{var{nanoid:n}=b(),{isAbsolute:r,resolve:i}={},{SourceMapConsumer:a,SourceMapGenerator:o}=x(),{fileURLToPath:s,pathToFileURL:c}={},l=f(),u=S(),p=d(),m=Symbol(`lineToIndexCache`),h=!!(a&&o),g=!!(i&&r);function _(e){if(e[m])return e[m];let t=e.css.split(`
21
+ `),n=Array(t.length),r=0;for(let e=0,i=t.length;e<i;e++)n[e]=r,r+=t[e].length+1;return e[m]=n,n}var v=class{get from(){return this.file||this.id}constructor(e,t={}){if(e===null||typeof e>`u`||typeof e==`object`&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]===``||this.css[0]===`￾`?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(this.file=!g||/^\w+:\/\//.test(t.from)||r(t.from)?t.from:i(t.from)),g&&h){let e=new u(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 `+n(6)+`>`),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let i,a,o,s,u;if(t&&typeof t==`object`){let e=t,r=n;if(typeof e.offset==`number`){s=e.offset;let r=this.fromOffset(s);t=r.line,n=r.col}else t=e.line,n=e.column,s=this.fromLineAndColumn(t,n);if(typeof r.offset==`number`){o=r.offset;let e=this.fromOffset(o);a=e.line,i=e.col}else a=r.line,i=r.column,o=this.fromLineAndColumn(r.line,r.column)}else if(n)s=this.fromLineAndColumn(t,n);else{s=t;let e=this.fromOffset(s);t=e.line,n=e.col}let d=this.origin(t,n,a,i);return u=d?new l(e,d.endLine===void 0?d.line:{column:d.column,line:d.line},d.endLine===void 0?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,r.plugin):new l(e,a===void 0?t:{column:n,line:t},a===void 0?n:{column:i,line:a},this.css,this.file,r.plugin),u.input={column:n,endColumn:i,endLine:a,endOffset:o,line:t,offset:s,source:this.css},this.file&&(c&&(u.input.url=c(this.file).toString()),u.input.file=this.file),u}fromLineAndColumn(e,t){return _(this)[e-1]+t-1}fromOffset(e){let t=_(this),n=t[t.length-1],r=0;if(e>=n)r=t.length-1;else{let n=t.length-2,i;for(;r<n;)if(i=r+(n-r>>1),e<t[i])n=i-1;else if(e>=t[i+1])r=i+1;else{r=i;break}}return{col:e-t[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:i(this.map.consumer().sourceRoot||this.map.root||`.`,e)}origin(e,t,n,a){if(!this.map)return!1;let o=this.map.consumer(),l=o.originalPositionFor({column:t-1,line:e});if(!l.source)return!1;let u;if(typeof n==`number`){let e=o.originalPositionFor({column:a-1,line:n});e.source&&(u=e)}let d;d=r(l.source)?c(l.source):new URL(l.source,c(this.map.mapFile||i(`.`)+`/`));let f={column:l.column+1,endColumn:u&&u.column+1,endLine:u&&u.line,line:l.line,url:d.toString()};if(d.protocol===`file:`){if(s)f.file=s(d);else throw Error(`file: protocol is not available in this PostCSS build`)}let p=o.sourceContentFor(l.source);return p&&(f.source=p),f}toJSON(){let e={};for(let t of[`hasBOM`,`css`,`file`,`id`])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};t.exports=v,v.default=v,p&&p.registerInput&&p.registerInput(v)}),w=o((e,t)=>{var n=y(),r=class extends n{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)}};t.exports=r,r.default=r,n.registerAtRule(r)}),T=o((e,t)=>{var n=y(),r,i,a=class extends n{constructor(e){super(e),this.type=`root`,this.nodes||=[]}normalize(e,t,n){let r=new Set;for(let t of Array.isArray(e)?e:[e])t&&typeof t==`object`&&!t.parent&&t.raws&&typeof t.raws.before<`u`&&r.add(t.raws);let i=super.normalize(e);if(t){if(n===`prepend`)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 i)r.has(e.raws)||(e.raws.before=t.raws.before)}return i}removeChild(e,t){let n=this.index(e);return!t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new r(new i,this,e).stringify()}};a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},t.exports=a,a.default=a,n.registerRoot(a)}),E=o((e,t)=>{var n={comma(e){return n.split(e,[`,`],!0)},space(e){return n.split(e,[` `,`
22
+ `,` `])},split(e,t,n){if(typeof e!=`string`)return[];let r=[],i=``,a=!1,o=0,s=!1,c=``,l=!1,u=!1;for(let d=0;d<e.length;d++){let f=e[d];if(u)i+=f,f===`*`&&e[d+1]===`/`&&(i+=`/`,d+=1,u=!1);else{if(l)l=!1;else if(f===`\\`)l=!0;else if(s)f===c&&(s=!1);else if(f===`"`||f===`'`)s=!0,c=f;else if(f===`/`&&e[d+1]===`*`){i+=`/*`,d+=1,u=!0;continue}else f===`(`?o+=1:f===`)`?o>0&&--o:o===0&&t.includes(f)&&(a=!0);if(a){let e=i.trim();(n||e!==``)&&r.push(e),i=``,a=!1}else i+=f}}let d=i.trim();return(n||d!==``)&&r.push(d),r}};t.exports=n,n.default=n}),D=o((e,t)=>{var n=y(),r=E(),i=class extends n{get selectors(){return r.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:`,`+this.raw(`between`,`beforeOpen`);this.selector=e.join(n)}constructor(e){super(e),this.type=`rule`,this.nodes||=[]}};t.exports=i,i.default=i,n.registerRule(i)}),O=o((e,t)=>{var n=/[\t\n\f\r "#'()/;[\\\]{}]/g,r=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,i=/.[\r\n"'(/\\]/,a=/[\da-f]/i;t.exports=function(e,t={}){let o=e.css.valueOf(),s=t.ignoreErrors,c,l,u,d,f,p,m,h,g,_,v=o.length,y=0,b=[],x=[],S=-1;function C(){return y}function w(t){throw e.error(`Unclosed `+t,y)}function T(){return x.length===0&&y>=v}function E(e){if(x.length)return x.pop();if(y>=v)return;let t=e?e.ignoreUnclosed:!1;switch(c=o.charCodeAt(y),c){case 10:case 32:case 9:case 13:case 12:d=y;do d+=1,c=o.charCodeAt(d);while(c===32||c===10||c===9||c===13||c===12);p=[`space`,o.slice(y,d)],y=d-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(c);p=[e,e,y];break}case 40:if(_=b.length?b.pop()[1]:``,g=o.charCodeAt(y+1),_===`url`&&g!==39&&g!==34&&g!==32&&g!==10&&g!==9&&g!==12&&g!==13){d=y;do{if(m=!1,d=o.indexOf(`)`,d+1),d===-1){if(s||t){d=y;break}w(`bracket`)}for(h=d;o.charCodeAt(h-1)===92;)--h,m=!m}while(m);p=[`brackets`,o.slice(y,d+1),y,d],y=d}else y<=S?p=[`(`,`(`,y]:(d=o.indexOf(`)`,y+1),l=o.slice(y,d+1),d===-1||i.test(l)?(S=d===-1?v:d,p=[`(`,`(`,y]):(p=[`brackets`,l,y,d],y=d));break;case 39:case 34:f=c===39?`'`:`"`,d=y;do{if(m=!1,d=o.indexOf(f,d+1),d===-1){if(s||t){d=y+1;break}w(`string`)}for(h=d;o.charCodeAt(h-1)===92;)--h,m=!m}while(m);p=[`string`,o.slice(y,d+1),y,d],y=d;break;case 64:n.lastIndex=y+1,n.test(o),d=n.lastIndex===0?o.length-1:n.lastIndex-2,p=[`at-word`,o.slice(y,d+1),y,d],y=d;break;case 92:for(d=y,u=!0;o.charCodeAt(d+1)===92;)d+=1,u=!u;if(c=o.charCodeAt(d+1),u&&c!==47&&c!==32&&c!==10&&c!==9&&c!==13&&c!==12&&(d+=1,a.test(o.charAt(d)))){for(;a.test(o.charAt(d+1));)d+=1;o.charCodeAt(d+1)===32&&(d+=1)}p=[`word`,o.slice(y,d+1),y,d],y=d;break;default:c===47&&o.charCodeAt(y+1)===42?(d=o.indexOf(`*/`,y+2)+1,d===0&&(s||t?d=o.length:w(`comment`)),p=[`comment`,o.slice(y,d+1),y,d],y=d):(r.lastIndex=y+1,r.test(o),d=r.lastIndex===0?o.length-1:r.lastIndex-2,p=[`word`,o.slice(y,d+1),y,d],b.push(p),y=d)}return y++,p}function D(e){x.push(e)}return{back:D,endOfFile:T,nextToken:E,position:C}}}),k=o((e,t)=>{var n=w(),r=_(),i=v(),a=T(),o=D(),s=O(),c={empty:!0,space:!0};function l(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}function u(e,t,n){let r=``;for(let i=t;i<n;i++)r+=e[i][1];return r}t.exports=class{constructor(e){this.input=e,this.root=new a,this.current=this.root,this.spaces=``,this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new n;t.name=e[1].slice(1),t.name===``&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,a,o=!1,s=!1,c=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r===`(`||r===`[`?l.push(r===`(`?`)`:`]`):r===`{`&&l.length>0?l.push(`}`):r===l[l.length-1]&&l.pop(),l.length===0){if(r===`;`){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}if(r===`{`){s=!0;break}if(r===`}`){if(c.length>0){for(a=c.length-1,i=c[a];i&&i[0]===`space`;)i=c[--a];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}c.push(e)}else c.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(t.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(t,`params`,c),o&&(e=c[c.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between=``)):(t.raws.afterName=``,t.params=``),s&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let n=0,r;for(let i=t-1;i>=0&&(r=e[i],!(r[0]!==`space`&&(n+=1,n===2)));i--);throw this.input.error(`Missed semicolon`,r[0]===`word`?r[3]+1:r[2])}colon(e){let t=0,n,r,i;for(let[a,o]of e.entries()){if(r=o,i=r[0],i===`(`&&(t+=1),i===`)`&&--t,t===0&&i===`:`){if(!n)this.doubleColon(r);else{if(n[0]===`word`&&n[1]===`progid`)continue;return a}}n=r}return!1}comment(e){let t=new r;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(!n.trim())t.text=``,t.raws.left=n,t.raws.right=``;else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=s(this.input)}decl(e,t){let n=new i;this.init(n,e[0][2]);let r=e[e.length-1];r[0]===`;`&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(r[3]||r[2]||l(e)),n.source.end.offset++;let a=0;for(;e[a][0]!==`word`;)a===e.length-1&&this.unknownWord([e[a]]),a++;n.raws.before+=u(e,0,a),n.source.start=this.getPosition(e[a][2]);let o=a;for(;a<e.length;){let t=e[a][0];if(t===`:`||t===`space`||t===`comment`)break;a++}n.prop=u(e,o,a);let s=a,c;for(;a<e.length&&(c=e[a],a++,c[0]!==`:`);)c[0]===`word`&&/\w/.test(c[1])&&this.unknownWord([c]);n.raws.between=u(e,s,a),(n.prop[0]===`_`||n.prop[0]===`*`)&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let d=a;for(;a<e.length;){let t=e[a][0];if(t!==`space`&&t!==`comment`)break;a++}let f=e.slice(d,a);e=e.slice(a),this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(c=e[t],c[1].toLowerCase()===`!important`){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r,r!==` !important`&&(n.raws.important=r);break}if(c[1].toLowerCase()===`important`){let r=e.slice(0),i=``;for(let e=t;e>0;e--){let t=r[e][0];if(i.trim().startsWith(`!`)&&t!==`space`)break;i=r.pop()[1]+i}i.trim().startsWith(`!`)&&(n.important=!0,n.raws.important=i,e=r)}if(c[0]!==`space`&&c[0]!==`comment`)break}e.some(e=>e[0]!==`space`&&e[0]!==`comment`)&&(n.raws.between+=f.map(e=>e[1]).join(``),f=[]),this.raw(n,`value`,f.concat(e),t),n.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 o;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 t=this.current.nodes[this.current.nodes.length-1];t&&t.type===`rule`&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces=``,t.source.end=this.getPosition(e[2]),t.source.end.offset++)}}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=``,e.type!==`comment`&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,i=null,a=[],o=e[1].startsWith(`--`),s=[],c=e;for(;c;){if(n=c[0],s.push(c),n===`(`||n===`[`)i||=c,a.push(n===`(`?`)`:`]`);else if(o&&r&&n===`{`)i||=c,a.push(`}`);else if(a.length===0){if(n===`;`){if(r){this.decl(s,o);return}break}if(n===`{`){this.rule(s);return}if(n===`}`){this.tokenizer.back(s.pop()),t=!0;break}n===`:`&&(r=!0)}else n===a[a.length-1]&&(a.pop(),a.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&r){if(!o)for(;s.length&&(c=s[s.length-1][0],c===`space`||c===`comment`);)this.tokenizer.back(s.pop());this.decl(s,o)}else this.unknownWord(s)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case`space`:this.spaces+=e[1];break;case`;`:this.freeSemicolon(e);break;case`}`:this.end(e);break;case`comment`:this.comment(e);break;case`at-word`:this.atrule(e);break;case`{`:this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let i,a,o=n.length,s=``,l=``,u=!0,d,f;for(let e=0;e<o;e+=1)i=n[e],a=i[0],a===`space`&&e===o-1&&!r?u=!1:a===`comment`?(f=n[e-1]?n[e-1][0]:`empty`,d=n[e+1]?n[e+1][0]:`empty`,!c[f]&&!c[d]?l===`,`?u=!1:(s+=i[1],l=i[1].slice(-1)):u=!1):(s+=i[1],l=i[1].slice(-1));if(!u){let r=n.reduce((e,t)=>e+t[1],``);e.raws[t]={raw:r,value:s}}e[t]=s}rule(e){e.pop();let t=new o;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,`selector`,e),this.current=t}spacesAndCommentsFromEnd(e){let t,n=``;for(;e.length&&(t=e[e.length-1][0],t===`space`||t===`comment`);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n=``;for(;e.length&&(t=e[0][0],t===`space`||t===`comment`);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n=``;for(;e.length&&(t=e[e.length-1][0],t===`space`);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n=``;for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}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 `+e[0][1],{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})}}}),A=o((e,t)=>{var n=y(),r=C(),i=k();function a(e,t){let n=new i(new r(e,t));try{n.parse()}catch(e){throw e}return n.root}t.exports=a,a.default=a,n.registerParse(a)}),ee=o((e,t)=>{var n=y(),r,i,a=class extends n{constructor(e){super({type:`document`,...e}),this.nodes||=[]}toResult(e={}){return new r(new i,this,e).stringify()}};a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},t.exports=a,a.default=a}),te=o((e,t)=>{var n=w(),r=_(),i=v(),a=C(),o=S(),s=T(),c=D();function l(e,t){return e.inputs?e.inputs.map(e=>{let t={...e,__proto__:a.prototype};return t.map&&={...t.map,__proto__:o.prototype},t}):t}function u(e,t,a){let o={...e};if(delete o.inputs,delete o.nodes,o.source){let{inputId:e,...n}=o.source;o.source=n,e!=null&&(o.source.input=t[e])}let l;if(o.type===`root`)l=new s(o);else if(o.type===`decl`)l=new i(o);else if(o.type===`rule`)l=new c(o);else if(o.type===`comment`)l=new r(o);else if(o.type===`atrule`)l=new n(o);else throw Error(`Unknown node type: `+e.type);if(a){l.nodes=a;for(let e of a)e.parent=l}return l}function d(e,t){if(Array.isArray(e))return e.map(e=>d(e));let n,r=[{childIndex:0,children:[],inputs:l(e,t),json:e}];for(;r.length>0;){let e=r[r.length-1],t=e.json.nodes;if(t&&e.childIndex<t.length){let n=t[e.childIndex];e.childIndex+=1,r.push({childIndex:0,children:[],inputs:l(n,e.inputs),json:n});continue}r.pop();let i=u(e.json,e.inputs,t?e.children:void 0);r.length>0?r[r.length-1].children.push(i):n=i}return n}t.exports=d,d.default=d}),ne=o((e,t)=>{t.exports=class{generate(){}}}),re=o((e,t)=>{var n=y(),{my:r}=h(),i=class{constructor(e,t={}){if(this.type=`warning`,this.text=e,t.node&&t.node.source){t.node[r]||n.rebuild(t.node);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,start:this.start,word:this.word}).message:this.plugin?this.plugin+`: `+this.text:this.text}};t.exports=i,i.default=i}),j=o((e,t)=>{var n=re(),r=class{get content(){return this.css}constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=``,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 n(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type===`warning`)}};t.exports=r,r.default=r}),M=o((e,t)=>{var n={};t.exports=function(e){n[e]||(n[e]=!0,typeof console<`u`&&console.warn&&console.warn(e))}}),ie=o((e,t)=>{var n=y(),r=ee(),i=ne(),a=A(),o=j(),s=T(),c=m(),{isClean:l,my:u}=h();M();var d={atrule:`AtRule`,comment:`Comment`,decl:`Declaration`,document:`Document`,root:`Root`,rule:`Rule`},f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},p={Once:!0,postcssPlugin:!0,prepare:!0},g=0;function _(e){return typeof e==`object`&&typeof e.then==`function`}function v(e){let t=!1,n=d[e.type];return e.type===`decl`?t=e.prop.toLowerCase():e.type===`atrule`&&(t=e.name.toLowerCase()),t&&e.append?[n,n+`-`+t,g,n+`Exit`,n+`Exit-`+t]:t?[n,n+`-`+t,n+`Exit`,n+`Exit-`+t]:e.append?[n,g,n+`Exit`]:[n,n+`Exit`]}function b(e){let t;return t=e.type===`document`?[`Document`,g,`DocumentExit`]:e.type===`root`?[`Root`,g,`RootExit`]:v(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function x(e){let t=[e];for(;t.length>0;){let e=t.pop();if(e[l]=!1,e.nodes)for(let n of e.nodes)t.push(n)}return e}var S={},C=class e{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`}constructor(t,r,i){this.stringified=!1,this.processed=!1;let s;if(typeof r==`object`&&r&&(r.type===`root`||r.type===`document`))s=x(r);else if(r instanceof e||r instanceof o)s=x(r.root),r.map&&(typeof i.map>`u`&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{let e=a;i.syntax&&(e=i.syntax.parse),i.parser&&(e=i.parser),e.parse&&(e=e.parse);try{s=e(r,i)}catch(e){this.processed=!0,this.error=e}s&&!s[u]&&n.rebuild(s)}this.result=new o(t,s,i),this.helpers={...S,postcss:S,result:this.result},this.plugins=this.processor.plugins.map(e=>typeof e==`object`&&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.runAsync(),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().finally(e)}getAsyncError(){throw Error(`Use process(css).then(cb) to work with async plugins`)}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name===`CssSyntaxError`&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if(typeof t==`object`)for(let n in t){if(!f[n]&&/^[A-Z]/.test(n))throw Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!p[n]){if(typeof t[n]==`object`)for(let r in t[n])r===`*`?e(t,n,t[n][r]):e(t,n+`-`+r.toLowerCase(),t[n][r]);else typeof t[n]==`function`&&e(t,n,t[n])}}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],n=this.runOnRoot(t);if(_(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];){e[l]=!0;let t=[b(e)];for(;t.length>0;){let e=this.visitTick(t);if(_(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type===`document`){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e==`object`&&e.Once){if(this.result.root.type===`document`){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return _(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if(typeof e==`function`)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=c;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=this.result.root.source;if(e.map===void 0&&!(n&&n.input&&n.input.map)){let e=``;return t(this.result.root,t=>{e+=t}),this.result.css=e,this.result}let r=new i(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(_(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];)e[l]=!0,this.walkSync(e);if(this.listeners.OnceExit){if(e.type===`document`)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){this.result.lastPlugin=n;let e;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if(t.type!==`root`&&t.type!==`document`&&!t.parent)return!0;if(_(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if(n.type!==`root`&&n.type!==`document`&&!n.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[e,i]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(t.iterator!==0){let r=t.iterator;t.descending&&(t.descending=!1,n.indexes[r]+=1);let i;for(;i=n.nodes[n.indexes[r]];){if(!i[l]){i[l]=!0,t.descending=!0,e.push(b(i));return}n.indexes[r]+=1}t.iterator=0,delete n.indexes[r]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,e===g){n.nodes&&n.nodes.length&&(n[l]=!0,t.iterator=n.getIterator());return}if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){e[l]=!0;let t=[{eventIndex:0,events:v(e),iterator:0,node:e}];for(;t.length>0;){let e=t[t.length-1],n=e.node;if(e.iterator!==0){let r=e.iterator;e.descending&&(e.descending=!1,n.indexes[r]+=1);let i,a=!1;for(;i=n.nodes[n.indexes[r]];){if(!i[l]){i[l]=!0,e.descending=!0,t.push({eventIndex:0,events:v(i),iterator:0,node:i}),a=!0;break}n.indexes[r]+=1}if(a)continue;e.iterator=0,delete n.indexes[r]}if(e.eventIndex<e.events.length){let r=e.events[e.eventIndex];if(e.eventIndex+=1,r===g)n.nodes&&n.nodes.length&&(e.iterator=n.getIterator());else{let e=this.listeners[r];e&&this.visitSync(e,n.toProxy())&&t.pop()}}else t.pop()}}warnings(){return this.sync().warnings()}};C.registerPostcss=e=>{S=e},t.exports=C,C.default=C,s.registerLazyResult(C),r.registerLazyResult(C)}),ae=o((e,t)=>{var n=ne(),r=A(),i=j(),a=m();M();var o=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=r;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return`NoWorkResult`}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let o=a;this.result=new i(this._processor,void 0,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let c=new n(o,void 0,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.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().finally(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[]}};t.exports=o,o.default=o}),oe=o((e,t)=>{var n=ee(),r=ie(),i=ae(),a=T(),o=class{constructor(e=[]){this.version=`8.5.32`,this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n==`object`&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n==`object`&&n.postcssPlugin)t.push(n);else if(typeof n==`function`)t.push(n);else if(typeof n!=`object`||!n.parse&&!n.stringify)throw Error(n+` is not a PostCSS plugin`);return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new i(this,e,t):new r(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};t.exports=o,o.default=o,a.registerProcessor(o),n.registerProcessor(o)}),N=o((e,t)=>{var n=w(),r=_(),i=y(),a=f(),o=v(),s=ee(),c=te(),l=C(),u=ie(),d=E(),p=g(),h=A(),b=oe(),x=j(),S=T(),O=D(),k=m(),ne=re();function M(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new b(e)}M.plugin=function(e,t){let n=!1;function r(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
23
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let i=t(...r);return i.postcssPlugin=e,i.postcssVersion=new b().version,i}let i;return Object.defineProperty(r,"postcss",{get(){return i||=r(),i}}),r.process=function(e,t,n){return M([r(n)]).process(e,t)},r},M.stringify=k,M.parse=h,M.fromJSON=c,M.list=d,M.comment=e=>new r(e),M.atRule=e=>new n(e),M.decl=e=>new o(e),M.rule=e=>new O(e),M.root=e=>new S(e),M.document=e=>new s(e),M.CssSyntaxError=a,M.Declaration=o,M.Container=i,M.Processor=b,M.Document=s,M.Comment=r,M.Warning=ne,M.AtRule=n,M.Result=x,M.Input=l,M.Rule=O,M.Root=S,M.Node=p,u.registerPostcss(M),t.exports=M,M.default=M}),P=o((e,t)=>{var{Container:n}=N();t.exports=class extends n{constructor(e){super(e),this.type=`decl`,this.isNested=!0,this.nodes||=[]}}}),F=o((e,t)=>{var n=/[\t\n\f\r "#'()/;[\\\]{}]/g,r=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,i=/.[\r\n"'(/\\]/,a=/[\da-f]/i,o=/[\n\f\r]/g;t.exports=function(e,t={}){let s=e.css.valueOf(),c=t.ignoreErrors,l,u,d,f,p,m,h,g,_,v=s.length,y=0,b=[],x=[],S;function C(){return y}function w(t){throw e.error(`Unclosed `+t,y)}function T(){return x.length===0&&y>=v}function E(){let e=1,t=!1,n=!1;for(;e>0;)u+=1,s.length<=u&&w(`interpolation`),l=s.charCodeAt(u),g=s.charCodeAt(u+1),t?!n&&l===t?(t=!1,n=!1):l===92?n=!n:n&&=!1:l===39||l===34?t=l:l===125?--e:l===35&&g===123&&(e+=1)}function D(e){if(x.length)return x.pop();if(y>=v)return;let t=e?e.ignoreUnclosed:!1;switch(l=s.charCodeAt(y),l){case 10:case 32:case 9:case 13:case 12:u=y;do u+=1,l=s.charCodeAt(u);while(l===32||l===10||l===9||l===13||l===12);_=[`space`,s.slice(y,u)],y=u-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(l);_=[e,e,y];break}case 44:_=[`word`,`,`,y,y+1];break;case 40:if(h=b.length?b.pop()[1]:``,g=s.charCodeAt(y+1),h===`url`&&g!==39&&g!==34){for(S=1,m=!1,u=y+1;u<=s.length-1;){if(g=s.charCodeAt(u),g===92)m=!m;else if(g===40)S+=1;else if(g===41&&(--S,S===0))break;u+=1}f=s.slice(y,u+1),_=[`brackets`,f,y,u],y=u}else u=s.indexOf(`)`,y+1),f=s.slice(y,u+1),u===-1||i.test(f)?_=[`(`,`(`,y]:(_=[`brackets`,f,y,u],y=u);break;case 39:case 34:for(d=l,u=y,m=!1;u<v&&(u++,u===v&&w(`string`),l=s.charCodeAt(u),g=s.charCodeAt(u+1),m||l!==d);)l===92?m=!m:m?m=!1:l===35&&g===123&&E();_=[`string`,s.slice(y,u+1),y,u],y=u;break;case 64:n.lastIndex=y+1,n.test(s),u=n.lastIndex===0?s.length-1:n.lastIndex-2,_=[`at-word`,s.slice(y,u+1),y,u],y=u;break;case 92:for(u=y,p=!0;s.charCodeAt(u+1)===92;)u+=1,p=!p;if(l=s.charCodeAt(u+1),p&&l!==47&&l!==32&&l!==10&&l!==9&&l!==13&&l!==12&&(u+=1,a.test(s.charAt(u)))){for(;a.test(s.charAt(u+1));)u+=1;s.charCodeAt(u+1)===32&&(u+=1)}_=[`word`,s.slice(y,u+1),y,u],y=u;break;default:g=s.charCodeAt(y+1),l===35&&g===123?(u=y,E(),f=s.slice(y,u+1),_=[`word`,f,y,u],y=u):l===47&&g===42?(u=s.indexOf(`*/`,y+2)+1,u===0&&(c||t?u=s.length:w(`comment`)),_=[`comment`,s.slice(y,u+1),y,u],y=u):l===47&&g===47?(o.lastIndex=y+1,o.test(s),u=o.lastIndex===0?s.length-1:o.lastIndex-2,f=s.slice(y,u+1),_=[`comment`,f,y,u,`inline`],y=u):(r.lastIndex=y+1,r.test(s),u=r.lastIndex===0?s.length-1:r.lastIndex-2,_=[`word`,s.slice(y,u+1),y,u],b.push(_),y=u)}return y++,_}function O(e){x.push(e)}return{back:O,endOfFile:T,nextToken:D,position:C}}}),se=o((e,t)=>{var{Comment:n}=N(),r=k(),i=P(),a=F();t.exports=class extends r{atrule(e){let t=e[1],n=e;for(;!this.tokenizer.endOfFile();){let e=this.tokenizer.nextToken();if(e[0]===`word`&&e[2]===n[3]+1)t+=e[1],n=e;else{this.tokenizer.back(e);break}}super.atrule([`at-word`,t,e[2],n[3]])}comment(e){if(e[4]===`inline`){let t=new n;this.init(t,e[2]),t.raws.inline=!0;let r=this.input.fromOffset(e[3]);t.source.end={column:r.col,line:r.line,offset:e[3]+1};let i=e[1].slice(2);if(/^\s*$/.test(i))t.text=``,t.raws.left=i,t.raws.right=``;else{let e=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2].replace(/(\*\/|\/\*)/g,`*//*`),t.raws.left=e[1],t.raws.right=e[3],t.raws.text=e[2]}}else super.comment(e)}createTokenizer(){this.tokenizer=a(this.input)}raw(e,t,n,r){if(super.raw(e,t,n,r),e.raws[t]){let r=e.raws[t].raw;e.raws[t].raw=n.reduce((e,t)=>{if(t[0]===`comment`&&t[4]===`inline`){let n=t[1].slice(2).replace(/(\*\/|\/\*)/g,`*//*`);return e+`/*`+n+`*/`}return e+t[1]},``),r!==e.raws[t].raw&&(e.raws[t].scss=r)}}rule(e){let t=!1,n=0,r=``;for(let i of e)if(t)i[0]!==`comment`&&i[0]!==`{`&&(r+=i[1]);else{if(i[0]===`space`&&i[1].includes(`
24
+ `))break;i[0]===`(`?n+=1:i[0]===`)`?--n:n===0&&i[0]===`:`&&(t=!0)}if(!t||r.trim()===``||/^[#:A-Za-z-]/.test(r))super.rule(e);else{e.pop();let t=new i;this.init(t,e[0][2]);let n;for(let t=e.length-1;t>=0;t--)if(e[t][0]!==`space`){n=e[t];break}if(n[3]){let e=this.input.fromOffset(n[3]);t.source.end={column:e.col,line:e.line,offset:n[3]+1}}else{let e=this.input.fromOffset(n[2]);t.source.end={column:e.col,line:e.line,offset:n[2]+1}}for(;e[0][0]!==`word`;)t.raws.before+=e.shift()[1];if(e[0][2]){let n=this.input.fromOffset(e[0][2]);t.source.start={column:n.col,line:n.line,offset:e[0][2]}}for(t.prop=``;e.length;){let n=e[0][0];if(n===`:`||n===`space`||n===`comment`)break;t.prop+=e.shift()[1]}t.raws.between=``;let r;for(;e.length;)if(r=e.shift(),r[0]===`:`){t.raws.between+=r[1];break}else t.raws.between+=r[1];(t.prop[0]===`_`||t.prop[0]===`*`)&&(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1)),t.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(let n=e.length-1;n>0;n--){if(r=e[n],r[1]===`!important`){t.important=!0;let r=this.stringFrom(e,n);r=this.spacesFromEnd(e)+r,r!==` !important`&&(t.raws.important=r);break}if(r[1]===`important`){let r=e.slice(0),i=``;for(let e=n;e>0;e--){let t=r[e][0];if(i.trim().indexOf(`!`)===0&&t!==`space`)break;i=r.pop()[1]+i}i.trim().indexOf(`!`)===0&&(t.important=!0,t.raws.important=i,e=r)}if(r[0]!==`space`&&r[0]!==`comment`)break}this.raw(t,`value`,e),t.value.includes(`:`)&&this.checkMissedSemicolon(e),this.current=t}}}}),ce=o((e,t)=>{var{Input:n}=N(),r=se();t.exports=function(e,t){let i=new r(new n(e,t));return i.parse(),i.root}}),le=o(e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e){this.after=e.after,this.before=e.before,this.type=e.type,this.value=e.value,this.sourceIndex=e.sourceIndex}e.default=t}),ue=o(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=n(le());function n(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=this;this.constructor(e),this.nodes=e.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:``),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:``),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(e){e.parent=t})}r.prototype=Object.create(t.default.prototype),r.constructor=t.default,r.prototype.walk=function(e,t){for(var n=typeof e==`string`||e instanceof RegExp,r=n?t:e,i=typeof e==`string`?new RegExp(e):e,a=0;a<this.nodes.length;a++){var o=this.nodes[a];if((!n||i.test(o.type))&&r&&r(o,a,this.nodes)===!1||o.nodes&&o.walk(e,t)===!1)return!1}return!0},r.prototype.each=function(){for(var e=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],t=0;t<this.nodes.length;t++){var n=this.nodes[t];if(e(n,t,this.nodes)===!1)return!1}return!0},e.default=r}),de=o(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseMediaFeature=i,e.parseMediaQuery=a,e.parseMediaList=o;var t=r(le()),n=r(ue());function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=arguments.length<=1||arguments[1]===void 0?0:arguments[1],n=[{mode:`normal`,character:null}],r=[],i=0,a=``,o=null,s=null,c=t,l=e;e[0]===`(`&&e[e.length-1]===`)`&&(l=e.substring(1,e.length-1),c++);for(var u=0;u<l.length;u++){var d=l[u];if((d===`'`||d===`"`)&&(n[i].isCalculationEnabled===!0?(n.push({mode:`string`,isCalculationEnabled:!1,character:d}),i++):n[i].mode===`string`&&n[i].character===d&&l[u-1]!==`\\`&&(n.pop(),i--)),d===`{`?(n.push({mode:`interpolation`,isCalculationEnabled:!0}),i++):d===`}`&&(n.pop(),i--),n[i].mode===`normal`&&d===`:`){var f=l.substring(u+1);s={type:`value`,before:/^(\s*)/.exec(f)[1],after:/(\s*)$/.exec(f)[1],value:f.trim()},s.sourceIndex=s.before.length+u+1+c,o={type:`colon`,sourceIndex:u+c,after:s.before,value:`:`};break}a+=d}return a={type:`media-feature`,before:/^(\s*)/.exec(a)[1],after:/(\s*)$/.exec(a)[1],value:a.trim()},a.sourceIndex=a.before.length+c,r.push(a),o!==null&&(o.before=a.after,r.push(o)),s!==null&&r.push(s),r}function a(e){var r=arguments.length<=1||arguments[1]===void 0?0:arguments[1],a=[],o=0,s=!1,c=void 0;function l(){return{before:``,after:``,value:``}}c=l();for(var u=0;u<e.length;u++){var d=e[u];s?(c.value+=d,(d===`{`||d===`(`)&&o++,(d===`)`||d===`}`)&&o--):d.search(/\s/)===-1?(d===`(`&&(c.type=`media-feature-expression`,o++),c.value=d,c.sourceIndex=r+u,s=!0):c.before+=d,s&&o===0&&(d===`)`||u===e.length-1||e[u+1].search(/\s/)!==-1)&&([`not`,`only`,`and`].indexOf(c.value)!==-1&&(c.type=`keyword`),c.type===`media-feature-expression`&&(c.nodes=i(c.value,c.sourceIndex)),a.push(Array.isArray(c.nodes)?new n.default(c):new t.default(c)),c=l(),s=!1)}for(var f=0;f<a.length;f++)if(c=a[f],f>0&&(a[f-1].after=c.before),c.type===void 0){if(f>0){if(a[f-1].type===`media-feature-expression`){c.type=`keyword`;continue}if(a[f-1].value===`not`||a[f-1].value===`only`){c.type=`media-type`;continue}if(a[f-1].value===`and`){c.type=`media-feature-expression`;continue}a[f-1].type===`media-type`&&(a[f+1]?c.type=a[f+1].type===`media-feature-expression`?`keyword`:`media-feature-expression`:c.type=`media-feature-expression`)}if(f===0){if(!a[f+1]||a[f+1]&&(a[f+1].type===`media-feature-expression`||a[f+1].type===`keyword`)){c.type=`media-type`;continue}if(a[f+2]){if(a[f+2].type===`media-feature-expression`){c.type=`media-type`,a[f+1].type=`keyword`;continue}if(a[f+2].type===`keyword`){c.type=`keyword`,a[f+1].type=`media-type`;continue}}if(a[f+3]&&a[f+3].type===`media-feature-expression`){c.type=`keyword`,a[f+1].type=`media-type`,a[f+2].type=`keyword`;continue}}}return a}function o(e){var r=[],i=0,o=0,s=/^(\s*)url\s*\(/.exec(e);if(s!==null){for(var c=s[0].length,l=1;l>0;){var u=e[c];u===`(`&&l++,u===`)`&&l--,c++}r.unshift(new t.default({type:`url`,value:e.substring(0,c).trim(),sourceIndex:s[1].length,before:s[1],after:/^(\s*)/.exec(e.substring(c))[1]})),i=c}for(var d=i;d<e.length;d++){var f=e[d];if(f===`(`&&o++,f===`)`&&o--,o===0&&f===`,`){var p=e.substring(i,d),m=/^(\s*)/.exec(p)[1];r.push(new n.default({type:`media-query`,value:p.trim(),sourceIndex:i+m.length,nodes:a(p,i),before:m,after:/(\s*)$/.exec(p)[1]})),i=d+1}}var h=e.substring(i),g=/^(\s*)/.exec(h)[1];return r.push(new n.default({type:`media-query`,value:h.trim(),sourceIndex:i+g.length,nodes:a(h,i),before:g,after:/(\s*)$/.exec(h)[1]})),r}}),fe=o(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=r(ue()),n=de();function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return new t.default({nodes:(0,n.parseMediaList)(e),type:`media-query-list`,value:e.trim()})}}),pe=o((e,t)=>{t.exports=function(e,t){return t=typeof t==`number`?t:1/0,t?n(e,1):Array.isArray(e)?e.map(function(e){return e}):e;function n(e,r){return e.reduce(function(e,i){return Array.isArray(i)&&r<t?e.concat(n(i,r+1)):e.concat(i)},[])}}}),me=o((e,t)=>{t.exports=function(e,t){for(var n=-1,r=[];(n=e.indexOf(t,n+1))!==-1;)r.push(n);return r}}),he=o((e,t)=>{function n(e,t){for(var n=1,r=e.length,i=e[0],a=e[0],o=1;o<r;++o)if(a=i,i=e[o],t(i,a)){if(o===n){n++;continue}e[n++]=i}return e.length=n,e}function r(e){for(var t=1,n=e.length,r=e[0],i=e[0],a=1;a<n;++a,i=r)if(i=r,r=e[a],r!==i){if(a===t){t++;continue}e[t++]=r}return e.length=t,e}function i(e,t,i){return e.length===0?e:t?(i||e.sort(t),n(e,t)):(i||e.sort(),r(e))}t.exports=i}),ge=o((e,t)=>{e.__esModule=!0;var n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e};function r(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var i=function e(t,r){if((typeof t>`u`?`undefined`:n(t))!==`object`)return t;var i=new t.constructor;for(var a in t)if(t.hasOwnProperty(a)){var o=t[a],s=typeof o>`u`?`undefined`:n(o);a===`parent`&&s===`object`?r&&(i[a]=r):i[a]=o instanceof Array?o.map(function(t){return e(t,i)}):e(o,i)}return i};e.default=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};for(var n in r(this,e),t)this[n]=t[n];var i=t.spaces;i=i===void 0?{}:i;var a=i.before,o=a===void 0?``:a,s=i.after,c=s===void 0?``:s;this.spaces={before:o,after:c}}return e.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},e.prototype.replaceWith=function(){if(this.parent){for(var e in arguments)this.parent.insertBefore(this,arguments[e]);this.remove()}return this},e.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},e.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},e.prototype.clone=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=i(this);for(var n in e)t[n]=e[n];return t},e.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join(``)},e})(),t.exports=e.default}),I=o(e=>{e.__esModule=!0,e.TAG=`tag`,e.STRING=`string`,e.SELECTOR=`selector`,e.ROOT=`root`,e.PSEUDO=`pseudo`,e.NESTING=`nesting`,e.ID=`id`,e.COMMENT=`comment`,e.COMBINATOR=`combinator`,e.CLASS=`class`,e.ATTRIBUTE=`attribute`,e.UNIVERSAL=`universal`}),_e=o((e,t)=>{e.__esModule=!0;var n=(function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),r=o(ge()),i=a(I());function a(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function c(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function l(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){l(t,e);function t(n){s(this,t);var r=c(this,e.call(this,n));return r.nodes||=[],r}return t.prototype.append=function(e){return e.parent=this,this.nodes.push(e),this},t.prototype.prepend=function(e){return e.parent=this,this.nodes.unshift(e),this},t.prototype.at=function(e){return this.nodes[e]},t.prototype.index=function(e){return typeof e==`number`?e:this.nodes.indexOf(e)},t.prototype.removeChild=function(e){e=this.index(e),this.at(e).parent=void 0,this.nodes.splice(e,1);var t=void 0;for(var n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this},t.prototype.removeAll=function(){for(var e=this.nodes,t=Array.isArray(e),n=0,e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if(n=e.next(),n.done)break;r=n.value}var i=r;i.parent=void 0}return this.nodes=[],this},t.prototype.empty=function(){return this.removeAll()},t.prototype.insertAfter=function(e,t){var n=this.index(e);this.nodes.splice(n+1,0,t);var r=void 0;for(var i in this.indexes)r=this.indexes[i],n<=r&&(this.indexes[i]=r+this.nodes.length);return this},t.prototype.insertBefore=function(e,t){var n=this.index(e);this.nodes.splice(n,0,t);var r=void 0;for(var i in this.indexes)r=this.indexes[i],n<=r&&(this.indexes[i]=r+this.nodes.length);return this},t.prototype.each=function(e){this.lastEach||=0,this.indexes||={},this.lastEach++;var t=this.lastEach;if(this.indexes[t]=0,this.length){for(var n=void 0,r=void 0;this.indexes[t]<this.length&&(n=this.indexes[t],r=e(this.at(n),n),r!==!1);)this.indexes[t]+=1;if(delete this.indexes[t],r===!1)return!1}},t.prototype.walk=function(e){return this.each(function(t,n){var r=e(t,n);if(r!==!1&&t.length&&(r=t.walk(e)),r===!1)return!1})},t.prototype.walkAttributes=function(e){var t=this;return this.walk(function(n){if(n.type===i.ATTRIBUTE)return e.call(t,n)})},t.prototype.walkClasses=function(e){var t=this;return this.walk(function(n){if(n.type===i.CLASS)return e.call(t,n)})},t.prototype.walkCombinators=function(e){var t=this;return this.walk(function(n){if(n.type===i.COMBINATOR)return e.call(t,n)})},t.prototype.walkComments=function(e){var t=this;return this.walk(function(n){if(n.type===i.COMMENT)return e.call(t,n)})},t.prototype.walkIds=function(e){var t=this;return this.walk(function(n){if(n.type===i.ID)return e.call(t,n)})},t.prototype.walkNesting=function(e){var t=this;return this.walk(function(n){if(n.type===i.NESTING)return e.call(t,n)})},t.prototype.walkPseudos=function(e){var t=this;return this.walk(function(n){if(n.type===i.PSEUDO)return e.call(t,n)})},t.prototype.walkTags=function(e){var t=this;return this.walk(function(n){if(n.type===i.TAG)return e.call(t,n)})},t.prototype.walkUniversals=function(e){var t=this;return this.walk(function(n){if(n.type===i.UNIVERSAL)return e.call(t,n)})},t.prototype.split=function(e){var t=this,n=[];return this.reduce(function(r,i,a){var o=e.call(t,i);return n.push(i),o?(r.push(n),n=[]):a===t.length-1&&r.push(n),r},[])},t.prototype.map=function(e){return this.nodes.map(e)},t.prototype.reduce=function(e,t){return this.nodes.reduce(e,t)},t.prototype.every=function(e){return this.nodes.every(e)},t.prototype.some=function(e){return this.nodes.some(e)},t.prototype.filter=function(e){return this.nodes.filter(e)},t.prototype.sort=function(e){return this.nodes.sort(e)},t.prototype.toString=function(){return this.map(String).join(``)},n(t,[{key:`first`,get:function(){return this.at(0)}},{key:`last`,get:function(){return this.at(this.length-1)}},{key:`length`,get:function(){return this.nodes.length}}]),t})(r.default),t.exports=e.default}),ve=o((e,t)=>{e.__esModule=!0;var n=i(_e()),r=I();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){s(t,e);function t(n){a(this,t);var i=o(this,e.call(this,n));return i.type=r.ROOT,i}return t.prototype.toString=function(){var e=this.reduce(function(e,t){var n=String(t);return n?e+n+`,`:``},``).slice(0,-1);return this.trailingComma?e+`,`:e},t})(n.default),t.exports=e.default}),ye=o((e,t)=>{e.__esModule=!0;var n=i(_e()),r=I();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){s(t,e);function t(n){a(this,t);var i=o(this,e.call(this,n));return i.type=r.SELECTOR,i}return t})(n.default),t.exports=e.default}),be=o((e,t)=>{e.__esModule=!0;var n=(function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),r=i(ge());function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){s(t,e);function t(){return a(this,t),o(this,e.apply(this,arguments))}return t.prototype.toString=function(){return[this.spaces.before,this.ns,String(this.value),this.spaces.after].join(``)},n(t,[{key:`ns`,get:function(){var e=this.namespace;return e?(typeof e==`string`?e:``)+`|`:``}}]),t})(r.default),t.exports=e.default}),xe=o((e,t)=>{e.__esModule=!0;var n=i(be()),r=I();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){s(t,e);function t(n){a(this,t);var i=o(this,e.call(this,n));return i.type=r.CLASS,i}return t.prototype.toString=function(){return[this.spaces.before,this.ns,`.`+this.value,this.spaces.after].join(``)},t})(n.default),t.exports=e.default}),Se=o((e,t)=>{e.__esModule=!0;var n=i(ge()),r=I();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){s(t,e);function t(n){a(this,t);var i=o(this,e.call(this,n));return i.type=r.COMMENT,i}return t})(n.default),t.exports=e.default}),Ce=o((e,t)=>{e.__esModule=!0;var n=i(be()),r=I();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){s(t,e);function t(n){a(this,t);var i=o(this,e.call(this,n));return i.type=r.ID,i}return t.prototype.toString=function(){return[this.spaces.before,this.ns,`#`+this.value,this.spaces.after].join(``)},t})(n.default),t.exports=e.default}),we=o((e,t)=>{e.__esModule=!0;var n=i(be()),r=I();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){s(t,e);function t(n){a(this,t);var i=o(this,e.call(this,n));return i.type=r.TAG,i}return t})(n.default),t.exports=e.default}),Te=o((e,t)=>{e.__esModule=!0;var n=i(ge()),r=I();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){s(t,e);function t(n){a(this,t);var i=o(this,e.call(this,n));return i.type=r.STRING,i}return t})(n.default),t.exports=e.default}),Ee=o((e,t)=>{e.__esModule=!0;var n=i(_e()),r=I();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){s(t,e);function t(n){a(this,t);var i=o(this,e.call(this,n));return i.type=r.PSEUDO,i}return t.prototype.toString=function(){var e=this.length?`(`+this.map(String).join(`,`)+`)`:``;return[this.spaces.before,String(this.value),e,this.spaces.after].join(``)},t})(n.default),t.exports=e.default}),De=o((e,t)=>{e.__esModule=!0;var n=i(be()),r=I();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){s(t,e);function t(n){a(this,t);var i=o(this,e.call(this,n));return i.type=r.ATTRIBUTE,i.raws={},i}return t.prototype.toString=function(){var e=[this.spaces.before,`[`,this.ns,this.attribute];return this.operator&&e.push(this.operator),this.value&&e.push(this.value),this.raws.insensitive?e.push(this.raws.insensitive):this.insensitive&&e.push(` i`),e.push(`]`),e.concat(this.spaces.after).join(``)},t})(n.default),t.exports=e.default}),Oe=o((e,t)=>{e.__esModule=!0;var n=i(be()),r=I();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){s(t,e);function t(n){a(this,t);var i=o(this,e.call(this,n));return i.type=r.UNIVERSAL,i.value=`*`,i}return t})(n.default),t.exports=e.default}),ke=o((e,t)=>{e.__esModule=!0;var n=i(ge()),r=I();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){s(t,e);function t(n){a(this,t);var i=o(this,e.call(this,n));return i.type=r.COMBINATOR,i}return t})(n.default),t.exports=e.default}),Ae=o((e,t)=>{e.__esModule=!0;var n=i(ge()),r=I();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){s(t,e);function t(n){a(this,t);var i=o(this,e.call(this,n));return i.type=r.NESTING,i.value=`&`,i}return t})(n.default),t.exports=e.default}),je=o((e,t)=>{e.__esModule=!0,e.default=n;function n(e){return e.sort(function(e,t){return e-t})}t.exports=e.default}),Me=o((e,t)=>{e.__esModule=!0,e.default=D;var n=39,r=34,i=92,a=47,o=10,s=32,c=12,l=9,u=13,d=43,f=62,p=126,m=124,h=44,g=40,_=41,v=91,y=93,b=59,x=42,S=58,C=38,w=64,T=/[ \n\t\r\{\(\)'"\\;/]/g,E=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function D(e){for(var t=[],D=e.css.valueOf(),O=void 0,k=void 0,A=void 0,ee=void 0,te=void 0,ne=void 0,re=void 0,j=void 0,M=void 0,ie=void 0,ae=void 0,oe=D.length,N=-1,P=1,F=0,se=function(t,n){if(e.safe)D+=n,k=D.length-1;else throw e.error(`Unclosed `+t,P,F-N,F)};F<oe;){switch(O=D.charCodeAt(F),O===o&&(N=F,P+=1),O){case o:case s:case l:case u:case c:k=F;do k+=1,O=D.charCodeAt(k),O===o&&(N=k,P+=1);while(O===s||O===o||O===l||O===u||O===c);t.push([`space`,D.slice(F,k),P,F-N,F]),F=k-1;break;case d:case f:case p:case m:k=F;do k+=1,O=D.charCodeAt(k);while(O===d||O===f||O===p||O===m);t.push([`combinator`,D.slice(F,k),P,F-N,F]),F=k-1;break;case x:t.push([`*`,`*`,P,F-N,F]);break;case C:t.push([`&`,`&`,P,F-N,F]);break;case h:t.push([`,`,`,`,P,F-N,F]);break;case v:t.push([`[`,`[`,P,F-N,F]);break;case y:t.push([`]`,`]`,P,F-N,F]);break;case S:t.push([`:`,`:`,P,F-N,F]);break;case b:t.push([`;`,`;`,P,F-N,F]);break;case g:t.push([`(`,`(`,P,F-N,F]);break;case _:t.push([`)`,`)`,P,F-N,F]);break;case n:case r:A=O===n?`'`:`"`,k=F;do for(ie=!1,k=D.indexOf(A,k+1),k===-1&&se(`quote`,A),ae=k;D.charCodeAt(ae-1)===i;)--ae,ie=!ie;while(ie);t.push([`string`,D.slice(F,k+1),P,F-N,P,k-N,F]),F=k;break;case w:T.lastIndex=F+1,T.test(D),k=T.lastIndex===0?D.length-1:T.lastIndex-2,t.push([`at-word`,D.slice(F,k+1),P,F-N,P,k-N,F]),F=k;break;case i:for(k=F,re=!0;D.charCodeAt(k+1)===i;)k+=1,re=!re;O=D.charCodeAt(k+1),re&&O!==a&&O!==s&&O!==o&&O!==l&&O!==u&&O!==c&&(k+=1),t.push([`word`,D.slice(F,k+1),P,F-N,P,k-N,F]),F=k;break;default:O===a&&D.charCodeAt(F+1)===x?(k=D.indexOf(`*/`,F+2)+1,k===0&&se(`comment`,`*/`),ne=D.slice(F,k+1),ee=ne.split(`
25
+ `),te=ee.length-1,te>0?(j=P+te,M=k-ee[te].length):(j=P,M=N),t.push([`comment`,ne,P,F-N,j,k-M,F]),N=M,P=j,F=k):(E.lastIndex=F+1,E.test(D),k=E.lastIndex===0?D.length-1:E.lastIndex-2,t.push([`word`,D.slice(F,k+1),P,F-N,P,k-N,F]),F=k)}F++}return t}t.exports=e.default}),Ne=o((e,t)=>{e.__esModule=!0;var n=(function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),r=S(pe()),i=S(me()),a=S(he()),o=S(ve()),s=S(ye()),c=S(xe()),l=S(Se()),u=S(Ce()),d=S(we()),f=S(Te()),p=S(Ee()),m=S(De()),h=S(Oe()),g=S(ke()),_=S(Ae()),v=S(je()),y=S(Me()),b=x(I());function x(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function S(e){return e&&e.__esModule?e:{default:e}}function C(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}e.default=(function(){function e(t){C(this,e),this.input=t,this.lossy=t.options.lossless===!1,this.position=0,this.root=new o.default;var n=new s.default;return this.root.append(n),this.current=n,this.tokens=this.lossy?(0,y.default)({safe:t.safe,css:t.css.trim()}):(0,y.default)(t),this.loop()}return e.prototype.attribute=function(){var e=``,t=void 0,n=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!==`]`;)e+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~e.indexOf(`]`)&&this.error(`Expected a closing square bracket.`);var r=e.split(/((?:[*~^$|]?=))([^]*)/),i=r[0].split(/(\|)/g),a={operator:r[1],value:r[2],source:{start:{line:n[2],column:n[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:n[4]};if(i.length>1?(i[0]===``&&(i[0]=!0),a.attribute=this.parseValue(i[2]),a.namespace=this.parseNamespace(i[0])):a.attribute=this.parseValue(r[0]),t=new m.default(a),r[2]){var o=r[2].split(/(\s+i\s*?)$/),s=o[0].trim();t.value=this.lossy?s:o[0],o[1]&&(t.insensitive=!0,this.lossy||(t.raws.insensitive=o[1])),t.quoted=s[0]===`'`||s[0]===`"`,t.raws.unquoted=t.quoted?s.slice(1,-1):s}this.newNode(t),this.position++},e.prototype.combinator=function(){if(this.currToken[1]===`|`)return this.namespace();for(var e=new g.default({value:``,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position<this.tokens.length&&this.currToken&&(this.currToken[0]===`space`||this.currToken[0]===`combinator`);)this.nextToken&&this.nextToken[0]===`combinator`?(e.spaces.before=this.parseSpace(this.currToken[1]),e.source.start.line=this.nextToken[2],e.source.start.column=this.nextToken[3],e.source.end.column=this.nextToken[3],e.source.end.line=this.nextToken[2],e.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]===`combinator`?e.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]===`combinator`?e.value=this.currToken[1]:this.currToken[0]===`space`&&(e.value=this.parseSpace(this.currToken[1],` `)),this.position++;return this.newNode(e)},e.prototype.comma=function(){if(this.position===this.tokens.length-1)this.root.trailingComma=!0,this.position++;else{var e=new s.default;this.current.parent.append(e),this.current=e,this.position++}},e.prototype.comment=function(){var e=new l.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]});this.newNode(e),this.position++},e.prototype.error=function(e){throw new this.input.error(e)},e.prototype.missingBackslash=function(){return this.error(`Expected a backslash preceding the semicolon.`)},e.prototype.missingParenthesis=function(){return this.error(`Expected opening parenthesis.`)},e.prototype.missingSquareBracket=function(){return this.error(`Expected opening square bracket.`)},e.prototype.namespace=function(){var e=this.prevToken&&this.prevToken[1]||!0;if(this.nextToken[0]===`word`)return this.position++,this.word(e);if(this.nextToken[0]===`*`)return this.position++,this.universal(e)},e.prototype.nesting=function(){this.newNode(new _.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]})),this.position++},e.prototype.parentheses=function(){var e=this.current.last;if(e&&e.type===b.PSEUDO){var t=new s.default,n=this.current;e.append(t),this.current=t;var r=1;for(this.position++;this.position<this.tokens.length&&r;)this.currToken[0]===`(`&&r++,this.currToken[0]===`)`&&r--,r?this.parse():(t.parent.source.end.line=this.currToken[2],t.parent.source.end.column=this.currToken[3],this.position++);r&&this.error(`Expected closing parenthesis.`),this.current=n}else{var i=1;for(this.position++,e.value+=`(`;this.position<this.tokens.length&&i;)this.currToken[0]===`(`&&i++,this.currToken[0]===`)`&&i--,e.value+=this.parseParenthesisToken(this.currToken),this.position++;i&&this.error(`Expected closing parenthesis.`)}},e.prototype.pseudo=function(){for(var e=this,t=``,n=this.currToken;this.currToken&&this.currToken[0]===`:`;)t+=this.currToken[1],this.position++;if(!this.currToken)return this.error(`Expected pseudo-class or pseudo-element`);if(this.currToken[0]===`word`){var r=void 0;this.splitWord(!1,function(i,a){t+=i,r=new p.default({value:t,source:{start:{line:n[2],column:n[3]},end:{line:e.currToken[4],column:e.currToken[5]}},sourceIndex:n[4]}),e.newNode(r),a>1&&e.nextToken&&e.nextToken[0]===`(`&&e.error(`Misplaced parenthesis.`)})}else this.error(`Unexpected "`+this.currToken[0]+`" found.`)},e.prototype.space=function(){var e=this.currToken;this.position===0||this.prevToken[0]===`,`||this.prevToken[0]===`(`?(this.spaces=this.parseSpace(e[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===`,`||this.nextToken[0]===`)`?(this.current.last.spaces.after=this.parseSpace(e[1]),this.position++):this.combinator()},e.prototype.string=function(){var e=this.currToken;this.newNode(new f.default({value:this.currToken[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++},e.prototype.universal=function(e){var t=this.nextToken;if(t&&t[1]===`|`)return this.position++,this.namespace();this.newNode(new h.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),e),this.position++},e.prototype.splitWord=function(e,t){for(var n=this,o=this.nextToken,s=this.currToken[1];o&&o[0]===`word`;){this.position++;var l=this.currToken[1];if(s+=l,l.lastIndexOf(`\\`)===l.length-1){var f=this.nextToken;f&&f[0]===`space`&&(s+=this.parseSpace(f[1],` `),this.position++)}o=this.nextToken}var p=(0,i.default)(s,`.`),m=(0,i.default)(s,`#`),h=(0,i.default)(s,`#{`);h.length&&(m=m.filter(function(e){return!~h.indexOf(e)}));var g=(0,v.default)((0,a.default)((0,r.default)([[0],p,m])));g.forEach(function(r,i){var a=g[i+1]||s.length,o=s.slice(r,a);if(i===0&&t)return t.call(n,o,g.length);var l=void 0;l=~p.indexOf(r)?new c.default({value:o.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+r},end:{line:n.currToken[4],column:n.currToken[3]+(a-1)}},sourceIndex:n.currToken[6]+g[i]}):~m.indexOf(r)?new u.default({value:o.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+r},end:{line:n.currToken[4],column:n.currToken[3]+(a-1)}},sourceIndex:n.currToken[6]+g[i]}):new d.default({value:o,source:{start:{line:n.currToken[2],column:n.currToken[3]+r},end:{line:n.currToken[4],column:n.currToken[3]+(a-1)}},sourceIndex:n.currToken[6]+g[i]}),n.newNode(l,e)}),this.position++},e.prototype.word=function(e){var t=this.nextToken;return t&&t[1]===`|`?(this.position++,this.namespace()):this.splitWord(e)},e.prototype.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.root},e.prototype.parse=function(e){switch(this.currToken[0]){case`space`:this.space();break;case`comment`:this.comment();break;case`(`:this.parentheses();break;case`)`:e&&this.missingParenthesis();break;case`[`:this.attribute();break;case`]`:this.missingSquareBracket();break;case`at-word`:case`word`:this.word();break;case`:`:this.pseudo();break;case`;`:this.missingBackslash();break;case`,`:this.comma();break;case`*`:this.universal();break;case`&`:this.nesting();break;case`combinator`:this.combinator();break;case`string`:this.string()}},e.prototype.parseNamespace=function(e){if(this.lossy&&typeof e==`string`){var t=e.trim();return!t.length||t}return e},e.prototype.parseSpace=function(e,t){return this.lossy?t||``:e},e.prototype.parseValue=function(e){return this.lossy&&e&&typeof e==`string`?e.trim():e},e.prototype.parseParenthesisToken=function(e){return this.lossy?e[0]===`space`?this.parseSpace(e[1],` `):this.parseValue(e[1]):e[1]},e.prototype.newNode=function(e,t){return t&&(e.namespace=this.parseNamespace(t)),this.spaces&&=(e.spaces.before=this.spaces,``),this.current.append(e)},n(e,[{key:`currToken`,get:function(){return this.tokens[this.position]}},{key:`nextToken`,get:function(){return this.tokens[this.position+1]}},{key:`prevToken`,get:function(){return this.tokens[this.position-1]}}]),e})(),t.exports=e.default}),Pe=o((e,t)=>{e.__esModule=!0;var n=(function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),r=i(Ne());function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}e.default=(function(){function e(t){return a(this,e),this.func=t||function(){},this}return e.prototype.process=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new r.default({css:e,error:function(e){throw Error(e)},options:t});return this.res=n,this.func(n),this},n(e,[{key:`result`,get:function(){return String(this.res)}}]),e})(),t.exports=e.default}),L=o((e,t)=>{var n=function(e,t){let r=new e.constructor;for(let i in e){if(!e.hasOwnProperty(i))continue;let a=e[i],o=typeof a;i===`parent`&&o===`object`?t&&(r[i]=t):i===`source`?r[i]=a:a instanceof Array?r[i]=a.map(e=>n(e,r)):i!==`before`&&i!==`after`&&i!==`between`&&i!==`semicolon`&&(o===`object`&&a!==null&&(a=n(a)),r[i]=a)}return r};t.exports=class{constructor(e){e||={},this.raws={before:``,after:``};for(let t in e)this[t]=e[t]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join(``)}clone(e){e||={};let t=n(this);for(let n in e)t[n]=e[n];return t}cloneBefore(e){e||={};let t=this.clone(e);return this.parent.insertBefore(this,t),t}cloneAfter(e){e||={};let t=this.clone(e);return this.parent.insertAfter(this,t),t}replaceWith(){let e=Array.prototype.slice.call(arguments);if(this.parent){for(let t of e)this.parent.insertBefore(this,t);this.remove()}return this}moveTo(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this}moveBefore(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this}moveAfter(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this}next(){let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){let e=this.parent.index(this);return this.parent.nodes[e-1]}toJSON(){let e={};for(let t in this){if(!this.hasOwnProperty(t)||t===`parent`)continue;let n=this[t];e[t]=n instanceof Array?n.map(e=>typeof e==`object`&&e.toJSON?e.toJSON():e):typeof n==`object`&&n.toJSON?n.toJSON():n}return e}root(){let e=this;for(;e.parent;)e=e.parent;return e}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}positionInside(e){let t=this.toString(),n=this.source.start.column,r=this.source.start.line;for(let i=0;i<e;i++)t[i]===`
26
+ `?(n=1,r+=1):n+=1;return{line:r,column:n}}positionBy(e){let t=this.source.start;if(Object(e).index)t=this.positionInside(e.index);else if(Object(e).word){let n=this.toString().indexOf(e.word);n!==-1&&(t=this.positionInside(n))}return t}}}),R=o((e,t)=>{var n=L(),r=class extends n{constructor(e){super(e),this.nodes||=[]}push(e){return e.parent=this,this.nodes.push(e),this}each(e){this.lastEach||=0,this.indexes||={},this.lastEach+=1;let t=this.lastEach,n,r;if(this.indexes[t]=0,this.nodes){for(;this.indexes[t]<this.nodes.length&&(n=this.indexes[t],r=e(this.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}}walk(e){return this.each((t,n)=>{let r=e(t,n);return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkType(e,t){if(!e||!t)throw Error(`Parameters {type} and {callback} are required.`);let n=typeof e==`function`;return this.walk((r,i)=>{if(n&&r instanceof e||!n&&r.type===e)return t.call(this,r,i)})}append(e){return e.parent=this,this.nodes.push(e),this}prepend(e){return e.parent=this,this.nodes.unshift(e),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}insertAfter(e,t){let n=this.index(e),r;this.nodes.splice(n+1,0,t);for(let e in this.indexes)r=this.indexes[e],n<=r&&(this.indexes[e]=r+this.nodes.length);return this}insertBefore(e,t){let n=this.index(e),r;this.nodes.splice(n,0,t);for(let e in this.indexes)r=this.indexes[e],n<=r&&(this.indexes[e]=r+this.nodes.length);return this}removeChild(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this}removeAll(){for(let e of this.nodes)e.parent=void 0;return this.nodes=[],this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e==`number`?e:this.nodes.indexOf(e)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let e=this.nodes.map(String).join(``);return this.value&&(e=this.value+e),this.raws.before&&(e=this.raws.before+e),this.raws.after&&(e+=this.raws.after),e}};r.registerWalker=e=>{let t=`walk`+e.name;t.lastIndexOf(`s`)!==t.length-1&&(t+=`s`),!r.prototype[t]&&(r.prototype[t]=function(t){return this.walkType(e,t)})},t.exports=r}),Fe=o((e,t)=>{var n=R();t.exports=class extends n{constructor(e){super(e),this.type=`root`}}}),Ie=o((e,t)=>{var n=R();t.exports=class extends n{constructor(e){super(e),this.type=`value`,this.unbalanced=0}}}),Le=o((e,t)=>{var n=R(),r=class extends n{constructor(e){super(e),this.type=`atword`}toString(){return this.quoted&&this.raws.quote,[this.raws.before,`@`,String.prototype.toString.call(this.value),this.raws.after].join(``)}};n.registerWalker(r),t.exports=r}),Re=o((e,t)=>{var n=R(),r=L(),i=class extends r{constructor(e){super(e),this.type=`colon`}};n.registerWalker(i),t.exports=i}),ze=o((e,t)=>{var n=R(),r=L(),i=class extends r{constructor(e){super(e),this.type=`comma`}};n.registerWalker(i),t.exports=i}),Be=o((e,t)=>{var n=R(),r=L(),i=class extends r{constructor(e){super(e),this.type=`comment`,this.inline=Object(e).inline||!1}toString(){return[this.raws.before,this.inline?`//`:`/*`,String(this.value),this.inline?``:`*/`,this.raws.after].join(``)}};n.registerWalker(i),t.exports=i}),Ve=o((e,t)=>{var n=R(),r=class extends n{constructor(e){super(e),this.type=`func`,this.unbalanced=-1}};n.registerWalker(r),t.exports=r}),He=o((e,t)=>{var n=R(),r=L(),i=class extends r{constructor(e){super(e),this.type=`number`,this.unit=Object(e).unit||``}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join(``)}};n.registerWalker(i),t.exports=i}),Ue=o((e,t)=>{var n=R(),r=L(),i=class extends r{constructor(e){super(e),this.type=`operator`}};n.registerWalker(i),t.exports=i}),We=o((e,t)=>{var n=R(),r=L(),i=class extends r{constructor(e){super(e),this.type=`paren`,this.parenType=``}};n.registerWalker(i),t.exports=i}),Ge=o((e,t)=>{var n=R(),r=L(),i=class extends r{constructor(e){super(e),this.type=`string`}toString(){let e=this.quoted?this.raws.quote:``;return[this.raws.before,e,this.value+``,e,this.raws.after].join(``)}};n.registerWalker(i),t.exports=i}),Ke=o((e,t)=>{var n=R(),r=L(),i=class extends r{constructor(e){super(e),this.type=`word`}};n.registerWalker(i),t.exports=i}),qe=o((e,t)=>{var n=R(),r=L(),i=class extends r{constructor(e){super(e),this.type=`unicode-range`}};n.registerWalker(i),t.exports=i}),Je=o((e,t)=>{t.exports=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||`An error ocurred while tokzenizing.`,typeof Error.captureStackTrace==`function`?Error.captureStackTrace(this,this.constructor):this.stack=Error(e).stack}}}),Ye=o((e,t)=>{var n=/[ \n\t\r\{\(\)'"\\;,/]/g,r=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,i=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,a=/^[a-z0-9]/i,o=/^[a-f0-9?\-]/i,s=Je();t.exports=function(e,t){t||={};let c=[],l=e.valueOf(),u=l.length,d=-1,f=1,p=0,m=0,h=null,g,_,v,y,b,x,S,C,w,T,E;function D(e){throw new s(`Unclosed ${e} at line: ${f}, column: ${p-d}, token: ${p}`)}for(;p<u;){switch(g=l.charCodeAt(p),g===10&&(d=p,f+=1),g){case 10:case 32:case 9:case 13:case 12:_=p;do _+=1,g=l.charCodeAt(_),g===10&&(d=_,f+=1);while(g===32||g===10||g===9||g===13||g===12);c.push([`space`,l.slice(p,_),f,p-d,f,_-d,p]),p=_-1;break;case 58:_=p+1,c.push([`colon`,l.slice(p,_),f,p-d,f,_-d,p]),p=_-1;break;case 44:_=p+1,c.push([`comma`,l.slice(p,_),f,p-d,f,_-d,p]),p=_-1;break;case 123:c.push([`{`,`{`,f,p-d,f,_-d,p]);break;case 125:c.push([`}`,`}`,f,p-d,f,_-d,p]);break;case 40:m++,h=!h&&m===1&&c.length>0&&c[c.length-1][0]===`word`&&c[c.length-1][1]===`url`,c.push([`(`,`(`,f,p-d,f,_-d,p]);break;case 41:m--,h&&=m>0,c.push([`)`,`)`,f,p-d,f,_-d,p]);break;case 39:case 34:v=g===39?`'`:`"`,_=p;do for(w=!1,_=l.indexOf(v,_+1),_===-1&&D(`quote`,v),T=_;l.charCodeAt(T-1)===92;)--T,w=!w;while(w);c.push([`string`,l.slice(p,_+1),f,p-d,f,_-d,p]),p=_;break;case 64:n.lastIndex=p+1,n.test(l),_=n.lastIndex===0?l.length-1:n.lastIndex-2,c.push([`atword`,l.slice(p,_+1),f,p-d,f,_-d,p]),p=_;break;case 92:_=p,g=l.charCodeAt(_+1),c.push([`word`,l.slice(p,_+1),f,p-d,f,_-d,p]),p=_;break;case 43:case 45:case 42:if(_=p+1,E=l.slice(p+1,_+1),l.slice(p-1,p),g===45&&E.charCodeAt(0)===45){_++,c.push([`word`,l.slice(p,_),f,p-d,f,_-d,p]),p=_-1;break}c.push([`operator`,l.slice(p,_),f,p-d,f,_-d,p]),p=_-1;break;default:if(g===47&&(l.charCodeAt(p+1)===42||t.loose&&!h&&l.charCodeAt(p+1)===47)){if(l.charCodeAt(p+1)===42)_=l.indexOf(`*/`,p+2)+1,_===0&&D(`comment`,`*/`);else{let e=l.indexOf(`
27
+ `,p+2);_=e===-1?u:e-1}x=l.slice(p,_+1),y=x.split(`
28
+ `),b=y.length-1,b>0?(S=f+b,C=_-y[b].length):(S=f,C=d),c.push([`comment`,x,f,p-d,S,_-C,p]),d=C,f=S,p=_}else if(g===35&&!a.test(l.slice(p+1,p+2)))_=p+1,c.push([`#`,l.slice(p,_),f,p-d,f,_-d,p]),p=_-1;else if((g===117||g===85)&&l.charCodeAt(p+1)===43){_=p+2;do _+=1,g=l.charCodeAt(_);while(_<u&&o.test(l.slice(_,_+1)));c.push([`unicoderange`,l.slice(p,_),f,p-d,f,_-d,p]),p=_-1}else if(g===47)_=p+1,c.push([`operator`,l.slice(p,_),f,p-d,f,_-d,p]),p=_-1;else{let e=r;if(g>=48&&g<=57&&(e=i),e.lastIndex=p+1,e.test(l),_=e.lastIndex===0?l.length-1:e.lastIndex-2,e===i||g===46){let e=l.charCodeAt(_),t=l.charCodeAt(_+1),n=l.charCodeAt(_+2);(e===101||e===69)&&(t===45||t===43)&&n>=48&&n<=57&&(i.lastIndex=_+2,i.test(l),_=i.lastIndex===0?l.length-1:i.lastIndex-2)}c.push([`word`,l.slice(p,_+1),f,p-d,f,_-d,p]),p=_}}p++}return c}}),Xe=o((e,t)=>{t.exports=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||`An error ocurred while parsing.`,typeof Error.captureStackTrace==`function`?Error.captureStackTrace(this,this.constructor):this.stack=Error(e).stack}}}),Ze=o((e,t)=>{var n=Fe(),r=Ie(),i=Le(),a=Re(),o=ze(),s=Be(),c=Ve(),l=He(),u=Ue(),d=We(),f=Ge(),p=Ke(),m=qe(),h=Ye(),g=pe(),_=me(),v=he(),y=Xe();function b(e){return e.sort((e,t)=>e-t)}t.exports=class{constructor(e,t){let i={loose:!1};this.cache=[],this.input=e,this.options=Object.assign({},i,t),this.position=0,this.unbalanced=0,this.root=new n;let a=new r;this.root.append(a),this.current=a,this.tokens=h(e,this.options)}parse(){return this.loop()}colon(){let e=this.currToken;this.newNode(new a({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comma(){let e=this.currToken;this.newNode(new o({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comment(){let e=!1,t=this.currToken[1].replace(/\/\*|\*\//g,``),n;this.options.loose&&t.startsWith(`//`)&&(t=t.substring(2),e=!0),n=new s({value:t,inline:e,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(n),this.position++}error(e,t){throw new y(e+` at line: ${t[2]}, column ${t[3]}`)}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return!this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces=``,this.root}operator(){let e=this.currToken[1],t;if(e===`+`||e===`-`){if(this.options.loose||this.position>0&&(this.current.type===`func`&&this.current.value===`calc`?(this.prevToken[0]!==`space`&&this.prevToken[0]!==`(`||this.nextToken[0]!==`space`&&this.nextToken[0]!==`word`||this.nextToken[0]===`word`&&this.current.last.type!==`operator`&&this.current.last.value!==`(`)&&this.error(`Syntax Error`,this.currToken):(this.nextToken[0]===`space`||this.nextToken[0]===`operator`||this.prevToken[0]===`operator`)&&this.error(`Syntax Error`,this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type===`operator`)&&this.nextToken[0]===`word`)return this.word()}else if(this.nextToken[0]===`word`)return this.word()}return t=new u({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(t)}parseTokens(){switch(this.currToken[0]){case`space`:this.space();break;case`colon`:this.colon();break;case`comma`:this.comma();break;case`comment`:this.comment();break;case`(`:this.parenOpen();break;case`)`:this.parenClose();break;case`atword`:case`word`:this.word();break;case`operator`:this.operator();break;case`string`:this.string();break;case`unicoderange`:this.unicodeRange();break;default:this.word()}}parenOpen(){let e=1,t=this.position+1,n=this.currToken,r;for(;t<this.tokens.length&&e;){let n=this.tokens[t];n[0]===`(`&&e++,n[0]===`)`&&e--,t++}if(e&&this.error(`Expected closing parenthesis`,n),r=this.current.last,r&&r.type===`func`&&r.unbalanced<0&&(r.unbalanced=0,this.current=r),this.current.unbalanced++,this.newNode(new d({value:n[1],source:{start:{line:n[2],column:n[3]},end:{line:n[4],column:n[5]}},sourceIndex:n[6]})),this.position++,this.current.type===`func`&&this.current.unbalanced&&this.current.value===`url`&&this.currToken[0]!==`string`&&this.currToken[0]!==`)`&&!this.options.loose){let e=this.nextToken,t=this.currToken[1],n={line:this.currToken[2],column:this.currToken[3]};for(;e&&e[0]!==`)`&&this.current.unbalanced;)this.position++,t+=this.currToken[1],e=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new p({value:t,source:{start:n,end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]})))}}parenClose(){let e=this.currToken;this.newNode(new d({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++,!(this.position>=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error(`Expected opening parenthesis`,e),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let e=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===`,`||this.nextToken[0]===`)`?(this.current.last.raws.after+=e[1],this.position++):(this.spaces=e[1],this.position++)}unicodeRange(){let e=this.currToken;this.newNode(new m({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}splitWord(){let e=this.nextToken,t=this.currToken[1],n=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,r=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,a,o;if(!r.test(t))for(;e&&e[0]===`word`;){this.position++;let n=this.currToken[1];t+=n,e=this.nextToken}a=_(t,`@`),o=b(v(g([[0],a]))),o.forEach((r,s)=>{let u=o[s+1]||t.length,d=t.slice(r,u),f;if(~a.indexOf(r))f=new i({value:d.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+r},end:{line:this.currToken[4],column:this.currToken[3]+(u-1)}},sourceIndex:this.currToken[6]+o[s]});else if(n.test(this.currToken[1])){let e=d.replace(n,``);f=new l({value:d.replace(e,``),source:{start:{line:this.currToken[2],column:this.currToken[3]+r},end:{line:this.currToken[4],column:this.currToken[3]+(u-1)}},sourceIndex:this.currToken[6]+o[s],unit:e})}else f=new(e&&e[0]===`(`?c:p)({value:d,source:{start:{line:this.currToken[2],column:this.currToken[3]+r},end:{line:this.currToken[4],column:this.currToken[3]+(u-1)}},sourceIndex:this.currToken[6]+o[s]}),f.type===`word`?(f.isHex=/^#(.+)/.test(d),f.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(d)):this.cache.push(this.current);this.newNode(f)}),this.position++}string(){let e=this.currToken,t=this.currToken[1],n=/^(\"|\')/,r=n.test(t),i=``,a;r&&(i=t.match(n)[0],t=t.slice(1,t.length-1)),a=new f({value:t,source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6],quoted:r}),a.raws.quote=i,this.newNode(a),this.position++}word(){return this.splitWord()}newNode(e){return this.spaces&&=(e.raws.before+=this.spaces,``),this.current.append(e)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}}),Qe={};s(Qe,{languages:()=>na,options:()=>ra,parsers:()=>ia,printers:()=>yo});var $e=(e,t)=>(n,r,...i)=>n|1&&r==null?void 0:(t.call(r)??r[e]).apply(r,i),et=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},z=$e(`replaceAll`,function(){if(typeof this==`string`)return et});function tt(e){return this[e<0?this.length+e:e]}var B=$e(`at`,function(){if(Array.isArray(this)||typeof this==`string`)return tt}),nt=()=>{},rt=`string`,it=`array`,at=`cursor`,ot=`indent`,st=`align`,ct=`trim`,lt=`group`,ut=`fill`,dt=`if-break`,ft=`indent-if-break`,pt=`line-suffix`,mt=`line-suffix-boundary`,ht=`line`,gt=`label`,_t=`break-parent`,vt=new Set([at,ot,st,ct,lt,ut,dt,ft,pt,mt,ht,gt,_t]);function yt(e,t,n){if(!e.has(t)){let r=n(t);e.set(t,r)}return e.get(t)}function bt(e){if(typeof e==`string`)return rt;if(Array.isArray(e))return it;if(!e)return;let{type:t}=e;if(vt.has(t))return t}var xt=bt,St=e=>new Intl.ListFormat(`en-US`,{type:`disjunction`}).format(e);function Ct(e){let t=e===null?`null`:typeof e;if(t!==`string`&&t!==`object`)return`Unexpected doc '${t}',
29
+ Expected it to be 'string' or 'object'.`;if(xt(e))throw Error(`doc is valid.`);let n=Object.prototype.toString.call(e);if(n!==`[object Object]`)return`Unexpected doc '${n}'.`;let r=St([...vt].map(e=>`'${e}'`));return`Unexpected doc.type '${e.type}'.
30
+ Expected it to be ${r}.`}var wt=class extends Error{name=`InvalidDocError`;constructor(e){super(Ct(e)),this.doc=e}};function Tt(e,t){if(typeof e==`string`)return t(e);let n=new Map;return r(e);function r(e){return yt(n,e,i)}function i(e){switch(xt(e)){case it:return t(e.map(r));case ut:return t({...e,parts:e.parts.map(r)});case dt:return t({...e,breakContents:r(e.breakContents),flatContents:r(e.flatContents)});case lt:{let{expandedStates:n,contents:i}=e;return n?(n=n.map(r),i=n[0]):i=r(i),t({...e,contents:i,expandedStates:n})}case st:case ot:case ft:case gt:case pt:return t({...e,contents:r(e.contents)});case rt:case at:case ct:case mt:case ht:case _t:return t(e);default:throw new wt(e)}}}function Et(e){return e.type===ht&&!e.hard?e.soft?``:` `:e.type===dt?e.flatContents:e}function Dt(e){return Tt(e,Et)}function Ot(e,t=Rt){return Tt(e,e=>typeof e==`string`?W(t,e.split(`
31
+ `)):e)}var V=nt,kt=nt,At=nt,jt=nt;function H(e){return V(e),{type:ot,contents:e}}function Mt(e,t){return jt(e),V(t),{type:st,contents:t,n:e}}function Nt(e){return Mt(-1,e)}var Pt={type:_t};function Ft(e){return At(e),{type:ut,parts:e}}function U(e,t={}){return V(e),kt(t.expandedStates,!0),{type:lt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function It(e,t=``,n={}){return V(e),t!==``&&V(t),{type:dt,breakContents:e,flatContents:t,groupId:n.groupId}}function W(e,t){V(e),kt(t);let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}var G={type:ht},K={type:ht,soft:!0},q=[{type:ht,hard:!0},Pt],Lt={type:ht,hard:!0,literal:!0},Rt=[Lt,Pt];function zt(e){return V(e),{type:pt,contents:e}}var Bt={type:mt};function Vt(e){return Array.isArray(e)&&e.length>0}var Ht=Vt,Ut=Object.freeze({character:`'`,codePoint:39}),Wt=Object.freeze({character:`"`,codePoint:34}),Gt=Object.freeze({preferred:Ut,alternate:Wt}),Kt=Object.freeze({preferred:Wt,alternate:Ut});function qt(e,t){let{preferred:n,alternate:r}=t===!0||t===`'`?Gt:Kt,{length:i}=e,a=0,o=0;for(let t=0;t<i;t++){let i=e.charCodeAt(t);i===n.codePoint?a++:i===r.codePoint&&o++}return(a>o?r:n).character}var Jt=/\\(["'\\])|(["'])/g;function Yt(e,t){let n=t===`"`?`'`:`"`;return t+z(0,e,Jt,(e,r,i)=>r?r===n?n:e:i===t?`\\`+i:i)+t}var Xt=Yt;function Zt(e,t){/^(?<quote>["']).*\k<quote>$/s.test(e);let n=e.slice(1,-1),r;return r=t.parser===`json`||t.parser===`jsonc`||t.parser===`json-stringify`||t.parser===`json5`&&t.quoteProps===`preserve`&&!t.singleQuote?`"`:t.__isInHtmlAttribute?`'`:qt(n,t.singleQuote),e.charAt(0)===r?e:Xt(n,r)}var Qt=Zt,$t=class extends Error{name=`UnexpectedNodeError`;constructor(e,t,n=`type`){super(`Unexpected ${t} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}};function en(){}en.getVisitorKeys=e=>e.type===`css-root`?[`frontMatter`]:[];var tn=en,nn=null;function rn(e){if(nn!==null&&typeof nn.property){let e=nn;return nn=rn.prototype=null,e}return nn=rn.prototype=e??Object.create(null),new rn}var an=10;for(let e=0;e<=an;e++)rn();function on(e){return rn(e)}function sn(e,t=`type`){on(e);function n(n){let r=n[t],i=e[r];if(!Array.isArray(i))throw Object.assign(Error(`Missing visitor keys for '${r}'.`),{node:n});return i}return n}var cn=sn,J=[[`nodes`],[`group`]],ln=cn({"css-root":[`frontMatter`,`nodes`],"css-comment":[],"css-rule":[`selector`,`nodes`],"css-decl":[`value`,`selector`,`nodes`],"css-atrule":[`selector`,`params`,`value`,`nodes`],"media-query-list":J[0],"media-query":J[0],"media-type":[],"media-feature-expression":J[0],"media-feature":[],"media-colon":[],"media-value":[],"media-keyword":[],"media-url":[],"media-unknown":[],"selector-root":J[0],"selector-selector":J[0],"selector-comment":[],"selector-string":[],"selector-tag":[],"selector-id":[],"selector-class":[],"selector-attribute":[],"selector-combinator":J[0],"selector-universal":[],"selector-pseudo":J[0],"selector-nesting":[],"selector-unknown":[],"value-value":J[1],"value-root":J[1],"value-comment":[],"value-comma_group":[`groups`],"value-paren_group":[`open`,`groups`,`close`],"value-func":J[1],"value-paren":[],"value-number":[],"value-operator":[],"value-word":[],"value-colon":[],"value-comma":[],"value-string":[],"value-atword":[],"value-unicode-range":[],"value-unknown":[]});function un(e,t){let n=0;for(let r=0;r<e.line-1;++r)n=t.indexOf(`
32
+ `,n)+1;return n+e.column}var dn=un;function fn(e){return(t,n,r)=>{if(n===!1)return!1;let i=!!r?.backwards,{length:a}=t,o=n;for(;o>=0&&o<a;){let n=t.charAt(o);if(e instanceof RegExp){if(!e.test(n))return o}else if(!e.includes(n))return o;i?o--:o++}return o===-1||o===a?o:!1}}var pn=fn(` `),mn=fn(`,; `),hn=fn(/[^\n\r]/);function gn(e,t){let{value:n}=e;return n===`-`||n===`--`||n.charAt(0)!==`-`?t:t-(n.charAt(1)===`-`?2:1)}function _n(e,t){if(typeof e.source?.start?.offset==`number`)return e.source.start.offset;if(typeof e.sourceIndex==`number`)return e.type===`value-word`?gn(e,e.sourceIndex):e.sourceIndex;if(e.source?.start)return dn(e.source.start,t);throw Object.assign(Error(`Can not locate node.`),{node:e})}function vn(e,t){if(e.type===`value-func`&&e.group?.close)return vn(e.group.close,t);if(e.type===`css-comment`&&e.inline)return hn(t,e.source.startOffset);if(e.type===`value-paren`&&typeof e.sourceIndex==`number`)return e.sourceIndex+(e.value===`)`?e.value.length:0);if(typeof e.source?.end?.offset==`number`)return e.source.end.offset;if(e.source){if(e.source.end){let n=dn(e.source.end,t);return e.type===`value-word`?gn(e,n):n}if(Ht(e.nodes))return vn(B(0,e.nodes,-1),t);if(e.type===`css-atrule`&&typeof e.name==`string`)return _n(e,t)+1+e.name.length+e.raws.afterName.length+e.raws.params.length}return typeof e.sourceIndex==`number`&&typeof e.value==`string`?e.sourceIndex+e.value.length:null}function yn(e,t){bn(e,t,0,!1)}function bn(e,t,n,r){if(r&&typeof e.type==`string`)e.source??={},e.source.startOffset=n,e.source.endOffset=n+t.length;else if((typeof e.source?.startOffset!=`number`||typeof e.source?.endOffset!=`number`)&&(e.source||typeof e.sourceIndex==`number`)){e.source??={};let r=n+t.length;e.source.startOffset=Math.min(_n(e,t)+n,r);let i=vn(e,t);e.source.endOffset=typeof i==`number`?Math.min(i+n,r):i}for(let r in e){let i=e[r];if(r===`source`||!i||typeof i!=`object`)continue;let a=Array.isArray(i)?i:[i];for(let r of a){if(!r||typeof r!=`object`)continue;let i=xn(e,r,n);i?bn(r,i.text,i.rootOffset,!0):bn(r,t,n,!1),On(r,e)}}Dn(e),kn(e)}function xn(e,t,n){if(t.type===`value-root`||t.type===`value-unknown`)return{rootOffset:Sn(e),text:t.text||t.value||``};if(t.type===`media-query-list`||e.params===t)return{rootOffset:Cn(e),text:e.raws?.params||t.value||``};if(t.type?.startsWith(`selector-`)){let r=wn(e,t);if(typeof r==`string`)return{rootOffset:Tn(e,t,r,n),text:r}}}function Sn(e){let t=e.source.startOffset;return typeof e.prop==`string`&&(t+=e.prop.length),e.type===`css-atrule`&&typeof e.name==`string`&&(t+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/)[0].length),e.type!==`css-atrule`&&typeof e.raws?.between==`string`&&(t+=e.raws.between.length),t}function Cn(e){let t=e.source.startOffset;return e.type===`css-atrule`&&typeof e.name==`string`&&(t+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/)[0].length),t}function wn(e,t){if(typeof t.raws?.selector==`string`)return t.raws.selector;if(e.selector===t){if(e.mixin)return e.raws.identifier+e.name+e.raws.afterName+e.raws.params;if(typeof e.raws?.selector==`string`)return e.raws.selector;if(e.customSelector&&typeof e.raws?.params==`string`)return e.raws.params.slice(e.customSelector.length).trim();if(typeof e.raws?.params==`string`)return e.raws.params;if(e.type===`css-decl`&&typeof e.raws?.value==`string`){let{value:t}=e.raws;return e.extend&&t.startsWith(`extend(`)?t.slice(7,-1):t}}}function Tn(e,t,n,r){return typeof t.sourceIndex==`number`&&typeof t.raws?.selector==`string`?r+t.sourceIndex:e.mixin?e.source.startOffset:typeof e.raws?.selector==`string`?e.source.startOffset+En(e.raws.selector,n):typeof e.raws?.params==`string`?Cn(e)+En(e.raws.params,n):e.type===`css-decl`&&typeof e.raws?.value==`string`?Sn(e)+En(e.raws.value,n):r}function En(e,t){let n=e.indexOf(t);return n===-1?0:n}function Dn(e){var t,n;if(typeof e.type!=`string`)return;let r=typeof e.source?.startOffset==`number`&&typeof e.source?.endOffset==`number`,i=e.source?.start&&e.source.end;if(r&&i)return;let a=1/0,o=-1/0,s,c;for(let t in e){if(t===`source`||t===`raws`||t===`spaces`)continue;let n=e[t],r=Array.isArray(n)?n:[n];for(let e of r)!e||typeof e!=`object`||typeof e.source?.startOffset!=`number`||typeof e.source?.endOffset!=`number`||(e.source.startOffset<a&&(a=e.source.startOffset,s=e.source.start),e.source.endOffset>o&&(o=e.source.endOffset,c=e.source.end))}a!==1/0&&(e.source??={},r||(e.source.startOffset=a,e.source.endOffset=o),(t=e.source).start??(t.start=s),(n=e.source).end??(n.end=c))}function On(e,t){typeof e.type!=`string`||e.source||typeof t.source?.startOffset!=`number`||typeof t.source?.endOffset!=`number`||!An(e)||(e.source={startOffset:t.source.startOffset,endOffset:t.source.startOffset,start:t.source.start,end:t.source.start})}function kn(e){if(typeof e.source?.startOffset==`number`&&typeof e.source?.endOffset==`number`)for(let t in e){if(t===`source`||t===`raws`||t===`spaces`)continue;let n=e[t],r=Array.isArray(n)?n:[n];for(let t of r)t&&typeof t==`object`&&On(t,e)}}function An(e){return Array.isArray(e.nodes)&&e.nodes.length===0||Array.isArray(e.groups)&&e.groups.length===0}function jn(e){let t=`initial`,n=`initial`,r,i=!1,a=[];for(let o=0;o<e.length;o++){let s=e[o];switch(t){case`initial`:if(s===`'`){t=`single-quotes`;continue}if(s===`"`){t=`double-quotes`;continue}if((s===`u`||s===`U`)&&e.slice(o,o+4).toLowerCase()===`url(`){t=`url`,o+=3;continue}if(s===`/`){let n=e[o+1];n===`*`?(t=`comment-block`,o++):n===`/`&&(t=`comment-inline`,r=o,o++);continue}continue;case`single-quotes`:if(s===`'`&&e[o-1]!==`\\`&&(t=n,n=`initial`),s===`
33
+ `||s===`\r`)return e;continue;case`double-quotes`:if(s===`"`&&e[o-1]!==`\\`&&(t=n,n=`initial`),s===`
34
+ `||s===`\r`)return e;continue;case`url`:if(s===`)`)t=`initial`;else if(s===`
35
+ `||s===`\r`)return e;if(s===`'`){t=`single-quotes`,n=`url`;continue}if(s===`"`){t=`double-quotes`,n=`url`;continue}continue;case`comment-block`:s===`/`&&e[o-1]===`*`&&(t=`initial`);continue;case`comment-inline`:s===`"`||s===`'`||s===`*`?i=!0:(s===`
36
+ `||s===`\r`)&&(i&&a.push([r,o]),t=`initial`,i=!1);continue}}for(let[t,n]of a)e=e.slice(0,t)+z(0,e.slice(t,n),/["'*]/g,` `)+e.slice(n);return e}var Y=e=>e.source.startOffset,X=e=>e.source.endOffset,Mn=Symbol.for(`PRETTIER_IS_FRONT_MATTER`);function Nn(e){return!!e?.[Mn]}var Pn=Nn;function Fn(e){return z(0,e,/[^\n]/g,` `)}var In=Fn,Ln=3;function Rn(e){let t=e.slice(0,Ln);if(t!==`---`&&t!==`+++`)return;let n=e.indexOf(`
37
+ `,Ln);if(n===-1)return;let r=e.slice(Ln,n).trim(),i=e.indexOf(`
38
+ ${t}`,n),a=r;if(a||=t===`+++`?`toml`:`yaml`,i===-1&&t===`---`&&a===`yaml`&&(i=e.indexOf(`
39
+ ...`,n)),i===-1)return;let o=i+1+Ln,s=e.charAt(o+1);if(!/\s?/.test(s))return;let c=e.slice(0,o),l;return{language:a,explicitLanguage:r||null,value:e.slice(n+1,i),startDelimiter:t,endDelimiter:c.slice(-Ln),raw:c,start:{line:1,column:0,index:0},end:{index:c.length,get line(){return l??=c.split(`
40
+ `),l.length},get column(){return l??=c.split(`
41
+ `),B(0,l,-1).length}},[Mn]:!0}}function zn(e){let t=Rn(e);return t?{frontMatter:t,get content(){let{raw:n}=t;return In(n)+e.slice(n.length)}}:{content:e}}var Bn=zn,Vn=new Set([`raw`,`raws`,`sourceIndex`,`source`,`before`,`after`,`trailingComma`,`spaces`]);function Hn(e,t,n){if(e.type===`css-comment`&&n.type===`css-root`&&n.nodes.length>0&&((n.nodes[0]===e||Pn(n.nodes[0])&&n.nodes[1]===e)&&(delete t.text,/^\*\s*@(?:format|prettier)\s*$/.test(e.text))||n.type===`css-root`&&B(0,n.nodes,-1)===e))return null;if(e.type===`value-root`&&delete t.text,(e.type===`media-query`||e.type===`media-query-list`||e.type===`media-feature-expression`)&&delete t.value,e.type===`css-rule`&&(delete t.params,e.extend&&Wn(e.selector)&&delete t.extend),(e.type===`media-feature`||e.type===`media-keyword`||e.type===`media-type`||e.type===`media-unknown`||e.type===`media-url`||e.type===`media-value`||e.type===`selector-attribute`||e.type===`selector-string`||e.type===`selector-class`||e.type===`selector-combinator`||e.type===`value-string`)&&e.value&&(t.value=Un(e.value)),e.type===`selector-combinator`&&(t.value=z(0,t.value,/\s+/g,` `)),e.type===`media-feature`&&(t.value=z(0,t.value,` `,``)),(e.type===`value-word`&&(e.isColor&&e.isHex||[`initial`,`inherit`,`unset`,`revert`].includes(e.value.toLowerCase()))||e.type===`media-feature`||e.type===`selector-root-invalid`||e.type===`selector-pseudo`)&&(t.value=t.value.toLowerCase()),e.type===`css-decl`&&(t.prop=e.prop.toLowerCase()),(e.type===`css-atrule`||e.type===`css-import`)&&(t.name=e.name.toLowerCase()),e.type===`value-number`&&(t.unit=e.unit.toLowerCase()),e.type===`value-unknown`&&(t.value=z(0,t.value,/;$/g,``)),e.type===`selector-attribute`&&(t.attribute=e.attribute.trim(),e.namespace&&typeof e.namespace==`string`&&(t.namespace=e.namespace.trim()||!0),e.value)){let{value:e}=t;/\s[a-z]$/i.test(e)&&(t.__prettier_attribute_selector_flag=B(0,e,-1),e=e.slice(0,-1)),e=e.trim(),e=e.replace(/^(?<quote>["'])(?<value>.*?)\k<quote>$/,`$<value>`),t.value=e,delete t.quoted}if((e.type===`media-value`||e.type===`media-type`||e.type===`value-number`||e.type===`selector-root-invalid`||e.type===`selector-class`||e.type===`selector-combinator`||e.type===`selector-tag`)&&e.value&&(t.value=z(0,t.value,/([\d+.e-]+)([a-z]*)/gi,(e,t,n)=>{let r=Number(t);return Number.isNaN(r)?e:r+n.toLowerCase()})),e.type===`selector-tag`){let e=t.value.toLowerCase();[`from`,`to`].includes(e)&&(t.value=e)}if(e.type===`css-atrule`&&e.name.toLowerCase()===`supports`&&delete t.value,e.type===`selector-unknown`&&delete t.value,e.type===`value-comma_group`){let n=e.groups.findIndex(e=>e.type===`value-number`&&e.unit===`...`);n!==-1&&(t.groups[n].unit=``,t.groups.splice(n+1,0,{type:`value-word`,value:`...`,isColor:!1,isHex:!1}))}if(e.type===`value-comma_group`&&e.groups.some(e=>e.type===`value-atword`&&(e.value.endsWith(`[`)||e.value.endsWith(`]`))||e.type===`value-word`&&(e.value.startsWith(`]`)||e.value.startsWith(`[`))))return{type:`value-atword`,value:e.groups.map(e=>e.value).join(``)};if(e.type===`value-func`&&e.value===`if`&&e.group.type===`value-paren_group`&&e.group.groups.length===1&&e.group.groups[0].type===`value-comma_group`){let n=e.group.groups[0].groups,r=t.group.groups[0].groups;for(let e=n.length-1;e>=0;e--){let t=n[e];if(t.type===`value-word`&&typeof t.value==`string`&&t.value.endsWith(`;`)){if(t.value===`;`){n[e-1]?.type===`value-number`&&r.splice(e-1,2,{type:`#node-placeholder`});continue}r[e]={type:`#node-placeholder`}}}}}Hn.ignoredProperties=Vn;function Un(e){return z(0,z(0,e,`'`,`"`),/\\([^\da-f])/gi,`$1`)}function Wn(e){return e?.nodes?.some(e=>e.nodes?.some(e=>e.type===`selector-pseudo`&&e.value===`:extend`))}var Gn=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty),Kn=/\*\/$/,qn=/^\/\*\*?/,Jn=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Yn=/(^|\s+)\/\/([^\n\r]*)/g,Xn=/^(\r?\n)+/,Zn=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Qn=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,$n=/(\r?\n|^) *\* ?/g,er=[];function tr(e){let t=e.match(Jn);return t?t[0].trimStart():``}function nr(e){let t=e.match(Jn)?.[0];return t==null?e:e.slice(t.length)}function rr(e){e=z(0,e.replace(qn,``).replace(Kn,``),$n,`$1`);let t=``;for(;t!==e;)t=e,e=z(0,e,Zn,`
42
+ $1 $2
43
+ `);e=e.replace(Xn,``).trimEnd();let n=Object.create(null),r=z(0,e,Qn,``).replace(Xn,``).trimEnd(),i;for(;i=Qn.exec(e);){let e=z(0,i[2],Yn,``);if(typeof n[i[1]]==`string`||Array.isArray(n[i[1]])){let t=n[i[1]];n[i[1]]=[...er,...Array.isArray(t)?t:[t],e]}else n[i[1]]=e}return{comments:r,pragmas:n}}function ir({comments:e=``,pragmas:t={}}){let n=Object.keys(t),r=n.flatMap(e=>ar(e,t[e])).map(e=>` * ${e}
44
+ `).join(``);if(!e){if(n.length===0)return``;if(n.length===1&&!Array.isArray(t[n[0]])){let e=t[n[0]];return`/** ${ar(n[0],e)[0]} */`}}let i=e.split(`
45
+ `).map(e=>` * ${e}`).join(`
46
+ `)+`
47
+ `;return`/**
48
+ `+(e?i:``)+(e&&n.length>0?` *
49
+ `:``)+r+` */`}function ar(e,t){return[...er,...Array.isArray(t)?t:[t]].map(t=>`@${e} ${t}`.trim())}var or=[`noformat`,`noprettier`],sr=[`format`,`prettier`],cr=`format`;function lr(e){if(!e.startsWith(`#!`))return``;let t=e.indexOf(`
50
+ `);return t===-1?e:e.slice(0,t)}var ur=lr;function dr(e){let t=ur(e);t&&(e=e.slice(t.length+1));let{pragmas:n,comments:r}=rr(tr(e));return{shebang:t,text:e,pragmas:n,comments:r}}function fr(e){let{pragmas:t}=dr(e);return sr.some(e=>Gn(t,e))}function pr(e){let{pragmas:t}=dr(e);return or.some(e=>Gn(t,e))}function mr(e){let{shebang:t,text:n,pragmas:r,comments:i}=dr(e),a=nr(n),o=ir({pragmas:{[cr]:``,...r},comments:i.trimStart()});return(t?`${t}
51
+ `:``)+o+(a.startsWith(`
52
+ `)?`
53
+ `:`
54
+
55
+ `)+a}var hr=e=>fr(Bn(e).content),gr=e=>pr(Bn(e).content),_r=e=>{let{frontMatter:t,content:n}=Bn(e);return(t?t.raw+`
56
+
57
+ `:``)+mr(n)},vr=new Set([`red`,`green`,`blue`,`alpha`,`a`,`rgb`,`hue`,`h`,`saturation`,`s`,`lightness`,`l`,`whiteness`,`w`,`blackness`,`b`,`tint`,`shade`,`blend`,`blenda`,`contrast`,`hsl`,`hsla`,`hwb`,`hwba`]);function yr(e){return e.findAncestor(e=>e.type===`css-decl`)?.prop?.toLowerCase()}var br=new Set([`initial`,`inherit`,`unset`,`revert`]);function xr(e){return br.has(e.toLowerCase())}var Sr=new Set([`:nth-child`,`:nth-last-child`,`:nth-of-type`,`:nth-last-of-type`]);function Cr(e){return e?.type===`selector-pseudo`&&Sr.has(e.value.toLowerCase())}function wr(e,t){return e.findAncestor(e=>e.type===`css-atrule`)?.name?.toLowerCase().endsWith(`keyframes`)&&[`from`,`to`].includes(t.toLowerCase())}function Tr(e){return e.includes(`$`)||e.includes(`@`)||e.includes(`#`)||e.startsWith(`%`)||e.startsWith(`--`)||e.startsWith(`:--`)||e.includes(`(`)&&e.includes(`)`)?e:e.toLowerCase()}function Er(e,t){return e.findAncestor(e=>e.type===`value-func`)?.value?.toLowerCase()===t}function Dr(e){return e.hasAncestor(e=>{if(e.type!==`css-rule`)return!1;let t=e.raws?.selector;return t&&(t.startsWith(`:import`)||t.startsWith(`:export`))})}function Or(e,t){let n=Array.isArray(t)?t:[t],r=e.findAncestor(e=>e.type===`css-atrule`);return r&&n.includes(r.name.toLowerCase())}function kr(e){let{node:t}=e;return t.groups[0]?.value===`url`&&t.groups.length===2&&e.findAncestor(e=>e.type===`css-atrule`)?.name===`import`}function Ar(e){return e.type===`value-func`&&e.value.toLowerCase()===`url`}function jr(e){return e.type===`value-func`&&e.value.toLowerCase()===`var`}function Mr(e){let{selector:t}=e;return t?typeof t==`string`&&/^@.+:.*$/.test(t)||t.value&&/^@.+:.*$/.test(t.value):!1}function Nr(e){return e.type===`value-word`&&[`from`,`through`,`end`].includes(e.value)}function Pr(e){return e.type===`value-word`&&[`and`,`or`,`not`].includes(e.value)}function Fr(e){return e.type===`value-word`&&e.value===`in`}function Ir(e){return e.type===`value-operator`&&e.value===`*`}function Lr(e){return e?.type===`value-operator`&&e.value===`/`}function Z(e){return e.type===`value-operator`&&e.value===`+`}function Rr(e){return e.type===`value-operator`&&e.value===`-`}function zr(e){return e.type===`value-operator`&&e.value===`%`}function Br(e){return Ir(e)||Lr(e)||Z(e)||Rr(e)||zr(e)}function Vr(e){return e.type===`value-word`&&[`==`,`!=`].includes(e.value)}function Hr(e){return e.type===`value-word`&&[`<`,`>`,`<=`,`>=`].includes(e.value)}function Ur(e,t){return t.parser===`scss`&&e.type===`css-atrule`&&[`if`,`else`,`for`,`each`,`while`].includes(e.name)}function Wr(e){return e.raws?.params&&/^\(\s*\)$/.test(e.raws.params)}function Gr(e){return e.name.startsWith(`prettier-placeholder`)}function Kr(e){return e.prop.startsWith(`@prettier-placeholder`)}function qr(e,t){return e.value===`$$`&&e.type===`value-func`&&t?.type===`value-word`&&!t.raws.before}function Jr(e){return e.value?.type===`value-root`&&e.value.group?.type===`value-value`&&e.prop.toLowerCase()===`composes`}function Yr(e){return e.value?.group?.group?.type===`value-paren_group`&&e.value.group.group.open!==null&&e.value.group.group.close!==null}function Q(e){return e?.raws?.before===``}function Xr(e){let t=e.findIndex(e=>e.type!==`value-comment`);return t===-1?[]:e.slice(t)}function Zr(e){return e.type===`value-comma_group`&&e.groups&&Xr(e.groups)[1]?.type===`value-colon`}function Qr(e,t){if(t?.type!==`value-paren_group`||!t.open||!Zr(e))return!1;let[n,,r]=Xr(e.groups);return n.type!==`value-paren_group`&&r?.type===`value-paren_group`}function $r(e){return e.type===`value-paren_group`&&e.groups?.[0]&&Zr(e.groups[0])}function ei(e,t){if(t.parser!==`scss`)return!1;let{node:n}=e;if(n.groups.length===0||n.type===`value-paren_group`&&n.open&&n.close&&n.groups.length===1&&n.groups[0].type!==`value-comma_group`)return!1;let r=e.parent;if(r&&r.type===`value-func`&&r.value===`if`)return!1;let i=e.grandparent;return!$r(n)&&!(i&&$r(i))?!1:e.findAncestor(e=>e.type===`css-decl`)?.prop?.startsWith(`$`)?!0:$r(i)?!r.groups.some(e=>Br(e)):i.type===`value-func`}function ti(e){return e.type===`value-comment`&&e.inline}function ni(e){return e.type===`value-word`&&e.value===`#`}function ri(e){return e.type===`value-word`&&e.value===`{`}function ii(e){return e.type===`value-word`&&e.value===`}`}function ai(e){return[`value-word`,`value-atword`].includes(e.type)}function oi(e){return e?.type===`value-colon`}function si(e,t){if(!Zr(t))return!1;let{groups:n}=t,r=n.indexOf(e);return r!==-1&&oi(n[r+1])}function ci(e){return e.value&&[`not`,`and`,`or`].includes(e.value.toLowerCase())}function li(e){return e.type===`value-func`&&vr.has(e.value.toLowerCase())}function ui(e){return/\/\//.test(e.split(/[\n\r]/).pop())}function di(e){return e?.type===`value-atword`&&e.value.startsWith(`prettier-placeholder-`)}function fi(e,t){if(e.open?.value!==`(`||e.close?.value!==`)`||e.groups.some(e=>e.type!==`value-comma_group`))return!1;if(t.type===`value-comma_group`){let n=t.groups.indexOf(e)-1,r=t.groups[n];if(r?.type===`value-word`&&r.value===`with`)return!0}return!1}function pi(e){return e.type===`value-paren_group`&&e.open?.value===`(`&&e.close?.value===`)`}function mi(e,t,n){let{node:r}=e,i=e.parent,a=e.grandparent,o=yr(e),s=o&&i.type===`value-value`&&(o===`grid`||o.startsWith(`grid-template`)),c=e.findAncestor(e=>e.type===`css-atrule`),l=c&&Ur(c,t),u=l&&r.groups.some(Pr),d=Qr(r,i)&&!l,f=r.groups.some(e=>ti(e)),p=e.map(n,`groups`),m=[``],h=Er(e,`url`),g=!1,_=!1;for(let n=0;n<r.groups.length;++n){let f=r.groups[n-1],v=r.groups[n],y=r.groups[n+1];if(ti(v)&&!y){m.push([m.pop(),zt([` `,p[n]])]);continue}if(m.push([m.pop(),p[n]]),h){(y&&Z(y)||Z(v))&&m.push([m.pop(),` `]);continue}if(Or(e,`forward`)&&v.type===`value-word`&&v.value&&f!==void 0&&f.type===`value-word`&&f.value===`as`&&y.type===`value-operator`&&y.value===`*`||Or(e,`utility`)&&v.type===`value-word`&&y&&y.type===`value-operator`&&y.value===`*`||!y||t.parser===`scss`&&y.type===`value-word`&&y.value===`;`&&e.match(void 0,(e,t)=>t===`groups`&&e.type===`value-paren_group`,(e,t)=>t===`group`&&e.type===`value-func`&&e.value===`if`)||v.type===`value-word`&&di(y)&&X(v)===Y(y))continue;if(v.type===`value-string`&&v.quoted){let e=v.value.lastIndexOf(`#{`),t=v.value.lastIndexOf(`}`);e!==-1&&t!==-1?g=e>t:e===-1?t!==-1&&(g=!1):g=!0}if(g||oi(v)||oi(y)||v.type===`value-atword`&&(v.value===``||v.value.endsWith(`[`))||y.type===`value-word`&&y.value.startsWith(`]`)||v.value===`~`)continue;if(t.parser===`less`){if(y?.type===`value-word`&&y.value===`[`)continue;if(v.type===`value-word`&&v.value.endsWith(`[`)&&(y?.type===`value-atword`||y?.type===`value-word`)){r.groups.some((e,t)=>t>n&&(e.value?.startsWith(`]`)||e.value?.endsWith(`]`)));continue}if((v.type===`value-word`||v.type===`value-atword`)&&v.value.endsWith(`[$`)&&y?.type===`value-atword`||v.type===`value-word`&&v.value===`$`&&(f?.type===`value-word`||f?.type===`value-atword`)&&f.value.endsWith(`[`)&&y?.type===`value-atword`)continue}if(v.type!==`value-string`&&v.value&&v.value.includes(`\\`)&&y&&y.type!==`value-comment`||f?.value&&f.value.indexOf(`\\`)===f.value.length-1&&v.type===`value-operator`&&v.value===`/`||v.value===`\\`||qr(v,y)||ni(v)||ri(v)||ii(y)||ri(y)&&Q(y)||ii(v)&&Q(y)||v.value===`--`&&ni(y))continue;let b=Br(v),x=Br(y);if((b&&ni(y)||x&&ii(v))&&Q(y)||Z(y)&&Er(e,`type`)&&Q(y)||!f&&Lr(v)||Er(e,`calc`)&&(Z(v)||Z(y)||Rr(v)||Rr(y))&&Q(y))continue;if(t.parser===`scss`&&b&&v.value===`-`&&y.type===`value-func`&&X(v)!==Y(y)){m.push([m.pop(),` `]);continue}let S=r.groups[n+2],C=(Z(v)||Rr(v))&&n===0&&(y.type===`value-number`||y.isHex)&&a&&li(a)&&!Q(y),w=S?.type===`value-func`||S&&ai(S)||v.type===`value-func`||ai(v),T=y.type===`value-func`||ai(y)||f?.type===`value-func`||f&&ai(f);if(!(!(Ir(y)||Ir(v))&&!Er(e,`calc`)&&!C&&(Lr(y)&&!w||Lr(v)&&!T||Z(y)&&!w||Z(v)&&!T||Rr(y)||Rr(v))&&(Q(y)||b&&(!f||f&&Br(f))))&&(t.parser!==`scss`&&t.parser!==`less`||!b||v.value!==`-`||!pi(y)||X(v)!==Y(y.open)||y.open.value!==`(`)){if(ti(v)){if(i.type===`value-paren_group`){m.push(d?q:Nt(q),``);continue}m.push(q,``);continue}if(l&&(Vr(y)||Hr(y)||u&&(Vr(v)||Hr(v))||Pr(y)||Fr(v)||Nr(v))||c&&c.name.toLowerCase()===`namespace`){m.push([m.pop(),` `]);continue}if(s){v.source&&y.source&&v.source.start.line!==y.source.start.line?(m.push(q,``),_=!0):m.push([m.pop(),` `]);continue}if(!(o&&(o===`font`||o.startsWith(`--`))&&(Lr(y)&&Q(y)&&hi(v)||Lr(v)&&Q(v)&&hi(f)))){if(x){m.push([m.pop(),` `]);continue}if(y?.value!==`...`&&!(di(v)&&di(y)&&X(v)===Y(y))){if(di(v)&&pi(y)&&X(v)===Y(y.open)){m.push(K,``);continue}if(v.value===`with`&&pi(y)){m=[[Ft(m),` `]];continue}if(!(v.value?.endsWith(`#`)&&y.value===`{`&&pi(y.group))&&(!ti(y)||S)){if(!c&&v.type===`value-comment`&&!v.inline&&r.groups.slice(0,n).every(e=>e.type===`value-comment`)){m.push(d?G:Nt(G),``);continue}m.push(G,``)}}}}}return f&&m.push([m.pop(),Pt]),_&&m.unshift(``,q),l?U(H(m)):kr(e)?U(Ft(m)):U(H(Ft(m)))}function hi(e){if(e?.type===`value-number`)return!0;if(e?.type!==`value-func`)return!1;let t=e.value.toLowerCase();return t===`var`||t===`calc`||t===`min`||t===`max`||t===`clamp`||t.startsWith(`--`)}var gi=mi,_i=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let n=this[t];if(e(n,t,this))return n}},vi=$e(`findLast`,function(){if(Array.isArray(this))return _i});function yi(e,t){if(t===!1)return!1;if(e.charAt(t)===`/`&&e.charAt(t+1)===`*`){for(let n=t+2;n<e.length;++n)if(e.charAt(n)===`*`&&e.charAt(n+1)===`/`)return n+2}return t}var bi=yi,xi=e=>e===`
58
+ `||e===`\r`||e===`\u2028`||e===`\u2029`;function Si(e,t,n){if(t===!1)return!1;let r=!!n?.backwards,i=e.charAt(t);if(r){if(e.charAt(t-1)===`\r`&&i===`
59
+ `)return t-2;if(xi(i))return t-1}else{if(i===`\r`&&e.charAt(t+1)===`
60
+ `)return t+2;if(xi(i))return t+1}return t}var Ci=Si;function wi(e,t){return t===!1?!1:e.charAt(t)===`/`&&e.charAt(t+1)===`/`?hn(e,t):t}var Ti=wi;function Ei(e,t){let n=null,r=t;for(;r!==n;)n=r,r=pn(e,r),r=bi(e,r),r=Ti(e,r),r=Ci(e,r);return r}var Di=Ei;function Oi(e,t){let n=Di(e,t);return n===!1?``:e.charAt(n)}var ki=Oi;function Ai(e,t,n={}){let r=pn(e,n.backwards?t-1:t,n);return r!==Ci(e,r,n)}var ji=Ai;function Mi(e,t){let n=null,r=t;for(;r!==n;)n=r,r=mn(e,r),r=bi(e,r),r=pn(e,r);return r=Ti(e,r),r=Ci(e,r),r!==!1&&ji(e,r)}var Ni=Mi;function Pi(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/,`$1$2`).replace(/^([+-]?[\d.]+)e[+-]?0+$/,`$1`).replace(/^([+-])?\./,`$10.`).replace(/(\.\d+?)0+(?=e|$)/,`$1`).replace(/\.(?=e|$)/,``)}var Fi=Pi,Ii=new Map([[`em`,`em`],[`rem`,`rem`],[`ex`,`ex`],[`rex`,`rex`],[`cap`,`cap`],[`rcap`,`rcap`],[`ch`,`ch`],[`rch`,`rch`],[`ic`,`ic`],[`ric`,`ric`],[`lh`,`lh`],[`rlh`,`rlh`],[`vw`,`vw`],[`svw`,`svw`],[`lvw`,`lvw`],[`dvw`,`dvw`],[`vh`,`vh`],[`svh`,`svh`],[`lvh`,`lvh`],[`dvh`,`dvh`],[`vi`,`vi`],[`svi`,`svi`],[`lvi`,`lvi`],[`dvi`,`dvi`],[`vb`,`vb`],[`svb`,`svb`],[`lvb`,`lvb`],[`dvb`,`dvb`],[`vmin`,`vmin`],[`svmin`,`svmin`],[`lvmin`,`lvmin`],[`dvmin`,`dvmin`],[`vmax`,`vmax`],[`svmax`,`svmax`],[`lvmax`,`lvmax`],[`dvmax`,`dvmax`],[`cm`,`cm`],[`mm`,`mm`],[`q`,`Q`],[`in`,`in`],[`pt`,`pt`],[`pc`,`pc`],[`px`,`px`],[`deg`,`deg`],[`grad`,`grad`],[`rad`,`rad`],[`turn`,`turn`],[`s`,`s`],[`ms`,`ms`],[`hz`,`Hz`],[`khz`,`kHz`],[`dpi`,`dpi`],[`dpcm`,`dpcm`],[`dppx`,`dppx`],[`x`,`x`],[`cqw`,`cqw`],[`cqh`,`cqh`],[`cqi`,`cqi`],[`cqb`,`cqb`],[`cqmin`,`cqmin`],[`cqmax`,`cqmax`],[`fr`,`fr`]]);function Li(e){let t=e.toLowerCase();return Ii.has(t)?Ii.get(t):e}var Ri=/(?<quote>["'])(?:(?!\k<quote>)[^\\]|\\.)*\k<quote>/gs,zi=RegExp(Ri.source+`|([$@]?[_a-z\\u0080-\\uFFFF][\\w\\u0080-\\uFFFF-]*)?((?:\\d*\\.\\d+|\\d+\\.?)(?:e[+-]?\\d+)?)([a-z]+)?`,`gi`);function $(e,t){return z(0,e,Ri,e=>Qt(e,t))}function Bi(e){return z(0,e,Ri,``)}function Vi(e,t){let n=t.singleQuote?`'`:`"`,r=``,i=e.match(/^(?<value>.+?)\s+(?<flag>[a-z])$/i);return i&&({value:e,flag:r}=i.groups),(e.includes(`"`)||e.includes(`'`)?e:n+e+n)+(r?` ${r}`:``)}function Hi(e){return z(0,e,zi,(e,t,n,r,i)=>!n&&r&&(i??=``,i=i.toLowerCase(),!i||i===`n`||Ii.has(i))?Ui(r)+(i?Li(i):``):e)}function Ui(e){return Fi(e).replace(/\.0(?=$|e)/,``)}function Wi(e){return e.trailingComma===`es5`||e.trailingComma===`all`}function Gi({node:e,parent:t},n){if(t.type!==`value-paren_group`)return!1;let r=vi(0,e.type===`value-comma_group`?e.groups:[e],e=>e.type!==`value-comment`);return r?ki(n.originalText,X(r))===`,`:!1}function Ki(e,t){return(jr(e.grandparent)||t.parser===`scss`&&e.grandparent?.type!==`value-func`&&e.parent.groups.length===1&&!Zr(e.parent.groups[0]))&&Gi(e,t)?`,`:e.node.type!==`value-comment`&&!(e.node.type===`value-comma_group`&&e.node.groups.every(e=>e.type===`value-comment`))&&Wi(t)&&e.callParent(()=>ei(e,t))?It(`,`):``}function qi(e,t,n){let{node:r,parent:i}=e,a=e.map(({node:e})=>typeof e==`string`?e:n(),`groups`);if(i&&Ar(i)&&(r.groups.length===1||r.groups.length>0&&r.groups[0].type===`value-comma_group`&&r.groups[0].groups.length>0&&r.groups[0].groups[0].type===`value-word`&&r.groups[0].groups[0].value.startsWith(`data:`)))return[r.open?n(`open`):``,W(`,`,a),r.close?n(`close`):``];if(!r.open){let t=Ji(e);kt(a);let n=Xi(W(`,`,a),2),r=W(t?q:G,n);return H(t?[q,r]:U([Yi(e)?K:``,Ft(r)]))}let o=e.map(({node:n,isLast:i,index:o})=>{let s=a[o];Qr(n,r)&&xt(s)===lt&&xt(s.contents)===ot&&xt(s.contents.contents)===ut&&(s=U(Nt(s)));let c=[s,i?Ki(e,t):`,`];if(!i&&n.type===`value-comma_group`&&Ht(n.groups)){let e=B(0,n.groups,-1);!e.source&&e.close&&(e=e.close),e.source&&Ni(t.originalText,X(e))&&c.push(q)}return c},`groups`),s=si(r,i),c=fi(r,i),l=ei(e,t),u=c||l&&!s,d=c||s,f=U([r.open?n(`open`):``,H([K,W(G,o)]),K,Bt,r.close?n(`close`):``],{shouldBreak:u});return d?Nt(f):f}function Ji(e){return e.match(e=>e.type===`value-paren_group`&&!e.open&&e.groups.some(e=>e.type===`value-comma_group`),(e,t)=>t===`group`&&e.type===`value-value`,(e,t)=>t===`group`&&e.type===`value-root`,(e,t)=>t===`value`&&(e.type===`css-decl`&&!e.prop.startsWith(`--`)||e.type===`css-atrule`&&e.variable))}function Yi(e){return e.match(e=>e.type===`value-paren_group`&&!e.open,(e,t)=>t===`group`&&e.type===`value-value`,(e,t)=>t===`group`&&e.type===`value-root`,(e,t)=>t===`value`&&e.type===`css-decl`)}function Xi(e,t){let n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}function Zi(e,t,n){let r=[];return e.each(()=>{let{node:i,previous:a}=e;if(a?.type===`css-comment`&&a.text.trim()===`prettier-ignore`?r.push(t.originalText.slice(Y(i),X(i))):r.push(n()),e.isLast)return;let{next:o}=e;o.type===`css-comment`&&!ji(t.originalText,Y(o),{backwards:!0})&&!Pn(i)||o.type===`css-atrule`&&o.name===`else`&&i.type!==`css-comment`?r.push(` `):(r.push(t.__isHTMLStyleAttribute?G:q),Ni(t.originalText,X(i))&&!Pn(i)&&r.push(q))},`nodes`),r}var Qi=Zi;function $i(e,t,n){let{node:r,parent:i}=e,{between:a}=r.raws,o=a.trim(),s=o===`:`,c=a.endsWith(` `)&&s,l=typeof r.value==`string`&&/^ *$/.test(r.value),u=typeof r.value==`string`?r.value:n(`value`);u=Jr(r)?Dt(u):u,!s&&ui(o)&&!e.call(()=>Ji(e),`value`,`group`,`group`)&&(u=H([q,Nt(u)]));let d=[z(0,r.raws.before,/[\s;]/g,``),i.type===`css-atrule`&&i.variable||Dr(e)?r.prop:Tr(r.prop)];if(o.startsWith(`//`)&&d.push(` `),d.push(o),r.extend||l||!c&&r.isNested&&(di(r.value.group.group)||di(r.value.group.group.groups?.[0]))||d.push(` `),t.parser===`less`&&r.extend&&r.selector&&d.push(r.selector.nodes.length>1?U([`extend(`,H([K,n(`selector`)]),K,`)`]):[`extend(`,n(`selector`),`)`]),d.push(u),r.raws.important){let e=`${l?``:` `}!important`;d.push(r.raws.important.replace(/\s*!\s*important/i,e))}else r.important&&d.push(` !important`);return r.raws.scssDefault?d.push(r.raws.scssDefault.replace(/\s*!default/i,` !default`)):r.scssDefault&&d.push(` !default`),r.raws.scssGlobal?d.push(r.raws.scssGlobal.replace(/\s*!global/i,` !global`)):r.scssGlobal&&d.push(` !global`),r.nodes?d.push([` {`,r.nodes.length>0?H([K,Qi(e,t,n)]):``,K,`}`]):Kr(r)&&!i.raws.semicolon&&t.originalText[X(r)-1]!==`;`||d.push(t.__isHTMLStyleAttribute&&e.isLast?It(`;`):`;`),d}function ea(e,t,n){let{node:r}=e;switch(r.type){case`css-root`:{let i=Qi(e,t,n),a=r.raws.after.trim();return a.startsWith(`;`)&&(a=a.slice(1).trim()),[r.frontMatter?[n(`frontMatter`),q,r.nodes.length>0?q:``]:``,i,a?` ${a}`:``,r.nodes.length>0?q:``]}case`css-comment`:{let e=r.inline||r.raws.inline,n=t.originalText.slice(Y(r),X(r));return e?n.trimEnd():n}case`css-rule`:return[n(`selector`),r.important?` !important`:``,r.nodes?[r.selector?.type===`selector-unknown`&&ui(r.selector.value)?G:r.selector?` `:``,`{`,r.nodes.length>0?H([q,Qi(e,t,n)]):``,q,`}`,Mr(r)?`;`:``]:`;`];case`css-decl`:return $i(e,t,n);case`css-atrule`:{let i=e.parent,a=Gr(r)&&!i.raws.semicolon&&t.originalText[X(r)-1]!==`;`;if(t.parser===`less`){if(r.mixin)return[n(`selector`),r.important?` !important`:``,a?``:`;`];if(r.function)return[r.name,typeof r.params==`string`?r.params:n(`params`),a?``:`;`];if(r.variable)return[`@`,r.name,`: `,r.value?[n(`value`),Bt]:``,r.raws.between.trim()?r.raws.between.trim()+` `:``,r.nodes?[`{`,r.nodes.length>0?H([K,Qi(e,t,n)]):``,K,`}`]:``,a?``:`;`]}let o=r.name===`import`&&r.params?.type===`value-unknown`&&r.params.value.endsWith(`;`);return[`@`,Wr(r)||r.name.endsWith(`:`)||Gr(r)?r.name:Tr(r.name),r.params?[Wr(r)?``:Gr(r)?r.raws.afterName===``?``:r.name.endsWith(`:`)?` `:/^\s*\n\s*\n/.test(r.raws.afterName)?[q,q]:/^\s*\n/.test(r.raws.afterName)?q:` `:` `,typeof r.params==`string`?r.params:n(`params`)]:``,r.selector?H([` `,n(`selector`)]):``,r.value?U([` `,n(`value`),Ur(r,t)?Yr(r)?` `:G:``]):r.name===`else`?` `:``,r.nodes?[Ur(r,t)?``:r.selector&&!r.selector.nodes&&typeof r.selector.value==`string`&&ui(r.selector.value)||!r.selector&&typeof r.params==`string`&&ui(r.params)?G:` `,`{`,r.nodes.length>0?H([K,Qi(e,t,n)]):``,K,`}`]:a||o?``:`;`]}case`media-query-list`:{let t=[];return e.each(({node:e})=>{e.type===`media-query`&&e.value===``||t.push(n())},`nodes`),U(H(W(G,t)))}case`media-query`:return[W(` `,e.map(n,`nodes`)),e.isLast?``:`,`];case`media-type`:return Hi($(r.value,t));case`media-feature-expression`:return r.nodes?[`(`,...e.map(n,`nodes`),`)`]:r.value;case`media-feature`:return Tr($(z(0,r.value,/ +/g,` `),t));case`media-colon`:return[r.value,` `];case`media-value`:return Hi($(r.value,t));case`media-keyword`:return $(r.value,t);case`media-url`:return $(z(0,z(0,r.value,/^url\(\s+/gi,`url(`),/\s+\)$/g,`)`),t);case`media-unknown`:return r.value;case`selector-root`:return U([Or(e,`custom-selector`)?[e.findAncestor(e=>e.type===`css-atrule`).customSelector,G]:``,W([`,`,Or(e,[`extend`,`custom-selector`,`nest`])?G:q],e.map(n,`nodes`))]);case`selector-selector`:return U((r.nodes.length>2?H:e=>e)(e.map(n,`nodes`)));case`selector-comment`:return r.value;case`selector-string`:return $(r.value,t);case`selector-tag`:return[r.namespace?[r.namespace===!0?``:r.namespace.trim(),`|`]:``,e.previous?.type===`selector-nesting`?r.value:Hi(wr(e,r.value)?r.value.toLowerCase():r.value)];case`selector-id`:return[`#`,r.value];case`selector-class`:return[`.`,Hi($(r.value,t))];case`selector-attribute`:return[`[`,r.namespace?[r.namespace===!0?``:r.namespace.trim(),`|`]:``,r.attribute.trim(),r.operator??``,r.value?Ot(Vi($(r.value.trim(),t),t),Lt):``,r.insensitive?` i`:``,`]`];case`selector-combinator`:if(r.value===`+`||r.value===`>`||r.value===`~`||r.value===`>>>`){let t=e.parent,n=t.type===`selector-selector`&&t.nodes[0]===r,i=n?``:G,a=n&&r.value===`+`&&Cr(e.grandparent);return[i,r.value,e.isLast||a?``:` `]}return[r.value.trimStart().startsWith(`(`)?G:``,Hi($(r.value.trim(),t))||G];case`selector-universal`:return[r.namespace?[r.namespace===!0?``:r.namespace.trim(),`|`]:``,r.value];case`selector-pseudo`:return[Tr(r.value),Ht(r.nodes)?U([`(`,H([K,W([`,`,G],e.map(n,`nodes`))]),K,`)`]):``];case`selector-nesting`:return r.value;case`selector-unknown`:{if(e.findAncestor(e=>e.type===`css-rule`)?.isScssNestedProperty)return Hi($(Tr(r.value),t));let n=e.parent;if(n.raws?.selector){let e=Y(n),r=e+n.raws.selector.length;return t.originalText.slice(e,r).trim()}let i=e.grandparent;if(n.type===`value-paren_group`&&i?.type===`value-func`&&i.value===`selector`){let e=X(n.open)+1,r=Y(n.close),i=t.originalText.slice(e,r).trim();return ui(i)?[Pt,i]:i}return r.value}case`value-value`:case`value-root`:return n(`group`);case`value-comment`:{let e=t.originalText.slice(Y(r),X(r));return r.inline?zt(e.trimEnd()):e}case`value-comma_group`:return gi(e,t,n);case`value-paren_group`:return qi(e,t,n);case`value-func`:return[r.value,Or(e,`supports`)&&ci(r)?` `:``,n(`group`)];case`value-paren`:return r.value;case`value-number`:return[Ui(r.value),Li(r.unit)];case`value-operator`:return r.value;case`value-word`:return r.isColor&&r.isHex||xr(r.value)?r.value.toLowerCase():r.value;case`value-colon`:{let{previous:t}=e;return U([r.value,typeof t?.value==`string`&&t.value.endsWith(`\\`)||Er(e,`url`)?``:G])}case`value-string`:return Qt(r.raws.quote+r.value+r.raws.quote,t);case`value-atword`:return[`@`,r.value];case`value-unicode-range`:return r.value;case`value-unknown`:return r.value;default:throw new $t(r,`PostCSS`)}}var ta={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},print:ea,embed:tn,insertPragma:_r,massageAstNode:Hn,getVisitorKeys:ln},na=[{name:`CSS`,type:`markup`,aceMode:`css`,extensions:[`.css`,`.wxss`],tmScope:`source.css`,codemirrorMode:`css`,codemirrorMimeType:`text/css`,parsers:[`css`],vscodeLanguageIds:[`css`],linguistLanguageId:50},{name:`PostCSS`,type:`markup`,aceMode:`text`,extensions:[`.pcss`,`.postcss`],tmScope:`source.postcss`,group:`CSS`,parsers:[`css`],vscodeLanguageIds:[`postcss`],linguistLanguageId:262764437},{name:`Less`,type:`markup`,aceMode:`less`,extensions:[`.less`],tmScope:`source.css.less`,aliases:[`less-css`],codemirrorMode:`css`,codemirrorMimeType:`text/x-less`,parsers:[`less`],vscodeLanguageIds:[`less`],linguistLanguageId:198},{name:`SCSS`,type:`markup`,aceMode:`scss`,extensions:[`.scss`],tmScope:`source.css.scss`,codemirrorMode:`css`,codemirrorMimeType:`text/x-scss`,parsers:[`scss`],vscodeLanguageIds:[`scss`],linguistLanguageId:329}],ra={singleQuote:{bracketSpacing:{category:`Common`,type:`boolean`,default:!0,description:`Print spaces between brackets.`,oppositeDescription:`Do not print spaces between brackets.`},objectWrap:{category:`Common`,type:`choice`,default:`preserve`,description:`How to wrap object literals.`,choices:[{value:`preserve`,description:`Keep as multi-line, if there is a newline between the opening brace and first property.`},{value:`collapse`,description:`Fit to a single line when possible.`}]},singleQuote:{category:`Common`,type:`boolean`,default:!1,description:`Use single quotes instead of double quotes.`},proseWrap:{category:`Common`,type:`choice`,default:`preserve`,description:`How to wrap prose.`,choices:[{value:`always`,description:`Wrap prose if it exceeds the print width.`},{value:`never`,description:`Do not wrap prose.`},{value:`preserve`,description:`Wrap prose as-is.`}]},bracketSameLine:{category:`Common`,type:`boolean`,default:!1,description:`Put > of opening tags on the last line instead of on a new line.`},singleAttributePerLine:{category:`Common`,type:`boolean`,default:!1,description:`Enforce single attribute per line in HTML, Vue and JSX.`}}.singleQuote},ia={};s(ia,{css:()=>go,less:()=>_o,scss:()=>vo});var aa=l(A(),1),oa=l(C(),1),sa=l(_(),1),ca=l(k(),1),la=l(O(),1),ua=l(C(),1);function da(e){if(e[0]===`word`&&e[1].slice(0,2)===`//`){let t=e,n=[],r,i;for(;e;){if(/\r?\n/.test(e[1])){if(/['"].*\r?\n/.test(e[1])){n.push(e[1].substring(0,e[1].indexOf(`
61
+ `))),i=e[1].substring(e[1].indexOf(`
62
+ `));let t=this.input.css.valueOf().substring(this.tokenizer.position());i+=t,r=e[3]+t.length-i.length}else this.tokenizer.back(e);break}n.push(e[1]),r=e[2],e=this.tokenizer.nextToken({ignoreUnclosed:!0})}let a=[`comment`,n.join(``),t[2],r];return this.inlineComment(a),i&&(this.input=new ua.default(i,{from:this.input.file}),this.tokenizer=(0,la.default)(this.input)),!0}if(e[1]===`/`){let t=this.tokenizer.nextToken({ignoreUnclosed:!0});if(t[0]===`comment`&&/^\/\*/.test(t[1]))return t[0]=`word`,t[1]=t[1].slice(1),e[1]=`//`,this.tokenizer.back(t),da.bind(this)(e)}return!1}function fa(e){let t=[e,this.tokenizer.nextToken()],n=[`word`,`}`];if(t[0][1].length>1||t[1][0]!==`{`)return this.tokenizer.back(t[1]),!1;for(e=this.tokenizer.nextToken();e&&n.includes(e[0]);)t.push(e),e=this.tokenizer.nextToken();let r=t.map(e=>e[1]),[i]=t,a=t.pop(),o=[`word`,r.join(``),i[2],a[2]];return this.tokenizer.back(e),this.tokenizer.back(o),!0}function pa(e){let t=[],n=e.tokenizer.nextToken();for(;n&&!(n[0]===`at-word`&&n[1]===`@`&&fa.bind(e)(n)&&(n=e.tokenizer.nextToken(),!n)||(t.push(n),n[0]===`{`||n[0]===`}`||n[0]===`;`));)n=e.tokenizer.nextToken();for(let n of t.reverse())e.tokenizer.back(n)}var ma=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,ha=/\.[0-9]/,ga=e=>{let[,t]=e,[n]=t;return(n===`.`||n===`#`)&&ma.test(t)===!1&&ha.test(t)===!1},_a=l(O(),1),va=/^url\((.+)\)/;function ya(e){let{name:t,params:n=``}=e;if(t===`import`&&n.length){e.import=!0;let t=(0,_a.default)({css:n});for(e.filename=n.replace(va,`$1`);!t.endOfFile();){let[r,i]=t.nextToken();if(r===`word`&&i===`url`)return;if(r===`brackets`){e.options=i,e.filename=n.replace(i,``).trim();break}}}}var ba=/:$/,xa=/^:(\s+)?/;function Sa(e){let{name:t,params:n=``}=e;if(e.name.slice(-1)===`:`){if(ba.test(t)){let[n]=t.match(ba);e.name=t.replace(n,``),e.raws.afterName=n+(e.raws.afterName||``),e.variable=!0,e.value=e.params}if(xa.test(n)){let[t]=n.match(xa);e.value=n.replace(t,``),e.raws.afterName=(e.raws.afterName||``)+t,e.variable=!0}}}var Ca=/(!\s*important)$/i,wa=class extends ca.default{constructor(...e){super(...e),this.lastNode=null}atrule(e){fa.bind(this)(e)||(pa(this),super.atrule(e),ya(this.lastNode),Sa(this.lastNode))}decl(...e){super.decl(...e),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(e){e[0][1]=` ${e[0][1]}`;let t=e.findIndex(e=>e[0]===`(`),n=e.reverse().find(e=>e[0]===`)`),r=e.reverse().indexOf(n),i=e.splice(t,r).map(e=>e[1]).join(``);for(let t of e.reverse())this.tokenizer.back(t);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=i}init(e,t,n){super.init(e,t,n),this.lastNode=e}inlineComment(e){let t=new sa.default,n=e[1].slice(2);if(this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.inline=!0,t.raws.begin=`//`,/^\s*$/.test(n))t.text=``,t.raws.left=n,t.raws.right=``;else{let e=n.match(/^(\s*)([^]*[^\s])(\s*)$/);[,t.raws.left,t.text,t.raws.right]=e}}mixin(e){let[t]=e,n=t[1].slice(0,1),r=e.findIndex(e=>e[0]===`brackets`),i=e.findIndex(e=>e[0]===`(`),a=``;if((r<0||r>3)&&i>0){let t=e.reduce((e,t,n)=>t[0]===`)`?n:e),n=e.slice(i,t+i).map(e=>e[1]).join(``),[r]=e.slice(i),a=[r[2],r[3]],[o]=e.slice(t,t+1),s=[o[2],o[3]],c=[`brackets`,n].concat(a,s),l=e.slice(0,i),u=e.slice(t+1);e=l,e.push(c),e=e.concat(u)}let o=[];for(let t of e)if((t[1]===`!`||o.length)&&o.push(t),t[1]===`important`)break;if(o.length){let[t]=o,n=e.indexOf(t),r=o[o.length-1],i=[t[2],t[3]],a=[r[4],r[5]],s=[`word`,o.map(e=>e[1]).join(``)].concat(i,a);e.splice(n,o.length,s)}let s=e.findIndex(e=>Ca.test(e[1]));s>0&&([,a]=e[s],e.splice(s,1));for(let t of e.reverse())this.tokenizer.back(t);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=n,a&&(this.lastNode.important=!0,this.lastNode.raws.important=a)}other(e){da.bind(this)(e)||super.other(e)}rule(e){let t=e[e.length-1],n=e[e.length-2];if(n[0]===`at-word`&&t[0]===`{`&&(this.tokenizer.back(t),fa.bind(this)(n))){let t=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([t]);for(let t of e.reverse())this.tokenizer.back(t)}else super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[t]=e;e[0][1]===`each`&&e[1][0]===`(`?this.each(e):ga(t)?this.mixin(e):super.unknownWord(e)}};function Ta(e,t){let n=new oa.default(e,t),r=new wa(n);return r.parse(),r.root.walk(e=>{let t=n.css.lastIndexOf(e.source.input.css);if(t===0)return;if(t+e.source.input.css.length!==n.css.length)throw Error(`Invalid state detected in postcss-less`);let r=t+e.source.start.offset,i=n.fromOffset(t+e.source.start.offset);if(e.source.start={column:i.col,line:i.line,offset:r},e.source.end){let r=t+e.source.end.offset,i=n.fromOffset(t+e.source.end.offset);e.source.end={column:i.col,line:i.line,offset:r}}}),r.root}var Ea=l(ce(),1);function Da(e,t){let n=SyntaxError(e+` (`+t.loc.start.line+`:`+t.loc.start.column+`)`);return Object.assign(n,t)}var Oa=Da;function ka(e){return typeof e==`object`&&!!e}var Aa=ka,ja=l(fe(),1);function Ma(e,t,n){if(Aa(e)){delete e.parent;for(let r in e)Ma(e[r],t,n),r!==`type`||typeof e[r]!=`string`||e[r].startsWith(t)||n&&n.test(e[r])||(e[r]=t+e[r])}return e}function Na(e){if(Aa(e)){delete e.parent;for(let t in e)Na(e[t]);!Array.isArray(e)&&e.value&&!e.type&&(e.type=`unknown`)}return e}var Pa=ja.default.default;function Fa(e){let t;try{t=Pa(e)}catch{return{type:`selector-unknown`,value:e}}return Ma(Na(t),`media-`)}var Ia=Fa,La=l(Pe(),1);function Ra(e){if(/\/[/*]/.test(Bi(e)))return{type:`selector-unknown`,value:e.trim()};let t;try{new La.default(e=>{t=e}).process(e)}catch{return{type:`selector-unknown`,value:e}}return Ma(t,`selector-`)}var za=Ra,Ba=l(Ze(),1),Va=e=>{for(;e.parent;)e=e.parent;return e};function Ha(e){return Va(e).text.slice(e.group.open.sourceIndex+1,e.group.close.sourceIndex).trim()}var Ua=Ha;function Wa(e){if(Ht(e)){for(let t=e.length-1;t>0;t--)if(e[t].type===`word`&&e[t].value===`{`&&e[t-1].type===`word`&&e[t-1].value.endsWith(`#`))return!0}return!1}var Ga=Wa;function Ka(e){return e.some(e=>e.type===`string`||e.type===`func`&&!e.value.endsWith(`\\`))}var qa=Ka;function Ja(e,t){return!!(t.parser===`scss`&&e?.type===`word`&&e.value.startsWith(`$`))}var Ya=Ja,Xa=e=>e.type===`paren`&&e.value===`)`;function Za(e,t){let{nodes:n}=e,r={open:null,close:null,groups:[],type:`paren_group`},i=[r],a=r,o={groups:[],type:`comma_group`},s=[o];for(let a=0;a<n.length;++a){let c=n[a];if(t.parser===`scss`&&c.type===`number`&&c.unit===`..`&&c.value.endsWith(`.`)&&(c.value=c.value.slice(0,-1),c.unit=`...`),c.type===`func`&&c.value===`selector`){let t=Va(e).text.slice(c.group.open.sourceIndex+1,c.group.close.sourceIndex),n=za(t);n.sourceIndex=c.group.open.sourceIndex+1,n.raws??={},n.raws.selector=t,c.group.groups=[n]}if(c.type===`func`&&c.value===`url`){let e=c.group?.groups??[],n=[];for(let t=0;t<e.length;t++){let r=e[t];r.type===`comma_group`?n=[...n,...r.groups]:n.push(r)}(Ga(n)||!qa(n)&&!Ya(n[0],t))&&(c.group.groups=[Ua(c)])}if(c.type===`paren`&&c.value===`(`)r={open:c,close:null,groups:[],type:`paren_group`},i.push(r),o={groups:[],type:`comma_group`},s.push(o);else if(Xa(c)){if(o.groups.length>0&&r.groups.push(o),r.close=c,s.length===1)throw Error(`Unbalanced parenthesis`);s.pop(),o=B(0,s,-1),o.groups.push(r),i.pop(),r=B(0,i,-1)}else if(c.type===`comma`){if(a===n.length-3&&n[a+1].type===`comment`&&Xa(n[a+2]))continue;r.groups.push(o),o={groups:[],type:`comma_group`},s[s.length-1]=o}else o.groups.push(c)}return o.groups.length>0&&r.groups.push(o),a}function Qa(e){return e.type===`paren_group`&&!e.open&&!e.close&&e.groups.length===1||e.type===`comma_group`&&e.groups.length===1?Qa(e.groups[0]):e.type===`paren_group`||e.type===`comma_group`?{...e,groups:e.groups.map(Qa)}:e}function $a(e,t){if(Aa(e))for(let n in e)n!==`parent`&&($a(e[n],t),n===`nodes`&&(e.type===`atword`&&e.nodes.length===0||(e.group=Qa(Za(e,t))),delete e[n]));return e}function eo(e,t){if(t.parser===`less`&&e.startsWith("~`"))return{type:`value-unknown`,value:e};let n;try{n=new Ba.default(e,{loose:!0}).parse()}catch{return{type:`value-unknown`,value:e}}return n.text=e,Ma($a(n,t),`value-`,/^selector-/)}var to=eo,no=new Set([`import`,`use`,`forward`]);function ro(e){return no.has(e)}var io=ro;function ao(e,t){return t.parser!==`scss`||!e.selector?!1:e.selector.replace(/\/\*.*?\*\//,``).replace(/\/\/.*\n/,``).trimEnd().endsWith(`:`)}var oo=ao,so=/(\s*)(!default).*$/,co=/(\s*)(!global).*$/;function lo(e,t){if(Aa(e)){delete e.parent;for(let n in e)lo(e[n],t);if(!e.type)return e;if(e.raws??={},e.type===`css-decl`&&typeof e.prop==`string`&&e.prop.startsWith(`--`)&&typeof e.value==`string`&&e.value.startsWith(`{`)){let n;if(e.value.trimEnd().endsWith(`}`)){let r=t.originalText.slice(0,e.source.start.offset),i=`a`.repeat(e.prop.length)+t.originalText.slice(e.source.start.offset+e.prop.length,e.source.end.offset),a=In(r)+i,o;o=t.parser===`scss`?mo:t.parser===`less`?po:fo;let s;try{s=o(a,{...t})}catch{}s?.nodes?.length===1&&s.nodes[0].type===`css-rule`&&(n=s.nodes[0].nodes)}return e.value=n?{type:`css-rule`,nodes:n}:{type:`value-unknown`,value:e.raws.value.raw},e}let n=``;typeof e.selector==`string`&&(n=e.raws.selector?e.raws.selector.scss??e.raws.selector.raw:e.selector,e.raws.between&&e.raws.between.trim().length>0&&(n+=e.raws.between),e.raws.selector=n);let r=``;typeof e.value==`string`&&(r=e.raws.value?e.raws.value.scss??e.raws.value.raw:e.value,e.raws.value=r.trim());let i=``;if(typeof e.params==`string`&&(i=e.raws.params?e.raws.params.scss??e.raws.params.raw:e.params,e.raws.afterName&&e.raws.afterName.trim().length>0&&(i=e.raws.afterName+i),e.raws.between&&e.raws.between.trim().length>0&&(i+=e.raws.between),i=i.trim(),e.raws.params=i),n.trim().length>0)return n.startsWith(`@`)&&n.endsWith(`:`)?e:e.mixin?(e.selector=to(n,t),e):(oo(e,t)&&(e.isScssNestedProperty=!0),e.selector=za(n),e);if(r.trim().length>0){let n=r.match(so);n&&(r=r.slice(0,n.index),e.scssDefault=!0,n[0].trim()!==`!default`&&(e.raws.scssDefault=n[0]));let i=r.match(co);if(i&&(r=r.slice(0,i.index),e.scssGlobal=!0,i[0].trim()!==`!global`&&(e.raws.scssGlobal=i[0])),r.startsWith(`progid:`))return{type:`value-unknown`,value:r};e.value=to(r,t)}if(t.parser===`less`&&e.type===`css-decl`&&typeof e.prop==`string`&&/^\s*\+\s*:/.test(e.raws.between)&&(e.prop+=`+`,e.raws.between=e.raws.between.replace(`+`,``)),t.parser===`less`&&e.type===`css-decl`&&r.startsWith(`extend(`)&&(e.extend||=e.raws.between===`:`,e.extend&&!e.selector&&(delete e.value,e.selector=za(r.slice(7,-1)))),e.type===`css-atrule`){if(t.parser===`less`){if(e.mixin)return e.selector=za(e.raws.identifier+e.name+e.raws.afterName+e.raws.params),delete e.params,e;if(e.function)return e}if(t.parser===`css`&&e.name===`custom-selector`){let t=e.params.match(/:--\S+\s+/)[0].trim();return e.customSelector=t,e.selector=za(e.params.slice(t.length).trim()),delete e.params,e}if(t.parser===`less`){if(e.name.includes(`:`)){e.variable=!0;let n=e.name.split(`:`);e.name=n[0];let r=n.slice(1).join(`:`);e.params&&(r+=e.params),e.value=to(r,t)}if(![`page`,`nest`,`keyframes`].includes(e.name)&&e.params?.[0]===`:`){e.variable=!0;let n=e.params.slice(1);n&&(e.value=to(n,t)),e.raws.afterName+=`:`}if(e.variable)return delete e.params,e.value||delete e.value,e}}if(e.type===`css-atrule`&&i.length>0){let{name:n}=e;if(n===`warn`||n===`error`)return e.params={type:`media-unknown`,value:i},e;if(n===`extend`||n===`nest`)return e.selector=za(i),delete e.params,e;if(n===`at-root`)return/^\(\s*(?:without|with)\s*:.+\)$/s.test(i)?e.params=to(i,t):(e.selector=za(i),delete e.params),e;let r=n.toLowerCase();return io(r)?(e.import=!0,delete e.filename,e.params=to(i,t),e):[`namespace`,`supports`,`if`,`else`,`for`,`each`,`while`,`debug`,`mixin`,`include`,`function`,`return`,`define-mixin`,`add-mixin`].includes(n)?(i=i.replace(/(\$\S+?)(\s+)?\.{3}/,`$1...$2`),i=i.replace(/^(?!if)([^"'\s(]+)(\s+)\(/,`$1($2`),e.value=to(i,t),delete e.params,e):[`media`,`custom-media`].includes(r)?i.includes(`#{`)?{type:`media-unknown`,value:i}:(e.params=Ia(i),e):(e.params=i,e)}}return e}function uo(e,t,n){let{frontMatter:r,content:i}=Bn(t),a;try{a=e(i,{map:!1})}catch(e){let{name:t,reason:n,line:r,column:i}=e;throw typeof r==`number`?Oa(`${t}: ${n}`,{loc:{start:{line:r,column:i}},cause:e}):e}return n.originalText=t,a=lo(Ma(a,`css-`),n),yn(a,t),r&&(a.frontMatter={...r,type:`front-matter`,source:{startOffset:r.start.index,endOffset:r.end.index}}),a}function fo(e,t={}){return uo(aa.default.default,e,t)}function po(e,t={}){return uo(e=>Ta(jn(e)),e,t)}function mo(e,t={}){return uo(Ea.default,e,t)}var ho={astFormat:`postcss`,hasPragma:hr,hasIgnorePragma:gr,locStart:Y,locEnd:X},go={...ho,parse:fo},_o={...ho,parse:po},vo={...ho,parse:mo},yo={postcss:ta};export{Qe as default,na as languages,ra as options,ia as parsers,yo as printers};