@ontos-ai/knowhere-claw 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +1 -35
  2. package/dist/client.js +1 -1
  3. package/dist/graph-builder.js +8 -4
  4. package/dist/kg-service.js +25 -28
  5. package/dist/parser.js +1 -1
  6. package/openclaw.plugin.json +1 -1
  7. package/package.json +2 -1
  8. package/dist/node_modules/.pnpm/@knowhere-ai_sdk@0.1.1/node_modules/@knowhere-ai/sdk/dist/index.js +0 -717
  9. package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js +0 -212
  10. package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/pre-binding.js +0 -35
  11. package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/abi_crosswalk.js +0 -2609
  12. package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/napi.js +0 -142
  13. package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js +0 -103
  14. package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/versioning.js +0 -199
  15. package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/package.js +0 -67
  16. package/dist/node_modules/.pnpm/abbrev@1.1.1/node_modules/abbrev/abbrev.js +0 -59
  17. package/dist/node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js +0 -11
  18. package/dist/node_modules/.pnpm/aproba@2.1.0/node_modules/aproba/index.js +0 -119
  19. package/dist/node_modules/.pnpm/are-we-there-yet@2.0.0/node_modules/are-we-there-yet/lib/index.js +0 -13
  20. package/dist/node_modules/.pnpm/are-we-there-yet@2.0.0/node_modules/are-we-there-yet/lib/tracker-base.js +0 -16
  21. package/dist/node_modules/.pnpm/are-we-there-yet@2.0.0/node_modules/are-we-there-yet/lib/tracker-group.js +0 -98
  22. package/dist/node_modules/.pnpm/are-we-there-yet@2.0.0/node_modules/are-we-there-yet/lib/tracker-stream.js +0 -37
  23. package/dist/node_modules/.pnpm/are-we-there-yet@2.0.0/node_modules/are-we-there-yet/lib/tracker.js +0 -32
  24. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/adapters/adapters.js +0 -83
  25. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/adapters/fetch.js +0 -170
  26. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/adapters/xhr.js +0 -106
  27. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/axios.js +0 -57
  28. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/cancel/CancelToken.js +0 -90
  29. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/cancel/CanceledError.js +0 -20
  30. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/cancel/isCancel.js +0 -6
  31. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/Axios.js +0 -174
  32. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/AxiosError.js +0 -70
  33. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/AxiosHeaders.js +0 -204
  34. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/InterceptorManager.js +0 -60
  35. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/buildFullPath.js +0 -20
  36. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/dispatchRequest.js +0 -52
  37. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/mergeConfig.js +0 -81
  38. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/settle.js +0 -18
  39. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/transformData.js +0 -25
  40. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/defaults/index.js +0 -107
  41. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/defaults/transitional.js +0 -9
  42. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/env/data.js +0 -4
  43. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -50
  44. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -77
  45. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/bind.js +0 -15
  46. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/buildURL.js +0 -40
  47. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/combineURLs.js +0 -14
  48. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/composeSignals.js +0 -39
  49. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/cookies.js +0 -31
  50. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/formDataToJSON.js +0 -67
  51. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -14
  52. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/isAxiosError.js +0 -14
  53. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -8
  54. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/parseHeaders.js +0 -53
  55. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/parseProtocol.js +0 -7
  56. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/progressEventReducer.js +0 -38
  57. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/resolveConfig.js +0 -36
  58. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/speedometer.js +0 -36
  59. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/spread.js +0 -29
  60. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/throttle.js +0 -38
  61. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/toFormData.js +0 -151
  62. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -18
  63. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/trackStream.js +0 -69
  64. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/validator.js +0 -76
  65. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -4
  66. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -4
  67. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -5
  68. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/index.js +0 -22
  69. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/common/utils.js +0 -46
  70. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/index.js +0 -9
  71. package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/utils.js +0 -698
  72. package/dist/node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js +0 -53
  73. package/dist/node_modules/.pnpm/brace-expansion@1.1.12/node_modules/brace-expansion/index.js +0 -132
  74. package/dist/node_modules/.pnpm/color-support@1.1.3/node_modules/color-support/browser.js +0 -18
  75. package/dist/node_modules/.pnpm/concat-map@0.0.1/node_modules/concat-map/index.js +0 -19
  76. package/dist/node_modules/.pnpm/console-control-strings@1.1.0/node_modules/console-control-strings/index.js +0 -104
  77. package/dist/node_modules/.pnpm/delegates@1.0.0/node_modules/delegates/index.js +0 -104
  78. package/dist/node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/detect-libc.js +0 -221
  79. package/dist/node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/elf.js +0 -26
  80. package/dist/node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/filesystem.js +0 -48
  81. package/dist/node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/process.js +0 -24
  82. package/dist/node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js +0 -10
  83. package/dist/node_modules/.pnpm/fflate@0.8.2/node_modules/fflate/esm/browser.js +0 -426
  84. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/copy-sync.js +0 -120
  85. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/copy.js +0 -100
  86. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/index.js +0 -15
  87. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/empty/index.js +0 -43
  88. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/file.js +0 -53
  89. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/index.js +0 -27
  90. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/link.js +0 -56
  91. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -89
  92. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -35
  93. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink.js +0 -81
  94. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/fs/index.js +0 -113
  95. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/index.js +0 -29
  96. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/index.js +0 -22
  97. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/jsonfile.js +0 -15
  98. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/output-json-sync.js +0 -15
  99. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/output-json.js +0 -15
  100. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/index.js +0 -20
  101. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/make-dir.js +0 -33
  102. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/utils.js +0 -17
  103. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/index.js +0 -15
  104. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/move-sync.js +0 -56
  105. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/move.js +0 -49
  106. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/output-file/index.js +0 -30
  107. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/path-exists/index.js +0 -18
  108. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/remove/index.js +0 -27
  109. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/async.js +0 -15
  110. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/stat.js +0 -131
  111. package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/utimes.js +0 -34
  112. package/dist/node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/index.js +0 -51
  113. package/dist/node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/old.js +0 -171
  114. package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/base-theme.js +0 -21
  115. package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/error.js +0 -27
  116. package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/has-color.js +0 -9
  117. package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/index.js +0 -224
  118. package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/plumbing.js +0 -48
  119. package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/process.js +0 -8
  120. package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/progress-bar.js +0 -46
  121. package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/render-template.js +0 -155
  122. package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/set-immediate.js +0 -14
  123. package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/set-interval.js +0 -8
  124. package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/spin.js +0 -10
  125. package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/template-item.js +0 -58
  126. package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/theme-set.js +0 -99
  127. package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/themes.js +0 -67
  128. package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/wide-truncate.js +0 -22
  129. package/dist/node_modules/.pnpm/glob@7.2.3/node_modules/glob/common.js +0 -162
  130. package/dist/node_modules/.pnpm/glob@7.2.3/node_modules/glob/glob.js +0 -451
  131. package/dist/node_modules/.pnpm/glob@7.2.3/node_modules/glob/sync.js +0 -280
  132. package/dist/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js +0 -20
  133. package/dist/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js +0 -362
  134. package/dist/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js +0 -92
  135. package/dist/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js +0 -255
  136. package/dist/node_modules/.pnpm/has-unicode@2.0.1/node_modules/has-unicode/index.js +0 -14
  137. package/dist/node_modules/.pnpm/inflight@1.0.6/node_modules/inflight/inflight.js +0 -45
  138. package/dist/node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js +0 -27
  139. package/dist/node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js +0 -14
  140. package/dist/node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/index.js +0 -68
  141. package/dist/node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/utils.js +0 -19
  142. package/dist/node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.js +0 -3110
  143. package/dist/node_modules/.pnpm/minimatch@3.1.5/node_modules/minimatch/minimatch.js +0 -578
  144. package/dist/node_modules/.pnpm/nodejieba@2.6.0/node_modules/nodejieba/index.js +0 -46
  145. package/dist/node_modules/.pnpm/nopt@5.0.0/node_modules/nopt/lib/nopt.js +0 -330
  146. package/dist/node_modules/.pnpm/npmlog@5.0.1/node_modules/npmlog/log.js +0 -305
  147. package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js +0 -54
  148. package/dist/node_modules/.pnpm/once@1.4.0/node_modules/once/once.js +0 -44
  149. package/dist/node_modules/.pnpm/path-is-absolute@1.0.1/node_modules/path-is-absolute/index.js +0 -19
  150. package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/errors-browser.js +0 -88
  151. package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_duplex.js +0 -75
  152. package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_passthrough.js +0 -19
  153. package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_readable.js +0 -666
  154. package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_transform.js +0 -89
  155. package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_writable.js +0 -423
  156. package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -172
  157. package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -243
  158. package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -77
  159. package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -87
  160. package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -10
  161. package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -80
  162. package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/state.js +0 -21
  163. package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -8
  164. package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/readable-browser.js +0 -23
  165. package/dist/node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js +0 -229
  166. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/comparator.js +0 -79
  167. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/range.js +0 -282
  168. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js +0 -186
  169. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js +0 -14
  170. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/cmp.js +0 -41
  171. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js +0 -34
  172. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-build.js +0 -15
  173. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-loose.js +0 -11
  174. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare.js +0 -11
  175. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js +0 -32
  176. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/eq.js +0 -11
  177. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gt.js +0 -11
  178. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gte.js +0 -11
  179. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/inc.js +0 -22
  180. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lt.js +0 -11
  181. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lte.js +0 -11
  182. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/major.js +0 -11
  183. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/minor.js +0 -11
  184. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/neq.js +0 -11
  185. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js +0 -19
  186. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/patch.js +0 -11
  187. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js +0 -14
  188. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rcompare.js +0 -11
  189. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rsort.js +0 -11
  190. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/satisfies.js +0 -18
  191. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/sort.js +0 -11
  192. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js +0 -14
  193. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/index.js +0 -99
  194. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js +0 -28
  195. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js +0 -8
  196. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js +0 -23
  197. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/lrucache.js +0 -36
  198. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js +0 -15
  199. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js +0 -84
  200. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/gtr.js +0 -11
  201. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/intersects.js +0 -15
  202. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/ltr.js +0 -11
  203. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/max-satisfying.js +0 -31
  204. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-satisfying.js +0 -31
  205. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-version.js +0 -45
  206. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/outside.js +0 -64
  207. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/simplify.js +0 -35
  208. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/subset.js +0 -102
  209. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/to-comparators.js +0 -11
  210. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/valid.js +0 -17
  211. package/dist/node_modules/.pnpm/set-blocking@2.0.0/node_modules/set-blocking/index.js +0 -12
  212. package/dist/node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js +0 -130
  213. package/dist/node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js +0 -16
  214. package/dist/node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js +0 -30
  215. package/dist/node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js +0 -10
  216. package/dist/node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js +0 -26
  217. package/dist/node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/browser.js +0 -59
  218. package/dist/node_modules/.pnpm/wide-align@1.1.5/node_modules/wide-align/align.js +0 -52
  219. package/dist/node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js +0 -26
