@teselagen/ove 0.7.26 → 0.7.28

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 (304) hide show
  1. package/AASliver.js +187 -0
  2. package/AddLaddersDialog.js +82 -0
  3. package/AdditionalCutsiteInfoDialog.js +599 -0
  4. package/AlignmentView/Mismatches.d.ts +3 -3
  5. package/AlignmentVisibilityTool.js +105 -0
  6. package/AnnotationContainerHolder.js +20 -0
  7. package/AnnotationPositioner.js +27 -0
  8. package/AutoAnnotate.js +501 -0
  9. package/AutoAnnotateBpMatchingDialog.js +208 -0
  10. package/Axis.js +151 -0
  11. package/AxisNumbers.js +35 -0
  12. package/Browser.js +106 -0
  13. package/Caret.js +63 -0
  14. package/Chromatogram.js +293 -0
  15. package/CircularDnaSequence.js +73 -0
  16. package/CircularView/Labels/index.d.ts +1 -1
  17. package/CircularView/index.d.ts +0 -1
  18. package/CircularZoomMinimap.js +16 -0
  19. package/ColorPicker.js +30 -0
  20. package/CommandHotkeyHandler.js +44 -0
  21. package/CreateAnnotationsPage.d.ts +4 -4
  22. package/CreateAnnotationsPage.js +98 -0
  23. package/Cutsite.js +18 -0
  24. package/CutsiteProperties.js +176 -0
  25. package/CutsiteSelectionLayers.js +47 -0
  26. package/Cutsites.js +271 -0
  27. package/DeletionLayer.js +28 -0
  28. package/DigestTool/Ladder.d.ts +1 -1
  29. package/DropHandler.css +21 -0
  30. package/DropHandler.js +64 -0
  31. package/EditCaretPosition.js +234 -0
  32. package/EditTrackNameDialog.js +30 -0
  33. package/Feature.js +83 -0
  34. package/FeatureProperties.js +6 -0
  35. package/FillWindow.js +47 -0
  36. package/GenbankView.js +74 -0
  37. package/GeneralProperties.js +117 -0
  38. package/GenericAnnotationProperties.js +406 -0
  39. package/GlobalDialog.js +73 -0
  40. package/GlobalDialogUtils.js +110 -0
  41. package/GoToDialog.js +25 -0
  42. package/HorizontalPanelDragHandle.js +35 -0
  43. package/Keyboard.js +85 -0
  44. package/Labels.js +327 -0
  45. package/Ladder.css +20 -0
  46. package/Ladder.js +303 -0
  47. package/MeltingTemp.js +85 -0
  48. package/Menlo.ttf +0 -0
  49. package/Minimap.js +515 -0
  50. package/Mismatches.js +134 -0
  51. package/Monaco.ttf +0 -0
  52. package/MultipleSeqsDetectedOnImportDialog.js +74 -0
  53. package/Orf.js +109 -0
  54. package/OrfProperties.js +117 -0
  55. package/Orfs.js +35 -0
  56. package/PCRTool.js +179 -0
  57. package/PairwiseAlignmentView.js +68 -0
  58. package/Part.js +34 -0
  59. package/PartProperties.js +9 -0
  60. package/PassThrough.js +3 -0
  61. package/PerformantSelectionLayer.js +32 -0
  62. package/PinchHelper.js +24 -0
  63. package/PointedAnnotation.js +347 -0
  64. package/PositionAnnotationOnCircle.js +26 -0
  65. package/Primer.js +41 -0
  66. package/PrimerProperties.js +19 -0
  67. package/Reflex/index.d.ts +0 -1
  68. package/ReflexContainer.js +802 -0
  69. package/ReflexElement.js +160 -0
  70. package/ReflexEvents.js +77 -0
  71. package/ReflexSplitter.js +205 -0
  72. package/RenameSequenceDialog.js +7 -0
  73. package/RotateCircularViewSlider.js +93 -0
  74. package/RowView/index.d.ts +0 -1
  75. package/SelectDialog.js +150 -0
  76. package/SequenceName.js +15 -0
  77. package/SimpleCircularOrLinearView.js +381 -0
  78. package/SimpleOligoPreview.js +39 -0
  79. package/SingleEnzymeCutsiteInfo.js +139 -0
  80. package/ToolBar/ToolbarItem.d.ts +1 -3
  81. package/ToolbarItem.js +192 -0
  82. package/Translation.js +198 -0
  83. package/TranslationProperties.js +149 -0
  84. package/UncontrolledSliderWithPlusMinusBtns.css +5 -0
  85. package/UncontrolledSliderWithPlusMinusBtns.js +134 -0
  86. package/VeTopRightContainer.js +12 -0
  87. package/ZoomCircularViewSlider.js +62 -0
  88. package/ZoomLinearView.js +47 -0
  89. package/addAlignment.js +6 -0
  90. package/addMetaToActionCreators.js +12 -0
  91. package/addWrappedAddons.js +20 -0
  92. package/alignmentTool.js +503 -0
  93. package/alignments.js +379 -0
  94. package/annotationLabelVisibility.js +2 -0
  95. package/annotationSearchSelector.js +24 -0
  96. package/annotationTypes.js +35 -0
  97. package/annotationVisibility.js +196 -0
  98. package/annotationsToSupport.js +104 -0
  99. package/arrayToObjWithIds.js +17 -0
  100. package/arrayUtils.js +19 -0
  101. package/array_move.js +10 -0
  102. package/calculateTickMarkPositionsForGivenRange.js +47 -0
  103. package/caretPosition.js +27 -0
  104. package/cdsFeaturesSelector.js +9 -0
  105. package/charWidth.js +22 -0
  106. package/circular.js +19 -0
  107. package/circularSelector.js +4 -0
  108. package/clickAndDragUtils.js +576 -0
  109. package/coerceInitialValue.js +7 -0
  110. package/combineReducersDontIgnoreKeys.js +12 -0
  111. package/commandUtils.js +20 -0
  112. package/constants.js +2 -0
  113. package/copyOptions.js +34 -0
  114. package/createFragmentLines.js +120 -0
  115. package/createMergedDefaultStateReducer.js +30 -0
  116. package/createMetaAction.js +12 -0
  117. package/createSequenceInputPopup.js +290 -0
  118. package/createSequenceInputPopupStyle.css +87 -0
  119. package/createSimpleDialog.js +89 -0
  120. package/createYourOwnEnzyme.js +39 -0
  121. package/cutsiteLabelColorSelector.js +6 -0
  122. package/cutsiteTool.js +88 -0
  123. package/cutsitesByRangeSelector.js +5 -0
  124. package/cutsitesSelector.js +61 -0
  125. package/darkmode.css +98 -0
  126. package/defaultConfig.js +150 -0
  127. package/deletionLayers.js +36 -0
  128. package/description.js +21 -0
  129. package/digestTool.js +34 -0
  130. package/dnaToColor.js +17 -0
  131. package/downloadTool.js +39 -0
  132. package/draggableClassnames.js +5 -0
  133. package/drawAnnotations.js +440 -0
  134. package/drawDirectedPiePiece.js +142 -0
  135. package/editTool.js +49 -0
  136. package/editorSelector.js +2 -0
  137. package/editorUtils.js +205 -0
  138. package/estimateRowHeight.js +184 -0
  139. package/featureLengthsToHide.js +27 -0
  140. package/featureTool.js +34 -0
  141. package/features.js +19 -0
  142. package/featuresSelector.js +8 -0
  143. package/filteredCutsitesSelector.js +136 -0
  144. package/filteredFeaturesSelector.js +32 -0
  145. package/filteredPartsSelector.js +57 -0
  146. package/filteredPrimersSelector.js +27 -0
  147. package/filteredRestrictionEnzymesSelector.js +1 -0
  148. package/find.png +0 -0
  149. package/findTool.js +79 -0
  150. package/findToolConstants.js +1 -0
  151. package/frameTranslations.js +52 -0
  152. package/fullscreen.png +0 -0
  153. package/getAdditionalEnzymesSelector.js +46 -0
  154. package/getAngleForPositionMidpoint.js +3 -0
  155. package/getAnnotationClassnames.js +12 -0
  156. package/getAnnotationNameAndStartStopString.js +61 -0
  157. package/getBpsPerRow.js +19 -0
  158. package/getCutsiteLabelHeights.js +56 -0
  159. package/getGapMap.js +12 -0
  160. package/getGaps.js +27 -0
  161. package/getInternalLabel.js +40 -0
  162. package/getOveHotkeyDefs.js +12 -0
  163. package/getPairwiseOverviewLinearViewOptions.js +38 -0
  164. package/getRangeAnglesSpecial.js +12 -0
  165. package/getStructuredBases.js +97 -0
  166. package/getTrackFromEvent.js +25 -0
  167. package/getVisibleStartEnd.js +7 -0
  168. package/getXStartAndWidthFromNonCircularRange.js +12 -0
  169. package/getXStartAndWidthOfRangeWrtRow.js +27 -0
  170. package/getXStartAndWidthOfRowAnnotation.js +19 -0
  171. package/getYOffset.js +15 -0
  172. package/hoveredAnnotation.js +24 -0
  173. package/{html2canvas.esm--JN4fLQL.js → html2canvas.esm-DiGWN1gP.js} +187 -229
  174. package/{html2canvas.esm-B7d7VJmQ.cjs → html2canvas.esm-J1esNpMJ.cjs} +187 -229
  175. package/importTool.js +27 -0
  176. package/index.cjs.js +48165 -47142
  177. package/index.es.js +47699 -46676
  178. package/index.js +71 -0
  179. package/inlineFindTool.js +38 -0
  180. package/isElementInViewport.js +29 -0
  181. package/isEnzymeFilterAndSelector.js +1 -0
  182. package/isTargetWithinEl.js +6 -0
  183. package/labelLineIntensity.js +25 -0
  184. package/labelSize.js +23 -0
  185. package/ladderDefaults.js +25 -0
  186. package/lastSavedId.js +20 -0
  187. package/lineageLines.js +11 -0
  188. package/linear.png +0 -0
  189. package/makeStore.js +34 -0
  190. package/massageTickSpacing.js +19 -0
  191. package/materiallyAvailable.js +19 -0
  192. package/middleware.js +112 -0
  193. package/minimumOrfSize.js +24 -0
  194. package/minimumOrfSizeSelector.js +2 -0
  195. package/modalActions.js +3 -0
  196. package/moveCaret.js +58 -0
  197. package/name.js +19 -0
  198. package/normalizeAngle.js +3 -0
  199. package/normalizeAngleRange.js +9 -0
  200. package/oligoTool.js +30 -0
  201. package/onlyUpdateForKeysDeep.js +31 -0
  202. package/orfFrameToColorMap.js +10 -0
  203. package/orfTool.js +136 -0
  204. package/orfsSelector.js +15 -0
  205. package/ove.css +12107 -0
  206. package/package.json +8 -7
  207. package/panelsShown.js +294 -0
  208. package/partLengthsToHide.js +23 -0
  209. package/partOverhangs.js +6 -0
  210. package/partTagSearch.js +69 -0
  211. package/partTool.js +45 -0
  212. package/parts.js +19 -0
  213. package/partsSelector.js +8 -0
  214. package/pie.png +0 -0
  215. package/polarToSpecialCartesian.js +7 -0
  216. package/positionCutsites.js +6 -0
  217. package/prepareRowData.js +64 -0
  218. package/primerBases.js +221 -0
  219. package/primerLengthsToHide.js +27 -0
  220. package/primers.js +19 -0
  221. package/primersSelector.js +8 -0
  222. package/print.png +0 -0
  223. package/printTool.js +31 -0
  224. package/propertiesTool.js +40 -0
  225. package/proteinUtils.js +3 -0
  226. package/pureNoFunc.js +18 -0
  227. package/readOnly.js +25 -0
  228. package/redoTool.js +30 -0
  229. package/reflex-styles.css +128 -0
  230. package/reflex-styles.css.map +9 -0
  231. package/relaxLabelAngles.js +157 -0
  232. package/relaxLabels_DEPRECATED.js +105 -0
  233. package/replacementLayers.js +36 -0
  234. package/restrictionEnzymes.js +52 -0
  235. package/restrictionEnzymesSelector.js +34 -0
  236. package/rowviewContants.js +3 -0
  237. package/ruler.css +89 -0
  238. package/save.png +0 -0
  239. package/saveTool.js +44 -0
  240. package/searchLayersSelector.js +71 -0
  241. package/selectedAnnotations.js +89 -0
  242. package/selectedAnnotationsSelector.js +1 -0
  243. package/selectedCutsitesSelector.js +21 -0
  244. package/selectedPartTags.js +21 -0
  245. package/selectionLayer.js +25 -0
  246. package/selectors/annotationSearchSelector.d.ts +1 -1
  247. package/sequence.js +12 -0
  248. package/sequenceDataHistory.js +43 -0
  249. package/sequenceDataSelector.js +2 -0
  250. package/sequenceLengthSelector.js +5 -0
  251. package/sequenceSelector.js +4 -0
  252. package/sharedActionCreators.js +0 -0
  253. package/shouldFlipText.js +4 -0
  254. package/shouldRerender.js +27 -0
  255. package/showFileDialog.js +25 -0
  256. package/showGCContent.js +23 -0
  257. package/show_cut_sites.png +0 -0
  258. package/show_features.png +0 -0
  259. package/show_orfs.png +0 -0
  260. package/show_primers.png +0 -0
  261. package/simpleDialog.css +13 -0
  262. package/specialCutsiteFilterOptions.js +22 -0
  263. package/src/Editor/DropHandler.js +2 -1
  264. package/src/Editor/index.js +0 -2
  265. package/src/RowItem/StackedAnnotations/getStructuredBases.js +20 -6
  266. package/src/ToolBar/cutsiteTool.js +1 -1
  267. package/src/helperComponents/PropertiesDialog/TranslationProperties.js +2 -1
  268. package/style.css +3 -12100
  269. package/tagsToBoldSelector.js +2 -0
  270. package/toggle_views.svg +1 -0
  271. package/toolBar.js +23 -0
  272. package/translationSearchMatchesSelector.js +14 -0
  273. package/translations.js +20 -0
  274. package/translationsRawSelector.js +8 -0
  275. package/translationsSelector.js +137 -0
  276. package/typeField.js +24 -0
  277. package/undoTool.js +30 -0
  278. package/updateEditor.d.ts +1 -3
  279. package/updateEditor.js +200 -0
  280. package/updateLabelsForInViewFeatures.js +55 -0
  281. package/updateLabelsForInViewFeaturesCircView.js +41 -0
  282. package/updateTrackHelper.js +58 -0
  283. package/uppercaseSequenceMapFont.js +25 -0
  284. package/upsertDeleteActionGenerator.js +31 -0
  285. package/useAAColorType.js +8 -0
  286. package/useAdditionalOrfStartCodons.js +24 -0
  287. package/useAnnotationLimits.js +42 -0
  288. package/useChromatogramPrefs.js +31 -0
  289. package/useFormValue.js +7 -0
  290. package/useLadders.js +6 -0
  291. package/useMeltingTemp.js +7 -0
  292. package/useTmType.js +10 -0
  293. package/userDefinedHandlersAndOpts.js +61 -0
  294. package/utils/getAnnotationNameAndStartStopString.d.ts +1 -5
  295. package/utils/selectionLayer.d.ts +2 -2
  296. package/utils.js +37 -0
  297. package/versionHistory.js +26 -0
  298. package/versionHistoryTool.js +21 -0
  299. package/viewSubmenu.js +479 -0
  300. package/visibilityTool.js +39 -0
  301. package/withEditorInteractions/getBpsPerRow.d.ts +1 -3
  302. package/withHover.js +113 -0
  303. package/withRestrictionEnzymes.js +15 -0
  304. package/index.umd.js +0 -188322
