@rankingcoach/vanguard 1.3.1 → 1.4.2

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 (340) hide show
  1. package/dist/index-AMPMMidnightParser.js +1 -1
  2. package/dist/index-AMPMParser.js +1 -1
  3. package/dist/index-Accordion2.js +1 -1
  4. package/dist/index-AccordionDetails.js +1 -1
  5. package/dist/index-AccordionSummary.js +1 -1
  6. package/dist/index-AiGlow.js +1 -1
  7. package/dist/index-AppBar2.js +1 -1
  8. package/dist/index-Autocomplete.js +2 -2
  9. package/dist/index-Autocomplete2.js +1 -1
  10. package/dist/index-Backdrop.js +1 -1
  11. package/dist/index-BasePopper.js +1 -1
  12. package/dist/index-Box.js +1 -1
  13. package/dist/index-Button2.js +1 -1
  14. package/dist/index-ButtonBase.js +1 -1
  15. package/dist/index-CSSTransition.js +1 -1
  16. package/dist/index-Calendar.js +20 -20
  17. package/dist/index-CalendarPicker.js +1 -1
  18. package/dist/index-Chip.js +1 -1
  19. package/dist/index-ClickAwayListener.js +1 -1
  20. package/dist/index-ClockPicker.js +1 -1
  21. package/dist/index-Collapse2.js +1 -1
  22. package/dist/index-CreditCard.js +1 -1
  23. package/dist/index-DateInput.js +1 -1
  24. package/dist/index-DateParser.js +1 -1
  25. package/dist/index-DatePicker2.js +1 -1
  26. package/dist/index-DateRange2.js +7 -7
  27. package/dist/index-DateRangePicker2.js +1 -1
  28. package/dist/index-DayCell.js +5 -5
  29. package/dist/index-DayOfYearParser.js +1 -1
  30. package/dist/index-DayParser.js +1 -1
  31. package/dist/index-DayPeriodParser.js +1 -1
  32. package/dist/index-DefaultPropsProvider.js +1 -1
  33. package/dist/index-DefaultPropsProvider2.js +1 -1
  34. package/dist/index-DefinedRange.js +1 -1
  35. package/dist/index-DesktopDatePicker.js +1 -1
  36. package/dist/index-Dialog.js +1 -1
  37. package/dist/index-DialogActions.js +1 -1
  38. package/dist/index-DialogContent.js +1 -1
  39. package/dist/index-Drawer.js +1 -1
  40. package/dist/index-Drawer2.js +1 -1
  41. package/dist/index-EraParser.js +1 -1
  42. package/dist/index-ExtendedYearParser.js +1 -1
  43. package/dist/index-Fade.js +1 -1
  44. package/dist/index-FilledInput.js +1 -1
  45. package/dist/index-FocusTrap.js +1 -1
  46. package/dist/index-FormControl2.js +1 -1
  47. package/dist/index-FormHelperText.js +1 -1
  48. package/dist/index-FormLabel.js +1 -1
  49. package/dist/index-FractionOfSecondParser.js +1 -1
  50. package/dist/index-GlobalStyles.js +1 -1
  51. package/dist/index-GlobalStyles2.js +1 -1
  52. package/dist/index-GlobalStyles3.js +1 -1
  53. package/dist/index-Grid.js +1 -1
  54. package/dist/index-Grow.js +1 -1
  55. package/dist/index-Header.js +1 -1
  56. package/dist/index-Hour0To11Parser.js +1 -1
  57. package/dist/index-Hour0to23Parser.js +1 -1
  58. package/dist/index-Hour1To24Parser.js +1 -1
  59. package/dist/index-Hour1to12Parser.js +1 -1
  60. package/dist/index-ISODayParser.js +1 -1
  61. package/dist/index-ISOTimezoneParser.js +1 -1
  62. package/dist/index-ISOTimezoneWithZParser.js +1 -1
  63. package/dist/index-ISOWeekParser.js +1 -1
  64. package/dist/index-ISOWeekYearParser.js +1 -1
  65. package/dist/index-IconButton2.js +1 -1
  66. package/dist/index-Input2.js +1 -1
  67. package/dist/index-InputAdornment.js +1 -1
  68. package/dist/index-InputBase.js +155 -150
  69. package/dist/index-InputBase2.js +1 -1
  70. package/dist/index-InputLabel.js +1 -1
  71. package/dist/index-LinearProgress.js +1 -1
  72. package/dist/index-List2.js +1 -1
  73. package/dist/index-ListSubheader.js +1 -1
  74. package/dist/index-LocalDayParser.js +1 -1
  75. package/dist/index-LocalWeekParser.js +1 -1
  76. package/dist/index-LocalWeekYearParser.js +1 -1
  77. package/dist/index-LocalizationProvider.js +1 -1
  78. package/dist/index-LoginButton.js +1 -1
  79. package/dist/index-Menu.js +1 -1
  80. package/dist/index-MenuItem.js +1 -1
  81. package/dist/index-MenuList.js +1 -1
  82. package/dist/index-MinuteParser.js +1 -1
  83. package/dist/index-MobileDatePicker.js +1 -1
  84. package/dist/index-Modal2.js +1 -1
  85. package/dist/index-Month.js +9 -9
  86. package/dist/index-MonthParser.js +1 -1
  87. package/dist/index-MonthPicker.js +1 -1
  88. package/dist/index-NativeSelectInput.js +1 -1
  89. package/dist/index-NotchedOutline.js +1 -1
  90. package/dist/index-OutlinedInput.js +1 -1
  91. package/dist/index-Paper.js +1 -1
  92. package/dist/index-Parser2.js +315 -255
  93. package/dist/index-Parser3.js +129 -2
  94. package/dist/index-PickersDay.js +1 -1
  95. package/dist/index-Popover2.js +1 -1
  96. package/dist/index-Popper.js +1 -1
  97. package/dist/index-Portal.js +1 -1
  98. package/dist/index-PropTypes.js +1 -1
  99. package/dist/index-QuarterParser.js +1 -1
  100. package/dist/index-QuoteContainer.js +1 -1
  101. package/dist/index-Ripple.js +1 -1
  102. package/dist/index-RtlProvider.js +1 -1
  103. package/dist/index-ScrollbarSize.js +1 -1
  104. package/dist/index-SecondParser.js +1 -1
  105. package/dist/index-Select2.js +1 -1
  106. package/dist/index-SelectInput2.js +1 -1
  107. package/dist/index-Skeleton2.js +1 -1
  108. package/dist/index-Slide.js +1 -1
  109. package/dist/index-Slider2.js +1 -1
  110. package/dist/index-SliderValueLabel.js +1 -1
  111. package/dist/index-Snackbar2.js +1 -1
  112. package/dist/index-SnackbarContent.js +1 -1
  113. package/dist/index-StandAloneLocalDayParser.js +1 -1
  114. package/dist/index-StandAloneMonthParser.js +1 -1
  115. package/dist/index-StandAloneQuarterParser.js +1 -1
  116. package/dist/index-StyledEngineProvider.js +1 -1
  117. package/dist/index-StyledSVG2.js +1 -1
  118. package/dist/index-SvgIcon.js +1 -1
  119. package/dist/index-Tab2.js +1 -1
  120. package/dist/index-TabScrollButton.js +1 -1
  121. package/dist/index-Tabs2.js +1 -1
  122. package/dist/index-Text.js +18 -18
  123. package/dist/index-TextField.js +1 -1
  124. package/dist/index-TextHighlighted.js +23 -19
  125. package/dist/index-TextareaAutosize.js +1 -1
  126. package/dist/index-TimestampMillisecondsParser.js +1 -1
  127. package/dist/index-TimestampSecondsParser.js +1 -1
  128. package/dist/index-ToggleButton2.js +1 -1
  129. package/dist/index-ToggleButtonGroup2.js +1 -1
  130. package/dist/index-Tokenizer.js +411 -334
  131. package/dist/index-Tokenizer2.js +139 -2
  132. package/dist/index-Toolbar2.js +1 -1
  133. package/dist/index-Tooltip.js +1 -1
  134. package/dist/index-TouchRipple.js +1 -1
  135. package/dist/index-Transition.js +1 -1
  136. package/dist/index-TransitionGroup.js +1 -1
  137. package/dist/index-Typography.js +1 -1
  138. package/dist/index-YearParser.js +1 -1
  139. package/dist/index-YearPicker.js +1 -1
  140. package/dist/index-_virtual12.js +1 -1
  141. package/dist/index-_virtual15.js +2 -5
  142. package/dist/index-_virtual16.js +5 -3
  143. package/dist/index-_virtual17.js +5 -2
  144. package/dist/index-_virtual18.js +2 -7
  145. package/dist/index-_virtual19.js +5 -2
  146. package/dist/index-_virtual2.js +5 -5
  147. package/dist/index-_virtual20.js +2 -5
  148. package/dist/index-_virtual23.js +1 -1
  149. package/dist/index-_virtual3.js +4 -4
  150. package/dist/index-_virtual34.js +2 -2
  151. package/dist/index-_virtual35.js +2 -4
  152. package/dist/index-_virtual36.js +1 -1
  153. package/dist/index-_virtual37.js +1 -1
  154. package/dist/index-_virtual38.js +1 -1
  155. package/dist/index-_virtual39.js +1 -1
  156. package/dist/index-_virtual4.js +5 -5
  157. package/dist/index-_virtual40.js +1 -1
  158. package/dist/index-_virtual41.js +4 -2
  159. package/dist/index-_virtual42.js +2 -4
  160. package/dist/index-_virtual43.js +1 -1
  161. package/dist/index-_virtual44.js +1 -1
  162. package/dist/index-_virtual45.js +1 -1
  163. package/dist/index-_virtual46.js +1 -1
  164. package/dist/index-_virtual47.js +1 -1
  165. package/dist/index-_virtual48.js +1 -1
  166. package/dist/index-_virtual49.js +1 -1
  167. package/dist/index-_virtual50.js +1 -1
  168. package/dist/index-_virtual51.js +1 -1
  169. package/dist/index-_virtual52.js +1 -1
  170. package/dist/index-_virtual53.js +1 -1
  171. package/dist/index-_virtual54.js +1 -1
  172. package/dist/index-_virtual55.js +1 -1
  173. package/dist/index-_virtual56.js +1 -1
  174. package/dist/index-_virtual57.js +1 -1
  175. package/dist/index-_virtual58.js +4 -2
  176. package/dist/index-_virtual60.js +2 -4
  177. package/dist/index-_virtual61.js +1 -1
  178. package/dist/index-_virtual62.js +4 -2
  179. package/dist/index-_virtual63.js +2 -2
  180. package/dist/index-_virtual75.js +1 -1
  181. package/dist/index-_virtual77.js +4 -2
  182. package/dist/index-_virtual78.js +1 -1
  183. package/dist/index-_virtual79.js +1 -1
  184. package/dist/index-_virtual80.js +1 -1
  185. package/dist/index-_virtual81.js +1 -1
  186. package/dist/index-_virtual82.js +1 -1
  187. package/dist/index-_virtual83.js +1 -1
  188. package/dist/index-_virtual84.js +1 -1
  189. package/dist/index-_virtual85.js +2 -4
  190. package/dist/index-_virtual86.js +2 -2
  191. package/dist/index-applyInternationalSeparatorStyle.js +1 -1
  192. package/dist/index-attributes-to-props.js +1 -1
  193. package/dist/index-cjs.js +19 -75
  194. package/dist/index-colorManipulator3.js +2 -2
  195. package/dist/index-constants.js +38 -8
  196. package/dist/index-constants2.js +8 -38
  197. package/dist/index-createExtensionPattern.js +1 -1
  198. package/dist/index-createStyled2.js +6 -6
  199. package/dist/index-decode-data-html.js +5 -11
  200. package/dist/index-decode-data-xml.js +5 -11
  201. package/dist/index-decode.js +263 -216
  202. package/dist/index-decode_codepoint.js +43 -53
  203. package/dist/index-defaultRanges.js +10 -10
  204. package/dist/index-dist4.js +1 -1
  205. package/dist/index-dist5.js +1 -1
  206. package/dist/index-elementAcceptingRef.js +1 -1
  207. package/dist/index-elementTypeAcceptingRef.js +1 -1
  208. package/dist/index-emotion-cache.browser.esm.js +2 -2
  209. package/dist/index-escape.js +43 -48
  210. package/dist/index-esm2.js +108 -129
  211. package/dist/index-esm3.js +12 -301
  212. package/dist/index-esm4.js +135 -17
  213. package/dist/index-esm5.js +303 -0
  214. package/dist/index-esm6.js +21 -0
  215. package/dist/index-esm7.js +102 -0
  216. package/dist/index-exenv.js +1 -1
  217. package/dist/index-extractCountryCallingCode.js +1 -1
  218. package/dist/index-extractPhoneContext.js +1 -1
  219. package/dist/index-foreignNames.js +101 -108
  220. package/dist/index-helpers3.js +1 -1
  221. package/dist/index-http.store.js +1 -1
  222. package/dist/index-isViablePhoneNumber.js +1 -1
  223. package/dist/index-lib.js +2 -2
  224. package/dist/index-lib2.js +424 -111
  225. package/dist/index-lib3.js +14 -433
  226. package/dist/index-lib4.js +120 -14
  227. package/dist/index-lib5.js +10 -69
  228. package/dist/index-node.js +1 -1
  229. package/dist/index-node2.js +1 -1
  230. package/dist/index-parse2.js +1 -1
  231. package/dist/index-parse3.js +122 -20
  232. package/dist/index-refType.js +1 -1
  233. package/dist/index-responsivePropType.js +1 -1
  234. package/dist/index-sanitize-html.js +91 -48
  235. package/dist/index-stripIddPrefix.js +1 -1
  236. package/dist/index-style-to-object.js +1 -1
  237. package/dist/index-text-animate-words-style.js +12 -12
  238. package/dist/index-tiny-emitter.js +1 -1
  239. package/dist/index-useRteAiAssistant-selection.js +5 -5
  240. package/dist/index-useThemeWithoutDefault3.js +1 -1
  241. package/dist/index-utilities.js +1 -1
  242. package/dist/index-utilities2.js +1 -1
  243. package/dist/index-utils2.js +1 -1
  244. package/dist/index-utils6.js +7 -7
  245. package/dist/index.js +428 -426
  246. package/dist/types/core/Form/stories/SelectChangeDetection.story.d.ts +2 -0
  247. package/dist/types/core/Form/stories/bootstrap/form.test.slice.d.ts +58 -17
  248. package/dist/types/core/RichTextEditor/stories/RichTextEditorStory.story.d.ts +2 -0
  249. package/dist/types/core/RichTextEditor/stories/RichTextEditorWithXSSAttackStory.story.d.ts +2 -0
  250. package/dist/types/core/RichTextEditor/stories/_RichTextEditor.default.d.ts +4 -0
  251. package/dist/types/core/RichTextEditor/stories/bootstrap/richtexteditor.test.slice.d.ts +1 -0
  252. package/dist/types/core/TextHighlighted/stories/TextHighlightedStory.story.d.ts +2 -0
  253. package/dist/types/core/TextHighlighted/stories/TextHighlightedStory2.story.d.ts +2 -0
  254. package/dist/types/core/TextHighlighted/stories/TextHighlightedWithEmphasisStory.story.d.ts +2 -0
  255. package/dist/types/core/TextHighlighted/stories/TextHighlightedWithXSSAttackStory.story.d.ts +2 -0
  256. package/dist/types/core/TextHighlighted/stories/_TextHighlighted.default.d.ts +7 -0
  257. package/dist/types/core/_internal/InputBase/stories/HighlightLengthExceededTest.story.d.ts +2 -0
  258. package/dist/types/core/_internal/InputBase/stories/HighlightUrlTest.story.d.ts +2 -0
  259. package/dist/types/core/_internal/InputBase/stories/HighlightWordsTest.story.d.ts +2 -0
  260. package/dist/types/helpers/sanitize-html.d.ts +18 -3
  261. package/dist/types/index.d.ts +2 -0
  262. package/dist/vanguard-asset-analysis.json +1 -1
  263. package/dist-wordpress/index.js +23637 -22231
  264. package/package.json +5 -2
  265. package/scripts/check-meta-coverage.js +117 -0
  266. package/scripts/generate-exports-props.js +855 -0
  267. package/dist/index-Parser5.js +0 -131
  268. package/dist/index-Tokenizer3.js +0 -141
  269. package/dist/index-_virtual87.js +0 -4
  270. package/dist/index-_virtual88.js +0 -4
  271. package/dist/index-_virtual89.js +0 -4
  272. package/dist/index-_virtual90.js +0 -4
  273. package/dist/index-_virtual91.js +0 -4
  274. package/dist/index-at-rule.js +0 -22
  275. package/dist/index-cjs2.js +0 -23
  276. package/dist/index-comment.js +0 -16
  277. package/dist/index-container.js +0 -223
  278. package/dist/index-css-syntax-error.js +0 -56
  279. package/dist/index-declaration.js +0 -19
  280. package/dist/index-decode-data-html2.js +0 -4
  281. package/dist/index-decode-data-xml2.js +0 -4
  282. package/dist/index-decode2.js +0 -4
  283. package/dist/index-decode_codepoint2.js +0 -4
  284. package/dist/index-document3.js +0 -23
  285. package/dist/index-encode-html.js +0 -15
  286. package/dist/index-encode-html2.js +0 -4
  287. package/dist/index-encode.js +0 -49
  288. package/dist/index-encode2.js +0 -4
  289. package/dist/index-escape-string-regexp.js +0 -11
  290. package/dist/index-escape2.js +0 -4
  291. package/dist/index-feeds.js +0 -92
  292. package/dist/index-feeds2.js +0 -4
  293. package/dist/index-foreignNames2.js +0 -4
  294. package/dist/index-fromJSON.js +0 -46
  295. package/dist/index-helpers4.js +0 -54
  296. package/dist/index-helpers5.js +0 -4
  297. package/dist/index-input3.js +0 -139
  298. package/dist/index-is-plain-object.js +0 -17
  299. package/dist/index-is-plain-object2.js +0 -4
  300. package/dist/index-lazy-result.js +0 -343
  301. package/dist/index-legacy.js +0 -75
  302. package/dist/index-legacy2.js +0 -4
  303. package/dist/index-lib6.js +0 -13
  304. package/dist/index-lib7.js +0 -43
  305. package/dist/index-lib8.js +0 -147
  306. package/dist/index-lib9.js +0 -90
  307. package/dist/index-list3.js +0 -25
  308. package/dist/index-manipulation.js +0 -61
  309. package/dist/index-manipulation2.js +0 -4
  310. package/dist/index-map-generator.js +0 -171
  311. package/dist/index-no-work-result.js +0 -94
  312. package/dist/index-node4.js +0 -259
  313. package/dist/index-non-secure.js +0 -20
  314. package/dist/index-parse-srcset.js +0 -71
  315. package/dist/index-parse-srcset2.js +0 -4
  316. package/dist/index-parse4.js +0 -127
  317. package/dist/index-parser4.js +0 -322
  318. package/dist/index-picocolors.browser.js +0 -13
  319. package/dist/index-picocolors.browser2.js +0 -4
  320. package/dist/index-postcss.js +0 -46
  321. package/dist/index-previous-map.js +0 -92
  322. package/dist/index-processor.js +0 -43
  323. package/dist/index-querying.js +0 -63
  324. package/dist/index-querying2.js +0 -4
  325. package/dist/index-result.js +0 -30
  326. package/dist/index-root.js +0 -38
  327. package/dist/index-rule.js +0 -24
  328. package/dist/index-sanitize-html2.js +0 -672
  329. package/dist/index-stringifier.js +0 -196
  330. package/dist/index-stringify.js +0 -14
  331. package/dist/index-stringify2.js +0 -36
  332. package/dist/index-stringify3.js +0 -4
  333. package/dist/index-symbols.js +0 -8
  334. package/dist/index-symbols2.js +0 -4
  335. package/dist/index-tokenize.js +0 -114
  336. package/dist/index-traversal.js +0 -48
  337. package/dist/index-traversal2.js +0 -4
  338. package/dist/index-warn-once.js +0 -12
  339. package/dist/index-warning2.js +0 -25
  340. /package/dist/{index-Parser6.js → index-Parser4.js} +0 -0
