@lovrabet/lovrabet-cli 2.3.5 → 2.3.6-beta.1

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 (187) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/approval/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.js +1 -1
  26. package/lib/commands/config/shared.js +1 -1
  27. package/lib/commands/data/import-excel.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.js +1 -1
  32. package/lib/commands/dataset/sdk-doc.js +1 -1
  33. package/lib/commands/doctor.js +1 -1
  34. package/lib/commands/file/index.js +1 -1
  35. package/lib/commands/init.js +1 -1
  36. package/lib/commands/kb/index.js +1 -1
  37. package/lib/commands/logs/index.js +1 -1
  38. package/lib/commands/notification/config-list.js +1 -1
  39. package/lib/commands/notification/index.js +1 -1
  40. package/lib/commands/notification/shared.js +1 -1
  41. package/lib/commands/ocr/index.js +1 -1
  42. package/lib/commands/permit/dataset-get.js +1 -1
  43. package/lib/commands/permit/dataset-set.js +1 -1
  44. package/lib/commands/permit/index.js +1 -1
  45. package/lib/commands/permit/page-get.js +1 -1
  46. package/lib/commands/permit/page-set.js +1 -1
  47. package/lib/commands/permit/role-menus-set.js +1 -1
  48. package/lib/commands/permit/role-menus.js +1 -1
  49. package/lib/commands/permit/shared.js +1 -1
  50. package/lib/commands/personal-bff/index.js +1 -1
  51. package/lib/commands/registry.js +1 -1
  52. package/lib/commands/role/create.js +1 -1
  53. package/lib/commands/role/delete.js +1 -1
  54. package/lib/commands/role/detail.js +1 -1
  55. package/lib/commands/role/index.js +1 -1
  56. package/lib/commands/role/list.js +1 -1
  57. package/lib/commands/role/shared.js +1 -1
  58. package/lib/commands/role/update.js +1 -1
  59. package/lib/commands/role/user-add.js +1 -1
  60. package/lib/commands/role/user-remove.js +1 -1
  61. package/lib/commands/schedule/index.js +1 -1
  62. package/lib/commands/schema.js +1 -1
  63. package/lib/commands/service/dynamic.js +1 -1
  64. package/lib/commands/service/function-name-adapter.js +1 -1
  65. package/lib/commands/service/index.js +1 -1
  66. package/lib/commands/service/registry.js +1 -1
  67. package/lib/commands/skill/commands/create.js +1 -1
  68. package/lib/commands/skill/commands/diagram.js +1 -1
  69. package/lib/commands/skill/commands/install.js +1 -1
  70. package/lib/commands/skill/commands/list.js +1 -1
  71. package/lib/commands/skill/commands/push.js +1 -1
  72. package/lib/commands/skill/commands/validate.js +1 -1
  73. package/lib/commands/skill/diagram.js +1 -1
  74. package/lib/commands/skill/flags.js +1 -1
  75. package/lib/commands/skill/index.js +1 -1
  76. package/lib/commands/skill/manifest-helpers.js +1 -1
  77. package/lib/commands/skill/push-execute.js +1 -1
  78. package/lib/commands/skill/push-flow-helpers.js +1 -1
  79. package/lib/commands/skill/push-retarget.js +1 -1
  80. package/lib/commands/skill/scopes.js +1 -1
  81. package/lib/commands/skill/summary.js +1 -1
  82. package/lib/commands/skill/templates.js +1 -1
  83. package/lib/commands/skill/validate.js +1 -1
  84. package/lib/commands/sql/detail.js +1 -1
  85. package/lib/commands/sql/exec.js +1 -1
  86. package/lib/commands/sql/index.js +1 -1
  87. package/lib/commands/update.js +1 -1
  88. package/lib/commands/user-account/bind.js +1 -1
  89. package/lib/commands/user-account/index.js +1 -1
  90. package/lib/commands/workspace/index.js +1 -1
  91. package/lib/config/domain-config.js +1 -1
  92. package/lib/config/schema.js +1 -1
  93. package/lib/constant/app.js +1 -1
  94. package/lib/constant/auth-mode.js +1 -1
  95. package/lib/constant/cli.js +1 -1
  96. package/lib/constant/defaults.js +1 -1
  97. package/lib/constant/distribution.js +1 -1
  98. package/lib/constant/domain.js +1 -1
  99. package/lib/constant/env.js +1 -1
  100. package/lib/constant/output.js +1 -1
  101. package/lib/constant/product.js +1 -1
  102. package/lib/constant/region.js +1 -1
  103. package/lib/constant/risk.js +1 -1
  104. package/lib/constant/url.js +1 -1
  105. package/lib/context.js +1 -1
  106. package/lib/core/api-client.d.ts +10 -0
  107. package/lib/core/api-client.js +1 -1
  108. package/lib/core/db-resolver.js +1 -1
  109. package/lib/core/kb-search-client.js +1 -1
  110. package/lib/core/sdk-client.js +1 -1
  111. package/lib/errors.js +1 -1
  112. package/lib/framework/access-error.js +1 -1
  113. package/lib/framework/build-all-flags.js +1 -1
  114. package/lib/framework/dryrun.js +1 -1
  115. package/lib/framework/flags.js +1 -1
  116. package/lib/framework/help.js +1 -1
  117. package/lib/framework/index.js +1 -1
  118. package/lib/framework/output.js +1 -1
  119. package/lib/framework/preparse.js +1 -1
  120. package/lib/framework/rate-limit.js +1 -1
  121. package/lib/framework/raw-flags.js +1 -1
  122. package/lib/framework/response.js +1 -1
  123. package/lib/framework/runner-confirmation.js +1 -1
  124. package/lib/framework/runner-error.js +1 -1
  125. package/lib/framework/runner.js +1 -1
  126. package/lib/framework/schema-export.js +1 -1
  127. package/lib/framework/service-order.js +1 -1
  128. package/lib/framework/types.js +1 -1
  129. package/lib/generated/build-info.d.ts +4 -4
  130. package/lib/generated/build-info.js +1 -1
  131. package/lib/generated/official-routing.js +1 -1
  132. package/lib/generated/routing-contract.js +1 -1
  133. package/lib/help.js +1 -1
  134. package/lib/postinstall.js +1 -1
  135. package/lib/runtime/confirmation.js +1 -1
  136. package/lib/runtime/event.js +1 -1
  137. package/lib/runtime/index.js +1 -1
  138. package/lib/runtime/queue.js +1 -1
  139. package/lib/runtime/resolve.js +1 -1
  140. package/lib/services/dataset-import/auto-id-runner.d.ts +3 -1
  141. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  142. package/lib/services/dataset-import/excel-reader.js +1 -1
  143. package/lib/services/dataset-import/image-bytes.d.ts +3 -0
  144. package/lib/services/dataset-import/image-bytes.js +1 -0
  145. package/lib/services/dataset-import/image-ooxml.d.ts +10 -0
  146. package/lib/services/dataset-import/image-ooxml.js +1 -0
  147. package/lib/services/dataset-import/image-runner.d.ts +48 -0
  148. package/lib/services/dataset-import/image-runner.js +1 -0
  149. package/lib/services/dataset-import/metadata.js +1 -1
  150. package/lib/services/dataset-import/preview.js +1 -1
  151. package/lib/services/dataset-import/runner.d.ts +10 -1
  152. package/lib/services/dataset-import/runner.js +1 -1
  153. package/lib/services/dataset-import/types.d.ts +28 -1
  154. package/lib/skills/builtin-skill.js +1 -1
  155. package/lib/skills/npx-skills-add.js +1 -1
  156. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  157. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  158. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  159. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  160. package/lib/skills/runtime-skill-sync/links.js +1 -1
  161. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  162. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  163. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  164. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  165. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  166. package/lib/skills/runtime-skill-sync/push.js +1 -1
  167. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  168. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  169. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  170. package/lib/skills/runtime-skill-sync.js +1 -1
  171. package/lib/skills/skill-presence.js +1 -1
  172. package/lib/utils/access-key-redaction.js +1 -1
  173. package/lib/utils/apply-jq-filter.js +1 -1
  174. package/lib/utils/cli-version-check.js +1 -1
  175. package/lib/utils/cli-version-policy.js +1 -1
  176. package/lib/utils/logger.js +1 -1
  177. package/lib/utils/lossless-json.js +1 -1
  178. package/lib/utils/params.js +1 -1
  179. package/lib/utils/positive-safe-integer.js +1 -1
  180. package/lib/utils/redaction.js +1 -1
  181. package/lib/utils/update-notice.js +1 -1
  182. package/lib/utils/version.js +1 -1
  183. package/lib/utils/write-cli-side-channel.js +1 -1
  184. package/package.json +4 -1
  185. package/skills/lovrabet/SKILL.md +3 -1
  186. package/skills/lovrabet/references/lovrabet-excel-import.md +19 -0
  187. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a127_0x3cee78=a127_0x5aa8;function a127_0x2f0b(){const _0x4387b6=['2.3.5','11iZVGUO','2382570JJVjFk','2008rVDfFG','417370WgzLeY','v2.3.5','60ae1cf','81534guRgro','686326VBvknM','2139991JhpbTh','1899PytMmV','2745648zzshXo','2026-10-16T06:30:06.935Z','1vAVOmH','125isGApK'];a127_0x2f0b=function(){return _0x4387b6;};return a127_0x2f0b();}function a127_0x5aa8(_0x9f1aa2,_0x174b58){_0x9f1aa2=_0x9f1aa2-0x1d9;const _0x2f0ba5=a127_0x2f0b();let _0x5aa8b7=_0x2f0ba5[_0x9f1aa2];return _0x5aa8b7;}(function(_0xae7404,_0x5a71c7){const _0x1b51d0=a127_0x5aa8,_0x540ea1=_0xae7404();while(!![]){try{const _0xc5b8f0=-parseInt(_0x1b51d0(0x1e7))/0x1*(-parseInt(_0x1b51d0(0x1e2))/0x2)+-parseInt(_0x1b51d0(0x1e4))/0x3*(parseInt(_0x1b51d0(0x1dd))/0x4)+parseInt(_0x1b51d0(0x1d9))/0x5*(parseInt(_0x1b51d0(0x1e1))/0x6)+-parseInt(_0x1b51d0(0x1e3))/0x7+parseInt(_0x1b51d0(0x1e5))/0x8+-parseInt(_0x1b51d0(0x1dc))/0x9+-parseInt(_0x1b51d0(0x1de))/0xa*(-parseInt(_0x1b51d0(0x1db))/0xb);if(_0xc5b8f0===_0x5a71c7)break;else _0x540ea1['push'](_0x540ea1['shift']());}catch(_0x200ab3){_0x540ea1['push'](_0x540ea1['shift']());}}}(a127_0x2f0b,0x2bda6));export const VERSION=a127_0x3cee78(0x1da);export const GIT_TAG=a127_0x3cee78(0x1df);export const GIT_COMMIT=a127_0x3cee78(0x1e0);export const BUILD_TIME=a127_0x3cee78(0x1e6);