@@ -23,9 +23,7 @@ var extendStatics = /* @__PURE__ */ __name(function(d, b) {
23
23
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
24
24
  d2.__proto__ = b2;
25
25
  } || function(d2, b2) {
26
- for (var p in b2)
27
- if (Object.prototype.hasOwnProperty.call(b2, p))
28
- d2[p] = b2[p];
26
+ for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
29
27
  };
30
28
  return extendStatics(d, b);
31
29
  }, "extendStatics");
@@ -44,9 +42,7 @@ var __assign = /* @__PURE__ */ __name(function() {
44
42
  __assign = Object.assign || /* @__PURE__ */ __name(function __assign2(t) {
45
43
  for (var s, i = 1, n = arguments.length; i < n; i++) {
46
44
  s = arguments[i];
47
- for (var p in s)
48
- if (Object.prototype.hasOwnProperty.call(s, p))
49
- t[p] = s[p];
45
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
50
46
  }
51
47
  return t;
52
48
  }, "__assign");
@@ -85,11 +81,10 @@ function __awaiter(thisArg, _arguments, P, generator) {
85
81
  }
86
82
  __name(__awaiter, "__awaiter");
87
83
  function __generator(thisArg, body) {
88
- var _ = { label: 0, sent: function() {
89
- if (t[0] & 1)
90
- throw t[1];
84
+ var _ = { label: 0, sent: /* @__PURE__ */ __name(function() {
85
+ if (t[0] & 1) throw t[1];
91
86
  return t[1];
92
- }, trys: [], ops: [] }, f2, y, t, g;
87
+ }, "sent"), trys: [], ops: [] }, f2, y, t, g;
93
88
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
94
89
  return this;
95
90
  }), g;
@@ -100,78 +95,70 @@ function __generator(thisArg, body) {
100
95
  }
101
96
  __name(verb, "verb");
102
97
  function step(op) {
103
- if (f2)
104
- throw new TypeError("Generator is already executing.");
105
- while (_)
106
- try {
107
- if (f2 = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
108
- return t;
109
- if (y = 0, t)
110
- op = [op[0] & 2, t.value];
111
- switch (op[0]) {
112
- case 0:
113
- case 1:
98
+ if (f2) throw new TypeError("Generator is already executing.");
99
+ while (_) try {
100
+ if (f2 = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
101
+ if (y = 0, t) op = [op[0] & 2, t.value];
102
+ switch (op[0]) {
103
+ case 0:
104
+ case 1:
105
+ t = op;
106
+ break;
107
+ case 4:
108
+ _.label++;
109
+ return { value: op[1], done: false };
110
+ case 5:
111
+ _.label++;
112
+ y = op[1];
113
+ op = [0];
114
+ continue;
115
+ case 7:
116
+ op = _.ops.pop();
117
+ _.trys.pop();
118
+ continue;
119
+ default:
120
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
121
+ _ = 0;
122
+ continue;
123
+ }
124
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
125
+ _.label = op[1];
126
+ break;
127
+ }
128
+ if (op[0] === 6 && _.label < t[1]) {
129
+ _.label = t[1];
114
130
  t = op;
115
131
  break;
116
- case 4:
117
- _.label++;
118
- return { value: op[1], done: false };
119
- case 5:
120
- _.label++;
121
- y = op[1];
122
- op = [0];
123
- continue;
124
- case 7:
125
- op = _.ops.pop();
126
- _.trys.pop();
127
- continue;
128
- default:
129
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
130
- _ = 0;
131
- continue;
132
- }
133
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
134
- _.label = op[1];
135
- break;
136
- }
137
- if (op[0] === 6 && _.label < t[1]) {
138
- _.label = t[1];
139
- t = op;
140
- break;
141
- }
142
- if (t && _.label < t[2]) {
143
- _.label = t[2];
144
- _.ops.push(op);
145
- break;
146
- }
147
- if (t[2])
148
- _.ops.pop();
149
- _.trys.pop();
150
- continue;
151
- }
152
- op = body.call(thisArg, _);
153
- } catch (e2) {
154
- op = [6, e2];
155
- y = 0;
156
- } finally {
157
- f2 = t = 0;
158
- }
159
- if (op[0] & 5)
160
- throw op[1];
132
+ }
133
+ if (t && _.label < t[2]) {
134
+ _.label = t[2];
135
+ _.ops.push(op);
136
+ break;
137
+ }
138
+ if (t[2]) _.ops.pop();
139
+ _.trys.pop();
140
+ continue;
141
+ }
142
+ op = body.call(thisArg, _);
143
+ } catch (e2) {
144
+ op = [6, e2];
145
+ y = 0;
146
+ } finally {
147
+ f2 = t = 0;
148
+ }
149
+ if (op[0] & 5) throw op[1];
161
150
  return { value: op[0] ? op[1] : void 0, done: true };
