@hkyhy/marsun-components-core 0.1.89 → 0.1.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Audit/AuditLogList.d.ts +27 -0
- package/dist/components/Audit/AuditLogList.js +272 -0
- package/dist/components/Audit/AuditLogList.js.map +1 -0
- package/dist/components/Audit/formatAuditCurl.d.ts +27 -0
- package/dist/components/Audit/formatAuditCurl.js +115 -0
- package/dist/components/Audit/formatAuditCurl.js.map +1 -0
- package/dist/components/Audit/formatAuditJson.d.ts +15 -0
- package/dist/components/Audit/formatAuditJson.js +135 -0
- package/dist/components/Audit/formatAuditJson.js.map +1 -0
- package/dist/components/Audit/index.d.ts +3 -0
- package/dist/components/Audit/style.module.scss.js +30 -0
- package/dist/components/Audit/style.module.scss.js.map +1 -0
- package/dist/components/Audit/types.d.ts +39 -0
- package/dist/components/Editor/RichTextEditor/RichTextEditor.d.ts +24 -0
- package/dist/components/Editor/RichTextEditor/RichTextEditor.js +93 -0
- package/dist/components/Editor/RichTextEditor/RichTextEditor.js.map +1 -0
- package/dist/components/Editor/RichTextEditor/index.d.ts +2 -0
- package/dist/components/Editor/RichTextEditor/style.module.scss.js +11 -0
- package/dist/components/Editor/RichTextEditor/style.module.scss.js.map +1 -0
- package/dist/components/Editor/VariablePicker.d.ts +19 -0
- package/dist/components/Editor/VariablePicker.js +55 -0
- package/dist/components/Editor/VariablePicker.js.map +1 -0
- package/dist/components/Editor/index.d.ts +7 -0
- package/dist/components/Editor/index.js +21 -0
- package/dist/components/Editor/index.js.map +1 -0
- package/dist/components/Editor/msgVarTokenPlugin.d.ts +13 -0
- package/dist/components/Editor/msgVarTokenPlugin.js +94 -0
- package/dist/components/Editor/msgVarTokenPlugin.js.map +1 -0
- package/dist/components/Editor/variableMention.d.ts +37 -0
- package/dist/components/Editor/variableMention.js +64 -0
- package/dist/components/Editor/variableMention.js.map +1 -0
- package/dist/components/FormInfo/RichTextField/index.d.ts +21 -0
- package/dist/components/FormInfo/RichTextField/index.js +82 -0
- package/dist/components/FormInfo/RichTextField/index.js.map +1 -0
- package/dist/components/FormInfo/RichTextField/style.module.scss.js +9 -0
- package/dist/components/FormInfo/RichTextField/style.module.scss.js.map +1 -0
- package/dist/components/FormInfo/VariableMentionInput/index.d.ts +17 -0
- package/dist/components/FormInfo/VariableMentionInput/index.js +73 -0
- package/dist/components/FormInfo/VariableMentionInput/index.js.map +1 -0
- package/dist/components/FormInfo/VariableMentionInput/style.module.scss.js +11 -0
- package/dist/components/FormInfo/VariableMentionInput/style.module.scss.js.map +1 -0
- package/dist/components/FormInfo/fields.d.ts +5 -0
- package/dist/components/FormInfo/fields.js +32 -23
- package/dist/components/FormInfo/fields.js.map +1 -1
- package/dist/components/FormInfo/index.d.ts +4 -0
- package/dist/components/StateBar/StateBar.d.ts +19 -6
- package/dist/components/StateBar/StateBar.js +87 -50
- package/dist/components/StateBar/StateBar.js.map +1 -1
- package/dist/components/StateBar/style.module.scss.js +13 -10
- package/dist/components/StateBar/style.module.scss.js.map +1 -1
- package/dist/components/Tools/Inbox/InboxBell/InboxBell.d.ts +45 -0
- package/dist/components/Tools/Inbox/InboxBell/InboxBell.js +156 -0
- package/dist/components/Tools/Inbox/InboxBell/InboxBell.js.map +1 -0
- package/dist/components/Tools/Inbox/InboxBell/index.d.ts +2 -0
- package/dist/components/Tools/Inbox/InboxBell/style.module.scss.js +30 -0
- package/dist/components/Tools/Inbox/InboxBell/style.module.scss.js.map +1 -0
- package/dist/components/Tools/Inbox/index.d.ts +2 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/List/columns.d.ts +8 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/List/columns.js +56 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/List/columns.js.map +1 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/MessageTemplateAdmin.d.ts +8 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/MessageTemplateAdmin.js +216 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/MessageTemplateAdmin.js.map +1 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/Modal/TemplateFormModal.d.ts +26 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/Modal/TemplateFormModal.js +190 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/Modal/TemplateFormModal.js.map +1 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/index.d.ts +3 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/style.module.scss.js +12 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/style.module.scss.js.map +1 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/types.d.ts +76 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/types.js +26 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/types.js.map +1 -0
- package/dist/components/Tools/MessageCenter/index.d.ts +3 -0
- package/dist/components/Tools/MessageCenter/utils/templateCode.d.ts +8 -0
- package/dist/components/Tools/MessageCenter/utils/templateCode.js +25 -0
- package/dist/components/Tools/MessageCenter/utils/templateCode.js.map +1 -0
- package/dist/components/Tools/index.d.ts +5 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/editor.d.ts +5 -0
- package/dist/editor.js +21 -0
- package/dist/editor.js.map +1 -0
- package/dist/form-info.js +33 -29
- package/dist/form-info.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +805 -773
- package/dist/index.js.map +1 -1
- package/dist/marsun-components-core.css +4 -1
- package/dist/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js +301 -0
- package/dist/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js +1256 -0
- package/dist/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-core/dist/index.js +2107 -0
- package/dist/node_modules/@ckeditor/ckeditor5-core/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js +259 -0
- package/dist/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-engine/dist/index.js +23990 -0
- package/dist/node_modules/@ckeditor/ckeditor5-engine/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-enter/dist/index.js +249 -0
- package/dist/node_modules/@ckeditor/ckeditor5-enter/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-essentials/dist/index.js +47 -0
- package/dist/node_modules/@ckeditor/ckeditor5-essentials/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-font/dist/index.js +100 -0
- package/dist/node_modules/@ckeditor/ckeditor5-font/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-icons/dist/index.js +31 -0
- package/dist/node_modules/@ckeditor/ckeditor5-icons/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-integrations-common/dist/index.js +194 -0
- package/dist/node_modules/@ckeditor/ckeditor5-integrations-common/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-list/dist/index.js +2042 -0
- package/dist/node_modules/@ckeditor/ckeditor5-list/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-mention/dist/index.js +9 -0
- package/dist/node_modules/@ckeditor/ckeditor5-mention/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js +167 -0
- package/dist/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-react/dist/index.js +471 -0
- package/dist/node_modules/@ckeditor/ckeditor5-react/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-select-all/dist/index.js +139 -0
- package/dist/node_modules/@ckeditor/ckeditor5-select-all/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +755 -0
- package/dist/node_modules/@ckeditor/ckeditor5-typing/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-ui/dist/index.js +7838 -0
- package/dist/node_modules/@ckeditor/ckeditor5-ui/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-ui/node_modules/color-convert/conversions.js +422 -0
- package/dist/node_modules/@ckeditor/ckeditor5-ui/node_modules/color-convert/conversions.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-ui/node_modules/color-convert/index.js +33 -0
- package/dist/node_modules/@ckeditor/ckeditor5-ui/node_modules/color-convert/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-ui/node_modules/color-convert/route.js +47 -0
- package/dist/node_modules/@ckeditor/ckeditor5-ui/node_modules/color-convert/route.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-ui/node_modules/color-name/index.js +156 -0
- package/dist/node_modules/@ckeditor/ckeditor5-ui/node_modules/color-name/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-undo/dist/index.js +313 -0
- package/dist/node_modules/@ckeditor/ckeditor5-undo/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +2942 -0
- package/dist/node_modules/@ckeditor/ckeditor5-utils/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js +892 -0
- package/dist/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-widget/dist/index.js +1047 -0
- package/dist/node_modules/@ckeditor/ckeditor5-widget/dist/index.js.map +1 -0
- package/dist/node_modules/color-parse/node_modules/color-name/index.js +153 -0
- package/dist/node_modules/color-parse/node_modules/color-name/index.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/_internal/globalThis.js +7 -0
- package/dist/node_modules/es-toolkit/dist/_internal/globalThis.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +7 -0
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeToWriteProperty.js +7 -0
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeToWriteProperty.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/assignValue.js +9 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/assignValue.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js +16 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isIndex.js +15 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isIndex.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isKey.js +9 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isKey.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js +8 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +30 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/toKey.js +8 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/toKey.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/function/debounce.js +17 -0
- package/dist/node_modules/es-toolkit/dist/compat/function/debounce.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/function/throttle.js +13 -0
- package/dist/node_modules/es-toolkit/dist/compat/function/throttle.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/assignIn.js +17 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/assignIn.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/clone.js +102 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/clone.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +8 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +33 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/get.js +39 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/get.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/has.js +21 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/has.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/keysIn.js +33 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/keysIn.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/mapValues.js +10 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/mapValues.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/merge.js +9 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/merge.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/mergeWith.js +53 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/mergeWith.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/property.js +10 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/property.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/set.js +9 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/set.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/updateWith.js +31 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/updateWith.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +8 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArray.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArray.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +8 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +9 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isElement.js +9 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isElement.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isEqualWith.js +15 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isEqualWith.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isFunction.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isFunction.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatch.js +9 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatch.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatchWith.js +81 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatchWith.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObject.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObject.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js +16 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isString.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isString.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js +8 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/matches.js +9 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/matches.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/matchesProperty.js +23 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/matchesProperty.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/eq.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/eq.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/iteratee.js +19 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/iteratee.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/times.js +11 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/times.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toFinite.js +8 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toFinite.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toInteger.js +9 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toInteger.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toNumber.js +8 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toNumber.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toPath.js +37 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toPath.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toString.js +15 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toString.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/function/after.js +11 -0
- package/dist/node_modules/es-toolkit/dist/function/after.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/function/debounce.js +30 -0
- package/dist/node_modules/es-toolkit/dist/function/debounce.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/function/identity.js +7 -0
- package/dist/node_modules/es-toolkit/dist/function/identity.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/function/noop.js +6 -0
- package/dist/node_modules/es-toolkit/dist/function/noop.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/object/clone.js +27 -0
- package/dist/node_modules/es-toolkit/dist/object/clone.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/object/cloneDeep.js +8 -0
- package/dist/node_modules/es-toolkit/dist/object/cloneDeep.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +121 -0
- package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/object/mapValues.js +12 -0
- package/dist/node_modules/es-toolkit/dist/object/mapValues.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isBuffer.js +8 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isBuffer.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isEqual.js +9 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isEqual.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isEqualWith.js +110 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isEqualWith.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +7 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isLength.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isPlainObject.js +9 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isPlainObject.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +7 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +7 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js.map +1 -0
- package/dist/styles/global.css +4 -1
- package/dist/utils/copyText.d.ts +4 -0
- package/dist/utils/copyText.js +21 -0
- package/dist/utils/copyText.js.map +1 -0
- package/package.json +9 -2
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { toNumber as t } from "./toNumber.js";
|
|
2
|
+
function n(r) {
|
|
3
|
+
return r ? (r = t(r), r === 1 / 0 || r === -1 / 0 ? (r < 0 ? -1 : 1) * Number.MAX_VALUE : r === r ? r : 0) : r === 0 ? r : 0;
|
|
4
|
+
}
|
|
5
|
+
export {
|
|
6
|
+
n as toFinite
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=toFinite.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toFinite.js","sources":["../../../../../../node_modules/es-toolkit/dist/compat/util/toFinite.mjs"],"sourcesContent":["import { toNumber } from \"./toNumber.mjs\";\n//#region src/compat/util/toFinite.ts\n/**\n* Converts `value` to a finite number.\n*\n* @param value - The value to convert.\n* @returns Returns the number.\n*\n* @example\n* toFinite(3.2); // => 3.2\n* toFinite(Number.MIN_VALUE); // => 5e-324\n* toFinite(Infinity); // => 1.7976931348623157e+308\n* toFinite('3.2'); // => 3.2\n* toFinite(Symbol.iterator); // => 0\n* toFinite(NaN); // => 0\n*/\nfunction toFinite(value) {\n\tif (!value) return value === 0 ? value : 0;\n\tvalue = toNumber(value);\n\tif (value === Infinity || value === -Infinity) return (value < 0 ? -1 : 1) * Number.MAX_VALUE;\n\treturn value === value ? value : 0;\n}\n//#endregion\nexport { toFinite };\n"],"names":["toFinite","value","toNumber"],"mappings":";AAgBA,SAASA,EAASC,GAAO;AACxB,SAAKA,KACLA,IAAQC,EAASD,CAAK,GAClBA,MAAU,SAAYA,MAAU,UAAmBA,IAAQ,IAAI,KAAK,KAAK,OAAO,YAC7EA,MAAUA,IAAQA,IAAQ,KAHdA,MAAU,IAAIA,IAAQ;AAI1C;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toInteger.js","sources":["../../../../../../node_modules/es-toolkit/dist/compat/util/toInteger.mjs"],"sourcesContent":["import { toFinite } from \"./toFinite.mjs\";\n//#region src/compat/util/toInteger.ts\n/**\n* Converts `value` to an integer.\n*\n* This function first converts `value` to a finite number. If the result has any decimal places,\n* they are removed by rounding down to the nearest whole number.\n*\n* @param value - The value to convert.\n* @returns Returns the number.\n*\n* @example\n* toInteger(3.2); // => 3\n* toInteger(Number.MIN_VALUE); // => 0\n* toInteger(Infinity); // => 1.7976931348623157e+308\n* toInteger('3.2'); // => 3\n* toInteger(Symbol.iterator); // => 0\n* toInteger(NaN); // => 0\n*/\nfunction toInteger(value) {\n\tconst finite = toFinite(value);\n\tconst remainder = finite % 1;\n\treturn remainder ? finite - remainder : finite;\n}\n//#endregion\nexport { toInteger };\n"],"names":["toInteger","value","finite","toFinite","remainder"],"mappings":";AAmBA,SAASA,EAAUC,GAAO;AACzB,QAAMC,IAASC,EAASF,CAAK,GACvBG,IAAYF,IAAS;AAC3B,SAAOE,IAAYF,IAASE,IAAYF;AACzC;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toNumber.js","sources":["../../../../../../node_modules/es-toolkit/dist/compat/util/toNumber.mjs"],"sourcesContent":["import { isSymbol } from \"../predicate/isSymbol.mjs\";\n//#region src/compat/util/toNumber.ts\n/**\n* Converts `value` to a number.\n*\n* Unlike `Number()`, this function returns `NaN` for symbols.\n*\n* @param value - The value to convert.\n* @returns Returns the number.\n*\n* @example\n* toNumber(3.2); // => 3.2\n* toNumber(Number.MIN_VALUE); // => 5e-324\n* toNumber(Infinity); // => Infinity\n* toNumber('3.2'); // => 3.2\n* toNumber(Symbol.iterator); // => NaN\n* toNumber(NaN); // => NaN\n*/\nfunction toNumber(value) {\n\tif (isSymbol(value)) return NaN;\n\treturn Number(value);\n}\n//#endregion\nexport { toNumber };\n"],"names":["toNumber","value","isSymbol"],"mappings":";AAkBA,SAASA,EAASC,GAAO;AACxB,SAAIC,EAASD,CAAK,IAAU,MACrB,OAAOA,CAAK;AACpB;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { toKey as c } from "../_internal/toKey.js";
|
|
2
|
+
import { toString as m } from "./toString.js";
|
|
3
|
+
function k(s) {
|
|
4
|
+
if (Array.isArray(s)) return s.map(c);
|
|
5
|
+
if (typeof s == "symbol") return [s];
|
|
6
|
+
s = m(s);
|
|
7
|
+
const r = [], n = s.length;
|
|
8
|
+
if (n === 0) return r;
|
|
9
|
+
let e = 0, t = "", l = "", u = !1, a = !1;
|
|
10
|
+
const h = /^-?\d+(?:\.\d+)?$/;
|
|
11
|
+
for (s.charCodeAt(0) === 46 && r.push(""); e < n; ) {
|
|
12
|
+
const i = s[e];
|
|
13
|
+
if (l) i === "\\" && e + 1 < n ? (e++, t += s[e]) : i === l ? l = "" : t += i;
|
|
14
|
+
else if (u) if (i === '"' || i === "'")
|
|
15
|
+
l = i, a = !0;
|
|
16
|
+
else if (i === "]") {
|
|
17
|
+
if (u = !1, !a && t.includes(".") && !h.test(t)) {
|
|
18
|
+
const f = t.split(".");
|
|
19
|
+
for (let o = 0; o < f.length; o++) f[o] !== "" && r.push(f[o]);
|
|
20
|
+
} else r.push(t);
|
|
21
|
+
t = "";
|
|
22
|
+
} else t += i;
|
|
23
|
+
else if (i === "[")
|
|
24
|
+
u = !0, a = !1, t && (r.push(t), t = "");
|
|
25
|
+
else if (i === ".") {
|
|
26
|
+
t && (r.push(t), t = "");
|
|
27
|
+
const f = s[e + 1];
|
|
28
|
+
(f === void 0 || f === ".") && r.push("");
|
|
29
|
+
} else t += i;
|
|
30
|
+
e++;
|
|
31
|
+
}
|
|
32
|
+
return t && r.push(t), r;
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
k as toPath
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=toPath.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toPath.js","sources":["../../../../../../node_modules/es-toolkit/dist/compat/util/toPath.mjs"],"sourcesContent":["import { toKey } from \"../_internal/toKey.mjs\";\nimport { toString } from \"./toString.mjs\";\n//#region src/compat/util/toPath.ts\n/**\n* Converts a deep key string into an array of path segments.\n*\n* This function takes a string representing a deep key (e.g., 'a.b.c' or 'a[b][c]') and breaks it down into an array of strings, each representing a segment of the path.\n*\n* @param deepKey - The deep key string to convert.\n* @returns An array of strings, each representing a segment of the path.\n*\n* Examples:\n*\n* toPath('a.b.c') // Returns ['a', 'b', 'c']\n* toPath('a[b][c]') // Returns ['a', 'b', 'c']\n* toPath('.a.b.c') // Returns ['', 'a', 'b', 'c']\n* toPath('a[\"b.c\"].d') // Returns ['a', 'b.c', 'd']\n* toPath('') // Returns []\n* toPath('.a[b].c.d[e][\"f.g\"].h') // Returns ['', 'a', 'b', 'c', 'd', 'e', 'f.g', 'h']\n*/\nfunction toPath(deepKey) {\n\tif (Array.isArray(deepKey)) return deepKey.map(toKey);\n\tif (typeof deepKey === \"symbol\") return [deepKey];\n\tdeepKey = toString(deepKey);\n\tconst result = [];\n\tconst length = deepKey.length;\n\tif (length === 0) return result;\n\tlet index = 0;\n\tlet key = \"\";\n\tlet quoteChar = \"\";\n\tlet bracket = false;\n\tlet bracketHadQuote = false;\n\tconst bracketNumberRegex = /^-?\\d+(?:\\.\\d+)?$/;\n\tif (deepKey.charCodeAt(0) === 46) result.push(\"\");\n\twhile (index < length) {\n\t\tconst char = deepKey[index];\n\t\tif (quoteChar) if (char === \"\\\\\" && index + 1 < length) {\n\t\t\tindex++;\n\t\t\tkey += deepKey[index];\n\t\t} else if (char === quoteChar) quoteChar = \"\";\n\t\telse key += char;\n\t\telse if (bracket) if (char === \"\\\"\" || char === \"'\") {\n\t\t\tquoteChar = char;\n\t\t\tbracketHadQuote = true;\n\t\t} else if (char === \"]\") {\n\t\t\tbracket = false;\n\t\t\tif (!bracketHadQuote && key.includes(\".\") && !bracketNumberRegex.test(key)) {\n\t\t\t\tconst segments = key.split(\".\");\n\t\t\t\tfor (let i = 0; i < segments.length; i++) if (segments[i] !== \"\") result.push(segments[i]);\n\t\t\t} else result.push(key);\n\t\t\tkey = \"\";\n\t\t} else key += char;\n\t\telse if (char === \"[\") {\n\t\t\tbracket = true;\n\t\t\tbracketHadQuote = false;\n\t\t\tif (key) {\n\t\t\t\tresult.push(key);\n\t\t\t\tkey = \"\";\n\t\t\t}\n\t\t} else if (char === \".\") {\n\t\t\tif (key) {\n\t\t\t\tresult.push(key);\n\t\t\t\tkey = \"\";\n\t\t\t}\n\t\t\tconst next = deepKey[index + 1];\n\t\t\tif (next === void 0 || next === \".\") result.push(\"\");\n\t\t} else key += char;\n\t\tindex++;\n\t}\n\tif (key) result.push(key);\n\treturn result;\n}\n//#endregion\nexport { toPath };\n"],"names":["toPath","deepKey","toKey","toString","result","length","index","key","quoteChar","bracket","bracketHadQuote","bracketNumberRegex","char","segments","i","next"],"mappings":";;AAoBA,SAASA,EAAOC,GAAS;AACxB,MAAI,MAAM,QAAQA,CAAO,EAAG,QAAOA,EAAQ,IAAIC,CAAK;AACpD,MAAI,OAAOD,KAAY,SAAU,QAAO,CAACA,CAAO;AAChD,EAAAA,IAAUE,EAASF,CAAO;AAC1B,QAAMG,IAAS,CAAA,GACTC,IAASJ,EAAQ;AACvB,MAAII,MAAW,EAAG,QAAOD;AACzB,MAAIE,IAAQ,GACRC,IAAM,IACNC,IAAY,IACZC,IAAU,IACVC,IAAkB;AACtB,QAAMC,IAAqB;AAE3B,OADIV,EAAQ,WAAW,CAAC,MAAM,MAAIG,EAAO,KAAK,EAAE,GACzCE,IAAQD,KAAQ;AACtB,UAAMO,IAAOX,EAAQK,CAAK;AAC1B,QAAIE,EAAW,CAAII,MAAS,QAAQN,IAAQ,IAAID,KAC/CC,KACAC,KAAON,EAAQK,CAAK,KACVM,MAASJ,IAAWA,IAAY,KACtCD,KAAOK;AAAA,aACHH,EAAS,KAAIG,MAAS,OAAQA,MAAS;AAC/C,MAAAJ,IAAYI,GACZF,IAAkB;AAAA,aACRE,MAAS,KAAK;AAExB,UADAH,IAAU,IACN,CAACC,KAAmBH,EAAI,SAAS,GAAG,KAAK,CAACI,EAAmB,KAAKJ,CAAG,GAAG;AAC3E,cAAMM,IAAWN,EAAI,MAAM,GAAG;AAC9B,iBAASO,IAAI,GAAGA,IAAID,EAAS,QAAQC,IAAK,CAAID,EAASC,CAAC,MAAM,MAAIV,EAAO,KAAKS,EAASC,CAAC,CAAC;AAAA,MAC1F,MAAO,CAAAV,EAAO,KAAKG,CAAG;AACtB,MAAAA,IAAM;AAAA,IACP,MAAO,CAAAA,KAAOK;AAAA,aACLA,MAAS;AACjB,MAAAH,IAAU,IACVC,IAAkB,IACdH,MACHH,EAAO,KAAKG,CAAG,GACfA,IAAM;AAAA,aAEGK,MAAS,KAAK;AACxB,MAAIL,MACHH,EAAO,KAAKG,CAAG,GACfA,IAAM;AAEP,YAAMQ,IAAOd,EAAQK,IAAQ,CAAC;AAC9B,OAAIS,MAAS,UAAUA,MAAS,QAAKX,EAAO,KAAK,EAAE;AAAA,IACpD,MAAO,CAAAG,KAAOK;AACd,IAAAN;AAAA,EACD;AACA,SAAIC,KAAKH,EAAO,KAAKG,CAAG,GACjBH;AACR;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { isSymbol as i } from "../predicate/isSymbol.js";
|
|
2
|
+
function f(r) {
|
|
3
|
+
return r == null ? "" : n(r);
|
|
4
|
+
}
|
|
5
|
+
function n(r) {
|
|
6
|
+
if (typeof r == "string") return r;
|
|
7
|
+
if (Array.isArray(r)) return r.map(n).join(",");
|
|
8
|
+
if (i(r)) return r.toString();
|
|
9
|
+
const t = r + "";
|
|
10
|
+
return t === "0" && Object.is(Number(r), -0) ? "-0" : t;
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
f as toString
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=toString.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toString.js","sources":["../../../../../../node_modules/es-toolkit/dist/compat/util/toString.mjs"],"sourcesContent":["import { isSymbol } from \"../predicate/isSymbol.mjs\";\n//#region src/compat/util/toString.ts\n/**\n* Converts `value` to a string.\n*\n* An empty string is returned for `null` and `undefined` values.\n* The sign of `-0` is preserved.\n*\n* @param value - The value to convert.\n* @returns Returns the converted string.\n*\n* @example\n* toString(null) // returns ''\n* toString(undefined) // returns ''\n* toString(-0) // returns '-0'\n* toString([1, 2, -0]) // returns '1,2,-0'\n* toString([Symbol('a'), Symbol('b')]) // returns 'Symbol(a),Symbol(b)'\n*/\nfunction toString(value) {\n\tif (value == null) return \"\";\n\treturn baseToString(value);\n}\nfunction baseToString(value) {\n\tif (typeof value === \"string\") return value;\n\tif (Array.isArray(value)) return value.map(baseToString).join(\",\");\n\tif (isSymbol(value)) return value.toString();\n\tconst result = value + \"\";\n\tif (result === \"0\" && Object.is(Number(value), -0)) return \"-0\";\n\treturn result;\n}\n//#endregion\nexport { toString };\n"],"names":["toString","value","baseToString","isSymbol","result"],"mappings":";AAkBA,SAASA,EAASC,GAAO;AACxB,SAAIA,KAAS,OAAa,KACnBC,EAAaD,CAAK;AAC1B;AACA,SAASC,EAAaD,GAAO;AAC5B,MAAI,OAAOA,KAAU,SAAU,QAAOA;AACtC,MAAI,MAAM,QAAQA,CAAK,EAAG,QAAOA,EAAM,IAAIC,CAAY,EAAE,KAAK,GAAG;AACjE,MAAIC,EAASF,CAAK,EAAG,QAAOA,EAAM,SAAQ;AAC1C,QAAMG,IAASH,IAAQ;AACvB,SAAIG,MAAW,OAAO,OAAO,GAAG,OAAOH,CAAK,GAAG,EAAE,IAAU,OACpDG;AACR;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"after.js","sources":["../../../../../node_modules/es-toolkit/dist/function/after.mjs"],"sourcesContent":["//#region src/function/after.ts\n/**\n* Creates a function that only executes starting from the `n`-th call.\n* The provided function will be invoked starting from the `n`-th call.\n*\n* This is particularly useful for scenarios involving events or asynchronous operations\n* where an action should occur only after a certain number of invocations.\n*\n* @template F - The type of the function to be invoked.\n* @param n - The number of calls required for `func` to execute.\n* @param func - The function to be invoked.\n* @returns A new function that:\n* - Tracks the number of calls.\n* - Invokes `func` starting from the `n`-th call.\n* - Returns `undefined` if fewer than `n` calls have been made.\n* @throws {Error} - Throws an error if `n` is negative.\n* @example\n*\n* const afterFn = after(3, () => {\n* console.log(\"called\")\n* });\n*\n* // Will not log anything.\n* afterFn()\n* // Will not log anything.\n* afterFn()\n* // Will log 'called'.\n* afterFn()\n*/\nfunction after(n, func) {\n\tif (!Number.isInteger(n) || n < 0) throw new Error(`n must be a non-negative integer.`);\n\tlet counter = 0;\n\treturn (...args) => {\n\t\tif (++counter >= n) return func(...args);\n\t};\n}\n//#endregion\nexport { after };\n"],"names":["after","n","func","counter","args"],"mappings":"AA6BA,SAASA,EAAMC,GAAGC,GAAM;AACvB,MAAI,CAAC,OAAO,UAAUD,CAAC,KAAKA,IAAI,EAAG,OAAM,IAAI,MAAM,mCAAmC;AACtF,MAAIE,IAAU;AACd,SAAO,IAAIC,MAAS;AACnB,QAAI,EAAED,KAAWF,EAAG,QAAOC,EAAK,GAAGE,CAAI;AAAA,EACxC;AACD;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
function b(d, s, { signal: l, edges: t } = {}) {
|
|
2
|
+
let u, e = null;
|
|
3
|
+
const f = t != null && t.includes("leading"), h = t == null || t.includes("trailing"), o = () => {
|
|
4
|
+
e !== null && (d.apply(u, e), u = void 0, e = null);
|
|
5
|
+
}, m = () => {
|
|
6
|
+
h && o(), i();
|
|
7
|
+
};
|
|
8
|
+
let n = null;
|
|
9
|
+
const r = () => {
|
|
10
|
+
n != null && clearTimeout(n), n = setTimeout(() => {
|
|
11
|
+
n = null, m();
|
|
12
|
+
}, s);
|
|
13
|
+
}, T = () => {
|
|
14
|
+
n !== null && (clearTimeout(n), n = null);
|
|
15
|
+
}, i = () => {
|
|
16
|
+
T(), u = void 0, e = null;
|
|
17
|
+
}, a = () => {
|
|
18
|
+
o();
|
|
19
|
+
}, c = function(...p) {
|
|
20
|
+
if (l != null && l.aborted) return;
|
|
21
|
+
u = this, e = p;
|
|
22
|
+
const v = n == null;
|
|
23
|
+
r(), f && v && o();
|
|
24
|
+
};
|
|
25
|
+
return c.schedule = r, c.cancel = i, c.flush = a, l == null || l.addEventListener("abort", i, { once: !0 }), c;
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
b as debounce
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=debounce.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debounce.js","sources":["../../../../../node_modules/es-toolkit/dist/function/debounce.mjs"],"sourcesContent":["//#region src/function/debounce.ts\n/**\n* Creates a debounced function that delays invoking the provided function until after `debounceMs` milliseconds\n* have elapsed since the last time the debounced function was invoked. The debounced function also has a `cancel`\n* method to cancel any pending execution.\n*\n* @template F - The type of function.\n* @param func - The function to debounce.\n* @param debounceMs - The number of milliseconds to delay.\n* @param options - The options object\n* @param options.signal - An optional AbortSignal to cancel the debounced function.\n* @param options.edges - An optional array specifying whether the function should be invoked on the leading edge, trailing edge, or both.\n* @returns A new debounced function with a `cancel` method.\n*\n* @example\n* const debouncedFunction = debounce(() => {\n* console.log('Function executed');\n* }, 1000);\n*\n* // Will log 'Function executed' after 1 second if not called again in that time\n* debouncedFunction();\n*\n* // Will not log anything as the previous call is canceled\n* debouncedFunction.cancel();\n*\n* // With AbortSignal\n* const controller = new AbortController();\n* const signal = controller.signal;\n* const debouncedWithSignal = debounce(() => {\n* console.log('Function executed');\n* }, 1000, { signal });\n*\n* debouncedWithSignal();\n*\n* // Will cancel the debounced function call\n* controller.abort();\n*/\nfunction debounce(func, debounceMs, { signal, edges } = {}) {\n\tlet pendingThis = void 0;\n\tlet pendingArgs = null;\n\tconst leading = edges != null && edges.includes(\"leading\");\n\tconst trailing = edges == null || edges.includes(\"trailing\");\n\tconst invoke = () => {\n\t\tif (pendingArgs !== null) {\n\t\t\tfunc.apply(pendingThis, pendingArgs);\n\t\t\tpendingThis = void 0;\n\t\t\tpendingArgs = null;\n\t\t}\n\t};\n\tconst onTimerEnd = () => {\n\t\tif (trailing) invoke();\n\t\tcancel();\n\t};\n\tlet timeoutId = null;\n\tconst schedule = () => {\n\t\tif (timeoutId != null) clearTimeout(timeoutId);\n\t\ttimeoutId = setTimeout(() => {\n\t\t\ttimeoutId = null;\n\t\t\tonTimerEnd();\n\t\t}, debounceMs);\n\t};\n\tconst cancelTimer = () => {\n\t\tif (timeoutId !== null) {\n\t\t\tclearTimeout(timeoutId);\n\t\t\ttimeoutId = null;\n\t\t}\n\t};\n\tconst cancel = () => {\n\t\tcancelTimer();\n\t\tpendingThis = void 0;\n\t\tpendingArgs = null;\n\t};\n\tconst flush = () => {\n\t\tinvoke();\n\t};\n\tconst debounced = function(...args) {\n\t\tif (signal?.aborted) return;\n\t\tpendingThis = this;\n\t\tpendingArgs = args;\n\t\tconst isFirstCall = timeoutId == null;\n\t\tschedule();\n\t\tif (leading && isFirstCall) invoke();\n\t};\n\tdebounced.schedule = schedule;\n\tdebounced.cancel = cancel;\n\tdebounced.flush = flush;\n\tsignal?.addEventListener(\"abort\", cancel, { once: true });\n\treturn debounced;\n}\n//#endregion\nexport { debounce };\n"],"names":["debounce","func","debounceMs","signal","edges","pendingThis","pendingArgs","leading","trailing","invoke","onTimerEnd","cancel","timeoutId","schedule","cancelTimer","flush","debounced","args","isFirstCall"],"mappings":"AAqCA,SAASA,EAASC,GAAMC,GAAY,EAAE,QAAAC,GAAQ,OAAAC,EAAK,IAAK,IAAI;AAC3D,MAAIC,GACAC,IAAc;AAClB,QAAMC,IAAUH,KAAS,QAAQA,EAAM,SAAS,SAAS,GACnDI,IAAWJ,KAAS,QAAQA,EAAM,SAAS,UAAU,GACrDK,IAAS,MAAM;AACpB,IAAIH,MAAgB,SACnBL,EAAK,MAAMI,GAAaC,CAAW,GACnCD,IAAc,QACdC,IAAc;AAAA,EAEhB,GACMI,IAAa,MAAM;AACxB,IAAIF,KAAUC,EAAM,GACpBE,EAAM;AAAA,EACP;AACA,MAAIC,IAAY;AAChB,QAAMC,IAAW,MAAM;AACtB,IAAID,KAAa,QAAM,aAAaA,CAAS,GAC7CA,IAAY,WAAW,MAAM;AAC5B,MAAAA,IAAY,MACZF,EAAU;AAAA,IACX,GAAGR,CAAU;AAAA,EACd,GACMY,IAAc,MAAM;AACzB,IAAIF,MAAc,SACjB,aAAaA,CAAS,GACtBA,IAAY;AAAA,EAEd,GACMD,IAAS,MAAM;AACpB,IAAAG,EAAW,GACXT,IAAc,QACdC,IAAc;AAAA,EACf,GACMS,IAAQ,MAAM;AACnB,IAAAN,EAAM;AAAA,EACP,GACMO,IAAY,YAAYC,GAAM;AACnC,QAAId,KAAA,QAAAA,EAAQ,QAAS;AACrB,IAAAE,IAAc,MACdC,IAAcW;AACd,UAAMC,IAAcN,KAAa;AACjC,IAAAC,EAAQ,GACJN,KAAWW,KAAaT,EAAM;AAAA,EACnC;AACA,SAAAO,EAAU,WAAWH,GACrBG,EAAU,SAASL,GACnBK,EAAU,QAAQD,GAClBZ,KAAA,QAAAA,EAAQ,iBAAiB,SAASQ,GAAQ,EAAE,MAAM,OAC3CK;AACR;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity.js","sources":["../../../../../node_modules/es-toolkit/dist/function/identity.mjs"],"sourcesContent":["//#region src/function/identity.ts\n/**\n* Returns the input value unchanged.\n*\n* @template T - The type of the input value.\n* @param x - The value to be returned.\n* @returns The input value.\n*\n* @example\n* // Returns 5\n* identity(5);\n*\n* @example\n* // Returns 'hello'\n* identity('hello');\n*\n* @example\n* // Returns { key: 'value' }\n* identity({ key: 'value' });\n*/\nfunction identity(x) {\n\treturn x;\n}\n//#endregion\nexport { identity };\n"],"names":["identity","x"],"mappings":"AAoBA,SAASA,EAASC,GAAG;AACpB,SAAOA;AACR;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"noop.js","sources":["../../../../../node_modules/es-toolkit/dist/function/noop.mjs"],"sourcesContent":["//#region src/function/noop.ts\n/**\n* A no-operation function that does nothing.\n* This can be used as a placeholder or default function.\n*\n* @example\n* noop(); // Does nothing\n*\n* @returns This function does not return anything.\n*/\nfunction noop() {}\n//#endregion\nexport { noop };\n"],"names":["noop"],"mappings":"AAUA,SAASA,IAAO;AAAC;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { isPrimitive as i } from "../predicate/isPrimitive.js";
|
|
2
|
+
import { isTypedArray as s } from "../predicate/isTypedArray.js";
|
|
3
|
+
function c(e) {
|
|
4
|
+
if (i(e)) return e;
|
|
5
|
+
if (Array.isArray(e) || s(e) || e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
|
|
6
|
+
const n = Object.getPrototypeOf(e);
|
|
7
|
+
if (n == null) return Object.assign(Object.create(n), e);
|
|
8
|
+
const t = n.constructor;
|
|
9
|
+
if (e instanceof Date || e instanceof Map || e instanceof Set) return new t(e);
|
|
10
|
+
if (e instanceof RegExp) {
|
|
11
|
+
const r = new t(e);
|
|
12
|
+
return r.lastIndex = e.lastIndex, r;
|
|
13
|
+
}
|
|
14
|
+
if (e instanceof DataView) return new t(e.buffer.slice(0));
|
|
15
|
+
if (e instanceof Error) {
|
|
16
|
+
let r;
|
|
17
|
+
return e instanceof AggregateError ? r = new t(e.errors, e.message, { cause: e.cause }) : r = new t(e.message, { cause: e.cause }), r.stack = e.stack, Object.assign(r, e), r;
|
|
18
|
+
}
|
|
19
|
+
return typeof File < "u" && e instanceof File ? new t([e], e.name, {
|
|
20
|
+
type: e.type,
|
|
21
|
+
lastModified: e.lastModified
|
|
22
|
+
}) : typeof e == "object" ? Object.assign(Object.create(n), e) : e;
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
c as clone
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=clone.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clone.js","sources":["../../../../../node_modules/es-toolkit/dist/object/clone.mjs"],"sourcesContent":["import { isPrimitive } from \"../predicate/isPrimitive.mjs\";\nimport { isTypedArray } from \"../predicate/isTypedArray.mjs\";\n//#region src/object/clone.ts\n/**\n* Creates a shallow clone of the given object.\n*\n* @template T - The type of the object.\n* @param obj - The object to clone.\n* @returns A shallow clone of the given object.\n*\n* @example\n* // Clone a primitive value\n* const num = 29;\n* const clonedNum = clone(num);\n* console.log(clonedNum); // 29\n* console.log(clonedNum === num); // true\n*\n* @example\n* // Clone an array\n* const arr = [1, 2, 3];\n* const clonedArr = clone(arr);\n* console.log(clonedArr); // [1, 2, 3]\n* console.log(clonedArr === arr); // false\n*\n* @example\n* // Clone an object\n* const obj = { a: 1, b: 'es-toolkit', c: [1, 2, 3] };\n* const clonedObj = clone(obj);\n* console.log(clonedObj); // { a: 1, b: 'es-toolkit', c: [1, 2, 3] }\n* console.log(clonedObj === obj); // false\n*/\nfunction clone(obj) {\n\tif (isPrimitive(obj)) return obj;\n\tif (Array.isArray(obj) || isTypedArray(obj) || obj instanceof ArrayBuffer || typeof SharedArrayBuffer !== \"undefined\" && obj instanceof SharedArrayBuffer) return obj.slice(0);\n\tconst prototype = Object.getPrototypeOf(obj);\n\tif (prototype == null) return Object.assign(Object.create(prototype), obj);\n\tconst Constructor = prototype.constructor;\n\tif (obj instanceof Date || obj instanceof Map || obj instanceof Set) return new Constructor(obj);\n\tif (obj instanceof RegExp) {\n\t\tconst newRegExp = new Constructor(obj);\n\t\tnewRegExp.lastIndex = obj.lastIndex;\n\t\treturn newRegExp;\n\t}\n\tif (obj instanceof DataView) return new Constructor(obj.buffer.slice(0));\n\tif (obj instanceof Error) {\n\t\tlet newError;\n\t\tif (obj instanceof AggregateError) newError = new Constructor(obj.errors, obj.message, { cause: obj.cause });\n\t\telse newError = new Constructor(obj.message, { cause: obj.cause });\n\t\tnewError.stack = obj.stack;\n\t\tObject.assign(newError, obj);\n\t\treturn newError;\n\t}\n\tif (typeof File !== \"undefined\" && obj instanceof File) return new Constructor([obj], obj.name, {\n\t\ttype: obj.type,\n\t\tlastModified: obj.lastModified\n\t});\n\tif (typeof obj === \"object\") return Object.assign(Object.create(prototype), obj);\n\treturn obj;\n}\n//#endregion\nexport { clone };\n"],"names":["clone","obj","isPrimitive","isTypedArray","prototype","Constructor","newRegExp","newError"],"mappings":";;AA+BA,SAASA,EAAMC,GAAK;AACnB,MAAIC,EAAYD,CAAG,EAAG,QAAOA;AAC7B,MAAI,MAAM,QAAQA,CAAG,KAAKE,EAAaF,CAAG,KAAKA,aAAe,eAAe,OAAO,oBAAsB,OAAeA,aAAe,kBAAmB,QAAOA,EAAI,MAAM,CAAC;AAC7K,QAAMG,IAAY,OAAO,eAAeH,CAAG;AAC3C,MAAIG,KAAa,KAAM,QAAO,OAAO,OAAO,OAAO,OAAOA,CAAS,GAAGH,CAAG;AACzE,QAAMI,IAAcD,EAAU;AAC9B,MAAIH,aAAe,QAAQA,aAAe,OAAOA,aAAe,IAAK,QAAO,IAAII,EAAYJ,CAAG;AAC/F,MAAIA,aAAe,QAAQ;AAC1B,UAAMK,IAAY,IAAID,EAAYJ,CAAG;AACrC,WAAAK,EAAU,YAAYL,EAAI,WACnBK;AAAA,EACR;AACA,MAAIL,aAAe,SAAU,QAAO,IAAII,EAAYJ,EAAI,OAAO,MAAM,CAAC,CAAC;AACvE,MAAIA,aAAe,OAAO;AACzB,QAAIM;AACJ,WAAIN,aAAe,iBAAgBM,IAAW,IAAIF,EAAYJ,EAAI,QAAQA,EAAI,SAAS,EAAE,OAAOA,EAAI,MAAK,CAAE,IACtGM,IAAW,IAAIF,EAAYJ,EAAI,SAAS,EAAE,OAAOA,EAAI,OAAO,GACjEM,EAAS,QAAQN,EAAI,OACrB,OAAO,OAAOM,GAAUN,CAAG,GACpBM;AAAA,EACR;AACA,SAAI,OAAO,OAAS,OAAeN,aAAe,OAAa,IAAII,EAAY,CAACJ,CAAG,GAAGA,EAAI,MAAM;AAAA,IAC/F,MAAMA,EAAI;AAAA,IACV,cAAcA,EAAI;AAAA,EACpB,CAAE,IACG,OAAOA,KAAQ,WAAiB,OAAO,OAAO,OAAO,OAAOG,CAAS,GAAGH,CAAG,IACxEA;AACR;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloneDeep.js","sources":["../../../../../node_modules/es-toolkit/dist/object/cloneDeep.mjs"],"sourcesContent":["import { cloneDeepWithImpl } from \"./cloneDeepWith.mjs\";\n//#region src/object/cloneDeep.ts\n/**\n* Creates a deep clone of the given object.\n*\n* @template T - The type of the object.\n* @param obj - The object to clone.\n* @returns A deep clone of the given object.\n*\n* @example\n* // Clone a primitive value\n* const num = 29;\n* const clonedNum = cloneDeep(num);\n* console.log(clonedNum); // 29\n* console.log(clonedNum === num); // true\n*\n* @example\n* // Clone an array\n* const arr = [1, 2, 3];\n* const clonedArr = cloneDeep(arr);\n* console.log(clonedArr); // [1, 2, 3]\n* console.log(clonedArr === arr); // false\n*\n* @example\n* // Clone an array with nested objects\n* const arr = [1, { a: 1 }, [1, 2, 3]];\n* const clonedArr = cloneDeep(arr);\n* arr[1].a = 2;\n* console.log(arr); // [1, { a: 2 }, [1, 2, 3]]\n* console.log(clonedArr); // [1, { a: 1 }, [1, 2, 3]]\n* console.log(clonedArr === arr); // false\n*\n* @example\n* // Clone an object\n* const obj = { a: 1, b: 'es-toolkit', c: [1, 2, 3] };\n* const clonedObj = cloneDeep(obj);\n* console.log(clonedObj); // { a: 1, b: 'es-toolkit', c: [1, 2, 3] }\n* console.log(clonedObj === obj); // false\n*\n* @example\n* // Clone an object with nested objects\n* const obj = { a: 1, b: { c: 1 } };\n* const clonedObj = cloneDeep(obj);\n* obj.b.c = 2;\n* console.log(obj); // { a: 1, b: { c: 2 } }\n* console.log(clonedObj); // { a: 1, b: { c: 1 } }\n* console.log(clonedObj === obj); // false\n*/\nfunction cloneDeep(obj) {\n\treturn cloneDeepWithImpl(obj, void 0, obj, /* @__PURE__ */ new Map(), void 0);\n}\n//#endregion\nexport { cloneDeep };\n"],"names":["cloneDeep","obj","cloneDeepWithImpl"],"mappings":";AAgDA,SAASA,EAAUC,GAAK;AACvB,SAAOC,EAAkBD,GAAK,QAAQA,GAAqB,oBAAI,IAAG,GAAI,MAAM;AAC7E;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { isPrimitive as d } from "../predicate/isPrimitive.js";
|
|
2
|
+
import { isTypedArray as w } from "../predicate/isTypedArray.js";
|
|
3
|
+
import { getSymbols as O } from "../compat/_internal/getSymbols.js";
|
|
4
|
+
import { getTag as A } from "../compat/_internal/getTag.js";
|
|
5
|
+
import { uint32ArrayTag as h, uint16ArrayTag as b, uint8ClampedArrayTag as B, uint8ArrayTag as x, symbolTag as e, stringTag as D, setTag as S, regexpTag as a, objectTag as P, numberTag as M, mapTag as E, int32ArrayTag as F, int16ArrayTag as I, int8ArrayTag as N, float64ArrayTag as R, float32ArrayTag as W, dateTag as L, booleanTag as q, dataViewTag as z, arrayBufferTag as G, arrayTag as H, argumentsTag as J } from "../compat/_internal/tags.js";
|
|
6
|
+
import { isBuffer as K } from "../predicate/isBuffer.js";
|
|
7
|
+
function j(r, p) {
|
|
8
|
+
return c(r, void 0, r, /* @__PURE__ */ new Map(), p);
|
|
9
|
+
}
|
|
10
|
+
function c(r, p, g, i = /* @__PURE__ */ new Map(), f = void 0) {
|
|
11
|
+
const n = f == null ? void 0 : f(r, p, g, i);
|
|
12
|
+
if (n !== void 0) return n;
|
|
13
|
+
if (d(r)) return r;
|
|
14
|
+
if (i.has(r)) return i.get(r);
|
|
15
|
+
if (Array.isArray(r)) {
|
|
16
|
+
const t = new Array(r.length);
|
|
17
|
+
i.set(r, t);
|
|
18
|
+
for (let s = 0; s < r.length; s++) t[s] = c(r[s], s, g, i, f);
|
|
19
|
+
return Object.hasOwn(r, "index") && (t.index = r.index), Object.hasOwn(r, "input") && (t.input = r.input), t;
|
|
20
|
+
}
|
|
21
|
+
if (r instanceof Date) return new Date(r.getTime());
|
|
22
|
+
if (r instanceof RegExp) {
|
|
23
|
+
const t = new RegExp(r.source, r.flags);
|
|
24
|
+
return t.lastIndex = r.lastIndex, t;
|
|
25
|
+
}
|
|
26
|
+
if (r instanceof Map) {
|
|
27
|
+
const t = /* @__PURE__ */ new Map();
|
|
28
|
+
i.set(r, t);
|
|
29
|
+
for (const [s, m] of r) t.set(s, c(m, s, g, i, f));
|
|
30
|
+
return t;
|
|
31
|
+
}
|
|
32
|
+
if (r instanceof Set) {
|
|
33
|
+
const t = /* @__PURE__ */ new Set();
|
|
34
|
+
i.set(r, t);
|
|
35
|
+
for (const s of r) t.add(c(s, void 0, g, i, f));
|
|
36
|
+
return t;
|
|
37
|
+
}
|
|
38
|
+
if (K(r)) return r.subarray();
|
|
39
|
+
if (w(r)) {
|
|
40
|
+
const t = new (Object.getPrototypeOf(r)).constructor(r.length);
|
|
41
|
+
i.set(r, t);
|
|
42
|
+
for (let s = 0; s < r.length; s++) t[s] = c(r[s], s, g, i, f);
|
|
43
|
+
return t;
|
|
44
|
+
}
|
|
45
|
+
if (r instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && r instanceof SharedArrayBuffer) return r.slice(0);
|
|
46
|
+
if (r instanceof DataView) {
|
|
47
|
+
const t = new DataView(r.buffer.slice(0), r.byteOffset, r.byteLength);
|
|
48
|
+
return i.set(r, t), y(t, r, g, i, f), t;
|
|
49
|
+
}
|
|
50
|
+
if (typeof File < "u" && r instanceof File) {
|
|
51
|
+
const t = new File([r], r.name, { type: r.type });
|
|
52
|
+
return i.set(r, t), y(t, r, g, i, f), t;
|
|
53
|
+
}
|
|
54
|
+
if (typeof Blob < "u" && r instanceof Blob) {
|
|
55
|
+
const t = new Blob([r], { type: r.type });
|
|
56
|
+
return i.set(r, t), y(t, r, g, i, f), t;
|
|
57
|
+
}
|
|
58
|
+
if (r instanceof Error) {
|
|
59
|
+
const t = structuredClone(r);
|
|
60
|
+
return i.set(r, t), t.message = r.message, t.name = r.name, t.stack = r.stack, t.cause = r.cause, t.constructor = r.constructor, y(t, r, g, i, f), t;
|
|
61
|
+
}
|
|
62
|
+
if (r instanceof Boolean) {
|
|
63
|
+
const t = new Boolean(r.valueOf());
|
|
64
|
+
return i.set(r, t), y(t, r, g, i, f), t;
|
|
65
|
+
}
|
|
66
|
+
if (r instanceof Number) {
|
|
67
|
+
const t = new Number(r.valueOf());
|
|
68
|
+
return i.set(r, t), y(t, r, g, i, f), t;
|
|
69
|
+
}
|
|
70
|
+
if (r instanceof String) {
|
|
71
|
+
const t = new String(r.valueOf());
|
|
72
|
+
return i.set(r, t), y(t, r, g, i, f), t;
|
|
73
|
+
}
|
|
74
|
+
if (typeof r == "object" && Q(r)) {
|
|
75
|
+
const t = Object.create(Object.getPrototypeOf(r));
|
|
76
|
+
return i.set(r, t), y(t, r, g, i, f), t;
|
|
77
|
+
}
|
|
78
|
+
return r;
|
|
79
|
+
}
|
|
80
|
+
function y(r, p, g = r, i, f) {
|
|
81
|
+
const n = [...Object.keys(p), ...O(p)];
|
|
82
|
+
for (let t = 0; t < n.length; t++) {
|
|
83
|
+
const s = n[t], m = Object.getOwnPropertyDescriptor(r, s);
|
|
84
|
+
(m == null || m.writable) && (r[s] = c(p[s], s, g, i, f));
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
function Q(r) {
|
|
88
|
+
switch (A(r)) {
|
|
89
|
+
case J:
|
|
90
|
+
case H:
|
|
91
|
+
case G:
|
|
92
|
+
case z:
|
|
93
|
+
case q:
|
|
94
|
+
case L:
|
|
95
|
+
case W:
|
|
96
|
+
case R:
|
|
97
|
+
case N:
|
|
98
|
+
case I:
|
|
99
|
+
case F:
|
|
100
|
+
case E:
|
|
101
|
+
case M:
|
|
102
|
+
case P:
|
|
103
|
+
case a:
|
|
104
|
+
case S:
|
|
105
|
+
case D:
|
|
106
|
+
case e:
|
|
107
|
+
case x:
|
|
108
|
+
case B:
|
|
109
|
+
case b:
|
|
110
|
+
case h:
|
|
111
|
+
return !0;
|
|
112
|
+
default:
|
|
113
|
+
return !1;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
export {
|
|
117
|
+
j as cloneDeepWith,
|
|
118
|
+
c as cloneDeepWithImpl,
|
|
119
|
+
y as copyProperties
|
|
120
|
+
};
|
|
121
|
+
//# sourceMappingURL=cloneDeepWith.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloneDeepWith.js","sources":["../../../../../node_modules/es-toolkit/dist/object/cloneDeepWith.mjs"],"sourcesContent":["import { isPrimitive } from \"../predicate/isPrimitive.mjs\";\nimport { isTypedArray } from \"../predicate/isTypedArray.mjs\";\nimport { getSymbols } from \"../compat/_internal/getSymbols.mjs\";\nimport { getTag } from \"../compat/_internal/getTag.mjs\";\nimport { argumentsTag, arrayBufferTag, arrayTag, booleanTag, dataViewTag, dateTag, float32ArrayTag, float64ArrayTag, int16ArrayTag, int32ArrayTag, int8ArrayTag, mapTag, numberTag, objectTag, regexpTag, setTag, stringTag, symbolTag, uint16ArrayTag, uint32ArrayTag, uint8ArrayTag, uint8ClampedArrayTag } from \"../compat/_internal/tags.mjs\";\nimport { isBuffer } from \"../predicate/isBuffer.mjs\";\n//#region src/object/cloneDeepWith.ts\n/**\n* Deeply clones the given object.\n*\n* You can customize the deep cloning process using the `cloneValue` function.\n* The function takes the current value `value`, the property name `key`, and the entire object `obj` as arguments.\n* If the function returns a value, that value is used;\n* if it returns `undefined`, the default cloning method is used.\n*\n* @template T - The type of the object.\n* @param obj - The object to clone.\n* @param [cloneValue] - A function to customize the cloning process.\n* @returns A deep clone of the given object.\n*\n* @example\n* // Clone a primitive value\n* const num = 29;\n* const clonedNum = cloneDeepWith(num);\n* console.log(clonedNum); // 29\n* console.log(clonedNum === num); // true\n*\n* @example\n* // Clone an object with a customizer\n* const obj = { a: 1, b: 2 };\n* const clonedObj = cloneDeepWith(obj, (value) => {\n* if (typeof value === 'number') {\n* return value * 2; // Double the number\n* }\n* });\n* console.log(clonedObj); // { a: 2, b: 4 }\n* console.log(clonedObj === obj); // false\n*\n* @example\n* // Clone an array with a customizer\n* const arr = [1, 2, 3];\n* const clonedArr = cloneDeepWith(arr, (value) => {\n* if (typeof value === 'number') {\n* return value + 1; // Increment each number\n* }\n* });\n* console.log(clonedArr); // [2, 3, 4]\n* console.log(clonedArr === arr); // false\n*/\nfunction cloneDeepWith(obj, cloneValue) {\n\treturn cloneDeepWithImpl(obj, void 0, obj, /* @__PURE__ */ new Map(), cloneValue);\n}\nfunction cloneDeepWithImpl(valueToClone, keyToClone, objectToClone, stack = /* @__PURE__ */ new Map(), cloneValue = void 0) {\n\tconst cloned = cloneValue?.(valueToClone, keyToClone, objectToClone, stack);\n\tif (cloned !== void 0) return cloned;\n\tif (isPrimitive(valueToClone)) return valueToClone;\n\tif (stack.has(valueToClone)) return stack.get(valueToClone);\n\tif (Array.isArray(valueToClone)) {\n\t\tconst result = new Array(valueToClone.length);\n\t\tstack.set(valueToClone, result);\n\t\tfor (let i = 0; i < valueToClone.length; i++) result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue);\n\t\tif (Object.hasOwn(valueToClone, \"index\")) result.index = valueToClone.index;\n\t\tif (Object.hasOwn(valueToClone, \"input\")) result.input = valueToClone.input;\n\t\treturn result;\n\t}\n\tif (valueToClone instanceof Date) return new Date(valueToClone.getTime());\n\tif (valueToClone instanceof RegExp) {\n\t\tconst result = new RegExp(valueToClone.source, valueToClone.flags);\n\t\tresult.lastIndex = valueToClone.lastIndex;\n\t\treturn result;\n\t}\n\tif (valueToClone instanceof Map) {\n\t\tconst result = /* @__PURE__ */ new Map();\n\t\tstack.set(valueToClone, result);\n\t\tfor (const [key, value] of valueToClone) result.set(key, cloneDeepWithImpl(value, key, objectToClone, stack, cloneValue));\n\t\treturn result;\n\t}\n\tif (valueToClone instanceof Set) {\n\t\tconst result = /* @__PURE__ */ new Set();\n\t\tstack.set(valueToClone, result);\n\t\tfor (const value of valueToClone) result.add(cloneDeepWithImpl(value, void 0, objectToClone, stack, cloneValue));\n\t\treturn result;\n\t}\n\tif (isBuffer(valueToClone)) return valueToClone.subarray();\n\tif (isTypedArray(valueToClone)) {\n\t\tconst result = new (Object.getPrototypeOf(valueToClone)).constructor(valueToClone.length);\n\t\tstack.set(valueToClone, result);\n\t\tfor (let i = 0; i < valueToClone.length; i++) result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\tif (valueToClone instanceof ArrayBuffer || typeof SharedArrayBuffer !== \"undefined\" && valueToClone instanceof SharedArrayBuffer) return valueToClone.slice(0);\n\tif (valueToClone instanceof DataView) {\n\t\tconst result = new DataView(valueToClone.buffer.slice(0), valueToClone.byteOffset, valueToClone.byteLength);\n\t\tstack.set(valueToClone, result);\n\t\tcopyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\tif (typeof File !== \"undefined\" && valueToClone instanceof File) {\n\t\tconst result = new File([valueToClone], valueToClone.name, { type: valueToClone.type });\n\t\tstack.set(valueToClone, result);\n\t\tcopyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\tif (typeof Blob !== \"undefined\" && valueToClone instanceof Blob) {\n\t\tconst result = new Blob([valueToClone], { type: valueToClone.type });\n\t\tstack.set(valueToClone, result);\n\t\tcopyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\tif (valueToClone instanceof Error) {\n\t\tconst result = structuredClone(valueToClone);\n\t\tstack.set(valueToClone, result);\n\t\tresult.message = valueToClone.message;\n\t\tresult.name = valueToClone.name;\n\t\tresult.stack = valueToClone.stack;\n\t\tresult.cause = valueToClone.cause;\n\t\tresult.constructor = valueToClone.constructor;\n\t\tcopyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\tif (valueToClone instanceof Boolean) {\n\t\tconst result = new Boolean(valueToClone.valueOf());\n\t\tstack.set(valueToClone, result);\n\t\tcopyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\tif (valueToClone instanceof Number) {\n\t\tconst result = new Number(valueToClone.valueOf());\n\t\tstack.set(valueToClone, result);\n\t\tcopyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\tif (valueToClone instanceof String) {\n\t\tconst result = new String(valueToClone.valueOf());\n\t\tstack.set(valueToClone, result);\n\t\tcopyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\tif (typeof valueToClone === \"object\" && isCloneableObject(valueToClone)) {\n\t\tconst result = Object.create(Object.getPrototypeOf(valueToClone));\n\t\tstack.set(valueToClone, result);\n\t\tcopyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n\t\treturn result;\n\t}\n\treturn valueToClone;\n}\nfunction copyProperties(target, source, objectToClone = target, stack, cloneValue) {\n\tconst keys = [...Object.keys(source), ...getSymbols(source)];\n\tfor (let i = 0; i < keys.length; i++) {\n\t\tconst key = keys[i];\n\t\tconst descriptor = Object.getOwnPropertyDescriptor(target, key);\n\t\tif (descriptor == null || descriptor.writable) target[key] = cloneDeepWithImpl(source[key], key, objectToClone, stack, cloneValue);\n\t}\n}\nfunction isCloneableObject(object) {\n\tswitch (getTag(object)) {\n\t\tcase argumentsTag:\n\t\tcase arrayTag:\n\t\tcase arrayBufferTag:\n\t\tcase dataViewTag:\n\t\tcase booleanTag:\n\t\tcase dateTag:\n\t\tcase float32ArrayTag:\n\t\tcase float64ArrayTag:\n\t\tcase int8ArrayTag:\n\t\tcase int16ArrayTag:\n\t\tcase int32ArrayTag:\n\t\tcase mapTag:\n\t\tcase numberTag:\n\t\tcase objectTag:\n\t\tcase regexpTag:\n\t\tcase setTag:\n\t\tcase stringTag:\n\t\tcase symbolTag:\n\t\tcase uint8ArrayTag:\n\t\tcase uint8ClampedArrayTag:\n\t\tcase uint16ArrayTag:\n\t\tcase uint32ArrayTag: return true;\n\t\tdefault: return false;\n\t}\n}\n//#endregion\nexport { cloneDeepWith, cloneDeepWithImpl, copyProperties };\n"],"names":["cloneDeepWith","obj","cloneValue","cloneDeepWithImpl","valueToClone","keyToClone","objectToClone","stack","cloned","isPrimitive","result","i","key","value","isBuffer","isTypedArray","copyProperties","isCloneableObject","target","source","keys","getSymbols","descriptor","object","getTag","argumentsTag","arrayTag","arrayBufferTag","dataViewTag","booleanTag","dateTag","float32ArrayTag","float64ArrayTag","int8ArrayTag","int16ArrayTag","int32ArrayTag","mapTag","numberTag","objectTag","regexpTag","setTag","stringTag","symbolTag","uint8ArrayTag","uint8ClampedArrayTag","uint16ArrayTag","uint32ArrayTag"],"mappings":";;;;;;AAiDA,SAASA,EAAcC,GAAKC,GAAY;AACvC,SAAOC,EAAkBF,GAAK,QAAQA,GAAqB,oBAAI,IAAG,GAAIC,CAAU;AACjF;AACA,SAASC,EAAkBC,GAAcC,GAAYC,GAAeC,IAAwB,oBAAI,IAAG,GAAIL,IAAa,QAAQ;AAC3H,QAAMM,IAASN,KAAA,gBAAAA,EAAaE,GAAcC,GAAYC,GAAeC;AACrE,MAAIC,MAAW,OAAQ,QAAOA;AAC9B,MAAIC,EAAYL,CAAY,EAAG,QAAOA;AACtC,MAAIG,EAAM,IAAIH,CAAY,EAAG,QAAOG,EAAM,IAAIH,CAAY;AAC1D,MAAI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,EAClI;AACD;AACA,SAASe,EAAkBM,GAAQ;AAClC,UAAQC,EAAOD,CAAM,GAAC;AAAA,IACrB,KAAKE;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAgB,aAAO;AAAA,IAC5B;AAAS,aAAO;AAAA,EAClB;AACA;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapValues.js","sources":["../../../../../node_modules/es-toolkit/dist/object/mapValues.mjs"],"sourcesContent":["//#region src/object/mapValues.ts\n/**\n* Creates a new object with the same keys as the given object, but with values generated\n* by running each own enumerable property of the object through the iteratee function.\n*\n* @template T - The type of the object.\n* @template K - The type of the keys in the object.\n* @template V - The type of the new values generated by the iteratee function.\n*\n* @param object - The object to iterate over.\n* @param getNewValue - The function invoked per own enumerable property.\n* @returns Returns the new mapped object.\n*\n* @example\n* // Example usage:\n* const obj = { a: 1, b: 2 };\n* const result = mapValues(obj, (value) => value * 2);\n* console.log(result); // { a: 2, b: 4 }\n*/\nfunction mapValues(object, getNewValue) {\n\tconst result = {};\n\tconst keys = Object.keys(object);\n\tfor (let i = 0; i < keys.length; i++) {\n\t\tconst key = keys[i];\n\t\tconst value = object[key];\n\t\tresult[key] = getNewValue(value, key, object);\n\t}\n\treturn result;\n}\n//#endregion\nexport { mapValues };\n"],"names":["mapValues","object","getNewValue","result","keys","i","key","value"],"mappings":"AAmBA,SAASA,EAAUC,GAAQC,GAAa;AACvC,QAAMC,IAAS,CAAA,GACTC,IAAO,OAAO,KAAKH,CAAM;AAC/B,WAASI,IAAI,GAAGA,IAAID,EAAK,QAAQC,KAAK;AACrC,UAAMC,IAAMF,EAAKC,CAAC,GACZE,IAAQN,EAAOK,CAAG;AACxB,IAAAH,EAAOG,CAAG,IAAIJ,EAAYK,GAAOD,GAAKL,CAAM;AAAA,EAC7C;AACA,SAAOE;AACR;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isBuffer.js","sources":["../../../../../node_modules/es-toolkit/dist/predicate/isBuffer.mjs"],"sourcesContent":["import { globalThis_ } from \"../_internal/globalThis.mjs\";\n//#region src/predicate/isBuffer.ts\n/**\n* Checks if the given value is a Buffer instance.\n*\n* This function tests whether the provided value is an instance of Buffer.\n* It returns `true` if the value is a Buffer, and `false` otherwise.\n*\n* This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `Buffer`.\n*\n* @param x - The value to check if it is a Buffer.\n* @returns Returns `true` if `x` is a Buffer, else `false`.\n*\n* @example\n* const buffer = Buffer.from(\"test\");\n* console.log(isBuffer(buffer)); // true\n*\n* const notBuffer = \"not a buffer\";\n* console.log(isBuffer(notBuffer)); // false\n*/\nfunction isBuffer(x) {\n\treturn typeof globalThis_.Buffer !== \"undefined\" && globalThis_.Buffer.isBuffer(x);\n}\n//#endregion\nexport { isBuffer };\n"],"names":["isBuffer","x","globalThis_"],"mappings":";AAoBA,SAASA,EAASC,GAAG;AACpB,SAAO,OAAOC,EAAY,SAAW,OAAeA,EAAY,OAAO,SAASD,CAAC;AAClF;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isEqual.js","sources":["../../../../../node_modules/es-toolkit/dist/predicate/isEqual.mjs"],"sourcesContent":["import { noop } from \"../function/noop.mjs\";\nimport { isEqualWith } from \"./isEqualWith.mjs\";\n//#region src/predicate/isEqual.ts\n/**\n* Checks if two values are equal, including support for `Date`, `RegExp`, and deep object comparison.\n*\n* @param a - The first value to compare.\n* @param b - The second value to compare.\n* @returns `true` if the values are equal, otherwise `false`.\n*\n* @example\n* isEqual(1, 1); // true\n* isEqual({ a: 1 }, { a: 1 }); // true\n* isEqual(/abc/g, /abc/g); // true\n* isEqual(new Date('2020-01-01'), new Date('2020-01-01')); // true\n* isEqual([1, 2, 3], [1, 2, 3]); // true\n*/\nfunction isEqual(a, b) {\n\treturn isEqualWith(a, b, noop);\n}\n//#endregion\nexport { isEqual };\n"],"names":["isEqual","a","b","isEqualWith","noop"],"mappings":";;AAiBA,SAASA,EAAQC,GAAGC,GAAG;AACtB,SAAOC,EAAYF,GAAGC,GAAGE,CAAI;AAC9B;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { getSymbols as A } from "../compat/_internal/getSymbols.js";
|
|
2
|
+
import { getTag as h } from "../compat/_internal/getTag.js";
|
|
3
|
+
import { functionTag as v, regexpTag as j, symbolTag as w, dateTag as S, booleanTag as U, numberTag as x, stringTag as z, objectTag as p, errorTag as L, dataViewTag as I, arrayBufferTag as K, float64ArrayTag as P, float32ArrayTag as B, bigInt64ArrayTag as W, int32ArrayTag as C, int16ArrayTag as M, int8ArrayTag as D, bigUint64ArrayTag as F, uint32ArrayTag as G, uint16ArrayTag as H, uint8ClampedArrayTag as J, uint8ArrayTag as N, arrayTag as Q, setTag as R, mapTag as X } from "../compat/_internal/tags.js";
|
|
4
|
+
import { isBuffer as d } from "./isBuffer.js";
|
|
5
|
+
import { isPlainObject as O } from "./isPlainObject.js";
|
|
6
|
+
import { eq as Y } from "../compat/util/eq.js";
|
|
7
|
+
function b(r, e, t) {
|
|
8
|
+
return a(r, e, void 0, void 0, void 0, void 0, t);
|
|
9
|
+
}
|
|
10
|
+
function a(r, e, t, s, i, f, u) {
|
|
11
|
+
const y = u(r, e, t, s, i, f);
|
|
12
|
+
if (y !== void 0) return y;
|
|
13
|
+
if (typeof r == typeof e) switch (typeof r) {
|
|
14
|
+
case "bigint":
|
|
15
|
+
case "string":
|
|
16
|
+
case "boolean":
|
|
17
|
+
case "symbol":
|
|
18
|
+
case "undefined":
|
|
19
|
+
return r === e;
|
|
20
|
+
case "number":
|
|
21
|
+
return r === e || Object.is(r, e);
|
|
22
|
+
case "function":
|
|
23
|
+
return r === e;
|
|
24
|
+
case "object":
|
|
25
|
+
return l(r, e, f, u);
|
|
26
|
+
}
|
|
27
|
+
return l(r, e, f, u);
|
|
28
|
+
}
|
|
29
|
+
function l(r, e, t, s) {
|
|
30
|
+
if (Object.is(r, e)) return !0;
|
|
31
|
+
let i = h(r), f = h(e);
|
|
32
|
+
if (i === "[object Arguments]" && (i = p), f === "[object Arguments]" && (f = p), i !== f) return !1;
|
|
33
|
+
switch (i) {
|
|
34
|
+
case z:
|
|
35
|
+
return r.toString() === e.toString();
|
|
36
|
+
case x:
|
|
37
|
+
return Y(r.valueOf(), e.valueOf());
|
|
38
|
+
case U:
|
|
39
|
+
case S:
|
|
40
|
+
case w:
|
|
41
|
+
return Object.is(r.valueOf(), e.valueOf());
|
|
42
|
+
case j:
|
|
43
|
+
return r.source === e.source && r.flags === e.flags;
|
|
44
|
+
case v:
|
|
45
|
+
return r === e;
|
|
46
|
+
}
|
|
47
|
+
t = t ?? /* @__PURE__ */ new Map();
|
|
48
|
+
const u = t.get(r), y = t.get(e);
|
|
49
|
+
if (u != null && y != null) return u === e;
|
|
50
|
+
t.set(r, e), t.set(e, r);
|
|
51
|
+
try {
|
|
52
|
+
switch (i) {
|
|
53
|
+
case X:
|
|
54
|
+
if (r.size !== e.size) return !1;
|
|
55
|
+
for (const [n, c] of r.entries()) if (!e.has(n) || !a(c, e.get(n), n, r, e, t, s)) return !1;
|
|
56
|
+
return !0;
|
|
57
|
+
case R: {
|
|
58
|
+
if (r.size !== e.size) return !1;
|
|
59
|
+
const n = Array.from(r.values()), c = Array.from(e.values());
|
|
60
|
+
for (let o = 0; o < n.length; o++) {
|
|
61
|
+
const g = n[o], m = c.findIndex((T) => a(g, T, void 0, r, e, t, s));
|
|
62
|
+
if (m === -1) return !1;
|
|
63
|
+
c.splice(m, 1);
|
|
64
|
+
}
|
|
65
|
+
return !0;
|
|
66
|
+
}
|
|
67
|
+
case Q:
|
|
68
|
+
case N:
|
|
69
|
+
case J:
|
|
70
|
+
case H:
|
|
71
|
+
case G:
|
|
72
|
+
case F:
|
|
73
|
+
case D:
|
|
74
|
+
case M:
|
|
75
|
+
case C:
|
|
76
|
+
case W:
|
|
77
|
+
case B:
|
|
78
|
+
case P:
|
|
79
|
+
if (d(r) !== d(e) || r.length !== e.length) return !1;
|
|
80
|
+
for (let n = 0; n < r.length; n++) if (!a(r[n], e[n], n, r, e, t, s)) return !1;
|
|
81
|
+
return !0;
|
|
82
|
+
case K:
|
|
83
|
+
return r.byteLength !== e.byteLength ? !1 : l(new Uint8Array(r), new Uint8Array(e), t, s);
|
|
84
|
+
case I:
|
|
85
|
+
return r.byteLength !== e.byteLength || r.byteOffset !== e.byteOffset ? !1 : l(new Uint8Array(r), new Uint8Array(e), t, s);
|
|
86
|
+
case L:
|
|
87
|
+
return r.name === e.name && r.message === e.message;
|
|
88
|
+
case p: {
|
|
89
|
+
if (!(l(r.constructor, e.constructor, t, s) || O(r) && O(e))) return !1;
|
|
90
|
+
const n = [...Object.keys(r), ...A(r)], c = [...Object.keys(e), ...A(e)];
|
|
91
|
+
if (n.length !== c.length) return !1;
|
|
92
|
+
for (let o = 0; o < n.length; o++) {
|
|
93
|
+
const g = n[o], m = r[g];
|
|
94
|
+
if (!Object.hasOwn(e, g)) return !1;
|
|
95
|
+
const T = e[g];
|
|
96
|
+
if (!a(m, T, g, r, e, t, s)) return !1;
|
|
97
|
+
}
|
|
98
|
+
return !0;
|
|
99
|
+
}
|
|
100
|
+
default:
|
|
101
|
+
return !1;
|
|
102
|
+
}
|
|
103
|
+
} finally {
|
|
104
|
+
t.delete(r), t.delete(e);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
export {
|
|
108
|
+
b as isEqualWith
|
|
109
|
+
};
|
|
110
|
+
//# sourceMappingURL=isEqualWith.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isEqualWith.js","sources":["../../../../../node_modules/es-toolkit/dist/predicate/isEqualWith.mjs"],"sourcesContent":["import { getSymbols } from \"../compat/_internal/getSymbols.mjs\";\nimport { getTag } from \"../compat/_internal/getTag.mjs\";\nimport { arrayBufferTag, arrayTag, bigInt64ArrayTag, bigUint64ArrayTag, booleanTag, dataViewTag, dateTag, errorTag, float32ArrayTag, float64ArrayTag, functionTag, int16ArrayTag, int32ArrayTag, int8ArrayTag, mapTag, numberTag, objectTag, regexpTag, setTag, stringTag, symbolTag, uint16ArrayTag, uint32ArrayTag, uint8ArrayTag, uint8ClampedArrayTag } from \"../compat/_internal/tags.mjs\";\nimport { isBuffer } from \"./isBuffer.mjs\";\nimport { isPlainObject } from \"./isPlainObject.mjs\";\nimport { eq } from \"../compat/util/eq.mjs\";\n//#region src/predicate/isEqualWith.ts\n/**\n* Compares two values for equality using a custom comparison function.\n*\n* The custom function allows for fine-tuned control over the comparison process. If it returns a boolean, that result determines the equality. If it returns undefined, the function falls back to the default equality comparison.\n*\n* This function also uses the custom equality function to compare values inside objects,\n* arrays, maps, sets, and other complex structures, ensuring a deep comparison.\n*\n* This approach provides flexibility in handling complex comparisons while maintaining efficient default behavior for simpler cases.\n*\n* The custom comparison function can take up to six parameters:\n* - `x`: The value from the first object `a`.\n* - `y`: The value from the second object `b`.\n* - `property`: The property key used to get `x` and `y`.\n* - `xParent`: The parent of the first value `x`.\n* - `yParent`: The parent of the second value `y`.\n* - `stack`: An internal stack (Map) to handle circular references.\n*\n* @param a - The first value to compare.\n* @param b - The second value to compare.\n* @param areValuesEqual - A function to customize the comparison.\n* If it returns a boolean, that result will be used. If it returns undefined,\n* the default equality comparison will be used.\n* @returns `true` if the values are equal according to the customizer, otherwise `false`.\n*\n* @example\n* const customizer = (a, b) => {\n* if (typeof a === 'string' && typeof b === 'string') {\n* return a.toLowerCase() === b.toLowerCase();\n* }\n* };\n* isEqualWith('Hello', 'hello', customizer); // true\n* isEqualWith({ a: 'Hello' }, { a: 'hello' }, customizer); // true\n* isEqualWith([1, 2, 3], [1, 2, 3], customizer); // true\n*/\nfunction isEqualWith(a, b, areValuesEqual) {\n\treturn isEqualWithImpl(a, b, void 0, void 0, void 0, void 0, areValuesEqual);\n}\nfunction isEqualWithImpl(a, b, property, aParent, bParent, stack, areValuesEqual) {\n\tconst result = areValuesEqual(a, b, property, aParent, bParent, stack);\n\tif (result !== void 0) return result;\n\tif (typeof a === typeof b) switch (typeof a) {\n\t\tcase \"bigint\":\n\t\tcase \"string\":\n\t\tcase \"boolean\":\n\t\tcase \"symbol\":\n\t\tcase \"undefined\": return a === b;\n\t\tcase \"number\": return a === b || Object.is(a, b);\n\t\tcase \"function\": return a === b;\n\t\tcase \"object\": return areObjectsEqual(a, b, stack, areValuesEqual);\n\t}\n\treturn areObjectsEqual(a, b, stack, areValuesEqual);\n}\nfunction areObjectsEqual(a, b, stack, areValuesEqual) {\n\tif (Object.is(a, b)) return true;\n\tlet aTag = getTag(a);\n\tlet bTag = getTag(b);\n\tif (aTag === \"[object Arguments]\") aTag = objectTag;\n\tif (bTag === \"[object Arguments]\") bTag = objectTag;\n\tif (aTag !== bTag) return false;\n\tswitch (aTag) {\n\t\tcase stringTag: return a.toString() === b.toString();\n\t\tcase numberTag: return eq(a.valueOf(), b.valueOf());\n\t\tcase booleanTag:\n\t\tcase dateTag:\n\t\tcase symbolTag: return Object.is(a.valueOf(), b.valueOf());\n\t\tcase regexpTag: return a.source === b.source && a.flags === b.flags;\n\t\tcase functionTag: return a === b;\n\t}\n\tstack = stack ?? /* @__PURE__ */ new Map();\n\tconst aStack = stack.get(a);\n\tconst bStack = stack.get(b);\n\tif (aStack != null && bStack != null) return aStack === b;\n\tstack.set(a, b);\n\tstack.set(b, a);\n\ttry {\n\t\tswitch (aTag) {\n\t\t\tcase mapTag:\n\t\t\t\tif (a.size !== b.size) return false;\n\t\t\t\tfor (const [key, value] of a.entries()) if (!b.has(key) || !isEqualWithImpl(value, b.get(key), key, a, b, stack, areValuesEqual)) return false;\n\t\t\t\treturn true;\n\t\t\tcase setTag: {\n\t\t\t\tif (a.size !== b.size) return false;\n\t\t\t\tconst aValues = Array.from(a.values());\n\t\t\t\tconst bValues = Array.from(b.values());\n\t\t\t\tfor (let i = 0; i < aValues.length; i++) {\n\t\t\t\t\tconst aValue = aValues[i];\n\t\t\t\t\tconst index = bValues.findIndex((bValue) => {\n\t\t\t\t\t\treturn isEqualWithImpl(aValue, bValue, void 0, a, b, stack, areValuesEqual);\n\t\t\t\t\t});\n\t\t\t\t\tif (index === -1) return false;\n\t\t\t\t\tbValues.splice(index, 1);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tcase arrayTag:\n\t\t\tcase uint8ArrayTag:\n\t\t\tcase uint8ClampedArrayTag:\n\t\t\tcase uint16ArrayTag:\n\t\t\tcase uint32ArrayTag:\n\t\t\tcase bigUint64ArrayTag:\n\t\t\tcase int8ArrayTag:\n\t\t\tcase int16ArrayTag:\n\t\t\tcase int32ArrayTag:\n\t\t\tcase bigInt64ArrayTag:\n\t\t\tcase float32ArrayTag:\n\t\t\tcase float64ArrayTag:\n\t\t\t\tif (isBuffer(a) !== isBuffer(b)) return false;\n\t\t\t\tif (a.length !== b.length) return false;\n\t\t\t\tfor (let i = 0; i < a.length; i++) if (!isEqualWithImpl(a[i], b[i], i, a, b, stack, areValuesEqual)) return false;\n\t\t\t\treturn true;\n\t\t\tcase arrayBufferTag:\n\t\t\t\tif (a.byteLength !== b.byteLength) return false;\n\t\t\t\treturn areObjectsEqual(new Uint8Array(a), new Uint8Array(b), stack, areValuesEqual);\n\t\t\tcase dataViewTag:\n\t\t\t\tif (a.byteLength !== b.byteLength || a.byteOffset !== b.byteOffset) return false;\n\t\t\t\treturn areObjectsEqual(new Uint8Array(a), new Uint8Array(b), stack, areValuesEqual);\n\t\t\tcase errorTag: return a.name === b.name && a.message === b.message;\n\t\t\tcase objectTag: {\n\t\t\t\tif (!(areObjectsEqual(a.constructor, b.constructor, stack, areValuesEqual) || isPlainObject(a) && isPlainObject(b))) return false;\n\t\t\t\tconst aKeys = [...Object.keys(a), ...getSymbols(a)];\n\t\t\t\tconst bKeys = [...Object.keys(b), ...getSymbols(b)];\n\t\t\t\tif (aKeys.length !== bKeys.length) return false;\n\t\t\t\tfor (let i = 0; i < aKeys.length; i++) {\n\t\t\t\t\tconst propKey = aKeys[i];\n\t\t\t\t\tconst aProp = a[propKey];\n\t\t\t\t\tif (!Object.hasOwn(b, propKey)) return false;\n\t\t\t\t\tconst bProp = b[propKey];\n\t\t\t\t\tif (!isEqualWithImpl(aProp, bProp, propKey, a, b, stack, areValuesEqual)) return false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tdefault: return false;\n\t\t}\n\t} finally {\n\t\tstack.delete(a);\n\t\tstack.delete(b);\n\t}\n}\n//#endregion\nexport { isEqualWith };\n"],"names":["isEqualWith","a","b","areValuesEqual","isEqualWithImpl","property","aParent","bParent","stack","result","areObjectsEqual","aTag","getTag","bTag","objectTag","stringTag","numberTag","eq","booleanTag","dateTag","symbolTag","regexpTag","functionTag","aStack","bStack","mapTag","key","value","setTag","aValues","bValues","i","aValue","index","bValue","arrayTag","uint8ArrayTag","uint8ClampedArrayTag","uint16ArrayTag","uint32ArrayTag","bigUint64ArrayTag","int8ArrayTag","int16ArrayTag","int32ArrayTag","bigInt64ArrayTag","float32ArrayTag","float64ArrayTag","isBuffer","arrayBufferTag","dataViewTag","errorTag","isPlainObject","aKeys","getSymbols","bKeys","propKey","aProp","bProp"],"mappings":";;;;;;AA0CA,SAASA,EAAYC,GAAGC,GAAGC,GAAgB;AAC1C,SAAOC,EAAgBH,GAAGC,GAAG,QAAQ,QAAQ,QAAQ,QAAQC,CAAc;AAC5E;A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AO;AACvC,gBAAME,IAAQvD,EAAEqD,CAAO;AACvB,cAAI,CAACnD,EAAgBoD,GAAOC,GAAOF,GAAStD,GAAGC,GAAGM,GAAOL,CAAc,EAAG,QAAO;AAAA,QAClF;AACA,eAAO;AAAA,MACR;AAAA,MACA;AAAS,eAAO;AAAA,IACnB;AAAA,EACC,UAAC;AACA,IAAAK,EAAM,OAAOP,CAAC,GACdO,EAAM,OAAON,CAAC;AAAA,EACf;AACD;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isLength.js","sources":["../../../../../node_modules/es-toolkit/dist/predicate/isLength.mjs"],"sourcesContent":["//#region src/predicate/isLength.ts\n/**\n* Checks if a given value is a valid length.\n*\n* A valid length is of type `number`, is a non-negative integer, and is less than or equal to\n* JavaScript's maximum safe integer (`Number.MAX_SAFE_INTEGER`).\n* It returns `true` if the value is a valid length, and `false` otherwise.\n*\n* This function can also serve as a type predicate in TypeScript, narrowing the type of the\n* argument to a valid length (`number`).\n*\n* @param value The value to check.\n* @returns Returns `true` if `value` is a valid length, else `false`.\n*\n* @example\n* isLength(0); // true\n* isLength(42); // true\n* isLength(-1); // false\n* isLength(1.5); // false\n* isLength(Number.MAX_SAFE_INTEGER); // true\n* isLength(Number.MAX_SAFE_INTEGER + 1); // false\n*/\nfunction isLength(value) {\n\treturn Number.isSafeInteger(value) && value >= 0;\n}\n//#endregion\nexport { isLength };\n"],"names":["isLength","value"],"mappings":"AAsBA,SAASA,EAASC,GAAO;AACxB,SAAO,OAAO,cAAcA,CAAK,KAAKA,KAAS;AAChD;","x_google_ignoreList":[0]}
|