@unicom-cloud/ui 0.8.168 → 0.8.169
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/.virtual/_rolldown/runtime.js +1 -1
- package/affix/Affix.d.ts +1 -3
- package/affix/Affix.js +67 -64
- package/affix/constants.js +2 -0
- package/affix/context.d.ts +3 -0
- package/affix/context.js +7 -0
- package/affix/index.d.ts +4 -3
- package/affix/index.js +9 -4
- package/affix/interface.d.ts +2 -2
- package/affix/style/index.css +1 -0
- package/affix/style/index.d.ts +1 -0
- package/affix/style/index.js +3 -0
- package/alert/Alert.js +58 -57
- package/alert/constants.js +2 -0
- package/alert/context.d.ts +3 -0
- package/alert/context.js +10 -0
- package/alert/index.d.ts +3 -0
- package/alert/index.js +9 -4
- package/alert/style/index.css +1 -0
- package/alert/style/index.d.ts +1 -0
- package/alert/style/index.js +3 -0
- package/anchor/Anchor.js +48 -55
- package/anchor/Link.js +2 -2
- package/anchor/constants.js +2 -0
- package/anchor/context.d.ts +3 -2
- package/anchor/context.js +12 -3
- package/anchor/index.d.ts +4 -1
- package/anchor/index.js +10 -7
- package/anchor/style/index.css +1 -0
- package/anchor/style/index.d.ts +2 -0
- package/anchor/style/index.js +4 -0
- package/anchor/utils.js +1 -1
- package/animation/Animation.js +18 -14
- package/animation/constants.js +2 -0
- package/animation/context.d.ts +3 -0
- package/animation/context.js +7 -0
- package/animation/index.d.ts +2 -0
- package/animation/index.js +10 -5
- package/animation/style/index.d.ts +1 -0
- package/animation/style/index.js +3 -0
- package/app/App.js +25 -27
- package/app/constants.js +2 -0
- package/app/context.d.ts +4 -3
- package/app/context.js +5 -4
- package/app/index.d.ts +2 -1
- package/app/index.js +9 -7
- package/app/style/index.css +1 -0
- package/app/style/index.d.ts +1 -0
- package/app/style/index.js +3 -0
- package/app/useApp.js +2 -2
- package/auto-complete/AutoComplete.js +58 -54
- package/auto-complete/constants.d.ts +0 -0
- package/auto-complete/constants.js +2 -0
- package/auto-complete/context.d.ts +3 -0
- package/auto-complete/context.js +7 -0
- package/auto-complete/index.d.ts +2 -0
- package/auto-complete/index.js +9 -6
- package/auto-complete/style/index.css +1 -0
- package/auto-complete/style/index.d.ts +3 -0
- package/auto-complete/style/index.js +5 -0
- package/avatar/Avatar.d.ts +1 -3
- package/avatar/Avatar.js +49 -53
- package/avatar/Group.js +3 -3
- package/avatar/constants.d.ts +0 -0
- package/avatar/constants.js +2 -0
- package/avatar/context.d.ts +3 -2
- package/avatar/context.js +7 -3
- package/avatar/index.d.ts +4 -4
- package/avatar/index.js +9 -7
- package/avatar/interface.d.ts +2 -2
- package/avatar/style/index.css +1 -0
- package/avatar/style/index.d.ts +2 -0
- package/avatar/style/index.js +4 -0
- package/back-top/BackTop.d.ts +1 -3
- package/back-top/BackTop.js +44 -44
- package/back-top/constants.d.ts +0 -0
- package/back-top/constants.js +2 -0
- package/back-top/context.d.ts +3 -0
- package/back-top/context.js +11 -0
- package/back-top/index.d.ts +3 -3
- package/back-top/index.js +9 -4
- package/back-top/interface.d.ts +2 -2
- package/back-top/style/index.css +1 -0
- package/back-top/style/index.d.ts +1 -0
- package/back-top/style/index.js +3 -0
- package/badge/Badge.js +84 -85
- package/badge/Count.js +2 -2
- package/badge/constants.d.ts +0 -0
- package/badge/constants.js +2 -0
- package/badge/context.d.ts +3 -0
- package/badge/context.js +11 -0
- package/badge/index.d.ts +2 -0
- package/badge/index.js +10 -7
- package/badge/style/index.css +1 -0
- package/badge/style/index.d.ts +1 -0
- package/badge/style/index.js +3 -0
- package/badge/utils.js +1 -1
- package/border-beam/BorderBeam.js +20 -17
- package/border-beam/constants.d.ts +0 -0
- package/border-beam/constants.js +2 -0
- package/border-beam/context.d.ts +3 -0
- package/border-beam/context.js +7 -0
- package/border-beam/index.d.ts +2 -0
- package/border-beam/index.js +12 -7
- package/border-beam/style/index.css +1 -0
- package/border-beam/style/index.d.ts +1 -0
- package/border-beam/style/index.js +3 -0
- package/breadcrumb/Breadcrumb.js +46 -44
- package/breadcrumb/Item.js +6 -6
- package/breadcrumb/constants.d.ts +0 -0
- package/breadcrumb/constants.js +2 -0
- package/breadcrumb/context.d.ts +2 -0
- package/breadcrumb/context.js +5 -4
- package/breadcrumb/index.d.ts +2 -0
- package/breadcrumb/index.js +9 -7
- package/breadcrumb/style/index.css +1 -0
- package/breadcrumb/style/index.d.ts +2 -0
- package/breadcrumb/style/index.js +4 -0
- package/button/Button.js +48 -49
- package/button/Group.js +1 -1
- package/button/Toggle.js +1 -1
- package/button/constants.d.ts +0 -0
- package/button/constants.js +2 -0
- package/button/context.d.ts +9 -0
- package/button/context.js +11 -0
- package/button/index.d.ts +8 -0
- package/button/index.js +11 -8
- package/button/style/index.css +1 -0
- package/button/style/index.d.ts +1 -0
- package/button/style/index.js +3 -0
- package/calendar/Calendar.js +92 -95
- package/calendar/Month.js +4 -4
- package/calendar/WeekList.js +1 -1
- package/calendar/Year.js +2 -2
- package/calendar/constants.d.ts +0 -0
- package/calendar/constants.js +2 -0
- package/calendar/context.d.ts +3 -0
- package/calendar/context.js +13 -0
- package/calendar/header/Panel.js +1 -1
- package/calendar/header/index.js +3 -3
- package/calendar/hooks/useCellClassName.js +34 -0
- package/calendar/index.d.ts +2 -0
- package/calendar/index.js +11 -8
- package/calendar/style/index.css +1 -0
- package/calendar/style/index.d.ts +3 -0
- package/calendar/style/index.js +5 -0
- package/card/Card.js +48 -48
- package/card/Grid.js +1 -1
- package/card/Meta.js +1 -1
- package/card/constants.d.ts +0 -0
- package/card/constants.js +2 -0
- package/card/context.d.ts +3 -0
- package/card/context.js +10 -0
- package/card/index.d.ts +2 -0
- package/card/index.js +7 -4
- package/card/style/index.css +1 -0
- package/card/style/index.d.ts +2 -0
- package/card/style/index.js +4 -0
- package/carousel/Arrow.js +1 -1
- package/carousel/Carousel.js +82 -87
- package/carousel/Indicator.js +1 -1
- package/carousel/constants.d.ts +0 -0
- package/carousel/constants.js +2 -0
- package/carousel/context.d.ts +3 -0
- package/carousel/context.js +16 -0
- package/carousel/index.d.ts +2 -0
- package/carousel/index.js +9 -4
- package/carousel/style/index.css +1 -0
- package/carousel/style/index.d.ts +1 -0
- package/carousel/style/index.js +3 -0
- package/cascader/Cascader.js +151 -155
- package/cascader/base/node.js +2 -2
- package/cascader/base/store.js +1 -1
- package/cascader/constants.d.ts +7 -0
- package/cascader/constants.js +13 -0
- package/cascader/context.d.ts +3 -0
- package/cascader/context.js +17 -0
- package/cascader/hooks/useRefCurrent.js +14 -0
- package/cascader/index.d.ts +2 -0
- package/cascader/index.js +9 -4
- package/cascader/panel/List.js +28 -28
- package/cascader/panel/Option.js +2 -2
- package/cascader/panel/Search.js +16 -16
- package/cascader/style/index.css +1 -0
- package/cascader/style/index.d.ts +5 -0
- package/cascader/style/index.js +7 -0
- package/cascader/utils.d.ts +0 -7
- package/cascader/utils.js +25 -32
- package/checkbox/Checkbox.js +17 -14
- package/checkbox/Group.js +4 -4
- package/checkbox/GroupBlock.js +3 -3
- package/checkbox/constants.d.ts +0 -0
- package/checkbox/constants.js +2 -0
- package/checkbox/context.d.ts +3 -0
- package/checkbox/context.js +3 -3
- package/checkbox/index.d.ts +2 -0
- package/checkbox/index.js +13 -11
- package/checkbox/style/index.css +1 -0
- package/checkbox/style/index.d.ts +1 -0
- package/checkbox/style/index.js +3 -0
- package/checkbox/useCheckbox.js +1 -1
- package/collapse/Collapse.js +45 -47
- package/collapse/Item.js +2 -2
- package/collapse/constants.d.ts +0 -0
- package/collapse/constants.js +2 -0
- package/collapse/context.d.ts +2 -0
- package/collapse/context.js +8 -3
- package/collapse/index.d.ts +2 -0
- package/collapse/index.js +9 -7
- package/collapse/style/index.css +1 -0
- package/collapse/style/index.d.ts +1 -0
- package/collapse/style/index.js +3 -0
- package/collapse/utils.js +1 -1
- package/color-picker/ColorPicker.js +79 -80
- package/color-picker/ControlBar.js +1 -1
- package/color-picker/InputAlpha.js +1 -1
- package/color-picker/InputHex.js +1 -1
- package/color-picker/InputRgb.js +1 -1
- package/color-picker/Mode.js +1 -1
- package/color-picker/Palette.js +1 -1
- package/color-picker/Panel.js +74 -74
- package/color-picker/colors.js +1 -1
- package/color-picker/constants.d.ts +0 -0
- package/color-picker/constants.js +2 -0
- package/color-picker/context.d.ts +3 -0
- package/color-picker/context.js +11 -0
- package/color-picker/hooks/useColorPicker.d.ts +1 -1
- package/color-picker/hooks/useColorPicker.js +1 -1
- package/color-picker/hooks/useControlBlock.js +1 -1
- package/color-picker/index.d.ts +2 -0
- package/color-picker/index.js +19 -16
- package/color-picker/interface.js +1 -1
- package/color-picker/style/index.css +1 -0
- package/color-picker/style/index.d.ts +3 -0
- package/color-picker/style/index.js +5 -0
- package/color-picker/utils.d.ts +1 -1
- package/color-picker/utils.js +1 -1
- package/comment/Comment.js +52 -48
- package/comment/constants.d.ts +0 -0
- package/comment/constants.js +2 -0
- package/comment/context.d.ts +3 -0
- package/comment/context.js +7 -0
- package/comment/index.d.ts +2 -0
- package/comment/index.js +9 -4
- package/comment/style/index.css +1 -0
- package/comment/style/index.d.ts +1 -0
- package/comment/style/index.js +3 -0
- package/config-provider/ConfigProvider.js +11 -11
- package/config-provider/constants.d.ts +0 -0
- package/config-provider/constants.js +2 -0
- package/config-provider/context.d.ts +21 -0
- package/config-provider/context.js +4 -4
- package/config-provider/index.d.ts +1 -0
- package/config-provider/index.js +2 -1
- package/config-provider/initUI.js +1 -1
- package/config-provider/interface.d.ts +6 -0
- package/config-provider/style/index.d.ts +1 -0
- package/config-provider/style/index.js +3 -0
- package/config-provider/useConfigProvider.js +2 -2
- package/config-provider/utils.js +2 -2
- package/constants/index.d.ts +2 -0
- package/constants/index.js +6 -0
- package/copy/Copy.d.ts +1 -1
- package/copy/Copy.js +37 -35
- package/copy/constants.d.ts +0 -0
- package/copy/constants.js +2 -0
- package/copy/context.d.ts +3 -0
- package/copy/context.js +7 -0
- package/copy/index.d.ts +2 -0
- package/copy/index.js +9 -4
- package/copy/style/index.css +1 -0
- package/copy/style/index.d.ts +2 -0
- package/copy/style/index.js +4 -0
- package/countdown/Countdown.js +43 -42
- package/countdown/constants.d.ts +0 -0
- package/countdown/constants.js +2 -0
- package/countdown/context.d.ts +3 -0
- package/countdown/context.js +10 -0
- package/countdown/index.d.ts +2 -0
- package/countdown/index.js +9 -4
- package/countdown/style/index.css +1 -0
- package/countdown/style/index.d.ts +2 -0
- package/countdown/style/index.js +4 -0
- package/countdown/utils.js +1 -1
- package/date-picker/DatePicker.d.ts +6 -5
- package/date-picker/DatePicker.js +5 -5
- package/date-picker/Picker.js +208 -211
- package/date-picker/Range.d.ts +3 -0
- package/date-picker/Range.js +404 -0
- package/date-picker/constants.d.ts +0 -0
- package/date-picker/constants.js +2 -0
- package/date-picker/context.d.ts +4 -2
- package/date-picker/context.js +9 -3
- package/date-picker/hooks/useCellClassName.js +53 -0
- package/date-picker/index.d.ts +4 -2
- package/date-picker/index.js +13 -18
- package/date-picker/panel/Body.js +2 -2
- package/date-picker/panel/Footer.js +4 -4
- package/date-picker/panel/Header.js +2 -2
- package/date-picker/panel/Shortcut.d.ts +1 -1
- package/date-picker/panel/Shortcut.js +2 -2
- package/date-picker/panel/WeekList.js +1 -1
- package/date-picker/panel/date/index.js +3 -3
- package/date-picker/panel/month/index.js +2 -2
- package/date-picker/panel/quarter/index.js +2 -2
- package/date-picker/panel/range/index.js +2 -2
- package/date-picker/panel/week/index.js +2 -2
- package/date-picker/panel/year/index.js +3 -3
- package/date-picker/style/index.css +1 -0
- package/date-picker/style/index.d.ts +6 -0
- package/date-picker/style/index.js +8 -0
- package/date-picker/utils.js +2 -2
- package/descriptions/Descriptions.js +83 -83
- package/descriptions/constants.d.ts +0 -0
- package/descriptions/constants.js +2 -0
- package/descriptions/context.d.ts +3 -0
- package/descriptions/context.js +11 -0
- package/descriptions/index.d.ts +2 -0
- package/descriptions/index.js +9 -4
- package/descriptions/style/index.css +1 -0
- package/descriptions/style/index.d.ts +1 -0
- package/descriptions/style/index.js +3 -0
- package/details/Details.js +57 -54
- package/details/constants.d.ts +0 -0
- package/details/constants.js +2 -0
- package/details/context.d.ts +3 -0
- package/details/context.js +7 -0
- package/details/index.d.ts +2 -0
- package/details/index.js +9 -4
- package/details/style/index.css +1 -0
- package/details/style/index.d.ts +1 -0
- package/details/style/index.js +3 -0
- package/development/Development.js +25 -20
- package/development/constants.d.ts +0 -0
- package/development/constants.js +2 -0
- package/development/context.d.ts +3 -0
- package/development/context.js +7 -0
- package/development/index.d.ts +2 -0
- package/development/index.js +9 -4
- package/development/style/index.css +1 -0
- package/development/style/index.d.ts +1 -0
- package/development/style/index.js +3 -0
- package/divider/Divider.js +34 -34
- package/divider/constants.d.ts +0 -0
- package/divider/constants.js +2 -0
- package/divider/context.d.ts +3 -0
- package/divider/context.js +10 -0
- package/divider/index.d.ts +2 -0
- package/divider/index.js +8 -5
- package/divider/style/index.css +1 -0
- package/divider/style/index.d.ts +1 -0
- package/divider/style/index.js +3 -0
- package/draggable/Draggable.js +27 -22
- package/draggable/Item.js +1 -1
- package/draggable/constants.d.ts +0 -0
- package/draggable/constants.js +2 -0
- package/draggable/context.d.ts +3 -0
- package/draggable/context.js +7 -0
- package/draggable/index.d.ts +2 -0
- package/draggable/index.js +9 -6
- package/draggable/style/index.css +1 -0
- package/draggable/style/index.d.ts +1 -0
- package/draggable/style/index.js +3 -0
- package/draw/Draw.d.ts +3 -1
- package/draw/Draw.js +102 -31
- package/draw/LICENSE +20 -0
- package/draw/common/binary-heap.d.ts +12 -0
- package/draw/common/binary-heap.js +52 -0
- package/draw/common/bounds.d.ts +10 -0
- package/draw/common/bounds.js +3 -0
- package/draw/common/colors.d.ts +21 -0
- package/draw/common/colors.js +109 -0
- package/draw/common/constants.d.ts +345 -0
- package/draw/common/constants.js +218 -0
- package/draw/common/editorInterface.d.ts +34 -0
- package/draw/common/editorInterface.js +39 -0
- package/draw/common/emitter.d.ts +16 -0
- package/draw/common/emitter.js +31 -0
- package/draw/common/font-metadata.d.ts +43 -0
- package/draw/common/font-metadata.js +94 -0
- package/draw/common/index.d.ts +14 -0
- package/draw/common/index.js +16 -0
- package/draw/common/keys.d.ts +187 -0
- package/draw/common/keys.js +87 -0
- package/draw/common/points.d.ts +9 -0
- package/draw/common/points.js +22 -0
- package/draw/common/promise-pool.d.ts +5 -0
- package/draw/common/promise-pool.js +24 -0
- package/draw/common/queue.d.ts +7 -0
- package/draw/common/queue.js +25 -0
- package/draw/common/random.d.ts +3 -0
- package/draw/common/random.js +9 -0
- package/draw/common/url.d.ts +7 -0
- package/draw/common/url.js +16 -0
- package/draw/common/utility-types.d.ts +37 -0
- package/draw/common/utils.d.ts +281 -0
- package/draw/common/utils.js +227 -0
- package/draw/constants.d.ts +1 -0
- package/draw/constants.js +6 -0
- package/draw/context.d.ts +3 -0
- package/draw/context.js +7 -0
- package/draw/core/actions/actionAddToLibrary.d.ts +467 -0
- package/draw/core/actions/actionAddToLibrary.js +50 -0
- package/draw/core/actions/actionAlign.d.ts +109 -0
- package/draw/core/actions/actionAlign.js +159 -0
- package/draw/core/actions/actionBoundText.d.ts +348 -0
- package/draw/core/actions/actionBoundText.js +160 -0
- package/draw/core/actions/actionCanvas.d.ts +2147 -0
- package/draw/core/actions/actionCanvas.js +332 -0
- package/draw/core/actions/actionClipboard.d.ts +387 -0
- package/draw/core/actions/actionClipboard.js +197 -0
- package/draw/core/actions/actionCropEditor.d.ts +168 -0
- package/draw/core/actions/actionCropEditor.js +48 -0
- package/draw/core/actions/actionDeleteSelected.d.ts +503 -0
- package/draw/core/actions/actionDeleteSelected.js +144 -0
- package/draw/core/actions/actionDistribute.d.ts +34 -0
- package/draw/core/actions/actionDistribute.js +68 -0
- package/draw/core/actions/actionDuplicateSelection.d.ts +17 -0
- package/draw/core/actions/actionDuplicateSelection.js +78 -0
- package/draw/core/actions/actionElementLink.d.ts +192 -0
- package/draw/core/actions/actionElementLink.js +79 -0
- package/draw/core/actions/actionElementLock.d.ts +335 -0
- package/draw/core/actions/actionElementLock.js +103 -0
- package/draw/core/actions/actionEmbeddable.d.ts +165 -0
- package/draw/core/actions/actionEmbeddable.js +29 -0
- package/draw/core/actions/actionExport.d.ts +341 -0
- package/draw/core/actions/actionExport.js +232 -0
- package/draw/core/actions/actionFinalize.d.ts +13 -0
- package/draw/core/actions/actionFinalize.js +143 -0
- package/draw/core/actions/actionFlip.d.ts +34 -0
- package/draw/core/actions/actionFlip.js +82 -0
- package/draw/core/actions/actionFrame.d.ts +1127 -0
- package/draw/core/actions/actionFrame.js +138 -0
- package/draw/core/actions/actionGroup.d.ts +338 -0
- package/draw/core/actions/actionGroup.js +130 -0
- package/draw/core/actions/actionHistory.d.ts +9 -0
- package/draw/core/actions/actionHistory.js +44 -0
- package/draw/core/actions/actionLinearEditor.d.ts +664 -0
- package/draw/core/actions/actionLinearEditor.js +104 -0
- package/draw/core/actions/actionMenu.d.ts +160 -0
- package/draw/core/actions/actionMenu.js +32 -0
- package/draw/core/actions/actionProperties.d.ts +384 -0
- package/draw/core/actions/actionProperties.js +792 -0
- package/draw/core/actions/actionSelectAll.d.ts +165 -0
- package/draw/core/actions/actionSelectAll.js +39 -0
- package/draw/core/actions/actionStyles.d.ts +183 -0
- package/draw/core/actions/actionStyles.js +93 -0
- package/draw/core/actions/actionTextAutoResize.d.ts +17 -0
- package/draw/core/actions/actionTextAutoResize.js +44 -0
- package/draw/core/actions/actionToggleGridMode.d.ts +171 -0
- package/draw/core/actions/actionToggleGridMode.js +37 -0
- package/draw/core/actions/actionToggleObjectsSnapMode.d.ts +169 -0
- package/draw/core/actions/actionToggleObjectsSnapMode.js +34 -0
- package/draw/core/actions/actionToggleSearchMenu.d.ts +164 -0
- package/draw/core/actions/actionToggleSearchMenu.js +45 -0
- package/draw/core/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/draw/core/actions/actionToggleStats.d.ts +168 -0
- package/draw/core/actions/actionToggleStats.js +37 -0
- package/draw/core/actions/actionToggleViewMode.d.ts +169 -0
- package/draw/core/actions/actionToggleViewMode.js +34 -0
- package/draw/core/actions/actionToggleZenMode.d.ts +169 -0
- package/draw/core/actions/actionToggleZenMode.js +34 -0
- package/draw/core/actions/actionZindex.d.ts +74 -0
- package/draw/core/actions/actionZindex.js +107 -0
- package/draw/core/actions/index.d.ts +26 -0
- package/draw/core/actions/index.js +28 -0
- package/draw/core/actions/manager.d.ts +21 -0
- package/draw/core/actions/manager.js +64 -0
- package/draw/core/actions/register.d.ts +5 -0
- package/draw/core/actions/register.js +6 -0
- package/draw/core/actions/shortcuts.d.ts +4 -0
- package/draw/core/actions/shortcuts.js +58 -0
- package/draw/core/actions/types.d.ts +47 -0
- package/draw/core/analytics.d.ts +1 -0
- package/draw/core/analytics.js +19 -0
- package/draw/core/animated-trail.d.ts +32 -0
- package/draw/core/animated-trail.js +83 -0
- package/draw/core/animation-frame-handler.d.ts +11 -0
- package/draw/core/animation-frame-handler.js +51 -0
- package/draw/core/appState.d.ts +101 -0
- package/draw/core/appState.js +569 -0
- package/draw/core/charts.d.ts +27 -0
- package/draw/core/charts.js +263 -0
- package/draw/core/clients.d.ts +14 -0
- package/draw/core/clients.js +38 -0
- package/draw/core/clipboard.d.ts +107 -0
- package/draw/core/clipboard.js +250 -0
- package/draw/core/components/Actions.d.ts +28 -0
- package/draw/core/components/Actions.js +493 -0
- package/draw/core/components/ActiveConfirmDialog.d.ts +4 -0
- package/draw/core/components/ActiveConfirmDialog.js +32 -0
- package/draw/core/components/App.d.ts +363 -0
- package/draw/core/components/App.js +4076 -0
- package/draw/core/components/BraveMeasureTextError.d.ts +2 -0
- package/draw/core/components/BraveMeasureTextError.js +23 -0
- package/draw/core/components/ButtonIconCycle.d.ts +11 -0
- package/draw/core/components/ButtonSeparator.d.ts +1 -0
- package/draw/core/components/ContextMenu.d.ts +14 -0
- package/draw/core/components/ContextMenu.js +59 -0
- package/draw/core/components/ConvertElementTypePopup.d.ts +22 -0
- package/draw/core/components/ConvertElementTypePopup.js +318 -0
- package/draw/core/components/DarkModeToggle.d.ts +6 -0
- package/draw/core/components/DarkModeToggle.js +22 -0
- package/draw/core/components/DiagramToCodePlugin/index.d.ts +4 -0
- package/draw/core/components/DiagramToCodePlugin/index.js +13 -0
- package/draw/core/components/ElementCanvasButtons.d.ts +6 -0
- package/draw/core/components/ElementCanvasButtons.js +34 -0
- package/draw/core/components/ElementLinkDialog.d.ts +11 -0
- package/draw/core/components/ElementLinkDialog.js +112 -0
- package/draw/core/components/Ellipsify.d.ts +3 -0
- package/draw/core/components/Ellipsify.js +16 -0
- package/draw/core/components/ErrorDialog.d.ts +5 -0
- package/draw/core/components/ErrorDialog.js +36 -0
- package/draw/core/components/ExportDialog.d.ts +14 -0
- package/draw/core/components/ExportDialog.js +34 -0
- package/draw/core/components/EyeDropper.d.ts +25 -0
- package/draw/core/components/EyeDropper.js +84 -0
- package/draw/core/components/FixedSideContainer.d.ts +8 -0
- package/draw/core/components/FixedSideContainer.js +12 -0
- package/draw/core/components/Footer.d.ts +13 -0
- package/draw/core/components/Footer.js +118 -0
- package/draw/core/components/HandButton.d.ts +9 -0
- package/draw/core/components/HandButton.js +26 -0
- package/draw/core/components/HelpDialog.d.ts +2 -0
- package/draw/core/components/HelpDialog.js +407 -0
- package/draw/core/components/HintViewer.d.ts +10 -0
- package/draw/core/components/HintViewer.js +96 -0
- package/draw/core/components/ImageExportDialog.d.ts +14 -0
- package/draw/core/components/ImageExportDialog.js +243 -0
- package/draw/core/components/InitializeApp.d.ts +10 -0
- package/draw/core/components/InitializeApp.js +25 -0
- package/draw/core/components/InlineIcon.d.ts +5 -0
- package/draw/core/components/InlineIcon.js +19 -0
- package/draw/core/components/Island.d.ts +9 -0
- package/draw/core/components/Island.js +17 -0
- package/draw/core/components/LaserPointerButton.d.ts +9 -0
- package/draw/core/components/LaserPointerButton.js +24 -0
- package/draw/core/components/LayerUI.d.ts +30 -0
- package/draw/core/components/LayerUI.js +373 -0
- package/draw/core/components/LibraryMenu.d.ts +9 -0
- package/draw/core/components/LibraryMenu.js +133 -0
- package/draw/core/components/LibraryMenuItems.d.ts +14 -0
- package/draw/core/components/LibraryMenuItems.js +274 -0
- package/draw/core/components/LibraryMenuSection.d.ts +23 -0
- package/draw/core/components/LibraryMenuSection.js +37 -0
- package/draw/core/components/LibraryUnit.d.ts +13 -0
- package/draw/core/components/LibraryUnit.js +52 -0
- package/draw/core/components/LinkButton.d.ts +4 -0
- package/draw/core/components/LoadingMessage.d.ts +5 -0
- package/draw/core/components/LoadingMessage.js +32 -0
- package/draw/core/components/LockButton.d.ts +9 -0
- package/draw/core/components/LockButton.js +25 -0
- package/draw/core/components/MagicButton.d.ts +9 -0
- package/draw/core/components/MagicButton.js +22 -0
- package/draw/core/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -0
- package/draw/core/components/OverwriteConfirm/OverwriteConfirmState.js +22 -0
- package/draw/core/components/OverwriteConfirm/index.d.ts +4 -0
- package/draw/core/components/OverwriteConfirm/index.js +94 -0
- package/draw/core/components/PasteChartDialog.d.ts +7 -0
- package/draw/core/components/PasteChartDialog.js +78 -0
- package/draw/core/components/PenModeButton.d.ts +11 -0
- package/draw/core/components/PenModeButton.js +23 -0
- package/draw/core/components/Popover.d.ts +15 -0
- package/draw/core/components/Popover.js +58 -0
- package/draw/core/components/ProjectName.d.ts +9 -0
- package/draw/core/components/ProjectName.js +39 -0
- package/draw/core/components/Range.d.ts +7 -0
- package/draw/core/components/Range.js +37 -0
- package/draw/core/components/SVGLayer.d.ts +6 -0
- package/draw/core/components/SVGLayer.js +19 -0
- package/draw/core/components/ScrollableList.d.ts +7 -0
- package/draw/core/components/SearchMenu.d.ts +4 -0
- package/draw/core/components/SearchMenu.js +381 -0
- package/draw/core/components/Stack.d.ts +14 -0
- package/draw/core/components/Stack.js +31 -0
- package/draw/core/components/Stats/Angle.d.ts +11 -0
- package/draw/core/components/Stats/Angle.js +45 -0
- package/draw/core/components/Stats/CanvasGrid.d.ts +10 -0
- package/draw/core/components/Stats/CanvasGrid.js +25 -0
- package/draw/core/components/Stats/Collapsible.d.ts +10 -0
- package/draw/core/components/Stats/Collapsible.js +26 -0
- package/draw/core/components/Stats/Dimension.d.ts +11 -0
- package/draw/core/components/Stats/Dimension.js +106 -0
- package/draw/core/components/Stats/DragInput.d.ts +43 -0
- package/draw/core/components/Stats/DragInput.js +133 -0
- package/draw/core/components/Stats/FontSize.d.ts +11 -0
- package/draw/core/components/Stats/FontSize.js +38 -0
- package/draw/core/components/Stats/MultiAngle.d.ts +11 -0
- package/draw/core/components/Stats/MultiAngle.js +53 -0
- package/draw/core/components/Stats/MultiDimension.d.ts +14 -0
- package/draw/core/components/Stats/MultiDimension.js +125 -0
- package/draw/core/components/Stats/MultiFontSize.d.ts +12 -0
- package/draw/core/components/Stats/MultiFontSize.js +51 -0
- package/draw/core/components/Stats/MultiPosition.d.ts +14 -0
- package/draw/core/components/Stats/MultiPosition.js +73 -0
- package/draw/core/components/Stats/Position.d.ts +12 -0
- package/draw/core/components/Stats/Position.js +67 -0
- package/draw/core/components/Stats/index.d.ts +34 -0
- package/draw/core/components/Stats/index.js +263 -0
- package/draw/core/components/Stats/utils.d.ts +19 -0
- package/draw/core/components/Stats/utils.js +67 -0
- package/draw/core/components/Toast.d.ts +6 -0
- package/draw/core/components/Toast.js +21 -0
- package/draw/core/components/Tooltip.d.ts +7 -0
- package/draw/core/components/Trans.d.ts +7 -0
- package/draw/core/components/Trans.js +33 -0
- package/draw/core/components/UnlockPopup.d.ts +7 -0
- package/draw/core/components/UnlockPopup.js +46 -0
- package/draw/core/components/canvases/InteractiveCanvas.d.ts +33 -0
- package/draw/core/components/canvases/InteractiveCanvas.js +119 -0
- package/draw/core/components/canvases/NewElementCanvas.d.ts +14 -0
- package/draw/core/components/canvases/NewElementCanvas.js +33 -0
- package/draw/core/components/canvases/StaticCanvas.d.ts +19 -0
- package/draw/core/components/canvases/StaticCanvas.js +64 -0
- package/draw/core/components/canvases/index.d.ts +3 -0
- package/draw/core/components/canvases/index.js +4 -0
- package/draw/core/components/context.d.ts +29 -0
- package/draw/core/components/context.js +43 -0
- package/draw/core/components/hoc/withInternalFallback.d.ts +4 -0
- package/draw/core/components/hooks.d.ts +23 -0
- package/draw/core/components/hooks.js +10 -0
- package/draw/core/components/icons.d.ts +62 -0
- package/draw/core/components/icons.js +584 -0
- package/draw/core/components/main-menu/DefaultItems.d.ts +38 -0
- package/draw/core/components/main-menu/DefaultItems.js +145 -0
- package/draw/core/components/main-menu/MenuItem.d.ts +24 -0
- package/draw/core/components/main-menu/MenuItem.js +55 -0
- package/draw/core/components/main-menu/common.d.ts +6 -0
- package/draw/core/components/main-menu/common.js +20 -0
- package/draw/core/components/shapes.d.ts +190 -0
- package/draw/core/components/shapes.js +96 -0
- package/draw/core/context/tunnels.d.ts +132 -0
- package/draw/core/context/tunnels.js +30 -0
- package/draw/core/context/ui-appState.d.ts +4 -0
- package/draw/core/context/ui-appState.js +7 -0
- package/draw/core/cursor.d.ts +5 -0
- package/draw/core/cursor.js +28 -0
- package/draw/core/data/EditorLocalStorage.d.ts +8 -0
- package/draw/core/data/ai/types.d.ts +242 -0
- package/draw/core/data/blob.d.ts +357 -0
- package/draw/core/data/blob.js +171 -0
- package/draw/core/data/encode.d.ts +55 -0
- package/draw/core/data/encode.js +38 -0
- package/draw/core/data/encryption.d.ts +9 -0
- package/draw/core/data/encryption.js +4 -0
- package/draw/core/data/filesystem.d.ts +21 -0
- package/draw/core/data/filesystem.js +44 -0
- package/draw/core/data/image.d.ts +9 -0
- package/draw/core/data/image.js +35 -0
- package/draw/core/data/index.d.ts +3 -0
- package/draw/core/data/index.js +5 -0
- package/draw/core/data/json.d.ts +168 -0
- package/draw/core/data/json.js +51 -0
- package/draw/core/data/library.d.ts +116 -0
- package/draw/core/data/library.js +279 -0
- package/draw/core/data/reconcile.d.ts +7 -0
- package/draw/core/data/reconcile.js +32 -0
- package/draw/core/data/resave.d.ts +5 -0
- package/draw/core/data/resave.js +23 -0
- package/draw/core/data/restore.d.ts +39 -0
- package/draw/core/data/restore.js +331 -0
- package/draw/core/data/types.d.ts +48 -0
- package/draw/core/data/utils.d.ts +20 -0
- package/draw/core/data/utils.js +84 -0
- package/draw/core/deburr.d.ts +1 -0
- package/draw/core/deburr.js +197 -0
- package/draw/core/editor-jotai.d.ts +7 -0
- package/draw/core/editor-jotai.js +11 -0
- package/draw/core/eraser/index.d.ts +10 -0
- package/draw/core/eraser/index.js +109 -0
- package/draw/core/errors.d.ts +43 -0
- package/draw/core/errors.js +22 -0
- package/draw/core/fonts/DrawFontFace.d.ts +8 -0
- package/draw/core/fonts/DrawFontFace.js +29 -0
- package/draw/core/fonts/Fonts.d.ts +42 -0
- package/draw/core/fonts/Fonts.js +100 -0
- package/draw/core/fonts/index.d.ts +1 -0
- package/draw/core/fonts/index.js +3 -0
- package/draw/core/gesture.d.ts +6 -0
- package/draw/core/gesture.js +12 -0
- package/draw/core/history.d.ts +46 -0
- package/draw/core/history.js +90 -0
- package/draw/core/hooks/useCallbackRefState.d.ts +1 -0
- package/draw/core/hooks/useCopiedIndicator.d.ts +5 -0
- package/draw/core/hooks/useCopiedIndicator.js +20 -0
- package/draw/core/hooks/useCreatePortalContainer.d.ts +4 -0
- package/draw/core/hooks/useCreatePortalContainer.js +28 -0
- package/draw/core/hooks/useEmitter.d.ts +2 -0
- package/draw/core/hooks/useEmitter.js +17 -0
- package/draw/core/hooks/useLibraryItemSvg.d.ts +11 -0
- package/draw/core/hooks/useLibraryItemSvg.js +52 -0
- package/draw/core/hooks/useOutsideClick.d.ts +21 -0
- package/draw/core/hooks/useOutsideClick.js +28 -0
- package/draw/core/hooks/useScrollPosition.d.ts +1 -0
- package/draw/core/hooks/useScrollPosition.js +23 -0
- package/draw/core/hooks/useStable.d.ts +1 -0
- package/draw/core/hooks/useStable.js +10 -0
- package/draw/core/hooks/useStableCallback.d.ts +4 -0
- package/draw/core/hooks/useTextEditorFocus.d.ts +14 -0
- package/draw/core/hooks/useTextEditorFocus.js +39 -0
- package/draw/core/hooks/useTransition.d.ts +2 -0
- package/draw/core/hooks/useTransition.js +10 -0
- package/draw/core/i18n.d.ts +24 -0
- package/draw/core/i18n.js +40 -0
- package/draw/core/laser-trails.d.ts +17 -0
- package/draw/core/laser-trails.js +60 -0
- package/draw/core/lasso/index.d.ts +11 -0
- package/draw/core/lasso/index.js +104 -0
- package/draw/core/lasso/utils.d.ts +13 -0
- package/draw/core/lasso/utils.js +41 -0
- package/draw/core/locales/percentages.json.js +62 -0
- package/draw/core/locales/zh-CN.json.js +704 -0
- package/draw/core/mermaid.d.ts +1 -0
- package/draw/core/polyfill.d.ts +2 -0
- package/draw/core/polyfill.js +6 -0
- package/draw/core/reactUtils.d.ts +14 -0
- package/draw/core/reactUtils.js +24 -0
- package/draw/core/renderer/animation.d.ts +10 -0
- package/draw/core/renderer/animation.js +43 -0
- package/draw/core/renderer/helpers.d.ts +16 -0
- package/draw/core/renderer/helpers.js +16 -0
- package/draw/core/renderer/interactiveScene.d.ts +14 -0
- package/draw/core/renderer/interactiveScene.js +392 -0
- package/draw/core/renderer/renderNewElementScene.d.ts +7 -0
- package/draw/core/renderer/renderNewElementScene.js +40 -0
- package/draw/core/renderer/renderSnaps.d.ts +2 -0
- package/draw/core/renderer/renderSnaps.js +39 -0
- package/draw/core/renderer/roundRect.d.ts +11 -0
- package/draw/core/renderer/roundRect.js +8 -0
- package/draw/core/renderer/staticScene.d.ts +14 -0
- package/draw/core/renderer/staticScene.js +106 -0
- package/draw/core/renderer/staticSvgScene.d.ts +5 -0
- package/draw/core/renderer/staticSvgScene.js +200 -0
- package/draw/core/scene/Renderer.d.ts +30 -0
- package/draw/core/scene/Renderer.js +55 -0
- package/draw/core/scene/export.d.ts +35 -0
- package/draw/core/scene/export.js +198 -0
- package/draw/core/scene/index.d.ts +3 -0
- package/draw/core/scene/index.js +7 -0
- package/draw/core/scene/normalize.d.ts +4 -0
- package/draw/core/scene/normalize.js +10 -0
- package/draw/core/scene/scroll.d.ts +18 -0
- package/draw/core/scene/scroll.js +52 -0
- package/draw/core/scene/scrollbars.d.ts +11 -0
- package/draw/core/scene/scrollbars.js +44 -0
- package/draw/core/scene/types.d.ts +138 -0
- package/draw/core/scene/zoom.d.ts +12 -0
- package/draw/core/scene/zoom.js +13 -0
- package/draw/core/shortcut.d.ts +1 -0
- package/draw/core/shortcut.js +9 -0
- package/draw/core/snapping.d.ts +109 -0
- package/draw/core/snapping.js +544 -0
- package/draw/core/workers.d.ts +28 -0
- package/draw/core/wysiwyg/textWysiwyg.d.ts +24 -0
- package/draw/core/wysiwyg/textWysiwyg.js +223 -0
- package/draw/element/Scene.d.ts +66 -0
- package/draw/element/Scene.js +157 -0
- package/draw/element/align.d.ts +8 -0
- package/draw/element/align.js +36 -0
- package/draw/element/arrows/focus.d.ts +27 -0
- package/draw/element/arrows/focus.js +142 -0
- package/draw/element/arrows/helpers.d.ts +6 -0
- package/draw/element/arrows/helpers.js +16 -0
- package/draw/element/binding.d.ts +128 -0
- package/draw/element/binding.js +550 -0
- package/draw/element/bounds.d.ts +79 -0
- package/draw/element/bounds.js +492 -0
- package/draw/element/collision.d.ts +37 -0
- package/draw/element/collision.js +179 -0
- package/draw/element/comparisons.d.ts +8 -0
- package/draw/element/comparisons.js +6 -0
- package/draw/element/containerCache.d.ts +11 -0
- package/draw/element/containerCache.js +11 -0
- package/draw/element/cropElement.d.ts +19 -0
- package/draw/element/cropElement.js +165 -0
- package/draw/element/delta.d.ts +166 -0
- package/draw/element/delta.js +544 -0
- package/draw/element/distance.d.ts +3 -0
- package/draw/element/distance.js +41 -0
- package/draw/element/distribute.d.ts +8 -0
- package/draw/element/distribute.js +53 -0
- package/draw/element/dragElements.d.ts +33 -0
- package/draw/element/dragElements.js +93 -0
- package/draw/element/duplicate.d.ts +63 -0
- package/draw/element/duplicate.js +107 -0
- package/draw/element/elbowArrow.d.ts +16 -0
- package/draw/element/elbowArrow.js +555 -0
- package/draw/element/elementLink.d.ts +13 -0
- package/draw/element/elementLink.js +50 -0
- package/draw/element/embeddable.d.ts +6 -0
- package/draw/element/embeddable.js +58 -0
- package/draw/element/flowchart.d.ts +22 -0
- package/draw/element/flowchart.js +246 -0
- package/draw/element/fractionalIndex.d.ts +57 -0
- package/draw/element/fractionalIndex.js +102 -0
- package/draw/element/frame.d.ts +74 -0
- package/draw/element/frame.js +194 -0
- package/draw/element/groups.d.ts +34 -0
- package/draw/element/groups.js +137 -0
- package/draw/element/heading.d.ts +16 -0
- package/draw/element/heading.js +38 -0
- package/draw/element/image.d.ts +22 -0
- package/draw/element/image.js +59 -0
- package/draw/element/index.d.ts +58 -0
- package/draw/element/index.js +65 -0
- package/draw/element/is.d.ts +2 -0
- package/draw/element/is.js +6 -0
- package/draw/element/linearElementEditor.d.ts +114 -0
- package/draw/element/linearElementEditor.js +602 -0
- package/draw/element/mutateElement.d.ts +23 -0
- package/draw/element/mutateElement.js +68 -0
- package/draw/element/newElement.d.ts +62 -0
- package/draw/element/newElement.js +165 -0
- package/draw/element/positionElementsOnGrid.d.ts +2 -0
- package/draw/element/positionElementsOnGrid.js +47 -0
- package/draw/element/renderElement.d.ts +25 -0
- package/draw/element/renderElement.js +235 -0
- package/draw/element/resizeElements.d.ts +32 -0
- package/draw/element/resizeElements.js +401 -0
- package/draw/element/resizeTest.d.ts +15 -0
- package/draw/element/resizeTest.js +93 -0
- package/draw/element/selection.d.ts +474 -0
- package/draw/element/selection.js +75 -0
- package/draw/element/shape.d.ts +41 -0
- package/draw/element/shape.js +366 -0
- package/draw/element/showSelectedShapeActions.d.ts +3 -0
- package/draw/element/showSelectedShapeActions.js +7 -0
- package/draw/element/sizeHelpers.d.ts +35 -0
- package/draw/element/sizeHelpers.js +74 -0
- package/draw/element/sortElements.d.ts +2 -0
- package/draw/element/sortElements.js +31 -0
- package/draw/element/store.d.ts +196 -0
- package/draw/element/store.js +332 -0
- package/draw/element/textElement.d.ts +40 -0
- package/draw/element/textElement.js +131 -0
- package/draw/element/textMeasurements.d.ts +39 -0
- package/draw/element/textMeasurements.js +66 -0
- package/draw/element/textWrapping.d.ts +13 -0
- package/draw/element/textWrapping.js +149 -0
- package/draw/element/transform.d.ts +81 -0
- package/draw/element/transform.js +288 -0
- package/draw/element/transformHandles.d.ts +35 -0
- package/draw/element/transformHandles.js +67 -0
- package/draw/element/typeChecks.d.ts +54 -0
- package/draw/element/typeChecks.js +30 -0
- package/draw/element/types.d.ts +291 -0
- package/draw/element/utils.d.ts +33 -0
- package/draw/element/utils.js +137 -0
- package/draw/element/visualdebug.d.ts +58 -0
- package/draw/element/zindex.d.ts +13 -0
- package/draw/element/zindex.js +149 -0
- package/draw/index.d.ts +48 -2
- package/draw/index.js +63 -4
- package/draw/interface.d.ts +707 -1
- package/draw/libs/browser-fs-access/directory-open.d.mts +5 -0
- package/draw/libs/browser-fs-access/directory-open.js +12 -0
- package/draw/libs/browser-fs-access/file-open.d.mts +5 -0
- package/draw/libs/browser-fs-access/file-open.js +12 -0
- package/draw/libs/browser-fs-access/file-save.d.mts +5 -0
- package/draw/libs/browser-fs-access/file-save.js +12 -0
- package/draw/libs/browser-fs-access/fs-access/directory-open.d.mts +8 -0
- package/draw/libs/browser-fs-access/fs-access/directory-open.js +25 -0
- package/draw/libs/browser-fs-access/fs-access/file-open.d.mts +2 -0
- package/draw/libs/browser-fs-access/fs-access/file-open.js +28 -0
- package/draw/libs/browser-fs-access/fs-access/file-save.d.mts +2 -0
- package/draw/libs/browser-fs-access/fs-access/file-save.js +31 -0
- package/draw/libs/browser-fs-access/index.d.ts +10 -0
- package/draw/libs/browser-fs-access/index.js +28 -0
- package/draw/libs/browser-fs-access/legacy/directory-open.d.mts +8 -0
- package/draw/libs/browser-fs-access/legacy/directory-open.js +18 -0
- package/draw/libs/browser-fs-access/legacy/file-open.d.mts +2 -0
- package/draw/libs/browser-fs-access/legacy/file-open.js +15 -0
- package/draw/libs/browser-fs-access/legacy/file-save.d.mts +2 -0
- package/draw/libs/browser-fs-access/legacy/file-save.js +31 -0
- package/draw/libs/browser-fs-access/supported.d.mts +22 -0
- package/draw/libs/browser-fs-access/supported.js +14 -0
- package/draw/libs/canvas-roundrect-polyfill/LICENSE +21 -0
- package/draw/libs/canvas-roundrect-polyfill/index.d.ts +2 -0
- package/draw/libs/canvas-roundrect-polyfill/index.js +74 -0
- package/draw/libs/fractional-indexing/index.d.ts +23 -0
- package/draw/libs/fractional-indexing/index.js +110 -0
- package/draw/libs/fuzzy/index.d.ts +10 -0
- package/draw/libs/fuzzy/index.js +40 -0
- package/draw/libs/glur/LICENSE +20 -0
- package/draw/libs/glur/index.d.ts +2 -0
- package/draw/libs/glur/index.js +37 -0
- package/draw/libs/glur/mono16.d.ts +2 -0
- package/draw/libs/glur/mono16.js +33 -0
- package/draw/libs/hachure-fill/index.d.ts +4 -0
- package/draw/libs/hachure-fill/index.js +79 -0
- package/draw/libs/image-blob-reduce/index.d.ts +36 -0
- package/draw/libs/image-blob-reduce/index.js +96 -0
- package/draw/libs/image-blob-reduce/lib/image_traverse.d.ts +6 -0
- package/draw/libs/image-blob-reduce/lib/image_traverse.js +212 -0
- package/draw/libs/image-blob-reduce/lib/jpeg_plugins.d.ts +11 -0
- package/draw/libs/image-blob-reduce/lib/jpeg_plugins.js +57 -0
- package/draw/libs/image-blob-reduce/lib/utils.d.ts +14 -0
- package/draw/libs/image-blob-reduce/lib/utils.js +21 -0
- package/draw/libs/jotai/index.d.ts +2 -0
- package/draw/libs/jotai/index.js +24 -0
- package/draw/libs/jotai/react/Provider.d.ts +16 -0
- package/draw/libs/jotai/react/Provider.js +16 -0
- package/draw/libs/jotai/react/useAtom.d.ts +13 -0
- package/draw/libs/jotai/react/useAtom.js +10 -0
- package/draw/libs/jotai/react/useAtomValue.d.ts +9 -0
- package/draw/libs/jotai/react/useAtomValue.js +73 -0
- package/draw/libs/jotai/react/useSetAtom.d.ts +7 -0
- package/draw/libs/jotai/react/useSetAtom.js +11 -0
- package/draw/libs/jotai/react/utils/useAtomCallback.d.ts +5 -0
- package/draw/libs/jotai/react/utils/useAtomCallback.js +4 -0
- package/draw/libs/jotai/react/utils/useHydrateAtoms.d.ts +14 -0
- package/draw/libs/jotai/react/utils/useHydrateAtoms.js +16 -0
- package/draw/libs/jotai/react/utils/useReducerAtom.d.ts +14 -0
- package/draw/libs/jotai/react/utils/useReducerAtom.js +4 -0
- package/draw/libs/jotai/react/utils/useResetAtom.d.ts +6 -0
- package/draw/libs/jotai/react/utils/useResetAtom.js +5 -0
- package/draw/libs/jotai/react/utils.d.ts +4 -0
- package/draw/libs/jotai/react/utils.js +6 -0
- package/draw/libs/jotai/react.d.ts +4 -0
- package/draw/libs/jotai/react.js +6 -0
- package/draw/libs/jotai/utils.d.ts +2 -0
- package/draw/libs/jotai/utils.js +6 -0
- package/draw/libs/jotai/vanilla/atom.d.ts +47 -0
- package/draw/libs/jotai/vanilla/atom.js +18 -0
- package/draw/libs/jotai/vanilla/internals.d.ts +165 -0
- package/draw/libs/jotai/vanilla/internals.js +303 -0
- package/draw/libs/jotai/vanilla/store.d.ts +5 -0
- package/draw/libs/jotai/vanilla/store.js +17 -0
- package/draw/libs/jotai/vanilla/typeUtils.d.ts +7 -0
- package/draw/libs/jotai/vanilla/utils/atomFamily.d.ts +55 -0
- package/draw/libs/jotai/vanilla/utils/atomFamily.js +3 -0
- package/draw/libs/jotai/vanilla/utils/atomWithDefault.d.ts +6 -0
- package/draw/libs/jotai/vanilla/utils/atomWithLazy.d.ts +2 -0
- package/draw/libs/jotai/vanilla/utils/atomWithObservable.d.ts +32 -0
- package/draw/libs/jotai/vanilla/utils/atomWithReducer.d.ts +3 -0
- package/draw/libs/jotai/vanilla/utils/atomWithRefresh.d.ts +6 -0
- package/draw/libs/jotai/vanilla/utils/atomWithReset.d.ts +8 -0
- package/draw/libs/jotai/vanilla/utils/atomWithStorage.d.ts +50 -0
- package/draw/libs/jotai/vanilla/utils/atomWithStorage.js +53 -0
- package/draw/libs/jotai/vanilla/utils/constants.d.ts +1 -0
- package/draw/libs/jotai/vanilla/utils/freezeAtom.d.ts +6 -0
- package/draw/libs/jotai/vanilla/utils/loadable.d.ts +33 -0
- package/draw/libs/jotai/vanilla/utils/selectAtom.d.ts +2 -0
- package/draw/libs/jotai/vanilla/utils/splitAtom.d.ts +16 -0
- package/draw/libs/jotai/vanilla/utils/unwrap.d.ts +5 -0
- package/draw/libs/jotai/vanilla/utils.d.ts +14 -0
- package/draw/libs/jotai/vanilla/utils.js +4 -0
- package/draw/libs/jotai/vanilla.d.ts +4 -0
- package/draw/libs/jotai-scope/ScopeProvider/index.d.ts +27 -0
- package/draw/libs/jotai-scope/ScopeProvider/index.js +47 -0
- package/draw/libs/jotai-scope/ScopeProvider/scope.d.ts +16 -0
- package/draw/libs/jotai-scope/ScopeProvider/scope.js +264 -0
- package/draw/libs/jotai-scope/createIsolation.d.ts +19 -0
- package/draw/libs/jotai-scope/createIsolation.js +50 -0
- package/draw/libs/jotai-scope/index.d.ts +3 -0
- package/draw/libs/jotai-scope/index.js +14 -0
- package/draw/libs/jotai-scope/types.d.ts +53 -0
- package/draw/libs/jotai-scope/utils.d.ts +6 -0
- package/draw/libs/jotai-scope/utils.js +12 -0
- package/draw/libs/laser-pointer/index.d.ts +2 -0
- package/draw/libs/laser-pointer/index.js +8 -0
- package/draw/libs/laser-pointer/math.d.ts +16 -0
- package/draw/libs/laser-pointer/math.js +72 -0
- package/draw/libs/laser-pointer/simplify.d.ts +2 -0
- package/draw/libs/laser-pointer/simplify.js +29 -0
- package/draw/libs/laser-pointer/state.d.ts +31 -0
- package/draw/libs/laser-pointer/state.js +155 -0
- package/draw/libs/markdown-to-text/index.d.ts +20 -0
- package/draw/libs/markdown-to-text/index.js +17 -0
- package/draw/libs/math/angle.d.ts +19 -0
- package/draw/libs/math/angle.js +24 -0
- package/draw/libs/math/constants.d.ts +3 -0
- package/draw/libs/math/constants.js +56 -0
- package/draw/libs/math/curve.d.ts +74 -0
- package/draw/libs/math/curve.js +126 -0
- package/draw/libs/math/ellipse.d.ts +44 -0
- package/draw/libs/math/ellipse.js +44 -0
- package/draw/libs/math/index.d.ts +13 -0
- package/draw/libs/math/index.js +105 -0
- package/draw/libs/math/line.d.ts +17 -0
- package/draw/libs/math/line.js +17 -0
- package/draw/libs/math/point.d.ts +122 -0
- package/draw/libs/math/point.js +48 -0
- package/draw/libs/math/polygon.d.ts +6 -0
- package/draw/libs/math/polygon.js +42 -0
- package/draw/libs/math/range.d.ts +42 -0
- package/draw/libs/math/range.js +17 -0
- package/draw/libs/math/rectangle.d.ts +5 -0
- package/draw/libs/math/rectangle.js +25 -0
- package/draw/libs/math/segment.d.ts +40 -0
- package/draw/libs/math/segment.js +38 -0
- package/draw/libs/math/triangle.d.ts +11 -0
- package/draw/libs/math/triangle.js +9 -0
- package/draw/libs/math/types.d.ts +106 -0
- package/draw/libs/math/utils.d.ts +7 -0
- package/draw/libs/math/utils.js +12 -0
- package/draw/libs/math/vector.d.ts +94 -0
- package/draw/libs/math/vector.js +41 -0
- package/draw/libs/multimath/index.d.ts +21 -0
- package/draw/libs/multimath/index.js +66 -0
- package/draw/libs/multimath/lib/base64decode.d.ts +1 -0
- package/draw/libs/multimath/lib/base64decode.js +8 -0
- package/draw/libs/multimath/lib/wa_detect.d.ts +1 -0
- package/draw/libs/multimath/lib/wa_detect.js +68 -0
- package/draw/libs/nanoid/index.d.ts +5 -0
- package/draw/libs/nanoid/index.js +23 -0
- package/draw/libs/nanoid/nanoid.d.ts +1 -0
- package/draw/libs/nanoid/url-alphabet/index.d.ts +1 -0
- package/draw/libs/nanoid/url-alphabet/index.js +6 -0
- package/draw/libs/pako/index.d.ts +323 -0
- package/draw/libs/pako/index.js +1445 -0
- package/draw/libs/path-data-parser/absolutize.d.ts +2 -0
- package/draw/libs/path-data-parser/absolutize.js +140 -0
- package/draw/libs/path-data-parser/index.d.ts +3 -0
- package/draw/libs/path-data-parser/index.js +15 -0
- package/draw/libs/path-data-parser/normalize.d.ts +2 -0
- package/draw/libs/path-data-parser/normalize.js +168 -0
- package/draw/libs/path-data-parser/parser.d.ts +6 -0
- package/draw/libs/path-data-parser/parser.js +90 -0
- package/draw/libs/perfect-freehand/getStroke.d.ts +20 -0
- package/draw/libs/perfect-freehand/getStroke.js +10 -0
- package/draw/libs/perfect-freehand/getStrokeOutlinePoints.d.ts +16 -0
- package/draw/libs/perfect-freehand/getStrokeOutlinePoints.js +73 -0
- package/draw/libs/perfect-freehand/getStrokePoints.d.ts +20 -0
- package/draw/libs/perfect-freehand/getStrokePoints.js +45 -0
- package/draw/libs/perfect-freehand/getStrokeRadius.d.ts +9 -0
- package/draw/libs/perfect-freehand/getStrokeRadius.js +8 -0
- package/draw/libs/perfect-freehand/index.d.ts +6 -0
- package/draw/libs/perfect-freehand/index.js +15 -0
- package/draw/libs/perfect-freehand/types.d.ts +42 -0
- package/draw/libs/perfect-freehand/vec.d.ts +117 -0
- package/draw/libs/perfect-freehand/vec.js +54 -0
- package/draw/libs/pica/index.d.ts +29 -0
- package/draw/libs/pica/index.js +250 -0
- package/draw/libs/pica/lib/mathlib.d.ts +10 -0
- package/draw/libs/pica/lib/mathlib.js +22 -0
- package/draw/libs/pica/lib/mm_resize/convolve.d.ts +11 -0
- package/draw/libs/pica/lib/mm_resize/convolve.js +51 -0
- package/draw/libs/pica/lib/mm_resize/convolve_wasm_base64.d.ts +2 -0
- package/draw/libs/pica/lib/mm_resize/convolve_wasm_base64.js +6 -0
- package/draw/libs/pica/lib/mm_resize/index.d.ts +11 -0
- package/draw/libs/pica/lib/mm_resize/index.js +14 -0
- package/draw/libs/pica/lib/mm_resize/resize.d.ts +1 -0
- package/draw/libs/pica/lib/mm_resize/resize.js +23 -0
- package/draw/libs/pica/lib/mm_resize/resize_filter_gen.d.ts +1 -0
- package/draw/libs/pica/lib/mm_resize/resize_filter_gen.js +24 -0
- package/draw/libs/pica/lib/mm_resize/resize_filter_info.d.ts +45 -0
- package/draw/libs/pica/lib/mm_resize/resize_filter_info.js +58 -0
- package/draw/libs/pica/lib/mm_resize/resize_wasm.d.ts +1 -0
- package/draw/libs/pica/lib/mm_resize/resize_wasm.js +46 -0
- package/draw/libs/pica/lib/mm_unsharp_mask/index.d.ts +10 -0
- package/draw/libs/pica/lib/mm_unsharp_mask/index.js +14 -0
- package/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask.d.ts +1 -0
- package/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask.js +19 -0
- package/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask_wasm.d.ts +1 -0
- package/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask_wasm.js +14 -0
- package/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask_wasm_base64.d.ts +2 -0
- package/draw/libs/pica/lib/mm_unsharp_mask/unsharp_mask_wasm_base64.js +6 -0
- package/draw/libs/pica/lib/pool.d.ts +14 -0
- package/draw/libs/pica/lib/pool.js +18 -0
- package/draw/libs/pica/lib/stepper.d.ts +1 -0
- package/draw/libs/pica/lib/stepper.js +15 -0
- package/draw/libs/pica/lib/tiler.d.ts +18 -0
- package/draw/libs/pica/lib/tiler.js +38 -0
- package/draw/libs/pica/lib/utils.d.ts +9 -0
- package/draw/libs/pica/lib/utils.js +91 -0
- package/draw/libs/pica/lib/worker.d.ts +1 -0
- package/draw/libs/pica/lib/worker.js +19 -0
- package/draw/libs/png-chunk-text/decode.d.ts +5 -0
- package/draw/libs/png-chunk-text/decode.js +18 -0
- package/draw/libs/png-chunk-text/encode.d.ts +5 -0
- package/draw/libs/png-chunk-text/encode.js +22 -0
- package/draw/libs/png-chunk-text/index.d.ts +8 -0
- package/draw/libs/png-chunk-text/index.js +16 -0
- package/draw/libs/png-chunks-encode/index.d.ts +2 -0
- package/draw/libs/png-chunks-encode/index.js +30 -0
- package/draw/libs/png-chunks-extract/index.d.ts +5 -0
- package/draw/libs/png-chunks-extract/index.js +39 -0
- package/draw/libs/points-on-curve/curve-to-bezier.d.ts +2 -0
- package/draw/libs/points-on-curve/curve-to-bezier.js +26 -0
- package/draw/libs/points-on-curve/index.d.ts +4 -0
- package/draw/libs/points-on-curve/index.js +73 -0
- package/draw/libs/points-on-path/index.d.ts +3 -0
- package/draw/libs/points-on-path/index.js +43 -0
- package/draw/libs/promise-pool/LICENSE +19 -0
- package/draw/libs/promise-pool/index.js +93 -0
- package/draw/libs/roughjs/canvas.d.ts +19 -0
- package/draw/libs/roughjs/canvas.js +95 -0
- package/draw/libs/roughjs/core.d.ts +85 -0
- package/draw/libs/roughjs/core.js +6 -0
- package/draw/libs/roughjs/fillers/dashed-filler.d.ts +8 -0
- package/draw/libs/roughjs/fillers/dashed-filler.js +32 -0
- package/draw/libs/roughjs/fillers/dot-filler.d.ts +8 -0
- package/draw/libs/roughjs/fillers/dot-filler.js +36 -0
- package/draw/libs/roughjs/fillers/filler-interface.d.ts +11 -0
- package/draw/libs/roughjs/fillers/filler.d.ts +3 -0
- package/draw/libs/roughjs/fillers/filler.js +36 -0
- package/draw/libs/roughjs/fillers/hachure-filler.d.ts +10 -0
- package/draw/libs/roughjs/fillers/hachure-filler.js +27 -0
- package/draw/libs/roughjs/fillers/hatch-filler.d.ts +6 -0
- package/draw/libs/roughjs/fillers/hatch-filler.js +12 -0
- package/draw/libs/roughjs/fillers/index.d.ts +9 -0
- package/draw/libs/roughjs/fillers/scan-line-hachure.d.ts +3 -0
- package/draw/libs/roughjs/fillers/scan-line-hachure.js +12 -0
- package/draw/libs/roughjs/fillers/zigzag-filler.d.ts +6 -0
- package/draw/libs/roughjs/fillers/zigzag-filler.js +20 -0
- package/draw/libs/roughjs/fillers/zigzag-line-filler.d.ts +8 -0
- package/draw/libs/roughjs/fillers/zigzag-line-filler.js +34 -0
- package/draw/libs/roughjs/generator.d.ts +19 -0
- package/draw/libs/roughjs/generator.js +204 -0
- package/draw/libs/roughjs/geometry.d.ts +9 -0
- package/draw/libs/roughjs/geometry.js +9 -0
- package/draw/libs/roughjs/index.d.ts +9 -0
- package/draw/libs/roughjs/index.js +54 -0
- package/draw/libs/roughjs/math.d.ts +6 -0
- package/draw/libs/roughjs/math.js +17 -0
- package/draw/libs/roughjs/renderer.d.ts +28 -0
- package/draw/libs/roughjs/renderer.js +336 -0
- package/draw/libs/roughjs/rough.d.ts +11 -0
- package/draw/libs/roughjs/rough.js +22 -0
- package/draw/libs/roughjs/svg.d.ts +20 -0
- package/draw/libs/roughjs/svg.js +84 -0
- package/draw/libs/sliced/index.d.ts +9 -0
- package/draw/libs/sliced/index.js +14 -0
- package/draw/libs/webworkify/index.d.ts +3 -0
- package/draw/libs/webworkify/index.js +18 -0
- package/draw/style/index.css +1 -0
- package/draw/style/index.d.ts +1 -0
- package/draw/style/index.js +3 -0
- package/draw/utils/bbox.d.ts +9 -0
- package/draw/utils/bbox.js +32 -0
- package/draw/utils/export.d.ts +36 -0
- package/draw/utils/export.js +77 -0
- package/draw/utils/index.d.ts +12 -0
- package/draw/utils/index.js +22 -0
- package/draw/utils/shape.d.ts +57 -0
- package/draw/utils/shape.js +81 -0
- package/draw/utils/withinBounds.d.ts +19 -0
- package/draw/utils/withinBounds.js +61 -0
- package/drawer/Drawer.js +95 -103
- package/drawer/constants.d.ts +4 -0
- package/drawer/constants.js +6 -0
- package/drawer/context.d.ts +3 -0
- package/drawer/context.js +19 -0
- package/drawer/index.d.ts +2 -0
- package/drawer/index.js +9 -6
- package/drawer/style/index.css +1 -0
- package/drawer/style/index.d.ts +2 -0
- package/drawer/style/index.js +4 -0
- package/drawer/use-drawer/Hook.js +11 -9
- package/drawer/use-drawer/index.js +1 -1
- package/dropdown/Button.d.ts +1 -1
- package/dropdown/Button.js +2 -2
- package/dropdown/Dropdown.js +55 -55
- package/dropdown/constants.d.ts +0 -0
- package/dropdown/constants.js +2 -0
- package/dropdown/context.d.ts +3 -0
- package/dropdown/context.js +11 -0
- package/dropdown/index.d.ts +3 -1
- package/dropdown/index.js +9 -6
- package/dropdown/style/index.css +1 -0
- package/dropdown/style/index.d.ts +3 -0
- package/dropdown/style/index.js +5 -0
- package/empty/Empty.js +22 -18
- package/empty/constants.d.ts +0 -0
- package/empty/constants.js +2 -0
- package/empty/context.d.ts +3 -0
- package/empty/context.js +7 -0
- package/empty/index.d.ts +2 -0
- package/empty/index.js +9 -4
- package/empty/style/index.css +1 -0
- package/empty/style/index.d.ts +1 -0
- package/empty/style/index.js +3 -0
- package/flex/Flex.js +24 -20
- package/flex/constants.d.ts +0 -0
- package/flex/constants.js +2 -0
- package/flex/context.d.ts +3 -0
- package/flex/context.js +7 -0
- package/flex/index.d.ts +2 -0
- package/flex/index.js +8 -5
- package/flex/style/index.d.ts +1 -0
- package/flex/style/index.js +3 -0
- package/form/Control.d.ts +31 -32
- package/form/Control.js +248 -200
- package/form/Form.js +78 -90
- package/form/Item.js +192 -0
- package/form/ItemLabel.js +48 -0
- package/form/ItemTip.js +41 -0
- package/form/LabelSymbol.js +20 -0
- package/form/List.js +83 -0
- package/form/Provider.js +29 -0
- package/form/constants.js +9 -0
- package/form/context.d.ts +3 -1
- package/form/context.js +19 -5
- package/form/hooks/useForm.js +56 -0
- package/form/hooks/useFormContext.js +34 -0
- package/form/hooks/useFormState.js +31 -0
- package/form/hooks/useWatch.js +34 -0
- package/form/index.d.ts +14 -12
- package/form/index.js +31 -29
- package/form/interface.js +1 -1
- package/form/promisify.js +1 -1
- package/form/store.d.ts +1 -1
- package/form/store.js +36 -36
- package/form/style/index.css +1 -0
- package/form/style/index.d.ts +2 -0
- package/form/style/index.js +4 -0
- package/form/utils.js +14 -14
- package/global-provider/GlobalProvider.js +1 -1
- package/global-provider/constants.d.ts +0 -0
- package/global-provider/constants.js +2 -0
- package/global-provider/context.js +1 -1
- package/global-provider/index.d.ts +1 -0
- package/global-provider/index.js +2 -1
- package/global-provider/style/index.d.ts +1 -0
- package/global-provider/style/index.js +3 -0
- package/grid/Grid.js +33 -34
- package/grid/Item.d.ts +1 -1
- package/grid/Item.js +3 -3
- package/grid/constants.d.ts +0 -0
- package/grid/constants.js +2 -0
- package/grid/context.d.ts +2 -0
- package/grid/context.js +8 -3
- package/grid/index.d.ts +4 -1
- package/grid/index.js +9 -7
- package/grid/style/index.css +1 -0
- package/grid/style/index.d.ts +1 -0
- package/grid/style/index.js +3 -0
- package/grid/utils.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/use-breakpoint/index.js +1 -1
- package/hooks/use-computed-state/index.js +1 -1
- package/hooks/use-controllable-value/index.js +1 -1
- package/hooks/use-create/index.js +1 -1
- package/hooks/use-creation/index.js +1 -1
- package/hooks/use-effect-event/index.js +1 -1
- package/hooks/use-event/index.js +1 -1
- package/hooks/use-event-listener/index.js +1 -1
- package/hooks/use-force-update/index.js +1 -1
- package/hooks/use-fullscreen/index.js +1 -1
- package/hooks/use-id/index.js +1 -1
- package/hooks/use-intersection-observer/index.js +1 -1
- package/hooks/use-intersection-observers/index.js +1 -1
- package/hooks/use-interval/index.js +1 -1
- package/hooks/use-is-first-render/index.js +1 -1
- package/hooks/use-isomorphic-layout-effect/index.js +1 -1
- package/hooks/use-keyboard-event/index.js +1 -1
- package/hooks/use-latest/index.js +1 -1
- package/hooks/use-listen-window-resize/index.js +1 -1
- package/hooks/use-media/index.js +1 -1
- package/hooks/use-memoized-fn/index.js +1 -1
- package/hooks/use-merge-props/index.js +1 -1
- package/hooks/use-move/index.js +1 -1
- package/hooks/use-mutation-observers/index.js +1 -1
- package/hooks/use-online-status/index.js +1 -1
- package/hooks/use-overflow-hidden/index.js +1 -1
- package/hooks/use-override-ref/index.js +1 -1
- package/hooks/use-persist-callback/index.js +1 -1
- package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
- package/hooks/use-previous/index.js +1 -1
- package/hooks/use-refs/index.js +1 -1
- package/hooks/use-resize-observer/index.js +1 -1
- package/hooks/use-resize-observers/index.js +1 -1
- package/hooks/use-responsive-state/index.js +1 -1
- package/hooks/use-set-state/index.js +1 -1
- package/hooks/use-state-callback/index.js +1 -1
- package/hooks/use-state-with-promise/index.js +1 -1
- package/hooks/use-update-effect/index.js +1 -1
- package/hooks/use-update-layout-effect/index.js +1 -1
- package/hooks/use-verification-code/index.js +1 -1
- package/hooks/use-watch/index.js +1 -1
- package/hooks/use-watermark/index.js +18 -18
- package/hooks/use-watermark/utils.js +1 -1
- package/hooks/use-window-size/index.js +1 -1
- package/hooks/useUnmountOnExit.js +1 -1
- package/icon/Icon.d.ts +2 -4
- package/icon/Icon.js +22 -23
- package/icon/addIconFromCdn.js +1 -1
- package/icon/constants.d.ts +0 -0
- package/icon/constants.js +2 -0
- package/icon/context.d.ts +3 -0
- package/icon/context.js +11 -0
- package/icon/index.d.ts +12 -1
- package/icon/index.js +12 -9
- package/icon/style/index.css +1 -0
- package/icon/style/index.d.ts +1 -0
- package/icon/style/index.js +3 -0
- package/icon-hover/IconHover.js +26 -24
- package/icon-hover/constants.d.ts +0 -0
- package/icon-hover/constants.js +2 -0
- package/icon-hover/context.d.ts +3 -0
- package/icon-hover/context.js +7 -0
- package/icon-hover/index.d.ts +2 -0
- package/icon-hover/index.js +9 -4
- package/icon-hover/style/index.css +1 -0
- package/icon-hover/style/index.d.ts +1 -0
- package/icon-hover/style/index.js +3 -0
- package/icons/file/File.js +20 -16
- package/icons/file/constants.d.ts +0 -0
- package/icons/file/context.d.ts +3 -0
- package/icons/file/context.js +7 -0
- package/icons/file/index.d.ts +1 -0
- package/icons/file/index.js +3 -2
- package/icons/file/style/index.d.ts +0 -1
- package/icons/file/style/index.js +3 -0
- package/icons.js +1 -1
- package/image/Footer.d.ts +13 -0
- package/image/Footer.js +58 -0
- package/image/Image.js +66 -66
- package/image/Preview.js +371 -0
- package/image/PreviewArrow.js +30 -0
- package/image/PreviewGroup.js +112 -0
- package/image/PreviewToolbar.js +61 -0
- package/image/TriggerForToolbar.js +1 -1
- package/image/constants.d.ts +0 -0
- package/image/constants.js +2 -0
- package/image/context.d.ts +5 -1
- package/image/context.js +31 -5
- package/image/hooks/useImageStatus.js +18 -0
- package/image/hooks/useShowFooter.js +13 -0
- package/image/index.d.ts +6 -4
- package/image/index.js +11 -9
- package/image/style/index.css +1 -0
- package/image/style/index.d.ts +1 -0
- package/image/style/index.js +3 -0
- package/image/utils/getFixTranslate.js +1 -1
- package/image/utils/getScale.js +1 -1
- package/index.d.ts +0 -2
- package/index.js +485 -505
- package/input/Button.js +2 -2
- package/input/Core.js +8 -6
- package/input/Group.js +2 -2
- package/input/Input.js +52 -48
- package/input/Password.js +2 -2
- package/input/Search.js +2 -2
- package/input/Textarea.js +2 -2
- package/input/autoSizeTextareaHeight.js +1 -1
- package/input/constants.js +1 -1
- package/input/context.d.ts +3 -0
- package/input/context.js +7 -0
- package/input/index.d.ts +4 -0
- package/input/index.js +23 -24
- package/input/style/index.css +1 -0
- package/input/style/index.d.ts +2 -0
- package/input/style/index.js +4 -0
- package/input/useComposition.js +1 -1
- package/input/utils.js +1 -1
- package/input-number/InputNumber.js +56 -58
- package/input-number/constants.d.ts +0 -0
- package/input-number/constants.js +2 -0
- package/input-number/context.d.ts +3 -0
- package/input-number/context.js +13 -0
- package/input-number/decimal.js +1 -1
- package/input-number/hooks/useSelectionRange.js +25 -0
- package/input-number/index.d.ts +2 -0
- package/input-number/index.js +9 -4
- package/input-number/style/index.css +1 -0
- package/input-number/style/index.d.ts +2 -0
- package/input-number/style/index.js +4 -0
- package/input-number/utils.js +1 -1
- package/input-tag/InputTag.js +163 -159
- package/input-tag/constants.js +6 -0
- package/input-tag/context.d.ts +3 -0
- package/input-tag/context.js +7 -0
- package/input-tag/hooks/useComputeAutoWidthDelay.js +12 -0
- package/input-tag/index.d.ts +2 -0
- package/input-tag/index.js +9 -4
- package/input-tag/style/index.css +1 -0
- package/input-tag/style/index.d.ts +2 -0
- package/input-tag/style/index.js +4 -0
- package/layout/Content.js +1 -1
- package/layout/Footer.js +1 -1
- package/layout/Header.js +1 -1
- package/layout/Layout.js +24 -20
- package/layout/Sider.js +3 -3
- package/layout/constants.d.ts +0 -0
- package/layout/constants.js +2 -0
- package/layout/context.d.ts +3 -0
- package/layout/context.js +3 -3
- package/layout/index.d.ts +2 -0
- package/layout/index.js +15 -13
- package/layout/style/index.css +1 -0
- package/layout/style/index.d.ts +3 -0
- package/layout/style/index.js +5 -0
- package/link/Link.js +35 -32
- package/link/constants.d.ts +0 -0
- package/link/constants.js +2 -0
- package/link/context.d.ts +3 -0
- package/link/context.js +7 -0
- package/link/index.d.ts +2 -0
- package/link/index.js +9 -4
- package/link/style/index.css +1 -0
- package/link/style/index.d.ts +1 -0
- package/link/style/index.js +3 -0
- package/liquid-fill/LiquidFill.js +73 -87
- package/liquid-fill/constants.d.ts +0 -0
- package/liquid-fill/constants.js +2 -0
- package/liquid-fill/context.d.ts +3 -0
- package/liquid-fill/context.js +25 -0
- package/liquid-fill/index.d.ts +2 -0
- package/liquid-fill/index.js +9 -4
- package/liquid-fill/style/index.css +1 -0
- package/liquid-fill/style/index.d.ts +1 -0
- package/liquid-fill/style/index.js +3 -0
- package/list/Item.js +2 -2
- package/list/List.js +44 -46
- package/list/Meta.js +1 -1
- package/list/constants.d.ts +0 -0
- package/list/constants.js +2 -0
- package/list/context.d.ts +3 -0
- package/list/context.js +13 -0
- package/list/index.d.ts +2 -0
- package/list/index.js +7 -4
- package/list/style/index.css +1 -0
- package/list/style/index.d.ts +5 -0
- package/list/style/index.js +7 -0
- package/loading/Loading.js +40 -36
- package/loading/constants.d.ts +0 -0
- package/loading/constants.js +2 -0
- package/loading/context.d.ts +3 -0
- package/loading/context.js +7 -0
- package/loading/index.d.ts +2 -0
- package/loading/index.js +9 -4
- package/loading/style/index.d.ts +1 -0
- package/loading/style/index.js +3 -0
- package/locale/ar-EG.js +1 -1
- package/locale/de-DE.js +1 -1
- package/locale/default.js +1 -1
- package/locale/en-US.js +1 -1
- package/locale/es-ES.js +1 -1
- package/locale/fr-FR.js +1 -1
- package/locale/id-ID.js +1 -1
- package/locale/it-IT.js +1 -1
- package/locale/ja-JP.js +20 -20
- package/locale/ko-KR.js +1 -1
- package/locale/ms-MY.js +1 -1
- package/locale/pt-BR.js +1 -1
- package/locale/pt-PT.js +1 -1
- package/locale/ru-RU.js +1 -1
- package/locale/th-TH.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/locale/vi-VN.js +1 -1
- package/locale/zh-CN.js +19 -19
- package/locale/zh-HK.js +20 -20
- package/locale/zh-TW.js +20 -20
- package/marquee/Marquee.js +44 -50
- package/marquee/constants.d.ts +0 -0
- package/marquee/constants.js +2 -0
- package/marquee/context.d.ts +3 -0
- package/marquee/context.js +16 -0
- package/marquee/index.d.ts +2 -0
- package/marquee/index.js +9 -4
- package/marquee/style/index.css +1 -0
- package/marquee/style/index.d.ts +1 -0
- package/marquee/style/index.js +3 -0
- package/mask/Mask.d.ts +1 -3
- package/mask/Mask.js +28 -29
- package/mask/constants.js +10 -0
- package/mask/context.d.ts +3 -0
- package/mask/context.js +11 -0
- package/mask/index.d.ts +3 -3
- package/mask/index.js +9 -4
- package/mask/interface.d.ts +2 -2
- package/mask/style/index.css +1 -0
- package/mask/style/index.d.ts +1 -0
- package/mask/style/index.js +3 -0
- package/masonry/Item.js +1 -1
- package/masonry/Masonry.js +57 -54
- package/masonry/constants.d.ts +0 -0
- package/masonry/constants.js +2 -0
- package/masonry/context.d.ts +3 -0
- package/masonry/context.js +7 -0
- package/masonry/hooks/useDelay.js +1 -1
- package/masonry/hooks/useGutter.js +1 -1
- package/masonry/hooks/usePositions.js +1 -1
- package/masonry/hooks/useRefs.js +1 -1
- package/masonry/index.d.ts +2 -0
- package/masonry/index.js +7 -4
- package/masonry/style/index.css +1 -0
- package/masonry/style/index.d.ts +1 -0
- package/masonry/style/index.js +3 -0
- package/mentions/Mentions.js +37 -39
- package/mentions/constants.d.ts +0 -0
- package/mentions/constants.js +2 -0
- package/mentions/context.d.ts +3 -0
- package/mentions/context.js +13 -0
- package/mentions/index.d.ts +2 -0
- package/mentions/index.js +9 -4
- package/mentions/style/index.css +1 -0
- package/mentions/style/index.d.ts +1 -0
- package/mentions/style/index.js +3 -0
- package/mentions/utils.js +1 -1
- package/menu/Indent.js +1 -1
- package/menu/Item.js +1 -1
- package/menu/ItemGroup.js +1 -1
- package/menu/Menu.js +75 -81
- package/menu/OverflowWrap.js +2 -2
- package/menu/constants.d.ts +0 -0
- package/menu/constants.js +2 -0
- package/menu/context.d.ts +3 -1
- package/menu/context.js +12 -3
- package/menu/index.d.ts +3 -1
- package/menu/index.js +14 -12
- package/menu/style/index.css +1 -0
- package/menu/style/index.d.ts +3 -0
- package/menu/style/index.js +5 -0
- package/menu/sub-menu/Inline.d.ts +2 -1
- package/menu/sub-menu/Inline.js +2 -2
- package/menu/sub-menu/Pop.d.ts +2 -1
- package/menu/sub-menu/Pop.js +3 -3
- package/menu/sub-menu/index.d.ts +1 -1
- package/menu/sub-menu/index.js +2 -2
- package/menu/utils.js +1 -1
- package/message/Message.js +76 -72
- package/message/config.js +1 -1
- package/message/constants.js +1 -1
- package/message/context.d.ts +3 -0
- package/message/context.js +7 -0
- package/message/hooks/useMessage.d.ts +4 -0
- package/message/hooks/useMessage.js +52 -0
- package/message/index.d.ts +3 -1
- package/message/index.js +9 -6
- package/message/interface.d.ts +3 -5
- package/message/style/index.css +1 -0
- package/message/style/index.d.ts +1 -0
- package/message/style/index.js +3 -0
- package/message/utils.js +1 -1
- package/modal/Modal.js +189 -207
- package/modal/config.js +1 -1
- package/modal/confirm.js +12 -12
- package/modal/constants.js +1 -1
- package/modal/context.d.ts +3 -0
- package/modal/context.js +17 -0
- package/modal/index.d.ts +2 -0
- package/modal/index.js +11 -8
- package/modal/interface.d.ts +3 -0
- package/modal/style/index.css +1 -0
- package/modal/style/index.d.ts +2 -0
- package/modal/style/index.js +4 -0
- package/modal/use-modal/Hook.js +11 -9
- package/modal/use-modal/index.js +1 -1
- package/modal/utils.js +1 -1
- package/notice/Notice.js +47 -49
- package/notice/config.js +1 -1
- package/notice/constants.js +1 -1
- package/notice/context.d.ts +3 -0
- package/notice/context.js +13 -0
- package/notice/index.d.ts +2 -0
- package/notice/index.js +10 -7
- package/notice/style/index.d.ts +1 -0
- package/notice/style/index.js +3 -0
- package/notice/utils.js +1 -1
- package/notice/withNotice.js +1 -1
- package/notification/Notification.js +77 -73
- package/notification/config.js +1 -1
- package/notification/constants.js +1 -1
- package/notification/context.d.ts +3 -0
- package/notification/context.js +7 -0
- package/notification/hooks/useNotification.d.ts +4 -0
- package/notification/hooks/useNotification.js +53 -0
- package/notification/index.d.ts +3 -1
- package/notification/index.js +9 -6
- package/notification/style/index.css +1 -0
- package/notification/style/index.d.ts +1 -0
- package/notification/style/index.js +3 -0
- package/notification/utils.js +1 -1
- package/overflow-ellipsis/Item.js +22 -0
- package/overflow-ellipsis/OverflowEllipsis.js +42 -37
- package/overflow-ellipsis/constants.d.ts +0 -0
- package/overflow-ellipsis/constants.js +2 -0
- package/overflow-ellipsis/context.d.ts +3 -0
- package/overflow-ellipsis/context.js +7 -0
- package/overflow-ellipsis/index.d.ts +4 -2
- package/overflow-ellipsis/index.js +10 -5
- package/overflow-ellipsis/style/index.css +1 -0
- package/overflow-ellipsis/style/index.d.ts +1 -0
- package/overflow-ellipsis/style/index.js +3 -0
- package/package.json +1 -1
- package/page-header/PageHeader.js +74 -70
- package/page-header/constants.d.ts +0 -0
- package/page-header/constants.js +2 -0
- package/page-header/context.d.ts +3 -0
- package/page-header/context.js +7 -0
- package/page-header/index.d.ts +2 -0
- package/page-header/index.js +9 -4
- package/page-header/style/index.css +1 -0
- package/page-header/style/index.d.ts +2 -0
- package/page-header/style/index.js +4 -0
- package/pagination/Item.js +2 -2
- package/pagination/Jumper.js +2 -2
- package/pagination/Pagination.js +98 -99
- package/pagination/PreNextButton.js +2 -2
- package/pagination/PreNextJump.js +2 -2
- package/pagination/SizeOption.js +3 -3
- package/pagination/constants.d.ts +0 -0
- package/pagination/constants.js +2 -0
- package/pagination/context.d.ts +3 -0
- package/pagination/context.js +11 -0
- package/pagination/index.d.ts +2 -0
- package/pagination/index.js +10 -5
- package/pagination/interface.js +1 -1
- package/pagination/style/index.css +1 -0
- package/pagination/style/index.d.ts +3 -0
- package/pagination/style/index.js +5 -0
- package/pagination/utils.js +1 -1
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/picker/constants.d.ts +0 -0
- package/picker/constants.js +2 -0
- package/picker/context.d.ts +0 -0
- package/picker/context.js +2 -0
- package/picker/index.d.ts +1 -0
- package/picker/index.js +7 -6
- package/picker/style/index.css +1 -0
- package/picker/style/index.d.ts +1 -0
- package/picker/style/index.js +3 -0
- package/popconfirm/Popconfirm.js +40 -43
- package/popconfirm/constants.d.ts +0 -0
- package/popconfirm/constants.js +2 -0
- package/popconfirm/context.d.ts +3 -0
- package/popconfirm/context.js +16 -0
- package/popconfirm/index.d.ts +2 -0
- package/popconfirm/index.js +9 -4
- package/popconfirm/style/index.css +1 -0
- package/popconfirm/style/index.d.ts +4 -0
- package/popconfirm/style/index.js +6 -0
- package/popover/Popover.js +36 -37
- package/popover/constants.d.ts +0 -0
- package/popover/constants.js +2 -0
- package/popover/context.d.ts +3 -0
- package/popover/context.js +11 -0
- package/popover/index.d.ts +2 -0
- package/popover/index.js +9 -4
- package/popover/style/index.css +1 -0
- package/popover/style/index.d.ts +2 -0
- package/popover/style/index.js +4 -0
- package/portal/Portal.js +25 -23
- package/portal/constants.d.ts +0 -0
- package/portal/constants.js +2 -0
- package/portal/context.d.ts +3 -0
- package/portal/context.js +7 -0
- package/portal/index.d.ts +2 -0
- package/portal/index.js +9 -4
- package/portal/style/index.d.ts +1 -0
- package/portal/style/index.js +3 -0
- package/progress/Circle.js +102 -0
- package/progress/Line.js +74 -0
- package/progress/Progress.js +51 -54
- package/progress/Step.js +51 -0
- package/progress/constants.d.ts +0 -0
- package/progress/constants.js +2 -0
- package/progress/context.d.ts +3 -0
- package/progress/context.js +13 -0
- package/progress/index.d.ts +6 -31
- package/progress/index.js +12 -9
- package/progress/style/index.css +1 -0
- package/progress/style/index.d.ts +2 -0
- package/progress/style/index.js +4 -0
- package/qr-code/QRCode.js +31 -37
- package/qr-code/constants.d.ts +0 -0
- package/qr-code/constants.js +2 -0
- package/qr-code/context.d.ts +3 -0
- package/qr-code/context.js +17 -0
- package/qr-code/index.d.ts +2 -0
- package/qr-code/index.js +9 -6
- package/qr-code/src/index.js +1 -1
- package/qr-code/src/qrcodegen.js +1 -1
- package/qr-code/style/index.css +1 -0
- package/qr-code/style/index.d.ts +1 -0
- package/qr-code/style/index.js +3 -0
- package/radio/Group.js +3 -3
- package/radio/GroupBlock.js +3 -3
- package/radio/Radio.js +62 -59
- package/radio/constants.d.ts +0 -0
- package/radio/constants.js +2 -0
- package/radio/context.d.ts +3 -1
- package/radio/context.js +3 -3
- package/radio/index.d.ts +2 -0
- package/radio/index.js +12 -10
- package/radio/style/index.css +1 -0
- package/radio/style/index.d.ts +1 -0
- package/radio/style/index.js +3 -0
- package/rate/Rate.js +32 -33
- package/rate/constants.d.ts +0 -0
- package/rate/constants.js +2 -0
- package/rate/context.d.ts +3 -0
- package/rate/context.js +11 -0
- package/rate/index.d.ts +2 -0
- package/rate/index.js +9 -4
- package/rate/style/index.css +1 -0
- package/rate/style/index.d.ts +2 -0
- package/rate/style/index.js +4 -0
- package/resize-box/ResizeBox.js +75 -76
- package/resize-box/ResizeTrigger.js +1 -1
- package/resize-box/Split.js +13 -13
- package/resize-box/SplitGroup.js +14 -14
- package/resize-box/constants.d.ts +0 -0
- package/resize-box/constants.js +2 -0
- package/resize-box/context.d.ts +3 -0
- package/resize-box/context.js +12 -0
- package/resize-box/index.d.ts +2 -0
- package/resize-box/index.js +11 -8
- package/resize-box/style/index.css +1 -0
- package/resize-box/style/index.d.ts +1 -0
- package/resize-box/style/index.js +3 -0
- package/result/403.js +1 -1
- package/result/404.js +1 -1
- package/result/500.js +1 -1
- package/result/Result.js +57 -53
- package/result/constants.d.ts +0 -0
- package/result/constants.js +2 -0
- package/result/context.d.ts +3 -0
- package/result/context.js +7 -0
- package/result/index.d.ts +2 -0
- package/result/index.js +9 -4
- package/result/style/index.css +1 -0
- package/result/style/index.d.ts +1 -0
- package/result/style/index.js +3 -0
- package/rich-text/RichText.d.ts +1 -1
- package/rich-text/RichText.js +110 -106
- package/rich-text/Toolbar.d.ts +2 -1
- package/rich-text/Toolbar.js +234 -250
- package/rich-text/constants.js +7 -0
- package/rich-text/context.d.ts +3 -0
- package/rich-text/context.js +7 -0
- package/rich-text/index.d.ts +9 -7
- package/rich-text/index.js +25 -22
- package/rich-text/interface.d.ts +4 -2
- package/rich-text/libs/blots/block.js +115 -0
- package/rich-text/libs/blots/break.js +20 -0
- package/rich-text/libs/blots/container.js +8 -0
- package/rich-text/libs/blots/cursor.js +97 -0
- package/rich-text/libs/blots/embed.js +47 -0
- package/rich-text/libs/blots/inline.js +50 -0
- package/rich-text/libs/blots/scroll.js +249 -0
- package/rich-text/libs/blots/text.js +17 -0
- package/rich-text/libs/core/composition.js +38 -0
- package/rich-text/libs/core/editor.js +248 -0
- package/rich-text/libs/core/emitter.d.ts +38 -0
- package/rich-text/libs/core/emitter.js +47 -0
- package/rich-text/libs/core/logger.js +20 -0
- package/rich-text/libs/core/module.js +14 -0
- package/rich-text/libs/core/rich.d.ts +183 -0
- package/rich-text/libs/core/rich.js +369 -0
- package/rich-text/libs/core/selection.js +222 -0
- package/rich-text/libs/core/theme.js +32 -0
- package/rich-text/libs/core/utils/createRegistryWithFormats.js +29 -0
- package/rich-text/libs/core/utils/scrollRectIntoView.js +59 -0
- package/rich-text/libs/delta/AttributeMap.js +37 -0
- package/rich-text/libs/delta/Op.js +10 -0
- package/rich-text/libs/delta/OpIterator.js +45 -0
- package/rich-text/libs/delta/index.js +235 -0
- package/rich-text/libs/diff/index.js +285 -0
- package/rich-text/libs/formats/align.js +20 -0
- package/rich-text/libs/formats/background.js +11 -0
- package/rich-text/libs/formats/blockquote.js +16 -0
- package/rich-text/libs/formats/bold.js +25 -0
- package/rich-text/libs/formats/code.js +37 -0
- package/rich-text/libs/formats/color.js +16 -0
- package/rich-text/libs/formats/direction.js +15 -0
- package/rich-text/libs/formats/emoji.js +20 -0
- package/rich-text/libs/formats/font.js +51 -0
- package/rich-text/libs/formats/formula.js +35 -0
- package/rich-text/libs/formats/header.js +25 -0
- package/rich-text/libs/formats/hr.js +17 -0
- package/rich-text/libs/formats/image.js +46 -0
- package/rich-text/libs/formats/indent.js +38 -0
- package/rich-text/libs/formats/italic.js +16 -0
- package/rich-text/libs/formats/lineHeight.js +12 -0
- package/rich-text/libs/formats/link.js +47 -0
- package/rich-text/libs/formats/list.js +37 -0
- package/rich-text/libs/formats/script.js +23 -0
- package/rich-text/libs/formats/size.js +27 -0
- package/rich-text/libs/formats/strike.js +16 -0
- package/rich-text/libs/formats/table.js +134 -0
- package/rich-text/libs/formats/underline.js +16 -0
- package/rich-text/libs/formats/video.js +40 -0
- package/rich-text/libs/index.js +117 -0
- package/rich-text/libs/modules/clipboard.js +295 -0
- package/rich-text/libs/modules/history.js +119 -0
- package/rich-text/libs/modules/image-resize/index.js +80 -0
- package/rich-text/libs/modules/image-resize/modules/Base.js +14 -0
- package/rich-text/libs/modules/image-resize/modules/DisplaySize.js +41 -0
- package/rich-text/libs/modules/image-resize/modules/Resize.js +62 -0
- package/rich-text/libs/modules/image-resize/options.js +11 -0
- package/rich-text/libs/modules/input.js +54 -0
- package/rich-text/libs/modules/keyboard.js +423 -0
- package/rich-text/libs/modules/normalizeExternalHTML/index.js +12 -0
- package/rich-text/libs/modules/normalizeExternalHTML/normalizers/googleDocs.js +22 -0
- package/rich-text/libs/modules/normalizeExternalHTML/normalizers/msWord.js +39 -0
- package/rich-text/libs/modules/table.js +113 -0
- package/rich-text/libs/modules/toolbar copy.d.ts +0 -0
- package/rich-text/libs/modules/toolbar.js +18 -0
- package/rich-text/libs/modules/uiNode.js +52 -0
- package/rich-text/libs/modules/uploader.js +46 -0
- package/rich-text/libs/parchment/attributor/attributor.js +30 -0
- package/rich-text/libs/parchment/attributor/class.js +26 -0
- package/rich-text/libs/parchment/attributor/store.js +44 -0
- package/rich-text/libs/parchment/attributor/style.js +25 -0
- package/rich-text/libs/parchment/blot/abstract/container.js +32 -0
- package/rich-text/libs/parchment/blot/abstract/leaf.js +25 -0
- package/rich-text/libs/parchment/blot/abstract/parent.js +156 -0
- package/rich-text/libs/parchment/blot/abstract/shadow.js +78 -0
- package/rich-text/libs/parchment/blot/block.js +71 -0
- package/rich-text/libs/parchment/blot/embed.js +18 -0
- package/rich-text/libs/parchment/blot/inline.js +73 -0
- package/rich-text/libs/parchment/blot/scroll.js +100 -0
- package/rich-text/libs/parchment/blot/text.js +56 -0
- package/rich-text/libs/parchment/collection/linked-list.js +86 -0
- package/rich-text/libs/parchment/error.js +10 -0
- package/rich-text/libs/parchment/index.js +36 -0
- package/rich-text/libs/parchment/registry.js +56 -0
- package/rich-text/libs/parchment/scope.js +8 -0
- package/rich-text/style/index.css +1 -0
- package/rich-text/style/index.d.ts +1 -0
- package/rich-text/style/index.js +3 -0
- package/router-error/RouterError.d.ts +4 -0
- package/router-error/RouterError.js +82 -0
- package/router-error/constants.d.ts +0 -0
- package/router-error/constants.js +2 -0
- package/router-error/context.d.ts +3 -0
- package/router-error/context.js +7 -0
- package/router-error/index.d.ts +3 -1
- package/router-error/index.js +5 -75
- package/router-error/interface.d.ts +8 -0
- package/router-error/style/index.d.ts +0 -1
- package/router-error/style/index.js +1 -2
- package/row-col/Col.js +65 -96
- package/row-col/Row.js +36 -39
- package/row-col/constants.d.ts +1 -0
- package/row-col/constants.js +6 -0
- package/row-col/context.d.ts +5 -0
- package/row-col/context.js +8 -3
- package/row-col/index.d.ts +2 -0
- package/row-col/index.js +11 -9
- package/row-col/style/index.css +1 -0
- package/row-col/style/index.d.ts +1 -0
- package/row-col/style/index.js +3 -0
- package/segmented/Segmented.js +82 -89
- package/segmented/constants.d.ts +0 -0
- package/segmented/constants.js +2 -0
- package/segmented/context.d.ts +3 -0
- package/segmented/context.js +18 -0
- package/segmented/index.d.ts +2 -0
- package/segmented/index.js +9 -4
- package/segmented/style/index.css +1 -0
- package/segmented/style/index.d.ts +1 -0
- package/segmented/style/index.js +3 -0
- package/select/Option.js +1 -1
- package/select/OptionGroup.js +1 -1
- package/select/Select.js +195 -197
- package/select/constants.d.ts +0 -0
- package/select/constants.js +2 -0
- package/select/context.d.ts +3 -0
- package/select/context.js +13 -0
- package/select/index.d.ts +2 -0
- package/select/index.js +7 -4
- package/select/style/index.css +1 -0
- package/select/style/index.d.ts +5 -0
- package/select/style/index.js +7 -0
- package/select/utils.js +1 -1
- package/select-view/Core.js +3 -3
- package/select-view/SelectView.js +43 -39
- package/select-view/constants.d.ts +0 -0
- package/select-view/constants.js +2 -0
- package/select-view/context.d.ts +3 -0
- package/select-view/context.js +7 -0
- package/select-view/index.d.ts +2 -0
- package/select-view/index.js +10 -7
- package/select-view/style/index.d.ts +1 -0
- package/select-view/style/index.js +3 -0
- package/skeleton/Image.js +1 -1
- package/skeleton/Skeleton.js +42 -42
- package/skeleton/Text.d.ts +1 -1
- package/skeleton/Text.js +1 -1
- package/skeleton/constants.d.ts +0 -0
- package/skeleton/constants.js +2 -0
- package/skeleton/context.d.ts +3 -0
- package/skeleton/context.js +10 -0
- package/skeleton/index.d.ts +2 -0
- package/skeleton/index.js +11 -8
- package/skeleton/style/index.css +1 -0
- package/skeleton/style/index.d.ts +1 -0
- package/skeleton/style/index.js +3 -0
- package/slider/Button.js +7 -7
- package/slider/Dot.d.ts +1 -1
- package/slider/Dot.js +1 -1
- package/slider/Input.js +1 -1
- package/slider/Mark.d.ts +1 -1
- package/slider/Mark.js +1 -1
- package/slider/Slider.js +188 -189
- package/slider/Tick.d.ts +1 -1
- package/slider/Tick.js +1 -1
- package/slider/constants.d.ts +0 -0
- package/slider/constants.js +2 -0
- package/slider/context.d.ts +3 -0
- package/slider/context.js +11 -0
- package/slider/hooks/useInterval.js +94 -0
- package/slider/hooks/useLegalValue.js +58 -0
- package/slider/index.d.ts +2 -0
- package/slider/index.js +15 -12
- package/slider/style/index.css +1 -0
- package/slider/style/index.d.ts +4 -0
- package/slider/style/index.js +6 -0
- package/slider/utils.d.ts +1 -1
- package/slider/utils.js +1 -1
- package/space/Space.js +29 -29
- package/space/constants.d.ts +0 -0
- package/space/constants.js +2 -0
- package/space/context.d.ts +3 -0
- package/space/context.js +10 -0
- package/space/index.d.ts +2 -0
- package/space/index.js +8 -5
- package/space/style/index.d.ts +1 -0
- package/space/style/index.js +3 -0
- package/speech-synthesis/SpeechSynthesis.js +18 -10
- package/speech-synthesis/constants.d.ts +0 -0
- package/speech-synthesis/constants.js +2 -0
- package/speech-synthesis/context.d.ts +3 -0
- package/speech-synthesis/context.js +7 -0
- package/speech-synthesis/index.d.ts +2 -0
- package/speech-synthesis/index.js +9 -4
- package/speech-synthesis/style/index.d.ts +1 -0
- package/speech-synthesis/style/index.js +3 -0
- package/spin/DotLoading.js +1 -1
- package/spin/Spin.js +69 -65
- package/spin/constants.d.ts +0 -0
- package/spin/constants.js +2 -0
- package/spin/context.d.ts +3 -0
- package/spin/context.js +7 -0
- package/spin/index.d.ts +2 -0
- package/spin/index.js +9 -6
- package/spin/style/index.css +1 -0
- package/spin/style/index.d.ts +1 -0
- package/spin/style/index.js +3 -0
- package/splitter/Bar.js +97 -0
- package/splitter/Panel.js +5 -5
- package/splitter/Splitter.js +61 -58
- package/splitter/constants.d.ts +0 -0
- package/splitter/constants.js +2 -0
- package/splitter/context.d.ts +3 -0
- package/splitter/context.js +7 -0
- package/splitter/hooks/useItems.js +1 -1
- package/splitter/hooks/useResizable.js +1 -1
- package/splitter/hooks/useResize.js +1 -1
- package/splitter/hooks/useSizes.js +1 -1
- package/splitter/index.d.ts +2 -0
- package/splitter/index.js +9 -6
- package/splitter/style/index.css +1 -0
- package/splitter/style/index.d.ts +1 -0
- package/splitter/style/index.js +3 -0
- package/statistic/Statistic.js +32 -31
- package/statistic/constants.d.ts +0 -0
- package/statistic/constants.js +2 -0
- package/statistic/context.d.ts +3 -0
- package/statistic/context.js +10 -0
- package/statistic/index.d.ts +3 -0
- package/statistic/index.js +7 -4
- package/statistic/interface.js +1 -1
- package/statistic/style/index.css +1 -0
- package/statistic/style/index.d.ts +2 -0
- package/statistic/style/index.js +4 -0
- package/steps/Item.js +64 -0
- package/steps/Steps.js +39 -42
- package/steps/constants.d.ts +0 -0
- package/steps/constants.js +2 -0
- package/steps/context.d.ts +3 -0
- package/steps/context.js +13 -0
- package/steps/index.d.ts +4 -2
- package/steps/index.js +10 -7
- package/steps/style/index.css +1 -0
- package/steps/style/index.d.ts +1 -0
- package/steps/style/index.js +3 -0
- package/style/constants.d.ts +0 -0
- package/style/constants.js +2 -0
- package/style/constants.ts +0 -0
- package/style/global.less +24 -0
- package/style/index.less +1 -0
- package/style/variables-css.less +1079 -0
- package/style/variables.less +0 -1109
- package/style.css +1 -2
- package/suspense-fallback-test/SuspenseFallbackTest.js +1 -1
- package/suspense-fallback-test/constants.d.ts +0 -0
- package/suspense-fallback-test/constants.js +2 -0
- package/suspense-fallback-test/context.d.ts +0 -0
- package/suspense-fallback-test/context.js +2 -0
- package/suspense-fallback-test/index.d.ts +2 -0
- package/suspense-fallback-test/index.js +2 -1
- package/suspense-fallback-test/style/index.d.ts +1 -0
- package/suspense-fallback-test/style/index.js +3 -0
- package/switch/Switch.js +61 -59
- package/switch/constants.d.ts +0 -0
- package/switch/constants.js +2 -0
- package/switch/context.d.ts +3 -0
- package/switch/context.js +10 -0
- package/switch/index.d.ts +2 -0
- package/switch/index.js +7 -4
- package/switch/interface.d.ts +7 -0
- package/switch/style/index.css +1 -0
- package/switch/style/index.d.ts +1 -0
- package/switch/style/index.js +3 -0
- package/table/ColGroup.js +2 -2
- package/table/Table.js +250 -261
- package/table/constants.js +36 -0
- package/table/context.d.ts +2 -0
- package/table/context.js +15 -4
- package/table/hooks/useColumns.js +115 -0
- package/table/hooks/useComponent.js +27 -0
- package/table/hooks/useExpand.js +33 -0
- package/table/hooks/useRowSelection.js +73 -0
- package/table/hooks/useSorter.js +51 -0
- package/table/hooks/useStickyClassNames.js +25 -0
- package/table/hooks/useStickyOffsets.js +28 -0
- package/table/hooks/useThResizable.js +31 -0
- package/table/index.d.ts +11 -9
- package/table/index.js +37 -35
- package/table/style/index.css +1 -0
- package/table/style/index.d.ts +11 -0
- package/table/style/index.js +13 -0
- package/table/summary/Cell.js +1 -1
- package/table/summary/Row.js +1 -1
- package/table/summary/context.js +1 -1
- package/table/summary/index.js +1 -1
- package/table/tbody/DataRecordRenderer.js +3 -3
- package/table/tbody/Td.js +4 -4
- package/table/tbody/Tr.js +6 -6
- package/table/tbody/index.js +2 -2
- package/table/tfoot/index.js +1 -1
- package/table/th-resizable/index.js +8 -7
- package/table/th-resizable/style/index.css +1 -0
- package/table/th-resizable/style/index.d.ts +1 -0
- package/table/th-resizable/style/index.js +3 -0
- package/table/thead/Column.js +10 -10
- package/table/thead/index.js +4 -4
- package/table/utils.js +1 -1
- package/tabs/TabContent.js +23 -22
- package/tabs/TabPane.js +1 -1
- package/tabs/Tabs.js +80 -76
- package/tabs/constants.d.ts +1 -0
- package/tabs/constants.js +11 -0
- package/tabs/context.d.ts +5 -3
- package/tabs/context.js +12 -4
- package/tabs/hooks/useDomSize.js +23 -0
- package/tabs/hooks/useHeaderScroll.d.ts +13 -0
- package/tabs/hooks/useHeaderScroll.js +76 -0
- package/tabs/index.d.ts +4 -2
- package/tabs/index.js +13 -11
- package/tabs/interface.d.ts +1 -6
- package/tabs/style/index.css +1 -0
- package/tabs/style/index.d.ts +2 -0
- package/tabs/style/index.js +4 -0
- package/tabs/tab-header/DropdownIcon.js +34 -33
- package/tabs/tab-header/TabInk.js +16 -16
- package/tabs/tab-header/TabNavIcon.d.ts +2 -2
- package/tabs/tab-header/TabNavIcon.js +45 -44
- package/tabs/tab-header/TabTitle.d.ts +1 -1
- package/tabs/tab-header/TabTitle.js +1 -1
- package/tabs/tab-header/index.js +115 -117
- package/tabs/utils.d.ts +5 -1
- package/tabs/utils.js +12 -3
- package/tag/Tag.js +73 -70
- package/tag/constants.d.ts +0 -0
- package/tag/constants.js +2 -0
- package/tag/context.d.ts +3 -0
- package/tag/context.js +7 -0
- package/tag/index.d.ts +2 -0
- package/tag/index.js +10 -5
- package/tag/style/index.css +1 -0
- package/tag/style/index.d.ts +1 -0
- package/tag/style/index.js +3 -0
- package/tag/utils.js +1 -1
- package/time-picker/Picker.js +76 -79
- package/time-picker/TimeColumn.js +1 -1
- package/time-picker/TimePicker.js +69 -67
- package/time-picker/TimePickerRange.js +1 -1
- package/time-picker/constants.d.ts +0 -0
- package/time-picker/constants.js +2 -0
- package/time-picker/context.d.ts +3 -1
- package/time-picker/context.js +9 -3
- package/time-picker/index.d.ts +1 -0
- package/time-picker/index.js +10 -8
- package/time-picker/style/index.css +1 -0
- package/time-picker/style/index.d.ts +4 -0
- package/time-picker/style/index.js +6 -0
- package/time-picker/utils.js +1 -1
- package/time-picker/withTimePicker.js +1 -1
- package/timeline/Item.js +2 -2
- package/timeline/Timeline.js +33 -35
- package/timeline/constants.d.ts +0 -0
- package/timeline/constants.js +2 -0
- package/timeline/context.d.ts +3 -0
- package/timeline/context.js +13 -0
- package/timeline/index.d.ts +2 -0
- package/timeline/index.js +9 -6
- package/timeline/style/index.css +1 -0
- package/timeline/style/index.d.ts +1 -0
- package/timeline/style/index.js +3 -0
- package/timer/Timer.js +19 -15
- package/timer/constants.d.ts +0 -0
- package/timer/constants.js +2 -0
- package/timer/context.d.ts +3 -0
- package/timer/context.js +7 -0
- package/timer/index.d.ts +2 -0
- package/timer/index.js +9 -4
- package/timer/style/index.d.ts +1 -0
- package/timer/style/index.js +3 -0
- package/toast/Toast.d.ts +1 -0
- package/toast/Toast.js +1 -1
- package/toast/constants.d.ts +0 -0
- package/toast/constants.js +2 -0
- package/toast/context.d.ts +0 -0
- package/toast/context.js +2 -0
- package/toast/index.d.ts +2 -0
- package/toast/index.js +3 -2
- package/toast/style/index.d.ts +1 -0
- package/toast/style/index.js +3 -0
- package/tooltip/Tooltip.js +59 -62
- package/tooltip/constants.d.ts +0 -0
- package/tooltip/constants.js +2 -0
- package/tooltip/context.d.ts +3 -0
- package/tooltip/context.js +14 -0
- package/tooltip/index.d.ts +2 -0
- package/tooltip/index.js +9 -4
- package/tooltip/style/index.css +1 -0
- package/tooltip/style/index.d.ts +2 -0
- package/tooltip/style/index.js +4 -0
- package/tour/Tour.js +97 -105
- package/tour/constants.d.ts +0 -0
- package/tour/constants.js +2 -0
- package/tour/context.d.ts +3 -0
- package/tour/context.js +18 -0
- package/tour/index.d.ts +2 -0
- package/tour/index.js +9 -4
- package/tour/style/index.css +1 -0
- package/tour/style/index.d.ts +1 -0
- package/tour/style/index.js +3 -0
- package/transfer/Item.js +1 -1
- package/transfer/List.js +1 -1
- package/transfer/Transfer.js +77 -80
- package/transfer/constants.d.ts +0 -0
- package/transfer/constants.js +2 -0
- package/transfer/context.d.ts +3 -0
- package/transfer/context.js +14 -0
- package/transfer/index.d.ts +2 -0
- package/transfer/index.js +9 -4
- package/transfer/style/index.css +1 -0
- package/transfer/style/index.d.ts +5 -0
- package/transfer/style/index.js +7 -0
- package/transition/constants.d.ts +0 -0
- package/transition/constants.js +2 -0
- package/transition/context.d.ts +0 -0
- package/transition/context.js +2 -0
- package/transition/index.d.ts +1 -0
- package/transition/index.js +2 -1
- package/transition/style/index.d.ts +1 -0
- package/transition/style/index.js +3 -0
- package/tree/Animation.js +2 -2
- package/tree/Node.js +1 -1
- package/tree/NodeList.d.ts +1 -1
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +221 -232
- package/tree/constants.d.ts +10 -0
- package/tree/constants.js +16 -0
- package/tree/context.d.ts +2 -0
- package/tree/context.js +14 -4
- package/tree/index.d.ts +3 -1
- package/tree/index.js +15 -13
- package/tree/interface.d.ts +1 -1
- package/tree/style/index.css +1 -0
- package/tree/style/index.d.ts +2 -0
- package/tree/style/index.js +4 -0
- package/tree/utils.js +2 -2
- package/tree-select/List.js +1 -1
- package/tree-select/TreeSelect.js +135 -136
- package/tree-select/constants.d.ts +10 -0
- package/tree-select/constants.js +7 -0
- package/tree-select/context.d.ts +3 -0
- package/tree-select/context.js +13 -0
- package/tree-select/hooks/useKeyCache.js +49 -0
- package/tree-select/hooks/useStateValue.js +69 -0
- package/tree-select/hooks/useTreeData.js +15 -0
- package/tree-select/index.d.ts +2 -0
- package/tree-select/index.js +12 -9
- package/tree-select/style/index.css +1 -0
- package/tree-select/style/index.d.ts +4 -0
- package/tree-select/style/index.js +6 -0
- package/tree-select/utils.d.ts +0 -10
- package/tree-select/utils.js +3 -12
- package/trigger/Trigger.js +135 -154
- package/trigger/constants.d.ts +0 -0
- package/trigger/constants.js +2 -0
- package/trigger/context.d.ts +3 -0
- package/trigger/context.js +27 -0
- package/trigger/getPopupStyle.js +1 -1
- package/trigger/index.d.ts +2 -0
- package/trigger/index.js +10 -5
- package/trigger/style/index.css +1 -0
- package/trigger/style/index.d.ts +1 -0
- package/trigger/style/index.js +3 -0
- package/trigger/utils.js +1 -1
- package/typewriter/Typewriter.js +19 -16
- package/typewriter/constants.d.ts +0 -0
- package/typewriter/constants.js +2 -0
- package/typewriter/context.d.ts +3 -0
- package/typewriter/context.js +7 -0
- package/typewriter/index.d.ts +2 -0
- package/typewriter/index.js +9 -4
- package/typewriter/style/index.d.ts +1 -0
- package/typewriter/style/index.js +3 -0
- package/typography/Base.js +67 -62
- package/typography/EditContent.js +1 -1
- package/typography/Ellipsis.js +2 -2
- package/typography/Operations.js +1 -1
- package/typography/Paragraph.js +1 -1
- package/typography/Text.js +1 -1
- package/typography/Title.js +1 -1
- package/typography/Typography.js +21 -16
- package/typography/constants.d.ts +0 -0
- package/typography/constants.js +2 -0
- package/typography/context.d.ts +3 -0
- package/typography/context.js +7 -0
- package/typography/hooks/useCssEllipsis.d.ts +6 -0
- package/typography/hooks/useCssEllipsis.js +41 -0
- package/typography/hooks/useEllipsis.d.ts +21 -0
- package/typography/hooks/useEllipsis.js +149 -0
- package/typography/index.d.ts +4 -2
- package/typography/index.js +19 -16
- package/typography/style/index.css +1 -0
- package/typography/style/index.d.ts +4 -0
- package/typography/style/index.js +6 -0
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +48 -50
- package/upload/Uploader.js +2 -2
- package/upload/constants.js +11 -0
- package/upload/context.d.ts +3 -0
- package/upload/context.js +13 -0
- package/upload/index.d.ts +3 -1
- package/upload/index.js +14 -11
- package/upload/list/PictureItem.js +3 -3
- package/upload/list/TextItem.js +4 -4
- package/upload/list/UploadProgress.js +5 -5
- package/upload/list/index.js +2 -2
- package/upload/list/utils.js +1 -1
- package/upload/request.js +2 -2
- package/upload/style/index.css +1 -0
- package/upload/style/index.d.ts +5 -0
- package/upload/style/index.js +7 -0
- package/upload/utils.js +1 -1
- package/utils/callOrReturn.js +1 -1
- package/utils/callbackOriginRef.js +1 -1
- package/utils/caseName.js +1 -1
- package/utils/className.js +1 -1
- package/utils/constants.d.ts +5 -0
- package/utils/constants.js +24 -0
- package/utils/contextHolder.js +1 -1
- package/utils/copy.js +1 -1
- package/utils/createGlobalConfigFunction.js +1 -1
- package/utils/css.js +1 -1
- package/utils/date.js +1 -1
- package/utils/dayjs.js +2 -2
- package/utils/document.d.ts +1 -0
- package/utils/document.js +10 -0
- package/utils/dom.js +1 -1
- package/utils/emitter.js +1 -1
- package/utils/file.js +1 -1
- package/utils/fileRead.js +1 -1
- package/utils/fileToDataURL.js +1 -1
- package/utils/fillNBSP.js +1 -1
- package/utils/findRootElement.js +1 -1
- package/utils/findScrollParent.js +1 -1
- package/utils/getHighlightText.js +1 -1
- package/utils/getHotkeyHandler.js +1 -1
- package/utils/getScrollBarHeight.js +1 -1
- package/utils/getScrollBarSize.js +1 -1
- package/utils/getScrollBarWidth.js +1 -1
- package/utils/getStringLength.js +1 -1
- package/utils/include.js +1 -1
- package/utils/index.d.ts +1 -1
- package/utils/index.js +53 -53
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.js +1 -1
- package/utils/keyboardCode.d.ts +3 -3
- package/utils/keyboardCode.js +4 -4
- package/utils/lodash.js +1 -1
- package/utils/math.js +1 -1
- package/utils/mergeProps.js +1 -1
- package/utils/mergedToString.js +1 -1
- package/utils/mutationObserver.js +1 -1
- package/utils/names.d.ts +1 -0
- package/utils/names.js +2 -2
- package/utils/object.js +1 -1
- package/utils/omit.js +1 -1
- package/utils/pad.js +1 -1
- package/utils/pick.js +1 -1
- package/utils/pinyin.js +1 -1
- package/utils/react19Adapter.js +1 -1
- package/utils/ref.js +1 -1
- package/utils/resizeObserver.js +1 -1
- package/utils/responsiveObserve.js +1 -1
- package/utils/saveAs.js +1 -1
- package/utils/screenfull.js +1 -1
- package/utils/scrollIntoViewIfNeeded.js +1 -1
- package/utils/setCreateRoot.js +1 -1
- package/utils/setDarkTheme.js +2 -2
- package/utils/setPrimaryColor.js +2 -2
- package/utils/setTheme.js +2 -2
- package/utils/string.d.ts +1 -1
- package/utils/string.js +2 -2
- package/utils/style.js +1 -1
- package/utils/throttleByRequestAnimationFrame.js +1 -1
- package/utils/tinycolor.js +1 -1
- package/utils/toArray.js +1 -1
- package/utils/tree.js +1 -1
- package/utils/tunnel.js +8 -2
- package/utils/tween.js +1 -1
- package/utils/uuid.js +1 -1
- package/utils/validate.js +1 -1
- package/utils/warning.js +1 -1
- package/verification-code/VerificationCode.js +51 -48
- package/verification-code/constants.d.ts +0 -0
- package/verification-code/constants.js +2 -0
- package/verification-code/context.d.ts +3 -0
- package/verification-code/context.js +7 -0
- package/verification-code/index.d.ts +2 -0
- package/verification-code/index.js +7 -4
- package/verification-code/style/index.css +1 -0
- package/verification-code/style/index.d.ts +2 -0
- package/verification-code/style/index.js +4 -0
- package/version/index.js +8 -8
- package/virtual-list/Filler.js +1 -1
- package/virtual-list/VirtualList.js +159 -154
- package/virtual-list/constants.js +7 -0
- package/virtual-list/context.d.ts +3 -0
- package/virtual-list/context.js +7 -0
- package/virtual-list/hooks/useCacheChildrenNodes.js +13 -0
- package/virtual-list/hooks/useComputeVirtualItemHeight.js +17 -0
- package/virtual-list/index.d.ts +2 -0
- package/virtual-list/index.js +9 -6
- package/virtual-list/style/index.d.ts +1 -0
- package/virtual-list/style/index.js +3 -0
- package/virtual-list/utils/algorithm.js +1 -1
- package/virtual-list/utils/item.js +1 -1
- package/watermark/Watermark.js +38 -34
- package/watermark/constants.d.ts +0 -0
- package/watermark/constants.js +2 -0
- package/watermark/context.d.ts +3 -0
- package/watermark/context.js +7 -0
- package/watermark/index.d.ts +2 -0
- package/watermark/index.js +7 -4
- package/watermark/style/index.d.ts +1 -0
- package/watermark/style/index.js +3 -0
- package/.vite/license.md +0 -3
- package/.vite/manifest.json +0 -8807
- package/calendar/hook/useCellClassName.js +0 -34
- package/cascader/hook/useRefCurrent.js +0 -14
- package/constant/index.d.ts +0 -3
- package/constant/index.js +0 -6
- package/date-picker/DatePickerRange.d.ts +0 -3
- package/date-picker/DatePickerRange.js +0 -404
- package/date-picker/hook/useCellClassName.js +0 -53
- package/draw/constant.js +0 -2
- package/form/FormControl.d.ts +0 -50
- package/form/FormControl.js +0 -256
- package/form/FormItem.js +0 -192
- package/form/FormItemLabel.js +0 -48
- package/form/FormItemTip.js +0 -41
- package/form/FormLabelSymbol.js +0 -20
- package/form/FormList.js +0 -83
- package/form/FormProvider.js +0 -29
- package/form/constant.js +0 -9
- package/form/hook/useForm.js +0 -56
- package/form/hook/useFormContext.js +0 -34
- package/form/hook/useFormState.js +0 -31
- package/form/hook/useWatch.js +0 -34
- package/image/ImageFooter.d.ts +0 -13
- package/image/ImageFooter.js +0 -58
- package/image/ImagePreview.js +0 -418
- package/image/ImagePreviewArrow.js +0 -30
- package/image/ImagePreviewGroup.js +0 -112
- package/image/ImagePreviewToolbar.js +0 -61
- package/image/hook/useImageStatus.js +0 -18
- package/image/hook/useShowFooter.js +0 -13
- package/input-number/useSelectionRange.js +0 -25
- package/input-tag/constant.js +0 -6
- package/input-tag/hook/useComputeAutoWidthDelay.js +0 -12
- package/mask/constant.js +0 -10
- package/message/useMessage.d.ts +0 -4
- package/message/useMessage.js +0 -52
- package/notification/useNotification.d.ts +0 -4
- package/notification/useNotification.js +0 -53
- package/overflow-ellipsis/OverflowItem.js +0 -22
- package/progress/CircleProgress.js +0 -102
- package/progress/LineProgess.js +0 -74
- package/progress/StepProgress.js +0 -51
- package/rich-text/constant.js +0 -7
- package/rich-text/lib/blots/block.js +0 -115
- package/rich-text/lib/blots/break.js +0 -20
- package/rich-text/lib/blots/container.js +0 -8
- package/rich-text/lib/blots/cursor.js +0 -97
- package/rich-text/lib/blots/embed.js +0 -47
- package/rich-text/lib/blots/inline.js +0 -50
- package/rich-text/lib/blots/scroll.js +0 -249
- package/rich-text/lib/blots/text.js +0 -17
- package/rich-text/lib/core/composition.js +0 -38
- package/rich-text/lib/core/editor.js +0 -248
- package/rich-text/lib/core/emitter.d.ts +0 -38
- package/rich-text/lib/core/emitter.js +0 -47
- package/rich-text/lib/core/logger.js +0 -20
- package/rich-text/lib/core/module.js +0 -14
- package/rich-text/lib/core/rich.d.ts +0 -183
- package/rich-text/lib/core/rich.js +0 -369
- package/rich-text/lib/core/selection.js +0 -222
- package/rich-text/lib/core/theme.js +0 -32
- package/rich-text/lib/core/utils/createRegistryWithFormats.js +0 -29
- package/rich-text/lib/core/utils/scrollRectIntoView.js +0 -59
- package/rich-text/lib/delta/AttributeMap.js +0 -37
- package/rich-text/lib/delta/Op.js +0 -10
- package/rich-text/lib/delta/OpIterator.js +0 -45
- package/rich-text/lib/delta/index.js +0 -235
- package/rich-text/lib/diff/index.js +0 -285
- package/rich-text/lib/formats/align.js +0 -20
- package/rich-text/lib/formats/background.js +0 -11
- package/rich-text/lib/formats/blockquote.js +0 -16
- package/rich-text/lib/formats/bold.js +0 -25
- package/rich-text/lib/formats/code.js +0 -37
- package/rich-text/lib/formats/color.js +0 -16
- package/rich-text/lib/formats/direction.js +0 -15
- package/rich-text/lib/formats/emoji.js +0 -20
- package/rich-text/lib/formats/font.js +0 -51
- package/rich-text/lib/formats/formula.js +0 -35
- package/rich-text/lib/formats/header.js +0 -25
- package/rich-text/lib/formats/hr.js +0 -17
- package/rich-text/lib/formats/image.js +0 -46
- package/rich-text/lib/formats/indent.js +0 -38
- package/rich-text/lib/formats/italic.js +0 -16
- package/rich-text/lib/formats/lineHeight.js +0 -12
- package/rich-text/lib/formats/link.js +0 -47
- package/rich-text/lib/formats/list.js +0 -37
- package/rich-text/lib/formats/script.js +0 -23
- package/rich-text/lib/formats/size.js +0 -27
- package/rich-text/lib/formats/strike.js +0 -16
- package/rich-text/lib/formats/table.js +0 -134
- package/rich-text/lib/formats/underline.js +0 -16
- package/rich-text/lib/formats/video.js +0 -40
- package/rich-text/lib/index.js +0 -117
- package/rich-text/lib/modules/clipboard.js +0 -295
- package/rich-text/lib/modules/history.js +0 -119
- package/rich-text/lib/modules/image-resize/index.js +0 -80
- package/rich-text/lib/modules/image-resize/modules/Base.js +0 -14
- package/rich-text/lib/modules/image-resize/modules/DisplaySize.js +0 -41
- package/rich-text/lib/modules/image-resize/modules/Resize.js +0 -62
- package/rich-text/lib/modules/image-resize/options.js +0 -11
- package/rich-text/lib/modules/input.js +0 -54
- package/rich-text/lib/modules/keyboard.js +0 -423
- package/rich-text/lib/modules/normalizeExternalHTML/index.js +0 -12
- package/rich-text/lib/modules/normalizeExternalHTML/normalizers/googleDocs.js +0 -22
- package/rich-text/lib/modules/normalizeExternalHTML/normalizers/msWord.js +0 -39
- package/rich-text/lib/modules/table.js +0 -113
- package/rich-text/lib/modules/toolbar.js +0 -18
- package/rich-text/lib/modules/uiNode.js +0 -52
- package/rich-text/lib/modules/uploader.js +0 -46
- package/rich-text/lib/parchment/attributor/attributor.js +0 -30
- package/rich-text/lib/parchment/attributor/class.js +0 -26
- package/rich-text/lib/parchment/attributor/store.js +0 -44
- package/rich-text/lib/parchment/attributor/style.js +0 -25
- package/rich-text/lib/parchment/blot/abstract/container.js +0 -32
- package/rich-text/lib/parchment/blot/abstract/leaf.js +0 -25
- package/rich-text/lib/parchment/blot/abstract/parent.js +0 -156
- package/rich-text/lib/parchment/blot/abstract/shadow.js +0 -78
- package/rich-text/lib/parchment/blot/block.js +0 -71
- package/rich-text/lib/parchment/blot/embed.js +0 -18
- package/rich-text/lib/parchment/blot/inline.js +0 -73
- package/rich-text/lib/parchment/blot/scroll.js +0 -100
- package/rich-text/lib/parchment/blot/text.js +0 -56
- package/rich-text/lib/parchment/collection/linked-list.js +0 -86
- package/rich-text/lib/parchment/error.js +0 -10
- package/rich-text/lib/parchment/index.js +0 -36
- package/rich-text/lib/parchment/registry.js +0 -56
- package/rich-text/lib/parchment/scope.js +0 -8
- package/row-col/Col-.d.ts +0 -4
- package/row-col/Col-.js +0 -65
- package/slider/hook/useInterval.js +0 -94
- package/slider/hook/useLegalValue.js +0 -58
- package/splitter/SplitBar.js +0 -97
- package/steps/Step.js +0 -64
- package/table/constant.js +0 -36
- package/table/hook/useColumns.js +0 -115
- package/table/hook/useComponent.js +0 -27
- package/table/hook/useExpand.js +0 -33
- package/table/hook/useRowSelection.js +0 -73
- package/table/hook/useSorter.js +0 -51
- package/table/hook/useStickyClassNames.js +0 -25
- package/table/hook/useStickyOffsets.js +0 -28
- package/table/hook/useThResizable.js +0 -31
- package/tabs/hook/useDomSize.js +0 -23
- package/tabs/hook/useHeaderScroll.d.ts +0 -12
- package/tabs/hook/useHeaderScroll.js +0 -75
- package/tree-select/hook/useKeyCache.js +0 -49
- package/tree-select/hook/useStateValue.js +0 -70
- package/tree-select/hook/useTreeData.js +0 -15
- package/typography/useCssEllipsis.d.ts +0 -6
- package/typography/useCssEllipsis.js +0 -41
- package/typography/useEllipsis.d.ts +0 -21
- package/typography/useEllipsis.js +0 -149
- package/upload/constant.js +0 -11
- package/utils/constant.d.ts +0 -5
- package/utils/constant.js +0 -24
- package/virtual-list/constant.js +0 -7
- package/virtual-list/hook/useCacheChildrenNodes.js +0 -13
- package/virtual-list/hook/useComputeVirtualItemHeight.js +0 -17
- /package/{draw/constant.d.ts → affix/constants.d.ts} +0 -0
- /package/{rich-text/lib/modules/toolbar copy.d.ts → alert/constants.d.ts} +0 -0
- /package/{rich-text/lib/themes/base.d.ts → anchor/constants.d.ts} +0 -0
- /package/{rich-text/lib/themes/pqb.d.ts → animation/constants.d.ts} +0 -0
- /package/{rich-text/lib/ui/tooltip.d.ts → app/constants.d.ts} +0 -0
- /package/calendar/{hook → hooks}/useCellClassName.d.ts +0 -0
- /package/cascader/{hook → hooks}/useRefCurrent.d.ts +0 -0
- /package/date-picker/{hook → hooks}/useCellClassName.d.ts +0 -0
- /package/form/{FormItem.d.ts → Item.d.ts} +0 -0
- /package/form/{FormItemLabel.d.ts → ItemLabel.d.ts} +0 -0
- /package/form/{FormItemTip.d.ts → ItemTip.d.ts} +0 -0
- /package/form/{FormLabelSymbol.d.ts → LabelSymbol.d.ts} +0 -0
- /package/form/{FormList.d.ts → List.d.ts} +0 -0
- /package/form/{FormProvider.d.ts → Provider.d.ts} +0 -0
- /package/form/{constant.d.ts → constants.d.ts} +0 -0
- /package/form/{hook → hooks}/useForm.d.ts +0 -0
- /package/form/{hook → hooks}/useFormContext.d.ts +0 -0
- /package/form/{hook → hooks}/useFormState.d.ts +0 -0
- /package/form/{hook → hooks}/useWatch.d.ts +0 -0
- /package/image/{ImagePreview.d.ts → Preview.d.ts} +0 -0
- /package/image/{ImagePreviewArrow.d.ts → PreviewArrow.d.ts} +0 -0
- /package/image/{ImagePreviewGroup.d.ts → PreviewGroup.d.ts} +0 -0
- /package/image/{ImagePreviewToolbar.d.ts → PreviewToolbar.d.ts} +0 -0
- /package/image/{hook → hooks}/useImageStatus.d.ts +0 -0
- /package/image/{hook → hooks}/useShowFooter.d.ts +0 -0
- /package/input-number/{useSelectionRange.d.ts → hooks/useSelectionRange.d.ts} +0 -0
- /package/input-tag/{constant.d.ts → constants.d.ts} +0 -0
- /package/input-tag/{hook → hooks}/useComputeAutoWidthDelay.d.ts +0 -0
- /package/mask/{constant.d.ts → constants.d.ts} +0 -0
- /package/overflow-ellipsis/{OverflowItem.d.ts → Item.d.ts} +0 -0
- /package/progress/{CircleProgress.d.ts → Circle.d.ts} +0 -0
- /package/progress/{LineProgess.d.ts → Line.d.ts} +0 -0
- /package/progress/{StepProgress.d.ts → Step.d.ts} +0 -0
- /package/rich-text/{constant.d.ts → constants.d.ts} +0 -0
- /package/rich-text/{lib → libs}/LICENSE +0 -0
- /package/rich-text/{lib → libs}/blots/block.d.ts +0 -0
- /package/rich-text/{lib → libs}/blots/break.d.ts +0 -0
- /package/rich-text/{lib → libs}/blots/container.d.ts +0 -0
- /package/rich-text/{lib → libs}/blots/cursor.d.ts +0 -0
- /package/rich-text/{lib → libs}/blots/embed.d.ts +0 -0
- /package/rich-text/{lib → libs}/blots/inline.d.ts +0 -0
- /package/rich-text/{lib → libs}/blots/scroll.d.ts +0 -0
- /package/rich-text/{lib → libs}/blots/text.d.ts +0 -0
- /package/rich-text/{lib → libs}/core/composition.d.ts +0 -0
- /package/rich-text/{lib → libs}/core/editor.d.ts +0 -0
- /package/rich-text/{lib → libs}/core/logger.d.ts +0 -0
- /package/rich-text/{lib → libs}/core/module.d.ts +0 -0
- /package/rich-text/{lib → libs}/core/selection.d.ts +0 -0
- /package/rich-text/{lib → libs}/core/theme.d.ts +0 -0
- /package/rich-text/{lib → libs}/core/utils/createRegistryWithFormats.d.ts +0 -0
- /package/rich-text/{lib → libs}/core/utils/scrollRectIntoView.d.ts +0 -0
- /package/rich-text/{lib → libs}/delta/AttributeMap.d.ts +0 -0
- /package/rich-text/{lib → libs}/delta/LICENSE +0 -0
- /package/rich-text/{lib → libs}/delta/Op.d.ts +0 -0
- /package/rich-text/{lib → libs}/delta/OpIterator.d.ts +0 -0
- /package/rich-text/{lib → libs}/delta/index.d.ts +0 -0
- /package/rich-text/{lib → libs}/diff/index.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/align.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/background.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/blockquote.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/bold.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/code.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/color.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/direction.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/emoji.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/font.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/formula.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/header.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/hr.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/image.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/indent.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/italic.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/liOl.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/liUl.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/lineHeight.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/link.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/list.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/script.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/size.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/strike.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/table.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/underline.d.ts +0 -0
- /package/rich-text/{lib → libs}/formats/video.d.ts +0 -0
- /package/rich-text/{lib → libs}/index.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/clipboard.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/history.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/image-resize/index.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/image-resize/modules/Base.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/image-resize/modules/DisplaySize.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/image-resize/modules/Resize.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/image-resize/options.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/input.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/keyboard.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/normalizeExternalHTML/index.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/normalizeExternalHTML/normalizers/googleDocs.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/normalizeExternalHTML/normalizers/msWord.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/table.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/tableEmbed.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/toolbar.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/uiNode.d.ts +0 -0
- /package/rich-text/{lib → libs}/modules/uploader.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/LICENSE +0 -0
- /package/rich-text/{lib → libs}/parchment/attributor/attributor.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/attributor/class.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/attributor/store.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/attributor/style.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/blot/abstract/blot.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/blot/abstract/container.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/blot/abstract/leaf.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/blot/abstract/parent.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/blot/abstract/shadow.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/blot/block.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/blot/embed.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/blot/inline.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/blot/scroll.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/blot/text.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/collection/linked-list.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/collection/linked-node.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/error.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/index.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/registry.d.ts +0 -0
- /package/rich-text/{lib → libs}/parchment/scope.d.ts +0 -0
- /package/slider/{hook → hooks}/useInterval.d.ts +0 -0
- /package/slider/{hook → hooks}/useLegalValue.d.ts +0 -0
- /package/splitter/{SplitBar.d.ts → Bar.d.ts} +0 -0
- /package/steps/{Step.d.ts → Item.d.ts} +0 -0
- /package/table/{constant.d.ts → constants.d.ts} +0 -0
- /package/table/{hook → hooks}/useColumns.d.ts +0 -0
- /package/table/{hook → hooks}/useComponent.d.ts +0 -0
- /package/table/{hook → hooks}/useExpand.d.ts +0 -0
- /package/table/{hook → hooks}/useRowSelection.d.ts +0 -0
- /package/table/{hook → hooks}/useSorter.d.ts +0 -0
- /package/table/{hook → hooks}/useStickyClassNames.d.ts +0 -0
- /package/table/{hook → hooks}/useStickyOffsets.d.ts +0 -0
- /package/table/{hook → hooks}/useThResizable.d.ts +0 -0
- /package/tabs/{hook → hooks}/useDomSize.d.ts +0 -0
- /package/tree-select/{hook → hooks}/useKeyCache.d.ts +0 -0
- /package/tree-select/{hook → hooks}/useStateValue.d.ts +0 -0
- /package/tree-select/{hook → hooks}/useTreeData.d.ts +0 -0
- /package/upload/{constant.d.ts → constants.d.ts} +0 -0
- /package/virtual-list/{constant.d.ts → constants.d.ts} +0 -0
- /package/virtual-list/{hook → hooks}/useCacheChildrenNodes.d.ts +0 -0
- /package/virtual-list/{hook → hooks}/useComputeVirtualItemHeight.d.ts +0 -0
|
@@ -0,0 +1,1445 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-25 08:58:50 星期四 山东省济南市 */
|
|
2
|
+
import { __exportAll as e } from "../../../.virtual/_rolldown/runtime.js";
|
|
3
|
+
//#region components/pc/draw/libs/pako/index.ts
|
|
4
|
+
var t = /* @__PURE__ */ e({
|
|
5
|
+
Deflate: () => Gr,
|
|
6
|
+
Inflate: () => Yr,
|
|
7
|
+
constants: () => $r,
|
|
8
|
+
default: () => ei,
|
|
9
|
+
deflate: () => Kr,
|
|
10
|
+
deflateRaw: () => qr,
|
|
11
|
+
gzip: () => Jr,
|
|
12
|
+
inflate: () => Xr,
|
|
13
|
+
inflateRaw: () => Zr,
|
|
14
|
+
pako: () => ei,
|
|
15
|
+
ungzip: () => Qr
|
|
16
|
+
}), n = 4, r = 0, i = 1, a = 2;
|
|
17
|
+
function o(e) {
|
|
18
|
+
let t = e.length;
|
|
19
|
+
for (; --t >= 0;) e[t] = 0;
|
|
20
|
+
}
|
|
21
|
+
var s = 0, c = 1, l = 2, u = 29, d = 256, f = 286, p = 30, m = 19, h = 573, g = 15, _ = 16, v = 7, y = 256, b = 16, x = 17, S = 18, C = new Uint8Array([
|
|
22
|
+
0,
|
|
23
|
+
0,
|
|
24
|
+
0,
|
|
25
|
+
0,
|
|
26
|
+
0,
|
|
27
|
+
0,
|
|
28
|
+
0,
|
|
29
|
+
0,
|
|
30
|
+
1,
|
|
31
|
+
1,
|
|
32
|
+
1,
|
|
33
|
+
1,
|
|
34
|
+
2,
|
|
35
|
+
2,
|
|
36
|
+
2,
|
|
37
|
+
2,
|
|
38
|
+
3,
|
|
39
|
+
3,
|
|
40
|
+
3,
|
|
41
|
+
3,
|
|
42
|
+
4,
|
|
43
|
+
4,
|
|
44
|
+
4,
|
|
45
|
+
4,
|
|
46
|
+
5,
|
|
47
|
+
5,
|
|
48
|
+
5,
|
|
49
|
+
5,
|
|
50
|
+
0
|
|
51
|
+
]), w = new Uint8Array([
|
|
52
|
+
0,
|
|
53
|
+
0,
|
|
54
|
+
0,
|
|
55
|
+
0,
|
|
56
|
+
1,
|
|
57
|
+
1,
|
|
58
|
+
2,
|
|
59
|
+
2,
|
|
60
|
+
3,
|
|
61
|
+
3,
|
|
62
|
+
4,
|
|
63
|
+
4,
|
|
64
|
+
5,
|
|
65
|
+
5,
|
|
66
|
+
6,
|
|
67
|
+
6,
|
|
68
|
+
7,
|
|
69
|
+
7,
|
|
70
|
+
8,
|
|
71
|
+
8,
|
|
72
|
+
9,
|
|
73
|
+
9,
|
|
74
|
+
10,
|
|
75
|
+
10,
|
|
76
|
+
11,
|
|
77
|
+
11,
|
|
78
|
+
12,
|
|
79
|
+
12,
|
|
80
|
+
13,
|
|
81
|
+
13
|
|
82
|
+
]), T = new Uint8Array([
|
|
83
|
+
0,
|
|
84
|
+
0,
|
|
85
|
+
0,
|
|
86
|
+
0,
|
|
87
|
+
0,
|
|
88
|
+
0,
|
|
89
|
+
0,
|
|
90
|
+
0,
|
|
91
|
+
0,
|
|
92
|
+
0,
|
|
93
|
+
0,
|
|
94
|
+
0,
|
|
95
|
+
0,
|
|
96
|
+
0,
|
|
97
|
+
0,
|
|
98
|
+
0,
|
|
99
|
+
2,
|
|
100
|
+
3,
|
|
101
|
+
7
|
|
102
|
+
]), E = new Uint8Array([
|
|
103
|
+
16,
|
|
104
|
+
17,
|
|
105
|
+
18,
|
|
106
|
+
0,
|
|
107
|
+
8,
|
|
108
|
+
7,
|
|
109
|
+
9,
|
|
110
|
+
6,
|
|
111
|
+
10,
|
|
112
|
+
5,
|
|
113
|
+
11,
|
|
114
|
+
4,
|
|
115
|
+
12,
|
|
116
|
+
3,
|
|
117
|
+
13,
|
|
118
|
+
2,
|
|
119
|
+
14,
|
|
120
|
+
1,
|
|
121
|
+
15
|
|
122
|
+
]), D = 512, O = Array(288 * 2);
|
|
123
|
+
o(O);
|
|
124
|
+
var k = Array(p * 2);
|
|
125
|
+
o(k);
|
|
126
|
+
var A = Array(D);
|
|
127
|
+
o(A);
|
|
128
|
+
var ee = Array(256);
|
|
129
|
+
o(ee);
|
|
130
|
+
var te = Array(u);
|
|
131
|
+
o(te);
|
|
132
|
+
var j = Array(p);
|
|
133
|
+
o(j);
|
|
134
|
+
function ne(e, t, n, r, i) {
|
|
135
|
+
this.static_tree = e, this.extra_bits = t, this.extra_base = n, this.elems = r, this.max_length = i, this.has_stree = e && e.length;
|
|
136
|
+
}
|
|
137
|
+
var re, ie, ae;
|
|
138
|
+
function oe(e, t) {
|
|
139
|
+
this.dyn_tree = e, this.max_code = 0, this.stat_desc = t;
|
|
140
|
+
}
|
|
141
|
+
var se = (e) => e < 256 ? A[e] : A[256 + (e >>> 7)], ce = (e, t) => {
|
|
142
|
+
e.pending_buf[e.pending++] = t & 255, e.pending_buf[e.pending++] = t >>> 8 & 255;
|
|
143
|
+
}, M = (e, t, n) => {
|
|
144
|
+
e.bi_valid > _ - n ? (e.bi_buf |= t << e.bi_valid & 65535, ce(e, e.bi_buf), e.bi_buf = t >> _ - e.bi_valid, e.bi_valid += n - _) : (e.bi_buf |= t << e.bi_valid & 65535, e.bi_valid += n);
|
|
145
|
+
}, N = (e, t, n) => {
|
|
146
|
+
M(e, n[t * 2], n[t * 2 + 1]);
|
|
147
|
+
}, le = (e, t) => {
|
|
148
|
+
let n = 0;
|
|
149
|
+
do
|
|
150
|
+
n |= e & 1, e >>>= 1, n <<= 1;
|
|
151
|
+
while (--t > 0);
|
|
152
|
+
return n >>> 1;
|
|
153
|
+
}, ue = (e) => {
|
|
154
|
+
e.bi_valid === 16 ? (ce(e, e.bi_buf), e.bi_buf = 0, e.bi_valid = 0) : e.bi_valid >= 8 && (e.pending_buf[e.pending++] = e.bi_buf & 255, e.bi_buf >>= 8, e.bi_valid -= 8);
|
|
155
|
+
}, de = (e, t) => {
|
|
156
|
+
let n = t.dyn_tree, r = t.max_code, i = t.stat_desc.static_tree, a = t.stat_desc.has_stree, o = t.stat_desc.extra_bits, s = t.stat_desc.extra_base, c = t.stat_desc.max_length, l, u, d, f, p, m, _ = 0;
|
|
157
|
+
for (f = 0; f <= g; f++) e.bl_count[f] = 0;
|
|
158
|
+
for (n[e.heap[e.heap_max] * 2 + 1] = 0, l = e.heap_max + 1; l < h; l++) u = e.heap[l], f = n[n[u * 2 + 1] * 2 + 1] + 1, f > c && (f = c, _++), n[u * 2 + 1] = f, !(u > r) && (e.bl_count[f]++, p = 0, u >= s && (p = o[u - s]), m = n[u * 2], e.opt_len += m * (f + p), a && (e.static_len += m * (i[u * 2 + 1] + p)));
|
|
159
|
+
if (_ !== 0) {
|
|
160
|
+
do {
|
|
161
|
+
for (f = c - 1; e.bl_count[f] === 0;) f--;
|
|
162
|
+
e.bl_count[f]--, e.bl_count[f + 1] += 2, e.bl_count[c]--, _ -= 2;
|
|
163
|
+
} while (_ > 0);
|
|
164
|
+
for (f = c; f !== 0; f--) for (u = e.bl_count[f]; u !== 0;) d = e.heap[--l], !(d > r) && (n[d * 2 + 1] !== f && (e.opt_len += (f - n[d * 2 + 1]) * n[d * 2], n[d * 2 + 1] = f), u--);
|
|
165
|
+
}
|
|
166
|
+
}, fe = (e, t, n) => {
|
|
167
|
+
let r = Array(16), i = 0, a, o;
|
|
168
|
+
for (a = 1; a <= g; a++) r[a] = i = i + n[a - 1] << 1;
|
|
169
|
+
for (o = 0; o <= t; o++) {
|
|
170
|
+
let t = e[o * 2 + 1];
|
|
171
|
+
t !== 0 && (e[o * 2] = le(r[t]++, t));
|
|
172
|
+
}
|
|
173
|
+
}, pe = () => {
|
|
174
|
+
let e, t, n, r, i, a = Array(16);
|
|
175
|
+
for (n = 0, r = 0; r < u - 1; r++) for (te[r] = n, e = 0; e < 1 << C[r]; e++) ee[n++] = r;
|
|
176
|
+
for (ee[n - 1] = r, i = 0, r = 0; r < 16; r++) for (j[r] = i, e = 0; e < 1 << w[r]; e++) A[i++] = r;
|
|
177
|
+
for (i >>= 7; r < p; r++) for (j[r] = i << 7, e = 0; e < 1 << w[r] - 7; e++) A[256 + i++] = r;
|
|
178
|
+
for (t = 0; t <= g; t++) a[t] = 0;
|
|
179
|
+
for (e = 0; e <= 143;) O[e * 2 + 1] = 8, e++, a[8]++;
|
|
180
|
+
for (; e <= 255;) O[e * 2 + 1] = 9, e++, a[9]++;
|
|
181
|
+
for (; e <= 279;) O[e * 2 + 1] = 7, e++, a[7]++;
|
|
182
|
+
for (; e <= 287;) O[e * 2 + 1] = 8, e++, a[8]++;
|
|
183
|
+
for (fe(O, 287, a), e = 0; e < p; e++) k[e * 2 + 1] = 5, k[e * 2] = le(e, 5);
|
|
184
|
+
re = new ne(O, C, 257, f, g), ie = new ne(k, w, 0, p, g), ae = new ne([], T, 0, m, v);
|
|
185
|
+
}, me = (e) => {
|
|
186
|
+
let t;
|
|
187
|
+
for (t = 0; t < f; t++) e.dyn_ltree[t * 2] = 0;
|
|
188
|
+
for (t = 0; t < p; t++) e.dyn_dtree[t * 2] = 0;
|
|
189
|
+
for (t = 0; t < m; t++) e.bl_tree[t * 2] = 0;
|
|
190
|
+
e.dyn_ltree[y * 2] = 1, e.opt_len = e.static_len = 0, e.last_lit = e.matches = 0;
|
|
191
|
+
}, he = (e) => {
|
|
192
|
+
e.bi_valid > 8 ? ce(e, e.bi_buf) : e.bi_valid > 0 && (e.pending_buf[e.pending++] = e.bi_buf), e.bi_buf = 0, e.bi_valid = 0;
|
|
193
|
+
}, ge = (e, t, n, r) => {
|
|
194
|
+
he(e), r && (ce(e, n), ce(e, ~n)), e.pending_buf.set(e.window.subarray(t, t + n), e.pending), e.pending += n;
|
|
195
|
+
}, _e = (e, t, n, r) => {
|
|
196
|
+
let i = t * 2, a = n * 2;
|
|
197
|
+
return e[i] < e[a] || e[i] === e[a] && r[t] <= r[n];
|
|
198
|
+
}, ve = (e, t, n) => {
|
|
199
|
+
let r = e.heap[n], i = n << 1;
|
|
200
|
+
for (; i <= e.heap_len && (i < e.heap_len && _e(t, e.heap[i + 1], e.heap[i], e.depth) && i++, !_e(t, r, e.heap[i], e.depth));) e.heap[n] = e.heap[i], n = i, i <<= 1;
|
|
201
|
+
e.heap[n] = r;
|
|
202
|
+
}, ye = (e, t, n) => {
|
|
203
|
+
let r, i, a = 0, o, s;
|
|
204
|
+
if (e.last_lit !== 0) do
|
|
205
|
+
r = e.pending_buf[e.d_buf + a * 2] << 8 | e.pending_buf[e.d_buf + a * 2 + 1], i = e.pending_buf[e.l_buf + a], a++, r === 0 ? N(e, i, t) : (o = ee[i], N(e, o + d + 1, t), s = C[o], s !== 0 && (i -= te[o], M(e, i, s)), r--, o = se(r), N(e, o, n), s = w[o], s !== 0 && (r -= j[o], M(e, r, s)));
|
|
206
|
+
while (a < e.last_lit);
|
|
207
|
+
N(e, y, t);
|
|
208
|
+
}, be = (e, t) => {
|
|
209
|
+
let n = t.dyn_tree, r = t.stat_desc.static_tree, i = t.stat_desc.has_stree, a = t.stat_desc.elems, o, s, c = -1, l;
|
|
210
|
+
for (e.heap_len = 0, e.heap_max = h, o = 0; o < a; o++) n[o * 2] === 0 ? n[o * 2 + 1] = 0 : (e.heap[++e.heap_len] = c = o, e.depth[o] = 0);
|
|
211
|
+
for (; e.heap_len < 2;) l = e.heap[++e.heap_len] = c < 2 ? ++c : 0, n[l * 2] = 1, e.depth[l] = 0, e.opt_len--, i && (e.static_len -= r[l * 2 + 1]);
|
|
212
|
+
for (t.max_code = c, o = e.heap_len >> 1; o >= 1; o--) ve(e, n, o);
|
|
213
|
+
l = a;
|
|
214
|
+
do
|
|
215
|
+
o = e.heap[1], e.heap[1] = e.heap[e.heap_len--], ve(e, n, 1), s = e.heap[1], e.heap[--e.heap_max] = o, e.heap[--e.heap_max] = s, n[l * 2] = n[o * 2] + n[s * 2], e.depth[l] = (e.depth[o] >= e.depth[s] ? e.depth[o] : e.depth[s]) + 1, n[o * 2 + 1] = n[s * 2 + 1] = l, e.heap[1] = l++, ve(e, n, 1);
|
|
216
|
+
while (e.heap_len >= 2);
|
|
217
|
+
e.heap[--e.heap_max] = e.heap[1], de(e, t), fe(n, c, e.bl_count);
|
|
218
|
+
}, xe = (e, t, n) => {
|
|
219
|
+
let r, i = -1, a, o = t[1], s = 0, c = 7, l = 4;
|
|
220
|
+
for (o === 0 && (c = 138, l = 3), t[(n + 1) * 2 + 1] = 65535, r = 0; r <= n; r++) a = o, o = t[(r + 1) * 2 + 1], !(++s < c && a === o) && (s < l ? e.bl_tree[a * 2] += s : a === 0 ? s <= 10 ? e.bl_tree[x * 2]++ : e.bl_tree[S * 2]++ : (a !== i && e.bl_tree[a * 2]++, e.bl_tree[b * 2]++), s = 0, i = a, o === 0 ? (c = 138, l = 3) : a === o ? (c = 6, l = 3) : (c = 7, l = 4));
|
|
221
|
+
}, Se = (e, t, n) => {
|
|
222
|
+
let r, i = -1, a, o = t[1], s = 0, c = 7, l = 4;
|
|
223
|
+
for (o === 0 && (c = 138, l = 3), r = 0; r <= n; r++) if (a = o, o = t[(r + 1) * 2 + 1], !(++s < c && a === o)) {
|
|
224
|
+
if (s < l) do
|
|
225
|
+
N(e, a, e.bl_tree);
|
|
226
|
+
while (--s !== 0);
|
|
227
|
+
else a === 0 ? s <= 10 ? (N(e, x, e.bl_tree), M(e, s - 3, 3)) : (N(e, S, e.bl_tree), M(e, s - 11, 7)) : (a !== i && (N(e, a, e.bl_tree), s--), N(e, b, e.bl_tree), M(e, s - 3, 2));
|
|
228
|
+
s = 0, i = a, o === 0 ? (c = 138, l = 3) : a === o ? (c = 6, l = 3) : (c = 7, l = 4);
|
|
229
|
+
}
|
|
230
|
+
}, Ce = (e) => {
|
|
231
|
+
let t;
|
|
232
|
+
for (xe(e, e.dyn_ltree, e.l_desc.max_code), xe(e, e.dyn_dtree, e.d_desc.max_code), be(e, e.bl_desc), t = m - 1; t >= 3 && e.bl_tree[E[t] * 2 + 1] === 0; t--);
|
|
233
|
+
return e.opt_len += 3 * (t + 1) + 5 + 5 + 4, t;
|
|
234
|
+
}, we = (e, t, n, r) => {
|
|
235
|
+
let i;
|
|
236
|
+
for (M(e, t - 257, 5), M(e, n - 1, 5), M(e, r - 4, 4), i = 0; i < r; i++) M(e, e.bl_tree[E[i] * 2 + 1], 3);
|
|
237
|
+
Se(e, e.dyn_ltree, t - 1), Se(e, e.dyn_dtree, n - 1);
|
|
238
|
+
}, Te = (e) => {
|
|
239
|
+
let t = 4093624447, n;
|
|
240
|
+
for (n = 0; n <= 31; n++, t >>>= 1) if (t & 1 && e.dyn_ltree[n * 2] !== 0) return r;
|
|
241
|
+
if (e.dyn_ltree[18] !== 0 || e.dyn_ltree[20] !== 0 || e.dyn_ltree[26] !== 0) return i;
|
|
242
|
+
for (n = 32; n < d; n++) if (e.dyn_ltree[n * 2] !== 0) return i;
|
|
243
|
+
return r;
|
|
244
|
+
}, Ee = !1, De = (e) => {
|
|
245
|
+
Ee ||= (pe(), !0), e.l_desc = new oe(e.dyn_ltree, re), e.d_desc = new oe(e.dyn_dtree, ie), e.bl_desc = new oe(e.bl_tree, ae), e.bi_buf = 0, e.bi_valid = 0, me(e);
|
|
246
|
+
}, Oe = (e, t, n, r) => {
|
|
247
|
+
M(e, (s << 1) + +!!r, 3), ge(e, t, n, !0);
|
|
248
|
+
}, ke = {
|
|
249
|
+
_tr_init: De,
|
|
250
|
+
_tr_stored_block: Oe,
|
|
251
|
+
_tr_flush_block: (e, t, r, i) => {
|
|
252
|
+
let o, s, u = 0;
|
|
253
|
+
e.level > 0 ? (e.strm.data_type === a && (e.strm.data_type = Te(e)), be(e, e.l_desc), be(e, e.d_desc), u = Ce(e), o = e.opt_len + 3 + 7 >>> 3, s = e.static_len + 3 + 7 >>> 3, s <= o && (o = s)) : o = s = r + 5, r + 4 <= o && t !== -1 ? Oe(e, t, r, i) : e.strategy === n || s === o ? (M(e, (c << 1) + +!!i, 3), ye(e, O, k)) : (M(e, (l << 1) + +!!i, 3), we(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, u + 1), ye(e, e.dyn_ltree, e.dyn_dtree)), me(e), i && he(e);
|
|
254
|
+
},
|
|
255
|
+
_tr_tally: (e, t, n) => (e.pending_buf[e.d_buf + e.last_lit * 2] = t >>> 8 & 255, e.pending_buf[e.d_buf + e.last_lit * 2 + 1] = t & 255, e.pending_buf[e.l_buf + e.last_lit] = n & 255, e.last_lit++, t === 0 ? e.dyn_ltree[n * 2]++ : (e.matches++, t--, e.dyn_ltree[(ee[n] + d + 1) * 2]++, e.dyn_dtree[se(t) * 2]++), e.last_lit === e.lit_bufsize - 1),
|
|
256
|
+
_tr_align: (e) => {
|
|
257
|
+
M(e, c << 1, 3), N(e, y, O), ue(e);
|
|
258
|
+
}
|
|
259
|
+
}, Ae = (e, t, n, r) => {
|
|
260
|
+
let i = e & 65535 | 0, a = e >>> 16 & 65535 | 0, o = 0;
|
|
261
|
+
for (; n !== 0;) {
|
|
262
|
+
o = n > 2e3 ? 2e3 : n, n -= o;
|
|
263
|
+
do
|
|
264
|
+
i = i + t[r++] | 0, a = a + i | 0;
|
|
265
|
+
while (--o);
|
|
266
|
+
i %= 65521, a %= 65521;
|
|
267
|
+
}
|
|
268
|
+
return i | a << 16 | 0;
|
|
269
|
+
}, je = new Uint32Array((() => {
|
|
270
|
+
let e, t = [];
|
|
271
|
+
for (let n = 0; n < 256; n++) {
|
|
272
|
+
e = n;
|
|
273
|
+
for (let t = 0; t < 8; t++) e = e & 1 ? 3988292384 ^ e >>> 1 : e >>> 1;
|
|
274
|
+
t[n] = e;
|
|
275
|
+
}
|
|
276
|
+
return t;
|
|
277
|
+
})()), P = (e, t, n, r) => {
|
|
278
|
+
let i = je, a = r + n;
|
|
279
|
+
e ^= -1;
|
|
280
|
+
for (let n = r; n < a; n++) e = e >>> 8 ^ i[(e ^ t[n]) & 255];
|
|
281
|
+
return e ^ -1;
|
|
282
|
+
}, Me = {
|
|
283
|
+
2: "need dictionary",
|
|
284
|
+
1: "stream end",
|
|
285
|
+
0: "",
|
|
286
|
+
"-1": "file error",
|
|
287
|
+
"-2": "stream error",
|
|
288
|
+
"-3": "data error",
|
|
289
|
+
"-4": "insufficient memory",
|
|
290
|
+
"-5": "buffer error",
|
|
291
|
+
"-6": "incompatible version"
|
|
292
|
+
}, Ne = {
|
|
293
|
+
Z_NO_FLUSH: 0,
|
|
294
|
+
Z_PARTIAL_FLUSH: 1,
|
|
295
|
+
Z_SYNC_FLUSH: 2,
|
|
296
|
+
Z_FULL_FLUSH: 3,
|
|
297
|
+
Z_FINISH: 4,
|
|
298
|
+
Z_BLOCK: 5,
|
|
299
|
+
Z_TREES: 6,
|
|
300
|
+
Z_OK: 0,
|
|
301
|
+
Z_STREAM_END: 1,
|
|
302
|
+
Z_NEED_DICT: 2,
|
|
303
|
+
Z_ERRNO: -1,
|
|
304
|
+
Z_STREAM_ERROR: -2,
|
|
305
|
+
Z_DATA_ERROR: -3,
|
|
306
|
+
Z_MEM_ERROR: -4,
|
|
307
|
+
Z_BUF_ERROR: -5,
|
|
308
|
+
Z_NO_COMPRESSION: 0,
|
|
309
|
+
Z_BEST_SPEED: 1,
|
|
310
|
+
Z_BEST_COMPRESSION: 9,
|
|
311
|
+
Z_DEFAULT_COMPRESSION: -1,
|
|
312
|
+
Z_FILTERED: 1,
|
|
313
|
+
Z_HUFFMAN_ONLY: 2,
|
|
314
|
+
Z_RLE: 3,
|
|
315
|
+
Z_FIXED: 4,
|
|
316
|
+
Z_DEFAULT_STRATEGY: 0,
|
|
317
|
+
Z_BINARY: 0,
|
|
318
|
+
Z_TEXT: 1,
|
|
319
|
+
Z_UNKNOWN: 2,
|
|
320
|
+
Z_DEFLATED: 8
|
|
321
|
+
}, { _tr_init: Pe, _tr_stored_block: Fe, _tr_flush_block: Ie, _tr_tally: F, _tr_align: Le } = ke, { Z_NO_FLUSH: Re, Z_PARTIAL_FLUSH: ze, Z_FULL_FLUSH: Be, Z_FINISH: I, Z_BLOCK: Ve, Z_OK: L, Z_STREAM_END: He, Z_STREAM_ERROR: R, Z_DATA_ERROR: Ue, Z_BUF_ERROR: We, Z_DEFAULT_COMPRESSION: Ge, Z_FILTERED: Ke, Z_HUFFMAN_ONLY: qe, Z_RLE: Je, Z_FIXED: Ye, Z_DEFAULT_STRATEGY: Xe, Z_UNKNOWN: Ze, Z_DEFLATED: Qe } = Ne, $e = 9, et = 15, tt = 8, nt = 573, z = 3, B = 258, V = 262, rt = 32, it = 42, at = 69, ot = 73, st = 91, ct = 103, lt = 113, ut = 666, H = 1, dt = 2, ft = 3, pt = 4, mt = 3, U = (e, t) => (e.msg = Me[t], t), ht = (e) => (e << 1) - (e > 4 ? 9 : 0), W = (e) => {
|
|
322
|
+
let t = e.length;
|
|
323
|
+
for (; --t >= 0;) e[t] = 0;
|
|
324
|
+
}, G = (e, t, n) => (t << e.hash_shift ^ n) & e.hash_mask, K = (e) => {
|
|
325
|
+
let t = e.state, n = t.pending;
|
|
326
|
+
n > e.avail_out && (n = e.avail_out), n !== 0 && (e.output.set(t.pending_buf.subarray(t.pending_out, t.pending_out + n), e.next_out), e.next_out += n, t.pending_out += n, e.total_out += n, e.avail_out -= n, t.pending -= n, t.pending === 0 && (t.pending_out = 0));
|
|
327
|
+
}, q = (e, t) => {
|
|
328
|
+
Ie(e, e.block_start >= 0 ? e.block_start : -1, e.strstart - e.block_start, t), e.block_start = e.strstart, K(e.strm);
|
|
329
|
+
}, J = (e, t) => {
|
|
330
|
+
e.pending_buf[e.pending++] = t;
|
|
331
|
+
}, gt = (e, t) => {
|
|
332
|
+
e.pending_buf[e.pending++] = t >>> 8 & 255, e.pending_buf[e.pending++] = t & 255;
|
|
333
|
+
}, _t = (e, t, n, r) => {
|
|
334
|
+
let i = e.avail_in;
|
|
335
|
+
return i > r && (i = r), i === 0 ? 0 : (e.avail_in -= i, t.set(e.input.subarray(e.next_in, e.next_in + i), n), e.state.wrap === 1 ? e.adler = Ae(e.adler, t, i, n) : e.state.wrap === 2 && (e.adler = P(e.adler, t, i, n)), e.next_in += i, e.total_in += i, i);
|
|
336
|
+
}, vt = (e, t) => {
|
|
337
|
+
let n = e.max_chain_length, r = e.strstart, i, a, o = e.prev_length, s = e.nice_match, c = e.strstart > e.w_size - V ? e.strstart - (e.w_size - V) : 0, l = e.window, u = e.w_mask, d = e.prev, f = e.strstart + B, p = l[r + o - 1], m = l[r + o];
|
|
338
|
+
e.prev_length >= e.good_match && (n >>= 2), s > e.lookahead && (s = e.lookahead);
|
|
339
|
+
do {
|
|
340
|
+
if (i = t, l[i + o] !== m || l[i + o - 1] !== p || l[i] !== l[r] || l[++i] !== l[r + 1]) continue;
|
|
341
|
+
r += 2, i++;
|
|
342
|
+
do ;
|
|
343
|
+
while (l[++r] === l[++i] && l[++r] === l[++i] && l[++r] === l[++i] && l[++r] === l[++i] && l[++r] === l[++i] && l[++r] === l[++i] && l[++r] === l[++i] && l[++r] === l[++i] && r < f);
|
|
344
|
+
if (a = B - (f - r), r = f - B, a > o) {
|
|
345
|
+
if (e.match_start = t, o = a, a >= s) break;
|
|
346
|
+
p = l[r + o - 1], m = l[r + o];
|
|
347
|
+
}
|
|
348
|
+
} while ((t = d[t & u]) > c && --n !== 0);
|
|
349
|
+
return o <= e.lookahead ? o : e.lookahead;
|
|
350
|
+
}, yt = (e) => {
|
|
351
|
+
let t = e.w_size, n, r, i, a, o;
|
|
352
|
+
do {
|
|
353
|
+
if (a = e.window_size - e.lookahead - e.strstart, e.strstart >= t + (t - V)) {
|
|
354
|
+
e.window.set(e.window.subarray(t, t + t), 0), e.match_start -= t, e.strstart -= t, e.block_start -= t, r = e.hash_size, n = r;
|
|
355
|
+
do
|
|
356
|
+
i = e.head[--n], e.head[n] = i >= t ? i - t : 0;
|
|
357
|
+
while (--r);
|
|
358
|
+
r = t, n = r;
|
|
359
|
+
do
|
|
360
|
+
i = e.prev[--n], e.prev[n] = i >= t ? i - t : 0;
|
|
361
|
+
while (--r);
|
|
362
|
+
a += t;
|
|
363
|
+
}
|
|
364
|
+
if (e.strm.avail_in === 0) break;
|
|
365
|
+
if (r = _t(e.strm, e.window, e.strstart + e.lookahead, a), e.lookahead += r, e.lookahead + e.insert >= z) for (o = e.strstart - e.insert, e.ins_h = e.window[o], e.ins_h = G(e, e.ins_h, e.window[o + 1]); e.insert && (e.ins_h = G(e, e.ins_h, e.window[o + z - 1]), e.prev[o & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = o, o++, e.insert--, !(e.lookahead + e.insert < z)););
|
|
366
|
+
} while (e.lookahead < V && e.strm.avail_in !== 0);
|
|
367
|
+
}, bt = (e, t) => {
|
|
368
|
+
let n = 65535;
|
|
369
|
+
for (n > e.pending_buf_size - 5 && (n = e.pending_buf_size - 5);;) {
|
|
370
|
+
if (e.lookahead <= 1) {
|
|
371
|
+
if (yt(e), e.lookahead === 0 && t === Re) return H;
|
|
372
|
+
if (e.lookahead === 0) break;
|
|
373
|
+
}
|
|
374
|
+
e.strstart += e.lookahead, e.lookahead = 0;
|
|
375
|
+
let r = e.block_start + n;
|
|
376
|
+
if ((e.strstart === 0 || e.strstart >= r) && (e.lookahead = e.strstart - r, e.strstart = r, q(e, !1), e.strm.avail_out === 0) || e.strstart - e.block_start >= e.w_size - V && (q(e, !1), e.strm.avail_out === 0)) return H;
|
|
377
|
+
}
|
|
378
|
+
return e.insert = 0, t === I ? (q(e, !0), e.strm.avail_out === 0 ? ft : pt) : (e.strstart > e.block_start && (q(e, !1), e.strm.avail_out), H);
|
|
379
|
+
}, xt = (e, t) => {
|
|
380
|
+
let n, r;
|
|
381
|
+
for (;;) {
|
|
382
|
+
if (e.lookahead < V) {
|
|
383
|
+
if (yt(e), e.lookahead < V && t === Re) return H;
|
|
384
|
+
if (e.lookahead === 0) break;
|
|
385
|
+
}
|
|
386
|
+
if (n = 0, e.lookahead >= z && (e.ins_h = G(e, e.ins_h, e.window[e.strstart + z - 1]), n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), n !== 0 && e.strstart - n <= e.w_size - V && (e.match_length = vt(e, n)), e.match_length >= z) if (r = F(e, e.strstart - e.match_start, e.match_length - z), e.lookahead -= e.match_length, e.match_length <= e.max_lazy_match && e.lookahead >= z) {
|
|
387
|
+
e.match_length--;
|
|
388
|
+
do
|
|
389
|
+
e.strstart++, e.ins_h = G(e, e.ins_h, e.window[e.strstart + z - 1]), n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart;
|
|
390
|
+
while (--e.match_length !== 0);
|
|
391
|
+
e.strstart++;
|
|
392
|
+
} else e.strstart += e.match_length, e.match_length = 0, e.ins_h = e.window[e.strstart], e.ins_h = G(e, e.ins_h, e.window[e.strstart + 1]);
|
|
393
|
+
else r = F(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++;
|
|
394
|
+
if (r && (q(e, !1), e.strm.avail_out === 0)) return H;
|
|
395
|
+
}
|
|
396
|
+
return e.insert = e.strstart < z - 1 ? e.strstart : z - 1, t === I ? (q(e, !0), e.strm.avail_out === 0 ? ft : pt) : e.last_lit && (q(e, !1), e.strm.avail_out === 0) ? H : dt;
|
|
397
|
+
}, St = (e, t) => {
|
|
398
|
+
let n, r, i;
|
|
399
|
+
for (;;) {
|
|
400
|
+
if (e.lookahead < V) {
|
|
401
|
+
if (yt(e), e.lookahead < V && t === Re) return H;
|
|
402
|
+
if (e.lookahead === 0) break;
|
|
403
|
+
}
|
|
404
|
+
if (n = 0, e.lookahead >= z && (e.ins_h = G(e, e.ins_h, e.window[e.strstart + z - 1]), n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), e.prev_length = e.match_length, e.prev_match = e.match_start, e.match_length = z - 1, n !== 0 && e.prev_length < e.max_lazy_match && e.strstart - n <= e.w_size - V && (e.match_length = vt(e, n), e.match_length <= 5 && (e.strategy === Ke || e.match_length === z && e.strstart - e.match_start > 4096) && (e.match_length = z - 1)), e.prev_length >= z && e.match_length <= e.prev_length) {
|
|
405
|
+
i = e.strstart + e.lookahead - z, r = F(e, e.strstart - 1 - e.prev_match, e.prev_length - z), e.lookahead -= e.prev_length - 1, e.prev_length -= 2;
|
|
406
|
+
do
|
|
407
|
+
++e.strstart <= i && (e.ins_h = G(e, e.ins_h, e.window[e.strstart + z - 1]), n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart);
|
|
408
|
+
while (--e.prev_length !== 0);
|
|
409
|
+
if (e.match_available = 0, e.match_length = z - 1, e.strstart++, r && (q(e, !1), e.strm.avail_out === 0)) return H;
|
|
410
|
+
} else if (e.match_available) {
|
|
411
|
+
if (r = F(e, 0, e.window[e.strstart - 1]), r && q(e, !1), e.strstart++, e.lookahead--, e.strm.avail_out === 0) return H;
|
|
412
|
+
} else e.match_available = 1, e.strstart++, e.lookahead--;
|
|
413
|
+
}
|
|
414
|
+
return e.match_available &&= (r = F(e, 0, e.window[e.strstart - 1]), 0), e.insert = e.strstart < z - 1 ? e.strstart : z - 1, t === I ? (q(e, !0), e.strm.avail_out === 0 ? ft : pt) : e.last_lit && (q(e, !1), e.strm.avail_out === 0) ? H : dt;
|
|
415
|
+
}, Ct = (e, t) => {
|
|
416
|
+
let n, r, i, a, o = e.window;
|
|
417
|
+
for (;;) {
|
|
418
|
+
if (e.lookahead <= B) {
|
|
419
|
+
if (yt(e), e.lookahead <= B && t === Re) return H;
|
|
420
|
+
if (e.lookahead === 0) break;
|
|
421
|
+
}
|
|
422
|
+
if (e.match_length = 0, e.lookahead >= z && e.strstart > 0 && (i = e.strstart - 1, r = o[i], r === o[++i] && r === o[++i] && r === o[++i])) {
|
|
423
|
+
a = e.strstart + B;
|
|
424
|
+
do ;
|
|
425
|
+
while (r === o[++i] && r === o[++i] && r === o[++i] && r === o[++i] && r === o[++i] && r === o[++i] && r === o[++i] && r === o[++i] && i < a);
|
|
426
|
+
e.match_length = B - (a - i), e.match_length > e.lookahead && (e.match_length = e.lookahead);
|
|
427
|
+
}
|
|
428
|
+
if (e.match_length >= z ? (n = F(e, 1, e.match_length - z), e.lookahead -= e.match_length, e.strstart += e.match_length, e.match_length = 0) : (n = F(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++), n && (q(e, !1), e.strm.avail_out === 0)) return H;
|
|
429
|
+
}
|
|
430
|
+
return e.insert = 0, t === I ? (q(e, !0), e.strm.avail_out === 0 ? ft : pt) : e.last_lit && (q(e, !1), e.strm.avail_out === 0) ? H : dt;
|
|
431
|
+
}, wt = (e, t) => {
|
|
432
|
+
let n;
|
|
433
|
+
for (;;) {
|
|
434
|
+
if (e.lookahead === 0 && (yt(e), e.lookahead === 0)) {
|
|
435
|
+
if (t === Re) return H;
|
|
436
|
+
break;
|
|
437
|
+
}
|
|
438
|
+
if (e.match_length = 0, n = F(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++, n && (q(e, !1), e.strm.avail_out === 0)) return H;
|
|
439
|
+
}
|
|
440
|
+
return e.insert = 0, t === I ? (q(e, !0), e.strm.avail_out === 0 ? ft : pt) : e.last_lit && (q(e, !1), e.strm.avail_out === 0) ? H : dt;
|
|
441
|
+
};
|
|
442
|
+
function Y(e, t, n, r, i) {
|
|
443
|
+
this.good_length = e, this.max_lazy = t, this.nice_length = n, this.max_chain = r, this.func = i;
|
|
444
|
+
}
|
|
445
|
+
var Tt = [
|
|
446
|
+
new Y(0, 0, 0, 0, bt),
|
|
447
|
+
new Y(4, 4, 8, 4, xt),
|
|
448
|
+
new Y(4, 5, 16, 8, xt),
|
|
449
|
+
new Y(4, 6, 32, 32, xt),
|
|
450
|
+
new Y(4, 4, 16, 16, St),
|
|
451
|
+
new Y(8, 16, 32, 32, St),
|
|
452
|
+
new Y(8, 16, 128, 128, St),
|
|
453
|
+
new Y(8, 32, 128, 256, St),
|
|
454
|
+
new Y(32, 128, 258, 1024, St),
|
|
455
|
+
new Y(32, 258, 258, 4096, St)
|
|
456
|
+
], Et = (e) => {
|
|
457
|
+
e.window_size = 2 * e.w_size, W(e.head), e.max_lazy_match = Tt[e.level].max_lazy, e.good_match = Tt[e.level].good_length, e.nice_match = Tt[e.level].nice_length, e.max_chain_length = Tt[e.level].max_chain, e.strstart = 0, e.block_start = 0, e.lookahead = 0, e.insert = 0, e.match_length = e.prev_length = z - 1, e.match_available = 0, e.ins_h = 0;
|
|
458
|
+
};
|
|
459
|
+
function Dt() {
|
|
460
|
+
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = Qe, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new Uint16Array(nt * 2), this.dyn_dtree = /* @__PURE__ */ new Uint16Array(122), this.bl_tree = /* @__PURE__ */ new Uint16Array(78), W(this.dyn_ltree), W(this.dyn_dtree), W(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = /* @__PURE__ */ new Uint16Array(16), this.heap = /* @__PURE__ */ new Uint16Array(573), W(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = /* @__PURE__ */ new Uint16Array(573), W(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
|
|
461
|
+
}
|
|
462
|
+
var Ot = (e) => {
|
|
463
|
+
if (!e || !e.state) return U(e, R);
|
|
464
|
+
e.total_in = e.total_out = 0, e.data_type = Ze;
|
|
465
|
+
let t = e.state;
|
|
466
|
+
return t.pending = 0, t.pending_out = 0, t.wrap < 0 && (t.wrap = -t.wrap), t.status = t.wrap ? it : lt, e.adler = t.wrap === 2 ? 0 : 1, t.last_flush = Re, Pe(t), L;
|
|
467
|
+
}, kt = (e) => {
|
|
468
|
+
let t = Ot(e);
|
|
469
|
+
return t === L && Et(e.state), t;
|
|
470
|
+
}, At = (e, t) => !e || !e.state || e.state.wrap !== 2 ? R : (e.state.gzhead = t, L), jt = (e, t, n, r, i, a) => {
|
|
471
|
+
if (!e) return R;
|
|
472
|
+
let o = 1;
|
|
473
|
+
if (t === Ge && (t = 6), r < 0 ? (o = 0, r = -r) : r > 15 && (o = 2, r -= 16), i < 1 || i > $e || n !== Qe || r < 8 || r > 15 || t < 0 || t > 9 || a < 0 || a > Ye) return U(e, R);
|
|
474
|
+
r === 8 && (r = 9);
|
|
475
|
+
let s = new Dt();
|
|
476
|
+
return e.state = s, s.strm = e, s.wrap = o, s.gzhead = null, s.w_bits = r, s.w_size = 1 << s.w_bits, s.w_mask = s.w_size - 1, s.hash_bits = i + 7, s.hash_size = 1 << s.hash_bits, s.hash_mask = s.hash_size - 1, s.hash_shift = ~~((s.hash_bits + z - 1) / z), s.window = new Uint8Array(s.w_size * 2), s.head = new Uint16Array(s.hash_size), s.prev = new Uint16Array(s.w_size), s.lit_bufsize = 1 << i + 6, s.pending_buf_size = s.lit_bufsize * 4, s.pending_buf = new Uint8Array(s.pending_buf_size), s.d_buf = 1 * s.lit_bufsize, s.l_buf = 3 * s.lit_bufsize, s.level = t, s.strategy = a, s.method = n, kt(e);
|
|
477
|
+
}, Mt = {
|
|
478
|
+
deflateInit: (e, t) => jt(e, t, Qe, et, tt, Xe),
|
|
479
|
+
deflateInit2: jt,
|
|
480
|
+
deflateReset: kt,
|
|
481
|
+
deflateResetKeep: Ot,
|
|
482
|
+
deflateSetHeader: At,
|
|
483
|
+
deflate: (e, t) => {
|
|
484
|
+
let n, r;
|
|
485
|
+
if (!e || !e.state || t > Ve || t < 0) return e ? U(e, R) : R;
|
|
486
|
+
let i = e.state;
|
|
487
|
+
if (!e.output || !e.input && e.avail_in !== 0 || i.status === ut && t !== I) return U(e, e.avail_out === 0 ? We : R);
|
|
488
|
+
i.strm = e;
|
|
489
|
+
let a = i.last_flush;
|
|
490
|
+
if (i.last_flush = t, i.status === it) if (i.wrap === 2) e.adler = 0, J(i, 31), J(i, 139), J(i, 8), i.gzhead ? (J(i, +!!i.gzhead.text + (i.gzhead.hcrc ? 2 : 0) + (i.gzhead.extra ? 4 : 0) + (i.gzhead.name ? 8 : 0) + (i.gzhead.comment ? 16 : 0)), J(i, i.gzhead.time & 255), J(i, i.gzhead.time >> 8 & 255), J(i, i.gzhead.time >> 16 & 255), J(i, i.gzhead.time >> 24 & 255), J(i, i.level === 9 ? 2 : i.strategy >= qe || i.level < 2 ? 4 : 0), J(i, i.gzhead.os & 255), i.gzhead.extra && i.gzhead.extra.length && (J(i, i.gzhead.extra.length & 255), J(i, i.gzhead.extra.length >> 8 & 255)), i.gzhead.hcrc && (e.adler = P(e.adler, i.pending_buf, i.pending, 0)), i.gzindex = 0, i.status = at) : (J(i, 0), J(i, 0), J(i, 0), J(i, 0), J(i, 0), J(i, i.level === 9 ? 2 : i.strategy >= qe || i.level < 2 ? 4 : 0), J(i, mt), i.status = lt);
|
|
491
|
+
else {
|
|
492
|
+
let t = Qe + (i.w_bits - 8 << 4) << 8, n = -1;
|
|
493
|
+
n = i.strategy >= qe || i.level < 2 ? 0 : i.level < 6 ? 1 : i.level === 6 ? 2 : 3, t |= n << 6, i.strstart !== 0 && (t |= rt), t += 31 - t % 31, i.status = lt, gt(i, t), i.strstart !== 0 && (gt(i, e.adler >>> 16), gt(i, e.adler & 65535)), e.adler = 1;
|
|
494
|
+
}
|
|
495
|
+
if (i.status === at) if (i.gzhead.extra) {
|
|
496
|
+
for (n = i.pending; i.gzindex < (i.gzhead.extra.length & 65535) && !(i.pending === i.pending_buf_size && (i.gzhead.hcrc && i.pending > n && (e.adler = P(e.adler, i.pending_buf, i.pending - n, n)), K(e), n = i.pending, i.pending === i.pending_buf_size));) J(i, i.gzhead.extra[i.gzindex] & 255), i.gzindex++;
|
|
497
|
+
i.gzhead.hcrc && i.pending > n && (e.adler = P(e.adler, i.pending_buf, i.pending - n, n)), i.gzindex === i.gzhead.extra.length && (i.gzindex = 0, i.status = ot);
|
|
498
|
+
} else i.status = ot;
|
|
499
|
+
if (i.status === ot) if (i.gzhead.name) {
|
|
500
|
+
n = i.pending;
|
|
501
|
+
do {
|
|
502
|
+
if (i.pending === i.pending_buf_size && (i.gzhead.hcrc && i.pending > n && (e.adler = P(e.adler, i.pending_buf, i.pending - n, n)), K(e), n = i.pending, i.pending === i.pending_buf_size)) {
|
|
503
|
+
r = 1;
|
|
504
|
+
break;
|
|
505
|
+
}
|
|
506
|
+
r = i.gzindex < i.gzhead.name.length ? i.gzhead.name.charCodeAt(i.gzindex++) & 255 : 0, J(i, r);
|
|
507
|
+
} while (r !== 0);
|
|
508
|
+
i.gzhead.hcrc && i.pending > n && (e.adler = P(e.adler, i.pending_buf, i.pending - n, n)), r === 0 && (i.gzindex = 0, i.status = st);
|
|
509
|
+
} else i.status = st;
|
|
510
|
+
if (i.status === st) if (i.gzhead.comment) {
|
|
511
|
+
n = i.pending;
|
|
512
|
+
do {
|
|
513
|
+
if (i.pending === i.pending_buf_size && (i.gzhead.hcrc && i.pending > n && (e.adler = P(e.adler, i.pending_buf, i.pending - n, n)), K(e), n = i.pending, i.pending === i.pending_buf_size)) {
|
|
514
|
+
r = 1;
|
|
515
|
+
break;
|
|
516
|
+
}
|
|
517
|
+
r = i.gzindex < i.gzhead.comment.length ? i.gzhead.comment.charCodeAt(i.gzindex++) & 255 : 0, J(i, r);
|
|
518
|
+
} while (r !== 0);
|
|
519
|
+
i.gzhead.hcrc && i.pending > n && (e.adler = P(e.adler, i.pending_buf, i.pending - n, n)), r === 0 && (i.status = ct);
|
|
520
|
+
} else i.status = ct;
|
|
521
|
+
if (i.status === ct && (i.gzhead.hcrc ? (i.pending + 2 > i.pending_buf_size && K(e), i.pending + 2 <= i.pending_buf_size && (J(i, e.adler & 255), J(i, e.adler >> 8 & 255), e.adler = 0, i.status = lt)) : i.status = lt), i.pending !== 0) {
|
|
522
|
+
if (K(e), e.avail_out === 0) return i.last_flush = -1, L;
|
|
523
|
+
} else if (e.avail_in === 0 && ht(t) <= ht(a) && t !== I) return U(e, We);
|
|
524
|
+
if (i.status === ut && e.avail_in !== 0) return U(e, We);
|
|
525
|
+
if (e.avail_in !== 0 || i.lookahead !== 0 || t !== Re && i.status !== ut) {
|
|
526
|
+
let n = i.strategy === qe ? wt(i, t) : i.strategy === Je ? Ct(i, t) : Tt[i.level].func(i, t);
|
|
527
|
+
if ((n === ft || n === pt) && (i.status = ut), n === H || n === ft) return e.avail_out === 0 && (i.last_flush = -1), L;
|
|
528
|
+
if (n === dt && (t === ze ? Le(i) : t !== Ve && (Fe(i, 0, 0, !1), t === Be && (W(i.head), i.lookahead === 0 && (i.strstart = 0, i.block_start = 0, i.insert = 0))), K(e), e.avail_out === 0)) return i.last_flush = -1, L;
|
|
529
|
+
}
|
|
530
|
+
return t === I ? i.wrap <= 0 ? He : (i.wrap === 2 ? (J(i, e.adler & 255), J(i, e.adler >> 8 & 255), J(i, e.adler >> 16 & 255), J(i, e.adler >> 24 & 255), J(i, e.total_in & 255), J(i, e.total_in >> 8 & 255), J(i, e.total_in >> 16 & 255), J(i, e.total_in >> 24 & 255)) : (gt(i, e.adler >>> 16), gt(i, e.adler & 65535)), K(e), i.wrap > 0 && (i.wrap = -i.wrap), i.pending === 0 ? He : L) : L;
|
|
531
|
+
},
|
|
532
|
+
deflateEnd: (e) => {
|
|
533
|
+
if (!e || !e.state) return R;
|
|
534
|
+
let t = e.state.status;
|
|
535
|
+
return t !== it && t !== at && t !== ot && t !== st && t !== ct && t !== lt && t !== ut ? U(e, R) : (e.state = null, t === lt ? U(e, Ue) : L);
|
|
536
|
+
},
|
|
537
|
+
deflateSetDictionary: (e, t) => {
|
|
538
|
+
let n = t.length;
|
|
539
|
+
if (!e || !e.state) return R;
|
|
540
|
+
let r = e.state, i = r.wrap;
|
|
541
|
+
if (i === 2 || i === 1 && r.status !== it || r.lookahead) return R;
|
|
542
|
+
if (i === 1 && (e.adler = Ae(e.adler, t, n, 0)), r.wrap = 0, n >= r.w_size) {
|
|
543
|
+
i === 0 && (W(r.head), r.strstart = 0, r.block_start = 0, r.insert = 0);
|
|
544
|
+
let e = new Uint8Array(r.w_size);
|
|
545
|
+
e.set(t.subarray(n - r.w_size, n), 0), t = e, n = r.w_size;
|
|
546
|
+
}
|
|
547
|
+
let a = e.avail_in, o = e.next_in, s = e.input;
|
|
548
|
+
for (e.avail_in = n, e.next_in = 0, e.input = t, yt(r); r.lookahead >= z;) {
|
|
549
|
+
let e = r.strstart, t = r.lookahead - (z - 1);
|
|
550
|
+
do
|
|
551
|
+
r.ins_h = G(r, r.ins_h, r.window[e + z - 1]), r.prev[e & r.w_mask] = r.head[r.ins_h], r.head[r.ins_h] = e, e++;
|
|
552
|
+
while (--t);
|
|
553
|
+
r.strstart = e, r.lookahead = z - 1, yt(r);
|
|
554
|
+
}
|
|
555
|
+
return r.strstart += r.lookahead, r.block_start = r.strstart, r.insert = r.lookahead, r.lookahead = 0, r.match_length = r.prev_length = z - 1, r.match_available = 0, e.next_in = o, e.input = s, e.avail_in = a, r.wrap = i, L;
|
|
556
|
+
},
|
|
557
|
+
deflateInfo: "pako deflate (from Nodeca project)"
|
|
558
|
+
}, Nt = (e, t) => Object.prototype.hasOwnProperty.call(e, t), Pt = {
|
|
559
|
+
assign: function(e) {
|
|
560
|
+
let t = Array.prototype.slice.call(arguments, 1);
|
|
561
|
+
for (; t.length;) {
|
|
562
|
+
let n = t.shift();
|
|
563
|
+
if (n) {
|
|
564
|
+
if (typeof n != "object") throw TypeError(n + "must be non-object");
|
|
565
|
+
for (let t in n) Nt(n, t) && (e[t] = n[t]);
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
return e;
|
|
569
|
+
},
|
|
570
|
+
flattenChunks: (e) => {
|
|
571
|
+
let t = 0;
|
|
572
|
+
for (let n = 0, r = e.length; n < r; n++) t += e[n].length;
|
|
573
|
+
let n = new Uint8Array(t);
|
|
574
|
+
for (let t = 0, r = 0, i = e.length; t < i; t++) {
|
|
575
|
+
let i = e[t];
|
|
576
|
+
n.set(i, r), r += i.length;
|
|
577
|
+
}
|
|
578
|
+
return n;
|
|
579
|
+
}
|
|
580
|
+
}, Ft = !0;
|
|
581
|
+
try {
|
|
582
|
+
String.fromCharCode.apply(null, /* @__PURE__ */ new Uint8Array(1));
|
|
583
|
+
} catch {
|
|
584
|
+
Ft = !1;
|
|
585
|
+
}
|
|
586
|
+
var It = /* @__PURE__ */ new Uint8Array(256);
|
|
587
|
+
for (let e = 0; e < 256; e++) It[e] = e >= 252 ? 6 : e >= 248 ? 5 : e >= 240 ? 4 : e >= 224 ? 3 : e >= 192 ? 2 : 1;
|
|
588
|
+
It[254] = It[254] = 1;
|
|
589
|
+
var Lt = (e) => {
|
|
590
|
+
let t, n, r, i, a, o = e.length, s = 0;
|
|
591
|
+
for (i = 0; i < o; i++) n = e.charCodeAt(i), (n & 64512) == 55296 && i + 1 < o && (r = e.charCodeAt(i + 1), (r & 64512) == 56320 && (n = 65536 + (n - 55296 << 10) + (r - 56320), i++)), s += n < 128 ? 1 : n < 2048 ? 2 : n < 65536 ? 3 : 4;
|
|
592
|
+
for (t = new Uint8Array(s), a = 0, i = 0; a < s; i++) n = e.charCodeAt(i), (n & 64512) == 55296 && i + 1 < o && (r = e.charCodeAt(i + 1), (r & 64512) == 56320 && (n = 65536 + (n - 55296 << 10) + (r - 56320), i++)), n < 128 ? t[a++] = n : n < 2048 ? (t[a++] = 192 | n >>> 6, t[a++] = 128 | n & 63) : n < 65536 ? (t[a++] = 224 | n >>> 12, t[a++] = 128 | n >>> 6 & 63, t[a++] = 128 | n & 63) : (t[a++] = 240 | n >>> 18, t[a++] = 128 | n >>> 12 & 63, t[a++] = 128 | n >>> 6 & 63, t[a++] = 128 | n & 63);
|
|
593
|
+
return t;
|
|
594
|
+
}, Rt = (e, t) => {
|
|
595
|
+
if (t < 65534 && e.subarray && Ft) return String.fromCharCode.apply(null, e.length === t ? e : e.subarray(0, t));
|
|
596
|
+
let n = "";
|
|
597
|
+
for (let r = 0; r < t; r++) n += String.fromCharCode(e[r]);
|
|
598
|
+
return n;
|
|
599
|
+
}, zt = {
|
|
600
|
+
string2buf: Lt,
|
|
601
|
+
buf2string: (e, t) => {
|
|
602
|
+
let n, r, i = t || e.length, a = Array(i * 2);
|
|
603
|
+
for (r = 0, n = 0; n < i;) {
|
|
604
|
+
let t = e[n++];
|
|
605
|
+
if (t < 128) {
|
|
606
|
+
a[r++] = t;
|
|
607
|
+
continue;
|
|
608
|
+
}
|
|
609
|
+
let o = It[t];
|
|
610
|
+
if (o > 4) {
|
|
611
|
+
a[r++] = 65533, n += o - 1;
|
|
612
|
+
continue;
|
|
613
|
+
}
|
|
614
|
+
for (t &= o === 2 ? 31 : o === 3 ? 15 : 7; o > 1 && n < i;) t = t << 6 | e[n++] & 63, o--;
|
|
615
|
+
if (o > 1) {
|
|
616
|
+
a[r++] = 65533;
|
|
617
|
+
continue;
|
|
618
|
+
}
|
|
619
|
+
t < 65536 ? a[r++] = t : (t -= 65536, a[r++] = 55296 | t >> 10 & 1023, a[r++] = 56320 | t & 1023);
|
|
620
|
+
}
|
|
621
|
+
return Rt(a, r);
|
|
622
|
+
},
|
|
623
|
+
utf8border: (e, t) => {
|
|
624
|
+
t ||= e.length, t > e.length && (t = e.length);
|
|
625
|
+
let n = t - 1;
|
|
626
|
+
for (; n >= 0 && (e[n] & 192) == 128;) n--;
|
|
627
|
+
return n < 0 || n === 0 ? t : n + It[e[n]] > t ? n : t;
|
|
628
|
+
}
|
|
629
|
+
};
|
|
630
|
+
function Bt() {
|
|
631
|
+
this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
|
|
632
|
+
}
|
|
633
|
+
var Vt = Bt, Ht = Object.prototype.toString, { Z_NO_FLUSH: Ut, Z_SYNC_FLUSH: Wt, Z_FULL_FLUSH: Gt, Z_FINISH: Kt, Z_OK: qt, Z_STREAM_END: Jt, Z_DEFAULT_COMPRESSION: Yt, Z_DEFAULT_STRATEGY: Xt, Z_DEFLATED: Zt } = Ne;
|
|
634
|
+
function Qt(e) {
|
|
635
|
+
this.options = Pt.assign({
|
|
636
|
+
level: Yt,
|
|
637
|
+
method: Zt,
|
|
638
|
+
chunkSize: 16384,
|
|
639
|
+
windowBits: 15,
|
|
640
|
+
memLevel: 8,
|
|
641
|
+
strategy: Xt
|
|
642
|
+
}, e || {});
|
|
643
|
+
let t = this.options;
|
|
644
|
+
t.raw && t.windowBits > 0 ? t.windowBits = -t.windowBits : t.gzip && t.windowBits > 0 && t.windowBits < 16 && (t.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new Vt(), this.strm.avail_out = 0;
|
|
645
|
+
let n = Mt.deflateInit2(this.strm, t.level, t.method, t.windowBits, t.memLevel, t.strategy);
|
|
646
|
+
if (n !== qt) throw Error(Me[n]);
|
|
647
|
+
if (t.header && Mt.deflateSetHeader(this.strm, t.header), t.dictionary) {
|
|
648
|
+
let e;
|
|
649
|
+
if (e = typeof t.dictionary == "string" ? zt.string2buf(t.dictionary) : Ht.call(t.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(t.dictionary) : t.dictionary, n = Mt.deflateSetDictionary(this.strm, e), n !== qt) throw Error(Me[n]);
|
|
650
|
+
this._dict_set = !0;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
Qt.prototype.push = function(e, t) {
|
|
654
|
+
let n = this.strm, r = this.options.chunkSize, i, a;
|
|
655
|
+
if (this.ended) return !1;
|
|
656
|
+
for (a = t === ~~t ? t : t === !0 ? Kt : Ut, typeof e == "string" ? n.input = zt.string2buf(e) : Ht.call(e) === "[object ArrayBuffer]" ? n.input = new Uint8Array(e) : n.input = e, n.next_in = 0, n.avail_in = n.input.length;;) {
|
|
657
|
+
if (n.avail_out === 0 && (n.output = new Uint8Array(r), n.next_out = 0, n.avail_out = r), (a === Wt || a === Gt) && n.avail_out <= 6) {
|
|
658
|
+
this.onData(n.output.subarray(0, n.next_out)), n.avail_out = 0;
|
|
659
|
+
continue;
|
|
660
|
+
}
|
|
661
|
+
if (i = Mt.deflate(n, a), i === Jt) return n.next_out > 0 && this.onData(n.output.subarray(0, n.next_out)), i = Mt.deflateEnd(this.strm), this.onEnd(i), this.ended = !0, i === qt;
|
|
662
|
+
if (n.avail_out === 0) {
|
|
663
|
+
this.onData(n.output);
|
|
664
|
+
continue;
|
|
665
|
+
}
|
|
666
|
+
if (a > 0 && n.next_out > 0) {
|
|
667
|
+
this.onData(n.output.subarray(0, n.next_out)), n.avail_out = 0;
|
|
668
|
+
continue;
|
|
669
|
+
}
|
|
670
|
+
if (n.avail_in === 0) break;
|
|
671
|
+
}
|
|
672
|
+
return !0;
|
|
673
|
+
}, Qt.prototype.onData = function(e) {
|
|
674
|
+
this.chunks.push(e);
|
|
675
|
+
}, Qt.prototype.onEnd = function(e) {
|
|
676
|
+
e === qt && (this.result = Pt.flattenChunks(this.chunks)), this.chunks = [], this.err = e, this.msg = this.strm.msg;
|
|
677
|
+
};
|
|
678
|
+
function $t(e, t) {
|
|
679
|
+
let n = new Qt(t);
|
|
680
|
+
if (n.push(e, !0), n.err) throw n.msg || Me[n.err];
|
|
681
|
+
return n.result;
|
|
682
|
+
}
|
|
683
|
+
function en(e, t) {
|
|
684
|
+
return t ||= {}, t.raw = !0, $t(e, t);
|
|
685
|
+
}
|
|
686
|
+
function tn(e, t) {
|
|
687
|
+
return t ||= {}, t.gzip = !0, $t(e, t);
|
|
688
|
+
}
|
|
689
|
+
var nn = {
|
|
690
|
+
Deflate: Qt,
|
|
691
|
+
deflate: $t,
|
|
692
|
+
deflateRaw: en,
|
|
693
|
+
gzip: tn,
|
|
694
|
+
constants: Ne
|
|
695
|
+
}, rn = 30, an = 12, on = function(e, t) {
|
|
696
|
+
let n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T, E = e.state;
|
|
697
|
+
n = e.next_in, w = e.input, r = n + (e.avail_in - 5), i = e.next_out, T = e.output, a = i - (t - e.avail_out), o = i + (e.avail_out - 257), s = E.dmax, c = E.wsize, l = E.whave, u = E.wnext, d = E.window, f = E.hold, p = E.bits, m = E.lencode, h = E.distcode, g = (1 << E.lenbits) - 1, _ = (1 << E.distbits) - 1;
|
|
698
|
+
top: do {
|
|
699
|
+
p < 15 && (f += w[n++] << p, p += 8, f += w[n++] << p, p += 8), v = m[f & g];
|
|
700
|
+
dolen: for (;;) {
|
|
701
|
+
if (y = v >>> 24, f >>>= y, p -= y, y = v >>> 16 & 255, y === 0) T[i++] = v & 65535;
|
|
702
|
+
else if (y & 16) {
|
|
703
|
+
b = v & 65535, y &= 15, y && (p < y && (f += w[n++] << p, p += 8), b += f & (1 << y) - 1, f >>>= y, p -= y), p < 15 && (f += w[n++] << p, p += 8, f += w[n++] << p, p += 8), v = h[f & _];
|
|
704
|
+
dodist: for (;;) {
|
|
705
|
+
if (y = v >>> 24, f >>>= y, p -= y, y = v >>> 16 & 255, y & 16) {
|
|
706
|
+
if (x = v & 65535, y &= 15, p < y && (f += w[n++] << p, p += 8, p < y && (f += w[n++] << p, p += 8)), x += f & (1 << y) - 1, x > s) {
|
|
707
|
+
e.msg = "invalid distance too far back", E.mode = rn;
|
|
708
|
+
break top;
|
|
709
|
+
}
|
|
710
|
+
if (f >>>= y, p -= y, y = i - a, x > y) {
|
|
711
|
+
if (y = x - y, y > l && E.sane) {
|
|
712
|
+
e.msg = "invalid distance too far back", E.mode = rn;
|
|
713
|
+
break top;
|
|
714
|
+
}
|
|
715
|
+
if (S = 0, C = d, u === 0) {
|
|
716
|
+
if (S += c - y, y < b) {
|
|
717
|
+
b -= y;
|
|
718
|
+
do
|
|
719
|
+
T[i++] = d[S++];
|
|
720
|
+
while (--y);
|
|
721
|
+
S = i - x, C = T;
|
|
722
|
+
}
|
|
723
|
+
} else if (u < y) {
|
|
724
|
+
if (S += c + u - y, y -= u, y < b) {
|
|
725
|
+
b -= y;
|
|
726
|
+
do
|
|
727
|
+
T[i++] = d[S++];
|
|
728
|
+
while (--y);
|
|
729
|
+
if (S = 0, u < b) {
|
|
730
|
+
y = u, b -= y;
|
|
731
|
+
do
|
|
732
|
+
T[i++] = d[S++];
|
|
733
|
+
while (--y);
|
|
734
|
+
S = i - x, C = T;
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
} else if (S += u - y, y < b) {
|
|
738
|
+
b -= y;
|
|
739
|
+
do
|
|
740
|
+
T[i++] = d[S++];
|
|
741
|
+
while (--y);
|
|
742
|
+
S = i - x, C = T;
|
|
743
|
+
}
|
|
744
|
+
for (; b > 2;) T[i++] = C[S++], T[i++] = C[S++], T[i++] = C[S++], b -= 3;
|
|
745
|
+
b && (T[i++] = C[S++], b > 1 && (T[i++] = C[S++]));
|
|
746
|
+
} else {
|
|
747
|
+
S = i - x;
|
|
748
|
+
do
|
|
749
|
+
T[i++] = T[S++], T[i++] = T[S++], T[i++] = T[S++], b -= 3;
|
|
750
|
+
while (b > 2);
|
|
751
|
+
b && (T[i++] = T[S++], b > 1 && (T[i++] = T[S++]));
|
|
752
|
+
}
|
|
753
|
+
} else if (y & 64) {
|
|
754
|
+
e.msg = "invalid distance code", E.mode = rn;
|
|
755
|
+
break top;
|
|
756
|
+
} else {
|
|
757
|
+
v = h[(v & 65535) + (f & (1 << y) - 1)];
|
|
758
|
+
continue dodist;
|
|
759
|
+
}
|
|
760
|
+
break;
|
|
761
|
+
}
|
|
762
|
+
} else if (!(y & 64)) {
|
|
763
|
+
v = m[(v & 65535) + (f & (1 << y) - 1)];
|
|
764
|
+
continue dolen;
|
|
765
|
+
} else if (y & 32) {
|
|
766
|
+
E.mode = an;
|
|
767
|
+
break top;
|
|
768
|
+
} else {
|
|
769
|
+
e.msg = "invalid literal/length code", E.mode = rn;
|
|
770
|
+
break top;
|
|
771
|
+
}
|
|
772
|
+
break;
|
|
773
|
+
}
|
|
774
|
+
} while (n < r && i < o);
|
|
775
|
+
b = p >> 3, n -= b, p -= b << 3, f &= (1 << p) - 1, e.next_in = n, e.next_out = i, e.avail_in = n < r ? 5 + (r - n) : 5 - (n - r), e.avail_out = i < o ? 257 + (o - i) : 257 - (i - o), E.hold = f, E.bits = p;
|
|
776
|
+
}, sn = 15, cn = 852, ln = 592, un = 0, dn = 1, fn = 2, pn = new Uint16Array([
|
|
777
|
+
3,
|
|
778
|
+
4,
|
|
779
|
+
5,
|
|
780
|
+
6,
|
|
781
|
+
7,
|
|
782
|
+
8,
|
|
783
|
+
9,
|
|
784
|
+
10,
|
|
785
|
+
11,
|
|
786
|
+
13,
|
|
787
|
+
15,
|
|
788
|
+
17,
|
|
789
|
+
19,
|
|
790
|
+
23,
|
|
791
|
+
27,
|
|
792
|
+
31,
|
|
793
|
+
35,
|
|
794
|
+
43,
|
|
795
|
+
51,
|
|
796
|
+
59,
|
|
797
|
+
67,
|
|
798
|
+
83,
|
|
799
|
+
99,
|
|
800
|
+
115,
|
|
801
|
+
131,
|
|
802
|
+
163,
|
|
803
|
+
195,
|
|
804
|
+
227,
|
|
805
|
+
258,
|
|
806
|
+
0,
|
|
807
|
+
0
|
|
808
|
+
]), mn = new Uint8Array([
|
|
809
|
+
16,
|
|
810
|
+
16,
|
|
811
|
+
16,
|
|
812
|
+
16,
|
|
813
|
+
16,
|
|
814
|
+
16,
|
|
815
|
+
16,
|
|
816
|
+
16,
|
|
817
|
+
17,
|
|
818
|
+
17,
|
|
819
|
+
17,
|
|
820
|
+
17,
|
|
821
|
+
18,
|
|
822
|
+
18,
|
|
823
|
+
18,
|
|
824
|
+
18,
|
|
825
|
+
19,
|
|
826
|
+
19,
|
|
827
|
+
19,
|
|
828
|
+
19,
|
|
829
|
+
20,
|
|
830
|
+
20,
|
|
831
|
+
20,
|
|
832
|
+
20,
|
|
833
|
+
21,
|
|
834
|
+
21,
|
|
835
|
+
21,
|
|
836
|
+
21,
|
|
837
|
+
16,
|
|
838
|
+
72,
|
|
839
|
+
78
|
|
840
|
+
]), hn = new Uint16Array([
|
|
841
|
+
1,
|
|
842
|
+
2,
|
|
843
|
+
3,
|
|
844
|
+
4,
|
|
845
|
+
5,
|
|
846
|
+
7,
|
|
847
|
+
9,
|
|
848
|
+
13,
|
|
849
|
+
17,
|
|
850
|
+
25,
|
|
851
|
+
33,
|
|
852
|
+
49,
|
|
853
|
+
65,
|
|
854
|
+
97,
|
|
855
|
+
129,
|
|
856
|
+
193,
|
|
857
|
+
257,
|
|
858
|
+
385,
|
|
859
|
+
513,
|
|
860
|
+
769,
|
|
861
|
+
1025,
|
|
862
|
+
1537,
|
|
863
|
+
2049,
|
|
864
|
+
3073,
|
|
865
|
+
4097,
|
|
866
|
+
6145,
|
|
867
|
+
8193,
|
|
868
|
+
12289,
|
|
869
|
+
16385,
|
|
870
|
+
24577,
|
|
871
|
+
0,
|
|
872
|
+
0
|
|
873
|
+
]), gn = new Uint8Array([
|
|
874
|
+
16,
|
|
875
|
+
16,
|
|
876
|
+
16,
|
|
877
|
+
16,
|
|
878
|
+
17,
|
|
879
|
+
17,
|
|
880
|
+
18,
|
|
881
|
+
18,
|
|
882
|
+
19,
|
|
883
|
+
19,
|
|
884
|
+
20,
|
|
885
|
+
20,
|
|
886
|
+
21,
|
|
887
|
+
21,
|
|
888
|
+
22,
|
|
889
|
+
22,
|
|
890
|
+
23,
|
|
891
|
+
23,
|
|
892
|
+
24,
|
|
893
|
+
24,
|
|
894
|
+
25,
|
|
895
|
+
25,
|
|
896
|
+
26,
|
|
897
|
+
26,
|
|
898
|
+
27,
|
|
899
|
+
27,
|
|
900
|
+
28,
|
|
901
|
+
28,
|
|
902
|
+
29,
|
|
903
|
+
29,
|
|
904
|
+
64,
|
|
905
|
+
64
|
|
906
|
+
]), _n = (e, t, n, r, i, a, o, s) => {
|
|
907
|
+
let c = s.bits, l = 0, u = 0, d = 0, f = 0, p = 0, m = 0, h = 0, g = 0, _ = 0, v = 0, y, b, x, S, C, w = null, T = 0, E, D = /* @__PURE__ */ new Uint16Array(16), O = /* @__PURE__ */ new Uint16Array(16), k = null, A = 0, ee, te, j;
|
|
908
|
+
for (l = 0; l <= sn; l++) D[l] = 0;
|
|
909
|
+
for (u = 0; u < r; u++) D[t[n + u]]++;
|
|
910
|
+
for (p = c, f = sn; f >= 1 && D[f] === 0; f--);
|
|
911
|
+
if (p > f && (p = f), f === 0) return i[a++] = 20971520, i[a++] = 20971520, s.bits = 1, 0;
|
|
912
|
+
for (d = 1; d < f && D[d] === 0; d++);
|
|
913
|
+
for (p < d && (p = d), g = 1, l = 1; l <= sn; l++) if (g <<= 1, g -= D[l], g < 0) return -1;
|
|
914
|
+
if (g > 0 && (e === un || f !== 1)) return -1;
|
|
915
|
+
for (O[1] = 0, l = 1; l < sn; l++) O[l + 1] = O[l] + D[l];
|
|
916
|
+
for (u = 0; u < r; u++) t[n + u] !== 0 && (o[O[t[n + u]]++] = u);
|
|
917
|
+
if (e === un ? (w = k = o, E = 19) : e === dn ? (w = pn, T -= 257, k = mn, A -= 257, E = 256) : (w = hn, k = gn, E = -1), v = 0, u = 0, l = d, C = a, m = p, h = 0, x = -1, _ = 1 << p, S = _ - 1, e === dn && _ > cn || e === fn && _ > ln) return 1;
|
|
918
|
+
for (;;) {
|
|
919
|
+
ee = l - h, o[u] < E ? (te = 0, j = o[u]) : o[u] > E ? (te = k[A + o[u]], j = w[T + o[u]]) : (te = 96, j = 0), y = 1 << l - h, b = 1 << m, d = b;
|
|
920
|
+
do
|
|
921
|
+
b -= y, i[C + (v >> h) + b] = ee << 24 | te << 16 | j | 0;
|
|
922
|
+
while (b !== 0);
|
|
923
|
+
for (y = 1 << l - 1; v & y;) y >>= 1;
|
|
924
|
+
if (y === 0 ? v = 0 : (v &= y - 1, v += y), u++, --D[l] === 0) {
|
|
925
|
+
if (l === f) break;
|
|
926
|
+
l = t[n + o[u]];
|
|
927
|
+
}
|
|
928
|
+
if (l > p && (v & S) !== x) {
|
|
929
|
+
for (h === 0 && (h = p), C += d, m = l - h, g = 1 << m; m + h < f && (g -= D[m + h], !(g <= 0));) m++, g <<= 1;
|
|
930
|
+
if (_ += 1 << m, e === dn && _ > cn || e === fn && _ > ln) return 1;
|
|
931
|
+
x = v & S, i[x] = p << 24 | m << 16 | C - a | 0;
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
return v !== 0 && (i[C + v] = l - h << 24 | 4194304), s.bits = p, 0;
|
|
935
|
+
}, vn = 0, yn = 1, bn = 2, { Z_FINISH: xn, Z_BLOCK: Sn, Z_TREES: Cn, Z_OK: wn, Z_STREAM_END: Tn, Z_NEED_DICT: En, Z_STREAM_ERROR: X, Z_DATA_ERROR: Dn, Z_MEM_ERROR: On, Z_BUF_ERROR: kn, Z_DEFLATED: An } = Ne, jn = 1, Mn = 2, Nn = 3, Pn = 4, Fn = 5, In = 6, Ln = 7, Rn = 8, zn = 9, Bn = 10, Vn = 11, Z = 12, Hn = 13, Un = 14, Wn = 15, Gn = 16, Kn = 17, qn = 18, Jn = 19, Yn = 20, Xn = 21, Zn = 22, Qn = 23, $n = 24, er = 25, tr = 26, nr = 27, rr = 28, ir = 29, Q = 30, ar = 31, or = 32, sr = 852, cr = 592, lr = 15, ur = (e) => (e >>> 24 & 255) + (e >>> 8 & 65280) + ((e & 65280) << 8) + ((e & 255) << 24);
|
|
936
|
+
function dr() {
|
|
937
|
+
this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = /* @__PURE__ */ new Uint16Array(320), this.work = /* @__PURE__ */ new Uint16Array(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
|
|
938
|
+
}
|
|
939
|
+
var fr = (e) => {
|
|
940
|
+
if (!e || !e.state) return X;
|
|
941
|
+
let t = e.state;
|
|
942
|
+
return e.total_in = e.total_out = t.total = 0, e.msg = "", t.wrap && (e.adler = t.wrap & 1), t.mode = jn, t.last = 0, t.havedict = 0, t.dmax = 32768, t.head = null, t.hold = 0, t.bits = 0, t.lencode = t.lendyn = new Int32Array(sr), t.distcode = t.distdyn = new Int32Array(cr), t.sane = 1, t.back = -1, wn;
|
|
943
|
+
}, pr = (e) => {
|
|
944
|
+
if (!e || !e.state) return X;
|
|
945
|
+
let t = e.state;
|
|
946
|
+
return t.wsize = 0, t.whave = 0, t.wnext = 0, fr(e);
|
|
947
|
+
}, mr = (e, t) => {
|
|
948
|
+
let n;
|
|
949
|
+
if (!e || !e.state) return X;
|
|
950
|
+
let r = e.state;
|
|
951
|
+
return t < 0 ? (n = 0, t = -t) : (n = (t >> 4) + 1, t < 48 && (t &= 15)), t && (t < 8 || t > 15) ? X : (r.window !== null && r.wbits !== t && (r.window = null), r.wrap = n, r.wbits = t, pr(e));
|
|
952
|
+
}, hr = (e, t) => {
|
|
953
|
+
if (!e) return X;
|
|
954
|
+
let n = new dr();
|
|
955
|
+
e.state = n, n.window = null;
|
|
956
|
+
let r = mr(e, t);
|
|
957
|
+
return r !== wn && (e.state = null), r;
|
|
958
|
+
}, gr = (e) => hr(e, lr), _r = !0, vr, yr, br = (e) => {
|
|
959
|
+
if (_r) {
|
|
960
|
+
vr = /* @__PURE__ */ new Int32Array(512), yr = /* @__PURE__ */ new Int32Array(32);
|
|
961
|
+
let t = 0;
|
|
962
|
+
for (; t < 144;) e.lens[t++] = 8;
|
|
963
|
+
for (; t < 256;) e.lens[t++] = 9;
|
|
964
|
+
for (; t < 280;) e.lens[t++] = 7;
|
|
965
|
+
for (; t < 288;) e.lens[t++] = 8;
|
|
966
|
+
for (_n(yn, e.lens, 0, 288, vr, 0, e.work, { bits: 9 }), t = 0; t < 32;) e.lens[t++] = 5;
|
|
967
|
+
_n(bn, e.lens, 0, 32, yr, 0, e.work, { bits: 5 }), _r = !1;
|
|
968
|
+
}
|
|
969
|
+
e.lencode = vr, e.lenbits = 9, e.distcode = yr, e.distbits = 5;
|
|
970
|
+
}, xr = (e, t, n, r) => {
|
|
971
|
+
let i, a = e.state;
|
|
972
|
+
return a.window === null && (a.wsize = 1 << a.wbits, a.wnext = 0, a.whave = 0, a.window = new Uint8Array(a.wsize)), r >= a.wsize ? (a.window.set(t.subarray(n - a.wsize, n), 0), a.wnext = 0, a.whave = a.wsize) : (i = a.wsize - a.wnext, i > r && (i = r), a.window.set(t.subarray(n - r, n - r + i), a.wnext), r -= i, r ? (a.window.set(t.subarray(n - r, n), 0), a.wnext = r, a.whave = a.wsize) : (a.wnext += i, a.wnext === a.wsize && (a.wnext = 0), a.whave < a.wsize && (a.whave += i))), 0;
|
|
973
|
+
}, $ = {
|
|
974
|
+
inflateReset: pr,
|
|
975
|
+
inflateReset2: mr,
|
|
976
|
+
inflateResetKeep: fr,
|
|
977
|
+
inflateInit: gr,
|
|
978
|
+
inflateInit2: hr,
|
|
979
|
+
inflate: (e, t) => {
|
|
980
|
+
let n, r, i, a, o, s, c, l, u, d, f, p, m, h, g = 0, _, v, y, b, x, S, C, w, T = /* @__PURE__ */ new Uint8Array(4), E, D, O = new Uint8Array([
|
|
981
|
+
16,
|
|
982
|
+
17,
|
|
983
|
+
18,
|
|
984
|
+
0,
|
|
985
|
+
8,
|
|
986
|
+
7,
|
|
987
|
+
9,
|
|
988
|
+
6,
|
|
989
|
+
10,
|
|
990
|
+
5,
|
|
991
|
+
11,
|
|
992
|
+
4,
|
|
993
|
+
12,
|
|
994
|
+
3,
|
|
995
|
+
13,
|
|
996
|
+
2,
|
|
997
|
+
14,
|
|
998
|
+
1,
|
|
999
|
+
15
|
|
1000
|
+
]);
|
|
1001
|
+
if (!e || !e.state || !e.output || !e.input && e.avail_in !== 0) return X;
|
|
1002
|
+
n = e.state, n.mode === Z && (n.mode = Hn), o = e.next_out, i = e.output, c = e.avail_out, a = e.next_in, r = e.input, s = e.avail_in, l = n.hold, u = n.bits, d = s, f = c, w = wn;
|
|
1003
|
+
inf_leave: for (;;) switch (n.mode) {
|
|
1004
|
+
case jn:
|
|
1005
|
+
if (n.wrap === 0) {
|
|
1006
|
+
n.mode = Hn;
|
|
1007
|
+
break;
|
|
1008
|
+
}
|
|
1009
|
+
for (; u < 16;) {
|
|
1010
|
+
if (s === 0) break inf_leave;
|
|
1011
|
+
s--, l += r[a++] << u, u += 8;
|
|
1012
|
+
}
|
|
1013
|
+
if (n.wrap & 2 && l === 35615) {
|
|
1014
|
+
n.check = 0, T[0] = l & 255, T[1] = l >>> 8 & 255, n.check = P(n.check, T, 2, 0), l = 0, u = 0, n.mode = Mn;
|
|
1015
|
+
break;
|
|
1016
|
+
}
|
|
1017
|
+
if (n.flags = 0, n.head && (n.head.done = !1), !(n.wrap & 1) || (((l & 255) << 8) + (l >> 8)) % 31) {
|
|
1018
|
+
e.msg = "incorrect header check", n.mode = Q;
|
|
1019
|
+
break;
|
|
1020
|
+
}
|
|
1021
|
+
if ((l & 15) !== An) {
|
|
1022
|
+
e.msg = "unknown compression method", n.mode = Q;
|
|
1023
|
+
break;
|
|
1024
|
+
}
|
|
1025
|
+
if (l >>>= 4, u -= 4, C = (l & 15) + 8, n.wbits === 0) n.wbits = C;
|
|
1026
|
+
else if (C > n.wbits) {
|
|
1027
|
+
e.msg = "invalid window size", n.mode = Q;
|
|
1028
|
+
break;
|
|
1029
|
+
}
|
|
1030
|
+
n.dmax = 1 << n.wbits, e.adler = n.check = 1, n.mode = l & 512 ? Bn : Z, l = 0, u = 0;
|
|
1031
|
+
break;
|
|
1032
|
+
case Mn:
|
|
1033
|
+
for (; u < 16;) {
|
|
1034
|
+
if (s === 0) break inf_leave;
|
|
1035
|
+
s--, l += r[a++] << u, u += 8;
|
|
1036
|
+
}
|
|
1037
|
+
if (n.flags = l, (n.flags & 255) !== An) {
|
|
1038
|
+
e.msg = "unknown compression method", n.mode = Q;
|
|
1039
|
+
break;
|
|
1040
|
+
}
|
|
1041
|
+
if (n.flags & 57344) {
|
|
1042
|
+
e.msg = "unknown header flags set", n.mode = Q;
|
|
1043
|
+
break;
|
|
1044
|
+
}
|
|
1045
|
+
n.head && (n.head.text = l >> 8 & 1), n.flags & 512 && (T[0] = l & 255, T[1] = l >>> 8 & 255, n.check = P(n.check, T, 2, 0)), l = 0, u = 0, n.mode = Nn;
|
|
1046
|
+
case Nn:
|
|
1047
|
+
for (; u < 32;) {
|
|
1048
|
+
if (s === 0) break inf_leave;
|
|
1049
|
+
s--, l += r[a++] << u, u += 8;
|
|
1050
|
+
}
|
|
1051
|
+
n.head && (n.head.time = l), n.flags & 512 && (T[0] = l & 255, T[1] = l >>> 8 & 255, T[2] = l >>> 16 & 255, T[3] = l >>> 24 & 255, n.check = P(n.check, T, 4, 0)), l = 0, u = 0, n.mode = Pn;
|
|
1052
|
+
case Pn:
|
|
1053
|
+
for (; u < 16;) {
|
|
1054
|
+
if (s === 0) break inf_leave;
|
|
1055
|
+
s--, l += r[a++] << u, u += 8;
|
|
1056
|
+
}
|
|
1057
|
+
n.head && (n.head.xflags = l & 255, n.head.os = l >> 8), n.flags & 512 && (T[0] = l & 255, T[1] = l >>> 8 & 255, n.check = P(n.check, T, 2, 0)), l = 0, u = 0, n.mode = Fn;
|
|
1058
|
+
case Fn:
|
|
1059
|
+
if (n.flags & 1024) {
|
|
1060
|
+
for (; u < 16;) {
|
|
1061
|
+
if (s === 0) break inf_leave;
|
|
1062
|
+
s--, l += r[a++] << u, u += 8;
|
|
1063
|
+
}
|
|
1064
|
+
n.length = l, n.head && (n.head.extra_len = l), n.flags & 512 && (T[0] = l & 255, T[1] = l >>> 8 & 255, n.check = P(n.check, T, 2, 0)), l = 0, u = 0;
|
|
1065
|
+
} else n.head && (n.head.extra = null);
|
|
1066
|
+
n.mode = In;
|
|
1067
|
+
case In:
|
|
1068
|
+
if (n.flags & 1024 && (p = n.length, p > s && (p = s), p && (n.head && (C = n.head.extra_len - n.length, n.head.extra || (n.head.extra = new Uint8Array(n.head.extra_len)), n.head.extra.set(r.subarray(a, a + p), C)), n.flags & 512 && (n.check = P(n.check, r, p, a)), s -= p, a += p, n.length -= p), n.length)) break inf_leave;
|
|
1069
|
+
n.length = 0, n.mode = Ln;
|
|
1070
|
+
case Ln:
|
|
1071
|
+
if (n.flags & 2048) {
|
|
1072
|
+
if (s === 0) break inf_leave;
|
|
1073
|
+
p = 0;
|
|
1074
|
+
do
|
|
1075
|
+
C = r[a + p++], n.head && C && n.length < 65536 && (n.head.name += String.fromCharCode(C));
|
|
1076
|
+
while (C && p < s);
|
|
1077
|
+
if (n.flags & 512 && (n.check = P(n.check, r, p, a)), s -= p, a += p, C) break inf_leave;
|
|
1078
|
+
} else n.head && (n.head.name = null);
|
|
1079
|
+
n.length = 0, n.mode = Rn;
|
|
1080
|
+
case Rn:
|
|
1081
|
+
if (n.flags & 4096) {
|
|
1082
|
+
if (s === 0) break inf_leave;
|
|
1083
|
+
p = 0;
|
|
1084
|
+
do
|
|
1085
|
+
C = r[a + p++], n.head && C && n.length < 65536 && (n.head.comment += String.fromCharCode(C));
|
|
1086
|
+
while (C && p < s);
|
|
1087
|
+
if (n.flags & 512 && (n.check = P(n.check, r, p, a)), s -= p, a += p, C) break inf_leave;
|
|
1088
|
+
} else n.head && (n.head.comment = null);
|
|
1089
|
+
n.mode = zn;
|
|
1090
|
+
case zn:
|
|
1091
|
+
if (n.flags & 512) {
|
|
1092
|
+
for (; u < 16;) {
|
|
1093
|
+
if (s === 0) break inf_leave;
|
|
1094
|
+
s--, l += r[a++] << u, u += 8;
|
|
1095
|
+
}
|
|
1096
|
+
if (l !== (n.check & 65535)) {
|
|
1097
|
+
e.msg = "header crc mismatch", n.mode = Q;
|
|
1098
|
+
break;
|
|
1099
|
+
}
|
|
1100
|
+
l = 0, u = 0;
|
|
1101
|
+
}
|
|
1102
|
+
n.head && (n.head.hcrc = n.flags >> 9 & 1, n.head.done = !0), e.adler = n.check = 0, n.mode = Z;
|
|
1103
|
+
break;
|
|
1104
|
+
case Bn:
|
|
1105
|
+
for (; u < 32;) {
|
|
1106
|
+
if (s === 0) break inf_leave;
|
|
1107
|
+
s--, l += r[a++] << u, u += 8;
|
|
1108
|
+
}
|
|
1109
|
+
e.adler = n.check = ur(l), l = 0, u = 0, n.mode = Vn;
|
|
1110
|
+
case Vn:
|
|
1111
|
+
if (n.havedict === 0) return e.next_out = o, e.avail_out = c, e.next_in = a, e.avail_in = s, n.hold = l, n.bits = u, En;
|
|
1112
|
+
e.adler = n.check = 1, n.mode = Z;
|
|
1113
|
+
case Z: if (t === Sn || t === Cn) break inf_leave;
|
|
1114
|
+
case Hn:
|
|
1115
|
+
if (n.last) {
|
|
1116
|
+
l >>>= u & 7, u -= u & 7, n.mode = nr;
|
|
1117
|
+
break;
|
|
1118
|
+
}
|
|
1119
|
+
for (; u < 3;) {
|
|
1120
|
+
if (s === 0) break inf_leave;
|
|
1121
|
+
s--, l += r[a++] << u, u += 8;
|
|
1122
|
+
}
|
|
1123
|
+
switch (n.last = l & 1, l >>>= 1, --u, l & 3) {
|
|
1124
|
+
case 0:
|
|
1125
|
+
n.mode = Un;
|
|
1126
|
+
break;
|
|
1127
|
+
case 1:
|
|
1128
|
+
if (br(n), n.mode = Yn, t === Cn) {
|
|
1129
|
+
l >>>= 2, u -= 2;
|
|
1130
|
+
break inf_leave;
|
|
1131
|
+
}
|
|
1132
|
+
break;
|
|
1133
|
+
case 2:
|
|
1134
|
+
n.mode = Kn;
|
|
1135
|
+
break;
|
|
1136
|
+
case 3: e.msg = "invalid block type", n.mode = Q;
|
|
1137
|
+
}
|
|
1138
|
+
l >>>= 2, u -= 2;
|
|
1139
|
+
break;
|
|
1140
|
+
case Un:
|
|
1141
|
+
for (l >>>= u & 7, u -= u & 7; u < 32;) {
|
|
1142
|
+
if (s === 0) break inf_leave;
|
|
1143
|
+
s--, l += r[a++] << u, u += 8;
|
|
1144
|
+
}
|
|
1145
|
+
if ((l & 65535) != (l >>> 16 ^ 65535)) {
|
|
1146
|
+
e.msg = "invalid stored block lengths", n.mode = Q;
|
|
1147
|
+
break;
|
|
1148
|
+
}
|
|
1149
|
+
if (n.length = l & 65535, l = 0, u = 0, n.mode = Wn, t === Cn) break inf_leave;
|
|
1150
|
+
case Wn: n.mode = Gn;
|
|
1151
|
+
case Gn:
|
|
1152
|
+
if (p = n.length, p) {
|
|
1153
|
+
if (p > s && (p = s), p > c && (p = c), p === 0) break inf_leave;
|
|
1154
|
+
i.set(r.subarray(a, a + p), o), s -= p, a += p, c -= p, o += p, n.length -= p;
|
|
1155
|
+
break;
|
|
1156
|
+
}
|
|
1157
|
+
n.mode = Z;
|
|
1158
|
+
break;
|
|
1159
|
+
case Kn:
|
|
1160
|
+
for (; u < 14;) {
|
|
1161
|
+
if (s === 0) break inf_leave;
|
|
1162
|
+
s--, l += r[a++] << u, u += 8;
|
|
1163
|
+
}
|
|
1164
|
+
if (n.nlen = (l & 31) + 257, l >>>= 5, u -= 5, n.ndist = (l & 31) + 1, l >>>= 5, u -= 5, n.ncode = (l & 15) + 4, l >>>= 4, u -= 4, n.nlen > 286 || n.ndist > 30) {
|
|
1165
|
+
e.msg = "too many length or distance symbols", n.mode = Q;
|
|
1166
|
+
break;
|
|
1167
|
+
}
|
|
1168
|
+
n.have = 0, n.mode = qn;
|
|
1169
|
+
case qn:
|
|
1170
|
+
for (; n.have < n.ncode;) {
|
|
1171
|
+
for (; u < 3;) {
|
|
1172
|
+
if (s === 0) break inf_leave;
|
|
1173
|
+
s--, l += r[a++] << u, u += 8;
|
|
1174
|
+
}
|
|
1175
|
+
n.lens[O[n.have++]] = l & 7, l >>>= 3, u -= 3;
|
|
1176
|
+
}
|
|
1177
|
+
for (; n.have < 19;) n.lens[O[n.have++]] = 0;
|
|
1178
|
+
if (n.lencode = n.lendyn, n.lenbits = 7, E = { bits: n.lenbits }, w = _n(vn, n.lens, 0, 19, n.lencode, 0, n.work, E), n.lenbits = E.bits, w) {
|
|
1179
|
+
e.msg = "invalid code lengths set", n.mode = Q;
|
|
1180
|
+
break;
|
|
1181
|
+
}
|
|
1182
|
+
n.have = 0, n.mode = Jn;
|
|
1183
|
+
case Jn:
|
|
1184
|
+
for (; n.have < n.nlen + n.ndist;) {
|
|
1185
|
+
for (; g = n.lencode[l & (1 << n.lenbits) - 1], _ = g >>> 24, v = g >>> 16 & 255, y = g & 65535, !(_ <= u);) {
|
|
1186
|
+
if (s === 0) break inf_leave;
|
|
1187
|
+
s--, l += r[a++] << u, u += 8;
|
|
1188
|
+
}
|
|
1189
|
+
if (y < 16) l >>>= _, u -= _, n.lens[n.have++] = y;
|
|
1190
|
+
else {
|
|
1191
|
+
if (y === 16) {
|
|
1192
|
+
for (D = _ + 2; u < D;) {
|
|
1193
|
+
if (s === 0) break inf_leave;
|
|
1194
|
+
s--, l += r[a++] << u, u += 8;
|
|
1195
|
+
}
|
|
1196
|
+
if (l >>>= _, u -= _, n.have === 0) {
|
|
1197
|
+
e.msg = "invalid bit length repeat", n.mode = Q;
|
|
1198
|
+
break;
|
|
1199
|
+
}
|
|
1200
|
+
C = n.lens[n.have - 1], p = 3 + (l & 3), l >>>= 2, u -= 2;
|
|
1201
|
+
} else if (y === 17) {
|
|
1202
|
+
for (D = _ + 3; u < D;) {
|
|
1203
|
+
if (s === 0) break inf_leave;
|
|
1204
|
+
s--, l += r[a++] << u, u += 8;
|
|
1205
|
+
}
|
|
1206
|
+
l >>>= _, u -= _, C = 0, p = 3 + (l & 7), l >>>= 3, u -= 3;
|
|
1207
|
+
} else {
|
|
1208
|
+
for (D = _ + 7; u < D;) {
|
|
1209
|
+
if (s === 0) break inf_leave;
|
|
1210
|
+
s--, l += r[a++] << u, u += 8;
|
|
1211
|
+
}
|
|
1212
|
+
l >>>= _, u -= _, C = 0, p = 11 + (l & 127), l >>>= 7, u -= 7;
|
|
1213
|
+
}
|
|
1214
|
+
if (n.have + p > n.nlen + n.ndist) {
|
|
1215
|
+
e.msg = "invalid bit length repeat", n.mode = Q;
|
|
1216
|
+
break;
|
|
1217
|
+
}
|
|
1218
|
+
for (; p--;) n.lens[n.have++] = C;
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
if (n.mode === Q) break;
|
|
1222
|
+
if (n.lens[256] === 0) {
|
|
1223
|
+
e.msg = "invalid code -- missing end-of-block", n.mode = Q;
|
|
1224
|
+
break;
|
|
1225
|
+
}
|
|
1226
|
+
if (n.lenbits = 9, E = { bits: n.lenbits }, w = _n(yn, n.lens, 0, n.nlen, n.lencode, 0, n.work, E), n.lenbits = E.bits, w) {
|
|
1227
|
+
e.msg = "invalid literal/lengths set", n.mode = Q;
|
|
1228
|
+
break;
|
|
1229
|
+
}
|
|
1230
|
+
if (n.distbits = 6, n.distcode = n.distdyn, E = { bits: n.distbits }, w = _n(bn, n.lens, n.nlen, n.ndist, n.distcode, 0, n.work, E), n.distbits = E.bits, w) {
|
|
1231
|
+
e.msg = "invalid distances set", n.mode = Q;
|
|
1232
|
+
break;
|
|
1233
|
+
}
|
|
1234
|
+
if (n.mode = Yn, t === Cn) break inf_leave;
|
|
1235
|
+
case Yn: n.mode = Xn;
|
|
1236
|
+
case Xn:
|
|
1237
|
+
if (s >= 6 && c >= 258) {
|
|
1238
|
+
e.next_out = o, e.avail_out = c, e.next_in = a, e.avail_in = s, n.hold = l, n.bits = u, on(e, f), o = e.next_out, i = e.output, c = e.avail_out, a = e.next_in, r = e.input, s = e.avail_in, l = n.hold, u = n.bits, n.mode === Z && (n.back = -1);
|
|
1239
|
+
break;
|
|
1240
|
+
}
|
|
1241
|
+
for (n.back = 0; g = n.lencode[l & (1 << n.lenbits) - 1], _ = g >>> 24, v = g >>> 16 & 255, y = g & 65535, !(_ <= u);) {
|
|
1242
|
+
if (s === 0) break inf_leave;
|
|
1243
|
+
s--, l += r[a++] << u, u += 8;
|
|
1244
|
+
}
|
|
1245
|
+
if (v && !(v & 240)) {
|
|
1246
|
+
for (b = _, x = v, S = y; g = n.lencode[S + ((l & (1 << b + x) - 1) >> b)], _ = g >>> 24, v = g >>> 16 & 255, y = g & 65535, !(b + _ <= u);) {
|
|
1247
|
+
if (s === 0) break inf_leave;
|
|
1248
|
+
s--, l += r[a++] << u, u += 8;
|
|
1249
|
+
}
|
|
1250
|
+
l >>>= b, u -= b, n.back += b;
|
|
1251
|
+
}
|
|
1252
|
+
if (l >>>= _, u -= _, n.back += _, n.length = y, v === 0) {
|
|
1253
|
+
n.mode = tr;
|
|
1254
|
+
break;
|
|
1255
|
+
}
|
|
1256
|
+
if (v & 32) {
|
|
1257
|
+
n.back = -1, n.mode = Z;
|
|
1258
|
+
break;
|
|
1259
|
+
}
|
|
1260
|
+
if (v & 64) {
|
|
1261
|
+
e.msg = "invalid literal/length code", n.mode = Q;
|
|
1262
|
+
break;
|
|
1263
|
+
}
|
|
1264
|
+
n.extra = v & 15, n.mode = Zn;
|
|
1265
|
+
case Zn:
|
|
1266
|
+
if (n.extra) {
|
|
1267
|
+
for (D = n.extra; u < D;) {
|
|
1268
|
+
if (s === 0) break inf_leave;
|
|
1269
|
+
s--, l += r[a++] << u, u += 8;
|
|
1270
|
+
}
|
|
1271
|
+
n.length += l & (1 << n.extra) - 1, l >>>= n.extra, u -= n.extra, n.back += n.extra;
|
|
1272
|
+
}
|
|
1273
|
+
n.was = n.length, n.mode = Qn;
|
|
1274
|
+
case Qn:
|
|
1275
|
+
for (; g = n.distcode[l & (1 << n.distbits) - 1], _ = g >>> 24, v = g >>> 16 & 255, y = g & 65535, !(_ <= u);) {
|
|
1276
|
+
if (s === 0) break inf_leave;
|
|
1277
|
+
s--, l += r[a++] << u, u += 8;
|
|
1278
|
+
}
|
|
1279
|
+
if (!(v & 240)) {
|
|
1280
|
+
for (b = _, x = v, S = y; g = n.distcode[S + ((l & (1 << b + x) - 1) >> b)], _ = g >>> 24, v = g >>> 16 & 255, y = g & 65535, !(b + _ <= u);) {
|
|
1281
|
+
if (s === 0) break inf_leave;
|
|
1282
|
+
s--, l += r[a++] << u, u += 8;
|
|
1283
|
+
}
|
|
1284
|
+
l >>>= b, u -= b, n.back += b;
|
|
1285
|
+
}
|
|
1286
|
+
if (l >>>= _, u -= _, n.back += _, v & 64) {
|
|
1287
|
+
e.msg = "invalid distance code", n.mode = Q;
|
|
1288
|
+
break;
|
|
1289
|
+
}
|
|
1290
|
+
n.offset = y, n.extra = v & 15, n.mode = $n;
|
|
1291
|
+
case $n:
|
|
1292
|
+
if (n.extra) {
|
|
1293
|
+
for (D = n.extra; u < D;) {
|
|
1294
|
+
if (s === 0) break inf_leave;
|
|
1295
|
+
s--, l += r[a++] << u, u += 8;
|
|
1296
|
+
}
|
|
1297
|
+
n.offset += l & (1 << n.extra) - 1, l >>>= n.extra, u -= n.extra, n.back += n.extra;
|
|
1298
|
+
}
|
|
1299
|
+
if (n.offset > n.dmax) {
|
|
1300
|
+
e.msg = "invalid distance too far back", n.mode = Q;
|
|
1301
|
+
break;
|
|
1302
|
+
}
|
|
1303
|
+
n.mode = er;
|
|
1304
|
+
case er:
|
|
1305
|
+
if (c === 0) break inf_leave;
|
|
1306
|
+
if (p = f - c, n.offset > p) {
|
|
1307
|
+
if (p = n.offset - p, p > n.whave && n.sane) {
|
|
1308
|
+
e.msg = "invalid distance too far back", n.mode = Q;
|
|
1309
|
+
break;
|
|
1310
|
+
}
|
|
1311
|
+
p > n.wnext ? (p -= n.wnext, m = n.wsize - p) : m = n.wnext - p, p > n.length && (p = n.length), h = n.window;
|
|
1312
|
+
} else h = i, m = o - n.offset, p = n.length;
|
|
1313
|
+
p > c && (p = c), c -= p, n.length -= p;
|
|
1314
|
+
do
|
|
1315
|
+
i[o++] = h[m++];
|
|
1316
|
+
while (--p);
|
|
1317
|
+
n.length === 0 && (n.mode = Xn);
|
|
1318
|
+
break;
|
|
1319
|
+
case tr:
|
|
1320
|
+
if (c === 0) break inf_leave;
|
|
1321
|
+
i[o++] = n.length, c--, n.mode = Xn;
|
|
1322
|
+
break;
|
|
1323
|
+
case nr:
|
|
1324
|
+
if (n.wrap) {
|
|
1325
|
+
for (; u < 32;) {
|
|
1326
|
+
if (s === 0) break inf_leave;
|
|
1327
|
+
s--, l |= r[a++] << u, u += 8;
|
|
1328
|
+
}
|
|
1329
|
+
if (f -= c, e.total_out += f, n.total += f, f && (e.adler = n.check = n.flags ? P(n.check, i, f, o - f) : Ae(n.check, i, f, o - f)), f = c, (n.flags ? l : ur(l)) !== n.check) {
|
|
1330
|
+
e.msg = "incorrect data check", n.mode = Q;
|
|
1331
|
+
break;
|
|
1332
|
+
}
|
|
1333
|
+
l = 0, u = 0;
|
|
1334
|
+
}
|
|
1335
|
+
n.mode = rr;
|
|
1336
|
+
case rr:
|
|
1337
|
+
if (n.wrap && n.flags) {
|
|
1338
|
+
for (; u < 32;) {
|
|
1339
|
+
if (s === 0) break inf_leave;
|
|
1340
|
+
s--, l += r[a++] << u, u += 8;
|
|
1341
|
+
}
|
|
1342
|
+
if (l !== (n.total & 4294967295)) {
|
|
1343
|
+
e.msg = "incorrect length check", n.mode = Q;
|
|
1344
|
+
break;
|
|
1345
|
+
}
|
|
1346
|
+
l = 0, u = 0;
|
|
1347
|
+
}
|
|
1348
|
+
n.mode = ir;
|
|
1349
|
+
case ir:
|
|
1350
|
+
w = Tn;
|
|
1351
|
+
break inf_leave;
|
|
1352
|
+
case Q:
|
|
1353
|
+
w = Dn;
|
|
1354
|
+
break inf_leave;
|
|
1355
|
+
case ar: return On;
|
|
1356
|
+
case or:
|
|
1357
|
+
default: return X;
|
|
1358
|
+
}
|
|
1359
|
+
return e.next_out = o, e.avail_out = c, e.next_in = a, e.avail_in = s, n.hold = l, n.bits = u, (n.wsize || f !== e.avail_out && n.mode < Q && (n.mode < nr || t !== xn)) && xr(e, e.output, e.next_out, f - e.avail_out), d -= e.avail_in, f -= e.avail_out, e.total_in += d, e.total_out += f, n.total += f, n.wrap && f && (e.adler = n.check = n.flags ? P(n.check, i, f, e.next_out - f) : Ae(n.check, i, f, e.next_out - f)), e.data_type = n.bits + (n.last ? 64 : 0) + (n.mode === Z ? 128 : 0) + (n.mode === Yn || n.mode === Wn ? 256 : 0), (d === 0 && f === 0 || t === xn) && w === wn && (w = kn), w;
|
|
1360
|
+
},
|
|
1361
|
+
inflateEnd: (e) => {
|
|
1362
|
+
if (!e || !e.state) return X;
|
|
1363
|
+
let t = e.state;
|
|
1364
|
+
return t.window &&= null, e.state = null, wn;
|
|
1365
|
+
},
|
|
1366
|
+
inflateGetHeader: (e, t) => {
|
|
1367
|
+
if (!e || !e.state) return X;
|
|
1368
|
+
let n = e.state;
|
|
1369
|
+
return n.wrap & 2 ? (n.head = t, t.done = !1, wn) : X;
|
|
1370
|
+
},
|
|
1371
|
+
inflateSetDictionary: (e, t) => {
|
|
1372
|
+
let n = t.length, r, i, a;
|
|
1373
|
+
return !e || !e.state || (r = e.state, r.wrap !== 0 && r.mode !== Vn) ? X : r.mode === Vn && (i = 1, i = Ae(i, t, n, 0), i !== r.check) ? Dn : (a = xr(e, t, n, n), a ? (r.mode = ar, On) : (r.havedict = 1, wn));
|
|
1374
|
+
},
|
|
1375
|
+
inflateInfo: "pako inflate (from Nodeca project)"
|
|
1376
|
+
};
|
|
1377
|
+
function Sr() {
|
|
1378
|
+
this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1;
|
|
1379
|
+
}
|
|
1380
|
+
var Cr = Sr, wr = Object.prototype.toString, { Z_NO_FLUSH: Tr, Z_FINISH: Er, Z_OK: Dr, Z_STREAM_END: Or, Z_NEED_DICT: kr, Z_STREAM_ERROR: Ar, Z_DATA_ERROR: jr, Z_MEM_ERROR: Mr } = Ne;
|
|
1381
|
+
function Nr(e) {
|
|
1382
|
+
this.options = Pt.assign({
|
|
1383
|
+
chunkSize: 1024 * 64,
|
|
1384
|
+
windowBits: 15,
|
|
1385
|
+
to: ""
|
|
1386
|
+
}, e || {});
|
|
1387
|
+
let t = this.options;
|
|
1388
|
+
t.raw && t.windowBits >= 0 && t.windowBits < 16 && (t.windowBits = -t.windowBits, t.windowBits === 0 && (t.windowBits = -15)), t.windowBits >= 0 && t.windowBits < 16 && !(e && e.windowBits) && (t.windowBits += 32), t.windowBits > 15 && t.windowBits < 48 && (t.windowBits & 15 || (t.windowBits |= 15)), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new Vt(), this.strm.avail_out = 0;
|
|
1389
|
+
let n = $.inflateInit2(this.strm, t.windowBits);
|
|
1390
|
+
if (n !== Dr || (this.header = new Cr(), $.inflateGetHeader(this.strm, this.header), t.dictionary && (typeof t.dictionary == "string" ? t.dictionary = zt.string2buf(t.dictionary) : wr.call(t.dictionary) === "[object ArrayBuffer]" && (t.dictionary = new Uint8Array(t.dictionary)), t.raw && (n = $.inflateSetDictionary(this.strm, t.dictionary), n !== Dr)))) throw Error(Me[n]);
|
|
1391
|
+
}
|
|
1392
|
+
Nr.prototype.push = function(e, t) {
|
|
1393
|
+
let n = this.strm, r = this.options.chunkSize, i = this.options.dictionary, a, o, s;
|
|
1394
|
+
if (this.ended) return !1;
|
|
1395
|
+
for (o = t === ~~t ? t : t === !0 ? Er : Tr, wr.call(e) === "[object ArrayBuffer]" ? n.input = new Uint8Array(e) : n.input = e, n.next_in = 0, n.avail_in = n.input.length;;) {
|
|
1396
|
+
for (n.avail_out === 0 && (n.output = new Uint8Array(r), n.next_out = 0, n.avail_out = r), a = $.inflate(n, o), a === kr && i && (a = $.inflateSetDictionary(n, i), a === Dr ? a = $.inflate(n, o) : a === jr && (a = kr)); n.avail_in > 0 && a === Or && n.state.wrap > 0 && e[n.next_in] !== 0;) $.inflateReset(n), a = $.inflate(n, o);
|
|
1397
|
+
switch (a) {
|
|
1398
|
+
case Ar:
|
|
1399
|
+
case jr:
|
|
1400
|
+
case kr:
|
|
1401
|
+
case Mr: return this.onEnd(a), this.ended = !0, !1;
|
|
1402
|
+
}
|
|
1403
|
+
if (s = n.avail_out, n.next_out && (n.avail_out === 0 || a === Or)) if (this.options.to === "string") {
|
|
1404
|
+
let e = zt.utf8border(n.output, n.next_out), t = n.next_out - e, i = zt.buf2string(n.output, e);
|
|
1405
|
+
n.next_out = t, n.avail_out = r - t, t && n.output.set(n.output.subarray(e, e + t), 0), this.onData(i);
|
|
1406
|
+
} else this.onData(n.output.length === n.next_out ? n.output : n.output.subarray(0, n.next_out));
|
|
1407
|
+
if (!(a === Dr && s === 0)) {
|
|
1408
|
+
if (a === Or) return a = $.inflateEnd(this.strm), this.onEnd(a), this.ended = !0, !0;
|
|
1409
|
+
if (n.avail_in === 0) break;
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
return !0;
|
|
1413
|
+
}, Nr.prototype.onData = function(e) {
|
|
1414
|
+
this.chunks.push(e);
|
|
1415
|
+
}, Nr.prototype.onEnd = function(e) {
|
|
1416
|
+
e === Dr && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = Pt.flattenChunks(this.chunks)), this.chunks = [], this.err = e, this.msg = this.strm.msg;
|
|
1417
|
+
};
|
|
1418
|
+
function Pr(e, t) {
|
|
1419
|
+
let n = new Nr(t);
|
|
1420
|
+
if (n.push(e), n.err) throw n.msg || Me[n.err];
|
|
1421
|
+
return n.result;
|
|
1422
|
+
}
|
|
1423
|
+
function Fr(e, t) {
|
|
1424
|
+
return t ||= {}, t.raw = !0, Pr(e, t);
|
|
1425
|
+
}
|
|
1426
|
+
var Ir = {
|
|
1427
|
+
Inflate: Nr,
|
|
1428
|
+
inflate: Pr,
|
|
1429
|
+
inflateRaw: Fr,
|
|
1430
|
+
ungzip: Pr,
|
|
1431
|
+
constants: Ne
|
|
1432
|
+
}, { Deflate: Lr, deflate: Rr, deflateRaw: zr, gzip: Br } = nn, { Inflate: Vr, inflate: Hr, inflateRaw: Ur, ungzip: Wr } = Ir, Gr = Lr, Kr = Rr, qr = zr, Jr = Br, Yr = Vr, Xr = Hr, Zr = Ur, Qr = Wr, $r = Ne, ei = {
|
|
1433
|
+
Deflate: Gr,
|
|
1434
|
+
deflate: Kr,
|
|
1435
|
+
deflateRaw: qr,
|
|
1436
|
+
gzip: Jr,
|
|
1437
|
+
Inflate: Yr,
|
|
1438
|
+
inflate: Xr,
|
|
1439
|
+
inflateRaw: Zr,
|
|
1440
|
+
ungzip: Qr,
|
|
1441
|
+
constants: $r
|
|
1442
|
+
};
|
|
1443
|
+
//#endregion
|
|
1444
|
+
export { Kr as deflate_1$2, Xr as inflate_1$2, t as pako_exports };
|
|
1445
|
+
/* 独立思考,明辨是非 */
|