@@ -1,698 +0,0 @@
1
- import bind from "./helpers/bind.js";
2
- //#region node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/utils.js
3
- const { toString } = Object.prototype;
4
- const { getPrototypeOf } = Object;
5
- const { iterator, toStringTag } = Symbol;
6
- const kindOf = ((cache) => (thing) => {
7
- const str = toString.call(thing);
8
- return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
9
- })(Object.create(null));
10
- const kindOfTest = (type) => {
11
- type = type.toLowerCase();
12
- return (thing) => kindOf(thing) === type;
13
- };
14
- const typeOfTest = (type) => (thing) => typeof thing === type;
15
- /**
16
- * Determine if a value is a non-null object
17
- *
18
- * @param {Object} val The value to test
19
- *
20
- * @returns {boolean} True if value is an Array, otherwise false
21
- */
22
- const { isArray } = Array;
23
- /**
24
- * Determine if a value is undefined
25
- *
26
- * @param {*} val The value to test
27
- *
28
- * @returns {boolean} True if the value is undefined, otherwise false
29
- */
30
- const isUndefined = typeOfTest("undefined");
31
- /**
32
- * Determine if a value is a Buffer
33
- *
34
- * @param {*} val The value to test
35
- *
36
- * @returns {boolean} True if value is a Buffer, otherwise false
37
- */
38
- function isBuffer(val) {
39
- return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
40
- }
41
- /**
42
- * Determine if a value is an ArrayBuffer
43
- *
44
- * @param {*} val The value to test
45
- *
46
- * @returns {boolean} True if value is an ArrayBuffer, otherwise false
47
- */
48
- const isArrayBuffer = kindOfTest("ArrayBuffer");
49
- /**
50
- * Determine if a value is a view on an ArrayBuffer
51
- *
52
- * @param {*} val The value to test
53
- *
54
- * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
55
- */
56
- function isArrayBufferView(val) {
57
- let result;
58
- if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) result = ArrayBuffer.isView(val);
59
- else result = val && val.buffer && isArrayBuffer(val.buffer);
60
- return result;
61
- }
62
- /**
63
- * Determine if a value is a String
64
- *
65
- * @param {*} val The value to test
66
- *
67
- * @returns {boolean} True if value is a String, otherwise false
68
- */
69
- const isString = typeOfTest("string");
70
- /**
71
- * Determine if a value is a Function
72
- *
73
- * @param {*} val The value to test
74
- * @returns {boolean} True if value is a Function, otherwise false
75
- */
76
- const isFunction = typeOfTest("function");
77
- /**
78
- * Determine if a value is a Number
79
- *
80
- * @param {*} val The value to test
81
- *
82
- * @returns {boolean} True if value is a Number, otherwise false
83
- */
84
- const isNumber = typeOfTest("number");
85
- /**
86
- * Determine if a value is an Object
87
- *
88
- * @param {*} thing The value to test
89
- *
90
- * @returns {boolean} True if value is an Object, otherwise false
91
- */
92
- const isObject = (thing) => thing !== null && typeof thing === "object";
93
- /**
94
- * Determine if a value is a Boolean
95
- *
96
- * @param {*} thing The value to test
97
- * @returns {boolean} True if value is a Boolean, otherwise false
98
- */
99
- const isBoolean = (thing) => thing === true || thing === false;
100
- /**
101
- * Determine if a value is a plain Object
102
- *
103
- * @param {*} val The value to test
104
- *
105
- * @returns {boolean} True if value is a plain Object, otherwise false
106
- */
107
- const isPlainObject = (val) => {
108
- if (kindOf(val) !== "object") return false;
109
- const prototype = getPrototypeOf(val);
110
- return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
111
- };
112
- /**
113
- * Determine if a value is an empty object (safely handles Buffers)
114
- *
115
- * @param {*} val The value to test
116
- *
117
- * @returns {boolean} True if value is an empty object, otherwise false
118
- */
119
- const isEmptyObject = (val) => {
120
- if (!isObject(val) || isBuffer(val)) return false;
121
- try {
122
- return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
123
- } catch (e) {
124
- return false;
125
- }
126
- };
127
- /**
128
- * Determine if a value is a Date
129
- *
130
- * @param {*} val The value to test
131
- *
132
- * @returns {boolean} True if value is a Date, otherwise false
133
- */
134
- const isDate = kindOfTest("Date");
135
- /**
136
- * Determine if a value is a File
137
- *
138
- * @param {*} val The value to test
139
- *
140
- * @returns {boolean} True if value is a File, otherwise false
141
- */
142
- const isFile = kindOfTest("File");
143
- /**
144
- * Determine if a value is a React Native Blob
145
- * React Native "blob": an object with a `uri` attribute. Optionally, it can
146
- * also have a `name` and `type` attribute to specify filename and content type
147
- *
148
- * @see https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/FormData.js#L68-L71
149
- *
150
- * @param {*} value The value to test
151
- *
152
- * @returns {boolean} True if value is a React Native Blob, otherwise false
153
- */
154
- const isReactNativeBlob = (value) => {
155
- return !!(value && typeof value.uri !== "undefined");
156
- };
157
- /**
158
- * Determine if environment is React Native
159
- * ReactNative `FormData` has a non-standard `getParts()` method
160
- *
161
- * @param {*} formData The formData to test
162
- *
163
- * @returns {boolean} True if environment is React Native, otherwise false
164
- */
165
- const isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
166
- /**
167
- * Determine if a value is a Blob
168
- *
169
- * @param {*} val The value to test
170
- *
171
- * @returns {boolean} True if value is a Blob, otherwise false
172
- */
173
- const isBlob = kindOfTest("Blob");
174
- /**
175
- * Determine if a value is a FileList
176
- *
177
- * @param {*} val The value to test
178
- *
179
- * @returns {boolean} True if value is a File, otherwise false
180
- */
181
- const isFileList = kindOfTest("FileList");
182
- /**
183
- * Determine if a value is a Stream
184
- *
185
- * @param {*} val The value to test
186
- *
187
- * @returns {boolean} True if value is a Stream, otherwise false
188
- */
189
- const isStream = (val) => isObject(val) && isFunction(val.pipe);
190
- /**
191
- * Determine if a value is a FormData
192
- *
193
- * @param {*} thing The value to test
194
- *
195
- * @returns {boolean} True if value is an FormData, otherwise false
196
- */
197
- function getGlobal() {
198
- if (typeof globalThis !== "undefined") return globalThis;
199
- if (typeof self !== "undefined") return self;
200
- if (typeof window !== "undefined") return window;
201
- if (typeof global !== "undefined") return global;
202
- return {};
203
- }
204
- const G = getGlobal();
205
- const FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
206
- const isFormData = (thing) => {
207
- let kind;
208
- return thing && (FormDataCtor && thing instanceof FormDataCtor || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
209
- };
210
- /**
211
- * Determine if a value is a URLSearchParams object
212
- *
213
- * @param {*} val The value to test
214
- *
215
- * @returns {boolean} True if value is a URLSearchParams object, otherwise false
216
- */
217
- const isURLSearchParams = kindOfTest("URLSearchParams");
218
- const [isReadableStream, isRequest, isResponse, isHeaders] = [
219
- "ReadableStream",
220
- "Request",
221
- "Response",
222
- "Headers"
223
- ].map(kindOfTest);
224
- /**
225
- * Trim excess whitespace off the beginning and end of a string
226
- *
227
- * @param {String} str The String to trim
228
- *
229
- * @returns {String} The String freed of excess whitespace
230
- */
231
- const trim = (str) => {
232
- return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
233
- };
234
- /**
235
- * Iterate over an Array or an Object invoking a function for each item.
236
- *
237
- * If `obj` is an Array callback will be called passing
238
- * the value, index, and complete array for each item.
239
- *
240
- * If 'obj' is an Object callback will be called passing
241
- * the value, key, and complete object for each property.
242
- *
243
- * @param {Object|Array<unknown>} obj The object to iterate
244
- * @param {Function} fn The callback to invoke for each item
245
- *
246
- * @param {Object} [options]
247
- * @param {Boolean} [options.allOwnKeys = false]
248
- * @returns {any}
249
- */
250
- function forEach(obj, fn, { allOwnKeys = false } = {}) {
251
- if (obj === null || typeof obj === "undefined") return;
252
- let i;
253
- let l;
254
- if (typeof obj !== "object") obj = [obj];
255
- if (isArray(obj)) for (i = 0, l = obj.length; i < l; i++) fn.call(null, obj[i], i, obj);
256
- else {
257
- if (isBuffer(obj)) return;
258
- const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
259
- const len = keys.length;
260
- let key;
261
- for (i = 0; i < len; i++) {
262
- key = keys[i];
263
- fn.call(null, obj[key], key, obj);
264
- }
265
- }
266
- }
267
- /**
268
- * Finds a key in an object, case-insensitive, returning the actual key name.
269
- * Returns null if the object is a Buffer or if no match is found.
270
- *
271
- * @param {Object} obj - The object to search.
272
- * @param {string} key - The key to find (case-insensitive).
273
- * @returns {?string} The actual key name if found, otherwise null.
274
- */
275
- function findKey(obj, key) {
276
- if (isBuffer(obj)) return null;
277
- key = key.toLowerCase();
278
- const keys = Object.keys(obj);
279
- let i = keys.length;
280
- let _key;
281
- while (i-- > 0) {
282
- _key = keys[i];
283
- if (key === _key.toLowerCase()) return _key;
284
- }
285
- return null;
286
- }
287
- const _global = (() => {
288
- if (typeof globalThis !== "undefined") return globalThis;
289
- return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
290
- })();
291
- const isContextDefined = (context) => !isUndefined(context) && context !== _global;
292
- /**
293
- * Accepts varargs expecting each argument to be an object, then
294
- * immutably merges the properties of each object and returns result.
295
- *
296
- * When multiple objects contain the same key the later object in
297
- * the arguments list will take precedence.
298
- *
299
- * Example:
300
- *
301
- * ```js
302
- * const result = merge({foo: 123}, {foo: 456});
303
- * console.log(result.foo); // outputs 456
304
- * ```
305
- *
306
- * @param {Object} obj1 Object to merge
307
- *
308
- * @returns {Object} Result of all merge properties
309
- */
310
- function merge() {
311
- const { caseless, skipUndefined } = isContextDefined(this) && this || {};
312
- const result = {};
313
- const assignValue = (val, key) => {
314
- if (key === "__proto__" || key === "constructor" || key === "prototype") return;
315
- const targetKey = caseless && findKey(result, key) || key;
316
- if (isPlainObject(result[targetKey]) && isPlainObject(val)) result[targetKey] = merge(result[targetKey], val);
317
- else if (isPlainObject(val)) result[targetKey] = merge({}, val);
318
- else if (isArray(val)) result[targetKey] = val.slice();
319
- else if (!skipUndefined || !isUndefined(val)) result[targetKey] = val;
320
- };
321
- for (let i = 0, l = arguments.length; i < l; i++) arguments[i] && forEach(arguments[i], assignValue);
322
- return result;
323
- }
324
- /**
325
- * Extends object a by mutably adding to it the properties of object b.
326
- *
327
- * @param {Object} a The object to be extended
328
- * @param {Object} b The object to copy properties from
329
- * @param {Object} thisArg The object to bind function to
330
- *
331
- * @param {Object} [options]
332
- * @param {Boolean} [options.allOwnKeys]
333
- * @returns {Object} The resulting value of object a
334
- */
335
- const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
336
- forEach(b, (val, key) => {
337
- if (thisArg && isFunction(val)) Object.defineProperty(a, key, {
338
- value: bind(val, thisArg),
339
- writable: true,
340
- enumerable: true,
341
- configurable: true
342
- });
343
- else Object.defineProperty(a, key, {
344
- value: val,
345
- writable: true,
346
- enumerable: true,
347
- configurable: true
348
- });
349
- }, { allOwnKeys });
350
- return a;
351
- };
352
- /**
353
- * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
354
- *
355
- * @param {string} content with BOM
356
- *
357
- * @returns {string} content value without BOM
358
- */
359
- const stripBOM = (content) => {
360
- if (content.charCodeAt(0) === 65279) content = content.slice(1);
361
- return content;
362
- };
363
- /**
364
- * Inherit the prototype methods from one constructor into another
365
- * @param {function} constructor
366
- * @param {function} superConstructor
367
- * @param {object} [props]
368
- * @param {object} [descriptors]
369
- *
370
- * @returns {void}
371
- */
372
- const inherits = (constructor, superConstructor, props, descriptors) => {
373
- constructor.prototype = Object.create(superConstructor.prototype, descriptors);
374
- Object.defineProperty(constructor.prototype, "constructor", {
375
- value: constructor,
376
- writable: true,
377
- enumerable: false,
378
- configurable: true
379
- });
380
- Object.defineProperty(constructor, "super", { value: superConstructor.prototype });
381
- props && Object.assign(constructor.prototype, props);
382
- };
383
- /**
384
- * Resolve object with deep prototype chain to a flat object
385
- * @param {Object} sourceObj source object
386
- * @param {Object} [destObj]
387
- * @param {Function|Boolean} [filter]
388
- * @param {Function} [propFilter]
389
- *
390
- * @returns {Object}
391
- */
392
- const toFlatObject = (sourceObj, destObj, filter, propFilter) => {
393
- let props;
394
- let i;
395
- let prop;
396
- const merged = {};
397
- destObj = destObj || {};
398
- if (sourceObj == null) return destObj;
399
- do {
400
- props = Object.getOwnPropertyNames(sourceObj);
401
- i = props.length;
402
- while (i-- > 0) {
403
- prop = props[i];
404
- if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
405
- destObj[prop] = sourceObj[prop];
406
- merged[prop] = true;
407
- }
408
- }
409
- sourceObj = filter !== false && getPrototypeOf(sourceObj);
410
- } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
411
- return destObj;
412
- };
413
- /**
414
- * Determines whether a string ends with the characters of a specified string
415
- *
416
- * @param {String} str
417
- * @param {String} searchString
418
- * @param {Number} [position= 0]
419
- *
420
- * @returns {boolean}
421
- */
422
- const endsWith = (str, searchString, position) => {
423
- str = String(str);
424
- if (position === void 0 || position > str.length) position = str.length;
425
- position -= searchString.length;
426
- const lastIndex = str.indexOf(searchString, position);
427
- return lastIndex !== -1 && lastIndex === position;
428
- };
429
- /**
430
- * Returns new array from array like object or null if failed
431
- *
432
- * @param {*} [thing]
433
- *
434
- * @returns {?Array}
435
- */
436
- const toArray = (thing) => {
437
- if (!thing) return null;
438
- if (isArray(thing)) return thing;
439
- let i = thing.length;
440
- if (!isNumber(i)) return null;
441
- const arr = new Array(i);
442
- while (i-- > 0) arr[i] = thing[i];
443
- return arr;
444
- };
445
- /**
446
- * Checking if the Uint8Array exists and if it does, it returns a function that checks if the
447
- * thing passed in is an instance of Uint8Array
448
- *
449
- * @param {TypedArray}
450
- *
451
- * @returns {Array}
452
- */
453
- const isTypedArray = ((TypedArray) => {
454
- return (thing) => {
455
- return TypedArray && thing instanceof TypedArray;
456
- };
457
- })(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
458
- /**
459
- * For each entry in the object, call the function with the key and value.
460
- *
461
- * @param {Object<any, any>} obj - The object to iterate over.
462
- * @param {Function} fn - The function to call for each entry.
463
- *
464
- * @returns {void}
465
- */
466
- const forEachEntry = (obj, fn) => {
467
- const _iterator = (obj && obj[iterator]).call(obj);
468
- let result;
469
- while ((result = _iterator.next()) && !result.done) {
470
- const pair = result.value;
471
- fn.call(obj, pair[0], pair[1]);
472
- }
473
- };
474
- /**
475
- * It takes a regular expression and a string, and returns an array of all the matches
476
- *
477
- * @param {string} regExp - The regular expression to match against.
478
- * @param {string} str - The string to search.
479
- *
480
- * @returns {Array<boolean>}
481
- */
482
- const matchAll = (regExp, str) => {
483
- let matches;
484
- const arr = [];
485
- while ((matches = regExp.exec(str)) !== null) arr.push(matches);
486
- return arr;
487
- };
488
- const isHTMLForm = kindOfTest("HTMLFormElement");
489
- const toCamelCase = (str) => {
490
- return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
491
- return p1.toUpperCase() + p2;
492
- });
493
- };
494
- const hasOwnProperty = (({ hasOwnProperty }) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
495
- /**
496
- * Determine if a value is a RegExp object
497
- *
498
- * @param {*} val The value to test
499
- *
500
- * @returns {boolean} True if value is a RegExp object, otherwise false
501
- */
502
- const isRegExp = kindOfTest("RegExp");
503
- const reduceDescriptors = (obj, reducer) => {
504
- const descriptors = Object.getOwnPropertyDescriptors(obj);
505
- const reducedDescriptors = {};
506
- forEach(descriptors, (descriptor, name) => {
507
- let ret;
508
- if ((ret = reducer(descriptor, name, obj)) !== false) reducedDescriptors[name] = ret || descriptor;
509
- });
510
- Object.defineProperties(obj, reducedDescriptors);
511
- };
512
- /**
513
- * Makes all methods read-only
514
- * @param {Object} obj
515
- */
516
- const freezeMethods = (obj) => {
517
- reduceDescriptors(obj, (descriptor, name) => {
518
- if (isFunction(obj) && [
519
- "arguments",
520
- "caller",
521
- "callee"
522
- ].indexOf(name) !== -1) return false;
523
- const value = obj[name];
524
- if (!isFunction(value)) return;
525
- descriptor.enumerable = false;
526
- if ("writable" in descriptor) {
527
- descriptor.writable = false;
528
- return;
529
- }
530
- if (!descriptor.set) descriptor.set = () => {
531
- throw Error("Can not rewrite read-only method '" + name + "'");
532
- };
533
- });
534
- };
535
- /**
536
- * Converts an array or a delimited string into an object set with values as keys and true as values.
537
- * Useful for fast membership checks.
538
- *
539
- * @param {Array|string} arrayOrString - The array or string to convert.
540
- * @param {string} delimiter - The delimiter to use if input is a string.
541
- * @returns {Object} An object with keys from the array or string, values set to true.
542
- */
543
- const toObjectSet = (arrayOrString, delimiter) => {
544
- const obj = {};
545
- const define = (arr) => {
546
- arr.forEach((value) => {
547
- obj[value] = true;
548
- });
549
- };
550
- isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
551
- return obj;
552
- };
553
- const noop = () => {};
554
- const toFiniteNumber = (value, defaultValue) => {
555
- return value != null && Number.isFinite(value = +value) ? value : defaultValue;
556
- };
557
- /**
558
- * If the thing is a FormData object, return true, otherwise return false.
559
- *
560
- * @param {unknown} thing - The thing to check.
561
- *
562
- * @returns {boolean}
563
- */
564
- function isSpecCompliantForm(thing) {
565
- return !!(thing && isFunction(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
566
- }
567
- /**
568
- * Recursively converts an object to a JSON-compatible object, handling circular references and Buffers.
569
- *
570
- * @param {Object} obj - The object to convert.
571
- * @returns {Object} The JSON-compatible object.
572
- */
573
- const toJSONObject = (obj) => {
574
- const stack = new Array(10);
575
- const visit = (source, i) => {
576
- if (isObject(source)) {
577
- if (stack.indexOf(source) >= 0) return;
578
- if (isBuffer(source)) return source;
579
- if (!("toJSON" in source)) {
580
- stack[i] = source;
581
- const target = isArray(source) ? [] : {};
582
- forEach(source, (value, key) => {
583
- const reducedValue = visit(value, i + 1);
584
- !isUndefined(reducedValue) && (target[key] = reducedValue);
585
- });
586
- stack[i] = void 0;
587
- return target;
588
- }
589
- }
590
- return source;
591
- };
592
- return visit(obj, 0);
593
- };
594
- /**
595
- * Determines if a value is an async function.
596
- *
597
- * @param {*} thing - The value to test.
598
- * @returns {boolean} True if value is an async function, otherwise false.
599
- */
600
- const isAsyncFn = kindOfTest("AsyncFunction");
601
- /**
602
- * Determines if a value is thenable (has then and catch methods).
603
- *
604
- * @param {*} thing - The value to test.
605
- * @returns {boolean} True if value is thenable, otherwise false.
606
- */
607
- const isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
608
- /**
609
- * Provides a cross-platform setImmediate implementation.
610
- * Uses native setImmediate if available, otherwise falls back to postMessage or setTimeout.
611
- *
612
- * @param {boolean} setImmediateSupported - Whether setImmediate is supported.
613
- * @param {boolean} postMessageSupported - Whether postMessage is supported.
614
- * @returns {Function} A function to schedule a callback asynchronously.
615
- */
616
- const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
617
- if (setImmediateSupported) return setImmediate;
618
- return postMessageSupported ? ((token, callbacks) => {
619
- _global.addEventListener("message", ({ source, data }) => {
620
- if (source === _global && data === token) callbacks.length && callbacks.shift()();
621
- }, false);
622
- return (cb) => {
623
- callbacks.push(cb);
624
- _global.postMessage(token, "*");
625
- };
626
- })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
627
- })(typeof setImmediate === "function", isFunction(_global.postMessage));
628
- /**
629
- * Schedules a microtask or asynchronous callback as soon as possible.
630
- * Uses queueMicrotask if available, otherwise falls back to process.nextTick or _setImmediate.
631
- *
632
- * @type {Function}
633
- */
634
- const asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
635
- const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
636
- var utils_default = {
637
- isArray,
638
- isArrayBuffer,
639
- isBuffer,
640
- isFormData,
641
- isArrayBufferView,
642
- isString,
643
- isNumber,
644
- isBoolean,
645
- isObject,
646
- isPlainObject,
647
- isEmptyObject,
648
- isReadableStream,
649
- isRequest,
650
- isResponse,
651
- isHeaders,
652
- isUndefined,
653
- isDate,
654
- isFile,
655
- isReactNativeBlob,
656
- isReactNative,
657
- isBlob,
658
- isRegExp,
659
- isFunction,
660
- isStream,
661
- isURLSearchParams,
662
- isTypedArray,
663
- isFileList,
664
- forEach,
665
- merge,
666
- extend,
667
- trim,
668
- stripBOM,
669
- inherits,
670
- toFlatObject,
671
- kindOf,
672
- kindOfTest,
673
- endsWith,
674
- toArray,
675
- forEachEntry,
676
- matchAll,
677
- isHTMLForm,
678
- hasOwnProperty,
679
- hasOwnProp: hasOwnProperty,
680
- reduceDescriptors,
681
- freezeMethods,
682
- toObjectSet,
683
- toCamelCase,
684
- noop,
685
- toFiniteNumber,
686
- findKey,
687
- global: _global,
688
- isContextDefined,
689
- isSpecCompliantForm,
690
- toJSONObject,
691
- isAsyncFn,
692
- isThenable,
693
- setImmediate: _setImmediate,
694
- asap,
695
- isIterable
696
- };
697
- //#endregion
698
- export { utils_default as default };