162
151
  }
163
152
  __name(step, "step");
164
153
  }
165
154
  __name(__generator, "__generator");
166
155
  function __spreadArray(to, from, pack2) {
167
- if (arguments.length === 2)
168
- for (var i = 0, l = from.length, ar; i < l; i++) {
169
- if (ar || !(i in from)) {
170
- if (!ar)
171
- ar = Array.prototype.slice.call(from, 0, i);
172
- ar[i] = from[i];
173
- }
156
+ if (arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
157
+ if (ar || !(i in from)) {
158
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
159
+ ar[i] = from[i];
174
160
  }
161
+ }
175
162
  return to.concat(ar || from);
176
163
  }
177
164
  __name(__spreadArray, "__spreadArray");
@@ -752,7 +739,7 @@ var LineBreaker = /* @__PURE__ */ __name(function(str, options) {
752
739
  var lastEnd = 0;
753
740
  var nextIndex = 0;
754
741
  return {
755
- next: function() {
742
+ next: /* @__PURE__ */ __name(function() {
756
743
  if (nextIndex >= length) {
757
744
  return { done: true, value: null };
758
745
  }
@@ -765,7 +752,7 @@ var LineBreaker = /* @__PURE__ */ __name(function(str, options) {
765
752
  return { value, done: false };
766
753
  }
767
754
  return { done: true, value: null };
768
- }
755
+ }, "next")
769
756
  };
770
757
  }, "LineBreaker");
771
758
  var FLAG_UNRESTRICTED = 1 << 0;
@@ -1627,6 +1614,7 @@ var getAbsoluteValue = /* @__PURE__ */ __name(function(token, parent) {
1627
1614
  case "rem":
1628
1615
  case "em":
1629
1616
  return 16 * token.number;
1617
+ // TODO use correct font-size
1630
1618
  case "px":
1631
1619
  default:
1632
1620
  return token.number;
@@ -1640,7 +1628,7 @@ var RAD = "rad";
1640
1628
  var TURN = "turn";
1641
1629
  var angle = {
1642
1630
  name: "angle",
1643
- parse: function(_context, value) {
1631
+ parse: /* @__PURE__ */ __name(function(_context, value) {
1644
1632
  if (value.type === 15) {
1645
1633
  switch (value.unit) {
1646
1634
  case DEG:
@@ -1654,7 +1642,7 @@ var angle = {
1654
1642
  }
1655
1643
  }
1656
1644
  throw new Error("Unsupported angle type");
1657
- }
1645
+ }, "parse")
1658
1646
  };
1659
1647
  var isAngle = /* @__PURE__ */ __name(function(value) {
1660
1648
  if (value.type === 15) {
@@ -1709,7 +1697,7 @@ var deg = /* @__PURE__ */ __name(function(deg2) {
1709
1697
  }, "deg");
1710
1698
  var color$1 = {
1711
1699
  name: "color",
1712
- parse: function(context, value) {
1700
+ parse: /* @__PURE__ */ __name(function(context, value) {
1713
1701
  if (value.type === 18) {
1714
1702
  var colorFunction = SUPPORTED_COLOR_FUNCTIONS[value.name];
1715
1703
  if (typeof colorFunction === "undefined") {
@@ -1752,7 +1740,7 @@ var color$1 = {
1752
1740
  }
1753
1741
  }
1754
1742
  return COLORS.TRANSPARENT;
1755
- }
1743
+ }, "parse")
1756
1744
  };
1757
1745
  var isTransparent = /* @__PURE__ */ __name(function(color2) {
1758
1746
  return (255 & color2) === 0;
@@ -1989,7 +1977,7 @@ var backgroundClip = {
1989
1977
  initialValue: "border-box",
1990
1978
  prefix: false,
1991
1979
  type: 1,
1992
- parse: function(_context, tokens) {
1980
+ parse: /* @__PURE__ */ __name(function(_context, tokens) {
1993
1981
  return tokens.map(function(token) {
1994
1982
  if (isIdentToken(token)) {
1995
1983
  switch (token.value) {
@@ -2001,7 +1989,7 @@ var backgroundClip = {
2001
1989
  }
2002
1990
  return 0;
2003
1991
  });
2004
- }
1992
+ }, "parse")
2005
1993
  };
2006
1994
  var backgroundColor = {
2007
1995
  name: "background-color",
@@ -2417,7 +2405,7 @@ var isRadialGradient = /* @__PURE__ */ __name(function(background) {
2417
2405
  }, "isRadialGradient");
2418
2406
  var image = {
2419
2407
  name: "image",
2420
- parse: function(context, value) {
2408
+ parse: /* @__PURE__ */ __name(function(context, value) {
2421
2409
  if (value.type === 22) {
2422
2410
  var image_1 = {
2423
2411
  url: value.value,
@@ -2435,7 +2423,7 @@ var image = {
2435
2423
  return imageFunction(context, value.values);
2436
2424
  }
2437
2425
  throw new Error("Unsupported image type " + value.type);
2438
- }
2426
+ }, "parse")
2439
2427
  };
2440
2428
  function isSupportedImage(value) {
2441
2429
  return !(value.type === 20 && value.value === "none") && (value.type !== 18 || !!SUPPORTED_IMAGE_FUNCTIONS[value.name]);
@@ -2459,7 +2447,7 @@ var backgroundImage = {
2459
2447
  initialValue: "none",
2460
2448
  type: 1,
2461
2449
  prefix: false,
2462
- parse: function(context, tokens) {
2450
+ parse: /* @__PURE__ */ __name(function(context, tokens) {
2463
2451
  if (tokens.length === 0) {
2464
2452
  return [];
2465
2453
  }
@@ -2472,14 +2460,14 @@ var backgroundImage = {
2472
2460
  }).map(function(value) {
2473
2461
  return image.parse(context, value);
2474
2462
  });
2475
- }
2463
+ }, "parse")
2476
2464
  };
2477
2465
  var backgroundOrigin = {
2478
2466
  name: "background-origin",
2479
2467
  initialValue: "border-box",
2480
2468
  prefix: false,
2481
2469
  type: 1,
2482
- parse: function(_context, tokens) {
2470
+ parse: /* @__PURE__ */ __name(function(_context, tokens) {
2483
2471
  return tokens.map(function(token) {
2484
2472
  if (isIdentToken(token)) {
2485
2473
  switch (token.value) {
@@ -2491,31 +2479,31 @@ var backgroundOrigin = {
2491
2479
  }
2492
2480
  return 0;
2493
2481
  });
2494
- }
2482
+ }, "parse")
2495
2483
  };
2496
2484
  var backgroundPosition = {
2497
2485
  name: "background-position",
2498
2486
  initialValue: "0% 0%",
2499
2487
  type: 1,
2500
2488
  prefix: false,
2501
- parse: function(_context, tokens) {
2489
+ parse: /* @__PURE__ */ __name(function(_context, tokens) {
2502
2490
  return parseFunctionArgs(tokens).map(function(values) {
2503
2491
  return values.filter(isLengthPercentage);
2504
2492
  }).map(parseLengthPercentageTuple);
2505
- }
2493
+ }, "parse")
2506
2494
  };
2507
2495
  var backgroundRepeat = {
2508
2496
  name: "background-repeat",
2509
2497
  initialValue: "repeat",
2510
2498
  prefix: false,
2511
2499
  type: 1,
2512
- parse: function(_context, tokens) {
2500
+ parse: /* @__PURE__ */ __name(function(_context, tokens) {
2513
2501
  return parseFunctionArgs(tokens).map(function(values) {
2514
2502
  return values.filter(isIdentToken).map(function(token) {
2515
2503
  return token.value;
2516
2504
  }).join(" ");
2517
2505
  }).map(parseBackgroundRepeat);
2518
- }
2506
+ }, "parse")
2519
2507
  };
2520
2508
  var parseBackgroundRepeat = /* @__PURE__ */ __name(function(value) {
2521
2509
  switch (value) {
@@ -2543,11 +2531,11 @@ var backgroundSize = {
2543
2531
  initialValue: "0",
2544
2532
  prefix: false,
2545
2533
  type: 1,
2546
- parse: function(_context, tokens) {
2534
+ parse: /* @__PURE__ */ __name(function(_context, tokens) {
2547
2535
  return parseFunctionArgs(tokens).map(function(values) {
2548
2536
  return values.filter(isBackgroundSizeInfoToken);
2549
2537
  });
2550
- }
2538
+ }, "parse")
2551
2539
  };
2552
2540
  var isBackgroundSizeInfoToken = /* @__PURE__ */ __name(function(value) {
2553
2541
  return isIdentToken(value) || isLengthPercentage(value);
@@ -2571,9 +2559,9 @@ var borderRadiusForSide = /* @__PURE__ */ __name(function(side) {
2571
2559
  initialValue: "0 0",
2572
2560
  prefix: false,
2573
2561
  type: 1,
2574
- parse: function(_context, tokens) {
2562
+ parse: /* @__PURE__ */ __name(function(_context, tokens) {
2575
2563
  return parseLengthPercentageTuple(tokens.filter(isLengthPercentage));
2576
- }
2564
+ }, "parse")
2577
2565
  };
2578
2566
  }, "borderRadiusForSide");
2579
2567
  var borderTopLeftRadius = borderRadiusForSide("top-left");
@@ -2586,7 +2574,7 @@ var borderStyleForSide = /* @__PURE__ */ __name(function(side) {
2586
2574
  initialValue: "solid",
2587
2575
  prefix: false,
2588
2576
  type: 2,
2589
- parse: function(_context, style) {
2577
+ parse: /* @__PURE__ */ __name(function(_context, style) {
2590
2578
  switch (style) {
2591
2579
  case "none":
2592
2580
  return 0;
@@ -2598,7 +2586,7 @@ var borderStyleForSide = /* @__PURE__ */ __name(function(side) {
2598
2586
  return 4;
2599
2587
  }
2600
2588
  return 1;
2601
- }
2589
+ }, "parse")
2602
2590
  };
2603
2591
  }, "borderStyleForSide");
2604
2592
  var borderTopStyle = borderStyleForSide("top");
@@ -2611,12 +2599,12 @@ var borderWidthForSide = /* @__PURE__ */ __name(function(side) {
2611
2599
  initialValue: "0",
2612
2600
  type: 0,
2613
2601
  prefix: false,
2614
- parse: function(_context, token) {
2602
+ parse: /* @__PURE__ */ __name(function(_context, token) {
2615
2603
  if (isDimensionToken(token)) {
2616
2604
  return token.number;
2617
2605
  }
2618
2606
  return 0;
2619
- }
2607
+ }, "parse")
2620
2608
  };
2621
2609
  }, "borderWidthForSide");
2622
2610
  var borderTopWidth = borderWidthForSide("top");
@@ -2635,7 +2623,7 @@ var direction = {
2635
2623
  initialValue: "ltr",
2636
2624
  prefix: false,
2637
2625
  type: 2,
2638
- parse: function(_context, direction2) {
2626
+ parse: /* @__PURE__ */ __name(function(_context, direction2) {
2639
2627
  switch (direction2) {
2640
2628
  case "rtl":
2641
2629
  return 1;
@@ -2643,14 +2631,14 @@ var direction = {
2643
2631
  default:
2644
2632
  return 0;
2645
2633
  }
2646
- }
2634
+ }, "parse")
2647
2635
  };
2648
2636
  var display = {
2649
2637
  name: "display",
2650
2638
  initialValue: "inline-block",
2651
2639
  prefix: false,
2652
2640
  type: 1,
2653
- parse: function(_context, tokens) {
2641
+ parse: /* @__PURE__ */ __name(function(_context, tokens) {
2654
2642
  return tokens.filter(isIdentToken).reduce(
2655
2643
  function(bit, token) {
2656
2644
  return bit | parseDisplayValue(token.value);
@@ -2658,7 +2646,7 @@ var display = {
2658
2646
  0
2659
2647
  /* NONE */
2660
2648
  );
2661
- }
2649
+ }, "parse")
2662
2650
  };
2663
2651
  var parseDisplayValue = /* @__PURE__ */ __name(function(display2) {
2664
2652
  switch (display2) {
@@ -2731,7 +2719,7 @@ var float = {
2731
2719
  initialValue: "none",
2732
2720
  prefix: false,
2733
2721
  type: 2,
2734
- parse: function(_context, float2) {
2722
+ parse: /* @__PURE__ */ __name(function(_context, float2) {
2735
2723
  switch (float2) {
2736
2724
  case "left":
2737
2725
  return 1;
@@ -2743,14 +2731,14 @@ var float = {
2743
2731
  return 4;
2744
2732
  }
2745
2733
  return 0;
2746
- }
2734
+ }, "parse")
2747
2735
  };
2748
2736
  var letterSpacing = {
2749
2737
  name: "letter-spacing",
2750
2738
  initialValue: "0",
2751
2739
  prefix: false,
2752
2740
  type: 0,
2753
- parse: function(_context, token) {
2741
+ parse: /* @__PURE__ */ __name(function(_context, token) {
2754
2742
  if (token.type === 20 && token.value === "normal") {
2755
2743
  return 0;
2756
2744
  }
@@ -2761,7 +2749,7 @@ var letterSpacing = {
2761
2749
  return token.number;
2762
2750
  }
2763
2751
  return 0;
2764
- }
2752
+ }, "parse")
2765
2753
  };
2766
2754
  var LINE_BREAK;
2767
2755
  (function(LINE_BREAK2) {
@@ -2773,7 +2761,7 @@ var lineBreak = {
2773
2761
  initialValue: "normal",
2774
2762
  prefix: false,
2775
2763
  type: 2,
2776
- parse: function(_context, lineBreak2) {
2764
+ parse: /* @__PURE__ */ __name(function(_context, lineBreak2) {
2777
2765
  switch (lineBreak2) {
2778
2766
  case "strict":
2779
2767
  return LINE_BREAK.STRICT;
@@ -2781,7 +2769,7 @@ var lineBreak = {
2781
2769
  default:
2782
2770
  return LINE_BREAK.NORMAL;
2783
2771
  }
2784
- }
2772
+ }, "parse")
2785
2773
  };
2786
2774
  var lineHeight = {
2787
2775
  name: "line-height",
@@ -2805,19 +2793,19 @@ var listStyleImage = {
2805
2793
  initialValue: "none",
2806
2794
  type: 0,
2807
2795
  prefix: false,
2808
- parse: function(context, token) {
2796
+ parse: /* @__PURE__ */ __name(function(context, token) {
2809
2797
  if (token.type === 20 && token.value === "none") {
2810
2798
  return null;
2811
2799
  }
2812
2800
  return image.parse(context, token);
2813
- }
2801
+ }, "parse")
2814
2802
  };
2815
2803
  var listStylePosition = {
2816
2804
  name: "list-style-position",
2817
2805
  initialValue: "outside",
2818
2806
  prefix: false,
2819
2807
  type: 2,
2820
- parse: function(_context, position2) {
2808
+ parse: /* @__PURE__ */ __name(function(_context, position2) {
2821
2809
  switch (position2) {
2822
2810
  case "inside":
2823
2811
  return 0;
@@ -2825,14 +2813,14 @@ var listStylePosition = {
2825
2813
  default:
2826
2814
  return 1;
2827
2815
  }
2828
- }
2816
+ }, "parse")
2829
2817
  };
2830
2818
  var listStyleType = {
2831
2819
  name: "list-style-type",
2832
2820
  initialValue: "none",
2833
2821
  prefix: false,
2834
2822
  type: 2,
2835
- parse: function(_context, type) {
2823
+ parse: /* @__PURE__ */ __name(function(_context, type) {
2836
2824
  switch (type) {
2837
2825
  case "disc":
2838
2826
  return 0;
@@ -2944,7 +2932,7 @@ var listStyleType = {
2944
2932
  default:
2945
2933
  return -1;
2946
2934
  }
2947
- }
2935
+ }, "parse")
2948
2936
  };
2949
2937
  var marginForSide = /* @__PURE__ */ __name(function(side) {
2950
2938
  return {
@@ -2964,7 +2952,7 @@ var overflow = {
2964
2952
  initialValue: "visible",
2965
2953
  prefix: false,
2966
2954
  type: 1,
2967
- parse: function(_context, tokens) {
2955
+ parse: /* @__PURE__ */ __name(function(_context, tokens) {
2968
2956
  return tokens.filter(isIdentToken).map(function(overflow2) {
2969
2957
  switch (overflow2.value) {
2970
2958
  case "hidden":
@@ -2980,14 +2968,14 @@ var overflow = {
2980
2968
  return 0;
2981
2969
  }
2982
2970
  });
2983
- }
2971
+ }, "parse")
2984
2972
  };
2985
2973
  var overflowWrap = {
2986
2974
  name: "overflow-wrap",
2987
2975
  initialValue: "normal",
2988
2976
  prefix: false,
2989
2977
  type: 2,
2990
- parse: function(_context, overflow2) {
2978
+ parse: /* @__PURE__ */ __name(function(_context, overflow2) {
2991
2979
  switch (overflow2) {
2992
2980
  case "break-word":
2993
2981
  return "break-word";
@@ -2995,7 +2983,7 @@ var overflowWrap = {
2995
2983
  default:
2996
2984
  return "normal";
2997
2985
  }
2998
- }
2986
+ }, "parse")
2999
2987
  };
3000
2988
  var paddingForSide = /* @__PURE__ */ __name(function(side) {
3001
2989
  return {
@@ -3015,7 +3003,7 @@ var textAlign = {
3015
3003
  initialValue: "left",
3016
3004
  prefix: false,
3017
3005
  type: 2,
3018
- parse: function(_context, textAlign2) {
3006
+ parse: /* @__PURE__ */ __name(function(_context, textAlign2) {
3019
3007
  switch (textAlign2) {
3020
3008
  case "right":
3021
3009
  return 2;
@@ -3026,14 +3014,14 @@ var textAlign = {
3026
3014
  default:
3027
3015
  return 0;
3028
3016
  }
3029
- }
3017
+ }, "parse")
3030
3018
  };
3031
3019
  var position = {
3032
3020
  name: "position",
3033
3021
  initialValue: "static",
3034
3022
  prefix: false,
3035
3023
  type: 2,
3036
- parse: function(_context, position2) {
3024
+ parse: /* @__PURE__ */ __name(function(_context, position2) {
3037
3025
  switch (position2) {
3038
3026
  case "relative":
3039
3027
  return 1;
@@ -3045,14 +3033,14 @@ var position = {
3045
3033
  return 4;
3046
3034
  }
3047
3035
  return 0;
3048
- }
3036
+ }, "parse")
3049
3037
  };
3050
3038
  var textShadow = {
3051
3039
  name: "text-shadow",
3052
3040
  initialValue: "none",
3053
3041
  type: 1,
3054
3042
  prefix: false,
3055
- parse: function(context, tokens) {
3043
+ parse: /* @__PURE__ */ __name(function(context, tokens) {
3056
3044
  if (tokens.length === 1 && isIdentWithValue(tokens[0], "none")) {
3057
3045
  return [];
3058
3046
  }
@@ -3081,14 +3069,14 @@ var textShadow = {
3081
3069
  }
3082
3070
  return shadow;
3083
3071
  });
3084
- }
3072
+ }, "parse")
3085
3073
  };
3086
3074
  var textTransform = {
3087
3075
  name: "text-transform",
3088
3076
  initialValue: "none",
3089
3077
  prefix: false,
3090
3078
  type: 2,
3091
- parse: function(_context, textTransform2) {
3079
+ parse: /* @__PURE__ */ __name(function(_context, textTransform2) {
3092
3080
  switch (textTransform2) {
3093
3081
  case "uppercase":
3094
3082
  return 2;
@@ -3098,14 +3086,14 @@ var textTransform = {
3098
3086
  return 3;
3099
3087
  }
3100
3088
  return 0;
3101
- }
3089
+ }, "parse")
3102
3090
  };
3103
3091
  var transform$1 = {
3104
3092
  name: "transform",
3105
3093
  initialValue: "none",
3106
3094
  prefix: true,
3107
3095
  type: 0,
3108
- parse: function(_context, token) {
3096
+ parse: /* @__PURE__ */ __name(function(_context, token) {
3109
3097
  if (token.type === 20 && token.value === "none") {
3110
3098
  return null;
3111
3099
  }
@@ -3117,7 +3105,7 @@ var transform$1 = {
3117
3105
  return transformFunction(token.values);
3118
3106
  }
3119
3107
  return null;
3120
- }
3108
+ }, "parse")
3121
3109
  };
3122
3110
  var matrix = /* @__PURE__ */ __name(function(args) {
3123
3111
  var values = args.filter(function(arg) {
@@ -3163,20 +3151,20 @@ var transformOrigin = {
3163
3151
  initialValue: "50% 50%",
3164
3152
  prefix: true,
3165
3153
  type: 1,
3166
- parse: function(_context, tokens) {
3154
+ parse: /* @__PURE__ */ __name(function(_context, tokens) {
3167
3155
  var origins = tokens.filter(isLengthPercentage);
3168
3156
  if (origins.length !== 2) {
3169
3157
  return DEFAULT;
3170
3158
  }
3171
3159
  return [origins[0], origins[1]];
3172
- }
3160
+ }, "parse")
3173
3161
  };
3174
3162
  var visibility = {
3175
3163
  name: "visible",
3176
3164
  initialValue: "none",
3177
3165
  prefix: false,
3178
3166
  type: 2,
3179
- parse: function(_context, visibility2) {
3167
+ parse: /* @__PURE__ */ __name(function(_context, visibility2) {
3180
3168
  switch (visibility2) {
3181
3169
  case "hidden":
3182
3170
  return 1;
@@ -3186,7 +3174,7 @@ var visibility = {
3186
3174
  default:
3187
3175
  return 0;
3188
3176
  }
3189
- }
3177
+ }, "parse")
3190
3178
  };
3191
3179
  var WORD_BREAK;
3192
3180
  (function(WORD_BREAK2) {
@@ -3199,7 +3187,7 @@ var wordBreak = {
3199
3187
  initialValue: "normal",
3200
3188
  prefix: false,
3201
3189
  type: 2,
3202
- parse: function(_context, wordBreak2) {
3190
+ parse: /* @__PURE__ */ __name(function(_context, wordBreak2) {
3203
3191
  switch (wordBreak2) {
3204
3192
  case "break-all":
3205
3193
  return WORD_BREAK.BREAK_ALL;
@@ -3209,14 +3197,14 @@ var wordBreak = {
3209
3197
  default:
3210
3198
  return WORD_BREAK.NORMAL;
3211
3199
  }
3212
- }
3200
+ }, "parse")
3213
3201
  };
3214
3202
  var zIndex = {
3215
3203
  name: "z-index",
3216
3204
  initialValue: "auto",
3217
3205
  prefix: false,
3218
3206
  type: 0,
3219
- parse: function(_context, token) {
3207
+ parse: /* @__PURE__ */ __name(function(_context, token) {
3220
3208
  if (token.type === 20) {
3221
3209
  return { auto: true, order: 0 };
3222
3210
  }
@@ -3224,11 +3212,11 @@ var zIndex = {
3224
3212
  return { auto: false, order: token.number };
3225
3213
  }
3226
3214
  throw new Error("Invalid z-index number parsed");
3227
- }
3215
+ }, "parse")
3228
3216
  };
3229
3217
  var time = {
3230
3218
  name: "time",
3231
- parse: function(_context, value) {
3219
+ parse: /* @__PURE__ */ __name(function(_context, value) {
3232
3220
  if (value.type === 15) {
3233
3221
  switch (value.unit.toLowerCase()) {
3234
3222
  case "s":
@@ -3238,19 +3226,19 @@ var time = {
3238
3226
  }
3239
3227
  }
3240
3228
  throw new Error("Unsupported time type");
3241
- }
3229
+ }, "parse")
3242
3230
  };
3243
3231
  var opacity = {
3244
3232
  name: "opacity",
3245
3233
  initialValue: "1",
3246
3234
  type: 0,
3247
3235
  prefix: false,
3248
- parse: function(_context, token) {
3236
+ parse: /* @__PURE__ */ __name(function(_context, token) {
3249
3237
  if (isNumberToken(token)) {
3250
3238
  return token.number;
3251
3239
  }
3252
3240
  return 1;
3253
- }
3241
+ }, "parse")
3254
3242
  };
3255
3243
  var textDecorationColor = {
3256
3244
  name: "text-decoration-color",
@@ -3264,7 +3252,7 @@ var textDecorationLine = {
3264
3252
  initialValue: "none",
3265
3253
  prefix: false,
3266
3254
  type: 1,
3267
- parse: function(_context, tokens) {
3255
+ parse: /* @__PURE__ */ __name(function(_context, tokens) {
3268
3256
  return tokens.filter(isIdentToken).map(function(token) {
3269
3257
  switch (token.value) {
3270
3258
  case "underline":
@@ -3280,14 +3268,14 @@ var textDecorationLine = {
3280
3268
  }).filter(function(line) {
3281
3269
  return line !== 0;
3282
3270
  });
3283
- }
3271
+ }, "parse")
3284
3272
  };
3285
3273
  var fontFamily = {
3286
3274
  name: "font-family",
3287
3275
  initialValue: "",
3288
3276
  prefix: false,
3289
3277
  type: 1,
3290
- parse: function(_context, tokens) {
3278
+ parse: /* @__PURE__ */ __name(function(_context, tokens) {
3291
3279
  var accumulator = [];
3292
3280
  var results = [];
3293
3281
  tokens.forEach(function(token) {
@@ -3311,7 +3299,7 @@ var fontFamily = {
3311
3299
  return results.map(function(result) {
3312
3300
  return result.indexOf(" ") === -1 ? result : "'" + result + "'";
3313
3301
  });
3314
- }
3302
+ }, "parse")
3315
3303
  };
3316
3304
  var fontSize = {
3317
3305
  name: "font-size",
@@ -3325,7 +3313,7 @@ var fontWeight = {
3325
3313
  initialValue: "normal",
3326
3314
  type: 0,
3327
3315
  prefix: false,
3328
- parse: function(_context, token) {
3316
+ parse: /* @__PURE__ */ __name(function(_context, token) {
3329
3317
  if (isNumberToken(token)) {
3330
3318
  return token.number;
3331
3319
  }
@@ -3339,25 +3327,25 @@ var fontWeight = {
3339
3327
  }
3340
3328
  }
3341
3329
  return 400;
3342
- }
3330
+ }, "parse")
3343
3331
  };
3344
3332
  var fontVariant = {
3345
3333
  name: "font-variant",
3346
3334
  initialValue: "none",
3347
3335
  type: 1,
3348
3336
  prefix: false,
3349
- parse: function(_context, tokens) {
3337
+ parse: /* @__PURE__ */ __name(function(_context, tokens) {
3350
3338
  return tokens.filter(isIdentToken).map(function(token) {
3351
3339
  return token.value;
3352
3340
  });
3353
- }
3341
+ }, "parse")
3354
3342
  };
3355
3343
  var fontStyle = {
3356
3344
  name: "font-style",
3357
3345
  initialValue: "normal",
3358
3346
  prefix: false,
3359
3347
  type: 2,
3360
- parse: function(_context, overflow2) {
3348
+ parse: /* @__PURE__ */ __name(function(_context, overflow2) {
3361
3349
  switch (overflow2) {
3362
3350
  case "oblique":
3363
3351
  return "oblique";
@@ -3367,7 +3355,7 @@ var fontStyle = {
3367
3355
  default:
3368
3356
  return "normal";
3369
3357
  }
3370
- }
3358
+ }, "parse")
3371
3359
  };
3372
3360
  var contains = /* @__PURE__ */ __name(function(bit, value) {
3373
3361
  return (bit & value) !== 0;
@@ -3377,7 +3365,7 @@ var content = {
3377
3365
  initialValue: "none",
3378
3366
  type: 1,
3379
3367
  prefix: false,
3380
- parse: function(_context, tokens) {
3368
+ parse: /* @__PURE__ */ __name(function(_context, tokens) {
3381
3369
  if (tokens.length === 0) {
3382
3370
  return [];
3383
3371
  }
@@ -3386,14 +3374,14 @@ var content = {
3386
3374
  return [];
3387
3375
  }
3388
3376
  return tokens;
3389
- }
3377
+ }, "parse")
3390
3378
  };
3391
3379
  var counterIncrement = {
3392
3380
  name: "counter-increment",
3393
3381
  initialValue: "none",
3394
3382
  prefix: true,
3395
3383
  type: 1,
3396
- parse: function(_context, tokens) {
3384
+ parse: /* @__PURE__ */ __name(function(_context, tokens) {
3397
3385
  if (tokens.length === 0) {
3398
3386
  return null;
3399
3387
  }
@@ -3412,14 +3400,14 @@ var counterIncrement = {
3412
3400
  }
3413
3401
  }
3414
3402
  return increments;
3415
- }
3403
+ }, "parse")
3416
3404
  };
3417
3405
  var counterReset = {
3418
3406
  name: "counter-reset",
3419
3407
  initialValue: "none",
3420
3408
  prefix: true,
3421
3409
  type: 1,
3422
- parse: function(_context, tokens) {
3410
+ parse: /* @__PURE__ */ __name(function(_context, tokens) {
3423
3411
  if (tokens.length === 0) {
3424
3412
  return [];
3425
3413
  }
@@ -3434,25 +3422,25 @@ var counterReset = {
3434
3422
  }
3435
3423
  }
3436
3424
  return resets;
3437
- }
3425
+ }, "parse")
3438
3426
  };
3439
3427
  var duration = {
3440
3428
  name: "duration",
3441
3429
  initialValue: "0s",
3442
3430
  prefix: false,
3443
3431
  type: 1,
3444
- parse: function(context, tokens) {
3432
+ parse: /* @__PURE__ */ __name(function(context, tokens) {
3445
3433
  return tokens.filter(isDimensionToken).map(function(token) {
3446
3434
  return time.parse(context, token);
3447
3435
  });
3448
- }
3436
+ }, "parse")
3449
3437
  };
3450
3438
  var quotes = {
3451
3439
  name: "quotes",
3452
3440
  initialValue: "none",
3453
3441
  prefix: true,
3454
3442
  type: 1,
3455
- parse: function(_context, tokens) {
3443
+ parse: /* @__PURE__ */ __name(function(_context, tokens) {
3456
3444
  if (tokens.length === 0) {
3457
3445
  return null;
3458
3446
  }
@@ -3471,7 +3459,7 @@ var quotes = {
3471
3459
  quotes2.push({ open: open_1, close: close_1 });
3472
3460
  }
3473
3461
  return quotes2;
3474
- }
3462
+ }, "parse")
3475
3463
  };
3476
3464
  var getQuote = /* @__PURE__ */ __name(function(quotes2, depth, open) {
3477
3465
  if (!quotes2) {
@@ -3488,7 +3476,7 @@ var boxShadow = {
3488
3476
  initialValue: "none",
3489
3477
  type: 1,
3490
3478
  prefix: false,
3491
- parse: function(context, tokens) {
3479
+ parse: /* @__PURE__ */ __name(function(context, tokens) {
3492
3480
  if (tokens.length === 1 && isIdentWithValue(tokens[0], "none")) {
3493
3481
  return [];
3494
3482
  }
@@ -3523,14 +3511,14 @@ var boxShadow = {
3523
3511
  }
3524
3512
  return shadow;
3525
3513
  });
3526
- }
3514
+ }, "parse")
3527
3515
  };
3528
3516
  var paintOrder = {
3529
3517
  name: "paint-order",
3530
3518
  initialValue: "normal",
3531
3519
  prefix: false,
3532
3520
  type: 1,
3533
- parse: function(_context, tokens) {
3521
+ parse: /* @__PURE__ */ __name(function(_context, tokens) {
3534
3522
  var DEFAULT_VALUE2 = [
3535
3523
  0,
3536
3524
  1,
@@ -3566,7 +3554,7 @@ var paintOrder = {
3566
3554
  }
3567
3555
  });
3568
3556
  return layers;
3569
- }
3557
+ }, "parse")
3570
3558
  };
3571
3559
  var webkitTextStrokeColor = {
3572
3560
  name: "-webkit-text-stroke-color",
@@ -3580,12 +3568,12 @@ var webkitTextStrokeWidth = {
3580
3568
  initialValue: "0",
3581
3569
  type: 0,
3582
3570
  prefix: false,
3583
- parse: function(_context, token) {
3571
+ parse: /* @__PURE__ */ __name(function(_context, token) {
3584
3572
  if (isDimensionToken(token)) {
3585
3573
  return token.number;
3586
3574
  }
3587
3575
  return 0;
3588
- }
3576
+ }, "parse")
3589
3577
  };
3590
3578
  var CSSParsedDeclaration = (
3591
3579
  /** @class */
@@ -4080,7 +4068,7 @@ var GraphemeBreaker = /* @__PURE__ */ __name(function(str) {
4080
4068
  var lastEnd = 0;
4081
4069
  var classTypes = codePoints.map(codePointToClass);
4082
4070
  return {
4083
- next: function() {
4071
+ next: /* @__PURE__ */ __name(function() {
4084
4072
  if (index >= length) {
4085
4073
  return { done: true, value: null };
4086
4074
  }
@@ -4093,7 +4081,7 @@ var GraphemeBreaker = /* @__PURE__ */ __name(function(str) {
4093
4081
  return { value, done: false };
4094
4082
  }
4095
4083
  return { done: true, value: null };
4096
- }
4084
+ }, "next")
4097
4085
  };
4098
4086
  }, "GraphemeBreaker");
4099
4087
  var splitGraphemes = /* @__PURE__ */ __name(function(str) {
@@ -5291,15 +5279,13 @@ var DocumentCloner = (
5291
5279
  if (typeof referenceElement === "undefined") {
5292
5280
  return [2, Promise.reject("Error finding the " + this.referenceElement.nodeName + " in the cloned document")];
5293
5281
  }
5294
- if (!(documentClone.fonts && documentClone.fonts.ready))
5295
- return [3, 2];
5282
+ if (!(documentClone.fonts && documentClone.fonts.ready)) return [3, 2];
5296
5283
  return [4, documentClone.fonts.ready];
5297
5284
  case 1:
5298
5285
  _a.sent();
5299
5286
  _a.label = 2;
5300
5287
  case 2:
5301
- if (!/(AppleWebKit)/g.test(navigator.userAgent))
5302
- return [3, 4];
5288
+ if (!/(AppleWebKit)/g.test(navigator.userAgent)) return [3, 4];
5303
5289
  return [4, imagesReady(documentClone)];
5304
5290
  case 3:
5305
5291
  _a.sent();
@@ -5558,8 +5544,7 @@ var DocumentCloner = (
5558
5544
  }).join(separator);
5559
5545
  anonymousReplacedElement.appendChild(document2.createTextNode(text));
5560
5546
  }
5561
- } else
5562
- ;
5547
+ } else ;
5563
5548
  } else if (token.type === 20) {
5564
5549
  switch (token.value) {
5565
5550
  case "open-quote":
@@ -5775,8 +5760,7 @@ var Cache = (
5775
5760
  ];
5776
5761
  }
5777
5762
  src = key;
5778
- if (!useProxy)
5779
- return [3, 2];
5763
+ if (!useProxy) return [3, 2];
5780
5764
  return [4, this.proxy(src)];
5781
5765
  case 1:
5782
5766
  src = _a.sent();
@@ -6689,8 +6673,7 @@ var CanvasRenderer = (
6689
6673
  switch (_a.label) {
6690
6674
  case 0:
6691
6675
  styles = stack.element.container.styles;
6692
- if (!styles.isVisible())
6693
- return [3, 2];
6676
+ if (!styles.isVisible()) return [3, 2];
6694
6677
  return [4, this.renderStackContent(stack)];
6695
6678
  case 1:
6696
6679
  _a.sent();
@@ -6716,8 +6699,7 @@ var CanvasRenderer = (
6716
6699
  )) {
6717
6700
  debugger;
6718
6701
  }
6719
- if (!paint.container.styles.isVisible())
6720
- return [3, 3];
6702
+ if (!paint.container.styles.isVisible()) return [3, 3];
6721
6703
  return [4, this.renderNodeBackgroundAndBorders(paint)];
6722
6704
  case 1:
6723
6705
  _a.sent();
@@ -6855,8 +6837,7 @@ var CanvasRenderer = (
6855
6837
  _i = 0, _a = container.textNodes;
6856
6838
  _c.label = 1;
6857
6839
  case 1:
6858
- if (!(_i < _a.length))
6859
- return [3, 4];
6840
+ if (!(_i < _a.length)) return [3, 4];
6860
6841
  child = _a[_i];
6861
6842
  return [4, this.renderTextNode(child, styles)];
6862
6843
  case 2:
@@ -6866,8 +6847,7 @@ var CanvasRenderer = (
6866
6847
  _i++;
6867
6848
  return [3, 1];
6868
6849
  case 4:
6869
- if (!(container instanceof ImageElementContainer))
6870
- return [3, 8];
6850
+ if (!(container instanceof ImageElementContainer)) return [3, 8];
6871
6851
  _c.label = 5;
6872
6852
  case 5:
6873
6853
  _c.trys.push([5, 7, , 8]);
@@ -6884,8 +6864,7 @@ var CanvasRenderer = (
6884
6864
  if (container instanceof CanvasElementContainer) {
6885
6865
  this.renderReplacedElement(container, curves, container.canvas);
6886
6866
  }
6887
- if (!(container instanceof SVGElementContainer))
6888
- return [3, 12];
6867
+ if (!(container instanceof SVGElementContainer)) return [3, 12];
6889
6868
  _c.label = 9;
6890
6869
  case 9:
6891
6870
  _c.trys.push([9, 11, , 12]);
@@ -6899,8 +6878,7 @@ var CanvasRenderer = (
6899
6878
  this.context.logger.error("Error loading svg " + container.svg.substring(0, 255));
6900
6879
  return [3, 12];
6901
6880
  case 12:
6902
- if (!(container instanceof IFrameElementContainer && container.tree))
6903
- return [3, 14];
6881
+ if (!(container instanceof IFrameElementContainer && container.tree)) return [3, 14];
6904
6882
  iframeRenderer = new CanvasRenderer2(this.context, {
6905
6883
  scale: this.options.scale,
6906
6884
  backgroundColor: container.backgroundColor,
@@ -6981,13 +6959,10 @@ var CanvasRenderer = (
6981
6959
  container.styles.display,
6982
6960
  2048
6983
6961
  /* LIST_ITEM */
6984
- ))
6985
- return [3, 20];
6986
- if (!(container.styles.listStyleImage !== null))
6987
- return [3, 19];
6962
+ )) return [3, 20];
6963
+ if (!(container.styles.listStyleImage !== null)) return [3, 19];
6988
6964
  img = container.styles.listStyleImage;
6989
- if (!(img.type === 0))
6990
- return [3, 18];
6965
+ if (!(img.type === 0)) return [3, 18];
6991
6966
  image2 = void 0;
6992
6967
  url = img.url;
6993
6968
  _c.label = 15;
@@ -7045,8 +7020,7 @@ var CanvasRenderer = (
7045
7020
  _i = 0, _a = stack.negativeZIndex;
7046
7021
  _p.label = 2;
7047
7022
  case 2:
7048
- if (!(_i < _a.length))
7049
- return [3, 5];
7023
+ if (!(_i < _a.length)) return [3, 5];
7050
7024
  child = _a[_i];
7051
7025
  return [4, this.renderStack(child)];
7052
7026
  case 3:
@@ -7062,8 +7036,7 @@ var CanvasRenderer = (
7062
7036
  _b = 0, _c = stack.nonInlineLevel;
7063
7037
  _p.label = 7;
7064
7038
  case 7:
7065
- if (!(_b < _c.length))
7066
- return [3, 10];
7039
+ if (!(_b < _c.length)) return [3, 10];
7067
7040
  child = _c[_b];
7068
7041
  return [4, this.renderNode(child)];
7069
7042
  case 8:
@@ -7076,8 +7049,7 @@ var CanvasRenderer = (
7076
7049
  _d = 0, _e = stack.nonPositionedFloats;
7077
7050
  _p.label = 11;
7078
7051
  case 11:
7079
- if (!(_d < _e.length))
7080
- return [3, 14];
7052
+ if (!(_d < _e.length)) return [3, 14];
7081
7053
  child = _e[_d];
7082
7054
  return [4, this.renderStack(child)];
7083
7055
  case 12:
@@ -7090,8 +7062,7 @@ var CanvasRenderer = (
7090
7062
  _f = 0, _g = stack.nonPositionedInlineLevel;
7091
7063
  _p.label = 15;
7092
7064
  case 15:
7093
- if (!(_f < _g.length))
7094
- return [3, 18];
7065
+ if (!(_f < _g.length)) return [3, 18];
7095
7066
  child = _g[_f];
7096
7067
  return [4, this.renderStack(child)];
7097
7068
  case 16:
@@ -7104,8 +7075,7 @@ var CanvasRenderer = (
7104
7075
  _h = 0, _j = stack.inlineLevel;
7105
7076
  _p.label = 19;
7106
7077
  case 19:
7107
- if (!(_h < _j.length))
7108
- return [3, 22];
7078
+ if (!(_h < _j.length)) return [3, 22];
7109
7079
  child = _j[_h];
7110
7080
  return [4, this.renderNode(child)];
7111
7081
  case 20:
@@ -7118,8 +7088,7 @@ var CanvasRenderer = (
7118
7088
  _k = 0, _l = stack.zeroOrAutoZIndexOrTransformedOrOpacity;
7119
7089
  _p.label = 23;
7120
7090
  case 23:
7121
- if (!(_k < _l.length))
7122
- return [3, 26];
7091
+ if (!(_k < _l.length)) return [3, 26];
7123
7092
  child = _l[_k];
7124
7093
  return [4, this.renderStack(child)];
7125
7094
  case 24:
@@ -7132,8 +7101,7 @@ var CanvasRenderer = (
7132
7101
  _m = 0, _o = stack.positiveZIndex;
7133
7102
  _p.label = 27;
7134
7103
  case 27:
7135
- if (!(_m < _o.length))
7136
- return [3, 30];
7104
+ if (!(_m < _o.length)) return [3, 30];
7137
7105
  child = _o[_m];
7138
7106
  return [4, this.renderStack(child)];
7139
7107
  case 28:
@@ -7212,8 +7180,7 @@ var CanvasRenderer = (
7212
7180
  return __generator(this, function(_h) {
7213
7181
  switch (_h.label) {
7214
7182
  case 0:
7215
- if (!(backgroundImage3.type === 0))
7216
- return [3, 5];
7183
+ if (!(backgroundImage3.type === 0)) return [3, 5];
7217
7184
  image2 = void 0;
7218
7185
  url = backgroundImage3.url;
7219
7186
  _h.label = 1;
@@ -7303,8 +7270,7 @@ var CanvasRenderer = (
7303
7270
  _i = 0, _a = container.styles.backgroundImage.slice(0).reverse();
7304
7271
  _b.label = 1;
7305
7272
  case 1:
7306
- if (!(_i < _a.length))
7307
- return [3, 4];
7273
+ if (!(_i < _a.length)) return [3, 4];
7308
7274
  backgroundImage2 = _a[_i];
7309
7275
  return [5, _loop_1(backgroundImage2)];
7310
7276
  case 2:
@@ -7341,8 +7307,7 @@ var CanvasRenderer = (
7341
7307
  return __generator(this, function(_a) {
7342
7308
  switch (_a.label) {
7343
7309
  case 0:
7344
- if (!(width < 3))
7345
- return [3, 2];
7310
+ if (!(width < 3)) return [3, 2];
7346
7311
  return [4, this.renderSolidBorder(color2, side, curvePoints)];
7347
7312
  case 1:
7348
7313
  _a.sent();
@@ -7386,8 +7351,7 @@ var CanvasRenderer = (
7386
7351
  { style: styles.borderLeftStyle, color: styles.borderLeftColor, width: styles.borderLeftWidth }
7387
7352
  ];
7388
7353
  backgroundPaintingArea = calculateBackgroundCurvedPaintingArea(getBackgroundValueForIndex(styles.backgroundClip, 0), paint.curves);
7389
- if (!(hasBackground || styles.boxShadow.length))
7390
- return [3, 2];
7354
+ if (!(hasBackground || styles.boxShadow.length)) return [3, 2];
7391
7355
  this.ctx.save();
7392
7356
  this.path(backgroundPaintingArea);
7393
7357
  this.ctx.clip();
@@ -7427,13 +7391,10 @@ var CanvasRenderer = (
7427
7391
  _i = 0, borders_1 = borders;
7428
7392
  _a.label = 3;
7429
7393
  case 3:
7430
- if (!(_i < borders_1.length))
7431
- return [3, 13];
7394
+ if (!(_i < borders_1.length)) return [3, 13];
7432
7395
  border = borders_1[_i];
7433
- if (!(border.style !== 0 && !isTransparent(border.color) && border.width > 0))
7434
- return [3, 11];
7435
- if (!(border.style === 2))
7436
- return [3, 5];
7396
+ if (!(border.style !== 0 && !isTransparent(border.color) && border.width > 0)) return [3, 11];
7397
+ if (!(border.style === 2)) return [3, 5];
7437
7398
  return [4, this.renderDashedDottedBorder(
7438
7399
  border.color,
7439
7400
  border.width,
@@ -7446,8 +7407,7 @@ var CanvasRenderer = (
7446
7407
  _a.sent();
7447
7408
  return [3, 11];
7448
7409
  case 5:
7449
- if (!(border.style === 3))
7450
- return [3, 7];
7410
+ if (!(border.style === 3)) return [3, 7];
7451
7411
  return [4, this.renderDashedDottedBorder(
7452
7412
  border.color,
7453
7413
  border.width,
@@ -7460,8 +7420,7 @@ var CanvasRenderer = (
7460
7420
  _a.sent();
7461
7421
  return [3, 11];
7462
7422
  case 7:
7463
- if (!(border.style === 4))
7464
- return [3, 9];
7423
+ if (!(border.style === 4)) return [3, 9];
7465
7424
  return [4, this.renderDoubleBorder(border.color, border.width, side, paint.curves)];
7466
7425
  case 8:
7467
7426
  _a.sent();
@@ -7846,8 +7805,7 @@ var renderElement = /* @__PURE__ */ __name(function(element, opts) {
7846
7805
  width: (_r = opts.width) !== null && _r !== void 0 ? _r : Math.ceil(width),
7847
7806
  height: (_s = opts.height) !== null && _s !== void 0 ? _s : Math.ceil(height)
7848
7807
  };
7849
- if (!foreignObjectRendering)
7850
- return [3, 3];
7808
+ if (!foreignObjectRendering) return [3, 3];
7851
7809
  context.logger.debug("Document cloned, using foreign object rendering");
7852
7810
  renderer = new ForeignObjectRenderer(context, renderOptions);
7853
7811
  return [4, renderer.render(clonedElement)];