@sheetxl/sdk 0.8.0-beta.15 → 0.8.0-beta.16

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 (195) hide show
  1. package/LICENSE.md +8 -7
  2. package/browser/esm/4MbBwfmW2hDXk9_w.mjs +165 -0
  3. package/browser/esm/{zjEXdQiQruTkUyf5.mjs → 9YWdxmSjzLN4j_ts.mjs} +22 -22
  4. package/browser/esm/B6BdiHigbUdbZp3J.mjs +686 -0
  5. package/browser/esm/{D8PxKK6OrmancpLT.mjs → BF_QwkZ_hs2rFoTT.mjs} +3 -3
  6. package/browser/esm/{Do8TQqQvnFXRlFu-.mjs → BMo2_9Ul36IwRm3S.mjs} +3 -3
  7. package/browser/esm/{DDQtExVGSoCzAf6-.mjs → BWY1qiidTUBVPJoD.mjs} +506 -502
  8. package/browser/esm/{DA4S5eqog20pG7b2.mjs → Bf80epSsm_RyAOb9.mjs} +29 -29
  9. package/browser/esm/{FHp0QfwZMIfP0Sry.mjs → BfoE6Dn_GQCIkQD3.mjs} +2 -2
  10. package/browser/esm/{D4ZCoKyNCJvDQAkx.mjs → BlMYYQZP-QM-iBHz.mjs} +23 -22
  11. package/browser/esm/{CWyzk_3eDCR9bKq6.mjs → BqT-ASHP0NVSUUnY.mjs} +1528 -1433
  12. package/browser/esm/{DwH4H_p6gTAcpQ17.mjs → BtNuoQIrrHw_jnbJ.mjs} +4 -4
  13. package/browser/esm/BxFzcCYhvo9NXFjC.mjs +527 -0
  14. package/browser/esm/{BsGN0Tk0jVc2n0hy.mjs → BxYuRTSF9ykc-Tpz.mjs} +3 -3
  15. package/browser/esm/{KgTozk3nvOZzEG27.mjs → C2PvZwqK-uvsugVS.mjs} +2 -2
  16. package/browser/esm/C3JOjQwdG9kAig7i.mjs +2017 -0
  17. package/browser/esm/{Blo0Hwg2ojXt99Dl.mjs → C5x0EzqElYGTiTQc.mjs} +2 -2
  18. package/browser/esm/{Bbrhl946_QbCz5WS.mjs → CMChv-fCFh68VQQt.mjs} +588 -587
  19. package/browser/esm/{Cl3jq6y4Idilod82.mjs → CRbQATfI0yZxe1kX.mjs} +3 -3
  20. package/browser/esm/{CxhXbk-5XhaK8UNs.mjs → CUu3zeHqcwMRYiov.mjs} +2 -2
  21. package/browser/esm/{CNM5d4p0Y7In0rTf.mjs → C_jLGkFemj55_BP3.mjs} +3 -3
  22. package/browser/esm/{BGPT-k25jo0UhtT5.mjs → CkZoDPUCK5jMUaeJ.mjs} +26901 -22016
  23. package/browser/esm/{DMbcmIZ-G2fbWn8v.mjs → D-iHJ3q4nwOLcn1D.mjs} +2 -2
  24. package/browser/esm/{KsfZhE6ocmYobGjY.mjs → D807piM0VSokWz-L.mjs} +2 -2
  25. package/browser/esm/{BVsG6Vpvb1ZzpURJ.mjs → DW3oQ39IF0bsc_lm.mjs} +2 -2
  26. package/browser/esm/{BzG0p8RdGDWHttVr.mjs → DcB52JPBPmkc3l1m.mjs} +4 -4
  27. package/browser/esm/{CZ_ZPliIkoh8BViV.mjs → DlVnybrgwZWxWN3_.mjs} +10 -10
  28. package/browser/esm/{CqzKBrmmV-fWRoK7.mjs → DvVhatd0J1ch3OCO.mjs} +22 -22
  29. package/browser/esm/{tm7XJ-Zd_04xWKG6.mjs → Dx9Fya60meMpuHqm.mjs} +2 -2
  30. package/browser/esm/{Blo0jHze0bQxnKh4.mjs → HV0FkJ6k3Ils318J.mjs} +78 -78
  31. package/browser/esm/{DJNLo8Rd_5UQP0U5.mjs → JV9Szh5qTssjxJoE.mjs} +2 -2
  32. package/browser/esm/{D0KMmRjGOQUs7Ls-.mjs → KpuD1kEcWB7cT0VM.mjs} +3 -3
  33. package/browser/esm/{Bw66vzKThXKvXvPI.mjs → U4FL-QeC0bRUhTEo.mjs} +2 -2
  34. package/browser/esm/{Dp4OIVjjAVhpD815.mjs → WLlpmgLN5OVLoLrC.mjs} +3 -3
  35. package/browser/esm/{D6OqcO9IWPaY211T.mjs → WR146UAqrsUsL39e.mjs} +2 -2
  36. package/browser/esm/{CPUobTehcKZllBDS.mjs → WcHfawW2lkTHtWUd.mjs} +51 -49
  37. package/browser/esm/{XrasOsWQ-64jwMn1.mjs → Zp5-cTJ0Llb6EfGi.mjs} +4 -4
  38. package/browser/esm/{CMSeF5rGzeuMUydM.mjs → ad9PX897hYE4Srkc.mjs} +3 -3
  39. package/browser/esm/{CIab4UYcHQQKTHeD.mjs → d_t-7d5BD1AdHg3u.mjs} +404 -404
  40. package/browser/esm/{L7SKr6r1tmMwFx6Q.mjs → dwGdnbV-CykjNrlm.mjs} +2 -2
  41. package/browser/esm/{DpaqR081c-Q7WemN.mjs → e69NcYnKMLnAmqyA.mjs} +2 -2
  42. package/browser/esm/index.mjs +886 -578
  43. package/browser/esm/{BN1MW1nuBndrzryn.mjs → r-o0UCm7KtluNmyK.mjs} +3 -3
  44. package/licenses/dependencies.txt +69 -69
  45. package/node/esm/{DjsOfZn5vYpB7L6U.mjs → 446KYBjJQa8g-8Gg.mjs} +52 -50
  46. package/node/esm/{BlHlBRvKGt-4CS0A.mjs → 5OfKfTRX2_y2NwpU.mjs} +2 -2
  47. package/node/esm/{BRnNpoS8VpkAhdVk.mjs → A3PEHO1HJvkHfb5n.mjs} +2 -2
  48. package/node/esm/{ZtF9EuipL7Z9Iwfs.mjs → B4WUGzJBkQu7BXRm.mjs} +2 -2
  49. package/node/esm/{DKdFasYVvjAitASZ.mjs → BH8J6vKSO5zI_TWo.mjs} +2 -2
  50. package/node/esm/BLmdKnkLwkb3wWe6.mjs +2040 -0
  51. package/node/esm/{D9RwzPR5s2mWrbCQ.mjs → BZSxu_ZqX8-Uczzn.mjs} +2 -2
  52. package/node/esm/{-afI0SRg_vgXtea7.mjs → BfPBiAgVmWhuFgFP.mjs} +3 -3
  53. package/node/esm/{OnkJkCGFDjamqIUQ.mjs → Bknw7zWZhl2-w1pi.mjs} +3 -3
  54. package/node/esm/{BNiG1ISiMjs-G2mE.mjs → BvIPsPiHhMclZ1kH.mjs} +22 -22
  55. package/node/esm/{B07QPde9GloqsW8e.mjs → By2TFKOjA1HekZap.mjs} +4 -4
  56. package/node/esm/{D9zb5xVRehABdbXL.mjs → BywIhvYkWk2o7MSW.mjs} +2 -2
  57. package/node/esm/{BZ0IRjh2hYuI86xW.mjs → C3zyhnMwQ2hRQBz7.mjs} +31 -30
  58. package/node/esm/{DVejVdSBXzAFQbqo.mjs → C884edhUf9yMqpPp.mjs} +2 -2
  59. package/node/esm/{DDIiQZTdeY4vdK8_.mjs → CDHY-0OyQ9348Brb.mjs} +189 -189
  60. package/node/esm/{BlzPuXtKvF3Qfr0p.mjs → CERNLhFrAwtu_p-q.mjs} +2 -2
  61. package/node/esm/{BfXLtDqsXXYeZ6LX.mjs → CFkX_Cn6avQqQiVC.mjs} +78 -78
  62. package/node/esm/CJDV8P3hI8lu--3Z.mjs +530 -0
  63. package/node/esm/{C6b4rM62pIWIywlM.mjs → CKwiipdPJGzAiPjg.mjs} +2 -2
  64. package/node/esm/{DUft-qpAS4MMANwG.mjs → CLtUMJfKsy4SevWE.mjs} +3 -3
  65. package/node/esm/{Cx9nQSsuyqhayyBS.mjs → CVPieTgKCwkL21nD.mjs} +32752 -27295
  66. package/node/esm/{DW3u4bBJIUaHZ6m-.mjs → C_fYuynP2a_70WdL.mjs} +2 -2
  67. package/node/esm/{C-JEySqMuKdpcKe0.mjs → CgdNA3B_GFG_yJiN.mjs} +3 -3
  68. package/node/esm/Cs3ibv6YHCDwLRlk.mjs +115 -0
  69. package/node/esm/{CjwmkzMtjj6OMJbO.mjs → Cxak8i2NidZ4Uv6v.mjs} +487 -483
  70. package/node/esm/{MtRwC1PMkOEb1Nty.mjs → D88A3UpCyGRjcX3U.mjs} +3 -3
  71. package/node/esm/{B8KEX44VZTFTTKb3.mjs → DBIUe2BC9xU7qMHR.mjs} +3 -3
  72. package/node/esm/{C7h7SvhWNwQ9TfGh.mjs → DELfV5HQZo1mInBd.mjs} +4 -4
  73. package/node/esm/{WBHD7ECKG6HZ5UpY.mjs → DOt3t-13tsnM7Fj6.mjs} +2 -2
  74. package/node/esm/{BqvqbFsPQB0gEvwF.mjs → DfWc3nW_Z_qqc_Wf.mjs} +1762 -1674
  75. package/node/esm/DgnwKbUEyQN5_gWT.mjs +169 -0
  76. package/node/esm/{D7ia4o3y5Wvl__9Y.mjs → Dhv9JymnXqcF54oo.mjs} +2 -2
  77. package/node/esm/{CHBlLTJaoPUVxA2J.mjs → DvtyKKzOnoOM80NB.mjs} +22 -22
  78. package/node/esm/{Dh8o-woVpmUL50BD.mjs → KDGrIa9R5XzWfjM2.mjs} +2 -2
  79. package/node/esm/{DyIASfKKPuNl5Xx-.mjs → RTwm9ge1KoPdlBNt.mjs} +2 -2
  80. package/node/esm/{DQqXPS05dvF0F-gh.mjs → _RIAmJI98l6bIFfZ.mjs} +2 -2
  81. package/node/esm/{j8DqCwPgfIPICFtf.mjs → bIGdvfpnijWeCac6.mjs} +1005 -1004
  82. package/node/esm/index.mjs +913 -598
  83. package/node/esm/kaiXmn0AA5WDsLPo.mjs +199 -0
  84. package/node/esm/{Ddd1y3TP0kqnnSs7.mjs → mTIhoz1gEcaEm7s1.mjs} +3 -3
  85. package/package.json +7 -7
  86. package/resources/locales/de/model.msg.json +82 -1
  87. package/resources/locales/en/model.msg.json +80 -1
  88. package/types/scripting-api.json +9967 -9497
  89. package/types/scripting-enums.json +27 -0
  90. package/types/scripting.d.ts +2282 -166
  91. package/types/src/.generated/wasm/sdk.d.ts +332 -0
  92. package/types/src/calculation/Calculation.d.ts +8 -0
  93. package/types/src/calculation/ICalculation.d.ts +51 -0
  94. package/types/src/calculation/compiler/Types.d.ts +5 -0
  95. package/types/src/calculation/executor/CalcExecutorUtils.d.ts +1 -1
  96. package/types/src/calculation/formula/FormulaBlock.d.ts +2 -0
  97. package/types/src/calculation/formula/IFormulaBlock.d.ts +18 -0
  98. package/types/src/calculation/grid/CalcGrid.d.ts +5 -1
  99. package/types/src/calculation/grid/CalcGridBackend.d.ts +36 -1
  100. package/types/src/calculation/grid/CalcGridProxy.d.ts +2 -0
  101. package/types/src/calculation/grid/CalcGridUtils.d.ts +4 -2
  102. package/types/src/calculation/grid/FormulaHost.d.ts +3 -1
  103. package/types/src/calculation/grid/ICalcGrid.d.ts +88 -0
  104. package/types/src/calculation/grid/_CalcRequest.d.ts +9 -0
  105. package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +2 -0
  106. package/types/src/calculation/spatial/SpillEntry.d.ts +55 -4
  107. package/types/src/calculation/state/CalcNode.d.ts +6 -3
  108. package/types/src/calculation/state/CalculationContext.d.ts +4 -2
  109. package/types/src/calculation/state/_PivotView.d.ts +22 -0
  110. package/types/src/cell/ICell.d.ts +1 -21
  111. package/types/src/cellRange/ICellRange.d.ts +18 -2
  112. package/types/src/collections/MixedTypedArrayList.d.ts +16 -2
  113. package/types/src/condition/BuiltInOperators/AbstractOperator.d.ts +10 -0
  114. package/types/src/condition/BuiltInOperators/GreaterThanEqualToOperator.d.ts +3 -0
  115. package/types/src/condition/BuiltInOperators/GreaterThanOperator.d.ts +3 -0
  116. package/types/src/condition/BuiltInOperators/LessThanEqualToOperator.d.ts +3 -0
  117. package/types/src/condition/BuiltInOperators/LessThanOperator.d.ts +3 -0
  118. package/types/src/condition/BuiltInOperators/MatchesOperator.d.ts +10 -0
  119. package/types/src/condition/BuiltInOperators/TimePeriodOperator.d.ts +2 -0
  120. package/types/src/condition/BuiltInOperators/index.d.ts +2 -0
  121. package/types/src/condition/Condition.d.ts +1 -0
  122. package/types/src/condition/ICondition.d.ts +15 -0
  123. package/types/src/condition/_ConditionUtils.d.ts +14 -0
  124. package/types/src/conditionalFormat/ConditionalFormat.d.ts +2 -1
  125. package/types/src/conditionalFormat/IConditionalFormat.d.ts +4 -3
  126. package/types/src/license/LicenseDetails.d.ts +27 -0
  127. package/types/src/license/LicenseManager.d.ts +24 -7
  128. package/types/src/license/_Utils.d.ts +34 -3
  129. package/types/src/license/index.d.ts +1 -0
  130. package/types/src/license/runtime.browser.d.ts +32 -4
  131. package/types/src/license/runtime.node.d.ts +8 -5
  132. package/types/src/license/summary.d.ts +18 -0
  133. package/types/src/pivot/IPivotTable.d.ts +1549 -13
  134. package/types/src/pivot/IPivotTableCollection.d.ts +70 -4
  135. package/types/src/pivot/PivotCache.d.ts +95 -11
  136. package/types/src/pivot/PivotDataField.d.ts +73 -0
  137. package/types/src/pivot/PivotField.d.ts +142 -0
  138. package/types/src/pivot/PivotTable.d.ts +548 -14
  139. package/types/src/pivot/PivotTableCollection.d.ts +18 -3
  140. package/types/src/pivot/_PivotAreas.d.ts +48 -0
  141. package/types/src/pivot/_PivotControls.d.ts +140 -0
  142. package/types/src/pivot/_PivotEngine.d.ts +9 -0
  143. package/types/src/pivot/_PivotGroups.d.ts +25 -0
  144. package/types/src/pivot/_PivotItems.d.ts +167 -0
  145. package/types/src/pivot/_PivotStructure.d.ts +237 -0
  146. package/types/src/pivot/_PivotStylePreview.d.ts +21 -0
  147. package/types/src/pivot/_PivotUtils.d.ts +37 -0
  148. package/types/src/pivot/engine/PivotAdd.d.ts +37 -0
  149. package/types/src/pivot/engine/PivotData.d.ts +65 -0
  150. package/types/src/pivot/engine/PivotEdit.d.ts +45 -0
  151. package/types/src/pivot/engine/PivotFilters.d.ts +50 -0
  152. package/types/src/pivot/engine/PivotFormulas.d.ts +72 -0
  153. package/types/src/pivot/engine/PivotLayout.d.ts +133 -0
  154. package/types/src/pivot/engine/PivotMove.d.ts +24 -0
  155. package/types/src/pivot/engine/PivotRefresh.d.ts +87 -0
  156. package/types/src/pivot/engine/PivotSort.d.ts +26 -0
  157. package/types/src/pivot/engine/PivotViewBuilder.d.ts +22 -0
  158. package/types/src/pivot/engine/index.d.ts +15 -0
  159. package/types/src/pivot/index.d.ts +4 -0
  160. package/types/src/pivot/kernel/KernelPivot.d.ts +63 -0
  161. package/types/src/pivot/kernel/_KernelLeaves.d.ts +100 -0
  162. package/types/src/pivot/kernel/_PivotAxisTree.d.ts +71 -0
  163. package/types/src/primitives/Range.d.ts +12 -1
  164. package/types/src/sheet/IWorksheet.d.ts +35 -0
  165. package/types/src/sheet/SheetCell.d.ts +21 -14
  166. package/types/src/sheet/SheetRange.d.ts +3 -0
  167. package/types/src/sheet/Worksheet.d.ts +175 -7
  168. package/types/src/sheet/_PivotFootprint.d.ts +42 -0
  169. package/types/src/sheet/_SheetAutoFitUtils.d.ts +12 -1
  170. package/types/src/sheet/_SheetMutations.d.ts +47 -0
  171. package/types/src/sheet/_SheetStateTypes.d.ts +11 -0
  172. package/types/src/sheet/style/SheetCellStyle.d.ts +6 -0
  173. package/types/src/sheet/style/SheetPivotStyle.d.ts +83 -0
  174. package/types/src/sheet/style/_IndentUnit.d.ts +14 -0
  175. package/types/src/sheetHeader/SheetCellHeader.d.ts +1 -1
  176. package/types/src/slicer/ISlicer.d.ts +114 -34
  177. package/types/src/slicer/ITimeline.d.ts +61 -0
  178. package/types/src/slicer/Slicer.d.ts +76 -3
  179. package/types/src/slicer/_PivotSlicer.d.ts +51 -0
  180. package/types/src/slicer/index.d.ts +1 -0
  181. package/types/src/table/AnchoredTable.d.ts +11 -1
  182. package/types/src/table/ITable.d.ts +5 -6
  183. package/types/src/table/ITableStyle.d.ts +50 -34
  184. package/types/src/table/_BuiltInPivotStyles.d.ts +8 -0
  185. package/types/src/table/_BuiltInTableStyles.d.ts +0 -1
  186. package/types/src/type/ITypes.d.ts +5 -1
  187. package/types/src/workbook/IWorkbook.d.ts +8 -2
  188. package/types/src/workbook/Workbook.d.ts +72 -6
  189. package/browser/esm/BrHplg4RuI5jOmmr.mjs +0 -357
  190. package/browser/esm/eImPONkfn5DstmS8.mjs +0 -184
  191. package/node/esm/03AYPvCda2x9EOlY.mjs +0 -360
  192. package/node/esm/BmVQRGAijOHzgHmz.mjs +0 -199
  193. package/node/esm/Dk4KLs5GoRRuD8J4.mjs +0 -115
  194. package/types/src/pivot/_PivotXml.d.ts +0 -24
  195. package/types/src/primitives/Grouping.d.ts +0 -65
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.15
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.16
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
5
+ * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { t as e } from "./D7ia4o3y5Wvl__9Y.mjs";
8
- import { t } from "./BlHlBRvKGt-4CS0A.mjs";
7
+ import { t as e } from "./Dhv9JymnXqcF54oo.mjs";
8
+ import { t } from "./5OfKfTRX2_y2NwpU.mjs";
9
9
  import { CommonUtils as r, ExpectedError as n, TypedObject as a, defineLazyModule as o, loadResource as i, messageKey as s } from "@sheetxl/utils";
10
10
  import { parseFont as l, parseFontFamily as u } from "css-font-parser";
11
11
  var d, c;
@@ -565,7 +565,7 @@ var T, _ = e({
565
565
  }), D = {
566
566
  getDeviceScale: () => _.getDeviceScale(),
567
567
  getAdvanceBuilders: () => _.getAdvanceBuilders()
568
- }, A = o("sdk:fonts-wasm", () => import("./B8KEX44VZTFTTKb3.mjs"), { prefetch: !1 }), x = async () => (await A.load()).wasm, F = /^\p{White_Space}$/u, N = (e) => Math.max(0, Math.floor(e + .5)) || 0, B = class e {
568
+ }, A = o("sdk:fonts-wasm", () => import("./DBIUe2BC9xU7qMHR.mjs"), { prefetch: !1 }), x = async () => (await A.load()).wasm, F = /^\p{White_Space}$/u, N = (e) => Math.max(0, Math.floor(e + .5)) || 0, B = class e {
569
569
  constructor(e, t) {
570
570
  this._perEm = /* @__PURE__ */ new Map(), this._units = /* @__PURE__ */ new Map(), this._unitsPerEm = 0, this._hinting = null, this._measureMissing = null, this._native = null, this._nativePending = [], this.family = e.family, this.weight = e.weight, this.italic = e.italic, this._vertical = t;
571
571
  }
@@ -3884,31 +3884,31 @@ function ta(e, t, r = !1, n = !1) {
3884
3884
  };
3885
3885
  }
