@lovrabet/lovrabet-cli 2.3.6-beta.2 → 2.3.6-beta.3

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 (184) hide show
  1. package/README.md +33 -2
  2. package/lib/cli.js +1 -1
  3. package/lib/commands/api-doc/index.js +1 -1
  4. package/lib/commands/app/cache.js +1 -1
  5. package/lib/commands/app/definitions.js +1 -1
  6. package/lib/commands/app/eligibility.js +1 -1
  7. package/lib/commands/app/mock-loader.js +1 -1
  8. package/lib/commands/app/remote-source.js +1 -1
  9. package/lib/commands/app/shared.js +1 -1
  10. package/lib/commands/app-config/get.js +1 -1
  11. package/lib/commands/app-config/index.js +1 -1
  12. package/lib/commands/approval/index.js +1 -1
  13. package/lib/commands/artifact/index.js +1 -1
  14. package/lib/commands/auth/device.js +1 -1
  15. package/lib/commands/auth/index.js +1 -1
  16. package/lib/commands/auth/prompt.js +1 -1
  17. package/lib/commands/bff/detail.js +1 -1
  18. package/lib/commands/bff/exec.js +1 -1
  19. package/lib/commands/bff/index.js +1 -1
  20. package/lib/commands/cli-skill/index.js +1 -1
  21. package/lib/commands/common/config-policy.js +1 -1
  22. package/lib/commands/common/constraints.js +1 -1
  23. package/lib/commands/common/flags.js +1 -1
  24. package/lib/commands/common/local-file.js +1 -1
  25. package/lib/commands/config/definitions.js +1 -1
  26. package/lib/commands/config/init.js +1 -1
  27. package/lib/commands/config/shared.js +1 -1
  28. package/lib/commands/data/import-excel.js +1 -1
  29. package/lib/commands/data/index.js +1 -1
  30. package/lib/commands/dataset/detail.js +1 -1
  31. package/lib/commands/dataset/index.js +1 -1
  32. package/lib/commands/dataset/list.js +1 -1
  33. package/lib/commands/dataset/sdk-doc.js +1 -1
  34. package/lib/commands/doctor.js +1 -1
  35. package/lib/commands/file/index.js +1 -1
  36. package/lib/commands/init.js +1 -1
  37. package/lib/commands/kb/index.js +1 -1
  38. package/lib/commands/logs/index.js +1 -1
  39. package/lib/commands/notification/config-list.js +1 -1
  40. package/lib/commands/notification/index.js +1 -1
  41. package/lib/commands/notification/shared.js +1 -1
  42. package/lib/commands/ocr/index.js +1 -1
  43. package/lib/commands/permit/dataset-get.js +1 -1
  44. package/lib/commands/permit/dataset-set.js +1 -1
  45. package/lib/commands/permit/index.js +1 -1
  46. package/lib/commands/permit/page-get.js +1 -1
  47. package/lib/commands/permit/page-set.js +1 -1
  48. package/lib/commands/permit/role-menus-set.js +1 -1
  49. package/lib/commands/permit/role-menus.js +1 -1
  50. package/lib/commands/permit/shared.js +1 -1
  51. package/lib/commands/personal-bff/index.js +1 -1
  52. package/lib/commands/registry.js +1 -1
  53. package/lib/commands/role/create.js +1 -1
  54. package/lib/commands/role/delete.js +1 -1
  55. package/lib/commands/role/detail.js +1 -1
  56. package/lib/commands/role/index.js +1 -1
  57. package/lib/commands/role/list.js +1 -1
  58. package/lib/commands/role/shared.js +1 -1
  59. package/lib/commands/role/update.js +1 -1
  60. package/lib/commands/role/user-add.js +1 -1
  61. package/lib/commands/role/user-remove.js +1 -1
  62. package/lib/commands/schedule/index.js +1 -1
  63. package/lib/commands/schema.js +1 -1
  64. package/lib/commands/service/dynamic.js +1 -1
  65. package/lib/commands/service/function-name-adapter.js +1 -1
  66. package/lib/commands/service/index.js +1 -1
  67. package/lib/commands/service/registry.js +1 -1
  68. package/lib/commands/skill/commands/create.js +1 -1
  69. package/lib/commands/skill/commands/diagram.js +1 -1
  70. package/lib/commands/skill/commands/install.js +1 -1
  71. package/lib/commands/skill/commands/list.js +1 -1
  72. package/lib/commands/skill/commands/push.js +1 -1
  73. package/lib/commands/skill/commands/validate.js +1 -1
  74. package/lib/commands/skill/diagram.js +1 -1
  75. package/lib/commands/skill/flags.js +1 -1
  76. package/lib/commands/skill/index.js +1 -1
  77. package/lib/commands/skill/manifest-helpers.js +1 -1
  78. package/lib/commands/skill/push-execute.js +1 -1
  79. package/lib/commands/skill/push-flow-helpers.js +1 -1
  80. package/lib/commands/skill/push-retarget.js +1 -1
  81. package/lib/commands/skill/scopes.js +1 -1
  82. package/lib/commands/skill/summary.js +1 -1
  83. package/lib/commands/skill/templates.js +1 -1
  84. package/lib/commands/skill/validate.js +1 -1
  85. package/lib/commands/sql/detail.js +1 -1
  86. package/lib/commands/sql/exec.js +1 -1
  87. package/lib/commands/sql/index.js +1 -1
  88. package/lib/commands/update.js +1 -1
  89. package/lib/commands/user-account/bind.js +1 -1
  90. package/lib/commands/user-account/index.js +1 -1
  91. package/lib/commands/workspace/index.js +1 -1
  92. package/lib/config/domain-config.js +1 -1
  93. package/lib/config/schema.js +1 -1
  94. package/lib/constant/app.js +1 -1
  95. package/lib/constant/auth-mode.js +1 -1
  96. package/lib/constant/cli.js +1 -1
  97. package/lib/constant/defaults.js +1 -1
  98. package/lib/constant/distribution.js +1 -1
  99. package/lib/constant/domain.js +1 -1
  100. package/lib/constant/env.js +1 -1
  101. package/lib/constant/output.js +1 -1
  102. package/lib/constant/product.js +1 -1
  103. package/lib/constant/region.js +1 -1
  104. package/lib/constant/risk.js +1 -1
  105. package/lib/constant/url.js +1 -1
  106. package/lib/context.js +1 -1
  107. package/lib/core/api-client.d.ts +6 -6
  108. package/lib/core/api-client.js +1 -1
  109. package/lib/core/db-resolver.js +1 -1
  110. package/lib/core/kb-management-client.d.ts +17 -0
  111. package/lib/core/kb-management-client.js +1 -0
  112. package/lib/core/kb-search-client.js +1 -1
  113. package/lib/core/sdk-client.js +1 -1
  114. package/lib/errors.js +1 -1
  115. package/lib/framework/access-error.js +1 -1
  116. package/lib/framework/build-all-flags.js +1 -1
  117. package/lib/framework/dryrun.js +1 -1
  118. package/lib/framework/flags.js +1 -1
  119. package/lib/framework/help.js +1 -1
  120. package/lib/framework/index.js +1 -1
  121. package/lib/framework/output.js +1 -1
  122. package/lib/framework/preparse.js +1 -1
  123. package/lib/framework/rate-limit.js +1 -1
  124. package/lib/framework/raw-flags.js +1 -1
  125. package/lib/framework/response.js +1 -1
  126. package/lib/framework/runner-confirmation.js +1 -1
  127. package/lib/framework/runner-error.js +1 -1
  128. package/lib/framework/runner.js +1 -1
  129. package/lib/framework/schema-export.js +1 -1
  130. package/lib/framework/service-order.js +1 -1
  131. package/lib/framework/types.js +1 -1
  132. package/lib/generated/build-info.d.ts +4 -4
  133. package/lib/generated/build-info.js +1 -1
  134. package/lib/generated/official-routing.js +1 -1
  135. package/lib/generated/routing-contract.js +1 -1
  136. package/lib/help.js +1 -1
  137. package/lib/postinstall.js +1 -1
  138. package/lib/runtime/confirmation.js +1 -1
  139. package/lib/runtime/event.js +1 -1
  140. package/lib/runtime/index.js +1 -1
  141. package/lib/runtime/queue.js +1 -1
  142. package/lib/runtime/resolve.js +1 -1
  143. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  144. package/lib/services/dataset-import/excel-reader.js +1 -1
  145. package/lib/services/dataset-import/image-bytes.js +1 -1
  146. package/lib/services/dataset-import/image-ooxml.js +1 -1
  147. package/lib/services/dataset-import/image-runner.js +1 -1
  148. package/lib/services/dataset-import/metadata.js +1 -1
  149. package/lib/services/dataset-import/preview.js +1 -1
  150. package/lib/services/dataset-import/runner.js +1 -1
  151. package/lib/skills/builtin-skill.js +1 -1
  152. package/lib/skills/npx-skills-add.js +1 -1
  153. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  154. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  155. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  156. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  157. package/lib/skills/runtime-skill-sync/links.js +1 -1
  158. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  159. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  160. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  161. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  162. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  163. package/lib/skills/runtime-skill-sync/push.js +1 -1
  164. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  165. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  166. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  167. package/lib/skills/runtime-skill-sync.js +1 -1
  168. package/lib/skills/skill-presence.js +1 -1
  169. package/lib/utils/access-key-redaction.js +1 -1
  170. package/lib/utils/apply-jq-filter.js +1 -1
  171. package/lib/utils/cli-version-check.js +1 -1
  172. package/lib/utils/cli-version-policy.js +1 -1
  173. package/lib/utils/logger.js +1 -1
  174. package/lib/utils/lossless-json.js +1 -1
  175. package/lib/utils/params.js +1 -1
  176. package/lib/utils/positive-safe-integer.js +1 -1
  177. package/lib/utils/redaction.js +1 -1
  178. package/lib/utils/update-notice.js +1 -1
  179. package/lib/utils/version.js +1 -1
  180. package/lib/utils/write-cli-side-channel.js +1 -1
  181. package/package.json +1 -1
  182. package/skills/lovrabet/SKILL.md +1 -1
  183. package/skills/lovrabet/references/lovrabet-kb-workflow.md +7 -3
  184. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- function a128_0xe151(){const _0x573ebc=['https://daily-api.lovrabet.com','29616GBLEJQ','326xaAkot','https://skills.lovrabet.com','Indonesia','https://runtime.lovrabet.com','753FSsOkK','5lPTKBa','https://skills-daily.lovrabet.com','https://daily-api.lovrabet.ai','https://skills.lovrabet.id','china','https://kb-service.lovrabet.id','414dFmyjy','https://user.lovrabet.ai','https://daily-runtime.lovrabet.ai','https://kb-service.lovrabet.com','https://runtime.lovrabet.id','1040370Bekmtw','https://api.lovrabet.ai','https://api.lovrabet.com','https://skills.lovrabet.ai','https://user.lovrabet.id','1998040OXGHsp','https://skills-daily.lovrabet.ai','https://user-daily.lovrabet.com','740742EJJwGs','https://api.lovrabet.id','https://user.lovrabet.com','49602jVGqXo','global','https://user-daily.lovrabet.ai','1313760CovPkn','indonesia','Mainland\x20China'];a128_0xe151=function(){return _0x573ebc;};return a128_0xe151();}const a128_0x54f485=a128_0x2f35;(function(_0x2fc951,_0x41bd4f){const _0x12fa52=a128_0x2f35,_0x26dcdf=_0x2fc951();while(!![]){try{const _0x3e8aee=parseInt(_0x12fa52(0x144))/0x1*(parseInt(_0x12fa52(0x140))/0x2)+-parseInt(_0x12fa52(0x12d))/0x3+parseInt(_0x12fa52(0x13b))/0x4+-parseInt(_0x12fa52(0x145))/0x5*(-parseInt(_0x12fa52(0x135))/0x6)+-parseInt(_0x12fa52(0x138))/0x7+parseInt(_0x12fa52(0x13f))/0x8*(parseInt(_0x12fa52(0x128))/0x9)+-parseInt(_0x12fa52(0x132))/0xa;if(_0x3e8aee===_0x41bd4f)break;else _0x26dcdf['push'](_0x26dcdf['shift']());}catch(_0x12665d){_0x26dcdf['push'](_0x26dcdf['shift']());}}}(a128_0xe151,0x2eb10));export const ROUTING_CATALOG_DIGEST='886843ef89aa4ff2b36d612e8fbd1b6c1840b37728916fba5699be34129ef579';function a128_0x2f35(_0x59c1cb,_0x28169b){_0x59c1cb=_0x59c1cb-0x124;const _0xe151d7=a128_0xe151();let _0x2f35a5=_0xe151d7[_0x59c1cb];return _0x2f35a5;}export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a128_0x54f485(0x139)];export const ENABLED_REGION_VALUES=['cn','id',a128_0x54f485(0x139)];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a128_0x54f485(0x13d),'aliases':[a128_0x54f485(0x126)],'serviceDomains':{'production':{'user':a128_0x54f485(0x137),'api':a128_0x54f485(0x12f),'runtime':a128_0x54f485(0x143),'skill':a128_0x54f485(0x141),'kbService':a128_0x54f485(0x12b)},'daily':{'user':a128_0x54f485(0x134),'api':a128_0x54f485(0x13e),'runtime':'https://daily-runtime.lovrabet.com','skill':a128_0x54f485(0x146),'kbService':'https://kb-service-daily.lovrabet.com'}}},'id':{'enabled':!![],'label':a128_0x54f485(0x142),'aliases':[a128_0x54f485(0x13c)],'serviceDomains':{'production':{'user':a128_0x54f485(0x131),'api':a128_0x54f485(0x136),'runtime':a128_0x54f485(0x12c),'skill':a128_0x54f485(0x125),'kbService':a128_0x54f485(0x127)}}},'global':{'enabled':!![],'label':'Global','aliases':[],'serviceDomains':{'production':{'user':a128_0x54f485(0x129),'api':a128_0x54f485(0x12e),'runtime':'https://runtime.lovrabet.ai','skill':a128_0x54f485(0x130)},'daily':{'user':a128_0x54f485(0x13a),'api':a128_0x54f485(0x124),'runtime':a128_0x54f485(0x12a),'skill':a128_0x54f485(0x133)}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
1
+ const a129_0x3bcdb3=a129_0x3c57;(function(_0x1108bf,_0x3a3046){const _0x248071=a129_0x3c57,_0x3e4ef7=_0x1108bf();while(!![]){try{const _0x3625d2=parseInt(_0x248071(0x17b))/0x1+parseInt(_0x248071(0x179))/0x2*(parseInt(_0x248071(0x174))/0x3)+parseInt(_0x248071(0x188))/0x4+parseInt(_0x248071(0x18e))/0x5*(parseInt(_0x248071(0x184))/0x6)+-parseInt(_0x248071(0x177))/0x7+parseInt(_0x248071(0x181))/0x8*(parseInt(_0x248071(0x16d))/0x9)+-parseInt(_0x248071(0x16a))/0xa;if(_0x3625d2===_0x3a3046)break;else _0x3e4ef7['push'](_0x3e4ef7['shift']());}catch(_0xebf29e){_0x3e4ef7['push'](_0x3e4ef7['shift']());}}}(a129_0x469f,0xb47ce));export const ROUTING_CATALOG_DIGEST=a129_0x3bcdb3(0x186);function a129_0x3c57(_0x151681,_0x283611){_0x151681=_0x151681-0x169;const _0x469f0a=a129_0x469f();let _0x3c57d7=_0x469f0a[_0x151681];return _0x3c57d7;}function a129_0x469f(){const _0x556e9f=['6575814tQOnLG','https://user-daily.lovrabet.com','Global','https://skills.lovrabet.id','https://runtime.lovrabet.id','https://daily-runtime.lovrabet.com','https://api.lovrabet.id','28041KitERX','https://user-daily.lovrabet.ai','https://skills.lovrabet.ai','4908505xbfMQi','china','54PPGdgP','https://runtime.lovrabet.com','752392kKLlqL','https://kb-service.lovrabet.id','Indonesia','https://kb-service-daily.lovrabet.com','https://user.lovrabet.ai','https://skills-daily.lovrabet.com','8BmzLTQ','https://daily-api.lovrabet.ai','https://runtime.lovrabet.ai','66894rQCsJw','global','886843ef89aa4ff2b36d612e8fbd1b6c1840b37728916fba5699be34129ef579','https://daily-runtime.lovrabet.ai','4714496OpvFmJ','Mainland\x20China','https://skills.lovrabet.com','https://skills-daily.lovrabet.ai','https://api.lovrabet.ai','https://user.lovrabet.id','485KPtvdW','https://daily-api.lovrabet.com','25549910VASWVv','https://api.lovrabet.com','indonesia'];a129_0x469f=function(){return _0x556e9f;};return a129_0x469f();}export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a129_0x3bcdb3(0x185)];export const ENABLED_REGION_VALUES=['cn','id','global'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a129_0x3bcdb3(0x189),'aliases':[a129_0x3bcdb3(0x178)],'serviceDomains':{'production':{'user':'https://user.lovrabet.com','api':a129_0x3bcdb3(0x16b),'runtime':a129_0x3bcdb3(0x17a),'skill':a129_0x3bcdb3(0x18a),'kbService':'https://kb-service.lovrabet.com'},'daily':{'user':a129_0x3bcdb3(0x16e),'api':a129_0x3bcdb3(0x169),'runtime':a129_0x3bcdb3(0x172),'skill':a129_0x3bcdb3(0x180),'kbService':a129_0x3bcdb3(0x17e)}}},'id':{'enabled':!![],'label':a129_0x3bcdb3(0x17d),'aliases':[a129_0x3bcdb3(0x16c)],'serviceDomains':{'production':{'user':a129_0x3bcdb3(0x18d),'api':a129_0x3bcdb3(0x173),'runtime':a129_0x3bcdb3(0x171),'skill':a129_0x3bcdb3(0x170),'kbService':a129_0x3bcdb3(0x17c)}}},'global':{'enabled':!![],'label':a129_0x3bcdb3(0x16f),'aliases':[],'serviceDomains':{'production':{'user':a129_0x3bcdb3(0x17f),'api':a129_0x3bcdb3(0x18c),'runtime':a129_0x3bcdb3(0x183),'skill':a129_0x3bcdb3(0x176)},'daily':{'user':a129_0x3bcdb3(0x175),'api':a129_0x3bcdb3(0x182),'runtime':a129_0x3bcdb3(0x187),'skill':a129_0x3bcdb3(0x18b)}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
@@ -1 +1 @@
1
- const a129_0x51a5b8=a129_0x2e94;(function(_0x44dbb1,_0x23a420){const _0x4bd0ea=a129_0x2e94,_0xe8935c=_0x44dbb1();while(!![]){try{const _0x481bd3=parseInt(_0x4bd0ea(0xdf))/0x1*(-parseInt(_0x4bd0ea(0xd3))/0x2)+-parseInt(_0x4bd0ea(0xcf))/0x3*(parseInt(_0x4bd0ea(0xd1))/0x4)+parseInt(_0x4bd0ea(0xd4))/0x5*(parseInt(_0x4bd0ea(0xce))/0x6)+-parseInt(_0x4bd0ea(0xd9))/0x7*(-parseInt(_0x4bd0ea(0xdd))/0x8)+parseInt(_0x4bd0ea(0xd0))/0x9+-parseInt(_0x4bd0ea(0xde))/0xa*(parseInt(_0x4bd0ea(0xdb))/0xb)+parseInt(_0x4bd0ea(0xd2))/0xc*(parseInt(_0x4bd0ea(0xe0))/0xd);if(_0x481bd3===_0x23a420)break;else _0xe8935c['push'](_0xe8935c['shift']());}catch(_0x243c45){_0xe8935c['push'](_0xe8935c['shift']());}}}(a129_0x3e42,0x82ec2));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a129_0x51a5b8(0xd8);export const ENTERPRISE_ROUTING_PROTOCOL=a129_0x51a5b8(0xcd);function a129_0x3e42(){const _0xab2fcc=['apiDomain','110KSZbOJ','skillDomain','13816UByuxp','710520gSXdGa','28844YCAuMe','26RhrJea','lovrabet-routing/v1','1581756yUIaIi','1086hyJfbg','318897DIfZoq','1248vgXwFf','4775688BOSemd','22QGVztg','5IAIjMP','userDomain','kbServiceDomain','runtimeDomain','e3423cad71c22edb18a8481be7bdb733ff2d4136c31aa3ae6da56271e32cced7','2359ddMmQz'];a129_0x3e42=function(){return _0xab2fcc;};return a129_0x3e42();}export const ENTERPRISE_ROUTING_KIND='enterprise';export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a129_0x51a5b8(0xd5),'apiDomain','runtimeDomain',a129_0x51a5b8(0xdc),a129_0x51a5b8(0xd6)];function a129_0x2e94(_0x3972b1,_0xb4299f){_0x3972b1=_0x3972b1-0xcd;const _0x3e4220=a129_0x3e42();let _0x2e94cf=_0x3e4220[_0x3972b1];return _0x2e94cf;}export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a129_0x51a5b8(0xd5),a129_0x51a5b8(0xda),a129_0x51a5b8(0xd7),a129_0x51a5b8(0xdc)];
1
+ const a130_0x3411ac=a130_0x26a8;(function(_0x355e2f,_0x1c50b1){const _0xaec6f7=a130_0x26a8,_0x5d49e8=_0x355e2f();while(!![]){try{const _0x54ea4f=-parseInt(_0xaec6f7(0x73))/0x1+-parseInt(_0xaec6f7(0x6f))/0x2+parseInt(_0xaec6f7(0x70))/0x3*(-parseInt(_0xaec6f7(0x7a))/0x4)+-parseInt(_0xaec6f7(0x75))/0x5+-parseInt(_0xaec6f7(0x72))/0x6*(parseInt(_0xaec6f7(0x77))/0x7)+-parseInt(_0xaec6f7(0x76))/0x8+parseInt(_0xaec6f7(0x71))/0x9;if(_0x54ea4f===_0x1c50b1)break;else _0x5d49e8['push'](_0x5d49e8['shift']());}catch(_0x1eb066){_0x5d49e8['push'](_0x5d49e8['shift']());}}}(a130_0x3cce,0xe7545));function a130_0x3cce(){const _0x58c3bd=['3565722ypKvCY','24387zMtVts','59288904OEIJEb','10214718sUZFiW','352934HUxUQm','e3423cad71c22edb18a8481be7bdb733ff2d4136c31aa3ae6da56271e32cced7','2817890ppGKAG','8540768OYgwPQ','7YtrIcj','lovrabet-routing/v1','kbServiceDomain','84VrHbpQ','runtimeDomain','userDomain','apiDomain'];a130_0x3cce=function(){return _0x58c3bd;};return a130_0x3cce();}function a130_0x26a8(_0x244eb8,_0x34e96a){_0x244eb8=_0x244eb8-0x6c;const _0x3cce2a=a130_0x3cce();let _0x26a8b9=_0x3cce2a[_0x244eb8];return _0x26a8b9;}export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a130_0x3411ac(0x74);export const ENTERPRISE_ROUTING_PROTOCOL=a130_0x3411ac(0x78);export const ENTERPRISE_ROUTING_KIND='enterprise';export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a130_0x3411ac(0x6d),a130_0x3411ac(0x6e),a130_0x3411ac(0x6c),'skillDomain',a130_0x3411ac(0x79)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a130_0x3411ac(0x6d),a130_0x3411ac(0x6e),'runtimeDomain','skillDomain'];
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x49bc1a,_0x13c517){const _0x4b6824=a130_0x5727,_0x384d31=_0x49bc1a();while(!![]){try{const _0x39754a=parseInt(_0x4b6824(0x195))/0x1*(-parseInt(_0x4b6824(0x190))/0x2)+-parseInt(_0x4b6824(0x197))/0x3+parseInt(_0x4b6824(0x191))/0x4+-parseInt(_0x4b6824(0x193))/0x5+parseInt(_0x4b6824(0x18d))/0x6*(-parseInt(_0x4b6824(0x18e))/0x7)+parseInt(_0x4b6824(0x18f))/0x8+parseInt(_0x4b6824(0x192))/0x9*(parseInt(_0x4b6824(0x196))/0xa);if(_0x39754a===_0x13c517)break;else _0x384d31['push'](_0x384d31['shift']());}catch(_0x7add45){_0x384d31['push'](_0x384d31['shift']());}}}(a130_0x2303,0x3f9f7));import{jsx as a130_0x1e9d2f,jsxs as a130_0x2380a3}from'react/jsx-runtime';function a130_0x2303(){const _0x9267c9=['1250904GzIwzk','124vNJikw','1679164oKmiPr','2079aYuebt','2532305QrAPCf','\x20\x20Use\x20','2018ycfXTX','23250bHwsMN','518613foXsHJ','green','144546FjiUvI','14aHALjb'];a130_0x2303=function(){return _0x9267c9;};return a130_0x2303();}import{useEffect}from'react';function a130_0x5727(_0x2027c1,_0x4ddad6){_0x2027c1=_0x2027c1-0x18d;const _0x230346=a130_0x2303();let _0x57274c=_0x230346[_0x2027c1];return _0x57274c;}import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x3f6a8c=a130_0x5727,{exit:_0x2e6bb9}=useApp();return useEffect(()=>{_0x2e6bb9();},[_0x2e6bb9]),a130_0x2380a3(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a130_0x1e9d2f(Box,{'children':a130_0x1e9d2f(Text,{'bold':!![],'color':_0x3f6a8c(0x198),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a130_0x2380a3(Box,{'marginTop':0x1,'children':[a130_0x1e9d2f(Text,{'dimColor':!![],'children':_0x3f6a8c(0x194)}),a130_0x1e9d2f(Text,{'bold':!![],'color':'green','children':CLI_BIN_NAME+'\x20--help'}),a130_0x1e9d2f(Text,{'dimColor':!![],'children':'\x20to\x20view\x20available\x20commands.'})]})]});}
1
+ (function(_0x2f9092,_0x323014){const _0x63eeb=a131_0x1797,_0x271e9c=_0x2f9092();while(!![]){try{const _0x4759bd=-parseInt(_0x63eeb(0x18a))/0x1+-parseInt(_0x63eeb(0x18b))/0x2+parseInt(_0x63eeb(0x188))/0x3*(parseInt(_0x63eeb(0x187))/0x4)+-parseInt(_0x63eeb(0x18c))/0x5*(-parseInt(_0x63eeb(0x18f))/0x6)+-parseInt(_0x63eeb(0x189))/0x7*(parseInt(_0x63eeb(0x192))/0x8)+parseInt(_0x63eeb(0x186))/0x9*(-parseInt(_0x63eeb(0x185))/0xa)+parseInt(_0x63eeb(0x193))/0xb;if(_0x4759bd===_0x323014)break;else _0x271e9c['push'](_0x271e9c['shift']());}catch(_0x456afd){_0x271e9c['push'](_0x271e9c['shift']());}}}(a131_0x54d1,0x96e41));function a131_0x54d1(){const _0x30f705=['1848148MDGaAf','110DybqEA','\x20--help','\x20\x20Use\x20','134484TLdpgd','green','column','630368kyNUts','15053676CBkmlq','350gEwEGL','116001ZXqOMV','4740908FQzPgq','3hAUICo','91wXSCiX','29265kUnOPQ'];a131_0x54d1=function(){return _0x30f705;};return a131_0x54d1();}import{jsx as a131_0xfce708,jsxs as a131_0x24b360}from'react/jsx-runtime';function a131_0x1797(_0x25d758,_0x5030fb){_0x25d758=_0x25d758-0x185;const _0x54d12e=a131_0x54d1();let _0x17974b=_0x54d12e[_0x25d758];return _0x17974b;}import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x5073f2=a131_0x1797,{exit:_0x5d3a0c}=useApp();return useEffect(()=>{_0x5d3a0c();},[_0x5d3a0c]),a131_0x24b360(Box,{'flexDirection':_0x5073f2(0x191),'marginTop':0x1,'marginBottom':0x1,'children':[a131_0xfce708(Box,{'children':a131_0xfce708(Text,{'bold':!![],'color':_0x5073f2(0x190),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a131_0x24b360(Box,{'marginTop':0x1,'children':[a131_0xfce708(Text,{'dimColor':!![],'children':_0x5073f2(0x18e)}),a131_0xfce708(Text,{'bold':!![],'color':_0x5073f2(0x190),'children':CLI_BIN_NAME+_0x5073f2(0x18d)}),a131_0xfce708(Text,{'dimColor':!![],'children':'\x20to\x20view\x20available\x20commands.'})]})]});}
@@ -1 +1 @@
1
- function a131_0x12d8(_0x5d159a,_0x28d814){_0x5d159a=_0x5d159a-0xc3;const _0x22c8a7=a131_0x22c8();let _0x12d8a0=_0x22c8a7[_0x5d159a];return _0x12d8a0;}(function(_0x3f775f,_0x45b6e4){const _0x5318c6=a131_0x12d8,_0x5f303c=_0x3f775f();while(!![]){try{const _0x40c92b=parseInt(_0x5318c6(0xd0))/0x1+-parseInt(_0x5318c6(0xcb))/0x2+parseInt(_0x5318c6(0xca))/0x3+-parseInt(_0x5318c6(0xcf))/0x4+parseInt(_0x5318c6(0xd1))/0x5+parseInt(_0x5318c6(0xc9))/0x6*(-parseInt(_0x5318c6(0xd2))/0x7)+-parseInt(_0x5318c6(0xd4))/0x8*(-parseInt(_0x5318c6(0xce))/0x9);if(_0x40c92b===_0x45b6e4)break;else _0x5f303c['push'](_0x5f303c['shift']());}catch(_0x577d38){_0x5f303c['push'](_0x5f303c['shift']());}}}(a131_0x22c8,0x69c04));import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x2022d3={}){const _0x301126=a131_0x12d8,_0x5a08ab=installBuiltinSkill(_0x2022d3);if(_0x5a08ab['ok']){const _0x433500=_0x5a08ab['changed']?_0x301126(0xc6):_0x301126(0xcd),_0x991fff=_0x5a08ab[_0x301126(0xcc)]?_0x301126(0xd6)+_0x5a08ab[_0x301126(0xcc)]:'\x20via\x20skills@latest';return console['log'](_0x301126(0xc7)+_0x5a08ab['skillVersion']+'\x20'+_0x433500+_0x991fff),_0x5a08ab;}const _0x513a5b=_0x301126(0xc5)+(_0x5a08ab[_0x301126(0xc4)]??_0x301126(0xd3))+']\x20'+(_0x5a08ab['error']??'Installation\x20failed')+'.\x20'+('Repair\x20with:\x20'+_0x5a08ab[_0x301126(0xc8)]);if(_0x5a08ab['code']===_0x301126(0xc3))throw new Error(_0x513a5b);return console[_0x301126(0xd5)](_0x513a5b),_0x5a08ab;}function a131_0x22c8(){const _0x4af489=['FAILED','5416MdNVeR','warn','\x20at\x20','SOURCE_INVALID','code','[BUILTIN_SKILL_INSTALL_','installed','Lovrabet\x20Built-in\x20Skill\x20','repairCommand','4493106BbEZqV','2280585PkZSum','481794JZepdH','installedPath','already\x20current','6210oicvRn','662244mHOUrG','314464WqZPAT','233380QJvKza','7tnwYjr'];a131_0x22c8=function(){return _0x4af489;};return a131_0x22c8();}
1
+ (function(_0x151a47,_0x2b1a31){const _0x5a25f6=a132_0x2bf8,_0xa3109a=_0x151a47();while(!![]){try{const _0x5bc6ce=-parseInt(_0x5a25f6(0xb1))/0x1*(parseInt(_0x5a25f6(0xa9))/0x2)+parseInt(_0x5a25f6(0xaf))/0x3+parseInt(_0x5a25f6(0xb0))/0x4*(-parseInt(_0x5a25f6(0xa1))/0x5)+parseInt(_0x5a25f6(0xa6))/0x6+-parseInt(_0x5a25f6(0xb6))/0x7+parseInt(_0x5a25f6(0xa8))/0x8+-parseInt(_0x5a25f6(0xab))/0x9;if(_0x5bc6ce===_0x2b1a31)break;else _0xa3109a['push'](_0xa3109a['shift']());}catch(_0x3c08c3){_0xa3109a['push'](_0xa3109a['shift']());}}}(a132_0x2ba4,0x7a9e8));function a132_0x2ba4(){const _0x294f41=['FAILED','\x20via\x20skills@latest','355065bJfwzy','SOURCE_INVALID','warn','Repair\x20with:\x20','code','5952198myTRJe','installedPath','2116104aZPuyo','6794ErgFSJ','repairCommand','3344337ZNOFHU','[BUILTIN_SKILL_INSTALL_','installed','log','1980120dbeCZZ','16gltxZk','113DoSsla','changed','Installation\x20failed','error','Lovrabet\x20Built-in\x20Skill\x20','2623824DfgChJ','already\x20current'];a132_0x2ba4=function(){return _0x294f41;};return a132_0x2ba4();}import{installBuiltinSkill}from'./skills/builtin-skill.js';function a132_0x2bf8(_0x4b0972,_0x1888d1){_0x4b0972=_0x4b0972-0xa0;const _0x2ba455=a132_0x2ba4();let _0x2bf876=_0x2ba455[_0x4b0972];return _0x2bf876;}export async function runPostinstall(_0x511775={}){const _0x33b8a4=a132_0x2bf8,_0x4b4c23=installBuiltinSkill(_0x511775);if(_0x4b4c23['ok']){const _0x42efb7=_0x4b4c23[_0x33b8a4(0xb2)]?_0x33b8a4(0xad):_0x33b8a4(0xb7),_0x312a37=_0x4b4c23[_0x33b8a4(0xa7)]?'\x20at\x20'+_0x4b4c23[_0x33b8a4(0xa7)]:_0x33b8a4(0xa0);return console[_0x33b8a4(0xae)](_0x33b8a4(0xb5)+_0x4b4c23['skillVersion']+'\x20'+_0x42efb7+_0x312a37),_0x4b4c23;}const _0x15cadc=_0x33b8a4(0xac)+(_0x4b4c23[_0x33b8a4(0xa5)]??_0x33b8a4(0xb8))+']\x20'+(_0x4b4c23[_0x33b8a4(0xb4)]??_0x33b8a4(0xb3))+'.\x20'+(_0x33b8a4(0xa4)+_0x4b4c23[_0x33b8a4(0xaa)]);if(_0x4b4c23[_0x33b8a4(0xa5)]===_0x33b8a4(0xa2))throw new Error(_0x15cadc);return console[_0x33b8a4(0xa3)](_0x15cadc),_0x4b4c23;}
@@ -1 +1 @@
1
- function a132_0x1e27(){const _0x55010a=['219950IiGvon','1155822sYCsNS','1801233RhhqEZ','risk','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','5oOoMoy','1125160IsYvmn','24EDBmHm','slice','383324tQaNRm','description','Run\x20this\x20write\x20operation','write','high-risk-write','690282UDcTcf','969819SLwKfB','replace','confirmationDescription','string'];a132_0x1e27=function(){return _0x55010a;};return a132_0x1e27();}(function(_0x1f6545,_0x53111a){const _0x5bc301=a132_0x5cf4,_0x354b1c=_0x1f6545();while(!![]){try{const _0x18af40=parseInt(_0x5bc301(0x1e7))/0x1+-parseInt(_0x5bc301(0x1f0))/0x2+-parseInt(_0x5bc301(0x1f6))/0x3+parseInt(_0x5bc301(0x1ed))/0x4+parseInt(_0x5bc301(0x1ec))/0x5*(parseInt(_0x5bc301(0x1e8))/0x6)+parseInt(_0x5bc301(0x1e9))/0x7+parseInt(_0x5bc301(0x1ee))/0x8*(-parseInt(_0x5bc301(0x1f5))/0x9);if(_0x18af40===_0x53111a)break;else _0x354b1c['push'](_0x354b1c['shift']());}catch(_0x2be942){_0x354b1c['push'](_0x354b1c['shift']());}}}(a132_0x1e27,0x32557));function a132_0x5cf4(_0x4c8433,_0x2683f6){_0x4c8433=_0x4c8433-0x1e4;const _0x1e2730=a132_0x1e27();let _0x5cf4cc=_0x1e2730[_0x4c8433];return _0x5cf4cc;}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x378634,_0x54c4bc,_0x5472b3){const _0x1639aa=a132_0x5cf4,_0x5c8621=normalizeText(_0x378634[_0x1639aa(0x1e5)],DESCRIPTION_MAX_LENGTH),_0x11d83c=normalizeText(_0x378634[_0x1639aa(0x1f1)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x54c4bc,'risk':requireWriteRisk(_0x378634),'description':_0x5c8621||_0x11d83c||_0x1639aa(0x1f2),..._0x5472b3?{'signal':_0x5472b3}:{}};}function requireWriteRisk(_0x40d6de){const _0x455d9b=a132_0x5cf4;if(_0x40d6de['risk']===_0x455d9b(0x1f3)||_0x40d6de['risk']===_0x455d9b(0x1f4))return _0x40d6de[_0x455d9b(0x1ea)];throw new Error(_0x455d9b(0x1eb));}function normalizeText(_0x291b57,_0x2415d6){const _0x39cde2=a132_0x5cf4;if(typeof _0x291b57!==_0x39cde2(0x1e6))return'';return _0x291b57[_0x39cde2(0x1e4)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x39cde2(0x1e4)](/\s+/g,'\x20')['trim']()[_0x39cde2(0x1ef)](0x0,_0x2415d6);}
1
+ (function(_0x4960c5,_0x266d03){const _0x4abad0=a133_0xe97d,_0x14c4b8=_0x4960c5();while(!![]){try{const _0x40949f=-parseInt(_0x4abad0(0x7c))/0x1+-parseInt(_0x4abad0(0x7a))/0x2*(-parseInt(_0x4abad0(0x6c))/0x3)+-parseInt(_0x4abad0(0x73))/0x4*(-parseInt(_0x4abad0(0x79))/0x5)+-parseInt(_0x4abad0(0x76))/0x6+-parseInt(_0x4abad0(0x72))/0x7+-parseInt(_0x4abad0(0x6e))/0x8*(parseInt(_0x4abad0(0x7d))/0x9)+parseInt(_0x4abad0(0x80))/0xa*(parseInt(_0x4abad0(0x7b))/0xb);if(_0x40949f===_0x266d03)break;else _0x14c4b8['push'](_0x14c4b8['shift']());}catch(_0x4965bc){_0x14c4b8['push'](_0x14c4b8['shift']());}}}(a133_0x14d0,0x8ace7));function a133_0xe97d(_0x572969,_0x480fed){_0x572969=_0x572969-0x6c;const _0x14d0d8=a133_0x14d0();let _0xe97db0=_0x14d0d8[_0x572969];return _0xe97db0;}function a133_0x14d0(){const _0x190532=['description','replace','5653420lSfqAH','2571069OmDUNQ','string','1192wjQndT','slice','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','trim','2270037ACYnLW','212VPlwyL','Run\x20this\x20write\x20operation','high-risk-write','1533474QmfxmT','risk','write','40780dGbCKh','2ybasVK','22VqyRlH','260142kAOzzM','61092CNhNtz'];a133_0x14d0=function(){return _0x190532;};return a133_0x14d0();}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x3d8026,_0x2a1d45,_0x5dec2a){const _0x5dbaa1=a133_0xe97d,_0x5a26ca=normalizeText(_0x3d8026['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x16519e=normalizeText(_0x3d8026[_0x5dbaa1(0x7e)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x2a1d45,'risk':requireWriteRisk(_0x3d8026),'description':_0x5a26ca||_0x16519e||_0x5dbaa1(0x74),..._0x5dec2a?{'signal':_0x5dec2a}:{}};}function requireWriteRisk(_0x4d832f){const _0x2cc275=a133_0xe97d;if(_0x4d832f[_0x2cc275(0x77)]===_0x2cc275(0x78)||_0x4d832f[_0x2cc275(0x77)]===_0x2cc275(0x75))return _0x4d832f[_0x2cc275(0x77)];throw new Error(_0x2cc275(0x70));}function normalizeText(_0x2b97ab,_0x27271a){const _0x392f81=a133_0xe97d;if(typeof _0x2b97ab!==_0x392f81(0x6d))return'';return _0x2b97ab[_0x392f81(0x7f)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x392f81(0x7f)](/\s+/g,'\x20')[_0x392f81(0x71)]()[_0x392f81(0x6f)](0x0,_0x27271a);}
@@ -1 +1 @@
1
- (function(_0x47d7e3,_0x246240){const _0x1b690e=a133_0x5d3f,_0x3a9e9d=_0x47d7e3();while(!![]){try{const _0x59a418=parseInt(_0x1b690e(0x1db))/0x1*(-parseInt(_0x1b690e(0x1dd))/0x2)+parseInt(_0x1b690e(0x1d5))/0x3+-parseInt(_0x1b690e(0x1de))/0x4+-parseInt(_0x1b690e(0x1d6))/0x5+parseInt(_0x1b690e(0x1e2))/0x6+parseInt(_0x1b690e(0x1da))/0x7*(parseInt(_0x1b690e(0x1e3))/0x8)+-parseInt(_0x1b690e(0x1d7))/0x9*(-parseInt(_0x1b690e(0x1e0))/0xa);if(_0x59a418===_0x246240)break;else _0x3a9e9d['push'](_0x3a9e9d['shift']());}catch(_0x442444){_0x3a9e9d['push'](_0x3a9e9d['shift']());}}}(a133_0x513f,0x32826));export function canonicalLovrabetOperation(_0x1e42eb){const _0x5182f7=a133_0x5d3f;return[_0x1e42eb[_0x5182f7(0x1e4)],..._0x1e42eb[_0x5182f7(0x1d9)][_0x5182f7(0x1d4)]()[_0x5182f7(0x1e1)](/\s+/)][_0x5182f7(0x1df)](Boolean)['join']('.');}function a133_0x513f(){const _0xe3f39d=['write','10TiMAep','802536EIYbXn','filter','12850pBZGUZ','split','1738182bJIbXU','31208vFbPRz','service','risk','trim','119676mTSnLp','753420WDSfPg','585JjnAIj','lovrabet.write.completed','command','595XGTTDE','37299ExnwxV'];a133_0x513f=function(){return _0xe3f39d;};return a133_0x513f();}function a133_0x5d3f(_0x86cbcb,_0x26817b){_0x86cbcb=_0x86cbcb-0x1d4;const _0x513fdf=a133_0x513f();let _0x5d3f6c=_0x513fdf[_0x86cbcb];return _0x5d3f6c;}export function createLovrabetWriteMetadata(_0xd625ed,_0x2dba1d,_0x3f70b1,_0x396f3d){const _0x43506c=a133_0x5d3f;if(_0x396f3d||_0x3f70b1['ok']!==!![]||_0xd625ed[_0x43506c(0x1e5)]!==_0x43506c(0x1dc)&&_0xd625ed[_0x43506c(0x1e5)]!=='high-risk-write')return undefined;const _0x151bdd=_0xd625ed['writeEventSubject']?.(_0x3f70b1),_0x213abf={'type':_0x43506c(0x1d8),'operation':_0x2dba1d,'risk':_0xd625ed[_0x43506c(0x1e5)],..._0x151bdd?{'subject':_0x151bdd}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x213abf}};}
1
+ (function(_0x4a7181,_0x41324d){const _0x26df2a=a134_0x453a,_0x150c05=_0x4a7181();while(!![]){try{const _0x23cce4=-parseInt(_0x26df2a(0x12c))/0x1+parseInt(_0x26df2a(0x12b))/0x2+-parseInt(_0x26df2a(0x12f))/0x3*(parseInt(_0x26df2a(0x12a))/0x4)+-parseInt(_0x26df2a(0x130))/0x5*(-parseInt(_0x26df2a(0x128))/0x6)+parseInt(_0x26df2a(0x126))/0x7+parseInt(_0x26df2a(0x127))/0x8+-parseInt(_0x26df2a(0x132))/0x9;if(_0x23cce4===_0x41324d)break;else _0x150c05['push'](_0x150c05['shift']());}catch(_0x5861c0){_0x150c05['push'](_0x150c05['shift']());}}}(a134_0x2f7e,0x93121));function a134_0x453a(_0xc3add3,_0x378afb){_0xc3add3=_0xc3add3-0x124;const _0x2f7eaf=a134_0x2f7e();let _0x453aca=_0x2f7eaf[_0xc3add3];return _0x453aca;}function a134_0x2f7e(){const _0x4cbe51=['write','6FJyNVp','494515BrHizn','high-risk-write','14189670PqfBNZ','split','trim','service','3196935rVnYBs','7281184onwZft','24EKarem','risk','12504nUOEWr','2369748Lizgcg','762056YoIxIi','lovrabet.write.completed'];a134_0x2f7e=function(){return _0x4cbe51;};return a134_0x2f7e();}export function canonicalLovrabetOperation(_0x1d6421){const _0x286e85=a134_0x453a;return[_0x1d6421[_0x286e85(0x125)],..._0x1d6421['command'][_0x286e85(0x124)]()[_0x286e85(0x133)](/\s+/)]['filter'](Boolean)['join']('.');}export function createLovrabetWriteMetadata(_0x526f83,_0x1712a8,_0x45fffa,_0x4ea7a0){const _0x34e6ff=a134_0x453a;if(_0x4ea7a0||_0x45fffa['ok']!==!![]||_0x526f83[_0x34e6ff(0x129)]!==_0x34e6ff(0x12e)&&_0x526f83['risk']!==_0x34e6ff(0x131))return undefined;const _0x40bc2d=_0x526f83['writeEventSubject']?.(_0x45fffa),_0xcd61b1={'type':_0x34e6ff(0x12d),'operation':_0x1712a8,'risk':_0x526f83[_0x34e6ff(0x129)],..._0x40bc2d?{'subject':_0x40bc2d}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0xcd61b1}};}
@@ -1 +1 @@
1
- (function(_0x505767,_0x18e587){const _0x2907de=a134_0x1631,_0xc078d3=_0x505767();while(!![]){try{const _0x480b7c=-parseInt(_0x2907de(0x96))/0x1+-parseInt(_0x2907de(0x7d))/0x2+parseInt(_0x2907de(0x9b))/0x3*(parseInt(_0x2907de(0x83))/0x4)+parseInt(_0x2907de(0x80))/0x5*(parseInt(_0x2907de(0x82))/0x6)+-parseInt(_0x2907de(0x8c))/0x7*(parseInt(_0x2907de(0x91))/0x8)+-parseInt(_0x2907de(0x8a))/0x9*(-parseInt(_0x2907de(0x92))/0xa)+parseInt(_0x2907de(0x7c))/0xb*(parseInt(_0x2907de(0x79))/0xc);if(_0x480b7c===_0x18e587)break;else _0xc078d3['push'](_0xc078d3['shift']());}catch(_0x20025c){_0xc078d3['push'](_0xc078d3['shift']());}}}(a134_0x1278,0x31fd1));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';function a134_0x1278(){const _0x2285f4=['command','12947DsrstP','735762QqBCue','confirm','signal','665030huCuPO','AbortError','12UFAzTx','2764YgVZaK','rawFlags','isNonInteractive','execute','reason','present','aborted','9czHwnt','dryRun','1778952ytSSMJ','result','presentation','stringify','Lovrabet\x20invocation\x20aborted.','8weupFG','2076430bGzuYu','riskLevel','definition','high-risk-write','20732ZTJseW','yes','dry-run','data','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','1434MADqJr','message','args','write','risk','444SEDiuW','format'];a134_0x1278=function(){return _0x2285f4;};return a134_0x1278();}import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x2c2cd7,command:_0x48b530,risk:_0x551b59,dryRun:_0x4b24a1}){const _0x5936b8=a134_0x1631;return JSON[_0x5936b8(0x8f)]({'ok':_0x2c2cd7['ok'],'command':_0x48b530,'risk':_0x551b59,..._0x4b24a1?{'dryRun':!![]}:{},..._0x2c2cd7[_0x5936b8(0x99)]!==undefined?{'data':_0x2c2cd7['data']}:{},..._0x2c2cd7[_0x5936b8(0x9c)]?{'message':_0x2c2cd7[_0x5936b8(0x9c)]}:{}});}};export async function invokeLovrabet(_0x161abf,_0x25302b){const _0x61bfe3=a134_0x1631;throwIfAborted(_0x25302b[_0x61bfe3(0x7f)]);const _0x54390d=await resolveLovrabetInvocation(_0x161abf),_0x206a06=canonicalLovrabetOperation(_0x54390d[_0x61bfe3(0x94)]);return await confirmWriteBeforeQueue(_0x54390d['definition'],_0x54390d[_0x61bfe3(0x84)],_0x206a06,_0x25302b),runSerialized(async()=>{const _0xd5fa48=_0x61bfe3;throwIfAborted(_0x25302b[_0xd5fa48(0x7f)]);const _0x535592={},_0x1284bf=buildConfigFromFlags(_0x54390d[_0xd5fa48(0x84)]);await initGlobalEnvironment(_0x1284bf);const _0x236bf6=createPipelineEnv(_0x1284bf,{..._0x54390d[_0xd5fa48(0x84)],'yes':_0x54390d[_0xd5fa48(0x94)]['risk']===_0xd5fa48(0x95)?!![]:_0x54390d[_0xd5fa48(0x84)][_0xd5fa48(0x97)],'nonInteractive':!![]});_0x236bf6[_0xd5fa48(0x9d)]=_0x54390d[_0xd5fa48(0x9d)],_0x236bf6[_0xd5fa48(0x85)]=!![],_0x236bf6[_0xd5fa48(0x93)]='high-risk-write';const _0xb510d=withAbortSignal(_0x54390d[_0xd5fa48(0x94)],_0x25302b[_0xd5fa48(0x7f)]),_0x4be034=createLovrabetRunnerAdapter({'formatOutput'(_0xe48d34,_0x39e36a){const _0xc28b9b=_0xd5fa48;_0x535592[_0xc28b9b(0x8d)]=_0xe48d34,_0x535592[_0xc28b9b(0x7b)]=_0x39e36a[_0xc28b9b(0x7b)],_0x535592[_0xc28b9b(0x78)]=_0x39e36a[_0xc28b9b(0x78)],_0x535592[_0xc28b9b(0x7a)]=_0x39e36a[_0xc28b9b(0x7a)],_0x535592['dryRun']=_0x39e36a[_0xc28b9b(0x8b)]===!![];},async 'confirmHighRisk'(){const _0x2818b9=_0xd5fa48;throw new Error(_0x2818b9(0x9a));}});try{await runCommand(_0xb510d,_0x236bf6,_0x4be034);if(!_0x535592[_0xd5fa48(0x8d)]||!_0x535592[_0xd5fa48(0x7b)]||!_0x535592[_0xd5fa48(0x78)]||!_0x535592[_0xd5fa48(0x7a)])throw new Error('Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x533795=_0x25302b[_0xd5fa48(0x8e)]??defaultPresentation,_0x54853c=_0x535592[_0xd5fa48(0x8b)]===!![],_0x1107f4={'result':_0x535592[_0xd5fa48(0x8d)],'command':_0x535592[_0xd5fa48(0x7b)],'operation':_0x206a06,'risk':_0x535592[_0xd5fa48(0x78)],'format':_0x535592['format'],'dryRun':_0x54853c},_0x4f5fac=createLovrabetWriteMetadata(_0x54390d[_0xd5fa48(0x94)],_0x206a06,_0x535592[_0xd5fa48(0x8d)],_0x54853c);let _0x2d81bb;try{_0x2d81bb=await _0x533795[_0xd5fa48(0x88)](_0x1107f4);}catch(_0x4ed93b){if(!_0x4f5fac||_0x533795===defaultPresentation)throw _0x4ed93b;_0x2d81bb=await defaultPresentation[_0xd5fa48(0x88)](_0x1107f4);}return{'operation':_0x206a06,'risk':_0x535592[_0xd5fa48(0x78)],'mode':_0x54853c?_0xd5fa48(0x98):_0xd5fa48(0x86),'result':_0x535592['result'],'output':_0x2d81bb,..._0x4f5fac?{'metadata':_0x4f5fac}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x4d9166,_0x88b1a7,_0x228e44,_0x3e5c7e){const _0x5ce7a8=a134_0x1631;if(_0x88b1a7['dryRun']===!![]||_0x4d9166[_0x5ce7a8(0x78)]!==_0x5ce7a8(0x77)&&_0x4d9166[_0x5ce7a8(0x78)]!=='high-risk-write')return;await _0x3e5c7e['confirmation'][_0x5ce7a8(0x7e)](buildLovrabetConfirmationRequest(_0x4d9166,_0x228e44,_0x3e5c7e[_0x5ce7a8(0x7f)]));}function a134_0x1631(_0x7f988,_0x5c4308){_0x7f988=_0x7f988-0x77;const _0x127886=a134_0x1278();let _0x16315a=_0x127886[_0x7f988];return _0x16315a;}function withAbortSignal(_0x71b892,_0xf448e){return{..._0x71b892,async 'execute'(_0x430453){const _0x474497=a134_0x1631;return throwIfAborted(_0xf448e),_0x71b892[_0x474497(0x86)]({..._0x430453,'signal':_0xf448e});}};}function throwIfAborted(_0x3ef1cc){const _0x474f93=a134_0x1631;if(_0x3ef1cc?.[_0x474f93(0x89)])throw _0x3ef1cc[_0x474f93(0x87)]instanceof Error?_0x3ef1cc['reason']:new DOMException(_0x474f93(0x90),_0x474f93(0x81));}
1
+ (function(_0x3c228e,_0x3d588a){const _0xd5d115=a135_0x3ed3,_0x172d39=_0x3c228e();while(!![]){try{const _0x521394=parseInt(_0xd5d115(0xf9))/0x1*(parseInt(_0xd5d115(0xfd))/0x2)+parseInt(_0xd5d115(0xf5))/0x3+-parseInt(_0xd5d115(0xe6))/0x4*(-parseInt(_0xd5d115(0xe4))/0x5)+-parseInt(_0xd5d115(0xf3))/0x6+parseInt(_0xd5d115(0xe2))/0x7+parseInt(_0xd5d115(0xf8))/0x8*(-parseInt(_0xd5d115(0xee))/0x9)+-parseInt(_0xd5d115(0xeb))/0xa*(parseInt(_0xd5d115(0xfa))/0xb);if(_0x521394===_0x3d588a)break;else _0x172d39['push'](_0x172d39['shift']());}catch(_0x5cc493){_0x172d39['push'](_0x172d39['shift']());}}}(a135_0x2ff5,0xca796));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:_0x51c27d,command:_0x2bd3f6,risk:_0x38c1e4,dryRun:_0x496164}){const _0x4466c0=a135_0x3ed3;return JSON[_0x4466c0(0xfb)]({'ok':_0x51c27d['ok'],'command':_0x2bd3f6,'risk':_0x38c1e4,..._0x496164?{'dryRun':!![]}:{},..._0x51c27d[_0x4466c0(0x101)]!==undefined?{'data':_0x51c27d[_0x4466c0(0x101)]}:{},..._0x51c27d['message']?{'message':_0x51c27d['message']}:{}});}};export async function invokeLovrabet(_0x5e3a25,_0x2b0494){const _0x149b0c=a135_0x3ed3;throwIfAborted(_0x2b0494[_0x149b0c(0xe7)]);const _0x1ce833=await resolveLovrabetInvocation(_0x5e3a25),_0x1805b7=canonicalLovrabetOperation(_0x1ce833[_0x149b0c(0xf4)]);return await confirmWriteBeforeQueue(_0x1ce833[_0x149b0c(0xf4)],_0x1ce833[_0x149b0c(0xf2)],_0x1805b7,_0x2b0494),runSerialized(async()=>{const _0x28e1c6=_0x149b0c;throwIfAborted(_0x2b0494[_0x28e1c6(0xe7)]);const _0x298424={},_0x592e71=buildConfigFromFlags(_0x1ce833[_0x28e1c6(0xf2)]);await initGlobalEnvironment(_0x592e71);const _0x4fdacb=createPipelineEnv(_0x592e71,{..._0x1ce833[_0x28e1c6(0xf2)],'yes':_0x1ce833[_0x28e1c6(0xf4)]['risk']===_0x28e1c6(0xfc)?!![]:_0x1ce833[_0x28e1c6(0xf2)]['yes'],'nonInteractive':!![]});_0x4fdacb['args']=_0x1ce833[_0x28e1c6(0xec)],_0x4fdacb['isNonInteractive']=!![],_0x4fdacb[_0x28e1c6(0xf7)]=_0x28e1c6(0xfc);const _0x673aca=withAbortSignal(_0x1ce833[_0x28e1c6(0xf4)],_0x2b0494[_0x28e1c6(0xe7)]),_0x4594b5=createLovrabetRunnerAdapter({'formatOutput'(_0x3dbe2f,_0x203f53){const _0x5218c8=_0x28e1c6;_0x298424['result']=_0x3dbe2f,_0x298424[_0x5218c8(0xe9)]=_0x203f53[_0x5218c8(0xe9)],_0x298424[_0x5218c8(0xfe)]=_0x203f53['risk'],_0x298424[_0x5218c8(0xef)]=_0x203f53[_0x5218c8(0xef)],_0x298424[_0x5218c8(0xe3)]=_0x203f53[_0x5218c8(0xe3)]===!![];},async 'confirmHighRisk'(){const _0x23e599=_0x28e1c6;throw new Error(_0x23e599(0xe8));}});try{await runCommand(_0x673aca,_0x4fdacb,_0x4594b5);if(!_0x298424[_0x28e1c6(0x100)]||!_0x298424[_0x28e1c6(0xe9)]||!_0x298424['risk']||!_0x298424['format'])throw new Error(_0x28e1c6(0x104));const _0x472f16=_0x2b0494['presentation']??defaultPresentation,_0x575efc=_0x298424[_0x28e1c6(0xe3)]===!![],_0x58d617={'result':_0x298424[_0x28e1c6(0x100)],'command':_0x298424[_0x28e1c6(0xe9)],'operation':_0x1805b7,'risk':_0x298424[_0x28e1c6(0xfe)],'format':_0x298424['format'],'dryRun':_0x575efc},_0xd5fc97=createLovrabetWriteMetadata(_0x1ce833[_0x28e1c6(0xf4)],_0x1805b7,_0x298424[_0x28e1c6(0x100)],_0x575efc);let _0x41d2d3;try{_0x41d2d3=await _0x472f16['present'](_0x58d617);}catch(_0x1426ed){if(!_0xd5fc97||_0x472f16===defaultPresentation)throw _0x1426ed;_0x41d2d3=await defaultPresentation[_0x28e1c6(0x103)](_0x58d617);}return{'operation':_0x1805b7,'risk':_0x298424[_0x28e1c6(0xfe)],'mode':_0x575efc?_0x28e1c6(0xf0):_0x28e1c6(0xe5),'result':_0x298424[_0x28e1c6(0x100)],'output':_0x41d2d3,..._0xd5fc97?{'metadata':_0xd5fc97}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x3a1994,_0x1c0fec,_0x4565a7,_0x1d0f77){const _0x570a86=a135_0x3ed3;if(_0x1c0fec[_0x570a86(0xe3)]===!![]||_0x3a1994[_0x570a86(0xfe)]!==_0x570a86(0x102)&&_0x3a1994[_0x570a86(0xfe)]!==_0x570a86(0xfc))return;await _0x1d0f77['confirmation'][_0x570a86(0xf1)](buildLovrabetConfirmationRequest(_0x3a1994,_0x4565a7,_0x1d0f77[_0x570a86(0xe7)]));}function a135_0x2ff5(){const _0x5623f1=['7406820RLFDtp','execute','4NQPEna','signal','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','command','AbortError','18884230NXtonl','args','reason','13572909WwMzNm','format','dry-run','confirm','rawFlags','5405598uocbgL','definition','4850292JkEInT','Lovrabet\x20invocation\x20aborted.','riskLevel','8vkXkuT','123776Jwexss','11EVImaP','stringify','high-risk-write','8iykKKG','risk','aborted','result','data','write','present','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','10734913rQFeAH','dryRun'];a135_0x2ff5=function(){return _0x5623f1;};return a135_0x2ff5();}function a135_0x3ed3(_0xe57566,_0x3d6c57){_0xe57566=_0xe57566-0xe2;const _0x2ff587=a135_0x2ff5();let _0x3ed388=_0x2ff587[_0xe57566];return _0x3ed388;}function withAbortSignal(_0x438fb4,_0x2e6593){return{..._0x438fb4,async 'execute'(_0x3b31c4){const _0x2744e7=a135_0x3ed3;return throwIfAborted(_0x2e6593),_0x438fb4[_0x2744e7(0xe5)]({..._0x3b31c4,'signal':_0x2e6593});}};}function throwIfAborted(_0x591eea){const _0x32bdec=a135_0x3ed3;if(_0x591eea?.[_0x32bdec(0xff)])throw _0x591eea['reason']instanceof Error?_0x591eea[_0x32bdec(0xed)]:new DOMException(_0x32bdec(0xf6),_0x32bdec(0xea));}
@@ -1 +1 @@
1
- const a135_0x11a43a=a135_0x446b;(function(_0x18b4b5,_0x4dbe7c){const _0x41347c=a135_0x446b,_0x2dd68f=_0x18b4b5();while(!![]){try{const _0x2c0616=parseInt(_0x41347c(0x145))/0x1+parseInt(_0x41347c(0x13b))/0x2*(-parseInt(_0x41347c(0x146))/0x3)+-parseInt(_0x41347c(0x142))/0x4*(-parseInt(_0x41347c(0x140))/0x5)+parseInt(_0x41347c(0x13c))/0x6*(-parseInt(_0x41347c(0x13d))/0x7)+parseInt(_0x41347c(0x144))/0x8*(-parseInt(_0x41347c(0x13a))/0x9)+parseInt(_0x41347c(0x143))/0xa*(parseInt(_0x41347c(0x141))/0xb)+parseInt(_0x41347c(0x13f))/0xc*(parseInt(_0x41347c(0x13e))/0xd);if(_0x2c0616===_0x4dbe7c)break;else _0x2dd68f['push'](_0x2dd68f['shift']());}catch(_0x465d87){_0x2dd68f['push'](_0x2dd68f['shift']());}}}(a135_0xd02c,0xd9174));function a135_0x446b(_0x1f90fb,_0x384f11){_0x1f90fb=_0x1f90fb-0x139;const _0xd02c09=a135_0xd02c();let _0x446bf9=_0xd02c09[_0x1f90fb];return _0x446bf9;}let tail=Promise[a135_0x11a43a(0x139)]();function a135_0xd02c(){const _0xe2d4f5=['648BFVoOT','1036201gpFlQh','3pWxGFc','resolve','50697MWYODk','1315906ZVzSZR','768oHNxch','95683lPcPxg','8462233pgGeQu','12eOzXfr','2013120LEItFn','352XTAhZX','16fwKfwL','142320WbvzRG'];a135_0xd02c=function(){return _0xe2d4f5;};return a135_0xd02c();}export async function runSerialized(_0x17ba8c){const _0x49414d=tail;let _0x4ba5be;tail=new Promise(_0x184b52=>{_0x4ba5be=_0x184b52;}),await _0x49414d['catch'](()=>undefined);try{return await _0x17ba8c();}finally{_0x4ba5be();}}
1
+ function a136_0x5d1a(){const _0x5ab43c=['493383MLqiLj','66355WFtvwd','96098qRyzHw','2352018rWcwqI','1790172SgeHFP','1rTtzUo','catch','451440oyJsWt','resolve','335336KnbHRE','112hvNtOo','7AEtrCC','30VOlxaM'];a136_0x5d1a=function(){return _0x5ab43c;};return a136_0x5d1a();}function a136_0x4bb3(_0x2ed556,_0x4e7a75){_0x2ed556=_0x2ed556-0x65;const _0x5d1ab6=a136_0x5d1a();let _0x4bb363=_0x5d1ab6[_0x2ed556];return _0x4bb363;}const a136_0x29ea63=a136_0x4bb3;(function(_0x59c1fa,_0x13e8d7){const _0xddec0c=a136_0x4bb3,_0x43b33f=_0x59c1fa();while(!![]){try{const _0x5be5de=-parseInt(_0xddec0c(0x69))/0x1*(-parseInt(_0xddec0c(0x66))/0x2)+parseInt(_0xddec0c(0x6b))/0x3+-parseInt(_0xddec0c(0x6e))/0x4*(parseInt(_0xddec0c(0x65))/0x5)+parseInt(_0xddec0c(0x67))/0x6+parseInt(_0xddec0c(0x6f))/0x7*(parseInt(_0xddec0c(0x6d))/0x8)+-parseInt(_0xddec0c(0x68))/0x9+parseInt(_0xddec0c(0x70))/0xa*(parseInt(_0xddec0c(0x71))/0xb);if(_0x5be5de===_0x13e8d7)break;else _0x43b33f['push'](_0x43b33f['shift']());}catch(_0x49d307){_0x43b33f['push'](_0x43b33f['shift']());}}}(a136_0x5d1a,0x2ffa0));let tail=Promise[a136_0x29ea63(0x6c)]();export async function runSerialized(_0x1439b7){const _0x176885=a136_0x29ea63,_0x12b9d7=tail;let _0x37c5c8;tail=new Promise(_0x536435=>{_0x37c5c8=_0x536435;}),await _0x12b9d7[_0x176885(0x6a)](()=>undefined);try{return await _0x1439b7();}finally{_0x37c5c8();}}
@@ -1 +1 @@
1
- (function(_0x2acd19,_0x488a8a){const _0x2123e2=a136_0x3676,_0x2a1913=_0x2acd19();while(!![]){try{const _0x3e77cc=-parseInt(_0x2123e2(0x19b))/0x1+-parseInt(_0x2123e2(0x1ab))/0x2*(parseInt(_0x2123e2(0x194))/0x3)+-parseInt(_0x2123e2(0x1a2))/0x4+-parseInt(_0x2123e2(0x195))/0x5*(-parseInt(_0x2123e2(0x1a8))/0x6)+parseInt(_0x2123e2(0x1a5))/0x7*(parseInt(_0x2123e2(0x1a7))/0x8)+parseInt(_0x2123e2(0x19e))/0x9*(-parseInt(_0x2123e2(0x196))/0xa)+parseInt(_0x2123e2(0x1aa))/0xb;if(_0x3e77cc===_0x488a8a)break;else _0x2a1913['push'](_0x2a1913['shift']());}catch(_0x20ebf7){_0x2a1913['push'](_0x2a1913['shift']());}}}(a136_0x59df,0x2273e));import a136_0x4dd04c from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a136_0x59df(){const _0x1b1669=['276108nEjcAP','validation','flags','4239HrDGvt','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','join','args','328336plzAHN','unknownCommand','defaultCommand','63FKEZRi','message','72584qgjthD','90zrnMXZ','definition','7063001ftqHdt','25798GvgbzU','39bLlOQL','29125YsJbmj','3060QNMrhQ','slice','hint','assign','flatMap'];a136_0x59df=function(){return _0x1b1669;};return a136_0x59df();}import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x6b15bd){const _0x1f4fa6=a136_0x3676,_0x7281f0=a136_0x4dd04c('',{'importMeta':import.meta,'argv':_0x6b15bd,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x27182d=[..._0x7281f0['input']],_0xecd0c2=_0x7281f0[_0x1f4fa6(0x19d)];await correctFlags(_0xecd0c2);const _0x33822c=_0x27182d[0x0];if(!_0x33822c)throw CliErrors[_0x1f4fa6(0x19c)]('Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0x5ae40d=resolveRemovedCommand(_0x33822c,_0x27182d[0x1]);if(_0x5ae40d)throw CliErrors[_0x1f4fa6(0x19c)](_0x5ae40d[_0x1f4fa6(0x1a6)],_0x5ae40d[_0x1f4fa6(0x198)]);if(!isKnownService(_0x33822c)){const _0x3f3d9b=resolveDynamicServiceCommand(_0x27182d,_0xecd0c2);if(!_0x3f3d9b)throw CliErrors[_0x1f4fa6(0x1a3)](_0x27182d[_0x1f4fa6(0x1a0)]('\x20'));return Object[_0x1f4fa6(0x199)](_0xecd0c2,_0x3f3d9b[_0x1f4fa6(0x19d)]),{'definition':_0x3f3d9b[_0x1f4fa6(0x1a9)],'rawFlags':_0xecd0c2,'args':_0x3f3d9b[_0x1f4fa6(0x1a1)]};}const _0x5bf0a9=getServiceEntry(_0x33822c),_0x1ea243=_0x27182d[0x1]||_0x5bf0a9[_0x1f4fa6(0x1a4)];if(!_0x1ea243)throw CliErrors['validation'](_0x1f4fa6(0x19f)+_0x33822c+'\x22.');const _0x4b83c9=findDefinition(_0x33822c,_0x1ea243);if(!_0x4b83c9)throw CliErrors[_0x1f4fa6(0x1a3)](_0x33822c+'\x20'+_0x1ea243);return{'definition':_0x4b83c9,'rawFlags':_0xecd0c2,'args':_0x27182d[_0x1f4fa6(0x197)](0x2)};}function a136_0x3676(_0x1a04dc,_0x22d665){_0x1a04dc=_0x1a04dc-0x194;const _0x59df83=a136_0x59df();let _0x3676bf=_0x59df83[_0x1a04dc];return _0x3676bf;}async function correctFlags(_0x129c63){const _0x1d586c=a136_0x3676;try{const {correctFlags:_0x1d6720}=await import('../framework/preparse.js'),{getAllDefinitions:_0x346d36}=await import('../commands/registry.js'),_0x40b2a6=_0x346d36()[_0x1d586c(0x19a)](_0x3a48ff=>_0x3a48ff[_0x1d586c(0x19d)]??[]),_0x532a53=_0x1d6720(_0x129c63,_0x40b2a6);Object[_0x1d586c(0x199)](_0x129c63,_0x532a53[_0x1d586c(0x19d)]);}catch{}}
1
+ (function(_0x2ed634,_0x5503c7){const _0x369a31=a137_0x28b4,_0x512b86=_0x2ed634();while(!![]){try{const _0x5cbf9e=-parseInt(_0x369a31(0xfe))/0x1+-parseInt(_0x369a31(0xf2))/0x2*(parseInt(_0x369a31(0xf7))/0x3)+-parseInt(_0x369a31(0xf0))/0x4*(parseInt(_0x369a31(0xfc))/0x5)+parseInt(_0x369a31(0xf6))/0x6*(-parseInt(_0x369a31(0xed))/0x7)+-parseInt(_0x369a31(0xfb))/0x8+-parseInt(_0x369a31(0xe8))/0x9*(parseInt(_0x369a31(0xef))/0xa)+parseInt(_0x369a31(0xf8))/0xb;if(_0x5cbf9e===_0x5503c7)break;else _0x512b86['push'](_0x512b86['shift']());}catch(_0x451c85){_0x512b86['push'](_0x512b86['shift']());}}}(a137_0x18c6,0x33893));import a137_0x44da75 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';function a137_0x28b4(_0x2b5959,_0x653cc3){_0x2b5959=_0x2b5959-0xe8;const _0x18c6e2=a137_0x18c6();let _0x28b422=_0x18c6e2[_0x2b5959];return _0x28b422;}import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x276770){const _0xa9faba=a137_0x28b4,_0x5e32bf=a137_0x44da75('',{'importMeta':import.meta,'argv':_0x276770,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x22a47e=[..._0x5e32bf[_0xa9faba(0xf4)]],_0x5703a5=_0x5e32bf[_0xa9faba(0x100)];await correctFlags(_0x5703a5);const _0x51e73f=_0x22a47e[0x0];if(!_0x51e73f)throw CliErrors[_0xa9faba(0xfa)](_0xa9faba(0xf1));const _0x2fa20c=resolveRemovedCommand(_0x51e73f,_0x22a47e[0x1]);if(_0x2fa20c)throw CliErrors[_0xa9faba(0xfa)](_0x2fa20c[_0xa9faba(0xf5)],_0x2fa20c['hint']);if(!isKnownService(_0x51e73f)){const _0x4f7287=resolveDynamicServiceCommand(_0x22a47e,_0x5703a5);if(!_0x4f7287)throw CliErrors['unknownCommand'](_0x22a47e[_0xa9faba(0xfd)]('\x20'));return Object[_0xa9faba(0xff)](_0x5703a5,_0x4f7287[_0xa9faba(0x100)]),{'definition':_0x4f7287[_0xa9faba(0xea)],'rawFlags':_0x5703a5,'args':_0x4f7287['args']};}const _0x8d4678=getServiceEntry(_0x51e73f),_0x981318=_0x22a47e[0x1]||_0x8d4678[_0xa9faba(0xe9)];if(!_0x981318)throw CliErrors[_0xa9faba(0xfa)](_0xa9faba(0xf9)+_0x51e73f+'\x22.');const _0x5b1a4b=findDefinition(_0x51e73f,_0x981318);if(!_0x5b1a4b)throw CliErrors[_0xa9faba(0xeb)](_0x51e73f+'\x20'+_0x981318);return{'definition':_0x5b1a4b,'rawFlags':_0x5703a5,'args':_0x22a47e['slice'](0x2)};}function a137_0x18c6(){const _0x10dbd4=['assign','flags','9kRnNQh','defaultCommand','definition','unknownCommand','../framework/preparse.js','689423Dqnwor','../commands/registry.js','2433650HEIWaZ','4SrrJAA','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','4IQGdtR','flatMap','input','message','6MetTeE','219249JokdLf','14591126nBhqNm','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','validation','1528176mVxAna','1401110siWZrK','join','156111VbJKHR'];a137_0x18c6=function(){return _0x10dbd4;};return a137_0x18c6();}async function correctFlags(_0x1d4b03){const _0x3ec681=a137_0x28b4;try{const {correctFlags:_0x225045}=await import(_0x3ec681(0xec)),{getAllDefinitions:_0x1f23e1}=await import(_0x3ec681(0xee)),_0x7f2434=_0x1f23e1()[_0x3ec681(0xf3)](_0x5904d6=>_0x5904d6[_0x3ec681(0x100)]??[]),_0x1222f7=_0x225045(_0x1d4b03,_0x7f2434);Object[_0x3ec681(0xff)](_0x1d4b03,_0x1222f7['flags']);}catch{}}
@@ -1 +1 @@
1
- function a138_0x7aab(){const _0x512146=['values','sheet','schemaHash','resume','batches','206995zrDlzs','Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','Import\x20generated\x20ID\x20collision.','string','imageFields','maxBatchSize','uploadFields','3QsqmKK','Cannot\x20read\x20the\x20import\x20checkpoint.','196488xlhYdM','151250snDUyk','status','checkpoint','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','includes','Invalid\x20import\x20task\x20readback\x20response.','push','completed','message','fileHash','reconcileImageConflicts','importId','maxBatchBytes','report','243JPAGGo','runtimeDomain','246CTRlPc','onCheckpointReady','ids','errors','unsent','3294500iCcMoG','isInteger','56434ofDkRd','rows','binding','hex','some','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','keys','flatMap','add','elapsedMs','utf8','batchSize','warnings','isSafeInteger','The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.','rowNumber','now','actorId','succeeded','972788bqHCxX','reduce','785922PmVNxt','strategy','length','appCode','Invalid\x20write\x20result.','number','readTask','byteLength','rowIndexes','Incomplete\x20readback.','schemaFingerprint','Excel\x20row\x20','pending','Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.','filter','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','datasetCode','map','incomplete','ENOENT','Excel\x20contains\x20no\x20valid\x20data\x20rows.','schemaVersion','write','taskId','Partial\x20import\x20task\x20readback\x20conflict.','isArray','size','conflict','has','Import\x20generated\x20ID\x20conflict.','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.'];a138_0x7aab=function(){return _0x512146;};return a138_0x7aab();}const a138_0x3e9677=a138_0x4446;(function(_0x243aaa,_0x2158a4){const _0x4b9fc5=a138_0x4446,_0x475c7a=_0x243aaa();while(!![]){try{const _0x2e842e=-parseInt(_0x4b9fc5(0x208))/0x1+parseInt(_0x4b9fc5(0x1d9))/0x2+parseInt(_0x4b9fc5(0x205))/0x3*(parseInt(_0x4b9fc5(0x1d7))/0x4)+parseInt(_0x4b9fc5(0x1fd))/0x5+parseInt(_0x4b9fc5(0x1bd))/0x6*(-parseInt(_0x4b9fc5(0x1c4))/0x7)+parseInt(_0x4b9fc5(0x207))/0x8*(parseInt(_0x4b9fc5(0x1bb))/0x9)+-parseInt(_0x4b9fc5(0x1c2))/0xa;if(_0x2e842e===_0x2158a4)break;else _0x475c7a['push'](_0x475c7a['shift']());}catch(_0x238d7c){_0x475c7a['push'](_0x475c7a['shift']());}}}(a138_0x7aab,0x81436));import{randomBytes,randomUUID}from'node:crypto';function a138_0x4446(_0x5a92b7,_0x563a33){_0x5a92b7=_0x5a92b7-0x1b9;const _0x7aabc8=a138_0x7aab();let _0x44461c=_0x7aabc8[_0x5a92b7];return _0x44461c;}import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x2e318b=>typeof _0x2e318b===a138_0x3e9677(0x1de)&&Number[a138_0x3e9677(0x1d1)](_0x2e318b)&&_0x2e318b>0x0;export async function runAutoIdExcelImport(_0x46713c){const _0x56075e=a138_0x3e9677,_0x4f84ae={..._0x46713c,'checkpoint':await resolveImportOutputPath(_0x46713c[_0x56075e(0x20a)]),'report':await resolveImportOutputPath(_0x46713c['report'])},{manifest:_0x43d80c,contract:_0x2e888b,api:_0x20fdef}=_0x4f84ae;assertImportContract(_0x2e888b,_0x4f84ae[_0x56075e(0x1dc)],_0x4f84ae['datasetCode']);if(_0x2e888b[_0x56075e(0x1ee)]!==0x2||!_0x20fdef[_0x56075e(0x1df)])throw Error(_0x56075e(0x1e8));if(_0x43d80c[_0x56075e(0x1c0)][_0x56075e(0x1db)])throw Error(_0x56075e(0x20b));if(!_0x43d80c[_0x56075e(0x1c5)]['length'])throw Error(_0x56075e(0x1ed));if(!Number[_0x56075e(0x1c3)](_0x4f84ae[_0x56075e(0x1cf)])||_0x4f84ae[_0x56075e(0x1cf)]<0x1||_0x4f84ae['batchSize']>_0x2e888b[_0x56075e(0x203)])throw Error('Invalid\x20import\x20batch\x20size.');assertImportPaths(_0x4f84ae[_0x56075e(0x20a)],_0x4f84ae[_0x56075e(0x1ba)]);if(_0x43d80c[_0x56075e(0x1c5)][_0x56075e(0x1c8)](_0x37e2fe=>Object['hasOwn'](_0x37e2fe[_0x56075e(0x1f8)],'id')))throw Error(_0x56075e(0x1fe));const _0x42173e=(_0x4bf2a4,_0x53d0b9)=>Buffer[_0x56075e(0x1e0)](JSON['stringify']({'schemaFingerprint':_0x2e888b[_0x56075e(0x1e3)],'taskId':_0x53d0b9,'items':_0x4bf2a4[_0x56075e(0x1ea)](_0x38bb6a=>_0x43d80c[_0x56075e(0x1c5)][_0x38bb6a][_0x56075e(0x1f8)])}),_0x56075e(0x1ce)),_0x312998=[];let _0x312f47=[];for(let _0x3851bc=0x0;_0x3851bc<_0x43d80c[_0x56075e(0x1c5)]['length'];_0x3851bc++){if(_0x42173e([_0x3851bc],0x2**0x34)>_0x2e888b[_0x56075e(0x1b9)])throw Error(_0x56075e(0x1e4)+_0x43d80c['rows'][_0x3851bc]['rowNumber']+_0x56075e(0x1ff));_0x312f47[_0x56075e(0x1db)]&&(_0x312f47[_0x56075e(0x1db)]===_0x4f84ae['batchSize']||_0x42173e([..._0x312f47,_0x3851bc],0x2**0x34)>_0x2e888b[_0x56075e(0x1b9)])&&(_0x312998['push'](_0x312f47),_0x312f47=[]),_0x312f47['push'](_0x3851bc);}if(_0x312f47['length'])_0x312998[_0x56075e(0x20e)](_0x312f47);const _0x3bed5a={'appCode':_0x4f84ae[_0x56075e(0x1dc)],'datasetCode':_0x4f84ae[_0x56075e(0x1e9)],'runtimeDomain':_0x4f84ae[_0x56075e(0x1bc)],'actorId':_0x2e888b[_0x56075e(0x1d5)],'fileHash':_0x43d80c[_0x56075e(0x211)],'mappingHash':_0x43d80c['mappingHash'],'schemaHash':_0x43d80c[_0x56075e(0x1fa)],'remoteSchemaHash':_0x2e888b[_0x56075e(0x1e3)],'batchSize':_0x4f84ae[_0x56075e(0x1cf)],'maxBatchBytes':_0x2e888b[_0x56075e(0x1b9)],'sheet':_0x43d80c[_0x56075e(0x1f9)],'strategy':_0x2e888b[_0x56075e(0x1da)]},_0x215556=await acquireLock(_0x4f84ae[_0x56075e(0x20a)]);let _0x18dada;const _0x5dde33=Date[_0x56075e(0x1d4)]();let _0x2f23e0=0x0;const _0x5f47f8=[],_0x5816c0=_0x6a012=>_0x18dada?.[_0x56075e(0x1fc)][_0x56075e(0x1e7)](_0x349ba1=>_0x349ba1[_0x56075e(0x209)]===_0x6a012)[_0x56075e(0x1d8)]((_0x2a0ab4,_0x47bd69)=>_0x2a0ab4+_0x47bd69['rowIndexes']['length'],0x0)??0x0,_0x7b792=()=>({'importId':_0x18dada?.[_0x56075e(0x213)],'sourceRows':_0x43d80c[_0x56075e(0x1c5)]['length'],'emptyRows':_0x43d80c['emptyRows'][_0x56075e(0x1db)],'succeeded':_0x5816c0(_0x56075e(0x1d6)),'unknown':_0x5816c0(_0x56075e(0x1e5)),'conflicts':_0x5816c0(_0x56075e(0x1f4)),'notAttempted':_0x5816c0('unsent'),'batches':_0x2f23e0,'batchResults':_0x5f47f8,'elapsedMs':Date[_0x56075e(0x1d4)]()-_0x5dde33,'checkpoint':_0x4f84ae[_0x56075e(0x20a)],'report':_0x4f84ae[_0x56075e(0x1ba)],'warnings':_0x43d80c[_0x56075e(0x1d0)]});try{if(_0x4f84ae[_0x56075e(0x1fb)]){try{_0x18dada=JSON['parse'](await readFile(_0x4f84ae[_0x56075e(0x20a)],_0x56075e(0x1ce)));}catch{throw Error(_0x56075e(0x206));}if(!_0x18dada||_0x18dada['version']!==0x2||typeof _0x18dada['importId']!==_0x56075e(0x201)||!_0x18dada['importId']||canonical(_0x18dada[_0x56075e(0x1c6)])!==canonical(_0x3bed5a)||!Array[_0x56075e(0x1f2)](_0x18dada[_0x56075e(0x1fc)])||_0x18dada[_0x56075e(0x1fc)][_0x56075e(0x1db)]!==_0x312998[_0x56075e(0x1db)]||new Set(_0x18dada[_0x56075e(0x1fc)][_0x56075e(0x1ea)](_0x5654de=>_0x5654de[_0x56075e(0x1f0)]))[_0x56075e(0x1f3)]!==_0x312998['length']||_0x18dada['batches']['some']((_0x5f54df,_0x3ec5ea)=>!validId(_0x5f54df[_0x56075e(0x1f0)])||_0x5f54df[_0x56075e(0x1f0)]>0x2**0x34||canonical(_0x5f54df[_0x56075e(0x1e1)])!==canonical(_0x312998[_0x3ec5ea])||![_0x56075e(0x1c1),'pending','succeeded','conflict'][_0x56075e(0x20c)](_0x5f54df[_0x56075e(0x209)])||!Array[_0x56075e(0x1f2)](_0x5f54df[_0x56075e(0x1bf)])||_0x5f54df['ids'][_0x56075e(0x1c8)](_0x38b337=>!validId(_0x38b337))||new Set(_0x5f54df[_0x56075e(0x1bf)])[_0x56075e(0x1f3)]!==_0x5f54df[_0x56075e(0x1bf)][_0x56075e(0x1db)]||_0x5f54df[_0x56075e(0x1bf)]['length']!==0x0&&_0x5f54df[_0x56075e(0x1bf)]['length']!==_0x5f54df[_0x56075e(0x1e1)][_0x56075e(0x1db)]||_0x5f54df['status']==='succeeded'&&_0x5f54df[_0x56075e(0x1bf)]['length']!==_0x5f54df[_0x56075e(0x1e1)][_0x56075e(0x1db)]||_0x5f54df['status']===_0x56075e(0x1c1)&&_0x5f54df['ids'][_0x56075e(0x1db)]!==0x0))throw Error('Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.');const _0xe8be63=_0x18dada[_0x56075e(0x1fc)][_0x56075e(0x1cb)](_0x13902a=>_0x13902a[_0x56075e(0x1bf)]);if(new Set(_0xe8be63)[_0x56075e(0x1f3)]!==_0xe8be63[_0x56075e(0x1db)])throw Error(_0x56075e(0x1c9));}else{try{await lstat(_0x4f84ae[_0x56075e(0x20a)]);throw Error('Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.');}catch(_0x3846e5){if(_0x3846e5['code']!==_0x56075e(0x1ec))throw _0x3846e5;}const _0x57bdb4=new Set();_0x18dada={'version':0x2,'importId':randomUUID(),'binding':_0x3bed5a,'batches':_0x312998[_0x56075e(0x1ea)](_0x343a8f=>{const _0x5e7386=_0x56075e;let _0x25fdd5;do{_0x25fdd5=Number(BigInt('0x'+randomBytes(0x7)['toString'](_0x5e7386(0x1c7)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x57bdb4[_0x5e7386(0x1f5)](_0x25fdd5));return _0x57bdb4[_0x5e7386(0x1cc)](_0x25fdd5),{'taskId':_0x25fdd5,'rowIndexes':_0x343a8f,'ids':[],'status':_0x5e7386(0x1c1)};})},await saveImportJson(_0x4f84ae[_0x56075e(0x20a)],_0x18dada);}await _0x4f84ae[_0x56075e(0x1be)]?.();const _0x138250=_0x18dada,_0x1fb5d4=async(_0x2b4fe3,_0x308860)=>{const _0x1cca58=_0x56075e;_0x2b4fe3[_0x1cca58(0x209)]=_0x1cca58(0x1f4),await saveImportJson(_0x4f84ae[_0x1cca58(0x20a)],_0x138250);throw Error(_0x308860);},_0x3dfabb=async _0x5b72de=>{const _0x44791d=_0x56075e,_0x6b875d=await _0x20fdef[_0x44791d(0x1df)](_0x5b72de[_0x44791d(0x1f0)]);if(!Array[_0x44791d(0x1f2)](_0x6b875d))throw Error(_0x44791d(0x20d));if(_0x5b72de[_0x44791d(0x209)]===_0x44791d(0x1c1)&&_0x6b875d[_0x44791d(0x1db)])return _0x1fb5d4(_0x5b72de,'Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.');if(!_0x6b875d[_0x44791d(0x1db)]){if(_0x5b72de[_0x44791d(0x209)]===_0x44791d(0x1d6)||_0x5b72de[_0x44791d(0x1bf)][_0x44791d(0x1db)])return _0x1fb5d4(_0x5b72de,_0x44791d(0x1e6));return![];}if(_0x6b875d[_0x44791d(0x1db)]!==_0x5b72de[_0x44791d(0x1e1)][_0x44791d(0x1db)])return _0x1fb5d4(_0x5b72de,_0x44791d(0x1f1));const _0x5ff25c=_0x6b875d['map'](_0x34f719=>_0x34f719?.['id']);if(_0x5ff25c['some'](_0x14e173=>!validId(_0x14e173)))return _0x1fb5d4(_0x5b72de,_0x44791d(0x1f6));const _0x1df5e1=_0x5ff25c;if(_0x1df5e1[_0x44791d(0x1c8)](_0xc29b04=>!validId(_0xc29b04))||_0x1df5e1[_0x44791d(0x1c8)]((_0x5933a0,_0x288784)=>_0x288784>0x0&&_0x5933a0<=_0x1df5e1[_0x288784-0x1])||_0x5b72de['ids'][_0x44791d(0x1db)]&&canonical(_0x1df5e1)!==canonical(_0x5b72de[_0x44791d(0x1bf)]))return _0x1fb5d4(_0x5b72de,_0x44791d(0x1f6));const _0xf3805f=new Set(_0x138250[_0x44791d(0x1fc)][_0x44791d(0x1e7)](_0x9011c5=>_0x9011c5!==_0x5b72de)[_0x44791d(0x1cb)](_0x2903f1=>_0x2903f1[_0x44791d(0x1bf)]));if(_0x1df5e1['some'](_0x5f5285=>_0xf3805f['has'](_0x5f5285)))return _0x1fb5d4(_0x5b72de,_0x44791d(0x200));for(let _0x5bcdba=0x0;_0x5bcdba<_0x6b875d[_0x44791d(0x1db)];_0x5bcdba++){const _0x4ff1c6=_0x43d80c['rows'][_0x5b72de['rowIndexes'][_0x5bcdba]][_0x44791d(0x1f8)];if(Object[_0x44791d(0x1ca)](_0x4ff1c6)[_0x44791d(0x1c8)](_0x531297=>!sameImportValue(_0x4ff1c6[_0x531297],_0x6b875d[_0x5bcdba][_0x531297],_0x43d80c[_0x44791d(0x202)]?.[_0x44791d(0x20c)](_0x531297)&&!_0x43d80c[_0x44791d(0x204)]?.[_0x44791d(0x20c)](_0x531297))))return _0x1fb5d4(_0x5b72de,'Import\x20content\x20conflict\x20at\x20Excel\x20row\x20'+_0x43d80c[_0x44791d(0x1c5)][_0x5b72de['rowIndexes'][_0x5bcdba]][_0x44791d(0x1d3)]+'.');}return _0x5b72de[_0x44791d(0x1bf)]=_0x1df5e1,_0x5b72de[_0x44791d(0x209)]=_0x44791d(0x1d6),await saveImportJson(_0x4f84ae[_0x44791d(0x20a)],_0x138250),!![];};if(_0x138250[_0x56075e(0x1fc)][_0x56075e(0x1c8)](_0x41df97=>_0x41df97[_0x56075e(0x209)]===_0x56075e(0x1f4)&&!(_0x4f84ae['resume']&&_0x4f84ae[_0x56075e(0x212)]&&_0x43d80c['imageFields']?.[_0x56075e(0x1db)]&&_0x41df97['ids'][_0x56075e(0x1db)]===_0x41df97[_0x56075e(0x1e1)][_0x56075e(0x1db)])))throw Error(_0x56075e(0x1f7));if(_0x4f84ae[_0x56075e(0x1fb)]){for(const _0x52f9b4 of _0x138250[_0x56075e(0x1fc)])await _0x3dfabb(_0x52f9b4);}for(const _0x1bf287 of _0x138250['batches']){if(_0x1bf287['status']==='succeeded')continue;if(!_0x4f84ae[_0x56075e(0x1fb)])await _0x3dfabb(_0x1bf287);_0x1bf287[_0x56075e(0x209)]='pending',await saveImportJson(_0x4f84ae[_0x56075e(0x20a)],_0x138250),_0x2f23e0++;const _0x1d0311=_0x1bf287[_0x56075e(0x1e1)][_0x56075e(0x1ea)](_0x5a1383=>_0x43d80c[_0x56075e(0x1c5)][_0x5a1383][_0x56075e(0x1f8)]),_0x1cf06d=Date[_0x56075e(0x1d4)](),_0x252d16={'batch':_0x2f23e0,'rowStart':_0x43d80c[_0x56075e(0x1c5)][_0x1bf287['rowIndexes'][0x0]][_0x56075e(0x1d3)],'rowEnd':_0x43d80c[_0x56075e(0x1c5)][_0x1bf287[_0x56075e(0x1e1)]['at'](-0x1)][_0x56075e(0x1d3)],'count':_0x1d0311[_0x56075e(0x1db)],'bytes':_0x42173e(_0x1bf287[_0x56075e(0x1e1)],_0x1bf287['taskId']),'elapsedMs':0x0,'status':'unknown'};_0x5f47f8[_0x56075e(0x20e)](_0x252d16);try{const _0x24aed4=await _0x20fdef[_0x56075e(0x1ef)](_0x1d0311,_0x1bf287[_0x56075e(0x1f0)]);if(!_0x24aed4||_0x24aed4['count']!==_0x1d0311[_0x56075e(0x1db)]||!Array[_0x56075e(0x1f2)](_0x24aed4[_0x56075e(0x1bf)])||_0x24aed4[_0x56075e(0x1bf)][_0x56075e(0x1db)]!==_0x1d0311['length']||_0x24aed4[_0x56075e(0x1bf)]['some'](_0x194dfd=>!validId(_0x194dfd))||new Set(_0x24aed4['ids'])[_0x56075e(0x1f3)]!==_0x24aed4[_0x56075e(0x1bf)]['length'])throw Error(_0x56075e(0x1dd));_0x1bf287['ids']=_0x24aed4['ids'],await saveImportJson(_0x4f84ae[_0x56075e(0x20a)],_0x138250);if(!await _0x3dfabb(_0x1bf287))throw Error(_0x56075e(0x1e2));}catch(_0x3ea87f){if(_0x1bf287[_0x56075e(0x209)]===_0x56075e(0x1f4))throw _0x3ea87f;try{await _0x3dfabb(_0x1bf287);}catch(_0x5ccfc5){if(_0x1bf287[_0x56075e(0x209)]===_0x56075e(0x1f4))throw _0x5ccfc5;}if(_0x1bf287[_0x56075e(0x209)]!=='succeeded')throw Error(_0x56075e(0x1d2));}finally{_0x252d16[_0x56075e(0x1cd)]=Date[_0x56075e(0x1d4)]()-_0x1cf06d,_0x252d16[_0x56075e(0x209)]=_0x1bf287[_0x56075e(0x209)]===_0x56075e(0x1d6)?_0x56075e(0x1d6):_0x1bf287[_0x56075e(0x209)]===_0x56075e(0x1f4)?_0x56075e(0x1f4):'unknown';}}const _0x471f00={'status':_0x56075e(0x20f),..._0x7b792()};return await saveImportJson(_0x4f84ae[_0x56075e(0x1ba)],_0x471f00),_0x471f00;}catch(_0x26fec1){if(_0x18dada)await saveImportJson(_0x4f84ae[_0x56075e(0x1ba)],{'status':_0x56075e(0x1eb),..._0x7b792(),'message':_0x26fec1[_0x56075e(0x210)]});throw _0x26fec1;}finally{await _0x215556();}}
1
+ const a139_0x58ed71=a139_0x479e;(function(_0x397896,_0x15c216){const _0x5c6976=a139_0x479e,_0x28cb03=_0x397896();while(!![]){try{const _0x585a29=-parseInt(_0x5c6976(0xa4))/0x1+-parseInt(_0x5c6976(0x7f))/0x2+parseInt(_0x5c6976(0x78))/0x3*(parseInt(_0x5c6976(0x95))/0x4)+parseInt(_0x5c6976(0xbe))/0x5*(parseInt(_0x5c6976(0xad))/0x6)+parseInt(_0x5c6976(0x6e))/0x7+parseInt(_0x5c6976(0x76))/0x8+parseInt(_0x5c6976(0x72))/0x9*(-parseInt(_0x5c6976(0x81))/0xa);if(_0x585a29===_0x15c216)break;else _0x28cb03['push'](_0x28cb03['shift']());}catch(_0x2a62da){_0x28cb03['push'](_0x28cb03['shift']());}}}(a139_0x5793,0xde753));import{randomBytes,randomUUID}from'node:crypto';import{lstat,readFile}from'node:fs/promises';function a139_0x479e(_0xdbf22f,_0x282766){_0xdbf22f=_0xdbf22f-0x6b;const _0x579346=a139_0x5793();let _0x479ef4=_0x579346[_0xdbf22f];return _0x479ef4;}function a139_0x5793(){const _0x436432=['batches','taskId','binding','has','resume','write','ENOENT','conflict','115rRAuMM','Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.','code','Incomplete\x20readback.','filter','Invalid\x20write\x20result.','number','schemaVersion','hasOwn','string','add','Cannot\x20read\x20the\x20import\x20checkpoint.','11310789MSXrvK','unknown','datasetCode','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','603SDAEQc','importId','Partial\x20import\x20task\x20readback\x20conflict.','appCode','1007336QqrLGd','push','26079JMYhTd','length','Import\x20generated\x20ID\x20collision.','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','completed','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','now','37532IlRxvy','runtimeDomain','310020WCCLXC','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','maxBatchBytes','uploadFields','utf8','strategy','warnings','The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','isSafeInteger','rows','some','batchSize','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','parse','byteLength','fileHash','succeeded','imageFields','76UmGogK','report','mappingHash','map','values','reconcileImageConflicts','checkpoint','count','includes','rowNumber','ids','unsent','toString','flatMap','Invalid\x20import\x20batch\x20size.','336611Lfbeak','schemaFingerprint','message','sheet','actorId','size','Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.','readTask','hex','374814tQfxhL','maxBatchSize','pending','isArray','status','version','isInteger','rowIndexes','keys'];a139_0x5793=function(){return _0x436432;};return a139_0x5793();}import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x37159e=>typeof _0x37159e===a139_0x58ed71(0xc4)&&Number[a139_0x58ed71(0x8b)](_0x37159e)&&_0x37159e>0x0;export async function runAutoIdExcelImport(_0x4475e0){const _0x1aad16=a139_0x58ed71,_0x77e8c2={..._0x4475e0,'checkpoint':await resolveImportOutputPath(_0x4475e0['checkpoint']),'report':await resolveImportOutputPath(_0x4475e0[_0x1aad16(0x96)])},{manifest:_0x412aea,contract:_0x5466c3,api:_0x56a605}=_0x77e8c2;assertImportContract(_0x5466c3,_0x77e8c2['appCode'],_0x77e8c2[_0x1aad16(0x70)]);if(_0x5466c3[_0x1aad16(0xc5)]!==0x2||!_0x56a605[_0x1aad16(0xab)])throw Error(_0x1aad16(0x8a));if(_0x412aea['errors'][_0x1aad16(0x79)])throw Error(_0x1aad16(0x7d));if(!_0x412aea[_0x1aad16(0x8c)][_0x1aad16(0x79)])throw Error('Excel\x20contains\x20no\x20valid\x20data\x20rows.');if(!Number[_0x1aad16(0xb3)](_0x77e8c2[_0x1aad16(0x8e)])||_0x77e8c2[_0x1aad16(0x8e)]<0x1||_0x77e8c2['batchSize']>_0x5466c3[_0x1aad16(0xae)])throw Error(_0x1aad16(0xa3));assertImportPaths(_0x77e8c2[_0x1aad16(0x9b)],_0x77e8c2[_0x1aad16(0x96)]);if(_0x412aea['rows'][_0x1aad16(0x8d)](_0x1a54b9=>Object[_0x1aad16(0xc6)](_0x1a54b9[_0x1aad16(0x99)],'id')))throw Error('Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.');const _0x32613c=(_0x5bce2b,_0x1bf9bc)=>Buffer[_0x1aad16(0x91)](JSON['stringify']({'schemaFingerprint':_0x5466c3[_0x1aad16(0xa5)],'taskId':_0x1bf9bc,'items':_0x5bce2b[_0x1aad16(0x98)](_0x3204b3=>_0x412aea[_0x1aad16(0x8c)][_0x3204b3][_0x1aad16(0x99)])}),_0x1aad16(0x86)),_0x2e83d9=[];let _0x5f406d=[];for(let _0x35445a=0x0;_0x35445a<_0x412aea[_0x1aad16(0x8c)][_0x1aad16(0x79)];_0x35445a++){if(_0x32613c([_0x35445a],0x2**0x34)>_0x5466c3[_0x1aad16(0x84)])throw Error('Excel\x20row\x20'+_0x412aea[_0x1aad16(0x8c)][_0x35445a][_0x1aad16(0x9e)]+_0x1aad16(0x8f));_0x5f406d[_0x1aad16(0x79)]&&(_0x5f406d['length']===_0x77e8c2[_0x1aad16(0x8e)]||_0x32613c([..._0x5f406d,_0x35445a],0x2**0x34)>_0x5466c3[_0x1aad16(0x84)])&&(_0x2e83d9['push'](_0x5f406d),_0x5f406d=[]),_0x5f406d['push'](_0x35445a);}if(_0x5f406d[_0x1aad16(0x79)])_0x2e83d9[_0x1aad16(0x77)](_0x5f406d);const _0x2f0b02={'appCode':_0x77e8c2[_0x1aad16(0x75)],'datasetCode':_0x77e8c2[_0x1aad16(0x70)],'runtimeDomain':_0x77e8c2[_0x1aad16(0x80)],'actorId':_0x5466c3[_0x1aad16(0xa8)],'fileHash':_0x412aea[_0x1aad16(0x92)],'mappingHash':_0x412aea[_0x1aad16(0x97)],'schemaHash':_0x412aea['schemaHash'],'remoteSchemaHash':_0x5466c3[_0x1aad16(0xa5)],'batchSize':_0x77e8c2[_0x1aad16(0x8e)],'maxBatchBytes':_0x5466c3[_0x1aad16(0x84)],'sheet':_0x412aea[_0x1aad16(0xa7)],'strategy':_0x5466c3[_0x1aad16(0x87)]},_0x248218=await acquireLock(_0x77e8c2[_0x1aad16(0x9b)]);let _0xe7d2e0;const _0x11d89a=Date['now']();let _0x359d40=0x0;const _0x4214d2=[],_0x329309=_0x323b7d=>_0xe7d2e0?.[_0x1aad16(0xb6)]['filter'](_0x5f3004=>_0x5f3004[_0x1aad16(0xb1)]===_0x323b7d)['reduce']((_0x4fb8a8,_0x40fa65)=>_0x4fb8a8+_0x40fa65['rowIndexes'][_0x1aad16(0x79)],0x0)??0x0,_0x2bfaa9=()=>({'importId':_0xe7d2e0?.['importId'],'sourceRows':_0x412aea[_0x1aad16(0x8c)][_0x1aad16(0x79)],'emptyRows':_0x412aea['emptyRows']['length'],'succeeded':_0x329309(_0x1aad16(0x93)),'unknown':_0x329309('pending'),'conflicts':_0x329309(_0x1aad16(0xbd)),'notAttempted':_0x329309(_0x1aad16(0xa0)),'batches':_0x359d40,'batchResults':_0x4214d2,'elapsedMs':Date[_0x1aad16(0x7e)]()-_0x11d89a,'checkpoint':_0x77e8c2[_0x1aad16(0x9b)],'report':_0x77e8c2[_0x1aad16(0x96)],'warnings':_0x412aea[_0x1aad16(0x88)]});try{if(_0x77e8c2[_0x1aad16(0xba)]){try{_0xe7d2e0=JSON[_0x1aad16(0x90)](await readFile(_0x77e8c2[_0x1aad16(0x9b)],_0x1aad16(0x86)));}catch{throw Error(_0x1aad16(0x6d));}if(!_0xe7d2e0||_0xe7d2e0[_0x1aad16(0xb2)]!==0x2||typeof _0xe7d2e0[_0x1aad16(0x73)]!==_0x1aad16(0x6b)||!_0xe7d2e0[_0x1aad16(0x73)]||canonical(_0xe7d2e0[_0x1aad16(0xb8)])!==canonical(_0x2f0b02)||!Array[_0x1aad16(0xb0)](_0xe7d2e0[_0x1aad16(0xb6)])||_0xe7d2e0['batches'][_0x1aad16(0x79)]!==_0x2e83d9[_0x1aad16(0x79)]||new Set(_0xe7d2e0[_0x1aad16(0xb6)][_0x1aad16(0x98)](_0x27e91b=>_0x27e91b[_0x1aad16(0xb7)]))[_0x1aad16(0xa9)]!==_0x2e83d9[_0x1aad16(0x79)]||_0xe7d2e0[_0x1aad16(0xb6)][_0x1aad16(0x8d)]((_0x568e0d,_0x52d55d)=>!validId(_0x568e0d[_0x1aad16(0xb7)])||_0x568e0d['taskId']>0x2**0x34||canonical(_0x568e0d['rowIndexes'])!==canonical(_0x2e83d9[_0x52d55d])||![_0x1aad16(0xa0),_0x1aad16(0xaf),_0x1aad16(0x93),'conflict'][_0x1aad16(0x9d)](_0x568e0d['status'])||!Array[_0x1aad16(0xb0)](_0x568e0d[_0x1aad16(0x9f)])||_0x568e0d['ids']['some'](_0x33bdee=>!validId(_0x33bdee))||new Set(_0x568e0d[_0x1aad16(0x9f)])['size']!==_0x568e0d[_0x1aad16(0x9f)]['length']||_0x568e0d[_0x1aad16(0x9f)]['length']!==0x0&&_0x568e0d[_0x1aad16(0x9f)][_0x1aad16(0x79)]!==_0x568e0d[_0x1aad16(0xb4)]['length']||_0x568e0d['status']===_0x1aad16(0x93)&&_0x568e0d[_0x1aad16(0x9f)]['length']!==_0x568e0d[_0x1aad16(0xb4)][_0x1aad16(0x79)]||_0x568e0d[_0x1aad16(0xb1)]===_0x1aad16(0xa0)&&_0x568e0d[_0x1aad16(0x9f)][_0x1aad16(0x79)]!==0x0))throw Error(_0x1aad16(0xbf));const _0x3d3fe6=_0xe7d2e0[_0x1aad16(0xb6)][_0x1aad16(0xa2)](_0x256dda=>_0x256dda['ids']);if(new Set(_0x3d3fe6)[_0x1aad16(0xa9)]!==_0x3d3fe6[_0x1aad16(0x79)])throw Error(_0x1aad16(0x7b));}else{try{await lstat(_0x77e8c2[_0x1aad16(0x9b)]);throw Error(_0x1aad16(0x82));}catch(_0x3d8c3b){if(_0x3d8c3b[_0x1aad16(0xc0)]!==_0x1aad16(0xbc))throw _0x3d8c3b;}const _0x2b9b28=new Set();_0xe7d2e0={'version':0x2,'importId':randomUUID(),'binding':_0x2f0b02,'batches':_0x2e83d9[_0x1aad16(0x98)](_0x9bc470=>{const _0x490804=_0x1aad16;let _0x285c7f;do{_0x285c7f=Number(BigInt('0x'+randomBytes(0x7)[_0x490804(0xa1)](_0x490804(0xac)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x2b9b28['has'](_0x285c7f));return _0x2b9b28[_0x490804(0x6c)](_0x285c7f),{'taskId':_0x285c7f,'rowIndexes':_0x9bc470,'ids':[],'status':'unsent'};})},await saveImportJson(_0x77e8c2['checkpoint'],_0xe7d2e0);}await _0x77e8c2['onCheckpointReady']?.();const _0xb79fb0=_0xe7d2e0,_0x23bb7a=async(_0x3b99ea,_0x1c40d8)=>{const _0x486a82=_0x1aad16;_0x3b99ea[_0x486a82(0xb1)]=_0x486a82(0xbd),await saveImportJson(_0x77e8c2[_0x486a82(0x9b)],_0xb79fb0);throw Error(_0x1c40d8);},_0x1c8535=async _0x3f79fe=>{const _0x44b2b2=_0x1aad16,_0x1f501b=await _0x56a605[_0x44b2b2(0xab)](_0x3f79fe[_0x44b2b2(0xb7)]);if(!Array[_0x44b2b2(0xb0)](_0x1f501b))throw Error('Invalid\x20import\x20task\x20readback\x20response.');if(_0x3f79fe['status']===_0x44b2b2(0xa0)&&_0x1f501b[_0x44b2b2(0x79)])return _0x23bb7a(_0x3f79fe,'Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.');if(!_0x1f501b[_0x44b2b2(0x79)]){if(_0x3f79fe[_0x44b2b2(0xb1)]===_0x44b2b2(0x93)||_0x3f79fe[_0x44b2b2(0x9f)]['length'])return _0x23bb7a(_0x3f79fe,_0x44b2b2(0xaa));return![];}if(_0x1f501b[_0x44b2b2(0x79)]!==_0x3f79fe[_0x44b2b2(0xb4)][_0x44b2b2(0x79)])return _0x23bb7a(_0x3f79fe,_0x44b2b2(0x74));const _0x1dcfa0=_0x1f501b['map'](_0x5c1758=>_0x5c1758?.['id']);if(_0x1dcfa0[_0x44b2b2(0x8d)](_0x1010ee=>!validId(_0x1010ee)))return _0x23bb7a(_0x3f79fe,'Import\x20generated\x20ID\x20conflict.');const _0x5275d1=_0x1dcfa0;if(_0x5275d1[_0x44b2b2(0x8d)](_0x5683d2=>!validId(_0x5683d2))||_0x5275d1[_0x44b2b2(0x8d)]((_0x5de3eb,_0x4c70b7)=>_0x4c70b7>0x0&&_0x5de3eb<=_0x5275d1[_0x4c70b7-0x1])||_0x3f79fe[_0x44b2b2(0x9f)]['length']&&canonical(_0x5275d1)!==canonical(_0x3f79fe[_0x44b2b2(0x9f)]))return _0x23bb7a(_0x3f79fe,'Import\x20generated\x20ID\x20conflict.');const _0x1620ec=new Set(_0xb79fb0[_0x44b2b2(0xb6)][_0x44b2b2(0xc2)](_0x4776f6=>_0x4776f6!==_0x3f79fe)[_0x44b2b2(0xa2)](_0x1f3262=>_0x1f3262[_0x44b2b2(0x9f)]));if(_0x5275d1[_0x44b2b2(0x8d)](_0x574d5e=>_0x1620ec[_0x44b2b2(0xb9)](_0x574d5e)))return _0x23bb7a(_0x3f79fe,_0x44b2b2(0x7a));for(let _0x126544=0x0;_0x126544<_0x1f501b[_0x44b2b2(0x79)];_0x126544++){const _0x26e4fd=_0x412aea[_0x44b2b2(0x8c)][_0x3f79fe[_0x44b2b2(0xb4)][_0x126544]]['values'];if(Object[_0x44b2b2(0xb5)](_0x26e4fd)[_0x44b2b2(0x8d)](_0x248de8=>!sameImportValue(_0x26e4fd[_0x248de8],_0x1f501b[_0x126544][_0x248de8],_0x412aea[_0x44b2b2(0x94)]?.[_0x44b2b2(0x9d)](_0x248de8)&&!_0x412aea[_0x44b2b2(0x85)]?.[_0x44b2b2(0x9d)](_0x248de8))))return _0x23bb7a(_0x3f79fe,_0x44b2b2(0x83)+_0x412aea[_0x44b2b2(0x8c)][_0x3f79fe[_0x44b2b2(0xb4)][_0x126544]][_0x44b2b2(0x9e)]+'.');}return _0x3f79fe['ids']=_0x5275d1,_0x3f79fe[_0x44b2b2(0xb1)]=_0x44b2b2(0x93),await saveImportJson(_0x77e8c2[_0x44b2b2(0x9b)],_0xb79fb0),!![];};if(_0xb79fb0[_0x1aad16(0xb6)]['some'](_0x414d38=>_0x414d38['status']===_0x1aad16(0xbd)&&!(_0x77e8c2[_0x1aad16(0xba)]&&_0x77e8c2[_0x1aad16(0x9a)]&&_0x412aea[_0x1aad16(0x94)]?.['length']&&_0x414d38[_0x1aad16(0x9f)][_0x1aad16(0x79)]===_0x414d38[_0x1aad16(0xb4)][_0x1aad16(0x79)])))throw Error(_0x1aad16(0x71));if(_0x77e8c2[_0x1aad16(0xba)]){for(const _0x18df8d of _0xb79fb0[_0x1aad16(0xb6)])await _0x1c8535(_0x18df8d);}for(const _0x409c5e of _0xb79fb0[_0x1aad16(0xb6)]){if(_0x409c5e[_0x1aad16(0xb1)]===_0x1aad16(0x93))continue;if(!_0x77e8c2[_0x1aad16(0xba)])await _0x1c8535(_0x409c5e);_0x409c5e[_0x1aad16(0xb1)]='pending',await saveImportJson(_0x77e8c2[_0x1aad16(0x9b)],_0xb79fb0),_0x359d40++;const _0x1ba884=_0x409c5e[_0x1aad16(0xb4)][_0x1aad16(0x98)](_0x7c06eb=>_0x412aea[_0x1aad16(0x8c)][_0x7c06eb][_0x1aad16(0x99)]),_0x3895bc=Date[_0x1aad16(0x7e)](),_0x30e5ed={'batch':_0x359d40,'rowStart':_0x412aea[_0x1aad16(0x8c)][_0x409c5e[_0x1aad16(0xb4)][0x0]][_0x1aad16(0x9e)],'rowEnd':_0x412aea[_0x1aad16(0x8c)][_0x409c5e[_0x1aad16(0xb4)]['at'](-0x1)][_0x1aad16(0x9e)],'count':_0x1ba884[_0x1aad16(0x79)],'bytes':_0x32613c(_0x409c5e['rowIndexes'],_0x409c5e['taskId']),'elapsedMs':0x0,'status':_0x1aad16(0x6f)};_0x4214d2[_0x1aad16(0x77)](_0x30e5ed);try{const _0x226300=await _0x56a605[_0x1aad16(0xbb)](_0x1ba884,_0x409c5e[_0x1aad16(0xb7)]);if(!_0x226300||_0x226300[_0x1aad16(0x9c)]!==_0x1ba884[_0x1aad16(0x79)]||!Array['isArray'](_0x226300['ids'])||_0x226300['ids'][_0x1aad16(0x79)]!==_0x1ba884[_0x1aad16(0x79)]||_0x226300[_0x1aad16(0x9f)]['some'](_0x300204=>!validId(_0x300204))||new Set(_0x226300[_0x1aad16(0x9f)])['size']!==_0x226300['ids']['length'])throw Error(_0x1aad16(0xc3));_0x409c5e[_0x1aad16(0x9f)]=_0x226300[_0x1aad16(0x9f)],await saveImportJson(_0x77e8c2[_0x1aad16(0x9b)],_0xb79fb0);if(!await _0x1c8535(_0x409c5e))throw Error(_0x1aad16(0xc1));}catch(_0x1aa693){if(_0x409c5e[_0x1aad16(0xb1)]===_0x1aad16(0xbd))throw _0x1aa693;try{await _0x1c8535(_0x409c5e);}catch(_0x28b7c6){if(_0x409c5e['status']===_0x1aad16(0xbd))throw _0x28b7c6;}if(_0x409c5e[_0x1aad16(0xb1)]!=='succeeded')throw Error(_0x1aad16(0x89));}finally{_0x30e5ed['elapsedMs']=Date[_0x1aad16(0x7e)]()-_0x3895bc,_0x30e5ed[_0x1aad16(0xb1)]=_0x409c5e[_0x1aad16(0xb1)]===_0x1aad16(0x93)?'succeeded':_0x409c5e[_0x1aad16(0xb1)]==='conflict'?_0x1aad16(0xbd):_0x1aad16(0x6f);}}const _0x2c363b={'status':_0x1aad16(0x7c),..._0x2bfaa9()};return await saveImportJson(_0x77e8c2[_0x1aad16(0x96)],_0x2c363b),_0x2c363b;}catch(_0x51d79c){if(_0xe7d2e0)await saveImportJson(_0x77e8c2[_0x1aad16(0x96)],{'status':'incomplete',..._0x2bfaa9(),'message':_0x51d79c[_0x1aad16(0xa6)]});throw _0x51d79c;}finally{await _0x248218();}}
@@ -1 +1 @@
1
- function a139_0x4665(){const _0x36dbaa=['reference','model','isInteger','Worksheet\x20exceeds\x20','Invalid\x20worksheet\x20hyperlink\x20reference.','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','close','creatorName','textarea','slice','some','errors','parseInt','media','col','doType','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','exceljs','stringify','generalPurposeBitFlag','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Workbook','1970934iSwGfi','readBigUInt64LE','2lcOpDB','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','test','attributes','isBuffer','_xlnm.Print_Titles','datetime','size','top','before','sort','message','creatorId','readUInt16LE','761778evZeNM','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','fileName','fileNameStr','getCell','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','length','Duplicate\x20workbook\x20ZIP\x20entry.','Cell\x20exceeds\x2064\x20KB.','extraFields','serial_number','date','ref','extname','byteLength','relativeOffsetOfLocalHeader','extraFieldsLength','boolean','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','60954HNzTDU','XLSX\x20file\x20exceeds\x2020\x20MB.','dataset','MAX_SAFE_INTEGER','image','unixPermissions','file','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','push','compressedSize','Required\x20image\x20value\x20is\x20missing.','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','digest','properties','generated','write','find','dataValidations','Requested\x20worksheet\x20does\x20not\x20exist.','Unknown\x20Excel\x20header:\x20','METADATA','decodeEx','uncompressedSize','jszip','set','bitFlag','destroy','exceljs/lib/utils/col-cache.js','sharedFormula','filter','exec','equals','required','opentag','parseText','object','Expected\x20an\x20Excel\x20date\x20cell.','isArray','sheet','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','mergeCell','cells','clear','startsWith','hyperlink','integer','entry','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','isSafeInteger','update','appCode','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','Invalid\x20dataset\x20field\x20extension\x20metadata.','handleUTF8','autoIncrement','worksheets','pop','includes','readEntry','toLowerCase','23130096BpzQio','\x20columns.','parse','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','Image\x20XML\x20event\x20budget\x20exceeded.','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','.xlsx','address','charCodeAt','subarray','right','uploadFields','mapping','parseClose','closetag','directory','split','data','merges','openReadStream','string','add','deleted','externalFileAttributes','end','code','Invalid\x20ZIP\x20local\x20file\x20header.','Invalid\x20worksheet\x20nested\x20row.','Worksheet\x20column\x20objects\x20exceed\x20100000.','Duplicate\x20dataset\x20field\x20codes.','imageFields','dataset-import/','Image\x20XML\x20node\x20budget\x20exceeded.','definedName','fileCommentRaw','xl/workbook.xml','name','lastIndexOf','decimal','parseOpen','Non-canonical\x20worksheet\x20ZIP\x20entry.','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','eachCell','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','upload','every','image/jpeg','resolve','entryCount','Invalid\x20worksheet\x20merge\x20reference.','result','Invalid\x20XLSX\x20archive.','546787eoMsmZ','./reader/readerFor','row','hex','Worksheet\x20coordinate\x20exceeds\x20','hiddenRow','error','Only\x20.xlsx\x20files\x20are\x20supported.','Invalid\x20ZIP\x20central\x20directory\x20layout.','left','Invalid\x20worksheet\x20XML.','hidden','File\x20is\x20not\x20an\x20XLSX\x20workbook.','type','./utils','XML\x20DTD/entities\x20are\x20not\x20supported.','2104288vqBwEd','Invalid\x20worksheet\x20column\x20range.','192GbYwks','modifierId','imageCells','value','getRow','jpg','original','./utf8','get','Unsupported\x20field\x20type:\x20','max','4613478SHwJVw','Required\x20field\x20is\x20not\x20mapped:\x20','xlsx','getTime','columnCount','processAttributes','parserVersion','has','trim','number','bottom','map','20QfDckO','nativeCell','readEntryCursor','Formula\x20has\x20no\x20cached\x20result.','Invalid\x20worksheet\x20coordinate.','rowCount','sha256','fileNameRaw','contentHash','Unknown\x20or\x20generated\x20mapping\x20field:\x20','localeCompare','Invalid\x20worksheet\x20XML:\x20','exceljs/lib/xlsx/xform/book/defined-name-xform.js','utf8','sourceType','from','abs','warnings','values','isFinite','headerRow','text','5ueFDQv','readUInt32LE','datasetId','versionMadeBy','fields','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','batchSize'];a139_0x4665=function(){return _0x36dbaa;};return a139_0x4665();}const a139_0x2cf248=a139_0x54ac;(function(_0x363c3b,_0x6112a6){const _0x333d51=a139_0x54ac,_0xc7e7ae=_0x363c3b();while(!![]){try{const _0x3b1da2=-parseInt(_0x333d51(0x7c))/0x1*(-parseInt(_0x333d51(0xdb))/0x2)+parseInt(_0x333d51(0xfd))/0x3*(parseInt(_0x333d51(0x8e))/0x4)+-parseInt(_0x333d51(0xbb))/0x5*(-parseInt(_0x333d51(0x99))/0x6)+parseInt(_0x333d51(0xd9))/0x7+parseInt(_0x333d51(0x8c))/0x8+parseInt(_0x333d51(0xe9))/0x9*(-parseInt(_0x333d51(0xa5))/0xa)+-parseInt(_0x333d51(0x13b))/0xb;if(_0x3b1da2===_0x6112a6)break;else _0xc7e7ae['push'](_0xc7e7ae['shift']());}catch(_0x112224){_0xc7e7ae['push'](_0xc7e7ae['shift']());}}}(a139_0x4665,0x89956));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a139_0x4edb8f from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a139_0x9b9df5 from'exceljs';import a139_0x2f3373 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','tenantCode',a139_0x2cf248(0x131),a139_0x2cf248(0xbd),a139_0x2cf248(0xe7),a139_0x2cf248(0xc9),a139_0x2cf248(0x8f),'modifierName','createTime','updateTime',a139_0x2cf248(0x151)]),TYPES=new Set([a139_0x2cf248(0x14f),'text',a139_0x2cf248(0xca),a139_0x2cf248(0xa2),a139_0x2cf248(0x161),a139_0x2cf248(0x12c),a139_0x2cf248(0xfb),a139_0x2cf248(0xf5),a139_0x2cf248(0xe1),'image','upload']),isImageContainer=_0x4ef188=>[a139_0x2cf248(0x101),a139_0x2cf248(0x74)][a139_0x2cf248(0x138)](_0x4ef188[a139_0x2cf248(0x13a)]()),hash=_0x2d943f=>createHash(a139_0x2cf248(0xab))[a139_0x2cf248(0x130)](_0x2d943f)[a139_0x2cf248(0x10b)](a139_0x2cf248(0x7f)),require=createRequire(import.meta.url),DefinedNameXform=require(a139_0x2cf248(0xb1)),nameCoordinates=require(a139_0x2cf248(0x11a)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a139_0x2cf248(0x77)](a139_0x2cf248(0xd4))),zipRequire=createRequire(excelRequire[a139_0x2cf248(0x77)](a139_0x2cf248(0x116))),ZipEntry=zipRequire('./zipEntry'),zipReader=zipRequire(a139_0x2cf248(0x7d)),zipUtf8=zipRequire(a139_0x2cf248(0x95)),zipPaths=zipRequire(a139_0x2cf248(0x8a));function centralDirectoryEnd(_0x1aae4a,_0x29ff15){const _0x244ae2=a139_0x2cf248,_0x546871=()=>new Error(_0x244ae2(0x84)),_0x34d89f=_0x1aae4a[_0x244ae2(0x160)](Buffer[_0x244ae2(0xb4)]([0x50,0x4b,0x5,0x6]));if(_0x34d89f<0x0||_0x34d89f+0x16>_0x1aae4a['length']||_0x34d89f+0x16+_0x1aae4a[_0x244ae2(0xe8)](_0x34d89f+0x14)!==_0x1aae4a[_0x244ae2(0xf0)])throw _0x546871();let _0x2cc31d=_0x1aae4a['readUInt16LE'](_0x34d89f+0xa),_0x1480d2=_0x1aae4a['readUInt32LE'](_0x34d89f+0xc),_0x4add43=_0x1aae4a['readUInt32LE'](_0x34d89f+0x10),_0x2edaef=_0x34d89f;const _0x13f0ea=_0x34d89f-0x14,_0x4dea33=_0x13f0ea>=0x0&&_0x1aae4a[_0x244ae2(0xbc)](_0x13f0ea)===0x7064b50,_0x391439=[0x4,0x6,0x8,0xa][_0x244ae2(0xcc)](_0x137531=>_0x1aae4a[_0x244ae2(0xe8)](_0x34d89f+_0x137531)===0xffff)||_0x1480d2===0xffffffff||_0x4add43===0xffffffff;if(_0x4dea33!==_0x391439)throw _0x546871();if(_0x4dea33){if(_0x1aae4a['lastIndexOf'](Buffer[_0x244ae2(0xb4)]([0x50,0x4b,0x6,0x7]))!==_0x13f0ea)throw _0x546871();const _0x4fedba=_0x5e8f60=>{const _0x41979a=_0x244ae2,_0x243f0e=Number(_0x1aae4a[_0x41979a(0xda)](_0x5e8f60));if(!Number[_0x41979a(0x12f)](_0x243f0e))throw _0x546871();return _0x243f0e;};_0x2edaef=_0x4fedba(_0x13f0ea+0x8);if(_0x1aae4a[_0x244ae2(0xbc)](_0x13f0ea+0x4)!==0x0||_0x1aae4a['readUInt32LE'](_0x13f0ea+0x10)!==0x1||_0x2edaef>_0x13f0ea-0x38||_0x1aae4a['readUInt32LE'](_0x2edaef)!==0x6064b50||_0x4fedba(_0x2edaef+0x4)!==0x2c||_0x2edaef+0x38!==_0x13f0ea||_0x1aae4a[_0x244ae2(0xbc)](_0x2edaef+0x10)!==0x0||_0x1aae4a[_0x244ae2(0xbc)](_0x2edaef+0x14)!==0x0)throw _0x546871();_0x2cc31d=_0x4fedba(_0x2edaef+0x20),_0x1480d2=_0x4fedba(_0x2edaef+0x28),_0x4add43=_0x4fedba(_0x2edaef+0x30);if(_0x4fedba(_0x2edaef+0x18)!==_0x2cc31d)throw _0x546871();}else{if(_0x1aae4a[_0x244ae2(0xe8)](_0x34d89f+0x4)!==0x0||_0x1aae4a[_0x244ae2(0xe8)](_0x34d89f+0x6)!==0x0||_0x1aae4a['readUInt16LE'](_0x34d89f+0x8)!==_0x2cc31d)throw _0x546871();}const _0x89a4bb=_0x29ff15[_0x244ae2(0xa7)];if(_0x4add43!==_0x89a4bb||_0x2cc31d!==_0x29ff15[_0x244ae2(0x78)]||_0x4add43+_0x1480d2!==_0x2edaef)throw _0x546871();return _0x2edaef;}function consumerEntryName(_0x1e4dae,_0x36a9af){const _0x205417=a139_0x2cf248;if(_0x36a9af[_0x205417(0xf3)][_0x205417(0x11c)](_0x2313e6=>_0x2313e6['id']===0x1)['length']>0x1)throw new Error(_0x205417(0xd3));const _0x5b6080=_0x36a9af,_0x3a4018=_0x36a9af[_0x205417(0xf9)];if(!Buffer[_0x205417(0xdf)](_0x5b6080[_0x205417(0xac)])||!Buffer[_0x205417(0xdf)](_0x5b6080['extraFieldRaw'])||!Buffer[_0x205417(0xdf)](_0x5b6080[_0x205417(0x15d)])||!Number[_0x205417(0x12f)](_0x3a4018)||_0x3a4018<0x0||_0x3a4018>_0x1e4dae[_0x205417(0xf0)]-0x1e||_0x1e4dae[_0x205417(0xbc)](_0x3a4018)!==0x4034b50)throw new Error(_0x205417(0x155));const _0x1c7309=_0x3a4018+0x1e+_0x1e4dae[_0x205417(0xe8)](_0x3a4018+0x1a),_0x1e4473=_0x1c7309+_0x1e4dae['readUInt16LE'](_0x3a4018+0x1c)+_0x36a9af[_0x205417(0x108)];if(!Number[_0x205417(0x12f)](_0x1e4473)||_0x1e4473>_0x1e4dae[_0x205417(0xf0)])throw new Error(_0x205417(0x155));if(_0x1c7309>_0x1e4dae[_0x205417(0xf0)]||!_0x1e4dae[_0x205417(0x144)](_0x3a4018+0x1e,_0x1c7309)[_0x205417(0x11e)](_0x5b6080['fileNameRaw']))throw new Error(_0x205417(0xc0));const _0x310c07=new ZipEntry({},{'decodeFileName':zipUtf8['utf8decode']});_0x310c07[_0x205417(0x118)]=_0x36a9af[_0x205417(0xd6)],_0x310c07[_0x205417(0xec)]=_0x5b6080[_0x205417(0xac)],_0x310c07['fileComment']=_0x5b6080[_0x205417(0x15d)],_0x310c07[_0x205417(0xfa)]=_0x5b6080['extraFieldRaw'][_0x205417(0xf0)],_0x310c07['readExtraFields'](zipReader(_0x5b6080['extraFieldRaw'])),_0x310c07[_0x205417(0x134)](),_0x310c07['versionMadeBy']=_0x36a9af[_0x205417(0xbe)],_0x310c07[_0x205417(0x152)]=_0x36a9af['externalFileAttributes'],_0x310c07[_0x205417(0x9e)]();const _0x6721be=_0x310c07['dir']||Boolean((_0x310c07[_0x205417(0x102)]??0x0)&0x4000),_0x129886=zipPaths[_0x205417(0x77)](_0x310c07[_0x205417(0xed)]),_0xacd892=_0x129886[_0x205417(0x12a)]('/')?_0x129886['slice'](0x1):_0x129886;return{'name':_0xacd892,'original':_0x310c07[_0x205417(0xed)],'directory':_0x6721be};}export function normalizeImportFields(_0x523fc1){const _0x4c0ff1=a139_0x2cf248;if(!_0x523fc1||(_0x523fc1['source']??_0x523fc1[_0x4c0ff1(0xff)]?.[_0x4c0ff1(0xb3)])!==_0x4c0ff1(0x113))throw new Error(_0x4c0ff1(0x104));const _0x3e1301=Array[_0x4c0ff1(0x124)](_0x523fc1[_0x4c0ff1(0xbf)]),_0x41b433=_0x3e1301?_0x523fc1[_0x4c0ff1(0xbf)]:_0x523fc1[_0x4c0ff1(0x10c)];if(!Array[_0x4c0ff1(0x124)](_0x41b433)||_0x41b433[_0x4c0ff1(0xf0)]===0x0)throw new Error('Dataset\x20field\x20metadata\x20is\x20missing.');const _0x345fd2=[],_0x45dadd=new Set();for(const _0x1e815e of _0x41b433){if(_0x1e815e[_0x4c0ff1(0x151)]===!![])continue;let _0x34446b=_0x1e815e['extend']??{};if(!_0x3e1301&&typeof _0x34446b===_0x4c0ff1(0x14f)){try{_0x34446b=JSON[_0x4c0ff1(0x13d)](_0x34446b);}catch{throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}if(!_0x34446b||typeof _0x34446b!==_0x4c0ff1(0x122)||Array['isArray'](_0x34446b))throw new Error(_0x4c0ff1(0x133));}const _0x419230=_0x3e1301?_0x1e815e[_0x4c0ff1(0x15f)]:_0x1e815e[_0x4c0ff1(0x154)],_0x4c743d=_0x3e1301?_0x1e815e[_0x4c0ff1(0xd1)]:_0x1e815e[_0x4c0ff1(0x89)]??_0x1e815e['dataType'];if(typeof _0x419230!==_0x4c0ff1(0x14f)||!_0x419230||typeof _0x4c743d!=='string'||_0x45dadd[_0x4c0ff1(0xa0)](_0x419230))throw new Error(_0x4c0ff1(0xc7));if(_0x4c743d['toLowerCase']()===_0x4c0ff1(0xf4))throw new Error(_0x4c0ff1(0xeb));_0x45dadd[_0x4c0ff1(0x150)](_0x419230);const _0x728e1a=_0x3e1301?_0x1e815e:_0x34446b,_0x3987d5={'code':_0x419230,'type':_0x4c743d,'required':_0x728e1a['required']===!![]};if(RESERVED['has'](_0x419230)||_0x728e1a['generated']===!![]||_0x728e1a[_0x4c0ff1(0x135)]===!![])_0x3987d5[_0x4c0ff1(0x10d)]=!![];_0x345fd2['push'](_0x3987d5);}return _0x345fd2;}async function checkArchive(_0x9524c9,_0x4e65bf){await new Promise((_0x768824,_0x331d50)=>{a139_0x2f3373['fromBuffer'](_0x9524c9,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x57f3ad,_0x147df4)=>{const _0x2c8699=a139_0x54ac;if(_0x57f3ad||!_0x147df4){_0x331d50(_0x57f3ad??new Error(_0x2c8699(0x7b)));return;}let _0x3e301c;try{_0x3e301c=centralDirectoryEnd(_0x9524c9,_0x147df4);}catch(_0x19c043){_0x147df4['close'](),_0x331d50(_0x19c043);return;}let _0xcdbeef=0x0,_0xb84208=0x0,_0x51fd4c=0x0,_0x408c11=0x0,_0x4bf3ad=0x0,_0x530604=0x0,_0x4b991d=0x0,_0x16806d=0x0,_0x22d50e=0x0,_0xa9e620=![],_0x3a5cef;const _0x303a45=new Set(),_0x35e471=_0xdb6600=>{const _0xe1e413=_0x2c8699;if(_0xa9e620)return;_0xa9e620=!![],_0x3a5cef?.['destroy'](),_0x147df4[_0xe1e413(0xc8)](),_0x331d50(_0xdb6600);},_0x5efeb3=(_0x301de4,_0x51064d)=>{const _0x5b1878=_0x2c8699;if(!_0x301de4||!/^\d+$/[_0x5b1878(0xdd)](_0x301de4))throw new Error(_0x5b1878(0xa9));const _0x436b0f=Number(_0x301de4);if(!Number[_0x5b1878(0x12f)](_0x436b0f)||_0x436b0f<0x1||_0x436b0f>_0x51064d)throw new Error(_0x5b1878(0x80)+_0x51064d+'.');return _0x436b0f;},_0x40c42a=(_0x15ea53,_0x3a390b=MAX_XML_COLUMNS)=>{const _0x229f30=_0x2c8699,_0x53fe51=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x229f30(0x11d)](_0x15ea53);if(!_0x53fe51)throw new Error(_0x229f30(0x126));let _0x3c8013=0x0;for(const _0x41bbcc of _0x53fe51[0x1])_0x3c8013=_0x3c8013*0x1a+_0x41bbcc[_0x229f30(0x143)](0x0)-0x40;if(_0x3c8013>_0x3a390b)throw new Error(_0x229f30(0xc5)+_0x3a390b+_0x229f30(0x13c));return{'row':_0x5efeb3(_0x53fe51[0x2],MAX_XML_ROWS),'col':_0x3c8013};},_0x1b3821=_0x519e8d=>{const _0x4d6901=_0x2c8699;if(_0x519e8d[_0x4d6901(0x15f)]==='_xlnm.Print_Area'||_0x519e8d[_0x4d6901(0x15f)]===_0x4d6901(0xe0))return;for(const _0x34f9b0 of _0x519e8d['ranges']){if(!ABSOLUTE_NAME_RANGE[_0x4d6901(0xdd)](_0x34f9b0[_0x4d6901(0x14b)]('!')[_0x4d6901(0x137)]()||''))continue;const _0x45ea38=nameCoordinates[_0x4d6901(0x114)](_0x34f9b0),_0x538b53='top'in _0x45ea38,_0x363536=_0x538b53?[_0x45ea38['top'],_0x45ea38[_0x4d6901(0xa3)]]:[_0x45ea38[_0x4d6901(0x7e)]],_0x287a98=_0x538b53?[_0x45ea38[_0x4d6901(0x85)],_0x45ea38['right']]:[_0x45ea38['col']],_0x4386fb=(_0x2e8b35,_0xfbd1e4)=>Number[_0x4d6901(0x12f)](_0x2e8b35)&&_0x2e8b35>=0x1&&_0x2e8b35<=_0xfbd1e4;if(!_0x363536[_0x4d6901(0x75)](_0x282cd3=>_0x4386fb(_0x282cd3,MAX_XML_ROWS))||!_0x287a98[_0x4d6901(0x75)](_0x497da0=>_0x4386fb(_0x497da0,MAX_XML_COLUMNS)))throw new Error('Invalid\x20defined\x20name\x20coordinate.');_0x4b991d+=_0x538b53?(_0x45ea38[_0x4d6901(0xa3)]-_0x45ea38[_0x4d6901(0xe3)]+0x1)*(_0x45ea38[_0x4d6901(0x145)]-_0x45ea38[_0x4d6901(0x85)]+0x1):0x1;if(_0x4b991d>MAX_ROWS)throw new Error(_0x4d6901(0x71));}};_0x147df4['on'](_0x2c8699(0x82),_0x35e471),_0x147df4['on'](_0x2c8699(0x12d),_0x4f9863=>{const _0x16a8dd=_0x2c8699;if(_0xa9e620)return;if(++_0x51fd4c>0x2710||(_0xcdbeef+=_0x4f9863[_0x16a8dd(0x115)])>MAX_EXPANDED){_0x35e471(new Error(_0x16a8dd(0xd2)));return;}let _0x43acbc;try{_0x43acbc=consumerEntryName(_0x9524c9,_0x4f9863);}catch(_0x275e52){_0x35e471(_0x275e52);return;}if(_0x43acbc[_0x16a8dd(0x14a)]){_0x147df4[_0x16a8dd(0x139)]();return;}const _0x57774c=_0x43acbc[_0x16a8dd(0x15f)];if(_0x4e65bf&&(_0x57774c!==_0x43acbc[_0x16a8dd(0x94)]||_0x303a45[_0x16a8dd(0xa0)](_0x57774c)||_0x57774c[_0x16a8dd(0x12a)]('/')||_0x57774c[_0x16a8dd(0x138)]('\x5c'))){_0x35e471(new Error(_0x16a8dd(0xea)));return;}if(_0x57774c!==_0x43acbc[_0x16a8dd(0x94)]&&(_0x57774c===_0x16a8dd(0x15e)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x16a8dd(0xdd)](_0x57774c))){_0x35e471(new Error(_0x16a8dd(0x106)));return;}const _0x2c5e40=_0x57774c===_0x16a8dd(0x15e);if(_0x2c5e40&&_0x303a45[_0x16a8dd(0xa0)](_0x57774c)){_0x35e471(new Error(_0x16a8dd(0xf1)));return;}_0x303a45[_0x16a8dd(0x150)](_0x57774c);const _0x933f10=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x16a8dd(0xdd)](_0x57774c);if(_0x933f10&&!/^xl\/worksheets\/sheet\d+[.]xml$/['test'](_0x57774c)){_0x35e471(new Error(_0x16a8dd(0x70)));return;}_0x147df4[_0x16a8dd(0x14e)](_0x4f9863,(_0x1d2091,_0x22d65f)=>{const _0x587897=_0x16a8dd;if(_0xa9e620){_0x22d65f?.[_0x587897(0x119)]();return;}if(_0x1d2091||!_0x22d65f){_0x35e471(_0x1d2091??new Error('Invalid\x20XLSX\x20entry.'));return;}_0x3a5cef=_0x22d65f;const _0x571a59=_0x4e65bf?[]:undefined,_0x1e227c=_0x4e65bf&&/[.](xml|rels)$/[_0x587897(0xdd)](_0x57774c)?new StringDecoder(_0x587897(0xb2)):undefined,_0x438bf3=_0x1e227c?new SaxesParser({'xmlns':![]}):undefined,_0x1045cf=()=>{const _0x58a1d5=_0x587897;if(++_0x22d50e>0x1e8480)throw Error(_0x58a1d5(0x13f));};_0x438bf3?.['on']('doctype',()=>{const _0x189f36=_0x587897;throw Error(_0x189f36(0x8b));}),_0x438bf3?.['on'](_0x587897(0x120),()=>{const _0x1469a3=_0x587897;_0x1045cf();if(++_0x16806d>0x7a120)throw Error(_0x1469a3(0x15b));}),_0x438bf3?.['on'](_0x587897(0xba),_0x1045cf),_0x438bf3?.['on']('closetag',_0x1045cf),_0x438bf3?.['on']('error',_0x64a902=>{throw _0x64a902;});const _0x1022fa=_0x933f10||_0x2c5e40?new StringDecoder('utf8'):undefined,_0x50cbe8=_0x933f10||_0x2c5e40?new SaxesParser({'xmlns':![]}):undefined;let _0x46924f,_0x1a1ab0=0x0,_0x413bdf=0x0,_0x547b95,_0x3d8b90,_0x2be73b=![],_0x58d537=![],_0x5adfdb,_0x46812a,_0x49e6ac,_0x23b1d3=![];const _0x5cccd1=[],_0x38012e=new Set();let _0x3f50f1;const _0x1f1214=(_0x5b5838,_0x198671=0x0)=>{const _0x2b5997=_0x587897;_0x4bf3ad+=_0x198671+Math[_0x2b5997(0x98)](0x0,_0x5b5838-_0x413bdf),_0x413bdf=Math['max'](_0x413bdf,_0x5b5838);if(_0x4bf3ad>MAX_ROWS)throw new Error(_0x2b5997(0x157));};_0x50cbe8?.['on']('opentag',_0x144d47=>{const _0x4d447a=_0x587897;if(_0x2c5e40){if(!_0x46924f&&_0x144d47[_0x4d447a(0x15f)]===_0x4d447a(0x15c))_0x46924f=new DefinedNameXform();_0x46924f?.[_0x4d447a(0x162)](_0x144d47);return;}if(_0x144d47[_0x4d447a(0x15f)]===_0x4d447a(0x7e)){if(_0x58d537)throw new Error(_0x4d447a(0x156));_0x5efeb3(_0x144d47[_0x4d447a(0xde)]['r'],MAX_XML_ROWS),_0x547b95=undefined,_0x49e6ac=undefined,_0x23b1d3=![];}else{if(_0x144d47[_0x4d447a(0x15f)]==='c'){if(_0x58d537)throw new Error('Invalid\x20worksheet\x20nested\x20cell.');_0x58d537=!![],_0x2be73b=Boolean(Number[_0x4d447a(0xce)](_0x144d47[_0x4d447a(0xde)]['s']??'',0xa)),_0x3f50f1=undefined,_0x5adfdb=_0x144d47[_0x4d447a(0xde)]['r']||undefined,_0x46812a=_0x5adfdb?_0x40c42a(_0x5adfdb):undefined;if(_0x46812a)_0x3d8b90=_0x46812a;else _0x3d8b90=_0x547b95?{'row':_0x547b95[_0x4d447a(0x7e)],'col':_0x547b95[_0x4d447a(0xd0)]+0x1}:undefined;}else{if(_0x58d537&&['f','v','t'][_0x4d447a(0x138)](_0x144d47[_0x4d447a(0x15f)])){_0x3f50f1=_0x144d47[_0x4d447a(0x15f)];if(_0x144d47[_0x4d447a(0x15f)]==='f'&&_0x144d47['attributes']['t'])_0x2be73b=!![];}else{if(_0x58d537&&_0x144d47['name']==='r')_0x2be73b=!![];else{if(_0x144d47[_0x4d447a(0x15f)]===_0x4d447a(0x12b)){const _0x4f3c60=_0x144d47[_0x4d447a(0xde)][_0x4d447a(0xf6)];if(!_0x4f3c60)throw new Error(_0x4d447a(0xc6));const _0x489f34=_0x4f3c60['split'](':');if(_0x489f34[_0x4d447a(0xf0)]>0x2)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x690b04=_0x40c42a(_0x489f34[0x0]),_0x1d1a4c=_0x40c42a(_0x489f34[0x1]??_0x489f34[0x0]);_0x38012e['add'](_0x4f3c60),_0x1f1214(Math[_0x4d447a(0x98)](_0x690b04['col'],_0x1d1a4c[_0x4d447a(0xd0)]),0x1);}else{if(_0x144d47[_0x4d447a(0x15f)]===_0x4d447a(0xd0)){const _0x30a5d5=_0x5efeb3(_0x144d47[_0x4d447a(0xde)]['min'],0x4000),_0x5ad195=_0x5efeb3(_0x144d47[_0x4d447a(0xde)][_0x4d447a(0x98)],0x4000);if(_0x30a5d5>_0x5ad195)throw new Error(_0x4d447a(0x8d));_0x1f1214(_0x5ad195,0x1);}else{if(_0x144d47[_0x4d447a(0x15f)]===_0x4d447a(0x127)){const _0x452afb=_0x144d47[_0x4d447a(0xde)]['ref'];if(!_0x452afb)throw new Error(_0x4d447a(0x79));const _0x40ca61=_0x452afb[_0x4d447a(0x14b)](':');if(_0x40ca61[_0x4d447a(0xf0)]>0x2)throw new Error(_0x4d447a(0x79));const _0xe28f80=_0x40c42a(_0x40ca61[0x0]),_0x3bfa83=_0x40c42a(_0x40ca61[0x1]??_0x40ca61[0x0]);_0x1f1214(Math['max'](_0xe28f80[_0x4d447a(0xd0)],_0x3bfa83['col']));const _0x110aac=(Math[_0x4d447a(0xb5)](_0x3bfa83[_0x4d447a(0x7e)]-_0xe28f80[_0x4d447a(0x7e)])+0x1)*(Math[_0x4d447a(0xb5)](_0x3bfa83[_0x4d447a(0xd0)]-_0xe28f80[_0x4d447a(0xd0)])+0x1);_0x408c11+=_0x110aac+_0x1a1ab0++;if(_0x408c11>MAX_ROWS)throw new Error('Worksheet\x20merge\x20work\x20exceeds\x20100000.');}}}}}}}}),_0x50cbe8?.['on'](_0x587897(0xba),_0x2a3624=>{const _0x188751=_0x587897;if(_0x2c5e40){_0x46924f?.[_0x188751(0x121)](_0x2a3624);return;}if(_0x58d537&&_0x3f50f1&&_0x2a3624)_0x2be73b=!![];}),_0x50cbe8?.['on'](_0x587897(0x149),_0x22f277=>{const _0x486565=_0x587897;if(_0x2c5e40){_0x46924f&&!_0x46924f[_0x486565(0x148)]()&&(_0x1b3821(_0x46924f['model']),_0x46924f=undefined);return;}if(_0x22f277['name']==='c'){!_0x2be73b&&_0x5adfdb&&!_0x49e6ac&&(_0x49e6ac={'before':_0x547b95,'cells':[]});if(_0x49e6ac){if(++_0x530604>0xf4240)throw new Error(_0x486565(0x73));_0x49e6ac[_0x486565(0x128)][_0x486565(0x107)]({'reference':_0x5adfdb,'address':_0x46812a,'materialized':_0x2be73b});if(!_0x5adfdb&&_0x2be73b)_0x23b1d3=!![];}if(_0x2be73b){if(!_0x49e6ac||_0x5adfdb){if(!_0x3d8b90)throw new Error(_0x486565(0x13e));if(_0x3d8b90[_0x486565(0xd0)]>MAX_XML_COLUMNS)throw new Error('Worksheet\x20exceeds\x2016384\x20columns.');_0x1f1214(_0x3d8b90[_0x486565(0xd0)]);}_0x547b95=_0x3d8b90;}_0x58d537=![],_0x3d8b90=undefined,_0x5adfdb=undefined,_0x46812a=undefined,_0x3f50f1=undefined;}else{if(_0x22f277['name']===_0x486565(0x7e)){if(_0x49e6ac&&_0x23b1d3)_0x5cccd1['push'](_0x49e6ac);_0x49e6ac=undefined,_0x23b1d3=![];}else{if(_0x22f277['name']===_0x3f50f1)_0x3f50f1=undefined;}}}),_0x50cbe8?.['on'](_0x587897(0x82),_0x11b80c=>{const _0x2c2d1e=_0x587897;throw new Error(_0x2c2d1e(0xb0)+_0x11b80c['message']);}),_0x22d65f['on'](_0x587897(0x82),_0x35e471),_0x22d65f['on'](_0x587897(0x14c),_0x1c3527=>{const _0x51a56b=_0x587897;if(_0xa9e620)return;_0xb84208+=_0x1c3527[_0x51a56b(0xf0)],_0x571a59?.[_0x51a56b(0x107)](_0x1c3527);if(_0xb84208>MAX_EXPANDED){_0x35e471(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}try{if(_0x438bf3&&_0x1e227c)_0x438bf3[_0x51a56b(0x10e)](_0x1e227c[_0x51a56b(0x10e)](_0x1c3527));if(_0x50cbe8&&_0x1022fa)_0x50cbe8['write'](_0x1022fa['write'](_0x1c3527));}catch(_0x58c00d){_0x35e471(_0x58c00d instanceof Error?_0x58c00d:new Error(_0x51a56b(0x86)));}}),_0x22d65f['on']('end',()=>{const _0x370553=_0x587897;if(_0xa9e620)return;try{if(_0x438bf3&&_0x1e227c)_0x438bf3[_0x370553(0x10e)](_0x1e227c[_0x370553(0x153)]())[_0x370553(0xc8)]();if(_0x50cbe8&&_0x1022fa)_0x50cbe8['write'](_0x1022fa[_0x370553(0x153)]())[_0x370553(0xc8)]();for(const _0x5ce83e of _0x5cccd1){let _0xb3a470=_0x5ce83e[_0x370553(0xe4)];for(const _0x51f3da of _0x5ce83e[_0x370553(0x128)]){if(!_0x51f3da['materialized']&&!(_0x51f3da[_0x370553(0xc2)]&&_0x38012e[_0x370553(0xa0)](_0x51f3da['reference'])))continue;const _0x975658=_0x51f3da[_0x370553(0x142)]??(_0xb3a470?{'row':_0xb3a470[_0x370553(0x7e)],'col':_0xb3a470[_0x370553(0xd0)]+0x1}:undefined);if(!_0x975658)throw new Error(_0x370553(0x13e));if(_0x975658[_0x370553(0xd0)]>MAX_XML_COLUMNS)throw new Error('Worksheet\x20exceeds\x2016384\x20columns.');_0x1f1214(_0x975658['col']),_0xb3a470=_0x975658;}}_0x5cccd1[_0x370553(0xf0)]=0x0,_0x38012e[_0x370553(0x129)]();}catch(_0x3ba894){_0x35e471(_0x3ba894 instanceof Error?_0x3ba894:new Error(_0x370553(0x86)));return;}if(_0x571a59)_0x4e65bf['set'](_0x57774c,Buffer['concat'](_0x571a59));_0x3a5cef=undefined,_0x147df4['readEntry']();});});}),_0x147df4['on'](_0x2c8699(0x153),()=>{const _0x22bc9d=_0x2c8699;if(_0xa9e620)return;if(_0x147df4[_0x22bc9d(0xa7)]!==_0x3e301c){_0x331d50(new Error(_0x22bc9d(0xfc)));return;}if(!_0x303a45[_0x22bc9d(0xa0)]('[Content_Types].xml')||!_0x303a45['has'](_0x22bc9d(0x15e)))_0x331d50(new Error(_0x22bc9d(0x88)));else _0x768824();}),_0x147df4['readEntry']();});});}function valueOf(_0x372094){const _0x165d03=a139_0x2cf248,_0x1301df=_0x372094['value'];if(_0x1301df&&typeof _0x1301df===_0x165d03(0x122)&&('formula'in _0x1301df||_0x165d03(0x11b)in _0x1301df)){if(!(_0x165d03(0x7a)in _0x1301df)||_0x1301df[_0x165d03(0x7a)]===undefined)throw new Error(_0x165d03(0xa8));return _0x1301df[_0x165d03(0x7a)];}return _0x1301df;}function a139_0x54ac(_0x5d3166,_0x7490b6){_0x5d3166=_0x5d3166-0x70;const _0x466519=a139_0x4665();let _0x54ac37=_0x466519[_0x5d3166];return _0x54ac37;}function convert(_0x48e744,_0x169a03){const _0xcd3fc8=a139_0x2cf248;if(_0x48e744===null||_0x48e744===undefined||_0x48e744===''){if(_0x169a03['required']&&!_0x169a03[_0xcd3fc8(0x10d)])throw new Error('Required\x20value\x20is\x20missing.');return null;}if(typeof _0x48e744==='string'&&Buffer[_0xcd3fc8(0xf8)](_0x48e744,_0xcd3fc8(0xb2))>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');switch(_0x169a03[_0xcd3fc8(0x89)]['toLowerCase']()){case'string':case'text':case'textarea':if(typeof _0x48e744!==_0xcd3fc8(0x14f))throw new Error('Expected\x20a\x20text\x20cell.');return _0x48e744;case _0xcd3fc8(0xa2):case _0xcd3fc8(0x161):case _0xcd3fc8(0x12c):if(typeof _0x48e744!=='number'||!Number[_0xcd3fc8(0xb8)](_0x48e744)||Math['abs'](_0x48e744)>Number[_0xcd3fc8(0x100)]||_0x169a03[_0xcd3fc8(0x89)][_0xcd3fc8(0x13a)]()===_0xcd3fc8(0x12c)&&!Number[_0xcd3fc8(0xc4)](_0x48e744))throw new Error(_0xcd3fc8(0x140));return _0x48e744;case _0xcd3fc8(0xfb):if(typeof _0x48e744!==_0xcd3fc8(0xfb))throw new Error('Expected\x20a\x20boolean\x20cell.');return _0x48e744;case _0xcd3fc8(0xf5):case _0xcd3fc8(0xe1):if(!(_0x48e744 instanceof Date)||!Number['isFinite'](_0x48e744[_0xcd3fc8(0x9c)]()))throw new Error(_0xcd3fc8(0x123));return _0x48e744[_0xcd3fc8(0x9c)]();default:throw new Error(_0xcd3fc8(0x97)+_0x169a03['type']+'.');}}export async function buildExcelManifest(_0x1b7c70){const _0x585dfc=a139_0x2cf248,_0x334f21=_0x1b7c70[_0x585dfc(0xb9)]??0x1;if(!Number[_0x585dfc(0xc4)](_0x334f21)||_0x334f21<0x1||_0x334f21>MAX_ROWS)throw new Error(_0x585dfc(0x10a));if(_0x1b7c70[_0x585dfc(0xc1)]!==undefined&&(!Number['isInteger'](_0x1b7c70['batchSize'])||_0x1b7c70['batchSize']<0x1||_0x1b7c70['batchSize']>0x3e8))throw new Error('batchSize\x20must\x20be\x20between\x201\x20and\x201000.');if(a139_0x4edb8f[_0x585dfc(0xf7)](_0x1b7c70[_0x585dfc(0x103)])['toLowerCase']()!==_0x585dfc(0x141))throw new Error(_0x585dfc(0x83));const _0x116a52=await stat(_0x1b7c70[_0x585dfc(0x103)]);if(!_0x116a52['isFile']()||_0x116a52[_0x585dfc(0xe2)]>MAX_FILE)throw new Error(_0x585dfc(0x105));const _0xb19d40=await readFile(_0x1b7c70[_0x585dfc(0x103)]);if(_0xb19d40[_0x585dfc(0xf0)]>MAX_FILE)throw new Error(_0x585dfc(0xfe));const _0x39f222=_0x1b7c70[_0x585dfc(0xbf)][_0x585dfc(0xcc)](_0x528657=>isImageContainer(_0x528657[_0x585dfc(0x89)])&&Object[_0x585dfc(0xb7)](_0x1b7c70['mapping'])[_0x585dfc(0x138)](_0x528657['code']))?new Map():undefined;await checkArchive(_0xb19d40,_0x39f222);const _0x2daa87=new a139_0x9b9df5[(_0x585dfc(0xd8))]();await _0x2daa87[_0x585dfc(0x9b)]['load'](_0xb19d40,{'ignoreNodes':[_0x585dfc(0x110)]});const _0x2895de=_0x1b7c70[_0x585dfc(0x125)];let _0x7ef6bc;if(_0x2895de===undefined)_0x7ef6bc=_0x2daa87[_0x585dfc(0x136)][0x0];else{if(typeof _0x2895de===_0x585dfc(0x14f)&&_0x2daa87['worksheets'][_0x585dfc(0xcc)](_0x375bc1=>_0x375bc1[_0x585dfc(0x15f)]===_0x2895de))_0x7ef6bc=_0x2daa87[_0x585dfc(0x136)]['find'](_0x1a81a7=>_0x1a81a7[_0x585dfc(0x15f)]===_0x2895de);else{if(typeof _0x2895de===_0x585dfc(0xa2)||/^\d+$/['test'](_0x2895de)){const _0x8c3ab6=Number(_0x2895de);if(!Number[_0x585dfc(0xc4)](_0x8c3ab6)||_0x8c3ab6<0x1)throw new Error(_0x585dfc(0xd7));_0x7ef6bc=_0x2daa87[_0x585dfc(0x136)][_0x8c3ab6-0x1];}else _0x7ef6bc=_0x2daa87[_0x585dfc(0x136)][_0x585dfc(0x10f)](_0x584083=>_0x584083['name']===_0x2895de);}}if(!_0x7ef6bc)throw new Error(_0x585dfc(0x111));if(_0x7ef6bc[_0x585dfc(0xaa)]>MAX_ROWS||_0x7ef6bc[_0x585dfc(0x9d)]>MAX_COLUMNS)throw new Error('Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.');if((_0x7ef6bc[_0x585dfc(0xc3)][_0x585dfc(0x14d)]??[])[_0x585dfc(0xf0)])throw new Error('Merged\x20cells\x20are\x20not\x20supported.');const _0x2ffdac=new Map();_0x7ef6bc[_0x585dfc(0x92)](_0x334f21)[_0x585dfc(0x72)]((_0x3415fd,_0x170175)=>{const _0x32e5e8=_0x585dfc,_0x10b0ee=valueOf(_0x3415fd);if(typeof _0x10b0ee!=='string'||!_0x10b0ee[_0x32e5e8(0xa1)]()||Buffer[_0x32e5e8(0xf8)](_0x10b0ee)>MAX_CELL)throw new Error(_0x32e5e8(0xef));if(_0x2ffdac[_0x32e5e8(0xa0)](_0x10b0ee))throw new Error('Duplicate\x20header:\x20'+_0x10b0ee+'.');_0x2ffdac[_0x32e5e8(0x117)](_0x10b0ee,_0x170175);});const _0x1c86ac=Object['entries'](_0x1b7c70[_0x585dfc(0x147)]);if(!_0x1c86ac[_0x585dfc(0xf0)])throw new Error(_0x585dfc(0x132));const _0x4a3aaf=new Map(_0x1b7c70[_0x585dfc(0xbf)][_0x585dfc(0xa4)](_0x35f38f=>[_0x35f38f['code'],_0x35f38f]));if(_0x4a3aaf[_0x585dfc(0xe2)]!==_0x1b7c70['fields'][_0x585dfc(0xf0)])throw new Error(_0x585dfc(0x158));if(_0x1b7c70[_0x585dfc(0xbf)][_0x585dfc(0xcc)](_0x28638f=>_0x28638f[_0x585dfc(0x89)]['toLowerCase']()===_0x585dfc(0xf4)))throw new Error(_0x585dfc(0xeb));const _0xa864a5=new Set();for(const [_0x2b90d4,_0x37542a]of _0x1c86ac){const _0x6bdaa5=_0x4a3aaf[_0x585dfc(0x96)](_0x37542a);if(!_0x2ffdac['has'](_0x2b90d4))throw new Error(_0x585dfc(0x112)+_0x2b90d4+'.');if(!_0x6bdaa5||RESERVED[_0x585dfc(0xa0)](_0x37542a)||_0x6bdaa5[_0x585dfc(0x10d)])throw new Error(_0x585dfc(0xae)+_0x37542a+'.');if(_0xa864a5[_0x585dfc(0xa0)](_0x37542a))throw new Error('Duplicate\x20mapping\x20target:\x20'+_0x37542a+'.');if(!TYPES[_0x585dfc(0xa0)](_0x6bdaa5[_0x585dfc(0x89)][_0x585dfc(0x13a)]()))throw new Error(_0x585dfc(0x97)+_0x6bdaa5[_0x585dfc(0x89)]+'.');_0xa864a5[_0x585dfc(0x150)](_0x37542a);}for(const _0x278731 of _0x1b7c70['fields']){if(_0x278731[_0x585dfc(0x11f)]&&!_0x278731[_0x585dfc(0x10d)]&&!RESERVED[_0x585dfc(0xa0)](_0x278731[_0x585dfc(0x154)])&&!_0xa864a5[_0x585dfc(0xa0)](_0x278731['code']))throw new Error(_0x585dfc(0x9a)+_0x278731['code']+'.');}const _0x2e9502={'fileHash':hash(_0xb19d40),'mappingHash':hash(JSON[_0x585dfc(0xd5)]([..._0x1c86ac][_0x585dfc(0xe5)](([_0x39fb2b],[_0x13b707])=>_0x39fb2b[_0x585dfc(0xaf)](_0x13b707)))),'schemaHash':hash(JSON[_0x585dfc(0xd5)]([..._0x1b7c70[_0x585dfc(0xbf)]][_0x585dfc(0xe5)]((_0x50ab4e,_0x417bf0)=>_0x50ab4e[_0x585dfc(0x154)][_0x585dfc(0xaf)](_0x417bf0[_0x585dfc(0x154)])))),'sheet':_0x7ef6bc[_0x585dfc(0x15f)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x51f7d2=_0x1c86ac['filter'](([,_0x1fa62c])=>isImageContainer(_0x4a3aaf[_0x585dfc(0x96)](_0x1fa62c)['type'])),_0x694693=_0x51f7d2['filter'](([,_0x1d1cf8])=>_0x4a3aaf[_0x585dfc(0x96)](_0x1d1cf8)[_0x585dfc(0x89)][_0x585dfc(0x13a)]()==='upload')[_0x585dfc(0xa4)](([,_0x4b379])=>_0x4b379);if(_0x694693[_0x585dfc(0xf0)])_0x2e9502[_0x585dfc(0x146)]=_0x694693;const _0x28b169=_0x39f222?resolveWorksheetImages(_0x39f222,_0x7ef6bc[_0x585dfc(0x15f)],new Set(_0x51f7d2[_0x585dfc(0xa4)](([_0x396a0f])=>_0x2ffdac[_0x585dfc(0x96)](_0x396a0f)))):[],_0x6d18af=new Map();for(const _0x1b8c0c of _0x28b169){const _0x472e05=_0x1b8c0c[_0x585dfc(0x7e)]+':'+_0x1b8c0c[_0x585dfc(0xd0)],_0x2ba23c=_0x6d18af['get'](_0x472e05)??[];_0x2ba23c[_0x585dfc(0x107)](_0x1b8c0c),_0x6d18af['set'](_0x472e05,_0x2ba23c);}const _0x2ace44=new Map();let _0xb5a9c6=0x0;_0x51f7d2['length']&&(_0x2e9502[_0x585dfc(0x159)]=_0x51f7d2[_0x585dfc(0xa4)](([,_0x1e1b0f])=>_0x1e1b0f),_0x2e9502[_0x585dfc(0x90)]=[],_0x2e9502[_0x585dfc(0x9f)]=0x1,_0x2e9502['media']=[]);const _0x1d5d17=Math[_0x585dfc(0x98)](0x0,..._0x28b169['map'](_0x234ff8=>_0x234ff8[_0x585dfc(0x7e)]));let _0x10ace9=0x0;const _0x431952=new Set(_0x1c86ac['map'](([_0x325b63])=>_0x2ffdac['get'](_0x325b63)));for(let _0x4b34e0=_0x334f21+0x1;_0x4b34e0<=Math[_0x585dfc(0x98)](_0x7ef6bc[_0x585dfc(0xaa)],_0x1d5d17);_0x4b34e0++){const _0x26f1a1=_0x7ef6bc['getRow'](_0x4b34e0);if(_0x26f1a1[_0x585dfc(0x87)]||_0x28b169['some'](_0x4a2da3=>_0x4a2da3[_0x585dfc(0x7e)]===_0x4b34e0&&_0x4a2da3[_0x585dfc(0x81)]))_0x10ace9++;let _0x5104d6=_0x28b169[_0x585dfc(0xcc)](_0x33bb6c=>_0x33bb6c[_0x585dfc(0x7e)]===_0x4b34e0);_0x26f1a1[_0x585dfc(0x72)](_0x538d8a=>{const _0xd2ec1d=_0x585dfc;if(_0x538d8a['value']!==null&&_0x538d8a[_0xd2ec1d(0x91)]!==undefined&&_0x538d8a[_0xd2ec1d(0x91)]!=='')_0x5104d6=!![];});if(!_0x5104d6){_0x2e9502['emptyRows'][_0x585dfc(0x107)](_0x4b34e0);continue;}const _0x50498d=Object['create'](null);_0x26f1a1[_0x585dfc(0x72)]((_0xd3443f,_0x230bba)=>{const _0x3c7f7d=_0x585dfc;if(_0x431952['has'](_0x230bba))return;try{const _0x150462=valueOf(_0xd3443f);if(typeof _0x150462===_0x3c7f7d(0x14f)&&Buffer[_0x3c7f7d(0xf8)](_0x150462,_0x3c7f7d(0xb2))>MAX_CELL)throw new Error(_0x3c7f7d(0xf2));}catch(_0x5e595c){_0x2e9502[_0x3c7f7d(0xcd)][_0x3c7f7d(0x107)]({'rowNumber':_0x4b34e0,'field':_0xd3443f[_0x3c7f7d(0x142)],'message':_0x5e595c[_0x3c7f7d(0xe6)]});}});for(const [_0x50687b,_0x1ef7cf]of _0x1c86ac){try{const _0x3ed91b=_0x26f1a1[_0x585dfc(0xee)](_0x2ffdac[_0x585dfc(0x96)](_0x50687b)),_0x12b4e0=_0x4a3aaf[_0x585dfc(0x96)](_0x1ef7cf);if(!isImageContainer(_0x12b4e0['type'])){_0x50498d[_0x1ef7cf]=convert(valueOf(_0x3ed91b),_0x12b4e0);continue;}const _0xfa6bba=_0x6d18af[_0x585dfc(0x96)](_0x4b34e0+':'+_0x2ffdac[_0x585dfc(0x96)](_0x50687b))??[];if(_0xfa6bba[_0x585dfc(0xcc)](_0x21567f=>_0x21567f[_0x585dfc(0x82)]))throw Error(_0xfa6bba[_0x585dfc(0x10f)](_0x64262a=>_0x64262a[_0x585dfc(0x82)])[_0x585dfc(0x82)]);if(_0x3ed91b['value']!=null&&_0x3ed91b['value']!==''&&!_0xfa6bba[_0x585dfc(0xcc)](_0x368be1=>_0x368be1[_0x585dfc(0xa6)]))throw Error('Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.');const _0x5343f2=[];for(const _0x52d86b of _0xfa6bba)for(const _0x3f8bf9 of _0x52d86b[_0x585dfc(0xcf)]){const _0x2cc273=_0x39f222[_0x585dfc(0x96)](_0x3f8bf9);if(!_0x2cc273)throw Error('Missing\x20image\x20media:\x20'+_0x3f8bf9+'.');const _0x235bb0=hash(_0x2cc273),_0x37cfb3=_0x2ace44['get'](_0x235bb0)??validateImageBytes(_0x2cc273);if(!_0x2ace44[_0x585dfc(0xa0)](_0x37cfb3[_0x585dfc(0xad)])){_0xb5a9c6+=_0x37cfb3[_0x585dfc(0xe2)];if(_0xb5a9c6>0x32*0x400*0x400)throw Error(_0x585dfc(0x12e));_0x2ace44[_0x585dfc(0x117)](_0x37cfb3['contentHash'],_0x37cfb3);}_0x5343f2[_0x585dfc(0x107)](_0x37cfb3[_0x585dfc(0xad)]);}if(!_0x5343f2[_0x585dfc(0xf0)]&&_0x12b4e0[_0x585dfc(0x11f)])throw Error(_0x585dfc(0x109));if(_0x5343f2[_0x585dfc(0xf0)])_0x2e9502[_0x585dfc(0x90)][_0x585dfc(0x107)]({'rowNumber':_0x4b34e0,'field':_0x1ef7cf,'hashes':_0x5343f2});_0x50498d[_0x1ef7cf]=_0x5343f2['map'](_0x6c68ed=>{const _0x2c7de0=_0x585dfc,_0x4454e1=_0x2ace44[_0x2c7de0(0x96)](_0x6c68ed),_0x1f31bf=_0x4454e1[_0x2c7de0(0x89)]===_0x2c7de0(0x76)?_0x2c7de0(0x93):_0x4454e1[_0x2c7de0(0x89)][_0x2c7de0(0xcb)](0x6),_0x2ed06f=_0x6c68ed+'.'+_0x1f31bf,_0x4c4f59=_0x2c7de0(0x15a)+'0'['repeat'](0x40)+'/'+_0x2ed06f;return _0x12b4e0[_0x2c7de0(0x89)]['toLowerCase']()===_0x2c7de0(0x74)?{'fileName':_0x2ed06f,'filePath':_0x4c4f59}:{'key':_0x4c4f59,'name':_0x2ed06f,'type':_0x4454e1['type'],'size':_0x4454e1[_0x2c7de0(0xe2)]};});}catch(_0x2227ac){_0x2e9502['errors'][_0x585dfc(0x107)]({'rowNumber':_0x4b34e0,'field':_0x1ef7cf,'message':_0x2227ac[_0x585dfc(0xe6)]});}}_0x2e9502['rows'][_0x585dfc(0x107)]({'rowNumber':_0x4b34e0,'values':_0x50498d});}if(_0x2e9502[_0x585dfc(0xcf)])_0x2e9502['media']=[..._0x2ace44[_0x585dfc(0xb7)]()];if(_0x10ace9)_0x2e9502[_0x585dfc(0xb6)][_0x585dfc(0x107)](_0x10ace9+_0x585dfc(0xdc));return _0x2e9502;}
1
+ const a140_0x56d57d=a140_0x2b02;(function(_0x5b02fb,_0x295179){const _0x54aaa0=a140_0x2b02,_0x26d619=_0x5b02fb();while(!![]){try{const _0x24c32b=parseInt(_0x54aaa0(0x106))/0x1*(-parseInt(_0x54aaa0(0x103))/0x2)+-parseInt(_0x54aaa0(0x100))/0x3+parseInt(_0x54aaa0(0x150))/0x4*(parseInt(_0x54aaa0(0x107))/0x5)+parseInt(_0x54aaa0(0x142))/0x6+parseInt(_0x54aaa0(0xa2))/0x7+parseInt(_0x54aaa0(0xf4))/0x8*(-parseInt(_0x54aaa0(0xd8))/0x9)+-parseInt(_0x54aaa0(0x15f))/0xa;if(_0x24c32b===_0x295179)break;else _0x26d619['push'](_0x26d619['shift']());}catch(_0x5741de){_0x26d619['push'](_0x26d619['shift']());}}}(a140_0x5a5b,0xd308b));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a140_0x418a0e from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a140_0xc7c25c from'exceljs';import a140_0x4cf212 from'yauzl';import{resolveWorksheetImages}from'./image-ooxml.js';function a140_0x2b02(_0x1c1573,_0x504982){_0x1c1573=_0x1c1573-0x72;const _0x5a5be9=a140_0x5a5b();let _0x2b02a0=_0x5a5be9[_0x1c1573];return _0x2b02a0;}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',a140_0x56d57d(0x143),a140_0x56d57d(0x155),a140_0x56d57d(0x128),a140_0x56d57d(0xc1),a140_0x56d57d(0x10a),a140_0x56d57d(0x15e),a140_0x56d57d(0x7b),'createTime',a140_0x56d57d(0xb2),a140_0x56d57d(0x123)]),TYPES=new Set([a140_0x56d57d(0x11a),'text',a140_0x56d57d(0x133),a140_0x56d57d(0x8e),a140_0x56d57d(0xe3),a140_0x56d57d(0x12f),'boolean',a140_0x56d57d(0x101),a140_0x56d57d(0x92),a140_0x56d57d(0xb0),a140_0x56d57d(0x114)]),isImageContainer=_0x15e523=>[a140_0x56d57d(0xb0),a140_0x56d57d(0x114)][a140_0x56d57d(0xaf)](_0x15e523[a140_0x56d57d(0xcf)]()),hash=_0x31e12d=>createHash(a140_0x56d57d(0x87))[a140_0x56d57d(0x7c)](_0x31e12d)[a140_0x56d57d(0xa5)]('hex'),require=createRequire(import.meta.url),DefinedNameXform=require(a140_0x56d57d(0x13b)),nameCoordinates=require(a140_0x56d57d(0xae)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a140_0x56d57d(0x119)](a140_0x56d57d(0x10b))),zipRequire=createRequire(excelRequire[a140_0x56d57d(0x119)](a140_0x56d57d(0xd2))),ZipEntry=zipRequire(a140_0x56d57d(0x97)),zipReader=zipRequire(a140_0x56d57d(0xb8)),zipUtf8=zipRequire('./utf8'),zipPaths=zipRequire(a140_0x56d57d(0x108));function centralDirectoryEnd(_0x4a9f06,_0x36bb08){const _0xbda6bc=a140_0x56d57d,_0x211388=()=>new Error(_0xbda6bc(0x8d)),_0xdba8a1=_0x4a9f06[_0xbda6bc(0x146)](Buffer['from']([0x50,0x4b,0x5,0x6]));if(_0xdba8a1<0x0||_0xdba8a1+0x16>_0x4a9f06[_0xbda6bc(0x13d)]||_0xdba8a1+0x16+_0x4a9f06[_0xbda6bc(0xcc)](_0xdba8a1+0x14)!==_0x4a9f06['length'])throw _0x211388();let _0x1b722e=_0x4a9f06[_0xbda6bc(0xcc)](_0xdba8a1+0xa),_0x3f40ed=_0x4a9f06[_0xbda6bc(0xec)](_0xdba8a1+0xc),_0x35f02a=_0x4a9f06[_0xbda6bc(0xec)](_0xdba8a1+0x10),_0x4a40ae=_0xdba8a1;const _0x4daf29=_0xdba8a1-0x14,_0x2c65d5=_0x4daf29>=0x0&&_0x4a9f06['readUInt32LE'](_0x4daf29)===0x7064b50,_0x22547c=[0x4,0x6,0x8,0xa]['some'](_0x1eaffd=>_0x4a9f06[_0xbda6bc(0xcc)](_0xdba8a1+_0x1eaffd)===0xffff)||_0x3f40ed===0xffffffff||_0x35f02a===0xffffffff;if(_0x2c65d5!==_0x22547c)throw _0x211388();if(_0x2c65d5){if(_0x4a9f06[_0xbda6bc(0x146)](Buffer[_0xbda6bc(0xa6)]([0x50,0x4b,0x6,0x7]))!==_0x4daf29)throw _0x211388();const _0x10d88b=_0x544a09=>{const _0x1263c7=_0xbda6bc,_0xc1f538=Number(_0x4a9f06[_0x1263c7(0x10f)](_0x544a09));if(!Number[_0x1263c7(0x81)](_0xc1f538))throw _0x211388();return _0xc1f538;};_0x4a40ae=_0x10d88b(_0x4daf29+0x8);if(_0x4a9f06['readUInt32LE'](_0x4daf29+0x4)!==0x0||_0x4a9f06[_0xbda6bc(0xec)](_0x4daf29+0x10)!==0x1||_0x4a40ae>_0x4daf29-0x38||_0x4a9f06[_0xbda6bc(0xec)](_0x4a40ae)!==0x6064b50||_0x10d88b(_0x4a40ae+0x4)!==0x2c||_0x4a40ae+0x38!==_0x4daf29||_0x4a9f06[_0xbda6bc(0xec)](_0x4a40ae+0x10)!==0x0||_0x4a9f06[_0xbda6bc(0xec)](_0x4a40ae+0x14)!==0x0)throw _0x211388();_0x1b722e=_0x10d88b(_0x4a40ae+0x20),_0x3f40ed=_0x10d88b(_0x4a40ae+0x28),_0x35f02a=_0x10d88b(_0x4a40ae+0x30);if(_0x10d88b(_0x4a40ae+0x18)!==_0x1b722e)throw _0x211388();}else{if(_0x4a9f06[_0xbda6bc(0xcc)](_0xdba8a1+0x4)!==0x0||_0x4a9f06['readUInt16LE'](_0xdba8a1+0x6)!==0x0||_0x4a9f06['readUInt16LE'](_0xdba8a1+0x8)!==_0x1b722e)throw _0x211388();}const _0x308760=_0x36bb08['readEntryCursor'];if(_0x35f02a!==_0x308760||_0x1b722e!==_0x36bb08[_0xbda6bc(0x12b)]||_0x35f02a+_0x3f40ed!==_0x4a40ae)throw _0x211388();return _0x4a40ae;}function consumerEntryName(_0x110972,_0x1a633f){const _0x23cc1b=a140_0x56d57d;if(_0x1a633f[_0x23cc1b(0x156)][_0x23cc1b(0xfb)](_0x2a7d97=>_0x2a7d97['id']===0x1)['length']>0x1)throw new Error(_0x23cc1b(0x149));const _0x2f7e40=_0x1a633f,_0x1e5488=_0x1a633f[_0x23cc1b(0x83)];if(!Buffer[_0x23cc1b(0x85)](_0x2f7e40[_0x23cc1b(0xb3)])||!Buffer[_0x23cc1b(0x85)](_0x2f7e40[_0x23cc1b(0x10c)])||!Buffer[_0x23cc1b(0x85)](_0x2f7e40['fileCommentRaw'])||!Number[_0x23cc1b(0x81)](_0x1e5488)||_0x1e5488<0x0||_0x1e5488>_0x110972['length']-0x1e||_0x110972[_0x23cc1b(0xec)](_0x1e5488)!==0x4034b50)throw new Error(_0x23cc1b(0x9e));const _0x3742c0=_0x1e5488+0x1e+_0x110972['readUInt16LE'](_0x1e5488+0x1a),_0x18c06d=_0x3742c0+_0x110972[_0x23cc1b(0xcc)](_0x1e5488+0x1c)+_0x1a633f[_0x23cc1b(0xfc)];if(!Number[_0x23cc1b(0x81)](_0x18c06d)||_0x18c06d>_0x110972['length'])throw new Error(_0x23cc1b(0x9e));if(_0x3742c0>_0x110972[_0x23cc1b(0x13d)]||!_0x110972['subarray'](_0x1e5488+0x1e,_0x3742c0)[_0x23cc1b(0x82)](_0x2f7e40[_0x23cc1b(0xb3)]))throw new Error(_0x23cc1b(0x147));const _0x466a10=new ZipEntry({},{'decodeFileName':zipUtf8[_0x23cc1b(0x139)]});_0x466a10['bitFlag']=_0x1a633f[_0x23cc1b(0x7f)],_0x466a10[_0x23cc1b(0xf7)]=_0x2f7e40[_0x23cc1b(0xb3)],_0x466a10['fileComment']=_0x2f7e40[_0x23cc1b(0x74)],_0x466a10[_0x23cc1b(0xbe)]=_0x2f7e40['extraFieldRaw']['length'],_0x466a10[_0x23cc1b(0x127)](zipReader(_0x2f7e40[_0x23cc1b(0x10c)])),_0x466a10['handleUTF8'](),_0x466a10[_0x23cc1b(0x7d)]=_0x1a633f['versionMadeBy'],_0x466a10[_0x23cc1b(0xab)]=_0x1a633f[_0x23cc1b(0xab)],_0x466a10[_0x23cc1b(0x14b)]();const _0x162102=_0x466a10['dir']||Boolean((_0x466a10[_0x23cc1b(0xa7)]??0x0)&0x4000),_0x5e36c4=zipPaths['resolve'](_0x466a10['fileNameStr']),_0x25d23a=_0x5e36c4[_0x23cc1b(0xb7)]('/')?_0x5e36c4[_0x23cc1b(0x148)](0x1):_0x5e36c4;return{'name':_0x25d23a,'original':_0x466a10[_0x23cc1b(0x95)],'directory':_0x162102};}export function normalizeImportFields(_0x164a0b){const _0xcc697b=a140_0x56d57d;if(!_0x164a0b||(_0x164a0b[_0xcc697b(0xd3)]??_0x164a0b[_0xcc697b(0x130)]?.[_0xcc697b(0x159)])!==_0xcc697b(0xa3))throw new Error('Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.');const _0x51299a=Array[_0xcc697b(0x15a)](_0x164a0b['fields']),_0x13d07e=_0x51299a?_0x164a0b[_0xcc697b(0x78)]:_0x164a0b[_0xcc697b(0xdc)];if(!Array['isArray'](_0x13d07e)||_0x13d07e[_0xcc697b(0x13d)]===0x0)throw new Error(_0xcc697b(0x7e));const _0x51c118=[],_0x3d1fa1=new Set();for(const _0xd40331 of _0x13d07e){if(_0xd40331[_0xcc697b(0x123)]===!![])continue;let _0x4859dc=_0xd40331['extend']??{};if(!_0x51299a&&typeof _0x4859dc===_0xcc697b(0x11a)){try{_0x4859dc=JSON[_0xcc697b(0xc5)](_0x4859dc);}catch{throw new Error(_0xcc697b(0x9b));}if(!_0x4859dc||typeof _0x4859dc!=='object'||Array[_0xcc697b(0x15a)](_0x4859dc))throw new Error(_0xcc697b(0x9b));}const _0x4d40df=_0x51299a?_0xd40331['name']:_0xd40331['code'],_0xac744a=_0x51299a?_0xd40331['doType']:_0xd40331['type']??_0xd40331[_0xcc697b(0x8a)];if(typeof _0x4d40df!=='string'||!_0x4d40df||typeof _0xac744a!==_0xcc697b(0x11a)||_0x3d1fa1[_0xcc697b(0xd0)](_0x4d40df))throw new Error(_0xcc697b(0x75));if(_0xac744a['toLowerCase']()===_0xcc697b(0xf0))throw new Error(_0xcc697b(0xfd));_0x3d1fa1[_0xcc697b(0x137)](_0x4d40df);const _0x3140c9=_0x51299a?_0xd40331:_0x4859dc,_0x36383b={'code':_0x4d40df,'type':_0xac744a,'required':_0x3140c9['required']===!![]};if(RESERVED[_0xcc697b(0xd0)](_0x4d40df)||_0x3140c9['generated']===!![]||_0x3140c9[_0xcc697b(0xdb)]===!![])_0x36383b['generated']=!![];_0x51c118[_0xcc697b(0xbb)](_0x36383b);}return _0x51c118;}async function checkArchive(_0x2c584c,_0x2fe788){await new Promise((_0x41cf02,_0x58a03a)=>{const _0xedcc75=a140_0x2b02;a140_0x4cf212[_0xedcc75(0x8c)](_0x2c584c,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x3419bc,_0x44fbe4)=>{const _0x4b67f9=_0xedcc75;if(_0x3419bc||!_0x44fbe4){_0x58a03a(_0x3419bc??new Error(_0x4b67f9(0x110)));return;}let _0x56f7ce;try{_0x56f7ce=centralDirectoryEnd(_0x2c584c,_0x44fbe4);}catch(_0xc2dc89){_0x44fbe4['close'](),_0x58a03a(_0xc2dc89);return;}let _0x563aee=0x0,_0x550b79=0x0,_0x1e13e9=0x0,_0x4f9438=0x0,_0x5a9427=0x0,_0x19efdb=0x0,_0x3b5fb9=0x0,_0x147198=0x0,_0x585a97=0x0,_0x395460=![],_0xc8024d;const _0xd8f080=new Set(),_0x276866=_0x5240e3=>{const _0x1e6b90=_0x4b67f9;if(_0x395460)return;_0x395460=!![],_0xc8024d?.[_0x1e6b90(0xe7)](),_0x44fbe4[_0x1e6b90(0x86)](),_0x58a03a(_0x5240e3);},_0x4a0488=(_0x3fefa9,_0x233d1f)=>{const _0x10f843=_0x4b67f9;if(!_0x3fefa9||!/^\d+$/[_0x10f843(0x12a)](_0x3fefa9))throw new Error(_0x10f843(0x118));const _0x4acdc2=Number(_0x3fefa9);if(!Number[_0x10f843(0x81)](_0x4acdc2)||_0x4acdc2<0x1||_0x4acdc2>_0x233d1f)throw new Error('Worksheet\x20coordinate\x20exceeds\x20'+_0x233d1f+'.');return _0x4acdc2;},_0x17f64b=(_0x217a1c,_0x5aba7a=MAX_XML_COLUMNS)=>{const _0x445be7=_0x4b67f9,_0x570efa=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x445be7(0x8b)](_0x217a1c);if(!_0x570efa)throw new Error(_0x445be7(0x13f));let _0x1e131c=0x0;for(const _0xa3d80e of _0x570efa[0x1])_0x1e131c=_0x1e131c*0x1a+_0xa3d80e['charCodeAt'](0x0)-0x40;if(_0x1e131c>_0x5aba7a)throw new Error(_0x445be7(0x98)+_0x5aba7a+_0x445be7(0x102));return{'row':_0x4a0488(_0x570efa[0x2],MAX_XML_ROWS),'col':_0x1e131c};},_0x48eb40=_0x22956d=>{const _0x4eee2d=_0x4b67f9;if(_0x22956d[_0x4eee2d(0x151)]==='_xlnm.Print_Area'||_0x22956d[_0x4eee2d(0x151)]===_0x4eee2d(0xb6))return;for(const _0x487c0f of _0x22956d[_0x4eee2d(0x153)]){if(!ABSOLUTE_NAME_RANGE[_0x4eee2d(0x12a)](_0x487c0f['split']('!')[_0x4eee2d(0x13c)]()||''))continue;const _0xe76eef=nameCoordinates['decodeEx'](_0x487c0f),_0x561039='top'in _0xe76eef,_0x55a51f=_0x561039?[_0xe76eef[_0x4eee2d(0x109)],_0xe76eef[_0x4eee2d(0x14f)]]:[_0xe76eef[_0x4eee2d(0x14e)]],_0x569911=_0x561039?[_0xe76eef[_0x4eee2d(0x84)],_0xe76eef[_0x4eee2d(0x77)]]:[_0xe76eef['col']],_0x59f350=(_0x506b26,_0xc06ad4)=>Number[_0x4eee2d(0x81)](_0x506b26)&&_0x506b26>=0x1&&_0x506b26<=_0xc06ad4;if(!_0x55a51f[_0x4eee2d(0xbc)](_0x4acc5d=>_0x59f350(_0x4acc5d,MAX_XML_ROWS))||!_0x569911['every'](_0x4602c0=>_0x59f350(_0x4602c0,MAX_XML_COLUMNS)))throw new Error(_0x4eee2d(0xe1));_0x3b5fb9+=_0x561039?(_0xe76eef[_0x4eee2d(0x14f)]-_0xe76eef[_0x4eee2d(0x109)]+0x1)*(_0xe76eef['right']-_0xe76eef[_0x4eee2d(0x84)]+0x1):0x1;if(_0x3b5fb9>MAX_ROWS)throw new Error(_0x4eee2d(0x15d));}};_0x44fbe4['on']('error',_0x276866),_0x44fbe4['on']('entry',_0x1a9643=>{const _0x26e2de=_0x4b67f9;if(_0x395460)return;if(++_0x1e13e9>0x2710||(_0x563aee+=_0x1a9643[_0x26e2de(0x99)])>MAX_EXPANDED){_0x276866(new Error(_0x26e2de(0xeb)));return;}let _0x550adc;try{_0x550adc=consumerEntryName(_0x2c584c,_0x1a9643);}catch(_0x10b7f9){_0x276866(_0x10b7f9);return;}if(_0x550adc['directory']){_0x44fbe4[_0x26e2de(0x12c)]();return;}const _0x3e5e0f=_0x550adc[_0x26e2de(0x151)];if(_0x2fe788&&(_0x3e5e0f!==_0x550adc['original']||_0xd8f080[_0x26e2de(0xd0)](_0x3e5e0f)||_0x3e5e0f[_0x26e2de(0xb7)]('/')||_0x3e5e0f['includes']('\x5c'))){_0x276866(new Error(_0x26e2de(0x88)));return;}if(_0x3e5e0f!==_0x550adc[_0x26e2de(0xed)]&&(_0x3e5e0f===_0x26e2de(0xdd)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x26e2de(0x12a)](_0x3e5e0f))){_0x276866(new Error('Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.'));return;}const _0x12a152=_0x3e5e0f==='xl/workbook.xml';if(_0x12a152&&_0xd8f080['has'](_0x3e5e0f)){_0x276866(new Error('Duplicate\x20workbook\x20ZIP\x20entry.'));return;}_0xd8f080[_0x26e2de(0x137)](_0x3e5e0f);const _0x30f5ef=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x26e2de(0x12a)](_0x3e5e0f);if(_0x30f5ef&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0x26e2de(0x12a)](_0x3e5e0f)){_0x276866(new Error('Non-canonical\x20worksheet\x20ZIP\x20entry.'));return;}_0x44fbe4[_0x26e2de(0x144)](_0x1a9643,(_0x2b15a7,_0x202d7e)=>{const _0x2a1a4f=_0x26e2de;if(_0x395460){_0x202d7e?.[_0x2a1a4f(0xe7)]();return;}if(_0x2b15a7||!_0x202d7e){_0x276866(_0x2b15a7??new Error(_0x2a1a4f(0xdf)));return;}_0xc8024d=_0x202d7e;const _0x38c00b=_0x2fe788?[]:undefined,_0x9b864e=_0x2fe788&&/[.](xml|rels)$/[_0x2a1a4f(0x12a)](_0x3e5e0f)?new StringDecoder(_0x2a1a4f(0x140)):undefined,_0x3ff153=_0x9b864e?new SaxesParser({'xmlns':![]}):undefined,_0x4f9122=()=>{if(++_0x585a97>0x1e8480)throw Error('Image\x20XML\x20event\x20budget\x20exceeded.');};_0x3ff153?.['on'](_0x2a1a4f(0x121),()=>{const _0x12c194=_0x2a1a4f;throw Error(_0x12c194(0xaa));}),_0x3ff153?.['on']('opentag',()=>{const _0x2c5a3e=_0x2a1a4f;_0x4f9122();if(++_0x147198>0x7a120)throw Error(_0x2c5a3e(0x96));}),_0x3ff153?.['on'](_0x2a1a4f(0x89),_0x4f9122),_0x3ff153?.['on'](_0x2a1a4f(0xd1),_0x4f9122),_0x3ff153?.['on']('error',_0x216816=>{throw _0x216816;});const _0x3d5bbe=_0x30f5ef||_0x12a152?new StringDecoder(_0x2a1a4f(0x140)):undefined,_0x42b988=_0x30f5ef||_0x12a152?new SaxesParser({'xmlns':![]}):undefined;let _0x9a5d74,_0x24495a=0x0,_0x4bfa43=0x0,_0x1c4548,_0x3ea45d,_0x5cda69=![],_0x23486c=![],_0x1eeb58,_0x27ba96,_0x35045c,_0x23604b=![];const _0x5b4b07=[],_0x4fdae8=new Set();let _0x595a62;const _0x3029a2=(_0x3df024,_0x43acba=0x0)=>{const _0x27f0a5=_0x2a1a4f;_0x5a9427+=_0x43acba+Math[_0x27f0a5(0x104)](0x0,_0x3df024-_0x4bfa43),_0x4bfa43=Math[_0x27f0a5(0x104)](_0x4bfa43,_0x3df024);if(_0x5a9427>MAX_ROWS)throw new Error(_0x27f0a5(0x14a));};_0x42b988?.['on'](_0x2a1a4f(0xc4),_0x42eeb8=>{const _0x1d179e=_0x2a1a4f;if(_0x12a152){if(!_0x9a5d74&&_0x42eeb8[_0x1d179e(0x151)]===_0x1d179e(0x79))_0x9a5d74=new DefinedNameXform();_0x9a5d74?.['parseOpen'](_0x42eeb8);return;}if(_0x42eeb8[_0x1d179e(0x151)]===_0x1d179e(0x14e)){if(_0x23486c)throw new Error(_0x1d179e(0x15c));_0x4a0488(_0x42eeb8[_0x1d179e(0x112)]['r'],MAX_XML_ROWS),_0x1c4548=undefined,_0x35045c=undefined,_0x23604b=![];}else{if(_0x42eeb8[_0x1d179e(0x151)]==='c'){if(_0x23486c)throw new Error(_0x1d179e(0x8f));_0x23486c=!![],_0x5cda69=Boolean(Number[_0x1d179e(0x145)](_0x42eeb8[_0x1d179e(0x112)]['s']??'',0xa)),_0x595a62=undefined,_0x1eeb58=_0x42eeb8[_0x1d179e(0x112)]['r']||undefined,_0x27ba96=_0x1eeb58?_0x17f64b(_0x1eeb58):undefined;if(_0x27ba96)_0x3ea45d=_0x27ba96;else _0x3ea45d=_0x1c4548?{'row':_0x1c4548[_0x1d179e(0x14e)],'col':_0x1c4548[_0x1d179e(0xd5)]+0x1}:undefined;}else{if(_0x23486c&&['f','v','t'][_0x1d179e(0xaf)](_0x42eeb8['name'])){_0x595a62=_0x42eeb8[_0x1d179e(0x151)];if(_0x42eeb8['name']==='f'&&_0x42eeb8[_0x1d179e(0x112)]['t'])_0x5cda69=!![];}else{if(_0x23486c&&_0x42eeb8[_0x1d179e(0x151)]==='r')_0x5cda69=!![];else{if(_0x42eeb8[_0x1d179e(0x151)]===_0x1d179e(0xce)){const _0x57745e=_0x42eeb8[_0x1d179e(0x112)][_0x1d179e(0xc6)];if(!_0x57745e)throw new Error(_0x1d179e(0xd7));const _0x20e048=_0x57745e['split'](':');if(_0x20e048[_0x1d179e(0x13d)]>0x2)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x214111=_0x17f64b(_0x20e048[0x0]),_0x54f453=_0x17f64b(_0x20e048[0x1]??_0x20e048[0x0]);_0x4fdae8['add'](_0x57745e),_0x3029a2(Math['max'](_0x214111[_0x1d179e(0xd5)],_0x54f453[_0x1d179e(0xd5)]),0x1);}else{if(_0x42eeb8['name']===_0x1d179e(0xd5)){const _0x2d54ea=_0x4a0488(_0x42eeb8[_0x1d179e(0x112)][_0x1d179e(0x154)],0x4000),_0x402ae8=_0x4a0488(_0x42eeb8['attributes'][_0x1d179e(0x104)],0x4000);if(_0x2d54ea>_0x402ae8)throw new Error(_0x1d179e(0xf6));_0x3029a2(_0x402ae8,0x1);}else{if(_0x42eeb8[_0x1d179e(0x151)]===_0x1d179e(0xa0)){const _0x3fd5c1=_0x42eeb8['attributes'][_0x1d179e(0xc6)];if(!_0x3fd5c1)throw new Error('Invalid\x20worksheet\x20merge\x20reference.');const _0x224491=_0x3fd5c1[_0x1d179e(0x141)](':');if(_0x224491[_0x1d179e(0x13d)]>0x2)throw new Error(_0x1d179e(0x13a));const _0x2f8019=_0x17f64b(_0x224491[0x0]),_0x5ddf6f=_0x17f64b(_0x224491[0x1]??_0x224491[0x0]);_0x3029a2(Math[_0x1d179e(0x104)](_0x2f8019[_0x1d179e(0xd5)],_0x5ddf6f[_0x1d179e(0xd5)]));const _0x5c9504=(Math['abs'](_0x5ddf6f[_0x1d179e(0x14e)]-_0x2f8019[_0x1d179e(0x14e)])+0x1)*(Math[_0x1d179e(0x80)](_0x5ddf6f['col']-_0x2f8019['col'])+0x1);_0x4f9438+=_0x5c9504+_0x24495a++;if(_0x4f9438>MAX_ROWS)throw new Error(_0x1d179e(0xea));}}}}}}}}),_0x42b988?.['on'](_0x2a1a4f(0x89),_0xb2f973=>{if(_0x12a152){_0x9a5d74?.['parseText'](_0xb2f973);return;}if(_0x23486c&&_0x595a62&&_0xb2f973)_0x5cda69=!![];}),_0x42b988?.['on'](_0x2a1a4f(0xd1),_0x1a2db3=>{const _0x5ea067=_0x2a1a4f;if(_0x12a152){_0x9a5d74&&!_0x9a5d74[_0x5ea067(0x15b)]()&&(_0x48eb40(_0x9a5d74[_0x5ea067(0x131)]),_0x9a5d74=undefined);return;}if(_0x1a2db3[_0x5ea067(0x151)]==='c'){!_0x5cda69&&_0x1eeb58&&!_0x35045c&&(_0x35045c={'before':_0x1c4548,'cells':[]});if(_0x35045c){if(++_0x19efdb>0xf4240)throw new Error(_0x5ea067(0x157));_0x35045c[_0x5ea067(0xf5)][_0x5ea067(0xbb)]({'reference':_0x1eeb58,'address':_0x27ba96,'materialized':_0x5cda69});if(!_0x1eeb58&&_0x5cda69)_0x23604b=!![];}if(_0x5cda69){if(!_0x35045c||_0x1eeb58){if(!_0x3ea45d)throw new Error(_0x5ea067(0xc3));if(_0x3ea45d['col']>MAX_XML_COLUMNS)throw new Error(_0x5ea067(0xb4));_0x3029a2(_0x3ea45d[_0x5ea067(0xd5)]);}_0x1c4548=_0x3ea45d;}_0x23486c=![],_0x3ea45d=undefined,_0x1eeb58=undefined,_0x27ba96=undefined,_0x595a62=undefined;}else{if(_0x1a2db3[_0x5ea067(0x151)]==='row'){if(_0x35045c&&_0x23604b)_0x5b4b07[_0x5ea067(0xbb)](_0x35045c);_0x35045c=undefined,_0x23604b=![];}else{if(_0x1a2db3[_0x5ea067(0x151)]===_0x595a62)_0x595a62=undefined;}}}),_0x42b988?.['on'](_0x2a1a4f(0x129),_0xa49768=>{const _0x207ba5=_0x2a1a4f;throw new Error('Invalid\x20worksheet\x20XML:\x20'+_0xa49768[_0x207ba5(0xee)]);}),_0x202d7e['on']('error',_0x276866),_0x202d7e['on'](_0x2a1a4f(0x76),_0xdc5bc6=>{const _0x11e91f=_0x2a1a4f;if(_0x395460)return;_0x550b79+=_0xdc5bc6['length'],_0x38c00b?.[_0x11e91f(0xbb)](_0xdc5bc6);if(_0x550b79>MAX_EXPANDED){_0x276866(new Error(_0x11e91f(0xeb)));return;}try{if(_0x3ff153&&_0x9b864e)_0x3ff153[_0x11e91f(0xc9)](_0x9b864e[_0x11e91f(0xc9)](_0xdc5bc6));if(_0x42b988&&_0x3d5bbe)_0x42b988[_0x11e91f(0xc9)](_0x3d5bbe[_0x11e91f(0xc9)](_0xdc5bc6));}catch(_0x31ac6b){_0x276866(_0x31ac6b instanceof Error?_0x31ac6b:new Error('Invalid\x20worksheet\x20XML.'));}}),_0x202d7e['on'](_0x2a1a4f(0xff),()=>{const _0x254406=_0x2a1a4f;if(_0x395460)return;try{if(_0x3ff153&&_0x9b864e)_0x3ff153[_0x254406(0xc9)](_0x9b864e[_0x254406(0xff)]())[_0x254406(0x86)]();if(_0x42b988&&_0x3d5bbe)_0x42b988[_0x254406(0xc9)](_0x3d5bbe[_0x254406(0xff)]())[_0x254406(0x86)]();for(const _0x396ce9 of _0x5b4b07){let _0x2f8574=_0x396ce9[_0x254406(0x12d)];for(const _0xc183a4 of _0x396ce9[_0x254406(0xf5)]){if(!_0xc183a4[_0x254406(0xf9)]&&!(_0xc183a4['reference']&&_0x4fdae8[_0x254406(0xd0)](_0xc183a4[_0x254406(0x72)])))continue;const _0x4c5c7b=_0xc183a4[_0x254406(0xd4)]??(_0x2f8574?{'row':_0x2f8574[_0x254406(0x14e)],'col':_0x2f8574['col']+0x1}:undefined);if(!_0x4c5c7b)throw new Error(_0x254406(0xc3));if(_0x4c5c7b['col']>MAX_XML_COLUMNS)throw new Error(_0x254406(0xb4));_0x3029a2(_0x4c5c7b['col']),_0x2f8574=_0x4c5c7b;}}_0x5b4b07[_0x254406(0x13d)]=0x0,_0x4fdae8[_0x254406(0x9d)]();}catch(_0x102e09){_0x276866(_0x102e09 instanceof Error?_0x102e09:new Error(_0x254406(0x91)));return;}if(_0x38c00b)_0x2fe788['set'](_0x3e5e0f,Buffer['concat'](_0x38c00b));_0xc8024d=undefined,_0x44fbe4['readEntry']();});});}),_0x44fbe4['on'](_0x4b67f9(0xff),()=>{const _0x16625b=_0x4b67f9;if(_0x395460)return;if(_0x44fbe4['readEntryCursor']!==_0x56f7ce){_0x58a03a(new Error(_0x16625b(0xc2)));return;}if(!_0xd8f080[_0x16625b(0xd0)](_0x16625b(0xa8))||!_0xd8f080[_0x16625b(0xd0)](_0x16625b(0xdd)))_0x58a03a(new Error(_0x16625b(0xc7)));else _0x41cf02();}),_0x44fbe4[_0x4b67f9(0x12c)]();});});}function valueOf(_0x4d6658){const _0x809ae7=a140_0x56d57d,_0x148a0a=_0x4d6658[_0x809ae7(0x161)];if(_0x148a0a&&typeof _0x148a0a===_0x809ae7(0x11d)&&('formula'in _0x148a0a||_0x809ae7(0x152)in _0x148a0a)){if(!('result'in _0x148a0a)||_0x148a0a['result']===undefined)throw new Error(_0x809ae7(0xb9));return _0x148a0a['result'];}return _0x148a0a;}function convert(_0x4d711e,_0x55c696){const _0x4bb50c=a140_0x56d57d;if(_0x4d711e===null||_0x4d711e===undefined||_0x4d711e===''){if(_0x55c696[_0x4bb50c(0xbd)]&&!_0x55c696[_0x4bb50c(0xa9)])throw new Error(_0x4bb50c(0x124));return null;}if(typeof _0x4d711e===_0x4bb50c(0x11a)&&Buffer[_0x4bb50c(0x10e)](_0x4d711e,_0x4bb50c(0x140))>MAX_CELL)throw new Error(_0x4bb50c(0xf8));switch(_0x55c696[_0x4bb50c(0xfa)]['toLowerCase']()){case _0x4bb50c(0x11a):case'text':case _0x4bb50c(0x133):if(typeof _0x4d711e!==_0x4bb50c(0x11a))throw new Error('Expected\x20a\x20text\x20cell.');return _0x4d711e;case'number':case _0x4bb50c(0xe3):case _0x4bb50c(0x12f):if(typeof _0x4d711e!==_0x4bb50c(0x8e)||!Number[_0x4bb50c(0xe2)](_0x4d711e)||Math['abs'](_0x4d711e)>Number[_0x4bb50c(0x162)]||_0x55c696[_0x4bb50c(0xfa)][_0x4bb50c(0xcf)]()===_0x4bb50c(0x12f)&&!Number[_0x4bb50c(0x117)](_0x4d711e))throw new Error(_0x4bb50c(0xf3));return _0x4d711e;case _0x4bb50c(0xc0):if(typeof _0x4d711e!=='boolean')throw new Error(_0x4bb50c(0x138));return _0x4d711e;case _0x4bb50c(0x101):case'datetime':if(!(_0x4d711e instanceof Date)||!Number[_0x4bb50c(0xe2)](_0x4d711e[_0x4bb50c(0xda)]()))throw new Error(_0x4bb50c(0x9a));return _0x4d711e['getTime']();default:throw new Error(_0x4bb50c(0x125)+_0x55c696[_0x4bb50c(0xfa)]+'.');}}function a140_0x5a5b(){const _0x489acd=['isBuffer','close','sha256','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','text','dataType','exec','fromBuffer','Invalid\x20ZIP\x20central\x20directory\x20layout.','number','Invalid\x20worksheet\x20nested\x20cell.','dataset-import/','Invalid\x20worksheet\x20XML.','datetime','file','get','fileNameStr','Image\x20XML\x20node\x20budget\x20exceeded.','./zipEntry','Worksheet\x20exceeds\x20','uncompressedSize','Expected\x20an\x20Excel\x20date\x20cell.','Invalid\x20dataset\x20field\x20extension\x20metadata.','hiddenRow','clear','Invalid\x20ZIP\x20local\x20file\x20header.','trim','mergeCell','media','12067762yRttZG','METADATA','imageFields','digest','from','unixPermissions','[Content_Types].xml','generated','XML\x20DTD/entities\x20are\x20not\x20supported.','externalFileAttributes','extname','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','exceljs/lib/utils/col-cache.js','includes','image','imageCells','updateTime','fileNameRaw','Worksheet\x20exceeds\x2016384\x20columns.','Unknown\x20Excel\x20header:\x20','_xlnm.Print_Titles','startsWith','./reader/readerFor','Formula\x20has\x20no\x20cached\x20result.','set','push','every','required','extraFieldsLength','Required\x20field\x20is\x20not\x20mapped:\x20','boolean','creatorId','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','opentag','parse','ref','File\x20is\x20not\x20an\x20XLSX\x20workbook.','sheet','write','Requested\x20worksheet\x20does\x20not\x20exist.','repeat','readUInt16LE','merges','hyperlink','toLowerCase','has','closetag','jszip','source','address','col','emptyRows','Invalid\x20worksheet\x20hyperlink\x20reference.','65610hCFSBp','localeCompare','getTime','autoIncrement','properties','xl/workbook.xml','size','Invalid\x20XLSX\x20entry.','sort','Invalid\x20defined\x20name\x20coordinate.','isFinite','decimal','batchSize','getRow','Duplicate\x20mapping\x20target:\x20','destroy','getCell','some','Worksheet\x20merge\x20work\x20exceeds\x20100000.','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','readUInt32LE','original','message','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','serial_number','Merged\x20cells\x20are\x20not\x20supported.','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','80NnhFwJ','cells','Invalid\x20worksheet\x20column\x20range.','fileName','Cell\x20exceeds\x2064\x20KB.','materialized','type','filter','compressedSize','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','headerRow','end','2447184XyUIWp','date','\x20columns.','1446naArtd','max','stringify','758dKfaFK','10PaZAbh','./utils','top','creatorName','exceljs','extraFieldRaw','hidden','byteLength','readBigUInt64LE','Invalid\x20XLSX\x20archive.','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','attributes','mapping','upload','.xlsx','eachCell','isInteger','Invalid\x20worksheet\x20coordinate.','resolve','string','isFile','map','object','Required\x20image\x20value\x20is\x20missing.','warnings','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','doctype','find','deleted','Required\x20value\x20is\x20missing.','Unsupported\x20field\x20type:\x20','entries','readExtraFields','datasetId','error','test','entryCount','readEntry','before','image/jpeg','integer','dataset','model','code','textarea','worksheets','Missing\x20image\x20media:\x20','jpg','add','Expected\x20a\x20boolean\x20cell.','utf8decode','Invalid\x20worksheet\x20merge\x20reference.','exceljs/lib/xlsx/xform/book/defined-name-xform.js','pop','length','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','utf8','split','9019098dSChAB','tenantCode','openReadStream','parseInt','lastIndexOf','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','slice','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','Worksheet\x20column\x20objects\x20exceed\x20100000.','processAttributes','contentHash','rowCount','row','bottom','2830900oRmEKv','name','sharedFormula','ranges','min','appCode','extraFields','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','Workbook','sourceType','isArray','parseClose','Invalid\x20worksheet\x20nested\x20row.','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','modifierId','23415420ZmMKlm','values','value','MAX_SAFE_INTEGER','Duplicate\x20header:\x20','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','reference','dataValidations','fileCommentRaw','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','data','right','fields','definedName','parserVersion','modifierName','update','versionMadeBy','Dataset\x20field\x20metadata\x20is\x20missing.','generalPurposeBitFlag','abs','isSafeInteger','equals','relativeOffsetOfLocalHeader','left'];a140_0x5a5b=function(){return _0x489acd;};return a140_0x5a5b();}export async function buildExcelManifest(_0x21f861){const _0x566e0f=a140_0x56d57d,_0x2e4c8b=_0x21f861[_0x566e0f(0xfe)]??0x1;if(!Number['isInteger'](_0x2e4c8b)||_0x2e4c8b<0x1||_0x2e4c8b>MAX_ROWS)throw new Error(_0x566e0f(0xf2));if(_0x21f861['batchSize']!==undefined&&(!Number[_0x566e0f(0x117)](_0x21f861['batchSize'])||_0x21f861[_0x566e0f(0xe4)]<0x1||_0x21f861[_0x566e0f(0xe4)]>0x3e8))throw new Error(_0x566e0f(0xef));if(a140_0x418a0e[_0x566e0f(0xac)](_0x21f861[_0x566e0f(0x93)])['toLowerCase']()!==_0x566e0f(0x115))throw new Error('Only\x20.xlsx\x20files\x20are\x20supported.');const _0x424a93=await stat(_0x21f861[_0x566e0f(0x93)]);if(!_0x424a93[_0x566e0f(0x11b)]()||_0x424a93[_0x566e0f(0xde)]>MAX_FILE)throw new Error(_0x566e0f(0x120));const _0x335ad4=await readFile(_0x21f861[_0x566e0f(0x93)]);if(_0x335ad4['length']>MAX_FILE)throw new Error('XLSX\x20file\x20exceeds\x2020\x20MB.');const _0xca5fab=_0x21f861[_0x566e0f(0x78)][_0x566e0f(0xe9)](_0x126820=>isImageContainer(_0x126820[_0x566e0f(0xfa)])&&Object[_0x566e0f(0x160)](_0x21f861[_0x566e0f(0x113)])[_0x566e0f(0xaf)](_0x126820[_0x566e0f(0x132)]))?new Map():undefined;await checkArchive(_0x335ad4,_0xca5fab);const _0x5799d6=new a140_0xc7c25c[(_0x566e0f(0x158))]();await _0x5799d6['xlsx']['load'](_0x335ad4,{'ignoreNodes':[_0x566e0f(0x73)]});const _0x1ad08b=_0x21f861[_0x566e0f(0xc8)];let _0x3497e1;if(_0x1ad08b===undefined)_0x3497e1=_0x5799d6['worksheets'][0x0];else{if(typeof _0x1ad08b===_0x566e0f(0x11a)&&_0x5799d6['worksheets']['some'](_0x3d139e=>_0x3d139e['name']===_0x1ad08b))_0x3497e1=_0x5799d6['worksheets'][_0x566e0f(0x122)](_0x3c579a=>_0x3c579a[_0x566e0f(0x151)]===_0x1ad08b);else{if(typeof _0x1ad08b===_0x566e0f(0x8e)||/^\d+$/[_0x566e0f(0x12a)](_0x1ad08b)){const _0x144f0c=Number(_0x1ad08b);if(!Number['isInteger'](_0x144f0c)||_0x144f0c<0x1)throw new Error(_0x566e0f(0x13e));_0x3497e1=_0x5799d6[_0x566e0f(0x134)][_0x144f0c-0x1];}else _0x3497e1=_0x5799d6['worksheets']['find'](_0x10f994=>_0x10f994[_0x566e0f(0x151)]===_0x1ad08b);}}if(!_0x3497e1)throw new Error(_0x566e0f(0xca));if(_0x3497e1[_0x566e0f(0x14d)]>MAX_ROWS||_0x3497e1['columnCount']>MAX_COLUMNS)throw new Error('Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.');if((_0x3497e1[_0x566e0f(0x131)][_0x566e0f(0xcd)]??[])[_0x566e0f(0x13d)])throw new Error(_0x566e0f(0xf1));const _0x2f1b37=new Map();_0x3497e1[_0x566e0f(0xe5)](_0x2e4c8b)[_0x566e0f(0x116)]((_0x518347,_0x37e253)=>{const _0x5e9044=_0x566e0f,_0x170d24=valueOf(_0x518347);if(typeof _0x170d24!==_0x5e9044(0x11a)||!_0x170d24[_0x5e9044(0x9f)]()||Buffer[_0x5e9044(0x10e)](_0x170d24)>MAX_CELL)throw new Error('Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.');if(_0x2f1b37[_0x5e9044(0xd0)](_0x170d24))throw new Error(_0x5e9044(0x163)+_0x170d24+'.');_0x2f1b37[_0x5e9044(0xba)](_0x170d24,_0x37e253);});const _0xfe0921=Object[_0x566e0f(0x126)](_0x21f861['mapping']);if(!_0xfe0921[_0x566e0f(0x13d)])throw new Error(_0x566e0f(0xad));const _0x29339c=new Map(_0x21f861[_0x566e0f(0x78)]['map'](_0x58bef0=>[_0x58bef0[_0x566e0f(0x132)],_0x58bef0]));if(_0x29339c[_0x566e0f(0xde)]!==_0x21f861[_0x566e0f(0x78)][_0x566e0f(0x13d)])throw new Error('Duplicate\x20dataset\x20field\x20codes.');if(_0x21f861[_0x566e0f(0x78)][_0x566e0f(0xe9)](_0xf7cd85=>_0xf7cd85[_0x566e0f(0xfa)]['toLowerCase']()==='serial_number'))throw new Error(_0x566e0f(0xfd));const _0x1d5289=new Set();for(const [_0x5a5800,_0x53a7f5]of _0xfe0921){const _0x3b9d73=_0x29339c[_0x566e0f(0x94)](_0x53a7f5);if(!_0x2f1b37['has'](_0x5a5800))throw new Error(_0x566e0f(0xb5)+_0x5a5800+'.');if(!_0x3b9d73||RESERVED[_0x566e0f(0xd0)](_0x53a7f5)||_0x3b9d73['generated'])throw new Error('Unknown\x20or\x20generated\x20mapping\x20field:\x20'+_0x53a7f5+'.');if(_0x1d5289['has'](_0x53a7f5))throw new Error(_0x566e0f(0xe6)+_0x53a7f5+'.');if(!TYPES['has'](_0x3b9d73['type'][_0x566e0f(0xcf)]()))throw new Error(_0x566e0f(0x125)+_0x3b9d73[_0x566e0f(0xfa)]+'.');_0x1d5289[_0x566e0f(0x137)](_0x53a7f5);}for(const _0x2a8869 of _0x21f861[_0x566e0f(0x78)]){if(_0x2a8869[_0x566e0f(0xbd)]&&!_0x2a8869[_0x566e0f(0xa9)]&&!RESERVED['has'](_0x2a8869[_0x566e0f(0x132)])&&!_0x1d5289['has'](_0x2a8869['code']))throw new Error(_0x566e0f(0xbf)+_0x2a8869['code']+'.');}const _0x103c55={'fileHash':hash(_0x335ad4),'mappingHash':hash(JSON['stringify']([..._0xfe0921]['sort'](([_0x108be4],[_0x47d23a])=>_0x108be4['localeCompare'](_0x47d23a)))),'schemaHash':hash(JSON[_0x566e0f(0x105)]([..._0x21f861[_0x566e0f(0x78)]][_0x566e0f(0xe0)]((_0x630ca,_0xa16bab)=>_0x630ca[_0x566e0f(0x132)][_0x566e0f(0xd9)](_0xa16bab[_0x566e0f(0x132)])))),'sheet':_0x3497e1[_0x566e0f(0x151)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x602cfa=_0xfe0921[_0x566e0f(0xfb)](([,_0x340c29])=>isImageContainer(_0x29339c[_0x566e0f(0x94)](_0x340c29)['type'])),_0x500f41=_0x602cfa['filter'](([,_0x52df85])=>_0x29339c['get'](_0x52df85)[_0x566e0f(0xfa)][_0x566e0f(0xcf)]()==='upload')[_0x566e0f(0x11c)](([,_0x16f037])=>_0x16f037);if(_0x500f41[_0x566e0f(0x13d)])_0x103c55['uploadFields']=_0x500f41;const _0x296de3=_0xca5fab?resolveWorksheetImages(_0xca5fab,_0x3497e1[_0x566e0f(0x151)],new Set(_0x602cfa['map'](([_0x404ddb])=>_0x2f1b37[_0x566e0f(0x94)](_0x404ddb)))):[],_0x5a20c6=new Map();for(const _0x1ac1bf of _0x296de3){const _0x5cc0ec=_0x1ac1bf['row']+':'+_0x1ac1bf['col'],_0x419889=_0x5a20c6['get'](_0x5cc0ec)??[];_0x419889[_0x566e0f(0xbb)](_0x1ac1bf),_0x5a20c6[_0x566e0f(0xba)](_0x5cc0ec,_0x419889);}const _0x350b64=new Map();let _0x1e89cd=0x0;_0x602cfa[_0x566e0f(0x13d)]&&(_0x103c55[_0x566e0f(0xa4)]=_0x602cfa['map'](([,_0x59235d])=>_0x59235d),_0x103c55['imageCells']=[],_0x103c55[_0x566e0f(0x7a)]=0x1,_0x103c55[_0x566e0f(0xa1)]=[]);const _0xdb9f7f=Math[_0x566e0f(0x104)](0x0,..._0x296de3[_0x566e0f(0x11c)](_0x2b7de5=>_0x2b7de5['row']));let _0x44d5ae=0x0;const _0x3f75ff=new Set(_0xfe0921[_0x566e0f(0x11c)](([_0x250457])=>_0x2f1b37[_0x566e0f(0x94)](_0x250457)));for(let _0x4ca5d9=_0x2e4c8b+0x1;_0x4ca5d9<=Math[_0x566e0f(0x104)](_0x3497e1['rowCount'],_0xdb9f7f);_0x4ca5d9++){const _0x11ad2f=_0x3497e1[_0x566e0f(0xe5)](_0x4ca5d9);if(_0x11ad2f[_0x566e0f(0x10d)]||_0x296de3[_0x566e0f(0xe9)](_0x2760dd=>_0x2760dd[_0x566e0f(0x14e)]===_0x4ca5d9&&_0x2760dd[_0x566e0f(0x9c)]))_0x44d5ae++;let _0x9afd06=_0x296de3['some'](_0x19d1b7=>_0x19d1b7['row']===_0x4ca5d9);_0x11ad2f[_0x566e0f(0x116)](_0xd555eb=>{const _0xdc0cf7=_0x566e0f;if(_0xd555eb[_0xdc0cf7(0x161)]!==null&&_0xd555eb['value']!==undefined&&_0xd555eb[_0xdc0cf7(0x161)]!=='')_0x9afd06=!![];});if(!_0x9afd06){_0x103c55[_0x566e0f(0xd6)][_0x566e0f(0xbb)](_0x4ca5d9);continue;}const _0x3d7094=Object['create'](null);_0x11ad2f[_0x566e0f(0x116)]((_0x1ca92c,_0x5ddfc1)=>{const _0x431fa7=_0x566e0f;if(_0x3f75ff['has'](_0x5ddfc1))return;try{const _0x134c28=valueOf(_0x1ca92c);if(typeof _0x134c28==='string'&&Buffer['byteLength'](_0x134c28,_0x431fa7(0x140))>MAX_CELL)throw new Error(_0x431fa7(0xf8));}catch(_0xa6c42a){_0x103c55['errors'][_0x431fa7(0xbb)]({'rowNumber':_0x4ca5d9,'field':_0x1ca92c[_0x431fa7(0xd4)],'message':_0xa6c42a[_0x431fa7(0xee)]});}});for(const [_0x207b35,_0x365eac]of _0xfe0921){try{const _0x2fb0e7=_0x11ad2f[_0x566e0f(0xe8)](_0x2f1b37['get'](_0x207b35)),_0x2889eb=_0x29339c[_0x566e0f(0x94)](_0x365eac);if(!isImageContainer(_0x2889eb[_0x566e0f(0xfa)])){_0x3d7094[_0x365eac]=convert(valueOf(_0x2fb0e7),_0x2889eb);continue;}const _0x357302=_0x5a20c6[_0x566e0f(0x94)](_0x4ca5d9+':'+_0x2f1b37[_0x566e0f(0x94)](_0x207b35))??[];if(_0x357302[_0x566e0f(0xe9)](_0x5632cb=>_0x5632cb[_0x566e0f(0x129)]))throw Error(_0x357302[_0x566e0f(0x122)](_0x540421=>_0x540421['error'])[_0x566e0f(0x129)]);if(_0x2fb0e7[_0x566e0f(0x161)]!=null&&_0x2fb0e7['value']!==''&&!_0x357302[_0x566e0f(0xe9)](_0x40eb81=>_0x40eb81['nativeCell']))throw Error(_0x566e0f(0x164));const _0x1e4e03=[];for(const _0x5e426a of _0x357302)for(const _0x4516b3 of _0x5e426a[_0x566e0f(0xa1)]){const _0x53dd72=_0xca5fab['get'](_0x4516b3);if(!_0x53dd72)throw Error(_0x566e0f(0x135)+_0x4516b3+'.');const _0x4ed86b=hash(_0x53dd72),_0x277fe4=_0x350b64['get'](_0x4ed86b)??validateImageBytes(_0x53dd72);if(!_0x350b64['has'](_0x277fe4[_0x566e0f(0x14c)])){_0x1e89cd+=_0x277fe4[_0x566e0f(0xde)];if(_0x1e89cd>0x32*0x400*0x400)throw Error(_0x566e0f(0x111));_0x350b64[_0x566e0f(0xba)](_0x277fe4[_0x566e0f(0x14c)],_0x277fe4);}_0x1e4e03['push'](_0x277fe4[_0x566e0f(0x14c)]);}if(!_0x1e4e03[_0x566e0f(0x13d)]&&_0x2889eb['required'])throw Error(_0x566e0f(0x11e));if(_0x1e4e03[_0x566e0f(0x13d)])_0x103c55[_0x566e0f(0xb1)]['push']({'rowNumber':_0x4ca5d9,'field':_0x365eac,'hashes':_0x1e4e03});_0x3d7094[_0x365eac]=_0x1e4e03['map'](_0x27bff5=>{const _0xd69a3b=_0x566e0f,_0x3fbfb3=_0x350b64[_0xd69a3b(0x94)](_0x27bff5),_0x36682d=_0x3fbfb3[_0xd69a3b(0xfa)]===_0xd69a3b(0x12e)?_0xd69a3b(0x136):_0x3fbfb3[_0xd69a3b(0xfa)][_0xd69a3b(0x148)](0x6),_0x4655b4=_0x27bff5+'.'+_0x36682d,_0x30b30f=_0xd69a3b(0x90)+'0'[_0xd69a3b(0xcb)](0x40)+'/'+_0x4655b4;return _0x2889eb[_0xd69a3b(0xfa)]['toLowerCase']()===_0xd69a3b(0x114)?{'fileName':_0x4655b4,'filePath':_0x30b30f}:{'key':_0x30b30f,'name':_0x4655b4,'type':_0x3fbfb3[_0xd69a3b(0xfa)],'size':_0x3fbfb3[_0xd69a3b(0xde)]};});}catch(_0x379101){_0x103c55['errors'][_0x566e0f(0xbb)]({'rowNumber':_0x4ca5d9,'field':_0x365eac,'message':_0x379101[_0x566e0f(0xee)]});}}_0x103c55['rows']['push']({'rowNumber':_0x4ca5d9,'values':_0x3d7094});}if(_0x103c55[_0x566e0f(0xa1)])_0x103c55[_0x566e0f(0xa1)]=[..._0x350b64['values']()];if(_0x44d5ae)_0x103c55[_0x566e0f(0x11f)][_0x566e0f(0xbb)](_0x44d5ae+'\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.');return _0x103c55;}
@@ -1 +1 @@
1
- function a140_0xb46e(){const _0x568910=['259qMKtfs','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','subarray','Missing\x20PNG\x20data/end.','Truncated\x20PNG\x20data.','95176ljwgzo','1124469BXbzkS','equals','GIF87a','4dyHagT','sha256','decodeAndBlitFrameRGBA','923dlHNXg','Missing\x20GIF\x20trailer.','image/png','Invalid\x20GIF\x20trailer.','Invalid\x20GIF\x20LZW\x20code\x20size.','numFrames','IEND','acTL','GIF\x20frame\x20exceeds\x20canvas.','push','12853971WlwlRG','image/jpeg','omggif','89477DuJLqV','ascii','510uGxqMB','Invalid\x20PNG\x20decoded\x20scanline\x20size.','digest','pngjs','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','read','toString','GIF89a','decode','sync','frameInfo','length','max','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','Truncated\x20JPEG.','height','10bzUpmI','readUInt32BE','hex','width','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','Invalid\x20PNG\x20header.','Animated\x20PNG\x20is\x20not\x20supported.','3085fgZKhk','includes','update','Invalid\x20GIF\x20LZW\x20pixel\x20data.','11ufnaIc','isSafeInteger','concat','9015910TPDPYj','message','jpeg-js','250980vcejww','IDAT','Invalid\x20PNG\x20end.','ceil','readUInt16LE'];a140_0xb46e=function(){return _0x568910;};return a140_0xb46e();}(function(_0x3ab528,_0x52ce6e){const _0x35d47c=a140_0xd312,_0x3a0797=_0x3ab528();while(!![]){try{const _0x554419=-parseInt(_0x35d47c(0xc4))/0x1*(parseInt(_0x35d47c(0xd7))/0x2)+-parseInt(_0x35d47c(0xf3))/0x3*(parseInt(_0x35d47c(0xb4))/0x4)+parseInt(_0x35d47c(0xde))/0x5*(parseInt(_0x35d47c(0xc6))/0x6)+parseInt(_0x35d47c(0xed))/0x7*(-parseInt(_0x35d47c(0xf2))/0x8)+parseInt(_0x35d47c(0xc1))/0x9+-parseInt(_0x35d47c(0xe5))/0xa*(parseInt(_0x35d47c(0xe2))/0xb)+-parseInt(_0x35d47c(0xe8))/0xc*(-parseInt(_0x35d47c(0xb7))/0xd);if(_0x554419===_0x52ce6e)break;else _0x3a0797['push'](_0x3a0797['shift']());}catch(_0x315a6b){_0x3a0797['push'](_0x3a0797['shift']());}}}(a140_0xb46e,0xc3b69));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(_0x1eb3ba,_0xd85604){const _0xe7f62f=a140_0xd312;if(!Number['isSafeInteger'](_0x1eb3ba)||!Number[_0xe7f62f(0xe3)](_0xd85604)||_0x1eb3ba<0x1||_0xd85604<0x1||_0x1eb3ba*_0xd85604>MAX_PIXELS)throw Error(_0xe7f62f(0xd4));}function validateGif(_0xa7b6b6){const _0x4e56e7=a140_0xd312;let _0x1afcd6=0xd,_0x34d102=0x0,_0x122307=0x0;const _0x3fd9fb=_0xa7b6b6[_0x4e56e7(0xec)](0x6),_0x2cacb8=_0xa7b6b6[_0x4e56e7(0xec)](0x8),_0x15a421=_0xa7b6b6[0xa]&0x80?0x1<<(_0xa7b6b6[0xa]&0x7)+0x1:0x0,_0x2601bc=_0x4bc5da=>{const _0xc1a19c=_0x4e56e7;if(_0x1afcd6+_0x4bc5da>_0xa7b6b6[_0xc1a19c(0xd2)])throw Error('Truncated\x20GIF\x20data.');};_0x1afcd6+=_0x15a421*0x3,_0x2601bc(0x0);const _0x379886=()=>{const _0x238fe9=_0x4e56e7,_0x349a4c=[];while(!![]){_0x2601bc(0x1);const _0x561317=_0xa7b6b6[_0x1afcd6++];if(!_0x561317)break;_0x2601bc(_0x561317),_0x349a4c[_0x238fe9(0xc0)](_0xa7b6b6[_0x238fe9(0xef)](_0x1afcd6,_0x1afcd6+_0x561317)),_0x1afcd6+=_0x561317;}return Buffer[_0x238fe9(0xe4)](_0x349a4c);};while(_0x1afcd6<_0xa7b6b6[_0x4e56e7(0xd2)]){const _0xa464e8=_0xa7b6b6[_0x1afcd6++];if(_0xa464e8===0x3b){if(!_0x34d102||_0x1afcd6!==_0xa7b6b6[_0x4e56e7(0xd2)])throw Error(_0x4e56e7(0xba));return;}if(_0xa464e8===0x21){_0x2601bc(0x1),_0x1afcd6++,_0x379886();continue;}if(_0xa464e8!==0x2c)throw Error('Invalid\x20GIF\x20block.');_0x2601bc(0x9);const _0x4579a0=_0xa7b6b6[_0x4e56e7(0xec)](_0x1afcd6),_0x316697=_0xa7b6b6[_0x4e56e7(0xec)](_0x1afcd6+0x2),_0x1c872f=_0xa7b6b6[_0x4e56e7(0xec)](_0x1afcd6+0x4),_0x4f7319=_0xa7b6b6[_0x4e56e7(0xec)](_0x1afcd6+0x6),_0x1cc33c=_0xa7b6b6[_0x1afcd6+0x8];_0x1afcd6+=0x9,dimensions(_0x1c872f,_0x4f7319);if(_0x4579a0+_0x1c872f>_0x3fd9fb||_0x316697+_0x4f7319>_0x2cacb8||++_0x34d102>0x2710||(_0x122307+=_0x3fd9fb*_0x2cacb8)>MAX_PIXELS)throw Error('GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.');const _0x213b2a=_0x1cc33c&0x80?0x1<<(_0x1cc33c&0x7)+0x1:_0x15a421;if(!_0x213b2a)throw Error('GIF\x20image\x20has\x20no\x20palette.');_0x1cc33c&0x80&&(_0x2601bc(_0x213b2a*0x3),_0x1afcd6+=_0x213b2a*0x3);_0x2601bc(0x1);const _0x483129=_0xa7b6b6[_0x1afcd6++];if(_0x483129<0x2||_0x483129>0x8)throw Error(_0x4e56e7(0xbb));const _0x54e9c6=_0x379886(),_0x580546=0x1<<_0x483129,_0x185887=_0x580546+0x1;let _0x38be45=_0x483129+0x1,_0x57d478=_0x185887+0x1,_0x2d793d=0x0,_0x40c232=-0x1,_0x288c92=0x0,_0xcfe580=![];const _0x1c66ee=new Uint32Array(0x1000),_0x554fb1=new Uint16Array(0x1000);for(let _0x1d9f2e=0x0;_0x1d9f2e<_0x580546;_0x1d9f2e++){_0x1c66ee[_0x1d9f2e]=0x1,_0x554fb1[_0x1d9f2e]=_0x1d9f2e;}while(_0x2d793d+_0x38be45<=_0x54e9c6['length']*0x8){let _0x2bd916=0x0;for(let _0x145a3c=0x0;_0x145a3c<_0x38be45;_0x145a3c++,_0x2d793d++)_0x2bd916|=(_0x54e9c6[_0x2d793d>>0x3]>>(_0x2d793d&0x7)&0x1)<<_0x145a3c;if(_0x2bd916===_0x580546){_0x38be45=_0x483129+0x1,_0x57d478=_0x185887+0x1,_0x40c232=-0x1;continue;}if(_0x2bd916===_0x185887){_0xcfe580=!![];break;}if(_0x2bd916>_0x57d478||_0x2bd916===_0x57d478&&_0x40c232<0x0||_0x40c232<0x0&&_0x2bd916>=_0x580546)throw Error('Invalid\x20GIF\x20LZW\x20dictionary\x20reference.');const _0x1c4cae=_0x2bd916===_0x57d478?_0x1c66ee[_0x40c232]+0x1:_0x1c66ee[_0x2bd916],_0x5f39f6=_0x2bd916===_0x57d478?_0x554fb1[_0x40c232]:_0x554fb1[_0x2bd916];if(!_0x1c4cae||_0x5f39f6>=_0x213b2a||(_0x288c92+=_0x1c4cae)>_0x1c872f*_0x4f7319)throw Error(_0x4e56e7(0xe1));if(_0x40c232>=0x0&&_0x57d478<0x1000){_0x1c66ee[_0x57d478]=_0x1c66ee[_0x40c232]+0x1,_0x554fb1[_0x57d478]=Math[_0x4e56e7(0xd3)](_0x554fb1[_0x40c232],_0x5f39f6),_0x57d478++;if(_0x57d478===0x1<<_0x38be45&&_0x38be45<0xc)_0x38be45++;}_0x40c232=_0x2bd916;}if(!_0xcfe580||_0x288c92!==_0x1c872f*_0x4f7319)throw Error(_0x4e56e7(0xee));}throw Error(_0x4e56e7(0xb8));}function a140_0xd312(_0x88a500,_0x281645){_0x88a500=_0x88a500-0xb2;const _0xb46ecb=a140_0xb46e();let _0xd31206=_0xb46ecb[_0x88a500];return _0xd31206;}export function validateImageBytes(_0x5c7529){const _0xd923c2=a140_0xd312;if(!_0x5c7529[_0xd923c2(0xd2)]||_0x5c7529[_0xd923c2(0xd2)]>0xa*0x400*0x400)throw Error(_0xd923c2(0xdb));let _0x21348b;try{if(_0x5c7529[_0xd923c2(0xef)](0x0,0x8)[_0xd923c2(0xb2)](Buffer['from']([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x5c7529[_0xd923c2(0xd2)]<0x21||_0x5c7529[_0xd923c2(0xcd)](_0xd923c2(0xc5),0xc,0x10)!=='IHDR')throw Error(_0xd923c2(0xdc));dimensions(_0x5c7529['readUInt32BE'](0x10),_0x5c7529['readUInt32BE'](0x14));const _0x166fe0=_0x5c7529[_0xd923c2(0xd8)](0x10),_0x484800=_0x5c7529[_0xd923c2(0xd8)](0x14),_0x1e19a2=_0x5c7529[0x18],_0x4b69ef=_0x5c7529[0x19],_0x4ebb45=_0x5c7529[0x1c],_0x4d6985={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x4b69ef];if(!_0x4d6985||![0x1,0x2,0x4,0x8,0x10][_0xd923c2(0xdf)](_0x1e19a2)||_0x4ebb45>0x1)throw Error('Invalid\x20PNG\x20color/depth/interlace.');const _0x289534=_0x45e93c=>Math[_0xd923c2(0xeb)](_0x45e93c*_0x4d6985*_0x1e19a2/0x8)+0x1;let _0x2c321d=_0x289534(_0x166fe0)*_0x484800;if(_0x4ebb45){_0x2c321d=0x0;for(const [_0x5d4cac,_0x43b97d,_0x3d2c42,_0x4cceb3]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 _0x38c076=Math[_0xd923c2(0xd3)](0x0,Math[_0xd923c2(0xeb)]((_0x166fe0-_0x5d4cac)/_0x3d2c42)),_0x3690e3=Math[_0xd923c2(0xd3)](0x0,Math[_0xd923c2(0xeb)]((_0x484800-_0x43b97d)/_0x4cceb3));if(_0x38c076&&_0x3690e3)_0x2c321d+=_0x289534(_0x38c076)*_0x3690e3;}}let _0x54b755=0x8,_0x10c4fa=![];const _0x37f912=[];while(_0x54b755<_0x5c7529[_0xd923c2(0xd2)]){if(_0x54b755+0xc>_0x5c7529[_0xd923c2(0xd2)])throw Error('Truncated\x20PNG\x20chunk.');const _0x2c60b8=_0x5c7529['readUInt32BE'](_0x54b755),_0x54f730=_0x5c7529[_0xd923c2(0xcd)](_0xd923c2(0xc5),_0x54b755+0x4,_0x54b755+0x8);if(_0x54f730===_0xd923c2(0xbe))throw Error(_0xd923c2(0xdd));if(_0x54b755+_0x2c60b8+0xc>_0x5c7529[_0xd923c2(0xd2)])throw Error(_0xd923c2(0xf1));if(_0x54f730===_0xd923c2(0xe9))_0x37f912[_0xd923c2(0xc0)](_0x5c7529[_0xd923c2(0xef)](_0x54b755+0x8,_0x54b755+0x8+_0x2c60b8));_0x54b755+=_0x2c60b8+0xc;if(_0x54f730===_0xd923c2(0xbd)){if(_0x2c60b8||_0x54b755!==_0x5c7529['length'])throw Error(_0xd923c2(0xea));_0x10c4fa=!![];break;}}if(!_0x10c4fa||!_0x37f912[_0xd923c2(0xd2)])throw Error(_0xd923c2(0xf0));if(inflateSync(Buffer[_0xd923c2(0xe4)](_0x37f912),{'maxOutputLength':_0x2c321d+0x1})[_0xd923c2(0xd2)]!==_0x2c321d)throw Error(_0xd923c2(0xc7));const {PNG:_0x42a933}=require(_0xd923c2(0xc9)),_0x20611b=_0x42a933[_0xd923c2(0xd0)][_0xd923c2(0xcc)](_0x5c7529,{'checkCRC':!![]});dimensions(_0x20611b[_0xd923c2(0xda)],_0x20611b['height']),_0x21348b=_0xd923c2(0xb9);}else{if(_0x5c7529[0x0]===0xff&&_0x5c7529[0x1]===0xd8){if(_0x5c7529['at'](-0x2)!==0xff||_0x5c7529['at'](-0x1)!==0xd9)throw Error(_0xd923c2(0xd5));const _0x40d17c=require(_0xd923c2(0xe7)),_0x4b4cde=_0x40d17c[_0xd923c2(0xcf)](_0x5c7529,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x4b4cde[_0xd923c2(0xda)],_0x4b4cde['height']),_0x21348b=_0xd923c2(0xc2);}else{if([_0xd923c2(0xb3),_0xd923c2(0xce)][_0xd923c2(0xdf)](_0x5c7529[_0xd923c2(0xcd)]('ascii',0x0,0x6))){if(_0x5c7529[_0xd923c2(0xd2)]<0xe||_0x5c7529['at'](-0x1)!==0x3b)throw Error('Truncated\x20GIF.');dimensions(_0x5c7529[_0xd923c2(0xec)](0x6),_0x5c7529['readUInt16LE'](0x8)),validateGif(_0x5c7529);const {GifReader:_0x10f37a}=require(_0xd923c2(0xc3)),_0xe89461=new _0x10f37a(_0x5c7529);dimensions(_0xe89461['width'],_0xe89461[_0xd923c2(0xd6)]);const _0x3bd351=_0xe89461[_0xd923c2(0xbc)]();if(!_0x3bd351||_0x3bd351>0x2710||_0x3bd351*_0xe89461[_0xd923c2(0xda)]*_0xe89461[_0xd923c2(0xd6)]>MAX_PIXELS)throw Error(_0xd923c2(0xcb));const _0xf88271=new Uint8Array(_0xe89461[_0xd923c2(0xda)]*_0xe89461[_0xd923c2(0xd6)]*0x4);for(let _0x4eff47=0x0;_0x4eff47<_0x3bd351;_0x4eff47++){const _0x4f2b9b=_0xe89461[_0xd923c2(0xd1)](_0x4eff47);if(_0x4f2b9b['x']+_0x4f2b9b[_0xd923c2(0xda)]>_0xe89461[_0xd923c2(0xda)]||_0x4f2b9b['y']+_0x4f2b9b[_0xd923c2(0xd6)]>_0xe89461['height'])throw Error(_0xd923c2(0xbf));_0xe89461[_0xd923c2(0xb6)](_0x4eff47,_0xf88271);}_0x21348b='image/gif';}else throw Error(_0xd923c2(0xca));}}}catch(_0x20a703){throw Error('Invalid\x20image:\x20'+_0x20a703[_0xd923c2(0xe6)]);}return{'contentHash':createHash(_0xd923c2(0xb5))[_0xd923c2(0xe0)](_0x5c7529)[_0xd923c2(0xc8)](_0xd923c2(0xd9)),'type':_0x21348b,'size':_0x5c7529['length'],'bytes':_0x5c7529};}
1
+ (function(_0xe37c73,_0xd2fc5f){const _0x54b2fc=a141_0x3e21,_0xa69015=_0xe37c73();while(!![]){try{const _0x138945=-parseInt(_0x54b2fc(0x1dc))/0x1+-parseInt(_0x54b2fc(0x1fb))/0x2+-parseInt(_0x54b2fc(0x1c2))/0x3*(parseInt(_0x54b2fc(0x1c1))/0x4)+-parseInt(_0x54b2fc(0x1c3))/0x5*(-parseInt(_0x54b2fc(0x1fa))/0x6)+-parseInt(_0x54b2fc(0x1e2))/0x7*(parseInt(_0x54b2fc(0x1d1))/0x8)+parseInt(_0x54b2fc(0x1c8))/0x9+parseInt(_0x54b2fc(0x1ec))/0xa;if(_0x138945===_0xd2fc5f)break;else _0xa69015['push'](_0xa69015['shift']());}catch(_0x9f53a8){_0xa69015['push'](_0xa69015['shift']());}}}(a141_0x11ba,0xa5891));function a141_0x11ba(){const _0x1d2dd2=['440529VnDmMZ','62185SMpjjm','ceil','subarray','length','Invalid\x20PNG\x20color/depth/interlace.','6443181NkVDcU','read','digest','toString','message','GIF87a','Truncated\x20GIF.','image/png','update','2152plKRYO','omggif','decode','IHDR','pngjs','decodeAndBlitFrameRGBA','jpeg-js','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','height','hex','IDAT','568655TnAICm','GIF89a','image/gif','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','Truncated\x20GIF\x20data.','77klyFkL','max','ascii','Invalid\x20GIF\x20trailer.','equals','Invalid\x20PNG\x20end.','Invalid\x20GIF\x20LZW\x20code\x20size.','readUInt16LE','Animated\x20PNG\x20is\x20not\x20supported.','push','12626050NwmDvI','width','Invalid\x20PNG\x20header.','frameInfo','from','isSafeInteger','Truncated\x20JPEG.','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','includes','Invalid\x20image:\x20','Invalid\x20PNG\x20decoded\x20scanline\x20size.','concat','readUInt32BE','Truncated\x20PNG\x20chunk.','222CEMRUf','2084386kUWNzm','GIF\x20frame\x20exceeds\x20canvas.','Missing\x20GIF\x20trailer.','Invalid\x20GIF\x20block.','numFrames','4FOFuSR'];a141_0x11ba=function(){return _0x1d2dd2;};return a141_0x11ba();}import{createRequire}from'node:module';import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';function a141_0x3e21(_0x159e7c,_0x4b8ecf){_0x159e7c=_0x159e7c-0x1be;const _0x11ba68=a141_0x11ba();let _0x3e2124=_0x11ba68[_0x159e7c];return _0x3e2124;}const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x13ce52,_0x205d18){const _0x1b247d=a141_0x3e21;if(!Number[_0x1b247d(0x1f1)](_0x13ce52)||!Number[_0x1b247d(0x1f1)](_0x205d18)||_0x13ce52<0x1||_0x205d18<0x1||_0x13ce52*_0x205d18>MAX_PIXELS)throw Error('Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.');}function validateGif(_0xb3a494){const _0x4af36a=a141_0x3e21;let _0x495beb=0xd,_0x5001dd=0x0,_0x2d727d=0x0;const _0x2dd62a=_0xb3a494[_0x4af36a(0x1e9)](0x6),_0x53df12=_0xb3a494[_0x4af36a(0x1e9)](0x8),_0x4f6a2e=_0xb3a494[0xa]&0x80?0x1<<(_0xb3a494[0xa]&0x7)+0x1:0x0,_0x3957c9=_0x4be002=>{const _0x58e884=_0x4af36a;if(_0x495beb+_0x4be002>_0xb3a494['length'])throw Error(_0x58e884(0x1e1));};_0x495beb+=_0x4f6a2e*0x3,_0x3957c9(0x0);const _0x1b1cb0=()=>{const _0x37e0f9=_0x4af36a,_0x921ed=[];while(!![]){_0x3957c9(0x1);const _0x46bf99=_0xb3a494[_0x495beb++];if(!_0x46bf99)break;_0x3957c9(_0x46bf99),_0x921ed[_0x37e0f9(0x1eb)](_0xb3a494[_0x37e0f9(0x1c5)](_0x495beb,_0x495beb+_0x46bf99)),_0x495beb+=_0x46bf99;}return Buffer[_0x37e0f9(0x1f7)](_0x921ed);};while(_0x495beb<_0xb3a494[_0x4af36a(0x1c6)]){const _0x3977fe=_0xb3a494[_0x495beb++];if(_0x3977fe===0x3b){if(!_0x5001dd||_0x495beb!==_0xb3a494[_0x4af36a(0x1c6)])throw Error(_0x4af36a(0x1e5));return;}if(_0x3977fe===0x21){_0x3957c9(0x1),_0x495beb++,_0x1b1cb0();continue;}if(_0x3977fe!==0x2c)throw Error(_0x4af36a(0x1bf));_0x3957c9(0x9);const _0x33f276=_0xb3a494[_0x4af36a(0x1e9)](_0x495beb),_0xff2b0=_0xb3a494[_0x4af36a(0x1e9)](_0x495beb+0x2),_0x56eb2e=_0xb3a494[_0x4af36a(0x1e9)](_0x495beb+0x4),_0x51a225=_0xb3a494[_0x4af36a(0x1e9)](_0x495beb+0x6),_0x35cd12=_0xb3a494[_0x495beb+0x8];_0x495beb+=0x9,dimensions(_0x56eb2e,_0x51a225);if(_0x33f276+_0x56eb2e>_0x2dd62a||_0xff2b0+_0x51a225>_0x53df12||++_0x5001dd>0x2710||(_0x2d727d+=_0x2dd62a*_0x53df12)>MAX_PIXELS)throw Error(_0x4af36a(0x1f3));const _0x8dd74f=_0x35cd12&0x80?0x1<<(_0x35cd12&0x7)+0x1:_0x4f6a2e;if(!_0x8dd74f)throw Error('GIF\x20image\x20has\x20no\x20palette.');_0x35cd12&0x80&&(_0x3957c9(_0x8dd74f*0x3),_0x495beb+=_0x8dd74f*0x3);_0x3957c9(0x1);const _0x109d02=_0xb3a494[_0x495beb++];if(_0x109d02<0x2||_0x109d02>0x8)throw Error(_0x4af36a(0x1e8));const _0x51f442=_0x1b1cb0(),_0x5e614f=0x1<<_0x109d02,_0xed98e1=_0x5e614f+0x1;let _0x54b556=_0x109d02+0x1,_0x265057=_0xed98e1+0x1,_0x36e0ef=0x0,_0x285ab1=-0x1,_0x8a7d3d=0x0,_0x17524c=![];const _0x19184c=new Uint32Array(0x1000),_0x262ca6=new Uint16Array(0x1000);for(let _0x34cd7f=0x0;_0x34cd7f<_0x5e614f;_0x34cd7f++){_0x19184c[_0x34cd7f]=0x1,_0x262ca6[_0x34cd7f]=_0x34cd7f;}while(_0x36e0ef+_0x54b556<=_0x51f442[_0x4af36a(0x1c6)]*0x8){let _0x3ffe0f=0x0;for(let _0x584a37=0x0;_0x584a37<_0x54b556;_0x584a37++,_0x36e0ef++)_0x3ffe0f|=(_0x51f442[_0x36e0ef>>0x3]>>(_0x36e0ef&0x7)&0x1)<<_0x584a37;if(_0x3ffe0f===_0x5e614f){_0x54b556=_0x109d02+0x1,_0x265057=_0xed98e1+0x1,_0x285ab1=-0x1;continue;}if(_0x3ffe0f===_0xed98e1){_0x17524c=!![];break;}if(_0x3ffe0f>_0x265057||_0x3ffe0f===_0x265057&&_0x285ab1<0x0||_0x285ab1<0x0&&_0x3ffe0f>=_0x5e614f)throw Error(_0x4af36a(0x1df));const _0x537c1f=_0x3ffe0f===_0x265057?_0x19184c[_0x285ab1]+0x1:_0x19184c[_0x3ffe0f],_0x1b2f6c=_0x3ffe0f===_0x265057?_0x262ca6[_0x285ab1]:_0x262ca6[_0x3ffe0f];if(!_0x537c1f||_0x1b2f6c>=_0x8dd74f||(_0x8a7d3d+=_0x537c1f)>_0x56eb2e*_0x51a225)throw Error('Invalid\x20GIF\x20LZW\x20pixel\x20data.');if(_0x285ab1>=0x0&&_0x265057<0x1000){_0x19184c[_0x265057]=_0x19184c[_0x285ab1]+0x1,_0x262ca6[_0x265057]=Math[_0x4af36a(0x1e3)](_0x262ca6[_0x285ab1],_0x1b2f6c),_0x265057++;if(_0x265057===0x1<<_0x54b556&&_0x54b556<0xc)_0x54b556++;}_0x285ab1=_0x3ffe0f;}if(!_0x17524c||_0x8a7d3d!==_0x56eb2e*_0x51a225)throw Error('Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.');}throw Error(_0x4af36a(0x1be));}export function validateImageBytes(_0x1fde8f){const _0x574d6b=a141_0x3e21;if(!_0x1fde8f['length']||_0x1fde8f[_0x574d6b(0x1c6)]>0xa*0x400*0x400)throw Error(_0x574d6b(0x1e0));let _0x2b78aa;try{if(_0x1fde8f[_0x574d6b(0x1c5)](0x0,0x8)[_0x574d6b(0x1e6)](Buffer[_0x574d6b(0x1f0)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x1fde8f[_0x574d6b(0x1c6)]<0x21||_0x1fde8f[_0x574d6b(0x1cb)](_0x574d6b(0x1e4),0xc,0x10)!==_0x574d6b(0x1d4))throw Error(_0x574d6b(0x1ee));dimensions(_0x1fde8f[_0x574d6b(0x1f8)](0x10),_0x1fde8f[_0x574d6b(0x1f8)](0x14));const _0x1d7c5a=_0x1fde8f['readUInt32BE'](0x10),_0x40d4f3=_0x1fde8f['readUInt32BE'](0x14),_0x54e24b=_0x1fde8f[0x18],_0x420c75=_0x1fde8f[0x19],_0x956695=_0x1fde8f[0x1c],_0x4d74bb={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x420c75];if(!_0x4d74bb||![0x1,0x2,0x4,0x8,0x10][_0x574d6b(0x1f4)](_0x54e24b)||_0x956695>0x1)throw Error(_0x574d6b(0x1c7));const _0x51e133=_0x1414dc=>Math[_0x574d6b(0x1c4)](_0x1414dc*_0x4d74bb*_0x54e24b/0x8)+0x1;let _0x58c8c9=_0x51e133(_0x1d7c5a)*_0x40d4f3;if(_0x956695){_0x58c8c9=0x0;for(const [_0x3faff3,_0x3b0ac7,_0x4c16f2,_0x108f3b]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 _0x71b2ab=Math['max'](0x0,Math['ceil']((_0x1d7c5a-_0x3faff3)/_0x4c16f2)),_0x2c4eea=Math[_0x574d6b(0x1e3)](0x0,Math[_0x574d6b(0x1c4)]((_0x40d4f3-_0x3b0ac7)/_0x108f3b));if(_0x71b2ab&&_0x2c4eea)_0x58c8c9+=_0x51e133(_0x71b2ab)*_0x2c4eea;}}let _0x53b71e=0x8,_0x710179=![];const _0x5bdb7e=[];while(_0x53b71e<_0x1fde8f[_0x574d6b(0x1c6)]){if(_0x53b71e+0xc>_0x1fde8f[_0x574d6b(0x1c6)])throw Error(_0x574d6b(0x1f9));const _0x16858a=_0x1fde8f[_0x574d6b(0x1f8)](_0x53b71e),_0x256fa3=_0x1fde8f[_0x574d6b(0x1cb)](_0x574d6b(0x1e4),_0x53b71e+0x4,_0x53b71e+0x8);if(_0x256fa3==='acTL')throw Error(_0x574d6b(0x1ea));if(_0x53b71e+_0x16858a+0xc>_0x1fde8f['length'])throw Error('Truncated\x20PNG\x20data.');if(_0x256fa3===_0x574d6b(0x1db))_0x5bdb7e[_0x574d6b(0x1eb)](_0x1fde8f[_0x574d6b(0x1c5)](_0x53b71e+0x8,_0x53b71e+0x8+_0x16858a));_0x53b71e+=_0x16858a+0xc;if(_0x256fa3==='IEND'){if(_0x16858a||_0x53b71e!==_0x1fde8f[_0x574d6b(0x1c6)])throw Error(_0x574d6b(0x1e7));_0x710179=!![];break;}}if(!_0x710179||!_0x5bdb7e[_0x574d6b(0x1c6)])throw Error('Missing\x20PNG\x20data/end.');if(inflateSync(Buffer[_0x574d6b(0x1f7)](_0x5bdb7e),{'maxOutputLength':_0x58c8c9+0x1})[_0x574d6b(0x1c6)]!==_0x58c8c9)throw Error(_0x574d6b(0x1f6));const {PNG:_0x15517c}=require(_0x574d6b(0x1d5)),_0x5aef6c=_0x15517c['sync'][_0x574d6b(0x1c9)](_0x1fde8f,{'checkCRC':!![]});dimensions(_0x5aef6c['width'],_0x5aef6c[_0x574d6b(0x1d9)]),_0x2b78aa=_0x574d6b(0x1cf);}else{if(_0x1fde8f[0x0]===0xff&&_0x1fde8f[0x1]===0xd8){if(_0x1fde8f['at'](-0x2)!==0xff||_0x1fde8f['at'](-0x1)!==0xd9)throw Error(_0x574d6b(0x1f2));const _0x58d929=require(_0x574d6b(0x1d7)),_0x267f75=_0x58d929[_0x574d6b(0x1d3)](_0x1fde8f,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x267f75['width'],_0x267f75['height']),_0x2b78aa='image/jpeg';}else{if([_0x574d6b(0x1cd),_0x574d6b(0x1dd)][_0x574d6b(0x1f4)](_0x1fde8f[_0x574d6b(0x1cb)]('ascii',0x0,0x6))){if(_0x1fde8f['length']<0xe||_0x1fde8f['at'](-0x1)!==0x3b)throw Error(_0x574d6b(0x1ce));dimensions(_0x1fde8f[_0x574d6b(0x1e9)](0x6),_0x1fde8f[_0x574d6b(0x1e9)](0x8)),validateGif(_0x1fde8f);const {GifReader:_0x37ab1f}=require(_0x574d6b(0x1d2)),_0x6edada=new _0x37ab1f(_0x1fde8f);dimensions(_0x6edada['width'],_0x6edada['height']);const _0x39f898=_0x6edada[_0x574d6b(0x1c0)]();if(!_0x39f898||_0x39f898>0x2710||_0x39f898*_0x6edada[_0x574d6b(0x1ed)]*_0x6edada['height']>MAX_PIXELS)throw Error(_0x574d6b(0x1f3));const _0x8a53fd=new Uint8Array(_0x6edada[_0x574d6b(0x1ed)]*_0x6edada[_0x574d6b(0x1d9)]*0x4);for(let _0x33fea7=0x0;_0x33fea7<_0x39f898;_0x33fea7++){const _0xb1fb06=_0x6edada[_0x574d6b(0x1ef)](_0x33fea7);if(_0xb1fb06['x']+_0xb1fb06[_0x574d6b(0x1ed)]>_0x6edada['width']||_0xb1fb06['y']+_0xb1fb06[_0x574d6b(0x1d9)]>_0x6edada[_0x574d6b(0x1d9)])throw Error(_0x574d6b(0x1fc));_0x6edada[_0x574d6b(0x1d6)](_0x33fea7,_0x8a53fd);}_0x2b78aa=_0x574d6b(0x1de);}else throw Error(_0x574d6b(0x1d8));}}}catch(_0x3b4a86){throw Error(_0x574d6b(0x1f5)+_0x3b4a86[_0x574d6b(0x1cc)]);}return{'contentHash':createHash('sha256')[_0x574d6b(0x1d0)](_0x1fde8f)[_0x574d6b(0x1ca)](_0x574d6b(0x1da)),'type':_0x2b78aa,'size':_0x1fde8f[_0x574d6b(0x1c6)],'bytes':_0x1fde8f};}