uomtiles 0.1.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 (507) hide show
  1. package/.output/nitro.json +15 -0
  2. package/.output/public/_nuxt/1d1PDhA4.js +1 -0
  3. package/.output/public/_nuxt/3B2XYGg4.js +1 -0
  4. package/.output/public/_nuxt/981KwFWf.js +1 -0
  5. package/.output/public/_nuxt/B30dSvM4.js +1 -0
  6. package/.output/public/_nuxt/BN1Gp4Dm.js +1 -0
  7. package/.output/public/_nuxt/BQlj8Xoe.js +6 -0
  8. package/.output/public/_nuxt/BRkljK8J.js +1 -0
  9. package/.output/public/_nuxt/BSdHYVlE2.js +1 -0
  10. package/.output/public/_nuxt/B_MqTg2k2.js +1 -0
  11. package/.output/public/_nuxt/BiWblTbb2.js +64 -0
  12. package/.output/public/_nuxt/BrPwntMr.js +1 -0
  13. package/.output/public/_nuxt/BskybydR.js +1 -0
  14. package/.output/public/_nuxt/ByRlKR9F.js +1 -0
  15. package/.output/public/_nuxt/C0Zdl2EE2.js +1 -0
  16. package/.output/public/_nuxt/C4qlzA4o.js +1 -0
  17. package/.output/public/_nuxt/C7HxHbxA.js +1 -0
  18. package/.output/public/_nuxt/C97TfNgP.js +3 -0
  19. package/.output/public/_nuxt/CNs_Ozdc.js +1 -0
  20. package/.output/public/_nuxt/CPuhwLY1.js +1 -0
  21. package/.output/public/_nuxt/CVE291Pi.js +1 -0
  22. package/.output/public/_nuxt/C_0VY3Cv2.js +4 -0
  23. package/.output/public/_nuxt/Ce26t8_Y.js +1 -0
  24. package/.output/public/_nuxt/CfW544W5.js +1 -0
  25. package/.output/public/_nuxt/CgMd2Y5s.js +2 -0
  26. package/.output/public/_nuxt/CgdzV712.js +1 -0
  27. package/.output/public/_nuxt/D1wVNWS0.js +1 -0
  28. package/.output/public/_nuxt/DC3bhq63.js +1 -0
  29. package/.output/public/_nuxt/DK3Fl9T5.js +1 -0
  30. package/.output/public/_nuxt/DL1MZZLI.js +1 -0
  31. package/.output/public/_nuxt/DXm-42Fi.js +1 -0
  32. package/.output/public/_nuxt/Djg3Kzfv.js +1 -0
  33. package/.output/public/_nuxt/DkcySee1.js +1 -0
  34. package/.output/public/_nuxt/DmN-PKW1.js +1 -0
  35. package/.output/public/_nuxt/DtFVCXI9.js +1 -0
  36. package/.output/public/_nuxt/Dz7VMlHR.js +1 -0
  37. package/.output/public/_nuxt/NL65vbjG2.js +1 -0
  38. package/.output/public/_nuxt/Oxy7pKSk.js +3 -0
  39. package/.output/public/_nuxt/Pik8or8N2.js +1 -0
  40. package/.output/public/_nuxt/XZ59tThl.js +1 -0
  41. package/.output/public/_nuxt/ZpWjFsgV.js +1 -0
  42. package/.output/public/_nuxt/builds/latest.json +1 -0
  43. package/.output/public/_nuxt/builds/meta/9f85104e-738d-4a74-8daa-40b136ce17d5.json +1 -0
  44. package/.output/public/_nuxt/dXz6dFgW2.js +1 -0
  45. package/.output/public/_nuxt/entry.P6tFNE31.css +1 -0
  46. package/.output/public/_nuxt/error-404.Biv0P6cJ.css +1 -0
  47. package/.output/public/_nuxt/error-500.8ok468rV.css +1 -0
  48. package/.output/public/_nuxt/j0MRD-c3.js +1 -0
  49. package/.output/public/_nuxt/local-pixel-diff.worker-C6RdZoCq.js +2 -0
  50. package/.output/public/_nuxt/maplibre-gl-worker.nfnkSQvL.mjs +6 -0
  51. package/.output/public/_nuxt/nearest-area.worker-iSLH0Y_s.js +2 -0
  52. package/.output/public/_nuxt/q7DkoVkj.js +828 -0
  53. package/.output/public/_nuxt/raster-tile.worker-BFlOgJig.js +2 -0
  54. package/.output/public/_nuxt/services._3nQizF8.css +1 -0
  55. package/.output/public/_nuxt/sql-wasm.DfANybxk.wasm +0 -0
  56. package/.output/public/_nuxt/tile-diff.worker-CvWWI_eu.js +1 -0
  57. package/.output/public/_nuxt/zZ1EGR7Y.js +1 -0
  58. package/.output/public/apple-touch-icon.png +0 -0
  59. package/.output/public/favicon.ico +0 -0
  60. package/.output/public/favicon.svg +8 -0
  61. package/.output/public/icon-192.png +0 -0
  62. package/.output/public/icon-512.png +0 -0
  63. package/.output/public/site.webmanifest +11 -0
  64. package/.output/server/chunks/_/config.mjs +208 -0
  65. package/.output/server/chunks/_/config.mjs.map +1 -0
  66. package/.output/server/chunks/_/data-directory.mjs +24 -0
  67. package/.output/server/chunks/_/data-directory.mjs.map +1 -0
  68. package/.output/server/chunks/_/error-500.mjs +20 -0
  69. package/.output/server/chunks/_/error-500.mjs.map +1 -0
  70. package/.output/server/chunks/_/file-workspace.mjs +910 -0
  71. package/.output/server/chunks/_/file-workspace.mjs.map +1 -0
  72. package/.output/server/chunks/_/icons.mjs +6269 -0
  73. package/.output/server/chunks/_/icons.mjs.map +1 -0
  74. package/.output/server/chunks/_/map-service.mjs +233 -0
  75. package/.output/server/chunks/_/map-service.mjs.map +1 -0
  76. package/.output/server/chunks/_/missing-tile.mjs +104 -0
  77. package/.output/server/chunks/_/missing-tile.mjs.map +1 -0
  78. package/.output/server/chunks/_/pixel-diff.mjs +78 -0
  79. package/.output/server/chunks/_/pixel-diff.mjs.map +1 -0
  80. package/.output/server/chunks/_/uom-auth.mjs +334 -0
  81. package/.output/server/chunks/_/uom-auth.mjs.map +1 -0
  82. package/.output/server/chunks/_/uom-map.mjs +265 -0
  83. package/.output/server/chunks/_/uom-map.mjs.map +1 -0
  84. package/.output/server/chunks/build/Alert-0ngTJXxP.mjs +5076 -0
  85. package/.output/server/chunks/build/Alert-0ngTJXxP.mjs.map +1 -0
  86. package/.output/server/chunks/build/DashboardSidebarToggle-pncTaIJq.mjs +569 -0
  87. package/.output/server/chunks/build/DashboardSidebarToggle-pncTaIJq.mjs.map +1 -0
  88. package/.output/server/chunks/build/Empty-CkW3mADt.mjs +359 -0
  89. package/.output/server/chunks/build/Empty-CkW3mADt.mjs.map +1 -0
  90. package/.output/server/chunks/build/FocusScope-Cf0lg0zt.mjs +207 -0
  91. package/.output/server/chunks/build/FocusScope-Cf0lg0zt.mjs.map +1 -0
  92. package/.output/server/chunks/build/FormField-CEUZHcv7.mjs +278 -0
  93. package/.output/server/chunks/build/FormField-CEUZHcv7.mjs.map +1 -0
  94. package/.output/server/chunks/build/Input-BeNavYXb.mjs +592 -0
  95. package/.output/server/chunks/build/Input-BeNavYXb.mjs.map +1 -0
  96. package/.output/server/chunks/build/MapBaseLayerTabs-4445J6yh.mjs +2003 -0
  97. package/.output/server/chunks/build/MapBaseLayerTabs-4445J6yh.mjs.map +1 -0
  98. package/.output/server/chunks/build/Modal-DNZtVxca.mjs +1326 -0
  99. package/.output/server/chunks/build/Modal-DNZtVxca.mjs.map +1 -0
  100. package/.output/server/chunks/build/OnlineMap-CKwiuqUY.mjs +146 -0
  101. package/.output/server/chunks/build/OnlineMap-CKwiuqUY.mjs.map +1 -0
  102. package/.output/server/chunks/build/Pagination-CDHx4HTZ.mjs +1025 -0
  103. package/.output/server/chunks/build/Pagination-CDHx4HTZ.mjs.map +1 -0
  104. package/.output/server/chunks/build/PopperArrow-Bqfdf2Et.mjs +2066 -0
  105. package/.output/server/chunks/build/PopperArrow-Bqfdf2Et.mjs.map +1 -0
  106. package/.output/server/chunks/build/ScrollArea-BQK3em8b.mjs +379 -0
  107. package/.output/server/chunks/build/ScrollArea-BQK3em8b.mjs.map +1 -0
  108. package/.output/server/chunks/build/Slider-D-n8Y0CX.mjs +1087 -0
  109. package/.output/server/chunks/build/Slider-D-n8Y0CX.mjs.map +1 -0
  110. package/.output/server/chunks/build/Tooltip-CkpSktvJ.mjs +1345 -0
  111. package/.output/server/chunks/build/Tooltip-CkpSktvJ.mjs.map +1 -0
  112. package/.output/server/chunks/build/_virtual_public-CeOptKUP.mjs +7 -0
  113. package/.output/server/chunks/build/_virtual_public-CeOptKUP.mjs.map +1 -0
  114. package/.output/server/chunks/build/advanced-D1onodoF.mjs +1430 -0
  115. package/.output/server/chunks/build/advanced-D1onodoF.mjs.map +1 -0
  116. package/.output/server/chunks/build/compare-DmSAW8oA.mjs +1093 -0
  117. package/.output/server/chunks/build/compare-DmSAW8oA.mjs.map +1 -0
  118. package/.output/server/chunks/build/dashboard-BJxrZ19n.mjs +3217 -0
  119. package/.output/server/chunks/build/dashboard-BJxrZ19n.mjs.map +1 -0
  120. package/.output/server/chunks/build/details-CBMqXYyo.mjs +3714 -0
  121. package/.output/server/chunks/build/details-CBMqXYyo.mjs.map +1 -0
  122. package/.output/server/chunks/build/error-404-D9aQjJRn.mjs +86 -0
  123. package/.output/server/chunks/build/error-404-D9aQjJRn.mjs.map +1 -0
  124. package/.output/server/chunks/build/error-404-styles.DciiguV6.mjs +9 -0
  125. package/.output/server/chunks/build/error-404-styles.DciiguV6.mjs.map +1 -0
  126. package/.output/server/chunks/build/error-500-BNyA3wrb.mjs +74 -0
  127. package/.output/server/chunks/build/error-500-BNyA3wrb.mjs.map +1 -0
  128. package/.output/server/chunks/build/error-500-styles.C562DYMR.mjs +9 -0
  129. package/.output/server/chunks/build/error-500-styles.C562DYMR.mjs.map +1 -0
  130. package/.output/server/chunks/build/esm-Dp2lJXbp.mjs +1121 -0
  131. package/.output/server/chunks/build/esm-Dp2lJXbp.mjs.map +1 -0
  132. package/.output/server/chunks/build/interval-BxUMpo78.mjs +411 -0
  133. package/.output/server/chunks/build/interval-BxUMpo78.mjs.map +1 -0
  134. package/.output/server/chunks/build/login-lbtjN0MV.mjs +642 -0
  135. package/.output/server/chunks/build/login-lbtjN0MV.mjs.map +1 -0
  136. package/.output/server/chunks/build/pages-Ba0Eixbd.mjs +220 -0
  137. package/.output/server/chunks/build/pages-Ba0Eixbd.mjs.map +1 -0
  138. package/.output/server/chunks/build/services-DuJwjAB8.mjs +3005 -0
  139. package/.output/server/chunks/build/services-DuJwjAB8.mjs.map +1 -0
  140. package/.output/server/chunks/build/services-styles.eoO16BY9.mjs +9 -0
  141. package/.output/server/chunks/build/services-styles.eoO16BY9.mjs.map +1 -0
  142. package/.output/server/chunks/build/tasks-CyN9x492.mjs +915 -0
  143. package/.output/server/chunks/build/tasks-CyN9x492.mjs.map +1 -0
  144. package/.output/server/chunks/build/tasks-D_Q5EDnn.mjs +87 -0
  145. package/.output/server/chunks/build/tasks-D_Q5EDnn.mjs.map +1 -0
  146. package/.output/server/chunks/nitro/nitro.mjs +6215 -0
  147. package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
  148. package/.output/server/chunks/routes/api/auth/captcha.post.mjs +21 -0
  149. package/.output/server/chunks/routes/api/auth/captcha.post.mjs.map +1 -0
  150. package/.output/server/chunks/routes/api/auth/login.post.mjs +27 -0
  151. package/.output/server/chunks/routes/api/auth/login.post.mjs.map +1 -0
  152. package/.output/server/chunks/routes/api/auth/logout.post.mjs +22 -0
  153. package/.output/server/chunks/routes/api/auth/logout.post.mjs.map +1 -0
  154. package/.output/server/chunks/routes/api/auth/map-token.post.mjs +22 -0
  155. package/.output/server/chunks/routes/api/auth/map-token.post.mjs.map +1 -0
  156. package/.output/server/chunks/routes/api/auth/send-sms.post.mjs +31 -0
  157. package/.output/server/chunks/routes/api/auth/send-sms.post.mjs.map +1 -0
  158. package/.output/server/chunks/routes/api/auth/status.get.mjs +21 -0
  159. package/.output/server/chunks/routes/api/auth/status.get.mjs.map +1 -0
  160. package/.output/server/chunks/routes/api/map/base/_baseLayer/_zoom/_tileX/_tileY_.get.mjs +44 -0
  161. package/.output/server/chunks/routes/api/map/base/_baseLayer/_zoom/_tileX/_tileY_.get.mjs.map +1 -0
  162. package/.output/server/chunks/routes/api/map/live/status.get.mjs +32 -0
  163. package/.output/server/chunks/routes/api/map/live/status.get.mjs.map +1 -0
  164. package/.output/server/chunks/routes/api/map/online/_layerGroup/_zoom/_tileX/_tileY_.get.mjs +48 -0
  165. package/.output/server/chunks/routes/api/map/online/_layerGroup/_zoom/_tileX/_tileY_.get.mjs.map +1 -0
  166. package/.output/server/chunks/routes/api/map/online-root/_layerGroup/_rootX/_rootY_.get.mjs +46 -0
  167. package/.output/server/chunks/routes/api/map/online-root/_layerGroup/_rootX/_rootY_.get.mjs.map +1 -0
  168. package/.output/server/chunks/routes/api/map-service/config.post.mjs +38 -0
  169. package/.output/server/chunks/routes/api/map-service/config.post.mjs.map +1 -0
  170. package/.output/server/chunks/routes/api/map-service/file.post.mjs +41 -0
  171. package/.output/server/chunks/routes/api/map-service/file.post.mjs.map +1 -0
  172. package/.output/server/chunks/routes/api/map-service/source.post.mjs +35 -0
  173. package/.output/server/chunks/routes/api/map-service/source.post.mjs.map +1 -0
  174. package/.output/server/chunks/routes/api/map-service/status.get.mjs +32 -0
  175. package/.output/server/chunks/routes/api/map-service/status.get.mjs.map +1 -0
  176. package/.output/server/chunks/routes/api/workspace/_filename/analysis.get.mjs +47 -0
  177. package/.output/server/chunks/routes/api/workspace/_filename/analysis.get.mjs.map +1 -0
  178. package/.output/server/chunks/routes/api/workspace/_filename/download.get.mjs +38 -0
  179. package/.output/server/chunks/routes/api/workspace/_filename/download.get.mjs.map +1 -0
  180. package/.output/server/chunks/routes/api/workspace/_filename/export/_format_.get.mjs +42 -0
  181. package/.output/server/chunks/routes/api/workspace/_filename/export/_format_.get.mjs.map +1 -0
  182. package/.output/server/chunks/routes/api/workspace/_filename/tile.get.mjs +48 -0
  183. package/.output/server/chunks/routes/api/workspace/_filename/tile.get.mjs.map +1 -0
  184. package/.output/server/chunks/routes/api/workspace/_filename/tiles.get.mjs +45 -0
  185. package/.output/server/chunks/routes/api/workspace/_filename/tiles.get.mjs.map +1 -0
  186. package/.output/server/chunks/routes/api/workspace/_filename_.delete.mjs +32 -0
  187. package/.output/server/chunks/routes/api/workspace/_filename_.delete.mjs.map +1 -0
  188. package/.output/server/chunks/routes/api/workspace/compare/batch.get.mjs +38 -0
  189. package/.output/server/chunks/routes/api/workspace/compare/batch.get.mjs.map +1 -0
  190. package/.output/server/chunks/routes/api/workspace/compare.post.mjs +33 -0
  191. package/.output/server/chunks/routes/api/workspace/compare.post.mjs.map +1 -0
  192. package/.output/server/chunks/routes/api/workspace/fetch.post.mjs +33 -0
  193. package/.output/server/chunks/routes/api/workspace/fetch.post.mjs.map +1 -0
  194. package/.output/server/chunks/routes/api/workspace/files.get.mjs +27 -0
  195. package/.output/server/chunks/routes/api/workspace/files.get.mjs.map +1 -0
  196. package/.output/server/chunks/routes/api/workspace/files.post.mjs +38 -0
  197. package/.output/server/chunks/routes/api/workspace/files.post.mjs.map +1 -0
  198. package/.output/server/chunks/routes/api/workspace/stop.post.mjs +32 -0
  199. package/.output/server/chunks/routes/api/workspace/stop.post.mjs.map +1 -0
  200. package/.output/server/chunks/routes/api/workspace/tasks.post.mjs +36 -0
  201. package/.output/server/chunks/routes/api/workspace/tasks.post.mjs.map +1 -0
  202. package/.output/server/chunks/routes/renderer.mjs +422 -0
  203. package/.output/server/chunks/routes/renderer.mjs.map +1 -0
  204. package/.output/server/chunks/routes/services/wms.get.mjs +54 -0
  205. package/.output/server/chunks/routes/services/wms.get.mjs.map +1 -0
  206. package/.output/server/chunks/routes/services/wmts.get.mjs +54 -0
  207. package/.output/server/chunks/routes/services/wmts.get.mjs.map +1 -0
  208. package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
  209. package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
  210. package/.output/server/chunks/virtual/entry.mjs +18545 -0
  211. package/.output/server/chunks/virtual/entry.mjs.map +1 -0
  212. package/.output/server/chunks/virtual/precomputed.mjs +4 -0
  213. package/.output/server/chunks/virtual/precomputed.mjs.map +1 -0
  214. package/.output/server/chunks/virtual/styles.mjs +10 -0
  215. package/.output/server/chunks/virtual/styles.mjs.map +1 -0
  216. package/.output/server/index.mjs +12 -0
  217. package/.output/server/index.mjs.map +1 -0
  218. package/.output/server/node_modules/@babel/parser/lib/index.js +14611 -0
  219. package/.output/server/node_modules/@babel/parser/package.json +50 -0
  220. package/.output/server/node_modules/@iconify/utils/lib/colors/index.js +295 -0
  221. package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +701 -0
  222. package/.output/server/node_modules/@iconify/utils/lib/css/common.js +75 -0
  223. package/.output/server/node_modules/@iconify/utils/lib/css/format.js +39 -0
  224. package/.output/server/node_modules/@iconify/utils/lib/css/icon.js +47 -0
  225. package/.output/server/node_modules/@iconify/utils/lib/css/icons.js +128 -0
  226. package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +19 -0
  227. package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +13 -0
  228. package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +17 -0
  229. package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +16 -0
  230. package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +30 -0
  231. package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +78 -0
  232. package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +100 -0
  233. package/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +28 -0
  234. package/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +58 -0
  235. package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +48 -0
  236. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +203 -0
  237. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +33 -0
  238. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +132 -0
  239. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +165 -0
  240. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +79 -0
  241. package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +92 -0
  242. package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +26 -0
  243. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +76 -0
  244. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +66 -0
  245. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +45 -0
  246. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +103 -0
  247. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +36 -0
  248. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +92 -0
  249. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +62 -0
  250. package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +25 -0
  251. package/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +16 -0
  252. package/.output/server/node_modules/@iconify/utils/lib/icon/name.js +57 -0
  253. package/.output/server/node_modules/@iconify/utils/lib/icon/square.js +33 -0
  254. package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +12 -0
  255. package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +125 -0
  256. package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +19 -0
  257. package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +25 -0
  258. package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +36 -0
  259. package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +91 -0
  260. package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +46 -0
  261. package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +23 -0
  262. package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +42 -0
  263. package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +123 -0
  264. package/.output/server/node_modules/@iconify/utils/lib/index.js +52 -0
  265. package/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +30 -0
  266. package/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +26 -0
  267. package/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +27 -0
  268. package/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +105 -0
  269. package/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +26 -0
  270. package/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +26 -0
  271. package/.output/server/node_modules/@iconify/utils/lib/misc/title.js +9 -0
  272. package/.output/server/node_modules/@iconify/utils/lib/svg/build.js +113 -0
  273. package/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +31 -0
  274. package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +13 -0
  275. package/.output/server/node_modules/@iconify/utils/lib/svg/html.js +9 -0
  276. package/.output/server/node_modules/@iconify/utils/lib/svg/id.js +41 -0
  277. package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +22 -0
  278. package/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +67 -0
  279. package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +54 -0
  280. package/.output/server/node_modules/@iconify/utils/lib/svg/size.js +27 -0
  281. package/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +7 -0
  282. package/.output/server/node_modules/@iconify/utils/lib/svg/url.js +22 -0
  283. package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +8 -0
  284. package/.output/server/node_modules/@iconify/utils/package.json +119 -0
  285. package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6801 -0
  286. package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
  287. package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +692 -0
  288. package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
  289. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1420 -0
  290. package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
  291. package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1903 -0
  292. package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
  293. package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6976 -0
  294. package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
  295. package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1841 -0
  296. package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
  297. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +904 -0
  298. package/.output/server/node_modules/@vue/server-renderer/package.json +53 -0
  299. package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +609 -0
  300. package/.output/server/node_modules/@vue/shared/package.json +47 -0
  301. package/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
  302. package/.output/server/node_modules/consola/dist/core.mjs +512 -0
  303. package/.output/server/node_modules/consola/dist/index.mjs +651 -0
  304. package/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
  305. package/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
  306. package/.output/server/node_modules/consola/package.json +136 -0
  307. package/.output/server/node_modules/devalue/index.js +17 -0
  308. package/.output/server/node_modules/devalue/package.json +39 -0
  309. package/.output/server/node_modules/devalue/src/base64.js +60 -0
  310. package/.output/server/node_modules/devalue/src/constants.js +12 -0
  311. package/.output/server/node_modules/devalue/src/operations.js +193 -0
  312. package/.output/server/node_modules/devalue/src/parse.js +270 -0
  313. package/.output/server/node_modules/devalue/src/stringify.js +428 -0
  314. package/.output/server/node_modules/devalue/src/uneval.js +582 -0
  315. package/.output/server/node_modules/devalue/src/utils.js +185 -0
  316. package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
  317. package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
  318. package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
  319. package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
  320. package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
  321. package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
  322. package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
  323. package/.output/server/node_modules/entities/package.json +120 -0
  324. package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
  325. package/.output/server/node_modules/estree-walker/package.json +37 -0
  326. package/.output/server/node_modules/fflate/esm/index.mjs +2710 -0
  327. package/.output/server/node_modules/fflate/package.json +128 -0
  328. package/.output/server/node_modules/fnv1a-64/dist/index.mjs +95 -0
  329. package/.output/server/node_modules/fnv1a-64/package.json +75 -0
  330. package/.output/server/node_modules/hookable/dist/index.mjs +257 -0
  331. package/.output/server/node_modules/hookable/package.json +53 -0
  332. package/.output/server/node_modules/nostics/dist/formatters/ansi.mjs +19 -0
  333. package/.output/server/node_modules/nostics/dist/index.mjs +187 -0
  334. package/.output/server/node_modules/nostics/package.json +125 -0
  335. package/.output/server/node_modules/object-identity/index.js +60 -0
  336. package/.output/server/node_modules/object-identity/package.json +40 -0
  337. package/.output/server/node_modules/p-limit/index.js +104 -0
  338. package/.output/server/node_modules/p-limit/package.json +58 -0
  339. package/.output/server/node_modules/pmtiles/dist/esm/index.js +2 -0
  340. package/.output/server/node_modules/pmtiles/package.json +50 -0
  341. package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
  342. package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
  343. package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
  344. package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
  345. package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
  346. package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
  347. package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
  348. package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
  349. package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
  350. package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
  351. package/.output/server/node_modules/source-map-js/package.json +71 -0
  352. package/.output/server/node_modules/source-map-js/source-map.js +8 -0
  353. package/.output/server/node_modules/tailwindcss/dist/chunk-DCG7AFIE.mjs +1 -0
  354. package/.output/server/node_modules/tailwindcss/dist/colors.mjs +1 -0
  355. package/.output/server/node_modules/tailwindcss/package.json +89 -0
  356. package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
  357. package/.output/server/node_modules/ufo/package.json +48 -0
  358. package/.output/server/node_modules/unhead/dist/client.mjs +22 -0
  359. package/.output/server/node_modules/unhead/dist/index.mjs +52 -0
  360. package/.output/server/node_modules/unhead/dist/legacy.mjs +33 -0
  361. package/.output/server/node_modules/unhead/dist/minify.mjs +183 -0
  362. package/.output/server/node_modules/unhead/dist/parser.mjs +518 -0
  363. package/.output/server/node_modules/unhead/dist/plugins.mjs +631 -0
  364. package/.output/server/node_modules/unhead/dist/scripts.node.mjs +6 -0
  365. package/.output/server/node_modules/unhead/dist/server.mjs +99 -0
  366. package/.output/server/node_modules/unhead/dist/shared/unhead.BEmVMkeA.mjs +673 -0
  367. package/.output/server/node_modules/unhead/dist/shared/unhead.BGFxPGPQ.mjs +47 -0
  368. package/.output/server/node_modules/unhead/dist/shared/unhead.BQWSw36o.mjs +192 -0
  369. package/.output/server/node_modules/unhead/dist/shared/unhead.Bb4d5b9h.mjs +67 -0
  370. package/.output/server/node_modules/unhead/dist/shared/unhead.BdK3SLPN.mjs +585 -0
  371. package/.output/server/node_modules/unhead/dist/shared/unhead.Bf_fPVYA.mjs +6 -0
  372. package/.output/server/node_modules/unhead/dist/shared/unhead.Bm4Y6XQI.mjs +17 -0
  373. package/.output/server/node_modules/unhead/dist/shared/unhead.C3b2Ipoj.mjs +223 -0
  374. package/.output/server/node_modules/unhead/dist/shared/unhead.CGPOfp5O.mjs +32 -0
  375. package/.output/server/node_modules/unhead/dist/shared/unhead.CHEy9ana.mjs +7 -0
  376. package/.output/server/node_modules/unhead/dist/shared/unhead.CTjuIdzk.mjs +27 -0
  377. package/.output/server/node_modules/unhead/dist/shared/unhead.CfKy3Kuq.mjs +196 -0
  378. package/.output/server/node_modules/unhead/dist/shared/unhead.D7HkBzZn.mjs +59 -0
  379. package/.output/server/node_modules/unhead/dist/shared/unhead.DNKiVLV7.mjs +400 -0
  380. package/.output/server/node_modules/unhead/dist/shared/unhead.MC5RsXLj.mjs +19 -0
  381. package/.output/server/node_modules/unhead/dist/shared/unhead.jEy9BmRq.mjs +264 -0
  382. package/.output/server/node_modules/unhead/dist/shared/unhead.tQnRaXfX.mjs +240 -0
  383. package/.output/server/node_modules/unhead/dist/stream/client.mjs +28 -0
  384. package/.output/server/node_modules/unhead/dist/stream/iife.mjs +2 -0
  385. package/.output/server/node_modules/unhead/dist/stream/server.mjs +264 -0
  386. package/.output/server/node_modules/unhead/dist/utils.mjs +7 -0
  387. package/.output/server/node_modules/unhead/package.json +179 -0
  388. package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
  389. package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
  390. package/.output/server/node_modules/vue/index.js +7 -0
  391. package/.output/server/node_modules/vue/index.mjs +1 -0
  392. package/.output/server/node_modules/vue/package.json +112 -0
  393. package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
  394. package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +278 -0
  395. package/.output/server/node_modules/vue-bundle-renderer/package.json +54 -0
  396. package/.output/server/node_modules/yocto-queue/index.js +90 -0
  397. package/.output/server/node_modules/yocto-queue/package.json +48 -0
  398. package/.output/server/node_modules/zod/index.js +4 -0
  399. package/.output/server/node_modules/zod/package.json +135 -0
  400. package/.output/server/node_modules/zod/v4/classic/checks.js +1 -0
  401. package/.output/server/node_modules/zod/v4/classic/coerce.js +17 -0
  402. package/.output/server/node_modules/zod/v4/classic/compat.js +31 -0
  403. package/.output/server/node_modules/zod/v4/classic/errors.js +48 -0
  404. package/.output/server/node_modules/zod/v4/classic/external.js +20 -0
  405. package/.output/server/node_modules/zod/v4/classic/from-json-schema.js +599 -0
  406. package/.output/server/node_modules/zod/v4/classic/iso.js +30 -0
  407. package/.output/server/node_modules/zod/v4/classic/package.json +7 -0
  408. package/.output/server/node_modules/zod/v4/classic/parse.js +15 -0
  409. package/.output/server/node_modules/zod/v4/classic/schemas.js +1395 -0
  410. package/.output/server/node_modules/zod/v4/core/api.js +1087 -0
  411. package/.output/server/node_modules/zod/v4/core/checks.js +575 -0
  412. package/.output/server/node_modules/zod/v4/core/core.js +78 -0
  413. package/.output/server/node_modules/zod/v4/core/doc.js +35 -0
  414. package/.output/server/node_modules/zod/v4/core/errors.js +185 -0
  415. package/.output/server/node_modules/zod/v4/core/index.js +16 -0
  416. package/.output/server/node_modules/zod/v4/core/json-schema-generator.js +95 -0
  417. package/.output/server/node_modules/zod/v4/core/json-schema-processors.js +601 -0
  418. package/.output/server/node_modules/zod/v4/core/json-schema.js +1 -0
  419. package/.output/server/node_modules/zod/v4/core/package.json +7 -0
  420. package/.output/server/node_modules/zod/v4/core/parse.js +93 -0
  421. package/.output/server/node_modules/zod/v4/core/regexes.js +139 -0
  422. package/.output/server/node_modules/zod/v4/core/registries.js +51 -0
  423. package/.output/server/node_modules/zod/v4/core/schemas.js +2239 -0
  424. package/.output/server/node_modules/zod/v4/core/to-json-schema.js +448 -0
  425. package/.output/server/node_modules/zod/v4/core/util.js +674 -0
  426. package/.output/server/node_modules/zod/v4/core/versions.js +5 -0
  427. package/.output/server/node_modules/zod/v4/locales/ar.js +106 -0
  428. package/.output/server/node_modules/zod/v4/locales/az.js +105 -0
  429. package/.output/server/node_modules/zod/v4/locales/be.js +156 -0
  430. package/.output/server/node_modules/zod/v4/locales/bg.js +120 -0
  431. package/.output/server/node_modules/zod/v4/locales/ca.js +107 -0
  432. package/.output/server/node_modules/zod/v4/locales/cs.js +111 -0
  433. package/.output/server/node_modules/zod/v4/locales/da.js +115 -0
  434. package/.output/server/node_modules/zod/v4/locales/de.js +108 -0
  435. package/.output/server/node_modules/zod/v4/locales/el.js +109 -0
  436. package/.output/server/node_modules/zod/v4/locales/en.js +113 -0
  437. package/.output/server/node_modules/zod/v4/locales/eo.js +109 -0
  438. package/.output/server/node_modules/zod/v4/locales/es.js +132 -0
  439. package/.output/server/node_modules/zod/v4/locales/fa.js +114 -0
  440. package/.output/server/node_modules/zod/v4/locales/fi.js +112 -0
  441. package/.output/server/node_modules/zod/v4/locales/fr-CA.js +107 -0
  442. package/.output/server/node_modules/zod/v4/locales/fr.js +125 -0
  443. package/.output/server/node_modules/zod/v4/locales/he.js +214 -0
  444. package/.output/server/node_modules/zod/v4/locales/hr.js +122 -0
  445. package/.output/server/node_modules/zod/v4/locales/hu.js +108 -0
  446. package/.output/server/node_modules/zod/v4/locales/hy.js +147 -0
  447. package/.output/server/node_modules/zod/v4/locales/id.js +106 -0
  448. package/.output/server/node_modules/zod/v4/locales/index.js +52 -0
  449. package/.output/server/node_modules/zod/v4/locales/is.js +109 -0
  450. package/.output/server/node_modules/zod/v4/locales/it.js +108 -0
  451. package/.output/server/node_modules/zod/v4/locales/ja.js +107 -0
  452. package/.output/server/node_modules/zod/v4/locales/ka.js +112 -0
  453. package/.output/server/node_modules/zod/v4/locales/kh.js +5 -0
  454. package/.output/server/node_modules/zod/v4/locales/km.js +110 -0
  455. package/.output/server/node_modules/zod/v4/locales/ko.js +111 -0
  456. package/.output/server/node_modules/zod/v4/locales/lt.js +203 -0
  457. package/.output/server/node_modules/zod/v4/locales/mk.js +109 -0
  458. package/.output/server/node_modules/zod/v4/locales/ms.js +107 -0
  459. package/.output/server/node_modules/zod/v4/locales/nl.js +110 -0
  460. package/.output/server/node_modules/zod/v4/locales/no.js +108 -0
  461. package/.output/server/node_modules/zod/v4/locales/ota.js +109 -0
  462. package/.output/server/node_modules/zod/v4/locales/package.json +7 -0
  463. package/.output/server/node_modules/zod/v4/locales/pl.js +109 -0
  464. package/.output/server/node_modules/zod/v4/locales/ps.js +114 -0
  465. package/.output/server/node_modules/zod/v4/locales/pt.js +108 -0
  466. package/.output/server/node_modules/zod/v4/locales/ro.js +119 -0
  467. package/.output/server/node_modules/zod/v4/locales/ru.js +156 -0
  468. package/.output/server/node_modules/zod/v4/locales/sl.js +109 -0
  469. package/.output/server/node_modules/zod/v4/locales/sv.js +110 -0
  470. package/.output/server/node_modules/zod/v4/locales/ta.js +110 -0
  471. package/.output/server/node_modules/zod/v4/locales/th.js +110 -0
  472. package/.output/server/node_modules/zod/v4/locales/tr.js +105 -0
  473. package/.output/server/node_modules/zod/v4/locales/ua.js +5 -0
  474. package/.output/server/node_modules/zod/v4/locales/uk.js +108 -0
  475. package/.output/server/node_modules/zod/v4/locales/ur.js +110 -0
  476. package/.output/server/node_modules/zod/v4/locales/uz.js +110 -0
  477. package/.output/server/node_modules/zod/v4/locales/vi.js +108 -0
  478. package/.output/server/node_modules/zod/v4/locales/yo.js +107 -0
  479. package/.output/server/node_modules/zod/v4/locales/zh-CN.js +109 -0
  480. package/.output/server/node_modules/zod/v4/locales/zh-TW.js +107 -0
  481. package/.output/server/package.json +37 -0
  482. package/LICENSE +3 -0
  483. package/README.md +125 -0
  484. package/dist/src/bbox.js +55 -0
  485. package/dist/src/cli.js +255 -0
  486. package/dist/src/config.js +56 -0
  487. package/dist/src/core/fetch-process.js +19 -0
  488. package/dist/src/core/grid-renderer.js +149 -0
  489. package/dist/src/core/lease.js +103 -0
  490. package/dist/src/core/paths.js +13 -0
  491. package/dist/src/core/png.js +192 -0
  492. package/dist/src/core/raster-style.js +33 -0
  493. package/dist/src/core/uomtiles.js +307 -0
  494. package/dist/src/fetcher.js +208 -0
  495. package/dist/src/geographic-grid.js +162 -0
  496. package/dist/src/grid-crawl.js +478 -0
  497. package/dist/src/mask-image.js +16 -0
  498. package/dist/src/official-grid.js +51 -0
  499. package/dist/src/quality.js +30 -0
  500. package/dist/src/token.js +206 -0
  501. package/package.json +68 -0
  502. package/public/apple-touch-icon.png +0 -0
  503. package/public/favicon.ico +0 -0
  504. package/public/favicon.svg +8 -0
  505. package/public/icon-192.png +0 -0
  506. package/public/icon-512.png +0 -0
  507. package/public/site.webmanifest +11 -0