3886
3886
  var ra = (e, t, r = null, n = !1, a = !1) => {
3887
- const o = new Date(r ?? Date.now()).getFullYear(), { formats: i, compiled: s, monthByName: l, weekdaysAbbr: u, weekdaysWide: d, numericSep: c, wildcardSep: m } = Jn(e.getLocale());
3888
- let h = t.replaceAll(/^ +| +$/g, "").replaceAll(/ +/g, " ");
3889
- h = h.replaceAll(/ *([-/]) */g, "$1");
3890
- let p = h.replaceAll(m, Kn), g = h.replaceAll(c, "-");
3891
- const f = e.isDate1904();
3892
- for (let e = 0; e < i.length; e++) {
3893
- if (!i[e].excelOnly && !a) continue;
3894
- let t = h;
3895
- i[e].containsDot ? t = p : i[e].containsDash && (t = g);
3896
- const r = Wn(t, s[e], l);
3887
+ const o = r ?? e.getNow(), i = new Date(o).getFullYear(), { formats: s, compiled: l, monthByName: u, weekdaysAbbr: d, weekdaysWide: c, numericSep: m, wildcardSep: h } = Jn(e.getLocale());
3888
+ let p = t.replaceAll(/^ +| +$/g, "").replaceAll(/ +/g, " ");
3889
+ p = p.replaceAll(/ *([-/]) */g, "$1");
3890
+ let g = p.replaceAll(h, Kn), f = p.replaceAll(m, "-");
3891
+ const y = e.isDate1904();
3892
+ for (let e = 0; e < s.length; e++) {
3893
+ if (!s[e].excelOnly && !a) continue;
3894
+ let t = p;
3895
+ s[e].containsDot ? t = g : s[e].containsDash && (t = f);
3896
+ const r = Wn(t, l[e], u);
3897
3897
  if (!r) continue;
3898
- let n = r.year ?? o;
3899
- i[e].windowYear && void 0 !== r.year && (n = n <= 29 ? 2e3 + n : 1900 + n), i[e].todaysYear && (n = o);
3900
- const c = r.day ?? 1, m = 1900 === n && 2 === r.month && 29 === c, y = /* @__PURE__ */ new Date(0);
3901
- if (y.setFullYear(n, r.month - 1, c), y.setHours(0, 0, 0, 0), !m && (y.getMonth() !== r.month - 1 || y.getDate() !== c)) continue;
3902
- const S = m ? vn(1900, 2, 29) - (f ? bn : 0) : zn(y, f), b = f ? 0 : 1;
3903
- if (i[e].windowYear || S >= b) {
3904
- if (i[e].parseFormat.indexOf("EEE") > -1) {
3905
- const e = Bn(vn(n, r.month, c)), a = t.toLowerCase();
3906
- if (!a.includes(u[e].toLowerCase()) && !a.includes(d[e].toLowerCase())) return null;
3898
+ let n = r.year ?? i;
3899
+ s[e].windowYear && void 0 !== r.year && (n = n <= 29 ? 2e3 + n : 1900 + n), s[e].todaysYear && (n = i);
3900
+ const o = r.day ?? 1, m = 1900 === n && 2 === r.month && 29 === o, h = /* @__PURE__ */ new Date(0);
3901
+ if (h.setFullYear(n, r.month - 1, o), h.setHours(0, 0, 0, 0), !m && (h.getMonth() !== r.month - 1 || h.getDate() !== o)) continue;
3902
+ const S = m ? vn(1900, 2, 29) - (y ? bn : 0) : zn(h, y), b = y ? 0 : 1;
3903
+ if (s[e].windowYear || S >= b) {
3904
+ if (s[e].parseFormat.indexOf("EEE") > -1) {
3905
+ const e = Bn(vn(n, r.month, o)), a = t.toLowerCase();
3906
+ if (!a.includes(d[e].toLowerCase()) && !a.includes(c[e].toLowerCase())) return null;
3907
3907
  }
3908
3908
  return {
3909
3909
  asSerialDate: S,
3910
- asJSDate: y,
3911
- numberFormat: i[e].numberFormat
3910
+ asJSDate: h,
3911
+ numberFormat: s[e].numberFormat
3912
3912
  };
3913
3913
  }
3914
3914
  }
@@ -3973,7 +3973,7 @@ var ha = Object.freeze({
3973
3973
  const n = r?.date1904 ?? !1, a = r?.locale;
3974
3974
  let o = e;
3975
3975
  if (void 0 !== yn[o] && (o = yn[o]), "number" == typeof o && (o = pn(o, a) ?? o), "number" == typeof t) {
3976
- const e = Ma(o, t, {
3976
+ const e = ka(o, t, {
3977
3977
  date1904: n,
3978
3978
  locale: a
3979
3979
  });
@@ -4035,7 +4035,7 @@ var ha = Object.freeze({
4035
4035
  let m = null;
4036
4036
  if (r?.placeholders) {
4037
4037
  const e = nr(o, s, l);
4038
- null != e && (m = Ta("number" == typeof e ? `color${e}` : String(e)));
4038
+ null != e && (m = _a("number" == typeof e ? `color${e}` : String(e)));
4039
4039
  }
4040
4040
  return {
4041
4041
  text: u,
@@ -4051,7 +4051,7 @@ var ha = Object.freeze({
4051
4051
  return da(e);
4052
4052
  }
4053
4053
  isFractionFormat(e) {
4054
- return La(fn(e));
4054
+ return Ra(fn(e));
4055
4055
  }
4056
4056
  adjustDecimalPlaces(e, t) {
4057
4057
  return function(e, t) {
@@ -4062,7 +4062,7 @@ var ha = Object.freeze({
4062
4062
  return t < 0 ? (r = r.substring(0, Math.max(0, n + t)), "." === r && (r = "")) : (r.startsWith(".") || (r += "."), r += a.repeat(t)), r;
4063
4063
  }, a = (e, t) => {
4064
4064
  if ("General" === e) return t > 0 ? "0" + n("", t) : e;
4065
- if (La(e)) return e;
4065
+ if (Ra(e)) return e;
4066
4066
  let r = e, a = -1, o = -1;
4067
4067
  const i = r.indexOf("E");
4068
4068
  if (i >= 0 && (r = r.substring(0, i)), a = r.indexOf("."), a >= 0) {
@@ -4151,7 +4151,14 @@ function wa(e, t, r) {
4151
4151
  locale: r?.locale
4152
4152
  });
4153
4153
  }
4154
- function va(e, t, r) {
4154
+ function va(e, t, r, n) {
4155
+ return Ca(t, r, {
4156
+ ...n,
4157
+ date1904: e?.isDate1904() ?? !1,
4158
+ locale: e?.getLocale() ?? void 0
4159
+ });
4160
+ }
4161
+ function Ca(e, t, r) {
4155
4162
  const n = !(!r || !r.onSpacingChar && !r.onRepeatChar && void 0 === r.spacingCharacter), a = fa().format(e, t, {
4156
4163
  date1904: r?.date1904 ?? !1,
4157
4164
  locale: r?.locale,
@@ -4171,14 +4178,14 @@ function va(e, t, r) {
4171
4178
  } else if (r.onSpacingChar) for (const e of o) r.onSpacingChar(e.offset, e.char);
4172
4179
  return s;
4173
4180
  }
4174
- function Ca(e, t, r, n) {
4175
- return Ma(t, r, {
4181
+ function Ma(e, t, r, n) {
4182
+ return ka(t, r, {
4176
4183
  ...n,
4177
4184
  date1904: e?.isDate1904() ?? !1,
4178
4185
  locale: e?.getLocale() ?? void 0
4179
4186
  });
4180
4187
  }
4181
- function Ma(e, t, r) {
4188
+ function ka(e, t, r) {
4182
4189
  if ("number" != typeof t || t > 2958465 || t < 0) return null;
4183
4190
  const n = On(t, r?.date1904 ?? !1), a = r?.locale ?? "en-US";
4184
4191
  let o = !1, i = e, s = -1;
@@ -4233,7 +4240,7 @@ function Ma(e, t, r) {
4233
4240
  date: n
4234
4241
  } : null;
4235
4242
  }
4236
- var ka = Object.freeze({
4243
+ var Ta = Object.freeze({
4237
4244
  black: 0,
4238
4245
  white: 1,
4239
4246
  red: 2,
@@ -4243,68 +4250,62 @@ var ka = Object.freeze({
4243
4250
  magenta: 6,
4244
4251
  cyan: 7
4245
4252
  });
4246
- function Ta(e) {
4253
+ function _a(e) {
4247
4254
  let t = null;
4248
4255
  if ((e = e.toLowerCase()).startsWith("color")) {
4249
4256
  const r = parseInt(e.substring(5));
4250
4257
  r >= 0 && r <= 56 && (t = `Index${r + 7}`);
4251
4258
  }
4252
4259
  if (!t) {
4253
- const r = ka[e];
4260
+ const r = Ta[e];
4254
4261
  void 0 !== r && (t = dn(r).toString());
4255
4262
  }
4256
4263
  return t;
4257
4264
  }
4258
- var _a = "=", Da = "<>", Aa = ">", xa = "<", Fa = ">=", Na = "<=", Ba = /* @__PURE__ */ new Map();
4259
- Ba.set(_a, (e, t) => e === t), Ba.set(Da, (e, t) => e !== t), Ba.set(Aa, (e, t) => e > t), Ba.set(xa, (e, t) => e < t), Ba.set(Fa, (e, t) => e >= t), Ba.set(Na, (e, t) => e <= t);
4265
+ var Da = "=", Aa = "<>", xa = ">", Fa = "<", Na = ">=", Ba = "<=", La = /* @__PURE__ */ new Map();
4266
+ La.set(Da, (e, t) => e === t), La.set(Aa, (e, t) => e !== t), La.set(xa, (e, t) => e > t), La.set(Fa, (e, t) => e < t), La.set(Na, (e, t) => e >= t), La.set(Ba, (e, t) => e <= t);
4260
4267
  Object.freeze({
4261
- op: Fa,
4268
+ op: Na,
4262
4269
  comp: 0
4263
4270
  }), Object.freeze({
4264
- op: xa,
4271
+ op: Fa,
4265
4272
  comp: 0
4266
4273
  }), Object.freeze({
4267
- op: Aa,
4274
+ op: xa,
4268
4275
  comp: 0
4269
4276
  }), Object.freeze({
4270
- op: _a,
4277
+ op: Da,
4271
4278
  comp: 0
4272
4279
  });
4273
- function La(e) {
4280
+ function Ra(e) {
4274
4281
  return !(!e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/) && !e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/));
4275
4282
  }
4276
- function Ra(e) {
4283
+ function Pa(e) {
4277
4284
  return !!e && (49 === e || "@" === e || "number" != typeof e && (fa().getFormatInfo(e)?.isText ?? !1));
4278
4285
  }
4279
- var Pa = {
4286
+ var Ia = {
4280
4287
  Text: "text",
4281
4288
  Repeat: "repeat",
4282
4289
  Spacing: "spacing"
4283
- }, Ia = Object.freeze({
4284
- formatValue: function(e, t, r, n) {
4285
- return va(t, r, {
4286
- ...n,
4287
- date1904: e?.isDate1904() ?? !1,
4288
- locale: e?.getLocale() ?? void 0
4289
- });
4290
- },
4290
+ }, Ea = Object.freeze({
4291
+ formatValue: va,
4291
4292
  isFractionFormat: (e) => fa().isFractionFormat(e),
4292
4293
  adjustDecimalPlaces: (e, t) => fa().adjustDecimalPlaces(e, t),
4293
4294
  getFormatInfo: (e) => fa().getFormatInfo(e),
4294
4295
  getFormatDateInfo: (e) => fa().getFormatDateInfo(e),
4295
4296
  isValidFormat: (e) => fa().isValidFormat(e)
4296
4297
  });
4297
- function Ea(e) {
4298
+ function ja(e) {
4298
4299
  return 14 === e ? "Short Date" : 22 === e ? "Short DateTime" : cn[e] ?? null;
4299
4300
  }
4300
- function ja(e) {
4301
+ function Ga(e) {
4301
4302
  if ("number" == typeof e) return e;
4302
4303
  let t = e;
4303
4304
  const r = yn[e];
4304
4305
  return r && (t = r), "number" == typeof t ? t : (n = t, Sn.get(n) ?? t);
4305
4306
  var n;
4306
4307
  }
4307
- var Ga = [
4308
+ var Oa = [
4308
4309
  {
4309
4310
  numberFormat: "General",
4310
4311
  formatType: de.General,
@@ -4532,7 +4533,7 @@ var Ga = [
4532
4533
  numberFormat: "[h]:mm:ss",
4533
4534
  formatType: de.Custom
4534
4535
  }
4535
- ], Oa = [
4536
+ ], za = [
4536
4537
  {
4537
4538
  numberFormat: "00000",
4538
4539
  formatType: de.Special,
@@ -4550,56 +4551,56 @@ var Ga = [
4550
4551
  numberFormat: "000-00-0000",
4551
4552
  formatType: de.Special
4552
4553
  }
4553
- ], za = [...Ga, ...Oa], $a = /* @__PURE__ */ new Map(), Ha = [];
4554
- for (let e = 0; e < Ga.length; e++) {
4555
- let t = Ga[e].numberFormat.toLowerCase();
4556
- $a.set(t, Ga[e]), Ga[e].regMatch && Ha.unshift(Ga[e]);
4557
- }
4554
+ ], $a = [...Oa, ...za], Ha = /* @__PURE__ */ new Map(), Ua = [];
4558
4555
  for (let e = 0; e < Oa.length; e++) {
4559
4556
  let t = Oa[e].numberFormat.toLowerCase();
4560
- $a.set(t, Oa[e]);
4557
+ Ha.set(t, Oa[e]), Oa[e].regMatch && Ua.unshift(Oa[e]);
4561
4558
  }
4562
- var Ua = [], Ka = /* @__PURE__ */ new Map();
4563
- $a.forEach(function(e, t, n) {
4564
- e.primary && (Ua.push(e), Ka.set(r.textToKey(e.formatType), e.numberFormat));
4565
- }), Ua.sort(function(e, t) {
4559
+ for (let e = 0; e < za.length; e++) {
4560
+ let t = za[e].numberFormat.toLowerCase();
4561
+ Ha.set(t, za[e]);
4562
+ }
4563
+ var Ka = [], Wa = /* @__PURE__ */ new Map();
4564
+ Ha.forEach(function(e, t, n) {
4565
+ e.primary && (Ka.push(e), Wa.set(r.textToKey(e.formatType), e.numberFormat));
4566
+ }), Ka.sort(function(e, t) {
4566
4567
  return e.primary - t.primary;
4567
4568
  });
4568
- var Wa = $a.get(de.General.toLowerCase()), Va = class {
4569
+ var Va = Ha.get(de.General.toLowerCase()), Ja = class {
4569
4570
  lookupStyle(e) {
4570
- if (!e) return Wa;
4571
- if ("number" == typeof e && (e = Ea(e)), !e.toLowerCase) return console.warn("Invalid numberFormat", e), Wa;
4571
+ if (!e) return Va;
4572
+ if ("number" == typeof e && (e = ja(e)), !e.toLowerCase) return console.warn("Invalid numberFormat", e), Va;
4572
4573
  e = e.toLowerCase();
4573
- let t = $a.get(e);
4574
+ let t = Ha.get(e);
4574
4575
  if (t) return t;
4575
- for (let r = 0; !t && r < Ha.length; r++) Ha[r].regMatch && e.match(Ha[r].regMatch) && (t = Ha[r]);
4576
+ for (let r = 0; !t && r < Ua.length; r++) Ua[r].regMatch && e.match(Ua[r].regMatch) && (t = Ua[r]);
4576
4577
  return t || {
4577
4578
  numberFormat: e,
4578
4579
  formatType: de.Custom
4579
4580
  };
4580
4581
  }
4581
4582
  lookupPrimary() {
4582
- return Ua;
4583
+ return Ka;
4583
4584
  }
4584
4585
  lookupByType(e) {
4585
- return za.filter((t) => t.formatType === e);
4586
+ return $a.filter((t) => t.formatType === e);
4586
4587
  }
4587
4588
  lookupDefault(e) {
4588
- return Ka.get(r.textToKey(e));
4589
- }
4590
- }, Ja = e({
4591
- CATEGORIES: () => Ya,
4592
- CURRENCY_SYMBOLS: () => ao,
4593
- DATE_PRESETS: () => oo,
4594
- FRACTION_PRESETS: () => so,
4595
- NEGATIVE_STYLES: () => no,
4596
- SPECIAL_PRESETS: () => lo,
4597
- TIME_PRESETS: () => io,
4598
- build: () => ho,
4599
- defaultCodeForCategory: () => uo,
4600
- isParametricCategory: () => Za,
4601
- parse: () => yo
4602
- }), qa = new Va(), Ya = Object.freeze([
4589
+ return Wa.get(r.textToKey(e));
4590
+ }
4591
+ }, qa = e({
4592
+ CATEGORIES: () => Xa,
4593
+ CURRENCY_SYMBOLS: () => oo,
4594
+ DATE_PRESETS: () => io,
4595
+ FRACTION_PRESETS: () => lo,
4596
+ NEGATIVE_STYLES: () => ao,
4597
+ SPECIAL_PRESETS: () => uo,
4598
+ TIME_PRESETS: () => so,
4599
+ build: () => po,
4600
+ defaultCodeForCategory: () => co,
4601
+ isParametricCategory: () => Qa,
4602
+ parse: () => So
4603
+ }), Ya = new Ja(), Xa = Object.freeze([
4603
4604
  "General",
4604
4605
  "Number",
4605
4606
  "Currency",
@@ -4612,17 +4613,17 @@ var Wa = $a.get(de.General.toLowerCase()), Va = class {
4612
4613
  "Text",
4613
4614
  "Special",
4614
4615
  "Custom"
4615
- ]), Xa = /* @__PURE__ */ new Set([
4616
+ ]), Za = /* @__PURE__ */ new Set([
4616
4617
  "Number",
4617
4618
  "Currency",
4618
4619
  "Accounting",
4619
4620
  "Percentage",
4620
4621
  "Scientific"
4621
4622
  ]);
4622
- function Za(e) {
4623
- return Xa.has(e);
4623
+ function Qa(e) {
4624
+ return Za.has(e);
4624
4625
  }
4625
- var Qa, eo, to, ro, no = Object.freeze([
4626
+ var eo, to, ro, no, ao = Object.freeze([
4626
4627
  {
4627
4628
  key: "minus",
4628
4629
  label: "Minus sign",
@@ -4647,7 +4648,7 @@ var Qa, eo, to, ro, no = Object.freeze([
4647
4648
  red: !0,
4648
4649
  parens: !0
4649
4650
  }
4650
- ]), ao = Object.freeze([
4651
+ ]), oo = Object.freeze([
4651
4652
  "$",
4652
4653
  "€",
4653
4654
  "£",
@@ -4660,7 +4661,7 @@ var Qa, eo, to, ro, no = Object.freeze([
4660
4661
  "CHF",
4661
4662
  "kr",
4662
4663
  "฿"
4663
- ]), oo = Object.freeze([
4664
+ ]), io = Object.freeze([
4664
4665
  "Short Date",
4665
4666
  "Long Date",
4666
4667
  "m/d/yyyy",
@@ -4669,7 +4670,7 @@ var Qa, eo, to, ro, no = Object.freeze([
4669
4670
  "mmm-yy",
4670
4671
  "mmmm d, yyyy",
4671
4672
  "m/d/yy h:mm"
4672
- ]), io = Object.freeze([
4673
+ ]), so = Object.freeze([
4673
4674
  "h:mm AM/PM",
4674
4675
  "h:mm:ss AM/PM",
4675
4676
  "h:mm",
@@ -4678,7 +4679,7 @@ var Qa, eo, to, ro, no = Object.freeze([
4678
4679
  "[h]:mm:ss",
4679
4680
  "mm:ss",
4680
4681
  "mm:ss.0"
4681
- ]), so = Object.freeze([
4682
+ ]), lo = Object.freeze([
4682
4683
  "# ?/?",
4683
4684
  "# ??/??",
4684
4685
  "# ???/???",
@@ -4688,51 +4689,51 @@ var Qa, eo, to, ro, no = Object.freeze([
4688
4689
  "# ??/16",
4689
4690
  "# ?/10",
4690
4691
  "# ??/100"
4691
- ]), lo = Object.freeze([
4692
+ ]), uo = Object.freeze([
4692
4693
  "00000",
4693
4694
  "00000-0000",
4694
4695
  "[<=9999999]###-####;(###) ###-####",
4695
4696
  "000-00-0000"
4696
4697
  ]);
4697
- function uo(e) {
4698
+ function co(e) {
4698
4699
  switch (e) {
4699
4700
  case "General":
4700
4701
  case "Custom": return "General";
4701
4702
  case "Text": return "@";
4702
- case "Number": return ho({
4703
+ case "Number": return po({
4703
4704
  category: "Number",
4704
4705
  decimalPlaces: 2,
4705
4706
  useSeparator: !1,
4706
4707
  negativeStyle: 0
4707
4708
  });
4708
- case "Currency": return ho({
4709
+ case "Currency": return po({
4709
4710
  category: "Currency",
4710
4711
  decimalPlaces: 2,
4711
4712
  currencySymbol: "$",
4712
4713
  negativeStyle: 0
4713
4714
  });
4714
- case "Accounting": return ho({
4715
+ case "Accounting": return po({
4715
4716
  category: "Accounting",
4716
4717
  decimalPlaces: 2,
4717
4718
  currencySymbol: "$"
4718
4719
  });
4719
4720
  case "Percentage": return "0.00%";
4720
4721
  case "Scientific": return "0.00E+00";
4721
- case "Date": return oo[0];
4722
- case "Time": return io[0];
4723
- case "Fraction": return so[0];
4724
- case "Special": return lo[0];
4722
+ case "Date": return io[0];
4723
+ case "Time": return so[0];
4724
+ case "Fraction": return lo[0];
4725
+ case "Special": return uo[0];
4725
4726
  }
4726
4727
  }
4727
- function co(e) {
4728
+ function mo(e) {
4728
4729
  const t = e ?? "$";
4729
4730
  return "$" === t ? "$" : `"${t}"`;
4730
4731
  }
4731
- function mo(e, t) {
4732
- const r = no[t ?? 0] ?? no[0];
4732
+ function ho(e, t) {
4733
+ const r = ao[t ?? 0] ?? ao[0];
4733
4734
  return r.parens ? r.red ? `${e}_);[Red](${e})` : `${e}_);(${e})` : r.red ? `${e};[Red]${e}` : e;
4734
4735
  }
4735
- function ho(e) {
4736
+ function po(e) {
4736
4737
  const { category: t, decimalPlaces: r, useSeparator: n, currencySymbol: a, negativeStyle: o, code: i } = e, s = function(e) {
4737
4738
  const t = Math.max(0, Math.min(30, e ?? 0));
4738
4739
  return t > 0 ? "." + "0".repeat(t) : "";
@@ -4740,10 +4741,10 @@ function ho(e) {
4740
4741
  switch (t) {
4741
4742
  case "General": return "General";
4742
4743
  case "Text": return "@";
4743
- case "Number": return mo((n ? "#,##0" : "0") + s, o);
4744
- case "Currency": return mo(co(a) + "#,##0" + s, o);
4744
+ case "Number": return ho((n ? "#,##0" : "0") + s, o);
4745
+ case "Currency": return ho(mo(a) + "#,##0" + s, o);
4745
4746
  case "Accounting": {
4746
- const e = co(a);
4747
+ const e = mo(a);
4747
4748
  return `_(${e}* #,##0${s}_);_(${e}* (#,##0${s});_(${e}* ${(r ?? 0) > 0 ? "\"-\"" + "?".repeat(r) : "\"-\""}_);_(@_)`;
4748
4749
  }
4749
4750
  case "Percentage": return "0" + s + "%";
@@ -4752,11 +4753,11 @@ function ho(e) {
4752
4753
  case "Time":
4753
4754
  case "Fraction":
4754
4755
  case "Special":
4755
- case "Custom": return i || uo(t);
4756
+ case "Custom": return i || co(t);
4756
4757
  }
4757
4758
  }
4758
- function po(e, t) {
4759
- if (qa.lookupStyle(e).formatType === de.Special) return "Special";
4759
+ function go(e, t) {
4760
+ if (Ya.lookupStyle(e).formatType === de.Special) return "Special";
4760
4761
  switch (t) {
4761
4762
  case "general": return "General";
4762
4763
  case "text": return "Text";
@@ -4772,34 +4773,34 @@ function po(e, t) {
4772
4773
  }(e) ? "Accounting" : "Currency";
4773
4774
  case "number":
4774
4775
  case "grouped": return function(e) {
4775
- return qa.lookupStyle(e).formatType === de.Special;
4776
+ return Ya.lookupStyle(e).formatType === de.Special;
4776
4777
  }(e) ? "Special" : "Number";
4777
4778
  }
4778
4779
  }
4779
- function go(e) {
4780
+ function fo(e) {
4780
4781
  const t = e.match(/\[\$([^\]-]+)(?:-[^\]]*)?\]/);
4781
4782
  if (t) return t[1];
4782
4783
  const r = e.match(/"([^"]+)"/);
4783
4784
  return r && "-" !== r[1] ? r[1] : (e.includes("$"), "$");
4784
4785
  }
4785
- function fo(e) {
4786
+ function yo(e) {
4786
4787
  const t = ba(e);
4787
4788
  if (t.length < 2) return 0;
4788
4789
  const r = t[1], n = /\[red\]/i.test(r);
4789
4790
  return r.includes("(") ? n ? 3 : 2 : n ? 1 : 0;
4790
4791
  }
4791
- function yo(e) {
4792
+ function So(e) {
4792
4793
  if (null == e || "" === e) return { category: "General" };
4793
- const t = fa().getFormatInfo(e), r = po(e, t?.type), n = { category: r };
4794
+ const t = fa().getFormatInfo(e), r = go(e, t?.type), n = { category: r };
4794
4795
  switch (r) {
4795
4796
  case "Number":
4796
- n.decimalPlaces = t?.maxDecimals ?? 0, n.useSeparator = !!t?.grouped, n.negativeStyle = fo(e);
4797
+ n.decimalPlaces = t?.maxDecimals ?? 0, n.useSeparator = !!t?.grouped, n.negativeStyle = yo(e);
4797
4798
  break;
4798
4799
  case "Currency":
4799
- n.decimalPlaces = t?.maxDecimals ?? 2, n.currencySymbol = go(e), n.negativeStyle = fo(e);
4800
+ n.decimalPlaces = t?.maxDecimals ?? 2, n.currencySymbol = fo(e), n.negativeStyle = yo(e);
4800
4801
  break;
4801
4802
  case "Accounting":
4802
- n.decimalPlaces = t?.maxDecimals ?? 2, n.currencySymbol = go(e);
4803
+ n.decimalPlaces = t?.maxDecimals ?? 2, n.currencySymbol = fo(e);
4803
4804
  break;
4804
4805
  case "Percentage":
4805
4806
  case "Scientific":
@@ -4809,7 +4810,7 @@ function yo(e) {
4809
4810
  }
4810
4811
  return n;
4811
4812
  }
4812
- (eo = Qa || (Qa = {})).Type = de, eo.Parser = Ia, eo.Styles = new Va(), eo.ParseRunType = Pa, eo.toBuiltInID = ja, eo.resolve = fn, eo.builtInFormat = gn, eo.getEngine = fa, eo.Builder = Ja, (ro = to || (to = {})).AdjustmentType = {
4813
+ (to = eo || (eo = {})).Type = de, to.Parser = Ea, to.Styles = new Ja(), to.ParseRunType = Ia, to.toBuiltInID = Ga, to.resolve = fn, to.builtInFormat = gn, to.getEngine = fa, to.Builder = qa, (no = ro || (ro = {})).AdjustmentType = {
4813
4814
  Alpha: "alpha",
4814
4815
  AlphaOff: "alphaOff",
4815
4816
  AlphaMod: "alphaMod",
@@ -4839,7 +4840,7 @@ function yo(e) {
4839
4840
  Inv: "inv",
4840
4841
  Gamma: "gamma",
4841
4842
  InvGamma: "invGamma"
4842
- }, ro.Named = {
4843
+ }, no.Named = {
4843
4844
  ActiveBorder: "activeBorder",
4844
4845
  ActiveCaption: "activeCaption",
4845
4846
  CaptionText: "captionText",
@@ -5015,7 +5016,7 @@ function yo(e) {
5015
5016
  GradientInactiveCaption: "gradientInactiveCaption",
5016
5017
  MenuBar: "menuBar",
5017
5018
  MenuHighlight: "menuHighlight"
5018
- }, ro.Scheme = {
5019
+ }, no.Scheme = {
5019
5020
  Bg1: "bg1",
5020
5021
  Bg2: "bg2",
5021
5022
  Tx1: "tx1",
@@ -5028,7 +5029,7 @@ function yo(e) {
5028
5029
  Accent6: "accent6",
5029
5030
  Hlink: "hlink",
5030
5031
  FolHlink: "folHlink"
5031
- }, ro.Type = {
5032
+ }, no.Type = {
5032
5033
  Scheme: "scheme",
5033
5034
  Named: "named",
5034
5035
  Index: "index",
@@ -5038,297 +5039,297 @@ function yo(e) {
5038
5039
  LRGB: "lrgb",
5039
5040
  Hex: "hex"
5040
5041
  };
5041
- var So = [
5042
+ var bo = [
5042
5043
  [
5043
5044
  16777215,
5044
- to.Named.Transparent,
5045
+ ro.Named.Transparent,
5045
5046
  !0
5046
5047
  ],
5047
5048
  [
5048
5049
  4290032820,
5049
- to.Named.ActiveBorder,
5050
+ ro.Named.ActiveBorder,
5050
5051
  !0
5051
5052
  ],
5052
5053
  [
5053
5054
  4288263377,
5054
- to.Named.ActiveCaption,
5055
+ ro.Named.ActiveCaption,
5055
5056
  !0
5056
5057
  ],
5057
5058
  [
5058
5059
  4278190080,
5059
- to.Named.CaptionText,
5060
+ ro.Named.CaptionText,
5060
5061
  !0
5061
5062
  ],
5062
5063
  [
5063
5064
  4289440683,
5064
- to.Named.AppWorkspace,
5065
+ ro.Named.AppWorkspace,
5065
5066
  !0
5066
5067
  ],
5067
5068
  [
5068
5069
  4293980400,
5069
- to.Named.BtnFace,
5070
+ ro.Named.BtnFace,
5070
5071
  !0
5071
5072
  ],
5072
5073
  [
5073
5074
  4285098345,
5074
- to.Named.BtnShadow,
5075
+ ro.Named.BtnShadow,
5075
5076
  !0
5076
5077
  ],
5077
5078
  [
5078
5079
  4278190080,
5079
- to.Named.DkShadow3d,
5080
+ ro.Named.DkShadow3d,
5080
5081
  !0
5081
5082
  ],
5082
5083
  [
5083
5084
  4293125091,
5084
- to.Named.BtnHighlight,
5085
+ ro.Named.BtnHighlight,
5085
5086
  !0
5086
5087
  ],
5087
5088
  [
5088
5089
  4293125091,
5089
- to.Named.Light3d,
5090
+ ro.Named.Light3d,
5090
5091
  !0
5091
5092
  ],
5092
5093
  [
5093
5094
  4278190080,
5094
- to.Named.BtnText,
5095
+ ro.Named.BtnText,
5095
5096
  !0
5096
5097
  ],
5097
5098
  [
5098
5099
  4278190080,
5099
- to.Named.Background,
5100
+ ro.Named.Background,
5100
5101
  !0
5101
5102
  ],
5102
5103
  [
5103
5104
  4285361517,
5104
- to.Named.GrayText,
5105
+ ro.Named.GrayText,
5105
5106
  !0
5106
5107
  ],
5107
5108
  [
5108
5109
  4281571839,
5109
- to.Named.Highlight,
5110
+ ro.Named.Highlight,
5110
5111
  !0
5111
5112
  ],
5112
5113
  [
5113
5114
  4294967295,
5114
- to.Named.HighlightText,
5115
+ ro.Named.HighlightText,
5115
5116
  !0
5116
5117
  ],
5117
5118
  [
5118
5119
  4278216396,
5119
- to.Named.HotLight,
5120
+ ro.Named.HotLight,
5120
5121
  !0
5121
5122
  ],
5122
5123
  [
5123
5124
  4294244348,
5124
- to.Named.InactiveBorder,
5125
+ ro.Named.InactiveBorder,
5125
5126
  !0
5126
5127
  ],
5127
5128
  [
5128
5129
  4290760155,
5129
- to.Named.InactiveCaption,
5130
+ ro.Named.InactiveCaption,
5130
5131
  !0
5131
5132
  ],
5132
5133
  [
5133
5134
  4278190080,
5134
- to.Named.InactiveCaptionText,
5135
+ ro.Named.InactiveCaptionText,
5135
5136
  !0
5136
5137
  ],
5137
5138
  [
5138
5139
  4294967265,
5139
- to.Named.InfoBk,
5140
+ ro.Named.InfoBk,
5140
5141
  !0
5141
5142
  ],
5142
5143
  [
5143
5144
  4278190080,
5144
- to.Named.InfoText,
5145
+ ro.Named.InfoText,
5145
5146
  !0
5146
5147
  ],
5147
5148
  [
5148
5149
  4293980400,
5149
- to.Named.Menu,
5150
+ ro.Named.Menu,
5150
5151
  !0
5151
5152
  ],
5152
5153
  [
5153
5154
  4278190080,
5154
- to.Named.MenuText,
5155
+ ro.Named.MenuText,
5155
5156
  !0
5156
5157
  ],
5157
5158
  [
5158
5159
  4291348680,
5159
- to.Named.ScrollBar,
5160
+ ro.Named.ScrollBar,
5160
5161
  !0
5161
5162
  ],
5162
5163
  [
5163
5164
  4294967295,
5164
- to.Named.Window,
5165
+ ro.Named.Window,
5165
5166
  !0
5166
5167
  ],
5167
5168
  [
5168
5169
  4284769380,
5169
- to.Named.WindowFrame,
5170
+ ro.Named.WindowFrame,
5170
5171
  !0
5171
5172
  ],
5172
5173
  [
5173
5174
  4278190080,
5174
- to.Named.WindowText,
5175
+ ro.Named.WindowText,
5175
5176
  !0
5176
5177
  ],
5177
- [16777215, to.Named.Transparent],
5178
- [4293982463, to.Named.AliceBlue],
5179
- [4294634455, to.Named.AntiqueWhite],
5180
- [4278255615, to.Named.Aqua],
5181
- [4286578644, to.Named.Aquamarine],
5182
- [4293984255, to.Named.Azure],
5183
- [4294309340, to.Named.Beige],
5184
- [4294960324, to.Named.Bisque],
5185
- [4278190080, to.Named.Black],
5186
- [4294962125, to.Named.BlanchedAlmond],
5187
- [4278190335, to.Named.Blue],
5188
- [4287245282, to.Named.BlueViolet],
5189
- [4289014314, to.Named.Brown],
5190
- [4292786311, to.Named.BurlyWood],
5191
- [4284456608, to.Named.CadetBlue],
5192
- [4286578432, to.Named.Chartreuse],
5193
- [4291979550, to.Named.Chocolate],
5194
- [4294934352, to.Named.Coral],
5195
- [4284782061, to.Named.CornflowerBlue],
5196
- [4294965468, to.Named.Cornsilk],
5197
- [4292613180, to.Named.Crimson],
5198
- [4278255615, to.Named.Cyan],
5199
- [4278190219, to.Named.DkBlue],
5200
- [4278225803, to.Named.DkCyan],
5201
- [4290283019, to.Named.DkGoldenrod],
5202
- [4289309097, to.Named.DkGray],
5203
- [4278215680, to.Named.DkGreen],
5204
- [4290623339, to.Named.DkKhaki],
5205
- [4287299723, to.Named.DkMagenta],
5206
- [4283788079, to.Named.DkOliveGreen],
5207
- [4294937600, to.Named.DkOrange],
5208
- [4288230092, to.Named.DkOrchid],
5209
- [4287299584, to.Named.DkRed],
5210
- [4293498490, to.Named.DkSalmon],
5211
- [4287609995, to.Named.DkSeaGreen],
5212
- [4282924427, to.Named.DkSlateBlue],
5213
- [4281290575, to.Named.DkSlateGray],
5214
- [4278243025, to.Named.DkTurquoise],
5215
- [4287889619, to.Named.DkViolet],
5216
- [4294907027, to.Named.DeepPink],
5217
- [4278239231, to.Named.DeepSkyBlue],
5218
- [4285098345, to.Named.DimGray],
5219
- [4280193279, to.Named.DodgerBlue],
5220
- [4289864226, to.Named.Firebrick],
5221
- [4294966e3, to.Named.FloralWhite],
5222
- [4280453922, to.Named.ForestGreen],
5223
- [4294902015, to.Named.Fuchsia],
5224
- [4292664540, to.Named.Gainsboro],
5225
- [4294506751, to.Named.GhostWhite],
5226
- [4294956800, to.Named.Gold],
5227
- [4292519200, to.Named.Goldenrod],
5228
- [4286611584, to.Named.Gray],
5229
- [4278222848, to.Named.Green],
5230
- [4289593135, to.Named.GreenYellow],
5231
- [4293984240, to.Named.Honeydew],
5232
- [4294928820, to.Named.HotPink],
5233
- [4291648604, to.Named.IndianRed],
5234
- [4283105410, to.Named.Indigo],
5235
- [4294967280, to.Named.Ivory],
5236
- [4293977740, to.Named.Khaki],
5237
- [4293322490, to.Named.Lavender],
5238
- [4294963445, to.Named.LavenderBlush],
5239
- [4286381056, to.Named.LawnGreen],
5240
- [4294965965, to.Named.LemonChiffon],
5241
- [4289583334, to.Named.LtBlue],
5242
- [4293951616, to.Named.LtCoral],
5243
- [4292935679, to.Named.LtCyan],
5244
- [4294638200, to.Named.LtGoldenrodYellow],
5245
- [4292072403, to.Named.LtGray],
5246
- [4287688336, to.Named.LtGreen],
5247
- [4294948545, to.Named.LtPink],
5248
- [4294942842, to.Named.LtSalmon],
5249
- [4280332970, to.Named.LtSeaGreen],
5250
- [4287090426, to.Named.LtSkyBlue],
5251
- [4286023833, to.Named.LtSlateGray],
5252
- [4289774814, to.Named.LtSteelBlue],
5253
- [4294967264, to.Named.LtYellow],
5254
- [4278255360, to.Named.Lime],
5255
- [4281519410, to.Named.LimeGreen],
5256
- [4294635750, to.Named.Linen],
5257
- [4294902015, to.Named.Magenta],
5258
- [4286578688, to.Named.Maroon],
5259
- [4284927402, to.Named.MedAquamarine],
5260
- [4278190285, to.Named.MedBlue],
5261
- [4290401747, to.Named.MedOrchid],
5262
- [4287852763, to.Named.MedPurple],
5263
- [4282168177, to.Named.MedSeaGreen],
5264
- [4286277870, to.Named.MedSlateBlue],
5265
- [4278254234, to.Named.MedSpringGreen],
5266
- [4282962380, to.Named.MedTurquoise],
5267
- [4291237253, to.Named.MedVioletRed],
5268
- [4279834992, to.Named.MidnightBlue],
5269
- [4294311930, to.Named.MintCream],
5270
- [4294960353, to.Named.MistyRose],
5271
- [4294960309, to.Named.Moccasin],
5272
- [4294958765, to.Named.NavajoWhite],
5273
- [4278190208, to.Named.Navy],
5274
- [4294833638, to.Named.OldLace],
5275
- [4286611456, to.Named.Olive],
5276
- [4285238819, to.Named.OliveDrab],
5277
- [4294944e3, to.Named.Orange],
5278
- [4294919424, to.Named.OrangeRed],
5279
- [4292505814, to.Named.Orchid],
5280
- [4293847210, to.Named.PaleGoldenrod],
5281
- [4288215960, to.Named.PaleGreen],
5282
- [4289720046, to.Named.PaleTurquoise],
5283
- [4292571283, to.Named.PaleVioletRed],
5284
- [4294963157, to.Named.PapayaWhip],
5285
- [4294957753, to.Named.PeachPuff],
5286
- [4291659071, to.Named.Peru],
5287
- [4294951115, to.Named.Pink],
5288
- [4292714717, to.Named.Plum],
5289
- [4289781990, to.Named.PowderBlue],
5290
- [4286578816, to.Named.Purple],
5291
- [4294901760, to.Named.Red],
5292
- [4290547599, to.Named.RosyBrown],
5293
- [4282477025, to.Named.RoyalBlue],
5294
- [4287317267, to.Named.SaddleBrown],
5295
- [4294606962, to.Named.Salmon],
5296
- [4294222944, to.Named.SandyBrown],
5297
- [4281240407, to.Named.SeaGreen],
5298
- [4294964718, to.Named.SeaShell],
5299
- [4288696877, to.Named.Sienna],
5300
- [4290822336, to.Named.Silver],
5301
- [4287090411, to.Named.SkyBlue],
5302
- [4285160141, to.Named.SlateBlue],
5303
- [4285563024, to.Named.SlateGray],
5304
- [4294966010, to.Named.Snow],
5305
- [4278255487, to.Named.SpringGreen],
5306
- [4282811060, to.Named.SteelBlue],
5307
- [4291998860, to.Named.Tan],
5308
- [4278222976, to.Named.Teal],
5309
- [4292394968, to.Named.Thistle],
5310
- [4294927175, to.Named.Tomato],
5311
- [4282441936, to.Named.Turquoise],
5312
- [4293821166, to.Named.Violet],
5313
- [4294303411, to.Named.Wheat],
5314
- [4294967295, to.Named.White],
5315
- [4294309365, to.Named.WhiteSmoke],
5316
- [4294967040, to.Named.Yellow],
5317
- [4288335154, to.Named.YellowGreen],
5318
- [4293980400, to.Named.ButtonFace],
5319
- [4294967295, to.Named.ButtonHighlight],
5320
- [4288716960, to.Named.ButtonShadow],
5321
- [4290367978, to.Named.GradientActiveCaption],
5322
- [4292338930, to.Named.GradientInactiveCaption],
5323
- [4293980400, to.Named.MenuBar],
5324
- [4281571839, to.Named.MenuHighlight],
5325
- [4286611584, to.Named.Grey]
5326
- ], bo = new class {
5178
+ [16777215, ro.Named.Transparent],
5179
+ [4293982463, ro.Named.AliceBlue],
5180
+ [4294634455, ro.Named.AntiqueWhite],
5181
+ [4278255615, ro.Named.Aqua],
5182
+ [4286578644, ro.Named.Aquamarine],
5183
+ [4293984255, ro.Named.Azure],
5184
+ [4294309340, ro.Named.Beige],
5185
+ [4294960324, ro.Named.Bisque],
5186
+ [4278190080, ro.Named.Black],
5187
+ [4294962125, ro.Named.BlanchedAlmond],
5188
+ [4278190335, ro.Named.Blue],
5189
+ [4287245282, ro.Named.BlueViolet],
5190
+ [4289014314, ro.Named.Brown],
5191
+ [4292786311, ro.Named.BurlyWood],
5192
+ [4284456608, ro.Named.CadetBlue],
5193
+ [4286578432, ro.Named.Chartreuse],
5194
+ [4291979550, ro.Named.Chocolate],
5195
+ [4294934352, ro.Named.Coral],
5196
+ [4284782061, ro.Named.CornflowerBlue],
5197
+ [4294965468, ro.Named.Cornsilk],
5198
+ [4292613180, ro.Named.Crimson],
5199
+ [4278255615, ro.Named.Cyan],
5200
+ [4278190219, ro.Named.DkBlue],
5201
+ [4278225803, ro.Named.DkCyan],
5202
+ [4290283019, ro.Named.DkGoldenrod],
5203
+ [4289309097, ro.Named.DkGray],
5204
+ [4278215680, ro.Named.DkGreen],
5205
+ [4290623339, ro.Named.DkKhaki],
5206
+ [4287299723, ro.Named.DkMagenta],
5207
+ [4283788079, ro.Named.DkOliveGreen],
5208
+ [4294937600, ro.Named.DkOrange],
5209
+ [4288230092, ro.Named.DkOrchid],
5210
+ [4287299584, ro.Named.DkRed],
5211
+ [4293498490, ro.Named.DkSalmon],
5212
+ [4287609995, ro.Named.DkSeaGreen],
5213
+ [4282924427, ro.Named.DkSlateBlue],
5214
+ [4281290575, ro.Named.DkSlateGray],
5215
+ [4278243025, ro.Named.DkTurquoise],
5216
+ [4287889619, ro.Named.DkViolet],
5217
+ [4294907027, ro.Named.DeepPink],
5218
+ [4278239231, ro.Named.DeepSkyBlue],
5219
+ [4285098345, ro.Named.DimGray],
5220
+ [4280193279, ro.Named.DodgerBlue],
5221
+ [4289864226, ro.Named.Firebrick],
5222
+ [4294966e3, ro.Named.FloralWhite],
5223
+ [4280453922, ro.Named.ForestGreen],
5224
+ [4294902015, ro.Named.Fuchsia],
5225
+ [4292664540, ro.Named.Gainsboro],
5226
+ [4294506751, ro.Named.GhostWhite],
5227
+ [4294956800, ro.Named.Gold],
5228
+ [4292519200, ro.Named.Goldenrod],
5229
+ [4286611584, ro.Named.Gray],
5230
+ [4278222848, ro.Named.Green],
5231
+ [4289593135, ro.Named.GreenYellow],
5232
+ [4293984240, ro.Named.Honeydew],
5233
+ [4294928820, ro.Named.HotPink],
5234
+ [4291648604, ro.Named.IndianRed],
5235
+ [4283105410, ro.Named.Indigo],
5236
+ [4294967280, ro.Named.Ivory],
5237
+ [4293977740, ro.Named.Khaki],
5238
+ [4293322490, ro.Named.Lavender],
5239
+ [4294963445, ro.Named.LavenderBlush],
5240
+ [4286381056, ro.Named.LawnGreen],
5241
+ [4294965965, ro.Named.LemonChiffon],
5242
+ [4289583334, ro.Named.LtBlue],
5243
+ [4293951616, ro.Named.LtCoral],
5244
+ [4292935679, ro.Named.LtCyan],
5245
+ [4294638200, ro.Named.LtGoldenrodYellow],
5246
+ [4292072403, ro.Named.LtGray],
5247
+ [4287688336, ro.Named.LtGreen],
5248
+ [4294948545, ro.Named.LtPink],
5249
+ [4294942842, ro.Named.LtSalmon],
5250
+ [4280332970, ro.Named.LtSeaGreen],
5251
+ [4287090426, ro.Named.LtSkyBlue],
5252
+ [4286023833, ro.Named.LtSlateGray],
5253
+ [4289774814, ro.Named.LtSteelBlue],
5254
+ [4294967264, ro.Named.LtYellow],
5255
+ [4278255360, ro.Named.Lime],
5256
+ [4281519410, ro.Named.LimeGreen],
5257
+ [4294635750, ro.Named.Linen],
5258
+ [4294902015, ro.Named.Magenta],
5259
+ [4286578688, ro.Named.Maroon],
5260
+ [4284927402, ro.Named.MedAquamarine],
5261
+ [4278190285, ro.Named.MedBlue],
5262
+ [4290401747, ro.Named.MedOrchid],
5263
+ [4287852763, ro.Named.MedPurple],
5264
+ [4282168177, ro.Named.MedSeaGreen],
5265
+ [4286277870, ro.Named.MedSlateBlue],
5266
+ [4278254234, ro.Named.MedSpringGreen],
5267
+ [4282962380, ro.Named.MedTurquoise],
5268
+ [4291237253, ro.Named.MedVioletRed],
5269
+ [4279834992, ro.Named.MidnightBlue],
5270
+ [4294311930, ro.Named.MintCream],
5271
+ [4294960353, ro.Named.MistyRose],
5272
+ [4294960309, ro.Named.Moccasin],
5273
+ [4294958765, ro.Named.NavajoWhite],
5274
+ [4278190208, ro.Named.Navy],
5275
+ [4294833638, ro.Named.OldLace],
5276
+ [4286611456, ro.Named.Olive],
5277
+ [4285238819, ro.Named.OliveDrab],
5278
+ [4294944e3, ro.Named.Orange],
5279
+ [4294919424, ro.Named.OrangeRed],
5280
+ [4292505814, ro.Named.Orchid],
5281
+ [4293847210, ro.Named.PaleGoldenrod],
5282
+ [4288215960, ro.Named.PaleGreen],
5283
+ [4289720046, ro.Named.PaleTurquoise],
5284
+ [4292571283, ro.Named.PaleVioletRed],
5285
+ [4294963157, ro.Named.PapayaWhip],
5286
+ [4294957753, ro.Named.PeachPuff],
5287
+ [4291659071, ro.Named.Peru],
5288
+ [4294951115, ro.Named.Pink],
5289
+ [4292714717, ro.Named.Plum],
5290
+ [4289781990, ro.Named.PowderBlue],
5291
+ [4286578816, ro.Named.Purple],
5292
+ [4294901760, ro.Named.Red],
5293
+ [4290547599, ro.Named.RosyBrown],
5294
+ [4282477025, ro.Named.RoyalBlue],
5295
+ [4287317267, ro.Named.SaddleBrown],
5296
+ [4294606962, ro.Named.Salmon],
5297
+ [4294222944, ro.Named.SandyBrown],
5298
+ [4281240407, ro.Named.SeaGreen],
5299
+ [4294964718, ro.Named.SeaShell],
5300
+ [4288696877, ro.Named.Sienna],
5301
+ [4290822336, ro.Named.Silver],
5302
+ [4287090411, ro.Named.SkyBlue],
5303
+ [4285160141, ro.Named.SlateBlue],
5304
+ [4285563024, ro.Named.SlateGray],
5305
+ [4294966010, ro.Named.Snow],
5306
+ [4278255487, ro.Named.SpringGreen],
5307
+ [4282811060, ro.Named.SteelBlue],
5308
+ [4291998860, ro.Named.Tan],
5309
+ [4278222976, ro.Named.Teal],
5310
+ [4292394968, ro.Named.Thistle],
5311
+ [4294927175, ro.Named.Tomato],
5312
+ [4282441936, ro.Named.Turquoise],
5313
+ [4293821166, ro.Named.Violet],
5314
+ [4294303411, ro.Named.Wheat],
5315
+ [4294967295, ro.Named.White],
5316
+ [4294309365, ro.Named.WhiteSmoke],
5317
+ [4294967040, ro.Named.Yellow],
5318
+ [4288335154, ro.Named.YellowGreen],
5319
+ [4293980400, ro.Named.ButtonFace],
5320
+ [4294967295, ro.Named.ButtonHighlight],
5321
+ [4288716960, ro.Named.ButtonShadow],
5322
+ [4290367978, ro.Named.GradientActiveCaption],
5323
+ [4292338930, ro.Named.GradientInactiveCaption],
5324
+ [4293980400, ro.Named.MenuBar],
5325
+ [4281571839, ro.Named.MenuHighlight],
5326
+ [4286611584, ro.Named.Grey]
5327
+ ], wo = new class {
5327
5328
  constructor() {
5328
5329
  this._lookupByName = /* @__PURE__ */ new Map();
5329
- const e = So.length;
5330
+ const e = bo.length;
5330
5331
  for (let t = 0; t < e; t++) {
5331
- const e = So[t], r = e[0], n = (r >> 24 & 255) / 255, a = r >> 16 & 255, o = r >> 8 & 255, i = 255 & r, s = {
5332
+ const e = bo[t], r = e[0], n = (r >> 24 & 255) / 255, a = r >> 16 & 255, o = r >> 8 & 255, i = 255 & r, s = {
5332
5333
  id: t,
5333
5334
  name: e[1],
5334
5335
  rgbaColor: {
@@ -5353,53 +5354,53 @@ var So = [
5353
5354
  t[n] = `#${e(a)}${e(o)}${e(i)}`;
5354
5355
  }), t;
5355
5356
  }
5356
- }(), wo = [
5357
+ }(), vo = [
5357
5358
  {
5358
- scheme: to.Scheme.Tx1,
5359
+ scheme: ro.Scheme.Tx1,
5359
5360
  description: "First Text Color"
5360
5361
  },
5361
5362
  {
5362
- scheme: to.Scheme.Tx2,
5363
+ scheme: ro.Scheme.Tx2,
5363
5364
  description: "Second Text Color"
5364
5365
  },
5365
5366
  {
5366
- scheme: to.Scheme.Bg1,
5367
+ scheme: ro.Scheme.Bg1,
5367
5368
  description: "First Background Color"
5368
5369
  },
5369
5370
  {
5370
- scheme: to.Scheme.Bg2,
5371
+ scheme: ro.Scheme.Bg2,
5371
5372
  description: "Second Background Color"
5372
5373
  },
5373
5374
  {
5374
- scheme: to.Scheme.Accent1,
5375
+ scheme: ro.Scheme.Accent1,
5375
5376
  description: "Accent 1"
5376
5377
  },
5377
5378
  {
5378
- scheme: to.Scheme.Accent2,
5379
+ scheme: ro.Scheme.Accent2,
5379
5380
  description: "Accent 2"
5380
5381
  },
5381
5382
  {
5382
- scheme: to.Scheme.Accent3,
5383
+ scheme: ro.Scheme.Accent3,
5383
5384
  description: "Accent 3"
5384
5385
  },
5385
5386
  {
5386
- scheme: to.Scheme.Accent4,
5387
+ scheme: ro.Scheme.Accent4,
5387
5388
  description: "Accent 4"
5388
5389
  },
5389
5390
  {
5390
- scheme: to.Scheme.Accent5,
5391
+ scheme: ro.Scheme.Accent5,
5391
5392
  description: "Accent 5"
5392
5393
  },
5393
5394
  {
5394
- scheme: to.Scheme.Accent6,
5395
+ scheme: ro.Scheme.Accent6,
5395
5396
  description: "Accent 6"
5396
5397
  },
5397
5398
  {
5398
- scheme: to.Scheme.Hlink,
5399
+ scheme: ro.Scheme.Hlink,
5399
5400
  description: "Hyperlink"
5400
5401
  },
5401
5402
  {
5402
- scheme: to.Scheme.FolHlink,
5403
+ scheme: ro.Scheme.FolHlink,
5403
5404
  description: "Followed Hyperlink"
5404
5405
  },
5405
5406
  {
@@ -5418,55 +5419,55 @@ var So = [
5418
5419
  scheme: "lt2",
5419
5420
  description: "Text/Background - Light 2"
5420
5421
  }
5421
- ], vo = /* @__PURE__ */ new Map();
5422
- for (let e = 0; e < wo.length; e++) vo.set(wo[e].scheme.toLowerCase(), wo[e]);
5423
- var Co = "lastclr", Mo = (e) => {
5422
+ ], Co = /* @__PURE__ */ new Map();
5423
+ for (let e = 0; e < vo.length; e++) Co.set(vo[e].scheme.toLowerCase(), vo[e]);
5424
+ var Mo = "lastclr", ko = (e) => {
5424
5425
  if (!e) return null;
5425
5426
  const t = e.replace("#", "");
5426
5427
  if (t.length < 6) return null;
5427
5428
  const r = parseInt(t.substring(0, 2), 16), n = parseInt(t.substring(2, 4), 16), a = parseInt(t.substring(4, 6), 16);
5428
5429
  return isNaN(r) || isNaN(n) || isNaN(a) ? null : new or.RGBA(r, n, a, 1);
5429
- }, ko = (e) => new or.HEX(e.red, e.green, e.blue, 1).toString(!1).replace("#", ""), To = (e) => new or.RGBA(e.rgbaColor.r, e.rgbaColor.g, e.rgbaColor.b, e.rgbaColor.a), _o = (e, t, r) => {
5430
- const n = bo.valueOfName(e);
5430
+ }, To = (e) => new or.HEX(e.red, e.green, e.blue, 1).toString(!1).replace("#", ""), _o = (e) => new or.RGBA(e.rgbaColor.r, e.rgbaColor.g, e.rgbaColor.b, e.rgbaColor.a), Do = (e, t, r) => {
5431
+ const n = wo.valueOfName(e);
5431
5432
  if (!n) return null;
5432
5433
  if (n.system) {
5433
5434
  const e = n.name;
5434
5435
  return {
5435
- rgba: (t ? t(e, !1) : null)?.toRGBA() ?? r ?? To(n),
5436
+ rgba: (t ? t(e, !1) : null)?.toRGBA() ?? r ?? _o(n),
5436
5437
  systemName: e
5437
5438
  };
5438
5439
  }
5439
5440
  return {
5440
- rgba: To(n),
5441
+ rgba: _o(n),
5441
5442
  systemName: null
5442
5443
  };
5443
- }, Do = (e) => {
5444
+ }, Ao = (e) => {
5444
5445
  if (!e) return null;
5445
5446
  const t = e.getAdjustments();
5446
5447
  if (t && t.length > 0) return null;
5447
5448
  const r = e.getType();
5448
- return r === to.Type.Auto ? to.Named.WindowText : r === to.Type.Named && Wo.isSystem(e.getVal()) ? e.getVal() : null;
5449
- }, Ao = (e) => e ? {
5449
+ return r === ro.Type.Auto ? ro.Named.WindowText : r === ro.Type.Named && Vo.isSystem(e.getVal()) ? e.getVal() : null;
5450
+ }, xo = (e) => e ? {
5450
5451
  srgb: [
5451
5452
  e.red / 255,
5452
5453
  e.green / 255,
5453
5454
  e.blue / 255
5454
5455
  ],
5455
5456
  alpha: void 0 !== e.alpha ? e.alpha : 1
5456
- } : null, xo = function(e, t, r, n, a) {
5457
- let o, i = null, s = null, l = null, u = to.Type.Named;
5457
+ } : null, Fo = function(e, t, r, n, a) {
5458
+ let o, i = null, s = null, l = null, u = ro.Type.Named;
5458
5459
  if ("auto" === e.toLowerCase()) {
5459
- const e = _o(to.Named.WindowText, n, a);
5460
- o = Ao(e.rgba), i = e.systemName, u = to.Type.Auto;
5460
+ const e = Do(ro.Named.WindowText, n, a);
5461
+ o = xo(e.rgba), i = e.systemName, u = ro.Type.Auto;
5461
5462
  } else {
5462
- const t = _o(e, n, a);
5463
- o = Ao(t?.rgba ?? null), i = t?.systemName ?? null;
5463
+ const t = Do(e, n, a);
5464
+ o = xo(t?.rgba ?? null), i = t?.systemName ?? null;
5464
5465
  }
5465
- if (null === o && ("phClr" === (d = e) && (d = "dk1"), vo.get(d.toLowerCase()))) {
5466
+ if (null === o && ("phClr" === (d = e) && (d = "dk1"), Co.get(d.toLowerCase()))) {
5466
5467
  if (!t) throw new Error("a scheme val was used but a schemeLookup was not provided");
5467
5468
  s = e;
5468
5469
  const r = t(s);
5469
- l = r.toRGBA(), o = Ao(l), i = Do(r), u = to.Type.Scheme;
5470
+ l = r.toRGBA(), o = xo(l), i = Ao(r), u = ro.Type.Scheme;
5470
5471
  }
5471
5472
  var d;
5472
5473
  if (null === o) {
@@ -5484,7 +5485,7 @@ var Co = "lastclr", Mo = (e) => {
5484
5485
  ], r = vr(parseInt(t[1], 16) / 255)), e = yr(e), e = wr(e), o = {
5485
5486
  srgb: e,
5486
5487
  alpha: r
5487
- }, u = to.Type.Hex;
5488
+ }, u = ro.Type.Hex;
5488
5489
  }
5489
5490
  }
5490
5491
  if (null === o) {
@@ -5494,7 +5495,7 @@ var Co = "lastclr", Mo = (e) => {
5494
5495
  e = yr(e), e = wr(e), o = {
5495
5496
  srgb: e,
5496
5497
  alpha: t[4] ? vr(parseFloat(t[4])) : 1
5497
- }, u = to.Type.RGB;
5498
+ }, u = ro.Type.RGB;
5498
5499
  }
5499
5500
  }
5500
5501
  if (null === o) {
@@ -5504,7 +5505,7 @@ var Co = "lastclr", Mo = (e) => {
5504
5505
  e = yr(e, 100), e = kr(e), e = wr(e), o = {
5505
5506
  srgb: e,
5506
5507
  alpha: t[4] ? vr(parseFloat(t[4])) : 1
5507
- }, u = to.Type.LRGB;
5508
+ }, u = ro.Type.LRGB;
5508
5509
  }
5509
5510
  }
5510
5511
  if (null === o) {
@@ -5514,13 +5515,13 @@ var Co = "lastclr", Mo = (e) => {
5514
5515
  e = Dr(e), e = wr(e), o = {
5515
5516
  srgb: e,
5516
5517
  alpha: t[4] ? vr(parseFloat(t[4])) : 1
5517
- }, u = to.Type.HSL;
5518
+ }, u = ro.Type.HSL;
5518
5519
  }
5519
5520
  }
5520
5521
  if (null === o) {
5521
5522
  let t = e.match(gr);
5522
5523
  if (t) {
5523
- const e = parseInt(t[1]), s = r?.(e), l = s ? null : un(e), d = s ? s.toRGBA() : l ? _o(l, n, a).rgba : dn(e);
5524
+ const e = parseInt(t[1]), s = r?.(e), l = s ? null : un(e), d = s ? s.toRGBA() : l ? Do(l, n, a).rgba : dn(e);
5524
5525
  d && (o = {
5525
5526
  srgb: [
5526
5527
  d.red / 255,
@@ -5528,7 +5529,7 @@ var Co = "lastclr", Mo = (e) => {
5528
5529
  d.blue / 255
5529
5530
  ],
5530
5531
  alpha: d.alpha
5531
- }, i = s ? Do(s) : l, u = to.Type.Index);
5532
+ }, i = s ? Ao(s) : l, u = ro.Type.Index);
5532
5533
  }
5533
5534
  }
5534
5535
  if (null === o) throw new Error("Not a valid color format: " + e);
@@ -5539,49 +5540,49 @@ var Co = "lastclr", Mo = (e) => {
5539
5540
  type: u,
5540
5541
  systemName: i
5541
5542
  };
5542
- }, Fo = (e, t) => {
5543
+ }, No = (e, t) => {
5543
5544
  let r = [...e.srgb], n = void 0 !== e.alpha ? e.alpha : 1;
5544
5545
  const a = t ? t.length : 0;
5545
5546
  for (var o = 0; o < a; o++) {
5546
5547
  const e = t[o], a = Object.keys(e)[0], i = e[a];
5547
- a === to.AdjustmentType.Alpha ? n = Math.max(0, Math.min(1, i)) : a === to.AdjustmentType.AlphaOff ? n = Math.max(0, Math.min(1, n + i)) : a === to.AdjustmentType.AlphaMod ? n = Math.max(0, Math.min(1, n * i)) : a === to.AdjustmentType.Hue ? r = Hr(Fr, r, i) : a === to.AdjustmentType.Sat ? r = Hr(Nr, r, i) : a === to.AdjustmentType.Lum ? r = Hr(Br, r, i) : a === to.AdjustmentType.HueOff ? r = Ur(Fr, r, i) : a === to.AdjustmentType.SatOff ? r = Ur(Nr, r, i) : a === to.AdjustmentType.LumOff ? r = Ur(Br, r, i) : a === to.AdjustmentType.HueMod ? r = Kr(Fr, r, i) : a === to.AdjustmentType.SatMod ? r = Kr(Nr, r, i) : a === to.AdjustmentType.LumMod ? r = Kr(Br, r, i) : a === to.AdjustmentType.Red ? r = Wr(Lr, r, i, Ir) : a === to.AdjustmentType.Green ? r = Wr(Rr, r, i, Ir) : a === to.AdjustmentType.Blue ? r = Wr(Pr, r, i, Ir) : a === to.AdjustmentType.RedOff ? r = Wr(Lr, r, i, Er) : a === to.AdjustmentType.GreenOff ? r = Wr(Rr, r, i, Er) : a === to.AdjustmentType.BlueOff ? r = Wr(Pr, r, i, Er) : a === to.AdjustmentType.RedMod ? r = Wr(Lr, r, i, jr) : a === to.AdjustmentType.GreenMod ? r = Wr(Rr, r, i, jr) : a === to.AdjustmentType.BlueMod ? r = Wr(Pr, r, i, jr) : a === to.AdjustmentType.Shade ? r = Gr(r, i) : a === to.AdjustmentType.Tint ? r = $r(r, i) : a === to.AdjustmentType.ETint ? r = zr(r, i) : a === to.AdjustmentType.Gray ? r = Vr(r) : a === to.AdjustmentType.Comp ? r = Jr(r) : a === to.AdjustmentType.Inv ? r = qr(r, i) : a === to.AdjustmentType.Gamma ? r = Yr(r) : a === to.AdjustmentType.InvGamma ? r = Xr(r) : console.warn("unknown adjustmentType: " + a);
5548
+ a === ro.AdjustmentType.Alpha ? n = Math.max(0, Math.min(1, i)) : a === ro.AdjustmentType.AlphaOff ? n = Math.max(0, Math.min(1, n + i)) : a === ro.AdjustmentType.AlphaMod ? n = Math.max(0, Math.min(1, n * i)) : a === ro.AdjustmentType.Hue ? r = Hr(Fr, r, i) : a === ro.AdjustmentType.Sat ? r = Hr(Nr, r, i) : a === ro.AdjustmentType.Lum ? r = Hr(Br, r, i) : a === ro.AdjustmentType.HueOff ? r = Ur(Fr, r, i) : a === ro.AdjustmentType.SatOff ? r = Ur(Nr, r, i) : a === ro.AdjustmentType.LumOff ? r = Ur(Br, r, i) : a === ro.AdjustmentType.HueMod ? r = Kr(Fr, r, i) : a === ro.AdjustmentType.SatMod ? r = Kr(Nr, r, i) : a === ro.AdjustmentType.LumMod ? r = Kr(Br, r, i) : a === ro.AdjustmentType.Red ? r = Wr(Lr, r, i, Ir) : a === ro.AdjustmentType.Green ? r = Wr(Rr, r, i, Ir) : a === ro.AdjustmentType.Blue ? r = Wr(Pr, r, i, Ir) : a === ro.AdjustmentType.RedOff ? r = Wr(Lr, r, i, Er) : a === ro.AdjustmentType.GreenOff ? r = Wr(Rr, r, i, Er) : a === ro.AdjustmentType.BlueOff ? r = Wr(Pr, r, i, Er) : a === ro.AdjustmentType.RedMod ? r = Wr(Lr, r, i, jr) : a === ro.AdjustmentType.GreenMod ? r = Wr(Rr, r, i, jr) : a === ro.AdjustmentType.BlueMod ? r = Wr(Pr, r, i, jr) : a === ro.AdjustmentType.Shade ? r = Gr(r, i) : a === ro.AdjustmentType.Tint ? r = $r(r, i) : a === ro.AdjustmentType.ETint ? r = zr(r, i) : a === ro.AdjustmentType.Gray ? r = Vr(r) : a === ro.AdjustmentType.Comp ? r = Jr(r) : a === ro.AdjustmentType.Inv ? r = qr(r, i) : a === ro.AdjustmentType.Gamma ? r = Yr(r) : a === ro.AdjustmentType.InvGamma ? r = Xr(r) : console.warn("unknown adjustmentType: " + a);
5548
5549
  }
5549
5550
  return {
5550
5551
  srgb: r,
5551
5552
  alpha: n
5552
5553
  };
5553
- }, No = /* @__PURE__ */ new Map(), Bo = Object.keys(to.AdjustmentType), Lo = Bo.length;
5554
- for (let e = 0; e < Lo; e++) {
5555
- const t = Bo[e];
5556
- No.set(to.AdjustmentType[t].toLowerCase(), to.AdjustmentType[t]);
5557
- }
5558
- var Ro, Po, Io, Eo, jo, Go = /* @__PURE__ */ new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"), Oo = /* @__PURE__ */ new RegExp("\\s*[,]\\s*|\\s+"), zo = null, $o = null, Ho = "--sxl-sys-color-", Uo = 0, Ko = {
5559
- [to.Scheme.Bg1]: "window",
5560
- [to.Scheme.Bg2]: "E8E8E8",
5561
- [to.Scheme.Tx1]: "windowText",
5562
- [to.Scheme.Tx2]: "0E2841",
5563
- [to.Scheme.Accent1]: "156082",
5564
- [to.Scheme.Accent2]: "E97132",
5565
- [to.Scheme.Accent3]: "196B24",
5566
- [to.Scheme.Accent4]: "0F9ED5",
5567
- [to.Scheme.Accent5]: "A02B93",
5568
- [to.Scheme.Accent6]: "4EA72E",
5569
- [to.Scheme.Hlink]: "467886",
5570
- [to.Scheme.FolHlink]: "96607D"
5571
- }, Wo = class e {
5554
+ }, Bo = /* @__PURE__ */ new Map(), Lo = Object.keys(ro.AdjustmentType), Ro = Lo.length;
5555
+ for (let e = 0; e < Ro; e++) {
5556
+ const t = Lo[e];
5557
+ Bo.set(ro.AdjustmentType[t].toLowerCase(), ro.AdjustmentType[t]);
5558
+ }
5559
+ var Po, Io, Eo, jo, Go, Oo = /* @__PURE__ */ new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"), zo = /* @__PURE__ */ new RegExp("\\s*[,]\\s*|\\s+"), $o = null, Ho = null, Uo = "--sxl-sys-color-", Ko = 0, Wo = {
5560
+ [ro.Scheme.Bg1]: "window",
5561
+ [ro.Scheme.Bg2]: "E8E8E8",
5562
+ [ro.Scheme.Tx1]: "windowText",
5563
+ [ro.Scheme.Tx2]: "0E2841",
5564
+ [ro.Scheme.Accent1]: "156082",
5565
+ [ro.Scheme.Accent2]: "E97132",
5566
+ [ro.Scheme.Accent3]: "196B24",
5567
+ [ro.Scheme.Accent4]: "0F9ED5",
5568
+ [ro.Scheme.Accent5]: "A02B93",
5569
+ [ro.Scheme.Accent6]: "4EA72E",
5570
+ [ro.Scheme.Hlink]: "467886",
5571
+ [ro.Scheme.FolHlink]: "96607D"
5572
+ }, Vo = class e {
5572
5573
  constructor(t, r, n, a = null, o) {
5573
5574
  let i = null, s = null, l = a;
5574
5575
  if (t instanceof e) i = t.getVal(), t.getAdjustments() && (s = [...t.getAdjustments()]), l = l ?? t._private.last;
5575
5576
  else if ("string" == typeof t) {
5576
5577
  const e = this._parse(t);
5577
- i = e.val, s = e.adjs, e.last && (l = Mo(e.last));
5578
+ i = e.val, s = e.adjs, e.last && (l = ko(e.last));
5578
5579
  } else if (t?.val) {
5579
5580
  i = t.val, s = t.adjs;
5580
5581
  const e = t.last;
5581
- e && (l = Mo(e));
5582
+ e && (l = ko(e));
5582
5583
  }
5583
5584
  if (!i) throw new Error("Unable to determine color value");
5584
- const u = o ?? $o;
5585
+ const u = o ?? Ho;
5585
5586
  this._private = {
5586
5587
  val: i,
5587
5588
  last: l,
@@ -5589,30 +5590,30 @@ var Ro, Po, Io, Eo, jo, Go = /* @__PURE__ */ new RegExp("\\s+\\s*(?![^()]*\\))|,
5589
5590
  schemeLookup: r,
5590
5591
  indexedLookup: n,
5591
5592
  systemLookup: o,
5592
- parsedVal: xo(i, r, n, u, l),
5593
+ parsedVal: Fo(i, r, n, u, l),
5593
5594
  adjusted: null,
5594
5595
  resolved: null,
5595
- resolvedEpoch: Uo
5596
+ resolvedEpoch: Ko
5596
5597
  };
5597
5598
  }
5598
5599
  _parse(e) {
5599
5600
  let t = null, r = e.trim();
5600
- const n = r.split(Go);
5601
+ const n = r.split(Oo);
5601
5602
  if (n && (t = n[0], r = r.substring(t.length, r.length).trim()), !t) throw new Error("no color key found");
5602
5603
  const a = [];
5603
5604
  let o = null;
5604
- const i = r.split(Oo), s = i.length;
5605
+ const i = r.split(zo), s = i.length;
5605
5606
  for (let e = 0; e < s; e++) {
5606
5607
  const t = i[e];
5607
5608
  if (!t) continue;
5608
- if (t.toLowerCase() === Co) {
5609
+ if (t.toLowerCase() === Mo) {
5609
5610
  e++, o = i[e];
5610
5611
  continue;
5611
5612
  }
5612
- const r = No.get(t.toLowerCase());
5613
+ const r = Bo.get(t.toLowerCase());
5613
5614
  if (!r) throw new Error("Invalid adjustment type:" + t);
5614
5615
  let n = null;
5615
- if (r === to.AdjustmentType.Gray || r === to.AdjustmentType.Comp || r === to.AdjustmentType.Inv || r === to.AdjustmentType.Gamma || r === to.AdjustmentType.InvGamma);
5616
+ if (r === ro.AdjustmentType.Gray || r === ro.AdjustmentType.Comp || r === ro.AdjustmentType.Inv || r === ro.AdjustmentType.Gamma || r === ro.AdjustmentType.InvGamma);
5616
5617
  else {
5617
5618
  e++;
5618
5619
  const r = i[e];
@@ -5629,11 +5630,11 @@ var Ro, Po, Io, Eo, jo, Go = /* @__PURE__ */ new RegExp("\\s+\\s*(?![^()]*\\))|,
5629
5630
  }
5630
5631
  _forceDark(e = !0) {
5631
5632
  this._resolve();
5632
- const t = this._private.parsedVal, r = this._private.systemLookup ?? $o;
5633
+ const t = this._private.parsedVal, r = this._private.systemLookup ?? Ho;
5633
5634
  if (t.systemName && r) {
5634
5635
  const n = r(t.systemName, !0);
5635
5636
  if (n) {
5636
- const t = Fo(Ao(n.toRGBA()), this._private.adjs), r = vr(t.alpha);
5637
+ const t = No(xo(n.toRGBA()), this._private.adjs), r = vr(t.alpha);
5637
5638
  if (e) {
5638
5639
  let e = br(Sr([...t.srgb]));
5639
5640
  return new or.RGBA(e[0], e[1], e[2], r);
@@ -5680,17 +5681,17 @@ var Ro, Po, Io, Eo, jo, Go = /* @__PURE__ */ new RegExp("\\s+\\s*(?![^()]*\\))|,
5680
5681
  const e = this._private.parsedVal;
5681
5682
  if (!e.key && !e.systemName) return;
5682
5683
  if (e.systemName) {
5683
- if (this._private.resolvedEpoch === Uo) return;
5684
+ if (this._private.resolvedEpoch === Ko) return;
5684
5685
  } else {
5685
5686
  const t = this._private.schemeLookup(e.key)?.toRGBA();
5686
5687
  if (t === e.color || t?.isEqual(e.color)) return;
5687
5688
  }
5688
5689
  }
5689
- const e = this._private.systemLookup ?? $o, t = xo(this._private.val, this._private.schemeLookup, this._private.indexedLookup, e, this._private.last);
5690
- let r = t.srgbAlpha, n = Fo(r, this._private.adjs), a = Sr(n.srgb);
5690
+ const e = this._private.systemLookup ?? Ho, t = Fo(this._private.val, this._private.schemeLookup, this._private.indexedLookup, e, this._private.last);
5691
+ let r = t.srgbAlpha, n = No(r, this._private.adjs), a = Sr(n.srgb);
5691
5692
  a = br(a);
5692
5693
  let o = vr(n.alpha);
5693
- this._private.adjusted = n, this._private.parsedVal = t, this._private.resolved = new or.RGBA(a[0], a[1], a[2], o), this._private.resolvedEpoch = Uo;
5694
+ this._private.adjusted = n, this._private.parsedVal = t, this._private.resolved = new or.RGBA(a[0], a[1], a[2], o), this._private.resolvedEpoch = Ko;
5694
5695
  }
5695
5696
  static parse(t, r, n, a = null, o) {
5696
5697
  if (t instanceof e) return t;
@@ -5698,24 +5699,24 @@ var Ro, Po, Io, Eo, jo, Go = /* @__PURE__ */ new RegExp("\\s+\\s*(?![^()]*\\))|,
5698
5699
  let s = null, l = i?.trim(), u = null;
5699
5700
  try {
5700
5701
  if (!s) {
5701
- const e = l?.split(Go);
5702
+ const e = l?.split(Oo);
5702
5703
  e && (s = e[0], l = l.substring(s.length, l.length).trim());
5703
5704
  }
5704
5705
  if (!s) throw new Error("no color found");
5705
5706
  const t = [];
5706
5707
  let i = null;
5707
- const d = l.split(Oo), c = d.length;
5708
+ const d = l.split(zo), c = d.length;
5708
5709
  for (let e = 0; e < c; e++) {
5709
5710
  const r = d[e];
5710
5711
  if (!r) continue;
5711
- if (r.toLowerCase() === Co) {
5712
+ if (r.toLowerCase() === Mo) {
5712
5713
  e++, i = d[e];
5713
5714
  continue;
5714
5715
  }
5715
- const n = No.get(r.toLowerCase());
5716
+ const n = Bo.get(r.toLowerCase());
5716
5717
  if (!n) throw new Error("Invalid adjustment type:" + r);
5717
5718
  let a = null;
5718
- if (n === to.AdjustmentType.Gray || n === to.AdjustmentType.Comp || n === to.AdjustmentType.Inv || n === to.AdjustmentType.Gamma || n === to.AdjustmentType.InvGamma);
5719
+ if (n === ro.AdjustmentType.Gray || n === ro.AdjustmentType.Comp || n === ro.AdjustmentType.Inv || n === ro.AdjustmentType.Gamma || n === ro.AdjustmentType.InvGamma);
5719
5720
  else {
5720
5721
  e++;
5721
5722
  const t = d[e];
@@ -5735,34 +5736,34 @@ var Ro, Po, Io, Eo, jo, Go = /* @__PURE__ */ new RegExp("\\s+\\s*(?![^()]*\\))|,
5735
5736
  return u;
5736
5737
  }
5737
5738
  static isSystem(e) {
5738
- return !!e && !0 === bo.valueOfName(e)?.system;
5739
+ return !!e && !0 === wo.valueOfName(e)?.system;
5739
5740
  }
5740
5741
  static getDefaultSystemLookup() {
5741
- return $o;
5742
+ return Ho;
5742
5743
  }
5743
5744
  static setDefaultSystemLookup(e) {
5744
- const t = $o;
5745
- return $o = e ?? null, Uo++, t;
5745
+ const t = Ho;
5746
+ return Ho = e ?? null, Ko++, t;
5746
5747
  }
5747
5748
  static getSystemEpoch() {
5748
- return Uo;
5749
+ return Ko;
5749
5750
  }
5750
5751
  static invalidateSystemColors() {
5751
- Uo++;
5752
+ Ko++;
5752
5753
  }
5753
5754
  static getSystemColorDefaults() {
5754
- return bo.getSystemColorDefaults();
5755
+ return wo.getSystemColorDefaults();
5755
5756
  }
5756
5757
  static getDefaultSchemeLookup() {
5757
- if (!zo) {
5758
- const t = /* @__PURE__ */ new Map(), r = Object.keys(Ko), n = r.length;
5758
+ if (!$o) {
5759
+ const t = /* @__PURE__ */ new Map(), r = Object.keys(Wo), n = r.length;
5759
5760
  for (let a = 0; a < n; a++) {
5760
5761
  const n = r[a];
5761
- t.set(n.toLowerCase(), e.parse(Ko[n], null));
5762
+ t.set(n.toLowerCase(), e.parse(Wo[n], null));
5762
5763
  }
5763
- zo = (e) => t.get(e.toLowerCase());
5764
+ $o = (e) => t.get(e.toLowerCase());
5764
5765
  }
5765
- return zo;
5766
+ return $o;
5766
5767
  }
5767
5768
  isEqual(t) {
5768
5769
  return t instanceof e && this.toString().toLowerCase() === t.toString().toLowerCase();
@@ -5780,7 +5781,7 @@ var Ro, Po, Io, Eo, jo, Go = /* @__PURE__ */ new RegExp("\\s+\\s*(?![^()]*\\))|,
5780
5781
  }, this._private.schemeLookup, this._private.indexedLookup, this._private.last, this._private.systemLookup);
5781
5782
  }
5782
5783
  getLastColor() {
5783
- return this._private.last && this._private.parsedVal.systemName ? ko(this._private.last) : null;
5784
+ return this._private.last && this._private.parsedVal.systemName ? To(this._private.last) : null;
5784
5785
  }
5785
5786
  getType() {
5786
5787
  return this._resolve(), this._private.parsedVal.type ?? null;
@@ -5796,7 +5797,7 @@ var Ro, Po, Io, Eo, jo, Go = /* @__PURE__ */ new RegExp("\\s+\\s*(?![^()]*\\))|,
5796
5797
  const t = this._private.parsedVal;
5797
5798
  if (!t.systemName) return null;
5798
5799
  if (this._private.adjs && this._private.adjs.length > 0) return null;
5799
- const r = t.systemName.toLowerCase(), n = _o(t.systemName, null, this._private.last).rgba, a = "#" + ko(n), o = `${Ho}${r}`;
5800
+ const r = t.systemName.toLowerCase(), n = Do(t.systemName, null, this._private.last).rgba, a = "#" + To(n), o = `${Uo}${r}`;
5800
5801
  return e ? `var(${o}-dark, var(${o}, ${a}))` : `var(${o}, ${a})`;
5801
5802
  }
5802
5803
  toCSS(e = !1, t = !1) {
@@ -5847,7 +5848,7 @@ var Ro, Po, Io, Eo, jo, Go = /* @__PURE__ */ new RegExp("\\s+\\s*(?![^()]*\\))|,
5847
5848
  return !0;
5848
5849
  }
5849
5850
  };
5850
- (Po = Ro || (Ro = {})).Type = {
5851
+ (Io = Po || (Po = {})).Type = {
5851
5852
  None: "none",
5852
5853
  Solid: "solid",
5853
5854
  Gradient: "gradient",
@@ -5856,17 +5857,17 @@ var Ro, Po, Io, Eo, jo, Go = /* @__PURE__ */ new RegExp("\\s+\\s*(?![^()]*\\))|,
5856
5857
  Background: "background",
5857
5858
  Group: "group",
5858
5859
  Custom: "custom"
5859
- }, Po.GradientType = {
5860
+ }, Io.GradientType = {
5860
5861
  Linear: "linear",
5861
5862
  Path: "path",
5862
5863
  Rect: "rect",
5863
5864
  Shape: "shape"
5864
- }, Po.TileFlip = {
5865
+ }, Io.TileFlip = {
5865
5866
  None: "none",
5866
5867
  Horizontal: "x",
5867
5868
  Vertical: "y",
5868
5869
  Both: "xy"
5869
- }, Po.BuiltInSheetPattern = {
5870
+ }, Io.BuiltInSheetPattern = {
5870
5871
  None: "none",
5871
5872
  Solid: "solid",
5872
5873
  DarkGray: "darkGray",
@@ -5980,7 +5981,7 @@ var Ro, Po, Io, Eo, jo, Go = /* @__PURE__ */ new RegExp("\\s+\\s*(?![^()]*\\))|,
5980
5981
  const t = e ? r[e] : null;
5981
5982
  return t ? [...t] : null;
5982
5983
  };
5983
- }(Io || (Io = {})), (Eo || (Eo = {})).Type = {
5984
+ }(Eo || (Eo = {})), (jo || (jo = {})).Type = {
5984
5985
  OuterShadow: "outerShadow",
5985
5986
  InnerShadow: "innerShadow",
5986
5987
  PresetShadow: "presetShadow",
@@ -6069,82 +6070,82 @@ var Ro, Po, Io, Eo, jo, Go = /* @__PURE__ */ new RegExp("\\s+\\s*(?![^()]*\\))|,
6069
6070
  Boxes5: "5Boxes",
6070
6071
  NoIcons: "NoIcons"
6071
6072
  };
6072
- }(jo || (jo = {}));
6073
- var Vo = {
6074
- type: Ro.Type.Solid,
6073
+ }(Go || (Go = {}));
6074
+ var Jo = {
6075
+ type: Po.Type.Solid,
6075
6076
  color: "phClr"
6076
- }, Jo = (e) => ({
6077
- type: Ro.Type.Gradient,
6077
+ }, qo = (e) => ({
6078
+ type: Po.Type.Gradient,
6078
6079
  isRotatedWithShape: !0,
6079
- gradientType: Ro.GradientType.Linear,
6080
+ gradientType: Po.GradientType.Linear,
6080
6081
  angle: 180,
6081
6082
  scaled: !1,
6082
6083
  stops: e.map(([e, t]) => ({
6083
6084
  offset: e,
6084
6085
  color: t
6085
6086
  }))
6086
- }), qo = (e) => ({
6087
- align: Io.Align.Center,
6088
- lineCap: Io.LineCap.Butt,
6089
- compound: Io.Compound.Single,
6087
+ }), Yo = (e) => ({
6088
+ align: Eo.Align.Center,
6089
+ lineCap: Eo.LineCap.Butt,
6090
+ compound: Eo.Compound.Single,
6090
6091
  width: e,
6091
- lineJoin: Io.LineJoin.Miter,
6092
+ lineJoin: Eo.LineJoin.Miter,
6092
6093
  miterLimit: 8,
6093
- dash: Io.DashStyle.Solid,
6094
- fill: Vo
6095
- }), Yo = {
6096
- type: Eo.Type.OuterShadow,
6094
+ dash: Eo.DashStyle.Solid,
6095
+ fill: Jo
6096
+ }), Xo = {
6097
+ type: jo.Type.OuterShadow,
6097
6098
  color: "000000 alpha 0.63",
6098
6099
  distance: 1.5,
6099
6100
  angle: 90,
6100
6101
  blur: 4.5,
6101
6102
  alignment: "ctr",
6102
6103
  isRotatedWithShape: !1
6103
- }, Xo = Object.freeze({
6104
+ }, Zo = Object.freeze({
6104
6105
  fillStyleLst: [
6105
- Vo,
6106
- Jo([
6106
+ Jo,
6107
+ qo([
6107
6108
  [0, "phClr lumMod 110 satMod 105 tint 67"],
6108
6109
  [.5, "phClr lumMod 105 satMod 103 tint 73"],
6109
6110
  [1, "phClr lumMod 105 satMod 109 tint 81"]
6110
6111
  ]),
6111
- Jo([
6112
+ qo([
6112
6113
  [0, "phClr satMod 103 lumMod 102 tint 94"],
6113
6114
  [.5, "phClr satMod 110 lumMod 100 shade 100"],
6114
6115
  [1, "phClr lumMod 99 satMod 120 shade 78"]
6115
6116
  ])
6116
6117
  ],
6117
6118
  lnStyleLst: [
6118
- qo(.5),
6119
- qo(1),
6120
- qo(1.5)
6119
+ Yo(.5),
6120
+ Yo(1),
6121
+ Yo(1.5)
6121
6122
  ],
6122
6123
  effectStyleLst: [
6123
6124
  [],
6124
6125
  [],
6125
- [Yo]
6126
+ [Xo]
6126
6127
  ],
6127
6128
  bgFillStyleLst: [
6128
- Vo,
6129
+ Jo,
6129
6130
  {
6130
- type: Ro.Type.Solid,
6131
+ type: Po.Type.Solid,
6131
6132
  color: "phClr tint 95 satMod 170"
6132
6133
  },
6133
- Jo([
6134
+ qo([
6134
6135
  [0, "phClr tint 93 satMod 150 shade 98 lumMod 102"],
6135
6136
  [.5, "phClr tint 98 satMod 130 shade 90 lumMod 103"],
6136
6137
  [1, "phClr shade 63 satMod 120"]
6137
6138
  ])
6138
6139
  ]
6139
6140
  });
6140
- function Zo(e) {
6141
+ function Qo(e) {
6141
6142
  let t = parseFloat(e);
6142
6143
  return isNaN(t) || (t %= 360, t > 0 ? t = 360 - t : t < 0 && (t *= -1)), t;
6143
6144
  }
6144
- function Qo(e) {
6145
+ function ei(e) {
6145
6146
  return (e %= 360) < 0 && (e += 360), e > 180 ? e = 360 - e : e > 1 && (e *= -1), e;
6146
6147
  }
6147
- function ei(e) {
6148
+ function ti(e) {
6148
6149
  if ("string" != typeof e) return null;
6149
6150
  let t = u(e);
6150
6151
  Array.isArray(t) && 0 === t.length && (t = null), t = t ? { "font-family": t } : l(e);
@@ -6160,47 +6161,47 @@ function ei(e) {
6160
6161
  size: a
6161
6162
  };
6162
6163
  }
6163
- function ti(e, t = !1) {
6164
+ function ri(e, t = !1) {
6164
6165
  return "adaptive" === t ? e?.toCSS("adaptive") ?? null : function(e, t = !1) {
6165
6166
  return e?.toHex(t)?.toString(!1).toLowerCase() ?? null;
6166
6167
  }(e, t);
6167
6168
  }
6168
- function ri(e) {
6169
+ function ni(e) {
6169
6170
  return null == e ? null : r.roundAccurately(e, 2) + "pt";
6170
6171
  }
6171
- function ni(e, t) {
6172
+ function ai(e, t) {
6172
6173
  let r = "";
6173
6174
  const n = !0 === t || !!t && t !== W.StrikeStyle.None, a = e && e !== W.UnderlineStyle.None;
6174
6175
  return n && (r += "line-through"), a && n && (r += " "), a && (r += "underline", !0 !== e && e !== W.UnderlineStyle.Single && e !== W.UnderlineStyle.SingleAccounting || (r += " solid"), e !== W.UnderlineStyle.Double && e !== W.UnderlineStyle.DoubleAccounting || (r += " double")), r;
6175
6176
  }
6176
- function ai(e) {
6177
+ function oi(e) {
6177
6178
  return e === W.UnderlineStyle.Single ? "single" : e === W.UnderlineStyle.Double ? "double" : e === W.UnderlineStyle.SingleAccounting ? "single-accounting" : e === W.UnderlineStyle.DoubleAccounting ? "double-accounting" : "none";
6178
6179
  }
6179
- var oi = Object.freeze({
6180
+ var ii = Object.freeze({
6180
6181
  underline: W.UnderlineStyle.None,
6181
6182
  strike: !1
6182
6183
  });
6183
- function ii(e) {
6184
- if (!e) return oi;
6184
+ function si(e) {
6185
+ if (!e) return ii;
6185
6186
  let t = W.UnderlineStyle.None, r = !1;
6186
6187
  return (e = e.toLowerCase()).includes("underline") && (t = W.UnderlineStyle.Single), (e.includes("line-through") || e.includes("linethrough")) && (r = !0), {
6187
6188
  underline: t,
6188
6189
  strike: r
6189
6190
  };
6190
6191
  }
6191
- function si(e) {
6192
+ function li(e) {
6192
6193
  return e ? "single" === (e = e.toLowerCase()) ? W.UnderlineStyle.Single : "double" === e ? W.UnderlineStyle.Double : "single-accounting" === e || "singleaccounting" === e ? W.UnderlineStyle.SingleAccounting : "double-accounting" === e || "doubleaccounting" === e ? W.UnderlineStyle.DoubleAccounting : W.UnderlineStyle.None : W.UnderlineStyle.None;
6193
6194
  }
6194
- function li(e) {
6195
+ function ui(e) {
6195
6196
  return e ? e.toLowerCase() : null;
6196
6197
  }
6197
- function ui(e) {
6198
+ function di(e) {
6198
6199
  return e ? e === d.Overflow.Visible || e === d.Overflow.Clip || e === d.Overflow.Shrink ? "nowrap" : e === d.Overflow.Wrap ? "normal" : void 0 : null;
6199
6200
  }
6200
- function di(e, t) {
6201
+ function ci(e, t) {
6201
6202
  return W.toCSSFontFamily(e, t);
6202
6203
  }
6203
- function ci(e) {
6204
+ function mi(e) {
6204
6205
  let t = "", r = !1, n = "";
6205
6206
  for (let a = 0; a < e.length; a++) {
6206
6207
  const o = e.charAt(a);
@@ -6220,28 +6221,28 @@ function ci(e) {
6220
6221
  }
6221
6222
  return "\"" + t + "\"";
6222
6223
  }
6223
- function mi(e) {
6224
+ function hi(e) {
6224
6225
  let t = e.replace(/(\\[0-9]{4})/g, (e) => String.fromCharCode(parseInt(e.replace(/\\/g, ""), 16)));
6225
6226
  return t = t.replace(/(\\.{1})/g, (e) => e.substring(e.length - 1, e.length)), t.includes("\\") && (t = t.replace(/(\\.{1})/g, (e) => e.substring(e.length - 1, e.length))), t = t.replace(/^"(.*)"$/, "$1"), t;
6226
6227
  }
6227
- var hi = "Thin", pi = "Hairline", gi = "Extra Light", fi = "Ultra Light", yi = "Light", Si = "Normal", bi = "Regular", wi = "Medium", vi = "Semi Bold", Ci = "Demi Bold", Mi = "Bold", ki = "Extra Bold", Ti = "Ultra Bold", _i = "Black", Di = "Heavy", Ai = "Extra Black", xi = "Ultra Black", Fi = "lighter", Ni = "normal", Bi = "bold", Li = "bolder", Ri = /* @__PURE__ */ new Map();
6228
- function Pi(e) {
6228
+ var pi = "Thin", gi = "Hairline", fi = "Extra Light", yi = "Ultra Light", Si = "Light", bi = "Normal", wi = "Regular", vi = "Medium", Ci = "Semi Bold", Mi = "Demi Bold", ki = "Bold", Ti = "Extra Bold", _i = "Ultra Bold", Di = "Black", Ai = "Heavy", xi = "Extra Black", Fi = "Ultra Black", Ni = "lighter", Bi = "normal", Li = "bold", Ri = "bolder", Pi = /* @__PURE__ */ new Map();
6229
+ function Ii(e) {
6229
6230
  let t = 400;
6230
6231
  if (t = "number" == typeof e ? e : parseFloat(e), !isNaN(t)) return t;
6231
6232
  if ("string" == typeof e) {
6232
- const t = r.textToKey(e), n = Ri.get(t);
6233
+ const t = r.textToKey(e), n = Pi.get(t);
6233
6234
  if (n) return n;
6234
6235
  }
6235
6236
  return t;
6236
6237
  }
6237
- Ri.set(r.textToKey(hi), 100), Ri.set(r.textToKey(pi), 100), Ri.set(r.textToKey(gi), 200), Ri.set(r.textToKey(fi), 200), Ri.set(r.textToKey(yi), 300), Ri.set(r.textToKey(Si), 400), Ri.set(r.textToKey(bi), 400), Ri.set(r.textToKey(wi), 500), Ri.set(r.textToKey(vi), 600), Ri.set(r.textToKey(Ci), 600), Ri.set(r.textToKey(Si), 400), Ri.set(r.textToKey(Mi), 700), Ri.set(r.textToKey(ki), 800), Ri.set(r.textToKey(Ti), 800), Ri.set(r.textToKey(_i), 900), Ri.set(r.textToKey(Di), 900), Ri.set(r.textToKey(Ai), 950), Ri.set(r.textToKey(xi), 950), Ri.set(r.textToKey(Fi), 100), Ri.set(r.textToKey(Ni), 400), Ri.set(r.textToKey(Bi), 700), Ri.set(r.textToKey(Li), 700);
6238
- var Ii = "xx-small", Ei = "x-small", ji = "small", Gi = "medium", Oi = "large", zi = "x-large", $i = "xx-large", Hi = "xxx-large", Ui = "smaller", Ki = "larger", Wi = "math", Vi = /* @__PURE__ */ new RegExp("^[0-9]*[.]?[0-9]+$", "g"), Ji = /* @__PURE__ */ new Map();
6239
- function qi(e, t = 11, n = "pt") {
6238
+ Pi.set(r.textToKey(pi), 100), Pi.set(r.textToKey(gi), 100), Pi.set(r.textToKey(fi), 200), Pi.set(r.textToKey(yi), 200), Pi.set(r.textToKey(Si), 300), Pi.set(r.textToKey(bi), 400), Pi.set(r.textToKey(wi), 400), Pi.set(r.textToKey(vi), 500), Pi.set(r.textToKey(Ci), 600), Pi.set(r.textToKey(Mi), 600), Pi.set(r.textToKey(bi), 400), Pi.set(r.textToKey(ki), 700), Pi.set(r.textToKey(Ti), 800), Pi.set(r.textToKey(_i), 800), Pi.set(r.textToKey(Di), 900), Pi.set(r.textToKey(Ai), 900), Pi.set(r.textToKey(xi), 950), Pi.set(r.textToKey(Fi), 950), Pi.set(r.textToKey(Ni), 100), Pi.set(r.textToKey(Bi), 400), Pi.set(r.textToKey(Li), 700), Pi.set(r.textToKey(Ri), 700);
6239
+ var Ei = "xx-small", ji = "x-small", Gi = "small", Oi = "medium", zi = "large", $i = "x-large", Hi = "xx-large", Ui = "xxx-large", Ki = "smaller", Wi = "larger", Vi = "math", Ji = /* @__PURE__ */ new RegExp("^[0-9]*[.]?[0-9]+$", "g"), qi = /* @__PURE__ */ new Map();
6240
+ function Yi(e, t = 11, n = "pt") {
6240
6241
  if (!e) return null;
6241
6242
  let a = t;
6242
6243
  e = e.trim().toLowerCase();
6243
6244
  const o = "pt" === n ? W.getDeviceScale() : 1, i = "pt" === n ? 1 : W.getDeviceScale();
6244
- if (Vi.test(e)) {
6245
+ if (Ji.test(e)) {
6245
6246
  const t = parseFloat(e);
6246
6247
  isNaN(t) || (e = t + n);
6247
6248
  }
@@ -6251,81 +6252,81 @@ function qi(e, t = 11, n = "pt") {
6251
6252
  else if (e.endsWith("rem")) a = parseFloat(e.substring(0, e.length - 3).trim()) * t;
6252
6253
  else if (e.endsWith("%")) a = parseFloat(e.substring(0, e.length - 1).trim()) / 100 * t;
6253
6254
  else if ("string" == typeof e) {
6254
- const n = r.textToKey(e), a = Ji.get(n);
6255
+ const n = r.textToKey(e), a = qi.get(n);
6255
6256
  if (a) return a(t);
6256
6257
  }
6257
6258
  return isNaN(a) ? null : a;
6258
6259
  }
6259
- Ji.set(r.textToKey(Ii), (e) => .4 * e), Ji.set(r.textToKey(Ei), (e) => .5 * e), Ji.set(r.textToKey(ji), (e) => .6 * e), Ji.set(r.textToKey(Gi), (e) => e), Ji.set(r.textToKey(Oi), (e) => 1.1 * e), Ji.set(r.textToKey(zi), (e) => 1.25 * e), Ji.set(r.textToKey($i), (e) => 1.5 * e), Ji.set(r.textToKey(Hi), (e) => 2 * e), Ji.set(r.textToKey(Ui), (e) => .9 * e), Ji.set(r.textToKey(Ki), (e) => 1.1 * e), Ji.set(r.textToKey(Wi), (e) => e);
6260
- var Yi = /* @__PURE__ */ new Map();
6261
- Yi.set(Ro.BuiltInSheetPattern.None, {
6260
+ qi.set(r.textToKey(Ei), (e) => .4 * e), qi.set(r.textToKey(ji), (e) => .5 * e), qi.set(r.textToKey(Gi), (e) => .6 * e), qi.set(r.textToKey(Oi), (e) => e), qi.set(r.textToKey(zi), (e) => 1.1 * e), qi.set(r.textToKey($i), (e) => 1.25 * e), qi.set(r.textToKey(Hi), (e) => 1.5 * e), qi.set(r.textToKey(Ui), (e) => 2 * e), qi.set(r.textToKey(Ki), (e) => .9 * e), qi.set(r.textToKey(Wi), (e) => 1.1 * e), qi.set(r.textToKey(Vi), (e) => e);
6261
+ var Xi = /* @__PURE__ */ new Map();
6262
+ Xi.set(Po.BuiltInSheetPattern.None, {
6262
6263
  description: "None",
6263
6264
  cssKey: "none"
6264
- }), Yi.set(Ro.BuiltInSheetPattern.Solid, {
6265
+ }), Xi.set(Po.BuiltInSheetPattern.Solid, {
6265
6266
  description: "Solid",
6266
6267
  cssKey: "solid"
6267
- }), Yi.set(Ro.BuiltInSheetPattern.DarkGray, {
6268
+ }), Xi.set(Po.BuiltInSheetPattern.DarkGray, {
6268
6269
  description: "75% gray",
6269
6270
  cssKey: "gray-75"
6270
- }), Yi.set(Ro.BuiltInSheetPattern.MediumGray, {
6271
+ }), Xi.set(Po.BuiltInSheetPattern.MediumGray, {
6271
6272
  description: "50% gray",
6272
6273
  cssKey: "gray-50"
6273
- }), Yi.set(Ro.BuiltInSheetPattern.LightGray, {
6274
+ }), Xi.set(Po.BuiltInSheetPattern.LightGray, {
6274
6275
  description: "25% gray",
6275
6276
  cssKey: "gray-25"
6276
- }), Yi.set(Ro.BuiltInSheetPattern.Gray125, {
6277
+ }), Xi.set(Po.BuiltInSheetPattern.Gray125, {
6277
6278
  description: "12.5% Gray",
6278
6279
  cssKey: "gray-125"
6279
- }), Yi.set(Ro.BuiltInSheetPattern.Gray0625, {
6280
+ }), Xi.set(Po.BuiltInSheetPattern.Gray0625, {
6280
6281
  description: "6.25% Gray",
6281
6282
  cssKey: "gray-0625"
6282
- }), Yi.set(Ro.BuiltInSheetPattern.DarkHorizontal, {
6283
+ }), Xi.set(Po.BuiltInSheetPattern.DarkHorizontal, {
6283
6284
  description: "Horizontal Strip",
6284
6285
  cssKey: "horz-stripe"
6285
- }), Yi.set(Ro.BuiltInSheetPattern.DarkVertical, {
6286
+ }), Xi.set(Po.BuiltInSheetPattern.DarkVertical, {
6286
6287
  description: "Vertical Strip",
6287
6288
  cssKey: "vert-stripe"
6288
- }), Yi.set(Ro.BuiltInSheetPattern.DarkDown, {
6289
+ }), Xi.set(Po.BuiltInSheetPattern.DarkDown, {
6289
6290
  description: "Reverse Diagonal Stripe",
6290
6291
  cssKey: "reverse-diag-stripe"
6291
- }), Yi.set(Ro.BuiltInSheetPattern.DarkUp, {
6292
+ }), Xi.set(Po.BuiltInSheetPattern.DarkUp, {
6292
6293
  description: "Diagonal Strip",
6293
6294
  cssKey: "diag-stripe"
6294
- }), Yi.set(Ro.BuiltInSheetPattern.DarkGrid, {
6295
+ }), Xi.set(Po.BuiltInSheetPattern.DarkGrid, {
6295
6296
  description: "Diagonal Crosshatch",
6296
6297
  cssKey: "diag-cross"
6297
- }), Yi.set(Ro.BuiltInSheetPattern.DarkTrellis, {
6298
+ }), Xi.set(Po.BuiltInSheetPattern.DarkTrellis, {
6298
6299
  description: "Thick Diagonal Crosshatch",
6299
6300
  cssKey: "thick-diag-cross"
6300
- }), Yi.set(Ro.BuiltInSheetPattern.LightHorizontal, {
6301
+ }), Xi.set(Po.BuiltInSheetPattern.LightHorizontal, {
6301
6302
  description: "Thin Horizontal Stripe",
6302
6303
  cssKey: "thin-horz-stripe"
6303
- }), Yi.set(Ro.BuiltInSheetPattern.LightVertical, {
6304
+ }), Xi.set(Po.BuiltInSheetPattern.LightVertical, {
6304
6305
  description: "Thin Vertical Stripe",
6305
6306
  cssKey: "thin-vert-stripe"
6306
- }), Yi.set(Ro.BuiltInSheetPattern.LightDown, {
6307
+ }), Xi.set(Po.BuiltInSheetPattern.LightDown, {
6307
6308
  description: "Thin Reverse Diagonal Stripe",
6308
6309
  cssKey: "thin-reverse-diag-stripe"
6309
- }), Yi.set(Ro.BuiltInSheetPattern.LightUp, {
6310
+ }), Xi.set(Po.BuiltInSheetPattern.LightUp, {
6310
6311
  description: "Thin Diagonal Stripe",
6311
6312
  cssKey: "thin-diag-stripe"
6312
- }), Yi.set(Ro.BuiltInSheetPattern.LightGrid, {
6313
+ }), Xi.set(Po.BuiltInSheetPattern.LightGrid, {
6313
6314
  description: "Thin Horizontal Cross",
6314
6315
  cssKey: "thin-horz-cross"
6315
- }), Yi.set(Ro.BuiltInSheetPattern.LightTrellis, {
6316
+ }), Xi.set(Po.BuiltInSheetPattern.LightTrellis, {
6316
6317
  description: "Thin Diagonal Cross",
6317
6318
  cssKey: "thin-diag-cross"
6318
6319
  });
6319
- var Xi = "", Zi = /* @__PURE__ */ new Map();
6320
- Yi.forEach((e, t) => {
6321
- Xi.length > 0 && (Xi += "|"), Xi += "\\b" + e.cssKey + "\\b", Zi.set(e.cssKey, t);
6320
+ var Zi = "", Qi = /* @__PURE__ */ new Map();
6321
+ Xi.forEach((e, t) => {
6322
+ Zi.length > 0 && (Zi += "|"), Zi += "\\b" + e.cssKey + "\\b", Qi.set(e.cssKey, t);
6322
6323
  });
6323
- var Qi = new RegExp(`(\\s*(?:${Xi}))`, "g");
6324
- function es(e) {
6324
+ var es = new RegExp(`(\\s*(?:${Zi}))`, "g");
6325
+ function ts(e) {
6325
6326
  if (!e) return null;
6326
6327
  let t = e.toLowerCase();
6327
6328
  t = t.replace(/;/, "");
6328
- let r = t.match(Qi);
6329
+ let r = t.match(es);
6329
6330
  if (!r) return null;
6330
6331
  let n = null;
6331
6332
  r && r.length > 0 && (n = ((e) => {
@@ -6335,22 +6336,22 @@ function es(e) {
6335
6336
  })(r[0])), t = t.trim();
6336
6337
  const a = t ? t.trim() : null;
6337
6338
  return n || a ? {
6338
- patternType: Zi.get(n ?? "solid"),
6339
+ patternType: Qi.get(n ?? "solid"),
6339
6340
  foreground: a
6340
6341
  } : null;
6341
6342
  }
6342
- var ts = (e, t = !1, r = null) => {
6343
+ var rs = (e, t = !1, r = null) => {
6343
6344
  if (!e) return null;
6344
6345
  const n = e.getStops();
6345
6346
  if (!n || n.length < 1) return null;
6346
6347
  const a = n.length;
6347
- if (1 === a) return ti(n[0].getColor(), t);
6348
+ if (1 === a) return ri(n[0].getColor(), t);
6348
6349
  let o = "";
6349
6350
  for (let e = 0; e < a; e++) {
6350
6351
  const r = n[e], i = r.getOffset(), s = void 0 !== i ? 100 * i : e / (a - 1) * 100;
6351
- o += `${ti(r.getColor(), t)} ${s}%${e < a - 1 ? ", " : ""}`;
6352
+ o += `${ri(r.getColor(), t)} ${s}%${e < a - 1 ? ", " : ""}`;
6352
6353
  }
6353
- if (e.getGradientType() === Ro.GradientType.Linear) {
6354
+ if (e.getGradientType() === Po.GradientType.Linear) {
6354
6355
  let t = e.getAngle() ?? 0;
6355
6356
  if (r && r.width > 0 && r.height > 0 && t % 90 != 0) {
6356
6357
  const e = r.width, n = r.height, a = (90 - t) * (Math.PI / 180), o = Math.cos(a) * n, i = Math.sin(a) * e;
@@ -6358,23 +6359,23 @@ var ts = (e, t = !1, r = null) => {
6358
6359
  }
6359
6360
  return `linear-gradient(${t}deg, ${o})`;
6360
6361
  }
6361
- if (e.getGradientType() === Ro.GradientType.Path || e.getGradientType() === Ro.GradientType.Rect || e.getGradientType() === Ro.GradientType.Shape) return function(e, t, r) {
6362
- const n = t ?? Ps, a = rs(n.left ?? 0), o = rs(n.right ?? 0), i = rs(n.top ?? 0), s = rs(n.bottom ?? 0);
6362
+ if (e.getGradientType() === Po.GradientType.Path || e.getGradientType() === Po.GradientType.Rect || e.getGradientType() === Po.GradientType.Shape) return function(e, t, r) {
6363
+ const n = t ?? Is, a = ns(n.left ?? 0), o = ns(n.right ?? 0), i = ns(n.top ?? 0), s = ns(n.bottom ?? 0);
6363
6364
  if (a > o || i > s) return null;
6364
6365
  const l = (a + o) / 2, u = (i + s) / 2, d = (100 * l).toFixed(3), c = (100 * u).toFixed(3);
6365
6366
  if (!r || r.width <= 0 || r.height <= 0) return `radial-gradient(ellipse farthest-corner at ${d}% ${c}%, ${e})`;
6366
6367
  const m = r.width, h = r.height, p = Math.max(l, 1 - l), g = Math.max(u, 1 - u), f = Math.sqrt(p * p + g * g);
6367
6368
  return `radial-gradient(ellipse ${(f * m).toFixed(3)}px ${(f * h).toFixed(3)}px at ${d}% ${c}%, ${e})`;
6368
- }(o, e.getFocus(), r) || ti((n[a - 1] ?? n[0]).getColor(), t);
6369
+ }(o, e.getFocus(), r) || ri((n[a - 1] ?? n[0]).getColor(), t);
6369
6370
  return null;
6370
- }, rs = (e) => Math.max(0, Math.min(1, e));
6371
- function ns(e) {
6372
- return Yi.get(e)?.cssKey ?? "solid";
6371
+ }, ns = (e) => Math.max(0, Math.min(1, e));
6372
+ function as(e) {
6373
+ return Xi.get(e)?.cssKey ?? "solid";
6373
6374
  }
6374
- var as = /* @__PURE__ */ new Map();
6375
- function os(e) {
6375
+ var os = /* @__PURE__ */ new Map();
6376
+ function is(e) {
6376
6377
  if (!e) return "none";
6377
- const t = as.get(e.getStyle());
6378
+ const t = os.get(e.getStyle());
6378
6379
  if (!t) return null;
6379
6380
  if ("none" === t.cssKey) return t.cssKey;
6380
6381
  let r = function(e, t = !1) {
@@ -6382,75 +6383,75 @@ function os(e) {
6382
6383
  }(e?.getColor());
6383
6384
  return r = r ? " " + r : "", `${null !== t.size ? `${t.size}pt ` : ""}${t.cssKey}${r}`;
6384
6385
  }
6385
- as.set(te.StrokeStyle.None, {
6386
+ os.set(te.StrokeStyle.None, {
6386
6387
  size: null,
6387
6388
  cssKey: "none"
6388
- }), as.set(te.StrokeStyle.DashDot, {
6389
+ }), os.set(te.StrokeStyle.DashDot, {
6389
6390
  size: .5,
6390
6391
  cssKey: "dot-dash"
6391
- }), as.set(te.StrokeStyle.DashDotDot, {
6392
+ }), os.set(te.StrokeStyle.DashDotDot, {
6392
6393
  size: .5,
6393
6394
  cssKey: "dot-dot-dash"
6394
- }), as.set(te.StrokeStyle.Dashed, {
6395
+ }), os.set(te.StrokeStyle.Dashed, {
6395
6396
  size: .5,
6396
6397
  cssKey: "dashed"
6397
- }), as.set(te.StrokeStyle.MediumDashed, {
6398
+ }), os.set(te.StrokeStyle.MediumDashed, {
6398
6399
  size: 1,
6399
6400
  cssKey: "dashed"
6400
- }), as.set(te.StrokeStyle.Dotted, {
6401
+ }), os.set(te.StrokeStyle.Dotted, {
6401
6402
  size: .5,
6402
6403
  cssKey: "dotted"
6403
- }), as.set(te.StrokeStyle.MediumDashDot, {
6404
+ }), os.set(te.StrokeStyle.MediumDashDot, {
6404
6405
  size: 1,
6405
6406
  cssKey: "dot-dash"
6406
- }), as.set(te.StrokeStyle.MediumDashDotDot, {
6407
+ }), os.set(te.StrokeStyle.MediumDashDotDot, {
6407
6408
  size: 1,
6408
6409
  cssKey: "dot-dot-dash"
6409
- }), as.set(te.StrokeStyle.Hair, {
6410
+ }), os.set(te.StrokeStyle.Hair, {
6410
6411
  size: .5,
6411
6412
  cssKey: "hairline"
6412
- }), as.set(te.StrokeStyle.Thin, {
6413
+ }), os.set(te.StrokeStyle.Thin, {
6413
6414
  size: .5,
6414
6415
  cssKey: "solid"
6415
- }), as.set(te.StrokeStyle.Thick, {
6416
+ }), os.set(te.StrokeStyle.Thick, {
6416
6417
  size: 1.5,
6417
6418
  cssKey: "solid"
6418
- }), as.set(te.StrokeStyle.Medium, {
6419
+ }), os.set(te.StrokeStyle.Medium, {
6419
6420
  size: 1,
6420
6421
  cssKey: "solid"
6421
- }), as.set(te.StrokeStyle.Double, {
6422
+ }), os.set(te.StrokeStyle.Double, {
6422
6423
  size: 2,
6423
6424
  cssKey: "double"
6424
- }), as.set(te.StrokeStyle.SlantDashDot, {
6425
+ }), os.set(te.StrokeStyle.SlantDashDot, {
6425
6426
  size: 1,
6426
6427
  cssKey: "dot-dash-slanted"
6427
6428
  });
6428
- var is = [], ss = /* @__PURE__ */ new Set(), ls = /* @__PURE__ */ new Map(), us = (e, t) => {
6429
+ var ss = [], ls = /* @__PURE__ */ new Set(), us = /* @__PURE__ */ new Map(), ds = (e, t) => {
6429
6430
  let r = null !== e.size ? `${e.size.toString()} ${e.cssKey}` : e.cssKey;
6430
- ls.set(r, t), ss.has(e.cssKey) || (is.push(e.cssKey), ss.add(e.cssKey));
6431
+ us.set(r, t), ls.has(e.cssKey) || (ss.push(e.cssKey), ls.add(e.cssKey));
6431
6432
  };
6432
- as.forEach(us);
6433
- var ds = Object.keys(te.StrokeStyle);
6434
- for (let e = 0; e < ds.length; e++) us({
6433
+ os.forEach(ds);
6434
+ var cs = Object.keys(te.StrokeStyle);
6435
+ for (let e = 0; e < cs.length; e++) ds({
6435
6436
  size: null,
6436
- cssKey: ds[e].toLowerCase()
6437
- }, te.StrokeStyle[ds[e]]);
6438
- us({
6437
+ cssKey: cs[e].toLowerCase()
6438
+ }, te.StrokeStyle[cs[e]]);
6439
+ ds({
6439
6440
  size: null,
6440
6441
  cssKey: "double"
6441
- }, te.StrokeStyle.Double), us({
6442
+ }, te.StrokeStyle.Double), ds({
6442
6443
  size: null,
6443
6444
  cssKey: "solid"
6444
- }, te.StrokeStyle.Medium), us({
6445
+ }, te.StrokeStyle.Medium), ds({
6445
6446
  size: null,
6446
6447
  cssKey: "hidden"
6447
- }, te.StrokeStyle.None), is.sort((e, t) => t.length - e.length);
6448
- var cs = "", ms = is.length;
6449
- for (let e = 0; e < ms; e++) cs.length > 0 && (cs += "|"), cs += "\\b" + is[e] + "\\b";
6450
- var hs = new RegExp(`(\\s*(?:${cs}))`, "g"), ps = /* @__PURE__ */ new RegExp("(\\s*[0-9]*[.]?[0-9]+(?:pt|px){0,1})", "g");
6451
- function gs(e, t) {
6448
+ }, te.StrokeStyle.None), ss.sort((e, t) => t.length - e.length);
6449
+ var ms = "", hs = ss.length;
6450
+ for (let e = 0; e < hs; e++) ms.length > 0 && (ms += "|"), ms += "\\b" + ss[e] + "\\b";
6451
+ var ps = new RegExp(`(\\s*(?:${ms}))`, "g"), gs = /* @__PURE__ */ new RegExp("(\\s*[0-9]*[.]?[0-9]+(?:pt|px){0,1})", "g");
6452
+ function fs(e, t) {
6452
6453
  if (!e) return null;
6453
- let r = e.toLowerCase(), n = r.match(hs);
6454
+ let r = e.toLowerCase(), n = r.match(ps);
6454
6455
  if (!n) {
6455
6456
  const e = t?.(r);
6456
6457
  return e ? {
@@ -6466,53 +6467,53 @@ function gs(e, t) {
6466
6467
  let o = null;
6467
6468
  if (n && n.length > 0 && (o = a(n[0])), !o) return null;
6468
6469
  let i = null;
6469
- if (n = r.match(ps), n && n.length > 0) {
6470
+ if (n = r.match(gs), n && n.length > 0) {
6470
6471
  let e = a(n[0]);
6471
6472
  i = parseFloat(e.substring(0, e.length - 2));
6472
6473
  }
6473
6474
  r = r.trim();
6474
6475
  const s = r ? r.trim() : null;
6475
- let l = null === i ? o : `${i.toString()} ${o}`, u = ls.get(l);
6476
- return u || (u = ls.get(o)), u ? {
6476
+ let l = null === i ? o : `${i.toString()} ${o}`, u = us.get(l);
6477
+ return u || (u = us.get(o)), u ? {
6477
6478
  color: s,
6478
6479
  style: u
6479
6480
  } : null;
6480
6481
  }
6481
- var fs = "start", ys = "end", Ss = "left", bs = "right", ws = "center", vs = "justify", Cs = "justify-all", Ms = "baseline", ks = "top", Ts = "middle", _s = "bottom", Ds = "sub", As = "text-top", xs = "justify", Fs = "distributed", Ns = /* @__PURE__ */ new Map();
6482
- function Bs(e) {
6482
+ var ys = "start", Ss = "end", bs = "left", ws = "right", vs = "center", Cs = "justify", Ms = "justify-all", ks = "baseline", Ts = "top", _s = "middle", Ds = "bottom", As = "sub", xs = "text-top", Fs = "justify", Ns = "distributed", Bs = /* @__PURE__ */ new Map();
6483
+ function Ls(e) {
6483
6484
  const t = r.textToKey(e);
6484
- return Ns.get(t) || null;
6485
+ return Bs.get(t) || null;
6485
6486
  }
6486
- Ns.set(r.textToKey(fs), d.HorizontalAlignment.Left), Ns.set(r.textToKey(Ss), d.HorizontalAlignment.Left), Ns.set(r.textToKey(ys), d.HorizontalAlignment.Right), Ns.set(r.textToKey(bs), d.HorizontalAlignment.Right), Ns.set(r.textToKey(ws), d.HorizontalAlignment.Center), Ns.set(r.textToKey(vs), d.HorizontalAlignment.Justify), Ns.set(r.textToKey(Cs), d.HorizontalAlignment.Justify);
6487
- var Ls = /* @__PURE__ */ new Map();
6488
- Ls.set(r.textToKey(Ms), d.VerticalAlignment.Bottom), Ls.set(r.textToKey(ks), d.VerticalAlignment.Top), Ls.set(r.textToKey(Ts), d.VerticalAlignment.Center), Ls.set(r.textToKey(_s), d.VerticalAlignment.Bottom), Ls.set(r.textToKey(Ds), d.VerticalAlignment.Bottom), Ls.set(r.textToKey(As), d.VerticalAlignment.Top), Ls.set(r.textToKey(xs), d.VerticalAlignment.Justify), Ls.set(r.textToKey(Fs), d.VerticalAlignment.Distributed);
6489
- var Rs = (e) => {
6487
+ Bs.set(r.textToKey(ys), d.HorizontalAlignment.Left), Bs.set(r.textToKey(bs), d.HorizontalAlignment.Left), Bs.set(r.textToKey(Ss), d.HorizontalAlignment.Right), Bs.set(r.textToKey(ws), d.HorizontalAlignment.Right), Bs.set(r.textToKey(vs), d.HorizontalAlignment.Center), Bs.set(r.textToKey(Cs), d.HorizontalAlignment.Justify), Bs.set(r.textToKey(Ms), d.HorizontalAlignment.Justify);
6488
+ var Rs = /* @__PURE__ */ new Map();
6489
+ Rs.set(r.textToKey(ks), d.VerticalAlignment.Bottom), Rs.set(r.textToKey(Ts), d.VerticalAlignment.Top), Rs.set(r.textToKey(_s), d.VerticalAlignment.Center), Rs.set(r.textToKey(Ds), d.VerticalAlignment.Bottom), Rs.set(r.textToKey(As), d.VerticalAlignment.Bottom), Rs.set(r.textToKey(xs), d.VerticalAlignment.Top), Rs.set(r.textToKey(Fs), d.VerticalAlignment.Justify), Rs.set(r.textToKey(Ns), d.VerticalAlignment.Distributed);
6490
+ var Ps = (e) => {
6490
6491
  const t = r.textToKey(e);
6491
- return Ls.get(t) || null;
6492
- }, Ps = Object.freeze({
6492
+ return Rs.get(t) || null;
6493
+ }, Is = Object.freeze({
6493
6494
  left: 0,
6494
6495
  right: 0,
6495
6496
  top: 0,
6496
6497
  bottom: 0
6497
6498
  });
6498
- function Is(e) {
6499
+ function Es(e) {
6499
6500
  return Math.ceil(e / 4);
6500
6501
  }
6501
- function Es(e) {
6502
+ function js(e) {
6502
6503
  return 1;
6503
6504
  }
6504
- function js(e, t, r) {
6505
+ function Gs(e, t, r) {
6505
6506
  return ne;
6506
6507
  }
6507
- var Gs = (e) => {
6508
- if (e instanceof Wo) return { color: e.toString() };
6508
+ var Os = (e) => {
6509
+ if (e instanceof Vo) return { color: e.toString() };
6509
6510
  if ("string" == typeof e) try {
6510
6511
  return { color: "none" === e || "transparent" === e ? null : e };
6511
6512
  } catch (e) {
6512
6513
  throw e;
6513
6514
  }
6514
6515
  return e;
6515
- }, Os = a.PassThrough, zs = {
6516
+ }, zs = a.PassThrough, $s = {
6516
6517
  shorthand: (e, t) => {
6517
6518
  if (!e || "none" === e || "transparent" === e) return null;
6518
6519
  try {
@@ -6523,10 +6524,10 @@ var Gs = (e) => {
6523
6524
  return e;
6524
6525
  },
6525
6526
  merge: (e, t, r) => e
6526
- }, $s = {
6527
+ }, Hs = {
6527
6528
  shorthand: (e, t) => {
6528
6529
  if (e.isIStroke) return e.getProperties();
6529
- if ("string" == typeof e && (e = gs(e, (e) => {
6530
+ if ("string" == typeof e && (e = fs(e, (e) => {
6530
6531
  try {
6531
6532
  return t.parseColor(e).toString();
6532
6533
  } catch {}
@@ -6536,14 +6537,14 @@ var Gs = (e) => {
6536
6537
  return e.style && (r.style = e.style), e.color && (r.color = e.color), r;
6537
6538
  },
6538
6539
  properties: {
6539
- color: zs,
6540
- style: Os
6540
+ color: $s,
6541
+ style: zs
6541
6542
  }
6542
- }, Hs = {
6543
+ }, Us = {
6543
6544
  shorthand: (e, t) => {
6544
6545
  if (e.isIBorders) return e.getProperties();
6545
6546
  if ("string" == typeof e) {
6546
- const r = gs(e, (e) => {
6547
+ const r = fs(e, (e) => {
6547
6548
  try {
6548
6549
  return t.parseColor(e).toString();
6549
6550
  } catch {}
@@ -6563,29 +6564,29 @@ var Gs = (e) => {
6563
6564
  return e;
6564
6565
  },
6565
6566
  properties: {
6566
- top: $s,
6567
- left: $s,
6568
- right: $s,
6569
- bottom: $s,
6570
- horizontal: $s,
6571
- vertical: $s,
6572
- diagonalUp: $s,
6573
- diagonalDown: $s
6574
- }
6575
- }, Us = { shorthand: (e, t) => {
6567
+ top: Hs,
6568
+ left: Hs,
6569
+ right: Hs,
6570
+ bottom: Hs,
6571
+ horizontal: Hs,
6572
+ vertical: Hs,
6573
+ diagonalUp: Hs,
6574
+ diagonalDown: Hs
6575
+ }
6576
+ }, Ks = { shorthand: (e, t) => {
6576
6577
  if ("string" == typeof e) {
6577
- const t = Qa.Styles.lookupDefault(e) ?? e, r = Qa.toBuiltInID(t);
6578
+ const t = eo.Styles.lookupDefault(e) ?? e, r = eo.toBuiltInID(t);
6578
6579
  return "number" == typeof r && 0 !== r ? r : t;
6579
6580
  }
6580
- return "number" == typeof e ? 0 === e ? Qa.Type.General : void 0 !== Qa.builtInFormat(e) ? e : null : null;
6581
- } }, Ks = {
6581
+ return "number" == typeof e ? 0 === e ? eo.Type.General : void 0 !== eo.builtInFormat(e) ? e : null : null;
6582
+ } }, Ws = {
6582
6583
  shorthand: (e, t) => {
6583
6584
  if (e.isIFontStyle) return e.toJSON();
6584
6585
  if ("string" == typeof e) {
6585
- const t = ei(e);
6586
+ const t = ti(e);
6586
6587
  if (t) {
6587
6588
  const e = {};
6588
- if (t.family && (e.family = t.family), t.fallbacks && (e.fallbacks = t.fallbacks), t.size && (e.size = qi(t.size)), Object.keys(t).length > 0) return e;
6589
+ if (t.family && (e.family = t.family), t.fallbacks && (e.fallbacks = t.fallbacks), t.size && (e.size = Yi(t.size)), Object.keys(t).length > 0) return e;
6589
6590
  }
6590
6591
  return e;
6591
6592
  }
@@ -6597,38 +6598,38 @@ var Gs = (e) => {
6597
6598
  })(e) : e;
6598
6599
  },
6599
6600
  properties: {
6600
- family: { shorthand: (e, t) => e === J.ThemeFamily.Heading || e === J.ThemeFamily.Body ? e : ei(e)?.family ?? null },
6601
+ family: { shorthand: (e, t) => e === J.ThemeFamily.Heading || e === J.ThemeFamily.Body ? e : ti(e)?.family ?? null },
6601
6602
  fallbacks: { shorthand: (e, t) => {
6602
6603
  if ("string" != typeof e) return e;
6603
- let r = ei(e);
6604
+ let r = ti(e);
6604
6605
  if (!r) return null;
6605
6606
  let n = [r.family];
6606
6607
  return r.fallbacks && (n = n.concat(r.fallbacks)), n;
6607
6608
  } },
6608
6609
  size: { shorthand: (e, t) => {
6609
6610
  let n = e;
6610
- return "string" == typeof e && (n = qi(e, t.getNormal().getFont().getSize())), isNaN(n) || "number" != typeof n ? null : (n = Math.max(1, Math.min(r.roundAccurately(n, 1), 409)), n);
6611
+ return "string" == typeof e && (n = Yi(e, t.getNormal().getFont().getSize())), isNaN(n) || "number" != typeof n ? null : (n = Math.max(1, Math.min(r.roundAccurately(n, 1), 409)), n);
6611
6612
  } },
6612
6613
  weight: { shorthand: (e, t) => {
6613
6614
  if ("string" != typeof e) return e;
6614
- const r = Pi(e);
6615
+ const r = Ii(e);
6615
6616
  return isNaN(r) || "number" != typeof r ? null : r;
6616
6617
  } },
6617
- style: Os,
6618
- color: zs,
6619
- letterSpacing: Os,
6620
- underline: { shorthand: (e, t) => e ? !0 === e ? W.UnderlineStyle.Single : si(e) : W.UnderlineStyle.None },
6618
+ style: zs,
6619
+ color: $s,
6620
+ letterSpacing: zs,
6621
+ underline: { shorthand: (e, t) => e ? !0 === e ? W.UnderlineStyle.Single : li(e) : W.UnderlineStyle.None },
6621
6622
  strike: { shorthand: (e, t) => !0 === e ? W.StrikeStyle.Single : !1 === e ? W.StrikeStyle.None : e },
6622
- baseline: Os,
6623
- shadow: Os,
6624
- outline: Os,
6623
+ baseline: zs,
6624
+ shadow: zs,
6625
+ outline: zs,
6625
6626
  charset: { shorthand: (e, t) => {
6626
6627
  if (null == e) return null;
6627
6628
  const r = "string" == typeof e ? parseInt(e, 10) : e;
6628
6629
  return "number" == typeof r && Number.isFinite(r) ? r : null;
6629
6630
  } }
6630
6631
  }
6631
- }, Ws = {
6632
+ }, Vs = {
6632
6633
  shorthand: (e, t) => e && "object" == typeof e ? ((e) => {
6633
6634
  const { rotation: t, stacked: r } = e;
6634
6635
  return null != t && void 0 === r ? {
@@ -6640,97 +6641,97 @@ var Gs = (e) => {
6640
6641
  } : e;
6641
6642
  })(e) : e,
6642
6643
  properties: {
6643
- horizontal: Os,
6644
- vertical: Os,
6644
+ horizontal: zs,
6645
+ vertical: zs,
6645
6646
  indent: { shorthand: (e, t) => {
6646
6647
  let r = e;
6647
6648
  return "string" == typeof e && (r = parseFloat(e)), isNaN(r) || "number" != typeof r ? null : r;
6648
6649
  } },
6649
- relativeIndent: Os,
6650
- overflow: Os,
6650
+ relativeIndent: zs,
6651
+ overflow: zs,
6651
6652
  rotation: { shorthand: (e, t) => {
6652
6653
  let r = e;
6653
6654
  return "string" == typeof e && (r = parseFloat(e)), isNaN(r) || "number" != typeof r ? null : (r %= 360, r < 0 && (r += 360), r);
6654
6655
  } },
6655
- stacked: Os,
6656
- justifyLastLine: Os,
6657
- readingDirection: Os
6656
+ stacked: zs,
6657
+ justifyLastLine: zs,
6658
+ readingDirection: zs
6658
6659
  }
6659
- }, Vs = { shorthand: (e, t) => "none" === e || "transparent" === e || "object" == typeof e && 0 === Object.keys(e).length ? { type: Ro.Type.None } : (e.getType?.(), Ro.Type.None, e) }, Js = {
6660
+ }, Js = { shorthand: (e, t) => "none" === e || "transparent" === e || "object" == typeof e && 0 === Object.keys(e).length ? { type: Po.Type.None } : (e.getType?.(), Po.Type.None, e) }, qs = {
6660
6661
  shorthand: (e) => {
6661
- const t = Gs(e);
6662
- return "object" == typeof t && t.color && (t.type = Ro.Type.Solid), t;
6662
+ const t = Os(e);
6663
+ return "object" == typeof t && t.color && (t.type = Po.Type.Solid), t;
6663
6664
  },
6664
6665
  merge: (e, t) => {
6665
6666
  const r = e;
6666
6667
  let n = t;
6667
- return r && "color" in r && null === r.color ? { type: Ro.Type.None } : r.color ? r : (n?.toJSON && (n = n.toJSON()), n?.type === Ro.Type.Solid ? { ...n } : n?.type === Ro.Type.Gradient ? {
6668
- type: Ro.Type.Solid,
6669
- color: n?.stops?.[0]?.color ?? to.Scheme.Bg1
6670
- } : n?.type === Ro.Type.Pattern ? {
6671
- type: Ro.Type.Solid,
6672
- color: n?.foreground ?? to.Scheme.Bg1
6668
+ return r && "color" in r && null === r.color ? { type: Po.Type.None } : r.color ? r : (n?.toJSON && (n = n.toJSON()), n?.type === Po.Type.Solid ? { ...n } : n?.type === Po.Type.Gradient ? {
6669
+ type: Po.Type.Solid,
6670
+ color: n?.stops?.[0]?.color ?? ro.Scheme.Bg1
6671
+ } : n?.type === Po.Type.Pattern ? {
6672
+ type: Po.Type.Solid,
6673
+ color: n?.foreground ?? ro.Scheme.Bg1
6673
6674
  } : r ? { ...r } : null);
6674
6675
  },
6675
6676
  properties: {
6676
- color: zs,
6677
- type: Os,
6678
- isRotatedWithShape: Os
6677
+ color: $s,
6678
+ type: zs,
6679
+ isRotatedWithShape: zs
6679
6680
  }
6680
- }, qs = {
6681
- shorthand: (e) => ("object" == typeof e && e.stops && (e.type = Ro.Type.Gradient), e),
6681
+ }, Ys = {
6682
+ shorthand: (e) => ("object" == typeof e && e.stops && (e.type = Po.Type.Gradient), e),
6682
6683
  merge: (e, t, r) => {
6683
6684
  const n = e;
6684
6685
  let a = t;
6685
- return n.stops ? n : (a?.toJSON && (a = a.toJSON()), a?.type === Ro.Type.Gradient ? { ...a } : a?.type === Ro.Type.Solid ? {
6686
- type: Ro.Type.Gradient,
6686
+ return n.stops ? n : (a?.toJSON && (a = a.toJSON()), a?.type === Po.Type.Gradient ? { ...a } : a?.type === Po.Type.Solid ? {
6687
+ type: Po.Type.Gradient,
6687
6688
  stops: [{
6688
6689
  offset: 0,
6689
- color: a?.color ?? to.Scheme.Accent1
6690
+ color: a?.color ?? ro.Scheme.Accent1
6690
6691
  }, {
6691
6692
  offset: 1,
6692
- color: to.Scheme.Bg1
6693
+ color: ro.Scheme.Bg1
6693
6694
  }]
6694
- } : a?.type === Ro.Type.Pattern ? {
6695
- type: Ro.Type.Gradient,
6695
+ } : a?.type === Po.Type.Pattern ? {
6696
+ type: Po.Type.Gradient,
6696
6697
  stops: [{
6697
6698
  offset: 0,
6698
- color: a?.foreground ?? to.Scheme.Bg1
6699
+ color: a?.foreground ?? ro.Scheme.Bg1
6699
6700
  }, {
6700
6701
  offset: 1,
6701
- color: a?.background ?? to.Scheme.Accent1
6702
+ color: a?.background ?? ro.Scheme.Accent1
6702
6703
  }]
6703
6704
  } : n ? { ...n } : null);
6704
6705
  },
6705
6706
  properties: {
6706
- type: Os,
6707
+ type: zs,
6707
6708
  stops: {
6708
6709
  shorthand: (e) => ("string" == typeof e && (e = e.split(",").map((e) => e.trim())), Array.isArray(e) ? e.map((e, t) => {
6709
6710
  if (!e) return;
6710
6711
  let r = e;
6711
- return "string" == typeof e && (r = Gs(e)), e.isIColor && (r = { color: e.toString() }), r;
6712
+ return "string" == typeof e && (r = Os(e)), e.isIColor && (r = { color: e.toString() }), r;
6712
6713
  }) : e),
6713
6714
  arrayType: {
6714
- shorthand: (e) => Gs(e),
6715
+ shorthand: (e) => Os(e),
6715
6716
  properties: {
6716
- color: zs,
6717
- offset: Os
6717
+ color: $s,
6718
+ offset: zs
6718
6719
  }
6719
6720
  }
6720
6721
  },
6721
- gradientType: Os,
6722
- angle: Os,
6723
- focus: Os,
6724
- scaled: Os,
6725
- tileRect: Os,
6726
- flip: Os,
6727
- isRotatedWithShape: Os
6728
- }
6729
- }, Ys = {
6722
+ gradientType: zs,
6723
+ angle: zs,
6724
+ focus: zs,
6725
+ scaled: zs,
6726
+ tileRect: zs,
6727
+ flip: zs,
6728
+ isRotatedWithShape: zs
6729
+ }
6730
+ }, Xs = {
6730
6731
  shorthand: (e, t) => {
6731
6732
  if ("object" == typeof e) {
6732
6733
  const t = e;
6733
- (t.foreground || t.background || t.patternType) && (t.type = Ro.Type.Pattern, t.patternType = t.patternType ?? Ro.BuiltInSheetPattern.Solid);
6734
+ (t.foreground || t.background || t.patternType) && (t.type = Po.Type.Pattern, t.patternType = t.patternType ?? Po.BuiltInSheetPattern.Solid);
6734
6735
  }
6735
6736
  return e;
6736
6737
  },
@@ -6739,92 +6740,92 @@ var Gs = (e) => {
6739
6740
  let a = t;
6740
6741
  if (n.background && n.foreground) return n;
6741
6742
  a?.toJSON && (a = a.toJSON());
6742
- const o = Ro.BuiltInSheetPattern.MediumGray;
6743
- if (a?.type === Ro.Type.Pattern) {
6743
+ const o = Po.BuiltInSheetPattern.MediumGray;
6744
+ if (a?.type === Po.Type.Pattern) {
6744
6745
  const e = {
6745
- type: Ro.Type.Pattern,
6746
+ type: Po.Type.Pattern,
6746
6747
  patternType: n.patternType ?? a.patternType
6747
6748
  };
6748
6749
  return a.foreground && (e.foreground = a.foreground), a.background && (e.background = a.background), n.foreground && (e.foreground = n.foreground), n.background && (e.background = n.background), e;
6749
6750
  }
6750
- return a?.type === Ro.Type.Solid ? {
6751
+ return a?.type === Po.Type.Solid ? {
6751
6752
  patternType: o,
6752
- foreground: a?.color ?? to.Named.WindowText,
6753
- background: to.Scheme.Bg1,
6753
+ foreground: a?.color ?? ro.Named.WindowText,
6754
+ background: ro.Scheme.Bg1,
6754
6755
  ...n
6755
- } : a?.type === Ro.Type.Gradient ? {
6756
+ } : a?.type === Po.Type.Gradient ? {
6756
6757
  patternType: o,
6757
- foreground: a?.stops?.[0]?.color ?? to.Named.WindowText,
6758
- background: a?.stops?.[1]?.color ?? to.Scheme.Bg1,
6758
+ foreground: a?.stops?.[0]?.color ?? ro.Named.WindowText,
6759
+ background: a?.stops?.[1]?.color ?? ro.Scheme.Bg1,
6759
6760
  ...n
6760
6761
  } : n ? {
6761
- type: Ro.Type.Pattern,
6762
- patternType: Ro.BuiltInSheetPattern.Solid,
6763
- foreground: to.Named.WindowText,
6764
- background: to.Scheme.Bg1,
6762
+ type: Po.Type.Pattern,
6763
+ patternType: Po.BuiltInSheetPattern.Solid,
6764
+ foreground: ro.Named.WindowText,
6765
+ background: ro.Scheme.Bg1,
6765
6766
  ...n
6766
6767
  } : null;
6767
6768
  },
6768
6769
  properties: {
6769
- type: Os,
6770
- patternType: Os,
6771
- foreground: zs,
6772
- background: zs,
6773
- isRotatedWithShape: Os
6774
- }
6775
- }, Xs = { properties: {
6776
- type: Os,
6777
- resId: Os,
6778
- sourceRect: Os,
6779
- stretch: Os,
6780
- tile: Os,
6781
- dpi: Os,
6782
- compressionState: Os,
6783
- imageEffects: Os,
6784
- extLst: Os,
6785
- isRotatedWithShape: Os
6786
- } }, Zs = { properties: {
6787
- type: Os,
6788
- isRotatedWithShape: Os
6789
- } }, Qs = [
6790
- Vs,
6770
+ type: zs,
6771
+ patternType: zs,
6772
+ foreground: $s,
6773
+ background: $s,
6774
+ isRotatedWithShape: zs
6775
+ }
6776
+ }, Zs = { properties: {
6777
+ type: zs,
6778
+ resId: zs,
6779
+ sourceRect: zs,
6780
+ stretch: zs,
6781
+ tile: zs,
6782
+ dpi: zs,
6783
+ compressionState: zs,
6784
+ imageEffects: zs,
6785
+ extLst: zs,
6786
+ isRotatedWithShape: zs
6787
+ } }, Qs = { properties: {
6788
+ type: zs,
6789
+ isRotatedWithShape: zs
6790
+ } }, el = [
6791
6791
  Js,
6792
6792
  qs,
6793
6793
  Ys,
6794
6794
  Xs,
6795
- Zs
6796
- ], el = [];
6797
- for (let e = 0; e < Qs.length; e++) {
6798
- const t = Qs[e]?.shorthand;
6799
- t && el.push(t);
6800
- }
6801
- var tl = el.length, rl = {
6795
+ Zs,
6796
+ Qs
6797
+ ], tl = [];
6798
+ for (let e = 0; e < el.length; e++) {
6799
+ const t = el[e]?.shorthand;
6800
+ t && tl.push(t);
6801
+ }
6802
+ var rl = tl.length, nl = {
6802
6803
  shorthand: (e, t) => {
6803
6804
  e.isIFill && (e = e.toJSON());
6804
- for (let r = 0; r < tl; r++) {
6805
- let n = el[r](e, t);
6805
+ for (let r = 0; r < rl; r++) {
6806
+ let n = tl[r](e, t);
6806
6807
  if (n?.type) return n;
6807
6808
  }
6808
6809
  return e;
6809
6810
  },
6810
6811
  getSubType: (e, t) => {
6811
6812
  const r = e.type ?? t?.type;
6812
- return r === Ro.Type.None ? Vs : r === Ro.Type.Solid ? Js : r === Ro.Type.Gradient ? qs : r === Ro.Type.Pattern ? Ys : r === Ro.Type.Image ? Xs : r === Ro.Type.Group ? Zs : null;
6813
- }
6814
- }, nl = { properties: {
6815
- font: Ks,
6816
- fill: rl,
6817
- alignment: Ws,
6818
- borders: Hs,
6819
- numberFormat: Us,
6820
- quotePrefix: Os,
6813
+ return r === Po.Type.None ? Js : r === Po.Type.Solid ? qs : r === Po.Type.Gradient ? Ys : r === Po.Type.Pattern ? Xs : r === Po.Type.Image ? Zs : r === Po.Type.Group ? Qs : null;
6814
+ }
6815
+ }, al = { properties: {
6816
+ font: Ws,
6817
+ fill: nl,
6818
+ alignment: Vs,
6819
+ borders: Us,
6820
+ numberFormat: Ks,
6821
+ quotePrefix: zs,
6821
6822
  protection: { properties: {
6822
- alwaysUnlocked: Os,
6823
- showFormulas: Os
6823
+ alwaysUnlocked: zs,
6824
+ showFormulas: zs
6824
6825
  } },
6825
- named: Os,
6826
- insets: Os
6827
- } }, al = Object.freeze([
6826
+ named: zs,
6827
+ insets: zs
6828
+ } }, ol = Object.freeze([
6828
6829
  "font",
6829
6830
  "fill",
6830
6831
  "alignment",
@@ -6833,14 +6834,14 @@ var tl = el.length, rl = {
6833
6834
  "quotePrefix",
6834
6835
  "protection",
6835
6836
  "insets"
6836
- ]), ol = {
6837
+ ]), il = {
6837
6838
  shorthand: (e, t) => {
6838
6839
  if (!e || "object" != typeof e) return;
6839
6840
  let r = e.named;
6840
6841
  if (!r) return;
6841
6842
  if (r.isINamed && (r = r.getName()), "string" != typeof r) return;
6842
6843
  let n = null;
6843
- if (r.toLowerCase() === jo.BuiltInName.Normal.toLowerCase()) n = al;
6844
+ if (r.toLowerCase() === Go.BuiltInName.Normal.toLowerCase()) n = ol;
6844
6845
  else {
6845
6846
  const e = t?.getNamedStyles().getByName(r)?.getRanged().getPropertiesAt(0, 0, null);
6846
6847
  e && (n = Object.keys(e));
@@ -6855,87 +6856,87 @@ var tl = el.length, rl = {
6855
6856
  }
6856
6857
  return a;
6857
6858
  },
6858
- properties: nl.properties
6859
- }, il = { properties: {
6860
- style: ol,
6861
- name: Os,
6862
- hidden: Os,
6863
- iLevel: Os,
6864
- customized: Os
6865
- } }, sl = {
6866
- [Ro.BuiltInSheetPattern.Gray0625]: {
6859
+ properties: al.properties
6860
+ }, sl = { properties: {
6861
+ style: il,
6862
+ name: zs,
6863
+ hidden: zs,
6864
+ iLevel: zs,
6865
+ customized: zs
6866
+ } }, ll = {
6867
+ [Po.BuiltInSheetPattern.Gray0625]: {
6867
6868
  path: "M 0.5 0.5 L 0.5 1.5 M 0.5 4.5 L 0.5 5.5 M 4.5 2.5 L 4.5 3.5 M 4.5 6.5 L 4.5 7.5",
6868
6869
  size: 8
6869
6870
  },
6870
- [Ro.BuiltInSheetPattern.LightGray]: {
6871
+ [Po.BuiltInSheetPattern.LightGray]: {
6871
6872
  path: "M 0.5 0.5 L 0.5 1.5 M 0.5 2.5 L 0.5 3.5 M 2.5 -0.5 L 2.5 0.5 M 2.5 1.5 L 2.5 2.5 M 2.5 3.5 L 2.5 4.5",
6872
6873
  size: 4
6873
6874
  },
6874
- [Ro.BuiltInSheetPattern.MediumGray]: {
6875
+ [Po.BuiltInSheetPattern.MediumGray]: {
6875
6876
  path: "M 0.5 0.5 L 0.5 1.5 M 1.5 1.5 L 1.5 2.5 M 1.5 -0.5 L 1.5 0.5 M -0.5 -0.5 L -0.5 0.5",
6876
6877
  size: 2
6877
6878
  },
6878
- [Ro.BuiltInSheetPattern.DarkGray]: {
6879
+ [Po.BuiltInSheetPattern.DarkGray]: {
6879
6880
  path: "M 0 0 L 0 4 M 1 1 L 1 2 M 1 3 L 1 4 M 2 0 L 2 4 M 3 0.5 L 3 1.5 M 3 2.5 L 3 3.5 M 4 0 L 4 4",
6880
6881
  size: 4
6881
6882
  },
6882
- [Ro.BuiltInSheetPattern.LightHorizontal]: {
6883
+ [Po.BuiltInSheetPattern.LightHorizontal]: {
6883
6884
  path: "M 0 2 L 4 2",
6884
6885
  size: 4
6885
6886
  },
6886
- [Ro.BuiltInSheetPattern.DarkHorizontal]: {
6887
+ [Po.BuiltInSheetPattern.DarkHorizontal]: {
6887
6888
  path: "M 0 2 L 4 2 M 0 3 L 4 3",
6888
6889
  size: 4
6889
6890
  },
6890
- [Ro.BuiltInSheetPattern.LightVertical]: {
6891
+ [Po.BuiltInSheetPattern.LightVertical]: {
6891
6892
  path: "M 2 0 L 2 4",
6892
6893
  size: 4
6893
6894
  },
6894
- [Ro.BuiltInSheetPattern.DarkVertical]: {
6895
+ [Po.BuiltInSheetPattern.DarkVertical]: {
6895
6896
  path: "M 2 0 L 2 4 M 3 0 L 3 4",
6896
6897
  size: 4
6897
6898
  },
6898
- [Ro.BuiltInSheetPattern.LightUp]: {
6899
+ [Po.BuiltInSheetPattern.LightUp]: {
6899
6900
  path: "M 0.5 0.5 L 0.5 1.5 M 1.5 3.5 L 1.5 4.5 M 1.5 -0.5 L 1.5 0.5 M 2.5 2.5 L 2.5 3.5 M 3.5 1.5 L 3.5 2.5",
6900
6901
  size: 4
6901
6902
  },
6902
- [Ro.BuiltInSheetPattern.DarkUp]: {
6903
+ [Po.BuiltInSheetPattern.DarkUp]: {
6903
6904
  path: "M 0.5 -0.5 L 0.5 1.5 M 0.5 3.5 L 0.5 4.5 M 1.5 2.5 L 1.5 4.5 M 2.5 1.5 L 2.5 3.5 M 3.5 0.5 L 3.5 2.5 M 1.5 -0.5 L 1.5 0.5",
6904
6905
  size: 4
6905
6906
  },
6906
- [Ro.BuiltInSheetPattern.LightDown]: {
6907
+ [Po.BuiltInSheetPattern.LightDown]: {
6907
6908
  path: "M 0.5 0 L 0.5 1 M 1.5 1 L 1.5 2 M 2.5 2 L 2.5 3 M 3.5 3 L 3.5 4",
6908
6909
  size: 4
6909
6910
  },
6910
- [Ro.BuiltInSheetPattern.DarkDown]: {
6911
+ [Po.BuiltInSheetPattern.DarkDown]: {
6911
6912
  path: "M 0.5 -0.5 L 0.5 2 M 1.5 1 L 1.5 3 M 2.5 2 L 2.5 4 M 3.5 3 L 3.5 5 M 3.5 -0.5 L 3.5 1.0",
6912
6913
  size: 4
6913
6914
  },
6914
- [Ro.BuiltInSheetPattern.LightGrid]: {
6915
+ [Po.BuiltInSheetPattern.LightGrid]: {
6915
6916
  path: "M 1.5 -0.5 L 1.5 4.5 M -0.5 1.5 L 4.5 1.5",
6916
6917
  size: 4
6917
6918
  },
6918
- [Ro.BuiltInSheetPattern.DarkGrid]: {
6919
+ [Po.BuiltInSheetPattern.DarkGrid]: {
6919
6920
  path: "M 0.5 -0.5 L 0.5 1.5 M 1.5 -0.5 L 1.5 1.5 M 2.5 1.5 L 2.5 3.5 M 3.5 1.5 L 3.5 3.5 M 0.5 3.5 L 0.5 4.5 M 1.5 3.5 L 1.5 4.5",
6920
6921
  size: 4
6921
6922
  },
6922
- [Ro.BuiltInSheetPattern.LightTrellis]: {
6923
+ [Po.BuiltInSheetPattern.LightTrellis]: {
6923
6924
  path: "M 0.5 0.5 L 0.5 1.5 M 1.5 3.5 L 1.5 4.5 M 1.5 -0.5 L 1.5 0.5 M 2.5 2.5 L 2.5 3.5 M 3.5 1.5 L 3.5 2.5 M 1.5 1.5 L 1.5 2.5 M 3.5 3.5 L 3.5 4.5 M 3.5 -0.5 L 3.5 0.5",
6924
6925
  size: 4
6925
6926
  },
6926
- [Ro.BuiltInSheetPattern.DarkTrellis]: {
6927
+ [Po.BuiltInSheetPattern.DarkTrellis]: {
6927
6928
  path: "M 0 0 L 4 0 M 0 1 L 2 1 M 0 2 L 4 2 M 2 3 L 4 3 M 0 4 L 4 4",
6928
6929
  size: 4
6929
6930
  },
6930
- [Ro.BuiltInSheetPattern.Gray125]: {
6931
+ [Po.BuiltInSheetPattern.Gray125]: {
6931
6932
  path: "M 0.5 0.5 L 0.5 1.5 M 0.5 4.5 L 0.5 5.5 M 2.5 2.5 L 2.5 3.5 M 2.5 6.5 L 2.5 7.5 M 4.5 0.5 L 4.5 1.5 M 4.5 4.5 L 4.5 5.5 M 6.5 2.5 L 6.5 3.5 M 6.5 6.5 L 6.5 7.5",
6932
6933
  size: 8
6933
6934
  }
6934
- }, ll = sl[Ro.BuiltInSheetPattern.Gray125], ul = (e, t, r) => `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${t}' viewBox='0 0 ${t} ${t}' shape-rendering='crispEdges' %3E%3Cpath d='${e}' stroke='${r}' %3E%3C/path%3E%3C/svg%3E")`, dl = new class {
6935
+ }, ul = ll[Po.BuiltInSheetPattern.Gray125], dl = (e, t, r) => `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${t}' viewBox='0 0 ${t} ${t}' shape-rendering='crispEdges' %3E%3Cpath d='${e}' stroke='${r}' %3E%3C/path%3E%3C/svg%3E")`, cl = new class {
6935
6936
  _svgImage(e, t, r) {
6936
6937
  const { path: n, size: a } = r;
6937
6938
  return {
6938
- backgroundImage: ul(n, a, e),
6939
+ backgroundImage: dl(n, a, e),
6939
6940
  backgroundRepeat: "repeat",
6940
6941
  backgroundSize: `${a}px ${a}px`,
6941
6942
  backgroundPositionX: "0px",
@@ -6945,23 +6946,23 @@ var tl = el.length, rl = {
6945
6946
  };
6946
6947
  }
6947
6948
  toCSS(e, t, r) {
6948
- return e && e !== Ro.BuiltInSheetPattern.None ? e === Ro.BuiltInSheetPattern.Solid ? { background: t } : this._svgImage(t, r, sl[e] ?? ll) : { background: "none" };
6949
+ return e && e !== Po.BuiltInSheetPattern.None ? e === Po.BuiltInSheetPattern.Solid ? { background: t } : this._svgImage(t, r, ll[e] ?? ul) : { background: "none" };
6949
6950
  }
6950
6951
  toCSSMask(e, t, r) {
6951
- if (!e || e === Ro.BuiltInSheetPattern.None || e === Ro.BuiltInSheetPattern.Solid) return null;
6952
- const { path: n, size: a } = sl[e] ?? ll;
6952
+ if (!e || e === Po.BuiltInSheetPattern.None || e === Po.BuiltInSheetPattern.Solid) return null;
6953
+ const { path: n, size: a } = ll[e] ?? ul;
6953
6954
  return {
6954
6955
  base: { backgroundColor: r },
6955
6956
  marks: {
6956
6957
  backgroundColor: t,
6957
- maskImage: ul(n, a, "black"),
6958
+ maskImage: dl(n, a, "black"),
6958
6959
  maskRepeat: "repeat",
6959
6960
  maskSize: `${a}px ${a}px`,
6960
6961
  maskPosition: "0px 0px"
6961
6962
  }
6962
6963
  };
6963
6964
  }
6964
- }(), cl = class {
6965
+ }(), ml = class {
6965
6966
  constructor(e, t) {
6966
6967
  this._h = e, this._p = t;
6967
6968
  }
@@ -6981,9 +6982,9 @@ var tl = el.length, rl = {
6981
6982
  get isIFill() {
6982
6983
  return !0;
6983
6984
  }
6984
- }, ml = Object.freeze({ background: "none" }), hl = class extends cl {
6985
+ }, hl = Object.freeze({ background: "none" }), pl = class extends ml {
6985
6986
  getType() {
6986
- return Ro.Type.None;
6987
+ return Po.Type.None;
6987
6988
  }
6988
6989
  getColor() {
6989
6990
  return null;
@@ -6992,16 +6993,16 @@ var tl = el.length, rl = {
6992
6993
  return null === e ? this : this._update({ color: e }, s("op.setFillColor"), t);
6993
6994
  }
6994
6995
  toCSS(e) {
6995
- return ml;
6996
+ return hl;
6996
6997
  }
6997
6998
  hasVisibleStyling() {
6998
6999
  return !1;
6999
7000
  }
7000
7001
  isEqual(e) {
7001
- return !!e && e.getType() === Ro.Type.None;
7002
+ return !!e && e.getType() === Po.Type.None;
7002
7003
  }
7003
7004
  toJSON() {
7004
- return { type: Ro.Type.None };
7005
+ return { type: Po.Type.None };
7005
7006
  }
7006
7007
  get [Symbol.toStringTag]() {
7007
7008
  return "[NoneFill]";
@@ -7009,12 +7010,12 @@ var tl = el.length, rl = {
7009
7010
  toString() {
7010
7011
  return "[NoneFill]";
7011
7012
  }
7012
- }, pl = class extends cl {
7013
+ }, gl = class extends ml {
7013
7014
  getType() {
7014
- return Ro.Type.Solid;
7015
+ return Po.Type.Solid;
7015
7016
  }
7016
7017
  getColor() {
7017
- return this._h.parseColor(this._value("color") ?? to.Scheme.Bg1);
7018
+ return this._h.parseColor(this._value("color") ?? ro.Scheme.Bg1);
7018
7019
  }
7019
7020
  setColor(e, t) {
7020
7021
  return this._update({ color: e }, s("op.setFillColor"), t);
@@ -7027,11 +7028,11 @@ var tl = el.length, rl = {
7027
7028
  return !e || !e.isEqual(this);
7028
7029
  }
7029
7030
  isEqual(e) {
7030
- return !!e && e.getType() === Ro.Type.Solid && !!e.getColor().isEqual(this.getColor());
7031
+ return !!e && e.getType() === Po.Type.Solid && !!e.getColor().isEqual(this.getColor());
7031
7032
  }
7032
7033
  toJSON() {
7033
7034
  return {
7034
- type: Ro.Type.Solid,
7035
+ type: Po.Type.Solid,
7035
7036
  color: this.getColor()?.toString() ?? null
7036
7037
  };
7037
7038
  }
@@ -7041,7 +7042,7 @@ var tl = el.length, rl = {
7041
7042
  toString() {
7042
7043
  return "[SolidFill]";
7043
7044
  }
7044
- }, gl = class extends cl {
7045
+ }, fl = class extends ml {
7045
7046
  constructor(e, t, r, n) {
7046
7047
  super(r, n), this._i = e, this._l = t;
7047
7048
  }
@@ -7049,18 +7050,18 @@ var tl = el.length, rl = {
7049
7050
  return this._value("offset") ?? (this._l > 1 ? this._i / (this._l - 1) : 0);
7050
7051
  }
7051
7052
  getColor() {
7052
- return this._h.parseColor(this._value("color") ?? to.Scheme.Bg1);
7053
+ return this._h.parseColor(this._value("color") ?? ro.Scheme.Bg1);
7053
7054
  }
7054
- }, fl = class extends cl {
7055
+ }, yl = class extends ml {
7055
7056
  getType() {
7056
- return Ro.Type.Gradient;
7057
+ return Po.Type.Gradient;
7057
7058
  }
7058
7059
  _stops() {
7059
7060
  return this._value("stops") ?? r.EmptyArray;
7060
7061
  }
7061
7062
  getColor() {
7062
7063
  const e = this._stops(), t = e.length;
7063
- return 0 === t ? null : new gl(0, t, this._h, [e[0]]).getColor();
7064
+ return 0 === t ? null : new fl(0, t, this._h, [e[0]]).getColor();
7064
7065
  }
7065
7066
  setColor(e, t) {
7066
7067
  const r = this._stops(), n = r.length > 0 ? { ...r[0] } : {
@@ -7071,14 +7072,14 @@ var tl = el.length, rl = {
7071
7072
  }
7072
7073
  getStops() {
7073
7074
  const e = this._stops(), t = e.length, n = 0 === t ? r.EmptyArray : new Array(t);
7074
- for (let r = 0; r < t; r++) n[r] = new gl(r, t, this._h, [e[r]]);
7075
+ for (let r = 0; r < t; r++) n[r] = new fl(r, t, this._h, [e[r]]);
7075
7076
  return n;
7076
7077
  }
7077
7078
  setStops(e, t) {
7078
7079
  return this._update({ stops: e }, s("op.setStops"), t);
7079
7080
  }
7080
7081
  getGradientType() {
7081
- return this._value("gradientType") ?? Ro.GradientType.Linear;
7082
+ return this._value("gradientType") ?? Po.GradientType.Linear;
7082
7083
  }
7083
7084
  setGradientType(e, t) {
7084
7085
  return this._update({ gradientType: e }, s("op.setGradientType"), t);
@@ -7096,7 +7097,7 @@ var tl = el.length, rl = {
7096
7097
  return this._update({ focus: e }, s("op.setFocus"), t);
7097
7098
  }
7098
7099
  toCSS(e, t) {
7099
- const r = ts(this, e, t);
7100
+ const r = rs(this, e, t);
7100
7101
  return r ? { background: r } : null;
7101
7102
  }
7102
7103
  hasVisibleStyling() {
@@ -7106,7 +7107,7 @@ var tl = el.length, rl = {
7106
7107
  return !1;
7107
7108
  }
7108
7109
  toJSON() {
7109
- const e = { type: Ro.Type.Gradient }, t = this._stops(), r = t.length;
7110
+ const e = { type: Po.Type.Gradient }, t = this._stops(), r = t.length;
7110
7111
  if (r > 0) {
7111
7112
  const n = new Array(r);
7112
7113
  for (let e = 0; e < r; e++) {
@@ -7115,7 +7116,7 @@ var tl = el.length, rl = {
7115
7116
  }
7116
7117
  e.stops = n;
7117
7118
  }
7118
- return 0 !== this.getAngle() && (e.angle = this.getAngle()), this.getGradientType() !== Ro.GradientType.Linear && (e.gradientType = this.getGradientType()), this.getFocus() && (e.focus = this.getFocus()), e;
7119
+ return 0 !== this.getAngle() && (e.angle = this.getAngle()), this.getGradientType() !== Po.GradientType.Linear && (e.gradientType = this.getGradientType()), this.getFocus() && (e.focus = this.getFocus()), e;
7119
7120
  }
7120
7121
  get [Symbol.toStringTag]() {
7121
7122
  return "[GradientFill]";
@@ -7123,9 +7124,9 @@ var tl = el.length, rl = {
7123
7124
  toString() {
7124
7125
  return "[GradientFill]";
7125
7126
  }
7126
- }, yl = class extends cl {
7127
+ }, Sl = class extends ml {
7127
7128
  getType() {
7128
- return Ro.Type.Pattern;
7129
+ return Po.Type.Pattern;
7129
7130
  }
7130
7131
  getColor() {
7131
7132
  return this.getBackground();
@@ -7134,48 +7135,48 @@ var tl = el.length, rl = {
7134
7135
  return this.setBackground(e, t);
7135
7136
  }
7136
7137
  getBackground() {
7137
- const e = this._value("background") ?? to.Named.Window;
7138
+ const e = this._value("background") ?? ro.Named.Window;
7138
7139
  return this._h.parseColor(e);
7139
7140
  }
7140
7141
  setBackground(e, t) {
7141
7142
  return this._update({ background: e }, s("op.setBackgroundColor"), t);
7142
7143
  }
7143
7144
  getForeground() {
7144
- return this._h.parseColor(this._value("foreground") ?? to.Scheme.Tx1);
7145
+ return this._h.parseColor(this._value("foreground") ?? ro.Scheme.Tx1);
7145
7146
  }
7146
7147
  setForeground(e, t) {
7147
7148
  return this._update({ foreground: e }, s("op.setForegroundColor"), t);
7148
7149
  }
7149
7150
  getPatternType() {
7150
- return this._value("patternType") ?? Ro.BuiltInSheetPattern.None;
7151
+ return this._value("patternType") ?? Po.BuiltInSheetPattern.None;
7151
7152
  }
7152
7153
  setPatternType(e, t) {
7153
7154
  return this._update({ patternType: e }, s("op.setPatternType"), t);
7154
7155
  }
7155
7156
  toCSS(e) {
7156
- if (this.getPatternType() === Ro.BuiltInSheetPattern.None) return { background: "none" };
7157
- if (this.getPatternType() === Ro.BuiltInSheetPattern.Solid) return { background: this.getForeground().toCSS(e) };
7157
+ if (this.getPatternType() === Po.BuiltInSheetPattern.None) return { background: "none" };
7158
+ if (this.getPatternType() === Po.BuiltInSheetPattern.Solid) return { background: this.getForeground().toCSS(e) };
7158
7159
  const t = !0 === e, r = (e) => {
7159
7160
  const r = e.toRGBA(t);
7160
7161
  return 0 === r.alpha ? "none" : r.toString(!1);
7161
7162
  };
7162
- return dl.toCSS(this.getPatternType(), r(this.getForeground()), r(this.getBackground()));
7163
+ return cl.toCSS(this.getPatternType(), r(this.getForeground()), r(this.getBackground()));
7163
7164
  }
7164
7165
  toCSSMask(e) {
7165
- return dl.toCSSMask(this.getPatternType(), this.getForeground().toCSS(e), this.getBackground().toCSS(e));
7166
+ return cl.toCSSMask(this.getPatternType(), this.getForeground().toCSS(e), this.getBackground().toCSS(e));
7166
7167
  }
7167
7168
  hasVisibleStyling() {
7168
7169
  return !0;
7169
7170
  }
7170
7171
  isEqual(e) {
7171
7172
  if (!e) return !1;
7172
- if (e.getType() !== Ro.Type.Pattern) return !1;
7173
+ if (e.getType() !== Po.Type.Pattern) return !1;
7173
7174
  const t = e;
7174
7175
  return t.getPatternType() === this.getPatternType() && !!t.getForeground().isEqual(this.getForeground()) && !!t.getBackground().isEqual(this.getBackground());
7175
7176
  }
7176
7177
  toJSON() {
7177
- const e = { type: Ro.Type.Pattern };
7178
- this.getPatternType() !== Ro.BuiltInSheetPattern.None && (e.patternType = this.getPatternType());
7178
+ const e = { type: Po.Type.Pattern };
7179
+ this.getPatternType() !== Po.BuiltInSheetPattern.None && (e.patternType = this.getPatternType());
7179
7180
  const t = this.getForeground();
7180
7181
  t && (e.foreground = t.toString());
7181
7182
  const r = this.getBackground();
@@ -7187,7 +7188,7 @@ var tl = el.length, rl = {
7187
7188
  toString() {
7188
7189
  return "[PatternFill]";
7189
7190
  }
7190
- }, Sl = [
7191
+ }, bl = [
7191
7192
  "resId",
7192
7193
  "sourceRect",
7193
7194
  "stretch",
@@ -7196,16 +7197,16 @@ var tl = el.length, rl = {
7196
7197
  "compressionState",
7197
7198
  "extLst",
7198
7199
  "isRotatedWithShape"
7199
- ], bl = class extends cl {
7200
+ ], wl = class extends ml {
7200
7201
  getType() {
7201
- return Ro.Type.Image;
7202
+ return Po.Type.Image;
7202
7203
  }
7203
7204
  getColor() {
7204
7205
  return null;
7205
7206
  }
7206
7207
  setColor(e, t) {
7207
7208
  return null === e ? this : this._update({
7208
- type: Ro.Type.Solid,
7209
+ type: Po.Type.Solid,
7209
7210
  color: e
7210
7211
  }, s("op.setFillColor"), t);
7211
7212
  }
@@ -7217,21 +7218,21 @@ var tl = el.length, rl = {
7217
7218
  return void 0 !== this._value("tile");
7218
7219
  }
7219
7220
  toCSS(e) {
7220
- return ml;
7221
+ return hl;
7221
7222
  }
7222
7223
  hasVisibleStyling() {
7223
7224
  return !0;
7224
7225
  }
7225
7226
  isEqual(e) {
7226
7227
  if (!e) return !1;
7227
- if (e.getType() !== Ro.Type.Image) return !1;
7228
+ if (e.getType() !== Po.Type.Image) return !1;
7228
7229
  const t = e.toJSON(), r = this.toJSON();
7229
- for (const e of Sl) if (JSON.stringify(r[e]) !== JSON.stringify(t[e])) return !1;
7230
+ for (const e of bl) if (JSON.stringify(r[e]) !== JSON.stringify(t[e])) return !1;
7230
7231
  return !0;
7231
7232
  }
7232
7233
  toJSON() {
7233
- const e = { type: Ro.Type.Image };
7234
- for (const t of Sl) {
7234
+ const e = { type: Po.Type.Image };
7235
+ for (const t of bl) {
7235
7236
  const r = this._value(t);
7236
7237
  void 0 !== r && (e[t] = r);
7237
7238
  }
@@ -7244,25 +7245,25 @@ var tl = el.length, rl = {
7244
7245
  return "[ImageFill]";
7245
7246
  }
7246
7247
  };
7247
- function wl(e, t) {
7248
+ function vl(e, t) {
7248
7249
  const r = t.filter((e) => !!e);
7249
7250
  let n;
7250
7251
  for (let e = r.length - 1; void 0 === n && e >= 0; e--) n = r[e].type;
7251
7252
  if (void 0 === n) {
7252
7253
  for (let e = r.length - 1; e >= 0; e--) if (void 0 !== r[e].color) {
7253
- n = Ro.Type.Solid;
7254
+ n = Po.Type.Solid;
7254
7255
  break;
7255
7256
  }
7256
7257
  }
7257
7258
  switch (n) {
7258
- case Ro.Type.Solid: return new pl(e, r);
7259
- case Ro.Type.Gradient: return new fl(e, r);
7260
- case Ro.Type.Pattern: return new yl(e, r);
7261
- case Ro.Type.Image: return new bl(e, r);
7262
- default: return new hl(e, r);
7259
+ case Po.Type.Solid: return new gl(e, r);
7260
+ case Po.Type.Gradient: return new yl(e, r);
7261
+ case Po.Type.Pattern: return new Sl(e, r);
7262
+ case Po.Type.Image: return new wl(e, r);
7263
+ default: return new pl(e, r);
7263
7264
  }
7264
7265
  }
7265
- var vl, Cl, Ml, kl, Tl = Object.freeze({
7266
+ var Cl, Ml, kl, Tl, _l = Object.freeze({
7266
7267
  AccentBorderCallout1: "accentBorderCallout1",
7267
7268
  AccentBorderCallout2: "accentBorderCallout2",
7268
7269
  AccentBorderCallout3: "accentBorderCallout3",
@@ -7451,28 +7452,28 @@ var vl, Cl, Ml, kl, Tl = Object.freeze({
7451
7452
  WedgeRectCallout: "wedgeRectCallout",
7452
7453
  WedgeRoundRectCallout: "wedgeRoundRectCallout"
7453
7454
  });
7454
- (Cl = vl || (vl = {})).Preset = Tl, Cl.PathLayer = {
7455
+ (Ml = Cl || (Cl = {})).Preset = _l, Ml.PathLayer = {
7455
7456
  Fill: "fill",
7456
7457
  Stroke: "stroke",
7457
7458
  Marker: "marker"
7458
- }, Cl.FillTransfer = Object.freeze({
7459
+ }, Ml.FillTransfer = Object.freeze({
7459
7460
  norm: [1, 0],
7460
7461
  darken: [.6, 0],
7461
7462
  darkenLess: [.8, 0],
7462
7463
  lighten: [.6, .4],
7463
7464
  lightenLess: [.8, .2]
7464
- }), Cl.HandleType = {
7465
+ }), Ml.HandleType = {
7465
7466
  XY: "xy",
7466
7467
  Polar: "polar"
7467
- }, (kl = Ml || (Ml = {})).Type = {
7468
+ }, (Tl = kl || (kl = {})).Type = {
7468
7469
  Shape: "shape",
7469
7470
  Connector: "connector"
7470
- }, kl.ConnectorType = {
7471
+ }, Tl.ConnectorType = {
7471
7472
  Straight: "straight",
7472
7473
  Elbow: "elbow",
7473
7474
  Curved: "curved"
7474
7475
  };
7475
- var _l = 96 / 72, Dl = {
7476
+ var Dl = 96 / 72, Al = {
7476
7477
  head: [
7477
7478
  "headType",
7478
7479
  "headWidth",
@@ -7483,8 +7484,8 @@ var _l = 96 / 72, Dl = {
7483
7484
  "tailWidth",
7484
7485
  "tailLength"
7485
7486
  ]
7486
- }, Al = (e, t) => {
7487
- const [r, n, a] = Dl[e];
7487
+ }, xl = (e, t) => {
7488
+ const [r, n, a] = Al[e];
7488
7489
  if (null === t) return {
7489
7490
  [r]: null,
7490
7491
  [n]: null,
@@ -7496,7 +7497,7 @@ var _l = 96 / 72, Dl = {
7496
7497
  [n]: o.width ?? null,
7497
7498
  [a]: o.length ?? null
7498
7499
  };
7499
- }, xl = class e {
7500
+ }, Fl = class e {
7500
7501
  constructor(e, t) {
7501
7502
  this._fill = null, this._h = e, this._p = t.filter((e) => !!e);
7502
7503
  }
@@ -7521,7 +7522,7 @@ var _l = 96 / 72, Dl = {
7521
7522
  getResource: (t) => e.getResource?.(t) ?? null,
7522
7523
  updateFill: (t, r) => e.updateStroke({ fill: t }, r).getFill()
7523
7524
  }, r = this._p.map((e) => e.fill);
7524
- return this._fill = wl(t, r);
7525
+ return this._fill = vl(t, r);
7525
7526
  }
7526
7527
  setFill(e, t) {
7527
7528
  return this._update({ fill: e }, s("op.setStrokeColor"), t);
@@ -7534,19 +7535,19 @@ var _l = 96 / 72, Dl = {
7534
7535
  return this._update({ width: e }, s("op.setStrokeWidth"), t);
7535
7536
  }
7536
7537
  getDash() {
7537
- return this._value("dash") ?? Io.DashStyle.Solid;
7538
+ return this._value("dash") ?? Eo.DashStyle.Solid;
7538
7539
  }
7539
7540
  setDash(e, t) {
7540
7541
  return this._update({ dash: e }, s("op.setStrokeDash"), t);
7541
7542
  }
7542
7543
  getLineCap() {
7543
- return this._value("lineCap") ?? Io.LineCap.Butt;
7544
+ return this._value("lineCap") ?? Eo.LineCap.Butt;
7544
7545
  }
7545
7546
  setLineCap(e, t) {
7546
7547
  return this._update({ lineCap: e }, s("op.setStroke"), t);
7547
7548
  }
7548
7549
  getLineJoin() {
7549
- return this._value("lineJoin") ?? Io.LineJoin.Miter;
7550
+ return this._value("lineJoin") ?? Eo.LineJoin.Miter;
7550
7551
  }
7551
7552
  setLineJoin(e, t) {
7552
7553
  return this._update({ lineJoin: e }, s("op.setStroke"), t);
@@ -7556,7 +7557,7 @@ var _l = 96 / 72, Dl = {
7556
7557
  return "number" == typeof e ? e : 10;
7557
7558
  }
7558
7559
  _end(e) {
7559
- const [t, r, n] = Dl[e], a = { type: this._value(t) ?? Io.LineEndType.None }, o = this._value(r);
7560
+ const [t, r, n] = Al[e], a = { type: this._value(t) ?? Eo.LineEndType.None }, o = this._value(r);
7560
7561
  void 0 !== o && (a.width = o);
7561
7562
  const i = this._value(n);
7562
7563
  return void 0 !== i && (a.length = i), a;
@@ -7565,19 +7566,19 @@ var _l = 96 / 72, Dl = {
7565
7566
  return this._end("head");
7566
7567
  }
7567
7568
  setHead(e, t) {
7568
- return this._update(Al("head", e), s("op.setLineEnds"), t);
7569
+ return this._update(xl("head", e), s("op.setLineEnds"), t);
7569
7570
  }
7570
7571
  getTail() {
7571
7572
  return this._end("tail");
7572
7573
  }
7573
7574
  setTail(e, t) {
7574
- return this._update(Al("tail", e), s("op.setLineEnds"), t);
7575
+ return this._update(xl("tail", e), s("op.setLineEnds"), t);
7575
7576
  }
7576
7577
  getCompound() {
7577
- return this._value("compound") ?? Io.Compound.Single;
7578
+ return this._value("compound") ?? Eo.Compound.Single;
7578
7579
  }
7579
7580
  getAlign() {
7580
- return this._value("align") ?? Io.Align.Center;
7581
+ return this._value("align") ?? Eo.Align.Center;
7581
7582
  }
7582
7583
  update(t, r) {
7583
7584
  return this._h.updateStroke(e.toModifiers(t), {
@@ -7586,7 +7587,7 @@ var _l = 96 / 72, Dl = {
7586
7587
  });
7587
7588
  }
7588
7589
  isVisible() {
7589
- return this.getWidth() > 0 && this.getFill().getType() !== Ro.Type.None;
7590
+ return this.getWidth() > 0 && this.getFill().getType() !== Po.Type.None;
7590
7591
  }
7591
7592
  isEqual(e) {
7592
7593
  return !!e && JSON.stringify(this.toJSON()) === JSON.stringify(e.toJSON());
@@ -7595,8 +7596,8 @@ var _l = 96 / 72, Dl = {
7595
7596
  if (!this.isVisible()) return { border: "none" };
7596
7597
  const r = this.getFill().getColor(), n = this.getDash();
7597
7598
  return {
7598
- borderWidth: this.getWidth() * _l + "px",
7599
- borderStyle: n === Io.DashStyle.Solid ? "solid" : n === Io.DashStyle.Dot || n === Io.DashStyle.SysDot ? "dotted" : "dashed",
7599
+ borderWidth: this.getWidth() * Dl + "px",
7600
+ borderStyle: n === Eo.DashStyle.Solid ? "solid" : n === Eo.DashStyle.Dot || n === Eo.DashStyle.SysDot ? "dotted" : "dashed",
7600
7601
  borderColor: r ? r.toCSS(e) : "currentColor"
7601
7602
  };
7602
7603
  }
@@ -7619,17 +7620,17 @@ var _l = 96 / 72, Dl = {
7619
7620
  if ("string" == typeof e) return { fill: e };
7620
7621
  if (e.isIStroke) return e.toJSON();
7621
7622
  const { head: t, tail: r, ...n } = e, a = { ...n };
7622
- return void 0 !== t && Object.assign(a, Al("head", t)), void 0 !== r && Object.assign(a, Al("tail", r)), a;
7623
- }
7624
- }, Fl = e({
7625
- TEXT_DEFAULTS: () => jl,
7626
- defaultStyleRefs: () => Pl,
7627
- inheritedGroupFill: () => Ul,
7628
- inheritedTextSize: () => Gl,
7629
- resolve: () => Kl,
7630
- withThemeDefaults: () => Il,
7631
- withoutDefaultStyleRefs: () => El
7632
- }), Nl = Object.freeze({
7623
+ return void 0 !== t && Object.assign(a, xl("head", t)), void 0 !== r && Object.assign(a, xl("tail", r)), a;
7624
+ }
7625
+ }, Nl = e({
7626
+ TEXT_DEFAULTS: () => Gl,
7627
+ defaultStyleRefs: () => Il,
7628
+ inheritedGroupFill: () => Kl,
7629
+ inheritedTextSize: () => Ol,
7630
+ resolve: () => Wl,
7631
+ withThemeDefaults: () => El,
7632
+ withoutDefaultStyleRefs: () => jl
7633
+ }), Bl = Object.freeze({
7633
7634
  fill: {
7634
7635
  index: 1,
7635
7636
  color: "accent1"
@@ -7646,7 +7647,7 @@ var _l = 96 / 72, Dl = {
7646
7647
  index: W.Scheme.Minor,
7647
7648
  color: "lt1"
7648
7649
  }
7649
- }), Bl = Object.freeze({
7650
+ }), Ll = Object.freeze({
7650
7651
  fill: {
7651
7652
  index: 0,
7652
7653
  color: "accent1"
@@ -7663,7 +7664,7 @@ var _l = 96 / 72, Dl = {
7663
7664
  index: W.Scheme.Minor,
7664
7665
  color: "tx1"
7665
7666
  }
7666
- }), Ll = Object.freeze({
7667
+ }), Rl = Object.freeze({
7667
7668
  fill: { index: 0 },
7668
7669
  stroke: { index: 0 },
7669
7670
  effect: { index: 0 },
@@ -7671,24 +7672,24 @@ var _l = 96 / 72, Dl = {
7671
7672
  index: W.Scheme.Minor,
7672
7673
  color: "dk1"
7673
7674
  }
7674
- }), Rl = Object.freeze({
7675
+ }), Pl = Object.freeze({
7675
7676
  fill: {
7676
- type: Ro.Type.Solid,
7677
+ type: Po.Type.Solid,
7677
7678
  color: "lt1"
7678
7679
  },
7679
7680
  stroke: {
7680
7681
  width: .75,
7681
7682
  fill: {
7682
- type: Ro.Type.Solid,
7683
+ type: Po.Type.Solid,
7683
7684
  color: "lt1 shade 50"
7684
7685
  }
7685
7686
  }
7686
7687
  });
7687
- function Pl(e) {
7688
- return e?.type === Ml.Type.Connector ? Bl : e?.textBox ? Ll : Nl;
7688
+ function Il(e) {
7689
+ return e?.type === kl.Type.Connector ? Ll : e?.textBox ? Rl : Bl;
7689
7690
  }
7690
- function Il(e, t) {
7691
- const r = t.getObjectDefaults(), n = e.type === Ml.Type.Connector, a = (n ? r.line : e.textBox ? r.text : r.shape) ?? (e.textBox ? Rl : null);
7691
+ function El(e, t) {
7692
+ const r = t.getObjectDefaults(), n = e.type === kl.Type.Connector, a = (n ? r.line : e.textBox ? r.text : r.shape) ?? (e.textBox ? Pl : null);
7692
7693
  if (!a) return e;
7693
7694
  const { type: o, geometry: i, textBox: s, ...l } = a;
7694
7695
  n && delete l.text;
@@ -7709,13 +7710,13 @@ function Il(e, t) {
7709
7710
  ...l.text.body,
7710
7711
  ...e.text.body
7711
7712
  }));
7712
- const d = El(u);
7713
+ const d = jl(u);
7713
7714
  return void 0 === d ? delete u.style : u.style = d, u;
7714
7715
  }
7715
- function El(e) {
7716
+ function jl(e) {
7716
7717
  const t = e.style;
7717
7718
  if (!t) return t;
7718
- const r = Pl(e), n = {};
7719
+ const r = Il(e), n = {};
7719
7720
  for (const e of [
7720
7721
  "fill",
7721
7722
  "stroke",
@@ -7727,48 +7728,48 @@ function El(e) {
7727
7728
  }
7728
7729
  return Object.keys(n).length > 0 ? n : void 0;
7729
7730
  }
7730
- var jl = Object.freeze({
7731
+ var Gl = Object.freeze({
7731
7732
  verticalOverflow: d.Overflow.Clip,
7732
7733
  horizontalOverflow: d.Overflow.Clip,
7733
7734
  size: 11
7734
7735
  });
7735
- function Gl(e, t) {
7736
+ function Ol(e, t) {
7736
7737
  const r = e.listStyle;
7737
7738
  return t.defaultRun?.size ?? r?.levels?.[t.level ?? 0]?.defaultRun?.size ?? r?.default?.defaultRun?.size;
7738
7739
  }
7739
- var Ol = (e, t) => "string" == typeof e && e.startsWith("phClr") ? (t ?? "tx1") + e.slice(5) : e, zl = (e, t) => {
7740
+ var zl = (e, t) => "string" == typeof e && e.startsWith("phClr") ? (t ?? "tx1") + e.slice(5) : e, $l = (e, t) => {
7740
7741
  const r = { ...e };
7741
- return "color" in r && (r.color = Ol(r.color, t)), "foreground" in r && (r.foreground = Ol(r.foreground, t)), "background" in r && (r.background = Ol(r.background, t)), Array.isArray(r.stops) && (r.stops = r.stops.map((e) => "string" == typeof e ? Ol(e, t) : {
7742
+ return "color" in r && (r.color = zl(r.color, t)), "foreground" in r && (r.foreground = zl(r.foreground, t)), "background" in r && (r.background = zl(r.background, t)), Array.isArray(r.stops) && (r.stops = r.stops.map((e) => "string" == typeof e ? zl(e, t) : {
7742
7743
  ...e,
7743
- color: Ol(e.color, t)
7744
+ color: zl(e.color, t)
7744
7745
  })), r;
7745
- }, $l = (e, t) => {
7746
- if (!e) return;
7747
- if (e.index <= 0) return { type: Ro.Type.None };
7748
- const r = t?.fillStyleLst?.length ? t.fillStyleLst : Xo.fillStyleLst, n = r[Math.min(e.index, r.length) - 1];
7749
- return n ? zl(n, e.color) : void 0;
7750
7746
  }, Hl = (e, t) => {
7751
7747
  if (!e) return;
7752
- if (e.index <= 0) return { fill: { type: Ro.Type.None } };
7753
- const r = t?.lnStyleLst?.length ? t.lnStyleLst : Xo.lnStyleLst, n = r[Math.min(e.index, r.length) - 1];
7748
+ if (e.index <= 0) return { type: Po.Type.None };
7749
+ const r = t?.fillStyleLst?.length ? t.fillStyleLst : Zo.fillStyleLst, n = r[Math.min(e.index, r.length) - 1];
7750
+ return n ? $l(n, e.color) : void 0;
7751
+ }, Ul = (e, t) => {
7752
+ if (!e) return;
7753
+ if (e.index <= 0) return { fill: { type: Po.Type.None } };
7754
+ const r = t?.lnStyleLst?.length ? t.lnStyleLst : Zo.lnStyleLst, n = r[Math.min(e.index, r.length) - 1];
7754
7755
  if (!n) return;
7755
7756
  const a = { ...n };
7756
- return a.fill && (a.fill = zl(a.fill, e.color)), a;
7757
+ return a.fill && (a.fill = $l(a.fill, e.color)), a;
7757
7758
  };
7758
- function Ul(e) {
7759
+ function Kl(e) {
7759
7760
  let t = e?.getParent() ?? null;
7760
7761
  for (; t;) {
7761
7762
  const e = t.getContent().getFill?.() ?? null;
7762
- if (e && e.type !== Ro.Type.Group) return e;
7763
+ if (e && e.type !== Po.Type.Group) return e;
7763
7764
  t = t.getParent();
7764
7765
  }
7765
7766
  return null;
7766
7767
  }
7767
- function Kl(e, t, r) {
7768
+ function Wl(e, t, r) {
7768
7769
  const n = null === e?.style ? {} : {
7769
- ...Pl(e),
7770
+ ...Il(e),
7770
7771
  ...e?.style
7771
- }, a = (e?.fill?.type === Ro.Type.Group ? r ?? void 0 : e?.fill) ?? $l(n.fill, t), o = Hl(n.stroke, t), i = e?.stroke, s = i || o ? {
7772
+ }, a = (e?.fill?.type === Po.Type.Group ? r ?? void 0 : e?.fill) ?? Hl(n.fill, t), o = Ul(n.stroke, t), i = e?.stroke, s = i || o ? {
7772
7773
  ...o,
7773
7774
  ...i,
7774
7775
  fill: i?.fill ?? o?.fill
@@ -7777,11 +7778,11 @@ function Kl(e, t, r) {
7777
7778
  fill: a,
7778
7779
  stroke: s,
7779
7780
  strokeWidth: "number" == typeof s?.width ? s.width : .75,
7780
- fontColor: n.font?.color ?? (a && a.type !== Ro.Type.None ? "lt1" : "tx1")
7781
+ fontColor: n.font?.color ?? (a && a.type !== Po.Type.None ? "lt1" : "tx1")
7781
7782
  };
7782
7783
  }
7783
- var Wl, Vl = [
7784
- [() => import("./DyIASfKKPuNl5Xx-.mjs"), [
7784
+ var Vl, Jl = [
7785
+ [() => import("./RTwm9ge1KoPdlBNt.mjs"), [
7785
7786
  "bentConnector2",
7786
7787
  "bentConnector3",
7787
7788
  "bentConnector4",
@@ -7794,7 +7795,7 @@ var Wl, Vl = [
7794
7795
  "lineInv",
7795
7796
  "straightConnector1"
7796
7797
  ]],
7797
- [() => import("./BRnNpoS8VpkAhdVk.mjs"), [
7798
+ [() => import("./A3PEHO1HJvkHfb5n.mjs"), [
7798
7799
  "rect",
7799
7800
  "round1Rect",
7800
7801
  "round2DiagRect",
@@ -7805,7 +7806,7 @@ var Wl, Vl = [
7805
7806
  "snip2SameRect",
7806
7807
  "snipRoundRect"
7807
7808
  ]],
7808
- [() => import("./D9zb5xVRehABdbXL.mjs"), [
7809
+ [() => import("./BywIhvYkWk2o7MSW.mjs"), [
7809
7810
  "mathDivide",
7810
7811
  "mathEqual",
7811
7812
  "mathMinus",
@@ -7813,7 +7814,7 @@ var Wl, Vl = [
7813
7814
  "mathNotEqual",
7814
7815
  "mathPlus"
7815
7816
  ]],
7816
- [() => import("./ZtF9EuipL7Z9Iwfs.mjs"), [
7817
+ [() => import("./B4WUGzJBkQu7BXRm.mjs"), [
7817
7818
  "flowChartAlternateProcess",
7818
7819
  "flowChartCollate",
7819
7820
  "flowChartConnector",
@@ -7844,7 +7845,7 @@ var Wl, Vl = [
7844
7845
  "flowChartSummingJunction",
7845
7846
  "flowChartTerminator"
7846
7847
  ]],
7847
- [() => import("./WBHD7ECKG6HZ5UpY.mjs"), [
7848
+ [() => import("./DOt3t-13tsnM7Fj6.mjs"), [
7848
7849
  "bentArrow",
7849
7850
  "bentUpArrow",
7850
7851
  "chevron",
@@ -7877,7 +7878,7 @@ var Wl, Vl = [
7877
7878
  "upDownArrowCallout",
7878
7879
  "uturnArrow"
7879
7880
  ]],
7880
- [() => import("./DW3u4bBJIUaHZ6m-.mjs"), [
7881
+ [() => import("./C_fYuynP2a_70WdL.mjs"), [
7881
7882
  "accentBorderCallout1",
7882
7883
  "accentBorderCallout2",
7883
7884
  "accentBorderCallout3",
@@ -7895,7 +7896,7 @@ var Wl, Vl = [
7895
7896
  "wedgeRectCallout",
7896
7897
  "wedgeRoundRectCallout"
7897
7898
  ]],
7898
- [() => import("./DQqXPS05dvF0F-gh.mjs"), [
7899
+ [() => import("./_RIAmJI98l6bIFfZ.mjs"), [
7899
7900
  "doubleWave",
7900
7901
  "ellipseRibbon",
7901
7902
  "ellipseRibbon2",
@@ -7918,7 +7919,7 @@ var Wl, Vl = [
7918
7919
  "verticalScroll",
7919
7920
  "wave"
7920
7921
  ]],
7921
- [() => import("./C6b4rM62pIWIywlM.mjs"), [
7922
+ [() => import("./CKwiipdPJGzAiPjg.mjs"), [
7922
7923
  "actionButtonBackPrevious",
7923
7924
  "actionButtonBeginning",
7924
7925
  "actionButtonBlank",
@@ -7938,7 +7939,7 @@ var Wl, Vl = [
7938
7939
  "plaqueTabs",
7939
7940
  "squareTabs"
7940
7941
  ]],
7941
- [() => import("./Dh8o-woVpmUL50BD.mjs"), [
7942
+ [() => import("./KDGrIa9R5XzWfjM2.mjs"), [
7942
7943
  "arc",
7943
7944
  "bevel",
7944
7945
  "blockArc",
@@ -7986,7 +7987,7 @@ var Wl, Vl = [
7986
7987
  "trapezoid",
7987
7988
  "triangle"
7988
7989
  ]]
7989
- ], Jl = (e) => {
7990
+ ], ql = (e) => {
7990
7991
  let t = null;
7991
7992
  return () => {
7992
7993
  if (!t) {
@@ -7997,7 +7998,7 @@ var Wl, Vl = [
7997
7998
  }
7998
7999
  return t;
7999
8000
  };
8000
- }, ql = Jl(() => import("./OnkJkCGFDjamqIUQ.mjs")), Yl = Jl(() => import("./C-JEySqMuKdpcKe0.mjs")), Xl = null, Zl = (e) => {
8001
+ }, Yl = ql(() => import("./Bknw7zWZhl2-w1pi.mjs")), Xl = ql(() => import("./CgdNA3B_GFG_yJiN.mjs")), Zl = null, Ql = (e) => {
8001
8002
  const t = /* @__PURE__ */ new Map();
8002
8003
  for (const [r, n] of Object.entries(e.BUILT_IN)) {
8003
8004
  const { cxn: a } = n;
@@ -8010,36 +8011,36 @@ var Wl, Vl = [
8010
8011
  });
8011
8012
  }
8012
8013
  return t;
8013
- }, Ql = () => {
8014
- if (Xl) return Xl;
8015
- Xl = /* @__PURE__ */ new Map();
8016
- for (const [e, t] of Vl) {
8017
- const r = Jl(() => e().then(Zl));
8018
- for (const e of t) Xl.set(e, r);
8019
- }
8020
- return Xl;
8021
- }, eu = async (e) => {
8022
- const t = Ql().get(e);
8014
+ }, eu = () => {
8015
+ if (Zl) return Zl;
8016
+ Zl = /* @__PURE__ */ new Map();
8017
+ for (const [e, t] of Jl) {
8018
+ const r = ql(() => e().then(Ql));
8019
+ for (const e of t) Zl.set(e, r);
8020
+ }
8021
+ return Zl;
8022
+ }, tu = async (e) => {
8023
+ const t = eu().get(e);
8023
8024
  if (t) return (await t()).get(e);
8024
- }, tu = 96 / 72, ru = (e) => t(e, 2), nu = (e, t, r) => {
8025
- if (!e || e === Io.LineEndType.None) return;
8025
+ }, ru = 96 / 72, nu = (e) => t(e, 2), au = (e, t, r) => {
8026
+ if (!e || e === Eo.LineEndType.None) return;
8026
8027
  const n = { type: e };
8027
8028
  return t && (n.width = t), r && (n.length = r), n;
8028
- }, au = (e) => {
8029
+ }, ou = (e) => {
8029
8030
  const t = e.stroke;
8030
- return t?.fill && t.fill.type !== Ro.Type.None ? ou(e) / 2 * Math.SQRT2 : 0;
8031
- }, ou = (e) => Math.max(Math.max(0, e.strokeWidth) * tu, 1), iu = (e, t) => ({
8031
+ return t?.fill && t.fill.type !== Po.Type.None ? iu(e) / 2 * Math.SQRT2 : 0;
8032
+ }, iu = (e) => Math.max(Math.max(0, e.strokeWidth) * ru, 1), su = (e, t) => ({
8032
8033
  r: e,
8033
8034
  b: t,
8034
8035
  hc: e / 2,
8035
8036
  vc: t / 2
8036
- }), su = (e, t, r) => ({ ...r }), lu = {
8037
+ }), lu = (e, t, r) => ({ ...r }), uu = {
8037
8038
  pad: 0,
8038
8039
  evaluate(e, t) {
8039
- const { r, b: n, hc: a, vc: o } = iu(e, t);
8040
+ const { r, b: n, hc: a, vc: o } = su(e, t);
8040
8041
  return {
8041
8042
  paths: [{
8042
- d: `M0 0 L${ru(r)} 0 L${ru(r)} ${ru(n)} L0 ${ru(n)} Z`,
8043
+ d: `M0 0 L${nu(r)} 0 L${nu(r)} ${nu(n)} L0 ${nu(n)} Z`,
8043
8044
  fill: "norm",
8044
8045
  stroke: !0
8045
8046
  }],
@@ -8081,34 +8082,34 @@ var Wl, Vl = [
8081
8082
  adjustments: {}
8082
8083
  };
8083
8084
  },
8084
- adjustmentsFromHandle: su
8085
- }, uu = (e, t, r) => {
8085
+ adjustmentsFromHandle: lu
8086
+ }, du = (e, t, r) => {
8086
8087
  const n = r ? { line: r } : void 0;
8087
8088
  return {
8088
8089
  pad: 0,
8089
8090
  evaluate: (r, a, o) => e.evaluateGeometry(t, r, a, o, n),
8090
8091
  adjustmentsFromHandle: (r, n, a, o, i, s) => e.adjustmentsFromHandle(t, r, n, a, o, i, s)
8091
8092
  };
8092
- }, du = async (e, t) => {
8093
- const r = Kl(e, t), n = await cu(e, ((e) => {
8093
+ }, cu = async (e, t) => {
8094
+ const r = Wl(e, t), n = await mu(e, ((e) => {
8094
8095
  const t = e.stroke;
8095
- if (!t?.fill || t.fill.type === Ro.Type.None) return;
8096
- const r = nu(t.headType, t.headWidth, t.headLength), n = nu(t.tailType, t.tailWidth, t.tailLength);
8096
+ if (!t?.fill || t.fill.type === Po.Type.None) return;
8097
+ const r = au(t.headType, t.headWidth, t.headLength), n = au(t.tailType, t.tailWidth, t.tailLength);
8097
8098
  if (!r && !n) return;
8098
- const a = { width: ou(e) };
8099
+ const a = { width: iu(e) };
8099
8100
  return t.lineCap && (a.cap = t.lineCap), r && (a.head = r), n && (a.tail = n), a;
8100
8101
  })(r));
8101
8102
  return n ? {
8102
8103
  ...n,
8103
- pad: au(r)
8104
+ pad: ou(r)
8104
8105
  } : null;
8105
- }, cu = async (e, t) => {
8106
+ }, mu = async (e, t) => {
8106
8107
  const r = e.geometry ?? "rect";
8107
- if ("rect" === r) return lu;
8108
+ if ("rect" === r) return uu;
8108
8109
  if ("line" === r || "straightConnector1" === r) return ((e, t, r) => ({
8109
8110
  pad: 0,
8110
8111
  evaluate(n, a) {
8111
- const { r: o, b: i } = iu(n, a), s = `M0 0 L${ru(o)} ${ru(i)}`, l = "line" === e, u = [], d = {
8112
+ const { r: o, b: i } = su(n, a), s = `M0 0 L${nu(o)} ${nu(i)}`, l = "line" === e, u = [], d = {
8112
8113
  x: 0,
8113
8114
  y: 0,
8114
8115
  segments: [{
@@ -8164,14 +8165,14 @@ var Wl, Vl = [
8164
8165
  adjustments: {}
8165
8166
  };
8166
8167
  },
8167
- adjustmentsFromHandle: su
8168
- }))(r, t, t ? await Yl() : null);
8169
- if ("object" == typeof r) return uu(await ql(), r, t);
8170
- if (n = r, !Ql().has(n)) return null;
8168
+ adjustmentsFromHandle: lu
8169
+ }))(r, t, t ? await Xl() : null);
8170
+ if ("object" == typeof r) return du(await Yl(), r, t);
8171
+ if (n = r, !eu().has(n)) return null;
8171
8172
  var n;
8172
- const [a, o] = await Promise.all([ql(), eu(r)]);
8173
- return o ? uu(a, o, t) : null;
8174
- }, mu = class e {
8173
+ const [a, o] = await Promise.all([Yl(), tu(r)]);
8174
+ return o ? du(a, o, t) : null;
8175
+ }, hu = class e {
8175
8176
  constructor(e, t, r, n) {
8176
8177
  this._evaluator = e, this._width = t, this._height = r, this._adjustments = n, this._evaluated = e.evaluate(t, r, n);
8177
8178
  }
@@ -8206,9 +8207,9 @@ var Wl, Vl = [
8206
8207
  fill: a
8207
8208
  });
8208
8209
  };
8209
- for (const t of e.paths) "" !== t.d && "none" !== t.fill && "line" !== t.fill && n(t.d, vl.PathLayer.Fill, t.fill);
8210
- for (const t of e.paths) "" !== t.d && t.stroke && n(t.d, vl.PathLayer.Stroke, "norm");
8211
- for (const t of e.paths) "" !== t.d && "line" === t.fill && n(t.d, vl.PathLayer.Marker, "norm");
8210
+ for (const t of e.paths) "" !== t.d && "none" !== t.fill && "line" !== t.fill && n(t.d, Cl.PathLayer.Fill, t.fill);
8211
+ for (const t of e.paths) "" !== t.d && t.stroke && n(t.d, Cl.PathLayer.Stroke, "norm");
8212
+ for (const t of e.paths) "" !== t.d && "line" === t.fill && n(t.d, Cl.PathLayer.Marker, "norm");
8212
8213
  })(this._evaluated, e, () => t++);
8213
8214
  }
8214
8215
  forEachHandle(e) {
@@ -8234,40 +8235,40 @@ var Wl, Vl = [
8234
8235
  adjustmentsFromHandle(e, t, r) {
8235
8236
  return this._evaluator.adjustmentsFromHandle(this._width, this._height, this._adjustments, e, t, r);
8236
8237
  }
8237
- }, hu = (e) => e instanceof mu ? e._getDrawnRect() : e.getPathBounds(), pu = async (e, t, r, n) => {
8238
- const a = await du(e, t);
8239
- return a ? new mu(a, r, n, e.adjustments) : null;
8240
- }, gu = a.PassThrough, fu = { properties: {
8241
- fill: rl,
8238
+ }, pu = (e) => e instanceof hu ? e._getDrawnRect() : e.getPathBounds(), gu = async (e, t, r, n) => {
8239
+ const a = await cu(e, t);
8240
+ return a ? new hu(a, r, n, e.adjustments) : null;
8241
+ }, fu = a.PassThrough, yu = { properties: {
8242
+ fill: nl,
8242
8243
  stroke: {
8243
8244
  shorthand: (e) => "string" == typeof e ? { fill: e } : e?.isIStroke ? e.toJSON() : e,
8244
8245
  properties: {
8245
- fill: rl,
8246
- width: gu,
8247
- lineJoin: gu,
8248
- lineCap: gu,
8249
- miterLimit: gu,
8250
- headType: gu,
8251
- headWidth: gu,
8252
- headLength: gu,
8253
- tailType: gu,
8254
- tailWidth: gu,
8255
- tailLength: gu,
8256
- dash: gu,
8257
- compound: gu,
8258
- align: gu
8246
+ fill: nl,
8247
+ width: fu,
8248
+ lineJoin: fu,
8249
+ lineCap: fu,
8250
+ miterLimit: fu,
8251
+ headType: fu,
8252
+ headWidth: fu,
8253
+ headLength: fu,
8254
+ tailType: fu,
8255
+ tailWidth: fu,
8256
+ tailLength: fu,
8257
+ dash: fu,
8258
+ compound: fu,
8259
+ align: fu
8259
8260
  }
8260
8261
  }
8261
- } }, yu = class {
8262
+ } }, Su = class {
8262
8263
  constructor(e) {
8263
8264
  this._h = e;
8264
8265
  }
8265
8266
  _parseColor(e) {
8266
8267
  const t = this._h.getStyles();
8267
- return t ? t.parseColor(e) : new Wo(e);
8268
+ return t ? t.parseColor(e) : new Vo(e);
8268
8269
  }
8269
8270
  _resolve(e) {
8270
- return this._h.resolve ? this._h.resolve(e) : Kl(e, this._h.getTheme(), Ul(this._h.getMovable()));
8271
+ return this._h.resolve ? this._h.resolve(e) : Wl(e, this._h.getTheme(), Kl(this._h.getMovable()));
8271
8272
  }
8272
8273
  _describe(e, t) {
8273
8274
  return this._h.describe?.(e) ?? t;
@@ -8281,7 +8282,7 @@ var Wl, Vl = [
8281
8282
  _fillHost() {
8282
8283
  return {
8283
8284
  parseColor: (e) => this._parseColor(e),
8284
- getBaseFill: () => wl(this._fillHost(), [this._resolve(this._without("fill")).fill]),
8285
+ getBaseFill: () => vl(this._fillHost(), [this._resolve(this._without("fill")).fill]),
8285
8286
  getResource: (e) => this._h.getResource(e),
8286
8287
  updateFill: (e, t) => (this.setFill(e, t), this.getFill())
8287
8288
  };
@@ -8289,13 +8290,13 @@ var Wl, Vl = [
8289
8290
  _strokeHost() {
8290
8291
  return {
8291
8292
  parseColor: (e) => this._parseColor(e),
8292
- getBaseStroke: () => new xl(this._strokeHost(), [this._resolve(this._without("stroke")).stroke]),
8293
+ getBaseStroke: () => new Fl(this._strokeHost(), [this._resolve(this._without("stroke")).stroke]),
8293
8294
  getResource: (e) => this._h.getResource(e),
8294
8295
  updateStroke: (e, t) => (this.setStroke(e, t), this.getStroke())
8295
8296
  };
8296
8297
  }
8297
8298
  getFill() {
8298
- return wl(this._fillHost(), [this._resolve(this._h.getData()).fill]);
8299
+ return vl(this._fillHost(), [this._resolve(this._h.getData()).fill]);
8299
8300
  }
8300
8301
  setFill(e, t) {
8301
8302
  return this.update({ fill: e }, {
@@ -8304,31 +8305,31 @@ var Wl, Vl = [
8304
8305
  });
8305
8306
  }
8306
8307
  setFillSolid(e) {
8307
- return this.update({ fill: { type: Ro.Type.Solid } }, {
8308
+ return this.update({ fill: { type: Po.Type.Solid } }, {
8308
8309
  description: s("op.setFillSolid"),
8309
8310
  ...e
8310
8311
  }), this.getFill();
8311
8312
  }
8312
8313
  setFillGradient(e) {
8313
- return this.update({ fill: { type: Ro.Type.Gradient } }, {
8314
+ return this.update({ fill: { type: Po.Type.Gradient } }, {
8314
8315
  description: s("op.setFillGradient"),
8315
8316
  ...e
8316
8317
  }), this.getFill();
8317
8318
  }
8318
8319
  setFillPattern(e) {
8319
- return this.update({ fill: { type: Ro.Type.Pattern } }, {
8320
+ return this.update({ fill: { type: Po.Type.Pattern } }, {
8320
8321
  description: s("op.setFillPattern"),
8321
8322
  ...e
8322
8323
  }), this.getFill();
8323
8324
  }
8324
8325
  setFillNone(e) {
8325
- return this.update({ fill: { type: Ro.Type.None } }, {
8326
+ return this.update({ fill: { type: Po.Type.None } }, {
8326
8327
  description: s("op.setFillNone"),
8327
8328
  ...e
8328
8329
  }), this.getFill();
8329
8330
  }
8330
8331
  getStroke() {
8331
- return new xl(this._strokeHost(), [this._resolve(this._h.getData()).stroke]);
8332
+ return new Fl(this._strokeHost(), [this._resolve(this._h.getData()).stroke]);
8332
8333
  }
8333
8334
  setStroke(e, t) {
8334
8335
  return this.update({ stroke: e }, {
@@ -8337,7 +8338,7 @@ var Wl, Vl = [
8337
8338
  });
8338
8339
  }
8339
8340
  setStrokeNone(e) {
8340
- return this.update({ stroke: { fill: { type: Ro.Type.None } } }, {
8341
+ return this.update({ stroke: { fill: { type: Po.Type.None } } }, {
8341
8342
  description: this._describe("stroke", s("op.setShapeStroke")),
8342
8343
  ...e
8343
8344
  }), this.getStroke();
@@ -8352,8 +8353,8 @@ var Wl, Vl = [
8352
8353
  fill: this._resolve(o).fill,
8353
8354
  stroke: o?.stroke
8354
8355
  }, l = { ...n };
8355
- void 0 !== l.stroke && (l.stroke = xl.toModifiers(l.stroke));
8356
- const u = this._h.getStyles(), d = a.resolveTypedUpdates(l, fu, u, i) ?? {}, c = {};
8356
+ void 0 !== l.stroke && (l.stroke = Fl.toModifiers(l.stroke));
8357
+ const u = this._h.getStyles(), d = a.resolveTypedUpdates(l, yu, u, i) ?? {}, c = {};
8357
8358
  return "fill" in n && (c.fill = d.fill), "stroke" in n && (c.stroke = d.stroke), 0 === Object.keys(c).length || this._h.write(c, {
8358
8359
  ...t,
8359
8360
  description: r
@@ -8385,15 +8386,15 @@ var Wl, Vl = [
8385
8386
  get isIShapeStyle() {
8386
8387
  return !0;
8387
8388
  }
8388
- }, Su = (e) => {
8389
+ }, bu = (e) => {
8389
8390
  const t = Math.floor(((e % 360 + 360) % 360 + 45) / 90) % 4;
8390
8391
  return 1 === t || 3 === t;
8391
- }, bu = (e, t) => Su(t) ? {
8392
+ }, wu = (e, t) => bu(t) ? {
8392
8393
  x: e.x + (e.width - e.height) / 2,
8393
8394
  y: e.y + (e.height - e.width) / 2,
8394
8395
  width: e.height,
8395
8396
  height: e.width
8396
- } : e, wu = (e) => "function" == typeof e?._getDrawnRect, vu = (e, t, r, n) => {
8397
+ } : e, vu = (e) => "function" == typeof e?._getDrawnRect, Cu = (e, t, r, n) => {
8397
8398
  let a = t ?? {
8398
8399
  l: 0,
8399
8400
  t: 0,
@@ -8426,12 +8427,12 @@ var Wl, Vl = [
8426
8427
  width: m - d,
8427
8428
  height: h - c
8428
8429
  };
8429
- }, Cu = (e, t) => Math.max(0, e.x - t.x, e.y - t.y, t.x + t.width - (e.x + e.width), t.y + t.height - (e.y + e.height)), Mu = (e, t) => e.x <= t.x + t.width && t.x <= e.x + e.width && e.y <= t.y + t.height && t.y <= e.y + e.height, ku = 0, Tu = () => ku, _u = () => {
8430
- ku++;
8430
+ }, Mu = (e, t) => Math.max(0, e.x - t.x, e.y - t.y, t.x + t.width - (e.x + e.width), t.y + t.height - (e.y + e.height)), ku = (e, t) => e.x <= t.x + t.width && t.x <= e.x + e.width && e.y <= t.y + t.height && t.y <= e.y + e.height, Tu = 0, _u = () => Tu, Du = () => {
8431
+ Tu++;
8431
8432
  };
8432
8433
  (function(e) {
8433
8434
  e.placeInParent = (e, t, n) => {
8434
- const a = e.bounds, o = t.width > 0 ? a.width / t.width : 1, i = t.height > 0 ? a.height / t.height : 1, s = n.bounds, l = o !== i && Su(n.rotation), u = l ? s.width * i : s.width * o, d = l ? s.height * o : s.height * i;
8435
+ const a = e.bounds, o = t.width > 0 ? a.width / t.width : 1, i = t.height > 0 ? a.height / t.height : 1, s = n.bounds, l = o !== i && bu(n.rotation), u = l ? s.width * i : s.width * o, d = l ? s.height * o : s.height * i;
8435
8436
  let c = (s.x + s.width / 2 - t.x) * o - a.width / 2, m = (s.y + s.height / 2 - t.y) * i - a.height / 2;
8436
8437
  const h = e.flip.horizontal, p = e.flip.vertical;
8437
8438
  h && (c = -c), p && (m = -m);
@@ -8453,7 +8454,7 @@ var Wl, Vl = [
8453
8454
  const a = e.bounds, o = t.width > 0 ? a.width / t.width : 1, i = t.height > 0 ? a.height / t.height : 1, s = e.flip.horizontal, l = e.flip.vertical, u = r(s !== l ? e.rotation - n.rotation : n.rotation - e.rotation), d = -(e.rotation || 0) * Math.PI / 180, c = Math.cos(d), m = Math.sin(d), h = n.bounds.x + n.bounds.width / 2 - (a.x + a.width / 2), p = n.bounds.y + n.bounds.height / 2 - (a.y + a.height / 2);
8454
8455
  let g = h * c - p * m, f = h * m + p * c;
8455
8456
  s && (g = -g), l && (f = -f);
8456
- const y = o !== i && Su(u), S = y ? n.bounds.width / i : n.bounds.width / o, b = y ? n.bounds.height / o : n.bounds.height / i;
8457
+ const y = o !== i && bu(u), S = y ? n.bounds.width / i : n.bounds.width / o, b = y ? n.bounds.height / o : n.bounds.height / i;
8457
8458
  return {
8458
8459
  bounds: {
8459
8460
  x: (g + a.width / 2) / o + t.x - S / 2,
@@ -8507,8 +8508,8 @@ var Wl, Vl = [
8507
8508
  const t = (e % 360 + 360) % 360;
8508
8509
  return Object.is(t, -0) ? 0 : t;
8509
8510
  };
8510
- })(Wl || (Wl = {}));
8511
- var Du = (e) => (e || 0) * Math.PI / 180, Au = (e) => {
8511
+ })(Vl || (Vl = {}));
8512
+ var Au = (e) => (e || 0) * Math.PI / 180, xu = (e) => {
8512
8513
  const t = (e || 0) / 90;
8513
8514
  if (Number.isInteger(t)) return [
8514
8515
  [1, 0],
@@ -8516,25 +8517,25 @@ var Du = (e) => (e || 0) * Math.PI / 180, Au = (e) => {
8516
8517
  [-1, 0],
8517
8518
  [0, -1]
8518
8519
  ][(t % 4 + 4) % 4].slice();
8519
- const r = Du(e);
8520
+ const r = Au(e);
8520
8521
  return [Math.cos(r), Math.sin(r)];
8521
- }, xu = (e, t) => {
8522
- const { bounds: r, rotation: n, flip: a } = e, o = a.horizontal ? r.width - t.x : t.x, i = a.vertical ? r.height - t.y : t.y, s = o - r.width / 2, l = i - r.height / 2, [u, d] = Au(n);
8522
+ }, Fu = (e, t) => {
8523
+ const { bounds: r, rotation: n, flip: a } = e, o = a.horizontal ? r.width - t.x : t.x, i = a.vertical ? r.height - t.y : t.y, s = o - r.width / 2, l = i - r.height / 2, [u, d] = xu(n);
8523
8524
  return {
8524
8525
  x: r.x + r.width / 2 + s * u - l * d,
8525
8526
  y: r.y + r.height / 2 + s * d + l * u
8526
8527
  };
8527
- }, Fu = (e) => ({
8528
- start: xu(e, {
8528
+ }, Nu = (e) => ({
8529
+ start: Fu(e, {
8529
8530
  x: 0,
8530
8531
  y: 0
8531
8532
  }),
8532
- end: xu(e, {
8533
+ end: Fu(e, {
8533
8534
  x: e.bounds.width,
8534
8535
  y: e.bounds.height
8535
8536
  })
8536
- }), Nu = (e, t, r = 0) => {
8537
- const n = (e.x + t.x) / 2, a = (e.y + t.y) / 2, [o, i] = Au(-r), s = e.x - n, l = e.y - a, u = s * o - l * i, d = s * i + l * o, c = 2 * Math.abs(u), m = 2 * Math.abs(d);
8537
+ }), Bu = (e, t, r = 0) => {
8538
+ const n = (e.x + t.x) / 2, a = (e.y + t.y) / 2, [o, i] = xu(-r), s = e.x - n, l = e.y - a, u = s * o - l * i, d = s * i + l * o, c = 2 * Math.abs(u), m = 2 * Math.abs(d);
8538
8539
  return {
8539
8540
  bounds: {
8540
8541
  x: n - c / 2,
@@ -8548,10 +8549,10 @@ var Du = (e) => (e || 0) * Math.PI / 180, Au = (e) => {
8548
8549
  vertical: d > 0
8549
8550
  }
8550
8551
  };
8551
- }, Bu = 24, Lu = 4 / 3, Ru = (e, t, r) => {
8552
+ }, Lu = 24, Ru = 4 / 3, Pu = (e, t, r) => {
8552
8553
  const n = t.x - e.x, a = t.y - e.y;
8553
8554
  return (Math.abs(Math.abs(n) - Math.abs(a)) < 1e-6 ? r % 2 == 1 : Math.abs(n) > Math.abs(a)) ? n >= 0 ? 0 : 2 : a >= 0 ? 1 : 3;
8554
- }, Pu = (e, t) => {
8555
+ }, Iu = (e, t) => {
8555
8556
  switch ((t % 4 + 4) % 4) {
8556
8557
  case 1: return {
8557
8558
  x: -e.y,
@@ -8570,11 +8571,11 @@ var Du = (e) => (e || 0) * Math.PI / 180, Au = (e) => {
8570
8571
  y: e.y
8571
8572
  };
8572
8573
  }
8573
- }, Iu = (e, t) => {
8574
- const r = Pu({
8574
+ }, Eu = (e, t) => {
8575
+ const r = Iu({
8575
8576
  x: e.x,
8576
8577
  y: e.y
8577
- }, t), n = Pu({
8578
+ }, t), n = Iu({
8578
8579
  x: e.x + e.width,
8579
8580
  y: e.y + e.height
8580
8581
  }, t);
@@ -8584,17 +8585,17 @@ var Du = (e) => (e || 0) * Math.PI / 180, Au = (e) => {
8584
8585
  width: Math.abs(r.x - n.x),
8585
8586
  height: Math.abs(r.y - n.y)
8586
8587
  };
8587
- }, Eu = (e) => ({
8588
+ }, ju = (e) => ({
8588
8589
  x: e.x,
8589
8590
  y: -e.y
8590
- }), ju = (e) => e.x + e.width, Gu = (e) => e.y + e.height, Ou = (e, t) => e.y < t && t < Gu(e), zu = (e, t, r) => {
8591
- const n = -e.direction, a = ((t.direction - e.direction) % 4 + 4) % 4, o = 1 === a, i = (e) => o ? Eu(Pu(e, n)) : Pu(e, n), s = (e) => o ? ((e) => ({
8591
+ }), Gu = (e) => e.x + e.width, Ou = (e) => e.y + e.height, zu = (e, t) => e.y < t && t < Ou(e), $u = (e, t, r) => {
8592
+ const n = -e.direction, a = ((t.direction - e.direction) % 4 + 4) % 4, o = 1 === a, i = (e) => o ? ju(Iu(e, n)) : Iu(e, n), s = (e) => o ? ((e) => ({
8592
8593
  x: e.x,
8593
8594
  y: -(e.y + e.height),
8594
8595
  width: e.width,
8595
8596
  height: e.height
8596
- }))(Iu(e, n)) : Iu(e, n), l = ((e, t, r, n, a) => {
8597
- const o = () => n.x >= ju(t) ? (ju(t) + n.x) / 2 : e.x + Bu, i = (e) => e ? ju(t) <= n.x ? (ju(t) + n.x) / 2 : r.x - Bu : t.x >= ju(n) ? (ju(n) + t.x) / 2 : r.x + Bu, s = (t, n, a) => [
8597
+ }))(Eu(e, n)) : Eu(e, n), l = ((e, t, r, n, a) => {
8598
+ const o = () => n.x >= Gu(t) ? (Gu(t) + n.x) / 2 : e.x + Lu, i = (e) => e ? Gu(t) <= n.x ? (Gu(t) + n.x) / 2 : r.x - Lu : t.x >= Gu(n) ? (Gu(n) + t.x) / 2 : r.x + Lu, s = (t, n, a) => [
8598
8599
  e,
8599
8600
  {
8600
8601
  x: t,
@@ -8617,7 +8618,7 @@ var Du = (e) => (e || 0) * Math.PI / 180, Au = (e) => {
8617
8618
  switch (a) {
8618
8619
  case 2: {
8619
8620
  if (r.x >= e.x) {
8620
- const a = n.x >= ju(t) ? (ju(t) + n.x) / 2 : (e.x + r.x) / 2;
8621
+ const a = n.x >= Gu(t) ? (Gu(t) + n.x) / 2 : (e.x + r.x) / 2;
8621
8622
  return [
8622
8623
  e,
8623
8624
  {
@@ -8632,13 +8633,13 @@ var Du = (e) => (e || 0) * Math.PI / 180, Au = (e) => {
8632
8633
  ];
8633
8634
  }
8634
8635
  let a;
8635
- return a = Gu(t) <= n.y ? (Gu(t) + n.y) / 2 : Gu(n) <= t.y ? (Gu(n) + t.y) / 2 : r.y >= e.y ? Math.max(Gu(t), Gu(n)) + Bu : Math.min(t.y, n.y) - Bu, s(o(), a, i(!0));
8636
+ return a = Ou(t) <= n.y ? (Ou(t) + n.y) / 2 : Ou(n) <= t.y ? (Ou(n) + t.y) / 2 : r.y >= e.y ? Math.max(Ou(t), Ou(n)) + Lu : Math.min(t.y, n.y) - Lu, s(o(), a, i(!0));
8636
8637
  }
8637
8638
  case 0: {
8638
8639
  const a = e.y === r.y;
8639
- if (n.x >= ju(t) && Ou(n, e.y)) return s(o(), a ? Gu(n) + Bu : n.y - Bu, i(!1));
8640
- if (t.x >= ju(n) && Ou(t, r.y)) return s(o(), a ? t.y - Bu : Gu(t) + Bu, i(!1));
8641
- const l = Math.max(e.x, r.x) + Bu;
8640
+ if (n.x >= Gu(t) && zu(n, e.y)) return s(o(), a ? Ou(n) + Lu : n.y - Lu, i(!1));
8641
+ if (t.x >= Gu(n) && zu(t, r.y)) return s(o(), a ? t.y - Lu : Ou(t) + Lu, i(!1));
8642
+ const l = Math.max(e.x, r.x) + Lu;
8642
8643
  return [
8643
8644
  e,
8644
8645
  {
@@ -8662,8 +8663,8 @@ var Du = (e) => (e || 0) * Math.PI / 180, Au = (e) => {
8662
8663
  r
8663
8664
  ];
8664
8665
  const a = o();
8665
- let i = Gu(t) <= n.y ? (Gu(t) + n.y) / 2 : r.y - Bu;
8666
- return Gu(t) > n.y && Math.min(a, r.x) < ju(t) && Math.max(a, r.x) > t.x && (i = Math.min(i, t.y - Bu)), [
8666
+ let i = Ou(t) <= n.y ? (Ou(t) + n.y) / 2 : r.y - Lu;
8667
+ return Ou(t) > n.y && Math.min(a, r.x) < Gu(t) && Math.max(a, r.x) > t.x && (i = Math.min(i, t.y - Lu)), [
8667
8668
  e,
8668
8669
  {
8669
8670
  x: a,
@@ -8681,13 +8682,13 @@ var Du = (e) => (e || 0) * Math.PI / 180, Au = (e) => {
8681
8682
  ];
8682
8683
  }
8683
8684
  }
8684
- })(i(e.point), s(e.box), i(t.point), s(t.box), o ? 3 : a).map((e) => Pu(o ? Eu(e) : e, -n)), u = l.length, d = Nu(l[0], l[u - 1], 90 * e.direction), c = { ...d.bounds };
8685
- u > 3 && c.width < 1e-9 && (c.width = Lu), u > 4 && c.height < 1e-9 && (c.height = Lu);
8685
+ })(i(e.point), s(e.box), i(t.point), s(t.box), o ? 3 : a).map((e) => Iu(o ? ju(e) : e, -n)), u = l.length, d = Bu(l[0], l[u - 1], 90 * e.direction), c = { ...d.bounds };
8686
+ u > 3 && c.width < 1e-9 && (c.width = Ru), u > 4 && c.height < 1e-9 && (c.height = Ru);
8686
8687
  const m = {
8687
8688
  ...d,
8688
8689
  bounds: c
8689
8690
  }, h = l.map((e) => ((e, t) => {
8690
- const { bounds: r, rotation: n, flip: a } = e, o = t.x - (r.x + r.width / 2), i = t.y - (r.y + r.height / 2), [s, l] = Au(-n), u = r.width / 2 + o * s - i * l, d = r.height / 2 + o * l + i * s;
8691
+ const { bounds: r, rotation: n, flip: a } = e, o = t.x - (r.x + r.width / 2), i = t.y - (r.y + r.height / 2), [s, l] = xu(-n), u = r.width / 2 + o * s - i * l, d = r.height / 2 + o * l + i * s;
8691
8692
  return {
8692
8693
  x: a.horizontal ? r.width - u : u,
8693
8694
  y: a.vertical ? r.height - d : d
@@ -8786,14 +8787,14 @@ var Du = (e) => (e || 0) * Math.PI / 180, Au = (e) => {
8786
8787
  }
8787
8788
  ];
8788
8789
  }
8789
- })(u, c.width, c.height, g ?? {}).map((e) => xu(m, e));
8790
+ })(u, c.width, c.height, g ?? {}).map((e) => Fu(m, e));
8790
8791
  return {
8791
8792
  geometry: `${r ? "curvedConnector" : "bentConnector"}${u - 1}`,
8792
8793
  adjustments: g,
8793
8794
  placement: m,
8794
8795
  points: f
8795
8796
  };
8796
- }, $u = (e, t, r) => {
8797
+ }, Hu = (e, t, r) => {
8797
8798
  if (!t) return null;
8798
8799
  const n = e.getContent(), { width: a, height: o } = t.bounds, i = n.getConnections ? n.getConnections(a, o, {
8799
8800
  adjustments: t.adjustments,
@@ -8825,7 +8826,7 @@ var Du = (e) => (e || 0) * Math.PI / 180, Au = (e) => {
8825
8826
  }
8826
8827
  ])(a, o);
8827
8828
  return i ? i.map((e) => {
8828
- const r = xu(t, e), n = Du(e.ang), a = xu(t, {
8829
+ const r = Fu(t, e), n = Au(e.ang), a = Fu(t, {
8829
8830
  x: e.x + Math.cos(n),
8830
8831
  y: e.y + Math.sin(n)
8831
8832
  });
@@ -8836,30 +8837,30 @@ var Du = (e) => (e || 0) * Math.PI / 180, Au = (e) => {
8836
8837
  };
8837
8838
  var o, i;
8838
8839
  }) : null;
8839
- }, Hu = (e) => {
8840
+ }, Uu = (e) => {
8840
8841
  const t = e.getContent();
8841
8842
  return t._getSourceId ? t._getSourceId() : t.toJSON?.()?.sourceId;
8842
- }, Uu = (e, t) => {
8843
+ }, Ku = (e, t) => {
8843
8844
  const r = e.getContent();
8844
8845
  if (!r._ensureSourceId) throw new n(`A ${r.getTypeDescription()} cannot be glued to while it is loading.`);
8845
8846
  return r._ensureSourceId(t);
8846
- }, Ku = (e) => {
8847
+ }, Wu = (e) => {
8847
8848
  const t = e.getContent();
8848
8849
  return t.isConnector?.() ? t.toJSON?.()?.connectorEnds ?? null : null;
8849
- }, Wu = (e) => {
8850
+ }, Vu = (e) => {
8850
8851
  const t = e.getContent(), r = t.getType();
8851
8852
  return "group" === r || "shape" === r && (!t.isConnector || t.isConnector());
8852
- }, Vu = (e) => e.getMovables().getItems({ deep: !0 }), Ju = (e, t) => {
8853
- for (const r of Vu(e)) if (Hu(r) === t) return r;
8853
+ }, Ju = (e) => e.getMovables().getItems({ deep: !0 }), qu = (e, t) => {
8854
+ for (const r of Ju(e)) if (Uu(r) === t) return r;
8854
8855
  return null;
8855
- }, qu = (e) => {
8856
+ }, Yu = (e) => {
8856
8857
  let t = 1;
8857
- for (const r of Vu(e)) {
8858
- const e = Hu(r);
8858
+ for (const r of Ju(e)) {
8859
+ const e = Uu(r);
8859
8860
  "number" == typeof e && e > t && (t = e);
8860
8861
  }
8861
8862
  return t + 1;
8862
- }, Yu = (e) => Wl.placementOf(e), Xu = (e) => {
8863
+ }, Xu = (e) => Vl.placementOf(e), Zu = (e) => {
8863
8864
  const { width: t, height: r } = e.bounds, n = [
8864
8865
  {
8865
8866
  x: 0,
@@ -8877,32 +8878,32 @@ var Du = (e) => (e || 0) * Math.PI / 180, Au = (e) => {
8877
8878
  x: t,
8878
8879
  y: r
8879
8880
  }
8880
- ].map((t) => xu(e, t)), a = n.map((e) => e.x), o = n.map((e) => e.y), i = Math.min(...a), s = Math.min(...o);
8881
+ ].map((t) => Fu(e, t)), a = n.map((e) => e.x), o = n.map((e) => e.y), i = Math.min(...a), s = Math.min(...o);
8881
8882
  return {
8882
8883
  x: i,
8883
8884
  y: s,
8884
8885
  width: Math.max(...a) - i,
8885
8886
  height: Math.max(...o) - s
8886
8887
  };
8887
- }, Zu = (e, t) => {
8888
+ }, Qu = (e, t) => {
8888
8889
  if (!e || !t || void 0 !== t.adjustments) return !1;
8889
8890
  const r = e.bounds, n = t.bounds;
8890
8891
  return r.width === n.width && r.height === n.height && (r.x !== n.x || r.y !== n.y) && (e.rotation || 0) === (t.rotation || 0) && e.flip.horizontal === t.flip.horizontal && e.flip.vertical === t.flip.vertical;
8891
- }, Qu = (e, t, r, n, a = (t) => Ju(e, t), o) => {
8892
- const i = r(t), s = Ku(t);
8892
+ }, ed = (e, t, r, n, a = (t) => qu(e, t), o) => {
8893
+ const i = r(t), s = Wu(t);
8893
8894
  if (!i || !s) return null;
8894
- const l = Fu(i), u = {};
8895
+ const l = Nu(i), u = {};
8895
8896
  for (const e of ["start", "end"]) {
8896
8897
  const i = s[e];
8897
8898
  if (!i) continue;
8898
8899
  const l = a(i.id);
8899
8900
  if (!l || l === t) continue;
8900
- const d = r(l), c = $u(l, d, n)?.find((e) => e.index === i.index);
8901
+ const d = r(l), c = Hu(l, d, n)?.find((e) => e.index === i.index);
8901
8902
  if (!c || !d) continue;
8902
- const m = o ?? Zu(Yu(l), d);
8903
+ const m = o ?? Qu(Xu(l), d);
8903
8904
  u[e] = {
8904
8905
  site: c,
8905
- box: Xu(d),
8906
+ box: Zu(d),
8906
8907
  translated: m
8907
8908
  };
8908
8909
  }
@@ -8936,21 +8937,21 @@ var Du = (e) => (e || 0) * Math.PI / 180, Au = (e) => {
8936
8937
  box: t
8937
8938
  }, a = {
8938
8939
  point: l[n],
8939
- direction: Ru(l[n], l[c], e.direction),
8940
+ direction: Pu(l[n], l[c], e.direction),
8940
8941
  box: {
8941
8942
  x: l[n].x,
8942
8943
  y: l[n].y,
8943
8944
  width: 0,
8944
8945
  height: 0
8945
8946
  }
8946
- }, o = "start" === c ? zu(r, a, "curved" === d) : zu(a, r, "curved" === d);
8947
+ }, o = "start" === c ? $u(r, a, "curved" === d) : $u(a, r, "curved" === d);
8947
8948
  return {
8948
8949
  placement: o.placement,
8949
8950
  route: o
8950
8951
  };
8951
8952
  }
8952
8953
  return {
8953
- placement: Nu(l.start, l.end, i.rotation),
8954
+ placement: Bu(l.start, l.end, i.rotation),
8954
8955
  route: null
8955
8956
  };
8956
8957
  }
@@ -8962,7 +8963,7 @@ var Du = (e) => (e || 0) * Math.PI / 180, Au = (e) => {
8962
8963
  x: h.site.x,
8963
8964
  y: h.site.y
8964
8965
  }, "elbow" === d || "curved" === d) {
8965
- const e = zu({
8966
+ const e = $u({
8966
8967
  point: l.start,
8967
8968
  direction: m.site.direction,
8968
8969
  box: m.box
@@ -8977,82 +8978,82 @@ var Du = (e) => (e || 0) * Math.PI / 180, Au = (e) => {
8977
8978
  };
8978
8979
  }
8979
8980
  return {
8980
- placement: Nu(l.start, l.end, i.rotation),
8981
+ placement: Bu(l.start, l.end, i.rotation),
8981
8982
  route: null
8982
8983
  };
8983
- }, ed = (e, t) => {
8984
+ }, td = (e, t) => {
8984
8985
  const { placement: r, route: n } = t, a = e.getBounds(), o = e.getFlip();
8985
- if (a && !Wl.isSameBounds(a, r.bounds)) return !1;
8986
+ if (a && !Vl.isSameBounds(a, r.bounds)) return !1;
8986
8987
  if (o.horizontal !== r.flip.horizontal || o.vertical !== r.flip.vertical) return !1;
8987
8988
  if ((e.getRotation() || 0) !== r.rotation) return !1;
8988
8989
  if (!n) return !0;
8989
8990
  const i = e.getContent();
8990
- return i.getShapeType() === n.geometry && td(i.getAdjustments(), n.adjustments);
8991
- }, td = (e, t) => {
8991
+ return i.getShapeType() === n.geometry && rd(i.getAdjustments(), n.adjustments);
8992
+ }, rd = (e, t) => {
8992
8993
  const r = Object.keys(e), n = Object.keys(t ?? {});
8993
8994
  return r.length === n.length && n.every((r) => e[r] === t[r]);
8994
- }, rd = (e, t) => {
8995
+ }, nd = (e, t) => {
8995
8996
  const r = [];
8996
8997
  for (const n of e.getMovables().getItems({
8997
8998
  type: "shape",
8998
8999
  deep: !0
8999
9000
  })) {
9000
- if (!Ku(n)) continue;
9001
- const a = Qu(e, n, Yu, t);
9002
- a && !ed(n, a) && r.push([n, a]);
9001
+ if (!Wu(n)) continue;
9002
+ const a = ed(e, n, Xu, t);
9003
+ a && !td(n, a) && r.push([n, a]);
9003
9004
  }
9004
9005
  return r;
9005
- }, nd = (e, t) => {
9006
+ }, ad = (e, t) => {
9006
9007
  const { placement: r, route: n } = t;
9007
9008
  (e.getRotation() || 0) !== r.rotation && e.setRotation(r.rotation);
9008
9009
  const a = e.getBounds();
9009
- a && !Wl.isSameBounds(a, r.bounds) && e.setBounds(r.bounds);
9010
+ a && !Vl.isSameBounds(a, r.bounds) && e.setBounds(r.bounds);
9010
9011
  const o = e.getFlip();
9011
9012
  if (o.horizontal === r.flip.horizontal && o.vertical === r.flip.vertical || e.setFlip(r.flip), !n) return;
9012
9013
  const i = e.getContent();
9013
- i.getShapeType() === n.geometry && td(i.getAdjustments(), n.adjustments) || i._setRoute?.(n.geometry, n.adjustments);
9014
- }, ad = (e, t) => {
9014
+ i.getShapeType() === n.geometry && rd(i.getAdjustments(), n.adjustments) || i._setRoute?.(n.geometry, n.adjustments);
9015
+ }, od = (e, t) => {
9015
9016
  if (0 === t.size) return [];
9016
9017
  const r = [];
9017
9018
  for (const n of e.getMovables().getItems({
9018
9019
  type: "shape",
9019
9020
  deep: !0
9020
9021
  })) {
9021
- const e = Ku(n);
9022
+ const e = Wu(n);
9022
9023
  e && (e.start && t.has(e.start.id) || e.end && t.has(e.end.id)) && r.push(n);
9023
9024
  }
9024
9025
  return r;
9025
- }, od = (e) => {
9026
+ }, id = (e) => {
9026
9027
  const t = /* @__PURE__ */ new Map();
9027
9028
  for (const r of e) for (const e of [r, ...r.getMovables()?.getItems({ deep: !0 }) ?? []]) {
9028
- const r = Hu(e);
9029
+ const r = Uu(e);
9029
9030
  void 0 !== r && t.set(r, e);
9030
9031
  }
9031
9032
  return t;
9032
- }, id = /* @__PURE__ */ new WeakSet(), sd = (e, t, r, n = !1) => {
9033
- if (id.has(t)) return;
9034
- const a = od([t]), o = ad(e, a);
9033
+ }, sd = /* @__PURE__ */ new WeakSet(), ld = (e, t, r, n = !1) => {
9034
+ if (sd.has(t)) return;
9035
+ const a = id([t]), o = od(e, a);
9035
9036
  if (0 !== o.length) {
9036
- id.add(t);
9037
+ sd.add(t);
9037
9038
  try {
9038
- const t = (t) => a.get(t) ?? Ju(e, t);
9039
+ const t = (t) => a.get(t) ?? qu(e, t);
9039
9040
  for (const a of o) {
9040
- const o = Qu(e, a, Yu, r, t, n);
9041
- o && nd(a, o);
9041
+ const o = ed(e, a, Xu, r, t, n);
9042
+ o && ad(a, o);
9042
9043
  }
9043
9044
  } finally {
9044
- id.delete(t);
9045
+ sd.delete(t);
9045
9046
  }
9046
9047
  }
9047
- }, ld = (e, t, r) => {
9048
- if (!id.has(t)) {
9049
- id.add(t);
9048
+ }, ud = (e, t, r) => {
9049
+ if (!sd.has(t)) {
9050
+ sd.add(t);
9050
9051
  try {
9051
- const n = Qu(e, t, Yu, r);
9052
- n && nd(t, n);
9052
+ const n = ed(e, t, Xu, r);
9053
+ n && ad(t, n);
9053
9054
  } finally {
9054
- id.delete(t);
9055
+ sd.delete(t);
9055
9056
  }
9056
9057
  }
9057
9058
  };
9058
- export { ns as $, E as $t, vl as A, En as At, ii as B, fn as Bt, Su as C, On as Ct, hu as D, ca as Dt, pu as E, Tn as Et, Is as F, An as Ft, Pi as G, Ke as Gt, Rs as H, un as Ht, Es as I, Pn as It, ti as J, Z as Jt, es as K, We as Kt, js as L, zn as Lt, nl as M, xn as Mt, ol as N, Fn as Nt, Fl as O, ra as Ot, il as P, Rn as Pt, ci as Q, X as Qt, Zo as R, yn as Rt, Cu as S, In as St, yu as T, da as Tt, ei as U, at as Ut, si as V, dn as Vt, qi as W, tt as Wt, ri as X, W as Xt, di as Y, J as Yt, ts as Z, z as Zt, _u as _, va as _t, ld as a, mi as at, Mu as b, fa as bt, Qu as c, Eo as ct, qu as d, Wo as dt, B as en, ni as et, rd as f, Ho as ft, Wl as g, ja as gt, Nu as h, Ea as ht, Ju as i, d as in, Qo as it, wl as j, Gn as jt, Ml as k, ta as kt, Wu as l, Io as lt, Fu as m, Qa as mt, $u as n, C as nn, li as nt, sd as o, Xo as ot, od as p, to as pt, os as q, te as qt, Uu as r, b as rn, ui as rt, ad as s, jo as st, nd as t, D as tn, ai as tt, Yu as u, Ro as ut, vu as v, Ra as vt, bu as w, ua as wt, wu as x, Nn as xt, Tu as y, Ca as yt, Bs as z, pn as zt };
9059
+ export { as as $, W as $t, Cl as A, ra as At, si as B, yn as Bt, bu as C, Nn as Ct, pu as D, da as Dt, gu as E, ua as Et, Es as F, Fn as Ft, Ii as G, un as Gt, Ps as H, pn as Ht, js as I, Rn as It, ri as J, Ke as Jt, ts as K, at as Kt, Gs as L, An as Lt, al as M, En as Mt, il as N, Gn as Nt, Nl as O, Tn as Ot, sl as P, xn as Pt, mi as Q, J as Qt, Qo as R, Pn as Rt, Mu as S, fa as St, Su as T, On as Tt, ti as U, fn as Ut, li as V, gn as Vt, Yi as W, dn as Wt, ni as X, te as Xt, ci as Y, We as Yt, rs as Z, Z as Zt, Du as _, Ea as _t, ud as a, C as an, hi as at, ku as b, Pa as bt, ed as c, jo as ct, Yu as d, Vo as dt, z as en, ai as et, nd as f, Uo as ft, Vl as g, Ga as gt, Bu as h, ja as ht, qu as i, D as in, ei as it, vl as j, ta as jt, kl as k, ca as kt, Vu as l, Eo as lt, Nu as m, eo as mt, Hu as n, E as nn, ui as nt, ld as o, b as on, Zo as ot, id as p, ro as pt, is as q, tt as qt, Ku as r, B as rn, di as rt, od as s, d as sn, Go as st, ad as t, X as tn, oi as tt, Xu as u, Po as ut, Cu as v, va as vt, wu as w, In as wt, vu as x, Ma as xt, _u as y, Ca as yt, Ls as z, zn as zt };