less 4.5.1 → 4.6.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 (338) hide show
  1. package/bin/lessc +37 -23
  2. package/dist/less.js +14497 -11745
  3. package/dist/less.min.js +4 -4
  4. package/dist/less.min.js.map +1 -1
  5. package/lib/less/constants.js +5 -7
  6. package/lib/less/contexts.js +71 -55
  7. package/lib/less/data/colors.js +150 -153
  8. package/lib/less/data/index.js +4 -7
  9. package/lib/less/data/unit-conversions.js +2 -5
  10. package/lib/less/default-options.js +36 -26
  11. package/lib/less/deprecation.js +67 -0
  12. package/lib/less/environment/abstract-file-manager.js +62 -50
  13. package/lib/less/environment/abstract-plugin-loader.js +69 -46
  14. package/lib/less/environment/environment-api.ts +21 -0
  15. package/lib/less/environment/environment.js +34 -30
  16. package/lib/less/environment/file-manager-api.ts +77 -0
  17. package/lib/less/functions/boolean.js +13 -13
  18. package/lib/less/functions/color-blending.js +39 -31
  19. package/lib/less/functions/color.js +153 -137
  20. package/lib/less/functions/data-uri.js +73 -64
  21. package/lib/less/functions/default.js +9 -11
  22. package/lib/less/functions/function-caller.js +35 -34
  23. package/lib/less/functions/function-registry.js +16 -17
  24. package/lib/less/functions/index.js +33 -33
  25. package/lib/less/functions/list.js +88 -75
  26. package/lib/less/functions/math-helper.js +8 -11
  27. package/lib/less/functions/math.js +21 -21
  28. package/lib/less/functions/number.js +42 -53
  29. package/lib/less/functions/string.js +18 -22
  30. package/lib/less/functions/style.js +21 -20
  31. package/lib/less/functions/svg.js +83 -82
  32. package/lib/less/functions/types.js +28 -32
  33. package/lib/less/import-manager.js +73 -64
  34. package/lib/less/index.js +65 -65
  35. package/lib/less/less-error.js +63 -45
  36. package/lib/less/logger.js +11 -14
  37. package/lib/less/parse-tree.js +52 -53
  38. package/lib/less/parse.js +44 -44
  39. package/lib/less/parser/parser-input.js +151 -113
  40. package/lib/less/parser/parser.js +864 -658
  41. package/lib/less/plugin-manager.js +57 -46
  42. package/lib/less/render.js +17 -23
  43. package/lib/less/source-map-builder.js +52 -43
  44. package/lib/less/source-map-output.js +56 -43
  45. package/lib/less/transform-tree.js +40 -30
  46. package/lib/less/tree/anonymous.js +52 -28
  47. package/lib/less/tree/assignment.js +44 -27
  48. package/lib/less/tree/atrule-syntax.js +4 -6
  49. package/lib/less/tree/atrule.js +247 -140
  50. package/lib/less/tree/attribute.js +55 -24
  51. package/lib/less/tree/call.js +70 -42
  52. package/lib/less/tree/color.js +194 -145
  53. package/lib/less/tree/combinator.js +31 -21
  54. package/lib/less/tree/comment.js +44 -23
  55. package/lib/less/tree/condition.js +61 -36
  56. package/lib/less/tree/container.js +90 -34
  57. package/lib/less/tree/debug-info.js +28 -15
  58. package/lib/less/tree/declaration.js +97 -52
  59. package/lib/less/tree/detached-ruleset.js +42 -24
  60. package/lib/less/tree/dimension.js +127 -71
  61. package/lib/less/tree/element.js +82 -52
  62. package/lib/less/tree/expression.js +75 -50
  63. package/lib/less/tree/extend.js +71 -42
  64. package/lib/less/tree/import.js +184 -110
  65. package/lib/less/tree/index.js +52 -81
  66. package/lib/less/tree/javascript.js +43 -32
  67. package/lib/less/tree/js-eval-node.js +46 -32
  68. package/lib/less/tree/keyword.js +25 -17
  69. package/lib/less/tree/media.js +77 -35
  70. package/lib/less/tree/merge-rules.js +47 -0
  71. package/lib/less/tree/mixin-call.js +181 -98
  72. package/lib/less/tree/mixin-definition.js +211 -117
  73. package/lib/less/tree/namespace-value.js +63 -44
  74. package/lib/less/tree/negative.js +34 -21
  75. package/lib/less/tree/nested-at-rule.js +149 -66
  76. package/lib/less/tree/node.js +225 -90
  77. package/lib/less/tree/operation.js +59 -34
  78. package/lib/less/tree/paren.js +34 -17
  79. package/lib/less/tree/property.js +66 -35
  80. package/lib/less/tree/query-in-parens.js +52 -60
  81. package/lib/less/tree/quoted.js +93 -44
  82. package/lib/less/tree/ruleset.js +632 -318
  83. package/lib/less/tree/selector.js +151 -77
  84. package/lib/less/tree/unicode-descriptor.js +14 -12
  85. package/lib/less/tree/unit.js +111 -63
  86. package/lib/less/tree/url.js +62 -38
  87. package/lib/less/tree/value.js +50 -34
  88. package/lib/less/tree/variable-call.js +47 -30
  89. package/lib/less/tree/variable.js +53 -31
  90. package/lib/less/utils.js +44 -47
  91. package/lib/less/visitors/extend-visitor.js +233 -172
  92. package/lib/less/visitors/import-sequencer.js +24 -24
  93. package/lib/less/visitors/import-visitor.js +62 -52
  94. package/lib/less/visitors/index.js +14 -17
  95. package/lib/less/visitors/join-selector-visitor.js +40 -37
  96. package/lib/less/visitors/set-tree-visibility-visitor.js +32 -18
  97. package/lib/less/visitors/to-css-visitor.js +135 -128
  98. package/lib/less/visitors/visitor.js +60 -45
  99. package/lib/less-browser/add-default-options.js +23 -13
  100. package/lib/less-browser/bootstrap.js +23 -17
  101. package/lib/less-browser/browser.js +24 -21
  102. package/lib/less-browser/cache.js +17 -19
  103. package/lib/less-browser/error-reporting.js +52 -44
  104. package/lib/less-browser/file-manager.js +52 -42
  105. package/lib/less-browser/image-size.js +12 -12
  106. package/lib/less-browser/index.js +131 -105
  107. package/lib/less-browser/log-listener.js +30 -31
  108. package/lib/less-browser/plugin-loader.js +10 -10
  109. package/lib/less-browser/utils.js +19 -21
  110. package/lib/less-node/environment.js +32 -8
  111. package/lib/less-node/file-manager.js +62 -45
  112. package/lib/less-node/fs.js +11 -8
  113. package/lib/less-node/image-size.js +40 -31
  114. package/lib/less-node/index.js +28 -19
  115. package/lib/less-node/lessc-helper.js +20 -21
  116. package/lib/less-node/plugin-loader.js +35 -27
  117. package/lib/less-node/url-file-manager.js +33 -31
  118. package/package.json +25 -18
  119. package/.eslintignore +0 -6
  120. package/.eslintrc.js +0 -63
  121. package/Gruntfile.js +0 -403
  122. package/bower.json +0 -22
  123. package/lib/less/constants.js.map +0 -1
  124. package/lib/less/contexts.js.map +0 -1
  125. package/lib/less/data/colors.js.map +0 -1
  126. package/lib/less/data/index.js.map +0 -1
  127. package/lib/less/data/unit-conversions.js.map +0 -1
  128. package/lib/less/default-options.js.map +0 -1
  129. package/lib/less/environment/abstract-file-manager.js.map +0 -1
  130. package/lib/less/environment/abstract-plugin-loader.js.map +0 -1
  131. package/lib/less/environment/environment-api.js +0 -3
  132. package/lib/less/environment/environment-api.js.map +0 -1
  133. package/lib/less/environment/environment.js.map +0 -1
  134. package/lib/less/environment/file-manager-api.js +0 -3
  135. package/lib/less/environment/file-manager-api.js.map +0 -1
  136. package/lib/less/functions/boolean.js.map +0 -1
  137. package/lib/less/functions/color-blending.js.map +0 -1
  138. package/lib/less/functions/color.js.map +0 -1
  139. package/lib/less/functions/data-uri.js.map +0 -1
  140. package/lib/less/functions/default.js.map +0 -1
  141. package/lib/less/functions/function-caller.js.map +0 -1
  142. package/lib/less/functions/function-registry.js.map +0 -1
  143. package/lib/less/functions/index.js.map +0 -1
  144. package/lib/less/functions/list.js.map +0 -1
  145. package/lib/less/functions/math-helper.js.map +0 -1
  146. package/lib/less/functions/math.js.map +0 -1
  147. package/lib/less/functions/number.js.map +0 -1
  148. package/lib/less/functions/string.js.map +0 -1
  149. package/lib/less/functions/style.js.map +0 -1
  150. package/lib/less/functions/svg.js.map +0 -1
  151. package/lib/less/functions/types.js.map +0 -1
  152. package/lib/less/import-manager.js.map +0 -1
  153. package/lib/less/index.js.map +0 -1
  154. package/lib/less/less-error.js.map +0 -1
  155. package/lib/less/logger.js.map +0 -1
  156. package/lib/less/parse-tree.js.map +0 -1
  157. package/lib/less/parse.js.map +0 -1
  158. package/lib/less/parser/parser-input.js.map +0 -1
  159. package/lib/less/parser/parser.js.map +0 -1
  160. package/lib/less/plugin-manager.js.map +0 -1
  161. package/lib/less/render.js.map +0 -1
  162. package/lib/less/source-map-builder.js.map +0 -1
  163. package/lib/less/source-map-output.js.map +0 -1
  164. package/lib/less/transform-tree.js.map +0 -1
  165. package/lib/less/tree/anonymous.js.map +0 -1
  166. package/lib/less/tree/assignment.js.map +0 -1
  167. package/lib/less/tree/atrule-syntax.js.map +0 -1
  168. package/lib/less/tree/atrule.js.map +0 -1
  169. package/lib/less/tree/attribute.js.map +0 -1
  170. package/lib/less/tree/call.js.map +0 -1
  171. package/lib/less/tree/color.js.map +0 -1
  172. package/lib/less/tree/combinator.js.map +0 -1
  173. package/lib/less/tree/comment.js.map +0 -1
  174. package/lib/less/tree/condition.js.map +0 -1
  175. package/lib/less/tree/container.js.map +0 -1
  176. package/lib/less/tree/debug-info.js.map +0 -1
  177. package/lib/less/tree/declaration.js.map +0 -1
  178. package/lib/less/tree/detached-ruleset.js.map +0 -1
  179. package/lib/less/tree/dimension.js.map +0 -1
  180. package/lib/less/tree/element.js.map +0 -1
  181. package/lib/less/tree/expression.js.map +0 -1
  182. package/lib/less/tree/extend.js.map +0 -1
  183. package/lib/less/tree/import.js.map +0 -1
  184. package/lib/less/tree/index.js.map +0 -1
  185. package/lib/less/tree/javascript.js.map +0 -1
  186. package/lib/less/tree/js-eval-node.js.map +0 -1
  187. package/lib/less/tree/keyword.js.map +0 -1
  188. package/lib/less/tree/media.js.map +0 -1
  189. package/lib/less/tree/mixin-call.js.map +0 -1
  190. package/lib/less/tree/mixin-definition.js.map +0 -1
  191. package/lib/less/tree/namespace-value.js.map +0 -1
  192. package/lib/less/tree/negative.js.map +0 -1
  193. package/lib/less/tree/nested-at-rule.js.map +0 -1
  194. package/lib/less/tree/node.js.map +0 -1
  195. package/lib/less/tree/operation.js.map +0 -1
  196. package/lib/less/tree/paren.js.map +0 -1
  197. package/lib/less/tree/property.js.map +0 -1
  198. package/lib/less/tree/query-in-parens.js.map +0 -1
  199. package/lib/less/tree/quoted.js.map +0 -1
  200. package/lib/less/tree/ruleset.js.map +0 -1
  201. package/lib/less/tree/selector.js.map +0 -1
  202. package/lib/less/tree/unicode-descriptor.js.map +0 -1
  203. package/lib/less/tree/unit.js.map +0 -1
  204. package/lib/less/tree/url.js.map +0 -1
  205. package/lib/less/tree/value.js.map +0 -1
  206. package/lib/less/tree/variable-call.js.map +0 -1
  207. package/lib/less/tree/variable.js.map +0 -1
  208. package/lib/less/utils.js.map +0 -1
  209. package/lib/less/visitors/extend-visitor.js.map +0 -1
  210. package/lib/less/visitors/import-sequencer.js.map +0 -1
  211. package/lib/less/visitors/import-visitor.js.map +0 -1
  212. package/lib/less/visitors/index.js.map +0 -1
  213. package/lib/less/visitors/join-selector-visitor.js.map +0 -1
  214. package/lib/less/visitors/set-tree-visibility-visitor.js.map +0 -1
  215. package/lib/less/visitors/to-css-visitor.js.map +0 -1
  216. package/lib/less/visitors/visitor.js.map +0 -1
  217. package/lib/less-browser/add-default-options.js.map +0 -1
  218. package/lib/less-browser/bootstrap.js.map +0 -1
  219. package/lib/less-browser/browser.js.map +0 -1
  220. package/lib/less-browser/cache.js.map +0 -1
  221. package/lib/less-browser/error-reporting.js.map +0 -1
  222. package/lib/less-browser/file-manager.js.map +0 -1
  223. package/lib/less-browser/image-size.js.map +0 -1
  224. package/lib/less-browser/index.js.map +0 -1
  225. package/lib/less-browser/log-listener.js.map +0 -1
  226. package/lib/less-browser/plugin-loader.js.map +0 -1
  227. package/lib/less-browser/utils.js.map +0 -1
  228. package/lib/less-node/environment.js.map +0 -1
  229. package/lib/less-node/file-manager.js.map +0 -1
  230. package/lib/less-node/fs.js.map +0 -1
  231. package/lib/less-node/image-size.js.map +0 -1
  232. package/lib/less-node/index.js.map +0 -1
  233. package/lib/less-node/lessc-helper.js.map +0 -1
  234. package/lib/less-node/plugin-loader.js.map +0 -1
  235. package/lib/less-node/url-file-manager.js.map +0 -1
  236. package/scripts/coverage-lines.js +0 -207
  237. package/scripts/coverage-report.js +0 -158
  238. package/scripts/postinstall.js +0 -61
  239. package/test/.eslintrc.json +0 -9
  240. package/test/README.md +0 -3
  241. package/test/browser/common.js +0 -251
  242. package/test/browser/css/global-vars/simple.css +0 -3
  243. package/test/browser/css/modify-vars/simple.css +0 -8
  244. package/test/browser/css/plugin/plugin.css +0 -3
  245. package/test/browser/css/postProcessor/postProcessor.css +0 -4
  246. package/test/browser/css/relative-urls/urls.css +0 -36
  247. package/test/browser/css/rewrite-urls/urls.css +0 -36
  248. package/test/browser/css/rootpath/urls.css +0 -35
  249. package/test/browser/css/rootpath-relative/urls.css +0 -35
  250. package/test/browser/css/rootpath-rewrite-urls/urls.css +0 -35
  251. package/test/browser/css/urls.css +0 -54
  252. package/test/browser/generator/benchmark.config.js +0 -50
  253. package/test/browser/generator/generate.js +0 -78
  254. package/test/browser/generator/runner.config.js +0 -184
  255. package/test/browser/generator/runner.js +0 -2
  256. package/test/browser/generator/template.js +0 -104
  257. package/test/browser/generator/utils.js +0 -14
  258. package/test/browser/less/console-errors/test-error.less +0 -3
  259. package/test/browser/less/console-errors/test-error.txt +0 -2
  260. package/test/browser/less/errors/image-height-error.less +0 -3
  261. package/test/browser/less/errors/image-height-error.txt +0 -4
  262. package/test/browser/less/errors/image-size-error.less +0 -3
  263. package/test/browser/less/errors/image-size-error.txt +0 -4
  264. package/test/browser/less/errors/image-width-error.less +0 -3
  265. package/test/browser/less/errors/image-width-error.txt +0 -4
  266. package/test/browser/less/global-vars/simple.less +0 -3
  267. package/test/browser/less/imports/urls.less +0 -4
  268. package/test/browser/less/imports/urls2.less +0 -4
  269. package/test/browser/less/modify-vars/imports/simple2.less +0 -4
  270. package/test/browser/less/modify-vars/simple.less +0 -8
  271. package/test/browser/less/nested-gradient-with-svg-gradient/mixin-consumer.less +0 -5
  272. package/test/browser/less/nested-gradient-with-svg-gradient/svg-gradient-mixin.less +0 -15
  273. package/test/browser/less/plugin/plugin.js +0 -4
  274. package/test/browser/less/plugin/plugin.less +0 -4
  275. package/test/browser/less/postProcessor/postProcessor.less +0 -4
  276. package/test/browser/less/relative-urls/urls.less +0 -34
  277. package/test/browser/less/rewrite-urls/urls.less +0 -34
  278. package/test/browser/less/rootpath/urls.less +0 -33
  279. package/test/browser/less/rootpath-relative/urls.less +0 -33
  280. package/test/browser/less/rootpath-rewrite-urls/urls.less +0 -33
  281. package/test/browser/less/urls.less +0 -62
  282. package/test/browser/runner-VisitorPlugin-options.js +0 -3
  283. package/test/browser/runner-VisitorPlugin.js +0 -3
  284. package/test/browser/runner-browser-options.js +0 -51
  285. package/test/browser/runner-browser-spec.js +0 -12
  286. package/test/browser/runner-console-errors.js +0 -5
  287. package/test/browser/runner-errors-options.js +0 -6
  288. package/test/browser/runner-errors-spec.js +0 -3
  289. package/test/browser/runner-filemanagerPlugin-options.js +0 -5
  290. package/test/browser/runner-filemanagerPlugin.js +0 -3
  291. package/test/browser/runner-global-vars-options.js +0 -7
  292. package/test/browser/runner-global-vars-spec.js +0 -3
  293. package/test/browser/runner-main-options.js +0 -17
  294. package/test/browser/runner-main-spec.js +0 -7
  295. package/test/browser/runner-modify-vars-options.js +0 -5
  296. package/test/browser/runner-modify-vars-spec.js +0 -33
  297. package/test/browser/runner-no-js-errors-options.js +0 -4
  298. package/test/browser/runner-no-js-errors-spec.js +0 -3
  299. package/test/browser/runner-postProcessorPlugin-options.js +0 -3
  300. package/test/browser/runner-postProcessorPlugin.js +0 -3
  301. package/test/browser/runner-preProcessorPlugin-options.js +0 -3
  302. package/test/browser/runner-preProcessorPlugin.js +0 -3
  303. package/test/browser/runner-production-options.js +0 -3
  304. package/test/browser/runner-production-spec.js +0 -5
  305. package/test/browser/runner-relative-urls-options.js +0 -3
  306. package/test/browser/runner-relative-urls-spec.js +0 -3
  307. package/test/browser/runner-rewrite-urls-options.js +0 -3
  308. package/test/browser/runner-rewrite-urls-spec.js +0 -3
  309. package/test/browser/runner-rootpath-options.js +0 -3
  310. package/test/browser/runner-rootpath-relative-options.js +0 -4
  311. package/test/browser/runner-rootpath-relative-spec.js +0 -3
  312. package/test/browser/runner-rootpath-rewrite-urls-options.js +0 -4
  313. package/test/browser/runner-rootpath-rewrite-urls-spec.js +0 -3
  314. package/test/browser/runner-rootpath-spec.js +0 -3
  315. package/test/browser/runner-strict-units-options.js +0 -5
  316. package/test/browser/runner-strict-units-spec.js +0 -3
  317. package/test/index.js +0 -307
  318. package/test/less-test.js +0 -984
  319. package/test/mocha-playwright/runner.js +0 -210
  320. package/test/modify-vars.js +0 -28
  321. package/test/plugins/filemanager/index.js +0 -19
  322. package/test/plugins/postprocess/index.js +0 -14
  323. package/test/plugins/preprocess/index.js +0 -19
  324. package/test/plugins/visitor/index.js +0 -24
  325. package/test/sourcemaps/basic.json +0 -1
  326. package/test/sourcemaps/comprehensive.json +0 -1
  327. package/test/sourcemaps/custom-props.json +0 -1
  328. package/test/sourcemaps/index.html +0 -17
  329. package/test/sourcemaps/sourcemaps-basepath.json +0 -1
  330. package/test/sourcemaps/sourcemaps-include-source.json +0 -1
  331. package/test/sourcemaps/sourcemaps-rootpath.json +0 -1
  332. package/test/sourcemaps/sourcemaps-url.json +0 -1
  333. package/test/sourcemaps-disable-annotation/basic.json +0 -1
  334. package/test/sourcemaps-variable-selector/basic.json +0 -1
  335. package/test/test-es6.ts +0 -17
  336. package/test.less +0 -1
  337. package/tsconfig.build.json +0 -7
  338. package/tsconfig.json +0 -21
package/dist/less.min.js CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * Less - Leaner CSS v4.5.1
2
+ * Less - Leaner CSS v4.6.0
3
3
  * http://lesscss.org
4
- *
5
- * Copyright (c) 2009-2025, Alexis Sellier <self@cloudhead.net>
4
+ *
5
+ * Copyright (c) 2009-2026, Alexis Sellier <self@cloudhead.net>
6
6
  * Licensed under the Apache-2.0 License.
7
7
  *
8
8
  * @license Apache-2.0
9
9
  */
10
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).less=t()}(this,(function(){"use strict";function e(e){return e.replace(/^[a-z-]+:\/+?[^/]+/,"").replace(/[?&]livereload=\w+/,"").replace(/^\//,"").replace(/\.[a-zA-Z]+$/,"").replace(/[^.\w-]+/g,"-").replace(/\./g,":")}function t(e,t){if(t)for(var n in t.dataset)if(Object.prototype.hasOwnProperty.call(t.dataset,n))if("env"===n||"dumpLineNumbers"===n||"rootpath"===n||"errorReporting"===n)e[n]=t.dataset[n];else try{e[n]=JSON.parse(t.dataset[n])}catch(e){}}var n=function(t,n,i){var r=i.href||"",s="less:".concat(i.title||e(r)),a=t.getElementById(s),o=!1,l=t.createElement("style");l.setAttribute("type","text/css"),i.media&&l.setAttribute("media",i.media),l.id=s,l.styleSheet||(l.appendChild(t.createTextNode(n)),o=null!==a&&a.childNodes.length>0&&l.childNodes.length>0&&a.firstChild.nodeValue===l.firstChild.nodeValue);var u=t.getElementsByTagName("head")[0];if(null===a||!1===o){var c=i&&i.nextSibling||null;c?c.parentNode.insertBefore(l,c):u.appendChild(l)}if(a&&!1===o&&a.parentNode.removeChild(a),l.styleSheet)try{l.styleSheet.cssText=n}catch(e){throw new Error("Couldn't reassign styleSheet.cssText.")}},i=function(e){var t,n=e.document;return n.currentScript||(t=n.getElementsByTagName("script"))[t.length-1]},r={error:function(e){this._fireEvent("error",e)},warn:function(e){this._fireEvent("warn",e)},info:function(e){this._fireEvent("info",e)},debug:function(e){this._fireEvent("debug",e)},addListener:function(e){this._listeners.push(e)},removeListener:function(e){for(var t=0;t<this._listeners.length;t++)if(this._listeners[t]===e)return void this._listeners.splice(t,1)},_fireEvent:function(e,t){for(var n=0;n<this._listeners.length;n++){var i=this._listeners[n][e];i&&i(t)}},_listeners:[]},s=function(){function e(e,t){this.fileManagers=t||[],e=e||{};for(var n=[],i=n.concat(["encodeBase64","mimeLookup","charsetLookup","getSourceMapGenerator"]),r=0;r<i.length;r++){var s=i[r],a=e[s];a?this[s]=a.bind(e):r<n.length&&this.warn("missing required function in environment - ".concat(s))}}return e.prototype.getFileManager=function(e,t,n,i,s){e||r.warn("getFileManager called with no filename.. Please report this issue. continuing."),void 0===t&&r.warn("getFileManager called with null directory.. Please report this issue. continuing.");var a=this.fileManagers;n.pluginManager&&(a=[].concat(a).concat(n.pluginManager.getFileManagers()));for(var o=a.length-1;o>=0;o--){var l=a[o];if(l[s?"supportsSync":"supports"](e,t,n,i))return l}return null},e.prototype.addFileManager=function(e){this.fileManagers.push(e)},e.prototype.clearFileManagers=function(){this.fileManagers=[]},e}(),a={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},o={length:{m:1,cm:.01,mm:.001,in:.0254,px:.0254/96,pt:.0254/72,pc:.0254/72*12},duration:{s:1,ms:.001},angle:{rad:1/(2*Math.PI),deg:1/360,grad:1/400,turn:1}},l={colors:a,unitConversions:o},u=function(){function e(){this.parent=null,this.visibilityBlocks=void 0,this.nodeVisible=void 0,this.rootNode=null,this.parsed=null}return Object.defineProperty(e.prototype,"currentFileInfo",{get:function(){return this.fileInfo()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.getIndex()},enumerable:!1,configurable:!0}),e.prototype.setParent=function(t,n){function i(t){t&&t instanceof e&&(t.parent=n)}Array.isArray(t)?t.forEach(i):i(t)},e.prototype.getIndex=function(){return this._index||this.parent&&this.parent.getIndex()||0},e.prototype.fileInfo=function(){return this._fileInfo||this.parent&&this.parent.fileInfo()||{}},e.prototype.isRulesetLike=function(){return!1},e.prototype.toCSS=function(e){var t=[];return this.genCSS(e,{add:function(e,n,i){t.push(e)},isEmpty:function(){return 0===t.length}}),t.join("")},e.prototype.genCSS=function(e,t){t.add(this.value)},e.prototype.accept=function(e){this.value=e.visit(this.value)},e.prototype.eval=function(){return this},e.prototype._operate=function(e,t,n,i){switch(t){case"+":return n+i;case"-":return n-i;case"*":return n*i;case"/":return n/i}},e.prototype.fround=function(e,t){var n=e&&e.numPrecision;return n?Number((t+2e-16).toFixed(n)):t},e.compare=function(t,n){if(t.compare&&"Quoted"!==n.type&&"Anonymous"!==n.type)return t.compare(n);if(n.compare)return-n.compare(t);if(t.type===n.type){if(t=t.value,n=n.value,!Array.isArray(t))return t===n?0:void 0;if(t.length===n.length){for(var i=0;i<t.length;i++)if(0!==e.compare(t[i],n[i]))return;return 0}}},e.numericCompare=function(e,t){return e<t?-1:e===t?0:e>t?1:void 0},e.prototype.blocksVisibility=function(){return void 0===this.visibilityBlocks&&(this.visibilityBlocks=0),0!==this.visibilityBlocks},e.prototype.addVisibilityBlock=function(){void 0===this.visibilityBlocks&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks+1},e.prototype.removeVisibilityBlock=function(){void 0===this.visibilityBlocks&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks-1},e.prototype.ensureVisibility=function(){this.nodeVisible=!0},e.prototype.ensureInvisibility=function(){this.nodeVisible=!1},e.prototype.isVisible=function(){return this.nodeVisible},e.prototype.visibilityInfo=function(){return{visibilityBlocks:this.visibilityBlocks,nodeVisible:this.nodeVisible}},e.prototype.copyVisibilityInfo=function(e){e&&(this.visibilityBlocks=e.visibilityBlocks,this.nodeVisible=e.nodeVisible)},e}(),c=function(e,t,n){var i=this;Array.isArray(e)?this.rgb=e:e.length>=6?(this.rgb=[],e.match(/.{2}/g).map((function(e,t){t<3?i.rgb.push(parseInt(e,16)):i.alpha=parseInt(e,16)/255}))):(this.rgb=[],e.split("").map((function(e,t){t<3?i.rgb.push(parseInt(e+e,16)):i.alpha=parseInt(e+e,16)/255}))),this.alpha=this.alpha||("number"==typeof t?t:1),void 0!==n&&(this.value=n)};function h(e,t){return Math.min(Math.max(e,0),t)}function f(e){return"#".concat(e.map((function(e){return((e=h(Math.round(e),255))<16?"0":"")+e.toString(16)})).join(""))}c.prototype=Object.assign(new u,{type:"Color",luma:function(){var e=this.rgb[0]/255,t=this.rgb[1]/255,n=this.rgb[2]/255;return.2126*(e=e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t=t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},genCSS:function(e,t){t.add(this.toCSS(e))},toCSS:function(e,t){var n,i,r,s=e&&e.compress&&!t,a=[];if(i=this.fround(e,this.alpha),this.value)if(0===this.value.indexOf("rgb"))i<1&&(r="rgba");else{if(0!==this.value.indexOf("hsl"))return this.value;r=i<1?"hsla":"hsl"}else i<1&&(r="rgba");switch(r){case"rgba":a=this.rgb.map((function(e){return h(Math.round(e),255)})).concat(h(i,1));break;case"hsla":a.push(h(i,1));case"hsl":n=this.toHSL(),a=[this.fround(e,n.h),"".concat(this.fround(e,100*n.s),"%"),"".concat(this.fround(e,100*n.l),"%")].concat(a)}if(r)return"".concat(r,"(").concat(a.join(",".concat(s?"":" ")),")");if(n=this.toRGB(),s){var o=n.split("");o[1]===o[2]&&o[3]===o[4]&&o[5]===o[6]&&(n="#".concat(o[1]).concat(o[3]).concat(o[5]))}return n},operate:function(e,t,n){for(var i=new Array(3),r=this.alpha*(1-n.alpha)+n.alpha,s=0;s<3;s++)i[s]=this._operate(e,t,this.rgb[s],n.rgb[s]);return new c(i,r)},toRGB:function(){return f(this.rgb)},toHSL:function(){var e,t,n=this.rgb[0]/255,i=this.rgb[1]/255,r=this.rgb[2]/255,s=this.alpha,a=Math.max(n,i,r),o=Math.min(n,i,r),l=(a+o)/2,u=a-o;if(a===o)e=t=0;else{switch(t=l>.5?u/(2-a-o):u/(a+o),a){case n:e=(i-r)/u+(i<r?6:0);break;case i:e=(r-n)/u+2;break;case r:e=(n-i)/u+4}e/=6}return{h:360*e,s:t,l:l,a:s}},toHSV:function(){var e,t,n=this.rgb[0]/255,i=this.rgb[1]/255,r=this.rgb[2]/255,s=this.alpha,a=Math.max(n,i,r),o=Math.min(n,i,r),l=a,u=a-o;if(t=0===a?0:u/a,a===o)e=0;else{switch(a){case n:e=(i-r)/u+(i<r?6:0);break;case i:e=(r-n)/u+2;break;case r:e=(n-i)/u+4}e/=6}return{h:360*e,s:t,v:l,a:s}},toARGB:function(){return f([255*this.alpha].concat(this.rgb))},compare:function(e){return e.rgb&&e.rgb[0]===this.rgb[0]&&e.rgb[1]===this.rgb[1]&&e.rgb[2]===this.rgb[2]&&e.alpha===this.alpha?0:void 0}}),c.fromKeyword=function(e){var t,n=e.toLowerCase();if(a.hasOwnProperty(n)?t=new c(a[n].slice(1)):"transparent"===n&&(t=new c([0,0,0],0)),t)return t.value=e,t};var p=function(){return(p=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var v=function(e){this.value=e};v.prototype=Object.assign(new u,{type:"Paren",genCSS:function(e,t){t.add("("),this.value.genCSS(e,t),t.add(")")},eval:function(e){var t=new v(this.value.eval(e));return this.noSpacing&&(t.noSpacing=!0),t}});var d={"":!0," ":!0,"|":!0},m=function(e){" "===e?(this.value=" ",this.emptyOrWhitespace=!0):(this.value=e?e.trim():"",this.emptyOrWhitespace=""===this.value)};m.prototype=Object.assign(new u,{type:"Combinator",genCSS:function(e,t){var n=e.compress||d[this.value]?"":" ";t.add(n+this.value+n)}});var g=function(e,t,n,i,r,s){this.combinator=e instanceof m?e:new m(e),this.value="string"==typeof t?t.trim():t||"",this.isVariable=n,this._index=i,this._fileInfo=r,this.copyVisibilityInfo(s),this.setParent(this.combinator,this)};g.prototype=Object.assign(new u,{type:"Element",accept:function(e){var t=this.value;this.combinator=e.visit(this.combinator),"object"==typeof t&&(this.value=e.visit(t))},eval:function(e){return new g(this.combinator,this.value.eval?this.value.eval(e):this.value,this.isVariable,this.getIndex(),this.fileInfo(),this.visibilityInfo())},clone:function(){return new g(this.combinator,this.value,this.isVariable,this.getIndex(),this.fileInfo(),this.visibilityInfo())},genCSS:function(e,t){t.add(this.toCSS(e),this.fileInfo(),this.getIndex())},toCSS:function(e){e=e||{};var t=this.value,n=e.firstSelector;return t instanceof v&&(e.firstSelector=!0),t=t.toCSS?t.toCSS(e):t,e.firstSelector=n,""===t&&"&"===this.combinator.value.charAt(0)?"":this.combinator.toCSS(e)+t}});var y={ALWAYS:0,PARENS_DIVISION:1,PARENS:2},b=0,w=1,x=2;function S(e){return Object.prototype.toString.call(e).slice(8,-1)}function I(e){return"Array"===S(e)}function C(e,t={}){if(I(e))return e.map(e=>C(e,t));if("Object"!==S(n=e)||n.constructor!==Object||Object.getPrototypeOf(n)!==Object.prototype)return e;var n;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce((n,i)=>{if(I(t.props)&&!t.props.includes(i))return n;return function(e,t,n,i,r){const s={}.propertyIsEnumerable.call(i,t)?"enumerable":"nonenumerable";"enumerable"===s&&(e[t]=n),r&&"nonenumerable"===s&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,i,C(e[i],t),e,t.nonenumerable),n},{})}function k(e,t){for(var n=e+1,i=null,r=-1;--n>=0&&"\n"!==t.charAt(n);)r++;return"number"==typeof e&&(i=(t.slice(0,e).match(/\n/g)||"").length),{line:i,column:r}}function A(e){var t,n=e.length,i=new Array(n);for(t=0;t<n;t++)i[t]=e[t];return i}function _(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function M(e,t){var n=t||{};if(!t._defaults){n={};var i=C(e);n._defaults=i;var r=t?C(t):{};Object.assign(n,i,r)}return n}function P(e,t){if(t&&t._defaults)return t;var n=M(e,t);if(n.strictMath&&(n.math=y.PARENS),n.relativeUrls&&(n.rewriteUrls=x),"string"==typeof n.math)switch(n.math.toLowerCase()){case"always":n.math=y.ALWAYS;break;case"parens-division":n.math=y.PARENS_DIVISION;break;case"strict":case"parens":n.math=y.PARENS;break;default:n.math=y.PARENS}if("string"==typeof n.rewriteUrls)switch(n.rewriteUrls.toLowerCase()){case"off":n.rewriteUrls=b;break;case"local":n.rewriteUrls=w;break;case"all":n.rewriteUrls=x}return n}function E(e,t){void 0===t&&(t=[]);for(var n=0,i=e.length;n<i;n++){var r=e[n];Array.isArray(r)?E(r,t):void 0!==r&&t.push(r)}return t}function R(e){return null==e}var O=Object.freeze({__proto__:null,getLocation:k,copyArray:A,clone:_,defaults:M,copyOptions:P,merge:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},flattenArray:E,isNullOrUndefined:R}),F=/(<anonymous>|Function):(\d+):(\d+)/,$=function(e,t,n){Error.call(this);var i=e.filename||n;if(this.message=e.message,this.stack=e.stack,this.type=e.type||"Syntax",t&&i){var r=t.contents[i],s=k(e.index,r),a=s.line,o=s.column,l=e.call&&k(e.call,r).line,u=r?r.split("\n"):"";if(this.filename=i,this.index=e.index,this.line="number"==typeof a?a+1:null,this.column=o,!this.line&&this.stack){var c=this.stack.match(F),h=new Function("a","throw new Error()"),f=0;try{h()}catch(e){var p=e.stack.match(F);f=1-parseInt(p[2])}c&&(c[2]&&(this.line=parseInt(c[2])+f),c[3]&&(this.column=parseInt(c[3])))}this.callLine=l+1,this.callExtract=u[l],this.extract=[u[this.line-2],u[this.line-1],u[this.line]]}};if(void 0===Object.create){var V=function(){};V.prototype=Error.prototype,$.prototype=new V}else $.prototype=Object.create(Error.prototype);$.prototype.constructor=$,$.prototype.toString=function(e){var t;e=e||{};var n=(null!==(t=this.type)&&void 0!==t?t:"").toLowerCase().includes("warning"),i=n?this.type:"".concat(this.type,"Error"),r=n?"yellow":"red",s="",a=this.extract||[],o=[],l=function(e){return e};if(e.stylize){var u=typeof e.stylize;if("function"!==u)throw Error("options.stylize should be a function, got a ".concat(u,"!"));l=e.stylize}if(null!==this.line){if(n||"string"!=typeof a[0]||o.push(l("".concat(this.line-1," ").concat(a[0]),"grey")),"string"==typeof a[1]){var c="".concat(this.line," ");a[1]&&(c+=a[1].slice(0,this.column)+l(l(l(a[1].substr(this.column,1),"bold")+a[1].slice(this.column+1),"red"),"inverse")),o.push(c)}n||"string"!=typeof a[2]||o.push(l("".concat(this.line+1," ").concat(a[2]),"grey")),o="".concat(o.join("\n")+l("","reset"),"\n")}return s+=l("".concat(i,": ").concat(this.message),r),this.filename&&(s+=l(" in ",r)+this.filename),this.line&&(s+=l(" on line ".concat(this.line,", column ").concat(this.column+1,":"),"grey")),s+="\n".concat(o),this.callLine&&(s+="".concat(l("from ",r)+(this.filename||""),"/n"),s+="".concat(l(this.callLine,"grey")," ").concat(this.callExtract,"/n")),s};var L={visitDeeper:!0},j=!1;function D(e){return e}var N=function(){function e(e){this._implementation=e,this._visitInCache={},this._visitOutCache={},j||(!function e(t,n){var i,r;for(i in t)switch(typeof(r=t[i])){case"function":r.prototype&&r.prototype.type&&(r.prototype.typeIndex=n++);break;case"object":n=e(r,n)}return n}(Je,1),j=!0)}return e.prototype.visit=function(e){if(!e)return e;var t=e.typeIndex;if(!t)return e.value&&e.value.typeIndex&&this.visit(e.value),e;var n,i=this._implementation,r=this._visitInCache[t],s=this._visitOutCache[t],a=L;if(a.visitDeeper=!0,r||(r=i[n="visit".concat(e.type)]||D,s=i["".concat(n,"Out")]||D,this._visitInCache[t]=r,this._visitOutCache[t]=s),r!==D){var o=r.call(i,e,a);e&&i.isReplacing&&(e=o)}if(a.visitDeeper&&e)if(e.length)for(var l=0,u=e.length;l<u;l++)e[l].accept&&e[l].accept(this);else e.accept&&e.accept(this);return s!=D&&s.call(i,e),e},e.prototype.visitArray=function(e,t){if(!e)return e;var n,i=e.length;if(t||!this._implementation.isReplacing){for(n=0;n<i;n++)this.visit(e[n]);return e}var r=[];for(n=0;n<i;n++){var s=this.visit(e[n]);void 0!==s&&(s.splice?s.length&&this.flatten(s,r):r.push(s))}return r},e.prototype.flatten=function(e,t){var n,i,r,s,a,o;for(t||(t=[]),i=0,n=e.length;i<n;i++)if(void 0!==(r=e[i]))if(r.splice)for(a=0,s=r.length;a<s;a++)void 0!==(o=r[a])&&(o.splice?o.length&&this.flatten(o,t):t.push(o));else t.push(r);return t},e}(),B={},U=function(e,t,n){if(e)for(var i=0;i<n.length;i++)Object.prototype.hasOwnProperty.call(e,n[i])&&(t[n[i]]=e[n[i]])},q=["paths","rewriteUrls","rootpath","strictImports","insecure","dumpLineNumbers","compress","syncImport","mime","useFileCache","processImports","pluginManager","quiet"];B.Parse=function(e){U(e,this,q),"string"==typeof this.paths&&(this.paths=[this.paths])};var T=["paths","compress","math","strictUnits","sourceMap","importMultiple","urlArgs","javascriptEnabled","pluginManager","importantScope","rewriteUrls"];function z(e){return!/^(?:[a-z-]+:|\/|#)/i.test(e)}function G(e){return"."===e.charAt(0)}B.Eval=function(e,t){U(e,this,T),"string"==typeof this.paths&&(this.paths=[this.paths]),this.frames=t||[],this.importantScope=this.importantScope||[]},B.Eval.prototype.enterCalc=function(){this.calcStack||(this.calcStack=[]),this.calcStack.push(!0),this.inCalc=!0},B.Eval.prototype.exitCalc=function(){this.calcStack.pop(),this.calcStack.length||(this.inCalc=!1)},B.Eval.prototype.inParenthesis=function(){this.parensStack||(this.parensStack=[]),this.parensStack.push(!0)},B.Eval.prototype.outOfParenthesis=function(){this.parensStack.pop()},B.Eval.prototype.inCalc=!1,B.Eval.prototype.mathOn=!0,B.Eval.prototype.isMathOn=function(e){return!!this.mathOn&&(!!("/"!==e||this.math===y.ALWAYS||this.parensStack&&this.parensStack.length)&&(!(this.math>y.PARENS_DIVISION)||this.parensStack&&this.parensStack.length))},B.Eval.prototype.pathRequiresRewrite=function(e){return(this.rewriteUrls===w?G:z)(e)},B.Eval.prototype.rewritePath=function(e,t){var n;return t=t||"",n=this.normalizePath(t+e),G(e)&&z(t)&&!1===G(n)&&(n="./".concat(n)),n},B.Eval.prototype.normalizePath=function(e){var t,n=e.split("/").reverse();for(e=[];0!==n.length;)switch(t=n.pop()){case".":break;case"..":0===e.length||".."===e[e.length-1]?e.push(t):e.pop();break;default:e.push(t)}return e.join("/")};var W=function(){function e(e){this.imports=[],this.variableImports=[],this._onSequencerEmpty=e,this._currentDepth=0}return e.prototype.addImport=function(e){var t=this,n={callback:e,args:null,isReady:!1};return this.imports.push(n),function(){n.args=Array.prototype.slice.call(arguments,0),n.isReady=!0,t.tryRun()}},e.prototype.addVariableImport=function(e){this.variableImports.push(e)},e.prototype.tryRun=function(){this._currentDepth++;try{for(;;){for(;this.imports.length>0;){var e=this.imports[0];if(!e.isReady)return;this.imports=this.imports.slice(1),e.callback.apply(null,e.args)}if(0===this.variableImports.length)break;var t=this.variableImports[0];this.variableImports=this.variableImports.slice(1),t()}}finally{this._currentDepth--}0===this._currentDepth&&this._onSequencerEmpty&&this._onSequencerEmpty()},e}(),J=function(e,t){this._visitor=new N(this),this._importer=e,this._finish=t,this.context=new B.Eval,this.importCount=0,this.onceFileDetectionMap={},this.recursionDetector={},this._sequencer=new W(this._onSequencerEmpty.bind(this))};J.prototype={isReplacing:!1,run:function(e){try{this._visitor.visit(e)}catch(e){this.error=e}this.isFinished=!0,this._sequencer.tryRun()},_onSequencerEmpty:function(){this.isFinished&&this._finish(this.error)},visitImport:function(e,t){var n=e.options.inline;if(!e.css||n){var i=new B.Eval(this.context,A(this.context.frames)),r=i.frames[0];this.importCount++,e.isVariableImport()?this._sequencer.addVariableImport(this.processImportNode.bind(this,e,i,r)):this.processImportNode(e,i,r)}t.visitDeeper=!1},processImportNode:function(e,t,n){var i,r=e.options.inline;try{i=e.evalForImport(t)}catch(t){t.filename||(t.index=e.getIndex(),t.filename=e.fileInfo().filename),e.css=!0,e.error=t}if(!i||i.css&&!r)this.importCount--,this.isFinished&&this._sequencer.tryRun();else{i.options.multiple&&(t.importMultiple=!0);for(var s=void 0===i.css,a=0;a<n.rules.length;a++)if(n.rules[a]===e){n.rules[a]=i;break}var o=this.onImported.bind(this,i,t),l=this._sequencer.addImport(o);this._importer.push(i.getPath(),s,i.fileInfo(),i.options,l)}},onImported:function(e,t,n,i,r,s){n&&(n.filename||(n.index=e.getIndex(),n.filename=e.fileInfo().filename),this.error=n);var a=this,o=e.options.inline,l=e.options.isPlugin,u=e.options.optional,c=r||s in a.recursionDetector;if(t.importMultiple||(e.skip=!!c||function(){return s in a.onceFileDetectionMap||(a.onceFileDetectionMap[s]=!0,!1)}),!s&&u&&(e.skip=!0),i&&(e.root=i,e.importedFilename=s,!o&&!l&&(t.importMultiple||!c))){a.recursionDetector[s]=!0;var h=this.context;this.context=t;try{this._visitor.visit(i)}catch(n){this.error=n}this.context=h}a.importCount--,a.isFinished&&a._sequencer.tryRun()},visitDeclaration:function(e,t){"DetachedRuleset"===e.value.type?this.context.frames.unshift(e):t.visitDeeper=!1},visitDeclarationOut:function(e){"DetachedRuleset"===e.value.type&&this.context.frames.shift()},visitAtRule:function(e,t){e.value?this.context.frames.unshift(e):e.declarations&&e.declarations.length?e.isRooted?this.context.frames.unshift(e):this.context.frames.unshift(e.declarations[0]):e.rules&&e.rules.length&&this.context.frames.unshift(e)},visitAtRuleOut:function(e){this.context.frames.shift()},visitMixinDefinition:function(e,t){this.context.frames.unshift(e)},visitMixinDefinitionOut:function(e){this.context.frames.shift()},visitRuleset:function(e,t){this.context.frames.unshift(e)},visitRulesetOut:function(e){this.context.frames.shift()},visitMedia:function(e,t){this.context.frames.unshift(e.rules[0])},visitMediaOut:function(e){this.context.frames.shift()}};var K=function(){function e(e){this.visible=e}return e.prototype.run=function(e){this.visit(e)},e.prototype.visitArray=function(e){if(!e)return e;var t,n=e.length;for(t=0;t<n;t++)this.visit(e[t]);return e},e.prototype.visit=function(e){return e?e.constructor===Array?this.visitArray(e):(!e.blocksVisibility||e.blocksVisibility()||(this.visible?e.ensureVisibility():e.ensureInvisibility(),e.accept(this)),e):e},e}(),H=function(){function e(){this._visitor=new N(this),this.contexts=[],this.allExtendsStack=[[]]}return e.prototype.run=function(e){return(e=this._visitor.visit(e)).allExtends=this.allExtendsStack[0],e},e.prototype.visitDeclaration=function(e,t){t.visitDeeper=!1},e.prototype.visitMixinDefinition=function(e,t){t.visitDeeper=!1},e.prototype.visitRuleset=function(e,t){if(!e.root){var n,i,r,s,a=[],o=e.rules,l=o?o.length:0;for(n=0;n<l;n++)e.rules[n]instanceof Je.Extend&&(a.push(o[n]),e.extendOnEveryPath=!0);var u=e.paths;for(n=0;n<u.length;n++){var c=u[n],h=c[c.length-1].extendList;for((s=h?A(h).concat(a):a)&&(s=s.map((function(e){return e.clone()}))),i=0;i<s.length;i++)this.foundExtends=!0,(r=s[i]).findSelfSelectors(c),r.ruleset=e,0===i&&(r.firstExtendOnThisSelectorPath=!0),this.allExtendsStack[this.allExtendsStack.length-1].push(r)}this.contexts.push(e.selectors)}},e.prototype.visitRulesetOut=function(e){e.root||(this.contexts.length=this.contexts.length-1)},e.prototype.visitMedia=function(e,t){e.allExtends=[],this.allExtendsStack.push(e.allExtends)},e.prototype.visitMediaOut=function(e){this.allExtendsStack.length=this.allExtendsStack.length-1},e.prototype.visitAtRule=function(e,t){e.allExtends=[],this.allExtendsStack.push(e.allExtends)},e.prototype.visitAtRuleOut=function(e){this.allExtendsStack.length=this.allExtendsStack.length-1},e}(),Q=function(){function e(){this._visitor=new N(this)}return e.prototype.run=function(e){var t=new H;if(this.extendIndices={},t.run(e),!t.foundExtends)return e;e.allExtends=e.allExtends.concat(this.doExtendChaining(e.allExtends,e.allExtends)),this.allExtendsStack=[e.allExtends];var n=this._visitor.visit(e);return this.checkExtendsForNonMatched(e.allExtends),n},e.prototype.checkExtendsForNonMatched=function(e){var t=this.extendIndices;e.filter((function(e){return!e.hasFoundMatches&&1==e.parent_ids.length})).forEach((function(e){var n="_unknown_";try{n=e.selector.toCSS({})}catch(e){}t["".concat(e.index," ").concat(n)]||(t["".concat(e.index," ").concat(n)]=!0,r.warn("WARNING: extend '".concat(n,"' has no matches")))}))},e.prototype.doExtendChaining=function(e,t,n){var i,r,s,a,o,l,u,c,h=[],f=this;for(n=n||0,i=0;i<e.length;i++)for(r=0;r<t.length;r++)l=e[i],u=t[r],l.parent_ids.indexOf(u.object_id)>=0||(o=[u.selfSelectors[0]],(s=f.findMatch(l,o)).length&&(l.hasFoundMatches=!0,l.selfSelectors.forEach((function(e){var t=u.visibilityInfo();a=f.extendSelector(s,o,e,l.isVisible()),(c=new Je.Extend(u.selector,u.option,0,u.fileInfo(),t)).selfSelectors=a,a[a.length-1].extendList=[c],h.push(c),c.ruleset=u.ruleset,c.parent_ids=c.parent_ids.concat(u.parent_ids,l.parent_ids),u.firstExtendOnThisSelectorPath&&(c.firstExtendOnThisSelectorPath=!0,u.ruleset.paths.push(a))}))));if(h.length){if(this.extendChainCount++,n>100){var p="{unable to calculate}",v="{unable to calculate}";try{p=h[0].selfSelectors[0].toCSS(),v=h[0].selector.toCSS()}catch(e){}throw{message:"extend circular reference detected. One of the circular extends is currently:".concat(p,":extend(").concat(v,")")}}return h.concat(f.doExtendChaining(h,t,n+1))}return h},e.prototype.visitDeclaration=function(e,t){t.visitDeeper=!1},e.prototype.visitMixinDefinition=function(e,t){t.visitDeeper=!1},e.prototype.visitSelector=function(e,t){t.visitDeeper=!1},e.prototype.visitRuleset=function(e,t){if(!e.root){var n,i,r,s,a=this.allExtendsStack[this.allExtendsStack.length-1],o=[],l=this;for(r=0;r<a.length;r++)for(i=0;i<e.paths.length;i++)if(s=e.paths[i],!e.extendOnEveryPath){var u=s[s.length-1].extendList;u&&u.length||(n=this.findMatch(a[r],s)).length&&(a[r].hasFoundMatches=!0,a[r].selfSelectors.forEach((function(e){var t;t=l.extendSelector(n,s,e,a[r].isVisible()),o.push(t)})))}e.paths=e.paths.concat(o)}},e.prototype.findMatch=function(e,t){var n,i,r,s,a,o,l,u=e.selector.elements,c=[],h=[];for(n=0;n<t.length;n++)for(i=t[n],r=0;r<i.elements.length;r++)for(s=i.elements[r],(e.allowBefore||0===n&&0===r)&&c.push({pathIndex:n,index:r,matched:0,initialCombinator:s.combinator}),o=0;o<c.length;o++)l=c[o],""===(a=s.combinator.value)&&0===r&&(a=" "),!this.isElementValuesEqual(u[l.matched].value,s.value)||l.matched>0&&u[l.matched].combinator.value!==a?l=null:l.matched++,l&&(l.finished=l.matched===u.length,l.finished&&!e.allowAfter&&(r+1<i.elements.length||n+1<t.length)&&(l=null)),l?l.finished&&(l.length=u.length,l.endPathIndex=n,l.endPathElementIndex=r+1,c.length=0,h.push(l)):(c.splice(o,1),o--);return h},e.prototype.isElementValuesEqual=function(e,t){if("string"==typeof e||"string"==typeof t)return e===t;if(e instanceof Je.Attribute)return e.op===t.op&&e.key===t.key&&(e.value&&t.value?(e=e.value.value||e.value)===(t=t.value.value||t.value):!e.value&&!t.value);if(e=e.value,t=t.value,e instanceof Je.Selector){if(!(t instanceof Je.Selector)||e.elements.length!==t.elements.length)return!1;for(var n=0;n<e.elements.length;n++){if(e.elements[n].combinator.value!==t.elements[n].combinator.value&&(0!==n||(e.elements[n].combinator.value||" ")!==(t.elements[n].combinator.value||" ")))return!1;if(!this.isElementValuesEqual(e.elements[n].value,t.elements[n].value))return!1}return!0}return!1},e.prototype.extendSelector=function(e,t,n,i){var r,s,a,o,l,u=0,c=0,h=[];for(r=0;r<e.length;r++)s=t[(o=e[r]).pathIndex],a=new Je.Element(o.initialCombinator,n.elements[0].value,n.elements[0].isVariable,n.elements[0].getIndex(),n.elements[0].fileInfo()),o.pathIndex>u&&c>0&&(h[h.length-1].elements=h[h.length-1].elements.concat(t[u].elements.slice(c)),c=0,u++),l=s.elements.slice(c,o.index).concat([a]).concat(n.elements.slice(1)),u===o.pathIndex&&r>0?h[h.length-1].elements=h[h.length-1].elements.concat(l):(h=h.concat(t.slice(u,o.pathIndex))).push(new Je.Selector(l)),u=o.endPathIndex,(c=o.endPathElementIndex)>=t[u].elements.length&&(c=0,u++);return u<t.length&&c>0&&(h[h.length-1].elements=h[h.length-1].elements.concat(t[u].elements.slice(c)),u++),h=(h=h.concat(t.slice(u,t.length))).map((function(e){var t=e.createDerived(e.elements);return i?t.ensureVisibility():t.ensureInvisibility(),t}))},e.prototype.visitMedia=function(e,t){var n=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);n=n.concat(this.doExtendChaining(n,e.allExtends)),this.allExtendsStack.push(n)},e.prototype.visitMediaOut=function(e){var t=this.allExtendsStack.length-1;this.allExtendsStack.length=t},e.prototype.visitAtRule=function(e,t){var n=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);n=n.concat(this.doExtendChaining(n,e.allExtends)),this.allExtendsStack.push(n)},e.prototype.visitAtRuleOut=function(e){var t=this.allExtendsStack.length-1;this.allExtendsStack.length=t},e}(),Z=function(){function e(){this.contexts=[[]],this._visitor=new N(this)}return e.prototype.run=function(e){return this._visitor.visit(e)},e.prototype.visitDeclaration=function(e,t){t.visitDeeper=!1},e.prototype.visitMixinDefinition=function(e,t){t.visitDeeper=!1},e.prototype.visitRuleset=function(e,t){var n,i=this.contexts[this.contexts.length-1],r=[];this.contexts.push(r),e.root||((n=e.selectors)&&(n=n.filter((function(e){return e.getIsOutput()})),e.selectors=n.length?n:n=null,n&&e.joinSelectors(r,i,n)),n||(e.rules=null),e.paths=r)},e.prototype.visitRulesetOut=function(e){this.contexts.length=this.contexts.length-1},e.prototype.visitMedia=function(e,t){var n=this.contexts[this.contexts.length-1];e.rules[0].root=0===n.length||n[0].multiMedia},e.prototype.visitAtRule=function(e,t){var n=this.contexts[this.contexts.length-1];e.declarations&&e.declarations.length?e.declarations[0].root=0===n.length||n[0].multiMedia:e.rules&&e.rules.length&&(e.rules[0].root=e.isRooted||0===n.length||null)},e}(),X=function(){function e(e){this._visitor=new N(this),this._context=e}return e.prototype.containsSilentNonBlockedChild=function(e){var t;if(!e)return!1;for(var n=0;n<e.length;n++)if((t=e[n]).isSilent&&t.isSilent(this._context)&&!t.blocksVisibility())return!0;return!1},e.prototype.keepOnlyVisibleChilds=function(e){e&&e.rules&&(e.rules=e.rules.filter((function(e){return e.isVisible()})))},e.prototype.isEmpty=function(e){return!e||!e.rules||0===e.rules.length},e.prototype.hasVisibleSelector=function(e){return!(!e||!e.paths)&&e.paths.length>0},e.prototype.resolveVisibility=function(e){if(!e.blocksVisibility()){if(this.isEmpty(e))return;return e}var t=e.rules[0];if(this.keepOnlyVisibleChilds(t),!this.isEmpty(t))return e.ensureVisibility(),e.removeVisibilityBlock(),e},e.prototype.isVisibleRuleset=function(e){return!!e.firstRoot||!this.isEmpty(e)&&!(!e.root&&!this.hasVisibleSelector(e))},e}(),Y=function(e){this._visitor=new N(this),this._context=e,this.utils=new X(e)};Y.prototype={isReplacing:!0,run:function(e){return this._visitor.visit(e)},visitDeclaration:function(e,t){if(!e.blocksVisibility()&&!e.variable)return e},visitMixinDefinition:function(e,t){e.frames=[]},visitExtend:function(e,t){},visitComment:function(e,t){if(!e.blocksVisibility()&&!e.isSilent(this._context))return e},visitMedia:function(e,t){var n=e.rules[0].rules;return e.accept(this._visitor),t.visitDeeper=!1,this.utils.resolveVisibility(e,n)},visitImport:function(e,t){if(!e.blocksVisibility())return e},visitAtRule:function(e,t){return e.rules&&e.rules.length?this.visitAtRuleWithBody(e,t):this.visitAtRuleWithoutBody(e,t)},visitAnonymous:function(e,t){if(!e.blocksVisibility())return e.accept(this._visitor),e},visitAtRuleWithBody:function(e,t){var n=function(e){var t=e.rules;return function(e){var t=e.rules;return 1===t.length&&(!t[0].paths||0===t[0].paths.length)}(e)?t[0].rules:t}(e);return e.accept(this._visitor),t.visitDeeper=!1,this.utils.isEmpty(e)||this._mergeRules(e.rules[0].rules),this.utils.resolveVisibility(e,n)},visitAtRuleWithoutBody:function(e,t){if(!e.blocksVisibility()){if("@charset"===e.name){if(this.charset){if(e.debugInfo){var n=new Je.Comment("/* ".concat(e.toCSS(this._context).replace(/\n/g,"")," */\n"));return n.debugInfo=e.debugInfo,this._visitor.visit(n)}return}this.charset=!0}return e}},checkValidNodes:function(e,t){if(e)for(var n=0;n<e.length;n++){var i=e[n];if(t&&i instanceof Je.Declaration&&!i.variable)throw{message:"Properties must be inside selector blocks. They cannot be in the root",index:i.getIndex(),filename:i.fileInfo()&&i.fileInfo().filename};if(i instanceof Je.Call)throw{message:"Function '".concat(i.name,"' did not return a root node"),index:i.getIndex(),filename:i.fileInfo()&&i.fileInfo().filename};if(i.type&&!i.allowRoot)throw{message:"".concat(i.type," node returned by a function is not valid here"),index:i.getIndex(),filename:i.fileInfo()&&i.fileInfo().filename}}},visitRuleset:function(e,t){var n,i=[];if(this.checkValidNodes(e.rules,e.firstRoot),e.root)e.accept(this._visitor),t.visitDeeper=!1;else{this._compileRulesetPaths(e);for(var r=e.rules,s=r?r.length:0,a=0;a<s;)(n=r[a])&&n.rules?(i.push(this._visitor.visit(n)),r.splice(a,1),s--):a++;s>0?e.accept(this._visitor):e.rules=null,t.visitDeeper=!1}return e.rules&&(this._mergeRules(e.rules),this._removeDuplicateRules(e.rules)),this.utils.isVisibleRuleset(e)&&(e.ensureVisibility(),i.splice(0,0,e)),1===i.length?i[0]:i},_compileRulesetPaths:function(e){e.paths&&(e.paths=e.paths.filter((function(e){var t;for(" "===e[0].elements[0].combinator.value&&(e[0].elements[0].combinator=new Je.Combinator("")),t=0;t<e.length;t++)if(e[t].isVisible()&&e[t].getIsOutput())return!0;return!1})))},_removeDuplicateRules:function(e){if(e){var t,n,i,r={};for(i=e.length-1;i>=0;i--)if((n=e[i])instanceof Je.Declaration)if(r[n.name]){(t=r[n.name])instanceof Je.Declaration&&(t=r[n.name]=[r[n.name].toCSS(this._context)]);var s=n.toCSS(this._context);-1!==t.indexOf(s)?e.splice(i,1):t.push(s)}else r[n.name]=n}},_mergeRules:function(e){if(e){for(var t={},n=[],i=0;i<e.length;i++){var r=e[i];if(r.merge){var s=r.name;t[s]?e.splice(i--,1):n.push(t[s]=[]),t[s].push(r)}}n.forEach((function(e){if(e.length>0){var t=e[0],n=[],i=[new Je.Expression(n)];e.forEach((function(e){"+"===e.merge&&n.length>0&&i.push(new Je.Expression(n=[])),n.push(e.value),t.important=t.important||e.important})),t.value=new Je.Value(i)}}))}}};var ee={Visitor:N,ImportVisitor:J,MarkVisibleSelectorsVisitor:K,ExtendVisitor:Q,JoinSelectorVisitor:Z,ToCSSVisitor:Y};var te=function e(t){return{_data:{},add:function(e,t){e=e.toLowerCase(),this._data.hasOwnProperty(e),this._data[e]=t},addMultiple:function(e){var t=this;Object.keys(e).forEach((function(n){t.add(n,e[n])}))},get:function(e){return this._data[e]||t&&t.get(e)},getLocalFunctions:function(){return this._data},inherit:function(){return e(this)},create:function(t){return e(t)}}}(null),ne={queryInParens:!0},ie={queryInParens:!0},re=function(e,t,n,i,r,s){this.value=e,this._index=t,this._fileInfo=n,this.mapLines=i,this.rulesetLike=void 0!==r&&r,this.allowRoot=!0,this.copyVisibilityInfo(s)};re.prototype=Object.assign(new u,{type:"Anonymous",eval:function(){return new re(this.value,this._index,this._fileInfo,this.mapLines,this.rulesetLike,this.visibilityInfo())},compare:function(e){return e.toCSS&&this.toCSS()===e.toCSS()?0:void 0},isRulesetLike:function(){return this.rulesetLike},genCSS:function(e,t){this.nodeVisible=Boolean(this.value),this.nodeVisible&&t.add(this.value,this._fileInfo,this._index,this.mapLines)}});var se=function e(t,n,i,s){var a;s=s||0;var o=function(){var e,t,n,i,r,s,a,o=[],l={};function u(n){for(var i,o,c,h=l.i,f=t,p=l.i-a,v=l.i+s.length-p,d=l.i+=n,m=e;l.i<v;l.i++){if(i=m.charCodeAt(l.i),l.autoCommentAbsorb&&47===i){if("/"===(o=m.charAt(l.i+1))){c={index:l.i,isLineComment:!0};var g=m.indexOf("\n",l.i+2);g<0&&(g=v),l.i=g,c.text=m.substr(c.index,l.i-c.index),l.commentStore.push(c);continue}if("*"===o){var y=m.indexOf("*/",l.i+2);if(y>=0){c={index:l.i,text:m.substr(l.i,y+2-l.i),isLineComment:!1},l.i+=c.text.length-1,l.commentStore.push(c);continue}}break}if(32!==i&&10!==i&&9!==i&&13!==i)break}if(s=s.slice(n+l.i-d+p),a=l.i,!s.length){if(t<r.length-1)return s=r[++t],u(0),!0;l.finished=!0}return h!==l.i||f!==t}return l.save=function(){a=l.i,o.push({current:s,i:l.i,j:t})},l.restore=function(e){(l.i>n||l.i===n&&e&&!i)&&(n=l.i,i=e);var r=o.pop();s=r.current,a=l.i=r.i,t=r.j},l.forget=function(){o.pop()},l.isWhitespace=function(t){var n=l.i+(t||0),i=e.charCodeAt(n);return 32===i||13===i||9===i||10===i},l.$re=function(e){l.i>a&&(s=s.slice(l.i-a),a=l.i);var t=e.exec(s);return t?(u(t[0].length),"string"==typeof t?t:1===t.length?t[0]:t):null},l.$char=function(t){return e.charAt(l.i)!==t?null:(u(1),t)},l.$peekChar=function(t){return e.charAt(l.i)!==t?null:t},l.$str=function(t){for(var n=t.length,i=0;i<n;i++)if(e.charAt(l.i+i)!==t.charAt(i))return null;return u(n),t},l.$quoted=function(t){var n=t||l.i,i=e.charAt(n);if("'"===i||'"'===i){for(var r=e.length,s=n,a=1;a+s<r;a++){switch(e.charAt(a+s)){case"\\":a++;continue;case"\r":case"\n":break;case i:var o=e.substr(s,a+1);return t||0===t?[i,o]:(u(a+1),o)}}return null}},l.$parseUntil=function(t){var n,i="",r=null,s=!1,a=0,o=[],c=[],h=e.length,f=l.i,p=l.i,v=l.i,d=!0;n="string"==typeof t?function(e){return e===t}:function(e){return t.test(e)};do{var m=e.charAt(v);if(0===a&&n(m))(r=e.substr(p,v-p))?c.push(r):c.push(" "),r=c,u(v-f),d=!1;else{if(s){"*"===m&&"/"===e.charAt(v+1)&&(v++,a--,s=!1),v++;continue}switch(m){case"\\":v++,m=e.charAt(v),c.push(e.substr(p,v-p+1)),p=v+1;break;case"/":"*"===e.charAt(v+1)&&(v++,s=!0,a++);break;case"'":case'"':(i=l.$quoted(v))?(c.push(e.substr(p,v-p),i),p=(v+=i[1].length-1)+1):(u(v-f),r=m,d=!1);break;case"{":o.push("}"),a++;break;case"(":o.push(")"),a++;break;case"[":o.push("]"),a++;break;case"}":case")":case"]":var g=o.pop();m===g?a--:(u(v-f),r=g,d=!1)}++v>h&&(d=!1)}}while(d);return r||null},l.autoCommentAbsorb=!0,l.commentStore=[],l.finished=!1,l.peek=function(t){if("string"==typeof t){for(var n=0;n<t.length;n++)if(e.charAt(l.i+n)!==t.charAt(n))return!1;return!0}return t.test(s)},l.peekChar=function(t){return e.charAt(l.i)===t},l.currentChar=function(){return e.charAt(l.i)},l.prevChar=function(){return e.charAt(l.i-1)},l.getInput=function(){return e},l.peekNotNumeric=function(){var t=e.charCodeAt(l.i);return t>57||t<43||47===t||44===t},l.start=function(i){e=i,l.i=t=a=n=0,s=(r=[i])[0],u(0)},l.end=function(){var t,r=l.i>=e.length;return l.i<n&&(t=i,l.i=n),{isFinished:r,furthest:l.i,furthestPossibleErrorMessage:t,furthestReachedEnd:l.i>=e.length-1,furthestChar:e[l.i]}},l}();function l(e,t){throw new $({index:o.i,filename:i.filename,type:t||"Syntax",message:e},n)}function u(e,s,a){t.quiet||r.warn(new $({index:null!=s?s:o.i,filename:i.filename,type:a?"".concat(a.toUpperCase()," WARNING"):"WARNING",message:e},n).toString())}function c(e,t){var n=e instanceof Function?e.call(a):o.$re(e);if(n)return n;l(t||("string"==typeof e?"expected '".concat(e,"' got '").concat(o.currentChar(),"'"):"unexpected token"))}function h(e,t){if(o.$char(e))return e;l(t||"expected '".concat(e,"' got '").concat(o.currentChar(),"'"))}function f(e){var t=i.filename;return{lineNumber:k(e,o.getInput()).line+1,fileName:t}}return{parserInput:o,imports:n,fileInfo:i,parseNode:function(e,t,r){var l,u=[],c=o;try{c.start(e);for(var h=0,f=void 0;f=t[h];h++)l=a[f](),u.push(l||null);c.end().isFinished?r(null,u):r(!0,null)}catch(e){throw new $({index:e.index+s,message:e.message},n,i.filename)}},parse:function(r,s,u){var c,h,f,p,v=null,d="";if(u&&u.disablePluginRule&&(a.plugin=function(){o.$re(/^@plugin?\s+/)&&l("@plugin statements are not allowed when disablePluginRule is set to true")}),h=u&&u.globalVars?"".concat(e.serializeVars(u.globalVars),"\n"):"",f=u&&u.modifyVars?"\n".concat(e.serializeVars(u.modifyVars)):"",t.pluginManager)for(var m=t.pluginManager.getPreProcessors(),g=0;g<m.length;g++)r=m[g].process(r,{context:t,imports:n,fileInfo:i});(h||u&&u.banner)&&(d=(u&&u.banner?u.banner:"")+h,(p=n.contentsIgnoredChars)[i.filename]=p[i.filename]||0,p[i.filename]+=d.length),r=d+(r=r.replace(/\r\n?/g,"\n")).replace(/^\uFEFF/,"")+f,n.contents[i.filename]=r;try{o.start(r),Je.Node.prototype.parse=this,c=new Je.Ruleset(null,this.parsers.primary()),Je.Node.prototype.rootNode=c,c.root=!0,c.firstRoot=!0,c.functionRegistry=te.inherit()}catch(e){return s(new $(e,n,i.filename))}var y=o.end();if(!y.isFinished){var b=y.furthestPossibleErrorMessage;b||(b="Unrecognised input","}"===y.furthestChar?b+=". Possibly missing opening '{'":")"===y.furthestChar?b+=". Possibly missing opening '('":y.furthestReachedEnd&&(b+=". Possibly missing something")),v=new $({type:"Parse",message:b,index:y.furthest,filename:i.filename},n)}var w=function(e){return(e=v||e||n.error)?(e instanceof $||(e=new $(e,n,i.filename)),s(e)):s(null,c)};if(!1===t.processImports)return w();new ee.ImportVisitor(n,w).run(c)},parsers:a={primary:function(){for(var e,t=this.mixin,n=[];;){for(;e=this.comment();)n.push(e);if(o.finished)break;if(o.peek("}"))break;if(e=this.extendRule())n=n.concat(e);else if(e=t.definition()||this.declaration()||t.call(!1,!1)||this.ruleset()||this.variableCall()||this.entities.call()||this.atrule())n.push(e);else{for(var i=!1;o.$char(";");)i=!0;if(!i)break}}return n},comment:function(){if(o.commentStore.length){var e=o.commentStore.shift();return new Je.Comment(e.text,e.isLineComment,e.index+s,i)}},entities:{mixinLookup:function(){return a.mixin.call(!0,!0)},quoted:function(e){var t,n=o.i,r=!1;if(o.save(),o.$char("~"))r=!0;else if(e)return void o.restore();if(t=o.$quoted())return o.forget(),new Je.Quoted(t.charAt(0),t.substr(1,t.length-2),r,n+s,i);o.restore()},keyword:function(){var e=o.$char("%")||o.$re(/^\[?(?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+\]?/);if(e)return Je.Color.fromKeyword(e)||new Je.Keyword(e)},call:function(){var e,t,n,r=o.i;if(!o.peek(/^url\(/i))if(o.save(),e=o.$re(/^([\w-]+|%|~|progid:[\w.]+)\(/)){if(e=e[1],(n=this.customFuncCall(e))&&(t=n.parse())&&n.stop)return o.forget(),t;if(t=this.arguments(t),o.$char(")"))return o.forget(),new Je.Call(e,t,r+s,i);o.restore("Could not parse call arguments or missing ')'")}else o.forget()},declarationCall:function(){var e,t,n=o.i;if(o.save(),e=o.$re(/^[\w]+\(/)){e=e.substring(0,e.length-1);var r,a=this.ruleProperty();if(a&&(r=this.value()),a&&r&&(t=[new Je.Declaration(a,r,null,null,o.i+s,i,!0)]),o.$char(")"))return o.forget(),new Je.Call(e,t,n+s,i);o.restore("Could not parse call arguments or missing ')'")}else o.forget()},customFuncCall:function(e){return{alpha:t(a.ieAlpha,!0),boolean:t(n),if:t(n)}[e.toLowerCase()];function t(e,t){return{parse:e,stop:t}}function n(){return[c(a.condition,"expected condition")]}},arguments:function(e){var t,n,i=e||[],r=[];for(o.save();;){if(e)e=!1;else{if(!(n=a.detachedRuleset()||this.assignment()||a.expression()))break;n.value&&1==n.value.length&&(n=n.value[0]),i.push(n)}o.$char(",")||(o.$char(";")||t)&&(t=!0,n=i.length<1?i[0]:new Je.Value(i),r.push(n),i=[])}return o.forget(),t?r:i},literal:function(){return this.dimension()||this.color()||this.quoted()||this.unicodeDescriptor()},assignment:function(){var e,t;if(o.save(),e=o.$re(/^\w+(?=\s?=)/i))if(o.$char("=")){if(t=a.entity())return o.forget(),new Je.Assignment(e,t);o.restore()}else o.restore();else o.restore()},url:function(){var e,t=o.i;if(o.autoCommentAbsorb=!1,o.$str("url("))return e=this.quoted()||this.variable()||this.property()||o.$re(/^(?:(?:\\[()'"])|[^()'"])+/)||"",o.autoCommentAbsorb=!0,h(")"),new Je.URL(void 0!==e.value||e instanceof Je.Variable||e instanceof Je.Property?e:new Je.Anonymous(e,t),t+s,i);o.autoCommentAbsorb=!0},variable:function(){var e,t,n=o.i;if(o.save(),"@"===o.currentChar()&&(t=o.$re(/^@@?[\w-]+/))){if("("===(e=o.currentChar())||"["===e&&!o.prevChar().match(/^\s/)){var r=a.variableCall(t);if(r)return o.forget(),r}return o.forget(),new Je.Variable(t,n+s,i)}o.restore()},variableCurly:function(){var e,t=o.i;if("@"===o.currentChar()&&(e=o.$re(/^@\{([\w-]+)\}/)))return new Je.Variable("@".concat(e[1]),t+s,i)},property:function(){var e,t=o.i;if("$"===o.currentChar()&&(e=o.$re(/^\$[\w-]+/)))return new Je.Property(e,t+s,i)},propertyCurly:function(){var e,t=o.i;if("$"===o.currentChar()&&(e=o.$re(/^\$\{([\w-]+)\}/)))return new Je.Property("$".concat(e[1]),t+s,i)},color:function(){var e;if(o.save(),"#"===o.currentChar()&&(e=o.$re(/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3,4})([\w.#[])?/))&&!e[2])return o.forget(),new Je.Color(e[1],void 0,e[0]);o.restore()},colorKeyword:function(){o.save();var e=o.autoCommentAbsorb;o.autoCommentAbsorb=!1;var t=o.$re(/^[_A-Za-z-][_A-Za-z0-9-]+/);if(o.autoCommentAbsorb=e,t){o.restore();var n=Je.Color.fromKeyword(t);return n?(o.$str(t),n):void 0}o.forget()},dimension:function(){if(!o.peekNotNumeric()){var e=o.$re(/^([+-]?\d*\.?\d+)(%|[a-z_]+)?/i);return e?new Je.Dimension(e[1],e[2]):void 0}},unicodeDescriptor:function(){var e;if(e=o.$re(/^U\+[0-9a-fA-F?]+(-[0-9a-fA-F?]+)?/))return new Je.UnicodeDescriptor(e[0])},javascript:function(){var e,t=o.i;o.save();var n=o.$char("~");if(o.$char("`")){if(e=o.$re(/^[^`]*`/))return o.forget(),new Je.JavaScript(e.substr(0,e.length-1),Boolean(n),t+s,i);o.restore("invalid javascript definition")}else o.restore()}},variable:function(){var e;if("@"===o.currentChar()&&(e=o.$re(/^(@[\w-]+)\s*:/)))return e[1]},variableCall:function(e){var t,n=o.i,r=!!e,s=e;if(o.save(),s||"@"===o.currentChar()&&(s=o.$re(/^(@[\w-]+)(\(\s*\))?/))){if(!(t=this.mixin.ruleLookups())&&(r&&"()"!==o.$str("()")||"()"!==s[2]))return void o.restore("Missing '[...]' lookup in variable call");r||(s=s[1]);var l=new Je.VariableCall(s,n,i);return!r&&a.end()?(o.forget(),l):(o.forget(),new Je.NamespaceValue(l,t,n,i))}o.restore()},extend:function(e){var t,n,r,a,h,f=o.i;if(o.$str(e?"&:extend(":":extend(")){do{r=null,t=null;for(var p=!0;!(r=o.$re(/^(!?all)(?=\s*(\)|,))/))&&(n=this.element());)!p&&n.combinator.value&&u("Targeting complex selectors can have unexpected behavior, and this behavior may change in the future.",f),p=!1,t?t.push(n):t=[n];r=r&&r[1],t||l("Missing target selector for :extend()."),h=new Je.Extend(new Je.Selector(t),r,f+s,i),a?a.push(h):a=[h]}while(o.$char(","));return c(/^\)/),e&&c(/^;/),a}},extendRule:function(){return this.extend(!0)},mixin:{call:function(e,t){var n,r,l,c,f,p=o.currentChar(),v=!1,d=o.i,m=!1;if("."===p||"#"===p){if(o.save(),r=this.elements()){if(f=o.i,o.$char("(")&&(m=o.isWhitespace(-2),l=this.args(!0).args,h(")"),c=!0,m&&u("Whitespace between a mixin name and parentheses for a mixin call is deprecated",f,"DEPRECATED")),!1!==t&&(n=this.ruleLookups()),!0===t&&!n)return void o.restore();if(e&&!n&&!c)return void o.restore();if(!e&&a.important()&&(v=!0),e||a.end()){o.forget();var g=new Je.mixin.Call(r,l,d+s,i,!n&&v);return n?new Je.NamespaceValue(g,n):(c||u("Calling a mixin without parentheses is deprecated",f,"DEPRECATED"),g)}}o.restore()}},elements:function(){for(var e,t,n,r,a,l=/^[#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/;a=o.i,t=o.$re(l);)r=new Je.Element(n,t,!1,a+s,i),e?e.push(r):e=[r],n=o.$char(">");return e},args:function(e){var t,n,i,r,s,u,c,h=a.entities,f={args:null,variadic:!1},p=[],v=[],d=[],m=!0;for(o.save();;){if(e)u=a.detachedRuleset()||a.expression();else{if(o.commentStore.length=0,o.$str("...")){f.variadic=!0,o.$char(";")&&!t&&(t=!0),(t?v:d).push({variadic:!0});break}u=h.variable()||h.property()||h.literal()||h.keyword()||this.call(!0)}if(!u||!m)break;r=null,u.throwAwayComments&&u.throwAwayComments(),s=u;var g=null;if(e?u.value&&1==u.value.length&&(g=u.value[0]):g=u,g&&(g instanceof Je.Variable||g instanceof Je.Property))if(o.$char(":")){if(p.length>0&&(t&&l("Cannot mix ; and , as delimiter types"),n=!0),!(s=a.detachedRuleset()||a.expression())){if(!e)return o.restore(),f.args=[],f;l("could not understand value for named argument")}r=i=g.name}else if(o.$str("...")){if(!e){f.variadic=!0,o.$char(";")&&!t&&(t=!0),(t?v:d).push({name:u.name,variadic:!0});break}c=!0}else e||(i=r=g.name,s=null);s&&p.push(s),d.push({name:r,value:s,expand:c}),o.$char(",")?m=!0:((m=";"===o.$char(";"))||t)&&(n&&l("Cannot mix ; and , as delimiter types"),t=!0,p.length>1&&(s=new Je.Value(p)),v.push({name:i,value:s,expand:c}),i=null,p=[],n=!1)}return o.forget(),f.args=t?v:d,f},definition:function(){var e,t,n,i,r=[],s=!1;if(!("."!==o.currentChar()&&"#"!==o.currentChar()||o.peek(/^[^{]*\}/)))if(o.save(),t=o.$re(/^([#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+)\s*\(/)){e=t[1];var l=this.args(!1);if(r=l.args,s=l.variadic,!o.$char(")"))return void o.restore("Missing closing ')'");if(o.commentStore.length=0,o.$str("when")&&(i=c(a.conditions,"expected condition")),n=a.block())return o.forget(),new Je.mixin.Definition(e,r,n,i,s);o.restore()}else o.restore()},ruleLookups:function(){var e,t=[];if("["===o.currentChar()){for(;;){if(o.save(),!(e=this.lookupValue())&&""!==e){o.restore();break}t.push(e),o.forget()}return t.length>0?t:void 0}},lookupValue:function(){if(o.save(),o.$char("[")){var e=o.$re(/^(?:[@$]{0,2})[_a-zA-Z0-9-]*/);if(o.$char("]"))return e||""===e?(o.forget(),e):void o.restore();o.restore()}else o.restore()}},entity:function(){var e=this.entities;return this.comment()||e.literal()||e.variable()||e.url()||e.property()||e.call()||e.keyword()||this.mixin.call(!0)||e.javascript()},end:function(){return o.$char(";")||o.peek("}")},ieAlpha:function(){var e;if(o.$re(/^opacity=/i))return(e=o.$re(/^\d+/))||(e=c(a.entities.variable,"Could not parse alpha"),e="@{".concat(e.name.slice(1),"}")),h(")"),new Je.Quoted("","alpha(opacity=".concat(e,")"))},element:function(){var e,t,n,r=o.i;if(t=this.combinator(),!(e=o.$re(/^(?:\d+\.\d+|\d+)%/)||o.$re(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/)||o.$char("*")||o.$char("&")||this.attribute()||o.$re(/^\([^&()@]+\)/)||o.$re(/^[.#:](?=@)/)||this.entities.variableCurly()))if(o.save(),o.$char("("))if(n=this.selector(!1)){for(var a=[];o.$char(",");)a.push(n),a.push(new re(",")),n=this.selector(!1);a.push(n),o.$char(")")?(e=a.length>1?new Je.Paren(new ae(a)):new Je.Paren(n),o.forget()):o.restore("Missing closing ')'")}else o.restore("Missing closing ')'");else o.forget();if(e)return new Je.Element(t,e,e instanceof Je.Variable,r+s,i)},combinator:function(){var e=o.currentChar();if("/"===e){o.save();var t=o.$re(/^\/[a-z]+\//i);if(t)return o.forget(),new Je.Combinator(t);o.restore()}if(">"===e||"+"===e||"~"===e||"|"===e||"^"===e){for(o.i++,"^"===e&&"^"===o.currentChar()&&(e="^^",o.i++);o.isWhitespace();)o.i++;return new Je.Combinator(e)}return o.isWhitespace(-1)?new Je.Combinator(" "):new Je.Combinator(null)},selector:function(e){var t,n,r,a,u,h,f,p=o.i;for(e=!1!==e;(e&&(n=this.extend())||e&&(h=o.$str("when"))||(a=this.element()))&&(h?f=c(this.conditions,"expected condition"):f?l("CSS guard can only be used at the end of selector"):n?u=u?u.concat(n):n:(u&&l("Extend can only be used at the end of selector"),r=o.currentChar(),Array.isArray(a)&&a.forEach((function(e){return t.push(e)})),t?t.push(a):t=[a],a=null),"{"!==r&&"}"!==r&&";"!==r&&","!==r&&")"!==r););if(t)return new Je.Selector(t,u,f,p+s,i);u&&l("Extend must be used to extend a selector, it cannot be used on its own")},selectors:function(){for(var e,t;(e=this.selector())&&(t?t.push(e):t=[e],o.commentStore.length=0,e.condition&&t.length>1&&l("Guards are only currently allowed on a single selector."),o.$char(","));)e.condition&&l("Guards are only currently allowed on a single selector."),o.commentStore.length=0;return t},attribute:function(){if(o.$char("[")){var e,t,n,i,r=this.entities;return(e=r.variableCurly())||(e=c(/^(?:[_A-Za-z0-9-*]*\|)?(?:[_A-Za-z0-9-]|\\.)+/)),(n=o.$re(/^[|~*$^]?=/))&&(t=r.quoted()||o.$re(/^[0-9]+%/)||o.$re(/^[\w-]+/)||r.variableCurly())&&(i=o.$re(/^[iIsS]/)),h("]"),new Je.Attribute(e,n,t,i)}},block:function(){var e;if(o.$char("{")&&(e=this.primary())&&o.$char("}"))return e},blockRuleset:function(){var e=this.block();return e&&(e=new Je.Ruleset(null,e)),e},detachedRuleset:function(){var e,t,n;if(o.save(),!o.$re(/^[.#]\(/)||(t=(e=this.mixin.args(!1)).args,n=e.variadic,o.$char(")"))){var i=this.blockRuleset();if(i)return o.forget(),t?new Je.mixin.Definition(null,t,i,null,n):new Je.DetachedRuleset(i);o.restore()}else o.restore()},ruleset:function(){var e,n,i;if(o.save(),t.dumpLineNumbers&&(i=f(o.i)),(e=this.selectors())&&(n=this.block())){o.forget();var r=new Je.Ruleset(e,n,t.strictImports);return t.dumpLineNumbers&&(r.debugInfo=i),r}o.restore()},declaration:function(){var e,t,n,r,a,l,u=o.i,c=o.currentChar();if("."!==c&&"#"!==c&&"&"!==c&&":"!==c)if(o.save(),e=this.variable()||this.ruleProperty()){if((l="string"==typeof e)&&(t=this.detachedRuleset())&&(n=!0),o.commentStore.length=0,!t){if(a=!l&&e.length>1&&e.pop().value,t=e[0].value&&"--"===e[0].value.slice(0,2)?o.$char(";")?new re(""):this.permissiveValue(/[;}]/,!0):this.anonymousValue())return o.forget(),new Je.Declaration(e,t,!1,a,u+s,i);t||(t=this.value()),t?r=this.important():l&&(t=this.permissiveValue())}if(t&&(this.end()||n))return o.forget(),new Je.Declaration(e,t,r,a,u+s,i);o.restore()}else o.restore()},anonymousValue:function(){var e=o.i,t=o.$re(/^([^.#@$+/'"*`(;{}-]*);/);if(t)return new Je.Anonymous(t[1],e+s)},permissiveValue:function(e){var t,n,r,s,a=e||";",c=o.i,h=[];function f(){var e=o.currentChar();return"string"==typeof a?e===a:a.test(e)}if(!f()){s=[];do{(n=this.comment())?s.push(n):((n=this.entity())&&s.push(n),o.peek(",")&&(s.push(new Je.Anonymous(",",o.i)),o.$char(",")))}while(n);if(r=f(),s.length>0){if(s=new Je.Expression(s),r)return s;h.push(s)," "===o.prevChar()&&h.push(new Je.Anonymous(" ",c))}if(o.save(),s=o.$parseUntil(a)){if("string"==typeof s&&l("Expected '".concat(s,"'"),"Parse"),1===s.length&&" "===s[0])return o.forget(),new Je.Anonymous("",c);var p=void 0;for(t=0;t<s.length;t++)if(p=s[t],Array.isArray(p))h.push(new Je.Quoted(p[0],p[1],!0,c,i));else{t===s.length-1&&(p=p.trim());var v=new Je.Quoted("'",p,!0,c,i);/@([\w-]+)/g.test(p)&&u("@[ident] in unknown values will not be evaluated as variables in the future. Use @{[ident]}",c,"DEPRECATED"),/\$([\w-]+)/g.test(p)&&u("$[ident] in unknown values will not be evaluated as property references in the future. Use ${[ident]}",c,"DEPRECATED"),v.variableRegex=/@([\w-]+)|@{([\w-]+)}/g,v.propRegex=/\$([\w-]+)|\${([\w-]+)}/g,h.push(v)}return o.forget(),new Je.Expression(h,!0)}o.restore()}},import:function(){var e,t,n=o.i,r=o.$re(/^@import\s+/);if(r){var a=(r?this.importOptions():null)||{};if(e=this.entities.quoted()||this.entities.url())return t=this.mediaFeatures({}),o.$char(";")||(o.i=n,l("missing semi-colon or unrecognised media features on import")),t=t&&new Je.Value(t),new Je.Import(e,t,a,n+s,i);o.i=n,l("malformed import statement")}},importOptions:function(){var e,t,n,i={};if(!o.$char("("))return null;do{if(e=this.importOption()){switch(n=!0,t=e){case"css":t="less",n=!1;break;case"once":t="multiple",n=!1}if(i[t]=n,!o.$char(","))break}}while(e);return h(")"),i},importOption:function(){var e=o.$re(/^(less|css|multiple|once|inline|reference|optional)/);if(e)return e[1]},mediaFeature:function(e){var t,n,r,a=this.entities,u=[],c=!1;o.save();do{o.save(),o.$re(/^[0-9a-z-]*\s+\(/)&&(c=!0),o.restore(),(t=a.declarationCall.bind(this)()||a.keyword()||a.variable()||a.mixinLookup())?u.push(t):o.$char("(")&&(n=this.property(),o.save(),!n&&e.queryInParens&&o.$re(/^[0-9a-z-]*\s*([<>]=|<=|>=|[<>]|=)/)?(o.restore(),n=this.condition(),o.save(),(r=this.atomicCondition(null,n.rvalue))||o.restore()):(o.restore(),t=this.value()),o.$char(")")?n&&!t?(u.push(new Je.Paren(new Je.QueryInParens(n.op,n.lvalue,n.rvalue,r?r.op:null,r?r.rvalue:null,n._index))),t=n):n&&t?(u.push(new Je.Paren(new Je.Declaration(n,t,null,null,o.i+s,i,!0))),c||(u[u.length-1].noSpacing=!0),c=!1):t?(u.push(new Je.Paren(t)),c=!1):l("badly formed media feature definition"):l("Missing closing ')'","Parse"))}while(t);if(o.forget(),u.length>0)return new Je.Expression(u)},mediaFeatures:function(e){var t,n=this.entities,i=[];do{if(t=this.mediaFeature(e)){if(i.push(t),!o.$char(","))break;i[i.length-1].noSpacing||(i[i.length-1].noSpacing=!1)}else if(t=n.variable()||n.mixinLookup()){if(i.push(t),!o.$char(","))break;i[i.length-1].noSpacing||(i[i.length-1].noSpacing=!1)}}while(t);return i.length>0?i:null},prepareAndGetNestableAtRule:function(e,n,r,a){var u=this.mediaFeatures(a),c=this.block();c||l("media definitions require block statements after any features"),o.forget();var h=new e(c,u,n+s,i);return t.dumpLineNumbers&&(h.debugInfo=r),h},nestableAtRule:function(){var e,n=o.i;if(t.dumpLineNumbers&&(e=f(n)),o.save(),o.$peekChar("@")){if(o.$str("@media"))return this.prepareAndGetNestableAtRule(Je.Media,n,e,ne);if(o.$str("@container"))return this.prepareAndGetNestableAtRule(Je.Container,n,e,ie)}o.restore()},plugin:function(){var e,t,n,r=o.i;if(o.$re(/^@plugin\s+/)){if(n=(t=this.pluginArgs())?{pluginArgs:t,isPlugin:!0}:{isPlugin:!0},e=this.entities.quoted()||this.entities.url())return o.$char(";")||(o.i=r,l("missing semi-colon on @plugin")),new Je.Import(e,null,n,r+s,i);o.i=r,l("malformed @plugin statement")}},pluginArgs:function(){if(o.save(),!o.$char("("))return o.restore(),null;var e=o.$re(/^\s*([^);]+)\)\s*/);return e[1]?(o.forget(),e[1].trim()):(o.restore(),null)},atruleUnknown:function(e,t,n){return e=this.permissiveValue(/^[{;]/),n="{"===o.currentChar(),e?e.value||(e=null):n||";"===o.currentChar()||l("".concat(t," rule is missing block or ending semi-colon")),[e,n]},atruleBlock:function(e,t,n,i){if(e=this.blockRuleset(),o.save(),e||n||(t=this.entity(),e=this.blockRuleset()),e||n)o.forget();else{o.restore();var r=[];for(t=this.entity();o.$char(",");)r.push(t),t=this.entity();t&&r.length>0?(r.push(t),t=r,i=!0):e=this.blockRuleset()}return[e,t,i]},atrule:function(){var e,n,r,a,u,c,h,p=o.i,v=!0,d=!0,m=!1;if("@"===o.currentChar()){if(n=this.import()||this.plugin()||this.nestableAtRule())return n;if(o.save(),e=o.$re(/^@[a-z-]+/)){switch(a=e,"-"==e.charAt(1)&&e.indexOf("-",2)>0&&(a="@".concat(e.slice(e.indexOf("-",2)+1))),a){case"@charset":u=!0,v=!1;break;case"@namespace":c=!0,v=!1;break;case"@keyframes":case"@counter-style":u=!0;break;case"@document":case"@supports":h=!0,d=!1;break;case"@starting-style":case"@layer":d=!1;break;default:h=!0}if(o.commentStore.length=0,u)(n=this.entity())||l("expected ".concat(e," identifier"));else if(c)(n=this.expression())||l("expected ".concat(e," expression"));else if(h){n=(g=this.atruleUnknown(n,e,v))[0],v=g[1]}if(v){var g,y=this.atruleBlock(r,n,d,m);if(r=y[0],n=y[1],m=y[2],!r&&!h)o.restore(),e=o.$re(/^@[a-z-]+/),n=(g=this.atruleUnknown(n,e,v))[0],(v=g[1])&&(r=(y=this.atruleBlock(r,n,d,m))[0],n=y[1],m=y[2])}if(r||m||!v&&n&&o.$char(";"))return o.forget(),new Je.AtRule(e,n,r,p+s,i,t.dumpLineNumbers?f(p):null,d);o.restore("at-rule options not recognised")}}},value:function(){var e,t=[],n=o.i;do{if((e=this.expression())&&(t.push(e),!o.$char(",")))break}while(e);if(t.length>0)return new Je.Value(t,n+s)},important:function(){if("!"===o.currentChar())return o.$re(/^! *important/)},sub:function(){var e,t;if(o.save(),o.$char("("))return(e=this.addition())&&o.$char(")")?(o.forget(),(t=new Je.Expression([e])).parens=!0,t):void o.restore("Expected ')'");o.restore()},colorOperand:function(){o.save();var e=o.$re(/^[lchrgbs]\s+/);if(e)return new Je.Keyword(e[0]);o.restore()},multiplication:function(){var e,t,n,i,r;if(e=this.operand()){for(r=o.isWhitespace(-1);!o.peek(/^\/[*/]/);){if(o.save(),!(n=o.$char("/")||o.$char("*"))){var s=o.i;(n=o.$str("./"))&&u("./ operator is deprecated",s,"DEPRECATED")}if(!n){o.forget();break}if(!(t=this.operand())){o.restore();break}o.forget(),e.parensInOp=!0,t.parensInOp=!0,i=new Je.Operation(n,[i||e,t],r),r=o.isWhitespace(-1)}return i||e}},addition:function(){var e,t,n,i,r;if(e=this.multiplication()){for(r=o.isWhitespace(-1);(n=o.$re(/^[-+]\s+/)||!r&&(o.$char("+")||o.$char("-")))&&(t=this.multiplication());)e.parensInOp=!0,t.parensInOp=!0,i=new Je.Operation(n,[i||e,t],r),r=o.isWhitespace(-1);return i||e}},conditions:function(){var e,t,n,i=o.i;if(e=this.condition(!0)){for(;o.peek(/^,\s*(not\s*)?\(/)&&o.$char(",")&&(t=this.condition(!0));)n=new Je.Condition("or",n||e,t,i+s);return n||e}},condition:function(e){var t,n,i;if(t=this.conditionAnd(e)){if(n=o.$str("or")){if(!(i=this.condition(e)))return;t=new Je.Condition(n,t,i)}return t}},conditionAnd:function(e){var t,n,i,r,s=this;if(t=(r=s.negatedCondition(e)||s.parenthesisCondition(e))||e?r:s.atomicCondition(e)){if(n=o.$str("and")){if(!(i=this.conditionAnd(e)))return;t=new Je.Condition(n,t,i)}return t}},negatedCondition:function(e){if(o.$str("not")){var t=this.parenthesisCondition(e);return t&&(t.negate=!t.negate),t}},parenthesisCondition:function(e){var t;if(o.save(),o.$str("(")){if(t=function(t){var n;if(o.save(),n=t.condition(e)){if(o.$char(")"))return o.forget(),n;o.restore()}else o.restore()}(this))return o.forget(),t;if(t=this.atomicCondition(e)){if(o.$char(")"))return o.forget(),t;o.restore("expected ')' got '".concat(o.currentChar(),"'"))}else o.restore()}else o.restore()},atomicCondition:function(e,t){var n,i,r,a,u=this.entities,c=o.i,h=function(){return this.addition()||u.keyword()||u.quoted()||u.mixinLookup()}.bind(this);if(n=t||h())return o.$char(">")?a=o.$char("=")?">=":">":o.$char("<")?a=o.$char("=")?"<=":"<":o.$char("=")&&(a=o.$char(">")?"=>":o.$char("<")?"=<":"="),a?(i=h())?r=new Je.Condition(a,n,i,c+s,!1):l("expected expression"):t||(r=new Je.Condition("=",n,new Je.Keyword("true"),c+s,!1)),r},operand:function(){var e,t=this.entities;o.peek(/^-[@$(]/)&&(e=o.$char("-"));var n=this.sub()||t.dimension()||t.color()||t.variable()||t.property()||t.call()||t.quoted(!0)||t.colorKeyword()||this.colorOperand()||t.mixinLookup();return e&&(n.parensInOp=!0,n=new Je.Negative(n)),n},expression:function(){var e,t,n=[],i=o.i;do{!(e=this.comment())||e.isLineComment?((e=this.addition()||this.entity())instanceof Je.Comment&&(e=null),e&&(n.push(e),o.peek(/^\/[/*]/)||(t=o.$char("/"))&&n.push(new Je.Anonymous(t,i+s)))):n.push(e)}while(e);if(n.length>0)return new Je.Expression(n)},property:function(){var e=o.$re(/^(\*?-?[_a-zA-Z0-9-]+)\s*:/);if(e)return e[1]},ruleProperty:function(){var e,t,n=[],r=[];o.save();var a=o.$re(/^([_a-zA-Z0-9-]+)\s*:/);if(a)return n=[new Je.Keyword(a[1])],o.forget(),n;function l(e){var t=o.i,i=o.$re(e);if(i)return r.push(t),n.push(i[1])}for(l(/^(\*?)/);l(/^((?:[\w-]+)|(?:[@$]\{[\w-]+\}))/););if(n.length>1&&l(/^((?:\+_|\+)?)\s*:/)){for(o.forget(),""===n[0]&&(n.shift(),r.shift()),t=0;t<n.length;t++)e=n[t],n[t]="@"!==e.charAt(0)&&"$"!==e.charAt(0)?new Je.Keyword(e):"@"===e.charAt(0)?new Je.Variable("@".concat(e.slice(2,-1)),r[t]+s,i):new Je.Property("$".concat(e.slice(2,-1)),r[t]+s,i);return n}o.restore()}}}};se.serializeVars=function(e){var t="";for(var n in e)if(Object.hasOwnProperty.call(e,n)){var i=e[n];t+="".concat(("@"===n[0]?"":"@")+n,": ").concat(i).concat(";"===String(i).slice(-1)?"":";")}return t};var ae=function(e,t,n,i,r,s){this.extendList=t,this.condition=n,this.evaldCondition=!n,this._index=i,this._fileInfo=r,this.elements=this.getElements(e),this.mixinElements_=void 0,this.copyVisibilityInfo(s),this.setParent(this.elements,this)};ae.prototype=Object.assign(new u,{type:"Selector",accept:function(e){this.elements&&(this.elements=e.visitArray(this.elements)),this.extendList&&(this.extendList=e.visitArray(this.extendList)),this.condition&&(this.condition=e.visit(this.condition))},createDerived:function(e,t,n){e=this.getElements(e);var i=new ae(e,t||this.extendList,null,this.getIndex(),this.fileInfo(),this.visibilityInfo());return i.evaldCondition=R(n)?this.evaldCondition:n,i.mediaEmpty=this.mediaEmpty,i},getElements:function(e){return e?("string"==typeof e&&new se(this.parse.context,this.parse.importManager,this._fileInfo,this._index).parseNode(e,["selector"],(function(t,n){if(t)throw new $({index:t.index,message:t.message},this.parse.imports,this._fileInfo.filename);e=n[0].elements})),e):[new g("","&",!1,this._index,this._fileInfo)]},createEmptySelectors:function(){var e=new g("","&",!1,this._index,this._fileInfo),t=[new ae([e],null,null,this._index,this._fileInfo)];return t[0].mediaEmpty=!0,t},match:function(e){var t,n,i=this.elements,r=i.length;if(0===(t=(e=e.mixinElements()).length)||r<t)return 0;for(n=0;n<t;n++)if(i[n].value!==e[n])return 0;return t},mixinElements:function(){if(this.mixinElements_)return this.mixinElements_;var e=this.elements.map((function(e){return e.combinator.value+(e.value.value||e.value)})).join("").match(/[,&#*.\w-]([\w-]|(\\.))*/g);return e?"&"===e[0]&&e.shift():e=[],this.mixinElements_=e},isJustParentSelector:function(){return!this.mediaEmpty&&1===this.elements.length&&"&"===this.elements[0].value&&(" "===this.elements[0].combinator.value||""===this.elements[0].combinator.value)},eval:function(e){var t=this.condition&&this.condition.eval(e),n=this.elements,i=this.extendList;return n=n&&n.map((function(t){return t.eval(e)})),i=i&&i.map((function(t){return t.eval(e)})),this.createDerived(n,i,t)},genCSS:function(e,t){var n;for(e&&e.firstSelector||""!==this.elements[0].combinator.value||t.add(" ",this.fileInfo(),this.getIndex()),n=0;n<this.elements.length;n++)this.elements[n].genCSS(e,t)},getIsOutput:function(){return this.evaldCondition}});var oe=function(e){if(!e)throw new Error("Value requires an array argument");Array.isArray(e)?this.value=e:this.value=[e]};oe.prototype=Object.assign(new u,{type:"Value",accept:function(e){this.value&&(this.value=e.visitArray(this.value))},eval:function(e){return 1===this.value.length?this.value[0].eval(e):new oe(this.value.map((function(t){return t.eval(e)})))},genCSS:function(e,t){var n;for(n=0;n<this.value.length;n++)this.value[n].genCSS(e,t),n+1<this.value.length&&t.add(e&&e.compress?",":", ")}});var le=function(e){this.value=e};le.prototype=Object.assign(new u,{type:"Keyword",genCSS:function(e,t){if("%"===this.value)throw{type:"Syntax",message:"Invalid % without number"};t.add(this.value)}}),le.True=new le("true"),le.False=new le("false");var ue=y;var ce=function(e,t,n,i,r,s,a,o){this.name=e,this.value=t instanceof u?t:new oe([t?new re(t):null]),this.important=n?" ".concat(n.trim()):"",this.merge=i,this._index=r,this._fileInfo=s,this.inline=a||!1,this.variable=void 0!==o?o:e.charAt&&"@"===e.charAt(0),this.allowRoot=!0,this.setParent(this.value,this)};function he(e){return"/* line ".concat(e.debugInfo.lineNumber,", ").concat(e.debugInfo.fileName," */\n")}function fe(e){var t=e.debugInfo.fileName;return/^[a-z]+:\/\//i.test(t)||(t="file://".concat(t)),"@media -sass-debug-info{filename{font-family:".concat(t.replace(/([.:/\\])/g,(function(e){return"\\"==e&&(e="/"),"\\".concat(e)})),"}line{font-family:\\00003").concat(e.debugInfo.lineNumber,"}}\n")}function pe(e,t,n){var i="";if(e.dumpLineNumbers&&!e.compress)switch(e.dumpLineNumbers){case"comments":i=he(t);break;case"mediaquery":i=fe(t);break;case"all":i=he(t)+(n||"")+fe(t)}return i}ce.prototype=Object.assign(new u,{type:"Declaration",genCSS:function(e,t){t.add(this.name+(e.compress?":":": "),this.fileInfo(),this.getIndex());try{this.value.genCSS(e,t)}catch(e){throw e.index=this._index,e.filename=this._fileInfo.filename,e}t.add(this.important+(this.inline||e.lastRule&&e.compress?"":";"),this._fileInfo,this._index)},eval:function(e){var t,n,i=!1,r=this.name,s=this.variable;"string"!=typeof r&&(r=1===r.length&&r[0]instanceof le?r[0].value:function(e,t){var n,i="",r=t.length,s={add:function(e){i+=e}};for(n=0;n<r;n++)t[n].eval(e).genCSS(e,s);return i}(e,r),s=!1),"font"===r&&e.math===ue.ALWAYS&&(i=!0,t=e.math,e.math=ue.PARENS_DIVISION);try{if(e.importantScope.push({}),n=this.value.eval(e),!this.variable&&"DetachedRuleset"===n.type)throw{message:"Rulesets cannot be evaluated on a property.",index:this.getIndex(),filename:this.fileInfo().filename};var a=this.important,o=e.importantScope.pop();return!a&&o.important&&(a=o.important),new ce(r,n,a,this.merge,this.getIndex(),this.fileInfo(),this.inline,s)}catch(e){throw"number"!=typeof e.index&&(e.index=this.getIndex(),e.filename=this.fileInfo().filename),e}finally{i&&(e.math=t)}},makeImportant:function(){return new ce(this.name,this.value,"!important",this.merge,this.getIndex(),this.fileInfo(),this.inline)}});var ve=function(e,t,n,i){this.value=e,this.isLineComment=t,this._index=n,this._fileInfo=i,this.allowRoot=!0};ve.prototype=Object.assign(new u,{type:"Comment",genCSS:function(e,t){this.debugInfo&&t.add(pe(e,this),this.fileInfo(),this.getIndex()),t.add(this.value)},isSilent:function(e){var t=e.compress&&"!"!==this.value[2];return this.isLineComment||t}});var de={eval:function(){var e=this.value_,t=this.error_;if(t)throw t;if(!R(e))return e?le.True:le.False},value:function(e){this.value_=e},error:function(e){this.error_=e},reset:function(){this.value_=this.error_=null}},me=function(e,t,n,i){this.selectors=e,this.rules=t,this._lookups={},this._variables=null,this._properties=null,this.strictImports=n,this.copyVisibilityInfo(i),this.allowRoot=!0,this.setParent(this.selectors,this),this.setParent(this.rules,this)};me.prototype=Object.assign(new u,{type:"Ruleset",isRuleset:!0,isRulesetLike:function(){return!0},accept:function(e){this.paths?this.paths=e.visitArray(this.paths,!0):this.selectors&&(this.selectors=e.visitArray(this.selectors)),this.rules&&this.rules.length&&(this.rules=e.visitArray(this.rules))},eval:function(e){var t,n,i,r,s,a=!1;if(this.selectors&&(n=this.selectors.length)){for(t=new Array(n),de.error({type:"Syntax",message:"it is currently only allowed in parametric mixin guards,"}),r=0;r<n;r++){i=this.selectors[r].eval(e);for(var o=0;o<i.elements.length;o++)if(i.elements[o].isVariable){s=!0;break}t[r]=i,i.evaldCondition&&(a=!0)}if(s){var l=new Array(n);for(r=0;r<n;r++)i=t[r],l[r]=i.toCSS(e);var c=t[0].getIndex(),h=t[0].fileInfo();new se(e,this.parse.importManager,h,c).parseNode(l.join(","),["selectors"],(function(e,n){n&&(t=E(n))}))}de.reset()}else a=!0;var f,p,v=this.rules?A(this.rules):null,d=new me(t,v,this.strictImports,this.visibilityInfo());d.originalRuleset=this,d.root=this.root,d.firstRoot=this.firstRoot,d.allowImports=this.allowImports,this.debugInfo&&(d.debugInfo=this.debugInfo),a||(v.length=0),d.functionRegistry=function(e){for(var t,n=0,i=e.length;n!==i;++n)if(t=e[n].functionRegistry)return t;return te}(e.frames).inherit();var m=e.frames;m.unshift(d);var g=e.selectors;g||(e.selectors=g=[]),g.unshift(this.selectors),(d.root||d.allowImports||!d.strictImports)&&d.evalImports(e);var y=d.rules;for(r=0;f=y[r];r++)f.evalFirst&&(y[r]=f.eval(e));var b=e.mediaBlocks&&e.mediaBlocks.length||0;for(r=0;f=y[r];r++)"MixinCall"===f.type?(v=f.eval(e).filter((function(e){return!(e instanceof ce&&e.variable)||!d.variable(e.name)})),y.splice.apply(y,[r,1].concat(v)),r+=v.length-1,d.resetCache()):"VariableCall"===f.type&&(v=f.eval(e).rules.filter((function(e){return!(e instanceof ce&&e.variable)})),y.splice.apply(y,[r,1].concat(v)),r+=v.length-1,d.resetCache());for(r=0;f=y[r];r++)f.evalFirst||(y[r]=f=f.eval?f.eval(e):f);for(r=0;f=y[r];r++)if(f instanceof me&&f.selectors&&1===f.selectors.length&&f.selectors[0]&&f.selectors[0].isJustParentSelector()){y.splice(r--,1);for(o=0;p=f.rules[o];o++)p instanceof u&&(p.copyVisibilityInfo(f.visibilityInfo()),p instanceof ce&&p.variable||y.splice(++r,0,p))}if(m.shift(),g.shift(),e.mediaBlocks)for(r=b;r<e.mediaBlocks.length;r++)e.mediaBlocks[r].bubbleSelectors(t);return d},evalImports:function(e){var t,n,i=this.rules;if(i)for(t=0;t<i.length;t++)"Import"===i[t].type&&((n=i[t].eval(e))&&(n.length||0===n.length)?(i.splice.apply(i,[t,1].concat(n)),t+=n.length-1):i.splice(t,1,n),this.resetCache())},makeImportant:function(){return new me(this.selectors,this.rules.map((function(e){return e.makeImportant?e.makeImportant():e})),this.strictImports,this.visibilityInfo())},matchArgs:function(e){return!e||0===e.length},matchCondition:function(e,t){var n=this.selectors[this.selectors.length-1];return!!n.evaldCondition&&!(n.condition&&!n.condition.eval(new B.Eval(t,t.frames)))},resetCache:function(){this._rulesets=null,this._variables=null,this._properties=null,this._lookups={}},variables:function(){return this._variables||(this._variables=this.rules?this.rules.reduce((function(e,t){if(t instanceof ce&&!0===t.variable&&(e[t.name]=t),"Import"===t.type&&t.root&&t.root.variables){var n=t.root.variables();for(var i in n)n.hasOwnProperty(i)&&(e[i]=t.root.variable(i))}return e}),{}):{}),this._variables},properties:function(){return this._properties||(this._properties=this.rules?this.rules.reduce((function(e,t){if(t instanceof ce&&!0!==t.variable){var n=1===t.name.length&&t.name[0]instanceof le?t.name[0].value:t.name;e["$".concat(n)]?e["$".concat(n)].push(t):e["$".concat(n)]=[t]}return e}),{}):{}),this._properties},variable:function(e){var t=this.variables()[e];if(t)return this.parseValue(t)},property:function(e){var t=this.properties()[e];if(t)return this.parseValue(t)},lastDeclaration:function(){for(var e=this.rules.length;e>0;e--){var t=this.rules[e-1];if(t instanceof ce)return this.parseValue(t)}},parseValue:function(e){var t=this;function n(e){return e.value instanceof re&&!e.parsed?("string"==typeof e.value.value?new se(this.parse.context,this.parse.importManager,e.fileInfo(),e.value.getIndex()).parseNode(e.value.value,["value","important"],(function(t,n){t&&(e.parsed=!0),n&&(e.value=n[0],e.important=n[1]||"",e.parsed=!0)})):e.parsed=!0,e):e}if(Array.isArray(e)){var i=[];return e.forEach((function(e){i.push(n.call(t,e))})),i}return n.call(t,e)},rulesets:function(){if(!this.rules)return[];var e,t,n=[],i=this.rules;for(e=0;t=i[e];e++)t.isRuleset&&n.push(t);return n},prependRule:function(e){var t=this.rules;t?t.unshift(e):this.rules=[e],this.setParent(e,this)},find:function(e,t,n){t=t||this;var i,r,s=[],a=e.toCSS();return a in this._lookups?this._lookups[a]:(this.rulesets().forEach((function(a){if(a!==t)for(var o=0;o<a.selectors.length;o++)if(i=e.match(a.selectors[o])){if(e.elements.length>i){if(!n||n(a)){r=a.find(new ae(e.elements.slice(i)),t,n);for(var l=0;l<r.length;++l)r[l].path.push(a);Array.prototype.push.apply(s,r)}}else s.push({rule:a,path:[]});break}})),this._lookups[a]=s,s)},genCSS:function(e,t){var n,i,r,s,a,o=[];e.tabLevel=e.tabLevel||0,this.root||e.tabLevel++;var l,u=e.compress?"":Array(e.tabLevel+1).join(" "),c=e.compress?"":Array(e.tabLevel).join(" "),h=0,f=0;for(n=0;s=this.rules[n];n++)s instanceof ve?(f===n&&f++,o.push(s)):s.isCharset&&s.isCharset()?(o.splice(h,0,s),h++,f++):"Import"===s.type?(o.splice(f,0,s),f++):o.push(s);if(o=[].concat(o),!this.root){(r=pe(e,this,c))&&(t.add(r),t.add(c));var p=this.paths,v=p.length,d=void 0;for(l=e.compress?",":",\n".concat(c),n=0;n<v;n++)if(d=(a=p[n]).length)for(n>0&&t.add(l),e.firstSelector=!0,a[0].genCSS(e,t),e.firstSelector=!1,i=1;i<d;i++)a[i].genCSS(e,t);t.add((e.compress?"{":" {\n")+u)}for(n=0;s=o[n];n++){n+1===o.length&&(e.lastRule=!0);var m=e.lastRule;s.isRulesetLike(s)&&(e.lastRule=!1),s.genCSS?s.genCSS(e,t):s.value&&t.add(s.value.toString()),e.lastRule=m,!e.lastRule&&s.isVisible()?t.add(e.compress?"":"\n".concat(u)):e.lastRule=!1}this.root||(t.add(e.compress?"}":"\n".concat(c,"}")),e.tabLevel--),t.isEmpty()||e.compress||!this.firstRoot||t.add("\n")},joinSelectors:function(e,t,n){for(var i=0;i<n.length;i++)this.joinSelector(e,t,n[i])},joinSelector:function(e,t,n){function i(e,t){var n,i;if(0===e.length)n=new v(e[0]);else{var r=new Array(e.length);for(i=0;i<e.length;i++)r[i]=new g(null,e[i],t.isVariable,t._index,t._fileInfo);n=new v(new ae(r))}return n}function r(e,t){var n;return n=new g(null,e,t.isVariable,t._index,t._fileInfo),new ae([n])}function s(e,t,n,i){var r,s,a;if(r=[],e.length>0?(s=(r=A(e)).pop(),a=i.createDerived(A(s.elements))):a=i.createDerived([]),t.length>0){var o=n.combinator,l=t[0].elements[0];o.emptyOrWhitespace&&!l.combinator.emptyOrWhitespace&&(o=l.combinator),a.elements.push(new g(o,l.value,n.isVariable,n._index,n._fileInfo)),a.elements=a.elements.concat(t[0].elements.slice(1))}if(0!==a.elements.length&&r.push(a),t.length>1){var u=t.slice(1);u=u.map((function(e){return e.createDerived(e.elements,[])})),r=r.concat(u)}return r}function a(e,t,n,i,r){var a;for(a=0;a<e.length;a++){var o=s(e[a],t,n,i);r.push(o)}return r}function o(e,t){var n,i;if(0!==e.length)if(0!==t.length)for(n=0;i=t[n];n++)i.length>0?i[i.length-1]=i[i.length-1].createDerived(i[i.length-1].elements.concat(e)):i.push(new ae(e));else t.push([new ae(e)])}function l(e,t){var n=t.createDerived(t.elements,t.extendList,t.evaldCondition);return n.copyVisibilityInfo(e),n}var u,c;if(!function e(t,n,l){var u,c,h,f,p,d,m,y,b,w,x,S,I=!1;for(f=[],p=[[]],u=0;y=l.elements[u];u++)if("&"!==y.value){var C=(S=void 0,(x=y).value instanceof v&&(S=x.value.value)instanceof ae?S:null);if(null!==C){o(f,p);var k,A=[],_=[];for(k=e(A,n,C),I=I||k,h=0;h<A.length;h++){a(p,[r(i(A[h],y),y)],y,l,_)}p=_,f=[]}else f.push(y)}else{for(I=!0,d=[],o(f,p),c=0;c<p.length;c++)if(m=p[c],0===n.length)m.length>0&&m[0].elements.push(new g(y.combinator,"",y.isVariable,y._index,y._fileInfo)),d.push(m);else for(h=0;h<n.length;h++){var M=s(m,n[h],y,l);d.push(M)}p=d,f=[]}for(o(f,p),u=0;u<p.length;u++)(b=p[u].length)>0&&(t.push(p[u]),w=p[u][b-1],p[u][b-1]=w.createDerived(w.elements,l.extendList));return I}(c=[],t,n))if(t.length>0)for(c=[],u=0;u<t.length;u++){var h=t[u].map(l.bind(this,n.visibilityInfo()));h.push(n),c.push(h)}else c=[[n]];for(u=0;u<c.length;u++)e.push(c[u])}});var ge=function(e,t,n){this.numerator=e?A(e).sort():[],this.denominator=t?A(t).sort():[],n?this.backupUnit=n:e&&e.length&&(this.backupUnit=e[0])};ge.prototype=Object.assign(new u,{type:"Unit",clone:function(){return new ge(A(this.numerator),A(this.denominator),this.backupUnit)},genCSS:function(e,t){var n=e&&e.strictUnits;1===this.numerator.length?t.add(this.numerator[0]):!n&&this.backupUnit?t.add(this.backupUnit):!n&&this.denominator.length&&t.add(this.denominator[0])},toString:function(){var e,t=this.numerator.join("*");for(e=0;e<this.denominator.length;e++)t+="/".concat(this.denominator[e]);return t},compare:function(e){return this.is(e.toString())?0:void 0},is:function(e){return this.toString().toUpperCase()===e.toUpperCase()},isLength:function(){return RegExp("^(px|em|ex|ch|rem|in|cm|mm|pc|pt|ex|vw|vh|vmin|vmax)$","gi").test(this.toCSS())},isEmpty:function(){return 0===this.numerator.length&&0===this.denominator.length},isSingular:function(){return this.numerator.length<=1&&0===this.denominator.length},map:function(e){var t;for(t=0;t<this.numerator.length;t++)this.numerator[t]=e(this.numerator[t],!1);for(t=0;t<this.denominator.length;t++)this.denominator[t]=e(this.denominator[t],!0)},usedUnits:function(){var e,t,n,i={};for(n in t=function(t){return e.hasOwnProperty(t)&&!i[n]&&(i[n]=t),t},o)o.hasOwnProperty(n)&&(e=o[n],this.map(t));return i},cancel:function(){var e,t,n={};for(t=0;t<this.numerator.length;t++)n[e=this.numerator[t]]=(n[e]||0)+1;for(t=0;t<this.denominator.length;t++)n[e=this.denominator[t]]=(n[e]||0)-1;for(e in this.numerator=[],this.denominator=[],n)if(n.hasOwnProperty(e)){var i=n[e];if(i>0)for(t=0;t<i;t++)this.numerator.push(e);else if(i<0)for(t=0;t<-i;t++)this.denominator.push(e)}this.numerator.sort(),this.denominator.sort()}});var ye=function(e,t){if(this.value=parseFloat(e),isNaN(this.value))throw new Error("Dimension is not a number.");this.unit=t&&t instanceof ge?t:new ge(t?[t]:void 0),this.setParent(this.unit,this)};ye.prototype=Object.assign(new u,{type:"Dimension",accept:function(e){this.unit=e.visit(this.unit)},eval:function(e){return this},toColor:function(){return new c([this.value,this.value,this.value])},genCSS:function(e,t){if(e&&e.strictUnits&&!this.unit.isSingular())throw new Error("Multiple units in dimension. Correct the units or use the unit function. Bad unit: ".concat(this.unit.toString()));var n=this.fround(e,this.value),i=String(n);if(0!==n&&n<1e-6&&n>-1e-6&&(i=n.toFixed(20).replace(/0+$/,"")),e&&e.compress){if(0===n&&this.unit.isLength())return void t.add(i);n>0&&n<1&&(i=i.substr(1))}t.add(i),this.unit.genCSS(e,t)},operate:function(e,t,n){var i=this._operate(e,t,this.value,n.value),r=this.unit.clone();if("+"===t||"-"===t)if(0===r.numerator.length&&0===r.denominator.length)r=n.unit.clone(),this.unit.backupUnit&&(r.backupUnit=this.unit.backupUnit);else if(0===n.unit.numerator.length&&0===r.denominator.length);else{if(n=n.convertTo(this.unit.usedUnits()),e.strictUnits&&n.unit.toString()!==r.toString())throw new Error("Incompatible units. Change the units or use the unit function. "+"Bad units: '".concat(r.toString(),"' and '").concat(n.unit.toString(),"'."));i=this._operate(e,t,this.value,n.value)}else"*"===t?(r.numerator=r.numerator.concat(n.unit.numerator).sort(),r.denominator=r.denominator.concat(n.unit.denominator).sort(),r.cancel()):"/"===t&&(r.numerator=r.numerator.concat(n.unit.denominator).sort(),r.denominator=r.denominator.concat(n.unit.numerator).sort(),r.cancel());return new ye(i,r)},compare:function(e){var t,n;if(e instanceof ye){if(this.unit.isEmpty()||e.unit.isEmpty())t=this,n=e;else if(t=this.unify(),n=e.unify(),0!==t.unit.compare(n.unit))return;return u.numericCompare(t.value,n.value)}},unify:function(){return this.convertTo({length:"px",duration:"s",angle:"rad"})},convertTo:function(e){var t,n,i,r,s,a=this.value,l=this.unit.clone(),u={};if("string"==typeof e){for(t in o)o[t].hasOwnProperty(e)&&((u={})[t]=e);e=u}for(n in s=function(e,t){return i.hasOwnProperty(e)?(t?a/=i[e]/i[r]:a*=i[e]/i[r],r):e},e)e.hasOwnProperty(n)&&(r=e[n],i=o[n],l.map(s));return l.cancel(),new ye(a,l)}});var be=function(e,t){if(this.value=e,this.noSpacing=t,!e)throw new Error("Expression requires an array parameter")};be.prototype=Object.assign(new u,{type:"Expression",accept:function(e){this.value=e.visitArray(this.value)},eval:function(e){var t,n=this.noSpacing,i=e.isMathOn(),r=this.parens,s=!1;return r&&e.inParenthesis(),this.value.length>1?t=new be(this.value.map((function(t){return t.eval?t.eval(e):t})),this.noSpacing):1===this.value.length?(!this.value[0].parens||this.value[0].parensInOp||e.inCalc||(s=!0),t=this.value[0].eval(e)):t=this,r&&e.outOfParenthesis(),!this.parens||!this.parensInOp||i||s||t instanceof ye||(t=new v(t)),t.noSpacing=t.noSpacing||n,t},genCSS:function(e,t){for(var n=0;n<this.value.length;n++)this.value[n].genCSS(e,t),!this.noSpacing&&n+1<this.value.length&&(n+1<this.value.length&&!(this.value[n+1]instanceof re)||this.value[n+1]instanceof re&&","!==this.value[n+1].value)&&t.add(" ")},throwAwayComments:function(){this.value=this.value.filter((function(e){return!(e instanceof ve)}))}});var we={isRulesetLike:function(){return!0},accept:function(e){this.features&&(this.features=e.visit(this.features)),this.rules&&(this.rules=e.visitArray(this.rules))},evalFunction:function(){if(this.features&&Array.isArray(this.features.value)&&!(this.features.value.length<1))for(var e,t,n=this.features.value,i=0;i<n.length;++i)"Keyword"===(e=n[i]).type&&i+1<n.length&&(e.noSpacing||null==e.noSpacing)&&"Paren"===(t=n[i+1]).type&&t.noSpacing&&(n[i]=new be([e,t]),n.splice(i+1,1),n[i].noSpacing=!0)},evalTop:function(e){this.evalFunction();var t=this;if(e.mediaBlocks.length>1){var n=new ae([],null,null,this.getIndex(),this.fileInfo()).createEmptySelectors();(t=new me(n,e.mediaBlocks)).multiMedia=!0,t.copyVisibilityInfo(this.visibilityInfo()),this.setParent(t,this)}return delete e.mediaBlocks,delete e.mediaPath,t},evalNested:function(e){var t,n;this.evalFunction();var i=e.mediaPath.concat([this]);for(t=0;t<i.length;t++){if(i[t].type!==this.type)return e.mediaBlocks.splice(t,1),this;n=i[t].features instanceof oe?i[t].features.value:i[t].features,i[t]=Array.isArray(n)?n:[n]}return this.features=new oe(this.permute(i).map((function(e){for(e=e.map((function(e){return e.toCSS?e:new re(e)})),t=e.length-1;t>0;t--)e.splice(t,0,new re("and"));return new be(e)}))),this.setParent(this.features,this),new me([],[])},permute:function(e){if(0===e.length)return[];if(1===e.length)return e[0];for(var t=[],n=this.permute(e.slice(1)),i=0;i<n.length;i++)for(var r=0;r<e[0].length;r++)t.push([e[0][r]].concat(n[i]));return t},bubbleSelectors:function(e){e&&(this.rules=[new me(A(e),[this.rules[0]])],this.setParent(this.rules,this))}},xe=function(e,t,n,i,r,s,a,o){var l,c=this,h=new ae([],null,null,this._index,this._fileInfo).createEmptySelectors();if(this.name=e,this.value=t instanceof u?t:t?new re(t):t,n){if(Array.isArray(n)){var f=this.declarationsBlock(n),p=!0;n.forEach((function(e){"Ruleset"===e.type&&e.rules&&(p=p&&c.declarationsBlock(e.rules,!0))})),f&&!a?(this.simpleBlock=!0,this.declarations=n):!p||1!==n.length||a||t?this.rules=n:(this.simpleBlock=!0,this.declarations=n[0].rules?n[0].rules:n)}else{!(f=this.declarationsBlock(n.rules))||a||t?(this.rules=[n],this.rules[0].selectors=new ae([],null,null,i,r).createEmptySelectors()):(this.simpleBlock=!0,this.declarations=n.rules)}if(!this.simpleBlock)for(l=0;l<this.rules.length;l++)this.rules[l].allowImports=!0;this.setParent(h,this),this.setParent(this.rules,this)}this._index=i,this._fileInfo=r,this.debugInfo=s,this.isRooted=a||!1,this.copyVisibilityInfo(o),this.allowRoot=!0};xe.prototype=Object.assign(new u,p(p({type:"AtRule"},we),{declarationsBlock:function(e,t){return void 0===t&&(t=!1),t?e.filter((function(e){return"Declaration"===e.type||"Comment"===e.type})).length===e.length:e.filter((function(e){return("Declaration"===e.type||"Comment"===e.type)&&!e.merge})).length===e.length},keywordList:function(e){return!!Array.isArray(e)&&e.filter((function(e){return"Keyword"===e.type||"Comment"===e.type})).length===e.length},accept:function(e){var t=this.value,n=this.rules,i=this.declarations;n?this.rules=e.visitArray(n):i&&(this.declarations=e.visitArray(i)),t&&(this.value=e.visit(t))},isRulesetLike:function(){return this.rules||!this.isCharset()},isCharset:function(){return"@charset"===this.name},genCSS:function(e,t){var n=this.value,i=this.rules||this.declarations;t.add(this.name,this.fileInfo(),this.getIndex()),n&&(t.add(" "),n.genCSS(e,t)),this.simpleBlock?this.outputRuleset(e,t,this.declarations):i?this.outputRuleset(e,t,i):t.add(";")},eval:function(e){var t,n,i=this.value,r=this.rules||this.declarations;(t=e.mediaPath,n=e.mediaBlocks,e.mediaPath=[],e.mediaBlocks=[],i&&(i=i.eval(e)).value&&this.keywordList(i.value)&&(i=new re(i.value.map((function(e){return e.value})).join(", "),this.getIndex(),this.fileInfo())),r&&(r=this.evalRoot(e,r)),Array.isArray(r)&&r[0].rules&&Array.isArray(r[0].rules)&&r[0].rules.length)&&(!this.declarationsBlock(r[0].rules,!0)||this.isRooted||i||((0,e.pluginManager.less.visitors.ToCSSVisitor.prototype._mergeRules)(r[0].rules),(r=r[0].rules).forEach((function(e){return e.merge=!1}))));return this.simpleBlock&&r&&(r[0].functionRegistry=e.frames[0].functionRegistry.inherit(),r=r.map((function(t){return t.eval(e)}))),e.mediaPath=t,e.mediaBlocks=n,new xe(this.name,i,r,this.getIndex(),this.fileInfo(),this.debugInfo,this.isRooted,this.visibilityInfo())},evalRoot:function(e,t){var n=0,i=0,r=!0,s=!1;this.simpleBlock||(t=[t[0].eval(e)]);var a=[];if(e.frames.length>0)for(var o=function(t){var o=e.frames[t];if("Ruleset"===o.type&&o.rules&&o.rules.length>0&&o&&!o.root&&o.selectors&&o.selectors.length>0&&(a=a.concat(o.selectors)),a.length>0){for(var l="",u={add:function(e){l+=e}},c=0;c<a.length;c++)a[c].genCSS(e,u);/^&+$/.test(l.replace(/\s+/g,""))?(r=!1,i++):(s=!1,n++)}},l=0;l<e.frames.length;l++)o(l);var u=n>0&&i>0&&!s&&!r;return(this.isRooted&&n>0&&0===i&&!s&&r||!u)&&(t[0].root=!0),t},variable:function(e){if(this.rules)return me.prototype.variable.call(this.rules[0],e)},find:function(){if(this.rules)return me.prototype.find.apply(this.rules[0],arguments)},rulesets:function(){if(this.rules)return me.prototype.rulesets.apply(this.rules[0])},outputRuleset:function(e,t,n){var i,r=n.length;if(e.tabLevel=1+(0|e.tabLevel),e.compress){for(t.add("{"),i=0;i<r;i++)n[i].genCSS(e,t);return t.add("}"),void e.tabLevel--}var s="\n".concat(Array(e.tabLevel).join(" ")),a="".concat(s," ");if(r){for(t.add(" {".concat(a)),n[0].genCSS(e,t),i=1;i<r;i++)t.add(a),n[i].genCSS(e,t);t.add("".concat(s,"}"))}else t.add(" {".concat(s,"}"));e.tabLevel--}}));var Se=function(e,t){this.ruleset=e,this.frames=t,this.setParent(this.ruleset,this)};Se.prototype=Object.assign(new u,{type:"DetachedRuleset",evalFirst:!0,accept:function(e){this.ruleset=e.visit(this.ruleset)},eval:function(e){var t=this.frames||A(e.frames);return new Se(this.ruleset,t)},callEval:function(e){return this.ruleset.eval(this.frames?new B.Eval(e,this.frames.concat(e.frames)):e)}});var Ie=y,Ce=function(e,t,n){this.op=e.trim(),this.operands=t,this.isSpaced=n};Ce.prototype=Object.assign(new u,{type:"Operation",accept:function(e){this.operands=e.visitArray(this.operands)},eval:function(e){var t,n=this.operands[0].eval(e),i=this.operands[1].eval(e);if(e.isMathOn(this.op)){if(t="./"===this.op?"/":this.op,n instanceof ye&&i instanceof c&&(n=n.toColor()),i instanceof ye&&n instanceof c&&(i=i.toColor()),!n.operate||!i.operate){if((n instanceof Ce||i instanceof Ce)&&"/"===n.op&&e.math===Ie.PARENS_DIVISION)return new Ce(this.op,[n,i],this.isSpaced);throw{type:"Operation",message:"Operation on an invalid type"}}return n.operate(e,t,i)}return new Ce(this.op,[n,i],this.isSpaced)},genCSS:function(e,t){this.operands[0].genCSS(e,t),this.isSpaced&&t.add(" "),t.add(this.op),this.isSpaced&&t.add(" "),this.operands[1].genCSS(e,t)}});var ke=function(){function e(e,t,n,i){this.name=e.toLowerCase(),this.index=n,this.context=t,this.currentFileInfo=i,this.func=t.frames[0].functionRegistry.get(this.name)}return e.prototype.isValid=function(){return Boolean(this.func)},e.prototype.call=function(e){var t=this;Array.isArray(e)||(e=[e]);var n=this.func.evalArgs;!1!==n&&(e=e.map((function(e){return e.eval(t.context)})));var i=function(e){return!("Comment"===e.type)};return e=e.filter(i).map((function(e){if("Expression"===e.type){var t=e.value.filter(i);return 1===t.length?e.parens&&"/"===t[0].op?e:t[0]:new be(t)}return e})),!1===n?this.func.apply(this,function(e,t,n){if(n||2===arguments.length)for(var i,r=0,s=t.length;r<s;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}([this.context],e,!1)):this.func.apply(this,e)},e}(),Ae=function(e,t,n,i){this.name=e,this.args=t,this.calc="calc"===e,this._index=n,this._fileInfo=i};Ae.prototype=Object.assign(new u,{type:"Call",accept:function(e){this.args&&(this.args=e.visitArray(this.args))},eval:function(e){var t=this,n=e.mathOn;e.mathOn=!this.calc,(this.calc||e.inCalc)&&e.enterCalc();var i,r=function(){(t.calc||e.inCalc)&&e.exitCalc(),e.mathOn=n},s=new ke(this.name,e,this.getIndex(),this.fileInfo());if(s.isValid())try{i=s.call(this.args),r()}catch(e){if(e.hasOwnProperty("line")&&e.hasOwnProperty("column"))throw e;throw{type:e.type||"Runtime",message:"Error evaluating function `".concat(this.name,"`").concat(e.message?": ".concat(e.message):""),index:this.getIndex(),filename:this.fileInfo().filename,line:e.lineNumber,column:e.columnNumber}}if(null!=i)return i instanceof u||(i=new re(i&&!0!==i?i.toString():null)),i._index=this._index,i._fileInfo=this._fileInfo,i;var a=this.args.map((function(t){return t.eval(e)}));return r(),new Ae(this.name,a,this.getIndex(),this.fileInfo())},genCSS:function(e,t){t.add("".concat(this.name,"("),this.fileInfo(),this.getIndex());for(var n=0;n<this.args.length;n++)this.args[n].genCSS(e,t),n+1<this.args.length&&t.add(", ");t.add(")")}});var _e=function(e,t,n){this.name=e,this._index=t,this._fileInfo=n};_e.prototype=Object.assign(new u,{type:"Variable",eval:function(e){var t,n=this.name;if(0===n.indexOf("@@")&&(n="@".concat(new _e(n.slice(1),this.getIndex(),this.fileInfo()).eval(e).value)),this.evaluating)throw{type:"Name",message:"Recursive variable definition for ".concat(n),filename:this.fileInfo().filename,index:this.getIndex()};if(this.evaluating=!0,t=this.find(e.frames,(function(t){var i=t.variable(n);if(i){if(i.important)e.importantScope[e.importantScope.length-1].important=i.important;return e.inCalc?new Ae("_SELF",[i.value]).eval(e):i.value.eval(e)}})))return this.evaluating=!1,t;throw{type:"Name",message:"variable ".concat(n," is undefined"),filename:this.fileInfo().filename,index:this.getIndex()}},find:function(e,t){for(var n=0,i=void 0;n<e.length;n++)if(i=t.call(e,e[n]))return i;return null}});var Me=function(e,t,n){this.name=e,this._index=t,this._fileInfo=n};Me.prototype=Object.assign(new u,{type:"Property",eval:function(e){var t,n=this.name,i=e.pluginManager.less.visitors.ToCSSVisitor.prototype._mergeRules;if(this.evaluating)throw{type:"Name",message:"Recursive property reference for ".concat(n),filename:this.fileInfo().filename,index:this.getIndex()};if(this.evaluating=!0,t=this.find(e.frames,(function(t){var r,s=t.property(n);if(s){for(var a=0;a<s.length;a++)r=s[a],s[a]=new ce(r.name,r.value,r.important,r.merge,r.index,r.currentFileInfo,r.inline,r.variable);if(i(s),(r=s[s.length-1]).important)e.importantScope[e.importantScope.length-1].important=r.important;return r=r.value.eval(e)}})))return this.evaluating=!1,t;throw{type:"Name",message:"Property '".concat(n,"' is undefined"),filename:this.currentFileInfo.filename,index:this.index}},find:function(e,t){for(var n=0,i=void 0;n<e.length;n++)if(i=t.call(e,e[n]))return i;return null}});var Pe=function(e,t,n,i){this.key=e,this.op=t,this.value=n,this.cif=i};Pe.prototype=Object.assign(new u,{type:"Attribute",eval:function(e){return new Pe(this.key.eval?this.key.eval(e):this.key,this.op,this.value&&this.value.eval?this.value.eval(e):this.value,this.cif)},genCSS:function(e,t){t.add(this.toCSS(e))},toCSS:function(e){var t=this.key.toCSS?this.key.toCSS(e):this.key;return this.op&&(t+=this.op,t+=this.value.toCSS?this.value.toCSS(e):this.value),this.cif&&(t=t+" "+this.cif),"[".concat(t,"]")}});var Ee=function(e,t,n,i,r){this.escaped=void 0===n||n,this.value=t||"",this.quote=e.charAt(0),this._index=i,this._fileInfo=r,this.variableRegex=/@\{([\w-]+)\}/g,this.propRegex=/\$\{([\w-]+)\}/g,this.allowRoot=n};Ee.prototype=Object.assign(new u,{type:"Quoted",genCSS:function(e,t){this.escaped||t.add(this.quote,this.fileInfo(),this.getIndex()),t.add(this.value),this.escaped||t.add(this.quote)},containsVariables:function(){return this.value.match(this.variableRegex)},eval:function(e){var t=this,n=this.value;function i(e,t,n){var i=e;do{e=i.toString(),i=e.replace(t,n)}while(e!==i);return i}return n=i(n,this.variableRegex,(function(n,i,r){var s=new _e("@".concat(null!=i?i:r),t.getIndex(),t.fileInfo()).eval(e,!0);return s instanceof Ee?s.value:s.toCSS()})),n=i(n,this.propRegex,(function(n,i,r){var s=new Me("$".concat(null!=i?i:r),t.getIndex(),t.fileInfo()).eval(e,!0);return s instanceof Ee?s.value:s.toCSS()})),new Ee(this.quote+n+this.quote,n,this.escaped,this.getIndex(),this.fileInfo())},compare:function(e){return"Quoted"!==e.type||this.escaped||e.escaped?e.toCSS&&this.toCSS()===e.toCSS()?0:void 0:u.numericCompare(this.value,e.value)}});var Re=function(e,t,n,i){this.value=e,this._index=t,this._fileInfo=n,this.isEvald=i};Re.prototype=Object.assign(new u,{type:"Url",accept:function(e){this.value=e.visit(this.value)},genCSS:function(e,t){t.add("url("),this.value.genCSS(e,t),t.add(")")},eval:function(e){var t,n=this.value.eval(e);if(!this.isEvald&&("string"==typeof(t=this.fileInfo()&&this.fileInfo().rootpath)&&"string"==typeof n.value&&e.pathRequiresRewrite(n.value)?(n.quote||(t=t.replace(/[()'"\s]/g,(function(e){return"\\".concat(e)}))),n.value=e.rewritePath(n.value,t)):n.value=e.normalizePath(n.value),e.urlArgs&&!n.value.match(/^\s*data:/))){var i=(-1===n.value.indexOf("?")?"?":"&")+e.urlArgs;-1!==n.value.indexOf("#")?n.value=n.value.replace("#","".concat(i,"#")):n.value+=i}return new Re(n,this.getIndex(),this.fileInfo(),!0)}});var Oe=function(e,t,n,i,r){this._index=n,this._fileInfo=i;var s=new ae([],null,null,this._index,this._fileInfo).createEmptySelectors();this.features=new oe(t),this.rules=[new me(s,e)],this.rules[0].allowImports=!0,this.copyVisibilityInfo(r),this.allowRoot=!0,this.setParent(s,this),this.setParent(this.features,this),this.setParent(this.rules,this)};Oe.prototype=Object.assign(new xe,p(p({type:"Media"},we),{genCSS:function(e,t){t.add("@media ",this._fileInfo,this._index),this.features.genCSS(e,t),this.outputRuleset(e,t,this.rules)},eval:function(e){e.mediaBlocks||(e.mediaBlocks=[],e.mediaPath=[]);var t=new Oe(null,[],this._index,this._fileInfo,this.visibilityInfo());return this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,t.debugInfo=this.debugInfo),t.features=this.features.eval(e),e.mediaPath.push(t),e.mediaBlocks.push(t),this.rules[0].functionRegistry=e.frames[0].functionRegistry.inherit(),e.frames.unshift(this.rules[0]),t.rules=[this.rules[0].eval(e)],e.frames.shift(),e.mediaPath.pop(),0===e.mediaPath.length?t.evalTop(e):t.evalNested(e)}}));var Fe=function(e,t,n,i,r,s){if(this.options=n,this._index=i,this._fileInfo=r,this.path=e,this.features=t,this.allowRoot=!0,void 0!==this.options.less||this.options.inline)this.css=!this.options.less||this.options.inline;else{var a=this.getPath();a&&/[#.&?]css([?;].*)?$/.test(a)&&(this.css=!0)}this.copyVisibilityInfo(s),this.setParent(this.features,this),this.setParent(this.path,this)};Fe.prototype=Object.assign(new u,{type:"Import",accept:function(e){this.features&&(this.features=e.visit(this.features)),this.path=e.visit(this.path),this.options.isPlugin||this.options.inline||!this.root||(this.root=e.visit(this.root))},genCSS:function(e,t){this.css&&void 0===this.path._fileInfo.reference&&(t.add("@import ",this._fileInfo,this._index),this.path.genCSS(e,t),this.features&&(t.add(" "),this.features.genCSS(e,t)),t.add(";"))},getPath:function(){return this.path instanceof Re?this.path.value.value:this.path.value},isVariableImport:function(){var e=this.path;return e instanceof Re&&(e=e.value),!(e instanceof Ee)||e.containsVariables()},evalForImport:function(e){var t=this.path;return t instanceof Re&&(t=t.value),new Fe(t.eval(e),this.features,this.options,this._index,this._fileInfo,this.visibilityInfo())},evalPath:function(e){var t=this.path.eval(e),n=this._fileInfo;if(!(t instanceof Re)){var i=t.value;n&&i&&e.pathRequiresRewrite(i)?t.value=e.rewritePath(i,n.rootpath):t.value=e.normalizePath(t.value)}return t},eval:function(e){var t=this.doEval(e);return(this.options.reference||this.blocksVisibility())&&(t.length||0===t.length?t.forEach((function(e){e.addVisibilityBlock()})):t.addVisibilityBlock()),t},doEval:function(e){var t,n,i=this.features&&this.features.eval(e);if(this.options.isPlugin){if(this.root&&this.root.eval)try{this.root.eval(e)}catch(e){throw e.message="Plugin error during evaluation",new $(e,this.root.imports,this.root.filename)}return(n=e.frames[0]&&e.frames[0].functionRegistry)&&this.root&&this.root.functions&&n.addMultiple(this.root.functions),[]}if(this.skip&&("function"==typeof this.skip&&(this.skip=this.skip()),this.skip))return[];if(this.features){var r=this.features.value;if(Array.isArray(r)&&r.length>=1)if("Expression"===(o=r[0]).type&&Array.isArray(o.value)&&o.value.length>=2)"Keyword"===(r=o.value)[0].type&&"layer"===r[0].value&&"Paren"===r[1].type&&(this.css=!1)}if(this.options.inline){var s=new re(this.root,0,{filename:this.importedFilename,reference:this.path._fileInfo&&this.path._fileInfo.reference},!0,!0);return this.features?new Oe([s],this.features.value):[s]}if(this.css||this.layerCss){var a=new Fe(this.evalPath(e),i,this.options,this._index);if(this.layerCss&&(a.css=this.layerCss,a.path._fileInfo=this._fileInfo),!a.css&&this.error)throw this.error;return a}if(this.root){if(this.features){var o;r=this.features.value;if(Array.isArray(r)&&1===r.length)if("Expression"===(o=r[0]).type&&Array.isArray(o.value)&&o.value.length>=2)if("Keyword"===(r=o.value)[0].type&&"layer"===r[0].value&&"Paren"===r[1].type)return this.layerCss=!0,r[0]=new be(r.slice(0,2)),r.splice(1,1),r[0].noSpacing=!0,this}return(t=new me(null,A(this.root.rules))).evalImports(e),this.features?new Oe(t.rules,this.features.value):t.rules}if(this.features){r=this.features.value;if(Array.isArray(r)&&r.length>=1)if(r=r[0].value,Array.isArray(r)&&r.length>=2)if("Keyword"===r[0].type&&"layer"===r[0].value&&"Paren"===r[1].type)return this.css=!0,r[0]=new be(r.slice(0,2)),r.splice(1,1),r[0].noSpacing=!0,this}return[]}});var $e=function(){};$e.prototype=Object.assign(new u,{evaluateJavaScript:function(e,t){var n,i=this,r={};if(!t.javascriptEnabled)throw{message:"Inline JavaScript is not enabled. Is it set in your options?",filename:this.fileInfo().filename,index:this.getIndex()};e=e.replace(/@\{([\w-]+)\}/g,(function(e,n){return i.jsify(new _e("@".concat(n),i.getIndex(),i.fileInfo()).eval(t))}));try{e=new Function("return (".concat(e,")"))}catch(t){throw{message:"JavaScript evaluation error: ".concat(t.message," from `").concat(e,"`"),filename:this.fileInfo().filename,index:this.getIndex()}}var s=t.frames[0].variables();for(var a in s)s.hasOwnProperty(a)&&(r[a.slice(1)]={value:s[a].value,toJS:function(){return this.value.eval(t).toCSS()}});try{n=e.call(r)}catch(e){throw{message:"JavaScript evaluation error: '".concat(e.name,": ").concat(e.message.replace(/["]/g,"'"),"'"),filename:this.fileInfo().filename,index:this.getIndex()}}return n},jsify:function(e){return Array.isArray(e.value)&&e.value.length>1?"[".concat(e.value.map((function(e){return e.toCSS()})).join(", "),"]"):e.toCSS()}});var Ve=function(e,t,n,i){this.escaped=t,this.expression=e,this._index=n,this._fileInfo=i};Ve.prototype=Object.assign(new $e,{type:"JavaScript",eval:function(e){var t=this.evaluateJavaScript(this.expression,e),n=typeof t;return"number"!==n||isNaN(t)?"string"===n?new Ee('"'.concat(t,'"'),t,this.escaped,this._index):Array.isArray(t)?new re(t.join(", ")):new re(t):new ye(t)}});var Le=function(e,t){this.key=e,this.value=t};Le.prototype=Object.assign(new u,{type:"Assignment",accept:function(e){this.value=e.visit(this.value)},eval:function(e){return this.value.eval?new Le(this.key,this.value.eval(e)):this},genCSS:function(e,t){t.add("".concat(this.key,"=")),this.value.genCSS?this.value.genCSS(e,t):t.add(this.value)}});var je=function(e,t,n,i,r){this.op=e.trim(),this.lvalue=t,this.rvalue=n,this._index=i,this.negate=r};je.prototype=Object.assign(new u,{type:"Condition",accept:function(e){this.lvalue=e.visit(this.lvalue),this.rvalue=e.visit(this.rvalue)},eval:function(e){var t=function(e,t,n){switch(e){case"and":return t&&n;case"or":return t||n;default:switch(u.compare(t,n)){case-1:return"<"===e||"=<"===e||"<="===e;case 0:return"="===e||">="===e||"=<"===e||"<="===e;case 1:return">"===e||">="===e;default:return!1}}}(this.op,this.lvalue.eval(e),this.rvalue.eval(e));return this.negate?!t:t}});var De=function(e,t,n,i,r,s){this.op=e.trim(),this.lvalue=t,this.mvalue=n,this.op2=i?i.trim():null,this.rvalue=r,this._index=s,this.mvalues=[]};De.prototype=Object.assign(new u,{type:"QueryInParens",accept:function(e){this.lvalue=e.visit(this.lvalue),this.mvalue=e.visit(this.mvalue),this.rvalue&&(this.rvalue=e.visit(this.rvalue))},eval:function(e){var t,n;this.lvalue=this.lvalue.eval(e);for(var i=0;(n=e.frames[i])&&("Ruleset"!==n.type||!(t=n.rules.find((function(e){return!!(e instanceof ce&&e.variable)}))));i++);return this.mvalueCopy||(this.mvalueCopy=C(this.mvalue)),t?(this.mvalue=this.mvalueCopy,this.mvalue=this.mvalue.eval(e),this.mvalues.push(this.mvalue)):this.mvalue=this.mvalue.eval(e),this.rvalue&&(this.rvalue=this.rvalue.eval(e)),this},genCSS:function(e,t){this.lvalue.genCSS(e,t),t.add(" "+this.op+" "),this.mvalues.length>0&&(this.mvalue=this.mvalues.shift()),this.mvalue.genCSS(e,t),this.rvalue&&(t.add(" "+this.op2+" "),this.rvalue.genCSS(e,t))}});var Ne=function(e,t,n,i,r){this._index=n,this._fileInfo=i;var s=new ae([],null,null,this._index,this._fileInfo).createEmptySelectors();this.features=new oe(t),this.rules=[new me(s,e)],this.rules[0].allowImports=!0,this.copyVisibilityInfo(r),this.allowRoot=!0,this.setParent(s,this),this.setParent(this.features,this),this.setParent(this.rules,this)};Ne.prototype=Object.assign(new xe,p(p({type:"Container"},we),{genCSS:function(e,t){t.add("@container ",this._fileInfo,this._index),this.features.genCSS(e,t),this.outputRuleset(e,t,this.rules)},eval:function(e){e.mediaBlocks||(e.mediaBlocks=[],e.mediaPath=[]);var t=new Ne(null,[],this._index,this._fileInfo,this.visibilityInfo());return this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,t.debugInfo=this.debugInfo),t.features=this.features.eval(e),e.mediaPath.push(t),e.mediaBlocks.push(t),this.rules[0].functionRegistry=e.frames[0].functionRegistry.inherit(),e.frames.unshift(this.rules[0]),t.rules=[this.rules[0].eval(e)],e.frames.shift(),e.mediaPath.pop(),0===e.mediaPath.length?t.evalTop(e):t.evalNested(e)}}));var Be=function(e){this.value=e};Be.prototype=Object.assign(new u,{type:"UnicodeDescriptor"});var Ue=function(e){this.value=e};Ue.prototype=Object.assign(new u,{type:"Negative",genCSS:function(e,t){t.add("-"),this.value.genCSS(e,t)},eval:function(e){return e.isMathOn()?new Ce("*",[new ye(-1),this.value]).eval(e):new Ue(this.value.eval(e))}});var qe=function(e,t,n,i,r){switch(this.selector=e,this.option=t,this.object_id=qe.next_id++,this.parent_ids=[this.object_id],this._index=n,this._fileInfo=i,this.copyVisibilityInfo(r),this.allowRoot=!0,t){case"!all":case"all":this.allowBefore=!0,this.allowAfter=!0;break;default:this.allowBefore=!1,this.allowAfter=!1}this.setParent(this.selector,this)};qe.prototype=Object.assign(new u,{type:"Extend",accept:function(e){this.selector=e.visit(this.selector)},eval:function(e){return new qe(this.selector.eval(e),this.option,this.getIndex(),this.fileInfo(),this.visibilityInfo())},clone:function(e){return new qe(this.selector,this.option,this.getIndex(),this.fileInfo(),this.visibilityInfo())},findSelfSelectors:function(e){var t,n,i=[];for(t=0;t<e.length;t++)n=e[t].elements,t>0&&n.length&&""===n[0].combinator.value&&(n[0].combinator.value=" "),i=i.concat(e[t].elements);this.selfSelectors=[new ae(i)],this.selfSelectors[0].copyVisibilityInfo(this.visibilityInfo())}}),qe.next_id=0;var Te=function(e,t,n){this.variable=e,this._index=t,this._fileInfo=n,this.allowRoot=!0};Te.prototype=Object.assign(new u,{type:"VariableCall",eval:function(e){var t,n=new _e(this.variable,this.getIndex(),this.fileInfo()).eval(e),i=new $({message:"Could not evaluate variable call ".concat(this.variable)});if(!n.ruleset){if(n.rules)t=n;else if(Array.isArray(n))t=new me("",n);else{if(!Array.isArray(n.value))throw i;t=new me("",n.value)}n=new Se(t)}if(n.ruleset)return n.callEval(e);throw i}});var ze=function(e,t,n,i){this.value=e,this.lookups=t,this._index=n,this._fileInfo=i};ze.prototype=Object.assign(new u,{type:"NamespaceValue",eval:function(e){var t,n,i=this.value.eval(e);for(t=0;t<this.lookups.length;t++){if(n=this.lookups[t],Array.isArray(i)&&(i=new me([new ae],i)),""===n)i=i.lastDeclaration();else if("@"===n.charAt(0)){if("@"===n.charAt(1)&&(n="@".concat(new _e(n.substr(1)).eval(e).value)),i.variables&&(i=i.variable(n)),!i)throw{type:"Name",message:"variable ".concat(n," not found"),filename:this.fileInfo().filename,index:this.getIndex()}}else{if(n="$@"===n.substring(0,2)?"$".concat(new _e(n.substr(1)).eval(e).value):"$"===n.charAt(0)?n:"$".concat(n),i.properties&&(i=i.property(n)),!i)throw{type:"Name",message:'property "'.concat(n.substr(1),'" not found'),filename:this.fileInfo().filename,index:this.getIndex()};i=i[i.length-1]}i.value&&(i=i.eval(e).value),i.ruleset&&(i=i.ruleset.eval(e))}return i}});var Ge=function(e,t,n,i,r,s,a){this.name=e||"anonymous mixin",this.selectors=[new ae([new g(null,e,!1,this._index,this._fileInfo)])],this.params=t,this.condition=i,this.variadic=r,this.arity=t.length,this.rules=n,this._lookups={};var o=[];this.required=t.reduce((function(e,t){return!t.name||t.name&&!t.value?e+1:(o.push(t.name),e)}),0),this.optionalParameters=o,this.frames=s,this.copyVisibilityInfo(a),this.allowRoot=!0};Ge.prototype=Object.assign(new me,{type:"MixinDefinition",evalFirst:!0,accept:function(e){this.params&&this.params.length&&(this.params=e.visitArray(this.params)),this.rules=e.visitArray(this.rules),this.condition&&(this.condition=e.visit(this.condition))},evalParams:function(e,t,n,i){var r,s,a,o,l,u,c,h,f=new me(null,null),p=A(this.params),v=0;if(t.frames&&t.frames[0]&&t.frames[0].functionRegistry&&(f.functionRegistry=t.frames[0].functionRegistry.inherit()),t=new B.Eval(t,[f].concat(t.frames)),n)for(v=(n=A(n)).length,a=0;a<v;a++)if(u=(s=n[a])&&s.name){for(c=!1,o=0;o<p.length;o++)if(!i[o]&&u===p[o].name){i[o]=s.value.eval(e),f.prependRule(new ce(u,s.value.eval(e))),c=!0;break}if(c){n.splice(a,1),a--;continue}throw{type:"Runtime",message:"Named argument for ".concat(this.name," ").concat(n[a].name," not found")}}for(h=0,a=0;a<p.length;a++)if(!i[a]){if(s=n&&n[h],u=p[a].name)if(p[a].variadic){for(r=[],o=h;o<v;o++)r.push(n[o].value.eval(e));f.prependRule(new ce(u,new be(r).eval(e)))}else{if(l=s&&s.value)l=Array.isArray(l)?new Se(new me("",l)):l.eval(e);else{if(!p[a].value)throw{type:"Runtime",message:"wrong number of arguments for ".concat(this.name," (").concat(v," for ").concat(this.arity,")")};l=p[a].value.eval(t),f.resetCache()}f.prependRule(new ce(u,l)),i[a]=l}if(p[a].variadic&&n)for(o=h;o<v;o++)i[o]=n[o].value.eval(e);h++}return f},makeImportant:function(){var e=this.rules?this.rules.map((function(e){return e.makeImportant?e.makeImportant(!0):e})):this.rules;return new Ge(this.name,this.params,e,this.condition,this.variadic,this.frames)},eval:function(e){return new Ge(this.name,this.params,this.rules,this.condition,this.variadic,this.frames||A(e.frames))},evalCall:function(e,t,n){var i,r,s=[],a=this.frames?this.frames.concat(e.frames):e.frames,o=this.evalParams(e,new B.Eval(e,a),t,s);return o.prependRule(new ce("@arguments",new be(s).eval(e))),i=A(this.rules),(r=new me(null,i)).originalRuleset=this,r=r.eval(new B.Eval(e,[this,o].concat(a))),n&&(r=r.makeImportant()),r},matchCondition:function(e,t){return!(this.condition&&!this.condition.eval(new B.Eval(t,[this.evalParams(t,new B.Eval(t,this.frames?this.frames.concat(t.frames):t.frames),e,[])].concat(this.frames||[]).concat(t.frames))))},matchArgs:function(e,t){var n,i=e&&e.length||0,r=this.optionalParameters,s=e?e.reduce((function(e,t){return r.indexOf(t.name)<0?e+1:e}),0):0;if(this.variadic){if(s<this.required-1)return!1}else{if(s<this.required)return!1;if(i>this.params.length)return!1}n=Math.min(s,this.arity);for(var a=0;a<n;a++)if(!this.params[a].name&&!this.params[a].variadic&&e[a].value.eval(t).toCSS()!=this.params[a].value.eval(t).toCSS())return!1;return!0}});var We=function(e,t,n,i,r){this.selector=new ae(e),this.arguments=t||[],this._index=n,this._fileInfo=i,this.important=r,this.allowRoot=!0,this.setParent(this.selector,this)};We.prototype=Object.assign(new u,{type:"MixinCall",accept:function(e){this.selector&&(this.selector=e.visit(this.selector)),this.arguments.length&&(this.arguments=e.visitArray(this.arguments))},eval:function(e){var t,n,i,r,s,a,o,l,u,c,h,f,p,v,d,m=[],g=[],y=!1,b=[],w=[];function x(t,n){var i,r,s;for(i=0;i<2;i++){for(w[i]=!0,de.value(i),r=0;r<n.length&&w[i];r++)(s=n[r]).matchCondition&&(w[i]=w[i]&&s.matchCondition(null,e));t.matchCondition&&(w[i]=w[i]&&t.matchCondition(m,e))}return w[0]||w[1]?w[0]!=w[1]?w[1]?1:2:0:-1}for(this.selector=this.selector.eval(e),a=0;a<this.arguments.length;a++)if(s=(r=this.arguments[a]).value.eval(e),r.expand&&Array.isArray(s.value))for(s=s.value,o=0;o<s.length;o++)m.push({value:s[o]});else m.push({name:r.name,value:s});for(d=function(t){return t.matchArgs(null,e)},a=0;a<e.frames.length;a++)if((t=e.frames[a].find(this.selector,null,d)).length>0){for(c=!0,o=0;o<t.length;o++){for(n=t[o].rule,i=t[o].path,u=!1,l=0;l<e.frames.length;l++)if(!(n instanceof Ge)&&n===(e.frames[l].originalRuleset||e.frames[l])){u=!0;break}u||n.matchArgs(m,e)&&(-1!==(h={mixin:n,group:x(n,i)}).group&&b.push(h),y=!0)}for(de.reset(),p=[0,0,0],o=0;o<b.length;o++)p[b[o].group]++;if(p[0]>0)f=2;else if(f=1,p[1]+p[2]>1)throw{type:"Runtime",message:"Ambiguous use of `default()` found when matching for `".concat(this.format(m),"`"),index:this.getIndex(),filename:this.fileInfo().filename};for(o=0;o<b.length;o++)if(0===(h=b[o].group)||h===f)try{(n=b[o].mixin)instanceof Ge||(v=n.originalRuleset||n,(n=new Ge("",[],n.rules,null,!1,null,v.visibilityInfo())).originalRuleset=v);var S=n.evalCall(e,m,this.important).rules;this._setVisibilityToReplacement(S),Array.prototype.push.apply(g,S)}catch(e){throw{message:e.message,index:this.getIndex(),filename:this.fileInfo().filename,stack:e.stack}}if(y)return g}throw c?{type:"Runtime",message:"No matching definition was found for `".concat(this.format(m),"`"),index:this.getIndex(),filename:this.fileInfo().filename}:{type:"Name",message:"".concat(this.selector.toCSS().trim()," is undefined"),index:this.getIndex(),filename:this.fileInfo().filename}},_setVisibilityToReplacement:function(e){var t;if(this.blocksVisibility())for(t=0;t<e.length;t++)e[t].addVisibilityBlock()},format:function(e){return"".concat(this.selector.toCSS().trim(),"(").concat(e?e.map((function(e){var t="";return e.name&&(t+="".concat(e.name,":")),e.value.toCSS?t+=e.value.toCSS():t+="???",t})).join(", "):"",")")}});var Je={Node:u,Color:c,AtRule:xe,DetachedRuleset:Se,Operation:Ce,Dimension:ye,Unit:ge,Keyword:le,Variable:_e,Property:Me,Ruleset:me,Element:g,Attribute:Pe,Combinator:m,Selector:ae,Quoted:Ee,Expression:be,Declaration:ce,Call:Ae,URL:Re,Import:Fe,Comment:ve,Anonymous:re,Value:oe,JavaScript:Ve,Assignment:Le,Condition:je,Paren:v,Media:Oe,Container:Ne,QueryInParens:De,UnicodeDescriptor:Be,Negative:Ue,Extend:qe,VariableCall:Te,NamespaceValue:ze,mixin:{Call:We,Definition:Ge}},Ke=function(){function e(){}return e.prototype.getPath=function(e){var t=e.lastIndexOf("?");return t>0&&(e=e.slice(0,t)),(t=e.lastIndexOf("/"))<0&&(t=e.lastIndexOf("\\")),t<0?"":e.slice(0,t+1)},e.prototype.tryAppendExtension=function(e,t){return/(\.[a-z]*$)|([?;].*)$/.test(e)?e:e+t},e.prototype.tryAppendLessExtension=function(e){return this.tryAppendExtension(e,".less")},e.prototype.supportsSync=function(){return!1},e.prototype.alwaysMakePathsAbsolute=function(){return!1},e.prototype.isPathAbsolute=function(e){return/^(?:[a-z-]+:|\/|\\|#)/i.test(e)},e.prototype.join=function(e,t){return e?e+t:t},e.prototype.pathDiff=function(e,t){var n,i,r,s,a=this.extractUrlParts(e),o=this.extractUrlParts(t),l="";if(a.hostPart!==o.hostPart)return"";for(i=Math.max(o.directories.length,a.directories.length),n=0;n<i&&o.directories[n]===a.directories[n];n++);for(s=o.directories.slice(n),r=a.directories.slice(n),n=0;n<s.length-1;n++)l+="../";for(n=0;n<r.length-1;n++)l+="".concat(r[n],"/");return l},e.prototype.extractUrlParts=function(e,t){var n,i,r=/^((?:[a-z-]+:)?\/{2}(?:[^/?#]*\/)|([/\\]))?((?:[^/\\?#]*[/\\])*)([^/\\?#]*)([#?].*)?$/i,s=e.match(r),a={},o=[],l=[];if(!s)throw new Error("Could not parse sheet href - '".concat(e,"'"));if(t&&(!s[1]||s[2])){if(!(i=t.match(r)))throw new Error("Could not parse page url - '".concat(t,"'"));s[1]=s[1]||i[1]||"",s[2]||(s[3]=i[3]+s[3])}if(s[3])for(o=s[3].replace(/\\/g,"/").split("/"),n=0;n<o.length;n++)".."===o[n]?l.pop():"."!==o[n]&&l.push(o[n]);return a.hostPart=s[1],a.directories=l,a.rawPath=(s[1]||"")+o.join("/"),a.path=(s[1]||"")+l.join("/"),a.filename=s[4],a.fileUrl=a.path+(s[4]||""),a.url=a.fileUrl+(s[5]||""),a},e}(),He=function(){function e(){this.require=function(){return null}}return e.prototype.evalPlugin=function(e,t,n,i,r){var s,a,o,l,u,c;l=t.pluginManager,r&&(u="string"==typeof r?r:r.filename);var h=(new this.less.FileManager).extractUrlParts(u).filename;if(u&&(a=l.get(u))){if(c=this.trySetOptions(a,u,h,i))return c;try{a.use&&a.use.call(this.context,a)}catch(e){return e.message=e.message||"Error during @plugin call",new $(e,n,u)}return a}o={exports:{},pluginManager:l,fileInfo:r},s=te.create();try{new Function("module","require","registerPlugin","functions","tree","less","fileInfo",e)(o,this.require(u),(function(e){a=e}),s,this.less.tree,this.less,r)}catch(e){return new $(e,n,u)}if(a||(a=o.exports),(a=this.validatePlugin(a,u,h))instanceof $)return a;if(!a)return new $({message:"Not a valid plugin"},n,u);if(a.imports=n,a.filename=u,(!a.minVersion||this.compareVersion("3.0.0",a.minVersion)<0)&&(c=this.trySetOptions(a,u,h,i)))return c;if(l.addPlugin(a,r.filename,s),a.functions=s.getLocalFunctions(),c=this.trySetOptions(a,u,h,i))return c;try{a.use&&a.use.call(this.context,a)}catch(e){return e.message=e.message||"Error during @plugin call",new $(e,n,u)}return a},e.prototype.trySetOptions=function(e,t,n,i){if(i&&!e.setOptions)return new $({message:"Options have been provided but the plugin ".concat(n," does not support any options.")});try{e.setOptions&&e.setOptions(i)}catch(e){return new $(e)}},e.prototype.validatePlugin=function(e,t,n){return e?("function"==typeof e&&(e=new e),e.minVersion&&this.compareVersion(e.minVersion,this.less.version)<0?new $({message:"Plugin ".concat(n," requires version ").concat(this.versionToString(e.minVersion))}):e):null},e.prototype.compareVersion=function(e,t){"string"==typeof e&&(e=e.match(/^(\d+)\.?(\d+)?\.?(\d+)?/)).shift();for(var n=0;n<e.length;n++)if(e[n]!==t[n])return parseInt(e[n])>parseInt(t[n])?-1:1;return 0},e.prototype.versionToString=function(e){for(var t="",n=0;n<e.length;n++)t+=(t?".":"")+e[n];return t},e.prototype.printUsage=function(e){for(var t=0;t<e.length;t++){var n=e[t];n.printUsage&&n.printUsage()}},e}();function Qe(e,t,n,i){return t.eval(e)?n.eval(e):i?i.eval(e):new re}function Ze(e,t){try{return t.eval(e),le.True}catch(e){return le.False}}Qe.evalArgs=!1,Ze.evalArgs=!1;var Xe,Ye={isdefined:Ze,boolean:function(e){return e?le.True:le.False},if:Qe};function et(e){return Math.min(1,Math.max(0,e))}function tt(e,t){var n=Xe.hsla(t.h,t.s,t.l,t.a);if(n)return e.value&&/^(rgb|hsl)/.test(e.value)?n.value=e.value:n.value="rgb",n}function nt(e){if(e.toHSL)return e.toHSL();throw new Error("Argument cannot be evaluated to a color")}function it(e){if(e.toHSV)return e.toHSV();throw new Error("Argument cannot be evaluated to a color")}function rt(e){if(e instanceof ye)return parseFloat(e.unit.is("%")?e.value/100:e.value);if("number"==typeof e)return e;throw{type:"Argument",message:"color functions take numbers as parameters"}}var st=Xe={rgb:function(e,t,n){var i=1;if(e instanceof be){var r=e.value;if(e=r[0],t=r[1],(n=r[2])instanceof Ce){var s=n;n=s.operands[0],i=s.operands[1]}}var a=Xe.rgba(e,t,n,i);if(a)return a.value="rgb",a},rgba:function(e,t,n,i){try{if(e instanceof c)return i=t?rt(t):e.alpha,new c(e.rgb,i,"rgba");var r=[e,t,n].map((function(e){return n=255,(t=e)instanceof ye&&t.unit.is("%")?parseFloat(t.value*n/100):rt(t);var t,n}));return i=rt(i),new c(r,i,"rgba")}catch(e){}},hsl:function(e,t,n){var i=1;if(e instanceof be){var r=e.value;if(e=r[0],t=r[1],(n=r[2])instanceof Ce){var s=n;n=s.operands[0],i=s.operands[1]}}var a=Xe.hsla(e,t,n,i);if(a)return a.value="hsl",a},hsla:function(e,t,n,i){var r,s;function a(e){return 6*(e=e<0?e+1:e>1?e-1:e)<1?r+(s-r)*e*6:2*e<1?s:3*e<2?r+(s-r)*(2/3-e)*6:r}try{if(e instanceof c)return i=t?rt(t):e.alpha,new c(e.rgb,i,"hsla");e=rt(e)%360/360,t=et(rt(t)),n=et(rt(n)),i=et(rt(i)),r=2*n-(s=n<=.5?n*(t+1):n+t-n*t);var o=[255*a(e+1/3),255*a(e),255*a(e-1/3)];return i=rt(i),new c(o,i,"hsla")}catch(e){}},hsv:function(e,t,n){return Xe.hsva(e,t,n,1)},hsva:function(e,t,n,i){var r,s;e=rt(e)%360/360*360,t=rt(t),n=rt(n),i=rt(i);var a=[n,n*(1-t),n*(1-(s=e/60-(r=Math.floor(e/60%6)))*t),n*(1-(1-s)*t)],o=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]];return Xe.rgba(255*a[o[r][0]],255*a[o[r][1]],255*a[o[r][2]],i)},hue:function(e){return new ye(nt(e).h)},saturation:function(e){return new ye(100*nt(e).s,"%")},lightness:function(e){return new ye(100*nt(e).l,"%")},hsvhue:function(e){return new ye(it(e).h)},hsvsaturation:function(e){return new ye(100*it(e).s,"%")},hsvvalue:function(e){return new ye(100*it(e).v,"%")},red:function(e){return new ye(e.rgb[0])},green:function(e){return new ye(e.rgb[1])},blue:function(e){return new ye(e.rgb[2])},alpha:function(e){return new ye(nt(e).a)},luma:function(e){return new ye(e.luma()*e.alpha*100,"%")},luminance:function(e){var t=.2126*e.rgb[0]/255+.7152*e.rgb[1]/255+.0722*e.rgb[2]/255;return new ye(t*e.alpha*100,"%")},saturate:function(e,t,n){if(!e.rgb)return null;var i=nt(e);return void 0!==n&&"relative"===n.value?i.s+=i.s*t.value/100:i.s+=t.value/100,i.s=et(i.s),tt(e,i)},desaturate:function(e,t,n){var i=nt(e);return void 0!==n&&"relative"===n.value?i.s-=i.s*t.value/100:i.s-=t.value/100,i.s=et(i.s),tt(e,i)},lighten:function(e,t,n){var i=nt(e);return void 0!==n&&"relative"===n.value?i.l+=i.l*t.value/100:i.l+=t.value/100,i.l=et(i.l),tt(e,i)},darken:function(e,t,n){var i=nt(e);return void 0!==n&&"relative"===n.value?i.l-=i.l*t.value/100:i.l-=t.value/100,i.l=et(i.l),tt(e,i)},fadein:function(e,t,n){var i=nt(e);return void 0!==n&&"relative"===n.value?i.a+=i.a*t.value/100:i.a+=t.value/100,i.a=et(i.a),tt(e,i)},fadeout:function(e,t,n){var i=nt(e);return void 0!==n&&"relative"===n.value?i.a-=i.a*t.value/100:i.a-=t.value/100,i.a=et(i.a),tt(e,i)},fade:function(e,t){var n=nt(e);return n.a=t.value/100,n.a=et(n.a),tt(e,n)},spin:function(e,t){var n=nt(e),i=(n.h+t.value)%360;return n.h=i<0?360+i:i,tt(e,n)},mix:function(e,t,n){n||(n=new ye(50));var i=n.value/100,r=2*i-1,s=nt(e).a-nt(t).a,a=((r*s==-1?r:(r+s)/(1+r*s))+1)/2,o=1-a,l=[e.rgb[0]*a+t.rgb[0]*o,e.rgb[1]*a+t.rgb[1]*o,e.rgb[2]*a+t.rgb[2]*o],u=e.alpha*i+t.alpha*(1-i);return new c(l,u)},greyscale:function(e){return Xe.desaturate(e,new ye(100))},contrast:function(e,t,n,i){if(!e.rgb)return null;if(void 0===n&&(n=Xe.rgba(255,255,255,1)),void 0===t&&(t=Xe.rgba(0,0,0,1)),t.luma()>n.luma()){var r=n;n=t,t=r}return i=void 0===i?.43:rt(i),e.luma()<i?n:t},argb:function(e){return new re(e.toARGB())},color:function(e){if(e instanceof Ee&&/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3,4})$/i.test(e.value)){var t=e.value.slice(1);return new c(t,void 0,"#".concat(t))}if(e instanceof c||(e=c.fromKeyword(e.value)))return e.value=void 0,e;throw{type:"Argument",message:"argument must be a color keyword or 3|4|6|8 digit hex e.g. #FFF"}},tint:function(e,t){return Xe.mix(Xe.rgb(255,255,255),e,t)},shade:function(e,t){return Xe.mix(Xe.rgb(0,0,0),e,t)}};function at(e,t,n){var i,r,s,a,o=t.alpha,l=n.alpha,u=[];s=l+o*(1-l);for(var h=0;h<3;h++)a=e(i=t.rgb[h]/255,r=n.rgb[h]/255),s&&(a=(l*r+o*(i-l*(i+r-a)))/s),u[h]=255*a;return new c(u,s)}var ot={multiply:function(e,t){return e*t},screen:function(e,t){return e+t-e*t},overlay:function(e,t){return(e*=2)<=1?ot.multiply(e,t):ot.screen(e-1,t)},softlight:function(e,t){var n=1,i=e;return t>.5&&(i=1,n=e>.25?Math.sqrt(e):((16*e-12)*e+4)*e),e-(1-2*t)*i*(n-e)},hardlight:function(e,t){return ot.overlay(t,e)},difference:function(e,t){return Math.abs(e-t)},exclusion:function(e,t){return e+t-2*e*t},average:function(e,t){return(e+t)/2},negation:function(e,t){return 1-Math.abs(e+t-1)}};for(var lt in ot)ot.hasOwnProperty(lt)&&(at[lt]=at.bind(null,ot[lt]));var ut=function(e){return Array.isArray(e.value)?e.value:Array(e)},ct={_SELF:function(e){return e},"~":function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?e[0]:new oe(e)},extract:function(e,t){return t=t.value-1,ut(e)[t]},length:function(e){return new ye(ut(e).length)},range:function(e,t,n){var i,r,s=1,a=[];t?(r=t,i=e.value,n&&(s=n.value)):(i=1,r=e);for(var o=i;o<=r.value;o+=s)a.push(new ye(o,r.unit));return new be(a)},each:function(e,t){var n,i,r=this,s=[],a=function(e){return e instanceof u?e.eval(r.context):e};i=!e.value||e instanceof Ee?e.ruleset?a(e.ruleset).rules:e.rules?e.rules.map(a):Array.isArray(e)?e.map(a):[a(e)]:Array.isArray(e.value)?e.value.map(a):[a(e.value)];var o="@value",l="@key",c="@index";t.params?(o=t.params[0]&&t.params[0].name,l=t.params[1]&&t.params[1].name,c=t.params[2]&&t.params[2].name,t=t.rules):t=t.ruleset;for(var h=0;h<i.length;h++){var f=void 0,p=void 0,v=i[h];v instanceof ce?(f="string"==typeof v.name?v.name:v.name[0].value,p=v.value):(f=new ye(h+1),p=v),v instanceof ve||(n=t.rules.slice(0),o&&n.push(new ce(o,p,!1,!1,this.index,this.currentFileInfo)),c&&n.push(new ce(c,new ye(h+1),!1,!1,this.index,this.currentFileInfo)),l&&n.push(new ce(l,f,!1,!1,this.index,this.currentFileInfo)),s.push(new me([new ae([new g("","&")])],n,t.strictImports,t.visibilityInfo())))}return new me([new ae([new g("","&")])],s,t.strictImports,t.visibilityInfo()).eval(this.context)}},ht=function(e,t,n){if(!(n instanceof ye))throw{type:"Argument",message:"argument must be a number"};return null===t?t=n.unit:n=n.unify(),new ye(e(parseFloat(n.value)),t)},ft={ceil:null,floor:null,sqrt:null,abs:null,tan:"",sin:"",cos:"",atan:"rad",asin:"rad",acos:"rad"};for(var pt in ft)ft.hasOwnProperty(pt)&&(ft[pt]=ht.bind(null,Math[pt],ft[pt]));ft.round=function(e,t){var n=void 0===t?0:t.value;return ht((function(e){return e.toFixed(n)}),null,e)};var vt=function(e,t){var n,i,r,s,a,o,l,u,c=this;switch((t=Array.prototype.slice.call(t)).length){case 0:throw{type:"Argument",message:"one or more arguments required"}}var h=[],f={};for(n=0;n<t.length;n++){if(!((r=t[n])instanceof ye)){if(Array.isArray(t[n].value)){Array.prototype.push.apply(t,Array.prototype.slice.call(t[n].value));continue}throw{type:"Argument",message:"incompatible types"}}if(l=""!==(o=""===(s=""===r.unit.toString()&&void 0!==u?new ye(r.value,u).unify():r.unify()).unit.toString()&&void 0!==l?l:s.unit.toString())&&void 0===l||""!==o&&""===h[0].unify().unit.toString()?o:l,u=""!==o&&void 0===u?r.unit.toString():u,void 0!==(i=void 0!==f[""]&&""!==o&&o===l?f[""]:f[o]))a=""===h[i].unit.toString()&&void 0!==u?new ye(h[i].value,u).unify():h[i].unify(),(e&&s.value<a.value||!e&&s.value>a.value)&&(h[i]=r);else{if(void 0!==l&&o!==l)throw{type:"Argument",message:"incompatible types"};f[o]=h.length,h.push(r)}}return 1==h.length?h[0]:(t=h.map((function(e){return e.toCSS(c.context)})).join(this.context.compress?",":", "),new re("".concat(e?"min":"max","(").concat(t,")")))},dt={min:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return vt.call(this,!0,e)}catch(e){}},max:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return vt.call(this,!1,e)}catch(e){}},convert:function(e,t){return e.convertTo(t.value)},pi:function(){return new ye(Math.PI)},mod:function(e,t){return new ye(e.value%t.value,e.unit)},pow:function(e,t){if("number"==typeof e&&"number"==typeof t)e=new ye(e),t=new ye(t);else if(!(e instanceof ye&&t instanceof ye))throw{type:"Argument",message:"arguments must be numbers"};return new ye(Math.pow(e.value,t.value),e.unit)},percentage:function(e){return ht((function(e){return 100*e}),"%",e)}},mt={e:function(e){return new Ee('"',e instanceof Ve?e.evaluated:e.value,!0)},escape:function(e){return new re(encodeURI(e.value).replace(/=/g,"%3D").replace(/:/g,"%3A").replace(/#/g,"%23").replace(/;/g,"%3B").replace(/\(/g,"%28").replace(/\)/g,"%29"))},replace:function(e,t,n,i){var r=e.value;return n="Quoted"===n.type?n.value:n.toCSS(),r=r.replace(new RegExp(t.value,i?i.value:""),n),new Ee(e.quote||"",r,e.escaped)},"%":function(e){for(var t=Array.prototype.slice.call(arguments,1),n=e.value,i=function(e){n=n.replace(/%[sda]/i,(function(n){var i="Quoted"===t[e].type&&n.match(/s/i)?t[e].value:t[e].toCSS();return n.match(/[A-Z]$/)?encodeURIComponent(i):i}))},r=0;r<t.length;r++)i(r);return n=n.replace(/%%/g,"%"),new Ee(e.quote||"",n,e.escaped)}},gt=function(e,t){return e instanceof t?le.True:le.False},yt=function(e,t){if(void 0===t)throw{type:"Argument",message:"missing the required second argument to isunit."};if("string"!=typeof(t="string"==typeof t.value?t.value:t))throw{type:"Argument",message:"Second argument to isunit should be a unit or a string."};return e instanceof ye&&e.unit.is(t)?le.True:le.False},bt={isruleset:function(e){return gt(e,Se)},iscolor:function(e){return gt(e,c)},isnumber:function(e){return gt(e,ye)},isstring:function(e){return gt(e,Ee)},iskeyword:function(e){return gt(e,le)},isurl:function(e){return gt(e,Re)},ispixel:function(e){return yt(e,"px")},ispercentage:function(e){return yt(e,"%")},isem:function(e){return yt(e,"em")},isunit:yt,unit:function(e,t){if(!(e instanceof ye))throw{type:"Argument",message:"the first argument to unit must be a number".concat(e instanceof Ce?". Have you forgotten parenthesis?":"")};return t=t?t instanceof le?t.value:t.toCSS():"",new ye(e.value,t)},"get-unit":function(e){return new re(e.unit)}},wt=function(e){var t=this;switch((e=Array.prototype.slice.call(e)).length){case 0:throw{type:"Argument",message:"one or more arguments required"}}return e=[new _e(e[0].value,this.index,this.currentFileInfo).eval(this.context)].map((function(e){return e.toCSS(t.context)})).join(this.context.compress?",":", "),new _e("style(".concat(e,")"))},xt={style:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return wt.call(this,e)}catch(e){}}},St=function(e){var t={functionRegistry:te,functionCaller:ke};return te.addMultiple(Ye),te.add("default",de.eval.bind(de)),te.addMultiple(st),te.addMultiple(at),te.addMultiple(function(e){var t=function(e,t){return new Re(t,e.index,e.currentFileInfo).eval(e.context)};return{"data-uri":function(n,i){i||(i=n,n=null);var s=n&&n.value,a=i.value,o=this.currentFileInfo,l=o.rewriteUrls?o.currentDirectory:o.entryPath,u=a.indexOf("#"),c="";-1!==u&&(c=a.slice(u),a=a.slice(0,u));var h=_(this.context);h.rawBuffer=!0;var f=e.getFileManager(a,l,h,e,!0);if(!f)return t(this,i);var p=!1;if(n)p=/;base64$/.test(s);else{if("image/svg+xml"===(s=e.mimeLookup(a)))p=!1;else{var v=e.charsetLookup(s);p=["US-ASCII","UTF-8"].indexOf(v)<0}p&&(s+=";base64")}var d=f.loadFileSync(a,l,h,e);if(!d.contents)return r.warn("Skipped data-uri embedding of ".concat(a," because file not found")),t(this,i||n);var m=d.contents;if(p&&!e.encodeBase64)return t(this,i);m=p?e.encodeBase64(m):encodeURIComponent(m);var g="data:".concat(s,",").concat(m).concat(c);return new Re(new Ee('"'.concat(g,'"'),g,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)}}}(e)),te.addMultiple(ct),te.addMultiple(ft),te.addMultiple(dt),te.addMultiple(mt),te.addMultiple({"svg-gradient":function(e){var t,n,i,r,s,a,o,l,u="linear",h='x="0" y="0" width="1" height="1"',f={compress:!1},p=e.toCSS(f);function v(){throw{type:"Argument",message:"svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position] or direction, color list"}}switch(2==arguments.length?(arguments[1].value.length<2&&v(),t=arguments[1].value):arguments.length<3?v():t=Array.prototype.slice.call(arguments,1),p){case"to bottom":n='x1="0%" y1="0%" x2="0%" y2="100%"';break;case"to right":n='x1="0%" y1="0%" x2="100%" y2="0%"';break;case"to bottom right":n='x1="0%" y1="0%" x2="100%" y2="100%"';break;case"to top right":n='x1="0%" y1="100%" x2="100%" y2="0%"';break;case"ellipse":case"ellipse at center":u="radial",n='cx="50%" cy="50%" r="75%"',h='x="-50" y="-50" width="101" height="101"';break;default:throw{type:"Argument",message:"svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center'"}}for(i='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><'.concat(u,'Gradient id="g" ').concat(n,">"),r=0;r<t.length;r+=1)t[r]instanceof be?(s=t[r].value[0],a=t[r].value[1]):(s=t[r],a=void 0),s instanceof c&&((0===r||r+1===t.length)&&void 0===a||a instanceof ye)||v(),o=a?a.toCSS(f):0===r?"0%":"100%",l=s.alpha,i+='<stop offset="'.concat(o,'" stop-color="').concat(s.toRGB(),'"').concat(l<1?' stop-opacity="'.concat(l,'"'):"","/>");return i+="</".concat(u,"Gradient><rect ").concat(h,' fill="url(#g)" /></svg>'),i=encodeURIComponent(i),i="data:image/svg+xml,".concat(i),new Re(new Ee("'".concat(i,"'"),i,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)}}),te.addMultiple(bt),te.addMultiple(xt),t};function It(e,t){var n,i=(t=t||{}).variables,r=new B.Eval(t);"object"!=typeof i||Array.isArray(i)||(i=Object.keys(i).map((function(e){var t=i[e];return t instanceof Je.Value||(t instanceof Je.Expression||(t=new Je.Expression([t])),t=new Je.Value([t])),new Je.Declaration("@".concat(e),t,!1,null,0)})),r.frames=[new Je.Ruleset(null,i)]);var s,a,o=[new ee.JoinSelectorVisitor,new ee.MarkVisibleSelectorsVisitor(!0),new ee.ExtendVisitor,new ee.ToCSSVisitor({compress:Boolean(t.compress)})],l=[];if(t.pluginManager){a=t.pluginManager.visitor();for(var u=0;u<2;u++)for(a.first();s=a.get();)s.isPreEvalVisitor?0!==u&&-1!==l.indexOf(s)||(l.push(s),s.run(e)):0!==u&&-1!==o.indexOf(s)||(s.isPreVisitor?o.unshift(s):o.push(s))}n=e.eval(r);for(var c=0;c<o.length;c++)o[c].run(n);if(t.pluginManager)for(a.first();s=a.get();)-1===o.indexOf(s)&&-1===l.indexOf(s)&&s.run(n);return n}var Ct,kt=function(){function e(e){this.less=e,this.visitors=[],this.preProcessors=[],this.postProcessors=[],this.installedPlugins=[],this.fileManagers=[],this.iterator=-1,this.pluginCache={},this.Loader=new e.PluginLoader(e)}return e.prototype.addPlugins=function(e){if(e)for(var t=0;t<e.length;t++)this.addPlugin(e[t])},e.prototype.addPlugin=function(e,t,n){this.installedPlugins.push(e),t&&(this.pluginCache[t]=e),e.install&&e.install(this.less,this,n||this.less.functions.functionRegistry)},e.prototype.get=function(e){return this.pluginCache[e]},e.prototype.addVisitor=function(e){this.visitors.push(e)},e.prototype.addPreProcessor=function(e,t){var n;for(n=0;n<this.preProcessors.length&&!(this.preProcessors[n].priority>=t);n++);this.preProcessors.splice(n,0,{preProcessor:e,priority:t})},e.prototype.addPostProcessor=function(e,t){var n;for(n=0;n<this.postProcessors.length&&!(this.postProcessors[n].priority>=t);n++);this.postProcessors.splice(n,0,{postProcessor:e,priority:t})},e.prototype.addFileManager=function(e){this.fileManagers.push(e)},e.prototype.getPreProcessors=function(){for(var e=[],t=0;t<this.preProcessors.length;t++)e.push(this.preProcessors[t].preProcessor);return e},e.prototype.getPostProcessors=function(){for(var e=[],t=0;t<this.postProcessors.length;t++)e.push(this.postProcessors[t].postProcessor);return e},e.prototype.getVisitors=function(){return this.visitors},e.prototype.visitor=function(){var e=this;return{first:function(){return e.iterator=-1,e.visitors[e.iterator]},get:function(){return e.iterator+=1,e.visitors[e.iterator]}}},e.prototype.getFileManagers=function(){return this.fileManagers},e}(),At=function(e,t){return!t&&Ct||(Ct=new kt(e)),Ct};var _t,Mt,Pt=function(e){var t=e.match(/^v(\d{1,2})\.(\d{1,2})\.(\d{1,2})(?:-([0-9A-Za-z-.]+))?(?:\+([0-9A-Za-z-.]+))?$/);if(!t)throw new Error("Unable to parse: "+e);return{major:parseInt(t[1],10),minor:parseInt(t[2],10),patch:parseInt(t[3],10),pre:t[4]||"",build:t[5]||""}};function Et(e,t){var n,i,a,o;a=function(e){return function(){function t(e,t){this.root=e,this.imports=t}return t.prototype.toCSS=function(t){var n,i,s={};try{n=It(this.root,t)}catch(e){throw new $(e,this.imports)}try{var a=Boolean(t.compress);a&&r.warn("The compress option has been deprecated. We recommend you use a dedicated css minifier, for instance see less-plugin-clean-css.");var o={compress:a,dumpLineNumbers:t.dumpLineNumbers,strictUnits:Boolean(t.strictUnits),numPrecision:8};if(t.sourceMap){!0===t.sourceMap&&(t.sourceMap={});var l=t.sourceMap;if(!l.sourceMapInputFilename&&t.filename&&(l.sourceMapInputFilename=t.filename),void 0===l.sourceMapBasepath&&t.filename){var u=Math.max(t.filename.lastIndexOf("/"),t.filename.lastIndexOf("\\"));l.sourceMapBasepath=u>=0?t.filename.substring(0,u):"."}if(l.sourceMapFullFilename&&!l.sourceMapFileInline){if(!l.sourceMapFilename&&!l.sourceMapURL){var c=l.sourceMapFullFilename.split(/[/\\]/).pop();l.sourceMapFilename=c}}else if(!l.sourceMapFilename&&!l.sourceMapURL)if(l.sourceMapOutputFilename)l.sourceMapFilename=l.sourceMapOutputFilename+".map";else if(t.filename){var h=t.filename.replace(/\.[^/.]+$/,"");l.sourceMapFilename=h+".css.map"}if(!l.sourceMapOutputFilename)if(t.filename){h=t.filename.replace(/\.[^/.]+$/,"");l.sourceMapOutputFilename=h+".css"}else l.sourceMapOutputFilename="output.css";i=new e(l),s.css=i.toCSS(n,o,this.imports)}else s.css=n.toCSS(o)}catch(e){throw new $(e,this.imports)}if(t.pluginManager)for(var f=t.pluginManager.getPostProcessors(),p=0;p<f.length;p++)s.css=f[p].process(s.css,{sourceMap:i,options:t,imports:this.imports});for(var v in t.sourceMap&&(s.map=i.getExternalSourceMap()),s.imports=[],this.imports.files)Object.prototype.hasOwnProperty.call(this.imports.files,v)&&v!==this.imports.rootFilename&&s.imports.push(v);return s},t}()}(i=function(e,t){return function(){function n(e){this.options=e}return n.prototype.toCSS=function(t,n,i){var r=new e({contentsIgnoredCharsMap:i.contentsIgnoredChars,rootNode:t,contentsMap:i.contents,sourceMapFilename:this.options.sourceMapFilename,sourceMapURL:this.options.sourceMapURL,outputFilename:this.options.sourceMapOutputFilename,sourceMapBasepath:this.options.sourceMapBasepath,sourceMapRootpath:this.options.sourceMapRootpath,outputSourceFiles:this.options.outputSourceFiles,sourceMapGenerator:this.options.sourceMapGenerator,sourceMapFileInline:this.options.sourceMapFileInline,disableSourcemapAnnotation:this.options.disableSourcemapAnnotation}),s=r.toCSS(n);return this.sourceMap=r.sourceMap,this.sourceMapURL=r.sourceMapURL,this.options.sourceMapInputFilename&&(this.sourceMapInputFilename=r.normalizeFilename(this.options.sourceMapInputFilename)),void 0!==this.options.sourceMapBasepath&&void 0!==this.sourceMapURL&&(this.sourceMapURL=r.removeBasepath(this.sourceMapURL)),s+this.getCSSAppendage()},n.prototype.getCSSAppendage=function(){var e=this.sourceMapURL;if(this.options.sourceMapFileInline){if(void 0===this.sourceMap)return"";e="data:application/json;base64,".concat(t.encodeBase64(this.sourceMap))}return this.options.disableSourcemapAnnotation?"":e?"/*# sourceMappingURL=".concat(e," */"):""},n.prototype.getExternalSourceMap=function(){return this.sourceMap},n.prototype.setExternalSourceMap=function(e){this.sourceMap=e},n.prototype.isInline=function(){return this.options.sourceMapFileInline},n.prototype.getSourceMapURL=function(){return this.sourceMapURL},n.prototype.getOutputFilename=function(){return this.options.sourceMapOutputFilename},n.prototype.getInputFilename=function(){return this.sourceMapInputFilename},n}()}(n=function(e){return function(){function t(t){this._css=[],this._rootNode=t.rootNode,this._contentsMap=t.contentsMap,this._contentsIgnoredCharsMap=t.contentsIgnoredCharsMap,t.sourceMapFilename&&(this._sourceMapFilename=t.sourceMapFilename.replace(/\\/g,"/")),this._outputFilename=t.outputFilename?t.outputFilename.replace(/\\/g,"/"):t.outputFilename,this.sourceMapURL=t.sourceMapURL,t.sourceMapBasepath&&(this._sourceMapBasepath=t.sourceMapBasepath.replace(/\\/g,"/")),t.sourceMapRootpath?(this._sourceMapRootpath=t.sourceMapRootpath.replace(/\\/g,"/"),"/"!==this._sourceMapRootpath.charAt(this._sourceMapRootpath.length-1)&&(this._sourceMapRootpath+="/")):this._sourceMapRootpath="",this._outputSourceFiles=t.outputSourceFiles,this._sourceMapGeneratorConstructor=e.getSourceMapGenerator(),this._lineNumber=0,this._column=0}return t.prototype.removeBasepath=function(e){return this._sourceMapBasepath&&0===e.indexOf(this._sourceMapBasepath)&&("\\"!==(e=e.substring(this._sourceMapBasepath.length)).charAt(0)&&"/"!==e.charAt(0)||(e=e.substring(1))),e},t.prototype.normalizeFilename=function(e){return e=e.replace(/\\/g,"/"),e=this.removeBasepath(e),(this._sourceMapRootpath||"")+e},t.prototype.add=function(e,t,n,i){if(e){var r,s,a,o,l;if(t&&t.filename){var u=this._contentsMap[t.filename];if(this._contentsIgnoredCharsMap[t.filename]&&((n-=this._contentsIgnoredCharsMap[t.filename])<0&&(n=0),u=u.slice(this._contentsIgnoredCharsMap[t.filename])),void 0===u)return void this._css.push(e);o=(s=(u=u.substring(0,n)).split("\n"))[s.length-1]}if(a=(r=e.split("\n"))[r.length-1],t&&t.filename)if(i)for(l=0;l<r.length;l++)this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+l+1,column:0===l?this._column:0},original:{line:s.length+l,column:0===l?o.length:0},source:this.normalizeFilename(t.filename)});else this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+1,column:this._column},original:{line:s.length,column:o.length},source:this.normalizeFilename(t.filename)});1===r.length?this._column+=a.length:(this._lineNumber+=r.length-1,this._column=a.length),this._css.push(e)}},t.prototype.isEmpty=function(){return 0===this._css.length},t.prototype.toCSS=function(e){if(this._sourceMapGenerator=new this._sourceMapGeneratorConstructor({file:this._outputFilename,sourceRoot:null}),this._outputSourceFiles)for(var t in this._contentsMap)if(this._contentsMap.hasOwnProperty(t)){var n=this._contentsMap[t];this._contentsIgnoredCharsMap[t]&&(n=n.slice(this._contentsIgnoredCharsMap[t])),this._sourceMapGenerator.setSourceContent(this.normalizeFilename(t),n)}if(this._rootNode.genCSS(e,this),this._css.length>0){var i=void 0,r=JSON.stringify(this._sourceMapGenerator.toJSON());this.sourceMapURL?i=this.sourceMapURL:this._sourceMapFilename&&(i=this._sourceMapFilename),this.sourceMapURL=i,this.sourceMap=r}return this._css.join("")},t}()}(e=new s(e,t)),e)),o=function(e){return function(){function t(e,t,n){this.less=e,this.rootFilename=n.filename,this.paths=t.paths||[],this.contents={},this.contentsIgnoredChars={},this.mime=t.mime,this.error=null,this.context=t,this.queue=[],this.files={}}return t.prototype.push=function(t,n,i,s,a){var o=this,l=this.context.pluginManager.Loader;this.queue.push(t);var u=function(e,n,i){o.queue.splice(o.queue.indexOf(t),1);var l=i===o.rootFilename;s.optional&&e?(a(null,{rules:[]},!1,null),r.info("The file ".concat(i," was skipped because it was not found and the import was marked optional."))):(o.files[i]||s.inline||(o.files[i]={root:n,options:s}),e&&!o.error&&(o.error=e),a(e,n,l,i))},c={rewriteUrls:this.context.rewriteUrls,entryPath:i.entryPath,rootpath:i.rootpath,rootFilename:i.rootFilename},h=e.getFileManager(t,i.currentDirectory,this.context,e);if(h){var f,p,v=function(e){var t,n=e.filename,r=e.contents.replace(/^\uFEFF/,"");c.currentDirectory=h.getPath(n),c.rewriteUrls&&(c.rootpath=h.join(o.context.rootpath||"",h.pathDiff(c.currentDirectory,c.entryPath)),!h.isPathAbsolute(c.rootpath)&&h.alwaysMakePathsAbsolute()&&(c.rootpath=h.join(c.entryPath,c.rootpath))),c.filename=n;var a=new B.Parse(o.context);a.processImports=!1,o.contents[n]=r,(i.reference||s.reference)&&(c.reference=!0),s.isPlugin?(t=l.evalPlugin(r,a,o,s.pluginArgs,c))instanceof $?u(t,null,n):u(null,t,n):s.inline?u(null,r,n):!o.files[n]||o.files[n].options.multiple||s.multiple?new se(a,o,c).parse(r,(function(e,t){u(e,t,n)})):u(null,o.files[n].root,n)},d=_(this.context);n&&(d.ext=s.isPlugin?".js":".less"),s.isPlugin?(d.mime="application/javascript",d.syncImport?f=l.loadPluginSync(t,i.currentDirectory,d,e,h):p=l.loadPlugin(t,i.currentDirectory,d,e,h)):d.syncImport?f=h.loadFileSync(t,i.currentDirectory,d,e):p=h.loadFile(t,i.currentDirectory,d,e,(function(e,t){e?u(e):v(t)})),f?f.filename?v(f):u(f):p&&p.then(v,u)}else u({message:"Could not find a file-manager for ".concat(t)})},t}()}(e);var u,c=function(e,t){var n=function(e,i,r){if("function"==typeof i?(r=i,i=P(this.options,{})):i=P(this.options,i||{}),!r){var s=this;return new Promise((function(t,r){n.call(s,e,i,(function(e,n){e?r(e):t(n)}))}))}this.parse(e,i,(function(e,n,i,s){if(e)return r(e);var a;try{a=new t(n,i).toCSS(s)}catch(e){return r(e)}r(null,a)}))};return n}(0,a),h=function(e,t,n){var i=function(e,t,r){if("function"==typeof t?(r=t,t=P(this.options,{})):t=P(this.options,t||{}),!r){var s=this;return new Promise((function(n,r){i.call(s,e,t,(function(e,t){e?r(e):n(t)}))}))}var a,o=void 0,l=new At(this,!t.reUsePluginManager);if(t.pluginManager=l,a=new B.Parse(t),t.rootFileInfo)o=t.rootFileInfo;else{var u=t.filename||"input",c=u.replace(/[^/\\]*$/,"");(o={filename:u,rewriteUrls:a.rewriteUrls,rootpath:a.rootpath||"",currentDirectory:c,entryPath:c,rootFilename:u}).rootpath&&"/"!==o.rootpath.slice(-1)&&(o.rootpath+="/")}var h=new n(this,a,o);this.importManager=h,t.plugins&&t.plugins.forEach((function(e){var t,n;if(e.fileContent){if(n=e.fileContent.replace(/^\uFEFF/,""),(t=l.Loader.evalPlugin(n,a,h,e.options,e.filename))instanceof $)return r(t)}else l.addPlugin(e)})),new se(a,h,o).parse(e,(function(e,n){if(e)return r(e);r(null,n,h,t)}),t)};return i}(0,0,o),f=Pt("v".concat("4.5.1")),p={version:[f.major,f.minor,f.patch],data:l,tree:Je,Environment:s,AbstractFileManager:Ke,AbstractPluginLoader:He,environment:e,visitors:ee,Parser:se,functions:St(e),contexts:B,SourceMapOutput:n,SourceMapBuilder:i,ParseTree:a,ImportManager:o,render:c,parse:h,LessError:$,transformTree:It,utils:O,PluginManager:At,logger:r},v=function(e){return function(){var t=Object.create(e.prototype);return e.apply(t,Array.prototype.slice.call(arguments,0)),t}},d=Object.create(p);for(var m in p.tree)if("function"==typeof(u=p.tree[m]))d[m.toLowerCase()]=v(u);else for(var g in d[m]=Object.create(null),u)d[m][g.toLowerCase()]=v(u[g]);return p.parse=p.parse.bind(d),p.render=p.render.bind(d),d}var Rt={},Ot=function(){};Ot.prototype=Object.assign(new Ke,{alwaysMakePathsAbsolute:function(){return!0},join:function(e,t){return e?this.extractUrlParts(t,e).path:t},doXHR:function(e,t,n,i){var r=new XMLHttpRequest,s=!_t.isFileProtocol||_t.fileAsync;function a(t,n,i){t.status>=200&&t.status<300?n(t.responseText,t.getResponseHeader("Last-Modified")):"function"==typeof i&&i(t.status,e)}"function"==typeof r.overrideMimeType&&r.overrideMimeType("text/css"),Mt.debug("XHR: Getting '".concat(e,"'")),r.open("GET",e,s),r.setRequestHeader("Accept",t||"text/x-less, text/css; q=0.9, */*; q=0.5"),r.send(null),_t.isFileProtocol&&!_t.fileAsync?0===r.status||r.status>=200&&r.status<300?n(r.responseText):i(r.status,e):s?r.onreadystatechange=function(){4==r.readyState&&a(r,n,i)}:a(r,n,i)},supports:function(){return!0},clearFileCache:function(){Rt={}},loadFile:function(e,t,n){t&&!this.isPathAbsolute(e)&&(e=t+e),e=n.ext?this.tryAppendExtension(e,n.ext):e,n=n||{};var i=this.extractUrlParts(e,window.location.href).url,r=this;return new Promise((function(e,t){if(n.useFileCache&&Rt[i])try{var s=Rt[i];return e({contents:s,filename:i,webInfo:{lastModified:new Date}})}catch(e){return t({filename:i,message:"Error loading file ".concat(i," error was ").concat(e.message)})}r.doXHR(i,n.mime,(function(t,n){Rt[i]=t,e({contents:t,filename:i,webInfo:{lastModified:n}})}),(function(e,n){t({type:"File",message:"'".concat(n,"' wasn't found (").concat(e,")"),href:i})}))}))}});var Ft=function(e,t){return _t=e,Mt=t,Ot},$t=function(e){this.less=e};$t.prototype=Object.assign(new He,{loadPlugin:function(e,t,n,i,r){return new Promise((function(s,a){r.loadFile(e,t,n,i).then(s).catch(a)}))}});var Vt=function(t,i,r){return{add:function(s,a){r.errorReporting&&"html"!==r.errorReporting?"console"===r.errorReporting?function(e,t){var n=e.filename||t,s=[],a="".concat(e.type||"Syntax","Error: ").concat(e.message||"There is an error in your .less file"," in ").concat(n),o=function(e,t,n){void 0!==e.extract[t]&&s.push("{line} {content}".replace(/\{line\}/,(parseInt(e.line,10)||0)+(t-1)).replace(/\{class\}/,n).replace(/\{content\}/,e.extract[t]))};e.line&&(o(e,0,""),o(e,1,"line"),o(e,2,""),a+=" on line ".concat(e.line,", column ").concat(e.column+1,":\n").concat(s.join("\n"))),e.stack&&(e.extract||r.logLevel>=4)&&(a+="\nStack Trace\n".concat(e.stack)),i.logger.error(a)}(s,a):"function"==typeof r.errorReporting&&r.errorReporting("add",s,a):function(i,s){var a,o,l="less-error-message:".concat(e(s||"")),u=t.document.createElement("div"),c=[],h=i.filename||s,f=h.match(/([^/]+(\?.*)?)$/)[1];u.id=l,u.className="less-error-message",o="<h3>".concat(i.type||"Syntax","Error: ").concat(i.message||"There is an error in your .less file")+'</h3><p>in <a href="'.concat(h,'">').concat(f,"</a> ");var p=function(e,t,n){void 0!==e.extract[t]&&c.push('<li><label>{line}</label><pre class="{class}">{content}</pre></li>'.replace(/\{line\}/,(parseInt(e.line,10)||0)+(t-1)).replace(/\{class\}/,n).replace(/\{content\}/,e.extract[t]))};i.line&&(p(i,0,""),p(i,1,"line"),p(i,2,""),o+="on line ".concat(i.line,", column ").concat(i.column+1,":</p><ul>").concat(c.join(""),"</ul>")),i.stack&&(i.extract||r.logLevel>=4)&&(o+="<br/>Stack Trace</br />".concat(i.stack.split("\n").slice(1).join("<br/>"))),u.innerHTML=o,n(t.document,[".less-error-message ul, .less-error-message li {","list-style-type: none;","margin-right: 15px;","padding: 4px 0;","margin: 0;","}",".less-error-message label {","font-size: 12px;","margin-right: 15px;","padding: 4px 0;","color: #cc7777;","}",".less-error-message pre {","color: #dd6666;","padding: 4px 0;","margin: 0;","display: inline-block;","}",".less-error-message pre.line {","color: #ff0000;","}",".less-error-message h3 {","font-size: 20px;","font-weight: bold;","padding: 15px 0 5px 0;","margin: 0;","}",".less-error-message a {","color: #10a","}",".less-error-message .error {","color: red;","font-weight: bold;","padding-bottom: 2px;","border-bottom: 1px dashed red;","}"].join("\n"),{title:"error-message"}),u.style.cssText=["font-family: Arial, sans-serif","border: 1px solid #e00","background-color: #eee","border-radius: 5px","-webkit-border-radius: 5px","-moz-border-radius: 5px","color: #e00","padding: 15px","margin-bottom: 15px"].join(";"),"development"===r.env&&(a=setInterval((function(){var e=t.document,n=e.body;n&&(e.getElementById(l)?n.replaceChild(u,e.getElementById(l)):n.insertBefore(u,n.firstChild),clearInterval(a))}),10))}(s,a)},remove:function(n){r.errorReporting&&"html"!==r.errorReporting?"console"===r.errorReporting||"function"==typeof r.errorReporting&&r.errorReporting("remove",n):function(n){var i=t.document.getElementById("less-error-message:".concat(e(n)));i&&i.parentNode.removeChild(i)}(n)}}},Lt={javascriptEnabled:!1,depends:!1,compress:!1,lint:!1,paths:[],color:!0,strictImports:!1,insecure:!1,rootpath:"",rewriteUrls:!1,math:1,strictUnits:!1,globalVars:null,modifyVars:null,urlArgs:""};if(window.less)for(var jt in window.less)Object.prototype.hasOwnProperty.call(window.less,jt)&&(Lt[jt]=window.less[jt]);!function(e,n){t(n,i(e)),void 0===n.isFileProtocol&&(n.isFileProtocol=/^(file|(chrome|safari)(-extension)?|resource|qrc|app):/.test(e.location.protocol)),n.async=n.async||!1,n.fileAsync=n.fileAsync||!1,n.poll=n.poll||(n.isFileProtocol?1e3:1500),n.env=n.env||("127.0.0.1"==e.location.hostname||"0.0.0.0"==e.location.hostname||"localhost"==e.location.hostname||e.location.port&&e.location.port.length>0||n.isFileProtocol?"development":"production");var r=/!dumpLineNumbers:(comments|mediaquery|all)/.exec(e.location.hash);r&&(n.dumpLineNumbers=r[1]),void 0===n.useFileCache&&(n.useFileCache=!0),void 0===n.onReady&&(n.onReady=!0),n.relativeUrls&&(n.rewriteUrls="all")}(window,Lt),Lt.plugins=Lt.plugins||[],window.LESS_PLUGINS&&(Lt.plugins=Lt.plugins.concat(window.LESS_PLUGINS));var Dt,Nt,Bt,Ut=function(e,i){var r=e.document,s=Et();s.options=i;var a=s.environment,o=Ft(i,s.logger),l=new o;a.addFileManager(l),s.FileManager=o,s.PluginLoader=$t,function(e,t){t.logLevel=void 0!==t.logLevel?t.logLevel:"development"===t.env?3:1,t.loggers||(t.loggers=[{debug:function(e){t.logLevel>=4&&console.log(e)},info:function(e){t.logLevel>=3&&console.log(e)},warn:function(e){t.logLevel>=2&&console.warn(e)},error:function(e){t.logLevel>=1&&console.error(e)}}]);for(var n=0;n<t.loggers.length;n++)e.logger.addListener(t.loggers[n])}(s,i);var u=Vt(e,s,i),c=s.cache=i.cache||function(e,t,n){var i=null;if("development"!==t.env)try{i=void 0===e.localStorage?null:e.localStorage}catch(e){}return{setCSS:function(e,t,r,s){if(i){n.info("saving ".concat(e," to cache."));try{i.setItem(e,s),i.setItem("".concat(e,":timestamp"),t),r&&i.setItem("".concat(e,":vars"),JSON.stringify(r))}catch(t){n.error('failed to save "'.concat(e,'" to local storage for caching.'))}}},getCSS:function(e,t,n){var r=i&&i.getItem(e),s=i&&i.getItem("".concat(e,":timestamp")),a=i&&i.getItem("".concat(e,":vars"));if(n=n||{},a=a||"{}",s&&t.lastModified&&new Date(t.lastModified).valueOf()===new Date(s).valueOf()&&JSON.stringify(n)===a)return r}}}(e,i,s.logger);!function(){function e(){throw{type:"Runtime",message:"Image size functions are not supported in browser version of less"}}var t={"image-size":function(t){return e(),-1},"image-width":function(t){return e(),-1},"image-height":function(t){return e(),-1}};te.addMultiple(t)}(s.environment),i.functions&&s.functions.functionRegistry.addMultiple(i.functions);var h=/^text\/(x-)?less$/;function f(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function p(e,t){var n=Array.prototype.slice.call(arguments,2);return function(){var i=n.concat(Array.prototype.slice.call(arguments,0));return e.apply(t,i)}}function v(e){for(var t,n=r.getElementsByTagName("style"),a=0;a<n.length;a++)if((t=n[a]).type.match(h)){var o=f(i);o.modifyVars=e;var l=t.innerHTML||"";o.filename=r.location.href.replace(/#.*$/,""),s.render(l,o,p((function(e,t,n){t?u.add(t,"inline"):(e.type="text/css",e.styleSheet?e.styleSheet.cssText=n.css:e.innerHTML=n.css)}),null,t))}}function d(e,n,r,o,h){var p=f(i);t(p,e),p.mime=e.type,h&&(p.modifyVars=h),l.loadFile(e.href,null,p,a).then((function(t){!function(t){var i=t.contents,a=t.filename,h=t.webInfo,f={currentDirectory:l.getPath(a),filename:a,rootFilename:a,rewriteUrls:p.rewriteUrls};if(f.entryPath=f.currentDirectory,f.rootpath=p.rootpath||f.currentDirectory,h){h.remaining=o;var v=c.getCSS(a,h,p.modifyVars);if(!r&&v)return h.local=!0,void n(null,v,i,e,h,a)}u.remove(a),p.rootFileInfo=f,s.render(i,p,(function(t,r){t?(t.href=a,n(t)):(c.setCSS(e.href,h.lastModified,p.modifyVars,r.css),n(null,r.css,i,e,h,a))}))}(t)})).catch((function(e){console.log(e),n(e)}))}function m(e,t,n){for(var i=0;i<s.sheets.length;i++)d(s.sheets[i],e,t,s.sheets.length-(i+1),n)}return s.watch=function(){return s.watchMode||(s.env="development","development"===s.env&&(s.watchTimer=setInterval((function(){s.watchMode&&(l.clearFileCache(),m((function(t,i,r,s,a){t?u.add(t,t.href||s.href):i&&n(e.document,i,s)})))}),i.poll))),this.watchMode=!0,!0},s.unwatch=function(){return clearInterval(s.watchTimer),this.watchMode=!1,!1},s.registerStylesheetsImmediately=function(){var e=r.getElementsByTagName("link");s.sheets=[];for(var t=0;t<e.length;t++)("stylesheet/less"===e[t].rel||e[t].rel.match(/stylesheet/)&&e[t].type.match(h))&&s.sheets.push(e[t])},s.registerStylesheets=function(){return new Promise((function(e){s.registerStylesheetsImmediately(),e()}))},s.modifyVars=function(e){return s.refresh(!0,e,!1)},s.refresh=function(t,i,r){return(t||r)&&!1!==r&&l.clearFileCache(),new Promise((function(r,a){var o,l,c,h;o=l=new Date,0===(h=s.sheets.length)?(l=new Date,c=l-o,s.logger.info("Less has finished and no sheets were loaded."),r({startTime:o,endTime:l,totalMilliseconds:c,sheets:s.sheets.length})):m((function(t,i,f,p,v){if(t)return u.add(t,t.href||p.href),void a(t);v.local?s.logger.info("Loading ".concat(p.href," from cache.")):s.logger.info("Rendered ".concat(p.href," successfully.")),n(e.document,i,p),s.logger.info("CSS for ".concat(p.href," generated in ").concat(new Date-l,"ms")),0===--h&&(c=new Date-o,s.logger.info("Less has finished. CSS generated in ".concat(c,"ms")),r({startTime:o,endTime:l,totalMilliseconds:c,sheets:s.sheets.length})),l=new Date}),t,i),v(i)}))},s.refreshStyles=v,s}(window,Lt);function qt(e){e.filename&&console.warn(e),Lt.async||Nt.removeChild(Bt)}return window.less=Ut,Lt.onReady&&(/!watch/.test(window.location.hash)&&Ut.watch(),Lt.async||(Dt="body { display: none !important }",Nt=document.head||document.getElementsByTagName("head")[0],(Bt=document.createElement("style")).type="text/css",Bt.styleSheet?Bt.styleSheet.cssText=Dt:Bt.appendChild(document.createTextNode(Dt)),Nt.appendChild(Bt)),Ut.registerStylesheetsImmediately(),Ut.pageLoadFinished=Ut.refresh("development"===Ut.env).then(qt,qt)),Ut}));
10
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).less=t()}(this,(function(){"use strict";function e(e){return e.replace(/^[a-z-]+:\/+?[^/]+/,"").replace(/[?&]livereload=\w+/,"").replace(/^\//,"").replace(/\.[a-zA-Z]+$/,"").replace(/[^.\w-]+/g,"-").replace(/\./g,":")}function t(e,t){if(t)for(const i in t.dataset)if(Object.prototype.hasOwnProperty.call(t.dataset,i))if("env"===i||"dumpLineNumbers"===i||"rootpath"===i||"errorReporting"===i)e[i]=t.dataset[i];else try{e[i]=JSON.parse(t.dataset[i])}catch(e){}}var i=function(t,i,n){const s=n.href||"",r="less:"+(n.title||e(s)),o=t.getElementById(r);let a=!1;const l=t.createElement("style");l.setAttribute("type","text/css"),n.media&&l.setAttribute("media",n.media),l.id=r,l.styleSheet||(l.appendChild(t.createTextNode(i)),a=null!==o&&o.childNodes.length>0&&l.childNodes.length>0&&o.firstChild.nodeValue===l.firstChild.nodeValue);const u=t.getElementsByTagName("head")[0];if(null===o||!1===a){const e=n&&n.nextSibling||null;e?e.parentNode.insertBefore(l,e):u.appendChild(l)}if(o&&!1===a&&o.parentNode.removeChild(o),l.styleSheet)try{l.styleSheet.cssText=i}catch(e){throw new Error("Couldn't reassign styleSheet.cssText.")}},n=function(e){const t=e.document;return t.currentScript||(()=>{const e=t.getElementsByTagName("script");return e[e.length-1]})()},s={error:function(e){this._fireEvent("error",e)},warn:function(e){this._fireEvent("warn",e)},info:function(e){this._fireEvent("info",e)},debug:function(e){this._fireEvent("debug",e)},addListener:function(e){this._listeners.push(e)},removeListener:function(e){for(let t=0;t<this._listeners.length;t++)if(this._listeners[t]===e)return void this._listeners.splice(t,1)},_fireEvent:function(e,t){for(let i=0;i<this._listeners.length;i++){const n=this._listeners[i][e];n&&n(t)}},_listeners:[]};class r{constructor(e,t){this.fileManagers=t||[],e=e||{};const i=[],n=i.concat(["encodeBase64","mimeLookup","charsetLookup","getSourceMapGenerator"]);for(let t=0;t<n.length;t++){const s=n[t],r=e[s];r?this[s]=r.bind(e):t<i.length&&this.warn("missing required function in environment - "+s)}}getFileManager(e,t,i,n,r){e||s.warn("getFileManager called with no filename.. Please report this issue. continuing."),void 0===t&&s.warn("getFileManager called with null directory.. Please report this issue. continuing.");let o=this.fileManagers;i.pluginManager&&(o=[].concat(o).concat(i.pluginManager.getFileManagers()));for(let s=o.length-1;s>=0;s--){const a=o[s];if(a[r?"supportsSync":"supports"](e,t,i,n))return a}return null}addFileManager(e){this.fileManagers.push(e)}clearFileManagers(){this.fileManagers=[]}}var o={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},a={length:{m:1,cm:.01,mm:.001,in:.0254,px:.0254/96,pt:.0254/72,pc:.0254/72*12},duration:{s:1,ms:.001},angle:{rad:1/(2*Math.PI),deg:1/360,grad:1/400,turn:1}},l={colors:o,unitConversions:a};class u{get type(){return""}constructor(){this.parent=null,this.visibilityBlocks=void 0,this.nodeVisible=void 0,this.rootNode=null,this.parsed=null,this.value=void 0,this._index=void 0,this._fileInfo=void 0}get currentFileInfo(){return this.fileInfo()}get index(){return this.getIndex()}setParent(e,t){function i(e){e&&e instanceof u&&(e.parent=t)}Array.isArray(e)?e.forEach(i):i(e)}getIndex(){return this._index||this.parent&&this.parent.getIndex()||0}fileInfo(){return this._fileInfo||this.parent&&this.parent.fileInfo()||{}}isRulesetLike(){return!1}toCSS(e){const t=[];return this.genCSS(e,{add:function(e,i,n){t.push(e)},isEmpty:function(){return 0===t.length}}),t.join("")}genCSS(e,t){t.add(this.value)}accept(e){this.value=e.visit(this.value)}eval(e){return this}_operate(e,t,i,n){switch(t){case"+":return i+n;case"-":return i-n;case"*":return i*n;case"/":return i/n}}fround(e,t){const i=e&&e.numPrecision;return i?Number((t+2e-16).toFixed(i)):t}static compare(e,t){if(e.compare&&"Quoted"!==t.type&&"Anonymous"!==t.type)return e.compare(t);if(t.compare)return-t.compare(e);if(e.type!==t.type)return;let i=e.value,n=t.value;if(!Array.isArray(i))return i===n?0:void 0;if(Array.isArray(n)&&i.length===n.length){for(let e=0;e<i.length;e++)if(0!==u.compare(i[e],n[e]))return;return 0}}static numericCompare(e,t){return e<t?-1:e===t?0:e>t?1:void 0}blocksVisibility(){return void 0===this.visibilityBlocks&&(this.visibilityBlocks=0),0!==this.visibilityBlocks}addVisibilityBlock(){void 0===this.visibilityBlocks&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks+1}removeVisibilityBlock(){void 0===this.visibilityBlocks&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks-1}ensureVisibility(){this.nodeVisible=!0}ensureInvisibility(){this.nodeVisible=!1}isVisible(){return this.nodeVisible}visibilityInfo(){return{visibilityBlocks:this.visibilityBlocks,nodeVisible:this.nodeVisible}}copyVisibilityInfo(e){e&&(this.visibilityBlocks=e.visibilityBlocks,this.nodeVisible=e.nodeVisible)}}u.prototype.parse=void 0;class c extends u{get type(){return"Color"}constructor(e,t,i){super();const n=this;Array.isArray(e)?this.rgb=e:e.length>=6?(this.rgb=[],e.match(/.{2}/g).map((function(e,t){t<3?n.rgb.push(parseInt(e,16)):n.alpha=parseInt(e,16)/255}))):(this.rgb=[],e.split("").map((function(e,t){t<3?n.rgb.push(parseInt(e+e,16)):n.alpha=parseInt(e+e,16)/255}))),void 0===this.alpha&&(this.alpha="number"==typeof t?t:1),void 0!==i&&(this.value=i)}luma(){let e=this.rgb[0]/255,t=this.rgb[1]/255,i=this.rgb[2]/255;return e=e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4),t=t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4),i=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),.2126*e+.7152*t+.0722*i}genCSS(e,t){t.add(this.toCSS(e))}toCSS(e,t){const i=e&&e.compress&&!t;let n,s,r,o=[];if(s=this.fround(e,this.alpha),this.value)if(0===this.value.indexOf("rgb"))s<1&&(r="rgba");else{if(0!==this.value.indexOf("hsl"))return this.value;r=s<1?"hsla":"hsl"}else s<1&&(r="rgba");switch(r){case"rgba":o=this.rgb.map((function(e){return h(Math.round(e),255)})).concat(h(s,1));break;case"hsla":o.push(h(s,1));case"hsl":n=this.toHSL(),o=[this.fround(e,n.h),this.fround(e,100*n.s)+"%",this.fround(e,100*n.l)+"%"].concat(o)}if(r)return`${r}(${o.join(","+(i?"":" "))})`;if(n=this.toRGB(),i){const e=n.split("");e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]&&(n=`#${e[1]}${e[3]}${e[5]}`)}return n}operate(e,t,i){const n=new Array(3),s=this.alpha*(1-i.alpha)+i.alpha;for(let s=0;s<3;s++)n[s]=this._operate(e,t,this.rgb[s],i.rgb[s]);return new c(n,s)}toRGB(){return f(this.rgb)}toHSL(){const e=this.rgb[0]/255,t=this.rgb[1]/255,i=this.rgb[2]/255,n=this.alpha,s=Math.max(e,t,i),r=Math.min(e,t,i);let o,a;const l=(s+r)/2,u=s-r;if(s===r)o=a=0;else{switch(a=l>.5?u/(2-s-r):u/(s+r),s){case e:o=(t-i)/u+(t<i?6:0);break;case t:o=(i-e)/u+2;break;case i:o=(e-t)/u+4}o/=6}return{h:360*o,s:a,l:l,a:n}}toHSV(){const e=this.rgb[0]/255,t=this.rgb[1]/255,i=this.rgb[2]/255,n=this.alpha,s=Math.max(e,t,i),r=Math.min(e,t,i);let o,a;const l=s,u=s-r;if(a=0===s?0:u/s,s===r)o=0;else{switch(s){case e:o=(t-i)/u+(t<i?6:0);break;case t:o=(i-e)/u+2;break;case i:o=(e-t)/u+4}o/=6}return{h:360*o,s:a,v:l,a:n}}toARGB(){return f([255*this.alpha].concat(this.rgb))}compare(e){return e.rgb&&e.rgb[0]===this.rgb[0]&&e.rgb[1]===this.rgb[1]&&e.rgb[2]===this.rgb[2]&&e.alpha===this.alpha?0:void 0}static fromKeyword(e){let t;const i=e.toLowerCase();if(o.hasOwnProperty(i)?t=new c(o[i].slice(1)):"transparent"===i&&(t=new c([0,0,0],0)),t)return t.value=e,t}}function h(e,t){return Math.min(Math.max(e,0),t)}function f(e){return"#"+e.map((function(e){return((e=h(Math.round(e),255))<16?"0":"")+e.toString(16)})).join("")}class p extends u{get type(){return"Paren"}constructor(e){super(),this.value=e,this.noSpacing=void 0}genCSS(e,t){t.add("("),this.value.genCSS(e,t),t.add(")")}eval(e){const t=new p(this.value.eval(e));return this.noSpacing&&(t.noSpacing=!0),t}}const d={"":!0," ":!0,"|":!0};class m extends u{get type(){return"Combinator"}constructor(e){super()," "===e?(this.value=" ",this.emptyOrWhitespace=!0):(this.value=e?e.trim():"",this.emptyOrWhitespace=""===this.value)}genCSS(e,t){const i=e.compress||d[this.value]?"":" ";t.add(i+this.value+i)}}class g extends u{get type(){return"Element"}constructor(e,t,i,n,s,r){super(),this.combinator=e instanceof m?e:new m(e),this.value="string"==typeof t?t.trim():t||"",this.isVariable=i,this._index=n,this._fileInfo=s,this.copyVisibilityInfo(r),this.setParent(this.combinator,this)}accept(e){const t=this.value;this.combinator=e.visit(this.combinator),"object"==typeof t&&(this.value=e.visit(t))}eval(e){return new g(this.combinator,this.value.eval?this.value.eval(e):this.value,this.isVariable,this.getIndex(),this.fileInfo(),this.visibilityInfo())}clone(){return new g(this.combinator,this.value,this.isVariable,this.getIndex(),this.fileInfo(),this.visibilityInfo())}genCSS(e,t){t.add(this.toCSS(e),this.fileInfo(),this.getIndex())}toCSS(e){const t=e||{};let i=this.value;const n=t.firstSelector;return i instanceof p&&(t.firstSelector=!0),i=i.toCSS?i.toCSS(t):i,t.firstSelector=n,""===i&&"&"===this.combinator.value.charAt(0)?"":this.combinator.toCSS(t)+i}}const v={ALWAYS:0,PARENS_DIVISION:1,PARENS:2},y=0,b=1,w=2;function x(e){return Object.prototype.toString.call(e).slice(8,-1)}function S(e){return"Array"===x(e)}function I(e,t={}){if(S(e))return e.map(e=>I(e,t));if(!function(e){if("Object"!==x(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(e))return e;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce((i,n)=>{if(S(t.props)&&!t.props.includes(n))return i;return function(e,t,i,n,s){const r={}.propertyIsEnumerable.call(n,t)?"enumerable":"nonenumerable";"enumerable"===r&&(e[t]=i),s&&"nonenumerable"===r&&Object.defineProperty(e,t,{value:i,enumerable:!1,writable:!0,configurable:!0})}(i,n,I(e[n],t),e,t.nonenumerable),i},{})}function C(e,t){let i=e+1,n=null,s=-1;for(;--i>=0&&"\n"!==t.charAt(i);)s++;return"number"==typeof e&&(n=(t.slice(0,e).match(/\n/g)||"").length),{line:n,column:s}}function k(e){let t;const i=e.length,n=new Array(i);for(t=0;t<i;t++)n[t]=e[t];return n}function A(e){const t={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}function _(e,t){let i=t||{};if(!t._defaults){i={};const n=I(e);i._defaults=n;const s=t?I(t):{};Object.assign(i,n,s)}return i}function $(e,t){if(t&&t._defaults)return t;const i=_(e,t);if(i.strictMath&&(i.math=v.PARENS),i.relativeUrls&&(i.rewriteUrls=w),"string"==typeof i.math)switch(i.math.toLowerCase()){case"always":i.math=v.ALWAYS;break;case"parens-division":i.math=v.PARENS_DIVISION;break;case"strict":case"parens":i.math=v.PARENS;break;default:i.math=v.PARENS}if("string"==typeof i.rewriteUrls)switch(i.rewriteUrls.toLowerCase()){case"off":i.rewriteUrls=y;break;case"local":i.rewriteUrls=b;break;case"all":i.rewriteUrls=w}return i}function M(e,t=[]){for(let i=0,n=e.length;i<n;i++){const n=e[i];Array.isArray(n)?M(n,t):void 0!==n&&t.push(n)}return t}function E(e){return null==e}var P=Object.freeze({__proto__:null,getLocation:C,copyArray:k,clone:A,defaults:_,copyOptions:$,merge:function(e,t){for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},flattenArray:M,isNullOrUndefined:E});const R=/(<anonymous>|Function):(\d+):(\d+)/,F=function(e,t,i){Error.call(this);const n=e.filename||i;if(this.message=e.message,this.stack=e.stack,this.type=e.type||"Syntax",t&&n){const i=t.contents[n],r=C(e.index,i);var s=r.line;const o=r.column,a=e.call&&C(e.call,i).line,l=i?i.split("\n"):"";if(this.filename=n,this.index=e.index,this.line="number"==typeof s?s+1:null,this.column=o,!this.line&&this.stack){const t=this.stack.match(R),i=new Function("a","throw new Error()");let n=0;try{i()}catch(e){const t=e.stack.match(R);n=1-parseInt(t[2])}t&&(t[2]&&(this.line=parseInt(t[2])+n),t[3]&&(this.column=parseInt(t[3])))}this.callLine=a+1,this.callExtract=l[a],this.extract=[l[this.line-2],l[this.line-1],l[this.line]]}};if(void 0===Object.create){const e=function(){};e.prototype=Error.prototype,F.prototype=new e}else F.prototype=Object.create(Error.prototype);F.prototype.constructor=F,F.prototype.toString=function(e){e=e||{};const t=(this.type??"").toLowerCase().includes("warning"),i=t?this.type:this.type+"Error",n=t?"yellow":"red";let s="";const r=this.extract||[];let o=[],a=function(e){return e};if(e.stylize){const t=typeof e.stylize;if("function"!==t)throw Error(`options.stylize should be a function, got a ${t}!`);a=e.stylize}if(null!==this.line){if(t||"string"!=typeof r[0]||o.push(a(`${this.line-1} ${r[0]}`,"grey")),"string"==typeof r[1]){let e=this.line+" ";r[1]&&(e+=r[1].slice(0,this.column)+a(a(a(r[1].slice(this.column,this.column+1),"bold")+r[1].slice(this.column+1),"red"),"inverse")),o.push(e)}t||"string"!=typeof r[2]||o.push(a(`${this.line+1} ${r[2]}`,"grey")),o=o.join("\n")+a("","reset")+"\n"}return s+=a(`${i}: ${this.message}`,n),this.filename&&(s+=a(" in ",n)+this.filename),this.line&&(s+=a(` on line ${this.line}, column ${this.column+1}:`,"grey")),s+="\n"+o,this.callLine&&(s+=a("from ",n)+(this.filename||"")+"/n",s+=`${a(this.callLine,"grey")} ${this.callExtract}/n`),s};const O={visitDeeper:!0};let V=!1;function L(e){return e}class D{constructor(e){this._implementation=e,this._visitInCache={},this._visitOutCache={},V||(!function e(t,i){let n,s;for(n in t)switch(s=t[n],typeof s){case"function":s.prototype&&s.prototype.type&&(s.prototype.typeIndex=i++);break;case"object":i=e(s,i)}return i}(ze,1),V=!0)}visit(e){if(!e)return e;const t=e.typeIndex;if(!t)return e.value&&e.value.typeIndex&&this.visit(e.value),e;const i=this._implementation;let n=this._visitInCache[t],s=this._visitOutCache[t];const r=O;let o;if(r.visitDeeper=!0,n||(o="visit"+e.type,n=i[o]||L,s=i[o+"Out"]||L,this._visitInCache[t]=n,this._visitOutCache[t]=s),n!==L){const t=n.call(i,e,r);e&&i.isReplacing&&(e=t)}if(r.visitDeeper&&e)if(e.length)for(let t=0,i=e.length;t<i;t++)e[t].accept&&e[t].accept(this);else e.accept&&e.accept(this);return s!=L&&s.call(i,e),e}visitArray(e,t){if(!e)return e;const i=e.length;let n;if(t||!this._implementation.isReplacing){for(n=0;n<i;n++)this.visit(e[n]);return e}const s=[];for(n=0;n<i;n++){const t=this.visit(e[n]);void 0!==t&&(t.splice?t.length&&this.flatten(t,s):s.push(t))}return s}flatten(e,t){let i,n,s,r,o,a;for(t||(t=[]),n=0,i=e.length;n<i;n++)if(s=e[n],void 0!==s)if(s.splice)for(o=0,r=s.length;o<r;o++)a=s[o],void 0!==a&&(a.splice?a.length&&this.flatten(a,t):t.push(a));else t.push(s);return t}}const N={},B=function(e,t,i){if(e)for(let n=0;n<i.length;n++)Object.prototype.hasOwnProperty.call(e,i[n])&&(t[i[n]]=e[i[n]])},U=["paths","rewriteUrls","rootpath","strictImports","insecure","dumpLineNumbers","compress","syncImport","mime","useFileCache","processImports","pluginManager","quiet","quietDeprecations"];N.Parse=function(e){B(e,this,U),"string"==typeof this.paths&&(this.paths=[this.paths])};const j=["paths","compress","math","strictUnits","sourceMap","importMultiple","urlArgs","javascriptEnabled","pluginManager","importantScope","rewriteUrls"];function q(e){return!/^(?:[a-z-]+:|\/|#)/i.test(e)}function T(e){return"."===e.charAt(0)}N.Eval=function(e,t){B(e,this,j),"string"==typeof this.paths&&(this.paths=[this.paths]),this.frames=t||[],this.importantScope=this.importantScope||[]},N.Eval.prototype.enterCalc=function(){this.calcStack||(this.calcStack=[]),this.calcStack.push(!0),this.inCalc=!0},N.Eval.prototype.exitCalc=function(){this.calcStack.pop(),this.calcStack.length||(this.inCalc=!1)},N.Eval.prototype.inParenthesis=function(){this.parensStack||(this.parensStack=[]),this.parensStack.push(!0)},N.Eval.prototype.outOfParenthesis=function(){this.parensStack.pop()},N.Eval.prototype.inCalc=!1,N.Eval.prototype.mathOn=!0,N.Eval.prototype.isMathOn=function(e){return!!this.mathOn&&(!!("/"!==e||this.math===v.ALWAYS||this.parensStack&&this.parensStack.length)&&(!(this.math>v.PARENS_DIVISION)||this.parensStack&&this.parensStack.length))},N.Eval.prototype.pathRequiresRewrite=function(e){return(this.rewriteUrls===b?T:q)(e)},N.Eval.prototype.rewritePath=function(e,t){let i;return t=t||"",i=this.normalizePath(t+e),T(e)&&q(t)&&!1===T(i)&&(i="./"+i),i},N.Eval.prototype.normalizePath=function(e){const t=e.split("/").reverse();let i;for(e=[];0!==t.length;)switch(i=t.pop(),i){case".":break;case"..":0===e.length||".."===e[e.length-1]?e.push(i):e.pop();break;default:e.push(i)}return e.join("/")};class z{constructor(e){this.imports=[],this.variableImports=[],this._onSequencerEmpty=e,this._currentDepth=0}addImport(e){const t=this,i={callback:e,args:null,isReady:!1};return this.imports.push(i),function(){i.args=Array.prototype.slice.call(arguments,0),i.isReady=!0,t.tryRun()}}addVariableImport(e){this.variableImports.push(e)}tryRun(){this._currentDepth++;try{for(;;){for(;this.imports.length>0;){const e=this.imports[0];if(!e.isReady)return;this.imports=this.imports.slice(1),e.callback.apply(null,e.args)}if(0===this.variableImports.length)break;const e=this.variableImports[0];this.variableImports=this.variableImports.slice(1),e()}}finally{this._currentDepth--}0===this._currentDepth&&this._onSequencerEmpty&&this._onSequencerEmpty()}}const G=function(e,t){this._visitor=new D(this),this._importer=e,this._finish=t,this.context=new N.Eval,this.importCount=0,this.onceFileDetectionMap={},this.recursionDetector={},this._sequencer=new z(this._onSequencerEmpty.bind(this))};G.prototype={isReplacing:!1,run:function(e){try{this._visitor.visit(e)}catch(e){this.error=e}this.isFinished=!0,this._sequencer.tryRun()},_onSequencerEmpty:function(){this.isFinished&&this._finish(this.error)},visitImport:function(e,t){const i=e.options.inline;if(!e.css||i){const t=new N.Eval(this.context,k(this.context.frames)),i=t.frames[0];this.importCount++,e.isVariableImport()?this._sequencer.addVariableImport(this.processImportNode.bind(this,e,t,i)):this.processImportNode(e,t,i)}t.visitDeeper=!1},processImportNode:function(e,t,i){let n;const s=e.options.inline;try{n=e.evalForImport(t)}catch(t){t.filename||(t.index=e.getIndex(),t.filename=e.fileInfo().filename),e.css=!0,e.error=t}if(!n||n.css&&!s)this.importCount--,this.isFinished&&this._sequencer.tryRun();else{n.options.multiple&&(t.importMultiple=!0);const s=void 0===n.css;for(let t=0;t<i.rules.length;t++)if(i.rules[t]===e){i.rules[t]=n;break}const r=this.onImported.bind(this,n,t),o=this._sequencer.addImport(r);this._importer.push(n.getPath(),s,n.fileInfo(),n.options,o)}},onImported:function(e,t,i,n,s,r){i&&(i.filename||(i.index=e.getIndex(),i.filename=e.fileInfo().filename),this.error=i);const o=this,a=e.options.inline,l=e.options.isPlugin,u=e.options.optional,c=s||r in o.recursionDetector;if(t.importMultiple||(e.skip=!!c||function(){return r in o.onceFileDetectionMap||(o.onceFileDetectionMap[r]=!0,!1)}),!r&&u&&(e.skip=!0),n&&(e.root=n,e.importedFilename=r,!a&&!l&&(t.importMultiple||!c))){o.recursionDetector[r]=!0;const e=this.context;this.context=t;try{this._visitor.visit(n)}catch(i){this.error=i}this.context=e}o.importCount--,o.isFinished&&o._sequencer.tryRun()},visitDeclaration:function(e,t){"DetachedRuleset"===e.value.type?this.context.frames.unshift(e):t.visitDeeper=!1},visitDeclarationOut:function(e){"DetachedRuleset"===e.value.type&&this.context.frames.shift()},visitAtRule:function(e,t){e.value?this.context.frames.unshift(e):e.declarations&&e.declarations.length?e.isRooted?this.context.frames.unshift(e):this.context.frames.unshift(e.declarations[0]):e.rules&&e.rules.length&&this.context.frames.unshift(e)},visitAtRuleOut:function(e){this.context.frames.shift()},visitMixinDefinition:function(e,t){this.context.frames.unshift(e)},visitMixinDefinitionOut:function(e){this.context.frames.shift()},visitRuleset:function(e,t){this.context.frames.unshift(e)},visitRulesetOut:function(e){this.context.frames.shift()},visitMedia:function(e,t){this.context.frames.unshift(e.rules[0])},visitMediaOut:function(e){this.context.frames.shift()}};class W{constructor(){this._visitor=new D(this),this.contexts=[],this.allExtendsStack=[[]]}run(e){return(e=this._visitor.visit(e)).allExtends=this.allExtendsStack[0],e}visitDeclaration(e,t){t.visitDeeper=!1}visitMixinDefinition(e,t){t.visitDeeper=!1}visitRuleset(e,t){if(e.root)return;let i,n,s;const r=[];let o;const a=e.rules,l=a?a.length:0;for(i=0;i<l;i++)e.rules[i]instanceof ze.Extend&&(r.push(a[i]),e.extendOnEveryPath=!0);const u=e.paths;for(i=0;i<u.length;i++){const t=u[i],a=t[t.length-1].extendList;for(o=a?k(a).concat(r):r,o&&(o=o.map((function(e){return e.clone()}))),n=0;n<o.length;n++)this.foundExtends=!0,s=o[n],s.findSelfSelectors(t),s.ruleset=e,0===n&&(s.firstExtendOnThisSelectorPath=!0),this.allExtendsStack[this.allExtendsStack.length-1].push(s)}this.contexts.push(e.selectors)}visitRulesetOut(e){e.root||(this.contexts.length=this.contexts.length-1)}visitMedia(e,t){e.allExtends=[],this.allExtendsStack.push(e.allExtends)}visitMediaOut(e){this.allExtendsStack.length=this.allExtendsStack.length-1}visitAtRule(e,t){e.allExtends=[],this.allExtendsStack.push(e.allExtends)}visitAtRuleOut(e){this.allExtendsStack.length=this.allExtendsStack.length-1}}function J(e){return`/* line ${e.debugInfo.lineNumber}, ${e.debugInfo.fileName} */\n`}function K(e){let t=e.debugInfo.fileName;return/^[a-z]+:\/\//i.test(t)||(t="file://"+t),`@media -sass-debug-info{filename{font-family:${t.replace(/([.:/\\])/g,(function(e){return"\\"==e&&(e="/"),"\\"+e}))}}line{font-family:\\00003${e.debugInfo.lineNumber}}}\n`}function H(e,t,i){let n="";if(e.dumpLineNumbers&&!e.compress)switch(e.dumpLineNumbers){case"comments":n=J(t);break;case"mediaquery":n=K(t);break;case"all":n=J(t)+(i||"")+K(t)}return n}class Q extends u{get type(){return"Comment"}constructor(e,t,i,n){super(),this.value=e,this.isLineComment=t,this._index=i,this._fileInfo=n,this.allowRoot=!0,this.debugInfo=void 0}genCSS(e,t){this.debugInfo&&t.add(H(e,this),this.fileInfo(),this.getIndex()),t.add(this.value)}isSilent(e){const t=e.compress&&"!"!==this.value[2];return this.isLineComment||t}}class Z extends u{get type(){return"Unit"}constructor(e,t,i){super(),this.numerator=e?k(e).sort():[],this.denominator=t?k(t).sort():[],i?this.backupUnit=i:e&&e.length&&(this.backupUnit=e[0])}clone(){return new Z(k(this.numerator),k(this.denominator),this.backupUnit)}genCSS(e,t){const i=e&&e.strictUnits;1===this.numerator.length?t.add(this.numerator[0]):!i&&this.backupUnit?t.add(this.backupUnit):!i&&this.denominator.length&&t.add(this.denominator[0])}toString(){let e,t=this.numerator.join("*");for(e=0;e<this.denominator.length;e++)t+="/"+this.denominator[e];return t}compare(e){return this.is(e.toString())?0:void 0}is(e){return this.toString().toUpperCase()===e.toUpperCase()}isLength(){return RegExp("^(px|em|ex|ch|rem|in|cm|mm|pc|pt|ex|vw|vh|vmin|vmax)$","gi").test(this.toCSS({}))}isEmpty(){return 0===this.numerator.length&&0===this.denominator.length}isSingular(){return this.numerator.length<=1&&0===this.denominator.length}map(e){let t;for(t=0;t<this.numerator.length;t++)this.numerator[t]=e(this.numerator[t],!1);for(t=0;t<this.denominator.length;t++)this.denominator[t]=e(this.denominator[t],!0)}usedUnits(){let e;const t={};let i,n;for(n in i=function(i){return e.hasOwnProperty(i)&&!t[n]&&(t[n]=i),i},a)a.hasOwnProperty(n)&&(e=a[n],this.map(i));return t}cancel(){const e={};let t,i;for(i=0;i<this.numerator.length;i++)t=this.numerator[i],e[t]=(e[t]||0)+1;for(i=0;i<this.denominator.length;i++)t=this.denominator[i],e[t]=(e[t]||0)-1;for(t in this.numerator=[],this.denominator=[],e)if(e.hasOwnProperty(t)){const n=e[t];if(n>0)for(i=0;i<n;i++)this.numerator.push(t);else if(n<0)for(i=0;i<-n;i++)this.denominator.push(t)}this.numerator.sort(),this.denominator.sort()}}class X extends u{get type(){return"Dimension"}constructor(e,t){if(super(),this.value=parseFloat(e),isNaN(this.value))throw new Error("Dimension is not a number.");this.unit=t&&t instanceof Z?t:new Z(t?[t]:void 0),this.setParent(this.unit,this)}accept(e){this.unit=e.visit(this.unit)}eval(e){return this}toColor(){const e=this.value;return new c([e,e,e])}genCSS(e,t){if(e&&e.strictUnits&&!this.unit.isSingular())throw new Error("Multiple units in dimension. Correct the units or use the unit function. Bad unit: "+this.unit.toString());const i=this.fround(e,this.value);let n=String(i);if(0!==i&&i<1e-6&&i>-1e-6&&(n=i.toFixed(20).replace(/0+$/,"")),e&&e.compress){if(0===i&&this.unit.isLength())return void t.add(n);i>0&&i<1&&(n=n.slice(1))}t.add(n),this.unit.genCSS(e,t)}operate(e,t,i){let n=this._operate(e,t,this.value,i.value),s=this.unit.clone();if("+"===t||"-"===t)if(0===s.numerator.length&&0===s.denominator.length)s=i.unit.clone(),this.unit.backupUnit&&(s.backupUnit=this.unit.backupUnit);else if(0===i.unit.numerator.length&&0===s.denominator.length);else{if(i=i.convertTo(this.unit.usedUnits()),e.strictUnits&&i.unit.toString()!==s.toString())throw new Error(`Incompatible units. Change the units or use the unit function. Bad units: '${s.toString()}' and '${i.unit.toString()}'.`);n=this._operate(e,t,this.value,i.value)}else"*"===t?(s.numerator=s.numerator.concat(i.unit.numerator).sort(),s.denominator=s.denominator.concat(i.unit.denominator).sort(),s.cancel()):"/"===t&&(s.numerator=s.numerator.concat(i.unit.denominator).sort(),s.denominator=s.denominator.concat(i.unit.numerator).sort(),s.cancel());return new X(n,s)}compare(e){let t,i;if(e instanceof X){if(this.unit.isEmpty()||e.unit.isEmpty())t=this,i=e;else if(t=this.unify(),i=e.unify(),0!==t.unit.compare(i.unit))return;return u.numericCompare(t.value,i.value)}}unify(){return this.convertTo({length:"px",duration:"s",angle:"rad"})}convertTo(e){let t=this.value;const i=this.unit.clone();let n,s,r,o,l,u={};if("string"==typeof e){for(n in a)a[n].hasOwnProperty(e)&&(u={},u[n]=e);e=u}for(s in l=function(e,i){return r.hasOwnProperty(e)?(i?t/=r[e]/r[o]:t*=r[e]/r[o],o):e},e)e.hasOwnProperty(s)&&(o=e[s],r=a[s],i.map(l));return i.cancel(),new X(t,i)}}class Y extends u{get type(){return"Anonymous"}constructor(e,t,i,n,s,r){super(),this.value=e,this._index=t,this._fileInfo=i,this.mapLines=n,this.rulesetLike=void 0!==s&&s,this.allowRoot=!0,this.copyVisibilityInfo(r)}eval(){return new Y(this.value,this._index,this._fileInfo,this.mapLines,this.rulesetLike,this.visibilityInfo())}compare(e){return e.toCSS&&this.toCSS({})===e.toCSS({})?0:void 0}isRulesetLike(){return this.rulesetLike}genCSS(e,t){this.nodeVisible=Boolean(this.value),this.nodeVisible&&t.add(this.value,this._fileInfo,this._index,this.mapLines)}}class ee extends u{get type(){return"Expression"}constructor(e,t){if(super(),this.value=e,this.noSpacing=t,this.parens=void 0,this.parensInOp=void 0,!e)throw new Error("Expression requires an array parameter")}accept(e){this.value=e.visitArray(this.value)}eval(e){const t=this.noSpacing;let i;const n=e.isMathOn(),s=this.parens;let r=!1;s&&e.inParenthesis();const o=this.value;if(o.length>1)i=new ee(o.map((function(t){return t.eval?t.eval(e):t})),this.noSpacing);else if(1===o.length){const t=o[0];!t.parens||t.parensInOp||e.inCalc||(r=!0),i=o[0].eval(e)}else i=this;return s&&e.outOfParenthesis(),!this.parens||!this.parensInOp||n||r||i instanceof X||(i=new p(i)),i.noSpacing=i.noSpacing||t,i}genCSS(e,t){const i=this.value;for(let n=0;n<i.length;n++)i[n].genCSS(e,t),!this.noSpacing&&n+1<i.length&&(i[n+1]instanceof Y&&!(i[n+1]instanceof Y&&","!==i[n+1].value)||t.add(" "))}throwAwayComments(){this.value=this.value.filter((function(e){return!(e instanceof Q)}))}}class te extends u{get type(){return"Value"}constructor(e){if(super(),!e)throw new Error("Value requires an array argument");Array.isArray(e)?this.value=e:this.value=[e]}accept(e){this.value&&(this.value=e.visitArray(this.value))}eval(e){const t=this.value;return 1===t.length?t[0].eval(e):new te(t.map((function(t){return t.eval(e)})))}genCSS(e,t){const i=this.value;let n;for(n=0;n<i.length;n++)i[n].genCSS(e,t),n+1<i.length&&t.add(e&&e.compress?",":", ")}}function ie(e){if(!e)return;const t={},i=[];for(let n=0;n<e.length;n++){const s=e[n];if(s.merge){const r=s.name;t[r]?e.splice(n--,1):i.push(t[r]=[]),t[r].push(s)}}i.forEach(e=>{if(e.length>0){const t=e[0];let i=[];const n=[new ee(i)];e.forEach(e=>{"+"===e.merge&&i.length>0&&n.push(new ee(i=[])),i.push(e.value),t.important=t.important||e.important}),t.value=new te(n)}})}class ne{constructor(e){this._visitor=new D(this),this._context=e}containsSilentNonBlockedChild(e){let t;if(!e)return!1;for(let i=0;i<e.length;i++)if(t=e[i],t.isSilent&&t.isSilent(this._context)&&!t.blocksVisibility())return!0;return!1}keepOnlyVisibleChilds(e){e&&e.rules&&(e.rules=e.rules.filter(e=>e.isVisible()))}isEmpty(e){return!e||!e.rules||0===e.rules.length}hasVisibleSelector(e){return!(!e||!e.paths)&&e.paths.length>0}resolveVisibility(e){if(!e.blocksVisibility()){if(this.isEmpty(e))return;return e}const t=e.rules[0];if(this.keepOnlyVisibleChilds(t),!this.isEmpty(t))return e.ensureVisibility(),e.removeVisibilityBlock(),e}isVisibleRuleset(e){return!!e.firstRoot||!this.isEmpty(e)&&!(!e.root&&!this.hasVisibleSelector(e))}}const se=function(e){this._visitor=new D(this),this._context=e,this.utils=new ne(e)};se.prototype={isReplacing:!0,run:function(e){return this._visitor.visit(e)},visitDeclaration:function(e,t){if(!e.blocksVisibility()&&!e.variable)return e},visitMixinDefinition:function(e,t){e.frames=[]},visitExtend:function(e,t){},visitComment:function(e,t){if(!e.blocksVisibility()&&!e.isSilent(this._context))return e},visitMedia:function(e,t){const i=e.rules[0].rules;return e.accept(this._visitor),t.visitDeeper=!1,this.utils.resolveVisibility(e,i)},visitImport:function(e,t){if(!e.blocksVisibility())return e},visitAtRule:function(e,t){return e.rules&&e.rules.length?this.visitAtRuleWithBody(e,t):this.visitAtRuleWithoutBody(e,t)},visitAnonymous:function(e,t){if(!e.blocksVisibility())return e.accept(this._visitor),e},visitAtRuleWithBody:function(e,t){const i=function(e){const t=e.rules;return function(e){const t=e.rules;return 1===t.length&&(!t[0].paths||0===t[0].paths.length)}(e)?t[0].rules:t}(e);return e.accept(this._visitor),t.visitDeeper=!1,this.utils.isEmpty(e)||this._mergeRules(e.rules[0].rules),this.utils.resolveVisibility(e,i)},visitAtRuleWithoutBody:function(e,t){if(!e.blocksVisibility()){if("@charset"===e.name){if(this.charset){if(e.debugInfo){const t=new ze.Comment(`/* ${e.toCSS(this._context).replace(/\n/g,"")} */\n`);return t.debugInfo=e.debugInfo,this._visitor.visit(t)}return}this.charset=!0}return e}},checkValidNodes:function(e,t){if(e)for(let i=0;i<e.length;i++){const n=e[i];if(t&&n instanceof ze.Declaration&&!n.variable)throw{message:"Properties must be inside selector blocks. They cannot be in the root",index:n.getIndex(),filename:n.fileInfo()&&n.fileInfo().filename};if(n instanceof ze.Call)throw{message:`Function '${n.name}' did not return a root node`,index:n.getIndex(),filename:n.fileInfo()&&n.fileInfo().filename};if(n.type&&!n.allowRoot)throw{message:n.type+" node returned by a function is not valid here",index:n.getIndex(),filename:n.fileInfo()&&n.fileInfo().filename}}},visitRuleset:function(e,t){let i;const n=[];if(this.checkValidNodes(e.rules,e.firstRoot),e.root)e.accept(this._visitor),t.visitDeeper=!1;else{this._compileRulesetPaths(e);const s=e.rules;let r=s?s.length:0;for(let e=0;e<r;)i=s[e],i&&i.rules?(n.push(this._visitor.visit(i)),s.splice(e,1),r--):e++;r>0?e.accept(this._visitor):e.rules=null,t.visitDeeper=!1}return e.rules&&(this._mergeRules(e.rules),this._removeDuplicateRules(e.rules)),this.utils.isVisibleRuleset(e)&&(e.ensureVisibility(),n.splice(0,0,e)),1===n.length?n[0]:n},_compileRulesetPaths:function(e){e.paths&&(e.paths=e.paths.filter(e=>{let t;for(" "===e[0].elements[0].combinator.value&&(e[0].elements[0].combinator=new ze.Combinator("")),t=0;t<e.length;t++)if(e[t].isVisible()&&e[t].getIsOutput())return!0;return!1}))},_removeDuplicateRules:function(e){if(!e)return;const t={};for(let i=e.length-1;i>=0;i--){let n=e[i];if(n instanceof ze.Declaration)if(Object.prototype.hasOwnProperty.call(t,n.name)){let s=t[n.name];if(!Array.isArray(s)){const e=s.toCSS(this._context);s=t[n.name]=[e]}const r=n.toCSS(this._context);-1!==s.indexOf(r)?e.splice(i,1):s.push(r)}else t[n.name]=n}},_mergeRules:ie};var re={Visitor:D,ImportVisitor:G,MarkVisibleSelectorsVisitor:class{constructor(e){this.visible=e}run(e){this.visit(e)}visitArray(e){if(!e)return e;const t=e.length;let i;for(i=0;i<t;i++)this.visit(e[i]);return e}visit(e){return e?e.constructor===Array?this.visitArray(e):(!e.blocksVisibility||e.blocksVisibility()||(this.visible?e.ensureVisibility():e.ensureInvisibility(),e.accept(this)),e):e}},ExtendVisitor:class{constructor(){this._visitor=new D(this)}run(e){const t=new W;if(this.extendIndices={},t.run(e),!t.foundExtends)return e;e.allExtends=e.allExtends.concat(this.doExtendChaining(e.allExtends,e.allExtends)),this.allExtendsStack=[e.allExtends];const i=this._visitor.visit(e);return this.checkExtendsForNonMatched(e.allExtends),i}checkExtendsForNonMatched(e){const t=this.extendIndices;e.filter((function(e){return!e.hasFoundMatches&&1==e.parent_ids.length})).forEach((function(e){let i="_unknown_";try{i=e.selector.toCSS({})}catch(e){}t[`${e.index} ${i}`]||(t[`${e.index} ${i}`]=!0,s.warn(`WARNING: extend '${i}' has no matches`))}))}doExtendChaining(e,t,i){let n,s,r;const o=[];let a;const l=this;let u,c,h,f;for(i=i||0,n=0;n<e.length;n++)for(s=0;s<t.length;s++)c=e[n],h=t[s],c.parent_ids.indexOf(h.object_id)>=0||(u=[h.selfSelectors[0]],r=l.findMatch(c,u),r.length&&(c.hasFoundMatches=!0,c.selfSelectors.forEach((function(e){const t=h.visibilityInfo();a=l.extendSelector(r,u,e,c.isVisible()),f=new ze.Extend(h.selector,h.option,0,h.fileInfo(),t),f.selfSelectors=a,a[a.length-1].extendList=[f],o.push(f),f.ruleset=h.ruleset,f.parent_ids=f.parent_ids.concat(h.parent_ids,c.parent_ids),h.firstExtendOnThisSelectorPath&&(f.firstExtendOnThisSelectorPath=!0,h.ruleset.paths.push(a))}))));if(o.length){if(this.extendChainCount++,i>100){let e="{unable to calculate}",t="{unable to calculate}";try{e=o[0].selfSelectors[0].toCSS(),t=o[0].selector.toCSS()}catch(e){}throw{message:`extend circular reference detected. One of the circular extends is currently:${e}:extend(${t})`}}return o.concat(l.doExtendChaining(o,t,i+1))}return o}visitDeclaration(e,t){t.visitDeeper=!1}visitMixinDefinition(e,t){t.visitDeeper=!1}visitSelector(e,t){t.visitDeeper=!1}visitRuleset(e,t){if(e.root)return;let i;const n=this.allExtendsStack[this.allExtendsStack.length-1],s=[],r=e.paths,o=r.length;for(let t=0;t<n.length;t++){const a=n[t];for(let t=0;t<o;t++){const n=r[t];if(e.extendOnEveryPath)continue;const o=n[n.length-1].extendList;if((!o||!o.length)&&(i=this.findMatch(a,n),i.length)){a.hasFoundMatches=!0;const e=a.selfSelectors,t=a.isVisible();for(let r=0;r<e.length;r++)s.push(this.extendSelector(i,n,e[r],t))}}}e.paths=r.concat(s)}findMatch(e,t){let i,n,s,r,o,a;const l=e.selector.elements,u=[];let c;const h=[];for(i=0;i<t.length;i++)for(n=t[i],s=0;s<n.elements.length;s++)for(r=n.elements[s],(e.allowBefore||0===i&&0===s)&&u.push({pathIndex:i,index:s,matched:0,initialCombinator:r.combinator}),a=0;a<u.length;a++)c=u[a],o=r.combinator.value,""===o&&0===s&&(o=" "),!this.isElementValuesEqual(l[c.matched].value,r.value)||c.matched>0&&l[c.matched].combinator.value!==o?c=null:c.matched++,c&&(c.finished=c.matched===l.length,c.finished&&!e.allowAfter&&(s+1<n.elements.length||i+1<t.length)&&(c=null)),c?c.finished&&(c.length=l.length,c.endPathIndex=i,c.endPathElementIndex=s+1,u.length=0,h.push(c)):(u.splice(a,1),a--);return h}isElementValuesEqual(e,t){if("string"==typeof e||"string"==typeof t)return e===t;if(e instanceof ze.Attribute)return e.op===t.op&&e.key===t.key&&(e.value&&t.value?(e=e.value.value||e.value)===(t=t.value.value||t.value):!e.value&&!t.value);if(e=e.value,t=t.value,e instanceof ze.Selector){if(!(t instanceof ze.Selector)||e.elements.length!==t.elements.length)return!1;for(let i=0;i<e.elements.length;i++){if(e.elements[i].combinator.value!==t.elements[i].combinator.value&&(0!==i||(e.elements[i].combinator.value||" ")!==(t.elements[i].combinator.value||" ")))return!1;if(!this.isElementValuesEqual(e.elements[i].value,t.elements[i].value))return!1}return!0}return!1}extendSelector(e,t,i,n){let s,r,o,a,l,u=0,c=0,h=[];for(s=0;s<e.length;s++)a=e[s],r=t[a.pathIndex],o=new ze.Element(a.initialCombinator,i.elements[0].value,i.elements[0].isVariable,i.elements[0].getIndex(),i.elements[0].fileInfo()),a.pathIndex>u&&c>0&&(h[h.length-1].elements=h[h.length-1].elements.concat(t[u].elements.slice(c)),c=0,u++),l=r.elements.slice(c,a.index).concat([o]).concat(i.elements.slice(1)),u===a.pathIndex&&s>0?h[h.length-1].elements=h[h.length-1].elements.concat(l):(h=h.concat(t.slice(u,a.pathIndex)),h.push(new ze.Selector(l))),u=a.endPathIndex,c=a.endPathElementIndex,c>=t[u].elements.length&&(c=0,u++);return u<t.length&&c>0&&(h[h.length-1].elements=h[h.length-1].elements.concat(t[u].elements.slice(c)),u++),h=h.concat(t.slice(u,t.length)),h=h.map((function(e){const t=e.createDerived(e.elements);return n?t.ensureVisibility():t.ensureInvisibility(),t})),h}visitMedia(e,t){let i=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);i=i.concat(this.doExtendChaining(i,e.allExtends)),this.allExtendsStack.push(i)}visitMediaOut(e){const t=this.allExtendsStack.length-1;this.allExtendsStack.length=t}visitAtRule(e,t){let i=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);i=i.concat(this.doExtendChaining(i,e.allExtends)),this.allExtendsStack.push(i)}visitAtRuleOut(e){const t=this.allExtendsStack.length-1;this.allExtendsStack.length=t}},JoinSelectorVisitor:class{constructor(){this.contexts=[[]],this._visitor=new D(this)}run(e){return this._visitor.visit(e)}visitDeclaration(e,t){t.visitDeeper=!1}visitMixinDefinition(e,t){t.visitDeeper=!1}visitRuleset(e,t){const i=this.contexts[this.contexts.length-1],n=[];let s;this.contexts.push(n),e.root||(s=e.selectors,s&&(s=s.filter((function(e){return e.getIsOutput()})),e.selectors=s.length?s:s=null,s&&e.joinSelectors(n,i,s)),s||(e.rules=null),e.paths=n)}visitRulesetOut(e){this.contexts.length=this.contexts.length-1}visitMedia(e,t){const i=this.contexts[this.contexts.length-1];e.rules[0].root=0===i.length||i[0].multiMedia}visitAtRule(e,t){const i=this.contexts[this.contexts.length-1];e.declarations&&e.declarations.length?e.declarations[0].root=0===i.length||i[0].multiMedia:e.rules&&e.rules.length&&(e.rules[0].root=e.isRooted||0===i.length||null)}},ToCSSVisitor:se};var oe=function e(t){return{_data:{},add:function(e,t){e=e.toLowerCase(),this._data.hasOwnProperty(e),this._data[e]=t},addMultiple:function(e){Object.keys(e).forEach(t=>{this.add(t,e[t])})},get:function(e){return this._data[e]||t&&t.get(e)},getLocalFunctions:function(){return this._data},inherit:function(){return e(this)},create:function(t){return e(t)}}}(null);const ae={queryInParens:!0},le={queryInParens:!0};class ue{constructor(){this._counts={}}shouldWarn(e){if(!e)return!0;const t=(this._counts[e]||0)+1;return this._counts[e]=t,t<=5}summarize(e){for(const t of Object.keys(this._counts)){const i=this._counts[t]-5;i>0&&e.warn(`${i} repetitive "${t}" deprecation warning(s) omitted.`)}}}const ce=function e(t,i,n,r){let o;r=r||0;const a=(()=>{let e,t;const i=[];let n,s,r,o,a;const l={};function u(i){const n=l.i,s=t,c=l.i-a,h=l.i+o.length-c,f=l.i+=i,p=e;let d,m,g;for(;l.i<h;l.i++){if(d=p.charCodeAt(l.i),l.autoCommentAbsorb&&47===d){if(m=p.charAt(l.i+1),"/"===m){g={index:l.i,isLineComment:!0};let e=p.indexOf("\n",l.i+2);e<0&&(e=h),l.i=e,g.text=p.slice(g.index,l.i),l.commentStore.push(g);continue}if("*"===m){const e=p.indexOf("*/",l.i+2);if(e>=0){g={index:l.i,text:p.slice(l.i,e+2),isLineComment:!1},l.i+=g.text.length-1,l.commentStore.push(g);continue}}break}if(32!==d&&10!==d&&9!==d&&13!==d)break}if(o=o.slice(i+l.i-f+c),a=l.i,!o.length){if(t<r.length-1)return o=r[++t],u(0),!0;l.finished=!0}return n!==l.i||s!==t}return l.save=()=>{a=l.i,i.push({current:o,i:l.i,j:t})},l.restore=e=>{(l.i>n||l.i===n&&e&&!s)&&(n=l.i,s=e);const r=i.pop();o=r.current,a=l.i=r.i,t=r.j},l.forget=()=>{i.pop()},l.isWhitespace=t=>{const i=l.i+(t||0),n=e.charCodeAt(i);return 32===n||13===n||9===n||10===n},l.$re=e=>{l.i>a&&(o=o.slice(l.i-a),a=l.i);const t=e.exec(o);return t?(u(t[0].length),"string"==typeof t?t:1===t.length?t[0]:t):null},l.$char=t=>e.charAt(l.i)!==t?null:(u(1),t),l.$peekChar=t=>e.charAt(l.i)!==t?null:t,l.$str=t=>{const i=t.length;for(let n=0;n<i;n++)if(e.charAt(l.i+n)!==t.charAt(n))return null;return u(i),t},l.$quoted=t=>{const i=t||l.i,n=e.charAt(i);if("'"!==n&&'"'!==n)return;const s=e.length,r=i;for(let i=1;i+r<s;i++){switch(e.charAt(i+r)){case"\\":i++;continue;case"\r":case"\n":break;case n:{const s=e.slice(r,r+i+1);return t||0===t?[n,s]:(u(i+1),s)}}}return null},l.$parseUntil=t=>{let i="",n=null,s=!1,r=0;const o=[],a=[],c=e.length,h=l.i;let f,p=l.i,d=l.i,m=!0;f="string"==typeof t?e=>e===t:e=>t.test(e);do{let t=e.charAt(d);if(0===r&&f(t))n=e.slice(p,d),n?a.push(n):a.push(" "),n=a,u(d-h),m=!1;else{if(s){"*"===t&&"/"===e.charAt(d+1)&&(d++,r--,s=!1),d++;continue}switch(t){case"\\":d++,t=e.charAt(d),a.push(e.slice(p,d+1)),p=d+1;break;case"/":"*"===e.charAt(d+1)&&(d++,s=!0,r++);break;case"'":case'"':i=l.$quoted(d),i?(a.push(e.slice(p,d),i),d+=i[1].length-1,p=d+1):(u(d-h),n=t,m=!1);break;case"{":o.push("}"),r++;break;case"(":o.push(")"),r++;break;case"[":o.push("]"),r++;break;case"}":case")":case"]":{const e=o.pop();t===e?r--:(u(d-h),n=e,m=!1)}}d++,d>c&&(m=!1)}}while(m);return n||null},l.autoCommentAbsorb=!0,l.commentStore=[],l.finished=!1,l.peek=t=>{if("string"==typeof t){for(let i=0;i<t.length;i++)if(e.charAt(l.i+i)!==t.charAt(i))return!1;return!0}return t.test(o)},l.peekChar=t=>e.charAt(l.i)===t,l.currentChar=()=>e.charAt(l.i),l.prevChar=()=>e.charAt(l.i-1),l.getInput=()=>e,l.peekNotNumeric=()=>{const t=e.charCodeAt(l.i);return t>57||t<43||47===t||44===t},l.start=i=>{e=i,l.i=t=a=n=0,r=[i],o=r[0],u(0)},l.end=()=>{let t;const i=l.i>=e.length;return l.i<n&&(t=s,l.i=n),{isFinished:i,furthest:l.i,furthestPossibleErrorMessage:t,furthestReachedEnd:l.i>=e.length-1,furthestChar:e[l.i]}},l})();function l(e,t){throw new F({index:a.i,filename:n.filename,type:t||"Syntax",message:e},i)}const u=new ue;function c(e,r,o,l){t.quiet||l&&t.quietDeprecations||l&&!u.shouldWarn(l)||s.warn(new F({index:r??a.i,filename:n.filename,type:o?o.toUpperCase()+" WARNING":"WARNING",message:e},i).toString())}function h(e,t){const i=e instanceof Function?e.call(o):a.$re(e);if(i)return i;l(t||("string"==typeof e?`expected '${e}' got '${a.currentChar()}'`:"unexpected token"))}function f(e,t){if(a.$char(e))return e;l(t||`expected '${e}' got '${a.currentChar()}'`)}function p(e){const t=n.filename;return{lineNumber:C(e,a.getInput()).line+1,fileName:t}}return{parserInput:a,imports:i,fileInfo:n,parseNode:function(e,t,s){let l;const u=[],c=a;try{c.start(e);for(let e,i=0;e=t[i];i++)l=o[e](),u.push(l||null);c.end().isFinished?s(null,u):s(!0,null)}catch(e){throw new F({index:e.index+r,message:e.message},i,n.filename)}},parse:function(s,r,u){let c,h,f,p,d=null,m="";if(u&&u.disablePluginRule&&(o.plugin=function(){a.$re(/^@plugin?\s+/)&&l("@plugin statements are not allowed when disablePluginRule is set to true")}),h=u&&u.globalVars?e.serializeVars(u.globalVars)+"\n":"",f=u&&u.modifyVars?"\n"+e.serializeVars(u.modifyVars):"",t.pluginManager){const e=t.pluginManager.getPreProcessors();for(let r=0;r<e.length;r++)s=e[r].process(s,{context:t,imports:i,fileInfo:n})}(h||u&&u.banner)&&(m=(u&&u.banner?u.banner:"")+h,p=i.contentsIgnoredChars,p[n.filename]=p[n.filename]||0,p[n.filename]+=m.length),s=m+(s=s.replace(/\r\n?/g,"\n")).replace(/^\uFEFF/,"")+f,i.contents[n.filename]=s;try{a.start(s),ze.Node.prototype.parse=this,c=new ze.Ruleset(null,this.parsers.primary()),ze.Node.prototype.rootNode=c,c.root=!0,c.firstRoot=!0,c.functionRegistry=oe.inherit()}catch(e){return r(new F(e,i,n.filename))}const g=a.end();if(!g.isFinished){let e=g.furthestPossibleErrorMessage;e||(e="Unrecognised input","}"===g.furthestChar?e+=". Possibly missing opening '{'":")"===g.furthestChar?e+=". Possibly missing opening '('":g.furthestReachedEnd&&(e+=". Possibly missing something")),d=new F({type:"Parse",message:e,index:g.furthest,filename:n.filename},i)}const v=e=>(e=d||e||i.error)?(e instanceof F||(e=new F(e,i,n.filename)),r(e)):r(null,c);if(!1===t.processImports)return v();new re.ImportVisitor(i,v).run(c)},parsers:o={primary:function(){const e=this.mixin;let t,i=[];for(;;){for(;t=this.comment(),t;)i.push(t);if(a.finished)break;if(a.peek("}"))break;if(t=this.extendRule(),t)i=i.concat(t);else if(t=e.definition()||this.declaration()||e.call(!1,!1)||this.ruleset()||this.variableCall()||this.entities.call()||this.atrule(),t)i.push(t);else{let e=!1;for(;a.$char(";");)e=!0;if(!e)break}}return i},comment:function(){if(a.commentStore.length){const e=a.commentStore.shift();return new ze.Comment(e.text,e.isLineComment,e.index+r,n)}},entities:{mixinLookup:function(){return o.mixin.call(!0,!0)},quoted:function(e){let t;const i=a.i;let s=!1;if(a.save(),a.$char("~"))s=!0;else if(e)return void a.restore();if(t=a.$quoted(),t)return a.forget(),new ze.Quoted(t.charAt(0),t.slice(1,-1),s,i+r,n);a.restore()},keyword:function(){const e=a.$char("%")||a.$re(/^\[?(?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+\]?/);if(e)return ze.Color.fromKeyword(e)||new ze.Keyword(e)},call:function(){let e,t,i;const s=a.i;if(!a.peek(/^url\(/i))if(a.save(),e=a.$re(/^([\w-]+|%|~|progid:[\w.]+)\(/),e){if(e=e[1],i=this.customFuncCall(e),i&&(t=i.parse(),t&&i.stop))return a.forget(),t;if(t=this.arguments(t),a.$char(")"))return a.forget(),new ze.Call(e,t,s+r,n);a.restore("Could not parse call arguments or missing ')'")}else a.forget()},declarationCall:function(){let e,t;const i=a.i;if(a.save(),e=a.$re(/^[\w]+\(/),!e)return void a.forget();if(e=e.substring(0,e.length-1),/^(and|or|not|only|layer)$/i.test(e))return void a.restore();let s,o=this.ruleProperty();if(o&&(s=this.value()),o&&s&&(t=[new ze.Declaration(o,s,null,null,a.i+r,n,!0)]),a.$char(")"))return a.forget(),new ze.Call(e,t,i+r,n);a.restore("Could not parse call arguments or missing ')'")},customFuncCall:function(e){return{alpha:t(o.ieAlpha,!0),boolean:t(i),if:t(i)}[e.toLowerCase()];function t(e,t){return{parse:e,stop:t}}function i(){return[h(o.condition,"expected condition")]}},arguments:function(e){let t=e||[];const i=[];let n,s;for(a.save();;){if(e)e=!1;else{if(s=o.detachedRuleset()||this.assignment()||o.expression(),!s)break;s.value&&1==s.value.length&&(s=s.value[0]),t.push(s)}a.$char(",")||(a.$char(";")||n)&&(n=!0,s=t.length<1?t[0]:new ze.Value(t),i.push(s),t=[])}return a.forget(),n?i:t},literal:function(){return this.dimension()||this.color()||this.quoted()||this.unicodeDescriptor()},assignment:function(){let e,t;if(a.save(),e=a.$re(/^\w+(?=\s?=)/i),e)if(a.$char("=")){if(t=o.entity(),t)return a.forget(),new ze.Assignment(e,t);a.restore()}else a.restore();else a.restore()},url:function(){let e;const t=a.i;if(a.autoCommentAbsorb=!1,a.$str("url("))return e=this.quoted()||this.variable()||this.property()||a.$re(/^(?:(?:\\[()'"])|[^()'"])+/)||"",a.autoCommentAbsorb=!0,f(")"),new ze.URL(void 0!==e.value||e instanceof ze.Variable||e instanceof ze.Property?e:new ze.Anonymous(e,t),t+r,n);a.autoCommentAbsorb=!0},variable:function(){let e,t;const i=a.i;if(a.save(),"@"===a.currentChar()&&(t=a.$re(/^@@?[\w-]+/))){if(e=a.currentChar(),"("===e&&!a.prevChar().match(/^\s/)||"["===e&&!a.prevChar().match(/^\s/)){const e=o.variableCall(t);if(e)return a.forget(),e}return a.forget(),new ze.Variable(t,i+r,n)}a.restore()},variableCurly:function(){let e;const t=a.i;if("@"===a.currentChar()&&(e=a.$re(/^@\{([\w-]+)\}/)))return new ze.Variable("@"+e[1],t+r,n)},property:function(){let e;const t=a.i;if("$"===a.currentChar()&&(e=a.$re(/^\$[\w-]+/)))return new ze.Property(e,t+r,n)},color:function(){let e;if(a.save(),"#"===a.currentChar()&&(e=a.$re(/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3,4})([\w.#[])?/))&&!e[2])return a.forget(),new ze.Color(e[1],void 0,e[0]);a.restore()},colorKeyword:function(){a.save();const e=a.autoCommentAbsorb;a.autoCommentAbsorb=!1;const t=a.$re(/^[_A-Za-z-][_A-Za-z0-9-]+/);if(a.autoCommentAbsorb=e,!t)return void a.forget();a.restore();const i=ze.Color.fromKeyword(t);return i?(a.$str(t),i):void 0},dimension:function(){if(a.peekNotNumeric())return;const e=a.$re(/^([+-]?\d*\.?\d+)(%|[a-z_]+)?/i);return e?new ze.Dimension(e[1],e[2]):void 0},unicodeDescriptor:function(){let e;if(e=a.$re(/^U\+[0-9a-fA-F?]+(-[0-9a-fA-F?]+)?/),e)return new ze.UnicodeDescriptor(e[0])},javascript:function(){let e;const t=a.i;a.save();const i=a.$char("~");if(a.$char("`")){if(e=a.$re(/^[^`]*`/),e)return c("Inline JavaScript evaluation (backtick expressions) is deprecated and will be removed in Less 5.x. Use Less functions or custom plugins instead.",t,"DEPRECATED","js-eval"),a.forget(),new ze.JavaScript(e.slice(0,-1),Boolean(i),t+r,n);a.restore("invalid javascript definition")}else a.restore()}},variable:function(){let e;if("@"===a.currentChar()&&(e=a.$re(/^(@[\w-]+)\s*:/)))return e[1]},variableCall:function(e){let t;const i=a.i,s=!!e;let r=e;if(a.save(),r||"@"===a.currentChar()&&(r=a.$re(/^(@[\w-]+)(\(\s*\))?/))){if(t=this.mixin.ruleLookups(),!t&&(s&&"()"!==a.$str("()")||"()"!==r[2]))return void a.restore("Missing '[...]' lookup in variable call");s||(r=r[1]);const e=new ze.VariableCall(r,i,n);return!s&&o.end()?(a.forget(),e):(a.forget(),new ze.NamespaceValue(e,t,i,n))}a.restore()},extend:function(e){let t,i;const s=a.i;let o,u,f;if(a.$str(e?"&:extend(":":extend(")){do{o=null,t=null;let e=!0;for(;!(o=a.$re(/^(!?all)(?=\s*(\)|,))/))&&(i=this.element(),i);)!e&&i.combinator.value&&c("Targeting complex selectors can have unexpected behavior, and this behavior may change in the future.",s),e=!1,t?t.push(i):t=[i];o=o&&o[1],t||l("Missing target selector for :extend()."),f=new ze.Extend(new ze.Selector(t),o,s+r,n),u?u.push(f):u=[f]}while(a.$char(","));return h(/^\)/),e&&h(/^;/),u}},extendRule:function(){return this.extend(!0)},mixin:{call:function(e,t){const i=a.currentChar();let s,l=!1;const u=a.i;let h,p,d,m,g=!1;if("."===i||"#"===i){if(a.save(),h=this.elements(),h){if(m=a.i,g=a.isWhitespace(-1),a.$char("(")&&(p=this.args(!0).args,f(")"),d=!0,g&&c("Whitespace between a mixin name and parentheses for a mixin call is deprecated",m,"DEPRECATED","mixin-call-whitespace")),!1!==t&&(s=this.ruleLookups()),!0===t&&!s)return void a.restore();if(e&&!s&&!d)return void a.restore();if(!e&&o.important()&&(l=!0),e||o.end()){a.forget();const e=new ze.mixin.Call(h,p,u+r,n,!s&&l);return s?new ze.NamespaceValue(e,s):(d||c("Calling a mixin without parentheses is deprecated",m,"DEPRECATED","mixin-call-no-parens"),e)}}a.restore()}},elements:function(){let e,t,i,s,o;const l=/^[#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/;for(;o=a.i,t=a.$re(l),t;)s=new ze.Element(i,t,!1,o+r,n),e?e.push(s):e=[s],i=a.$char(">");return e},args:function(e){const t=o.entities,i={args:null,variadic:!1};let n=[];const s=[],r=[];let u,c,h,f,p,d,m,g=!0;for(a.save();;){if(e)d=o.detachedRuleset()||o.expression();else{if(a.commentStore.length=0,a.$str("...")){i.variadic=!0,a.$char(";")&&!u&&(u=!0),(u?s:r).push({variadic:!0});break}d=t.variable()||t.property()||t.literal()||t.keyword()||this.call(!0)}if(!d||!g)break;f=null,d.throwAwayComments&&d.throwAwayComments(),p=d;let v=null;if(e?d.value&&1==d.value.length&&(v=d.value[0]):v=d,v&&(v instanceof ze.Variable||v instanceof ze.Property))if(a.$char(":")){if(n.length>0&&(u&&l("Cannot mix ; and , as delimiter types"),c=!0),p=o.detachedRuleset()||o.expression(),!p){if(!e)return a.restore(),i.args=[],i;l("could not understand value for named argument")}f=h=v.name}else if(a.$str("...")){if(!e){i.variadic=!0,a.$char(";")&&!u&&(u=!0),(u?s:r).push({name:d.name,variadic:!0});break}m=!0}else e||(h=f=v.name,p=null);p&&n.push(p),r.push({name:f,value:p,expand:m}),a.$char(",")?g=!0:(g=";"===a.$char(";"),(g||u)&&(c&&l("Cannot mix ; and , as delimiter types"),u=!0,n.length>1&&(p=new ze.Value(n)),s.push({name:h,value:p,expand:m}),h=null,n=[],c=!1))}return a.forget(),i.args=u?s:r,i},definition:function(){let e,t,i,n,s=[],r=!1;if(!("."!==a.currentChar()&&"#"!==a.currentChar()||a.peek(/^[^{]*\}/)))if(a.save(),t=a.$re(/^([#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+)\s*\(/),t){e=t[1];const l=this.args(!1);if(s=l.args,r=l.variadic,!a.$char(")"))return void a.restore("Missing closing ')'");if(a.commentStore.length=0,a.$str("when")&&(n=h(o.conditions,"expected condition")),i=o.block(),i)return a.forget(),new ze.mixin.Definition(e,s,i,n,r);a.restore()}else a.restore()},ruleLookups:function(){let e;const t=[];if("["===a.currentChar()){for(;;){if(a.save(),e=this.lookupValue(),!e&&""!==e){a.restore();break}t.push(e),a.forget()}return t.length>0?t:void 0}},lookupValue:function(){if(a.save(),!a.$char("["))return void a.restore();const e=a.$re(/^(?:[@$]{0,2})[_a-zA-Z0-9-]*/);if(a.$char("]"))return e||""===e?(a.forget(),e):void a.restore();a.restore()}},entity:function(){const e=this.entities;return this.comment()||e.literal()||e.variable()||e.url()||e.property()||e.call()||e.keyword()||this.mixin.call(!0)||e.javascript()},end:function(){return a.$char(";")||a.peek("}")},ieAlpha:function(){let e;if(a.$re(/^opacity=/i))return e=a.$re(/^\d+/),e||(e=h(o.entities.variable,"Could not parse alpha"),e=`@{${e.name.slice(1)}}`),f(")"),new ze.Quoted("",`alpha(opacity=${e})`)},element:function(){let e,t,i;const s=a.i;if(t=this.combinator(),e=a.$re(/^(?:\d+\.\d+|\d+)%/)||a.$re(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/)||a.$char("*")||a.$char("&")||this.attribute()||a.$re(/^\([^&()@]+\)/)||a.$re(/^[.#:](?=@)/)||this.entities.variableCurly(),!e)if(a.save(),a.$char("("))if(i=this.selector(!1)){let t=[];for(;a.$char(",");)t.push(i),t.push(new Y(",")),i=this.selector(!1);t.push(i),a.$char(")")?(e=t.length>1?new ze.Paren(new he(t)):new ze.Paren(i),a.forget()):a.restore("Missing closing ')'")}else a.restore("Missing closing ')'");else a.forget();if(e)return new ze.Element(t,e,e instanceof ze.Variable,s+r,n)},combinator:function(){let e=a.currentChar();if("/"===e){a.save();const e=a.$re(/^\/[a-z]+\//i);if(e)return a.forget(),new ze.Combinator(e);a.restore()}if(">"===e||"+"===e||"~"===e||"|"===e||"^"===e){for(a.i++,"^"===e&&"^"===a.currentChar()&&(e="^^",a.i++);a.isWhitespace();)a.i++;return new ze.Combinator(e)}return a.isWhitespace(-1)?new ze.Combinator(" "):new ze.Combinator(null)},selector:function(e){const t=a.i;let i,s,o,u,c,f,p;for(e=!1!==e;(e&&(s=this.extend())||e&&(f=a.$str("when"))||(u=this.element()))&&(f?p=h(this.conditions,"expected condition"):p?l("CSS guard can only be used at the end of selector"):s?c=c?c.concat(s):s:(c&&l("Extend can only be used at the end of selector"),o=a.currentChar(),Array.isArray(u)&&u.forEach(e=>i.push(e)),i?i.push(u):i=[u],u=null),"{"!==o&&"}"!==o&&";"!==o&&","!==o&&")"!==o););if(i)return new ze.Selector(i,c,p,t+r,n);c&&l("Extend must be used to extend a selector, it cannot be used on its own")},selectors:function(){let e,t;for(;e=this.selector(),e&&(t?t.push(e):t=[e],a.commentStore.length=0,e.condition&&t.length>1&&l("Guards are only currently allowed on a single selector."),a.$char(","));)e.condition&&l("Guards are only currently allowed on a single selector."),a.commentStore.length=0;return t},attribute:function(){if(!a.$char("["))return;const e=this.entities;let t,i,n,s;return(t=e.variableCurly())||(t=h(/^(?:[_A-Za-z0-9-*]*\|)?(?:[_A-Za-z0-9-]|\\.)+/)),n=a.$re(/^[|~*$^]?=/),n&&(i=e.quoted()||a.$re(/^[0-9]+%/)||a.$re(/^[\w-]+/)||e.variableCurly(),i&&(s=a.$re(/^[iIsS]/))),f("]"),new ze.Attribute(t,n,i,s)},block:function(){let e;if(a.$char("{")&&(e=this.primary())&&a.$char("}"))return e},blockRuleset:function(){let e=this.block();if(e)return new ze.Ruleset(null,e)},detachedRuleset:function(){let e,t,i;if(a.save(),a.$re(/^[.#]\(/)&&(e=this.mixin.args(!1),t=e.args,i=e.variadic,!a.$char(")")))return void a.restore();const n=this.blockRuleset();if(n)return a.forget(),t?new ze.mixin.Definition(null,t,n,null,i):new ze.DetachedRuleset(n);a.restore()},ruleset:function(){let e,i,n;if(a.save(),t.dumpLineNumbers&&(n=p(a.i)),e=this.selectors(),e&&(i=this.block())){a.forget();const s=new ze.Ruleset(e,i,t.strictImports);return t.dumpLineNumbers&&(s.debugInfo=n),s}a.restore()},declaration:function(){let e,t;const i=a.i;let s;const o=a.currentChar();let l,u,c;if("."!==o&&"#"!==o&&"&"!==o&&":"!==o)if(a.save(),e=this.variable()||this.ruleProperty(),e){if(c="string"==typeof e,c&&(t=this.detachedRuleset(),t&&(s=!0)),a.commentStore.length=0,!t){if(u=!c&&e.length>1&&e.pop().value,t=e[0].value&&"--"===e[0].value.slice(0,2)?a.$char(";")?new Y(""):this.permissiveValue(/[;}]/,!0):this.anonymousValue(),t)return a.forget(),new ze.Declaration(e,t,!1,u,i+r,n);t||(t=this.value()),t?l=this.important():c&&(t=this.permissiveValue())}if(t&&(this.end()||s))return a.forget(),new ze.Declaration(e,t,l,u,i+r,n);a.restore()}else a.restore()},anonymousValue:function(){const e=a.i,t=a.$re(/^([^.#@$+/'"*`(;{}-]*);/);if(t)return new ze.Anonymous(t[1],e+r)},permissiveValue:function(e){let t,i,s,r;const o=e||";",u=a.i,h=[];function f(){const e=a.currentChar();return"string"==typeof o?e===o:o.test(e)}if(!f()){r=[];do{i=this.comment(),i?r.push(i):(i=this.entity(),i&&r.push(i),a.peek(",")&&(r.push(new ze.Anonymous(",",a.i)),a.$char(",")))}while(i);if(s=f(),r.length>0){if(r=new ze.Expression(r),s)return r;h.push(r)," "===a.prevChar()&&h.push(new ze.Anonymous(" ",u))}if(a.save(),r=a.$parseUntil(o),r){if("string"==typeof r&&l(`Expected '${r}'`,"Parse"),1===r.length&&" "===r[0])return a.forget(),new ze.Anonymous("",u);let e;for(t=0;t<r.length;t++)if(e=r[t],Array.isArray(e))h.push(new ze.Quoted(e[0],e[1],!0,u,n));else{t===r.length-1&&(e=e.trim());const i=new ze.Quoted("'",e,!0,u,n),s=/\$([\w-]+)/g;/@([\w-]+)/g.test(e)&&c("@[ident] in unknown values will not be evaluated as variables in the future. Use @{[ident]}",u,"DEPRECATED","variable-in-unknown-value"),s.test(e)&&c("$[ident] in unknown values will not be evaluated as property references in the future. Use ${[ident]}",u,"DEPRECATED","property-in-unknown-value"),i.variableRegex=/@([\w-]+)|@{([\w-]+)}/g,i.propRegex=/\$([\w-]+)|\${([\w-]+)}/g,h.push(i)}return a.forget(),new ze.Expression(h,!0)}a.restore()}},import:function(){let e,t;const i=a.i,s=a.$re(/^@import\s+/);if(s){const o=(s?this.importOptions():null)||{};if(e=this.entities.quoted()||this.entities.url())return t=this.mediaFeatures({}),a.$char(";")||(a.i=i,l("missing semi-colon or unrecognised media features on import")),t=t&&new ze.Value(t),new ze.Import(e,t,o,i+r,n);a.i=i,l("malformed import statement")}},importOptions:function(){let e;const t={};let i,n;if(!a.$char("("))return null;do{if(e=this.importOption(),e){switch(i=e,n=!0,i){case"css":i="less",n=!1;break;case"once":i="multiple",n=!1}if(t[i]=n,!a.$char(","))break}}while(e);return f(")"),t},importOption:function(){const e=a.$re(/^(less|css|multiple|once|inline|reference|optional)/);if(e)return e[1]},mediaFeature:function(e){const t=this.entities,i=[];let s,o,u,c=!1;a.save();do{a.save(),a.$re(/^[0-9a-z-]*\s+\(/)&&(c=!0),a.restore(),s=t.declarationCall.bind(this)()||t.keyword()||t.variable()||t.mixinLookup(),s?(i.push(s),("Variable"===s.type||"Keyword"===s.type&&/^(and|or|not|only)$/i.test(s.value))&&(c=!0)):a.$char("(")&&(o=this.property(),a.save(),!o&&e.queryInParens&&a.$re(/^[0-9a-z-]*\s*([<>]=|<=|>=|[<>]|=)/)?(a.restore(),o=this.condition(),a.save(),u=this.atomicCondition(null,o.rvalue),u||a.restore()):(a.restore(),s=this.value()),a.$char(")")?o&&!s?(i.push(new ze.Paren(new ze.QueryInParens(o.op,o.lvalue,o.rvalue,u?u.op:null,u?u.rvalue:null,o._index))),s=o):o&&s?(i.push(new ze.Paren(new ze.Declaration(o,s,null,null,a.i+r,n,!0))),c||(i[i.length-1].noSpacing=!0),c=!1):s?(i.push(new ze.Paren(s)),c=!1):l("badly formed media feature definition"):l("Missing closing ')'","Parse"))}while(s);if(a.forget(),i.length>0)return new ze.Expression(i)},mediaFeatures:function(e){const t=this.entities,i=[];let n;do{if(n=this.mediaFeature(e),n){if(i.push(n),!a.$char(","))break;i[i.length-1].noSpacing||(i[i.length-1].noSpacing=!1)}else if(n=t.variable()||t.mixinLookup(),n){if(i.push(n),!a.$char(","))break;i[i.length-1].noSpacing||(i[i.length-1].noSpacing=!1)}}while(n);return i.length>0?i:null},prepareAndGetNestableAtRule:function(e,i,s,o){const u=this.mediaFeatures(o),c=this.block();c||l("media definitions require block statements after any features"),a.forget();const h=new e(c,u,i+r,n);return t.dumpLineNumbers&&(h.debugInfo=s),h},nestableAtRule:function(){let e;const i=a.i;if(t.dumpLineNumbers&&(e=p(i)),a.save(),a.$peekChar("@")){if(a.$str("@media"))return this.prepareAndGetNestableAtRule(ze.Media,i,e,ae);if(a.$str("@container"))return this.prepareAndGetNestableAtRule(ze.Container,i,e,le)}a.restore()},plugin:function(){let e,t,i;const s=a.i;if(a.$re(/^@plugin\s+/)){if(c("The @plugin directive is deprecated and will be replaced in Less 5.x. Use --plugin CLI option or the programmatic plugin API instead.",s,"DEPRECATED","at-plugin"),t=this.pluginArgs(),i=t?{pluginArgs:t,isPlugin:!0}:{isPlugin:!0},e=this.entities.quoted()||this.entities.url())return a.$char(";")||(a.i=s,l("missing semi-colon on @plugin")),new ze.Import(e,null,i,s+r,n);a.i=s,l("malformed @plugin statement")}},pluginArgs:function(){if(a.save(),!a.$char("("))return a.restore(),null;const e=a.$re(/^\s*([^);]+)\)\s*/);return e[1]?(a.forget(),e[1].trim()):(a.restore(),null)},atruleUnknown:function(e,t,i){return e=this.permissiveValue(/^[{;]/),i="{"===a.currentChar(),e?e.value||(e=null):i||";"===a.currentChar()||l("".concat(t," rule is missing block or ending semi-colon")),[e,i]},atruleBlock:function(e,t,i,n){if(e=this.blockRuleset(),a.save(),e||i||(t=this.entity(),e=this.blockRuleset()),e||i)a.forget();else{a.restore();var s=[];for(t=this.entity();a.$char(",");)s.push(t),t=this.entity();t&&s.length>0?(s.push(t),t=s,n=!0):e=this.blockRuleset()}return[e,t,n]},atrule:function(){const e=a.i;let i,s,o,u,c,h,f,d=!0,m=!0,g=!1;if("@"===a.currentChar()){if(s=this.import()||this.plugin()||this.nestableAtRule(),s)return s;if(a.save(),i=a.$re(/^@[a-z-]+/),i){switch(u=i,"-"==i.charAt(1)&&i.indexOf("-",2)>0&&(u="@"+i.slice(i.indexOf("-",2)+1)),u){case"@charset":c=!0,d=!1;break;case"@namespace":h=!0,d=!1;break;case"@keyframes":case"@counter-style":c=!0;break;case"@document":case"@supports":f=!0,m=!1;break;case"@starting-style":case"@layer":m=!1;break;default:f=!0}if(a.commentStore.length=0,c)s=this.entity(),s||l(`expected ${i} identifier`);else if(h)s=this.expression(),s||l(`expected ${i} expression`);else if(f){const e=this.atruleUnknown(s,i,d);s=e[0],d=e[1]}if(d){let e=this.atruleBlock(o,s,m,g);if(o=e[0],s=e[1],g=e[2],!o&&!f){a.restore(),i=a.$re(/^@[a-z-]+/);const t=this.atruleUnknown(s,i,d);s=t[0],d=t[1],d&&(e=this.atruleBlock(o,s,m,g),o=e[0],s=e[1],g=e[2])}}if(o||g||!d&&s&&a.$char(";"))return a.forget(),new ze.AtRule(i,s,o,e+r,n,t.dumpLineNumbers?p(e):null,m);a.restore("at-rule options not recognised")}}},value:function(){let e;const t=[],i=a.i;do{if(e=this.expression(),e&&(t.push(e),!a.$char(",")))break}while(e);if(t.length>0)return new ze.Value(t,i+r)},important:function(){if("!"===a.currentChar())return a.$re(/^! *important/)},sub:function(){let e,t;if(a.save(),a.$char("("))return e=this.addition(),e&&a.$char(")")?(a.forget(),t=new ze.Expression([e]),t.parens=!0,t):void a.restore("Expected ')'");a.restore()},colorOperand:function(){a.save();const e=a.$re(/^[lchrgbs]\s+/);if(e)return a.forget(),new ze.Keyword(e[0]);a.restore()},multiplication:function(){let e,t,i,n,s;if(e=this.operand(),e){for(s=a.isWhitespace(-1);!a.peek(/^\/[*/]/);){if(a.save(),i=a.$char("/")||a.$char("*"),!i){let e=a.i;i=a.$str("./"),i&&c("./ operator is deprecated",e,"DEPRECATED","dot-slash-operator")}if(!i){a.forget();break}if(t=this.operand(),!t){a.restore();break}a.forget(),e.parensInOp=!0,t.parensInOp=!0,n=new ze.Operation(i,[n||e,t],s),s=a.isWhitespace(-1)}return n||e}},addition:function(){let e,t,i,n,s;if(e=this.multiplication(),e){for(s=a.isWhitespace(-1);i=a.$re(/^[-+]\s+/)||!s&&(a.$char("+")||a.$char("-")),i&&(t=this.multiplication(),t);)e.parensInOp=!0,t.parensInOp=!0,n=new ze.Operation(i,[n||e,t],s),s=a.isWhitespace(-1);return n||e}},conditions:function(){let e,t;const i=a.i;let n;if(e=this.condition(!0),e){for(;a.peek(/^,\s*(not\s*)?\(/)&&a.$char(",")&&(t=this.condition(!0),t);)n=new ze.Condition("or",n||e,t,i+r);return n||e}},condition:function(e){let t,i,n;if(t=this.conditionAnd(e),t){if(i=a.$str("or"),i){if(n=this.condition(e),!n)return;t=new ze.Condition(i,t,n)}return t}},conditionAnd:function(e){let t,i,n;const s=this;if(t=function(){const t=s.negatedCondition(e)||s.parenthesisCondition(e);return t||e?t:s.atomicCondition(e)}(),t){if(i=a.$str("and"),i){if(n=this.conditionAnd(e),!n)return;t=new ze.Condition(i,t,n)}return t}},negatedCondition:function(e){if(a.$str("not")){const t=this.parenthesisCondition(e);return t&&(t.negate=!t.negate),t}},parenthesisCondition:function(e){let t;if(a.save(),a.$str("(")){if(t=function(t){let i;if(a.save(),i=t.condition(e),i){if(a.$char(")"))return a.forget(),i;a.restore()}else a.restore()}(this),t)return a.forget(),t;if(t=this.atomicCondition(e),t){if(a.$char(")"))return a.forget(),t;a.restore(`expected ')' got '${a.currentChar()}'`)}else a.restore()}else a.restore()},atomicCondition:function(e,t){const i=this.entities,n=a.i;let s,o,u,c;const h=function(){return this.addition()||i.keyword()||i.quoted()||i.mixinLookup()}.bind(this);if(s=t||h(),s)return a.$char(">")?c=a.$char("=")?">=":">":a.$char("<")?c=a.$char("=")?"<=":"<":a.$char("=")&&(c=a.$char(">")?"=>":a.$char("<")?"=<":"="),c?(o=h(),o?u=new ze.Condition(c,s,o,n+r,!1):l("expected expression")):t||(u=new ze.Condition("=",s,new ze.Keyword("true"),n+r,!1)),u},operand:function(){const e=this.entities;let t;a.peek(/^-[@$(]/)&&(t=a.$char("-"));let i=this.sub()||e.dimension()||e.color()||e.variable()||e.property()||e.call()||e.quoted(!0)||e.colorKeyword()||this.colorOperand()||e.mixinLookup();return t&&(i.parensInOp=!0,i=new ze.Negative(i)),i},expression:function(){const e=[];let t,i;const n=a.i;do{t=this.comment(),!t||t.isLineComment?(t=this.addition()||this.entity(),t instanceof ze.Comment&&(t=null),t&&(e.push(t),a.peek(/^\/[/*]/)||(i=a.$char("/"),i&&e.push(new ze.Anonymous(i,n+r))))):e.push(t)}while(t);if(e.length>0)return new ze.Expression(e)},property:function(){const e=a.$re(/^(\*?-?[_a-zA-Z0-9-]+)\s*:/);if(e)return e[1]},ruleProperty:function(){let e=[];const t=[];let i,s;a.save();const o=a.$re(/^([_a-zA-Z0-9-]+)\s*:/);if(o)return e=[new ze.Keyword(o[1])],a.forget(),e;function l(i){const n=a.i,s=a.$re(i);if(s)return t.push(n),e.push(s[1])}for(l(/^(\*?)/);l(/^((?:[\w-]+)|(?:[@$]\{[\w-]+\}))/););if(e.length>1&&l(/^((?:\+_|\+)?)\s*:/)){for(a.forget(),""===e[0]&&(e.shift(),t.shift()),s=0;s<e.length;s++)i=e[s],e[s]="@"!==i.charAt(0)&&"$"!==i.charAt(0)?new ze.Keyword(i):"@"===i.charAt(0)?new ze.Variable("@"+i.slice(2,-1),t[s]+r,n):new ze.Property("$"+i.slice(2,-1),t[s]+r,n);return e}a.restore()}}}};ce.serializeVars=e=>{let t="";for(const i in e)if(Object.hasOwnProperty.call(e,i)){const n=e[i];t+=`${("@"===i[0]?"":"@")+i}: ${n}${";"===String(n).slice(-1)?"":";"}`}return t};class he extends u{get type(){return"Selector"}constructor(e,t,i,n,s,r){super(),this.extendList=t,this.condition=i,this.evaldCondition=!i,this._index=n,this._fileInfo=s,this.elements=this.getElements(e),this.mixinElements_=void 0,this.mediaEmpty=void 0,this.copyVisibilityInfo(r),this.setParent(this.elements,this)}accept(e){this.elements&&(this.elements=e.visitArray(this.elements)),this.extendList&&(this.extendList=e.visitArray(this.extendList)),this.condition&&(this.condition=e.visit(this.condition))}createDerived(e,t,i){e=this.getElements(e);const n=new he(e,t||this.extendList,null,this.getIndex(),this.fileInfo(),this.visibilityInfo());return n.evaldCondition=E(i)?this.evaldCondition:i,n.mediaEmpty=this.mediaEmpty,n}getElements(e){if(!e)return[new g("","&",!1,this._index,this._fileInfo)];if("string"==typeof e){const t=this._fileInfo,i=this.parse;new ce(i.context,i.importManager,t,this._index).parseNode(e,["selector"],(function(n,s){if(n)throw new F({index:n.index,message:n.message},i.imports,t.filename);e=s[0].elements}))}return e}createEmptySelectors(){const e=new g("","&",!1,this._index,this._fileInfo),t=[new he([e],null,null,this._index,this._fileInfo)];return t[0].mediaEmpty=!0,t}match(e){const t=this.elements,i=t.length;let n,s;const r=e.mixinElements();if(n=r.length,0===n||i<n)return 0;for(s=0;s<n;s++)if(t[s].value!==r[s])return 0;return n}mixinElements(){if(this.mixinElements_)return this.mixinElements_;let e=this.elements.map((function(e){return e.combinator.value+(e.value.value||e.value)})).join("").match(/[,&#*.\w-]([\w-]|(\\.))*/g);return e?"&"===e[0]&&e.shift():e=[],this.mixinElements_=e}isJustParentSelector(){return!this.mediaEmpty&&1===this.elements.length&&"&"===this.elements[0].value&&(" "===this.elements[0].combinator.value||""===this.elements[0].combinator.value)}eval(e){const t=this.condition&&this.condition.eval(e);let i=this.elements,n=this.extendList;if(i){const t=new Array(i.length);for(let n=0;n<i.length;n++)t[n]=i[n].eval(e);i=t}if(n){const t=new Array(n.length);for(let i=0;i<n.length;i++)t[i]=n[i].eval(e);n=t}return this.createDerived(i,n,t)}genCSS(e,t){let i,n;for(e&&e.firstSelector||""!==this.elements[0].combinator.value||t.add(" ",this.fileInfo(),this.getIndex()),i=0;i<this.elements.length;i++)n=this.elements[i],n.genCSS(e,t)}getIsOutput(){return this.evaldCondition}}class fe extends u{get type(){return"Keyword"}constructor(e){super(),this.value=e}genCSS(e,t){if("%"===this.value)throw{type:"Syntax",message:"Invalid % without number"};t.add(this.value)}}fe.True=new fe("true"),fe.False=new fe("false");const pe=v;class de extends u{get type(){return"Declaration"}constructor(e,t,i,n,s,r,o,a){super(),this.name=e,this.value=t instanceof u?t:new te([t?new Y(t):null]),this.important=i?" "+i.trim():"",this.merge=n,this._index=s,this._fileInfo=r,this.inline=o||!1,this.variable=void 0!==a?a:"string"==typeof e&&"@"===e.charAt(0),this.allowRoot=!0,this.setParent(this.value,this)}genCSS(e,t){t.add(this.name+(e.compress?":":": "),this.fileInfo(),this.getIndex());try{this.value.genCSS(e,t)}catch(e){const t=e;throw t.index=this._index,t.filename=this._fileInfo&&this._fileInfo.filename,e}t.add(this.important+(this.inline||e.lastRule&&e.compress?"":";"),this._fileInfo,this._index)}eval(e){let t,i,n=!1,s=this.name,r=this.variable;"string"!=typeof s&&(s=1===s.length&&s[0]instanceof fe?s[0].value:function(e,t){let i,n="";const s=t.length,r={add:function(e){n+=e},isEmpty:function(){return""===n}};for(i=0;i<s;i++)t[i].eval(e).genCSS(e,r);return n}(e,s),r=!1),"font"===s&&e.math===pe.ALWAYS&&(n=!0,t=e.math,e.math=pe.PARENS_DIVISION);try{if(e.importantScope.push({}),i=this.value.eval(e),!this.variable&&"DetachedRuleset"===i.type)throw{message:"Rulesets cannot be evaluated on a property.",index:this.getIndex(),filename:this.fileInfo().filename};let o=this.important;const a=e.importantScope.pop();return!o&&a&&a.important&&(o=a.important),new de(s,i,o,this.merge,this.getIndex(),this.fileInfo(),this.inline,r)}catch(e){const t=e;throw"number"!=typeof t.index&&(t.index=this.getIndex(),t.filename=this.fileInfo().filename),e}finally{n&&(e.math=t)}}makeImportant(){return new de(this.name,this.value,"!important",this.merge,this.getIndex(),this.fileInfo(),this.inline)}}const me={eval:function(){const e=this.value_,t=this.error_;if(t)throw t;if(!E(e))return e?fe.True:fe.False},value:function(e){this.value_=e},error:function(e){this.error_=e},reset:function(){this.value_=this.error_=null}};class ge extends u{get type(){return"Ruleset"}constructor(e,t,i,n){super(),this.selectors=e,this.rules=t,this._lookups={},this._variables=null,this._properties=null,this.strictImports=i,this.copyVisibilityInfo(n),this.allowRoot=!0,this.isRuleset=!0,this.root=void 0,this.firstRoot=void 0,this.allowImports=void 0,this.functionRegistry=void 0,this.originalRuleset=void 0,this.debugInfo=void 0,this.paths=void 0,this._rulesets=void 0,this.evalFirst=void 0,this.setParent(this.selectors,this),this.setParent(this.rules,this)}isRulesetLike(){return!0}accept(e){this.paths?this.paths=e.visitArray(this.paths,!0):this.selectors&&(this.selectors=e.visitArray(this.selectors)),this.rules&&this.rules.length&&(this.rules=e.visitArray(this.rules))}eval(e){let t,i,n,s,r,o=!1;if(this.selectors&&(i=this.selectors.length)){for(t=new Array(i),me.error({type:"Syntax",message:"it is currently only allowed in parametric mixin guards,"}),s=0;s<i;s++){n=this.selectors[s].eval(e);for(let e=0;e<n.elements.length;e++)if(n.elements[e].isVariable){r=!0;break}t[s]=n,n.evaldCondition&&(o=!0)}if(r){const r=new Array(i);for(s=0;s<i;s++)n=t[s],r[s]=n.toCSS(e);const o=t[0].getIndex(),a=t[0].fileInfo();new ce(e,this.parse.importManager,a,o).parseNode(r.join(","),["selectors"],(function(e,i){i&&(t=M(i))}))}me.reset()}else o=!0;let a=this.rules?k(this.rules):null;const l=new ge(t,a,this.strictImports,this.visibilityInfo());let c,h;l.originalRuleset=this,l.root=this.root,l.firstRoot=this.firstRoot,l.allowImports=this.allowImports,this.debugInfo&&(l.debugInfo=this.debugInfo),o||(a.length=0);const f=e.frames;let p;for(let e=0,t=f.length;e!==t&&(p=f[e].functionRegistry,!p);++e);l.functionRegistry=(p||oe).inherit(),f.unshift(l);let d=e.selectors;d||(e.selectors=d=[]),d.unshift(this.selectors),(l.root||l.allowImports||!l.strictImports)&&l.evalImports(e);const m=l.rules;for(s=0;c=m[s];s++)c.evalFirst&&(m[s]=c.eval(e));const g=e.mediaBlocks&&e.mediaBlocks.length||0;for(s=0;c=m[s];s++)"MixinCall"===c.type?(a=c.eval(e).filter((function(e){return!(e instanceof de&&e.variable)||!l.variable(e.name)})),m.splice.apply(m,[s,1].concat(a)),s+=a.length-1,l.resetCache()):"VariableCall"===c.type&&(a=c.eval(e).rules.filter((function(e){return!(e instanceof de&&e.variable)})),m.splice.apply(m,[s,1].concat(a)),s+=a.length-1,l.resetCache());for(s=0;c=m[s];s++)c.evalFirst||(m[s]=c=c.eval?c.eval(e):c);for(s=0;c=m[s];s++)if(c instanceof ge&&c.selectors&&1===c.selectors.length&&c.selectors[0]&&c.selectors[0].isJustParentSelector()){m.splice(s--,1);for(let e=0;h=c.rules[e];e++)h instanceof u&&(h.copyVisibilityInfo(c.visibilityInfo()),h instanceof de&&h.variable||m.splice(++s,0,h))}if(f.shift(),d.shift(),e.mediaBlocks)for(s=g;s<e.mediaBlocks.length;s++)e.mediaBlocks[s].bubbleSelectors(t);return l}evalImports(e){const t=this.rules;let i,n;if(t)for(i=0;i<t.length;i++)if("Import"===t[i].type){if(n=t[i].eval(e),n&&(n.length||0===n.length)){const e=n;t.splice(i,1,...e),i+=e.length-1}else t.splice(i,1,n);this.resetCache()}}makeImportant(){return new ge(this.selectors,this.rules.map((function(e){return e.makeImportant?e.makeImportant():e})),this.strictImports,this.visibilityInfo())}matchArgs(e){return!e||0===e.length}matchCondition(e,t){const i=this.selectors[this.selectors.length-1];return!!i.evaldCondition&&!(i.condition&&!i.condition.eval(new N.Eval(t,t.frames)))}resetCache(){this._rulesets=null,this._variables=null,this._properties=null,this._lookups={}}variables(){return this._variables||(this._variables=this.rules?this.rules.reduce((function(e,t){if(t instanceof de&&!0===t.variable&&(e[t.name]=t),"Import"===t.type&&t.root&&t.root.variables){const i=t.root.variables();for(const n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=t.root.variable(n))}return e}),{}):{}),this._variables}properties(){return this._properties||(this._properties=this.rules?this.rules.reduce((function(e,t){if(t instanceof de&&!0!==t.variable){const i=1===t.name.length&&t.name[0]instanceof fe?t.name[0].value:t.name;e["$"+i]?e["$"+i].push(t):e["$"+i]=[t]}return e}),{}):{}),this._properties}variable(e){const t=this.variables()[e];if(t)return this.parseValue(t)}property(e){const t=this.properties()[e];if(t)return this.parseValue(t)}lastDeclaration(){for(let e=this.rules.length;e>0;e--){const t=this.rules[e-1];if(t instanceof de)return this.parseValue(t)}}parseValue(e){const t=this;function i(e){return e.value instanceof Y&&!e.parsed?("string"==typeof e.value.value?new ce(this.parse.context,this.parse.importManager,e.fileInfo(),e.value.getIndex()).parseNode(e.value.value,["value","important"],(function(t,i){t&&(e.parsed=!0),i&&(e.value=i[0],e.important=i[1]||"",e.parsed=!0)})):e.parsed=!0,e):e}if(Array.isArray(e)){const n=[];for(let s=0;s<e.length;s++)n.push(i.call(t,e[s]));return n}return i.call(t,e)}rulesets(){if(!this.rules)return[];const e=[],t=this.rules;let i,n;for(i=0;n=t[i];i++)n.isRuleset&&e.push(n);return e}prependRule(e){const t=this.rules;t?t.unshift(e):this.rules=[e],this.setParent(e,this)}find(e,t,i){t=t||this;const n=[];let s,r;const o=e.toCSS({});return o in this._lookups?this._lookups[o]:(this.rulesets().forEach((function(o){if(o!==t)for(let a=0;a<o.selectors.length;a++)if(s=e.match(o.selectors[a]),s){if(e.elements.length>s){if(!i||i(o)){r=o.find(new he(e.elements.slice(s)),t,i);for(let e=0;e<r.length;++e)r[e].path.push(o);Array.prototype.push.apply(n,r)}}else n.push({rule:o,path:[]});break}})),this._lookups[o]=n,n)}genCSS(e,t){let i,n;let s,r,o,a=[];e.tabLevel=e.tabLevel||0,this.root||e.tabLevel++;const l=e.compress?"":Array(e.tabLevel+1).join(" "),u=e.compress?"":Array(e.tabLevel).join(" ");let c,h=0,f=0;for(i=0;r=this.rules[i];i++)r instanceof Q?(f===i&&f++,a.push(r)):r.isCharset&&r.isCharset()?(a.splice(h,0,r),h++,f++):"Import"===r.type?(a.splice(f,0,r),f++):a.push(r);if(a=[].concat(a),!this.root){s=H(e,this,u),s&&(t.add(s),t.add(u));const r=this.paths,a=r.length;let h;for(c=e.compress?",":",\n"+u,i=0;i<a;i++)if(o=r[i],h=o.length)for(i>0&&t.add(c),e.firstSelector=!0,o[0].genCSS(e,t),e.firstSelector=!1,n=1;n<h;n++)o[n].genCSS(e,t);t.add((e.compress?"{":" {\n")+l)}for(i=0;r=a[i];i++){i+1===a.length&&(e.lastRule=!0);const n=e.lastRule;r.isRulesetLike()&&(e.lastRule=!1),r.genCSS?r.genCSS(e,t):r.value&&t.add(r.value.toString()),e.lastRule=n,!e.lastRule&&r.isVisible()?t.add(e.compress?"":"\n"+l):e.lastRule=!1}this.root||(t.add(e.compress?"}":`\n${u}}`),e.tabLevel--),t.isEmpty()||e.compress||!this.firstRoot||t.add("\n")}joinSelectors(e,t,i){for(let n=0;n<i.length;n++)this.joinSelector(e,t,i[n])}joinSelector(e,t,i){function n(e,t){let i,n;if(0===e.length)i=new p(e[0]);else{const s=new Array(e.length);for(n=0;n<e.length;n++)s[n]=new g(null,e[n],t.isVariable,t._index,t._fileInfo);i=new p(new he(s))}return i}function s(e,t){let i,n;return i=new g(null,e,t.isVariable,t._index,t._fileInfo),n=new he([i]),n}function r(e,t,i,n){let s,r,o;if(s=[],e.length>0?(s=k(e),r=s.pop(),o=n.createDerived(k(r.elements))):o=n.createDerived([]),t.length>0){let e=i.combinator;const n=t[0].elements[0];e.emptyOrWhitespace&&!n.combinator.emptyOrWhitespace&&(e=n.combinator),o.elements.push(new g(e,n.value,i.isVariable,i._index,i._fileInfo)),o.elements=o.elements.concat(t[0].elements.slice(1))}if(0!==o.elements.length&&s.push(o),t.length>1){let e=t.slice(1);e=e.map((function(e){return e.createDerived(e.elements,[])})),s=s.concat(e)}return s}function o(e,t,i,n,s){let o;for(o=0;o<e.length;o++){const a=r(e[o],t,i,n);s.push(a)}return s}function a(e,t){let i,n;if(0!==e.length)if(0!==t.length)for(i=0;n=t[i];i++)n.length>0?n[n.length-1]=n[n.length-1].createDerived(n[n.length-1].elements.concat(e)):n.push(new he(e));else t.push([new he(e)])}function l(e,t){const i=t.createDerived(t.elements,t.extendList,t.evaldCondition);return i.copyVisibilityInfo(e),i}let u,c,h;if(c=[],h=function e(t,i,l){let u,c,h,f,d,m,v,y,b,w,x=!1;function S(e){let t;return e.value instanceof p?(t=e.value.value,t instanceof he?t:null):null}for(f=[],d=[[]],u=0;y=l.elements[u];u++)if("&"!==y.value){const t=S(y);if(null!==t){a(f,d);const r=[];let u;const c=[];if(t.elements.some(e=>e instanceof he)){const r=[];for(const n of t.elements)if(n instanceof he){const t=[],s=e(t,i,n);u=u||s,t.length>0&&t[0].length>0?r.push(t[0][0]):r.push(n)}else r.push(n);x=x||u;o(d,[s(n([new he(r)],y),y)],y,l,c)}else for(u=e(r,i,t),x=x||u,h=0;h<r.length;h++){o(d,[s(n(r[h],y),y)],y,l,c)}d=c,f=[]}else f.push(y)}else{for(x=!0,m=[],a(f,d),c=0;c<d.length;c++)if(v=d[c],0===i.length)v.length>0&&v[0].elements.push(new g(y.combinator,"",y.isVariable,y._index,y._fileInfo)),m.push(v);else for(h=0;h<i.length;h++){const e=r(v,i[h],y,l);m.push(e)}d=m,f=[]}for(a(f,d),u=0;u<d.length;u++)b=d[u].length,b>0&&(t.push(d[u]),w=d[u][b-1],d[u][b-1]=w.createDerived(w.elements,l.extendList));return x}(c,t,i),!h)if(t.length>0)for(c=[],u=0;u<t.length;u++){const e=t[u].map(l.bind(this,i.visibilityInfo()));e.push(i),c.push(e)}else c=[[i]];for(u=0;u<c.length;u++)e.push(c[u])}}const ve={isRulesetLike:()=>!0,accept(e){const t=this;t.features&&(t.features=e.visit(t.features)),t.rules&&(t.rules=e.visitArray(t.rules))},evalFunction:function(){if(!this.features||!Array.isArray(this.features.value)||this.features.value.length<1)return;const e=this.features.value;let t,i;for(let n=0;n<e.length;++n)t=e[n],("Keyword"===t.type||"Variable"===t.type)&&n+1<e.length&&(t.noSpacing||null==t.noSpacing)&&(i=e[n+1],"Paren"===i.type&&i.noSpacing&&(e[n]=new ee([t,i]),e.splice(n+1,1),e[n].noSpacing=!0))},evalTop(e){const t=this;t.evalFunction();let i=t;if(e.mediaBlocks.length>1){const n=new he([],null,null,t.getIndex(),t.fileInfo()).createEmptySelectors();i=new ge(n,e.mediaBlocks),i.multiMedia=!0,i.copyVisibilityInfo(t.visibilityInfo()),t.setParent(i,t)}return delete e.mediaBlocks,delete e.mediaPath,i},evalNested(e){const t=this;let i,n;t.evalFunction();const s=e.mediaPath.concat([t]);for(i=0;i<s.length;i++){if(s[i].type!==t.type){const i=e.mediaBlocks.indexOf(t);return i>-1&&e.mediaBlocks.splice(i,1),t}n=s[i].features instanceof te?s[i].features.value:s[i].features,s[i]=Array.isArray(n)?n:[n]}return t.features=new te(t.permute(s).map(e=>{for(e=e.map(e=>e.toCSS?e:new Y(e)),i=e.length-1;i>0;i--)e.splice(i,0,new Y("and"));return new ee(e)})),t.setParent(t.features,t),new ge([],[])},permute(e){if(0===e.length)return[];if(1===e.length)return e[0];{const t=[],i=this.permute(e.slice(1));for(let n=0;n<i.length;n++)for(let s=0;s<e[0].length;s++)t.push([e[0][s]].concat(i[n]));return t}},bubbleSelectors(e){e&&(this.rules=[new ge(k(e),[this.rules[0]])],this.setParent(this.rules,this))}};class ye extends u{get type(){return"AtRule"}constructor(e,t,i,n,s,r,o,a){let l;if(super(),new he([],null,null,n,s).createEmptySelectors(),this.name=e,this.value=t instanceof u?t:t?new Y(t):t,this.simpleBlock=void 0,this.declarations=void 0,this.rules=void 0,i){if(Array.isArray(i)){const e=this.declarationsBlock(i);let n=!0;i.forEach(e=>{"Ruleset"===e.type&&e.rules&&(n=n&&this.declarationsBlock(e.rules,!0))}),e&&!o?(this.simpleBlock=!0,this.declarations=i):!n||1!==i.length||o||t?this.rules=i:(this.simpleBlock=!0,this.declarations=i[0].rules?i[0].rules:i)}else{!this.declarationsBlock(i.rules)||o||t?(this.rules=[i],this.rules[0].selectors=new he([],null,null,n,s).createEmptySelectors()):(this.simpleBlock=!0,this.declarations=i.rules)}if(!this.simpleBlock)for(l=0;l<this.rules.length;l++)this.rules[l].allowImports=!0;this.declarations&&this.setParent(this.declarations,this),this.rules&&this.setParent(this.rules,this)}this._index=n,this._fileInfo=s,this.debugInfo=r,this.isRooted=o||!1,this.copyVisibilityInfo(a),this.allowRoot=!0}declarationsBlock(e,t=!1){return t?e.filter((function(e){return"Declaration"===e.type||"Comment"===e.type})).length===e.length:e.filter((function(e){return("Declaration"===e.type||"Comment"===e.type)&&!e.merge})).length===e.length}keywordList(e){return!!Array.isArray(e)&&e.filter((function(e){return"Keyword"===e.type||"Comment"===e.type})).length===e.length}accept(e){const t=this.value,i=this.rules,n=this.declarations;i?this.rules=e.visitArray(i):n&&(this.declarations=e.visitArray(n)),t&&(this.value=e.visit(t))}isRulesetLike(){return this.rules||!this.isCharset()}isCharset(){return"@charset"===this.name}genCSS(e,t){const i=this.value,n=this.rules||this.declarations;t.add(this.name,this.fileInfo(),this.getIndex()),i&&(t.add(" "),i.genCSS(e,t)),this.simpleBlock?this.outputRuleset(e,t,this.declarations):n?this.outputRuleset(e,t,n):t.add(";")}eval(e){let t,i,n=this.value,s=this.rules||this.declarations;if(t=e.mediaPath,i=e.mediaBlocks,e.mediaPath=[],e.mediaBlocks=[],n&&(n=n.eval(e)),s&&(s=this.evalRoot(e,s)),Array.isArray(s)&&s[0].rules&&Array.isArray(s[0].rules)&&s[0].rules.length){!this.declarationsBlock(s[0].rules,!0)||this.isRooted||n||(ie(s[0].rules),s=s[0].rules,s.forEach(e=>{e.merge=!1}))}return this.simpleBlock&&s&&(s[0].functionRegistry=e.frames[0].functionRegistry.inherit(),s=s.map((function(t){return t.eval(e)}))),e.mediaPath=t,e.mediaBlocks=i,new ye(this.name,n,s,this.getIndex(),this.fileInfo(),this.debugInfo,this.isRooted,this.visibilityInfo())}evalRoot(e,t){let i=0,n=0,s=!0;this.simpleBlock||(t=[t[0].eval(e)]);let r=[];if(e.frames.length>0)for(let t=0;t<e.frames.length;t++){const o=e.frames[t];if("Ruleset"===o.type&&o.rules&&o.rules.length>0&&o&&!o.root&&o.selectors&&o.selectors.length>0&&(r=r.concat(o.selectors)),r.length>0){r.every(e=>e.elements&&e.elements.length>0&&e.elements.every(e=>"&"===e.value))?(s=!1,n++):i++}}const o=i>0&&n>0&&!s;return(this.isRooted&&i>0&&0===n&&s||!o)&&(t[0].root=!0),t}variable(e){if(this.rules)return ge.prototype.variable.call(this.rules[0],e)}find(){if(this.rules)return ge.prototype.find.apply(this.rules[0],arguments)}rulesets(){if(this.rules)return ge.prototype.rulesets.apply(this.rules[0])}outputRuleset(e,t,i){const n=i.length;let s;if(e.tabLevel=1+(0|e.tabLevel),e.compress){for(t.add("{"),s=0;s<n;s++)i[s].genCSS(e,t);return t.add("}"),void e.tabLevel--}const r="\n"+Array(e.tabLevel).join(" "),o=r+" ";if(n){for(t.add(" {"+o),i[0].genCSS(e,t),s=1;s<n;s++)t.add(o),i[s].genCSS(e,t);t.add(r+"}")}else t.add(` {${r}}`);e.tabLevel--}}const{evalFunction:be,evalTop:we,evalNested:xe,permute:Se,bubbleSelectors:Ie}=ve;Object.assign(ye.prototype,{evalFunction:be,evalTop:we,evalNested:xe,permute:Se,bubbleSelectors:Ie});class Ce extends u{get type(){return"DetachedRuleset"}constructor(e,t){super(),this.ruleset=e,this.frames=t,this.evalFirst=!0,this.setParent(this.ruleset,this)}accept(e){this.ruleset=e.visit(this.ruleset)}eval(e){const t=this.frames||k(e.frames);return new Ce(this.ruleset,t)}callEval(e){return this.ruleset.eval(this.frames?new N.Eval(e,this.frames.concat(e.frames)):e)}}const ke=v;class Ae extends u{get type(){return"Operation"}constructor(e,t,i){super(),this.op=e.trim(),this.operands=t,this.isSpaced=i}accept(e){this.operands=e.visitArray(this.operands)}eval(e){let t,i=this.operands[0].eval(e),n=this.operands[1].eval(e);if(e.isMathOn(this.op)){if(t="./"===this.op?"/":this.op,i instanceof X&&n instanceof c&&(i=i.toColor()),n instanceof X&&i instanceof c&&(n=n.toColor()),!i.operate||!n.operate){if((i instanceof Ae||n instanceof Ae)&&"/"===i.op&&e.math===ke.PARENS_DIVISION)return new Ae(this.op,[i,n],this.isSpaced);throw{type:"Operation",message:"Operation on an invalid type"}}return i.operate(e,t,n)}return new Ae(this.op,[i,n],this.isSpaced)}genCSS(e,t){this.operands[0].genCSS(e,t),this.isSpaced&&t.add(" "),t.add(this.op),this.isSpaced&&t.add(" "),this.operands[1].genCSS(e,t)}}class _e{constructor(e,t,i,n){this.name=e.toLowerCase(),this.index=i,this.context=t,this.currentFileInfo=n,this.func=t.frames[0].functionRegistry.get(this.name)}isValid(){return Boolean(this.func)}call(e){Array.isArray(e)||(e=[e]);const t=this.func.evalArgs;!1!==t&&(e=e.map(e=>e.eval(this.context)));const i=e=>!("Comment"===e.type);return e=e.filter(i).map(e=>{if("Expression"===e.type){const t=e.value.filter(i);return 1===t.length?e.parens&&"/"===t[0].op?e:t[0]:new ee(t)}return e}),!1===t?this.func(this.context,...e):this.func(...e)}}class $e extends u{get type(){return"Call"}constructor(e,t,i,n){super(),this.name=e,this.args=t,this.calc="calc"===e,this._index=i,this._fileInfo=n}accept(e){this.args&&(this.args=e.visitArray(this.args))}eval(e){const t=e.mathOn;e.mathOn=!this.calc,(this.calc||e.inCalc)&&e.enterCalc();const i=()=>{(this.calc||e.inCalc)&&e.exitCalc(),e.mathOn=t};let n;const s=new _e(this.name,e,this.getIndex(),this.fileInfo());if(s.isValid())try{n=s.call(this.args),i()}catch(e){if(e.hasOwnProperty("line")&&e.hasOwnProperty("column"))throw e;throw{type:e.type||"Runtime",message:`Error evaluating function \`${this.name}\`${e.message?": "+e.message:""}`,index:this.getIndex(),filename:this.fileInfo().filename,line:e.lineNumber,column:e.columnNumber}}if(null!=n)return n instanceof u||(n=new Y(n&&!0!==n?n.toString():null)),n._index=this._index,n._fileInfo=this._fileInfo,n;const r=this.args.map(t=>t.eval(e));return i(),new $e(this.name,r,this.getIndex(),this.fileInfo())}genCSS(e,t){t.add(this.name+"(",this.fileInfo(),this.getIndex());for(let i=0;i<this.args.length;i++)this.args[i].genCSS(e,t),i+1<this.args.length&&t.add(", ");t.add(")")}}class Me extends u{get type(){return"Variable"}constructor(e,t,i){super(),this.name=e,this._index=t,this._fileInfo=i,this.evaluating=void 0}eval(e){let t,i=this.name;if(0===i.indexOf("@@")&&(i="@"+new Me(i.slice(1),this.getIndex(),this.fileInfo()).eval(e).value),this.evaluating)throw{type:"Name",message:"Recursive variable definition for "+i,filename:this.fileInfo().filename,index:this.getIndex()};if(this.evaluating=!0,t=this.find(e.frames,(function(t){const n=t.variable(i);if(n){if(n.important){e.importantScope[e.importantScope.length-1].important=n.important}return e.inCalc?new $e("_SELF",[n.value],0,void 0).eval(e):n.value.eval(e)}})),t)return this.evaluating=!1,t;throw{type:"Name",message:`variable ${i} is undefined`,filename:this.fileInfo().filename,index:this.getIndex()}}find(e,t){for(let i,n=0;n<e.length;n++)if(i=t.call(e,e[n]),i)return i;return null}}class Ee extends u{get type(){return"Property"}constructor(e,t,i){super(),this.name=e,this._index=t,this._fileInfo=i,this.evaluating=void 0}eval(e){let t;const i=this.name,n=e.pluginManager.less.visitors.ToCSSVisitor.prototype._mergeRules;if(this.evaluating)throw{type:"Name",message:"Recursive property reference for "+i,filename:this.fileInfo().filename,index:this.getIndex()};if(this.evaluating=!0,t=this.find(e.frames,(function(t){let s;const r=t.property(i);if(r){for(let e=0;e<r.length;e++)s=r[e],r[e]=new de(s.name,s.value,s.important,s.merge,s.index,s.currentFileInfo,s.inline,s.variable);if(n(r),s=r[r.length-1],s.important){e.importantScope[e.importantScope.length-1].important=s.important}return s=s.value.eval(e),s}})),t)return this.evaluating=!1,t;throw{type:"Name",message:`Property '${i}' is undefined`,filename:this.currentFileInfo.filename,index:this.index}}find(e,t){for(let i,n=0;n<e.length;n++)if(i=t.call(e,e[n]),i)return i;return null}}class Pe extends u{get type(){return"Attribute"}constructor(e,t,i,n){super(),this.key=e,this.op=t,this.value=i,this.cif=n}eval(e){return new Pe(this.key.eval?this.key.eval(e):this.key,this.op,this.value&&this.value.eval?this.value.eval(e):this.value,this.cif)}genCSS(e,t){t.add(this.toCSS(e))}toCSS(e){let t=this.key.toCSS?this.key.toCSS(e):this.key;return this.op&&(t+=this.op,t+=this.value.toCSS?this.value.toCSS(e):this.value),this.cif&&(t=t+" "+this.cif),`[${t}]`}}class Re extends u{get type(){return"Quoted"}constructor(e,t,i,n,s){super(),this.escaped=void 0===i||i,this.value=t||"",this.quote=e.charAt(0),this._index=n,this._fileInfo=s,this.variableRegex=/@\{([\w-]+)\}/g,this.propRegex=/\$\{([\w-]+)\}/g,this.allowRoot=i}genCSS(e,t){this.escaped||t.add(this.quote,this.fileInfo(),this.getIndex()),t.add(this.value),this.escaped||t.add(this.quote)}containsVariables(){return this.value.match(this.variableRegex)}eval(e){const t=this;let i=this.value;function n(e,t,i){let n=e;do{e=n.toString(),n=e.replace(t,i)}while(e!==n);return n}return i=n(i,this.variableRegex,(function(i,n,s){const r=new Me("@"+(n??s),t.getIndex(),t.fileInfo()).eval(e);return r instanceof Re?r.value:r.toCSS(e)})),i=n(i,this.propRegex,(function(i,n,s){const r=new Ee("$"+(n??s),t.getIndex(),t.fileInfo()).eval(e);return r instanceof Re?r.value:r.toCSS(e)})),new Re(this.quote+i+this.quote,i,this.escaped,this.getIndex(),this.fileInfo())}compare(e){return"Quoted"!==e.type||this.escaped||e.escaped?e.toCSS&&this.toCSS({})===e.toCSS({})?0:void 0:u.numericCompare(this.value,e.value)}}class Fe extends u{get type(){return"Url"}constructor(e,t,i,n){super(),this.value=e,this._index=t,this._fileInfo=i,this.isEvald=n}accept(e){this.value=e.visit(this.value)}genCSS(e,t){t.add("url("),this.value.genCSS(e,t),t.add(")")}eval(e){const t=this.value.eval(e);let i;if(!this.isEvald&&(i=this.fileInfo()&&this.fileInfo().rootpath,"string"==typeof i&&"string"==typeof t.value&&e.pathRequiresRewrite(t.value)?(t.quote||(i=i.replace(/[()'"\s]/g,(function(e){return"\\"+e}))),t.value=e.rewritePath(t.value,i)):t.value=e.normalizePath(t.value),e.urlArgs&&!t.value.match(/^\s*data:/))){const i=(-1===t.value.indexOf("?")?"?":"&")+e.urlArgs;-1!==t.value.indexOf("#")?t.value=t.value.replace("#",i+"#"):t.value+=i}return new Fe(t,this.getIndex(),this.fileInfo(),!0)}}class Oe extends ye{get type(){return"Media"}constructor(e,t,i,n,s){super(),this._index=i,this._fileInfo=n;const r=new he([],null,null,this._index,this._fileInfo).createEmptySelectors();this.features=new te(t),this.rules=[new ge(r,e)],this.rules[0].allowImports=!0,this.copyVisibilityInfo(s),this.allowRoot=!0,this.setParent(r,this),this.setParent(this.features,this),this.setParent(this.rules,this)}genCSS(e,t){t.add("@media ",this._fileInfo,this._index),this.features.genCSS(e,t),this.outputRuleset(e,t,this.rules)}eval(e){e.mediaBlocks||(e.mediaBlocks=[],e.mediaPath=[]);const t=new Oe(null,[],this._index,this._fileInfo,this.visibilityInfo());this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,t.debugInfo=this.debugInfo),t.features=this.features.eval(e),e.mediaPath.push(t),e.mediaBlocks.push(t);const i=e.frames[0].functionRegistry;return i&&(this.rules[0].functionRegistry=i.inherit()),e.frames.unshift(this.rules[0]),t.rules=[this.rules[0].eval(e)],e.frames.shift(),e.mediaPath.pop(),0===e.mediaPath.length?t.evalTop(e):t.evalNested(e)}}Object.assign(Oe.prototype,ve);class Ve extends u{get type(){return"Import"}constructor(e,t,i,n,s,r){if(super(),this.options=i,this._index=n,this._fileInfo=s,this.path=e,this.features=t,this.allowRoot=!0,this.css=void 0,this.layerCss=void 0,this.root=void 0,this.importedFilename=void 0,this.skip=void 0,this.error=void 0,void 0!==this.options.less||this.options.inline)this.css=!this.options.less||this.options.inline;else{const e=this.getPath();e&&/[#.&?]css([?;].*)?$/.test(e)&&(this.css=!0)}this.copyVisibilityInfo(r),this.features&&this.setParent(this.features,this),this.setParent(this.path,this)}accept(e){this.features&&(this.features=e.visit(this.features)),this.path=e.visit(this.path),this.options.isPlugin||this.options.inline||!this.root||(this.root=e.visit(this.root))}genCSS(e,t){this.css&&void 0===this.path._fileInfo.reference&&(t.add("@import ",this._fileInfo,this._index),this.path.genCSS(e,t),this.features&&(t.add(" "),this.features.genCSS(e,t)),t.add(";"))}getPath(){return this.path instanceof Fe?this.path.value.value:this.path.value}isVariableImport(){let e=this.path;return e instanceof Fe&&(e=e.value),!(e instanceof Re)||e.containsVariables()}evalForImport(e){let t=this.path;return t instanceof Fe&&(t=t.value),new Ve(t.eval(e),this.features,this.options,this._index||0,this._fileInfo,this.visibilityInfo())}evalPath(e){const t=this.path.eval(e),i=this._fileInfo;if(!(t instanceof Fe)){const n=t.value;i&&n&&e.pathRequiresRewrite(n)?t.value=e.rewritePath(n,i.rootpath):t.value=e.normalizePath(t.value)}return t}eval(e){const t=this.doEval(e);return(this.options.reference||this.blocksVisibility())&&(Array.isArray(t)?t.forEach((function(e){e.addVisibilityBlock()})):t.addVisibilityBlock()),t}doEval(e){let t;const i=this.features&&this.features.eval(e);if(this.options.isPlugin){if(this.root&&this.root.eval)try{this.root.eval(e)}catch(e){throw e.message="Plugin error during evaluation",new F(e,this.root.imports,this.root.filename)}const t=e.frames[0],i=t&&t.functionRegistry;return i&&this.root&&this.root.functions&&i.addMultiple(this.root.functions),[]}if(this.skip&&("function"==typeof this.skip&&(this.skip=this.skip()),this.skip))return[];if(this.features){let e=this.features.value;if(Array.isArray(e)&&e.length>=1){const t=e[0];if("Expression"===t.type&&Array.isArray(t.value)&&t.value.length>=2){e=t.value;"Keyword"===e[0].type&&"layer"===e[0].value&&"Paren"===e[1].type&&(this.css=!1)}}}if(this.options.inline){const e=new Y(this.root,0,{filename:this.importedFilename,reference:this.path._fileInfo&&this.path._fileInfo.reference},!0,!0);return this.features?new Oe([e],this.features.value):[e]}if(this.css||this.layerCss){const t=new Ve(this.evalPath(e),i,this.options,this._index||0);if(this.layerCss&&(t.css=this.layerCss,t.path._fileInfo=this._fileInfo),!t.css&&this.error)throw this.error;return t}if(this.root){if(this.features){let e=this.features.value;if(Array.isArray(e)&&1===e.length){const t=e[0];if("Expression"===t.type&&Array.isArray(t.value)&&t.value.length>=2){e=t.value;if("Keyword"===e[0].type&&"layer"===e[0].value&&"Paren"===e[1].type)return this.layerCss=!0,e[0]=new ee(e.slice(0,2)),e.splice(1,1),e[0].noSpacing=!0,this}}}return t=new ge(null,k(this.root.rules)),t.evalImports(e),this.features?new Oe(t.rules,this.features.value):t.rules}if(this.features){let e=this.features.value;if(Array.isArray(e)&&e.length>=1&&(e=e[0].value,Array.isArray(e)&&e.length>=2)){if("Keyword"===e[0].type&&"layer"===e[0].value&&"Paren"===e[1].type)return this.css=!0,e[0]=new ee(e.slice(0,2)),e.splice(1,1),e[0].noSpacing=!0,this}}return[]}}class Le extends u{evaluateJavaScript(e,t){let i;const n=this,s={};if(!t.javascriptEnabled)throw{message:"Inline JavaScript is not enabled. Is it set in your options?",filename:this.fileInfo().filename,index:this.getIndex()};let r;e=e.replace(/@\{([\w-]+)\}/g,(function(e,i){return n.jsify(new Me("@"+i,n.getIndex(),n.fileInfo()).eval(t))}));try{r=new Function(`return (${e})`)}catch(t){throw{message:`JavaScript evaluation error: ${t.message} from \`${e}\``,filename:this.fileInfo().filename,index:this.getIndex()}}const o=t.frames[0].variables();for(const e in o)o.hasOwnProperty(e)&&(s[e.slice(1)]={value:o[e].value,toJS:function(){return this.value.eval(t).toCSS(t)}});try{i=r.call(s)}catch(e){throw{message:`JavaScript evaluation error: '${e.name}: ${e.message.replace(/["]/g,"'")}'`,filename:this.fileInfo().filename,index:this.getIndex()}}return i}jsify(e){return Array.isArray(e.value)&&e.value.length>1?`[${e.value.map((function(e){return e.toCSS(void 0)})).join(", ")}]`:e.toCSS(void 0)}}class De extends Le{get type(){return"JavaScript"}constructor(e,t,i,n){super(),this.escaped=t,this.expression=e,this._index=i,this._fileInfo=n}eval(e){const t=this.evaluateJavaScript(this.expression,e),i=typeof t;return"number"!==i||isNaN(t)?"string"===i?new Re(`"${t}"`,t,this.escaped,this._index):Array.isArray(t)?new Y(t.join(", ")):new Y(t):new X(t)}}class Ne extends u{get type(){return"Assignment"}constructor(e,t){super(),this.key=e,this.value=t}accept(e){this.value=e.visit(this.value)}eval(e){return this.value.eval?new Ne(this.key,this.value.eval(e)):this}genCSS(e,t){t.add(this.key+"="),this.value.genCSS?this.value.genCSS(e,t):t.add(this.value)}}class Be extends u{get type(){return"QueryInParens"}constructor(e,t,i,n,s,r){super(),this.op=e.trim(),this.lvalue=t,this.mvalue=i,this.op2=n?n.trim():null,this.rvalue=s,this._index=r}accept(e){this.lvalue=e.visit(this.lvalue),this.mvalue=e.visit(this.mvalue),this.rvalue&&(this.rvalue=e.visit(this.rvalue))}eval(e){return new Be(this.op,this.lvalue.eval(e),this.mvalue.eval(e),this.op2,this.rvalue?this.rvalue.eval(e):null,this._index||0)}genCSS(e,t){this.lvalue.genCSS(e,t),t.add(" "+this.op+" "),this.mvalue.genCSS(e,t),this.rvalue&&(t.add(" "+this.op2+" "),this.rvalue.genCSS(e,t))}}class Ue extends ye{get type(){return"Container"}constructor(e,t,i,n,s){super(),this._index=i,this._fileInfo=n;const r=new he([],null,null,this._index,this._fileInfo).createEmptySelectors();this.features=new te(t),this.rules=[new ge(r,e)],this.rules[0].allowImports=!0,this.copyVisibilityInfo(s),this.allowRoot=!0,this.setParent(r,this),this.setParent(this.features,this),this.setParent(this.rules,this),this._evaluated=void 0}genCSS(e,t){t.add("@container ",this._fileInfo,this._index),this.features.genCSS(e,t),this.outputRuleset(e,t,this.rules)}eval(e){if(this._evaluated)return this;e.mediaBlocks||(e.mediaBlocks=[],e.mediaPath=[]);const t=new Ue(null,[],this._index,this._fileInfo,this.visibilityInfo());t._evaluated=!0,this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,t.debugInfo=this.debugInfo),t.features=this.features.eval(e),e.mediaPath.push(t),e.mediaBlocks.push(t);const i=e.frames[0].functionRegistry;return i&&(this.rules[0].functionRegistry=i.inherit()),e.frames.unshift(this.rules[0]),t.rules=[this.rules[0].eval(e)],e.frames.shift(),e.mediaPath.pop(),0===e.mediaPath.length?t.evalTop(e):t.evalNested(e)}}Object.assign(Ue.prototype,ve);class je extends u{get type(){return"Negative"}constructor(e){super(),this.value=e}genCSS(e,t){t.add("-"),this.value.genCSS(e,t)}eval(e){return e.isMathOn("*")?new Ae("*",[new X(-1),this.value],!1).eval(e):new je(this.value.eval(e))}}class qe extends u{get type(){return"Extend"}constructor(e,t,i,n,s){switch(super(),this.selector=e,this.option=t,this.object_id=qe.next_id++,this.parent_ids=[this.object_id],this._index=i,this._fileInfo=n,this.copyVisibilityInfo(s),this.allowRoot=!0,this.allowBefore=!1,this.allowAfter=!1,t){case"!all":case"all":this.allowBefore=!0,this.allowAfter=!0;break;default:this.allowBefore=!1,this.allowAfter=!1}this.setParent(this.selector,this)}accept(e){this.selector=e.visit(this.selector)}eval(e){return new qe(this.selector.eval(e),this.option,this.getIndex(),this.fileInfo(),this.visibilityInfo())}clone(e){return new qe(this.selector,this.option,this.getIndex(),this.fileInfo(),this.visibilityInfo())}findSelfSelectors(e){let t,i,n=[];for(t=0;t<e.length;t++)i=e[t].elements,t>0&&i.length&&""===i[0].combinator.value&&(i[0].combinator.value=" "),n=n.concat(e[t].elements);this.selfSelectors=[new he(n)],this.selfSelectors[0].copyVisibilityInfo(this.visibilityInfo())}}qe.next_id=0;class Te extends ge{get type(){return"MixinDefinition"}constructor(e,t,i,n,s,r,o){super(null,null),this.name=e||"anonymous mixin",this.selectors=[new he([new g(null,e,!1,this._index,this._fileInfo)])],this.params=t,this.condition=n,this.variadic=s,this.arity=t.length,this.rules=i,this._lookups={};const a=[];this.required=t.reduce((function(e,t){return!t.name||t.name&&!t.value?e+1:(a.push(t.name),e)}),0),this.optionalParameters=a,this.frames=r,this.copyVisibilityInfo(o),this.allowRoot=!0,this.evalFirst=!0}accept(e){this.params&&this.params.length&&(this.params=e.visitArray(this.params)),this.rules=e.visitArray(this.rules),this.condition&&(this.condition=e.visit(this.condition))}evalParams(e,t,i,n){const s=new ge(null,null);let r,o;const a=k(this.params);let l,u,c,h,f,p,d=0;if(t.frames&&t.frames[0]&&t.frames[0].functionRegistry&&(s.functionRegistry=t.frames[0].functionRegistry.inherit()),t=new N.Eval(t,[s].concat(t.frames)),i)for(d=(i=k(i)).length,l=0;l<d;l++)if(o=i[l],h=o&&o.name){for(f=!1,u=0;u<a.length;u++)if(!n[u]&&h===a[u].name){n[u]=o.value.eval(e),s.prependRule(new de(h,o.value.eval(e))),f=!0;break}if(f){i.splice(l,1),l--;continue}throw{type:"Runtime",message:`Named argument for ${this.name} ${i[l].name} not found`}}for(p=0,l=0;l<a.length;l++)if(!n[l]){if(o=i&&i[p],h=a[l].name)if(a[l].variadic){for(r=[],u=p;u<d;u++)r.push(i[u].value.eval(e));s.prependRule(new de(h,new ee(r).eval(e)))}else{if(c=o&&o.value,c)c=Array.isArray(c)?new Ce(new ge(null,c)):c.eval(e);else{if(!a[l].value)throw{type:"Runtime",message:`wrong number of arguments for ${this.name} (${d} for ${this.arity})`};c=a[l].value.eval(t),s.resetCache()}s.prependRule(new de(h,c)),n[l]=c}if(a[l].variadic&&i)for(u=p;u<d;u++)n[u]=i[u].value.eval(e);p++}return s}makeImportant(){const e=this.rules?this.rules.map((function(e){return e.makeImportant?e.makeImportant(!0):e})):this.rules;return new Te(this.name,this.params,e,this.condition,this.variadic,this.frames)}eval(e){return new Te(this.name,this.params,this.rules,this.condition,this.variadic,this.frames||k(e.frames))}evalCall(e,t,i){const n=[],s=this.frames?this.frames.concat(e.frames):e.frames,r=this.evalParams(e,new N.Eval(e,s),t,n);let o,a;return r.prependRule(new de("@arguments",new ee(n).eval(e))),o=k(this.rules),a=new ge(null,o),a.originalRuleset=this,a=a.eval(new N.Eval(e,[this,r].concat(s))),i&&(a=a.makeImportant()),a}matchCondition(e,t){return!(this.condition&&!this.condition.eval(new N.Eval(t,[this.evalParams(t,new N.Eval(t,this.frames?this.frames.concat(t.frames):t.frames),e,[])].concat(this.frames||[]).concat(t.frames))))}matchArgs(e,t){const i=e&&e.length||0;let n;const s=this.optionalParameters,r=e?e.reduce((function(e,t){return s.indexOf(t.name)<0?e+1:e}),0):0;if(this.variadic){if(r<this.required-1)return!1}else{if(r<this.required)return!1;if(i>this.params.length)return!1}n=Math.min(r,this.arity);for(let i=0;i<n;i++)if(!this.params[i].name&&!this.params[i].variadic&&e[i].value.eval(t).toCSS({})!=this.params[i].value.eval(t).toCSS({}))return!1;return!0}}var ze={Node:u,Color:c,AtRule:ye,DetachedRuleset:Ce,Operation:Ae,Dimension:X,Unit:Z,Keyword:fe,Variable:Me,Property:Ee,Ruleset:ge,Element:g,Attribute:Pe,Combinator:m,Selector:he,Quoted:Re,Expression:ee,Declaration:de,Call:$e,URL:Fe,Import:Ve,Comment:Q,Anonymous:Y,Value:te,JavaScript:De,Assignment:Ne,Condition:class extends u{get type(){return"Condition"}constructor(e,t,i,n,s){super(),this.op=e.trim(),this.lvalue=t,this.rvalue=i,this._index=n,this.negate=s}accept(e){this.lvalue=e.visit(this.lvalue),this.rvalue=e.visit(this.rvalue)}eval(e){const t=this.lvalue.eval(e),i=this.rvalue.eval(e);let n;switch(this.op){case"and":n=Boolean(t&&i);break;case"or":n=Boolean(t||i);break;default:switch(u.compare(t,i)){case-1:n="<"===this.op||"=<"===this.op||"<="===this.op;break;case 0:n="="===this.op||">="===this.op||"=<"===this.op||"<="===this.op;break;case 1:n=">"===this.op||">="===this.op;break;default:n=!1}}return this.negate?!n:n}},Paren:p,Media:Oe,Container:Ue,QueryInParens:Be,UnicodeDescriptor:class extends u{get type(){return"UnicodeDescriptor"}constructor(e){super(),this.value=e}},Negative:je,Extend:qe,VariableCall:class extends u{get type(){return"VariableCall"}constructor(e,t,i){super(),this.variable=e,this._index=t,this._fileInfo=i,this.allowRoot=!0}eval(e){let t,i=new Me(this.variable,this.getIndex(),this.fileInfo()).eval(e);const n=new F({message:"Could not evaluate variable call "+this.variable});if(!i.ruleset){if(i.rules)t=i;else if(Array.isArray(i))t=new ge(null,i);else{if(!Array.isArray(i.value))throw n;t=new ge(null,i.value)}i=new Ce(t)}const s=i;if(s.ruleset)return s.callEval(e);throw n}},NamespaceValue:class extends u{get type(){return"NamespaceValue"}constructor(e,t,i,n){super(),this.value=e,this.lookups=t,this._index=i,this._fileInfo=n}eval(e){let t,i,n=this.value.eval(e);for(t=0;t<this.lookups.length;t++){i=this.lookups[t],Array.isArray(n)&&(n=new ge([new he],n));const s=n;if(""===i)n=s.lastDeclaration();else if("@"===i.charAt(0)){if("@"===i.charAt(1)&&(i="@"+new Me(i.slice(1)).eval(e).value),s.variables&&(n=s.variable(i)),!n)throw{type:"Name",message:`variable ${i} not found`,filename:this.fileInfo().filename,index:this.getIndex()}}else{if(i="$@"===i.substring(0,2)?"$"+new Me(i.slice(1)).eval(e).value:"$"===i.charAt(0)?i:"$"+i,s.properties&&(n=s.property(i)),!n)throw{type:"Name",message:`property "${i.slice(1)}" not found`,filename:this.fileInfo().filename,index:this.getIndex()};n=n[n.length-1]}const r=n;r.value&&(n=r.eval(e).value);const o=n;o.ruleset&&(n=o.ruleset.eval(e))}return n}},mixin:{Call:class extends u{get type(){return"MixinCall"}constructor(e,t,i,n,s){super(),this.selector=new he(e),this.arguments=t||[],this._index=i,this._fileInfo=n,this.important=s,this.allowRoot=!0,this.setParent(this.selector,this)}accept(e){this.selector&&(this.selector=e.visit(this.selector)),this.arguments.length&&(this.arguments=e.visitArray(this.arguments))}eval(e){let t,i,n;const s=[];let r,o;const a=[];let l,u,c,h,f,p=!1;const d=[];let m;const g=[];let v;let y,b,w;function x(t,i){let n,r,o;for(n=0;n<2;n++){for(g[n]=!0,me.value(n),r=0;r<i.length&&g[n];r++)o=i[r],o.matchCondition&&(g[n]=g[n]&&o.matchCondition(null,e));t.matchCondition&&(g[n]=g[n]&&t.matchCondition(s,e))}return g[0]||g[1]?g[0]!=g[1]?g[1]?1:2:0:-1}for(this.selector=this.selector.eval(e),l=0;l<this.arguments.length;l++)if(r=this.arguments[l],o=r.value.eval(e),r.expand&&Array.isArray(o.value)){const e=o.value;for(u=0;u<e.length;u++)s.push({value:e[u]})}else s.push({name:r.name,value:o});for(w=function(t){return t.matchArgs(null,e)},l=0;l<e.frames.length;l++)if((t=e.frames[l].find(this.selector,null,w)).length>0){for(f=!0,u=0;u<t.length;u++){for(i=t[u].rule,n=t[u].path,h=!1,c=0;c<e.frames.length;c++)if(!(i instanceof Te)&&i===(e.frames[c].originalRuleset||e.frames[c])){h=!0;break}h||i.matchArgs(s,e)&&(m={mixin:i,group:x(i,n)},-1!==m.group&&d.push(m),p=!0)}for(me.reset(),y=[0,0,0],u=0;u<d.length;u++)y[d[u].group]++;if(y[0]>0)v=2;else if(v=1,y[1]+y[2]>1)throw{type:"Runtime",message:`Ambiguous use of \`default()\` found when matching for \`${this.format(s)}\``,index:this.getIndex(),filename:this.fileInfo().filename};for(u=0;u<d.length;u++)if(m=d[u].group,0===m||m===v)try{i=d[u].mixin,i instanceof Te||(b=i.originalRuleset||i,i=new Te("",[],i.rules,null,!1,null,b.visibilityInfo()),i.originalRuleset=b);const t=i.evalCall(e,s,this.important).rules;this._setVisibilityToReplacement(t),Array.prototype.push.apply(a,t)}catch(e){throw{...e,index:this.getIndex(),filename:this.fileInfo().filename}}if(p)return a}throw f?{type:"Runtime",message:`No matching definition was found for \`${this.format(s)}\``,index:this.getIndex(),filename:this.fileInfo().filename}:{type:"Name",message:this.selector.toCSS({}).trim()+" is undefined",index:this.getIndex(),filename:this.fileInfo().filename}}_setVisibilityToReplacement(e){let t,i;if(this.blocksVisibility())for(t=0;t<e.length;t++)i=e[t],i.addVisibilityBlock()}format(e){return`${this.selector.toCSS({}).trim()}(${e?e.map((function(e){let t="";return e.name&&(t+=e.name+":"),e.value.toCSS?t+=e.value.toCSS({}):t+="???",t})).join(", "):""})`}},Definition:Te}};class Ge{getPath(e){let t=e.lastIndexOf("?");return t>0&&(e=e.slice(0,t)),t=e.lastIndexOf("/"),t<0&&(t=e.lastIndexOf("\\")),t<0?"":e.slice(0,t+1)}tryAppendExtension(e,t){return/(\.[a-z]*$)|([?;].*)$/.test(e)?e:e+t}tryAppendLessExtension(e){return this.tryAppendExtension(e,".less")}supportsSync(){return!1}alwaysMakePathsAbsolute(){return!1}isPathAbsolute(e){return/^(?:[a-z-]+:|\/|\\|#)/i.test(e)}join(e,t){return e?e+t:t}pathDiff(e,t){const i=this.extractUrlParts(e),n=this.extractUrlParts(t);let s,r,o,a,l="";if(i.hostPart!==n.hostPart)return"";for(r=Math.max(n.directories.length,i.directories.length),s=0;s<r&&n.directories[s]===i.directories[s];s++);for(a=n.directories.slice(s),o=i.directories.slice(s),s=0;s<a.length-1;s++)l+="../";for(s=0;s<o.length-1;s++)l+=o[s]+"/";return l}extractUrlParts(e,t){const i=/^((?:[a-z-]+:)?\/{2}(?:[^/?#]*\/)|([/\\]))?((?:[^/\\?#]*[/\\])*)([^/\\?#]*)([#?].*)?$/i,n=e.match(i),s={};let r=[];const o=[];let a,l;if(!n)throw new Error(`Could not parse sheet href - '${e}'`);if(t&&(!n[1]||n[2])){if(l=t.match(i),!l)throw new Error(`Could not parse page url - '${t}'`);n[1]=n[1]||l[1]||"",n[2]||(n[3]=l[3]+n[3])}if(n[3])for(r=n[3].replace(/\\/g,"/").split("/"),a=0;a<r.length;a++)".."===r[a]?o.pop():"."!==r[a]&&o.push(r[a]);return s.hostPart=n[1],s.directories=o,s.rawPath=(n[1]||"")+r.join("/"),s.path=(n[1]||"")+o.join("/"),s.filename=n[4],s.fileUrl=s.path+(n[4]||""),s.url=s.fileUrl+(n[5]||""),s}}class We{constructor(){this.require=function(){return null}}evalPlugin(e,t,i,n,s){let r,o,a,l,u,c,h;u=t.pluginManager,s&&(c="string"==typeof s?s:s.filename);const f=(new this.less.FileManager).extractUrlParts(c).filename;if(c&&(a=u.get(c),a)){if(h=this.trySetOptions(a,c,f,n),h)return h;try{a.use&&a.use.call(this.context,a)}catch(e){return e.message=e.message||"Error during @plugin call",new F(e,i,c)}return a}l={exports:{},pluginManager:u,fileInfo:s},o=oe.create();const p=function(e){a=e};try{r=new Function("module","require","registerPlugin","functions","tree","less","fileInfo",e),r(l,this.require(c),p,o,this.less.tree,this.less,s)}catch(e){return new F(e,i,c)}if(a||(a=l.exports),a=this.validatePlugin(a,c,f),a instanceof F)return a;if(!a)return new F({message:"Not a valid plugin"},i,c);if(a.imports=i,a.filename=c,(!a.minVersion||this.compareVersion("3.0.0",a.minVersion)<0)&&(h=this.trySetOptions(a,c,f,n),h))return h;if(u.addPlugin(a,s.filename,o),a.functions=o.getLocalFunctions(),h=this.trySetOptions(a,c,f,n),h)return h;try{a.use&&a.use.call(this.context,a)}catch(e){return e.message=e.message||"Error during @plugin call",new F(e,i,c)}return a}trySetOptions(e,t,i,n){if(n&&!e.setOptions)return new F({message:`Options have been provided but the plugin ${i} does not support any options.`});try{e.setOptions&&e.setOptions(n)}catch(e){return new F(e)}}validatePlugin(e,t,i){return e?("function"==typeof e&&(e=new e),e.minVersion&&this.compareVersion(e.minVersion,this.less.version)<0?new F({message:`Plugin ${i} requires version ${this.versionToString(e.minVersion)}`}):e):null}compareVersion(e,t){"string"==typeof e&&(e=e.match(/^(\d+)\.?(\d+)?\.?(\d+)?/)).shift();for(let i=0;i<e.length;i++)if(e[i]!==t[i])return parseInt(e[i])>parseInt(t[i])?-1:1;return 0}versionToString(e){let t="";for(let i=0;i<e.length;i++)t+=(t?".":"")+e[i];return t}printUsage(e){for(let t=0;t<e.length;t++){const i=e[t];i.printUsage&&i.printUsage()}}}function Je(e,t,i,n){return t.eval(e)?i.eval(e):n?n.eval(e):new Y}function Ke(e,t){try{return t.eval(e),fe.True}catch(e){return fe.False}}Je.evalArgs=!1,Ke.evalArgs=!1;var He={isdefined:Ke,boolean:function(e){return e?fe.True:fe.False},if:Je};let Qe;function Ze(e){return Math.min(1,Math.max(0,e))}function Xe(e,t){const i=Qe.hsla(t.h,t.s,t.l,t.a);if(i)return e.value&&/^(rgb|hsl)/.test(e.value)?i.value=e.value:i.value="rgb",i}function Ye(e){if(e.toHSL)return e.toHSL();throw new Error("Argument cannot be evaluated to a color")}function et(e){if(e.toHSV)return e.toHSV();throw new Error("Argument cannot be evaluated to a color")}function tt(e){if(e instanceof X)return parseFloat(e.unit.is("%")?e.value/100:e.value);if("number"==typeof e)return e;throw{type:"Argument",message:"color functions take numbers as parameters"}}Qe={rgb:function(e,t,i){let n=1;if(e instanceof ee){const s=e.value;if(e=s[0],t=s[1],(i=s[2])instanceof Ae){const e=i;i=e.operands[0],n=e.operands[1]}}const s=Qe.rgba(e,t,i,n);if(s)return s.value="rgb",s},rgba:function(e,t,i,n){try{if(e instanceof c)return n=t?tt(t):e.alpha,new c(e.rgb,n,"rgba");const s=[e,t,i].map(e=>{return i=255,(t=e)instanceof X&&t.unit.is("%")?parseFloat(t.value*i/100):tt(t);var t,i});return n=tt(n),new c(s,n,"rgba")}catch(e){}},hsl:function(e,t,i){let n=1;if(e instanceof ee){const s=e.value;if(e=s[0],t=s[1],(i=s[2])instanceof Ae){const e=i;i=e.operands[0],n=e.operands[1]}}const s=Qe.hsla(e,t,i,n);if(s)return s.value="hsl",s},hsla:function(e,t,i,n){let s,r;function o(e){return 6*(e=e<0?e+1:e>1?e-1:e)<1?s+(r-s)*e*6:2*e<1?r:3*e<2?s+(r-s)*(2/3-e)*6:s}try{if(e instanceof c)return n=t?tt(t):e.alpha,new c(e.rgb,n,"hsla");e=tt(e)%360/360,t=Ze(tt(t)),i=Ze(tt(i)),n=Ze(tt(n)),r=i<=.5?i*(t+1):i+t-i*t,s=2*i-r;const a=[255*o(e+1/3),255*o(e),255*o(e-1/3)];return n=tt(n),new c(a,n,"hsla")}catch(e){}},hsv:function(e,t,i){return Qe.hsva(e,t,i,1)},hsva:function(e,t,i,n){let s,r;e=tt(e)%360/360*360,t=tt(t),i=tt(i),n=tt(n),s=Math.floor(e/60%6),r=e/60-s;const o=[i,i*(1-t),i*(1-r*t),i*(1-(1-r)*t)],a=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]];return Qe.rgba(255*o[a[s][0]],255*o[a[s][1]],255*o[a[s][2]],n)},hue:function(e){return new X(Ye(e).h)},saturation:function(e){return new X(100*Ye(e).s,"%")},lightness:function(e){return new X(100*Ye(e).l,"%")},hsvhue:function(e){return new X(et(e).h)},hsvsaturation:function(e){return new X(100*et(e).s,"%")},hsvvalue:function(e){return new X(100*et(e).v,"%")},red:function(e){return new X(e.rgb[0])},green:function(e){return new X(e.rgb[1])},blue:function(e){return new X(e.rgb[2])},alpha:function(e){return new X(Ye(e).a)},luma:function(e){return new X(e.luma()*e.alpha*100,"%")},luminance:function(e){const t=.2126*e.rgb[0]/255+.7152*e.rgb[1]/255+.0722*e.rgb[2]/255;return new X(t*e.alpha*100,"%")},saturate:function(e,t,i){if(!e.rgb)return null;const n=Ye(e);return void 0!==i&&"relative"===i.value?n.s+=n.s*t.value/100:n.s+=t.value/100,n.s=Ze(n.s),Xe(e,n)},desaturate:function(e,t,i){const n=Ye(e);return void 0!==i&&"relative"===i.value?n.s-=n.s*t.value/100:n.s-=t.value/100,n.s=Ze(n.s),Xe(e,n)},lighten:function(e,t,i){const n=Ye(e);return void 0!==i&&"relative"===i.value?n.l+=n.l*t.value/100:n.l+=t.value/100,n.l=Ze(n.l),Xe(e,n)},darken:function(e,t,i){const n=Ye(e);return void 0!==i&&"relative"===i.value?n.l-=n.l*t.value/100:n.l-=t.value/100,n.l=Ze(n.l),Xe(e,n)},fadein:function(e,t,i){const n=Ye(e);return void 0!==i&&"relative"===i.value?n.a+=n.a*t.value/100:n.a+=t.value/100,n.a=Ze(n.a),Xe(e,n)},fadeout:function(e,t,i){const n=Ye(e);return void 0!==i&&"relative"===i.value?n.a-=n.a*t.value/100:n.a-=t.value/100,n.a=Ze(n.a),Xe(e,n)},fade:function(e,t){const i=Ye(e);return i.a=t.value/100,i.a=Ze(i.a),Xe(e,i)},spin:function(e,t){const i=Ye(e),n=(i.h+t.value)%360;return i.h=n<0?360+n:n,Xe(e,i)},mix:function(e,t,i){i||(i=new X(50));const n=i.value/100,s=2*n-1,r=Ye(e).a-Ye(t).a,o=((s*r==-1?s:(s+r)/(1+s*r))+1)/2,a=1-o,l=[e.rgb[0]*o+t.rgb[0]*a,e.rgb[1]*o+t.rgb[1]*a,e.rgb[2]*o+t.rgb[2]*a],u=e.alpha*n+t.alpha*(1-n);return new c(l,u)},greyscale:function(e){return Qe.desaturate(e,new X(100))},contrast:function(e,t,i,n){if(!e.rgb)return null;if(void 0===i&&(i=Qe.rgba(255,255,255,1)),void 0===t&&(t=Qe.rgba(0,0,0,1)),t.luma()>i.luma()){const e=i;i=t,t=e}return n=void 0===n?.43:tt(n),e.luma()<n?i:t},argb:function(e){return new Y(e.toARGB())},color:function(e){if(e instanceof Re&&/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3,4})$/i.test(e.value)){const t=e.value.slice(1);return new c(t,void 0,"#"+t)}if(e instanceof c||(e=c.fromKeyword(e.value)))return e.value=void 0,e;throw{type:"Argument",message:"argument must be a color keyword or 3|4|6|8 digit hex e.g. #FFF"}},tint:function(e,t){return Qe.mix(Qe.rgb(255,255,255),e,t)},shade:function(e,t){return Qe.mix(Qe.rgb(0,0,0),e,t)}};var it=Qe;function nt(e,t,i){const n=t.alpha;let s;const r=i.alpha;let o,a,l;const u=[];a=r+n*(1-r);for(let c=0;c<3;c++)s=t.rgb[c]/255,o=i.rgb[c]/255,l=e(s,o),a&&(l=(r*o+n*(s-r*(s+o-l)))/a),u[c]=255*l;return new c(u,a)}const st={multiply:function(e,t){return e*t},screen:function(e,t){return e+t-e*t},overlay:function(e,t){return(e*=2)<=1?st.multiply(e,t):st.screen(e-1,t)},softlight:function(e,t){let i=1,n=e;return t>.5&&(n=1,i=e>.25?Math.sqrt(e):((16*e-12)*e+4)*e),e-(1-2*t)*n*(i-e)},hardlight:function(e,t){return st.overlay(t,e)},difference:function(e,t){return Math.abs(e-t)},exclusion:function(e,t){return e+t-2*e*t},average:function(e,t){return(e+t)/2},negation:function(e,t){return 1-Math.abs(e+t-1)}};for(const e in st)st.hasOwnProperty(e)&&(nt[e]=nt.bind(null,st[e]));var rt=e=>{const t=(e,t)=>new Fe(t,e.index,e.currentFileInfo).eval(e.context);return{"data-uri":function(i,n){n||(n=i,i=null);let r=i&&i.value,o=n.value;const a=this.currentFileInfo,l=a.rewriteUrls?a.currentDirectory:a.entryPath,u=o.indexOf("#");let c="";-1!==u&&(c=o.slice(u),o=o.slice(0,u));const h=A(this.context);h.rawBuffer=!0;const f=e.getFileManager(o,l,h,e,!0);if(!f)return t(this,n);let p=!1;if(i)p=/;base64$/.test(r);else{if(r=e.mimeLookup(o),"image/svg+xml"===r)p=!1;else{const t=e.charsetLookup(r);p=["US-ASCII","UTF-8"].indexOf(t)<0}p&&(r+=";base64")}const d=f.loadFileSync(o,l,h,e);if(!d.contents)return s.warn(`Skipped data-uri embedding of ${o} because file not found`),t(this,n||i);let m=d.contents;if(p&&!e.encodeBase64)return t(this,n);m=p?e.encodeBase64(m):encodeURIComponent(m);const g=`data:${r},${m}${c}`;return new Fe(new Re(`"${g}"`,g,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)}}};const ot=e=>Array.isArray(e.value)?e.value:Array(e);var at={_SELF:function(e){return e},"~":function(...e){return 1===e.length?e[0]:new te(e)},extract:function(e,t){return t=t.value-1,ot(e)[t]},length:function(e){return new X(ot(e).length)},range:function(e,t,i){let n,s,r=1;const o=[];t?(s=t,n=e.value,i&&(r=i.value)):(n=1,s=e);for(let e=n;e<=s.value;e+=r)o.push(new X(e,s.unit));return new ee(o)},each:function(e,t){const i=[];let n,s;const r=e=>e instanceof u?e.eval(this.context):e;s=!e.value||e instanceof Re?e.ruleset?r(e.ruleset).rules:e.rules?e.rules.map(r):Array.isArray(e)?e.map(r):[r(e)]:Array.isArray(e.value)?e.value.map(r):[r(e.value)];let o="@value",a="@key",l="@index";t.params?(o=t.params[0]&&t.params[0].name,a=t.params[1]&&t.params[1].name,l=t.params[2]&&t.params[2].name,t=t.rules):t=t.ruleset;for(let e=0;e<s.length;e++){let r,u;const c=s[e];c instanceof de?(r="string"==typeof c.name?c.name:c.name[0].value,u=c.value):(r=new X(e+1),u=c),c instanceof Q||(n=t.rules.slice(0),o&&n.push(new de(o,u,!1,!1,this.index,this.currentFileInfo)),l&&n.push(new de(l,new X(e+1),!1,!1,this.index,this.currentFileInfo)),a&&n.push(new de(a,r,!1,!1,this.index,this.currentFileInfo)),i.push(new ge([new he([new g("","&")])],n,t.strictImports,t.visibilityInfo())))}return new ge([new he([new g("","&")])],i,t.strictImports,t.visibilityInfo()).eval(this.context)}};const lt=(e,t,i)=>{if(!(i instanceof X))throw{type:"Argument",message:"argument must be a number"};return null===t?t=i.unit:i=i.unify(),new X(e(parseFloat(i.value)),t)},ut={ceil:null,floor:null,sqrt:null,abs:null,tan:"",sin:"",cos:"",atan:"rad",asin:"rad",acos:"rad"};for(const e in ut)ut.hasOwnProperty(e)&&(ut[e]=lt.bind(null,Math[e],ut[e]));ut.round=(e,t)=>{const i=void 0===t?0:t.value;return lt(e=>e.toFixed(i),null,e)};const ct=function(e,t){switch((t=Array.prototype.slice.call(t)).length){case 0:throw{type:"Argument",message:"one or more arguments required"}}let i,n,s,r,o,a,l,u;const c=[],h={};for(i=0;i<t.length;i++){if(s=t[i],!(s instanceof X)){if(Array.isArray(t[i].value)){Array.prototype.push.apply(t,Array.prototype.slice.call(t[i].value));continue}throw{type:"Argument",message:"incompatible types"}}if(r=""===s.unit.toString()&&void 0!==u?new X(s.value,u).unify():s.unify(),a=""===r.unit.toString()&&void 0!==l?l:r.unit.toString(),l=""!==a&&void 0===l||""!==a&&""===c[0].unify().unit.toString()?a:l,u=""!==a&&void 0===u?s.unit.toString():u,n=void 0!==h[""]&&""!==a&&a===l?h[""]:h[a],void 0!==n)o=""===c[n].unit.toString()&&void 0!==u?new X(c[n].value,u).unify():c[n].unify(),(e&&r.value<o.value||!e&&r.value>o.value)&&(c[n]=s);else{if(void 0!==l&&a!==l)throw{type:"Argument",message:"incompatible types"};h[a]=c.length,c.push(s)}}return 1==c.length?c[0]:(t=c.map(e=>e.toCSS(this.context)).join(this.context.compress?",":", "),new Y(`${e?"min":"max"}(${t})`))};var ht={min:function(...e){try{return ct.call(this,!0,e)}catch(e){}},max:function(...e){try{return ct.call(this,!1,e)}catch(e){}},convert:function(e,t){return e.convertTo(t.value)},pi:function(){return new X(Math.PI)},mod:function(e,t){return new X(e.value%t.value,e.unit)},pow:function(e,t){if("number"==typeof e&&"number"==typeof t)e=new X(e),t=new X(t);else if(!(e instanceof X&&t instanceof X))throw{type:"Argument",message:"arguments must be numbers"};return new X(Math.pow(e.value,t.value),e.unit)},percentage:function(e){return lt(e=>100*e,"%",e)}},ft={e:function(e){return new Re('"',e instanceof De?e.evaluated:e.value,!0)},escape:function(e){return new Y(encodeURI(e.value).replace(/=/g,"%3D").replace(/:/g,"%3A").replace(/#/g,"%23").replace(/;/g,"%3B").replace(/\(/g,"%28").replace(/\)/g,"%29"))},replace:function(e,t,i,n){let s=e.value;return i="Quoted"===i.type?i.value:i.toCSS(),s=s.replace(new RegExp(t.value,n?n.value:""),i),new Re(e.quote||"",s,e.escaped)},"%":function(e){const t=Array.prototype.slice.call(arguments,1);let i=e.value;for(let e=0;e<t.length;e++)i=i.replace(/%[sda]/i,i=>{const n="Quoted"===t[e].type&&i.match(/s/i)?t[e].value:t[e].toCSS();return i.match(/[A-Z]$/)?encodeURIComponent(n):n});return i=i.replace(/%%/g,"%"),new Re(e.quote||"",i,e.escaped)}},pt=()=>({"svg-gradient":function(e){let t,i,n="linear",s='x="0" y="0" width="1" height="1"';const r={compress:!1};let o;const a=e.toCSS(r);let l,u,h,f,p;function d(){throw{type:"Argument",message:"svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position] or direction, color list"}}switch(2==arguments.length?(arguments[1].value.length<2&&d(),t=arguments[1].value):arguments.length<3?d():t=Array.prototype.slice.call(arguments,1),a){case"to bottom":i='x1="0%" y1="0%" x2="0%" y2="100%"';break;case"to right":i='x1="0%" y1="0%" x2="100%" y2="0%"';break;case"to bottom right":i='x1="0%" y1="0%" x2="100%" y2="100%"';break;case"to top right":i='x1="0%" y1="100%" x2="100%" y2="0%"';break;case"ellipse":case"ellipse at center":n="radial",i='cx="50%" cy="50%" r="75%"',s='x="-50" y="-50" width="101" height="101"';break;default:throw{type:"Argument",message:"svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center'"}}for(o=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><${n}Gradient id="g" ${i}>`,l=0;l<t.length;l+=1)t[l]instanceof ee?(u=t[l].value[0],h=t[l].value[1]):(u=t[l],h=void 0),u instanceof c&&((0===l||l+1===t.length)&&void 0===h||h instanceof X)||d(),f=h?h.toCSS(r):0===l?"0%":"100%",p=u.alpha,o+=`<stop offset="${f}" stop-color="${u.toRGB()}"${p<1?` stop-opacity="${p}"`:""}/>`;return o+=`</${n}Gradient><rect ${s} fill="url(#g)" /></svg>`,o=encodeURIComponent(o),o="data:image/svg+xml,"+o,new Fe(new Re(`'${o}'`,o,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)}});const dt=(e,t)=>e instanceof t?fe.True:fe.False,mt=(e,t)=>{if(void 0===t)throw{type:"Argument",message:"missing the required second argument to isunit."};if("string"!=typeof(t="string"==typeof t.value?t.value:t))throw{type:"Argument",message:"Second argument to isunit should be a unit or a string."};return e instanceof X&&e.unit.is(t)?fe.True:fe.False};var gt={isruleset:function(e){return dt(e,Ce)},iscolor:function(e){return dt(e,c)},isnumber:function(e){return dt(e,X)},isstring:function(e){return dt(e,Re)},iskeyword:function(e){return dt(e,fe)},isurl:function(e){return dt(e,Fe)},ispixel:function(e){return mt(e,"px")},ispercentage:function(e){return mt(e,"%")},isem:function(e){return mt(e,"em")},isunit:mt,unit:function(e,t){if(!(e instanceof X))throw{type:"Argument",message:"the first argument to unit must be a number"+(e instanceof Ae?". Have you forgotten parenthesis?":"")};return t=t?t instanceof fe?t.value:t.toCSS():"",new X(e.value,t)},"get-unit":function(e){return new Y(e.unit)}};const vt=function(e){if(0===(e=Array.prototype.slice.call(e)).length)throw{type:"Argument",message:"one or more arguments required"};const t=[new Me(e[0].value,this.index,this.currentFileInfo).eval(this.context)].map(e=>e.toCSS(this.context)).join(this.context.compress?",":", ");return new Y(`style(${t})`)};var yt={style:function(...e){try{return vt.call(this,e)}catch(e){}}},bt=e=>{const t={functionRegistry:oe,functionCaller:_e};return oe.addMultiple(He),oe.add("default",me.eval.bind(me)),oe.addMultiple(it),oe.addMultiple(nt),oe.addMultiple(rt(e)),oe.addMultiple(at),oe.addMultiple(ut),oe.addMultiple(ht),oe.addMultiple(ft),oe.addMultiple(pt()),oe.addMultiple(gt),oe.addMultiple(yt),t};function wt(e,t){let i,n=(t=t||{}).variables;const s=new N.Eval(t);"object"!=typeof n||Array.isArray(n)||(n=Object.keys(n).map((function(e){let t=n[e];return t instanceof ze.Value||(t instanceof ze.Expression||(t=new ze.Expression([t])),t=new ze.Value([t])),new ze.Declaration("@"+e,t,!1,null,0)})),s.frames=[new ze.Ruleset(null,n)]);const r=[new re.JoinSelectorVisitor,new re.MarkVisibleSelectorsVisitor(!0),new re.ExtendVisitor,new re.ToCSSVisitor({compress:Boolean(t.compress)})],o=[];let a,l;if(t.pluginManager){l=t.pluginManager.visitor();for(let t=0;t<2;t++)for(l.first();a=l.get();)a.isPreEvalVisitor?0!==t&&-1!==o.indexOf(a)||(o.push(a),a.run(e)):0!==t&&-1!==r.indexOf(a)||(a.isPreVisitor?r.unshift(a):r.push(a))}i=e.eval(s);for(let e=0;e<r.length;e++)r[e].run(i);if(t.pluginManager)for(l.first();a=l.get();)-1===r.indexOf(a)&&-1===o.indexOf(a)&&a.run(i);return i}class xt{constructor(e){this.less=e,this.visitors=[],this.preProcessors=[],this.postProcessors=[],this.installedPlugins=[],this.fileManagers=[],this.iterator=-1,this.pluginCache={},this.Loader=new e.PluginLoader(e)}addPlugins(e){if(e)for(let t=0;t<e.length;t++)this.addPlugin(e[t])}addPlugin(e,t,i){this.installedPlugins.push(e),t&&(this.pluginCache[t]=e),e.install&&e.install(this.less,this,i||this.less.functions.functionRegistry)}get(e){return this.pluginCache[e]}addVisitor(e){this.visitors.push(e)}addPreProcessor(e,t){let i;for(i=0;i<this.preProcessors.length&&!(this.preProcessors[i].priority>=t);i++);this.preProcessors.splice(i,0,{preProcessor:e,priority:t})}addPostProcessor(e,t){let i;for(i=0;i<this.postProcessors.length&&!(this.postProcessors[i].priority>=t);i++);this.postProcessors.splice(i,0,{postProcessor:e,priority:t})}addFileManager(e){this.fileManagers.push(e)}getPreProcessors(){const e=[];for(let t=0;t<this.preProcessors.length;t++)e.push(this.preProcessors[t].preProcessor);return e}getPostProcessors(){const e=[];for(let t=0;t<this.postProcessors.length;t++)e.push(this.postProcessors[t].postProcessor);return e}getVisitors(){return this.visitors}visitor(){const e=this;return{first:function(){return e.iterator=-1,e.visitors[e.iterator]},get:function(){return e.iterator+=1,e.visitors[e.iterator]}}}getFileManagers(){return this.fileManagers}}let St;const It=function(e,t){return!t&&St||(St=new xt(e)),St};var Ct=function(e){var t=e.match(/^v(\d{1,2})\.(\d{1,2})\.(\d{1,2})(?:-([0-9A-Za-z-.]+))?(?:\+([0-9A-Za-z-.]+))?$/);if(!t)throw new Error("Unable to parse: "+e);return{major:parseInt(t[1],10),minor:parseInt(t[2],10),patch:parseInt(t[3],10),pre:t[4]||"",build:t[5]||""}};function kt(e,t,i="0.0.0"){let n,o,a,u;n=function(e){return class{constructor(t){this._css=[],this._rootNode=t.rootNode,this._contentsMap=t.contentsMap,this._contentsIgnoredCharsMap=t.contentsIgnoredCharsMap,t.sourceMapFilename&&(this._sourceMapFilename=t.sourceMapFilename.replace(/\\/g,"/")),this._outputFilename=t.outputFilename?t.outputFilename.replace(/\\/g,"/"):t.outputFilename,this.sourceMapURL=t.sourceMapURL,t.sourceMapBasepath&&(this._sourceMapBasepath=t.sourceMapBasepath.replace(/\\/g,"/")),t.sourceMapRootpath?(this._sourceMapRootpath=t.sourceMapRootpath.replace(/\\/g,"/"),"/"!==this._sourceMapRootpath.charAt(this._sourceMapRootpath.length-1)&&(this._sourceMapRootpath+="/")):this._sourceMapRootpath="",this._outputSourceFiles=t.outputSourceFiles,this._sourceMapGeneratorConstructor=e.getSourceMapGenerator(),this._lineNumber=0,this._column=0}removeBasepath(e){return this._sourceMapBasepath&&0===e.indexOf(this._sourceMapBasepath)&&("\\"!==(e=e.substring(this._sourceMapBasepath.length)).charAt(0)&&"/"!==e.charAt(0)||(e=e.substring(1))),e}normalizeFilename(e){return e=e.replace(/\\/g,"/"),e=this.removeBasepath(e),(this._sourceMapRootpath||"")+e}add(e,t,i,n){if(!e)return;let s,r,o,a,l;if(t&&t.filename){let n=this._contentsMap[t.filename];if(this._contentsIgnoredCharsMap[t.filename]&&((i-=this._contentsIgnoredCharsMap[t.filename])<0&&(i=0),n=n.slice(this._contentsIgnoredCharsMap[t.filename])),void 0===n)return void this._css.push(e);n=n.substring(0,i),r=n.split("\n"),a=r[r.length-1]}if(s=e.split("\n"),o=s[s.length-1],t&&t.filename)if(n)for(l=0;l<s.length;l++)this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+l+1,column:0===l?this._column:0},original:{line:r.length+l,column:0===l?a.length:0},source:this.normalizeFilename(t.filename)});else this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+1,column:this._column},original:{line:r.length,column:a.length},source:this.normalizeFilename(t.filename)});1===s.length?this._column+=o.length:(this._lineNumber+=s.length-1,this._column=o.length),this._css.push(e)}isEmpty(){return 0===this._css.length}toCSS(e){if(this._sourceMapGenerator=new this._sourceMapGeneratorConstructor({file:this._outputFilename,sourceRoot:null}),this._outputSourceFiles)for(const e in this._contentsMap)if(this._contentsMap.hasOwnProperty(e)){let t=this._contentsMap[e];this._contentsIgnoredCharsMap[e]&&(t=t.slice(this._contentsIgnoredCharsMap[e])),this._sourceMapGenerator.setSourceContent(this.normalizeFilename(e),t)}if(this._rootNode.genCSS(e,this),this._css.length>0){let e;const t=JSON.stringify(this._sourceMapGenerator.toJSON());this.sourceMapURL?e=this.sourceMapURL:this._sourceMapFilename&&(e=this._sourceMapFilename),this.sourceMapURL=e,this.sourceMap=t}return this._css.join("")}}}(e=new r(e,t)),o=function(e,t){return class{constructor(e){this.options=e}toCSS(t,i,n){const s=new e({contentsIgnoredCharsMap:n.contentsIgnoredChars,rootNode:t,contentsMap:n.contents,sourceMapFilename:this.options.sourceMapFilename,sourceMapURL:this.options.sourceMapURL,outputFilename:this.options.sourceMapOutputFilename,sourceMapBasepath:this.options.sourceMapBasepath,sourceMapRootpath:this.options.sourceMapRootpath,outputSourceFiles:this.options.outputSourceFiles,sourceMapGenerator:this.options.sourceMapGenerator,sourceMapFileInline:this.options.sourceMapFileInline,disableSourcemapAnnotation:this.options.disableSourcemapAnnotation}),r=s.toCSS(i);return this.sourceMap=s.sourceMap,this.sourceMapURL=s.sourceMapURL,this.options.sourceMapInputFilename&&(this.sourceMapInputFilename=s.normalizeFilename(this.options.sourceMapInputFilename)),void 0!==this.options.sourceMapBasepath&&void 0!==this.sourceMapURL&&(this.sourceMapURL=s.removeBasepath(this.sourceMapURL)),r+this.getCSSAppendage()}getCSSAppendage(){let e=this.sourceMapURL;if(this.options.sourceMapFileInline){if(void 0===this.sourceMap)return"";e="data:application/json;base64,"+t.encodeBase64(this.sourceMap)}return this.options.disableSourcemapAnnotation?"":e?`/*# sourceMappingURL=${e} */`:""}getExternalSourceMap(){return this.sourceMap}setExternalSourceMap(e){this.sourceMap=e}isInline(){return this.options.sourceMapFileInline}getSourceMapURL(){return this.sourceMapURL}getOutputFilename(){return this.options.sourceMapOutputFilename}getInputFilename(){return this.sourceMapInputFilename}}}(n,e),a=function(e){return class{constructor(e,t){this.root=e,this.imports=t}toCSS(t){let i;const n={};let r;try{i=wt(this.root,t)}catch(e){throw new F(e,this.imports)}try{const o=Boolean(t.compress);o&&s.warn("The compress option has been deprecated. We recommend you use a dedicated css minifier, for instance see less-plugin-clean-css.");const a={compress:o,dumpLineNumbers:t.dumpLineNumbers,strictUnits:Boolean(t.strictUnits),numPrecision:8};if(t.sourceMap){!0===t.sourceMap&&(t.sourceMap={});const s=t.sourceMap;if(!s.sourceMapInputFilename&&t.filename&&(s.sourceMapInputFilename=t.filename),void 0===s.sourceMapBasepath&&t.filename){const e=Math.max(t.filename.lastIndexOf("/"),t.filename.lastIndexOf("\\"));s.sourceMapBasepath=e>=0?t.filename.substring(0,e):"."}if(s.sourceMapFullFilename&&!s.sourceMapFileInline){if(!s.sourceMapFilename&&!s.sourceMapURL){const e=s.sourceMapFullFilename.split(/[/\\]/).pop();s.sourceMapFilename=e}}else if(!s.sourceMapFilename&&!s.sourceMapURL)if(s.sourceMapOutputFilename)s.sourceMapFilename=s.sourceMapOutputFilename+".map";else if(t.filename){const e=t.filename.split(/[/\\]/).pop().replace(/\.[^/.]+$/,"");s.sourceMapFilename=e+".css.map"}if(!s.sourceMapOutputFilename)if(t.filename){const e=t.filename.split(/[/\\]/).pop().replace(/\.[^/.]+$/,"");s.sourceMapOutputFilename=e+".css"}else s.sourceMapOutputFilename="output.css";r=new e(s),n.css=r.toCSS(i,a,this.imports)}else n.css=i.toCSS(a)}catch(e){throw new F(e,this.imports)}if(t.pluginManager){const e=t.pluginManager.getPostProcessors();for(let i=0;i<e.length;i++)n.css=e[i].process(n.css,{sourceMap:r,options:t,imports:this.imports})}t.sourceMap&&(n.map=r.getExternalSourceMap()),n.imports=[];for(const e in this.imports.files)Object.prototype.hasOwnProperty.call(this.imports.files,e)&&e!==this.imports.rootFilename&&n.imports.push(e);return n}}}(o),u=function(e){return class{constructor(e,t,i){this.less=e,this.rootFilename=i.filename,this.paths=t.paths||[],this.contents={},this.contentsIgnoredChars={},this.mime=t.mime,this.error=null,this.context=t,this.queue=[],this.files={}}push(t,i,n,r,o){const a=this,l=this.context.pluginManager.Loader;this.queue.push(t);const u=function(e,i,n){a.queue.splice(a.queue.indexOf(t),1);const l=n===a.rootFilename;r.optional&&e?(o(null,{rules:[]},!1,null),s.info(`The file ${n} was skipped because it was not found and the import was marked optional.`)):(a.files[n]||r.inline||(a.files[n]={root:i,options:r}),e&&!a.error&&(a.error=e),o(e,i,l,n))},c={rewriteUrls:this.context.rewriteUrls,entryPath:n.entryPath,rootpath:n.rootpath,rootFilename:n.rootFilename},h=e.getFileManager(t,n.currentDirectory,this.context,e);if(!h)return void u({message:"Could not find a file-manager for "+t});const f=function(e){let t;const i=e.filename,s=e.contents.replace(/^\uFEFF/,"");c.currentDirectory=h.getPath(i),c.rewriteUrls&&(c.rootpath=h.join(a.context.rootpath||"",h.pathDiff(c.currentDirectory,c.entryPath)),!h.isPathAbsolute(c.rootpath)&&h.alwaysMakePathsAbsolute()&&(c.rootpath=h.join(c.entryPath,c.rootpath))),c.filename=i;const o=new N.Parse(a.context);o.processImports=!1,a.contents[i]=s,(n.reference||r.reference)&&(c.reference=!0),r.isPlugin?(t=l.evalPlugin(s,o,a,r.pluginArgs,c),t instanceof F?u(t,null,i):u(null,t,i)):r.inline?u(null,s,i):!a.files[i]||a.files[i].options.multiple||r.multiple?new ce(o,a,c).parse(s,(function(e,t){u(e,t,i)})):u(null,a.files[i].root,i)};let p,d;const m=A(this.context);i&&(m.ext=r.isPlugin?".js":".less"),r.isPlugin?(m.mime="application/javascript",m.syncImport?p=l.loadPluginSync(t,n.currentDirectory,m,e,h):d=l.loadPlugin(t,n.currentDirectory,m,e,h)):m.syncImport?p=h.loadFileSync(t,n.currentDirectory,m,e):d=h.loadFile(t,n.currentDirectory,m,e,(e,t)=>{e?u(e):f(t)}),p?p.filename?f(p):u(p):d&&d.then(f,u)}}}(e);const c=function(e,t){const i=function(e,n,s){if("function"==typeof n?(s=n,n=$(this.options,{})):n=$(this.options,n||{}),!s){const t=this;return new Promise((function(s,r){i.call(t,e,n,(function(e,t){e?r(e):s(t)}))}))}this.parse(e,n,(function(e,i,n,r){if(e)return s(e);let o;try{o=new t(i,n).toCSS(r)}catch(e){return s(e)}s(null,o)}))};return i}(0,a),h=function(e,t,i){const n=function(e,t,s){if("function"==typeof t?(s=t,t=$(this.options,{})):t=$(this.options,t||{}),!s){const i=this;return new Promise((function(s,r){n.call(i,e,t,(function(e,t){e?r(e):s(t)}))}))}{let n,r;const o=new It(this,!t.reUsePluginManager);if(t.pluginManager=o,n=new N.Parse(t),t.rootFileInfo)r=t.rootFileInfo;else{const e=t.filename||"input",i=e.replace(/[^/\\]*$/,"");r={filename:e,rewriteUrls:n.rewriteUrls,rootpath:n.rootpath||"",currentDirectory:i,entryPath:i,rootFilename:e},r.rootpath&&"/"!==r.rootpath.slice(-1)&&(r.rootpath+="/")}const a=new i(this,n,r);this.importManager=a,t.plugins&&t.plugins.forEach((function(e){let t,i;if(e.fileContent){if(i=e.fileContent.replace(/^\uFEFF/,""),t=o.Loader.evalPlugin(i,n,a,e.options,e.filename),t instanceof F)return s(t)}else o.addPlugin(e)})),new ce(n,a,r).parse(e,(function(e,i){if(e)return s(e);s(null,i,a,t)}),t)}};return n}(0,0,u),f=Ct("v"+i),p={version:[f.major,f.minor,f.patch],data:l,tree:ze,Environment:r,AbstractFileManager:Ge,AbstractPluginLoader:We,environment:e,visitors:re,Parser:ce,functions:bt(e),contexts:N,SourceMapOutput:n,SourceMapBuilder:o,ParseTree:a,ImportManager:u,render:c,parse:h,LessError:F,transformTree:wt,utils:P,PluginManager:It,logger:s},d=function(e){return function(...t){return new e(...t)}};let m;const g=Object.create(p);for(const e in p.tree)if(m=p.tree[e],"function"==typeof m)g[e.toLowerCase()]=d(m);else{g[e]=Object.create(null);for(const t in m)g[e][t.toLowerCase()]=d(m[t])}return p.parse=p.parse.bind(g),p.render=p.render.bind(g),g}let At,_t,$t={};const Mt=function(){};Mt.prototype=Object.assign(new Ge,{alwaysMakePathsAbsolute:()=>!0,join(e,t){return e?this.extractUrlParts(t,e).path:t},doXHR(e,t,i,n){const s=new XMLHttpRequest,r=!At.isFileProtocol||At.fileAsync;function o(t,i,n){t.status>=200&&t.status<300?i(t.responseText,t.getResponseHeader("Last-Modified")):"function"==typeof n&&n(t.status,e)}"function"==typeof s.overrideMimeType&&s.overrideMimeType("text/css"),_t.debug(`XHR: Getting '${e}'`),s.open("GET",e,r),s.setRequestHeader("Accept",t||"text/x-less, text/css; q=0.9, */*; q=0.5"),s.send(null),At.isFileProtocol&&!At.fileAsync?0===s.status||s.status>=200&&s.status<300?i(s.responseText):n(s.status,e):r?s.onreadystatechange=()=>{4==s.readyState&&o(s,i,n)}:o(s,i,n)},supports:()=>!0,clearFileCache(){$t={}},loadFile(e,t,i){t&&!this.isPathAbsolute(e)&&(e=t+e),e=i.ext?this.tryAppendExtension(e,i.ext):e,i=i||{};const n=this.extractUrlParts(e,window.location.href).url,s=this;return new Promise((e,t)=>{if(i.useFileCache&&$t[n])try{const t=$t[n];return e({contents:t,filename:n,webInfo:{lastModified:new Date}})}catch(e){return t({filename:n,message:`Error loading file ${n} error was ${e.message}`})}s.doXHR(n,i.mime,(function(t,i){$t[n]=t,e({contents:t,filename:n,webInfo:{lastModified:i}})}),(function(e,i){t({type:"File",message:`'${i}' wasn't found (${e})`,href:n})}))})}});var Et=(e,t)=>(At=e,_t=t,Mt);const Pt=function(e){this.less=e};Pt.prototype=Object.assign(new We,{loadPlugin:(e,t,i,n,s)=>new Promise((r,o)=>{s.loadFile(e,t,i,n).then(r).catch(o)})});var Rt=(t,n,s)=>({add:function(r,o){s.errorReporting&&"html"!==s.errorReporting?"console"===s.errorReporting?function(e,t){const i=e.filename||t,r=[];let o=`${e.type||"Syntax"}Error: ${e.message||"There is an error in your .less file"} in ${i}`;const a=(e,t,i)=>{void 0!==e.extract[t]&&r.push("{line} {content}".replace(/\{line\}/,(parseInt(e.line,10)||0)+(t-1)).replace(/\{class\}/,i).replace(/\{content\}/,e.extract[t]))};e.line&&(a(e,0,""),a(e,1,"line"),a(e,2,""),o+=` on line ${e.line}, column ${e.column+1}:\n${r.join("\n")}`),e.stack&&(e.extract||s.logLevel>=4)&&(o+="\nStack Trace\n"+e.stack),n.logger.error(o)}(r,o):"function"==typeof s.errorReporting&&s.errorReporting("add",r,o):function(n,r){const o="less-error-message:"+e(r||""),a=t.document.createElement("div");let l,u;const c=[],h=n.filename||r,f=h.match(/([^/]+(\?.*)?)$/)[1];a.id=o,a.className="less-error-message",u=`<h3>${n.type||"Syntax"}Error: ${n.message||"There is an error in your .less file"}</h3><p>in <a href="${h}">${f}</a> `;const p=(e,t,i)=>{void 0!==e.extract[t]&&c.push('<li><label>{line}</label><pre class="{class}">{content}</pre></li>'.replace(/\{line\}/,(parseInt(e.line,10)||0)+(t-1)).replace(/\{class\}/,i).replace(/\{content\}/,e.extract[t]))};n.line&&(p(n,0,""),p(n,1,"line"),p(n,2,""),u+=`on line ${n.line}, column ${n.column+1}:</p><ul>${c.join("")}</ul>`),n.stack&&(n.extract||s.logLevel>=4)&&(u+="<br/>Stack Trace</br />"+n.stack.split("\n").slice(1).join("<br/>")),a.innerHTML=u,i(t.document,[".less-error-message ul, .less-error-message li {","list-style-type: none;","margin-right: 15px;","padding: 4px 0;","margin: 0;","}",".less-error-message label {","font-size: 12px;","margin-right: 15px;","padding: 4px 0;","color: #cc7777;","}",".less-error-message pre {","color: #dd6666;","padding: 4px 0;","margin: 0;","display: inline-block;","}",".less-error-message pre.line {","color: #ff0000;","}",".less-error-message h3 {","font-size: 20px;","font-weight: bold;","padding: 15px 0 5px 0;","margin: 0;","}",".less-error-message a {","color: #10a","}",".less-error-message .error {","color: red;","font-weight: bold;","padding-bottom: 2px;","border-bottom: 1px dashed red;","}"].join("\n"),{title:"error-message"}),a.style.cssText=["font-family: Arial, sans-serif","border: 1px solid #e00","background-color: #eee","border-radius: 5px","-webkit-border-radius: 5px","-moz-border-radius: 5px","color: #e00","padding: 15px","margin-bottom: 15px"].join(";"),"development"===s.env&&(l=setInterval(()=>{const e=t.document,i=e.body;i&&(e.getElementById(o)?i.replaceChild(a,e.getElementById(o)):i.insertBefore(a,i.firstChild),clearInterval(l))},10))}(r,o)},remove:function(i){s.errorReporting&&"html"!==s.errorReporting?"console"===s.errorReporting||"function"==typeof s.errorReporting&&s.errorReporting("remove",i):function(i){const n=t.document.getElementById("less-error-message:"+e(i));n&&n.parentNode.removeChild(n)}(i)}}),Ft="4.6.0";const Ot={javascriptEnabled:!1,depends:!1,compress:!1,lint:!1,paths:[],color:!0,strictImports:!1,insecure:!1,rootpath:"",rewriteUrls:!1,math:1,strictUnits:!1,globalVars:null,modifyVars:null,urlArgs:""};if(window.less)for(const e in window.less)Object.prototype.hasOwnProperty.call(window.less,e)&&(Ot[e]=window.less[e]);((e,i)=>{t(i,n(e)),void 0===i.isFileProtocol&&(i.isFileProtocol=/^(file|(chrome|safari)(-extension)?|resource|qrc|app):/.test(e.location.protocol)),i.async=i.async||!1,i.fileAsync=i.fileAsync||!1,i.poll=i.poll||(i.isFileProtocol?1e3:1500),i.env=i.env||("127.0.0.1"==e.location.hostname||"0.0.0.0"==e.location.hostname||"localhost"==e.location.hostname||e.location.port&&e.location.port.length>0||i.isFileProtocol?"development":"production");const s=/!dumpLineNumbers:(comments|mediaquery|all)/.exec(e.location.hash);s&&(i.dumpLineNumbers=s[1]),void 0===i.useFileCache&&(i.useFileCache=!0),void 0===i.onReady&&(i.onReady=!0),i.relativeUrls&&(i.rewriteUrls="all")})(window,Ot),Ot.plugins=Ot.plugins||[],window.LESS_PLUGINS&&(Ot.plugins=Ot.plugins.concat(window.LESS_PLUGINS));const Vt=((e,n)=>{const s=e.document,r=kt(void 0,void 0,Ft);r.options=n;const o=r.environment,a=Et(n,r.logger),l=new a;o.addFileManager(l),r.FileManager=a,r.PluginLoader=Pt,((e,t)=>{t.logLevel=void 0!==t.logLevel?t.logLevel:"development"===t.env?3:1,t.loggers||(t.loggers=[{debug:function(e){t.logLevel>=4&&console.log(e)},info:function(e){t.logLevel>=3&&console.log(e)},warn:function(e){t.logLevel>=2&&console.warn(e)},error:function(e){t.logLevel>=1&&console.error(e)}}]);for(let i=0;i<t.loggers.length;i++)e.logger.addListener(t.loggers[i])})(r,n);const u=Rt(e,r,n),c=r.cache=n.cache||((e,t,i)=>{let n=null;if("development"!==t.env)try{n=void 0===e.localStorage?null:e.localStorage}catch(e){}return{setCSS:function(e,t,s,r){if(n){i.info(`saving ${e} to cache.`);try{n.setItem(e,r),n.setItem(e+":timestamp",t),s&&n.setItem(e+":vars",JSON.stringify(s))}catch(t){i.error(`failed to save "${e}" to local storage for caching.`)}}},getCSS:function(e,t,i){const s=n&&n.getItem(e),r=n&&n.getItem(e+":timestamp");let o=n&&n.getItem(e+":vars");if(i=i||{},o=o||"{}",r&&t.lastModified&&new Date(t.lastModified).valueOf()===new Date(r).valueOf()&&JSON.stringify(i)===o)return s}}})(e,n,r.logger);(()=>{function e(){throw{type:"Runtime",message:"Image size functions are not supported in browser version of less"}}const t={"image-size":function(t){return e(),-1},"image-width":function(t){return e(),-1},"image-height":function(t){return e(),-1}};oe.addMultiple(t)})(r.environment),n.functions&&r.functions.functionRegistry.addMultiple(n.functions);const h=/^text\/(x-)?less$/;function f(e){const t={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}function p(e){const t=s.getElementsByTagName("style");for(let i of t)if(i.type.match(h)){const t={...f(n),modifyVars:e,filename:s.location.href.replace(/#.*$/,"")},o=i.innerHTML||"";r.render(o,t,(e,t)=>{e?u.add(e,"inline"):(i.type="text/css",i.styleSheet?i.styleSheet.cssText=t.css:i.innerHTML=t.css)})}}function d(e,i,s,a,h){const p=f(n);t(p,e),p.mime=e.type,h&&(p.modifyVars=h),l.loadFile(e.href,null,p,o).then(t=>{!function(t){const n=t.contents,o=t.filename,h=t.webInfo,f={currentDirectory:l.getPath(o),filename:o,rootFilename:o,rewriteUrls:p.rewriteUrls};if(f.entryPath=f.currentDirectory,f.rootpath=p.rootpath||f.currentDirectory,h){h.remaining=a;const t=c.getCSS(o,h,p.modifyVars);if(!s&&t)return h.local=!0,void i(null,t,n,e,h,o)}u.remove(o),p.rootFileInfo=f,r.render(n,p,(t,s)=>{t?(t.href=o,i(t)):(c.setCSS(e.href,h.lastModified,p.modifyVars,s.css),i(null,s.css,n,e,h,o))})}(t)}).catch(e=>{console.log(e),i(e)})}function m(e,t,i){for(let n=0;n<r.sheets.length;n++)d(r.sheets[n],e,t,r.sheets.length-(n+1),i)}return r.watch=function(){return r.watchMode||(r.env="development","development"===r.env&&(r.watchTimer=setInterval(()=>{r.watchMode&&(l.clearFileCache(),m((t,n,s,r,o)=>{t?u.add(t,t.href||r.href):n&&i(e.document,n,r)}))},n.poll))),this.watchMode=!0,!0},r.unwatch=function(){return clearInterval(r.watchTimer),this.watchMode=!1,!1},r.registerStylesheetsImmediately=()=>{const e=s.getElementsByTagName("link");r.sheets=[];for(let t=0;t<e.length;t++)("stylesheet/less"===e[t].rel||e[t].rel.match(/stylesheet/)&&e[t].type.match(h))&&r.sheets.push(e[t])},r.registerStylesheets=()=>new Promise(e=>{r.registerStylesheetsImmediately(),e()}),r.modifyVars=e=>r.refresh(!0,e,!1),r.refresh=(t,n,s)=>((t||s)&&!1!==s&&l.clearFileCache(),new Promise((s,o)=>{let a,l,c,h;a=l=new Date,h=r.sheets.length,0===h?(l=new Date,c=l-a,r.logger.info("Less has finished and no sheets were loaded."),s({startTime:a,endTime:l,totalMilliseconds:c,sheets:r.sheets.length})):m((t,n,f,p,d)=>{if(t)return u.add(t,t.href||p.href),void o(t);d.local?r.logger.info(`Loading ${p.href} from cache.`):r.logger.info(`Rendered ${p.href} successfully.`),i(e.document,n,p),r.logger.info(`CSS for ${p.href} generated in ${new Date-l}ms`),h--,0===h&&(c=new Date-a,r.logger.info(`Less has finished. CSS generated in ${c}ms`),s({startTime:a,endTime:l,totalMilliseconds:c,sheets:r.sheets.length})),l=new Date},t,n),p(n)})),r.refreshStyles=p,r})(window,Ot);let Lt,Dt,Nt;function Bt(e){e.filename&&console.warn(e),Ot.async||Dt.removeChild(Nt)}return window.less=Vt,Ot.onReady&&(/!watch/.test(window.location.hash)&&Vt.watch(),Ot.async||(Lt="body { display: none !important }",Dt=document.head||document.getElementsByTagName("head")[0],Nt=document.createElement("style"),Nt.type="text/css",Nt.styleSheet?Nt.styleSheet.cssText=Lt:Nt.appendChild(document.createTextNode(Lt)),Dt.appendChild(Nt)),Vt.registerStylesheetsImmediately(),Vt.pageLoadFinished=Vt.refresh("development"===Vt.env).then(Bt,Bt)),Vt}));
11
11
  //# sourceMappingURL=less.min.js.map