@@ -1,25 +1,127 @@
1
- import { __require as h } from "./index-container.js";
2
- import { __require as m } from "./index-input3.js";
3
- import { __require as d } from "./index-parser4.js";
4
- var t, i;
5
- function _() {
6
- if (i) return t;
7
- i = 1;
8
- let n = h(), o = m(), u = d();
9
- function s(p, r) {
10
- let f = new o(p, r), a = new u(f);
11
- try {
12
- a.parse();
13
- } catch (e) {
14
- throw process.env.NODE_ENV !== "production" && e.name === "CssSyntaxError" && r && r.from && (/\.scss$/i.test(r.from) ? e.message += `
15
- You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser` : /\.sass/i.test(r.from) ? e.message += `
16
- You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser` : /\.less$/i.test(r.from) && (e.message += `
17
- You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)), e;
1
+ import ae from "./index-typeof2.js";
2
+ import B from "./index-createForOfIteratorHelper.js";
3
+ import ne from "./index-en-US.js";
4
+ import oe from "./index-subMilliseconds.js";
5
+ import G from "./index-toDate.js";
6
+ import ie from "./index-assign.js";
7
+ import J from "./index-longFormatters.js";
8
+ import le from "./index-getTimezoneOffsetInMilliseconds.js";
9
+ import { isProtectedWeekYearToken as fe, throwProtectedError as U, isProtectedDayOfYearToken as se } from "./index-protectedTokens.js";
10
+ import V from "./index-toInteger.js";
11
+ import ue from "./index-requiredArgs.js";
12
+ import { DateToSystemTimezoneSetter as ve } from "./index-Setter.js";
13
+ import { parsers as ce } from "./index-parsers.js";
14
+ import { getDefaultOptions as de } from "./index-defaultOptions.js";
15
+ var me = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, pe = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ge = /^'([^]*?)'?$/, he = /''/g, ke = /\S/, we = /[a-zA-Z]/;
16
+ function Pe(o, X, q, r) {
17
+ var m, p, g, h, k, w, _, O, y, D, $, S, E, N, T, C, W, b;
18
+ ue(3, arguments);
19
+ var n = String(o), f = String(X), i = de(), s = (m = (p = r == null ? void 0 : r.locale) !== null && p !== void 0 ? p : i.locale) !== null && m !== void 0 ? m : ne;
20
+ if (!s.match)
21
+ throw new RangeError("locale must contain match property");
22
+ var x = V((g = (h = (k = (w = r == null ? void 0 : r.firstWeekContainsDate) !== null && w !== void 0 ? w : r == null || (_ = r.locale) === null || _ === void 0 || (O = _.options) === null || O === void 0 ? void 0 : O.firstWeekContainsDate) !== null && k !== void 0 ? k : i.firstWeekContainsDate) !== null && h !== void 0 ? h : (y = i.locale) === null || y === void 0 || (D = y.options) === null || D === void 0 ? void 0 : D.firstWeekContainsDate) !== null && g !== void 0 ? g : 1);
23
+ if (!(x >= 1 && x <= 7))
24
+ throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
25
+ var R = V(($ = (S = (E = (N = r == null ? void 0 : r.weekStartsOn) !== null && N !== void 0 ? N : r == null || (T = r.locale) === null || T === void 0 || (C = T.options) === null || C === void 0 ? void 0 : C.weekStartsOn) !== null && E !== void 0 ? E : i.weekStartsOn) !== null && S !== void 0 ? S : (W = i.locale) === null || W === void 0 || (b = W.options) === null || b === void 0 ? void 0 : b.weekStartsOn) !== null && $ !== void 0 ? $ : 0);
26
+ if (!(R >= 0 && R <= 6))
27
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
28
+ if (f === "")
29
+ return n === "" ? G(q) : /* @__PURE__ */ new Date(NaN);
30
+ var A = {
31
+ firstWeekContainsDate: x,
32
+ weekStartsOn: R,
33
+ locale: s
34
+ }, P = [new ve()], ee = f.match(pe).map(function(t) {
35
+ var e = t[0];
36
+ if (e in J) {
37
+ var a = J[e];
38
+ return a(t, s.formatLong);
18
39
  }
19
- return a.root;
40
+ return t;
41
+ }).join("").match(me), F = [], u = B(ee), z;
42
+ try {
43
+ var re = function() {
44
+ var e = z.value;
45
+ !(r != null && r.useAdditionalWeekYearTokens) && fe(e) && U(e, f, o), !(r != null && r.useAdditionalDayOfYearTokens) && se(e) && U(e, f, o);
46
+ var a = e[0], d = ce[a];
47
+ if (d) {
48
+ var Q = d.incompatibleTokens;
49
+ if (Array.isArray(Q)) {
50
+ var K = F.find(function(Z) {
51
+ return Q.includes(Z.token) || Z.token === a;
52
+ });
53
+ if (K)
54
+ throw new RangeError("The format string mustn't contain `".concat(K.fullToken, "` and `").concat(e, "` at the same time"));
55
+ } else if (d.incompatibleTokens === "*" && F.length > 0)
56
+ throw new RangeError("The format string mustn't contain `".concat(e, "` and any other token at the same time"));
57
+ F.push({
58
+ token: a,
59
+ fullToken: e
60
+ });
61
+ var I = d.run(n, e, s.match, A);
62
+ if (!I)
63
+ return {
64
+ v: /* @__PURE__ */ new Date(NaN)
65
+ };
66
+ P.push(I.setter), n = I.rest;
67
+ } else {
68
+ if (a.match(we))
69
+ throw new RangeError("Format string contains an unescaped latin alphabet character `" + a + "`");
70
+ if (e === "''" ? e = "'" : a === "'" && (e = _e(e)), n.indexOf(e) === 0)
71
+ n = n.slice(e.length);
72
+ else
73
+ return {
74
+ v: /* @__PURE__ */ new Date(NaN)
75
+ };
76
+ }
77
+ };
78
+ for (u.s(); !(z = u.n()).done; ) {
79
+ var L = re();
80
+ if (ae(L) === "object") return L.v;
81
+ }
82
+ } catch (t) {
83
+ u.e(t);
84
+ } finally {
85
+ u.f();
86
+ }
87
+ if (n.length > 0 && ke.test(n))
88
+ return /* @__PURE__ */ new Date(NaN);
89
+ var te = P.map(function(t) {
90
+ return t.priority;
91
+ }).sort(function(t, e) {
92
+ return e - t;
93
+ }).filter(function(t, e, a) {
94
+ return a.indexOf(t) === e;
95
+ }).map(function(t) {
96
+ return P.filter(function(e) {
97
+ return e.priority === t;
98
+ }).sort(function(e, a) {
99
+ return a.subPriority - e.subPriority;
100
+ });
101
+ }).map(function(t) {
102
+ return t[0];
103
+ }), Y = G(q);
104
+ if (isNaN(Y.getTime()))
105
+ return /* @__PURE__ */ new Date(NaN);
106
+ var l = oe(Y, le(Y)), M = {}, v = B(te), j;
107
+ try {
108
+ for (v.s(); !(j = v.n()).done; ) {
109
+ var H = j.value;
110
+ if (!H.validate(l, A))
111
+ return /* @__PURE__ */ new Date(NaN);
112
+ var c = H.set(l, M, A);
113
+ Array.isArray(c) ? (l = c[0], ie(M, c[1])) : l = c;
114
+ }
115
+ } catch (t) {
116
+ v.e(t);
117
+ } finally {
118
+ v.f();
20
119
  }
21
- return t = s, s.default = s, n.registerParse(s), t;
120
+ return l;
121
+ }
122
+ function _e(o) {
123
+ return o.match(ge)[1].replace(he, "'");
22
124
  }
23
125
  export {
24
- _ as __require
126
+ Pe as default
25
127
  };
@@ -1,4 +1,4 @@
1
- import e from "./index-_virtual15.js";
1
+ import e from "./index-_virtual16.js";
2
2
  const p = e.oneOfType([e.func, e.object]);
3
3
  export {
4
4
  p as default
@@ -1,4 +1,4 @@
1
- import e from "./index-_virtual15.js";
1
+ import e from "./index-_virtual16.js";
2
2
  const r = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.string, e.object, e.array]) : {};
3
3
  export {
4
4
  r as default
@@ -1,66 +1,109 @@
1
- import { useCallback as h, Fragment as d, createElement as m } from "react";
2
- import { jsx as t, Fragment as u } from "react/jsx-runtime";
3
- import { domToReact as b } from "./index-html-react-parser.js";
1
+ import { useCallback as b, Fragment as T, createElement as d } from "react";
2
+ import { jsx as u, Fragment as A } from "react/jsx-runtime";
3
+ import { render as p } from "./index-esm2.js";
4
+ import { domToReact as w } from "./index-html-react-parser.js";
5
+ import { parseDocument as L } from "./index-esm3.js";
6
+ import { Element as h } from "./index-node.js";
4
7
  import g from "./index-_virtual.js";
5
- import { Element as y } from "./index-node.js";
6
- const k = ({
7
- children: n,
8
- html: r,
9
- acceptUnknown: a
8
+ const E = ({
9
+ children: r,
10
+ html: e,
11
+ acceptUnknown: c
10
12
  }) => {
11
- const p = h((e, l, i, o) => {
12
- if (!e || typeof e != "string")
13
- return t(d, {
14
- children: o
15
- }, i);
16
- const s = n[e], f = () => m(e, {
17
- ...l,
18
- children: o,
19
- key: i
13
+ const a = b((t, o, l, s) => {
14
+ if (!t || typeof t != "string")
15
+ return u(T, {
16
+ children: s
17
+ }, l);
18
+ const i = r[t], f = () => d(t, {
19
+ ...o,
20
+ children: s,
21
+ key: l
20
22
  });
21
- return s === null ? f() : typeof s > "u" ? a ? f() : null : m(s, {
22
- ...l,
23
- index: i,
24
- key: i
25
- }, o);
26
- }, [a, n]), c = {
27
- replace: (e) => {
28
- if (e instanceof y) {
29
- const l = e.tagName.toLowerCase(), i = {
30
- ...e.attribs
31
- }, o = b(e.children, c);
32
- return p(l, i, Math.random(), o);
23
+ return i === null ? f() : typeof i > "u" ? c ? f() : null : d(i, {
24
+ ...o,
25
+ index: l,
26
+ key: l
27
+ }, s);
28
+ }, [c, r]), n = {
29
+ replace: (t) => {
30
+ if (t instanceof h) {
31
+ const o = t.tagName.toLowerCase(), l = {
32
+ ...t.attribs
33
+ }, s = w(t.children, n);
34
+ return a(o, l, Math.random(), s);
33
35
  }
34
36
  }
35
37
  };
36
- return t(u, {
37
- children: g(r, c)
38
+ return u(A, {
39
+ children: g(e, n)
38
40
  });
39
- }, T = function(n) {
40
- return n ? typeof n != "string" ? n : {
41
- children: t(k, {
42
- html: n,
41
+ }, M = function(r) {
42
+ return r ? typeof r != "string" ? r : {
43
+ children: u(E, {
44
+ html: r,
43
45
  children: {
44
- br: (r) => t("br", {}),
45
- b: (r) => t("b", {
46
- ...r
46
+ br: () => u("br", {}),
47
+ b: (e) => u("b", {
48
+ ...e
47
49
  }),
48
- em: (r) => t("em", {
49
- ...r
50
+ em: (e) => u("em", {
51
+ ...e
50
52
  }),
51
- link: (r) => t("link", {
52
- ...r
53
+ link: (e) => u("link", {
54
+ ...e
53
55
  }),
54
- span: (r) => t("span", {
55
- ...r
56
+ span: (e) => u("span", {
57
+ ...e
56
58
  })
57
59
  }
58
60
  })
59
61
  } : {
60
- children: t(u, {})
62
+ children: null
61
63
  };
62
- };
64
+ }, R = /* @__PURE__ */ new Set(["script", "style", "iframe", "object", "embed", "noscript"]), S = /* @__PURE__ */ new Set(["a", "abbr", "b", "blockquote", "br", "code", "div", "em", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "i", "li", "ol", "p", "pre", "span", "strong", "sub", "sup", "table", "thead", "tbody", "td", "th", "tr", "u", "ul"]), y = {
65
+ a: ["href", "name", "target", "rel"]
66
+ }, _ = /^\s*(javascript|vbscript|data)\s*:/i, D = /* @__PURE__ */ new Set(["href", "src", "action", "formaction", "xlink:href"]);
67
+ function k(r, e, c, a) {
68
+ if (e.toLowerCase().startsWith("on") || D.has(e) && _.test(c)) return !1;
69
+ const n = a[r];
70
+ return n ? n.includes(e) : !1;
71
+ }
72
+ function m(r, e, c, a) {
73
+ const n = [];
74
+ for (const t of r) {
75
+ if (t.type === "text") {
76
+ n.push(t);
77
+ continue;
78
+ }
79
+ if (t.type !== "comment" && t instanceof h) {
80
+ const o = t.tagName.toLowerCase();
81
+ if (R.has(o))
82
+ continue;
83
+ const l = m(t.children, e, c, a);
84
+ if (!e.has(o)) {
85
+ n.push(...l);
86
+ continue;
87
+ }
88
+ const s = {};
89
+ for (const [i, f] of Object.entries(t.attribs))
90
+ k(o, i, f, c) && (s[i] = f);
91
+ if (a && "class" in s) {
92
+ const i = s.class.split(/\s+/).filter((f) => f && a.has(f)).join(" ");
93
+ i ? s.class = i : delete s.class;
94
+ }
95
+ t.attribs = s, t.children = l, n.push(t);
96
+ }
97
+ }
98
+ return n;
99
+ }
100
+ function G(r, e) {
101
+ if (!r) return "";
102
+ const c = e != null && e.allowedTags ? new Set(e.allowedTags) : S, a = (e == null ? void 0 : e.allowedAttributes) ?? y, n = e != null && e.allowedClasses ? new Set(e.allowedClasses) : void 0, t = L(r);
103
+ return t.children = m(t.children, c, a, n), p(t);
104
+ }
63
105
  export {
64
- k as default,
65
- T as sanitizeHTML
106
+ E as default,
107
+ M as sanitizeHTMLToReactNode,
108
+ G as sanitizeHtml
66
109
  };
@@ -1,5 +1,5 @@
1
1
  import I from "./index-metadata.js";
2
- import { VALID_DIGITS as l } from "./index-constants.js";
2
+ import { VALID_DIGITS as l } from "./index-constants2.js";
3
3
  var c = new RegExp("([" + l + "])");
4
4
  function D(t, r, f, n) {
5
5
  if (r) {
@@ -1,4 +1,4 @@
1
- import { __module as o } from "./index-_virtual89.js";
1
+ import { __module as o } from "./index-_virtual85.js";
2
2
  import { __require as y } from "./index-inline-style-parser.js";
3
3
  var f;
4
4
  function m() {
@@ -1,5 +1,5 @@
1
- import { jsx as s, Fragment as d } from "react/jsx-runtime";
2
- import { sanitizeHTML as y } from "./index-sanitize-html.js";
1
+ import { jsx as e, Fragment as d } from "react/jsx-runtime";
2
+ import { sanitizeHTMLToReactNode as y } from "./index-sanitize-html.js";
3
3
  import { a as f } from "./index-react-spring_web.modern.js";
4
4
  import "react";
5
5
  import { useSpring as u } from "./index-react-spring_core.modern.js";
@@ -22,28 +22,28 @@ const g = ({
22
22
  },
23
23
  delay: r
24
24
  });
25
- return s(f.span, {
25
+ return e(f.span, {
26
26
  style: {
27
27
  marginRight: 4,
28
28
  ...a
29
29
  },
30
30
  children: y(t).children
31
31
  });
32
- }, W = (t, r) => {
32
+ }, S = (t, r) => {
33
33
  if (typeof t != "string" || !r)
34
34
  return t;
35
- const o = t.split(" "), a = r.duration ?? 300, e = r.delay ?? 75, i = r.initialDelay ?? 0;
36
- return s(d, {
37
- children: o.map((p, n) => {
38
- const c = i + o.slice(0, n).reduce((m, h) => m + a, e * n), l = n < o.length - 1;
39
- return s(g, {
40
- word: p + (l ? " " : ""),
41
- delay: c,
35
+ const o = t.split(" "), a = r.duration ?? 300, s = r.delay ?? 75, i = r.initialDelay ?? 0;
36
+ return e(d, {
37
+ children: o.map((c, n) => {
38
+ const p = i + o.slice(0, n).reduce((m, h) => m + a, s * n), l = n < o.length - 1;
39
+ return e(g, {
40
+ word: c + (l ? " " : ""),
41
+ delay: p,
42
42
  duration: a
43
43
  }, n);
44
44
  })
45
45
  });
46
46
  };
47
47
  export {
48
- W as applyWordAnimation
48
+ S as applyWordAnimation
49
49
  };
@@ -1,4 +1,4 @@
1
- import { __module as o } from "./index-_virtual88.js";
1
+ import { __module as o } from "./index-_virtual86.js";
2
2
  var u;
3
3
  function p() {
4
4
  if (u) return o.exports;
@@ -1,11 +1,11 @@
1
- import { L as O } from "./index-LexicalCode.js";
2
- import { L as w } from "./index-LexicalHtml.js";
1
+ import { sanitizeHtml as O } from "./index-sanitize-html.js";
2
+ import { L as w } from "./index-LexicalCode.js";
3
+ import { L as k } from "./index-LexicalHtml.js";
3
4
  import { L as p } from "./index-LexicalLink.js";
4
5
  import { L as E } from "./index-LexicalUtils2.js";
5
6
  import { L as n } from "./index-Lexical2.js";
6
7
  import { L as x } from "./index-LexicalToolkit.js";
7
8
  import { useState as a, useCallback as S, useEffect as d } from "react";
8
- import k from "./index-_virtual18.js";
9
9
  const b = (R) => {
10
10
  const {
11
11
  anchorElem: m,
@@ -49,7 +49,7 @@ const b = (R) => {
49
49
  if (!n.$isRangeSelection(t))
50
50
  return;
51
51
  const r = x.getSelectedNode(t), h = r.getParent();
52
- if (p.$isLinkNode(h) || p.$isLinkNode(r) ? L(!0) : L(!1), !O.$isCodeHighlightNode(t.anchor.getNode()) && t.getTextContent() !== "")
52
+ if (p.$isLinkNode(h) || p.$isLinkNode(r) ? L(!0) : L(!1), !w.$isCodeHighlightNode(t.anchor.getNode()) && t.getTextContent() !== "")
53
53
  l(n.$isTextNode(r) || n.$isParagraphNode(r));
54
54
  else {
55
55
  l(!1);
@@ -66,7 +66,7 @@ const b = (R) => {
66
66
  }), e.registerRootListener(() => {
67
67
  e.getRootElement() === null && l(!1);
68
68
  }), e.registerUpdateListener(() => e.update(() => {
69
- const t = n.$getSelection(), o = w.$generateHtmlFromNodes(e, t), s = k(o);
69
+ const t = n.$getSelection(), o = k.$generateHtmlFromNodes(e, t), s = O(o);
70
70
  N(s);
71
71
  }))), [e, c]), {
72
72
  isMouseOver: g,
@@ -1,6 +1,6 @@
1
1
  import { __exports as u } from "./index-useThemeWithoutDefault4.js";
2
2
  import h from "react";
3
- import m from "./index-_virtual78.js";
3
+ import m from "./index-_virtual77.js";
4
4
  var f;
5
5
  function b() {
6
6
  if (f) return u;
@@ -1,5 +1,5 @@
1
1
  import y from "react";
2
- import { __require as C } from "./index-cjs2.js";
2
+ import { __require as C } from "./index-cjs.js";
3
3
  var o, s;
4
4
  function E() {
5
5
  if (s) return o;
@@ -1,6 +1,6 @@
1
1
  import { __exports as u } from "./index-utilities3.js";
2
2
  import { __require as c } from "./index-lib.js";
3
- import { __require as x } from "./index-constants2.js";
3
+ import { __require as x } from "./index-constants.js";
4
4
  var g;
5
5
  function k() {
6
6
  if (g) return u;
@@ -1,4 +1,4 @@
1
- import v from "./index-esm2.js";
1
+ import v from "./index-esm4.js";
2
2
  function w(i) {
3
3
  const {
4
4
  baseURL: c,
@@ -1,12 +1,12 @@
1
1
  import { __exports as d } from "./index-utils8.js";
2
2
  import { __require as y } from "./index-classnames2.js";
3
- import C from "./index-_virtual38.js";
4
- import p from "./index-_virtual46.js";
5
- import w from "./index-_virtual39.js";
6
- import F from "./index-_virtual51.js";
7
- import N from "./index-_virtual52.js";
8
- import S from "./index-_virtual44.js";
9
- import U from "./index-_virtual45.js";
3
+ import C from "./index-_virtual39.js";
4
+ import p from "./index-_virtual47.js";
5
+ import w from "./index-_virtual40.js";
6
+ import F from "./index-_virtual52.js";
7
+ import N from "./index-_virtual53.js";
8
+ import S from "./index-_virtual45.js";
9
+ import U from "./index-_virtual46.js";
10
10
  var v;
11
11
  function H() {
12
12
  if (v) return d;