@@ -0,0 +1,3005 @@
1
+ import { u as useSeoMeta$1, a as useToast, ap as useFetch, b as _sfc_main$2, aq as useRequestEvent, $ as $fetch$1, ar as _plugin_vue_export_helper_default, d as useComponentProps, f as useAppConfig, t as tv, as as watchPausable, at as watchThrottled, P as Primitive, au as useElementBounding } from '../virtual/entry.mjs';
2
+ import { C as CompletedTaskSelect_default, a as _sfc_main$7 } from './Alert-0ngTJXxP.mjs';
3
+ import { _ as _sfc_main$6 } from './Slider-D-n8Y0CX.mjs';
4
+ import { _ as _sfc_main$8 } from './Tooltip-CkpSktvJ.mjs';
5
+ import { _ as _sfc_main$3, M as MapBaseLayerTabs_default, b as _sfc_main$2$1 } from './MapBaseLayerTabs-4445J6yh.mjs';
6
+ import { _ as _sfc_main$4 } from './FormField-CEUZHcv7.mjs';
7
+ import { _ as _sfc_main$1, F as FileDropZone_default } from './ScrollArea-BQK3em8b.mjs';
8
+ import { _ as _sfc_main$5 } from './Input-BeNavYXb.mjs';
9
+ import { u as useFileWorkspace, _ as _sfc_main$9 } from './Empty-CkW3mADt.mjs';
10
+ import { O as OnlineMap_default } from './OnlineMap-CKwiuqUY.mjs';
11
+ import { defineComponent, ref, withAsyncContext, computed, mergeProps, withCtx, isRef, unref, createVNode, openBlock, createBlock, createCommentVNode, toDisplayString, useModel, mergeModels, nextTick, useSSRContext } from 'vue';
12
+ import { o as getRequestURL } from '../nitro/nitro.mjs';
13
+ import { ssrRenderComponent, ssrInterpolate, ssrRenderClass, ssrRenderStyle, ssrRenderAttr } from 'vue/server-renderer';
14
+ import 'unhead/plugins';
15
+ import 'unhead/utils';
16
+ import '../routes/renderer.mjs';
17
+ import 'unhead/server';
18
+ import 'unhead/legacy';
19
+ import 'nostics';
20
+ import 'vue-bundle-renderer/runtime';
21
+ import 'devalue';
22
+ import 'fnv1a-64';
23
+ import 'object-identity';
24
+ import 'tailwindcss/colors';
25
+ import './DashboardSidebarToggle-pncTaIJq.mjs';
26
+ import './FocusScope-Cf0lg0zt.mjs';
27
+ import './PopperArrow-Bqfdf2Et.mjs';
28
+ import './esm-Dp2lJXbp.mjs';
29
+ import 'node:http';
30
+ import 'node:https';
31
+ import 'node:events';
32
+ import 'node:buffer';
33
+ import 'node:fs';
34
+ import 'node:path';
35
+ import 'node:crypto';
36
+ import 'node:url';
37
+ import '@iconify/utils';
38
+ import 'consola';
39
+
40
+ //#region node_modules/.pnpm/colortranslator@5.0.0/node_modules/colortranslator/esm/index.js
41
+ var t = 255;
42
+ var e = 100;
43
+ var s = 125;
44
+ var r = 150;
45
+ var a;
46
+ var i;
47
+ var n;
48
+ var c;
49
+ ((function(t) {
50
+ t.HEX = "HEX", t.RGB = "RGB", t.HWB = "HWB", t.HSL = "HSL", t.CIELab = "CIELab", t.LCH = "LCH", t.CMYK = "CMYK";
51
+ }))(a || (a = {})), function(t) {
52
+ t.ANALOGOUS = "ANALOGOUS", t.COMPLEMENTARY = "COMPLEMENTARY", t.SPLIT_COMPLEMENTARY = "SPLIT_COMPLEMENTARY", t.TRIADIC = "TRIADIC", t.TETRADIC = "TETRADIC", t.SQUARE = "SQUARE";
53
+ }(i || (i = {})), function(t) {
54
+ t.ADDITIVE = "ADDITIVE", t.SUBTRACTIVE = "SUBTRACTIVE";
55
+ }(n || (n = {})), function(t) {
56
+ t.black = "#000000", t.silver = "#C0C0C0", t.gray = "#808080", t.white = "#FFFFFF", t.maroon = "#800000", t.red = "#FF0000", t.purple = "#800080", t.fuchsia = "#FF00FF", t.green = "#008000", t.lime = "#00FF00", t.olive = "#808000", t.yellow = "#FFFF00", t.navy = "#000080", t.blue = "#0000FF", t.teal = "#008080", t.aqua = "#00FFFF", t.orange = "#FFA500", t.aliceblue = "#F0F8FF", t.antiquewhite = "#FAEBD7", t.aquamarine = "#7FFFD4", t.azure = "#F0FFFF", t.beige = "#F5F5DC", t.bisque = "#FFE4C4", t.blanchedalmond = "#FFEBCD", t.blueviolet = "#8A2BE2", t.brown = "#A52A2A", t.burlywood = "#DEB887", t.cadetblue = "#5F9EA0", t.chartreuse = "#7FFF00", t.chocolate = "#D2691E", t.coral = "#FF7F50", t.cornflowerblue = "#6495ED", t.cornsilk = "#FFF8DC", t.crimson = "#DC143C", t.cyan = "#00FFFF", t.darkblue = "#00008B", t.darkcyan = "#008B8B", t.darkgoldenrod = "#B8860B", t.darkgray = "#A9A9A9", t.darkgreen = "#006400", t.darkgrey = "#A9A9A9", t.darkkhaki = "#BDB76B", t.darkmagenta = "#8B008B", t.darkolivegreen = "#556B2F", t.darkorange = "#FF8C00", t.darkorchid = "#9932CC", t.darkred = "#8B0000", t.darksalmon = "#E9967A", t.darkseagreen = "#8FBC8F", t.darkslateblue = "#483D8B", t.darkslategray = "#2F4F4F", t.darkslategrey = "#2F4F4F", t.darkturquoise = "#00CED1", t.darkviolet = "#9400D3", t.deeppink = "#FF1493", t.deepskyblue = "#00BFFF", t.dimgray = "#696969", t.dimgrey = "#696969", t.dodgerblue = "#1E90FF", t.firebrick = "#B22222", t.floralwhite = "#FFFAF0", t.forestgreen = "#228B22", t.gainsboro = "#DCDCDC", t.ghostwhite = "#F8F8FF", t.gold = "#FFD700", t.goldenrod = "#DAA520", t.greenyellow = "#ADFF2F", t.grey = "#808080", t.honeydew = "#F0FFF0", t.hotpink = "#FF69B4", t.indianred = "#CD5C5C", t.indigo = "#4B0082", t.ivory = "#FFFFF0", t.khaki = "#F0E68C", t.lavender = "#E6E6FA", t.lavenderblush = "#FFF0F5", t.lawngreen = "#7CFC00", t.lemonchiffon = "#FFFACD", t.lightblue = "#ADD8E6", t.lightcoral = "#F08080", t.lightcyan = "#E0FFFF", t.lightgoldenrodyellow = "#FAFAD2", t.lightgray = "#D3D3D3", t.lightgreen = "#90EE90", t.lightgrey = "#D3D3D3", t.lightpink = "#FFB6C1", t.lightsalmon = "#FFA07A", t.lightseagreen = "#20B2AA", t.lightskyblue = "#87CEFA", t.lightslategray = "#778899", t.lightslategrey = "#778899", t.lightsteelblue = "#B0C4DE", t.lightyellow = "#FFFFE0", t.limegreen = "#32CD32", t.linen = "#FAF0E6", t.magenta = "#FF00FF", t.mediumaquamarine = "#66CDAA", t.mediumblue = "#0000CD", t.mediumorchid = "#BA55D3", t.mediumpurple = "#9370DB", t.mediumseagreen = "#3CB371", t.mediumslateblue = "#7B68EE", t.mediumspringgreen = "#00FA9A", t.mediumturquoise = "#48D1CC", t.mediumvioletred = "#C71585", t.midnightblue = "#191970", t.mintcream = "#F5FFFA", t.mistyrose = "#FFE4E1", t.moccasin = "#FFE4B5", t.navajowhite = "#FFDEAD", t.oldlace = "#FDF5E6", t.olivedrab = "#6B8E23", t.orangered = "#FF4500", t.orchid = "#DA70D6", t.palegoldenrod = "#EEE8AA", t.palegreen = "#98FB98", t.paleturquoise = "#AFEEEE", t.palevioletred = "#DB7093", t.papayawhip = "#FFEFD5", t.peachpuff = "#FFDAB9", t.peru = "#CD853F", t.pink = "#FFC0CB", t.plum = "#DDA0DD", t.powderblue = "#B0E0E6", t.rosybrown = "#BC8F8F", t.royalblue = "#4169E1", t.saddlebrown = "#8B4513", t.salmon = "#FA8072", t.sandybrown = "#F4A460", t.seagreen = "#2E8B57", t.seashell = "#FFF5EE", t.sienna = "#A0522D", t.skyblue = "#87CEEB", t.slateblue = "#6A5ACD", t.slategray = "#708090", t.slategrey = "#708090", t.snow = "#FFFAFA", t.springgreen = "#00FF7F", t.steelblue = "#4682B4", t.tan = "#D2B48C", t.thistle = "#D8BFD8", t.tomato = "#FF6347", t.turquoise = "#40E0D0", t.violet = "#EE82EE", t.wheat = "#F5DEB3", t.whitesmoke = "#F5F5F5", t.yellowgreen = "#9ACD32", t.rebeccapurple = "#663399";
57
+ }(c || (c = {}));
58
+ var h$1 = Object.keys(c);
59
+ var o = {
60
+ HEX: [
61
+ "R",
62
+ "G",
63
+ "B",
64
+ "A"
65
+ ],
66
+ RGB: [
67
+ "R",
68
+ "G",
69
+ "B",
70
+ "A"
71
+ ],
72
+ HSL: [
73
+ "H",
74
+ "S",
75
+ "L",
76
+ "A"
77
+ ],
78
+ HWB: [
79
+ "H",
80
+ "W",
81
+ "B",
82
+ "A"
83
+ ],
84
+ CIELab: [
85
+ "L",
86
+ "a",
87
+ "b",
88
+ "A"
89
+ ],
90
+ LCH: [
91
+ "L",
92
+ "C",
93
+ "H",
94
+ "A"
95
+ ],
96
+ CMYK: [
97
+ "C",
98
+ "M",
99
+ "Y",
100
+ "K",
101
+ "A"
102
+ ]
103
+ };
104
+ var l = {
105
+ ABGR: a.RGB,
106
+ ABHW: a.HWB,
107
+ ACHL: a.LCH,
108
+ ACKMY: a.CMYK,
109
+ AHLS: a.HSL,
110
+ ALAB: a.CIELab,
111
+ BGR: a.RGB,
112
+ BHW: a.HWB,
113
+ CHL: a.LCH,
114
+ CKMY: a.CMYK,
115
+ HLS: a.HSL,
116
+ LAB: a.CIELab
117
+ };
118
+ var u;
119
+ (function(t) {
120
+ t.NUMBER = "number", t.BOOLEAN = "boolean";
121
+ })(u || (u = {}));
122
+ var d = {
123
+ [a.HEX]: /^#(?:(?<r>[a-f\d])(?<g>[a-f\d])(?<b>[a-f\d])(?<a>[a-f\d])?|(?<rr>[a-f\d]{2})(?<gg>[a-f\d]{2})(?<bb>[a-f\d]{2})(?<aa>[a-f\d]{2})?)$/i,
124
+ [a.RGB]: /^rgba?\s*\(\s*(?:(?<r_legacy>(?:\d*\.)?\d+%?)\s*,\s*(?<g_legacy>(?:\d*\.)?\d+%?)\s*,\s*(?<b_legacy>(?:\d*\.)?\d+%?)(?:\s*,\s*(?<a_legacy>(?:\d*\.)?\d+))?|(?<r>(?:\d*\.)?\d+%?)\s+(?<g>(?:\d*\.)?\d+%?)\s+(?<b>(?:\d*\.)?\d+%?)(?:\s*\/\s*(?<a>(?:\d*\.)?\d+%?))?|from\s+(?<from>(?:\w+|\w+\(\s*[^())]+\s*\)|\w+\(from\s+\w+\(.*\)\s*\)|#[a-fA-F\d]+))\s+(?<relative_r>(?:[rgb]|(?:\d*\.)?\d+|calc\([rgb()/*\-+\d.\s]+\)))\s+(?<relative_g>(?:[rgb]|(?:\d*\.)?\d+|calc\([rgb()/*\-+\d.\s]+\)))\s+(?<relative_b>(?:[rgb]|(?:\d*\.)?\d+|calc\([rgb()/*\-+\d.\s]+\)))(?:\s*\/\s*(?<relative_a>(?:(?:\d*\.)?\d+%?|calc\([()/*\-+\d.\s\w]*(?:alpha)?[()/*\-+\d.\s\w]*\)|alpha)))?)\s*\)$/,
125
+ [a.HWB]: /^hwb\s*\(\s*(?:(?<h>(?:\d*\.)?\d+(?:deg|grad|rad|turn)?)\s+(?<w>(?:\d*\.)?\d+)%\s+(?<b>(?:\d*\.)?\d+)%(?:\s*\/\s*(?<a>(?:\d*\.)?\d+%?))?|from\s+(?<from>(?:\w+|\w+\(\s*[^())]+\s*\)|\w+\(from\s+\w+\(.*\)\s*\)|#[a-fA-F\d]+))\s+(?<relative_h>(?:[hwb]|(?:\d*\.)?\d+|calc\([hwb()/*\-+\d.\s]+\)))\s+(?<relative_w>(?:[hwb]|(?:\d*\.)?\d+|calc\([hwb()/*\-+\d.\s]+\)))%?\s+(?<relative_b>(?:[hwb]|(?:\d*\.)?\d+|calc\([hwb()/*\-+\d.\s]+\)))%?(?:\s*\/\s*(?<relative_a>(?:(?:\d*\.)?\d+%?|calc\([()/*\-+\d.\s\w]*(?:alpha)?[()/*\-+\d.\s\w]*\)|alpha)))?)\s*\)$/,
126
+ [a.HSL]: /^hsla?\s*\(\s*(?:(?<h_legacy>-?(?:\d*\.)?\d+(?:deg|grad|rad|turn)?)\s*,\s*(?<s_legacy>(?:\d*\.)?\d+)%\s*,\s*(?<l_legacy>(?:\d*\.)?\d+)%(?:\s*,\s*(?<a_legacy>(?:\d*\.)?\d+))?|(?<h>-?(?:\d*\.)?\d+(?:deg|grad|rad|turn)?)\s+(?<s>(?:\d*\.)?\d+)%?\s+(?<l>(?:\d*\.)?\d+)%?(?:\s*\/\s*(?<a>(?:\d*\.)?\d+%?))?|from\s+(?<from>(?:\w+|\w+\(\s*[^())]+\s*\)|\w+\(from\s+\w+\(.*\)\s*\)|#[a-fA-F\d]+))\s+(?<relative_h>(?:[hsl]|(?:\d*\.)?\d+|calc\([hsl()/*\-+\d.\s]+\)))\s+(?<relative_s>(?:[hsl]|(?:\d*\.)?\d+|calc\([hsl()/*\-+\d.\s]+\)))%?\s+(?<relative_l>(?:[hsl]|(?:\d*\.)?\d+|calc\([hsl()/*\-+\d.\s]+\)))%?(?:\s*\/\s*(?<relative_a>(?:(?:\d*\.)?\d+%?|calc\([()/*\-+\d.\s\w]*(?:alpha)?[()/*\-+\d.\s\w]*\)|alpha)))?)\s*\)$/,
127
+ [a.CIELab]: /^lab\s*\(\s*(?:(?<L>(?:\d*\.)?\d+%?)\s+(?<a>-?(?:\d*\.)?\d+%?)\s+(?<b>-?(?:\d*\.)?\d+%?)(?:\s*\/\s*(?<A>(?:\d*\.)?\d+%?))?|from\s+(?<from>(?:\w+|\w+\(\s*[^())]+\s*\)|\w+\(from\s+\w+\(.*\)\s*\)|#[a-fA-F\d]+))\s+(?<relative_L>(?:[lab]|(?:\d*\.)?\d+|calc\([lab()/*\-+\d.\s]+\)))\s+(?<relative_a>(?:[lab]|(?:\d*\.)?\d+|calc\([lab()/*\-+\d.\s]+\)))\s+(?<relative_b>(?:[lab]|(?:\d*\.)?\d+|calc\([lab()/*\-+\d.\s]+\)))(?:\s*\/\s*(?<relative_A>(?:(?:\d*\.)?\d+%?|calc\([()/*\-+\d.\s\w]*(?:alpha)?[()/*\-+\d.\s\w]*\)|alpha)))?)\s*\)$/,
128
+ [a.LCH]: /^lch\s*\(\s*(?:(?<l>(?:\d*\.)?\d+%?)\s+(?<c>-?(?:\d*\.)?\d+%?)\s+(?<h>-?(?:\d*\.)?\d+(?:deg|grad|rad|turn)?)(?:\s*\/\s*(?<a>(?:\d*\.)?\d+%?))?|from\s+(?<from>(?:\w+|\w+\(\s*[^())]+\s*\)|\w+\(from\s+\w+\(.*\)\s*\)|#[a-fA-F\d]+))\s+(?<relative_l>(?:[lch]|(?:\d*\.)?\d+|calc\([lch()/*\-+\d.\s]+\)))\s+(?<relative_c>(?:[lch]|(?:\d*\.)?\d+|calc\([lch()/*\-+\d.\s]+\)))\s+(?<relative_h>(?:[lch]|(?:\d*\.)?\d+|calc\([lch()/*\-+\d.\s]+\)))(?:\s*\/\s*(?<relative_a>(?:(?:\d*\.)?\d+%?|calc\([()/*\-+\d.\s\w]*(?:alpha)?[()/*\-+\d.\s\w]*\)|alpha)))?)\s*\)$/,
129
+ [a.CMYK]: /^(?:device-cmyk|cmyk)\s*\(\s*(?:(?<c_legacy>(?:\d*\.)?\d+%?)\s*,\s*(?<m_legacy>(?:\d*\.)?\d+%?)\s*,\s*(?<y_legacy>(?:\d*\.)?\d+%?)\s*,\s*(?<k_legacy>(?:\d*\.)?\d+%?)(?:\s*,\s*(?<a_legacy>(?:\d*\.)?\d+))?|(?<c>(?:\d*\.)?\d+%?)\s+(?<m>(?:\d*\.)?\d+%?)\s+(?<y>(?:\d*\.)?\d+%?)\s+(?<k>(?:\d*\.)?\d+%?)(?:\s*\/\s*(?<a>(?:\d*\.)?\d+%?))?)\s*\)$/
130
+ };
131
+ var A = {
132
+ REGEXP: /^calc\(\s*(?<operation>[\d./*+-\w\s]+)\s*\)$/,
133
+ SCOPED: /\(\s*([^()]+)\s*\)/g,
134
+ DIVISION: /\s*(?<left>(?:(?:\d*\.)?\d+|\w+))\s*\/\s*(?<right>(?:(?:\d*\.)?\d+|\w+))\s*/,
135
+ MULTIPLICATION: /\s*(?<left>(?:(?:\d*\.)?\d+|\w+))\s*\*\s*(?<right>(?:(?:\d*\.)?\d+|\w+))\s*/,
136
+ SUM: /\s*(?<left>(?:(?:\d*\.)?\d+|\w+))\s*\+\s*(?<right>(?:(?:\d*\.)?\d+|\w+))\s*/,
137
+ REST: /\s*(?<left>(?:(?:\d*\.)?\d+|\w+))\s*-\s*(?<right>(?:(?:\d*\.)?\d+|\w+))\s*/
138
+ };
139
+ var m = /^(?<number>-?(?:\d*\.)?\d+)(?<units>(?:deg|grad|rad|turn)?)$/;
140
+ var b = /^(-?\d+(?:\.\d+)?|-?\.\d+)%$/;
141
+ var g = /^0x([a-f\d]{1,2})$/i;
142
+ var H = /\{(\d+)\}/g;
143
+ var C = /,( +|\d+)/g;
144
+ var L = / +/;
145
+ var B = "The provided string color doesn't have a correct format";
146
+ var E = "The provided color object doesn't have the proper keys or format";
147
+ var p = "is not a valid operation for a relative color";
148
+ var F;
149
+ var R;
150
+ var f;
151
+ ((function(t) {
152
+ t.NONE = "none", t.DEGREES = "deg", t.GRADIANS = "grad", t.RADIANS = "rad", t.TURNS = "turn";
153
+ }))(F || (F = {})), function(t) {
154
+ t.NONE = "none", t.PERCENT = "percent";
155
+ }(R || (R = {})), function(t) {
156
+ t.DEVICE_CMYK = "device-cmyk", t.CMYK = "cmyk";
157
+ }(f || (f = {}));
158
+ var _ = {
159
+ decimals: 6,
160
+ legacyCSS: false,
161
+ spacesAfterCommas: false,
162
+ anglesUnit: F.NONE,
163
+ rgbUnit: R.NONE,
164
+ labUnit: R.NONE,
165
+ lchUnit: R.NONE,
166
+ cmykUnit: R.PERCENT,
167
+ alphaUnit: R.NONE,
168
+ cmykFunction: f.DEVICE_CMYK
169
+ };
170
+ var S = (t, e) => Object.prototype.hasOwnProperty.call(t, e);
171
+ var G = (t) => +`${t}`.replace(b, "$1");
172
+ var M = (t) => b.test(`${t}`) ? G(t) : Math.min(+t, 100);
173
+ var y = (t) => (1 === t.length && (t += t), parseInt(t, 16));
174
+ var I = (t) => {
175
+ const e = W(t, 0).toString(16).toUpperCase();
176
+ return 1 === e.length ? `0x0${e}` : `0x${e}`;
177
+ };
178
+ var w = (e, s = false) => !s && b.test(e) ? Math.min(t * G(e) / 100, t) : g.test(e) ? (3 === e.length && (e += e.slice(-1)), s ? W(e) / t : W(e)) : Math.min(+e, s ? 1 : t);
179
+ var P = (t) => b.test(t) ? j(s * G(t) / 100, -125, s) : j(+t, -125, s);
180
+ var O = (t) => b.test(t) ? j(r * G(t) / 100, -150, r) : j(+t, -150, r);
181
+ var D = (t) => Math.min(b.test(t) ? G(t) / 100 : +t, 1);
182
+ var k = (t) => [...t].sort().join("").toUpperCase();
183
+ var W = (t, e = 6) => {
184
+ const s = Math.pow(10, e);
185
+ return Math.round(+t * s) / s;
186
+ };
187
+ var j = (t, e, s) => Math.max(e, Math.min(t, s));
188
+ var x = (t) => 180 * t / Math.PI;
189
+ var N = (t) => t * Math.PI / 180;
190
+ var v = 360;
191
+ var $ = (t) => {
192
+ if ("string" == typeof t) {
193
+ const e = t.match(m).groups, s = +e.number;
194
+ switch (e.units) {
195
+ case F.RADIANS:
196
+ t = W(x(s));
197
+ break;
198
+ case F.TURNS:
199
+ t = W(s * v);
200
+ break;
201
+ case F.GRADIANS:
202
+ t = W(.9 * s);
203
+ break;
204
+ case F.DEGREES:
205
+ default: t = s;
206
+ }
207
+ }
208
+ return (t > 360 || t < 0) && (t -= Math.floor(t / v) * v), t;
209
+ };
210
+ var X = (t) => ("string" == typeof t && (t = b.test(t) ? G(t) / 100 : +t), isNaN(+t) || t > 1 ? 1 : W(t));
211
+ var Y = (t, e) => {
212
+ let s;
213
+ switch (e) {
214
+ case F.RADIANS:
215
+ s = W(N(t));
216
+ break;
217
+ case F.TURNS:
218
+ s = W(t / v);
219
+ break;
220
+ case F.GRADIANS:
221
+ s = W(10 / 9 * t);
222
+ break;
223
+ case F.DEGREES:
224
+ case F.NONE:
225
+ default: s = t;
226
+ }
227
+ return s;
228
+ };
229
+ var U = (t) => `${t}` in n;
230
+ var T = [
231
+ [
232
+ .4360747,
233
+ .3850649,
234
+ .1430804
235
+ ],
236
+ [
237
+ .2225045,
238
+ .7168786,
239
+ .0606169
240
+ ],
241
+ [
242
+ .0139322,
243
+ .0971045,
244
+ .7141733
245
+ ]
246
+ ];
247
+ var K = [
248
+ [
249
+ 3.1338561,
250
+ -1.6168667,
251
+ -0.4906146
252
+ ],
253
+ [
254
+ -0.9787684,
255
+ 1.9161415,
256
+ .033454
257
+ ],
258
+ [
259
+ .0719453,
260
+ -0.2289914,
261
+ 1.4052427
262
+ ]
263
+ ];
264
+ var V = T.map(((t) => t.reduce(((t, e) => t + e), 0)));
265
+ var q = (e, s, r) => (r < 0 && (r += 6), r >= 6 && (r -= 6), W(r < 1 ? ((s - e) * r + e) * t : r < 3 ? s * t : r < 4 ? ((s - e) * (4 - r) + e) * t : e * t));
266
+ var z = (t) => t <= .04045 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
267
+ var Q = (t) => t <= .0031308 ? 12.92 * t : 1.055 * t ** (1 / 2.4) - .055;
268
+ var J = (t, e, s, r) => {
269
+ const a = [
270
+ 0,
271
+ 0,
272
+ 0
273
+ ], i = [
274
+ t,
275
+ e,
276
+ s
277
+ ];
278
+ return r.forEach(((t, e) => {
279
+ t.forEach(((t, s) => {
280
+ a[e] += t * i[s];
281
+ }));
282
+ })), a;
283
+ };
284
+ var Z = (t, e, s) => {
285
+ e /= 100;
286
+ const r = (s /= 100) <= .5 ? s * (e + 1) : s + e - s * e, a = 2 * s - r;
287
+ return {
288
+ R: q(a, r, (t /= 60) + 2),
289
+ G: q(a, r, t),
290
+ B: q(a, r, t - 2)
291
+ };
292
+ };
293
+ var tt = (e, s, r, a = 1) => {
294
+ e /= t, s /= t, r /= t, a = Math.min(a, 1);
295
+ const i = Math.max(e, s, r), n = Math.min(e, s, r), c = i - n;
296
+ let h = 0, o = 0;
297
+ const l = (i + n) / 2;
298
+ if (0 !== c) {
299
+ switch (i) {
300
+ case e:
301
+ h = (s - r) / c % 6;
302
+ break;
303
+ case s:
304
+ h = (r - e) / c + 2;
305
+ break;
306
+ case r: h = (e - s) / c + 4;
307
+ }
308
+ h = W(60 * h), h < 0 && (h += 360), o = c / (1 - Math.abs(2 * l - 1));
309
+ }
310
+ return {
311
+ H: h,
312
+ S: W(100 * o),
313
+ L: W(100 * l),
314
+ A: a
315
+ };
316
+ };
317
+ var et = (e, s, r) => {
318
+ const a = [
319
+ e / t,
320
+ s / t,
321
+ r / t
322
+ ].map(z), i = J(a[0], a[1], a[2], T), n = ((t, e, s) => {
323
+ const r = (t) => t > (6 / 29) ** 3 ? Math.cbrt(t) : t / (3 * (6 / 29) ** 2) + 4 / 29, a = r(t / V[0]), i = r(e / V[1]);
324
+ return [
325
+ 116 * i - 16,
326
+ 500 * (a - i),
327
+ 200 * (i - r(s / V[2]))
328
+ ];
329
+ })(i[0], i[1], i[2]);
330
+ return {
331
+ L: n[0],
332
+ a: n[1],
333
+ b: n[2]
334
+ };
335
+ };
336
+ var st = (e, s, r) => {
337
+ const a = ((t, e, s) => {
338
+ const r = (t) => t > 6 / 29 ? t ** 3 : 3 * (6 / 29) ** 2 * (t - 4 / 29), a = (t + 16) / 116, i = e / 500, n = s / 200;
339
+ return [
340
+ V[0] * r(a + i),
341
+ V[1] * r(a),
342
+ V[2] * r(a - n)
343
+ ];
344
+ })(e, s, r), i = J(a[0], a[1], a[2], K).map(Q);
345
+ return {
346
+ R: j(i[0] * t, 0, t),
347
+ G: j(i[1] * t, 0, t),
348
+ B: j(i[2] * t, 0, t)
349
+ };
350
+ };
351
+ var rt = (t, e, s) => {
352
+ return {
353
+ L: t,
354
+ C: Math.sqrt(e ** 2 + s ** 2),
355
+ H: $(x(Math.atan2(s, e)))
356
+ };
357
+ };
358
+ var at = (t, e, s) => {
359
+ const r = N(s);
360
+ return {
361
+ L: t,
362
+ a: e * Math.cos(r),
363
+ b: e * Math.sin(r)
364
+ };
365
+ };
366
+ var it = (t, e, s) => {
367
+ const r = et(t, e, s);
368
+ return rt(r.L, r.a, r.b);
369
+ };
370
+ var nt = (t, e, s) => {
371
+ const r = at(t, e, s);
372
+ return st(r.L, r.a, r.b);
373
+ };
374
+ var ct = (e, s, r, a = 1) => ({
375
+ H: tt(e, s, r, a).H,
376
+ W: W(Math.min(e, s, r) / t * 100),
377
+ B: W(100 * (1 - Math.max(e, s, r) / t)),
378
+ A: a
379
+ });
380
+ var ht = (e, s, r) => {
381
+ const a = 1 - (r /= 100) - (s /= 100), i = a * (1 - Math.abs(e / 60 % 2 - 1));
382
+ let n = 0, c = 0, h = 0;
383
+ return e < 60 ? (n = a, c = i, h = 0) : e >= 60 && e < 120 ? (n = i, c = a, h = 0) : e >= 120 && e < 180 ? (n = 0, c = a, h = i) : e >= 180 && e < 240 ? (n = 0, c = i, h = a) : e >= 240 && e < 300 ? (n = i, c = 0, h = a) : e >= 300 && (n = a, c = 0, h = i), n += s, c += s, h += s, {
384
+ R: j(n * t, 0, t),
385
+ G: j(c * t, 0, t),
386
+ B: j(h * t, 0, t)
387
+ };
388
+ };
389
+ var ot = (e, s, r, a) => ({
390
+ R: W(t * (1 - e) * (a = 1 - a)),
391
+ G: W(t * (1 - s) * a),
392
+ B: W(t * (1 - r) * a)
393
+ });
394
+ var lt = (e, s, r) => {
395
+ e /= t, s /= t, r /= t;
396
+ const a = 1 - Math.max(e, s, r), i = 1 - a, n = i && (i - s) / i, c = i && (i - r) / i;
397
+ return {
398
+ C: W(100 * (i && (i - e) / i)),
399
+ M: W(100 * n),
400
+ Y: W(100 * c),
401
+ K: W(100 * a)
402
+ };
403
+ };
404
+ var ut = (t, e) => {
405
+ if (t < 0 && (t += 360), t > 360 && (t -= 360), 360 === t || 0 === t) return t;
406
+ const s = [
407
+ [0, 120],
408
+ [120, 180],
409
+ [180, 240],
410
+ [240, 360]
411
+ ], r = [
412
+ [0, 60],
413
+ [60, 120],
414
+ [120, 240],
415
+ [240, 360]
416
+ ], a = e ? r : s;
417
+ let i = 0, n = 0, c = 0, h = 0;
418
+ return (e ? s : r).find(((e, s) => t >= e[0] && t < e[1] && (i = e[0], n = e[1], c = a[s][0], h = a[s][1], true))), c + (h - c) / (n - i) * (t - i);
419
+ };
420
+ var dt = class {
421
+ get rgb() {
422
+ return this._rgb;
423
+ }
424
+ };
425
+ var At = class extends dt {
426
+ constructor(e) {
427
+ super();
428
+ const s = e.match(d.HEX).groups;
429
+ this._r = s.r ?? s.rr, this._g = s.g ?? s.gg, this._b = s.b ?? s.bb, this._a = s.a ?? s.aa;
430
+ const r = {
431
+ R: y(this._r),
432
+ G: y(this._g),
433
+ B: y(this._b)
434
+ };
435
+ void 0 !== this._a && (r.A = y(this._a) / t), this._rgb = r;
436
+ }
437
+ };
438
+ var mt = class {
439
+ constructor(t, e, s) {
440
+ this._operations = /* @__PURE__ */ new Map([
441
+ [A.DIVISION, this._division],
442
+ [A.MULTIPLICATION, this._multiplication],
443
+ [A.SUM, this._sum],
444
+ [A.REST, this._rest]
445
+ ]), this._colorIndex = t;
446
+ let r = e, a = 0;
447
+ if (Number.isNaN(+e)) if (e in s) this._result = s[e];
448
+ else if (A.REGEXP.test(r)) A.REGEXP.lastIndex = 0, this._result = this._getCalcValue(r, s);
449
+ else {
450
+ for (; A.SCOPED.test(r) && a < 100;) {
451
+ if (A.SCOPED.lastIndex = 0, r = r.replace(A.SCOPED, ((t, e) => this._calculate(e, s).toString())), A.REGEXP.test(r)) {
452
+ A.REGEXP.lastIndex = 0;
453
+ break;
454
+ }
455
+ a++;
456
+ }
457
+ this._result = this._getCalcValue(r, s);
458
+ }
459
+ else this._result = +e;
460
+ }
461
+ _division(t, e) {
462
+ return t / e;
463
+ }
464
+ _multiplication(t, e) {
465
+ return t * e;
466
+ }
467
+ _sum(t, e) {
468
+ return t + e;
469
+ }
470
+ _rest(t, e) {
471
+ return t - e;
472
+ }
473
+ _getCalcValue(t, e) {
474
+ const s = t.match(A.REGEXP).groups.operation, r = this._calculate(s, e);
475
+ if (Number.isNaN(r)) throw new Error(`Invalid value for ${this._colorIndex}. ${s} ${p}`);
476
+ return r;
477
+ }
478
+ _calculate(t, e) {
479
+ return this._operations.forEach(((s, r) => {
480
+ let a = 0;
481
+ for (; r.test(t) && a < 100;) t = t.replace(r, ((t, r, a) => s(e[r] ?? +r, e[a] ?? +a).toString())), a++;
482
+ })), +t;
483
+ }
484
+ get result() {
485
+ return this._result;
486
+ }
487
+ };
488
+ var bt = class extends dt {
489
+ get hasPercentageAlpha() {
490
+ return b.test(this._a);
491
+ }
492
+ };
493
+ var gt = class extends bt {
494
+ constructor(e, s) {
495
+ super();
496
+ const { r_legacy: a, g_legacy: i, b_legacy: n, a_legacy: c, r: h, g: o, b: l, a: u, from: A, relative_r: m, relative_g: b, relative_b: g, relative_a: H } = e.match(d.RGB).groups;
497
+ if (A) {
498
+ const e = s(A), r = {
499
+ r: e.R,
500
+ g: e.G,
501
+ b: e.B,
502
+ alpha: e.A ?? 1
503
+ }, a = new mt("r", m, r).result, i = new mt("g", b, r).result, n = new mt("b", g, r).result, c = {
504
+ R: Math.min(a, t),
505
+ G: Math.min(i, t),
506
+ B: Math.min(n, t)
507
+ };
508
+ if (H) {
509
+ const t = new mt("alpha", H, r).result;
510
+ c.A = Math.min(t, 1);
511
+ }
512
+ this._rgb = c;
513
+ } else {
514
+ this._r = a ?? h, this._g = i ?? o, this._b = n ?? l, this._a = c ?? u;
515
+ const e = {
516
+ R: Math.min(w(this._r), t),
517
+ G: Math.min(w(this._g), t),
518
+ B: Math.min(w(this._b), t)
519
+ };
520
+ void 0 !== this._a && (e.A = X(this._a)), this._rgb = e;
521
+ }
522
+ }
523
+ get hasPercentageValues() {
524
+ return b.test(this._r) && b.test(this._g) && b.test(this._b);
525
+ }
526
+ static test(t) {
527
+ return d.RGB.test(t);
528
+ }
529
+ };
530
+ var Ht = class extends bt {
531
+ get angleUnit() {
532
+ if (this._h) {
533
+ const t = this._h.match(m).groups.units;
534
+ return "" === t ? F.NONE : t;
535
+ }
536
+ return F.NONE;
537
+ }
538
+ };
539
+ var Ct = class extends Ht {
540
+ constructor(t, s) {
541
+ super();
542
+ const { h_legacy: a, s_legacy: i, l_legacy: n, a_legacy: c, h, s: o, l, a: u, from: A, relative_h: m, relative_s: b, relative_l: g, relative_a: H } = t.match(d.HSL).groups;
543
+ if (A) {
544
+ const t = s(A), r = tt(t.R, t.G, t.B, t.A), a = {
545
+ h: r.H,
546
+ s: r.S,
547
+ l: r.L,
548
+ alpha: r.A
549
+ }, i = new mt("h", m, a).result, n = new mt("s", b, a).result, c = new mt("l", g, a).result, h = Z(j(i, 0, 360), j(n, 0, e), j(c, 0, e));
550
+ if (H) {
551
+ const t = new mt("alpha", H, a).result;
552
+ h.A = j(t, 0, 1);
553
+ }
554
+ this._rgb = h;
555
+ } else {
556
+ this._h = a ?? h, this._s = i ?? o, this._l = n ?? l, this._a = c ?? u;
557
+ const t = Z($(this._h), M(this._s), M(this._l));
558
+ void 0 !== this._a && (t.A = X(this._a)), this._rgb = t;
559
+ }
560
+ }
561
+ static test(t) {
562
+ return d.HSL.test(t);
563
+ }
564
+ };
565
+ var Lt = class extends Ht {
566
+ constructor(t, s) {
567
+ super();
568
+ const { h: a, w: i, b: n, a: c, from: h, relative_h: o, relative_w: l, relative_b: u, relative_a: A } = t.match(d.HWB).groups;
569
+ if (h) {
570
+ const t = s(h), r = ct(t.R, t.G, t.B, t.A), a = {
571
+ h: r.H,
572
+ w: r.W,
573
+ b: r.B,
574
+ alpha: r.A
575
+ }, i = new mt("h", o, a).result, n = new mt("w", l, a).result, c = new mt("b", u, a).result, d = ht(j(i, 0, 360), j(n, 0, e), j(c, 0, e));
576
+ if (A) {
577
+ const t = new mt("alpha", A, a).result;
578
+ d.A = j(t, 0, 1);
579
+ }
580
+ this._rgb = d;
581
+ } else {
582
+ this._h = a, this._w = i, this._b = n, this._a = c;
583
+ const t = ht($(this._h), M(this._w), M(this._b));
584
+ void 0 !== this._a && (t.A = X(this._a)), this._rgb = t;
585
+ }
586
+ }
587
+ static test(t) {
588
+ return d.HWB.test(t);
589
+ }
590
+ };
591
+ var Bt = class extends bt {
592
+ constructor(t, r) {
593
+ super();
594
+ const { L: i, a: n, b: c, A: h, from: o, relative_L: l, relative_a: u, relative_b: A, relative_A: m } = t.match(d.CIELab).groups;
595
+ if (o) {
596
+ const t = r(o), a = et(t.R, t.G, t.B), i = {
597
+ l: a.L,
598
+ a: a.a,
599
+ b: a.b,
600
+ alpha: t.A ?? 1
601
+ }, n = new mt("l", l, i).result, c = new mt("a", u, i).result, h = new mt("b", A, i).result, d = st(j(n, 0, e), j(c, -125, s), j(h, -125, s));
602
+ if (m) {
603
+ const t = new mt("alpha", m, i).result;
604
+ d.A = j(t, 0, 1);
605
+ }
606
+ this._rgb = d;
607
+ } else {
608
+ this._L = i, this._A = n, this._B = c, this._a = h;
609
+ const t = st(M(this._L), P(this._A), P(this._B));
610
+ void 0 !== this._a && (t.A = X(this._a)), this._rgb = t;
611
+ }
612
+ }
613
+ get hasPercentageValues() {
614
+ return b.test(this._L) && b.test(this._A) && b.test(this._B);
615
+ }
616
+ static test(t) {
617
+ return d.CIELab.test(t);
618
+ }
619
+ };
620
+ var Et = class extends Ht {
621
+ constructor(t, s) {
622
+ super();
623
+ const { l: i, c: n, h: c, a: h, from: o, relative_l: l, relative_c: u, relative_h: A, relative_a: m } = t.match(d.LCH).groups;
624
+ if (o) {
625
+ const t = s(o), a = it(t.R, t.G, t.B), i = {
626
+ l: a.L,
627
+ c: a.C,
628
+ h: a.H,
629
+ alpha: t.A ?? 1
630
+ }, n = new mt("l", l, i).result, c = new mt("c", u, i).result, h = new mt("h", A, i).result, d = nt(j(n, 0, e), j(c, -150, r), $(h));
631
+ if (m) {
632
+ const t = new mt("alpha", m, i).result;
633
+ d.A = j(t, 0, 1);
634
+ }
635
+ this._rgb = d;
636
+ } else {
637
+ this._l = i, this._c = n, this._h = c, this._a = h;
638
+ const t = nt(M(this._l), O(this._c), $(this._h));
639
+ void 0 !== this._a && (t.A = X(this._a)), this._rgb = t;
640
+ }
641
+ }
642
+ get hasPercentageValues() {
643
+ return b.test(this._l) && b.test(this._c);
644
+ }
645
+ static test(t) {
646
+ return d.LCH.test(t);
647
+ }
648
+ };
649
+ var pt = class extends bt {
650
+ constructor(t) {
651
+ super();
652
+ const e = t.match(d.CMYK).groups;
653
+ this._c = e.c_legacy ?? e.c, this._m = e.m_legacy ?? e.m, this._y = e.y_legacy ?? e.y, this._k = e.k_legacy ?? e.k, this._a = e.a_legacy ?? e.a;
654
+ const s = ot(D(this._c), D(this._m), D(this._y), D(this._k));
655
+ void 0 !== this._a && (s.A = X(this._a)), this._rgb = s;
656
+ }
657
+ get hasPercentageValues() {
658
+ return b.test(this._c) && b.test(this._m) && b.test(this._y) && b.test(this._k);
659
+ }
660
+ static test(t) {
661
+ return d.CMYK.test(t);
662
+ }
663
+ };
664
+ var Ft = (e) => "string" == typeof e ? ((t) => {
665
+ let e;
666
+ if (Object.keys(a).some(((s) => {
667
+ if (d[s].test(t)) return e = s, true;
668
+ })), !e && ~h$1.indexOf(t) && (e = a.HEX), !e) throw new Error(B);
669
+ return e;
670
+ })(e) : ((e) => {
671
+ let s, r = false;
672
+ const i = k(Object.keys(e));
673
+ if (l[i] && (s = l[i]), s && s === a.RGB) {
674
+ const i = Object.entries(e).some(((t) => !g.test(`${t[1]}`))), n = Object.entries(e).some(((e) => !(b.test(`${e[1]}`) || !g.test(`${e[1]}`) && !isNaN(+e[1]) && +e[1] <= t)));
675
+ i && n && (r = true), i || (s = a.HEX);
676
+ }
677
+ if (!s || r) throw new Error(E);
678
+ return s;
679
+ })(e);
680
+ var Rt = {
681
+ [a.HEX](t) {
682
+ return new At(~h$1.indexOf(t) ? c[t] : t).rgb;
683
+ },
684
+ [a.RGB]: (t) => new gt(t, _t).rgb,
685
+ [a.HSL]: (t) => new Ct(t, _t).rgb,
686
+ [a.HWB]: (t) => new Lt(t, _t).rgb,
687
+ [a.CIELab]: (t) => new Bt(t, _t).rgb,
688
+ [a.LCH]: (t) => new Et(t, _t).rgb,
689
+ [a.CMYK]: (t) => new pt(t).rgb
690
+ };
691
+ var ft = {
692
+ [a.HEX](t) {
693
+ const e = {
694
+ R: w(`${t.R}`),
695
+ G: w(`${t.G}`),
696
+ B: w(`${t.B}`)
697
+ };
698
+ return S(t, "A") && (e.A = Math.min(w(`${t.A}`, true), 1)), e;
699
+ },
700
+ [a.RGB](t) {
701
+ return this.HEX(t);
702
+ },
703
+ [a.HSL](t) {
704
+ const e = M(`${t.S}`), s = M(`${t.L}`), r = Z($(t.H), e, s);
705
+ return S(t, "A") && (r.A = X(t.A)), r;
706
+ },
707
+ [a.HWB](t) {
708
+ const e = M(`${t.W}`), s = M(`${t.B}`), r = ht($(t.H), e, s);
709
+ return S(t, "A") && (r.A = X(t.A)), r;
710
+ },
711
+ [a.CIELab](t) {
712
+ const a = st(M(`${t.L}`), P(`${t.a}`), P(`${t.b}`));
713
+ return S(t, "A") && (a.A = X(t.A)), a;
714
+ },
715
+ [a.LCH](t) {
716
+ const a = nt(M(`${t.L}`), O(`${t.C}`), $(`${t.H}`));
717
+ return S(t, "A") && (a.A = X(t.A)), a;
718
+ },
719
+ [a.CMYK](t) {
720
+ const i = ot(D(`${t.C}`), D(`${t.M}`), D(`${t.Y}`), D(`${t.K}`));
721
+ return S(t, "A") && (i.A = X(t.A)), i;
722
+ }
723
+ };
724
+ var _t = (t, e = Ft(t)) => "string" == typeof t ? Rt[e](t) : ft[e](t);
725
+ var St = (t, ...e) => {
726
+ const s = [], r = [], a = [], i = [], n = [], c = [], h = [], o = Object.values(F), l = Object.values(R), d = Object.values(f), A = {
727
+ legacyCSS: 0,
728
+ spacesAfterCommas: 0,
729
+ cmykFunction: 0
730
+ };
731
+ for (const t of e) if ("string" == typeof t) {
732
+ if (s.push(t), t.includes(",")) {
733
+ A.legacyCSS++;
734
+ const e = t.match(C);
735
+ 1 === new Set(e).size && L.test(e[0].slice(1)) && A.spacesAfterCommas++;
736
+ }
737
+ if (Ct.test(t)) {
738
+ const e = new Ct(t, _t);
739
+ r.push(e.angleUnit), h.push(e.hasPercentageAlpha);
740
+ continue;
741
+ }
742
+ if (Lt.test(t)) {
743
+ const e = new Lt(t, _t);
744
+ r.push(e.angleUnit), h.push(e.hasPercentageAlpha);
745
+ continue;
746
+ }
747
+ if (gt.test(t)) {
748
+ const e = new gt(t, _t);
749
+ a.push(e.hasPercentageValues), h.push(e.hasPercentageAlpha);
750
+ continue;
751
+ }
752
+ if (Bt.test(t)) {
753
+ const e = new Bt(t, _t);
754
+ i.push(e.hasPercentageValues), h.push(e.hasPercentageAlpha);
755
+ continue;
756
+ }
757
+ if (Et.test(t)) {
758
+ const e = new Et(t, _t);
759
+ r.push(e.angleUnit), n.push(e.hasPercentageValues), h.push(e.hasPercentageAlpha);
760
+ continue;
761
+ }
762
+ if (pt.test(t)) {
763
+ const e = new pt(t);
764
+ c.push(e.hasPercentageValues), t.startsWith("cmyk") && A.cmykFunction++, h.push(e.hasPercentageAlpha);
765
+ }
766
+ }
767
+ return {
768
+ decimals: typeof t.decimals === u.NUMBER ? t.decimals : _.decimals,
769
+ legacyCSS: typeof t.legacyCSS === u.BOOLEAN ? t.legacyCSS : Boolean(s.length && A.legacyCSS === s.length) || _.legacyCSS,
770
+ spacesAfterCommas: typeof t.spacesAfterCommas === u.BOOLEAN ? t.spacesAfterCommas : Boolean(s.length && A.spacesAfterCommas === s.length) || _.spacesAfterCommas,
771
+ anglesUnit: t.anglesUnit && o.includes(t.anglesUnit) ? t.anglesUnit : 1 === new Set(r).size ? r[0] : _.anglesUnit,
772
+ rgbUnit: t.rgbUnit && l.includes(t.rgbUnit) ? t.rgbUnit : 1 === new Set(a).size && a[0] ? R.PERCENT : _.rgbUnit,
773
+ labUnit: t.labUnit && l.includes(t.labUnit) ? t.labUnit : 1 === new Set(i).size && i[0] ? R.PERCENT : _.labUnit,
774
+ lchUnit: t.lchUnit && l.includes(t.lchUnit) ? t.lchUnit : 1 === new Set(n).size && n[0] ? R.PERCENT : _.lchUnit,
775
+ cmykUnit: t.cmykUnit && l.includes(t.cmykUnit) ? t.cmykUnit : 1 !== new Set(c).size || c[0] ? _.cmykUnit : R.NONE,
776
+ alphaUnit: t.alphaUnit && l.includes(t.alphaUnit) ? t.alphaUnit : 1 === new Set(h).size && h[0] ? R.PERCENT : _.alphaUnit,
777
+ cmykFunction: t.cmykFunction && d.includes(t.cmykFunction) ? t.cmykFunction : c.length && c.length === A.cmykFunction ? f.CMYK : _.cmykFunction
778
+ };
779
+ };
780
+ var Gt = (t, e) => ({
781
+ H: W(t.H, e),
782
+ S: W(t.S, e),
783
+ L: W(t.L, e)
784
+ });
785
+ var Mt = (t) => t ? ", " : ",";
786
+ var yt = (t, e) => {
787
+ return o[l[k(Object.keys(t))]].reduce(((s, r, a) => {
788
+ const i = t[r];
789
+ return void 0 !== i && s.push(e(i, a)), s;
790
+ }), []);
791
+ };
792
+ var It = (t, e) => t.replace(H, ((t, s) => `${e[+s - 1]}`));
793
+ var wt = (t, e, s = false) => {
794
+ const { alphaUnit: r, legacyCSS: a, decimals: i } = e;
795
+ return r !== R.PERCENT || a && !s ? W(t, i) : `${W(100 * t, i)}%`;
796
+ };
797
+ var Pt = (t) => {
798
+ const { anglesUnit: e, decimals: s } = t;
799
+ return (r, a) => {
800
+ if (0 === a && e !== F.NONE) return `${W(Y(r, e), s)}${e}`;
801
+ return 3 === a ? wt(r, t) : W(r, s);
802
+ };
803
+ };
804
+ var Ot = {
805
+ [a.HEX]: (t) => {
806
+ const e = yt(t, ((t) => ((t) => {
807
+ let e = W(t, 0).toString(16).toUpperCase();
808
+ return 1 === e.length && (e = `0${e}`), e;
809
+ })(W(t))));
810
+ return It(4 === e.length ? "#{1}{2}{3}{4}" : "#{1}{2}{3}", e);
811
+ },
812
+ [a.RGB]: (e, s) => {
813
+ const { decimals: r, legacyCSS: a, spacesAfterCommas: i, rgbUnit: n } = s, c = Mt(i), h = yt(e, ((e, a) => n === R.PERCENT && a < 3 ? `${((e, s) => W(e / t * 100, s))(e, r)}%` : 3 === a ? wt(e, s) : W(e, r)));
814
+ return It(a ? 4 === h.length ? `rgba({1}${c}{2}${c}{3}${c}{4})` : `rgb({1}${c}{2}${c}{3})` : 4 === h.length ? "rgb({1} {2} {3} / {4})" : "rgb({1} {2} {3})", h);
815
+ },
816
+ [a.HSL]: (t, e) => {
817
+ const { legacyCSS: s, spacesAfterCommas: r } = e, a = Mt(r), n = yt(t, Pt(e));
818
+ return It(s ? 4 === n.length ? `hsla({1}${a}{2}%${a}{3}%${a}{4})` : `hsl({1}${a}{2}%${a}{3}%)` : 4 === n.length ? "hsl({1} {2}% {3}% / {4})" : "hsl({1} {2}% {3}%)", n);
819
+ },
820
+ [a.HWB]: (t, e) => {
821
+ const r = yt(t, Pt(e));
822
+ return It(4 === r.length ? "hwb({1} {2}% {3}% / {4})" : "hwb({1} {2}% {3}%)", r);
823
+ },
824
+ [a.CIELab]: (t, e) => {
825
+ const { decimals: r, labUnit: a } = e, i = yt(t, ((t, i) => {
826
+ if (0 === i) {
827
+ const e = W(M(t), r);
828
+ return a === R.PERCENT ? `${e}%` : `${e}`;
829
+ }
830
+ return i < 3 ? a === R.PERCENT ? `${((t, e) => W(t / s * 100, e))(t, r)}%` : W(t, r) : wt(t, e, true);
831
+ }));
832
+ return It(4 === i.length ? "lab({1} {2} {3} / {4})" : "lab({1} {2} {3})", i);
833
+ },
834
+ [a.LCH]: (t, e) => {
835
+ const { decimals: s, lchUnit: a, anglesUnit: i } = e, n = yt(t, ((t, n) => {
836
+ if (0 === n) {
837
+ const e = W(M(t), s);
838
+ return a === R.PERCENT ? `${e}%` : `${e}`;
839
+ }
840
+ if (1 === n) return a === R.PERCENT ? `${((t, e) => W(t / r * 100, e))(t, s)}%` : W(t, s);
841
+ if (2 === n) {
842
+ if (i !== F.NONE) return `${W(Y(t, i), s)}${i}`;
843
+ return W(t, s);
844
+ }
845
+ return wt(t, e, true);
846
+ }));
847
+ return It(4 === n.length ? "lch({1} {2} {3} / {4})" : "lch({1} {2} {3})", n);
848
+ },
849
+ [a.CMYK]: (t, e) => {
850
+ const { decimals: s, legacyCSS: r, spacesAfterCommas: a, cmykUnit: i, cmykFunction: n } = e, c = Mt(a), h = yt(t, ((t, r) => i === R.PERCENT && r < 4 ? `${W(t, s)}%` : 4 === r ? wt(t, e) : W(t / 100, s)));
851
+ return It(r ? 5 === h.length ? `${n}({1}${c}{2}${c}{3}${c}{4}${c}{5})` : `${n}({1}${c}{2}${c}{3}${c}{4})` : 5 === h.length ? `${n}({1} {2} {3} {4} / {5})` : `${n}({1} {2} {3} {4})`, h);
852
+ }
853
+ };
854
+ var Dt = (t, e, s) => e.reduce(((e, r) => [...e, {
855
+ ...t,
856
+ H: s === n.ADDITIVE ? $(t.H + r) : $(ut(ut(t.H, false) + r, true))
857
+ }]), [{ ...t }]);
858
+ var kt = (t, e) => Dt(t, [30, -30], e);
859
+ var Wt = (t, e) => Dt(t, [180], e);
860
+ var jt = (t, e) => Dt(t, [150, -150], e);
861
+ var xt = (t, e) => Dt(t, [120, -120], e);
862
+ var Nt = (t, e) => Dt(t, [
863
+ 60,
864
+ -120,
865
+ 180
866
+ ], e);
867
+ var vt = (t, e) => Dt(t, [
868
+ 90,
869
+ -90,
870
+ 180
871
+ ], e);
872
+ var $t = {
873
+ [a.HEX]: (t) => ({
874
+ R: I(t.R),
875
+ G: I(t.G),
876
+ B: I(t.B)
877
+ }),
878
+ HEXA(e) {
879
+ const s = $t.HEX(e);
880
+ return s.A = S(e, "A") ? I(e.A * t) : "0xFF", s;
881
+ },
882
+ [a.RGB](t, e) {
883
+ const s = Tt(t, e);
884
+ return S(s, "A") && delete s.A, s;
885
+ },
886
+ RGBA(t, e) {
887
+ const s = $t.RGB(t, e);
888
+ return s.A = S(t, "A") ? W(t.A) : 1, s;
889
+ },
890
+ [a.HSL](t, e) {
891
+ const s = tt(t.R, t.G, t.B);
892
+ return delete s.A, Gt(s, e);
893
+ },
894
+ HSLA(t, e) {
895
+ const s = $t.HSL(t, e);
896
+ return s.A = S(t, "A") ? W(t.A, e) : 1, s;
897
+ },
898
+ [a.HWB](t, e) {
899
+ const s = ct(t.R, t.G, t.B);
900
+ return delete s.A, ((t, e) => ({
901
+ H: W(t.H, e),
902
+ W: W(t.W, e),
903
+ B: W(t.B, e)
904
+ }))(s, e);
905
+ },
906
+ HWBA(t, e) {
907
+ const s = $t.HWB(t, e);
908
+ return s.A = S(t, "A") ? W(t.A, e) : 1, s;
909
+ },
910
+ [a.CIELab]: (t, e) => ((t, e) => ({
911
+ L: W(t.L, e),
912
+ a: W(t.a, e),
913
+ b: W(t.b, e)
914
+ }))(et(t.R, t.G, t.B), e),
915
+ CIELabA(t, e) {
916
+ const s = $t.CIELab(t, e);
917
+ return s.A = S(t, "A") ? W(t.A, e) : 1, s;
918
+ },
919
+ [a.LCH]: (t, e) => ((t, e) => ({
920
+ L: W(t.L, e),
921
+ C: W(t.C, e),
922
+ H: W(t.H, e)
923
+ }))(it(t.R, t.G, t.B), e),
924
+ LCHA(t, e) {
925
+ const s = $t.LCH(t, e);
926
+ return s.A = S(t, "A") ? W(t.A, e) : 1, s;
927
+ },
928
+ [a.CMYK]: (t, e) => ((t, e) => ({
929
+ C: W(t.C, e),
930
+ M: W(t.M, e),
931
+ Y: W(t.Y, e),
932
+ K: W(t.K, e)
933
+ }))(lt(t.R, t.G, t.B), e),
934
+ CMYKA(t, e) {
935
+ const s = $t.CMYK(t, e);
936
+ return s.A = S(t, "A") ? W(t.A, e) : 1, s;
937
+ }
938
+ };
939
+ var Xt = (e, s, r, i) => {
940
+ const n = Ft(e), c = "string" == typeof e, h = _t(e, n), o = "string" == typeof e && S(h, "A") || "string" != typeof e && S(e, "A"), l = tt(h.R, h.G, h.B, h.A);
941
+ o || delete l.A;
942
+ const u = r ? l.L / (s + 1) : (100 - l.L) / (s + 1), d = Array(s).fill(null).map(((t, e) => ({
943
+ ...l,
944
+ L: l.L + u * (e + 1) * (1 - 2 * +r)
945
+ })));
946
+ switch (n) {
947
+ case a.HEX:
948
+ default: return d.map(((e) => {
949
+ const s = Z(e.H, e.S, e.L);
950
+ return o && (s.A = e.A), c ? o ? Ot.HEX({
951
+ ...s,
952
+ A: W(s.A * t)
953
+ }) : Ot.HEX(s) : o ? $t.HEXA(s) : $t.HEX(s);
954
+ }));
955
+ case a.RGB: return d.map(((t) => {
956
+ const e = Z(t.H, t.S, t.L);
957
+ return o && (e.A = t.A), c ? Ot.RGB(e, i) : o ? $t.RGBA(e, i.decimals) : $t.RGB(e, i.decimals);
958
+ }));
959
+ case a.HSL: return d.map(((t) => c ? Ot.HSL(t, i) : o ? $t.HSLA({
960
+ ...Z(t.H, t.S, t.L),
961
+ A: t.A
962
+ }, i.decimals) : $t.HSL(Z(t.H, t.S, t.L), i.decimals)));
963
+ case a.HWB: return d.map(((t) => {
964
+ const e = Z(t.H, t.S, t.L);
965
+ o && (e.A = t.A);
966
+ const s = o ? $t.HWBA(e, i.decimals) : $t.HWB(e, i.decimals);
967
+ return c ? Ot.HWB(s, i) : s;
968
+ }));
969
+ case a.CIELab: return d.map(((t) => {
970
+ const e = Z(t.H, t.S, t.L);
971
+ o && (e.A = t.A);
972
+ const s = o ? $t.CIELabA(e, i.decimals) : $t.CIELab(e, i.decimals);
973
+ return c ? Ot.CIELab(s, i) : s;
974
+ }));
975
+ case a.LCH: return d.map(((t) => {
976
+ const e = Z(t.H, t.S, t.L), s = it(e.R, e.G, e.B);
977
+ return o && (s.A = t.A), c ? Ot.LCH(s, i) : o ? $t.LCHA({
978
+ ...e,
979
+ A: t.A
980
+ }, i.decimals) : $t.LCH(e, i.decimals);
981
+ }));
982
+ }
983
+ };
984
+ var Yt = {
985
+ buildHarmony(t, e, s, r) {
986
+ const i = Ft(t), n = _t(t, i), c = tt(n.R, n.G, n.B, n.A), h = "string" == typeof t && S(n, "A") || "string" != typeof t && S(t, "A"), o = "string" == typeof t;
987
+ switch (i) {
988
+ case a.HEX:
989
+ default: return h ? this.HEXA(Gt(c, 0), e, s, o) : this.HEX(Gt(c, 0), e, s, o);
990
+ case a.HSL: return h ? this.HSLA(c, e, s, o, r) : this.HSL(c, e, s, o, r);
991
+ case a.HWB: return h ? this.HWBA(c, e, s, o, r) : this.HWB(c, e, s, o, r);
992
+ case a.RGB: return h ? this.RGBA(c, e, s, o, r) : this.RGB(c, e, s, o, r);
993
+ case a.CIELab: return h ? this.CIELabA(c, e, s, o, r) : this.CIELab(c, e, s, o, r);
994
+ case a.LCH: return h ? this.LCHA(c, e, s, o, r) : this.LCH(c, e, s, o, r);
995
+ }
996
+ },
997
+ [a.HEX]: (t, e, s, r) => e(t, s).map(((t) => r ? Ot.HEX(Z(t.H, t.S, t.L)) : $t.HEX(Z(t.H, t.S, t.L)))),
998
+ HEXA: (e, s, r, a) => s(e, r).map(((e) => a ? Ot.HEX({
999
+ ...Z(e.H, e.S, e.L),
1000
+ A: X(e.A) * t
1001
+ }) : $t.HEXA({
1002
+ ...Z(e.H, e.S, e.L),
1003
+ A: X(e.A)
1004
+ }))),
1005
+ [a.RGB]: (t, e, s, r, a) => e(t, s).map(((t) => r ? Ot.RGB(Z(t.H, t.S, t.L), a) : $t.RGB(Z(t.H, t.S, t.L), a.decimals))),
1006
+ RGBA: (t, e, s, r, a) => e(t, s).map(((t) => r ? Ot.RGB({
1007
+ ...Z(t.H, t.S, t.L),
1008
+ A: X(t.A)
1009
+ }, a) : $t.RGBA({
1010
+ ...Z(t.H, t.S, t.L),
1011
+ A: X(t.A)
1012
+ }, a.decimals))),
1013
+ [a.HSL]: (t, e, s, r, a) => e(t, s).map(((t) => r ? Ot.HSL({
1014
+ H: t.H,
1015
+ S: t.S,
1016
+ L: t.L
1017
+ }, a) : $t.HSL(Z(t.H, t.S, t.L), a.decimals))),
1018
+ HSLA: (t, e, s, r, a) => e(t, s).map(((t) => r ? Ot.HSL({
1019
+ ...t,
1020
+ A: X(t.A)
1021
+ }, a) : $t.HSLA({
1022
+ ...Z(t.H, t.S, t.L),
1023
+ A: X(t.A)
1024
+ }, a.decimals))),
1025
+ [a.HWB]: (t, e, s, r, a) => e(t, s).map(((t) => {
1026
+ const e = Z(t.H, t.S, t.L), s = ct(e.R, e.G, e.B);
1027
+ return r ? Ot.HWB({
1028
+ H: s.H,
1029
+ W: s.W,
1030
+ B: s.B
1031
+ }, a) : $t.HWB(e, a.decimals);
1032
+ })),
1033
+ HWBA: (t, e, s, r, a) => e(t, s).map(((t) => {
1034
+ const e = Z(t.H, t.S, t.L), s = ct(e.R, e.G, e.B);
1035
+ return r ? Ot.HWB({
1036
+ ...s,
1037
+ A: X(t.A)
1038
+ }, a) : $t.HWBA({
1039
+ ...e,
1040
+ A: X(t.A)
1041
+ }, a.decimals);
1042
+ })),
1043
+ [a.CIELab]: (t, e, s, r, a) => e(t, s).map(((t) => {
1044
+ const e = Z(t.H, t.S, t.L);
1045
+ return r ? Ot.CIELab(et(e.R, e.G, e.B), a) : $t.CIELab(e, a.decimals);
1046
+ })),
1047
+ CIELabA: (t, e, s, r, a) => e(t, s).map(((t) => {
1048
+ const e = Z(t.H, t.S, t.L);
1049
+ return r ? Ot.CIELab({
1050
+ ...et(e.R, e.G, e.B),
1051
+ A: X(t.A)
1052
+ }, a) : $t.CIELabA({
1053
+ ...e,
1054
+ A: X(t.A)
1055
+ }, a.decimals);
1056
+ })),
1057
+ [a.LCH]: (t, e, s, r, a) => e(t, s).map(((t) => {
1058
+ const e = Z(t.H, t.S, t.L);
1059
+ return r ? Ot.LCH(it(e.R, e.G, e.B), a) : $t.LCH(e, a.decimals);
1060
+ })),
1061
+ LCHA: (t, e, s, r, a) => e(t, s).map(((t) => {
1062
+ const e = Z(t.H, t.S, t.L);
1063
+ return r ? Ot.LCH({
1064
+ ...it(e.R, e.G, e.B),
1065
+ A: X(t.A)
1066
+ }, a) : $t.LCHA({
1067
+ ...e,
1068
+ A: X(t.A)
1069
+ }, a.decimals);
1070
+ }))
1071
+ };
1072
+ var Ut = {
1073
+ mix(e, s) {
1074
+ const r = e.map(((t) => {
1075
+ return _t(t, Ft(t));
1076
+ })), a = s === n.SUBTRACTIVE ? r.map(((e) => {
1077
+ const s = ((e, s, r) => {
1078
+ const a = Math.min(e, s, r), i = Math.min(t - e, t - s, t - r), n = e - a, c = s - a, h = r - a, o = Math.min(n, c), l = n - o, u = (c + o) / 2, d = (h + c - o) / 2, A = Math.max(l, u, d) / Math.max(n, c, h), m = isNaN(A) || A === 1 / 0 || A <= 0 ? 1 : A;
1079
+ return {
1080
+ R: l / m + i,
1081
+ Y: u / m + i,
1082
+ B: d / m + i
1083
+ };
1084
+ })(e.R, e.G, e.B);
1085
+ return S(e, "A") && (s.A = e.A), s;
1086
+ })) : null;
1087
+ function i(e) {
1088
+ const r = s === n.ADDITIVE ? {
1089
+ R: 0,
1090
+ G: 0,
1091
+ B: 0,
1092
+ A: 0
1093
+ } : {
1094
+ R: 0,
1095
+ Y: 0,
1096
+ B: 0,
1097
+ A: 0
1098
+ };
1099
+ return e.reduce(((e, r) => {
1100
+ const a = S(r, "A") ? r.A : 1, i = {
1101
+ R: Math.min(e.R + r.R * a, t),
1102
+ B: Math.min(e.B + r.B * a, t),
1103
+ A: 1 - (1 - a) * (1 - e.A)
1104
+ }, c = "G" in e ? e.G : e.Y, h = "G" in r ? r.G : r.Y;
1105
+ return {
1106
+ ...i,
1107
+ ...s === n.ADDITIVE ? { G: Math.min(c + h * a, t) } : { Y: Math.min(c + h * a, t) }
1108
+ };
1109
+ }), r);
1110
+ }
1111
+ let c;
1112
+ if (s === n.ADDITIVE) c = i(r);
1113
+ else {
1114
+ const e = i(a);
1115
+ c = ((e, s, r) => {
1116
+ const a = Math.min(e, s, r), i = Math.min(t - e, t - s, t - r), n = e - a, c = s - a, h = r - a, o = Math.min(c, h), l = n + c - o, u = c + o, d = 2 * (h - o), A = Math.max(l, u, d) / Math.max(n, c, h), m = isNaN(A) || A === 1 / 0 || A <= 0 ? 1 : A;
1117
+ return {
1118
+ R: l / m + i,
1119
+ G: u / m + i,
1120
+ B: d / m + i
1121
+ };
1122
+ })(e.R, e.Y, e.B), c.A = e.A;
1123
+ }
1124
+ return {
1125
+ R: W(c.R),
1126
+ G: W(c.G),
1127
+ B: W(c.B),
1128
+ A: j(c.A, 0, 1)
1129
+ };
1130
+ },
1131
+ [a.HEX](t, e, s) {
1132
+ const r = this.mix(t, e);
1133
+ return delete r.A, s ? Ot.HEX(r) : $t.HEX(r);
1134
+ },
1135
+ HEXA(e, s, r) {
1136
+ const a = this.mix(e, s);
1137
+ return a.A = r ? X(a.A) * t : X(a.A), r ? Ot.HEX(a) : $t.HEXA(a);
1138
+ },
1139
+ [a.RGB](t, e, s, r) {
1140
+ const a = this.mix(t, e);
1141
+ return delete a.A, s ? Ot.RGB(a, r) : $t.RGB(a, r.decimals);
1142
+ },
1143
+ RGBA(t, e, s, r) {
1144
+ const a = this.mix(t, e);
1145
+ return s ? Ot.RGB(a, r) : $t.RGBA(a, r.decimals);
1146
+ },
1147
+ [a.HSL](t, e, s, r) {
1148
+ const a = this.mix(t, e), i = tt(a.R, a.G, a.B);
1149
+ return delete a.A, delete i.A, s ? Ot.HSL(i, r) : $t.HSL(a, r.decimals);
1150
+ },
1151
+ HSLA(t, e, s, r) {
1152
+ const a = this.mix(t, e), i = tt(a.R, a.G, a.B, a.A);
1153
+ return s ? Ot.HSL(i, r) : $t.HSLA(a, r.decimals);
1154
+ },
1155
+ [a.HWB](t, e, s, r) {
1156
+ const a = this.mix(t, e), i = ct(a.R, a.G, a.B);
1157
+ return delete a.A, delete i.A, s ? Ot.HWB(i, r) : $t.HWB(a, r.decimals);
1158
+ },
1159
+ HWBA(t, e, s, r) {
1160
+ const a = this.mix(t, e), i = ct(a.R, a.G, a.B, a.A);
1161
+ return s ? Ot.HWB(i, r) : $t.HWBA(a, r.decimals);
1162
+ },
1163
+ [a.CIELab](t, e, s, r) {
1164
+ const a = this.mix(t, e), i = et(a.R, a.G, a.B);
1165
+ return delete a.A, s ? Ot.CIELab(i, r) : $t.CIELab(a, r.decimals);
1166
+ },
1167
+ CIELabA(t, e, s, r) {
1168
+ const a = this.mix(t, e), i = et(a.R, a.G, a.B);
1169
+ return S(a, "A") && (i.A = a.A), s ? Ot.CIELab(i, r) : $t.CIELabA(a, r.decimals);
1170
+ },
1171
+ [a.LCH](t, e, s, r) {
1172
+ const a = this.mix(t, e), i = it(a.R, a.G, a.B);
1173
+ return delete a.A, s ? Ot.LCH(i, r) : $t.LCH(a, r.decimals);
1174
+ },
1175
+ LCHA(t, e, s, r) {
1176
+ const a = this.mix(t, e), i = it(a.R, a.G, a.B);
1177
+ return S(a, "A") && (i.A = a.A), s ? Ot.LCH(i, r) : $t.LCHA(a, r.decimals);
1178
+ }
1179
+ };
1180
+ var Tt = (t, e) => ({
1181
+ R: W(t.R, e),
1182
+ G: W(t.G, e),
1183
+ B: W(t.B, e),
1184
+ ...S(t, "A") ? { A: W(t.A, e) } : {}
1185
+ });
1186
+ var Kt = (t, e, s, r) => r(_t(t, e), s);
1187
+ var Vt = (t, e, s, r, a) => {
1188
+ s < 1 && (s = 5);
1189
+ return ((t, e, s) => {
1190
+ const r = s - 1, a = (e.R - t.R) / r, i = (e.G - t.G) / r, n = (e.B - t.B) / r, c = X(t.A), h = (X(e.A) - c) / r;
1191
+ return Array(s).fill(null).map(((s, o) => 0 === o ? t : o === r ? e : {
1192
+ R: W(t.R + a * o),
1193
+ G: W(t.G + i * o),
1194
+ B: W(t.B + n * o),
1195
+ A: W(c + h * o)
1196
+ }));
1197
+ })(_t(t), _t(e), s).map(((t) => a(t, r)));
1198
+ };
1199
+ function qt(t) {
1200
+ const { from: e, to: s, thirdParameter: r, fourthParameter: a, translateFunction: i, cssFunction: n } = t, c = "number" == typeof r ? Vt(e, s, r, a?.decimals, i) : Vt(e, s, 5, r?.decimals, i);
1201
+ return n ? c.map(((t) => n(t, St(("number" == typeof r ? a : r) ?? {}, e, s)))) : c;
1202
+ }
1203
+ function zt(t) {
1204
+ const { colors: e, secondParameter: s, thirdParameter: r, colorMixerFunction: a, css: i } = t, c = St(("string" == typeof s ? r : s) ?? {}, ...e);
1205
+ return a(e, "string" == typeof s ? s : n.ADDITIVE, i, c);
1206
+ }
1207
+ var Qt = (t, e, s, r) => ({
1208
+ [i.ANALOGOUS]: Yt.buildHarmony(e, kt, s, r),
1209
+ [i.COMPLEMENTARY]: Yt.buildHarmony(e, Wt, s, r),
1210
+ [i.SPLIT_COMPLEMENTARY]: Yt.buildHarmony(e, jt, s, r),
1211
+ [i.TRIADIC]: Yt.buildHarmony(e, xt, s, r),
1212
+ [i.TETRADIC]: Yt.buildHarmony(e, Nt, s, r),
1213
+ [i.SQUARE]: Yt.buildHarmony(e, vt, s, r)
1214
+ })[t];
1215
+ var Jt = Object.fromEntries(Object.entries(Ut).map(((t) => {
1216
+ const [e, s] = t;
1217
+ return [e, s.bind(Ut)];
1218
+ })));
1219
+ var Zt = class Zt {
1220
+ constructor(t, e = {}) {
1221
+ this._options = St(e, t), this.rgb = _t(t), this.update("rgb");
1222
+ }
1223
+ update(...t) {
1224
+ t.includes("rgb") || this.updateRGB(), t.includes("hsl") || this.updateHSL(), t.includes("hwb") || this.updateHWB(), t.includes("lab") || this.updateLAB(), t.includes("lch") || this.updateLCH(), t.includes("cmyk") || this.updateCMYK();
1225
+ }
1226
+ updateRGB() {
1227
+ this.rgb = {
1228
+ ...Z(this.hsl.H, this.hsl.S, this.hsl.L),
1229
+ A: this.hsl.A
1230
+ };
1231
+ }
1232
+ updateHSL() {
1233
+ this.hsl = tt(this.rgb.R, this.rgb.G, this.rgb.B, this.rgb.A);
1234
+ }
1235
+ updateHWB() {
1236
+ this.hwb = ct(this.rgb.R, this.rgb.G, this.rgb.B, this.rgb.A);
1237
+ }
1238
+ updateLAB() {
1239
+ this.lab = {
1240
+ ...et(this.rgb.R, this.rgb.G, this.rgb.B),
1241
+ A: this.rgb.A
1242
+ };
1243
+ }
1244
+ updateLCH() {
1245
+ this.lch = {
1246
+ ...it(this.rgb.R, this.rgb.G, this.rgb.B),
1247
+ A: this.rgb.A
1248
+ };
1249
+ }
1250
+ updateCMYK() {
1251
+ this.cmyk = lt(this.rgb.R, this.rgb.G, this.rgb.B);
1252
+ }
1253
+ updateRGBFromHWB() {
1254
+ this.rgb = {
1255
+ ...ht(this.hwb.H, this.hwb.W, this.hwb.B),
1256
+ A: this.rgb.A
1257
+ };
1258
+ }
1259
+ updateRGBFromLCH() {
1260
+ this.rgb = {
1261
+ ...nt(this.lch.L, this.lch.C, this.lch.H),
1262
+ A: this.rgb.A
1263
+ };
1264
+ }
1265
+ updateRGBFromCMYK() {
1266
+ this.rgb = {
1267
+ ...ot(this.cmyk.C, this.cmyk.M, this.cmyk.Y, this.cmyk.K),
1268
+ A: this.rgb.A
1269
+ };
1270
+ }
1271
+ updateRGBFromLAB() {
1272
+ this.rgb = {
1273
+ ...st(this.lab.L, this.lab.a, this.lab.b),
1274
+ A: this.rgb.A
1275
+ };
1276
+ }
1277
+ updateLCHFromLAB() {
1278
+ this.lch = {
1279
+ ...rt(this.lab.L, this.lab.a, this.lab.b),
1280
+ A: this.lab.A
1281
+ };
1282
+ }
1283
+ updateLABromLCH() {
1284
+ this.lab = {
1285
+ ...at(this.lch.L, this.lch.C, this.lch.H),
1286
+ A: this.lch.A
1287
+ };
1288
+ }
1289
+ setOptions(t = {}) {
1290
+ return this._options = {
1291
+ ...this._options,
1292
+ ...t
1293
+ }, this;
1294
+ }
1295
+ setR(e) {
1296
+ this.rgb.R = j(e, 0, t), this.update("rgb");
1297
+ }
1298
+ setG(e) {
1299
+ return this.rgb.G = j(e, 0, t), this.update("rgb"), this;
1300
+ }
1301
+ setB(e) {
1302
+ return this.rgb.B = j(e, 0, t), this.update("rgb"), this;
1303
+ }
1304
+ setH(t) {
1305
+ return this.hsl.H = $(t), this.update("hsl"), this;
1306
+ }
1307
+ setS(t) {
1308
+ return this.hsl.S = j(t, 0, e), this.update("hsl"), this;
1309
+ }
1310
+ setL(t) {
1311
+ return this.hsl.L = j(t, 0, e), this.update("hsl"), this;
1312
+ }
1313
+ setWhiteness(t) {
1314
+ return this.hwb.W = j(t, 0, e), this.updateRGBFromHWB(), this.update("rgb", "hwb"), this;
1315
+ }
1316
+ setBlackness(t) {
1317
+ return this.hwb.B = j(t, 0, e), this.updateRGBFromHWB(), this.update("rgb", "hwb"), this;
1318
+ }
1319
+ setCIEL(t) {
1320
+ return this.lab.L = j(t, 0, e), this.updateRGBFromLAB(), this.updateLCHFromLAB(), this.update("rgb", "lab", "lch"), this;
1321
+ }
1322
+ setCIEa(t) {
1323
+ return this.lab.a = j(t, -125, s), this.updateRGBFromLAB(), this.updateLCHFromLAB(), this.update("rgb", "lab", "lch"), this;
1324
+ }
1325
+ setCIEb(t) {
1326
+ return this.lab.b = j(t, -125, s), this.updateRGBFromLAB(), this.updateLCHFromLAB(), this.update("rgb", "lab", "lch"), this;
1327
+ }
1328
+ setLCHL(t) {
1329
+ return this.lch.L = j(t, 0, e), this.updateRGBFromLCH(), this.updateLABromLCH(), this.update("rgb", "lab", "lch"), this;
1330
+ }
1331
+ setLCHC(t) {
1332
+ return this.lch.C = j(t, 0, r), this.updateRGBFromLCH(), this.updateLABromLCH(), this.update("rgb", "lab", "lch"), this;
1333
+ }
1334
+ setLCHH(t) {
1335
+ return this.lch.H = $(t), this.updateRGBFromLCH(), this.updateLABromLCH(), this.update("rgb", "lab", "lch"), this;
1336
+ }
1337
+ setA(t) {
1338
+ const e = j(t, 0, 1);
1339
+ return this.rgb.A = e, this.hsl.A = e, this.hwb.A = e, this.lab.A = e, this.lch.A = e, this.cmyk.A = e, this;
1340
+ }
1341
+ setC(t) {
1342
+ return this.cmyk.C = j(t, 0, 100), this.updateRGBFromCMYK(), this.update("cmyk"), this;
1343
+ }
1344
+ setM(t) {
1345
+ return this.cmyk.M = j(t, 0, 100), this.updateRGBFromCMYK(), this.update("cmyk"), this;
1346
+ }
1347
+ setY(t) {
1348
+ return this.cmyk.Y = j(t, 0, 100), this.updateRGBFromCMYK(), this.update("cmyk"), this;
1349
+ }
1350
+ setK(t) {
1351
+ return this.cmyk.K = j(t, 0, 100), this.updateRGBFromCMYK(), this.update("cmyk"), this;
1352
+ }
1353
+ get options() {
1354
+ return this._options;
1355
+ }
1356
+ get R() {
1357
+ return W(this.rgb.R, this.options.decimals);
1358
+ }
1359
+ get G() {
1360
+ return W(this.rgb.G, this.options.decimals);
1361
+ }
1362
+ get B() {
1363
+ return W(this.rgb.B, this.options.decimals);
1364
+ }
1365
+ get H() {
1366
+ return W(this.hsl.H, this.options.decimals);
1367
+ }
1368
+ get S() {
1369
+ return W(this.hsl.S, this.options.decimals);
1370
+ }
1371
+ get L() {
1372
+ return W(this.hsl.L, this.options.decimals);
1373
+ }
1374
+ get Whiteness() {
1375
+ return W(this.hwb.W, this.options.decimals);
1376
+ }
1377
+ get Blackness() {
1378
+ return W(this.hwb.B, this.options.decimals);
1379
+ }
1380
+ get CIEL() {
1381
+ return W(this.lab.L, this.options.decimals);
1382
+ }
1383
+ get CIEa() {
1384
+ return W(this.lab.a, this.options.decimals);
1385
+ }
1386
+ get CIEb() {
1387
+ return W(this.lab.b, this.options.decimals);
1388
+ }
1389
+ get LCHL() {
1390
+ return W(this.lch.L, this.options.decimals);
1391
+ }
1392
+ get LCHC() {
1393
+ return W(this.lch.C, this.options.decimals);
1394
+ }
1395
+ get LCHH() {
1396
+ return W(this.lch.H, this.options.decimals);
1397
+ }
1398
+ get A() {
1399
+ return W(this.hsl.A, this.options.decimals);
1400
+ }
1401
+ get C() {
1402
+ return W(this.cmyk.C, this.options.decimals);
1403
+ }
1404
+ get M() {
1405
+ return W(this.cmyk.M, this.options.decimals);
1406
+ }
1407
+ get Y() {
1408
+ return W(this.cmyk.Y, this.options.decimals);
1409
+ }
1410
+ get K() {
1411
+ return W(this.cmyk.K, this.options.decimals);
1412
+ }
1413
+ get HEXObject() {
1414
+ return $t.HEX(this.rgb);
1415
+ }
1416
+ get HEXAObject() {
1417
+ return $t.HEXA(this.rgb);
1418
+ }
1419
+ get RGBObject() {
1420
+ return {
1421
+ R: this.R,
1422
+ G: this.G,
1423
+ B: this.B
1424
+ };
1425
+ }
1426
+ get RGBAObject() {
1427
+ return {
1428
+ ...this.RGBObject,
1429
+ A: this.A
1430
+ };
1431
+ }
1432
+ get HSLObject() {
1433
+ return {
1434
+ H: this.H,
1435
+ S: this.S,
1436
+ L: this.L
1437
+ };
1438
+ }
1439
+ get HSLAObject() {
1440
+ return {
1441
+ ...this.HSLObject,
1442
+ A: this.A
1443
+ };
1444
+ }
1445
+ get HWBObject() {
1446
+ return {
1447
+ H: this.H,
1448
+ W: this.Whiteness,
1449
+ B: this.Blackness
1450
+ };
1451
+ }
1452
+ get HWBAObject() {
1453
+ return {
1454
+ ...this.HWBObject,
1455
+ A: this.A
1456
+ };
1457
+ }
1458
+ get CIELabObject() {
1459
+ return {
1460
+ L: this.CIEL,
1461
+ a: this.CIEa,
1462
+ b: this.CIEb
1463
+ };
1464
+ }
1465
+ get CIELabAObject() {
1466
+ return {
1467
+ ...this.CIELabObject,
1468
+ A: this.A
1469
+ };
1470
+ }
1471
+ get LCHObject() {
1472
+ return {
1473
+ L: this.LCHL,
1474
+ C: this.LCHC,
1475
+ H: this.LCHH
1476
+ };
1477
+ }
1478
+ get LCHAObject() {
1479
+ return {
1480
+ ...this.LCHObject,
1481
+ A: this.A
1482
+ };
1483
+ }
1484
+ get CMYKObject() {
1485
+ return {
1486
+ C: this.C,
1487
+ M: this.M,
1488
+ Y: this.Y,
1489
+ K: this.K
1490
+ };
1491
+ }
1492
+ get CMYKAObject() {
1493
+ return {
1494
+ ...this.CMYKObject,
1495
+ A: this.A
1496
+ };
1497
+ }
1498
+ get HEX() {
1499
+ return Ot.HEX({
1500
+ R: this.R,
1501
+ G: this.G,
1502
+ B: this.B
1503
+ });
1504
+ }
1505
+ get HEXA() {
1506
+ return Ot.HEX({
1507
+ R: this.R,
1508
+ G: this.G,
1509
+ B: this.B,
1510
+ A: this.A * t
1511
+ });
1512
+ }
1513
+ get RGB() {
1514
+ return Ot.RGB({
1515
+ R: this.R,
1516
+ G: this.G,
1517
+ B: this.B
1518
+ }, this.options);
1519
+ }
1520
+ get RGBA() {
1521
+ return Ot.RGB({
1522
+ R: this.R,
1523
+ G: this.G,
1524
+ B: this.B,
1525
+ A: this.A
1526
+ }, this.options);
1527
+ }
1528
+ get HSL() {
1529
+ return Ot.HSL({
1530
+ H: this.H,
1531
+ S: this.S,
1532
+ L: this.L
1533
+ }, this.options);
1534
+ }
1535
+ get HSLA() {
1536
+ return Ot.HSL({
1537
+ H: this.H,
1538
+ S: this.S,
1539
+ L: this.L,
1540
+ A: this.A
1541
+ }, this.options);
1542
+ }
1543
+ get HWB() {
1544
+ return Ot.HWB({
1545
+ H: this.H,
1546
+ W: this.Whiteness,
1547
+ B: this.Blackness
1548
+ }, this.options);
1549
+ }
1550
+ get HWBA() {
1551
+ return Ot.HWB({
1552
+ H: this.H,
1553
+ W: this.Whiteness,
1554
+ B: this.Blackness,
1555
+ A: this.A
1556
+ }, this.options);
1557
+ }
1558
+ get CIELab() {
1559
+ return Ot.CIELab({
1560
+ L: this.CIEL,
1561
+ a: this.CIEa,
1562
+ b: this.CIEb
1563
+ }, this.options);
1564
+ }
1565
+ get CIELabA() {
1566
+ return Ot.CIELab({
1567
+ L: this.CIEL,
1568
+ a: this.CIEa,
1569
+ b: this.CIEb,
1570
+ A: this.A
1571
+ }, this.options);
1572
+ }
1573
+ get LCH() {
1574
+ return Ot.LCH({
1575
+ L: this.LCHL,
1576
+ C: this.LCHC,
1577
+ H: this.LCHH
1578
+ }, this.options);
1579
+ }
1580
+ get LCHA() {
1581
+ return Ot.LCH({
1582
+ L: this.LCHL,
1583
+ C: this.LCHC,
1584
+ H: this.LCHH,
1585
+ A: this.A
1586
+ }, this.options);
1587
+ }
1588
+ get CMYK() {
1589
+ return Ot.CMYK({
1590
+ C: this.C,
1591
+ M: this.M,
1592
+ Y: this.Y,
1593
+ K: this.K
1594
+ }, this.options);
1595
+ }
1596
+ get CMYKA() {
1597
+ return Ot.CMYK({
1598
+ C: this.C,
1599
+ M: this.M,
1600
+ Y: this.Y,
1601
+ K: this.K,
1602
+ A: this.A
1603
+ }, this.options);
1604
+ }
1605
+ static toHEXObject(t) {
1606
+ return Kt(t, Ft(t), 0, $t.HEX);
1607
+ }
1608
+ static toHEX(t) {
1609
+ return Ot.HEX(Zt.toHEXObject(t));
1610
+ }
1611
+ static toHEXAObject(t) {
1612
+ return Kt(t, Ft(t), 0, $t.HEXA);
1613
+ }
1614
+ static toHEXA(t) {
1615
+ return Ot.HEX(Zt.toHEXAObject(t));
1616
+ }
1617
+ static toRGBObject(t, e = {}) {
1618
+ return Kt(t, Ft(t), e.decimals, $t.RGB);
1619
+ }
1620
+ static toRGB(t, e = {}) {
1621
+ const s = Zt.toRGBObject(t, e), r = St(e, t);
1622
+ return Ot.RGB(s, r);
1623
+ }
1624
+ static toRGBAObject(t, e = {}) {
1625
+ return Kt(t, Ft(t), e.decimals, $t.RGBA);
1626
+ }
1627
+ static toRGBA(t, e = {}) {
1628
+ const s = Zt.toRGBAObject(t, e), r = St(e, t);
1629
+ return Ot.RGB(s, r);
1630
+ }
1631
+ static toHSLObject(t, e = {}) {
1632
+ return Kt(t, Ft(t), e.decimals, $t.HSL);
1633
+ }
1634
+ static toHSL(t, e = {}) {
1635
+ const s = Zt.toHSLObject(t, e), r = St(e, t);
1636
+ return Ot.HSL(s, r);
1637
+ }
1638
+ static toHSLAObject(t, e = {}) {
1639
+ return Kt(t, Ft(t), e.decimals, $t.HSLA);
1640
+ }
1641
+ static toHSLA(t, e = {}) {
1642
+ const s = Zt.toHSLAObject(t, e), r = St(e, t);
1643
+ return Ot.HSL(s, r);
1644
+ }
1645
+ static toHWBObject(t, e = {}) {
1646
+ return Kt(t, Ft(t), e.decimals, $t.HWB);
1647
+ }
1648
+ static toHWB(t, e = {}) {
1649
+ const s = Zt.toHWBObject(t, e), r = St(e, t);
1650
+ return Ot.HWB(s, r);
1651
+ }
1652
+ static toHWBAObject(t, e = {}) {
1653
+ return Kt(t, Ft(t), e.decimals, $t.HWBA);
1654
+ }
1655
+ static toHWBA(t, e = {}) {
1656
+ const s = Zt.toHWBAObject(t, e), r = St(e, t);
1657
+ return Ot.HWB(s, r);
1658
+ }
1659
+ static toCIELabObject(t, e = {}) {
1660
+ return Kt(t, Ft(t), e.decimals, $t.CIELab);
1661
+ }
1662
+ static toCIELab(t, e = {}) {
1663
+ const s = Zt.toCIELabObject(t, e), r = St(e, t);
1664
+ return Ot.CIELab(s, r);
1665
+ }
1666
+ static toCIELabAObject(t, e = {}) {
1667
+ return Kt(t, Ft(t), e.decimals, $t.CIELabA);
1668
+ }
1669
+ static toCIELabA(t, e = {}) {
1670
+ const s = Zt.toCIELabAObject(t, e), r = St(e, t);
1671
+ return Ot.CIELab(s, r);
1672
+ }
1673
+ static toLCHObject(t, e = {}) {
1674
+ return Kt(t, Ft(t), e.decimals, $t.LCH);
1675
+ }
1676
+ static toLCH(t, e = {}) {
1677
+ const s = Zt.toLCHObject(t, e), r = St(e, t);
1678
+ return Ot.LCH(s, r);
1679
+ }
1680
+ static toLCHAObject(t, e = {}) {
1681
+ return Kt(t, Ft(t), e.decimals, $t.LCHA);
1682
+ }
1683
+ static toLCHA(t, e = {}) {
1684
+ const s = Zt.toLCHAObject(t, e), r = St(e, t);
1685
+ return Ot.LCH(s, r);
1686
+ }
1687
+ static toCMYKObject(t, e = {}) {
1688
+ return Kt(t, Ft(t), e.decimals, $t.CMYK);
1689
+ }
1690
+ static toCMYK(t, e = {}) {
1691
+ const s = Zt.toCMYKObject(t, e), r = St(e, t);
1692
+ return Ot.CMYK(s, r);
1693
+ }
1694
+ static toCMYKAObject(t, e = {}) {
1695
+ return Kt(t, Ft(t), e.decimals, $t.CMYKA);
1696
+ }
1697
+ static toCMYKA(t, e = {}) {
1698
+ const s = Zt.toCMYKAObject(t, e), r = St(e, t);
1699
+ return Ot.CMYK(s, r);
1700
+ }
1701
+ static getBlendHEXObject(t, e, s = 5) {
1702
+ return Vt(t, e, s, 0, $t.HEX);
1703
+ }
1704
+ static getBlendHEX(t, e, s = 5) {
1705
+ return Zt.getBlendHEXObject(t, e, s).map(((t) => Ot.HEX(t)));
1706
+ }
1707
+ static getBlendHEXAObject(t, e, s = 5) {
1708
+ return Vt(t, e, s, 0, $t.HEXA);
1709
+ }
1710
+ static getBlendHEXA(t, e, s = 5) {
1711
+ return Zt.getBlendHEXAObject(t, e, s).map(((t) => Ot.HEX(t)));
1712
+ }
1713
+ static getBlendRGBObject(t, e, s, r) {
1714
+ return qt({
1715
+ from: t,
1716
+ to: e,
1717
+ thirdParameter: s,
1718
+ fourthParameter: r,
1719
+ translateFunction: $t.RGB
1720
+ });
1721
+ }
1722
+ static getBlendRGB(t, e, s, r) {
1723
+ return qt({
1724
+ from: t,
1725
+ to: e,
1726
+ thirdParameter: s,
1727
+ fourthParameter: r,
1728
+ translateFunction: $t.RGB,
1729
+ cssFunction: Ot.RGB
1730
+ });
1731
+ }
1732
+ static getBlendRGBAObject(t, e, s, r) {
1733
+ return qt({
1734
+ from: t,
1735
+ to: e,
1736
+ thirdParameter: s,
1737
+ fourthParameter: r,
1738
+ translateFunction: $t.RGBA
1739
+ });
1740
+ }
1741
+ static getBlendRGBA(t, e, s, r) {
1742
+ return qt({
1743
+ from: t,
1744
+ to: e,
1745
+ thirdParameter: s,
1746
+ fourthParameter: r,
1747
+ translateFunction: $t.RGBA,
1748
+ cssFunction: Ot.RGB
1749
+ });
1750
+ }
1751
+ static getBlendHSLObject(t, e, s, r) {
1752
+ return qt({
1753
+ from: t,
1754
+ to: e,
1755
+ thirdParameter: s,
1756
+ fourthParameter: r,
1757
+ translateFunction: $t.HSL
1758
+ });
1759
+ }
1760
+ static getBlendHSL(t, e, s, r) {
1761
+ return qt({
1762
+ from: t,
1763
+ to: e,
1764
+ thirdParameter: s,
1765
+ fourthParameter: r,
1766
+ translateFunction: $t.HSL,
1767
+ cssFunction: Ot.HSL
1768
+ });
1769
+ }
1770
+ static getBlendHSLAObject(t, e, s, r) {
1771
+ return qt({
1772
+ from: t,
1773
+ to: e,
1774
+ thirdParameter: s,
1775
+ fourthParameter: r,
1776
+ translateFunction: $t.HSLA
1777
+ });
1778
+ }
1779
+ static getBlendHSLA(t, e, s, r) {
1780
+ return qt({
1781
+ from: t,
1782
+ to: e,
1783
+ thirdParameter: s,
1784
+ fourthParameter: r,
1785
+ translateFunction: $t.HSLA,
1786
+ cssFunction: Ot.HSL
1787
+ });
1788
+ }
1789
+ static getBlendHWBObject(t, e, s, r) {
1790
+ return qt({
1791
+ from: t,
1792
+ to: e,
1793
+ thirdParameter: s,
1794
+ fourthParameter: r,
1795
+ translateFunction: $t.HWB
1796
+ });
1797
+ }
1798
+ static getBlendHWB(t, e, s, r) {
1799
+ return qt({
1800
+ from: t,
1801
+ to: e,
1802
+ thirdParameter: s,
1803
+ fourthParameter: r,
1804
+ translateFunction: $t.HWB,
1805
+ cssFunction: Ot.HWB
1806
+ });
1807
+ }
1808
+ static getBlendHWBAObject(t, e, s, r) {
1809
+ return qt({
1810
+ from: t,
1811
+ to: e,
1812
+ thirdParameter: s,
1813
+ fourthParameter: r,
1814
+ translateFunction: $t.HWBA
1815
+ });
1816
+ }
1817
+ static getBlendHWBA(t, e, s, r) {
1818
+ return qt({
1819
+ from: t,
1820
+ to: e,
1821
+ thirdParameter: s,
1822
+ fourthParameter: r,
1823
+ translateFunction: $t.HWBA,
1824
+ cssFunction: Ot.HWB
1825
+ });
1826
+ }
1827
+ static getBlendCIELabObject(t, e, s, r) {
1828
+ return qt({
1829
+ from: t,
1830
+ to: e,
1831
+ thirdParameter: s,
1832
+ fourthParameter: r,
1833
+ translateFunction: $t.CIELab
1834
+ });
1835
+ }
1836
+ static getBlendCIELab(t, e, s, r) {
1837
+ return qt({
1838
+ from: t,
1839
+ to: e,
1840
+ thirdParameter: s,
1841
+ fourthParameter: r,
1842
+ translateFunction: $t.CIELab,
1843
+ cssFunction: Ot.CIELab
1844
+ });
1845
+ }
1846
+ static getBlendCIELabAObject(t, e, s, r) {
1847
+ return qt({
1848
+ from: t,
1849
+ to: e,
1850
+ thirdParameter: s,
1851
+ fourthParameter: r,
1852
+ translateFunction: $t.CIELabA
1853
+ });
1854
+ }
1855
+ static getBlendCIELabA(t, e, s, r) {
1856
+ return qt({
1857
+ from: t,
1858
+ to: e,
1859
+ thirdParameter: s,
1860
+ fourthParameter: r,
1861
+ translateFunction: $t.CIELabA,
1862
+ cssFunction: Ot.CIELab
1863
+ });
1864
+ }
1865
+ static getBlendLCHObject(t, e, s, r) {
1866
+ return qt({
1867
+ from: t,
1868
+ to: e,
1869
+ thirdParameter: s,
1870
+ fourthParameter: r,
1871
+ translateFunction: $t.LCH
1872
+ });
1873
+ }
1874
+ static getBlendLCH(t, e, s, r) {
1875
+ return qt({
1876
+ from: t,
1877
+ to: e,
1878
+ thirdParameter: s,
1879
+ fourthParameter: r,
1880
+ translateFunction: $t.LCH,
1881
+ cssFunction: Ot.LCH
1882
+ });
1883
+ }
1884
+ static getBlendLCHAObject(t, e, s, r) {
1885
+ return qt({
1886
+ from: t,
1887
+ to: e,
1888
+ thirdParameter: s,
1889
+ fourthParameter: r,
1890
+ translateFunction: $t.LCHA
1891
+ });
1892
+ }
1893
+ static getBlendLCHA(t, e, s, r) {
1894
+ return qt({
1895
+ from: t,
1896
+ to: e,
1897
+ thirdParameter: s,
1898
+ fourthParameter: r,
1899
+ translateFunction: $t.LCHA,
1900
+ cssFunction: Ot.LCH
1901
+ });
1902
+ }
1903
+ static getMixHEXObject(t, e = n.ADDITIVE) {
1904
+ return Ut.HEX(t, e, false);
1905
+ }
1906
+ static getMixHEX(t, e = n.ADDITIVE) {
1907
+ return Ut.HEX(t, e, true);
1908
+ }
1909
+ static getMixHEXAObject(t, e = n.ADDITIVE) {
1910
+ return Ut.HEXA(t, e, false);
1911
+ }
1912
+ static getMixHEXA(t, e = n.ADDITIVE) {
1913
+ return Ut.HEXA(t, e, true);
1914
+ }
1915
+ static getMixRGBObject(t, e, s) {
1916
+ return zt({
1917
+ colors: t,
1918
+ secondParameter: e,
1919
+ thirdParameter: s,
1920
+ colorMixerFunction: Jt.RGB,
1921
+ css: false
1922
+ });
1923
+ }
1924
+ static getMixRGB(t, e, s) {
1925
+ return zt({
1926
+ colors: t,
1927
+ secondParameter: e,
1928
+ thirdParameter: s,
1929
+ colorMixerFunction: Jt.RGB,
1930
+ css: true
1931
+ });
1932
+ }
1933
+ static getMixRGBAObject(t, e, s) {
1934
+ return zt({
1935
+ colors: t,
1936
+ secondParameter: e,
1937
+ thirdParameter: s,
1938
+ colorMixerFunction: Jt.RGBA,
1939
+ css: false
1940
+ });
1941
+ }
1942
+ static getMixRGBA(t, e, s) {
1943
+ return zt({
1944
+ colors: t,
1945
+ secondParameter: e,
1946
+ thirdParameter: s,
1947
+ colorMixerFunction: Jt.RGBA,
1948
+ css: true
1949
+ });
1950
+ }
1951
+ static getMixHSLObject(t, e, s) {
1952
+ return zt({
1953
+ colors: t,
1954
+ secondParameter: e,
1955
+ thirdParameter: s,
1956
+ colorMixerFunction: Jt.HSL,
1957
+ css: false
1958
+ });
1959
+ }
1960
+ static getMixHSL(t, e, s) {
1961
+ return zt({
1962
+ colors: t,
1963
+ secondParameter: e,
1964
+ thirdParameter: s,
1965
+ colorMixerFunction: Jt.HSL,
1966
+ css: true
1967
+ });
1968
+ }
1969
+ static getMixHSLAObject(t, e, s) {
1970
+ return zt({
1971
+ colors: t,
1972
+ secondParameter: e,
1973
+ thirdParameter: s,
1974
+ colorMixerFunction: Jt.HSLA,
1975
+ css: false
1976
+ });
1977
+ }
1978
+ static getMixHSLA(t, e, s) {
1979
+ return zt({
1980
+ colors: t,
1981
+ secondParameter: e,
1982
+ thirdParameter: s,
1983
+ colorMixerFunction: Jt.HSLA,
1984
+ css: true
1985
+ });
1986
+ }
1987
+ static getMixHWBObject(t, e, s) {
1988
+ return zt({
1989
+ colors: t,
1990
+ secondParameter: e,
1991
+ thirdParameter: s,
1992
+ colorMixerFunction: Jt.HWB,
1993
+ css: false
1994
+ });
1995
+ }
1996
+ static getMixHWB(t, e, s) {
1997
+ return zt({
1998
+ colors: t,
1999
+ secondParameter: e,
2000
+ thirdParameter: s,
2001
+ colorMixerFunction: Jt.HWB,
2002
+ css: true
2003
+ });
2004
+ }
2005
+ static getMixHWBAObject(t, e, s) {
2006
+ return zt({
2007
+ colors: t,
2008
+ secondParameter: e,
2009
+ thirdParameter: s,
2010
+ colorMixerFunction: Jt.HWBA,
2011
+ css: false
2012
+ });
2013
+ }
2014
+ static getMixHWBA(t, e, s) {
2015
+ return zt({
2016
+ colors: t,
2017
+ secondParameter: e,
2018
+ thirdParameter: s,
2019
+ colorMixerFunction: Jt.HWBA,
2020
+ css: true
2021
+ });
2022
+ }
2023
+ static getMixCIELabObject(t, e, s) {
2024
+ return zt({
2025
+ colors: t,
2026
+ secondParameter: e,
2027
+ thirdParameter: s,
2028
+ colorMixerFunction: Jt.CIELab,
2029
+ css: false
2030
+ });
2031
+ }
2032
+ static getMixCIELab(t, e, s) {
2033
+ return zt({
2034
+ colors: t,
2035
+ secondParameter: e,
2036
+ thirdParameter: s,
2037
+ colorMixerFunction: Jt.CIELab,
2038
+ css: true
2039
+ });
2040
+ }
2041
+ static getMixCIELabAObject(t, e, s) {
2042
+ return zt({
2043
+ colors: t,
2044
+ secondParameter: e,
2045
+ thirdParameter: s,
2046
+ colorMixerFunction: Jt.CIELabA,
2047
+ css: false
2048
+ });
2049
+ }
2050
+ static getMixCIELabA(t, e, s) {
2051
+ return zt({
2052
+ colors: t,
2053
+ secondParameter: e,
2054
+ thirdParameter: s,
2055
+ colorMixerFunction: Jt.CIELabA,
2056
+ css: true
2057
+ });
2058
+ }
2059
+ static getMixLCHObject(t, e, s) {
2060
+ return zt({
2061
+ colors: t,
2062
+ secondParameter: e,
2063
+ thirdParameter: s,
2064
+ colorMixerFunction: Jt.LCH,
2065
+ css: false
2066
+ });
2067
+ }
2068
+ static getMixLCH(t, e, s) {
2069
+ return zt({
2070
+ colors: t,
2071
+ secondParameter: e,
2072
+ thirdParameter: s,
2073
+ colorMixerFunction: Jt.LCH,
2074
+ css: true
2075
+ });
2076
+ }
2077
+ static getMixLCHAObject(t, e, s) {
2078
+ return zt({
2079
+ colors: t,
2080
+ secondParameter: e,
2081
+ thirdParameter: s,
2082
+ colorMixerFunction: Jt.LCHA,
2083
+ css: false
2084
+ });
2085
+ }
2086
+ static getMixLCHA(t, e, s) {
2087
+ return zt({
2088
+ colors: t,
2089
+ secondParameter: e,
2090
+ thirdParameter: s,
2091
+ colorMixerFunction: Jt.LCHA,
2092
+ css: true
2093
+ });
2094
+ }
2095
+ static getShades(t, e, s) {
2096
+ return "number" == typeof e ? Xt(t, e, true, St(s || {}, t)) : Xt(t, 5, true, St(e || {}, t));
2097
+ }
2098
+ static getTints(t, e, s) {
2099
+ return "number" == typeof e ? Xt(t, e, false, St(s || {}, t)) : Xt(t, 5, false, St(e || {}, t));
2100
+ }
2101
+ static getHarmony(t, e, s, r) {
2102
+ return `${e}` in i ? Qt(e, t, U(s) ? s : n.ADDITIVE, St(U(s) ? r || {} : s || {}, t)) : U(e) ? Qt(i.COMPLEMENTARY, t, e, St(s || {}, t)) : Qt(i.COMPLEMENTARY, t, n.ADDITIVE, St(e || {}, t));
2103
+ }
2104
+ };
2105
+ //#endregion
2106
+ //#region virtual:nuxt:node_modules%2F.cache%2Fnuxt%2F.nuxt%2Fui%2Fcolor-picker.ts
2107
+ var virtual_nuxt_node_modules_2F_cache_2Fnuxt_2F_nuxt_2Fui_2Fcolor_picker_default = {
2108
+ "slots": {
2109
+ "root": "data-[disabled]:opacity-75",
2110
+ "picker": "flex gap-4",
2111
+ "selector": "rounded-md touch-none",
2112
+ "selectorBackground": "w-full h-full relative rounded-md",
2113
+ "selectorThumb": "-translate-y-1/2 -translate-x-1/2 absolute size-4 ring-2 ring-white rounded-full cursor-pointer data-[disabled]:cursor-not-allowed",
2114
+ "track": "w-[8px] relative rounded-md touch-none",
2115
+ "trackThumb": "absolute transform -translate-y-1/2 -translate-x-[4px] rtl:translate-x-[4px] size-4 rounded-full ring-2 ring-white cursor-pointer data-[disabled]:cursor-not-allowed"
2116
+ },
2117
+ "variants": { "size": {
2118
+ "xs": {
2119
+ "selector": "w-38 h-38",
2120
+ "track": "h-38"
2121
+ },
2122
+ "sm": {
2123
+ "selector": "w-40 h-40",
2124
+ "track": "h-40"
2125
+ },
2126
+ "md": {
2127
+ "selector": "w-42 h-42",
2128
+ "track": "h-42"
2129
+ },
2130
+ "lg": {
2131
+ "selector": "w-44 h-44",
2132
+ "track": "h-44"
2133
+ },
2134
+ "xl": {
2135
+ "selector": "w-46 h-46",
2136
+ "track": "h-46"
2137
+ }
2138
+ } },
2139
+ "compoundVariants": [],
2140
+ "defaultVariants": { "size": "md" }
2141
+ };
2142
+ //#endregion
2143
+ //#region node_modules/.pnpm/@nuxt+ui@4.10.0_e299f0a9b209424c2a6c150f5a1a8167/node_modules/@nuxt/ui/dist/runtime/components/ColorPicker.vue
2144
+ function HSLtoHSV(hsl) {
2145
+ const x = hsl.S * (hsl.L < 50 ? hsl.L : 100 - hsl.L);
2146
+ const v = hsl.L + x / 100;
2147
+ return {
2148
+ h: hsl.H,
2149
+ s: hsl.L === 0 ? hsl.S : 2 * x / v,
2150
+ v
2151
+ };
2152
+ }
2153
+ function HSVtoHSL(hsv) {
2154
+ const x = (200 - hsv.s) * hsv.v / 100;
2155
+ return {
2156
+ H: hsv.h,
2157
+ S: x === 0 || x === 200 ? 0 : Math.round(hsv.s * hsv.v / (x <= 100 ? x : 200 - x)),
2158
+ L: x / 2
2159
+ };
2160
+ }
2161
+ var _sfc_main = {
2162
+ __name: "UColorPicker",
2163
+ __ssrInlineRender: true,
2164
+ props: /*@__PURE__*/ mergeModels({
2165
+ as: {
2166
+ type: null,
2167
+ required: false
2168
+ },
2169
+ throttle: {
2170
+ type: Number,
2171
+ required: false,
2172
+ default: 50
2173
+ },
2174
+ disabled: {
2175
+ type: Boolean,
2176
+ required: false
2177
+ },
2178
+ defaultValue: {
2179
+ type: String,
2180
+ required: false,
2181
+ default: "#FFFFFF"
2182
+ },
2183
+ format: {
2184
+ type: String,
2185
+ required: false,
2186
+ default: "hex"
2187
+ },
2188
+ size: {
2189
+ type: null,
2190
+ required: false
2191
+ },
2192
+ class: {
2193
+ type: null,
2194
+ required: false
2195
+ },
2196
+ ui: {
2197
+ type: Object,
2198
+ required: false
2199
+ }
2200
+ }, {
2201
+ "modelValue": { type: String },
2202
+ "modelModifiers": {}
2203
+ }),
2204
+ emits: ["update:modelValue"],
2205
+ setup(__props) {
2206
+ const props = useComponentProps("colorPicker", __props);
2207
+ const modelValue = useModel(__props, "modelValue", { type: String });
2208
+ const appConfig = useAppConfig();
2209
+ const ui = computed(() => tv({
2210
+ extend: virtual_nuxt_node_modules_2F_cache_2Fnuxt_2F_nuxt_2Fui_2Fcolor_picker_default,
2211
+ ...appConfig.ui?.colorPicker || {}
2212
+ })({ size: props.size }));
2213
+ const pickedColor = computed({
2214
+ get() {
2215
+ try {
2216
+ return HSLtoHSV(new Zt(modelValue.value || props.defaultValue).HSLObject);
2217
+ } catch (_) {
2218
+ return {
2219
+ h: 0,
2220
+ s: 0,
2221
+ v: 100
2222
+ };
2223
+ }
2224
+ },
2225
+ set(value) {
2226
+ const color = new Zt(HSVtoHSL(value), {
2227
+ labUnit: "percent",
2228
+ cmykUnit: "percent",
2229
+ cmykFunction: "cmyk"
2230
+ });
2231
+ switch (props.format) {
2232
+ case "rgb":
2233
+ modelValue.value = color.RGB;
2234
+ break;
2235
+ case "hsl":
2236
+ modelValue.value = color.HSL;
2237
+ break;
2238
+ case "cmyk":
2239
+ modelValue.value = color.CMYK;
2240
+ break;
2241
+ case "lab":
2242
+ modelValue.value = color.CIELab;
2243
+ break;
2244
+ default: modelValue.value = color.HEX;
2245
+ }
2246
+ }
2247
+ });
2248
+ function useColorDraggable(targetElement, containerElement, axis = "both", initialPosition = {
2249
+ x: 0,
2250
+ y: 0
2251
+ }, disabled2) {
2252
+ const position = ref(initialPosition);
2253
+ ref();
2254
+ useElementBounding(targetElement);
2255
+ useElementBounding(containerElement);
2256
+ return { position };
2257
+ }
2258
+ function normalizeHue(hue, dir = "left") {
2259
+ if (dir === "right") return hue * 100 / 360;
2260
+ return hue / 100 * 360;
2261
+ }
2262
+ function normalizeBrightness(brightness) {
2263
+ return 100 - brightness;
2264
+ }
2265
+ const selectorRef = ref(null);
2266
+ const selectorThumbRef = ref(null);
2267
+ const trackRef = ref(null);
2268
+ const trackThumbRef = ref(null);
2269
+ const disabled = computed(() => props.disabled);
2270
+ const { position: selectorThumbPosition } = useColorDraggable(selectorThumbRef, selectorRef, "both", {
2271
+ x: pickedColor.value.s,
2272
+ y: normalizeBrightness(pickedColor.value.v)
2273
+ });
2274
+ const { position: trackThumbPosition } = useColorDraggable(trackThumbRef, trackRef, "y", {
2275
+ x: 0,
2276
+ y: normalizeHue(pickedColor.value.h, "right")
2277
+ });
2278
+ const { pause: pauseWatchColor, resume: resumeWatchColor } = watchPausable(pickedColor, (hsb) => {
2279
+ selectorThumbPosition.value = {
2280
+ x: hsb.s,
2281
+ y: normalizeBrightness(hsb.v)
2282
+ };
2283
+ trackThumbPosition.value = {
2284
+ x: 0,
2285
+ y: normalizeHue(hsb.h, "right")
2286
+ };
2287
+ });
2288
+ watchThrottled([selectorThumbPosition, trackThumbPosition], () => {
2289
+ pauseWatchColor();
2290
+ pickedColor.value = {
2291
+ h: normalizeHue(trackThumbPosition.value.y),
2292
+ s: selectorThumbPosition.value.x,
2293
+ v: normalizeBrightness(selectorThumbPosition.value.y)
2294
+ };
2295
+ nextTick(resumeWatchColor);
2296
+ }, { throttle: () => props.throttle });
2297
+ const trackThumbColor = computed(() => new Zt(HSVtoHSL({
2298
+ h: normalizeHue(trackThumbPosition.value.y),
2299
+ s: 100,
2300
+ v: 100
2301
+ })).HEX);
2302
+ const selectorStyle = computed(() => ({ backgroundColor: trackThumbColor.value }));
2303
+ const selectorThumbStyle = computed(() => ({
2304
+ backgroundColor: new Zt(modelValue.value || props.defaultValue).HEX,
2305
+ left: `${selectorThumbPosition.value.x}%`,
2306
+ top: `${selectorThumbPosition.value.y}%`
2307
+ }));
2308
+ const trackThumbStyle = computed(() => ({
2309
+ backgroundColor: trackThumbColor.value,
2310
+ top: `${trackThumbPosition.value.y}%`
2311
+ }));
2312
+ return (_ctx, _push, _parent, _attrs) => {
2313
+ _push(ssrRenderComponent(unref(Primitive), mergeProps({
2314
+ as: unref(props).as,
2315
+ "data-slot": "root",
2316
+ class: ui.value.root({ class: [unref(props).ui?.root, unref(props).class] }),
2317
+ "data-disabled": disabled.value ? true : void 0
2318
+ }, _attrs), {
2319
+ default: withCtx((_, _push, _parent, _scopeId) => {
2320
+ if (_push) _push(`<div data-slot="picker" class="${ssrRenderClass(ui.value.picker({ class: unref(props).ui?.picker }))}" data-v-33dd0d17${_scopeId}><div data-slot="selector" class="${ssrRenderClass(ui.value.selector({ class: unref(props).ui?.selector }))}" style="${ssrRenderStyle(selectorStyle.value)}" data-v-33dd0d17${_scopeId}><div data-slot="selectorBackground" class="${ssrRenderClass(ui.value.selectorBackground({ class: unref(props).ui?.selectorBackground }))}" data-color-picker-background data-v-33dd0d17${_scopeId}><div data-slot="selectorThumb" class="${ssrRenderClass(ui.value.selectorThumb({ class: unref(props).ui?.selectorThumb }))}" style="${ssrRenderStyle(selectorThumbStyle.value)}"${ssrRenderAttr("data-disabled", disabled.value ? true : void 0)} data-v-33dd0d17${_scopeId}></div></div></div><div data-slot="track" class="${ssrRenderClass(ui.value.track({ class: unref(props).ui?.track }))}" data-color-picker-track data-v-33dd0d17${_scopeId}><div data-slot="trackThumb" class="${ssrRenderClass(ui.value.trackThumb({ class: unref(props).ui?.trackThumb }))}" style="${ssrRenderStyle(trackThumbStyle.value)}"${ssrRenderAttr("data-disabled", disabled.value ? true : void 0)} data-v-33dd0d17${_scopeId}></div></div></div>`);
2321
+ else return [createVNode("div", {
2322
+ "data-slot": "picker",
2323
+ class: ui.value.picker({ class: unref(props).ui?.picker })
2324
+ }, [createVNode("div", {
2325
+ ref_key: "selectorRef",
2326
+ ref: selectorRef,
2327
+ "data-slot": "selector",
2328
+ class: ui.value.selector({ class: unref(props).ui?.selector }),
2329
+ style: selectorStyle.value
2330
+ }, [createVNode("div", {
2331
+ "data-slot": "selectorBackground",
2332
+ class: ui.value.selectorBackground({ class: unref(props).ui?.selectorBackground }),
2333
+ "data-color-picker-background": ""
2334
+ }, [createVNode("div", {
2335
+ ref_key: "selectorThumbRef",
2336
+ ref: selectorThumbRef,
2337
+ "data-slot": "selectorThumb",
2338
+ class: ui.value.selectorThumb({ class: unref(props).ui?.selectorThumb }),
2339
+ style: selectorThumbStyle.value,
2340
+ "data-disabled": disabled.value ? true : void 0
2341
+ }, null, 14, ["data-disabled"])], 2)], 6), createVNode("div", {
2342
+ ref_key: "trackRef",
2343
+ ref: trackRef,
2344
+ "data-slot": "track",
2345
+ class: ui.value.track({ class: unref(props).ui?.track }),
2346
+ "data-color-picker-track": ""
2347
+ }, [createVNode("div", {
2348
+ ref_key: "trackThumbRef",
2349
+ ref: trackThumbRef,
2350
+ "data-slot": "trackThumb",
2351
+ class: ui.value.trackThumb({ class: unref(props).ui?.trackThumb }),
2352
+ style: trackThumbStyle.value,
2353
+ "data-disabled": disabled.value ? true : void 0
2354
+ }, null, 14, ["data-disabled"])], 2)], 2)];
2355
+ }),
2356
+ _: 1
2357
+ }, _parent));
2358
+ };
2359
+ }
2360
+ };
2361
+ var _sfc_setup$1 = _sfc_main.setup;
2362
+ _sfc_main.setup = (props, ctx) => {
2363
+ const ssrContext = useSSRContext();
2364
+ (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("../node_modules/.pnpm/@nuxt+ui@4.10.0_e299f0a9b209424c2a6c150f5a1a8167/node_modules/@nuxt/ui/dist/runtime/components/ColorPicker.vue");
2365
+ return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
2366
+ };
2367
+ var ColorPicker_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main, [["__scopeId", "data-v-33dd0d17"]]);
2368
+ //#endregion
2369
+ //#region node_modules/.pnpm/nuxt@4.5.2_@babel+plugin-syntax-jsx@7.29.7_@babel+core@7.29.7__@babel+plugin-syntax-typ_e8b326918adce583caf1abc0a3047151/node_modules/nuxt/dist/app/composables/url.js
2370
+ /** @since 3.5.0 */
2371
+ function useRequestURL(opts) {
2372
+ return getRequestURL(useRequestEvent(), opts);
2373
+ }
2374
+ //#endregion
2375
+ //#region app/pages/services.vue?vue&type=script&setup=true&lang.ts
2376
+ var services_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
2377
+ __name: "services",
2378
+ __ssrInlineRender: true,
2379
+ async setup(__props) {
2380
+ let __temp, __restore;
2381
+ useSeoMeta$1({ title: "地图服务管理" });
2382
+ const workspace = useFileWorkspace();
2383
+ const toast = useToast();
2384
+ const requestUrl = useRequestURL();
2385
+ const baseMap = ref("tianditu");
2386
+ const { data: service, refresh } = ([__temp, __restore] = withAsyncContext(() => useFetch("/api/map-service/status", "$q9uYHAZagQ")), __temp = await __temp, __restore(), __temp);
2387
+ const taskFilename = ref();
2388
+ const color = ref(service.value?.color || "#2980b9");
2389
+ const opacity = ref(service.value?.opacity ?? 88);
2390
+ const importing = ref(false);
2391
+ const saving = ref(false);
2392
+ const previewRevision = ref(Date.now());
2393
+ const sidebarView = ref("settings");
2394
+ const sidebarItems = [{
2395
+ label: "参数设置",
2396
+ value: "settings",
2397
+ icon: "i-lucide-sliders-horizontal"
2398
+ }, {
2399
+ label: "服务信息",
2400
+ value: "info",
2401
+ icon: "i-lucide-radio-tower"
2402
+ }];
2403
+ function syncTaskFilename() {
2404
+ const configured = service.value?.file?.filename;
2405
+ taskFilename.value = configured && workspace.files.value.some((file) => file.filename === configured && file.summary?.state === "completed") ? configured : void 0;
2406
+ }
2407
+ const wmsUrl = computed(() => `${requestUrl.origin}/services/wms?SERVICE=WMS&REQUEST=GetCapabilities`);
2408
+ const wmtsUrl = computed(() => `${requestUrl.origin}/services/wmts?SERVICE=WMTS&REQUEST=GetCapabilities`);
2409
+ const previewUrl = computed(() => `/services/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=uomtiles&STYLE=default&TILEMATRIXSET=WebMercatorQuad&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=image/png`);
2410
+ async function openFile(file) {
2411
+ if (!/\.(uomtiles|mbtiles|pmtiles)$/i.test(file.name)) {
2412
+ toast.add({
2413
+ title: "不支持的地图文件",
2414
+ description: "请选择 .uomtiles、.mbtiles 或 .pmtiles。",
2415
+ color: "error"
2416
+ });
2417
+ return;
2418
+ }
2419
+ importing.value = true;
2420
+ try {
2421
+ await $fetch$1("/api/map-service/file", {
2422
+ method: "POST",
2423
+ headers: {
2424
+ "x-map-service-filename": encodeURIComponent(file.name),
2425
+ "content-type": "application/octet-stream"
2426
+ },
2427
+ body: file
2428
+ });
2429
+ await refresh();
2430
+ taskFilename.value = void 0;
2431
+ previewRevision.value = Date.now();
2432
+ } catch (cause) {
2433
+ toast.add({
2434
+ title: "无法打开地图文件",
2435
+ description: cause?.data?.message || cause?.message,
2436
+ color: "error"
2437
+ });
2438
+ } finally {
2439
+ importing.value = false;
2440
+ }
2441
+ }
2442
+ async function configure(enabled) {
2443
+ if (enabled && !service.value?.file) return;
2444
+ saving.value = true;
2445
+ try {
2446
+ const wasEnabled = service.value?.enabled;
2447
+ await $fetch$1("/api/map-service/config", {
2448
+ method: "POST",
2449
+ body: {
2450
+ enabled,
2451
+ color: color.value,
2452
+ opacity: opacity.value
2453
+ }
2454
+ });
2455
+ await refresh();
2456
+ previewRevision.value = Date.now();
2457
+ toast.add({
2458
+ title: enabled ? wasEnabled ? "地图服务设置已应用" : "地图服务已启用" : "地图服务已停用",
2459
+ color: enabled ? "success" : "neutral",
2460
+ icon: enabled ? "i-lucide-radio-tower" : "i-lucide-circle-stop"
2461
+ });
2462
+ } catch (cause) {
2463
+ toast.add({
2464
+ title: "地图服务配置失败",
2465
+ description: cause?.data?.message || cause?.message,
2466
+ color: "error"
2467
+ });
2468
+ } finally {
2469
+ saving.value = false;
2470
+ }
2471
+ }
2472
+ async function selectTaskFile() {
2473
+ if (!taskFilename.value) return;
2474
+ importing.value = true;
2475
+ try {
2476
+ await $fetch$1("/api/map-service/source", {
2477
+ method: "POST",
2478
+ body: { filename: taskFilename.value }
2479
+ });
2480
+ await refresh();
2481
+ syncTaskFilename();
2482
+ previewRevision.value = Date.now();
2483
+ toast.add({
2484
+ title: "服务文件已替换",
2485
+ color: "success",
2486
+ icon: "i-lucide-file-check-2"
2487
+ });
2488
+ } catch (cause) {
2489
+ toast.add({
2490
+ title: "无法选择服务文件",
2491
+ description: cause?.data?.statusMessage || cause?.message,
2492
+ color: "error"
2493
+ });
2494
+ } finally {
2495
+ importing.value = false;
2496
+ }
2497
+ }
2498
+ async function copy(value, name) {
2499
+ await (void 0).clipboard.writeText(value);
2500
+ toast.add({
2501
+ title: `${name} 地址已复制`,
2502
+ color: "success",
2503
+ icon: "i-lucide-copy-check"
2504
+ });
2505
+ }
2506
+ return (_ctx, _push, _parent, _attrs) => {
2507
+ const _component_UDashboardPanel = _sfc_main$3;
2508
+ const _component_UDashboardNavbar = _sfc_main$2$1;
2509
+ const _component_MapBaseLayerTabs = MapBaseLayerTabs_default;
2510
+ const _component_UButton = _sfc_main$2;
2511
+ const _component_UScrollArea = _sfc_main$1;
2512
+ const _component_FileDropZone = FileDropZone_default;
2513
+ const _component_CompletedTaskSelect = CompletedTaskSelect_default;
2514
+ const _component_UColorPicker = ColorPicker_default;
2515
+ const _component_UFormField = _sfc_main$4;
2516
+ const _component_UInput = _sfc_main$5;
2517
+ const _component_USlider = _sfc_main$6;
2518
+ const _component_UAlert = _sfc_main$7;
2519
+ const _component_UTooltip = _sfc_main$8;
2520
+ const _component_OnlineMap = OnlineMap_default;
2521
+ const _component_UEmpty = _sfc_main$9;
2522
+ _push(ssrRenderComponent(_component_UDashboardPanel, mergeProps({
2523
+ id: "map-services",
2524
+ class: "min-w-0",
2525
+ ui: { body: "gap-0 overflow-hidden p-0 sm:gap-0 sm:p-0" }
2526
+ }, _attrs), {
2527
+ header: withCtx((_, _push, _parent, _scopeId) => {
2528
+ if (_push) _push(ssrRenderComponent(_component_UDashboardNavbar, { title: "地图服务管理" }, {
2529
+ right: withCtx((_, _push, _parent, _scopeId) => {
2530
+ if (_push) {
2531
+ _push(ssrRenderComponent(_component_MapBaseLayerTabs, {
2532
+ modelValue: unref(baseMap),
2533
+ "onUpdate:modelValue": ($event) => isRef(baseMap) ? baseMap.value = $event : null
2534
+ }, null, _parent, _scopeId));
2535
+ _push(ssrRenderComponent(_component_UButton, {
2536
+ icon: unref(service)?.enabled ? "i-lucide-circle-stop" : "i-lucide-radio-tower",
2537
+ label: unref(service)?.enabled ? "停用服务" : "启用服务",
2538
+ color: unref(service)?.enabled ? "error" : "primary",
2539
+ variant: unref(service)?.enabled ? "soft" : "solid",
2540
+ disabled: !unref(service)?.enabled && !unref(service)?.file,
2541
+ loading: unref(saving),
2542
+ onClick: ($event) => configure(!unref(service)?.enabled)
2543
+ }, null, _parent, _scopeId));
2544
+ } else return [createVNode(_component_MapBaseLayerTabs, {
2545
+ modelValue: unref(baseMap),
2546
+ "onUpdate:modelValue": ($event) => isRef(baseMap) ? baseMap.value = $event : null
2547
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]), createVNode(_component_UButton, {
2548
+ icon: unref(service)?.enabled ? "i-lucide-circle-stop" : "i-lucide-radio-tower",
2549
+ label: unref(service)?.enabled ? "停用服务" : "启用服务",
2550
+ color: unref(service)?.enabled ? "error" : "primary",
2551
+ variant: unref(service)?.enabled ? "soft" : "solid",
2552
+ disabled: !unref(service)?.enabled && !unref(service)?.file,
2553
+ loading: unref(saving),
2554
+ onClick: ($event) => configure(!unref(service)?.enabled)
2555
+ }, null, 8, [
2556
+ "icon",
2557
+ "label",
2558
+ "color",
2559
+ "variant",
2560
+ "disabled",
2561
+ "loading",
2562
+ "onClick"
2563
+ ])];
2564
+ }),
2565
+ _: 1
2566
+ }, _parent, _scopeId));
2567
+ else return [createVNode(_component_UDashboardNavbar, { title: "地图服务管理" }, {
2568
+ right: withCtx(() => [createVNode(_component_MapBaseLayerTabs, {
2569
+ modelValue: unref(baseMap),
2570
+ "onUpdate:modelValue": ($event) => isRef(baseMap) ? baseMap.value = $event : null
2571
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]), createVNode(_component_UButton, {
2572
+ icon: unref(service)?.enabled ? "i-lucide-circle-stop" : "i-lucide-radio-tower",
2573
+ label: unref(service)?.enabled ? "停用服务" : "启用服务",
2574
+ color: unref(service)?.enabled ? "error" : "primary",
2575
+ variant: unref(service)?.enabled ? "soft" : "solid",
2576
+ disabled: !unref(service)?.enabled && !unref(service)?.file,
2577
+ loading: unref(saving),
2578
+ onClick: ($event) => configure(!unref(service)?.enabled)
2579
+ }, null, 8, [
2580
+ "icon",
2581
+ "label",
2582
+ "color",
2583
+ "variant",
2584
+ "disabled",
2585
+ "loading",
2586
+ "onClick"
2587
+ ])]),
2588
+ _: 1
2589
+ })];
2590
+ }),
2591
+ body: withCtx((_, _push, _parent, _scopeId) => {
2592
+ if (_push) {
2593
+ _push(`<div class="grid min-h-0 flex-1 xl:grid-cols-[23rem_minmax(0,1fr)]"${_scopeId}><aside class="flex min-h-0 flex-col border-r border-default"${_scopeId}><div class="border-b border-default px-5 py-3"${_scopeId}>`);
2594
+ _push(ssrRenderComponent(_component_MapBaseLayerTabs, {
2595
+ modelValue: unref(sidebarView),
2596
+ "onUpdate:modelValue": ($event) => isRef(sidebarView) ? sidebarView.value = $event : null,
2597
+ items: sidebarItems
2598
+ }, null, _parent, _scopeId));
2599
+ _push(`</div>`);
2600
+ _push(ssrRenderComponent(_component_UScrollArea, { class: "min-h-0 flex-1" }, {
2601
+ default: withCtx((_, _push, _parent, _scopeId) => {
2602
+ if (_push) {
2603
+ if (unref(sidebarView) === "settings") {
2604
+ _push(`<div class="space-y-7 p-5"${_scopeId}><section${_scopeId}><h2 class="text-sm font-semibold text-highlighted"${_scopeId}>服务文件</h2>`);
2605
+ _push(ssrRenderComponent(_component_FileDropZone, {
2606
+ class: "mt-3",
2607
+ accept: ".uomtiles,.mbtiles,.pmtiles",
2608
+ title: "上传并替换服务文件",
2609
+ "file-name": unref(service)?.file ? unref(workspace).displayWorkspaceName(unref(service).file.filename) : void 0,
2610
+ pending: unref(importing),
2611
+ onSelect: openFile
2612
+ }, null, _parent, _scopeId));
2613
+ _push(ssrRenderComponent(_component_CompletedTaskSelect, {
2614
+ modelValue: unref(taskFilename),
2615
+ "onUpdate:modelValue": ($event) => isRef(taskFilename) ? taskFilename.value = $event : null,
2616
+ class: "mt-3 w-full"
2617
+ }, null, _parent, _scopeId));
2618
+ _push(ssrRenderComponent(_component_UButton, {
2619
+ class: "mt-2",
2620
+ icon: "i-lucide-copy",
2621
+ label: "使用此任务文件",
2622
+ color: "neutral",
2623
+ variant: "outline",
2624
+ block: "",
2625
+ disabled: !unref(taskFilename) || unref(importing),
2626
+ loading: unref(importing),
2627
+ onClick: selectTaskFile
2628
+ }, null, _parent, _scopeId));
2629
+ _push(`</section><section${_scopeId}><h2 class="text-sm font-semibold text-highlighted"${_scopeId}>输出样式</h2><div class="mt-4 grid grid-cols-[7rem_minmax(0,1fr)] items-start gap-4"${_scopeId}>`);
2630
+ _push(ssrRenderComponent(_component_UColorPicker, {
2631
+ modelValue: unref(color),
2632
+ "onUpdate:modelValue": ($event) => isRef(color) ? color.value = $event : null,
2633
+ size: "sm"
2634
+ }, null, _parent, _scopeId));
2635
+ _push(ssrRenderComponent(_component_UFormField, { label: "区域颜色" }, {
2636
+ default: withCtx((_, _push, _parent, _scopeId) => {
2637
+ if (_push) _push(ssrRenderComponent(_component_UInput, {
2638
+ modelValue: unref(color),
2639
+ "onUpdate:modelValue": ($event) => isRef(color) ? color.value = $event : null,
2640
+ class: "w-full"
2641
+ }, null, _parent, _scopeId));
2642
+ else return [createVNode(_component_UInput, {
2643
+ modelValue: unref(color),
2644
+ "onUpdate:modelValue": ($event) => isRef(color) ? color.value = $event : null,
2645
+ class: "w-full"
2646
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])];
2647
+ }),
2648
+ _: 1
2649
+ }, _parent, _scopeId));
2650
+ _push(`</div>`);
2651
+ _push(ssrRenderComponent(_component_UFormField, {
2652
+ class: "mt-5",
2653
+ label: `透明度 ${unref(opacity)}%`
2654
+ }, {
2655
+ default: withCtx((_, _push, _parent, _scopeId) => {
2656
+ if (_push) _push(ssrRenderComponent(_component_USlider, {
2657
+ modelValue: unref(opacity),
2658
+ "onUpdate:modelValue": ($event) => isRef(opacity) ? opacity.value = $event : null,
2659
+ min: 0,
2660
+ max: 100,
2661
+ step: 1
2662
+ }, null, _parent, _scopeId));
2663
+ else return [createVNode(_component_USlider, {
2664
+ modelValue: unref(opacity),
2665
+ "onUpdate:modelValue": ($event) => isRef(opacity) ? opacity.value = $event : null,
2666
+ min: 0,
2667
+ max: 100,
2668
+ step: 1
2669
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])];
2670
+ }),
2671
+ _: 1
2672
+ }, _parent, _scopeId));
2673
+ if (unref(service)?.enabled) _push(ssrRenderComponent(_component_UButton, {
2674
+ class: "mt-5",
2675
+ icon: "i-lucide-check",
2676
+ label: "应用设置",
2677
+ block: "",
2678
+ loading: unref(saving),
2679
+ onClick: ($event) => configure(true)
2680
+ }, null, _parent, _scopeId));
2681
+ else _push(`<!---->`);
2682
+ _push(`</section></div>`);
2683
+ } else {
2684
+ _push(`<div class="space-y-5 p-5"${_scopeId}>`);
2685
+ if (!unref(service)?.enabled) _push(ssrRenderComponent(_component_UAlert, {
2686
+ color: "neutral",
2687
+ icon: "i-lucide-info",
2688
+ title: "服务尚未启用"
2689
+ }, null, _parent, _scopeId));
2690
+ else _push(`<!---->`);
2691
+ _push(`<section${_scopeId}><h2 class="text-sm font-semibold text-highlighted"${_scopeId}>WMS 1.3.0</h2><div class="mt-2 flex items-start gap-2"${_scopeId}><code class="min-w-0 flex-1 break-all bg-elevated px-3 py-2 text-[11px] text-muted"${_scopeId}>${ssrInterpolate(unref(wmsUrl))}</code>`);
2692
+ _push(ssrRenderComponent(_component_UTooltip, { text: "复制 WMS 地址" }, {
2693
+ default: withCtx((_, _push, _parent, _scopeId) => {
2694
+ if (_push) _push(ssrRenderComponent(_component_UButton, {
2695
+ icon: "i-lucide-copy",
2696
+ color: "neutral",
2697
+ variant: "ghost",
2698
+ size: "sm",
2699
+ "aria-label": "复制 WMS 地址",
2700
+ onClick: ($event) => copy(unref(wmsUrl), "WMS")
2701
+ }, null, _parent, _scopeId));
2702
+ else return [createVNode(_component_UButton, {
2703
+ icon: "i-lucide-copy",
2704
+ color: "neutral",
2705
+ variant: "ghost",
2706
+ size: "sm",
2707
+ "aria-label": "复制 WMS 地址",
2708
+ onClick: ($event) => copy(unref(wmsUrl), "WMS")
2709
+ }, null, 8, ["onClick"])];
2710
+ }),
2711
+ _: 1
2712
+ }, _parent, _scopeId));
2713
+ _push(`</div></section><section${_scopeId}><h2 class="text-sm font-semibold text-highlighted"${_scopeId}>WMTS 1.0.0</h2><div class="mt-2 flex items-start gap-2"${_scopeId}><code class="min-w-0 flex-1 break-all bg-elevated px-3 py-2 text-[11px] text-muted"${_scopeId}>${ssrInterpolate(unref(wmtsUrl))}</code>`);
2714
+ _push(ssrRenderComponent(_component_UTooltip, { text: "复制 WMTS 地址" }, {
2715
+ default: withCtx((_, _push, _parent, _scopeId) => {
2716
+ if (_push) _push(ssrRenderComponent(_component_UButton, {
2717
+ icon: "i-lucide-copy",
2718
+ color: "neutral",
2719
+ variant: "ghost",
2720
+ size: "sm",
2721
+ "aria-label": "复制 WMTS 地址",
2722
+ onClick: ($event) => copy(unref(wmtsUrl), "WMTS")
2723
+ }, null, _parent, _scopeId));
2724
+ else return [createVNode(_component_UButton, {
2725
+ icon: "i-lucide-copy",
2726
+ color: "neutral",
2727
+ variant: "ghost",
2728
+ size: "sm",
2729
+ "aria-label": "复制 WMTS 地址",
2730
+ onClick: ($event) => copy(unref(wmtsUrl), "WMTS")
2731
+ }, null, 8, ["onClick"])];
2732
+ }),
2733
+ _: 1
2734
+ }, _parent, _scopeId));
2735
+ _push(`</div></section></div>`);
2736
+ }
2737
+ } else return [unref(sidebarView) === "settings" ? (openBlock(), createBlock("div", {
2738
+ key: 0,
2739
+ class: "space-y-7 p-5"
2740
+ }, [createVNode("section", null, [
2741
+ createVNode("h2", { class: "text-sm font-semibold text-highlighted" }, "服务文件"),
2742
+ createVNode(_component_FileDropZone, {
2743
+ class: "mt-3",
2744
+ accept: ".uomtiles,.mbtiles,.pmtiles",
2745
+ title: "上传并替换服务文件",
2746
+ "file-name": unref(service)?.file ? unref(workspace).displayWorkspaceName(unref(service).file.filename) : void 0,
2747
+ pending: unref(importing),
2748
+ onSelect: openFile
2749
+ }, null, 8, ["file-name", "pending"]),
2750
+ createVNode(_component_CompletedTaskSelect, {
2751
+ modelValue: unref(taskFilename),
2752
+ "onUpdate:modelValue": ($event) => isRef(taskFilename) ? taskFilename.value = $event : null,
2753
+ class: "mt-3 w-full"
2754
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]),
2755
+ createVNode(_component_UButton, {
2756
+ class: "mt-2",
2757
+ icon: "i-lucide-copy",
2758
+ label: "使用此任务文件",
2759
+ color: "neutral",
2760
+ variant: "outline",
2761
+ block: "",
2762
+ disabled: !unref(taskFilename) || unref(importing),
2763
+ loading: unref(importing),
2764
+ onClick: selectTaskFile
2765
+ }, null, 8, ["disabled", "loading"])
2766
+ ]), createVNode("section", null, [
2767
+ createVNode("h2", { class: "text-sm font-semibold text-highlighted" }, "输出样式"),
2768
+ createVNode("div", { class: "mt-4 grid grid-cols-[7rem_minmax(0,1fr)] items-start gap-4" }, [createVNode(_component_UColorPicker, {
2769
+ modelValue: unref(color),
2770
+ "onUpdate:modelValue": ($event) => isRef(color) ? color.value = $event : null,
2771
+ size: "sm"
2772
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]), createVNode(_component_UFormField, { label: "区域颜色" }, {
2773
+ default: withCtx(() => [createVNode(_component_UInput, {
2774
+ modelValue: unref(color),
2775
+ "onUpdate:modelValue": ($event) => isRef(color) ? color.value = $event : null,
2776
+ class: "w-full"
2777
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])]),
2778
+ _: 1
2779
+ })]),
2780
+ createVNode(_component_UFormField, {
2781
+ class: "mt-5",
2782
+ label: `透明度 ${unref(opacity)}%`
2783
+ }, {
2784
+ default: withCtx(() => [createVNode(_component_USlider, {
2785
+ modelValue: unref(opacity),
2786
+ "onUpdate:modelValue": ($event) => isRef(opacity) ? opacity.value = $event : null,
2787
+ min: 0,
2788
+ max: 100,
2789
+ step: 1
2790
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])]),
2791
+ _: 1
2792
+ }, 8, ["label"]),
2793
+ unref(service)?.enabled ? (openBlock(), createBlock(_component_UButton, {
2794
+ key: 0,
2795
+ class: "mt-5",
2796
+ icon: "i-lucide-check",
2797
+ label: "应用设置",
2798
+ block: "",
2799
+ loading: unref(saving),
2800
+ onClick: ($event) => configure(true)
2801
+ }, null, 8, ["loading", "onClick"])) : createCommentVNode("", true)
2802
+ ])])) : (openBlock(), createBlock("div", {
2803
+ key: 1,
2804
+ class: "space-y-5 p-5"
2805
+ }, [
2806
+ !unref(service)?.enabled ? (openBlock(), createBlock(_component_UAlert, {
2807
+ key: 0,
2808
+ color: "neutral",
2809
+ icon: "i-lucide-info",
2810
+ title: "服务尚未启用"
2811
+ })) : createCommentVNode("", true),
2812
+ createVNode("section", null, [createVNode("h2", { class: "text-sm font-semibold text-highlighted" }, "WMS 1.3.0"), createVNode("div", { class: "mt-2 flex items-start gap-2" }, [createVNode("code", { class: "min-w-0 flex-1 break-all bg-elevated px-3 py-2 text-[11px] text-muted" }, toDisplayString(unref(wmsUrl)), 1), createVNode(_component_UTooltip, { text: "复制 WMS 地址" }, {
2813
+ default: withCtx(() => [createVNode(_component_UButton, {
2814
+ icon: "i-lucide-copy",
2815
+ color: "neutral",
2816
+ variant: "ghost",
2817
+ size: "sm",
2818
+ "aria-label": "复制 WMS 地址",
2819
+ onClick: ($event) => copy(unref(wmsUrl), "WMS")
2820
+ }, null, 8, ["onClick"])]),
2821
+ _: 1
2822
+ })])]),
2823
+ createVNode("section", null, [createVNode("h2", { class: "text-sm font-semibold text-highlighted" }, "WMTS 1.0.0"), createVNode("div", { class: "mt-2 flex items-start gap-2" }, [createVNode("code", { class: "min-w-0 flex-1 break-all bg-elevated px-3 py-2 text-[11px] text-muted" }, toDisplayString(unref(wmtsUrl)), 1), createVNode(_component_UTooltip, { text: "复制 WMTS 地址" }, {
2824
+ default: withCtx(() => [createVNode(_component_UButton, {
2825
+ icon: "i-lucide-copy",
2826
+ color: "neutral",
2827
+ variant: "ghost",
2828
+ size: "sm",
2829
+ "aria-label": "复制 WMTS 地址",
2830
+ onClick: ($event) => copy(unref(wmtsUrl), "WMTS")
2831
+ }, null, 8, ["onClick"])]),
2832
+ _: 1
2833
+ })])])
2834
+ ]))];
2835
+ }),
2836
+ _: 1
2837
+ }, _parent, _scopeId));
2838
+ _push(`</aside><div class="relative min-h-[560px]"${_scopeId}>`);
2839
+ if (unref(service)?.enabled) _push(ssrRenderComponent(_component_OnlineMap, {
2840
+ key: unref(previewRevision),
2841
+ "tile-url": unref(previewUrl),
2842
+ "base-map": unref(baseMap),
2843
+ "min-zoom": 0,
2844
+ "max-zoom": 18,
2845
+ "map-min-zoom": 3,
2846
+ "map-max-zoom": 18,
2847
+ "initial-zoom": 9,
2848
+ center: [116.4, 39.9],
2849
+ "raster-opacity": 1,
2850
+ "refresh-version": unref(previewRevision)
2851
+ }, null, _parent, _scopeId));
2852
+ else {
2853
+ _push(`<div class="grid h-full min-h-[560px] place-items-center px-6 text-center"${_scopeId}>`);
2854
+ _push(ssrRenderComponent(_component_UEmpty, {
2855
+ icon: "i-lucide-radio-tower",
2856
+ title: "地图服务尚未启用"
2857
+ }, null, _parent, _scopeId));
2858
+ _push(`</div>`);
2859
+ }
2860
+ _push(`</div></div>`);
2861
+ } else return [createVNode("div", { class: "grid min-h-0 flex-1 xl:grid-cols-[23rem_minmax(0,1fr)]" }, [createVNode("aside", { class: "flex min-h-0 flex-col border-r border-default" }, [createVNode("div", { class: "border-b border-default px-5 py-3" }, [createVNode(_component_MapBaseLayerTabs, {
2862
+ modelValue: unref(sidebarView),
2863
+ "onUpdate:modelValue": ($event) => isRef(sidebarView) ? sidebarView.value = $event : null,
2864
+ items: sidebarItems
2865
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])]), createVNode(_component_UScrollArea, { class: "min-h-0 flex-1" }, {
2866
+ default: withCtx(() => [unref(sidebarView) === "settings" ? (openBlock(), createBlock("div", {
2867
+ key: 0,
2868
+ class: "space-y-7 p-5"
2869
+ }, [createVNode("section", null, [
2870
+ createVNode("h2", { class: "text-sm font-semibold text-highlighted" }, "服务文件"),
2871
+ createVNode(_component_FileDropZone, {
2872
+ class: "mt-3",
2873
+ accept: ".uomtiles,.mbtiles,.pmtiles",
2874
+ title: "上传并替换服务文件",
2875
+ "file-name": unref(service)?.file ? unref(workspace).displayWorkspaceName(unref(service).file.filename) : void 0,
2876
+ pending: unref(importing),
2877
+ onSelect: openFile
2878
+ }, null, 8, ["file-name", "pending"]),
2879
+ createVNode(_component_CompletedTaskSelect, {
2880
+ modelValue: unref(taskFilename),
2881
+ "onUpdate:modelValue": ($event) => isRef(taskFilename) ? taskFilename.value = $event : null,
2882
+ class: "mt-3 w-full"
2883
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]),
2884
+ createVNode(_component_UButton, {
2885
+ class: "mt-2",
2886
+ icon: "i-lucide-copy",
2887
+ label: "使用此任务文件",
2888
+ color: "neutral",
2889
+ variant: "outline",
2890
+ block: "",
2891
+ disabled: !unref(taskFilename) || unref(importing),
2892
+ loading: unref(importing),
2893
+ onClick: selectTaskFile
2894
+ }, null, 8, ["disabled", "loading"])
2895
+ ]), createVNode("section", null, [
2896
+ createVNode("h2", { class: "text-sm font-semibold text-highlighted" }, "输出样式"),
2897
+ createVNode("div", { class: "mt-4 grid grid-cols-[7rem_minmax(0,1fr)] items-start gap-4" }, [createVNode(_component_UColorPicker, {
2898
+ modelValue: unref(color),
2899
+ "onUpdate:modelValue": ($event) => isRef(color) ? color.value = $event : null,
2900
+ size: "sm"
2901
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]), createVNode(_component_UFormField, { label: "区域颜色" }, {
2902
+ default: withCtx(() => [createVNode(_component_UInput, {
2903
+ modelValue: unref(color),
2904
+ "onUpdate:modelValue": ($event) => isRef(color) ? color.value = $event : null,
2905
+ class: "w-full"
2906
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])]),
2907
+ _: 1
2908
+ })]),
2909
+ createVNode(_component_UFormField, {
2910
+ class: "mt-5",
2911
+ label: `透明度 ${unref(opacity)}%`
2912
+ }, {
2913
+ default: withCtx(() => [createVNode(_component_USlider, {
2914
+ modelValue: unref(opacity),
2915
+ "onUpdate:modelValue": ($event) => isRef(opacity) ? opacity.value = $event : null,
2916
+ min: 0,
2917
+ max: 100,
2918
+ step: 1
2919
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])]),
2920
+ _: 1
2921
+ }, 8, ["label"]),
2922
+ unref(service)?.enabled ? (openBlock(), createBlock(_component_UButton, {
2923
+ key: 0,
2924
+ class: "mt-5",
2925
+ icon: "i-lucide-check",
2926
+ label: "应用设置",
2927
+ block: "",
2928
+ loading: unref(saving),
2929
+ onClick: ($event) => configure(true)
2930
+ }, null, 8, ["loading", "onClick"])) : createCommentVNode("", true)
2931
+ ])])) : (openBlock(), createBlock("div", {
2932
+ key: 1,
2933
+ class: "space-y-5 p-5"
2934
+ }, [
2935
+ !unref(service)?.enabled ? (openBlock(), createBlock(_component_UAlert, {
2936
+ key: 0,
2937
+ color: "neutral",
2938
+ icon: "i-lucide-info",
2939
+ title: "服务尚未启用"
2940
+ })) : createCommentVNode("", true),
2941
+ createVNode("section", null, [createVNode("h2", { class: "text-sm font-semibold text-highlighted" }, "WMS 1.3.0"), createVNode("div", { class: "mt-2 flex items-start gap-2" }, [createVNode("code", { class: "min-w-0 flex-1 break-all bg-elevated px-3 py-2 text-[11px] text-muted" }, toDisplayString(unref(wmsUrl)), 1), createVNode(_component_UTooltip, { text: "复制 WMS 地址" }, {
2942
+ default: withCtx(() => [createVNode(_component_UButton, {
2943
+ icon: "i-lucide-copy",
2944
+ color: "neutral",
2945
+ variant: "ghost",
2946
+ size: "sm",
2947
+ "aria-label": "复制 WMS 地址",
2948
+ onClick: ($event) => copy(unref(wmsUrl), "WMS")
2949
+ }, null, 8, ["onClick"])]),
2950
+ _: 1
2951
+ })])]),
2952
+ createVNode("section", null, [createVNode("h2", { class: "text-sm font-semibold text-highlighted" }, "WMTS 1.0.0"), createVNode("div", { class: "mt-2 flex items-start gap-2" }, [createVNode("code", { class: "min-w-0 flex-1 break-all bg-elevated px-3 py-2 text-[11px] text-muted" }, toDisplayString(unref(wmtsUrl)), 1), createVNode(_component_UTooltip, { text: "复制 WMTS 地址" }, {
2953
+ default: withCtx(() => [createVNode(_component_UButton, {
2954
+ icon: "i-lucide-copy",
2955
+ color: "neutral",
2956
+ variant: "ghost",
2957
+ size: "sm",
2958
+ "aria-label": "复制 WMTS 地址",
2959
+ onClick: ($event) => copy(unref(wmtsUrl), "WMTS")
2960
+ }, null, 8, ["onClick"])]),
2961
+ _: 1
2962
+ })])])
2963
+ ]))]),
2964
+ _: 1
2965
+ })]), createVNode("div", { class: "relative min-h-[560px]" }, [unref(service)?.enabled ? (openBlock(), createBlock(_component_OnlineMap, {
2966
+ key: unref(previewRevision),
2967
+ "tile-url": unref(previewUrl),
2968
+ "base-map": unref(baseMap),
2969
+ "min-zoom": 0,
2970
+ "max-zoom": 18,
2971
+ "map-min-zoom": 3,
2972
+ "map-max-zoom": 18,
2973
+ "initial-zoom": 9,
2974
+ center: [116.4, 39.9],
2975
+ "raster-opacity": 1,
2976
+ "refresh-version": unref(previewRevision)
2977
+ }, null, 8, [
2978
+ "tile-url",
2979
+ "base-map",
2980
+ "refresh-version"
2981
+ ])) : (openBlock(), createBlock("div", {
2982
+ key: 1,
2983
+ class: "grid h-full min-h-[560px] place-items-center px-6 text-center"
2984
+ }, [createVNode(_component_UEmpty, {
2985
+ icon: "i-lucide-radio-tower",
2986
+ title: "地图服务尚未启用"
2987
+ })]))])])];
2988
+ }),
2989
+ _: 1
2990
+ }, _parent));
2991
+ };
2992
+ }
2993
+ });
2994
+ //#endregion
2995
+ //#region app/pages/services.vue
2996
+ var _sfc_setup = services_vue_vue_type_script_setup_true_lang_default.setup;
2997
+ services_vue_vue_type_script_setup_true_lang_default.setup = (props, ctx) => {
2998
+ const ssrContext = useSSRContext();
2999
+ (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/services.vue");
3000
+ return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
3001
+ };
3002
+ var services_default = services_vue_vue_type_script_setup_true_lang_default;
3003
+
3004
+ export { services_default as default };
3005
+ //# sourceMappingURL=services-DuJwjAB8.mjs.map