1
+ const a127_0x350f03=a127_0x35ea;(function(_0x29e51a,_0x254d14){const _0x544742=a127_0x35ea,_0x18c6ec=_0x29e51a();while(!![]){try{const _0x44eb83=-parseInt(_0x544742(0x10c))/0x1*(parseInt(_0x544742(0x10e))/0x2)+-parseInt(_0x544742(0x10b))/0x3+-parseInt(_0x544742(0x10d))/0x4+-parseInt(_0x544742(0x10f))/0x5+parseInt(_0x544742(0x109))/0x6+-parseInt(_0x544742(0x10a))/0x7*(-parseInt(_0x544742(0x105))/0x8)+parseInt(_0x544742(0x108))/0x9;if(_0x44eb83===_0x254d14)break;else _0x18c6ec['push'](_0x18c6ec['shift']());}catch(_0x3e4ba3){_0x18c6ec['push'](_0x18c6ec['shift']());}}}(a127_0x160a,0x5824e));export const VERSION='2.3.6-beta.1';export const GIT_TAG=a127_0x350f03(0x106);export const GIT_COMMIT=a127_0x350f03(0x107);export const BUILD_TIME='2026-10-21T02:52:17.656Z';function a127_0x35ea(_0x41fe35,_0x537d8c){_0x41fe35=_0x41fe35-0x105;const _0x160a1d=a127_0x160a();let _0x35ea8b=_0x160a1d[_0x41fe35];return _0x35ea8b;}function a127_0x160a(){const _0x372ca5=['40IqRhbz','v2.3.6-beta.1','2879bac','11401236Xteoaj','1160664RGCuuE','476707vbiktY','1372575bYKaeV','1jIlkbw','2573020KFOQNG','205174gZxtRe','1181740ykwNCl'];a127_0x160a=function(){return _0x372ca5;};return a127_0x160a();}
@@ -1 +1 @@
1
- function a128_0x1a02(_0x3104d0,_0x17714f){_0x3104d0=_0x3104d0-0x109;const _0x5f2719=a128_0x5f27();let _0x1a02ea=_0x5f2719[_0x3104d0];return _0x1a02ea;}const a128_0x1aec4e=a128_0x1a02;(function(_0x26b062,_0x58ffd7){const _0x128976=a128_0x1a02,_0x28d586=_0x26b062();while(!![]){try{const _0x495ae9=parseInt(_0x128976(0x120))/0x1*(parseInt(_0x128976(0x123))/0x2)+parseInt(_0x128976(0x114))/0x3*(-parseInt(_0x128976(0x117))/0x4)+-parseInt(_0x128976(0x11b))/0x5*(-parseInt(_0x128976(0x11c))/0x6)+parseInt(_0x128976(0x112))/0x7+-parseInt(_0x128976(0x125))/0x8+parseInt(_0x128976(0x10f))/0x9+-parseInt(_0x128976(0x111))/0xa*(parseInt(_0x128976(0x10c))/0xb);if(_0x495ae9===_0x58ffd7)break;else _0x28d586['push'](_0x28d586['shift']());}catch(_0x24678f){_0x28d586['push'](_0x28d586['shift']());}}}(a128_0x5f27,0x34eaa));export const ROUTING_CATALOG_DIGEST=a128_0x1aec4e(0x10a);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a128_0x1aec4e(0x122)];function a128_0x5f27(){const _0x60c3e1=['https://user-daily.lovrabet.ai','380886Qnbqhs','indonesia','https://skills-daily.lovrabet.ai','568377RZUxxP','https://skills-daily.lovrabet.com','50SSghxN','2481101eBljJL','Global','3qnFRlM','china','https://runtime.lovrabet.com','1368352dVbHgn','https://kb-service.lovrabet.com','https://user.lovrabet.ai','https://daily-api.lovrabet.com','2715olETNp','4206ppnscX','https://user-daily.lovrabet.com','https://skills.lovrabet.id','https://user.lovrabet.id','16249hXlRoT','https://kb-service.lovrabet.id','global','30JODRAE','Mainland\x20China','2480080fVqHKo','https://api.lovrabet.ai','https://api.lovrabet.com','https://skills.lovrabet.ai','https://daily-runtime.lovrabet.ai','886843ef89aa4ff2b36d612e8fbd1b6c1840b37728916fba5699be34129ef579'];a128_0x5f27=function(){return _0x60c3e1;};return a128_0x5f27();}export const ENABLED_REGION_VALUES=['cn','id','global'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a128_0x1aec4e(0x124),'aliases':[a128_0x1aec4e(0x115)],'serviceDomains':{'production':{'user':'https://user.lovrabet.com','api':a128_0x1aec4e(0x127),'runtime':a128_0x1aec4e(0x116),'skill':'https://skills.lovrabet.com','kbService':a128_0x1aec4e(0x118)},'daily':{'user':a128_0x1aec4e(0x11d),'api':a128_0x1aec4e(0x11a),'runtime':'https://daily-runtime.lovrabet.com','skill':a128_0x1aec4e(0x110),'kbService':'https://kb-service-daily.lovrabet.com'}}},'id':{'enabled':!![],'label':'Indonesia','aliases':[a128_0x1aec4e(0x10d)],'serviceDomains':{'production':{'user':a128_0x1aec4e(0x11f),'api':'https://api.lovrabet.id','runtime':'https://runtime.lovrabet.id','skill':a128_0x1aec4e(0x11e),'kbService':a128_0x1aec4e(0x121)}}},'global':{'enabled':!![],'label':a128_0x1aec4e(0x113),'aliases':[],'serviceDomains':{'production':{'user':a128_0x1aec4e(0x119),'api':a128_0x1aec4e(0x126),'runtime':'https://runtime.lovrabet.ai','skill':a128_0x1aec4e(0x128)},'daily':{'user':a128_0x1aec4e(0x10b),'api':'https://daily-api.lovrabet.ai','runtime':a128_0x1aec4e(0x109),'skill':a128_0x1aec4e(0x10e)}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
1
+ const a128_0x37064e=a128_0x520b;(function(_0x1e0f79,_0xe76c74){const _0x4de6fb=a128_0x520b,_0x5e9c54=_0x1e0f79();while(!![]){try{const _0x4b1b4f=parseInt(_0x4de6fb(0xc0))/0x1+-parseInt(_0x4de6fb(0xc4))/0x2+parseInt(_0x4de6fb(0xba))/0x3*(-parseInt(_0x4de6fb(0xca))/0x4)+-parseInt(_0x4de6fb(0xad))/0x5+parseInt(_0x4de6fb(0xb8))/0x6*(-parseInt(_0x4de6fb(0xa6))/0x7)+-parseInt(_0x4de6fb(0xb1))/0x8*(parseInt(_0x4de6fb(0xac))/0x9)+parseInt(_0x4de6fb(0xb3))/0xa*(parseInt(_0x4de6fb(0xbd))/0xb);if(_0x4b1b4f===_0xe76c74)break;else _0x5e9c54['push'](_0x5e9c54['shift']());}catch(_0x532e48){_0x5e9c54['push'](_0x5e9c54['shift']());}}}(a128_0x51e6,0x52777));export const ROUTING_CATALOG_DIGEST=a128_0x37064e(0xaf);function a128_0x520b(_0x357a49,_0x29facf){_0x357a49=_0x357a49-0xa5;const _0x51e6db=a128_0x51e6();let _0x520be5=_0x51e6db[_0x357a49];return _0x520be5;}function a128_0x51e6(){const _0x459ca0=['https://runtime.lovrabet.com','10XrMltk','Mainland\x20China','https://daily-runtime.lovrabet.ai','https://daily-api.lovrabet.com','https://runtime.lovrabet.id','6EAUfwd','https://api.lovrabet.id','507QdbjQY','https://skills-daily.lovrabet.com','Indonesia','17953837JXcHyo','https://skills.lovrabet.id','https://daily-runtime.lovrabet.com','116709gthAqF','https://api.lovrabet.com','https://skills.lovrabet.com','Global','1350194FMHWhd','https://kb-service.lovrabet.id','https://runtime.lovrabet.ai','https://user-daily.lovrabet.com','https://kb-service-daily.lovrabet.com','indonesia','7332HuUnid','https://user.lovrabet.com','https://kb-service.lovrabet.com','491365Eprenh','https://user.lovrabet.ai','china','https://user-daily.lovrabet.ai','https://api.lovrabet.ai','https://skills-daily.lovrabet.ai','9hHcigH','1756605ZZcOtO','https://user.lovrabet.id','886843ef89aa4ff2b36d612e8fbd1b6c1840b37728916fba5699be34129ef579','global','37624EiWGWb'];a128_0x51e6=function(){return _0x459ca0;};return a128_0x51e6();}export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a128_0x37064e(0xb0)];export const ENABLED_REGION_VALUES=['cn','id','global'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a128_0x37064e(0xb4),'aliases':[a128_0x37064e(0xa8)],'serviceDomains':{'production':{'user':a128_0x37064e(0xcb),'api':a128_0x37064e(0xc1),'runtime':a128_0x37064e(0xb2),'skill':a128_0x37064e(0xc2),'kbService':a128_0x37064e(0xa5)},'daily':{'user':a128_0x37064e(0xc7),'api':a128_0x37064e(0xb6),'runtime':a128_0x37064e(0xbf),'skill':a128_0x37064e(0xbb),'kbService':a128_0x37064e(0xc8)}}},'id':{'enabled':!![],'label':a128_0x37064e(0xbc),'aliases':[a128_0x37064e(0xc9)],'serviceDomains':{'production':{'user':a128_0x37064e(0xae),'api':a128_0x37064e(0xb9),'runtime':a128_0x37064e(0xb7),'skill':a128_0x37064e(0xbe),'kbService':a128_0x37064e(0xc5)}}},'global':{'enabled':!![],'label':a128_0x37064e(0xc3),'aliases':[],'serviceDomains':{'production':{'user':a128_0x37064e(0xa7),'api':a128_0x37064e(0xaa),'runtime':a128_0x37064e(0xc6),'skill':'https://skills.lovrabet.ai'},'daily':{'user':a128_0x37064e(0xa9),'api':'https://daily-api.lovrabet.ai','runtime':a128_0x37064e(0xb5),'skill':a128_0x37064e(0xab)}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
@@ -1 +1 @@
1
- const a129_0x19b206=a129_0x1fb3;(function(_0x53d2b4,_0x5307a5){const _0x55c5ed=a129_0x1fb3,_0x455c42=_0x53d2b4();while(!![]){try{const _0x13632e=parseInt(_0x55c5ed(0xdd))/0x1*(-parseInt(_0x55c5ed(0xdc))/0x2)+-parseInt(_0x55c5ed(0xe7))/0x3+parseInt(_0x55c5ed(0xe3))/0x4*(parseInt(_0x55c5ed(0xde))/0x5)+parseInt(_0x55c5ed(0xda))/0x6*(-parseInt(_0x55c5ed(0xe5))/0x7)+parseInt(_0x55c5ed(0xe1))/0x8*(parseInt(_0x55c5ed(0xe9))/0x9)+-parseInt(_0x55c5ed(0xea))/0xa+parseInt(_0x55c5ed(0xe0))/0xb;if(_0x13632e===_0x5307a5)break;else _0x455c42['push'](_0x455c42['shift']());}catch(_0x19e31d){_0x455c42['push'](_0x455c42['shift']());}}}(a129_0x215a,0xeeb2e));function a129_0x215a(){const _0x1924c3=['2840KIbmMQ','skillDomain','45169828fASxmL','928ovwQkS','enterprise','4656xPHMLI','userDomain','35rvYIBT','kbServiceDomain','1327824WmxmdP','runtimeDomain','20403CmdYXs','18305870DYwvxb','e3423cad71c22edb18a8481be7bdb733ff2d4136c31aa3ae6da56271e32cced7','lovrabet-routing/v1','1581906YKrWhx','apiDomain','27136ZKfKsY','34pXZTeX'];a129_0x215a=function(){return _0x1924c3;};return a129_0x215a();}export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a129_0x19b206(0xd8);export const ENTERPRISE_ROUTING_PROTOCOL=a129_0x19b206(0xd9);export const ENTERPRISE_ROUTING_KIND=a129_0x19b206(0xe2);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain',a129_0x19b206(0xdb),a129_0x19b206(0xe8),a129_0x19b206(0xdf),a129_0x19b206(0xe6)];function a129_0x1fb3(_0x2ce1c2,_0x590e11){_0x2ce1c2=_0x2ce1c2-0xd8;const _0x215aa1=a129_0x215a();let _0x1fb3f1=_0x215aa1[_0x2ce1c2];return _0x1fb3f1;}export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a129_0x19b206(0xe4),a129_0x19b206(0xdb),a129_0x19b206(0xe8),'skillDomain'];
1
+ const a129_0x4adee3=a129_0xcfab;function a129_0x588f(){const _0x35ea60=['57ujhqwo','runtimeDomain','3227532MAWEzg','20534nhJSFQ','apiDomain','5370vlxpqC','2135676FXULXR','261sndalD','4195MINyEW','155180bzgfWf','userDomain','kbServiceDomain','2717824CXoBow','skillDomain','enterprise','1612597fhYfrJ','8LvayNQ','12tsYEVz','lovrabet-routing/v1'];a129_0x588f=function(){return _0x35ea60;};return a129_0x588f();}function a129_0xcfab(_0x512b3b,_0x2ad574){_0x512b3b=_0x512b3b-0x18a;const _0x588f76=a129_0x588f();let _0xcfab7b=_0x588f76[_0x512b3b];return _0xcfab7b;}(function(_0x4ab4f7,_0x5e6995){const _0x2d831e=a129_0xcfab,_0x144c88=_0x4ab4f7();while(!![]){try{const _0x5ab101=parseInt(_0x2d831e(0x18e))/0x1*(parseInt(_0x2d831e(0x191))/0x2)+parseInt(_0x2d831e(0x194))/0x3+-parseInt(_0x2d831e(0x19a))/0x4+-parseInt(_0x2d831e(0x196))/0x5*(parseInt(_0x2d831e(0x193))/0x6)+parseInt(_0x2d831e(0x18a))/0x7*(-parseInt(_0x2d831e(0x18b))/0x8)+parseInt(_0x2d831e(0x195))/0x9*(parseInt(_0x2d831e(0x197))/0xa)+parseInt(_0x2d831e(0x190))/0xb*(parseInt(_0x2d831e(0x18c))/0xc);if(_0x5ab101===_0x5e6995)break;else _0x144c88['push'](_0x144c88['shift']());}catch(_0x4d3c51){_0x144c88['push'](_0x144c88['shift']());}}}(a129_0x588f,0x5cba5));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST='e3423cad71c22edb18a8481be7bdb733ff2d4136c31aa3ae6da56271e32cced7';export const ENTERPRISE_ROUTING_PROTOCOL=a129_0x4adee3(0x18d);export const ENTERPRISE_ROUTING_KIND=a129_0x4adee3(0x19c);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain',a129_0x4adee3(0x192),a129_0x4adee3(0x18f),a129_0x4adee3(0x19b),a129_0x4adee3(0x199)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a129_0x4adee3(0x198),a129_0x4adee3(0x192),a129_0x4adee3(0x18f),a129_0x4adee3(0x19b)];
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a130_0x527a(_0x2595e4,_0x4b571c){_0x2595e4=_0x2595e4-0x1ee;const _0x193c40=a130_0x193c();let _0x527a83=_0x193c40[_0x2595e4];return _0x527a83;}(function(_0x4e7897,_0x1d1f96){const _0x5c5c80=a130_0x527a,_0x38754e=_0x4e7897();while(!![]){try{const _0x515987=parseInt(_0x5c5c80(0x1ef))/0x1*(parseInt(_0x5c5c80(0x1fd))/0x2)+-parseInt(_0x5c5c80(0x1fc))/0x3*(-parseInt(_0x5c5c80(0x1f2))/0x4)+-parseInt(_0x5c5c80(0x1f1))/0x5+-parseInt(_0x5c5c80(0x1fa))/0x6+-parseInt(_0x5c5c80(0x1f5))/0x7*(-parseInt(_0x5c5c80(0x1f9))/0x8)+-parseInt(_0x5c5c80(0x1fb))/0x9*(-parseInt(_0x5c5c80(0x1ee))/0xa)+-parseInt(_0x5c5c80(0x1f8))/0xb*(parseInt(_0x5c5c80(0x1f6))/0xc);if(_0x515987===_0x1d1f96)break;else _0x38754e['push'](_0x38754e['shift']());}catch(_0x490266){_0x38754e['push'](_0x38754e['shift']());}}}(a130_0x193c,0x98a7f));import{jsx as a130_0x4ab440,jsxs as a130_0x426e76}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';function a130_0x193c(){const _0x1d5688=['column','8794840WvKCYN','828202MqrIZI','\x20--help','6221090DJATbj','1452IXLXDi','\x20\x20Use\x20','\x20to\x20view\x20available\x20commands.','77UdevWz','84PEDBBT','green','1738055ptwyeM','148344IoaiRz','453504euxpug','9oULeKe','9417aMLcYS','2reXcIV'];a130_0x193c=function(){return _0x1d5688;};return a130_0x193c();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x5d3670=a130_0x527a,{exit:_0x59a270}=useApp();return useEffect(()=>{_0x59a270();},[_0x59a270]),a130_0x426e76(Box,{'flexDirection':_0x5d3670(0x1fe),'marginTop':0x1,'marginBottom':0x1,'children':[a130_0x4ab440(Box,{'children':a130_0x4ab440(Text,{'bold':!![],'color':_0x5d3670(0x1f7),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a130_0x426e76(Box,{'marginTop':0x1,'children':[a130_0x4ab440(Text,{'dimColor':!![],'children':_0x5d3670(0x1f3)}),a130_0x4ab440(Text,{'bold':!![],'color':_0x5d3670(0x1f7),'children':CLI_BIN_NAME+_0x5d3670(0x1f0)}),a130_0x4ab440(Text,{'dimColor':!![],'children':_0x5d3670(0x1f4)})]})]});}
1
+ (function(_0x38c819,_0x781cf0){const _0x5c1597=a130_0x14a9,_0x3eed96=_0x38c819();while(!![]){try{const _0x408ded=-parseInt(_0x5c1597(0x142))/0x1+parseInt(_0x5c1597(0x14a))/0x2*(parseInt(_0x5c1597(0x14b))/0x3)+-parseInt(_0x5c1597(0x149))/0x4*(parseInt(_0x5c1597(0x147))/0x5)+parseInt(_0x5c1597(0x141))/0x6+parseInt(_0x5c1597(0x144))/0x7+parseInt(_0x5c1597(0x148))/0x8*(-parseInt(_0x5c1597(0x13e))/0x9)+parseInt(_0x5c1597(0x143))/0xa*(parseInt(_0x5c1597(0x145))/0xb);if(_0x408ded===_0x781cf0)break;else _0x3eed96['push'](_0x3eed96['shift']());}catch(_0x13187d){_0x3eed96['push'](_0x3eed96['shift']());}}}(a130_0x2859,0xe60c6));import{jsx as a130_0x5160fe,jsxs as a130_0xc11f99}from'react/jsx-runtime';import{useEffect}from'react';function a130_0x2859(){const _0x1597b8=['4212100CaFfgs','8209292uxSGOi','11NRQOjT','\x20--help','40WieJfW','179656jZXFha','477652BvBTPj','1444302wbRLCQ','3ipLIGI','green','306rRDolZ','\x20\x20Use\x20','column','6581706KzZfYK','751948Wirlhg'];a130_0x2859=function(){return _0x1597b8;};return a130_0x2859();}import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a130_0x14a9(_0x16a22e,_0x1e5ab7){_0x16a22e=_0x16a22e-0x13d;const _0x285958=a130_0x2859();let _0x14a9e5=_0x285958[_0x16a22e];return _0x14a9e5;}export function Help(){const _0x4dabf8=a130_0x14a9,{exit:_0x28fe56}=useApp();return useEffect(()=>{_0x28fe56();},[_0x28fe56]),a130_0xc11f99(Box,{'flexDirection':_0x4dabf8(0x140),'marginTop':0x1,'marginBottom':0x1,'children':[a130_0x5160fe(Box,{'children':a130_0x5160fe(Text,{'bold':!![],'color':_0x4dabf8(0x13d),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a130_0xc11f99(Box,{'marginTop':0x1,'children':[a130_0x5160fe(Text,{'dimColor':!![],'children':_0x4dabf8(0x13f)}),a130_0x5160fe(Text,{'bold':!![],'color':_0x4dabf8(0x13d),'children':CLI_BIN_NAME+_0x4dabf8(0x146)}),a130_0x5160fe(Text,{'dimColor':!![],'children':'\x20to\x20view\x20available\x20commands.'})]})]});}
@@ -1 +1 @@
1
- (function(_0x1eb64e,_0x10c891){const _0x40425f=a131_0x278b,_0x53d415=_0x1eb64e();while(!![]){try{const _0x487254=parseInt(_0x40425f(0xc9))/0x1+-parseInt(_0x40425f(0xd1))/0x2+-parseInt(_0x40425f(0xc7))/0x3+parseInt(_0x40425f(0xc0))/0x4*(parseInt(_0x40425f(0xcd))/0x5)+parseInt(_0x40425f(0xd4))/0x6*(parseInt(_0x40425f(0xc1))/0x7)+parseInt(_0x40425f(0xc3))/0x8+parseInt(_0x40425f(0xc6))/0x9;if(_0x487254===_0x10c891)break;else _0x53d415['push'](_0x53d415['shift']());}catch(_0x57a65e){_0x53d415['push'](_0x53d415['shift']());}}}(a131_0x4bc0,0x606fa));function a131_0x278b(_0x2a3d8f,_0x52bdb1){_0x2a3d8f=_0x2a3d8f-0xc0;const _0x4bc02=a131_0x4bc0();let _0x278b7a=_0x4bc02[_0x2a3d8f];return _0x278b7a;}function a131_0x4bc0(){const _0x2544e7=['code','172158PcLDnZ','FAILED','4hXEXDk','119Kleosj','log','553264mzaoNs','Installation\x20failed','installedPath','504603qNAsVs','1132278Llzrpm','installed','106117ylhird','repairCommand','error','Repair\x20with:\x20','1045745EkHvnF','[BUILTIN_SKILL_INSTALL_','changed','skillVersion','311688yyyNes','Lovrabet\x20Built-in\x20Skill\x20'];a131_0x4bc0=function(){return _0x2544e7;};return a131_0x4bc0();}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x16f9cf={}){const _0x124980=a131_0x278b,_0x6e77e2=installBuiltinSkill(_0x16f9cf);if(_0x6e77e2['ok']){const _0xc59012=_0x6e77e2[_0x124980(0xcf)]?_0x124980(0xc8):'already\x20current',_0x540cb9=_0x6e77e2[_0x124980(0xc5)]?'\x20at\x20'+_0x6e77e2['installedPath']:'\x20via\x20skills@latest';return console[_0x124980(0xc2)](_0x124980(0xd2)+_0x6e77e2[_0x124980(0xd0)]+'\x20'+_0xc59012+_0x540cb9),_0x6e77e2;}const _0x5870b0=_0x124980(0xce)+(_0x6e77e2[_0x124980(0xd3)]??_0x124980(0xd5))+']\x20'+(_0x6e77e2[_0x124980(0xcb)]??_0x124980(0xc4))+'.\x20'+(_0x124980(0xcc)+_0x6e77e2[_0x124980(0xca)]);if(_0x6e77e2['code']==='SOURCE_INVALID')throw new Error(_0x5870b0);return console['warn'](_0x5870b0),_0x6e77e2;}
1
+ (function(_0x52aced,_0x55b2e4){const _0x2e4f79=a131_0x4f97,_0x336c3b=_0x52aced();while(!![]){try{const _0x52355c=-parseInt(_0x2e4f79(0x76))/0x1*(-parseInt(_0x2e4f79(0x6c))/0x2)+-parseInt(_0x2e4f79(0x6a))/0x3+-parseInt(_0x2e4f79(0x7a))/0x4*(parseInt(_0x2e4f79(0x69))/0x5)+-parseInt(_0x2e4f79(0x74))/0x6+-parseInt(_0x2e4f79(0x73))/0x7*(parseInt(_0x2e4f79(0x79))/0x8)+parseInt(_0x2e4f79(0x75))/0x9+parseInt(_0x2e4f79(0x66))/0xa;if(_0x52355c===_0x55b2e4)break;else _0x336c3b['push'](_0x336c3b['shift']());}catch(_0x4e82d1){_0x336c3b['push'](_0x336c3b['shift']());}}}(a131_0x29cd,0x2041d));import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x1a4af9={}){const _0x3caac4=a131_0x4f97,_0x26fc45=installBuiltinSkill(_0x1a4af9);if(_0x26fc45['ok']){const _0x431228=_0x26fc45['changed']?'installed':_0x3caac4(0x68),_0x28f88d=_0x26fc45[_0x3caac4(0x7c)]?_0x3caac4(0x77)+_0x26fc45[_0x3caac4(0x7c)]:_0x3caac4(0x78);return console[_0x3caac4(0x6f)]('Lovrabet\x20Built-in\x20Skill\x20'+_0x26fc45[_0x3caac4(0x7d)]+'\x20'+_0x431228+_0x28f88d),_0x26fc45;}const _0x215988=_0x3caac4(0x7b)+(_0x26fc45[_0x3caac4(0x6b)]??'FAILED')+']\x20'+(_0x26fc45[_0x3caac4(0x6e)]??_0x3caac4(0x71))+'.\x20'+(_0x3caac4(0x72)+_0x26fc45[_0x3caac4(0x67)]);if(_0x26fc45[_0x3caac4(0x6b)]===_0x3caac4(0x70))throw new Error(_0x215988);return console[_0x3caac4(0x6d)](_0x215988),_0x26fc45;}function a131_0x4f97(_0x4cf5bd,_0x27d6cc){_0x4cf5bd=_0x4cf5bd-0x66;const _0x29cd45=a131_0x29cd();let _0x4f9783=_0x29cd45[_0x4cf5bd];return _0x4f9783;}function a131_0x29cd(){const _0x4825c6=['already\x20current','5ISJTYm','140871qmfXfR','code','2dXTiRE','warn','error','log','SOURCE_INVALID','Installation\x20failed','Repair\x20with:\x20','14aQOPOT','4854cqXhnZ','696582qDPbGQ','225583miBbYm','\x20at\x20','\x20via\x20skills@latest','498056LbTHel','314388hgASPQ','[BUILTIN_SKILL_INSTALL_','installedPath','skillVersion','800210GyWyQY','repairCommand'];a131_0x29cd=function(){return _0x4825c6;};return a131_0x29cd();}
@@ -1 +1 @@
1
- (function(_0x3a2188,_0x34cc36){const _0x1b00d5=a132_0x4724,_0x5c95ba=_0x3a2188();while(!![]){try{const _0x45315a=parseInt(_0x1b00d5(0x108))/0x1*(-parseInt(_0x1b00d5(0x112))/0x2)+parseInt(_0x1b00d5(0x117))/0x3*(parseInt(_0x1b00d5(0x10e))/0x4)+-parseInt(_0x1b00d5(0x116))/0x5*(parseInt(_0x1b00d5(0x119))/0x6)+-parseInt(_0x1b00d5(0x10f))/0x7*(-parseInt(_0x1b00d5(0x118))/0x8)+-parseInt(_0x1b00d5(0x10c))/0x9*(-parseInt(_0x1b00d5(0x10b))/0xa)+parseInt(_0x1b00d5(0x111))/0xb+-parseInt(_0x1b00d5(0x10d))/0xc;if(_0x45315a===_0x34cc36)break;else _0x5c95ba['push'](_0x5c95ba['shift']());}catch(_0x15d9fb){_0x5c95ba['push'](_0x5c95ba['shift']());}}}(a132_0x3968,0xeac19));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0xa72b2b,_0x265566,_0x2072f8){const _0x25d512=a132_0x4724,_0x540d86=normalizeText(_0xa72b2b[_0x25d512(0x109)],DESCRIPTION_MAX_LENGTH),_0x47dc13=normalizeText(_0xa72b2b['description'],DESCRIPTION_MAX_LENGTH);return{'operation':_0x265566,'risk':requireWriteRisk(_0xa72b2b),'description':_0x540d86||_0x47dc13||_0x25d512(0x115),..._0x2072f8?{'signal':_0x2072f8}:{}};}function a132_0x4724(_0x5c23d3,_0x34ec49){_0x5c23d3=_0x5c23d3-0x107;const _0x3968a3=a132_0x3968();let _0x4724dd=_0x3968a3[_0x5c23d3];return _0x4724dd;}function requireWriteRisk(_0x2e4c1e){const _0x61390a=a132_0x4724;if(_0x2e4c1e['risk']===_0x61390a(0x10a)||_0x2e4c1e[_0x61390a(0x11a)]==='high-risk-write')return _0x2e4c1e[_0x61390a(0x11a)];throw new Error(_0x61390a(0x113));}function normalizeText(_0x34e2ca,_0x52f358){const _0x6b9b29=a132_0x4724;if(typeof _0x34e2ca!==_0x6b9b29(0x114))return'';return _0x34e2ca[_0x6b9b29(0x107)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x6b9b29(0x107)](/\s+/g,'\x20')[_0x6b9b29(0x110)]()['slice'](0x0,_0x52f358);}function a132_0x3968(){const _0x1d431f=['9417501BkyEGD','23201952qHrNuF','248bYieXX','6094970BJIgIS','trim','15405797uiVKDY','12aJFkEF','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','string','Run\x20this\x20write\x20operation','79795WBOXrO','10245sObwSI','8gjhIGx','54MMphKZ','risk','replace','81778VthPnm','confirmationDescription','write','10dKIHyM'];a132_0x3968=function(){return _0x1d431f;};return a132_0x3968();}
1
+ (function(_0x326e43,_0x360123){const _0x4de6db=a132_0x111c,_0x30a123=_0x326e43();while(!![]){try{const _0x99e13e=parseInt(_0x4de6db(0x11f))/0x1*(-parseInt(_0x4de6db(0x11d))/0x2)+-parseInt(_0x4de6db(0x112))/0x3*(-parseInt(_0x4de6db(0x119))/0x4)+-parseInt(_0x4de6db(0x118))/0x5+-parseInt(_0x4de6db(0x114))/0x6*(-parseInt(_0x4de6db(0x10d))/0x7)+parseInt(_0x4de6db(0x10f))/0x8*(parseInt(_0x4de6db(0x120))/0x9)+parseInt(_0x4de6db(0x115))/0xa*(parseInt(_0x4de6db(0x117))/0xb)+-parseInt(_0x4de6db(0x111))/0xc*(parseInt(_0x4de6db(0x113))/0xd);if(_0x99e13e===_0x360123)break;else _0x30a123['push'](_0x30a123['shift']());}catch(_0x3897c1){_0x30a123['push'](_0x30a123['shift']());}}}(a132_0x567d,0xea44d));function a132_0x111c(_0x5b289d,_0x1e0a93){_0x5b289d=_0x5b289d-0x10d;const _0x567db0=a132_0x567d();let _0x111c75=_0x567db0[_0x5b289d];return _0x111c75;}const DESCRIPTION_MAX_LENGTH=0x1f4;function a132_0x567d(){const _0x2ba74d=['5525641SsCbDc','5459850NEMAiR','3435592jVuRGu','trim','confirmationDescription','risk','6976RWrfyi','description','401tQYnxt','9eGtQQV','high-risk-write','10234gkmRvC','Run\x20this\x20write\x20operation','11928160wBNJKN','slice','207588sOpqGD','3vpZewL','156sJkaDZ','3306GrmEJN','10deEJaW','replace'];a132_0x567d=function(){return _0x2ba74d;};return a132_0x567d();}export function buildLovrabetConfirmationRequest(_0x51ff44,_0x3cbf88,_0x362bc0){const _0x473f19=a132_0x111c,_0x2b15b1=normalizeText(_0x51ff44[_0x473f19(0x11b)],DESCRIPTION_MAX_LENGTH),_0x437824=normalizeText(_0x51ff44[_0x473f19(0x11e)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x3cbf88,'risk':requireWriteRisk(_0x51ff44),'description':_0x2b15b1||_0x437824||_0x473f19(0x10e),..._0x362bc0?{'signal':_0x362bc0}:{}};}function requireWriteRisk(_0x1bd5f4){const _0x1b9a41=a132_0x111c;if(_0x1bd5f4[_0x1b9a41(0x11c)]==='write'||_0x1bd5f4[_0x1b9a41(0x11c)]===_0x1b9a41(0x121))return _0x1bd5f4['risk'];throw new Error('Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.');}function normalizeText(_0x17a38c,_0x1d9d1e){const _0x553db4=a132_0x111c;if(typeof _0x17a38c!=='string')return'';return _0x17a38c[_0x553db4(0x116)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x553db4(0x116)](/\s+/g,'\x20')[_0x553db4(0x11a)]()[_0x553db4(0x110)](0x0,_0x1d9d1e);}
@@ -1 +1 @@
1
- (function(_0xe032f0,_0x21535c){const _0x41ffd4=a133_0x4370,_0x5adabd=_0xe032f0();while(!![]){try{const _0x473159=parseInt(_0x41ffd4(0x1af))/0x1*(parseInt(_0x41ffd4(0x1b2))/0x2)+parseInt(_0x41ffd4(0x1b8))/0x3+parseInt(_0x41ffd4(0x1b5))/0x4+-parseInt(_0x41ffd4(0x1ad))/0x5+-parseInt(_0x41ffd4(0x1ba))/0x6+-parseInt(_0x41ffd4(0x1bd))/0x7*(-parseInt(_0x41ffd4(0x1b1))/0x8)+-parseInt(_0x41ffd4(0x1be))/0x9*(parseInt(_0x41ffd4(0x1ae))/0xa);if(_0x473159===_0x21535c)break;else _0x5adabd['push'](_0x5adabd['shift']());}catch(_0x4c687f){_0x5adabd['push'](_0x5adabd['shift']());}}}(a133_0x4444,0x84c2d));export function canonicalLovrabetOperation(_0x5e7332){const _0x40ac46=a133_0x4370;return[_0x5e7332[_0x40ac46(0x1b7)],..._0x5e7332['command'][_0x40ac46(0x1bc)]()[_0x40ac46(0x1b4)](/\s+/)][_0x40ac46(0x1b0)](Boolean)[_0x40ac46(0x1b9)]('.');}function a133_0x4370(_0x594cd2,_0x746e4d){_0x594cd2=_0x594cd2-0x1ad;const _0x4444d4=a133_0x4444();let _0x437095=_0x4444d4[_0x594cd2];return _0x437095;}function a133_0x4444(){const _0x9f59e4=['88EYOIvO','41752ptItrT','high-risk-write','split','3632700jriuNN','risk','service','737190cufKja','join','1104858lXlNoj','write','trim','334453UmfYCV','12440718WejrgL','2125780aHYROs','10qRhKdK','41KmLTJz','filter'];a133_0x4444=function(){return _0x9f59e4;};return a133_0x4444();}export function createLovrabetWriteMetadata(_0xac589c,_0x25dd4e,_0x1b539f,_0x51de13){const _0x532c7b=a133_0x4370;if(_0x51de13||_0x1b539f['ok']!==!![]||_0xac589c['risk']!==_0x532c7b(0x1bb)&&_0xac589c[_0x532c7b(0x1b6)]!==_0x532c7b(0x1b3))return undefined;const _0x463db5=_0xac589c['writeEventSubject']?.(_0x1b539f),_0x415c65={'type':'lovrabet.write.completed','operation':_0x25dd4e,'risk':_0xac589c['risk'],..._0x463db5?{'subject':_0x463db5}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x415c65}};}
1
+ function a133_0xcc84(_0x560baf,_0x147845){_0x560baf=_0x560baf-0x99;const _0x179301=a133_0x1793();let _0xcc8479=_0x179301[_0x560baf];return _0xcc8479;}(function(_0x1d01ae,_0x5a1b24){const _0x2b980f=a133_0xcc84,_0x524fe4=_0x1d01ae();while(!![]){try{const _0x31b23a=parseInt(_0x2b980f(0x9c))/0x1*(parseInt(_0x2b980f(0xab))/0x2)+-parseInt(_0x2b980f(0xaa))/0x3+-parseInt(_0x2b980f(0xa6))/0x4*(parseInt(_0x2b980f(0x9e))/0x5)+parseInt(_0x2b980f(0xa5))/0x6+-parseInt(_0x2b980f(0xa0))/0x7+parseInt(_0x2b980f(0x9f))/0x8*(-parseInt(_0x2b980f(0x9d))/0x9)+-parseInt(_0x2b980f(0xa9))/0xa*(-parseInt(_0x2b980f(0xa2))/0xb);if(_0x31b23a===_0x5a1b24)break;else _0x524fe4['push'](_0x524fe4['shift']());}catch(_0x85be7a){_0x524fe4['push'](_0x524fe4['shift']());}}}(a133_0x1793,0xce28e));export function canonicalLovrabetOperation(_0x11a672){const _0xe170fc=a133_0xcc84;return[_0x11a672[_0xe170fc(0x9a)],..._0x11a672[_0xe170fc(0x9b)][_0xe170fc(0x99)]()[_0xe170fc(0xa1)](/\s+/)][_0xe170fc(0xa8)](Boolean)[_0xe170fc(0xa7)]('.');}function a133_0x1793(){const _0x4b3f34=['service','command','34FhjAFY','603927xsDSvO','14090vhuWwa','136GWNzwS','9967370dDVCdr','split','11ldMRXz','write','risk','5579832CUvvVy','772vIBWPb','join','filter','27796030qZtwyo','3992634aRWjfy','92604urPfzj','trim'];a133_0x1793=function(){return _0x4b3f34;};return a133_0x1793();}export function createLovrabetWriteMetadata(_0x502b8e,_0x2a2192,_0x4e3342,_0x2dbdce){const _0x106177=a133_0xcc84;if(_0x2dbdce||_0x4e3342['ok']!==!![]||_0x502b8e[_0x106177(0xa4)]!==_0x106177(0xa3)&&_0x502b8e['risk']!=='high-risk-write')return undefined;const _0x39305f=_0x502b8e['writeEventSubject']?.(_0x4e3342),_0x51c2ac={'type':'lovrabet.write.completed','operation':_0x2a2192,'risk':_0x502b8e[_0x106177(0xa4)],..._0x39305f?{'subject':_0x39305f}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x51c2ac}};}
@@ -1 +1 @@
1
- (function(_0x578ec8,_0x175692){const _0x571626=a134_0x31bc,_0x3aec32=_0x578ec8();while(!![]){try{const _0x59b680=-parseInt(_0x571626(0x1e1))/0x1+-parseInt(_0x571626(0x1e5))/0x2*(-parseInt(_0x571626(0x1d0))/0x3)+parseInt(_0x571626(0x1ea))/0x4+parseInt(_0x571626(0x1ce))/0x5*(parseInt(_0x571626(0x1e2))/0x6)+parseInt(_0x571626(0x1d1))/0x7*(parseInt(_0x571626(0x1cc))/0x8)+-parseInt(_0x571626(0x1df))/0x9+-parseInt(_0x571626(0x1ca))/0xa;if(_0x59b680===_0x175692)break;else _0x3aec32['push'](_0x3aec32['shift']());}catch(_0x3f39ff){_0x3aec32['push'](_0x3aec32['shift']());}}}(a134_0x2515,0xd2a73));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x74f2a8,command:_0x4bbcab,risk:_0x3226ab,dryRun:_0x3173dd}){const _0x2da769=a134_0x31bc;return JSON['stringify']({'ok':_0x74f2a8['ok'],'command':_0x4bbcab,'risk':_0x3226ab,..._0x3173dd?{'dryRun':!![]}:{},..._0x74f2a8['data']!==undefined?{'data':_0x74f2a8[_0x2da769(0x1e9)]}:{},..._0x74f2a8[_0x2da769(0x1db)]?{'message':_0x74f2a8[_0x2da769(0x1db)]}:{}});}};function a134_0x2515(){const _0x1c6ef4=['data','2459340CFYCfm','write','5577860FvVpoI','signal','123256MrUEbc','confirm','5WhRlfV','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','45ypMHII','91KaQjWd','isNonInteractive','result','dry-run','high-risk-write','rawFlags','presentation','definition','execute','args','message','Lovrabet\x20invocation\x20aborted.','AbortError','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','6269094LXqtaw','command','498742rAZkiD','3680958zLcxeL','format','reason','158308GOHLqG','present','risk','dryRun'];a134_0x2515=function(){return _0x1c6ef4;};return a134_0x2515();}function a134_0x31bc(_0x269024,_0x3003a6){_0x269024=_0x269024-0x1ca;const _0x25156b=a134_0x2515();let _0x31bca8=_0x25156b[_0x269024];return _0x31bca8;}export async function invokeLovrabet(_0x108c63,_0x2347be){const _0xbed42b=a134_0x31bc;throwIfAborted(_0x2347be[_0xbed42b(0x1cb)]);const _0x5bd09c=await resolveLovrabetInvocation(_0x108c63),_0x497688=canonicalLovrabetOperation(_0x5bd09c[_0xbed42b(0x1d8)]);return await confirmWriteBeforeQueue(_0x5bd09c[_0xbed42b(0x1d8)],_0x5bd09c['rawFlags'],_0x497688,_0x2347be),runSerialized(async()=>{const _0x435bc2=_0xbed42b;throwIfAborted(_0x2347be['signal']);const _0x5b8085={},_0x4f3c97=buildConfigFromFlags(_0x5bd09c[_0x435bc2(0x1d6)]);await initGlobalEnvironment(_0x4f3c97);const _0x196d96=createPipelineEnv(_0x4f3c97,{..._0x5bd09c[_0x435bc2(0x1d6)],'yes':_0x5bd09c[_0x435bc2(0x1d8)][_0x435bc2(0x1e7)]==='high-risk-write'?!![]:_0x5bd09c['rawFlags']['yes'],'nonInteractive':!![]});_0x196d96[_0x435bc2(0x1da)]=_0x5bd09c[_0x435bc2(0x1da)],_0x196d96[_0x435bc2(0x1d2)]=!![],_0x196d96['riskLevel']=_0x435bc2(0x1d5);const _0x47e11d=withAbortSignal(_0x5bd09c[_0x435bc2(0x1d8)],_0x2347be[_0x435bc2(0x1cb)]),_0x2d72f1=createLovrabetRunnerAdapter({'formatOutput'(_0x11aba8,_0x32ce39){const _0x5d8ef0=_0x435bc2;_0x5b8085[_0x5d8ef0(0x1d3)]=_0x11aba8,_0x5b8085[_0x5d8ef0(0x1e0)]=_0x32ce39[_0x5d8ef0(0x1e0)],_0x5b8085[_0x5d8ef0(0x1e7)]=_0x32ce39[_0x5d8ef0(0x1e7)],_0x5b8085[_0x5d8ef0(0x1e3)]=_0x32ce39[_0x5d8ef0(0x1e3)],_0x5b8085['dryRun']=_0x32ce39[_0x5d8ef0(0x1e8)]===!![];},async 'confirmHighRisk'(){const _0x516c34=_0x435bc2;throw new Error(_0x516c34(0x1de));}});try{await runCommand(_0x47e11d,_0x196d96,_0x2d72f1);if(!_0x5b8085[_0x435bc2(0x1d3)]||!_0x5b8085[_0x435bc2(0x1e0)]||!_0x5b8085[_0x435bc2(0x1e7)]||!_0x5b8085[_0x435bc2(0x1e3)])throw new Error(_0x435bc2(0x1cf));const _0x4c15b9=_0x2347be[_0x435bc2(0x1d7)]??defaultPresentation,_0x405395=_0x5b8085['dryRun']===!![],_0xcf8a37={'result':_0x5b8085['result'],'command':_0x5b8085[_0x435bc2(0x1e0)],'operation':_0x497688,'risk':_0x5b8085[_0x435bc2(0x1e7)],'format':_0x5b8085[_0x435bc2(0x1e3)],'dryRun':_0x405395},_0x311d9f=createLovrabetWriteMetadata(_0x5bd09c['definition'],_0x497688,_0x5b8085[_0x435bc2(0x1d3)],_0x405395);let _0x537c0c;try{_0x537c0c=await _0x4c15b9[_0x435bc2(0x1e6)](_0xcf8a37);}catch(_0x3d6d1f){if(!_0x311d9f||_0x4c15b9===defaultPresentation)throw _0x3d6d1f;_0x537c0c=await defaultPresentation[_0x435bc2(0x1e6)](_0xcf8a37);}return{'operation':_0x497688,'risk':_0x5b8085[_0x435bc2(0x1e7)],'mode':_0x405395?_0x435bc2(0x1d4):_0x435bc2(0x1d9),'result':_0x5b8085[_0x435bc2(0x1d3)],'output':_0x537c0c,..._0x311d9f?{'metadata':_0x311d9f}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x3322ec,_0x34a85e,_0x5251ae,_0x2e5922){const _0x3bcb60=a134_0x31bc;if(_0x34a85e[_0x3bcb60(0x1e8)]===!![]||_0x3322ec[_0x3bcb60(0x1e7)]!==_0x3bcb60(0x1eb)&&_0x3322ec[_0x3bcb60(0x1e7)]!==_0x3bcb60(0x1d5))return;await _0x2e5922['confirmation'][_0x3bcb60(0x1cd)](buildLovrabetConfirmationRequest(_0x3322ec,_0x5251ae,_0x2e5922[_0x3bcb60(0x1cb)]));}function withAbortSignal(_0x43ebee,_0x5b1def){return{..._0x43ebee,async 'execute'(_0x1c6ca8){return throwIfAborted(_0x5b1def),_0x43ebee['execute']({..._0x1c6ca8,'signal':_0x5b1def});}};}function throwIfAborted(_0x5ad714){const _0xe1259=a134_0x31bc;if(_0x5ad714?.['aborted'])throw _0x5ad714['reason']instanceof Error?_0x5ad714[_0xe1259(0x1e4)]:new DOMException(_0xe1259(0x1dc),_0xe1259(0x1dd));}
1
+ (function(_0x2f1ab2,_0x7defda){const _0x1c4d60=a134_0x39d7,_0x3d4789=_0x2f1ab2();while(!![]){try{const _0x94e0c3=parseInt(_0x1c4d60(0x209))/0x1+parseInt(_0x1c4d60(0x1ff))/0x2+parseInt(_0x1c4d60(0x1fa))/0x3*(-parseInt(_0x1c4d60(0x1f2))/0x4)+-parseInt(_0x1c4d60(0x201))/0x5+parseInt(_0x1c4d60(0x207))/0x6*(-parseInt(_0x1c4d60(0x1f8))/0x7)+-parseInt(_0x1c4d60(0x1f3))/0x8*(-parseInt(_0x1c4d60(0x1f7))/0x9)+parseInt(_0x1c4d60(0x206))/0xa*(parseInt(_0x1c4d60(0x1e8))/0xb);if(_0x94e0c3===_0x7defda)break;else _0x3d4789['push'](_0x3d4789['shift']());}catch(_0x2d11cb){_0x3d4789['push'](_0x3d4789['shift']());}}}(a134_0x4fe0,0x6ceb4));function a134_0x39d7(_0x584fd5,_0x4557d1){_0x584fd5=_0x584fd5-0x1e5;const _0x4fe064=a134_0x4fe0();let _0x39d780=_0x4fe064[_0x584fd5];return _0x39d780;}import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';function a134_0x4fe0(){const _0x11f263=['yes','isNonInteractive','risk','result','write','reason','86312CIVvCW','200nqNMYI','execute','dryRun','confirm','15048LlrTui','427FBrdwr','data','21uSaByQ','definition','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','aborted','command','399204YDtdHn','riskLevel','1566250KstXbd','rawFlags','confirmation','Lovrabet\x20invocation\x20aborted.','presentation','6430930YFcxwQ','41946CjxSzJ','present','452384dgwCkE','AbortError','format','stringify','dry-run','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','11REtyjC','args','high-risk-write','signal'];a134_0x4fe0=function(){return _0x11f263;};return a134_0x4fe0();}import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x5d472d,command:_0x445359,risk:_0x3256c3,dryRun:_0x2d4466}){const _0x4074aa=a134_0x39d7;return JSON[_0x4074aa(0x1e5)]({'ok':_0x5d472d['ok'],'command':_0x445359,'risk':_0x3256c3,..._0x2d4466?{'dryRun':!![]}:{},..._0x5d472d[_0x4074aa(0x1f9)]!==undefined?{'data':_0x5d472d[_0x4074aa(0x1f9)]}:{},..._0x5d472d['message']?{'message':_0x5d472d['message']}:{}});}};export async function invokeLovrabet(_0x3b528b,_0x292dc2){const _0x3c5b67=a134_0x39d7;throwIfAborted(_0x292dc2[_0x3c5b67(0x1eb)]);const _0x2051e0=await resolveLovrabetInvocation(_0x3b528b),_0x283e9e=canonicalLovrabetOperation(_0x2051e0[_0x3c5b67(0x1fb)]);return await confirmWriteBeforeQueue(_0x2051e0[_0x3c5b67(0x1fb)],_0x2051e0[_0x3c5b67(0x202)],_0x283e9e,_0x292dc2),runSerialized(async()=>{const _0x21036b=_0x3c5b67;throwIfAborted(_0x292dc2[_0x21036b(0x1eb)]);const _0x207187={},_0x3bd5c9=buildConfigFromFlags(_0x2051e0['rawFlags']);await initGlobalEnvironment(_0x3bd5c9);const _0xa3cfef=createPipelineEnv(_0x3bd5c9,{..._0x2051e0[_0x21036b(0x202)],'yes':_0x2051e0['definition'][_0x21036b(0x1ee)]==='high-risk-write'?!![]:_0x2051e0[_0x21036b(0x202)][_0x21036b(0x1ec)],'nonInteractive':!![]});_0xa3cfef[_0x21036b(0x1e9)]=_0x2051e0[_0x21036b(0x1e9)],_0xa3cfef[_0x21036b(0x1ed)]=!![],_0xa3cfef[_0x21036b(0x200)]=_0x21036b(0x1ea);const _0x5c4808=withAbortSignal(_0x2051e0['definition'],_0x292dc2['signal']),_0x3c03a4=createLovrabetRunnerAdapter({'formatOutput'(_0x5da713,_0x52c61e){const _0x52469d=_0x21036b;_0x207187['result']=_0x5da713,_0x207187['command']=_0x52c61e['command'],_0x207187[_0x52469d(0x1ee)]=_0x52c61e['risk'],_0x207187[_0x52469d(0x20b)]=_0x52c61e[_0x52469d(0x20b)],_0x207187[_0x52469d(0x1f5)]=_0x52c61e[_0x52469d(0x1f5)]===!![];},async 'confirmHighRisk'(){const _0x16f32c=_0x21036b;throw new Error(_0x16f32c(0x1fc));}});try{await runCommand(_0x5c4808,_0xa3cfef,_0x3c03a4);if(!_0x207187[_0x21036b(0x1ef)]||!_0x207187[_0x21036b(0x1fe)]||!_0x207187['risk']||!_0x207187[_0x21036b(0x20b)])throw new Error(_0x21036b(0x1e7));const _0x116004=_0x292dc2[_0x21036b(0x205)]??defaultPresentation,_0x405a0e=_0x207187['dryRun']===!![],_0x22660d={'result':_0x207187[_0x21036b(0x1ef)],'command':_0x207187[_0x21036b(0x1fe)],'operation':_0x283e9e,'risk':_0x207187[_0x21036b(0x1ee)],'format':_0x207187[_0x21036b(0x20b)],'dryRun':_0x405a0e},_0x5941ac=createLovrabetWriteMetadata(_0x2051e0[_0x21036b(0x1fb)],_0x283e9e,_0x207187[_0x21036b(0x1ef)],_0x405a0e);let _0x488df4;try{_0x488df4=await _0x116004[_0x21036b(0x208)](_0x22660d);}catch(_0x5ebe70){if(!_0x5941ac||_0x116004===defaultPresentation)throw _0x5ebe70;_0x488df4=await defaultPresentation[_0x21036b(0x208)](_0x22660d);}return{'operation':_0x283e9e,'risk':_0x207187['risk'],'mode':_0x405a0e?_0x21036b(0x1e6):_0x21036b(0x1f4),'result':_0x207187[_0x21036b(0x1ef)],'output':_0x488df4,..._0x5941ac?{'metadata':_0x5941ac}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x1bf520,_0x488e6c,_0xa6f662,_0x193058){const _0x4c761a=a134_0x39d7;if(_0x488e6c['dryRun']===!![]||_0x1bf520[_0x4c761a(0x1ee)]!==_0x4c761a(0x1f0)&&_0x1bf520[_0x4c761a(0x1ee)]!==_0x4c761a(0x1ea))return;await _0x193058[_0x4c761a(0x203)][_0x4c761a(0x1f6)](buildLovrabetConfirmationRequest(_0x1bf520,_0xa6f662,_0x193058[_0x4c761a(0x1eb)]));}function withAbortSignal(_0x3a094e,_0x2f4143){return{..._0x3a094e,async 'execute'(_0xbb74d6){const _0x51f26a=a134_0x39d7;return throwIfAborted(_0x2f4143),_0x3a094e[_0x51f26a(0x1f4)]({..._0xbb74d6,'signal':_0x2f4143});}};}function throwIfAborted(_0xb6b896){const _0x412514=a134_0x39d7;if(_0xb6b896?.[_0x412514(0x1fd)])throw _0xb6b896[_0x412514(0x1f1)]instanceof Error?_0xb6b896[_0x412514(0x1f1)]:new DOMException(_0x412514(0x204),_0x412514(0x20a));}
@@ -1 +1 @@
1
- function a135_0x2eda(_0x3aa9a1,_0x1714ae){_0x3aa9a1=_0x3aa9a1-0xfa;const _0x1d8919=a135_0x1d89();let _0x2eda89=_0x1d8919[_0x3aa9a1];return _0x2eda89;}function a135_0x1d89(){const _0x1ccc11=['5413310DGnlYA','7356216OyQLUT','36628sXWEBg','455brucqB','828724wEmIJm','1197znFBBs','3122610mkHTxb','resolve','128048jhPziJ','35852bQUIbW'];a135_0x1d89=function(){return _0x1ccc11;};return a135_0x1d89();}const a135_0x41dd25=a135_0x2eda;(function(_0xfd33cd,_0x35276a){const _0x5b83c8=a135_0x2eda,_0x17bbbc=_0xfd33cd();while(!![]){try{const _0xc2ad2b=-parseInt(_0x5b83c8(0x103))/0x1+parseInt(_0x5b83c8(0xfe))/0x2+parseInt(_0x5b83c8(0xfb))/0x3+parseInt(_0x5b83c8(0x101))/0x4*(parseInt(_0x5b83c8(0x102))/0x5)+parseInt(_0x5b83c8(0x100))/0x6+parseInt(_0x5b83c8(0xff))/0x7+parseInt(_0x5b83c8(0xfd))/0x8*(-parseInt(_0x5b83c8(0xfa))/0x9);if(_0xc2ad2b===_0x35276a)break;else _0x17bbbc['push'](_0x17bbbc['shift']());}catch(_0x24f868){_0x17bbbc['push'](_0x17bbbc['shift']());}}}(a135_0x1d89,0xe4027));let tail=Promise[a135_0x41dd25(0xfc)]();export async function runSerialized(_0x40c58f){const _0x404a6c=tail;let _0x30b586;tail=new Promise(_0x3e7559=>{_0x30b586=_0x3e7559;}),await _0x404a6c['catch'](()=>undefined);try{return await _0x40c58f();}finally{_0x30b586();}}
1
+ const a135_0x47c072=a135_0x4323;(function(_0x6d6017,_0x28a8b7){const _0x2011dc=a135_0x4323,_0x4f537e=_0x6d6017();while(!![]){try{const _0x132594=parseInt(_0x2011dc(0xdc))/0x1+parseInt(_0x2011dc(0xe4))/0x2*(-parseInt(_0x2011dc(0xda))/0x3)+-parseInt(_0x2011dc(0xdf))/0x4+-parseInt(_0x2011dc(0xdd))/0x5*(-parseInt(_0x2011dc(0xe2))/0x6)+-parseInt(_0x2011dc(0xe0))/0x7*(-parseInt(_0x2011dc(0xd9))/0x8)+-parseInt(_0x2011dc(0xdb))/0x9+parseInt(_0x2011dc(0xe1))/0xa*(parseInt(_0x2011dc(0xde))/0xb);if(_0x132594===_0x28a8b7)break;else _0x4f537e['push'](_0x4f537e['shift']());}catch(_0xa42687){_0x4f537e['push'](_0x4f537e['shift']());}}}(a135_0x2d05,0x9fde4));let tail=Promise[a135_0x47c072(0xe5)]();function a135_0x2d05(){const _0x4eb2ad=['catch','226742jYnZam','resolve','9799336vNPcMH','27XdECrm','4355793bemhIr','410604oQqzyV','1362220nadDkw','33sRGTpG','1635460SdMySN','7ssyQAE','2200120AqIKFd','6bgFXsQ'];a135_0x2d05=function(){return _0x4eb2ad;};return a135_0x2d05();}function a135_0x4323(_0x21ad28,_0x5e8b2e){_0x21ad28=_0x21ad28-0xd9;const _0x2d0560=a135_0x2d05();let _0x4323e4=_0x2d0560[_0x21ad28];return _0x4323e4;}export async function runSerialized(_0x351c4c){const _0x187238=a135_0x47c072,_0x5c85e4=tail;let _0x563900;tail=new Promise(_0x49819a=>{_0x563900=_0x49819a;}),await _0x5c85e4[_0x187238(0xe3)](()=>undefined);try{return await _0x351c4c();}finally{_0x563900();}}
@@ -1 +1 @@
1
- (function(_0x3de7cb,_0x303ab0){const _0x62406a=a136_0x1c43,_0x4c60f0=_0x3de7cb();while(!![]){try{const _0x5d67ae=-parseInt(_0x62406a(0xa2))/0x1*(-parseInt(_0x62406a(0xa8))/0x2)+parseInt(_0x62406a(0x9c))/0x3*(parseInt(_0x62406a(0x9f))/0x4)+-parseInt(_0x62406a(0xab))/0x5+-parseInt(_0x62406a(0xa6))/0x6*(-parseInt(_0x62406a(0x9a))/0x7)+parseInt(_0x62406a(0xa7))/0x8+parseInt(_0x62406a(0xaf))/0x9*(parseInt(_0x62406a(0xa4))/0xa)+parseInt(_0x62406a(0xa5))/0xb*(-parseInt(_0x62406a(0xb2))/0xc);if(_0x5d67ae===_0x303ab0)break;else _0x4c60f0['push'](_0x4c60f0['shift']());}catch(_0x72ce7d){_0x4c60f0['push'](_0x4c60f0['shift']());}}}(a136_0x1f57,0x973de));import a136_0x230570 from'meow';function a136_0x1c43(_0x47fec7,_0x352b33){_0x47fec7=_0x47fec7-0x9a;const _0x1f57c3=a136_0x1f57();let _0x1c4303=_0x1f57c3[_0x47fec7];return _0x1c4303;}import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x39c957){const _0x4d1dac=a136_0x1c43,_0x541f00=a136_0x230570('',{'importMeta':import.meta,'argv':_0x39c957,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x5ed52c=[..._0x541f00[_0x4d1dac(0xaa)]],_0x1f13be=_0x541f00[_0x4d1dac(0xae)];await correctFlags(_0x1f13be);const _0x5c96ad=_0x5ed52c[0x0];if(!_0x5c96ad)throw CliErrors[_0x4d1dac(0xac)](_0x4d1dac(0xb0));const _0x579bd2=resolveRemovedCommand(_0x5c96ad,_0x5ed52c[0x1]);if(_0x579bd2)throw CliErrors[_0x4d1dac(0xac)](_0x579bd2[_0x4d1dac(0xa1)],_0x579bd2[_0x4d1dac(0x9d)]);if(!isKnownService(_0x5c96ad)){const _0x3c9dce=resolveDynamicServiceCommand(_0x5ed52c,_0x1f13be);if(!_0x3c9dce)throw CliErrors['unknownCommand'](_0x5ed52c[_0x4d1dac(0xb3)]('\x20'));return Object[_0x4d1dac(0xa9)](_0x1f13be,_0x3c9dce['flags']),{'definition':_0x3c9dce[_0x4d1dac(0xad)],'rawFlags':_0x1f13be,'args':_0x3c9dce[_0x4d1dac(0x9e)]};}const _0x5a5bbb=getServiceEntry(_0x5c96ad),_0x2d8872=_0x5ed52c[0x1]||_0x5a5bbb[_0x4d1dac(0x9b)];if(!_0x2d8872)throw CliErrors[_0x4d1dac(0xac)](_0x4d1dac(0xa3)+_0x5c96ad+'\x22.');const _0xff4604=findDefinition(_0x5c96ad,_0x2d8872);if(!_0xff4604)throw CliErrors['unknownCommand'](_0x5c96ad+'\x20'+_0x2d8872);return{'definition':_0xff4604,'rawFlags':_0x1f13be,'args':_0x5ed52c['slice'](0x2)};}async function correctFlags(_0x23b41e){const _0x4db940=a136_0x1c43;try{const {correctFlags:_0x4e60f8}=await import(_0x4db940(0xb1)),{getAllDefinitions:_0x5b27c3}=await import('../commands/registry.js'),_0x2379be=_0x5b27c3()[_0x4db940(0xa0)](_0x73bb9a=>_0x73bb9a['flags']??[]),_0x44f49f=_0x4e60f8(_0x23b41e,_0x2379be);Object[_0x4db940(0xa9)](_0x23b41e,_0x44f49f['flags']);}catch{}}function a136_0x1f57(){const _0x2fe061=['5206325LlIFGr','validation','definition','flags','725247zKMXPp','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','../framework/preparse.js','612dvvBdX','join','13755MADBtF','defaultCommand','37020kBYkNr','hint','args','232KIgOqH','flatMap','message','891530LILdcZ','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','70zWuiDc','394669czCoBG','1170ASjaaR','7488592dXhnpM','2YflkYE','assign','input'];a136_0x1f57=function(){return _0x2fe061;};return a136_0x1f57();}
1
+ (function(_0x3af22b,_0x99070c){const _0x12c87e=a136_0x46a3,_0x55a2e2=_0x3af22b();while(!![]){try{const _0x7a0a2=parseInt(_0x12c87e(0x1e7))/0x1*(parseInt(_0x12c87e(0x1dd))/0x2)+parseInt(_0x12c87e(0x1dc))/0x3+parseInt(_0x12c87e(0x1ec))/0x4*(parseInt(_0x12c87e(0x1e3))/0x5)+parseInt(_0x12c87e(0x1ef))/0x6*(-parseInt(_0x12c87e(0x1e2))/0x7)+parseInt(_0x12c87e(0x1f3))/0x8*(parseInt(_0x12c87e(0x1e1))/0x9)+parseInt(_0x12c87e(0x1eb))/0xa*(parseInt(_0x12c87e(0x1e5))/0xb)+-parseInt(_0x12c87e(0x1df))/0xc*(parseInt(_0x12c87e(0x1e9))/0xd);if(_0x7a0a2===_0x99070c)break;else _0x55a2e2['push'](_0x55a2e2['shift']());}catch(_0xdf04ee){_0x55a2e2['push'](_0x55a2e2['shift']());}}}(a136_0x51b1,0x48aa5));import a136_0x58cc5a from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a136_0x51b1(){const _0x67ff58=['11yiFbrQ','../commands/registry.js','5vTXOLA','assign','299HErCCH','slice','1652180NplVXh','416HZDqqi','message','definition','1410tYiduZ','args','validation','hint','40FCkeKq','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','663303gUBxpt','179062GSmlcJ','unknownCommand','235776qgYpWr','input','15246lnqKlu','5859EDTznL','4990SKKwgQ','flags'];a136_0x51b1=function(){return _0x67ff58;};return a136_0x51b1();}function a136_0x46a3(_0x1bb568,_0x5e1adc){_0x1bb568=_0x1bb568-0x1db;const _0x51b119=a136_0x51b1();let _0x46a365=_0x51b119[_0x1bb568];return _0x46a365;}import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x4c4b4c){const _0x21dd8e=a136_0x46a3,_0x275664=a136_0x58cc5a('',{'importMeta':import.meta,'argv':_0x4c4b4c,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x56a022=[..._0x275664[_0x21dd8e(0x1e0)]],_0x4982da=_0x275664[_0x21dd8e(0x1e4)];await correctFlags(_0x4982da);const _0x1007b2=_0x56a022[0x0];if(!_0x1007b2)throw CliErrors[_0x21dd8e(0x1f1)](_0x21dd8e(0x1db));const _0x354727=resolveRemovedCommand(_0x1007b2,_0x56a022[0x1]);if(_0x354727)throw CliErrors[_0x21dd8e(0x1f1)](_0x354727[_0x21dd8e(0x1ed)],_0x354727[_0x21dd8e(0x1f2)]);if(!isKnownService(_0x1007b2)){const _0x227ce5=resolveDynamicServiceCommand(_0x56a022,_0x4982da);if(!_0x227ce5)throw CliErrors[_0x21dd8e(0x1de)](_0x56a022['join']('\x20'));return Object[_0x21dd8e(0x1e8)](_0x4982da,_0x227ce5[_0x21dd8e(0x1e4)]),{'definition':_0x227ce5[_0x21dd8e(0x1ee)],'rawFlags':_0x4982da,'args':_0x227ce5[_0x21dd8e(0x1f0)]};}const _0x3bf85b=getServiceEntry(_0x1007b2),_0x5baa25=_0x56a022[0x1]||_0x3bf85b['defaultCommand'];if(!_0x5baa25)throw CliErrors[_0x21dd8e(0x1f1)]('Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x1007b2+'\x22.');const _0x2bc81a=findDefinition(_0x1007b2,_0x5baa25);if(!_0x2bc81a)throw CliErrors[_0x21dd8e(0x1de)](_0x1007b2+'\x20'+_0x5baa25);return{'definition':_0x2bc81a,'rawFlags':_0x4982da,'args':_0x56a022[_0x21dd8e(0x1ea)](0x2)};}async function correctFlags(_0x5ea457){const _0x109e8e=a136_0x46a3;try{const {correctFlags:_0x3210c7}=await import('../framework/preparse.js'),{getAllDefinitions:_0x378b01}=await import(_0x109e8e(0x1e6)),_0x107166=_0x378b01()['flatMap'](_0x257d78=>_0x257d78[_0x109e8e(0x1e4)]??[]),_0x52b009=_0x3210c7(_0x5ea457,_0x107166);Object[_0x109e8e(0x1e8)](_0x5ea457,_0x52b009[_0x109e8e(0x1e4)]);}catch{}}
@@ -1,5 +1,7 @@
1
1
  import { type ImportOptions } from "./runner.js";
2
- export declare function runAutoIdExcelImport(input: ImportOptions): Promise<{
2
+ export declare function runAutoIdExcelImport(input: ImportOptions & {
3
+ reconcileImageConflicts?: boolean;
4
+ }): Promise<{
3
5
  importId: string | undefined;
4
6
  sourceRows: number;
5
7
  emptyRows: number;
@@ -1 +1 @@
1
- const a138_0x3ed017=a138_0x1867;(function(_0x49932f,_0x4625aa){const _0x399c5d=a138_0x1867,_0x4eb2f2=_0x49932f();while(!![]){try{const _0x5ce634=-parseInt(_0x399c5d(0x1de))/0x1*(parseInt(_0x399c5d(0x1ee))/0x2)+parseInt(_0x399c5d(0x199))/0x3*(parseInt(_0x399c5d(0x1b1))/0x4)+-parseInt(_0x399c5d(0x198))/0x5+parseInt(_0x399c5d(0x1c1))/0x6*(-parseInt(_0x399c5d(0x1d5))/0x7)+-parseInt(_0x399c5d(0x1a8))/0x8*(parseInt(_0x399c5d(0x19d))/0x9)+parseInt(_0x399c5d(0x1db))/0xa*(-parseInt(_0x399c5d(0x1aa))/0xb)+parseInt(_0x399c5d(0x19a))/0xc*(parseInt(_0x399c5d(0x1af))/0xd);if(_0x5ce634===_0x4625aa)break;else _0x4eb2f2['push'](_0x4eb2f2['shift']());}catch(_0x22acd2){_0x4eb2f2['push'](_0x4eb2f2['shift']());}}}(a138_0x48bf,0x4981e));function a138_0x48bf(){const _0x2231c5=['add','616SBACPp','schemaFingerprint','now','Excel\x20row\x20','batches','1469FJGGMe','Cannot\x20read\x20the\x20import\x20checkpoint.','24972RjoSnY','Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.','toString','utf8','Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.','parse','keys','message','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','taskId','count','some','binding','rowNumber','includes','hex','3349902biDCOv','Import\x20generated\x20ID\x20conflict.','readTask','pending','schemaHash','code','importId','Partial\x20import\x20task\x20readback\x20conflict.','length','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','write','size','maxBatchSize','appCode','byteLength','rowIndexes','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','unknown','maxBatchBytes','warnings','7WQelDF','isInteger','strategy','Invalid\x20import\x20task\x20readback\x20response.','runtimeDomain','errors','27340RrRAve','succeeded','filter','2MMinIG','map','checkpoint','stringify','isSafeInteger','flatMap','status','values','push','mappingHash','conflict','rows','schemaVersion','number','has','Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.','513546KWLrYz','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','Invalid\x20import\x20batch\x20size.','isArray','batchSize','2081400tYysaU','108ueYKZw','244092sZzBjV','resume','sheet','11196jkMemn','actorId','ids','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','Excel\x20contains\x20no\x20valid\x20data\x20rows.','ENOENT','hasOwn','report','reduce','completed','unsent','3736RhgyQk'];a138_0x48bf=function(){return _0x2231c5;};return a138_0x48bf();}import{randomBytes,randomUUID}from'node:crypto';function a138_0x1867(_0x427bf7,_0x540f9c){_0x427bf7=_0x427bf7-0x197;const _0x48bfbe=a138_0x48bf();let _0x1867a9=_0x48bfbe[_0x427bf7];return _0x1867a9;}import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0xa4c6fe=>typeof _0xa4c6fe===a138_0x3ed017(0x1eb)&&Number[a138_0x3ed017(0x1e2)](_0xa4c6fe)&&_0xa4c6fe>0x0;export async function runAutoIdExcelImport(_0x24ed1c){const _0x292bfe=a138_0x3ed017,_0x2f5e61={..._0x24ed1c,'checkpoint':await resolveImportOutputPath(_0x24ed1c[_0x292bfe(0x1e0)]),'report':await resolveImportOutputPath(_0x24ed1c[_0x292bfe(0x1a4)])},{manifest:_0xb9ec28,contract:_0x536cca,api:_0x5a0ceb}=_0x2f5e61;assertImportContract(_0x536cca,_0x2f5e61[_0x292bfe(0x1ce)],_0x2f5e61['datasetCode']);if(_0x536cca[_0x292bfe(0x1ea)]!==0x2||!_0x5a0ceb[_0x292bfe(0x1c3)])throw Error(_0x292bfe(0x1a0));if(_0xb9ec28[_0x292bfe(0x1da)][_0x292bfe(0x1c9)])throw Error(_0x292bfe(0x1ca));if(!_0xb9ec28[_0x292bfe(0x1e9)]['length'])throw Error(_0x292bfe(0x1a1));if(!Number[_0x292bfe(0x1d6)](_0x2f5e61['batchSize'])||_0x2f5e61[_0x292bfe(0x197)]<0x1||_0x2f5e61['batchSize']>_0x536cca[_0x292bfe(0x1cd)])throw Error(_0x292bfe(0x1f1));assertImportPaths(_0x2f5e61[_0x292bfe(0x1e0)],_0x2f5e61[_0x292bfe(0x1a4)]);if(_0xb9ec28[_0x292bfe(0x1e9)]['some'](_0x3d389f=>Object[_0x292bfe(0x1a3)](_0x3d389f[_0x292bfe(0x1e5)],'id')))throw Error('Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.');const _0x6cec9=(_0x35fd50,_0xa29d5c)=>Buffer[_0x292bfe(0x1cf)](JSON[_0x292bfe(0x1e1)]({'schemaFingerprint':_0x536cca[_0x292bfe(0x1ab)],'taskId':_0xa29d5c,'items':_0x35fd50[_0x292bfe(0x1df)](_0x8f0bd7=>_0xb9ec28[_0x292bfe(0x1e9)][_0x8f0bd7]['values'])}),_0x292bfe(0x1b4)),_0x134846=[];let _0x20c2ba=[];for(let _0x738cb4=0x0;_0x738cb4<_0xb9ec28[_0x292bfe(0x1e9)]['length'];_0x738cb4++){if(_0x6cec9([_0x738cb4],0x2**0x34)>_0x536cca[_0x292bfe(0x1d3)])throw Error(_0x292bfe(0x1ad)+_0xb9ec28['rows'][_0x738cb4][_0x292bfe(0x1be)]+_0x292bfe(0x1ef));_0x20c2ba[_0x292bfe(0x1c9)]&&(_0x20c2ba['length']===_0x2f5e61[_0x292bfe(0x197)]||_0x6cec9([..._0x20c2ba,_0x738cb4],0x2**0x34)>_0x536cca[_0x292bfe(0x1d3)])&&(_0x134846['push'](_0x20c2ba),_0x20c2ba=[]),_0x20c2ba['push'](_0x738cb4);}if(_0x20c2ba[_0x292bfe(0x1c9)])_0x134846[_0x292bfe(0x1e6)](_0x20c2ba);const _0x25ca76={'appCode':_0x2f5e61['appCode'],'datasetCode':_0x2f5e61['datasetCode'],'runtimeDomain':_0x2f5e61[_0x292bfe(0x1d9)],'actorId':_0x536cca[_0x292bfe(0x19e)],'fileHash':_0xb9ec28['fileHash'],'mappingHash':_0xb9ec28[_0x292bfe(0x1e7)],'schemaHash':_0xb9ec28[_0x292bfe(0x1c5)],'remoteSchemaHash':_0x536cca[_0x292bfe(0x1ab)],'batchSize':_0x2f5e61[_0x292bfe(0x197)],'maxBatchBytes':_0x536cca['maxBatchBytes'],'sheet':_0xb9ec28[_0x292bfe(0x19c)],'strategy':_0x536cca[_0x292bfe(0x1d7)]},_0x554e0a=await acquireLock(_0x2f5e61[_0x292bfe(0x1e0)]);let _0x3987f3;const _0x6b2f3=Date[_0x292bfe(0x1ac)]();let _0x4b57c0=0x0;const _0x53191c=[],_0x33f72c=_0x5c6cde=>_0x3987f3?.[_0x292bfe(0x1ae)][_0x292bfe(0x1dd)](_0x195b6e=>_0x195b6e['status']===_0x5c6cde)[_0x292bfe(0x1a5)]((_0x28612c,_0x335049)=>_0x28612c+_0x335049[_0x292bfe(0x1d0)][_0x292bfe(0x1c9)],0x0)??0x0,_0x5d4f28=()=>({'importId':_0x3987f3?.[_0x292bfe(0x1c7)],'sourceRows':_0xb9ec28['rows'][_0x292bfe(0x1c9)],'emptyRows':_0xb9ec28['emptyRows'][_0x292bfe(0x1c9)],'succeeded':_0x33f72c(_0x292bfe(0x1dc)),'unknown':_0x33f72c('pending'),'conflicts':_0x33f72c(_0x292bfe(0x1e8)),'notAttempted':_0x33f72c('unsent'),'batches':_0x4b57c0,'batchResults':_0x53191c,'elapsedMs':Date[_0x292bfe(0x1ac)]()-_0x6b2f3,'checkpoint':_0x2f5e61['checkpoint'],'report':_0x2f5e61[_0x292bfe(0x1a4)],'warnings':_0xb9ec28[_0x292bfe(0x1d4)]});try{if(_0x2f5e61[_0x292bfe(0x19b)]){try{_0x3987f3=JSON[_0x292bfe(0x1b6)](await readFile(_0x2f5e61[_0x292bfe(0x1e0)],_0x292bfe(0x1b4)));}catch{throw Error(_0x292bfe(0x1b0));}if(!_0x3987f3||_0x3987f3['version']!==0x2||typeof _0x3987f3[_0x292bfe(0x1c7)]!=='string'||!_0x3987f3[_0x292bfe(0x1c7)]||canonical(_0x3987f3[_0x292bfe(0x1bd)])!==canonical(_0x25ca76)||!Array[_0x292bfe(0x1f2)](_0x3987f3['batches'])||_0x3987f3['batches']['length']!==_0x134846[_0x292bfe(0x1c9)]||new Set(_0x3987f3[_0x292bfe(0x1ae)]['map'](_0x3e7a93=>_0x3e7a93['taskId']))['size']!==_0x134846[_0x292bfe(0x1c9)]||_0x3987f3[_0x292bfe(0x1ae)]['some']((_0x49ede4,_0x216de6)=>!validId(_0x49ede4[_0x292bfe(0x1ba)])||_0x49ede4[_0x292bfe(0x1ba)]>0x2**0x34||canonical(_0x49ede4[_0x292bfe(0x1d0)])!==canonical(_0x134846[_0x216de6])||!['unsent',_0x292bfe(0x1c4),'succeeded','conflict'][_0x292bfe(0x1bf)](_0x49ede4[_0x292bfe(0x1e4)])||!Array[_0x292bfe(0x1f2)](_0x49ede4[_0x292bfe(0x19f)])||_0x49ede4['ids']['some'](_0x467a5e=>!validId(_0x467a5e))||new Set(_0x49ede4[_0x292bfe(0x19f)])[_0x292bfe(0x1cc)]!==_0x49ede4['ids'][_0x292bfe(0x1c9)]||_0x49ede4[_0x292bfe(0x19f)]['length']!==0x0&&_0x49ede4[_0x292bfe(0x19f)]['length']!==_0x49ede4['rowIndexes']['length']||_0x49ede4[_0x292bfe(0x1e4)]===_0x292bfe(0x1dc)&&_0x49ede4[_0x292bfe(0x19f)][_0x292bfe(0x1c9)]!==_0x49ede4[_0x292bfe(0x1d0)][_0x292bfe(0x1c9)]||_0x49ede4[_0x292bfe(0x1e4)]===_0x292bfe(0x1a7)&&_0x49ede4[_0x292bfe(0x19f)][_0x292bfe(0x1c9)]!==0x0))throw Error(_0x292bfe(0x1ed));const _0x456d3c=_0x3987f3[_0x292bfe(0x1ae)][_0x292bfe(0x1e3)](_0x151c6a=>_0x151c6a['ids']);if(new Set(_0x456d3c)[_0x292bfe(0x1cc)]!==_0x456d3c[_0x292bfe(0x1c9)])throw Error(_0x292bfe(0x1d1));}else{try{await lstat(_0x2f5e61[_0x292bfe(0x1e0)]);throw Error(_0x292bfe(0x1b9));}catch(_0x35e11a){if(_0x35e11a[_0x292bfe(0x1c6)]!==_0x292bfe(0x1a2))throw _0x35e11a;}const _0x18ba23=new Set();_0x3987f3={'version':0x2,'importId':randomUUID(),'binding':_0x25ca76,'batches':_0x134846[_0x292bfe(0x1df)](_0x2848de=>{const _0x15d381=_0x292bfe;let _0x1a55de;do{_0x1a55de=Number(BigInt('0x'+randomBytes(0x7)[_0x15d381(0x1b3)](_0x15d381(0x1c0)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x18ba23[_0x15d381(0x1ec)](_0x1a55de));return _0x18ba23[_0x15d381(0x1a9)](_0x1a55de),{'taskId':_0x1a55de,'rowIndexes':_0x2848de,'ids':[],'status':_0x15d381(0x1a7)};})},await saveImportJson(_0x2f5e61[_0x292bfe(0x1e0)],_0x3987f3);}const _0x590bb5=_0x3987f3,_0xc2c3c5=async(_0x475edc,_0x5ad9e3)=>{const _0x5d5013=_0x292bfe;_0x475edc[_0x5d5013(0x1e4)]='conflict',await saveImportJson(_0x2f5e61['checkpoint'],_0x590bb5);throw Error(_0x5ad9e3);},_0x4c8055=async _0x2404f6=>{const _0x4b660a=_0x292bfe,_0x42ef90=await _0x5a0ceb[_0x4b660a(0x1c3)](_0x2404f6['taskId']);if(!Array[_0x4b660a(0x1f2)](_0x42ef90))throw Error(_0x4b660a(0x1d8));if(_0x2404f6[_0x4b660a(0x1e4)]==='unsent'&&_0x42ef90[_0x4b660a(0x1c9)])return _0xc2c3c5(_0x2404f6,_0x4b660a(0x1b5));if(!_0x42ef90[_0x4b660a(0x1c9)]){if(_0x2404f6['status']===_0x4b660a(0x1dc)||_0x2404f6[_0x4b660a(0x19f)][_0x4b660a(0x1c9)])return _0xc2c3c5(_0x2404f6,_0x4b660a(0x1b2));return![];}if(_0x42ef90[_0x4b660a(0x1c9)]!==_0x2404f6[_0x4b660a(0x1d0)]['length'])return _0xc2c3c5(_0x2404f6,_0x4b660a(0x1c8));const _0x39b341=_0x42ef90[_0x4b660a(0x1df)](_0x412d02=>_0x412d02?.['id']);if(_0x39b341[_0x4b660a(0x1bc)](_0x1787ad=>!validId(_0x1787ad)))return _0xc2c3c5(_0x2404f6,_0x4b660a(0x1c2));const _0x59f84d=_0x39b341;if(_0x59f84d[_0x4b660a(0x1bc)](_0x1cb213=>!validId(_0x1cb213))||_0x59f84d[_0x4b660a(0x1bc)]((_0x2893e8,_0x191ebd)=>_0x191ebd>0x0&&_0x2893e8<=_0x59f84d[_0x191ebd-0x1])||_0x2404f6[_0x4b660a(0x19f)]['length']&&canonical(_0x59f84d)!==canonical(_0x2404f6[_0x4b660a(0x19f)]))return _0xc2c3c5(_0x2404f6,_0x4b660a(0x1c2));const _0x1d6e97=new Set(_0x590bb5['batches'][_0x4b660a(0x1dd)](_0x1dd160=>_0x1dd160!==_0x2404f6)[_0x4b660a(0x1e3)](_0x545f43=>_0x545f43[_0x4b660a(0x19f)]));if(_0x59f84d[_0x4b660a(0x1bc)](_0x347c22=>_0x1d6e97[_0x4b660a(0x1ec)](_0x347c22)))return _0xc2c3c5(_0x2404f6,'Import\x20generated\x20ID\x20collision.');for(let _0x1a0cf8=0x0;_0x1a0cf8<_0x42ef90[_0x4b660a(0x1c9)];_0x1a0cf8++){const _0x542058=_0xb9ec28[_0x4b660a(0x1e9)][_0x2404f6[_0x4b660a(0x1d0)][_0x1a0cf8]][_0x4b660a(0x1e5)];if(Object[_0x4b660a(0x1b7)](_0x542058)[_0x4b660a(0x1bc)](_0x309249=>!sameImportValue(_0x542058[_0x309249],_0x42ef90[_0x1a0cf8][_0x309249])))return _0xc2c3c5(_0x2404f6,'Import\x20content\x20conflict\x20at\x20Excel\x20row\x20'+_0xb9ec28['rows'][_0x2404f6[_0x4b660a(0x1d0)][_0x1a0cf8]][_0x4b660a(0x1be)]+'.');}return _0x2404f6['ids']=_0x59f84d,_0x2404f6['status']=_0x4b660a(0x1dc),await saveImportJson(_0x2f5e61['checkpoint'],_0x590bb5),!![];};if(_0x590bb5['batches'][_0x292bfe(0x1bc)](_0x4e906e=>_0x4e906e[_0x292bfe(0x1e4)]===_0x292bfe(0x1e8)))throw Error(_0x292bfe(0x1f0));if(_0x2f5e61['resume']){for(const _0x4e8882 of _0x590bb5['batches'])await _0x4c8055(_0x4e8882);}for(const _0x27399c of _0x590bb5[_0x292bfe(0x1ae)]){if(_0x27399c[_0x292bfe(0x1e4)]===_0x292bfe(0x1dc))continue;if(!_0x2f5e61['resume'])await _0x4c8055(_0x27399c);_0x27399c[_0x292bfe(0x1e4)]=_0x292bfe(0x1c4),await saveImportJson(_0x2f5e61[_0x292bfe(0x1e0)],_0x590bb5),_0x4b57c0++;const _0x21c87c=_0x27399c[_0x292bfe(0x1d0)][_0x292bfe(0x1df)](_0x10eb7e=>_0xb9ec28[_0x292bfe(0x1e9)][_0x10eb7e][_0x292bfe(0x1e5)]),_0x14baf9=Date['now'](),_0x2dbf87={'batch':_0x4b57c0,'rowStart':_0xb9ec28[_0x292bfe(0x1e9)][_0x27399c[_0x292bfe(0x1d0)][0x0]][_0x292bfe(0x1be)],'rowEnd':_0xb9ec28['rows'][_0x27399c[_0x292bfe(0x1d0)]['at'](-0x1)][_0x292bfe(0x1be)],'count':_0x21c87c[_0x292bfe(0x1c9)],'bytes':_0x6cec9(_0x27399c[_0x292bfe(0x1d0)],_0x27399c[_0x292bfe(0x1ba)]),'elapsedMs':0x0,'status':_0x292bfe(0x1d2)};_0x53191c[_0x292bfe(0x1e6)](_0x2dbf87);try{const _0x3266ff=await _0x5a0ceb[_0x292bfe(0x1cb)](_0x21c87c,_0x27399c[_0x292bfe(0x1ba)]);if(!_0x3266ff||_0x3266ff[_0x292bfe(0x1bb)]!==_0x21c87c['length']||!Array[_0x292bfe(0x1f2)](_0x3266ff['ids'])||_0x3266ff[_0x292bfe(0x19f)][_0x292bfe(0x1c9)]!==_0x21c87c[_0x292bfe(0x1c9)]||_0x3266ff['ids'][_0x292bfe(0x1bc)](_0x4fd43e=>!validId(_0x4fd43e))||new Set(_0x3266ff[_0x292bfe(0x19f)])[_0x292bfe(0x1cc)]!==_0x3266ff[_0x292bfe(0x19f)][_0x292bfe(0x1c9)])throw Error('Invalid\x20write\x20result.');_0x27399c[_0x292bfe(0x19f)]=_0x3266ff[_0x292bfe(0x19f)],await saveImportJson(_0x2f5e61[_0x292bfe(0x1e0)],_0x590bb5);if(!await _0x4c8055(_0x27399c))throw Error('Incomplete\x20readback.');}catch(_0x234c8a){if(_0x27399c[_0x292bfe(0x1e4)]===_0x292bfe(0x1e8))throw _0x234c8a;try{await _0x4c8055(_0x27399c);}catch(_0x170f3b){if(_0x27399c[_0x292bfe(0x1e4)]==='conflict')throw _0x170f3b;}if(_0x27399c['status']!==_0x292bfe(0x1dc))throw Error('The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.');}finally{_0x2dbf87['elapsedMs']=Date['now']()-_0x14baf9,_0x2dbf87[_0x292bfe(0x1e4)]=_0x27399c['status']===_0x292bfe(0x1dc)?'succeeded':_0x27399c[_0x292bfe(0x1e4)]==='conflict'?'conflict':_0x292bfe(0x1d2);}}const _0x8b949a={'status':_0x292bfe(0x1a6),..._0x5d4f28()};return await saveImportJson(_0x2f5e61['report'],_0x8b949a),_0x8b949a;}catch(_0x1bcc28){if(_0x3987f3)await saveImportJson(_0x2f5e61[_0x292bfe(0x1a4)],{'status':'incomplete',..._0x5d4f28(),'message':_0x1bcc28[_0x292bfe(0x1b8)]});throw _0x1bcc28;}finally{await _0x554e0a();}}
1
+ const a138_0x16645c=a138_0x28b9;(function(_0x5cf089,_0x575263){const _0x1b4dc5=a138_0x28b9,_0x3883e1=_0x5cf089();while(!![]){try{const _0x3e192e=parseInt(_0x1b4dc5(0x220))/0x1*(-parseInt(_0x1b4dc5(0x20e))/0x2)+-parseInt(_0x1b4dc5(0x20b))/0x3*(parseInt(_0x1b4dc5(0x1e6))/0x4)+-parseInt(_0x1b4dc5(0x21d))/0x5*(parseInt(_0x1b4dc5(0x204))/0x6)+-parseInt(_0x1b4dc5(0x1eb))/0x7+parseInt(_0x1b4dc5(0x21a))/0x8*(parseInt(_0x1b4dc5(0x1ec))/0x9)+parseInt(_0x1b4dc5(0x1fa))/0xa*(parseInt(_0x1b4dc5(0x231))/0xb)+-parseInt(_0x1b4dc5(0x214))/0xc*(-parseInt(_0x1b4dc5(0x22d))/0xd);if(_0x3e192e===_0x575263)break;else _0x3883e1['push'](_0x3883e1['shift']());}catch(_0x25adb5){_0x3883e1['push'](_0x3883e1['shift']());}}}(a138_0x5477,0x63682));import{randomBytes,randomUUID}from'node:crypto';function a138_0x28b9(_0x5e870c,_0x40c100){_0x5e870c=_0x5e870c-0x1d8;const _0x547747=a138_0x5477();let _0x28b902=_0x547747[_0x5e870c];return _0x28b902;}import{lstat,readFile}from'node:fs/promises';function a138_0x5477(){const _0x31bad9=['report','warnings','rowNumber','datasetCode','keys','7988YEcGRz','Partial\x20import\x20task\x20readback\x20conflict.','pending','uploadFields','number','3645936CScbIe','9BnRKLd','flatMap','count','conflict','resume','utf8','mappingHash','some','version','batchSize','schemaFingerprint','Invalid\x20import\x20task\x20readback\x20response.','Import\x20generated\x20ID\x20collision.','byteLength','7115810EBrWFS','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','status','Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.','imageFields','maxBatchSize','filter','Invalid\x20write\x20result.','runtimeDomain','push','6fWXGkl','binding','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','unknown','values','isArray','batches','1077GhzQlS','taskId','map','294486WDgCuI','add','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','string','now','ENOENT','786984bAwEdy','checkpoint','rowIndexes','errors','has','size','5654240iFlSGQ','parse','incomplete','104675VbiaLV','schemaVersion','ids','5TsFfRZ','unsent','rows','completed','Incomplete\x20readback.','sheet','includes','importId','succeeded','Cannot\x20read\x20the\x20import\x20checkpoint.','isSafeInteger','Invalid\x20import\x20batch\x20size.','write','195wJZqNN','strategy','actorId','length','11mYTJOX','readTask','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.','Import\x20generated\x20ID\x20conflict.','hasOwn','hex','Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.','stringify','appCode','isInteger','onCheckpointReady','maxBatchBytes'];a138_0x5477=function(){return _0x31bad9;};return a138_0x5477();}import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x574eda=>typeof _0x574eda===a138_0x16645c(0x1ea)&&Number[a138_0x16645c(0x22a)](_0x574eda)&&_0x574eda>0x0;export async function runAutoIdExcelImport(_0x2250f2){const _0x46c8c3=a138_0x16645c,_0x1f7160={..._0x2250f2,'checkpoint':await resolveImportOutputPath(_0x2250f2['checkpoint']),'report':await resolveImportOutputPath(_0x2250f2[_0x46c8c3(0x1e1)])},{manifest:_0x2bc6e0,contract:_0x5205a6,api:_0x2a420d}=_0x1f7160;assertImportContract(_0x5205a6,_0x1f7160['appCode'],_0x1f7160[_0x46c8c3(0x1e4)]);if(_0x5205a6[_0x46c8c3(0x21e)]!==0x2||!_0x2a420d['readTask'])throw Error(_0x46c8c3(0x210));if(_0x2bc6e0[_0x46c8c3(0x217)]['length'])throw Error('Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.');if(!_0x2bc6e0[_0x46c8c3(0x222)][_0x46c8c3(0x230)])throw Error('Excel\x20contains\x20no\x20valid\x20data\x20rows.');if(!Number[_0x46c8c3(0x1de)](_0x1f7160[_0x46c8c3(0x1f5)])||_0x1f7160[_0x46c8c3(0x1f5)]<0x1||_0x1f7160[_0x46c8c3(0x1f5)]>_0x5205a6[_0x46c8c3(0x1ff)])throw Error(_0x46c8c3(0x22b));assertImportPaths(_0x1f7160[_0x46c8c3(0x215)],_0x1f7160[_0x46c8c3(0x1e1)]);if(_0x2bc6e0[_0x46c8c3(0x222)]['some'](_0x5ed4a5=>Object[_0x46c8c3(0x1d9)](_0x5ed4a5[_0x46c8c3(0x208)],'id')))throw Error('Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.');const _0x1bbfb9=(_0x9c2bfc,_0x7cda6f)=>Buffer[_0x46c8c3(0x1f9)](JSON[_0x46c8c3(0x1dc)]({'schemaFingerprint':_0x5205a6[_0x46c8c3(0x1f6)],'taskId':_0x7cda6f,'items':_0x9c2bfc[_0x46c8c3(0x20d)](_0x4fa8db=>_0x2bc6e0[_0x46c8c3(0x222)][_0x4fa8db]['values'])}),_0x46c8c3(0x1f1)),_0x4d0d3a=[];let _0x183291=[];for(let _0x3f5b5d=0x0;_0x3f5b5d<_0x2bc6e0[_0x46c8c3(0x222)][_0x46c8c3(0x230)];_0x3f5b5d++){if(_0x1bbfb9([_0x3f5b5d],0x2**0x34)>_0x5205a6[_0x46c8c3(0x1e0)])throw Error('Excel\x20row\x20'+_0x2bc6e0[_0x46c8c3(0x222)][_0x3f5b5d][_0x46c8c3(0x1e3)]+'\x20exceeds\x20the\x20import\x20request\x20size\x20limit.');_0x183291[_0x46c8c3(0x230)]&&(_0x183291[_0x46c8c3(0x230)]===_0x1f7160[_0x46c8c3(0x1f5)]||_0x1bbfb9([..._0x183291,_0x3f5b5d],0x2**0x34)>_0x5205a6[_0x46c8c3(0x1e0)])&&(_0x4d0d3a['push'](_0x183291),_0x183291=[]),_0x183291[_0x46c8c3(0x203)](_0x3f5b5d);}if(_0x183291[_0x46c8c3(0x230)])_0x4d0d3a[_0x46c8c3(0x203)](_0x183291);const _0x18cd71={'appCode':_0x1f7160[_0x46c8c3(0x1dd)],'datasetCode':_0x1f7160[_0x46c8c3(0x1e4)],'runtimeDomain':_0x1f7160[_0x46c8c3(0x202)],'actorId':_0x5205a6[_0x46c8c3(0x22f)],'fileHash':_0x2bc6e0['fileHash'],'mappingHash':_0x2bc6e0[_0x46c8c3(0x1f2)],'schemaHash':_0x2bc6e0['schemaHash'],'remoteSchemaHash':_0x5205a6[_0x46c8c3(0x1f6)],'batchSize':_0x1f7160[_0x46c8c3(0x1f5)],'maxBatchBytes':_0x5205a6[_0x46c8c3(0x1e0)],'sheet':_0x2bc6e0[_0x46c8c3(0x225)],'strategy':_0x5205a6[_0x46c8c3(0x22e)]},_0x1cb2ee=await acquireLock(_0x1f7160[_0x46c8c3(0x215)]);let _0x26e668;const _0x2d0c9e=Date[_0x46c8c3(0x212)]();let _0x18169f=0x0;const _0x48741f=[],_0x48d529=_0x188df5=>_0x26e668?.[_0x46c8c3(0x20a)][_0x46c8c3(0x200)](_0x387fd0=>_0x387fd0[_0x46c8c3(0x1fc)]===_0x188df5)['reduce']((_0x1ab59f,_0x5b41f8)=>_0x1ab59f+_0x5b41f8[_0x46c8c3(0x216)][_0x46c8c3(0x230)],0x0)??0x0,_0x4cd132=()=>({'importId':_0x26e668?.[_0x46c8c3(0x227)],'sourceRows':_0x2bc6e0[_0x46c8c3(0x222)]['length'],'emptyRows':_0x2bc6e0['emptyRows'][_0x46c8c3(0x230)],'succeeded':_0x48d529('succeeded'),'unknown':_0x48d529(_0x46c8c3(0x1e8)),'conflicts':_0x48d529(_0x46c8c3(0x1ef)),'notAttempted':_0x48d529(_0x46c8c3(0x221)),'batches':_0x18169f,'batchResults':_0x48741f,'elapsedMs':Date['now']()-_0x2d0c9e,'checkpoint':_0x1f7160[_0x46c8c3(0x215)],'report':_0x1f7160[_0x46c8c3(0x1e1)],'warnings':_0x2bc6e0[_0x46c8c3(0x1e2)]});try{if(_0x1f7160[_0x46c8c3(0x1f0)]){try{_0x26e668=JSON[_0x46c8c3(0x21b)](await readFile(_0x1f7160[_0x46c8c3(0x215)],_0x46c8c3(0x1f1)));}catch{throw Error(_0x46c8c3(0x229));}if(!_0x26e668||_0x26e668[_0x46c8c3(0x1f4)]!==0x2||typeof _0x26e668['importId']!==_0x46c8c3(0x211)||!_0x26e668[_0x46c8c3(0x227)]||canonical(_0x26e668[_0x46c8c3(0x205)])!==canonical(_0x18cd71)||!Array[_0x46c8c3(0x209)](_0x26e668[_0x46c8c3(0x20a)])||_0x26e668[_0x46c8c3(0x20a)][_0x46c8c3(0x230)]!==_0x4d0d3a['length']||new Set(_0x26e668['batches'][_0x46c8c3(0x20d)](_0xd30774=>_0xd30774[_0x46c8c3(0x20c)]))[_0x46c8c3(0x219)]!==_0x4d0d3a[_0x46c8c3(0x230)]||_0x26e668[_0x46c8c3(0x20a)][_0x46c8c3(0x1f3)]((_0xe61e0f,_0x4b0163)=>!validId(_0xe61e0f[_0x46c8c3(0x20c)])||_0xe61e0f[_0x46c8c3(0x20c)]>0x2**0x34||canonical(_0xe61e0f['rowIndexes'])!==canonical(_0x4d0d3a[_0x4b0163])||!['unsent',_0x46c8c3(0x1e8),'succeeded',_0x46c8c3(0x1ef)]['includes'](_0xe61e0f[_0x46c8c3(0x1fc)])||!Array['isArray'](_0xe61e0f[_0x46c8c3(0x21f)])||_0xe61e0f[_0x46c8c3(0x21f)][_0x46c8c3(0x1f3)](_0x3dd0e7=>!validId(_0x3dd0e7))||new Set(_0xe61e0f[_0x46c8c3(0x21f)])[_0x46c8c3(0x219)]!==_0xe61e0f['ids'][_0x46c8c3(0x230)]||_0xe61e0f[_0x46c8c3(0x21f)][_0x46c8c3(0x230)]!==0x0&&_0xe61e0f['ids'][_0x46c8c3(0x230)]!==_0xe61e0f[_0x46c8c3(0x216)][_0x46c8c3(0x230)]||_0xe61e0f[_0x46c8c3(0x1fc)]===_0x46c8c3(0x228)&&_0xe61e0f[_0x46c8c3(0x21f)][_0x46c8c3(0x230)]!==_0xe61e0f[_0x46c8c3(0x216)][_0x46c8c3(0x230)]||_0xe61e0f['status']===_0x46c8c3(0x221)&&_0xe61e0f[_0x46c8c3(0x21f)]['length']!==0x0))throw Error(_0x46c8c3(0x1db));const _0x5e026f=_0x26e668[_0x46c8c3(0x20a)][_0x46c8c3(0x1ed)](_0x470de9=>_0x470de9[_0x46c8c3(0x21f)]);if(new Set(_0x5e026f)['size']!==_0x5e026f[_0x46c8c3(0x230)])throw Error(_0x46c8c3(0x233));}else{try{await lstat(_0x1f7160[_0x46c8c3(0x215)]);throw Error(_0x46c8c3(0x206));}catch(_0x5d6195){if(_0x5d6195['code']!==_0x46c8c3(0x213))throw _0x5d6195;}const _0x330b9d=new Set();_0x26e668={'version':0x2,'importId':randomUUID(),'binding':_0x18cd71,'batches':_0x4d0d3a[_0x46c8c3(0x20d)](_0x118f7b=>{const _0x22d153=_0x46c8c3;let _0x123e08;do{_0x123e08=Number(BigInt('0x'+randomBytes(0x7)['toString'](_0x22d153(0x1da)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x330b9d[_0x22d153(0x218)](_0x123e08));return _0x330b9d[_0x22d153(0x20f)](_0x123e08),{'taskId':_0x123e08,'rowIndexes':_0x118f7b,'ids':[],'status':_0x22d153(0x221)};})},await saveImportJson(_0x1f7160[_0x46c8c3(0x215)],_0x26e668);}await _0x1f7160[_0x46c8c3(0x1df)]?.();const _0x563cae=_0x26e668,_0x403e46=async(_0x15d09d,_0x3dc769)=>{const _0x5cc0dd=_0x46c8c3;_0x15d09d[_0x5cc0dd(0x1fc)]=_0x5cc0dd(0x1ef),await saveImportJson(_0x1f7160['checkpoint'],_0x563cae);throw Error(_0x3dc769);},_0x552a4c=async _0x234acb=>{const _0x2cfc79=_0x46c8c3,_0xc3ad98=await _0x2a420d[_0x2cfc79(0x232)](_0x234acb[_0x2cfc79(0x20c)]);if(!Array[_0x2cfc79(0x209)](_0xc3ad98))throw Error(_0x2cfc79(0x1f7));if(_0x234acb[_0x2cfc79(0x1fc)]==='unsent'&&_0xc3ad98[_0x2cfc79(0x230)])return _0x403e46(_0x234acb,'Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.');if(!_0xc3ad98['length']){if(_0x234acb[_0x2cfc79(0x1fc)]===_0x2cfc79(0x228)||_0x234acb['ids'][_0x2cfc79(0x230)])return _0x403e46(_0x234acb,_0x2cfc79(0x1fd));return![];}if(_0xc3ad98[_0x2cfc79(0x230)]!==_0x234acb[_0x2cfc79(0x216)][_0x2cfc79(0x230)])return _0x403e46(_0x234acb,_0x2cfc79(0x1e7));const _0x355c1d=_0xc3ad98[_0x2cfc79(0x20d)](_0x2a2070=>_0x2a2070?.['id']);if(_0x355c1d[_0x2cfc79(0x1f3)](_0x389281=>!validId(_0x389281)))return _0x403e46(_0x234acb,_0x2cfc79(0x1d8));const _0x432c2f=_0x355c1d;if(_0x432c2f[_0x2cfc79(0x1f3)](_0x14a839=>!validId(_0x14a839))||_0x432c2f[_0x2cfc79(0x1f3)]((_0x45003e,_0x35a52c)=>_0x35a52c>0x0&&_0x45003e<=_0x432c2f[_0x35a52c-0x1])||_0x234acb[_0x2cfc79(0x21f)][_0x2cfc79(0x230)]&&canonical(_0x432c2f)!==canonical(_0x234acb[_0x2cfc79(0x21f)]))return _0x403e46(_0x234acb,'Import\x20generated\x20ID\x20conflict.');const _0x295f9c=new Set(_0x563cae[_0x2cfc79(0x20a)]['filter'](_0x8d7103=>_0x8d7103!==_0x234acb)[_0x2cfc79(0x1ed)](_0x2533e3=>_0x2533e3[_0x2cfc79(0x21f)]));if(_0x432c2f[_0x2cfc79(0x1f3)](_0x6d2d65=>_0x295f9c[_0x2cfc79(0x218)](_0x6d2d65)))return _0x403e46(_0x234acb,_0x2cfc79(0x1f8));for(let _0x3fc5fb=0x0;_0x3fc5fb<_0xc3ad98[_0x2cfc79(0x230)];_0x3fc5fb++){const _0x2590bb=_0x2bc6e0[_0x2cfc79(0x222)][_0x234acb[_0x2cfc79(0x216)][_0x3fc5fb]][_0x2cfc79(0x208)];if(Object[_0x2cfc79(0x1e5)](_0x2590bb)['some'](_0x3b1105=>!sameImportValue(_0x2590bb[_0x3b1105],_0xc3ad98[_0x3fc5fb][_0x3b1105],_0x2bc6e0[_0x2cfc79(0x1fe)]?.[_0x2cfc79(0x226)](_0x3b1105)&&!_0x2bc6e0[_0x2cfc79(0x1e9)]?.['includes'](_0x3b1105))))return _0x403e46(_0x234acb,'Import\x20content\x20conflict\x20at\x20Excel\x20row\x20'+_0x2bc6e0['rows'][_0x234acb['rowIndexes'][_0x3fc5fb]][_0x2cfc79(0x1e3)]+'.');}return _0x234acb[_0x2cfc79(0x21f)]=_0x432c2f,_0x234acb[_0x2cfc79(0x1fc)]='succeeded',await saveImportJson(_0x1f7160[_0x2cfc79(0x215)],_0x563cae),!![];};if(_0x563cae[_0x46c8c3(0x20a)][_0x46c8c3(0x1f3)](_0x1bb55e=>_0x1bb55e[_0x46c8c3(0x1fc)]==='conflict'&&!(_0x1f7160['resume']&&_0x1f7160['reconcileImageConflicts']&&_0x2bc6e0[_0x46c8c3(0x1fe)]?.[_0x46c8c3(0x230)]&&_0x1bb55e[_0x46c8c3(0x21f)][_0x46c8c3(0x230)]===_0x1bb55e['rowIndexes'][_0x46c8c3(0x230)])))throw Error(_0x46c8c3(0x1fb));if(_0x1f7160['resume']){for(const _0x21be66 of _0x563cae[_0x46c8c3(0x20a)])await _0x552a4c(_0x21be66);}for(const _0x130e46 of _0x563cae['batches']){if(_0x130e46['status']===_0x46c8c3(0x228))continue;if(!_0x1f7160[_0x46c8c3(0x1f0)])await _0x552a4c(_0x130e46);_0x130e46['status']=_0x46c8c3(0x1e8),await saveImportJson(_0x1f7160[_0x46c8c3(0x215)],_0x563cae),_0x18169f++;const _0x1b3720=_0x130e46['rowIndexes'][_0x46c8c3(0x20d)](_0x1b3800=>_0x2bc6e0[_0x46c8c3(0x222)][_0x1b3800][_0x46c8c3(0x208)]),_0x5ab630=Date[_0x46c8c3(0x212)](),_0x4c63af={'batch':_0x18169f,'rowStart':_0x2bc6e0['rows'][_0x130e46[_0x46c8c3(0x216)][0x0]][_0x46c8c3(0x1e3)],'rowEnd':_0x2bc6e0[_0x46c8c3(0x222)][_0x130e46['rowIndexes']['at'](-0x1)]['rowNumber'],'count':_0x1b3720[_0x46c8c3(0x230)],'bytes':_0x1bbfb9(_0x130e46[_0x46c8c3(0x216)],_0x130e46['taskId']),'elapsedMs':0x0,'status':'unknown'};_0x48741f[_0x46c8c3(0x203)](_0x4c63af);try{const _0x27bef8=await _0x2a420d[_0x46c8c3(0x22c)](_0x1b3720,_0x130e46[_0x46c8c3(0x20c)]);if(!_0x27bef8||_0x27bef8[_0x46c8c3(0x1ee)]!==_0x1b3720[_0x46c8c3(0x230)]||!Array[_0x46c8c3(0x209)](_0x27bef8['ids'])||_0x27bef8['ids'][_0x46c8c3(0x230)]!==_0x1b3720[_0x46c8c3(0x230)]||_0x27bef8['ids'][_0x46c8c3(0x1f3)](_0x81736b=>!validId(_0x81736b))||new Set(_0x27bef8[_0x46c8c3(0x21f)])[_0x46c8c3(0x219)]!==_0x27bef8[_0x46c8c3(0x21f)]['length'])throw Error(_0x46c8c3(0x201));_0x130e46[_0x46c8c3(0x21f)]=_0x27bef8[_0x46c8c3(0x21f)],await saveImportJson(_0x1f7160[_0x46c8c3(0x215)],_0x563cae);if(!await _0x552a4c(_0x130e46))throw Error(_0x46c8c3(0x224));}catch(_0x50ee61){if(_0x130e46['status']==='conflict')throw _0x50ee61;try{await _0x552a4c(_0x130e46);}catch(_0x2cf4a5){if(_0x130e46['status']==='conflict')throw _0x2cf4a5;}if(_0x130e46[_0x46c8c3(0x1fc)]!==_0x46c8c3(0x228))throw Error(_0x46c8c3(0x234));}finally{_0x4c63af['elapsedMs']=Date[_0x46c8c3(0x212)]()-_0x5ab630,_0x4c63af[_0x46c8c3(0x1fc)]=_0x130e46[_0x46c8c3(0x1fc)]==='succeeded'?_0x46c8c3(0x228):_0x130e46[_0x46c8c3(0x1fc)]==='conflict'?_0x46c8c3(0x1ef):_0x46c8c3(0x207);}}const _0x328e2a={'status':_0x46c8c3(0x223),..._0x4cd132()};return await saveImportJson(_0x1f7160[_0x46c8c3(0x1e1)],_0x328e2a),_0x328e2a;}catch(_0x37f558){if(_0x26e668)await saveImportJson(_0x1f7160[_0x46c8c3(0x1e1)],{'status':_0x46c8c3(0x21c),..._0x4cd132(),'message':_0x37f558['message']});throw _0x37f558;}finally{await _0x1cb2ee();}}
@@ -1 +1 @@
1
- const a139_0xc99906=a139_0x5934;(function(_0x501619,_0x1caece){const _0x2667b7=a139_0x5934,_0x5ed9ee=_0x501619();while(!![]){try{const _0x34c978=-parseInt(_0x2667b7(0x11b))/0x1*(parseInt(_0x2667b7(0x156))/0x2)+parseInt(_0x2667b7(0xf8))/0x3+parseInt(_0x2667b7(0xf7))/0x4+-parseInt(_0x2667b7(0xfe))/0x5+-parseInt(_0x2667b7(0xc7))/0x6+-parseInt(_0x2667b7(0xb7))/0x7*(parseInt(_0x2667b7(0xa1))/0x8)+parseInt(_0x2667b7(0x105))/0x9;if(_0x34c978===_0x1caece)break;else _0x5ed9ee['push'](_0x5ed9ee['shift']());}catch(_0x657327){_0x5ed9ee['push'](_0x5ed9ee['shift']());}}}(a139_0x47a6,0x3bf58));function a139_0x5934(_0x5aa0f2,_0x2670df){_0x5aa0f2=_0x5aa0f2-0x8f;const _0x47a610=a139_0x47a6();let _0x593434=_0x47a610[_0x5aa0f2];return _0x593434;}import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a139_0x380880 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';function a139_0x47a6(){const _0x3b4384=['update','sha256','fileName','Invalid\x20ZIP\x20central\x20directory\x20layout.','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','compressedSize','28VcQHmT','creatorName','text','handleUTF8','some','entry','create','integer','Only\x20.xlsx\x20files\x20are\x20supported.','hidden','Workbook','model','isInteger','warnings','date','Invalid\x20XLSX\x20archive.','2383716NZySCj','Invalid\x20worksheet\x20hyperlink\x20reference.','Invalid\x20worksheet\x20XML:\x20','properties','parseInt','Expected\x20a\x20text\x20cell.','Unsupported\x20field\x20type:\x20','serial_number','utf8decode','test','write','Worksheet\x20merge\x20work\x20exceeds\x20100000.','autoIncrement','clear','entryCount','boolean','.xlsx','directory','end','split','digest','getRow','Invalid\x20worksheet\x20nested\x20row.','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','Invalid\x20XLSX\x20entry.','top','exceljs/lib/utils/col-cache.js','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','rows','doType','load','name','MAX_SAFE_INTEGER','number','fileComment','extraFieldRaw','Expected\x20a\x20boolean\x20cell.','emptyRows','left','creatorId','parseOpen','min','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','xlsx','extraFields','get','mergeCell','before','812128ccBxgZ','1050390olOnQd','has','processAttributes','Invalid\x20worksheet\x20column\x20range.','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','dataValidations','1202955Yrairi','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','size','decodeEx','readExtraFields','close','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','5003271zfQBfm','datetime','./reader/readerFor','readUInt32LE','sharedFormula','hyperlink','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','relativeOffsetOfLocalHeader','localeCompare','slice','file','Worksheet\x20coordinate\x20exceeds\x20','[Content_Types].xml','isSafeInteger','stringify','\x20columns.','dataType','bitFlag','required','isFile','Expected\x20an\x20Excel\x20date\x20cell.','columnCount','4sDomyX','_xlnm.Print_Titles','abs','Required\x20field\x20is\x20not\x20mapped:\x20','byteLength','uncompressedSize','add','headerRow','map','fromBuffer','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','fileCommentRaw','openReadStream','startsWith','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Dataset\x20field\x20metadata\x20is\x20missing.','readBigUInt64LE','filter','definedName','col','dir','source','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','Merged\x20cells\x20are\x20not\x20supported.','fileNameStr','updateTime','right','code','data','isBuffer','tenantCode','readEntry','error','worksheets','readUInt16LE','Duplicate\x20dataset\x20field\x20codes.','fields','Unknown\x20or\x20generated\x20mapping\x20field:\x20','merges','Invalid\x20worksheet\x20XML.','getTime','pop','decimal','fileNameRaw','readEntryCursor','Unknown\x20Excel\x20header:\x20','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','ref','parseClose','message','./utils','textarea','find','materialized','Invalid\x20defined\x20name\x20coordinate.','every','Invalid\x20ZIP\x20local\x20file\x20header.','rowCount','./utf8','102002IGzgyQ','push','extname','appCode','Duplicate\x20mapping\x20target:\x20','closetag','length','Worksheet\x20exceeds\x20','Cell\x20exceeds\x2064\x20KB.','ranges','attributes','batchSize','Worksheet\x20exceeds\x2016384\x20columns.','isFinite','trim','eachCell','Non-canonical\x20worksheet\x20ZIP\x20entry.','sourceType','externalFileAttributes','object','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','_xlnm.Print_Area','Invalid\x20worksheet\x20coordinate.','modifierName','utf8','equals','max','hex','Duplicate\x20workbook\x20ZIP\x20entry.','modifierId','formula','result','getCell','includes','toLowerCase','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','generalPurposeBitFlag','cells','sort','versionMadeBy','address','43216SpGtcs','jszip','string','errors','row','xl/workbook.xml','bottom','set','isArray','generated','type','destroy','reference','value','from','resolve'];a139_0x47a6=function(){return _0x3b4384;};return a139_0x47a6();}import a139_0x585fe8 from'exceljs';import a139_0x1ebfc7 from'yauzl';const MAX_FILE=0x14*0x400*0x400,MAX_EXPANDED=0x64*0x400*0x400,MAX_ROWS=0x186a0,MAX_COLUMNS=0x100,MAX_XML_ROWS=0x100000,MAX_XML_COLUMNS=0x4000,MAX_CELL=0x40*0x400,RESERVED=new Set(['id',a139_0xc99906(0x139),a139_0xc99906(0x159),'datasetId',a139_0xc99906(0xee),a139_0xc99906(0xb8),a139_0xc99906(0x95),a139_0xc99906(0x8f),'createTime',a139_0xc99906(0x134),'deleted']),TYPES=new Set(['string',a139_0xc99906(0xb9),a139_0xc99906(0x14e),a139_0xc99906(0xe8),'decimal','integer',a139_0xc99906(0xd6),'date',a139_0xc99906(0x106)]),hash=_0x7c41b9=>createHash(a139_0xc99906(0xb2))[a139_0xc99906(0xb1)](_0x7c41b9)[a139_0xc99906(0xdb)](a139_0xc99906(0x93)),require=createRequire(import.meta.url),DefinedNameXform=require('exceljs/lib/xlsx/xform/book/defined-name-xform.js'),nameCoordinates=require(a139_0xc99906(0xe1)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a139_0xc99906(0xb0)]('exceljs')),zipRequire=createRequire(excelRequire[a139_0xc99906(0xb0)](a139_0xc99906(0xa2))),ZipEntry=zipRequire('./zipEntry'),zipReader=zipRequire(a139_0xc99906(0x107)),zipUtf8=zipRequire(a139_0xc99906(0x155)),zipPaths=zipRequire(a139_0xc99906(0x14d));function centralDirectoryEnd(_0x530ce1,_0x50bc3d){const _0x4def10=a139_0xc99906,_0x4682cc=()=>new Error(_0x4def10(0xb4)),_0xb1a0e0=_0x530ce1['lastIndexOf'](Buffer[_0x4def10(0xaf)]([0x50,0x4b,0x5,0x6]));if(_0xb1a0e0<0x0||_0xb1a0e0+0x16>_0x530ce1[_0x4def10(0x15c)]||_0xb1a0e0+0x16+_0x530ce1[_0x4def10(0x13d)](_0xb1a0e0+0x14)!==_0x530ce1[_0x4def10(0x15c)])throw _0x4682cc();let _0x32738b=_0x530ce1[_0x4def10(0x13d)](_0xb1a0e0+0xa),_0x11d671=_0x530ce1[_0x4def10(0x108)](_0xb1a0e0+0xc),_0x5e8669=_0x530ce1[_0x4def10(0x108)](_0xb1a0e0+0x10),_0x4e9bb5=_0xb1a0e0;const _0x17483c=_0xb1a0e0-0x14,_0x425de3=_0x17483c>=0x0&&_0x530ce1[_0x4def10(0x108)](_0x17483c)===0x7064b50,_0x403111=[0x4,0x6,0x8,0xa][_0x4def10(0xbb)](_0x27efe8=>_0x530ce1[_0x4def10(0x13d)](_0xb1a0e0+_0x27efe8)===0xffff)||_0x11d671===0xffffffff||_0x5e8669===0xffffffff;if(_0x425de3!==_0x403111)throw _0x4682cc();if(_0x425de3){if(_0x530ce1['lastIndexOf'](Buffer['from']([0x50,0x4b,0x6,0x7]))!==_0x17483c)throw _0x4682cc();const _0x9e23e3=_0x585a9e=>{const _0x4e07ee=_0x4def10,_0x4da066=Number(_0x530ce1[_0x4e07ee(0x12b)](_0x585a9e));if(!Number['isSafeInteger'](_0x4da066))throw _0x4682cc();return _0x4da066;};_0x4e9bb5=_0x9e23e3(_0x17483c+0x8);if(_0x530ce1['readUInt32LE'](_0x17483c+0x4)!==0x0||_0x530ce1[_0x4def10(0x108)](_0x17483c+0x10)!==0x1||_0x4e9bb5>_0x17483c-0x38||_0x530ce1[_0x4def10(0x108)](_0x4e9bb5)!==0x6064b50||_0x9e23e3(_0x4e9bb5+0x4)!==0x2c||_0x4e9bb5+0x38!==_0x17483c||_0x530ce1[_0x4def10(0x108)](_0x4e9bb5+0x10)!==0x0||_0x530ce1[_0x4def10(0x108)](_0x4e9bb5+0x14)!==0x0)throw _0x4682cc();_0x32738b=_0x9e23e3(_0x4e9bb5+0x20),_0x11d671=_0x9e23e3(_0x4e9bb5+0x28),_0x5e8669=_0x9e23e3(_0x4e9bb5+0x30);if(_0x9e23e3(_0x4e9bb5+0x18)!==_0x32738b)throw _0x4682cc();}else{if(_0x530ce1[_0x4def10(0x13d)](_0xb1a0e0+0x4)!==0x0||_0x530ce1['readUInt16LE'](_0xb1a0e0+0x6)!==0x0||_0x530ce1[_0x4def10(0x13d)](_0xb1a0e0+0x8)!==_0x32738b)throw _0x4682cc();}const _0x450562=_0x50bc3d[_0x4def10(0x147)];if(_0x5e8669!==_0x450562||_0x32738b!==_0x50bc3d[_0x4def10(0xd5)]||_0x5e8669+_0x11d671!==_0x4e9bb5)throw _0x4682cc();return _0x4e9bb5;}function consumerEntryName(_0x1ab33f,_0x750883){const _0x3a1056=a139_0xc99906;if(_0x750883[_0x3a1056(0xf3)][_0x3a1056(0x12c)](_0xd304ba=>_0xd304ba['id']===0x1)['length']>0x1)throw new Error(_0x3a1056(0xff));const _0x51fbef=_0x750883,_0x181993=_0x750883[_0x3a1056(0x10c)];if(!Buffer[_0x3a1056(0x138)](_0x51fbef[_0x3a1056(0x146)])||!Buffer[_0x3a1056(0x138)](_0x51fbef['extraFieldRaw'])||!Buffer[_0x3a1056(0x138)](_0x51fbef[_0x3a1056(0x126)])||!Number[_0x3a1056(0x112)](_0x181993)||_0x181993<0x0||_0x181993>_0x1ab33f['length']-0x1e||_0x1ab33f[_0x3a1056(0x108)](_0x181993)!==0x4034b50)throw new Error(_0x3a1056(0x153));const _0x3cff5b=_0x181993+0x1e+_0x1ab33f[_0x3a1056(0x13d)](_0x181993+0x1a),_0x4a5221=_0x3cff5b+_0x1ab33f[_0x3a1056(0x13d)](_0x181993+0x1c)+_0x750883[_0x3a1056(0xb6)];if(!Number['isSafeInteger'](_0x4a5221)||_0x4a5221>_0x1ab33f[_0x3a1056(0x15c)])throw new Error(_0x3a1056(0x153));if(_0x3cff5b>_0x1ab33f[_0x3a1056(0x15c)]||!_0x1ab33f['subarray'](_0x181993+0x1e,_0x3cff5b)[_0x3a1056(0x91)](_0x51fbef[_0x3a1056(0x146)]))throw new Error(_0x3a1056(0xb5));const _0xdf450b=new ZipEntry({},{'decodeFileName':zipUtf8[_0x3a1056(0xcf)]});_0xdf450b[_0x3a1056(0x116)]=_0x750883[_0x3a1056(0x9c)],_0xdf450b[_0x3a1056(0xb3)]=_0x51fbef[_0x3a1056(0x146)],_0xdf450b[_0x3a1056(0xe9)]=_0x51fbef[_0x3a1056(0x126)],_0xdf450b['extraFieldsLength']=_0x51fbef['extraFieldRaw'][_0x3a1056(0x15c)],_0xdf450b[_0x3a1056(0x102)](zipReader(_0x51fbef[_0x3a1056(0xea)])),_0xdf450b[_0x3a1056(0xba)](),_0xdf450b[_0x3a1056(0x9f)]=_0x750883[_0x3a1056(0x9f)],_0xdf450b[_0x3a1056(0x168)]=_0x750883[_0x3a1056(0x168)],_0xdf450b[_0x3a1056(0xfa)]();const _0x4e7099=_0xdf450b[_0x3a1056(0x12f)]||Boolean((_0xdf450b['unixPermissions']??0x0)&0x4000),_0x557380=zipPaths[_0x3a1056(0xb0)](_0xdf450b[_0x3a1056(0x133)]),_0x10fe5e=_0x557380[_0x3a1056(0x128)]('/')?_0x557380[_0x3a1056(0x10e)](0x1):_0x557380;return{'name':_0x10fe5e,'original':_0xdf450b[_0x3a1056(0x133)],'directory':_0x4e7099};}export function normalizeImportFields(_0x427440){const _0x3ff4a3=a139_0xc99906;if(!_0x427440||(_0x427440[_0x3ff4a3(0x130)]??_0x427440['dataset']?.[_0x3ff4a3(0x167)])!=='METADATA')throw new Error('Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.');const _0x1a15a3=Array[_0x3ff4a3(0xa9)](_0x427440[_0x3ff4a3(0x13f)]),_0x1c3610=_0x1a15a3?_0x427440[_0x3ff4a3(0x13f)]:_0x427440[_0x3ff4a3(0xca)];if(!Array[_0x3ff4a3(0xa9)](_0x1c3610)||_0x1c3610[_0x3ff4a3(0x15c)]===0x0)throw new Error(_0x3ff4a3(0x12a));const _0x52e7f7=[],_0x4d4f1f=new Set();for(const _0x531bb3 of _0x1c3610){if(_0x531bb3['deleted']===!![])continue;let _0x355c48=_0x531bb3['extend']??{};if(!_0x1a15a3&&typeof _0x355c48===_0x3ff4a3(0xa3)){try{_0x355c48=JSON['parse'](_0x355c48);}catch{throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}if(!_0x355c48||typeof _0x355c48!==_0x3ff4a3(0x169)||Array[_0x3ff4a3(0xa9)](_0x355c48))throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}const _0x520e26=_0x1a15a3?_0x531bb3['name']:_0x531bb3[_0x3ff4a3(0x136)],_0x13ea4a=_0x1a15a3?_0x531bb3[_0x3ff4a3(0xe4)]:_0x531bb3[_0x3ff4a3(0xab)]??_0x531bb3[_0x3ff4a3(0x115)];if(typeof _0x520e26!=='string'||!_0x520e26||typeof _0x13ea4a!==_0x3ff4a3(0xa3)||_0x4d4f1f[_0x3ff4a3(0xf9)](_0x520e26))throw new Error('Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.');if(_0x13ea4a['toLowerCase']()==='serial_number')throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');_0x4d4f1f['add'](_0x520e26);const _0x2cf1c1=_0x1a15a3?_0x531bb3:_0x355c48,_0x4d13b2={'code':_0x520e26,'type':_0x13ea4a,'required':_0x2cf1c1[_0x3ff4a3(0x117)]===!![]};if(RESERVED[_0x3ff4a3(0xf9)](_0x520e26)||_0x2cf1c1[_0x3ff4a3(0xaa)]===!![]||_0x2cf1c1[_0x3ff4a3(0xd3)]===!![])_0x4d13b2[_0x3ff4a3(0xaa)]=!![];_0x52e7f7[_0x3ff4a3(0x157)](_0x4d13b2);}return _0x52e7f7;}async function checkArchive(_0x5c5906){await new Promise((_0xb16ae3,_0x67b2c2)=>{const _0x5a7ce7=a139_0x5934;a139_0x1ebfc7[_0x5a7ce7(0x124)](_0x5c5906,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x34eca2,_0x4ec796)=>{const _0x3f28dc=_0x5a7ce7;if(_0x34eca2||!_0x4ec796){_0x67b2c2(_0x34eca2??new Error(_0x3f28dc(0xc6)));return;}let _0x255132;try{_0x255132=centralDirectoryEnd(_0x5c5906,_0x4ec796);}catch(_0x21020e){_0x4ec796[_0x3f28dc(0x103)](),_0x67b2c2(_0x21020e);return;}let _0xdc160d=0x0,_0x113e0d=0x0,_0x8bef09=0x0,_0x3723a0=0x0,_0x53512d=0x0,_0x439b45=0x0,_0x35b55a=0x0,_0x5beb60=![],_0x1a29e8;const _0x1dd0a4=new Set(),_0x324ede=_0x32c89a=>{const _0x2550fa=_0x3f28dc;if(_0x5beb60)return;_0x5beb60=!![],_0x1a29e8?.['destroy'](),_0x4ec796[_0x2550fa(0x103)](),_0x67b2c2(_0x32c89a);},_0x52e879=(_0xe0e456,_0x23d21e)=>{const _0x4e8a6e=_0x3f28dc;if(!_0xe0e456||!/^\d+$/[_0x4e8a6e(0xd0)](_0xe0e456))throw new Error(_0x4e8a6e(0x16c));const _0x160649=Number(_0xe0e456);if(!Number['isSafeInteger'](_0x160649)||_0x160649<0x1||_0x160649>_0x23d21e)throw new Error(_0x4e8a6e(0x110)+_0x23d21e+'.');return _0x160649;},_0x436b72=(_0x450d8a,_0xd58df4=MAX_XML_COLUMNS)=>{const _0x53e6c4=_0x3f28dc,_0x949d2a=/^\$?([A-Z]{1,3})\$?(\d+)$/['exec'](_0x450d8a);if(!_0x949d2a)throw new Error('Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.');let _0x24ff2f=0x0;for(const _0x3c3347 of _0x949d2a[0x1])_0x24ff2f=_0x24ff2f*0x1a+_0x3c3347['charCodeAt'](0x0)-0x40;if(_0x24ff2f>_0xd58df4)throw new Error(_0x53e6c4(0x15d)+_0xd58df4+_0x53e6c4(0x114));return{'row':_0x52e879(_0x949d2a[0x2],MAX_XML_ROWS),'col':_0x24ff2f};},_0x1beb20=_0x1375bb=>{const _0x24a66b=_0x3f28dc;if(_0x1375bb['name']===_0x24a66b(0x16b)||_0x1375bb['name']===_0x24a66b(0x11c))return;for(const _0x538c0c of _0x1375bb[_0x24a66b(0x15f)]){if(!ABSOLUTE_NAME_RANGE[_0x24a66b(0xd0)](_0x538c0c[_0x24a66b(0xda)]('!')[_0x24a66b(0x144)]()||''))continue;const _0x53603a=nameCoordinates[_0x24a66b(0x101)](_0x538c0c),_0xe92282=_0x24a66b(0xe0)in _0x53603a,_0x2d2bee=_0xe92282?[_0x53603a['top'],_0x53603a[_0x24a66b(0xa7)]]:[_0x53603a[_0x24a66b(0xa5)]],_0x289477=_0xe92282?[_0x53603a[_0x24a66b(0xed)],_0x53603a[_0x24a66b(0x135)]]:[_0x53603a[_0x24a66b(0x12e)]],_0x4f75a8=(_0x352a1a,_0x351623)=>Number[_0x24a66b(0x112)](_0x352a1a)&&_0x352a1a>=0x1&&_0x352a1a<=_0x351623;if(!_0x2d2bee[_0x24a66b(0x152)](_0xef9bd2=>_0x4f75a8(_0xef9bd2,MAX_XML_ROWS))||!_0x289477[_0x24a66b(0x152)](_0x153bb9=>_0x4f75a8(_0x153bb9,MAX_XML_COLUMNS)))throw new Error(_0x24a66b(0x151));_0x35b55a+=_0xe92282?(_0x53603a[_0x24a66b(0xa7)]-_0x53603a[_0x24a66b(0xe0)]+0x1)*(_0x53603a[_0x24a66b(0x135)]-_0x53603a['left']+0x1):0x1;if(_0x35b55a>MAX_ROWS)throw new Error('Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.');}};_0x4ec796['on']('error',_0x324ede),_0x4ec796['on'](_0x3f28dc(0xbc),_0x452d9a=>{const _0x156722=_0x3f28dc;if(_0x5beb60)return;if(++_0x8bef09>0x2710||(_0xdc160d+=_0x452d9a[_0x156722(0x120)])>MAX_EXPANDED){_0x324ede(new Error(_0x156722(0xf1)));return;}let _0x3699a3;try{_0x3699a3=consumerEntryName(_0x5c5906,_0x452d9a);}catch(_0x59d8ca){_0x324ede(_0x59d8ca);return;}if(_0x3699a3[_0x156722(0xd8)]){_0x4ec796[_0x156722(0x13a)]();return;}const _0x2b8d76=_0x3699a3['name'];if(_0x2b8d76!==_0x3699a3['original']&&(_0x2b8d76===_0x156722(0xa6)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x156722(0xd0)](_0x2b8d76))){_0x324ede(new Error(_0x156722(0x149)));return;}const _0x20368a=_0x2b8d76===_0x156722(0xa6);if(_0x20368a&&_0x1dd0a4[_0x156722(0xf9)](_0x2b8d76)){_0x324ede(new Error(_0x156722(0x94)));return;}_0x1dd0a4[_0x156722(0x121)](_0x2b8d76);const _0x26f366=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x156722(0xd0)](_0x2b8d76);if(_0x26f366&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0x156722(0xd0)](_0x2b8d76)){_0x324ede(new Error(_0x156722(0x166)));return;}_0x4ec796[_0x156722(0x127)](_0x452d9a,(_0x1137ae,_0x4e84c5)=>{const _0x5f51a1=_0x156722;if(_0x5beb60){_0x4e84c5?.[_0x5f51a1(0xac)]();return;}if(_0x1137ae||!_0x4e84c5){_0x324ede(_0x1137ae??new Error(_0x5f51a1(0xdf)));return;}_0x1a29e8=_0x4e84c5;const _0x5bf644=_0x26f366||_0x20368a?new StringDecoder(_0x5f51a1(0x90)):undefined,_0x4c3db4=_0x26f366||_0x20368a?new SaxesParser({'xmlns':![]}):undefined;let _0xf78f7c,_0xdfac7b=0x0,_0x2ed84d=0x0,_0x52a21f,_0x2622fd,_0x2267bc=![],_0x3b2317=![],_0x2fc5c7,_0x2cefc1,_0x58db37,_0x1f4a95=![];const _0x1f935e=[],_0x923e22=new Set();let _0x1fef77;const _0x1116b0=(_0x43708,_0x26319d=0x0)=>{const _0x5f037d=_0x5f51a1;_0x53512d+=_0x26319d+Math[_0x5f037d(0x92)](0x0,_0x43708-_0x2ed84d),_0x2ed84d=Math[_0x5f037d(0x92)](_0x2ed84d,_0x43708);if(_0x53512d>MAX_ROWS)throw new Error('Worksheet\x20column\x20objects\x20exceed\x20100000.');};_0x4c3db4?.['on']('opentag',_0x3ea369=>{const _0x104f1c=_0x5f51a1;if(_0x20368a){if(!_0xf78f7c&&_0x3ea369[_0x104f1c(0xe6)]===_0x104f1c(0x12d))_0xf78f7c=new DefinedNameXform();_0xf78f7c?.[_0x104f1c(0xef)](_0x3ea369);return;}if(_0x3ea369['name']===_0x104f1c(0xa5)){if(_0x3b2317)throw new Error(_0x104f1c(0xdd));_0x52e879(_0x3ea369[_0x104f1c(0x160)]['r'],MAX_XML_ROWS),_0x52a21f=undefined,_0x58db37=undefined,_0x1f4a95=![];}else{if(_0x3ea369['name']==='c'){if(_0x3b2317)throw new Error('Invalid\x20worksheet\x20nested\x20cell.');_0x3b2317=!![],_0x2267bc=Boolean(Number[_0x104f1c(0xcb)](_0x3ea369[_0x104f1c(0x160)]['s']??'',0xa)),_0x1fef77=undefined,_0x2fc5c7=_0x3ea369[_0x104f1c(0x160)]['r']||undefined,_0x2cefc1=_0x2fc5c7?_0x436b72(_0x2fc5c7):undefined;if(_0x2cefc1)_0x2622fd=_0x2cefc1;else _0x2622fd=_0x52a21f?{'row':_0x52a21f[_0x104f1c(0xa5)],'col':_0x52a21f[_0x104f1c(0x12e)]+0x1}:undefined;}else{if(_0x3b2317&&['f','v','t'][_0x104f1c(0x99)](_0x3ea369['name'])){_0x1fef77=_0x3ea369[_0x104f1c(0xe6)];if(_0x3ea369['name']==='f'&&_0x3ea369[_0x104f1c(0x160)]['t'])_0x2267bc=!![];}else{if(_0x3b2317&&_0x3ea369[_0x104f1c(0xe6)]==='r')_0x2267bc=!![];else{if(_0x3ea369[_0x104f1c(0xe6)]===_0x104f1c(0x10a)){const _0x3a94c2=_0x3ea369[_0x104f1c(0x160)][_0x104f1c(0x14a)];if(!_0x3a94c2)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x485f60=_0x3a94c2[_0x104f1c(0xda)](':');if(_0x485f60[_0x104f1c(0x15c)]>0x2)throw new Error(_0x104f1c(0xc8));const _0x1a0a29=_0x436b72(_0x485f60[0x0]),_0x40ac03=_0x436b72(_0x485f60[0x1]??_0x485f60[0x0]);_0x923e22['add'](_0x3a94c2),_0x1116b0(Math[_0x104f1c(0x92)](_0x1a0a29[_0x104f1c(0x12e)],_0x40ac03['col']),0x1);}else{if(_0x3ea369['name']===_0x104f1c(0x12e)){const _0x359384=_0x52e879(_0x3ea369['attributes'][_0x104f1c(0xf0)],0x4000),_0x199f16=_0x52e879(_0x3ea369[_0x104f1c(0x160)][_0x104f1c(0x92)],0x4000);if(_0x359384>_0x199f16)throw new Error(_0x104f1c(0xfb));_0x1116b0(_0x199f16,0x1);}else{if(_0x3ea369[_0x104f1c(0xe6)]===_0x104f1c(0xf5)){const _0x41cce9=_0x3ea369[_0x104f1c(0x160)][_0x104f1c(0x14a)];if(!_0x41cce9)throw new Error('Invalid\x20worksheet\x20merge\x20reference.');const _0x161df8=_0x41cce9[_0x104f1c(0xda)](':');if(_0x161df8[_0x104f1c(0x15c)]>0x2)throw new Error('Invalid\x20worksheet\x20merge\x20reference.');const _0x58335b=_0x436b72(_0x161df8[0x0]),_0xdf738b=_0x436b72(_0x161df8[0x1]??_0x161df8[0x0]);_0x1116b0(Math[_0x104f1c(0x92)](_0x58335b[_0x104f1c(0x12e)],_0xdf738b[_0x104f1c(0x12e)]));const _0x52ff92=(Math[_0x104f1c(0x11d)](_0xdf738b[_0x104f1c(0xa5)]-_0x58335b['row'])+0x1)*(Math['abs'](_0xdf738b[_0x104f1c(0x12e)]-_0x58335b[_0x104f1c(0x12e)])+0x1);_0x3723a0+=_0x52ff92+_0xdfac7b++;if(_0x3723a0>MAX_ROWS)throw new Error(_0x104f1c(0xd2));}}}}}}}}),_0x4c3db4?.['on'](_0x5f51a1(0xb9),_0x51413a=>{if(_0x20368a){_0xf78f7c?.['parseText'](_0x51413a);return;}if(_0x3b2317&&_0x1fef77&&_0x51413a)_0x2267bc=!![];}),_0x4c3db4?.['on'](_0x5f51a1(0x15b),_0x5bb735=>{const _0x5a0d89=_0x5f51a1;if(_0x20368a){_0xf78f7c&&!_0xf78f7c[_0x5a0d89(0x14b)]()&&(_0x1beb20(_0xf78f7c[_0x5a0d89(0xc2)]),_0xf78f7c=undefined);return;}if(_0x5bb735[_0x5a0d89(0xe6)]==='c'){!_0x2267bc&&_0x2fc5c7&&!_0x58db37&&(_0x58db37={'before':_0x52a21f,'cells':[]});if(_0x58db37){if(++_0x439b45>0xf4240)throw new Error(_0x5a0d89(0x9b));_0x58db37[_0x5a0d89(0x9d)][_0x5a0d89(0x157)]({'reference':_0x2fc5c7,'address':_0x2cefc1,'materialized':_0x2267bc});if(!_0x2fc5c7&&_0x2267bc)_0x1f4a95=!![];}if(_0x2267bc){if(!_0x58db37||_0x2fc5c7){if(!_0x2622fd)throw new Error(_0x5a0d89(0x125));if(_0x2622fd[_0x5a0d89(0x12e)]>MAX_XML_COLUMNS)throw new Error(_0x5a0d89(0x162));_0x1116b0(_0x2622fd[_0x5a0d89(0x12e)]);}_0x52a21f=_0x2622fd;}_0x3b2317=![],_0x2622fd=undefined,_0x2fc5c7=undefined,_0x2cefc1=undefined,_0x1fef77=undefined;}else{if(_0x5bb735['name']===_0x5a0d89(0xa5)){if(_0x58db37&&_0x1f4a95)_0x1f935e[_0x5a0d89(0x157)](_0x58db37);_0x58db37=undefined,_0x1f4a95=![];}else{if(_0x5bb735['name']===_0x1fef77)_0x1fef77=undefined;}}}),_0x4c3db4?.['on'](_0x5f51a1(0x13b),_0x4ff121=>{const _0x3304dd=_0x5f51a1;throw new Error(_0x3304dd(0xc9)+_0x4ff121[_0x3304dd(0x14c)]);}),_0x4e84c5['on']('error',_0x324ede),_0x4e84c5['on'](_0x5f51a1(0x137),_0x5b2471=>{const _0x30aed8=_0x5f51a1;if(_0x5beb60)return;_0x113e0d+=_0x5b2471[_0x30aed8(0x15c)];if(_0x113e0d>MAX_EXPANDED){_0x324ede(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}try{if(_0x4c3db4&&_0x5bf644)_0x4c3db4[_0x30aed8(0xd1)](_0x5bf644[_0x30aed8(0xd1)](_0x5b2471));}catch(_0x2a3cf2){_0x324ede(_0x2a3cf2 instanceof Error?_0x2a3cf2:new Error(_0x30aed8(0x142)));}}),_0x4e84c5['on'](_0x5f51a1(0xd9),()=>{const _0x5acdd3=_0x5f51a1;if(_0x5beb60)return;try{if(_0x4c3db4&&_0x5bf644)_0x4c3db4[_0x5acdd3(0xd1)](_0x5bf644[_0x5acdd3(0xd9)]())['close']();for(const _0x72c14e of _0x1f935e){let _0xdc117f=_0x72c14e[_0x5acdd3(0xf6)];for(const _0x44f347 of _0x72c14e['cells']){if(!_0x44f347[_0x5acdd3(0x150)]&&!(_0x44f347['reference']&&_0x923e22[_0x5acdd3(0xf9)](_0x44f347[_0x5acdd3(0xad)])))continue;const _0x3c9ba8=_0x44f347[_0x5acdd3(0xa0)]??(_0xdc117f?{'row':_0xdc117f[_0x5acdd3(0xa5)],'col':_0xdc117f[_0x5acdd3(0x12e)]+0x1}:undefined);if(!_0x3c9ba8)throw new Error(_0x5acdd3(0x125));if(_0x3c9ba8['col']>MAX_XML_COLUMNS)throw new Error(_0x5acdd3(0x162));_0x1116b0(_0x3c9ba8['col']),_0xdc117f=_0x3c9ba8;}}_0x1f935e['length']=0x0,_0x923e22[_0x5acdd3(0xd4)]();}catch(_0x3fbe82){_0x324ede(_0x3fbe82 instanceof Error?_0x3fbe82:new Error(_0x5acdd3(0x142)));return;}_0x1a29e8=undefined,_0x4ec796['readEntry']();});});}),_0x4ec796['on']('end',()=>{const _0x23bbfd=_0x3f28dc;if(_0x5beb60)return;if(_0x4ec796[_0x23bbfd(0x147)]!==_0x255132){_0x67b2c2(new Error(_0x23bbfd(0xfc)));return;}if(!_0x1dd0a4[_0x23bbfd(0xf9)](_0x23bbfd(0x111))||!_0x1dd0a4[_0x23bbfd(0xf9)]('xl/workbook.xml'))_0x67b2c2(new Error('File\x20is\x20not\x20an\x20XLSX\x20workbook.'));else _0xb16ae3();}),_0x4ec796[_0x3f28dc(0x13a)]();});});}function valueOf(_0x83f27b){const _0x1b4f3b=a139_0xc99906,_0x1c6044=_0x83f27b[_0x1b4f3b(0xae)];if(_0x1c6044&&typeof _0x1c6044===_0x1b4f3b(0x169)&&(_0x1b4f3b(0x96)in _0x1c6044||_0x1b4f3b(0x109)in _0x1c6044)){if(!(_0x1b4f3b(0x97)in _0x1c6044)||_0x1c6044['result']===undefined)throw new Error('Formula\x20has\x20no\x20cached\x20result.');return _0x1c6044[_0x1b4f3b(0x97)];}return _0x1c6044;}function convert(_0x2456fd,_0x40b1fd){const _0x1a27a5=a139_0xc99906;if(_0x2456fd===null||_0x2456fd===undefined||_0x2456fd===''){if(_0x40b1fd[_0x1a27a5(0x117)]&&!_0x40b1fd[_0x1a27a5(0xaa)])throw new Error('Required\x20value\x20is\x20missing.');return null;}if(typeof _0x2456fd===_0x1a27a5(0xa3)&&Buffer[_0x1a27a5(0x11f)](_0x2456fd,'utf8')>MAX_CELL)throw new Error(_0x1a27a5(0x15e));switch(_0x40b1fd['type'][_0x1a27a5(0x9a)]()){case _0x1a27a5(0xa3):case'text':case _0x1a27a5(0x14e):if(typeof _0x2456fd!==_0x1a27a5(0xa3))throw new Error(_0x1a27a5(0xcc));return _0x2456fd;case _0x1a27a5(0xe8):case _0x1a27a5(0x145):case _0x1a27a5(0xbe):if(typeof _0x2456fd!==_0x1a27a5(0xe8)||!Number[_0x1a27a5(0x163)](_0x2456fd)||Math[_0x1a27a5(0x11d)](_0x2456fd)>Number[_0x1a27a5(0xe7)]||_0x40b1fd[_0x1a27a5(0xab)][_0x1a27a5(0x9a)]()===_0x1a27a5(0xbe)&&!Number[_0x1a27a5(0xc3)](_0x2456fd))throw new Error(_0x1a27a5(0x104));return _0x2456fd;case _0x1a27a5(0xd6):if(typeof _0x2456fd!==_0x1a27a5(0xd6))throw new Error(_0x1a27a5(0xeb));return _0x2456fd;case _0x1a27a5(0xc5):case _0x1a27a5(0x106):if(!(_0x2456fd instanceof Date)||!Number['isFinite'](_0x2456fd[_0x1a27a5(0x143)]()))throw new Error(_0x1a27a5(0x119));return _0x2456fd['getTime']();default:throw new Error(_0x1a27a5(0xcd)+_0x40b1fd[_0x1a27a5(0xab)]+'.');}}export async function buildExcelManifest(_0x4364a5){const _0x2792bf=a139_0xc99906,_0x505da4=_0x4364a5[_0x2792bf(0x122)]??0x1;if(!Number[_0x2792bf(0xc3)](_0x505da4)||_0x505da4<0x1||_0x505da4>MAX_ROWS)throw new Error(_0x2792bf(0x131));if(_0x4364a5[_0x2792bf(0x161)]!==undefined&&(!Number[_0x2792bf(0xc3)](_0x4364a5[_0x2792bf(0x161)])||_0x4364a5[_0x2792bf(0x161)]<0x1||_0x4364a5['batchSize']>0x3e8))throw new Error(_0x2792bf(0xde));if(a139_0x380880[_0x2792bf(0x158)](_0x4364a5['file'])[_0x2792bf(0x9a)]()!==_0x2792bf(0xd7))throw new Error(_0x2792bf(0xbf));const _0x332245=await stat(_0x4364a5[_0x2792bf(0x10f)]);if(!_0x332245[_0x2792bf(0x118)]()||_0x332245[_0x2792bf(0x100)]>MAX_FILE)throw new Error(_0x2792bf(0xe2));const _0x3f63e7=await readFile(_0x4364a5[_0x2792bf(0x10f)]);if(_0x3f63e7[_0x2792bf(0x15c)]>MAX_FILE)throw new Error('XLSX\x20file\x20exceeds\x2020\x20MB.');await checkArchive(_0x3f63e7);const _0x32f9c5=new a139_0x585fe8[(_0x2792bf(0xc1))]();await _0x32f9c5[_0x2792bf(0xf2)][_0x2792bf(0xe5)](_0x3f63e7,{'ignoreNodes':[_0x2792bf(0xfd)]});const _0x4ed5b0=_0x4364a5['sheet'];let _0x5c0f0b;if(_0x4ed5b0===undefined)_0x5c0f0b=_0x32f9c5[_0x2792bf(0x13c)][0x0];else{if(typeof _0x4ed5b0===_0x2792bf(0xa3)&&_0x32f9c5[_0x2792bf(0x13c)][_0x2792bf(0xbb)](_0x2474cd=>_0x2474cd[_0x2792bf(0xe6)]===_0x4ed5b0))_0x5c0f0b=_0x32f9c5[_0x2792bf(0x13c)][_0x2792bf(0x14f)](_0x48ca11=>_0x48ca11[_0x2792bf(0xe6)]===_0x4ed5b0);else{if(typeof _0x4ed5b0===_0x2792bf(0xe8)||/^\d+$/[_0x2792bf(0xd0)](_0x4ed5b0)){const _0x4b7d7e=Number(_0x4ed5b0);if(!Number[_0x2792bf(0xc3)](_0x4b7d7e)||_0x4b7d7e<0x1)throw new Error(_0x2792bf(0x129));_0x5c0f0b=_0x32f9c5[_0x2792bf(0x13c)][_0x4b7d7e-0x1];}else _0x5c0f0b=_0x32f9c5[_0x2792bf(0x13c)][_0x2792bf(0x14f)](_0x40eaf3=>_0x40eaf3[_0x2792bf(0xe6)]===_0x4ed5b0);}}if(!_0x5c0f0b)throw new Error('Requested\x20worksheet\x20does\x20not\x20exist.');if(_0x5c0f0b[_0x2792bf(0x154)]>MAX_ROWS||_0x5c0f0b[_0x2792bf(0x11a)]>MAX_COLUMNS)throw new Error('Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.');if((_0x5c0f0b[_0x2792bf(0xc2)][_0x2792bf(0x141)]??[])['length'])throw new Error(_0x2792bf(0x132));const _0x3f0ecb=new Map();_0x5c0f0b[_0x2792bf(0xdc)](_0x505da4)[_0x2792bf(0x165)]((_0x27fd70,_0x5453a5)=>{const _0xa90a71=_0x2792bf,_0x554e4a=valueOf(_0x27fd70);if(typeof _0x554e4a!==_0xa90a71(0xa3)||!_0x554e4a[_0xa90a71(0x164)]()||Buffer[_0xa90a71(0x11f)](_0x554e4a)>MAX_CELL)throw new Error('Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.');if(_0x3f0ecb[_0xa90a71(0xf9)](_0x554e4a))throw new Error('Duplicate\x20header:\x20'+_0x554e4a+'.');_0x3f0ecb[_0xa90a71(0xa8)](_0x554e4a,_0x5453a5);});const _0x4eaf75=Object['entries'](_0x4364a5['mapping']);if(!_0x4eaf75[_0x2792bf(0x15c)])throw new Error(_0x2792bf(0x16a));const _0xa29674=new Map(_0x4364a5[_0x2792bf(0x13f)][_0x2792bf(0x123)](_0x212217=>[_0x212217['code'],_0x212217]));if(_0xa29674[_0x2792bf(0x100)]!==_0x4364a5['fields']['length'])throw new Error(_0x2792bf(0x13e));if(_0x4364a5[_0x2792bf(0x13f)]['some'](_0x8bce32=>_0x8bce32['type']['toLowerCase']()===_0x2792bf(0xce)))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');const _0x1679c3=new Set();for(const [_0x3e36b9,_0x3ed7ff]of _0x4eaf75){const _0x2b3ce4=_0xa29674[_0x2792bf(0xf4)](_0x3ed7ff);if(!_0x3f0ecb[_0x2792bf(0xf9)](_0x3e36b9))throw new Error(_0x2792bf(0x148)+_0x3e36b9+'.');if(!_0x2b3ce4||RESERVED[_0x2792bf(0xf9)](_0x3ed7ff)||_0x2b3ce4[_0x2792bf(0xaa)])throw new Error(_0x2792bf(0x140)+_0x3ed7ff+'.');if(_0x1679c3[_0x2792bf(0xf9)](_0x3ed7ff))throw new Error(_0x2792bf(0x15a)+_0x3ed7ff+'.');if(!TYPES[_0x2792bf(0xf9)](_0x2b3ce4[_0x2792bf(0xab)]['toLowerCase']()))throw new Error('Unsupported\x20field\x20type:\x20'+_0x2b3ce4[_0x2792bf(0xab)]+'.');_0x1679c3[_0x2792bf(0x121)](_0x3ed7ff);}for(const _0x3ae786 of _0x4364a5[_0x2792bf(0x13f)]){if(_0x3ae786[_0x2792bf(0x117)]&&!_0x3ae786[_0x2792bf(0xaa)]&&!RESERVED[_0x2792bf(0xf9)](_0x3ae786[_0x2792bf(0x136)])&&!_0x1679c3['has'](_0x3ae786['code']))throw new Error(_0x2792bf(0x11e)+_0x3ae786[_0x2792bf(0x136)]+'.');}const _0xf64100={'fileHash':hash(_0x3f63e7),'mappingHash':hash(JSON[_0x2792bf(0x113)]([..._0x4eaf75][_0x2792bf(0x9e)](([_0x39065d],[_0x9c5796])=>_0x39065d[_0x2792bf(0x10d)](_0x9c5796)))),'schemaHash':hash(JSON[_0x2792bf(0x113)]([..._0x4364a5[_0x2792bf(0x13f)]][_0x2792bf(0x9e)]((_0x3de391,_0x3e5f19)=>_0x3de391[_0x2792bf(0x136)][_0x2792bf(0x10d)](_0x3e5f19[_0x2792bf(0x136)])))),'sheet':_0x5c0f0b[_0x2792bf(0xe6)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]};let _0xb1222e=0x0;const _0x5bcddb=new Set(_0x4eaf75[_0x2792bf(0x123)](([_0xa9c5ac])=>_0x3f0ecb['get'](_0xa9c5ac)));for(let _0x5ad505=_0x505da4+0x1;_0x5ad505<=_0x5c0f0b[_0x2792bf(0x154)];_0x5ad505++){const _0x2d9be6=_0x5c0f0b[_0x2792bf(0xdc)](_0x5ad505);if(_0x2d9be6[_0x2792bf(0xc0)])_0xb1222e++;let _0x1703b2=![];_0x2d9be6[_0x2792bf(0x165)](_0x5f4b30=>{const _0x4bd674=_0x2792bf;if(_0x5f4b30[_0x4bd674(0xae)]!==null&&_0x5f4b30[_0x4bd674(0xae)]!==undefined&&_0x5f4b30['value']!=='')_0x1703b2=!![];});if(!_0x1703b2){_0xf64100[_0x2792bf(0xec)][_0x2792bf(0x157)](_0x5ad505);continue;}const _0x1f13cc=Object[_0x2792bf(0xbd)](null);_0x2d9be6[_0x2792bf(0x165)]((_0x80cb9c,_0x4c75cd)=>{const _0xc9bd6=_0x2792bf;if(_0x5bcddb[_0xc9bd6(0xf9)](_0x4c75cd))return;try{const _0x3f0675=valueOf(_0x80cb9c);if(typeof _0x3f0675===_0xc9bd6(0xa3)&&Buffer[_0xc9bd6(0x11f)](_0x3f0675,'utf8')>MAX_CELL)throw new Error(_0xc9bd6(0x15e));}catch(_0x3f2f5c){_0xf64100[_0xc9bd6(0xa4)][_0xc9bd6(0x157)]({'rowNumber':_0x5ad505,'field':_0x80cb9c[_0xc9bd6(0xa0)],'message':_0x3f2f5c[_0xc9bd6(0x14c)]});}});for(const [_0xad5d2f,_0x2bbfef]of _0x4eaf75){try{_0x1f13cc[_0x2bbfef]=convert(valueOf(_0x2d9be6[_0x2792bf(0x98)](_0x3f0ecb[_0x2792bf(0xf4)](_0xad5d2f))),_0xa29674[_0x2792bf(0xf4)](_0x2bbfef));}catch(_0x5592dd){_0xf64100[_0x2792bf(0xa4)]['push']({'rowNumber':_0x5ad505,'field':_0x2bbfef,'message':_0x5592dd[_0x2792bf(0x14c)]});}}_0xf64100[_0x2792bf(0xe3)][_0x2792bf(0x157)]({'rowNumber':_0x5ad505,'values':_0x1f13cc});}if(_0xb1222e)_0xf64100[_0x2792bf(0xc4)][_0x2792bf(0x157)](_0xb1222e+_0x2792bf(0x10b));return _0xf64100;}
1
+ const a139_0x3bb65c=a139_0x4786;(function(_0x3a7567,_0x7645d6){const _0x2a3629=a139_0x4786,_0x35185d=_0x3a7567();while(!![]){try{const _0x209333=-parseInt(_0x2a3629(0x259))/0x1+parseInt(_0x2a3629(0x24e))/0x2*(parseInt(_0x2a3629(0x25c))/0x3)+parseInt(_0x2a3629(0x1d7))/0x4+parseInt(_0x2a3629(0x1c0))/0x5+-parseInt(_0x2a3629(0x1ba))/0x6+parseInt(_0x2a3629(0x1ea))/0x7+-parseInt(_0x2a3629(0x1b9))/0x8;if(_0x209333===_0x7645d6)break;else _0x35185d['push'](_0x35185d['shift']());}catch(_0x2b7864){_0x35185d['push'](_0x35185d['shift']());}}}(a139_0x3568,0x72706));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a139_0x1f7e82 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a139_0x1bd256 from'exceljs';import a139_0x47b02f from'yauzl';import{resolveWorksheetImages}from'./image-ooxml.js';import{validateImageBytes}from'./image-bytes.js';const MAX_FILE=0x14*0x400*0x400,MAX_EXPANDED=0x64*0x400*0x400,MAX_ROWS=0x186a0,MAX_COLUMNS=0x100,MAX_XML_ROWS=0x100000,MAX_XML_COLUMNS=0x4000,MAX_CELL=0x40*0x400,RESERVED=new Set(['id',a139_0x3bb65c(0x1df),a139_0x3bb65c(0x1e9),a139_0x3bb65c(0x1ee),a139_0x3bb65c(0x288),a139_0x3bb65c(0x1e8),a139_0x3bb65c(0x232),a139_0x3bb65c(0x297),a139_0x3bb65c(0x20d),a139_0x3bb65c(0x264),a139_0x3bb65c(0x281)]),TYPES=new Set([a139_0x3bb65c(0x217),a139_0x3bb65c(0x1db),a139_0x3bb65c(0x22b),a139_0x3bb65c(0x270),a139_0x3bb65c(0x28b),a139_0x3bb65c(0x285),a139_0x3bb65c(0x22a),a139_0x3bb65c(0x241),a139_0x3bb65c(0x21d),a139_0x3bb65c(0x1d6),a139_0x3bb65c(0x211)]),isImageContainer=_0x55133b=>[a139_0x3bb65c(0x1d6),a139_0x3bb65c(0x211)][a139_0x3bb65c(0x274)](_0x55133b[a139_0x3bb65c(0x28c)]()),hash=_0x5e0d83=>createHash(a139_0x3bb65c(0x21e))[a139_0x3bb65c(0x26a)](_0x5e0d83)[a139_0x3bb65c(0x289)](a139_0x3bb65c(0x24f)),require=createRequire(import.meta.url),DefinedNameXform=require(a139_0x3bb65c(0x267)),nameCoordinates=require(a139_0x3bb65c(0x1c7)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a139_0x3bb65c(0x292)](a139_0x3bb65c(0x1d1))),zipRequire=createRequire(excelRequire['resolve'](a139_0x3bb65c(0x25a))),ZipEntry=zipRequire('./zipEntry'),zipReader=zipRequire(a139_0x3bb65c(0x1f9)),zipUtf8=zipRequire('./utf8'),zipPaths=zipRequire(a139_0x3bb65c(0x24d));function centralDirectoryEnd(_0xb4d9db,_0x1e0bd2){const _0x168380=a139_0x3bb65c,_0x1a83c1=()=>new Error(_0x168380(0x20c)),_0x35e321=_0xb4d9db['lastIndexOf'](Buffer[_0x168380(0x1d9)]([0x50,0x4b,0x5,0x6]));if(_0x35e321<0x0||_0x35e321+0x16>_0xb4d9db[_0x168380(0x27a)]||_0x35e321+0x16+_0xb4d9db[_0x168380(0x238)](_0x35e321+0x14)!==_0xb4d9db[_0x168380(0x27a)])throw _0x1a83c1();let _0x18e8e8=_0xb4d9db[_0x168380(0x238)](_0x35e321+0xa),_0x5537f4=_0xb4d9db[_0x168380(0x1f6)](_0x35e321+0xc),_0x120f1d=_0xb4d9db['readUInt32LE'](_0x35e321+0x10),_0x17ed14=_0x35e321;const _0xf02580=_0x35e321-0x14,_0x4f22e0=_0xf02580>=0x0&&_0xb4d9db['readUInt32LE'](_0xf02580)===0x7064b50,_0x46d584=[0x4,0x6,0x8,0xa][_0x168380(0x1fe)](_0x2e7aa6=>_0xb4d9db['readUInt16LE'](_0x35e321+_0x2e7aa6)===0xffff)||_0x5537f4===0xffffffff||_0x120f1d===0xffffffff;if(_0x4f22e0!==_0x46d584)throw _0x1a83c1();if(_0x4f22e0){if(_0xb4d9db[_0x168380(0x1d4)](Buffer[_0x168380(0x1d9)]([0x50,0x4b,0x6,0x7]))!==_0xf02580)throw _0x1a83c1();const _0x236a3e=_0x134cc3=>{const _0x1738ae=_0x168380,_0x3f6793=Number(_0xb4d9db['readBigUInt64LE'](_0x134cc3));if(!Number[_0x1738ae(0x1f7)](_0x3f6793))throw _0x1a83c1();return _0x3f6793;};_0x17ed14=_0x236a3e(_0xf02580+0x8);if(_0xb4d9db[_0x168380(0x1f6)](_0xf02580+0x4)!==0x0||_0xb4d9db[_0x168380(0x1f6)](_0xf02580+0x10)!==0x1||_0x17ed14>_0xf02580-0x38||_0xb4d9db['readUInt32LE'](_0x17ed14)!==0x6064b50||_0x236a3e(_0x17ed14+0x4)!==0x2c||_0x17ed14+0x38!==_0xf02580||_0xb4d9db[_0x168380(0x1f6)](_0x17ed14+0x10)!==0x0||_0xb4d9db[_0x168380(0x1f6)](_0x17ed14+0x14)!==0x0)throw _0x1a83c1();_0x18e8e8=_0x236a3e(_0x17ed14+0x20),_0x5537f4=_0x236a3e(_0x17ed14+0x28),_0x120f1d=_0x236a3e(_0x17ed14+0x30);if(_0x236a3e(_0x17ed14+0x18)!==_0x18e8e8)throw _0x1a83c1();}else{if(_0xb4d9db[_0x168380(0x238)](_0x35e321+0x4)!==0x0||_0xb4d9db[_0x168380(0x238)](_0x35e321+0x6)!==0x0||_0xb4d9db[_0x168380(0x238)](_0x35e321+0x8)!==_0x18e8e8)throw _0x1a83c1();}const _0x2c7eea=_0x1e0bd2[_0x168380(0x1d8)];if(_0x120f1d!==_0x2c7eea||_0x18e8e8!==_0x1e0bd2[_0x168380(0x251)]||_0x120f1d+_0x5537f4!==_0x17ed14)throw _0x1a83c1();return _0x17ed14;}function consumerEntryName(_0x346c13,_0x452fec){const _0x21bdb5=a139_0x3bb65c;if(_0x452fec[_0x21bdb5(0x1f5)]['filter'](_0x37667f=>_0x37667f['id']===0x1)[_0x21bdb5(0x27a)]>0x1)throw new Error('Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.');const _0x37288d=_0x452fec,_0x187ef3=_0x452fec['relativeOffsetOfLocalHeader'];if(!Buffer[_0x21bdb5(0x1ca)](_0x37288d[_0x21bdb5(0x20e)])||!Buffer[_0x21bdb5(0x1ca)](_0x37288d[_0x21bdb5(0x28e)])||!Buffer[_0x21bdb5(0x1ca)](_0x37288d['fileCommentRaw'])||!Number[_0x21bdb5(0x1f7)](_0x187ef3)||_0x187ef3<0x0||_0x187ef3>_0x346c13[_0x21bdb5(0x27a)]-0x1e||_0x346c13[_0x21bdb5(0x1f6)](_0x187ef3)!==0x4034b50)throw new Error(_0x21bdb5(0x20f));const _0x83e845=_0x187ef3+0x1e+_0x346c13[_0x21bdb5(0x238)](_0x187ef3+0x1a),_0x157ca3=_0x83e845+_0x346c13[_0x21bdb5(0x238)](_0x187ef3+0x1c)+_0x452fec[_0x21bdb5(0x1d2)];if(!Number[_0x21bdb5(0x1f7)](_0x157ca3)||_0x157ca3>_0x346c13['length'])throw new Error(_0x21bdb5(0x20f));if(_0x83e845>_0x346c13[_0x21bdb5(0x27a)]||!_0x346c13[_0x21bdb5(0x23a)](_0x187ef3+0x1e,_0x83e845)['equals'](_0x37288d['fileNameRaw']))throw new Error(_0x21bdb5(0x239));const _0x3dad48=new ZipEntry({},{'decodeFileName':zipUtf8['utf8decode']});_0x3dad48[_0x21bdb5(0x243)]=_0x452fec[_0x21bdb5(0x221)],_0x3dad48[_0x21bdb5(0x228)]=_0x37288d[_0x21bdb5(0x20e)],_0x3dad48['fileComment']=_0x37288d[_0x21bdb5(0x24c)],_0x3dad48['extraFieldsLength']=_0x37288d[_0x21bdb5(0x28e)][_0x21bdb5(0x27a)],_0x3dad48['readExtraFields'](zipReader(_0x37288d['extraFieldRaw'])),_0x3dad48[_0x21bdb5(0x20b)](),_0x3dad48['versionMadeBy']=_0x452fec[_0x21bdb5(0x218)],_0x3dad48[_0x21bdb5(0x1b7)]=_0x452fec[_0x21bdb5(0x1b7)],_0x3dad48[_0x21bdb5(0x273)]();const _0x1b1817=_0x3dad48[_0x21bdb5(0x26d)]||Boolean((_0x3dad48['unixPermissions']??0x0)&0x4000),_0x51d3ef=zipPaths[_0x21bdb5(0x292)](_0x3dad48[_0x21bdb5(0x23d)]),_0x4098c4=_0x51d3ef[_0x21bdb5(0x257)]('/')?_0x51d3ef[_0x21bdb5(0x1c6)](0x1):_0x51d3ef;return{'name':_0x4098c4,'original':_0x3dad48[_0x21bdb5(0x23d)],'directory':_0x1b1817};}export function normalizeImportFields(_0x48e102){const _0x2cb267=a139_0x3bb65c;if(!_0x48e102||(_0x48e102[_0x2cb267(0x1c3)]??_0x48e102['dataset']?.[_0x2cb267(0x23f)])!=='METADATA')throw new Error(_0x2cb267(0x201));const _0x266c76=Array[_0x2cb267(0x233)](_0x48e102[_0x2cb267(0x242)]),_0x21d716=_0x266c76?_0x48e102['fields']:_0x48e102['properties'];if(!Array[_0x2cb267(0x233)](_0x21d716)||_0x21d716[_0x2cb267(0x27a)]===0x0)throw new Error('Dataset\x20field\x20metadata\x20is\x20missing.');const _0x2c3103=[],_0x281acd=new Set();for(const _0x361d03 of _0x21d716){if(_0x361d03[_0x2cb267(0x281)]===!![])continue;let _0x34e2e5=_0x361d03[_0x2cb267(0x1ce)]??{};if(!_0x266c76&&typeof _0x34e2e5==='string'){try{_0x34e2e5=JSON[_0x2cb267(0x1e2)](_0x34e2e5);}catch{throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}if(!_0x34e2e5||typeof _0x34e2e5!==_0x2cb267(0x1ae)||Array[_0x2cb267(0x233)](_0x34e2e5))throw new Error(_0x2cb267(0x1f4));}const _0x552dfc=_0x266c76?_0x361d03[_0x2cb267(0x24b)]:_0x361d03[_0x2cb267(0x1e7)],_0x59cddd=_0x266c76?_0x361d03['doType']:_0x361d03['type']??_0x361d03[_0x2cb267(0x1bf)];if(typeof _0x552dfc!==_0x2cb267(0x217)||!_0x552dfc||typeof _0x59cddd!=='string'||_0x281acd[_0x2cb267(0x28d)](_0x552dfc))throw new Error(_0x2cb267(0x1c1));if(_0x59cddd['toLowerCase']()===_0x2cb267(0x22f))throw new Error(_0x2cb267(0x209));_0x281acd[_0x2cb267(0x1e4)](_0x552dfc);const _0x17de89=_0x266c76?_0x361d03:_0x34e2e5,_0x1b12cf={'code':_0x552dfc,'type':_0x59cddd,'required':_0x17de89[_0x2cb267(0x1e0)]===!![]};if(RESERVED[_0x2cb267(0x28d)](_0x552dfc)||_0x17de89['generated']===!![]||_0x17de89['autoIncrement']===!![])_0x1b12cf['generated']=!![];_0x2c3103['push'](_0x1b12cf);}return _0x2c3103;}async function checkArchive(_0x2f77e6,_0x4aae8f){await new Promise((_0x4ad75a,_0x43ca6f)=>{const _0x289716=a139_0x4786;a139_0x47b02f[_0x289716(0x219)](_0x2f77e6,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x423953,_0x29ee52)=>{const _0x206790=_0x289716;if(_0x423953||!_0x29ee52){_0x43ca6f(_0x423953??new Error(_0x206790(0x1b5)));return;}let _0x16101e;try{_0x16101e=centralDirectoryEnd(_0x2f77e6,_0x29ee52);}catch(_0x4509a0){_0x29ee52['close'](),_0x43ca6f(_0x4509a0);return;}let _0x39ca65=0x0,_0x1b4790=0x0,_0x21253c=0x0,_0x10a593=0x0,_0x324bf1=0x0,_0x5cc0f1=0x0,_0x29b3d2=0x0,_0x5a7fe7=0x0,_0x3a2432=0x0,_0x1adbcd=![],_0x45a322;const _0x2bc0d4=new Set(),_0x6bb683=_0x1dd150=>{const _0x575611=_0x206790;if(_0x1adbcd)return;_0x1adbcd=!![],_0x45a322?.[_0x575611(0x1f3)](),_0x29ee52[_0x575611(0x200)](),_0x43ca6f(_0x1dd150);},_0x2a17a1=(_0x2003be,_0x272169)=>{const _0x5c7956=_0x206790;if(!_0x2003be||!/^\d+$/[_0x5c7956(0x1af)](_0x2003be))throw new Error(_0x5c7956(0x236));const _0xa9a8ba=Number(_0x2003be);if(!Number[_0x5c7956(0x1f7)](_0xa9a8ba)||_0xa9a8ba<0x1||_0xa9a8ba>_0x272169)throw new Error(_0x5c7956(0x282)+_0x272169+'.');return _0xa9a8ba;},_0x50d33d=(_0x3c75f2,_0x346156=MAX_XML_COLUMNS)=>{const _0x2e7657=_0x206790,_0x286df4=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x2e7657(0x224)](_0x3c75f2);if(!_0x286df4)throw new Error('Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.');let _0x277a9c=0x0;for(const _0x13e3e0 of _0x286df4[0x1])_0x277a9c=_0x277a9c*0x1a+_0x13e3e0[_0x2e7657(0x1cb)](0x0)-0x40;if(_0x277a9c>_0x346156)throw new Error(_0x2e7657(0x1c4)+_0x346156+_0x2e7657(0x226));return{'row':_0x2a17a1(_0x286df4[0x2],MAX_XML_ROWS),'col':_0x277a9c};},_0x5e4653=_0x4f3603=>{const _0x2e63f5=_0x206790;if(_0x4f3603[_0x2e63f5(0x24b)]===_0x2e63f5(0x284)||_0x4f3603[_0x2e63f5(0x24b)]==='_xlnm.Print_Titles')return;for(const _0x4adcbc of _0x4f3603[_0x2e63f5(0x268)]){if(!ABSOLUTE_NAME_RANGE[_0x2e63f5(0x1af)](_0x4adcbc[_0x2e63f5(0x1d5)]('!')['pop']()||''))continue;const _0x930d6c=nameCoordinates[_0x2e63f5(0x255)](_0x4adcbc),_0x535a77=_0x2e63f5(0x20a)in _0x930d6c,_0x381a1c=_0x535a77?[_0x930d6c['top'],_0x930d6c[_0x2e63f5(0x253)]]:[_0x930d6c['row']],_0x26c956=_0x535a77?[_0x930d6c[_0x2e63f5(0x266)],_0x930d6c[_0x2e63f5(0x28f)]]:[_0x930d6c[_0x2e63f5(0x205)]],_0x27e8a7=(_0x9ea54b,_0x3cda31)=>Number[_0x2e63f5(0x1f7)](_0x9ea54b)&&_0x9ea54b>=0x1&&_0x9ea54b<=_0x3cda31;if(!_0x381a1c[_0x2e63f5(0x265)](_0x4cc93d=>_0x27e8a7(_0x4cc93d,MAX_XML_ROWS))||!_0x26c956['every'](_0x4a2b4f=>_0x27e8a7(_0x4a2b4f,MAX_XML_COLUMNS)))throw new Error(_0x2e63f5(0x250));_0x29b3d2+=_0x535a77?(_0x930d6c[_0x2e63f5(0x253)]-_0x930d6c[_0x2e63f5(0x20a)]+0x1)*(_0x930d6c['right']-_0x930d6c[_0x2e63f5(0x266)]+0x1):0x1;if(_0x29b3d2>MAX_ROWS)throw new Error('Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.');}};_0x29ee52['on'](_0x206790(0x210),_0x6bb683),_0x29ee52['on']('entry',_0x483fb3=>{const _0xf2162f=_0x206790;if(_0x1adbcd)return;if(++_0x21253c>0x2710||(_0x39ca65+=_0x483fb3[_0xf2162f(0x213)])>MAX_EXPANDED){_0x6bb683(new Error(_0xf2162f(0x225)));return;}let _0x368968;try{_0x368968=consumerEntryName(_0x2f77e6,_0x483fb3);}catch(_0x5f1779){_0x6bb683(_0x5f1779);return;}if(_0x368968['directory']){_0x29ee52[_0xf2162f(0x248)]();return;}const _0x4d1899=_0x368968[_0xf2162f(0x24b)];if(_0x4aae8f&&(_0x4d1899!==_0x368968['original']||_0x2bc0d4[_0xf2162f(0x28d)](_0x4d1899)||_0x4d1899[_0xf2162f(0x257)]('/')||_0x4d1899[_0xf2162f(0x274)]('\x5c'))){_0x6bb683(new Error(_0xf2162f(0x26e)));return;}if(_0x4d1899!==_0x368968[_0xf2162f(0x1b0)]&&(_0x4d1899===_0xf2162f(0x26b)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0xf2162f(0x1af)](_0x4d1899))){_0x6bb683(new Error('Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.'));return;}const _0x23cffd=_0x4d1899===_0xf2162f(0x26b);if(_0x23cffd&&_0x2bc0d4[_0xf2162f(0x28d)](_0x4d1899)){_0x6bb683(new Error(_0xf2162f(0x216)));return;}_0x2bc0d4[_0xf2162f(0x1e4)](_0x4d1899);const _0x547f80=/xl\/worksheets\/sheet(\d+)[.]xml/[_0xf2162f(0x1af)](_0x4d1899);if(_0x547f80&&!/^xl\/worksheets\/sheet\d+[.]xml$/['test'](_0x4d1899)){_0x6bb683(new Error(_0xf2162f(0x25b)));return;}_0x29ee52[_0xf2162f(0x287)](_0x483fb3,(_0x6c3d30,_0x2e7b3a)=>{const _0x2c8527=_0xf2162f;if(_0x1adbcd){_0x2e7b3a?.[_0x2c8527(0x1f3)]();return;}if(_0x6c3d30||!_0x2e7b3a){_0x6bb683(_0x6c3d30??new Error(_0x2c8527(0x204)));return;}_0x45a322=_0x2e7b3a;const _0x42561e=_0x4aae8f?[]:undefined,_0x52d38f=_0x4aae8f&&/[.](xml|rels)$/['test'](_0x4d1899)?new StringDecoder(_0x2c8527(0x25e)):undefined,_0xce9fd4=_0x52d38f?new SaxesParser({'xmlns':![]}):undefined,_0x40cd40=()=>{const _0x3ce400=_0x2c8527;if(++_0x3a2432>0x1e8480)throw Error(_0x3ce400(0x296));};_0xce9fd4?.['on'](_0x2c8527(0x231),()=>{const _0x16c5bd=_0x2c8527;throw Error(_0x16c5bd(0x237));}),_0xce9fd4?.['on'](_0x2c8527(0x1be),()=>{const _0x3691f7=_0x2c8527;_0x40cd40();if(++_0x5a7fe7>0x7a120)throw Error(_0x3691f7(0x24a));}),_0xce9fd4?.['on']('text',_0x40cd40),_0xce9fd4?.['on'](_0x2c8527(0x291),_0x40cd40),_0xce9fd4?.['on'](_0x2c8527(0x210),_0x384438=>{throw _0x384438;});const _0x4fff8d=_0x547f80||_0x23cffd?new StringDecoder('utf8'):undefined,_0x182841=_0x547f80||_0x23cffd?new SaxesParser({'xmlns':![]}):undefined;let _0x4d081f,_0x275377=0x0,_0x8f3c3f=0x0,_0x269104,_0x47173e,_0x54267a=![],_0x5b2d21=![],_0x37a295,_0x25e4c9,_0x156e3c,_0x38b331=![];const _0xf7dd06=[],_0x389e0d=new Set();let _0x2ab5d1;const _0x2326dd=(_0x19b5be,_0x346222=0x0)=>{const _0x5c3a42=_0x2c8527;_0x324bf1+=_0x346222+Math['max'](0x0,_0x19b5be-_0x8f3c3f),_0x8f3c3f=Math[_0x5c3a42(0x1bd)](_0x8f3c3f,_0x19b5be);if(_0x324bf1>MAX_ROWS)throw new Error(_0x5c3a42(0x1b6));};_0x182841?.['on'](_0x2c8527(0x1be),_0x1039da=>{const _0x464e3d=_0x2c8527;if(_0x23cffd){if(!_0x4d081f&&_0x1039da[_0x464e3d(0x24b)]==='definedName')_0x4d081f=new DefinedNameXform();_0x4d081f?.[_0x464e3d(0x1bc)](_0x1039da);return;}if(_0x1039da[_0x464e3d(0x24b)]==='row'){if(_0x5b2d21)throw new Error(_0x464e3d(0x22c));_0x2a17a1(_0x1039da[_0x464e3d(0x1dd)]['r'],MAX_XML_ROWS),_0x269104=undefined,_0x156e3c=undefined,_0x38b331=![];}else{if(_0x1039da[_0x464e3d(0x24b)]==='c'){if(_0x5b2d21)throw new Error(_0x464e3d(0x229));_0x5b2d21=!![],_0x54267a=Boolean(Number[_0x464e3d(0x1b8)](_0x1039da[_0x464e3d(0x1dd)]['s']??'',0xa)),_0x2ab5d1=undefined,_0x37a295=_0x1039da[_0x464e3d(0x1dd)]['r']||undefined,_0x25e4c9=_0x37a295?_0x50d33d(_0x37a295):undefined;if(_0x25e4c9)_0x47173e=_0x25e4c9;else _0x47173e=_0x269104?{'row':_0x269104[_0x464e3d(0x25d)],'col':_0x269104[_0x464e3d(0x205)]+0x1}:undefined;}else{if(_0x5b2d21&&['f','v','t'][_0x464e3d(0x274)](_0x1039da[_0x464e3d(0x24b)])){_0x2ab5d1=_0x1039da[_0x464e3d(0x24b)];if(_0x1039da[_0x464e3d(0x24b)]==='f'&&_0x1039da[_0x464e3d(0x1dd)]['t'])_0x54267a=!![];}else{if(_0x5b2d21&&_0x1039da[_0x464e3d(0x24b)]==='r')_0x54267a=!![];else{if(_0x1039da['name']===_0x464e3d(0x256)){const _0x4b520e=_0x1039da[_0x464e3d(0x1dd)][_0x464e3d(0x269)];if(!_0x4b520e)throw new Error(_0x464e3d(0x261));const _0x34a7fb=_0x4b520e[_0x464e3d(0x1d5)](':');if(_0x34a7fb[_0x464e3d(0x27a)]>0x2)throw new Error(_0x464e3d(0x261));const _0x1e8394=_0x50d33d(_0x34a7fb[0x0]),_0xe0ce3d=_0x50d33d(_0x34a7fb[0x1]??_0x34a7fb[0x0]);_0x389e0d[_0x464e3d(0x1e4)](_0x4b520e),_0x2326dd(Math[_0x464e3d(0x1bd)](_0x1e8394['col'],_0xe0ce3d['col']),0x1);}else{if(_0x1039da[_0x464e3d(0x24b)]===_0x464e3d(0x205)){const _0x2976f4=_0x2a17a1(_0x1039da[_0x464e3d(0x1dd)]['min'],0x4000),_0x18a4cd=_0x2a17a1(_0x1039da[_0x464e3d(0x1dd)][_0x464e3d(0x1bd)],0x4000);if(_0x2976f4>_0x18a4cd)throw new Error('Invalid\x20worksheet\x20column\x20range.');_0x2326dd(_0x18a4cd,0x1);}else{if(_0x1039da[_0x464e3d(0x24b)]===_0x464e3d(0x1f8)){const _0x8ad631=_0x1039da[_0x464e3d(0x1dd)][_0x464e3d(0x269)];if(!_0x8ad631)throw new Error(_0x464e3d(0x1da));const _0x40431b=_0x8ad631['split'](':');if(_0x40431b[_0x464e3d(0x27a)]>0x2)throw new Error(_0x464e3d(0x1da));const _0x48ae86=_0x50d33d(_0x40431b[0x0]),_0x27dfae=_0x50d33d(_0x40431b[0x1]??_0x40431b[0x0]);_0x2326dd(Math[_0x464e3d(0x1bd)](_0x48ae86[_0x464e3d(0x205)],_0x27dfae['col']));const _0xdda3ff=(Math[_0x464e3d(0x1cd)](_0x27dfae[_0x464e3d(0x25d)]-_0x48ae86[_0x464e3d(0x25d)])+0x1)*(Math['abs'](_0x27dfae[_0x464e3d(0x205)]-_0x48ae86[_0x464e3d(0x205)])+0x1);_0x10a593+=_0xdda3ff+_0x275377++;if(_0x10a593>MAX_ROWS)throw new Error(_0x464e3d(0x27e));}}}}}}}}),_0x182841?.['on'](_0x2c8527(0x1db),_0xe54724=>{if(_0x23cffd){_0x4d081f?.['parseText'](_0xe54724);return;}if(_0x5b2d21&&_0x2ab5d1&&_0xe54724)_0x54267a=!![];}),_0x182841?.['on'](_0x2c8527(0x291),_0xd04a48=>{const _0x4828aa=_0x2c8527;if(_0x23cffd){_0x4d081f&&!_0x4d081f[_0x4828aa(0x26f)]()&&(_0x5e4653(_0x4d081f[_0x4828aa(0x21c)]),_0x4d081f=undefined);return;}if(_0xd04a48['name']==='c'){!_0x54267a&&_0x37a295&&!_0x156e3c&&(_0x156e3c={'before':_0x269104,'cells':[]});if(_0x156e3c){if(++_0x5cc0f1>0xf4240)throw new Error(_0x4828aa(0x1f2));_0x156e3c['cells']['push']({'reference':_0x37a295,'address':_0x25e4c9,'materialized':_0x54267a});if(!_0x37a295&&_0x54267a)_0x38b331=!![];}if(_0x54267a){if(!_0x156e3c||_0x37a295){if(!_0x47173e)throw new Error(_0x4828aa(0x258));if(_0x47173e[_0x4828aa(0x205)]>MAX_XML_COLUMNS)throw new Error('Worksheet\x20exceeds\x2016384\x20columns.');_0x2326dd(_0x47173e[_0x4828aa(0x205)]);}_0x269104=_0x47173e;}_0x5b2d21=![],_0x47173e=undefined,_0x37a295=undefined,_0x25e4c9=undefined,_0x2ab5d1=undefined;}else{if(_0xd04a48[_0x4828aa(0x24b)]==='row'){if(_0x156e3c&&_0x38b331)_0xf7dd06[_0x4828aa(0x1fa)](_0x156e3c);_0x156e3c=undefined,_0x38b331=![];}else{if(_0xd04a48[_0x4828aa(0x24b)]===_0x2ab5d1)_0x2ab5d1=undefined;}}}),_0x182841?.['on']('error',_0x2f4da5=>{const _0x2bf730=_0x2c8527;throw new Error(_0x2bf730(0x1ec)+_0x2f4da5['message']);}),_0x2e7b3a['on'](_0x2c8527(0x210),_0x6bb683),_0x2e7b3a['on']('data',_0x1ac276=>{const _0x1d834b=_0x2c8527;if(_0x1adbcd)return;_0x1b4790+=_0x1ac276[_0x1d834b(0x27a)],_0x42561e?.['push'](_0x1ac276);if(_0x1b4790>MAX_EXPANDED){_0x6bb683(new Error(_0x1d834b(0x225)));return;}try{if(_0xce9fd4&&_0x52d38f)_0xce9fd4['write'](_0x52d38f[_0x1d834b(0x21b)](_0x1ac276));if(_0x182841&&_0x4fff8d)_0x182841['write'](_0x4fff8d['write'](_0x1ac276));}catch(_0x967f4d){_0x6bb683(_0x967f4d instanceof Error?_0x967f4d:new Error('Invalid\x20worksheet\x20XML.'));}}),_0x2e7b3a['on'](_0x2c8527(0x240),()=>{const _0x5e8f3d=_0x2c8527;if(_0x1adbcd)return;try{if(_0xce9fd4&&_0x52d38f)_0xce9fd4[_0x5e8f3d(0x21b)](_0x52d38f[_0x5e8f3d(0x240)]())[_0x5e8f3d(0x200)]();if(_0x182841&&_0x4fff8d)_0x182841[_0x5e8f3d(0x21b)](_0x4fff8d[_0x5e8f3d(0x240)]())[_0x5e8f3d(0x200)]();for(const _0x3ffe07 of _0xf7dd06){let _0x33bca2=_0x3ffe07['before'];for(const _0x5b7486 of _0x3ffe07[_0x5e8f3d(0x1ff)]){if(!_0x5b7486[_0x5e8f3d(0x1b3)]&&!(_0x5b7486[_0x5e8f3d(0x27d)]&&_0x389e0d[_0x5e8f3d(0x28d)](_0x5b7486[_0x5e8f3d(0x27d)])))continue;const _0x530343=_0x5b7486[_0x5e8f3d(0x1e3)]??(_0x33bca2?{'row':_0x33bca2[_0x5e8f3d(0x25d)],'col':_0x33bca2[_0x5e8f3d(0x205)]+0x1}:undefined);if(!_0x530343)throw new Error(_0x5e8f3d(0x258));if(_0x530343[_0x5e8f3d(0x205)]>MAX_XML_COLUMNS)throw new Error(_0x5e8f3d(0x249));_0x2326dd(_0x530343['col']),_0x33bca2=_0x530343;}}_0xf7dd06[_0x5e8f3d(0x27a)]=0x0,_0x389e0d[_0x5e8f3d(0x1e5)]();}catch(_0x73fb96){_0x6bb683(_0x73fb96 instanceof Error?_0x73fb96:new Error('Invalid\x20worksheet\x20XML.'));return;}if(_0x42561e)_0x4aae8f['set'](_0x4d1899,Buffer[_0x5e8f3d(0x1cc)](_0x42561e));_0x45a322=undefined,_0x29ee52[_0x5e8f3d(0x248)]();});});}),_0x29ee52['on'](_0x206790(0x240),()=>{const _0x235513=_0x206790;if(_0x1adbcd)return;if(_0x29ee52['readEntryCursor']!==_0x16101e){_0x43ca6f(new Error(_0x235513(0x1fd)));return;}if(!_0x2bc0d4[_0x235513(0x28d)](_0x235513(0x23c))||!_0x2bc0d4[_0x235513(0x28d)]('xl/workbook.xml'))_0x43ca6f(new Error(_0x235513(0x1b1)));else _0x4ad75a();}),_0x29ee52['readEntry']();});});}function a139_0x3568(){const _0xc2dd4b=['externalFileAttributes','parseInt','5714472kzyWAj','2996616SnmGlA','values','parseOpen','max','opentag','dataType','1293930VkvbSp','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','rowCount','source','Worksheet\x20exceeds\x20','Missing\x20image\x20media:\x20','slice','exceljs/lib/utils/col-cache.js','batchSize','Required\x20field\x20is\x20not\x20mapped:\x20','isBuffer','charCodeAt','concat','abs','extend','uploadFields','rows','exceljs','compressedSize','merges','lastIndexOf','split','image','3078700LBfJBY','readEntryCursor','from','Invalid\x20worksheet\x20merge\x20reference.','text','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','attributes','formula','tenantCode','required','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','parse','address','add','clear','warnings','code','creatorName','appCode','3304609xNpEfn','Duplicate\x20dataset\x20field\x20codes.','Invalid\x20worksheet\x20XML:\x20','sharedFormula','datasetId','value','isFile','sort','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','destroy','Invalid\x20dataset\x20field\x20extension\x20metadata.','extraFields','readUInt32LE','isSafeInteger','mergeCell','./reader/readerFor','push','imageCells','Cell\x20exceeds\x2064\x20KB.','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','some','cells','close','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','contentHash','Duplicate\x20header:\x20','Invalid\x20XLSX\x20entry.','col','Required\x20value\x20is\x20missing.','eachCell','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','top','handleUTF8','Invalid\x20ZIP\x20central\x20directory\x20layout.','createTime','fileNameRaw','Invalid\x20ZIP\x20local\x20file\x20header.','error','upload','trim','uncompressedSize','extname','image/jpeg','Duplicate\x20workbook\x20ZIP\x20entry.','string','versionMadeBy','fromBuffer','columnCount','write','model','datetime','sha256','file','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','generalPurposeBitFlag','headerRow','localeCompare','exec','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','\x20columns.','hiddenRow','fileName','Invalid\x20worksheet\x20nested\x20cell.','boolean','textarea','Invalid\x20worksheet\x20nested\x20row.','message','sheet','serial_number','byteLength','doctype','modifierId','isArray','filter','getRow','Invalid\x20worksheet\x20coordinate.','XML\x20DTD/entities\x20are\x20not\x20supported.','readUInt16LE','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','subarray','map','[Content_Types].xml','fileNameStr','generated','sourceType','end','date','fields','bitFlag','Duplicate\x20mapping\x20target:\x20','errors','worksheets','.xlsx','readEntry','Worksheet\x20exceeds\x2016384\x20columns.','Image\x20XML\x20node\x20budget\x20exceeded.','name','fileCommentRaw','./utils','5440ZbHscK','hex','Invalid\x20defined\x20name\x20coordinate.','entryCount','type','bottom','emptyRows','decodeEx','hyperlink','startsWith','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','98221eNFKsC','jszip','Non-canonical\x20worksheet\x20ZIP\x20entry.','309krWoUj','row','utf8','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','Invalid\x20worksheet\x20hyperlink\x20reference.','XLSX\x20file\x20exceeds\x2020\x20MB.','hidden','updateTime','every','left','exceljs/lib/xlsx/xform/book/defined-name-xform.js','ranges','ref','update','xl/workbook.xml','media','dir','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','parseClose','number','Requested\x20worksheet\x20does\x20not\x20exist.','dataValidations','processAttributes','includes','xlsx','isFinite','getCell','entries','Merged\x20cells\x20are\x20not\x20supported.','length','parserVersion','get','reference','Worksheet\x20merge\x20work\x20exceeds\x20100000.','isInteger','getTime','deleted','Worksheet\x20coordinate\x20exceeds\x20','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','_xlnm.Print_Area','integer','size','openReadStream','creatorId','digest','result','decimal','toLowerCase','has','extraFieldRaw','right','imageFields','closetag','resolve','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','repeat','Image\x20XML\x20event\x20budget\x20exceeded.','modifierName','Unsupported\x20field\x20type:\x20','object','test','original','File\x20is\x20not\x20an\x20XLSX\x20workbook.','Unknown\x20or\x20generated\x20mapping\x20field:\x20','materialized','find','Invalid\x20XLSX\x20archive.','Worksheet\x20column\x20objects\x20exceed\x20100000.'];a139_0x3568=function(){return _0xc2dd4b;};return a139_0x3568();}function valueOf(_0x1d6e49){const _0x151347=a139_0x3bb65c,_0x149b52=_0x1d6e49[_0x151347(0x1ef)];if(_0x149b52&&typeof _0x149b52===_0x151347(0x1ae)&&(_0x151347(0x1de)in _0x149b52||_0x151347(0x1ed)in _0x149b52)){if(!('result'in _0x149b52)||_0x149b52[_0x151347(0x28a)]===undefined)throw new Error('Formula\x20has\x20no\x20cached\x20result.');return _0x149b52['result'];}return _0x149b52;}function convert(_0x209930,_0x434859){const _0x5de394=a139_0x3bb65c;if(_0x209930===null||_0x209930===undefined||_0x209930===''){if(_0x434859[_0x5de394(0x1e0)]&&!_0x434859[_0x5de394(0x23e)])throw new Error(_0x5de394(0x206));return null;}if(typeof _0x209930==='string'&&Buffer[_0x5de394(0x230)](_0x209930,'utf8')>MAX_CELL)throw new Error(_0x5de394(0x1fc));switch(_0x434859[_0x5de394(0x252)][_0x5de394(0x28c)]()){case'string':case'text':case _0x5de394(0x22b):if(typeof _0x209930!=='string')throw new Error('Expected\x20a\x20text\x20cell.');return _0x209930;case _0x5de394(0x270):case _0x5de394(0x28b):case _0x5de394(0x285):if(typeof _0x209930!==_0x5de394(0x270)||!Number[_0x5de394(0x276)](_0x209930)||Math[_0x5de394(0x1cd)](_0x209930)>Number['MAX_SAFE_INTEGER']||_0x434859[_0x5de394(0x252)][_0x5de394(0x28c)]()===_0x5de394(0x285)&&!Number[_0x5de394(0x27f)](_0x209930))throw new Error(_0x5de394(0x208));return _0x209930;case'boolean':if(typeof _0x209930!=='boolean')throw new Error('Expected\x20a\x20boolean\x20cell.');return _0x209930;case'date':case _0x5de394(0x21d):if(!(_0x209930 instanceof Date)||!Number['isFinite'](_0x209930[_0x5de394(0x280)]()))throw new Error('Expected\x20an\x20Excel\x20date\x20cell.');return _0x209930[_0x5de394(0x280)]();default:throw new Error(_0x5de394(0x298)+_0x434859['type']+'.');}}function a139_0x4786(_0x17c6a7,_0x4e98e0){_0x17c6a7=_0x17c6a7-0x1ae;const _0x3568ee=a139_0x3568();let _0x478689=_0x3568ee[_0x17c6a7];return _0x478689;}export async function buildExcelManifest(_0x1b5484){const _0x135aba=a139_0x3bb65c,_0x588562=_0x1b5484[_0x135aba(0x222)]??0x1;if(!Number[_0x135aba(0x27f)](_0x588562)||_0x588562<0x1||_0x588562>MAX_ROWS)throw new Error('headerRow\x20must\x20be\x20between\x201\x20and\x20100000.');if(_0x1b5484[_0x135aba(0x1c8)]!==undefined&&(!Number['isInteger'](_0x1b5484[_0x135aba(0x1c8)])||_0x1b5484['batchSize']<0x1||_0x1b5484['batchSize']>0x3e8))throw new Error(_0x135aba(0x25f));if(a139_0x1f7e82[_0x135aba(0x214)](_0x1b5484['file'])['toLowerCase']()!==_0x135aba(0x247))throw new Error('Only\x20.xlsx\x20files\x20are\x20supported.');const _0x2880ad=await stat(_0x1b5484[_0x135aba(0x21f)]);if(!_0x2880ad[_0x135aba(0x1f0)]()||_0x2880ad[_0x135aba(0x286)]>MAX_FILE)throw new Error(_0x135aba(0x220));const _0x5f0393=await readFile(_0x1b5484['file']);if(_0x5f0393[_0x135aba(0x27a)]>MAX_FILE)throw new Error(_0x135aba(0x262));const _0x1c84d7=_0x1b5484[_0x135aba(0x242)][_0x135aba(0x1fe)](_0x35b73a=>isImageContainer(_0x35b73a[_0x135aba(0x252)])&&Object[_0x135aba(0x1bb)](_0x1b5484['mapping'])[_0x135aba(0x274)](_0x35b73a[_0x135aba(0x1e7)]))?new Map():undefined;await checkArchive(_0x5f0393,_0x1c84d7);const _0x445ac9=new a139_0x1bd256['Workbook']();await _0x445ac9[_0x135aba(0x275)]['load'](_0x5f0393,{'ignoreNodes':[_0x135aba(0x272)]});const _0x13e420=_0x1b5484[_0x135aba(0x22e)];let _0x4f2a1c;if(_0x13e420===undefined)_0x4f2a1c=_0x445ac9[_0x135aba(0x246)][0x0];else{if(typeof _0x13e420===_0x135aba(0x217)&&_0x445ac9[_0x135aba(0x246)][_0x135aba(0x1fe)](_0xf04715=>_0xf04715[_0x135aba(0x24b)]===_0x13e420))_0x4f2a1c=_0x445ac9[_0x135aba(0x246)][_0x135aba(0x1b4)](_0xbd6df9=>_0xbd6df9['name']===_0x13e420);else{if(typeof _0x13e420==='number'||/^\d+$/[_0x135aba(0x1af)](_0x13e420)){const _0x5d6911=Number(_0x13e420);if(!Number[_0x135aba(0x27f)](_0x5d6911)||_0x5d6911<0x1)throw new Error(_0x135aba(0x283));_0x4f2a1c=_0x445ac9[_0x135aba(0x246)][_0x5d6911-0x1];}else _0x4f2a1c=_0x445ac9[_0x135aba(0x246)][_0x135aba(0x1b4)](_0x449772=>_0x449772[_0x135aba(0x24b)]===_0x13e420);}}if(!_0x4f2a1c)throw new Error(_0x135aba(0x271));if(_0x4f2a1c[_0x135aba(0x1c2)]>MAX_ROWS||_0x4f2a1c[_0x135aba(0x21a)]>MAX_COLUMNS)throw new Error(_0x135aba(0x294));if((_0x4f2a1c['model'][_0x135aba(0x1d3)]??[])[_0x135aba(0x27a)])throw new Error(_0x135aba(0x279));const _0x4bfaa8=new Map();_0x4f2a1c['getRow'](_0x588562)[_0x135aba(0x207)]((_0xb4a3b3,_0xf84871)=>{const _0x17d3dc=_0x135aba,_0x583bfe=valueOf(_0xb4a3b3);if(typeof _0x583bfe!==_0x17d3dc(0x217)||!_0x583bfe[_0x17d3dc(0x212)]()||Buffer[_0x17d3dc(0x230)](_0x583bfe)>MAX_CELL)throw new Error(_0x17d3dc(0x260));if(_0x4bfaa8[_0x17d3dc(0x28d)](_0x583bfe))throw new Error(_0x17d3dc(0x203)+_0x583bfe+'.');_0x4bfaa8['set'](_0x583bfe,_0xf84871);});const _0x2a352f=Object[_0x135aba(0x278)](_0x1b5484['mapping']);if(!_0x2a352f[_0x135aba(0x27a)])throw new Error('Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.');const _0x3e5d4b=new Map(_0x1b5484[_0x135aba(0x242)][_0x135aba(0x23b)](_0x113ced=>[_0x113ced['code'],_0x113ced]));if(_0x3e5d4b[_0x135aba(0x286)]!==_0x1b5484[_0x135aba(0x242)][_0x135aba(0x27a)])throw new Error(_0x135aba(0x1eb));if(_0x1b5484[_0x135aba(0x242)][_0x135aba(0x1fe)](_0x232f41=>_0x232f41[_0x135aba(0x252)][_0x135aba(0x28c)]()===_0x135aba(0x22f)))throw new Error(_0x135aba(0x209));const _0x1526d7=new Set();for(const [_0x1442ad,_0x449d3e]of _0x2a352f){const _0x3eb236=_0x3e5d4b['get'](_0x449d3e);if(!_0x4bfaa8[_0x135aba(0x28d)](_0x1442ad))throw new Error('Unknown\x20Excel\x20header:\x20'+_0x1442ad+'.');if(!_0x3eb236||RESERVED[_0x135aba(0x28d)](_0x449d3e)||_0x3eb236[_0x135aba(0x23e)])throw new Error(_0x135aba(0x1b2)+_0x449d3e+'.');if(_0x1526d7['has'](_0x449d3e))throw new Error(_0x135aba(0x244)+_0x449d3e+'.');if(!TYPES[_0x135aba(0x28d)](_0x3eb236[_0x135aba(0x252)]['toLowerCase']()))throw new Error(_0x135aba(0x298)+_0x3eb236[_0x135aba(0x252)]+'.');_0x1526d7[_0x135aba(0x1e4)](_0x449d3e);}for(const _0x305649 of _0x1b5484['fields']){if(_0x305649[_0x135aba(0x1e0)]&&!_0x305649[_0x135aba(0x23e)]&&!RESERVED[_0x135aba(0x28d)](_0x305649[_0x135aba(0x1e7)])&&!_0x1526d7['has'](_0x305649[_0x135aba(0x1e7)]))throw new Error(_0x135aba(0x1c9)+_0x305649[_0x135aba(0x1e7)]+'.');}const _0x552ab7={'fileHash':hash(_0x5f0393),'mappingHash':hash(JSON['stringify']([..._0x2a352f][_0x135aba(0x1f1)](([_0x1fb1cb],[_0x573bd2])=>_0x1fb1cb[_0x135aba(0x223)](_0x573bd2)))),'schemaHash':hash(JSON['stringify']([..._0x1b5484[_0x135aba(0x242)]]['sort']((_0xb0f1c2,_0x297e7b)=>_0xb0f1c2[_0x135aba(0x1e7)]['localeCompare'](_0x297e7b['code'])))),'sheet':_0x4f2a1c[_0x135aba(0x24b)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x3b1cff=_0x2a352f[_0x135aba(0x234)](([,_0x5a8288])=>isImageContainer(_0x3e5d4b[_0x135aba(0x27c)](_0x5a8288)[_0x135aba(0x252)])),_0x4aa38e=_0x3b1cff[_0x135aba(0x234)](([,_0x2fbe3b])=>_0x3e5d4b[_0x135aba(0x27c)](_0x2fbe3b)[_0x135aba(0x252)][_0x135aba(0x28c)]()===_0x135aba(0x211))[_0x135aba(0x23b)](([,_0x20b95f])=>_0x20b95f);if(_0x4aa38e['length'])_0x552ab7[_0x135aba(0x1cf)]=_0x4aa38e;const _0x26f1d9=_0x1c84d7?resolveWorksheetImages(_0x1c84d7,_0x4f2a1c['name'],new Set(_0x3b1cff[_0x135aba(0x23b)](([_0x4d1774])=>_0x4bfaa8[_0x135aba(0x27c)](_0x4d1774)))):[],_0x109d2e=new Map();for(const _0x3507ca of _0x26f1d9){const _0x3b352d=_0x3507ca[_0x135aba(0x25d)]+':'+_0x3507ca[_0x135aba(0x205)],_0x645929=_0x109d2e[_0x135aba(0x27c)](_0x3b352d)??[];_0x645929[_0x135aba(0x1fa)](_0x3507ca),_0x109d2e['set'](_0x3b352d,_0x645929);}const _0x5c90ab=new Map();let _0x14f58f=0x0;_0x3b1cff[_0x135aba(0x27a)]&&(_0x552ab7[_0x135aba(0x290)]=_0x3b1cff[_0x135aba(0x23b)](([,_0x236369])=>_0x236369),_0x552ab7[_0x135aba(0x1fb)]=[],_0x552ab7[_0x135aba(0x27b)]=0x1,_0x552ab7[_0x135aba(0x26c)]=[]);const _0x5751a6=Math[_0x135aba(0x1bd)](0x0,..._0x26f1d9[_0x135aba(0x23b)](_0x5b2704=>_0x5b2704[_0x135aba(0x25d)]));let _0x5b5fa7=0x0;const _0x4b7b12=new Set(_0x2a352f['map'](([_0x3306f9])=>_0x4bfaa8['get'](_0x3306f9)));for(let _0xcfcd3=_0x588562+0x1;_0xcfcd3<=Math['max'](_0x4f2a1c['rowCount'],_0x5751a6);_0xcfcd3++){const _0x12fdbe=_0x4f2a1c[_0x135aba(0x235)](_0xcfcd3);if(_0x12fdbe[_0x135aba(0x263)]||_0x26f1d9[_0x135aba(0x1fe)](_0x117776=>_0x117776[_0x135aba(0x25d)]===_0xcfcd3&&_0x117776[_0x135aba(0x227)]))_0x5b5fa7++;let _0x56188e=_0x26f1d9[_0x135aba(0x1fe)](_0x247a14=>_0x247a14[_0x135aba(0x25d)]===_0xcfcd3);_0x12fdbe[_0x135aba(0x207)](_0x56d651=>{const _0x5f3162=_0x135aba;if(_0x56d651[_0x5f3162(0x1ef)]!==null&&_0x56d651[_0x5f3162(0x1ef)]!==undefined&&_0x56d651[_0x5f3162(0x1ef)]!=='')_0x56188e=!![];});if(!_0x56188e){_0x552ab7[_0x135aba(0x254)]['push'](_0xcfcd3);continue;}const _0x3e2e91=Object['create'](null);_0x12fdbe['eachCell']((_0x470730,_0x44e937)=>{const _0x32214e=_0x135aba;if(_0x4b7b12[_0x32214e(0x28d)](_0x44e937))return;try{const _0xff17f8=valueOf(_0x470730);if(typeof _0xff17f8===_0x32214e(0x217)&&Buffer[_0x32214e(0x230)](_0xff17f8,'utf8')>MAX_CELL)throw new Error(_0x32214e(0x1fc));}catch(_0xbd64c0){_0x552ab7[_0x32214e(0x245)][_0x32214e(0x1fa)]({'rowNumber':_0xcfcd3,'field':_0x470730[_0x32214e(0x1e3)],'message':_0xbd64c0[_0x32214e(0x22d)]});}});for(const [_0x4eb889,_0x1675e3]of _0x2a352f){try{const _0x716dcb=_0x12fdbe[_0x135aba(0x277)](_0x4bfaa8[_0x135aba(0x27c)](_0x4eb889)),_0x2ac5e5=_0x3e5d4b[_0x135aba(0x27c)](_0x1675e3);if(!isImageContainer(_0x2ac5e5[_0x135aba(0x252)])){_0x3e2e91[_0x1675e3]=convert(valueOf(_0x716dcb),_0x2ac5e5);continue;}const _0x5ac7c7=_0x109d2e[_0x135aba(0x27c)](_0xcfcd3+':'+_0x4bfaa8[_0x135aba(0x27c)](_0x4eb889))??[];if(_0x5ac7c7[_0x135aba(0x1fe)](_0x5ce2ce=>_0x5ce2ce['error']))throw Error(_0x5ac7c7[_0x135aba(0x1b4)](_0x115e8a=>_0x115e8a[_0x135aba(0x210)])[_0x135aba(0x210)]);if(_0x716dcb[_0x135aba(0x1ef)]!=null&&_0x716dcb[_0x135aba(0x1ef)]!==''&&!_0x5ac7c7[_0x135aba(0x1fe)](_0x15ef70=>_0x15ef70['nativeCell']))throw Error(_0x135aba(0x1dc));const _0x9db822=[];for(const _0x57981b of _0x5ac7c7)for(const _0x339657 of _0x57981b[_0x135aba(0x26c)]){const _0x59b3cb=_0x1c84d7[_0x135aba(0x27c)](_0x339657);if(!_0x59b3cb)throw Error(_0x135aba(0x1c5)+_0x339657+'.');const _0x5c9f03=hash(_0x59b3cb),_0x295482=_0x5c90ab[_0x135aba(0x27c)](_0x5c9f03)??validateImageBytes(_0x59b3cb);if(!_0x5c90ab['has'](_0x295482[_0x135aba(0x202)])){_0x14f58f+=_0x295482[_0x135aba(0x286)];if(_0x14f58f>0x32*0x400*0x400)throw Error(_0x135aba(0x1e1));_0x5c90ab['set'](_0x295482[_0x135aba(0x202)],_0x295482);}_0x9db822[_0x135aba(0x1fa)](_0x295482[_0x135aba(0x202)]);}if(!_0x9db822[_0x135aba(0x27a)]&&_0x2ac5e5[_0x135aba(0x1e0)])throw Error('Required\x20image\x20value\x20is\x20missing.');if(_0x9db822[_0x135aba(0x27a)])_0x552ab7[_0x135aba(0x1fb)]['push']({'rowNumber':_0xcfcd3,'field':_0x1675e3,'hashes':_0x9db822});_0x3e2e91[_0x1675e3]=_0x9db822['map'](_0x47f4b6=>{const _0x4e3904=_0x135aba,_0x4e9578=_0x5c90ab[_0x4e3904(0x27c)](_0x47f4b6),_0x47cdf8=_0x4e9578[_0x4e3904(0x252)]===_0x4e3904(0x215)?'jpg':_0x4e9578[_0x4e3904(0x252)][_0x4e3904(0x1c6)](0x6),_0x23466f=_0x47f4b6+'.'+_0x47cdf8,_0x273501='dataset-import/'+'0'[_0x4e3904(0x295)](0x40)+'/'+_0x23466f;return _0x2ac5e5[_0x4e3904(0x252)][_0x4e3904(0x28c)]()===_0x4e3904(0x211)?{'fileName':_0x23466f,'filePath':_0x273501}:{'key':_0x273501,'name':_0x23466f,'type':_0x4e9578['type'],'size':_0x4e9578[_0x4e3904(0x286)]};});}catch(_0x147e5a){_0x552ab7[_0x135aba(0x245)][_0x135aba(0x1fa)]({'rowNumber':_0xcfcd3,'field':_0x1675e3,'message':_0x147e5a[_0x135aba(0x22d)]});}}_0x552ab7[_0x135aba(0x1d0)]['push']({'rowNumber':_0xcfcd3,'values':_0x3e2e91});}if(_0x552ab7[_0x135aba(0x26c)])_0x552ab7['media']=[..._0x5c90ab[_0x135aba(0x1bb)]()];if(_0x5b5fa7)_0x552ab7[_0x135aba(0x1e6)][_0x135aba(0x1fa)](_0x5b5fa7+_0x135aba(0x293));return _0x552ab7;}
@@ -0,0 +1,3 @@
1
+ import type { ImportMedia } from './types.js';
2
+ /** Decode the complete payload after bounding compressed bytes and dimensions. */
3
+ export declare function validateImageBytes(bytes: Buffer): ImportMedia;
@@ -0,0 +1 @@
1
+ (function(_0x2a9c0c,_0x5c3ea9){const _0x4dbb1c=a140_0x52b6,_0x49fcf1=_0x2a9c0c();while(!![]){try{const _0x4af515=-parseInt(_0x4dbb1c(0x1da))/0x1*(-parseInt(_0x4dbb1c(0x1cd))/0x2)+-parseInt(_0x4dbb1c(0x1c9))/0x3*(parseInt(_0x4dbb1c(0x1e0))/0x4)+-parseInt(_0x4dbb1c(0x1c2))/0x5+parseInt(_0x4dbb1c(0x1bc))/0x6+-parseInt(_0x4dbb1c(0x1a4))/0x7+-parseInt(_0x4dbb1c(0x1a9))/0x8*(-parseInt(_0x4dbb1c(0x1df))/0x9)+parseInt(_0x4dbb1c(0x1d8))/0xa*(parseInt(_0x4dbb1c(0x1c8))/0xb);if(_0x4af515===_0x5c3ea9)break;else _0x49fcf1['push'](_0x49fcf1['shift']());}catch(_0x1b651a){_0x49fcf1['push'](_0x49fcf1['shift']());}}}(a140_0x1bc2,0x59768));function a140_0x1bc2(){const _0x297190=['Truncated\x20JPEG.','image/gif','Invalid\x20PNG\x20decoded\x20scanline\x20size.','9731890yqWgdL','sync','189731lrjpjR','isSafeInteger','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','Truncated\x20GIF.','push','204723zymHoj','4SUuHOe','3777585fKEVAT','Missing\x20GIF\x20trailer.','Missing\x20PNG\x20data/end.','max','image/png','8CMwJmy','includes','GIF\x20image\x20has\x20no\x20palette.','readUInt16LE','jpeg-js','subarray','Invalid\x20image:\x20','toString','GIF87a','update','acTL','Animated\x20PNG\x20is\x20not\x20supported.','width','height','Invalid\x20GIF\x20LZW\x20code\x20size.','equals','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','hex','omggif','3669546ECCzRs','GIF89a','Invalid\x20PNG\x20color/depth/interlace.','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','decode','numFrames','1013060Beqiga','Invalid\x20PNG\x20end.','Truncated\x20PNG\x20data.','Truncated\x20PNG\x20chunk.','digest','image/jpeg','11MzfAPH','2065653jQDXkf','Invalid\x20GIF\x20block.','concat','read','2EJLqev','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','readUInt32BE','length','ascii','from','ceil','GIF\x20frame\x20exceeds\x20canvas.'];a140_0x1bc2=function(){return _0x297190;};return a140_0x1bc2();}import{createRequire}from'node:module';import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x6410f3,_0x420dcd){const _0x3f418d=a140_0x52b6;if(!Number['isSafeInteger'](_0x6410f3)||!Number[_0x3f418d(0x1db)](_0x420dcd)||_0x6410f3<0x1||_0x420dcd<0x1||_0x6410f3*_0x420dcd>MAX_PIXELS)throw Error('Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.');}function a140_0x52b6(_0x326789,_0x765eac){_0x326789=_0x326789-0x1a4;const _0x1bc2de=a140_0x1bc2();let _0x52b67c=_0x1bc2de[_0x326789];return _0x52b67c;}function validateGif(_0x2054a2){const _0x565696=a140_0x52b6;let _0x7f0699=0xd,_0x17d8a9=0x0,_0x5c6b54=0x0;const _0x316097=_0x2054a2[_0x565696(0x1ac)](0x6),_0x45f319=_0x2054a2[_0x565696(0x1ac)](0x8),_0x519806=_0x2054a2[0xa]&0x80?0x1<<(_0x2054a2[0xa]&0x7)+0x1:0x0,_0x985b19=_0x42d863=>{if(_0x7f0699+_0x42d863>_0x2054a2['length'])throw Error('Truncated\x20GIF\x20data.');};_0x7f0699+=_0x519806*0x3,_0x985b19(0x0);const _0x21fac2=()=>{const _0x5a7f9f=[];while(!![]){_0x985b19(0x1);const _0xce127f=_0x2054a2[_0x7f0699++];if(!_0xce127f)break;_0x985b19(_0xce127f),_0x5a7f9f['push'](_0x2054a2['subarray'](_0x7f0699,_0x7f0699+_0xce127f)),_0x7f0699+=_0xce127f;}return Buffer['concat'](_0x5a7f9f);};while(_0x7f0699<_0x2054a2[_0x565696(0x1d0)]){const _0x251059=_0x2054a2[_0x7f0699++];if(_0x251059===0x3b){if(!_0x17d8a9||_0x7f0699!==_0x2054a2[_0x565696(0x1d0)])throw Error('Invalid\x20GIF\x20trailer.');return;}if(_0x251059===0x21){_0x985b19(0x1),_0x7f0699++,_0x21fac2();continue;}if(_0x251059!==0x2c)throw Error(_0x565696(0x1ca));_0x985b19(0x9);const _0x366394=_0x2054a2['readUInt16LE'](_0x7f0699),_0x1f770b=_0x2054a2[_0x565696(0x1ac)](_0x7f0699+0x2),_0x46a21e=_0x2054a2['readUInt16LE'](_0x7f0699+0x4),_0x28651d=_0x2054a2[_0x565696(0x1ac)](_0x7f0699+0x6),_0x19fb94=_0x2054a2[_0x7f0699+0x8];_0x7f0699+=0x9,dimensions(_0x46a21e,_0x28651d);if(_0x366394+_0x46a21e>_0x316097||_0x1f770b+_0x28651d>_0x45f319||++_0x17d8a9>0x2710||(_0x5c6b54+=_0x316097*_0x45f319)>MAX_PIXELS)throw Error(_0x565696(0x1bf));const _0x37fc04=_0x19fb94&0x80?0x1<<(_0x19fb94&0x7)+0x1:_0x519806;if(!_0x37fc04)throw Error(_0x565696(0x1ab));_0x19fb94&0x80&&(_0x985b19(_0x37fc04*0x3),_0x7f0699+=_0x37fc04*0x3);_0x985b19(0x1);const _0x27c7be=_0x2054a2[_0x7f0699++];if(_0x27c7be<0x2||_0x27c7be>0x8)throw Error(_0x565696(0x1b7));const _0x2ecb8e=_0x21fac2(),_0x3d295f=0x1<<_0x27c7be,_0x53dfcd=_0x3d295f+0x1;let _0x156402=_0x27c7be+0x1,_0x24f960=_0x53dfcd+0x1,_0x2b7578=0x0,_0x2deaf6=-0x1,_0x3f4e14=0x0,_0x1970e0=![];const _0x3b5270=new Uint32Array(0x1000),_0x5676a3=new Uint16Array(0x1000);for(let _0x292e6c=0x0;_0x292e6c<_0x3d295f;_0x292e6c++){_0x3b5270[_0x292e6c]=0x1,_0x5676a3[_0x292e6c]=_0x292e6c;}while(_0x2b7578+_0x156402<=_0x2ecb8e[_0x565696(0x1d0)]*0x8){let _0x256f22=0x0;for(let _0x407d99=0x0;_0x407d99<_0x156402;_0x407d99++,_0x2b7578++)_0x256f22|=(_0x2ecb8e[_0x2b7578>>0x3]>>(_0x2b7578&0x7)&0x1)<<_0x407d99;if(_0x256f22===_0x3d295f){_0x156402=_0x27c7be+0x1,_0x24f960=_0x53dfcd+0x1,_0x2deaf6=-0x1;continue;}if(_0x256f22===_0x53dfcd){_0x1970e0=!![];break;}if(_0x256f22>_0x24f960||_0x256f22===_0x24f960&&_0x2deaf6<0x0||_0x2deaf6<0x0&&_0x256f22>=_0x3d295f)throw Error(_0x565696(0x1b9));const _0x36ca73=_0x256f22===_0x24f960?_0x3b5270[_0x2deaf6]+0x1:_0x3b5270[_0x256f22],_0x166132=_0x256f22===_0x24f960?_0x5676a3[_0x2deaf6]:_0x5676a3[_0x256f22];if(!_0x36ca73||_0x166132>=_0x37fc04||(_0x3f4e14+=_0x36ca73)>_0x46a21e*_0x28651d)throw Error('Invalid\x20GIF\x20LZW\x20pixel\x20data.');if(_0x2deaf6>=0x0&&_0x24f960<0x1000){_0x3b5270[_0x24f960]=_0x3b5270[_0x2deaf6]+0x1,_0x5676a3[_0x24f960]=Math['max'](_0x5676a3[_0x2deaf6],_0x166132),_0x24f960++;if(_0x24f960===0x1<<_0x156402&&_0x156402<0xc)_0x156402++;}_0x2deaf6=_0x256f22;}if(!_0x1970e0||_0x3f4e14!==_0x46a21e*_0x28651d)throw Error(_0x565696(0x1dc));}throw Error(_0x565696(0x1a5));}export function validateImageBytes(_0x4dc7e0){const _0x7a8c1f=a140_0x52b6;if(!_0x4dc7e0[_0x7a8c1f(0x1d0)]||_0x4dc7e0['length']>0xa*0x400*0x400)throw Error('Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.');let _0x3f5ce2;try{if(_0x4dc7e0['subarray'](0x0,0x8)[_0x7a8c1f(0x1b8)](Buffer[_0x7a8c1f(0x1d2)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x4dc7e0[_0x7a8c1f(0x1d0)]<0x21||_0x4dc7e0[_0x7a8c1f(0x1b0)]('ascii',0xc,0x10)!=='IHDR')throw Error('Invalid\x20PNG\x20header.');dimensions(_0x4dc7e0[_0x7a8c1f(0x1cf)](0x10),_0x4dc7e0[_0x7a8c1f(0x1cf)](0x14));const _0x539eb9=_0x4dc7e0[_0x7a8c1f(0x1cf)](0x10),_0x255e66=_0x4dc7e0['readUInt32BE'](0x14),_0x22bef7=_0x4dc7e0[0x18],_0x56d824=_0x4dc7e0[0x19],_0x3636e9=_0x4dc7e0[0x1c],_0x220bfa={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x56d824];if(!_0x220bfa||![0x1,0x2,0x4,0x8,0x10][_0x7a8c1f(0x1aa)](_0x22bef7)||_0x3636e9>0x1)throw Error(_0x7a8c1f(0x1be));const _0x543603=_0x148585=>Math[_0x7a8c1f(0x1d3)](_0x148585*_0x220bfa*_0x22bef7/0x8)+0x1;let _0x5e9471=_0x543603(_0x539eb9)*_0x255e66;if(_0x3636e9){_0x5e9471=0x0;for(const [_0x222e22,_0x592916,_0x2c232a,_0x2bddf8]of[[0x0,0x0,0x8,0x8],[0x4,0x0,0x8,0x8],[0x0,0x4,0x4,0x8],[0x2,0x0,0x4,0x4],[0x0,0x2,0x2,0x4],[0x1,0x0,0x2,0x2],[0x0,0x1,0x1,0x2]]){const _0x5e82cc=Math[_0x7a8c1f(0x1a7)](0x0,Math[_0x7a8c1f(0x1d3)]((_0x539eb9-_0x222e22)/_0x2c232a)),_0x24b75b=Math[_0x7a8c1f(0x1a7)](0x0,Math[_0x7a8c1f(0x1d3)]((_0x255e66-_0x592916)/_0x2bddf8));if(_0x5e82cc&&_0x24b75b)_0x5e9471+=_0x543603(_0x5e82cc)*_0x24b75b;}}let _0x33ef03=0x8,_0x43fbb7=![];const _0x37ea3c=[];while(_0x33ef03<_0x4dc7e0[_0x7a8c1f(0x1d0)]){if(_0x33ef03+0xc>_0x4dc7e0['length'])throw Error(_0x7a8c1f(0x1c5));const _0x4d5bba=_0x4dc7e0['readUInt32BE'](_0x33ef03),_0x58eba2=_0x4dc7e0[_0x7a8c1f(0x1b0)](_0x7a8c1f(0x1d1),_0x33ef03+0x4,_0x33ef03+0x8);if(_0x58eba2===_0x7a8c1f(0x1b3))throw Error(_0x7a8c1f(0x1b4));if(_0x33ef03+_0x4d5bba+0xc>_0x4dc7e0[_0x7a8c1f(0x1d0)])throw Error(_0x7a8c1f(0x1c4));if(_0x58eba2==='IDAT')_0x37ea3c[_0x7a8c1f(0x1de)](_0x4dc7e0[_0x7a8c1f(0x1ae)](_0x33ef03+0x8,_0x33ef03+0x8+_0x4d5bba));_0x33ef03+=_0x4d5bba+0xc;if(_0x58eba2==='IEND'){if(_0x4d5bba||_0x33ef03!==_0x4dc7e0['length'])throw Error(_0x7a8c1f(0x1c3));_0x43fbb7=!![];break;}}if(!_0x43fbb7||!_0x37ea3c['length'])throw Error(_0x7a8c1f(0x1a6));if(inflateSync(Buffer[_0x7a8c1f(0x1cb)](_0x37ea3c),{'maxOutputLength':_0x5e9471+0x1})['length']!==_0x5e9471)throw Error(_0x7a8c1f(0x1d7));const {PNG:_0x12f696}=require('pngjs'),_0x233c4b=_0x12f696[_0x7a8c1f(0x1d9)][_0x7a8c1f(0x1cc)](_0x4dc7e0,{'checkCRC':!![]});dimensions(_0x233c4b[_0x7a8c1f(0x1b5)],_0x233c4b[_0x7a8c1f(0x1b6)]),_0x3f5ce2=_0x7a8c1f(0x1a8);}else{if(_0x4dc7e0[0x0]===0xff&&_0x4dc7e0[0x1]===0xd8){if(_0x4dc7e0['at'](-0x2)!==0xff||_0x4dc7e0['at'](-0x1)!==0xd9)throw Error(_0x7a8c1f(0x1d5));const _0x5a259d=require(_0x7a8c1f(0x1ad)),_0x234ae0=_0x5a259d[_0x7a8c1f(0x1c0)](_0x4dc7e0,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x234ae0['width'],_0x234ae0['height']),_0x3f5ce2=_0x7a8c1f(0x1c7);}else{if([_0x7a8c1f(0x1b1),_0x7a8c1f(0x1bd)][_0x7a8c1f(0x1aa)](_0x4dc7e0[_0x7a8c1f(0x1b0)](_0x7a8c1f(0x1d1),0x0,0x6))){if(_0x4dc7e0[_0x7a8c1f(0x1d0)]<0xe||_0x4dc7e0['at'](-0x1)!==0x3b)throw Error(_0x7a8c1f(0x1dd));dimensions(_0x4dc7e0[_0x7a8c1f(0x1ac)](0x6),_0x4dc7e0[_0x7a8c1f(0x1ac)](0x8)),validateGif(_0x4dc7e0);const {GifReader:_0x1816b7}=require(_0x7a8c1f(0x1bb)),_0x27a959=new _0x1816b7(_0x4dc7e0);dimensions(_0x27a959['width'],_0x27a959[_0x7a8c1f(0x1b6)]);const _0x5caaa4=_0x27a959[_0x7a8c1f(0x1c1)]();if(!_0x5caaa4||_0x5caaa4>0x2710||_0x5caaa4*_0x27a959[_0x7a8c1f(0x1b5)]*_0x27a959[_0x7a8c1f(0x1b6)]>MAX_PIXELS)throw Error(_0x7a8c1f(0x1bf));const _0x6f2811=new Uint8Array(_0x27a959[_0x7a8c1f(0x1b5)]*_0x27a959[_0x7a8c1f(0x1b6)]*0x4);for(let _0x1fb780=0x0;_0x1fb780<_0x5caaa4;_0x1fb780++){const _0x3e2922=_0x27a959['frameInfo'](_0x1fb780);if(_0x3e2922['x']+_0x3e2922[_0x7a8c1f(0x1b5)]>_0x27a959[_0x7a8c1f(0x1b5)]||_0x3e2922['y']+_0x3e2922[_0x7a8c1f(0x1b6)]>_0x27a959['height'])throw Error(_0x7a8c1f(0x1d4));_0x27a959['decodeAndBlitFrameRGBA'](_0x1fb780,_0x6f2811);}_0x3f5ce2=_0x7a8c1f(0x1d6);}else throw Error(_0x7a8c1f(0x1ce));}}}catch(_0x20ae78){throw Error(_0x7a8c1f(0x1af)+_0x20ae78['message']);}return{'contentHash':createHash('sha256')[_0x7a8c1f(0x1b2)](_0x4dc7e0)[_0x7a8c1f(0x1c6)](_0x7a8c1f(0x1ba)),'type':_0x3f5ce2,'size':_0x4dc7e0[_0x7a8c1f(0x1d0)],'bytes':_0x4dc7e0};}
@@ -0,0 +1,10 @@
1
+ export interface ImagePosition {
2
+ row: number;
3
+ col: number;
4
+ media: string[];
5
+ error?: string;
6
+ nativeCell?: boolean;
7
+ hiddenRow?: boolean;
8
+ }
9
+ /** 只消费已通过 ZIP 预检的规范名称字节;共享 XML 对象/事件预算。 */
10
+ export declare function resolveWorksheetImages(archive: Map<string, Buffer>, sheetName: string, mappedColumns: Set<number>): ImagePosition[];