@sisense/sdk-ui 1.31.0 → 1.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/dist/ai.cjs +22 -423
  2. package/dist/ai.js +1827 -1781
  3. package/dist/analytics-composer.cjs +54 -54
  4. package/dist/analytics-composer.js +546 -525
  5. package/dist/derive-chart-family-B4sA-ao-.cjs +758 -0
  6. package/dist/derive-chart-family-nTKwlMms.js +101063 -0
  7. package/dist/index.cjs +30 -858
  8. package/dist/index.js +14249 -10959
  9. package/dist/packages/sdk-ui/src/ai/ai-context-provider.d.ts +3 -2
  10. package/dist/packages/sdk-ui/src/ai/api/chat-rest-api.d.ts +1 -3
  11. package/dist/packages/sdk-ui/src/ai/api/types.d.ts +12 -3
  12. package/dist/packages/sdk-ui/src/ai/chart/nlq-chart-widget.d.ts +2 -2
  13. package/dist/packages/sdk-ui/src/ai/chatbot.d.ts +2 -2
  14. package/dist/packages/sdk-ui/src/ai/custom-ai-context-provider.d.ts +13 -0
  15. package/dist/packages/sdk-ui/src/ai/index.d.ts +7 -4
  16. package/dist/packages/sdk-ui/src/ai/use-get-nlg-insights.d.ts +2 -0
  17. package/dist/packages/sdk-ui/src/ai/use-get-nlq-result.d.ts +12 -5
  18. package/dist/packages/sdk-ui/src/ai/use-get-query-recommendations.d.ts +8 -4
  19. package/dist/packages/sdk-ui/src/ai/use-last-nlq-response-from-history.d.ts +8 -0
  20. package/dist/packages/sdk-ui/src/ai/use-last-nlq-response.d.ts +1 -2
  21. package/dist/packages/sdk-ui/src/analytics-composer/common/constants.d.ts +1 -0
  22. package/dist/packages/sdk-ui/src/api/rest-api.d.ts +12 -1
  23. package/dist/packages/sdk-ui/src/app/client-application.d.ts +15 -0
  24. package/dist/packages/sdk-ui/src/area-chart.d.ts +2 -2
  25. package/dist/packages/sdk-ui/src/bar-chart.d.ts +2 -2
  26. package/dist/packages/sdk-ui/src/chart/helpers/get-load-data-function.d.ts +16 -0
  27. package/dist/packages/sdk-ui/src/chart/helpers/use-chart-data-preparation.d.ts +17 -0
  28. package/dist/packages/sdk-ui/src/chart/helpers/use-synced-data.d.ts +3 -1
  29. package/dist/packages/sdk-ui/src/chart/index.d.ts +1 -0
  30. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/areamap-chart-builder.d.ts +2 -0
  31. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/data/areamap-data.d.ts +4 -0
  32. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/data/geo-data-coloring-function.d.ts +2 -0
  33. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/data/index.d.ts +2 -0
  34. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/data-options/data-options.d.ts +2 -0
  35. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/data-options/index.d.ts +1 -0
  36. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/design-options/design-options.d.ts +2 -0
  37. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/design-options/index.d.ts +1 -0
  38. package/dist/packages/sdk-ui/src/{charts/map-charts/areamap → chart/restructured-charts/areamap-chart/renderer}/areamap-map.d.ts +2 -2
  39. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/renderer/areamap-utils.d.ts +12 -0
  40. package/dist/packages/sdk-ui/src/{charts/map-charts/areamap → chart/restructured-charts/areamap-chart/renderer}/areamap.d.ts +5 -5
  41. package/dist/packages/sdk-ui/src/{charts/map-charts/areamap → chart/restructured-charts/areamap-chart/renderer}/feature-styles-dictionary.d.ts +2 -2
  42. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/renderer/index.d.ts +1 -0
  43. package/dist/packages/sdk-ui/src/{charts/map-charts/areamap → chart/restructured-charts/areamap-chart/renderer}/use-geo-json.d.ts +1 -1
  44. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/types.d.ts +35 -0
  45. package/dist/packages/sdk-ui/src/chart/restructured-charts/bar-chart/bar-chart-builder.d.ts +2 -0
  46. package/dist/packages/sdk-ui/src/chart/restructured-charts/chart-builder-factory.d.ts +3 -0
  47. package/dist/packages/sdk-ui/src/chart/restructured-charts/column-chart/column-chart-builder.d.ts +2 -0
  48. package/dist/packages/sdk-ui/src/chart/restructured-charts/helpers/cartesians/data-options.d.ts +27 -0
  49. package/dist/packages/sdk-ui/src/chart/restructured-charts/helpers/cartesians/data.d.ts +4 -0
  50. package/dist/packages/sdk-ui/src/chart/restructured-charts/helpers/cartesians/stackable/design-options.d.ts +5 -0
  51. package/dist/packages/sdk-ui/src/chart/restructured-charts/helpers/data-loading.d.ts +12 -0
  52. package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +100 -0
  53. package/dist/packages/sdk-ui/src/chart/restructured-charts/utils.d.ts +3 -0
  54. package/dist/packages/sdk-ui/src/chart-data/types.d.ts +3 -29
  55. package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/prepare-design-options.d.ts +6 -3
  56. package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +9 -8
  57. package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +1 -7
  58. package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip-utils.d.ts +2 -3
  59. package/dist/packages/sdk-ui/src/chart-options-processor/translations/types.d.ts +2 -1
  60. package/dist/packages/sdk-ui/src/column-chart.d.ts +2 -2
  61. package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/group-header.d.ts +10 -0
  62. package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/group.d.ts +10 -0
  63. package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/grouped-items-browser.d.ts +6 -0
  64. package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/item-row.d.ts +15 -0
  65. package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/types.d.ts +40 -0
  66. package/dist/packages/sdk-ui/src/common/components/loading-dots.d.ts +1 -1
  67. package/dist/packages/sdk-ui/src/common/components/popover.d.ts +1 -0
  68. package/dist/packages/sdk-ui/src/common/components/radio.d.ts +1 -0
  69. package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/index.d.ts +4 -0
  70. package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/use-data-accumulation.d.ts +7 -0
  71. package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/use-get-load-more-function.d.ts +4 -0
  72. package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/use-load-data-from-internal-hook.d.ts +16 -0
  73. package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/use-manage-slice-to-load.d.ts +10 -0
  74. package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/utils/calculate-if-all-items-loaded.d.ts +2 -0
  75. package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/utils/get-hook-state-result.d.ts +9 -0
  76. package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/utils/index.d.ts +2 -0
  77. package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/index.d.ts +1 -0
  78. package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/types.d.ts +27 -0
  79. package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/with-lazy-loading.d.ts +7 -0
  80. package/dist/packages/sdk-ui/src/common/hooks/fusion-endpoints/use-get-data-source-fields.d.ts +17 -0
  81. package/dist/packages/sdk-ui/src/common/hooks/use-defaults.d.ts +9 -0
  82. package/dist/packages/sdk-ui/src/common/hooks/use-last-defined.d.ts +6 -0
  83. package/dist/packages/sdk-ui/src/common/icons/approval-icon.d.ts +1 -0
  84. package/dist/packages/sdk-ui/src/common/icons/arrow-icon.d.ts +3 -0
  85. package/dist/packages/sdk-ui/src/common/icons/breadcrumbs-arrows-arrow-icon.d.ts +3 -0
  86. package/dist/packages/sdk-ui/src/common/icons/close-icon.d.ts +1 -0
  87. package/dist/packages/sdk-ui/src/common/icons/date-attribute-icon.d.ts +1 -0
  88. package/dist/packages/sdk-ui/src/common/icons/elasticube-icon.d.ts +1 -0
  89. package/dist/packages/sdk-ui/src/common/icons/numeric-attribute-icon.d.ts +1 -0
  90. package/dist/packages/sdk-ui/src/common/icons/plus-icon.d.ts +1 -0
  91. package/dist/packages/sdk-ui/src/common/icons/table-icon.d.ts +1 -0
  92. package/dist/packages/sdk-ui/src/common/icons/text-attribute-icon.d.ts +1 -0
  93. package/dist/packages/sdk-ui/src/dashboard/components/content-panel.d.ts +8 -1
  94. package/dist/packages/sdk-ui/src/dashboard/components/dashboard-container.d.ts +1 -1
  95. package/dist/packages/sdk-ui/src/dashboard/constants.d.ts +4 -0
  96. package/dist/packages/sdk-ui/src/dashboard/dashboard-helpers.d.ts +6 -6
  97. package/dist/packages/sdk-ui/src/dashboard/hooks/use-tabber.d.ts +18 -0
  98. package/dist/packages/sdk-ui/src/dashboard/hooks/use-widgets-layout.d.ts +14 -0
  99. package/dist/packages/sdk-ui/src/dashboard/index.d.ts +1 -1
  100. package/dist/packages/sdk-ui/src/dashboard/types.d.ts +68 -32
  101. package/dist/packages/sdk-ui/src/dashboard/use-composed-dashboard.d.ts +7 -2
  102. package/dist/packages/sdk-ui/src/data-browser/add-filter-popover/add-filter-data-browser.d.ts +9 -0
  103. package/dist/packages/sdk-ui/src/data-browser/add-filter-popover/add-filter-popover.d.ts +14 -0
  104. package/dist/packages/sdk-ui/src/data-browser/add-filter-popover/index.d.ts +1 -0
  105. package/dist/packages/sdk-ui/src/data-browser/add-filter-popover/popover-header.d.ts +12 -0
  106. package/dist/packages/sdk-ui/src/data-browser/data-source-selector/data-source-selector.d.ts +7 -0
  107. package/dist/packages/sdk-ui/src/data-browser/data-source-selector/use-data-source-selection.d.ts +5 -0
  108. package/dist/packages/sdk-ui/src/data-browser/dimensions-browser/dimensions-browser.d.ts +6 -0
  109. package/dist/packages/sdk-ui/src/data-browser/dimensions-browser/types.d.ts +74 -0
  110. package/dist/packages/sdk-ui/src/data-browser/search-input/search-input.d.ts +5 -0
  111. package/dist/packages/sdk-ui/src/filters/components/common/checkbox.d.ts +1 -0
  112. package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +1 -1
  113. package/dist/packages/sdk-ui/src/filters/components/date-filter/date-filter/calendar-date-selector.d.ts +8 -7
  114. package/dist/packages/sdk-ui/src/filters/components/date-filter/date-filter/date-range-calculator.d.ts +1 -1
  115. package/dist/packages/sdk-ui/src/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +3 -0
  116. package/dist/packages/sdk-ui/src/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +1 -1
  117. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/input.d.ts +5 -2
  118. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/search-input.d.ts +4 -0
  119. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/base.d.ts +11 -7
  120. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/calendar-select.d.ts +24 -0
  121. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/index.d.ts +2 -0
  122. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/types.d.ts +14 -0
  123. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/utils.d.ts +5 -0
  124. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/members-list-select.d.ts +11 -0
  125. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-multi-select.d.ts +3 -4
  126. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-single-select.d.ts +17 -4
  127. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/single-select.d.ts +3 -2
  128. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/selectable-section.d.ts +2 -1
  129. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-container.d.ts +2 -1
  130. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-context.d.ts +13 -0
  131. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-datetime.d.ts +9 -0
  132. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-numerical.d.ts +2 -1
  133. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-popover.d.ts +6 -2
  134. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-textual.d.ts +2 -1
  135. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor.d.ts +6 -2
  136. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/hooks/use-datetime-formatter.d.ts +2 -0
  137. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/hooks/use-get-attribute-stats.d.ts +4 -2
  138. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/common/granularities.d.ts +8 -0
  139. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-condition-section/condition-forms/datetime-exclude-condition-form.d.ts +11 -0
  140. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-condition-section/condition-forms/datetime-is-within-condition-form.d.ts +10 -0
  141. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-condition-section/datetime-condition-section.d.ts +12 -0
  142. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-condition-section/index.d.ts +1 -0
  143. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-members-section.d.ts +12 -0
  144. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-range-section.d.ts +11 -0
  145. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-relative-section.d.ts +9 -0
  146. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/members-section.d.ts +0 -5
  147. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/not-supported-section.d.ts +6 -0
  148. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/numeric-condition-section/numeric-condition-section.d.ts +1 -6
  149. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/text-condition-section.d.ts +1 -3
  150. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/types.d.ts +4 -0
  151. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/utils.d.ts +5 -2
  152. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/types.d.ts +5 -0
  153. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/utils.d.ts +13 -1
  154. package/dist/packages/sdk-ui/src/filters/components/filter-tile-container.d.ts +7 -0
  155. package/dist/packages/sdk-ui/src/filters/components/filters-panel/constants.d.ts +6 -0
  156. package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel-header.d.ts +6 -0
  157. package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel.d.ts +5 -2
  158. package/dist/packages/sdk-ui/src/filters/components/filters-panel/hooks/use-existing-filter-editing.d.ts +19 -0
  159. package/dist/packages/sdk-ui/src/filters/components/filters-panel/hooks/use-new-filter-adding.d.ts +19 -0
  160. package/dist/packages/sdk-ui/src/filters/components/filters-panel/index.d.ts +1 -0
  161. package/dist/packages/sdk-ui/src/filters/components/filters-panel/types.d.ts +60 -0
  162. package/dist/packages/sdk-ui/src/filters/components/icons/date-icon.d.ts +1 -1
  163. package/dist/packages/sdk-ui/src/filters/components/icons/index.d.ts +0 -1
  164. package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/member-filter-tile.d.ts +1 -1
  165. package/dist/packages/sdk-ui/src/filters/hooks/use-get-filter-members.d.ts +3 -2
  166. package/dist/packages/sdk-ui/src/index.d.ts +2 -1
  167. package/dist/packages/sdk-ui/src/line-chart.d.ts +2 -2
  168. package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model-translator.d.ts +0 -2
  169. package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model.d.ts +7 -1
  170. package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +2 -1
  171. package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +9 -1
  172. package/dist/packages/sdk-ui/src/models/widget/use-get-widget-model.d.ts +1 -1
  173. package/dist/packages/sdk-ui/src/pie-chart.d.ts +2 -2
  174. package/dist/packages/sdk-ui/src/pivot-table/formatters/header-cell-formatters/header-cell-value-formatter.d.ts +1 -1
  175. package/dist/packages/sdk-ui/src/plugins-provider/custom-plugins-provider.d.ts +8 -8
  176. package/dist/packages/sdk-ui/src/plugins-provider/plugins-context.d.ts +6 -6
  177. package/dist/packages/sdk-ui/src/plugins-provider/plugins-provider.d.ts +3 -3
  178. package/dist/packages/sdk-ui/src/plugins-provider/types.d.ts +2 -1
  179. package/dist/packages/sdk-ui/src/polar-chart.d.ts +2 -2
  180. package/dist/packages/sdk-ui/src/props.d.ts +35 -15
  181. package/dist/packages/sdk-ui/src/query-execution/use-execute-query.d.ts +1 -1
  182. package/dist/packages/sdk-ui/src/scatter-chart.d.ts +1 -1
  183. package/dist/packages/sdk-ui/src/sisense-chart/sisense-chart.d.ts +1 -16
  184. package/dist/packages/sdk-ui/src/sisense-chart/types.d.ts +16 -1
  185. package/dist/packages/sdk-ui/src/theme-provider/use-theme-settings.d.ts +1 -1
  186. package/dist/packages/sdk-ui/src/theme-provider/utils.d.ts +5 -0
  187. package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +47 -0
  188. package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +94 -0
  189. package/dist/packages/sdk-ui/src/types.d.ts +203 -1
  190. package/dist/packages/sdk-ui/src/utils/data-sources-utils.d.ts +8 -0
  191. package/dist/packages/sdk-ui/src/utils/generate-attribute-name.d.ts +2 -0
  192. package/dist/packages/sdk-ui/src/utils/utility-types.d.ts +38 -0
  193. package/dist/packages/sdk-ui/src/widget-by-id/translate-dashboard-filters.d.ts +1 -0
  194. package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-style-options.d.ts +16 -5
  195. package/dist/packages/sdk-ui/src/widgets/drilldown-widget.d.ts +1 -1
  196. package/dist/packages/sdk-ui/src/widgets/tabber-widget.d.ts +35 -0
  197. package/dist/use-common-filters--WPkVexd.js +28459 -0
  198. package/dist/use-common-filters-BNKt9a0z.cjs +271 -0
  199. package/dist/{widget-composer-BrQ6SrZ6.js → widget-composer-CobNNZ1e.js} +239 -233
  200. package/dist/widget-composer-DPqi_qzU.cjs +316 -0
  201. package/package.json +10 -9
  202. package/dist/derive-chart-family-D3iN--j2.js +0 -44430
  203. package/dist/derive-chart-family-Tt7cIUck.cjs +0 -271
  204. package/dist/packages/sdk-ui/src/ai/use-get-data-source-fields.d.ts +0 -12
  205. package/dist/packages/sdk-ui/src/chart-data/areamap-data.d.ts +0 -4
  206. package/dist/packages/sdk-ui/src/chart-data/data-coloring/geo-data-coloring-function.d.ts +0 -2
  207. package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-to-areamap-options.d.ts +0 -3
  208. package/dist/packages/sdk-ui/src/charts/map-charts/areamap/areamap-utils.d.ts +0 -11
  209. package/dist/use-common-filters-CHBXz5rL.js +0 -83439
  210. package/dist/use-common-filters-Dd-gOMfB.cjs +0 -916
  211. package/dist/widget-composer-BHf4pbvI.cjs +0 -311
  212. /package/dist/packages/sdk-ui/src/{charts/map-charts/areamap → chart/restructured-charts/areamap-chart/renderer}/alternative-country-names-dictionary.d.ts +0 -0
  213. /package/dist/packages/sdk-ui/src/{filters/components → common}/icons/search-icon.d.ts +0 -0
@@ -1,27 +1,26 @@
1
- var xs = Object.defineProperty, Xs = Object.defineProperties;
2
- var Zs = Object.getOwnPropertyDescriptors;
1
+ var zs = Object.defineProperty, Xs = Object.defineProperties;
2
+ var xs = Object.getOwnPropertyDescriptors;
3
3
  var Me = Object.getOwnPropertySymbols;
4
- var Dt = Object.prototype.hasOwnProperty, Kt = Object.prototype.propertyIsEnumerable;
4
+ var Pt = Object.prototype.hasOwnProperty, Dt = Object.prototype.propertyIsEnumerable;
5
5
  var rt = (s, e) => (e = Symbol[s]) ? e : Symbol.for("Symbol." + s);
