@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.
- package/dist/index-AMPMMidnightParser.js +1 -1
- package/dist/index-AMPMParser.js +1 -1
- package/dist/index-Accordion2.js +1 -1
- package/dist/index-AccordionDetails.js +1 -1
- package/dist/index-AccordionSummary.js +1 -1
- package/dist/index-AiGlow.js +1 -1
- package/dist/index-AppBar2.js +1 -1
- package/dist/index-Autocomplete.js +2 -2
- package/dist/index-Autocomplete2.js +1 -1
- package/dist/index-Backdrop.js +1 -1
- package/dist/index-BasePopper.js +1 -1
- package/dist/index-Box.js +1 -1
- package/dist/index-Button2.js +1 -1
- package/dist/index-ButtonBase.js +1 -1
- package/dist/index-CSSTransition.js +1 -1
- package/dist/index-Calendar.js +20 -20
- package/dist/index-CalendarPicker.js +1 -1
- package/dist/index-Chip.js +1 -1
- package/dist/index-ClickAwayListener.js +1 -1
- package/dist/index-ClockPicker.js +1 -1
- package/dist/index-Collapse2.js +1 -1
- package/dist/index-CreditCard.js +1 -1
- package/dist/index-DateInput.js +1 -1
- package/dist/index-DateParser.js +1 -1
- package/dist/index-DatePicker2.js +1 -1
- package/dist/index-DateRange2.js +7 -7
- package/dist/index-DateRangePicker2.js +1 -1
- package/dist/index-DayCell.js +5 -5
- package/dist/index-DayOfYearParser.js +1 -1
- package/dist/index-DayParser.js +1 -1
- package/dist/index-DayPeriodParser.js +1 -1
- package/dist/index-DefaultPropsProvider.js +1 -1
- package/dist/index-DefaultPropsProvider2.js +1 -1
- package/dist/index-DefinedRange.js +1 -1
- package/dist/index-DesktopDatePicker.js +1 -1
- package/dist/index-Dialog.js +1 -1
- package/dist/index-DialogActions.js +1 -1
- package/dist/index-DialogContent.js +1 -1
- package/dist/index-Drawer.js +1 -1
- package/dist/index-Drawer2.js +1 -1
- package/dist/index-EraParser.js +1 -1
- package/dist/index-ExtendedYearParser.js +1 -1
- package/dist/index-Fade.js +1 -1
- package/dist/index-FilledInput.js +1 -1
- package/dist/index-FocusTrap.js +1 -1
- package/dist/index-FormControl2.js +1 -1
- package/dist/index-FormHelperText.js +1 -1
- package/dist/index-FormLabel.js +1 -1
- package/dist/index-FractionOfSecondParser.js +1 -1
- package/dist/index-GlobalStyles.js +1 -1
- package/dist/index-GlobalStyles2.js +1 -1
- package/dist/index-GlobalStyles3.js +1 -1
- package/dist/index-Grid.js +1 -1
- package/dist/index-Grow.js +1 -1
- package/dist/index-Header.js +1 -1
- package/dist/index-Hour0To11Parser.js +1 -1
- package/dist/index-Hour0to23Parser.js +1 -1
- package/dist/index-Hour1To24Parser.js +1 -1
- package/dist/index-Hour1to12Parser.js +1 -1
- package/dist/index-ISODayParser.js +1 -1
- package/dist/index-ISOTimezoneParser.js +1 -1
- package/dist/index-ISOTimezoneWithZParser.js +1 -1
- package/dist/index-ISOWeekParser.js +1 -1
- package/dist/index-ISOWeekYearParser.js +1 -1
- package/dist/index-IconButton2.js +1 -1
- package/dist/index-Input2.js +1 -1
- package/dist/index-InputAdornment.js +1 -1
- package/dist/index-InputBase.js +155 -150
- package/dist/index-InputBase2.js +1 -1
- package/dist/index-InputLabel.js +1 -1
- package/dist/index-LinearProgress.js +1 -1
- package/dist/index-List2.js +1 -1
- package/dist/index-ListSubheader.js +1 -1
- package/dist/index-LocalDayParser.js +1 -1
- package/dist/index-LocalWeekParser.js +1 -1
- package/dist/index-LocalWeekYearParser.js +1 -1
- package/dist/index-LocalizationProvider.js +1 -1
- package/dist/index-LoginButton.js +1 -1
- package/dist/index-Menu.js +1 -1
- package/dist/index-MenuItem.js +1 -1
- package/dist/index-MenuList.js +1 -1
- package/dist/index-MinuteParser.js +1 -1
- package/dist/index-MobileDatePicker.js +1 -1
- package/dist/index-Modal2.js +1 -1
- package/dist/index-Month.js +9 -9
- package/dist/index-MonthParser.js +1 -1
- package/dist/index-MonthPicker.js +1 -1
- package/dist/index-NativeSelectInput.js +1 -1
- package/dist/index-NotchedOutline.js +1 -1
- package/dist/index-OutlinedInput.js +1 -1
- package/dist/index-Paper.js +1 -1
- package/dist/index-Parser2.js +315 -255
- package/dist/index-Parser3.js +129 -2
- package/dist/index-PickersDay.js +1 -1
- package/dist/index-Popover2.js +1 -1
- package/dist/index-Popper.js +1 -1
- package/dist/index-Portal.js +1 -1
- package/dist/index-PropTypes.js +1 -1
- package/dist/index-QuarterParser.js +1 -1
- package/dist/index-QuoteContainer.js +1 -1
- package/dist/index-Ripple.js +1 -1
- package/dist/index-RtlProvider.js +1 -1
- package/dist/index-ScrollbarSize.js +1 -1
- package/dist/index-SecondParser.js +1 -1
- package/dist/index-Select2.js +1 -1
- package/dist/index-SelectInput2.js +1 -1
- package/dist/index-Skeleton2.js +1 -1
- package/dist/index-Slide.js +1 -1
- package/dist/index-Slider2.js +1 -1
- package/dist/index-SliderValueLabel.js +1 -1
- package/dist/index-Snackbar2.js +1 -1
- package/dist/index-SnackbarContent.js +1 -1
- package/dist/index-StandAloneLocalDayParser.js +1 -1
- package/dist/index-StandAloneMonthParser.js +1 -1
- package/dist/index-StandAloneQuarterParser.js +1 -1
- package/dist/index-StyledEngineProvider.js +1 -1
- package/dist/index-StyledSVG2.js +1 -1
- package/dist/index-SvgIcon.js +1 -1
- package/dist/index-Tab2.js +1 -1
- package/dist/index-TabScrollButton.js +1 -1
- package/dist/index-Tabs2.js +1 -1
- package/dist/index-Text.js +18 -18
- package/dist/index-TextField.js +1 -1
- package/dist/index-TextHighlighted.js +23 -19
- package/dist/index-TextareaAutosize.js +1 -1
- package/dist/index-TimestampMillisecondsParser.js +1 -1
- package/dist/index-TimestampSecondsParser.js +1 -1
- package/dist/index-ToggleButton2.js +1 -1
- package/dist/index-ToggleButtonGroup2.js +1 -1
- package/dist/index-Tokenizer.js +411 -334
- package/dist/index-Tokenizer2.js +139 -2
- package/dist/index-Toolbar2.js +1 -1
- package/dist/index-Tooltip.js +1 -1
- package/dist/index-TouchRipple.js +1 -1
- package/dist/index-Transition.js +1 -1
- package/dist/index-TransitionGroup.js +1 -1
- package/dist/index-Typography.js +1 -1
- package/dist/index-YearParser.js +1 -1
- package/dist/index-YearPicker.js +1 -1
- package/dist/index-_virtual12.js +1 -1
- package/dist/index-_virtual15.js +2 -5
- package/dist/index-_virtual16.js +5 -3
- package/dist/index-_virtual17.js +5 -2
- package/dist/index-_virtual18.js +2 -7
- package/dist/index-_virtual19.js +5 -2
- package/dist/index-_virtual2.js +5 -5
- package/dist/index-_virtual20.js +2 -5
- package/dist/index-_virtual23.js +1 -1
- package/dist/index-_virtual3.js +4 -4
- package/dist/index-_virtual34.js +2 -2
- package/dist/index-_virtual35.js +2 -4
- package/dist/index-_virtual36.js +1 -1
- package/dist/index-_virtual37.js +1 -1
- package/dist/index-_virtual38.js +1 -1
- package/dist/index-_virtual39.js +1 -1
- package/dist/index-_virtual4.js +5 -5
- package/dist/index-_virtual40.js +1 -1
- package/dist/index-_virtual41.js +4 -2
- package/dist/index-_virtual42.js +2 -4
- package/dist/index-_virtual43.js +1 -1
- package/dist/index-_virtual44.js +1 -1
- package/dist/index-_virtual45.js +1 -1
- package/dist/index-_virtual46.js +1 -1
- package/dist/index-_virtual47.js +1 -1
- package/dist/index-_virtual48.js +1 -1
- package/dist/index-_virtual49.js +1 -1
- package/dist/index-_virtual50.js +1 -1
- package/dist/index-_virtual51.js +1 -1
- package/dist/index-_virtual52.js +1 -1
- package/dist/index-_virtual53.js +1 -1
- package/dist/index-_virtual54.js +1 -1
- package/dist/index-_virtual55.js +1 -1
- package/dist/index-_virtual56.js +1 -1
- package/dist/index-_virtual57.js +1 -1
- package/dist/index-_virtual58.js +4 -2
- package/dist/index-_virtual60.js +2 -4
- package/dist/index-_virtual61.js +1 -1
- package/dist/index-_virtual62.js +4 -2
- package/dist/index-_virtual63.js +2 -2
- package/dist/index-_virtual75.js +1 -1
- package/dist/index-_virtual77.js +4 -2
- package/dist/index-_virtual78.js +1 -1
- package/dist/index-_virtual79.js +1 -1
- package/dist/index-_virtual80.js +1 -1
- package/dist/index-_virtual81.js +1 -1
- package/dist/index-_virtual82.js +1 -1
- package/dist/index-_virtual83.js +1 -1
- package/dist/index-_virtual84.js +1 -1
- package/dist/index-_virtual85.js +2 -4
- package/dist/index-_virtual86.js +2 -2
- package/dist/index-applyInternationalSeparatorStyle.js +1 -1
- package/dist/index-attributes-to-props.js +1 -1
- package/dist/index-cjs.js +19 -75
- package/dist/index-colorManipulator3.js +2 -2
- package/dist/index-constants.js +38 -8
- package/dist/index-constants2.js +8 -38
- package/dist/index-createExtensionPattern.js +1 -1
- package/dist/index-createStyled2.js +6 -6
- package/dist/index-decode-data-html.js +5 -11
- package/dist/index-decode-data-xml.js +5 -11
- package/dist/index-decode.js +263 -216
- package/dist/index-decode_codepoint.js +43 -53
- package/dist/index-defaultRanges.js +10 -10
- package/dist/index-dist4.js +1 -1
- package/dist/index-dist5.js +1 -1
- package/dist/index-elementAcceptingRef.js +1 -1
- package/dist/index-elementTypeAcceptingRef.js +1 -1
- package/dist/index-emotion-cache.browser.esm.js +2 -2
- package/dist/index-escape.js +43 -48
- package/dist/index-esm2.js +108 -129
- package/dist/index-esm3.js +12 -301
- package/dist/index-esm4.js +135 -17
- package/dist/index-esm5.js +303 -0
- package/dist/index-esm6.js +21 -0
- package/dist/index-esm7.js +102 -0
- package/dist/index-exenv.js +1 -1
- package/dist/index-extractCountryCallingCode.js +1 -1
- package/dist/index-extractPhoneContext.js +1 -1
- package/dist/index-foreignNames.js +101 -108
- package/dist/index-helpers3.js +1 -1
- package/dist/index-http.store.js +1 -1
- package/dist/index-isViablePhoneNumber.js +1 -1
- package/dist/index-lib.js +2 -2
- package/dist/index-lib2.js +424 -111
- package/dist/index-lib3.js +14 -433
- package/dist/index-lib4.js +120 -14
- package/dist/index-lib5.js +10 -69
- package/dist/index-node.js +1 -1
- package/dist/index-node2.js +1 -1
- package/dist/index-parse2.js +1 -1
- package/dist/index-parse3.js +122 -20
- package/dist/index-refType.js +1 -1
- package/dist/index-responsivePropType.js +1 -1
- package/dist/index-sanitize-html.js +91 -48
- package/dist/index-stripIddPrefix.js +1 -1
- package/dist/index-style-to-object.js +1 -1
- package/dist/index-text-animate-words-style.js +12 -12
- package/dist/index-tiny-emitter.js +1 -1
- package/dist/index-useRteAiAssistant-selection.js +5 -5
- package/dist/index-useThemeWithoutDefault3.js +1 -1
- package/dist/index-utilities.js +1 -1
- package/dist/index-utilities2.js +1 -1
- package/dist/index-utils2.js +1 -1
- package/dist/index-utils6.js +7 -7
- package/dist/index.js +428 -426
- package/dist/types/core/Form/stories/SelectChangeDetection.story.d.ts +2 -0
- package/dist/types/core/Form/stories/bootstrap/form.test.slice.d.ts +58 -17
- package/dist/types/core/RichTextEditor/stories/RichTextEditorStory.story.d.ts +2 -0
- package/dist/types/core/RichTextEditor/stories/RichTextEditorWithXSSAttackStory.story.d.ts +2 -0
- package/dist/types/core/RichTextEditor/stories/_RichTextEditor.default.d.ts +4 -0
- package/dist/types/core/RichTextEditor/stories/bootstrap/richtexteditor.test.slice.d.ts +1 -0
- package/dist/types/core/TextHighlighted/stories/TextHighlightedStory.story.d.ts +2 -0
- package/dist/types/core/TextHighlighted/stories/TextHighlightedStory2.story.d.ts +2 -0
- package/dist/types/core/TextHighlighted/stories/TextHighlightedWithEmphasisStory.story.d.ts +2 -0
- package/dist/types/core/TextHighlighted/stories/TextHighlightedWithXSSAttackStory.story.d.ts +2 -0
- package/dist/types/core/TextHighlighted/stories/_TextHighlighted.default.d.ts +7 -0
- package/dist/types/core/_internal/InputBase/stories/HighlightLengthExceededTest.story.d.ts +2 -0
- package/dist/types/core/_internal/InputBase/stories/HighlightUrlTest.story.d.ts +2 -0
- package/dist/types/core/_internal/InputBase/stories/HighlightWordsTest.story.d.ts +2 -0
- package/dist/types/helpers/sanitize-html.d.ts +18 -3
- package/dist/types/index.d.ts +2 -0
- package/dist/vanguard-asset-analysis.json +1 -1
- package/dist-wordpress/index.js +23637 -22231
- package/package.json +5 -2
- package/scripts/check-meta-coverage.js +117 -0
- package/scripts/generate-exports-props.js +855 -0
- package/dist/index-Parser5.js +0 -131
- package/dist/index-Tokenizer3.js +0 -141
- package/dist/index-_virtual87.js +0 -4
- package/dist/index-_virtual88.js +0 -4
- package/dist/index-_virtual89.js +0 -4
- package/dist/index-_virtual90.js +0 -4
- package/dist/index-_virtual91.js +0 -4
- package/dist/index-at-rule.js +0 -22
- package/dist/index-cjs2.js +0 -23
- package/dist/index-comment.js +0 -16
- package/dist/index-container.js +0 -223
- package/dist/index-css-syntax-error.js +0 -56
- package/dist/index-declaration.js +0 -19
- package/dist/index-decode-data-html2.js +0 -4
- package/dist/index-decode-data-xml2.js +0 -4
- package/dist/index-decode2.js +0 -4
- package/dist/index-decode_codepoint2.js +0 -4
- package/dist/index-document3.js +0 -23
- package/dist/index-encode-html.js +0 -15
- package/dist/index-encode-html2.js +0 -4
- package/dist/index-encode.js +0 -49
- package/dist/index-encode2.js +0 -4
- package/dist/index-escape-string-regexp.js +0 -11
- package/dist/index-escape2.js +0 -4
- package/dist/index-feeds.js +0 -92
- package/dist/index-feeds2.js +0 -4
- package/dist/index-foreignNames2.js +0 -4
- package/dist/index-fromJSON.js +0 -46
- package/dist/index-helpers4.js +0 -54
- package/dist/index-helpers5.js +0 -4
- package/dist/index-input3.js +0 -139
- package/dist/index-is-plain-object.js +0 -17
- package/dist/index-is-plain-object2.js +0 -4
- package/dist/index-lazy-result.js +0 -343
- package/dist/index-legacy.js +0 -75
- package/dist/index-legacy2.js +0 -4
- package/dist/index-lib6.js +0 -13
- package/dist/index-lib7.js +0 -43
- package/dist/index-lib8.js +0 -147
- package/dist/index-lib9.js +0 -90
- package/dist/index-list3.js +0 -25
- package/dist/index-manipulation.js +0 -61
- package/dist/index-manipulation2.js +0 -4
- package/dist/index-map-generator.js +0 -171
- package/dist/index-no-work-result.js +0 -94
- package/dist/index-node4.js +0 -259
- package/dist/index-non-secure.js +0 -20
- package/dist/index-parse-srcset.js +0 -71
- package/dist/index-parse-srcset2.js +0 -4
- package/dist/index-parse4.js +0 -127
- package/dist/index-parser4.js +0 -322
- package/dist/index-picocolors.browser.js +0 -13
- package/dist/index-picocolors.browser2.js +0 -4
- package/dist/index-postcss.js +0 -46
- package/dist/index-previous-map.js +0 -92
- package/dist/index-processor.js +0 -43
- package/dist/index-querying.js +0 -63
- package/dist/index-querying2.js +0 -4
- package/dist/index-result.js +0 -30
- package/dist/index-root.js +0 -38
- package/dist/index-rule.js +0 -24
- package/dist/index-sanitize-html2.js +0 -672
- package/dist/index-stringifier.js +0 -196
- package/dist/index-stringify.js +0 -14
- package/dist/index-stringify2.js +0 -36
- package/dist/index-stringify3.js +0 -4
- package/dist/index-symbols.js +0 -8
- package/dist/index-symbols2.js +0 -4
- package/dist/index-tokenize.js +0 -114
- package/dist/index-traversal.js +0 -48
- package/dist/index-traversal2.js +0 -4
- package/dist/index-warn-once.js +0 -12
- package/dist/index-warning2.js +0 -25
- /package/dist/{index-Parser6.js → index-Parser4.js} +0 -0
package/dist/index-decode.js
CHANGED
|
@@ -1,227 +1,274 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
1
|
+
import R from "./index-decode-data-html.js";
|
|
2
|
+
import _ from "./index-decode-data-xml.js";
|
|
3
|
+
import { fromCodePoint as L, replaceCodePoint as A } from "./index-decode_codepoint.js";
|
|
4
|
+
var c;
|
|
5
|
+
(function(t) {
|
|
6
|
+
t[t.NUM = 35] = "NUM", t[t.SEMI = 59] = "SEMI", t[t.EQUALS = 61] = "EQUALS", t[t.ZERO = 48] = "ZERO", t[t.NINE = 57] = "NINE", t[t.LOWER_A = 97] = "LOWER_A", t[t.LOWER_F = 102] = "LOWER_F", t[t.LOWER_X = 120] = "LOWER_X", t[t.LOWER_Z = 122] = "LOWER_Z", t[t.UPPER_A = 65] = "UPPER_A", t[t.UPPER_F = 70] = "UPPER_F", t[t.UPPER_Z = 90] = "UPPER_Z";
|
|
7
|
+
})(c || (c = {}));
|
|
8
|
+
const x = 32;
|
|
9
|
+
var E;
|
|
10
|
+
(function(t) {
|
|
11
|
+
t[t.VALUE_LENGTH = 49152] = "VALUE_LENGTH", t[t.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", t[t.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
12
|
+
})(E || (E = {}));
|
|
13
|
+
function d(t) {
|
|
14
|
+
return t >= c.ZERO && t <= c.NINE;
|
|
15
|
+
}
|
|
16
|
+
function P(t) {
|
|
17
|
+
return t >= c.UPPER_A && t <= c.UPPER_F || t >= c.LOWER_A && t <= c.LOWER_F;
|
|
18
|
+
}
|
|
19
|
+
function I(t) {
|
|
20
|
+
return t >= c.UPPER_A && t <= c.UPPER_Z || t >= c.LOWER_A && t <= c.LOWER_Z || d(t);
|
|
21
|
+
}
|
|
22
|
+
function U(t) {
|
|
23
|
+
return t === c.EQUALS || I(t);
|
|
24
|
+
}
|
|
25
|
+
var s;
|
|
26
|
+
(function(t) {
|
|
27
|
+
t[t.EntityStart = 0] = "EntityStart", t[t.NumericStart = 1] = "NumericStart", t[t.NumericDecimal = 2] = "NumericDecimal", t[t.NumericHex = 3] = "NumericHex", t[t.NamedEntity = 4] = "NamedEntity";
|
|
28
|
+
})(s || (s = {}));
|
|
29
|
+
var N;
|
|
30
|
+
(function(t) {
|
|
31
|
+
t[t.Legacy = 0] = "Legacy", t[t.Strict = 1] = "Strict", t[t.Attribute = 2] = "Attribute";
|
|
32
|
+
})(N || (N = {}));
|
|
33
|
+
class y {
|
|
34
|
+
constructor(e, i, r) {
|
|
35
|
+
this.decodeTree = e, this.emitCodePoint = i, this.errors = r, this.state = s.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = N.Strict;
|
|
36
|
+
}
|
|
37
|
+
/** Resets the instance to make it reusable. */
|
|
38
|
+
startEntity(e) {
|
|
39
|
+
this.decodeMode = e, this.state = s.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Write an entity to the decoder. This can be called multiple times with partial entities.
|
|
43
|
+
* If the entity is incomplete, the decoder will return -1.
|
|
44
|
+
*
|
|
45
|
+
* Mirrors the implementation of `getDecoder`, but with the ability to stop decoding if the
|
|
46
|
+
* entity is incomplete, and resume when the next string is written.
|
|
47
|
+
*
|
|
48
|
+
* @param string The string containing the entity (or a continuation of the entity).
|
|
49
|
+
* @param offset The offset at which the entity begins. Should be 0 if this is not the first call.
|
|
50
|
+
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
51
|
+
*/
|
|
52
|
+
write(e, i) {
|
|
53
|
+
switch (this.state) {
|
|
54
|
+
case s.EntityStart:
|
|
55
|
+
return e.charCodeAt(i) === c.NUM ? (this.state = s.NumericStart, this.consumed += 1, this.stateNumericStart(e, i + 1)) : (this.state = s.NamedEntity, this.stateNamedEntity(e, i));
|
|
56
|
+
case s.NumericStart:
|
|
57
|
+
return this.stateNumericStart(e, i);
|
|
58
|
+
case s.NumericDecimal:
|
|
59
|
+
return this.stateNumericDecimal(e, i);
|
|
60
|
+
case s.NumericHex:
|
|
61
|
+
return this.stateNumericHex(e, i);
|
|
62
|
+
case s.NamedEntity:
|
|
63
|
+
return this.stateNamedEntity(e, i);
|
|
54
64
|
}
|
|
55
|
-
|
|
56
|
-
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Switches between the numeric decimal and hexadecimal states.
|
|
68
|
+
*
|
|
69
|
+
* Equivalent to the `Numeric character reference state` in the HTML spec.
|
|
70
|
+
*
|
|
71
|
+
* @param str The string containing the entity (or a continuation of the entity).
|
|
72
|
+
* @param offset The current offset.
|
|
73
|
+
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
74
|
+
*/
|
|
75
|
+
stateNumericStart(e, i) {
|
|
76
|
+
return i >= e.length ? -1 : (e.charCodeAt(i) | x) === c.LOWER_X ? (this.state = s.NumericHex, this.consumed += 1, this.stateNumericHex(e, i + 1)) : (this.state = s.NumericDecimal, this.stateNumericDecimal(e, i));
|
|
77
|
+
}
|
|
78
|
+
addToNumericResult(e, i, r, n) {
|
|
79
|
+
if (i !== r) {
|
|
80
|
+
const u = r - i;
|
|
81
|
+
this.result = this.result * Math.pow(n, u) + parseInt(e.substr(i, u), n), this.consumed += u;
|
|
57
82
|
}
|
|
58
|
-
|
|
59
|
-
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Parses a hexadecimal numeric entity.
|
|
86
|
+
*
|
|
87
|
+
* Equivalent to the `Hexademical character reference state` in the HTML spec.
|
|
88
|
+
*
|
|
89
|
+
* @param str The string containing the entity (or a continuation of the entity).
|
|
90
|
+
* @param offset The current offset.
|
|
91
|
+
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
92
|
+
*/
|
|
93
|
+
stateNumericHex(e, i) {
|
|
94
|
+
const r = i;
|
|
95
|
+
for (; i < e.length; ) {
|
|
96
|
+
const n = e.charCodeAt(i);
|
|
97
|
+
if (d(n) || P(n))
|
|
98
|
+
i += 1;
|
|
99
|
+
else
|
|
100
|
+
return this.addToNumericResult(e, r, i, 16), this.emitNumericEntity(n, 3);
|
|
60
101
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
return t.charCodeAt(i) === c.NUM ? (this.state = a.NumericStart, this.consumed += 1, this.stateNumericStart(t, i + 1)) : (this.state = a.NamedEntity, this.stateNamedEntity(t, i));
|
|
81
|
-
case a.NumericStart:
|
|
82
|
-
return this.stateNumericStart(t, i);
|
|
83
|
-
case a.NumericDecimal:
|
|
84
|
-
return this.stateNumericDecimal(t, i);
|
|
85
|
-
case a.NumericHex:
|
|
86
|
-
return this.stateNumericHex(t, i);
|
|
87
|
-
case a.NamedEntity:
|
|
88
|
-
return this.stateNamedEntity(t, i);
|
|
89
|
-
}
|
|
90
|
-
}, e.prototype.stateNumericStart = function(t, i) {
|
|
91
|
-
return i >= t.length ? -1 : (t.charCodeAt(i) | U) === c.LOWER_X ? (this.state = a.NumericHex, this.consumed += 1, this.stateNumericHex(t, i + 1)) : (this.state = a.NumericDecimal, this.stateNumericDecimal(t, i));
|
|
92
|
-
}, e.prototype.addToNumericResult = function(t, i, r, n) {
|
|
93
|
-
if (i !== r) {
|
|
94
|
-
var d = r - i;
|
|
95
|
-
this.result = this.result * Math.pow(n, d) + parseInt(t.substr(i, d), n), this.consumed += d;
|
|
96
|
-
}
|
|
97
|
-
}, e.prototype.stateNumericHex = function(t, i) {
|
|
98
|
-
for (var r = i; i < t.length; ) {
|
|
99
|
-
var n = t.charCodeAt(i);
|
|
100
|
-
if (f(n) || p(n))
|
|
101
|
-
i += 1;
|
|
102
|
-
else
|
|
103
|
-
return this.addToNumericResult(t, r, i, 16), this.emitNumericEntity(n, 3);
|
|
104
|
-
}
|
|
105
|
-
return this.addToNumericResult(t, r, i, 16), -1;
|
|
106
|
-
}, e.prototype.stateNumericDecimal = function(t, i) {
|
|
107
|
-
for (var r = i; i < t.length; ) {
|
|
108
|
-
var n = t.charCodeAt(i);
|
|
109
|
-
if (f(n))
|
|
110
|
-
i += 1;
|
|
111
|
-
else
|
|
112
|
-
return this.addToNumericResult(t, r, i, 10), this.emitNumericEntity(n, 2);
|
|
113
|
-
}
|
|
114
|
-
return this.addToNumericResult(t, r, i, 10), -1;
|
|
115
|
-
}, e.prototype.emitNumericEntity = function(t, i) {
|
|
116
|
-
var r;
|
|
117
|
-
if (this.consumed <= i)
|
|
118
|
-
return (r = this.errors) === null || r === void 0 || r.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
119
|
-
if (t === c.SEMI)
|
|
120
|
-
this.consumed += 1;
|
|
121
|
-
else if (this.decodeMode === h.Strict)
|
|
122
|
-
return 0;
|
|
123
|
-
return this.emitCodePoint((0, N.replaceCodePoint)(this.result), this.consumed), this.errors && (t !== c.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
124
|
-
}, e.prototype.stateNamedEntity = function(t, i) {
|
|
125
|
-
for (var r = this.decodeTree, n = r[this.treeIndex], d = (n & l.VALUE_LENGTH) >> 14; i < t.length; i++, this.excess++) {
|
|
126
|
-
var o = t.charCodeAt(i);
|
|
127
|
-
if (this.treeIndex = M(r, n, this.treeIndex + Math.max(1, d), o), this.treeIndex < 0)
|
|
128
|
-
return this.result === 0 || // If we are parsing an attribute
|
|
129
|
-
this.decodeMode === h.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
130
|
-
(d === 0 || // And there should be no invalid characters.
|
|
131
|
-
W(o)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
132
|
-
if (n = r[this.treeIndex], d = (n & l.VALUE_LENGTH) >> 14, d !== 0) {
|
|
133
|
-
if (o === c.SEMI)
|
|
134
|
-
return this.emitNamedEntityData(this.treeIndex, d, this.consumed + this.excess);
|
|
135
|
-
this.decodeMode !== h.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
return -1;
|
|
139
|
-
}, e.prototype.emitNotTerminatedNamedEntity = function() {
|
|
140
|
-
var t, i = this, r = i.result, n = i.decodeTree, d = (n[r] & l.VALUE_LENGTH) >> 14;
|
|
141
|
-
return this.emitNamedEntityData(r, d, this.consumed), (t = this.errors) === null || t === void 0 || t.missingSemicolonAfterCharacterReference(), this.consumed;
|
|
142
|
-
}, e.prototype.emitNamedEntityData = function(t, i, r) {
|
|
143
|
-
var n = this.decodeTree;
|
|
144
|
-
return this.emitCodePoint(i === 1 ? n[t] & ~l.VALUE_LENGTH : n[t + 1], r), i === 3 && this.emitCodePoint(n[t + 2], r), r;
|
|
145
|
-
}, e.prototype.end = function() {
|
|
146
|
-
var t;
|
|
147
|
-
switch (this.state) {
|
|
148
|
-
case a.NamedEntity:
|
|
149
|
-
return this.result !== 0 && (this.decodeMode !== h.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
150
|
-
// Otherwise, emit a numeric entity if we have one.
|
|
151
|
-
case a.NumericDecimal:
|
|
152
|
-
return this.emitNumericEntity(0, 2);
|
|
153
|
-
case a.NumericHex:
|
|
154
|
-
return this.emitNumericEntity(0, 3);
|
|
155
|
-
case a.NumericStart:
|
|
156
|
-
return (t = this.errors) === null || t === void 0 || t.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
157
|
-
case a.EntityStart:
|
|
158
|
-
return 0;
|
|
159
|
-
}
|
|
160
|
-
}, e;
|
|
161
|
-
})()
|
|
162
|
-
);
|
|
163
|
-
u.EntityDecoder = R;
|
|
164
|
-
function T(e) {
|
|
165
|
-
var t = "", i = new R(e, function(r) {
|
|
166
|
-
return t += (0, N.fromCodePoint)(r);
|
|
167
|
-
});
|
|
168
|
-
return function(n, d) {
|
|
169
|
-
for (var o = 0, s = 0; (s = n.indexOf("&", s)) >= 0; ) {
|
|
170
|
-
t += n.slice(o, s), i.startEntity(d);
|
|
171
|
-
var _ = i.write(
|
|
172
|
-
n,
|
|
173
|
-
// Skip the "&"
|
|
174
|
-
s + 1
|
|
175
|
-
);
|
|
176
|
-
if (_ < 0) {
|
|
177
|
-
o = s + i.end();
|
|
178
|
-
break;
|
|
179
|
-
}
|
|
180
|
-
o = s + _, s = _ === 0 ? o + 1 : o;
|
|
181
|
-
}
|
|
182
|
-
var E = t + n.slice(o);
|
|
183
|
-
return t = "", E;
|
|
184
|
-
};
|
|
102
|
+
return this.addToNumericResult(e, r, i, 16), -1;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Parses a decimal numeric entity.
|
|
106
|
+
*
|
|
107
|
+
* Equivalent to the `Decimal character reference state` in the HTML spec.
|
|
108
|
+
*
|
|
109
|
+
* @param str The string containing the entity (or a continuation of the entity).
|
|
110
|
+
* @param offset The current offset.
|
|
111
|
+
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
112
|
+
*/
|
|
113
|
+
stateNumericDecimal(e, i) {
|
|
114
|
+
const r = i;
|
|
115
|
+
for (; i < e.length; ) {
|
|
116
|
+
const n = e.charCodeAt(i);
|
|
117
|
+
if (d(n))
|
|
118
|
+
i += 1;
|
|
119
|
+
else
|
|
120
|
+
return this.addToNumericResult(e, r, i, 10), this.emitNumericEntity(n, 2);
|
|
185
121
|
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
122
|
+
return this.addToNumericResult(e, r, i, 10), -1;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Validate and emit a numeric entity.
|
|
126
|
+
*
|
|
127
|
+
* Implements the logic from the `Hexademical character reference start
|
|
128
|
+
* state` and `Numeric character reference end state` in the HTML spec.
|
|
129
|
+
*
|
|
130
|
+
* @param lastCp The last code point of the entity. Used to see if the
|
|
131
|
+
* entity was terminated with a semicolon.
|
|
132
|
+
* @param expectedLength The minimum number of characters that should be
|
|
133
|
+
* consumed. Used to validate that at least one digit
|
|
134
|
+
* was consumed.
|
|
135
|
+
* @returns The number of characters that were consumed.
|
|
136
|
+
*/
|
|
137
|
+
emitNumericEntity(e, i) {
|
|
138
|
+
var r;
|
|
139
|
+
if (this.consumed <= i)
|
|
140
|
+
return (r = this.errors) === null || r === void 0 || r.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
141
|
+
if (e === c.SEMI)
|
|
142
|
+
this.consumed += 1;
|
|
143
|
+
else if (this.decodeMode === N.Strict)
|
|
144
|
+
return 0;
|
|
145
|
+
return this.emitCodePoint(A(this.result), this.consumed), this.errors && (e !== c.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Parses a named entity.
|
|
149
|
+
*
|
|
150
|
+
* Equivalent to the `Named character reference state` in the HTML spec.
|
|
151
|
+
*
|
|
152
|
+
* @param str The string containing the entity (or a continuation of the entity).
|
|
153
|
+
* @param offset The current offset.
|
|
154
|
+
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
155
|
+
*/
|
|
156
|
+
stateNamedEntity(e, i) {
|
|
157
|
+
const { decodeTree: r } = this;
|
|
158
|
+
let n = r[this.treeIndex], u = (n & E.VALUE_LENGTH) >> 14;
|
|
159
|
+
for (; i < e.length; i++, this.excess++) {
|
|
160
|
+
const m = e.charCodeAt(i);
|
|
161
|
+
if (this.treeIndex = T(r, n, this.treeIndex + Math.max(1, u), m), this.treeIndex < 0)
|
|
162
|
+
return this.result === 0 || // If we are parsing an attribute
|
|
163
|
+
this.decodeMode === N.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
164
|
+
(u === 0 || // And there should be no invalid characters.
|
|
165
|
+
U(m)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
166
|
+
if (n = r[this.treeIndex], u = (n & E.VALUE_LENGTH) >> 14, u !== 0) {
|
|
167
|
+
if (m === c.SEMI)
|
|
168
|
+
return this.emitNamedEntityData(this.treeIndex, u, this.consumed + this.excess);
|
|
169
|
+
this.decodeMode !== N.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
202
170
|
}
|
|
203
|
-
return -1;
|
|
204
171
|
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
172
|
+
return -1;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Emit a named entity that was not terminated with a semicolon.
|
|
176
|
+
*
|
|
177
|
+
* @returns The number of characters consumed.
|
|
178
|
+
*/
|
|
179
|
+
emitNotTerminatedNamedEntity() {
|
|
180
|
+
var e;
|
|
181
|
+
const { result: i, decodeTree: r } = this, n = (r[i] & E.VALUE_LENGTH) >> 14;
|
|
182
|
+
return this.emitNamedEntityData(i, n, this.consumed), (e = this.errors) === null || e === void 0 || e.missingSemicolonAfterCharacterReference(), this.consumed;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Emit a named entity.
|
|
186
|
+
*
|
|
187
|
+
* @param result The index of the entity in the decode tree.
|
|
188
|
+
* @param valueLength The number of bytes in the entity.
|
|
189
|
+
* @param consumed The number of characters consumed.
|
|
190
|
+
*
|
|
191
|
+
* @returns The number of characters consumed.
|
|
192
|
+
*/
|
|
193
|
+
emitNamedEntityData(e, i, r) {
|
|
194
|
+
const { decodeTree: n } = this;
|
|
195
|
+
return this.emitCodePoint(i === 1 ? n[e] & ~E.VALUE_LENGTH : n[e + 1], r), i === 3 && this.emitCodePoint(n[e + 2], r), r;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Signal to the parser that the end of the input was reached.
|
|
199
|
+
*
|
|
200
|
+
* Remaining data will be emitted and relevant errors will be produced.
|
|
201
|
+
*
|
|
202
|
+
* @returns The number of characters consumed.
|
|
203
|
+
*/
|
|
204
|
+
end() {
|
|
205
|
+
var e;
|
|
206
|
+
switch (this.state) {
|
|
207
|
+
case s.NamedEntity:
|
|
208
|
+
return this.result !== 0 && (this.decodeMode !== N.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
209
|
+
// Otherwise, emit a numeric entity if we have one.
|
|
210
|
+
case s.NumericDecimal:
|
|
211
|
+
return this.emitNumericEntity(0, 2);
|
|
212
|
+
case s.NumericHex:
|
|
213
|
+
return this.emitNumericEntity(0, 3);
|
|
214
|
+
case s.NumericStart:
|
|
215
|
+
return (e = this.errors) === null || e === void 0 || e.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
216
|
+
case s.EntityStart:
|
|
217
|
+
return 0;
|
|
209
218
|
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
function o(t) {
|
|
222
|
+
let e = "";
|
|
223
|
+
const i = new y(t, (r) => e += L(r));
|
|
224
|
+
return function(n, u) {
|
|
225
|
+
let m = 0, h = 0;
|
|
226
|
+
for (; (h = n.indexOf("&", h)) >= 0; ) {
|
|
227
|
+
e += n.slice(m, h), i.startEntity(u);
|
|
228
|
+
const l = i.write(
|
|
229
|
+
n,
|
|
230
|
+
// Skip the "&"
|
|
231
|
+
h + 1
|
|
232
|
+
);
|
|
233
|
+
if (l < 0) {
|
|
234
|
+
m = h + i.end();
|
|
235
|
+
break;
|
|
236
|
+
}
|
|
237
|
+
m = h + l, h = l === 0 ? m + 1 : m;
|
|
221
238
|
}
|
|
222
|
-
|
|
223
|
-
|
|
239
|
+
const a = e + n.slice(m);
|
|
240
|
+
return e = "", a;
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
function T(t, e, i, r) {
|
|
244
|
+
const n = (e & E.BRANCH_LENGTH) >> 7, u = e & E.JUMP_TABLE;
|
|
245
|
+
if (n === 0)
|
|
246
|
+
return u !== 0 && r === u ? i : -1;
|
|
247
|
+
if (u) {
|
|
248
|
+
const a = r - u;
|
|
249
|
+
return a < 0 || a >= n ? -1 : t[i + a] - 1;
|
|
250
|
+
}
|
|
251
|
+
let m = i, h = m + n - 1;
|
|
252
|
+
for (; m <= h; ) {
|
|
253
|
+
const a = m + h >>> 1, l = t[a];
|
|
254
|
+
if (l < r)
|
|
255
|
+
m = a + 1;
|
|
256
|
+
else if (l > r)
|
|
257
|
+
h = a - 1;
|
|
258
|
+
else
|
|
259
|
+
return t[a + n];
|
|
260
|
+
}
|
|
261
|
+
return -1;
|
|
224
262
|
}
|
|
263
|
+
o(R);
|
|
264
|
+
o(_);
|
|
225
265
|
export {
|
|
226
|
-
|
|
266
|
+
E as BinTrieFlags,
|
|
267
|
+
N as DecodingMode,
|
|
268
|
+
y as EntityDecoder,
|
|
269
|
+
T as determineBranch,
|
|
270
|
+
L as fromCodePoint,
|
|
271
|
+
R as htmlDecodeTree,
|
|
272
|
+
A as replaceCodePoint,
|
|
273
|
+
_ as xmlDecodeTree
|
|
227
274
|
};
|
|
@@ -1,56 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
};
|
|
43
|
-
function d(e) {
|
|
44
|
-
var f;
|
|
45
|
-
return e >= 55296 && e <= 57343 || e > 1114111 ? 65533 : (f = i.get(e)) !== null && f !== void 0 ? f : e;
|
|
46
|
-
}
|
|
47
|
-
r.replaceCodePoint = d;
|
|
48
|
-
function t(e) {
|
|
49
|
-
return (0, r.fromCodePoint)(d(e));
|
|
50
|
-
}
|
|
51
|
-
r.default = t;
|
|
52
|
-
})(n), n);
|
|
1
|
+
var x;
|
|
2
|
+
const a = /* @__PURE__ */ new Map([
|
|
3
|
+
[0, 65533],
|
|
4
|
+
// C1 Unicode control character reference replacements
|
|
5
|
+
[128, 8364],
|
|
6
|
+
[130, 8218],
|
|
7
|
+
[131, 402],
|
|
8
|
+
[132, 8222],
|
|
9
|
+
[133, 8230],
|
|
10
|
+
[134, 8224],
|
|
11
|
+
[135, 8225],
|
|
12
|
+
[136, 710],
|
|
13
|
+
[137, 8240],
|
|
14
|
+
[138, 352],
|
|
15
|
+
[139, 8249],
|
|
16
|
+
[140, 338],
|
|
17
|
+
[142, 381],
|
|
18
|
+
[145, 8216],
|
|
19
|
+
[146, 8217],
|
|
20
|
+
[147, 8220],
|
|
21
|
+
[148, 8221],
|
|
22
|
+
[149, 8226],
|
|
23
|
+
[150, 8211],
|
|
24
|
+
[151, 8212],
|
|
25
|
+
[152, 732],
|
|
26
|
+
[153, 8482],
|
|
27
|
+
[154, 353],
|
|
28
|
+
[155, 8250],
|
|
29
|
+
[156, 339],
|
|
30
|
+
[158, 382],
|
|
31
|
+
[159, 376]
|
|
32
|
+
]), n = (
|
|
33
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
|
|
34
|
+
(x = String.fromCodePoint) !== null && x !== void 0 ? x : function(f) {
|
|
35
|
+
let r = "";
|
|
36
|
+
return f > 65535 && (f -= 65536, r += String.fromCharCode(f >>> 10 & 1023 | 55296), f = 56320 | f & 1023), r += String.fromCharCode(f), r;
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
function t(f) {
|
|
40
|
+
var r;
|
|
41
|
+
return f >= 55296 && f <= 57343 || f > 1114111 ? 65533 : (r = a.get(f)) !== null && r !== void 0 ? r : f;
|
|
53
42
|
}
|
|
54
43
|
export {
|
|
55
|
-
|
|
44
|
+
n as fromCodePoint,
|
|
45
|
+
t as replaceCodePoint
|
|
56
46
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { __exports as u } from "./index-defaultRanges2.js";
|
|
2
|
-
import R from "./index-
|
|
3
|
-
import q from "./index-
|
|
4
|
-
import T from "./index-
|
|
5
|
-
import W from "./index-
|
|
6
|
-
import P from "./index-
|
|
7
|
-
import S from "./index-
|
|
8
|
-
import k from "./index-
|
|
9
|
-
import L from "./index-
|
|
10
|
-
import j from "./index-
|
|
11
|
-
import C from "./index-
|
|
2
|
+
import R from "./index-_virtual40.js";
|
|
3
|
+
import q from "./index-_virtual51.js";
|
|
4
|
+
import T from "./index-_virtual52.js";
|
|
5
|
+
import W from "./index-_virtual53.js";
|
|
6
|
+
import P from "./index-_virtual57.js";
|
|
7
|
+
import S from "./index-_virtual45.js";
|
|
8
|
+
import k from "./index-_virtual46.js";
|
|
9
|
+
import L from "./index-_virtual61.js";
|
|
10
|
+
import j from "./index-_virtual62.js";
|
|
11
|
+
import C from "./index-_virtual39.js";
|
|
12
12
|
var v;
|
|
13
13
|
function F() {
|
|
14
14
|
if (v) return u;
|
package/dist/index-dist4.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as a } from "./index-
|
|
1
|
+
import { __exports as a } from "./index-_virtual20.js";
|
|
2
2
|
import { __require as c } from "./index-DateRange2.js";
|
|
3
3
|
import { __require as l } from "./index-Calendar.js";
|
|
4
4
|
import { __require as o } from "./index-DateRangePicker2.js";
|
package/dist/index-dist5.js
CHANGED