@xhsreds/reds-rn-next 0.10.1-fix-pull-refresh202511272021 → 0.10.2-beta202512172040
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/coverage/.tmp/coverage-0.json +1 -1
- package/coverage/.tmp/coverage-1.json +1 -1
- package/coverage/.tmp/coverage-10.json +1 -1
- package/coverage/.tmp/coverage-11.json +1 -1
- package/coverage/.tmp/coverage-12.json +1 -1
- package/coverage/.tmp/coverage-14.json +1 -1
- package/coverage/.tmp/coverage-15.json +1 -1
- package/coverage/.tmp/coverage-16.json +1 -1
- package/coverage/.tmp/coverage-17.json +1 -1
- package/coverage/.tmp/coverage-18.json +1 -1
- package/coverage/.tmp/coverage-19.json +1 -1
- package/coverage/.tmp/coverage-2.json +1 -1
- package/coverage/.tmp/coverage-20.json +1 -1
- package/coverage/.tmp/coverage-21.json +1 -1
- package/coverage/.tmp/coverage-22.json +1 -1
- package/coverage/.tmp/coverage-23.json +1 -1
- package/coverage/.tmp/coverage-24.json +1 -1
- package/coverage/.tmp/coverage-25.json +1 -1
- package/coverage/.tmp/coverage-26.json +1 -1
- package/coverage/.tmp/coverage-27.json +1 -1
- package/coverage/.tmp/coverage-3.json +1 -1
- package/coverage/.tmp/coverage-31.json +1 -1
- package/coverage/.tmp/coverage-32.json +1 -1
- package/coverage/.tmp/coverage-33.json +1 -1
- package/coverage/.tmp/coverage-34.json +1 -1
- package/coverage/.tmp/coverage-35.json +1 -1
- package/coverage/.tmp/coverage-36.json +1 -1
- package/coverage/.tmp/coverage-37.json +1 -1
- package/coverage/.tmp/coverage-38.json +1 -1
- package/coverage/.tmp/coverage-39.json +1 -1
- package/coverage/.tmp/coverage-4.json +1 -1
- package/coverage/.tmp/coverage-40.json +1 -1
- package/coverage/.tmp/coverage-41.json +1 -1
- package/coverage/.tmp/coverage-42.json +1 -1
- package/coverage/.tmp/coverage-5.json +1 -1
- package/coverage/.tmp/coverage-6.json +1 -1
- package/coverage/.tmp/coverage-7.json +1 -1
- package/coverage/.tmp/coverage-8.json +1 -1
- package/coverage/.tmp/coverage-9.json +1 -1
- package/lib/cjs/_chunks/{DVfoVjpR.js → 47jfgoRG.js} +4 -2
- package/lib/cjs/_chunks/47jfgoRG.js.map +1 -0
- package/lib/cjs/_chunks/{DNr-ZG4Y.js → D-WEErpR.js} +2 -2
- package/lib/cjs/_chunks/{DNr-ZG4Y.js.map → D-WEErpR.js.map} +1 -1
- package/lib/cjs/_chunks/hA3qoGpS.js.map +1 -1
- package/lib/cjs/_chunks/{C9tZEm0t.js → nlVjgQi5.js} +8 -59
- package/lib/{esm/_chunks/CAkwE9ZD.js.map → cjs/_chunks/nlVjgQi5.js.map} +1 -1
- package/lib/cjs/components/ActionSheets/ActionSheets.js +22 -13
- package/lib/cjs/components/ActionSheets/ActionSheets.js.map +1 -1
- package/lib/cjs/components/ActionSheets/ActionSheetsItem.js +1 -1
- package/lib/cjs/components/ActionSheets/api.js +2 -2
- package/lib/cjs/components/ActionSheets/hooks.js +2 -2
- package/lib/cjs/components/ActionSheets/index.js +2 -2
- package/lib/cjs/components/ActionSheets/styles.js +1 -0
- package/lib/cjs/components/ActionSheets/styles.js.map +1 -1
- package/lib/cjs/components/ActionablePopover/ActionablePopover.js +3 -3
- package/lib/cjs/components/ActionablePopover/ActionablePopover.js.map +1 -1
- package/lib/cjs/components/ActionablePopover/index.js +1 -1
- package/lib/cjs/components/Alert/Alert.js +1 -1
- package/lib/cjs/components/Alert/hooks/alert.js +1 -1
- package/lib/cjs/components/Alert/index.js +1 -1
- package/lib/cjs/components/Alert/styles.js +1 -1
- package/lib/cjs/components/Avatar/Avatar.js +1 -1
- package/lib/cjs/components/Avatar/index.js +1 -1
- package/lib/cjs/components/Avatar/styles.js +6 -6
- package/lib/cjs/components/Avatar/styles.js.map +1 -1
- package/lib/cjs/components/AvatarGroup/AvatarGroup.js +2 -2
- package/lib/cjs/components/AvatarGroup/index.js +1 -1
- package/lib/cjs/components/Badge/Badge.js +1 -1
- package/lib/cjs/components/Badge/index.js +1 -1
- package/lib/cjs/components/Badge/styles.js +1 -1
- package/lib/cjs/components/BottomBar/BottomBar.js +1 -1
- package/lib/cjs/components/BottomBar/index.js +1 -1
- package/lib/cjs/components/BottomBar/styles.js +1 -1
- package/lib/cjs/components/BottomBar/styles.js.map +1 -1
- package/lib/cjs/components/Button/Button.js +1 -1
- package/lib/cjs/components/Button/Viewable.js +1 -1
- package/lib/cjs/components/Button/index.js +1 -1
- package/lib/cjs/components/Button/styleMap.js +1 -1
- package/lib/cjs/components/Carousel/Carousel.js +1 -1
- package/lib/cjs/components/Carousel/index.js +1 -1
- package/lib/cjs/components/CheckBoxGroup/CheckBox.js +1 -1
- package/lib/cjs/components/CheckBoxGroup/CheckBoxGroup.js +1 -1
- package/lib/cjs/components/CheckBoxGroup/index.js +1 -1
- package/lib/cjs/components/CheckBoxGroup/styles.js +1 -1
- package/lib/cjs/components/Collapse/Collapse.js +1 -1
- package/lib/cjs/components/Collapse/Item/Item.js +1 -1
- package/lib/cjs/components/Collapse/Item/styles.js +1 -1
- package/lib/cjs/components/Collapse/index.js +1 -1
- package/lib/cjs/components/ConfigProvider/ConfigProvider.js +1 -1
- package/lib/cjs/components/ConfigProvider/hooks/ConfigCache/ConfigCache.js +1 -1
- package/lib/cjs/components/ConfigProvider/hooks/ConfigCache/index.js +1 -1
- package/lib/cjs/components/ConfigProvider/hooks/themeToken/index.js +1 -1
- package/lib/cjs/components/ConfigProvider/hooks/themeToken/useThemeToken.js +1 -1
- package/lib/cjs/components/ConfigProvider/index.js +1 -1
- package/lib/cjs/components/DatePicker/DatePicker.js +2 -2
- package/lib/cjs/components/DatePicker/api.js +2 -2
- package/lib/cjs/components/DatePicker/index.js +2 -2
- package/lib/cjs/components/Divider/Divider.js +34 -13
- package/lib/cjs/components/Divider/Divider.js.map +1 -1
- package/lib/cjs/components/Divider/index.js +4 -4
- package/lib/cjs/components/Divider/styles.js +37 -31
- package/lib/cjs/components/Divider/styles.js.map +1 -1
- package/lib/cjs/components/DropDown/DropDown.js +1 -1
- package/lib/cjs/components/DropDown/DropDownItem.js +1 -1
- package/lib/cjs/components/DropDown/index.js +1 -1
- package/lib/cjs/components/Empty/Empty.js +1 -1
- package/lib/cjs/components/Empty/index.js +1 -1
- package/lib/cjs/components/Empty/styles.js +1 -1
- package/lib/cjs/components/FAB/FAB.js +1 -1
- package/lib/cjs/components/FAB/index.js +1 -1
- package/lib/cjs/components/Form/Form.js +1 -1
- package/lib/cjs/components/Form/FormItem.js +1 -1
- package/lib/cjs/components/Form/index.js +1 -1
- package/lib/cjs/components/Form/styles.js +1 -1
- package/lib/cjs/components/Image/Image.js +14 -14
- package/lib/cjs/components/Image/Image.js.map +1 -1
- package/lib/cjs/components/Image/Image69.js +1 -1
- package/lib/cjs/components/Image/VisibilitySensor.js +1 -1
- package/lib/cjs/components/Image/hook/index.js +1 -1
- package/lib/cjs/components/Image/index.js +1 -1
- package/lib/cjs/components/Image/queryCacheBatcher.js +1 -1
- package/lib/cjs/components/Image/utils.js +1 -1
- package/lib/cjs/components/ImagePreview/ImagePreview.js +1 -1
- package/lib/cjs/components/ImagePreview/api.js +1 -1
- package/lib/cjs/components/ImagePreview/index.js +1 -1
- package/lib/cjs/components/LanguageProvider/hooks/useLanguage.js +1 -1
- package/lib/cjs/components/LanguageProvider/index.js +1 -1
- package/lib/cjs/components/List/List.js +1 -1
- package/lib/cjs/components/List/ListItem/ListItem.js +5 -3
- package/lib/cjs/components/List/ListItem/ListItem.js.map +1 -1
- package/lib/cjs/components/List/index.js +1 -1
- package/lib/cjs/components/List/styles.js +1 -1
- package/lib/cjs/components/MiniSnackBar/MiniSnackBar.js +1 -1
- package/lib/cjs/components/MiniSnackBar/index.js +1 -1
- package/lib/cjs/components/MiniSnackBar/styles.js +1 -1
- package/lib/cjs/components/NavigationBar/NavigationBar.js +1 -1
- package/lib/cjs/components/NavigationBar/index.js +1 -1
- package/lib/cjs/components/NavigationBar/styles.js +1 -1
- package/lib/cjs/components/NoticeBar/NoticeBar.js +3 -2
- package/lib/cjs/components/NoticeBar/NoticeBar.js.map +1 -1
- package/lib/cjs/components/NoticeBar/index.js +1 -1
- package/lib/cjs/components/Picker/Picker.js +2 -2
- package/lib/cjs/components/Picker/api.js +2 -2
- package/lib/cjs/components/Picker/index.js +2 -2
- package/lib/cjs/components/PickerView/PickerView.js +1 -1
- package/lib/cjs/components/PickerView/Wheel.js +53 -6
- package/lib/cjs/components/PickerView/Wheel.js.map +1 -1
- package/lib/cjs/components/PickerView/index.js +1 -1
- package/lib/cjs/components/Popover/Popover.js +1 -1
- package/lib/cjs/components/Popover/index.js +1 -1
- package/lib/cjs/components/Portal/core/PortalHost.js +3 -1
- package/lib/cjs/components/Portal/core/PortalHost.js.map +1 -1
- package/lib/cjs/components/Portal/core/PortalProvider.js +1 -1
- package/lib/cjs/components/Portal/index.js +1 -1
- package/lib/cjs/components/Progress/Progress.js +1 -1
- package/lib/cjs/components/Progress/index.js +1 -1
- package/lib/cjs/components/Progress/styles.js +1 -1
- package/lib/cjs/components/ProgressIndicator/ProgressIndicator.js +1 -1
- package/lib/cjs/components/ProgressIndicator/index.js +1 -1
- package/lib/cjs/components/ProgressIndicator/styles.js +1 -1
- package/lib/cjs/components/PullRefresh/PullRefresh.js +1 -1
- package/lib/cjs/components/PullRefresh/component.js +1 -1
- package/lib/cjs/components/PullRefresh/index.js +1 -1
- package/lib/cjs/components/Radio/Radio.js +7 -2394
- package/lib/cjs/components/Radio/Radio.js.map +1 -1
- package/lib/cjs/components/Radio/RadioGroup.js +1 -1
- package/lib/cjs/components/Radio/index.js +4 -3
- package/lib/cjs/components/Radio/index.js.map +1 -1
- package/lib/cjs/components/Radio/styles.js +6 -8
- package/lib/cjs/components/Radio/styles.js.map +1 -1
- package/lib/cjs/components/Rate/Rate.js +1 -1
- package/lib/cjs/components/Rate/index.js +1 -1
- package/lib/cjs/components/Result/Result.js +1 -1
- package/lib/cjs/components/Result/index.js +1 -1
- package/lib/cjs/components/Result/styles.js +1 -1
- package/lib/cjs/components/Search/Search.js +1 -1
- package/lib/cjs/components/Search/index.js +1 -1
- package/lib/cjs/components/Search/styles.js +1 -1
- package/lib/cjs/components/SegmentedControl/SegmentedControl.js +1 -1
- package/lib/cjs/components/SegmentedControl/index.js +1 -1
- package/lib/cjs/components/Sheets/AnimatedSheets.js +19 -14
- package/lib/cjs/components/Sheets/AnimatedSheets.js.map +1 -1
- package/lib/cjs/components/Sheets/Sheets.js +2 -2
- package/lib/cjs/components/Sheets/api.js +2 -2
- package/lib/cjs/components/Sheets/index.js +2 -2
- package/lib/cjs/components/Sheets/interface/index.js +1 -1
- package/lib/cjs/components/Skeleton/Item/SkeletonItem.js +1 -1
- package/lib/cjs/components/Skeleton/Item/SkeletonItem69.js +1 -1
- package/lib/cjs/components/Skeleton/Skeleton.js +1 -1
- package/lib/cjs/components/Skeleton/Skeleton69.js +1 -1
- package/lib/cjs/components/Skeleton/index.js +1 -1
- package/lib/cjs/components/Slider/Slider.js +75 -35
- package/lib/cjs/components/Slider/Slider.js.map +1 -1
- package/lib/cjs/components/Slider/index.js +1 -1
- package/lib/cjs/components/SlimAlert/Alert.js +1 -1
- package/lib/cjs/components/SlimAlert/AlertContent.js +1 -1
- package/lib/cjs/components/SlimAlert/AlertFooter.js +1 -1
- package/lib/cjs/components/SlimAlert/index.js +1 -1
- package/lib/cjs/components/SlimAlert/styles.js +1 -1
- package/lib/cjs/components/SlimNavigationBar/NavigationBar.js +1 -1
- package/lib/cjs/components/SlimNavigationBar/NavigationBarAction.js +1 -1
- package/lib/cjs/components/SlimNavigationBar/index.js +1 -1
- package/lib/cjs/components/SlimNavigationBar/styles.js +1 -1
- package/lib/cjs/components/SlimSheets/AnimatedSheets.js +1 -1
- package/lib/cjs/components/SlimSheets/AnimatedSheetsAction.js +1 -1
- package/lib/cjs/components/SlimSheets/AnimatedSheetsHeader.js +1 -1
- package/lib/cjs/components/SlimSheets/DragAnimatedSheets.js +1 -1
- package/lib/cjs/components/SlimSheets/index.js +1 -1
- package/lib/cjs/components/SlimTabs/BadgeSlimTabItem.js +1 -1
- package/lib/cjs/components/SlimTabs/SlimTab.js +1 -1
- package/lib/cjs/components/SlimTabs/SlimTabItem.js +1 -1
- package/lib/cjs/components/SlimTabs/SlimTabItemLabel.js +1 -1
- package/lib/cjs/components/SlimTabs/SlimTabItemValue.js +1 -1
- package/lib/cjs/components/SlimTabs/SlimTabList.js +1 -1
- package/lib/cjs/components/SlimTabs/index.js +1 -1
- package/lib/cjs/components/SlimTabs/styles.js +1 -1
- package/lib/cjs/components/SnackBar/SnackBar.js +1 -1
- package/lib/cjs/components/SnackBar/index.js +1 -1
- package/lib/cjs/components/SnackBar/styles.js +1 -1
- package/lib/cjs/components/Stepper/Stepper.js +2 -2
- package/lib/cjs/components/Stepper/Stepper.js.map +1 -1
- package/lib/cjs/components/Stepper/index.js +1 -1
- package/lib/cjs/components/Stepper/styles.js +2 -2
- package/lib/cjs/components/Stepper/styles.js.map +1 -1
- package/lib/cjs/components/Switch/Switch.js +1 -1
- package/lib/cjs/components/Switch/index.js +1 -1
- package/lib/cjs/components/Tab/Tabs.js +1 -1
- package/lib/cjs/components/Tab/index.js +1 -1
- package/lib/cjs/components/Tab/styles.js +1 -1
- package/lib/cjs/components/TabBar/TabBar.js +1 -1
- package/lib/cjs/components/TabBar/index.js +1 -1
- package/lib/cjs/components/TabBar/styles.js +1 -1
- package/lib/cjs/components/Tag/Tag.js +1 -1
- package/lib/cjs/components/Tag/index.js +1 -1
- package/lib/cjs/components/Text/Text.js +1 -1
- package/lib/cjs/components/Text/Viewable.js +1 -1
- package/lib/cjs/components/Text/hooks/cloneContainer.js +1 -1
- package/lib/cjs/components/Text/hooks/index.js +1 -1
- package/lib/cjs/components/Text/hooks/loadFontFromFile.js +2 -2
- package/lib/cjs/components/Text/hooks/loadFontFromFile.js.map +1 -1
- package/lib/cjs/components/Text/index.js +1 -1
- package/lib/cjs/components/Text/styles.js +1 -1
- package/lib/cjs/components/TextField/TextField.js +1 -1
- package/lib/cjs/components/TextField/index.js +1 -1
- package/lib/cjs/components/TextField/styles.js +1 -1
- package/lib/cjs/components/TextView/TextView.js +7 -4
- package/lib/cjs/components/TextView/TextView.js.map +1 -1
- package/lib/cjs/components/TextView/index.js +1 -1
- package/lib/cjs/components/TextView/styles.js +1 -1
- package/lib/cjs/components/Toast/Toast.js +1 -1
- package/lib/cjs/components/Toast/api.js +1 -1
- package/lib/cjs/components/Toast/index.js +1 -1
- package/lib/cjs/components/Toast/styles.js +1 -1
- package/lib/cjs/components/Uploader/Uploader.js +3 -3
- package/lib/cjs/components/Uploader/Uploader.js.map +1 -1
- package/lib/cjs/components/Uploader/index.js +2 -2
- package/lib/cjs/components/Uploader/interface/index.js +2 -2
- package/lib/cjs/components/Uploader/styles.js +2 -2
- package/lib/cjs/components/Uploader/utils.js +1 -1
- package/lib/cjs/index.js +4 -3
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/pvCount/pvData.js +1 -1
- package/lib/esm/_chunks/C0MWVrjO.js.map +1 -1
- package/lib/esm/_chunks/{eYElHgNc.js → CMrgSNfs.js} +2 -2
- package/lib/esm/_chunks/{eYElHgNc.js.map → CMrgSNfs.js.map} +1 -1
- package/lib/esm/_chunks/{C4jyXYEi.js → DMjPllnU.js} +4 -2
- package/lib/esm/_chunks/DMjPllnU.js.map +1 -0
- package/lib/esm/_chunks/{CAkwE9ZD.js → ZEfofTDH.js} +9 -59
- package/lib/{cjs/_chunks/C9tZEm0t.js.map → esm/_chunks/ZEfofTDH.js.map} +1 -1
- package/lib/esm/components/ActionSheets/ActionSheets.js +22 -13
- package/lib/esm/components/ActionSheets/ActionSheets.js.map +1 -1
- package/lib/esm/components/ActionSheets/ActionSheetsItem.js +1 -1
- package/lib/esm/components/ActionSheets/api.js +2 -2
- package/lib/esm/components/ActionSheets/hooks.js +2 -2
- package/lib/esm/components/ActionSheets/index.js +2 -2
- package/lib/esm/components/ActionSheets/styles.js +1 -0
- package/lib/esm/components/ActionSheets/styles.js.map +1 -1
- package/lib/esm/components/ActionablePopover/ActionablePopover.js +2 -2
- package/lib/esm/components/ActionablePopover/ActionablePopover.js.map +1 -1
- package/lib/esm/components/ActionablePopover/index.js +1 -1
- package/lib/esm/components/Alert/Alert.js +1 -1
- package/lib/esm/components/Alert/hooks/alert.js +1 -1
- package/lib/esm/components/Alert/index.js +1 -1
- package/lib/esm/components/Alert/styles.js +1 -1
- package/lib/esm/components/Avatar/Avatar.js +1 -1
- package/lib/esm/components/Avatar/index.js +1 -1
- package/lib/esm/components/Avatar/styles.js +6 -6
- package/lib/esm/components/Avatar/styles.js.map +1 -1
- package/lib/esm/components/AvatarGroup/AvatarGroup.js +2 -2
- package/lib/esm/components/AvatarGroup/index.js +1 -1
- package/lib/esm/components/Badge/Badge.js +1 -1
- package/lib/esm/components/Badge/index.js +1 -1
- package/lib/esm/components/Badge/styles.js +1 -1
- package/lib/esm/components/BottomBar/BottomBar.js +1 -1
- package/lib/esm/components/BottomBar/index.js +1 -1
- package/lib/esm/components/BottomBar/styles.js +1 -1
- package/lib/esm/components/BottomBar/styles.js.map +1 -1
- package/lib/esm/components/Button/Button.js +1 -1
- package/lib/esm/components/Button/Viewable.js +1 -1
- package/lib/esm/components/Button/index.js +1 -1
- package/lib/esm/components/Button/styleMap.js +1 -1
- package/lib/esm/components/Carousel/Carousel.js +1 -1
- package/lib/esm/components/Carousel/index.js +1 -1
- package/lib/esm/components/CheckBoxGroup/CheckBox.js +1 -1
- package/lib/esm/components/CheckBoxGroup/CheckBoxGroup.js +1 -1
- package/lib/esm/components/CheckBoxGroup/index.js +1 -1
- package/lib/esm/components/CheckBoxGroup/styles.js +1 -1
- package/lib/esm/components/Collapse/Collapse.js +1 -1
- package/lib/esm/components/Collapse/Item/Item.js +1 -1
- package/lib/esm/components/Collapse/Item/styles.js +1 -1
- package/lib/esm/components/Collapse/index.js +1 -1
- package/lib/esm/components/ConfigProvider/ConfigProvider.js +1 -1
- package/lib/esm/components/ConfigProvider/hooks/ConfigCache/ConfigCache.js +1 -1
- package/lib/esm/components/ConfigProvider/hooks/ConfigCache/index.js +1 -1
- package/lib/esm/components/ConfigProvider/hooks/themeToken/index.js +1 -1
- package/lib/esm/components/ConfigProvider/hooks/themeToken/useThemeToken.js +1 -1
- package/lib/esm/components/ConfigProvider/index.js +1 -1
- package/lib/esm/components/DatePicker/DatePicker.js +2 -2
- package/lib/esm/components/DatePicker/api.js +2 -2
- package/lib/esm/components/DatePicker/index.js +2 -2
- package/lib/esm/components/Divider/Divider.js +35 -14
- package/lib/esm/components/Divider/Divider.js.map +1 -1
- package/lib/esm/components/Divider/index.js +4 -4
- package/lib/esm/components/Divider/styles.js +37 -31
- package/lib/esm/components/Divider/styles.js.map +1 -1
- package/lib/esm/components/DropDown/DropDown.js +1 -1
- package/lib/esm/components/DropDown/DropDownItem.js +1 -1
- package/lib/esm/components/DropDown/index.js +1 -1
- package/lib/esm/components/Empty/Empty.js +1 -1
- package/lib/esm/components/Empty/index.js +1 -1
- package/lib/esm/components/Empty/styles.js +1 -1
- package/lib/esm/components/FAB/FAB.js +1 -1
- package/lib/esm/components/FAB/index.js +1 -1
- package/lib/esm/components/Form/Form.js +1 -1
- package/lib/esm/components/Form/FormItem.js +1 -1
- package/lib/esm/components/Form/index.js +1 -1
- package/lib/esm/components/Form/styles.js +1 -1
- package/lib/esm/components/Image/Image.js +14 -14
- package/lib/esm/components/Image/Image.js.map +1 -1
- package/lib/esm/components/Image/Image69.js +1 -1
- package/lib/esm/components/Image/VisibilitySensor.js +1 -1
- package/lib/esm/components/Image/hook/index.js +1 -1
- package/lib/esm/components/Image/index.js +1 -1
- package/lib/esm/components/Image/queryCacheBatcher.js +1 -1
- package/lib/esm/components/Image/utils.js +1 -1
- package/lib/esm/components/ImagePreview/ImagePreview.js +1 -1
- package/lib/esm/components/ImagePreview/api.js +1 -1
- package/lib/esm/components/ImagePreview/index.js +1 -1
- package/lib/esm/components/LanguageProvider/hooks/useLanguage.js +1 -1
- package/lib/esm/components/LanguageProvider/index.js +1 -1
- package/lib/esm/components/List/List.js +1 -1
- package/lib/esm/components/List/ListItem/ListItem.js +5 -3
- package/lib/esm/components/List/ListItem/ListItem.js.map +1 -1
- package/lib/esm/components/List/index.js +1 -1
- package/lib/esm/components/List/styles.js +1 -1
- package/lib/esm/components/MiniSnackBar/MiniSnackBar.js +1 -1
- package/lib/esm/components/MiniSnackBar/index.js +1 -1
- package/lib/esm/components/MiniSnackBar/styles.js +1 -1
- package/lib/esm/components/NavigationBar/NavigationBar.js +1 -1
- package/lib/esm/components/NavigationBar/index.js +1 -1
- package/lib/esm/components/NavigationBar/styles.js +1 -1
- package/lib/esm/components/NoticeBar/NoticeBar.js +3 -2
- package/lib/esm/components/NoticeBar/NoticeBar.js.map +1 -1
- package/lib/esm/components/NoticeBar/index.js +1 -1
- package/lib/esm/components/Picker/Picker.js +2 -2
- package/lib/esm/components/Picker/api.js +2 -2
- package/lib/esm/components/Picker/index.js +2 -2
- package/lib/esm/components/PickerView/PickerView.js +1 -1
- package/lib/esm/components/PickerView/Wheel.js +53 -6
- package/lib/esm/components/PickerView/Wheel.js.map +1 -1
- package/lib/esm/components/PickerView/index.js +1 -1
- package/lib/esm/components/Popover/Popover.js +1 -1
- package/lib/esm/components/Popover/index.js +1 -1
- package/lib/esm/components/Portal/core/PortalHost.js +3 -1
- package/lib/esm/components/Portal/core/PortalHost.js.map +1 -1
- package/lib/esm/components/Portal/core/PortalProvider.js +1 -1
- package/lib/esm/components/Portal/index.js +1 -1
- package/lib/esm/components/Progress/Progress.js +1 -1
- package/lib/esm/components/Progress/index.js +1 -1
- package/lib/esm/components/Progress/styles.js +1 -1
- package/lib/esm/components/ProgressIndicator/ProgressIndicator.js +1 -1
- package/lib/esm/components/ProgressIndicator/index.js +1 -1
- package/lib/esm/components/ProgressIndicator/styles.js +1 -1
- package/lib/esm/components/PullRefresh/PullRefresh.js +1 -1
- package/lib/esm/components/PullRefresh/component.js +1 -1
- package/lib/esm/components/PullRefresh/index.js +1 -1
- package/lib/esm/components/Radio/Radio.js +8 -2395
- package/lib/esm/components/Radio/Radio.js.map +1 -1
- package/lib/esm/components/Radio/RadioGroup.js +1 -1
- package/lib/esm/components/Radio/index.js +4 -3
- package/lib/esm/components/Radio/index.js.map +1 -1
- package/lib/esm/components/Radio/styles.js +6 -8
- package/lib/esm/components/Radio/styles.js.map +1 -1
- package/lib/esm/components/Rate/Rate.js +1 -1
- package/lib/esm/components/Rate/index.js +1 -1
- package/lib/esm/components/Result/Result.js +1 -1
- package/lib/esm/components/Result/index.js +1 -1
- package/lib/esm/components/Result/styles.js +1 -1
- package/lib/esm/components/Search/Search.js +1 -1
- package/lib/esm/components/Search/index.js +1 -1
- package/lib/esm/components/Search/styles.js +1 -1
- package/lib/esm/components/SegmentedControl/SegmentedControl.js +1 -1
- package/lib/esm/components/SegmentedControl/index.js +1 -1
- package/lib/esm/components/Sheets/AnimatedSheets.js +19 -14
- package/lib/esm/components/Sheets/AnimatedSheets.js.map +1 -1
- package/lib/esm/components/Sheets/Sheets.js +2 -2
- package/lib/esm/components/Sheets/api.js +2 -2
- package/lib/esm/components/Sheets/index.js +2 -2
- package/lib/esm/components/Sheets/interface/index.js +1 -1
- package/lib/esm/components/Skeleton/Item/SkeletonItem.js +1 -1
- package/lib/esm/components/Skeleton/Item/SkeletonItem69.js +1 -1
- package/lib/esm/components/Skeleton/Skeleton.js +1 -1
- package/lib/esm/components/Skeleton/Skeleton69.js +1 -1
- package/lib/esm/components/Skeleton/index.js +1 -1
- package/lib/esm/components/Slider/Slider.js +77 -37
- package/lib/esm/components/Slider/Slider.js.map +1 -1
- package/lib/esm/components/Slider/index.js +1 -1
- package/lib/esm/components/SlimAlert/Alert.js +1 -1
- package/lib/esm/components/SlimAlert/AlertContent.js +1 -1
- package/lib/esm/components/SlimAlert/AlertFooter.js +1 -1
- package/lib/esm/components/SlimAlert/index.js +1 -1
- package/lib/esm/components/SlimAlert/styles.js +1 -1
- package/lib/esm/components/SlimNavigationBar/NavigationBar.js +1 -1
- package/lib/esm/components/SlimNavigationBar/NavigationBarAction.js +1 -1
- package/lib/esm/components/SlimNavigationBar/index.js +1 -1
- package/lib/esm/components/SlimNavigationBar/styles.js +1 -1
- package/lib/esm/components/SlimSheets/AnimatedSheets.js +1 -1
- package/lib/esm/components/SlimSheets/AnimatedSheetsAction.js +1 -1
- package/lib/esm/components/SlimSheets/AnimatedSheetsHeader.js +1 -1
- package/lib/esm/components/SlimSheets/DragAnimatedSheets.js +1 -1
- package/lib/esm/components/SlimSheets/index.js +1 -1
- package/lib/esm/components/SlimTabs/BadgeSlimTabItem.js +1 -1
- package/lib/esm/components/SlimTabs/SlimTab.js +1 -1
- package/lib/esm/components/SlimTabs/SlimTabItem.js +1 -1
- package/lib/esm/components/SlimTabs/SlimTabItemLabel.js +1 -1
- package/lib/esm/components/SlimTabs/SlimTabItemValue.js +1 -1
- package/lib/esm/components/SlimTabs/SlimTabList.js +1 -1
- package/lib/esm/components/SlimTabs/index.js +1 -1
- package/lib/esm/components/SlimTabs/styles.js +1 -1
- package/lib/esm/components/SnackBar/SnackBar.js +1 -1
- package/lib/esm/components/SnackBar/index.js +1 -1
- package/lib/esm/components/SnackBar/styles.js +1 -1
- package/lib/esm/components/Stepper/Stepper.js +2 -2
- package/lib/esm/components/Stepper/Stepper.js.map +1 -1
- package/lib/esm/components/Stepper/index.js +1 -1
- package/lib/esm/components/Stepper/styles.js +2 -2
- package/lib/esm/components/Stepper/styles.js.map +1 -1
- package/lib/esm/components/Switch/Switch.js +1 -1
- package/lib/esm/components/Switch/index.js +1 -1
- package/lib/esm/components/Tab/Tabs.js +1 -1
- package/lib/esm/components/Tab/index.js +1 -1
- package/lib/esm/components/Tab/styles.js +1 -1
- package/lib/esm/components/TabBar/TabBar.js +1 -1
- package/lib/esm/components/TabBar/index.js +1 -1
- package/lib/esm/components/TabBar/styles.js +1 -1
- package/lib/esm/components/Tag/Tag.js +1 -1
- package/lib/esm/components/Tag/index.js +1 -1
- package/lib/esm/components/Text/Text.js +1 -1
- package/lib/esm/components/Text/Viewable.js +1 -1
- package/lib/esm/components/Text/hooks/cloneContainer.js +1 -1
- package/lib/esm/components/Text/hooks/index.js +1 -1
- package/lib/esm/components/Text/hooks/loadFontFromFile.js +2 -2
- package/lib/esm/components/Text/hooks/loadFontFromFile.js.map +1 -1
- package/lib/esm/components/Text/index.js +1 -1
- package/lib/esm/components/Text/styles.js +1 -1
- package/lib/esm/components/TextField/TextField.js +1 -1
- package/lib/esm/components/TextField/index.js +1 -1
- package/lib/esm/components/TextField/styles.js +1 -1
- package/lib/esm/components/TextView/TextView.js +7 -4
- package/lib/esm/components/TextView/TextView.js.map +1 -1
- package/lib/esm/components/TextView/index.js +1 -1
- package/lib/esm/components/TextView/styles.js +1 -1
- package/lib/esm/components/Toast/Toast.js +1 -1
- package/lib/esm/components/Toast/api.js +1 -1
- package/lib/esm/components/Toast/index.js +1 -1
- package/lib/esm/components/Toast/styles.js +1 -1
- package/lib/esm/components/Uploader/Uploader.js +3 -3
- package/lib/esm/components/Uploader/Uploader.js.map +1 -1
- package/lib/esm/components/Uploader/index.js +2 -2
- package/lib/esm/components/Uploader/interface/index.js +2 -2
- package/lib/esm/components/Uploader/styles.js +2 -2
- package/lib/esm/components/Uploader/utils.js +1 -1
- package/lib/esm/index.js +4 -3
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/pvCount/pvData.js +1 -1
- package/lib/src/components/ActionSheets/styles.d.ts +1 -0
- package/lib/src/components/BottomBar/styles.d.ts +1 -1
- package/lib/src/components/Divider/styles.d.ts +3 -2
- package/lib/src/components/List/ListItem/ListItem.d.ts +2 -0
- package/lib/src/components/Sheets/Sheets.d.ts +4 -3
- package/lib/src/components/Sheets/interface/index.d.ts +16 -0
- package/lib/src/components/Slider/Slider.d.ts +1 -1
- package/lib/src/components/Stepper/interface/index.d.ts +1 -0
- package/lib/src/components/Stepper/styles.d.ts +2 -2
- package/lib/types/components/ActionSheets/styles.d.ts +1 -0
- package/lib/types/components/BottomBar/styles.d.ts +1 -1
- package/lib/types/components/Divider/styles.d.ts +3 -2
- package/lib/types/components/List/ListItem/ListItem.d.ts +2 -0
- package/lib/types/components/Sheets/Sheets.d.ts +4 -3
- package/lib/types/components/Sheets/interface/index.d.ts +16 -0
- package/lib/types/components/Slider/Slider.d.ts +1 -1
- package/lib/types/components/Stepper/interface/index.d.ts +1 -0
- package/lib/types/components/Stepper/styles.d.ts +2 -2
- package/package.json +2 -2
- package/rollup.config.js +7 -1
- package/src/components/ActionSheets/ActionSheets.tsx +25 -12
- package/src/components/ActionSheets/doc/index.mdx +4 -4
- package/src/components/ActionSheets/styles.ts +1 -0
- package/src/components/ActionablePopover/ActionablePopover.tsx +10 -1
- package/src/components/ActionablePopover/doc/index.mdx +5 -5
- package/src/components/Alert/demo/index.tsx +2 -2
- package/src/components/Alert/doc/index.mdx +7 -7
- package/src/components/Avatar/styles.ts +5 -4
- package/src/components/BottomBar/styles.ts +1 -1
- package/src/components/Button/doc/index.mdx +4 -4
- package/src/components/Carousel/doc/index.mdx +4 -4
- package/src/components/CheckBoxGroup/doc/index.mdx +3 -3
- package/src/components/Collapse/doc/index.mdx +3 -3
- package/src/components/DatePicker/demo/index.tsx +26 -0
- package/src/components/DatePicker/doc/index.mdx +21 -21
- package/src/components/Divider/Divider.tsx +29 -9
- package/src/components/Divider/demo/index.tsx +12 -6
- package/src/components/Divider/styles.ts +33 -30
- package/src/components/DropDown/doc/index.mdx +6 -6
- package/src/components/Empty/doc/index.mdx +3 -3
- package/src/components/FAB/doc/index.mdx +3 -3
- package/src/components/Form/doc/index.mdx +4 -4
- package/src/components/Icon/doc/index.mdx +3 -3
- package/src/components/Image/Image.tsx +14 -9
- package/src/components/Image/demo/index.tsx +4 -5
- package/src/components/Image/doc/index.mdx +4 -4
- package/src/components/List/ListItem/ListItem.tsx +12 -1
- package/src/components/List/demo/index.tsx +2 -0
- package/src/components/MiniSnackBar/doc/index.mdx +3 -3
- package/src/components/NoticeBar/NoticeBar.tsx +3 -1
- package/src/components/NoticeBar/doc/index.mdx +4 -4
- package/src/components/Picker/doc/index.mdx +5 -5
- package/src/components/PickerView/Wheel.tsx +50 -0
- package/src/components/PickerView/doc/index.mdx +3 -3
- package/src/components/Popover/doc/index.mdx +5 -5
- package/src/components/Portal/core/PortalHost.tsx +2 -1
- package/src/components/ProgressIndicator/doc/index.mdx +11 -11
- package/src/components/PullRefresh/doc/index.mdx +3 -3
- package/src/components/Radio/Radio.tsx +3 -3
- package/src/components/Radio/doc/index.mdx +3 -3
- package/src/components/Radio/styles.ts +3 -5
- package/src/components/Rate/doc/index.mdx +3 -3
- package/src/components/Search/doc/index.mdx +17 -17
- package/src/components/SegmentedControl/doc/index.mdx +3 -3
- package/src/components/Sheets/AnimatedSheets.tsx +126 -120
- package/src/components/Sheets/doc/index.mdx +35 -33
- package/src/components/Sheets/interface/index.ts +17 -0
- package/src/components/Slider/Slider.tsx +103 -37
- package/src/components/Slider/demo/index.tsx +18 -0
- package/src/components/Slider/doc/index.mdx +6 -6
- package/src/components/Stepper/Stepper.tsx +1 -1
- package/src/components/Stepper/demo/index.tsx +1 -1
- package/src/components/Stepper/doc/index.mdx +4 -3
- package/src/components/Stepper/interface/index.ts +1 -0
- package/src/components/Stepper/styles.ts +2 -2
- package/src/components/Switch/doc/index.mdx +4 -4
- package/src/components/Tab/doc/index.mdx +3 -3
- package/src/components/TabBar/doc/index.mdx +3 -3
- package/src/components/Tag/doc/index.mdx +4 -4
- package/src/components/Text/doc/index.mdx +4 -4
- package/src/components/TextField/doc/index.mdx +32 -32
- package/src/components/TextView/TextView.tsx +6 -3
- package/src/components/TextView/demo/index.tsx +1 -1
- package/src/components/TextView/doc/index.mdx +5 -5
- package/src/components/Toast/doc/index.mdx +6 -6
- package/src/components/Uploader/doc/index.mdx +26 -26
- package/src/components/Video/doc/index.mdx +4 -4
- package/lib/cjs/_chunks/DVfoVjpR.js.map +0 -1
- package/lib/esm/_chunks/C4jyXYEi.js.map +0 -1
|
@@ -27,7 +27,7 @@ import '../../_chunks/Cw5awIcj.js';
|
|
|
27
27
|
import '../TextField/TextField.js';
|
|
28
28
|
import '../../_chunks/19yRJGdw.js';
|
|
29
29
|
import '../Uploader/Uploader.js';
|
|
30
|
-
import '../../_chunks/
|
|
30
|
+
import '../../_chunks/CMrgSNfs.js';
|
|
31
31
|
import '../Stepper/Stepper.js';
|
|
32
32
|
import '../../_chunks/C0MWVrjO.js';
|
|
33
33
|
import '../Rate/Rate.js';
|
|
@@ -41,9 +41,9 @@ import '../../_chunks/Co-RjOaG.js';
|
|
|
41
41
|
import '../DatePicker/DatePicker.js';
|
|
42
42
|
import '../../_chunks/Dr5vetot.js';
|
|
43
43
|
import '../DatePicker/api.js';
|
|
44
|
-
import { a as _objectSpread2, _ as _slicedToArray
|
|
44
|
+
import { a as _objectSpread2, _ as _slicedToArray } from '../../_chunks/ZEfofTDH.js';
|
|
45
45
|
import React, { memo, useState, useContext, useEffect, useCallback } from 'react';
|
|
46
|
-
import { TouchableWithoutFeedback, View, Image, Text
|
|
46
|
+
import { TouchableWithoutFeedback, View, Image, Text } from 'react-native';
|
|
47
47
|
import { R as RadioDefaultProps } from '../../_chunks/BE61qvye.js';
|
|
48
48
|
import { RadioGroupContext } from './RadioGroup.js';
|
|
49
49
|
import { getContainerStyle, getWrapperStyle, getUnCheckedStyle, getIconStyleClass, getLabelStyle, getRightIconStyle, getRightWrapperStyle, hiddenBgStyle, getDividerStyle, freestyle } from './styles.js';
|
|
@@ -59,7 +59,7 @@ import '../Slider/Slider.js';
|
|
|
59
59
|
import '../../_chunks/BwgGhxV7.js';
|
|
60
60
|
import '../Sheets/AnimatedSheets.js';
|
|
61
61
|
import '../Sheets/Sheets.js';
|
|
62
|
-
import '../../_chunks/
|
|
62
|
+
import '../../_chunks/DMjPllnU.js';
|
|
63
63
|
import '../Sheets/api.js';
|
|
64
64
|
import '../PickerView/PickerView.js';
|
|
65
65
|
import '../../_chunks/DcCfwG0m.js';
|
|
@@ -151,6 +151,7 @@ import '../Search/utils/index.js';
|
|
|
151
151
|
import '../../_chunks/TtMjzpIl.js';
|
|
152
152
|
import '../ActionablePopover/ActionablePopover.js';
|
|
153
153
|
import '../../_chunks/Bd6SD27t.js';
|
|
154
|
+
import 'react-native-url-polyfill/auto';
|
|
154
155
|
import '../../_chunks/7_ZK_tBb.js';
|
|
155
156
|
import '../../_chunks/DZNKkp8Z.js';
|
|
156
157
|
import '../../_chunks/JYqI07V8.js';
|
|
@@ -300,9 +301,9 @@ var Radio = function Radio(props) {
|
|
|
300
301
|
var iconStyleClass = getIconStyleClass(_checked, size, disabled || (parent === null || parent === void 0 ? void 0 : parent.disabled), parent === null || parent === void 0 ? void 0 : parent.position, parent === null || parent === void 0 ? void 0 : parent.direction);
|
|
301
302
|
var labelStyle = getLabelStyle(disabled || (parent === null || parent === void 0 ? void 0 : parent.disabled), size, parent === null || parent === void 0 ? void 0 : parent.direction);
|
|
302
303
|
var iconSizeMap = {
|
|
303
|
-
small:
|
|
304
|
-
medium:
|
|
305
|
-
large:
|
|
304
|
+
small: 12,
|
|
305
|
+
medium: 16,
|
|
306
|
+
large: 20
|
|
306
307
|
};
|
|
307
308
|
var rightStyle = getRightIconStyle(size);
|
|
308
309
|
var rightWrapperStyle = getRightWrapperStyle(size, themeColor, props.themeColor);
|
|
@@ -356,2394 +357,6 @@ var Radio = function Radio(props) {
|
|
|
356
357
|
};
|
|
357
358
|
var Radio$1 = /*#__PURE__*/memo(Radio);
|
|
358
359
|
|
|
359
|
-
/**
|
|
360
|
-
* There's a bug happening on iOS 10 where `ArrayBuffer.prototype.byteLength`
|
|
361
|
-
* is not defined, but present on the object returned by the function/constructor
|
|
362
|
-
* See https://github.com/charpeni/react-native-url-polyfill/issues/190
|
|
363
|
-
* */
|
|
364
|
-
|
|
365
|
-
var majorVersionIOS = parseInt(Platform.Version, 10);
|
|
366
|
-
if (Platform.OS === 'ios' && majorVersionIOS === 10) {
|
|
367
|
-
if (Object.getOwnPropertyDescriptor(ArrayBuffer.prototype, 'byteLength') == null) {
|
|
368
|
-
// eslint-disable-next-line no-extend-native
|
|
369
|
-
Object.defineProperty(ArrayBuffer.prototype, 'byteLength', {
|
|
370
|
-
configurable: true,
|
|
371
|
-
enumerable: false,
|
|
372
|
-
get: function get() {
|
|
373
|
-
return null;
|
|
374
|
-
}
|
|
375
|
-
});
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
var name = "react-native-url-polyfill";
|
|
380
|
-
var version = "2.0.0";
|
|
381
|
-
var description = "A lightweight and trustworthy URL polyfill for React Native";
|
|
382
|
-
var keywords = [
|
|
383
|
-
"URL",
|
|
384
|
-
"URLSearchParams",
|
|
385
|
-
"polyfill",
|
|
386
|
-
"react native",
|
|
387
|
-
"whatwg-url"
|
|
388
|
-
];
|
|
389
|
-
var bugs = {
|
|
390
|
-
url: "https://github.com/charpeni/react-native-url-polyfill/issues"
|
|
391
|
-
};
|
|
392
|
-
var homepage = "https://github.com/charpeni/react-native-url-polyfill";
|
|
393
|
-
var readme = "https://github.com/charpeni/react-native-url-polyfill#readme";
|
|
394
|
-
var repository = {
|
|
395
|
-
type: "git",
|
|
396
|
-
url: "https://github.com/charpeni/react-native-url-polyfill.git"
|
|
397
|
-
};
|
|
398
|
-
var main = "index.js";
|
|
399
|
-
var types = "index.d.ts";
|
|
400
|
-
var scripts = {
|
|
401
|
-
test: "jest",
|
|
402
|
-
lint: "eslint .",
|
|
403
|
-
prepare: "husky install",
|
|
404
|
-
"bundle-size": "node scripts/bundle-size"
|
|
405
|
-
};
|
|
406
|
-
var author = "Nicolas Charpentier <nicolas.charpentier079@gmail.com>";
|
|
407
|
-
var license = "MIT";
|
|
408
|
-
var dependencies = {
|
|
409
|
-
"whatwg-url-without-unicode": "8.0.0-3"
|
|
410
|
-
};
|
|
411
|
-
var devDependencies = {
|
|
412
|
-
"@react-native-community/eslint-config": "3.2.0",
|
|
413
|
-
detox: "20.9.1",
|
|
414
|
-
eslint: "8.44.0",
|
|
415
|
-
"eslint-plugin-prettier": "4.2.1",
|
|
416
|
-
husky: "8.0.3",
|
|
417
|
-
jest: "29.5.0",
|
|
418
|
-
"lint-staged": "13.2.3",
|
|
419
|
-
"metro-react-native-babel-preset": "0.76.7",
|
|
420
|
-
nanoid: "3.3.6",
|
|
421
|
-
prettier: "2.8.8",
|
|
422
|
-
react: "18.2.0",
|
|
423
|
-
"react-native": "0.72.1",
|
|
424
|
-
"react-native-bundle-scale": "1.1.0",
|
|
425
|
-
typescript: "5.1.6"
|
|
426
|
-
};
|
|
427
|
-
var peerDependencies = {
|
|
428
|
-
"react-native": "*"
|
|
429
|
-
};
|
|
430
|
-
var jest = {
|
|
431
|
-
preset: "react-native",
|
|
432
|
-
testPathIgnorePatterns: [
|
|
433
|
-
"/node_modules/",
|
|
434
|
-
"./platforms/"
|
|
435
|
-
]
|
|
436
|
-
};
|
|
437
|
-
var packageJson = {
|
|
438
|
-
name: name,
|
|
439
|
-
version: version,
|
|
440
|
-
description: description,
|
|
441
|
-
keywords: keywords,
|
|
442
|
-
bugs: bugs,
|
|
443
|
-
homepage: homepage,
|
|
444
|
-
readme: readme,
|
|
445
|
-
repository: repository,
|
|
446
|
-
main: main,
|
|
447
|
-
types: types,
|
|
448
|
-
scripts: scripts,
|
|
449
|
-
author: author,
|
|
450
|
-
license: license,
|
|
451
|
-
dependencies: dependencies,
|
|
452
|
-
devDependencies: devDependencies,
|
|
453
|
-
peerDependencies: peerDependencies,
|
|
454
|
-
jest: jest,
|
|
455
|
-
"lint-staged": {
|
|
456
|
-
"*.js": [
|
|
457
|
-
"eslint --fix"
|
|
458
|
-
]
|
|
459
|
-
}
|
|
460
|
-
};
|
|
461
|
-
|
|
462
|
-
function getAugmentedNamespace(n) {
|
|
463
|
-
if (n.__esModule) return n;
|
|
464
|
-
var f = n.default;
|
|
465
|
-
if (typeof f == "function") {
|
|
466
|
-
var a = function a () {
|
|
467
|
-
if (this instanceof a) {
|
|
468
|
-
return Reflect.construct(f, arguments, this.constructor);
|
|
469
|
-
}
|
|
470
|
-
return f.apply(this, arguments);
|
|
471
|
-
};
|
|
472
|
-
a.prototype = f.prototype;
|
|
473
|
-
} else a = {};
|
|
474
|
-
Object.defineProperty(a, '__esModule', {value: true});
|
|
475
|
-
Object.keys(n).forEach(function (k) {
|
|
476
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
477
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
478
|
-
enumerable: true,
|
|
479
|
-
get: function () {
|
|
480
|
-
return n[k];
|
|
481
|
-
}
|
|
482
|
-
});
|
|
483
|
-
});
|
|
484
|
-
return a;
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
var webidl2jsWrapper = {};
|
|
488
|
-
|
|
489
|
-
var conversions$1 = require("webidl-conversions");
|
|
490
|
-
var utils$1 = require("./utils.js");
|
|
491
|
-
var impl$1 = utils$1.implSymbol;
|
|
492
|
-
var ctorRegistry$1 = utils$1.ctorRegistrySymbol;
|
|
493
|
-
var iface$1 = {
|
|
494
|
-
// When an interface-module that implements this interface as a mixin is loaded, it will append its own `.is()`
|
|
495
|
-
// method into this array. It allows objects that directly implements *those* interfaces to be recognized as
|
|
496
|
-
// implementing this mixin interface.
|
|
497
|
-
_mixedIntoPredicates: [],
|
|
498
|
-
is: function is(obj) {
|
|
499
|
-
if (obj) {
|
|
500
|
-
if (utils$1.hasOwn(obj, impl$1) && obj[impl$1] instanceof Impl$1.implementation) {
|
|
501
|
-
return true;
|
|
502
|
-
}
|
|
503
|
-
var _iterator = _createForOfIteratorHelper(module.exports._mixedIntoPredicates),
|
|
504
|
-
_step;
|
|
505
|
-
try {
|
|
506
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
507
|
-
var isMixedInto = _step.value;
|
|
508
|
-
if (isMixedInto(obj)) {
|
|
509
|
-
return true;
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
} catch (err) {
|
|
513
|
-
_iterator.e(err);
|
|
514
|
-
} finally {
|
|
515
|
-
_iterator.f();
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
return false;
|
|
519
|
-
},
|
|
520
|
-
isImpl: function isImpl(obj) {
|
|
521
|
-
if (obj) {
|
|
522
|
-
if (obj instanceof Impl$1.implementation) {
|
|
523
|
-
return true;
|
|
524
|
-
}
|
|
525
|
-
var wrapper = utils$1.wrapperForImpl(obj);
|
|
526
|
-
var _iterator2 = _createForOfIteratorHelper(module.exports._mixedIntoPredicates),
|
|
527
|
-
_step2;
|
|
528
|
-
try {
|
|
529
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
530
|
-
var isMixedInto = _step2.value;
|
|
531
|
-
if (isMixedInto(wrapper)) {
|
|
532
|
-
return true;
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
} catch (err) {
|
|
536
|
-
_iterator2.e(err);
|
|
537
|
-
} finally {
|
|
538
|
-
_iterator2.f();
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
return false;
|
|
542
|
-
},
|
|
543
|
-
convert: function convert(obj) {
|
|
544
|
-
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
545
|
-
_ref$context = _ref.context,
|
|
546
|
-
context = _ref$context === void 0 ? "The provided value" : _ref$context;
|
|
547
|
-
if (module.exports.is(obj)) {
|
|
548
|
-
return utils$1.implForWrapper(obj);
|
|
549
|
-
}
|
|
550
|
-
throw new TypeError("".concat(context, " is not of type 'URL'."));
|
|
551
|
-
},
|
|
552
|
-
create: function create(globalObject, constructorArgs, privateData) {
|
|
553
|
-
if (globalObject[ctorRegistry$1] === undefined) {
|
|
554
|
-
throw new Error("Internal error: invalid global object");
|
|
555
|
-
}
|
|
556
|
-
var ctor = globalObject[ctorRegistry$1]["URL"];
|
|
557
|
-
if (ctor === undefined) {
|
|
558
|
-
throw new Error("Internal error: constructor URL is not installed on the passed global object");
|
|
559
|
-
}
|
|
560
|
-
var obj = Object.create(ctor.prototype);
|
|
561
|
-
obj = iface$1.setup(obj, globalObject, constructorArgs, privateData);
|
|
562
|
-
return obj;
|
|
563
|
-
},
|
|
564
|
-
createImpl: function createImpl(globalObject, constructorArgs, privateData) {
|
|
565
|
-
var obj = iface$1.create(globalObject, constructorArgs, privateData);
|
|
566
|
-
return utils$1.implForWrapper(obj);
|
|
567
|
-
},
|
|
568
|
-
_internalSetup: function _internalSetup(obj) {},
|
|
569
|
-
setup: function setup(obj, globalObject) {
|
|
570
|
-
var constructorArgs = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
571
|
-
var privateData = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
572
|
-
privateData.wrapper = obj;
|
|
573
|
-
iface$1._internalSetup(obj);
|
|
574
|
-
Object.defineProperty(obj, impl$1, {
|
|
575
|
-
value: new Impl$1.implementation(globalObject, constructorArgs, privateData),
|
|
576
|
-
configurable: true
|
|
577
|
-
});
|
|
578
|
-
obj[impl$1][utils$1.wrapperSymbol] = obj;
|
|
579
|
-
if (Impl$1.init) {
|
|
580
|
-
Impl$1.init(obj[impl$1], privateData);
|
|
581
|
-
}
|
|
582
|
-
return obj;
|
|
583
|
-
},
|
|
584
|
-
install: function install(globalObject) {
|
|
585
|
-
var URL = /*#__PURE__*/function () {
|
|
586
|
-
function URL(url) {
|
|
587
|
-
_classCallCheck(this, URL);
|
|
588
|
-
if (arguments.length < 1) {
|
|
589
|
-
throw new TypeError("Failed to construct 'URL': 1 argument required, but only " + arguments.length + " present.");
|
|
590
|
-
}
|
|
591
|
-
var args = [];
|
|
592
|
-
{
|
|
593
|
-
var curArg = arguments[0];
|
|
594
|
-
curArg = conversions$1["USVString"](curArg, {
|
|
595
|
-
context: "Failed to construct 'URL': parameter 1"
|
|
596
|
-
});
|
|
597
|
-
args.push(curArg);
|
|
598
|
-
}
|
|
599
|
-
{
|
|
600
|
-
var _curArg = arguments[1];
|
|
601
|
-
if (_curArg !== undefined) {
|
|
602
|
-
_curArg = conversions$1["USVString"](_curArg, {
|
|
603
|
-
context: "Failed to construct 'URL': parameter 2"
|
|
604
|
-
});
|
|
605
|
-
}
|
|
606
|
-
args.push(_curArg);
|
|
607
|
-
}
|
|
608
|
-
return iface$1.setup(Object.create(this.constructor.prototype), globalObject, args);
|
|
609
|
-
}
|
|
610
|
-
return _createClass(URL, [{
|
|
611
|
-
key: "toJSON",
|
|
612
|
-
value: function toJSON() {
|
|
613
|
-
if (!this || !module.exports.is(this)) {
|
|
614
|
-
throw new TypeError("Illegal invocation");
|
|
615
|
-
}
|
|
616
|
-
return this[impl$1].toJSON();
|
|
617
|
-
}
|
|
618
|
-
}, {
|
|
619
|
-
key: "href",
|
|
620
|
-
get: function get() {
|
|
621
|
-
if (!this || !module.exports.is(this)) {
|
|
622
|
-
throw new TypeError("Illegal invocation");
|
|
623
|
-
}
|
|
624
|
-
return this[impl$1]["href"];
|
|
625
|
-
},
|
|
626
|
-
set: function set(V) {
|
|
627
|
-
if (!this || !module.exports.is(this)) {
|
|
628
|
-
throw new TypeError("Illegal invocation");
|
|
629
|
-
}
|
|
630
|
-
V = conversions$1["USVString"](V, {
|
|
631
|
-
context: "Failed to set the 'href' property on 'URL': The provided value"
|
|
632
|
-
});
|
|
633
|
-
this[impl$1]["href"] = V;
|
|
634
|
-
}
|
|
635
|
-
}, {
|
|
636
|
-
key: "toString",
|
|
637
|
-
value: function toString() {
|
|
638
|
-
if (!this || !module.exports.is(this)) {
|
|
639
|
-
throw new TypeError("Illegal invocation");
|
|
640
|
-
}
|
|
641
|
-
return this[impl$1]["href"];
|
|
642
|
-
}
|
|
643
|
-
}, {
|
|
644
|
-
key: "origin",
|
|
645
|
-
get: function get() {
|
|
646
|
-
if (!this || !module.exports.is(this)) {
|
|
647
|
-
throw new TypeError("Illegal invocation");
|
|
648
|
-
}
|
|
649
|
-
return this[impl$1]["origin"];
|
|
650
|
-
}
|
|
651
|
-
}, {
|
|
652
|
-
key: "protocol",
|
|
653
|
-
get: function get() {
|
|
654
|
-
if (!this || !module.exports.is(this)) {
|
|
655
|
-
throw new TypeError("Illegal invocation");
|
|
656
|
-
}
|
|
657
|
-
return this[impl$1]["protocol"];
|
|
658
|
-
},
|
|
659
|
-
set: function set(V) {
|
|
660
|
-
if (!this || !module.exports.is(this)) {
|
|
661
|
-
throw new TypeError("Illegal invocation");
|
|
662
|
-
}
|
|
663
|
-
V = conversions$1["USVString"](V, {
|
|
664
|
-
context: "Failed to set the 'protocol' property on 'URL': The provided value"
|
|
665
|
-
});
|
|
666
|
-
this[impl$1]["protocol"] = V;
|
|
667
|
-
}
|
|
668
|
-
}, {
|
|
669
|
-
key: "username",
|
|
670
|
-
get: function get() {
|
|
671
|
-
if (!this || !module.exports.is(this)) {
|
|
672
|
-
throw new TypeError("Illegal invocation");
|
|
673
|
-
}
|
|
674
|
-
return this[impl$1]["username"];
|
|
675
|
-
},
|
|
676
|
-
set: function set(V) {
|
|
677
|
-
if (!this || !module.exports.is(this)) {
|
|
678
|
-
throw new TypeError("Illegal invocation");
|
|
679
|
-
}
|
|
680
|
-
V = conversions$1["USVString"](V, {
|
|
681
|
-
context: "Failed to set the 'username' property on 'URL': The provided value"
|
|
682
|
-
});
|
|
683
|
-
this[impl$1]["username"] = V;
|
|
684
|
-
}
|
|
685
|
-
}, {
|
|
686
|
-
key: "password",
|
|
687
|
-
get: function get() {
|
|
688
|
-
if (!this || !module.exports.is(this)) {
|
|
689
|
-
throw new TypeError("Illegal invocation");
|
|
690
|
-
}
|
|
691
|
-
return this[impl$1]["password"];
|
|
692
|
-
},
|
|
693
|
-
set: function set(V) {
|
|
694
|
-
if (!this || !module.exports.is(this)) {
|
|
695
|
-
throw new TypeError("Illegal invocation");
|
|
696
|
-
}
|
|
697
|
-
V = conversions$1["USVString"](V, {
|
|
698
|
-
context: "Failed to set the 'password' property on 'URL': The provided value"
|
|
699
|
-
});
|
|
700
|
-
this[impl$1]["password"] = V;
|
|
701
|
-
}
|
|
702
|
-
}, {
|
|
703
|
-
key: "host",
|
|
704
|
-
get: function get() {
|
|
705
|
-
if (!this || !module.exports.is(this)) {
|
|
706
|
-
throw new TypeError("Illegal invocation");
|
|
707
|
-
}
|
|
708
|
-
return this[impl$1]["host"];
|
|
709
|
-
},
|
|
710
|
-
set: function set(V) {
|
|
711
|
-
if (!this || !module.exports.is(this)) {
|
|
712
|
-
throw new TypeError("Illegal invocation");
|
|
713
|
-
}
|
|
714
|
-
V = conversions$1["USVString"](V, {
|
|
715
|
-
context: "Failed to set the 'host' property on 'URL': The provided value"
|
|
716
|
-
});
|
|
717
|
-
this[impl$1]["host"] = V;
|
|
718
|
-
}
|
|
719
|
-
}, {
|
|
720
|
-
key: "hostname",
|
|
721
|
-
get: function get() {
|
|
722
|
-
if (!this || !module.exports.is(this)) {
|
|
723
|
-
throw new TypeError("Illegal invocation");
|
|
724
|
-
}
|
|
725
|
-
return this[impl$1]["hostname"];
|
|
726
|
-
},
|
|
727
|
-
set: function set(V) {
|
|
728
|
-
if (!this || !module.exports.is(this)) {
|
|
729
|
-
throw new TypeError("Illegal invocation");
|
|
730
|
-
}
|
|
731
|
-
V = conversions$1["USVString"](V, {
|
|
732
|
-
context: "Failed to set the 'hostname' property on 'URL': The provided value"
|
|
733
|
-
});
|
|
734
|
-
this[impl$1]["hostname"] = V;
|
|
735
|
-
}
|
|
736
|
-
}, {
|
|
737
|
-
key: "port",
|
|
738
|
-
get: function get() {
|
|
739
|
-
if (!this || !module.exports.is(this)) {
|
|
740
|
-
throw new TypeError("Illegal invocation");
|
|
741
|
-
}
|
|
742
|
-
return this[impl$1]["port"];
|
|
743
|
-
},
|
|
744
|
-
set: function set(V) {
|
|
745
|
-
if (!this || !module.exports.is(this)) {
|
|
746
|
-
throw new TypeError("Illegal invocation");
|
|
747
|
-
}
|
|
748
|
-
V = conversions$1["USVString"](V, {
|
|
749
|
-
context: "Failed to set the 'port' property on 'URL': The provided value"
|
|
750
|
-
});
|
|
751
|
-
this[impl$1]["port"] = V;
|
|
752
|
-
}
|
|
753
|
-
}, {
|
|
754
|
-
key: "pathname",
|
|
755
|
-
get: function get() {
|
|
756
|
-
if (!this || !module.exports.is(this)) {
|
|
757
|
-
throw new TypeError("Illegal invocation");
|
|
758
|
-
}
|
|
759
|
-
return this[impl$1]["pathname"];
|
|
760
|
-
},
|
|
761
|
-
set: function set(V) {
|
|
762
|
-
if (!this || !module.exports.is(this)) {
|
|
763
|
-
throw new TypeError("Illegal invocation");
|
|
764
|
-
}
|
|
765
|
-
V = conversions$1["USVString"](V, {
|
|
766
|
-
context: "Failed to set the 'pathname' property on 'URL': The provided value"
|
|
767
|
-
});
|
|
768
|
-
this[impl$1]["pathname"] = V;
|
|
769
|
-
}
|
|
770
|
-
}, {
|
|
771
|
-
key: "search",
|
|
772
|
-
get: function get() {
|
|
773
|
-
if (!this || !module.exports.is(this)) {
|
|
774
|
-
throw new TypeError("Illegal invocation");
|
|
775
|
-
}
|
|
776
|
-
return this[impl$1]["search"];
|
|
777
|
-
},
|
|
778
|
-
set: function set(V) {
|
|
779
|
-
if (!this || !module.exports.is(this)) {
|
|
780
|
-
throw new TypeError("Illegal invocation");
|
|
781
|
-
}
|
|
782
|
-
V = conversions$1["USVString"](V, {
|
|
783
|
-
context: "Failed to set the 'search' property on 'URL': The provided value"
|
|
784
|
-
});
|
|
785
|
-
this[impl$1]["search"] = V;
|
|
786
|
-
}
|
|
787
|
-
}, {
|
|
788
|
-
key: "searchParams",
|
|
789
|
-
get: function get() {
|
|
790
|
-
var _this = this;
|
|
791
|
-
if (!this || !module.exports.is(this)) {
|
|
792
|
-
throw new TypeError("Illegal invocation");
|
|
793
|
-
}
|
|
794
|
-
return utils$1.getSameObject(this, "searchParams", function () {
|
|
795
|
-
return utils$1.tryWrapperForImpl(_this[impl$1]["searchParams"]);
|
|
796
|
-
});
|
|
797
|
-
}
|
|
798
|
-
}, {
|
|
799
|
-
key: "hash",
|
|
800
|
-
get: function get() {
|
|
801
|
-
if (!this || !module.exports.is(this)) {
|
|
802
|
-
throw new TypeError("Illegal invocation");
|
|
803
|
-
}
|
|
804
|
-
return this[impl$1]["hash"];
|
|
805
|
-
},
|
|
806
|
-
set: function set(V) {
|
|
807
|
-
if (!this || !module.exports.is(this)) {
|
|
808
|
-
throw new TypeError("Illegal invocation");
|
|
809
|
-
}
|
|
810
|
-
V = conversions$1["USVString"](V, {
|
|
811
|
-
context: "Failed to set the 'hash' property on 'URL': The provided value"
|
|
812
|
-
});
|
|
813
|
-
this[impl$1]["hash"] = V;
|
|
814
|
-
}
|
|
815
|
-
}]);
|
|
816
|
-
}();
|
|
817
|
-
Object.defineProperties(URL.prototype, _defineProperty({
|
|
818
|
-
toJSON: {
|
|
819
|
-
enumerable: true
|
|
820
|
-
},
|
|
821
|
-
href: {
|
|
822
|
-
enumerable: true
|
|
823
|
-
},
|
|
824
|
-
toString: {
|
|
825
|
-
enumerable: true
|
|
826
|
-
},
|
|
827
|
-
origin: {
|
|
828
|
-
enumerable: true
|
|
829
|
-
},
|
|
830
|
-
protocol: {
|
|
831
|
-
enumerable: true
|
|
832
|
-
},
|
|
833
|
-
username: {
|
|
834
|
-
enumerable: true
|
|
835
|
-
},
|
|
836
|
-
password: {
|
|
837
|
-
enumerable: true
|
|
838
|
-
},
|
|
839
|
-
host: {
|
|
840
|
-
enumerable: true
|
|
841
|
-
},
|
|
842
|
-
hostname: {
|
|
843
|
-
enumerable: true
|
|
844
|
-
},
|
|
845
|
-
port: {
|
|
846
|
-
enumerable: true
|
|
847
|
-
},
|
|
848
|
-
pathname: {
|
|
849
|
-
enumerable: true
|
|
850
|
-
},
|
|
851
|
-
search: {
|
|
852
|
-
enumerable: true
|
|
853
|
-
},
|
|
854
|
-
searchParams: {
|
|
855
|
-
enumerable: true
|
|
856
|
-
},
|
|
857
|
-
hash: {
|
|
858
|
-
enumerable: true
|
|
859
|
-
}
|
|
860
|
-
}, Symbol.toStringTag, {
|
|
861
|
-
value: "URL",
|
|
862
|
-
configurable: true
|
|
863
|
-
}));
|
|
864
|
-
if (globalObject[ctorRegistry$1] === undefined) {
|
|
865
|
-
globalObject[ctorRegistry$1] = Object.create(null);
|
|
866
|
-
}
|
|
867
|
-
globalObject[ctorRegistry$1]["URL"] = URL;
|
|
868
|
-
Object.defineProperty(globalObject, "URL", {
|
|
869
|
-
configurable: true,
|
|
870
|
-
writable: true,
|
|
871
|
-
value: URL
|
|
872
|
-
});
|
|
873
|
-
}
|
|
874
|
-
};
|
|
875
|
-
// iface
|
|
876
|
-
module.exports = iface$1;
|
|
877
|
-
var Impl$1 = require("./URL-impl.js");
|
|
878
|
-
|
|
879
|
-
var URL$2 = /*#__PURE__*/Object.freeze({
|
|
880
|
-
__proto__: null
|
|
881
|
-
});
|
|
882
|
-
|
|
883
|
-
var require$$0 = /*@__PURE__*/getAugmentedNamespace(URL$2);
|
|
884
|
-
|
|
885
|
-
var conversions = require("webidl-conversions");
|
|
886
|
-
var utils = require("./utils.js");
|
|
887
|
-
var impl = utils.implSymbol;
|
|
888
|
-
var ctorRegistry = utils.ctorRegistrySymbol;
|
|
889
|
-
var IteratorPrototype = Object.create(utils.IteratorPrototype, _defineProperty({
|
|
890
|
-
next: {
|
|
891
|
-
value: function next() {
|
|
892
|
-
var internal = this[utils.iterInternalSymbol];
|
|
893
|
-
var target = internal.target,
|
|
894
|
-
kind = internal.kind,
|
|
895
|
-
index = internal.index;
|
|
896
|
-
var values = Array.from(target[impl]);
|
|
897
|
-
var len = values.length;
|
|
898
|
-
if (index >= len) {
|
|
899
|
-
return {
|
|
900
|
-
value: undefined,
|
|
901
|
-
done: true
|
|
902
|
-
};
|
|
903
|
-
}
|
|
904
|
-
var pair = values[index];
|
|
905
|
-
internal.index = index + 1;
|
|
906
|
-
var _pair$map = pair.map(utils.tryWrapperForImpl),
|
|
907
|
-
_pair$map2 = _slicedToArray(_pair$map, 2),
|
|
908
|
-
key = _pair$map2[0],
|
|
909
|
-
value = _pair$map2[1];
|
|
910
|
-
var result;
|
|
911
|
-
switch (kind) {
|
|
912
|
-
case "key":
|
|
913
|
-
result = key;
|
|
914
|
-
break;
|
|
915
|
-
case "value":
|
|
916
|
-
result = value;
|
|
917
|
-
break;
|
|
918
|
-
case "key+value":
|
|
919
|
-
result = [key, value];
|
|
920
|
-
break;
|
|
921
|
-
}
|
|
922
|
-
return {
|
|
923
|
-
value: result,
|
|
924
|
-
done: false
|
|
925
|
-
};
|
|
926
|
-
},
|
|
927
|
-
writable: true,
|
|
928
|
-
enumerable: true,
|
|
929
|
-
configurable: true
|
|
930
|
-
}
|
|
931
|
-
}, Symbol.toStringTag, {
|
|
932
|
-
value: "URLSearchParams Iterator",
|
|
933
|
-
configurable: true
|
|
934
|
-
}));
|
|
935
|
-
var iface = {
|
|
936
|
-
// When an interface-module that implements this interface as a mixin is loaded, it will append its own `.is()`
|
|
937
|
-
// method into this array. It allows objects that directly implements *those* interfaces to be recognized as
|
|
938
|
-
// implementing this mixin interface.
|
|
939
|
-
_mixedIntoPredicates: [],
|
|
940
|
-
is: function is(obj) {
|
|
941
|
-
if (obj) {
|
|
942
|
-
if (utils.hasOwn(obj, impl) && obj[impl] instanceof Impl.implementation) {
|
|
943
|
-
return true;
|
|
944
|
-
}
|
|
945
|
-
var _iterator = _createForOfIteratorHelper(module.exports._mixedIntoPredicates),
|
|
946
|
-
_step;
|
|
947
|
-
try {
|
|
948
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
949
|
-
var isMixedInto = _step.value;
|
|
950
|
-
if (isMixedInto(obj)) {
|
|
951
|
-
return true;
|
|
952
|
-
}
|
|
953
|
-
}
|
|
954
|
-
} catch (err) {
|
|
955
|
-
_iterator.e(err);
|
|
956
|
-
} finally {
|
|
957
|
-
_iterator.f();
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
return false;
|
|
961
|
-
},
|
|
962
|
-
isImpl: function isImpl(obj) {
|
|
963
|
-
if (obj) {
|
|
964
|
-
if (obj instanceof Impl.implementation) {
|
|
965
|
-
return true;
|
|
966
|
-
}
|
|
967
|
-
var wrapper = utils.wrapperForImpl(obj);
|
|
968
|
-
var _iterator2 = _createForOfIteratorHelper(module.exports._mixedIntoPredicates),
|
|
969
|
-
_step2;
|
|
970
|
-
try {
|
|
971
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
972
|
-
var isMixedInto = _step2.value;
|
|
973
|
-
if (isMixedInto(wrapper)) {
|
|
974
|
-
return true;
|
|
975
|
-
}
|
|
976
|
-
}
|
|
977
|
-
} catch (err) {
|
|
978
|
-
_iterator2.e(err);
|
|
979
|
-
} finally {
|
|
980
|
-
_iterator2.f();
|
|
981
|
-
}
|
|
982
|
-
}
|
|
983
|
-
return false;
|
|
984
|
-
},
|
|
985
|
-
convert: function convert(obj) {
|
|
986
|
-
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
987
|
-
_ref$context = _ref.context,
|
|
988
|
-
context = _ref$context === void 0 ? "The provided value" : _ref$context;
|
|
989
|
-
if (module.exports.is(obj)) {
|
|
990
|
-
return utils.implForWrapper(obj);
|
|
991
|
-
}
|
|
992
|
-
throw new TypeError("".concat(context, " is not of type 'URLSearchParams'."));
|
|
993
|
-
},
|
|
994
|
-
createDefaultIterator: function createDefaultIterator(target, kind) {
|
|
995
|
-
var iterator = Object.create(IteratorPrototype);
|
|
996
|
-
Object.defineProperty(iterator, utils.iterInternalSymbol, {
|
|
997
|
-
value: {
|
|
998
|
-
target: target,
|
|
999
|
-
kind: kind,
|
|
1000
|
-
index: 0
|
|
1001
|
-
},
|
|
1002
|
-
configurable: true
|
|
1003
|
-
});
|
|
1004
|
-
return iterator;
|
|
1005
|
-
},
|
|
1006
|
-
create: function create(globalObject, constructorArgs, privateData) {
|
|
1007
|
-
if (globalObject[ctorRegistry] === undefined) {
|
|
1008
|
-
throw new Error("Internal error: invalid global object");
|
|
1009
|
-
}
|
|
1010
|
-
var ctor = globalObject[ctorRegistry]["URLSearchParams"];
|
|
1011
|
-
if (ctor === undefined) {
|
|
1012
|
-
throw new Error("Internal error: constructor URLSearchParams is not installed on the passed global object");
|
|
1013
|
-
}
|
|
1014
|
-
var obj = Object.create(ctor.prototype);
|
|
1015
|
-
obj = iface.setup(obj, globalObject, constructorArgs, privateData);
|
|
1016
|
-
return obj;
|
|
1017
|
-
},
|
|
1018
|
-
createImpl: function createImpl(globalObject, constructorArgs, privateData) {
|
|
1019
|
-
var obj = iface.create(globalObject, constructorArgs, privateData);
|
|
1020
|
-
return utils.implForWrapper(obj);
|
|
1021
|
-
},
|
|
1022
|
-
_internalSetup: function _internalSetup(obj) {},
|
|
1023
|
-
setup: function setup(obj, globalObject) {
|
|
1024
|
-
var constructorArgs = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
1025
|
-
var privateData = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
1026
|
-
privateData.wrapper = obj;
|
|
1027
|
-
iface._internalSetup(obj);
|
|
1028
|
-
Object.defineProperty(obj, impl, {
|
|
1029
|
-
value: new Impl.implementation(globalObject, constructorArgs, privateData),
|
|
1030
|
-
configurable: true
|
|
1031
|
-
});
|
|
1032
|
-
obj[impl][utils.wrapperSymbol] = obj;
|
|
1033
|
-
if (Impl.init) {
|
|
1034
|
-
Impl.init(obj[impl], privateData);
|
|
1035
|
-
}
|
|
1036
|
-
return obj;
|
|
1037
|
-
},
|
|
1038
|
-
install: function install(globalObject) {
|
|
1039
|
-
var URLSearchParams = /*#__PURE__*/function () {
|
|
1040
|
-
function URLSearchParams() {
|
|
1041
|
-
_classCallCheck(this, URLSearchParams);
|
|
1042
|
-
var args = [];
|
|
1043
|
-
{
|
|
1044
|
-
var curArg = arguments[0];
|
|
1045
|
-
if (curArg !== undefined) {
|
|
1046
|
-
if (utils.isObject(curArg)) {
|
|
1047
|
-
if (curArg[Symbol.iterator] !== undefined) {
|
|
1048
|
-
if (!utils.isObject(curArg)) {
|
|
1049
|
-
throw new TypeError("Failed to construct 'URLSearchParams': parameter 1" + " sequence" + " is not an iterable object.");
|
|
1050
|
-
} else {
|
|
1051
|
-
var V = [];
|
|
1052
|
-
var tmp = curArg;
|
|
1053
|
-
var _iterator3 = _createForOfIteratorHelper(tmp),
|
|
1054
|
-
_step3;
|
|
1055
|
-
try {
|
|
1056
|
-
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
1057
|
-
var nextItem = _step3.value;
|
|
1058
|
-
if (!utils.isObject(nextItem)) {
|
|
1059
|
-
throw new TypeError("Failed to construct 'URLSearchParams': parameter 1" + " sequence" + "'s element" + " is not an iterable object.");
|
|
1060
|
-
} else {
|
|
1061
|
-
var _V = [];
|
|
1062
|
-
var _tmp = nextItem;
|
|
1063
|
-
var _iterator4 = _createForOfIteratorHelper(_tmp),
|
|
1064
|
-
_step4;
|
|
1065
|
-
try {
|
|
1066
|
-
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
1067
|
-
var _nextItem = _step4.value;
|
|
1068
|
-
_nextItem = conversions["USVString"](_nextItem, {
|
|
1069
|
-
context: "Failed to construct 'URLSearchParams': parameter 1" + " sequence" + "'s element" + "'s element"
|
|
1070
|
-
});
|
|
1071
|
-
_V.push(_nextItem);
|
|
1072
|
-
}
|
|
1073
|
-
} catch (err) {
|
|
1074
|
-
_iterator4.e(err);
|
|
1075
|
-
} finally {
|
|
1076
|
-
_iterator4.f();
|
|
1077
|
-
}
|
|
1078
|
-
nextItem = _V;
|
|
1079
|
-
}
|
|
1080
|
-
V.push(nextItem);
|
|
1081
|
-
}
|
|
1082
|
-
} catch (err) {
|
|
1083
|
-
_iterator3.e(err);
|
|
1084
|
-
} finally {
|
|
1085
|
-
_iterator3.f();
|
|
1086
|
-
}
|
|
1087
|
-
curArg = V;
|
|
1088
|
-
}
|
|
1089
|
-
} else {
|
|
1090
|
-
if (!utils.isObject(curArg)) {
|
|
1091
|
-
throw new TypeError("Failed to construct 'URLSearchParams': parameter 1" + " record" + " is not an object.");
|
|
1092
|
-
} else {
|
|
1093
|
-
var result = Object.create(null);
|
|
1094
|
-
var _iterator5 = _createForOfIteratorHelper(Reflect.ownKeys(curArg)),
|
|
1095
|
-
_step5;
|
|
1096
|
-
try {
|
|
1097
|
-
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
1098
|
-
var key = _step5.value;
|
|
1099
|
-
var desc = Object.getOwnPropertyDescriptor(curArg, key);
|
|
1100
|
-
if (desc && desc.enumerable) {
|
|
1101
|
-
var typedKey = key;
|
|
1102
|
-
typedKey = conversions["USVString"](typedKey, {
|
|
1103
|
-
context: "Failed to construct 'URLSearchParams': parameter 1" + " record" + "'s key"
|
|
1104
|
-
});
|
|
1105
|
-
var typedValue = curArg[key];
|
|
1106
|
-
typedValue = conversions["USVString"](typedValue, {
|
|
1107
|
-
context: "Failed to construct 'URLSearchParams': parameter 1" + " record" + "'s value"
|
|
1108
|
-
});
|
|
1109
|
-
result[typedKey] = typedValue;
|
|
1110
|
-
}
|
|
1111
|
-
}
|
|
1112
|
-
} catch (err) {
|
|
1113
|
-
_iterator5.e(err);
|
|
1114
|
-
} finally {
|
|
1115
|
-
_iterator5.f();
|
|
1116
|
-
}
|
|
1117
|
-
curArg = result;
|
|
1118
|
-
}
|
|
1119
|
-
}
|
|
1120
|
-
} else {
|
|
1121
|
-
curArg = conversions["USVString"](curArg, {
|
|
1122
|
-
context: "Failed to construct 'URLSearchParams': parameter 1"
|
|
1123
|
-
});
|
|
1124
|
-
}
|
|
1125
|
-
} else {
|
|
1126
|
-
curArg = "";
|
|
1127
|
-
}
|
|
1128
|
-
args.push(curArg);
|
|
1129
|
-
}
|
|
1130
|
-
return iface.setup(Object.create(this.constructor.prototype), globalObject, args);
|
|
1131
|
-
}
|
|
1132
|
-
return _createClass(URLSearchParams, [{
|
|
1133
|
-
key: "append",
|
|
1134
|
-
value: function append(name, value) {
|
|
1135
|
-
var _this$impl;
|
|
1136
|
-
if (!this || !module.exports.is(this)) {
|
|
1137
|
-
throw new TypeError("Illegal invocation");
|
|
1138
|
-
}
|
|
1139
|
-
if (arguments.length < 2) {
|
|
1140
|
-
throw new TypeError("Failed to execute 'append' on 'URLSearchParams': 2 arguments required, but only " + arguments.length + " present.");
|
|
1141
|
-
}
|
|
1142
|
-
var args = [];
|
|
1143
|
-
{
|
|
1144
|
-
var curArg = arguments[0];
|
|
1145
|
-
curArg = conversions["USVString"](curArg, {
|
|
1146
|
-
context: "Failed to execute 'append' on 'URLSearchParams': parameter 1"
|
|
1147
|
-
});
|
|
1148
|
-
args.push(curArg);
|
|
1149
|
-
}
|
|
1150
|
-
{
|
|
1151
|
-
var _curArg = arguments[1];
|
|
1152
|
-
_curArg = conversions["USVString"](_curArg, {
|
|
1153
|
-
context: "Failed to execute 'append' on 'URLSearchParams': parameter 2"
|
|
1154
|
-
});
|
|
1155
|
-
args.push(_curArg);
|
|
1156
|
-
}
|
|
1157
|
-
return (_this$impl = this[impl]).append.apply(_this$impl, args);
|
|
1158
|
-
}
|
|
1159
|
-
}, {
|
|
1160
|
-
key: "delete",
|
|
1161
|
-
value: function _delete(name) {
|
|
1162
|
-
var _this$impl2;
|
|
1163
|
-
if (!this || !module.exports.is(this)) {
|
|
1164
|
-
throw new TypeError("Illegal invocation");
|
|
1165
|
-
}
|
|
1166
|
-
if (arguments.length < 1) {
|
|
1167
|
-
throw new TypeError("Failed to execute 'delete' on 'URLSearchParams': 1 argument required, but only " + arguments.length + " present.");
|
|
1168
|
-
}
|
|
1169
|
-
var args = [];
|
|
1170
|
-
{
|
|
1171
|
-
var curArg = arguments[0];
|
|
1172
|
-
curArg = conversions["USVString"](curArg, {
|
|
1173
|
-
context: "Failed to execute 'delete' on 'URLSearchParams': parameter 1"
|
|
1174
|
-
});
|
|
1175
|
-
args.push(curArg);
|
|
1176
|
-
}
|
|
1177
|
-
return (_this$impl2 = this[impl])["delete"].apply(_this$impl2, args);
|
|
1178
|
-
}
|
|
1179
|
-
}, {
|
|
1180
|
-
key: "get",
|
|
1181
|
-
value: function get(name) {
|
|
1182
|
-
var _this$impl3;
|
|
1183
|
-
if (!this || !module.exports.is(this)) {
|
|
1184
|
-
throw new TypeError("Illegal invocation");
|
|
1185
|
-
}
|
|
1186
|
-
if (arguments.length < 1) {
|
|
1187
|
-
throw new TypeError("Failed to execute 'get' on 'URLSearchParams': 1 argument required, but only " + arguments.length + " present.");
|
|
1188
|
-
}
|
|
1189
|
-
var args = [];
|
|
1190
|
-
{
|
|
1191
|
-
var curArg = arguments[0];
|
|
1192
|
-
curArg = conversions["USVString"](curArg, {
|
|
1193
|
-
context: "Failed to execute 'get' on 'URLSearchParams': parameter 1"
|
|
1194
|
-
});
|
|
1195
|
-
args.push(curArg);
|
|
1196
|
-
}
|
|
1197
|
-
return (_this$impl3 = this[impl]).get.apply(_this$impl3, args);
|
|
1198
|
-
}
|
|
1199
|
-
}, {
|
|
1200
|
-
key: "getAll",
|
|
1201
|
-
value: function getAll(name) {
|
|
1202
|
-
var _this$impl4;
|
|
1203
|
-
if (!this || !module.exports.is(this)) {
|
|
1204
|
-
throw new TypeError("Illegal invocation");
|
|
1205
|
-
}
|
|
1206
|
-
if (arguments.length < 1) {
|
|
1207
|
-
throw new TypeError("Failed to execute 'getAll' on 'URLSearchParams': 1 argument required, but only " + arguments.length + " present.");
|
|
1208
|
-
}
|
|
1209
|
-
var args = [];
|
|
1210
|
-
{
|
|
1211
|
-
var curArg = arguments[0];
|
|
1212
|
-
curArg = conversions["USVString"](curArg, {
|
|
1213
|
-
context: "Failed to execute 'getAll' on 'URLSearchParams': parameter 1"
|
|
1214
|
-
});
|
|
1215
|
-
args.push(curArg);
|
|
1216
|
-
}
|
|
1217
|
-
return utils.tryWrapperForImpl((_this$impl4 = this[impl]).getAll.apply(_this$impl4, args));
|
|
1218
|
-
}
|
|
1219
|
-
}, {
|
|
1220
|
-
key: "has",
|
|
1221
|
-
value: function has(name) {
|
|
1222
|
-
var _this$impl5;
|
|
1223
|
-
if (!this || !module.exports.is(this)) {
|
|
1224
|
-
throw new TypeError("Illegal invocation");
|
|
1225
|
-
}
|
|
1226
|
-
if (arguments.length < 1) {
|
|
1227
|
-
throw new TypeError("Failed to execute 'has' on 'URLSearchParams': 1 argument required, but only " + arguments.length + " present.");
|
|
1228
|
-
}
|
|
1229
|
-
var args = [];
|
|
1230
|
-
{
|
|
1231
|
-
var curArg = arguments[0];
|
|
1232
|
-
curArg = conversions["USVString"](curArg, {
|
|
1233
|
-
context: "Failed to execute 'has' on 'URLSearchParams': parameter 1"
|
|
1234
|
-
});
|
|
1235
|
-
args.push(curArg);
|
|
1236
|
-
}
|
|
1237
|
-
return (_this$impl5 = this[impl]).has.apply(_this$impl5, args);
|
|
1238
|
-
}
|
|
1239
|
-
}, {
|
|
1240
|
-
key: "set",
|
|
1241
|
-
value: function set(name, value) {
|
|
1242
|
-
var _this$impl6;
|
|
1243
|
-
if (!this || !module.exports.is(this)) {
|
|
1244
|
-
throw new TypeError("Illegal invocation");
|
|
1245
|
-
}
|
|
1246
|
-
if (arguments.length < 2) {
|
|
1247
|
-
throw new TypeError("Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only " + arguments.length + " present.");
|
|
1248
|
-
}
|
|
1249
|
-
var args = [];
|
|
1250
|
-
{
|
|
1251
|
-
var curArg = arguments[0];
|
|
1252
|
-
curArg = conversions["USVString"](curArg, {
|
|
1253
|
-
context: "Failed to execute 'set' on 'URLSearchParams': parameter 1"
|
|
1254
|
-
});
|
|
1255
|
-
args.push(curArg);
|
|
1256
|
-
}
|
|
1257
|
-
{
|
|
1258
|
-
var _curArg2 = arguments[1];
|
|
1259
|
-
_curArg2 = conversions["USVString"](_curArg2, {
|
|
1260
|
-
context: "Failed to execute 'set' on 'URLSearchParams': parameter 2"
|
|
1261
|
-
});
|
|
1262
|
-
args.push(_curArg2);
|
|
1263
|
-
}
|
|
1264
|
-
return (_this$impl6 = this[impl]).set.apply(_this$impl6, args);
|
|
1265
|
-
}
|
|
1266
|
-
}, {
|
|
1267
|
-
key: "sort",
|
|
1268
|
-
value: function sort() {
|
|
1269
|
-
if (!this || !module.exports.is(this)) {
|
|
1270
|
-
throw new TypeError("Illegal invocation");
|
|
1271
|
-
}
|
|
1272
|
-
return this[impl].sort();
|
|
1273
|
-
}
|
|
1274
|
-
}, {
|
|
1275
|
-
key: "toString",
|
|
1276
|
-
value: function toString() {
|
|
1277
|
-
if (!this || !module.exports.is(this)) {
|
|
1278
|
-
throw new TypeError("Illegal invocation");
|
|
1279
|
-
}
|
|
1280
|
-
return this[impl].toString();
|
|
1281
|
-
}
|
|
1282
|
-
}, {
|
|
1283
|
-
key: "keys",
|
|
1284
|
-
value: function keys() {
|
|
1285
|
-
if (!this || !module.exports.is(this)) {
|
|
1286
|
-
throw new TypeError("Illegal invocation");
|
|
1287
|
-
}
|
|
1288
|
-
return module.exports.createDefaultIterator(this, "key");
|
|
1289
|
-
}
|
|
1290
|
-
}, {
|
|
1291
|
-
key: "values",
|
|
1292
|
-
value: function values() {
|
|
1293
|
-
if (!this || !module.exports.is(this)) {
|
|
1294
|
-
throw new TypeError("Illegal invocation");
|
|
1295
|
-
}
|
|
1296
|
-
return module.exports.createDefaultIterator(this, "value");
|
|
1297
|
-
}
|
|
1298
|
-
}, {
|
|
1299
|
-
key: "entries",
|
|
1300
|
-
value: function entries() {
|
|
1301
|
-
if (!this || !module.exports.is(this)) {
|
|
1302
|
-
throw new TypeError("Illegal invocation");
|
|
1303
|
-
}
|
|
1304
|
-
return module.exports.createDefaultIterator(this, "key+value");
|
|
1305
|
-
}
|
|
1306
|
-
}, {
|
|
1307
|
-
key: "forEach",
|
|
1308
|
-
value: function forEach(callback) {
|
|
1309
|
-
if (!this || !module.exports.is(this)) {
|
|
1310
|
-
throw new TypeError("Illegal invocation");
|
|
1311
|
-
}
|
|
1312
|
-
if (arguments.length < 1) {
|
|
1313
|
-
throw new TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, " + "but only 0 present.");
|
|
1314
|
-
}
|
|
1315
|
-
if (typeof callback !== "function") {
|
|
1316
|
-
throw new TypeError("Failed to execute 'forEach' on 'iterable': The callback provided " + "as parameter 1 is not a function.");
|
|
1317
|
-
}
|
|
1318
|
-
var thisArg = arguments[1];
|
|
1319
|
-
var pairs = Array.from(this[impl]);
|
|
1320
|
-
var i = 0;
|
|
1321
|
-
while (i < pairs.length) {
|
|
1322
|
-
var _pairs$i$map = pairs[i].map(utils.tryWrapperForImpl),
|
|
1323
|
-
_pairs$i$map2 = _slicedToArray(_pairs$i$map, 2),
|
|
1324
|
-
key = _pairs$i$map2[0],
|
|
1325
|
-
value = _pairs$i$map2[1];
|
|
1326
|
-
callback.call(thisArg, value, key, this);
|
|
1327
|
-
pairs = Array.from(this[impl]);
|
|
1328
|
-
i++;
|
|
1329
|
-
}
|
|
1330
|
-
}
|
|
1331
|
-
}]);
|
|
1332
|
-
}();
|
|
1333
|
-
Object.defineProperties(URLSearchParams.prototype, _defineProperty(_defineProperty({
|
|
1334
|
-
append: {
|
|
1335
|
-
enumerable: true
|
|
1336
|
-
},
|
|
1337
|
-
"delete": {
|
|
1338
|
-
enumerable: true
|
|
1339
|
-
},
|
|
1340
|
-
get: {
|
|
1341
|
-
enumerable: true
|
|
1342
|
-
},
|
|
1343
|
-
getAll: {
|
|
1344
|
-
enumerable: true
|
|
1345
|
-
},
|
|
1346
|
-
has: {
|
|
1347
|
-
enumerable: true
|
|
1348
|
-
},
|
|
1349
|
-
set: {
|
|
1350
|
-
enumerable: true
|
|
1351
|
-
},
|
|
1352
|
-
sort: {
|
|
1353
|
-
enumerable: true
|
|
1354
|
-
},
|
|
1355
|
-
toString: {
|
|
1356
|
-
enumerable: true
|
|
1357
|
-
},
|
|
1358
|
-
keys: {
|
|
1359
|
-
enumerable: true
|
|
1360
|
-
},
|
|
1361
|
-
values: {
|
|
1362
|
-
enumerable: true
|
|
1363
|
-
},
|
|
1364
|
-
entries: {
|
|
1365
|
-
enumerable: true
|
|
1366
|
-
},
|
|
1367
|
-
forEach: {
|
|
1368
|
-
enumerable: true
|
|
1369
|
-
}
|
|
1370
|
-
}, Symbol.toStringTag, {
|
|
1371
|
-
value: "URLSearchParams",
|
|
1372
|
-
configurable: true
|
|
1373
|
-
}), Symbol.iterator, {
|
|
1374
|
-
value: URLSearchParams.prototype.entries,
|
|
1375
|
-
configurable: true,
|
|
1376
|
-
writable: true
|
|
1377
|
-
}));
|
|
1378
|
-
if (globalObject[ctorRegistry] === undefined) {
|
|
1379
|
-
globalObject[ctorRegistry] = Object.create(null);
|
|
1380
|
-
}
|
|
1381
|
-
globalObject[ctorRegistry]["URLSearchParams"] = URLSearchParams;
|
|
1382
|
-
Object.defineProperty(globalObject, "URLSearchParams", {
|
|
1383
|
-
configurable: true,
|
|
1384
|
-
writable: true,
|
|
1385
|
-
value: URLSearchParams
|
|
1386
|
-
});
|
|
1387
|
-
}
|
|
1388
|
-
};
|
|
1389
|
-
// iface
|
|
1390
|
-
module.exports = iface;
|
|
1391
|
-
var Impl = require("./URLSearchParams-impl.js");
|
|
1392
|
-
|
|
1393
|
-
var URLSearchParams$2 = /*#__PURE__*/Object.freeze({
|
|
1394
|
-
__proto__: null
|
|
1395
|
-
});
|
|
1396
|
-
|
|
1397
|
-
var require$$1$1 = /*@__PURE__*/getAugmentedNamespace(URLSearchParams$2);
|
|
1398
|
-
|
|
1399
|
-
var URL$1 = require$$0;
|
|
1400
|
-
var URLSearchParams$1 = require$$1$1;
|
|
1401
|
-
webidl2jsWrapper.URL = URL$1;
|
|
1402
|
-
webidl2jsWrapper.URLSearchParams = URLSearchParams$1;
|
|
1403
|
-
|
|
1404
|
-
var _require$2 = require("buffer/"),
|
|
1405
|
-
Buffer$1 = _require$2.Buffer;
|
|
1406
|
-
var punycode = require("punycode");
|
|
1407
|
-
var infra = require("./infra");
|
|
1408
|
-
var _require2$1 = require("./urlencoded"),
|
|
1409
|
-
percentEncode$1 = _require2$1.percentEncode,
|
|
1410
|
-
percentDecode$1 = _require2$1.percentDecode;
|
|
1411
|
-
var specialSchemes = {
|
|
1412
|
-
ftp: 21,
|
|
1413
|
-
file: null,
|
|
1414
|
-
http: 80,
|
|
1415
|
-
https: 443,
|
|
1416
|
-
ws: 80,
|
|
1417
|
-
wss: 443
|
|
1418
|
-
};
|
|
1419
|
-
var failure = Symbol("failure");
|
|
1420
|
-
function countSymbols(str) {
|
|
1421
|
-
return punycode.ucs2.decode(str).length;
|
|
1422
|
-
}
|
|
1423
|
-
function at(input, idx) {
|
|
1424
|
-
var c = input[idx];
|
|
1425
|
-
return isNaN(c) ? undefined : String.fromCodePoint(c);
|
|
1426
|
-
}
|
|
1427
|
-
function isSingleDot(buffer) {
|
|
1428
|
-
return buffer === "." || buffer.toLowerCase() === "%2e";
|
|
1429
|
-
}
|
|
1430
|
-
function isDoubleDot(buffer) {
|
|
1431
|
-
buffer = buffer.toLowerCase();
|
|
1432
|
-
return buffer === ".." || buffer === "%2e." || buffer === ".%2e" || buffer === "%2e%2e";
|
|
1433
|
-
}
|
|
1434
|
-
function isWindowsDriveLetterCodePoints(cp1, cp2) {
|
|
1435
|
-
return infra.isASCIIAlpha(cp1) && (cp2 === 58 || cp2 === 124);
|
|
1436
|
-
}
|
|
1437
|
-
function isWindowsDriveLetterString(string) {
|
|
1438
|
-
return string.length === 2 && infra.isASCIIAlpha(string.codePointAt(0)) && (string[1] === ":" || string[1] === "|");
|
|
1439
|
-
}
|
|
1440
|
-
function isNormalizedWindowsDriveLetterString(string) {
|
|
1441
|
-
return string.length === 2 && infra.isASCIIAlpha(string.codePointAt(0)) && string[1] === ":";
|
|
1442
|
-
}
|
|
1443
|
-
function containsForbiddenHostCodePoint(string) {
|
|
1444
|
-
return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/) !== -1;
|
|
1445
|
-
}
|
|
1446
|
-
function containsForbiddenHostCodePointExcludingPercent(string) {
|
|
1447
|
-
return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/) !== -1;
|
|
1448
|
-
}
|
|
1449
|
-
function isSpecialScheme(scheme) {
|
|
1450
|
-
return specialSchemes[scheme] !== undefined;
|
|
1451
|
-
}
|
|
1452
|
-
function isSpecial(url) {
|
|
1453
|
-
return isSpecialScheme(url.scheme);
|
|
1454
|
-
}
|
|
1455
|
-
function isNotSpecial(url) {
|
|
1456
|
-
return !isSpecialScheme(url.scheme);
|
|
1457
|
-
}
|
|
1458
|
-
function defaultPort(scheme) {
|
|
1459
|
-
return specialSchemes[scheme];
|
|
1460
|
-
}
|
|
1461
|
-
function utf8PercentEncode(c) {
|
|
1462
|
-
var buf = Buffer$1.from(c);
|
|
1463
|
-
var str = "";
|
|
1464
|
-
for (var i = 0; i < buf.length; ++i) {
|
|
1465
|
-
str += percentEncode$1(buf[i]);
|
|
1466
|
-
}
|
|
1467
|
-
return str;
|
|
1468
|
-
}
|
|
1469
|
-
function isC0ControlPercentEncode(c) {
|
|
1470
|
-
return c <= 0x1F || c > 0x7E;
|
|
1471
|
-
}
|
|
1472
|
-
var extraUserinfoPercentEncodeSet = new Set([47, 58, 59, 61, 64, 91, 92, 93, 94, 124]);
|
|
1473
|
-
function isUserinfoPercentEncode(c) {
|
|
1474
|
-
return isPathPercentEncode(c) || extraUserinfoPercentEncodeSet.has(c);
|
|
1475
|
-
}
|
|
1476
|
-
var extraFragmentPercentEncodeSet = new Set([32, 34, 60, 62, 96]);
|
|
1477
|
-
function isFragmentPercentEncode(c) {
|
|
1478
|
-
return isC0ControlPercentEncode(c) || extraFragmentPercentEncodeSet.has(c);
|
|
1479
|
-
}
|
|
1480
|
-
var extraPathPercentEncodeSet = new Set([35, 63, 123, 125]);
|
|
1481
|
-
function isPathPercentEncode(c) {
|
|
1482
|
-
return isFragmentPercentEncode(c) || extraPathPercentEncodeSet.has(c);
|
|
1483
|
-
}
|
|
1484
|
-
function percentEncodeChar(c, encodeSetPredicate) {
|
|
1485
|
-
var cStr = String.fromCodePoint(c);
|
|
1486
|
-
if (encodeSetPredicate(c)) {
|
|
1487
|
-
return utf8PercentEncode(cStr);
|
|
1488
|
-
}
|
|
1489
|
-
return cStr;
|
|
1490
|
-
}
|
|
1491
|
-
function parseIPv4Number(input) {
|
|
1492
|
-
var R = 10;
|
|
1493
|
-
if (input.length >= 2 && input.charAt(0) === "0" && input.charAt(1).toLowerCase() === "x") {
|
|
1494
|
-
input = input.substring(2);
|
|
1495
|
-
R = 16;
|
|
1496
|
-
} else if (input.length >= 2 && input.charAt(0) === "0") {
|
|
1497
|
-
input = input.substring(1);
|
|
1498
|
-
R = 8;
|
|
1499
|
-
}
|
|
1500
|
-
if (input === "") {
|
|
1501
|
-
return 0;
|
|
1502
|
-
}
|
|
1503
|
-
var regex = /[^0-7]/;
|
|
1504
|
-
if (R === 10) {
|
|
1505
|
-
regex = /[^0-9]/;
|
|
1506
|
-
}
|
|
1507
|
-
if (R === 16) {
|
|
1508
|
-
regex = /[^0-9A-Fa-f]/;
|
|
1509
|
-
}
|
|
1510
|
-
if (regex.test(input)) {
|
|
1511
|
-
return failure;
|
|
1512
|
-
}
|
|
1513
|
-
return parseInt(input, R);
|
|
1514
|
-
}
|
|
1515
|
-
function parseIPv4(input) {
|
|
1516
|
-
var parts = input.split(".");
|
|
1517
|
-
if (parts[parts.length - 1] === "") {
|
|
1518
|
-
if (parts.length > 1) {
|
|
1519
|
-
parts.pop();
|
|
1520
|
-
}
|
|
1521
|
-
}
|
|
1522
|
-
if (parts.length > 4) {
|
|
1523
|
-
return input;
|
|
1524
|
-
}
|
|
1525
|
-
var numbers = [];
|
|
1526
|
-
var _iterator = _createForOfIteratorHelper(parts),
|
|
1527
|
-
_step;
|
|
1528
|
-
try {
|
|
1529
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
1530
|
-
var part = _step.value;
|
|
1531
|
-
if (part === "") {
|
|
1532
|
-
return input;
|
|
1533
|
-
}
|
|
1534
|
-
var _n = parseIPv4Number(part);
|
|
1535
|
-
if (_n === failure) {
|
|
1536
|
-
return input;
|
|
1537
|
-
}
|
|
1538
|
-
numbers.push(_n);
|
|
1539
|
-
}
|
|
1540
|
-
} catch (err) {
|
|
1541
|
-
_iterator.e(err);
|
|
1542
|
-
} finally {
|
|
1543
|
-
_iterator.f();
|
|
1544
|
-
}
|
|
1545
|
-
for (var i = 0; i < numbers.length - 1; ++i) {
|
|
1546
|
-
if (numbers[i] > 255) {
|
|
1547
|
-
return failure;
|
|
1548
|
-
}
|
|
1549
|
-
}
|
|
1550
|
-
if (numbers[numbers.length - 1] >= Math.pow(256, 5 - numbers.length)) {
|
|
1551
|
-
return failure;
|
|
1552
|
-
}
|
|
1553
|
-
var ipv4 = numbers.pop();
|
|
1554
|
-
var counter = 0;
|
|
1555
|
-
for (var _i = 0, _numbers = numbers; _i < _numbers.length; _i++) {
|
|
1556
|
-
var n = _numbers[_i];
|
|
1557
|
-
ipv4 += n * Math.pow(256, 3 - counter);
|
|
1558
|
-
++counter;
|
|
1559
|
-
}
|
|
1560
|
-
return ipv4;
|
|
1561
|
-
}
|
|
1562
|
-
function serializeIPv4(address) {
|
|
1563
|
-
var output = "";
|
|
1564
|
-
var n = address;
|
|
1565
|
-
for (var i = 1; i <= 4; ++i) {
|
|
1566
|
-
output = String(n % 256) + output;
|
|
1567
|
-
if (i !== 4) {
|
|
1568
|
-
output = "." + output;
|
|
1569
|
-
}
|
|
1570
|
-
n = Math.floor(n / 256);
|
|
1571
|
-
}
|
|
1572
|
-
return output;
|
|
1573
|
-
}
|
|
1574
|
-
function parseIPv6(input) {
|
|
1575
|
-
var address = [0, 0, 0, 0, 0, 0, 0, 0];
|
|
1576
|
-
var pieceIndex = 0;
|
|
1577
|
-
var compress = null;
|
|
1578
|
-
var pointer = 0;
|
|
1579
|
-
input = punycode.ucs2.decode(input);
|
|
1580
|
-
if (input[pointer] === 58) {
|
|
1581
|
-
if (input[pointer + 1] !== 58) {
|
|
1582
|
-
return failure;
|
|
1583
|
-
}
|
|
1584
|
-
pointer += 2;
|
|
1585
|
-
++pieceIndex;
|
|
1586
|
-
compress = pieceIndex;
|
|
1587
|
-
}
|
|
1588
|
-
while (pointer < input.length) {
|
|
1589
|
-
if (pieceIndex === 8) {
|
|
1590
|
-
return failure;
|
|
1591
|
-
}
|
|
1592
|
-
if (input[pointer] === 58) {
|
|
1593
|
-
if (compress !== null) {
|
|
1594
|
-
return failure;
|
|
1595
|
-
}
|
|
1596
|
-
++pointer;
|
|
1597
|
-
++pieceIndex;
|
|
1598
|
-
compress = pieceIndex;
|
|
1599
|
-
continue;
|
|
1600
|
-
}
|
|
1601
|
-
var value = 0;
|
|
1602
|
-
var length = 0;
|
|
1603
|
-
while (length < 4 && infra.isASCIIHex(input[pointer])) {
|
|
1604
|
-
value = value * 0x10 + parseInt(at(input, pointer), 16);
|
|
1605
|
-
++pointer;
|
|
1606
|
-
++length;
|
|
1607
|
-
}
|
|
1608
|
-
if (input[pointer] === 46) {
|
|
1609
|
-
if (length === 0) {
|
|
1610
|
-
return failure;
|
|
1611
|
-
}
|
|
1612
|
-
pointer -= length;
|
|
1613
|
-
if (pieceIndex > 6) {
|
|
1614
|
-
return failure;
|
|
1615
|
-
}
|
|
1616
|
-
var numbersSeen = 0;
|
|
1617
|
-
while (input[pointer] !== undefined) {
|
|
1618
|
-
var ipv4Piece = null;
|
|
1619
|
-
if (numbersSeen > 0) {
|
|
1620
|
-
if (input[pointer] === 46 && numbersSeen < 4) {
|
|
1621
|
-
++pointer;
|
|
1622
|
-
} else {
|
|
1623
|
-
return failure;
|
|
1624
|
-
}
|
|
1625
|
-
}
|
|
1626
|
-
if (!infra.isASCIIDigit(input[pointer])) {
|
|
1627
|
-
return failure;
|
|
1628
|
-
}
|
|
1629
|
-
while (infra.isASCIIDigit(input[pointer])) {
|
|
1630
|
-
var number = parseInt(at(input, pointer));
|
|
1631
|
-
if (ipv4Piece === null) {
|
|
1632
|
-
ipv4Piece = number;
|
|
1633
|
-
} else if (ipv4Piece === 0) {
|
|
1634
|
-
return failure;
|
|
1635
|
-
} else {
|
|
1636
|
-
ipv4Piece = ipv4Piece * 10 + number;
|
|
1637
|
-
}
|
|
1638
|
-
if (ipv4Piece > 255) {
|
|
1639
|
-
return failure;
|
|
1640
|
-
}
|
|
1641
|
-
++pointer;
|
|
1642
|
-
}
|
|
1643
|
-
address[pieceIndex] = address[pieceIndex] * 0x100 + ipv4Piece;
|
|
1644
|
-
++numbersSeen;
|
|
1645
|
-
if (numbersSeen === 2 || numbersSeen === 4) {
|
|
1646
|
-
++pieceIndex;
|
|
1647
|
-
}
|
|
1648
|
-
}
|
|
1649
|
-
if (numbersSeen !== 4) {
|
|
1650
|
-
return failure;
|
|
1651
|
-
}
|
|
1652
|
-
break;
|
|
1653
|
-
} else if (input[pointer] === 58) {
|
|
1654
|
-
++pointer;
|
|
1655
|
-
if (input[pointer] === undefined) {
|
|
1656
|
-
return failure;
|
|
1657
|
-
}
|
|
1658
|
-
} else if (input[pointer] !== undefined) {
|
|
1659
|
-
return failure;
|
|
1660
|
-
}
|
|
1661
|
-
address[pieceIndex] = value;
|
|
1662
|
-
++pieceIndex;
|
|
1663
|
-
}
|
|
1664
|
-
if (compress !== null) {
|
|
1665
|
-
var swaps = pieceIndex - compress;
|
|
1666
|
-
pieceIndex = 7;
|
|
1667
|
-
while (pieceIndex !== 0 && swaps > 0) {
|
|
1668
|
-
var temp = address[compress + swaps - 1];
|
|
1669
|
-
address[compress + swaps - 1] = address[pieceIndex];
|
|
1670
|
-
address[pieceIndex] = temp;
|
|
1671
|
-
--pieceIndex;
|
|
1672
|
-
--swaps;
|
|
1673
|
-
}
|
|
1674
|
-
} else if (compress === null && pieceIndex !== 8) {
|
|
1675
|
-
return failure;
|
|
1676
|
-
}
|
|
1677
|
-
return address;
|
|
1678
|
-
}
|
|
1679
|
-
function serializeIPv6(address) {
|
|
1680
|
-
var output = "";
|
|
1681
|
-
var seqResult = findLongestZeroSequence(address);
|
|
1682
|
-
var compress = seqResult.idx;
|
|
1683
|
-
var ignore0 = false;
|
|
1684
|
-
for (var pieceIndex = 0; pieceIndex <= 7; ++pieceIndex) {
|
|
1685
|
-
if (ignore0 && address[pieceIndex] === 0) {
|
|
1686
|
-
continue;
|
|
1687
|
-
} else if (ignore0) {
|
|
1688
|
-
ignore0 = false;
|
|
1689
|
-
}
|
|
1690
|
-
if (compress === pieceIndex) {
|
|
1691
|
-
var separator = pieceIndex === 0 ? "::" : ":";
|
|
1692
|
-
output += separator;
|
|
1693
|
-
ignore0 = true;
|
|
1694
|
-
continue;
|
|
1695
|
-
}
|
|
1696
|
-
output += address[pieceIndex].toString(16);
|
|
1697
|
-
if (pieceIndex !== 7) {
|
|
1698
|
-
output += ":";
|
|
1699
|
-
}
|
|
1700
|
-
}
|
|
1701
|
-
return output;
|
|
1702
|
-
}
|
|
1703
|
-
function parseHost(input) {
|
|
1704
|
-
var isNotSpecialArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
1705
|
-
if (input[0] === "[") {
|
|
1706
|
-
if (input[input.length - 1] !== "]") {
|
|
1707
|
-
return failure;
|
|
1708
|
-
}
|
|
1709
|
-
return parseIPv6(input.substring(1, input.length - 1));
|
|
1710
|
-
}
|
|
1711
|
-
if (isNotSpecialArg) {
|
|
1712
|
-
return parseOpaqueHost(input);
|
|
1713
|
-
}
|
|
1714
|
-
var domain = percentDecode$1(Buffer$1.from(input)).toString();
|
|
1715
|
-
var asciiDomain = domainToASCII(domain);
|
|
1716
|
-
if (asciiDomain === failure) {
|
|
1717
|
-
return failure;
|
|
1718
|
-
}
|
|
1719
|
-
if (containsForbiddenHostCodePoint(asciiDomain)) {
|
|
1720
|
-
return failure;
|
|
1721
|
-
}
|
|
1722
|
-
var ipv4Host = parseIPv4(asciiDomain);
|
|
1723
|
-
if (typeof ipv4Host === "number" || ipv4Host === failure) {
|
|
1724
|
-
return ipv4Host;
|
|
1725
|
-
}
|
|
1726
|
-
return asciiDomain;
|
|
1727
|
-
}
|
|
1728
|
-
function parseOpaqueHost(input) {
|
|
1729
|
-
if (containsForbiddenHostCodePointExcludingPercent(input)) {
|
|
1730
|
-
return failure;
|
|
1731
|
-
}
|
|
1732
|
-
var output = "";
|
|
1733
|
-
var decoded = punycode.ucs2.decode(input);
|
|
1734
|
-
for (var i = 0; i < decoded.length; ++i) {
|
|
1735
|
-
output += percentEncodeChar(decoded[i], isC0ControlPercentEncode);
|
|
1736
|
-
}
|
|
1737
|
-
return output;
|
|
1738
|
-
}
|
|
1739
|
-
function findLongestZeroSequence(arr) {
|
|
1740
|
-
var maxIdx = null;
|
|
1741
|
-
var maxLen = 1; // only find elements > 1
|
|
1742
|
-
var currStart = null;
|
|
1743
|
-
var currLen = 0;
|
|
1744
|
-
for (var i = 0; i < arr.length; ++i) {
|
|
1745
|
-
if (arr[i] !== 0) {
|
|
1746
|
-
if (currLen > maxLen) {
|
|
1747
|
-
maxIdx = currStart;
|
|
1748
|
-
maxLen = currLen;
|
|
1749
|
-
}
|
|
1750
|
-
currStart = null;
|
|
1751
|
-
currLen = 0;
|
|
1752
|
-
} else {
|
|
1753
|
-
if (currStart === null) {
|
|
1754
|
-
currStart = i;
|
|
1755
|
-
}
|
|
1756
|
-
++currLen;
|
|
1757
|
-
}
|
|
1758
|
-
}
|
|
1759
|
-
|
|
1760
|
-
// if trailing zeros
|
|
1761
|
-
if (currLen > maxLen) {
|
|
1762
|
-
maxIdx = currStart;
|
|
1763
|
-
maxLen = currLen;
|
|
1764
|
-
}
|
|
1765
|
-
return {
|
|
1766
|
-
idx: maxIdx,
|
|
1767
|
-
len: maxLen
|
|
1768
|
-
};
|
|
1769
|
-
}
|
|
1770
|
-
function serializeHost(host) {
|
|
1771
|
-
if (typeof host === "number") {
|
|
1772
|
-
return serializeIPv4(host);
|
|
1773
|
-
}
|
|
1774
|
-
|
|
1775
|
-
// IPv6 serializer
|
|
1776
|
-
if (host instanceof Array) {
|
|
1777
|
-
return "[" + serializeIPv6(host) + "]";
|
|
1778
|
-
}
|
|
1779
|
-
return host;
|
|
1780
|
-
}
|
|
1781
|
-
function domainToASCII(domain) {
|
|
1782
|
-
var result = domain;
|
|
1783
|
-
if (result === null) {
|
|
1784
|
-
return failure;
|
|
1785
|
-
}
|
|
1786
|
-
return result;
|
|
1787
|
-
}
|
|
1788
|
-
function trimControlChars(url) {
|
|
1789
|
-
return url.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g, "");
|
|
1790
|
-
}
|
|
1791
|
-
function trimTabAndNewline(url) {
|
|
1792
|
-
return url.replace(/\u0009|\u000A|\u000D/g, "");
|
|
1793
|
-
}
|
|
1794
|
-
function shortenPath(url) {
|
|
1795
|
-
var path = url.path;
|
|
1796
|
-
if (path.length === 0) {
|
|
1797
|
-
return;
|
|
1798
|
-
}
|
|
1799
|
-
if (url.scheme === "file" && path.length === 1 && isNormalizedWindowsDriveLetter(path[0])) {
|
|
1800
|
-
return;
|
|
1801
|
-
}
|
|
1802
|
-
path.pop();
|
|
1803
|
-
}
|
|
1804
|
-
function includesCredentials(url) {
|
|
1805
|
-
return url.username !== "" || url.password !== "";
|
|
1806
|
-
}
|
|
1807
|
-
function cannotHaveAUsernamePasswordPort(url) {
|
|
1808
|
-
return url.host === null || url.host === "" || url.cannotBeABaseURL || url.scheme === "file";
|
|
1809
|
-
}
|
|
1810
|
-
function isNormalizedWindowsDriveLetter(string) {
|
|
1811
|
-
return /^[A-Za-z]:$/.test(string);
|
|
1812
|
-
}
|
|
1813
|
-
function URLStateMachine(input, base, encodingOverride, url, stateOverride) {
|
|
1814
|
-
this.pointer = 0;
|
|
1815
|
-
this.input = input;
|
|
1816
|
-
this.base = base || null;
|
|
1817
|
-
this.encodingOverride = encodingOverride || "utf-8";
|
|
1818
|
-
this.stateOverride = stateOverride;
|
|
1819
|
-
this.url = url;
|
|
1820
|
-
this.failure = false;
|
|
1821
|
-
this.parseError = false;
|
|
1822
|
-
if (!this.url) {
|
|
1823
|
-
this.url = {
|
|
1824
|
-
scheme: "",
|
|
1825
|
-
username: "",
|
|
1826
|
-
password: "",
|
|
1827
|
-
host: null,
|
|
1828
|
-
port: null,
|
|
1829
|
-
path: [],
|
|
1830
|
-
query: null,
|
|
1831
|
-
fragment: null,
|
|
1832
|
-
cannotBeABaseURL: false
|
|
1833
|
-
};
|
|
1834
|
-
var _res = trimControlChars(this.input);
|
|
1835
|
-
if (_res !== this.input) {
|
|
1836
|
-
this.parseError = true;
|
|
1837
|
-
}
|
|
1838
|
-
this.input = _res;
|
|
1839
|
-
}
|
|
1840
|
-
var res = trimTabAndNewline(this.input);
|
|
1841
|
-
if (res !== this.input) {
|
|
1842
|
-
this.parseError = true;
|
|
1843
|
-
}
|
|
1844
|
-
this.input = res;
|
|
1845
|
-
this.state = stateOverride || "scheme start";
|
|
1846
|
-
this.buffer = "";
|
|
1847
|
-
this.atFlag = false;
|
|
1848
|
-
this.arrFlag = false;
|
|
1849
|
-
this.passwordTokenSeenFlag = false;
|
|
1850
|
-
this.input = punycode.ucs2.decode(this.input);
|
|
1851
|
-
for (; this.pointer <= this.input.length; ++this.pointer) {
|
|
1852
|
-
var c = this.input[this.pointer];
|
|
1853
|
-
var cStr = isNaN(c) ? undefined : String.fromCodePoint(c);
|
|
1854
|
-
|
|
1855
|
-
// exec state machine
|
|
1856
|
-
var ret = this["parse " + this.state](c, cStr);
|
|
1857
|
-
if (!ret) {
|
|
1858
|
-
break; // terminate algorithm
|
|
1859
|
-
} else if (ret === failure) {
|
|
1860
|
-
this.failure = true;
|
|
1861
|
-
break;
|
|
1862
|
-
}
|
|
1863
|
-
}
|
|
1864
|
-
}
|
|
1865
|
-
URLStateMachine.prototype["parse scheme start"] = function parseSchemeStart(c, cStr) {
|
|
1866
|
-
if (infra.isASCIIAlpha(c)) {
|
|
1867
|
-
this.buffer += cStr.toLowerCase();
|
|
1868
|
-
this.state = "scheme";
|
|
1869
|
-
} else if (!this.stateOverride) {
|
|
1870
|
-
this.state = "no scheme";
|
|
1871
|
-
--this.pointer;
|
|
1872
|
-
} else {
|
|
1873
|
-
this.parseError = true;
|
|
1874
|
-
return failure;
|
|
1875
|
-
}
|
|
1876
|
-
return true;
|
|
1877
|
-
};
|
|
1878
|
-
URLStateMachine.prototype["parse scheme"] = function parseScheme(c, cStr) {
|
|
1879
|
-
if (infra.isASCIIAlphanumeric(c) || c === 43 || c === 45 || c === 46) {
|
|
1880
|
-
this.buffer += cStr.toLowerCase();
|
|
1881
|
-
} else if (c === 58) {
|
|
1882
|
-
if (this.stateOverride) {
|
|
1883
|
-
if (isSpecial(this.url) && !isSpecialScheme(this.buffer)) {
|
|
1884
|
-
return false;
|
|
1885
|
-
}
|
|
1886
|
-
if (!isSpecial(this.url) && isSpecialScheme(this.buffer)) {
|
|
1887
|
-
return false;
|
|
1888
|
-
}
|
|
1889
|
-
if ((includesCredentials(this.url) || this.url.port !== null) && this.buffer === "file") {
|
|
1890
|
-
return false;
|
|
1891
|
-
}
|
|
1892
|
-
if (this.url.scheme === "file" && (this.url.host === "" || this.url.host === null)) {
|
|
1893
|
-
return false;
|
|
1894
|
-
}
|
|
1895
|
-
}
|
|
1896
|
-
this.url.scheme = this.buffer;
|
|
1897
|
-
if (this.stateOverride) {
|
|
1898
|
-
if (this.url.port === defaultPort(this.url.scheme)) {
|
|
1899
|
-
this.url.port = null;
|
|
1900
|
-
}
|
|
1901
|
-
return false;
|
|
1902
|
-
}
|
|
1903
|
-
this.buffer = "";
|
|
1904
|
-
if (this.url.scheme === "file") {
|
|
1905
|
-
if (this.input[this.pointer + 1] !== 47 || this.input[this.pointer + 2] !== 47) {
|
|
1906
|
-
this.parseError = true;
|
|
1907
|
-
}
|
|
1908
|
-
this.state = "file";
|
|
1909
|
-
} else if (isSpecial(this.url) && this.base !== null && this.base.scheme === this.url.scheme) {
|
|
1910
|
-
this.state = "special relative or authority";
|
|
1911
|
-
} else if (isSpecial(this.url)) {
|
|
1912
|
-
this.state = "special authority slashes";
|
|
1913
|
-
} else if (this.input[this.pointer + 1] === 47) {
|
|
1914
|
-
this.state = "path or authority";
|
|
1915
|
-
++this.pointer;
|
|
1916
|
-
} else {
|
|
1917
|
-
this.url.cannotBeABaseURL = true;
|
|
1918
|
-
this.url.path.push("");
|
|
1919
|
-
this.state = "cannot-be-a-base-URL path";
|
|
1920
|
-
}
|
|
1921
|
-
} else if (!this.stateOverride) {
|
|
1922
|
-
this.buffer = "";
|
|
1923
|
-
this.state = "no scheme";
|
|
1924
|
-
this.pointer = -1;
|
|
1925
|
-
} else {
|
|
1926
|
-
this.parseError = true;
|
|
1927
|
-
return failure;
|
|
1928
|
-
}
|
|
1929
|
-
return true;
|
|
1930
|
-
};
|
|
1931
|
-
URLStateMachine.prototype["parse no scheme"] = function parseNoScheme(c) {
|
|
1932
|
-
if (this.base === null || this.base.cannotBeABaseURL && c !== 35) {
|
|
1933
|
-
return failure;
|
|
1934
|
-
} else if (this.base.cannotBeABaseURL && c === 35) {
|
|
1935
|
-
this.url.scheme = this.base.scheme;
|
|
1936
|
-
this.url.path = this.base.path.slice();
|
|
1937
|
-
this.url.query = this.base.query;
|
|
1938
|
-
this.url.fragment = "";
|
|
1939
|
-
this.url.cannotBeABaseURL = true;
|
|
1940
|
-
this.state = "fragment";
|
|
1941
|
-
} else if (this.base.scheme === "file") {
|
|
1942
|
-
this.state = "file";
|
|
1943
|
-
--this.pointer;
|
|
1944
|
-
} else {
|
|
1945
|
-
this.state = "relative";
|
|
1946
|
-
--this.pointer;
|
|
1947
|
-
}
|
|
1948
|
-
return true;
|
|
1949
|
-
};
|
|
1950
|
-
URLStateMachine.prototype["parse special relative or authority"] = function parseSpecialRelativeOrAuthority(c) {
|
|
1951
|
-
if (c === 47 && this.input[this.pointer + 1] === 47) {
|
|
1952
|
-
this.state = "special authority ignore slashes";
|
|
1953
|
-
++this.pointer;
|
|
1954
|
-
} else {
|
|
1955
|
-
this.parseError = true;
|
|
1956
|
-
this.state = "relative";
|
|
1957
|
-
--this.pointer;
|
|
1958
|
-
}
|
|
1959
|
-
return true;
|
|
1960
|
-
};
|
|
1961
|
-
URLStateMachine.prototype["parse path or authority"] = function parsePathOrAuthority(c) {
|
|
1962
|
-
if (c === 47) {
|
|
1963
|
-
this.state = "authority";
|
|
1964
|
-
} else {
|
|
1965
|
-
this.state = "path";
|
|
1966
|
-
--this.pointer;
|
|
1967
|
-
}
|
|
1968
|
-
return true;
|
|
1969
|
-
};
|
|
1970
|
-
URLStateMachine.prototype["parse relative"] = function parseRelative(c) {
|
|
1971
|
-
this.url.scheme = this.base.scheme;
|
|
1972
|
-
if (isNaN(c)) {
|
|
1973
|
-
this.url.username = this.base.username;
|
|
1974
|
-
this.url.password = this.base.password;
|
|
1975
|
-
this.url.host = this.base.host;
|
|
1976
|
-
this.url.port = this.base.port;
|
|
1977
|
-
this.url.path = this.base.path.slice();
|
|
1978
|
-
this.url.query = this.base.query;
|
|
1979
|
-
} else if (c === 47) {
|
|
1980
|
-
this.state = "relative slash";
|
|
1981
|
-
} else if (c === 63) {
|
|
1982
|
-
this.url.username = this.base.username;
|
|
1983
|
-
this.url.password = this.base.password;
|
|
1984
|
-
this.url.host = this.base.host;
|
|
1985
|
-
this.url.port = this.base.port;
|
|
1986
|
-
this.url.path = this.base.path.slice();
|
|
1987
|
-
this.url.query = "";
|
|
1988
|
-
this.state = "query";
|
|
1989
|
-
} else if (c === 35) {
|
|
1990
|
-
this.url.username = this.base.username;
|
|
1991
|
-
this.url.password = this.base.password;
|
|
1992
|
-
this.url.host = this.base.host;
|
|
1993
|
-
this.url.port = this.base.port;
|
|
1994
|
-
this.url.path = this.base.path.slice();
|
|
1995
|
-
this.url.query = this.base.query;
|
|
1996
|
-
this.url.fragment = "";
|
|
1997
|
-
this.state = "fragment";
|
|
1998
|
-
} else if (isSpecial(this.url) && c === 92) {
|
|
1999
|
-
this.parseError = true;
|
|
2000
|
-
this.state = "relative slash";
|
|
2001
|
-
} else {
|
|
2002
|
-
this.url.username = this.base.username;
|
|
2003
|
-
this.url.password = this.base.password;
|
|
2004
|
-
this.url.host = this.base.host;
|
|
2005
|
-
this.url.port = this.base.port;
|
|
2006
|
-
this.url.path = this.base.path.slice(0, this.base.path.length - 1);
|
|
2007
|
-
this.state = "path";
|
|
2008
|
-
--this.pointer;
|
|
2009
|
-
}
|
|
2010
|
-
return true;
|
|
2011
|
-
};
|
|
2012
|
-
URLStateMachine.prototype["parse relative slash"] = function parseRelativeSlash(c) {
|
|
2013
|
-
if (isSpecial(this.url) && (c === 47 || c === 92)) {
|
|
2014
|
-
if (c === 92) {
|
|
2015
|
-
this.parseError = true;
|
|
2016
|
-
}
|
|
2017
|
-
this.state = "special authority ignore slashes";
|
|
2018
|
-
} else if (c === 47) {
|
|
2019
|
-
this.state = "authority";
|
|
2020
|
-
} else {
|
|
2021
|
-
this.url.username = this.base.username;
|
|
2022
|
-
this.url.password = this.base.password;
|
|
2023
|
-
this.url.host = this.base.host;
|
|
2024
|
-
this.url.port = this.base.port;
|
|
2025
|
-
this.state = "path";
|
|
2026
|
-
--this.pointer;
|
|
2027
|
-
}
|
|
2028
|
-
return true;
|
|
2029
|
-
};
|
|
2030
|
-
URLStateMachine.prototype["parse special authority slashes"] = function parseSpecialAuthoritySlashes(c) {
|
|
2031
|
-
if (c === 47 && this.input[this.pointer + 1] === 47) {
|
|
2032
|
-
this.state = "special authority ignore slashes";
|
|
2033
|
-
++this.pointer;
|
|
2034
|
-
} else {
|
|
2035
|
-
this.parseError = true;
|
|
2036
|
-
this.state = "special authority ignore slashes";
|
|
2037
|
-
--this.pointer;
|
|
2038
|
-
}
|
|
2039
|
-
return true;
|
|
2040
|
-
};
|
|
2041
|
-
URLStateMachine.prototype["parse special authority ignore slashes"] = function parseSpecialAuthorityIgnoreSlashes(c) {
|
|
2042
|
-
if (c !== 47 && c !== 92) {
|
|
2043
|
-
this.state = "authority";
|
|
2044
|
-
--this.pointer;
|
|
2045
|
-
} else {
|
|
2046
|
-
this.parseError = true;
|
|
2047
|
-
}
|
|
2048
|
-
return true;
|
|
2049
|
-
};
|
|
2050
|
-
URLStateMachine.prototype["parse authority"] = function parseAuthority(c, cStr) {
|
|
2051
|
-
if (c === 64) {
|
|
2052
|
-
this.parseError = true;
|
|
2053
|
-
if (this.atFlag) {
|
|
2054
|
-
this.buffer = "%40" + this.buffer;
|
|
2055
|
-
}
|
|
2056
|
-
this.atFlag = true;
|
|
2057
|
-
|
|
2058
|
-
// careful, this is based on buffer and has its own pointer (this.pointer != pointer) and inner chars
|
|
2059
|
-
var len = countSymbols(this.buffer);
|
|
2060
|
-
for (var pointer = 0; pointer < len; ++pointer) {
|
|
2061
|
-
var codePoint = this.buffer.codePointAt(pointer);
|
|
2062
|
-
if (codePoint === 58 && !this.passwordTokenSeenFlag) {
|
|
2063
|
-
this.passwordTokenSeenFlag = true;
|
|
2064
|
-
continue;
|
|
2065
|
-
}
|
|
2066
|
-
var encodedCodePoints = percentEncodeChar(codePoint, isUserinfoPercentEncode);
|
|
2067
|
-
if (this.passwordTokenSeenFlag) {
|
|
2068
|
-
this.url.password += encodedCodePoints;
|
|
2069
|
-
} else {
|
|
2070
|
-
this.url.username += encodedCodePoints;
|
|
2071
|
-
}
|
|
2072
|
-
}
|
|
2073
|
-
this.buffer = "";
|
|
2074
|
-
} else if (isNaN(c) || c === 47 || c === 63 || c === 35 || isSpecial(this.url) && c === 92) {
|
|
2075
|
-
if (this.atFlag && this.buffer === "") {
|
|
2076
|
-
this.parseError = true;
|
|
2077
|
-
return failure;
|
|
2078
|
-
}
|
|
2079
|
-
this.pointer -= countSymbols(this.buffer) + 1;
|
|
2080
|
-
this.buffer = "";
|
|
2081
|
-
this.state = "host";
|
|
2082
|
-
} else {
|
|
2083
|
-
this.buffer += cStr;
|
|
2084
|
-
}
|
|
2085
|
-
return true;
|
|
2086
|
-
};
|
|
2087
|
-
URLStateMachine.prototype["parse hostname"] = URLStateMachine.prototype["parse host"] = function parseHostName(c, cStr) {
|
|
2088
|
-
if (this.stateOverride && this.url.scheme === "file") {
|
|
2089
|
-
--this.pointer;
|
|
2090
|
-
this.state = "file host";
|
|
2091
|
-
} else if (c === 58 && !this.arrFlag) {
|
|
2092
|
-
if (this.buffer === "") {
|
|
2093
|
-
this.parseError = true;
|
|
2094
|
-
return failure;
|
|
2095
|
-
}
|
|
2096
|
-
var host = parseHost(this.buffer, isNotSpecial(this.url));
|
|
2097
|
-
if (host === failure) {
|
|
2098
|
-
return failure;
|
|
2099
|
-
}
|
|
2100
|
-
this.url.host = host;
|
|
2101
|
-
this.buffer = "";
|
|
2102
|
-
this.state = "port";
|
|
2103
|
-
if (this.stateOverride === "hostname") {
|
|
2104
|
-
return false;
|
|
2105
|
-
}
|
|
2106
|
-
} else if (isNaN(c) || c === 47 || c === 63 || c === 35 || isSpecial(this.url) && c === 92) {
|
|
2107
|
-
--this.pointer;
|
|
2108
|
-
if (isSpecial(this.url) && this.buffer === "") {
|
|
2109
|
-
this.parseError = true;
|
|
2110
|
-
return failure;
|
|
2111
|
-
} else if (this.stateOverride && this.buffer === "" && (includesCredentials(this.url) || this.url.port !== null)) {
|
|
2112
|
-
this.parseError = true;
|
|
2113
|
-
return false;
|
|
2114
|
-
}
|
|
2115
|
-
var _host = parseHost(this.buffer, isNotSpecial(this.url));
|
|
2116
|
-
if (_host === failure) {
|
|
2117
|
-
return failure;
|
|
2118
|
-
}
|
|
2119
|
-
this.url.host = _host;
|
|
2120
|
-
this.buffer = "";
|
|
2121
|
-
this.state = "path start";
|
|
2122
|
-
if (this.stateOverride) {
|
|
2123
|
-
return false;
|
|
2124
|
-
}
|
|
2125
|
-
} else {
|
|
2126
|
-
if (c === 91) {
|
|
2127
|
-
this.arrFlag = true;
|
|
2128
|
-
} else if (c === 93) {
|
|
2129
|
-
this.arrFlag = false;
|
|
2130
|
-
}
|
|
2131
|
-
this.buffer += cStr;
|
|
2132
|
-
}
|
|
2133
|
-
return true;
|
|
2134
|
-
};
|
|
2135
|
-
URLStateMachine.prototype["parse port"] = function parsePort(c, cStr) {
|
|
2136
|
-
if (infra.isASCIIDigit(c)) {
|
|
2137
|
-
this.buffer += cStr;
|
|
2138
|
-
} else if (isNaN(c) || c === 47 || c === 63 || c === 35 || isSpecial(this.url) && c === 92 || this.stateOverride) {
|
|
2139
|
-
if (this.buffer !== "") {
|
|
2140
|
-
var port = parseInt(this.buffer);
|
|
2141
|
-
if (port > Math.pow(2, 16) - 1) {
|
|
2142
|
-
this.parseError = true;
|
|
2143
|
-
return failure;
|
|
2144
|
-
}
|
|
2145
|
-
this.url.port = port === defaultPort(this.url.scheme) ? null : port;
|
|
2146
|
-
this.buffer = "";
|
|
2147
|
-
}
|
|
2148
|
-
if (this.stateOverride) {
|
|
2149
|
-
return false;
|
|
2150
|
-
}
|
|
2151
|
-
this.state = "path start";
|
|
2152
|
-
--this.pointer;
|
|
2153
|
-
} else {
|
|
2154
|
-
this.parseError = true;
|
|
2155
|
-
return failure;
|
|
2156
|
-
}
|
|
2157
|
-
return true;
|
|
2158
|
-
};
|
|
2159
|
-
var fileOtherwiseCodePoints = new Set([47, 92, 63, 35]);
|
|
2160
|
-
function startsWithWindowsDriveLetter(input, pointer) {
|
|
2161
|
-
var length = input.length - pointer;
|
|
2162
|
-
return length >= 2 && isWindowsDriveLetterCodePoints(input[pointer], input[pointer + 1]) && (length === 2 || fileOtherwiseCodePoints.has(input[pointer + 2]));
|
|
2163
|
-
}
|
|
2164
|
-
URLStateMachine.prototype["parse file"] = function parseFile(c) {
|
|
2165
|
-
this.url.scheme = "file";
|
|
2166
|
-
if (c === 47 || c === 92) {
|
|
2167
|
-
if (c === 92) {
|
|
2168
|
-
this.parseError = true;
|
|
2169
|
-
}
|
|
2170
|
-
this.state = "file slash";
|
|
2171
|
-
} else if (this.base !== null && this.base.scheme === "file") {
|
|
2172
|
-
if (isNaN(c)) {
|
|
2173
|
-
this.url.host = this.base.host;
|
|
2174
|
-
this.url.path = this.base.path.slice();
|
|
2175
|
-
this.url.query = this.base.query;
|
|
2176
|
-
} else if (c === 63) {
|
|
2177
|
-
this.url.host = this.base.host;
|
|
2178
|
-
this.url.path = this.base.path.slice();
|
|
2179
|
-
this.url.query = "";
|
|
2180
|
-
this.state = "query";
|
|
2181
|
-
} else if (c === 35) {
|
|
2182
|
-
this.url.host = this.base.host;
|
|
2183
|
-
this.url.path = this.base.path.slice();
|
|
2184
|
-
this.url.query = this.base.query;
|
|
2185
|
-
this.url.fragment = "";
|
|
2186
|
-
this.state = "fragment";
|
|
2187
|
-
} else {
|
|
2188
|
-
if (!startsWithWindowsDriveLetter(this.input, this.pointer)) {
|
|
2189
|
-
this.url.host = this.base.host;
|
|
2190
|
-
this.url.path = this.base.path.slice();
|
|
2191
|
-
shortenPath(this.url);
|
|
2192
|
-
} else {
|
|
2193
|
-
this.parseError = true;
|
|
2194
|
-
}
|
|
2195
|
-
this.state = "path";
|
|
2196
|
-
--this.pointer;
|
|
2197
|
-
}
|
|
2198
|
-
} else {
|
|
2199
|
-
this.state = "path";
|
|
2200
|
-
--this.pointer;
|
|
2201
|
-
}
|
|
2202
|
-
return true;
|
|
2203
|
-
};
|
|
2204
|
-
URLStateMachine.prototype["parse file slash"] = function parseFileSlash(c) {
|
|
2205
|
-
if (c === 47 || c === 92) {
|
|
2206
|
-
if (c === 92) {
|
|
2207
|
-
this.parseError = true;
|
|
2208
|
-
}
|
|
2209
|
-
this.state = "file host";
|
|
2210
|
-
} else {
|
|
2211
|
-
if (this.base !== null && this.base.scheme === "file" && !startsWithWindowsDriveLetter(this.input, this.pointer)) {
|
|
2212
|
-
if (isNormalizedWindowsDriveLetterString(this.base.path[0])) {
|
|
2213
|
-
this.url.path.push(this.base.path[0]);
|
|
2214
|
-
} else {
|
|
2215
|
-
this.url.host = this.base.host;
|
|
2216
|
-
}
|
|
2217
|
-
}
|
|
2218
|
-
this.state = "path";
|
|
2219
|
-
--this.pointer;
|
|
2220
|
-
}
|
|
2221
|
-
return true;
|
|
2222
|
-
};
|
|
2223
|
-
URLStateMachine.prototype["parse file host"] = function parseFileHost(c, cStr) {
|
|
2224
|
-
if (isNaN(c) || c === 47 || c === 92 || c === 63 || c === 35) {
|
|
2225
|
-
--this.pointer;
|
|
2226
|
-
if (!this.stateOverride && isWindowsDriveLetterString(this.buffer)) {
|
|
2227
|
-
this.parseError = true;
|
|
2228
|
-
this.state = "path";
|
|
2229
|
-
} else if (this.buffer === "") {
|
|
2230
|
-
this.url.host = "";
|
|
2231
|
-
if (this.stateOverride) {
|
|
2232
|
-
return false;
|
|
2233
|
-
}
|
|
2234
|
-
this.state = "path start";
|
|
2235
|
-
} else {
|
|
2236
|
-
var host = parseHost(this.buffer, isNotSpecial(this.url));
|
|
2237
|
-
if (host === failure) {
|
|
2238
|
-
return failure;
|
|
2239
|
-
}
|
|
2240
|
-
if (host === "localhost") {
|
|
2241
|
-
host = "";
|
|
2242
|
-
}
|
|
2243
|
-
this.url.host = host;
|
|
2244
|
-
if (this.stateOverride) {
|
|
2245
|
-
return false;
|
|
2246
|
-
}
|
|
2247
|
-
this.buffer = "";
|
|
2248
|
-
this.state = "path start";
|
|
2249
|
-
}
|
|
2250
|
-
} else {
|
|
2251
|
-
this.buffer += cStr;
|
|
2252
|
-
}
|
|
2253
|
-
return true;
|
|
2254
|
-
};
|
|
2255
|
-
URLStateMachine.prototype["parse path start"] = function parsePathStart(c) {
|
|
2256
|
-
if (isSpecial(this.url)) {
|
|
2257
|
-
if (c === 92) {
|
|
2258
|
-
this.parseError = true;
|
|
2259
|
-
}
|
|
2260
|
-
this.state = "path";
|
|
2261
|
-
if (c !== 47 && c !== 92) {
|
|
2262
|
-
--this.pointer;
|
|
2263
|
-
}
|
|
2264
|
-
} else if (!this.stateOverride && c === 63) {
|
|
2265
|
-
this.url.query = "";
|
|
2266
|
-
this.state = "query";
|
|
2267
|
-
} else if (!this.stateOverride && c === 35) {
|
|
2268
|
-
this.url.fragment = "";
|
|
2269
|
-
this.state = "fragment";
|
|
2270
|
-
} else if (c !== undefined) {
|
|
2271
|
-
this.state = "path";
|
|
2272
|
-
if (c !== 47) {
|
|
2273
|
-
--this.pointer;
|
|
2274
|
-
}
|
|
2275
|
-
}
|
|
2276
|
-
return true;
|
|
2277
|
-
};
|
|
2278
|
-
URLStateMachine.prototype["parse path"] = function parsePath(c) {
|
|
2279
|
-
if (isNaN(c) || c === 47 || isSpecial(this.url) && c === 92 || !this.stateOverride && (c === 63 || c === 35)) {
|
|
2280
|
-
if (isSpecial(this.url) && c === 92) {
|
|
2281
|
-
this.parseError = true;
|
|
2282
|
-
}
|
|
2283
|
-
if (isDoubleDot(this.buffer)) {
|
|
2284
|
-
shortenPath(this.url);
|
|
2285
|
-
if (c !== 47 && !(isSpecial(this.url) && c === 92)) {
|
|
2286
|
-
this.url.path.push("");
|
|
2287
|
-
}
|
|
2288
|
-
} else if (isSingleDot(this.buffer) && c !== 47 && !(isSpecial(this.url) && c === 92)) {
|
|
2289
|
-
this.url.path.push("");
|
|
2290
|
-
} else if (!isSingleDot(this.buffer)) {
|
|
2291
|
-
if (this.url.scheme === "file" && this.url.path.length === 0 && isWindowsDriveLetterString(this.buffer)) {
|
|
2292
|
-
if (this.url.host !== "" && this.url.host !== null) {
|
|
2293
|
-
this.parseError = true;
|
|
2294
|
-
this.url.host = "";
|
|
2295
|
-
}
|
|
2296
|
-
this.buffer = this.buffer[0] + ":";
|
|
2297
|
-
}
|
|
2298
|
-
this.url.path.push(this.buffer);
|
|
2299
|
-
}
|
|
2300
|
-
this.buffer = "";
|
|
2301
|
-
if (this.url.scheme === "file" && (c === undefined || c === 63 || c === 35)) {
|
|
2302
|
-
while (this.url.path.length > 1 && this.url.path[0] === "") {
|
|
2303
|
-
this.parseError = true;
|
|
2304
|
-
this.url.path.shift();
|
|
2305
|
-
}
|
|
2306
|
-
}
|
|
2307
|
-
if (c === 63) {
|
|
2308
|
-
this.url.query = "";
|
|
2309
|
-
this.state = "query";
|
|
2310
|
-
}
|
|
2311
|
-
if (c === 35) {
|
|
2312
|
-
this.url.fragment = "";
|
|
2313
|
-
this.state = "fragment";
|
|
2314
|
-
}
|
|
2315
|
-
} else {
|
|
2316
|
-
// TODO: If c is not a URL code point and not "%", parse error.
|
|
2317
|
-
|
|
2318
|
-
if (c === 37 && (!infra.isASCIIHex(this.input[this.pointer + 1]) || !infra.isASCIIHex(this.input[this.pointer + 2]))) {
|
|
2319
|
-
this.parseError = true;
|
|
2320
|
-
}
|
|
2321
|
-
this.buffer += percentEncodeChar(c, isPathPercentEncode);
|
|
2322
|
-
}
|
|
2323
|
-
return true;
|
|
2324
|
-
};
|
|
2325
|
-
URLStateMachine.prototype["parse cannot-be-a-base-URL path"] = function parseCannotBeABaseURLPath(c) {
|
|
2326
|
-
if (c === 63) {
|
|
2327
|
-
this.url.query = "";
|
|
2328
|
-
this.state = "query";
|
|
2329
|
-
} else if (c === 35) {
|
|
2330
|
-
this.url.fragment = "";
|
|
2331
|
-
this.state = "fragment";
|
|
2332
|
-
} else {
|
|
2333
|
-
// TODO: Add: not a URL code point
|
|
2334
|
-
if (!isNaN(c) && c !== 37) {
|
|
2335
|
-
this.parseError = true;
|
|
2336
|
-
}
|
|
2337
|
-
if (c === 37 && (!infra.isASCIIHex(this.input[this.pointer + 1]) || !infra.isASCIIHex(this.input[this.pointer + 2]))) {
|
|
2338
|
-
this.parseError = true;
|
|
2339
|
-
}
|
|
2340
|
-
if (!isNaN(c)) {
|
|
2341
|
-
this.url.path[0] += percentEncodeChar(c, isC0ControlPercentEncode);
|
|
2342
|
-
}
|
|
2343
|
-
}
|
|
2344
|
-
return true;
|
|
2345
|
-
};
|
|
2346
|
-
URLStateMachine.prototype["parse query"] = function parseQuery(c, cStr) {
|
|
2347
|
-
if (isNaN(c) || !this.stateOverride && c === 35) {
|
|
2348
|
-
if (!isSpecial(this.url) || this.url.scheme === "ws" || this.url.scheme === "wss") {
|
|
2349
|
-
this.encodingOverride = "utf-8";
|
|
2350
|
-
}
|
|
2351
|
-
var buffer = Buffer$1.from(this.buffer); // TODO: Use encoding override instead
|
|
2352
|
-
for (var i = 0; i < buffer.length; ++i) {
|
|
2353
|
-
if (buffer[i] < 0x21 || buffer[i] > 0x7E || buffer[i] === 0x22 || buffer[i] === 0x23 || buffer[i] === 0x3C || buffer[i] === 0x3E || buffer[i] === 0x27 && isSpecial(this.url)) {
|
|
2354
|
-
this.url.query += percentEncode$1(buffer[i]);
|
|
2355
|
-
} else {
|
|
2356
|
-
this.url.query += String.fromCodePoint(buffer[i]);
|
|
2357
|
-
}
|
|
2358
|
-
}
|
|
2359
|
-
this.buffer = "";
|
|
2360
|
-
if (c === 35) {
|
|
2361
|
-
this.url.fragment = "";
|
|
2362
|
-
this.state = "fragment";
|
|
2363
|
-
}
|
|
2364
|
-
} else {
|
|
2365
|
-
// TODO: If c is not a URL code point and not "%", parse error.
|
|
2366
|
-
if (c === 37 && (!infra.isASCIIHex(this.input[this.pointer + 1]) || !infra.isASCIIHex(this.input[this.pointer + 2]))) {
|
|
2367
|
-
this.parseError = true;
|
|
2368
|
-
}
|
|
2369
|
-
this.buffer += cStr;
|
|
2370
|
-
}
|
|
2371
|
-
return true;
|
|
2372
|
-
};
|
|
2373
|
-
URLStateMachine.prototype["parse fragment"] = function parseFragment(c) {
|
|
2374
|
-
if (isNaN(c)) ; else if (c === 0x0) {
|
|
2375
|
-
this.parseError = true;
|
|
2376
|
-
} else {
|
|
2377
|
-
// TODO: If c is not a URL code point and not "%", parse error.
|
|
2378
|
-
if (c === 37 && (!infra.isASCIIHex(this.input[this.pointer + 1]) || !infra.isASCIIHex(this.input[this.pointer + 2]))) {
|
|
2379
|
-
this.parseError = true;
|
|
2380
|
-
}
|
|
2381
|
-
this.url.fragment += percentEncodeChar(c, isFragmentPercentEncode);
|
|
2382
|
-
}
|
|
2383
|
-
return true;
|
|
2384
|
-
};
|
|
2385
|
-
function serializeURL(url, excludeFragment) {
|
|
2386
|
-
var output = url.scheme + ":";
|
|
2387
|
-
if (url.host !== null) {
|
|
2388
|
-
output += "//";
|
|
2389
|
-
if (url.username !== "" || url.password !== "") {
|
|
2390
|
-
output += url.username;
|
|
2391
|
-
if (url.password !== "") {
|
|
2392
|
-
output += ":" + url.password;
|
|
2393
|
-
}
|
|
2394
|
-
output += "@";
|
|
2395
|
-
}
|
|
2396
|
-
output += serializeHost(url.host);
|
|
2397
|
-
if (url.port !== null) {
|
|
2398
|
-
output += ":" + url.port;
|
|
2399
|
-
}
|
|
2400
|
-
} else if (url.host === null && url.scheme === "file") {
|
|
2401
|
-
output += "//";
|
|
2402
|
-
}
|
|
2403
|
-
if (url.cannotBeABaseURL) {
|
|
2404
|
-
output += url.path[0];
|
|
2405
|
-
} else {
|
|
2406
|
-
var _iterator2 = _createForOfIteratorHelper(url.path),
|
|
2407
|
-
_step2;
|
|
2408
|
-
try {
|
|
2409
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
2410
|
-
var string = _step2.value;
|
|
2411
|
-
output += "/" + string;
|
|
2412
|
-
}
|
|
2413
|
-
} catch (err) {
|
|
2414
|
-
_iterator2.e(err);
|
|
2415
|
-
} finally {
|
|
2416
|
-
_iterator2.f();
|
|
2417
|
-
}
|
|
2418
|
-
}
|
|
2419
|
-
if (url.query !== null) {
|
|
2420
|
-
output += "?" + url.query;
|
|
2421
|
-
}
|
|
2422
|
-
if (!excludeFragment && url.fragment !== null) {
|
|
2423
|
-
output += "#" + url.fragment;
|
|
2424
|
-
}
|
|
2425
|
-
return output;
|
|
2426
|
-
}
|
|
2427
|
-
function serializeOrigin(tuple) {
|
|
2428
|
-
var result = tuple.scheme + "://";
|
|
2429
|
-
result += serializeHost(tuple.host);
|
|
2430
|
-
if (tuple.port !== null) {
|
|
2431
|
-
result += ":" + tuple.port;
|
|
2432
|
-
}
|
|
2433
|
-
return result;
|
|
2434
|
-
}
|
|
2435
|
-
module.exports.serializeURL = serializeURL;
|
|
2436
|
-
module.exports.serializeURLOrigin = function (url) {
|
|
2437
|
-
// https://url.spec.whatwg.org/#concept-url-origin
|
|
2438
|
-
switch (url.scheme) {
|
|
2439
|
-
case "blob":
|
|
2440
|
-
try {
|
|
2441
|
-
return module.exports.serializeURLOrigin(module.exports.parseURL(url.path[0]));
|
|
2442
|
-
} catch (e) {
|
|
2443
|
-
// serializing an opaque origin returns "null"
|
|
2444
|
-
return "null";
|
|
2445
|
-
}
|
|
2446
|
-
case "ftp":
|
|
2447
|
-
case "http":
|
|
2448
|
-
case "https":
|
|
2449
|
-
case "ws":
|
|
2450
|
-
case "wss":
|
|
2451
|
-
return serializeOrigin({
|
|
2452
|
-
scheme: url.scheme,
|
|
2453
|
-
host: url.host,
|
|
2454
|
-
port: url.port
|
|
2455
|
-
});
|
|
2456
|
-
case "file":
|
|
2457
|
-
// The spec says:
|
|
2458
|
-
// > Unfortunate as it is, this is left as an exercise to the reader. When in doubt, return a new opaque origin.
|
|
2459
|
-
// Browsers tested so far:
|
|
2460
|
-
// - Chrome says "file://", but treats file: URLs as cross-origin for most (all?) purposes; see e.g.
|
|
2461
|
-
// https://bugs.chromium.org/p/chromium/issues/detail?id=37586
|
|
2462
|
-
// - Firefox says "null", but treats file: URLs as same-origin sometimes based on directory stuff; see
|
|
2463
|
-
// https://developer.mozilla.org/en-US/docs/Archive/Misc_top_level/Same-origin_policy_for_file:_URIs
|
|
2464
|
-
return "null";
|
|
2465
|
-
default:
|
|
2466
|
-
// serializing an opaque origin returns "null"
|
|
2467
|
-
return "null";
|
|
2468
|
-
}
|
|
2469
|
-
};
|
|
2470
|
-
module.exports.basicURLParse = function (input, options) {
|
|
2471
|
-
if (options === undefined) {
|
|
2472
|
-
options = {};
|
|
2473
|
-
}
|
|
2474
|
-
var usm = new URLStateMachine(input, options.baseURL, options.encodingOverride, options.url, options.stateOverride);
|
|
2475
|
-
if (usm.failure) {
|
|
2476
|
-
return null;
|
|
2477
|
-
}
|
|
2478
|
-
return usm.url;
|
|
2479
|
-
};
|
|
2480
|
-
module.exports.setTheUsername = function (url, username) {
|
|
2481
|
-
url.username = "";
|
|
2482
|
-
var decoded = punycode.ucs2.decode(username);
|
|
2483
|
-
for (var i = 0; i < decoded.length; ++i) {
|
|
2484
|
-
url.username += percentEncodeChar(decoded[i], isUserinfoPercentEncode);
|
|
2485
|
-
}
|
|
2486
|
-
};
|
|
2487
|
-
module.exports.setThePassword = function (url, password) {
|
|
2488
|
-
url.password = "";
|
|
2489
|
-
var decoded = punycode.ucs2.decode(password);
|
|
2490
|
-
for (var i = 0; i < decoded.length; ++i) {
|
|
2491
|
-
url.password += percentEncodeChar(decoded[i], isUserinfoPercentEncode);
|
|
2492
|
-
}
|
|
2493
|
-
};
|
|
2494
|
-
module.exports.serializeHost = serializeHost;
|
|
2495
|
-
module.exports.cannotHaveAUsernamePasswordPort = cannotHaveAUsernamePasswordPort;
|
|
2496
|
-
module.exports.serializeInteger = function (integer) {
|
|
2497
|
-
return String(integer);
|
|
2498
|
-
};
|
|
2499
|
-
module.exports.parseURL = function (input, options) {
|
|
2500
|
-
if (options === undefined) {
|
|
2501
|
-
options = {};
|
|
2502
|
-
}
|
|
2503
|
-
|
|
2504
|
-
// We don't handle blobs, so this just delegates:
|
|
2505
|
-
return module.exports.basicURLParse(input, {
|
|
2506
|
-
baseURL: options.baseURL,
|
|
2507
|
-
encodingOverride: options.encodingOverride
|
|
2508
|
-
});
|
|
2509
|
-
};
|
|
2510
|
-
|
|
2511
|
-
var urlStateMachine$1 = /*#__PURE__*/Object.freeze({
|
|
2512
|
-
__proto__: null
|
|
2513
|
-
});
|
|
2514
|
-
|
|
2515
|
-
var require$$1 = /*@__PURE__*/getAugmentedNamespace(urlStateMachine$1);
|
|
2516
|
-
|
|
2517
|
-
var _require$1 = require("buffer/"),
|
|
2518
|
-
Buffer = _require$1.Buffer;
|
|
2519
|
-
var _require2 = require("./infra"),
|
|
2520
|
-
isASCIIHex = _require2.isASCIIHex;
|
|
2521
|
-
function strictlySplitByteSequence(buf, cp) {
|
|
2522
|
-
var list = [];
|
|
2523
|
-
var last = 0;
|
|
2524
|
-
var i = buf.indexOf(cp);
|
|
2525
|
-
while (i >= 0) {
|
|
2526
|
-
list.push(buf.slice(last, i));
|
|
2527
|
-
last = i + 1;
|
|
2528
|
-
i = buf.indexOf(cp, last);
|
|
2529
|
-
}
|
|
2530
|
-
if (last !== buf.length) {
|
|
2531
|
-
list.push(buf.slice(last));
|
|
2532
|
-
}
|
|
2533
|
-
return list;
|
|
2534
|
-
}
|
|
2535
|
-
function replaceByteInByteSequence(buf, from, to) {
|
|
2536
|
-
var i = buf.indexOf(from);
|
|
2537
|
-
while (i >= 0) {
|
|
2538
|
-
buf[i] = to;
|
|
2539
|
-
i = buf.indexOf(from, i + 1);
|
|
2540
|
-
}
|
|
2541
|
-
return buf;
|
|
2542
|
-
}
|
|
2543
|
-
function percentEncode(c) {
|
|
2544
|
-
var hex = c.toString(16).toUpperCase();
|
|
2545
|
-
if (hex.length === 1) {
|
|
2546
|
-
hex = "0" + hex;
|
|
2547
|
-
}
|
|
2548
|
-
return "%" + hex;
|
|
2549
|
-
}
|
|
2550
|
-
function percentDecode(input) {
|
|
2551
|
-
var output = Buffer.alloc(input.byteLength);
|
|
2552
|
-
var ptr = 0;
|
|
2553
|
-
for (var i = 0; i < input.length; ++i) {
|
|
2554
|
-
if (input[i] !== 37 || !isASCIIHex(input[i + 1]) || !isASCIIHex(input[i + 2])) {
|
|
2555
|
-
output[ptr++] = input[i];
|
|
2556
|
-
} else {
|
|
2557
|
-
output[ptr++] = parseInt(input.slice(i + 1, i + 3).toString(), 16);
|
|
2558
|
-
i += 2;
|
|
2559
|
-
}
|
|
2560
|
-
}
|
|
2561
|
-
return output.slice(0, ptr);
|
|
2562
|
-
}
|
|
2563
|
-
function _parseUrlencoded(input) {
|
|
2564
|
-
var sequences = strictlySplitByteSequence(input, 38);
|
|
2565
|
-
var output = [];
|
|
2566
|
-
var _iterator = _createForOfIteratorHelper(sequences),
|
|
2567
|
-
_step;
|
|
2568
|
-
try {
|
|
2569
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2570
|
-
var bytes = _step.value;
|
|
2571
|
-
if (bytes.length === 0) {
|
|
2572
|
-
continue;
|
|
2573
|
-
}
|
|
2574
|
-
var name = void 0;
|
|
2575
|
-
var value = void 0;
|
|
2576
|
-
var indexOfEqual = bytes.indexOf(61);
|
|
2577
|
-
if (indexOfEqual >= 0) {
|
|
2578
|
-
name = bytes.slice(0, indexOfEqual);
|
|
2579
|
-
value = bytes.slice(indexOfEqual + 1);
|
|
2580
|
-
} else {
|
|
2581
|
-
name = bytes;
|
|
2582
|
-
value = Buffer.alloc(0);
|
|
2583
|
-
}
|
|
2584
|
-
name = replaceByteInByteSequence(Buffer.from(name), 43, 32);
|
|
2585
|
-
value = replaceByteInByteSequence(Buffer.from(value), 43, 32);
|
|
2586
|
-
output.push([percentDecode(name).toString(), percentDecode(value).toString()]);
|
|
2587
|
-
}
|
|
2588
|
-
} catch (err) {
|
|
2589
|
-
_iterator.e(err);
|
|
2590
|
-
} finally {
|
|
2591
|
-
_iterator.f();
|
|
2592
|
-
}
|
|
2593
|
-
return output;
|
|
2594
|
-
}
|
|
2595
|
-
function serializeUrlencodedByte(input) {
|
|
2596
|
-
var output = "";
|
|
2597
|
-
var _iterator2 = _createForOfIteratorHelper(input),
|
|
2598
|
-
_step2;
|
|
2599
|
-
try {
|
|
2600
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
2601
|
-
var _byte = _step2.value;
|
|
2602
|
-
if (_byte === 32) {
|
|
2603
|
-
output += "+";
|
|
2604
|
-
} else if (_byte === 42 || _byte === 45 || _byte === 46 || _byte >= 48 && _byte <= 57 || _byte >= 65 && _byte <= 90 || _byte === 95 || _byte >= 97 && _byte <= 122) {
|
|
2605
|
-
output += String.fromCodePoint(_byte);
|
|
2606
|
-
} else {
|
|
2607
|
-
output += percentEncode(_byte);
|
|
2608
|
-
}
|
|
2609
|
-
}
|
|
2610
|
-
} catch (err) {
|
|
2611
|
-
_iterator2.e(err);
|
|
2612
|
-
} finally {
|
|
2613
|
-
_iterator2.f();
|
|
2614
|
-
}
|
|
2615
|
-
return output;
|
|
2616
|
-
}
|
|
2617
|
-
function serializeUrlencoded(tuples) {
|
|
2618
|
-
var encodingOverride = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
|
|
2619
|
-
var encoding = "utf-8";
|
|
2620
|
-
if (encodingOverride !== undefined) {
|
|
2621
|
-
encoding = encodingOverride;
|
|
2622
|
-
}
|
|
2623
|
-
var output = "";
|
|
2624
|
-
var _iterator3 = _createForOfIteratorHelper(tuples.entries()),
|
|
2625
|
-
_step3;
|
|
2626
|
-
try {
|
|
2627
|
-
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
2628
|
-
var _step3$value = _slicedToArray(_step3.value, 2),
|
|
2629
|
-
i = _step3$value[0],
|
|
2630
|
-
tuple = _step3$value[1];
|
|
2631
|
-
// TODO: handle encoding override
|
|
2632
|
-
var name = serializeUrlencodedByte(Buffer.from(tuple[0]));
|
|
2633
|
-
var value = tuple[1];
|
|
2634
|
-
if (tuple.length > 2 && tuple[2] !== undefined) {
|
|
2635
|
-
if (tuple[2] === "hidden" && name === "_charset_") {
|
|
2636
|
-
value = encoding;
|
|
2637
|
-
} else if (tuple[2] === "file") {
|
|
2638
|
-
// value is a File object
|
|
2639
|
-
value = value.name;
|
|
2640
|
-
}
|
|
2641
|
-
}
|
|
2642
|
-
value = serializeUrlencodedByte(Buffer.from(value));
|
|
2643
|
-
if (i !== 0) {
|
|
2644
|
-
output += "&";
|
|
2645
|
-
}
|
|
2646
|
-
output += "".concat(name, "=").concat(value);
|
|
2647
|
-
}
|
|
2648
|
-
} catch (err) {
|
|
2649
|
-
_iterator3.e(err);
|
|
2650
|
-
} finally {
|
|
2651
|
-
_iterator3.f();
|
|
2652
|
-
}
|
|
2653
|
-
return output;
|
|
2654
|
-
}
|
|
2655
|
-
module.exports = {
|
|
2656
|
-
percentEncode: percentEncode,
|
|
2657
|
-
percentDecode: percentDecode,
|
|
2658
|
-
// application/x-www-form-urlencoded string parser
|
|
2659
|
-
parseUrlencoded: function parseUrlencoded(input) {
|
|
2660
|
-
return _parseUrlencoded(Buffer.from(input));
|
|
2661
|
-
},
|
|
2662
|
-
// application/x-www-form-urlencoded serializer
|
|
2663
|
-
serializeUrlencoded: serializeUrlencoded
|
|
2664
|
-
};
|
|
2665
|
-
|
|
2666
|
-
var urlencoded = /*#__PURE__*/Object.freeze({
|
|
2667
|
-
__proto__: null
|
|
2668
|
-
});
|
|
2669
|
-
|
|
2670
|
-
var require$$2 = /*@__PURE__*/getAugmentedNamespace(urlencoded);
|
|
2671
|
-
|
|
2672
|
-
var _require = webidl2jsWrapper,
|
|
2673
|
-
URL = _require.URL,
|
|
2674
|
-
URLSearchParams = _require.URLSearchParams;
|
|
2675
|
-
var urlStateMachine = require$$1;
|
|
2676
|
-
var urlEncoded = require$$2;
|
|
2677
|
-
var sharedGlobalObject = {};
|
|
2678
|
-
URL.install(sharedGlobalObject);
|
|
2679
|
-
URLSearchParams.install(sharedGlobalObject);
|
|
2680
|
-
var URL_1 = sharedGlobalObject.URL;
|
|
2681
|
-
sharedGlobalObject.URLSearchParams;
|
|
2682
|
-
urlStateMachine.parseURL;
|
|
2683
|
-
urlStateMachine.basicURLParse;
|
|
2684
|
-
urlStateMachine.serializeURL;
|
|
2685
|
-
urlStateMachine.serializeHost;
|
|
2686
|
-
urlStateMachine.serializeInteger;
|
|
2687
|
-
urlStateMachine.serializeURLOrigin;
|
|
2688
|
-
urlStateMachine.setTheUsername;
|
|
2689
|
-
urlStateMachine.setThePassword;
|
|
2690
|
-
urlStateMachine.cannotHaveAUsernamePasswordPort;
|
|
2691
|
-
urlEncoded.percentDecode;
|
|
2692
|
-
|
|
2693
|
-
var BLOB_URL_PREFIX = null;
|
|
2694
|
-
var BlobModule = NativeModules.BlobModule;
|
|
2695
|
-
if (BlobModule && typeof BlobModule.BLOB_URI_SCHEME === 'string') {
|
|
2696
|
-
BLOB_URL_PREFIX = BlobModule.BLOB_URI_SCHEME + ':';
|
|
2697
|
-
if (typeof BlobModule.BLOB_URI_HOST === 'string') {
|
|
2698
|
-
BLOB_URL_PREFIX += "//".concat(BlobModule.BLOB_URI_HOST, "/");
|
|
2699
|
-
}
|
|
2700
|
-
}
|
|
2701
|
-
|
|
2702
|
-
/**
|
|
2703
|
-
* To allow Blobs be accessed via `content://` URIs,
|
|
2704
|
-
* you need to register `BlobProvider` as a ContentProvider in your app's `AndroidManifest.xml`:
|
|
2705
|
-
*
|
|
2706
|
-
* ```xml
|
|
2707
|
-
* <manifest>
|
|
2708
|
-
* <application>
|
|
2709
|
-
* <provider
|
|
2710
|
-
* android:name="com.facebook.react.modules.blob.BlobProvider"
|
|
2711
|
-
* android:authorities="@string/blob_provider_authority"
|
|
2712
|
-
* android:exported="false"
|
|
2713
|
-
* />
|
|
2714
|
-
* </application>
|
|
2715
|
-
* </manifest>
|
|
2716
|
-
* ```
|
|
2717
|
-
* And then define the `blob_provider_authority` string in `res/values/strings.xml`.
|
|
2718
|
-
* Use a dotted name that's entirely unique to your app:
|
|
2719
|
-
*
|
|
2720
|
-
* ```xml
|
|
2721
|
-
* <resources>
|
|
2722
|
-
* <string name="blob_provider_authority">your.app.package.blobs</string>
|
|
2723
|
-
* </resources>
|
|
2724
|
-
* ```
|
|
2725
|
-
*/
|
|
2726
|
-
|
|
2727
|
-
URL_1.createObjectURL = function createObjectURL(blob) {
|
|
2728
|
-
if (BLOB_URL_PREFIX === null) {
|
|
2729
|
-
throw new Error('Cannot create URL for blob!');
|
|
2730
|
-
}
|
|
2731
|
-
return "".concat(BLOB_URL_PREFIX).concat(blob.data.blobId, "?offset=").concat(blob.data.offset, "&size=").concat(blob.size);
|
|
2732
|
-
};
|
|
2733
|
-
URL_1.revokeObjectURL = function revokeObjectURL(url) {
|
|
2734
|
-
// Do nothing.
|
|
2735
|
-
};
|
|
2736
|
-
|
|
2737
|
-
function setupURLPolyfill() {
|
|
2738
|
-
globalThis.REACT_NATIVE_URL_POLYFILL = "".concat(packageJson.name, "@").concat(packageJson.version);
|
|
2739
|
-
globalThis.URL = require('./js/URL').URL;
|
|
2740
|
-
globalThis.URLSearchParams = require('./js/URLSearchParams').URLSearchParams;
|
|
2741
|
-
}
|
|
2742
|
-
|
|
2743
|
-
if (Platform.OS !== 'web') {
|
|
2744
|
-
setupURLPolyfill();
|
|
2745
|
-
}
|
|
2746
|
-
|
|
2747
360
|
bindPushDataEvent(pushGlobalData);
|
|
2748
361
|
|
|
2749
362
|
export { Radio$1 as default };
|