6
- var ot = (s, e, t) => e in s ? xs(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, R = (s, e) => {
6
+ var jt = (s, e, t) => e in s ? zs(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, R = (s, e) => {
7
7
  for (var t in e || (e = {}))
8
- Dt.call(e, t) && ot(s, t, e[t]);
8
+ Pt.call(e, t) && jt(s, t, e[t]);
9
9
  if (Me)
10
10
  for (var t of Me(e))
11
- Kt.call(e, t) && ot(s, t, e[t]);
11
+ Dt.call(e, t) && jt(s, t, e[t]);
12
12
  return s;
13
- }, G = (s, e) => Xs(s, Zs(e));
14
- var qt = (s, e) => {
13
+ }, G = (s, e) => Xs(s, xs(e));
14
+ var Kt = (s, e) => {
15
15
  var t = {};
16
16
  for (var n in s)
17
- Dt.call(s, n) && e.indexOf(n) < 0 && (t[n] = s[n]);
17
+ Pt.call(s, n) && e.indexOf(n) < 0 && (t[n] = s[n]);
18
18
  if (s != null && Me)
19
19
  for (var n of Me(s))
20
- e.indexOf(n) < 0 && Kt.call(s, n) && (t[n] = s[n]);
20
+ e.indexOf(n) < 0 && Dt.call(s, n) && (t[n] = s[n]);
21
21
  return t;
22
22
  };
23
- var lt = (s, e, t) => (ot(s, typeof e != "symbol" ? e + "" : e, t), t);
24
- var at = (s, e, t) => new Promise((n, i) => {
23
+ var ot = (s, e, t) => new Promise((n, i) => {
25
24
  var r = (a) => {
26
25
  try {
27
26
  l(t.next(a));
@@ -36,7 +35,7 @@ var at = (s, e, t) => new Promise((n, i) => {
36
35
  }
37
36
  }, l = (a) => a.done ? n(a.value) : Promise.resolve(a.value).then(r, o);
38
37
  l((t = t.apply(s, e)).next());
39
- }), en = function(s, e) {
38
+ }), Zs = function(s, e) {
40
39
  this[0] = s, this[1] = e;
41
40
  };
42
41
  var d = (s) => {
@@ -49,7 +48,7 @@ var d = (s) => {
49
48
  }
50
49
  return t = !0, {
51
50
  done: !1,
52
- value: new en(new Promise((l) => {
51
+ value: new Zs(new Promise((l) => {
53
52
  var a = e[r](o);
54
53
  if (!(a instanceof Object))
55
54
  throw TypeError("Object expected");
@@ -60,10 +59,10 @@ var d = (s) => {
60
59
  throw r;
61
60
  }, "return" in e && n("return"), i;
62
61
  };
63
- import { s as tn, E as Ft, c as sn, p as nn, v as rn, a as es, b as ts, d as Te, e as ss, f as ns, g as is } from "./widget-composer-BrQ6SrZ6.js";
64
- import { h as Pi, j as Di, i as Ki, w as qi } from "./widget-composer-BrQ6SrZ6.js";
65
- import { ae as on, a4 as ln, aW as Rt, cj as an, cL as cn } from "./derive-chart-family-D3iN--j2.js";
66
- const Nt = Symbol.for("yaml.alias"), yt = Symbol.for("yaml.document"), W = Symbol.for("yaml.map"), rs = Symbol.for("yaml.pair"), Y = Symbol.for("yaml.scalar"), me = Symbol.for("yaml.seq"), F = Symbol.for("yaml.node.type"), ne = (s) => !!s && typeof s == "object" && s[F] === Nt, ye = (s) => !!s && typeof s == "object" && s[F] === yt, ge = (s) => !!s && typeof s == "object" && s[F] === W, E = (s) => !!s && typeof s == "object" && s[F] === rs, A = (s) => !!s && typeof s == "object" && s[F] === Y, be = (s) => !!s && typeof s == "object" && s[F] === me;
62
+ import { s as en, E as qt, c as tn, p as sn, v as nn, a as Zt, b as es, d as Te, e as ts, f as ss, g as ns } from "./widget-composer-CobNNZ1e.js";
63
+ import { h as ji, j as Pi, i as Di, w as Ki } from "./widget-composer-CobNNZ1e.js";
64
+ import { aN as rn, aD as on, bE as Ft, cB as ln, dD as an } from "./derive-chart-family-nTKwlMms.js";
65
+ const St = Symbol.for("yaml.alias"), pt = Symbol.for("yaml.document"), W = Symbol.for("yaml.map"), is = Symbol.for("yaml.pair"), Y = Symbol.for("yaml.scalar"), me = Symbol.for("yaml.seq"), F = Symbol.for("yaml.node.type"), ne = (s) => !!s && typeof s == "object" && s[F] === St, ye = (s) => !!s && typeof s == "object" && s[F] === pt, ge = (s) => !!s && typeof s == "object" && s[F] === W, E = (s) => !!s && typeof s == "object" && s[F] === is, A = (s) => !!s && typeof s == "object" && s[F] === Y, be = (s) => !!s && typeof s == "object" && s[F] === me;
67
66
  function $(s) {
68
67
  if (s && typeof s == "object")
69
68
  switch (s[F]) {
@@ -76,7 +75,7 @@ function $(s) {
76
75
  function M(s) {
77
76
  if (s && typeof s == "object")
78
77
  switch (s[F]) {
79
- case Nt:
78
+ case St:
80
79
  case W:
81
80
  case Y:
82
81
  case me:
@@ -84,18 +83,18 @@ function M(s) {
84
83
  }
85
84
  return !1;
86
85
  }
87
- const fn = (s) => (A(s) || $(s)) && !!s.anchor, D = Symbol("break visit"), os = Symbol("skip children"), J = Symbol("remove node");
86
+ const cn = (s) => (A(s) || $(s)) && !!s.anchor, D = Symbol("break visit"), rs = Symbol("skip children"), J = Symbol("remove node");
88
87
  function H(s, e) {
89
- const t = ls(e);
88
+ const t = os(e);
90
89
  ye(s) ? le(null, s.contents, t, Object.freeze([s])) === J && (s.contents = null) : le(null, s, t, Object.freeze([]));
91
90
  }
92
91
  H.BREAK = D;
93
- H.SKIP = os;
92
+ H.SKIP = rs;
94
93
  H.REMOVE = J;
95
94
  function le(s, e, t, n) {
96
- const i = as(s, e, t, n);
95
+ const i = ls(s, e, t, n);
97
96
  if (M(i) || E(i))
98
- return cs(s, n, i), le(s, i, t, n);
97
+ return as(s, n, i), le(s, i, t, n);
99
98
  if (typeof i != "symbol") {
100
99
  if ($(e)) {
101
100
  n = Object.freeze(n.concat(e));
@@ -124,19 +123,19 @@ function le(s, e, t, n) {
124
123
  return i;
125
124
  }
126
125
  function Qe(s, e) {
127
- return at(this, null, function* () {
128
- const t = ls(e);
126
+ return ot(this, null, function* () {
127
+ const t = os(e);
129
128
  ye(s) ? (yield ae(null, s.contents, t, Object.freeze([s]))) === J && (s.contents = null) : yield ae(null, s, t, Object.freeze([]));
130
129
  });
131
130
  }
132
131
  Qe.BREAK = D;
133
- Qe.SKIP = os;
132
+ Qe.SKIP = rs;
134
133
  Qe.REMOVE = J;
135
134
  function ae(s, e, t, n) {
136
- return at(this, null, function* () {
137
- const i = yield as(s, e, t, n);
135
+ return ot(this, null, function* () {
136
+ const i = yield ls(s, e, t, n);
138
137
  if (M(i) || E(i))
139
- return cs(s, n, i), ae(s, i, t, n);
138
+ return as(s, n, i), ae(s, i, t, n);
140
139
  if (typeof i != "symbol") {
141
140
  if ($(e)) {
142
141
  n = Object.freeze(n.concat(e));
@@ -165,7 +164,7 @@ function ae(s, e, t, n) {
165
164
  return i;
166
165
  });
167
166
  }
168
- function ls(s) {
167
+ function os(s) {
169
168
  return typeof s == "object" && (s.Collection || s.Node || s.Value) ? Object.assign({
170
169
  Alias: s.Node,
171
170
  Map: s.Node,
@@ -180,7 +179,7 @@ function ls(s) {
180
179
  Seq: s.Collection
181
180
  }, s) : s;
182
181
  }
183
- function as(s, e, t, n) {
182
+ function ls(s, e, t, n) {
184
183
  var i, r, o, l, a;
185
184
  if (typeof t == "function")
186
185
  return t(s, e, n);
@@ -195,7 +194,7 @@ function as(s, e, t, n) {
195
194
  if (ne(e))
196
195
  return (a = t.Alias) == null ? void 0 : a.call(t, s, e, n);
197
196
  }
198
- function cs(s, e, t) {
197
+ function as(s, e, t) {
199
198
  const n = e[e.length - 1];
200
199
  if ($(n))
201
200
  n.items[s] = t;
@@ -208,14 +207,14 @@ function cs(s, e, t) {
208
207
  throw new Error(`Cannot replace node with ${i} parent`);
209
208
  }
210
209
  }
211
- const un = {
210
+ const fn = {
212
211
  "!": "%21",
213
212
  ",": "%2C",
214
213
  "[": "%5B",
215
214
  "]": "%5D",
216
215
  "{": "%7B",
217
216
  "}": "%7D"
218
- }, hn = (s) => s.replace(/[!,[\]{}]/g, (e) => un[e]);
217
+ }, un = (s) => s.replace(/[!,[\]{}]/g, (e) => fn[e]);
219
218
  class P {
220
219
  constructor(e, t) {
221
220
  this.docStart = null, this.docEnd = !1, this.yaml = Object.assign({}, P.defaultYaml, e), this.tags = Object.assign({}, P.defaultTags, t);
@@ -305,7 +304,7 @@ class P {
305
304
  tagString(e) {
306
305
  for (const [t, n] of Object.entries(this.tags))
307
306
  if (e.startsWith(n))
308
- return t + hn(e.substring(n.length));
307
+ return t + un(e.substring(n.length));
309
308
  return e[0] === "!" ? e : `!<${e}>`;
310
309
  }
311
310
  toString(e) {
@@ -326,14 +325,14 @@ class P {
326
325
  }
327
326
  P.defaultYaml = { explicit: !1, version: "1.2" };
328
327
  P.defaultTags = { "!!": "tag:yaml.org,2002:" };
329
- function fs(s) {
328
+ function cs(s) {
330
329
  if (/[\x00-\x19\s,[\]{}]/.test(s)) {
331
330
  const t = `Anchor must not contain whitespace or control characters: ${JSON.stringify(s)}`;
332
331
  throw new Error(t);
333
332
  }
334
333
  return !0;
335
334
  }
336
- function us(s) {
335
+ function fs(s) {
337
336
  const e = /* @__PURE__ */ new Set();
338
337
  return H(s, {
339
338
  Value(t, n) {
@@ -341,20 +340,20 @@ function us(s) {
341
340
  }
342
341
  }), e;
343
342
  }
344
- function hs(s, e) {
343
+ function us(s, e) {
345
344
  for (let t = 1; ; ++t) {
346
345
  const n = `${s}${t}`;
347
346
  if (!e.has(n))
348
347
  return n;
349
348
  }
350
349
  }
351
- function dn(s, e) {
350
+ function hn(s, e) {
352
351
  const t = [], n = /* @__PURE__ */ new Map();
353
352
  let i = null;
354
353
  return {
355
354
  onAnchor: (r) => {
356
- t.push(r), i || (i = us(s));
357
- const o = hs(e, i);
355
+ t.push(r), i || (i = fs(s));
356
+ const o = us(e, i);
358
357
  return i.add(o), o;
359
358
  },
360
359
  /**
@@ -404,7 +403,7 @@ function q(s, e, t) {
404
403
  if (Array.isArray(s))
405
404
  return s.map((n, i) => q(n, String(i), t));
406
405
  if (s && typeof s.toJSON == "function") {
407
- if (!t || !fn(s))
406
+ if (!t || !cn(s))
408
407
  return s.toJSON(e, t);
409
408
  const n = { aliasCount: 0, count: 1, res: void 0 };
410
409
  t.anchors.set(s, n), t.onCreate = (r) => {
@@ -415,7 +414,7 @@ function q(s, e, t) {
415
414
  }
416
415
  return typeof s == "bigint" && !(t != null && t.keep) ? Number(s) : s;
417
416
  }
418
- class Ot {
417
+ class kt {
419
418
  constructor(e) {
420
419
  Object.defineProperty(this, F, { value: e });
421
420
  }
@@ -442,9 +441,9 @@ class Ot {
442
441
  return typeof r == "function" ? ce(r, { "": l }, "", l) : l;
443
442
  }
444
443
  }
445
- class Ye extends Ot {
444
+ class Ye extends kt {
446
445
  constructor(e) {
447
- super(Nt), this.source = e, Object.defineProperty(this, "tag", {
446
+ super(St), this.source = e, Object.defineProperty(this, "tag", {
448
447
  set() {
449
448
  throw new Error("Alias nodes cannot have tags");
450
449
  }
@@ -486,7 +485,7 @@ class Ye extends Ot {
486
485
  toString(e, t, n) {
487
486
  const i = `*${this.source}`;
488
487
  if (e) {
489
- if (fs(this.source), e.options.verifyAliasOrder && !e.anchors.has(this.source)) {
488
+ if (cs(this.source), e.options.verifyAliasOrder && !e.anchors.has(this.source)) {
490
489
  const r = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
491
490
  throw new Error(r);
492
491
  }
@@ -513,8 +512,8 @@ function De(s, e, t) {
513
512
  }
514
513
  return 1;
515
514
  }
516
- const ds = (s) => !s || typeof s != "function" && typeof s != "object";
517
- class N extends Ot {
515
+ const hs = (s) => !s || typeof s != "function" && typeof s != "object";
516
+ class N extends kt {
518
517
  constructor(e) {
519
518
  super(Y), this.value = e;
520
519
  }
@@ -530,8 +529,8 @@ N.BLOCK_LITERAL = "BLOCK_LITERAL";
530
529
  N.PLAIN = "PLAIN";
531
530
  N.QUOTE_DOUBLE = "QUOTE_DOUBLE";
532
531
  N.QUOTE_SINGLE = "QUOTE_SINGLE";
533
- const pn = "tag:yaml.org,2002:";
534
- function mn(s, e, t) {
532
+ const dn = "tag:yaml.org,2002:";
533
+ function pn(s, e, t) {
535
534
  var n;
536
535
  if (e) {
537
536
  const i = t.filter((o) => o.tag === e), r = (n = i.find((o) => !o.format)) != null ? n : i[0];
@@ -560,8 +559,8 @@ function Ae(s, e, t) {
560
559
  return a.anchor || (a.anchor = i(s)), new Ye(a.anchor);
561
560
  a = { anchor: null, node: null }, l.set(s, a);
562
561
  }
563
- e != null && e.startsWith("!!") && (e = pn + e.slice(2));
564
- let c = mn(s, e, o.tags);
562
+ e != null && e.startsWith("!!") && (e = dn + e.slice(2));
563
+ let c = pn(s, e, o.tags);
565
564
  if (!c) {
566
565
  if (s && typeof s.toJSON == "function" && (s = s.toJSON()), !s || typeof s != "object") {
567
566
  const y = new N(s);
@@ -594,7 +593,7 @@ function Re(s, e, t) {
594
593
  });
595
594
  }
596
595
  const Oe = (s) => s == null || typeof s == "object" && !!s[Symbol.iterator]().next().done;
597
- class ps extends Ot {
596
+ class ds extends kt {
598
597
  constructor(e, t) {
599
598
  super(e), Object.defineProperty(this, "schema", {
600
599
  value: t,
@@ -689,14 +688,14 @@ class ps extends Ot {
689
688
  }
690
689
  }
691
690
  }
692
- const yn = (s) => s.replace(/^(?!$)(?: $)?/gm, "#");
691
+ const mn = (s) => s.replace(/^(?!$)(?: $)?/gm, "#");
693
692
  function Q(s, e) {
694
693
  return /^\n+$/.test(s) ? s.substring(1) : e ? s.replace(/^(?! *$)/gm, e) : s;
695
694
  }
696
695
  const Z = (s, e, t) => s.endsWith(`
697
696
  `) ? Q(t, e) : t.includes(`
698
697
  `) ? `
699
- ` + Q(t, e) : (s.endsWith(" ") ? "" : " ") + t, ms = "flow", gt = "block", Ke = "quoted";
698
+ ` + Q(t, e) : (s.endsWith(" ") ? "" : " ") + t, ps = "flow", mt = "block", Ke = "quoted";
700
699
  function Ge(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentWidth: r = 20, onFold: o, onOverflow: l } = {}) {
701
700
  if (!i || i < 0)
702
701
  return s;
@@ -708,7 +707,7 @@ function Ge(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
708
707
  let f = i - e.length;
709
708
  typeof n == "number" && (n > i - Math.max(2, r) ? c.push(0) : f = i - n);
710
709
  let p, m, y = !1, u = -1, g = -1, b = -1;
711
- t === gt && (u = Ut(s, u, e.length), u !== -1 && (f = u + a));
710
+ t === mt && (u = Rt(s, u, e.length), u !== -1 && (f = u + a));
712
711
  for (let I; I = s[u += 1]; ) {
713
712
  if (t === Ke && I === "\\") {
714
713
  switch (g = u, s[u + 1]) {
@@ -728,7 +727,7 @@ function Ge(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
728
727
  }
729
728
  if (I === `
730
729
  `)
731
- t === gt && (u = Ut(s, u, e.length)), f = u + e.length + a, p = void 0;
730
+ t === mt && (u = Rt(s, u, e.length)), f = u + e.length + a, p = void 0;
732
731
  else {
733
732
  if (I === " " && m && m !== " " && m !== `
734
733
  ` && m !== " ") {
@@ -763,7 +762,7 @@ ${e}${s.slice(k + 1, O)}`);
763
762
  }
764
763
  return S;
765
764
  }
766
- function Ut(s, e, t) {
765
+ function Rt(s, e, t) {
767
766
  let n = e, i = e + 1, r = s[i];
768
767
  for (; r === " " || r === " "; )
769
768
  if (e < i + t)
@@ -782,7 +781,7 @@ const We = (s, e) => ({
782
781
  lineWidth: s.options.lineWidth,
783
782
  minContentWidth: s.options.minContentWidth
784
783
  }), He = (s) => /^(%|---|\.\.\.)/m.test(s);
785
- function gn(s, e, t) {
784
+ function yn(s, e, t) {
786
785
  if (!e || e < 0)
787
786
  return !1;
788
787
  const n = e - t, i = s.length;
@@ -859,13 +858,13 @@ function Ie(s, e) {
859
858
  }
860
859
  return o = l ? o + t.slice(l) : t, n ? o : Ge(o, r, Ke, We(e, !1));
861
860
  }
862
- function bt(s, e) {
861
+ function yt(s, e) {
863
862
  if (e.options.singleQuote === !1 || e.implicitKey && s.includes(`
864
863
  `) || /[ \t]\n|\n[ \t]/.test(s))
865
864
  return Ie(s, e);
866
865
  const t = e.indent || (He(s) ? " " : ""), n = "'" + s.replace(/'/g, "''").replace(/\n+/g, `$&
867
866
  ${t}`) + "'";
868
- return e.implicitKey ? n : Ge(n, t, ms, We(e, !1));
867
+ return e.implicitKey ? n : Ge(n, t, ps, We(e, !1));
869
868
  }
870
869
  function fe(s, e) {
871
870
  const { singleQuote: t } = e.options;
@@ -874,24 +873,24 @@ function fe(s, e) {
874
873
  n = Ie;
875
874
  else {
876
875
  const i = s.includes('"'), r = s.includes("'");
877
- i && !r ? n = bt : r && !i ? n = Ie : n = t ? bt : Ie;
876
+ i && !r ? n = yt : r && !i ? n = Ie : n = t ? yt : Ie;
878
877
  }
879
878
  return n(s, e);
880
879
  }
881
- let wt;
880
+ let gt;
882
881
  try {
883
- wt = new RegExp(`(^|(?<!
882
+ gt = new RegExp(`(^|(?<!
884
883
  ))
885
884
  +(?!
886
885
  |$)`, "g");
887
886
  } catch (s) {
888
- wt = /\n+(?!\n|$)/g;
887
+ gt = /\n+(?!\n|$)/g;
889
888
  }
890
889
  function qe({ comment: s, type: e, value: t }, n, i, r) {
891
890
  const { blockQuote: o, commentString: l, lineWidth: a } = n.options;
892
891
  if (!o || /\n[\t ]+$/.test(t) || /^\s*$/.test(t))
893
892
  return fe(t, n);
894
- const c = n.indent || (n.forceBlockIndent || He(t) ? " " : ""), h = o === "literal" ? !0 : o === "folded" || e === N.BLOCK_FOLDED ? !1 : e === N.BLOCK_LITERAL ? !0 : !gn(t, a, c.length);
893
+ const c = n.indent || (n.forceBlockIndent || He(t) ? " " : ""), h = o === "literal" ? !0 : o === "folded" || e === N.BLOCK_FOLDED ? !1 : e === N.BLOCK_LITERAL ? !0 : !yn(t, a, c.length);
895
894
  if (!t)
896
895
  return h ? `|
897
896
  ` : `>
@@ -907,7 +906,7 @@ function qe({ comment: s, type: e, value: t }, n, i, r) {
907
906
  const y = m.indexOf(`
908
907
  `);
909
908
  y === -1 ? f = "-" : t === m || y !== m.length - 1 ? (f = "+", r && r()) : f = "", m && (t = t.slice(0, -m.length), m[m.length - 1] === `
910
- ` && (m = m.slice(0, -1)), m = m.replace(wt, `$&${c}`));
909
+ ` && (m = m.slice(0, -1)), m = m.replace(gt, `$&${c}`));
911
910
  let u = !1, g, b = -1;
912
911
  for (g = 0; g < t.length; ++g) {
913
912
  const T = t[g];
@@ -927,11 +926,11 @@ function qe({ comment: s, type: e, value: t }, n, i, r) {
927
926
  ${c}${S}${t}${m}`;
928
927
  t = t.replace(/\n+/g, `
929
928
  $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${c}`);
930
- const O = Ge(`${S}${t}${m}`, c, gt, We(n, !0));
929
+ const O = Ge(`${S}${t}${m}`, c, mt, We(n, !0));
931
930
  return `${k}
932
931
  ${c}${O}`;
933
932
  }
934
- function bn(s, e, t, n) {
933
+ function gn(s, e, t, n) {
935
934
  const { type: i, value: r } = s, { actualString: o, implicitKey: l, indent: a, indentStep: c, inFlow: h } = e;
936
935
  if (l && r.includes(`
937
936
  `) || h && /[[\]{},]/.test(r))
@@ -958,7 +957,7 @@ ${a}`);
958
957
  if (y.some(p) || m != null && m.some(p))
959
958
  return fe(r, e);
960
959
  }
961
- return l ? f : Ge(f, a, ms, We(e, !1));
960
+ return l ? f : Ge(f, a, ps, We(e, !1));
962
961
  }
963
962
  function $e(s, e, t, n) {
964
963
  const { implicitKey: i, inFlow: r } = e, o = typeof s.value == "string" ? s : Object.assign({}, s, { value: String(s.value) });
@@ -972,9 +971,9 @@ function $e(s, e, t, n) {
972
971
  case N.QUOTE_DOUBLE:
973
972
  return Ie(o.value, e);
974
973
  case N.QUOTE_SINGLE:
975
- return bt(o.value, e);
974
+ return yt(o.value, e);
976
975
  case N.PLAIN:
977
- return bn(o, e, t, n);
976
+ return gn(o, e, t, n);
978
977
  default:
979
978
  return null;
980
979
  }
@@ -987,10 +986,10 @@ function $e(s, e, t, n) {
987
986
  }
988
987
  return c;
989
988
  }
990
- function ys(s, e) {
989
+ function ms(s, e) {
991
990
  const t = Object.assign({
992
991
  blockQuote: !0,
993
- commentString: yn,
992
+ commentString: mn,
994
993
  defaultKeyType: null,
995
994
  defaultStringType: "PLAIN",
996
995
  directives: null,
@@ -1028,7 +1027,7 @@ function ys(s, e) {
1028
1027
  options: t
1029
1028
  };
1030
1029
  }
1031
- function wn(s, e) {
1030
+ function bn(s, e) {
1032
1031
  var i, r, o, l;
1033
1032
  if (e.tag) {
1034
1033
  const a = s.filter((c) => c.tag === e.tag);
@@ -1051,11 +1050,11 @@ function wn(s, e) {
1051
1050
  }
1052
1051
  return t;
1053
1052
  }
1054
- function Sn(s, e, { anchors: t, doc: n }) {
1053
+ function wn(s, e, { anchors: t, doc: n }) {
1055
1054
  if (!n.directives)
1056
1055
  return "";
1057
1056
  const i = [], r = (A(s) || $(s)) && s.anchor;
1058
- r && fs(r) && (t.add(r), i.push(`&${r}`));
1057
+ r && cs(r) && (t.add(r), i.push(`&${r}`));
1059
1058
  const o = s.tag ? s.tag : e.default ? null : e.tag;
1060
1059
  return o && i.push(n.directives.tagString(o)), i.join(" ");
1061
1060
  }
@@ -1072,14 +1071,14 @@ function de(s, e, t, n) {
1072
1071
  }
1073
1072
  let i;
1074
1073
  const r = M(s) ? s : e.doc.createNode(s, { onTagObj: (h) => i = h });
1075
- i || (i = wn(e.doc.schema.tags, r));
1076
- const o = Sn(r, i, e);
1074
+ i || (i = bn(e.doc.schema.tags, r));
1075
+ const o = wn(r, i, e);
1077
1076
  o.length > 0 && (e.indentAtStart = ((c = e.indentAtStart) != null ? c : 0) + o.length + 1);
1078
1077
  const l = typeof i.stringify == "function" ? i.stringify(r, e, t, n) : A(r) ? $e(r, e, t, n) : r.toString(e, t, n);
1079
1078
  return o ? A(r) || l[0] === "{" || l[0] === "[" ? `${o} ${l}` : `${o}
1080
1079
  ${e.indent}${l}` : l;
1081
1080
  }
1082
- function kn({ key: s, value: e }, t, n, i) {
1081
+ function Sn({ key: s, value: e }, t, n, i) {
1083
1082
  var C, w;
1084
1083
  const { allNullValues: r, doc: o, indent: l, indentStep: a, options: { commentString: c, indentSeq: h, simpleKeys: f } } = t;
1085
1084
  let p = M(s) && s.comment || null;
@@ -1129,8 +1128,8 @@ ${Q(L, t.indent)}`;
1129
1128
  ${t.indent}`;
1130
1129
  } else if (!m && $(e)) {
1131
1130
  const L = O[0], _ = O.indexOf(`
1132
- `), B = _ !== -1, x = (w = (C = t.inFlow) != null ? C : e.flow) != null ? w : e.items.length === 0;
1133
- if (B || !x) {
1131
+ `), B = _ !== -1, X = (w = (C = t.inFlow) != null ? C : e.flow) != null ? w : e.items.length === 0;
1132
+ if (B || !X) {
1134
1133
  let ie = !1;
1135
1134
  if (B && (L === "&" || L === "!")) {
1136
1135
  let v = O.indexOf(" ");
@@ -1144,20 +1143,20 @@ ${t.indent}`);
1144
1143
  `) && (T = "");
1145
1144
  return g += T + O, t.inFlow ? k && n && n() : I && !k ? g += Z(g, t.indent, c(I)) : u && i && i(), g;
1146
1145
  }
1147
- function gs(s, e) {
1146
+ function ys(s, e) {
1148
1147
  (s === "debug" || s === "warn") && (typeof process != "undefined" && process.emitWarning ? process.emitWarning(e) : console.warn(e));
1149
1148
  }
1150
- const Vt = "<<";
1151
- function bs(s, e, { key: t, value: n }) {
1152
- if (s != null && s.doc.schema.merge && Nn(t))
1149
+ const Ut = "<<";
1150
+ function gs(s, e, { key: t, value: n }) {
1151
+ if (s != null && s.doc.schema.merge && kn(t))
1153
1152
  if (n = ne(n) ? n.resolve(s.doc) : n, be(n))
1154
1153
  for (const i of n.items)
1155
- ct(s, e, i);
1154
+ lt(s, e, i);
1156
1155
  else if (Array.isArray(n))
1157
1156
  for (const i of n)
1158
- ct(s, e, i);
1157
+ lt(s, e, i);
1159
1158
  else
1160
- ct(s, e, n);
1159
+ lt(s, e, n);
1161
1160
  else {
1162
1161
  const i = q(t, "", s);
1163
1162
  if (e instanceof Map)
@@ -1165,7 +1164,7 @@ function bs(s, e, { key: t, value: n }) {
1165
1164
  else if (e instanceof Set)
1166
1165
  e.add(i);
1167
1166
  else {
1168
- const r = On(t, i, s), o = q(n, r, s);
1167
+ const r = Nn(t, i, s), o = q(n, r, s);
1169
1168
  r in e ? Object.defineProperty(e, r, {
1170
1169
  value: o,
1171
1170
  writable: !0,
@@ -1176,8 +1175,8 @@ function bs(s, e, { key: t, value: n }) {
1176
1175
  }
1177
1176
  return e;
1178
1177
  }
1179
- const Nn = (s) => s === Vt || A(s) && s.value === Vt && (!s.type || s.type === N.PLAIN);
1180
- function ct(s, e, t) {
1178
+ const kn = (s) => s === Ut || A(s) && s.value === Ut && (!s.type || s.type === N.PLAIN);
1179
+ function lt(s, e, t) {
1181
1180
  const n = s && ne(t) ? t.resolve(s.doc) : t;
1182
1181
  if (!ge(n))
1183
1182
  throw new Error("Merge sources must be maps or map aliases");
@@ -1191,13 +1190,13 @@ function ct(s, e, t) {
1191
1190
  });
1192
1191
  return e;
1193
1192
  }
1194
- function On(s, e, t) {
1193
+ function Nn(s, e, t) {
1195
1194
  if (e === null)
1196
1195
  return "";
1197
1196
  if (typeof e != "object")
1198
1197
  return String(e);
1199
1198
  if (M(s) && (t != null && t.doc)) {
1200
- const n = ys(t.doc, {});
1199
+ const n = ms(t.doc, {});
1201
1200
  n.anchors = /* @__PURE__ */ new Set();
1202
1201
  for (const r of t.anchors.keys())
1203
1202
  n.anchors.add(r.anchor);
@@ -1205,19 +1204,19 @@ function On(s, e, t) {
1205
1204
  const i = s.toString(n);
1206
1205
  if (!t.mapKeyWarned) {
1207
1206
  let r = JSON.stringify(i);
1208
- r.length > 40 && (r = r.substring(0, 36) + '..."'), gs(t.doc.options.logLevel, `Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`), t.mapKeyWarned = !0;
1207
+ r.length > 40 && (r = r.substring(0, 36) + '..."'), ys(t.doc.options.logLevel, `Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`), t.mapKeyWarned = !0;
1209
1208
  }
1210
1209
  return i;
1211
1210
  }
1212
1211
  return JSON.stringify(e);
1213
1212
  }
1214
- function Tt(s, e, t) {
1213
+ function Nt(s, e, t) {
1215
1214
  const n = Ae(s, void 0, t), i = Ae(e, void 0, t);
1216
1215
  return new j(n, i);
1217
1216
  }
1218
1217
  class j {
1219
1218
  constructor(e, t = null) {
1220
- Object.defineProperty(this, F, { value: rs }), this.key = e, this.value = t;
1219
+ Object.defineProperty(this, F, { value: is }), this.key = e, this.value = t;
1221
1220
  }
1222
1221
  clone(e) {
1223
1222
  let { key: t, value: n } = this;
@@ -1225,17 +1224,17 @@ class j {
1225
1224
  }
1226
1225
  toJSON(e, t) {
1227
1226
  const n = t != null && t.mapAsMap ? /* @__PURE__ */ new Map() : {};
1228
- return bs(t, n, this);
1227
+ return gs(t, n, this);
1229
1228
  }
1230
1229
  toString(e, t, n) {
1231
- return e != null && e.doc ? kn(this, e, t, n) : JSON.stringify(this);
1230
+ return e != null && e.doc ? Sn(this, e, t, n) : JSON.stringify(this);
1232
1231
  }
1233
1232
  }
1234
- function ws(s, e, t) {
1233
+ function bs(s, e, t) {
1235
1234
  var r;
1236
- return (((r = e.inFlow) != null ? r : s.flow) ? In : Tn)(s, e, t);
1235
+ return (((r = e.inFlow) != null ? r : s.flow) ? Tn : On)(s, e, t);
1237
1236
  }
1238
- function Tn({ comment: s, items: e }, t, { blockItemPrefix: n, flowChars: i, itemIndent: r, onChompKeep: o, onComment: l }) {
1237
+ function On({ comment: s, items: e }, t, { blockItemPrefix: n, flowChars: i, itemIndent: r, onChompKeep: o, onComment: l }) {
1239
1238
  const { indent: a, options: { commentString: c } } = t, h = Object.assign({}, t, { indent: r, type: null });
1240
1239
  let f = !1;
1241
1240
  const p = [];
@@ -1267,7 +1266,7 @@ ${a}${u}` : `
1267
1266
  return s ? (m += `
1268
1267
  ` + Q(c(s), a), l && l()) : f && o && o(), m;
1269
1268
  }
1270
- function In({ items: s }, e, { flowChars: t, itemIndent: n }) {
1269
+ function Tn({ items: s }, e, { flowChars: t, itemIndent: n }) {
1271
1270
  const { indent: i, indentStep: r, flowCollectionPadding: o, options: { commentString: l } } = e;
1272
1271
  n += r;
1273
1272
  const a = Object.assign({}, e, {
@@ -1323,7 +1322,7 @@ function ee(s, e) {
1323
1322
  if (E(n) && (n.key === e || n.key === t || A(n.key) && n.key.value === t))
1324
1323
  return n;
1325
1324
  }
1326
- class K extends ps {
1325
+ class K extends ds {
1327
1326
  static get tagName() {
1328
1327
  return "tag:yaml.org,2002:map";
1329
1328
  }
@@ -1340,7 +1339,7 @@ class K extends ps {
1340
1339
  c = r.call(t, a, c);
1341
1340
  else if (Array.isArray(r) && !r.includes(a))
1342
1341
  return;
1343
- (c !== void 0 || i) && o.items.push(Tt(a, c, n));
1342
+ (c !== void 0 || i) && o.items.push(Nt(a, c, n));
1344
1343
  };
1345
1344
  if (t instanceof Map)
1346
1345
  for (const [a, c] of t)
@@ -1364,7 +1363,7 @@ class K extends ps {
1364
1363
  if (i) {
1365
1364
  if (!t)
1366
1365
  throw new Error(`Key ${n.key} already set`);
1367
- A(i.value) && ds(n.value) ? i.value.value = n.value : i.value = n.value;
1366
+ A(i.value) && hs(n.value) ? i.value.value = n.value : i.value = n.value;
1368
1367
  } else if (r) {
1369
1368
  const l = this.items.findIndex((a) => r(n, a) < 0);
1370
1369
  l === -1 ? this.items.push(n) : this.items.splice(l, 0, n);
@@ -1395,7 +1394,7 @@ class K extends ps {
1395
1394
  const i = n ? new n() : t != null && t.mapAsMap ? /* @__PURE__ */ new Map() : {};
1396
1395
  t != null && t.onCreate && t.onCreate(i);
1397
1396
  for (const r of this.items)
1398
- bs(t, i, r);
1397
+ gs(t, i, r);
1399
1398
  return i;
1400
1399
  }
1401
1400
  toString(e, t, n) {
@@ -1404,7 +1403,7 @@ class K extends ps {
1404
1403
  for (const i of this.items)
1405
1404
  if (!E(i))
1406
1405
  throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);
1407
- return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })), ws(this, e, {
1406
+ return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })), bs(this, e, {
1408
1407
  blockItemPrefix: "",
1409
1408
  flowChars: { start: "{", end: "}" },
1410
1409
  itemIndent: e.indent || "",
@@ -1423,7 +1422,7 @@ const we = {
1423
1422
  },
1424
1423
  createNode: (s, e, t) => K.from(s, e, t)
1425
1424
  };
1426
- class z extends ps {
1425
+ class z extends ds {
1427
1426
  static get tagName() {
1428
1427
  return "tag:yaml.org,2002:seq";
1429
1428
  }
@@ -1474,7 +1473,7 @@ class z extends ps {
1474
1473
  if (typeof n != "number")
1475
1474
  throw new Error(`Expected a valid index, not ${e}.`);
1476
1475
  const i = this.items[n];
1477
- A(i) && ds(t) ? i.value = t : this.items[n] = t;
1476
+ A(i) && hs(t) ? i.value = t : this.items[n] = t;
1478
1477
  }
1479
1478
  toJSON(e, t) {
1480
1479
  const n = [];
@@ -1485,7 +1484,7 @@ class z extends ps {
1485
1484
  return n;
1486
1485
  }
1487
1486
  toString(e, t, n) {
1488
- return e ? ws(this, e, {
1487
+ return e ? bs(this, e, {
1489
1488
  blockItemPrefix: "- ",
1490
1489
  flowChars: { start: "[", end: "]" },
1491
1490
  itemIndent: (e.indent || "") + " ",
@@ -1529,22 +1528,22 @@ const Se = {
1529
1528
  stringify(s, e, t, n) {
1530
1529
  return e = Object.assign({ actualString: !0 }, e), $e(s, e, t, n);
1531
1530
  }
1532
- }, xe = {
1531
+ }, Xe = {
1533
1532
  identify: (s) => s == null,
1534
1533
  createNode: () => new N(null),
1535
1534
  default: !0,
1536
1535
  tag: "tag:yaml.org,2002:null",
1537
1536
  test: /^(?:~|[Nn]ull|NULL)?$/,
1538
1537
  resolve: () => new N(null),
1539
- stringify: ({ source: s }, e) => typeof s == "string" && xe.test.test(s) ? s : e.options.nullStr
1540
- }, It = {
1538
+ stringify: ({ source: s }, e) => typeof s == "string" && Xe.test.test(s) ? s : e.options.nullStr
1539
+ }, Ot = {
1541
1540
  identify: (s) => typeof s == "boolean",
1542
1541
  default: !0,
1543
1542
  tag: "tag:yaml.org,2002:bool",
1544
1543
  test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
1545
1544
  resolve: (s) => new N(s[0] === "t" || s[0] === "T"),
1546
1545
  stringify({ source: s, value: e }, t) {
1547
- if (s && It.test.test(s)) {
1546
+ if (s && Ot.test.test(s)) {
1548
1547
  const n = s[0] === "t" || s[0] === "T";
1549
1548
  if (e === n)
1550
1549
  return s;
@@ -1568,14 +1567,14 @@ function V({ format: s, minFractionDigits: e, tag: t, value: n }) {
1568
1567
  }
1569
1568
  return r;
1570
1569
  }
1571
- const Ss = {
1570
+ const ws = {
1572
1571
  identify: (s) => typeof s == "number",
1573
1572
  default: !0,
1574
1573
  tag: "tag:yaml.org,2002:float",
1575
1574
  test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
1576
1575
  resolve: (s) => s.slice(-3).toLowerCase() === "nan" ? NaN : s[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
1577
1576
  stringify: V
1578
- }, ks = {
1577
+ }, Ss = {
1579
1578
  identify: (s) => typeof s == "number",
1580
1579
  default: !0,
1581
1580
  tag: "tag:yaml.org,2002:float",
@@ -1586,7 +1585,7 @@ const Ss = {
1586
1585
  const e = Number(s.value);
1587
1586
  return isFinite(e) ? e.toExponential() : V(s);
1588
1587
  }
1589
- }, Ns = {
1588
+ }, ks = {
1590
1589
  identify: (s) => typeof s == "number",
1591
1590
  default: !0,
1592
1591
  tag: "tag:yaml.org,2002:float",
@@ -1596,51 +1595,51 @@ const Ss = {
1596
1595
  return t !== -1 && s[s.length - 1] === "0" && (e.minFractionDigits = s.length - t - 1), e;
1597
1596
  },
1598
1597
  stringify: V
1599
- }, Xe = (s) => typeof s == "bigint" || Number.isInteger(s), At = (s, e, t, { intAsBigInt: n }) => n ? BigInt(s) : parseInt(s.substring(e), t);
1600
- function Os(s, e, t) {
1598
+ }, xe = (s) => typeof s == "bigint" || Number.isInteger(s), Tt = (s, e, t, { intAsBigInt: n }) => n ? BigInt(s) : parseInt(s.substring(e), t);
1599
+ function Ns(s, e, t) {
1601
1600
  const { value: n } = s;
1602
- return Xe(n) && n >= 0 ? t + n.toString(e) : V(s);
1601
+ return xe(n) && n >= 0 ? t + n.toString(e) : V(s);
1603
1602
  }
1604
- const Ts = {
1605
- identify: (s) => Xe(s) && s >= 0,
1603
+ const Os = {
1604
+ identify: (s) => xe(s) && s >= 0,
1606
1605
  default: !0,
1607
1606
  tag: "tag:yaml.org,2002:int",
1608
1607
  format: "OCT",
1609
1608
  test: /^0o[0-7]+$/,
1610
- resolve: (s, e, t) => At(s, 2, 8, t),
1611
- stringify: (s) => Os(s, 8, "0o")
1612
- }, Is = {
1613
- identify: Xe,
1609
+ resolve: (s, e, t) => Tt(s, 2, 8, t),
1610
+ stringify: (s) => Ns(s, 8, "0o")
1611
+ }, Ts = {
1612
+ identify: xe,
1614
1613
  default: !0,
1615
1614
  tag: "tag:yaml.org,2002:int",
1616
1615
  test: /^[-+]?[0-9]+$/,
1617
- resolve: (s, e, t) => At(s, 0, 10, t),
1616
+ resolve: (s, e, t) => Tt(s, 0, 10, t),
1618
1617
  stringify: V
1619
- }, As = {
1620
- identify: (s) => Xe(s) && s >= 0,
1618
+ }, Is = {
1619
+ identify: (s) => xe(s) && s >= 0,
1621
1620
  default: !0,
1622
1621
  tag: "tag:yaml.org,2002:int",
1623
1622
  format: "HEX",
1624
1623
  test: /^0x[0-9a-fA-F]+$/,
1625
- resolve: (s, e, t) => At(s, 2, 16, t),
1626
- stringify: (s) => Os(s, 16, "0x")
1627
- }, An = [
1624
+ resolve: (s, e, t) => Tt(s, 2, 16, t),
1625
+ stringify: (s) => Ns(s, 16, "0x")
1626
+ }, In = [
1628
1627
  we,
1629
1628
  Se,
1630
1629
  ze,
1631
- xe,
1632
- It,
1630
+ Xe,
1631
+ Ot,
1632
+ Os,
1633
1633
  Ts,
1634
1634
  Is,
1635
- As,
1635
+ ws,
1636
1636
  Ss,
1637
- ks,
1638
- Ns
1637
+ ks
1639
1638
  ];
1640
- function Jt(s) {
1639
+ function Vt(s) {
1641
1640
  return typeof s == "bigint" || Number.isInteger(s);
1642
1641
  }
1643
- const Be = ({ value: s }) => JSON.stringify(s), En = [
1642
+ const Be = ({ value: s }) => JSON.stringify(s), An = [
1644
1643
  {
1645
1644
  identify: (s) => typeof s == "string",
1646
1645
  default: !0,
@@ -1666,12 +1665,12 @@ const Be = ({ value: s }) => JSON.stringify(s), En = [
1666
1665
  stringify: Be
1667
1666
  },
1668
1667
  {
1669
- identify: Jt,
1668
+ identify: Vt,
1670
1669
  default: !0,
1671
1670
  tag: "tag:yaml.org,2002:int",
1672
1671
  test: /^-?(?:0|[1-9][0-9]*)$/,
1673
1672
  resolve: (s, e, { intAsBigInt: t }) => t ? BigInt(s) : parseInt(s, 10),
1674
- stringify: ({ value: s }) => Jt(s) ? s.toString() : JSON.stringify(s)
1673
+ stringify: ({ value: s }) => Vt(s) ? s.toString() : JSON.stringify(s)
1675
1674
  },
1676
1675
  {
1677
1676
  identify: (s) => typeof s == "number",
@@ -1681,14 +1680,14 @@ const Be = ({ value: s }) => JSON.stringify(s), En = [
1681
1680
  resolve: (s) => parseFloat(s),
1682
1681
  stringify: Be
1683
1682
  }
1684
- ], Ln = {
1683
+ ], En = {
1685
1684
  default: !0,
1686
1685
  tag: "",
1687
1686
  test: /^/,
1688
1687
  resolve(s, e) {
1689
1688
  return e(`Unresolved plain scalar ${JSON.stringify(s)}`), s;
1690
1689
  }
1691
- }, $n = [we, Se].concat(En, Ln), Et = {
1690
+ }, Ln = [we, Se].concat(An, En), It = {
1692
1691
  identify: (s) => s instanceof Uint8Array,
1693
1692
  // Buffer inherits from Uint8Array
1694
1693
  default: !1,
@@ -1734,7 +1733,7 @@ const Be = ({ value: s }) => JSON.stringify(s), En = [
1734
1733
  return $e({ comment: s, type: e, value: l }, n, i, r);
1735
1734
  }
1736
1735
  };
1737
- function Es(s, e) {
1736
+ function As(s, e) {
1738
1737
  var t;
1739
1738
  if (be(s))
1740
1739
  for (let n = 0; n < s.items.length; ++n) {
@@ -1758,7 +1757,7 @@ ${o.comment}` : i.comment;
1758
1757
  e("Expected a sequence for this tag");
1759
1758
  return s;
1760
1759
  }
1761
- function Ls(s, e, t) {
1760
+ function Es(s, e, t) {
1762
1761
  const { replacer: n } = t, i = new z(s);
1763
1762
  i.tag = "tag:yaml.org,2002:pairs";
1764
1763
  let r = 0;
@@ -1779,16 +1778,16 @@ function Ls(s, e, t) {
1779
1778
  throw new TypeError(`Expected tuple with one key, not ${c.length} keys`);
1780
1779
  } else
1781
1780
  l = o;
1782
- i.items.push(Tt(l, a, t));
1781
+ i.items.push(Nt(l, a, t));
1783
1782
  }
1784
1783
  return i;
1785
1784
  }
1786
- const Lt = {
1785
+ const At = {
1787
1786
  collection: "seq",
1788
1787
  default: !1,
1789
1788
  tag: "tag:yaml.org,2002:pairs",
1790
- resolve: Es,
1791
- createNode: Ls
1789
+ resolve: As,
1790
+ createNode: Es
1792
1791
  };
1793
1792
  class ue extends z {
1794
1793
  constructor() {
@@ -1812,50 +1811,50 @@ class ue extends z {
1812
1811
  return n;
1813
1812
  }
1814
1813
  static from(e, t, n) {
1815
- const i = Ls(e, t, n), r = new this();
1814
+ const i = Es(e, t, n), r = new this();
1816
1815
  return r.items = i.items, r;
1817
1816
  }
1818
1817
  }
1819
1818
  ue.tag = "tag:yaml.org,2002:omap";
1820
- const $t = {
1819
+ const Et = {
1821
1820
  collection: "seq",
1822
1821
  identify: (s) => s instanceof Map,
1823
1822
  nodeClass: ue,
1824
1823
  default: !1,
1825
1824
  tag: "tag:yaml.org,2002:omap",
1826
1825
  resolve(s, e) {
1827
- const t = Es(s, e), n = [];
1826
+ const t = As(s, e), n = [];
1828
1827
  for (const { key: i } of t.items)
1829
1828
  A(i) && (n.includes(i.value) ? e(`Ordered maps must not include duplicate keys: ${i.value}`) : n.push(i.value));
1830
1829
  return Object.assign(new ue(), t);
1831
1830
  },
1832
1831
  createNode: (s, e, t) => ue.from(s, e, t)
1833
1832
  };
1834
- function $s({ value: s, source: e }, t) {
1835
- return e && (s ? Cs : _s).test.test(e) ? e : s ? t.options.trueStr : t.options.falseStr;
1833
+ function Ls({ value: s, source: e }, t) {
1834
+ return e && (s ? $s : Cs).test.test(e) ? e : s ? t.options.trueStr : t.options.falseStr;
1836
1835
  }
1837
- const Cs = {
1836
+ const $s = {
1838
1837
  identify: (s) => s === !0,
1839
1838
  default: !0,
1840
1839
  tag: "tag:yaml.org,2002:bool",
1841
1840
  test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
1842
1841
  resolve: () => new N(!0),
1843
- stringify: $s
1844
- }, _s = {
1842
+ stringify: Ls
1843
+ }, Cs = {
1845
1844
  identify: (s) => s === !1,
1846
1845
  default: !0,
1847
1846
  tag: "tag:yaml.org,2002:bool",
1848
1847
  test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,
1849
1848
  resolve: () => new N(!1),
1850
- stringify: $s
1851
- }, Cn = {
1849
+ stringify: Ls
1850
+ }, $n = {
1852
1851
  identify: (s) => typeof s == "number",
1853
1852
  default: !0,
1854
1853
  tag: "tag:yaml.org,2002:float",
1855
1854
  test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
1856
1855
  resolve: (s) => s.slice(-3).toLowerCase() === "nan" ? NaN : s[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
1857
1856
  stringify: V
1858
- }, _n = {
1857
+ }, Cn = {
1859
1858
  identify: (s) => typeof s == "number",
1860
1859
  default: !0,
1861
1860
  tag: "tag:yaml.org,2002:float",
@@ -1866,7 +1865,7 @@ const Cs = {
1866
1865
  const e = Number(s.value);
1867
1866
  return isFinite(e) ? e.toExponential() : V(s);
1868
1867
  }
1869
- }, Mn = {
1868
+ }, _n = {
1870
1869
  identify: (s) => typeof s == "number",
1871
1870
  default: !0,
1872
1871
  tag: "tag:yaml.org,2002:float",
@@ -1901,7 +1900,7 @@ function Ze(s, e, t, { intAsBigInt: n }) {
1901
1900
  const r = parseInt(s, t);
1902
1901
  return i === "-" ? -1 * r : r;
1903
1902
  }
1904
- function Ct(s, e, t) {
1903
+ function Lt(s, e, t) {
1905
1904
  const { value: n } = s;
1906
1905
  if (Ce(n)) {
1907
1906
  const i = n.toString(e);
@@ -1909,37 +1908,37 @@ function Ct(s, e, t) {
1909
1908
  }
1910
1909
  return V(s);
1911
1910
  }
1912
- const vn = {
1911
+ const Mn = {
1913
1912
  identify: Ce,
1914
1913
  default: !0,
1915
1914
  tag: "tag:yaml.org,2002:int",
1916
1915
  format: "BIN",
1917
1916
  test: /^[-+]?0b[0-1_]+$/,
1918
1917
  resolve: (s, e, t) => Ze(s, 2, 2, t),
1919
- stringify: (s) => Ct(s, 2, "0b")
1920
- }, Bn = {
1918
+ stringify: (s) => Lt(s, 2, "0b")
1919
+ }, vn = {
1921
1920
  identify: Ce,
1922
1921
  default: !0,
1923
1922
  tag: "tag:yaml.org,2002:int",
1924
1923
  format: "OCT",
1925
1924
  test: /^[-+]?0[0-7_]+$/,
1926
1925
  resolve: (s, e, t) => Ze(s, 1, 8, t),
1927
- stringify: (s) => Ct(s, 8, "0")
1928
- }, jn = {
1926
+ stringify: (s) => Lt(s, 8, "0")
1927
+ }, Bn = {
1929
1928
  identify: Ce,
1930
1929
  default: !0,
1931
1930
  tag: "tag:yaml.org,2002:int",
1932
1931
  test: /^[-+]?[0-9][0-9_]*$/,
1933
1932
  resolve: (s, e, t) => Ze(s, 0, 10, t),
1934
1933
  stringify: V
1935
- }, Pn = {
1934
+ }, jn = {
1936
1935
  identify: Ce,
1937
1936
  default: !0,
1938
1937
  tag: "tag:yaml.org,2002:int",
1939
1938
  format: "HEX",
1940
1939
  test: /^[-+]?0x[0-9a-fA-F_]+$/,
1941
1940
  resolve: (s, e, t) => Ze(s, 2, 16, t),
1942
- stringify: (s) => Ct(s, 16, "0x")
1941
+ stringify: (s) => Lt(s, 16, "0x")
1943
1942
  };
1944
1943
  class he extends K {
1945
1944
  constructor(e) {
@@ -1977,12 +1976,12 @@ class he extends K {
1977
1976
  const { replacer: i } = n, r = new this(e);
1978
1977
  if (t && Symbol.iterator in Object(t))
1979
1978
  for (let o of t)
1980
- typeof i == "function" && (o = i.call(t, o, o)), r.items.push(Tt(o, null, n));
1979
+ typeof i == "function" && (o = i.call(t, o, o)), r.items.push(Nt(o, null, n));
1981
1980
  return r;
1982
1981
  }
1983
1982
  }
1984
1983
  he.tag = "tag:yaml.org,2002:set";
1985
- const _t = {
1984
+ const $t = {
1986
1985
  collection: "map",
1987
1986
  identify: (s) => s instanceof Set,
1988
1987
  nodeClass: he,
@@ -1999,11 +1998,11 @@ const _t = {
1999
1998
  return s;
2000
1999
  }
2001
2000
  };
2002
- function Mt(s, e) {
2001
+ function Ct(s, e) {
2003
2002
  const t = s[0], n = t === "-" || t === "+" ? s.substring(1) : s, i = (o) => e ? BigInt(o) : Number(o), r = n.replace(/_/g, "").split(":").reduce((o, l) => o * i(60) + i(l), i(0));
2004
2003
  return t === "-" ? i(-1) * r : r;
2005
2004
  }
2006
- function Ms(s) {
2005
+ function _s(s) {
2007
2006
  let { value: e } = s, t = (o) => o;
2008
2007
  if (typeof e == "bigint")
2009
2008
  t = (o) => BigInt(o);
@@ -2014,22 +2013,22 @@ function Ms(s) {
2014
2013
  const i = t(60), r = [e % i];
2015
2014
  return e < 60 ? r.unshift(0) : (e = (e - r[0]) / i, r.unshift(e % i), e >= 60 && (e = (e - r[0]) / i, r.unshift(e))), n + r.map((o) => String(o).padStart(2, "0")).join(":").replace(/000000\d*$/, "");
2016
2015
  }
2017
- const vs = {
2016
+ const Ms = {
2018
2017
  identify: (s) => typeof s == "bigint" || Number.isInteger(s),
2019
2018
  default: !0,
2020
2019
  tag: "tag:yaml.org,2002:int",
2021
2020
  format: "TIME",
2022
2021
  test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,
2023
- resolve: (s, e, { intAsBigInt: t }) => Mt(s, t),
2024
- stringify: Ms
2025
- }, Bs = {
2022
+ resolve: (s, e, { intAsBigInt: t }) => Ct(s, t),
2023
+ stringify: _s
2024
+ }, vs = {
2026
2025
  identify: (s) => typeof s == "number",
2027
2026
  default: !0,
2028
2027
  tag: "tag:yaml.org,2002:float",
2029
2028
  format: "TIME",
2030
2029
  test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,
2031
- resolve: (s) => Mt(s, !1),
2032
- stringify: Ms
2030
+ resolve: (s) => Ct(s, !1),
2031
+ stringify: _s
2033
2032
  }, et = {
2034
2033
  identify: (s) => s instanceof Date,
2035
2034
  default: !0,
@@ -2046,71 +2045,71 @@ const vs = {
2046
2045
  let c = Date.UTC(t, n - 1, i, r || 0, o || 0, l || 0, a);
2047
2046
  const h = e[8];
2048
2047
  if (h && h !== "Z") {
2049
- let f = Mt(h, !1);
2048
+ let f = Ct(h, !1);
2050
2049
  Math.abs(f) < 30 && (f *= 60), c -= 6e4 * f;
2051
2050
  }
2052
2051
  return new Date(c);
2053
2052
  },
2054
2053
  stringify: ({ value: s }) => s.toISOString().replace(/((T00:00)?:00)?\.000Z$/, "")
2055
- }, Qt = [
2054
+ }, Jt = [
2056
2055
  we,
2057
2056
  Se,
2058
2057
  ze,
2059
- xe,
2058
+ Xe,
2059
+ $s,
2060
2060
  Cs,
2061
- _s,
2061
+ Mn,
2062
2062
  vn,
2063
2063
  Bn,
2064
2064
  jn,
2065
- Pn,
2065
+ $n,
2066
2066
  Cn,
2067
2067
  _n,
2068
- Mn,
2068
+ It,
2069
2069
  Et,
2070
+ At,
2070
2071
  $t,
2071
- Lt,
2072
- _t,
2072
+ Ms,
2073
2073
  vs,
2074
- Bs,
2075
2074
  et
2076
- ], Yt = /* @__PURE__ */ new Map([
2077
- ["core", An],
2075
+ ], Qt = /* @__PURE__ */ new Map([
2076
+ ["core", In],
2078
2077
  ["failsafe", [we, Se, ze]],
2079
- ["json", $n],
2080
- ["yaml11", Qt],
2081
- ["yaml-1.1", Qt]
2082
- ]), Gt = {
2083
- binary: Et,
2084
- bool: It,
2085
- float: Ns,
2086
- floatExp: ks,
2087
- floatNaN: Ss,
2088
- floatTime: Bs,
2089
- int: Is,
2090
- intHex: As,
2091
- intOct: Ts,
2092
- intTime: vs,
2078
+ ["json", Ln],
2079
+ ["yaml11", Jt],
2080
+ ["yaml-1.1", Jt]
2081
+ ]), Yt = {
2082
+ binary: It,
2083
+ bool: Ot,
2084
+ float: ks,
2085
+ floatExp: Ss,
2086
+ floatNaN: ws,
2087
+ floatTime: vs,
2088
+ int: Ts,
2089
+ intHex: Is,
2090
+ intOct: Os,
2091
+ intTime: Ms,
2093
2092
  map: we,
2094
- null: xe,
2095
- omap: $t,
2096
- pairs: Lt,
2093
+ null: Xe,
2094
+ omap: Et,
2095
+ pairs: At,
2097
2096
  seq: Se,
2098
- set: _t,
2097
+ set: $t,
2099
2098
  timestamp: et
2100
- }, Dn = {
2101
- "tag:yaml.org,2002:binary": Et,
2102
- "tag:yaml.org,2002:omap": $t,
2103
- "tag:yaml.org,2002:pairs": Lt,
2104
- "tag:yaml.org,2002:set": _t,
2099
+ }, Pn = {
2100
+ "tag:yaml.org,2002:binary": It,
2101
+ "tag:yaml.org,2002:omap": Et,
2102
+ "tag:yaml.org,2002:pairs": At,
2103
+ "tag:yaml.org,2002:set": $t,
2105
2104
  "tag:yaml.org,2002:timestamp": et
2106
2105
  };
2107
- function ft(s, e) {
2108
- let t = Yt.get(e);
2106
+ function at(s, e) {
2107
+ let t = Qt.get(e);
2109
2108
  if (!t)
2110
2109
  if (Array.isArray(s))
2111
2110
  t = [];
2112
2111
  else {
2113
- const n = Array.from(Yt.keys()).filter((i) => i !== "yaml11").map((i) => JSON.stringify(i)).join(", ");
2112
+ const n = Array.from(Qt.keys()).filter((i) => i !== "yaml11").map((i) => JSON.stringify(i)).join(", ");
2114
2113
  throw new Error(`Unknown schema "${e}"; use one of ${n} or define customTags array`);
2115
2114
  }
2116
2115
  if (Array.isArray(s))
@@ -2121,24 +2120,24 @@ function ft(s, e) {
2121
2120
  return t.map((n) => {
2122
2121
  if (typeof n != "string")
2123
2122
  return n;
2124
- const i = Gt[n];
2123
+ const i = Yt[n];
2125
2124
  if (i)
2126
2125
  return i;
2127
- const r = Object.keys(Gt).map((o) => JSON.stringify(o)).join(", ");
2126
+ const r = Object.keys(Yt).map((o) => JSON.stringify(o)).join(", ");
2128
2127
  throw new Error(`Unknown custom tag "${n}"; use one of ${r}`);
2129
2128
  });
2130
2129
  }
2131
- const Kn = (s, e) => s.key < e.key ? -1 : s.key > e.key ? 1 : 0;
2130
+ const Dn = (s, e) => s.key < e.key ? -1 : s.key > e.key ? 1 : 0;
2132
2131
  class tt {
2133
2132
  constructor({ compat: e, customTags: t, merge: n, resolveKnownTags: i, schema: r, sortMapEntries: o, toStringDefaults: l }) {
2134
- this.compat = Array.isArray(e) ? ft(e, "compat") : e ? ft(null, e) : null, this.merge = !!n, this.name = typeof r == "string" && r || "core", this.knownTags = i ? Dn : {}, this.tags = ft(t, this.name), this.toStringOptions = l != null ? l : null, Object.defineProperty(this, W, { value: we }), Object.defineProperty(this, Y, { value: ze }), Object.defineProperty(this, me, { value: Se }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? Kn : null;
2133
+ this.compat = Array.isArray(e) ? at(e, "compat") : e ? at(null, e) : null, this.merge = !!n, this.name = typeof r == "string" && r || "core", this.knownTags = i ? Pn : {}, this.tags = at(t, this.name), this.toStringOptions = l != null ? l : null, Object.defineProperty(this, W, { value: we }), Object.defineProperty(this, Y, { value: ze }), Object.defineProperty(this, me, { value: Se }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? Dn : null;
2135
2134
  }
2136
2135
  clone() {
2137
2136
  const e = Object.create(tt.prototype, Object.getOwnPropertyDescriptors(this));
2138
2137
  return e.tags = this.tags.slice(), e;
2139
2138
  }
2140
2139
  }
2141
- function qn(s, e) {
2140
+ function Kn(s, e) {
2142
2141
  var a;
2143
2142
  const t = [];
2144
2143
  let n = e.directives === !0;
@@ -2147,7 +2146,7 @@ function qn(s, e) {
2147
2146
  c ? (t.push(c), n = !0) : s.directives.docStart && (n = !0);
2148
2147
  }
2149
2148
  n && t.push("---");
2150
- const i = ys(s, e), { commentString: r } = i.options;
2149
+ const i = ms(s, e), { commentString: r } = i.options;
2151
2150
  if (s.commentBefore) {
2152
2151
  t.length !== 1 && t.unshift("");
2153
2152
  const c = r(s.commentBefore);
@@ -2184,7 +2183,7 @@ function qn(s, e) {
2184
2183
  }
2185
2184
  class ke {
2186
2185
  constructor(e, t, n) {
2187
- this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, F, { value: yt });
2186
+ this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, F, { value: pt });
2188
2187
  let i = null;
2189
2188
  typeof t == "function" || Array.isArray(t) ? i = t : n === void 0 && t && (n = t, t = void 0);
2190
2189
  const r = Object.assign({
@@ -2207,7 +2206,7 @@ class ke {
2207
2206
  */
2208
2207
  clone() {
2209
2208
  const e = Object.create(ke.prototype, {
2210
- [F]: { value: yt }
2209
+ [F]: { value: pt }
2211
2210
  });
2212
2211
  return e.commentBefore = this.commentBefore, e.comment = this.comment, e.errors = this.errors.slice(), e.warnings = this.warnings.slice(), e.options = Object.assign({}, this.options), this.directives && (e.directives = this.directives.clone()), e.schema = this.schema.clone(), e.contents = M(this.contents) ? this.contents.clone(e.schema) : this.contents, this.range && (e.range = this.range.slice()), e;
2213
2212
  }
@@ -2230,9 +2229,9 @@ class ke {
2230
2229
  */
2231
2230
  createAlias(e, t) {
2232
2231
  if (!e.anchor) {
2233
- const n = us(this);
2232
+ const n = fs(this);
2234
2233
  e.anchor = // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
2235
- !t || n.has(t) ? hs(t || "a", n) : t;
2234
+ !t || n.has(t) ? us(t || "a", n) : t;
2236
2235
  }
2237
2236
  return new Ye(e.anchor);
2238
2237
  }
@@ -2245,7 +2244,7 @@ class ke {
2245
2244
  b.length > 0 && (t = t.concat(b)), i = t;
2246
2245
  } else
2247
2246
  n === void 0 && t && (n = t, t = void 0);
2248
- const { aliasDuplicateObjects: r, anchorPrefix: o, flow: l, keepUndefined: a, onTagObj: c, tag: h } = n != null ? n : {}, { onAnchor: f, setAnchors: p, sourceObjects: m } = dn(
2247
+ const { aliasDuplicateObjects: r, anchorPrefix: o, flow: l, keepUndefined: a, onTagObj: c, tag: h } = n != null ? n : {}, { onAnchor: f, setAnchors: p, sourceObjects: m } = hn(
2249
2248
  this,
2250
2249
  // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
2251
2250
  o || "a"
@@ -2389,7 +2388,7 @@ class ke {
2389
2388
  const t = JSON.stringify(e.indent);
2390
2389
  throw new Error(`"indent" option must be a positive integer, not ${t}`);
2391
2390
  }
2392
- return qn(this, e);
2391
+ return Kn(this, e);
2393
2392
  }
2394
2393
  }
2395
2394
  function re(s) {
@@ -2397,17 +2396,17 @@ function re(s) {
2397
2396
  return !0;
2398
2397
  throw new Error("Expected a YAML collection as document contents");
2399
2398
  }
2400
- class vt extends Error {
2399
+ class _t extends Error {
2401
2400
  constructor(e, t, n, i) {
2402
2401
  super(), this.name = e, this.code = n, this.message = i, this.pos = t;
2403
2402
  }
2404
2403
  }
2405
- class te extends vt {
2404
+ class te extends _t {
2406
2405
  constructor(e, t, n) {
2407
2406
  super("YAMLParseError", e, t, n);
2408
2407
  }
2409
2408
  }
2410
- class js extends vt {
2409
+ class Bs extends _t {
2411
2410
  constructor(e, t, n) {
2412
2411
  super("YAMLWarning", e, t, n);
2413
2412
  }
@@ -2523,21 +2522,21 @@ function Ee(s) {
2523
2522
  return !0;
2524
2523
  }
2525
2524
  }
2526
- function St(s, e, t) {
2525
+ function bt(s, e, t) {
2527
2526
  if ((e == null ? void 0 : e.type) === "flow-collection") {
2528
2527
  const n = e.end[0];
2529
2528
  n.indent === s && (n.source === "]" || n.source === "}") && Ee(e) && t(n, "BAD_INDENT", "Flow end indicator should be more indented than parent", !0);
2530
2529
  }
2531
2530
  }
2532
- function Ps(s, e, t) {
2531
+ function js(s, e, t) {
2533
2532
  const { uniqueKeys: n } = s.options;
2534
2533
  if (n === !1)
2535
2534
  return !1;
2536
2535
  const i = typeof n == "function" ? n : (r, o) => r === o || A(r) && A(o) && r.value === o.value && !(r.value === "<<" && s.schema.merge);
2537
2536
  return e.some((r) => i(r.key, t));
2538
2537
  }
2539
- const Wt = "All mapping items must start at the same column";
2540
- function Fn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2538
+ const Gt = "All mapping items must start at the same column";
2539
+ function qn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2541
2540
  var h, f;
2542
2541
  const o = (h = r == null ? void 0 : r.nodeClass) != null ? h : K, l = new o(t.schema);
2543
2542
  t.atRoot && (t.atRoot = !1);
@@ -2552,16 +2551,16 @@ function Fn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2552
2551
  startOnNewline: !0
2553
2552
  }), S = !b.found;
2554
2553
  if (S) {
2555
- if (y && (y.type === "block-seq" ? i(a, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in y && y.indent !== n.indent && i(a, "BAD_INDENT", Wt)), !b.anchor && !b.tag && !u) {
2554
+ if (y && (y.type === "block-seq" ? i(a, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in y && y.indent !== n.indent && i(a, "BAD_INDENT", Gt)), !b.anchor && !b.tag && !u) {
2556
2555
  c = b.end, b.comment && (l.comment ? l.comment += `
2557
2556
  ` + b.comment : l.comment = b.comment);
2558
2557
  continue;
2559
2558
  }
2560
2559
  (b.newlineAfterProp || Ee(y)) && i(y != null ? y : m[m.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
2561
2560
  } else
2562
- ((f = b.found) == null ? void 0 : f.indent) !== n.indent && i(a, "BAD_INDENT", Wt);
2561
+ ((f = b.found) == null ? void 0 : f.indent) !== n.indent && i(a, "BAD_INDENT", Gt);
2563
2562
  const I = b.end, k = y ? s(t, y, b, i) : e(t, I, m, null, b, i);
2564
- t.schema.compat && St(n.indent, y, i), Ps(t, l.items, k) && i(I, "DUPLICATE_KEY", "Map keys must be unique");
2563
+ t.schema.compat && bt(n.indent, y, i), js(t, l.items, k) && i(I, "DUPLICATE_KEY", "Map keys must be unique");
2565
2564
  const O = pe(u != null ? u : [], {
2566
2565
  indicator: "map-value-ind",
2567
2566
  next: g,
@@ -2573,7 +2572,7 @@ function Fn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2573
2572
  if (a = O.end, O.found) {
2574
2573
  S && ((g == null ? void 0 : g.type) === "block-map" && !O.hasNewline && i(a, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), t.options.strict && b.start < O.found.offset - 1024 && i(k.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
2575
2574
  const T = g ? s(t, g, O, i) : e(t, a, u, null, O, i);
2576
- t.schema.compat && St(n.indent, g, i), a = T.range[2];
2575
+ t.schema.compat && bt(n.indent, g, i), a = T.range[2];
2577
2576
  const C = new j(k, T);
2578
2577
  t.options.keepSourceTokens && (C.srcToken = p), l.items.push(C);
2579
2578
  } else {
@@ -2585,7 +2584,7 @@ function Fn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2585
2584
  }
2586
2585
  return c && c < a && i(c, "IMPOSSIBLE", "Map comment with trailing content"), l.range = [n.offset, a, c != null ? c : a], l;
2587
2586
  }
2588
- function Rn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2587
+ function Fn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2589
2588
  var h;
2590
2589
  const o = (h = r == null ? void 0 : r.nodeClass) != null ? h : z, l = new o(t.schema);
2591
2590
  t.atRoot && (t.atRoot = !1);
@@ -2607,7 +2606,7 @@ function Rn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2607
2606
  continue;
2608
2607
  }
2609
2608
  const y = p ? s(t, p, m, i) : e(t, m.end, f, null, m, i);
2610
- t.schema.compat && St(n.indent, p, i), a = y.range[2], l.items.push(y);
2609
+ t.schema.compat && bt(n.indent, p, i), a = y.range[2], l.items.push(y);
2611
2610
  }
2612
2611
  return l.range = [n.offset, a, c != null ? c : a], l;
2613
2612
  }
@@ -2638,8 +2637,8 @@ function _e(s, e, t, n) {
2638
2637
  }
2639
2638
  return { comment: i, offset: e };
2640
2639
  }
2641
- const ut = "Block collections are not allowed within flow collections", ht = (s) => s && (s.type === "block-map" || s.type === "block-seq");
2642
- function Un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2640
+ const ct = "Block collections are not allowed within flow collections", ft = (s) => s && (s.type === "block-map" || s.type === "block-seq");
2641
+ function Rn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2643
2642
  var g, b;
2644
2643
  const o = n.start.source === "{", l = o ? "flow map" : "flow sequence", a = (g = r == null ? void 0 : r.nodeClass) != null ? g : o ? K : z, c = new a(t.schema);
2645
2644
  c.flow = !0;
@@ -2693,10 +2692,10 @@ function Un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2693
2692
  }
2694
2693
  if (!o && !T && !w.found) {
2695
2694
  const L = C ? s(t, C, w, i) : e(t, w.end, T, null, w, i);
2696
- c.items.push(L), f = L.range[2], ht(C) && i(L.range, "BLOCK_IN_FLOW", ut);
2695
+ c.items.push(L), f = L.range[2], ft(C) && i(L.range, "BLOCK_IN_FLOW", ct);
2697
2696
  } else {
2698
2697
  const L = w.end, _ = O ? s(t, O, w, i) : e(t, L, k, null, w, i);
2699
- ht(O) && i(_.range, "BLOCK_IN_FLOW", ut);
2698
+ ft(O) && i(_.range, "BLOCK_IN_FLOW", ct);
2700
2699
  const B = pe(T != null ? T : [], {
2701
2700
  flow: l,
2702
2701
  indicator: "map-value-ind",
@@ -2721,18 +2720,18 @@ function Un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2721
2720
  }
2722
2721
  } else
2723
2722
  C && ("source" in C && C.source && C.source[0] === ":" ? i(C, "MISSING_CHAR", `Missing space after : in ${l}`) : i(B.start, "MISSING_CHAR", `Missing , or : between ${l} items`));
2724
- const x = C ? s(t, C, B, i) : B.found ? e(t, B.end, T, null, B, i) : null;
2725
- x ? ht(C) && i(x.range, "BLOCK_IN_FLOW", ut) : B.comment && (_.comment ? _.comment += `
2723
+ const X = C ? s(t, C, B, i) : B.found ? e(t, B.end, T, null, B, i) : null;
2724
+ X ? ft(C) && i(X.range, "BLOCK_IN_FLOW", ct) : B.comment && (_.comment ? _.comment += `
2726
2725
  ` + B.comment : _.comment = B.comment);
2727
- const ie = new j(_, x);
2726
+ const ie = new j(_, X);
2728
2727
  if (t.options.keepSourceTokens && (ie.srcToken = I), o) {
2729
2728
  const v = c;
2730
- Ps(t, v.items, _) && i(L, "DUPLICATE_KEY", "Map keys must be unique"), v.items.push(ie);
2729
+ js(t, v.items, _) && i(L, "DUPLICATE_KEY", "Map keys must be unique"), v.items.push(ie);
2731
2730
  } else {
2732
2731
  const v = new K(t.schema);
2733
2732
  v.flow = !0, v.items.push(ie), c.items.push(v);
2734
2733
  }
2735
- f = x ? x.range[2] : B.end;
2734
+ f = X ? X.range[2] : B.end;
2736
2735
  }
2737
2736
  }
2738
2737
  const p = o ? "}" : "]", [m, ...y] = n.end;
@@ -2751,11 +2750,11 @@ function Un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2751
2750
  c.range = [n.offset, u, u];
2752
2751
  return c;
2753
2752
  }
2754
- function dt(s, e, t, n, i, r) {
2755
- const o = t.type === "block-map" ? Fn(s, e, t, n, r) : t.type === "block-seq" ? Rn(s, e, t, n, r) : Un(s, e, t, n, r), l = o.constructor;
2753
+ function ut(s, e, t, n, i, r) {
2754
+ const o = t.type === "block-map" ? qn(s, e, t, n, r) : t.type === "block-seq" ? Fn(s, e, t, n, r) : Rn(s, e, t, n, r), l = o.constructor;
2756
2755
  return i === "!" || i === l.tagName ? (o.tag = l.tagName, o) : (i && (o.tag = i), o);
2757
2756
  }
2758
- function Vn(s, e, t, n, i) {
2757
+ function Un(s, e, t, n, i) {
2759
2758
  var p, m;
2760
2759
  const r = n.tag, o = r ? e.directives.tagName(r.source, (y) => i(r, "TAG_RESOLVE_FAILED", y)) : null;
2761
2760
  if (t.type === "block-seq") {
@@ -2764,23 +2763,23 @@ function Vn(s, e, t, n, i) {
2764
2763
  }
2765
2764
  const l = t.type === "block-map" ? "map" : t.type === "block-seq" ? "seq" : t.start.source === "{" ? "map" : "seq";
2766
2765
  if (!r || !o || o === "!" || o === K.tagName && l === "map" || o === z.tagName && l === "seq")
2767
- return dt(s, e, t, i, o);
2766
+ return ut(s, e, t, i, o);
2768
2767
  let a = e.schema.tags.find((y) => y.tag === o && y.collection === l);
2769
2768
  if (!a) {
2770
2769
  const y = e.schema.knownTags[o];
2771
2770
  if (y && y.collection === l)
2772
2771
  e.schema.tags.push(Object.assign({}, y, { default: !1 })), a = y;
2773
2772
  else
2774
- return y != null && y.collection ? i(r, "BAD_COLLECTION_TYPE", `${y.tag} used for ${l} collection, but expects ${y.collection}`, !0) : i(r, "TAG_RESOLVE_FAILED", `Unresolved tag: ${o}`, !0), dt(s, e, t, i, o);
2773
+ return y != null && y.collection ? i(r, "BAD_COLLECTION_TYPE", `${y.tag} used for ${l} collection, but expects ${y.collection}`, !0) : i(r, "TAG_RESOLVE_FAILED", `Unresolved tag: ${o}`, !0), ut(s, e, t, i, o);
2775
2774
  }
2776
- const c = dt(s, e, t, i, o, a), h = (m = (p = a.resolve) == null ? void 0 : p.call(a, c, (y) => i(r, "TAG_RESOLVE_FAILED", y), e.options)) != null ? m : c, f = M(h) ? h : new N(h);
2775
+ const c = ut(s, e, t, i, o, a), h = (m = (p = a.resolve) == null ? void 0 : p.call(a, c, (y) => i(r, "TAG_RESOLVE_FAILED", y), e.options)) != null ? m : c, f = M(h) ? h : new N(h);
2777
2776
  return f.range = c.range, f.tag = o, a != null && a.format && (f.format = a.format), f;
2778
2777
  }
2779
- function Ds(s, e, t) {
2780
- const n = e.offset, i = Jn(e, s.options.strict, t);
2778
+ function Ps(s, e, t) {
2779
+ const n = e.offset, i = Vn(e, s.options.strict, t);
2781
2780
  if (!i)
2782
2781
  return { value: "", type: null, comment: "", range: [n, n, n] };
2783
- const r = i.mode === ">" ? N.BLOCK_FOLDED : N.BLOCK_LITERAL, o = e.source ? Qn(e.source) : [];
2782
+ const r = i.mode === ">" ? N.BLOCK_FOLDED : N.BLOCK_LITERAL, o = e.source ? Jn(e.source) : [];
2784
2783
  let l = o.length;
2785
2784
  for (let u = o.length - 1; u >= 0; --u) {
2786
2785
  const g = o[u][1];
@@ -2849,7 +2848,7 @@ function Ds(s, e, t) {
2849
2848
  const y = n + i.length + e.source.length;
2850
2849
  return { value: f, type: r, comment: i.comment, range: [n, y, y] };
2851
2850
  }
2852
- function Jn({ offset: s, props: e }, t, n) {
2851
+ function Vn({ offset: s, props: e }, t, n) {
2853
2852
  if (e[0].type !== "block-scalar-header")
2854
2853
  return n(e[0], "IMPOSSIBLE", "Block scalar header not found"), null;
2855
2854
  const { source: i } = e[0], r = i[0];
@@ -2889,25 +2888,25 @@ function Jn({ offset: s, props: e }, t, n) {
2889
2888
  }
2890
2889
  return { mode: r, indent: o, chomp: l, comment: h, length: f };
2891
2890
  }
2892
- function Qn(s) {
2891
+ function Jn(s) {
2893
2892
  const e = s.split(/\n( *)/), t = e[0], n = t.match(/^( *)/), r = [n != null && n[1] ? [n[1], t.slice(n[1].length)] : ["", t]];
2894
2893
  for (let o = 1; o < e.length; o += 2)
2895
2894
  r.push([e[o], e[o + 1]]);
2896
2895
  return r;
2897
2896
  }
2898
- function Ks(s, e, t) {
2897
+ function Ds(s, e, t) {
2899
2898
  const { offset: n, type: i, source: r, end: o } = s;
2900
2899
  let l, a;
2901
2900
  const c = (p, m, y) => t(n + p, m, y);
2902
2901
  switch (i) {
2903
2902
  case "scalar":
2904
- l = N.PLAIN, a = Yn(r, c);
2903
+ l = N.PLAIN, a = Qn(r, c);
2905
2904
  break;
2906
2905
  case "single-quoted-scalar":
2907
- l = N.QUOTE_SINGLE, a = Gn(r, c);
2906
+ l = N.QUOTE_SINGLE, a = Yn(r, c);
2908
2907
  break;
2909
2908
  case "double-quoted-scalar":
2910
- l = N.QUOTE_DOUBLE, a = Wn(r, c);
2909
+ l = N.QUOTE_DOUBLE, a = Gn(r, c);
2911
2910
  break;
2912
2911
  default:
2913
2912
  return t(s, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${i}`), {
@@ -2925,7 +2924,7 @@ function Ks(s, e, t) {
2925
2924
  range: [n, h, f.offset]
2926
2925
  };
2927
2926
  }
2928
- function Yn(s, e) {
2927
+ function Qn(s, e) {
2929
2928
  let t = "";
2930
2929
  switch (s[0]) {
2931
2930
  case " ":
@@ -2948,12 +2947,12 @@ function Yn(s, e) {
2948
2947
  break;
2949
2948
  }
2950
2949
  }
2951
- return t && e(0, "BAD_SCALAR_START", `Plain value cannot start with ${t}`), qs(s);
2950
+ return t && e(0, "BAD_SCALAR_START", `Plain value cannot start with ${t}`), Ks(s);
2952
2951
  }
2953
- function Gn(s, e) {
2954
- return (s[s.length - 1] !== "'" || s.length === 1) && e(s.length, "MISSING_CHAR", "Missing closing 'quote"), qs(s.slice(1, -1)).replace(/''/g, "'");
2952
+ function Yn(s, e) {
2953
+ return (s[s.length - 1] !== "'" || s.length === 1) && e(s.length, "MISSING_CHAR", "Missing closing 'quote"), Ks(s.slice(1, -1)).replace(/''/g, "'");
2955
2954
  }
2956
- function qs(s) {
2955
+ function Ks(s) {
2957
2956
  var a;
2958
2957
  let e, t;
2959
2958
  try {
@@ -2974,7 +2973,7 @@ function qs(s) {
2974
2973
  const l = new RegExp("[ \\t]*(.*)", "sy");
2975
2974
  return l.lastIndex = o, n = l.exec(s), i + r + ((a = n == null ? void 0 : n[1]) != null ? a : "");
2976
2975
  }
2977
- function Wn(s, e) {
2976
+ function Gn(s, e) {
2978
2977
  let t = "";
2979
2978
  for (let n = 1; n < s.length - 1; ++n) {
2980
2979
  const i = s[n];
@@ -2982,11 +2981,11 @@ function Wn(s, e) {
2982
2981
  `))
2983
2982
  if (i === `
2984
2983
  `) {
2985
- const { fold: r, offset: o } = Hn(s, n);
2984
+ const { fold: r, offset: o } = Wn(s, n);
2986
2985
  t += r, n = o;
2987
2986
  } else if (i === "\\") {
2988
2987
  let r = s[++n];
2989
- const o = zn[r];
2988
+ const o = Hn[r];
2990
2989
  if (o)
2991
2990
  t += o;
2992
2991
  else if (r === `
@@ -2999,7 +2998,7 @@ function Wn(s, e) {
2999
2998
  r = s[++n + 1];
3000
2999
  else if (r === "x" || r === "u" || r === "U") {
3001
3000
  const l = { x: 2, u: 4, U: 8 }[r];
3002
- t += xn(s, n + 1, l, e), n += l;
3001
+ t += zn(s, n + 1, l, e), n += l;
3003
3002
  } else {
3004
3003
  const l = s.substr(n - 1, 2);
3005
3004
  e(n - 1, "BAD_DQ_ESCAPE", `Invalid escape sequence ${l}`), t += l;
@@ -3017,7 +3016,7 @@ function Wn(s, e) {
3017
3016
  }
3018
3017
  return (s[s.length - 1] !== '"' || s.length === 1) && e(s.length, "MISSING_CHAR", 'Missing closing "quote'), t;
3019
3018
  }
3020
- function Hn(s, e) {
3019
+ function Wn(s, e) {
3021
3020
  let t = "", n = s[e + 1];
3022
3021
  for (; (n === " " || n === " " || n === `
3023
3022
  ` || n === "\r") && !(n === "\r" && s[e + 2] !== `
@@ -3027,7 +3026,7 @@ function Hn(s, e) {
3027
3026
  `), e += 1, n = s[e + 1];
3028
3027
  return t || (t = " "), { fold: t, offset: e };
3029
3028
  }
3030
- const zn = {
3029
+ const Hn = {
3031
3030
  0: "\0",
3032
3031
  // null character
3033
3032
  a: "\x07",
@@ -3061,7 +3060,7 @@ const zn = {
3061
3060
  "\\": "\\",
3062
3061
  " ": " "
3063
3062
  };
3064
- function xn(s, e, t, n) {
3063
+ function zn(s, e, t, n) {
3065
3064
  const i = s.substr(e, t), o = i.length === t && /^[0-9a-fA-F]+$/.test(i) ? parseInt(i, 16) : NaN;
3066
3065
  if (isNaN(o)) {
3067
3066
  const l = s.substr(e - 2, t + 2);
@@ -3069,8 +3068,8 @@ function xn(s, e, t, n) {
3069
3068
  }
3070
3069
  return String.fromCodePoint(o);
3071
3070
  }
3072
- function Fs(s, e, t, n) {
3073
- const { value: i, type: r, comment: o, range: l } = e.type === "block-scalar" ? Ds(s, e, n) : Ks(e, s.options.strict, n), a = t ? s.directives.tagName(t.source, (f) => n(t, "TAG_RESOLVE_FAILED", f)) : null, c = t && a ? Xn(s.schema, i, a, t, n) : e.type === "scalar" ? Zn(s, i, e, n) : s.schema[Y];
3071
+ function qs(s, e, t, n) {
3072
+ const { value: i, type: r, comment: o, range: l } = e.type === "block-scalar" ? Ps(s, e, n) : Ds(e, s.options.strict, n), a = t ? s.directives.tagName(t.source, (f) => n(t, "TAG_RESOLVE_FAILED", f)) : null, c = t && a ? Xn(s.schema, i, a, t, n) : e.type === "scalar" ? xn(s, i, e, n) : s.schema[Y];
3074
3073
  let h;
3075
3074
  try {
3076
3075
  const f = c.resolve(i, (p) => n(t != null ? t : e, "TAG_RESOLVE_FAILED", p), s.options);
@@ -3098,7 +3097,7 @@ function Xn(s, e, t, n, i) {
3098
3097
  const o = s.knownTags[t];
3099
3098
  return o && !o.collection ? (s.tags.push(Object.assign({}, o, { default: !1, test: void 0 })), o) : (i(n, "TAG_RESOLVE_FAILED", `Unresolved tag: ${t}`, t !== "tag:yaml.org,2002:str"), s[Y]);
3100
3099
  }
3101
- function Zn({ directives: s, schema: e }, t, n, i) {
3100
+ function xn({ directives: s, schema: e }, t, n, i) {
3102
3101
  var o;
3103
3102
  const r = e.tags.find((l) => {
3104
3103
  var a;
@@ -3116,7 +3115,7 @@ function Zn({ directives: s, schema: e }, t, n, i) {
3116
3115
  }
3117
3116
  return r;
3118
3117
  }
3119
- function ei(s, e, t) {
3118
+ function Zn(s, e, t) {
3120
3119
  if (e) {
3121
3120
  t === null && (t = e.length);
3122
3121
  for (let n = t - 1; n >= 0; --n) {
@@ -3135,48 +3134,48 @@ function ei(s, e, t) {
3135
3134
  }
3136
3135
  return s;
3137
3136
  }
3138
- const ti = { composeNode: Rs, composeEmptyNode: Bt };
3139
- function Rs(s, e, t, n) {
3137
+ const ei = { composeNode: Fs, composeEmptyNode: Mt };
3138
+ function Fs(s, e, t, n) {
3140
3139
  const { spaceBefore: i, comment: r, anchor: o, tag: l } = t;
3141
3140
  let a, c = !0;
3142
3141
  switch (e.type) {
3143
3142
  case "alias":
3144
- a = si(s, e, n), (o || l) && n(e, "ALIAS_PROPS", "An alias node must not specify any properties");
3143
+ a = ti(s, e, n), (o || l) && n(e, "ALIAS_PROPS", "An alias node must not specify any properties");
3145
3144
  break;
3146
3145
  case "scalar":
3147
3146
  case "single-quoted-scalar":
3148
3147
  case "double-quoted-scalar":
3149
3148
  case "block-scalar":
3150
- a = Fs(s, e, l, n), o && (a.anchor = o.source.substring(1));
3149
+ a = qs(s, e, l, n), o && (a.anchor = o.source.substring(1));
3151
3150
  break;
3152
3151
  case "block-map":
3153
3152
  case "block-seq":
3154
3153
  case "flow-collection":
3155
- a = Vn(ti, s, e, t, n), o && (a.anchor = o.source.substring(1));
3154
+ a = Un(ei, s, e, t, n), o && (a.anchor = o.source.substring(1));
3156
3155
  break;
3157
3156
  default: {
3158
3157
  const h = e.type === "error" ? e.message : `Unsupported token (type: ${e.type})`;
3159
- n(e, "UNEXPECTED_TOKEN", h), a = Bt(s, e.offset, void 0, null, t, n), c = !1;
3158
+ n(e, "UNEXPECTED_TOKEN", h), a = Mt(s, e.offset, void 0, null, t, n), c = !1;
3160
3159
  }
3161
3160
  }
3162
3161
  return o && a.anchor === "" && n(o, "BAD_ALIAS", "Anchor cannot be an empty string"), i && (a.spaceBefore = !0), r && (e.type === "scalar" && e.source === "" ? a.comment = r : a.commentBefore = r), s.options.keepSourceTokens && c && (a.srcToken = e), a;
3163
3162
  }
3164
- function Bt(s, e, t, n, { spaceBefore: i, comment: r, anchor: o, tag: l, end: a }, c) {
3163
+ function Mt(s, e, t, n, { spaceBefore: i, comment: r, anchor: o, tag: l, end: a }, c) {
3165
3164
  const h = {
3166
3165
  type: "scalar",
3167
- offset: ei(e, t, n),
3166
+ offset: Zn(e, t, n),
3168
3167
  indent: -1,
3169
3168
  source: ""
3170
- }, f = Fs(s, h, l, c);
3169
+ }, f = qs(s, h, l, c);
3171
3170
  return o && (f.anchor = o.source.substring(1), f.anchor === "" && c(o, "BAD_ALIAS", "Anchor cannot be an empty string")), i && (f.spaceBefore = !0), r && (f.comment = r, f.range[2] = a), f;
3172
3171
  }
3173
- function si({ options: s }, { offset: e, source: t, end: n }, i) {
3172
+ function ti({ options: s }, { offset: e, source: t, end: n }, i) {
3174
3173
  const r = new Ye(t.substring(1));
3175
3174
  r.source === "" && i(e, "BAD_ALIAS", "Alias cannot be an empty string"), r.source.endsWith(":") && i(e + t.length - 1, "BAD_ALIAS", "Alias ending in : is ambiguous", !0);
3176
3175
  const o = e + t.length, l = _e(n, o, s.strict, i);
3177
3176
  return r.range = [e, o, l.offset], l.comment && (r.comment = l.comment), r;
3178
3177
  }
3179
- function ni(s, e, { offset: t, start: n, value: i, end: r }, o) {
3178
+ function si(s, e, { offset: t, start: n, value: i, end: r }, o) {
3180
3179
  const l = Object.assign({ _directives: e }, s), a = new ke(void 0, l), c = {
3181
3180
  atRoot: !0,
3182
3181
  directives: a.directives,
@@ -3190,7 +3189,7 @@ function ni(s, e, { offset: t, start: n, value: i, end: r }, o) {
3190
3189
  parentIndent: 0,
3191
3190
  startOnNewline: !0
3192
3191
  });
3193
- h.found && (a.directives.docStart = !0, i && (i.type === "block-map" || i.type === "block-seq") && !h.hasNewline && o(h.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker")), a.contents = i ? Rs(c, i, h, o) : Bt(c, h.end, n, null, h, o);
3192
+ h.found && (a.directives.docStart = !0, i && (i.type === "block-map" || i.type === "block-seq") && !h.hasNewline && o(h.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker")), a.contents = i ? Fs(c, i, h, o) : Mt(c, h.end, n, null, h, o);
3194
3193
  const f = a.contents.range[2], p = _e(r, f, !1, o);
3195
3194
  return p.comment && (a.comment = p.comment), a.range = [t, f, p.offset], a;
3196
3195
  }
@@ -3202,7 +3201,7 @@ function Ne(s) {
3202
3201
  const { offset: e, source: t } = s;
3203
3202
  return [e, e + (typeof t == "string" ? t.length : 1)];
3204
3203
  }
3205
- function Ht(s) {
3204
+ function Wt(s) {
3206
3205
  var i;
3207
3206
  let e = "", t = !1, n = !1;
3208
3207
  for (let r = 0; r < s.length; ++r) {
@@ -3223,15 +3222,15 @@ function Ht(s) {
3223
3222
  }
3224
3223
  return { comment: e, afterEmptyLine: n };
3225
3224
  }
3226
- class jt {
3225
+ class vt {
3227
3226
  constructor(e = {}) {
3228
3227
  this.doc = null, this.atDirectives = !1, this.prelude = [], this.errors = [], this.warnings = [], this.onError = (t, n, i, r) => {
3229
3228
  const o = Ne(t);
3230
- r ? this.warnings.push(new js(o, n, i)) : this.errors.push(new te(o, n, i));
3229
+ r ? this.warnings.push(new Bs(o, n, i)) : this.errors.push(new te(o, n, i));
3231
3230
  }, this.directives = new P({ version: e.version || "1.2" }), this.options = e;
3232
3231
  }
3233
3232
  decorate(e, t) {
3234
- const { comment: n, afterEmptyLine: i } = Ht(this.prelude);
3233
+ const { comment: n, afterEmptyLine: i } = Wt(this.prelude);
3235
3234
  if (n) {
3236
3235
  const r = e.contents;
3237
3236
  if (t)
@@ -3260,7 +3259,7 @@ ${o}` : n;
3260
3259
  */
3261
3260
  streamInfo() {
3262
3261
  return {
3263
- comment: Ht(this.prelude).comment,
3262
+ comment: Wt(this.prelude).comment,
3264
3263
  directives: this.directives,
3265
3264
  errors: this.errors,
3266
3265
  warnings: this.warnings
@@ -3287,7 +3286,7 @@ ${o}` : n;
3287
3286
  }), this.prelude.push(e.source), this.atDirectives = !0;
3288
3287
  break;
3289
3288
  case "document": {
3290
- const t = ni(this.options, this.directives, e, this.onError);
3289
+ const t = si(this.options, this.directives, e, this.onError);
3291
3290
  this.atDirectives && !t.directives.docStart && this.onError(e, "MISSING_CHAR", "Missing directives-end/doc-start indicator line"), this.decorate(t, !1), this.doc && (yield this.doc), this.doc = t, this.atDirectives = !1;
3292
3291
  break;
3293
3292
  }
@@ -3338,7 +3337,7 @@ ${t.comment}` : t.comment;
3338
3337
  }
3339
3338
  }
3340
3339
  }
3341
- function ii(s, e = !0, t) {
3340
+ function ni(s, e = !0, t) {
3342
3341
  if (s) {
3343
3342
  const n = (i, r, o) => {
3344
3343
  const l = typeof i == "number" ? i : Array.isArray(i) ? i[0] : i.offset;
@@ -3351,14 +3350,14 @@ function ii(s, e = !0, t) {
3351
3350
  case "scalar":
3352
3351
  case "single-quoted-scalar":
3353
3352
  case "double-quoted-scalar":
3354
- return Ks(s, e, n);
3353
+ return Ds(s, e, n);
3355
3354
  case "block-scalar":
3356
- return Ds({ options: { strict: e } }, s, n);
3355
+ return Ps({ options: { strict: e } }, s, n);
3357
3356
  }
3358
3357
  }
3359
3358
  return null;
3360
3359
  }
3361
- function ri(s, e) {
3360
+ function ii(s, e) {
3362
3361
  var c;
3363
3362
  const { implicitKey: t = !1, indent: n, inFlow: i = !1, offset: r = -1, type: o = "PLAIN" } = e, l = $e({ type: o, value: s }, {
3364
3363
  implicitKey: t,
@@ -3377,7 +3376,7 @@ function ri(s, e) {
3377
3376
  `, m = [
3378
3377
  { type: "block-scalar-header", offset: r, indent: n, source: f }
3379
3378
  ];
3380
- return Us(m, a) || m.push({ type: "newline", offset: -1, indent: n, source: `
3379
+ return Rs(m, a) || m.push({ type: "newline", offset: -1, indent: n, source: `
3381
3380
  ` }), { type: "block-scalar", offset: r, indent: n, props: m, source: p };
3382
3381
  }
3383
3382
  case '"':
@@ -3388,7 +3387,7 @@ function ri(s, e) {
3388
3387
  return { type: "scalar", offset: r, indent: n, source: l, end: a };
3389
3388
  }
3390
3389
  }
3391
- function oi(s, e, t = {}) {
3390
+ function ri(s, e, t = {}) {
3392
3391
  let { afterKey: n = !1, implicitKey: i = !1, inFlow: r = !1, type: o } = t, l = "indent" in s ? s.indent : null;
3393
3392
  if (n && typeof l == "number" && (l += 2), !o)
3394
3393
  switch (s.type) {
@@ -3417,19 +3416,19 @@ function oi(s, e, t = {}) {
3417
3416
  switch (a[0]) {
3418
3417
  case "|":
3419
3418
  case ">":
3420
- li(s, a);
3419
+ oi(s, a);
3421
3420
  break;
3422
3421
  case '"':
3423
- pt(s, a, "double-quoted-scalar");
3422
+ ht(s, a, "double-quoted-scalar");
3424
3423
  break;
3425
3424
  case "'":
3426
- pt(s, a, "single-quoted-scalar");
3425
+ ht(s, a, "single-quoted-scalar");
3427
3426
  break;
3428
3427
  default:
3429
- pt(s, a, "scalar");
3428
+ ht(s, a, "scalar");
3430
3429
  }
3431
3430
  }
3432
- function li(s, e) {
3431
+ function oi(s, e) {
3433
3432
  const t = e.indexOf(`
3434
3433
  `), n = e.substring(0, t), i = e.substring(t + 1) + `
3435
3434
  `;
@@ -3442,14 +3441,14 @@ function li(s, e) {
3442
3441
  const { offset: r } = s, o = "indent" in s ? s.indent : -1, l = [
3443
3442
  { type: "block-scalar-header", offset: r, indent: o, source: n }
3444
3443
  ];
3445
- Us(l, "end" in s ? s.end : void 0) || l.push({ type: "newline", offset: -1, indent: o, source: `
3444
+ Rs(l, "end" in s ? s.end : void 0) || l.push({ type: "newline", offset: -1, indent: o, source: `
3446
3445
  ` });
3447
3446
  for (const a of Object.keys(s))
3448
3447
  a !== "type" && a !== "offset" && delete s[a];
3449
3448
  Object.assign(s, { type: "block-scalar", indent: o, props: l, source: i });
3450
3449
  }
3451
3450
  }
3452
- function Us(s, e) {
3451
+ function Rs(s, e) {
3453
3452
  if (e)
3454
3453
  for (const t of e)
3455
3454
  switch (t.type) {
@@ -3462,7 +3461,7 @@ function Us(s, e) {
3462
3461
  }
3463
3462
  return !1;
3464
3463
  }
3465
- function pt(s, e, t) {
3464
+ function ht(s, e, t) {
3466
3465
  switch (s.type) {
3467
3466
  case "scalar":
3468
3467
  case "double-quoted-scalar":
@@ -3493,7 +3492,7 @@ function pt(s, e, t) {
3493
3492
  }
3494
3493
  }
3495
3494
  }
3496
- const ai = (s) => "type" in s ? Je(s) : Fe(s);
3495
+ const li = (s) => "type" in s ? Je(s) : Fe(s);
3497
3496
  function Je(s) {
3498
3497
  switch (s.type) {
3499
3498
  case "block-scalar": {
@@ -3542,13 +3541,13 @@ function Fe({ start: s, key: e, sep: t, value: n }) {
3542
3541
  i += r.source;
3543
3542
  return n && (i += Je(n)), i;
3544
3543
  }
3545
- const kt = Symbol("break visit"), ci = Symbol("skip children"), Vs = Symbol("remove item");
3544
+ const wt = Symbol("break visit"), ai = Symbol("skip children"), Us = Symbol("remove item");
3546
3545
  function se(s, e) {
3547
- "type" in s && s.type === "document" && (s = { start: s.start, value: s.value }), Js(Object.freeze([]), s, e);
3546
+ "type" in s && s.type === "document" && (s = { start: s.start, value: s.value }), Vs(Object.freeze([]), s, e);
3548
3547
  }
3549
- se.BREAK = kt;
3550
- se.SKIP = ci;
3551
- se.REMOVE = Vs;
3548
+ se.BREAK = wt;
3549
+ se.SKIP = ai;
3550
+ se.REMOVE = Us;
3552
3551
  se.itemAtPath = (s, e) => {
3553
3552
  let t = s;
3554
3553
  for (const [n, i] of e) {
@@ -3566,7 +3565,7 @@ se.parentCollection = (s, e) => {
3566
3565
  return i;
3567
3566
  throw new Error("Parent collection not found");
3568
3567
  };
3569
- function Js(s, e, t) {
3568
+ function Vs(s, e, t) {
3570
3569
  let n = t(e, s);
3571
3570
  if (typeof n == "symbol")
3572
3571
  return n;
@@ -3574,13 +3573,13 @@ function Js(s, e, t) {
3574
3573
  const r = e[i];
3575
3574
  if (r && "items" in r) {
3576
3575
  for (let o = 0; o < r.items.length; ++o) {
3577
- const l = Js(Object.freeze(s.concat([[i, o]])), r.items[o], t);
3576
+ const l = Vs(Object.freeze(s.concat([[i, o]])), r.items[o], t);
3578
3577
  if (typeof l == "number")
3579
3578
  o = l - 1;
3580
3579
  else {
3581
- if (l === kt)
3582
- return kt;
3583
- l === Vs && (r.items.splice(o, 1), o -= 1);
3580
+ if (l === wt)
3581
+ return wt;
3582
+ l === Us && (r.items.splice(o, 1), o -= 1);
3584
3583
  }
3585
3584
  }
3586
3585
  typeof n == "function" && i === "key" && (n = n(e, s));
@@ -3588,8 +3587,8 @@ function Js(s, e, t) {
3588
3587
  }
3589
3588
  return typeof n == "function" ? n(e, s) : n;
3590
3589
  }
3591
- const st = "\uFEFF", nt = "", it = "", Le = "", fi = (s) => !!s && "items" in s, ui = (s) => !!s && (s.type === "scalar" || s.type === "single-quoted-scalar" || s.type === "double-quoted-scalar" || s.type === "block-scalar");
3592
- function hi(s) {
3590
+ const st = "\uFEFF", nt = "", it = "", Le = "", ci = (s) => !!s && "items" in s, fi = (s) => !!s && (s.type === "scalar" || s.type === "single-quoted-scalar" || s.type === "double-quoted-scalar" || s.type === "block-scalar");
3591
+ function ui(s) {
3593
3592
  switch (s) {
3594
3593
  case st:
3595
3594
  return "<BOM>";
@@ -3603,7 +3602,7 @@ function hi(s) {
3603
3602
  return JSON.stringify(s);
3604
3603
  }
3605
3604
  }
3606
- function Qs(s) {
3605
+ function Js(s) {
3607
3606
  switch (s) {
3608
3607
  case st:
3609
3608
  return "byte-order-mark";
@@ -3664,20 +3663,20 @@ function Qs(s) {
3664
3663
  }
3665
3664
  return null;
3666
3665
  }
3667
- const di = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3666
+ const hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3668
3667
  __proto__: null,
3669
3668
  BOM: st,
3670
3669
  DOCUMENT: nt,
3671
3670
  FLOW_END: it,
3672
3671
  SCALAR: Le,
3673
- createScalarToken: ri,
3674
- isCollection: fi,
3675
- isScalar: ui,
3676
- prettyToken: hi,
3677
- resolveAsScalar: ii,
3678
- setScalarValue: oi,
3679
- stringify: ai,
3680
- tokenType: Qs,
3672
+ createScalarToken: ii,
3673
+ isCollection: ci,
3674
+ isScalar: fi,
3675
+ prettyToken: ui,
3676
+ resolveAsScalar: ni,
3677
+ setScalarValue: ri,
3678
+ stringify: li,
3679
+ tokenType: Js,
3681
3680
  visit: se
3682
3681
  }, Symbol.toStringTag, { value: "Module" }));
3683
3682
  function U(s) {
@@ -3693,9 +3692,9 @@ function U(s) {
3693
3692
  return !1;
3694
3693
  }
3695
3694
  }
3696
- const zt = new Set("0123456789ABCDEFabcdef"), pi = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), je = new Set(",[]{}"), mi = new Set(` ,[]{}
3697
- \r `), mt = (s) => !s || mi.has(s);
3698
- class Ys {
3695
+ const Ht = new Set("0123456789ABCDEFabcdef"), di = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), je = new Set(",[]{}"), pi = new Set(` ,[]{}
3696
+ \r `), dt = (s) => !s || pi.has(s);
3697
+ class Qs {
3699
3698
  constructor() {
3700
3699
  this.atEnd = !1, this.blockScalarIndent = -1, this.blockScalarKeep = !1, this.buffer = "", this.flowKey = !1, this.flowLevel = 0, this.indentNext = 0, this.indentValue = 0, this.lineEndPos = null, this.next = null, this.pos = 0;
3701
3700
  }
@@ -3855,7 +3854,7 @@ class Ys {
3855
3854
  case "]":
3856
3855
  return yield* d(this.pushCount(1)), "doc";
3857
3856
  case "*":
3858
- return yield* d(this.pushUntil(mt)), "doc";
3857
+ return yield* d(this.pushUntil(dt)), "doc";
3859
3858
  case '"':
3860
3859
  case "'":
3861
3860
  return yield* d(this.parseQuotedScalar());
@@ -3891,7 +3890,7 @@ class Ys {
3891
3890
  case "]":
3892
3891
  return yield* d(this.pushCount(1)), this.flowKey = !0, this.flowLevel -= 1, this.flowLevel ? "flow" : "doc";
3893
3892
  case "*":
3894
- return yield* d(this.pushUntil(mt)), "flow";
3893
+ return yield* d(this.pushUntil(dt)), "flow";
3895
3894
  case '"':
3896
3895
  case "'":
3897
3896
  return this.flowKey = !0, yield* d(this.parseQuotedScalar());
@@ -4057,7 +4056,7 @@ class Ys {
4057
4056
  case "!":
4058
4057
  return (yield* d(this.pushTag())) + (yield* d(this.pushSpaces(!0))) + (yield* d(this.pushIndicators()));
4059
4058
  case "&":
4060
- return (yield* d(this.pushUntil(mt))) + (yield* d(this.pushSpaces(!0))) + (yield* d(this.pushIndicators()));
4059
+ return (yield* d(this.pushUntil(dt))) + (yield* d(this.pushSpaces(!0))) + (yield* d(this.pushIndicators()));
4061
4060
  case "-":
4062
4061
  case "?":
4063
4062
  case ":": {
@@ -4077,9 +4076,9 @@ class Ys {
4077
4076
  } else {
4078
4077
  let e = this.pos + 1, t = this.buffer[e];
4079
4078
  for (; t; )
4080
- if (pi.has(t))
4079
+ if (di.has(t))
4081
4080
  t = this.buffer[++e];
4082
- else if (t === "%" && zt.has(this.buffer[e + 1]) && zt.has(this.buffer[e + 2]))
4081
+ else if (t === "%" && Ht.has(this.buffer[e + 1]) && Ht.has(this.buffer[e + 2]))
4083
4082
  t = this.buffer[e += 3];
4084
4083
  else
4085
4084
  break;
@@ -4107,7 +4106,7 @@ class Ys {
4107
4106
  return yield* d(this.pushToIndex(t, !1));
4108
4107
  }
4109
4108
  }
4110
- class Gs {
4109
+ class Ys {
4111
4110
  constructor() {
4112
4111
  this.lineStarts = [], this.addNewLine = (e) => this.lineStarts.push(e), this.linePos = (e) => {
4113
4112
  let t = 0, n = this.lineStarts.length;
@@ -4124,13 +4123,13 @@ class Gs {
4124
4123
  };
4125
4124
  }
4126
4125
  }
4127
- function X(s, e) {
4126
+ function x(s, e) {
4128
4127
  for (let t = 0; t < s.length; ++t)
4129
4128
  if (s[t].type === e)
4130
4129
  return !0;
4131
4130
  return !1;
4132
4131
  }
4133
- function xt(s) {
4132
+ function zt(s) {
4134
4133
  for (let e = 0; e < s.length; ++e)
4135
4134
  switch (s[e].type) {
4136
4135
  case "space":
@@ -4142,7 +4141,7 @@ function xt(s) {
4142
4141
  }
4143
4142
  return -1;
4144
4143
  }
4145
- function Ws(s) {
4144
+ function Gs(s) {
4146
4145
  switch (s == null ? void 0 : s.type) {
4147
4146
  case "alias":
4148
4147
  case "scalar":
@@ -4191,15 +4190,15 @@ function oe(s) {
4191
4190
  function Xt(s) {
4192
4191
  if (s.start.type === "flow-seq-start")
4193
4192
  for (const e of s.items)
4194
- e.sep && !e.value && !X(e.start, "explicit-key-ind") && !X(e.sep, "map-value-ind") && (e.key && (e.value = e.key), delete e.key, Ws(e.value) ? e.value.end ? Array.prototype.push.apply(e.value.end, e.sep) : e.value.end = e.sep : Array.prototype.push.apply(e.start, e.sep), delete e.sep);
4193
+ e.sep && !e.value && !x(e.start, "explicit-key-ind") && !x(e.sep, "map-value-ind") && (e.key && (e.value = e.key), delete e.key, Gs(e.value) ? e.value.end ? Array.prototype.push.apply(e.value.end, e.sep) : e.value.end = e.sep : Array.prototype.push.apply(e.start, e.sep), delete e.sep);
4195
4194
  }
4196
- class Pt {
4195
+ class Bt {
4197
4196
  /**
4198
4197
  * @param onNewLine - If defined, called separately with the start position of
4199
4198
  * each new line (in `parse()`, including the start of input).
4200
4199
  */
4201
4200
  constructor(e) {
4202
- this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new Ys(), this.onNewLine = e;
4201
+ this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new Qs(), this.onNewLine = e;
4203
4202
  }
4204
4203
  /**
4205
4204
  * Parse `source` as a YAML stream.
@@ -4223,7 +4222,7 @@ class Pt {
4223
4222
  this.atScalar = !1, yield* d(this.step()), this.offset += e.length;
4224
4223
  return;
4225
4224
  }
4226
- const t = Qs(e);
4225
+ const t = Js(e);
4227
4226
  if (t)
4228
4227
  if (t === "scalar")
4229
4228
  this.atNewLine = !1, this.atScalar = !0, this.type = "scalar";
@@ -4347,7 +4346,7 @@ class Pt {
4347
4346
  }
4348
4347
  if ((n.type === "document" || n.type === "block-map" || n.type === "block-seq") && (t.type === "block-map" || t.type === "block-seq")) {
4349
4348
  const i = t.items[t.items.length - 1];
4350
- i && !i.sep && !i.value && i.start.length > 0 && xt(i.start) === -1 && (t.indent === 0 || i.start.every((r) => r.type !== "comment" || r.indent < t.indent)) && (n.type === "document" ? n.end = i.start : n.items.push({ start: i.start }), t.items.splice(-1, 1));
4349
+ i && !i.sep && !i.value && i.start.length > 0 && zt(i.start) === -1 && (t.indent === 0 || i.start.every((r) => r.type !== "comment" || r.indent < t.indent)) && (n.type === "document" ? n.end = i.start : n.items.push({ start: i.start }), t.items.splice(-1, 1));
4351
4350
  }
4352
4351
  }
4353
4352
  }
@@ -4385,7 +4384,7 @@ class Pt {
4385
4384
  return yield* d(this.lineEnd(e));
4386
4385
  switch (this.type) {
4387
4386
  case "doc-start": {
4388
- xt(e.start) !== -1 ? (yield* d(this.pop()), yield* d(this.step())) : e.start.push(this.sourceToken);
4387
+ zt(e.start) !== -1 ? (yield* d(this.pop()), yield* d(this.step())) : e.start.push(this.sourceToken);
4389
4388
  return;
4390
4389
  }
4391
4390
  case "anchor":
@@ -4509,14 +4508,14 @@ class Pt {
4509
4508
  if (t.sep)
4510
4509
  if (t.value)
4511
4510
  e.items.push({ start: [], key: null, sep: [this.sourceToken] });
4512
- else if (X(t.sep, "map-value-ind"))
4511
+ else if (x(t.sep, "map-value-ind"))
4513
4512
  this.stack.push({
4514
4513
  type: "block-map",
4515
4514
  offset: this.offset,
4516
4515
  indent: this.indent,
4517
4516
  items: [{ start: o, key: null, sep: [this.sourceToken] }]
4518
4517
  });
4519
- else if (Ws(t.key) && !X(t.sep, "newline")) {
4518
+ else if (Gs(t.key) && !x(t.sep, "newline")) {
4520
4519
  const l = oe(t.start), a = t.key, c = t.sep;
4521
4520
  c.push(this.sourceToken), delete t.key, delete t.sep, this.stack.push({
4522
4521
  type: "block-map",
@@ -4526,7 +4525,7 @@ class Pt {
4526
4525
  });
4527
4526
  } else
4528
4527
  o.length > 0 ? t.sep = t.sep.concat(o, this.sourceToken) : t.sep.push(this.sourceToken);
4529
- else if (X(t.start, "newline"))
4528
+ else if (x(t.start, "newline"))
4530
4529
  Object.assign(t, { key: null, sep: [this.sourceToken] });
4531
4530
  else {
4532
4531
  const l = oe(t.start);
@@ -4538,7 +4537,7 @@ class Pt {
4538
4537
  });
4539
4538
  }
4540
4539
  else
4541
- t.sep ? t.value || r ? e.items.push({ start: o, key: null, sep: [this.sourceToken] }) : X(t.sep, "map-value-ind") ? this.stack.push({
4540
+ t.sep ? t.value || r ? e.items.push({ start: o, key: null, sep: [this.sourceToken] }) : x(t.sep, "map-value-ind") ? this.stack.push({
4542
4541
  type: "block-map",
4543
4542
  offset: this.offset,
4544
4543
  indent: this.indent,
@@ -4600,7 +4599,7 @@ class Pt {
4600
4599
  case "seq-item-ind":
4601
4600
  if (this.indent !== e.indent)
4602
4601
  break;
4603
- t.value || X(t.start, "seq-item-ind") ? e.items.push({ start: [this.sourceToken] }) : t.start.push(this.sourceToken);
4602
+ t.value || x(t.start, "seq-item-ind") ? e.items.push({ start: [this.sourceToken] }) : t.start.push(this.sourceToken);
4604
4603
  return;
4605
4604
  }
4606
4605
  if (this.indent > e.indent) {
@@ -4765,19 +4764,19 @@ class Pt {
4765
4764
  }
4766
4765
  }
4767
4766
  }
4768
- function Hs(s) {
4767
+ function Ws(s) {
4769
4768
  const e = s.prettyErrors !== !1;
4770
- return { lineCounter: s.lineCounter || e && new Gs() || null, prettyErrors: e };
4769
+ return { lineCounter: s.lineCounter || e && new Ys() || null, prettyErrors: e };
4771
4770
  }
4772
- function yi(s, e = {}) {
4773
- const { lineCounter: t, prettyErrors: n } = Hs(e), i = new Pt(t == null ? void 0 : t.addNewLine), r = new jt(e), o = Array.from(r.compose(i.parse(s)));
4771
+ function mi(s, e = {}) {
4772
+ const { lineCounter: t, prettyErrors: n } = Ws(e), i = new Bt(t == null ? void 0 : t.addNewLine), r = new vt(e), o = Array.from(r.compose(i.parse(s)));
4774
4773
  if (n && t)
4775
4774
  for (const l of o)
4776
4775
  l.errors.forEach(Ve(s, t)), l.warnings.forEach(Ve(s, t));
4777
4776
  return o.length > 0 ? o : Object.assign([], { empty: !0 }, r.streamInfo());
4778
4777
  }
4779
- function zs(s, e = {}) {
4780
- const { lineCounter: t, prettyErrors: n } = Hs(e), i = new Pt(t == null ? void 0 : t.addNewLine), r = new jt(e);
4778
+ function Hs(s, e = {}) {
4779
+ const { lineCounter: t, prettyErrors: n } = Ws(e), i = new Bt(t == null ? void 0 : t.addNewLine), r = new vt(e);
4781
4780
  let o = null;
4782
4781
  for (const l of r.compose(i.parse(s), !0, s.length))
4783
4782
  if (!o)
@@ -4788,20 +4787,20 @@ function zs(s, e = {}) {
4788
4787
  }
4789
4788
  return n && t && (o.errors.forEach(Ve(s, t)), o.warnings.forEach(Ve(s, t))), o;
4790
4789
  }
4791
- function gi(s, e, t) {
4790
+ function yi(s, e, t) {
4792
4791
  let n;
4793
4792
  typeof e == "function" ? n = e : t === void 0 && e && typeof e == "object" && (t = e);
4794
- const i = zs(s, t);
4793
+ const i = Hs(s, t);
4795
4794
  if (!i)
4796
4795
  return null;
4797
- if (i.warnings.forEach((r) => gs(i.options.logLevel, r)), i.errors.length > 0) {
4796
+ if (i.warnings.forEach((r) => ys(i.options.logLevel, r)), i.errors.length > 0) {
4798
4797
  if (i.options.logLevel !== "silent")
4799
4798
  throw i.errors[0];
4800
4799
  i.errors = [];
4801
4800
  }
4802
4801
  return i.toJS(Object.assign({ reviver: n }, t));
4803
4802
  }
4804
- function bi(s, e, t) {
4803
+ function gi(s, e, t) {
4805
4804
  var i;
4806
4805
  let n = null;
4807
4806
  if (typeof e == "function" || Array.isArray(e) ? n = e : t === void 0 && e && (t = e), typeof t == "string" && (t = t.length), typeof t == "number") {
@@ -4815,23 +4814,23 @@ function bi(s, e, t) {
4815
4814
  }
4816
4815
  return new ke(s, n, t).toString(t);
4817
4816
  }
4818
- const Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4817
+ const xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4819
4818
  __proto__: null,
4820
4819
  Alias: Ye,
4821
- CST: di,
4822
- Composer: jt,
4820
+ CST: hi,
4821
+ Composer: vt,
4823
4822
  Document: ke,
4824
- Lexer: Ys,
4825
- LineCounter: Gs,
4823
+ Lexer: Qs,
4824
+ LineCounter: Ys,
4826
4825
  Pair: j,
4827
- Parser: Pt,
4826
+ Parser: Bt,
4828
4827
  Scalar: N,
4829
4828
  Schema: tt,
4830
- YAMLError: vt,
4829
+ YAMLError: _t,
4831
4830
  YAMLMap: K,
4832
4831
  YAMLParseError: te,
4833
4832
  YAMLSeq: z,
4834
- YAMLWarning: js,
4833
+ YAMLWarning: Bs,
4835
4834
  isAlias: ne,
4836
4835
  isCollection: $,
4837
4836
  isDocument: ye,
@@ -4840,13 +4839,13 @@ const Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4840
4839
  isPair: E,
4841
4840
  isScalar: A,
4842
4841
  isSeq: be,
4843
- parse: gi,
4844
- parseAllDocuments: yi,
4845
- parseDocument: zs,
4846
- stringify: bi,
4842
+ parse: yi,
4843
+ parseAllDocuments: mi,
4844
+ parseDocument: Hs,
4845
+ stringify: gi,
4847
4846
  visit: H,
4848
4847
  visitAsync: Qe
4849
- }, Symbol.toStringTag, { value: "Module" })), wi = `# This is your query - you can modify it directly and click Run to see new results.
4848
+ }, Symbol.toStringTag, { value: "Module" })), bi = `# This is your query - you can modify it directly and click Run to see new results.
4850
4849
  # Try uncommenting the elements below
4851
4850
  # To learn more about the query syntax, visit [Doc URL]
4852
4851
  ---
@@ -4888,40 +4887,40 @@ model: {{dataSourceTitle}}
4888
4887
  # - name: Dimension2
4889
4888
  # - name: Measure1
4890
4889
  # - name: Measure2`;
4891
- class _i {
4890
+ class Ci {
4892
4891
  /**
4893
- * Constructor for QueryTranslator.
4894
- *
4895
- * @param contextTitle - The context title
4896
- * @param fields - The data source fields
4897
- */
4892
+ * Constructor for QueryTranslator.
4893
+ *
4894
+ * @param contextTitle - The context title
4895
+ * @param fields - The data source fields
4896
+ */
4898
4897
  constructor(e, t) {
4899
- lt(this, "contextTitle");
4900
- lt(this, "indexedFields", {});
4901
- this.contextTitle = e, this.indexedFields = this.indexFields(t);
4898
+ this.indexedFields = {}, this.contextTitle = e, this.indexedFields = this.indexFields(t);
4902
4899
  }
4903
4900
  indexFields(e) {
4904
4901
  return e.reduce((t, n) => {
4905
4902
  const i = n.id;
4906
4903
  t[i] = n;
4907
- const r = tn(i);
4908
- return i !== r && (t[r] = G(R({}, n), { id: r })), t;
4904
+ const r = en(i);
4905
+ return i !== r && (t[r] = G(R({}, n), {
4906
+ id: r
4907
+ })), t;
4909
4908
  }, {});
4910
4909
  }
4911
4910
  /**
4912
- * Concatenates Aggregation Types.
4913
- */
4911
+ * Concatenates Aggregation Types.
4912
+ */
4914
4913
  concatAggTypes() {
4915
- return Object.values(cn).map((t) => on.aggregationToJAQL(t)).join("|");
4914
+ return Object.values(an).map((t) => rn.aggregationToJAQL(t)).join("|");
4916
4915
  }
4917
4916
  /**
4918
- * Simplifies Aggregation Formula defined in MetadataItemJaql returned from chat response.
4919
- *
4920
- * @param aggFormula - The Aggregation Formula to simplify
4921
- * @returns The equivalent measure
4922
- * @privateRemarks
4923
- * See unit tests for examples of aggregation formulas and their equivalent measures.
4924
- */
4917
+ * Simplifies Aggregation Formula defined in MetadataItemJaql returned from chat response.
4918
+ *
4919
+ * @param aggFormula - The Aggregation Formula to simplify
4920
+ * @returns The equivalent measure
4921
+ * @privateRemarks
4922
+ * See unit tests for examples of aggregation formulas and their equivalent measures.
4923
+ */
4925
4924
  simplifyAggFormula(e) {
4926
4925
  const { formula: t, context: n, filter: i } = e;
4927
4926
  if (!n || !t)
@@ -4942,11 +4941,11 @@ class _i {
4942
4941
  return e;
4943
4942
  }
4944
4943
  /**
4945
- * Simplifies MetadataItemJaql.
4946
- *
4947
- * @param item - The MetadataItemJaql to simplify
4948
- * @returns The simplified MetadataItemJaql
4949
- */
4944
+ * Simplifies MetadataItemJaql.
4945
+ *
4946
+ * @param item - The MetadataItemJaql to simplify
4947
+ * @returns The simplified MetadataItemJaql
4948
+ */
4950
4949
  simplifyMetadataItemJaql(e) {
4951
4950
  let t = e;
4952
4951
  if ("formula" in e && (t = this.simplifyAggFormula(e)), delete t.table, delete t.column, delete t.datatype, "context" in t) {
@@ -4958,11 +4957,11 @@ class _i {
4958
4957
  return t;
4959
4958
  }
4960
4959
  /**
4961
- * Simplify filter
4962
- *
4963
- * @param item - the MetadataItem
4964
- * @return the MetadataItem with simplified filter
4965
- */
4960
+ * Simplify filter
4961
+ *
4962
+ * @param item - the MetadataItem
4963
+ * @return the MetadataItem with simplified filter
4964
+ */
4966
4965
  simplifyMetadataItemFilter(e) {
4967
4966
  var i;
4968
4967
  const t = e;
@@ -4970,30 +4969,39 @@ class _i {
4970
4969
  return t;
4971
4970
  delete t.format;
4972
4971
  const { jaql: n } = t;
4973
- return (i = n.filter) != null && i.by && (n.filter.by = this.simplifyAggFormula(n.filter.by)), G(R({}, t), { jaql: n });
4972
+ return (i = n.filter) != null && i.by && (n.filter.by = this.simplifyAggFormula(n.filter.by)), G(R({}, t), {
4973
+ jaql: n
4974
+ });
4974
4975
  }
4975
4976
  /**
4976
- * Simplify date and number format
4977
- *
4978
- * @param item - the MetadataItem
4979
- * @return the MetadataItem with simplified format
4980
- */
4977
+ * Simplify date and number format
4978
+ *
4979
+ * @param item - the MetadataItem
4980
+ * @return the MetadataItem with simplified format
4981
+ */
4981
4982
  simplifyMetadataItemFormat(e) {
4982
- const {
4983
- jaql: { level: t },
4984
- format: { mask: n } = {}
4985
- } = e;
4986
- return t && (n != null && n[t]) ? G(R({}, e), { format: { mask: { [t]: n[t] } } }) : e;
4983
+ const { jaql: { level: t }, format: { mask: n } = {} } = e;
4984
+ return t && (n != null && n[t]) ? G(R({}, e), {
4985
+ format: {
4986
+ mask: {
4987
+ [t]: n[t]
4988
+ }
4989
+ }
4990
+ }) : e;
4987
4991
  }
4988
4992
  /**
4989
- * Simplifies MetadataItem.
4990
- *
4991
- * @param item - The MetadataItem to simplify
4992
- * @returns The simplified MetadataItem
4993
- */
4993
+ * Simplifies MetadataItem.
4994
+ *
4995
+ * @param item - The MetadataItem to simplify
4996
+ * @returns The simplified MetadataItem
4997
+ */
4994
4998
  simplifyMetadataItem(e) {
4995
4999
  let t = e;
4996
- t.panel && ["rows", "columns", "measures"].includes(t.panel) && delete t.panel, t = this.simplifyMetadataItemFilter(t), t = this.simplifyMetadataItemFormat(t);
5000
+ t.panel && [
5001
+ "rows",
5002
+ "columns",
5003
+ "measures"
5004
+ ].includes(t.panel) && delete t.panel, t = this.simplifyMetadataItemFilter(t), t = this.simplifyMetadataItemFormat(t);
4997
5005
  const { jaql: n, measure: i, by: r } = t;
4998
5006
  return G(R({}, t), {
4999
5007
  jaql: this.simplifyMetadataItemJaql(n),
@@ -5002,37 +5010,41 @@ class _i {
5002
5010
  });
5003
5011
  }
5004
5012
  /**
5005
- * Simplifies Chart Recommendations.
5006
- *
5007
- * @param chartRecommendations - The Chart Recommendations to simplify
5008
- * @returns The simplified chart data options
5009
- */
5013
+ * Simplifies Chart Recommendations.
5014
+ *
5015
+ * @param chartRecommendations - The Chart Recommendations to simplify
5016
+ * @returns The simplified chart data options
5017
+ */
5010
5018
  simplifyChartRecommendations(e) {
5011
5019
  if (!("axesMapping" in e))
5012
5020
  return {};
5013
- const { chartType: t, axesMapping: n, styleOptions: i } = e, r = Object.entries(n).reduce((o, [l, a]) => (o[l] = a.map((c) => ln(c)), o), {});
5014
- return { chartType: t, dataOptions: r, styleOptions: i };
5021
+ const { chartType: t, axesMapping: n, styleOptions: i } = e, r = Object.entries(n).reduce((o, [l, a]) => (o[l] = a.map((c) => on(c)), o), {});
5022
+ return {
5023
+ chartType: t,
5024
+ dataOptions: r,
5025
+ styleOptions: i
5026
+ };
5015
5027
  }
5016
5028
  /**
5017
- * Returns the query title with the chart type.
5018
- *
5019
- * @param queryTitle - The query title
5020
- * @param chartRecommendations - The chart recommendations
5021
- * @returns The query title with the chart type
5022
- */
5029
+ * Returns the query title with the chart type.
5030
+ *
5031
+ * @param queryTitle - The query title
5032
+ * @param chartRecommendations - The chart recommendations
5033
+ * @returns The query title with the chart type
5034
+ */
5023
5035
  getQueryTitleWithChartType(e, t) {
5024
5036
  let n = "chartType" in t ? t.chartType : "table";
5025
5037
  return n !== "table" && (n += " chart"), `${n} showing ${e.toLowerCase()}`;
5026
5038
  }
5027
5039
  /**
5028
- * Takes a ExpandedQueryModel (e.g., from chat response) and translates it to SimpleQueryModel.
5029
- *
5030
- * @param expandedQueryModel - The Expanded Query model to simplify
5031
- * @returns The simplified query model
5032
- */
5040
+ * Takes a ExpandedQueryModel (e.g., from chat response) and translates it to SimpleQueryModel.
5041
+ *
5042
+ * @param expandedQueryModel - The Expanded Query model to simplify
5043
+ * @returns The simplified query model
5044
+ */
5033
5045
  translateToSimple(e) {
5034
5046
  try {
5035
- const { jaql: t, chartRecommendations: n, queryTitle: i } = Rt(e);
5047
+ const { jaql: t, chartRecommendations: n, queryTitle: i } = Ft(e);
5036
5048
  return {
5037
5049
  model: t.datasource.title,
5038
5050
  metadata: t.metadata.map((r) => this.simplifyMetadataItem(r)),
@@ -5040,59 +5052,66 @@ class _i {
5040
5052
  queryTitle: this.getQueryTitleWithChartType(i, n)
5041
5053
  };
5042
5054
  } catch (t) {
5043
- return console.error("Error running toSimpleQuery", t), Ft;
5055
+ return console.error("Error running toSimpleQuery", t), qt;
5044
5056
  }
5045
5057
  }
5046
5058
  /**
5047
- * Stringifies a simple query model to YAML string.
5048
- *
5049
- * @param simpleQueryModel - The Simple Query model to convert
5050
- * @returns The YAML string representing the simple query model
5051
- */
5059
+ * Stringifies a simple query model to YAML string.
5060
+ *
5061
+ * @param simpleQueryModel - The Simple Query model to convert
5062
+ * @returns The YAML string representing the simple query model
5063
+ */
5052
5064
  stringifySimple(e) {
5053
- const r = e, { queryTitle: t } = r, n = qt(r, ["queryTitle"]), i = new Zt.Document(n);
5054
- return i.commentBefore = ` ${sn(t)}`, i.directives && (i.directives.docStart = !0), String(i);
5065
+ const r = e, { queryTitle: t } = r, n = Kt(r, ["queryTitle"]), i = new xt.Document(n);
5066
+ return i.commentBefore = ` ${tn(t)}`, i.directives && (i.directives.docStart = !0), String(i);
5055
5067
  }
5056
5068
  /**
5057
- * Returns the query template.
5058
- */
5069
+ * Returns the query template.
5070
+ */
5059
5071
  getQueryTemplate() {
5060
- return nn(wi, { dataSourceTitle: this.contextTitle });
5072
+ return sn(bi, {
5073
+ dataSourceTitle: this.contextTitle
5074
+ });
5061
5075
  }
5062
5076
  /**
5063
- * Parses a YAML string to Simple Query Model.
5064
- *
5065
- * @param simpleQueryYaml - The YAML string to parse
5066
- * @returns The Simple Query Model
5067
- */
5077
+ * Parses a YAML string to Simple Query Model.
5078
+ *
5079
+ * @param simpleQueryYaml - The YAML string to parse
5080
+ * @returns The Simple Query Model
5081
+ */
5068
5082
  parseSimple(e) {
5069
5083
  try {
5070
- const t = Zt.parseDocument(e), { commentBefore: n } = t, i = rn(t.toJS());
5084
+ const t = xt.parseDocument(e), { commentBefore: n } = t, i = nn(t.toJS());
5071
5085
  return i.queryTitle = (n == null ? void 0 : n.trim()) || "", i;
5072
5086
  } catch (t) {
5073
5087
  console.error("Error parsing the YAML string", t);
5074
5088
  }
5075
- return Ft;
5089
+ return qt;
5076
5090
  }
5077
5091
  /**
5078
- * Expands Chart Recommendations.
5079
- *
5080
- * @param chartRecommendations - The Chart Recommendations to expand
5081
- * @returns The expanded chart recommendations
5082
- */
5092
+ * Expands Chart Recommendations.
5093
+ *
5094
+ * @param chartRecommendations - The Chart Recommendations to expand
5095
+ * @returns The expanded chart recommendations
5096
+ */
5083
5097
  expandChartRecommendations(e) {
5084
5098
  if (!e || !("dataOptions" in e))
5085
5099
  return {};
5086
5100
  const { chartType: t, dataOptions: n, styleOptions: i } = e;
5087
- return { chartFamily: an(t), chartType: t, axesMapping: n, styleOptions: i };
5101
+ return {
5102
+ chartFamily: ln(t),
5103
+ chartType: t,
5104
+ axesMapping: n,
5105
+ styleOptions: i
5106
+ };
5088
5107
  }
5089
5108
  /**
5090
- * Expands MetadataItemJaql by adding table, column, datatype, and title
5091
- * if they are missing from the item.
5092
- *
5093
- * @param item - The MetadataItemJaql to expand
5094
- * @returns The expanded MetadataItemJaql
5095
- */
5109
+ * Expands MetadataItemJaql by adding table, column, datatype, and title
5110
+ * if they are missing from the item.
5111
+ *
5112
+ * @param item - The MetadataItemJaql to expand
5113
+ * @returns The expanded MetadataItemJaql
5114
+ */
5096
5115
  expandMetadataItemJaql(e) {
5097
5116
  const { dim: t = "", agg: n, context: i } = e;
5098
5117
  i && (Object.keys(i).forEach((l) => {
@@ -5102,7 +5121,9 @@ class _i {
5102
5121
  if (!r)
5103
5122
  return e;
5104
5123
  let { filter: o } = e;
5105
- return o != null && o.by && (o = G(R({}, o), { by: this.expandMetadataItemJaql(o.by) }), e.filter = o), R({
5124
+ return o != null && o.by && (o = G(R({}, o), {
5125
+ by: this.expandMetadataItemJaql(o.by)
5126
+ }), e.filter = o), R({
5106
5127
  table: r.table,
5107
5128
  column: r.column,
5108
5129
  datatype: r.dimtype,
@@ -5110,11 +5131,11 @@ class _i {
5110
5131
  }, e);
5111
5132
  }
5112
5133
  /**
5113
- * Expands MetadataItem
5114
- *
5115
- * @param item - The MetadataItem to expand
5116
- * @returns The expanded MetadataItem
5117
- */
5134
+ * Expands MetadataItem
5135
+ *
5136
+ * @param item - The MetadataItem to expand
5137
+ * @returns The expanded MetadataItem
5138
+ */
5118
5139
  expandMetadataItem(e) {
5119
5140
  const { jaql: t, measure: n } = e;
5120
5141
  return n ? G(R({}, e), {
@@ -5125,58 +5146,58 @@ class _i {
5125
5146
  });
5126
5147
  }
5127
5148
  /**
5128
- * Translates a Simple Query Model to Expanded Query Model.
5129
- *
5130
- * @param simpleQueryModel - The Simple Query model to convert
5131
- * @returns The Expanded Query Model
5132
- */
5149
+ * Translates a Simple Query Model to Expanded Query Model.
5150
+ *
5151
+ * @param simpleQueryModel - The Simple Query model to convert
5152
+ * @returns The Expanded Query Model
5153
+ */
5133
5154
  translateToExpanded(e) {
5134
- const { model: t, metadata: n, chart: i, queryTitle: r } = Rt(e), o = {
5135
- datasource: { title: t },
5155
+ const { model: t, metadata: n, chart: i, queryTitle: r } = Ft(e), o = {
5156
+ datasource: {
5157
+ title: t
5158
+ },
5136
5159
  metadata: n.map((a) => this.expandMetadataItem(a))
5137
5160
  }, l = this.expandChartRecommendations(i);
5138
- return { jaql: o, chartRecommendations: l, queryTitle: r };
5161
+ return {
5162
+ jaql: o,
5163
+ chartRecommendations: l,
5164
+ queryTitle: r
5165
+ };
5139
5166
  }
5140
5167
  }
5141
- const Mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5168
+ const _i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5142
5169
  __proto__: null
5143
- }, Symbol.toStringTag, { value: "Module" })), Si = "executeQueryTmpl", ki = "executePivotQueryTmpl", Ni = (s, e, t) => {
5144
- const n = es(s), i = {
5145
- dataSourceString: ts(s.dataSource),
5170
+ }, Symbol.toStringTag, { value: "Module" })), wi = "executeQueryTmpl", Si = "executePivotQueryTmpl", ki = (s, e, t) => {
5171
+ const n = Zt(s), i = {
5172
+ dataSourceString: es(s.dataSource),
5146
5173
  dimensionsString: Te(s.dimensions || []),
5147
5174
  measuresString: Te(s.measures || []),
5148
- filtersString: ss(s.filters),
5175
+ filtersString: ts(s.filters),
5149
5176
  highlightsString: Te(s.highlights || []),
5150
- extraImportsString: ns(s.filters || [], n)
5177
+ extraImportsString: ss(s.filters || [], n)
5151
5178
  };
5152
- return is(t, i, e);
5153
- }, Oi = (s, e, t) => {
5154
- const n = es(s), i = {
5155
- dataSourceString: ts(s.dataSource),
5179
+ return ns(t, i, e);
5180
+ }, Ni = (s, e, t) => {
5181
+ const n = Zt(s), i = {
5182
+ dataSourceString: es(s.dataSource),
5156
5183
  rowsString: Te(s.rows || []),
5157
5184
  valuesString: Te(s.values || []),
5158
- filtersString: ss(s.filters),
5159
- extraImportsString: ns(s.filters || [], n)
5185
+ filtersString: ts(s.filters),
5186
+ extraImportsString: ss(s.filters || [], n)
5160
5187
  };
5161
- return is(t, i, e);
5162
- }, Ti = ({
5163
- queryParams: s,
5164
- uiFramework: e = "react"
5165
- }) => Ni(s, e, Si), Ii = ({
5166
- pivotQueryParams: s,
5167
- uiFramework: e = "react"
5168
- }) => Oi(s, e, ki), Ai = (s) => Ti(s), Ei = (s) => Ii(s), vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5188
+ return ns(t, i, e);
5189
+ }, Oi = ({ queryParams: s, uiFramework: e = "react" }) => ki(s, e, wi), Ti = ({ pivotQueryParams: s, uiFramework: e = "react" }) => Ni(s, e, Si), Ii = (s) => Oi(s), Ai = (s) => Ti(s), Mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5169
5190
  __proto__: null,
5170
- toExecutePivotQueryCode: Ei,
5171
- toExecuteQueryCode: Ai
5191
+ toExecutePivotQueryCode: Ai,
5192
+ toExecuteQueryCode: Ii
5172
5193
  }, Symbol.toStringTag, { value: "Module" }));
5173
5194
  export {
5174
- Pi as EMPTY_EXPANDED_QUERY_MODEL,
5175
- Ft as EMPTY_SIMPLE_QUERY_MODEL,
5176
- _i as QueryTranslator,
5177
- Mi as dashboardComposer,
5178
- vi as executeQueryComposer,
5179
- Di as isByIdWidgetCodeParams,
5180
- Ki as isClientSideWidgetCodeParams,
5181
- qi as widgetComposer
5195
+ ji as EMPTY_EXPANDED_QUERY_MODEL,
5196
+ qt as EMPTY_SIMPLE_QUERY_MODEL,
5197
+ Ci as QueryTranslator,
5198
+ _i as dashboardComposer,
5199
+ Mi as executeQueryComposer,
5200
+ Pi as isByIdWidgetCodeParams,
5201
+ Di as isClientSideWidgetCodeParams,
5202
+ Ki as widgetComposer
5182
5203
  };