@lovrabet/lovrabet-cli 2.3.9 → 2.3.10-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/approval/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.d.ts +2 -3
  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.d.ts +1 -1
  27. package/lib/commands/config/init.js +1 -1
  28. package/lib/commands/config/shared.js +1 -1
  29. package/lib/commands/data/import-excel.js +1 -1
  30. package/lib/commands/data/index.js +1 -1
  31. package/lib/commands/dataset/detail.js +1 -1
  32. package/lib/commands/dataset/index.js +1 -1
  33. package/lib/commands/dataset/list.js +1 -1
  34. package/lib/commands/dataset/sdk-doc.js +1 -1
  35. package/lib/commands/doctor.js +1 -1
  36. package/lib/commands/file/index.js +1 -1
  37. package/lib/commands/init.js +1 -1
  38. package/lib/commands/issue/context.js +1 -1
  39. package/lib/commands/issue/index.js +1 -1
  40. package/lib/commands/issue/report.js +1 -1
  41. package/lib/commands/kb/index.js +1 -1
  42. package/lib/commands/logs/index.js +1 -1
  43. package/lib/commands/notification/config-list.js +1 -1
  44. package/lib/commands/notification/index.js +1 -1
  45. package/lib/commands/notification/shared.js +1 -1
  46. package/lib/commands/ocr/index.js +1 -1
  47. package/lib/commands/permit/dataset-get.js +1 -1
  48. package/lib/commands/permit/dataset-set.js +1 -1
  49. package/lib/commands/permit/index.js +1 -1
  50. package/lib/commands/permit/page-get.js +1 -1
  51. package/lib/commands/permit/page-set.js +1 -1
  52. package/lib/commands/permit/role-menus-set.js +1 -1
  53. package/lib/commands/permit/role-menus.js +1 -1
  54. package/lib/commands/permit/shared.js +1 -1
  55. package/lib/commands/personal-bff/index.js +1 -1
  56. package/lib/commands/registry.js +1 -1
  57. package/lib/commands/role/create.js +1 -1
  58. package/lib/commands/role/delete.js +1 -1
  59. package/lib/commands/role/detail.js +1 -1
  60. package/lib/commands/role/index.js +1 -1
  61. package/lib/commands/role/list.js +1 -1
  62. package/lib/commands/role/shared.js +1 -1
  63. package/lib/commands/role/update.js +1 -1
  64. package/lib/commands/role/user-add.js +1 -1
  65. package/lib/commands/role/user-remove.js +1 -1
  66. package/lib/commands/schedule/index.js +1 -1
  67. package/lib/commands/schema.js +1 -1
  68. package/lib/commands/service/dynamic.js +1 -1
  69. package/lib/commands/service/function-name-adapter.js +1 -1
  70. package/lib/commands/service/index.js +1 -1
  71. package/lib/commands/service/registry.js +1 -1
  72. package/lib/commands/skill/commands/create.js +1 -1
  73. package/lib/commands/skill/commands/diagram.js +1 -1
  74. package/lib/commands/skill/commands/install.js +1 -1
  75. package/lib/commands/skill/commands/list.js +1 -1
  76. package/lib/commands/skill/commands/push.js +1 -1
  77. package/lib/commands/skill/commands/validate.js +1 -1
  78. package/lib/commands/skill/diagram.js +1 -1
  79. package/lib/commands/skill/flags.js +1 -1
  80. package/lib/commands/skill/index.js +1 -1
  81. package/lib/commands/skill/manifest-helpers.js +1 -1
  82. package/lib/commands/skill/push-execute.js +1 -1
  83. package/lib/commands/skill/push-flow-helpers.js +1 -1
  84. package/lib/commands/skill/push-retarget.js +1 -1
  85. package/lib/commands/skill/scopes.js +1 -1
  86. package/lib/commands/skill/summary.js +1 -1
  87. package/lib/commands/skill/templates.js +1 -1
  88. package/lib/commands/skill/validate.js +1 -1
  89. package/lib/commands/sql/detail.js +1 -1
  90. package/lib/commands/sql/exec.js +1 -1
  91. package/lib/commands/sql/index.js +1 -1
  92. package/lib/commands/update.js +1 -1
  93. package/lib/commands/user-account/bind.js +1 -1
  94. package/lib/commands/user-account/index.js +1 -1
  95. package/lib/commands/workspace/index.js +1 -1
  96. package/lib/config/domain-config.d.ts +1 -1
  97. package/lib/config/domain-config.js +1 -1
  98. package/lib/config/schema.d.ts +1 -1
  99. package/lib/config/schema.js +1 -1
  100. package/lib/constant/app.js +1 -1
  101. package/lib/constant/auth-mode.js +1 -1
  102. package/lib/constant/cli.js +1 -1
  103. package/lib/constant/defaults.js +1 -1
  104. package/lib/constant/distribution.js +1 -1
  105. package/lib/constant/domain.d.ts +6 -0
  106. package/lib/constant/domain.js +1 -1
  107. package/lib/constant/env.d.ts +5 -6
  108. package/lib/constant/env.js +1 -1
  109. package/lib/constant/output.js +1 -1
  110. package/lib/constant/product.js +1 -1
  111. package/lib/constant/region.js +1 -1
  112. package/lib/constant/risk.js +1 -1
  113. package/lib/constant/url.js +1 -1
  114. package/lib/context.d.ts +3 -13
  115. package/lib/context.js +1 -1
  116. package/lib/core/api-client.js +1 -1
  117. package/lib/core/db-resolver.js +1 -1
  118. package/lib/core/kb-management-client.js +1 -1
  119. package/lib/core/kb-sdk-errors.js +1 -1
  120. package/lib/core/kb-search-client.js +1 -1
  121. package/lib/core/sdk-client.js +1 -1
  122. package/lib/errors.js +1 -1
  123. package/lib/framework/access-error.js +1 -1
  124. package/lib/framework/build-all-flags.js +1 -1
  125. package/lib/framework/dryrun.js +1 -1
  126. package/lib/framework/flags.js +1 -1
  127. package/lib/framework/help.js +1 -1
  128. package/lib/framework/index.js +1 -1
  129. package/lib/framework/output.js +1 -1
  130. package/lib/framework/preparse.js +1 -1
  131. package/lib/framework/rate-limit.js +1 -1
  132. package/lib/framework/raw-flags.js +1 -1
  133. package/lib/framework/response.js +1 -1
  134. package/lib/framework/runner-confirmation.js +1 -1
  135. package/lib/framework/runner-error.js +1 -1
  136. package/lib/framework/runner.d.ts +2 -1
  137. package/lib/framework/runner.js +1 -1
  138. package/lib/framework/schema-export.js +1 -1
  139. package/lib/framework/service-order.js +1 -1
  140. package/lib/framework/types.d.ts +2 -0
  141. package/lib/framework/types.js +1 -1
  142. package/lib/generated/build-info.d.ts +4 -4
  143. package/lib/generated/build-info.js +1 -1
  144. package/lib/generated/official-routing.d.ts +3 -1
  145. package/lib/generated/official-routing.js +1 -1
  146. package/lib/generated/routing-contract.d.ts +2 -2
  147. package/lib/generated/routing-contract.js +1 -1
  148. package/lib/help.js +1 -1
  149. package/lib/postinstall.js +1 -1
  150. package/lib/runtime/confirmation.js +1 -1
  151. package/lib/runtime/event.js +1 -1
  152. package/lib/runtime/index.js +1 -1
  153. package/lib/runtime/queue.js +1 -1
  154. package/lib/runtime/resolve.js +1 -1
  155. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  156. package/lib/services/dataset-import/excel-reader.js +1 -1
  157. package/lib/services/dataset-import/image-bytes.js +1 -1
  158. package/lib/services/dataset-import/image-ooxml.js +1 -1
  159. package/lib/services/dataset-import/image-runner.js +1 -1
  160. package/lib/services/dataset-import/metadata.js +1 -1
  161. package/lib/services/dataset-import/preview.js +1 -1
  162. package/lib/services/dataset-import/runner.js +1 -1
  163. package/lib/skills/builtin-skill.js +1 -1
  164. package/lib/skills/npx-skills-add.js +1 -1
  165. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  166. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  167. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  168. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  169. package/lib/skills/runtime-skill-sync/links.js +1 -1
  170. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  171. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  172. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  173. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  174. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  175. package/lib/skills/runtime-skill-sync/push.js +1 -1
  176. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  177. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  178. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  179. package/lib/skills/runtime-skill-sync.js +1 -1
  180. package/lib/skills/skill-presence.js +1 -1
  181. package/lib/utils/access-key-redaction.js +1 -1
  182. package/lib/utils/apply-jq-filter.js +1 -1
  183. package/lib/utils/cli-version-check.js +1 -1
  184. package/lib/utils/cli-version-policy.js +1 -1
  185. package/lib/utils/logger.js +1 -1
  186. package/lib/utils/lossless-json.js +1 -1
  187. package/lib/utils/params.js +1 -1
  188. package/lib/utils/positive-safe-integer.js +1 -1
  189. package/lib/utils/redaction.js +1 -1
  190. package/lib/utils/runtime-user-id.js +1 -1
  191. package/lib/utils/update-notice.js +1 -1
  192. package/lib/utils/version.js +1 -1
  193. package/lib/utils/write-cli-side-channel.js +1 -1
  194. package/package.json +1 -1
  195. package/skills/lovrabet/SKILL.md +31 -132
  196. package/skills/lovrabet/guides/app-resolution.md +39 -139
  197. package/skills/lovrabet/guides/dataset-and-data-workflow.md +4 -3
  198. package/skills/lovrabet/guides/sql-and-bff-workflow.md +12 -27
  199. package/skills/lovrabet/guides/troubleshooting.md +11 -31
  200. package/skills/lovrabet/references/dataset-discovery-workflow.md +10 -48
  201. package/skills/lovrabet/references/instant-api-workflow.md +4 -11
  202. package/skills/lovrabet/references/lovrabet-app.md +6 -33
  203. package/skills/lovrabet/references/lovrabet-auth.md +16 -9
  204. package/skills/lovrabet/references/lovrabet-bff-workflow.md +9 -34
  205. package/skills/lovrabet/references/lovrabet-config.md +49 -31
  206. package/skills/lovrabet/references/lovrabet-kb-workflow.md +2 -2
  207. package/skills/lovrabet/references/lovrabet-service-tree.md +11 -9
  208. package/skills/lovrabet/references/lovrabet-sql-workflow.md +9 -34
  209. package/skills/lovrabet/references/lovrabet-workspace.md +12 -11
  210. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x32cccd,_0x40fa37){const _0x206cd4=a139_0x82b5,_0x5b3426=_0x32cccd();while(!![]){try{const _0x1396d8=parseInt(_0x206cd4(0x121))/0x1+parseInt(_0x206cd4(0x126))/0x2+parseInt(_0x206cd4(0x118))/0x3*(parseInt(_0x206cd4(0x111))/0x4)+parseInt(_0x206cd4(0x12e))/0x5*(-parseInt(_0x206cd4(0x11b))/0x6)+-parseInt(_0x206cd4(0x11f))/0x7*(-parseInt(_0x206cd4(0x133))/0x8)+-parseInt(_0x206cd4(0x112))/0x9*(parseInt(_0x206cd4(0x115))/0xa)+parseInt(_0x206cd4(0x127))/0xb;if(_0x1396d8===_0x40fa37)break;else _0x5b3426['push'](_0x5b3426['shift']());}catch(_0x2c8298){_0x5b3426['push'](_0x5b3426['shift']());}}}(a139_0x124c,0x62c1a));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:_0x28322c,command:_0x484ca2,risk:_0x5c7dbe,dryRun:_0x5343a5}){const _0x14646f=a139_0x82b5;return JSON[_0x14646f(0x11e)]({'ok':_0x28322c['ok'],'command':_0x484ca2,'risk':_0x5c7dbe,..._0x5343a5?{'dryRun':!![]}:{},..._0x28322c[_0x14646f(0x12c)]!==undefined?{'data':_0x28322c[_0x14646f(0x12c)]}:{},..._0x28322c[_0x14646f(0x11c)]?{'message':_0x28322c[_0x14646f(0x11c)]}:{}});}};export async function invokeLovrabet(_0x36e688,_0x3d8a5c){const _0x601fc0=a139_0x82b5;throwIfAborted(_0x3d8a5c[_0x601fc0(0x113)]);const _0x1320cf=await resolveLovrabetInvocation(_0x36e688),_0x14ad04=canonicalLovrabetOperation(_0x1320cf[_0x601fc0(0x12b)]);return await confirmWriteBeforeQueue(_0x1320cf[_0x601fc0(0x12b)],_0x1320cf['rawFlags'],_0x14ad04,_0x3d8a5c),runSerialized(async()=>{const _0x59bbb6=_0x601fc0;throwIfAborted(_0x3d8a5c[_0x59bbb6(0x113)]);const _0xc7bbdf={},_0x5197af=buildConfigFromFlags(_0x1320cf[_0x59bbb6(0x117)]);await initGlobalEnvironment(_0x5197af);const _0x36334a=createPipelineEnv(_0x5197af,{..._0x1320cf['rawFlags'],'yes':_0x1320cf[_0x59bbb6(0x12b)][_0x59bbb6(0x119)]===_0x59bbb6(0x11a)?!![]:_0x1320cf['rawFlags'][_0x59bbb6(0x129)],'nonInteractive':!![]});_0x36334a[_0x59bbb6(0x12a)]=_0x1320cf[_0x59bbb6(0x12a)],_0x36334a[_0x59bbb6(0x124)]=!![],_0x36334a[_0x59bbb6(0x12f)]='high-risk-write';const _0x8fa3f2=withAbortSignal(_0x1320cf[_0x59bbb6(0x12b)],_0x3d8a5c[_0x59bbb6(0x113)]),_0x1f7ef0=createLovrabetRunnerAdapter({'formatOutput'(_0x589978,_0x3b3a21){const _0x3781f1=_0x59bbb6;_0xc7bbdf['result']=_0x589978,_0xc7bbdf[_0x3781f1(0x114)]=_0x3b3a21[_0x3781f1(0x114)],_0xc7bbdf[_0x3781f1(0x119)]=_0x3b3a21[_0x3781f1(0x119)],_0xc7bbdf['format']=_0x3b3a21[_0x3781f1(0x128)],_0xc7bbdf['dryRun']=_0x3b3a21[_0x3781f1(0x125)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.');}});try{await runCommand(_0x8fa3f2,_0x36334a,_0x1f7ef0);if(!_0xc7bbdf[_0x59bbb6(0x12d)]||!_0xc7bbdf[_0x59bbb6(0x114)]||!_0xc7bbdf['risk']||!_0xc7bbdf['format'])throw new Error(_0x59bbb6(0x134));const _0x2041e4=_0x3d8a5c[_0x59bbb6(0x120)]??defaultPresentation,_0x1d47e2=_0xc7bbdf['dryRun']===!![],_0x5689e0={'result':_0xc7bbdf[_0x59bbb6(0x12d)],'command':_0xc7bbdf['command'],'operation':_0x14ad04,'risk':_0xc7bbdf[_0x59bbb6(0x119)],'format':_0xc7bbdf[_0x59bbb6(0x128)],'dryRun':_0x1d47e2},_0x10e4e5=createLovrabetWriteMetadata(_0x1320cf[_0x59bbb6(0x12b)],_0x14ad04,_0xc7bbdf['result'],_0x1d47e2);let _0x25f222;try{_0x25f222=await _0x2041e4[_0x59bbb6(0x116)](_0x5689e0);}catch(_0x523db3){if(!_0x10e4e5||_0x2041e4===defaultPresentation)throw _0x523db3;_0x25f222=await defaultPresentation[_0x59bbb6(0x116)](_0x5689e0);}return{'operation':_0x14ad04,'risk':_0xc7bbdf[_0x59bbb6(0x119)],'mode':_0x1d47e2?_0x59bbb6(0x132):_0x59bbb6(0x130),'result':_0xc7bbdf['result'],'output':_0x25f222,..._0x10e4e5?{'metadata':_0x10e4e5}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x4926d5,_0x744fae,_0x5a8c8b,_0x177a60){const _0x415ce7=a139_0x82b5;if(_0x744fae[_0x415ce7(0x125)]===!![]||_0x4926d5[_0x415ce7(0x119)]!==_0x415ce7(0x135)&&_0x4926d5[_0x415ce7(0x119)]!==_0x415ce7(0x11a))return;await _0x177a60[_0x415ce7(0x123)][_0x415ce7(0x11d)](buildLovrabetConfirmationRequest(_0x4926d5,_0x5a8c8b,_0x177a60[_0x415ce7(0x113)]));}function withAbortSignal(_0x58c7e2,_0x26a996){return{..._0x58c7e2,async 'execute'(_0x121150){const _0x3f492b=a139_0x82b5;return throwIfAborted(_0x26a996),_0x58c7e2[_0x3f492b(0x130)]({..._0x121150,'signal':_0x26a996});}};}function a139_0x82b5(_0x46c706,_0x27ac83){_0x46c706=_0x46c706-0x110;const _0x124c6b=a139_0x124c();let _0x82b503=_0x124c6b[_0x46c706];return _0x82b503;}function throwIfAborted(_0x4b624d){const _0x24f03e=a139_0x82b5;if(_0x4b624d?.[_0x24f03e(0x110)])throw _0x4b624d[_0x24f03e(0x122)]instanceof Error?_0x4b624d['reason']:new DOMException('Lovrabet\x20invocation\x20aborted.',_0x24f03e(0x131));}function a139_0x124c(){const _0x18e052=['rawFlags','50178ZaTPiQ','risk','high-risk-write','6tnjxrF','message','confirm','stringify','70LQZekR','presentation','440276kIxzdu','reason','confirmation','isNonInteractive','dryRun','970314dDBDjw','442739eJmdnR','format','yes','args','definition','data','result','4038845oSgjlK','riskLevel','execute','AbortError','dry-run','393784UggXKv','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','write','aborted','28owUftZ','63jGRRvD','signal','command','518170GjydNW','present'];a139_0x124c=function(){return _0x18e052;};return a139_0x124c();}
1
+ (function(_0x30039a,_0x549ee7){const _0x20e318=a139_0x326e,_0x1dc5b5=_0x30039a();while(!![]){try{const _0x510180=-parseInt(_0x20e318(0x112))/0x1*(-parseInt(_0x20e318(0x126))/0x2)+parseInt(_0x20e318(0x128))/0x3*(parseInt(_0x20e318(0x124))/0x4)+parseInt(_0x20e318(0x11e))/0x5*(parseInt(_0x20e318(0x11d))/0x6)+parseInt(_0x20e318(0x111))/0x7*(parseInt(_0x20e318(0x129))/0x8)+-parseInt(_0x20e318(0x132))/0x9+parseInt(_0x20e318(0x116))/0xa+-parseInt(_0x20e318(0x110))/0xb;if(_0x510180===_0x549ee7)break;else _0x1dc5b5['push'](_0x1dc5b5['shift']());}catch(_0x1f80bd){_0x1dc5b5['push'](_0x1dc5b5['shift']());}}}(a139_0x3858,0xcd0b9));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';function a139_0x326e(_0xf29049,_0x2e26e2){_0xf29049=_0xf29049-0x10e;const _0x38580b=a139_0x3858();let _0x326e56=_0x38580b[_0xf29049];return _0x326e56;}function a139_0x3858(){const _0x5f51a0=['88KAjdgG','high-risk-write','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','dry-run','definition','format','risk','Lovrabet\x20invocation\x20aborted.','presentation','4943232OaQnCO','reason','result','10289279JnvuGn','129423RexSzp','100953KGTEbU','rawFlags','data','present','2914220RqXWUB','signal','yes','AbortError','args','confirmation','isNonInteractive','1077198DUkAHh','15vXZFvZ','command','confirm','execute','aborted','write','3145348cByItc','dryRun','10ieddUw','message','3ZfAIKi'];a139_0x3858=function(){return _0x5f51a0;};return a139_0x3858();}const defaultPresentation={'present'({result:_0x400cd0,command:_0x561cd9,risk:_0x37f5a2,dryRun:_0x2de3ab}){const _0x35c68d=a139_0x326e;return JSON['stringify']({'ok':_0x400cd0['ok'],'command':_0x561cd9,'risk':_0x37f5a2,..._0x2de3ab?{'dryRun':!![]}:{},..._0x400cd0[_0x35c68d(0x114)]!==undefined?{'data':_0x400cd0[_0x35c68d(0x114)]}:{},..._0x400cd0[_0x35c68d(0x127)]?{'message':_0x400cd0[_0x35c68d(0x127)]}:{}});}};export async function invokeLovrabet(_0xf88f9b,_0x1fb24c){const _0x19e826=a139_0x326e;throwIfAborted(_0x1fb24c['signal']);const _0x5b3659=await resolveLovrabetInvocation(_0xf88f9b),_0x40dabf=canonicalLovrabetOperation(_0x5b3659[_0x19e826(0x12d)]);return await confirmWriteBeforeQueue(_0x5b3659['definition'],_0x5b3659[_0x19e826(0x113)],_0x40dabf,_0x1fb24c),runSerialized(async()=>{const _0x4312ef=_0x19e826;throwIfAborted(_0x1fb24c['signal']);const _0x331ef5={},_0x3ce157=buildConfigFromFlags(_0x5b3659[_0x4312ef(0x113)]);await initGlobalEnvironment(_0x3ce157);const _0x2036b4=createPipelineEnv(_0x3ce157,{..._0x5b3659[_0x4312ef(0x113)],'yes':_0x5b3659[_0x4312ef(0x12d)][_0x4312ef(0x12f)]===_0x4312ef(0x12a)?!![]:_0x5b3659[_0x4312ef(0x113)][_0x4312ef(0x118)],'nonInteractive':!![]});_0x2036b4[_0x4312ef(0x11a)]=_0x5b3659[_0x4312ef(0x11a)],_0x2036b4[_0x4312ef(0x11c)]=!![],_0x2036b4['riskLevel']=_0x4312ef(0x12a);const _0x2a3460=withAbortSignal(_0x5b3659[_0x4312ef(0x12d)],_0x1fb24c[_0x4312ef(0x117)]),_0x1ba61f=createLovrabetRunnerAdapter({'formatOutput'(_0x1e1359,_0x3ce500){const _0x26bb4c=_0x4312ef;_0x331ef5[_0x26bb4c(0x10f)]=_0x1e1359,_0x331ef5[_0x26bb4c(0x11f)]=_0x3ce500[_0x26bb4c(0x11f)],_0x331ef5[_0x26bb4c(0x12f)]=_0x3ce500[_0x26bb4c(0x12f)],_0x331ef5[_0x26bb4c(0x12e)]=_0x3ce500[_0x26bb4c(0x12e)],_0x331ef5[_0x26bb4c(0x125)]=_0x3ce500['dryRun']===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.');}});try{await runCommand(_0x2a3460,_0x2036b4,_0x1ba61f);if(!_0x331ef5[_0x4312ef(0x10f)]||!_0x331ef5['command']||!_0x331ef5['risk']||!_0x331ef5[_0x4312ef(0x12e)])throw new Error(_0x4312ef(0x12b));const _0x4ff324=_0x1fb24c[_0x4312ef(0x131)]??defaultPresentation,_0x361ceb=_0x331ef5[_0x4312ef(0x125)]===!![],_0x6ef9c3={'result':_0x331ef5[_0x4312ef(0x10f)],'command':_0x331ef5[_0x4312ef(0x11f)],'operation':_0x40dabf,'risk':_0x331ef5[_0x4312ef(0x12f)],'format':_0x331ef5[_0x4312ef(0x12e)],'dryRun':_0x361ceb},_0x5ee097=createLovrabetWriteMetadata(_0x5b3659[_0x4312ef(0x12d)],_0x40dabf,_0x331ef5[_0x4312ef(0x10f)],_0x361ceb);let _0x28baf8;try{_0x28baf8=await _0x4ff324[_0x4312ef(0x115)](_0x6ef9c3);}catch(_0x1f16fa){if(!_0x5ee097||_0x4ff324===defaultPresentation)throw _0x1f16fa;_0x28baf8=await defaultPresentation[_0x4312ef(0x115)](_0x6ef9c3);}return{'operation':_0x40dabf,'risk':_0x331ef5[_0x4312ef(0x12f)],'mode':_0x361ceb?_0x4312ef(0x12c):_0x4312ef(0x121),'result':_0x331ef5[_0x4312ef(0x10f)],'output':_0x28baf8,..._0x5ee097?{'metadata':_0x5ee097}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x1fd055,_0x4da26c,_0x475845,_0x5d4f33){const _0xebb883=a139_0x326e;if(_0x4da26c[_0xebb883(0x125)]===!![]||_0x1fd055[_0xebb883(0x12f)]!==_0xebb883(0x123)&&_0x1fd055[_0xebb883(0x12f)]!==_0xebb883(0x12a))return;await _0x5d4f33[_0xebb883(0x11b)][_0xebb883(0x120)](buildLovrabetConfirmationRequest(_0x1fd055,_0x475845,_0x5d4f33[_0xebb883(0x117)]));}function withAbortSignal(_0x17e751,_0x2dbe8b){return{..._0x17e751,async 'execute'(_0x4182ea){return throwIfAborted(_0x2dbe8b),_0x17e751['execute']({..._0x4182ea,'signal':_0x2dbe8b});}};}function throwIfAborted(_0x370ef0){const _0x1ad411=a139_0x326e;if(_0x370ef0?.[_0x1ad411(0x122)])throw _0x370ef0['reason']instanceof Error?_0x370ef0[_0x1ad411(0x10e)]:new DOMException(_0x1ad411(0x130),_0x1ad411(0x119));}
@@ -1 +1 @@
1
- const a140_0x1a5d09=a140_0x17c5;(function(_0x14c181,_0x58ed5f){const _0x4f9539=a140_0x17c5,_0x1d41ca=_0x14c181();while(!![]){try{const _0x3653ae=parseInt(_0x4f9539(0x9d))/0x1+parseInt(_0x4f9539(0x9f))/0x2+parseInt(_0x4f9539(0x96))/0x3*(parseInt(_0x4f9539(0x9c))/0x4)+-parseInt(_0x4f9539(0x99))/0x5*(parseInt(_0x4f9539(0x9b))/0x6)+-parseInt(_0x4f9539(0xa3))/0x7*(-parseInt(_0x4f9539(0xa1))/0x8)+parseInt(_0x4f9539(0x97))/0x9*(-parseInt(_0x4f9539(0xa2))/0xa)+parseInt(_0x4f9539(0xa0))/0xb*(parseInt(_0x4f9539(0x98))/0xc);if(_0x3653ae===_0x58ed5f)break;else _0x1d41ca['push'](_0x1d41ca['shift']());}catch(_0x3390b9){_0x1d41ca['push'](_0x1d41ca['shift']());}}}(a140_0x2631,0xe0e7d));function a140_0x17c5(_0x510fc1,_0x2db7fe){_0x510fc1=_0x510fc1-0x96;const _0x2631c2=a140_0x2631();let _0x17c57d=_0x2631c2[_0x510fc1];return _0x17c57d;}function a140_0x2631(){const _0xe0fa61=['3033tAPTiU','636zgpuPl','8860820huPltK','catch','6KUAhou','4DseZPg','933986ojHDfc','resolve','160116zsAZWd','262053xEBMlo','832gtQJce','38330XWXmZO','108157HfhEuD','304593bmNLQG'];a140_0x2631=function(){return _0xe0fa61;};return a140_0x2631();}let tail=Promise[a140_0x1a5d09(0x9e)]();export async function runSerialized(_0x2215e6){const _0x41d83f=a140_0x1a5d09,_0x20f264=tail;let _0x5dc875;tail=new Promise(_0x313212=>{_0x5dc875=_0x313212;}),await _0x20f264[_0x41d83f(0x9a)](()=>undefined);try{return await _0x2215e6();}finally{_0x5dc875();}}
1
+ const a140_0x31bb40=a140_0x253a;function a140_0x253a(_0x10c4da,_0x28110c){_0x10c4da=_0x10c4da-0x177;const _0x280edc=a140_0x280e();let _0x253a2e=_0x280edc[_0x10c4da];return _0x253a2e;}(function(_0x32f9af,_0x190234){const _0x2ba03f=a140_0x253a,_0x1f76d5=_0x32f9af();while(!![]){try{const _0x34705e=parseInt(_0x2ba03f(0x177))/0x1*(parseInt(_0x2ba03f(0x17c))/0x2)+-parseInt(_0x2ba03f(0x17e))/0x3+parseInt(_0x2ba03f(0x179))/0x4+parseInt(_0x2ba03f(0x178))/0x5+-parseInt(_0x2ba03f(0x17a))/0x6+parseInt(_0x2ba03f(0x180))/0x7+parseInt(_0x2ba03f(0x17f))/0x8;if(_0x34705e===_0x190234)break;else _0x1f76d5['push'](_0x1f76d5['shift']());}catch(_0x4a0a55){_0x1f76d5['push'](_0x1f76d5['shift']());}}}(a140_0x280e,0xa99cf));let tail=Promise[a140_0x31bb40(0x17d)]();function a140_0x280e(){const _0x581afd=['511ZyDjMI','2818230rkGzpj','1601544VWUihc','6638484QUhldH','catch','2100LhCzHx','resolve','1152879wxJXZm','1136952fqsZjj','3799187KFRcyA'];a140_0x280e=function(){return _0x581afd;};return a140_0x280e();}export async function runSerialized(_0x2eaed){const _0x2bfffe=a140_0x31bb40,_0x4350f2=tail;let _0xe27a2;tail=new Promise(_0x25865b=>{_0xe27a2=_0x25865b;}),await _0x4350f2[_0x2bfffe(0x17b)](()=>undefined);try{return await _0x2eaed();}finally{_0xe27a2();}}
@@ -1 +1 @@
1
- (function(_0x4df386,_0x294848){const _0x2685f8=a141_0x5c0d,_0x4e4558=_0x4df386();while(!![]){try{const _0x2cb89c=parseInt(_0x2685f8(0x1fe))/0x1*(-parseInt(_0x2685f8(0x1fc))/0x2)+parseInt(_0x2685f8(0x1f4))/0x3*(parseInt(_0x2685f8(0x1f8))/0x4)+-parseInt(_0x2685f8(0x1f1))/0x5+parseInt(_0x2685f8(0x1ed))/0x6+-parseInt(_0x2685f8(0x1fb))/0x7*(parseInt(_0x2685f8(0x1f5))/0x8)+parseInt(_0x2685f8(0x1fa))/0x9*(parseInt(_0x2685f8(0x1ff))/0xa)+parseInt(_0x2685f8(0x1f7))/0xb;if(_0x2cb89c===_0x294848)break;else _0x4e4558['push'](_0x4e4558['shift']());}catch(_0x21f47f){_0x4e4558['push'](_0x4e4558['shift']());}}}(a141_0x5165,0x58603));import a141_0x19cd94 from'meow';function a141_0x5c0d(_0x4bb212,_0xd7a22e){_0x4bb212=_0x4bb212-0x1ed;const _0x516586=a141_0x5165();let _0x5c0da5=_0x516586[_0x4bb212];return _0x5c0da5;}import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a141_0x5165(){const _0x21afc1=['definition','../commands/registry.js','validation','584946lqFZoX','message','flags','unknownCommand','1246825SsnNEL','assign','defaultCommand','9nXopSV','143320krMHsm','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','6382156Dvexgw','750852ZpBzay','join','137871edYIer','133zUbMss','4982iPPJWp','hint','196ytIHWL','130Txaaqv','input'];a141_0x5165=function(){return _0x21afc1;};return a141_0x5165();}import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x5ddcd8){const _0x2d2920=a141_0x5c0d,_0x534b62=a141_0x19cd94('',{'importMeta':import.meta,'argv':_0x5ddcd8,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x335d3e=[..._0x534b62[_0x2d2920(0x200)]],_0x586d6b=_0x534b62[_0x2d2920(0x1ef)];await correctFlags(_0x586d6b);const _0xbcdd14=_0x335d3e[0x0];if(!_0xbcdd14)throw CliErrors['validation']('Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0x4c8416=resolveRemovedCommand(_0xbcdd14,_0x335d3e[0x1]);if(_0x4c8416)throw CliErrors[_0x2d2920(0x203)](_0x4c8416[_0x2d2920(0x1ee)],_0x4c8416[_0x2d2920(0x1fd)]);if(!isKnownService(_0xbcdd14)){const _0x2327d2=resolveDynamicServiceCommand(_0x335d3e,_0x586d6b);if(!_0x2327d2)throw CliErrors[_0x2d2920(0x1f0)](_0x335d3e[_0x2d2920(0x1f9)]('\x20'));return Object[_0x2d2920(0x1f2)](_0x586d6b,_0x2327d2[_0x2d2920(0x1ef)]),{'definition':_0x2327d2[_0x2d2920(0x201)],'rawFlags':_0x586d6b,'args':_0x2327d2['args']};}const _0x421bc3=getServiceEntry(_0xbcdd14),_0x1a720c=_0x335d3e[0x1]||_0x421bc3[_0x2d2920(0x1f3)];if(!_0x1a720c)throw CliErrors['validation'](_0x2d2920(0x1f6)+_0xbcdd14+'\x22.');const _0x30ca14=findDefinition(_0xbcdd14,_0x1a720c);if(!_0x30ca14)throw CliErrors['unknownCommand'](_0xbcdd14+'\x20'+_0x1a720c);return{'definition':_0x30ca14,'rawFlags':_0x586d6b,'args':_0x335d3e['slice'](0x2)};}async function correctFlags(_0x474620){const _0x31fee3=a141_0x5c0d;try{const {correctFlags:_0x5747a3}=await import('../framework/preparse.js'),{getAllDefinitions:_0x8a0e11}=await import(_0x31fee3(0x202)),_0x82b3b8=_0x8a0e11()['flatMap'](_0x3e4c78=>_0x3e4c78['flags']??[]),_0x60df83=_0x5747a3(_0x474620,_0x82b3b8);Object[_0x31fee3(0x1f2)](_0x474620,_0x60df83[_0x31fee3(0x1ef)]);}catch{}}
1
+ (function(_0x4e8c4b,_0xce4cb0){const _0x17308b=a141_0x18af,_0x52824c=_0x4e8c4b();while(!![]){try{const _0x57c1e5=-parseInt(_0x17308b(0x173))/0x1*(parseInt(_0x17308b(0x16c))/0x2)+parseInt(_0x17308b(0x177))/0x3+-parseInt(_0x17308b(0x16e))/0x4*(parseInt(_0x17308b(0x179))/0x5)+parseInt(_0x17308b(0x16b))/0x6*(-parseInt(_0x17308b(0x170))/0x7)+parseInt(_0x17308b(0x172))/0x8*(parseInt(_0x17308b(0x16f))/0x9)+parseInt(_0x17308b(0x174))/0xa*(parseInt(_0x17308b(0x175))/0xb)+-parseInt(_0x17308b(0x17d))/0xc*(-parseInt(_0x17308b(0x178))/0xd);if(_0x57c1e5===_0xce4cb0)break;else _0x52824c['push'](_0x52824c['shift']());}catch(_0x4c3f91){_0x52824c['push'](_0x52824c['shift']());}}}(a141_0x1780,0x3ff55));import a141_0x4b9f80 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a141_0x1780(){const _0x54df95=['input','join','validation','message','unknownCommand','assign','../commands/registry.js','../framework/preparse.js','6VeTOpb','11078TkjocG','flags','4gCPVKr','3536937WooHIV','1203139iWvfUK','definition','8uAwlQC','23RPMRKO','620EYGyOb','13673VcFlNo','hint','573039miEFfB','3094FyjIPu','1126255ROYrFE','args','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','flatMap','6324eVShhA'];a141_0x1780=function(){return _0x54df95;};return a141_0x1780();}function a141_0x18af(_0x72a5de,_0x40dff2){_0x72a5de=_0x72a5de-0x163;const _0x178082=a141_0x1780();let _0x18af41=_0x178082[_0x72a5de];return _0x18af41;}import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0xd9f676){const _0x254f13=a141_0x18af,_0x586420=a141_0x4b9f80('',{'importMeta':import.meta,'argv':_0xd9f676,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x33f731=[..._0x586420[_0x254f13(0x163)]],_0x1afda7=_0x586420[_0x254f13(0x16d)];await correctFlags(_0x1afda7);const _0x1747e6=_0x33f731[0x0];if(!_0x1747e6)throw CliErrors[_0x254f13(0x165)](_0x254f13(0x17b));const _0x4bf4ce=resolveRemovedCommand(_0x1747e6,_0x33f731[0x1]);if(_0x4bf4ce)throw CliErrors['validation'](_0x4bf4ce[_0x254f13(0x166)],_0x4bf4ce[_0x254f13(0x176)]);if(!isKnownService(_0x1747e6)){const _0x2ba23a=resolveDynamicServiceCommand(_0x33f731,_0x1afda7);if(!_0x2ba23a)throw CliErrors['unknownCommand'](_0x33f731[_0x254f13(0x164)]('\x20'));return Object[_0x254f13(0x168)](_0x1afda7,_0x2ba23a['flags']),{'definition':_0x2ba23a[_0x254f13(0x171)],'rawFlags':_0x1afda7,'args':_0x2ba23a[_0x254f13(0x17a)]};}const _0x1e4f75=getServiceEntry(_0x1747e6),_0x230e6d=_0x33f731[0x1]||_0x1e4f75['defaultCommand'];if(!_0x230e6d)throw CliErrors[_0x254f13(0x165)]('Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x1747e6+'\x22.');const _0x5ec4ef=findDefinition(_0x1747e6,_0x230e6d);if(!_0x5ec4ef)throw CliErrors[_0x254f13(0x167)](_0x1747e6+'\x20'+_0x230e6d);return{'definition':_0x5ec4ef,'rawFlags':_0x1afda7,'args':_0x33f731['slice'](0x2)};}async function correctFlags(_0x13e09f){const _0x4769fb=a141_0x18af;try{const {correctFlags:_0x280b26}=await import(_0x4769fb(0x16a)),{getAllDefinitions:_0x119bd4}=await import(_0x4769fb(0x169)),_0x46002a=_0x119bd4()[_0x4769fb(0x17c)](_0x13bbb7=>_0x13bbb7[_0x4769fb(0x16d)]??[]),_0x5c3c71=_0x280b26(_0x13e09f,_0x46002a);Object['assign'](_0x13e09f,_0x5c3c71[_0x4769fb(0x16d)]);}catch{}}
@@ -1 +1 @@
1
- function a143_0x5454(_0x1bc4ac,_0x4503c1){_0x1bc4ac=_0x1bc4ac-0x11e;const _0x1fd659=a143_0x1fd6();let _0x545437=_0x1fd659[_0x1bc4ac];return _0x545437;}const a143_0x3ca715=a143_0x5454;(function(_0x23fd05,_0x4d0c7f){const _0x2f2243=a143_0x5454,_0x4490e7=_0x23fd05();while(!![]){try{const _0x347257=parseInt(_0x2f2243(0x150))/0x1*(-parseInt(_0x2f2243(0x134))/0x2)+parseInt(_0x2f2243(0x140))/0x3+-parseInt(_0x2f2243(0x144))/0x4*(parseInt(_0x2f2243(0x16f))/0x5)+parseInt(_0x2f2243(0x12f))/0x6+-parseInt(_0x2f2243(0x132))/0x7*(parseInt(_0x2f2243(0x14d))/0x8)+-parseInt(_0x2f2243(0x170))/0x9*(parseInt(_0x2f2243(0x15e))/0xa)+-parseInt(_0x2f2243(0x173))/0xb*(-parseInt(_0x2f2243(0x146))/0xc);if(_0x347257===_0x4d0c7f)break;else _0x4490e7['push'](_0x4490e7['shift']());}catch(_0x16d0d5){_0x4490e7['push'](_0x4490e7['shift']());}}}(a143_0x1fd6,0x18f02));import{randomBytes,randomUUID}from'node:crypto';import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x5d613b=>typeof _0x5d613b===a143_0x3ca715(0x139)&&Number[a143_0x3ca715(0x158)](_0x5d613b)&&_0x5d613b>0x0;export async function runAutoIdExcelImport(_0x2bb267){const _0x2155a=a143_0x3ca715,_0x503aa9={..._0x2bb267,'checkpoint':await resolveImportOutputPath(_0x2bb267[_0x2155a(0x154)]),'report':await resolveImportOutputPath(_0x2bb267[_0x2155a(0x13f)])},{manifest:_0x451d06,contract:_0x2b7319,api:_0x1e787d}=_0x503aa9;assertImportContract(_0x2b7319,_0x503aa9[_0x2155a(0x16e)],_0x503aa9[_0x2155a(0x127)]);if(_0x2b7319['schemaVersion']!==0x2||!_0x1e787d[_0x2155a(0x11e)])throw Error(_0x2155a(0x156));if(_0x451d06[_0x2155a(0x130)][_0x2155a(0x13d)])throw Error(_0x2155a(0x166));if(!_0x451d06[_0x2155a(0x131)]['length'])throw Error(_0x2155a(0x15f));if(!Number[_0x2155a(0x178)](_0x503aa9[_0x2155a(0x11f)])||_0x503aa9[_0x2155a(0x11f)]<0x1||_0x503aa9[_0x2155a(0x11f)]>_0x2b7319[_0x2155a(0x14a)])throw Error(_0x2155a(0x12a));assertImportPaths(_0x503aa9[_0x2155a(0x154)],_0x503aa9[_0x2155a(0x13f)]);if(_0x451d06['rows']['some'](_0x336c23=>Object[_0x2155a(0x123)](_0x336c23[_0x2155a(0x160)],'id')))throw Error(_0x2155a(0x142));const _0x521211=(_0x5cebe3,_0x56162c)=>Buffer[_0x2155a(0x14e)](JSON[_0x2155a(0x14b)]({'schemaFingerprint':_0x2b7319[_0x2155a(0x124)],'taskId':_0x56162c,'items':_0x5cebe3['map'](_0x13009c=>_0x451d06['rows'][_0x13009c][_0x2155a(0x160)])}),'utf8'),_0x2eb7ac=[];let _0x3e3cb6=[];for(let _0x28415e=0x0;_0x28415e<_0x451d06[_0x2155a(0x131)][_0x2155a(0x13d)];_0x28415e++){if(_0x521211([_0x28415e],0x2**0x34)>_0x2b7319[_0x2155a(0x171)])throw Error(_0x2155a(0x126)+_0x451d06[_0x2155a(0x131)][_0x28415e][_0x2155a(0x168)]+'\x20exceeds\x20the\x20import\x20request\x20size\x20limit.');_0x3e3cb6[_0x2155a(0x13d)]&&(_0x3e3cb6[_0x2155a(0x13d)]===_0x503aa9['batchSize']||_0x521211([..._0x3e3cb6,_0x28415e],0x2**0x34)>_0x2b7319['maxBatchBytes'])&&(_0x2eb7ac[_0x2155a(0x163)](_0x3e3cb6),_0x3e3cb6=[]),_0x3e3cb6[_0x2155a(0x163)](_0x28415e);}if(_0x3e3cb6['length'])_0x2eb7ac[_0x2155a(0x163)](_0x3e3cb6);const _0x100bbc={'appCode':_0x503aa9[_0x2155a(0x16e)],'datasetCode':_0x503aa9[_0x2155a(0x127)],'runtimeDomain':_0x503aa9[_0x2155a(0x129)],'actorId':_0x2b7319[_0x2155a(0x176)],'fileHash':_0x451d06['fileHash'],'mappingHash':_0x451d06[_0x2155a(0x147)],'schemaHash':_0x451d06[_0x2155a(0x136)],'remoteSchemaHash':_0x2b7319[_0x2155a(0x124)],'batchSize':_0x503aa9[_0x2155a(0x11f)],'maxBatchBytes':_0x2b7319[_0x2155a(0x171)],'sheet':_0x451d06['sheet'],'strategy':_0x2b7319[_0x2155a(0x14c)]},_0x3b1809=await acquireLock(_0x503aa9['checkpoint']);let _0x3c3111;const _0x5ad152=Date[_0x2155a(0x122)]();let _0x143044=0x0;const _0x2e1415=[],_0xc6c9b6=_0x155ce7=>_0x3c3111?.[_0x2155a(0x12b)]['filter'](_0x2ea8c5=>_0x2ea8c5[_0x2155a(0x159)]===_0x155ce7)[_0x2155a(0x17c)]((_0x5d187a,_0x3c2ea8)=>_0x5d187a+_0x3c2ea8[_0x2155a(0x153)][_0x2155a(0x13d)],0x0)??0x0,_0x10bec6=()=>({'importId':_0x3c3111?.[_0x2155a(0x169)],'sourceRows':_0x451d06['rows'][_0x2155a(0x13d)],'emptyRows':_0x451d06[_0x2155a(0x155)][_0x2155a(0x13d)],'succeeded':_0xc6c9b6(_0x2155a(0x120)),'unknown':_0xc6c9b6(_0x2155a(0x148)),'conflicts':_0xc6c9b6(_0x2155a(0x125)),'notAttempted':_0xc6c9b6(_0x2155a(0x15c)),'batches':_0x143044,'batchResults':_0x2e1415,'elapsedMs':Date[_0x2155a(0x122)]()-_0x5ad152,'checkpoint':_0x503aa9[_0x2155a(0x154)],'report':_0x503aa9['report'],'warnings':_0x451d06[_0x2155a(0x13b)]});try{if(_0x503aa9['resume']){try{_0x3c3111=JSON[_0x2155a(0x161)](await readFile(_0x503aa9['checkpoint'],_0x2155a(0x179)));}catch{throw Error(_0x2155a(0x12d));}if(!_0x3c3111||_0x3c3111[_0x2155a(0x164)]!==0x2||typeof _0x3c3111[_0x2155a(0x169)]!==_0x2155a(0x14f)||!_0x3c3111[_0x2155a(0x169)]||canonical(_0x3c3111[_0x2155a(0x137)])!==canonical(_0x100bbc)||!Array['isArray'](_0x3c3111[_0x2155a(0x12b)])||_0x3c3111[_0x2155a(0x12b)][_0x2155a(0x13d)]!==_0x2eb7ac['length']||new Set(_0x3c3111[_0x2155a(0x12b)][_0x2155a(0x172)](_0x1d0d65=>_0x1d0d65[_0x2155a(0x13c)]))[_0x2155a(0x177)]!==_0x2eb7ac['length']||_0x3c3111[_0x2155a(0x12b)][_0x2155a(0x143)]((_0xd300f4,_0x911887)=>!validId(_0xd300f4['taskId'])||_0xd300f4[_0x2155a(0x13c)]>0x2**0x34||canonical(_0xd300f4['rowIndexes'])!==canonical(_0x2eb7ac[_0x911887])||![_0x2155a(0x15c),_0x2155a(0x148),_0x2155a(0x120),_0x2155a(0x125)][_0x2155a(0x138)](_0xd300f4[_0x2155a(0x159)])||!Array['isArray'](_0xd300f4['ids'])||_0xd300f4[_0x2155a(0x16a)][_0x2155a(0x143)](_0x7a1524=>!validId(_0x7a1524))||new Set(_0xd300f4[_0x2155a(0x16a)])['size']!==_0xd300f4[_0x2155a(0x16a)][_0x2155a(0x13d)]||_0xd300f4[_0x2155a(0x16a)][_0x2155a(0x13d)]!==0x0&&_0xd300f4[_0x2155a(0x16a)]['length']!==_0xd300f4[_0x2155a(0x153)][_0x2155a(0x13d)]||_0xd300f4['status']==='succeeded'&&_0xd300f4['ids']['length']!==_0xd300f4['rowIndexes']['length']||_0xd300f4[_0x2155a(0x159)]===_0x2155a(0x15c)&&_0xd300f4[_0x2155a(0x16a)][_0x2155a(0x13d)]!==0x0))throw Error('Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.');const _0x4d29af=_0x3c3111[_0x2155a(0x12b)][_0x2155a(0x17a)](_0x19bbf1=>_0x19bbf1['ids']);if(new Set(_0x4d29af)[_0x2155a(0x177)]!==_0x4d29af[_0x2155a(0x13d)])throw Error(_0x2155a(0x15d));}else{try{await lstat(_0x503aa9['checkpoint']);throw Error(_0x2155a(0x17d));}catch(_0x424ba5){if(_0x424ba5['code']!==_0x2155a(0x149))throw _0x424ba5;}const _0x53d6f9=new Set();_0x3c3111={'version':0x2,'importId':randomUUID(),'binding':_0x100bbc,'batches':_0x2eb7ac[_0x2155a(0x172)](_0x493d09=>{const _0x465af1=_0x2155a;let _0x22970f;do{_0x22970f=Number(BigInt('0x'+randomBytes(0x7)[_0x465af1(0x15a)](_0x465af1(0x16c)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x53d6f9['has'](_0x22970f));return _0x53d6f9['add'](_0x22970f),{'taskId':_0x22970f,'rowIndexes':_0x493d09,'ids':[],'status':_0x465af1(0x15c)};})},await saveImportJson(_0x503aa9[_0x2155a(0x154)],_0x3c3111);}await _0x503aa9[_0x2155a(0x121)]?.();const _0x24f115=_0x3c3111,_0x284ceb=async(_0x5cd145,_0x499fb9)=>{const _0x933ef9=_0x2155a;_0x5cd145[_0x933ef9(0x159)]='conflict',await saveImportJson(_0x503aa9[_0x933ef9(0x154)],_0x24f115);throw Error(_0x499fb9);},_0x58ca7a=async _0x3c1319=>{const _0x320260=_0x2155a;let _0x326c74=await _0x1e787d[_0x320260(0x11e)](_0x3c1319[_0x320260(0x13c)]);if(!Array[_0x320260(0x141)](_0x326c74))throw Error('Invalid\x20import\x20task\x20readback\x20response.');if(_0x3c1319[_0x320260(0x159)]===_0x320260(0x15c)&&_0x326c74[_0x320260(0x13d)])return _0x284ceb(_0x3c1319,_0x320260(0x135));if(!_0x326c74[_0x320260(0x13d)]){if(_0x3c1319[_0x320260(0x159)]===_0x320260(0x120)||_0x3c1319[_0x320260(0x16a)]['length'])return _0x284ceb(_0x3c1319,_0x320260(0x174));return![];}if(_0x326c74['length']!==_0x3c1319[_0x320260(0x153)]['length'])return _0x284ceb(_0x3c1319,'Partial\x20import\x20task\x20readback\x20conflict.');const _0x25b665=_0x326c74[_0x320260(0x172)](_0x3a97ea=>_0x3a97ea?.['id']);if(_0x25b665[_0x320260(0x143)](_0x410d4f=>!validId(_0x410d4f)))return _0x284ceb(_0x3c1319,_0x320260(0x175));if(new Set(_0x25b665)['size']!==_0x25b665['length'])return _0x284ceb(_0x3c1319,'Import\x20generated\x20ID\x20conflict.');const _0x4df952=new Map(_0x326c74[_0x320260(0x172)](_0x2cfb2f=>[_0x2cfb2f['id'],_0x2cfb2f])),_0x22de0b=_0x3c1319['ids'][_0x320260(0x13d)]?[..._0x3c1319['ids']]:[..._0x25b665][_0x320260(0x13a)]((_0x5e928c,_0x36e4fa)=>_0x5e928c-_0x36e4fa);if(_0x22de0b[_0x320260(0x143)](_0x2910da=>!validId(_0x2910da))||_0x22de0b['some']((_0x2d0a11,_0x7ae02e)=>_0x7ae02e>0x0&&_0x2d0a11<=_0x22de0b[_0x7ae02e-0x1])||_0x22de0b[_0x320260(0x143)](_0x4fa990=>!_0x4df952['has'](_0x4fa990)))return _0x284ceb(_0x3c1319,'Import\x20generated\x20ID\x20conflict.');_0x326c74=_0x22de0b[_0x320260(0x172)](_0x95d10e=>_0x4df952['get'](_0x95d10e));const _0x5386d7=new Set(_0x24f115[_0x320260(0x12b)][_0x320260(0x145)](_0x583483=>_0x583483!==_0x3c1319)[_0x320260(0x17a)](_0x48479b=>_0x48479b[_0x320260(0x16a)]));if(_0x22de0b[_0x320260(0x143)](_0xb09116=>_0x5386d7['has'](_0xb09116)))return _0x284ceb(_0x3c1319,_0x320260(0x162));for(let _0x4da129=0x0;_0x4da129<_0x326c74[_0x320260(0x13d)];_0x4da129++){const _0x3548ce=_0x451d06[_0x320260(0x131)][_0x3c1319[_0x320260(0x153)][_0x4da129]]['values'];if(Object[_0x320260(0x17b)](_0x3548ce)[_0x320260(0x143)](_0x17f311=>!sameImportValue(_0x3548ce[_0x17f311],_0x326c74[_0x4da129][_0x17f311],_0x451d06[_0x320260(0x15b)]?.['includes'](_0x17f311)&&!_0x451d06[_0x320260(0x151)]?.[_0x320260(0x138)](_0x17f311))))return _0x284ceb(_0x3c1319,_0x320260(0x12e)+_0x451d06[_0x320260(0x131)][_0x3c1319['rowIndexes'][_0x4da129]][_0x320260(0x168)]+'.');}return _0x3c1319[_0x320260(0x16a)]=_0x22de0b,_0x3c1319[_0x320260(0x159)]='succeeded',await saveImportJson(_0x503aa9[_0x320260(0x154)],_0x24f115),!![];};if(_0x24f115[_0x2155a(0x12b)]['some'](_0x6701d8=>_0x6701d8[_0x2155a(0x159)]===_0x2155a(0x125)&&!(_0x503aa9[_0x2155a(0x157)]&&_0x503aa9['reconcileImageConflicts']&&_0x451d06[_0x2155a(0x15b)]?.[_0x2155a(0x13d)]&&_0x6701d8['ids'][_0x2155a(0x13d)]===_0x6701d8[_0x2155a(0x153)][_0x2155a(0x13d)])))throw Error(_0x2155a(0x16b));if(_0x503aa9[_0x2155a(0x157)]){for(const _0x2a9561 of _0x24f115[_0x2155a(0x12b)])await _0x58ca7a(_0x2a9561);}for(const _0x5387c4 of _0x24f115['batches']){if(_0x5387c4[_0x2155a(0x159)]===_0x2155a(0x120))continue;if(!_0x503aa9[_0x2155a(0x157)])await _0x58ca7a(_0x5387c4);_0x5387c4[_0x2155a(0x159)]=_0x2155a(0x148),await saveImportJson(_0x503aa9['checkpoint'],_0x24f115),_0x143044++;const _0x379afc=_0x5387c4[_0x2155a(0x153)][_0x2155a(0x172)](_0x13f804=>_0x451d06['rows'][_0x13f804]['values']),_0x572f70=Date[_0x2155a(0x122)](),_0x5f51db={'batch':_0x143044,'rowStart':_0x451d06[_0x2155a(0x131)][_0x5387c4[_0x2155a(0x153)][0x0]][_0x2155a(0x168)],'rowEnd':_0x451d06[_0x2155a(0x131)][_0x5387c4[_0x2155a(0x153)]['at'](-0x1)]['rowNumber'],'count':_0x379afc['length'],'bytes':_0x521211(_0x5387c4[_0x2155a(0x153)],_0x5387c4[_0x2155a(0x13c)]),'elapsedMs':0x0,'status':_0x2155a(0x16d)};_0x2e1415[_0x2155a(0x163)](_0x5f51db);try{const _0x5a1f67=await _0x1e787d['write'](_0x379afc,_0x5387c4[_0x2155a(0x13c)]);if(!_0x5a1f67||_0x5a1f67[_0x2155a(0x13e)]!==_0x379afc[_0x2155a(0x13d)]||!Array[_0x2155a(0x141)](_0x5a1f67['ids'])||_0x5a1f67['ids']['length']!==_0x379afc[_0x2155a(0x13d)]||_0x5a1f67[_0x2155a(0x16a)][_0x2155a(0x143)](_0x2f55d5=>!validId(_0x2f55d5))||new Set(_0x5a1f67[_0x2155a(0x16a)])['size']!==_0x5a1f67[_0x2155a(0x16a)]['length'])throw Error('Invalid\x20write\x20result.');_0x5387c4[_0x2155a(0x16a)]=_0x5a1f67[_0x2155a(0x16a)],await saveImportJson(_0x503aa9[_0x2155a(0x154)],_0x24f115);if(!await _0x58ca7a(_0x5387c4))throw Error(_0x2155a(0x12c));}catch(_0xf62eeb){if(_0x5387c4[_0x2155a(0x159)]===_0x2155a(0x125))throw _0xf62eeb;try{await _0x58ca7a(_0x5387c4);}catch(_0x381561){if(_0x5387c4[_0x2155a(0x159)]===_0x2155a(0x125))throw _0x381561;}if(_0x5387c4['status']!==_0x2155a(0x120))throw Error(_0x2155a(0x152));}finally{_0x5f51db[_0x2155a(0x165)]=Date[_0x2155a(0x122)]()-_0x572f70,_0x5f51db[_0x2155a(0x159)]=_0x5387c4['status']===_0x2155a(0x120)?_0x2155a(0x120):_0x5387c4[_0x2155a(0x159)]==='conflict'?'conflict':_0x2155a(0x16d);}}const _0x2b245d={'status':_0x2155a(0x133),..._0x10bec6()};return await saveImportJson(_0x503aa9[_0x2155a(0x13f)],_0x2b245d),_0x2b245d;}catch(_0x5b1899){if(_0x3c3111)await saveImportJson(_0x503aa9[_0x2155a(0x13f)],{'status':_0x2155a(0x167),..._0x10bec6(),'message':_0x5b1899[_0x2155a(0x128)]});throw _0x5b1899;}finally{await _0x3b1809();}}function a143_0x1fd6(){const _0x537d8f=['rowIndexes','checkpoint','emptyRows','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','resume','isSafeInteger','status','toString','imageFields','unsent','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','10rKCwVW','Excel\x20contains\x20no\x20valid\x20data\x20rows.','values','parse','Import\x20generated\x20ID\x20collision.','push','version','elapsedMs','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','incomplete','rowNumber','importId','ids','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','hex','unknown','appCode','3575FcRIaa','1698489yuTvxr','maxBatchBytes','map','4928539DmoxMs','Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.','Import\x20generated\x20ID\x20conflict.','actorId','size','isInteger','utf8','flatMap','keys','reduce','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','readTask','batchSize','succeeded','onCheckpointReady','now','hasOwn','schemaFingerprint','conflict','Excel\x20row\x20','datasetCode','message','runtimeDomain','Invalid\x20import\x20batch\x20size.','batches','Incomplete\x20readback.','Cannot\x20read\x20the\x20import\x20checkpoint.','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','70200XCWjhU','errors','rows','142170jVFtPR','completed','2dvbrix','Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.','schemaHash','binding','includes','number','sort','warnings','taskId','length','count','report','89505mAhmJi','isArray','Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.','some','324GDaqbD','filter','12uAZsOt','mappingHash','pending','ENOENT','maxBatchSize','stringify','strategy','32jPDyAT','byteLength','string','59562JiisEz','uploadFields','The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.'];a143_0x1fd6=function(){return _0x537d8f;};return a143_0x1fd6();}
1
+ const a143_0x26ca87=a143_0xb707;(function(_0x39c705,_0x339041){const _0x17b402=a143_0xb707,_0x2fd655=_0x39c705();while(!![]){try{const _0x10e503=-parseInt(_0x17b402(0x127))/0x1*(-parseInt(_0x17b402(0x139))/0x2)+parseInt(_0x17b402(0x13d))/0x3+parseInt(_0x17b402(0xef))/0x4+-parseInt(_0x17b402(0x12a))/0x5+parseInt(_0x17b402(0x106))/0x6*(-parseInt(_0x17b402(0xea))/0x7)+parseInt(_0x17b402(0x130))/0x8+parseInt(_0x17b402(0xf5))/0x9*(parseInt(_0x17b402(0x112))/0xa);if(_0x10e503===_0x339041)break;else _0x2fd655['push'](_0x2fd655['shift']());}catch(_0x4cace8){_0x2fd655['push'](_0x2fd655['shift']());}}}(a143_0x2957,0xda569));import{randomBytes,randomUUID}from'node:crypto';import{lstat,readFile}from'node:fs/promises';function a143_0xb707(_0x4530e8,_0x424cc4){_0x4530e8=_0x4530e8-0xe9;const _0x295793=a143_0x2957();let _0xb70747=_0x295793[_0x4530e8];return _0xb70747;}import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x399e2e=>typeof _0x399e2e===a143_0x26ca87(0x121)&&Number[a143_0x26ca87(0xf7)](_0x399e2e)&&_0x399e2e>0x0;export async function runAutoIdExcelImport(_0x26b456){const _0x2f1d4e=a143_0x26ca87,_0x21cad={..._0x26b456,'checkpoint':await resolveImportOutputPath(_0x26b456[_0x2f1d4e(0x116)]),'report':await resolveImportOutputPath(_0x26b456[_0x2f1d4e(0x13f)])},{manifest:_0x337946,contract:_0x164257,api:_0x1cd444}=_0x21cad;assertImportContract(_0x164257,_0x21cad[_0x2f1d4e(0x103)],_0x21cad[_0x2f1d4e(0x12d)]);if(_0x164257[_0x2f1d4e(0x11c)]!==0x2||!_0x1cd444['readTask'])throw Error(_0x2f1d4e(0xf4));if(_0x337946[_0x2f1d4e(0xe9)]['length'])throw Error(_0x2f1d4e(0x11e));if(!_0x337946['rows'][_0x2f1d4e(0x122)])throw Error(_0x2f1d4e(0xf8));if(!Number['isInteger'](_0x21cad[_0x2f1d4e(0x12f)])||_0x21cad[_0x2f1d4e(0x12f)]<0x1||_0x21cad['batchSize']>_0x164257['maxBatchSize'])throw Error('Invalid\x20import\x20batch\x20size.');assertImportPaths(_0x21cad[_0x2f1d4e(0x116)],_0x21cad[_0x2f1d4e(0x13f)]);if(_0x337946[_0x2f1d4e(0x125)][_0x2f1d4e(0xfb)](_0x204a57=>Object['hasOwn'](_0x204a57[_0x2f1d4e(0xf3)],'id')))throw Error('Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.');const _0x171b1c=(_0x2d2344,_0x3386d2)=>Buffer[_0x2f1d4e(0x13a)](JSON['stringify']({'schemaFingerprint':_0x164257[_0x2f1d4e(0x100)],'taskId':_0x3386d2,'items':_0x2d2344['map'](_0x5bb7bf=>_0x337946[_0x2f1d4e(0x125)][_0x5bb7bf][_0x2f1d4e(0xf3)])}),_0x2f1d4e(0xeb)),_0x16efcf=[];let _0x341b92=[];for(let _0x38ed03=0x0;_0x38ed03<_0x337946[_0x2f1d4e(0x125)]['length'];_0x38ed03++){if(_0x171b1c([_0x38ed03],0x2**0x34)>_0x164257[_0x2f1d4e(0x120)])throw Error(_0x2f1d4e(0x131)+_0x337946[_0x2f1d4e(0x125)][_0x38ed03][_0x2f1d4e(0x118)]+'\x20exceeds\x20the\x20import\x20request\x20size\x20limit.');_0x341b92[_0x2f1d4e(0x122)]&&(_0x341b92[_0x2f1d4e(0x122)]===_0x21cad[_0x2f1d4e(0x12f)]||_0x171b1c([..._0x341b92,_0x38ed03],0x2**0x34)>_0x164257[_0x2f1d4e(0x120)])&&(_0x16efcf['push'](_0x341b92),_0x341b92=[]),_0x341b92['push'](_0x38ed03);}if(_0x341b92[_0x2f1d4e(0x122)])_0x16efcf[_0x2f1d4e(0x10c)](_0x341b92);const _0x49bb59={'appCode':_0x21cad[_0x2f1d4e(0x103)],'datasetCode':_0x21cad[_0x2f1d4e(0x12d)],'runtimeDomain':_0x21cad['runtimeDomain'],'actorId':_0x164257[_0x2f1d4e(0x12e)],'fileHash':_0x337946[_0x2f1d4e(0x136)],'mappingHash':_0x337946[_0x2f1d4e(0x143)],'schemaHash':_0x337946[_0x2f1d4e(0x142)],'remoteSchemaHash':_0x164257['schemaFingerprint'],'batchSize':_0x21cad[_0x2f1d4e(0x12f)],'maxBatchBytes':_0x164257[_0x2f1d4e(0x120)],'sheet':_0x337946['sheet'],'strategy':_0x164257[_0x2f1d4e(0xee)]},_0x28717a=await acquireLock(_0x21cad[_0x2f1d4e(0x116)]);let _0x5c087a;const _0xbd68bd=Date[_0x2f1d4e(0x110)]();let _0x5b3001=0x0;const _0x21c6a0=[],_0x2d6723=_0x578125=>_0x5c087a?.['batches'][_0x2f1d4e(0xf6)](_0x61f1b9=>_0x61f1b9[_0x2f1d4e(0xfe)]===_0x578125)[_0x2f1d4e(0x10f)]((_0x5b6938,_0x28c62b)=>_0x5b6938+_0x28c62b[_0x2f1d4e(0xf0)][_0x2f1d4e(0x122)],0x0)??0x0,_0x15b2d0=()=>({'importId':_0x5c087a?.[_0x2f1d4e(0x117)],'sourceRows':_0x337946[_0x2f1d4e(0x125)]['length'],'emptyRows':_0x337946[_0x2f1d4e(0x113)][_0x2f1d4e(0x122)],'succeeded':_0x2d6723(_0x2f1d4e(0x102)),'unknown':_0x2d6723('pending'),'conflicts':_0x2d6723(_0x2f1d4e(0x101)),'notAttempted':_0x2d6723(_0x2f1d4e(0x126)),'batches':_0x5b3001,'batchResults':_0x21c6a0,'elapsedMs':Date[_0x2f1d4e(0x110)]()-_0xbd68bd,'checkpoint':_0x21cad[_0x2f1d4e(0x116)],'report':_0x21cad['report'],'warnings':_0x337946['warnings']});try{if(_0x21cad[_0x2f1d4e(0x133)]){try{_0x5c087a=JSON[_0x2f1d4e(0x111)](await readFile(_0x21cad[_0x2f1d4e(0x116)],_0x2f1d4e(0xeb)));}catch{throw Error(_0x2f1d4e(0x13e));}if(!_0x5c087a||_0x5c087a['version']!==0x2||typeof _0x5c087a[_0x2f1d4e(0x117)]!==_0x2f1d4e(0xff)||!_0x5c087a['importId']||canonical(_0x5c087a[_0x2f1d4e(0x105)])!==canonical(_0x49bb59)||!Array['isArray'](_0x5c087a[_0x2f1d4e(0x109)])||_0x5c087a['batches'][_0x2f1d4e(0x122)]!==_0x16efcf[_0x2f1d4e(0x122)]||new Set(_0x5c087a[_0x2f1d4e(0x109)][_0x2f1d4e(0xec)](_0x668043=>_0x668043[_0x2f1d4e(0x137)]))[_0x2f1d4e(0x13b)]!==_0x16efcf[_0x2f1d4e(0x122)]||_0x5c087a[_0x2f1d4e(0x109)][_0x2f1d4e(0xfb)]((_0x396a8c,_0x2652de)=>!validId(_0x396a8c[_0x2f1d4e(0x137)])||_0x396a8c[_0x2f1d4e(0x137)]>0x2**0x34||canonical(_0x396a8c[_0x2f1d4e(0xf0)])!==canonical(_0x16efcf[_0x2652de])||![_0x2f1d4e(0x126),'pending','succeeded',_0x2f1d4e(0x101)][_0x2f1d4e(0x115)](_0x396a8c[_0x2f1d4e(0xfe)])||!Array['isArray'](_0x396a8c[_0x2f1d4e(0x108)])||_0x396a8c['ids'][_0x2f1d4e(0xfb)](_0x4f826e=>!validId(_0x4f826e))||new Set(_0x396a8c['ids'])['size']!==_0x396a8c[_0x2f1d4e(0x108)][_0x2f1d4e(0x122)]||_0x396a8c[_0x2f1d4e(0x108)][_0x2f1d4e(0x122)]!==0x0&&_0x396a8c[_0x2f1d4e(0x108)][_0x2f1d4e(0x122)]!==_0x396a8c[_0x2f1d4e(0xf0)][_0x2f1d4e(0x122)]||_0x396a8c['status']===_0x2f1d4e(0x102)&&_0x396a8c[_0x2f1d4e(0x108)]['length']!==_0x396a8c[_0x2f1d4e(0xf0)][_0x2f1d4e(0x122)]||_0x396a8c['status']===_0x2f1d4e(0x126)&&_0x396a8c[_0x2f1d4e(0x108)][_0x2f1d4e(0x122)]!==0x0))throw Error('Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.');const _0x351ae5=_0x5c087a[_0x2f1d4e(0x109)][_0x2f1d4e(0x114)](_0x6c9bc=>_0x6c9bc[_0x2f1d4e(0x108)]);if(new Set(_0x351ae5)['size']!==_0x351ae5[_0x2f1d4e(0x122)])throw Error(_0x2f1d4e(0x10e));}else{try{await lstat(_0x21cad[_0x2f1d4e(0x116)]);throw Error(_0x2f1d4e(0x104));}catch(_0x2935d1){if(_0x2935d1[_0x2f1d4e(0x11f)]!==_0x2f1d4e(0xfc))throw _0x2935d1;}const _0xab5608=new Set();_0x5c087a={'version':0x2,'importId':randomUUID(),'binding':_0x49bb59,'batches':_0x16efcf[_0x2f1d4e(0xec)](_0x3a3d06=>{const _0x23bc3c=_0x2f1d4e;let _0x6a6c20;do{_0x6a6c20=Number(BigInt('0x'+randomBytes(0x7)[_0x23bc3c(0x132)](_0x23bc3c(0xf9)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0xab5608[_0x23bc3c(0x12c)](_0x6a6c20));return _0xab5608[_0x23bc3c(0x140)](_0x6a6c20),{'taskId':_0x6a6c20,'rowIndexes':_0x3a3d06,'ids':[],'status':_0x23bc3c(0x126)};})},await saveImportJson(_0x21cad['checkpoint'],_0x5c087a);}await _0x21cad[_0x2f1d4e(0x119)]?.();const _0x4e4804=_0x5c087a,_0x18b5d9=async(_0x4e142f,_0x268dfa)=>{const _0x106dc0=_0x2f1d4e;_0x4e142f[_0x106dc0(0xfe)]=_0x106dc0(0x101),await saveImportJson(_0x21cad['checkpoint'],_0x4e4804);throw Error(_0x268dfa);},_0x58956e=async _0x4f4e6f=>{const _0x3050fe=_0x2f1d4e;let _0x567c0b=await _0x1cd444['readTask'](_0x4f4e6f[_0x3050fe(0x137)]);if(!Array[_0x3050fe(0x141)](_0x567c0b))throw Error(_0x3050fe(0x10b));if(_0x4f4e6f[_0x3050fe(0xfe)]==='unsent'&&_0x567c0b[_0x3050fe(0x122)])return _0x18b5d9(_0x4f4e6f,_0x3050fe(0xed));if(!_0x567c0b[_0x3050fe(0x122)]){if(_0x4f4e6f[_0x3050fe(0xfe)]==='succeeded'||_0x4f4e6f[_0x3050fe(0x108)][_0x3050fe(0x122)])return _0x18b5d9(_0x4f4e6f,_0x3050fe(0x11a));return![];}if(_0x567c0b[_0x3050fe(0x122)]!==_0x4f4e6f['rowIndexes'][_0x3050fe(0x122)])return _0x18b5d9(_0x4f4e6f,_0x3050fe(0x107));const _0x2e4ea1=_0x567c0b[_0x3050fe(0xec)](_0x19e72b=>_0x19e72b?.['id']);if(_0x2e4ea1['some'](_0x51af85=>!validId(_0x51af85)))return _0x18b5d9(_0x4f4e6f,_0x3050fe(0x10a));if(new Set(_0x2e4ea1)[_0x3050fe(0x13b)]!==_0x2e4ea1[_0x3050fe(0x122)])return _0x18b5d9(_0x4f4e6f,_0x3050fe(0x10a));const _0x1aadca=new Map(_0x567c0b[_0x3050fe(0xec)](_0xe22eb5=>[_0xe22eb5['id'],_0xe22eb5])),_0x1df4c3=_0x4f4e6f[_0x3050fe(0x108)]['length']?[..._0x4f4e6f[_0x3050fe(0x108)]]:[..._0x2e4ea1][_0x3050fe(0x13c)]((_0x522939,_0x4ab516)=>_0x522939-_0x4ab516);if(_0x1df4c3[_0x3050fe(0xfb)](_0x33a643=>!validId(_0x33a643))||_0x1df4c3[_0x3050fe(0xfb)]((_0x15025c,_0x4a341f)=>_0x4a341f>0x0&&_0x15025c<=_0x1df4c3[_0x4a341f-0x1])||_0x1df4c3[_0x3050fe(0xfb)](_0x151a6a=>!_0x1aadca[_0x3050fe(0x12c)](_0x151a6a)))return _0x18b5d9(_0x4f4e6f,'Import\x20generated\x20ID\x20conflict.');_0x567c0b=_0x1df4c3[_0x3050fe(0xec)](_0xb7f7bf=>_0x1aadca[_0x3050fe(0x10d)](_0xb7f7bf));const _0x3cafb2=new Set(_0x4e4804[_0x3050fe(0x109)][_0x3050fe(0xf6)](_0x2f3e07=>_0x2f3e07!==_0x4f4e6f)[_0x3050fe(0x114)](_0x5057de=>_0x5057de['ids']));if(_0x1df4c3['some'](_0x91e9b5=>_0x3cafb2['has'](_0x91e9b5)))return _0x18b5d9(_0x4f4e6f,_0x3050fe(0xfa));for(let _0x5e067b=0x0;_0x5e067b<_0x567c0b['length'];_0x5e067b++){const _0x40b082=_0x337946[_0x3050fe(0x125)][_0x4f4e6f[_0x3050fe(0xf0)][_0x5e067b]][_0x3050fe(0xf3)];if(Object[_0x3050fe(0x128)](_0x40b082)[_0x3050fe(0xfb)](_0x2cd383=>!sameImportValue(_0x40b082[_0x2cd383],_0x567c0b[_0x5e067b][_0x2cd383],_0x337946[_0x3050fe(0xfd)]?.[_0x3050fe(0x115)](_0x2cd383)&&!_0x337946['uploadFields']?.[_0x3050fe(0x115)](_0x2cd383))))return _0x18b5d9(_0x4f4e6f,_0x3050fe(0x124)+_0x337946['rows'][_0x4f4e6f[_0x3050fe(0xf0)][_0x5e067b]][_0x3050fe(0x118)]+'.');}return _0x4f4e6f[_0x3050fe(0x108)]=_0x1df4c3,_0x4f4e6f[_0x3050fe(0xfe)]=_0x3050fe(0x102),await saveImportJson(_0x21cad[_0x3050fe(0x116)],_0x4e4804),!![];};if(_0x4e4804[_0x2f1d4e(0x109)][_0x2f1d4e(0xfb)](_0x4e0eb6=>_0x4e0eb6['status']===_0x2f1d4e(0x101)&&!(_0x21cad[_0x2f1d4e(0x133)]&&_0x21cad[_0x2f1d4e(0x12b)]&&_0x337946[_0x2f1d4e(0xfd)]?.[_0x2f1d4e(0x122)]&&_0x4e0eb6['ids'][_0x2f1d4e(0x122)]===_0x4e0eb6[_0x2f1d4e(0xf0)][_0x2f1d4e(0x122)])))throw Error(_0x2f1d4e(0x129));if(_0x21cad[_0x2f1d4e(0x133)]){for(const _0x41e118 of _0x4e4804[_0x2f1d4e(0x109)])await _0x58956e(_0x41e118);}for(const _0x21cc37 of _0x4e4804['batches']){if(_0x21cc37['status']==='succeeded')continue;if(!_0x21cad['resume'])await _0x58956e(_0x21cc37);_0x21cc37[_0x2f1d4e(0xfe)]=_0x2f1d4e(0x11b),await saveImportJson(_0x21cad[_0x2f1d4e(0x116)],_0x4e4804),_0x5b3001++;const _0x4ad6dc=_0x21cc37['rowIndexes']['map'](_0x7859f3=>_0x337946[_0x2f1d4e(0x125)][_0x7859f3]['values']),_0x26c525=Date['now'](),_0x5ad4be={'batch':_0x5b3001,'rowStart':_0x337946['rows'][_0x21cc37[_0x2f1d4e(0xf0)][0x0]][_0x2f1d4e(0x118)],'rowEnd':_0x337946[_0x2f1d4e(0x125)][_0x21cc37['rowIndexes']['at'](-0x1)][_0x2f1d4e(0x118)],'count':_0x4ad6dc[_0x2f1d4e(0x122)],'bytes':_0x171b1c(_0x21cc37['rowIndexes'],_0x21cc37['taskId']),'elapsedMs':0x0,'status':'unknown'};_0x21c6a0[_0x2f1d4e(0x10c)](_0x5ad4be);try{const _0x21f14e=await _0x1cd444[_0x2f1d4e(0xf2)](_0x4ad6dc,_0x21cc37[_0x2f1d4e(0x137)]);if(!_0x21f14e||_0x21f14e[_0x2f1d4e(0x134)]!==_0x4ad6dc[_0x2f1d4e(0x122)]||!Array[_0x2f1d4e(0x141)](_0x21f14e[_0x2f1d4e(0x108)])||_0x21f14e['ids']['length']!==_0x4ad6dc['length']||_0x21f14e[_0x2f1d4e(0x108)]['some'](_0x114d05=>!validId(_0x114d05))||new Set(_0x21f14e[_0x2f1d4e(0x108)])[_0x2f1d4e(0x13b)]!==_0x21f14e[_0x2f1d4e(0x108)][_0x2f1d4e(0x122)])throw Error('Invalid\x20write\x20result.');_0x21cc37[_0x2f1d4e(0x108)]=_0x21f14e[_0x2f1d4e(0x108)],await saveImportJson(_0x21cad[_0x2f1d4e(0x116)],_0x4e4804);if(!await _0x58956e(_0x21cc37))throw Error(_0x2f1d4e(0x123));}catch(_0x4d5b46){if(_0x21cc37['status']==='conflict')throw _0x4d5b46;try{await _0x58956e(_0x21cc37);}catch(_0x48609f){if(_0x21cc37['status']===_0x2f1d4e(0x101))throw _0x48609f;}if(_0x21cc37[_0x2f1d4e(0xfe)]!=='succeeded')throw Error('The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.');}finally{_0x5ad4be[_0x2f1d4e(0xf1)]=Date[_0x2f1d4e(0x110)]()-_0x26c525,_0x5ad4be['status']=_0x21cc37['status']===_0x2f1d4e(0x102)?_0x2f1d4e(0x102):_0x21cc37[_0x2f1d4e(0xfe)]==='conflict'?_0x2f1d4e(0x101):_0x2f1d4e(0x11d);}}const _0x58abac={'status':'completed',..._0x15b2d0()};return await saveImportJson(_0x21cad['report'],_0x58abac),_0x58abac;}catch(_0xd7e837){if(_0x5c087a)await saveImportJson(_0x21cad[_0x2f1d4e(0x13f)],{'status':_0x2f1d4e(0x138),..._0x15b2d0(),'message':_0xd7e837[_0x2f1d4e(0x135)]});throw _0xd7e837;}finally{await _0x28717a();}}function a143_0x2957(){const _0x396aa5=['68MzAXlu','byteLength','size','sort','3109692ELfkEL','Cannot\x20read\x20the\x20import\x20checkpoint.','report','add','isArray','schemaHash','mappingHash','errors','3359223NCJGnY','utf8','map','Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.','strategy','2592636NGBfpm','rowIndexes','elapsedMs','write','values','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','18BVihWV','filter','isSafeInteger','Excel\x20contains\x20no\x20valid\x20data\x20rows.','hex','Import\x20generated\x20ID\x20collision.','some','ENOENT','imageFields','status','string','schemaFingerprint','conflict','succeeded','appCode','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','binding','18rOVujQ','Partial\x20import\x20task\x20readback\x20conflict.','ids','batches','Import\x20generated\x20ID\x20conflict.','Invalid\x20import\x20task\x20readback\x20response.','push','get','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','reduce','now','parse','995920JlkJBk','emptyRows','flatMap','includes','checkpoint','importId','rowNumber','onCheckpointReady','Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.','pending','schemaVersion','unknown','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','code','maxBatchBytes','number','length','Incomplete\x20readback.','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','rows','unsent','2495bHgyUf','keys','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','1070935qydbIb','reconcileImageConflicts','has','datasetCode','actorId','batchSize','4635440WIyQgW','Excel\x20row\x20','toString','resume','count','message','fileHash','taskId','incomplete'];a143_0x2957=function(){return _0x396aa5;};return a143_0x2957();}
@@ -1 +1 @@
1
- function a144_0x2d35(_0x56d95b,_0x247bf){_0x56d95b=_0x56d95b-0xf6;const _0x538373=a144_0x5383();let _0x2d3515=_0x538373[_0x56d95b];return _0x2d3515;}const a144_0x17e727=a144_0x2d35;(function(_0x12fd87,_0x2863bc){const _0x45504a=a144_0x2d35,_0x544c27=_0x12fd87();while(!![]){try{const _0x65937b=parseInt(_0x45504a(0x1bc))/0x1*(-parseInt(_0x45504a(0x14a))/0x2)+-parseInt(_0x45504a(0x131))/0x3*(parseInt(_0x45504a(0x104))/0x4)+parseInt(_0x45504a(0x18a))/0x5*(-parseInt(_0x45504a(0xff))/0x6)+parseInt(_0x45504a(0x154))/0x7+parseInt(_0x45504a(0x158))/0x8*(-parseInt(_0x45504a(0x1a3))/0x9)+parseInt(_0x45504a(0x13b))/0xa*(-parseInt(_0x45504a(0x19b))/0xb)+parseInt(_0x45504a(0x183))/0xc;if(_0x65937b===_0x2863bc)break;else _0x544c27['push'](_0x544c27['shift']());}catch(_0x212796){_0x544c27['push'](_0x544c27['shift']());}}}(a144_0x5383,0xcedea));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x387b75 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x1949ff from'exceljs';import a144_0x34d48e 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',a144_0x17e727(0x17e),a144_0x17e727(0x176),a144_0x17e727(0x1dc),a144_0x17e727(0x1cc),a144_0x17e727(0x159),'modifierName',a144_0x17e727(0x10a),a144_0x17e727(0x1cb),a144_0x17e727(0x1e1)]),TYPES=new Set([a144_0x17e727(0x16a),a144_0x17e727(0x1b5),a144_0x17e727(0x178),a144_0x17e727(0x197),a144_0x17e727(0x10b),a144_0x17e727(0x11a),a144_0x17e727(0x1e5),'date',a144_0x17e727(0x1c5),a144_0x17e727(0x150),'upload']),isImageContainer=_0x126231=>[a144_0x17e727(0x150),a144_0x17e727(0x142)][a144_0x17e727(0x161)](_0x126231[a144_0x17e727(0xfa)]()),hash=_0x510edf=>createHash(a144_0x17e727(0x133))['update'](_0x510edf)[a144_0x17e727(0x19e)](a144_0x17e727(0x143)),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0x17e727(0x1b8)),nameCoordinates=require('exceljs/lib/utils/col-cache.js'),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a144_0x17e727(0x1dd)](a144_0x17e727(0x169))),zipRequire=createRequire(excelRequire[a144_0x17e727(0x1dd)](a144_0x17e727(0x13e))),ZipEntry=zipRequire(a144_0x17e727(0x18f)),zipReader=zipRequire(a144_0x17e727(0x17a)),zipUtf8=zipRequire(a144_0x17e727(0x12b)),zipPaths=zipRequire(a144_0x17e727(0x17b));function a144_0x5383(){const _0xa77d7c=['XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','parserVersion','test','isInteger','20nuVWJk','equals','Required\x20field\x20is\x20not\x20mapped:\x20','jszip','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','Requested\x20worksheet\x20does\x20not\x20exist.','Invalid\x20worksheet\x20nested\x20cell.','upload','hex','required','parseText','opentag','left','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','attributes','36kBrcrK','right','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','localeCompare','generated','sort','image','doctype','Expected\x20an\x20Excel\x20date\x20cell.','readEntry','7507227gIjvvV','Worksheet\x20exceeds\x2016384\x20columns.','xlsx','Duplicate\x20header:\x20','4096528rACBni','modifierId','entry','values','dir','abs','versionMadeBy','properties','batchSize','includes','isFinite','directory','top','extraFieldsLength','parseOpen','name','imageFields','exceljs','string','byteLength','fileComment','contentHash','Invalid\x20dataset\x20field\x20extension\x20metadata.','XLSX\x20file\x20exceeds\x2020\x20MB.','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','errors','columnCount','slice','has','MAX_SAFE_INTEGER','datasetId','Missing\x20image\x20media:\x20','textarea','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','./reader/readerFor','./utils','entries','set','appCode','fileNameStr','readEntryCursor','Invalid\x20worksheet\x20coordinate.','.xlsx','61622148CZTaND','XML\x20DTD/entities\x20are\x20not\x20supported.','image/jpeg','Image\x20XML\x20event\x20budget\x20exceeded.','Worksheet\x20merge\x20work\x20exceeds\x20100000.','repeat','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','80clUXhI','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','object','materialized','reference','./zipEntry','Expected\x20a\x20text\x20cell.','getCell','model','media','Invalid\x20worksheet\x20XML:\x20','Invalid\x20worksheet\x20XML.','Unknown\x20or\x20generated\x20mapping\x20field:\x20','number','result','Only\x20.xlsx\x20files\x20are\x20supported.','readUInt32LE','4168263GdDwcT','readUInt16LE','getTime','digest','isFile','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','sharedFormula','hyperlink','27eCvbQi','[Content_Types].xml','merges','map','error','get','file','formula','isBuffer','mergeCell','_xlnm.Print_Area','filter','utf8decode','fields','definedName','readExtraFields','nativeCell','Unsupported\x20field\x20type:\x20','text','doType','bottom','exceljs/lib/xlsx/xform/book/defined-name-xform.js','value','rowCount','dataset-import/','58983PQDmfy','uploadFields','Non-canonical\x20worksheet\x20ZIP\x20entry.','exec','relativeOffsetOfLocalHeader','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','size','row','getRow','datetime','closetag','serial_number','dataValidations','processAttributes','Duplicate\x20mapping\x20target:\x20','updateTime','creatorName','concat','Invalid\x20worksheet\x20hyperlink\x20reference.','find','jpg','write','isSafeInteger','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','compressedSize','type','startsWith','rows','ref','parseClose','hiddenRow','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','creatorId','resolve','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','code','generalPurposeBitFlag','deleted','parseInt','close','dataType','boolean','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','add','Unknown\x20Excel\x20header:\x20','push','extraFieldRaw','some','subarray','xl/workbook.xml','toLowerCase','worksheets','from','externalFileAttributes','message','145578auUkgA','clear','headerRow','fileNameRaw','extend','6465344gFScVY','eachCell','handleUTF8','Worksheet\x20coordinate\x20exceeds\x20','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','Invalid\x20worksheet\x20nested\x20row.','createTime','decimal','imageCells','trim','hidden','destroy','Invalid\x20worksheet\x20merge\x20reference.','_xlnm.Print_Titles','sheet','ranges','stringify','Image\x20XML\x20node\x20budget\x20exceeded.','split','original','METADATA','emptyRows','integer','Formula\x20has\x20no\x20cached\x20result.','pop','end','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','col','Invalid\x20defined\x20name\x20coordinate.','utf8','every','cells','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','address','decodeEx','create','openReadStream','before','./utf8','uncompressedSize','max','File\x20is\x20not\x20an\x20XLSX\x20workbook.','extname','Invalid\x20ZIP\x20local\x20file\x20header.','3ZlNeKV','isArray','sha256','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','length','load'];a144_0x5383=function(){return _0xa77d7c;};return a144_0x5383();}function centralDirectoryEnd(_0x162bd2,_0x4c66c8){const _0x4fe606=a144_0x17e727,_0xcb5732=()=>new Error('Invalid\x20ZIP\x20central\x20directory\x20layout.'),_0x28e03b=_0x162bd2['lastIndexOf'](Buffer[_0x4fe606(0xfc)]([0x50,0x4b,0x5,0x6]));if(_0x28e03b<0x0||_0x28e03b+0x16>_0x162bd2[_0x4fe606(0x135)]||_0x28e03b+0x16+_0x162bd2['readUInt16LE'](_0x28e03b+0x14)!==_0x162bd2['length'])throw _0xcb5732();let _0xdbbf86=_0x162bd2[_0x4fe606(0x19c)](_0x28e03b+0xa),_0xb22075=_0x162bd2[_0x4fe606(0x19a)](_0x28e03b+0xc),_0x138172=_0x162bd2[_0x4fe606(0x19a)](_0x28e03b+0x10),_0x4ca7d7=_0x28e03b;const _0x41fb48=_0x28e03b-0x14,_0x557d73=_0x41fb48>=0x0&&_0x162bd2[_0x4fe606(0x19a)](_0x41fb48)===0x7064b50,_0x35c7b9=[0x4,0x6,0x8,0xa][_0x4fe606(0xf7)](_0x19a23a=>_0x162bd2['readUInt16LE'](_0x28e03b+_0x19a23a)===0xffff)||_0xb22075===0xffffffff||_0x138172===0xffffffff;if(_0x557d73!==_0x35c7b9)throw _0xcb5732();if(_0x557d73){if(_0x162bd2['lastIndexOf'](Buffer[_0x4fe606(0xfc)]([0x50,0x4b,0x6,0x7]))!==_0x41fb48)throw _0xcb5732();const _0xd7d725=_0xd8398=>{const _0x43f5d2=_0x4fe606,_0x5b3aae=Number(_0x162bd2['readBigUInt64LE'](_0xd8398));if(!Number[_0x43f5d2(0x1d2)](_0x5b3aae))throw _0xcb5732();return _0x5b3aae;};_0x4ca7d7=_0xd7d725(_0x41fb48+0x8);if(_0x162bd2[_0x4fe606(0x19a)](_0x41fb48+0x4)!==0x0||_0x162bd2[_0x4fe606(0x19a)](_0x41fb48+0x10)!==0x1||_0x4ca7d7>_0x41fb48-0x38||_0x162bd2[_0x4fe606(0x19a)](_0x4ca7d7)!==0x6064b50||_0xd7d725(_0x4ca7d7+0x4)!==0x2c||_0x4ca7d7+0x38!==_0x41fb48||_0x162bd2[_0x4fe606(0x19a)](_0x4ca7d7+0x10)!==0x0||_0x162bd2[_0x4fe606(0x19a)](_0x4ca7d7+0x14)!==0x0)throw _0xcb5732();_0xdbbf86=_0xd7d725(_0x4ca7d7+0x20),_0xb22075=_0xd7d725(_0x4ca7d7+0x28),_0x138172=_0xd7d725(_0x4ca7d7+0x30);if(_0xd7d725(_0x4ca7d7+0x18)!==_0xdbbf86)throw _0xcb5732();}else{if(_0x162bd2[_0x4fe606(0x19c)](_0x28e03b+0x4)!==0x0||_0x162bd2[_0x4fe606(0x19c)](_0x28e03b+0x6)!==0x0||_0x162bd2[_0x4fe606(0x19c)](_0x28e03b+0x8)!==_0xdbbf86)throw _0xcb5732();}const _0x34bf35=_0x4c66c8[_0x4fe606(0x180)];if(_0x138172!==_0x34bf35||_0xdbbf86!==_0x4c66c8['entryCount']||_0x138172+_0xb22075!==_0x4ca7d7)throw _0xcb5732();return _0x4ca7d7;}function consumerEntryName(_0x2d7a63,_0x11b487){const _0x5aa473=a144_0x17e727;if(_0x11b487['extraFields']['filter'](_0x5077ca=>_0x5077ca['id']===0x1)['length']>0x1)throw new Error('Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.');const _0x17da0=_0x11b487,_0x5e9759=_0x11b487[_0x5aa473(0x1c0)];if(!Buffer[_0x5aa473(0x1ab)](_0x17da0[_0x5aa473(0x102)])||!Buffer[_0x5aa473(0x1ab)](_0x17da0[_0x5aa473(0xf6)])||!Buffer[_0x5aa473(0x1ab)](_0x17da0['fileCommentRaw'])||!Number[_0x5aa473(0x1d2)](_0x5e9759)||_0x5e9759<0x0||_0x5e9759>_0x2d7a63[_0x5aa473(0x135)]-0x1e||_0x2d7a63[_0x5aa473(0x19a)](_0x5e9759)!==0x4034b50)throw new Error(_0x5aa473(0x130));const _0x8f28cf=_0x5e9759+0x1e+_0x2d7a63[_0x5aa473(0x19c)](_0x5e9759+0x1a),_0x255355=_0x8f28cf+_0x2d7a63[_0x5aa473(0x19c)](_0x5e9759+0x1c)+_0x11b487[_0x5aa473(0x1d4)];if(!Number[_0x5aa473(0x1d2)](_0x255355)||_0x255355>_0x2d7a63[_0x5aa473(0x135)])throw new Error(_0x5aa473(0x130));if(_0x8f28cf>_0x2d7a63[_0x5aa473(0x135)]||!_0x2d7a63[_0x5aa473(0xf8)](_0x5e9759+0x1e,_0x8f28cf)[_0x5aa473(0x13c)](_0x17da0[_0x5aa473(0x102)]))throw new Error(_0x5aa473(0x13f));const _0x2ee8a4=new ZipEntry({},{'decodeFileName':zipUtf8[_0x5aa473(0x1af)]});_0x2ee8a4['bitFlag']=_0x11b487[_0x5aa473(0x1e0)],_0x2ee8a4['fileName']=_0x17da0[_0x5aa473(0x102)],_0x2ee8a4[_0x5aa473(0x16c)]=_0x17da0['fileCommentRaw'],_0x2ee8a4[_0x5aa473(0x165)]=_0x17da0[_0x5aa473(0xf6)][_0x5aa473(0x135)],_0x2ee8a4[_0x5aa473(0x1b2)](zipReader(_0x17da0['extraFieldRaw'])),_0x2ee8a4[_0x5aa473(0x106)](),_0x2ee8a4[_0x5aa473(0x15e)]=_0x11b487[_0x5aa473(0x15e)],_0x2ee8a4[_0x5aa473(0xfd)]=_0x11b487[_0x5aa473(0xfd)],_0x2ee8a4[_0x5aa473(0x1c9)]();const _0xe00435=_0x2ee8a4[_0x5aa473(0x15c)]||Boolean((_0x2ee8a4['unixPermissions']??0x0)&0x4000),_0x56abd1=zipPaths[_0x5aa473(0x1dd)](_0x2ee8a4['fileNameStr']),_0x29064e=_0x56abd1[_0x5aa473(0x1d6)]('/')?_0x56abd1[_0x5aa473(0x173)](0x1):_0x56abd1;return{'name':_0x29064e,'original':_0x2ee8a4[_0x5aa473(0x17f)],'directory':_0xe00435};}export function normalizeImportFields(_0xbe8c3d){const _0x37a778=a144_0x17e727;if(!_0xbe8c3d||(_0xbe8c3d['source']??_0xbe8c3d['dataset']?.['sourceType'])!==_0x37a778(0x118))throw new Error(_0x37a778(0x11f));const _0x3c9594=Array['isArray'](_0xbe8c3d[_0x37a778(0x1b0)]),_0x3d397f=_0x3c9594?_0xbe8c3d[_0x37a778(0x1b0)]:_0xbe8c3d[_0x37a778(0x15f)];if(!Array[_0x37a778(0x132)](_0x3d397f)||_0x3d397f[_0x37a778(0x135)]===0x0)throw new Error('Dataset\x20field\x20metadata\x20is\x20missing.');const _0x45f954=[],_0x3fd9ab=new Set();for(const _0x3a4ebb of _0x3d397f){if(_0x3a4ebb[_0x37a778(0x1e1)]===!![])continue;let _0x58d527=_0x3a4ebb[_0x37a778(0x103)]??{};if(!_0x3c9594&&typeof _0x58d527==='string'){try{_0x58d527=JSON['parse'](_0x58d527);}catch{throw new Error(_0x37a778(0x16e));}if(!_0x58d527||typeof _0x58d527!==_0x37a778(0x18c)||Array['isArray'](_0x58d527))throw new Error(_0x37a778(0x16e));}const _0x527b90=_0x3c9594?_0x3a4ebb[_0x37a778(0x167)]:_0x3a4ebb['code'],_0x3691bc=_0x3c9594?_0x3a4ebb[_0x37a778(0x1b6)]:_0x3a4ebb[_0x37a778(0x1d5)]??_0x3a4ebb[_0x37a778(0x1e4)];if(typeof _0x527b90!==_0x37a778(0x16a)||!_0x527b90||typeof _0x3691bc!=='string'||_0x3fd9ab[_0x37a778(0x174)](_0x527b90))throw new Error('Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.');if(_0x3691bc[_0x37a778(0xfa)]()===_0x37a778(0x1c7))throw new Error(_0x37a778(0x170));_0x3fd9ab[_0x37a778(0x1e8)](_0x527b90);const _0x266f5a=_0x3c9594?_0x3a4ebb:_0x58d527,_0x42d0a9={'code':_0x527b90,'type':_0x3691bc,'required':_0x266f5a[_0x37a778(0x144)]===!![]};if(RESERVED['has'](_0x527b90)||_0x266f5a[_0x37a778(0x14e)]===!![]||_0x266f5a['autoIncrement']===!![])_0x42d0a9[_0x37a778(0x14e)]=!![];_0x45f954[_0x37a778(0x1ea)](_0x42d0a9);}return _0x45f954;}async function checkArchive(_0x14091c,_0x36e554){await new Promise((_0x38b24c,_0xace151)=>{a144_0x34d48e['fromBuffer'](_0x14091c,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x367dd0,_0x5a8b84)=>{const _0x5af56a=a144_0x2d35;if(_0x367dd0||!_0x5a8b84){_0xace151(_0x367dd0??new Error('Invalid\x20XLSX\x20archive.'));return;}let _0x1eda9b;try{_0x1eda9b=centralDirectoryEnd(_0x14091c,_0x5a8b84);}catch(_0x5273c0){_0x5a8b84['close'](),_0xace151(_0x5273c0);return;}let _0x3cc5a4=0x0,_0x2cebaf=0x0,_0x40505d=0x0,_0x4f1180=0x0,_0x46c6c6=0x0,_0x20b32c=0x0,_0x3f5ed0=0x0,_0x204929=0x0,_0x281301=0x0,_0x4b8592=![],_0xfa8da7;const _0x4d4ca6=new Set(),_0x5aeb56=_0x3ac3ed=>{const _0x49607f=a144_0x2d35;if(_0x4b8592)return;_0x4b8592=!![],_0xfa8da7?.[_0x49607f(0x10f)](),_0x5a8b84[_0x49607f(0x1e3)](),_0xace151(_0x3ac3ed);},_0x5dfae6=(_0x1e429b,_0x286200)=>{const _0x2b80cb=a144_0x2d35;if(!_0x1e429b||!/^\d+$/['test'](_0x1e429b))throw new Error(_0x2b80cb(0x181));const _0x351887=Number(_0x1e429b);if(!Number[_0x2b80cb(0x1d2)](_0x351887)||_0x351887<0x1||_0x351887>_0x286200)throw new Error(_0x2b80cb(0x107)+_0x286200+'.');return _0x351887;},_0x5dd095=(_0x1e718e,_0x4542d1=MAX_XML_COLUMNS)=>{const _0x5ef212=a144_0x2d35,_0x12ef6b=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x5ef212(0x1bf)](_0x1e718e);if(!_0x12ef6b)throw new Error(_0x5ef212(0x14c));let _0x1357ab=0x0;for(const _0x3ddb98 of _0x12ef6b[0x1])_0x1357ab=_0x1357ab*0x1a+_0x3ddb98['charCodeAt'](0x0)-0x40;if(_0x1357ab>_0x4542d1)throw new Error('Worksheet\x20exceeds\x20'+_0x4542d1+'\x20columns.');return{'row':_0x5dfae6(_0x12ef6b[0x2],MAX_XML_ROWS),'col':_0x1357ab};},_0x31e3a2=_0xe0db15=>{const _0x2903ec=a144_0x2d35;if(_0xe0db15['name']===_0x2903ec(0x1ad)||_0xe0db15[_0x2903ec(0x167)]===_0x2903ec(0x111))return;for(const _0x36b4e9 of _0xe0db15[_0x2903ec(0x113)]){if(!ABSOLUTE_NAME_RANGE[_0x2903ec(0x139)](_0x36b4e9[_0x2903ec(0x116)]('!')[_0x2903ec(0x11c)]()||''))continue;const _0x2ae193=nameCoordinates[_0x2903ec(0x127)](_0x36b4e9),_0x271fae='top'in _0x2ae193,_0x120479=_0x271fae?[_0x2ae193[_0x2903ec(0x164)],_0x2ae193['bottom']]:[_0x2ae193[_0x2903ec(0x1c3)]],_0x5580d9=_0x271fae?[_0x2ae193[_0x2903ec(0x147)],_0x2ae193[_0x2903ec(0x14b)]]:[_0x2ae193[_0x2903ec(0x120)]],_0x1a94a3=(_0x5eea69,_0x19a46a)=>Number[_0x2903ec(0x1d2)](_0x5eea69)&&_0x5eea69>=0x1&&_0x5eea69<=_0x19a46a;if(!_0x120479['every'](_0x3857e5=>_0x1a94a3(_0x3857e5,MAX_XML_ROWS))||!_0x5580d9[_0x2903ec(0x123)](_0xab5366=>_0x1a94a3(_0xab5366,MAX_XML_COLUMNS)))throw new Error(_0x2903ec(0x121));_0x3f5ed0+=_0x271fae?(_0x2ae193[_0x2903ec(0x1b7)]-_0x2ae193['top']+0x1)*(_0x2ae193[_0x2903ec(0x14b)]-_0x2ae193[_0x2903ec(0x147)]+0x1):0x1;if(_0x3f5ed0>MAX_ROWS)throw new Error(_0x2903ec(0x18b));}};_0x5a8b84['on'](_0x5af56a(0x1a7),_0x5aeb56),_0x5a8b84['on'](_0x5af56a(0x15a),_0x20c02a=>{const _0x3f7d81=_0x5af56a;if(_0x4b8592)return;if(++_0x40505d>0x2710||(_0x3cc5a4+=_0x20c02a[_0x3f7d81(0x12c)])>MAX_EXPANDED){_0x5aeb56(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}let _0x4064fc;try{_0x4064fc=consumerEntryName(_0x14091c,_0x20c02a);}catch(_0x32aa5c){_0x5aeb56(_0x32aa5c);return;}if(_0x4064fc[_0x3f7d81(0x163)]){_0x5a8b84[_0x3f7d81(0x153)]();return;}const _0x418eb0=_0x4064fc[_0x3f7d81(0x167)];if(_0x36e554&&(_0x418eb0!==_0x4064fc[_0x3f7d81(0x117)]||_0x4d4ca6['has'](_0x418eb0)||_0x418eb0[_0x3f7d81(0x1d6)]('/')||_0x418eb0['includes']('\x5c'))){_0x5aeb56(new Error(_0x3f7d81(0x148)));return;}if(_0x418eb0!==_0x4064fc['original']&&(_0x418eb0==='xl/workbook.xml'||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x3f7d81(0x139)](_0x418eb0))){_0x5aeb56(new Error(_0x3f7d81(0x1e6)));return;}const _0x3f932a=_0x418eb0===_0x3f7d81(0xf9);if(_0x3f932a&&_0x4d4ca6[_0x3f7d81(0x174)](_0x418eb0)){_0x5aeb56(new Error('Duplicate\x20workbook\x20ZIP\x20entry.'));return;}_0x4d4ca6[_0x3f7d81(0x1e8)](_0x418eb0);const _0x5cbede=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x3f7d81(0x139)](_0x418eb0);if(_0x5cbede&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0x3f7d81(0x139)](_0x418eb0)){_0x5aeb56(new Error(_0x3f7d81(0x1be)));return;}_0x5a8b84[_0x3f7d81(0x129)](_0x20c02a,(_0x1e4314,_0x508536)=>{const _0x10a968=_0x3f7d81;if(_0x4b8592){_0x508536?.[_0x10a968(0x10f)]();return;}if(_0x1e4314||!_0x508536){_0x5aeb56(_0x1e4314??new Error('Invalid\x20XLSX\x20entry.'));return;}_0xfa8da7=_0x508536;const _0x4d95de=_0x36e554?[]:undefined,_0x448f96=_0x36e554&&/[.](xml|rels)$/[_0x10a968(0x139)](_0x418eb0)?new StringDecoder(_0x10a968(0x122)):undefined,_0x5a237a=_0x448f96?new SaxesParser({'xmlns':![]}):undefined,_0x5e2955=()=>{const _0x31d905=_0x10a968;if(++_0x281301>0x1e8480)throw Error(_0x31d905(0x186));};_0x5a237a?.['on'](_0x10a968(0x151),()=>{const _0x3e12bf=_0x10a968;throw Error(_0x3e12bf(0x184));}),_0x5a237a?.['on']('opentag',()=>{const _0x969213=_0x10a968;_0x5e2955();if(++_0x204929>0x7a120)throw Error(_0x969213(0x115));}),_0x5a237a?.['on'](_0x10a968(0x1b5),_0x5e2955),_0x5a237a?.['on']('closetag',_0x5e2955),_0x5a237a?.['on'](_0x10a968(0x1a7),_0x3c2676=>{throw _0x3c2676;});const _0x2f751c=_0x5cbede||_0x3f932a?new StringDecoder(_0x10a968(0x122)):undefined,_0x1751a3=_0x5cbede||_0x3f932a?new SaxesParser({'xmlns':![]}):undefined;let _0xe8de87,_0x5dfd08=0x0,_0x2aca21=0x0,_0x40f65a,_0x443d3b,_0x122d5a=![],_0x26d483=![],_0x41cdb8,_0x42b6a6,_0x23919e,_0x304287=![];const _0x9beab7=[],_0x401de5=new Set();let _0x591d8a;const _0x107a98=(_0xa09a8c,_0x33fe51=0x0)=>{const _0x5e0c6e=_0x10a968;_0x46c6c6+=_0x33fe51+Math[_0x5e0c6e(0x12d)](0x0,_0xa09a8c-_0x2aca21),_0x2aca21=Math[_0x5e0c6e(0x12d)](_0x2aca21,_0xa09a8c);if(_0x46c6c6>MAX_ROWS)throw new Error('Worksheet\x20column\x20objects\x20exceed\x20100000.');};_0x1751a3?.['on'](_0x10a968(0x146),_0x5b52c4=>{const _0x33726e=_0x10a968;if(_0x3f932a){if(!_0xe8de87&&_0x5b52c4['name']===_0x33726e(0x1b1))_0xe8de87=new DefinedNameXform();_0xe8de87?.[_0x33726e(0x166)](_0x5b52c4);return;}if(_0x5b52c4['name']==='row'){if(_0x26d483)throw new Error(_0x33726e(0x109));_0x5dfae6(_0x5b52c4[_0x33726e(0x149)]['r'],MAX_XML_ROWS),_0x40f65a=undefined,_0x23919e=undefined,_0x304287=![];}else{if(_0x5b52c4[_0x33726e(0x167)]==='c'){if(_0x26d483)throw new Error(_0x33726e(0x141));_0x26d483=!![],_0x122d5a=Boolean(Number[_0x33726e(0x1e2)](_0x5b52c4[_0x33726e(0x149)]['s']??'',0xa)),_0x591d8a=undefined,_0x41cdb8=_0x5b52c4[_0x33726e(0x149)]['r']||undefined,_0x42b6a6=_0x41cdb8?_0x5dd095(_0x41cdb8):undefined;if(_0x42b6a6)_0x443d3b=_0x42b6a6;else _0x443d3b=_0x40f65a?{'row':_0x40f65a['row'],'col':_0x40f65a[_0x33726e(0x120)]+0x1}:undefined;}else{if(_0x26d483&&['f','v','t'][_0x33726e(0x161)](_0x5b52c4[_0x33726e(0x167)])){_0x591d8a=_0x5b52c4['name'];if(_0x5b52c4[_0x33726e(0x167)]==='f'&&_0x5b52c4[_0x33726e(0x149)]['t'])_0x122d5a=!![];}else{if(_0x26d483&&_0x5b52c4['name']==='r')_0x122d5a=!![];else{if(_0x5b52c4[_0x33726e(0x167)]===_0x33726e(0x1a2)){const _0x1ed9a5=_0x5b52c4[_0x33726e(0x149)][_0x33726e(0x1d8)];if(!_0x1ed9a5)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x58c9ac=_0x1ed9a5[_0x33726e(0x116)](':');if(_0x58c9ac[_0x33726e(0x135)]>0x2)throw new Error(_0x33726e(0x1ce));const _0x19d2f5=_0x5dd095(_0x58c9ac[0x0]),_0x590891=_0x5dd095(_0x58c9ac[0x1]??_0x58c9ac[0x0]);_0x401de5['add'](_0x1ed9a5),_0x107a98(Math[_0x33726e(0x12d)](_0x19d2f5[_0x33726e(0x120)],_0x590891[_0x33726e(0x120)]),0x1);}else{if(_0x5b52c4[_0x33726e(0x167)]===_0x33726e(0x120)){const _0x61051c=_0x5dfae6(_0x5b52c4[_0x33726e(0x149)]['min'],0x4000),_0x4eb929=_0x5dfae6(_0x5b52c4[_0x33726e(0x149)][_0x33726e(0x12d)],0x4000);if(_0x61051c>_0x4eb929)throw new Error('Invalid\x20worksheet\x20column\x20range.');_0x107a98(_0x4eb929,0x1);}else{if(_0x5b52c4['name']===_0x33726e(0x1ac)){const _0x23f54f=_0x5b52c4[_0x33726e(0x149)][_0x33726e(0x1d8)];if(!_0x23f54f)throw new Error(_0x33726e(0x110));const _0x1eaa57=_0x23f54f[_0x33726e(0x116)](':');if(_0x1eaa57[_0x33726e(0x135)]>0x2)throw new Error(_0x33726e(0x110));const _0x221a3b=_0x5dd095(_0x1eaa57[0x0]),_0x4b56b8=_0x5dd095(_0x1eaa57[0x1]??_0x1eaa57[0x0]);_0x107a98(Math[_0x33726e(0x12d)](_0x221a3b[_0x33726e(0x120)],_0x4b56b8[_0x33726e(0x120)]));const _0x5a0dab=(Math[_0x33726e(0x15d)](_0x4b56b8[_0x33726e(0x1c3)]-_0x221a3b[_0x33726e(0x1c3)])+0x1)*(Math[_0x33726e(0x15d)](_0x4b56b8[_0x33726e(0x120)]-_0x221a3b[_0x33726e(0x120)])+0x1);_0x4f1180+=_0x5a0dab+_0x5dfd08++;if(_0x4f1180>MAX_ROWS)throw new Error(_0x33726e(0x187));}}}}}}}}),_0x1751a3?.['on'](_0x10a968(0x1b5),_0x3ea4a1=>{const _0x398015=_0x10a968;if(_0x3f932a){_0xe8de87?.[_0x398015(0x145)](_0x3ea4a1);return;}if(_0x26d483&&_0x591d8a&&_0x3ea4a1)_0x122d5a=!![];}),_0x1751a3?.['on'](_0x10a968(0x1c6),_0x31a6de=>{const _0x43c44c=_0x10a968;if(_0x3f932a){_0xe8de87&&!_0xe8de87[_0x43c44c(0x1d9)]()&&(_0x31e3a2(_0xe8de87[_0x43c44c(0x192)]),_0xe8de87=undefined);return;}if(_0x31a6de[_0x43c44c(0x167)]==='c'){!_0x122d5a&&_0x41cdb8&&!_0x23919e&&(_0x23919e={'before':_0x40f65a,'cells':[]});if(_0x23919e){if(++_0x20b32c>0xf4240)throw new Error('Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.');_0x23919e[_0x43c44c(0x124)]['push']({'reference':_0x41cdb8,'address':_0x42b6a6,'materialized':_0x122d5a});if(!_0x41cdb8&&_0x122d5a)_0x304287=!![];}if(_0x122d5a){if(!_0x23919e||_0x41cdb8){if(!_0x443d3b)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0x443d3b[_0x43c44c(0x120)]>MAX_XML_COLUMNS)throw new Error('Worksheet\x20exceeds\x2016384\x20columns.');_0x107a98(_0x443d3b[_0x43c44c(0x120)]);}_0x40f65a=_0x443d3b;}_0x26d483=![],_0x443d3b=undefined,_0x41cdb8=undefined,_0x42b6a6=undefined,_0x591d8a=undefined;}else{if(_0x31a6de[_0x43c44c(0x167)]==='row'){if(_0x23919e&&_0x304287)_0x9beab7[_0x43c44c(0x1ea)](_0x23919e);_0x23919e=undefined,_0x304287=![];}else{if(_0x31a6de[_0x43c44c(0x167)]===_0x591d8a)_0x591d8a=undefined;}}}),_0x1751a3?.['on'](_0x10a968(0x1a7),_0x2c1a4a=>{const _0x3e7913=_0x10a968;throw new Error(_0x3e7913(0x194)+_0x2c1a4a[_0x3e7913(0xfe)]);}),_0x508536['on'](_0x10a968(0x1a7),_0x5aeb56),_0x508536['on']('data',_0x5605a5=>{const _0x3246c7=_0x10a968;if(_0x4b8592)return;_0x2cebaf+=_0x5605a5[_0x3246c7(0x135)],_0x4d95de?.['push'](_0x5605a5);if(_0x2cebaf>MAX_EXPANDED){_0x5aeb56(new Error(_0x3246c7(0x137)));return;}try{if(_0x5a237a&&_0x448f96)_0x5a237a[_0x3246c7(0x1d1)](_0x448f96[_0x3246c7(0x1d1)](_0x5605a5));if(_0x1751a3&&_0x2f751c)_0x1751a3['write'](_0x2f751c[_0x3246c7(0x1d1)](_0x5605a5));}catch(_0x3d3662){_0x5aeb56(_0x3d3662 instanceof Error?_0x3d3662:new Error('Invalid\x20worksheet\x20XML.'));}}),_0x508536['on'](_0x10a968(0x11d),()=>{const _0x164bdc=_0x10a968;if(_0x4b8592)return;try{if(_0x5a237a&&_0x448f96)_0x5a237a[_0x164bdc(0x1d1)](_0x448f96[_0x164bdc(0x11d)]())[_0x164bdc(0x1e3)]();if(_0x1751a3&&_0x2f751c)_0x1751a3[_0x164bdc(0x1d1)](_0x2f751c[_0x164bdc(0x11d)]())[_0x164bdc(0x1e3)]();for(const _0x37f6a5 of _0x9beab7){let _0x4d7934=_0x37f6a5[_0x164bdc(0x12a)];for(const _0x17deb7 of _0x37f6a5[_0x164bdc(0x124)]){if(!_0x17deb7[_0x164bdc(0x18d)]&&!(_0x17deb7[_0x164bdc(0x18e)]&&_0x401de5['has'](_0x17deb7[_0x164bdc(0x18e)])))continue;const _0x442c2a=_0x17deb7['address']??(_0x4d7934?{'row':_0x4d7934['row'],'col':_0x4d7934[_0x164bdc(0x120)]+0x1}:undefined);if(!_0x442c2a)throw new Error(_0x164bdc(0x1d3));if(_0x442c2a[_0x164bdc(0x120)]>MAX_XML_COLUMNS)throw new Error(_0x164bdc(0x155));_0x107a98(_0x442c2a[_0x164bdc(0x120)]),_0x4d7934=_0x442c2a;}}_0x9beab7['length']=0x0,_0x401de5[_0x164bdc(0x100)]();}catch(_0xcc87bc){_0x5aeb56(_0xcc87bc instanceof Error?_0xcc87bc:new Error(_0x164bdc(0x195)));return;}if(_0x4d95de)_0x36e554[_0x164bdc(0x17d)](_0x418eb0,Buffer[_0x164bdc(0x1cd)](_0x4d95de));_0xfa8da7=undefined,_0x5a8b84['readEntry']();});});}),_0x5a8b84['on'](_0x5af56a(0x11d),()=>{const _0x2f2c17=_0x5af56a;if(_0x4b8592)return;if(_0x5a8b84[_0x2f2c17(0x180)]!==_0x1eda9b){_0xace151(new Error('ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.'));return;}if(!_0x4d4ca6[_0x2f2c17(0x174)](_0x2f2c17(0x1a4))||!_0x4d4ca6[_0x2f2c17(0x174)](_0x2f2c17(0xf9)))_0xace151(new Error(_0x2f2c17(0x12e)));else _0x38b24c();}),_0x5a8b84[_0x5af56a(0x153)]();});});}function valueOf(_0x2f7b78){const _0x4dbfb9=a144_0x17e727,_0x2465cf=_0x2f7b78[_0x4dbfb9(0x1b9)];if(_0x2465cf&&typeof _0x2465cf===_0x4dbfb9(0x18c)&&(_0x4dbfb9(0x1aa)in _0x2465cf||_0x4dbfb9(0x1a1)in _0x2465cf)){if(!(_0x4dbfb9(0x198)in _0x2465cf)||_0x2465cf[_0x4dbfb9(0x198)]===undefined)throw new Error(_0x4dbfb9(0x11b));return _0x2465cf[_0x4dbfb9(0x198)];}return _0x2465cf;}function convert(_0x295e0c,_0x2489c9){const _0x24cb1a=a144_0x17e727;if(_0x295e0c===null||_0x295e0c===undefined||_0x295e0c===''){if(_0x2489c9[_0x24cb1a(0x144)]&&!_0x2489c9[_0x24cb1a(0x14e)])throw new Error('Required\x20value\x20is\x20missing.');return null;}if(typeof _0x295e0c===_0x24cb1a(0x16a)&&Buffer['byteLength'](_0x295e0c,_0x24cb1a(0x122))>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');switch(_0x2489c9[_0x24cb1a(0x1d5)][_0x24cb1a(0xfa)]()){case _0x24cb1a(0x16a):case _0x24cb1a(0x1b5):case _0x24cb1a(0x178):if(typeof _0x295e0c!=='string')throw new Error(_0x24cb1a(0x190));return _0x295e0c;case _0x24cb1a(0x197):case'decimal':case _0x24cb1a(0x11a):if(typeof _0x295e0c!==_0x24cb1a(0x197)||!Number[_0x24cb1a(0x162)](_0x295e0c)||Math[_0x24cb1a(0x15d)](_0x295e0c)>Number[_0x24cb1a(0x175)]||_0x2489c9[_0x24cb1a(0x1d5)][_0x24cb1a(0xfa)]()==='integer'&&!Number[_0x24cb1a(0x13a)](_0x295e0c))throw new Error(_0x24cb1a(0x1db));return _0x295e0c;case _0x24cb1a(0x1e5):if(typeof _0x295e0c!=='boolean')throw new Error('Expected\x20a\x20boolean\x20cell.');return _0x295e0c;case'date':case _0x24cb1a(0x1c5):if(!(_0x295e0c instanceof Date)||!Number[_0x24cb1a(0x162)](_0x295e0c[_0x24cb1a(0x19d)]()))throw new Error(_0x24cb1a(0x152));return _0x295e0c[_0x24cb1a(0x19d)]();default:throw new Error(_0x24cb1a(0x1b4)+_0x2489c9['type']+'.');}}export async function buildExcelManifest(_0x5561e6){const _0x283b83=a144_0x17e727,_0x1dfbae=_0x5561e6[_0x283b83(0x101)]??0x1;if(!Number['isInteger'](_0x1dfbae)||_0x1dfbae<0x1||_0x1dfbae>MAX_ROWS)throw new Error(_0x283b83(0x1e7));if(_0x5561e6['batchSize']!==undefined&&(!Number[_0x283b83(0x13a)](_0x5561e6[_0x283b83(0x160)])||_0x5561e6[_0x283b83(0x160)]<0x1||_0x5561e6['batchSize']>0x3e8))throw new Error(_0x283b83(0x179));if(a144_0x387b75[_0x283b83(0x12f)](_0x5561e6[_0x283b83(0x1a9)])['toLowerCase']()!==_0x283b83(0x182))throw new Error(_0x283b83(0x199));const _0x246670=await stat(_0x5561e6['file']);if(!_0x246670[_0x283b83(0x19f)]()||_0x246670['size']>MAX_FILE)throw new Error(_0x283b83(0x1a0));const _0x2bc154=await readFile(_0x5561e6[_0x283b83(0x1a9)]);if(_0x2bc154['length']>MAX_FILE)throw new Error(_0x283b83(0x16f));const _0x49288a=_0x5561e6[_0x283b83(0x1b0)][_0x283b83(0xf7)](_0x5b67da=>isImageContainer(_0x5b67da[_0x283b83(0x1d5)])&&Object['values'](_0x5561e6['mapping'])[_0x283b83(0x161)](_0x5b67da[_0x283b83(0x1df)]))?new Map():undefined;await checkArchive(_0x2bc154,_0x49288a);const _0x461d64=new a144_0x1949ff['Workbook']();await _0x461d64[_0x283b83(0x156)][_0x283b83(0x136)](_0x2bc154,{'ignoreNodes':[_0x283b83(0x1c8)]});const _0x3d6f1b=_0x5561e6[_0x283b83(0x112)];let _0x14a920;if(_0x3d6f1b===undefined)_0x14a920=_0x461d64['worksheets'][0x0];else{if(typeof _0x3d6f1b==='string'&&_0x461d64[_0x283b83(0xfb)]['some'](_0x5ae004=>_0x5ae004[_0x283b83(0x167)]===_0x3d6f1b))_0x14a920=_0x461d64[_0x283b83(0xfb)][_0x283b83(0x1cf)](_0x50fd81=>_0x50fd81[_0x283b83(0x167)]===_0x3d6f1b);else{if(typeof _0x3d6f1b==='number'||/^\d+$/[_0x283b83(0x139)](_0x3d6f1b)){const _0x21ce87=Number(_0x3d6f1b);if(!Number['isInteger'](_0x21ce87)||_0x21ce87<0x1)throw new Error(_0x283b83(0x1de));_0x14a920=_0x461d64[_0x283b83(0xfb)][_0x21ce87-0x1];}else _0x14a920=_0x461d64[_0x283b83(0xfb)]['find'](_0x382817=>_0x382817['name']===_0x3d6f1b);}}if(!_0x14a920)throw new Error(_0x283b83(0x140));if(_0x14a920[_0x283b83(0x1ba)]>MAX_ROWS||_0x14a920[_0x283b83(0x172)]>MAX_COLUMNS)throw new Error(_0x283b83(0x1c1));if((_0x14a920[_0x283b83(0x192)][_0x283b83(0x1a5)]??[])['length'])throw new Error('Merged\x20cells\x20are\x20not\x20supported.');const _0x58aceb=new Map();_0x14a920[_0x283b83(0x1c4)](_0x1dfbae)[_0x283b83(0x105)]((_0x2e3c51,_0x25a626)=>{const _0x5c3fee=_0x283b83,_0x10e22f=valueOf(_0x2e3c51);if(typeof _0x10e22f!==_0x5c3fee(0x16a)||!_0x10e22f[_0x5c3fee(0x10d)]()||Buffer[_0x5c3fee(0x16b)](_0x10e22f)>MAX_CELL)throw new Error(_0x5c3fee(0x134));if(_0x58aceb[_0x5c3fee(0x174)](_0x10e22f))throw new Error(_0x5c3fee(0x157)+_0x10e22f+'.');_0x58aceb['set'](_0x10e22f,_0x25a626);});const _0x42f045=Object[_0x283b83(0x17c)](_0x5561e6['mapping']);if(!_0x42f045[_0x283b83(0x135)])throw new Error(_0x283b83(0x11e));const _0x494f26=new Map(_0x5561e6[_0x283b83(0x1b0)][_0x283b83(0x1a6)](_0x3cdaa7=>[_0x3cdaa7[_0x283b83(0x1df)],_0x3cdaa7]));if(_0x494f26[_0x283b83(0x1c2)]!==_0x5561e6[_0x283b83(0x1b0)][_0x283b83(0x135)])throw new Error('Duplicate\x20dataset\x20field\x20codes.');if(_0x5561e6[_0x283b83(0x1b0)]['some'](_0x1704ef=>_0x1704ef['type'][_0x283b83(0xfa)]()==='serial_number'))throw new Error(_0x283b83(0x170));const _0x55ff91=new Set();for(const [_0x5a4792,_0x16df23]of _0x42f045){const _0x43fddb=_0x494f26[_0x283b83(0x1a8)](_0x16df23);if(!_0x58aceb[_0x283b83(0x174)](_0x5a4792))throw new Error(_0x283b83(0x1e9)+_0x5a4792+'.');if(!_0x43fddb||RESERVED['has'](_0x16df23)||_0x43fddb[_0x283b83(0x14e)])throw new Error(_0x283b83(0x196)+_0x16df23+'.');if(_0x55ff91[_0x283b83(0x174)](_0x16df23))throw new Error(_0x283b83(0x1ca)+_0x16df23+'.');if(!TYPES['has'](_0x43fddb[_0x283b83(0x1d5)]['toLowerCase']()))throw new Error('Unsupported\x20field\x20type:\x20'+_0x43fddb['type']+'.');_0x55ff91[_0x283b83(0x1e8)](_0x16df23);}for(const _0xadbb of _0x5561e6['fields']){if(_0xadbb['required']&&!_0xadbb[_0x283b83(0x14e)]&&!RESERVED[_0x283b83(0x174)](_0xadbb[_0x283b83(0x1df)])&&!_0x55ff91[_0x283b83(0x174)](_0xadbb['code']))throw new Error(_0x283b83(0x13d)+_0xadbb[_0x283b83(0x1df)]+'.');}const _0x46b8dd={'fileHash':hash(_0x2bc154),'mappingHash':hash(JSON[_0x283b83(0x114)]([..._0x42f045][_0x283b83(0x14f)](([_0x591835],[_0x5d0e36])=>_0x591835['localeCompare'](_0x5d0e36)))),'schemaHash':hash(JSON[_0x283b83(0x114)]([..._0x5561e6[_0x283b83(0x1b0)]][_0x283b83(0x14f)]((_0x4bf2d4,_0x15878b)=>_0x4bf2d4['code'][_0x283b83(0x14d)](_0x15878b[_0x283b83(0x1df)])))),'sheet':_0x14a920[_0x283b83(0x167)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x41ae15=_0x42f045['filter'](([,_0x1873d4])=>isImageContainer(_0x494f26[_0x283b83(0x1a8)](_0x1873d4)['type'])),_0x1ec964=_0x41ae15[_0x283b83(0x1ae)](([,_0x1e4698])=>_0x494f26[_0x283b83(0x1a8)](_0x1e4698)[_0x283b83(0x1d5)][_0x283b83(0xfa)]()===_0x283b83(0x142))[_0x283b83(0x1a6)](([,_0x11c693])=>_0x11c693);if(_0x1ec964['length'])_0x46b8dd[_0x283b83(0x1bd)]=_0x1ec964;const _0xaf83c3=_0x49288a?resolveWorksheetImages(_0x49288a,_0x14a920[_0x283b83(0x167)],new Set(_0x41ae15['map'](([_0x406590])=>_0x58aceb[_0x283b83(0x1a8)](_0x406590)))):[],_0x11621d=new Map();for(const _0x33944e of _0xaf83c3){const _0x12bda2=_0x33944e[_0x283b83(0x1c3)]+':'+_0x33944e['col'],_0x3ec324=_0x11621d['get'](_0x12bda2)??[];_0x3ec324[_0x283b83(0x1ea)](_0x33944e),_0x11621d['set'](_0x12bda2,_0x3ec324);}const _0x2f39fe=new Map();let _0x269ecf=0x0;_0x41ae15[_0x283b83(0x135)]&&(_0x46b8dd[_0x283b83(0x168)]=_0x41ae15[_0x283b83(0x1a6)](([,_0x171b5c])=>_0x171b5c),_0x46b8dd[_0x283b83(0x10c)]=[],_0x46b8dd[_0x283b83(0x138)]=0x1,_0x46b8dd[_0x283b83(0x193)]=[]);const _0x56ce23=Math[_0x283b83(0x12d)](0x0,..._0xaf83c3['map'](_0x419409=>_0x419409[_0x283b83(0x1c3)]));let _0x208a3b=0x0;const _0xe0c6c3=new Set(_0x42f045[_0x283b83(0x1a6)](([_0x25951c])=>_0x58aceb[_0x283b83(0x1a8)](_0x25951c)));for(let _0x4f738f=_0x1dfbae+0x1;_0x4f738f<=Math[_0x283b83(0x12d)](_0x14a920['rowCount'],_0x56ce23);_0x4f738f++){const _0x166b44=_0x14a920['getRow'](_0x4f738f);if(_0x166b44[_0x283b83(0x10e)]||_0xaf83c3[_0x283b83(0xf7)](_0xe2ce24=>_0xe2ce24[_0x283b83(0x1c3)]===_0x4f738f&&_0xe2ce24[_0x283b83(0x1da)]))_0x208a3b++;let _0x542d7c=_0xaf83c3['some'](_0x5b7bfc=>_0x5b7bfc['row']===_0x4f738f);_0x166b44[_0x283b83(0x105)](_0x13d9eb=>{const _0x23510a=_0x283b83;if(_0x13d9eb[_0x23510a(0x1b9)]!==null&&_0x13d9eb[_0x23510a(0x1b9)]!==undefined&&_0x13d9eb[_0x23510a(0x1b9)]!=='')_0x542d7c=!![];});if(!_0x542d7c){_0x46b8dd[_0x283b83(0x119)]['push'](_0x4f738f);continue;}const _0x2e689f=Object[_0x283b83(0x128)](null);_0x166b44[_0x283b83(0x105)]((_0x181a54,_0xfe4856)=>{const _0x569b33=_0x283b83;if(_0xe0c6c3[_0x569b33(0x174)](_0xfe4856))return;try{const _0x2346ac=valueOf(_0x181a54);if(typeof _0x2346ac==='string'&&Buffer[_0x569b33(0x16b)](_0x2346ac,_0x569b33(0x122))>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');}catch(_0x4ff60c){_0x46b8dd[_0x569b33(0x171)][_0x569b33(0x1ea)]({'rowNumber':_0x4f738f,'field':_0x181a54[_0x569b33(0x126)],'message':_0x4ff60c[_0x569b33(0xfe)]});}});for(const [_0x4b25bd,_0x10375c]of _0x42f045){try{const _0x43ad5b=_0x166b44[_0x283b83(0x191)](_0x58aceb[_0x283b83(0x1a8)](_0x4b25bd)),_0x5a02cc=_0x494f26[_0x283b83(0x1a8)](_0x10375c);if(!isImageContainer(_0x5a02cc[_0x283b83(0x1d5)])){_0x2e689f[_0x10375c]=convert(valueOf(_0x43ad5b),_0x5a02cc);continue;}const _0xb2a69a=_0x11621d[_0x283b83(0x1a8)](_0x4f738f+':'+_0x58aceb[_0x283b83(0x1a8)](_0x4b25bd))??[];if(_0xb2a69a['some'](_0x9c6ea4=>_0x9c6ea4['error']))throw Error(_0xb2a69a[_0x283b83(0x1cf)](_0x4de812=>_0x4de812[_0x283b83(0x1a7)])[_0x283b83(0x1a7)]);if(_0x43ad5b['value']!=null&&_0x43ad5b[_0x283b83(0x1b9)]!==''&&!_0xb2a69a[_0x283b83(0xf7)](_0x31fde2=>_0x31fde2[_0x283b83(0x1b3)]))throw Error(_0x283b83(0x108));const _0x26168b=[];for(const _0x2c0c7f of _0xb2a69a)for(const _0x38fa9f of _0x2c0c7f[_0x283b83(0x193)]){const _0x12dd3a=_0x49288a[_0x283b83(0x1a8)](_0x38fa9f);if(!_0x12dd3a)throw Error(_0x283b83(0x177)+_0x38fa9f+'.');const _0x2c86f9=hash(_0x12dd3a),_0x5174ba=_0x2f39fe['get'](_0x2c86f9)??validateImageBytes(_0x12dd3a);if(!_0x2f39fe[_0x283b83(0x174)](_0x5174ba[_0x283b83(0x16d)])){_0x269ecf+=_0x5174ba[_0x283b83(0x1c2)];if(_0x269ecf>0x32*0x400*0x400)throw Error(_0x283b83(0x189));_0x2f39fe[_0x283b83(0x17d)](_0x5174ba['contentHash'],_0x5174ba);}_0x26168b[_0x283b83(0x1ea)](_0x5174ba['contentHash']);}if(!_0x26168b[_0x283b83(0x135)]&&_0x5a02cc[_0x283b83(0x144)])throw Error('Required\x20image\x20value\x20is\x20missing.');if(_0x26168b[_0x283b83(0x135)])_0x46b8dd[_0x283b83(0x10c)]['push']({'rowNumber':_0x4f738f,'field':_0x10375c,'hashes':_0x26168b});_0x2e689f[_0x10375c]=_0x26168b[_0x283b83(0x1a6)](_0x15e634=>{const _0x249147=_0x283b83,_0x20dfa7=_0x2f39fe[_0x249147(0x1a8)](_0x15e634),_0x14bc20=_0x20dfa7['type']===_0x249147(0x185)?_0x249147(0x1d0):_0x20dfa7['type'][_0x249147(0x173)](0x6),_0x485e2a=_0x15e634+'.'+_0x14bc20,_0x194715=_0x249147(0x1bb)+'0'[_0x249147(0x188)](0x40)+'/'+_0x485e2a;return _0x5a02cc[_0x249147(0x1d5)]['toLowerCase']()===_0x249147(0x142)?{'fileName':_0x485e2a,'filePath':_0x194715}:{'key':_0x194715,'name':_0x485e2a,'type':_0x20dfa7['type'],'size':_0x20dfa7['size']};});}catch(_0x23d231){_0x46b8dd[_0x283b83(0x171)][_0x283b83(0x1ea)]({'rowNumber':_0x4f738f,'field':_0x10375c,'message':_0x23d231['message']});}}_0x46b8dd[_0x283b83(0x1d7)][_0x283b83(0x1ea)]({'rowNumber':_0x4f738f,'values':_0x2e689f});}if(_0x46b8dd[_0x283b83(0x193)])_0x46b8dd[_0x283b83(0x193)]=[..._0x2f39fe[_0x283b83(0x15b)]()];if(_0x208a3b)_0x46b8dd['warnings'][_0x283b83(0x1ea)](_0x208a3b+_0x283b83(0x125));return _0x46b8dd;}
1
+ const a144_0x35133b=a144_0xf992;function a144_0xf992(_0x36df65,_0x384482){_0x36df65=_0x36df65-0xcd;const _0x618c8=a144_0x618c();let _0xf9927b=_0x618c8[_0x36df65];return _0xf9927b;}(function(_0x20545a,_0x4953a0){const _0x108fbb=a144_0xf992,_0x30c9ad=_0x20545a();while(!![]){try{const _0x373de9=-parseInt(_0x108fbb(0x186))/0x1*(-parseInt(_0x108fbb(0x127))/0x2)+parseInt(_0x108fbb(0x1a6))/0x3*(parseInt(_0x108fbb(0x104))/0x4)+parseInt(_0x108fbb(0xfb))/0x5+-parseInt(_0x108fbb(0xf9))/0x6+-parseInt(_0x108fbb(0x10e))/0x7+parseInt(_0x108fbb(0x19f))/0x8*(-parseInt(_0x108fbb(0x199))/0x9)+parseInt(_0x108fbb(0xd6))/0xa;if(_0x373de9===_0x4953a0)break;else _0x30c9ad['push'](_0x30c9ad['shift']());}catch(_0x2632dd){_0x30c9ad['push'](_0x30c9ad['shift']());}}}(a144_0x618c,0xea32d));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x839ef1 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x3036fb from'exceljs';import a144_0x153f69 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',a144_0x35133b(0xe4),a144_0x35133b(0x142),'datasetId','creatorId','creatorName',a144_0x35133b(0x134),a144_0x35133b(0x143),'createTime',a144_0x35133b(0x124),'deleted']),TYPES=new Set(['string','text',a144_0x35133b(0xd7),a144_0x35133b(0x14f),a144_0x35133b(0x133),a144_0x35133b(0xe3),'boolean',a144_0x35133b(0x167),a144_0x35133b(0xe7),a144_0x35133b(0x1a3),'upload']),isImageContainer=_0xd3ebf8=>[a144_0x35133b(0x1a3),a144_0x35133b(0x1b7)][a144_0x35133b(0x19d)](_0xd3ebf8[a144_0x35133b(0x14c)]()),hash=_0x8e43b0=>createHash(a144_0x35133b(0x15e))[a144_0x35133b(0x17c)](_0x8e43b0)[a144_0x35133b(0x141)](a144_0x35133b(0x121)),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0x35133b(0x178)),nameCoordinates=require('exceljs/lib/utils/col-cache.js'),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require['resolve']('exceljs')),zipRequire=createRequire(excelRequire[a144_0x35133b(0x149)](a144_0x35133b(0x156))),ZipEntry=zipRequire(a144_0x35133b(0x1bb)),zipReader=zipRequire(a144_0x35133b(0xf1)),zipUtf8=zipRequire('./utf8'),zipPaths=zipRequire(a144_0x35133b(0x129));function centralDirectoryEnd(_0x2e3a64,_0x2a825e){const _0x4326ca=a144_0x35133b,_0x32cb43=()=>new Error(_0x4326ca(0x118)),_0x3c947a=_0x2e3a64['lastIndexOf'](Buffer[_0x4326ca(0x109)]([0x50,0x4b,0x5,0x6]));if(_0x3c947a<0x0||_0x3c947a+0x16>_0x2e3a64['length']||_0x3c947a+0x16+_0x2e3a64[_0x4326ca(0xea)](_0x3c947a+0x14)!==_0x2e3a64['length'])throw _0x32cb43();let _0x21bc68=_0x2e3a64[_0x4326ca(0xea)](_0x3c947a+0xa),_0x22f697=_0x2e3a64[_0x4326ca(0xf0)](_0x3c947a+0xc),_0x2c89df=_0x2e3a64[_0x4326ca(0xf0)](_0x3c947a+0x10),_0x1f2dba=_0x3c947a;const _0x59ce23=_0x3c947a-0x14,_0x25054e=_0x59ce23>=0x0&&_0x2e3a64[_0x4326ca(0xf0)](_0x59ce23)===0x7064b50,_0x1d1d15=[0x4,0x6,0x8,0xa][_0x4326ca(0xeb)](_0x35427c=>_0x2e3a64[_0x4326ca(0xea)](_0x3c947a+_0x35427c)===0xffff)||_0x22f697===0xffffffff||_0x2c89df===0xffffffff;if(_0x25054e!==_0x1d1d15)throw _0x32cb43();if(_0x25054e){if(_0x2e3a64[_0x4326ca(0xd2)](Buffer[_0x4326ca(0x109)]([0x50,0x4b,0x6,0x7]))!==_0x59ce23)throw _0x32cb43();const _0x2890fc=_0x188131=>{const _0x53cdb6=Number(_0x2e3a64['readBigUInt64LE'](_0x188131));if(!Number['isSafeInteger'](_0x53cdb6))throw _0x32cb43();return _0x53cdb6;};_0x1f2dba=_0x2890fc(_0x59ce23+0x8);if(_0x2e3a64['readUInt32LE'](_0x59ce23+0x4)!==0x0||_0x2e3a64[_0x4326ca(0xf0)](_0x59ce23+0x10)!==0x1||_0x1f2dba>_0x59ce23-0x38||_0x2e3a64[_0x4326ca(0xf0)](_0x1f2dba)!==0x6064b50||_0x2890fc(_0x1f2dba+0x4)!==0x2c||_0x1f2dba+0x38!==_0x59ce23||_0x2e3a64[_0x4326ca(0xf0)](_0x1f2dba+0x10)!==0x0||_0x2e3a64[_0x4326ca(0xf0)](_0x1f2dba+0x14)!==0x0)throw _0x32cb43();_0x21bc68=_0x2890fc(_0x1f2dba+0x20),_0x22f697=_0x2890fc(_0x1f2dba+0x28),_0x2c89df=_0x2890fc(_0x1f2dba+0x30);if(_0x2890fc(_0x1f2dba+0x18)!==_0x21bc68)throw _0x32cb43();}else{if(_0x2e3a64[_0x4326ca(0xea)](_0x3c947a+0x4)!==0x0||_0x2e3a64['readUInt16LE'](_0x3c947a+0x6)!==0x0||_0x2e3a64[_0x4326ca(0xea)](_0x3c947a+0x8)!==_0x21bc68)throw _0x32cb43();}const _0x1faf7b=_0x2a825e[_0x4326ca(0x1ae)];if(_0x2c89df!==_0x1faf7b||_0x21bc68!==_0x2a825e['entryCount']||_0x2c89df+_0x22f697!==_0x1f2dba)throw _0x32cb43();return _0x1f2dba;}function consumerEntryName(_0x20b6e8,_0x28a1ca){const _0x43c3d3=a144_0x35133b;if(_0x28a1ca[_0x43c3d3(0x182)]['filter'](_0x774c4b=>_0x774c4b['id']===0x1)['length']>0x1)throw new Error(_0x43c3d3(0x1b4));const _0x5f1100=_0x28a1ca,_0x198355=_0x28a1ca['relativeOffsetOfLocalHeader'];if(!Buffer['isBuffer'](_0x5f1100[_0x43c3d3(0x115)])||!Buffer[_0x43c3d3(0xdc)](_0x5f1100[_0x43c3d3(0x157)])||!Buffer[_0x43c3d3(0xdc)](_0x5f1100[_0x43c3d3(0x13d)])||!Number['isSafeInteger'](_0x198355)||_0x198355<0x0||_0x198355>_0x20b6e8['length']-0x1e||_0x20b6e8['readUInt32LE'](_0x198355)!==0x4034b50)throw new Error('Invalid\x20ZIP\x20local\x20file\x20header.');const _0x5493a8=_0x198355+0x1e+_0x20b6e8[_0x43c3d3(0xea)](_0x198355+0x1a),_0x17b498=_0x5493a8+_0x20b6e8[_0x43c3d3(0xea)](_0x198355+0x1c)+_0x28a1ca[_0x43c3d3(0x13a)];if(!Number['isSafeInteger'](_0x17b498)||_0x17b498>_0x20b6e8['length'])throw new Error('Invalid\x20ZIP\x20local\x20file\x20header.');if(_0x5493a8>_0x20b6e8['length']||!_0x20b6e8[_0x43c3d3(0x18c)](_0x198355+0x1e,_0x5493a8)[_0x43c3d3(0x14d)](_0x5f1100['fileNameRaw']))throw new Error(_0x43c3d3(0x1ba));const _0x42c72a=new ZipEntry({},{'decodeFileName':zipUtf8[_0x43c3d3(0x105)]});_0x42c72a['bitFlag']=_0x28a1ca[_0x43c3d3(0xe0)],_0x42c72a[_0x43c3d3(0x13e)]=_0x5f1100['fileNameRaw'],_0x42c72a['fileComment']=_0x5f1100['fileCommentRaw'],_0x42c72a['extraFieldsLength']=_0x5f1100[_0x43c3d3(0x157)][_0x43c3d3(0x18d)],_0x42c72a[_0x43c3d3(0x190)](zipReader(_0x5f1100[_0x43c3d3(0x157)])),_0x42c72a[_0x43c3d3(0xdd)](),_0x42c72a[_0x43c3d3(0x1b9)]=_0x28a1ca[_0x43c3d3(0x1b9)],_0x42c72a[_0x43c3d3(0x114)]=_0x28a1ca[_0x43c3d3(0x114)],_0x42c72a[_0x43c3d3(0x14e)]();const _0x4e87dd=_0x42c72a[_0x43c3d3(0xec)]||Boolean((_0x42c72a[_0x43c3d3(0xff)]??0x0)&0x4000),_0x5bf616=zipPaths['resolve'](_0x42c72a[_0x43c3d3(0x17b)]),_0x457d0b=_0x5bf616[_0x43c3d3(0xcd)]('/')?_0x5bf616[_0x43c3d3(0x12c)](0x1):_0x5bf616;return{'name':_0x457d0b,'original':_0x42c72a['fileNameStr'],'directory':_0x4e87dd};}export function normalizeImportFields(_0x2f1ce0){const _0x5c675a=a144_0x35133b;if(!_0x2f1ce0||(_0x2f1ce0[_0x5c675a(0x132)]??_0x2f1ce0[_0x5c675a(0xde)]?.[_0x5c675a(0x197)])!=='METADATA')throw new Error('Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.');const _0x2e45c2=Array[_0x5c675a(0x1ad)](_0x2f1ce0['fields']),_0x291410=_0x2e45c2?_0x2f1ce0[_0x5c675a(0x176)]:_0x2f1ce0[_0x5c675a(0x1b2)];if(!Array[_0x5c675a(0x1ad)](_0x291410)||_0x291410[_0x5c675a(0x18d)]===0x0)throw new Error(_0x5c675a(0x165));const _0xf391d0=[],_0x16d337=new Set();for(const _0xbef68f of _0x291410){if(_0xbef68f[_0x5c675a(0x18a)]===!![])continue;let _0xe9c47a=_0xbef68f[_0x5c675a(0x144)]??{};if(!_0x2e45c2&&typeof _0xe9c47a===_0x5c675a(0x1af)){try{_0xe9c47a=JSON[_0x5c675a(0x148)](_0xe9c47a);}catch{throw new Error(_0x5c675a(0x12a));}if(!_0xe9c47a||typeof _0xe9c47a!==_0x5c675a(0x172)||Array['isArray'](_0xe9c47a))throw new Error(_0x5c675a(0x12a));}const _0x80a94=_0x2e45c2?_0xbef68f[_0x5c675a(0x113)]:_0xbef68f['code'],_0x519cb6=_0x2e45c2?_0xbef68f['doType']:_0xbef68f[_0x5c675a(0x1a2)]??_0xbef68f['dataType'];if(typeof _0x80a94!=='string'||!_0x80a94||typeof _0x519cb6!==_0x5c675a(0x1af)||_0x16d337['has'](_0x80a94))throw new Error(_0x5c675a(0x179));if(_0x519cb6['toLowerCase']()==='serial_number')throw new Error(_0x5c675a(0x11d));_0x16d337[_0x5c675a(0xef)](_0x80a94);const _0x3ef214=_0x2e45c2?_0xbef68f:_0xe9c47a,_0x16dc5b={'code':_0x80a94,'type':_0x519cb6,'required':_0x3ef214['required']===!![]};if(RESERVED[_0x5c675a(0x180)](_0x80a94)||_0x3ef214['generated']===!![]||_0x3ef214[_0x5c675a(0xce)]===!![])_0x16dc5b[_0x5c675a(0x152)]=!![];_0xf391d0[_0x5c675a(0xfa)](_0x16dc5b);}return _0xf391d0;}function a144_0x618c(){const _0x498fea=['row','./utils','Invalid\x20dataset\x20field\x20extension\x20metadata.','values','slice','entries','map','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','write','Unknown\x20Excel\x20header:\x20','source','decimal','modifierId','Image\x20XML\x20node\x20budget\x20exceeded.','Invalid\x20worksheet\x20column\x20range.','mapping','clear','serial_number','compressedSize','create','hidden','fileCommentRaw','fileName','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','max','digest','appCode','modifierName','extend','parseText','emptyRows','media','parse','resolve','definedName','error','toLowerCase','equals','processAttributes','number','openReadStream','merges','generated','imageFields','Worksheet\x20exceeds\x20','stringify','jszip','extraFieldRaw','uncompressedSize','batchSize','sort','localeCompare','Only\x20.xlsx\x20files\x20are\x20supported.','Invalid\x20worksheet\x20nested\x20cell.','sha256','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','Expected\x20an\x20Excel\x20date\x20cell.','col','getTime','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','Merged\x20cells\x20are\x20not\x20supported.','Dataset\x20field\x20metadata\x20is\x20missing.','repeat','date','Required\x20image\x20value\x20is\x20missing.','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','_xlnm.Print_Titles','entry','jpg','Worksheet\x20coordinate\x20exceeds\x20','abs','Invalid\x20worksheet\x20coordinate.','sheet','message','object','set','hyperlink','Cell\x20exceeds\x2064\x20KB.','fields','Duplicate\x20workbook\x20ZIP\x20entry.','exceljs/lib/xlsx/xform/book/defined-name-xform.js','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','size','fileNameStr','update','isFinite','\x20columns.','decodeEx','has','fromBuffer','extraFields','left','top','every','366412EhKWdX','Image\x20XML\x20event\x20budget\x20exceeded.','columnCount','address','deleted','XML\x20DTD/entities\x20are\x20not\x20supported.','subarray','length','formula','reference','readExtraFields','MAX_SAFE_INTEGER','split','closetag','code','Worksheet\x20exceeds\x2016384\x20columns.','materialized','sourceType','rows','18099nxuXTV','pop','trim','close','includes','Expected\x20a\x20text\x20cell.','1800aIZAvc','image/jpeg','ranges','type','image','parserVersion','concat','84993pOyAEu','eachCell','cells','warnings','end','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','headerRow','isArray','readEntryCursor','string','Unsupported\x20field\x20type:\x20','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','properties','getRow','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','xlsx','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','upload','getCell','versionMadeBy','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','./zipEntry','startsWith','autoIncrement','Duplicate\x20mapping\x20target:\x20','ref','directory','lastIndexOf','Invalid\x20XLSX\x20archive.','Invalid\x20worksheet\x20merge\x20reference.','bottom','19336160SkYmUg','textarea','isFile','rowCount','Requested\x20worksheet\x20does\x20not\x20exist.','isInteger','isBuffer','handleUTF8','dataset','readEntry','generalPurposeBitFlag','get','load','integer','tenantCode','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','filter','datetime','imageCells','model','readUInt16LE','some','dir','nativeCell','Invalid\x20worksheet\x20XML.','add','readUInt32LE','./reader/readerFor','original','before','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','boolean','_xlnm.Print_Area','Invalid\x20worksheet\x20nested\x20row.','uploadFields','3568164fDmIaZ','push','3182560VnzjFa','find','worksheets','doctype','unixPermissions','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','file','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','parseInt','68BPxKxU','utf8decode','result','test','.xlsx','from','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','dataValidations','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','errors','12446931eGlJbJ','byteLength','Invalid\x20worksheet\x20hyperlink\x20reference.','opentag','right','name','externalFileAttributes','fileNameRaw','contentHash','required','Invalid\x20ZIP\x20central\x20directory\x20layout.','attributes','xl/workbook.xml','Invalid\x20XLSX\x20entry.','charCodeAt','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','utf8','data','File\x20is\x20not\x20an\x20XLSX\x20workbook.','hex','dataset-import/','value','updateTime','text','Worksheet\x20column\x20objects\x20exceed\x20100000.','4ELNgon'];a144_0x618c=function(){return _0x498fea;};return a144_0x618c();}async function checkArchive(_0x36dd2e,_0x5e7fad){await new Promise((_0x38821d,_0x2896ee)=>{const _0x43051f=a144_0xf992;a144_0x153f69[_0x43051f(0x181)](_0x36dd2e,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x611e8b,_0x1de75a)=>{const _0x57b227=_0x43051f;if(_0x611e8b||!_0x1de75a){_0x2896ee(_0x611e8b??new Error(_0x57b227(0xd3)));return;}let _0x2a4021;try{_0x2a4021=centralDirectoryEnd(_0x36dd2e,_0x1de75a);}catch(_0x3bcfc7){_0x1de75a[_0x57b227(0x19c)](),_0x2896ee(_0x3bcfc7);return;}let _0x220283=0x0,_0x4aed59=0x0,_0x43594e=0x0,_0x105b49=0x0,_0x2c481a=0x0,_0x1c3ed6=0x0,_0xec8f1f=0x0,_0x1640c6=0x0,_0x1aa24d=0x0,_0x5c9816=![],_0x3d8dd3;const _0x4e1891=new Set(),_0xb1e670=_0x50fd40=>{const _0x4f3889=_0x57b227;if(_0x5c9816)return;_0x5c9816=!![],_0x3d8dd3?.['destroy'](),_0x1de75a[_0x4f3889(0x19c)](),_0x2896ee(_0x50fd40);},_0x260a29=(_0x5a1541,_0x108504)=>{const _0x2d4533=_0x57b227;if(!_0x5a1541||!/^\d+$/[_0x2d4533(0x107)](_0x5a1541))throw new Error(_0x2d4533(0x16f));const _0x24942c=Number(_0x5a1541);if(!Number['isSafeInteger'](_0x24942c)||_0x24942c<0x1||_0x24942c>_0x108504)throw new Error(_0x2d4533(0x16d)+_0x108504+'.');return _0x24942c;},_0x19c5f9=(_0x170543,_0x4b83b6=MAX_XML_COLUMNS)=>{const _0x346599=_0x57b227,_0x1dd5c3=/^\$?([A-Z]{1,3})\$?(\d+)$/['exec'](_0x170543);if(!_0x1dd5c3)throw new Error(_0x346599(0x1b1));let _0x1b619e=0x0;for(const _0x3fd47c of _0x1dd5c3[0x1])_0x1b619e=_0x1b619e*0x1a+_0x3fd47c[_0x346599(0x11c)](0x0)-0x40;if(_0x1b619e>_0x4b83b6)throw new Error(_0x346599(0x154)+_0x4b83b6+_0x346599(0x17e));return{'row':_0x260a29(_0x1dd5c3[0x2],MAX_XML_ROWS),'col':_0x1b619e};},_0x478dbd=_0x31c78b=>{const _0xac4e29=_0x57b227;if(_0x31c78b['name']===_0xac4e29(0xf6)||_0x31c78b[_0xac4e29(0x113)]===_0xac4e29(0x16a))return;for(const _0x21ba07 of _0x31c78b[_0xac4e29(0x1a1)]){if(!ABSOLUTE_NAME_RANGE['test'](_0x21ba07[_0xac4e29(0x192)]('!')[_0xac4e29(0x19a)]()||''))continue;const _0x1a417b=nameCoordinates[_0xac4e29(0x17f)](_0x21ba07),_0xffd8fc=_0xac4e29(0x184)in _0x1a417b,_0x238830=_0xffd8fc?[_0x1a417b[_0xac4e29(0x184)],_0x1a417b[_0xac4e29(0xd5)]]:[_0x1a417b[_0xac4e29(0x128)]],_0x571830=_0xffd8fc?[_0x1a417b[_0xac4e29(0x183)],_0x1a417b[_0xac4e29(0x112)]]:[_0x1a417b[_0xac4e29(0x161)]],_0x142874=(_0x58ee6a,_0x1982eb)=>Number['isSafeInteger'](_0x58ee6a)&&_0x58ee6a>=0x1&&_0x58ee6a<=_0x1982eb;if(!_0x238830[_0xac4e29(0x185)](_0x3c93b6=>_0x142874(_0x3c93b6,MAX_XML_ROWS))||!_0x571830['every'](_0x307bde=>_0x142874(_0x307bde,MAX_XML_COLUMNS)))throw new Error('Invalid\x20defined\x20name\x20coordinate.');_0xec8f1f+=_0xffd8fc?(_0x1a417b[_0xac4e29(0xd5)]-_0x1a417b[_0xac4e29(0x184)]+0x1)*(_0x1a417b[_0xac4e29(0x112)]-_0x1a417b[_0xac4e29(0x183)]+0x1):0x1;if(_0xec8f1f>MAX_ROWS)throw new Error('Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.');}};_0x1de75a['on']('error',_0xb1e670),_0x1de75a['on'](_0x57b227(0x16b),_0xaac1c7=>{const _0xbd4e89=_0x57b227;if(_0x5c9816)return;if(++_0x43594e>0x2710||(_0x220283+=_0xaac1c7[_0xbd4e89(0x158)])>MAX_EXPANDED){_0xb1e670(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}let _0x424c92;try{_0x424c92=consumerEntryName(_0x36dd2e,_0xaac1c7);}catch(_0x399c44){_0xb1e670(_0x399c44);return;}if(_0x424c92[_0xbd4e89(0xd1)]){_0x1de75a[_0xbd4e89(0xdf)]();return;}const _0x51d42c=_0x424c92[_0xbd4e89(0x113)];if(_0x5e7fad&&(_0x51d42c!==_0x424c92[_0xbd4e89(0xf2)]||_0x4e1891[_0xbd4e89(0x180)](_0x51d42c)||_0x51d42c[_0xbd4e89(0xcd)]('/')||_0x51d42c[_0xbd4e89(0x19d)]('\x5c'))){_0xb1e670(new Error(_0xbd4e89(0x10c)));return;}if(_0x51d42c!==_0x424c92[_0xbd4e89(0xf2)]&&(_0x51d42c===_0xbd4e89(0x11a)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0xbd4e89(0x107)](_0x51d42c))){_0xb1e670(new Error(_0xbd4e89(0x169)));return;}const _0x203435=_0x51d42c===_0xbd4e89(0x11a);if(_0x203435&&_0x4e1891[_0xbd4e89(0x180)](_0x51d42c)){_0xb1e670(new Error(_0xbd4e89(0x177)));return;}_0x4e1891[_0xbd4e89(0xef)](_0x51d42c);const _0x1afead=/xl\/worksheets\/sheet(\d+)[.]xml/[_0xbd4e89(0x107)](_0x51d42c);if(_0x1afead&&!/^xl\/worksheets\/sheet\d+[.]xml$/['test'](_0x51d42c)){_0xb1e670(new Error('Non-canonical\x20worksheet\x20ZIP\x20entry.'));return;}_0x1de75a[_0xbd4e89(0x150)](_0xaac1c7,(_0x387e1d,_0x23db22)=>{const _0x28707f=_0xbd4e89;if(_0x5c9816){_0x23db22?.['destroy']();return;}if(_0x387e1d||!_0x23db22){_0xb1e670(_0x387e1d??new Error(_0x28707f(0x11b)));return;}_0x3d8dd3=_0x23db22;const _0x122920=_0x5e7fad?[]:undefined,_0x467ad2=_0x5e7fad&&/[.](xml|rels)$/[_0x28707f(0x107)](_0x51d42c)?new StringDecoder(_0x28707f(0x11e)):undefined,_0x3d3513=_0x467ad2?new SaxesParser({'xmlns':![]}):undefined,_0x52f3cd=()=>{const _0x178216=_0x28707f;if(++_0x1aa24d>0x1e8480)throw Error(_0x178216(0x187));};_0x3d3513?.['on'](_0x28707f(0xfe),()=>{const _0x16706e=_0x28707f;throw Error(_0x16706e(0x18b));}),_0x3d3513?.['on'](_0x28707f(0x111),()=>{const _0x4c2016=_0x28707f;_0x52f3cd();if(++_0x1640c6>0x7a120)throw Error(_0x4c2016(0x135));}),_0x3d3513?.['on'](_0x28707f(0x125),_0x52f3cd),_0x3d3513?.['on'](_0x28707f(0x193),_0x52f3cd),_0x3d3513?.['on'](_0x28707f(0x14b),_0x3ef2f0=>{throw _0x3ef2f0;});const _0x431c9d=_0x1afead||_0x203435?new StringDecoder(_0x28707f(0x11e)):undefined,_0x4d7e1d=_0x1afead||_0x203435?new SaxesParser({'xmlns':![]}):undefined;let _0x419032,_0x5cdbfa=0x0,_0x552849=0x0,_0x277aa1,_0x4112bf,_0x2bc553=![],_0x32aa79=![],_0x5f5901,_0x4bcb11,_0x56ed85,_0x169361=![];const _0x5595e3=[],_0x18a16d=new Set();let _0xccb307;const _0x1e978a=(_0x26de08,_0x2a2cab=0x0)=>{const _0x12e3b5=_0x28707f;_0x2c481a+=_0x2a2cab+Math[_0x12e3b5(0x140)](0x0,_0x26de08-_0x552849),_0x552849=Math[_0x12e3b5(0x140)](_0x552849,_0x26de08);if(_0x2c481a>MAX_ROWS)throw new Error(_0x12e3b5(0x126));};_0x4d7e1d?.['on']('opentag',_0x249418=>{const _0xd9ebd1=_0x28707f;if(_0x203435){if(!_0x419032&&_0x249418[_0xd9ebd1(0x113)]===_0xd9ebd1(0x14a))_0x419032=new DefinedNameXform();_0x419032?.['parseOpen'](_0x249418);return;}if(_0x249418[_0xd9ebd1(0x113)]===_0xd9ebd1(0x128)){if(_0x32aa79)throw new Error(_0xd9ebd1(0xf7));_0x260a29(_0x249418[_0xd9ebd1(0x119)]['r'],MAX_XML_ROWS),_0x277aa1=undefined,_0x56ed85=undefined,_0x169361=![];}else{if(_0x249418['name']==='c'){if(_0x32aa79)throw new Error(_0xd9ebd1(0x15d));_0x32aa79=!![],_0x2bc553=Boolean(Number[_0xd9ebd1(0x103)](_0x249418['attributes']['s']??'',0xa)),_0xccb307=undefined,_0x5f5901=_0x249418[_0xd9ebd1(0x119)]['r']||undefined,_0x4bcb11=_0x5f5901?_0x19c5f9(_0x5f5901):undefined;if(_0x4bcb11)_0x4112bf=_0x4bcb11;else _0x4112bf=_0x277aa1?{'row':_0x277aa1[_0xd9ebd1(0x128)],'col':_0x277aa1[_0xd9ebd1(0x161)]+0x1}:undefined;}else{if(_0x32aa79&&['f','v','t'][_0xd9ebd1(0x19d)](_0x249418[_0xd9ebd1(0x113)])){_0xccb307=_0x249418['name'];if(_0x249418[_0xd9ebd1(0x113)]==='f'&&_0x249418[_0xd9ebd1(0x119)]['t'])_0x2bc553=!![];}else{if(_0x32aa79&&_0x249418[_0xd9ebd1(0x113)]==='r')_0x2bc553=!![];else{if(_0x249418[_0xd9ebd1(0x113)]===_0xd9ebd1(0x174)){const _0x1a7676=_0x249418[_0xd9ebd1(0x119)][_0xd9ebd1(0xd0)];if(!_0x1a7676)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x36d64f=_0x1a7676[_0xd9ebd1(0x192)](':');if(_0x36d64f[_0xd9ebd1(0x18d)]>0x2)throw new Error(_0xd9ebd1(0x110));const _0xfe5621=_0x19c5f9(_0x36d64f[0x0]),_0x130fff=_0x19c5f9(_0x36d64f[0x1]??_0x36d64f[0x0]);_0x18a16d[_0xd9ebd1(0xef)](_0x1a7676),_0x1e978a(Math[_0xd9ebd1(0x140)](_0xfe5621[_0xd9ebd1(0x161)],_0x130fff['col']),0x1);}else{if(_0x249418[_0xd9ebd1(0x113)]===_0xd9ebd1(0x161)){const _0x45cb75=_0x260a29(_0x249418[_0xd9ebd1(0x119)]['min'],0x4000),_0x3357a7=_0x260a29(_0x249418[_0xd9ebd1(0x119)][_0xd9ebd1(0x140)],0x4000);if(_0x45cb75>_0x3357a7)throw new Error(_0xd9ebd1(0x136));_0x1e978a(_0x3357a7,0x1);}else{if(_0x249418[_0xd9ebd1(0x113)]==='mergeCell'){const _0x48f544=_0x249418[_0xd9ebd1(0x119)][_0xd9ebd1(0xd0)];if(!_0x48f544)throw new Error(_0xd9ebd1(0xd4));const _0x201267=_0x48f544['split'](':');if(_0x201267['length']>0x2)throw new Error(_0xd9ebd1(0xd4));const _0x4ad32a=_0x19c5f9(_0x201267[0x0]),_0x325b3c=_0x19c5f9(_0x201267[0x1]??_0x201267[0x0]);_0x1e978a(Math['max'](_0x4ad32a['col'],_0x325b3c['col']));const _0x5dad10=(Math['abs'](_0x325b3c[_0xd9ebd1(0x128)]-_0x4ad32a[_0xd9ebd1(0x128)])+0x1)*(Math[_0xd9ebd1(0x16e)](_0x325b3c[_0xd9ebd1(0x161)]-_0x4ad32a[_0xd9ebd1(0x161)])+0x1);_0x105b49+=_0x5dad10+_0x5cdbfa++;if(_0x105b49>MAX_ROWS)throw new Error('Worksheet\x20merge\x20work\x20exceeds\x20100000.');}}}}}}}}),_0x4d7e1d?.['on'](_0x28707f(0x125),_0xd90d03=>{const _0x4e3d86=_0x28707f;if(_0x203435){_0x419032?.[_0x4e3d86(0x145)](_0xd90d03);return;}if(_0x32aa79&&_0xccb307&&_0xd90d03)_0x2bc553=!![];}),_0x4d7e1d?.['on'](_0x28707f(0x193),_0x39ab79=>{const _0x28d373=_0x28707f;if(_0x203435){_0x419032&&!_0x419032['parseClose']()&&(_0x478dbd(_0x419032[_0x28d373(0xe9)]),_0x419032=undefined);return;}if(_0x39ab79['name']==='c'){!_0x2bc553&&_0x5f5901&&!_0x56ed85&&(_0x56ed85={'before':_0x277aa1,'cells':[]});if(_0x56ed85){if(++_0x1c3ed6>0xf4240)throw new Error(_0x28d373(0x1b6));_0x56ed85[_0x28d373(0x1a8)][_0x28d373(0xfa)]({'reference':_0x5f5901,'address':_0x4bcb11,'materialized':_0x2bc553});if(!_0x5f5901&&_0x2bc553)_0x169361=!![];}if(_0x2bc553){if(!_0x56ed85||_0x5f5901){if(!_0x4112bf)throw new Error(_0x28d373(0x13f));if(_0x4112bf[_0x28d373(0x161)]>MAX_XML_COLUMNS)throw new Error(_0x28d373(0x195));_0x1e978a(_0x4112bf[_0x28d373(0x161)]);}_0x277aa1=_0x4112bf;}_0x32aa79=![],_0x4112bf=undefined,_0x5f5901=undefined,_0x4bcb11=undefined,_0xccb307=undefined;}else{if(_0x39ab79[_0x28d373(0x113)]===_0x28d373(0x128)){if(_0x56ed85&&_0x169361)_0x5595e3[_0x28d373(0xfa)](_0x56ed85);_0x56ed85=undefined,_0x169361=![];}else{if(_0x39ab79['name']===_0xccb307)_0xccb307=undefined;}}}),_0x4d7e1d?.['on']('error',_0x233ae2=>{const _0x537048=_0x28707f;throw new Error('Invalid\x20worksheet\x20XML:\x20'+_0x233ae2[_0x537048(0x171)]);}),_0x23db22['on'](_0x28707f(0x14b),_0xb1e670),_0x23db22['on'](_0x28707f(0x11f),_0x1d0ed3=>{const _0x29513d=_0x28707f;if(_0x5c9816)return;_0x4aed59+=_0x1d0ed3[_0x29513d(0x18d)],_0x122920?.[_0x29513d(0xfa)](_0x1d0ed3);if(_0x4aed59>MAX_EXPANDED){_0xb1e670(new Error(_0x29513d(0x15f)));return;}try{if(_0x3d3513&&_0x467ad2)_0x3d3513[_0x29513d(0x130)](_0x467ad2[_0x29513d(0x130)](_0x1d0ed3));if(_0x4d7e1d&&_0x431c9d)_0x4d7e1d[_0x29513d(0x130)](_0x431c9d['write'](_0x1d0ed3));}catch(_0x347737){_0xb1e670(_0x347737 instanceof Error?_0x347737:new Error(_0x29513d(0xee)));}}),_0x23db22['on'](_0x28707f(0x1aa),()=>{const _0x3b817e=_0x28707f;if(_0x5c9816)return;try{if(_0x3d3513&&_0x467ad2)_0x3d3513['write'](_0x467ad2['end']())[_0x3b817e(0x19c)]();if(_0x4d7e1d&&_0x431c9d)_0x4d7e1d[_0x3b817e(0x130)](_0x431c9d[_0x3b817e(0x1aa)]())[_0x3b817e(0x19c)]();for(const _0x859232 of _0x5595e3){let _0x364def=_0x859232[_0x3b817e(0xf3)];for(const _0x2f5d1c of _0x859232['cells']){if(!_0x2f5d1c[_0x3b817e(0x196)]&&!(_0x2f5d1c[_0x3b817e(0x18f)]&&_0x18a16d[_0x3b817e(0x180)](_0x2f5d1c[_0x3b817e(0x18f)])))continue;const _0x440e9a=_0x2f5d1c[_0x3b817e(0x189)]??(_0x364def?{'row':_0x364def['row'],'col':_0x364def[_0x3b817e(0x161)]+0x1}:undefined);if(!_0x440e9a)throw new Error(_0x3b817e(0x13f));if(_0x440e9a[_0x3b817e(0x161)]>MAX_XML_COLUMNS)throw new Error(_0x3b817e(0x195));_0x1e978a(_0x440e9a[_0x3b817e(0x161)]),_0x364def=_0x440e9a;}}_0x5595e3[_0x3b817e(0x18d)]=0x0,_0x18a16d[_0x3b817e(0x138)]();}catch(_0x2964b0){_0xb1e670(_0x2964b0 instanceof Error?_0x2964b0:new Error('Invalid\x20worksheet\x20XML.'));return;}if(_0x122920)_0x5e7fad['set'](_0x51d42c,Buffer[_0x3b817e(0x1a5)](_0x122920));_0x3d8dd3=undefined,_0x1de75a[_0x3b817e(0xdf)]();});});}),_0x1de75a['on'](_0x57b227(0x1aa),()=>{const _0x4abd66=_0x57b227;if(_0x5c9816)return;if(_0x1de75a['readEntryCursor']!==_0x2a4021){_0x2896ee(new Error('ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.'));return;}if(!_0x4e1891[_0x4abd66(0x180)]('[Content_Types].xml')||!_0x4e1891[_0x4abd66(0x180)](_0x4abd66(0x11a)))_0x2896ee(new Error(_0x4abd66(0x120)));else _0x38821d();}),_0x1de75a['readEntry']();});});}function valueOf(_0x184cac){const _0x51b741=a144_0x35133b,_0x1ae028=_0x184cac['value'];if(_0x1ae028&&typeof _0x1ae028===_0x51b741(0x172)&&(_0x51b741(0x18e)in _0x1ae028||'sharedFormula'in _0x1ae028)){if(!(_0x51b741(0x106)in _0x1ae028)||_0x1ae028[_0x51b741(0x106)]===undefined)throw new Error('Formula\x20has\x20no\x20cached\x20result.');return _0x1ae028[_0x51b741(0x106)];}return _0x1ae028;}function convert(_0x2cd3fd,_0xec5820){const _0x380bf5=a144_0x35133b;if(_0x2cd3fd===null||_0x2cd3fd===undefined||_0x2cd3fd===''){if(_0xec5820[_0x380bf5(0x117)]&&!_0xec5820[_0x380bf5(0x152)])throw new Error('Required\x20value\x20is\x20missing.');return null;}if(typeof _0x2cd3fd===_0x380bf5(0x1af)&&Buffer[_0x380bf5(0x10f)](_0x2cd3fd,_0x380bf5(0x11e))>MAX_CELL)throw new Error(_0x380bf5(0x175));switch(_0xec5820['type'][_0x380bf5(0x14c)]()){case'string':case _0x380bf5(0x125):case _0x380bf5(0xd7):if(typeof _0x2cd3fd!==_0x380bf5(0x1af))throw new Error(_0x380bf5(0x19e));return _0x2cd3fd;case _0x380bf5(0x14f):case _0x380bf5(0x133):case _0x380bf5(0xe3):if(typeof _0x2cd3fd!==_0x380bf5(0x14f)||!Number[_0x380bf5(0x17d)](_0x2cd3fd)||Math[_0x380bf5(0x16e)](_0x2cd3fd)>Number[_0x380bf5(0x191)]||_0xec5820['type']['toLowerCase']()===_0x380bf5(0xe3)&&!Number[_0x380bf5(0xdb)](_0x2cd3fd))throw new Error('Expected\x20a\x20finite\x20safe\x20numeric\x20cell.');return _0x2cd3fd;case _0x380bf5(0xf5):if(typeof _0x2cd3fd!==_0x380bf5(0xf5))throw new Error('Expected\x20a\x20boolean\x20cell.');return _0x2cd3fd;case _0x380bf5(0x167):case _0x380bf5(0xe7):if(!(_0x2cd3fd instanceof Date)||!Number[_0x380bf5(0x17d)](_0x2cd3fd[_0x380bf5(0x162)]()))throw new Error(_0x380bf5(0x160));return _0x2cd3fd[_0x380bf5(0x162)]();default:throw new Error(_0x380bf5(0x1b0)+_0xec5820[_0x380bf5(0x1a2)]+'.');}}export async function buildExcelManifest(_0x1480ec){const _0x5b18a0=a144_0x35133b,_0x19eacd=_0x1480ec[_0x5b18a0(0x1ac)]??0x1;if(!Number[_0x5b18a0(0xdb)](_0x19eacd)||_0x19eacd<0x1||_0x19eacd>MAX_ROWS)throw new Error(_0x5b18a0(0x10a));if(_0x1480ec[_0x5b18a0(0x159)]!==undefined&&(!Number[_0x5b18a0(0xdb)](_0x1480ec[_0x5b18a0(0x159)])||_0x1480ec[_0x5b18a0(0x159)]<0x1||_0x1480ec[_0x5b18a0(0x159)]>0x3e8))throw new Error('batchSize\x20must\x20be\x20between\x201\x20and\x201000.');if(a144_0x839ef1['extname'](_0x1480ec[_0x5b18a0(0x101)])['toLowerCase']()!==_0x5b18a0(0x108))throw new Error(_0x5b18a0(0x15c));const _0x490b26=await stat(_0x1480ec[_0x5b18a0(0x101)]);if(!_0x490b26[_0x5b18a0(0xd8)]()||_0x490b26[_0x5b18a0(0x17a)]>MAX_FILE)throw new Error(_0x5b18a0(0xf4));const _0x4484c3=await readFile(_0x1480ec[_0x5b18a0(0x101)]);if(_0x4484c3[_0x5b18a0(0x18d)]>MAX_FILE)throw new Error('XLSX\x20file\x20exceeds\x2020\x20MB.');const _0x4e977d=_0x1480ec[_0x5b18a0(0x176)][_0x5b18a0(0xeb)](_0x2af432=>isImageContainer(_0x2af432['type'])&&Object[_0x5b18a0(0x12b)](_0x1480ec[_0x5b18a0(0x137)])['includes'](_0x2af432[_0x5b18a0(0x194)]))?new Map():undefined;await checkArchive(_0x4484c3,_0x4e977d);const _0x422ff7=new a144_0x3036fb['Workbook']();await _0x422ff7[_0x5b18a0(0x1b5)][_0x5b18a0(0xe2)](_0x4484c3,{'ignoreNodes':[_0x5b18a0(0x10b)]});const _0x3d4558=_0x1480ec[_0x5b18a0(0x170)];let _0x36b983;if(_0x3d4558===undefined)_0x36b983=_0x422ff7[_0x5b18a0(0xfd)][0x0];else{if(typeof _0x3d4558===_0x5b18a0(0x1af)&&_0x422ff7[_0x5b18a0(0xfd)][_0x5b18a0(0xeb)](_0x3fe14a=>_0x3fe14a[_0x5b18a0(0x113)]===_0x3d4558))_0x36b983=_0x422ff7[_0x5b18a0(0xfd)][_0x5b18a0(0xfc)](_0x5f4681=>_0x5f4681['name']===_0x3d4558);else{if(typeof _0x3d4558===_0x5b18a0(0x14f)||/^\d+$/[_0x5b18a0(0x107)](_0x3d4558)){const _0x35f614=Number(_0x3d4558);if(!Number[_0x5b18a0(0xdb)](_0x35f614)||_0x35f614<0x1)throw new Error(_0x5b18a0(0x12f));_0x36b983=_0x422ff7[_0x5b18a0(0xfd)][_0x35f614-0x1];}else _0x36b983=_0x422ff7['worksheets'][_0x5b18a0(0xfc)](_0xaf4a63=>_0xaf4a63[_0x5b18a0(0x113)]===_0x3d4558);}}if(!_0x36b983)throw new Error(_0x5b18a0(0xda));if(_0x36b983[_0x5b18a0(0xd9)]>MAX_ROWS||_0x36b983[_0x5b18a0(0x188)]>MAX_COLUMNS)throw new Error(_0x5b18a0(0x102));if((_0x36b983[_0x5b18a0(0xe9)][_0x5b18a0(0x151)]??[])[_0x5b18a0(0x18d)])throw new Error(_0x5b18a0(0x164));const _0x3c6d61=new Map();_0x36b983[_0x5b18a0(0x1b3)](_0x19eacd)[_0x5b18a0(0x1a7)]((_0x29cbdb,_0xf4daa3)=>{const _0x32c5da=_0x5b18a0,_0x2bc9ab=valueOf(_0x29cbdb);if(typeof _0x2bc9ab!==_0x32c5da(0x1af)||!_0x2bc9ab[_0x32c5da(0x19b)]()||Buffer[_0x32c5da(0x10f)](_0x2bc9ab)>MAX_CELL)throw new Error(_0x32c5da(0x163));if(_0x3c6d61[_0x32c5da(0x180)](_0x2bc9ab))throw new Error('Duplicate\x20header:\x20'+_0x2bc9ab+'.');_0x3c6d61['set'](_0x2bc9ab,_0xf4daa3);});const _0x5063a9=Object[_0x5b18a0(0x12d)](_0x1480ec['mapping']);if(!_0x5063a9['length'])throw new Error(_0x5b18a0(0xe5));const _0x4caa46=new Map(_0x1480ec[_0x5b18a0(0x176)]['map'](_0x8fa193=>[_0x8fa193[_0x5b18a0(0x194)],_0x8fa193]));if(_0x4caa46['size']!==_0x1480ec[_0x5b18a0(0x176)]['length'])throw new Error('Duplicate\x20dataset\x20field\x20codes.');if(_0x1480ec[_0x5b18a0(0x176)][_0x5b18a0(0xeb)](_0x348e00=>_0x348e00[_0x5b18a0(0x1a2)][_0x5b18a0(0x14c)]()===_0x5b18a0(0x139)))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');const _0x388d7b=new Set();for(const [_0x1ad1dc,_0xfc3dc7]of _0x5063a9){const _0x4e8123=_0x4caa46[_0x5b18a0(0xe1)](_0xfc3dc7);if(!_0x3c6d61[_0x5b18a0(0x180)](_0x1ad1dc))throw new Error(_0x5b18a0(0x131)+_0x1ad1dc+'.');if(!_0x4e8123||RESERVED[_0x5b18a0(0x180)](_0xfc3dc7)||_0x4e8123[_0x5b18a0(0x152)])throw new Error('Unknown\x20or\x20generated\x20mapping\x20field:\x20'+_0xfc3dc7+'.');if(_0x388d7b[_0x5b18a0(0x180)](_0xfc3dc7))throw new Error(_0x5b18a0(0xcf)+_0xfc3dc7+'.');if(!TYPES['has'](_0x4e8123[_0x5b18a0(0x1a2)][_0x5b18a0(0x14c)]()))throw new Error(_0x5b18a0(0x1b0)+_0x4e8123['type']+'.');_0x388d7b[_0x5b18a0(0xef)](_0xfc3dc7);}for(const _0x4e5944 of _0x1480ec[_0x5b18a0(0x176)]){if(_0x4e5944[_0x5b18a0(0x117)]&&!_0x4e5944['generated']&&!RESERVED['has'](_0x4e5944[_0x5b18a0(0x194)])&&!_0x388d7b[_0x5b18a0(0x180)](_0x4e5944[_0x5b18a0(0x194)]))throw new Error('Required\x20field\x20is\x20not\x20mapped:\x20'+_0x4e5944['code']+'.');}const _0x5c2b52={'fileHash':hash(_0x4484c3),'mappingHash':hash(JSON[_0x5b18a0(0x155)]([..._0x5063a9][_0x5b18a0(0x15a)](([_0x2af3e8],[_0x11a83d])=>_0x2af3e8[_0x5b18a0(0x15b)](_0x11a83d)))),'schemaHash':hash(JSON[_0x5b18a0(0x155)]([..._0x1480ec[_0x5b18a0(0x176)]][_0x5b18a0(0x15a)]((_0x39d4fb,_0x10c436)=>_0x39d4fb['code'][_0x5b18a0(0x15b)](_0x10c436[_0x5b18a0(0x194)])))),'sheet':_0x36b983[_0x5b18a0(0x113)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x1486f9=_0x5063a9[_0x5b18a0(0xe6)](([,_0xcc8bef])=>isImageContainer(_0x4caa46['get'](_0xcc8bef)[_0x5b18a0(0x1a2)])),_0x31b79f=_0x1486f9[_0x5b18a0(0xe6)](([,_0x2ff59d])=>_0x4caa46[_0x5b18a0(0xe1)](_0x2ff59d)[_0x5b18a0(0x1a2)][_0x5b18a0(0x14c)]()==='upload')[_0x5b18a0(0x12e)](([,_0x146602])=>_0x146602);if(_0x31b79f[_0x5b18a0(0x18d)])_0x5c2b52[_0x5b18a0(0xf8)]=_0x31b79f;const _0x45689b=_0x4e977d?resolveWorksheetImages(_0x4e977d,_0x36b983[_0x5b18a0(0x113)],new Set(_0x1486f9['map'](([_0x4ff11a])=>_0x3c6d61[_0x5b18a0(0xe1)](_0x4ff11a)))):[],_0xddfc53=new Map();for(const _0x243bc8 of _0x45689b){const _0x1f22eb=_0x243bc8[_0x5b18a0(0x128)]+':'+_0x243bc8['col'],_0x35c92f=_0xddfc53[_0x5b18a0(0xe1)](_0x1f22eb)??[];_0x35c92f[_0x5b18a0(0xfa)](_0x243bc8),_0xddfc53[_0x5b18a0(0x173)](_0x1f22eb,_0x35c92f);}const _0x1c4a17=new Map();let _0x41ea91=0x0;_0x1486f9['length']&&(_0x5c2b52[_0x5b18a0(0x153)]=_0x1486f9['map'](([,_0x230a99])=>_0x230a99),_0x5c2b52[_0x5b18a0(0xe8)]=[],_0x5c2b52[_0x5b18a0(0x1a4)]=0x1,_0x5c2b52[_0x5b18a0(0x147)]=[]);const _0x3faf37=Math[_0x5b18a0(0x140)](0x0,..._0x45689b['map'](_0x1fe53e=>_0x1fe53e['row']));let _0x25fb9c=0x0;const _0x1ddc20=new Set(_0x5063a9[_0x5b18a0(0x12e)](([_0xce71ee])=>_0x3c6d61[_0x5b18a0(0xe1)](_0xce71ee)));for(let _0x5905eb=_0x19eacd+0x1;_0x5905eb<=Math[_0x5b18a0(0x140)](_0x36b983[_0x5b18a0(0xd9)],_0x3faf37);_0x5905eb++){const _0x5d3a9=_0x36b983[_0x5b18a0(0x1b3)](_0x5905eb);if(_0x5d3a9[_0x5b18a0(0x13c)]||_0x45689b[_0x5b18a0(0xeb)](_0x4e6ac5=>_0x4e6ac5[_0x5b18a0(0x128)]===_0x5905eb&&_0x4e6ac5['hiddenRow']))_0x25fb9c++;let _0x4f655e=_0x45689b[_0x5b18a0(0xeb)](_0x2b15e7=>_0x2b15e7['row']===_0x5905eb);_0x5d3a9[_0x5b18a0(0x1a7)](_0x3dc328=>{const _0x5d2e7=_0x5b18a0;if(_0x3dc328[_0x5d2e7(0x123)]!==null&&_0x3dc328[_0x5d2e7(0x123)]!==undefined&&_0x3dc328[_0x5d2e7(0x123)]!=='')_0x4f655e=!![];});if(!_0x4f655e){_0x5c2b52[_0x5b18a0(0x146)][_0x5b18a0(0xfa)](_0x5905eb);continue;}const _0x517008=Object[_0x5b18a0(0x13b)](null);_0x5d3a9[_0x5b18a0(0x1a7)]((_0x2dbc12,_0x2353af)=>{const _0x1f9ada=_0x5b18a0;if(_0x1ddc20['has'](_0x2353af))return;try{const _0x37beea=valueOf(_0x2dbc12);if(typeof _0x37beea===_0x1f9ada(0x1af)&&Buffer[_0x1f9ada(0x10f)](_0x37beea,_0x1f9ada(0x11e))>MAX_CELL)throw new Error(_0x1f9ada(0x175));}catch(_0x3f8939){_0x5c2b52[_0x1f9ada(0x10d)][_0x1f9ada(0xfa)]({'rowNumber':_0x5905eb,'field':_0x2dbc12[_0x1f9ada(0x189)],'message':_0x3f8939[_0x1f9ada(0x171)]});}});for(const [_0x4e9696,_0x1dfc53]of _0x5063a9){try{const _0x29c6e3=_0x5d3a9[_0x5b18a0(0x1b8)](_0x3c6d61[_0x5b18a0(0xe1)](_0x4e9696)),_0x549608=_0x4caa46[_0x5b18a0(0xe1)](_0x1dfc53);if(!isImageContainer(_0x549608[_0x5b18a0(0x1a2)])){_0x517008[_0x1dfc53]=convert(valueOf(_0x29c6e3),_0x549608);continue;}const _0x1cae2e=_0xddfc53[_0x5b18a0(0xe1)](_0x5905eb+':'+_0x3c6d61[_0x5b18a0(0xe1)](_0x4e9696))??[];if(_0x1cae2e[_0x5b18a0(0xeb)](_0x3b0175=>_0x3b0175[_0x5b18a0(0x14b)]))throw Error(_0x1cae2e[_0x5b18a0(0xfc)](_0xe9c378=>_0xe9c378[_0x5b18a0(0x14b)])[_0x5b18a0(0x14b)]);if(_0x29c6e3[_0x5b18a0(0x123)]!=null&&_0x29c6e3[_0x5b18a0(0x123)]!==''&&!_0x1cae2e[_0x5b18a0(0xeb)](_0x2f0494=>_0x2f0494[_0x5b18a0(0xed)]))throw Error(_0x5b18a0(0x1ab));const _0x5e9054=[];for(const _0xe52f61 of _0x1cae2e)for(const _0x3697a7 of _0xe52f61[_0x5b18a0(0x147)]){const _0x68f79e=_0x4e977d[_0x5b18a0(0xe1)](_0x3697a7);if(!_0x68f79e)throw Error('Missing\x20image\x20media:\x20'+_0x3697a7+'.');const _0x278384=hash(_0x68f79e),_0x1c874d=_0x1c4a17['get'](_0x278384)??validateImageBytes(_0x68f79e);if(!_0x1c4a17[_0x5b18a0(0x180)](_0x1c874d['contentHash'])){_0x41ea91+=_0x1c874d[_0x5b18a0(0x17a)];if(_0x41ea91>0x32*0x400*0x400)throw Error(_0x5b18a0(0x100));_0x1c4a17['set'](_0x1c874d[_0x5b18a0(0x116)],_0x1c874d);}_0x5e9054[_0x5b18a0(0xfa)](_0x1c874d['contentHash']);}if(!_0x5e9054[_0x5b18a0(0x18d)]&&_0x549608[_0x5b18a0(0x117)])throw Error(_0x5b18a0(0x168));if(_0x5e9054[_0x5b18a0(0x18d)])_0x5c2b52['imageCells'][_0x5b18a0(0xfa)]({'rowNumber':_0x5905eb,'field':_0x1dfc53,'hashes':_0x5e9054});_0x517008[_0x1dfc53]=_0x5e9054[_0x5b18a0(0x12e)](_0x3a04a6=>{const _0x31acd8=_0x5b18a0,_0x218caf=_0x1c4a17[_0x31acd8(0xe1)](_0x3a04a6),_0x3679b5=_0x218caf['type']===_0x31acd8(0x1a0)?_0x31acd8(0x16c):_0x218caf['type'][_0x31acd8(0x12c)](0x6),_0x4ef359=_0x3a04a6+'.'+_0x3679b5,_0x971968=_0x31acd8(0x122)+'0'[_0x31acd8(0x166)](0x40)+'/'+_0x4ef359;return _0x549608[_0x31acd8(0x1a2)]['toLowerCase']()===_0x31acd8(0x1b7)?{'fileName':_0x4ef359,'filePath':_0x971968}:{'key':_0x971968,'name':_0x4ef359,'type':_0x218caf['type'],'size':_0x218caf[_0x31acd8(0x17a)]};});}catch(_0x340d24){_0x5c2b52['errors'][_0x5b18a0(0xfa)]({'rowNumber':_0x5905eb,'field':_0x1dfc53,'message':_0x340d24[_0x5b18a0(0x171)]});}}_0x5c2b52[_0x5b18a0(0x198)][_0x5b18a0(0xfa)]({'rowNumber':_0x5905eb,'values':_0x517008});}if(_0x5c2b52[_0x5b18a0(0x147)])_0x5c2b52[_0x5b18a0(0x147)]=[..._0x1c4a17[_0x5b18a0(0x12b)]()];if(_0x25fb9c)_0x5c2b52[_0x5b18a0(0x1a9)][_0x5b18a0(0xfa)](_0x25fb9c+'\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.');return _0x5c2b52;}
@@ -1 +1 @@
1
- (function(_0x492b8f,_0x319109){const _0x59b153=a145_0x1a5d,_0x585ac9=_0x492b8f();while(!![]){try{const _0x4ed5dd=-parseInt(_0x59b153(0xd0))/0x1*(-parseInt(_0x59b153(0xc2))/0x2)+parseInt(_0x59b153(0xbd))/0x3+parseInt(_0x59b153(0xbb))/0x4*(-parseInt(_0x59b153(0xb0))/0x5)+-parseInt(_0x59b153(0xc0))/0x6+parseInt(_0x59b153(0xc5))/0x7*(-parseInt(_0x59b153(0xb8))/0x8)+parseInt(_0x59b153(0xbf))/0x9*(-parseInt(_0x59b153(0xc1))/0xa)+parseInt(_0x59b153(0xcd))/0xb*(parseInt(_0x59b153(0xdb))/0xc);if(_0x4ed5dd===_0x319109)break;else _0x585ac9['push'](_0x585ac9['shift']());}catch(_0x3c68f2){_0x585ac9['push'](_0x585ac9['shift']());}}}(a145_0x5cd1,0x42020));import{createRequire}from'node:module';function a145_0x1a5d(_0x1700b6,_0x435824){_0x1700b6=_0x1700b6-0xa3;const _0x5cd10c=a145_0x5cd1();let _0x1a5dcc=_0x5cd10c[_0x1700b6];return _0x1a5dcc;}import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x29c64a,_0x4edaf1){const _0x5ca346=a145_0x1a5d;if(!Number[_0x5ca346(0xca)](_0x29c64a)||!Number[_0x5ca346(0xca)](_0x4edaf1)||_0x29c64a<0x1||_0x4edaf1<0x1||_0x29c64a*_0x4edaf1>MAX_PIXELS)throw Error('Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.');}function validateGif(_0x5a59ec){const _0x3f0045=a145_0x1a5d;let _0x164d99=0xd,_0x43a385=0x0,_0x150126=0x0;const _0x30af14=_0x5a59ec[_0x3f0045(0xb2)](0x6),_0x4e9b46=_0x5a59ec['readUInt16LE'](0x8),_0x4a6794=_0x5a59ec[0xa]&0x80?0x1<<(_0x5a59ec[0xa]&0x7)+0x1:0x0,_0x584e0c=_0x3b4c05=>{if(_0x164d99+_0x3b4c05>_0x5a59ec['length'])throw Error('Truncated\x20GIF\x20data.');};_0x164d99+=_0x4a6794*0x3,_0x584e0c(0x0);const _0xdd84f2=()=>{const _0x48547c=_0x3f0045,_0xe31044=[];while(!![]){_0x584e0c(0x1);const _0x1ee8d5=_0x5a59ec[_0x164d99++];if(!_0x1ee8d5)break;_0x584e0c(_0x1ee8d5),_0xe31044[_0x48547c(0xba)](_0x5a59ec[_0x48547c(0xa5)](_0x164d99,_0x164d99+_0x1ee8d5)),_0x164d99+=_0x1ee8d5;}return Buffer[_0x48547c(0xa7)](_0xe31044);};while(_0x164d99<_0x5a59ec[_0x3f0045(0xc6)]){const _0x9fd95f=_0x5a59ec[_0x164d99++];if(_0x9fd95f===0x3b){if(!_0x43a385||_0x164d99!==_0x5a59ec[_0x3f0045(0xc6)])throw Error('Invalid\x20GIF\x20trailer.');return;}if(_0x9fd95f===0x21){_0x584e0c(0x1),_0x164d99++,_0xdd84f2();continue;}if(_0x9fd95f!==0x2c)throw Error(_0x3f0045(0xc4));_0x584e0c(0x9);const _0xba897=_0x5a59ec['readUInt16LE'](_0x164d99),_0x37f43b=_0x5a59ec[_0x3f0045(0xb2)](_0x164d99+0x2),_0x1902c5=_0x5a59ec[_0x3f0045(0xb2)](_0x164d99+0x4),_0x57d39f=_0x5a59ec[_0x3f0045(0xb2)](_0x164d99+0x6),_0x166e86=_0x5a59ec[_0x164d99+0x8];_0x164d99+=0x9,dimensions(_0x1902c5,_0x57d39f);if(_0xba897+_0x1902c5>_0x30af14||_0x37f43b+_0x57d39f>_0x4e9b46||++_0x43a385>0x2710||(_0x150126+=_0x30af14*_0x4e9b46)>MAX_PIXELS)throw Error(_0x3f0045(0xab));const _0x2b3d43=_0x166e86&0x80?0x1<<(_0x166e86&0x7)+0x1:_0x4a6794;if(!_0x2b3d43)throw Error(_0x3f0045(0xad));_0x166e86&0x80&&(_0x584e0c(_0x2b3d43*0x3),_0x164d99+=_0x2b3d43*0x3);_0x584e0c(0x1);const _0x2bd173=_0x5a59ec[_0x164d99++];if(_0x2bd173<0x2||_0x2bd173>0x8)throw Error('Invalid\x20GIF\x20LZW\x20code\x20size.');const _0x5529db=_0xdd84f2(),_0x86c7c=0x1<<_0x2bd173,_0x34b630=_0x86c7c+0x1;let _0x5a9398=_0x2bd173+0x1,_0x4dc6d6=_0x34b630+0x1,_0x3ce0c0=0x0,_0x3d50ab=-0x1,_0x54ae8f=0x0,_0xd59882=![];const _0x5a8641=new Uint32Array(0x1000),_0x19b9c9=new Uint16Array(0x1000);for(let _0x3f638e=0x0;_0x3f638e<_0x86c7c;_0x3f638e++){_0x5a8641[_0x3f638e]=0x1,_0x19b9c9[_0x3f638e]=_0x3f638e;}while(_0x3ce0c0+_0x5a9398<=_0x5529db[_0x3f0045(0xc6)]*0x8){let _0xe25ffc=0x0;for(let _0x12fffa=0x0;_0x12fffa<_0x5a9398;_0x12fffa++,_0x3ce0c0++)_0xe25ffc|=(_0x5529db[_0x3ce0c0>>0x3]>>(_0x3ce0c0&0x7)&0x1)<<_0x12fffa;if(_0xe25ffc===_0x86c7c){_0x5a9398=_0x2bd173+0x1,_0x4dc6d6=_0x34b630+0x1,_0x3d50ab=-0x1;continue;}if(_0xe25ffc===_0x34b630){_0xd59882=!![];break;}if(_0xe25ffc>_0x4dc6d6||_0xe25ffc===_0x4dc6d6&&_0x3d50ab<0x0||_0x3d50ab<0x0&&_0xe25ffc>=_0x86c7c)throw Error(_0x3f0045(0xa3));const _0x4a4191=_0xe25ffc===_0x4dc6d6?_0x5a8641[_0x3d50ab]+0x1:_0x5a8641[_0xe25ffc],_0x1921e4=_0xe25ffc===_0x4dc6d6?_0x19b9c9[_0x3d50ab]:_0x19b9c9[_0xe25ffc];if(!_0x4a4191||_0x1921e4>=_0x2b3d43||(_0x54ae8f+=_0x4a4191)>_0x1902c5*_0x57d39f)throw Error(_0x3f0045(0xcf));if(_0x3d50ab>=0x0&&_0x4dc6d6<0x1000){_0x5a8641[_0x4dc6d6]=_0x5a8641[_0x3d50ab]+0x1,_0x19b9c9[_0x4dc6d6]=Math[_0x3f0045(0xda)](_0x19b9c9[_0x3d50ab],_0x1921e4),_0x4dc6d6++;if(_0x4dc6d6===0x1<<_0x5a9398&&_0x5a9398<0xc)_0x5a9398++;}_0x3d50ab=_0xe25ffc;}if(!_0xd59882||_0x54ae8f!==_0x1902c5*_0x57d39f)throw Error(_0x3f0045(0xb1));}throw Error(_0x3f0045(0xb5));}function a145_0x5cd1(){const _0x3997a7=['GIF\x20image\x20has\x20no\x20palette.','GIF87a','IDAT','2012490yTgwDH','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','readUInt16LE','image/jpeg','includes','Missing\x20GIF\x20trailer.','IHDR','equals','176TZIgGf','image/gif','push','4pXYqHG','Truncated\x20PNG\x20data.','66111hriYiQ','sync','2094147btxkMZ','1830084bIQDlM','20cgUCwX','14tqGURf','hex','Invalid\x20GIF\x20block.','60193PsqxjL','length','Missing\x20PNG\x20data/end.','acTL','Animated\x20PNG\x20is\x20not\x20supported.','isSafeInteger','GIF\x20frame\x20exceeds\x20canvas.','Truncated\x20JPEG.','11gDzQOR','pngjs','Invalid\x20GIF\x20LZW\x20pixel\x20data.','15306CTKMFf','digest','Invalid\x20PNG\x20end.','Truncated\x20GIF.','readUInt32BE','Truncated\x20PNG\x20chunk.','IEND','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','height','ascii','max','18038940byBNwC','width','jpeg-js','Invalid\x20PNG\x20color/depth/interlace.','Invalid\x20PNG\x20header.','read','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','omggif','subarray','toString','concat','ceil','numFrames','GIF89a','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.'];a145_0x5cd1=function(){return _0x3997a7;};return a145_0x5cd1();}export function validateImageBytes(_0x928395){const _0x56d9be=a145_0x1a5d;if(!_0x928395['length']||_0x928395[_0x56d9be(0xc6)]>0xa*0x400*0x400)throw Error(_0x56d9be(0xac));let _0xc795d3;try{if(_0x928395['subarray'](0x0,0x8)[_0x56d9be(0xb7)](Buffer['from']([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x928395[_0x56d9be(0xc6)]<0x21||_0x928395['toString'](_0x56d9be(0xd9),0xc,0x10)!==_0x56d9be(0xb6))throw Error(_0x56d9be(0xdf));dimensions(_0x928395['readUInt32BE'](0x10),_0x928395[_0x56d9be(0xd4)](0x14));const _0x1e1709=_0x928395[_0x56d9be(0xd4)](0x10),_0x241456=_0x928395[_0x56d9be(0xd4)](0x14),_0x173274=_0x928395[0x18],_0x300ff1=_0x928395[0x19],_0x1ac388=_0x928395[0x1c],_0x3ebf13={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x300ff1];if(!_0x3ebf13||![0x1,0x2,0x4,0x8,0x10][_0x56d9be(0xb4)](_0x173274)||_0x1ac388>0x1)throw Error(_0x56d9be(0xde));const _0x2c2bf2=_0x280a48=>Math[_0x56d9be(0xa8)](_0x280a48*_0x3ebf13*_0x173274/0x8)+0x1;let _0x2bf582=_0x2c2bf2(_0x1e1709)*_0x241456;if(_0x1ac388){_0x2bf582=0x0;for(const [_0x4ecfcf,_0x168104,_0x390f2d,_0x4702c6]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 _0x142da5=Math[_0x56d9be(0xda)](0x0,Math[_0x56d9be(0xa8)]((_0x1e1709-_0x4ecfcf)/_0x390f2d)),_0x27b7d0=Math[_0x56d9be(0xda)](0x0,Math[_0x56d9be(0xa8)]((_0x241456-_0x168104)/_0x4702c6));if(_0x142da5&&_0x27b7d0)_0x2bf582+=_0x2c2bf2(_0x142da5)*_0x27b7d0;}}let _0x5d2c4c=0x8,_0xb533b9=![];const _0xee0002=[];while(_0x5d2c4c<_0x928395[_0x56d9be(0xc6)]){if(_0x5d2c4c+0xc>_0x928395[_0x56d9be(0xc6)])throw Error(_0x56d9be(0xd5));const _0x225e1f=_0x928395[_0x56d9be(0xd4)](_0x5d2c4c),_0x353d36=_0x928395[_0x56d9be(0xa6)](_0x56d9be(0xd9),_0x5d2c4c+0x4,_0x5d2c4c+0x8);if(_0x353d36===_0x56d9be(0xc8))throw Error(_0x56d9be(0xc9));if(_0x5d2c4c+_0x225e1f+0xc>_0x928395[_0x56d9be(0xc6)])throw Error(_0x56d9be(0xbc));if(_0x353d36===_0x56d9be(0xaf))_0xee0002[_0x56d9be(0xba)](_0x928395[_0x56d9be(0xa5)](_0x5d2c4c+0x8,_0x5d2c4c+0x8+_0x225e1f));_0x5d2c4c+=_0x225e1f+0xc;if(_0x353d36===_0x56d9be(0xd6)){if(_0x225e1f||_0x5d2c4c!==_0x928395[_0x56d9be(0xc6)])throw Error(_0x56d9be(0xd2));_0xb533b9=!![];break;}}if(!_0xb533b9||!_0xee0002['length'])throw Error(_0x56d9be(0xc7));if(inflateSync(Buffer[_0x56d9be(0xa7)](_0xee0002),{'maxOutputLength':_0x2bf582+0x1})[_0x56d9be(0xc6)]!==_0x2bf582)throw Error('Invalid\x20PNG\x20decoded\x20scanline\x20size.');const {PNG:_0x2c06d7}=require(_0x56d9be(0xce)),_0x4bdecd=_0x2c06d7[_0x56d9be(0xbe)][_0x56d9be(0xe0)](_0x928395,{'checkCRC':!![]});dimensions(_0x4bdecd['width'],_0x4bdecd['height']),_0xc795d3='image/png';}else{if(_0x928395[0x0]===0xff&&_0x928395[0x1]===0xd8){if(_0x928395['at'](-0x2)!==0xff||_0x928395['at'](-0x1)!==0xd9)throw Error(_0x56d9be(0xcc));const _0x5a41d=require(_0x56d9be(0xdd)),_0x141eea=_0x5a41d['decode'](_0x928395,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x141eea[_0x56d9be(0xdc)],_0x141eea['height']),_0xc795d3=_0x56d9be(0xb3);}else{if([_0x56d9be(0xae),_0x56d9be(0xaa)][_0x56d9be(0xb4)](_0x928395[_0x56d9be(0xa6)](_0x56d9be(0xd9),0x0,0x6))){if(_0x928395[_0x56d9be(0xc6)]<0xe||_0x928395['at'](-0x1)!==0x3b)throw Error(_0x56d9be(0xd3));dimensions(_0x928395[_0x56d9be(0xb2)](0x6),_0x928395[_0x56d9be(0xb2)](0x8)),validateGif(_0x928395);const {GifReader:_0x217547}=require(_0x56d9be(0xa4)),_0x4821fa=new _0x217547(_0x928395);dimensions(_0x4821fa[_0x56d9be(0xdc)],_0x4821fa[_0x56d9be(0xd8)]);const _0x2b048f=_0x4821fa[_0x56d9be(0xa9)]();if(!_0x2b048f||_0x2b048f>0x2710||_0x2b048f*_0x4821fa['width']*_0x4821fa[_0x56d9be(0xd8)]>MAX_PIXELS)throw Error(_0x56d9be(0xab));const _0x27f1cf=new Uint8Array(_0x4821fa['width']*_0x4821fa[_0x56d9be(0xd8)]*0x4);for(let _0x1ff83d=0x0;_0x1ff83d<_0x2b048f;_0x1ff83d++){const _0x3787e7=_0x4821fa['frameInfo'](_0x1ff83d);if(_0x3787e7['x']+_0x3787e7[_0x56d9be(0xdc)]>_0x4821fa['width']||_0x3787e7['y']+_0x3787e7[_0x56d9be(0xd8)]>_0x4821fa[_0x56d9be(0xd8)])throw Error(_0x56d9be(0xcb));_0x4821fa['decodeAndBlitFrameRGBA'](_0x1ff83d,_0x27f1cf);}_0xc795d3=_0x56d9be(0xb9);}else throw Error(_0x56d9be(0xd7));}}}catch(_0x3cde96){throw Error('Invalid\x20image:\x20'+_0x3cde96['message']);}return{'contentHash':createHash('sha256')['update'](_0x928395)[_0x56d9be(0xd1)](_0x56d9be(0xc3)),'type':_0xc795d3,'size':_0x928395[_0x56d9be(0xc6)],'bytes':_0x928395};}
1
+ function a145_0x2819(_0x2572c3,_0x1e49d3){_0x2572c3=_0x2572c3-0x11a;const _0x1e4a87=a145_0x1e4a();let _0x2819b2=_0x1e4a87[_0x2572c3];return _0x2819b2;}(function(_0xbfa75e,_0x10e8f3){const _0xe212b5=a145_0x2819,_0x595685=_0xbfa75e();while(!![]){try{const _0x503991=parseInt(_0xe212b5(0x120))/0x1*(parseInt(_0xe212b5(0x125))/0x2)+parseInt(_0xe212b5(0x13d))/0x3+parseInt(_0xe212b5(0x151))/0x4+parseInt(_0xe212b5(0x14a))/0x5+parseInt(_0xe212b5(0x13e))/0x6*(-parseInt(_0xe212b5(0x12c))/0x7)+parseInt(_0xe212b5(0x147))/0x8+-parseInt(_0xe212b5(0x14d))/0x9;if(_0x503991===_0x10e8f3)break;else _0x595685['push'](_0x595685['shift']());}catch(_0x5466a5){_0x595685['push'](_0x595685['shift']());}}}(a145_0x1e4a,0x7bad8));import{createRequire}from'node:module';function a145_0x1e4a(){const _0x1cf3de=['7693389oTQCSt','push','readUInt16LE','Truncated\x20GIF\x20data.','2144712qwjZFt','Invalid\x20PNG\x20header.','Invalid\x20GIF\x20block.','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','Invalid\x20GIF\x20LZW\x20pixel\x20data.','equals','IEND','ascii','39927HqMFSb','height','GIF\x20frame\x20exceeds\x20canvas.','Invalid\x20PNG\x20color/depth/interlace.','Missing\x20GIF\x20trailer.','10qKNxvq','Animated\x20PNG\x20is\x20not\x20supported.','ceil','numFrames','includes','length','Invalid\x20PNG\x20decoded\x20scanline\x20size.','63SUEUdg','max','read','Invalid\x20image:\x20','jpeg-js','Invalid\x20GIF\x20LZW\x20code\x20size.','GIF87a','GIF89a','sync','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','hex','Truncated\x20PNG\x20data.','subarray','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','frameInfo','width','Invalid\x20PNG\x20end.','1434633ioMaFq','543870GvJrHX','GIF\x20image\x20has\x20no\x20palette.','readUInt32BE','IDAT','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','sha256','pngjs','decodeAndBlitFrameRGBA','decode','303200EOWLKX','image/jpeg','omggif','4626430guTDHt','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','toString'];a145_0x1e4a=function(){return _0x1cf3de;};return a145_0x1e4a();}import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x50568d,_0x18d7e2){const _0x49a19c=a145_0x2819;if(!Number['isSafeInteger'](_0x50568d)||!Number['isSafeInteger'](_0x18d7e2)||_0x50568d<0x1||_0x18d7e2<0x1||_0x50568d*_0x18d7e2>MAX_PIXELS)throw Error(_0x49a19c(0x14b));}function validateGif(_0x4cbeef){const _0x2f532e=a145_0x2819;let _0x4565ba=0xd,_0x425450=0x0,_0x172267=0x0;const _0x4f3a8e=_0x4cbeef['readUInt16LE'](0x6),_0x191f01=_0x4cbeef[_0x2f532e(0x14f)](0x8),_0x2078e4=_0x4cbeef[0xa]&0x80?0x1<<(_0x4cbeef[0xa]&0x7)+0x1:0x0,_0x531a21=_0xac5bb4=>{const _0x3ea0a7=_0x2f532e;if(_0x4565ba+_0xac5bb4>_0x4cbeef[_0x3ea0a7(0x12a)])throw Error(_0x3ea0a7(0x150));};_0x4565ba+=_0x2078e4*0x3,_0x531a21(0x0);const _0x7c5e8d=()=>{const _0x4b3dd9=_0x2f532e,_0x4395fe=[];while(!![]){_0x531a21(0x1);const _0x3f756c=_0x4cbeef[_0x4565ba++];if(!_0x3f756c)break;_0x531a21(_0x3f756c),_0x4395fe[_0x4b3dd9(0x14e)](_0x4cbeef[_0x4b3dd9(0x138)](_0x4565ba,_0x4565ba+_0x3f756c)),_0x4565ba+=_0x3f756c;}return Buffer['concat'](_0x4395fe);};while(_0x4565ba<_0x4cbeef[_0x2f532e(0x12a)]){const _0x391a77=_0x4cbeef[_0x4565ba++];if(_0x391a77===0x3b){if(!_0x425450||_0x4565ba!==_0x4cbeef[_0x2f532e(0x12a)])throw Error('Invalid\x20GIF\x20trailer.');return;}if(_0x391a77===0x21){_0x531a21(0x1),_0x4565ba++,_0x7c5e8d();continue;}if(_0x391a77!==0x2c)throw Error(_0x2f532e(0x11a));_0x531a21(0x9);const _0x42d10e=_0x4cbeef[_0x2f532e(0x14f)](_0x4565ba),_0x449da3=_0x4cbeef['readUInt16LE'](_0x4565ba+0x2),_0x383713=_0x4cbeef[_0x2f532e(0x14f)](_0x4565ba+0x4),_0x183db6=_0x4cbeef[_0x2f532e(0x14f)](_0x4565ba+0x6),_0x2dfa17=_0x4cbeef[_0x4565ba+0x8];_0x4565ba+=0x9,dimensions(_0x383713,_0x183db6);if(_0x42d10e+_0x383713>_0x4f3a8e||_0x449da3+_0x183db6>_0x191f01||++_0x425450>0x2710||(_0x172267+=_0x4f3a8e*_0x191f01)>MAX_PIXELS)throw Error('GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.');const _0x2d962a=_0x2dfa17&0x80?0x1<<(_0x2dfa17&0x7)+0x1:_0x2078e4;if(!_0x2d962a)throw Error(_0x2f532e(0x13f));_0x2dfa17&0x80&&(_0x531a21(_0x2d962a*0x3),_0x4565ba+=_0x2d962a*0x3);_0x531a21(0x1);const _0x3ce267=_0x4cbeef[_0x4565ba++];if(_0x3ce267<0x2||_0x3ce267>0x8)throw Error(_0x2f532e(0x131));const _0x384391=_0x7c5e8d(),_0x29ccd8=0x1<<_0x3ce267,_0x3e612f=_0x29ccd8+0x1;let _0x32dbc1=_0x3ce267+0x1,_0x3fb466=_0x3e612f+0x1,_0x47368c=0x0,_0x227594=-0x1,_0x53dfe3=0x0,_0x35a196=![];const _0x4b3311=new Uint32Array(0x1000),_0x531438=new Uint16Array(0x1000);for(let _0x4de98d=0x0;_0x4de98d<_0x29ccd8;_0x4de98d++){_0x4b3311[_0x4de98d]=0x1,_0x531438[_0x4de98d]=_0x4de98d;}while(_0x47368c+_0x32dbc1<=_0x384391[_0x2f532e(0x12a)]*0x8){let _0x440d22=0x0;for(let _0x40ab7c=0x0;_0x40ab7c<_0x32dbc1;_0x40ab7c++,_0x47368c++)_0x440d22|=(_0x384391[_0x47368c>>0x3]>>(_0x47368c&0x7)&0x1)<<_0x40ab7c;if(_0x440d22===_0x29ccd8){_0x32dbc1=_0x3ce267+0x1,_0x3fb466=_0x3e612f+0x1,_0x227594=-0x1;continue;}if(_0x440d22===_0x3e612f){_0x35a196=!![];break;}if(_0x440d22>_0x3fb466||_0x440d22===_0x3fb466&&_0x227594<0x0||_0x227594<0x0&&_0x440d22>=_0x29ccd8)throw Error(_0x2f532e(0x11b));const _0x195cf6=_0x440d22===_0x3fb466?_0x4b3311[_0x227594]+0x1:_0x4b3311[_0x440d22],_0x5cb943=_0x440d22===_0x3fb466?_0x531438[_0x227594]:_0x531438[_0x440d22];if(!_0x195cf6||_0x5cb943>=_0x2d962a||(_0x53dfe3+=_0x195cf6)>_0x383713*_0x183db6)throw Error(_0x2f532e(0x11c));if(_0x227594>=0x0&&_0x3fb466<0x1000){_0x4b3311[_0x3fb466]=_0x4b3311[_0x227594]+0x1,_0x531438[_0x3fb466]=Math[_0x2f532e(0x12d)](_0x531438[_0x227594],_0x5cb943),_0x3fb466++;if(_0x3fb466===0x1<<_0x32dbc1&&_0x32dbc1<0xc)_0x32dbc1++;}_0x227594=_0x440d22;}if(!_0x35a196||_0x53dfe3!==_0x383713*_0x183db6)throw Error(_0x2f532e(0x142));}throw Error(_0x2f532e(0x124));}export function validateImageBytes(_0x41f2ae){const _0x33f8c7=a145_0x2819;if(!_0x41f2ae[_0x33f8c7(0x12a)]||_0x41f2ae[_0x33f8c7(0x12a)]>0xa*0x400*0x400)throw Error(_0x33f8c7(0x135));let _0x9dbf4f;try{if(_0x41f2ae[_0x33f8c7(0x138)](0x0,0x8)[_0x33f8c7(0x11d)](Buffer['from']([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x41f2ae[_0x33f8c7(0x12a)]<0x21||_0x41f2ae[_0x33f8c7(0x14c)](_0x33f8c7(0x11f),0xc,0x10)!=='IHDR')throw Error(_0x33f8c7(0x152));dimensions(_0x41f2ae[_0x33f8c7(0x140)](0x10),_0x41f2ae['readUInt32BE'](0x14));const _0x597f5e=_0x41f2ae[_0x33f8c7(0x140)](0x10),_0x53a158=_0x41f2ae[_0x33f8c7(0x140)](0x14),_0x5f4bcb=_0x41f2ae[0x18],_0x49bf6e=_0x41f2ae[0x19],_0x57a8db=_0x41f2ae[0x1c],_0x3627e1={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x49bf6e];if(!_0x3627e1||![0x1,0x2,0x4,0x8,0x10][_0x33f8c7(0x129)](_0x5f4bcb)||_0x57a8db>0x1)throw Error(_0x33f8c7(0x123));const _0xac418a=_0x42577b=>Math[_0x33f8c7(0x127)](_0x42577b*_0x3627e1*_0x5f4bcb/0x8)+0x1;let _0x25f6e8=_0xac418a(_0x597f5e)*_0x53a158;if(_0x57a8db){_0x25f6e8=0x0;for(const [_0x173949,_0x895ac9,_0x59ed24,_0x4f1323]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 _0x209475=Math['max'](0x0,Math[_0x33f8c7(0x127)]((_0x597f5e-_0x173949)/_0x59ed24)),_0x4974fd=Math[_0x33f8c7(0x12d)](0x0,Math[_0x33f8c7(0x127)]((_0x53a158-_0x895ac9)/_0x4f1323));if(_0x209475&&_0x4974fd)_0x25f6e8+=_0xac418a(_0x209475)*_0x4974fd;}}let _0xd40049=0x8,_0x5223a2=![];const _0x4df895=[];while(_0xd40049<_0x41f2ae[_0x33f8c7(0x12a)]){if(_0xd40049+0xc>_0x41f2ae[_0x33f8c7(0x12a)])throw Error('Truncated\x20PNG\x20chunk.');const _0x364792=_0x41f2ae[_0x33f8c7(0x140)](_0xd40049),_0xd26c2f=_0x41f2ae[_0x33f8c7(0x14c)](_0x33f8c7(0x11f),_0xd40049+0x4,_0xd40049+0x8);if(_0xd26c2f==='acTL')throw Error(_0x33f8c7(0x126));if(_0xd40049+_0x364792+0xc>_0x41f2ae['length'])throw Error(_0x33f8c7(0x137));if(_0xd26c2f===_0x33f8c7(0x141))_0x4df895[_0x33f8c7(0x14e)](_0x41f2ae['subarray'](_0xd40049+0x8,_0xd40049+0x8+_0x364792));_0xd40049+=_0x364792+0xc;if(_0xd26c2f===_0x33f8c7(0x11e)){if(_0x364792||_0xd40049!==_0x41f2ae[_0x33f8c7(0x12a)])throw Error(_0x33f8c7(0x13c));_0x5223a2=!![];break;}}if(!_0x5223a2||!_0x4df895['length'])throw Error('Missing\x20PNG\x20data/end.');if(inflateSync(Buffer['concat'](_0x4df895),{'maxOutputLength':_0x25f6e8+0x1})['length']!==_0x25f6e8)throw Error(_0x33f8c7(0x12b));const {PNG:_0x15154c}=require(_0x33f8c7(0x144)),_0xa2ca8c=_0x15154c[_0x33f8c7(0x134)][_0x33f8c7(0x12e)](_0x41f2ae,{'checkCRC':!![]});dimensions(_0xa2ca8c[_0x33f8c7(0x13b)],_0xa2ca8c['height']),_0x9dbf4f='image/png';}else{if(_0x41f2ae[0x0]===0xff&&_0x41f2ae[0x1]===0xd8){if(_0x41f2ae['at'](-0x2)!==0xff||_0x41f2ae['at'](-0x1)!==0xd9)throw Error('Truncated\x20JPEG.');const _0x434176=require(_0x33f8c7(0x130)),_0x2abb8c=_0x434176[_0x33f8c7(0x146)](_0x41f2ae,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x2abb8c[_0x33f8c7(0x13b)],_0x2abb8c[_0x33f8c7(0x121)]),_0x9dbf4f=_0x33f8c7(0x148);}else{if([_0x33f8c7(0x132),_0x33f8c7(0x133)]['includes'](_0x41f2ae[_0x33f8c7(0x14c)]('ascii',0x0,0x6))){if(_0x41f2ae[_0x33f8c7(0x12a)]<0xe||_0x41f2ae['at'](-0x1)!==0x3b)throw Error('Truncated\x20GIF.');dimensions(_0x41f2ae['readUInt16LE'](0x6),_0x41f2ae[_0x33f8c7(0x14f)](0x8)),validateGif(_0x41f2ae);const {GifReader:_0x678a6b}=require(_0x33f8c7(0x149)),_0x27db37=new _0x678a6b(_0x41f2ae);dimensions(_0x27db37[_0x33f8c7(0x13b)],_0x27db37['height']);const _0x5717d7=_0x27db37[_0x33f8c7(0x128)]();if(!_0x5717d7||_0x5717d7>0x2710||_0x5717d7*_0x27db37[_0x33f8c7(0x13b)]*_0x27db37[_0x33f8c7(0x121)]>MAX_PIXELS)throw Error('GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.');const _0x52d02f=new Uint8Array(_0x27db37[_0x33f8c7(0x13b)]*_0x27db37[_0x33f8c7(0x121)]*0x4);for(let _0x512d02=0x0;_0x512d02<_0x5717d7;_0x512d02++){const _0x370705=_0x27db37[_0x33f8c7(0x13a)](_0x512d02);if(_0x370705['x']+_0x370705[_0x33f8c7(0x13b)]>_0x27db37[_0x33f8c7(0x13b)]||_0x370705['y']+_0x370705[_0x33f8c7(0x121)]>_0x27db37[_0x33f8c7(0x121)])throw Error(_0x33f8c7(0x122));_0x27db37[_0x33f8c7(0x145)](_0x512d02,_0x52d02f);}_0x9dbf4f='image/gif';}else throw Error(_0x33f8c7(0x139));}}}catch(_0x3915f7){throw Error(_0x33f8c7(0x12f)+_0x3915f7['message']);}return{'contentHash':createHash(_0x33f8c7(0x143))['update'](_0x41f2ae)['digest'](_0x33f8c7(0x136)),'type':_0x9dbf4f,'size':_0x41f2ae[_0x33f8c7(0x12a)],'bytes':_0x41f2ae};}
@@ -1 +1 @@
1
- const a146_0x3de8c0=a146_0x4a92;(function(_0x6e1ba2,_0x34c60f){const _0x3ef252=a146_0x4a92,_0x55673f=_0x6e1ba2();while(!![]){try{const _0x36dacb=-parseInt(_0x3ef252(0x21b))/0x1+-parseInt(_0x3ef252(0x206))/0x2*(-parseInt(_0x3ef252(0x23b))/0x3)+-parseInt(_0x3ef252(0x1d4))/0x4+-parseInt(_0x3ef252(0x1ae))/0x5+parseInt(_0x3ef252(0x1ca))/0x6+parseInt(_0x3ef252(0x217))/0x7*(-parseInt(_0x3ef252(0x1b4))/0x8)+parseInt(_0x3ef252(0x1d9))/0x9*(parseInt(_0x3ef252(0x1b9))/0xa);if(_0x36dacb===_0x34c60f)break;else _0x55673f['push'](_0x55673f['shift']());}catch(_0x5e11f5){_0x55673f['push'](_0x55673f['shift']());}}}(a146_0x19be,0xe4298));function a146_0x4a92(_0x38938b,_0x100448){_0x38938b=_0x38938b-0x1ae;const _0x19bed6=a146_0x19be();let _0x4a9228=_0x19bed6[_0x38938b];return _0x4a9228;}import a146_0x49c06a from'node:path';function a146_0x19be(){const _0x53ee89=['Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','rowOff','rich\x20value\x20index','blipFill','Missing\x20rich\x20value.','image\x20extent','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','Relationships','136438xSWRBZ','Unsupported\x20mapped\x20rich\x20value\x20structure.','http://www.wps.cn/officeDocument/2017/etCustomData','r:id','image\x20formula','wsDr','test','exec','XLRICHVALUE','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','anchor\x20row','Missing\x20XLSX\x20part:\x20','image\x20row\x20height\x20coordinate','valueMetadata','Image\x20XML\x20text\x20exceeds\x2064\x20KB.','flatMap','rich\x20metadata\x20record','14yBUaBD','blip','Unsupported\x20drawing\x20image.','Shared\x20image\x20formulas\x20are\x20not\x20supported.','1862986hjhRPn','oneCellAnchor','rich\x20image\x20relationship\x20index','Unsupported\x20rich\x20value\x20namespace.','round','rel','isSafeInteger','Ambiguous\x20XML\x20attribute.','anchor\x20column','defaultRowHeight','\x20relationship\x20in\x20','image\x20height','http://schemas.openxmlformats.org/spreadsheetml/2006/main','richValueRel','message','Unsupported\x20metadata\x20namespace.','cellImage','hidden\x20image\x20row','_rvRel:LocalImageIdentifier','local','row','col','Unsupported\x20worksheet\x20namespace.','close','rdRichValue','hidden','from','Missing\x20value\x20metadata\x20block.','http://purl.oclc.org/ooxml/officeDocument/relationships','Invalid\x20or\x20duplicate\x20relationship\x20in\x20','toLowerCase','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','21qHXvlV','join','filter','value\x20metadata\x20index','anchor\x20start','posix','sheet','Relationship\x20target\x20escapes\x20workbook:\x20','twoCellAnchor','children','.rels','anchor\x20end\x20offset','http://schemas.openxmlformats.org/drawingml/2006/main','http://www.wps.cn/officeDocument/2017/relationships/','type','metadata\x20type\x20index','doctype','External\x20image\x20links\x20are\x20not\x20supported.','rvData','colOff','Relationship','values','../','name','rvStructures','rvb','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','_localImage','rich\x20value\x20binding','XML\x20DTD/entities\x20are\x20not\x20supported.','charCodeAt','workbook','Missing\x20WPS\x20image\x20ID:\x20','fromEntries','Missing\x20local\x20image\x20identifier\x20value.','1106070goIxQS','sheetFormatPr','add','write','sheets','rdRichValueStructure','6075344tjnexQ','isFinite','Unsupported\x20mapped\x20cell\x20metadata\x20type.','sheetMetadata','pic','10DIdHRS','future\x20metadata\x20index','absoluteAnchor','includes','cNvPr','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','has','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','length','Unsupported\x20workbook\x20namespace.','Missing\x20or\x20ambiguous\x20','Unsupported\x20rich\x20structure\x20namespace.','replace','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','uri','http://purl.oclc.org/ooxml/spreadsheetml/main','nvPicPr','578274qyUSZi','futureMetadata','http://purl.oclc.org/ooxml/drawingml/main','WPS\x20image\x20blip','r:link','rich\x20future\x20metadata','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','metadataTypes','Missing\x20future\x20metadata\x20block.','sheetData','7104396gweGsK','ext','_rels','Internal','http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel','51657975vhUrHC','push','dirname','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','xl/','opentag','map','Missing\x20rich\x20image\x20relationship.','startsWith','drawing','r:embed','basename','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','set','attrs','cellImages','metadata','image','some','#VALUE!','metadataType','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','metadata\x20types','worksheet','xl/workbook.xml','Invalid\x20relationship\x20target:\x20','MAX_SAFE_INTEGER','Unsupported\x20relationship\x20namespace\x20in\x20','Image\x20XML\x20node\x20budget\x20exceeded.','http://schemas.openxmlformats.org/officeDocument/2006/relationships','richValueRels','value','Unsupported\x20WPS\x20cell\x20image\x20namespace.','extLst','text','get','WPS\x20image\x20name'];a146_0x19be=function(){return _0x53ee89;};return a146_0x19be();}import{SaxesParser}from'saxes';const SHEET=[a146_0x3de8c0(0x227),a146_0x3de8c0(0x1c8)],DRAWING=['http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing'],DRAWING_MAIN=[a146_0x3de8c0(0x247),a146_0x3de8c0(0x1cc)],OFFICE_RELS=[a146_0x3de8c0(0x1f6),a146_0x3de8c0(0x237)],PACKAGE=['http://schemas.openxmlformats.org/package/2006/relationships'],RICH=['http://schemas.microsoft.com/office/spreadsheetml/2017/richdata'],RICH_RELS=[a146_0x3de8c0(0x1d8)],WPS=[a146_0x3de8c0(0x208)],DEFAULT_NS=Object[a146_0x3de8c0(0x25c)]([...[a146_0x3de8c0(0x25a),a146_0x3de8c0(0x1b2),a146_0x3de8c0(0x241),a146_0x3de8c0(0x1f0),a146_0x3de8c0(0x1d3),'row','c','f','v',a146_0x3de8c0(0x1af),a146_0x3de8c0(0x1e2),a146_0x3de8c0(0x1e9),'metadataTypes',a146_0x3de8c0(0x1ed),'futureMetadata',a146_0x3de8c0(0x213),'bk','rc',a146_0x3de8c0(0x1fa)][a146_0x3de8c0(0x1df)](_0x57cb09=>[_0x57cb09,SHEET]),...[a146_0x3de8c0(0x20b),'oneCellAnchor',a146_0x3de8c0(0x243),a146_0x3de8c0(0x1bb),'from','to',a146_0x3de8c0(0x230),a146_0x3de8c0(0x24e),a146_0x3de8c0(0x1ff),a146_0x3de8c0(0x1d5),'pic',a146_0x3de8c0(0x1c9),a146_0x3de8c0(0x1bd),a146_0x3de8c0(0x201)]['map'](_0x19898e=>[_0x19898e,DRAWING]),...[a146_0x3de8c0(0x254),a146_0x3de8c0(0x24d),'rv',a146_0x3de8c0(0x253),'s','k']['map'](_0x4e209e=>[_0x4e209e,RICH]),['blip',DRAWING_MAIN],[a146_0x3de8c0(0x1f7),RICH_RELS],[a146_0x3de8c0(0x220),RICH_RELS],['Relationships',PACKAGE],[a146_0x3de8c0(0x24f),PACKAGE],[a146_0x3de8c0(0x1e8),WPS],[a146_0x3de8c0(0x22b),WPS]]),matches=(_0x68af23,_0x4922bd,_0x5ca504=DEFAULT_NS[_0x4922bd]??[])=>_0x68af23[a146_0x3de8c0(0x252)]===_0x4922bd&&_0x5ca504[a146_0x3de8c0(0x1bc)](_0x68af23['uri']),children=(_0x49d573,_0x371815,_0x222e3f=DEFAULT_NS[_0x371815])=>_0x49d573[a146_0x3de8c0(0x244)][a146_0x3de8c0(0x23d)](_0x5c0a57=>matches(_0x5c0a57,_0x371815,_0x222e3f)),chain=(_0x43bd1d,..._0xb4119e)=>_0xb4119e['reduce']((_0x258b78,_0x350d73)=>_0x258b78['flatMap'](_0x2105ea=>children(_0x2105ea,_0x350d73)),[_0x43bd1d]),relationshipTypes=_0x2a2338=>{const _0x1f86ca=a146_0x3de8c0;if([_0x1f86ca(0x233),_0x1f86ca(0x1b3)][_0x1f86ca(0x1bc)](_0x2a2338))return['http://schemas.microsoft.com/office/2017/06/relationships/'+_0x2a2338];if(_0x2a2338===_0x1f86ca(0x228))return['http://schemas.microsoft.com/office/2022/10/relationships/richValueRel'];if(_0x2a2338==='cellImage'||_0x2a2338===_0x1f86ca(0x1e8))return[_0x1f86ca(0x248)+_0x2a2338];return OFFICE_RELS[_0x1f86ca(0x1df)](_0x2d2667=>_0x2d2667+'/'+_0x2a2338);};function one(_0xcf3555,_0x473790){const _0x5c4e39=a146_0x3de8c0;if(_0xcf3555['length']!==0x1)throw Error(_0x5c4e39(0x1c3)+_0x473790+'.');return _0xcf3555[0x0];}function integer(_0x33b53e,_0x5a762c,_0x12399b=0x186a0){const _0x523573=a146_0x3de8c0;if(!_0x33b53e||!/^\d+$/['test'](_0x33b53e)||!Number[_0x523573(0x221)](Number(_0x33b53e))||Number(_0x33b53e)>_0x12399b)throw Error('Invalid\x20'+_0x5a762c+'.');return Number(_0x33b53e);}export function resolveWorksheetImages(_0x2c6f48,_0x35a338,_0x5a56a8){const _0x5aa7e9=a146_0x3de8c0;let _0x52223a=0x0,_0x2d34b6=0x0,_0xcc46e9=0x0;const _0x3c3cd5=new Map(),_0x58792f=_0x4b6b03=>{const _0x51291c=a146_0x4a92;if(_0x3c3cd5['has'](_0x4b6b03))return _0x3c3cd5[_0x51291c(0x1fc)](_0x4b6b03);const _0x1755e5=_0x2c6f48[_0x51291c(0x1fc)](_0x4b6b03);if(!_0x1755e5)throw Error(_0x51291c(0x211)+_0x4b6b03+'.');const _0x4423c1={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x3e0a65=[_0x4423c1],_0x3599c5=new SaxesParser({'xmlns':!![]}),_0x59c90d=()=>{if(++_0x2d34b6>0x1e8480)throw Error('Image\x20XML\x20event\x20budget\x20exceeded.');};_0x3599c5['on'](_0x51291c(0x24b),()=>{const _0x1555c4=_0x51291c;throw Error(_0x1555c4(0x258));}),_0x3599c5['on'](_0x51291c(0x1de),_0x1dc93e=>{const _0x29aad2=_0x51291c;_0x59c90d();if(++_0x52223a>0x7a120||_0x3e0a65[_0x29aad2(0x1c1)]>0x40)throw Error(_0x29aad2(0x1f5));const _0x1102d9={};for(const _0x385bca of Object[_0x29aad2(0x250)](_0x1dc93e['attributes'])){const _0x57c0a8=OFFICE_RELS[_0x29aad2(0x1bc)](_0x385bca[_0x29aad2(0x1c7)])?'r:'+_0x385bca[_0x29aad2(0x22e)]:_0x385bca[_0x29aad2(0x1c7)]?'{'+_0x385bca[_0x29aad2(0x1c7)]+'}'+_0x385bca[_0x29aad2(0x22e)]:_0x385bca[_0x29aad2(0x22e)];if(_0x57c0a8 in _0x1102d9)throw Error(_0x29aad2(0x222));_0x1102d9[_0x57c0a8]=_0x385bca[_0x29aad2(0x1f8)];}const _0x5e5624={'name':_0x1dc93e[_0x29aad2(0x22e)],'uri':_0x1dc93e[_0x29aad2(0x1c7)],'attrs':_0x1102d9,'children':[],'text':''};_0x3e0a65['at'](-0x1)[_0x29aad2(0x244)]['push'](_0x5e5624),_0x3e0a65['push'](_0x5e5624);}),_0x3599c5['on']('text',_0x2a43ca=>{const _0x35bb79=_0x51291c;_0x59c90d();const _0x33926d=_0x3e0a65['at'](-0x1);_0x33926d[_0x35bb79(0x1fb)]+=_0x2a43ca;if(_0x33926d[_0x35bb79(0x1fb)]['length']>0x10000)throw Error(_0x35bb79(0x214));}),_0x3599c5['on']('closetag',()=>{_0x59c90d(),_0x3e0a65['pop']();}),_0x3599c5['on']('error',_0x1bdffc=>{throw _0x1bdffc;}),_0x3599c5[_0x51291c(0x1b1)](_0x1755e5['toString']('utf8'))[_0x51291c(0x232)]();const _0x427efd=one(_0x4423c1[_0x51291c(0x244)],_0x4b6b03);return _0x3c3cd5[_0x51291c(0x1e6)](_0x4b6b03,_0x427efd),_0x427efd;},_0x83acaa=new Map(),_0x4bc181=_0xaa0cb9=>{const _0xd90103=a146_0x4a92;if(_0x83acaa['has'](_0xaa0cb9))return _0x83acaa['get'](_0xaa0cb9);const _0xbe7d17=a146_0x49c06a[_0xd90103(0x240)][_0xd90103(0x23c)](a146_0x49c06a[_0xd90103(0x240)][_0xd90103(0x1db)](_0xaa0cb9),_0xd90103(0x1d6),a146_0x49c06a[_0xd90103(0x240)][_0xd90103(0x1e4)](_0xaa0cb9)+_0xd90103(0x245));if(!_0x2c6f48['has'](_0xbe7d17))return[];const _0x4a6d9d=new Set(),_0x133b7d=_0x58792f(_0xbe7d17);if(!matches(_0x133b7d,_0xd90103(0x205)))throw Error(_0xd90103(0x1f4)+_0xbe7d17+'.');const _0x4b3403=children(_0x133b7d,_0xd90103(0x24f))[_0xd90103(0x1df)](_0xa7706b=>{const _0x907c26=_0xd90103,{Id:_0x16a077,Type:_0x68f4f6,Target:_0x1a5575,TargetMode:_0x132743}=_0xa7706b[_0x907c26(0x1e7)];if(!_0x16a077||_0x4a6d9d[_0x907c26(0x1bf)](_0x16a077)||!_0x68f4f6)throw Error(_0x907c26(0x238)+_0xbe7d17+'.');return _0x4a6d9d[_0x907c26(0x1b0)](_0x16a077),{'id':_0x16a077,'type':_0x68f4f6,'target':_0x1a5575??'','mode':_0x132743};});return _0x83acaa[_0xd90103(0x1e6)](_0xaa0cb9,_0x4b3403),_0x4b3403;},_0x3ac38b=(_0x54c65d,_0x4e2224)=>{const _0x8fce8f=a146_0x4a92,{target:_0x118bc5,mode:_0x427021}=_0x4e2224;if(_0x427021&&_0x427021!==_0x8fce8f(0x1d7))throw Error(_0x8fce8f(0x23a)+_0x54c65d+'.');if(!_0x118bc5||_0x118bc5[_0x8fce8f(0x1bc)]('\x5c')||/[?#%\x00-\x20]/['test'](_0x118bc5)||/^[a-z][a-z0-9+.-]*:/i[_0x8fce8f(0x20c)](_0x118bc5)||_0x118bc5[_0x8fce8f(0x1e1)]('//'))throw Error(_0x8fce8f(0x1f2)+_0x54c65d+'.');const _0x5ad523=_0x118bc5[_0x8fce8f(0x1e1)]('/')?_0x118bc5['slice'](0x1):a146_0x49c06a['posix']['normalize'](a146_0x49c06a[_0x8fce8f(0x240)][_0x8fce8f(0x23c)](a146_0x49c06a[_0x8fce8f(0x240)][_0x8fce8f(0x1db)](_0x54c65d),_0x118bc5));if(_0x5ad523[_0x8fce8f(0x1e1)](_0x8fce8f(0x251))||_0x5ad523==='..'||!_0x5ad523[_0x8fce8f(0x1e1)](_0x8fce8f(0x1dd)))throw Error(_0x8fce8f(0x242)+_0x54c65d+'.');return _0x5ad523;},_0x3815ef=(_0x5e8172,_0x1c7cfd,_0x5a1fc4)=>{const _0x114b18=a146_0x4a92,_0x5d292d=_0x4bc181(_0x5e8172)[_0x114b18(0x23d)](_0x2def6f=>_0x2def6f['id']===_0x1c7cfd&&relationshipTypes(_0x5a1fc4)['includes'](_0x2def6f[_0x114b18(0x249)]));if(_0x5d292d[_0x114b18(0x1c1)]!==0x1)throw Error(_0x114b18(0x1c3)+_0x5a1fc4+_0x114b18(0x225)+_0x5e8172+'.');return _0x3ac38b(_0x5e8172,_0x5d292d[0x0]);},_0x727d2e=(_0x2c0175,_0xe9451)=>{const _0x36b88b=a146_0x4a92,_0x4195a6=_0x4bc181(_0x2c0175)[_0x36b88b(0x23d)](_0x4f68ab=>relationshipTypes(_0xe9451)[_0x36b88b(0x1bc)](_0x4f68ab[_0x36b88b(0x249)]));if(_0x4195a6[_0x36b88b(0x1c1)]!==0x1)throw Error(_0x36b88b(0x1c3)+_0xe9451+_0x36b88b(0x225)+_0x2c0175+'.');return _0x3ac38b(_0x2c0175,_0x4195a6[0x0]);},_0x278ea5=_0x5aa7e9(0x1f1),_0x23380c=_0x58792f(_0x278ea5);if(!matches(_0x23380c,'workbook'))throw Error(_0x5aa7e9(0x1c2));const _0x23975d=one(chain(_0x23380c,'sheets',_0x5aa7e9(0x241))[_0x5aa7e9(0x23d)](_0x2fcee4=>_0x2fcee4[_0x5aa7e9(0x1e7)][_0x5aa7e9(0x252)]===_0x35a338),_0x5aa7e9(0x1f0)),_0x4c4294=_0x3815ef(_0x278ea5,_0x23975d['attrs'][_0x5aa7e9(0x209)],'worksheet'),_0xd3a5d5=_0x58792f(_0x4c4294);if(!matches(_0xd3a5d5,_0x5aa7e9(0x1f0)))throw Error(_0x5aa7e9(0x231));const _0x440322=chain(_0xd3a5d5,_0x5aa7e9(0x1d3),'row'),_0x48f4cb=new Map(),_0x101848=new Set(_0x440322['filter'](_0x49c4f4=>_0x49c4f4[_0x5aa7e9(0x1e7)][_0x5aa7e9(0x234)]==='1'||_0x49c4f4[_0x5aa7e9(0x1e7)][_0x5aa7e9(0x234)]==='true')[_0x5aa7e9(0x1df)](_0x1fa807=>integer(_0x1fa807['attrs']['r'],_0x5aa7e9(0x22c)))),_0xe221a3=_0x1cc225=>{const _0x15575d=_0x5aa7e9,_0x3f30c2=_0x1cc225===undefined?0xf:Number(_0x1cc225);if(!Number[_0x15575d(0x1b5)](_0x3f30c2)||_0x3f30c2<=0x0||_0x3f30c2>409.5)throw Error('Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.');return Math[_0x15575d(0x21f)](_0x3f30c2*0x319c);},_0x48e35d=_0xe221a3(children(_0xd3a5d5,_0x5aa7e9(0x1af))[0x0]?.[_0x5aa7e9(0x1e7)][_0x5aa7e9(0x224)]);for(const _0x19933d of _0x440322)if(_0x19933d['attrs']['ht']!==undefined)_0x48f4cb[_0x5aa7e9(0x1e6)](integer(_0x19933d[_0x5aa7e9(0x1e7)]['r'],_0x5aa7e9(0x212)),_0xe221a3(_0x19933d['attrs']['ht']));const _0x1479e6=[],_0x340b84=_0x6824b0=>{const _0x364b32=_0x5aa7e9;if(!_0x5a56a8['has'](_0x6824b0[_0x364b32(0x230)]))return;if(++_0xcc46e9>0x2710)throw Error(_0x364b32(0x1e5));_0x1479e6[_0x364b32(0x1da)](_0x101848[_0x364b32(0x1bf)](_0x6824b0['row'])?{..._0x6824b0,'hiddenRow':!![]}:_0x6824b0);},_0x5d766a=_0x1fca08=>({'row':integer(one(children(_0x1fca08,_0x5aa7e9(0x22f),DRAWING),_0x5aa7e9(0x210))[_0x5aa7e9(0x1fb)],_0x5aa7e9(0x210),0x1869f)+0x1,'col':integer(one(children(_0x1fca08,_0x5aa7e9(0x230)),_0x5aa7e9(0x223))[_0x5aa7e9(0x1fb)],_0x5aa7e9(0x223),0xff)+0x1});for(const _0x5a4c0b of children(_0xd3a5d5,_0x5aa7e9(0x1e2))){const _0x16c043=_0x3815ef(_0x4c4294,_0x5a4c0b['attrs'][_0x5aa7e9(0x209)],_0x5aa7e9(0x1e2)),_0x5cade1=_0x58792f(_0x16c043);if(!matches(_0x5cade1,'wsDr'))throw Error('Unsupported\x20drawing\x20namespace.');for(const _0x3b336f of _0x5cade1[_0x5aa7e9(0x244)]){if(!['oneCellAnchor',_0x5aa7e9(0x243),_0x5aa7e9(0x1bb)][_0x5aa7e9(0x1eb)](_0x5db901=>matches(_0x3b336f,_0x5db901)))continue;if(_0x3b336f[_0x5aa7e9(0x252)]===_0x5aa7e9(0x1bb))throw Error(_0x5aa7e9(0x1dc)+_0x35a338+'.');const _0x59fd20=_0x5d766a(one(children(_0x3b336f,'from'),'anchor\x20start'));if(!_0x5a56a8[_0x5aa7e9(0x1bf)](_0x59fd20['col']))continue;let _0x599c38;const _0x5e9219=one(children(_0x3b336f,_0x5aa7e9(0x235)),_0x5aa7e9(0x23f)),_0x5a6a98=integer(one(children(_0x5e9219,_0x5aa7e9(0x1ff)),'anchor\x20start\x20offset')[_0x5aa7e9(0x1fb)],'anchor\x20start\x20offset',Number['MAX_SAFE_INTEGER']),_0xe4817c=_0x48f4cb[_0x5aa7e9(0x1fc)](_0x59fd20[_0x5aa7e9(0x22f)])??_0x48e35d;if(_0x5a6a98>=_0xe4817c)throw Error(_0x5aa7e9(0x204)+_0x59fd20[_0x5aa7e9(0x22f)]+'.');if(_0x3b336f[_0x5aa7e9(0x252)]===_0x5aa7e9(0x21c)){const _0x5b6c87=one(children(_0x3b336f,_0x5aa7e9(0x1d5)),_0x5aa7e9(0x203)),_0x3f7d6e=integer(_0x5b6c87[_0x5aa7e9(0x1e7)]['cy'],_0x5aa7e9(0x226),Number[_0x5aa7e9(0x1f3)]);if(!_0x3f7d6e||_0x5a6a98+_0x3f7d6e>_0xe4817c)_0x599c38=_0x5aa7e9(0x1d0);}if(_0x3b336f[_0x5aa7e9(0x252)]===_0x5aa7e9(0x243)){const _0x166ea1=one(children(_0x3b336f,'to'),'anchor\x20end'),_0x138e55=_0x5d766a(_0x166ea1),_0x27e215=integer(one(children(_0x166ea1,_0x5aa7e9(0x1ff)),_0x5aa7e9(0x246))[_0x5aa7e9(0x1fb)],'anchor\x20end\x20offset',Number[_0x5aa7e9(0x1f3)]),_0x51587d=_0x48f4cb[_0x5aa7e9(0x1fc)](_0x138e55[_0x5aa7e9(0x22f)])??_0x48e35d;if(_0x27e215>_0x51587d||_0x138e55[_0x5aa7e9(0x22f)]===_0x59fd20['row']&&_0x27e215<=_0x5a6a98)_0x599c38='Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.';if(_0x138e55[_0x5aa7e9(0x22f)]<_0x59fd20[_0x5aa7e9(0x22f)]||_0x138e55[_0x5aa7e9(0x22f)]>_0x59fd20[_0x5aa7e9(0x22f)]+0x1||_0x138e55[_0x5aa7e9(0x22f)]===_0x59fd20[_0x5aa7e9(0x22f)]+0x1&&_0x27e215!==0x0)_0x599c38=_0x5aa7e9(0x1d0);}const _0x36dd30=chain(_0x3b336f,_0x5aa7e9(0x1b8),_0x5aa7e9(0x201),_0x5aa7e9(0x218));for(const _0x31795c of _0x36dd30){if(_0x31795c[_0x5aa7e9(0x1e7)][_0x5aa7e9(0x1ce)])throw Error(_0x5aa7e9(0x24c));_0x340b84({..._0x59fd20,'media':[_0x3815ef(_0x16c043,_0x31795c['attrs'][_0x5aa7e9(0x1e3)],_0x5aa7e9(0x1ea))],..._0x599c38?{'error':_0x599c38}:{}});}if(!_0x36dd30[_0x5aa7e9(0x1c1)])_0x340b84({..._0x59fd20,'media':[],'error':_0x5aa7e9(0x219)});}}const _0x9962ed=_0x59d8f6=>{const _0x4e7834=_0x5aa7e9,_0x6160ac=_0x58792f(_0x727d2e(_0x278ea5,_0x4e7834(0x1b7)));if(!matches(_0x6160ac,_0x4e7834(0x1e9)))throw Error(_0x4e7834(0x22a));const _0x38b21e=integer(_0x59d8f6[_0x4e7834(0x1e7)]['vm'],_0x4e7834(0x23e));if(!_0x38b21e)throw Error('Value\x20metadata\x20index\x20must\x20be\x20one-based.');const _0x98660a=children(one(children(_0x6160ac,_0x4e7834(0x213)),_0x4e7834(0x213)),'bk')[_0x38b21e-0x1];if(!_0x98660a)throw Error(_0x4e7834(0x236));const _0x176e17=one(children(_0x98660a,'rc'),_0x4e7834(0x216)),_0x41c6f7=integer(_0x176e17['attrs']['t'],_0x4e7834(0x24a)),_0x4334d0=children(one(children(_0x6160ac,_0x4e7834(0x1d1)),_0x4e7834(0x1ef)),_0x4e7834(0x1ed))[_0x41c6f7-0x1];if(!_0x41c6f7||_0x4334d0?.[_0x4e7834(0x1e7)][_0x4e7834(0x252)]!==_0x4e7834(0x20e))throw Error(_0x4e7834(0x1b6));const _0x5e7330=one(children(_0x6160ac,_0x4e7834(0x1cb))[_0x4e7834(0x23d)](_0x55304a=>_0x55304a[_0x4e7834(0x1e7)]['name']===_0x4e7834(0x20e)),_0x4e7834(0x1cf)),_0x4c2fce=children(_0x5e7330,'bk')[integer(_0x176e17[_0x4e7834(0x1e7)]['v'],_0x4e7834(0x1ba))];if(!_0x4c2fce)throw Error(_0x4e7834(0x1d2));const _0x5103b4=chain(_0x4c2fce,'extLst')[_0x4e7834(0x215)](_0x489861=>children(_0x489861,_0x4e7834(0x1d5),SHEET))['filter'](_0x171ac3=>_0x171ac3['attrs'][_0x4e7834(0x1c7)]?.[_0x4e7834(0x239)]()===_0x4e7834(0x20f)),_0x23c87a=integer(one(_0x5103b4['flatMap'](_0x3983b6=>children(_0x3983b6,'rvb')),_0x4e7834(0x257))['attrs']['i'],_0x4e7834(0x200)),_0x268586=_0x58792f(_0x727d2e(_0x278ea5,'rdRichValue'));if(!matches(_0x268586,_0x4e7834(0x24d)))throw Error(_0x4e7834(0x21e));const _0x3a1df6=children(_0x268586,'rv')[_0x23c87a];if(!_0x3a1df6)throw Error(_0x4e7834(0x202));const _0x3c5b6e=_0x58792f(_0x727d2e(_0x278ea5,_0x4e7834(0x1b3)));if(!matches(_0x3c5b6e,_0x4e7834(0x253)))throw Error(_0x4e7834(0x1c4));const _0x1a47b0=children(_0x3c5b6e,'s')[integer(_0x3a1df6[_0x4e7834(0x1e7)]['s'],'rich\x20structure\x20index')];if(!_0x1a47b0||_0x1a47b0[_0x4e7834(0x1e7)]['t']!==_0x4e7834(0x256))throw Error(_0x4e7834(0x207));const _0x492a27=children(_0x1a47b0,'k'),_0x35ea03=_0x492a27[_0x4e7834(0x1df)]((_0x37824a,_0x10ed38)=>_0x37824a[_0x4e7834(0x1e7)]['n']===_0x4e7834(0x22d)?_0x10ed38:-0x1)['filter'](_0x36b7fd=>_0x36b7fd>=0x0);if(_0x35ea03[_0x4e7834(0x1c1)]!==0x1)throw Error(_0x4e7834(0x1ee));const _0x31beaf=children(_0x3a1df6,'v',RICH)[_0x35ea03[0x0]];if(!_0x31beaf)throw Error(_0x4e7834(0x25d));const _0x1a0182=_0x727d2e(_0x278ea5,_0x4e7834(0x228)),_0x33f93f=_0x58792f(_0x1a0182);if(!matches(_0x33f93f,_0x4e7834(0x1f7)))throw Error('Unsupported\x20rich\x20image\x20relation\x20namespace.');const _0x26ec01=children(_0x33f93f,'rel')[integer(_0x31beaf[_0x4e7834(0x1fb)],_0x4e7834(0x21d))];if(!_0x26ec01)throw Error(_0x4e7834(0x1e0));return _0x3815ef(_0x1a0182,_0x26ec01['attrs'][_0x4e7834(0x209)],'image');};let _0x3dbe08;const _0x1b30a9=_0x4e69bb=>{const _0x18bc64=_0x5aa7e9;if(!_0x3dbe08){_0x3dbe08=new Map();const _0x5cb9e3=_0x4bc181(_0x278ea5)['filter'](_0x4cdb78=>[...relationshipTypes(_0x18bc64(0x22b)),...relationshipTypes('cellImages')][_0x18bc64(0x1bc)](_0x4cdb78[_0x18bc64(0x249)]));if(!_0x5cb9e3[_0x18bc64(0x1c1)]&&_0x2c6f48[_0x18bc64(0x1bf)]('xl/cellimages.xml'))_0x5cb9e3[_0x18bc64(0x1da)]({'id':'','type':'','target':'/xl/cellimages.xml'});if(_0x5cb9e3[_0x18bc64(0x1c1)]!==0x1)throw Error(_0x18bc64(0x1c6));const _0x6c2f92=_0x3ac38b(_0x278ea5,_0x5cb9e3[0x0]),_0xfc1e1e=_0x58792f(_0x6c2f92);if(!matches(_0xfc1e1e,_0x18bc64(0x1e8)))throw Error(_0x18bc64(0x1f9));for(const _0x543f39 of children(_0xfc1e1e,'cellImage')){const _0x250a90=one(chain(_0x543f39,_0x18bc64(0x1b8),_0x18bc64(0x1c9),_0x18bc64(0x1bd)),_0x18bc64(0x1fd))['attrs'][_0x18bc64(0x252)];if(!_0x250a90||_0x3dbe08[_0x18bc64(0x1bf)](_0x250a90))throw Error('Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.');const _0x129859=one(chain(_0x543f39,_0x18bc64(0x1b8),_0x18bc64(0x201),'blip'),_0x18bc64(0x1cd));if(_0x129859[_0x18bc64(0x1e7)]['r:link'])throw Error(_0x18bc64(0x1be));_0x3dbe08[_0x18bc64(0x1e6)](_0x250a90,_0x3815ef(_0x6c2f92,_0x129859[_0x18bc64(0x1e7)]['r:embed'],'image'));}}const _0x2262d0=_0x3dbe08[_0x18bc64(0x1fc)](_0x4e69bb);if(!_0x2262d0)throw Error(_0x18bc64(0x25b)+_0x4e69bb+'.');return _0x2262d0;},_0x353455=new Set();for(const _0x304276 of _0x440322[_0x5aa7e9(0x215)](_0x2794e3=>children(_0x2794e3,'c'))){const _0x371ddd=/^([A-Z]+)([1-9]\d*)$/[_0x5aa7e9(0x20d)](_0x304276[_0x5aa7e9(0x1e7)]['r']??'');if(!_0x371ddd)continue;let _0xc49563=0x0;for(const _0x7af53e of _0x371ddd[0x1])_0xc49563=_0xc49563*0x1a+_0x7af53e[_0x5aa7e9(0x259)](0x0)-0x40;if(!_0x5a56a8[_0x5aa7e9(0x1bf)](_0xc49563))continue;const _0x18b0fb=integer(_0x371ddd[0x2],'image\x20cell\x20row');if(_0x353455[_0x5aa7e9(0x1bf)](_0x304276[_0x5aa7e9(0x1e7)]['r']))throw Error('Duplicate\x20mapped\x20image\x20cell.');_0x353455[_0x5aa7e9(0x1b0)](_0x304276['attrs']['r']);const _0x54b8b9=children(_0x304276,'f');if(!_0x304276['attrs']['vm']&&!_0x54b8b9[_0x5aa7e9(0x1c1)])continue;try{if(_0x18b0fb<0x1||_0xc49563>0x100)throw Error(_0x5aa7e9(0x1c0));let _0x4f4275;if(_0x304276[_0x5aa7e9(0x1e7)]['vm']){if(_0x54b8b9['length'])throw Error(_0x5aa7e9(0x255));if(_0x304276[_0x5aa7e9(0x1e7)]['t']!=='e'||children(_0x304276,'v')['length']!==0x1||children(_0x304276,'v')[0x0][_0x5aa7e9(0x1fb)]!==_0x5aa7e9(0x1ec))throw Error(_0x5aa7e9(0x1fe));_0x4f4275=_0x9962ed(_0x304276);}else{const _0xcb854f=one(_0x54b8b9,_0x5aa7e9(0x20a));if(_0xcb854f[_0x5aa7e9(0x1e7)]['t']==='shared'||_0xcb854f['attrs']['si'])throw Error(_0x5aa7e9(0x21a));const _0x1f3fa9=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i['exec'](_0xcb854f[_0x5aa7e9(0x1fb)]);if(!_0x1f3fa9)throw Error('Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.');_0x4f4275=_0x1b30a9(_0x1f3fa9[0x1][_0x5aa7e9(0x1c5)](/""/g,'\x22'));}_0x340b84({'row':_0x18b0fb,'col':_0xc49563,'media':[_0x4f4275],'nativeCell':!![]});}catch(_0x37a21f){_0x340b84({'row':_0x18b0fb,'col':_0xc49563,'media':[],'nativeCell':!![],'error':_0x37a21f[_0x5aa7e9(0x229)]});}}return _0x1479e6;}
1
+ function a146_0x314e(_0x419fca,_0x4f5b76){_0x419fca=_0x419fca-0x170;const _0x39c588=a146_0x39c5();let _0x314e5d=_0x39c588[_0x419fca];return _0x314e5d;}const a146_0x922ba5=a146_0x314e;(function(_0x523777,_0x26d0d7){const _0x19fdea=a146_0x314e,_0x5ca293=_0x523777();while(!![]){try{const _0x2cbd82=-parseInt(_0x19fdea(0x1fa))/0x1+-parseInt(_0x19fdea(0x1b0))/0x2+-parseInt(_0x19fdea(0x200))/0x3*(-parseInt(_0x19fdea(0x19f))/0x4)+-parseInt(_0x19fdea(0x214))/0x5+parseInt(_0x19fdea(0x1c6))/0x6*(parseInt(_0x19fdea(0x175))/0x7)+parseInt(_0x19fdea(0x20d))/0x8+-parseInt(_0x19fdea(0x215))/0x9;if(_0x2cbd82===_0x26d0d7)break;else _0x5ca293['push'](_0x5ca293['shift']());}catch(_0x34319d){_0x5ca293['push'](_0x5ca293['shift']());}}}(a146_0x39c5,0xd6014));import a146_0x471ca2 from'node:path';import{SaxesParser}from'saxes';const SHEET=[a146_0x922ba5(0x1e0),a146_0x922ba5(0x191)],DRAWING=[a146_0x922ba5(0x1c4),a146_0x922ba5(0x1a4)],DRAWING_MAIN=[a146_0x922ba5(0x1fd),a146_0x922ba5(0x1ab)],OFFICE_RELS=[a146_0x922ba5(0x1cf),a146_0x922ba5(0x184)],PACKAGE=[a146_0x922ba5(0x189)],RICH=['http://schemas.microsoft.com/office/spreadsheetml/2017/richdata'],RICH_RELS=[a146_0x922ba5(0x1d6)],WPS=[a146_0x922ba5(0x1f0)],DEFAULT_NS=Object[a146_0x922ba5(0x1fc)]([...[a146_0x922ba5(0x1f6),a146_0x922ba5(0x1d0),a146_0x922ba5(0x1f4),'worksheet',a146_0x922ba5(0x1d3),'row','c','f','v','sheetFormatPr',a146_0x922ba5(0x1c9),'metadata',a146_0x922ba5(0x1fe),a146_0x922ba5(0x1af),'futureMetadata',a146_0x922ba5(0x20f),'bk','rc',a146_0x922ba5(0x206)][a146_0x922ba5(0x1f8)](_0x137c3d=>[_0x137c3d,SHEET]),...['wsDr','oneCellAnchor',a146_0x922ba5(0x1dc),a146_0x922ba5(0x180),a146_0x922ba5(0x19c),'to',a146_0x922ba5(0x193),a146_0x922ba5(0x182),a146_0x922ba5(0x1c2),a146_0x922ba5(0x1de),'pic',a146_0x922ba5(0x1c1),'cNvPr',a146_0x922ba5(0x176)][a146_0x922ba5(0x1f8)](_0x8178f1=>[_0x8178f1,DRAWING]),...[a146_0x922ba5(0x202),a146_0x922ba5(0x1f5),'rv',a146_0x922ba5(0x18c),'s','k'][a146_0x922ba5(0x1f8)](_0x13caa4=>[_0x13caa4,RICH]),['blip',DRAWING_MAIN],[a146_0x922ba5(0x21a),RICH_RELS],[a146_0x922ba5(0x1d2),RICH_RELS],[a146_0x922ba5(0x1fb),PACKAGE],[a146_0x922ba5(0x1c5),PACKAGE],[a146_0x922ba5(0x1ed),WPS],[a146_0x922ba5(0x1ce),WPS]]),matches=(_0x17b6f6,_0x4435ea,_0x29706c=DEFAULT_NS[_0x4435ea]??[])=>_0x17b6f6[a146_0x922ba5(0x1d5)]===_0x4435ea&&_0x29706c[a146_0x922ba5(0x17c)](_0x17b6f6[a146_0x922ba5(0x219)]),children=(_0x2c18c1,_0x47fbc0,_0x25aba9=DEFAULT_NS[_0x47fbc0])=>_0x2c18c1['children'][a146_0x922ba5(0x1cd)](_0x322b8c=>matches(_0x322b8c,_0x47fbc0,_0x25aba9)),chain=(_0x6c89f5,..._0x34a529)=>_0x34a529[a146_0x922ba5(0x1b3)]((_0x448de5,_0x56952f)=>_0x448de5[a146_0x922ba5(0x1d9)](_0x5200ee=>children(_0x5200ee,_0x56952f)),[_0x6c89f5]),relationshipTypes=_0x486da7=>{const _0x38af32=a146_0x922ba5;if([_0x38af32(0x1a9),_0x38af32(0x1cb)][_0x38af32(0x17c)](_0x486da7))return[_0x38af32(0x1c3)+_0x486da7];if(_0x486da7==='richValueRel')return['http://schemas.microsoft.com/office/2022/10/relationships/richValueRel'];if(_0x486da7===_0x38af32(0x1ce)||_0x486da7==='cellImages')return['http://www.wps.cn/officeDocument/2017/relationships/'+_0x486da7];return OFFICE_RELS[_0x38af32(0x1f8)](_0xafbc38=>_0xafbc38+'/'+_0x486da7);};function one(_0x3ce053,_0x5c9704){if(_0x3ce053['length']!==0x1)throw Error('Missing\x20or\x20ambiguous\x20'+_0x5c9704+'.');return _0x3ce053[0x0];}function integer(_0x48ee58,_0x1a7ce2,_0x4947c7=0x186a0){const _0x2c5514=a146_0x922ba5;if(!_0x48ee58||!/^\d+$/['test'](_0x48ee58)||!Number[_0x2c5514(0x19a)](Number(_0x48ee58))||Number(_0x48ee58)>_0x4947c7)throw Error(_0x2c5514(0x1b9)+_0x1a7ce2+'.');return Number(_0x48ee58);}export function resolveWorksheetImages(_0x1e2f18,_0x42f60a,_0x4e89fa){const _0x2b8bd4=a146_0x922ba5;let _0x364fec=0x0,_0x3c7e41=0x0,_0x4b512c=0x0;const _0x2c50da=new Map(),_0x24e44a=_0x2840d6=>{const _0x126a0b=a146_0x314e;if(_0x2c50da[_0x126a0b(0x17d)](_0x2840d6))return _0x2c50da[_0x126a0b(0x190)](_0x2840d6);const _0x569fc1=_0x1e2f18['get'](_0x2840d6);if(!_0x569fc1)throw Error(_0x126a0b(0x19d)+_0x2840d6+'.');const _0x462df4={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x252c68=[_0x462df4],_0x31cdda=new SaxesParser({'xmlns':!![]}),_0x5bf636=()=>{const _0x447a18=_0x126a0b;if(++_0x3c7e41>0x1e8480)throw Error(_0x447a18(0x18d));};_0x31cdda['on'](_0x126a0b(0x1ca),()=>{const _0xf59d47=_0x126a0b;throw Error(_0xf59d47(0x1f2));}),_0x31cdda['on']('opentag',_0x43eafd=>{const _0x485c82=_0x126a0b;_0x5bf636();if(++_0x364fec>0x7a120||_0x252c68[_0x485c82(0x209)]>0x40)throw Error(_0x485c82(0x1d1));const _0x568d8e={};for(const _0x3e5314 of Object['values'](_0x43eafd[_0x485c82(0x213)])){const _0xc4dc1e=OFFICE_RELS[_0x485c82(0x17c)](_0x3e5314[_0x485c82(0x219)])?'r:'+_0x3e5314['local']:_0x3e5314[_0x485c82(0x219)]?'{'+_0x3e5314[_0x485c82(0x219)]+'}'+_0x3e5314[_0x485c82(0x1ff)]:_0x3e5314['local'];if(_0xc4dc1e in _0x568d8e)throw Error(_0x485c82(0x210));_0x568d8e[_0xc4dc1e]=_0x3e5314[_0x485c82(0x18a)];}const _0x197383={'name':_0x43eafd[_0x485c82(0x1ff)],'uri':_0x43eafd[_0x485c82(0x219)],'attrs':_0x568d8e,'children':[],'text':''};_0x252c68['at'](-0x1)['children'][_0x485c82(0x19e)](_0x197383),_0x252c68[_0x485c82(0x19e)](_0x197383);}),_0x31cdda['on']('text',_0x4289df=>{const _0x4371da=_0x126a0b;_0x5bf636();const _0xf75ddf=_0x252c68['at'](-0x1);_0xf75ddf[_0x4371da(0x179)]+=_0x4289df;if(_0xf75ddf[_0x4371da(0x179)][_0x4371da(0x209)]>0x10000)throw Error(_0x4371da(0x1aa));}),_0x31cdda['on'](_0x126a0b(0x1df),()=>{const _0x2fe0bc=_0x126a0b;_0x5bf636(),_0x252c68[_0x2fe0bc(0x177)]();}),_0x31cdda['on'](_0x126a0b(0x185),_0x2386a1=>{throw _0x2386a1;}),_0x31cdda['write'](_0x569fc1[_0x126a0b(0x1dd)](_0x126a0b(0x1f3)))[_0x126a0b(0x1bb)]();const _0x2da52e=one(_0x462df4['children'],_0x2840d6);return _0x2c50da[_0x126a0b(0x205)](_0x2840d6,_0x2da52e),_0x2da52e;},_0x24020e=new Map(),_0x2a8a5e=_0x110f6c=>{const _0x460674=a146_0x314e;if(_0x24020e[_0x460674(0x17d)](_0x110f6c))return _0x24020e[_0x460674(0x190)](_0x110f6c);const _0x4e3d1a=a146_0x471ca2[_0x460674(0x1e1)][_0x460674(0x1ba)](a146_0x471ca2[_0x460674(0x1e1)][_0x460674(0x201)](_0x110f6c),_0x460674(0x194),a146_0x471ca2['posix'][_0x460674(0x1ea)](_0x110f6c)+_0x460674(0x170));if(!_0x1e2f18[_0x460674(0x17d)](_0x4e3d1a))return[];const _0x27178b=new Set(),_0x4522b0=_0x24e44a(_0x4e3d1a);if(!matches(_0x4522b0,'Relationships'))throw Error('Unsupported\x20relationship\x20namespace\x20in\x20'+_0x4e3d1a+'.');const _0x3fa3f9=children(_0x4522b0,_0x460674(0x1c5))['map'](_0x4eb603=>{const _0x52ec94=_0x460674,{Id:_0x36e6df,Type:_0x5cf977,Target:_0x30214f,TargetMode:_0x4273a4}=_0x4eb603[_0x52ec94(0x199)];if(!_0x36e6df||_0x27178b[_0x52ec94(0x17d)](_0x36e6df)||!_0x5cf977)throw Error(_0x52ec94(0x1f7)+_0x4e3d1a+'.');return _0x27178b[_0x52ec94(0x1b7)](_0x36e6df),{'id':_0x36e6df,'type':_0x5cf977,'target':_0x30214f??'','mode':_0x4273a4};});return _0x24020e[_0x460674(0x205)](_0x110f6c,_0x3fa3f9),_0x3fa3f9;},_0x582e0e=(_0x6876e5,_0xa168d3)=>{const _0x3b366c=a146_0x314e,{target:_0x518ae7,mode:_0x4b25eb}=_0xa168d3;if(_0x4b25eb&&_0x4b25eb!==_0x3b366c(0x186))throw Error('External\x20image\x20relationship\x20is\x20not\x20supported:\x20'+_0x6876e5+'.');if(!_0x518ae7||_0x518ae7[_0x3b366c(0x17c)]('\x5c')||/[?#%\x00-\x20]/[_0x3b366c(0x1b6)](_0x518ae7)||/^[a-z][a-z0-9+.-]*:/i[_0x3b366c(0x1b6)](_0x518ae7)||_0x518ae7[_0x3b366c(0x17b)]('//'))throw Error('Invalid\x20relationship\x20target:\x20'+_0x6876e5+'.');const _0x3553cb=_0x518ae7[_0x3b366c(0x17b)]('/')?_0x518ae7['slice'](0x1):a146_0x471ca2['posix']['normalize'](a146_0x471ca2[_0x3b366c(0x1e1)][_0x3b366c(0x1ba)](a146_0x471ca2[_0x3b366c(0x1e1)][_0x3b366c(0x201)](_0x6876e5),_0x518ae7));if(_0x3553cb[_0x3b366c(0x17b)](_0x3b366c(0x1eb))||_0x3553cb==='..'||!_0x3553cb[_0x3b366c(0x17b)](_0x3b366c(0x1f1)))throw Error(_0x3b366c(0x216)+_0x6876e5+'.');return _0x3553cb;},_0x123090=(_0x2415ca,_0x3b9679,_0x1e007d)=>{const _0x3360bb=a146_0x314e,_0x15dda5=_0x2a8a5e(_0x2415ca)[_0x3360bb(0x1cd)](_0x9f28b4=>_0x9f28b4['id']===_0x3b9679&&relationshipTypes(_0x1e007d)[_0x3360bb(0x17c)](_0x9f28b4[_0x3360bb(0x1e9)]));if(_0x15dda5[_0x3360bb(0x209)]!==0x1)throw Error(_0x3360bb(0x1b2)+_0x1e007d+_0x3360bb(0x1f9)+_0x2415ca+'.');return _0x582e0e(_0x2415ca,_0x15dda5[0x0]);},_0x1de265=(_0x4f3412,_0x25fc17)=>{const _0x5544bc=a146_0x314e,_0xf44d08=_0x2a8a5e(_0x4f3412)['filter'](_0x4079fb=>relationshipTypes(_0x25fc17)[_0x5544bc(0x17c)](_0x4079fb['type']));if(_0xf44d08[_0x5544bc(0x209)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20'+_0x25fc17+_0x5544bc(0x1f9)+_0x4f3412+'.');return _0x582e0e(_0x4f3412,_0xf44d08[0x0]);},_0x24c027=_0x2b8bd4(0x1db),_0x315bf3=_0x24e44a(_0x24c027);if(!matches(_0x315bf3,_0x2b8bd4(0x1f6)))throw Error(_0x2b8bd4(0x21b));const _0x41f3d8=one(chain(_0x315bf3,_0x2b8bd4(0x1d0),_0x2b8bd4(0x1f4))['filter'](_0x3b3a2d=>_0x3b3a2d[_0x2b8bd4(0x199)]['name']===_0x42f60a),_0x2b8bd4(0x1b5)),_0x8f0ec=_0x123090(_0x24c027,_0x41f3d8[_0x2b8bd4(0x199)]['r:id'],'worksheet'),_0x23663b=_0x24e44a(_0x8f0ec);if(!matches(_0x23663b,_0x2b8bd4(0x1b5)))throw Error('Unsupported\x20worksheet\x20namespace.');const _0x5b7aa7=chain(_0x23663b,_0x2b8bd4(0x1d3),'row'),_0x18fb7e=new Map(),_0x41ab91=new Set(_0x5b7aa7['filter'](_0x2fbb5a=>_0x2fbb5a[_0x2b8bd4(0x199)]['hidden']==='1'||_0x2fbb5a['attrs']['hidden']==='true')[_0x2b8bd4(0x1f8)](_0x2cca87=>integer(_0x2cca87['attrs']['r'],_0x2b8bd4(0x1ec)))),_0x2db453=_0xce575=>{const _0x1ae94a=_0x2b8bd4,_0x1c26df=_0xce575===undefined?0xf:Number(_0xce575);if(!Number['isFinite'](_0x1c26df)||_0x1c26df<=0x0||_0x1c26df>409.5)throw Error(_0x1ae94a(0x172));return Math[_0x1ae94a(0x1a1)](_0x1c26df*0x319c);},_0x496146=_0x2db453(children(_0x23663b,_0x2b8bd4(0x174))[0x0]?.[_0x2b8bd4(0x199)]['defaultRowHeight']);for(const _0x45b218 of _0x5b7aa7)if(_0x45b218[_0x2b8bd4(0x199)]['ht']!==undefined)_0x18fb7e[_0x2b8bd4(0x205)](integer(_0x45b218['attrs']['r'],_0x2b8bd4(0x1e2)),_0x2db453(_0x45b218[_0x2b8bd4(0x199)]['ht']));const _0x1228ff=[],_0x388742=_0x3d954f=>{const _0x107526=_0x2b8bd4;if(!_0x4e89fa[_0x107526(0x17d)](_0x3d954f[_0x107526(0x193)]))return;if(++_0x4b512c>0x2710)throw Error('Workbook\x20exceeds\x2010000\x20image\x20occurrences.');_0x1228ff[_0x107526(0x19e)](_0x41ab91[_0x107526(0x17d)](_0x3d954f['row'])?{..._0x3d954f,'hiddenRow':!![]}:_0x3d954f);},_0x520453=_0x5a9e27=>({'row':integer(one(children(_0x5a9e27,_0x2b8bd4(0x207),DRAWING),_0x2b8bd4(0x178))[_0x2b8bd4(0x179)],'anchor\x20row',0x1869f)+0x1,'col':integer(one(children(_0x5a9e27,_0x2b8bd4(0x193)),'anchor\x20column')[_0x2b8bd4(0x179)],'anchor\x20column',0xff)+0x1});for(const _0x1709a0 of children(_0x23663b,_0x2b8bd4(0x1c9))){const _0x334aca=_0x123090(_0x8f0ec,_0x1709a0[_0x2b8bd4(0x199)][_0x2b8bd4(0x1a7)],_0x2b8bd4(0x1c9)),_0x3517f2=_0x24e44a(_0x334aca);if(!matches(_0x3517f2,_0x2b8bd4(0x1a6)))throw Error(_0x2b8bd4(0x204));for(const _0x12f96b of _0x3517f2[_0x2b8bd4(0x217)]){if(![_0x2b8bd4(0x198),_0x2b8bd4(0x1dc),_0x2b8bd4(0x180)][_0x2b8bd4(0x1ee)](_0x152c4e=>matches(_0x12f96b,_0x152c4e)))continue;if(_0x12f96b[_0x2b8bd4(0x1d5)]===_0x2b8bd4(0x180))throw Error(_0x2b8bd4(0x1ef)+_0x42f60a+'.');const _0x4f7176=_0x520453(one(children(_0x12f96b,_0x2b8bd4(0x19c)),_0x2b8bd4(0x18e)));if(!_0x4e89fa[_0x2b8bd4(0x17d)](_0x4f7176[_0x2b8bd4(0x193)]))continue;let _0x52dd6d;const _0x88bf8a=one(children(_0x12f96b,_0x2b8bd4(0x19c)),'anchor\x20start'),_0x3d52c4=integer(one(children(_0x88bf8a,_0x2b8bd4(0x1c2)),_0x2b8bd4(0x1bc))[_0x2b8bd4(0x179)],'anchor\x20start\x20offset',Number[_0x2b8bd4(0x1b1)]),_0x35ba09=_0x18fb7e['get'](_0x4f7176['row'])??_0x496146;if(_0x3d52c4>=_0x35ba09)throw Error(_0x2b8bd4(0x1a5)+_0x4f7176[_0x2b8bd4(0x207)]+'.');if(_0x12f96b['name']===_0x2b8bd4(0x198)){const _0x4515b4=one(children(_0x12f96b,'ext'),_0x2b8bd4(0x187)),_0x5d1bed=integer(_0x4515b4[_0x2b8bd4(0x199)]['cy'],_0x2b8bd4(0x1a3),Number[_0x2b8bd4(0x1b1)]);if(!_0x5d1bed||_0x3d52c4+_0x5d1bed>_0x35ba09)_0x52dd6d='Image\x20anchor\x20spans\x20multiple\x20business\x20rows.';}if(_0x12f96b['name']===_0x2b8bd4(0x1dc)){const _0x46358a=one(children(_0x12f96b,'to'),'anchor\x20end'),_0x4f462b=_0x520453(_0x46358a),_0x534679=integer(one(children(_0x46358a,_0x2b8bd4(0x1c2)),_0x2b8bd4(0x192))[_0x2b8bd4(0x179)],_0x2b8bd4(0x192),Number['MAX_SAFE_INTEGER']),_0x2087be=_0x18fb7e[_0x2b8bd4(0x190)](_0x4f462b['row'])??_0x496146;if(_0x534679>_0x2087be||_0x4f462b[_0x2b8bd4(0x207)]===_0x4f7176['row']&&_0x534679<=_0x3d52c4)_0x52dd6d=_0x2b8bd4(0x181);if(_0x4f462b[_0x2b8bd4(0x207)]<_0x4f7176[_0x2b8bd4(0x207)]||_0x4f462b[_0x2b8bd4(0x207)]>_0x4f7176[_0x2b8bd4(0x207)]+0x1||_0x4f462b[_0x2b8bd4(0x207)]===_0x4f7176['row']+0x1&&_0x534679!==0x0)_0x52dd6d='Image\x20anchor\x20spans\x20multiple\x20business\x20rows.';}const _0x39473d=chain(_0x12f96b,_0x2b8bd4(0x1d7),_0x2b8bd4(0x176),_0x2b8bd4(0x1e7));for(const _0x5cbd7a of _0x39473d){if(_0x5cbd7a[_0x2b8bd4(0x199)][_0x2b8bd4(0x18f)])throw Error(_0x2b8bd4(0x17f));_0x388742({..._0x4f7176,'media':[_0x123090(_0x334aca,_0x5cbd7a[_0x2b8bd4(0x199)][_0x2b8bd4(0x20a)],_0x2b8bd4(0x1cc))],..._0x52dd6d?{'error':_0x52dd6d}:{}});}if(!_0x39473d[_0x2b8bd4(0x209)])_0x388742({..._0x4f7176,'media':[],'error':'Unsupported\x20drawing\x20image.'});}}const _0x8a8d06=_0xeab814=>{const _0x5b32f7=_0x2b8bd4,_0x2601f3=_0x24e44a(_0x1de265(_0x24c027,'sheetMetadata'));if(!matches(_0x2601f3,'metadata'))throw Error(_0x5b32f7(0x17e));const _0x110cb8=integer(_0xeab814[_0x5b32f7(0x199)]['vm'],_0x5b32f7(0x1da));if(!_0x110cb8)throw Error('Value\x20metadata\x20index\x20must\x20be\x20one-based.');const _0x36c638=children(one(children(_0x2601f3,_0x5b32f7(0x20f)),_0x5b32f7(0x20f)),'bk')[_0x110cb8-0x1];if(!_0x36c638)throw Error(_0x5b32f7(0x1a8));const _0x19c729=one(children(_0x36c638,'rc'),'rich\x20metadata\x20record'),_0x429038=integer(_0x19c729[_0x5b32f7(0x199)]['t'],_0x5b32f7(0x1e3)),_0x9861b8=children(one(children(_0x2601f3,_0x5b32f7(0x1fe)),_0x5b32f7(0x218)),_0x5b32f7(0x1af))[_0x429038-0x1];if(!_0x429038||_0x9861b8?.[_0x5b32f7(0x199)]['name']!=='XLRICHVALUE')throw Error('Unsupported\x20mapped\x20cell\x20metadata\x20type.');const _0x28d633=one(children(_0x2601f3,'futureMetadata')[_0x5b32f7(0x1cd)](_0x2f0c98=>_0x2f0c98['attrs'][_0x5b32f7(0x1d5)]===_0x5b32f7(0x20c)),_0x5b32f7(0x1c7)),_0x18f3c7=children(_0x28d633,'bk')[integer(_0x19c729[_0x5b32f7(0x199)]['v'],'future\x20metadata\x20index')];if(!_0x18f3c7)throw Error('Missing\x20future\x20metadata\x20block.');const _0x21fb9d=chain(_0x18f3c7,'extLst')[_0x5b32f7(0x1d9)](_0x22bd5b=>children(_0x22bd5b,_0x5b32f7(0x1de),SHEET))[_0x5b32f7(0x1cd)](_0x12a0b1=>_0x12a0b1[_0x5b32f7(0x199)][_0x5b32f7(0x219)]?.[_0x5b32f7(0x1b4)]()==='{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}'),_0x379a9a=integer(one(_0x21fb9d['flatMap'](_0x195c30=>children(_0x195c30,_0x5b32f7(0x202))),_0x5b32f7(0x1ae))['attrs']['i'],_0x5b32f7(0x183)),_0x4be53f=_0x24e44a(_0x1de265(_0x24c027,_0x5b32f7(0x1a9)));if(!matches(_0x4be53f,_0x5b32f7(0x1f5)))throw Error(_0x5b32f7(0x1a0));const _0x20fe6d=children(_0x4be53f,'rv')[_0x379a9a];if(!_0x20fe6d)throw Error(_0x5b32f7(0x173));const _0x11e634=_0x24e44a(_0x1de265(_0x24c027,_0x5b32f7(0x1cb)));if(!matches(_0x11e634,_0x5b32f7(0x18c)))throw Error('Unsupported\x20rich\x20structure\x20namespace.');const _0x1646e4=children(_0x11e634,'s')[integer(_0x20fe6d['attrs']['s'],_0x5b32f7(0x195))];if(!_0x1646e4||_0x1646e4[_0x5b32f7(0x199)]['t']!==_0x5b32f7(0x17a))throw Error(_0x5b32f7(0x197));const _0x3b2a1a=children(_0x1646e4,'k'),_0x176350=_0x3b2a1a[_0x5b32f7(0x1f8)]((_0x344b50,_0x8c67ba)=>_0x344b50[_0x5b32f7(0x199)]['n']===_0x5b32f7(0x1c8)?_0x8c67ba:-0x1)[_0x5b32f7(0x1cd)](_0x3ed23e=>_0x3ed23e>=0x0);if(_0x176350['length']!==0x1)throw Error('Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.');const _0x3b6661=children(_0x20fe6d,'v',RICH)[_0x176350[0x0]];if(!_0x3b6661)throw Error(_0x5b32f7(0x1be));const _0x59c1c5=_0x1de265(_0x24c027,_0x5b32f7(0x1e4)),_0x18f17d=_0x24e44a(_0x59c1c5);if(!matches(_0x18f17d,_0x5b32f7(0x21a)))throw Error(_0x5b32f7(0x1e5));const _0x2fdc77=children(_0x18f17d,_0x5b32f7(0x1d2))[integer(_0x3b6661[_0x5b32f7(0x179)],_0x5b32f7(0x208))];if(!_0x2fdc77)throw Error('Missing\x20rich\x20image\x20relationship.');return _0x123090(_0x59c1c5,_0x2fdc77[_0x5b32f7(0x199)][_0x5b32f7(0x1a7)],'image');};let _0x464183;const _0x5391b7=_0x553c44=>{const _0xde5163=_0x2b8bd4;if(!_0x464183){_0x464183=new Map();const _0x42fd9a=_0x2a8a5e(_0x24c027)[_0xde5163(0x1cd)](_0x1b274b=>[...relationshipTypes(_0xde5163(0x1ce)),...relationshipTypes(_0xde5163(0x1ed))][_0xde5163(0x17c)](_0x1b274b[_0xde5163(0x1e9)]));if(!_0x42fd9a['length']&&_0x1e2f18[_0xde5163(0x17d)](_0xde5163(0x196)))_0x42fd9a[_0xde5163(0x19e)]({'id':'','type':'','target':_0xde5163(0x20e)});if(_0x42fd9a[_0xde5163(0x209)]!==0x1)throw Error(_0xde5163(0x1bd));const _0x4a049d=_0x582e0e(_0x24c027,_0x42fd9a[0x0]),_0x1596ae=_0x24e44a(_0x4a049d);if(!matches(_0x1596ae,'cellImages'))throw Error(_0xde5163(0x1ac));for(const _0x1cb391 of children(_0x1596ae,_0xde5163(0x1ce))){const _0x2dbcfa=one(chain(_0x1cb391,_0xde5163(0x1d7),_0xde5163(0x1c1),_0xde5163(0x1e6)),_0xde5163(0x20b))['attrs']['name'];if(!_0x2dbcfa||_0x464183['has'](_0x2dbcfa))throw Error(_0xde5163(0x1b8));const _0x35a268=one(chain(_0x1cb391,_0xde5163(0x1d7),_0xde5163(0x176),'blip'),_0xde5163(0x212));if(_0x35a268[_0xde5163(0x199)][_0xde5163(0x18f)])throw Error(_0xde5163(0x1a2));_0x464183[_0xde5163(0x205)](_0x2dbcfa,_0x123090(_0x4a049d,_0x35a268[_0xde5163(0x199)][_0xde5163(0x20a)],'image'));}}const _0x27e607=_0x464183[_0xde5163(0x190)](_0x553c44);if(!_0x27e607)throw Error('Missing\x20WPS\x20image\x20ID:\x20'+_0x553c44+'.');return _0x27e607;},_0x53f8a6=new Set();for(const _0x12e2e4 of _0x5b7aa7[_0x2b8bd4(0x1d9)](_0x4cc26c=>children(_0x4cc26c,'c'))){const _0x409ace=/^([A-Z]+)([1-9]\d*)$/['exec'](_0x12e2e4[_0x2b8bd4(0x199)]['r']??'');if(!_0x409ace)continue;let _0xd31af9=0x0;for(const _0x2c981f of _0x409ace[0x1])_0xd31af9=_0xd31af9*0x1a+_0x2c981f[_0x2b8bd4(0x211)](0x0)-0x40;if(!_0x4e89fa[_0x2b8bd4(0x17d)](_0xd31af9))continue;const _0x54d721=integer(_0x409ace[0x2],_0x2b8bd4(0x1d8));if(_0x53f8a6[_0x2b8bd4(0x17d)](_0x12e2e4['attrs']['r']))throw Error('Duplicate\x20mapped\x20image\x20cell.');_0x53f8a6['add'](_0x12e2e4[_0x2b8bd4(0x199)]['r']);const _0x15e2ea=children(_0x12e2e4,'f');if(!_0x12e2e4[_0x2b8bd4(0x199)]['vm']&&!_0x15e2ea[_0x2b8bd4(0x209)])continue;try{if(_0x54d721<0x1||_0xd31af9>0x100)throw Error(_0x2b8bd4(0x19b));let _0x53cfeb;if(_0x12e2e4[_0x2b8bd4(0x199)]['vm']){if(_0x15e2ea[_0x2b8bd4(0x209)])throw Error(_0x2b8bd4(0x1ad));if(_0x12e2e4[_0x2b8bd4(0x199)]['t']!=='e'||children(_0x12e2e4,'v')[_0x2b8bd4(0x209)]!==0x1||children(_0x12e2e4,'v')[0x0][_0x2b8bd4(0x179)]!=='#VALUE!')throw Error(_0x2b8bd4(0x188));_0x53cfeb=_0x8a8d06(_0x12e2e4);}else{const _0xdeb6c2=one(_0x15e2ea,_0x2b8bd4(0x1e8));if(_0xdeb6c2['attrs']['t']===_0x2b8bd4(0x171)||_0xdeb6c2[_0x2b8bd4(0x199)]['si'])throw Error(_0x2b8bd4(0x18b));const _0x468261=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x2b8bd4(0x203)](_0xdeb6c2['text']);if(!_0x468261)throw Error(_0x2b8bd4(0x1d4));_0x53cfeb=_0x5391b7(_0x468261[0x1][_0x2b8bd4(0x1c0)](/""/g,'\x22'));}_0x388742({'row':_0x54d721,'col':_0xd31af9,'media':[_0x53cfeb],'nativeCell':!![]});}catch(_0x49186b){_0x388742({'row':_0x54d721,'col':_0xd31af9,'media':[],'nativeCell':!![],'error':_0x49186b[_0x2b8bd4(0x1bf)]});}}return _0x1228ff;}function a146_0x39c5(){const _0x549064=['Shared\x20image\x20formulas\x20are\x20not\x20supported.','rvStructures','Image\x20XML\x20event\x20budget\x20exceeded.','anchor\x20start','r:link','get','http://purl.oclc.org/ooxml/spreadsheetml/main','anchor\x20end\x20offset','col','_rels','rich\x20structure\x20index','xl/cellimages.xml','Unsupported\x20mapped\x20rich\x20value\x20structure.','oneCellAnchor','attrs','isSafeInteger','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','from','Missing\x20XLSX\x20part:\x20','push','48VlGnYZ','Unsupported\x20rich\x20value\x20namespace.','round','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','image\x20height','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','wsDr','r:id','Missing\x20value\x20metadata\x20block.','rdRichValue','Image\x20XML\x20text\x20exceeds\x2064\x20KB.','http://purl.oclc.org/ooxml/drawingml/main','Unsupported\x20WPS\x20cell\x20image\x20namespace.','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','rich\x20value\x20binding','metadataType','1776582htGzBK','MAX_SAFE_INTEGER','Missing\x20or\x20ambiguous\x20','reduce','toLowerCase','worksheet','test','add','Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.','Invalid\x20','join','close','anchor\x20start\x20offset','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','Missing\x20local\x20image\x20identifier\x20value.','message','replace','nvPicPr','rowOff','http://schemas.microsoft.com/office/2017/06/relationships/','http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing','Relationship','1998cEBLeU','rich\x20future\x20metadata','_rvRel:LocalImageIdentifier','drawing','doctype','rdRichValueStructure','image','filter','cellImage','http://schemas.openxmlformats.org/officeDocument/2006/relationships','sheets','Image\x20XML\x20node\x20budget\x20exceeded.','rel','sheetData','Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.','name','http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel','pic','image\x20cell\x20row','flatMap','value\x20metadata\x20index','xl/workbook.xml','twoCellAnchor','toString','ext','closetag','http://schemas.openxmlformats.org/spreadsheetml/2006/main','posix','image\x20row\x20height\x20coordinate','metadata\x20type\x20index','richValueRel','Unsupported\x20rich\x20image\x20relation\x20namespace.','cNvPr','blip','image\x20formula','type','basename','../','hidden\x20image\x20row','cellImages','some','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','http://www.wps.cn/officeDocument/2017/etCustomData','xl/','XML\x20DTD/entities\x20are\x20not\x20supported.','utf8','sheet','rvData','workbook','Invalid\x20or\x20duplicate\x20relationship\x20in\x20','map','\x20relationship\x20in\x20','711843PgzuXa','Relationships','fromEntries','http://schemas.openxmlformats.org/drawingml/2006/main','metadataTypes','local','305241kcsRju','dirname','rvb','exec','Unsupported\x20drawing\x20namespace.','set','extLst','row','rich\x20image\x20relationship\x20index','length','r:embed','WPS\x20image\x20name','XLRICHVALUE','12640400xBxBRO','/xl/cellimages.xml','valueMetadata','Ambiguous\x20XML\x20attribute.','charCodeAt','WPS\x20image\x20blip','attributes','137485meaoQX','14563467TZRhkC','Relationship\x20target\x20escapes\x20workbook:\x20','children','metadata\x20types','uri','richValueRels','Unsupported\x20workbook\x20namespace.','.rels','shared','Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.','Missing\x20rich\x20value.','sheetFormatPr','27776OzsooC','blipFill','pop','anchor\x20row','text','_localImage','startsWith','includes','has','Unsupported\x20metadata\x20namespace.','External\x20image\x20links\x20are\x20not\x20supported.','absoluteAnchor','Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.','colOff','rich\x20value\x20index','http://purl.oclc.org/ooxml/officeDocument/relationships','error','Internal','image\x20extent','Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','http://schemas.openxmlformats.org/package/2006/relationships','value'];a146_0x39c5=function(){return _0x549064;};return a146_0x39c5();}